@ozdao/martyrs 0.2.510 → 0.2.512

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 (351) hide show
  1. package/dist/_virtual/index.cjs +4 -4
  2. package/dist/_virtual/index.js +4 -4
  3. package/dist/_virtual/index2.cjs +4 -4
  4. package/dist/_virtual/index2.js +4 -4
  5. package/dist/auth.server.cjs +1 -2
  6. package/dist/auth.server.js +1 -2
  7. package/dist/builder.cjs +105 -19
  8. package/dist/builder.js +107 -20
  9. package/dist/{main-XJQJFmgj.cjs → main-B1XN9Zjg.cjs} +7 -7
  10. package/dist/{main-DrpgUZcn.js → main-u7zgfMGL.js} +1850 -1856
  11. package/dist/martyrs/src/components/Button/{Button.vue2.cjs → Button.vue.cjs} +2 -2
  12. package/dist/martyrs/src/components/Button/{Button.vue2.js.map → Button.vue.cjs.map} +1 -1
  13. package/dist/martyrs/src/components/Button/{Button.vue2.js → Button.vue.js} +2 -2
  14. package/dist/martyrs/src/components/Button/Button.vue.js.map +1 -0
  15. package/dist/martyrs/src/components/Chips/{Chips.vue2.cjs → Chips.vue.cjs} +2 -2
  16. package/dist/martyrs/src/components/Chips/Chips.vue.cjs.map +1 -0
  17. package/dist/martyrs/src/components/Chips/{Chips.vue2.js → Chips.vue.js} +2 -2
  18. package/dist/martyrs/src/components/Chips/Chips.vue.js.map +1 -0
  19. package/dist/martyrs/src/components/Dropdown/{Dropdown.vue2.cjs → Dropdown.vue.cjs} +2 -2
  20. package/dist/martyrs/src/components/Dropdown/{Dropdown.vue2.js.map → Dropdown.vue.cjs.map} +1 -1
  21. package/dist/martyrs/src/components/Dropdown/{Dropdown.vue2.js → Dropdown.vue.js} +2 -2
  22. package/dist/martyrs/src/components/Dropdown/Dropdown.vue.js.map +1 -0
  23. package/dist/martyrs/src/components/Feed/Feed.vue.cjs +1 -1
  24. package/dist/martyrs/src/components/Feed/Feed.vue.js +1 -1
  25. package/dist/martyrs/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  26. package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js +1 -1
  27. package/dist/martyrs/src/components/FieldTags/FieldTags.vue.cjs +1 -1
  28. package/dist/martyrs/src/components/FieldTags/FieldTags.vue.js +1 -1
  29. package/dist/martyrs/src/components/Menu/{Menu.vue.cjs → Menu.vue2.cjs} +2 -2
  30. package/dist/martyrs/src/components/Menu/Menu.vue2.cjs.map +1 -0
  31. package/dist/martyrs/src/components/Menu/{Menu.vue.js → Menu.vue2.js} +2 -2
  32. package/dist/martyrs/src/components/Menu/Menu.vue2.js.map +1 -0
  33. package/dist/martyrs/src/components/Select/{Select.vue.cjs → Select.vue2.cjs} +2 -2
  34. package/dist/martyrs/src/components/Select/Select.vue2.cjs.map +1 -0
  35. package/dist/martyrs/src/components/Select/{Select.vue.js → Select.vue2.js} +2 -2
  36. package/dist/martyrs/src/components/Select/{Select.vue.cjs.map → Select.vue2.js.map} +1 -1
  37. package/dist/martyrs/src/components/Tab/{Tab.vue.cjs → Tab.vue2.cjs} +2 -2
  38. package/dist/martyrs/src/components/Tab/Tab.vue2.cjs.map +1 -0
  39. package/dist/martyrs/src/components/Tab/{Tab.vue.js → Tab.vue2.js} +2 -2
  40. package/dist/martyrs/src/components/Tab/{Tab.vue.cjs.map → Tab.vue2.js.map} +1 -1
  41. package/dist/martyrs/src/modules/auth/locales/ru.cjs +2 -0
  42. package/dist/martyrs/src/modules/auth/locales/ru.cjs.map +1 -1
  43. package/dist/martyrs/src/modules/auth/locales/ru.js +2 -0
  44. package/dist/martyrs/src/modules/auth/locales/ru.js.map +1 -1
  45. package/dist/martyrs/src/modules/auth/views/components/pages/EnterCode.vue.cjs +2 -2
  46. package/dist/martyrs/src/modules/auth/views/components/pages/EnterCode.vue.cjs.map +1 -1
  47. package/dist/martyrs/src/modules/auth/views/components/pages/EnterCode.vue.js +2 -2
  48. package/dist/martyrs/src/modules/auth/views/components/pages/EnterCode.vue.js.map +1 -1
  49. package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +2 -2
  50. package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +2 -2
  51. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +2 -2
  52. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +2 -2
  53. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +3 -3
  54. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +3 -3
  55. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs +1 -1
  56. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +1 -1
  57. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.cjs +1 -1
  58. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +1 -1
  59. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs +1 -1
  60. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js +1 -1
  61. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +2 -2
  62. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +2 -2
  63. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs +2 -2
  64. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +2 -2
  65. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs +2 -2
  66. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +2 -2
  67. package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.cjs +1 -1
  68. package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.js +1 -1
  69. package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  70. package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
  71. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  72. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +1 -1
  73. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +2 -2
  74. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +2 -2
  75. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs +2 -2
  76. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  77. package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  78. package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  79. package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  80. package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  81. package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  82. package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  83. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  84. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  85. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  86. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  87. package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs +2 -2
  88. package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +2 -2
  89. package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.cjs +1 -1
  90. package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js +1 -1
  91. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
  92. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  93. package/dist/martyrs/src/modules/globals/globals.client.cjs +4 -1
  94. package/dist/martyrs/src/modules/globals/globals.client.cjs.map +1 -1
  95. package/dist/martyrs/src/modules/globals/globals.client.js +23 -20
  96. package/dist/martyrs/src/modules/globals/globals.client.js.map +1 -1
  97. package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.cjs +1 -1
  98. package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.js +1 -1
  99. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
  100. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
  101. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.cjs +1 -1
  102. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.js +1 -1
  103. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.cjs +1 -1
  104. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js +1 -1
  105. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
  106. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
  107. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +1 -1
  108. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
  109. package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs +2 -2
  110. package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js +2 -2
  111. package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.cjs +1 -1
  112. package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.js +1 -1
  113. package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
  114. package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
  115. package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.cjs +27 -27
  116. package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.cjs.map +1 -1
  117. package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.js +28 -28
  118. package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.js.map +1 -1
  119. package/dist/martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -1
  120. package/dist/martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +1 -1
  121. package/dist/martyrs/src/modules/globals/views/components/sections/Walkthrough.vue.cjs +308 -0
  122. package/dist/martyrs/src/modules/globals/views/components/sections/Walkthrough.vue.cjs.map +1 -0
  123. package/dist/martyrs/src/modules/globals/views/components/sections/Walkthrough.vue.js +308 -0
  124. package/dist/martyrs/src/modules/globals/views/components/sections/Walkthrough.vue.js.map +1 -0
  125. package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.cjs +1 -1
  126. package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js +1 -1
  127. package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.cjs +1 -1
  128. package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js +1 -1
  129. package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.cjs +3 -3
  130. package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js +2 -2
  131. package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.cjs +3 -3
  132. package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +3 -3
  133. package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.cjs +1 -1
  134. package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js +1 -1
  135. package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.cjs +1 -1
  136. package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js +1 -1
  137. package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.cjs +1 -1
  138. package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js +1 -1
  139. package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.cjs +1 -1
  140. package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js +1 -1
  141. package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.cjs +2 -2
  142. package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +2 -2
  143. package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.cjs +2 -2
  144. package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +2 -2
  145. package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.cjs +1 -1
  146. package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js +1 -1
  147. package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.cjs +1 -1
  148. package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.js +1 -1
  149. package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.cjs +2 -2
  150. package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +2 -2
  151. package/dist/martyrs/src/modules/music/components/pages/Album.vue.cjs +2 -2
  152. package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +2 -2
  153. package/dist/martyrs/src/modules/music/components/pages/Artist.vue.cjs +1 -1
  154. package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js +1 -1
  155. package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.cjs +1 -1
  156. package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.js +1 -1
  157. package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.cjs +2 -2
  158. package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +2 -2
  159. package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.cjs +1 -1
  160. package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js +1 -1
  161. package/dist/martyrs/src/modules/music/components/pages/Track.vue.cjs +2 -2
  162. package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +2 -2
  163. package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.cjs +1 -1
  164. package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.js +1 -1
  165. package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.cjs +1 -1
  166. package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.js +1 -1
  167. package/dist/martyrs/src/modules/music/router/music.cjs +2 -2
  168. package/dist/martyrs/src/modules/music/router/music.js +2 -2
  169. package/dist/martyrs/src/modules/notifications/components/pages/Notifications.vue.cjs +1 -1
  170. package/dist/martyrs/src/modules/notifications/components/pages/Notifications.vue.js +1 -1
  171. package/dist/martyrs/src/modules/notifications/notifications.client.cjs +101 -32
  172. package/dist/martyrs/src/modules/notifications/notifications.client.cjs.map +1 -1
  173. package/dist/martyrs/src/modules/notifications/notifications.client.js +101 -32
  174. package/dist/martyrs/src/modules/notifications/notifications.client.js.map +1 -1
  175. package/dist/martyrs/src/modules/notifications/store/notifications.store.cjs +45 -12
  176. package/dist/martyrs/src/modules/notifications/store/notifications.store.cjs.map +1 -1
  177. package/dist/martyrs/src/modules/notifications/store/notifications.store.js +38 -5
  178. package/dist/martyrs/src/modules/notifications/store/notifications.store.js.map +1 -1
  179. package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.cjs +2 -2
  180. package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +2 -2
  181. package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.cjs +2 -2
  182. package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js +2 -2
  183. package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.cjs +1 -1
  184. package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js +1 -1
  185. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +2 -2
  186. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +2 -2
  187. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  188. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  189. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +2 -2
  190. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  191. package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  192. package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js +1 -1
  193. package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.cjs +1 -1
  194. package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js +1 -1
  195. package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.cjs +1 -1
  196. package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js +1 -1
  197. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  198. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
  199. package/dist/martyrs/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  200. package/dist/martyrs/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  201. package/dist/martyrs/src/modules/orders/store/shopcart.cjs +33 -23
  202. package/dist/martyrs/src/modules/orders/store/shopcart.cjs.map +1 -1
  203. package/dist/martyrs/src/modules/orders/store/shopcart.js +31 -21
  204. package/dist/martyrs/src/modules/orders/store/shopcart.js.map +1 -1
  205. package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  206. package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  207. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  208. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  209. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +3 -3
  210. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
  211. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +2 -2
  212. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +2 -2
  213. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +3 -3
  214. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +3 -3
  215. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  216. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
  217. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +3 -3
  218. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  219. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  220. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  221. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  222. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  223. package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.cjs +2 -2
  224. package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  225. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +2 -2
  226. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  227. package/dist/martyrs/src/modules/organizations/router/organizations.cjs +1 -1
  228. package/dist/martyrs/src/modules/organizations/router/organizations.js +1 -1
  229. package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.cjs +1 -1
  230. package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
  231. package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
  232. package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
  233. package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  234. package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
  235. package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.cjs +1 -1
  236. package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js +1 -1
  237. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  238. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +1 -1
  239. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +3 -3
  240. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +3 -3
  241. package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs +2 -2
  242. package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +2 -2
  243. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +3 -3
  244. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
  245. package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs +64 -63
  246. package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
  247. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +64 -63
  248. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
  249. package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.cjs +1 -1
  250. package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +1 -1
  251. package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.cjs +2 -2
  252. package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +2 -2
  253. package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.cjs +2 -2
  254. package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +2 -2
  255. package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.cjs +1 -1
  256. package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +1 -1
  257. package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs +1 -1
  258. package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js +1 -1
  259. package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.cjs +2 -2
  260. package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +2 -2
  261. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.cjs +3 -3
  262. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +3 -3
  263. package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.cjs +1 -1
  264. package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +1 -1
  265. package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.cjs +2 -2
  266. package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  267. package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  268. package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  269. package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
  270. package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
  271. package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  272. package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js +1 -1
  273. package/dist/martyrs/src/modules/spots/components/pages/Map.vue.cjs +1 -1
  274. package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js +1 -1
  275. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +3 -3
  276. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
  277. package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.cjs +2 -2
  278. package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +2 -2
  279. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
  280. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
  281. package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs +4 -4
  282. package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +4 -4
  283. package/dist/martyrs.cjs.js +1 -1
  284. package/dist/martyrs.css +1 -1
  285. package/dist/martyrs.es.js +1 -1
  286. package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.2.0/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/index.cjs +8 -0
  287. package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.2.0/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/index.cjs.map +1 -0
  288. package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.2.0/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/index.js +8 -0
  289. package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.2.0/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/index.js.map +1 -0
  290. package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.2.0/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/web.cjs +13 -0
  291. package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.2.0/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/web.cjs.map +1 -0
  292. package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.2.0/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/web.js +13 -0
  293. package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.2.0/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/web.js.map +1 -0
  294. package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs +43 -0
  295. package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs.map +1 -0
  296. package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +43 -0
  297. package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js.map +1 -0
  298. package/dist/node_modules/.pnpm/embla-carousel-vue@8.6.0_vue@3.5.13_typescript@5.8.3_/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs +43 -0
  299. package/dist/node_modules/.pnpm/embla-carousel-vue@8.6.0_vue@3.5.13_typescript@5.8.3_/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs.map +1 -0
  300. package/dist/node_modules/.pnpm/embla-carousel-vue@8.6.0_vue@3.5.13_typescript@5.8.3_/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js +43 -0
  301. package/dist/node_modules/.pnpm/embla-carousel-vue@8.6.0_vue@3.5.13_typescript@5.8.3_/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js.map +1 -0
  302. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1630 -0
  303. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs.map +1 -0
  304. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js +1630 -0
  305. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js.map +1 -0
  306. package/dist/notifications.server.cjs +205 -11
  307. package/dist/notifications.server.js +205 -11
  308. package/dist/orders.server.cjs +3 -0
  309. package/dist/orders.server.js +3 -0
  310. package/dist/products.server.cjs +9 -36
  311. package/dist/products.server.js +9 -36
  312. package/dist/style.css +199 -190
  313. package/dist/{web-C5cmb1FH.js → web--8-wgr6b.js} +1 -1
  314. package/dist/{web-d40xcY_Y.cjs → web-BS6utuAZ.cjs} +1 -1
  315. package/package.json +1 -1
  316. package/src/builder/CLAUDE.MD +405 -0
  317. package/src/builder/builder.js +3 -0
  318. package/src/builder/modes/spa.dev.js +35 -15
  319. package/src/builder/modes/spa.prod.js +5 -6
  320. package/src/builder/modes/spa.rspack.dev.js +110 -0
  321. package/src/components/Button/Button.vue +2 -2
  322. package/src/modules/auth/controllers/services/twofa.service.js +1 -1
  323. package/src/modules/auth/locales/ru.js +2 -0
  324. package/src/modules/auth/views/components/pages/EnterCode.vue +2 -2
  325. package/src/modules/globals/globals.client.js +4 -0
  326. package/src/modules/globals/views/components/layouts/Client.vue +1 -0
  327. package/src/modules/globals/views/components/sections/Filters.vue +26 -17
  328. package/src/modules/globals/views/components/sections/Walkthrough.vue +245 -57
  329. package/src/modules/notifications/FIXES.md +1 -0
  330. package/src/modules/notifications/controllers/notifications.controller.js +147 -7
  331. package/src/modules/notifications/models/user-device.model.js +10 -2
  332. package/src/modules/notifications/notifications.client.js +127 -41
  333. package/src/modules/notifications/routes/notifications.routes.js +4 -0
  334. package/src/modules/notifications/services/notification.service.js +93 -0
  335. package/src/modules/notifications/store/notifications.store.js +47 -7
  336. package/src/modules/orders/models/application.model.js +3 -0
  337. package/src/modules/orders/store/shopcart.js +34 -23
  338. package/src/modules/products/components/pages/Products.vue +12 -10
  339. package/src/modules/products/controllers/configs/products.lookup.config.js +0 -26
  340. package/src/modules/products/controllers/products.controller.js +3 -7
  341. package/src/modules/products/controllers/queries/products.queries.js +10 -5
  342. package/src/modules/products/migrations/categories-to-materialized-path.js +0 -3
  343. package/src/styles/base/backgrounds.scss +1 -0
  344. package/dist/martyrs/src/components/Button/Button.vue2.cjs.map +0 -1
  345. package/dist/martyrs/src/components/Chips/Chips.vue2.cjs.map +0 -1
  346. package/dist/martyrs/src/components/Chips/Chips.vue2.js.map +0 -1
  347. package/dist/martyrs/src/components/Dropdown/Dropdown.vue2.cjs.map +0 -1
  348. package/dist/martyrs/src/components/Menu/Menu.vue.cjs.map +0 -1
  349. package/dist/martyrs/src/components/Menu/Menu.vue.js.map +0 -1
  350. package/dist/martyrs/src/components/Select/Select.vue.js.map +0 -1
  351. package/dist/martyrs/src/components/Tab/Tab.vue.js.map +0 -1
@@ -0,0 +1,1630 @@
1
+ function isNumber(subject) {
2
+ return typeof subject === "number";
3
+ }
4
+ function isString(subject) {
5
+ return typeof subject === "string";
6
+ }
7
+ function isBoolean(subject) {
8
+ return typeof subject === "boolean";
9
+ }
10
+ function isObject(subject) {
11
+ return Object.prototype.toString.call(subject) === "[object Object]";
12
+ }
13
+ function mathAbs(n) {
14
+ return Math.abs(n);
15
+ }
16
+ function mathSign(n) {
17
+ return Math.sign(n);
18
+ }
19
+ function deltaAbs(valueB, valueA) {
20
+ return mathAbs(valueB - valueA);
21
+ }
22
+ function factorAbs(valueB, valueA) {
23
+ if (valueB === 0 || valueA === 0) return 0;
24
+ if (mathAbs(valueB) <= mathAbs(valueA)) return 0;
25
+ const diff = deltaAbs(mathAbs(valueB), mathAbs(valueA));
26
+ return mathAbs(diff / valueB);
27
+ }
28
+ function roundToTwoDecimals(num) {
29
+ return Math.round(num * 100) / 100;
30
+ }
31
+ function arrayKeys(array) {
32
+ return objectKeys(array).map(Number);
33
+ }
34
+ function arrayLast(array) {
35
+ return array[arrayLastIndex(array)];
36
+ }
37
+ function arrayLastIndex(array) {
38
+ return Math.max(0, array.length - 1);
39
+ }
40
+ function arrayIsLastIndex(array, index) {
41
+ return index === arrayLastIndex(array);
42
+ }
43
+ function arrayFromNumber(n, startAt = 0) {
44
+ return Array.from(Array(n), (_, i) => startAt + i);
45
+ }
46
+ function objectKeys(object) {
47
+ return Object.keys(object);
48
+ }
49
+ function objectsMergeDeep(objectA, objectB) {
50
+ return [objectA, objectB].reduce((mergedObjects, currentObject) => {
51
+ objectKeys(currentObject).forEach((key) => {
52
+ const valueA = mergedObjects[key];
53
+ const valueB = currentObject[key];
54
+ const areObjects = isObject(valueA) && isObject(valueB);
55
+ mergedObjects[key] = areObjects ? objectsMergeDeep(valueA, valueB) : valueB;
56
+ });
57
+ return mergedObjects;
58
+ }, {});
59
+ }
60
+ function isMouseEvent(evt, ownerWindow) {
61
+ return typeof ownerWindow.MouseEvent !== "undefined" && evt instanceof ownerWindow.MouseEvent;
62
+ }
63
+ function Alignment(align, viewSize) {
64
+ const predefined = {
65
+ start,
66
+ center,
67
+ end
68
+ };
69
+ function start() {
70
+ return 0;
71
+ }
72
+ function center(n) {
73
+ return end(n) / 2;
74
+ }
75
+ function end(n) {
76
+ return viewSize - n;
77
+ }
78
+ function measure(n, index) {
79
+ if (isString(align)) return predefined[align](n);
80
+ return align(viewSize, n, index);
81
+ }
82
+ const self = {
83
+ measure
84
+ };
85
+ return self;
86
+ }
87
+ function EventStore() {
88
+ let listeners = [];
89
+ function add(node, type, handler, options = {
90
+ passive: true
91
+ }) {
92
+ let removeListener;
93
+ if ("addEventListener" in node) {
94
+ node.addEventListener(type, handler, options);
95
+ removeListener = () => node.removeEventListener(type, handler, options);
96
+ } else {
97
+ const legacyMediaQueryList = node;
98
+ legacyMediaQueryList.addListener(handler);
99
+ removeListener = () => legacyMediaQueryList.removeListener(handler);
100
+ }
101
+ listeners.push(removeListener);
102
+ return self;
103
+ }
104
+ function clear() {
105
+ listeners = listeners.filter((remove) => remove());
106
+ }
107
+ const self = {
108
+ add,
109
+ clear
110
+ };
111
+ return self;
112
+ }
113
+ function Animations(ownerDocument, ownerWindow, update, render) {
114
+ const documentVisibleHandler = EventStore();
115
+ const fixedTimeStep = 1e3 / 60;
116
+ let lastTimeStamp = null;
117
+ let accumulatedTime = 0;
118
+ let animationId = 0;
119
+ function init() {
120
+ documentVisibleHandler.add(ownerDocument, "visibilitychange", () => {
121
+ if (ownerDocument.hidden) reset();
122
+ });
123
+ }
124
+ function destroy() {
125
+ stop();
126
+ documentVisibleHandler.clear();
127
+ }
128
+ function animate(timeStamp) {
129
+ if (!animationId) return;
130
+ if (!lastTimeStamp) {
131
+ lastTimeStamp = timeStamp;
132
+ update();
133
+ update();
134
+ }
135
+ const timeElapsed = timeStamp - lastTimeStamp;
136
+ lastTimeStamp = timeStamp;
137
+ accumulatedTime += timeElapsed;
138
+ while (accumulatedTime >= fixedTimeStep) {
139
+ update();
140
+ accumulatedTime -= fixedTimeStep;
141
+ }
142
+ const alpha = accumulatedTime / fixedTimeStep;
143
+ render(alpha);
144
+ if (animationId) {
145
+ animationId = ownerWindow.requestAnimationFrame(animate);
146
+ }
147
+ }
148
+ function start() {
149
+ if (animationId) return;
150
+ animationId = ownerWindow.requestAnimationFrame(animate);
151
+ }
152
+ function stop() {
153
+ ownerWindow.cancelAnimationFrame(animationId);
154
+ lastTimeStamp = null;
155
+ accumulatedTime = 0;
156
+ animationId = 0;
157
+ }
158
+ function reset() {
159
+ lastTimeStamp = null;
160
+ accumulatedTime = 0;
161
+ }
162
+ const self = {
163
+ init,
164
+ destroy,
165
+ start,
166
+ stop,
167
+ update,
168
+ render
169
+ };
170
+ return self;
171
+ }
172
+ function Axis(axis, contentDirection) {
173
+ const isRightToLeft = contentDirection === "rtl";
174
+ const isVertical = axis === "y";
175
+ const scroll = isVertical ? "y" : "x";
176
+ const cross = isVertical ? "x" : "y";
177
+ const sign = !isVertical && isRightToLeft ? -1 : 1;
178
+ const startEdge = getStartEdge();
179
+ const endEdge = getEndEdge();
180
+ function measureSize(nodeRect) {
181
+ const {
182
+ height,
183
+ width
184
+ } = nodeRect;
185
+ return isVertical ? height : width;
186
+ }
187
+ function getStartEdge() {
188
+ if (isVertical) return "top";
189
+ return isRightToLeft ? "right" : "left";
190
+ }
191
+ function getEndEdge() {
192
+ if (isVertical) return "bottom";
193
+ return isRightToLeft ? "left" : "right";
194
+ }
195
+ function direction(n) {
196
+ return n * sign;
197
+ }
198
+ const self = {
199
+ scroll,
200
+ cross,
201
+ startEdge,
202
+ endEdge,
203
+ measureSize,
204
+ direction
205
+ };
206
+ return self;
207
+ }
208
+ function Limit(min = 0, max = 0) {
209
+ const length = mathAbs(min - max);
210
+ function reachedMin(n) {
211
+ return n < min;
212
+ }
213
+ function reachedMax(n) {
214
+ return n > max;
215
+ }
216
+ function reachedAny(n) {
217
+ return reachedMin(n) || reachedMax(n);
218
+ }
219
+ function constrain(n) {
220
+ if (!reachedAny(n)) return n;
221
+ return reachedMin(n) ? min : max;
222
+ }
223
+ function removeOffset(n) {
224
+ if (!length) return n;
225
+ return n - length * Math.ceil((n - max) / length);
226
+ }
227
+ const self = {
228
+ length,
229
+ max,
230
+ min,
231
+ constrain,
232
+ reachedAny,
233
+ reachedMax,
234
+ reachedMin,
235
+ removeOffset
236
+ };
237
+ return self;
238
+ }
239
+ function Counter(max, start, loop) {
240
+ const {
241
+ constrain
242
+ } = Limit(0, max);
243
+ const loopEnd = max + 1;
244
+ let counter = withinLimit(start);
245
+ function withinLimit(n) {
246
+ return !loop ? constrain(n) : mathAbs((loopEnd + n) % loopEnd);
247
+ }
248
+ function get() {
249
+ return counter;
250
+ }
251
+ function set(n) {
252
+ counter = withinLimit(n);
253
+ return self;
254
+ }
255
+ function add(n) {
256
+ return clone().set(get() + n);
257
+ }
258
+ function clone() {
259
+ return Counter(max, get(), loop);
260
+ }
261
+ const self = {
262
+ get,
263
+ set,
264
+ add,
265
+ clone
266
+ };
267
+ return self;
268
+ }
269
+ function DragHandler(axis, rootNode, ownerDocument, ownerWindow, target, dragTracker, location, animation, scrollTo, scrollBody, scrollTarget, index, eventHandler, percentOfView, dragFree, dragThreshold, skipSnaps, baseFriction, watchDrag) {
270
+ const {
271
+ cross: crossAxis,
272
+ direction
273
+ } = axis;
274
+ const focusNodes = ["INPUT", "SELECT", "TEXTAREA"];
275
+ const nonPassiveEvent = {
276
+ passive: false
277
+ };
278
+ const initEvents = EventStore();
279
+ const dragEvents = EventStore();
280
+ const goToNextThreshold = Limit(50, 225).constrain(percentOfView.measure(20));
281
+ const snapForceBoost = {
282
+ mouse: 300,
283
+ touch: 400
284
+ };
285
+ const freeForceBoost = {
286
+ mouse: 500,
287
+ touch: 600
288
+ };
289
+ const baseSpeed = dragFree ? 43 : 25;
290
+ let isMoving = false;
291
+ let startScroll = 0;
292
+ let startCross = 0;
293
+ let pointerIsDown = false;
294
+ let preventScroll = false;
295
+ let preventClick = false;
296
+ let isMouse = false;
297
+ function init(emblaApi) {
298
+ if (!watchDrag) return;
299
+ function downIfAllowed(evt) {
300
+ if (isBoolean(watchDrag) || watchDrag(emblaApi, evt)) down(evt);
301
+ }
302
+ const node = rootNode;
303
+ initEvents.add(node, "dragstart", (evt) => evt.preventDefault(), nonPassiveEvent).add(node, "touchmove", () => void 0, nonPassiveEvent).add(node, "touchend", () => void 0).add(node, "touchstart", downIfAllowed).add(node, "mousedown", downIfAllowed).add(node, "touchcancel", up).add(node, "contextmenu", up).add(node, "click", click, true);
304
+ }
305
+ function destroy() {
306
+ initEvents.clear();
307
+ dragEvents.clear();
308
+ }
309
+ function addDragEvents() {
310
+ const node = isMouse ? ownerDocument : rootNode;
311
+ dragEvents.add(node, "touchmove", move, nonPassiveEvent).add(node, "touchend", up).add(node, "mousemove", move, nonPassiveEvent).add(node, "mouseup", up);
312
+ }
313
+ function isFocusNode(node) {
314
+ const nodeName = node.nodeName || "";
315
+ return focusNodes.includes(nodeName);
316
+ }
317
+ function forceBoost() {
318
+ const boost = dragFree ? freeForceBoost : snapForceBoost;
319
+ const type = isMouse ? "mouse" : "touch";
320
+ return boost[type];
321
+ }
322
+ function allowedForce(force, targetChanged) {
323
+ const next = index.add(mathSign(force) * -1);
324
+ const baseForce = scrollTarget.byDistance(force, !dragFree).distance;
325
+ if (dragFree || mathAbs(force) < goToNextThreshold) return baseForce;
326
+ if (skipSnaps && targetChanged) return baseForce * 0.5;
327
+ return scrollTarget.byIndex(next.get(), 0).distance;
328
+ }
329
+ function down(evt) {
330
+ const isMouseEvt = isMouseEvent(evt, ownerWindow);
331
+ isMouse = isMouseEvt;
332
+ preventClick = dragFree && isMouseEvt && !evt.buttons && isMoving;
333
+ isMoving = deltaAbs(target.get(), location.get()) >= 2;
334
+ if (isMouseEvt && evt.button !== 0) return;
335
+ if (isFocusNode(evt.target)) return;
336
+ pointerIsDown = true;
337
+ dragTracker.pointerDown(evt);
338
+ scrollBody.useFriction(0).useDuration(0);
339
+ target.set(location);
340
+ addDragEvents();
341
+ startScroll = dragTracker.readPoint(evt);
342
+ startCross = dragTracker.readPoint(evt, crossAxis);
343
+ eventHandler.emit("pointerDown");
344
+ }
345
+ function move(evt) {
346
+ const isTouchEvt = !isMouseEvent(evt, ownerWindow);
347
+ if (isTouchEvt && evt.touches.length >= 2) return up(evt);
348
+ const lastScroll = dragTracker.readPoint(evt);
349
+ const lastCross = dragTracker.readPoint(evt, crossAxis);
350
+ const diffScroll = deltaAbs(lastScroll, startScroll);
351
+ const diffCross = deltaAbs(lastCross, startCross);
352
+ if (!preventScroll && !isMouse) {
353
+ if (!evt.cancelable) return up(evt);
354
+ preventScroll = diffScroll > diffCross;
355
+ if (!preventScroll) return up(evt);
356
+ }
357
+ const diff = dragTracker.pointerMove(evt);
358
+ if (diffScroll > dragThreshold) preventClick = true;
359
+ scrollBody.useFriction(0.3).useDuration(0.75);
360
+ animation.start();
361
+ target.add(direction(diff));
362
+ evt.preventDefault();
363
+ }
364
+ function up(evt) {
365
+ const currentLocation = scrollTarget.byDistance(0, false);
366
+ const targetChanged = currentLocation.index !== index.get();
367
+ const rawForce = dragTracker.pointerUp(evt) * forceBoost();
368
+ const force = allowedForce(direction(rawForce), targetChanged);
369
+ const forceFactor = factorAbs(rawForce, force);
370
+ const speed = baseSpeed - 10 * forceFactor;
371
+ const friction = baseFriction + forceFactor / 50;
372
+ preventScroll = false;
373
+ pointerIsDown = false;
374
+ dragEvents.clear();
375
+ scrollBody.useDuration(speed).useFriction(friction);
376
+ scrollTo.distance(force, !dragFree);
377
+ isMouse = false;
378
+ eventHandler.emit("pointerUp");
379
+ }
380
+ function click(evt) {
381
+ if (preventClick) {
382
+ evt.stopPropagation();
383
+ evt.preventDefault();
384
+ preventClick = false;
385
+ }
386
+ }
387
+ function pointerDown() {
388
+ return pointerIsDown;
389
+ }
390
+ const self = {
391
+ init,
392
+ destroy,
393
+ pointerDown
394
+ };
395
+ return self;
396
+ }
397
+ function DragTracker(axis, ownerWindow) {
398
+ const logInterval = 170;
399
+ let startEvent;
400
+ let lastEvent;
401
+ function readTime(evt) {
402
+ return evt.timeStamp;
403
+ }
404
+ function readPoint(evt, evtAxis) {
405
+ const property = evtAxis || axis.scroll;
406
+ const coord = `client${property === "x" ? "X" : "Y"}`;
407
+ return (isMouseEvent(evt, ownerWindow) ? evt : evt.touches[0])[coord];
408
+ }
409
+ function pointerDown(evt) {
410
+ startEvent = evt;
411
+ lastEvent = evt;
412
+ return readPoint(evt);
413
+ }
414
+ function pointerMove(evt) {
415
+ const diff = readPoint(evt) - readPoint(lastEvent);
416
+ const expired = readTime(evt) - readTime(startEvent) > logInterval;
417
+ lastEvent = evt;
418
+ if (expired) startEvent = evt;
419
+ return diff;
420
+ }
421
+ function pointerUp(evt) {
422
+ if (!startEvent || !lastEvent) return 0;
423
+ const diffDrag = readPoint(lastEvent) - readPoint(startEvent);
424
+ const diffTime = readTime(evt) - readTime(startEvent);
425
+ const expired = readTime(evt) - readTime(lastEvent) > logInterval;
426
+ const force = diffDrag / diffTime;
427
+ const isFlick = diffTime && !expired && mathAbs(force) > 0.1;
428
+ return isFlick ? force : 0;
429
+ }
430
+ const self = {
431
+ pointerDown,
432
+ pointerMove,
433
+ pointerUp,
434
+ readPoint
435
+ };
436
+ return self;
437
+ }
438
+ function NodeRects() {
439
+ function measure(node) {
440
+ const {
441
+ offsetTop,
442
+ offsetLeft,
443
+ offsetWidth,
444
+ offsetHeight
445
+ } = node;
446
+ const offset = {
447
+ top: offsetTop,
448
+ right: offsetLeft + offsetWidth,
449
+ bottom: offsetTop + offsetHeight,
450
+ left: offsetLeft,
451
+ width: offsetWidth,
452
+ height: offsetHeight
453
+ };
454
+ return offset;
455
+ }
456
+ const self = {
457
+ measure
458
+ };
459
+ return self;
460
+ }
461
+ function PercentOfView(viewSize) {
462
+ function measure(n) {
463
+ return viewSize * (n / 100);
464
+ }
465
+ const self = {
466
+ measure
467
+ };
468
+ return self;
469
+ }
470
+ function ResizeHandler(container, eventHandler, ownerWindow, slides, axis, watchResize, nodeRects) {
471
+ const observeNodes = [container].concat(slides);
472
+ let resizeObserver;
473
+ let containerSize;
474
+ let slideSizes = [];
475
+ let destroyed = false;
476
+ function readSize(node) {
477
+ return axis.measureSize(nodeRects.measure(node));
478
+ }
479
+ function init(emblaApi) {
480
+ if (!watchResize) return;
481
+ containerSize = readSize(container);
482
+ slideSizes = slides.map(readSize);
483
+ function defaultCallback(entries) {
484
+ for (const entry of entries) {
485
+ if (destroyed) return;
486
+ const isContainer = entry.target === container;
487
+ const slideIndex = slides.indexOf(entry.target);
488
+ const lastSize = isContainer ? containerSize : slideSizes[slideIndex];
489
+ const newSize = readSize(isContainer ? container : slides[slideIndex]);
490
+ const diffSize = mathAbs(newSize - lastSize);
491
+ if (diffSize >= 0.5) {
492
+ emblaApi.reInit();
493
+ eventHandler.emit("resize");
494
+ break;
495
+ }
496
+ }
497
+ }
498
+ resizeObserver = new ResizeObserver((entries) => {
499
+ if (isBoolean(watchResize) || watchResize(emblaApi, entries)) {
500
+ defaultCallback(entries);
501
+ }
502
+ });
503
+ ownerWindow.requestAnimationFrame(() => {
504
+ observeNodes.forEach((node) => resizeObserver.observe(node));
505
+ });
506
+ }
507
+ function destroy() {
508
+ destroyed = true;
509
+ if (resizeObserver) resizeObserver.disconnect();
510
+ }
511
+ const self = {
512
+ init,
513
+ destroy
514
+ };
515
+ return self;
516
+ }
517
+ function ScrollBody(location, offsetLocation, previousLocation, target, baseDuration, baseFriction) {
518
+ let scrollVelocity = 0;
519
+ let scrollDirection = 0;
520
+ let scrollDuration = baseDuration;
521
+ let scrollFriction = baseFriction;
522
+ let rawLocation = location.get();
523
+ let rawLocationPrevious = 0;
524
+ function seek() {
525
+ const displacement = target.get() - location.get();
526
+ const isInstant = !scrollDuration;
527
+ let scrollDistance = 0;
528
+ if (isInstant) {
529
+ scrollVelocity = 0;
530
+ previousLocation.set(target);
531
+ location.set(target);
532
+ scrollDistance = displacement;
533
+ } else {
534
+ previousLocation.set(location);
535
+ scrollVelocity += displacement / scrollDuration;
536
+ scrollVelocity *= scrollFriction;
537
+ rawLocation += scrollVelocity;
538
+ location.add(scrollVelocity);
539
+ scrollDistance = rawLocation - rawLocationPrevious;
540
+ }
541
+ scrollDirection = mathSign(scrollDistance);
542
+ rawLocationPrevious = rawLocation;
543
+ return self;
544
+ }
545
+ function settled() {
546
+ const diff = target.get() - offsetLocation.get();
547
+ return mathAbs(diff) < 1e-3;
548
+ }
549
+ function duration() {
550
+ return scrollDuration;
551
+ }
552
+ function direction() {
553
+ return scrollDirection;
554
+ }
555
+ function velocity() {
556
+ return scrollVelocity;
557
+ }
558
+ function useBaseDuration() {
559
+ return useDuration(baseDuration);
560
+ }
561
+ function useBaseFriction() {
562
+ return useFriction(baseFriction);
563
+ }
564
+ function useDuration(n) {
565
+ scrollDuration = n;
566
+ return self;
567
+ }
568
+ function useFriction(n) {
569
+ scrollFriction = n;
570
+ return self;
571
+ }
572
+ const self = {
573
+ direction,
574
+ duration,
575
+ velocity,
576
+ seek,
577
+ settled,
578
+ useBaseFriction,
579
+ useBaseDuration,
580
+ useFriction,
581
+ useDuration
582
+ };
583
+ return self;
584
+ }
585
+ function ScrollBounds(limit, location, target, scrollBody, percentOfView) {
586
+ const pullBackThreshold = percentOfView.measure(10);
587
+ const edgeOffsetTolerance = percentOfView.measure(50);
588
+ const frictionLimit = Limit(0.1, 0.99);
589
+ let disabled = false;
590
+ function shouldConstrain() {
591
+ if (disabled) return false;
592
+ if (!limit.reachedAny(target.get())) return false;
593
+ if (!limit.reachedAny(location.get())) return false;
594
+ return true;
595
+ }
596
+ function constrain(pointerDown) {
597
+ if (!shouldConstrain()) return;
598
+ const edge = limit.reachedMin(location.get()) ? "min" : "max";
599
+ const diffToEdge = mathAbs(limit[edge] - location.get());
600
+ const diffToTarget = target.get() - location.get();
601
+ const friction = frictionLimit.constrain(diffToEdge / edgeOffsetTolerance);
602
+ target.subtract(diffToTarget * friction);
603
+ if (!pointerDown && mathAbs(diffToTarget) < pullBackThreshold) {
604
+ target.set(limit.constrain(target.get()));
605
+ scrollBody.useDuration(25).useBaseFriction();
606
+ }
607
+ }
608
+ function toggleActive(active) {
609
+ disabled = !active;
610
+ }
611
+ const self = {
612
+ shouldConstrain,
613
+ constrain,
614
+ toggleActive
615
+ };
616
+ return self;
617
+ }
618
+ function ScrollContain(viewSize, contentSize, snapsAligned, containScroll, pixelTolerance) {
619
+ const scrollBounds = Limit(-contentSize + viewSize, 0);
620
+ const snapsBounded = measureBounded();
621
+ const scrollContainLimit = findScrollContainLimit();
622
+ const snapsContained = measureContained();
623
+ function usePixelTolerance(bound, snap) {
624
+ return deltaAbs(bound, snap) <= 1;
625
+ }
626
+ function findScrollContainLimit() {
627
+ const startSnap = snapsBounded[0];
628
+ const endSnap = arrayLast(snapsBounded);
629
+ const min = snapsBounded.lastIndexOf(startSnap);
630
+ const max = snapsBounded.indexOf(endSnap) + 1;
631
+ return Limit(min, max);
632
+ }
633
+ function measureBounded() {
634
+ return snapsAligned.map((snapAligned, index) => {
635
+ const {
636
+ min,
637
+ max
638
+ } = scrollBounds;
639
+ const snap = scrollBounds.constrain(snapAligned);
640
+ const isFirst = !index;
641
+ const isLast = arrayIsLastIndex(snapsAligned, index);
642
+ if (isFirst) return max;
643
+ if (isLast) return min;
644
+ if (usePixelTolerance(min, snap)) return min;
645
+ if (usePixelTolerance(max, snap)) return max;
646
+ return snap;
647
+ }).map((scrollBound) => parseFloat(scrollBound.toFixed(3)));
648
+ }
649
+ function measureContained() {
650
+ if (contentSize <= viewSize + pixelTolerance) return [scrollBounds.max];
651
+ if (containScroll === "keepSnaps") return snapsBounded;
652
+ const {
653
+ min,
654
+ max
655
+ } = scrollContainLimit;
656
+ return snapsBounded.slice(min, max);
657
+ }
658
+ const self = {
659
+ snapsContained,
660
+ scrollContainLimit
661
+ };
662
+ return self;
663
+ }
664
+ function ScrollLimit(contentSize, scrollSnaps, loop) {
665
+ const max = scrollSnaps[0];
666
+ const min = loop ? max - contentSize : arrayLast(scrollSnaps);
667
+ const limit = Limit(min, max);
668
+ const self = {
669
+ limit
670
+ };
671
+ return self;
672
+ }
673
+ function ScrollLooper(contentSize, limit, location, vectors) {
674
+ const jointSafety = 0.1;
675
+ const min = limit.min + jointSafety;
676
+ const max = limit.max + jointSafety;
677
+ const {
678
+ reachedMin,
679
+ reachedMax
680
+ } = Limit(min, max);
681
+ function shouldLoop(direction) {
682
+ if (direction === 1) return reachedMax(location.get());
683
+ if (direction === -1) return reachedMin(location.get());
684
+ return false;
685
+ }
686
+ function loop(direction) {
687
+ if (!shouldLoop(direction)) return;
688
+ const loopDistance = contentSize * (direction * -1);
689
+ vectors.forEach((v) => v.add(loopDistance));
690
+ }
691
+ const self = {
692
+ loop
693
+ };
694
+ return self;
695
+ }
696
+ function ScrollProgress(limit) {
697
+ const {
698
+ max,
699
+ length
700
+ } = limit;
701
+ function get(n) {
702
+ const currentLocation = n - max;
703
+ return length ? currentLocation / -length : 0;
704
+ }
705
+ const self = {
706
+ get
707
+ };
708
+ return self;
709
+ }
710
+ function ScrollSnaps(axis, alignment, containerRect, slideRects, slidesToScroll) {
711
+ const {
712
+ startEdge,
713
+ endEdge
714
+ } = axis;
715
+ const {
716
+ groupSlides
717
+ } = slidesToScroll;
718
+ const alignments = measureSizes().map(alignment.measure);
719
+ const snaps = measureUnaligned();
720
+ const snapsAligned = measureAligned();
721
+ function measureSizes() {
722
+ return groupSlides(slideRects).map((rects) => arrayLast(rects)[endEdge] - rects[0][startEdge]).map(mathAbs);
723
+ }
724
+ function measureUnaligned() {
725
+ return slideRects.map((rect) => containerRect[startEdge] - rect[startEdge]).map((snap) => -mathAbs(snap));
726
+ }
727
+ function measureAligned() {
728
+ return groupSlides(snaps).map((g) => g[0]).map((snap, index) => snap + alignments[index]);
729
+ }
730
+ const self = {
731
+ snaps,
732
+ snapsAligned
733
+ };
734
+ return self;
735
+ }
736
+ function SlideRegistry(containSnaps, containScroll, scrollSnaps, scrollContainLimit, slidesToScroll, slideIndexes) {
737
+ const {
738
+ groupSlides
739
+ } = slidesToScroll;
740
+ const {
741
+ min,
742
+ max
743
+ } = scrollContainLimit;
744
+ const slideRegistry = createSlideRegistry();
745
+ function createSlideRegistry() {
746
+ const groupedSlideIndexes = groupSlides(slideIndexes);
747
+ const doNotContain = !containSnaps || containScroll === "keepSnaps";
748
+ if (scrollSnaps.length === 1) return [slideIndexes];
749
+ if (doNotContain) return groupedSlideIndexes;
750
+ return groupedSlideIndexes.slice(min, max).map((group, index, groups) => {
751
+ const isFirst = !index;
752
+ const isLast = arrayIsLastIndex(groups, index);
753
+ if (isFirst) {
754
+ const range = arrayLast(groups[0]) + 1;
755
+ return arrayFromNumber(range);
756
+ }
757
+ if (isLast) {
758
+ const range = arrayLastIndex(slideIndexes) - arrayLast(groups)[0] + 1;
759
+ return arrayFromNumber(range, arrayLast(groups)[0]);
760
+ }
761
+ return group;
762
+ });
763
+ }
764
+ const self = {
765
+ slideRegistry
766
+ };
767
+ return self;
768
+ }
769
+ function ScrollTarget(loop, scrollSnaps, contentSize, limit, targetVector) {
770
+ const {
771
+ reachedAny,
772
+ removeOffset,
773
+ constrain
774
+ } = limit;
775
+ function minDistance(distances) {
776
+ return distances.concat().sort((a, b) => mathAbs(a) - mathAbs(b))[0];
777
+ }
778
+ function findTargetSnap(target) {
779
+ const distance = loop ? removeOffset(target) : constrain(target);
780
+ const ascDiffsToSnaps = scrollSnaps.map((snap, index2) => ({
781
+ diff: shortcut(snap - distance, 0),
782
+ index: index2
783
+ })).sort((d1, d2) => mathAbs(d1.diff) - mathAbs(d2.diff));
784
+ const {
785
+ index
786
+ } = ascDiffsToSnaps[0];
787
+ return {
788
+ index,
789
+ distance
790
+ };
791
+ }
792
+ function shortcut(target, direction) {
793
+ const targets = [target, target + contentSize, target - contentSize];
794
+ if (!loop) return target;
795
+ if (!direction) return minDistance(targets);
796
+ const matchingTargets = targets.filter((t) => mathSign(t) === direction);
797
+ if (matchingTargets.length) return minDistance(matchingTargets);
798
+ return arrayLast(targets) - contentSize;
799
+ }
800
+ function byIndex(index, direction) {
801
+ const diffToSnap = scrollSnaps[index] - targetVector.get();
802
+ const distance = shortcut(diffToSnap, direction);
803
+ return {
804
+ index,
805
+ distance
806
+ };
807
+ }
808
+ function byDistance(distance, snap) {
809
+ const target = targetVector.get() + distance;
810
+ const {
811
+ index,
812
+ distance: targetSnapDistance
813
+ } = findTargetSnap(target);
814
+ const reachedBound = !loop && reachedAny(target);
815
+ if (!snap || reachedBound) return {
816
+ index,
817
+ distance
818
+ };
819
+ const diffToSnap = scrollSnaps[index] - targetSnapDistance;
820
+ const snapDistance = distance + shortcut(diffToSnap, 0);
821
+ return {
822
+ index,
823
+ distance: snapDistance
824
+ };
825
+ }
826
+ const self = {
827
+ byDistance,
828
+ byIndex,
829
+ shortcut
830
+ };
831
+ return self;
832
+ }
833
+ function ScrollTo(animation, indexCurrent, indexPrevious, scrollBody, scrollTarget, targetVector, eventHandler) {
834
+ function scrollTo(target) {
835
+ const distanceDiff = target.distance;
836
+ const indexDiff = target.index !== indexCurrent.get();
837
+ targetVector.add(distanceDiff);
838
+ if (distanceDiff) {
839
+ if (scrollBody.duration()) {
840
+ animation.start();
841
+ } else {
842
+ animation.update();
843
+ animation.render(1);
844
+ animation.update();
845
+ }
846
+ }
847
+ if (indexDiff) {
848
+ indexPrevious.set(indexCurrent.get());
849
+ indexCurrent.set(target.index);
850
+ eventHandler.emit("select");
851
+ }
852
+ }
853
+ function distance(n, snap) {
854
+ const target = scrollTarget.byDistance(n, snap);
855
+ scrollTo(target);
856
+ }
857
+ function index(n, direction) {
858
+ const targetIndex = indexCurrent.clone().set(n);
859
+ const target = scrollTarget.byIndex(targetIndex.get(), direction);
860
+ scrollTo(target);
861
+ }
862
+ const self = {
863
+ distance,
864
+ index
865
+ };
866
+ return self;
867
+ }
868
+ function SlideFocus(root, slides, slideRegistry, scrollTo, scrollBody, eventStore, eventHandler, watchFocus) {
869
+ const focusListenerOptions = {
870
+ passive: true,
871
+ capture: true
872
+ };
873
+ let lastTabPressTime = 0;
874
+ function init(emblaApi) {
875
+ if (!watchFocus) return;
876
+ function defaultCallback(index) {
877
+ const nowTime = (/* @__PURE__ */ new Date()).getTime();
878
+ const diffTime = nowTime - lastTabPressTime;
879
+ if (diffTime > 10) return;
880
+ eventHandler.emit("slideFocusStart");
881
+ root.scrollLeft = 0;
882
+ const group = slideRegistry.findIndex((group2) => group2.includes(index));
883
+ if (!isNumber(group)) return;
884
+ scrollBody.useDuration(0);
885
+ scrollTo.index(group, 0);
886
+ eventHandler.emit("slideFocus");
887
+ }
888
+ eventStore.add(document, "keydown", registerTabPress, false);
889
+ slides.forEach((slide, slideIndex) => {
890
+ eventStore.add(slide, "focus", (evt) => {
891
+ if (isBoolean(watchFocus) || watchFocus(emblaApi, evt)) {
892
+ defaultCallback(slideIndex);
893
+ }
894
+ }, focusListenerOptions);
895
+ });
896
+ }
897
+ function registerTabPress(event) {
898
+ if (event.code === "Tab") lastTabPressTime = (/* @__PURE__ */ new Date()).getTime();
899
+ }
900
+ const self = {
901
+ init
902
+ };
903
+ return self;
904
+ }
905
+ function Vector1D(initialValue) {
906
+ let value = initialValue;
907
+ function get() {
908
+ return value;
909
+ }
910
+ function set(n) {
911
+ value = normalizeInput(n);
912
+ }
913
+ function add(n) {
914
+ value += normalizeInput(n);
915
+ }
916
+ function subtract(n) {
917
+ value -= normalizeInput(n);
918
+ }
919
+ function normalizeInput(n) {
920
+ return isNumber(n) ? n : n.get();
921
+ }
922
+ const self = {
923
+ get,
924
+ set,
925
+ add,
926
+ subtract
927
+ };
928
+ return self;
929
+ }
930
+ function Translate(axis, container) {
931
+ const translate = axis.scroll === "x" ? x : y;
932
+ const containerStyle = container.style;
933
+ let previousTarget = null;
934
+ let disabled = false;
935
+ function x(n) {
936
+ return `translate3d(${n}px,0px,0px)`;
937
+ }
938
+ function y(n) {
939
+ return `translate3d(0px,${n}px,0px)`;
940
+ }
941
+ function to(target) {
942
+ if (disabled) return;
943
+ const newTarget = roundToTwoDecimals(axis.direction(target));
944
+ if (newTarget === previousTarget) return;
945
+ containerStyle.transform = translate(newTarget);
946
+ previousTarget = newTarget;
947
+ }
948
+ function toggleActive(active) {
949
+ disabled = !active;
950
+ }
951
+ function clear() {
952
+ if (disabled) return;
953
+ containerStyle.transform = "";
954
+ if (!container.getAttribute("style")) container.removeAttribute("style");
955
+ }
956
+ const self = {
957
+ clear,
958
+ to,
959
+ toggleActive
960
+ };
961
+ return self;
962
+ }
963
+ function SlideLooper(axis, viewSize, contentSize, slideSizes, slideSizesWithGaps, snaps, scrollSnaps, location, slides) {
964
+ const roundingSafety = 0.5;
965
+ const ascItems = arrayKeys(slideSizesWithGaps);
966
+ const descItems = arrayKeys(slideSizesWithGaps).reverse();
967
+ const loopPoints = startPoints().concat(endPoints());
968
+ function removeSlideSizes(indexes, from) {
969
+ return indexes.reduce((a, i) => {
970
+ return a - slideSizesWithGaps[i];
971
+ }, from);
972
+ }
973
+ function slidesInGap(indexes, gap) {
974
+ return indexes.reduce((a, i) => {
975
+ const remainingGap = removeSlideSizes(a, gap);
976
+ return remainingGap > 0 ? a.concat([i]) : a;
977
+ }, []);
978
+ }
979
+ function findSlideBounds(offset) {
980
+ return snaps.map((snap, index) => ({
981
+ start: snap - slideSizes[index] + roundingSafety + offset,
982
+ end: snap + viewSize - roundingSafety + offset
983
+ }));
984
+ }
985
+ function findLoopPoints(indexes, offset, isEndEdge) {
986
+ const slideBounds = findSlideBounds(offset);
987
+ return indexes.map((index) => {
988
+ const initial = isEndEdge ? 0 : -contentSize;
989
+ const altered = isEndEdge ? contentSize : 0;
990
+ const boundEdge = isEndEdge ? "end" : "start";
991
+ const loopPoint = slideBounds[index][boundEdge];
992
+ return {
993
+ index,
994
+ loopPoint,
995
+ slideLocation: Vector1D(-1),
996
+ translate: Translate(axis, slides[index]),
997
+ target: () => location.get() > loopPoint ? initial : altered
998
+ };
999
+ });
1000
+ }
1001
+ function startPoints() {
1002
+ const gap = scrollSnaps[0];
1003
+ const indexes = slidesInGap(descItems, gap);
1004
+ return findLoopPoints(indexes, contentSize, false);
1005
+ }
1006
+ function endPoints() {
1007
+ const gap = viewSize - scrollSnaps[0] - 1;
1008
+ const indexes = slidesInGap(ascItems, gap);
1009
+ return findLoopPoints(indexes, -contentSize, true);
1010
+ }
1011
+ function canLoop() {
1012
+ return loopPoints.every(({
1013
+ index
1014
+ }) => {
1015
+ const otherIndexes = ascItems.filter((i) => i !== index);
1016
+ return removeSlideSizes(otherIndexes, viewSize) <= 0.1;
1017
+ });
1018
+ }
1019
+ function loop() {
1020
+ loopPoints.forEach((loopPoint) => {
1021
+ const {
1022
+ target,
1023
+ translate,
1024
+ slideLocation
1025
+ } = loopPoint;
1026
+ const shiftLocation = target();
1027
+ if (shiftLocation === slideLocation.get()) return;
1028
+ translate.to(shiftLocation);
1029
+ slideLocation.set(shiftLocation);
1030
+ });
1031
+ }
1032
+ function clear() {
1033
+ loopPoints.forEach((loopPoint) => loopPoint.translate.clear());
1034
+ }
1035
+ const self = {
1036
+ canLoop,
1037
+ clear,
1038
+ loop,
1039
+ loopPoints
1040
+ };
1041
+ return self;
1042
+ }
1043
+ function SlidesHandler(container, eventHandler, watchSlides) {
1044
+ let mutationObserver;
1045
+ let destroyed = false;
1046
+ function init(emblaApi) {
1047
+ if (!watchSlides) return;
1048
+ function defaultCallback(mutations) {
1049
+ for (const mutation of mutations) {
1050
+ if (mutation.type === "childList") {
1051
+ emblaApi.reInit();
1052
+ eventHandler.emit("slidesChanged");
1053
+ break;
1054
+ }
1055
+ }
1056
+ }
1057
+ mutationObserver = new MutationObserver((mutations) => {
1058
+ if (destroyed) return;
1059
+ if (isBoolean(watchSlides) || watchSlides(emblaApi, mutations)) {
1060
+ defaultCallback(mutations);
1061
+ }
1062
+ });
1063
+ mutationObserver.observe(container, {
1064
+ childList: true
1065
+ });
1066
+ }
1067
+ function destroy() {
1068
+ if (mutationObserver) mutationObserver.disconnect();
1069
+ destroyed = true;
1070
+ }
1071
+ const self = {
1072
+ init,
1073
+ destroy
1074
+ };
1075
+ return self;
1076
+ }
1077
+ function SlidesInView(container, slides, eventHandler, threshold) {
1078
+ const intersectionEntryMap = {};
1079
+ let inViewCache = null;
1080
+ let notInViewCache = null;
1081
+ let intersectionObserver;
1082
+ let destroyed = false;
1083
+ function init() {
1084
+ intersectionObserver = new IntersectionObserver((entries) => {
1085
+ if (destroyed) return;
1086
+ entries.forEach((entry) => {
1087
+ const index = slides.indexOf(entry.target);
1088
+ intersectionEntryMap[index] = entry;
1089
+ });
1090
+ inViewCache = null;
1091
+ notInViewCache = null;
1092
+ eventHandler.emit("slidesInView");
1093
+ }, {
1094
+ root: container.parentElement,
1095
+ threshold
1096
+ });
1097
+ slides.forEach((slide) => intersectionObserver.observe(slide));
1098
+ }
1099
+ function destroy() {
1100
+ if (intersectionObserver) intersectionObserver.disconnect();
1101
+ destroyed = true;
1102
+ }
1103
+ function createInViewList(inView) {
1104
+ return objectKeys(intersectionEntryMap).reduce((list, slideIndex) => {
1105
+ const index = parseInt(slideIndex);
1106
+ const {
1107
+ isIntersecting
1108
+ } = intersectionEntryMap[index];
1109
+ const inViewMatch = inView && isIntersecting;
1110
+ const notInViewMatch = !inView && !isIntersecting;
1111
+ if (inViewMatch || notInViewMatch) list.push(index);
1112
+ return list;
1113
+ }, []);
1114
+ }
1115
+ function get(inView = true) {
1116
+ if (inView && inViewCache) return inViewCache;
1117
+ if (!inView && notInViewCache) return notInViewCache;
1118
+ const slideIndexes = createInViewList(inView);
1119
+ if (inView) inViewCache = slideIndexes;
1120
+ if (!inView) notInViewCache = slideIndexes;
1121
+ return slideIndexes;
1122
+ }
1123
+ const self = {
1124
+ init,
1125
+ destroy,
1126
+ get
1127
+ };
1128
+ return self;
1129
+ }
1130
+ function SlideSizes(axis, containerRect, slideRects, slides, readEdgeGap, ownerWindow) {
1131
+ const {
1132
+ measureSize,
1133
+ startEdge,
1134
+ endEdge
1135
+ } = axis;
1136
+ const withEdgeGap = slideRects[0] && readEdgeGap;
1137
+ const startGap = measureStartGap();
1138
+ const endGap = measureEndGap();
1139
+ const slideSizes = slideRects.map(measureSize);
1140
+ const slideSizesWithGaps = measureWithGaps();
1141
+ function measureStartGap() {
1142
+ if (!withEdgeGap) return 0;
1143
+ const slideRect = slideRects[0];
1144
+ return mathAbs(containerRect[startEdge] - slideRect[startEdge]);
1145
+ }
1146
+ function measureEndGap() {
1147
+ if (!withEdgeGap) return 0;
1148
+ const style = ownerWindow.getComputedStyle(arrayLast(slides));
1149
+ return parseFloat(style.getPropertyValue(`margin-${endEdge}`));
1150
+ }
1151
+ function measureWithGaps() {
1152
+ return slideRects.map((rect, index, rects) => {
1153
+ const isFirst = !index;
1154
+ const isLast = arrayIsLastIndex(rects, index);
1155
+ if (isFirst) return slideSizes[index] + startGap;
1156
+ if (isLast) return slideSizes[index] + endGap;
1157
+ return rects[index + 1][startEdge] - rect[startEdge];
1158
+ }).map(mathAbs);
1159
+ }
1160
+ const self = {
1161
+ slideSizes,
1162
+ slideSizesWithGaps,
1163
+ startGap,
1164
+ endGap
1165
+ };
1166
+ return self;
1167
+ }
1168
+ function SlidesToScroll(axis, viewSize, slidesToScroll, loop, containerRect, slideRects, startGap, endGap, pixelTolerance) {
1169
+ const {
1170
+ startEdge,
1171
+ endEdge,
1172
+ direction
1173
+ } = axis;
1174
+ const groupByNumber = isNumber(slidesToScroll);
1175
+ function byNumber(array, groupSize) {
1176
+ return arrayKeys(array).filter((i) => i % groupSize === 0).map((i) => array.slice(i, i + groupSize));
1177
+ }
1178
+ function bySize(array) {
1179
+ if (!array.length) return [];
1180
+ return arrayKeys(array).reduce((groups, rectB, index) => {
1181
+ const rectA = arrayLast(groups) || 0;
1182
+ const isFirst = rectA === 0;
1183
+ const isLast = rectB === arrayLastIndex(array);
1184
+ const edgeA = containerRect[startEdge] - slideRects[rectA][startEdge];
1185
+ const edgeB = containerRect[startEdge] - slideRects[rectB][endEdge];
1186
+ const gapA = !loop && isFirst ? direction(startGap) : 0;
1187
+ const gapB = !loop && isLast ? direction(endGap) : 0;
1188
+ const chunkSize = mathAbs(edgeB - gapB - (edgeA + gapA));
1189
+ if (index && chunkSize > viewSize + pixelTolerance) groups.push(rectB);
1190
+ if (isLast) groups.push(array.length);
1191
+ return groups;
1192
+ }, []).map((currentSize, index, groups) => {
1193
+ const previousSize = Math.max(groups[index - 1] || 0);
1194
+ return array.slice(previousSize, currentSize);
1195
+ });
1196
+ }
1197
+ function groupSlides(array) {
1198
+ return groupByNumber ? byNumber(array, slidesToScroll) : bySize(array);
1199
+ }
1200
+ const self = {
1201
+ groupSlides
1202
+ };
1203
+ return self;
1204
+ }
1205
+ function Engine(root, container, slides, ownerDocument, ownerWindow, options, eventHandler) {
1206
+ const {
1207
+ align,
1208
+ axis: scrollAxis,
1209
+ direction,
1210
+ startIndex,
1211
+ loop,
1212
+ duration,
1213
+ dragFree,
1214
+ dragThreshold,
1215
+ inViewThreshold,
1216
+ slidesToScroll: groupSlides,
1217
+ skipSnaps,
1218
+ containScroll,
1219
+ watchResize,
1220
+ watchSlides,
1221
+ watchDrag,
1222
+ watchFocus
1223
+ } = options;
1224
+ const pixelTolerance = 2;
1225
+ const nodeRects = NodeRects();
1226
+ const containerRect = nodeRects.measure(container);
1227
+ const slideRects = slides.map(nodeRects.measure);
1228
+ const axis = Axis(scrollAxis, direction);
1229
+ const viewSize = axis.measureSize(containerRect);
1230
+ const percentOfView = PercentOfView(viewSize);
1231
+ const alignment = Alignment(align, viewSize);
1232
+ const containSnaps = !loop && !!containScroll;
1233
+ const readEdgeGap = loop || !!containScroll;
1234
+ const {
1235
+ slideSizes,
1236
+ slideSizesWithGaps,
1237
+ startGap,
1238
+ endGap
1239
+ } = SlideSizes(axis, containerRect, slideRects, slides, readEdgeGap, ownerWindow);
1240
+ const slidesToScroll = SlidesToScroll(axis, viewSize, groupSlides, loop, containerRect, slideRects, startGap, endGap, pixelTolerance);
1241
+ const {
1242
+ snaps,
1243
+ snapsAligned
1244
+ } = ScrollSnaps(axis, alignment, containerRect, slideRects, slidesToScroll);
1245
+ const contentSize = -arrayLast(snaps) + arrayLast(slideSizesWithGaps);
1246
+ const {
1247
+ snapsContained,
1248
+ scrollContainLimit
1249
+ } = ScrollContain(viewSize, contentSize, snapsAligned, containScroll, pixelTolerance);
1250
+ const scrollSnaps = containSnaps ? snapsContained : snapsAligned;
1251
+ const {
1252
+ limit
1253
+ } = ScrollLimit(contentSize, scrollSnaps, loop);
1254
+ const index = Counter(arrayLastIndex(scrollSnaps), startIndex, loop);
1255
+ const indexPrevious = index.clone();
1256
+ const slideIndexes = arrayKeys(slides);
1257
+ const update = ({
1258
+ dragHandler,
1259
+ scrollBody: scrollBody2,
1260
+ scrollBounds,
1261
+ options: {
1262
+ loop: loop2
1263
+ }
1264
+ }) => {
1265
+ if (!loop2) scrollBounds.constrain(dragHandler.pointerDown());
1266
+ scrollBody2.seek();
1267
+ };
1268
+ const render = ({
1269
+ scrollBody: scrollBody2,
1270
+ translate,
1271
+ location: location2,
1272
+ offsetLocation: offsetLocation2,
1273
+ previousLocation: previousLocation2,
1274
+ scrollLooper,
1275
+ slideLooper,
1276
+ dragHandler,
1277
+ animation: animation2,
1278
+ eventHandler: eventHandler2,
1279
+ scrollBounds,
1280
+ options: {
1281
+ loop: loop2
1282
+ }
1283
+ }, alpha) => {
1284
+ const shouldSettle = scrollBody2.settled();
1285
+ const withinBounds = !scrollBounds.shouldConstrain();
1286
+ const hasSettled = loop2 ? shouldSettle : shouldSettle && withinBounds;
1287
+ const hasSettledAndIdle = hasSettled && !dragHandler.pointerDown();
1288
+ if (hasSettledAndIdle) animation2.stop();
1289
+ const interpolatedLocation = location2.get() * alpha + previousLocation2.get() * (1 - alpha);
1290
+ offsetLocation2.set(interpolatedLocation);
1291
+ if (loop2) {
1292
+ scrollLooper.loop(scrollBody2.direction());
1293
+ slideLooper.loop();
1294
+ }
1295
+ translate.to(offsetLocation2.get());
1296
+ if (hasSettledAndIdle) eventHandler2.emit("settle");
1297
+ if (!hasSettled) eventHandler2.emit("scroll");
1298
+ };
1299
+ const animation = Animations(ownerDocument, ownerWindow, () => update(engine), (alpha) => render(engine, alpha));
1300
+ const friction = 0.68;
1301
+ const startLocation = scrollSnaps[index.get()];
1302
+ const location = Vector1D(startLocation);
1303
+ const previousLocation = Vector1D(startLocation);
1304
+ const offsetLocation = Vector1D(startLocation);
1305
+ const target = Vector1D(startLocation);
1306
+ const scrollBody = ScrollBody(location, offsetLocation, previousLocation, target, duration, friction);
1307
+ const scrollTarget = ScrollTarget(loop, scrollSnaps, contentSize, limit, target);
1308
+ const scrollTo = ScrollTo(animation, index, indexPrevious, scrollBody, scrollTarget, target, eventHandler);
1309
+ const scrollProgress = ScrollProgress(limit);
1310
+ const eventStore = EventStore();
1311
+ const slidesInView = SlidesInView(container, slides, eventHandler, inViewThreshold);
1312
+ const {
1313
+ slideRegistry
1314
+ } = SlideRegistry(containSnaps, containScroll, scrollSnaps, scrollContainLimit, slidesToScroll, slideIndexes);
1315
+ const slideFocus = SlideFocus(root, slides, slideRegistry, scrollTo, scrollBody, eventStore, eventHandler, watchFocus);
1316
+ const engine = {
1317
+ ownerDocument,
1318
+ ownerWindow,
1319
+ eventHandler,
1320
+ containerRect,
1321
+ slideRects,
1322
+ animation,
1323
+ axis,
1324
+ dragHandler: DragHandler(axis, root, ownerDocument, ownerWindow, target, DragTracker(axis, ownerWindow), location, animation, scrollTo, scrollBody, scrollTarget, index, eventHandler, percentOfView, dragFree, dragThreshold, skipSnaps, friction, watchDrag),
1325
+ eventStore,
1326
+ percentOfView,
1327
+ index,
1328
+ indexPrevious,
1329
+ limit,
1330
+ location,
1331
+ offsetLocation,
1332
+ previousLocation,
1333
+ options,
1334
+ resizeHandler: ResizeHandler(container, eventHandler, ownerWindow, slides, axis, watchResize, nodeRects),
1335
+ scrollBody,
1336
+ scrollBounds: ScrollBounds(limit, offsetLocation, target, scrollBody, percentOfView),
1337
+ scrollLooper: ScrollLooper(contentSize, limit, offsetLocation, [location, offsetLocation, previousLocation, target]),
1338
+ scrollProgress,
1339
+ scrollSnapList: scrollSnaps.map(scrollProgress.get),
1340
+ scrollSnaps,
1341
+ scrollTarget,
1342
+ scrollTo,
1343
+ slideLooper: SlideLooper(axis, viewSize, contentSize, slideSizes, slideSizesWithGaps, snaps, scrollSnaps, offsetLocation, slides),
1344
+ slideFocus,
1345
+ slidesHandler: SlidesHandler(container, eventHandler, watchSlides),
1346
+ slidesInView,
1347
+ slideIndexes,
1348
+ slideRegistry,
1349
+ slidesToScroll,
1350
+ target,
1351
+ translate: Translate(axis, container)
1352
+ };
1353
+ return engine;
1354
+ }
1355
+ function EventHandler() {
1356
+ let listeners = {};
1357
+ let api;
1358
+ function init(emblaApi) {
1359
+ api = emblaApi;
1360
+ }
1361
+ function getListeners(evt) {
1362
+ return listeners[evt] || [];
1363
+ }
1364
+ function emit(evt) {
1365
+ getListeners(evt).forEach((e) => e(api, evt));
1366
+ return self;
1367
+ }
1368
+ function on(evt, cb) {
1369
+ listeners[evt] = getListeners(evt).concat([cb]);
1370
+ return self;
1371
+ }
1372
+ function off(evt, cb) {
1373
+ listeners[evt] = getListeners(evt).filter((e) => e !== cb);
1374
+ return self;
1375
+ }
1376
+ function clear() {
1377
+ listeners = {};
1378
+ }
1379
+ const self = {
1380
+ init,
1381
+ emit,
1382
+ off,
1383
+ on,
1384
+ clear
1385
+ };
1386
+ return self;
1387
+ }
1388
+ const defaultOptions = {
1389
+ align: "center",
1390
+ axis: "x",
1391
+ container: null,
1392
+ slides: null,
1393
+ containScroll: "trimSnaps",
1394
+ direction: "ltr",
1395
+ slidesToScroll: 1,
1396
+ inViewThreshold: 0,
1397
+ breakpoints: {},
1398
+ dragFree: false,
1399
+ dragThreshold: 10,
1400
+ loop: false,
1401
+ skipSnaps: false,
1402
+ duration: 25,
1403
+ startIndex: 0,
1404
+ active: true,
1405
+ watchDrag: true,
1406
+ watchResize: true,
1407
+ watchSlides: true,
1408
+ watchFocus: true
1409
+ };
1410
+ function OptionsHandler(ownerWindow) {
1411
+ function mergeOptions(optionsA, optionsB) {
1412
+ return objectsMergeDeep(optionsA, optionsB || {});
1413
+ }
1414
+ function optionsAtMedia(options) {
1415
+ const optionsAtMedia2 = options.breakpoints || {};
1416
+ const matchedMediaOptions = objectKeys(optionsAtMedia2).filter((media) => ownerWindow.matchMedia(media).matches).map((media) => optionsAtMedia2[media]).reduce((a, mediaOption) => mergeOptions(a, mediaOption), {});
1417
+ return mergeOptions(options, matchedMediaOptions);
1418
+ }
1419
+ function optionsMediaQueries(optionsList) {
1420
+ return optionsList.map((options) => objectKeys(options.breakpoints || {})).reduce((acc, mediaQueries) => acc.concat(mediaQueries), []).map(ownerWindow.matchMedia);
1421
+ }
1422
+ const self = {
1423
+ mergeOptions,
1424
+ optionsAtMedia,
1425
+ optionsMediaQueries
1426
+ };
1427
+ return self;
1428
+ }
1429
+ function PluginsHandler(optionsHandler) {
1430
+ let activePlugins = [];
1431
+ function init(emblaApi, plugins) {
1432
+ activePlugins = plugins.filter(({
1433
+ options
1434
+ }) => optionsHandler.optionsAtMedia(options).active !== false);
1435
+ activePlugins.forEach((plugin) => plugin.init(emblaApi, optionsHandler));
1436
+ return plugins.reduce((map, plugin) => Object.assign(map, {
1437
+ [plugin.name]: plugin
1438
+ }), {});
1439
+ }
1440
+ function destroy() {
1441
+ activePlugins = activePlugins.filter((plugin) => plugin.destroy());
1442
+ }
1443
+ const self = {
1444
+ init,
1445
+ destroy
1446
+ };
1447
+ return self;
1448
+ }
1449
+ function EmblaCarousel(root, userOptions, userPlugins) {
1450
+ const ownerDocument = root.ownerDocument;
1451
+ const ownerWindow = ownerDocument.defaultView;
1452
+ const optionsHandler = OptionsHandler(ownerWindow);
1453
+ const pluginsHandler = PluginsHandler(optionsHandler);
1454
+ const mediaHandlers = EventStore();
1455
+ const eventHandler = EventHandler();
1456
+ const {
1457
+ mergeOptions,
1458
+ optionsAtMedia,
1459
+ optionsMediaQueries
1460
+ } = optionsHandler;
1461
+ const {
1462
+ on,
1463
+ off,
1464
+ emit
1465
+ } = eventHandler;
1466
+ const reInit = reActivate;
1467
+ let destroyed = false;
1468
+ let engine;
1469
+ let optionsBase = mergeOptions(defaultOptions, EmblaCarousel.globalOptions);
1470
+ let options = mergeOptions(optionsBase);
1471
+ let pluginList = [];
1472
+ let pluginApis;
1473
+ let container;
1474
+ let slides;
1475
+ function storeElements() {
1476
+ const {
1477
+ container: userContainer,
1478
+ slides: userSlides
1479
+ } = options;
1480
+ const customContainer = isString(userContainer) ? root.querySelector(userContainer) : userContainer;
1481
+ container = customContainer || root.children[0];
1482
+ const customSlides = isString(userSlides) ? container.querySelectorAll(userSlides) : userSlides;
1483
+ slides = [].slice.call(customSlides || container.children);
1484
+ }
1485
+ function createEngine(options2) {
1486
+ const engine2 = Engine(root, container, slides, ownerDocument, ownerWindow, options2, eventHandler);
1487
+ if (options2.loop && !engine2.slideLooper.canLoop()) {
1488
+ const optionsWithoutLoop = Object.assign({}, options2, {
1489
+ loop: false
1490
+ });
1491
+ return createEngine(optionsWithoutLoop);
1492
+ }
1493
+ return engine2;
1494
+ }
1495
+ function activate(withOptions, withPlugins) {
1496
+ if (destroyed) return;
1497
+ optionsBase = mergeOptions(optionsBase, withOptions);
1498
+ options = optionsAtMedia(optionsBase);
1499
+ pluginList = withPlugins || pluginList;
1500
+ storeElements();
1501
+ engine = createEngine(options);
1502
+ optionsMediaQueries([optionsBase, ...pluginList.map(({
1503
+ options: options2
1504
+ }) => options2)]).forEach((query) => mediaHandlers.add(query, "change", reActivate));
1505
+ if (!options.active) return;
1506
+ engine.translate.to(engine.location.get());
1507
+ engine.animation.init();
1508
+ engine.slidesInView.init();
1509
+ engine.slideFocus.init(self);
1510
+ engine.eventHandler.init(self);
1511
+ engine.resizeHandler.init(self);
1512
+ engine.slidesHandler.init(self);
1513
+ if (engine.options.loop) engine.slideLooper.loop();
1514
+ if (container.offsetParent && slides.length) engine.dragHandler.init(self);
1515
+ pluginApis = pluginsHandler.init(self, pluginList);
1516
+ }
1517
+ function reActivate(withOptions, withPlugins) {
1518
+ const startIndex = selectedScrollSnap();
1519
+ deActivate();
1520
+ activate(mergeOptions({
1521
+ startIndex
1522
+ }, withOptions), withPlugins);
1523
+ eventHandler.emit("reInit");
1524
+ }
1525
+ function deActivate() {
1526
+ engine.dragHandler.destroy();
1527
+ engine.eventStore.clear();
1528
+ engine.translate.clear();
1529
+ engine.slideLooper.clear();
1530
+ engine.resizeHandler.destroy();
1531
+ engine.slidesHandler.destroy();
1532
+ engine.slidesInView.destroy();
1533
+ engine.animation.destroy();
1534
+ pluginsHandler.destroy();
1535
+ mediaHandlers.clear();
1536
+ }
1537
+ function destroy() {
1538
+ if (destroyed) return;
1539
+ destroyed = true;
1540
+ mediaHandlers.clear();
1541
+ deActivate();
1542
+ eventHandler.emit("destroy");
1543
+ eventHandler.clear();
1544
+ }
1545
+ function scrollTo(index, jump, direction) {
1546
+ if (!options.active || destroyed) return;
1547
+ engine.scrollBody.useBaseFriction().useDuration(jump === true ? 0 : options.duration);
1548
+ engine.scrollTo.index(index, direction || 0);
1549
+ }
1550
+ function scrollNext(jump) {
1551
+ const next = engine.index.add(1).get();
1552
+ scrollTo(next, jump, -1);
1553
+ }
1554
+ function scrollPrev(jump) {
1555
+ const prev = engine.index.add(-1).get();
1556
+ scrollTo(prev, jump, 1);
1557
+ }
1558
+ function canScrollNext() {
1559
+ const next = engine.index.add(1).get();
1560
+ return next !== selectedScrollSnap();
1561
+ }
1562
+ function canScrollPrev() {
1563
+ const prev = engine.index.add(-1).get();
1564
+ return prev !== selectedScrollSnap();
1565
+ }
1566
+ function scrollSnapList() {
1567
+ return engine.scrollSnapList;
1568
+ }
1569
+ function scrollProgress() {
1570
+ return engine.scrollProgress.get(engine.offsetLocation.get());
1571
+ }
1572
+ function selectedScrollSnap() {
1573
+ return engine.index.get();
1574
+ }
1575
+ function previousScrollSnap() {
1576
+ return engine.indexPrevious.get();
1577
+ }
1578
+ function slidesInView() {
1579
+ return engine.slidesInView.get();
1580
+ }
1581
+ function slidesNotInView() {
1582
+ return engine.slidesInView.get(false);
1583
+ }
1584
+ function plugins() {
1585
+ return pluginApis;
1586
+ }
1587
+ function internalEngine() {
1588
+ return engine;
1589
+ }
1590
+ function rootNode() {
1591
+ return root;
1592
+ }
1593
+ function containerNode() {
1594
+ return container;
1595
+ }
1596
+ function slideNodes() {
1597
+ return slides;
1598
+ }
1599
+ const self = {
1600
+ canScrollNext,
1601
+ canScrollPrev,
1602
+ containerNode,
1603
+ internalEngine,
1604
+ destroy,
1605
+ off,
1606
+ on,
1607
+ emit,
1608
+ plugins,
1609
+ previousScrollSnap,
1610
+ reInit,
1611
+ rootNode,
1612
+ scrollNext,
1613
+ scrollPrev,
1614
+ scrollProgress,
1615
+ scrollSnapList,
1616
+ scrollTo,
1617
+ selectedScrollSnap,
1618
+ slideNodes,
1619
+ slidesInView,
1620
+ slidesNotInView
1621
+ };
1622
+ activate(userOptions, userPlugins);
1623
+ setTimeout(() => eventHandler.emit("init"), 0);
1624
+ return self;
1625
+ }
1626
+ EmblaCarousel.globalOptions = void 0;
1627
+ export {
1628
+ EmblaCarousel as default
1629
+ };
1630
+ //# sourceMappingURL=embla-carousel.esm.js.map