PageSourceSearch

https://finescience.com/theme/edfa9a406d564c22f1b7cf55bf130d43/js/…/bpa-platform-quick-order.js?1789648759

js finescience.com collected 2026-10-01 14:47:22 UTC 23,142 bytes, 1 lines download raw bytes

1(()=>{"use strict";var 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,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 e=r(857),t=r.n(e);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()}}}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.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.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
1([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]}}class n{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}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}constructor(e=document){this._el=e,e.$emitter=this,this._listeners=[]}}class o{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 r=i.toDashCase(this._pluginName),n=s.getDataAttribute(this.el,"data-".concat(r,"-config"),!1),o=s.getAttribute(this.el,"data-".concat(r,"-options"),!1),a=[this.constructor.options,this.options,e];n&&a.push(window.PluginConfigManager.get(this._pluginName,n));try{o&&a.push(JSON.parse(o))}catch(e){throw console.error(this.el),Error('The data attribute "data-'.concat(r,'-options" could not be parsed to json: ').concat(e.message))}return t().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(!s.isNode(e))throw Error("There is no valid element given.");this.el=e,this.$emitter=new n(this.el),this._pluginName=this._getPluginName(r),this.options=this._mergeOptions(t),this._initialized=!1,this._registerInstance(),this._init()}}class a{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}}class c{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!"))}}let l="loader",u={BEFORE:"before",INNER:"inner"};class d{create(){if(!this.exists()){if(this.position===u.INNER){this.parent.innerHTML=d.getTemplate();return}this.parent.insertAdjacentHTML(this._getPosition(),d.getTemplate())}}remove(){let e=this.parent.querySelectorAll(".".concat(l));c.iterate(e,e=>e.remove())}exists(){return this.parent.querySelectorAll(".".concat(l)).length>0}_getPosition(){return this.position===u.BEFORE?"afterbegin":"beforeend"}static getTemplate(){return'<div class="'.concat(l,'" role="status">\n                    <span class="').concat("visually-hidden",'">Loading...</span>\n                </div>')}static SELECTOR_CLASS(){return l}constructor(e,t=u.BEFORE){this.parent=e instanceof Element?e:document.body.querySelector(e),this.position=t}}let h="element-loader-backdrop";class p extends d{static create(e){e.classList.add("has-element-loader"),p.exists(e)||(p.appendLoader(e),setTimeout(()=>{let t=e.querySelector(".".concat(h));t&&t.classList.add("element-loader-backdrop-open")},1))}static remove(e){e.classList.remove("has-element-loader");let t=e.querySelector(".".concat(h));t&&t.remove()}static exists(e){return e.querySelectorAll(".".concat(h)).length>0}static getTemplate(){return'\n        <div class="'.concat(h,'">\n            <div class="loader" role="status">\n                <span class="').concat("visually-hidden",'">Loading...</span>\n            </div>\n        </div>\n        ')}static appendLoader(e){e.insertAdjacentHTML("beforeend",p.getTemplate())}}class m extends o{init(){this._client=new a,(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===s.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 s.querySelectorAll(document,".js-quickorder-row input",!1)}_getRows(){return s.querySelectorAll(this.el,".js-quickorder-row:not(.js-quickorder-summary)")}_bindRowEvents(e){let t=s.querySelector(e,".js-quickorder-product-number-input"),r=s.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=s.querySelector(this.currentRow,".js-quickorder-row-product");p.create(t),this._fetchProducts(e)}},this.options.inputDelay)}_handleQuantityChangeEvent(e,t){let{target:r}=t;this.currentRow=e;let{value:i,min:n,max:o,step:a}=r,c=s.getDataAttribute(this.currentRow,"product-id",!1);i=parseInt(i,10),n=parseInt(n,10),o=parseInt(o,10),a=parseInt(a,10),c&&i>=n&&i<=o&&i%a==0?this._fetchProductPrice(c,i):this._setPriceContent("")}_fetchProducts(e){this.lastResult=null;let t="".concat(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),n=s.querySelector(this.currentRow,".js-quickorder-row-product"),o=s.querySelector(this.currentRow,".js-quickorder-product-number-input"),a=s.querySelector(this.currentRow,".js-quickorder-quantity-input");if(p.remove(n),this.lastResult=r,r&&t>0){let e=s.querySelector(new DOMParser().parseFromString(i,"text/html").body,".js-quickorder-results",!1);s.querySelector(this.currentRow,".form-group").appendChild(e),window.PluginManager.initializePlugins(),1===t?(o.value=r[0].productNumber,(a.value<r[0].product.minPurchase||a.value>r[0].product.maxPurchase&&null!=r[0].product.maxPurchase)&&(a.value=r[0].product.minPurchase),this._handleElementClickEvent(0)):s.querySelectorAll(e,".js-quickorder-results-item-info").forEach((e,t)=>{e.addEventListener("click",this._handleElementClickEvent.bind(this,t))})}else o.classList.add("is-invalid")}_handleElementClickEvent(e){let t=s.querySelector(this.currentRow,".js-quickorder-product-number-input"),r=s.querySelector(this.currentRow,".js-quickorder-quantity-input"),i=s.querySelector(this.currentRow,".form-group > .js-quickorder-results",!1),n=s.querySelector(i,".js-quickorder-results-item-info:nth-child(".concat(e+1,")")),o=this.lastResult[e],a=o.product;if(t.classList.remove("is-invalid"),r.classList.remove("is-invalid"),this.currentRow.dataset.productId=a.id,t.value=a.productNumber,(r.value<a.minPurchase||r.value>a.maxPurchase&&null!=a.maxPurchase)&&(r.value=a.minPurchase),r.setAttribute("min",a.minPurchase),a.isCloseout&&a.availableStock<a.minPurchase?(t.classList.add("is-invalid"),r.classList.add("is-invalid")):null!==a.calculatedMaxPurchase&&r.setAttribute("max",a.calculatedMaxPurchase),r.setAttribute("step",a.purchaseSteps),i&&i.remove(),this._displayProductInfo(o,n),this.currentRow===this.rows[this.rows.length-1]&&this._addNewRow(),document.activeElement===t){let e=s.querySelector(this.el,'input[tabindex="'.concat(t.tabIndex+1,'"]'),!1);e&&(e.focus(),e.select())}}_displayProductInfo(e,t){let r=e.product,i=s.querySelector(this.currentRow,".js-quickorder-row-product"),n=s.querySelector(this.currentRow,".js-quickorder-row-quantity"),o=document.createElement("div"),a=document.createElement("div"),c=s.querySelector(t,".js-quickorder-results-item-characteristics"),l=s.querySelector(t,".js-quickorder-results-item-price"),u=s.querySelector(t,".js-quickorder-results-item-delivery");o.classList.add("js-quickorder-selected-product","product-info"),o.innerHTML="<strong>".concat(r.translated.name,"</strong>"),o.appendChild(c.cloneNode(!0)),a.classList.add("js-quickorder-selected-product","product-price"),o.appendChild(l.cloneNode(!0)),o.appendChild(u.cloneNode(!0)),i.appendChild(o),n.appendChild(a),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=s.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){s.querySelector(this.el,".js-quickorder-summary .total-price").innerText=e}_calculateTotalPrice(){let e=0,t=s.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=s.querySelector(this.currentRow,".form-group > .js-quickorder-results",!1);if(!i)return;if(!["Enter","Up","ArrowUp","Down","ArrowDown"].includes(r)){i.remove();return}let n=s.querySelector(i,".js-quickorder-results-item-info.active",!1);switch(r){case"Down":case"ArrowDown":n&&(t=n.nextElementSibling||i.firstElementChild);break;case"Up":case"ArrowUp":t=n&&n.previousElementSibling||i.lastElementChild;break;case"Enter":n&&n.click();break;default:return}e.preventDefault(),t||(t=i.firstElementChild),n&&n.classList.remove("active"),t.classList.add("active")}_addNewRow(){let e=this.rows[this.rows.length-1],t=e.cloneNode(!0),r=s.querySelector(t,".js-quickorder-product-number-input"),i=s.querySelector(t,".js-quickorder-quantity-input");this._removeSelectedProductInfo(t),r.value="",r.name="products[".concat(this.rows.length+1,"][productNumber]"),i.value="",i.name="products[".concat(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=s.querySelector(e,".js-quickorder-product-number-input"),r=s.querySelector(e,".js-quickorder-quantity-input");t.classList.remove("is-invalid"),r.classList.remove("is-invalid");let i=s.querySelectorAll(e,".js-quickorder-selected-product",!1);
1i&&i.forEach(e=>e.remove()),delete e.dataset.productId,this.options.calculateTotalPrice&&this._calculateTotalPrice()}_calculateTabIndex(){let e;let t=s.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 n=s.querySelector(t,".js-quickorder-product-number-input"),o=s.querySelector(t,".js-quickorder-quantity-input");n.setAttribute("tabindex",i),o.setAttribute("tabindex",e),"row"===r?(i+=1,e+=1):(i+=1,e=i+1)}),t.setAttribute("tabindex",e)}}m.options={searchWidgetUrl:"",priceWidgetUrl:"",minlength:3,tabOrder:null,currency:{},languageCode:null,calculateTotalPrice:!1,inputs:[],inputDelay:1e3};class g{static isTouchDevice(){return"ontouchstart"in document.documentElement}static isIOSDevice(){return g.isIPhoneDevice()||g.isIPadDevice()}static isNativeWindowsBrowser(){return g.isIEBrowser()||g.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":g.isTouchDevice(),"is-ios":g.isIOSDevice(),"is-native-windows":g.isNativeWindowsBrowser(),"is-iphone":g.isIPhoneDevice(),"is-ipad":g.isIPadDevice(),"is-ie":g.isIEBrowser(),"is-edge":g.isEdgeBrowser()}}}let v="modal-backdrop",b="modal-backdrop-open",f="no-scroll",y={ON_CLICK:"backdrop/onclick"};class w{create(e){this._removeExistingBackdrops(),document.body.insertAdjacentHTML("beforeend",this._getTemplate());let t=document.body.lastChild;document.documentElement.classList.add(f),setTimeout(function(){t.classList.add(b),"function"==typeof e&&e()},75),this._dispatchEvents()}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:350,t=this._getBackdrops();c.iterate(t,e=>e.classList.remove(b)),setTimeout(this._removeExistingBackdrops.bind(this),e),document.documentElement.classList.remove(f)}
1_dispatchEvents(){let e=g.isTouchDevice()?"touchstart":"click";document.addEventListener(e,function(e){e.target.classList.contains(v)&&document.dispatchEvent(new CustomEvent(y.ON_CLICK))})}_getBackdrops(){return document.querySelectorAll(".".concat(v))}_removeExistingBackdrops(){if(!1===this._exists())return;let e=this._getBackdrops();c.iterate(e,e=>e.remove())}_exists(){return document.querySelectorAll(".".concat(v)).length>0}_getTemplate(){return'<div class="'.concat(v,'"></div>')}constructor(){return w.instance||(w.instance=this),w.instance}}let _=Object.freeze(new w);class q{static create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;_.create(e)}static remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:350;_.remove(e)}static SELECTOR_CLASS(){return v}}let E=Object.freeze(new class extends d{create(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];!this.exists()&&e&&(q.create(),document.querySelector(".".concat(q.SELECTOR_CLASS())).insertAdjacentHTML("beforeend",d.getTemplate()))}remove(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];super.remove(),e&&q.remove()}constructor(){super(document.body)}});class P{static create(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];E.create(e)}static remove(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];E.remove(e)}}let S=window.PluginManager;S.register("QuickOrderEntryList",m,"[data-quick-order-entry-list]"),S.register("QuickOrderUpload",class extends o{init(){this._bindEvents()}_bindEvents(){let e=s.querySelector(this.el,"form");s.querySelector(e,"input.form-control"),e.addEventListener("submit",this._handleSubmitEvent.bind(this))}_handleSubmitEvent(e){let{target:t}=e;!0===t.checkValidity()&&P.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.