1/*! @version pwa-studio: 0.0.1, @magento/venia-ui: ~11.7.2, @magento/venia-sample-payments-checkmo: ^0.0.19, @magento/upward-security-headers: ~1.1.20, @magento/pwa-theme-venia: ~2.4.0, @magento/pwa-buildpack: ~11.5.5, @magento/peregrine: ~15.7.2, @magento/pagebuilder: ~9.3.7, @magento/eslint-config: ~1.5.3, @magento/babel-preset-peregrine: ~1.3.3, @apollo/client: ~3.5.0 */ 2(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{"5Ndt":function(t,e,n){"use strict" 3n.r(e),n.d(e,"default",function(){return S}),n.d(e,"useAmProductLabelContext",function(){return j.a}),n.d(e,"AmProductLabelProvider",function(){return j.a}) 4var o=n("q1tI"),r=n.n(o),i=n("17x9"),a=n.n(i),l=n("y1Xp"),s=n("LboF"),c=n.n(s),p=n("SU6z"),d={injectType:"singletonStyleTag",insert:"head",singleton:!0},m=(c()(p.a,d),p.a.locals||{}),b=n("lSNA"),u=n.n(b),g=n("mNsa"),h={injectType:"singletonStyleTag",insert:"head",singleton:!0},f=(c()(g.a,h),g.a.locals||{}),L=t=>t.replace(/-([a-z])/g,(t,e)=>e.toUpperCase()),y=n("OlhY"),w=n("STDB") 5function ownKeys(t,e){var n=Object.keys(t) 6if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t) 7e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{} 8e%2?ownKeys(Object(n),!0).forEach(function(e){u()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var O=t=>t.replace(/(<([^>]+)>)/gi,""),x=t=>{var{item:e,dimensions:n,settingStyle:i}=t,a=Object(l.a)(f,t.classes),s=Object(o.useMemo)(()=>{var t=e.style,n={},o=t.split(";") 9return Array.isArray(o)&&o.length&&o.forEach(t=>{var[e,o]=t.split(":") 10e&&o&&(e=L(e.trim()),o=o.trim(),n[e]=o)}),n},[e]),c=Object(o.useMemo)(()=>e.size?n.width/100*e.size:s.maxWidth?n.width-n.width/parseInt(s.maxWidth):n.width/3,[n.width,e.size,s.maxWidth]),p=(t=>t?t.startsWith("http")?t:"/".concat(t.replace(/^\//,"")):"")(e.image) 11return r.a.createElement("div",{style:(()=>_objectSpread(_objectSpread(_objectSpread({},i),s),{width:c+"px"}))(),className:"".concat(a.root," ").concat(e.name.includes("orteil")?a.celestronVorteil:""),"data-id":e.name},e.image&&r.a.createElement(y.a,{alt:O(e.txt),classes:{image:a.image,root:a.imageContainer},displayPlaceholder:!1,src:p,width:c}),r.a.createElement("div",{className:a.text,style:(()=>({fontSize:(c<100?c:100)+"%",maxHeight:c}))()},r.a.createElement(w.a,{html:e.txt})))} 12x.propTypes={classes:Object(i.shape)({root:i.string,image:i.string,imageContainer:i.string,text:i.string,topLeft:i.string,topCenter:i.string,topRight:i.string,middleLeft:i.string,middleCenter:i.string,middleRight:i.string,bottomLeft:i.string,bottomCenter:i.string,bottomRight:i.string}),item:a.a.object,dimensions:Object(i.shape)({width:a.a.number})} 13var v=x,j=n("BJA4"),C=n("zCJ/"),z={0:"vertical",1:"horizontal"},P=t=>{var{items:e,dimensions:n,marginBetween:o,labelsAlignment:i}=t 14return e.map((t,e)=>{var a={["margin".concat(1===i?"Left":"Top")]:0!==e?o:0} 15return r.a.createElement(v,{item:t,key:e,dimensions:n,settingStyle:a})})},R=t=>{var{itemId:e,productWidth:n}=t,i=Object(l.a)(m,t.classes),{labels:a,mode:s,labelSetting:c}=Object(j.b)()||{},p=Object(o.useRef)(),[d,b]=Object(o.useState)({width:"PRODUCT"===s?n:0}),u=Object(o.useCallback)(()=>{var t=p.current 16t&&b({width:t.offsetWidth})},[b]) 17if(Object(C.a)(window,"resize",u),Object(o.useEffect)(u,[p.current,a,s,c]),!a)return null 18var{items:g}="PRODUCT"===s?a:a[e]||{} 19if(!g||!g.length)return null 20var h=g.reduce((t,e)=>(t[e.position]||(t[e.position]=[]),t[e.position].push(e),t),{}),f="PRODUCT"===s?"productPage":"categoryPage",y=Object.keys(h).map(t=>{var{labels_alignment:e,margin_between:n}=c||{},o=z[e]||z[0],a="".concat(i.groupRoot," ").concat(i[L(t)]," ").concat(i[o]) 21return r.a.createElement("div",{className:a,key:t},r.a.createElement(P,{items:h[t],dimensions:d,marginBetween:n,labelsAlignment:e}))}) 22return r.a.createElement("div",{className:"".concat(i.root," ").concat(f),ref:p},y)} 23R.propTypes={classes:a.a.shape({root:a.a.string}),itemId:a.a.number,mode:a.a.string,productWidth:a.a.number} 24var S=R},SU6z:function(t,e,n){"use strict" 25var o=n("JPst"),r=n.n(o)()(function(t){return t[1]}) 26r.push([t.i,".productLabels-root-FZ6 {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: block;\n pointer-events: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n.productLabels-groupRoot-HQl {\n position: absolute;\n z-index: 1;\n display: flex;\n font-size: 1em;\n}
26\n\n.productLabels-vertical-OoQ {\n flex-direction: column;\n}\n\n.productLabels-horizontal-dfN {\n flex-direction: row;\n}\n\n.productLabels-topLeft-IC5 {\n top: 0;\n left: 0;\n}\n\n.productLabels-topCenter-rnM {\n top: 0;\n left: 0;\n right: 0;\n align-items: center;\n justify-content: center;\n}\n\n.productLabels-topRight-Z2m {\n top: 0;\n right: 0;\n text-align: right;\n}\n\n.productLabels-middleLeft-igf {\n top: 0;\n bottom: 0;\n left: 0;\n align-items: center;\n justify-content: center;\n margin-top: auto;\n margin-bottom: auto;\n}\n\n.productLabels-middleCenter-oxV {\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n justify-content: center;\n align-items: center;\n margin: auto;\n}\n\n.productLabels-middleRight-w3z {\n top: 0;\n right: 0;\n bottom: 0;\n align-items: center;\n justify-content: center;\n margin-top: auto;\n margin-bottom: auto;\n text-align: right;\n}\n\n.productLabels-bottomLeft-zIQ {\n bottom: 0;\n left: 0;\n}\n\n.productLabels-bottomCenter-iKV {\n bottom: 0;\n left: 0;\n right: 0;\n align-items: center;\n justify-content: center;\n}\n\n.productLabels-bottomRight-20q {\n right: 0;\n bottom: 0;\n text-align: right;\n}\n\n.productLabels-vertical-OoQ.productLabels-bottomRight-20q,\n.productLabels-vertical-OoQ.productLabels-topRight-Z2m,\n.productLabels-vertical-OoQ.productLabels-middleRight-w3z,\n.productLabels-horizontal-dfN.productLabels-bottomRight-20q,\n.productLabels-horizontal-dfN.productLabels-bottomCenter-iKV,\n.productLabels-horizontal-dfN.productLabels-bottomLeft-zIQ {\n align-items: flex-end;\n}\n\n.productLabels-vertical-OoQ.productLabels-bottomLeft-zIQ,\n.productLabels-vertical-OoQ.productLabels-topLeft-IC5,\n.productLabels-vertical-OoQ.productLabels-middleLeft-igf {\n align-items: flex-start;\n}\n",""]),r.locals={root:"productLabels-root-FZ6",groupRoot:"productLabels-groupRoot-HQl",vertical:"productLabels-vertical-OoQ",horizontal:"productLabels-horizontal-dfN",topLeft:"productLabels-topLeft-IC5",topCenter:"productLabels-topCenter-rnM",topRight:"productLabels-topRight-Z2m",middleLeft:"productLabels-middleLeft-igf",middleCenter:"productLabels-middleCenter-oxV",middleRight:"productLabels-middleRight-w3z",bottomLeft:"productLabels-bottomLeft-zIQ",bottomCenter:"productLabels-bottomCenter-iKV",bottomRight:"productLabels-bottomRight-20q"},e.a=r},mNsa:function(t,e,n){"use strict" 27var o=n("JPst"),r=n.n(o)()(function(t){return t[1]}) 28r.push([t.i,".label-root-PW8 {\n position: relative;\n z-index: 1;\n display: flex;\n font-size: 1em;\n}\n\n.label-image-V5q {\n position: static;\n width: 100%;\n max-height: 100%;\n height: auto;\n}\n\n.label-image-V5q:first-of-type {\n display: none;\n}\n\n.label-imageContainer-ufn {\n display: flex;\n justify-content: center;\n opacity: 1;\n max-height: 100%;\n align-items: center;\n}\n\n.label-text-Pe2 {\n width: 100%;\n font-size: 100%;\n line-height: 1.2;\n text-align: inherit;\n}\n\n.label-imageContainer-ufn + .label-text-Pe2 {\n position: absolute;\n top: 50%;\n left: 0;\n overflow: hidden;\n text-align: inherit;\n transform: translateY(-50%);\n}\n\n.label-celestronVorteil-fkM .label-text-Pe2 {\n padding: 65px 5px 0;\n margin-top: 2px;\n font-weight: 500;\n -webkit-hyphens: auto;\n hyphens: auto;\n hyphenate-limit-chars: auto 4;\n max-width: 130px;\n}\n\n.label-celestronVorteil-fkM .label-imageContainer-ufn img {\n max-width: 130.5px;\n}\n",""]),r.locals={root:"label-root-PW8",image:"label-image-V5q",imageContainer:"label-imageContainer-ufn",text:"label-text-Pe2",celestronVorteil:"label-celestronVorteil-fkM"},e.a=r}}])
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.