PageSourceSearch

https://www.nikon.fr/dist-client/CtaFeature-Chunk-47698f80edebf0cf3955.js

js nikon.fr collected 2026-10-02 03:22:48 UTC 6,614 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunknikon_client=globalThis.webpackChunknikon_client||[]).push([[5739],{70889(e,t,l){l.d(t,{A:()=>C});var a=l(92727),n=l(89993),o=l(76439),i=l(81894),r=function(e){return e.Left="LEFT",e.Right="RIGHT",e.Center="CENTER",e}(r||{});const c=r;var s=l(98190),g=function(e){return e.Top="TOP",e.Bottom="BOTTOM",e.Center="CENTER",e}(g||{});const m=g;var d=l(92230),x=l(8222),u=l(66665),p=l(97500),f=l.n(p);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},b.apply(null,arguments)}const h={[s.A.Yellow]:"max-lg:bg-yellow",[s.A.Black]:"max-lg:bg-black-100",[s.A.OffWhite]:"max-lg:bg-grey-100",[s.A.ShadowGrey]:"max-lg:bg-grey-600"},w={[s.A.Yellow]:"lg:bg-yellow",[s.A.Black]:"lg:bg-black-100",[s.A.OffWhite]:"lg:bg-grey-100",[s.A.ShadowGrey]:"lg:bg-grey-600"},v={[c.Left]:m.Top,[c.Right]:m.Bottom,[c.Center]:m.Center},C=({anchorId:e="",backgroundColour:t=s.A.ShadowGrey,ctaCallback:l,dataTestId:r="Banner",desktopAlignment:g=c.Center,fullWidth:p,glow:C,image:y,invertCTA:A=!1,isInCarousel:k=!1,link:T,linkText:E,meta:R,mobileAlignment:j,mobileImage:I,pulseAnimationLogo:O,pulseBackgroundAnimationEnabled:B,text:P,tint:N,title:L,titleTextColour:$})=>{const G=j||(k?m.Center:v[g]),S=G===m.Top,W=G===m.Bottom,_=G===m.Center,z=_||p,Y=_?h[s.A.Yellow]:h[t],F=g===c.Left,H=g===c.Right,M=g===c.Center,D=M||p,Q=M?w[s.A.Yellow]:w[t],q=!(!B||p||t!==s.A.Black||G===m.Center||!F&&!H);return React.createElement("section",b({className:f()("bg-white dark:bg-black-100",{"component-padding":!k,"lg:h-full":k},"white"===$?"text-white":"text-black-100"),"data-testid":r},e?{id:`a-${e}`}:{}),React.createElement(x.A,{isAnimationDisabled:k},React.createElement("div",{className:f()("container relative",{"lg:h-full":k})},React.createElement("div",{className:f()("relative flex w-full max-xl:px-4 lg:min-h-[500px]",Y,Q,{"max-lg:items-center max-lg:justify-center":_,"lg:items-center lg:justify-center":M,"max-lg:min-h-[335px]":_&&!k,"max-lg:min-h-[547px] lg:h-full":k,"max-lg:grid max-lg:min-h-[577px] max-lg:grid-flow-row":!_,"lg:grid lg:grid-cols-12":!M,"max-lg:min-h-full max-xl:px-0":B})},React.createElement("div",{className:f()({"max-lg:absolute max-lg:inset-0":z,"lg:absolute lg:inset-0":D,"max-lg:relative max-lg:z-[1] max-lg:max-h-[400px]":!z,"lg:relative lg:z-[1]":!D,"lg:col-span-5 lg:col-start-8 xl:col-span-5 xl:col-start-7":F&&!D,"lg:col-span-5 lg:col-start-1 xl:col-span-5 xl:col-start-2":H&&!D}),"data-epi-property-name":R?.editHints?.image,"data-testid":`${r}-Images-Container`},React.createElement(d.A,{imageLogoDimensionClasses:"w-[60px] md:w-[100px] lg:w-[60px] xl:w-[140px]",logo:O,logoPositionClasses:"top-[10%] right-[5%] xl:top-[10%] xl:right-[-15%]",shouldAnimate:q,videoPlayButtonPositionClassName:"bottom-0 left-[-33%] md:bottom-[12%] md:left-[-20%] lg:bottom-0 lg:left-[-12%] 2xl:right-[-43%] 2xl:bottom-[7%]",videoWrapperClasses:"max-w-[60%] md:max-w-[70%] lg:max-w-[80%]",wrapperClasses:"min-h-[181px] md:min-h-[430px] lg:min-h-[271px] lg:flex lg:h-full lg:justify-center lg:items-center xl:min-h-[413px] 2xl:min-h-[421px]"},N&&React.createElement("div",{className:f()("absolute top-0 left-0 z-[1] h-full w-full bg-black-100 object-contain opacity-50 lg:opacity-30",{"max-lg:hidden":!z,"lg:hidden":!D}),"data-testid":`${r}-Tint`}),React.createElement(o.A,{image:y,classes:f()("w-full",I&&B?"max-lg:hidden":""),imageClasses:f()("w-full h-full left-0 top-0 -z-1",{"max-lg:object-cover max-lg:absolute":z,"max-lg:object-contain":!z,"lg:object-cover lg:absolute":D,"lg:object-contain xl:m-auto xl:w-[80%]":!D&&!q,"max-lg:hidden":I}),dataTestId:`${r}-Image`}),I&&React.createElement(o.A,{image:I,classes:"w-full lg:hidden",imageClasses:f()("w-full h-full left-0 top-0 -z-1",{"object-cover absolute":z,"object-contain":!z}),dataTestId:`${r}-Mobile-Image`}),C&&React.createElement(a.A,{colour:i.A.Yellow,className:f()("absolute top-0 -z-10 h-full w-full object-contain",{"max-lg:hidden":z,"lg:hidden":D,"opacity-50":t!==s.A.OffWhite}),dataTestId:`${r}-Glow`}))),React.createElement("div",{className:f()("relative z-10 flex h-full flex-col items-center py-13",P?"lg:gap-7.5":"lg:gap-10",{"max-lg:justify-center max-lg:px-4":_,"lg:justify-center lg:max-xl:px-4":M,"xl:w-1/3":M&&!k,"xl
1:w-[46%]":M&&k,"lg:items-start lg:justify-center":!M,"max-lg:order-first":S,"lg:order-first lg:col-span-5 lg:col-start-2 xl:col-start-2":F,"xl:col-span-4":F&&!k,"xl:col-span-5":F&&k,"lg:col-span-5 lg:col-start-7 xl:col-span-4 xl:col-start-8":H,"max-lg:justify-end":W&&z})},L&&React.createElement("h2",{"data-epi-property-name":R?.editHints?.title,dangerouslySetInnerHTML:{__html:L},className:f()("self-center text-center",P?"max-lg:mb-2.5":"max-lg:mb-7.5",{"lg:self-start lg:text-left":!M}),"data-testid":`${r}-Title`}),P&&React.createElement("p",{className:f()("body-one text-center max-lg:mb-5",{"lg:text-left":!M}),"data-testid":`${r}-Text`},P),l&&E&&React.createElement(n.A,{onClick:l,dataTestId:`${r}-CTA-Button`,theme:A?"black":"yellow"},E),T?.url&&T?.name&&React.createElement(n.A,{linkCallback:()=>{(0,u.A)({event:"selectContent",content_type:"cta_feature_block",link_text:T.name})},link:T,dataTestId:`${r}-CTA-Link`,theme:A?"black":"yellow"}))))))}},48684(e,t,l){l.r(t),l.d(t,{default:()=>i});var a=l(70889),n=l(37875);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},o.apply(null,arguments)}const i=e=>{const t=(0,n.A)().productPageContent?.extendedWarrantyCTAFeature,l=t?Object.fromEntries(Object.entries(t).filter(([e,t])=>null!=t)):e;return l.isEmptyBlock?null:React.createElement(a.A,o({},l,{pulseAnimationLogo:l.warrantyLogo,dataTestId:"CT-29-Cta-Feature"}))}},98190(e,t,l){l.d(t,{A:()=>n});var a=function(e){return e.Black="black",e.Grey="grey",e.OffWhite="off-white",e.ShadowGrey="shadow-grey",e.Yellow="yellow",e}(a||{});const n=a},37875(e,t,l){l.d(t,{A:()=>a});const a=(0,l(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})}))}}]);
2//# sourceMappingURL=CtaFeature-Chunk-47698f80edebf0cf3955.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.