PageSourceSearch

https://www.dtv.de/theme/7e27644d16992ef480eab89d87890326/js/bpa-p…/bpa-platform-quick-order.js?1790843217

js dtv.de collected 2026-10-02 02:30:09 UTC 23,299 bytes, 16 lines download raw bytes

1(()=>{"use strict";var e={156(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,u,d=Array.isArray(r);return d!==Array.isArray(e)?i(r,c):d?c.arrayMerge(e,r,c):(u={},(l=c).isMergeableObject(e)&&n(e).forEach(function(t){u[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])?u[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):u[t]=i(r[t],l))}),u)}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}},t={};function r(i){var s=t[i];if(void 0!==s)return s.exports;var n=t[i]={exports:{}};return e[i](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i=r(156),s=r.n(i);class n{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=n.toUpperCamelCase(e,t);return n.lcFirst(r)}static toUpperCamelCase(e,t){return t?e.split(t).map(e=>n.ucFirst(e.toLowerCase())).join(""):n.ucFirst(e.toLowerCase())}static parsePrimitive(e){try{return/^\d+(.|,)\d+$/.test(e)&&(e=e.replace(",",".")),JSON.parse(e)}catch(t){return e.toString()}}}class o{constructor(e=document){this._el=e,e.$emitter=this,this._listeners=[]}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){arguments.length>1&&"function"==typeof arguments[1]&&console.warn(`[NativeEventEmitter] Unsubscribing by passing the subscriber function as a second argument is not supported. By default, all listeners for the event will be removed. Use a suffix (separated by a dot) on the event name when subscribing/unsubscribing to identify/target your specific listener only, e.g. "${e}.MyCustomPlugin"`);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}reset(){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}}class a{constructor(e,t={},r=!1){if(!(e instanceof Node)){console.warn(`There is no valid element given while trying to create a plugin instance for "${r}".`);return}this.el=e,this.$emitter=new o(this.el),this._pluginName=this._getPluginName(r),this.options=this._mergeOptions(t),this._initialized=!1,this._registerInstance(),this._init()}init(){console.warn(`The "init" method for the plugin "${this._pluginName}" is not defined. The plugin will not be initialized.`)}update(){}destroy(){}
1_init(){this._initialized||(this.init(),this._initialized=!0)}_update(){this._initialized&&this.update()}_mergeOptions(e){let t=[this.constructor.options,this.options,e];return t.push(this._getConfigFromDataAttribute()),t.push(this._getOptionsFromDataAttribute()),s().all(t.filter(e=>e instanceof Object&&!(e instanceof Array)).map(e=>e||{}))}_getConfigFromDataAttribute(){let e={};if("function"!=typeof this.el.getAttribute)return e;let t=n.toDashCase(this._pluginName),r=this.el.getAttribute(`data-${t}-config`);return r?window.PluginConfigManager.get(this._pluginName,r):e}_getOptionsFromDataAttribute(){let e={};if("function"!=typeof this.el.getAttribute)return e;let t=n.toDashCase(this._pluginName),r=this.el.getAttribute(`data-${t}-options`);if(r)try{return JSON.parse(r)}catch(e){console.error(`The data attribute "data-${t}-options" could not be parsed to json: ${e.message}`)}return 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}}class c{constructor(){this._request=null,this._errorHandlingInternal=!1}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 ${e.responseURL} was aborted`)}),e.addEventListener("error",()=>{console.warn(`the request to ${e.responseURL} failed with status ${e.status}`)}),e.addEventListener("timeout",()=>{console.warn(`the request to ${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}}class l{static isNode(e){return"object"==typeof e&&null!==e&&(e===document||e===window||e instanceof Node)}static hasAttribute(e,t){if(!l.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===l.hasAttribute(e,t))throw Error(`The required property "${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],i=t.replace(/^data(|-)/,""),s=n.toLowerCamelCase(i,"-");if(!l.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 o=e.dataset[s];if(void 0===o){if(r)throw Error(`The required data attribute "${t}" does not exist on ${e}!`);return o}return n.parsePrimitive(o)}static querySelector(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!l.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 "${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&&!l.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 "${t}" must exist in parent node!`);return i}static getFocusableElements(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body,t=`
2            input:not([tabindex^="-"]):not([disabled]):not([type="hidden"]),
3            select:not([tabindex^="-"]):not([disabled]),
4            textarea:not([tabindex^="-"]):not([disabled]),
5            button:not([tabindex^="-"]):not([disabled]),
6            a[href]:not([tabindex^="-"]):not([disabled]),
7            [tabindex]:not([tabindex^="-"]):not([disabled])
8        `;return e.querySelectorAll(t)}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]}}let u="loader",d={BEFORE:"before",INNER:"inner"};class h{constructor(e,t=d.BEFORE){this.parent=e instanceof Element?e:document.body.querySelector(e),this.position=t}create(){if(!this.exists()){if(this.position===d.INNER){this._previousHTML=this.parent.innerHTML,this.parent.innerHTML=h.getTemplate();return}this.parent.insertAdjacentHTML(this._getPosition(),h.getTemplate())}}remove(){if(this.position===d.INNER){this.parent.innerHTML=this._previousHTML;return}this.parent.querySelectorAll(`.${u}`).forEach(e=>e.remove())}exists(){return this.parent.querySelectorAll(`.${u}`).length>0}_getPosition(){return this.position===d.BEFORE?"afterbegin":"beforeend"}static getTemplate(){return`<div class="${u}" role="status">
9                    <span class="visually-hidden">Loading...</span>
10                </div>`}static SELECTOR_CLASS(){return u}}let p="element-loader-backdrop";class m extends h{static create(e){e.classList.add("has-element-loader"),m.exists(e)||(m.appendLoader(e),setTimeout(()=>{let t=e.querySelector(`.${p}`);t&&t.classList.add("element-loader-backdrop-open")},1))}static remove(e){e.classList.remove("has-element-loader");let t=e.querySelector(`.${p}`);t&&t.remove()}static exists(e){return e.querySelectorAll(`.${p}`).length>0}static getTemplate(){return`
11        <div class="${p}">
12            <div class="loader" role="status">
13                <span class="visually-hidden">Loading...</span>
14            </div>
15        </div>
16        `}static appendLoader(e){e.insertAdjacentHTML("beforeend",m.getTemplate())}}class g extends a{static #e=this.options={searchWidgetUrl:"",priceWidgetUrl:"",minlength:3,tabOrder:null,currency:{},languageCode:null,calculateTotalPrice:!1,inputs:[],inputDelay:1e3};init(){this._client=new c,(this.options.arrowNavigation||this.options.enterNavigation)&&(this.options.inputs=this._getInputs(),this.options.inputs.length>1&&this._initKeyPress()),this.currentRow=null,this.rows=this._getRows(),this.rows.forEach(e=>{this._bindRowEvents(e)}),this._calculateTabIndex()}_initKeyPress(){this.options.inputs.forEach((e,t)=>{e.addEventListener("keydown",e=>{!1===l.querySelector(document,".js-quickorder-results",!1)&&("ArrowRight"===e.key&&this.options.arrowNavigation?t<this.options.inputs.length-1&&this.options.inputs[t+1].focus():"ArrowLeft"===e.key&&this.options.arrowNavigation?t>0&&this.options.inputs[t-1].focus():"ArrowDown"===e.key&&this.options.arrowNavigation?(e.preventDefault(),t<this.options.inputs.length-2&&this.options.inputs[t+2].focus()):"ArrowUp"===e.key&&this.options.arrowNavigation?(e.preventDefault(),t>1&&this.options.inputs[t-2].focus()):"Enter"===e.key&&this.options.enterNavigation&&(e.preventDefault(),t<this.options.inputs.length-1&&this.options.inputs[t+1].focus()))})})}_getInputs(){return l.querySelectorAll(document,".js-quickorder-row input",!1)}_getRows(){return l.querySelectorAll(this.el,".js-quickorder-row:not(.js-quickorder-summary)")}_bindRowEvents(e){let t=l.querySelector(e,".js-quickorder-product-number-input"),r=l.querySelector(e,".js-quickorder-quantity-input");t.addEventListener("input",this._handleProductNumberInputEvent.bind(this,e)),t.addEventListener("keydown",this._handleKeyboardNavigationEvent.bind(this)),r.addEventListener("change",this._handleQuantityChangeEvent.bind(this,e))}_handleProductNumberInputEvent(e,t){let{target:r}=t;this.currentRow=e,this._removeSelectedProductInfo(this.currentRow),clearTimeout(this.timeout),this.timeout=setTimeout(()=>{let{value:e}=r;if(e&&e.length>=this.options.minlength){let t=l.querySelector(this.currentRow,".js-quickorder-row-product");m.create(t),this._fetchProducts(e)}},this.options.inputDelay)}_handleQuantityChangeEvent(e,t){let{target:r}=t;this.currentRow=e;let{value:i,min:s,max:n,step:o}=r,a=l.getDataAttribute(this.currentRow,"product-id",!1);i=parseInt(i,10),s=parseInt(s,10),n=parseInt(n,10),o=parseInt(o,10),a&&i>=s&&i<=n&&i%o==0?this._fetchProductPrice(a,i):this._setPriceContent("")}_fetchProducts(e){this.lastResult=null;let t=`${this.options.searchWidgetUrl}?value=`+encodeURIComponent(e);this._client.get(t,this._handleProductResponse.bind(this))}_handleProductResponse(e){let{total:t,data:r,renderedList:i}=JSON.parse(e),s=l.querySelector(this.currentRow,".js-quickorder-row-product"),n=l.querySelector(this.currentRow,".js-quickorder-product-number-input"),o=l.querySelector(this.currentRow,".js-quickorder-quantity-input");if(m.remove(s),this.lastResult=r,r&&t>0){let e=l.querySelector(new DOMParser().parseFromString(i,"text/html").body,".js-quickorder-results",!1);l.querySelector(this.currentRow,".form-group").appendChild(e),window.PluginManager.initializePlugins(),1===t?(n.value=r[0].productNumber,(o.value<r[0].product.minPurchase||o.value>r[0].product.maxPurchase&&null!=r[0].product.maxPurchase)&&(o.value=r[0].product.minPurchase),this._handleElementClickEvent(0)):l.querySelectorAll(e,".js-quickorder-results-item-info").forEach((e,t)=>{e.addEventListener("click",this._handleElementClickEvent.bind(this,t))})}else n.classList.add("is-invalid")}_handleElementClickEvent(e){let t=l.querySelector(this.currentRow,".js-quickorder-product-number-input"),r=l.querySelector(this.currentRow,".js-quickorder-quantity-input"),i=l.querySelector(this.currentRow,".form-group > .js-quickorder-results",!1),s=l.querySelector(i,`.js-quickorder-results-item-info:nth-child(${e+1})`),n=this.lastResult[e],o=n.product;if(t.classList.remove("is-invalid"),r.classList.remove("is-invalid"),this.currentRow.dataset.productId=o.id,t.value=o.productNumber,(r.value<o.minPurchase||r.value>o.maxPurchase&&null!=o.maxPurchase)&&(r.value=o.minPurchase),r.setAttribute("min",o.minPurchase),o.isCloseout&&o.availableStock<o.minPurchase?(t.classList.add("is-invalid"),r.classList.add("is-invalid")):null!==o.calculatedMaxPurchase&&r.setAttribute("max",o.calculatedMaxPurchase),r.setAttribute("step",o.purchaseSteps),i&&i.remove(),this._displayProductInfo(n,s),this.currentRow===this.rows[this.rows.length-1]&&this._addNewRow(),document.activeElement===t){let e=l.querySelector(this.el,`input[tabindex="${t.tabIndex+1}"]`,!1);e&&(e.focus(),e.select())}}_displayProductInfo(e,t){let r=e.product,i=l.querySelector(this.currentRow,".js-quickorder-row-product"),s=l.querySelector(this.currentRow,".js-quickorder-row-quantity"),n=document.createElement("div"),o=document.createElement("div"),a=l.querySelector(t,".js-quickorder-results-item-characteristics"),c=l.querySelector(t,".js-quickorder-results-item-price"),u=l.querySelector(t,".js-quickorder-results-item-delivery");n.classList.add("js-quickorder-selected-product","product-info"),n.innerHTML=`<strong>${r.translated.name}</strong>`,n.appendChild(a.cloneNode(!0)),o.classList.add("js-quickorder-selected-product","product-price"),n.appendChild(c.cloneNode(!0)),n.appendChild(u.cloneNode(!0)),i.appendChild(n),s.appendChild(o),r.isCloseout&&r.availableStock<r.minPurchase||this._setPriceContent(this._formatPrice(e.price.totalPrice),e.price.totalPrice),window.PluginManager.initializePlugins()}_fetchProductPrice(e,t){let r=this.options.priceWidgetUrl+"?productId="+encodeURIComponent(e)+"&quantity="+parseInt(t,10);this._client.get(r,this._handleProductPriceResponse.bind(this))}_handleProductPriceResponse(e){let{totalPrice:t,unitPrice:r}=JSON.parse(e);t&&this._setPriceContent(this._formatPrice(t),t),r&&this._setUnitPrice(this._formatPrice(r))}_setUnitPrice(e){this.currentRow.querySelector(".js-quickorder-selected-product .js-quickorder-results-item-price").innerHTML=e}_setPriceContent(e,t){let r=l.querySelector(this.currentRow,".js-quickorder-selected-product.product-price",!1);r&&(r.innerText=e,r.dataset.totalPrice=t||0,this.options.calculateTotalPrice&&this._calculateTotalPrice())}_setTotalPriceContent(e){l.querySelector(this.el,".js-quickorder-summary .total-price").innerText=e}_calculateTotalPrice(){let e=0,t=l.querySelectorAll(this.el,".js-quickorder-selected-product.product-price",!1);t.length>0&&t.forEach(t=>{e+=parseFloat(t.dataset.totalPrice||0)}),this._setTotalPriceContent(this._formatPrice(e))}_formatPrice(e){if(!this.options.currency.isoCode||!this.options.currency.decimalPrecision)throw Error("Currency is not configured correctly.");if(null===this.options.languageCode)throw Error("Language code is not set.");return new Intl.NumberFormat(this.options.languageCode,{style:"currency",currency:this.options.currency.isoCode,minimumFractionDigits:this.options.currency.decimalPrecision,maximumFractionDigits:this.options.currency.decimalPrecision}).format(e)}_handleKeyboardNavigationEvent(e){let t;let{key:r}=e;if(!this.currentRow)return;let i=l.querySelector(this.currentRow,".form-group > .js-quickorder-results",!1);if(!i)return;if(!["Enter","Up","ArrowUp","Down","ArrowDown"].includes(r)){i.remove();return}let s=l.querySelector(i,".js-quickorder-results-item-info.active",!1);switch(r){case"Down":case"ArrowDown":s&&(t=s.nextElementSibling||i.firstElementChild);break;case"Up":case"ArrowUp":t=s&&s.previousElementSibling||i.lastElementChild;break;case"Enter":s&&s.click();break;default:return}e.preventDefault(),t||(t=i.firstElementChild),s&&s.classList.remove("active"),t.classList.add("active")}_addNewRow(){let e=this.rows[this.rows.length-1],t=e.cloneNode(!0),r=l.querySelector(t,".js-quickorder-product-number-input"),i=l.querySelector(t,".js-quickorder-quantity-input");this._removeSelectedProductInfo(t),r.value="",r.name=`products[${this.rows.length+1}][productNumber]`,i.value="",i.name=`products[${this.rows.length+1}][quantity]`,i.min=null,i.max=null,i.step=null,e.after(t),this._bindRowEvents(t),this.rows=this._getRows(),this._calculateTabIndex()}_removeSelectedProductInfo(e){let t=l.querySelector(e,".js-quickorder-product-number-input"),r=l.querySelector(e,".js-quickorder-quantity-input");t.classList.remove("is-invalid"),r.classList.remove("is-invalid");let i=l.querySelectorAll(e,".js-quickorder-selected-product",!1);
16i&&i.forEach(e=>e.remove()),delete e.dataset.productId,this.options.calculateTotalPrice&&this._calculateTotalPrice()}_calculateTabIndex(){let e;let t=l.querySelector(this.el,"form button[type=submit]"),r=this.options.tabOrder,i=1;switch(r){case"row":e=this.rows.length+1;break;case"col":e=i+1;break;default:throw Error("Tab order not defined or unknown.")}this.rows.forEach(t=>{let s=l.querySelector(t,".js-quickorder-product-number-input"),n=l.querySelector(t,".js-quickorder-quantity-input");s.setAttribute("tabindex",i),n.setAttribute("tabindex",e),"row"===r?(i+=1,e+=1):(i+=1,e=i+1)}),t.setAttribute("tabindex",e)}}class v{static isTouchDevice(){return"ontouchstart"in document.documentElement}static isIOSDevice(){return v.isIPhoneDevice()||v.isIPadDevice()}static isNativeWindowsBrowser(){return v.isIEBrowser()||v.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":v.isTouchDevice(),"is-ios":v.isIOSDevice(),"is-native-windows":v.isNativeWindowsBrowser(),"is-iphone":v.isIPhoneDevice(),"is-ipad":v.isIPadDevice(),"is-ie":v.isIEBrowser(),"is-edge":v.isEdgeBrowser()}}}let b="modal-backdrop",f="modal-backdrop-open",y="no-scroll",w={ON_CLICK:"backdrop/onclick"};class _{constructor(){return _.instance||(_.instance=this),_.instance}create(e){this._removeExistingBackdrops(),document.body.insertAdjacentHTML("beforeend",this._getTemplate());let t=document.body.lastChild;document.documentElement.classList.add(y),setTimeout(function(){t.classList.add(f),"function"==typeof e&&e()},75),this._dispatchEvents()}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:350;this._getBackdrops().forEach(e=>e.classList.remove(f)),setTimeout(this._removeExistingBackdrops.bind(this),e),document.documentElement.classList.remove(y)}_dispatchEvents(){let e=v.isTouchDevice()?"touchstart":"click";document.addEventListener(e,function(e){e.target.classList.contains(b)&&document.dispatchEvent(new CustomEvent(w.ON_CLICK))})}_getBackdrops(){return document.querySelectorAll(`.${b}`)}_removeExistingBackdrops(){!1!==this._exists()&&this._getBackdrops().forEach(e=>e.remove())}_exists(){return document.querySelectorAll(`.${b}`).length>0}_getTemplate(){return`<div class="${b}"></div>`}}let q=Object.freeze(new _);class E{static create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;q.create(e)}static remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:350;q.remove(e)}static SELECTOR_CLASS(){return b}}let P=Object.freeze(new class extends h{constructor(){super(document.body)}create(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];!this.exists()&&e&&(E.create(),document.querySelector(`.${E.SELECTOR_CLASS()}`).insertAdjacentHTML("beforeend",h.getTemplate()))}remove(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];super.remove(),e&&E.remove()}});class S{static create(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];P.create(e)}static remove(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];P.remove(e)}}let L=window.PluginManager;L.register("QuickOrderEntryList",g,"[data-quick-order-entry-list]"),L.register("QuickOrderUpload",class extends a{init(){this._bindEvents()}_bindEvents(){let e=l.querySelector(this.el,"form");l.querySelector(e,"input.form-control"),e.addEventListener("submit",this._handleSubmitEvent.bind(this))}_handleSubmitEvent(e){let{target:t}=e;!0===t.checkValidity()&&S.create()}},"[data-quick-order-upload]")})();

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.