@salla.sa/twilight-components 2.14.164 → 2.14.166

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 (278) hide show
  1. package/dist/cjs/{Helper-CNYy9P5b.js → Helper-u2kVaP5K.js} +15 -10
  2. package/dist/cjs/{Helper-CNYy9P5b.js.map → Helper-u2kVaP5K.js.map} +1 -1
  3. package/dist/cjs/{app-globals-B0FX8nrF.js → app-globals-BvFSBfoT.js} +3 -3
  4. package/dist/cjs/{app-globals-B0FX8nrF.js.map → app-globals-BvFSBfoT.js.map} +1 -1
  5. package/dist/cjs/{index-BQogR_9w.js → index-iU0iVUza.js} +4 -4
  6. package/dist/cjs/index-iU0iVUza.js.map +1 -0
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/cjs/salla-add-product-button_49.cjs.entry.js +2 -2
  9. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  10. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  11. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  12. package/dist/cjs/salla-booking-field_2.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-cart-item-offers.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-filters-widget.cjs.entry.js +2 -2
  17. package/dist/cjs/salla-filters.cjs.entry.js +2 -2
  18. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-loyalty-prize-item.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 +2 -2
  23. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-orders.cjs.entry.js +2 -2
  26. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-product-options.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-review-card.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-reviews-page.cjs.entry.js +2 -2
  31. package/dist/cjs/salla-reviews.cjs.entry.js +2 -2
  32. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  36. package/dist/cjs/twilight.cjs.js +2 -2
  37. package/dist/collection/Helpers/Helper.js +13 -8
  38. package/dist/collection/Helpers/Helper.js.map +1 -1
  39. package/dist/components/Helper.js +13 -8
  40. package/dist/components/Helper.js.map +1 -1
  41. package/dist/components/index.js +2 -2
  42. package/dist/components/index.js.map +1 -1
  43. package/dist/esm/{Helper-BrCHOtZG.js → Helper-MNQx5g4A.js} +15 -10
  44. package/dist/{esm-es5/Helper-BrCHOtZG.js.map → esm/Helper-MNQx5g4A.js.map} +1 -1
  45. package/dist/esm/{app-globals-IYG3dX-R.js → app-globals-sE_ZSx6e.js} +3 -3
  46. package/dist/esm/{app-globals-IYG3dX-R.js.map → app-globals-sE_ZSx6e.js.map} +1 -1
  47. package/dist/esm/{index-BFfNxHPV.js → index-BJcojI6v.js} +4 -4
  48. package/dist/esm/index-BJcojI6v.js.map +1 -0
  49. package/dist/esm/loader.js +3 -3
  50. package/dist/esm/salla-add-product-button_49.entry.js +2 -2
  51. package/dist/esm/salla-advertisement.entry.js +1 -1
  52. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  53. package/dist/esm/salla-apps-icons.entry.js +1 -1
  54. package/dist/esm/salla-booking-field_2.entry.js +1 -1
  55. package/dist/esm/salla-cart-item-offers.entry.js +1 -1
  56. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  57. package/dist/esm/salla-contacts.entry.js +1 -1
  58. package/dist/esm/salla-filters-widget.entry.js +2 -2
  59. package/dist/esm/salla-filters.entry.js +2 -2
  60. package/dist/esm/salla-installment.entry.js +1 -1
  61. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  62. package/dist/esm/salla-metadata.entry.js +1 -1
  63. package/dist/esm/salla-notification-item.entry.js +1 -1
  64. package/dist/esm/salla-notifications.entry.js +2 -2
  65. package/dist/esm/salla-offer.entry.js +1 -1
  66. package/dist/esm/salla-order-summary.entry.js +1 -1
  67. package/dist/esm/salla-orders.entry.js +2 -2
  68. package/dist/esm/salla-payments.entry.js +1 -1
  69. package/dist/esm/salla-price-range.entry.js +1 -1
  70. package/dist/esm/salla-product-options.entry.js +1 -1
  71. package/dist/esm/salla-review-card.entry.js +1 -1
  72. package/dist/esm/salla-reviews-page.entry.js +2 -2
  73. package/dist/esm/salla-reviews.entry.js +2 -2
  74. package/dist/esm/salla-social.entry.js +1 -1
  75. package/dist/esm/salla-tooltip.entry.js +1 -1
  76. package/dist/esm/salla-verify.entry.js +1 -1
  77. package/dist/esm/salla-wallet.entry.js +1 -1
  78. package/dist/esm/twilight.js +3 -3
  79. package/dist/esm-es5/{Helper-BrCHOtZG.js → Helper-MNQx5g4A.js} +3 -3
  80. package/dist/{esm/Helper-BrCHOtZG.js.map → esm-es5/Helper-MNQx5g4A.js.map} +1 -1
  81. package/dist/esm-es5/{app-globals-IYG3dX-R.js → app-globals-sE_ZSx6e.js} +2 -2
  82. package/dist/esm-es5/{app-globals-IYG3dX-R.js.map → app-globals-sE_ZSx6e.js.map} +1 -1
  83. package/dist/esm-es5/{index-BFfNxHPV.js → index-BJcojI6v.js} +3 -3
  84. package/dist/esm-es5/index-BJcojI6v.js.map +1 -0
  85. package/dist/esm-es5/loader.js +1 -1
  86. package/dist/esm-es5/salla-add-product-button_49.entry.js +1 -1
  87. package/dist/esm-es5/salla-advertisement.entry.js +1 -1
  88. package/dist/esm-es5/salla-app-install-alert.entry.js +1 -1
  89. package/dist/esm-es5/salla-apps-icons.entry.js +1 -1
  90. package/dist/esm-es5/salla-booking-field_2.entry.js +1 -1
  91. package/dist/esm-es5/salla-cart-item-offers.entry.js +1 -1
  92. package/dist/esm-es5/salla-conditional-offer.entry.js +1 -1
  93. package/dist/esm-es5/salla-contacts.entry.js +1 -1
  94. package/dist/esm-es5/salla-filters-widget.entry.js +2 -2
  95. package/dist/esm-es5/salla-filters.entry.js +1 -1
  96. package/dist/esm-es5/salla-installment.entry.js +1 -1
  97. package/dist/esm-es5/salla-loyalty-prize-item.entry.js +1 -1
  98. package/dist/esm-es5/salla-metadata.entry.js +1 -1
  99. package/dist/esm-es5/salla-notification-item.entry.js +1 -1
  100. package/dist/esm-es5/salla-notifications.entry.js +1 -1
  101. package/dist/esm-es5/salla-offer.entry.js +1 -1
  102. package/dist/esm-es5/salla-order-summary.entry.js +2 -2
  103. package/dist/esm-es5/salla-orders.entry.js +2 -2
  104. package/dist/esm-es5/salla-payments.entry.js +1 -1
  105. package/dist/esm-es5/salla-price-range.entry.js +1 -1
  106. package/dist/esm-es5/salla-product-options.entry.js +1 -1
  107. package/dist/esm-es5/salla-review-card.entry.js +1 -1
  108. package/dist/esm-es5/salla-reviews-page.entry.js +1 -1
  109. package/dist/esm-es5/salla-reviews.entry.js +1 -1
  110. package/dist/esm-es5/salla-social.entry.js +1 -1
  111. package/dist/esm-es5/salla-tooltip.entry.js +1 -1
  112. package/dist/esm-es5/salla-verify.entry.js +1 -1
  113. package/dist/esm-es5/salla-wallet.entry.js +1 -1
  114. package/dist/esm-es5/twilight.js +1 -1
  115. package/dist/twilight/{p-37904a9d.system.entry.js → p-041cfdc6.system.entry.js} +2 -2
  116. package/dist/twilight/{p-a57e5439.system.entry.js → p-04acb9d5.system.entry.js} +2 -2
  117. package/dist/twilight/{p-fde43494.system.entry.js → p-08c7235b.system.entry.js} +2 -2
  118. package/dist/twilight/{p-34e55241.system.entry.js → p-09d4e21c.system.entry.js} +2 -2
  119. package/dist/twilight/{p-C5EBG2Xg.system.js.map → p-0Xmugzgq.system.js.map} +1 -1
  120. package/dist/twilight/{p-d30e3efe.entry.js → p-0c7e997f.entry.js} +2 -2
  121. package/dist/twilight/{p-0df2ce1c.entry.js → p-1593ada3.entry.js} +2 -2
  122. package/dist/twilight/{p-fe73d1f4.entry.js → p-1b069f5c.entry.js} +2 -2
  123. package/dist/twilight/{p-2f7a8fd5.system.entry.js → p-1fcbf6bb.system.entry.js} +3 -3
  124. package/dist/twilight/{p-35130be1.entry.js → p-2139323e.entry.js} +2 -2
  125. package/dist/twilight/{p-489c4e43.system.entry.js → p-263f39a8.system.entry.js} +2 -2
  126. package/dist/twilight/{p-bef3244d.entry.js → p-26849df9.entry.js} +2 -2
  127. package/dist/twilight/{p-77aa48a9.entry.js → p-26a83313.entry.js} +2 -2
  128. package/dist/twilight/{p-70db2fda.system.entry.js → p-277a736d.system.entry.js} +2 -2
  129. package/dist/twilight/{p-2ce0a07a.entry.js → p-2984d7ee.entry.js} +2 -2
  130. package/dist/twilight/{p-f14d4763.entry.js → p-3f973235.entry.js} +2 -2
  131. package/dist/twilight/{p-28d837ee.entry.js → p-4163dbb9.entry.js} +2 -2
  132. package/dist/twilight/{p-0bfcfa47.system.entry.js → p-4526ac8e.system.entry.js} +2 -2
  133. package/dist/twilight/{p-9900d67e.entry.js → p-50baf30c.entry.js} +2 -2
  134. package/dist/twilight/{p-cf17e7f5.system.entry.js → p-5237da49.system.entry.js} +2 -2
  135. package/dist/twilight/{p-ea2a8ec3.system.entry.js → p-551f5ae2.system.entry.js} +2 -2
  136. package/dist/twilight/{p-325e8a3e.entry.js → p-55cef941.entry.js} +2 -2
  137. package/dist/twilight/{p-e0f20b16.system.entry.js → p-5c3c4081.system.entry.js} +2 -2
  138. package/dist/twilight/{p-87eef8f5.system.entry.js → p-689aca0e.system.entry.js} +2 -2
  139. package/dist/twilight/{p-b45186d2.entry.js → p-6984531d.entry.js} +8 -8
  140. package/dist/twilight/{p-f047dc2e.system.entry.js → p-6993e228.system.entry.js} +2 -2
  141. package/dist/twilight/{p-1fe13a36.system.entry.js → p-718df47e.system.entry.js} +6 -6
  142. package/dist/twilight/{p-e803e9c9.system.entry.js → p-7b1212df.system.entry.js} +2 -2
  143. package/dist/twilight/{p-0a352565.entry.js → p-8177ab73.entry.js} +2 -2
  144. package/dist/twilight/{p-d9e539ba.system.entry.js → p-8c1eca80.system.entry.js} +2 -2
  145. package/dist/twilight/{p-652c3a18.system.entry.js → p-8c5e2cf8.system.entry.js} +2 -2
  146. package/dist/twilight/{p-Cbt3VvMx.system.js.map → p-8ewm7cmP.system.js.map} +1 -1
  147. package/dist/twilight/{p-c8fa97ee.system.entry.js → p-905c335e.system.entry.js} +2 -2
  148. package/dist/twilight/{p-801b8cf5.entry.js → p-9ddaf4b2.entry.js} +2 -2
  149. package/dist/twilight/{p-2c742cef.system.entry.js → p-9f151920.system.entry.js} +2 -2
  150. package/dist/twilight/{p-60e44e99.system.entry.js → p-9f64a8a7.system.entry.js} +2 -2
  151. package/dist/twilight/{p-CorPzHaH.system.js → p-BDAthD3J.system.js} +3 -3
  152. package/dist/twilight/{p-CorPzHaH.system.js.map → p-BDAthD3J.system.js.map} +1 -1
  153. package/dist/twilight/{p-DHMPrdpB.system.js.map → p-BE4Tntj5.system.js.map} +1 -1
  154. package/dist/twilight/{p-CV1L1K1F.js → p-BEBnH0T8.js} +2 -2
  155. package/dist/twilight/{p-CV1L1K1F.js.map → p-BEBnH0T8.js.map} +1 -1
  156. package/dist/twilight/{p-BmBnW84t.system.js.map → p-BEz4dPyy.system.js.map} +1 -1
  157. package/dist/twilight/{p-BFfNxHPV.js → p-BJcojI6v.js} +3 -3
  158. package/dist/twilight/p-BJcojI6v.js.map +1 -0
  159. package/dist/twilight/{p-B8H8Zffc.system.js.map → p-BMEAfpcQ.system.js.map} +1 -1
  160. package/dist/twilight/{p-t7kMTbsj.system.js.map → p-BNfhCOep.system.js.map} +1 -1
  161. package/dist/twilight/{p-UtROhnoT.system.js.map → p-BPHisSBS.system.js.map} +1 -1
  162. package/dist/twilight/{p-BC573MOT.system.js.map → p-BRFHsZkg.system.js.map} +1 -1
  163. package/dist/twilight/{p-wVh4stgZ.system.js.map → p-BRNwBf6q.system.js.map} +1 -1
  164. package/dist/twilight/{p-Bx-N-s4Y.system.js.map → p-B_ARsANj.system.js.map} +1 -1
  165. package/dist/twilight/{p-D06Xx0Te.system.js.map → p-Be9PHZ6-.system.js.map} +1 -1
  166. package/dist/twilight/{p-Bco_IRd2.system.js.map → p-Bf0LxwB7.system.js.map} +1 -1
  167. package/dist/twilight/{p-Cb1UIzZb.system.js → p-BoU3rP9-.system.js} +3 -3
  168. package/dist/twilight/p-BoU3rP9-.system.js.map +1 -0
  169. package/dist/twilight/{p-8lfy7oMG.system.js.map → p-Bp3Jex-u.system.js.map} +1 -1
  170. package/dist/twilight/{p-B4QYa22q.system.js.map → p-BxiSZFuT.system.js.map} +1 -1
  171. package/dist/twilight/{p-LTc0kKzI.system.js.map → p-ByPmVcaW.system.js.map} +1 -1
  172. package/dist/twilight/{p-DW6tScyV.system.js.map → p-CQJr95JP.system.js.map} +1 -1
  173. package/dist/twilight/{p-nlqrWEsa.system.js.map → p-CUrjp7xM.system.js.map} +1 -1
  174. package/dist/twilight/{p-DGrVZP6D.system.js.map → p-Ck-MMoh4.system.js.map} +1 -1
  175. package/dist/twilight/{p-CerWahQp.system.js.map → p-Cv3L1tRD.system.js.map} +1 -1
  176. package/dist/twilight/{p-DQ6WGq9O.system.js.map → p-DMEPVSYJ.system.js.map} +1 -1
  177. package/dist/twilight/{p-D1_lKraG.js → p-DPqQW4oH.js} +2 -2
  178. package/dist/twilight/{p-D1_lKraG.js.map → p-DPqQW4oH.js.map} +1 -1
  179. package/dist/twilight/{p-Dz_hUkbF.system.js → p-D_NAqNa-.system.js} +2 -2
  180. package/dist/twilight/{p-Dz_hUkbF.system.js.map → p-D_NAqNa-.system.js.map} +1 -1
  181. package/dist/twilight/{p-DyiYfLs6.system.js.map → p-DdgccFjk.system.js.map} +1 -1
  182. package/dist/twilight/{p-DD-NUH5O.system.js.map → p-DiIWpMR9.system.js.map} +1 -1
  183. package/dist/twilight/{p-C6uUYgzy.system.js.map → p-NnKijTrt.system.js.map} +1 -1
  184. package/dist/twilight/{p-DeLChKCk.system.js.map → p-X_JjG62r.system.js.map} +1 -1
  185. package/dist/twilight/{p-fIRBYbgk.system.js → p-_Df6_reQ.system.js} +2 -2
  186. package/dist/twilight/{p-fIRBYbgk.system.js.map → p-_Df6_reQ.system.js.map} +1 -1
  187. package/dist/twilight/{p-66f5c6cb.entry.js → p-a8128d9a.entry.js} +2 -2
  188. package/dist/twilight/{p-679bcc4c.entry.js → p-b3df8eba.entry.js} +2 -2
  189. package/dist/twilight/{p-bced4dd5.system.entry.js → p-b66ce34c.system.entry.js} +2 -2
  190. package/dist/twilight/{p-18cad003.system.entry.js → p-b93f8a7b.system.entry.js} +2 -2
  191. package/dist/twilight/{p-15ac73d8.entry.js → p-bd675f34.entry.js} +2 -2
  192. package/dist/twilight/{p-8128a6af.system.entry.js → p-c5f58299.system.entry.js} +2 -2
  193. package/dist/twilight/{p-3fc226d0.entry.js → p-c76c05ff.entry.js} +2 -2
  194. package/dist/twilight/{p-94338a6a.entry.js → p-ca989cdf.entry.js} +2 -2
  195. package/dist/twilight/{p-283e5d2a.system.entry.js → p-cac0a37c.system.entry.js} +2 -2
  196. package/dist/twilight/{p-6f789c6a.system.entry.js → p-cc93cc27.system.entry.js} +2 -2
  197. package/dist/twilight/{p-f2fb025f.system.entry.js → p-cdfb75e6.system.entry.js} +2 -2
  198. package/dist/twilight/{p-a6ab5583.entry.js → p-dae66c49.entry.js} +2 -2
  199. package/dist/twilight/{p-07be7362.entry.js → p-e75ddf6b.entry.js} +2 -2
  200. package/dist/twilight/{p-feb47683.system.entry.js → p-ea45208a.system.entry.js} +2 -2
  201. package/dist/twilight/{p-acd4ad3d.entry.js → p-eb859ac0.entry.js} +2 -2
  202. package/dist/twilight/{p-112a3593.entry.js → p-eb86070c.entry.js} +2 -2
  203. package/dist/twilight/{p-a4335e96.entry.js → p-efb54461.entry.js} +2 -2
  204. package/dist/twilight/{p-594e29ef.system.entry.js → p-f1493561.system.entry.js} +2 -2
  205. package/dist/twilight/{p-03eeed12.entry.js → p-f192ed81.entry.js} +2 -2
  206. package/dist/twilight/{p-780e11a1.entry.js → p-f5534187.entry.js} +2 -2
  207. package/dist/twilight/{p-73c55156.entry.js → p-fa752787.entry.js} +2 -2
  208. package/dist/twilight/{p-f1f76cad.entry.js → p-fc5309ad.entry.js} +2 -2
  209. package/dist/twilight/{p-CCj5pPN3.system.js.map → p-lA-1m-p5.system.js.map} +1 -1
  210. package/dist/twilight/{p-CJdQn5Cx.system.js.map → p-oYwTKzyC.system.js.map} +1 -1
  211. package/dist/twilight/{p-BEq2XgoL.system.js.map → p-pX5I3INC.system.js.map} +1 -1
  212. package/dist/twilight/{p-CSzSey6x.system.js.map → p-qgRft6ys.system.js.map} +1 -1
  213. package/dist/twilight/{p-B8TjwvAx.system.js.map → p-vJ_LeDO0.system.js.map} +1 -1
  214. package/dist/twilight/twilight.esm.js +1 -1
  215. package/dist/twilight/twilight.js +1 -1
  216. package/dist/types/Helpers/Helper.d.ts +6 -4
  217. package/package.json +5 -5
  218. package/dist/cjs/index-BQogR_9w.js.map +0 -1
  219. package/dist/esm/index-BFfNxHPV.js.map +0 -1
  220. package/dist/esm-es5/index-BFfNxHPV.js.map +0 -1
  221. package/dist/twilight/p-BFfNxHPV.js.map +0 -1
  222. package/dist/twilight/p-Cb1UIzZb.system.js.map +0 -1
  223. /package/dist/twilight/{p-37904a9d.system.entry.js.map → p-041cfdc6.system.entry.js.map} +0 -0
  224. /package/dist/twilight/{p-a57e5439.system.entry.js.map → p-04acb9d5.system.entry.js.map} +0 -0
  225. /package/dist/twilight/{p-fde43494.system.entry.js.map → p-08c7235b.system.entry.js.map} +0 -0
  226. /package/dist/twilight/{p-34e55241.system.entry.js.map → p-09d4e21c.system.entry.js.map} +0 -0
  227. /package/dist/twilight/{p-d30e3efe.entry.js.map → p-0c7e997f.entry.js.map} +0 -0
  228. /package/dist/twilight/{p-0df2ce1c.entry.js.map → p-1593ada3.entry.js.map} +0 -0
  229. /package/dist/twilight/{p-fe73d1f4.entry.js.map → p-1b069f5c.entry.js.map} +0 -0
  230. /package/dist/twilight/{p-2f7a8fd5.system.entry.js.map → p-1fcbf6bb.system.entry.js.map} +0 -0
  231. /package/dist/twilight/{p-35130be1.entry.js.map → p-2139323e.entry.js.map} +0 -0
  232. /package/dist/twilight/{p-489c4e43.system.entry.js.map → p-263f39a8.system.entry.js.map} +0 -0
  233. /package/dist/twilight/{p-bef3244d.entry.js.map → p-26849df9.entry.js.map} +0 -0
  234. /package/dist/twilight/{p-77aa48a9.entry.js.map → p-26a83313.entry.js.map} +0 -0
  235. /package/dist/twilight/{p-70db2fda.system.entry.js.map → p-277a736d.system.entry.js.map} +0 -0
  236. /package/dist/twilight/{p-2ce0a07a.entry.js.map → p-2984d7ee.entry.js.map} +0 -0
  237. /package/dist/twilight/{p-f14d4763.entry.js.map → p-3f973235.entry.js.map} +0 -0
  238. /package/dist/twilight/{p-28d837ee.entry.js.map → p-4163dbb9.entry.js.map} +0 -0
  239. /package/dist/twilight/{p-0bfcfa47.system.entry.js.map → p-4526ac8e.system.entry.js.map} +0 -0
  240. /package/dist/twilight/{p-9900d67e.entry.js.map → p-50baf30c.entry.js.map} +0 -0
  241. /package/dist/twilight/{p-cf17e7f5.system.entry.js.map → p-5237da49.system.entry.js.map} +0 -0
  242. /package/dist/twilight/{p-ea2a8ec3.system.entry.js.map → p-551f5ae2.system.entry.js.map} +0 -0
  243. /package/dist/twilight/{p-325e8a3e.entry.js.map → p-55cef941.entry.js.map} +0 -0
  244. /package/dist/twilight/{p-e0f20b16.system.entry.js.map → p-5c3c4081.system.entry.js.map} +0 -0
  245. /package/dist/twilight/{p-87eef8f5.system.entry.js.map → p-689aca0e.system.entry.js.map} +0 -0
  246. /package/dist/twilight/{p-b45186d2.entry.js.map → p-6984531d.entry.js.map} +0 -0
  247. /package/dist/twilight/{p-f047dc2e.system.entry.js.map → p-6993e228.system.entry.js.map} +0 -0
  248. /package/dist/twilight/{p-1fe13a36.system.entry.js.map → p-718df47e.system.entry.js.map} +0 -0
  249. /package/dist/twilight/{p-e803e9c9.system.entry.js.map → p-7b1212df.system.entry.js.map} +0 -0
  250. /package/dist/twilight/{p-0a352565.entry.js.map → p-8177ab73.entry.js.map} +0 -0
  251. /package/dist/twilight/{p-d9e539ba.system.entry.js.map → p-8c1eca80.system.entry.js.map} +0 -0
  252. /package/dist/twilight/{p-652c3a18.system.entry.js.map → p-8c5e2cf8.system.entry.js.map} +0 -0
  253. /package/dist/twilight/{p-c8fa97ee.system.entry.js.map → p-905c335e.system.entry.js.map} +0 -0
  254. /package/dist/twilight/{p-801b8cf5.entry.js.map → p-9ddaf4b2.entry.js.map} +0 -0
  255. /package/dist/twilight/{p-2c742cef.system.entry.js.map → p-9f151920.system.entry.js.map} +0 -0
  256. /package/dist/twilight/{p-60e44e99.system.entry.js.map → p-9f64a8a7.system.entry.js.map} +0 -0
  257. /package/dist/twilight/{p-66f5c6cb.entry.js.map → p-a8128d9a.entry.js.map} +0 -0
  258. /package/dist/twilight/{p-679bcc4c.entry.js.map → p-b3df8eba.entry.js.map} +0 -0
  259. /package/dist/twilight/{p-bced4dd5.system.entry.js.map → p-b66ce34c.system.entry.js.map} +0 -0
  260. /package/dist/twilight/{p-18cad003.system.entry.js.map → p-b93f8a7b.system.entry.js.map} +0 -0
  261. /package/dist/twilight/{p-15ac73d8.entry.js.map → p-bd675f34.entry.js.map} +0 -0
  262. /package/dist/twilight/{p-8128a6af.system.entry.js.map → p-c5f58299.system.entry.js.map} +0 -0
  263. /package/dist/twilight/{p-3fc226d0.entry.js.map → p-c76c05ff.entry.js.map} +0 -0
  264. /package/dist/twilight/{p-94338a6a.entry.js.map → p-ca989cdf.entry.js.map} +0 -0
  265. /package/dist/twilight/{p-283e5d2a.system.entry.js.map → p-cac0a37c.system.entry.js.map} +0 -0
  266. /package/dist/twilight/{p-6f789c6a.system.entry.js.map → p-cc93cc27.system.entry.js.map} +0 -0
  267. /package/dist/twilight/{p-f2fb025f.system.entry.js.map → p-cdfb75e6.system.entry.js.map} +0 -0
  268. /package/dist/twilight/{p-a6ab5583.entry.js.map → p-dae66c49.entry.js.map} +0 -0
  269. /package/dist/twilight/{p-07be7362.entry.js.map → p-e75ddf6b.entry.js.map} +0 -0
  270. /package/dist/twilight/{p-feb47683.system.entry.js.map → p-ea45208a.system.entry.js.map} +0 -0
  271. /package/dist/twilight/{p-acd4ad3d.entry.js.map → p-eb859ac0.entry.js.map} +0 -0
  272. /package/dist/twilight/{p-112a3593.entry.js.map → p-eb86070c.entry.js.map} +0 -0
  273. /package/dist/twilight/{p-a4335e96.entry.js.map → p-efb54461.entry.js.map} +0 -0
  274. /package/dist/twilight/{p-594e29ef.system.entry.js.map → p-f1493561.system.entry.js.map} +0 -0
  275. /package/dist/twilight/{p-03eeed12.entry.js.map → p-f192ed81.entry.js.map} +0 -0
  276. /package/dist/twilight/{p-780e11a1.entry.js.map → p-f5534187.entry.js.map} +0 -0
  277. /package/dist/twilight/{p-73c55156.entry.js.map → p-fa752787.entry.js.map} +0 -0
  278. /package/dist/twilight/{p-f1f76cad.entry.js.map → p-fc5309ad.entry.js.map} +0 -0
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { b as bootstrapLazy } from './index-BFfNxHPV.js';
5
- export { s as setNonce } from './index-BFfNxHPV.js';
6
- import { g as globalScripts } from './app-globals-IYG3dX-R.js';
4
+ import { b as bootstrapLazy } from './index-BJcojI6v.js';
5
+ export { s as setNonce } from './index-BJcojI6v.js';
6
+ import { g as globalScripts } from './app-globals-sE_ZSx6e.js';
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement, f as getDefaultExportFromCjs, F as Fragment, i as axios } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement, f as getDefaultExportFromCjs, F as Fragment, i as axios } from './index-BJcojI6v.js';
5
5
  import { a as anime } from './anime.es-CgtvEd63.js';
6
6
  import { A as ArrowDownIcon, S as SpecialDiscountIcon } from './special-discount-yRO-ZESF.js';
7
7
  import { I as IconVerified } from './check-uTyAzPSy.js';
8
- import { H as Helper } from './Helper-BrCHOtZG.js';
8
+ import { H as Helper } from './Helper-MNQx5g4A.js';
9
9
  import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
10
10
  import { S as ShoppingBag } from './shopping-bag-DiKTtDW5.js';
11
11
  import { M as MailIcon } from './mail-DmgxDvXL.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, g as getElement } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, h, g as getElement } from './index-BJcojI6v.js';
5
5
  import { a as anime } from './anime.es-CgtvEd63.js';
6
6
 
7
7
  const sallaAdvertisementCss = ":host{display:block}";
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, g as getElement } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-BJcojI6v.js';
5
5
 
6
6
  const sallaAppInstallAlertCss = ":host{display:block}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, g as getElement } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-BJcojI6v.js';
5
5
 
6
6
  const sallaAppsIconsCss = ":host{display:block}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-BJcojI6v.js';
5
5
 
6
6
  var BookingTime = `<!-- Generated by IcoMoon.io -->
7
7
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, h } from './index-BJcojI6v.js';
5
5
  import { S as SpecialDiscountIcon, A as ArrowDownIcon } from './special-discount-yRO-ZESF.js';
6
6
 
7
7
  var GiftIcon = `<!-- Generated by IcoMoon.io -->
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, h, H as Host } from './index-BJcojI6v.js';
5
5
 
6
6
  var DiscountType;
7
7
  (function (DiscountType) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, g as getElement } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-BJcojI6v.js';
5
5
  import { w as whatsapp } from './whatsapp2-DWksgowB.js';
6
6
  import { M as MailIcon } from './mail-DmgxDvXL.js';
7
7
 
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-BFfNxHPV.js';
5
- import { H as Helper } from './Helper-BrCHOtZG.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-BJcojI6v.js';
5
+ import { H as Helper } from './Helper-MNQx5g4A.js';
6
6
  import { F as FilterOptionTypes } from './interfaces-DL4h2bc3.js';
7
7
  import './anime.es-CgtvEd63.js';
8
8
 
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-BJcojI6v.js';
5
5
  import { F as FilterOptionTypes } from './interfaces-DL4h2bc3.js';
6
- import { H as Helper } from './Helper-BrCHOtZG.js';
6
+ import { H as Helper } from './Helper-MNQx5g4A.js';
7
7
  import './anime.es-CgtvEd63.js';
8
8
 
9
9
  const sallaFiltersCss = ":host{display:block}.s-rating-stars-small{line-height:12px}.s-filters-radio{background-image:none !important}";
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, g as getElement } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-BJcojI6v.js';
5
5
 
6
6
  const sallaInstallmentCss = "salla-installment:empty{display:none}#tabbyPromoWrapper{background:white;border-radius:0.375rem;-webkit-transition:-webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), -webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);margin-bottom:20px;border:unset !important;font-weight:500}.salla-y #tabbyPromoWrapper{border:1px solid var(--color-grey-dark);border-radius:12px}#tabbyPromoWrapper:hover{-webkit-box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922);box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}#tabbyPromoWrapper #tabbyPromo *{font-family:var(--font-main)}#tabbyPromoWrapper #tabbyPromo>div>div{max-width:none;-webkit-box-shadow:none;box-shadow:none;border:none}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet{max-width:100%;min-height:100px;padding:18px 20px;border:none !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__text,#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-size:var(--font-sm);color:var(--color-text) !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-weight:bold}.tabby-promo-wrapper #tabby-promo{font-family:var(--font-main) !important}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-title{font-size:var(--font-md)}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-desc{font-size:var(--font-sm);line-height:20px}.tamara-product-widget{margin-bottom:20px}.tamara-product-widget,.spotii-wrapper{min-height:100px;position:relative;color:var(--main-text-color);font-size:var(--font-sm);line-height:1.25;padding:20px 20px 20px 115px !important;background:white;border-radius:0.375rem;-webkit-transition:-webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), -webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);border:unset !important;font-family:inherit !important;font-weight:500}.salla-y .tamara-product-widget,.salla-y .spotii-wrapper{border-radius:12px;border:1px solid var(--color-grey-dark)}.tamara-product-widget:hover,.spotii-wrapper:hover{-webkit-box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922);box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}.tamara-product-widget .spotii-logo,.spotii-wrapper .spotii-logo{float:left;margin:0 0 0 -75px}.ltr .tamara-product-widget,.ltr .spotii-wrapper{text-align:left;padding:18px 100px 18px 20px !important}.ltr .tamara-product-widget .spotii-logo,.ltr .spotii-wrapper .spotii-logo{float:right;margin:0 -75px 0 0}.ltr .tamara-product-widget .spotii-product-widget,.ltr .spotii-wrapper .spotii-product-widget{text-align:left !important}.spotii-wrapper{margin-bottom:20px}.spotii-wrapper .spotii-promo{font-size:var(--font-md)}.spotii-wrapper .spotii-product-widget{font-size:var(--font-sm) !important;margin-top:10px}.tamara-product-widget .tamara-logo{position:absolute;left:20px !important;top:35px !important;margin:0 !important;height:24px !important}.ltr .tamara-product-widget .tamara-logo{right:20px !important;left:auto !important}.tamara-product-widget span{font-family:var(--font-main);font-size:var(--font-sm);color:var(--color-text)}.tamara-product-widget span:last-child{display:block;position:relative;margin-top:8px}.tamara-popup__wrap{overflow:auto !important}.s-installment-mispay-wrapper,.s-installment-madfu-wrapper,.s-installment-emkan-wrapper,.s-installment-rajehi-wrapper{font-size:14px;text-align:right;padding:20px;gap:42px;direction:rtl;line-height:22px;color:rgb(0, 0, 0);min-width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;background-color:white;border-radius:10px;margin:15px 0;display:-ms-flexbox;display:flex;-webkit-transition:-webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), -webkit-box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1)}.s-installment-mispay-wrapper:hover,.s-installment-madfu-wrapper:hover,.s-installment-emkan-wrapper:hover,.s-installment-rajehi-wrapper:hover{-webkit-box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922);box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}.s-installment-mispay-content,.s-installment-madfu-content,.s-installment-emkan-content,.s-installment-rajehi-content{display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse;width:100%;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;gap:1rem}.ltr .s-installment-mispay-content,.ltr .s-installment-madfu-content,.ltr .s-installment-emkan-content,.ltr .s-installment-rajehi-content{-ms-flex-direction:row;flex-direction:row}.s-installment-mispay-content-text,.s-installment-madfu-content-text,.s-installment-emkan-content-text,.s-installment-rajehi-content-text{color:var(--main-text-color);font-size:14px;font-weight:500;margin:0 16px 0 0;width:80%;left:14px;text-align:left}.s-installment-mispay-content img,.s-installment-madfu-content img,.s-installment-emkan-content img,.s-installment-rajehi-content img{height:28px;width:70px;display:inline-block;max-height:100%;vertical-align:middle;fill:none;stroke:unset;width:auto}.rtl .s-installment-mispay-content-text,.rtl .s-installment-madfu-content-text,.rtl .s-installment-emkan-content-text,.rtl .s-installment-rajehi-content-text{right:14px;text-align:right;margin:0 0 0 16px}.rtl .s-installment-mispay-content img,.rtl .s-installment-madfu-content img,.rtl .s-installment-emkan-content img,.rtl .s-installment-rajehi-content img{left:14px !important}.ltr .s-installment-mispay-content img,.ltr .s-installment-madfu-content img,.ltr .s-installment-emkan-content img,.ltr .s-installment-rajehi-content img{right:14px !important}.s-installment-rajehi-content img{width:70px !important;height:40px !important}.s-installment-emkan-content img{height:35px !important}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-BJcojI6v.js';
5
5
 
6
6
  const sallaLoyaltyPrizeItemCss = "salla-loyalty-prize-item:hover{-webkit-box-shadow:0 5px 15px 1px rgba(0, 0, 0, 0.04) !important;box-shadow:0 5px 15px 1px rgba(0, 0, 0, 0.04) !important}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, g as getElement } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-BJcojI6v.js';
5
5
 
6
6
  const sallaMetadataCss = "";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, h } from './index-BJcojI6v.js';
5
5
 
6
6
  const sallaNotificationsCss = "";
7
7
 
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, g as getElement } from './index-BFfNxHPV.js';
5
- import { H as Helper } from './Helper-BrCHOtZG.js';
4
+ import { r as registerInstance, h, g as getElement } from './index-BJcojI6v.js';
5
+ import { H as Helper } from './Helper-MNQx5g4A.js';
6
6
  import './anime.es-CgtvEd63.js';
7
7
 
8
8
  const sallaNotificationsCss = "";
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, g as getElement } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, h, g as getElement } from './index-BJcojI6v.js';
5
5
 
6
6
  var PageType;
7
7
  (function (PageType) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, h } from './index-BJcojI6v.js';
5
5
  import { I as IconVerified } from './check-uTyAzPSy.js';
6
6
 
7
7
  var iconFileArchive = `<!-- Generated by IcoMoon.io -->
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, g as getElement } from './index-BFfNxHPV.js';
5
- import { H as Helper } from './Helper-BrCHOtZG.js';
4
+ import { r as registerInstance, h, g as getElement } from './index-BJcojI6v.js';
5
+ import { H as Helper } from './Helper-MNQx5g4A.js';
6
6
  import './anime.es-CgtvEd63.js';
7
7
 
8
8
  const sallaOrdersCss = ":host{display:block}";
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, g as getElement } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-BJcojI6v.js';
5
5
 
6
6
  const sallaPaymentsCss = ":host{display:block}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-BJcojI6v.js';
5
5
  import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
6
6
 
7
7
  var arrowRight = `<!-- Generated by IcoMoon.io -->
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-BJcojI6v.js';
5
5
  import { I as IconVerified } from './check-uTyAzPSy.js';
6
6
  import { C as CameraIcon } from './camera-C6jIkM-X.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, g as getElement } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, h, g as getElement } from './index-BJcojI6v.js';
5
5
  import { I as IconVerified } from './check-uTyAzPSy.js';
6
6
 
7
7
  var IconStar2 = ` <svg width="18" height="17" view-box="0 0 18 17" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { a as require_root, d as requireIsObject, e as requireIsSymbol, f as getDefaultExportFromCjs, r as registerInstance, h, g as getElement } from './index-BFfNxHPV.js';
4
+ import { a as require_root, d as requireIsObject, e as requireIsSymbol, f as getDefaultExportFromCjs, r as registerInstance, h, g as getElement } from './index-BJcojI6v.js';
5
5
  import { S as ShoppingBag } from './shopping-bag-DiKTtDW5.js';
6
- import { H as Helper } from './Helper-BrCHOtZG.js';
6
+ import { H as Helper } from './Helper-MNQx5g4A.js';
7
7
  import './anime.es-CgtvEd63.js';
8
8
 
9
9
  var now_1;
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, h } from './index-BJcojI6v.js';
5
5
  import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
6
- import { H as Helper } from './Helper-BrCHOtZG.js';
6
+ import { H as Helper } from './Helper-MNQx5g4A.js';
7
7
  import './anime.es-CgtvEd63.js';
8
8
 
9
9
  var IconQuoteOpen = `<!-- Generated by IcoMoon.io -->
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, g as getElement } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-BJcojI6v.js';
5
5
  import { f as facebook, t as twitter } from './twitter-Dz7o69vX.js';
6
6
 
7
7
  var instagram = `<!-- Generated by IcoMoon.io -->
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, g as getElement } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, h, g as getElement } from './index-BJcojI6v.js';
5
5
 
6
6
  const sallaTooltipCss = ".s-tooltip-container{position:relative;display:inline-block}.s-tooltip-item{position:absolute;-webkit-transform:translateX(-39%);transform:translateX(-39%);background-color:#baf3e6;color:#004d5a;bottom:100%;left:50%;text-align:center;border-radius:5px;z-index:1;white-space:nowrap;opacity:0;-webkit-transition:opacity 0.3s;transition:opacity 0.3s;pointer-events:none;margin:0 0 16px 8px;padding:12px;max-width:150px;width:190px;white-space:normal;opacity:1}.s-tooltip-item::after{content:\"\";position:absolute;bottom:-10px;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#baf3e6 transparent transparent transparent}.s-tooltip-item:dir(ltr){-webkit-transform:translateX(-72%);transform:translateX(-72%)}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-BJcojI6v.js';
5
5
  import { M as MailIcon } from './mail-DmgxDvXL.js';
6
6
 
7
7
  var AndroidPhoneIcon = `<!-- Generated by IcoMoon.io -->
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-BFfNxHPV.js';
4
+ import { r as registerInstance, h, H as Host } from './index-BJcojI6v.js';
5
5
 
6
6
  const sallaWalletCss = ".s-wallet-table{min-width:100%}.s-wallet-table-balance-container{display:-ms-flexbox !important;display:flex !important;-ms-flex-align:center !important;align-items:center !important;-ms-flex-pack:start !important;justify-content:flex-start !important;gap:1rem}.s-wallet-table-balance-icon{border-radius:50%;width:52px;height:52px;font-size:25px;padding:16px 13px;background:var(--color-primary-reverse);color:var(--color-primary)}.s-wallet-table-empty-state{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.s-wallet-table-empty-state i{font-size:80px;margin:4rem 0 2rem;color:var(--infinte-color)}.s-wallet-table-transaction-status{padding:6px 19px !important;border-radius:20px;width:-webkit-max-content;width:-moz-max-content;width:max-content;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.s-wallet-table-transaction-status-default{background:#fff6eb;color:#a46f29}.s-wallet-table-transaction-status-cashback{background:#effbf6;color:#00af6c}.s-wallet-table-transaction-status-refund{background:#ecf3fe;color:#5196f3}.s-wallet-table-transaction-status-purchase{background:#feecec;color:#f55157}.s-wallet-table-transaction-status-icons-success{color:#00af6c}";
7
7
 
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { p as promiseResolve, b as bootstrapLazy } from './index-BFfNxHPV.js';
5
- export { s as setNonce } from './index-BFfNxHPV.js';
6
- import { g as globalScripts } from './app-globals-IYG3dX-R.js';
4
+ import { p as promiseResolve, b as bootstrapLazy } from './index-BJcojI6v.js';
5
+ export { s as setNonce } from './index-BJcojI6v.js';
6
+ import { g as globalScripts } from './app-globals-sE_ZSx6e.js';
7
7
 
8
8
  /*
9
9
  Stencil Client Patch Browser v4.35.1 | MIT Licensed | https://stenciljs.com
@@ -1,5 +1,5 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,a){function u(t){try{c(n.next(t))}catch(t){a(t)}}function o(t){try{c(n["throw"](t))}catch(t){a(t)}}function c(t){t.done?r(t.value):i(t.value).then(u,o)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(t){return function(e){return c([t,e])}}function c(o){if(n)throw new TypeError("Generator is already executing.");while(u&&(u=0,o[0]&&(r=0)),r)try{if(n=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;i=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(o[0]===6&&r.label<a[1]){r.label=a[1];a=o;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(o);break}if(a[2])r.ops.pop();r.trys.pop();continue}o=e.call(t,r)}catch(t){o=[6,t];i=0}finally{n=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++){if(a||!(n in e)){if(!a)a=Array.prototype.slice.call(e,0,n);a[n]=e[n]}}return t.concat(a||Array.prototype.slice.call(e))};
1
+ var __awaiter=this&&this.__awaiter||function(t,e,r,n){function a(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,i){function u(t){try{c(n.next(t))}catch(t){i(t)}}function o(t){try{c(n["throw"](t))}catch(t){i(t)}}function c(t){t.done?r(t.value):a(t.value).then(u,o)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,u;return u={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(t){return function(e){return c([t,e])}}function c(o){if(n)throw new TypeError("Generator is already executing.");while(u&&(u=0,o[0]&&(r=0)),r)try{if(n=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(o[0]===6&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}if(i[2])r.ops.pop();r.trys.pop();continue}o=e.call(t,r)}catch(t){o=[6,t];a=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,a=e.length,i;n<a;n++){if(i||!(n in e)){if(!i)i=Array.prototype.slice.call(e,0,n);i[n]=e[n]}}return t.concat(i||Array.prototype.slice.call(e))};
2
2
  /*!
3
3
  * Crafted with ❤ by Salla
4
- */import{a as anime}from"./anime.es-CgtvEd63.js";salla.event.setMaxListeners(100);var Helper=function(){function t(){}t.prototype.setIncludes=function(t){this.includes=t;return this};t.prototype.toggleElementClassIf=function(t,e,r,n){var i,a;e=Array.isArray(e)?e:e.split(" ");r=Array.isArray(r)?r:r.split(" ");var u=n(t);t===null||t===void 0?void 0:(i=t.classList).remove.apply(i,u?r:e);t===null||t===void 0?void 0:(a=t.classList).add.apply(a,u?e:r);return this};t.prototype.toggleClassIf=function(t,e,r,n){var i=this;document.querySelectorAll(t).forEach((function(t){return i.toggleElementClassIf(t,e,r,n)}));return this};t.prototype.isValidEmail=function(t){var e=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return e.test(String(t).toLowerCase())};t.prototype.filterEmojies=function(t){var e=/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g;return t.replace(e,"")};t.prototype.debounce=function(t){var e=[];for(var r=1;r<arguments.length;r++){e[r-1]=arguments[r]}if(!this.debounce_){this.debounce_=salla.helpers.debounce((function(t){var e=[];for(var r=1;r<arguments.length;r++){e[r-1]=arguments[r]}return t.apply(void 0,e)}),500)}return this.debounce_.apply(this,__spreadArray([t],e,false))};t.prototype.getProductsSource=function(t){return{"brands.single":"brands","product.index":"categories","product.index.latest":"latest","product.index.offers":"offers","product.index.search":"search","customer.wishlist":"wishlist","landing-page":"landing-page","product.index.tag":"tags","product.index.sales":"sales","components.most_sales_products":"sales"}[t||salla.config.get("page.slug")]||t||"latest"};t.prototype.getPageTitleForSource=function(t){t={brands:"common.titles.brands",latest:"blocks.home.latest_products",offers:"common.titles.discounts",sales:"common.titles.most_sales"}[t];return t?salla.lang.get(t):""};t.prototype.getProductsSourceValue=function(t,e){var r=this.getProductsSource(t);var n=null;if(e){try{n=typeof e==="string"?JSON.parse(e):e}catch(t){console.error("Failed to parse JSON string in sourceValue:",t)}}if(!["search","json","offers","latest","sales","related"].includes(r)){if(Array.isArray(n)&&n.length){return n}if(Array.isArray(n)&&!n.length){return""}if(typeof n==="number"){return[n]}if(!e&&["categories","tags","brands"].includes(t)){return[salla.config.get("page.id")]}}if(n||e){return n||e}if(r==="search"){return new URLSearchParams(window.location.search).get("q")||""}return salla.config.get("page.id")};t.prototype.extractFiltersFromUrl=function(t){var e={};t.forEach((function(t,r){var n=r.match(/^filters\[(.*?)\](\[(.*?)\])?$/u);if(n){var i=n[1];var a=n[3];if(a){e[i]=e[i]||{};e[i][a]=t}else{e[i]=t}}else{var u=r.match(/^(.*?)$/u);if(u){e[u[1]]=t}}}));return e};t.prototype.injectExtraFieldsToResponse=function(t){return __awaiter(this,void 0,void 0,(function(){var e,r,n,i;return __generator(this,(function(a){switch(a.label){case 0:if(!t||!this.includes)return[2,t];e=t.data.map((function(t){return t.id}));a.label=1;case 1:a.trys.push([1,4,,5]);return[4,this.fetchImagesAndOptions(e)];case 2:r=a.sent().data;this.injectOptionsAndImages(t.data,r);if(!this.includes.includes("metadata")){return[2,t]}return[4,salla.api.metadata.fetchValues("product",e)];case 3:n=a.sent();t.data.forEach((function(t){t["metadata"]=n.data.find((function(e){return parseInt(e.entity_id)===parseInt(t.id)}))}));return[2,t];case 4:i=a.sent();console.error("Error in injectExtraFieldsToResponse:",i);throw i;case 5:return[2]}}))}))};t.prototype.fetchImagesAndOptions=function(t){return this.productsIncludes().length?salla.api.product.fetchOptions(t,{with:this.productsIncludes()}):Promise.resolve({data:[]})};t.prototype.injectOptionsAndImages=function(t,e){var r=this;return e.length?t.map((function(t){r.includes.filter((function(t){return t!=="metadata"})).forEach((function(r){var n=e.find((function(e){return parseInt(e.id)===parseInt(t.id)}));t[r]=n?n[r]:null}));return t})):null};t.prototype.productsIncludes=function(){var t;return(t=this.includes)===null||t===void 0?void 0:t.filter((function(t){return t!="metadata"}))};t.prototype.parseJson=function(t){if(typeof t!=="string"){return t}try{return JSON.parse(t)}catch(t){salla.logger.error("Failed to parse includes as JSON:",t)}return null};t.prototype.getProductSchemaMarkupScript=function(t){var e,r;var n=document.createElement("script");n.type="application/ld+json";var i={"@context":"http://schema.org","@type":"Product",name:t===null||t===void 0?void 0:t.name,image:((e=t===null||t===void 0?void 0:t.image)===null||e===void 0?void 0:e.url)||(t===null||t===void 0?void 0:t.thumbnail),description:t===null||t===void 0?void 0:t.description,brand:{"@type":"Brand",logo:(r=t===null||t===void 0?void 0:t.brand)===null||r===void 0?void 0:r.logo},offers:{"@type":"Offer",price:t===null||t===void 0?void 0:t.price}};n.text=JSON.stringify(i);return n};t.prototype.createProductSchema=function(t,e){var r;var n={productID:"".concat(t.id),"@type":"Product",name:t.name,url:t.url,image:t.image.url||t.image,description:t.description||t.subtitle||t.name,offers:{"@type":"Offer",url:t.url,priceCurrency:t.currency,price:t.price,itemCondition:"NewCondition",availability:t.is_available?"InStock":"OutOfStock",priceValidUntil:t.discount_ends||new Date((new Date).setDate((new Date).getDate()+7)).toISOString().split("T")[0],priceSpecification:{"@type":"PriceSpecification",price:t.regular_price,priceCurrency:t.currency,valueAddedTaxIncluded:t.is_taxable},seller:{"@type":"Organization",name:salla.config.get("store.name")}}};if((r=t.rating)===null||r===void 0?void 0:r.stars){n.aggregateRating={"@type":"AggregateRating",ratingValue:t.rating.stars,reviewCount:t.rating.count}}return{"@type":"ListItem",position:e,item:n}};t.prototype.generateProductSchema=function(t){var e=this;var r="salla-product-schema-script";if(document.getElementById(r)){salla.logger.warn("already added schema-script with id (".concat(r,")!"));return}var n=document.createElement("script");n.type="application/ld+json";n.id=r;var i={"@context":"https://schema.org","@type":"ItemList",name:salla.config.get("page.title"),itemListElement:t.map((function(t,r){return e.createProductSchema(t,r+1)}))};n.textContent=JSON.stringify(i);document.head.appendChild(n)};t.prototype.formatDateFromString=function(t,e,r){if(r===void 0){r="en"}var n=new Date(t);var i={en:"Invalid Date",ar:"تاريخ غير صالح"};if(isNaN(n.getTime())){return i[r]}var a={en:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ar:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]};var u={en:["January","February","March","April","May","June","July","August","September","October","November","December"],ar:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]};var o=a[r][n.getDay()];var c=e(n.getDate(),r==="en");var s=u[r][n.getMonth()];var d=e(n.getFullYear(),r==="en");return"".concat(o," ").concat(c," ").concat(s," ").concat(d)};t.prototype.copyToClipboard=function(t){var e=t.target.innerText;navigator.clipboard.writeText(e).then((function(){console.log("Text copied to clipboard: "+e)})).catch((function(t){console.error("Unable to copy text to clipboard",t)}))};t.prototype.animateItems=function(t){if(!t)return;anime({targets:t,opacity:[0,1],duration:1200,translateY:[20,0],delay:function(t,e){return e*100},easing:"easeOutExpo",complete:function(e){t.forEach((function(t){t.classList.add("animated")}))}})};t.prototype.createReviewObject=function(t){return{"@type":"Review",author:t.name,datePublished:t.date*1e3,description:t.content,reviewRating:{"@type":"Rating",bestRating:"5",ratingValue:"5",worstRating:"1"}}};t.prototype.generateReviewSchema=function(t){var e=this;var r=document.createElement("script");r.type="application/ld+json";var n={"@context":"http://schema.org/","@type":"CollectionPage",name:"Category Name",description:"Description of the category",review:t.map((function(t){return e.createReviewObject(t)}))};r.textContent=JSON.stringify(n);document.head.appendChild(r)};return t}();var Helper$1=new Helper;export{Helper$1 as H};
5
- //# sourceMappingURL=Helper-BrCHOtZG.js.map
4
+ */import{a as anime}from"./anime.es-CgtvEd63.js";salla.event.setMaxListeners(100);var Helper=function(){function t(){}t.prototype.setIncludes=function(t){this.includes=t;return this};t.prototype.toggleElementClassIf=function(t,e,r,n){var a,i;e=Array.isArray(e)?e:e.split(" ");r=Array.isArray(r)?r:r.split(" ");var u=n(t);t===null||t===void 0?void 0:(a=t.classList).remove.apply(a,u?r:e);t===null||t===void 0?void 0:(i=t.classList).add.apply(i,u?e:r);return this};t.prototype.toggleClassIf=function(t,e,r,n){var a=this;document.querySelectorAll(t).forEach((function(t){return a.toggleElementClassIf(t,e,r,n)}));return this};t.prototype.isValidEmail=function(t){var e=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return e.test(String(t).toLowerCase())};t.prototype.filterEmojies=function(t){var e=/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g;return t.replace(e,"")};t.prototype.debounce=function(t){var e=[];for(var r=1;r<arguments.length;r++){e[r-1]=arguments[r]}if(!this.debounce_){this.debounce_=salla.helpers.debounce((function(t){var e=[];for(var r=1;r<arguments.length;r++){e[r-1]=arguments[r]}return t.apply(void 0,e)}),500)}return this.debounce_.apply(this,__spreadArray([t],e,false))};t.prototype.getProductsSource=function(t){return{"brands.single":"brands","product.index":"categories","product.index.latest":"latest","product.index.offers":"offers","product.index.search":"search","customer.wishlist":"wishlist","landing-page":"landing-page","product.index.tag":"tags","product.index.sales":"sales","components.most_sales_products":"sales"}[t||salla.config.get("page.slug")]||t||"latest"};t.prototype.getPageTitleForSource=function(t){t={brands:"common.titles.brands",latest:"blocks.home.latest_products",offers:"common.titles.discounts",sales:"common.titles.most_sales"}[t];return t?salla.lang.get(t):""};t.prototype.getProductsSourceValue=function(t,e){var r=this.getProductsSource(t);var n=null;if(e){try{n=typeof e==="string"?JSON.parse(e):e}catch(t){console.error("Failed to parse JSON string in sourceValue:",t)}}if(!["search","json","offers","latest","sales","related"].includes(r)){if(Array.isArray(n)&&n.length){return n}if(Array.isArray(n)&&!n.length){return""}if(typeof n==="number"){return[n]}if(!e&&["categories","tags","brands"].includes(t)){return[salla.config.get("page.id")]}}if(n||e){return n||e}if(r==="search"){return new URLSearchParams(window.location.search).get("q")||""}return salla.config.get("page.id")};t.prototype.extractFiltersFromUrl=function(t){var e={};t.forEach((function(t,r){var n=r.match(/^filters\[(.*?)\](\[(.*?)\])?$/u);if(n){var a=n[1];var i=n[3];if(i){e[a]=e[a]||{};e[a][i]=t}else{e[a]=t}}else{var u=r.match(/^(.*?)$/u);if(u){e[u[1]]=t}}}));return e};t.prototype.injectExtraFieldsToResponse=function(t){return __awaiter(this,void 0,void 0,(function(){var e,r,n,a;return __generator(this,(function(i){switch(i.label){case 0:if(!t||!this.includes)return[2,t];e=t.data.map((function(t){return t.id}));i.label=1;case 1:i.trys.push([1,4,,5]);return[4,this.fetchImagesAndOptions(e)];case 2:r=i.sent().data;this.injectOptionsAndImages(t.data,r);if(!this.includes.includes("metadata")){return[2,t]}return[4,salla.api.metadata.fetchValues("product",e)];case 3:n=i.sent();t.data.forEach((function(t){t["metadata"]=n.data.find((function(e){return parseInt(e.entity_id)===parseInt(t.id)}))}));return[2,t];case 4:a=i.sent();console.error("Error in injectExtraFieldsToResponse:",a);throw a;case 5:return[2]}}))}))};t.prototype.fetchImagesAndOptions=function(t){return this.productsIncludes().length?salla.api.product.fetchOptions(t,{with:this.productsIncludes()}):Promise.resolve({data:[]})};t.prototype.injectOptionsAndImages=function(t,e){var r=this;return e.length?t.map((function(t){r.includes.filter((function(t){return t!=="metadata"})).forEach((function(r){var n=e.find((function(e){return parseInt(e.id)===parseInt(t.id)}));t[r]=n?n[r]:null}));return t})):null};t.prototype.productsIncludes=function(){var t;return(t=this.includes)===null||t===void 0?void 0:t.filter((function(t){return t!="metadata"}))};t.prototype.parseJson=function(t){if(typeof t!=="string"){return t}try{return JSON.parse(t)}catch(t){salla.logger.error("Failed to parse includes as JSON:",t)}return null};t.prototype.getProductSchemaMarkupScript=function(t){var e,r;var n=document.createElement("script");n.type="application/ld+json";var a={"@context":"http://schema.org","@type":"Product",name:t===null||t===void 0?void 0:t.name,image:((e=t===null||t===void 0?void 0:t.image)===null||e===void 0?void 0:e.url)||(t===null||t===void 0?void 0:t.thumbnail),description:t===null||t===void 0?void 0:t.description,brand:{"@type":"Brand",logo:(r=t===null||t===void 0?void 0:t.brand)===null||r===void 0?void 0:r.logo},offers:{"@type":"Offer",price:t===null||t===void 0?void 0:t.price}};n.text=JSON.stringify(a);return n};t.prototype.createProductSchema=function(t,e){var r;var n={productID:"".concat(t.id),"@type":"Product",name:t.name,url:t.url,image:t.image.url||t.image,description:t.description||t.subtitle||t.name,offers:{"@type":"Offer",url:t.url,priceCurrency:t.currency,price:t.price,itemCondition:"NewCondition",availability:t.is_available?"InStock":"OutOfStock",priceValidUntil:t.discount_ends||new Date((new Date).setDate((new Date).getDate()+7)).toISOString().split("T")[0],priceSpecification:{"@type":"PriceSpecification",price:t.regular_price,priceCurrency:t.currency,valueAddedTaxIncluded:t.is_taxable},seller:{"@type":"Organization",name:salla.config.get("store.name")}}};if((r=t.rating)===null||r===void 0?void 0:r.stars){n.aggregateRating={"@type":"AggregateRating",ratingValue:t.rating.stars,reviewCount:t.rating.count}}return{"@type":"ListItem",position:e,item:n}};t.prototype.generateProductSchema=function(t){var e=this;var r="salla-product-schema-script";if(document.getElementById(r)){salla.logger.warn("already added schema-script with id (".concat(r,")!"));return}var n=document.createElement("script");n.type="application/ld+json";n.id=r;var a={"@context":"https://schema.org","@type":"ItemList",name:salla.config.get("page.title"),itemListElement:t.map((function(t,r){return e.createProductSchema(t,r+1)}))};n.textContent=JSON.stringify(a);document.head.appendChild(n)};t.prototype.formatDateFromString=function(t,e,r){if(r===void 0){r="en"}var n=new Date(t);var a={en:"Invalid Date",ar:"تاريخ غير صالح"};if(isNaN(n.getTime())){return a[r]}var i={en:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ar:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]};var u={en:["January","February","March","April","May","June","July","August","September","October","November","December"],ar:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]};var o=i[r][n.getDay()];var c=e(n.getDate(),r==="en");var s=u[r][n.getMonth()];var d=e(n.getFullYear(),r==="en");return"".concat(o," ").concat(c," ").concat(s," ").concat(d)};t.prototype.copyToClipboard=function(t){var e=t.target.innerText;navigator.clipboard.writeText(e).then((function(){console.log("Text copied to clipboard: "+e)})).catch((function(t){console.error("Unable to copy text to clipboard",t)}))};t.prototype.animateItems=function(t){if(!t)return;anime({targets:t,opacity:[0,1],duration:1200,translateY:[20,0],delay:function(t,e){return e*100},easing:"easeOutExpo",complete:function(e){t.forEach((function(t){t.classList.add("animated")}))}})};t.prototype.createReviewObject=function(t){return{"@type":"Review",author:{"@type":"Person",name:t.name},reviewBody:t.content,reviewRating:{"@type":"Rating",bestRating:"5",ratingValue:t.stars,worstRating:"1"}}};t.prototype.generateReviewSchema=function(t){var e=this;var r=document.createElement("script");r.type="application/ld+json";var n={"@context":"http://schema.org/","@type":"Store",name:salla.config.get("store.name"),url:salla.config.get("store.url"),review:t.map((function(t){return e.createReviewObject(t)})),aggregateRating:{"@type":"AggregateRating",ratingValue:t.reduce((function(t,e){return t+e.stars}),0)/t.length,reviewCount:t.length}};r.textContent=JSON.stringify(n);document.head.appendChild(r)};return t}();var Helper$1=new Helper;export{Helper$1 as H};
5
+ //# sourceMappingURL=Helper-MNQx5g4A.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Helper-BrCHOtZG.js","sources":["src/Helpers/Helper.ts"],"sourcesContent":["import { ProductDetail } from \"@salla.sa/twilight/types/api/product\";\nimport { Review } from \"../../src/components/salla-reviews/interfaces\";\nimport { Product as SallaProduct } from \"@salla.sa/twilight/types/common\";\nimport { ListItem, ItemList, Product as SchemaProduct, WithContext } from 'schema-dts';\nimport { Product } from '@salla.sa/twilight/types/common';\nimport anime from 'animejs';\n\n//TODO::reduce it to 10\nsalla.event.setMaxListeners(100);\n\nclass Helper {\n private debounce_: any;\n private includes;\n\n setIncludes(includes:string[]){\n this.includes = includes;\n return this;\n }\n\n toggleElementClassIf(element, classes1, classes2, callback) {\n classes1 = Array.isArray(classes1) ? classes1 : classes1.split(' ');\n classes2 = Array.isArray(classes2) ? classes2 : classes2.split(' ');\n let isClasses1 = callback(element);\n element?.classList.remove(...(isClasses1 ? classes2 : classes1));\n element?.classList.add(...(isClasses1 ? classes1 : classes2));\n return this;\n }\n\n toggleClassIf(selector, classes1, classes2, callback) {\n document.querySelectorAll(selector).forEach(element => this.toggleElementClassIf(element, classes1, classes2, callback));\n return this;\n }\n\n isValidEmail(email) {\n const re = /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n return re.test(String(email).toLowerCase());\n }\n\n filterEmojies(text) {\n var characterFilter = /(?:[\\u2700-\\u27bf]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\u0023-\\u0039]\\ufe0f?\\u20e3|\\u3299|\\u3297|\\u303d|\\u3030|\\u24c2|\\ud83c[\\udd70-\\udd71]|\\ud83c[\\udd7e-\\udd7f]|\\ud83c\\udd8e|\\ud83c[\\udd91-\\udd9a]|\\ud83c[\\udde6-\\uddff]|\\ud83c[\\ude01-\\ude02]|\\ud83c\\ude1a|\\ud83c\\ude2f|\\ud83c[\\ude32-\\ude3a]|\\ud83c[\\ude50-\\ude51]|\\u203c|\\u2049|[\\u25aa-\\u25ab]|\\u25b6|\\u25c0|[\\u25fb-\\u25fe]|\\u00a9|\\u00ae|\\u2122|\\u2139|\\ud83c\\udc04|[\\u2600-\\u26FF]|\\u2b05|\\u2b06|\\u2b07|\\u2b1b|\\u2b1c|\\u2b50|\\u2b55|\\u231a|\\u231b|\\u2328|\\u23cf|[\\u23e9-\\u23f3]|[\\u23f8-\\u23fa]|\\ud83c\\udccf|\\u2934|\\u2935|[\\u2190-\\u21ff])/g;\n return text.replace(characterFilter, \"\");\n }\n\n debounce(fn, ...data) {\n if (!this.debounce_) {\n this.debounce_ = salla.helpers.debounce((callback, ...innerData) => callback(...innerData), 500);\n }\n //@ts-ignore\n return this.debounce_(fn, ...data);\n }\n\n getProductsSource(source) {\n return {\n 'brands.single': 'brands',\n 'product.index': 'categories',\n 'product.index.latest': 'latest',\n 'product.index.offers': 'offers',\n 'product.index.search': 'search',\n 'customer.wishlist': 'wishlist',\n 'landing-page': 'landing-page',\n 'product.index.tag': 'tags',\n 'product.index.sales': 'sales',\n 'components.most_sales_products': 'sales',//temporary, delete it after two days from now\n }[source || salla.config.get('page.slug')] || source || 'latest';\n }\n\n getPageTitleForSource(source) {\n\n source = {\n 'brands': 'common.titles.brands',\n // 'categories':'',\n 'latest': 'blocks.home.latest_products',\n 'offers': 'common.titles.discounts',\n // 'search':'',\n // 'landing-page':'',\n // 'tags':'',\n 'sales': 'common.titles.most_sales',\n }[source];\n\n return source ? salla.lang.get(source) : '';\n }\n\n getProductsSourceValue(source, sourceValue) {\n const parsedSource = this.getProductsSource(source);\n\n // Validate if the source value is a valid JSON string\n let parsedSourceValue: any = null;\n if (sourceValue) {\n try {\n parsedSourceValue = typeof sourceValue === 'string' ? JSON.parse(sourceValue) : sourceValue;\n } catch (error) {\n console.error('Failed to parse JSON string in sourceValue:', error);\n }\n }\n\n // Handle different source types\n if (!['search', 'json', 'offers', 'latest', 'sales', 'related'].includes(parsedSource)) {\n\n if (Array.isArray(parsedSourceValue) && parsedSourceValue.length) {\n return parsedSourceValue;\n }\n\n\n if (Array.isArray(parsedSourceValue) && !parsedSourceValue.length) {\n return '';\n }\n\n if (typeof parsedSourceValue === 'number') {\n return [parsedSourceValue];\n }\n\n if (!sourceValue && ['categories', 'tags', 'brands'].includes(source)) {\n return [salla.config.get('page.id')];\n }\n }\n\n // Return sourceValue if it exists and is a valid JSON object/array\n if (parsedSourceValue || sourceValue) {\n return parsedSourceValue || sourceValue;\n }\n\n if (parsedSource === 'search') {\n return new URLSearchParams(window.location.search).get('q') || '';\n }\n\n // Return page id as default value\n return salla.config.get('page.id');\n }\n\n extractFiltersFromUrl(searchParams) {\n let filters = {};\n searchParams.forEach((value, key) => {\n // Handle filters[xxx] format\n const matchesNested = key.match(/^filters\\[(.*?)\\](\\[(.*?)\\])?$/u);\n\n if (matchesNested) {\n const filterName = matchesNested[1];\n const nestedKey = matchesNested[3];\n\n if (nestedKey) {\n // Handle nested object\n filters[filterName] = filters[filterName] || {};\n filters[filterName][nestedKey] = value;\n } else {\n // Handle regular key\n filters[filterName] = value;\n }\n } else {\n // Handle simple key-value pairs\n const matchesSimple = key.match(/^(.*?)$/u);\n\n if (matchesSimple) {\n filters[matchesSimple[1]] = value;\n }\n }\n });\n return filters;\n }\n\n async injectExtraFieldsToResponse(response: { data: Product[] }) {\n if (!response || !this.includes) return response;\n \n const productIds = response.data.map(product => product.id);\n \n try {\n const { data: product } = await this.fetchImagesAndOptions(productIds);\n this.injectOptionsAndImages(response.data, product);\n \n if (!this.includes.includes('metadata')) {\n return response;\n }\n \n const metadataResponse = await salla.api.metadata.fetchValues('product', productIds);\n response.data.forEach(product => {\n //@ts-ignore\n product['metadata'] = metadataResponse.data.find(meta => parseInt(meta.entity_id) === parseInt(product.id));\n });\n \n return response;\n } catch (error) {\n console.error('Error in injectExtraFieldsToResponse:', error);\n throw error;\n }\n }\n\n /**\n * This to make sure we will not request the options endpoint unless we have to.\n */\n fetchImagesAndOptions(productIds){\n return this.productsIncludes().length\n ? salla.api.product.fetchOptions(productIds, { with: this.productsIncludes() })\n : Promise.resolve({data:[]}); //fake the endpoint, to reduce unwanted query if developer wants metadata only\n }\n\n\n injectOptionsAndImages( productList: Product[], newData: Product[] ): Product[] {\n return newData.length\n ? productList.map(product => {\n this.includes\n .filter(field => field !== 'metadata')\n .forEach(field => {\n //@ts-ignore\n const foundProduct = newData.find((prod: Product) => parseInt(prod.id) === parseInt(product.id));\n product[field] = foundProduct ? foundProduct[field] : null; // Assign null or a default value if not found\n });\n return product;\n })\n :null;\n }\n\n productsIncludes(){\n return this.includes?.filter(field => field != 'metadata');\n }\n\n parseJson(includes: string | string[]): null | string[] {\n if (typeof includes !== 'string') {\n return includes;\n }\n try {\n return JSON.parse(includes);\n } catch (e) {\n salla.logger.error('Failed to parse includes as JSON:', e);\n }\n\n return null;\n }\n\n getProductSchemaMarkupScript(product: any): HTMLScriptElement {\n const scriptElement = document.createElement('script');\n scriptElement.type = 'application/ld+json';\n // TODO: This json object MIGHT need mode data or properties.\n const jsonData = {\n \"@context\": \"http://schema.org\",\n \"@type\": \"Product\",\n \"name\": product?.name,\n \"image\": product?.image?.url || product?.thumbnail,\n \"description\": product?.description,\n \"brand\": {\n \"@type\": \"Brand\",\n \"logo\": product?.brand?.logo\n },\n \"offers\": {\n \"@type\": \"Offer\",\n \"price\": product?.price\n }\n };\n scriptElement.text = JSON.stringify(jsonData);\n return scriptElement\n }\n\n createProductSchema(product: SallaProduct | ProductDetail, position: number): ListItem {\n let ProductSchema: SchemaProduct = {\n \"productID\": `${product.id}`,\n \"@type\": 'Product',\n \"name\": product.name,\n \"url\": product.url,\n \"image\": product.image.url || (product.image as string),\n \"description\": product.description || product.subtitle || product.name,\n \"offers\": {\n \"@type\": \"Offer\",\n \"url\": product.url,\n \"priceCurrency\": product.currency,\n \"price\": product.price,\n \"itemCondition\": \"NewCondition\",\n \"availability\": product.is_available ? \"InStock\" : \"OutOfStock\",\n //if there is no product.discount_ends, will set it to be valid until the end of this week\n \"priceValidUntil\": product.discount_ends || (new Date(new Date().setDate(new Date().getDate() + 7)).toISOString().split('T')[0]),\n \"priceSpecification\": {\n \"@type\": \"PriceSpecification\",\n \"price\": product.regular_price,\n \"priceCurrency\": product.currency,\n \"valueAddedTaxIncluded\": product.is_taxable,\n },\n \"seller\": {\n \"@type\": \"Organization\",\n \"name\": salla.config.get('store.name'),\n },\n }\n };\n //@ts-ignore\n if (product.rating?.stars) {\n ProductSchema.aggregateRating = {\n \"@type\": \"AggregateRating\",\n //@ts-ignore\n \"ratingValue\": product.rating.stars,\n \"reviewCount\": product.rating.count,\n };\n }\n\n\n return {\n \"@type\": \"ListItem\",\n \"position\": position,\n \"item\": ProductSchema,\n\n };\n }\n \n generateProductSchema(productList: Array<SallaProduct | ProductDetail>) {\n const schemaId = 'salla-product-schema-script';\n if (document.getElementById(schemaId)) {\n salla.logger.warn(`already added schema-script with id (${schemaId})!`)\n return;\n }\n\n const script = document.createElement('script');\n script.type = 'application/ld+json';\n script.id = schemaId;\n\n\n const schema: WithContext<ItemList> = {\n \"@context\": \"https://schema.org\",\n \"@type\": \"ItemList\",\n \"name\": salla.config.get('page.title'),\n \"itemListElement\": productList.map((product, indxe) => this.createProductSchema(product, indxe + 1)),\n };\n\n script.textContent = JSON.stringify(schema);\n document.head.appendChild(script);\n }\n\n /**\n * Format date in the form of `Monday 13 November 2023`\n */\n formatDateFromString(dateString: string, numberCb: Function, lang: string = 'en'): string {\n const dateObject = new Date(dateString);\n\n const errors = {\n en: \"Invalid Date\",\n ar: \"تاريخ غير صالح\"\n }\n\n if (isNaN(dateObject.getTime())) {\n return errors[lang];\n }\n\n const daysOfWeek = {\n en: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n ar: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت']\n };\n const months = {\n en: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],\n ar: ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر']\n };\n\n const dayOfWeek = daysOfWeek[lang][dateObject.getDay()];\n const dayOfMonth = numberCb(dateObject.getDate(), lang === 'en');\n const month = months[lang][dateObject.getMonth()];\n const year = numberCb(dateObject.getFullYear(), lang === 'en');\n\n return `${dayOfWeek} ${dayOfMonth} ${month} ${year}`;\n }\n\n /**\n * Copy text into clipboard.\n * @param event \n */\n copyToClipboard(event) {\n // Get the text content from the clicked div\n var textToCopy = event.target.innerText;\n\n // Use the Clipboard API to copy text to the clipboard\n navigator.clipboard.writeText(textToCopy)\n .then(() => {\n console.log('Text copied to clipboard: ' + textToCopy);\n })\n .catch(err => {\n console.error('Unable to copy text to clipboard', err);\n });\n\n }\n\n animateItems(items: NodeListOf<Element>) {\n if (!items) return;\n anime({\n targets: items,\n opacity: [0, 1],\n duration: 1200,\n translateY: [20, 0],\n delay: function (_el, i) {\n return i * 100;\n },\n easing: 'easeOutExpo',\n complete: function (_anim) {\n items.forEach((item: Element) => {\n item.classList.add('animated');\n })\n }\n\n })\n }\n\n createReviewObject(reviewData: Review) {\n return {\n \"@type\": \"Review\",\n \"author\": reviewData.name,\n \"datePublished\": reviewData.date * 1000,\n \"description\": reviewData.content,\n \"reviewRating\": {\n \"@type\": \"Rating\",\n \"bestRating\": \"5\",\n \"ratingValue\": \"5\",\n \"worstRating\": \"1\"\n }\n };\n }\n\n generateReviewSchema(reviews: Array<Review>){\n const script = document.createElement('script');\n script.type = 'application/ld+json';\n\n\n const schema = {\n \"@context\": \"http://schema.org/\",\n \"@type\": \"CollectionPage\",\n \"name\": \"Category Name\", // TODO: check for the correct value here\n \"description\": \"Description of the category\", // TODO: here too\n \"review\": reviews.map((review) => this.createReviewObject(review))\n }\n\n script.textContent = JSON.stringify(schema);\n document.head.appendChild(script);\n }\n}\n\nexport default new Helper;\n"],"names":[],"mappings":";;;;;AAOA;AACA,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC;AAEhC,MAAM,MAAM,CAAA;AAIV,IAAA,WAAW,CAAC,QAAiB,EAAA;AAC3B,QAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ;AACxB,QAAA,OAAO,IAAI;;AAGb,IAAA,oBAAoB,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAA;QACxD,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC;QACnE,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC;AACnE,QAAA,IAAI,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC;QAClC,OAAO,KAAA,IAAA,IAAP,OAAO,KAAP,MAAA,GAAA,MAAA,GAAA,OAAO,CAAE,SAAS,CAAC,MAAM,CAAC,IAAI,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC,CAAC;QAChE,OAAO,KAAA,IAAA,IAAP,OAAO,KAAP,MAAA,GAAA,MAAA,GAAA,OAAO,CAAE,SAAS,CAAC,GAAG,CAAC,IAAI,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC,CAAC;AAC7D,QAAA,OAAO,IAAI;;AAGb,IAAA,aAAa,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAA;QAClD,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,OAAO,IAAI,IAAI,CAAC,oBAAoB,CAAC,OAAO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E;AAChB;SACF;;AAGH,IAAA,oBAAoB,CAAC,OAAsB,EAAA;QACzC,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC;AAC/C,QAAA,MAAM,CAAC,IAAI,GAAG,qBAAqB;AAGnC,QAAA,MAAM,MAAM,GAAG;AACb,YAAA,UAAU,EAAE,oBAAoB;AAChC,YAAA,OAAO,EAAE,gBAAgB;YACzB,MAAM,EAAE,eAAe;YACvB,aAAa,EAAE,6BAA6B;AAC5C,YAAA,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,KAAK,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC;SAClE;QAED,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;AAC3C,QAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC;;AAEpC;AAED,eAAe,IAAI,MAAM;;;;"}
1
+ {"version":3,"file":"Helper-MNQx5g4A.js","sources":["src/Helpers/Helper.ts"],"sourcesContent":["import { ProductDetail } from \"@salla.sa/twilight/types/api/product\";\nimport { Review } from \"../../src/components/salla-reviews/interfaces\";\nimport { Product as SallaProduct } from \"@salla.sa/twilight/types/common\";\nimport { ListItem, ItemList, Product as SchemaProduct, WithContext } from 'schema-dts';\nimport { Product } from '@salla.sa/twilight/types/common';\nimport anime from 'animejs';\n\n//TODO::reduce it to 10\nsalla.event.setMaxListeners(100);\n\nclass Helper {\n private debounce_: any;\n private includes;\n\n setIncludes(includes:string[]){\n this.includes = includes;\n return this;\n }\n\n toggleElementClassIf(element, classes1, classes2, callback) {\n classes1 = Array.isArray(classes1) ? classes1 : classes1.split(' ');\n classes2 = Array.isArray(classes2) ? classes2 : classes2.split(' ');\n let isClasses1 = callback(element);\n element?.classList.remove(...(isClasses1 ? classes2 : classes1));\n element?.classList.add(...(isClasses1 ? classes1 : classes2));\n return this;\n }\n\n toggleClassIf(selector, classes1, classes2, callback) {\n document.querySelectorAll(selector).forEach(element => this.toggleElementClassIf(element, classes1, classes2, callback));\n return this;\n }\n\n isValidEmail(email) {\n const re = /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n return re.test(String(email).toLowerCase());\n }\n\n filterEmojies(text) {\n var characterFilter = /(?:[\\u2700-\\u27bf]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\u0023-\\u0039]\\ufe0f?\\u20e3|\\u3299|\\u3297|\\u303d|\\u3030|\\u24c2|\\ud83c[\\udd70-\\udd71]|\\ud83c[\\udd7e-\\udd7f]|\\ud83c\\udd8e|\\ud83c[\\udd91-\\udd9a]|\\ud83c[\\udde6-\\uddff]|\\ud83c[\\ude01-\\ude02]|\\ud83c\\ude1a|\\ud83c\\ude2f|\\ud83c[\\ude32-\\ude3a]|\\ud83c[\\ude50-\\ude51]|\\u203c|\\u2049|[\\u25aa-\\u25ab]|\\u25b6|\\u25c0|[\\u25fb-\\u25fe]|\\u00a9|\\u00ae|\\u2122|\\u2139|\\ud83c\\udc04|[\\u2600-\\u26FF]|\\u2b05|\\u2b06|\\u2b07|\\u2b1b|\\u2b1c|\\u2b50|\\u2b55|\\u231a|\\u231b|\\u2328|\\u23cf|[\\u23e9-\\u23f3]|[\\u23f8-\\u23fa]|\\ud83c\\udccf|\\u2934|\\u2935|[\\u2190-\\u21ff])/g;\n return text.replace(characterFilter, \"\");\n }\n\n debounce(fn, ...data) {\n if (!this.debounce_) {\n this.debounce_ = salla.helpers.debounce((callback, ...innerData) => callback(...innerData), 500);\n }\n //@ts-ignore\n return this.debounce_(fn, ...data);\n }\n\n getProductsSource(source) {\n return {\n 'brands.single': 'brands',\n 'product.index': 'categories',\n 'product.index.latest': 'latest',\n 'product.index.offers': 'offers',\n 'product.index.search': 'search',\n 'customer.wishlist': 'wishlist',\n 'landing-page': 'landing-page',\n 'product.index.tag': 'tags',\n 'product.index.sales': 'sales',\n 'components.most_sales_products': 'sales',//temporary, delete it after two days from now\n }[source || salla.config.get('page.slug')] || source || 'latest';\n }\n\n getPageTitleForSource(source) {\n\n source = {\n 'brands': 'common.titles.brands',\n // 'categories':'',\n 'latest': 'blocks.home.latest_products',\n 'offers': 'common.titles.discounts',\n // 'search':'',\n // 'landing-page':'',\n // 'tags':'',\n 'sales': 'common.titles.most_sales',\n }[source];\n\n return source ? salla.lang.get(source) : '';\n }\n\n getProductsSourceValue(source, sourceValue) {\n const parsedSource = this.getProductsSource(source);\n\n // Validate if the source value is a valid JSON string\n let parsedSourceValue: any = null;\n if (sourceValue) {\n try {\n parsedSourceValue = typeof sourceValue === 'string' ? JSON.parse(sourceValue) : sourceValue;\n } catch (error) {\n console.error('Failed to parse JSON string in sourceValue:', error);\n }\n }\n\n // Handle different source types\n if (!['search', 'json', 'offers', 'latest', 'sales', 'related'].includes(parsedSource)) {\n\n if (Array.isArray(parsedSourceValue) && parsedSourceValue.length) {\n return parsedSourceValue;\n }\n\n\n if (Array.isArray(parsedSourceValue) && !parsedSourceValue.length) {\n return '';\n }\n\n if (typeof parsedSourceValue === 'number') {\n return [parsedSourceValue];\n }\n\n if (!sourceValue && ['categories', 'tags', 'brands'].includes(source)) {\n return [salla.config.get('page.id')];\n }\n }\n\n // Return sourceValue if it exists and is a valid JSON object/array\n if (parsedSourceValue || sourceValue) {\n return parsedSourceValue || sourceValue;\n }\n\n if (parsedSource === 'search') {\n return new URLSearchParams(window.location.search).get('q') || '';\n }\n\n // Return page id as default value\n return salla.config.get('page.id');\n }\n\n extractFiltersFromUrl(searchParams) {\n let filters = {};\n searchParams.forEach((value, key) => {\n // Handle filters[xxx] format\n const matchesNested = key.match(/^filters\\[(.*?)\\](\\[(.*?)\\])?$/u);\n\n if (matchesNested) {\n const filterName = matchesNested[1];\n const nestedKey = matchesNested[3];\n\n if (nestedKey) {\n // Handle nested object\n filters[filterName] = filters[filterName] || {};\n filters[filterName][nestedKey] = value;\n } else {\n // Handle regular key\n filters[filterName] = value;\n }\n } else {\n // Handle simple key-value pairs\n const matchesSimple = key.match(/^(.*?)$/u);\n\n if (matchesSimple) {\n filters[matchesSimple[1]] = value;\n }\n }\n });\n return filters;\n }\n\n async injectExtraFieldsToResponse(response: { data: Product[] }) {\n if (!response || !this.includes) return response;\n \n const productIds = response.data.map(product => product.id);\n \n try {\n const { data: product } = await this.fetchImagesAndOptions(productIds);\n this.injectOptionsAndImages(response.data, product);\n \n if (!this.includes.includes('metadata')) {\n return response;\n }\n \n const metadataResponse = await salla.api.metadata.fetchValues('product', productIds);\n response.data.forEach(product => {\n //@ts-ignore\n product['metadata'] = metadataResponse.data.find(meta => parseInt(meta.entity_id) === parseInt(product.id));\n });\n \n return response;\n } catch (error) {\n console.error('Error in injectExtraFieldsToResponse:', error);\n throw error;\n }\n }\n\n /**\n * This to make sure we will not request the options endpoint unless we have to.\n */\n fetchImagesAndOptions(productIds){\n return this.productsIncludes().length\n ? salla.api.product.fetchOptions(productIds, { with: this.productsIncludes() })\n : Promise.resolve({data:[]}); //fake the endpoint, to reduce unwanted query if developer wants metadata only\n }\n\n\n injectOptionsAndImages( productList: Product[], newData: Product[] ): Product[] {\n return newData.length\n ? productList.map(product => {\n this.includes\n .filter(field => field !== 'metadata')\n .forEach(field => {\n //@ts-ignore\n const foundProduct = newData.find((prod: Product) => parseInt(prod.id) === parseInt(product.id));\n product[field] = foundProduct ? foundProduct[field] : null; // Assign null or a default value if not found\n });\n return product;\n })\n :null;\n }\n\n productsIncludes(){\n return this.includes?.filter(field => field != 'metadata');\n }\n\n parseJson(includes: string | string[]): null | string[] {\n if (typeof includes !== 'string') {\n return includes;\n }\n try {\n return JSON.parse(includes);\n } catch (e) {\n salla.logger.error('Failed to parse includes as JSON:', e);\n }\n\n return null;\n }\n\n getProductSchemaMarkupScript(product: any): HTMLScriptElement {\n const scriptElement = document.createElement('script');\n scriptElement.type = 'application/ld+json';\n // TODO: This json object MIGHT need mode data or properties.\n const jsonData = {\n \"@context\": \"http://schema.org\",\n \"@type\": \"Product\",\n \"name\": product?.name,\n \"image\": product?.image?.url || product?.thumbnail,\n \"description\": product?.description,\n \"brand\": {\n \"@type\": \"Brand\",\n \"logo\": product?.brand?.logo\n },\n \"offers\": {\n \"@type\": \"Offer\",\n \"price\": product?.price\n }\n };\n scriptElement.text = JSON.stringify(jsonData);\n return scriptElement\n }\n\n createProductSchema(product: SallaProduct | ProductDetail, position: number): ListItem {\n let ProductSchema: SchemaProduct = {\n \"productID\": `${product.id}`,\n \"@type\": 'Product',\n \"name\": product.name,\n \"url\": product.url,\n \"image\": product.image.url || (product.image as string),\n \"description\": product.description || product.subtitle || product.name,\n \"offers\": {\n \"@type\": \"Offer\",\n \"url\": product.url,\n \"priceCurrency\": product.currency,\n \"price\": product.price,\n \"itemCondition\": \"NewCondition\",\n \"availability\": product.is_available ? \"InStock\" : \"OutOfStock\",\n //if there is no product.discount_ends, will set it to be valid until the end of this week\n \"priceValidUntil\": product.discount_ends || (new Date(new Date().setDate(new Date().getDate() + 7)).toISOString().split('T')[0]),\n \"priceSpecification\": {\n \"@type\": \"PriceSpecification\",\n \"price\": product.regular_price,\n \"priceCurrency\": product.currency,\n \"valueAddedTaxIncluded\": product.is_taxable,\n },\n \"seller\": {\n \"@type\": \"Organization\",\n \"name\": salla.config.get('store.name'),\n },\n }\n };\n //@ts-ignore\n if (product.rating?.stars) {\n ProductSchema.aggregateRating = {\n \"@type\": \"AggregateRating\",\n //@ts-ignore\n \"ratingValue\": product.rating.stars,\n \"reviewCount\": product.rating.count,\n };\n }\n\n\n return {\n \"@type\": \"ListItem\",\n \"position\": position,\n \"item\": ProductSchema,\n\n };\n }\n \n generateProductSchema(productList: Array<SallaProduct | ProductDetail>) {\n const schemaId = 'salla-product-schema-script';\n if (document.getElementById(schemaId)) {\n salla.logger.warn(`already added schema-script with id (${schemaId})!`)\n return;\n }\n\n const script = document.createElement('script');\n script.type = 'application/ld+json';\n script.id = schemaId;\n\n\n const schema: WithContext<ItemList> = {\n \"@context\": \"https://schema.org\",\n \"@type\": \"ItemList\",\n \"name\": salla.config.get('page.title'),\n \"itemListElement\": productList.map((product, indxe) => this.createProductSchema(product, indxe + 1)),\n };\n\n script.textContent = JSON.stringify(schema);\n document.head.appendChild(script);\n }\n\n /**\n * Format date in the form of `Monday 13 November 2023`\n */\n formatDateFromString(dateString: string, numberCb: Function, lang: string = 'en'): string {\n const dateObject = new Date(dateString);\n\n const errors = {\n en: \"Invalid Date\",\n ar: \"تاريخ غير صالح\"\n }\n\n if (isNaN(dateObject.getTime())) {\n return errors[lang];\n }\n\n const daysOfWeek = {\n en: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n ar: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت']\n };\n const months = {\n en: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],\n ar: ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر']\n };\n\n const dayOfWeek = daysOfWeek[lang][dateObject.getDay()];\n const dayOfMonth = numberCb(dateObject.getDate(), lang === 'en');\n const month = months[lang][dateObject.getMonth()];\n const year = numberCb(dateObject.getFullYear(), lang === 'en');\n\n return `${dayOfWeek} ${dayOfMonth} ${month} ${year}`;\n }\n\n /**\n * Copy text into clipboard.\n * @param event \n */\n copyToClipboard(event) {\n // Get the text content from the clicked div\n var textToCopy = event.target.innerText;\n\n // Use the Clipboard API to copy text to the clipboard\n navigator.clipboard.writeText(textToCopy)\n .then(() => {\n console.log('Text copied to clipboard: ' + textToCopy);\n })\n .catch(err => {\n console.error('Unable to copy text to clipboard', err);\n });\n\n }\n\n animateItems(items: NodeListOf<Element>) {\n if (!items) return;\n anime({\n targets: items,\n opacity: [0, 1],\n duration: 1200,\n translateY: [20, 0],\n delay: function (_el, i) {\n return i * 100;\n },\n easing: 'easeOutExpo',\n complete: function (_anim) {\n items.forEach((item: Element) => {\n item.classList.add('animated');\n })\n }\n\n })\n }\n\n createReviewObject(reviewData: Review) {\n return {\n \"@type\": \"Review\",\n \"author\": { \"@type\": \"Person\", \"name\": reviewData.name },\n // \"datePublished\": reviewData.date * 1000,\n \"reviewBody\": reviewData.content,\n \"reviewRating\": {\n \"@type\": \"Rating\",\n \"bestRating\": \"5\",\n \"ratingValue\": reviewData.stars,\n \"worstRating\": \"1\"\n }\n };\n }\n\n generateReviewSchema(reviews: Array<Review>){\n const script = document.createElement('script');\n script.type = 'application/ld+json';\n\n\n const schema = {\n \"@context\": \"http://schema.org/\",\n \"@type\": \"Store\",\n \"name\": salla.config.get('store.name'),\n \"url\": salla.config.get('store.url'),\n \"review\": reviews.map((review) => this.createReviewObject(review)),\n \"aggregateRating\": {\n \"@type\": \"AggregateRating\",\n \"ratingValue\": reviews.reduce((acc, review) => acc + review.stars, 0) / reviews.length,\n \"reviewCount\": reviews.length\n }\n }\n\n script.textContent = JSON.stringify(schema);\n document.head.appendChild(script);\n }\n}\n\nexport default new Helper;\n"],"names":[],"mappings":";;;;;AAOA;AACA,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC;AAEhC,MAAM,MAAM,CAAA;AAIV,IAAA,WAAW,CAAC,QAAiB,EAAA;AAC3B,QAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ;AACxB,QAAA,OAAO,IAAI;;AAGb,IAAA,oBAAoB,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAA;QACxD,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,C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,OAAO,EAAE,iBAAiB;gBAC1B,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,MAAM,KAAK,GAAG,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM;gBACtF,aAAa,EAAE,OAAO,CAAC;AACxB;SACF;QAED,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;AAC3C,QAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC;;AAEpC;AAED,eAAe,IAAI,MAAM;;;;"}
@@ -1,5 +1,5 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{L as LazyLoad}from"./index-BFfNxHPV.js";function appGlobalScript(){if(!document.lazyLoadInstance){document.lazyLoadInstance=new LazyLoad({use_native:true});document.lazyLoadBackgrounds=new LazyLoad({elements_selector:".lazy[data-bg]:not(.loaded)"})}if(document.readyState!=="complete"){document.addEventListener("DOMContentLoaded",(function(){return document.lazyLoadInstance.update()}));document.addEventListener("DOMContentLoaded",(function(){return document.lazyLoadBackgrounds.update()}))}salla.infiniteScroll.event.onAppend((function(){document.lazyLoadInstance.update();document.lazyLoadBackgrounds.update()}))}var globalScripts=appGlobalScript;export{globalScripts as g};
5
- //# sourceMappingURL=app-globals-IYG3dX-R.js.map
4
+ import{L as LazyLoad}from"./index-BJcojI6v.js";function appGlobalScript(){if(!document.lazyLoadInstance){document.lazyLoadInstance=new LazyLoad({use_native:true});document.lazyLoadBackgrounds=new LazyLoad({elements_selector:".lazy[data-bg]:not(.loaded)"})}if(document.readyState!=="complete"){document.addEventListener("DOMContentLoaded",(function(){return document.lazyLoadInstance.update()}));document.addEventListener("DOMContentLoaded",(function(){return document.lazyLoadBackgrounds.update()}))}salla.infiniteScroll.event.onAppend((function(){document.lazyLoadInstance.update();document.lazyLoadBackgrounds.update()}))}var globalScripts=appGlobalScript;export{globalScripts as g};
5
+ //# sourceMappingURL=app-globals-sE_ZSx6e.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-globals-IYG3dX-R.js","sources":["src/global/app.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import '@salla.sa/twilight'\nimport LazyLoad from \"vanilla-lazyload\";\n\nexport default function () {\n // Only initialize it one time for the entire application\n if (!document.lazyLoadInstance) {\n document.lazyLoadInstance = new LazyLoad({\n use_native: true,//native not support lazyLoad backgrounds\n // restore_on_error: true,\n // Your custom settings go here\n // callback_finish: () => document.lazyLoadBackgrounds.update(document.querySelectorAll('.lazy[data-bg]:not(.loaded)'))\n });\n document.lazyLoadBackgrounds = new LazyLoad({\n elements_selector: '.lazy[data-bg]:not(.loaded)',\n });\n //native way doesn't load backgrounds\n // document.lazyLoadBackgrounds = new LazyLoad();\n }\n //make sure that lazyLoad will be fired after loading the page too.\n if (document.readyState !== 'complete') {\n document.addEventListener(\"DOMContentLoaded\", () => document.lazyLoadInstance.update());\n document.addEventListener(\"DOMContentLoaded\", () => document.lazyLoadBackgrounds.update());\n }\n\n // fire it after each load more request;\n // @ts-ignore\n salla.infiniteScroll.event.onAppend(() => {\n document.lazyLoadInstance.update();\n document.lazyLoadBackgrounds.update();\n }\n );\n}\n","import appGlobalScript from '/home/runner/work/twilight/twilight/packages/twilight-components/src/global/app.ts';\nexport const globalScripts = appGlobalScript;\nexport const globalStyles = \"\";\n"],"names":[],"mappings":";;;;;AAGc,wBAAA,IAAA;;AAEZ,IAAA,IAAI,CAAC,QAAQ,CAAC,gBAAgB,EAAE;AAC9B,QAAA,QAAQ,CAAC,gBAAgB,GAAG,IAAI,QAAQ,CAAC;YACvC,UAAU,EAAE,IAAI;;;;AAIjB,SAAA,CAAC;AACF,QAAA,QAAQ,CAAC,mBAAmB,GAAG,IAAI,QAAQ,CAAC;AACxC,YAAA,iBAAiB,EAAE,6BAA6B;AACnD,SAAA,CAAC;;;;;AAKJ,IAAA,IAAI,QAAQ,CAAC,UAAU,KAAK,UAAU,EAAE;AACtC,QAAA,QAAQ,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,MAAM,QAAQ,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC;AACvF,QAAA,QAAQ,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,MAAM,QAAQ,CAAC,mBAAmB,CAAC,MAAM,EAAE,CAAC;;;;IAK5F,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAK;AAC/B,QAAA,QAAQ,CAAC,gBAAgB,CAAC,MAAM,EAAE;AAClC,QAAA,QAAQ,CAAC,mBAAmB,CAAC,MAAM,EAAE;AACzC,KAAC,CACJ;AACL;;AC9BY,MAAC,aAAa,GAAG;;;;"}
1
+ {"version":3,"file":"app-globals-sE_ZSx6e.js","sources":["src/global/app.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import '@salla.sa/twilight'\nimport LazyLoad from \"vanilla-lazyload\";\n\nexport default function () {\n // Only initialize it one time for the entire application\n if (!document.lazyLoadInstance) {\n document.lazyLoadInstance = new LazyLoad({\n use_native: true,//native not support lazyLoad backgrounds\n // restore_on_error: true,\n // Your custom settings go here\n // callback_finish: () => document.lazyLoadBackgrounds.update(document.querySelectorAll('.lazy[data-bg]:not(.loaded)'))\n });\n document.lazyLoadBackgrounds = new LazyLoad({\n elements_selector: '.lazy[data-bg]:not(.loaded)',\n });\n //native way doesn't load backgrounds\n // document.lazyLoadBackgrounds = new LazyLoad();\n }\n //make sure that lazyLoad will be fired after loading the page too.\n if (document.readyState !== 'complete') {\n document.addEventListener(\"DOMContentLoaded\", () => document.lazyLoadInstance.update());\n document.addEventListener(\"DOMContentLoaded\", () => document.lazyLoadBackgrounds.update());\n }\n\n // fire it after each load more request;\n // @ts-ignore\n salla.infiniteScroll.event.onAppend(() => {\n document.lazyLoadInstance.update();\n document.lazyLoadBackgrounds.update();\n }\n );\n}\n","import appGlobalScript from '/home/runner/work/twilight/twilight/packages/twilight-components/src/global/app.ts';\nexport const globalScripts = appGlobalScript;\nexport const globalStyles = \"\";\n"],"names":[],"mappings":";;;;;AAGc,wBAAA,IAAA;;AAEZ,IAAA,IAAI,CAAC,QAAQ,CAAC,gBAAgB,EAAE;AAC9B,QAAA,QAAQ,CAAC,gBAAgB,GAAG,IAAI,QAAQ,CAAC;YACvC,UAAU,EAAE,IAAI;;;;AAIjB,SAAA,CAAC;AACF,QAAA,QAAQ,CAAC,mBAAmB,GAAG,IAAI,QAAQ,CAAC;AACxC,YAAA,iBAAiB,EAAE,6BAA6B;AACnD,SAAA,CAAC;;;;;AAKJ,IAAA,IAAI,QAAQ,CAAC,UAAU,KAAK,UAAU,EAAE;AACtC,QAAA,QAAQ,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,MAAM,QAAQ,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC;AACvF,QAAA,QAAQ,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,MAAM,QAAQ,CAAC,mBAAmB,CAAC,MAAM,EAAE,CAAC;;;;IAK5F,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAK;AAC/B,QAAA,QAAQ,CAAC,gBAAgB,CAAC,MAAM,EAAE;AAClC,QAAA,QAAQ,CAAC,mBAAmB,CAAC,MAAM,EAAE;AACzC,KAAC,CACJ;AACL;;AC9BY,MAAC,aAAa,GAAG;;;;"}