PageSourceSearch

https://www.bosch-industrial-am.com/media/formnext/threesixty/threesixty.js

js bosch-industrial-am.com collected 2026-10-07 03:04:06 UTC 14,938 bytes, 565 lines download raw bytes

1!(function (t, e) {
2	'object' == typeof exports && 'object' == typeof module
3		? (module.exports = e())
4		: 'function' == typeof define && define.amd
5		? define([], e)
6		: 'object' == typeof exports
7		? (exports.ThreeSixty = e())
8		: (t.ThreeSixty = e())
9})(self, () =>
10	(() => {
11		'use strict'
12		var t = {
13				d: (e, n) => {
14					for (var i in n)
15						t.o(n, i) &&
16							!t.o(e, i) &&
17							Object.defineProperty(e, i, {enumerable: !0, get: n[i]})
18				},
19				o: (t, e) => Object.prototype.hasOwnProperty.call(t, e),
20			},
21			e = {}
22		function n(t) {
23			return (
24				(n =
25					'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
26						? function (t) {
27								return typeof t
28						  }
29						: function (t) {
30								return t &&
31									'function' == typeof Symbol &&
32									t.constructor === Symbol &&
33									t !== Symbol.prototype
34									? 'symbol'
35									: typeof t
36						  }),
37				n(t)
38			)
39		}
40		function i(t, e) {
41			for (var n = 0; n < e.length; n++) {
42				var i = e[n]
43				;(i.enumerable = i.enumerable || !1),
44					(i.configurable = !0),
45					'value' in i && (i.writable = !0),
46					Object.defineProperty(t, o(i.key), i)
47			}
48		}
49		function o(t) {
50			var e = (function (t, e) {
51				if ('object' != n(t) || !t) return t
52				var i = t[Symbol.toPrimitive]
53				if (void 0 !== i) {
54					var o = i.call(t, 'string')
55					if ('object' != n(o)) return o
56					throw new TypeError('@@toPrimitive must return a primitive value.')
57				}
58				return String(t)
59			})(t)
60			return 'symbol' == n(e) ? e : e + ''
61		}
62		function s(t, e, n) {
63			!(function (t, e) {
64				if (e.has(t))
65					throw new TypeError(
66						'Cannot initialize the same private elements twice on an object'
67					)
68			})(t, e),
69				e.set(t, n)
70		}
71		function r(t, e) {
72			return t.get(a(t, e))
73		}
74		function u(t, e, n) {
75			return t.set(a(t, e), n), n
76		}
77		function a(t, e, n) {
78			if ('function' == typeof t ? t === e : t.has(e)) return arguments.length < 3 ? e : n
79			throw new TypeError('Private element is not present on this object')
80		}
81		t.d(e, {default: () => S})
82		var h = new WeakMap(),
83			c = new WeakMap(),
84			p = new WeakMap(),
85			l = (function () {
86				return (
87					(t = function t(e, n) {
88						var i = this
89						!(function (t, e) {
90							if (!(t instanceof e))
91								throw new TypeError('Cannot call a class as a function')
92						})(this, t),
93							s(this, h, null),
94							s(this, c, null),
95							s(this, p, null),
96							u(c, this, n),
97							u(p, this, {
98								container: {
99									mousedown: function (t) {
100										return u(h, i, t.pageX)
101									},
102									touchstart: function (t) {
103										return u(h, i, t.touches[0].clientX)
104									},
105									touchend: function () {
106										return u(h, i, null)
107									},
108								},
109								prev: {
110									mousedown: function (t) {
111										t.preventDefault(), e.play(!0)
112									},
113									mouseup: function (t) {
114										t.preventDefault(), e.stop()
115									},
116									touchstart: function (t) {
117										t.preventDefault(), e.prev()
118									},
119								},
120								next: {
121									mousedown: function (t) {
122										t.preventDefault(), e.play()
123									},
124									mouseup: function (t) {
125										t.preventDefault(), e.stop()
126									},
127									touchstart: function (t) {
128										t.preventDefault(), e.next()
129									},
130								},
131								global: {
132									mouseup: function () {
133										return u(h, i, null)
134									},
135									mousemove: function (t) {
136										r(h, i) &&
137											Math.abs(r(h, i) - t.pageX) > r(c, i).dragTolerance &&
138											(e.stop(),
139											r(h, i) > t.pageX ? e.prev() : e.next(),
140											u(h, i, t.pageX))
141									},
142									touchmove: function (t) {
143										r(h, i) &&
144											Math.abs(r(h, i) - t.touches[0].clientX) >
145												r(c, i).swipeTolerance &&
146											(e.stop(),
147											r(h, i) > t.touches[0].clientX ? e.prev() : e.next(),
148											u(h, i, t.touches[0].clientX))
149									},
150									keydown: function (t) {
151										;[37, 39].includes(t.keyCode) && e.play(37 === t.keyCode)
152									},
153									keyup: function (t) {
154										;[37, 39].includes(t.keyCode) && e.stop()
155									},
156								},
157							}),
158							this._initEvents()
159					}),
160					(e = [
161						{
162							key: 'destroy',
163							value: function () {
164								r(c, this).swipeTarget.removeEventListener(
165									'mousedown',
166									r(p, this).container.mousedown
167								),
168									r(c, this).swipeTarget.removeEventListener(
169										'touchstart',
170										r(p, this).container.touchstart
171									),
172									r(c, this).swipeTarget.removeEventListener(
173										'touchend',
174										r(p, this).container.touchend
175									),
176									window.removeEventListener(
177										'mouseup',
178										r(p, this).global.mouseup
179									),
180									window.removeEventListener(
181										'mousemove',
182										r(p, this).global.mousemove
183									),
184									window.removeEventListener(
185										'touchmove',
186										r(p, this).global.touchmove
187									),
188									window.removeEventListener(
189										'keydown',
190										r(p, this).global.keydown
191									),
192									window.removeEventListener('keyup', r(p, this).global.keyup),
193									r(c, this).prev &&
194										(r(c, this).prev.removeEventListener(
195											'mousedown',
196											r(p, this).prev.mousedown
197										),
198										r(c, this).prev.removeEventListener(
199											'mouseup',
200											r(p, this).prev.mouseup
201										),
202										r(c, this).prev.removeEventListener(
203											'touchstart',
204											r(p, this).prev.touchstart
205										)),
206									r(c, this).next &&
207										(r(c, this).next.removeEventListener(
208											'mousedown',
209											r(p, this).next.mousedown
210										),
211										r(c, this).next.removeEventListener(
212											'mouseup',
213											r(p, this).next.mouseup
214										),
215										r(c, this).next.removeEventListener(
216											'touchstart',
217											r(p, this).next.touchstart
218										))
219							},
220						},
221						{
222							key: '_initEvents',
223							value: function () {
224								r(c, this).draggable &&
225									(r(c, this).swipeTarget.addEventListener(
226										'mousedown',
227										r(p, this).container.mousedown
228									),
229									window.addEventListener('mouseup', r(p, this).global.mouseup),
230									window.addEventListener(
231										'mousemove',
232										r(p, this).global.mousemove
233									)),
234									r(c, this).swipeable &&
235										(r(c, this).swipeTarget.addEventListener(
236											'touchstart',
237											r(p, this).container.touchstart
238										),
239										r(c, this).swipeTarget.addEventListener(
240											'touchend',
241											r(p, this).container.touchend
242										),
243										window.addEventListener(
244											'touchmove',
245											r(p, this).global.touchmove
246										)),
247									r(c, this).keys &&
248										(window.addEventListener(
249											'keydown',
250											r(p, this).global.keydown
251										),
252										window.addEventListener('keyup', r(p, this).global.keyup)),
253									r(c, this).prev &&
254										(r(c, this).prev.addEventListener(
255											'mousedown',
256											r(p, this).prev.mousedown
257										),
258										r(c, this).prev.addEventListener(
259											'mouseup',
260											r(p, this).prev.mouseup
261										),
262										r(c, this).prev.addEventListener(
263											'touchstart',
264											r(p, this).prev.touchstart
265										)),
266									r(c, this).next &&
267										(r(c, this).next.addEventListener(
268											'mousedown',
269											r(p, this).next.mousedown
270										),
271										r(c, this).next.addEventListener(
272											'mouseup',
273											r(p, this).next.mouseup
274										),
275										r(c, this).next.addEventListener(
276											'touchstart',
277											r(p, this).next.touchstart
278										))
279							},
280						},
281					]) && i(t.prototype, e),
282					Object.defineProperty(t, 'prototype', {writable: !1}),
283					t
284				)
285				var t, e
286			})()
287		const v = l
288		function d(t) {
289			return (
290				(d =
291					'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
292						? function (t) {
293								return typeof t
294						  }
295						: function (t) {
296								return t &&
297									'function' == typeof Symbol &&
298									t.constructor === Symbol &&
299									t !== Symbol.prototype
300									? 'symbol'
301									: typeof t
302						  }),
303				d(t)
304			)
305		}
306		function f(t, e) {
307			for (var n = 0; n < e.length; n++) {
308				var i = e[n]
309				;(i.enumerable = i.enumerable || !1),
310					(i.configurable = !0),
311					'value' in i && (i.writable = !0),
312					Object.defineProperty(t, y(i.key), i)
313			}
314		}
315		function y(t) {
316			var e = (function (t, e) {
317				if ('object' != d(t) || !t) return t
318				var n = t[Symbol.toPrimitive]
319				if (void 0 !== n) {
320					var i = n.call(t, 'string')
321					if ('object' != d(i)) return i
322					throw new TypeError('@@toPrimitive must return a primitive value.')
323				}
324				return String(t)
325			})(t)
326			return 'symbol' == d(e) ? e : e + ''
327		}
328		function w(t, e, n) {
329			!(function (t, e) {
330				if (e.has(t))
331					throw new TypeError(
332						'Cannot initialize the same private elements twice on an object'
333					)
334			})(t, e),
335				e.set(t, n)
336		}
337		function m(t, e) {
338			return t.get(b(t, e))
339		}
340		function g(t, e, n) {
341			return t.set(b(t, e), n), n
342		}
343		function b(t, e, n) {
344			if ('function' == typeof t ? t === e : t.has(e)) return arguments.length < 3 ? e : n
345			throw new TypeError('Private element is not present on this object')
346		}
347		var k = new WeakMap(),
348			E = new WeakMap(),
349			L = new WeakMap(),
350			x = new WeakMap(),
351			T = new WeakMap(),
352			j = new WeakMap(),
353			R = new WeakMap()
354		const S = (function () {
355			return (
356				(t = function t(e, n) {
357					!(function (t, e) {
358						if (!(t instanceof e))
359							throw new TypeError('Cannot call a class as a function')
360					})(this, t),
361						w(this, k, null),
362						w(this, E, 0),
363						w(this, L, null),
364						w(this, x, !1),
365						w(this, T, null),
366						w(this, j, null),
367						w(this, R, !1),
368						(this.container = e),
369						g(
370							k,
371							this,
372							Object.assign(
373								{
374									width: 300,
375									height: 300,
376									aspectRatio: 0,
377									count: 0,
378									perRow: 0,
379									speed: 100,
380									dragTolerance: 10,
381									swipeTolerance: 10,
382									draggable: !0,
383									swipeable: !0,
384									keys: !0,
385									inverted: !1,
386								},
387								n
388							)
389						),
390						(m(k, this).swipeTarget = m(k, this).swipeTarget || this.container),
391						g(R, this, !Array.isArray(m(k, this).image)),
392						this.sprite || (m(k, this).count = m(k, this).image.length),
393						Object.freeze(m(k, this)),
394						g(j, this, new v(this, m(k, this))),
395						(this._windowResizeListener = this._windowResizeListener.bind(this)),
396						this._initContainer(),
397						(this.nloops = 0)
398				}),
399				(e = [
400					{
401						key: 'isResponsive',
402						get: function () {
403							return m(k, this).aspectRatio > 0
404						},
405					},
406					{
407						key: 'containerWidth',
408						get: function () {
409							return this.isResponsive ? this.container.clientWidth : m(k, this).width
410						},
411					},
412					{
413						key: 'containerHeight',
414						get: function () {
415							return this.isResponsive
416								? this.container.clientWidth * m(k, this).aspectRatio
417								: m(k, this).height
418						},
419					},
420					{
421						key: 'index',
422						get: function () {
423							return m(E, this)
424						},
425					},
426					{
427						key: 'looping',
428						get: function () {
429							return m(x, this)
430						},
431					},
432					{
433						key: 'sprite',
434						get: function () {
435							return m(R, this)
436						},
437					},
438					{
439						key: 'next',
440						value: function () {
441							this.goto(m(k, this).inverted ? m(E, this) - 1 : m(E, this) + 1)
442						},
443					},
444					{
445						key: 'prev',
446						value: function () {
447							this.goto(m(k, this).inverted ? m(E, this) + 1 : m(E, this) - 1)
448						},
449					},
450					{
451						key: 'goto',
452						value: function (t) {
453							g(E, this, (m(k, this).count + t) % m(k, this).count), this._update()
454						},
455					},
456					{
457						key: 'play',
458						value: function (t, e) {
459							this.looping ||
460								(this._loop(t), g(x, this, !0), g(T, this, e), (this.nloops = 0))
461						},
462					},
463					{
464						key: 'stop',
465						value: function () {
466							this.looping &&
467								(window.clearTimeout(m(L, this)),
468								g(x, this, !1),
469								g(T, this, null),
470								(this.nloops = 0))
471						},
472					},
473					{
474						key: 'toggle',
475						value: function (t) {
476							this.looping ? this.stop() : this.play(t)
477						},
478					},
479					{
480						key: 'destroy',
481						value: function () {
482							this.stop(),
483								m(j, this).destroy(),
484								(this.container.style.width = ''),
485								(this.container.style.height = ''),
486								(this.container.style.backgroundImage = ''),
487								(this.container.style.backgroundPositionX = ''),
488								(this.container.style.backgroundPositionY = ''),
489								(this.container.style.backgroundSize = ''),
490								this.isResponsive &&
491									window.removeEventListener('resize', this._windowResizeListener)
492						},
493					},
494					{
495						key: '_loop',
496						value: function (t) {
497							var e = this
498							t ? this.prev() : this.next(),
499								0 === m(E, this) &&
500								((this.nloops += 1), m(T, this) && this.nloops >= m(T, this))
501									? this.stop()
502									: g(
503											L,
504											this,
505											window.setTimeout(function () {
506												e._loop(t)
507											}, m(k, this).speed)
508									  )
509						},
510					},
511					{
512						key: '_update',
513						value: function () {
514							this.sprite
515								? ((this.container.style.backgroundPositionX =
516										(-m(E, this) % m(k, this).perRow) * this.containerWidth +
517										'px'),
518								  (this.container.style.backgroundPositionY =
519										-Math.floor(m(E, this) / m(k, this).perRow) *
520											this.containerHeight +
521										'px'))
522								: (this.container.style.backgroundImage = 'url("'.concat(
523										m(k, this).image[m(E, this)],
524										'")'
525								  ))
526						},
527					},
528					{
529						key: '_windowResizeListener',
530						value: function () {
531							;(this.container.style.height = this.containerHeight + 'px'),
532								this._update()
533						},
534					},
535					{
536						key: '_initContainer',
537						value: function () {
538							if (
539								(this.isResponsive ||
540									(this.container.style.width = this.containerWidth + 'px'),
541								(this.container.style.height = this.containerHeight + 'px'),
542								this.sprite)
543							) {
544								this.container.style.backgroundImage = 'url("'.concat(
545									m(k, this).image,
546									'")'
547								)
548								var t = m(k, this).perRow,
549									e = Math.ceil(m(k, this).count / m(k, this).perRow)
550								this.container.style.backgroundSize = 100 * t + '% ' + 100 * e + '%'
551							}
552							this.isResponsive &&
553								window.addEventListener('resize', this._windowResizeListener),
554								this._update()
555						},
556					},
557				]) && f(t.prototype, e),
558				Object.defineProperty(t, 'prototype', {writable: !1}),
559				t
560			)
561			var t, e
562		})()
563		return e.default
564	})()
565)

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.