PageSourceSearch

https://www.visitdallas.com/dist/scripts/sliders.f6f57bdb0c4b608a3b42.min.js

js visitdallas.com collected 2026-10-02 02:28:43 UTC 4,346 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5973],{5553:function(e,t,i){i.r(t),i.d(t,{default:function(){return y}});var r=i(4575),n=i.n(r),l=i(3913),c=i.n(l),s=i(9713),o=i.n(s),a=i(7541),d=i.n(a);function u(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function f(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?u(Object(i),!0).forEach((function(t){o()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}d().prototype._createResizeClass=function(){this.element.classList.add("flickity-ready")},d().createMethods.push("_createResizeClass");var h=d().prototype.resize;d().prototype.resize=function(){this.element.classList.remove("flickity-ready"),h.call(this),this.element.classList.add("flickity-ready")};var v=d().prototype.select;d().prototype.select=function(e,t,i){var r,n=this;if(null!==(r=this.options)&&void 0!==r&&r.preselect){var l;if(null!=this&&null!==(l=this.cells)&&void 0!==l&&l.length){var c;this.cells.forEach((function(e){e.element.classList.remove("is-selected")}));var s=e;e>=this.cells.length&&(s=0),e<0&&(s=this.cells.length-1),null===(c=this.cells)||void 0===c||c[s].element.classList.add("is-selected")}requestAnimationFrame((function(){n.positionCells(),v.call(n,e,t,i)}))}else v.call(this,e,t,i)};var y=function(){function e(t){var i=this,r=t.sliderEls,l=t.configs,c=void 0===l?{}:l,s=t.sliderSelectorAttr,a=void 0===s?"data-flickity-slider":s,u=t.subSliderTypeAttr,h=void 0===u?"data-flickity-sub-type":u,v=t.subSelectorAttr,y=void 0===v?"data-flickity-sub-selector":v,p=t.wrapperSelectorAttr,g=void 0===p?"data-flickity-wrapper":p,b=t.arrowsSelectorAttr,m=void 0===b?"data-flickity-arrows":b,k=t.arrowLeftSelectorAttr,S=void 0===k?"data-flickity-left":k,w=t.arrowRightSelectorAttr,A=void 0===w?"data-flickity-right":w,E=t.draggingClass,O=void 0===E?"is-dragging":E;n()(this,e),o()(this,"initiatedSliders",[]),r.length&&r.forEach((function(e){var t,r=e.getAttribute(a),n=c[r],l=null,s={},o="sub";if(e.hasAttribute(y)){var u=e.getAttribute(y);(l=document.querySelector(u))&&(o=l.getAttribute(h),s=f(f({},c[o]),{},{asNavFor:e}))}var v=new(d())(e,n);e.addEventListener("flickitySlider.resize",(function(t){t.target!==e&&v.resize()})),v.on("dragStart",(function(){return e.classList.add(O)})),v.on("dragEnd",(function(){return e.classList.remove(O)})),v.on("resize",(function(){e.dispatchEvent(new CustomEvent("flickitySlider.resize",{detail:{slider:v},bubbles:!0,cancelable:!0}))}));var p=(null==v||null===(t=v.cells)||void 0===t?void 0:t.length)||0;e.classList.add("slides--".concat(p)),i.initiatedSliders.push(v),g=(null==n?void 0:n.wrapperSelectorAttr)||g;var b=e.closest("[".concat(g,"]"))||e;if(b.classList.add("flickity-total--".concat(p)),null!=n&&n.watchImageLoading){var k=e.querySelectorAll("img");k.length&&k.forEach((function(e){i.waitForImageToLoad(e).then((function(){v.resize()}))}))}if(p>1){var w=b.querySelectorAll("[".concat(m,"]"));w.length&&w.forEach((function(e){e.removeAttribute("hidden")}));var E=b.querySelectorAll("[".concat(A,"]"));E.length&&E.forEach((function(e){e.addEventListener("click",(function(){v.stopPlayer(),v.next(!0)}))}));var L=b.querySelectorAll("[".concat(S,"]"));L.length&&L.forEach((function(e){e.addEventListener("click",(function(){v.stopPlayer(),v.previous(!0)}))}))}if(l){var j=new(d())(l,s);i.initiatedSliders.push(j),j.on("change",(function(){requestAnimationFrame((function(){var e=j.selectedElements.find((function(e){return e.classList.contains("is-nav-selected")}));e=e||j.selectedElement;var t=j.cells.map((function(e){return e.element})).indexOf(e);t!==v.selectedIndex&&v.select(t)}))}))}null!=n&&n.callback&&"function"==typeof n.callback&&n.callback(v,e)}))}return c()(e,[{key:"waitForImageToLoad",value:function(e){return new Promise((function(t){e.onload=t}))}},{key:"destroy",value:function(){this.initiatedSliders.length&&this.initiatedSliders.forEac
1h((function(e){try{e.destroy()}catch(e){console.warn("flickity destroy error",e)}})),this.initiatedSliders=[]}}]),e}()}}]);

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.