@realsee/dnalogel 2.6.7-dev.1 → 2.6.7-dev.10

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 (319) hide show
  1. package/README.md +0 -20
  2. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +4 -3
  3. package/dist/PanoTagPlugin/controller/index.d.ts +1 -0
  4. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +4 -4
  5. package/dist/index.cjs.js +55 -52
  6. package/dist/index.js +6717 -5996
  7. package/dist/index.umd.js +45 -42
  8. package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +1 -0
  9. package/dist/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +2 -0
  10. package/docs/assets/search.js +1 -1
  11. package/docs/classes/CSS3DRender.html +31 -31
  12. package/docs/classes/CruisePluginController.html +24 -24
  13. package/docs/classes/Magnifier.html +20 -20
  14. package/docs/classes/ModelRoomLabelController.html +11 -11
  15. package/docs/classes/Object3DHelperController.html +24 -24
  16. package/docs/classes/PaintBrush.html +15 -15
  17. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  18. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  19. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  20. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  21. package/docs/classes/PanoTagPluginController.html +197 -51
  22. package/docs/classes/Util.BetterTween.html +8 -8
  23. package/docs/classes/Util.FivePointSelector.html +12 -12
  24. package/docs/classes/Util.Interval.html +12 -12
  25. package/docs/classes/Util.Magnifier.html +17 -17
  26. package/docs/classes/Util.PointDomHelper.html +11 -11
  27. package/docs/classes/Util.PointHelper.html +11 -11
  28. package/docs/classes/Util.Rectangle.html +13 -13
  29. package/docs/enums/CameraMovementEffect.html +7 -7
  30. package/docs/enums/ContentType.html +18 -18
  31. package/docs/enums/DIRECTION.html +9 -9
  32. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  33. package/docs/enums/DimensionType.html +7 -7
  34. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  35. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  36. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  37. package/docs/enums/PointType.html +7 -7
  38. package/docs/enums/Rotation.html +8 -8
  39. package/docs/functions/CSS3DRenderPlugin.html +5 -5
  40. package/docs/functions/CameraMovementPlugin.html +5 -5
  41. package/docs/functions/CruisePlugin.html +5 -5
  42. package/docs/functions/GuideLinePlugin.html +5 -5
  43. package/docs/functions/ItemLabelPlugin.html +5 -5
  44. package/docs/functions/MapviewFloorplanPlugin.html +5 -5
  45. package/docs/functions/ModelChassisCompassPlugin.html +5 -5
  46. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -5
  47. package/docs/functions/ModelFloorplanPlugin.html +5 -5
  48. package/docs/functions/ModelItemLabelPlugin.html +5 -5
  49. package/docs/functions/ModelRoomLabelPlugin.html +5 -5
  50. package/docs/functions/ModelTVVideoPlugin.html +5 -5
  51. package/docs/functions/ModelViewPlugin.html +5 -5
  52. package/docs/functions/Object3DHelperPlugin.html +5 -5
  53. package/docs/functions/PanoCompassPlugin.html +5 -5
  54. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -5
  55. package/docs/functions/PanoDoorLabelPlugin.html +5 -5
  56. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -5
  57. package/docs/functions/PanoMeasurePlugin.html +5 -5
  58. package/docs/functions/PanoRulerPlugin.html +5 -5
  59. package/docs/functions/PanoRulerProPlugin.html +5 -5
  60. package/docs/functions/PanoSpatialTagPlugin.html +5 -5
  61. package/docs/functions/PanoTagPlugin.html +5 -5
  62. package/docs/functions/TopviewFloorplanPlugin.html +5 -5
  63. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  64. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  65. package/docs/functions/Util.getFrameTime.html +5 -5
  66. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  67. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  68. package/docs/functions/Util.isNil.html +5 -5
  69. package/docs/functions/Util.nextFrame.html +5 -5
  70. package/docs/functions/Util.notNil.html +5 -5
  71. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  72. package/docs/functions/Util.tweenProgress.html +5 -5
  73. package/docs/functions/pluginFlag.html +5 -5
  74. package/docs/index.html +4 -12
  75. package/docs/interfaces/AddTagConfig.html +6 -6
  76. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  77. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  78. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  79. package/docs/interfaces/EventMap.html +15 -15
  80. package/docs/interfaces/FloorplanBounding.html +8 -8
  81. package/docs/interfaces/FloorplanData.html +10 -10
  82. package/docs/interfaces/FloorplanEntrance.html +11 -11
  83. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  84. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  85. package/docs/interfaces/FloorplanFloorData.html +9 -9
  86. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  87. package/docs/interfaces/FloorplanObserver.html +9 -9
  88. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  89. package/docs/interfaces/FloorplanPosition.html +7 -7
  90. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  91. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  92. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  93. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  94. package/docs/interfaces/FloorplanServerData.html +7 -7
  95. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  96. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  97. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  98. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  99. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  100. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  101. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  102. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  103. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  104. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  105. package/docs/interfaces/HelperOffset.html +8 -8
  106. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  107. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  108. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  109. package/docs/interfaces/MinMax.html +7 -7
  110. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  111. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  112. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  113. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  114. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  115. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  116. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  117. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  118. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  119. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  120. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  121. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  122. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  123. package/docs/interfaces/Object3DHelperState.html +8 -8
  124. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  125. package/docs/interfaces/PaintBrushAction.html +12 -12
  126. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  127. package/docs/interfaces/PaintBrushState.html +10 -10
  128. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  129. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  130. package/docs/interfaces/PanoMeasureParameterType.html +12 -12
  131. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  132. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  133. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  134. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  135. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  136. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  137. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  138. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  139. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  140. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  141. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  142. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  143. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  144. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  145. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  146. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  147. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  148. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  149. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  150. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  151. package/docs/interfaces/Point.html +8 -8
  152. package/docs/interfaces/Room.html +9 -9
  153. package/docs/interfaces/RoomInfo.html +7 -7
  154. package/docs/interfaces/RoomLabel.html +14 -14
  155. package/docs/interfaces/RoomRules.html +5 -5
  156. package/docs/interfaces/Rooms.html +5 -5
  157. package/docs/interfaces/Scissor.html +9 -9
  158. package/docs/interfaces/State.html +8 -8
  159. package/docs/interfaces/TagCache.html +12 -12
  160. package/docs/interfaces/TagConfig.html +10 -10
  161. package/docs/interfaces/TagIconUrl.html +9 -9
  162. package/docs/interfaces/Tags.html +9 -9
  163. package/docs/interfaces/TemporaryState.html +6 -6
  164. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  165. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  166. package/docs/modules/Util.html +5 -5
  167. package/docs/modules.html +4 -4
  168. package/docs/types/ArrayPosition.html +5 -5
  169. package/docs/types/AudioAppearance.html +5 -5
  170. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  171. package/docs/types/CSS3DRenderExportType.html +5 -5
  172. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  173. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  174. package/docs/types/ClassFunctionParameters.html +5 -5
  175. package/docs/types/Color.html +5 -5
  176. package/docs/types/ContentTypeConfigKey.html +5 -5
  177. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  178. package/docs/types/ContentTypeMap.html +5 -5
  179. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  180. package/docs/types/Create3DElementReturnType.html +5 -5
  181. package/docs/types/CruisePluginExportType.html +5 -5
  182. package/docs/types/Direction-1.html +5 -5
  183. package/docs/types/Direction4.html +5 -5
  184. package/docs/types/FloorplanRuleLabels.html +5 -5
  185. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  186. package/docs/types/GuideLinePluginExportType.html +5 -5
  187. package/docs/types/HelperEventMap.html +5 -5
  188. package/docs/types/LoadTagConfig.html +5 -5
  189. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  190. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  191. package/docs/types/MediaData.html +5 -5
  192. package/docs/types/MediaStore.html +5 -5
  193. package/docs/types/ModelElement.html +5 -5
  194. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  195. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  196. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  197. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  198. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  199. package/docs/types/MoveArgs.html +5 -5
  200. package/docs/types/MoveOpts.html +5 -5
  201. package/docs/types/Object3DHelperEventMap.html +5 -5
  202. package/docs/types/ObjectFit.html +5 -5
  203. package/docs/types/PaintBrushEventMap.html +5 -5
  204. package/docs/types/PanoCompassPluginData.html +5 -5
  205. package/docs/types/PanoCompassPluginExportType.html +5 -5
  206. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  207. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  208. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  209. package/docs/types/PanoIndex.html +5 -5
  210. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  211. package/docs/types/PanoMeasureReturnType.html +5 -5
  212. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  213. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  214. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  215. package/docs/types/PlaneTag.html +5 -5
  216. package/docs/types/PlaneTagElement.html +5 -5
  217. package/docs/types/Point2DElement.html +5 -5
  218. package/docs/types/Point2DTag.html +5 -5
  219. package/docs/types/Point3DElement.html +5 -5
  220. package/docs/types/Point3DTag.html +5 -5
  221. package/docs/types/PointTag.html +5 -5
  222. package/docs/types/PointTagElement.html +5 -5
  223. package/docs/types/Position.html +5 -5
  224. package/docs/types/RotateArgs.html +5 -5
  225. package/docs/types/RotateOpts.html +5 -5
  226. package/docs/types/RuleLabelsKey.html +5 -5
  227. package/docs/types/RuleLabelsValue.html +5 -5
  228. package/docs/types/StickType.html +5 -5
  229. package/docs/types/Tag.html +5 -5
  230. package/docs/types/Tag2D.html +5 -5
  231. package/docs/types/Tag3D.html +5 -5
  232. package/docs/types/TagContentType.html +5 -5
  233. package/docs/types/TagDimensionType.html +5 -5
  234. package/docs/types/TagElement.html +5 -5
  235. package/docs/types/TagEvents.html +5 -5
  236. package/docs/types/TagGLTFObject.html +5 -5
  237. package/docs/types/TagHooks.html +5 -5
  238. package/docs/types/TagIconSize.html +5 -5
  239. package/docs/types/TagId.html +5 -5
  240. package/docs/types/TagPointType.html +5 -5
  241. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  242. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  243. package/docs/types/WorkCode.html +5 -5
  244. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  245. package/docs/variables/PLUGIN.html +5 -5
  246. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  247. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  248. package/docs/variables/VERSION.html +5 -5
  249. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  250. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  251. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  252. package/libs/CruisePlugin/Controller.js +26 -26
  253. package/libs/GuideLinePlugin/Controller.js +43 -43
  254. package/libs/PanoTagPlugin/Components/Common/Media.js +235 -313
  255. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +128 -118
  256. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +89 -72
  257. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +86 -72
  258. package/libs/PanoTagPlugin/Components/Tag/index.js +84 -66
  259. package/libs/PanoTagPlugin/Components/TagContainer.js +98 -80
  260. package/libs/PanoTagPlugin/Components/TagItem.js +69 -51
  261. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +4 -3
  262. package/libs/PanoTagPlugin/controller/TagComputer.js +70 -65
  263. package/libs/PanoTagPlugin/controller/index.d.ts +1 -0
  264. package/libs/PanoTagPlugin/controller/index.js +160 -136
  265. package/libs/PanoTagPlugin/index.js +41 -24
  266. package/libs/PanoTagPlugin/tag.config.js +1 -0
  267. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +4 -4
  268. package/libs/index.js +130 -113
  269. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +38 -38
  270. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +1 -0
  271. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +26 -23
  272. package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +2 -0
  273. package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +28 -22
  274. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +12 -12
  275. package/libs/vendor/simply-reactive/main.js +3 -0
  276. package/libs/vendor/simply-reactive/src/simply-reactive.js +44 -0
  277. package/libs/vendor/simply-reactive/src/utils/object.js +12 -0
  278. package/libs/vendor/simply-reactive/src/utils/subscription.js +28 -0
  279. package/libs/vendor/simply-reactive/src/utils/watcher.js +17 -0
  280. package/libs/vendor/svelte/internal/index.js +267 -274
  281. package/libs/vendor/svelte-carousel/src/actions/hoverable/event.js +18 -0
  282. package/libs/vendor/svelte-carousel/src/actions/hoverable/hoverable.js +19 -0
  283. package/libs/vendor/svelte-carousel/src/actions/hoverable/index.js +1 -0
  284. package/libs/vendor/svelte-carousel/src/actions/swipeable/event.js +26 -0
  285. package/libs/vendor/svelte-carousel/src/actions/swipeable/index.js +1 -0
  286. package/libs/vendor/svelte-carousel/src/actions/swipeable/swipeable.js +51 -0
  287. package/libs/vendor/svelte-carousel/src/actions/tappable/event.js +18 -0
  288. package/libs/vendor/svelte-carousel/src/actions/tappable/index.js +1 -0
  289. package/libs/vendor/svelte-carousel/src/actions/tappable/tappable.js +36 -0
  290. package/libs/vendor/svelte-carousel/src/components/Arrow/Arrow.js +41 -0
  291. package/libs/vendor/svelte-carousel/src/components/Carousel/Carousel.js +522 -0
  292. package/libs/vendor/svelte-carousel/src/components/Carousel/createCarousel.js +255 -0
  293. package/libs/vendor/svelte-carousel/src/components/Dot/Dot.js +42 -0
  294. package/libs/vendor/svelte-carousel/src/components/Dots/Dots.js +104 -0
  295. package/libs/vendor/svelte-carousel/src/components/Progress/Progress.js +40 -0
  296. package/libs/vendor/svelte-carousel/src/direction.js +5 -0
  297. package/libs/vendor/svelte-carousel/src/main.js +1 -0
  298. package/libs/vendor/svelte-carousel/src/units.js +7 -0
  299. package/libs/vendor/svelte-carousel/src/utils/ProgressManager.js +52 -0
  300. package/libs/vendor/svelte-carousel/src/utils/clones.js +59 -0
  301. package/libs/vendor/svelte-carousel/src/utils/event.js +12 -0
  302. package/libs/vendor/svelte-carousel/src/utils/interval.js +4 -0
  303. package/libs/vendor/svelte-carousel/src/utils/lazy.js +45 -0
  304. package/libs/vendor/svelte-carousel/src/utils/math.js +11 -0
  305. package/libs/vendor/svelte-carousel/src/utils/object.js +13 -0
  306. package/libs/vendor/svelte-carousel/src/utils/page.js +154 -0
  307. package/package.json +5 -2
  308. package/dist/PanoTagPlugin/utils/tag/index.d.ts +0 -2
  309. package/libs/PanoTagPlugin/utils/tag/index.d.ts +0 -2
  310. package/libs/PanoTagPlugin/utils/tag/index.js +0 -11
  311. package/libs/vendor/swiper/components-shared/get-changed-params.js +0 -29
  312. package/libs/vendor/swiper/components-shared/get-params.js +0 -23
  313. package/libs/vendor/swiper/components-shared/mount-swiper.js +0 -14
  314. package/libs/vendor/swiper/components-shared/params-list.js +0 -120
  315. package/libs/vendor/swiper/components-shared/update-swiper.js +0 -36
  316. package/libs/vendor/swiper/components-shared/utils.js +0 -32
  317. package/libs/vendor/swiper/svelte/swiper-slide.js +0 -181
  318. package/libs/vendor/swiper/svelte/swiper-svelte.js +0 -2
  319. package/libs/vendor/swiper/svelte/swiper.js +0 -253
@@ -0,0 +1,522 @@
1
+ var k = (e, o, n) => new Promise((l, t) => {
2
+ var i = (w) => {
3
+ try {
4
+ v(n.next(w));
5
+ } catch (C) {
6
+ t(C);
7
+ }
8
+ }, s = (w) => {
9
+ try {
10
+ v(n.throw(w));
11
+ } catch (C) {
12
+ t(C);
13
+ }
14
+ }, v = (w) => w.done ? l(w.value) : Promise.resolve(w.value).then(i, s);
15
+ v((n = n.apply(e, o)).next());
16
+ });
17
+ import { SvelteComponent as Oe, init as Ve, safe_not_equal as Re, append_styles as He, create_slot as H, element as z, space as O, attr as D, set_style as F, insert as X, append as S, action_destroyer as $, listen as y, transition_in as m, group_outros as V, transition_out as p, check_outros as R, update_slot_base as A, get_all_dirty_from_scope as j, get_slot_changes as q, is_function as Xe, detach as B, run_all as Ae, createEventDispatcher as je, onMount as qe, tick as ae, onDestroy as Be, create_component as G, mount_component as J, destroy_component as K, binding_callbacks as le } from "../../../../svelte/internal/index.js";
18
+ import { Dots as Ge } from "../Dots/Dots.js";
19
+ import { Arrow as he } from "../Arrow/Arrow.js";
20
+ import { Progress as Je } from "../Progress/Progress.js";
21
+ import { NEXT as se, PREV as Ke } from "../../direction.js";
22
+ import { swipeable as Le } from "../../actions/swipeable/swipeable.js";
23
+ import { hoverable as Qe } from "../../actions/hoverable/hoverable.js";
24
+ import { tappable as Ue } from "../../actions/tappable/tappable.js";
25
+ import { createResizeObserver as Ye, applyParticleSizes as Ze } from "../../utils/page.js";
26
+ import { getClones as xe, applyClones as $e } from "../../utils/clones.js";
27
+ import { get as ee, switcher as re } from "../../utils/object.js";
28
+ import { createCarousel as et } from "./createCarousel.js";
29
+ function tt(e) {
30
+ He(e, "svelte-sme1z4", ":root{--sc-color-rgb-light-50p:rgba(93, 93, 93, 0.5);--sc-color-rgb-light:#5d5d5d;--sc-color-hex-dark-50p:rgba(30, 30, 30, 0.5);--sc-color-hex-dark:#1e1e1e}.sc-carousel__carousel-container.svelte-sme1z4{display:flex;width:100%;flex-direction:column;align-items:center}.sc-carousel__content-container.svelte-sme1z4{position:relative;display:flex;width:100%}.sc-carousel__pages-window.svelte-sme1z4{flex:1;display:flex;overflow:hidden;box-sizing:border-box;position:relative}.sc-carousel__pages-container.svelte-sme1z4{width:100%;display:flex;transition-property:transform}.sc-carousel__arrow-container.svelte-sme1z4{padding:5px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}.sc-carousel-progress__container.svelte-sme1z4{width:100%;height:5px;background-color:var(--sc-color-rgb-light-50p);position:absolute;bottom:0}.sc-carousel-button{all:unset;cursor:pointer}.sc-carousel-button:focus{outline:5px auto}");
31
+ }
32
+ const nt = (e) => ({
33
+ currentPageIndex: e[0] & 32,
34
+ pagesCount: e[0] & 1024,
35
+ loaded: e[0] & 64
36
+ }), ue = (e) => ({
37
+ currentPageIndex: e[5],
38
+ pagesCount: e[10],
39
+ showPage: e[15],
40
+ loaded: e[6]
41
+ }), ot = (e) => ({
42
+ loaded: e[0] & 64,
43
+ currentPageIndex: e[0] & 32
44
+ }), ce = (e) => ({
45
+ showNextPage: e[14].showNextPage,
46
+ loaded: e[6],
47
+ currentPageIndex: e[5]
48
+ }), it = (e) => ({
49
+ loaded: e[0] & 64,
50
+ currentPageIndex: e[0] & 32
51
+ }), fe = (e) => ({
52
+ loaded: e[6],
53
+ currentPageIndex: e[5]
54
+ }), at = (e) => ({
55
+ loaded: e[0] & 64,
56
+ currentPageIndex: e[0] & 32
57
+ }), de = (e) => ({
58
+ showPrevPage: e[14].showPrevPage,
59
+ loaded: e[6],
60
+ currentPageIndex: e[5]
61
+ });
62
+ function ge(e) {
63
+ let o;
64
+ const n = e[37].prev, l = H(n, e, e[36], de), t = l || lt(e);
65
+ return {
66
+ c() {
67
+ t && t.c();
68
+ },
69
+ m(i, s) {
70
+ t && t.m(i, s), o = !0;
71
+ },
72
+ p(i, s) {
73
+ l ? l.p && (!o || s[0] & 96 | s[1] & 32) && A(
74
+ l,
75
+ n,
76
+ i,
77
+ i[36],
78
+ o ? q(n, i[36], s, at) : j(i[36]),
79
+ de
80
+ ) : t && t.p && (!o || s[0] & 36) && t.p(i, o ? s : [-1, -1]);
81
+ },
82
+ i(i) {
83
+ o || (m(t, i), o = !0);
84
+ },
85
+ o(i) {
86
+ p(t, i), o = !1;
87
+ },
88
+ d(i) {
89
+ t && t.d(i);
90
+ }
91
+ };
92
+ }
93
+ function lt(e) {
94
+ let o, n, l;
95
+ return n = new he({
96
+ props: {
97
+ direction: "prev",
98
+ disabled: !e[2] && e[5] === 0
99
+ }
100
+ }), n.$on("click", e[23]), {
101
+ c() {
102
+ o = z("div"), G(n.$$.fragment), D(o, "class", "sc-carousel__arrow-container svelte-sme1z4");
103
+ },
104
+ m(t, i) {
105
+ X(t, o, i), J(n, o, null), l = !0;
106
+ },
107
+ p(t, i) {
108
+ const s = {};
109
+ i[0] & 36 && (s.disabled = !t[2] && t[5] === 0), n.$set(s);
110
+ },
111
+ i(t) {
112
+ l || (m(n.$$.fragment, t), l = !0);
113
+ },
114
+ o(t) {
115
+ p(n.$$.fragment, t), l = !1;
116
+ },
117
+ d(t) {
118
+ t && B(o), K(n);
119
+ }
120
+ };
121
+ }
122
+ function _e(e) {
123
+ let o, n, l;
124
+ return n = new Je({
125
+ props: { value: e[7] }
126
+ }), {
127
+ c() {
128
+ o = z("div"), G(n.$$.fragment), D(o, "class", "sc-carousel-progress__container svelte-sme1z4");
129
+ },
130
+ m(t, i) {
131
+ X(t, o, i), J(n, o, null), l = !0;
132
+ },
133
+ p(t, i) {
134
+ const s = {};
135
+ i[0] & 128 && (s.value = t[7]), n.$set(s);
136
+ },
137
+ i(t) {
138
+ l || (m(n.$$.fragment, t), l = !0);
139
+ },
140
+ o(t) {
141
+ p(n.$$.fragment, t), l = !1;
142
+ },
143
+ d(t) {
144
+ t && B(o), K(n);
145
+ }
146
+ };
147
+ }
148
+ function me(e) {
149
+ let o;
150
+ const n = e[37].next, l = H(n, e, e[36], ce), t = l || st(e);
151
+ return {
152
+ c() {
153
+ t && t.c();
154
+ },
155
+ m(i, s) {
156
+ t && t.m(i, s), o = !0;
157
+ },
158
+ p(i, s) {
159
+ l ? l.p && (!o || s[0] & 96 | s[1] & 32) && A(
160
+ l,
161
+ n,
162
+ i,
163
+ i[36],
164
+ o ? q(n, i[36], s, ot) : j(i[36]),
165
+ ce
166
+ ) : t && t.p && (!o || s[0] & 1060) && t.p(i, o ? s : [-1, -1]);
167
+ },
168
+ i(i) {
169
+ o || (m(t, i), o = !0);
170
+ },
171
+ o(i) {
172
+ p(t, i), o = !1;
173
+ },
174
+ d(i) {
175
+ t && t.d(i);
176
+ }
177
+ };
178
+ }
179
+ function st(e) {
180
+ let o, n, l;
181
+ return n = new he({
182
+ props: {
183
+ direction: "next",
184
+ disabled: !e[2] && e[5] === e[10] - 1
185
+ }
186
+ }), n.$on("click", e[14].showNextPage), {
187
+ c() {
188
+ o = z("div"), G(n.$$.fragment), D(o, "class", "sc-carousel__arrow-container svelte-sme1z4");
189
+ },
190
+ m(t, i) {
191
+ X(t, o, i), J(n, o, null), l = !0;
192
+ },
193
+ p(t, i) {
194
+ const s = {};
195
+ i[0] & 1060 && (s.disabled = !t[2] && t[5] === t[10] - 1), n.$set(s);
196
+ },
197
+ i(t) {
198
+ l || (m(n.$$.fragment, t), l = !0);
199
+ },
200
+ o(t) {
201
+ p(n.$$.fragment, t), l = !1;
202
+ },
203
+ d(t) {
204
+ t && B(o), K(n);
205
+ }
206
+ };
207
+ }
208
+ function pe(e) {
209
+ let o;
210
+ const n = e[37].dots, l = H(n, e, e[36], ue), t = l || rt(e);
211
+ return {
212
+ c() {
213
+ t && t.c();
214
+ },
215
+ m(i, s) {
216
+ t && t.m(i, s), o = !0;
217
+ },
218
+ p(i, s) {
219
+ l ? l.p && (!o || s[0] & 1120 | s[1] & 32) && A(
220
+ l,
221
+ n,
222
+ i,
223
+ i[36],
224
+ o ? q(n, i[36], s, nt) : j(i[36]),
225
+ ue
226
+ ) : t && t.p && (!o || s[0] & 1056) && t.p(i, o ? s : [-1, -1]);
227
+ },
228
+ i(i) {
229
+ o || (m(t, i), o = !0);
230
+ },
231
+ o(i) {
232
+ p(t, i), o = !1;
233
+ },
234
+ d(i) {
235
+ t && t.d(i);
236
+ }
237
+ };
238
+ }
239
+ function rt(e) {
240
+ let o, n;
241
+ return o = new Ge({
242
+ props: {
243
+ pagesCount: e[10],
244
+ currentPageIndex: e[5]
245
+ }
246
+ }), o.$on("pageChange", e[41]), {
247
+ c() {
248
+ G(o.$$.fragment);
249
+ },
250
+ m(l, t) {
251
+ J(o, l, t), n = !0;
252
+ },
253
+ p(l, t) {
254
+ const i = {};
255
+ t[0] & 1024 && (i.pagesCount = l[10]), t[0] & 32 && (i.currentPageIndex = l[5]), o.$set(i);
256
+ },
257
+ i(l) {
258
+ n || (m(o.$$.fragment, l), n = !0);
259
+ },
260
+ o(l) {
261
+ p(o.$$.fragment, l), n = !1;
262
+ },
263
+ d(l) {
264
+ K(o, l);
265
+ }
266
+ };
267
+ }
268
+ function ut(e) {
269
+ let o, n, l, t, i, s, v, w, C, P, c, E, u = e[1] && ge(e);
270
+ const M = e[37].default, b = H(M, e, e[36], fe);
271
+ let d = e[3] && _e(e), g = e[1] && me(e), f = e[4] && pe(e);
272
+ return {
273
+ c() {
274
+ o = z("div"), n = z("div"), u && u.c(), l = O(), t = z("div"), i = z("div"), b && b.c(), v = O(), d && d.c(), w = O(), g && g.c(), C = O(), f && f.c(), D(i, "class", "sc-carousel__pages-container svelte-sme1z4"), F(i, "transform", "translateX(" + e[8] + "px)"), F(i, "transition-duration", e[9] + "ms"), F(i, "transition-timing-function", e[0]), D(t, "class", "sc-carousel__pages-window svelte-sme1z4"), D(n, "class", "sc-carousel__content-container svelte-sme1z4"), D(o, "class", "sc-carousel__carousel-container svelte-sme1z4");
275
+ },
276
+ m(r, _) {
277
+ X(r, o, _), S(o, n), u && u.m(n, null), S(n, l), S(n, t), S(t, i), b && b.m(i, null), e[39](i), S(t, v), d && d.m(t, null), e[40](t), S(n, w), g && g.m(n, null), S(o, C), f && f.m(o, null), P = !0, c || (E = [
278
+ $(s = Le.call(null, i, {
279
+ thresholdProvider: e[38]
280
+ })),
281
+ y(i, "swipeStart", e[16]),
282
+ y(i, "swipeMove", e[18]),
283
+ y(i, "swipeEnd", e[19]),
284
+ y(i, "swipeFailed", e[20]),
285
+ y(i, "swipeThresholdReached", e[17]),
286
+ $(Qe.call(null, t)),
287
+ y(t, "hovered", e[21]),
288
+ $(Ue.call(null, t)),
289
+ y(t, "tapped", e[22])
290
+ ], c = !0);
291
+ },
292
+ p(r, _) {
293
+ r[1] ? u ? (u.p(r, _), _[0] & 2 && m(u, 1)) : (u = ge(r), u.c(), m(u, 1), u.m(n, l)) : u && (V(), p(u, 1, 1, () => {
294
+ u = null;
295
+ }), R()), b && b.p && (!P || _[0] & 96 | _[1] & 32) && A(
296
+ b,
297
+ M,
298
+ r,
299
+ r[36],
300
+ P ? q(M, r[36], _, it) : j(r[36]),
301
+ fe
302
+ ), (!P || _[0] & 256) && F(i, "transform", "translateX(" + r[8] + "px)"), (!P || _[0] & 512) && F(i, "transition-duration", r[9] + "ms"), (!P || _[0] & 1) && F(i, "transition-timing-function", r[0]), s && Xe(s.update) && _[0] & 2048 && s.update.call(null, {
303
+ thresholdProvider: r[38]
304
+ }), r[3] ? d ? (d.p(r, _), _[0] & 8 && m(d, 1)) : (d = _e(r), d.c(), m(d, 1), d.m(t, null)) : d && (V(), p(d, 1, 1, () => {
305
+ d = null;
306
+ }), R()), r[1] ? g ? (g.p(r, _), _[0] & 2 && m(g, 1)) : (g = me(r), g.c(), m(g, 1), g.m(n, null)) : g && (V(), p(g, 1, 1, () => {
307
+ g = null;
308
+ }), R()), r[4] ? f ? (f.p(r, _), _[0] & 16 && m(f, 1)) : (f = pe(r), f.c(), m(f, 1), f.m(o, null)) : f && (V(), p(f, 1, 1, () => {
309
+ f = null;
310
+ }), R());
311
+ },
312
+ i(r) {
313
+ P || (m(u), m(b, r), m(d), m(g), m(f), P = !0);
314
+ },
315
+ o(r) {
316
+ p(u), p(b, r), p(d), p(g), p(f), P = !1;
317
+ },
318
+ d(r) {
319
+ r && B(o), u && u.d(), b && b.d(r), e[39](null), d && d.d(), e[40](null), g && g.d(), f && f.d(), c = !1, Ae(E);
320
+ }
321
+ };
322
+ }
323
+ function ct(e, o, n) {
324
+ let { $$slots: l = {}, $$scope: t } = o, i = [], s, v, w = 0, C = 0, P = 1;
325
+ const [{ data: c, progressManager: E }, u, M] = et((a, h) => {
326
+ re({
327
+ currentPageIndex: () => n(5, s = h),
328
+ progressValue: () => n(7, v = h),
329
+ offset: () => n(8, w = h),
330
+ durationMs: () => n(9, C = h),
331
+ pagesCount: () => n(10, P = h),
332
+ loaded: () => n(6, i = h)
333
+ })(a);
334
+ }), b = je();
335
+ let { timingFunction: d = "ease-in-out" } = o, { arrows: g = !0 } = o, { infinite: f = !0 } = o, { initialPageIndex: r = 0 } = o, { duration: _ = 500 } = o, { autoplay: L = !1 } = o, { autoplayDuration: Q = 3e3 } = o, { autoplayDirection: U = se } = o, { pauseOnFocus: Y = !1 } = o, { autoplayProgressVisible: te = !1 } = o, { dots: ne = !0 } = o, { swiping: I = !0 } = o, { particlesToShow: Z = 1 } = o, { particlesToScroll: x = 1 } = o;
336
+ function we(a, h) {
337
+ return k(this, null, function* () {
338
+ const We = ee(h, "animated", !0);
339
+ if (typeof a != "number")
340
+ throw new Error("pageIndex should be a number");
341
+ yield u.showPage(a, { animated: We });
342
+ });
343
+ }
344
+ function be(a) {
345
+ return k(this, null, function* () {
346
+ const h = ee(a, "animated", !0);
347
+ yield u.showPrevPage({ animated: h });
348
+ });
349
+ }
350
+ function Pe(a) {
351
+ return k(this, null, function* () {
352
+ const h = ee(a, "animated", !0);
353
+ yield u.showNextPage({ animated: h });
354
+ });
355
+ }
356
+ let W = 0, N, T;
357
+ const oe = Ye(({ width: a }) => {
358
+ n(11, W = a), c.particleWidth = W / c.particlesToShow, Ze({
359
+ particlesContainerChildren: T.children,
360
+ particleWidth: c.particleWidth
361
+ }), u.offsetPage({ animated: !1 });
362
+ });
363
+ function ve() {
364
+ const { clonesToAppend: a, clonesToPrepend: h } = xe({
365
+ clonesCountHead: c.clonesCountHead,
366
+ clonesCountTail: c.clonesCountTail,
367
+ particlesContainerChildren: T.children
368
+ });
369
+ $e({
370
+ particlesContainer: T,
371
+ clonesToAppend: a,
372
+ clonesToPrepend: h
373
+ });
374
+ }
375
+ qe(() => {
376
+ k(this, null, function* () {
377
+ yield ae(), T && N && (c.particlesCountWithoutClones = T.children.length, yield ae(), c.infinite && ve(), c.particlesCount = T.children.length, u.showPage(r, { animated: !1 }), oe.observe(N));
378
+ });
379
+ }), Be(() => {
380
+ oe.disconnect(), E.reset();
381
+ });
382
+ function ie(a) {
383
+ return k(this, null, function* () {
384
+ yield u.showPage(a, { animated: !0 });
385
+ });
386
+ }
387
+ function Ce() {
388
+ !I || (c.durationMs = 0);
389
+ }
390
+ function Te(a) {
391
+ return k(this, null, function* () {
392
+ !I || (yield re({
393
+ [se]: u.showNextPage,
394
+ [Ke]: u.showPrevPage
395
+ })(a.detail.direction));
396
+ });
397
+ }
398
+ function ke(a) {
399
+ !I || (c.offset += a.detail.dx);
400
+ }
401
+ function Ie() {
402
+ !I || u.showParticle(c.currentParticleIndex);
403
+ }
404
+ function Se() {
405
+ return k(this, null, function* () {
406
+ !I || (yield u.offsetPage({ animated: !0 }));
407
+ });
408
+ }
409
+ function ye(a) {
410
+ c.focused = a.detail.value;
411
+ }
412
+ function ze() {
413
+ u.toggleFocused();
414
+ }
415
+ function De() {
416
+ u.showPrevPage();
417
+ }
418
+ const Fe = () => W / 3;
419
+ function Ne(a) {
420
+ le[a ? "unshift" : "push"](() => {
421
+ T = a, n(13, T);
422
+ });
423
+ }
424
+ function Ee(a) {
425
+ le[a ? "unshift" : "push"](() => {
426
+ N = a, n(12, N);
427
+ });
428
+ }
429
+ const Me = (a) => ie(a.detail);
430
+ return e.$$set = (a) => {
431
+ "timingFunction" in a && n(0, d = a.timingFunction), "arrows" in a && n(1, g = a.arrows), "infinite" in a && n(2, f = a.infinite), "initialPageIndex" in a && n(24, r = a.initialPageIndex), "duration" in a && n(25, _ = a.duration), "autoplay" in a && n(26, L = a.autoplay), "autoplayDuration" in a && n(27, Q = a.autoplayDuration), "autoplayDirection" in a && n(28, U = a.autoplayDirection), "pauseOnFocus" in a && n(29, Y = a.pauseOnFocus), "autoplayProgressVisible" in a && n(3, te = a.autoplayProgressVisible), "dots" in a && n(4, ne = a.dots), "swiping" in a && n(30, I = a.swiping), "particlesToShow" in a && n(31, Z = a.particlesToShow), "particlesToScroll" in a && n(32, x = a.particlesToScroll), "$$scope" in a && n(36, t = a.$$scope);
432
+ }, e.$$.update = () => {
433
+ e.$$.dirty[0] & 32 && b("pageChange", s), e.$$.dirty[0] & 4 && (c.infinite = f), e.$$.dirty[0] & 33554432 && (c.durationMsInit = _), e.$$.dirty[0] & 67108864 && (c.autoplay = L), e.$$.dirty[0] & 134217728 && (c.autoplayDuration = Q), e.$$.dirty[0] & 268435456 && (c.autoplayDirection = U), e.$$.dirty[0] & 536870912 && (c.pauseOnFocus = Y), e.$$.dirty[1] & 1 && (c.particlesToShowInit = Z), e.$$.dirty[1] & 2 && (c.particlesToScrollInit = x);
434
+ }, [
435
+ d,
436
+ g,
437
+ f,
438
+ te,
439
+ ne,
440
+ s,
441
+ i,
442
+ v,
443
+ w,
444
+ C,
445
+ P,
446
+ W,
447
+ N,
448
+ T,
449
+ u,
450
+ ie,
451
+ Ce,
452
+ Te,
453
+ ke,
454
+ Ie,
455
+ Se,
456
+ ye,
457
+ ze,
458
+ De,
459
+ r,
460
+ _,
461
+ L,
462
+ Q,
463
+ U,
464
+ Y,
465
+ I,
466
+ Z,
467
+ x,
468
+ we,
469
+ be,
470
+ Pe,
471
+ t,
472
+ l,
473
+ Fe,
474
+ Ne,
475
+ Ee,
476
+ Me
477
+ ];
478
+ }
479
+ class kt extends Oe {
480
+ constructor(o) {
481
+ super(), Ve(
482
+ this,
483
+ o,
484
+ ct,
485
+ ut,
486
+ Re,
487
+ {
488
+ timingFunction: 0,
489
+ arrows: 1,
490
+ infinite: 2,
491
+ initialPageIndex: 24,
492
+ duration: 25,
493
+ autoplay: 26,
494
+ autoplayDuration: 27,
495
+ autoplayDirection: 28,
496
+ pauseOnFocus: 29,
497
+ autoplayProgressVisible: 3,
498
+ dots: 4,
499
+ swiping: 30,
500
+ particlesToShow: 31,
501
+ particlesToScroll: 32,
502
+ goTo: 33,
503
+ goToPrev: 34,
504
+ goToNext: 35
505
+ },
506
+ tt,
507
+ [-1, -1]
508
+ );
509
+ }
510
+ get goTo() {
511
+ return this.$$.ctx[33];
512
+ }
513
+ get goToPrev() {
514
+ return this.$$.ctx[34];
515
+ }
516
+ get goToNext() {
517
+ return this.$$.ctx[35];
518
+ }
519
+ }
520
+ export {
521
+ kt as Carousel
522
+ };