PageSourceSearch

https://www.nikon.fr/dist-client/FeaturedImageGallery-Chunk-875ee23301d6172d561b.js

js nikon.fr collected 2026-10-02 03:21:15 UTC 16,529 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunknikon_client=globalThis.webpackChunknikon_client||[]).push([[1338,2330,5763],{89993(e,t,a){a.d(t,{A:()=>s});var r=a(36223),i=a(97500),n=a.n(i),o=a(82008);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},l.apply(null,arguments)}const s=({children:e,className:t,dataTestId:a,disabled:i=!1,editHint:s,hasCustomStyling:c,icon:d,iconSize:u="18px",interactionTheme:b="grey-600",isLightMode:m,link:g,secondary:p=!1,secondaryBackgroundClassName:h="bg-transparent",tabIndex:v,theme:A="yellow",linkCallback:f,onFocus:y,...w})=>{const L="black"===A,x="red"===A,k=n()("text-black-100",{"group-hover:text-white group-focus:text-white group-active:text-white":p&&(L||x)}),S=(0,o.h)({className:t,disabled:i,hasCustomStyling:c,icon:d,interactionTheme:b,isLightMode:m,secondary:p,secondaryBackgroundClassName:h,theme:A});return g?.url&&(g?.name||e)&&!i?React.createElement("a",l({},w,{className:S,href:g.url,target:g.target,"data-epi-property-name":s,onClick:f,"data-testid":a,onFocus:y,tabIndex:v},"download"===d&&{download:g.url}),e||g.name,d&&React.createElement(r.A,{name:d,className:k,size:u})):React.createElement("button",l({},w,{className:S,disabled:i,"data-epi-property-name":s,"data-testid":a,onFocus:y,tabIndex:v}),e,d&&React.createElement(r.A,{name:d,className:"ml-2",colorClassName:k,size:u}))}},82008(e,t,a){a.d(t,{h:()=>n});var r=a(97500),i=a.n(r);const n=({className:e,disabled:t=!1,hasCustomStyling:a,icon:r,interactionTheme:n="grey-600",isLightMode:o,secondary:l=!1,secondaryBackgroundClassName:s="bg-transparent",theme:c="yellow"})=>{const d="yellow"===c,u="black"===c,b="red"===c;return i()({"bg-yellow py-1 px-4 text-black-100 hover:bg-yellow-100 focus:bg-yellow-500 active:bg-yellow-500":!a&&!t&&!l&&d,[`${s} border border-yellow py-[3px] px-[15px] text-black-100 hover:border-yellow-100 hover:bg-yellow-100 hover:text-black-100 focus:border-yellow-500 focus:bg-yellow-500 active:border-yellow-500 active:bg-yellow-500 ${o?"":"dark:text-white dark:hover:text-black-100 dark:focus:text-black-100 dark:active:text-black-100"}`]:!a&&!t&&l&&d,[`bg-black-100 py-1 px-4 text-white ${{"grey-250":"hover:bg-grey-250 focus:bg-grey-250 active:bg-grey-250","grey-600":"hover:bg-grey-600 focus:bg-grey-600 active:bg-grey-600"}[n]}`]:!a&&!t&&!l&&u,"border border-black-100 bg-transparent px-[15px] py-[3px] text-black-100 hover:bg-black-100 hover:text-white focus:bg-black-100 focus:text-white active:bg-black-100 active:text-white":!a&&!t&&l&&u,"border border-red-100 bg-transparent px-[15px] py-[3px] text-black-100 hover:bg-red-100 hover:text-white focus:bg-red-100 focus:text-white active:bg-red-100 active:text-white":!a&&!t&&l&&b,"bg-grey text-grey-500 py-1 px-4":t,"flex items-center w-fit group":r},"cta rounded-full inline-block min-h-min select-none",e)}},76439(e,t,a){a.d(t,{A:()=>d});var r=a(36223),i=a(30808),n=a(4586),o=a(97500),l=a.n(o),s=a(59471);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},c.apply(null,arguments)}const d=({ariaHidden:e,children:t,classes:a,dataTestId:o,epiEdit:d,fallbackSize:u,image:b,imageClasses:m,imageRef:g,lazyLoad:p=!0,progressiveLoad:h=!0,showFallback:v,sizes:A=""})=>{const f=b?.mobile,y=b?.tablet,w=b?.desktop,L=b?.largeDesktop,x=(0,n.A)(),[k,S]=(0,s.useState)(!1);if(!w?.url&&!v)return null;const C={[i.A.Small]:f,[i.A.Medium]:y,[i.A.Large]:w,[i.A.XLarge]:L};return v&&!w?.url?React.createElement("div",{className:l()(a,"flex items-center justify-center")},React.createElement(r.A,{ariaHidden:!0,className:l()(m,"motion-safe:transition motion-safe:duration-500 motion-safe:ease-in-out"),name:"image-outline",size:u??"100%"}),t):React.createElement("picture",{className:l()(a)},React.createElement("source",{type:"image/webp",sizes:A,srcSet:`${f?.url} 376w, ${y?.url} 768w, ${w?.url} 1024w, ${L?.url} 1440w`}),React.createElement("img",c({ref:g,alt:b?.altText?.length?b?.altText:"nikon-image","aria-hidden":e,className:l()(m,"motion-safe:transition motion-safe:duration-500 motion-safe:ease-in-out"),"data-epi-property-name":d,draggable:"false",loading:p?"lazy":"eager",onLoad:()=>{S(!0)},sizes:A,src:k&&h?C[x]?.url:f?.url,height:C[x]?.height,width:C[x]?.width,srcSet:`${f?.originalUrl} 376w, ${y?.originalUrl} 768w, ${w?.originalUrl} 1024w, ${L?.originalUrl} 1440w`},o&&{"data-testid":o})),k&&t)}},47976(e,t,a){a.d(t,{A:()=>d});const r=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),i=(e,t)=>
1Object.entries(e).reduce((e,[t,a])=>("duration"!==t&&"delay"!==t||"number"!=typeof a?r(a)?e[t]=i(a,t):e[t]=a:e[t]=0,e),{..."transition"===t?{duration:0}:{}}),n=e=>{const t=Object.keys(e).reduce((t,a)=>{const n=e[a];return r(n)&&(t[a]=i(n,a)),t},{...e});return{...t,transition:{...t.transition||{},duration:0}}};var o=a(63392),l=a(24675),s=a(59471);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},c.apply(null,arguments)}const d=({tag:e,ref:t,variants:a,initial:r,animate:i,exit:d,transition:u,layout:b,whileHover:m,...g})=>{const p=(0,s.useMemo)(()=>o.P[e||"div"],[e]),h=(0,l.I)(),v={variants:a,initial:r,animate:i,exit:d,transition:u,whileHover:m};return React.createElement(p,c({ref:t},h?n(v):v,{layout:!h&&b},g))}},95063(e,t,a){a.d(t,{A:()=>d});var r=a(36223),i=a(28428),n=a(66665),o=a(73359),l=a(97500),s=a.n(l),c=a(59471);const d=({additionalDataLayerProperties:e,direction:t,id:a,disabled:l=!1,hasBackgroundColor:d=!0,sizeClassName:u="h-10 w-10",iconName:b,iconSize:m,enabledArrowColor:g="text-black-100",disabledArrowColor:p,disabledBackgroundColor:h,isLightMode:v,onClick:A,ref:f})=>{const{nextAriaLabel:y,previousAriaLabel:w}=(0,o.A)(),L=(0,c.useRef)(null);return(0,c.useImperativeHandle)(f,()=>({focus:()=>L.current?.focus(),disabled:!!L.current?.disabled})),React.createElement("button",{ref:L,id:`${t===i.A.Left?"prevBtn":"nextBtn"}-${a}`,className:s()("flex select-none items-center justify-center rounded-full",u,{"animate-arrow-left":t===i.A.Left&&!l,"animate-arrow-right":t===i.A.Right&&!l,"cursor-pointer":!l,"cursor-default":l,"bg-yellow active:bg-yellow-500 xl:active:bg-yellow-500 xl:hover:bg-yellow-100":d&&!l,[`${h||"bg-grey "+(v?"":"dark:bg-grey-600")}`]:d&&l}),"aria-label":t===i.A.Left?w:y,disabled:l,"aria-disabled":l,tabIndex:l?-1:0,"data-testid":t===i.A.Left?"previous-slide":"next-slide",onClick:()=>{A?.(),(0,n.A)({event:"carousel",interaction:"tab_change",link_text:t===i.A.Left?"Previous":"Next",...e})}},React.createElement(r.A,{name:b||"arrow_"+(t===i.A.Left?"left":"right"),colorClassName:l?p||"text-grey-400 "+(v?"":"dark:text-grey-700"):g,size:m}))}},8222(e,t,a){a.d(t,{A:()=>c});var r=a(47976),i=a(76081),n=a(68194),o=a(65505),l=a(32088),s=a(59471);const c=({children:e,isAnimationDisabled:t})=>{const a=(0,o.A)(),c=(0,n.A)(),d=(0,s.useRef)(null),u=(0,l.W)(d,{once:!0,margin:"100% 0p
1x -15% 0px"}),{isSoftLoadEnabled:b}=(0,i.A)(e=>({isSoftLoadEnabled:e.isSoftLoadEnabled}));return t||c?React.createElement(React.Fragment,null,e):React.createElement(r.A,{"data-testid":"Soft-Load-Wrapper",ref:d,variants:{hidden:{opacity:0,y:60},visible:{opacity:1,y:0}},initial:"hidden",animate:b&&u||!1===b||a?"visible":"hidden",transition:{opacity:{ease:"easeOut",duration:void 0===b?0:.6},y:{ease:"easeOut",duration:b?.6:0}}},e)}},78242(e,t,a){a.r(t),a.d(t,{default:()=>c});var r=a(63304),i=a(8222),n=a(37875),o=a(97500),l=a.n(o);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s.apply(null,arguments)}const c=e=>{const{featureTitle:t,primaryImage:a,secondaryImages:o=[],meta:c}=(0,n.A)().productPageContent?.featuredImageGallery||e,d=[a?.meta?.contentLink,...o?.map(e=>e.meta?.contentLink).filter(e=>void 0!==e)??[]];return a&&0!==o?.length?React.createElement("section",{className:"component-padding bg-black-100 text-white","data-testid":"CT-165-Featured-Image-Gallery"},React.createElement(i.A,null,React.createElement("div",{className:"flex w-full flex-col gap-10 text-center md:gap-24"},t&&React.createElement("div",{className:"container flex w-full items-center justify-center"},React.createElement("h2",{className:"md:w-3/5","data-testid":"CT-165-Featured-Image-Gallery-Title","data-epi-property-name":c?.editHints?.featureTitle},t)),React.createElement("div",{className:"container flex flex-col items-center gap-4 md:flex-row"},React.createElement("div",{className:"md:w-1/2","data-epi-property-name":c?.editHints?.primaryImage},React.createElement(r.A,s({contentIds:d},a,{showAuthorOnHover:!0,imageClasses:"object-cover aspect-square h-full",dataTestId:"CT-165-Featured-Image-Gallery-Primary-Image"}))),React.createElement("div",{className:l()("md:w-1/2",{"grid grid-cols-2 gap-4":o.length>1}),"data-epi-property-name":c?.editHints?.secondaryImages},o.map((e,t)=>React.createElement(r.A,s({key:`${e.image.desktop.url}-gallery-image`,contentIds:d},e,{showAuthorOnHover:!0,imageClasses:"w-full h-auto object-cover aspect-square",dataTestId:`CT-165-Featured-Image-Gallery-Image-${t}`})))))))):null}},30808(e,t,a){a.d(t,{A:()=>i});var r=function(e){return e.Small="sm",e.Medium="md",e.Large="lg",e.XLarge="xl",e}(r||{});const i=r},44528(e,t,a){a.d(t,{A:()=>i});var r=function(e){return e.Screen="Screen",e.Viewport="Viewport",e}(r||{});const i=r},28428(e,t,a){a.d(t,{A:()=>i});var r=function(e){return e.Left="LEFT",e.Right="RIGHT",e}(r||{});const i=r},14365(e,t,a){a.d(t,{A:()=>i});var r=function(e){return e.Start="Start",e.Middle="Middle",e.End="End",e}(r||{});const i=r},58830(e,t,a){a.d(t,{A:()=>i});var r=function(e){return e.Small="SMALL",e.Medium="MEDIUM",e.Large="LARGE",e.XLarge="XLARGE",e}(r||{});const i=r},45403(e,t,a){a.d(t,{A:()=>i});var r=a(80078);const i=(0,a(44285).A)(e=>({ariaLabels:r.A,setAriaLabels:t=>e({ariaLabels:t})}))},37875(e,t,a){a.d(t,{A:()=>r});const r=(0,a(44285).A)(e=>({productPageContent:{awardsCarousel:void 0,breadcrumbs:void 0,cardCarousel:void 0,customerQuotes:void 0,compatibleProducts:void 0,extendedWarrantyCTAFeature:void 0,featuredImageGallery:void 0,includedAccessories:void 0,optionalAccessories:void 0,productFootnote:void 0,productOverview:void 0,subheaderStatementCards:void 0,tabbedProductsCrossSellList:void 0,technicalSpecifications:void 0},setProductPageContent:t=>e({productPageContent:t})}))},76081(e,t,a){a.d(t,{A:()=>r});const r=(0,a(44285).A)(e=>({isSoftLoadEnabled:void 0,setIsSoftLoadEnabled:t=>e({isSoftLoadEnabled:t})}))},80552(e,t,a){a.d(t,{A:()=>i});var r=a(42926);const i=()=>{const e=Math.abs(window.outerWidth-window.innerWidth)<=50?1:Number((window.outerWidth/window.innerWidth).toFixed(2));return r.gm&&!r.Fr?window.devicePixelRatio:e}},66665(e,t,a){a.d(t,{A:()=>r});const r=e=>{"undefined"!=typeof window&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push(e))}},73359(e,t,a){a.d(t,{A:()=>o});var r=a(45403),i=a(80078),n=a(59471);const o=()=>{const[e,t]=(0,n.useState)(i.A),a=(0,r.A)(e=>e.ariaLabels);return(0,n.useEffect)(()=>{t(a)},[a]),e}},4586(e,t,a){a.d(t,{A:()=>s});var r=a(30808),i=a(44528),n=a(80552),o=a(59471);const l=e=>{const t=768,a=1024,o=1440,l=(0,n.A)(),s=e===i.A.Viewport?window.innerWidth:window.innerWidth*l;return s<t?r.A.Small:s>=t&&s<a?r.A.Medium:s>=a&&s<o?r.A.Large:r.A.XLarge},s=(e=i.A.Viewport)=>{const[t,a]=(0,o.useState)(),r=(0,o.useCallback)(()=>a(l(e)),[e]);return(0,o.useEffect)(()=>(window.addEventListener("resize",r),a(l(e)),()=>{window.removeEventListener("resize",r)}),[r,e]),t}},2569(e,t,a){a.d(t,{A:()=>i});var r=a(59471);const i=()=>{const[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{t(!0)},[]),e}},28885(e,t,a){a.d(t,{A:()=>
1o});var r=a(44528),i=a(80552),n=a(59471);const o=(e,t=r.A.Viewport)=>{const[a,o]=(0,n.useState)(),l=(0,n.useCallback)(()=>{const a=(0,i.A)(),n=t===r.A.Viewport?window.innerWidth:window.innerWidth*a;o(n<e)},[e,t]);return(0,n.useEffect)(()=>(window.addEventListener("resize",l),l(),()=>{window.removeEventListener("resize",l)}),[l]),a}},68194(e,t,a){a.d(t,{A:()=>i});var r=a(59471);const i=()=>{const[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{t(window.self!==window.top)},[]),e}},65505(e,t,a){a.d(t,{A:()=>n});var r=a(24675),i=a(2569);const n=()=>{const e=(0,i.A)();return(0,r.I)()&&e}},33063(e,t,a){a.d(t,{A:()=>i});var r=a(59471);const i=()=>{const e=(0,r.useRef)(void 0),[t,a]=(0,r.useState)({width:0,height:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0}),i=(0,r.useCallback)(e=>{if(!Array.isArray(e))return;const t=e[0];a({width:t?.contentRect.width??0,height:t?.contentRect.height??0,clientWidth:t?.target.clientWidth??0,clientHeight:t?.target.clientHeight??0,scrollWidth:t?.target.scrollWidth??0,scrollHeight:t?.target.scrollHeight??0})},[]);return[(0,r.useCallback)(t=>{e.current&&!t&&(e.current.disconnect(),e.current=void 0),!e.current&&t&&(e.current=new ResizeObserver(i),e.current.observe(t))},[i]),t]}},80078(e,t,a){a.d(t,{A:()=>r});const r={authorPageAriaLabel:"Author page",backToFirstLevelNavigationAriaLabel:"Back to first level of navigation",breadcrumbAriaLabel:"Breadcrumb navigation",breadcrumbFooterAriaLabel:"Breadcrumb footer navigation",carouselSlideAriaLabel:"Slide",checkoutStepAriaLabel:"Step",clearCompanyNumberAriaLabel:"Clear company number input field",clearFiltersAriaLabel:"Clear filters",closeAddressListAriaLabel:"Close address list",closeMenuAriaLabel:"Close menu",closeMobileNavigationAriaLabel:"Close navigation",closeModalAriaLabel:"Close Modal",closeSignUpFormAriaLabel:"Close signup form",closeSiteNotificationAriaLabel:"Close site notification",compareImagesAriaLabel:"Compare images",copyToClipboardAriaLabel:"Copy to clipboard",countrySelectorCurrentCountryAriaLabel:"Select country, currently {0}",currentPriceAriaLabel:"Now",dateDayAriaLabel:"Day",dateMonthAriaLabel:"Month",dateYearAriaLabel:"Year",decreaseItemQuantityAriaLabel:"Decrease item quantity",editOrDeleteAriaLabel:"Edit or delete",filterOptionsAriaLabel:"Filter options",genreListingPageAriaLabel:"Genre listing page",goToSlideAriaLabel:"Go to slide",helpTextAriaLabel:"Help text",increaseItemQuantityAriaLabel:"Increase item quantity",initialPriceAriaLabel:"Was",mainNavigationAriaLabel:"Main navigation",moreInformationAriaLabel:"More information",muteVideoAriaLabel:"Mute video",nextAriaLabel:"Go to next slide",nikonHomepageAriaLabel:"Go to the Nikon homepage",openAddressListAriaLabel:"Open address list",openImageInFullScreenAriaLabel:"Open image in full screen",openMenuAriaLabel:"Open menu",overlayToCloseDesktopNavigationAriaLabel:"Close overlay",pauseVideoAriaLabel:"Pause video",phoneNumberPrefixAriaLabel:"Phone number prefix",playVideoAriaLabel:"Play video",play3DAriaLabel:"Play 3D view",playFPSPreviewAriaLabel:"Play FPS preview",pauseFPSPreviewAriaLabel:"Pause FPS preview",pause3DAriaLabel:"Pause 3D view",previousAriaLabel:"Go to previous slide",removeItemFromCartAriaLabel:"Remove item from cart",searchAriaLabel:"Search",shareToFacebookAriaLabel:"Share to Facebook",shareToWhatsappAriaLabel:"Share to Whatsapp",shareToXAriaLabel:"Share to X",siteNotificationsAriaLabel:"Site notifications banner",unmuteVideoAriaLabel:"Unmute video",useLeftAndRightArrowKeysAriaLabel:"Use the left and right arrow keys to adjust the image comparison.",uspStripAriaLabel:"Unique Selling Point Strip",videoAriaLabel:"Video",zoomInAriaLabel:"Zoom in",zoomOutAriaLabel:"Zoom out"}},32088(e,t,a){a.d(t,{W:()=>o});var r=a(59471),i=a(57671);const n={some:0,all:1};function o(e,{root:t,margin:a,amount:o,once:l=!1,initial:s=!1}={}){const[c,d]=(0,r.useState)(s);return(0,r.useEffect)(()=>{if(!e.current||l&&c)return;const r={root:t&&t.current||void 0,margin:a,amount:o};return function(e,t,{root:a,margin:r,amount:o="some"}={}){const l=(0,i.K)(e),s=new WeakMap,c=new IntersectionObserver(e=>
1{e.forEach(e=>{const a=s.get(e.target);if(e.isIntersecting!==Boolean(a))if(e.isIntersecting){const a=t(e.target,e);"function"==typeof a?s.set(e.target,a):c.unobserve(e.target)}else"function"==typeof a&&(a(e),s.delete(e.target))})},{root:a,rootMargin:r,threshold:"number"==typeof o?o:n[o]});return l.forEach(e=>c.observe(e)),()=>c.disconnect()}(e.current,()=>(d(!0),l?void 0:()=>d(!1)),r)},[t,e,a,l,o]),c}}}]);
2//# sourceMappingURL=FeaturedImageGallery-Chunk-875ee23301d6172d561b.js.map

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.