PageSourceSearch

https://www.nikonusa.com/_next/static/chunks/7542.ef32270c08a96fdd.js

js nikonusa.com collected 2026-09-24 15:17:42 UTC 13,076 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7542],{59966:function(e,t,r){"use strict";var a=r(85893),s=r(67294),l=r(56236),n=r(72597),o=r(54453);t.Z=e=>{var t;let{label:r,onChange:i,onBlur:c,onFocus:d,labelPosition:u="top",className:m="",innerRef:f,value:p,errorMessage:x,validation:h,hideCheckIcon:b,tooltip:g,...v}=e,[w,y]=(0,s.useState)(!1),[j,k]=(0,s.useState)(!1),[N,C]=(0,s.useState)(!1),[Z,F]=(0,s.useState)(!1),[E,M]=(0,s.useState)(!1);(0,s.useEffect)(()=>{if(h){let e=j&&E,t=null==h?void 0:h(p);C(e&&!!t),F(e&&!t)}},[E,j,h,p]);let R=(0,s.useCallback)(e=>{null==i||i(e),M(!0)},[i]),L=(0,s.useCallback)(e=>{y(!0),null==d||d(e)},[d]),S=(0,s.useCallback)(e=>{y(!1),k(!0),null==c||c(e)},[c]),I=(0,s.useMemo)(()=>w||!!p,[w,p]),z=(0,n.Z)(["h-40 focus:border-gray-500 focus:ring-0 w-full rounded-sm border border-neutral-500 px-12 text-primary-black placeholder:text-14 placeholder:leading-normal placeholder:text-secondary-black focus:outline-none disabled:cursor-not-allowed",I&&r&&"inline"==u?"pt-[20px] pb-[4px]":"py-10",{"border-red-500 focus:border-red-500":!!v.error&&I||Z||void 0!==v.isValid&&!v.isValid&&j},{"border-green-500 focus:border-green-500":!!v.isValid&&I||N},m]);return(0,a.jsxs)(l.Z.Group,{className:"mb-3",children:[(0,a.jsxs)("div",{className:"column mb-1 flex gap-2",children:[r&&(0,a.jsx)(l.Z.Label,{style:{margin:0},htmlFor:v.id,children:v.required?"".concat(r," *"):r}),(null==g?void 0:g.type)==="question"&&(0,a.jsx)(o.Z,{overlay:g.message,placement:"top",width:"20px",height:"20px",fontSize:"12px"})]}),(0,a.jsx)(l.Z.Control,{className:z,onChange:R,onFocus:L,onBlur:S,ref:f,value:p,...v,size:void 0,isValid:(N||v.isValid&&!I)&&!w&&!b}),(Z||v.error)&&(0,a.jsx)(l.Z.Control.Feedback,{type:"invalid",children:null!==(t=v.error)&&void 0!==t?t:x})]})}},54453:function(e,t,r){"use strict";var a=r(85893);r(67294);var s=r(4285),l=r(52974),n=r(32449),o=r.n(n);t.Z=e=>{let{overlay:t,placement:r,fontSize:n="16px",width:i="26px",height:c="26px"}=e;return(0,a.jsx)("div",{className:o().container,children:(0,a.jsx)(s.Z,{trigger:["hover","focus"],placement:r,overlay:(0,a.jsx)(l.Z,{id:"productItem-tooltip-popoover",children:(0,a.jsx)(l.Z.Body,{id:"productItem-tooltip-popoover-body",children:t})}),delay:150,children:(0,a.jsx)("button",{type:"button",style:{width:i,height:c,fontSize:n},children:(0,a.jsx)("div",{children:"?"})})})})}},57542:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return v}});var a=r(85893),s=r(67294),l=r(11163),n=r(17278);let o=s.forwardRef(function(e,t){let{title:r,titleId:a,...l}=e;return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":a},l),r?s.createElement("title",{id:a},r):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"}))}),i=s.forwardRef(function(e,t){let{title:r,titleId:a,...l}=e;return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":a},l),r?s.createElement("title",{id:a},r):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))});var c=r(59966),d=e=>{let[t,r]=(0,s.useState)(!0),[l,n]=(0,s.useState)("password"),d="w-15 h-15";return(0,a.jsx)("div",{className:"relative",children:(0,a.jsx)(c.Z,{type:l,hideCheckIcon:!0,...e,children:(0,a.jsx)("span",{className:"absolute right-12 top-20 z-10 translate-y-[-50%] hover:cursor-pointer",onClick:()=>{r(!t),n("password"===l?"text":"password")},children:t?(0,a.jsx)(o,{className:d}):(0,a.jsx)(i,{className:d})})})})},u=r(45859),m=r(70151),f=r(96170),p=r(87268),x=r(69879),h=e=>{let{token:t,accountLink:r,signInLink:o}=e,{formatMessage:i}=(0,f.v)({name:"error"}),{formatMessage:c}=(0,f.v)({name:"account"}),h=(0,l.useRouter)(),{resetPassword:b}
1=(0,x.mA)(),[g,v]=(0,s.useState)({email:"",password:"",confirmPassword:""}),[w,y]=(0,s.useState)(""),[j,k]=(0,s.useState)(!1),N=e=>{let{target:{name:t,value:r}}=e;v({...g,[t]:r})},C=()=>{let e=g.password===g.confirmPassword;return e||y(i({id:"password.noMatch",defaultMessage:"Passwords don't match"})),e},Z=async e=>{if(e.preventDefault(),C()){k(!0);try{(await b(t,g.password)).accountId?(y(""),null==h||h.push((0,p.q)(r))):y(i({id:"account.create.fail",defaultMessage:"Sorry. We couldn't create your account.."}))}catch(e){y(i({id:"wentWrong",defaultMessage:"Sorry. Something went wrong.."}))}k(!1)}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.Z,{as:"h3",fontFamily:"libre",className:"mb-16 text-16 md:mb-24 md:text-20 lg:text-24",children:c({id:"password.reset.headline",defaultMessage:"Reset your password"})}),(0,a.jsxs)("form",{onSubmit:Z,children:[w&&(0,a.jsx)(m.Z,{fontSize:12,className:"mb-12 capitalize text-accent-red",children:w}),(0,a.jsx)(d,{required:!0,id:"password",name:"password",autoComplete:"current-password",placeholder:c({id:"password",defaultMessage:"Password"}),className:"mb-16 md:mb-20",onChange:N}),(0,a.jsx)(d,{required:!0,id:"confirm-password",name:"confirmPassword",autoComplete:"current-password",placeholder:c({id:"password.confirm",defaultMessage:"Confirm Password"}),className:"mb-16 md:mb-20",onChange:N}),(0,a.jsx)(n.Z,{size:"full",type:"submit",className:"mb-16 text-16 leading-tight md:mb-20",disabled:j,children:c({id:"password.reset.keyword",defaultMessage:"Reset"})}),(0,a.jsx)(u.Z,{variant:"menu-item",className:"mx-auto block w-fit text-14",link:o,children:c({id:"account.back.sign",defaultMessage:"Back to sign in"})})]})]})},b=e=>{let{page:t}=e,r=(0,l.useRouter)(),{formatMessage:o}=(0,f.v)({name:"account"}),i=(0,s.useMemo)(()=>({login:{title:o({id:"welcome.back",defaultMessage:"Welcome back"}),buttonLabel:o({id:"sign.in",defaultMessage:"Sign in"}),link:"/login"},register:{title:o({id:"not.member.yet",defaultMessage:"Not a member yet?"}),buttonLabel:o({id:"account.register",defaultMessage:"Register"}),link:"/register"}}),[o]),c=(0,s.useMemo)(()=>i[t].title,[t,i]),d=(0,s.useMemo)(()=>i[t].buttonLabel,[t,i]);return(0,a.jsx)("div",{className:"mt-36 border-t border-t-neutral-400 pt-40 md:mt-56 md:pt-56 lg:mt-84 lg:pt-84",children:(0,a.jsxs)("div",{className:"m-auto grid max-w-[480px] px-16",children:[(0,a.jsx)(m.Z,{fontFamily:"libre",fontSize:16,className:"text-primary-black md:text-20 lg:text-24",as:"h3",children:c}),(0,a.jsx)(n.Z,{className:"mt-16 h-32 py-0 font-medium  md:mt-24 md:h-40 md:text-16",variant:"secondary",onClick:()=>{r.push(i[t].link)},children:d})]})})},g=e=>{let{token:t,accountLink:r,signInLink:s}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"m-auto grid max-w-[480px] px-16",children:(0,a.jsx)(h,{token:t,accountLink:r,signInLink:s})}),(0,a.jsx)(b,{page:"register"})]})},v=e=>{let{data:t}=e,{token:r}=(0,l.useRouter)().query;return(0,a.jsx)(g,{token:r,...t})}},38964:function(e,t,r){"use strict";r.d(t,{Ed:function(){return l},UI:function(){return s},XW:function(){return n}});var a=r(67294);function s(e,t){let r=0;return a.Children.map(e,e=>a.isValidElement(e)?t(e,r++):e)}function l(e,t){let r=0;a.Children.forEach(e,e=>{a.isValidElement(e)&&t(e,r++)})}function n(e,t){return a.Children.toArray(e).some(e=>a.isValidElement(e)&&e.type===t)}},56236:function(e,t,r){"use strict";r.d(t,{Z:function(){return S}});var a=r(93967),s=r.n(a),l=r(45697),n=r.n(l),o=r(67294),i=r(85893);let c={type:n().string,tooltip:n().bool,as:n().elementType},d=o.forwardRef((e,t)=>{let{as:r="div",className:a,type:l="valid",tooltip:n=!1,...o}=e;return(0,i.jsx)(r,{...o,ref:t,className:s()(a,"".concat(l,"-").concat(n?"tooltip":"feedback"))})});d.displayName="Feedback",d.propTypes=c;var u=r(26954),m=r(30122),f=r(97400);let p=o.forwardRef((e,t)=>{let{bsPrefix:r,className:a,htmlFor:l,...n}=e,{controlId:c}=(0,o.useContext)(m.Z);return r=(0,f.vE)(r,"form-check-label"),(0,i.jsx)("label",{...n,ref:t,htmlFor:l||c,className:s()(a,r)})});p.displayName="FormCheckLabel";var x=r(38964);let h=o.forwardRef((e,t)=>{let{id:r,bsPrefix:a,bsSwitchPrefix:l,inline:n=!1,reverse:c=!1,disabled:h=!1,isValid:b=!1,isInvalid:g=!1,feedbackTooltip:v=!1,feedback:w,feedbackType:y,className:j,style:k,title:N="",type:C="checkbox",label:Z,children:F,as:E="input",...M}=e;a=(0,f.vE)(a,"form-check"),l=(0,f.vE)(l,"form-switch");let{controlId:R}=(0,o.useContext)(m.Z),L=(0,o.useMemo)(()=>({controlId:r||R}),[R,r]),S=!F&&null!=Z&&!1!==Z||(0,x.XW)(F,p),I=(0,i.jsx)(u.Z,{...M,type:"switch"===C?"checkbox":C,ref:t,isValid:b,isInvalid:g,disabled:h,as:E});return(0,i.jsx)(m.Z.Provider,{value:L,children:(0,i.jsx)("div",{style:k,className:s()(j,S&&a,n&&"".concat(a,"-inline"),c&&"".concat(a,"-reverse"),"switch"===C&&l),
1children:F||(0,i.jsxs)(i.Fragment,{children:[I,S&&(0,i.jsx)(p,{title:N,children:Z}),w&&(0,i.jsx)(d,{type:y,tooltip:v,children:w})]})})})});h.displayName="FormCheck";var b=Object.assign(h,{Input:u.Z,Label:p});r(42473);let g=o.forwardRef((e,t)=>{let{bsPrefix:r,type:a,size:l,htmlSize:n,id:c,className:d,isValid:u=!1,isInvalid:p=!1,plaintext:x,readOnly:h,as:b="input",...g}=e,{controlId:v}=(0,o.useContext)(m.Z);return r=(0,f.vE)(r,"form-control"),(0,i.jsx)(b,{...g,type:a,size:n,ref:t,readOnly:h,id:c||v,className:s()(d,x?"".concat(r,"-plaintext"):r,l&&"".concat(r,"-").concat(l),"color"===a&&"".concat(r,"-color"),u&&"is-valid",p&&"is-invalid")})});g.displayName="FormControl";var v=Object.assign(g,{Feedback:d});let w=o.forwardRef((e,t)=>{let{className:r,bsPrefix:a,as:l="div",...n}=e;return a=(0,f.vE)(a,"form-floating"),(0,i.jsx)(l,{ref:t,className:s()(r,a),...n})});w.displayName="FormFloating";let y=o.forwardRef((e,t)=>{let{controlId:r,as:a="div",...s}=e,l=(0,o.useMemo)(()=>({controlId:r}),[r]);return(0,i.jsx)(m.Z.Provider,{value:l,children:(0,i.jsx)(a,{...s,ref:t})})});y.displayName="FormGroup";var j=r(68070);let k=o.forwardRef((e,t)=>{let{as:r="label",bsPrefix:a,column:l=!1,visuallyHidden:n=!1,className:c,htmlFor:d,...u}=e,{controlId:p}=(0,o.useContext)(m.Z);a=(0,f.vE)(a,"form-label");let x="col-form-label";"string"==typeof l&&(x="".concat(x," ").concat(x,"-").concat(l));let h=s()(c,a,n&&"visually-hidden",l&&x);return(d=d||p,l)?(0,i.jsx)(j.Z,{ref:t,as:"label",className:h,htmlFor:d,...u}):(0,i.jsx)(r,{ref:t,className:h,htmlFor:d,...u})});k.displayName="FormLabel";let N=o.forwardRef((e,t)=>{let{bsPrefix:r,className:a,id:l,...n}=e,{controlId:c}=(0,o.useContext)(m.Z);return r=(0,f.vE)(r,"form-range"),(0,i.jsx)("input",{...n,type:"range",ref:t,className:s()(a,r),id:l||c})});N.displayName="FormRange";let C=o.forwardRef((e,t)=>{let{bsPrefix:r,size:a,htmlSize:l,className:n,isValid:c=!1,isInvalid:d=!1,id:u,...p}=e,{controlId:x}=(0,o.useContext)(m.Z);return r=(0,f.vE)(r,"form-select"),(0,i.jsx)("select",{...p,size:l,ref:t,className:s()(n,r,a&&"".concat(r,"-").concat(a),c&&"is-valid",d&&"is-invalid"),id:u||x})});C.displayName="FormSelect";let Z=o.forwardRef((e,t)=>{let{bsPrefix:r,className:a,as:l="small",muted:n,...o}=e;return r=(0,f.vE)(r,"form-text"),(0,i.jsx)(l,{...o,ref:t,className:s()(a,r,n&&"text-muted")})});Z.displayName="FormText";let F=o.forwardRef((e,t)=>(0,i.jsx)(b,{...e,ref:t,type:"switch"}));F.displayName="Switch";var E=Object.assign(F,{Input:b.Input,Label:b.Label});let M=o.forwardRef((e,t)=>{let{bsPrefix:r,className:a,children:l,controlId:n,label:o,...c}=e;return r=(0,f.vE)(r,"form-floating"),(0,i.jsxs)(y,{ref:t,className:s()(a,r),controlId:n,...c,children:[l,(0,i.jsx)("label",{htmlFor:n,children:o})]})});M.displayName="FloatingLabel";let R={_ref:n().any,validated:n().bool,as:n().elementType},L=o.forwardRef((e,t)=>{let{className:r,validated:a,as:l="form",...n}=e;return(0,i.jsx)(l,{...n,ref:t,className:s()(r,a&&"was-validated")})});L.displayName="Form",L.propTypes=R;var S=Object.assign(L,{Group:y,Control:v,Floating:w,Check:b,Switch:E,Label:k,Text:Z,Range:N,Select:C,FloatingLabel:M})},26954:function(e,t,r){"use strict";var a=r(93967),s=r.n(a),l=r(67294),n=r(30122),o=r(97400),i=r(85893);let c=l.forwardRef((e,t)=>{let{id:r,bsPrefix:a,className:c,type:d="checkbox",isValid:u=!1,isInvalid:m=!1,as:f="input",...p}=e,{controlId:x}=(0,l.useContext)(n.Z);return a=(0,o.vE)(a,"form-check-input"),(0,i.jsx)(f,{...p,ref:t,type:d,id:r||x,className:s()(c,a,u&&"is-valid",m&&"is-invalid")})});c.displayName="FormCheckInput",t.Z=c},30122:function(e,t,r){"use strict";let a=r(67294).createContext({});t.Z=a},32449:function(e){e.exports={container:"question-info_container__E5gDA"}}}]);

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.