@get-set/gs-zoom 0.0.4 → 0.0.6

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 (171) hide show
  1. package/README.md +129 -1
  2. package/actions/general.ts +29 -0
  3. package/actions/getAdjustTransform.ts +46 -0
  4. package/actions/getCurrentParams.ts +42 -0
  5. package/actions/getTranslateCoordToPoint.ts +37 -0
  6. package/actions/init.ts +25 -0
  7. package/actions/initActionEvents.ts +102 -0
  8. package/actions/initAdditionals.ts +91 -0
  9. package/actions/initAdjust.ts +120 -0
  10. package/actions/initAdjustAdditionalActive.ts +31 -0
  11. package/actions/initArrows.ts +36 -0
  12. package/actions/initAutoplay.ts +91 -0
  13. package/actions/initChange.ts +139 -0
  14. package/actions/initClose.ts +29 -0
  15. package/actions/initDraggle.ts +258 -0
  16. package/actions/initDraw.ts +83 -0
  17. package/actions/initDrawItem.ts +77 -0
  18. package/actions/initFullScreen.ts +30 -0
  19. package/actions/initLightBox.ts +13 -0
  20. package/actions/initMagnifier.ts +53 -0
  21. package/actions/initNavigateWithKeys.ts +22 -0
  22. package/actions/initOpen.ts +29 -0
  23. package/actions/initWheel.ts +44 -0
  24. package/actions/setStyles.ts +28 -0
  25. package/components/GSZoom.tsx +178 -0
  26. package/{dist/components → components}/styles/GSZoom.scss +252 -254
  27. package/components/styles/GSZoomCSS.ts +237 -0
  28. package/constants/defaultParams.ts +20 -0
  29. package/constants/icons.ts +25 -0
  30. package/constants/magnifierDefaultProps.ts +9 -0
  31. package/constants/types.ts +6 -0
  32. package/dist/GSZoom.d.ts +2 -0
  33. package/dist/actions/general.d.ts +7 -0
  34. package/dist/actions/general.d.ts.map +1 -0
  35. package/dist/actions/general.js +26 -30
  36. package/dist/actions/general.js.map +1 -0
  37. package/dist/actions/getAdjustTransform.d.ts +3 -0
  38. package/dist/actions/getAdjustTransform.d.ts.map +1 -0
  39. package/dist/actions/getAdjustTransform.js +41 -43
  40. package/dist/actions/getAdjustTransform.js.map +1 -0
  41. package/dist/actions/getCurrentParams.d.ts +4 -0
  42. package/dist/actions/getCurrentParams.d.ts.map +1 -0
  43. package/dist/actions/getCurrentParams.js +35 -42
  44. package/dist/actions/getCurrentParams.js.map +1 -0
  45. package/dist/actions/getTranslateCoordToPoint.d.ts +3 -0
  46. package/dist/actions/getTranslateCoordToPoint.d.ts.map +1 -0
  47. package/dist/actions/getTranslateCoordToPoint.js +21 -41
  48. package/dist/actions/getTranslateCoordToPoint.js.map +1 -0
  49. package/dist/actions/init.d.ts +4 -0
  50. package/dist/actions/init.d.ts.map +1 -0
  51. package/dist/actions/init.js +21 -21
  52. package/dist/actions/init.js.map +1 -0
  53. package/dist/actions/initActionEvents.d.ts +4 -0
  54. package/dist/actions/initActionEvents.d.ts.map +1 -0
  55. package/dist/actions/initActionEvents.js +80 -127
  56. package/dist/actions/initActionEvents.js.map +1 -0
  57. package/dist/actions/initAdditionals.d.ts +4 -0
  58. package/dist/actions/initAdditionals.d.ts.map +1 -0
  59. package/dist/actions/initAdditionals.js +78 -117
  60. package/dist/actions/initAdditionals.js.map +1 -0
  61. package/dist/actions/initAdjust.d.ts +4 -0
  62. package/dist/actions/initAdjust.d.ts.map +1 -0
  63. package/dist/actions/initAdjust.js +96 -107
  64. package/dist/actions/initAdjust.js.map +1 -0
  65. package/dist/actions/initAdjustAdditionalActive.d.ts +4 -0
  66. package/dist/actions/initAdjustAdditionalActive.d.ts.map +1 -0
  67. package/dist/actions/initAdjustAdditionalActive.js +25 -33
  68. package/dist/actions/initAdjustAdditionalActive.js.map +1 -0
  69. package/dist/actions/initArrows.d.ts +4 -0
  70. package/dist/actions/initArrows.d.ts.map +1 -0
  71. package/dist/actions/initArrows.js +28 -44
  72. package/dist/actions/initArrows.js.map +1 -0
  73. package/dist/actions/initAutoplay.d.ts +6 -0
  74. package/dist/actions/initAutoplay.d.ts.map +1 -0
  75. package/dist/actions/initAutoplay.js +85 -81
  76. package/dist/actions/initAutoplay.js.map +1 -0
  77. package/dist/actions/initChange.d.ts +4 -0
  78. package/dist/actions/initChange.d.ts.map +1 -0
  79. package/dist/actions/initChange.js +116 -137
  80. package/dist/actions/initChange.js.map +1 -0
  81. package/dist/actions/initClose.d.ts +3 -0
  82. package/dist/actions/initClose.d.ts.map +1 -0
  83. package/dist/actions/initClose.js +24 -28
  84. package/dist/actions/initClose.js.map +1 -0
  85. package/dist/actions/initDraggle.d.ts +4 -0
  86. package/dist/actions/initDraggle.d.ts.map +1 -0
  87. package/dist/actions/initDraggle.js +227 -303
  88. package/dist/actions/initDraggle.js.map +1 -0
  89. package/dist/actions/initDraw.d.ts +4 -0
  90. package/dist/actions/initDraw.d.ts.map +1 -0
  91. package/dist/actions/initDraw.js +74 -90
  92. package/dist/actions/initDraw.js.map +1 -0
  93. package/dist/actions/initDrawItem.d.ts +4 -0
  94. package/dist/actions/initDrawItem.d.ts.map +1 -0
  95. package/dist/actions/initDrawItem.js +63 -79
  96. package/dist/actions/initDrawItem.js.map +1 -0
  97. package/dist/actions/initFullScreen.d.ts +4 -0
  98. package/dist/actions/initFullScreen.d.ts.map +1 -0
  99. package/dist/actions/initFullScreen.js +32 -32
  100. package/dist/actions/initFullScreen.js.map +1 -0
  101. package/dist/actions/initLightBox.d.ts +4 -0
  102. package/dist/actions/initLightBox.d.ts.map +1 -0
  103. package/dist/actions/initLightBox.js +11 -12
  104. package/dist/actions/initLightBox.js.map +1 -0
  105. package/dist/actions/initMagnifier.d.ts +4 -0
  106. package/dist/actions/initMagnifier.d.ts.map +1 -0
  107. package/dist/actions/initMagnifier.js +42 -54
  108. package/dist/actions/initMagnifier.js.map +1 -0
  109. package/dist/actions/initNavigateWithKeys.d.ts +4 -0
  110. package/dist/actions/initNavigateWithKeys.d.ts.map +1 -0
  111. package/dist/actions/initNavigateWithKeys.js +18 -27
  112. package/dist/actions/initNavigateWithKeys.js.map +1 -0
  113. package/dist/actions/initOpen.d.ts +4 -0
  114. package/dist/actions/initOpen.d.ts.map +1 -0
  115. package/dist/actions/initOpen.js +27 -28
  116. package/dist/actions/initOpen.js.map +1 -0
  117. package/dist/actions/initWheel.d.ts +4 -0
  118. package/dist/actions/initWheel.d.ts.map +1 -0
  119. package/dist/actions/initWheel.js +27 -49
  120. package/dist/actions/initWheel.js.map +1 -0
  121. package/dist/actions/setStyles.d.ts +4 -0
  122. package/dist/actions/setStyles.d.ts.map +1 -0
  123. package/dist/actions/setStyles.js +23 -24
  124. package/dist/actions/setStyles.js.map +1 -0
  125. package/dist/components/GSZoom.d.ts +23 -0
  126. package/dist/components/GSZoom.d.ts.map +1 -0
  127. package/dist/components/GSZoom.js +122 -177
  128. package/dist/components/GSZoom.js.map +1 -0
  129. package/dist/components/styles/GSZoomCSS.d.ts +3 -0
  130. package/dist/components/styles/GSZoomCSS.d.ts.map +1 -0
  131. package/dist/components/styles/GSZoomCSS.js +238 -0
  132. package/dist/components/styles/GSZoomCSS.js.map +1 -0
  133. package/dist/constants/defaultParams.d.ts +4 -0
  134. package/dist/constants/defaultParams.d.ts.map +1 -0
  135. package/dist/constants/defaultParams.js +18 -19
  136. package/dist/constants/defaultParams.js.map +1 -0
  137. package/dist/constants/icons.d.ts +13 -0
  138. package/dist/constants/icons.d.ts.map +1 -0
  139. package/dist/constants/icons.js +16 -25
  140. package/dist/constants/icons.js.map +1 -0
  141. package/dist/constants/magnifierDefaultProps.d.ts +4 -0
  142. package/dist/constants/magnifierDefaultProps.d.ts.map +1 -0
  143. package/dist/constants/magnifierDefaultProps.js +7 -7
  144. package/dist/constants/magnifierDefaultProps.js.map +1 -0
  145. package/dist/constants/types.d.ts +6 -0
  146. package/dist/constants/types.d.ts.map +1 -0
  147. package/dist/constants/types.js +6 -6
  148. package/dist/constants/types.js.map +1 -0
  149. package/dist/helpers/uihelpers.d.ts +2 -0
  150. package/dist/helpers/uihelpers.d.ts.map +1 -0
  151. package/dist/helpers/uihelpers.js +8 -9
  152. package/dist/helpers/uihelpers.js.map +1 -0
  153. package/dist/types/params.d.ts +35 -0
  154. package/dist/types/params.d.ts.map +1 -0
  155. package/dist/types/params.js +2 -0
  156. package/dist/types/params.js.map +1 -0
  157. package/dist/types/ref.d.ts +23 -0
  158. package/dist/types/ref.d.ts.map +1 -0
  159. package/dist/types/ref.js +2 -0
  160. package/dist/types/ref.js.map +1 -0
  161. package/dist-js/bundle.js +1689 -0
  162. package/helpers/uihelpers.ts +7 -0
  163. package/package.json +74 -43
  164. package/styles/GSZoom.scss +252 -0
  165. package/types/global.d.ts +33 -0
  166. package/types/params.ts +36 -0
  167. package/types/ref.ts +23 -0
  168. package/dist/components/styles/GSZoom.css.map +0 -1
  169. package/index.js +0 -3
  170. /package/{dist → components/styles}/GSZoom.css +0 -0
  171. /package/{dist/components/styles → styles}/GSZoom.css +0 -0
@@ -0,0 +1,1689 @@
1
+
2
+ (() => {
3
+ if (window.jQuery) {
4
+ $.fn.GSZoom = function (params) {
5
+ this.each(function(){
6
+ new window.GSZoom(this, params);
7
+ })
8
+ };
9
+ }
10
+ HTMLElement.prototype.GSZoom = function(params) {
11
+ new window.GSZoom(this, params);
12
+ };
13
+ })();
14
+
15
+ /******/ (() => { // webpackBootstrap
16
+ /******/ "use strict";
17
+ /******/ var __webpack_modules__ = ({
18
+
19
+ /***/ 660
20
+ (__unused_webpack_module, exports, __webpack_require__) {
21
+
22
+
23
+ var __importDefault = (this && this.__importDefault) || function (mod) {
24
+ return (mod && mod.__esModule) ? mod : { "default": mod };
25
+ };
26
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
27
+ /// <reference path="./types/global.d.ts" />
28
+ const init_1 = __importDefault(__webpack_require__(43));
29
+ const getCurrentParams_1 = __importDefault(__webpack_require__(238));
30
+ const uihelpers_1 = __webpack_require__(432);
31
+ window.GSZoom = function (list, params = {}) {
32
+ const _params = { ...params };
33
+ const _key = _params.reference != undefined && _params.reference !== ''
34
+ ? _params.reference
35
+ : (0, uihelpers_1.NewGuid)();
36
+ _params.reference = _key;
37
+ if (typeof window.GSZoomConfigue === 'undefined') {
38
+ window.GSZoomConfigue = {
39
+ references: [],
40
+ openedZoom: undefined,
41
+ instance: (ref) => {
42
+ if (ref != undefined && ref !== '') {
43
+ const instance = window.GSZoomConfigue.references.find((x) => x.key === ref);
44
+ if (instance != undefined) {
45
+ return instance.ref;
46
+ }
47
+ }
48
+ },
49
+ };
50
+ document.addEventListener('gesturestart', (e) => {
51
+ e.preventDefault();
52
+ });
53
+ }
54
+ if (window.GSZoomConfigue.references.find((x) => x.key === _key) === undefined) {
55
+ const currentParams = (0, getCurrentParams_1.default)(_params);
56
+ // Normalise the list argument to a plain array of HTMLImageElements
57
+ let imageList;
58
+ if (list instanceof NodeList) {
59
+ imageList = [...list];
60
+ }
61
+ else if (Array.isArray(list)) {
62
+ imageList = list;
63
+ }
64
+ else {
65
+ imageList = [list];
66
+ }
67
+ window.GSZoomConfigue.references.push({
68
+ key: _key,
69
+ ref: {
70
+ list: imageList,
71
+ currentParams,
72
+ currentIndex: 0,
73
+ },
74
+ });
75
+ const currentRef = window.GSZoomConfigue.references.find((x) => x.key === _key).ref;
76
+ (0, init_1.default)(currentRef);
77
+ }
78
+ else {
79
+ console.error(`GSZoom with '${_key}' reference already exists`);
80
+ }
81
+ };
82
+ exports["default"] = window.GSZoom;
83
+
84
+
85
+ /***/ },
86
+
87
+ /***/ 577
88
+ (__unused_webpack_module, exports, __webpack_require__) {
89
+
90
+
91
+ var __importDefault = (this && this.__importDefault) || function (mod) {
92
+ return (mod && mod.__esModule) ? mod : { "default": mod };
93
+ };
94
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
95
+ exports.fullscreenchange = exports.getTranslateCoord = exports.getScale = void 0;
96
+ const initClose_1 = __importDefault(__webpack_require__(87));
97
+ const getScale = (element) => {
98
+ const style = window.getComputedStyle(element);
99
+ const transform = style.transform;
100
+ if (transform !== 'none') {
101
+ const values = transform.match(/matrix.*\((.+)\)/)?.[1].split(', ');
102
+ if (values) {
103
+ return parseFloat(values[0]);
104
+ }
105
+ }
106
+ return 1;
107
+ };
108
+ exports.getScale = getScale;
109
+ const getTranslateCoord = (element) => {
110
+ const style = window.getComputedStyle(element);
111
+ const matrix = new DOMMatrix(style.transform);
112
+ return {
113
+ x: matrix.e,
114
+ y: matrix.f,
115
+ };
116
+ };
117
+ exports.getTranslateCoord = getTranslateCoord;
118
+ const fullscreenchange = () => {
119
+ if (!document.fullscreenElement) {
120
+ (0, initClose_1.default)();
121
+ }
122
+ };
123
+ exports.fullscreenchange = fullscreenchange;
124
+
125
+
126
+ /***/ },
127
+
128
+ /***/ 724
129
+ (__unused_webpack_module, exports) {
130
+
131
+
132
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
133
+ const getAdjustTransform = (scale, translatex, translatey, $img, $container) => {
134
+ const actualWidth = $img.clientWidth * scale;
135
+ const actualHeight = $img.clientHeight * scale;
136
+ const containerWidth = $container.clientWidth;
137
+ const containerHeight = $container.clientHeight;
138
+ const maxTranslateXValue = (actualWidth - containerWidth) / 2;
139
+ const maxTranslateYValue = (actualHeight - containerHeight) / 2;
140
+ const minTranslateXValue = (containerWidth - actualWidth) / 2;
141
+ const minTranslateYValue = (containerHeight - actualHeight) / 2;
142
+ let newTranslateXValue = translatex / scale;
143
+ let newTranslateYValue = translatey / scale;
144
+ if (actualWidth <= containerWidth) {
145
+ if (translatex !== 0) {
146
+ newTranslateXValue = 0;
147
+ }
148
+ }
149
+ else {
150
+ if (translatex > maxTranslateXValue) {
151
+ newTranslateXValue = maxTranslateXValue / scale;
152
+ }
153
+ else if (translatex < minTranslateXValue) {
154
+ newTranslateXValue = minTranslateXValue / scale;
155
+ }
156
+ }
157
+ if (actualHeight <= containerHeight) {
158
+ if (translatey !== 0) {
159
+ newTranslateYValue = 0;
160
+ }
161
+ }
162
+ else {
163
+ if (translatey > maxTranslateYValue) {
164
+ newTranslateYValue = maxTranslateYValue / scale;
165
+ }
166
+ else if (translatey < minTranslateYValue) {
167
+ newTranslateYValue = minTranslateYValue / scale;
168
+ }
169
+ }
170
+ return [newTranslateXValue, newTranslateYValue];
171
+ };
172
+ exports["default"] = getAdjustTransform;
173
+
174
+
175
+ /***/ },
176
+
177
+ /***/ 238
178
+ (__unused_webpack_module, exports, __webpack_require__) {
179
+
180
+
181
+ var __importDefault = (this && this.__importDefault) || function (mod) {
182
+ return (mod && mod.__esModule) ? mod : { "default": mod };
183
+ };
184
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
185
+ const defaultParams_1 = __importDefault(__webpack_require__(636));
186
+ const magnifierDefaultProps_1 = __importDefault(__webpack_require__(857));
187
+ const getCurrentParams = (params) => {
188
+ const defaultParams = { ...defaultParams_1.default };
189
+ let finalParams = {
190
+ ...defaultParams,
191
+ ...params,
192
+ };
193
+ if (finalParams.responsive && finalParams.responsive.length > 0) {
194
+ finalParams.responsive.sort((a, b) => b.windowSize - a.windowSize);
195
+ }
196
+ if (finalParams.responsive && finalParams.responsive.length > 0) {
197
+ const windowSize = window.innerWidth;
198
+ const availableResponsives = finalParams.responsive.filter((resp) => resp.windowSize >= windowSize);
199
+ availableResponsives.forEach((resp) => {
200
+ finalParams = {
201
+ ...finalParams,
202
+ ...resp.params,
203
+ magnifier: {
204
+ ...magnifierDefaultProps_1.default,
205
+ ...resp.magnifier,
206
+ },
207
+ };
208
+ });
209
+ }
210
+ else {
211
+ finalParams.magnifier = {
212
+ ...magnifierDefaultProps_1.default,
213
+ ...finalParams.magnifier,
214
+ };
215
+ }
216
+ return finalParams;
217
+ };
218
+ exports["default"] = getCurrentParams;
219
+
220
+
221
+ /***/ },
222
+
223
+ /***/ 461
224
+ (__unused_webpack_module, exports, __webpack_require__) {
225
+
226
+
227
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
228
+ const general_1 = __webpack_require__(577);
229
+ const getTranslateCoordToPoint = ($img, $container, scale, newScale, clientX, clientY) => {
230
+ const coords = (0, general_1.getTranslateCoord)($img);
231
+ const translatex = coords.x;
232
+ const translatey = coords.y;
233
+ const actualWidth = $img.clientWidth * scale;
234
+ const actualHeight = $img.clientHeight * scale;
235
+ const containerWidth = $container.clientWidth;
236
+ const containerHeight = $container.clientHeight;
237
+ const mouseDirectionY = (clientY - (containerHeight - actualHeight) / 2 - translatey) / actualHeight;
238
+ const mouseDirectionX = (clientX - (containerWidth - actualWidth) / 2 - translatex) / actualWidth;
239
+ const newActualWidth = (actualWidth * newScale) / scale;
240
+ const newActualHeight = (actualHeight * newScale) / scale;
241
+ const newTranslatex = (newActualWidth - containerWidth) / 2 -
242
+ (newActualWidth * mouseDirectionX - clientX);
243
+ const newTranslatey = (newActualHeight - containerHeight) / 2 -
244
+ (newActualHeight * mouseDirectionY - clientY);
245
+ return [newTranslatex, newTranslatey];
246
+ };
247
+ exports["default"] = getTranslateCoordToPoint;
248
+
249
+
250
+ /***/ },
251
+
252
+ /***/ 43
253
+ (__unused_webpack_module, exports, __webpack_require__) {
254
+
255
+
256
+ var __importDefault = (this && this.__importDefault) || function (mod) {
257
+ return (mod && mod.__esModule) ? mod : { "default": mod };
258
+ };
259
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
260
+ const types_1 = __importDefault(__webpack_require__(178));
261
+ const initLightBox_1 = __importDefault(__webpack_require__(786));
262
+ const initMagnifier_1 = __importDefault(__webpack_require__(79));
263
+ const init = (ref) => {
264
+ if (typeof ref.currentParams.beforeInit === 'function') {
265
+ ref.currentParams.beforeInit();
266
+ }
267
+ switch (ref.currentParams.type) {
268
+ case types_1.default.lightbox:
269
+ (0, initLightBox_1.default)(ref);
270
+ break;
271
+ case types_1.default.magnifier:
272
+ (0, initMagnifier_1.default)(ref);
273
+ break;
274
+ }
275
+ if (typeof ref.currentParams.afterInit === 'function') {
276
+ ref.currentParams.afterInit();
277
+ }
278
+ };
279
+ exports["default"] = init;
280
+
281
+
282
+ /***/ },
283
+
284
+ /***/ 832
285
+ (__unused_webpack_module, exports, __webpack_require__) {
286
+
287
+
288
+ var __importDefault = (this && this.__importDefault) || function (mod) {
289
+ return (mod && mod.__esModule) ? mod : { "default": mod };
290
+ };
291
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
292
+ const icons_1 = __importDefault(__webpack_require__(109));
293
+ const getAdjustTransform_1 = __importDefault(__webpack_require__(724));
294
+ const getTranslateCoordToPoint_1 = __importDefault(__webpack_require__(461));
295
+ const initAutoplay_1 = __webpack_require__(466);
296
+ const initFullScreen_1 = __webpack_require__(294);
297
+ const setStyles_1 = __importDefault(__webpack_require__(835));
298
+ const initActionEvents = (ref) => {
299
+ const params = ref.currentParams;
300
+ const $container = ref.$container;
301
+ const $btnAdditionals = ref.$btnAdditionals;
302
+ const $btnAutoplay = ref.$btnAutoplay;
303
+ const $btnClose = ref.$btnClose;
304
+ const $btnZoomIn = ref.$btnZoomIn;
305
+ const $btnZoomOut = ref.$btnZoomOut;
306
+ if ($btnAdditionals != null) {
307
+ $btnAdditionals.addEventListener('click', () => {
308
+ $container
309
+ .querySelector('.gs-zoom-additionals')
310
+ ?.classList.toggle('gs-zoom-hidden');
311
+ });
312
+ }
313
+ if ($btnAutoplay != null) {
314
+ $btnAutoplay.addEventListener('click', () => {
315
+ if (ref.autoplay === undefined) {
316
+ (0, initAutoplay_1.initAutoplay)(ref);
317
+ $btnAutoplay.innerHTML = icons_1.default.autoplayPause;
318
+ }
319
+ else {
320
+ (0, initAutoplay_1.stopAutoplay)(ref);
321
+ }
322
+ });
323
+ }
324
+ if ($btnClose != null) {
325
+ $btnClose.addEventListener('click', () => {
326
+ (0, initFullScreen_1.exitFullScreen)();
327
+ });
328
+ }
329
+ if ($btnZoomIn != null) {
330
+ $btnZoomIn.addEventListener('click', () => {
331
+ const $img = ref.$img;
332
+ const scale = $img.dataset.scale !== undefined ? parseFloat($img.dataset.scale) : 1;
333
+ if (scale < params.maxZoom) {
334
+ clearTimeout(ref.zoomButtonTimeout);
335
+ const newScale = Math.min(scale + 0.4, params.maxZoom);
336
+ $img.dataset.scale = String(newScale);
337
+ let [newTranslatex, newTranslatey] = (0, getTranslateCoordToPoint_1.default)($img, $container, scale, newScale, $container.clientWidth / 2, $container.clientHeight / 2);
338
+ [newTranslatex, newTranslatey] = (0, getAdjustTransform_1.default)(newScale, newTranslatex, newTranslatey, $img, $container);
339
+ (0, setStyles_1.default)(ref, $img, {
340
+ transition: '.3s ease-in-out',
341
+ transform: `scale(${newScale}) translate(${newTranslatex}px, ${newTranslatey}px)`,
342
+ });
343
+ ref.zoomButtonTimeout = setTimeout(() => {
344
+ (0, setStyles_1.default)(ref, $img, { transition: 'unset' });
345
+ }, 300);
346
+ }
347
+ });
348
+ }
349
+ if ($btnZoomOut != null) {
350
+ $btnZoomOut.addEventListener('click', () => {
351
+ const $img = ref.$img;
352
+ const scale = $img.dataset.scale !== undefined ? parseFloat($img.dataset.scale) : 1;
353
+ if (scale > 1) {
354
+ clearTimeout(ref.zoomButtonTimeout);
355
+ const newScale = Math.max(1, scale - 0.4);
356
+ $img.dataset.scale = String(newScale);
357
+ let [newTranslatex, newTranslatey] = (0, getTranslateCoordToPoint_1.default)($img, $container, scale, newScale, $container.clientWidth / 2, $container.clientHeight / 2);
358
+ [newTranslatex, newTranslatey] = (0, getAdjustTransform_1.default)(newScale, newTranslatex, newTranslatey, $img, $container);
359
+ (0, setStyles_1.default)(ref, $img, {
360
+ transition: '.3s ease-in-out',
361
+ transform: `scale(${newScale}) translate(${newTranslatex}px, ${newTranslatey}px)`,
362
+ });
363
+ ref.zoomButtonTimeout = setTimeout(() => {
364
+ (0, setStyles_1.default)(ref, $img, { transition: 'unset' });
365
+ }, 300);
366
+ }
367
+ });
368
+ }
369
+ };
370
+ exports["default"] = initActionEvents;
371
+
372
+
373
+ /***/ },
374
+
375
+ /***/ 5
376
+ (__unused_webpack_module, exports, __webpack_require__) {
377
+
378
+
379
+ var __importDefault = (this && this.__importDefault) || function (mod) {
380
+ return (mod && mod.__esModule) ? mod : { "default": mod };
381
+ };
382
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
383
+ const general_1 = __webpack_require__(577);
384
+ const initChange_1 = __importDefault(__webpack_require__(719));
385
+ const initAdditionals = (ref) => {
386
+ const params = ref.currentParams;
387
+ if (params.showAdditionals && ref.list.length > 1) {
388
+ const $container = ref.$container;
389
+ const $addContainer = document.createElement('div');
390
+ const $addList = document.createElement('div');
391
+ const $addListContainer = document.createElement('div');
392
+ $addContainer.classList.add('gs-zoom-additionals', 'gs-zoom-hide-inzoomed', 'gs-zoom-hidden');
393
+ $addListContainer.classList.add('gs-add-list-container');
394
+ $addList.classList.add('gs-add-list');
395
+ $addList.style.transform = 'translateX(0px)';
396
+ ref.list.forEach((el, index) => {
397
+ const $item = document.createElement('div');
398
+ $item.dataset.index = String(index);
399
+ if (index === ref.currentIndex) {
400
+ $item.classList.add('active');
401
+ }
402
+ const $itemImg = document.createElement('img');
403
+ $itemImg.src = el.src.split('?')[0] + params.additionalImageQueryParameters;
404
+ $itemImg.onload = () => {
405
+ $item.classList.remove('gz-zoom-is-loading');
406
+ };
407
+ $item.classList.add('gs-add-item', 'gz-zoom-is-loading');
408
+ $item.append($itemImg);
409
+ $addList.append($item);
410
+ $item.addEventListener('click', () => {
411
+ (0, initChange_1.default)(ref, index);
412
+ });
413
+ });
414
+ $addListContainer.append($addList);
415
+ $addContainer.append($addListContainer);
416
+ $container.append($addContainer);
417
+ const clampTranslate = () => {
418
+ const translate = (0, general_1.getTranslateCoord)($addList).x;
419
+ if (translate > 0) {
420
+ $addList.style.transform = 'translateX(0px)';
421
+ }
422
+ else if (translate < $container.clientWidth - $addList.clientWidth) {
423
+ $addList.style.transform = `translateX(${$container.clientWidth - $addList.clientWidth}px)`;
424
+ }
425
+ };
426
+ $addList.ontouchstart = $addList.onmousedown = (e) => {
427
+ if ($addList.clientWidth > $container.clientWidth) {
428
+ const te = e;
429
+ window.initX =
430
+ te.targetTouches?.length > 0 ? te.targetTouches[0].clientX : e.clientX;
431
+ window.initListTranslateX = (0, general_1.getTranslateCoord)($addList).x;
432
+ $container.classList.add('gs-additional-isdragging');
433
+ }
434
+ };
435
+ $container.addEventListener('touchmove', (e) => {
436
+ if ($container.classList.contains('gs-additional-isdragging')) {
437
+ window.clientX = e.targetTouches[0].clientX;
438
+ $addList.style.transform = `translateX(${window.initListTranslateX + (window.clientX - window.initX)}px)`;
439
+ }
440
+ });
441
+ $container.addEventListener('mousemove', (e) => {
442
+ if ($container.classList.contains('gs-additional-isdragging') &&
443
+ $addList.clientWidth > $container.clientWidth) {
444
+ window.clientX = e.clientX;
445
+ $addList.style.transform = `translateX(${window.initListTranslateX + (window.clientX - window.initX)}px)`;
446
+ }
447
+ });
448
+ const onDragEnd = () => {
449
+ if ($container.classList.contains('gs-additional-isdragging')) {
450
+ $container.classList.remove('gs-additional-isdragging');
451
+ clampTranslate();
452
+ }
453
+ };
454
+ $container.addEventListener('mouseleave', onDragEnd);
455
+ $container.addEventListener('mouseup', onDragEnd);
456
+ $container.addEventListener('touchend', onDragEnd);
457
+ }
458
+ };
459
+ exports["default"] = initAdditionals;
460
+
461
+
462
+ /***/ },
463
+
464
+ /***/ 112
465
+ (__unused_webpack_module, exports, __webpack_require__) {
466
+
467
+
468
+ var __importDefault = (this && this.__importDefault) || function (mod) {
469
+ return (mod && mod.__esModule) ? mod : { "default": mod };
470
+ };
471
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
472
+ const general_1 = __webpack_require__(577);
473
+ const getAdjustTransform_1 = __importDefault(__webpack_require__(724));
474
+ const getTranslateCoordToPoint_1 = __importDefault(__webpack_require__(461));
475
+ const setStyles_1 = __importDefault(__webpack_require__(835));
476
+ const initAdjust = (ref, $container, $img, withAnimation = true) => {
477
+ if ($img.classList.contains('gs-zoom-isdragging') || !withAnimation) {
478
+ const params = ref.currentParams;
479
+ let needAdjust = false;
480
+ if (withAnimation) {
481
+ $img.classList.remove('gs-zoom-isdragging');
482
+ }
483
+ let scale = $img.dataset.scale != null ? parseFloat($img.dataset.scale) : 1;
484
+ let isOverzoomed = false;
485
+ const oldScale = scale;
486
+ if (scale < 1) {
487
+ scale = 1;
488
+ needAdjust = true;
489
+ }
490
+ else if (scale > params.maxZoom) {
491
+ isOverzoomed = true;
492
+ scale = params.maxZoom;
493
+ needAdjust = true;
494
+ }
495
+ $img.dataset.scale = String(scale);
496
+ const actualWidth = $img.clientWidth * scale;
497
+ const actualHeight = $img.clientHeight * scale;
498
+ const containerWidth = $container.clientWidth;
499
+ const containerHeight = $container.clientHeight;
500
+ const coords = (0, general_1.getTranslateCoord)($img);
501
+ const translatex = coords.x;
502
+ const translatey = coords.y;
503
+ const maxTranslateXValue = (actualWidth - containerWidth) / 2;
504
+ const maxTranslateYValue = (actualHeight - containerHeight) / 2;
505
+ const minTranslateXValue = (containerWidth - actualWidth) / 2;
506
+ const minTranslateYValue = (containerHeight - actualHeight) / 2;
507
+ let newTranslateXValue = translatex / scale;
508
+ let newTranslateYValue = translatey / scale;
509
+ if (actualWidth <= containerWidth) {
510
+ if (translatex !== 0) {
511
+ needAdjust = true;
512
+ newTranslateXValue = 0;
513
+ }
514
+ }
515
+ else {
516
+ if (translatex > maxTranslateXValue) {
517
+ needAdjust = true;
518
+ newTranslateXValue = maxTranslateXValue / scale;
519
+ }
520
+ else if (translatex < minTranslateXValue) {
521
+ needAdjust = true;
522
+ newTranslateXValue = minTranslateXValue / scale;
523
+ }
524
+ }
525
+ if (actualHeight <= containerHeight) {
526
+ if (translatey !== 0) {
527
+ needAdjust = true;
528
+ newTranslateYValue = 0;
529
+ }
530
+ }
531
+ else {
532
+ if (translatey > maxTranslateYValue) {
533
+ needAdjust = true;
534
+ newTranslateYValue = maxTranslateYValue / scale;
535
+ }
536
+ else if (translatey < minTranslateYValue) {
537
+ needAdjust = true;
538
+ newTranslateYValue = minTranslateYValue / scale;
539
+ }
540
+ }
541
+ if (isOverzoomed) {
542
+ const clientCenterX = (window.clientX + window.clientX2) / 2;
543
+ const clientCenterY = (window.clientY + window.clientY2) / 2;
544
+ let [newTranslatex, newTranslatey] = (0, getTranslateCoordToPoint_1.default)($img, $container, oldScale, scale, clientCenterX, clientCenterY);
545
+ [newTranslatex, newTranslatey] = (0, getAdjustTransform_1.default)(scale, newTranslatex, newTranslatey, $img, $container);
546
+ newTranslateXValue = newTranslatex;
547
+ newTranslateYValue = newTranslatey;
548
+ }
549
+ if (needAdjust) {
550
+ if (withAnimation) {
551
+ $img.classList.add('gs-zoom-is-adjusting');
552
+ }
553
+ (0, setStyles_1.default)(ref, $img, {
554
+ transform: `scale(${scale}) translate(${newTranslateXValue}px, ${newTranslateYValue}px)`,
555
+ });
556
+ $img.dataset.translatex = String(newTranslateXValue * scale);
557
+ $img.dataset.translatey = String(newTranslateYValue * scale);
558
+ if (withAnimation) {
559
+ setTimeout(() => {
560
+ $img.classList.remove('gs-zoom-is-adjusting');
561
+ }, 400);
562
+ }
563
+ }
564
+ }
565
+ };
566
+ exports["default"] = initAdjust;
567
+
568
+
569
+ /***/ },
570
+
571
+ /***/ 611
572
+ (__unused_webpack_module, exports, __webpack_require__) {
573
+
574
+
575
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
576
+ const general_1 = __webpack_require__(577);
577
+ const initAdjustAdditionalActive = (ref) => {
578
+ if (ref.currentParams.showAdditionals && ref.list.length > 1) {
579
+ const $container = ref.$container;
580
+ const $active = $container.querySelector('.gs-add-list .gs-add-item.active');
581
+ if ($active != null) {
582
+ const $list = $container.querySelector('.gs-add-list');
583
+ const tranlateLeft = (0, general_1.getTranslateCoord)($list).x;
584
+ const offsetLeft = $active.offsetLeft;
585
+ const containerWidth = $container.clientWidth;
586
+ const itemWidth = $active.clientWidth;
587
+ const listWidth = $list.clientWidth;
588
+ const offsetContainer = offsetLeft + tranlateLeft;
589
+ const gap = parseFloat(getComputedStyle($list).columnGap);
590
+ if (offsetContainer < itemWidth + gap) {
591
+ $list.style.transform = `translateX(${Math.min(itemWidth + gap - offsetLeft, 0)}px)`;
592
+ }
593
+ else if (offsetContainer > containerWidth - (2 * itemWidth + gap)) {
594
+ $list.style.transform = `translateX(${Math.max(containerWidth - offsetLeft - 2 * itemWidth - gap, containerWidth - listWidth)}px)`;
595
+ }
596
+ }
597
+ }
598
+ };
599
+ exports["default"] = initAdjustAdditionalActive;
600
+
601
+
602
+ /***/ },
603
+
604
+ /***/ 21
605
+ (__unused_webpack_module, exports, __webpack_require__) {
606
+
607
+
608
+ var __importDefault = (this && this.__importDefault) || function (mod) {
609
+ return (mod && mod.__esModule) ? mod : { "default": mod };
610
+ };
611
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
612
+ const icons_1 = __importDefault(__webpack_require__(109));
613
+ const initChange_1 = __importDefault(__webpack_require__(719));
614
+ const initArrows = (ref) => {
615
+ const params = ref.currentParams;
616
+ const $container = ref.$container;
617
+ if (params.arrows && ref.list.length > 1) {
618
+ const $btnNavigations = document.createElement('div');
619
+ const $btnNext = document.createElement('button');
620
+ const $btnPrev = document.createElement('button');
621
+ $btnPrev.innerHTML = icons_1.default.arrPrev;
622
+ $btnNext.innerHTML = icons_1.default.arrNext;
623
+ $btnNavigations.classList.add('gs-zoom-navigations');
624
+ $btnNext.classList.add('gs-zoom-next', 'gs-zoom-hide-inzoomed');
625
+ $btnPrev.classList.add('gs-zoom-prev', 'gs-zoom-hide-inzoomed');
626
+ $btnNavigations.append($btnPrev, $btnNext);
627
+ $container.append($btnNavigations);
628
+ $btnNext.addEventListener('click', () => {
629
+ const newIndex = ref.currentIndex < ref.list.length - 1 ? ref.currentIndex + 1 : 0;
630
+ (0, initChange_1.default)(ref, newIndex);
631
+ });
632
+ $btnPrev.addEventListener('click', () => {
633
+ const newIndex = ref.currentIndex === 0 ? ref.list.length - 1 : ref.currentIndex - 1;
634
+ (0, initChange_1.default)(ref, newIndex);
635
+ });
636
+ }
637
+ };
638
+ exports["default"] = initArrows;
639
+
640
+
641
+ /***/ },
642
+
643
+ /***/ 466
644
+ (__unused_webpack_module, exports, __webpack_require__) {
645
+
646
+
647
+ var __importDefault = (this && this.__importDefault) || function (mod) {
648
+ return (mod && mod.__esModule) ? mod : { "default": mod };
649
+ };
650
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
651
+ exports.stopAutoplay = exports.resumeAutoplay = exports.pauseAutoplay = exports.initAutoplay = void 0;
652
+ const icons_1 = __importDefault(__webpack_require__(109));
653
+ const initChange_1 = __importDefault(__webpack_require__(719));
654
+ const initAutoplay = (ref) => {
655
+ const $container = ref.$container;
656
+ const params = ref.currentParams;
657
+ if ($container.querySelector('.gs-zoom-autoplayline') != null) {
658
+ $container.querySelector('.gs-zoom-autoplayline').remove();
659
+ }
660
+ const $autoplayLine = document.createElement('div');
661
+ setTimeout(() => {
662
+ $autoplayLine.classList.add('gs-zoom-autoplayline');
663
+ $container.prepend($autoplayLine);
664
+ $autoplayLine.style.width = '0px';
665
+ setTimeout(() => {
666
+ $autoplayLine.style.transition = `${params.autoplaySpeed}ms all linear`;
667
+ $autoplayLine.style.width = '100vw';
668
+ clearTimeout(ref.autoplay);
669
+ ref.autoplay = setTimeout(() => {
670
+ if ($container.querySelector('.gs-zoom-autoplayline') != null) {
671
+ $container.querySelector('.gs-zoom-autoplayline').remove();
672
+ }
673
+ if (ref.currentIndex === ref.list.length - 1) {
674
+ (0, initChange_1.default)(ref, 0, true);
675
+ }
676
+ else {
677
+ (0, initChange_1.default)(ref, ref.currentIndex + 1, true);
678
+ }
679
+ }, params.autoplaySpeed - 100);
680
+ }, 100);
681
+ }, 0);
682
+ };
683
+ exports.initAutoplay = initAutoplay;
684
+ const pauseAutoplay = (ref) => {
685
+ if (ref.autoplay !== undefined) {
686
+ const $container = ref.$container;
687
+ const $loader = $container.querySelector('.gs-zoom-autoplayline');
688
+ if ($loader) {
689
+ const loaded = $loader.clientWidth;
690
+ const all = $container.clientWidth;
691
+ const loadedPercent = loaded / all;
692
+ $loader.style.transition = 'unset';
693
+ $loader.style.width = `${loaded}px`;
694
+ $loader.dataset.loaded = String(loadedPercent);
695
+ clearTimeout(ref.autoplay);
696
+ ref.autoplay = undefined;
697
+ ref.autoplayStoped = true;
698
+ }
699
+ }
700
+ };
701
+ exports.pauseAutoplay = pauseAutoplay;
702
+ const resumeAutoplay = (ref) => {
703
+ if (ref.autoplayStoped) {
704
+ ref.autoplayStoped = false;
705
+ const params = ref.currentParams;
706
+ const $container = ref.$container;
707
+ const $loader = $container.querySelector('.gs-zoom-autoplayline');
708
+ if ($loader != null) {
709
+ const loaded = +$loader.dataset.loaded;
710
+ const timeLeft = params.autoplaySpeed * (1 - loaded);
711
+ $loader.style.transition = `${timeLeft}ms all linear`;
712
+ $loader.style.width = '100vw';
713
+ clearTimeout(ref.autoplay);
714
+ ref.autoplay = setTimeout(() => {
715
+ if (ref.currentIndex === ref.list.length - 1) {
716
+ (0, initChange_1.default)(ref, 0, true);
717
+ }
718
+ else {
719
+ (0, initChange_1.default)(ref, ref.currentIndex + 1, true);
720
+ }
721
+ }, timeLeft);
722
+ }
723
+ }
724
+ };
725
+ exports.resumeAutoplay = resumeAutoplay;
726
+ const stopAutoplay = (ref) => {
727
+ const $container = ref.$container;
728
+ const $btn = $container.querySelector('.gs-zoom-btn-autoplay');
729
+ if ($btn) {
730
+ $btn.innerHTML = icons_1.default.autoplay;
731
+ }
732
+ if ($container.querySelector('.gs-zoom-autoplayline') != null) {
733
+ $container.querySelector('.gs-zoom-autoplayline').remove();
734
+ clearTimeout(ref.autoplay);
735
+ ref.autoplay = undefined;
736
+ ref.autoplayStoped = false;
737
+ }
738
+ };
739
+ exports.stopAutoplay = stopAutoplay;
740
+
741
+
742
+ /***/ },
743
+
744
+ /***/ 719
745
+ (__unused_webpack_module, exports, __webpack_require__) {
746
+
747
+
748
+ var __importDefault = (this && this.__importDefault) || function (mod) {
749
+ return (mod && mod.__esModule) ? mod : { "default": mod };
750
+ };
751
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
752
+ const initAdjustAdditionalActive_1 = __importDefault(__webpack_require__(611));
753
+ const initAutoplay_1 = __webpack_require__(466);
754
+ const initDraggle_1 = __importDefault(__webpack_require__(343));
755
+ const initDrawItem_1 = __importDefault(__webpack_require__(538));
756
+ const setStyles_1 = __importDefault(__webpack_require__(835));
757
+ const initChange = (ref, index, isAutoplay = false) => {
758
+ if (ref.inProcess === undefined || !ref.inProcess) {
759
+ ref.inProcess = true;
760
+ const params = ref.currentParams;
761
+ const $img = ref.$img;
762
+ const $container = ref.$container;
763
+ const $imgList = ref.$imgList;
764
+ $img.dataset.scale = '1';
765
+ $img.dataset.translatex = '0';
766
+ $img.dataset.translatey = '0';
767
+ $container.classList.remove('gs-zoom-is-zoomed');
768
+ $imgList.style.transition = '.3s ease-in-out';
769
+ if (params.showAdditionals && ref.list.length > 1) {
770
+ const $active = $container.querySelector('.gs-zoom-additionals .gs-add-list .gs-add-item.active');
771
+ if ($active != null) {
772
+ $active.classList.remove('active');
773
+ }
774
+ $container
775
+ .querySelector(`.gs-zoom-additionals .gs-add-list .gs-add-item[data-index='${index}']`)
776
+ ?.classList.add('active');
777
+ }
778
+ (0, initAdjustAdditionalActive_1.default)(ref);
779
+ if (ref.currentIndex === index) {
780
+ const drawed = $imgList.querySelectorAll('.gs-zoom-main-img').length;
781
+ if (drawed === 1) {
782
+ $imgList.style.transform = 'translate(0%)';
783
+ }
784
+ else if (drawed === 2) {
785
+ $imgList.style.transform =
786
+ ref.currentIndex === 0 ? 'translate(0%)' : 'translate(-50%)';
787
+ }
788
+ else {
789
+ $imgList.style.transform = 'translate(-33.3333%)';
790
+ }
791
+ }
792
+ else {
793
+ if (index > ref.currentIndex) {
794
+ $imgList.style.transform =
795
+ $imgList.querySelectorAll('.gs-zoom-main-img').length === 3
796
+ ? 'translate(-66.6666%)'
797
+ : 'translate(-50%)';
798
+ }
799
+ else {
800
+ $imgList.style.transform = 'translate(0%)';
801
+ }
802
+ }
803
+ if (ref.currentIndex !== index && Math.abs(index - ref.currentIndex) !== 1) {
804
+ const $el = $imgList.querySelector(`.gs-zoom-main-img[data-index='${ref.currentIndex + (index > ref.currentIndex ? 1 : -1)}']`);
805
+ if ($el != null) {
806
+ $el.dataset.index = String(index);
807
+ (0, initDrawItem_1.default)(ref, index);
808
+ }
809
+ }
810
+ setTimeout(() => {
811
+ ref.isZoomed = false;
812
+ $imgList.style.transition = 'unset';
813
+ (0, setStyles_1.default)(ref, $img, { transform: 'scale(1) translate(0, 0)' });
814
+ ref.$mainImg = $imgList.querySelector(`.gs-zoom-main-img[data-index='${index}']`);
815
+ ref.$imgTouch = ref.$mainImg.querySelector('.gs-zoom-img-touch');
816
+ ref.$img = ref.$mainImg.querySelector('.gs-zoom-img');
817
+ if (ref.list.length > 2 && ref.currentIndex !== index) {
818
+ [
819
+ ...$imgList.querySelectorAll(`.gs-zoom-main-img:not([data-index='${index}'])`),
820
+ ].forEach((el) => el.remove());
821
+ ref.currentIndex = index;
822
+ if (index < ref.list.length - 1) {
823
+ const $mainImg = document.createElement('div');
824
+ $mainImg.classList.add('gs-zoom-main-img');
825
+ $mainImg.dataset.index = String(index + 1);
826
+ $imgList.append($mainImg);
827
+ (0, initDrawItem_1.default)(ref, index + 1);
828
+ }
829
+ if (index > 0) {
830
+ const $mainImg = document.createElement('div');
831
+ $mainImg.classList.add('gs-zoom-main-img');
832
+ $mainImg.dataset.index = String(index - 1);
833
+ $imgList.prepend($mainImg);
834
+ (0, initDrawItem_1.default)(ref, index - 1);
835
+ }
836
+ }
837
+ else {
838
+ ref.currentIndex = index;
839
+ }
840
+ const drawed = $imgList.querySelectorAll('.gs-zoom-main-img').length;
841
+ if (drawed === 1) {
842
+ $imgList.style.transform = 'translate(0%)';
843
+ }
844
+ else if (drawed === 2) {
845
+ $imgList.style.transform =
846
+ ref.currentIndex === 0 ? 'translate(0%)' : 'translate(-50%)';
847
+ }
848
+ else {
849
+ $imgList.style.transform = 'translate(-33.3333%)';
850
+ }
851
+ ref.inProcess = false;
852
+ if (typeof params.afterChange === 'function') {
853
+ params.afterChange();
854
+ }
855
+ (0, initDraggle_1.default)(ref, index);
856
+ }, 300);
857
+ $imgList.classList.remove('gs-zoom-listisdragging');
858
+ if (isAutoplay) {
859
+ (0, initAutoplay_1.initAutoplay)(ref);
860
+ }
861
+ else {
862
+ (0, initAutoplay_1.stopAutoplay)(ref);
863
+ }
864
+ }
865
+ };
866
+ exports["default"] = initChange;
867
+
868
+
869
+ /***/ },
870
+
871
+ /***/ 87
872
+ (__unused_webpack_module, exports, __webpack_require__) {
873
+
874
+
875
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
876
+ const initAutoplay_1 = __webpack_require__(466);
877
+ const initClose = () => {
878
+ const ref = window.GSZoomConfigue?.openedZoom !== undefined
879
+ ? window.GSZoomConfigue.references.find((x) => x.key === window.GSZoomConfigue.openedZoom)?.ref
880
+ : null;
881
+ if (ref != null) {
882
+ if (typeof ref.currentParams.beforeLightBoxClose === 'function') {
883
+ ref.currentParams.beforeLightBoxClose();
884
+ }
885
+ document.onkeyup = null;
886
+ if (ref.autoplay !== undefined) {
887
+ clearTimeout(ref.autoplay);
888
+ (0, initAutoplay_1.stopAutoplay)(ref);
889
+ }
890
+ ref.$container?.remove();
891
+ document.querySelector('html').classList.remove('gs-zoom-opened');
892
+ if (typeof ref.currentParams.afterLightBoxClose === 'function') {
893
+ ref.currentParams.afterLightBoxClose();
894
+ }
895
+ window.GSZoomConfigue.openedZoom = undefined;
896
+ }
897
+ };
898
+ exports["default"] = initClose;
899
+
900
+
901
+ /***/ },
902
+
903
+ /***/ 343
904
+ (__unused_webpack_module, exports, __webpack_require__) {
905
+
906
+
907
+ var __importDefault = (this && this.__importDefault) || function (mod) {
908
+ return (mod && mod.__esModule) ? mod : { "default": mod };
909
+ };
910
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
911
+ const general_1 = __webpack_require__(577);
912
+ const getAdjustTransform_1 = __importDefault(__webpack_require__(724));
913
+ const getTranslateCoordToPoint_1 = __importDefault(__webpack_require__(461));
914
+ const initAdjust_1 = __importDefault(__webpack_require__(112));
915
+ const initAutoplay_1 = __webpack_require__(466);
916
+ const initChange_1 = __importDefault(__webpack_require__(719));
917
+ const setStyles_1 = __importDefault(__webpack_require__(835));
918
+ const initDraggle = (ref, index) => {
919
+ const params = ref.currentParams;
920
+ const $container = ref.$container;
921
+ const $imgList = ref.$imgList;
922
+ // Detach old handlers from non-active slides
923
+ [
924
+ ...ref.$imgList.querySelectorAll(`.gs-zoom-main-img:not([data-index='${index}']) .gs-zoom-img-touch`),
925
+ ].forEach(($touch) => {
926
+ const t = $touch;
927
+ t.onclick = null;
928
+ t.ontouchstart = null;
929
+ t.onmousedown = null;
930
+ t.ontouchmove = null;
931
+ t.onmousemove = null;
932
+ t.onmouseleave = null;
933
+ t.onmouseup = null;
934
+ t.ontouchend = null;
935
+ });
936
+ const item = ref.$imgList.querySelector(`.gs-zoom-main-img[data-index='${index}']`);
937
+ if (item == null)
938
+ return;
939
+ const $imgTouch = item.querySelector('.gs-zoom-img-touch');
940
+ const $img = item.querySelector('.gs-zoom-img');
941
+ // Double-click / double-tap to toggle max zoom
942
+ $imgTouch.onclick = (e) => {
943
+ const timeNow = new Date().getTime();
944
+ const timeDifference = timeNow - (window.lastClickTime || 0);
945
+ if (timeDifference < 300) {
946
+ const scale = $img.dataset.scale !== undefined ? parseFloat($img.dataset.scale) : 1;
947
+ const newScale = scale < params.maxZoom ? params.maxZoom : 1;
948
+ const te = e;
949
+ const clientX = te.targetTouches?.length > 0 ? te.targetTouches[0].clientX : e.clientX;
950
+ const clientY = te.targetTouches?.length > 0 ? te.targetTouches[0].clientY : e.clientY;
951
+ let [newTranslatex, newTranslatey] = (0, getTranslateCoordToPoint_1.default)($img, $container, scale, newScale, clientX, clientY);
952
+ [newTranslatex, newTranslatey] = (0, getAdjustTransform_1.default)(newScale, newTranslatex, newTranslatey, $img, $container);
953
+ $img.dataset.scale = String(newScale);
954
+ (0, setStyles_1.default)(ref, $img, {
955
+ transition: '4s ease-in-out',
956
+ transform: `scale(${newScale}) translate(${newTranslatex}px, ${newTranslatey}px)`,
957
+ });
958
+ $img.classList.add('gs-zoom-is-adjusting');
959
+ setTimeout(() => {
960
+ $img.classList.remove('gs-zoom-is-adjusting');
961
+ (0, setStyles_1.default)(ref, $img, { transition: 'unset' });
962
+ }, 400);
963
+ }
964
+ window.lastClickTime = timeNow;
965
+ };
966
+ $imgTouch.ontouchstart = (e) => {
967
+ (0, initAutoplay_1.pauseAutoplay)(ref);
968
+ if (e.targetTouches.length > 1) {
969
+ document.querySelector('html').classList.add('gs-disable-apple-touchzoom');
970
+ }
971
+ if (!ref.isZoomed && e.targetTouches.length === 1) {
972
+ const coords = (0, general_1.getTranslateCoord)($imgList);
973
+ window.initListX = e.targetTouches[0].clientX;
974
+ window.initListY = e.targetTouches[0].clientY;
975
+ window.initListTranslateX = coords.x;
976
+ window.initListTranslateY = coords.y;
977
+ $imgList.classList.add('gs-zoom-listisdragging');
978
+ }
979
+ else {
980
+ if (!$img.classList.contains('gs-zoom-is-adjusting')) {
981
+ const coords = (0, general_1.getTranslateCoord)($img);
982
+ $img.dataset.translatex = String(coords.x);
983
+ $img.dataset.translatey = String(coords.y);
984
+ window.initX = e.targetTouches[0].clientX;
985
+ window.initY = e.targetTouches[0].clientY;
986
+ if (e.targetTouches.length > 1) {
987
+ window.initX2 = e.targetTouches[1].clientX;
988
+ window.initY2 = e.targetTouches[1].clientY;
989
+ window.touchDistance = Math.sqrt(Math.pow(window.initX2 - window.initX, 2) +
990
+ Math.pow(window.initY2 - window.initY, 2));
991
+ window.initCenterX = (window.initX2 + window.initX) / 2;
992
+ window.initCenterY = (window.initY2 + window.initY) / 2;
993
+ }
994
+ window.initTranslateX = parseFloat($img.dataset.translatex);
995
+ window.initTranslateY = parseFloat($img.dataset.translatey);
996
+ $img.classList.add('gs-zoom-isdragging');
997
+ }
998
+ }
999
+ };
1000
+ $imgTouch.onmousedown = (e) => {
1001
+ (0, initAutoplay_1.pauseAutoplay)(ref);
1002
+ if (!ref.isZoomed) {
1003
+ const coords = (0, general_1.getTranslateCoord)($imgList);
1004
+ window.initListX = e.clientX;
1005
+ window.initListTranslateX = coords.x;
1006
+ window.initListY = e.clientY;
1007
+ window.initListTranslateY = coords.y;
1008
+ $imgList.classList.add('gs-zoom-listisdragging');
1009
+ }
1010
+ else {
1011
+ if (!$img.classList.contains('gs-zoom-is-adjusting')) {
1012
+ const coords = (0, general_1.getTranslateCoord)($img);
1013
+ $img.dataset.translatex = String(coords.x);
1014
+ $img.dataset.translatey = String(coords.y);
1015
+ window.initX = e.clientX;
1016
+ window.initTranslateX = parseFloat($img.dataset.translatex);
1017
+ window.initY = e.clientY;
1018
+ window.initTranslateY = parseFloat($img.dataset.translatey);
1019
+ $img.classList.add('gs-zoom-isdragging');
1020
+ }
1021
+ }
1022
+ };
1023
+ $imgTouch.ontouchmove = (e) => {
1024
+ const twoTouchPoints = e.targetTouches.length > 1;
1025
+ window.clientX = e.targetTouches[0].clientX;
1026
+ window.clientY = e.targetTouches[0].clientY;
1027
+ if (twoTouchPoints) {
1028
+ window.clientX2 = e.targetTouches[1].clientX;
1029
+ window.clientY2 = e.targetTouches[1].clientY;
1030
+ }
1031
+ if (!ref.isZoomed && !twoTouchPoints) {
1032
+ if ($imgList.classList.contains('gs-zoom-listisdragging')) {
1033
+ const movedX = window.clientX - window.initListX;
1034
+ const newTranslateX = window.initListTranslateX + movedX;
1035
+ $imgList.style.transform = `translateX(${newTranslateX}px)`;
1036
+ $imgList.dataset.moved = String(movedX);
1037
+ }
1038
+ }
1039
+ else if ($imgList.dataset.moved === undefined ||
1040
+ $imgList.dataset.moved === '0') {
1041
+ if ($img.classList.contains('gs-zoom-isdragging')) {
1042
+ if (twoTouchPoints) {
1043
+ const clientCenterX = (window.clientX + window.clientX2) / 2;
1044
+ const clientCenterY = (window.clientY + window.clientY2) / 2;
1045
+ let scale = $img.dataset.scale !== undefined ? parseFloat($img.dataset.scale) : 1;
1046
+ const oldScale = $img.dataset.tempscale !== undefined
1047
+ ? parseFloat($img.dataset.tempscale)
1048
+ : scale;
1049
+ const currentDistance = Math.sqrt(Math.pow(window.clientX - window.clientX2, 2) +
1050
+ Math.pow(window.clientY - window.clientY2, 2));
1051
+ scale = (scale * currentDistance) / window.touchDistance;
1052
+ if (scale < 1)
1053
+ scale = 1;
1054
+ $img.dataset.tempscale = String(scale);
1055
+ let [newTranslatex, newTranslatey] = (0, getTranslateCoordToPoint_1.default)($img, $container, oldScale, scale, window.initCenterX, window.initCenterY);
1056
+ const movedX = clientCenterX - window.initCenterX;
1057
+ const movedY = clientCenterY - window.initCenterY;
1058
+ window.initCenterX = clientCenterX;
1059
+ window.initCenterY = clientCenterY;
1060
+ $img.dataset.translatex = String(newTranslatex + movedX);
1061
+ $img.dataset.translatey = String(newTranslatey + movedY);
1062
+ (0, setStyles_1.default)(ref, $img, {
1063
+ transform: `scale(${scale}) translate(${(newTranslatex + movedX) / scale}px, ${(newTranslatey + movedY) / scale}px)`,
1064
+ });
1065
+ }
1066
+ else {
1067
+ const movedY = window.clientY - window.initY;
1068
+ const movedX = window.clientX - window.initX;
1069
+ $img.dataset.translatex = String(window.initTranslateX + movedX);
1070
+ $img.dataset.translatey = String(window.initTranslateY + movedY);
1071
+ const scale = $img.dataset.scale !== undefined ? parseFloat($img.dataset.scale) : 1;
1072
+ (0, setStyles_1.default)(ref, $img, {
1073
+ transform: `scale(${scale}) translate(${(window.initTranslateX + movedX) / scale}px, ${(window.initTranslateY + movedY) / scale}px)`,
1074
+ });
1075
+ }
1076
+ }
1077
+ }
1078
+ };
1079
+ // Bug fix: original used bare `clientX`, `clientY`, `initTranslateX`, `initTranslateY`
1080
+ // (undefined references). Correctly prefixed with `window.` here.
1081
+ $imgTouch.onmousemove = (e) => {
1082
+ window.clientX = e.clientX;
1083
+ window.clientY = e.clientY;
1084
+ if (!ref.isZoomed) {
1085
+ if ($imgList.classList.contains('gs-zoom-listisdragging')) {
1086
+ const movedX = window.clientX - window.initListX;
1087
+ const newTranslateX = window.initListTranslateX + movedX;
1088
+ $imgList.style.transform = `translateX(${newTranslateX}px)`;
1089
+ $imgList.dataset.moved = String(movedX);
1090
+ }
1091
+ }
1092
+ else if ($imgList.dataset.moved === undefined ||
1093
+ $imgList.dataset.moved === '0') {
1094
+ if ($img.classList.contains('gs-zoom-isdragging')) {
1095
+ const movedY = window.clientY - window.initY;
1096
+ const movedX = window.clientX - window.initX;
1097
+ $img.dataset.translatex = String(window.initTranslateX + movedX);
1098
+ $img.dataset.translatey = String(window.initTranslateY + movedY);
1099
+ const scale = $img.dataset.scale !== undefined ? parseFloat($img.dataset.scale) : 1;
1100
+ (0, setStyles_1.default)(ref, $img, {
1101
+ transform: `scale(${scale}) translate(${(window.initTranslateX + movedX) / scale}px, ${(window.initTranslateY + movedY) / scale}px)`,
1102
+ });
1103
+ }
1104
+ }
1105
+ };
1106
+ const onDragEnd = () => {
1107
+ if ($img.classList.contains('gs-zoom-isdragging') &&
1108
+ ($imgList.dataset.moved === undefined || $imgList.dataset.moved === '0')) {
1109
+ if ($img.dataset.tempscale !== undefined) {
1110
+ $img.dataset.scale = $img.dataset.tempscale;
1111
+ $img.removeAttribute('data-tempscale');
1112
+ }
1113
+ (0, initAdjust_1.default)(ref, $container, $img);
1114
+ (0, initAutoplay_1.resumeAutoplay)(ref);
1115
+ $imgList.classList.remove('gs-zoom-listisdragging');
1116
+ }
1117
+ else if ($imgList.classList.contains('gs-zoom-listisdragging')) {
1118
+ $imgList.classList.remove('gs-zoom-listisdragging');
1119
+ if (+($imgList.dataset.moved ?? 0) < 0) {
1120
+ (0, initChange_1.default)(ref, Math.min(ref.currentIndex + 1, ref.list.length - 1));
1121
+ }
1122
+ else if (+($imgList.dataset.moved ?? 0) > 0) {
1123
+ (0, initChange_1.default)(ref, Math.max(ref.currentIndex - 1, 0));
1124
+ }
1125
+ else {
1126
+ (0, initAutoplay_1.resumeAutoplay)(ref);
1127
+ }
1128
+ $imgList.dataset.moved = '0';
1129
+ }
1130
+ document.querySelector('html').classList.remove('gs-disable-apple-touchzoom');
1131
+ };
1132
+ $imgTouch.onmouseleave = onDragEnd;
1133
+ $imgTouch.onmouseup = onDragEnd;
1134
+ $imgTouch.ontouchend = onDragEnd;
1135
+ };
1136
+ exports["default"] = initDraggle;
1137
+
1138
+
1139
+ /***/ },
1140
+
1141
+ /***/ 37
1142
+ (__unused_webpack_module, exports, __webpack_require__) {
1143
+
1144
+
1145
+ var __importDefault = (this && this.__importDefault) || function (mod) {
1146
+ return (mod && mod.__esModule) ? mod : { "default": mod };
1147
+ };
1148
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1149
+ const icons_1 = __importDefault(__webpack_require__(109));
1150
+ const initDrawItem_1 = __importDefault(__webpack_require__(538));
1151
+ const initDraw = (ref) => {
1152
+ const list = ref.list;
1153
+ const params = ref.currentParams;
1154
+ const $body = document.querySelector('body');
1155
+ const $container = document.createElement('div');
1156
+ const $header = document.createElement('div');
1157
+ const $imgList = document.createElement('div');
1158
+ $container.classList.add('gs-zoom-container');
1159
+ $imgList.classList.add('gs-zoom-img-list');
1160
+ $header.classList.add('gs-zoom-header');
1161
+ $container.append($imgList);
1162
+ $container.prepend($header);
1163
+ $body.append($container);
1164
+ ref.$container = $container;
1165
+ ref.$imgList = $imgList;
1166
+ let drawed = 0;
1167
+ list.forEach((_, index) => {
1168
+ if (index <= ref.currentIndex + 1 && index >= ref.currentIndex - 1) {
1169
+ drawed++;
1170
+ const $mainImg = document.createElement('div');
1171
+ $mainImg.classList.add('gs-zoom-main-img');
1172
+ $mainImg.dataset.index = String(index);
1173
+ $imgList.append($mainImg);
1174
+ (0, initDrawItem_1.default)(ref, index);
1175
+ }
1176
+ });
1177
+ if (drawed === 1) {
1178
+ $imgList.style.transform = 'translate(0%)';
1179
+ }
1180
+ else if (drawed === 2) {
1181
+ $imgList.style.transform =
1182
+ ref.currentIndex === 0 ? 'translate(0%)' : 'translate(-50%)';
1183
+ }
1184
+ else {
1185
+ $imgList.style.transform = 'translate(-33.3333%)';
1186
+ }
1187
+ // Actions bar
1188
+ const $actions = document.createElement('div');
1189
+ $actions.classList.add('gs-zoom-actions');
1190
+ $header.append($actions);
1191
+ if (params.showAdditionals && list.length > 1) {
1192
+ const $btnAdditionals = document.createElement('button');
1193
+ $btnAdditionals.classList.add('gs-zoom-btn-toggleadditionals', 'gs-zoom-action');
1194
+ $btnAdditionals.innerHTML = icons_1.default.toggleadditionals;
1195
+ $actions.append($btnAdditionals);
1196
+ ref.$btnAdditionals = $btnAdditionals;
1197
+ }
1198
+ const $btnZoomIn = document.createElement('button');
1199
+ $btnZoomIn.classList.add('gs-zoom-btn-in', 'gs-zoom-action');
1200
+ $btnZoomIn.innerHTML = icons_1.default.zoomIn;
1201
+ $actions.append($btnZoomIn);
1202
+ ref.$btnZoomIn = $btnZoomIn;
1203
+ const $btnZoomOut = document.createElement('button');
1204
+ $btnZoomOut.classList.add('gs-zoom-btn-out', 'gs-zoom-action');
1205
+ $btnZoomOut.innerHTML = icons_1.default.zoomOut;
1206
+ $actions.append($btnZoomOut);
1207
+ ref.$btnZoomOut = $btnZoomOut;
1208
+ if (list.length > 1) {
1209
+ const $btnAutoplay = document.createElement('button');
1210
+ $btnAutoplay.classList.add('gs-zoom-btn-autoplay', 'gs-zoom-action');
1211
+ $btnAutoplay.innerHTML = icons_1.default.autoplay;
1212
+ $actions.append($btnAutoplay);
1213
+ ref.$btnAutoplay = $btnAutoplay;
1214
+ }
1215
+ const $btnClose = document.createElement('button');
1216
+ $btnClose.classList.add('gs-zoom-btn-close', 'gs-zoom-action');
1217
+ $btnClose.innerHTML = icons_1.default.close;
1218
+ $actions.append($btnClose);
1219
+ ref.$btnClose = $btnClose;
1220
+ };
1221
+ exports["default"] = initDraw;
1222
+
1223
+
1224
+ /***/ },
1225
+
1226
+ /***/ 538
1227
+ (__unused_webpack_module, exports, __webpack_require__) {
1228
+
1229
+
1230
+ var __importDefault = (this && this.__importDefault) || function (mod) {
1231
+ return (mod && mod.__esModule) ? mod : { "default": mod };
1232
+ };
1233
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1234
+ const initDraggle_1 = __importDefault(__webpack_require__(343));
1235
+ const initWheel_1 = __importDefault(__webpack_require__(504));
1236
+ const initDrawItem = (ref, index) => {
1237
+ const params = ref.currentParams;
1238
+ const $imgList = ref.$imgList;
1239
+ const $mainImg = $imgList.querySelector(`.gs-zoom-main-img[data-index='${index}']`);
1240
+ $mainImg.innerHTML = '';
1241
+ const $imgTouch = document.createElement('div');
1242
+ const $imgloading = document.createElement('div');
1243
+ const $img = document.createElement('img');
1244
+ const item = ref.list[index];
1245
+ $imgloading.classList.add('gz-zoom-loading-container');
1246
+ $img.src = item.src.split('?')[0] + params.mainImageQueryParameters;
1247
+ $img.classList.add('gs-zoom-img');
1248
+ $img.dataset.scale = '1';
1249
+ $img.dataset.translatex = '0';
1250
+ $img.dataset.translatey = '0';
1251
+ $imgTouch.classList.add('gs-zoom-img-touch');
1252
+ $img.onload = () => {
1253
+ $mainImg.classList.remove('gz-zoom-is-loading');
1254
+ };
1255
+ $mainImg.classList.add('gz-zoom-is-loading');
1256
+ $mainImg.append($img);
1257
+ $imgloading.innerHTML = params.imgLoading;
1258
+ $mainImg.append($imgloading);
1259
+ $mainImg.append($imgTouch);
1260
+ // Title / subtitle / description — sourced from data attributes on the original img element
1261
+ if ((item.dataset.gstitle?.trim().length ?? 0) > 0 ||
1262
+ (item.dataset.gssubtitle?.trim().length ?? 0) > 0 ||
1263
+ (item.dataset.gsdescription?.trim().length ?? 0) > 0) {
1264
+ const $txtarea = document.createElement('div');
1265
+ $txtarea.classList.add('gs-zoom-hide-inzoomed');
1266
+ $txtarea.classList.add('gs-zoom-info-data');
1267
+ if ((item.dataset.gstitle?.trim().length ?? 0) > 0) {
1268
+ const $title = document.createElement('div');
1269
+ $title.classList.add('gs-zoom-info-title');
1270
+ $title.innerHTML = item.dataset.gstitle;
1271
+ $txtarea.append($title);
1272
+ }
1273
+ if ((item.dataset.gssubtitle?.trim().length ?? 0) > 0) {
1274
+ const $subtitle = document.createElement('div');
1275
+ $subtitle.classList.add('gs-zoom-info-subtitle');
1276
+ $subtitle.innerHTML = item.dataset.gssubtitle;
1277
+ $txtarea.append($subtitle);
1278
+ }
1279
+ if ((item.dataset.gsdescription?.trim().length ?? 0) > 0) {
1280
+ const $description = document.createElement('div');
1281
+ $description.classList.add('gs-zoom-info-description');
1282
+ $description.innerHTML = item.dataset.gsdescription;
1283
+ $txtarea.append($description);
1284
+ }
1285
+ $mainImg.append($txtarea);
1286
+ }
1287
+ if (index === ref.currentIndex) {
1288
+ ref.$mainImg = $mainImg;
1289
+ ref.$imgTouch = $imgTouch;
1290
+ ref.$img = $img;
1291
+ }
1292
+ (0, initWheel_1.default)(ref, index);
1293
+ (0, initDraggle_1.default)(ref, index);
1294
+ };
1295
+ exports["default"] = initDrawItem;
1296
+
1297
+
1298
+ /***/ },
1299
+
1300
+ /***/ 294
1301
+ (__unused_webpack_module, exports, __webpack_require__) {
1302
+
1303
+
1304
+ var __importDefault = (this && this.__importDefault) || function (mod) {
1305
+ return (mod && mod.__esModule) ? mod : { "default": mod };
1306
+ };
1307
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1308
+ exports.exitFullScreen = exports.initFullScreen = void 0;
1309
+ const general_1 = __webpack_require__(577);
1310
+ const initClose_1 = __importDefault(__webpack_require__(87));
1311
+ const initFullScreen = (ref) => {
1312
+ const $html = document.querySelector('html');
1313
+ if (!ref.currentParams.disableFullScreen) {
1314
+ if ($html.requestFullscreen) {
1315
+ $html.requestFullscreen();
1316
+ }
1317
+ else if ($html.webkitRequestFullscreen) {
1318
+ $html.webkitRequestFullscreen();
1319
+ }
1320
+ else if ($html.msRequestFullscreen) {
1321
+ $html.msRequestFullscreen();
1322
+ }
1323
+ }
1324
+ document.removeEventListener('fullscreenchange', general_1.fullscreenchange);
1325
+ document.addEventListener('fullscreenchange', general_1.fullscreenchange);
1326
+ };
1327
+ exports.initFullScreen = initFullScreen;
1328
+ const exitFullScreen = () => {
1329
+ const doc = document;
1330
+ if (doc.exitFullscreen) {
1331
+ doc.exitFullscreen();
1332
+ }
1333
+ else if (doc.webkitExitFullscreen) {
1334
+ doc.webkitExitFullscreen();
1335
+ }
1336
+ else if (doc.msExitFullscreen) {
1337
+ doc.msExitFullscreen();
1338
+ }
1339
+ (0, initClose_1.default)();
1340
+ };
1341
+ exports.exitFullScreen = exitFullScreen;
1342
+
1343
+
1344
+ /***/ },
1345
+
1346
+ /***/ 786
1347
+ (__unused_webpack_module, exports, __webpack_require__) {
1348
+
1349
+
1350
+ var __importDefault = (this && this.__importDefault) || function (mod) {
1351
+ return (mod && mod.__esModule) ? mod : { "default": mod };
1352
+ };
1353
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1354
+ const initOpen_1 = __importDefault(__webpack_require__(715));
1355
+ const initLightBox = (ref) => {
1356
+ ref.list.forEach((item, index) => {
1357
+ item.dataset.index = String(index);
1358
+ item.addEventListener('click', () => {
1359
+ (0, initOpen_1.default)(ref, index);
1360
+ });
1361
+ });
1362
+ };
1363
+ exports["default"] = initLightBox;
1364
+
1365
+
1366
+ /***/ },
1367
+
1368
+ /***/ 79
1369
+ (__unused_webpack_module, exports) {
1370
+
1371
+
1372
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1373
+ const initMagnifier = (ref, images) => {
1374
+ const params = ref.currentParams.magnifier;
1375
+ const targets = images ?? ref.list;
1376
+ targets.forEach((item) => {
1377
+ item.classList.add('gs-zoom-magnifier-instance');
1378
+ item.onmouseenter = (e) => {
1379
+ const $magnifier = document.createElement('div');
1380
+ $magnifier.dataset.type = params.form;
1381
+ const $img = document.createElement('img');
1382
+ $img.src = item.dataset.gszoomsrc ?? item.src;
1383
+ $img.width = item.clientWidth;
1384
+ $img.height = item.clientHeight;
1385
+ $img.style.objectFit = window.getComputedStyle(item).getPropertyValue('object-fit');
1386
+ $img.style.transform = `scale(${params.zoom})`;
1387
+ $magnifier.classList.add('gs-zoom-magnifier');
1388
+ $magnifier.append($img);
1389
+ $magnifier.style.width = `${params.size}px`;
1390
+ $magnifier.style.top = `${e.clientY - params.size / 2}px`;
1391
+ $magnifier.style.left = `${e.clientX - params.size / 2}px`;
1392
+ ref.$magnifier = $magnifier;
1393
+ ref.$img = $img;
1394
+ document.querySelector('body').append($magnifier);
1395
+ };
1396
+ item.onmousemove = (e) => {
1397
+ const $img = ref.$img;
1398
+ const imgRect = item.getBoundingClientRect();
1399
+ const distanceFromTop = e.clientY - imgRect.top;
1400
+ const distanceFromLeft = e.clientX - imgRect.left;
1401
+ const $magnifier = ref.$magnifier;
1402
+ $magnifier.style.top = `${e.clientY - params.size / 2}px`;
1403
+ $magnifier.style.left = `${e.clientX - params.size / 2}px`;
1404
+ $img.style.top = `${params.size / 2 - distanceFromTop * params.zoom}px`;
1405
+ $img.style.left = `${params.size / 2 - distanceFromLeft * params.zoom}px`;
1406
+ $img.style.transform = `scale(${params.zoom})`;
1407
+ };
1408
+ item.onmouseleave = () => {
1409
+ ref.$magnifier?.remove();
1410
+ };
1411
+ });
1412
+ };
1413
+ exports["default"] = initMagnifier;
1414
+
1415
+
1416
+ /***/ },
1417
+
1418
+ /***/ 548
1419
+ (__unused_webpack_module, exports, __webpack_require__) {
1420
+
1421
+
1422
+ var __importDefault = (this && this.__importDefault) || function (mod) {
1423
+ return (mod && mod.__esModule) ? mod : { "default": mod };
1424
+ };
1425
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1426
+ const initChange_1 = __importDefault(__webpack_require__(719));
1427
+ const initNavigateWithKeys = (ref) => {
1428
+ const params = ref.currentParams;
1429
+ if (params.navigateWithKeys && ref.list.length > 1) {
1430
+ document.onkeyup = (e) => {
1431
+ if (e.key === 'ArrowRight') {
1432
+ const newIndex = ref.currentIndex < ref.list.length - 1 ? ref.currentIndex + 1 : 0;
1433
+ (0, initChange_1.default)(ref, newIndex);
1434
+ }
1435
+ else if (e.key === 'ArrowLeft') {
1436
+ const newIndex = ref.currentIndex === 0 ? ref.list.length - 1 : ref.currentIndex - 1;
1437
+ (0, initChange_1.default)(ref, newIndex);
1438
+ }
1439
+ };
1440
+ }
1441
+ };
1442
+ exports["default"] = initNavigateWithKeys;
1443
+
1444
+
1445
+ /***/ },
1446
+
1447
+ /***/ 715
1448
+ (__unused_webpack_module, exports, __webpack_require__) {
1449
+
1450
+
1451
+ var __importDefault = (this && this.__importDefault) || function (mod) {
1452
+ return (mod && mod.__esModule) ? mod : { "default": mod };
1453
+ };
1454
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1455
+ const initActionEvents_1 = __importDefault(__webpack_require__(832));
1456
+ const initAdditionals_1 = __importDefault(__webpack_require__(5));
1457
+ const initArrows_1 = __importDefault(__webpack_require__(21));
1458
+ const initDraggle_1 = __importDefault(__webpack_require__(343));
1459
+ const initDraw_1 = __importDefault(__webpack_require__(37));
1460
+ const initFullScreen_1 = __webpack_require__(294);
1461
+ const initNavigateWithKeys_1 = __importDefault(__webpack_require__(548));
1462
+ const initOpen = (ref, index) => {
1463
+ window.GSZoomConfigue.openedZoom = ref.currentParams.reference;
1464
+ if (typeof ref.currentParams.beforeLightBoxOpen === 'function') {
1465
+ ref.currentParams.beforeLightBoxOpen();
1466
+ }
1467
+ ref.currentIndex = index;
1468
+ document.querySelector('html').classList.add('gs-zoom-opened');
1469
+ (0, initDraw_1.default)(ref);
1470
+ (0, initAdditionals_1.default)(ref);
1471
+ (0, initFullScreen_1.initFullScreen)(ref);
1472
+ (0, initNavigateWithKeys_1.default)(ref);
1473
+ (0, initArrows_1.default)(ref);
1474
+ (0, initActionEvents_1.default)(ref);
1475
+ if (typeof ref.currentParams.afterLightBoxOpen === 'function') {
1476
+ ref.currentParams.afterLightBoxOpen();
1477
+ }
1478
+ (0, initDraggle_1.default)(ref, index);
1479
+ };
1480
+ exports["default"] = initOpen;
1481
+
1482
+
1483
+ /***/ },
1484
+
1485
+ /***/ 504
1486
+ (__unused_webpack_module, exports, __webpack_require__) {
1487
+
1488
+
1489
+ var __importDefault = (this && this.__importDefault) || function (mod) {
1490
+ return (mod && mod.__esModule) ? mod : { "default": mod };
1491
+ };
1492
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1493
+ const getTranslateCoordToPoint_1 = __importDefault(__webpack_require__(461));
1494
+ const initAdjust_1 = __importDefault(__webpack_require__(112));
1495
+ const setStyles_1 = __importDefault(__webpack_require__(835));
1496
+ const initWheel = (ref, index) => {
1497
+ const params = ref.currentParams;
1498
+ const $container = ref.$container;
1499
+ const item = ref.$imgList.querySelector(`.gs-zoom-main-img[data-index='${index}']`);
1500
+ if (item != null && params.zoomOnWheel) {
1501
+ item.addEventListener('wheel', function (e) {
1502
+ const $img = this.querySelector('.gs-zoom-img');
1503
+ const scale = $img.dataset.scale !== undefined ? parseFloat($img.dataset.scale) : 1;
1504
+ const newScale = e.deltaY < 0 && scale < params.maxZoom
1505
+ ? Math.min(scale + 0.1, params.maxZoom)
1506
+ : e.deltaY > 0 && scale > 1
1507
+ ? Math.max(1, scale - 0.1)
1508
+ : scale;
1509
+ const [newTranslatex, newTranslatey] = (0, getTranslateCoordToPoint_1.default)($img, $container, scale, newScale, e.clientX, e.clientY);
1510
+ $img.dataset.scale = String(newScale);
1511
+ (0, setStyles_1.default)(ref, $img, {
1512
+ transform: `scale(${newScale}) translate(${newTranslatex / newScale}px, ${newTranslatey / newScale}px)`,
1513
+ });
1514
+ (0, initAdjust_1.default)(ref, $container, $img, false);
1515
+ });
1516
+ }
1517
+ };
1518
+ exports["default"] = initWheel;
1519
+
1520
+
1521
+ /***/ },
1522
+
1523
+ /***/ 835
1524
+ (__unused_webpack_module, exports, __webpack_require__) {
1525
+
1526
+
1527
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1528
+ const initAutoplay_1 = __webpack_require__(466);
1529
+ const setStyles = (ref, $img, styles) => {
1530
+ const $container = ref.$container;
1531
+ for (const style in styles) {
1532
+ $img.style[style] = styles[style];
1533
+ }
1534
+ const scale = $img.dataset.tempscale !== undefined
1535
+ ? $img.dataset.tempscale
1536
+ : $img.dataset.scale;
1537
+ if (scale === undefined || parseFloat(scale) === 1) {
1538
+ $container.classList.remove('gs-zoom-is-zoomed');
1539
+ ref.isZoomed = false;
1540
+ }
1541
+ else {
1542
+ $container.classList.add('gs-zoom-is-zoomed');
1543
+ ref.isZoomed = true;
1544
+ if (ref.autoplay !== undefined) {
1545
+ (0, initAutoplay_1.stopAutoplay)(ref);
1546
+ }
1547
+ }
1548
+ };
1549
+ exports["default"] = setStyles;
1550
+
1551
+
1552
+ /***/ },
1553
+
1554
+ /***/ 636
1555
+ (__unused_webpack_module, exports, __webpack_require__) {
1556
+
1557
+
1558
+ var __importDefault = (this && this.__importDefault) || function (mod) {
1559
+ return (mod && mod.__esModule) ? mod : { "default": mod };
1560
+ };
1561
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1562
+ const types_1 = __importDefault(__webpack_require__(178));
1563
+ const defaultParams = {
1564
+ reference: '',
1565
+ arrows: true,
1566
+ navigateWithKeys: true,
1567
+ showAdditionals: true,
1568
+ zoomOnWheel: true,
1569
+ maxZoom: 5,
1570
+ type: types_1.default.lightbox,
1571
+ mainImageQueryParameters: '',
1572
+ additionalImageQueryParameters: '',
1573
+ disableFullScreen: false,
1574
+ imgLoading: '',
1575
+ autoplaySpeed: 5000,
1576
+ responsive: [],
1577
+ };
1578
+ exports["default"] = Object.freeze(defaultParams);
1579
+
1580
+
1581
+ /***/ },
1582
+
1583
+ /***/ 109
1584
+ (__unused_webpack_module, exports) {
1585
+
1586
+
1587
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1588
+ const icons = {
1589
+ // zoomIn: '<svg width="20px" height="20px" viewBox="0 -0.5 21 21" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Dribbble-Light-Preview" class="btn-icon btn-icon-plus" transform="translate(-379.000000, -240.000000)" fill="none"><g id="icons" transform="translate(56.000000, 160.000000)"><polygon id="plus-[#1512]" points="344 89 344 91 334.55 91 334.55 100 332.45 100 332.45 91 323 91 323 89 332.45 89 332.45 80 334.55 80 334.55 89"></polygon></g></g></g></svg>',
1590
+ loading: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 150"><path fill="none" stroke="#000000" stroke-width="15" stroke-linecap="round" stroke-dasharray="300 385" stroke-dashoffset="0" d="M275 75c0 31-27 50-50 50-58 0-92-100-150-100-28 0-50 22-50 50s23 50 50 50c58 0 92-100 150-100 24 0 50 19 50 50Z"><animate attributeName="stroke-dashoffset" calcMode="spline" dur="2" values="685;-685" keySplines="0 0 1 1" repeatCount="indefinite"></animate></path></svg>',
1591
+ zoomIn: '<svg width="20px" height="20px" viewBox="0 0 30 30"><path class="fslightbox-svg-path" d="M 13 3 C 7.4889971 3 3 7.4889971 3 13 C 3 18.511003 7.4889971 23 13 23 C 15.396508 23 17.597385 22.148986 19.322266 20.736328 L 25.292969 26.707031 A 1.0001 1.0001 0 1 0 26.707031 25.292969 L 20.736328 19.322266 C 22.148986 17.597385 23 15.396508 23 13 C 23 7.4889971 18.511003 3 13 3 z M 13 5 C 17.430123 5 21 8.5698774 21 13 C 21 17.430123 17.430123 21 13 21 C 8.5698774 21 5 17.430123 5 13 C 5 8.5698774 8.5698774 5 13 5 z M 12.984375 7.9863281 A 1.0001 1.0001 0 0 0 12 9 L 12 12 L 9 12 A 1.0001 1.0001 0 1 0 9 14 L 12 14 L 12 17 A 1.0001 1.0001 0 1 0 14 17 L 14 14 L 17 14 A 1.0001 1.0001 0 1 0 17 12 L 14 12 L 14 9 A 1.0001 1.0001 0 0 0 12.984375 7.9863281 z"></path></svg>',
1592
+ //zoomOut: '<svg width="20px" height="20px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path class="btn-icon btn-icon-minus" d="M2 12C2 11.4477 2.44772 11 3 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H3C2.44772 13 2 12.5523 2 12Z" fill="none"></path></svg>',
1593
+ zoomOut: '<svg width="20px" height="20px" viewBox="0 0 30 30"><path class="fslightbox-svg-path" d="M 13 3 C 7.4889971 3 3 7.4889971 3 13 C 3 18.511003 7.4889971 23 13 23 C 15.396508 23 17.597385 22.148986 19.322266 20.736328 L 25.292969 26.707031 A 1.0001 1.0001 0 1 0 26.707031 25.292969 L 20.736328 19.322266 C 22.148986 17.597385 23 15.396508 23 13 C 23 7.4889971 18.511003 3 13 3 z M 13 5 C 17.430123 5 21 8.5698774 21 13 C 21 17.430123 17.430123 21 13 21 C 8.5698774 21 5 17.430123 5 13 C 5 8.5698774 8.5698774 5 13 5 z M 9 12 A 1.0001 1.0001 0 1 0 9 14 L 17 14 A 1.0001 1.0001 0 1 0 17 12 L 9 12 z"></path></svg>',
1594
+ //close: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20px" height="20px" viewBox="0 -0.5 21 21" version="1.1"><g fill="none" fill-rule="evenodd"><g transform="translate(-419.000000, -240.000000)" class="btn-icon btn-icon-close"><g transform="translate(56.000000, 160.000000)"><polygon points="375.0183 90 384 98.554 382.48065 100 373.5 91.446 364.5183 100 363 98.554 371.98065 90 363 81.446 364.5183 80 373.5 88.554 382.48065 80 384 81.446"></polygon></g></g></g></svg>',
1595
+ close: '<svg width="20px" height="20px" viewBox="0 0 24 24"><path class="fslightbox-svg-path" d="M 4.7070312 3.2929688 L 3.2929688 4.7070312 L 10.585938 12 L 3.2929688 19.292969 L 4.7070312 20.707031 L 12 13.414062 L 19.292969 20.707031 L 20.707031 19.292969 L 13.414062 12 L 20.707031 4.7070312 L 19.292969 3.2929688 L 12 10.585938 L 4.7070312 3.2929688 z"></path></svg>',
1596
+ autoplay: '<svg width="16px" height="16px" viewBox="0 0 30 30"><path class="fslightbox-svg-path" d="M 6 3 A 1 1 0 0 0 5 4 A 1 1 0 0 0 5 4.0039062 L 5 15 L 5 25.996094 A 1 1 0 0 0 5 26 A 1 1 0 0 0 6 27 A 1 1 0 0 0 6.5800781 26.8125 L 6.5820312 26.814453 L 26.416016 15.908203 A 1 1 0 0 0 27 15 A 1 1 0 0 0 26.388672 14.078125 L 6.5820312 3.1855469 L 6.5800781 3.1855469 A 1 1 0 0 0 6 3 z"></path></svg>',
1597
+ autoplayPause: '<svg width="14px" height="14px" viewBox="0 0 356.19 356.19"><path class="fslightbox-svg-path" d="M121,0c18,0,33,15,33,33v372c0,18-15,33-33,33s-32-15-32-33V33C89,15,103,0,121,0zM317,0c18,0,32,15,32,33v372c0,18-14,33-32,33s-33-15-33-33V33C284,15,299,0,317,0z"></path></svg>',
1598
+ arrPrev: '<svg width="20px" height="20px" viewBox="0 0 20 20"><path class="fslightbox-svg-path" d="M18.271,9.212H3.615l4.184-4.184c0.306-0.306,0.306-0.801,0-1.107c-0.306-0.306-0.801-0.306-1.107,0L1.21,9.403C1.194,9.417,1.174,9.421,1.158,9.437c-0.181,0.181-0.242,0.425-0.209,0.66c0.005,0.038,0.012,0.071,0.022,0.109c0.028,0.098,0.075,0.188,0.142,0.271c0.021,0.026,0.021,0.061,0.045,0.085c0.015,0.016,0.034,0.02,0.05,0.033l5.484,5.483c0.306,0.307,0.801,0.307,1.107,0c0.306-0.305,0.306-0.801,0-1.105l-4.184-4.185h14.656c0.436,0,0.788-0.353,0.788-0.788S18.707,9.212,18.271,9.212z"></path></svg>',
1599
+ arrNext: '<svg width="20px" height="20px" viewBox="0 0 20 20"><path class="fslightbox-svg-path" d="M1.729,9.212h14.656l-4.184-4.184c-0.307-0.306-0.307-0.801,0-1.107c0.305-0.306,0.801-0.306,1.106,0l5.481,5.482c0.018,0.014,0.037,0.019,0.053,0.034c0.181,0.181,0.242,0.425,0.209,0.66c-0.004,0.038-0.012,0.071-0.021,0.109c-0.028,0.098-0.075,0.188-0.143,0.271c-0.021,0.026-0.021,0.061-0.045,0.085c-0.015,0.016-0.034,0.02-0.051,0.033l-5.483,5.483c-0.306,0.307-0.802,0.307-1.106,0c-0.307-0.305-0.307-0.801,0-1.105l4.184-4.185H1.729c-0.436,0-0.788-0.353-0.788-0.788S1.293,9.212,1.729,9.212z"></path></svg>',
1600
+ toggleadditionals: '<svg width="17px" height="17px" viewBox="0 0 22 22"><path class="fslightbox-svg-path" d="M 3 2 C 2.448 2 2 2.448 2 3 L 2 6 C 2 6.552 2.448 7 3 7 L 6 7 C 6.552 7 7 6.552 7 6 L 7 3 C 7 2.448 6.552 2 6 2 L 3 2 z M 10 2 C 9.448 2 9 2.448 9 3 L 9 6 C 9 6.552 9.448 7 10 7 L 13 7 C 13.552 7 14 6.552 14 6 L 14 3 C 14 2.448 13.552 2 13 2 L 10 2 z M 17 2 C 16.448 2 16 2.448 16 3 L 16 6 C 16 6.552 16.448 7 17 7 L 20 7 C 20.552 7 21 6.552 21 6 L 21 3 C 21 2.448 20.552 2 20 2 L 17 2 z M 3 9 C 2.448 9 2 9.448 2 10 L 2 13 C 2 13.552 2.448 14 3 14 L 6 14 C 6.552 14 7 13.552 7 13 L 7 10 C 7 9.448 6.552 9 6 9 L 3 9 z M 10 9 C 9.448 9 9 9.448 9 10 L 9 13 C 9 13.552 9.448 14 10 14 L 13 14 C 13.552 14 14 13.552 14 13 L 14 10 C 14 9.448 13.552 9 13 9 L 10 9 z M 17 9 C 16.448 9 16 9.448 16 10 L 16 13 C 16 13.552 16.448 14 17 14 L 20 14 C 20.552 14 21 13.552 21 13 L 21 10 C 21 9.448 20.552 9 20 9 L 17 9 z M 3 16 C 2.448 16 2 16.448 2 17 L 2 20 C 2 20.552 2.448 21 3 21 L 6 21 C 6.552 21 7 20.552 7 20 L 7 17 C 7 16.448 6.552 16 6 16 L 3 16 z M 10 16 C 9.448 16 9 16.448 9 17 L 9 20 C 9 20.552 9.448 21 10 21 L 13 21 C 13.552 21 14 20.552 14 20 L 14 17 C 14 16.448 13.552 16 13 16 L 10 16 z M 17 16 C 16.448 16 16 16.448 16 17 L 16 20 C 16 20.552 16.448 21 17 21 L 20 21 C 20.552 21 21 20.552 21 20 L 21 17 C 21 16.448 20.552 16 20 16 L 17 16 z"></path></svg>',
1601
+ };
1602
+ exports["default"] = Object.freeze(icons);
1603
+
1604
+
1605
+ /***/ },
1606
+
1607
+ /***/ 857
1608
+ (__unused_webpack_module, exports) {
1609
+
1610
+
1611
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1612
+ const magnifierDefaultProps = {
1613
+ zoom: 3,
1614
+ form: 'circle',
1615
+ size: 150,
1616
+ };
1617
+ exports["default"] = Object.freeze(magnifierDefaultProps);
1618
+
1619
+
1620
+ /***/ },
1621
+
1622
+ /***/ 178
1623
+ (__unused_webpack_module, exports) {
1624
+
1625
+
1626
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1627
+ const types = {
1628
+ lightbox: 'lightbox',
1629
+ magnifier: 'magnifier',
1630
+ };
1631
+ exports["default"] = Object.freeze(types);
1632
+
1633
+
1634
+ /***/ },
1635
+
1636
+ /***/ 432
1637
+ (__unused_webpack_module, exports) {
1638
+
1639
+
1640
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1641
+ exports.NewGuid = void 0;
1642
+ const NewGuid = () => {
1643
+ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
1644
+ const r = (Math.random() * 16) | 0;
1645
+ const v = c === 'x' ? r : (r & 0x3) | 0x8;
1646
+ return v.toString(16);
1647
+ });
1648
+ };
1649
+ exports.NewGuid = NewGuid;
1650
+
1651
+
1652
+ /***/ }
1653
+
1654
+ /******/ });
1655
+ /************************************************************************/
1656
+ /******/ // The module cache
1657
+ /******/ var __webpack_module_cache__ = {};
1658
+ /******/
1659
+ /******/ // The require function
1660
+ /******/ function __webpack_require__(moduleId) {
1661
+ /******/ // Check if module is in cache
1662
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
1663
+ /******/ if (cachedModule !== undefined) {
1664
+ /******/ return cachedModule.exports;
1665
+ /******/ }
1666
+ /******/ // Create a new module (and put it into the cache)
1667
+ /******/ var module = __webpack_module_cache__[moduleId] = {
1668
+ /******/ // no module.id needed
1669
+ /******/ // no module.loaded needed
1670
+ /******/ exports: {}
1671
+ /******/ };
1672
+ /******/
1673
+ /******/ // Execute the module function
1674
+ /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
1675
+ /******/
1676
+ /******/ // Return the exports of the module
1677
+ /******/ return module.exports;
1678
+ /******/ }
1679
+ /******/
1680
+ /************************************************************************/
1681
+ /******/
1682
+ /******/ // startup
1683
+ /******/ // Load entry module and return exports
1684
+ /******/ // This entry module is referenced by other modules so it can't be inlined
1685
+ /******/ var __webpack_exports__ = __webpack_require__(660);
1686
+ /******/ window.GSZoom = __webpack_exports__["default"];
1687
+ /******/
1688
+ /******/ })()
1689
+ ;