PageSourceSearch

https://www.nikon.ch/dist-client/ProductIntroWithLogo-Chunk-972d9c98fbe9b8fe2262.js

js nikon.ch collected 2026-09-26 05:24:41 UTC 9,964 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunknikon_client=globalThis.webpackChunknikon_client||[]).push([[8823],{11183(e,t,n){n.d(t,{A:()=>u});var r=n(13889),a=n(26640),i=n(48210),o=n(97500),s=n.n(o),c=n(59471);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(null,arguments)}const u=({children:e,classes:t,dataTestId:n,epiEdit:o,fallbackSize:u,image:d,imageClasses:f,imageRef:g,lazyLoad:m=!0,progressiveLoad:p=!0,showFallback:v,sizes:w=""})=>{const h=d?.mobile,b=d?.tablet,y=d?.desktop,S=d?.largeDesktop,A=(0,i.A)(),[E,x]=(0,c.useState)(!1);if(!y?.url&&!v)return null;const O={[a.A.Small]:h,[a.A.Medium]:b,[a.A.Large]:y,[a.A.XLarge]:S};return v&&!y?.url?React.createElement("div",{className:s()(t,"flex items-center justify-center")},React.createElement(r.A,{ariaHidden:!0,className:s()(f,"motion-safe:transition motion-safe:duration-500 motion-safe:ease-in-out"),name:"image-outline",size:u??"100%"}),e):React.createElement("picture",{className:s()(t)},React.createElement("source",{type:"image/webp",sizes:w,srcSet:`${h?.url} 376w, ${b?.url} 768w, ${y?.url} 1024w, ${S?.url} 1440w`}),React.createElement("img",l({ref:g,alt:d?.altText?.length?d?.altText:"nikon-image",className:s()(f,"motion-safe:transition motion-safe:duration-500 motion-safe:ease-in-out"),"data-epi-property-name":o,draggable:"false",loading:m?"lazy":"eager",onLoad:()=>{x(!0)},sizes:w,src:E&&p?O[A]?.url:h?.url,height:O[A]?.height,width:O[A]?.width,srcSet:`${h?.originalUrl} 376w, ${b?.originalUrl} 768w, ${y?.originalUrl} 1024w, ${S?.originalUrl} 1440w`},n&&{"data-testid":n})),E&&e)}},64363(e,t,n){n.d(t,{A:()=>u});const r=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),a=(e,t)=>Object.entries(e).reduce((e,[t,n])=>("duration"!==t&&"delay"!==t||"number"!=typeof n?r(n)?e[t]=a(n,t):e[t]=n:e[t]=0,e),{..."transition"===t?{duration:0}:{}}),i=e=>{const t=Object.keys(e).reduce((t,n)=>{const i=e[n];return r(i)&&(t[n]=a(i,n)),t},{...e});return{...t,transition:{...t.transition||{},duration:0}}};var o=n(74632),s=n(24675),c=n(59471);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(null,arguments)}const u=({tag:e,ref:t,variants:n,initial:r,animate:a,exit:u,transition:d,layout:f,whileHover:g,...m})=>{const p=(0,c.useMemo)(()=>o.P[e||"div"],[e]),v=(0,s.I)(),w={variants:n,initial:r,animate:a,exit:u,transition:d,whileHover:g};return React.createElement(p,l({ref:t},v?i(w):w,{layout:!v&&f},m))}},7670(e,t,n){n.d(t,{A:()=>l});var r=n(64363),a=n(5961),i=n(61002),o=n(37417),s=n(32088),c=n(59471);const l=({children:e,isAnimationDisabled:t})=>{const n=(0,o.A)(),l=(0,i.A)(),u=(0,c.useRef)(null),d=(0,s.W)(u,{once:!0,margin:"100% 0p
1x -15% 0px"}),{isSoftLoadEnabled:f}=(0,a.A)(e=>({isSoftLoadEnabled:e.isSoftLoadEnabled}));return t||l?React.createElement(React.Fragment,null,e):React.createElement(r.A,{"data-testid":"Soft-Load-Wrapper",ref:u,variants:{hidden:{opacity:0,y:60},visible:{opacity:1,y:0}},initial:"hidden",animate:f&&d||!1===f||n?"visible":"hidden",transition:{opacity:{ease:"easeOut",duration:void 0===f?0:.6},y:{ease:"easeOut",duration:f?.6:0}}},e)}},51536(e,t,n){n.r(t),n.d(t,{default:()=>s});var r=n(11183),a=n(7670),i=n(97500),o=n.n(i);const s=({text:e,images:t})=>React.createElement("section",{className:"component-padding bg-white text-black-100 dark:bg-black-100 dark:text-white"},React.createElement(a.A,null,React.createElement("div",{className:"container flex flex-col items-center gap-y-10 lg:gap-y-13"},React.createElement("div",{className:"lg:grid lg:grid-cols-12"},React.createElement("h2",{dangerouslySetInnerHTML:{__html:e},className:"h4 text-center lg:col-span-8 lg:col-start-3"})),!!t?.length&&React.createElement("div",{className:"flex w-full flex-col items-center justify-center gap-5 lg:max-w-[60%] lg:flex-row lg:gap-13 xl:max-w-[50%]"},t.map(e=>React.createElement(r.A,{image:e,classes:o()("max-lg:w-full",{"lg:w-full":1===t.length}),imageClasses:o()("w-full object-contain",{"max-h-16 lg:max-h-24":1===t.length,"max-h-7.5 lg:max-h-13":t.length>1}),key:`${e.desktop?.url}-logo`}))))))},26640(e,t,n){n.d(t,{A:()=>a});var r=function(e){return e.Small="sm",e.Medium="md",e.Large="lg",e.XLarge="xl",e}(r||{});const a=r},30680(e,t,n){n.d(t,{A:()=>a});var r=function(e){return e.Screen="Screen",e.Viewport="Viewport",e}(r||{});const a=r},5961(e,t,n){n.d(t,{A:()=>r});const r=(0,n(44285).A)(e=>({isSoftLoadEnabled:void 0,setIsSoftLoadEnabled:t=>e({isSoftLoadEnabled:t})}))},63904(e,t,n){n.d(t,{A:()=>a});var r=n(42926);const a=()=>{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,n){n.d(t,{A:()=>c});var r=n(26640),a=n(30680),i=n(63904),o=n(59471);const s=e=>{const t=768,n=1024,o=1440,s=(0,i.A)(),c=e===a.A.Viewport?window.innerWidth:window.innerWidth*s;return c<t?r.A.Small:c>=t&&c<n?r.A.Medium:c>=n&&c<o?r.A.Large:r.A.XLarge},c=(e=a.A.Viewport)=>{const[t,n]=(0,o.useState)(),r=(0,o.useCallback)(()=>n(s(e)),[e]);return(0,o.useEffect)(()=>(window.addEventListener("resize",r),n(s(e)),()=>{window.removeEventListener("resize",r)}),[r,e]),t}},97505(e,t,n){n.d(t,{A:()=>a});var r=n(59471);const a=()=>{const[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{t(!0)},[]),e}},61002(e,t,n){n.d(t,{A:()=>a});var r=n(59471);const a=()=>{const[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{t(window.self!==window.top)},[]),e}},37417(e,t,n){n.d(t,{A:()=>i});var r=n(24675),a=n(97505);const i=()=>{const e=(0,a.A)();return(0,r.I)()&&e}},16621(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},r.apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.iconList=void 0;var i=n(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,n=e.icon,o=e.size,s=e.title,c=e.disableFill,l=e.removeInlineStyle,u=e.native,d=e.SvgComponent,f=e.PathComponent,g=a(e,["iconSet","icon","size","title","disableFill","removeInlineStyle","native","SvgComponent","PathComponent"]);if(!t||!n)return null;var m=t.icons.find(function(e){return e.properties.name===n});if(!m)return null;var p={display:"inline-block",stroke:"currentColor",fill:"currentColor"};u&&(p.display="flex",p.flexDirection="row",p.flexWrap="wrap");var v=r(r(r({},l?{}:p),o?{width:o,height:o}:{}),g.style||{}),w=m.icon.width,h="0 0 ".concat(void 0===w?"1024":w," 1024"),b=m.icon.paths.map(function(e,t){var a,o=null===(a=m.icon.attrs)||void 0===a?void 0:a[t],s=r({d:e,key:n+t},!c&&o?o:{});return(0,i.createElement)(f||"path",s)});return s&&!u&&b.push((0,i.createElement)("title",{key:s},s)),(0,i.createElement)(d||"svg",r(r({},g),{viewBox:h,style:v}),b)}},44285(e,t,n){n.d(t,{A:()=>
1o});var r=n(59471);function a(e){let t;const n=new Set,r=(e,r)=>{const a="function"==typeof e?e(t):e;if(a!==t){const e=t;t=r?a:Object.assign({},t,a),n.forEach(n=>n(t,e))}},a=()=>t,i={setState:r,getState:a,subscribe:(e,r,i)=>r||i?((e,r=a,i=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let o=r(t);function s(){const n=r(t);if(!i(o,n)){const t=o;e(o=n,t)}}return n.add(s),()=>n.delete(s)})(e,r,i):(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,a,i),i}const i="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?r.useEffect:r.useLayoutEffect;function o(e){const t="function"==typeof e?a(e):e,n=(e=t.getState,n=Object.is)=>{const[,a]=(0,r.useReducer)(e=>e+1,0),o=t.getState(),s=(0,r.useRef)(o),c=(0,r.useRef)(e),l=(0,r.useRef)(n),u=(0,r.useRef)(!1),d=(0,r.useRef)();let f;void 0===d.current&&(d.current=e(o));let g=!1;(s.current!==o||c.current!==e||l.current!==n||u.current)&&(f=e(o),g=!n(d.current,f)),i(()=>{g&&(d.current=f),s.current=o,c.current=e,l.current=n,u.current=!1});const m=(0,r.useRef)(o);i(()=>{const e=()=>{try{const e=t.getState(),n=c.current(e);l.current(d.current,n)||(s.current=e,d.current=n,a())}catch(e){u.current=!0,a()}},n=t.subscribe(e);return t.getState()!==m.current&&e(),n},[]);const p=g?f:d.current;return(0,r.useDebugValue)(p),p};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const e=[n,t];return{next(){const t=e.length<=0;return{value:e.shift(),done:t}}}},n}},32088(e,t,n){n.d(t,{W:()=>o});var r=n(59471),a=n(20818);const i={some:0,all:1};function o(e,{root:t,margin:n,amount:o,once:s=!1,initial:c=!1}={}){const[l,u]=(0,r.useState)(c);return(0,r.useEffect)(()=>{if(!e.current||s&&l)return;const r={root:t&&t.current||void 0,margin:n,amount:o};return function(e,t,{root:n,margin:r,amount:o="some"}={}){const s=(0,a.K)(e),c=new WeakMap,l=new IntersectionObserver(e=>{e.forEach(e=>{const n=c.get(e.target);if(e.isIntersecting!==Boolean(n))if(e.isIntersecting){const n=t(e.target,e);"function"==typeof n?c.set(e.target,n):l.unobserve(e.target)}else"function"==typeof n&&(n(e),c.delete(e.target))})},{root:n,rootMargin:r,threshold:"number"==typeof o?o:i[o]});return s.forEach(e=>l.observe(e)),()=>l.disconnect()}(e.current,()=>(u(!0),s?void 0:()=>u(!1)),r)},[t,e,n,s,o]),l}}}]);
2//# sourceMappingURL=ProductIntroWithLogo-Chunk-972d9c98fbe9b8fe2262.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.