PageSourceSearch

https://www.levolor.com/ConfiguratorHeaderPrintDesignTrigger.275bc17ab54a4b09aa9e.js

js levolor.com collected 2026-10-01 14:14:22 UTC 17,410 bytes, 134 lines download raw bytes

1/*!
2 * @version 6fe2f1c-dev
3 * 
4 */
5(window.webpackJsonp=window.webpackJsonp||[]).push([[73],{A7BQ:function(e,t,n){"use strict"
6n.r(t)
7var r=n("q1tI"),o=n.n(r),i=n("17x9"),a=n("OmJr"),l=n.n(a),c=n("UFbC"),u=n("gBRb"),s=n("SkmS"),f=function PrintDesignTrigger(e){var t=e.className,n=e.children,r=e.onClick,i=e.setMobileMenuOpen,a=Object(u.a)(c.p),f=Object(s.a)().isMobile,d=function handleClick(){f&&i(!1),r()}
8return o.a.createElement(l.a,{trigger:function trigger(){return o.a.createElement("button",{type:"button",onClick:d,className:t},n)},content:function content(){return a}})}
9f.propTypes={children:i.node,className:i.string},f.defaultProps={setMobileMenuOpen:function setMobileMenuOpen(){}},t.default=f},OmJr:function(e,t,n){var r,i
10"undefined"!=typeof self&&self,e.exports=(r=n("q1tI"),i=n("i8i4"),function(){"use strict"
11var e={655:function(e,t,i){i.r(t),i.d(t,{__extends:function(){return o},__assign:function(){return O},__rest:function(){return a},__decorate:function(){return l},__param:function(){return c},__metadata:function(){return u},__awaiter:function(){return s},__generator:function(){return f},__createBinding:function(){return k},__exportStar:function(){return p},__values:function(){return h},__read:function(){return y},__spread:function(){return b},__spreadArrays:function(){return v},__spreadArray:function(){return g},__await:function(){return m},__asyncGenerator:function(){return w},__asyncDelegator:function(){return _},__asyncValues:function(){return P}
11,__makeTemplateObject:function(){return S},__importStar:function(){return x},__importDefault:function(){return A},__classPrivateFieldGet:function(){return T},__classPrivateFieldSet:function(){return j}})
12var d=function(e,t){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)}
13function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null")
14function n(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var O=function(){return(O=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])
15return e}).apply(this,arguments)}
16function a(e,t){var n={}
17for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r])
18if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0
19for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function l(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r
20if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r)
21else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a)
22return i>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function s(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t
23e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}c((r=r.apply(e,t||[])).next())})}function f(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1]
24return o[1]},trys:[],ops:[]}
25return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i
26function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.")
27for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o
28switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i
29break
30case 4:return a.label++,{value:i[1],done:!1}
31case 5:a.label++,r=i[1],i=[0]
32continue
33case 7:i=a.ops.pop(),a.trys.pop()
34continue
35default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0
36continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1]
37break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i
38break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i)
39break}o[2]&&a.ops.pop(),a.trys.pop()
40continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1]
41return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}var k=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}
42function p(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||k(t,e,n)}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0
43if(n)return n.call(e)
44if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}
45throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator]
46if(!n)return e
47var r,o,i=n.call(e),a=[]
48try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]))
49return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length
50var r=Array(e),o=0
51for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a]
52return r}function g(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o])
53return e.concat(r||Array.prototype.slice.call(t))}function m(e){return this instanceof m?(this.v=e,this):new m(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.")
54var r,o=n.apply(e,t||[]),i=[]
55return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r
56function a(e){o[e]&&(r[e]=function(t){return new Promise(function(n,r){i.push([e,t,n,r])>1||l(e,t)})})}function l(e,t){try{(n=o[e](t)).value instanceof m?Promise.resolve(n.value.v).then(c,u):s(i[0][2],n)}catch(e){s(i[0][3],e)}var n}function c(e){l("next",e)}function u(e){l("throw",e)}function s(e,t){e(t),i.shift(),i.length&&l(i[0][0],i[0][1])}}function _(e){var t,n
57return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t
58function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:m(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function P(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.")
59var t,n=e[Symbol.asyncIterator]
60return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t)
61function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,o){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,o,(t=e[n](t)).done,t.value)})}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}
62function x(e){if(e&&e.__esModule)return e
63var t={}
64if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&k(t,e,n)
65return E(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function T(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter")
66if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it")
67return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function j(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable")
68if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter")
69if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it")
70return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}},156:function(e){e.exports=r},111:function(e){e.exports=i}},t={}
71function o(n){var r=t[n]
72if(void 0!==r)return r.exports
73var i=t[n]={exports:{}}
74return e[n](i,i.exports,o),i.exports}o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}
75var n={}
76return function(){var e=n
77Object.defineProperty(e,"__esModule",{value:!0}),e.useReactToPrint=e.PrintContextConsumer=void 0
78var t=o(655),r=o(156),i=o(111),a=Object.prototype.hasOwnProperty.call(r,"createContext"),l=Object.prototype.hasOwnProperty.call(r,"useMemo")&&Object.prototype.hasOwnProperty.call(r,"useCallback"),
78c=a?r.createContext({}):null
79e.PrintContextConsumer=c?c.Consumer:function(){return null}
80var u={copyStyles:!0,pageStyle:"@page { size: auto;  margin: 0mm; } @media print { body { -webkit-print-color-adjust: exact; } }",removeAfterPrint:!1,suppressErrors:!1},s=function(e){function o(){var n=null!==e&&e.apply(this,arguments)||this
81return n.startPrint=function(e){var t=n.props,r=t.onAfterPrint,o=t.onPrintError,i=t.print,a=t.documentTitle
82setTimeout(function(){var t,l
83if(e.contentWindow){if(e.contentWindow.focus(),i)i(e).then(n.handleRemoveIframe).catch(function(e){o?o("print",e):n.logMessages(["An error was thrown by the specified `print` function"])})
84else if(e.contentWindow.print){var c=null!==(l=null===(t=e.contentDocument)||void 0===t?void 0:t.title)&&void 0!==l?l:"",u=e.ownerDocument.title
85a&&(e.ownerDocument.title=a,e.contentDocument&&(e.contentDocument.title=a)),e.contentWindow.print(),a&&(e.ownerDocument.title=u,e.contentDocument&&(e.contentDocument.title=c)),r&&r()}else n.logMessages(["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."])
86n.handleRemoveIframe()}else n.logMessages(["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/gregnb/react-to-print/issues/"])},500)},n.triggerPrint=function(e){var t=n.props,r=t.onBeforePrint,o=t.onPrintError
87if(r){var i=r()
88i&&"function"==typeof i.then?i.then(function(){n.startPrint(e)}).catch(function(e){o&&o("onBeforePrint",e)}):n.startPrint(e)}else n.startPrint(e)},n.handleClick=function(){var e=n.props,t=e.onBeforeGetContent,r=e.onPrintError
89if(t){var o=t()
90o&&"function"==typeof o.then?o.then(n.handlePrint).catch(function(e){r&&r("onBeforeGetContent",e)}):n.handlePrint()}else n.handlePrint()},n.handlePrint=function(){var e=n.props,r=e.bodyClass,o=e.content,a=e.copyStyles,l=e.fonts,c=e.pageStyle,u=e.nonce,s=o()
91if(void 0!==s)if(null!==s){var f=document.createElement("iframe")
92f.style.position="absolute",f.style.top="-1000px",f.style.left="-1000px",f.id="printWindow"
93var d=(0,i.findDOMNode)(s)
94if(d){var p=d.cloneNode(!0),h=p instanceof Text,y=document.querySelectorAll("link[rel='stylesheet']"),b=h?[]:p.querySelectorAll("img"),v=h?[]:p.querySelectorAll("video")
95n.linkTotal=y.length+b.length+v.length,n.linksLoaded=[],n.linksErrored=[],n.fontsLoaded=[],n.fontsErrored=[]
96var g=function(e,t){t?n.linksLoaded.push(e):(n.logMessages(['"react-to-print" was unable to load a linked node. It may be invalid. "react-to-print" will continue attempting to print the page. The linked node that errored was:',e]),n.linksErrored.push(e)),n.linksLoaded.length+n.linksErrored.length+n.fontsLoaded.length+n.fontsErrored.length===n.linkTotal&&n.triggerPrint(f)}
97f.onload=function(){var e,o,i,s
98f.onload=null
99var y=f.contentDocument||(null===(o=f.contentWindow)||void 0===o?void 0:o.document)
100if(y){y.body.appendChild(p),l&&((null===(i=f.contentDocument)||void 0===i?void 0:i.fonts)&&(null===(s=f.contentWindow)||void 0===s?void 0:s.FontFace)?l.forEach(function(e){var t=new FontFace(e.family,e.source)
101f.contentDocument.fonts.add(t),t.loaded.then(function(e){n.fontsLoaded.push(e)}).catch(function(e){n.fontsErrored.push(t),n.logMessages(['"react-to-print" was unable to load a font. "react-to-print" will continue attempting to print the page. The font that failed to load is:',t,"The error from loading the font is:",e])})}):n.logMessages(['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API']))
102var m="function"==typeof c?c():c
103if("string"!=typeof m)n.logMessages(['"react-to-print" expected a "string" from `pageStyle` but received "'.concat(typeof m,'". Styles from `pageStyle` will not be applied.')])
104else{var w=y.createElement("style")
105u&&(w.setAttribute("nonce",u),y.head.setAttribute("nonce",u)),w.appendChild(y.createTextNode(m)),y.head.appendChild(w)}if(r&&(e=y.body.classList).add.apply(e,(0,t.__spreadArray)([],(0,t.__read)(r.split(" ")),!1)),!h){for(var _=y.querySelectorAll("canvas"),P=d.querySelectorAll("canvas"),O=0,S=_.length;O<S;++O){var x=(B=_[O]).getContext("2d")
106x&&x.drawImage(P[O],0,0)}for(O=0;O<b.length;O++){var k=b[O],A=k.getAttribute("src")
107if(A){var T=new Image
108T.onload=g.bind(null,k,!0),T.onerror=g.bind(null,k,!1),T.src=A}
108else n.logMessages(['"react-to-print" encountered an <img> tag with an empty "src" attribute. It will not attempt to pre-load it. The <img> is:',k],"warning"),g(k,!1)}var j=function(e){var t=v[e]
109t.preload="auto"
110var n=t.getAttribute("poster")
111if(n){var r=new Image
112r.onload=g.bind(null,t,!0),r.onerror=g.bind(null,t,!1),r.src=n}else t.readyState>=2?g(t,!0):(t.onloadeddata=g.bind(null,t,!0),t.onerror=function(){g.bind(null,t,!1)()},t.onstalled=function(){g.bind(null,t,!1)()})}
113for(O=0;O<v.length;O++)j(O)
114var E="input",C=d.querySelectorAll(E),M=y.querySelectorAll(E)
115for(O=0;O<C.length;O++)M[O].value=C[O].value
116var I="input[type=checkbox],input[type=radio]",R=d.querySelectorAll(I),D=y.querySelectorAll(I)
117for(O=0;O<R.length;O++)D[O].checked=R[O].checked
118var q="select",N=d.querySelectorAll(q),F=y.querySelectorAll(q)
119for(O=0;O<N.length;O++)F[O].value=N[O].value}if(a)for(var L=document.querySelectorAll("style, link[rel='stylesheet']"),W=(O=0,L.length);O<W;++O){var B
120if("STYLE"===(B=L[O]).tagName){var G=y.createElement(B.tagName),J=B.sheet
121if(J){var V=""
122try{for(var Y=J.cssRules.length,z=0;z<Y;++z)"string"==typeof J.cssRules[z].cssText&&(V+="".concat(J.cssRules[z].cssText,"\r\n"))}catch(e){n.logMessages(["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/gregnb/react-to-print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",B],"warning")}G.setAttribute("id","react-to-print-".concat(O)),u&&G.setAttribute("nonce",u),G.appendChild(y.createTextNode(V)),y.head.appendChild(G)}}else if(B.getAttribute("href")){G=y.createElement(B.tagName),z=0
123for(var H=B.attributes.length;z<H;++z){var Q=B.attributes[z]
124Q&&G.setAttribute(Q.nodeName,Q.nodeValue||"")}G.onload=g.bind(null,G,!0),G.onerror=g.bind(null,G,!1),u&&G.setAttribute("nonce",u),y.head.appendChild(G)}else n.logMessages(['"react-to-print" encountered a <link> tag with an empty "href" attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:',B],"warning"),g(B,!0)}}0!==n.linkTotal&&a||n.triggerPrint(f)},n.handleRemoveIframe(!0),document.body.appendChild(f)}else n.logMessages(['"react-to-print" could not locate the DOM node corresponding with the `content` prop'])}else n.logMessages(['There is nothing to print because the "content" prop returned "null". Please ensure "content" is renderable before allowing "react-to-print" to be called.'])
125else n.logMessages(["To print a functional component ensure it is wrapped with `React.forwardRef`, and ensure the forwarded ref is used. See the README for an example: https://github.com/gregnb/react-to-print#examples"])},n.handleRemoveIframe=function(e){var t=n.props.removeAfterPrint
126if(e||t){var r=document.getElementById("printWindow")
127r&&document.body.removeChild(r)}},n.logMessages=function(e,t){void 0===t&&(t="error"),n.props.suppressErrors},n}return(0,t.__extends)(o,e),o.prototype.render=function(){var e=this.props,t=e.children,n=e.trigger
128if(n)return r.cloneElement(n(),{onClick:this.handleClick})
129if(!c)return this.logMessages(['"react-to-print" requires React ^16.3.0 to be able to use "PrintContext"']),null
130var o={handlePrint:this.handleClick}
131return r.createElement(c.Provider,{value:o},t)},o.defaultProps=u,o}(r.Component)
132e.default=s,e.useReactToPrint=function(e){if(!l)return e.suppressErrors,function(){throw new Error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"')}
133var n=r.useMemo(function(){return new s((0,t.__assign)((0,t.__assign)({},u),e))},[e])
134return r.useCallback(function(){return n.handleClick()},[n])}}(),n}())}}])

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.