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