PageSourceSearch

https://wechsel-tents.de/theme/de4d0e209c19e0ce61f0636d82a70f53/js/skanfriends/three-sixty.plugin.d3b663.js

js wechsel-tents.de collected 2026-10-09 01:19:50 UTC 13,041 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["three-sixty.plugin"],{857:t=>{var e=function(t){var e;return!!t&&"object"==typeof t&&"[object RegExp]"!==(e=Object.prototype.toString.call(t))&&"[object Date]"!==e&&t.$$typeof!==i},i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(t,e){return!1!==e.clone&&e.isMergeableObject(t)?a(Array.isArray(t)?[]:{},t,e):t}function n(t,e,i){return t.concat(e).map(function(t){return s(t,i)})}function o(t){return Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[])}function r(t,e){try{return e in t}catch(t){return!1}}function a(t,i,h){(h=h||{}).arrayMerge=h.arrayMerge||n,h.isMergeableObject=h.isMergeableObject||e,h.cloneUnlessOtherwiseSpecified=s;var l,d,u=Array.isArray(i);return u!==Array.isArray(t)?s(i,h):u?h.arrayMerge(t,i,h):(d={},(l=h).isMergeableObject(t)&&o(t).forEach(function(e){d[e]=s(t[e],l)}),o(i).forEach(function(e){(!r(t,e)||Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))&&(r(t,e)&&l.isMergeableObject(i[e])?d[e]=(function(t,e){if(!e.customMerge)return a;var i=e.customMerge(t);return"function"==typeof i?i:a})(e,l)(t[e],i[e],l):d[e]=s(i[e],l))}),d)}a.all=function(t,e){if(!Array.isArray(t))throw Error("first argument should be an array");return t.reduce(function(t,i){return a(t,i,e)},{})},t.exports=a},363:(t,e,i)=>{i.r(e),i.d(e,{default:()=>r});var s=i(293);let n=class{#t=null;#e=null;#i=null;constructor(t,e){this.#e=e,this.#i={container:{mousedown:t=>this.#t=t.pageX,touchstart:t=>this.#t=t.touches[0].clientX,touchend:()=>this.#t=null},prev:{mousedown:e=>{e.preventDefault(),t.play(!0)},mouseup:e=>{e.preventDefault(),t.stop()},touchstart:e=>{e.preventDefault(),t.prev()}},next:{mousedown:e=>{e.preventDefault(),t.play()},mouseup:e=>{e.preventDefault(),t.stop()},touchstart:e=>{e.preventDefault(),t.next()}},global:{mouseup:()=>this.#t=null,mousemove:e=>{this.#t&&Math.abs(this.#t-e.pageX)>this.#e.dragTolerance&&(t.stop(),this.#t>e.pageX?t.prev():t.next(),this.#t=e.pageX)},touchmove:e=>{this.#t&&Math.abs(this.#t-e.touches[0].clientX)>this.#e.swipeTolerance&&(t.stop(),this.#t>e.touches[0].clientX?t.prev():t.next(),this.#t=e.touches[0].clientX)},keydown:e=>
1{[37,39].includes(e.keyCode)&&t.play(37===e.keyCode)},keyup:e=>{[37,39].includes(e.keyCode)&&t.stop()}}},this._initEvents()}destroy(){this.#e.swipeTarget.removeEventListener("mousedown",this.#i.container.mousedown),this.#e.swipeTarget.removeEventListener("touchstart",this.#i.container.touchstart),this.#e.swipeTarget.removeEventListener("touchend",this.#i.container.touchend),window.removeEventListener("mouseup",this.#i.global.mouseup),window.removeEventListener("mousemove",this.#i.global.mousemove),window.removeEventListener("touchmove",this.#i.global.touchmove),window.removeEventListener("keydown",this.#i.global.keydown),window.removeEventListener("keyup",this.#i.global.keyup),this.#e.prev&&(this.#e.prev.removeEventListener("mousedown",this.#i.prev.mousedown),this.#e.prev.removeEventListener("mouseup",this.#i.prev.mouseup),this.#e.prev.removeEventListener("touchstart",this.#i.prev.touchstart)),this.#e.next&&(this.#e.next.removeEventListener("mousedown",this.#i.next.mousedown),this.#e.next.removeEventListener("mouseup",this.#i.next.mouseup),this.#e.next.removeEventListener("touchstart",this.#i.next.touchstart))}_initEvents(){this.#e.draggable&&(this.#e.swipeTarget.addEventListener("mousedown",this.#i.container.mousedown),window.addEventListener("mouseup",this.#i.global.mouseup),window.addEventListener("mousemove",this.#i.global.mousemove)),this.#e.swipeable&&(this.#e.swipeTarget.addEventListener("touchstart",this.#i.container.touchstart),this.#e.swipeTarget.addEventListener("touchend",this.#i.container.touchend),window.addEventListener("touchmove",this.#i.global.touchmove)),this.#e.keys&&(window.addEventListener("keydown",this.#i.global.keydown),window.addEventListener("keyup",this.#i.global.keyup)),this.#e.prev&&(this.#e.prev.addEventListener("mousedown",this.#i.prev.mousedown),this.#e.prev.addEventListener("mouseup",this.#i.prev.mouseup),this.#e.prev.addEventListener("touchstart",this.#i.prev.touchstart)),this.#e.next&&(this.#e.next.addEventListener("mousedown",this.#i.next.mousedown),this.#e.next.addEventListener("mouseup",this.#i.next.mouseup),this.#e.next.addEventListener("touchstart",this.#i.next.touchstart))}},o=class{#e=null;#s=0;#n=null;#o=!1;#r=null;#a=null;#h=!1;constructor(t,e){this.container=t,this.#e=Object.assign({width:300,height:300,aspectRatio:0,count:0,perRow:0,speed:100,dragTolerance:10,swipeTolerance:10,draggable:!0,swipeable:!0,keys:!0,inverted:!1},e),this.#e.swipeTarget=this.#e.swipeTarget||this.container,this.#h=!Array.isArray(this.#e.image),this.sprite||(this.#e.count=this.#e.image.length),Object.freeze(this.#e),this.#a=new n(this,this.#e),this._windowResizeListener=this._windowResizeListener.bind(this),this._initContainer(),this.nloops=0}get isResponsive(){return this.#e.aspectRatio>0}get containerWidth(){return this.isResponsive?this.container.clientWidth:this.#e.width}get containerHeight(){return this.isResponsive?this.container.clientWidth*this.#e.aspectRatio:this.#e.height}get index(){return this.#s}get looping(){return this.#o}get sprite(){return this.#h}
1next(){this.goto(this.#e.inverted?this.#s-1:this.#s+1)}prev(){this.goto(this.#e.inverted?this.#s+1:this.#s-1)}goto(t){this.#s=(this.#e.count+t)%this.#e.count,this._update()}play(t,e){this.looping||(this._loop(t),this.#o=!0,this.#r=e,this.nloops=0)}stop(){this.looping&&(window.clearTimeout(this.#n),this.#o=!1,this.#r=null,this.nloops=0)}toggle(t){this.looping?this.stop():this.play(t)}destroy(){this.stop(),this.#a.destroy(),this.container.style.width="",this.container.style.height="",this.container.style.backgroundImage="",this.container.style.backgroundPositionX="",this.container.style.backgroundPositionY="",this.container.style.backgroundSize="",this.isResponsive&&window.removeEventListener("resize",this._windowResizeListener)}_loop(t){if(t?this.prev():this.next(),0===this.#s&&(this.nloops+=1,this.#r&&this.nloops>=this.#r)){this.stop();return}this.#n=window.setTimeout(()=>{this._loop(t)},this.#e.speed)}_update(){this.sprite?(this.container.style.backgroundPositionX=-(this.#s%this.#e.perRow)*this.containerWidth+"px",this.container.style.backgroundPositionY=-Math.floor(this.#s/this.#e.perRow)*this.containerHeight+"px"):this.container.style.backgroundImage=`url("${this.#e.image[this.#s]}")`}_windowResizeListener(){this.container.style.height=this.containerHeight+"px",this._update()}_initContainer(){if(this.isResponsive||(this.container.style.width=this.containerWidth+"px"),this.container.style.height=this.containerHeight+"px",this.sprite){this.container.style.backgroundImage=`url("${this.#e.image}")`;let t=this.#e.perRow,e=Math.ceil(this.#e.count/this.#e.perRow);this.container.style.backgroundSize=100*t+"% "+100*e+"%"}this.isResponsive&&window.addEventListener("resize",this._windowResizeListener),this._update()}};class r extends s.Z{init(){let t=JSON.parse(this.el.dataset.images),e=this.el.querySelector(".base-slider-controls-prev"),i=this.el.querySelector(".base-slider-controls-next"),s=this.el.querySelector(".three-sixty-inner");new o(s,{image:t,prev:e,next:i,width:s.clientWidth,height:s.clientHeight,keys:!1,draggable:!0,swipeable:!0,dragTolerance:10,swipeTolerance:10,speed:200,inverted:!1}).play()}}},49:(t,e,i)=>{i.d(e,{Z:()=>n});var s=i(140);class n{static isNode(t){return"object"==typeof t&&null!==t&&(t===document||t===window||t instanceof Node)}static hasAttribute(t,e){if(!n.isNode(t))throw Error("The element must be a valid HTML Node!");return"function"==typeof t.hasAttribute&&t.hasAttribute(e)}static getAttribute(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!1===n.hasAttribute(t,e))throw Error('The required property "'.concat(e,'" does not exist!'));if("function"!=typeof t.getAttribute){if(i)throw Error("This node doesn't support the getAttribute function!");return}return t.getAttribute(e)}static getDataAttribute(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],o=e.replace(/^data(|-)/,""),r=s.Z.toLowerCamelCase(o,"-");if(!n.isNode(t)){if(i)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===t.dataset){if(i)throw Error("This node doesn't support the dataset attribute!");return}let a=t.dataset[r];if(void 0===a){if(i)throw Error('The required data attribute "'.concat(e,'" does not exist on ').concat(t,"!"));return a}return s.Z.parsePrimitive(a)}static querySelector(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!n.isNode(t))throw Error("The parent node is not a valid HTML Node!");let s=t.querySelector(e)||!1;if(i&&!1===s)throw Error('The required element "'.concat(e,'" does not exist in parent node!'));return s}static querySelectorAll(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!n.isNode(t))throw Error("The parent node is not a valid HTML Node!");let s=t.querySelectorAll(e);if(0===s.length&&(s=!1),i&&!1===s)throw Error('At least one item of "'.concat(e,'" must exist in parent node!'));return s}static getFocusableElements(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return t.querySelectorAll('\n            input:not([tabindex^="-"]):not([disabled]):not([type="hidden"]),\n            select:not([tabindex^="-"]):not([disabled]),\n            textarea:not([tabindex^="-"]):not([disabled]),\n            button:not([tabindex^="-"]):not([disabled]),\n            a[href]:not([tabindex^="-"]):not([disabled]),\n            [tabindex]:not
1([tabindex^="-"]):not([disabled])\n        ')}static getFirstFocusableElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return this.getFocusableElements(t)[0]}static getLastFocusableElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=this.getFocusableElements(t);return e[e.length-1]}}},140:(t,e,i)=>{i.d(e,{Z:()=>s});class s{static ucFirst(t){return t.charAt(0).toUpperCase()+t.slice(1)}static lcFirst(t){return t.charAt(0).toLowerCase()+t.slice(1)}static toDashCase(t){return t.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(t,e){let i=s.toUpperCamelCase(t,e);return s.lcFirst(i)}static toUpperCamelCase(t,e){return e?t.split(e).map(t=>s.ucFirst(t.toLowerCase())).join(""):s.ucFirst(t.toLowerCase())}static parsePrimitive(t){try{return/^\d+(.|,)\d+$/.test(t)&&(t=t.replace(",",".")),JSON.parse(t)}catch(e){return t.toString()}}}},293:(t,e,i)=>{i.d(e,{Z:()=>h});var s=i(857),n=i.n(s),o=i(49),r=i(140);class a{publish(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=new CustomEvent(t,{detail:e,cancelable:i});return this.el.dispatchEvent(s),s}subscribe(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=this,n=t.split("."),o=i.scope?e.bind(i.scope):e;if(i.once&&!0===i.once){let e=o;o=function(i){s.unsubscribe(t),e(i)}}return this.el.addEventListener(n[0],o),this.listeners.push({splitEventName:n,opts:i,cb:o}),!0}unsubscribe(t){let e=t.split(".");return this.listeners=this.listeners.reduce((t,i)=>([...i.splitEventName].sort().toString()===e.sort().toString()?this.el.removeEventListener(i.splitEventName[0],i.cb):t.push(i),t),[]),!0}reset(){return this.listeners.forEach(t=>{this.el.removeEventListener(t.splitEventName[0],t.cb)}),this.listeners=[],!0}get el(){return this._el}set el(t){this._el=t}get listeners(){return this._listeners}set listeners(t){this._listeners=t}constructor(t=document){this._el=t,t.$emitter=this,this._listeners=[]}}class h{init(){throw Error('The "init" method for the plugin "'.concat(this._pluginName,'" is not defined.'))}update(){}_init(){this._initialized||(this.init(),this._initialized=!0)}_update(){this._initialized&&this.update()}_mergeOptions(t){let e=r.Z.toDashCase(this._pluginName),i=o.Z.getDataAttribute(this.el,"data-".concat(e,"-config"),!1),s=o.Z.getAttribute(this.el,"data-".concat(e,"-options"),!1),a=[this.constructor.options,this.options,t];i&&a.push(window.PluginConfigManager.get(this._pluginName,i));try{s&&a.push(JSON.parse(s))}catch(t){throw console.error(this.el),Error('The data attribute "data-'.concat(e,'-options" could not be parsed to json: ').concat(t.message))}return n().all(a.filter(t=>t instanceof Object&&!(t instanceof Array)).map(t=>t||{}))}_registerInstance(){window.PluginManager.getPluginInstancesFromElement(this.el).set(this._pluginName,this),window.PluginManager.getPlugin(this._pluginName,!1).get("instances").push(this)}_getPluginName(t){return t||(t=this.constructor.name),t}constructor(t,e={},i=!1){if(!o.Z.isNode(t))throw Error("There is no valid element given.");this.el=t,this.$emitter=new a(this.el),this._pluginName=this._getPluginName(i),this.options=this._mergeOptions(e),this._initialized=!1,this._registerInstance(),this._init()}}}}]);

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.