PageSourceSearch

https://www.visiondirect.fr/_next/static/chunks/3gvgak2eun6mx.js

js visiondirect.fr collected 2026-10-04 09:18:06 UTC 9,840 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="f36a51d4-449f-4599-e08e-c61bdf320f46")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,579892,e=>{e.v({markdown:"index-module-scss-module__50tJ6W__markdown","product-price":"index-module-scss-module__50tJ6W__product-price"})},373916,e=>{e.v({"scroll-bar-container":"index-module-scss-module__9K6zFq__scroll-bar-container","scroll-bar-element":"index-module-scss-module__9K6zFq__scroll-bar-element","scroll-container":"index-module-scss-module__9K6zFq__scroll-container"})},694830,e=>{"use strict";var t=e.i(843476),r=e.i(207670),i=e.i(271645),l=e.i(373916);e.s(["ScrollableContainerWithBar",0,e=>{let{children:a,showSlider:s,scrollBarSliderWidth:o=33,snapScroll:n=!0}=e,[d,c]=(0,i.useState)(0),u=(0,i.useCallback)(e=>{let t=e.currentTarget.scrollWidth-e.currentTarget.clientWidth;c(100*e.currentTarget.scrollLeft/t)},[]),h=(0,i.useCallback)(()=>{let e=d/100*(100-o);return"".concat(e,"%")},[d,o]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:(0,r.default)([l.default["scroll-container"],"scroll-container",{"snap-scroll":n}]),onScroll:u,children:a}),s&&(0,t.jsx)("div",{className:(0,r.default)(l.default["scroll-bar-container"],"scroll-bar-container"),children:(0,t.jsx)("div",{className:l.default["scroll-bar-element"],style:{width:"".concat(o,"%"),left:"".concat(h())}})})]})}])},100614,e=>{"use strict";var t=e.i(843476),r=e.i(694830),i=e.i(890594),l=e.i(991706),a=e.i(207670),s=e.i(678404),o=e.i(709897),n=e.i(202226),d=e.i(948163),c=e.i(957342),u=e.i(361372);let h={"2_ITEMS":{xxl:{crop:"landscape_ratio326x181",width:1304,height:724},xl:{crop:"landscape_ratio286x181",width:1144,height:724},lg:{crop:"landscape_ratio238x181",width:857,height:652},md:{crop:"landscape_ratio352x181",width:1267,height:652},sm:{crop:"portrait_ratio343x362",width:617,height:652}},"3_ITEMS":{xxl:{crop:"landscape_ratio216x181",width:864,height:724},xl:{crop:"landscape_ratio379x362",width:758,height:724},lg:{crop:"portrait_ratio315x362",width:567,height:652},md:{crop:"landscape_ratio352x181",width:1267,height:652},sm:{crop:"portrait_ratio327x362",width:589,height:652}},"4_ITEMS":{xxl:{crop:"landscape_ratio200x181",width:800,height:724},xl:{crop:"landscape_ratio200x181",width:800,height:724},lg:{crop:"landscape_ratio204x181",width:734,height:652},md:{crop:"landscape_ratio352x181",width:1267,height:652},sm:{crop:"portrait_ratio327x362",width:589,height:652}}};e.s(["default",0,e=>{let{placement:p,placementCenter:m,teaserIndex:_,isFieldsOn:f=!1,customerSegments:x}=e,g="items"in p?null==p?void 0:p.items.filter(l.isLXTeaser):null==p?void 0:p.teasableItems.filter(l.isLXTeaser),b=Math.min(Math.max((null==g?void 0:g.length)||2,2),4),v=b>=2?h["".concat(b,"_ITEMS")]:h["2_ITEMS"],y=m?"center":void 0,{pageType:w}=(0,u.usePageType)(),T="home"===w?"caption":"h6";return(0,t.jsx)("div",{className:(0,a.default)(c.default["board-with-fields"],c.default["board-with-fields-".concat(f?"on":"below")],c.default["board-with-fields-".concat(b)]),children:(0,t.jsx)(r.ScrollableContainerWithBar,{showSlider:!0,children:(0,t.jsx)("div",{className:(0,a.default)(c.default["board-content"]),children:null==g?void 0:g.map((e,r)=>{var l;let u=(0,i.isShoppableTeaser)(e);return(0,t.jsxs)("div",{className:(0,a.default)(c.default["board-content-item"],e.teaserBackground),children:[(null==e||null==(l=e.media)?void 0:l.length)>0&&(0,t.jsx)(s.CmsFullBannerAnchor,{toLink:(0,i.getToLink)(e),teaserIndex:_,bannerIndex:r+1,children:(0,t.jsx)(o.CmsMedia,{media:e.media,imageCrops:v,hasOverlay:(0,i.hasOverlay)(e),alt:e.name,lazy:!0})}),u&&(0,t.jsx)(n.ShoppableTeaser,{hotZonesSettings:null==e?void 0:e.hotZonesSettings,hotZones:null==e?void 0:e.hotZones,customerSegments:x}),(0,t.jsx)(d.TextModule,{teaser:e,teaserIndex:_,overrideTeaserOverlayTextAlign:y,variant:T})]},e.id)})})})})}])},649657,function(e){e.n(e.i(100614))},957342,e=>{e.v({"board-content":"index-module-scss-module__3uGdvG__board-content","board-content-item":"index-module-scss-module__3uGdvG__board-content-item","board-with-fields":"index-module-scss-module__3uGdvG__board-with-fields","board-with-fields-2":"index-module-scss-module__3uGdvG__board-with-fields-2","board-with-fields-3":"index-module-scss-module__3uGdvG__board-with-fields-3","board-with-fields-4":"index-module-scss-module__3uGdvG__board-with-fields-4","board-with-fields-item":"index-module-scss-module__3uGdvG__board-with-fields-item","board-with-fields-on":"index-module-scss-module__3uGdvG__board-with-fields-on"})},202226,e=>{"use strict";var t=e.i(843476),r=e.i(62786),i=e.i(329956);e.i(233171);var l=e.i(848762),a=e.i(120786),s=e.i(92808),o=e.i(969084),n=e.i(586838),d=e.i(207670),c=e.i(948148),u=e.i(579892),h=e.i(90983),p=e.i(866796),m=e.i(940799);let _=(0,m.styled)("div",{name:"ProductPriceWrapper"})(e=>{let{theme:t}=e;return{display:"flex",alignItems:"baseline",gap:t.spacing(2)}}),f=(0,m.styled)(p.Typography,{name:"ProductPriceText",shouldForwardProp:e=>"isOnOffer"!==e})(e=>{let{theme:t,isOnOffer:r}=e;return(0,a._)({},r?(0,s._)((0,a._)({},t.typography.body2),{textDecoration:"line-through",color:t.palette.error.main}):(0,a._)({},t.typography.subtitle2))}),x=e=>{let{amountOfDiscount:r,percentageDiscount:i,priceSetting:l,discountSetting:a,offLabel:s}=e,o=("amount"===a.type?r:i)||0,n="amount"===a.type?h.formatPrice:h.formatPercentage,c="amount"===a.type?null==l?void 0:l.pattern:a.pattern||"##%";return o<=0?null:(0,t.jsx)("div",{className:"discount-wrapper",children:(0,t.jsx)("span",{className:(0,d.default)(u.default.markdown,"markdown"),children:"".concat(n(o,c
2)," ").concat(s)})})},g=e=>{var r,i;let l=(0,c.useTranslations)()((null==(i=e.discountSetting)?void 0:i.offLabelKey)||"",{number:null!=(r=e.percentageDiscount)?r:0});return(0,t.jsx)(x,(0,s._)((0,a._)({},e),{offLabel:l}))},b=e=>{let{prices:r,customerSegments:i,discountSetting:l,priceSetting:a,prefixLabel:s,strikethrough:d=!0}=e,{isFuturePrice:c,listPrice:u,offerPrice:p,percentageDiscount:m,priceListKey:x,segment:b,showListPrice:v,amountOfDiscount:y}=(0,h.getProductPriceByCustomerSegments)(r,i)||{},w=(null==a?void 0:a.pattern)||"$##.##";return(0,t.jsxs)(_,{"data-segment":b,"data-price-list":x,"data-future-price":c,children:[s&&(0,t.jsx)("span",{className:"price-prefix",children:s}),v&&u&&(0,t.jsx)(o.ConditionalWrapper,{condition:!0,className:"list-price",wrapperTag:d?"s":"span",children:(0,h.formatPrice)(u,w)}),p&&(0,t.jsx)(f,{isOnOffer:!1,children:(0,h.formatPrice)(p,w)}),!(0,n.isEmpty)(l)&&(0,t.jsx)(g,{amountOfDiscount:y,percentageDiscount:m,priceSetting:a,discountSetting:l})]})};var v=e.i(929573),y=e.i(279338),w=e.i(271645);e.i(376322);var T=e.i(138684),j=e.i(400956),S=e.i(591792);e.s(["ShoppableTeaser",0,e=>{let{hotZones:a,hotZonesSettings:s,customerSegments:o}=e,n=(0,S.useLogger)("common","components","shoppableTeaser"),u=(0,c.useTranslations)(),[h,p]=(0,T.useInView)({unobserveOnEnter:!0}),m=(0,w.useMemo)(()=>(null==a?void 0:a.reduce((e,t)=>{var r,i;let l=null==(i=t.linkedContent)||null==(r=i.externalId)?void 0:r.split("/").pop();return l&&e.push(l),e},[]))||[],[a]),[_,f]=y.bffProductApi.endpoints.getProductsByPartnumber.useLazyQuery();return((0,w.useEffect)(()=>{m.length>0&&p&&_({partnumber:m,profile:"light_product"})},[_,p,m]),f.isError)?(n.error("get Shoppable hotZones ==>",{context:{error:f.error,originalArgs:f.originalArgs}}),null):(0,t.jsxs)("div",{ref:h,className:(0,d.default)("shoppable-teaser",j.default["shoppable-teaser"],{"light-contrast":null==s?void 0:s.lightContrast}),children:[(0,t.jsx)("button",{className:(0,d.default)("shoppable-teaser-icon",j.default["shoppable-teaser-icon"]),children:(0,t.jsx)(r.CartIcon,{})}),(0,t.jsx)("div",{className:j.default["shoppable-teaser-products"],children:null==m?void 0:m.map(e=>{var r;let a=null==(r=f.data)?void 0:r[e];return a?(0,t.jsxs)(l.LinkStyled,{href:a.url||v.NOT_FOUND,children:[(0,t.jsx)(i.ProductMedia,{attachments:a.attachments,sequence:"1.0",usage:"PLP",width:200,lazy:!0}),a.prices&&(0,t.jsx)(b,{prices:a.prices,customerSegments:o||[],priceSetting:{pattern:"$##.##"},discountSetting:{visible:!1,offLabelKey:"",pattern:"",type:"percentage"},strikethrough:!0,prefixLabel:u("ProductTile.Labels.from")})]},a.partnumberId):null})})]})}],202226)},400956,e=>{e.v({"shoppable-teaser":"index-module-scss-module__o9j64a__shoppable-teaser","shoppable-teaser-icon":"index-module-scss-module__o9j64a__shoppable-teaser-icon","shoppable-teaser-products":"index-module-scss-module__o9j64a__shoppable-teaser-products"})},890594,e=>{"use strict";var t=e.i(991706);let r=(e,t)=>{if(e&&"object"==typeof e&&"type"in e&&e.type===t)return e;if(Array.isArray(e))for(let i of e){let e=r(i,t);if(e)return e}if("object"==typeof e&&null!==e){for(let i in e)if(e.hasOwnProperty(i)){let l=r(e[i],t);if(l)return l}}};e.s(["findFirstPlacementByType",0,r,"findPlacementByName",0,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.find(e=>e.name===t)},"getToLink",0,e=>{var r,i,l;let a=null==e||null==(i=e.teaserLXCallToActionSettings)||null==(r=i[0])?void 0:r.target;return(null==a?void 0:a.formattedUrl)?a.formattedUrl:a&&(0,t.isCMExternalPage)(a)&&null!=(l=a.externalId)?l:""},"hasOverlay",0,e=>{var t;return!!(null==e||null==(t=e.teaserOverlay2Style)?void 0:t.includes("shadow"))},"hasTermsAndConditions",0,e=>{var t;let r=null==e||null==(t=e.targetsTermsAndConditions)?void 0:t.target;return!!(r&&Object.keys(r).length>0)},"isShoppableTeaser",0,e=>{if(!e)return!1;let t=e.hotZones;return Array.isArray(t)&&t.length>0}])}]);
3
4//# debugId=f36a51d4-449f-4599-e08e-c61bdf320f46

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.