PageSourceSearch

https://www.nikon.fr/dist-client/RelatedCourses-Chunk-d4a09e6bbc8fea20f5c8.js

js nikon.fr collected 2026-09-24 17:51:33 UTC 8,019 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunknikon_client=globalThis.webpackChunknikon_client||[]).push([[2054,2330,5763],{45875(e,t,a){a.d(t,{A:()=>n});var l=a(53543),r=a(97500),o=a.n(r);const n=({bullets:e,textSize:t="body-three",textColour:a="text-black-100 dark:text-white",className:r,bulletClasses:n,bulletColour:i="text-black-100 dark:text-yellow",dataTestId:s})=>{const c=e.filter(e=>"string"==typeof e&&!!e||"object"==typeof e&&!!e?.name);return c.length?React.createElement("div",{className:o()("flex flex-wrap items-center",r),"data-testid":s},c.map((e,r)=>React.createElement("span",{key:"string"==typeof e?e:e?.name,className:o()("flex pr-2",a,t,n)},0!==r&&React.createElement("span",{"aria-hidden":"true",className:o()("mr-2 block",i)},"•"),"object"==typeof e&&React.createElement(l.A,{link:{...e,...e?.ariaLabel?{ariaLabel:`${e?.name} ${e?.ariaLabel}`}:{}},hasHoverUnderline:!0},e?.name),"string"==typeof e&&e))):null}},53543(e,t,a){a.d(t,{A:()=>o});var l=a(97500),r=a.n(l);const o=({link:e,linkCondition:t=!0,hasHoverUnderline:a,className:l,onLinkClick:o,children:n})=>e?.url&&t?React.createElement("a",{href:e.url,target:e.target,onClick:o,className:r()({"decoration-1 underline-offset-2 hover:underline":a},l),"aria-label":e.ariaLabel},n):React.createElement(React.Fragment,null,n)},33867(e,t,a){a.d(t,{A:()=>m});var l=a(13889),r=a(11183),o=a(66683),n=a(65251),i=a(85037),s=a(97500),c=a.n(s);const m=({backgroundColourClassName:e="bg-grey-100 dark:bg-grey-600",displayCheck:t=!1,displayOutline:a=!1,displayOutlineColor:s="border-yellow",iconToolTip:m,initials:u,size:d,thumbnail:p,tooltipBackgroundColor:b,dataTestId:f="Profile-Picture"})=>{const h={[n.A.Size30]:"w-[30px] h-[30px]",[n.A.Size38]:"w-[38px] h-[38px]",[n.A.Size41]:"w-[41px] h-[41px]",[n.A.Size50]:"w-[50px] h-[50px]",[n.A.Size76]:"w-[76px] h-[76px]",[n.A.Size120]:"w-[120px] h-[120px]"},A={[n.A.Size30]:"small-text",[n.A.Size38]:"small-text",[n.A.Size41]:"small-text",[n.A.Size50]:"body-four",[n.A.Size76]:"h6",[n.A.Size120]:"h4"},g={[n.A.Size30]:"0.625rem",[n.A.Size38]:"0.59375rem",[n.A.Size41]:"0.854rem",[n.A.Size50]:"1rem",[n.A.Size76]:"1.125rem",[n.A.Size120]:"1.5rem"},x={[n.A.Size30]:"right-0.5 -bottom-px",[n.A.Size38]:"right-0.5 -bottom-1",[n.A.Size41]:"right-1 -bottom-0.5",[n.A.Size50]:"right-0 bottom-0",[n.A.Size76]:"right-1 bottom-0",[n.A.Size120]:"right-2 bottom-2"};return React.createElement("div",{className:c()("relative shrink-0",h[d])},React.createElement("div",{className:c()({[`border-2 ${s}`]:a,[`${e}`]:!p},"h-full w-full rounded-full")},p?React.createElement(r.A,{image:p,imageClasses:"rounded-full w-full h-full",sizes:"300px",dataTestId:`${f}-Image`}):u&&React.createElement("div",{className:"flex h-full w-full items-center justify-center"},React.createElement("span",{className:c()("text-grey-450 uppercase dark:text-grey-100",A[d]),"data-testid":`${f}-Initials`},u))),t&&React.createElement("div",{className:c()("tooltip-parent absolute flex",x[d]),"aria-hidden":"true"},React.createElement(l.A,{name:"check",colorClassName:"text-black-100 bg-yellow rounded-full p-[1px]",size:g[d]}),m&&React.createElement(o.A,{label:m,position:i.A.Custom,backgroundColor:b,customContentClassName:"bottom-3 left-1/2"})))}},66683(e,t,a){a.d(t,{A:()=>n});var l=a(85037),r=a(97500),o=a.n(r);const n=({arrowRadiusClassName:e="rounded-sm",backgroundColor:t="bg-white",customArrowClassName:a,customContentClassName:r,customWrapperClassName:n,dataTestId:i="Tooltip",hasArrow:s,hasTooltipClass:c=!0,id:m,label:u,position:d,children:p})=>{const b={[l.A.Top]:"bottom-3 left-1/2 -translate-x-1/2",[l.A.Bottom]:"left-1/2 -translate-x-1/2 top-3",[l.A.BottomLeft]:"left-1/2 translate-x-[calc(-100%+20px)] top-3",[l.A.Custom]:r},f=d===l.A.Bottom||d===l.A.BottomLeft,h=d===l.A.Top;return React.createElement("div",{className:o()("absolute z-100 w-full",n,{tooltip:c,"top-0":h,"bottom-0":f})},s&&React.createElement("span",{className:o()("absolute left-1/2 h-[17px] w-[17px] -translate-x-1/2 rotate-45",t,e,a,{"top-2.5":f,"bottom-2.5":h}),"data-testid":`${i}-Arrow`}),p?React.createElement("div",{className:o()("absolute",b[d]),id:m,role:m?"tooltip":void 0},p):React.createElement("p",{className:o()("small-text absolute whitespace-nowrap rounded-full p-1 px-3 text-center text-black-100",t,b[d]),id:m,role:m?"tooltip":void 0,"data-testid":i},u))}},84654(e,t,a){a.d(t,{A:()=>c});var l=a(53543),r=a(33867),o=a(65251),n=a(43143),i=a(97500),s=a.n(i);const c=({authors:e,profilePictureSize:t=o.A.Size38,defaultPictureOutlineColor:a="border-grey-600",pictureBackgroun
1dColor:i="bg-black-100",showProfilePhotos:c=!0,dataTestId:m="Multiple-Authors",children:u,noLink:d})=>{const{authorPageAriaLabel:p}=(0,n.A)();return React.createElement("div",{className:"flex items-center","data-testid":m},c&&React.createElement("div",{className:"flex"},e.map(({image:e,name:o,role:n,initials:c,ambassador:u,link:b},f)=>React.createElement("div",{className:s()({"-ml-5":f>0}),key:`${o}${n?`-${n}`:""}`},React.createElement(l.A,{link:{...b,ariaLabel:`${o} ${p}`},linkCondition:!d},React.createElement(r.A,{thumbnail:e,displayOutline:!0,displayOutlineColor:u?"border-yellow":a,displayCheck:u,backgroundColourClassName:i,size:t,initials:c,dataTestId:`${m}-Author-${f}-Profile-Picture`}))))),u)}},54634(e,t,a){a.r(t),a.d(t,{default:()=>c});var l=a(97729),r=a(75030),o=a(87529),n=a(26093),i=a(90683);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 l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},s.apply(null,arguments)}const c=({cta:e,items:t,multipleDatesLabel:a,multipleLocationsLabel:c,multipleTimesLabel:m,multipleTrainersLabel:u,onlineLabel:d,sectionTitle:p,vatLabel:b,anchorId:f=""})=>{const h=(0,n.A)(768),A={multipleDatesLabel:a,multipleTimesLabel:m,multipleTrainersLabel:u,multipleLocationsLabel:c,onlineLabel:d,vatLabel:b};return React.createElement("section",{className:"component-padding dark bg-black-100 text-white",id:`a-${f}`},React.createElement("div",{className:"container flex items-center justify-between gap-5"},p&&React.createElement("h2",{className:"pb-7.5 md:pb-0"},p),!h&&e?.url&&e?.name&&React.createElement(l.A,{className:"shrink-0 lg:flex",link:e})),h?React.createElement("div",{className:"container flex flex-col gap-5"},t?.map(e=>React.createElement("div",{key:e.title,className:"stretch-card"},React.createElement(r.A,s({},e,A))))):React.createElement(o.A,{id:"related-courses-carousel",items:t??[],shadows:!0},e=>e.map(({ariaHidden:e,ariaLabel:t,...a})=>React.createElement(i.qr,{key:a.title,className:"stretch-card","aria-hidden":e,"aria-label":t},React.createElement(r.A,s({},a,A))))),h&&e?.name&&e?.url&&React.createElement("div",{className:"container mt-7.5 flex justify-start"},React.createElement(l.A,{link:e})))}},65251(e,t,a){a.d(t,{A:()=>r});var l=function(e){return e.Size30="SIZE30",e.Size38="SIZE38",e.Size41="SIZE41",e.Size50="SIZE50",e.Size76="SIZE76",e.Size120="SIZE120",e}(l||{});const r=l},85037(e,t,a){a.d(t,{A:()=>r});var l=function(e){return e.Top="Top",e.Bottom="Bottom",e.BottomLeft="BottomLeft",e.Custom="Custom",e}(l||{});const r=l},32088(e,t,a){a.d(t,{W:()=>n});var l=a(59471),r=a(20818);const o={some:0,all:1};function n(e,{root:t,margin:a,amount:n,once:i=!1,initial:s=!1}={}){const[c,m]=(0,l.useState)(s);return(0,l.useEffect)(()=>{if(!e.current||i&&c)return;const l={root:t&&t.current||void 0,margin:a,amount:n};return function(e,t,{root:a,margin:l,amount:n="some"}={}){const i=(0,r.K)(e),s=new WeakMap,c=new IntersectionObserver(e=>{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:l,threshold:"number"==typeof n?n:o[n]});return i.forEach(e=>c.observe(e)),()=>c.disconnect()}(e.current,()=>(m(!0),i?void 0:()=>m(!1)),l)},[t,e,a,i,n]),c}}}]);
2//# sourceMappingURL=RelatedCourses-Chunk-d4a09e6bbc8fea20f5c8.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.