PageSourceSearch

https://epowerfun.de/theme/43e680d44335d04e9865b11184a77461/js/quote-management/quote-management.js?1790268146

js epowerfun.de collected 2026-10-01 15:38:33 UTC 18,221 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!==i},i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a(Array.isArray(e)?[]:{},e,t):e}function s(e,t,i){return e.concat(t).map(function(e){return r(e,i)})}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,i,l){(l=l||{}).arrayMerge=l.arrayMerge||s,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=r;var c,u,d=Array.isArray(i);return d!==Array.isArray(e)?r(i,l):d?l.arrayMerge(e,i,l):(u={},(c=l).isMergeableObject(e)&&n(e).forEach(function(t){u[t]=r(e[t],c)}),n(i).forEach(function(t){(!o(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(o(e,t)&&c.isMergeableObject(i[t])?u[t]=(function(e,t){if(!t.customMerge)return a;var i=t.customMerge(e);return"function"==typeof i?i:a})(t,c)(e[t],i[t],c):u[t]=r(i[t],c))}),u)}a.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,i){return a(e,i,t)},{})},e.exports=a},49:(e,t,i)=>{i.d(t,{Z:()=>s});var r=i(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 i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!1===s.hasAttribute(e,t))throw Error('The required property "'.concat(t,'" does not exist!'));if("function"!=typeof e.getAttribute){if(i)throw Error("This node doesn't support the getAttribute function!");return}return e.getAttribute(t)}static getDataAttribute(e,t){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=t.replace(/^data(|-)/,""),o=r.Z.toLowerCamelCase(n,"-");if(!s.isNode(e)){if(i)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===e.dataset){if(i)throw Error("This node doesn't support the dataset attribute!");return}let a=e.dataset[o];if(void 0===a){if(i)throw Error('The required data attribute "'.concat(t,'" does not exist on ').concat(e,"!"));return a}return r.Z.parsePrimitive(a)}static querySelector(e,t){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!s.isNode(e))throw Error("The parent node is not a valid HTML Node!");let r=e.querySelector(t)||!1;if(i&&!1===r)throw Error('The required element "'.concat(t,'" does not exist in parent node!'));return r}static querySelectorAll(e,t){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!s.isNode(e))throw Error("The parent node is not a valid HTML Node!");let r=e.querySelectorAll(t);if(0===r.length&&(r=!1),i&&!1===r)throw Error('At least one item of "'.concat(t,'" must exist in parent node!'));return r}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,i)=>{i.d(t,{Z:()=>r});class r{publish(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new CustomEvent(e,{detail:t,cancelable:i});return this.el.dispatchEvent(r),r}subscribe(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this,s=e.split("."),n=i.scope?t.bind(i.scope):t;if(i.once&&!0===i.once){let t=n;n=function(i){r.unsubscribe(e),t(i)}}return this.el.addEventListener(s[0],n),this.listeners.push({splitEventName:s,opts:i,cb:n}),!0}unsubscribe(e){let t=e.split(".");return this.listeners=this.listeners.reduce((e,i)=>([...i.splitEventName].sort().toString()===t.sort().toString()?this.el.removeEventListener(i.splitEventName[0],i.cb):e.push(i),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,i)=>{i.d(t,{Z:()=>r});class r{static iterate(e,t){if(e instanceof Map||Array.isArray(e))return e.forEach(t);if(e instanceof FormData){for(var i of e.entries())t(i[1],i[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(i=>{t(e[i],i)});throw Error("The element type ".concat(typeof e," is not iterable!"))}}},140:(e,t,i)=>{i.d(t,{Z:()=>r});class r{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 i=r.toUpperCamelCase(e,t);return r.lcFirst(i)}static toUpperCamelCase(e,t){return t?e.split(t).map(e=>r.ucFirst(e.toLowerCase())).join(""):r.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,i)=>{i.d(t,{Z:()=>l});var r=i(857),s=i.n(r),n=i(49),o=i(140),a=i(830);class l{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),i=n.Z.getDataAttribute(this.el,"data-".concat(t,"-config"),!1),r=n.Z.getAttribute(this.el,"data-".concat(t,"-options"),!1),a=[this.constructor.options,this.options,e];i&&a.push(window.PluginConfigManager.get(this._pluginName,i));try{r&&a.push(JSON.parse(r))}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={},i=!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(i),this.options=this._mergeOptions(t),this._initialized=!1,this._registerInstance(),this._init()}}},62:(e,t,i)=>{i.d(t,{Z:()=>c,r:()=>l});var r=i(830),s=i(266);let n="js-offcanvas-singleton",o=new WeakMap;class a{open(e,t,i,r,s,n,o){this._removeExistingOffCanvas();let a=this._createOffCanvas(i,n,o,r);this.setContent(e,s),this._openOffcanvas(a,t)}setContent(e,t){let i=this.getOffCanvas();i[0]&&(i[0].innerHTML=e,this._registerEvents(t),this._setAriaAttrs())}setAdditionalClassName(e){this.getOffCanvas()[0].classList.add(e)}getOffCanvas(){return document.querySelectorAll(".".concat(n))}close(e){let t=this.getOffCanvas();s.Z.iterate(t,e=>{bootstrap.Offcanvas.getInstance(e).hide()}),setTimeout(()=>{this.$emitter.publish("onCloseOffcanvas",{offCanvasContent:t})},e)}goBackInHistory(){window.history.back()}exists(){return this.getOffCanvas().length>0}_openOffcanvas(e,t){window.focusHandler.saveFocusState("offcanvas"),this._disableBackgroundAccessibility(e),a.bsOffcanvas.show(),window.history.pushState("offcanvas-open",""),"function"==typeof t&&t()}_registerEvents(e){let t=this.getOffCanvas();s.Z.iterate(t,i=>{let r=()=>{setTimeout(()=>
1{this._restoreBackgroundState(),i.remove(),window.focusHandler.resumeFocusState("offcanvas"),this.$emitter.publish("onCloseOffcanvas",{offCanvasContent:t})},e),i.removeEventListener("hide.bs.offcanvas",r)};i.addEventListener("hide.bs.offcanvas",r)}),window.addEventListener("popstate",this.close.bind(this,e),{once:!0});let i=document.querySelectorAll(".".concat("js-offcanvas-close"));s.Z.iterate(i,t=>t.addEventListener("click",this.close.bind(this,e)))}_setAriaAttrs(){let e=this.getOffCanvas()[0],t="off-canvas-headline",i=e.querySelector('[data-id="'.concat(t,'"]'));i&&!e.hasAttribute("aria-labelledby")&&(i.setAttribute("id",t),e.setAttribute("aria-labelledby",t))}_disableBackgroundAccessibility(e){let t=[...document.body.children].filter(t=>t!==e).map(e=>({element:e,inert:e.inert,ariaHidden:e.getAttribute("aria-hidden")}));o.set(this,t),t.forEach(e=>{let{element:t}=e;t.inert=!0,t.setAttribute("aria-hidden","true")})}_restoreBackgroundState(){let e=o.get(this);null==e||e.forEach(e=>{let{element:t,inert:i,ariaHidden:r}=e;if(t.inert=i,null===r){t.removeAttribute("aria-hidden");return}t.setAttribute("aria-hidden",r)}),o.delete(this)}
1_removeExistingOffCanvas(){this._restoreBackgroundState(),a.bsOffcanvas=null;let e=this.getOffCanvas();return s.Z.iterate(e,e=>e.remove())}_getPositionClass(e){return"left"===e?"offcanvas-start":"right"===e?"offcanvas-end":"offcanvas-".concat(e)}_createOffCanvas(e,t,i,r){let s=document.createElement("div");if(s.classList.add("offcanvas",n),s.classList.add(this._getPositionClass(e)),s.setAttribute("tabindex","-1"),!0===t&&s.classList.add("is-fullwidth"),i){let e=typeof i;if("string"===e)s.classList.add(i);else if(Array.isArray(i))i.forEach(e=>{s.classList.add(e)});else throw Error('The type "'.concat(e,'" is not supported. Please pass an array or a string.'))}return document.body.appendChild(s),a.bsOffcanvas=new bootstrap.Offcanvas(s,{backdrop:!1!==r||"static"}),s}constructor(){this.$emitter=new r.Z}}let l=Object.freeze(new a);class c{static open(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left",r=!(arguments.length>3)||void 0===arguments[3]||arguments[3],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,n=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"";l.open(e,t,i,r,s,n,o)}static setContent(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:350;l.setContent(e,t,i)}static setAdditionalClassName(e){l.setAdditionalClassName(e)}static close(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:350;l.close(e)}static exists(){return l.exists()}static getOffCanvas(){return l.getOffCanvas()}static REMOVE_OFF_CANVAS_DELAY(){return 350}}}},t={};function i(r){var s=t[r];if(void 0!==s)return s.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,i),n.exports}i.m=e,(()=>{i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t}})(),(()=>{i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce((t,r)=>(i.f[r](e,t),t),[]))})(),(()=>{i.u=e=>"./js/quote-management/"+({10874:"quote-management.offcanvas-cart.plugin.ts",57472:"quote-management.quote-request.plugin.ts",76464:"quote-management.remove-promotion-confirm.plugin.ts"})[e]+"."+({10874:"9c7e0f",57472:"9e6bb1",76464:"3c0f1f"})[e]+".js"})(),(()=>{i.miniCssF=e=>{}})(),(()=>{i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}()})(),(()=>{i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={};i.l=(t,r,s,n)=>{if(e[t]){e[t].push(r);return}if(void 0!==s)for(var o,a,l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==t){o=u;break}}o||(a=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,i.nc&&o.setAttribute("nonce",i.nc),o.src=t),e[t]=[r];var d=(i,r)=>{o.onerror=o.onload=null,clearTimeout(h);var s=e[t];if(delete e[t],o.parentNode&&o.parentNode.removeChild(o),s&&s.forEach(e=>e(r)),i)return i(r)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload),a&&document.head.appendChild(o)}})(),(()=>{i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{i.g.importScripts&&(e=i.g.location+"");var e,t=i.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var s=r.length-1;s>-1&&!e;)e=r[s--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e+"../../"})(),(()=>{var e={65351:0};i.f.j=(t,r)=>{var s=i.o(e,t)?e[t]:void 0;if(0!==s){if(s)r.push(s[2]);else{var n=new Promise((i,r)=>s=e[t]=[i,r]);r.push(s[2]=n);var o=i.p+i.u(t),a=Error();i.l(o,r=>{if(i.o(e,t)&&(0!==(s=e[t])&&(e[t]=void 0),s)){var n=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+n+": "+o+")",a.name="ChunkLoadError",a.type=n,a.request=o,s[1](a)}},"chunk-"+t,t)}}};var t=(t,r)=>{var s,n,[o,a,l]=r,c=0;if(o.some(t=>0!==e[t])){for(s in a)i.o(a,s)&&(i.m[s]=a[s]);l&&l(i)}for(t&&t(r);c<o.length;c++)n=o[c],i.o(e,n)&&e[n]&&e[n][0](),e[n]=0},r=self.webpackChunk=self.webpackChunk||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{var e=i(568),t=i(49);class r extends e.Z{init(){this.el.addEventListener("click",this._handleClick.bind(this))}_handleClick(){let e=this.el.closest("form[data-form-ajax-submit]");e||this._onScrollTo();let t=window.PluginManager.getPluginInstanceFromElement(e,"FormAjaxSubmit");t&&t.addCallback(()=>{this._onScrollTo()})}_onScrollTo(){let e=t.Z.querySelector(document,this.options.targetSelector);e&&e.scrollIntoView({behavior:"smooth"})}}
1r.options={targetSelector:null};class s extends e.Z{init(){this._expirationDate=this.el.querySelector(this.options.selectors.expirationDate),this._status=this.el.querySelector(this.options.selectors.status),this._expiredStatus=this.el.querySelector(this.options.selectors.expiredStatus),this.renderExpiredLabel()}renderExpiredLabel(){var e,t,i,r;let s=(t=this._expirationDate)===null||void 0===t?void 0:(e=t.attributes[this.options.attributes.dataExpiration])===null||void 0===e?void 0:e.value;if(s&&new Date(s)<Date.now()){(i=this._expiredStatus)===null||void 0===i||i.classList.remove("d-none"),(r=this._status)===null||void 0===r||r.classList.add("d-none");return}}}class n extends e.Z{init(){this._expirationDate=this.el.querySelector(this.options.selectors.expirationDate),this._status=this.el.querySelector(this.options.selectors.status),this._expiredStatus=this.el.querySelector(this.options.selectors.expiredStatus),this._declinedButton=this.el.querySelector(this.options.selectors.declinedButton),this._requestChangesButton=this.el.querySelector(this.options.selectors.requestChangesButton),this._checkoutButton=this.el.querySelector(this.options.selectors.checkoutButton),this.renderExpiredLabel()}renderExpiredLabel(){var e,t,i,r,s,n,o;let a=(t=this._expirationDate)===null||void 0===t?void 0:(e=t.attributes[this.options.attributes.dataExpiration])===null||void 0===e?void 0:e.value;if(a&&new Date(a).getTime()<Date.now()){(i=this._expiredStatus)===null||void 0===i||i.classList.remove("d-none"),(r=this._status)===null||void 0===r||r.classList.add("d-none"),(s=this._declinedButton)===null||void 0===s||s.setAttribute("disabled","true"),(n=this._requestChangesButton)===null||void 0===n||n.setAttribute("disabled","true"),(o=this._checkoutButton)===null||void 0===o||o.classList.add("disabled");return}}}class o extends e.Z{init(){let e=t.Z.querySelector(document,this.options.collapseElementSelector,!1),i=t.Z.querySelector(this.el,this.options.messageInputSelector),r=t.Z.querySelector(this.el,this.options.messageTextareaSelector);i.addEventListener("focus",()=>{new bootstrap.Collapse(this.options.collapseElementSelector).show()}),e&&(e.addEventListener("hidden.bs.collapse",()=>{r.value=""}),e.addEventListener("shown.bs.collapse",()=>{r.focus()}))}}o.options={messageTextareaSelector:".quote-detail-comment__textarea",messageInputSelector:".quote-detail-comment__input",collapseElementSelector:"#sendComment"};var a=i(62);class l extends e.Z{init(){this._registerEventListeners()}_registerEventListeners(){this.el.addEventListener("click",this._onClickOffCanvasMessage.bind(this))}_onClickOffCanvasMessage(){let e=t.Z.querySelector(document,"[data-b2b-quote-offcanvas-message-content]",!1);e&&(a.Z.open(e.innerHTML,()=>{window.PluginManager.initializePlugins()},"end",!0,a.Z.REMOVE_OFF_CANVAS_DELAY(),!1,"quote-detail-offcanvas"),this.el.classList.add("hide-badge"))}}let c=window.PluginManager;c.register("B2bQuoteScrollToElement",r,"[data-b2b-quote-scroll-to-element]"),c.register("B2bQuoteItemPlugin",s,"[data-b2b-quote-item-plugin]"),c.register("B2bQuoteDetailPlugin",n,"[data-b2b-quote-detail-plugin]"),c.register("B2bQuoteMessage",o,"[data-b2b-quote-message]"),c.register("B2bQuoteOffCanvasMessage",l,"[data-b2b-quote-offcanvas-message]"),c.register("B2bQuoteRequestPlugin",()=>i.e(57472).then(i.bind(i,472)),"[data-b2b-quote-request-plugin]"),c.register("B2bQuoteRemovePromotionConfirmPlugin",()=>i.e(76464).then(i.bind(i,464)),"[data-b2b-quote-remove-promotion-confirm-plugin]"),c.override("OffCanvasCart",()=>i.e(10874).then(i.bind(i,874)),"[data-off-canvas-cart]")})()})();

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.