PageSourceSearch

https://shop.duden.de/theme/a9dd922003eb7771b776d292d2b01149/js/qu…/quote-management.js?1790145151

js duden.de collected 2026-09-24 07:54:31 UTC 17,620 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!==s},s="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 i(e,t,s){return e.concat(t).map(function(e){return r(e,s)})}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,s,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=r;var c,u,d=Array.isArray(s);return d!==Array.isArray(e)?r(s,l):d?l.arrayMerge(e,s,l):(u={},(c=l).isMergeableObject(e)&&n(e).forEach(function(t){u[t]=r(e[t],c)}),n(s).forEach(function(t){(!o(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(o(e,t)&&c.isMergeableObject(s[t])?u[t]=(function(e,t){if(!t.customMerge)return a;var s=t.customMerge(e);return"function"==typeof s?s:a})(t,c)(e[t],s[t],c):u[t]=r(s[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,s){return a(e,s,t)},{})},e.exports=a},49:(e,t,s)=>{s.d(t,{Z:()=>i});var r=s(140);class i{static isNode(e){return"object"==typeof e&&null!==e&&(e===document||e===window||e instanceof Node)}static hasAttribute(e,t){if(!i.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 s=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(s&&!1===i.hasAttribute(e,t))throw Error('The required property "'.concat(t,'" does not exist!'));if("function"!=typeof e.getAttribute){if(s)throw Error("This node doesn't support the getAttribute function!");return}return e.getAttribute(t)}static getDataAttribute(e,t){let s=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=t.replace(/^data(|-)/,""),o=r.Z.toLowerCamelCase(n,"-");if(!i.isNode(e)){if(s)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===e.dataset){if(s)throw Error("This node doesn't support the dataset attribute!");return}let a=e.dataset[o];if(void 0===a){if(s)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 s=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(s&&!i.isNode(e))throw Error("The parent node is not a valid HTML Node!");let r=e.querySelector(t)||!1;if(s&&!1===r)throw Error('The required element "'.concat(t,'" does not exist in parent node!'));return r}static querySelectorAll(e,t){let s=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(s&&!i.isNode(e))throw Error("The parent node is not a valid HTML Node!");let r=e.querySelectorAll(t);if(0===r.length&&(r=!1),s&&!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,s)=>{s.d(t,{Z:()=>r});class r{publish(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new CustomEvent(e,{detail:t,cancelable:s});return this.el.dispatchEvent(r),r}subscribe(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this,i=e.split("."),n=s.scope?t.bind(s.scope):t;if(s.once&&!0===s.once){let t=n;n=function(s){r.unsubscribe(e),t(s)}}return this.el.addEventListener(i[0],n),this.listeners.push({splitEventName:i,opts:s,cb:n}),!0}unsubscribe(e){let t=e.split(".");return this.listeners=this.listeners.reduce((e,s)=>([...s.splitEventName].sort().toString()===t.sort().toString()?this.el.removeEventListener(s.splitEventName[0],s.cb):e.push(s),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,s)=>{s.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 s of e.entries())t(s[1],s[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(s=>{t(e[s],s)});throw Error("The element type ".concat(typeof e," is not iterable!"))}}},140:(e,t,s)=>{s.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 s=r.toUpperCamelCase(e,t);return r.lcFirst(s)}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,s)=>{s.d(t,{Z:()=>l});var r=s(857),i=s.n(r),n=s(49),o=s(140),a=s(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),s=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];s&&a.push(window.PluginConfigManager.get(this._pluginName,s));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 i().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={},s=!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(s),this.options=this._mergeOptions(t),this._initialized=!1,this._registerInstance(),this._init()}}},62:(e,t,s)=>{s.d(t,{Z:()=>l,r:()=>a});var r=s(830),i=s(266);let n="js-offcanvas-singleton";class o{open(e,t,s,r,i,n,o){this._removeExistingOffCanvas();let a=this._createOffCanvas(s,n,o,r);this.setContent(e,i),this._openOffcanvas(a,t)}setContent(e,t){let s=this.getOffCanvas();s[0]&&(s[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();i.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"),o.bsOffcanvas.show(),window.history.pushState("offcanvas-open",""),"function"==typeof t&&t()}_registerEvents(e){let t=this.getOffCanvas();i.Z.iterate(t,s=>{let r=()=>{setTimeout(()=>{s.remove(),window.focusHandler.resumeFocusState("offcanvas"),this.$emitter.publish("onCloseOffcanvas",{offCanvasContent:t})},e),s.removeEventListener("hide.bs.offcanvas",r)};s.addEventListener("hide.bs.offcanvas",r)}),window.addEventListener("popstate",this.close.bind(this,e),{once:!0});let s=document.querySelectorAll(".".concat("js-offcanvas-close"));i.Z.iterate(s,t=>t.addEventListener("click",this.close.bind(this,e)))}_setAriaAttrs(){let e=this.getOffCanvas()[0],t="off-canvas-headline",s=e.querySelector('[data-id="'.concat(t,'"]'));s&&!e.hasAttribute("aria-labelledby")&&(s.setAttribute("id",t),e.setAttribute("aria-labelledby",t))}_removeExistingOffCanvas(){o.bsOffcanvas=null;let e=this.getOffCanvas();return i.Z.iterate(e,e=>e.remove())}_getPositionClass(e){return"left"===e?"offcanvas-start":"right"===e?"offcanvas-end":"offcanvas-".concat(e)}_createOffCanvas(e,t,s,r){let i=document.createElement("div");if(i.classList.add("offcanvas",n),i.classList.add(this._getPositionClass(e)),i.setAttribute("tabindex","-1"),!0===t&&i.classList.add("is-fullwidth"),s){let e=typeof s;if("string"===e)i.classList.add(s);
1else if(Array.isArray(s))s.forEach(e=>{i.classList.add(e)});else throw Error('The type "'.concat(e,'" is not supported. Please pass an array or a string.'))}return document.body.appendChild(i),o.bsOffcanvas=new bootstrap.Offcanvas(i,{backdrop:!1!==r||"static"}),i}constructor(){this.$emitter=new r.Z}}let a=Object.freeze(new o);class l{static open(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left",r=!(arguments.length>3)||void 0===arguments[3]||arguments[3],i=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]:"";a.open(e,t,s,r,i,n,o)}static setContent(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:350;a.setContent(e,t,s)}static setAdditionalClassName(e){a.setAdditionalClassName(e)}static close(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:350;a.close(e)}static exists(){return a.exists()}static getOffCanvas(){return a.getOffCanvas()}static REMOVE_OFF_CANVAS_DELAY(){return 350}}}},t={};function s(r){var i=t[r];if(void 0!==i)return i.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,s),n.exports}s.m=e,(()=>{s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t}})(),(()=>{s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,r)=>(s.f[r](e,t),t),[]))})(),(()=>{s.u=e=>"./js/quote-management/"+({16798:"quote-management.quote-request.plugin.ts",35754:"quote-management.offcanvas-cart.plugin.ts",62493:"quote-management.remove-promotion-confirm.plugin.ts"})[e]+"."+({16798:"27ae1e",35754:"00a011",62493:"350cea"})[e]+".js"})(),(()=>{s.miniCssF=e=>{}})(),(()=>{s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}()})(),(()=>{s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={};s.l=(t,r,i,n)=>{if(e[t]){e[t].push(r);return}if(void 0!==i)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,s.nc&&o.setAttribute("nonce",s.nc),o.src=t),e[t]=[r];var d=(s,r)=>{o.onerror=o.onload=null,clearTimeout(h);var i=e[t];if(delete e[t],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach(e=>e(r)),s)return s(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)}})(),(()=>{s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{s.g.importScripts&&(e=s.g.location+"");var e,t=s.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var i=r.length-1;i>-1&&!e;)e=r[i--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e+"../../"})(),(()=>{var e={65351:0};s.f.j=(t,r)=>{var i=s.o(e,t)?e[t]:void 0;if(0!==i){if(i)r.push(i[2]);else{var n=new Promise((s,r)=>i=e[t]=[s,r]);r.push(i[2]=n);var o=s.p+s.u(t),a=Error();s.l(o,r=>{if(s.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){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,i[1](a)}},"chunk-"+t,t)}}};var t=(t,r)=>{var i,n,[o,a,l]=r,c=0;if(o.some(t=>0!==e[t])){for(i in a)s.o(a,i)&&(s.m[i]=a[i]);l&&l(s)}for(t&&t(r);c<o.length;c++)n=o[c],s.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=s(568),t=s(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 i 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,s,r;let i=(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(i&&new Date(i)<Date.now()){(s=this._expiredStatus)===null||void 0===s||s.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,s,r,i,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)<Date.now()){(s=this._expiredStatus)===null||void 0===s||s.classList.remove("d-none"),(r=this._status)===null||void 0===r||r.classList.add("d-none"),(i=this._declinedButton)===null||void 0===i||i.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),s=t.Z.querySelector(this.el,this.options.messageInputSelector),r=t.Z.querySelector(this.el,this.options.messageTextareaSelector);s.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=s(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",i,"[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",()=>s.e(16798).then(s.bind(s,798)),"[data-b2b-quote-request-plugin]"),c.register("B2bQuoteRemovePromotionConfirmPlugin",()=>s.e(62493).then(s.bind(s,493)),"[data-b2b-quote-remove-promotion-confirm-plugin]"),c.override("OffCanvasCart",()=>s.e(35754).then(s.bind(s,754)),"[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.