1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f5c5c7d4-e760-415a-bc2e-db8df8cc2253",e._sentryDebugIdIdentifier="sentry-dbid-f5c5c7d4-e760-415a-bc2e-db8df8cc2253")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1111],{31111:(e,t,n)=>{n.r(t),n.d(t,{default:()=>W});var r=n(3576),i=n(62701),o=n(37876),l=n(52197),a=n(18334),c=n(14232),s=n(78229),p=n(88992),d=n(64987),x=n(74529),m=n(48641),u=n(94323),h=n(83994),g=n(93826),f=n(6981),A=n(49084),b=n(99361),y=n(89244),w=n(70557),j=n(55489),H=n(45854),S=n(45778),k=n(92732),F=n(33579),_=n(48632),v=n(86225),C=n(5257),I=n(41521);let E=v.A.h1((0,C.AH)({fontFamily:"Urbanist",fontWeight:"200",fontSize:(0,I.A)(40),lineHeight:(0,I.A)(48),letterSpacing:"0.03em",color:"white",mb:"10px"})),z=v.A.p((0,C.AH)({pb:"30px",fontWeight:"600",lineHeight:(0,I.A)(24),textAlign:"center",letterSpacing:"0.035em"})),D=v.A.p((0,C.AH)({maxWidth:"650px",mb:"70px",letterSpacing:"0.035em",color:"secondaryTextOnLinearGradient"})),T=(0,v.A)(u.so)((0,C.AH)({position:"absolute",top:"-20px",left:"-20px",zIndex:"9",height:"calc(100% + 30px)",width:["calc(100% + 40px)","calc(100% + 40px)","470px"],flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"20px 70px",background:"rgba(5, 28, 33, 0.8)",border:"1px solid #414D50",backdropFilter:"blur(1px)"})),L=(0,v.A)(y.N9)((0,C.AH)({height:"460px",width:"470px"})),P=e=>{let{selectProps:{menuIsOpen:t}}=e;return(0,o.jsx)(d.c.DropdownIndicator,(0,i._)((0,r._)({},e),{children:(0,o.jsx)(_.In,{$menuIsOpen:t,width:20,height:20,alt:"arrow",src:"/img/arrow.svg"})}))},W=(0,F.default)(e=>{let{title:t,form:n}=e,[d,F]=(0,c.useState)(!1),[v,C]=(0,c.useState)(!1),{user:I,contentView:W}=(0,g.SF)(),[q,N]=(0,c.useState)([]),{getValues:B,watch:O,reset:R,register:V,handleSubmit:$,setError:M,setValue:Y,control:G,formState:{errors:K}}=(0,p.mN)(),U=(0,c.useRef)();(0,c.useEffect)(()=>{!async function(){await (0,h.iq)(A.qY)}()},[]),(0,c.useEffect)(()=>{let e=n.map(e=>(0,i._)((0,r._)({},e),{type:f.jy[e.fieldType],tag:f.lD[e.fieldType],choices:"dropdown"===e.fieldType?e.choices.map(e=>({value:e,label:e})):e.choices}));e.forEach(e=>{Y(e.name,e.defaultValue)}),N(e)},[n]);let J=async e=>{try{let e=await (0,k.a)(U);F(!0);let{form:t}=(await (0,h.MB)(A.qY,(0,i._)((0,r._)({},B()),{captcha:e}))).json.componentProps;if(F(!1),t.thanksText)R(),C(!0),window.dataLayer.push((0,i._)((0,r._)((0,i._)((0,r._)({userId:(null==I?void 0:I.userId)||"anonymous"},I&&{userEmail:I.email}),{contentView:W}),I&&{subscriptionType:I.userLevel}),{event:"contactUsFormSuccess"}));else for(let[e,n]of Object.entries(t.err))"captcha"===e&&m.oR.error("Captcha is required!"),M((0,S.C8)(e),{message:n.toString()})}catch(e){e.response||a.Cp(e,{tags:{form:"contact-us"}}),m.oR.error(e.name===k.J?e.message:"Server error"),F(!1)}};return(0,o.jsxs)(j.A,{children:[(0,o.jsx)(E,{children:t}),(0,o.jsx)(z,{children:"Have questions? Contact Military Periscope."}),(0,o.jsx)(D,{id:"form-intro",children:"Please fill out the form below with your contact information and one of our customer service representatives will be in touch shortly."}),v?(0,o.jsxs)(L,{children:[(0,o.jsx)(y.az,{}),(0,o.jsx)(y.rg,{children:"Thank You for contacting us!"})]}):(0,o.jsxs)(y.lV,{onSubmit:$(J),children:[(0,o.jsxs)(b.A,{children:[d&&(0,o.jsx)(T,{children:(0,o.jsx)(u.y$,{color:"#FEC325",size:56})}),q.map(e=>"select"===e.tag?(0,o.jsx)(p.xI,{control:G,defaultValue:"",rules:e.validation,name:e.name,render:t=>{let{field:{onChange:n,value:r,ref:i}}=t;return(0,o.jsxs)(b.A,{children:[(0,o.jsx)(H.A,{htmlFor:e.name,children:e.name}),(0,o.jsx)(x.Ay,{inputRef:i,name:e.name,inputId:e.name,styles:_.p5,options:e.choices,components:{DropdownIndicator:P},value:e.choices.filter(e=>r.includes(e.value)),onChange:e=>n(e.value),required:e.required,isSearchable:!0,placeholder:(0,o.jsx)("div",{children:e.name}),$isErrored:K[e.name],defaultValue:e.defaultValue||"Select",menuPortalTarget:"undefined"!=typeof document?document.body:null,menuPosition:"fixed"}),(0,o.jsx)(l.K,{errors:K,name:e.name,render:e=>{let{message:t}=e;return(0,o.jsx)(y.Ct,{children:t})}})]})}},e.name):"checkboxes"===e.tag?(0,o.jsxs)("div",{children:[(0,o.jsx)("label",{children:e.helpText}),(0,o.jsx)(y.PF,{children:e.choices.map((t,n)=>(0,o.jsxs)(y.Yh,{children:[(0,o.jsx)("input",(0,r._)({type:"checkbox",id:"".concat(e.name,"-").concat(n),name:e.name,value:t},V("".concat(e.name,".").concat(t)))),(0,o.jsx)("label",{htmlFor:"".concat(e.name,"-").concat(n),children:t})]},n))})]},e.name):(0,o.jsxs)(y.zB,{$isErrored:K[e.name],$hideLabelAfterFocus:"textarea"===e.tag,children:[(0,o.jsx)(y.JU,{className:O(e.name)&&"filled",htmlFor:e.name,children:e.helpText}),(0,o.jsx)(e.tag,(0,i._)((0,r._)({type:e.type},V(e.name,e.validation)),{id:e.name,autoComplete:f.aq[e.name]||"off",className:O(e.name)&&"filled"})),(0,o.jsx)(l.K,{errors:K,name:e.name,render:e=>{let{message:t}=e;return(0,o.jsx)(y.yn,{children:t})}})]},e.name)),h.iw&&(0,o.jsx)(w.A,{children:(0,o.jsx)(s.A,{ref:U,size:"invisible",sitekey:h.iw})})]}),(0,o.jsx)(y.b7,{className:"independent",as:"input",type:"submit",value:"Send Message",children:"Send Message"})]})]})})},48632:(e,t,n)=>{n.d(t,{$3:()=>D,CI:()=>A,Dh:()=>z,EE:()=>E,Fr:()=>T,In:()=>_,KO:()=>j,KR:()=>v,LQ:()=>I,M0:()=>S,Nj:()=>w,VY:()=>b,bt:()=>f,dJ:()=>H,gd:()=>L,hE:()=>g,iQ:()=>C,p5:()=>F,pG:()=>k,xW:()=>y});var r=n(3576),i=n(62701),o=n(28888),l=n(46608),a=n(5257),c=n(94323),s=n(40932),p=n(18693),d=n(31863),x=n(89244),m=n(31351),u=n(41521);function h(){let e=(0,o._)(["\n transform: ",";\n"]);return h=function(){return e},e}let g=d.A.h1((0,a.AH)({maxWidth:"800px",mb:"56px",fontFamily:"'Urbanist'",fontWeight:"200",fontSize:(0,u.A)(40),lineHeight:(0,u.A)(48),textAlign:"center",letterSpacing:"0.03em"})),f=d.A.p((0,a.AH)({fontSize:(0,u.A)(24),lineHeight:(0,u.A)(24),letterSpacing:"0.035em",color:"white",mb:"40px",textAlign:"left"}));d.A.p((0,a.AH)({fontSize:(0,u.A)(22),lineHeight:(0,u.A)(34),letterSpacing:"0.035em",color:"white",mb:"40px",textAlign:"left"})),d.A.p((0,a.AH)({width:["auto","495px"],fontWeight:"500",lineHeight:(0,u.A)(24),textAlign:"center",letterSpacing:"0.035em"})),d.A.span((0,a.AH)({color:"helpingText",cursor:"pointer","&:hover":{textDecoration:"underline"}}));let A=(0,d.A)(c.so)((0,a.AH)({gap:"90px",["@media (max-width: ".concat(p.A.breakpoints[2],")")]:{flexDirection:"column",alignItems:"center"}})),b=(0,d.A)(c.so)((0,a.AH)({flexDirection:"column",width:["100%","100%","505px"]})),y=d.A.p(e=>{let{mt:t,mb:n}=e;return(0,a.AH)({textAlign:"left",color:"secondaryTextOnLinearGradient",lineHeight:"150%",letterSpacing:"0.035em",mt:t||0,mb:n||0})});d.A.p((0,a.AH)({textAlign:"left",color:"secondaryTextOnLinearGradient",lineHeight:"150%",letterSpacing:"0.035em",":nth-of-type(1)":{mt:"56px"},":nth-of-type(-n+2)":{mb:"24px"},":last-of-type":{mt:"24px"}}));let w=(0,d.A)(c.az)((0,a.AH)({width:"100vw",height:"190px",mx:"-25px"})),j=(0,d.A)(c.az)((0,a.AH)({height:"100%",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}),e=>{let{$image:t}=e;return(0,a.AH)({backgroundImage:"url(".concat(m.kj+t,")")})}),H=d.A.span(e=>{let{$italic:t}=e;return(0,a.AH)({color:"white",fontStyle:t?"italic":"normal",whiteSpace:["normal","nowrap","nowrap","nowrap"]})}),S=(0,d.A)(c.so)((0,a.AH)({flexDirection:"column",alignItems:"center"}),e=>{let{alignRight:t,isIndented:n=!0}=e;return(0,a.AH)({justifyContent:t&&"flex-end",mt:n?["5px","24px"]:0,gap:n?["15px","35px"]:"20px"})}),k=(0,d.A)(x.b7)((0,a.AH)({width:"fit-content",m:0,px:"30px",fontFamily:"'Roboto'",fontWeight:"400",fontSize:(0,u.A)(14),letterSpacing:"0.035em",color:"black"}));(0,d.A)(k)((0,a.AH)({m:0,px:"46px",mb:"40px"}));let F={container:()=>({marginBottom:"15px"}),control:(e,t)=>{let{selectProps:{$isErrored:n}}=t;return{backgroundColor:"#1A4E4E",display:"flex",padding:n?"10px 24px 18px":"10px 24px",textAlign:"left",borderBottom:"1px solid",borderColor:n?p.A.colors.danger:"#8BB7B4"}},menu:e=>(0,i._)((0,r._)({},e),{margin:0,backgroundColor:"#193C3F",color:"#FFFFFF"}),menuPortal:e=>(0,i._)((0,r._)({},e),{zIndex:9999}),option:(e,t)=>{let{isFocused:n}=t;return{backgroundColor:n?"#1A4E4E":"#193C3F",color:"#FFFFFF",cursor:"pointer",lineHeight:"28px",paddingLeft:"24px",borderLeft:n?"5px solid #FEC325":"5px solid transparent"}},indicatorSeparator:()=>({display:"none"}),placeholder:()=>({color:"#C8E5E3"}),singleValue:()=>({color:"#C8E5E3"}),input:e=>(0,i._)((0,r._)({},e),{position:"absolute",color:"#C8E5E3"}),valueContainer:()=>({flex:1,display:"flex",alignItems:"center"}),menuList:e=>(0,i._)((0,r._)({},e),{backgroundColor:"#193C3F",textAlign:"left",padding:0,"::-webkit-scrollbar":{width:"9px",height:"0px"},"::-webkit-scrollbar-track":{background:"#3A6565"},"::-webkit-scrollbar-thumb":{background:"#81A2A0"},"::-webkit-scrollbar-thumb:hover":{background:"#8ca09f"}})},_=(0,d.A)(s.A)(h(),e=>e.$menuIsOpen?"rotateX(180deg)":""),v=d.A.div((0,a.AH)({display:"flex",alignItems:"flex-start",ga
1p:"8px",mb:"15px",textAlign:"left"})),C=(0,d.A)(l.f9d)((0,a.AH)({flexShrink:0,mt:"2px",width:"24px",height:"24px",color:"danger"})),I=d.A.div((0,a.AH)({width:"1px",flexShrink:0,alignSelf:"stretch",backgroundColor:"danger"})),E=d.A.div((0,a.AH)({flex:1,minWidth:0,ml:"8px"})),z=d.A.p((0,a.AH)({m:0,mb:"8px",fontWeight:600,fontSize:(0,u.A)(14),lineHeight:(0,u.A)(20),letterSpacing:"0.035em",color:"danger"})),D=d.A.p((0,a.AH)({m:0,fontSize:(0,u.A)(14),lineHeight:(0,u.A)(20),letterSpacing:"0.035em",color:"white","& + &":{mt:"10px"}})),T=d.A.a((0,a.AH)({color:"danger",textDecoration:"underline"})),L=(0,d.A)(c.so)((0,a.AH)({position:"absolute",top:"-20px",left:"-20px",zIndex:"9",height:"calc(100% + 30px)",width:["calc(100% + 40px)","calc(100% + 40px)","470px"],flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"20px 70px",background:"rgba(5, 28, 33, 0.8)",border:"1px solid #414D50",backdropFilter:"blur(1px)"}))}}]); 2//# sourceMappingURL=1111.031ea2f299d4555d.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.