PageSourceSearch

https://www.nikon.com.mt/dist-client/AccountHero-Chunk-9aabc1da9c3aa3418058.js

js nikon.com.mt collected 2026-10-06 14:20:30 UTC 5,398 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunknikon_client=globalThis.webpackChunknikon_client||[]).push([[2416],{31371(e,t,a){a.d(t,{A:()=>i});var n=a(97500),r=a.n(n);const i=({image:e,initials:t,sizeClassName:a="w-[70px] h-[70px]",initialsSize:n="h6",backgroundColor:i="bg-grey-100",initialsColor:o="text-grey-450",dataTestId:l="Account-Profile-Image"})=>e?.imageData?React.createElement("img",{alt:"account-profile",className:r()("rounded-full object-cover",a),src:`data:${e.contentType??"image/jpeg"};base64,${e.imageData}`,"data-testid":l}):React.createElement("div",{className:r()("flex items-center justify-center rounded-full",i,a),"data-testid":l},t&&React.createElement("span",{className:r()("uppercase",n,o)},t))},29609(e,t,a){a.d(t,{A:()=>o});var n=a(36223),r=a(97500),i=a.n(r);const o=({className:e,editHint:t,link:a,dataTestId:r="Return-Link"})=>React.createElement("a",{href:a.url,className:i()(e,"body-two group flex flex-row items-center gap-x-1 text-black-100 hover:text-grey-500 dark:text-white dark:hover:text-yellow"),"data-epi-property-name":t,"data-testid":r},React.createElement(n.A,{name:"chevron_right",className:"-translate-x-2 rotate-180",colorClassName:"text-black-100 group-hover:text-grey-500 dark:text-white dark:group-hover:text-yellow"}),a.name)},38386(e,t,a){a.r(t),a.d(t,{default:()=>s});var n=a(31371),r=a(29609),i=a(28885),o=a(97500),l=a.n(o);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 n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c.apply(null,arguments)}const s=({title:e,returnLink:t,name:a,profileImageViewModel:o,initials:s,height:d="tall"})=>{const u={tall:(t?"pb-12 pt-[1.125rem]":"py-9")+" xl:pb-[4.375rem] xl:pt-[8.75rem]",medium:"py-7.5 xl:py-[4.375rem]",short:"py-[0.9375rem] xl:py-7.5"},m="short"===d,p="tall"===d,h=(0,i.A)(768)?"body-one":"h4";return React.createElement("section",{className:l()("dark bg-black-100 text-white",u[d]),"data-testid":"CT-04-Account-Hero","aria-labelledby":"account-hero-title"},React.createElement("div",{className:"container flex flex-col gap-y-5"},t?.name&&t?.url&&React.createElement("div",{className:"flex"},React.createElement(r.A,{className:"block",link:t})),React.createElement("div",{className:"flex items-center justify-between"},React.createElement("h1",{id:"account-hero-title",className:l()({"hidden xl:block":!t&&p,[h]:m}),"data-testid":"CT-04-Account-Hero-Title"},e),React.createElement("div",{className:l()(t||!p?"hidden xl:flex":"flex","items-center gap-5"),"data-testid":"CT-04-Account-Hero-Return-Link"},a&&React.createElement("div",{className:l()({"order-2 xl:order-none":!t},m?"body-three":"body-one"),"data-testid":"CT-04-Account-Hero-Name"},a),(o?.imageData||s)&&React.createElement(n.A,c({image:o,initials:s,dataTestId:"CT-04-Account-Hero-Account-Profile-Image"},m?{sizeClassName:"w-10 h-10",initialsSize:"body-three"}:{}))))))}},44528(e,t,a){a.d(t,{A:()=>r});var n=function(e){return e.Screen="Screen",e.Viewport="Viewport",e}(n||{});const r=n},80552(e,t,a){a.d(t,{A:()=>r});var n=a(42926);const r=()=>{const e=Math.abs(window.outerWidth-window.innerWidth)<=50?1:Number((window.outerWidth/window.innerWidth).toFixed(2));return n.gm&&!n.Fr?window.devicePixelRatio:e}},28885(e,t,a){a.d(t,{A:()=>o});var n=a(44528),r=a(80552),i=a(59471);const o=(e,t=n.A.Viewport)=>{const[a,o]=(0,i.useState)(),l=(0,i.useCallback)(()=>{const a=(0,r.A)(),i=t===n.A.Viewport?window.innerWidth:window.innerWidth*a;o(i<e)},[e,t]);return(0,i.useEffect)(()=>(window.addEventListener("resize",l),l(),()=>{window.removeEventListener("resize",l)}),[l]),a}},16621(e,t,a){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++)for(var r in t=arguments[a])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)},r=this&&this.__rest||function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]])}return a};
1Object.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,o=e.size,l=e.title,c=e.disableFill,s=e.removeInlineStyle,d=e.native,u=e.SvgComponent,m=e.PathComponent,p=r(e,["iconSet","icon","size","title","disableFill","removeInlineStyle","native","SvgComponent","PathComponent"]);if(!t||!a)return null;var h=t.icons.find(function(e){return e.properties.name===a});if(!h)return null;var f={display:"inline-block",stroke:"currentColor",fill:"currentColor"};d&&(f.display="flex",f.flexDirection="row",f.flexWrap="wrap");var v=n(n(n({},s?{}:f),o?{width:o,height:o}:{}),p.style||{}),y=h.icon.width,w="0 0 ".concat(void 0===y?"1024":y," 1024"),b=h.icon.paths.map(function(e,t){var r,o=null===(r=h.icon.attrs)||void 0===r?void 0:r[t],l=n({d:e,key:a+t},!c&&o?o:{});return(0,i.createElement)(m||"path",l)});return l&&!d&&b.push((0,i.createElement)("title",{key:l},l)),(0,i.createElement)(u||"svg",n(n({},p),{viewBox:w,style:v}),b)}}}]);
2//# sourceMappingURL=AccountHero-Chunk-9aabc1da9c3aa3418058.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.