1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[915],{11399:function(e,t,a){a.d(t,{Z:function(){return c}});var i=a(85893),r=a(67294),n=a(9008),o=a.n(n),l=a(96170),s=a(96567),d=a(77330),c=e=>{var t;let{product:a,content:n,path:c,tasticName:u}=e,{formatMessage:m}=(0,l.v)({name:"product"}),p=(0,r.useMemo)(()=>({title:m({id:"meta.title",defaultMessage:"Cameras and photography equipment from Nikon"}),description:m({id:"meta.desc",defaultMessage:"Find high quality cameras and photography accessories at Nikon"})}),[m]),v=(0,r.useMemo)(()=>{var e,t,i,r,n,o,l,u;if(!a)return null;let v=null==c?void 0:c.split("/").pop(),g=v&&d.q.isNumeric(v)?a.variants.find(e=>e.sku===v):a.variants[0],y=g?(0,s.L4)(a.name||"",g):null!==(t=d.q.validate(a.name))&&void 0!==t?t:d.q.validate(p.title);return{title:null!==(i=d.q.validate(a.metaTitle))&&void 0!==i?i:m({id:"overview.meta.title",defaultMessage:"Nikon {product} | {category} | Nikon USA",values:{product:y||"",category:(null===(e=a.categories)||void 0===e?void 0:e.length)&&a.categories[a.categories.length-1].name||""}}),description:null!==(n=null!==(r=d.q.validate(a.metaDescription))&&void 0!==r?r:d.q.validate(a.description))&&void 0!==n?n:d.q.validate(p.description),keywords:Array.isArray(a.searchKeywords)?a.searchKeywords.join(", "):null!==(o=a.searchKeywords)&&void 0!==o?o:"",image:null!==(u=null!==(l=null==g?void 0:g.socialImage)&&void 0!==l?l:null==g?void 0:g.representativeImage)&&void 0!==u?u:""}},[a,c,m,p]),g=(0,r.useMemo)(()=>{var e,t,a,i,r;if(!n)return null;let o=null!==(t=n.meta_keywords)&&void 0!==t?t:n.meta_keyword;return{title:null!==(a=d.q.validate(n.meta_title))&&void 0!==a?a:p.title,de
1scription:null!==(i=d.q.validate(n.meta_description))&&void 0!==i?i:d.q.validate(p.description),keywords:Array.isArray(o)?o.join(", "):null!=o?o:"",image:"string"==typeof n.meta_image?n.meta_image:null!==(r=null===(e=n.meta_image)||void 0===e?void 0:e.url)&&void 0!==r?r:""}},[n,p]),y=null!==(t=null!=v?v:g)&&void 0!==t?t:{title:p.title,description:p.description,keywords:"",image:""};return(0,i.jsxs)(o(),{children:[(0,i.jsx)("title",{children:y.title}),(0,i.jsx)("meta",{className:"swiftype",name:"description","data-type":"string",content:y.description}),y.keywords&&(0,i.jsx)("meta",{className:"swiftype",name:"keywords","data-type":"string",content:y.keywords}),y.image&&(0,i.jsx)("meta",{className:"swiftype",name:"image","data-type":"enum",content:y.image}),(0,i.jsx)("meta",{property:"og:title",content:y.title}),(0,i.jsx)("meta",{property:"og:description",content:y.description}),c&&(0,i.jsx)("meta",{property:"og:url",content:c}),y.image&&(0,i.jsx)("meta",{property:"og:image",content:y.image}),(0,i.jsx)("meta",{property:"og:type",content:"product"})]})}},8259:function(e,t,a){var i=a(85893),r=a(97375),n=a(19101),o=a(68070),l=a(70525);t.Z=e=>{let{data:t}=e;return(0,i.jsx)(r.Z,{"data-testid":"delivery-api-error",children:(0,i.jsx)(n.Z,{children:(0,i.jsx)(o.Z,{children:(0,i.jsxs)(l.Z,{variant:"danger",children:[(0,i.jsxs)("h4",{children:["Error ",t.status,": ",t.statusText]}),(0,i.jsxs)("p",{children:[t.error_message," ",(0,i.jsxs)("strong",{children:["(Error Code ",t.error_code,")"]})]})]})})})})}},80915:function(e,t,a){a.r(t);var i=a(85893);a(67294);var r=a(11163),n=a(8259),o=a(67695),l=a(21463),s=a(11399),d=a(42655),c=a(14351);t.default=e=>{var t,a,u;let{data:m}=e,p=null==m?void 0:null===(t=m.data)||void 0===t?void 0:t.dataSource.payload[0],v=(0,r.useRouter)(),g=(0,c.getLocalizationInfo)(v.locale).appLocale||"en_US";if(!p||[d.L.PT_BR].includes(g))return(0,i.jsx)(o.Z,{});if(null==p?void 0:p.err)return(0,i.jsx)(n.Z,{data:p.err});{let e=null!==(u=p.data.meta_data)&&void 0!==u?u:{},t={...e,title:e.meta_title||p.data.title,meta_image:e.meta_image||(null===(a=p.data.hero_nav)||void 0===a?void 0:a.nav_image)||null};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.Z,{content:t,tasticName:"ContentstackLNEHomepageTastic"}),(0,i.jsx)(l.Z,{data:p.data,contentTypeUid:p.contentTypeUid})]})}}}}]);
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.