PageSourceSearch

https://americansuppressorassociation.com/theme/bb91f029b1ef3adfdc…g-cms-extensions-quickview.plugin.e606b9.js

js americansuppressorassociation.com collected 2026-10-02 09:59:02 UTC 40,861 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[11943,24341,59379],{998:e=>{var t="%[a-f0-9]{2}",r=RegExp("("+t+")|([^%]+?)","gi"),i=RegExp("("+t+")+","gi");e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},s=i.exec(e);s;){try{t[s[0]]=decodeURIComponent(s[0])}catch(e){var n=function(e){try{return decodeURIComponent(e)}catch(s){for(var t=e.match(r)||[],i=1;i<t.length;i++)t=(e=(function e(t,r){try{return[decodeURIComponent(t.join(""))]}catch(e){}if(1===t.length)return t;r=r||1;var i=t.slice(0,r),s=t.slice(r);return Array.prototype.concat.call([],e(i),e(s))})(t,i).join("")).match(r)||[];return e}}(s[0]);n!==s[0]&&(t[s[0]]=n)}s=i.exec(e)}t["%C2"]="�";for(var o=Object.keys(t),a=0;a<o.length;a++){var c=o[a];e=e.replace(RegExp(c,"g"),t[c])}return e}(e)}}},857:e=>{var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==r},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a(Array.isArray(e)?[]:{},e,t):e}function s(e,t,r){return e.concat(t).map(function(e){return i(e,r)})}function n(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,r,c){(c=c||{}).arrayMerge=c.arrayMerge||s,c.isMergeableObject=c.isMergeableObject||t,c.cloneUnlessOtherwiseSpecified=i;var l,d,u=Array.isArray(r);return u!==Array.isArray(e)?i(r,c):u?c.arrayMerge(e,r,c):(d={},(l=c).isMergeableObject(e)&&n(e).forEach(function(t){d[t]=i(e[t],l)}),n(r).forEach(function(t){(!o(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(o(e,t)&&l.isMergeableObject(r[t])?d[t]=(function(e,t){if(!t.customMerge)return a;var r=t.customMerge(e);return"function"==typeof r?r:a})(t,l)(e[t],r[t],l):d[t]=i(r[t],l))}),d)}a.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return a(e,r,t)},{})},e.exports=a},728:e=>{e.exports=function(e,t){for(var r={},i=Object.keys(e),s=Array.isArray(t),n=0;n<i.length;n++){var o=i[n],a=e[o];(s?-1!==t.indexOf(o):t(o,a,e))&&(r[o]=a)}return r}},742:e=>{e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},341:(e,t,r)=>{r.r(t),r.d(t,{SWAG_CMS_EXTENSIONS_CROSS_SELLING_EXTENSION:()=>c,default:()=>l});var i=r(568),s=r(49),n=r(610);class o{_registerEvents(){window.addEventListener("DOMContentLoaded",this._onDOMContentLoaded.bind(this)),window.addEventListener("resize",n.Z.debounce(this._onResize.bind(this),200),{capture:!0,passive:!0})}_onDOMContentLoaded(){this._dispatchEvents()}_onResize(){this._viewportHasChanged(o.getCurrentViewport())&&(this._dispatchEvents(),this._dispatchViewportEvent("Viewport/hasChanged"))}_dispatchEvents(){o.isXS()?this._dispatchViewportEvent("Viewport/isXS"):o.isSM()?this._dispatchViewportEvent("Viewport/isSM"):o.isMD()?this._dispatchViewportEvent("Viewport/isMD"):o.isLG()?this._dispatchViewportEvent("Viewport/isLG"):o.isXL()?this._dispatchViewportEvent("Viewport/isXL"):o.isXXL()&&this._dispatchViewportEvent("Viewport/isXXL")}_viewportHasChanged(e){let t=e!==this.currentViewport;return t&&(this.previousViewport=this.currentViewport,this.currentViewport=e),t}_dispatchViewportEvent(e){document.$emitter.publish(e,{previousViewport:this.previousViewport})}static isXS(){return"XS"===o.getCurrentViewport()}static isSM(){return"SM"===o.getCurrentViewport()}static isMD(){return"MD"===o.getCurrentViewport()}static isLG(){return"LG"===o.getCurrentViewport()}static isXL(){return"XL"===o.getCurrentViewport()}static isXXL(){return"XXL"===o.getCurrentViewport()}static getCurrentViewport(){return window.getComputedStyle(document.documentElement).getPropertyValue("--sw-current-breakpoint").replace(/['"]+/g,"").toUpperCase()}constructor(){this.previousViewport=null,this.currentViewport=o.getCurrentViewport(),this._registerEvents()}}class a extends i.Z{init(){this._registerEvents()}_registerEvents(){s.Z.querySelectorAll(this.el,this.options.tabSelector).forEach(e
1=>{e.addEventListener("shown.bs.tab",this._rebuildCrossSellingSlider.bind(this))})}_rebuildCrossSellingSlider(e){if(!e.target.hasAttribute("id"))return;let t=e.target.id,r=s.Z.querySelector(document,"#".concat(t,"-pane")),i=s.Z.querySelector(r,this.options.productSliderSelector,!1);!1!==i&&window.PluginManager.getPluginInstanceFromElement(i,"ProductSlider").rebuild(o.getCurrentViewport(),!0)}}a.options={tabSelector:'a[data-bs-toggle="tab"]',productSliderSelector:'[data-product-slider="true"]'};let c={EVENT:{RENDER_RESPONSE:"SwagCmsExtensionsCrossSellingPluginRenderResponse"}};class l extends a{_rebuildCrossSellingSlider(e){super._rebuildCrossSellingSlider(e),this.$emitter.publish(c.EVENT.RENDER_RESPONSE)}}},379:(e,t,r)=>{r.r(t),r.d(t,{SWAG_CMS_EXTENSIONS_VARIANT_SWITCH_EXTENSION:()=>f,default:()=>S});var i=r(568),s=r(363),n=r(306);class o extends s.Z{create(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];!this.exists()&&e&&(n.ZP.create(),document.querySelector(".".concat(n.ZP.SELECTOR_CLASS())).insertAdjacentHTML("beforeend",s.Z.getTemplate()))}remove(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];super.remove(),e&&n.ZP.remove()}constructor(){super(document.body)}}let a=Object.freeze(new o);class c{static create(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];a.create(e)}static remove(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];a.remove(e)}}var l=r(49),d=r(266),u=r(107),h=r(940);class p extends i.Z{init(){this._httpClient=new u.Z,this._radioFields=l.Z.querySelectorAll(this.el,this.options.radioFieldSelector,!1),this._selectFields=l.Z.querySelectorAll(this.el,this.options.selectFieldSelector,!1),this._elementId=this.options.elementId,this._pageType=this.options.pageType,this._ensureFormElement(),this._preserveCurrentValues(),this._registerEvents(),this._resumeFocusState()}_ensureFormElement(){if("form"!==this.el.nodeName.toLowerCase())throw Error("This plugin can only be applied on a form element!")}_preserveCurrentValues(){this._radioFields&&d.Z.iterate(this._radioFields,e=>{p._isFieldSerializable(e)&&e.dataset&&(e.dataset.variantSwitchValue=e.value)})}_registerEvents(){this.el.addEventListener("change",e=>this._onChange(e))}_onChange(e){let t=this._getSwitchedOptionId(e.target),r=this._getFormValue();this._preserveCurrentValues(),this.$emitter.publish("onChange");let i={switched:t,options:JSON.stringify(r)};if(this._elementId&&"product_detail"!==this._pageType){let e=this.options.url+"?"+h.stringify({...i,elementId:this._elementId});document.$emitter.publish("updateBuyWidget",{url:e,elementId:this._elementId});return}this._saveFocusState(e.target),this._redirectToVariant(i)}_getSwitchedOptionId(e){return!!p._isFieldSerializable(e)&&e.name}_getFormValue(){let e={};return this._radioFields&&d.Z.iterate(this._radioFields,t=>{p._isFieldSerializable(t)&&t.checked&&(e[t.name]=t.value)}),this._selectFields&&d.Z.iterate(this._selectFields,t=>{if(p._isFieldSerializable(t)){let r=[...t.options].find(e=>e.selected);e[t.name]=r.value}}),e}static _isFieldSerializable(e){return!e.name||e.disabled||-1===["file","reset","submit","button"].indexOf(e.type)}_disableFields(){d.Z.iterate(this._radioFields,e=>{e.classList&&e.classList.add("disabled","disabled")})}_redirectToVariant(e){c.create();let t=this.options.url+"?"+h.stringify(e);this._httpClient.get("".concat(t),e=>{let t=JSON.parse(e);window.location.replace(t.url)})}_saveFocusState(e){window.focusHandler.saveFocusStatePersistent(this.options.focusHandlerKey,'[id="'.concat(e.id,'"]'))}_resumeFocusState(){window.focusHandler.resumeFocusStatePersistent(this.options.focusHandlerKey)}}p.options={url:"",elementId:"",pageType:"",radioFieldSelector:".product-detail-configurator-option-input",selectFieldSelector:".product-detail-configurator-select-input",focusHandlerKey:"variant-switch"};let _="element-loader-backdrop";class g extends s.Z{static create(e){e.classList.add("has-element-loader"),g.exists(e)||(g.appendLoader(e),setTimeout(()=>{let t=e.querySelector(".".concat(_));t&&t.classList.add("element-loader-backdrop-open")},1))}static remove(e){e.classList.remove("has-element-loader");let t=e.querySelector(".".concat(_));t&&t.remove()}static exists(e){return e.querySelectorAll(".".concat(_)).length>0}static getTemplate(){return'\n        <div class="'.concat(_,'">\n            <div class="loader" role="status">
1\n                <span class="').concat("visually-hidden",'">Loading...</span>\n            </div>\n        </div>\n        ')}static appendLoader(e){e.insertAdjacentHTML("beforeend",g.getTemplate())}}function m(e,t,r){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}(e,t);if(i){var s=Object.getOwnPropertyDescriptor(i,t);return s.get?s.get.call(r||e):s.value}})(e,t,r||e)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}let f={EVENT:{VARIANT_SWITCHED:"SwagCmsExtensionsVariantSwitchPluginVariantSwitched"}};class S extends p{_onChange(e){let t="[".concat("data-swag-cms-extensions-quickview-carousel-product-id",'="').concat(this.options.listingProductId,'"]');if(this._contains(this.el,t)){let r=document.querySelector("".concat(t," .product-detail-buy")).firstElementChild;g.create(r),this._emitVariantSwitchEvent(e,this.$emitter)}else super._onChange(e)}_saveFocusState(e){window.focusHandler&&"function"==typeof window.focusHandler.saveFocusStatePersistent&&window.focusHandler.saveFocusStatePersistent(this.options.focusHandlerKey,'[data-variant-switch-value="'.concat(e.dataset.variantSwitchValue,'"]'))}_resumeFocusState(){window.focusHandler&&"function"==typeof window.focusHandler.resumeFocusStatePersistent&&window.focusHandler.resumeFocusStatePersistent(this.options.focusHandlerKey)}_emitVariantSwitchEvent(e,t){t.publish(f.EVENT.VARIANT_SWITCHED,{parentId:this.options.parentId,listingProductId:this.options.listingProductId,switched:this._getSwitchedOptionId(e.target),options:JSON.stringify(this._getFormValue())})}_contains(e,t){return[...document.querySelectorAll(t)].map(t=>t.contains(e)).reduce((e,t)=>!!e||t,!1)}}S.options={parentId:"",listingProductId:"",focusHandlerKey:"variant-switch",...m(v(S),"options",S)}},943:(e,t,r)=>{r.r(t),r.d(t,{SWAG_CMS_EXTENSIONS_QUICKVIEW:()=>S,default:()=>E});var i=r(830),s=r(568),n=r(49),o=r(306);let a="js-pseudo-modal",c="js-pseudo-modal-template-root-element";class l{open(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.ar;this._hideExistingModal(),this._create(),setTimeout(this._open.bind(this,e),t)}close(){let e=this.getModal();this._modalInstance=bootstrap.Modal.getInstance(e),this._modalInstance.hide()}getModal(){return this._modal||this._create(),this._modal}updatePosition(){this._modalInstance.handleUpdate()}updateContent(e,t){this._content=e,this._setModalContent(e),this.updatePosition(),"function"==typeof t&&t.bind(this)()}_hideExistingModal(){try{let e=n.Z.querySelector(document,".".concat(a," .modal"),!1);if(!e)return;let t=bootstrap.Modal.getInstance(e);if(!t)return;t.hide()}catch(e){console.warn("[PseudoModalUtil] Unable to hide existing pseudo modal before opening pseudo modal: ".concat(e.message))}}_open(e){this.getModal(),this._modal.addEventListener("hidden.bs.modal",this._modalWrapper.remove),this._modal.addEventListener("shown.bs.modal",e),this._modal.addEventListener("hide.bs.modal",()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}),this._modalInstance.show()}_create(){this._modalMarkupEl=n.Z.querySelector(document,this._templateSelector),this._createModalWrapper(),this._modalWrapper.innerHTML=this._content,this._modal=this._createModalMarkup(),this._modalInstance=new bootstrap.Modal(this._modal,{backdrop:this._useBackdrop}),document.body.insertAdjacentElement("beforeend",this._modalWrapper)}_createModalWrapper(){this._modalWrapper=n.Z.querySelector(document,".".concat(a),!1),this._modalWrapper||(this._modalWrapper=document.createElement("div"),this._modalWrapper.classList.add(a))}_createModalMarkup(){let e=n.Z.querySelector(this._modalWrapper,".modal",!1);if(e)return e;let t=this._modalWrapper.innerHTML;return this._modalWrapper.innerHTML=this._modalMarkupEl.innerHTML,this._setModalContent(t),n.Z.querySelector(this._modalWrapper,".modal")}_setModalTitle(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{n.Z.querySelector(this._modalWrapper,this._templateTitleSelector).innerHTML=e}catch(e){}}_setModalContent(e){let t=n.Z.querySelector(this._modalWrapper,this._templateContentSelector);t.innerHTML=e;let r=n.Z.querySelector(t,".".concat(c),!1);if(r){n.Z.querySelector(this._modalWrapper,".".concat(c)).replaceChildren(r);return}try{let e=n.Z.querySelector(t,this._templateTitleSelector);e&&(this._setModalTitle(e.innerHTML),e.parentNode.removeChild(e))}catch(e){}}constructor(e,t=!0,r=".".concat("js-pseudo-modal-template"),i=".".concat("js-pseudo-modal-template-content-element"),s=".".concat("js-pseudo-modal-template-title-element")){this._content=e,this._useBackdrop=t,this._templateSelector=r,this._templateContentSelector=i,this._templateTitleSelector=s}}var d=r(107),u=r(940),h=r(341),p=r(379),_=r(363);class g extends _.Z{static getTemplate(){return'\n            <div class="container '.concat("quickview-loading-indicator",'">\n                ').concat(super.getTemplate(),"\n            </div>\n        ")}}class m{get id(){return this._id}get variantId(){return this._variantId}get loaded(){return this._loaded}get quickview(){return this._quickview}get variants(){return this._variants}set variantId(e){this._variantId=e}set loaded(e){this._loaded=e}set quickview(e){this._quickview=e}constructor(e,t,r){this._id=e,this._variantId=null,this._loaded=t,this._quickview=r,this._variants=new Map}}let v={CAROUSEL_ID:"swag-cms-extensions-quickview-carousel",CAROUSEL_ITEM_CLASS:"carousel-item",CAROUSEL_ITEM_PRODUCT_ID_ATTR:"data-swag-cms-extensions-quickview-carousel-product-id"};class f{create(e){return'\n            <div id="'.concat(this._id,'" class="carousel slide" data-interval="0">\n                ').concat(this._createNavigationElement("prev"),'\n                <div class="carousel-inner">\n                    ').concat(e.join(""),"\n                </div>\n                ").concat(this._createNavigationElement("next"),"\n            </div>\n        ")}createItem(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return'\n            <div class="'.concat(v.CAROUSEL_ITEM_CLASS," ").concat(r?"active":"",'"\n                 ').concat(this._carouselItemProductIdAttribute,'="').concat(t,'"\n                 data-announcement-snippet="').concat(i,'">\n                ').concat(e,"\n            </div>\n        ")}_createNavigationElement(e){let t="prev"===e;return'\n            <a class="carousel-control-'.concat(e,'" href="#').concat(this._id,'" role="button" data-bs-slide=').concat(e,">\n                ").concat(t?this._arrowHeadLeft:this._arrowHeadRight,'\n                <sp
1an class="visually-hidden">').concat(t?"Previous":"Next","</span>\n            </a>\n        ")}constructor(e,t,r=v.CAROUSEL_ID,i=v.CAROUSEL_ITEM_PRODUCT_ID_ATTR){this._arrowHeadLeft=e,this._arrowHeadRight=t,this._id=r,this._carouselItemProductIdAttribute=i}}let S={EVENT:{INITIALISED:"SwagCmsExtensions/quickviewInitialised",PRODUCT_REGISTERED:"SwagCmsExtensions/productRegistered",EVENTS_REGISTERED:"SwagCmsExtensions/eventsRegistered",MODAL_OPENED:"SwagCmsExtensions/modalOpened",PRODUCT_UPDATED:"SwagCmsExtensions/quickviewProductUpdated",BUY_FORM_BEFORE_SUBMIT:"beforeFormSubmit",BS_CAROUSEL_SLIDE:"slide.bs.carousel"}};class E extends s.Z{init(){this._firstLoad=!1,this._currentProductId="",this._pseudoModal=null,this._scrollPos=0,this._products=new Map,this._isModalLoading=!1,this._client=new d.Z(window.accessKey,window.contextToken),this._carouselTemplateUtil=new f(this.options.arrowHeadLeft,this.options.arrowHeadRight),this._createLiveRegion(),this._registerEventListeners(),this._registerProducts(),this.$emitter.publish(S.EVENT.INITIALISED,this)}_createLiveRegion(){this._liveRegion=this.el.querySelector("[aria-live]")}_reInitialise(){this._products.clear(),this._registerProductBoxListeners(),this._registerProducts()}_registerProducts(){let e=this._getProductBoxes(this.el.parentNode);return e?(e.forEach(e=>{let t=this._getProductBoxDataset(e),r=t.productId,i=t.announcement||"";this._registerProduct(r,i)}),!0):e}_registerProduct(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=new m(e,!1,g.getTemplate());r.announcement=t,this._products.set(e,r),this.$emitter.publish(S.EVENT.PRODUCT_REGISTERED,e)}_registerEventListeners(){this._registerProductBoxListeners(),this._registerListingListener(),this._registerCrossSellingListener()}_registerProductBoxListeners(){let e=this._getProductBoxes(this.el.parentNode);return e?(e.forEach(this._registerLinkClickListeners.bind(this)),!0):e}_registerCrossSellingListener(){this._addEventListener(h.SWAG_CMS_EXTENSIONS_CROSS_SELLING_EXTENSION.EVENT.RENDER_RESPONSE,this._reInitialise,n.Z.querySelector(document,this.options.crossSellingSelector,!1))}_registerListingListener(){this._addEventListener("Listing/afterRenderResponse",this._reInitialise,n.Z.querySelector(document,this.options.listingSelector,!1))}_getProductBoxes(e){let t=n.Z.querySelectorAll(e,this.options.productBoxSelector,!1);return!t||this.options.isSearchPage?t:[...t].filter(e=>this._getProductBoxDataset(e).sectionId===this.options.sectionId)}_getProductBoxDataset(e){return JSON.parse(e.dataset.swagCmsExtensionsQuickviewBoxOptions)}_registerLinkClickListeners(e){let t=this._onProductBoxLinkClick.bind(this,{productId:this._getProductBoxDataset(e).productId});n.Z.querySelectorAll(e,this.options.productBoxLinkSelector).forEach(e=>{this._addEventListener("click",t,e)})}_onProductBoxLinkClick(e,t){t.preventDefault(),this._openModal(e)}_openModal(e){let{productId:t}=e;this._isModalLoading||(this._isModalLoading=!0,this._firstLoad=!0,this._currentProductId=t,this._pseudoModal=new l(this._carouselTemplateUtil.create([this._carouselTemplateUtil.createItem(g.getTemplate(),"",!0)])),this._pseudoModal.open(this._fetchWindow.bind(this,t)),this._addPluginClasses(this._pseudoModal),this.$emitter.publish(S.EVENT.MODAL_OPENED,this))}_addPluginClasses(e){e.getModal().classList.add(this.options.modalClass),n.Z.querySelector(e.getModal(),".modal-dialog").classList.add("modal-dialog-centered","modal-xl"),n.Z.querySelector(e.getModal(),".modal-header").remove()}_fetchWindow(e){let t=this._getSibling(e,-1,this._products),r=this._getSibling(e,1,this._products);this._updateProductQuickview(t),this._updateProductQuickview(e),this._updateProductQuickview(r)}_updateProductQuickview(e){this._fetchQuickview(e,this._setProductQuickview.bind(this,e))}_fetchQuickview(e,t){if(this._products.get(e).loaded){t(this._products.get(e).quickview);return}this._client.get("".concat(window.router[this.options.quickviewControllerRoute],"/").concat(e),t.bind(this))}_fetchVariantQuickview(e,t,r){let i=window.router[this.options.quickviewControllerVariantRoute];this._client.get("".concat(i,"/").concat(e,"?").concat(u.stringify(t)),r.bind(this))}_setProductQuickview(e,t){this._products.get(e).loaded=!0,this._products.get(e).quickview=t,this._syncProductsAndDom(e)}_setVariantQuickview(e,t,r){let i=this._products.get(e),s=new m(t,!1,r);i.variants.set(s.id,s),i.variantId=s.id,this._syncProductsAndDom(e)}_syncProductsAndDom(e){if(this._firstLoad){let e=[];
1this._products.forEach(t=>{let r=t.announcement||"";e.push(this._carouselTemplateUtil.createItem(t.quickview,t.id,t.id===this._currentProductId,r))}),this._pseudoModal.updateContent(this._carouselTemplateUtil.create(e)),this._registerCarouselListener(),this._firstLoad=!1}let t=this._products.get(e),r=t.variantId;this._updateCarouselItemContent(e,r?t.variants.get(r).quickview:t.quickview),this._isModalLoading=!1}_registerBuyFormListener(e){this._addEventListener(S.EVENT.BUY_FORM_BEFORE_SUBMIT,this._pseudoModal.close.bind(this._pseudoModal),n.Z.querySelector(e,this.options.addToCartSelector))}_registerTaxLinkListener(e){this._addEventListener("click",this._onTaxLinkClick,n.Z.querySelector(e,this.options.taxLinkSelector))}_registerVariantSwitchListener(e){this._addEventListener(p.SWAG_CMS_EXTENSIONS_VARIANT_SWITCH_EXTENSION.EVENT.VARIANT_SWITCHED,this._onVariantSwitch,n.Z.querySelector(e,this.options.variantSwitchSelector,!1))}_registerCarouselListener(){let e=n.Z.querySelector(document,"#swag-cms-extensions-quickview-carousel",!1);e&&(n.Z.querySelector(document,"#".concat(v.CAROUSEL_ID),!1).addEventListener(S.EVENT.BS_CAROUSEL_SLIDE,this._onCarouselSlide.bind(this)),e.addEventListener("slid.bs.carousel",()=>{let t=n.Z.querySelector(e,".carousel-item.active");this._liveRegion.textContent=t.getAttribute("data-announcement-snippet")||""}))}_onCarouselSlide(e){let t="left"===e.direction?-1:1,r=e.relatedTarget.dataset.swagCmsExtensionsQuickviewCarouselProductId,i=this._getSibling(r,t,this._products);this._fetchWindow(r),this._currentProductId=i}_updateCarouselItemContent(e,t){let r=this._getCarouselItem(e,this._pseudoModal.getModal());r&&(r.innerHTML=t,window.PluginManager.initializePlugins(),this._registerBuyFormListener(r),this._registerVariantSwitchListener(r),this._registerTaxLinkListener(r),this._scrollPos>0&&(this._setContainerScrollPosition(e,this._scrollPos),this._scrollPos=0))}_getCarouselItem(e,t){return n.Z.querySelector(t,"[".concat(v.CAROUSEL_ITEM_PRODUCT_ID_ATTR,'="').concat(e,'"]'),!1)}_onVariantSwitch(e){let t=e.detail.listingProductId,r={switched:e.detail.switched,options:e.detail.options,parentId:e.detail.parentId},i=this._setVariantQuickview.bind(this,t,this._joinValues(JSON.parse(r.options)));this._scrollPos=this._getContainerScrollPosition(t),this._fetchVariantQuickview(t,r,i)}_onTaxLinkClick(e){e.preventDefault(),this._client.get(e.target.dataset.url,e=>{this._pseudoModal.close(),new l(e).open()})}_addEventListener(e,t,r){let s=t.bind(this);r&&(r.$emitter||new i.Z(r),this._listenerPresent(r,e,s)||r.$emitter.subscribe(e,s))}_listenerPresent(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return!!e.$emitter&&e.$emitter.listeners.some(e=>e.splitEventName[0]===t&&(null===r||e.cb===r))}_setContainerScrollPosition(e,t){n.Z.querySelector(this._getCarouselItem(e,this._pseudoModal.getModal()),this.options.quickviewContainerSelector).scrollTop=t}_getContainerScrollPosition(e){return n.Z.querySelector(this._getCarouselItem(e,this._pseudoModal.getModal()),this.options.quickviewContainerSelector).scrollTop}_joinValues(e){return Object.keys(e).map(t=>e[t]).join("")}_getSibling(e,t,r){let i=[...r.values()],s=i.findIndex(t=>t.id===e);if(s<0)return null;let n=(t>0?s+1:s-1)%i.length;return n<0&&(n=i.length-1),i[n].id}}E.options={isSearchPage:!1,crossSellingSelector:"[data-cross-selling]",listingSelector:"[data-listing]",variantSwitchSelector:"[data-variant-switch]",addToCartSelector:"[data-add-to-cart]",taxLinkSelector:"a.product-detail-tax-link",productBoxSelector:"[data-swag-cms-extensions-quickview-box]",productBoxLinkSelector:"a.product-name, a.product-image-link, .swag-cms-extensions-quickview-listing-button-detail a.btn",quickviewContainerSelector:".swag-cms-extensions-quickview-container",modalClass:"swag-cms-extensions-quickview-modal",quickviewControllerRoute:"widgets.swag.cmsExtensions.quickview",quickviewControllerVariantRoute:"widgets.swag.cmsExtensions.quickview.variant",sectionId:"",arrowHeadLeft:"",arrowHeadRight:""}},940:(e,t,r)=>{let i=r(742),s=r(998),n=r(231),o=r(728),a=e=>null==e,c=Symbol("encodeFragmentIdentifier");function l(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function d(e,t){return t.encode?t.strict?i(e):encodeURIComponent(e):e}function u(e,t){return t.decode?s(e):e}function h(e){let t=e.indexOf("#");return -1!==t&&(e=e.slice(0,t)),e}function p(e){let t=(e=h(e)).indexOf("?");return -1===t?"":e.slice(t+1)}function _(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):t.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())&&(e="true"===e.toLowerCase()),e}function g(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);let r=function(e){let t;
1switch(e.arrayFormat){case"index":return(e,r,i)=>{if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t){i[e]=r;return}void 0===i[e]&&(i[e]={}),i[e][t[1]]=r};case"bracket":return(e,r,i)=>{if(t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!t){i[e]=r;return}if(void 0===i[e]){i[e]=[r];return}i[e]=[].concat(i[e],r)};case"colon-list-separator":return(e,r,i)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),!t){i[e]=r;return}if(void 0===i[e]){i[e]=[r];return}i[e]=[].concat(i[e],r)};case"comma":case"separator":return(t,r,i)=>{let s="string"==typeof r&&r.includes(e.arrayFormatSeparator),n="string"==typeof r&&!s&&u(r,e).includes(e.arrayFormatSeparator);r=n?u(r,e):r;let o=s||n?r.split(e.arrayFormatSeparator).map(t=>u(t,e)):null===r?r:u(r,e);i[t]=o};case"bracket-separator":return(t,r,i)=>{let s=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!s){i[t]=r?u(r,e):r;return}let n=null===r?[]:r.split(e.arrayFormatSeparator).map(t=>u(t,e));if(void 0===i[t]){i[t]=n;return}i[t]=[].concat(i[t],n)};default:return(e,t,r)=>{if(void 0===r[e]){r[e]=t;return}r[e]=[].concat(r[e],t)}}}(t),i=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return i;for(let s of e.split("&")){if(""===s)continue;let[e,o]=n(t.decode?s.replace(/\+/g," "):s,"=");o=void 0===o?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?o:u(o,t),r(u(e,t),o,i)}for(let e of Object.keys(i)){let r=i[e];if("object"==typeof r&&null!==r)for(let e of Object.keys(r))r[e]=_(r[e],t);else i[e]=_(r,t)}return!1===t.sort?i:(!0===t.sort?Object.keys(i).sort():Object.keys(i).sort(t.sort)).reduce((e,t)=>{let r=i[t];return r&&"object"==typeof r&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(r):e[t]=r,e},Object.create(null))}t.extract=p,t.parse=g,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);let r=r=>t.skipNull&&a(e[r])||t.skipEmptyString&&""===e[r],i=function(e){switch(e.arrayFormat){case"index":return t=>(r,i)=>{let s=r.length;return void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:null===i?[...r,[d(t,e),"[",s,"]"].join("")]:[...r,[d(t,e),"[",d(s,e),"]=",d(i,e)].join("")]};case"bracket":return t=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:null===i?[...r,[d(t,e),"[]"].join("")]:[...r,[d(t,e),"[]=",d(i,e)].join("")];case"colon-list-separator":return t=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:null===i?[...r,[d(t,e),":list="].join("")]:[...r,[d(t,e),":list=",d(i,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(i,s)=>void 0===s||e.skipNull&&null===s||e.skipEmptyString&&""===s?i:(s=null===s?"":s,0===i.length)?[[d(r,e),t,d(s,e)].join("")]:[[i,d(s,e)].join(e.arrayFormatSeparator)]}default:return t=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:null===i?[...r,d(t,e)]:[...r,[d(t,e),"=",d(i,e)].join("")]}}(t),s={};for(let t of Object.keys(e))r(t)||(s[t]=e[t]);let n=Object.keys(s);return!1!==t.sort&&n.sort(t.sort),n.map(r=>{let s=e[r];return void 0===s?"":null===s?d(r,t):Array.isArray(s)?0===s.length&&"bracket-separator"===t.arrayFormat?d(r,t)+"[]":s.reduce(i(r),[]).join("&"):d(r,t)+"="+d(s,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>
1{t=Object.assign({decode:!0},t);let[r,i]=n(e,"#");return Object.assign({url:r.split("?")[0]||"",query:g(p(e),t)},t&&t.parseFragmentIdentifier&&i?{fragmentIdentifier:u(i,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[c]:!0},r);let i=h(e.url).split("?")[0]||"",s=t.extract(e.url),n=Object.assign(t.parse(s,{sort:!1}),e.query),o=t.stringify(n,r);o&&(o="?".concat(o));let a=function(e){let t="",r=e.indexOf("#");return -1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(a="#".concat(r[c]?d(e.fragmentIdentifier,r):e.fragmentIdentifier)),"".concat(i).concat(o).concat(a)},t.pick=(e,r,i)=>{i=Object.assign({parseFragmentIdentifier:!0,[c]:!1},i);let{url:s,query:n,fragmentIdentifier:a}=t.parseUrl(e,i);return t.stringifyUrl({url:s,query:o(n,r),fragmentIdentifier:a},i)},t.exclude=(e,r,i)=>{let s=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,s,i)}},231:e=>{e.exports=(e,t)=>{if(!("string"==typeof e&&"string"==typeof t))throw TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];let r=e.indexOf(t);return -1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},610:(e,t,r)=>{r.d(t,{Z:()=>i});class i{static debounce(e,t){let r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){for(var s=arguments.length,n=Array(s),o=0;o<s;o++)n[o]=arguments[o];i&&!r&&setTimeout(e.bind(e,...n),0),clearTimeout(r),r=setTimeout(e.bind(e,...n),t)}}}},49:(e,t,r)=>{r.d(t,{Z:()=>s});var i=r(140);class s{static isNode(e){return"object"==typeof e&&null!==e&&(e===document||e===window||e instanceof Node)}static hasAttribute(e,t){if(!s.isNode(e))throw Error("The element must be a valid HTML Node!");return"function"==typeof e.hasAttribute&&e.hasAttribute(t)}static getAttribute(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!1===s.hasAttribute(e,t))throw Error('The required property "'.concat(t,'" does not exist!'));if("function"!=typeof e.getAttribute){if(r)throw Error("This node doesn't support the getAttribute function!");return}return e.getAttribute(t)}static getDataAttribute(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=t.replace(/^data(|-)/,""),o=i.Z.toLowerCamelCase(n,"-");if(!s.isNode(e)){if(r)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===e.dataset){if(r)throw Error("This node doesn't support the dataset attribute!");return}let a=e.dataset[o];if(void 0===a){if(r)throw Error('The required data attribute "'.concat(t,'" does not exist on ').concat(e,"!"));return a}return i.Z.parsePrimitive(a)}static querySelector(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!s.isNode(e))throw Error("The parent node is not a valid HTML Node!");let i=e.querySelector(t)||!1;if(r&&!1===i)throw Error('The required element "'.concat(t,'" does not exist in parent node!'));return i}static querySelectorAll(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!s.isNode(e))throw Error("The parent node is not a valid HTML Node!");let i=e.querySelectorAll(t);if(0===i.length&&(i=!1),r&&!1===i)throw Error('At least one item of "'.concat(t,'" must exist in parent node!'));return i}static getFocusableElements(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return e.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([tabindex^="-"]):not([disabled])\n        ')}static getFirstFocusableElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return this.getFocusableElements(e)[0]}static getLastFocusableElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=this.getFocusableElements(e);return t[t.length-1]}}},830:(e,t,r)=>{r.d(t,{Z:()=>i});class i{publish(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new CustomEvent(e,{detail:t,cancelable:r});return this.el.dispatchEvent(i),i}subscribe(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,s=e.split("."),n=r.scope?t.bind(r.scope):t;if(r.once&&!0===r.once){let t=n;n=function(r){i.unsubscribe(e),t(r)}}return this.el.addEventListener(s[0],n),this.listeners.push({splitEventName:s,opts:r,cb:n}),!0}unsubscribe(e){let t=e.split(".");return this.listeners=this.listeners.reduce((e,r)=>([...r.splitEventName].sort().toString()===t.sort().toString()?this.el.removeEventListener(r.splitEventName[0],r.cb):e.push(r),e),[]),!0}
1reset(){return this.listeners.forEach(e=>{this.el.removeEventListener(e.splitEventName[0],e.cb)}),this.listeners=[],!0}get el(){return this._el}set el(e){this._el=e}get listeners(){return this._listeners}set listeners(e){this._listeners=e}constructor(e=document){this._el=e,e.$emitter=this,this._listeners=[]}}},266:(e,t,r)=>{r.d(t,{Z:()=>i});class i{static iterate(e,t){if(e instanceof Map||Array.isArray(e))return e.forEach(t);if(e instanceof FormData){for(var r of e.entries())t(r[1],r[0]);return}if(e instanceof NodeList)return e.forEach(t);if(e instanceof HTMLCollection)return Array.from(e).forEach(t);if(e instanceof Object)return Object.keys(e).forEach(r=>{t(e[r],r)});throw Error("The element type ".concat(typeof e," is not iterable!"))}}},140:(e,t,r)=>{r.d(t,{Z:()=>i});class i{static ucFirst(e){return e.charAt(0).toUpperCase()+e.slice(1)}static lcFirst(e){return e.charAt(0).toLowerCase()+e.slice(1)}static toDashCase(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(e,t){let r=i.toUpperCamelCase(e,t);return i.lcFirst(r)}static toUpperCamelCase(e,t){return t?e.split(t).map(e=>i.ucFirst(e.toLowerCase())).join(""):i.ucFirst(e.toLowerCase())}static parsePrimitive(e){try{return/^\d+(.|,)\d+$/.test(e)&&(e=e.replace(",",".")),JSON.parse(e)}catch(t){return e.toString()}}}},568:(e,t,r)=>{r.d(t,{Z:()=>c});var i=r(857),s=r.n(i),n=r(49),o=r(140),a=r(830);class c{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(e){let t=o.Z.toDashCase(this._pluginName),r=n.Z.getDataAttribute(this.el,"data-".concat(t,"-config"),!1),i=n.Z.getAttribute(this.el,"data-".concat(t,"-options"),!1),a=[this.constructor.options,this.options,e];r&&a.push(window.PluginConfigManager.get(this._pluginName,r));try{i&&a.push(JSON.parse(i))}catch(e){throw console.error(this.el),Error('The data attribute "data-'.concat(t,'-options" could not be parsed to json: ').concat(e.message))}return s().all(a.filter(e=>e instanceof Object&&!(e instanceof Array)).map(e=>e||{}))}_registerInstance(){window.PluginManager.getPluginInstancesFromElement(this.el).set(this._pluginName,this),window.PluginManager.getPlugin(this._pluginName,!1).get("instances").push(this)}_getPluginName(e){return e||(e=this.constructor.name),e}constructor(e,t={},r=!1){if(!n.Z.isNode(e))throw Error("There is no valid element given.");this.el=e,this.$emitter=new a.Z(this.el),this._pluginName=this._getPluginName(r),this.options=this._mergeOptions(t),this._initialized=!1,this._registerInstance(),this._init()}}},107:(e,t,r)=>{r.d(t,{Z:()=>i});class i{get(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/json",i=this._createPreparedRequest("GET",e,r);return this._sendRequest(i,null,t)}post(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";i=this._getContentType(t,i);let s=this._createPreparedRequest("POST",e,i);return this._sendRequest(s,t,r)}delete(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";i=this._getContentType(t,i);let s=this._createPreparedRequest("DELETE",e,i);return this._sendRequest(s,t,r)}patch(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";i=this._getContentType(t,i);let s=this._createPreparedRequest("PATCH",e,i);return this._sendRequest(s,t,r)}
1abort(){if(this._request)return this._request.abort()}setErrorHandlingInternal(e){this._errorHandlingInternal=e}_registerOnLoaded(e,t){t&&(!0===this._errorHandlingInternal?(e.addEventListener("load",()=>{t(e.responseText,e)}),e.addEventListener("abort",()=>{console.warn("the request to ".concat(e.responseURL," was aborted"))}),e.addEventListener("error",()=>{console.warn("the request to ".concat(e.responseURL," failed with status ").concat(e.status))}),e.addEventListener("timeout",()=>{console.warn("the request to ".concat(e.responseURL," timed out"))})):e.addEventListener("loadend",()=>{t(e.responseText,e)}))}_sendRequest(e,t,r){return this._registerOnLoaded(e,r),e.send(t),e}_getContentType(e,t){return e instanceof FormData&&(t=!1),t}_createPreparedRequest(e,t,r){return this._request=new XMLHttpRequest,this._request.open(e,t),this._request.setRequestHeader("X-Requested-With","XMLHttpRequest"),r&&this._request.setRequestHeader("Content-type",r),this._request}constructor(){this._request=null,this._errorHandlingInternal=!1}}},306:(e,t,r)=>{r.d(t,{ar:()=>c,ZP:()=>h});
1class i{static isTouchDevice(){return"ontouchstart"in document.documentElement}static isIOSDevice(){return i.isIPhoneDevice()||i.isIPadDevice()}static isNativeWindowsBrowser(){return i.isIEBrowser()||i.isEdgeBrowser()}static isIPhoneDevice(){return!!navigator.userAgent.match(/iPhone/i)}static isIPadDevice(){return!!navigator.userAgent.match(/iPad/i)}static isIEBrowser(){return -1!==navigator.userAgent.toLowerCase().indexOf("msie")||!!navigator.userAgent.match(/Trident.*rv:\d+\./)}static isEdgeBrowser(){return!!navigator.userAgent.match(/Edge\/\d+/i)}static getList(){return{"is-touch":i.isTouchDevice(),"is-ios":i.isIOSDevice(),"is-native-windows":i.isNativeWindowsBrowser(),"is-iphone":i.isIPhoneDevice(),"is-ipad":i.isIPadDevice(),"is-ie":i.isIEBrowser(),"is-edge":i.isEdgeBrowser()}}}var s=r(266);let n="modal-backdrop",o="modal-backdrop-open",a="no-scroll",c=350,l={ON_CLICK:"backdrop/onclick"};class d{create(e){this._removeExistingBackdrops(),document.body.insertAdjacentHTML("beforeend",this._getTemplate());let t=document.body.lastChild;document.documentElement.classList.add(a),setTimeout(function(){t.classList.add(o),"function"==typeof e&&e()},75),this._dispatchEvents()}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=this._getBackdrops();s.Z.iterate(t,e=>e.classList.remove(o)),setTimeout(this._removeExistingBackdrops.bind(this),e),document.documentElement.classList.remove(a)}_dispatchEvents(){let e=i.isTouchDevice()?"touchstart":"click";document.addEventListener(e,function(e){e.target.classList.contains(n)&&document.dispatchEvent(new CustomEvent(l.ON_CLICK))})}_getBackdrops(){return document.querySelectorAll(".".concat(n))}_removeExistingBackdrops(){if(!1===this._exists())return;let e=this._getBackdrops();s.Z.iterate(e,e=>e.remove())}_exists(){return document.querySelectorAll(".".concat(n)).length>0}_getTemplate(){return'<div class="'.concat(n,'"></div>')}constructor(){return d.instance||(d.instance=this),d.instance}}let u=Object.freeze(new d);class h{static create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;u.create(e)}static remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;u.remove(e)}static SELECTOR_CLASS(){return n}}},363:(e,t,r)=>{r.d(t,{Z:()=>o});var i=r(266);let s="loader",n={BEFORE:"before",INNER:"inner"};class o{create(){if(!this.exists()){if(this.position===n.INNER){this.parent.innerHTML=o.getTemplate();return}this.parent.insertAdjacentHTML(this._getPosition(),o.getTemplate())}}remove(){let e=this.parent.querySelectorAll(".".concat(s));i.Z.iterate(e,e=>e.remove())}exists(){return this.parent.querySelectorAll(".".concat(s)).length>0}_getPosition(){return this.position===n.BEFORE?"afterbegin":"beforeend"}static getTemplate(){return'<div class="'.concat(s,'" role="status">\n                    <span class="').concat("visually-hidden",'">Loading...</span>\n                </div>')}static SELECTOR_CLASS(){return s}constructor(e,t=n.BEFORE){this.parent=e instanceof Element?e:document.body.querySelector(e),this.position=t}}}}]);

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.