PageSourceSearch

https://www.nikon.fr/dist-client/PromoCard-Chunk-c293e7b7d26dab3b7f1c.js

js nikon.fr collected 2026-09-24 17:52:43 UTC 8,950 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunknikon_client=globalThis.webpackChunknikon_client||[]).push([[5882],{97729(e,t,a){a.d(t,{A:()=>s});var r=a(13889),n=a(97500),i=a.n(n),l=a(65728);function o(){return o=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},o.apply(null,arguments)}const s=({children:e,className:t,dataTestId:a,disabled:n=!1,editHint:s,hasCustomStyling:c,icon:d,iconSize:p="18px",interactionTheme:u="grey-600",isLightMode:g,link:m,secondary:b=!1,secondaryBackgroundClassName:w="bg-transparent",tabIndex:h,theme:y="yellow",linkCallback:f,onFocus:v,...x})=>{const k="black"===y,A="red"===y,E=i()("text-black-100",{"group-hover:text-white group-focus:text-white group-active:text-white":b&&(k||A)}),C=(0,l.h)({className:t,disabled:n,hasCustomStyling:c,icon:d,interactionTheme:u,isLightMode:g,secondary:b,secondaryBackgroundClassName:w,theme:y});return m?.url&&(m?.name||e)&&!n?React.createElement("a",o({},x,{className:C,href:m.url,target:m.target,"data-epi-property-name":s,onClick:f,"data-testid":a,onFocus:v,tabIndex:h},"download"===d&&{download:m.url}),e||m.name,d&&React.createElement(r.A,{name:d,className:E,size:p})):React.createElement("button",o({},x,{className:C,disabled:n,"data-epi-property-name":s,"data-testid":a,onFocus:v,tabIndex:h}),e,d&&React.createElement(r.A,{name:d,className:"ml-2",colorClassName:E,size:p}))}},65728(e,t,a){a.d(t,{h:()=>i});var r=a(97500),n=a.n(r);const i=({className:e,disabled:t=!1,hasCustomStyling:a,icon:r,interactionTheme:i="grey-600",isLightMode:l,secondary:o=!1,secondaryBackgroundClassName:s="bg-transparent",theme:c="yellow"})=>{const d="yellow"===c,p="black"===c,u="red"===c;return n()({"bg-yellow py-1 px-4 text-black-100 hover:bg-yellow-100 focus:bg-yellow-500 active:bg-yellow-500":!a&&!t&&!o&&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 ${l?"":"dark:text-white dark:hover:text-black-100 dark:focus:text-black-100 dark:active:text-black-100"}`]:!a&&!t&&o&&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"}[i]}`]:!a&&!t&&!o&&p,"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&&o&&p,"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&&o&&u,"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)}},11183(e,t,a){a.d(t,{A:()=>d});var r=a(13889),n=a(26640),i=a(48210),l=a(97500),o=a.n(l),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=({children:e,classes:t,dataTestId:a,epiEdit:l,fallbackSize:d,image:p,imageClasses:u,imageRef:g,lazyLoad:m=!0,progressiveLoad:b=!0,showFallback:w,sizes:h=""})=>{const y=p?.mobile,f=p?.tablet,v=p?.desktop,x=p?.largeDesktop,k=(0,i.A)(),[A,E]=(0,s.useState)(!1);if(!v?.url&&!w)return null;const C={[n.A.Small]:y,[n.A.Medium]:f,[n.A.Large]:v,[n.A.XLarge]:x};return w&&!v?.url?React.createElement("div",{className:o()(t,"flex items-center justify-center")},React.createElement(r.A,{ariaHidden:!0,className:o()(u,"motion-safe:transition motion-safe:duration-500 motion-safe:ease-in-out"),name:"image-outline",size:d??"100%"}),e):React.createElement("picture",{className:o()(t)},React.createElement("source",{type:"image/webp",sizes:h,srcSet:`${y?.url} 376w, ${f?.url} 768w, ${v?.url} 1024w, ${x?.url} 1440w`}),React.createElement("img",c({ref:g,alt:p?.altText?.length?p?.altText:"nikon-image",className:o()(u,"motion-safe:transition motion-safe:duration-500 motion-safe:ease-in-out"),"data-epi-property-name":l,draggable:"false",loading:m?"lazy":"eager",onLoad:()=>{E(!0)},sizes:h,src:A&&b?C[k]?.url:y?.url,height:C[k]?.height,width:C[k]?.width,srcSet:`${y?.originalUrl} 376w, ${f?.originalUrl} 768w, ${v?.originalUrl} 1024w, ${x?.originalUrl} 1440w`},a&&{"data-testid":a})),A&&e)}},65922(e,t,a){a.r(t),a.d(t,{default:()=>s});var r=a(97729),n=a(11183),i=a(26093),l=a(97500),o=a.n(l);const s=({title:e,text:t,cta:a,image:l,isLargeCard:s,dataTestId:c="Promo-Card",meta:d,epiEdit:p})=>{const u=(0,i.A)(1440);return React.createElement("div",{className:o()("relative flex h-full w-full flex-col items-center justify-between gap-13 rounded-[10px] bg-grey-600 text-white lg:gap-7.5",s?"px-4 pt-4 pb-13 xl:gap-10 xl:pb-10":"px-4 pt-4 pb-13 lg:px-3 lg:pt-4 lg:pb-4 xl:gap-13 xl:px-4 xl:pb-13"),"data-testid":c,"data-epi-property-name":p},l&&React.createElement(n.A,{image:l,classes:"w-full",imageClasses:"w-full object-contain rounded-[10px]",dataTestId:`${c}-Image`,epiEdit:d?.editHints?.image}),React.createElement("div",{className:o()("flex w-[85%] flex-col items-center justify-center",s?"grow gap-4 lg:gap-7.5 xl:gap-6":"gap-5")},React.createElement("div",{className:o()("flex flex-col",s?"gap-4 lg:gap-7.5 xl:gap-6":"gap-2.5")},React.createElement("p",{className:o()("text-center",u||!s?"h5":"h3"),"data-testid":`${c}-Title`,"data-epi-property-name":d?.editHints?.title},e),t&&React.createElement("p",{className:"body-one text-center","data-testid":`${c}-Text`,"data-epi-property-name":d?.editHints?.text},t)),a?.url&&a.name&&React.createElement(r.A,{className:"text-center",link:a,dataTestId:`${c}-Link`,editHint:d?.editHints?.cta})))}},26640(e,t,a){a.d(t,{A:()=>n});var r=function(e){return e.Small="sm",e.Medium="md",e.Large="lg",e.XLarge="xl",e}(r||{});const n=r},30680(e,t,a){a.d(t,{A:()=>n});
1var r=function(e){return e.Screen="Screen",e.Viewport="Viewport",e}(r||{});const n=r},63904(e,t,a){a.d(t,{A:()=>n});var r=a(42926);const n=()=>{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}},48210(e,t,a){a.d(t,{A:()=>s});var r=a(26640),n=a(30680),i=a(63904),l=a(59471);const o=e=>{const t=768,a=1024,l=1440,o=(0,i.A)(),s=e===n.A.Viewport?window.innerWidth:window.innerWidth*o;return s<t?r.A.Small:s>=t&&s<a?r.A.Medium:s>=a&&s<l?r.A.Large:r.A.XLarge},s=(e=n.A.Viewport)=>{const[t,a]=(0,l.useState)(),r=(0,l.useCallback)(()=>a(o(e)),[e]);return(0,l.useEffect)(()=>(window.addEventListener("resize",r),a(o(e)),()=>{window.removeEventListener("resize",r)}),[r,e]),t}},26093(e,t,a){a.d(t,{A:()=>l});var r=a(30680),n=a(63904),i=a(59471);const l=(e,t=r.A.Viewport)=>{const[a,l]=(0,i.useState)(),o=(0,i.useCallback)(()=>{const a=(0,n.A)(),i=t===r.A.Viewport?window.innerWidth:window.innerWidth*a;l(i<e)},[e,t]);return(0,i.useEffect)(()=>(window.addEventListener("resize",o),o(),()=>{window.removeEventListener("resize",o)}),[o]),a}},16621(e,t,a){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var n in t=arguments[a])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},r.apply(this,arguments)},n=this&&this.__rest||function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(a[r[n]]=e[r[n]])}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.iconList=void 0;var i=a(59471);t.iconList=function(e){return e&&Array.isArray(e.icons)?e.icons.map(function(e){return e.properties.name}):null},t.default=function(e){var t=e.iconSet,a=e.icon,l=e.size,o=e.title,s=e.disableFill,c=e.removeInlineStyle,d=e.native,p=e.SvgComponent,u=e.PathComponent,g=n(e,["iconSet","icon","size","title","disableFill","removeInlineStyle","native","SvgComponent","PathComponent"]);if(!t||!a)return null;var m=t.icons.find(function(e){return e.properties.name===a});if(!m)return null;var b={display:"inline-block",stroke:"currentColor",fill:"currentColor"};d&&(b.display="flex",b.flexDirection="row",b.flexWrap="wrap");var w=r(r(r({},c?{}:b),l?{width:l,height:l}:{}),g.style||{}),h=m.icon.width,y="0 0 ".concat(void 0===h?"1024":h," 1024"),f=m.icon.paths.map(function(e,t){var n,l=null===(n=m.icon.attrs)||void 0===n?void 0:n[t],o=r({d:e,key:a+t},!s&&l?l:{});return(0,i.createElement)(u||"path",o)});return o&&!d&&f.push((0,i.createElement)("title",{key:o},o)),(0,i.createElement)(p||"svg",r(r({},g),{viewBox:y,style:w}),f)}}}]);
2//# sourceMappingURL=PromoCard-Chunk-c293e7b7d26dab3b7f1c.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.