PageSourceSearch

https://www.nikon.ch/dist-client/LocationDiverter-Chunk-89c8d0f0c9aa685a0f34.js

js nikon.ch collected 2026-09-26 05:22:55 UTC 14,774 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunknikon_client=globalThis.webpackChunknikon_client||[]).push([[3287],{97729(e,t,a){a.d(t,{A:()=>s});var r=a(13889),n=a(97500),o=a.n(n),i=a(65728);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 s=({children:e,className:t,dataTestId:a,disabled:n=!1,editHint:s,hasCustomStyling:l,icon:d,iconSize:u="18px",interactionTheme:m="grey-600",isLightMode:g,link:b,secondary:p=!1,secondaryBackgroundClassName:f="bg-transparent",tabIndex:v,theme:y="yellow",linkCallback:h,onFocus:w,...x})=>{const E="black"===y,k="red"===y,R=o()("text-black-100",{"group-hover:text-white group-focus:text-white group-active:text-white":p&&(E||k)}),A=(0,i.h)({className:t,disabled:n,hasCustomStyling:l,icon:d,interactionTheme:m,isLightMode:g,secondary:p,secondaryBackgroundClassName:f,theme:y});return b?.url&&(b?.name||e)&&!n?React.createElement("a",c({},x,{className:A,href:b.url,target:b.target,"data-epi-property-name":s,onClick:h,"data-testid":a,onFocus:w,tabIndex:v},"download"===d&&{download:b.url}),e||b.name,d&&React.createElement(r.A,{name:d,className:R,size:u})):React.createElement("button",c({},x,{className:A,disabled:n,"data-epi-property-name":s,"data-testid":a,onFocus:w,tabIndex:v}),e,d&&React.createElement(r.A,{name:d,className:"ml-2",colorClassName:R,size:u}))}},65728(e,t,a){a.d(t,{h:()=>o});var r=a(97500),n=a.n(r);const o=({className:e,disabled:t=!1,hasCustomStyling:a,icon:r,interactionTheme:o="grey-600",isLightMode:i,secondary:c=!1,secondaryBackgroundClassName:s="bg-transparent",theme:l="yellow"})=>{const d="yellow"===l,u="black"===l,m="red"===l;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&&!c&&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 ${i?"":"dark:text-white dark:hover:text-black-100 dark:focus:text-black-100 dark:active:text-black-100"}`]:!a&&!t&&c&&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"}[o]}`]:!a&&!t&&!c&&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&&c&&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&&c&&m,"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),o=a(48210),i=a(97500),c=a.n(i),s=a(59471);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 d=({children:e,classes:t,dataTestId:a,epiEdit:i,fallbackSize:d,image:u,imageClasses:m,imageRef:g,lazyLoad:b=!0,progressiveLoad:p=!0,showFallback:f,sizes:v=""})=>{const y=u?.mobile,h=u?.tablet,w=u?.desktop,x=u?.largeDesktop,E=(0,o.A)(),[k,R]=(0,s.useState)(!1);if(!w?.url&&!f)return null;const A={[n.A.Small]:y,[n.A.Medium]:h,[n.A.Large]:w,[n.A.XLarge]:x};return f&&!w?.url?React.createElement("div",{className:c()(t,"flex items-center justify-center")},React.createElement(r.A,{ariaHidden:!0,className:c()(m,"motion-safe:transition motion-safe:duration-500 motion-safe:ease-in-out"),name:"image-outline",size:d??"100%"}),e):React.createElement("picture",{className:c()(t)},React.createElement("source",{type:"image/webp",sizes:v,srcSet:`${y?.url} 376w, ${h?.url} 768w, ${w?.url} 1024w, ${x?.url} 1440w`}),React.createElement("img",l({ref:g,alt:u?.altText?.length?u?.altText:"nikon-image",className:c()(m,"motion-safe:transition motion-safe:duration-500 motion-safe:ease-in-out"),"data-epi-property-name":i,draggable:"false",loading:b?"lazy":"eager",onLoad:()=>{R(!0)},sizes:v,src:k&&p?A[E]?.url:y?.url,height:A[E]?.height,width:A[E]?.width,srcSet:`${y?.originalUrl} 376w, ${h?.originalUrl} 768w, ${w?.originalUrl} 1024w, ${x?.originalUrl} 1440w`},a&&{"data-testid":a})),k&&e)}},64363(e,t,a){a.d(t,{A:()=>d});const r=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),n=(e,t)=>
1Object.entries(e).reduce((e,[t,a])=>("duration"!==t&&"delay"!==t||"number"!=typeof a?r(a)?e[t]=n(a,t):e[t]=a:e[t]=0,e),{..."transition"===t?{duration:0}:{}}),o=e=>{const t=Object.keys(e).reduce((t,a)=>{const o=e[a];return r(o)&&(t[a]=n(o,a)),t},{...e});return{...t,transition:{...t.transition||{},duration:0}}};var i=a(74632),c=a(24675),s=a(59471);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 d=({tag:e,ref:t,variants:a,initial:r,animate:n,exit:d,transition:u,layout:m,whileHover:g,...b})=>{const p=(0,s.useMemo)(()=>i.P[e||"div"],[e]),f=(0,c.I)(),v={variants:a,initial:r,animate:n,exit:d,transition:u,whileHover:g};return React.createElement(p,l({ref:t},f?o(v):v,{layout:!f&&m},b))}},7670(e,t,a){a.d(t,{A:()=>l});var r=a(64363),n=a(5961),o=a(61002),i=a(37417),c=a(32088),s=a(59471);const l=({children:e,isAnimationDisabled:t})=>{const a=(0,i.A)(),l=(0,o.A)(),d=(0,s.useRef)(null),u=(0,c.W)(d,{once:!0,margin:"100% 0p
1x -15% 0px"}),{isSoftLoadEnabled:m}=(0,n.A)(e=>({isSoftLoadEnabled:e.isSoftLoadEnabled}));return t||l?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:m&&u||!1===m||a?"visible":"hidden",transition:{opacity:{ease:"easeOut",duration:void 0===m?0:.6},y:{ease:"easeOut",duration:m?.6:0}}},e)}},19692(e,t,a){a.r(t),a.d(t,{default:()=>l});var r=a(97729),n=a(13889),o=a(11183),i=a(7670),c=a(97500),s=a.n(c);const l=({image:e,title:t,subTitle:a,suggestedWebsiteLabel:c,suggestedWebsiteLink:l,websites:d,notFoundTitle:u,notFoundSubtitle:m,notFoundCTA:g,footerText:b})=>React.createElement("section",{className:"bg-white text-black-100 dark:bg-black-100 dark:text-white","data-testid":"Location-Diverter"},React.createElement(i.A,null,React.createElement("div",{className:"h-full lg:grid lg:grid-cols-[repeat(14,minmax(0,1fr))] lg:gap-4"},React.createElement("div",{className:"hidden lg:col-span-6 lg:block"},React.createElement("div",{className:"sticky top-0 h-full max-h-screen"},React.createElement(o.A,{image:e,imageClasses:"h-full w-full object-cover",dataTestId:"Location-Diverter-Image"}))),React.createElement("div",{className:"pt-7.5 pb-13 max-lg:container lg:col-span-6 lg:col-start-8 lg:pt-[70px] lg:pb-24"},React.createElement("p",{className:"h1 mb-[15px]","data-testid":"Location-Diverter-Title"},t),React.createElement("p",{className:"body-one mb-[15px] lg:mb-10","data-testid":"Location-Diverter-SubTitle"},a),React.createElement("div",{className:"mb-10 md:grid md:grid-cols-6 md:items-center md:gap-4","data-testid":"Location-Diverter-Suggested-Website"},React.createElement("p",{className:"body-one max-md:mb-[15px] md:col-span-3 xl:col-span-4"},c),React.createElement("a",{href:l.url,target:l.target,className:"flex items-center gap-x-2.5 rounded-[5px] border border-grey-600 bg-grey-100 p-2.5 hover:bg-[#E7E8E8] md:col-span-3 xl:col-span-2"},l.linkIcon&&React.createElement("div",{className:"flex"},React.createElement(n.A,{name:l.linkIcon})),React.createElement("p",{className:"body-three"},l.name))),React.createElement("div",{className:s()("gap-y-2.5 max-md:flex max-md:flex-col md:grid md:grid-cols-6 md:gap-x-4",{"mb-7.5 lg:mb-[70px]":u||m||g?.name&&g.url}),"data-testid":"Location-Diverter-Websites-List"},d.map(({name:e,url:t,target:a,linkIcon:r})=>React.createElement("a",{key:`${e}-${t}`,href:t,target:a,className:"flex items-center gap-x-2.5 rounded-[5px] bg-grey-100 p-2.5 hover:bg-[#E7E8E8] md:col-span-3 xl:col-span-2"},r&&React.createElement("div",{className:"flex"},React.createElement(n.A,{name:r})),React.createElement("p",{className:"body-three"},e)))),u&&React.createElement("p",{className:"h4 mb-[15px]","data-testid":"Location-Diverter-Not-Found-Title"},u),m&&React.createElement("p",{className:"body-one mb-5","data-testid":"Location-Diverter-Not-Found-SubTitle"},m),g?.name&&g.url&&React.createElement(r.A,{link:g,dataTestId:"Location-Diverter-Not-Found-CTA"}))),b&&React.createElement("footer",{className:"bg-grey-600","data-testid":"Location-Diverter-Footer"},React.createElement("div",{className:"py-5 max-lg:container lg:grid lg:grid-cols-[repeat(14,minmax(0,1fr))] lg:gap-4 lg:py-[22px]"},React.createElement("p",{className:"body-four text-grey-500 lg:col-span-6 lg:col-start-8 lg:text-right"},b)))))},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});var r=function(e){return e.Screen="Screen",e.Viewport="Viewport",e}(r||{});const n=r},5961(e,t,a){a.d(t,{A:()=>r});const r=(0,a(44285).A)(e=>({isSoftLoadEnabled:void 0,setIsSoftLoadEnabled:t=>e({isSoftLoadEnabled:t})}))},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),o=a(63904),i=a(59471);const c=e=>{const t=768,a=1024,i=1440,c=(0,o.A)(),s=e===n.A.Viewport?window.innerWidth:window.innerWidth*c;return s<t?r.A.Small:s>=t&&s<a?r.A.Medium:s>=a&&s<i?r.A.Large:r.A.XLarge},s=(e=n.A.Viewport)=>{const[t,a]=(0,i.useState)(),r=(0,i.useCallback)(()=>a(c(e)),[e]);return(0,i.useEffect)(()=>(window.addEventListener("resize",r),a(c(e)),()=>{window.removeEventListener("resize",r)}),[r,e]),t}},97505(e,t,a){a.d(t,{A:()=>n});var r=a(59471);const n=()=>{const[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{t(!0)},[]),e}},61002(e,t,a){a.d(t,{A:()=>n});var r=a(59471);const n=()=>{const[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{t(window.self!==window.top)},[]),e}},37417(e,t,a){a.d(t,{A:()=>
1o});var r=a(24675),n=a(97505);const o=()=>{const e=(0,n.A)();return(0,r.I)()&&e}},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 o=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,i=e.size,c=e.title,s=e.disableFill,l=e.removeInlineStyle,d=e.native,u=e.SvgComponent,m=e.PathComponent,g=n(e,["iconSet","icon","size","title","disableFill","removeInlineStyle","native","SvgComponent","PathComponent"]);if(!t||!a)return null;var b=t.icons.find(function(e){return e.properties.name===a});if(!b)return null;var p={display:"inline-block",stroke:"currentColor",fill:"currentColor"};d&&(p.display="flex",p.flexDirection="row",p.flexWrap="wrap");var f=r(r(r({},l?{}:p),i?{width:i,height:i}:{}),g.style||{}),v=b.icon.width,y="0 0 ".concat(void 0===v?"1024":v," 1024"),h=b.icon.paths.map(function(e,t){var n,i=null===(n=b.icon.attrs)||void 0===n?void 0:n[t],c=r({d:e,key:a+t},!s&&i?i:{});return(0,o.createElement)(m||"path",c)});return c&&!d&&h.push((0,o.createElement)("title",{key:c},c)),(0,o.createElement)(u||"svg",r(r({},g),{viewBox:y,style:f}),h)}},44285(e,t,a){a.d(t,{A:()=>i});var r=a(59471);function n(e){let t;const a=new Set,r=(e,r)=>{const n="function"==typeof e?e(t):e;if(n!==t){const e=t;t=r?n:Object.assign({},t,n),a.forEach(a=>a(t,e))}},n=()=>t,o={setState:r,getState:n,subscribe:(e,r,o)=>r||o?((e,r=n,o=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let i=r(t);function c(){const a=r(t);if(!o(i,a)){const t=i;e(i=a,t)}}return a.add(c),()=>a.delete(c)})(e,r,o):(a.add(e),()=>a.delete(e)),destroy:()=>a.clear()};return t=e(r,n,o),o}const o="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?r.useEffect:r.useLayoutEffect;function i(e){const t="function"==typeof e?n(e):e,a=(e=t.getState,a=Object.is)=>{const[,n]=(0,r.useReducer)(e=>e+1,0),i=t.getState(),c=(0,r.useRef)(i),s=(0,r.useRef)(e),l=(0,r.useRef)(a),d=(0,r.useRef)(!1),u=(0,r.useRef)();let m;void 0===u.current&&(u.current=e(i));let g=!1;(c.current!==i||s.current!==e||l.current!==a||d.current)&&(m=e(i),g=!a(u.current,m)),o(()=>{g&&(u.current=m),c.current=i,s.current=e,l.current=a,d.current=!1});const b=(0,r.useRef)(i);o(()=>{const e=()=>{try{const e=t.getState(),a=s.current(e);l.current(u.current,a)||(c.current=e,u.current=a,n())}catch(e){d.current=!0,n()}},a=t.subscribe(e);return t.getState()!==b.current&&e(),a},[]);const p=g?m:u.current;return(0,r.useDebugValue)(p),p};return Object.assign(a,t),a[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const e=[a,t];return{next(){const t=e.length<=0;return{value:e.shift(),done:t}}}},a}},32088(e,t,a){a.d(t,{W:()=>i});var r=a(59471),n=a(20818);const o={some:0,all:1};function i(e,{root:t,margin:a,amount:i,once:c=!1,initial:s=!1}={}){const[l,d]=(0,r.useState)(s);return(0,r.useEffect)(()=>{if(!e.current||c&&l)return;const r={root:t&&t.current||void 0,margin:a,amount:i};return function(e,t,{root:a,margin:r,amount:i="some"}={}){const c=(0,n.K)(e),s=new WeakMap,l=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):l.unobserve(e.target)}else"function"==typeof a&&(a(e),s.delete(e.target))})},{root:a,rootMargin:r,threshold:"number"==typeof i?i:o[i]});
1return c.forEach(e=>l.observe(e)),()=>l.disconnect()}(e.current,()=>(d(!0),c?void 0:()=>d(!1)),r)},[t,e,a,c,i]),l}}}]);
2//# sourceMappingURL=LocationDiverter-Chunk-89c8d0f0c9aa685a0f34.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.