1import{d as O,I as z,r as x,bE as A,bM as R,bH as F,z as I,j as e,F as j,L as l,B as G,S as p}from"./index-B9ovCa2o.js";import{E as $}from"./dictionary-B3ZH7gB9.js";import{M as H}from"./MoreForYouSection-CKmWqIAS.js";import{P as Q}from"./PageContentSkeleton-BcbUxLfa.js";import{P as Y}from"./PaginationBar-CpLf9hOn.js";import{M as U,D as W}from"./DictionaryContributeTermForm-DISbMUl2.js";import{D as q}from"./DictionaryTermCard-BEgHM9OG.js";import"./sanitize-html-si29paC7.js";import"./MoreForYouSkeleton-B6BnX1k0.js";const K=12;function u({branchName:t}){return e.jsx("section",{className:"breadcrumb__area breadcrumb__style-2 include-bg pt-20",children:e.jsx("div",{className:"container",children:e.jsx("div",{className:"row",children:e.jsx("div",{className:"col-xxl-12",children:e.jsx("div",{className:"breadcrumb__content p-relative z-index-1",children:e.jsxs("div",{className:"breadcrumb__list has-icon",children:[e.jsx("span",{className:"breadcrumb-icon"}),e.jsx("span",{children:e.jsx(l,{to:"/",children:"Home"})}),e.jsx("span",{children:e.jsx(l,{to:"/military-resources",children:"Resources"})}),e.jsx("span",{children:e.jsx(l,{to:"/military-resources/military-dictionary",children:"Military Dictionary"})}),e.jsx("span",{children:t})]})})})})})})}function le(){var v,y,_,S,T,w,B,E;const{slug:t}=O(),M=z(),[g,b]=x.useState(""),[N,o]=x.useState(1);x.useEffect(()=>{b(""),o(1)},[t]);const{data:d}=A(),{data:r,isLoading:C,isError:L}=R({slug:t,entryType:g||void 0,page:N,pageSize:K}),{data:m}=F(),{data:k,isLoading:D,isError:P}=I({populate:"*",pagination:{pageSize:10},sort:"publishedAt:desc"});if(C)return e.jsxs(e.Fragment,{children:[e.jsx(u,{branchName:"â¦"}),e.jsx(Q,{}),e.jsx(j,{})]});const a=(v=r==null?void 0:r.data)==null?void 0:v.branch;if(L||!a)return e.jsxs(e.Fragment,{children:[e.jsx(u,{branchName:"Not Found"}),e.jsx("section",{className:"tp-advertise-area pt-25 pb-20",children:e.jsx("div",{className:"container",children:e.jsxs("div",{className:"text-center py-4",children:[e.jsx("p",{className:"f_sz16",children:"Service branch not found."}),e.jsx("p",{className:"f_sz14",children:e.jsx(l,{to:"/military-resources/military-dictionary/branches",className:"link",children:"Browse all service branches"})})]})})}),e.jsx(j,{})]});const i=((y=d==null?void 0:d.data)==null?void 0:y.page)||{},h=((S=(_=r==null?void 0:r.data)==null?void 0:_.terms)==null?void 0:S.data)||[],c=((B=(w=(T=r==null?void 0:r.data)==null?void 0:T.terms)==null?void 0:w.meta)==null?void 0:B.pagination)||{},f=((m==null?void 0:m.data)||[]).filter(s=>s.slug!==a.slug);return e.jsxs(e.Fragment,{children:[e.jsx(G,{title:`${a.name} Military Terms & Definitions`,description:a.description||i.homeHeroSubtitle,canonicalUrl:window.location.href,structuredData:(E=a.seo)==null?void 0:E.structuredData}),e.jsx(u,{branchName:a.name}),e.jsx(p,{location:"GLOBAL_TOP_MOBILE",showSection:!0,sectionClassName:"pt-25 d-lg-none"}),e.jsx("section",{className:"tp-advertise-area pt-25 pb-20",children:e.jsx("div",{className:"container",children:e.jsxs("div",{className:"row",children:[e.jsxs("div",{className:"col-xl-9 col-lg-8 col-md-12 col-sm-12 col-12 mb-30 allpagesdtl_left",children:[e.jsxs("div",{className:"card shadow-sm brdr_radius20 shoppingdeals_hero p-4",children:[e.jsxs("h1",{className:"f_white f_plusjakartasanssemibold shopping_titlelg",children:[a.name," Military Terms & Definitions"]}),a.description&&e.jsx("div",{className:"mt-3 mb-3 f_white",children:a.description}),e.jsx(U,{onSearch:(s,n)=>M(`/military-resources/military-dictionary/search?q=${encodeURIComponent(s)}&filterBy=${encodeURIComponent(n||"")}`)})]}),e.jsxs("div",{className:"pt-35 pb-25",children:[e.jsxs("div",{className:"row align-items-center mb-4",children:[e.jsxs("div",{className:"col-lg-12 col-xl-6",children:[e.jsxs("h4",{className:"subsection_title",children:[a.name," Military Dictionary Terms"]}),e.jsx("div",{className:"pb-25",children:c.total!=null?`Showing ${h.length} of ${c.total} total entries`:null})]}),e.jsx("div",{className:"col-lg-12 col-xl-6 milbase_filterwrapper",children:e.jsx("div",{className:"d-flex flex-wrap justify-content-start justify-content-xl-end gap-3",children:e.jsxs("div",{className:"mildict-filter-group",children:[e.jsx("div",{className:"mildict-filter-label",children:"Entry Type"}),e.jsx("select",{className:"form-select filter-select",value:g,onChange:s=>{b(s.target.value),o(1)},children:$.map(s=>e.jsx("option",{value:s.value,children:s.label},s.value))})]})})})]}),h.length===0?e.jsx("div",{className:"allinfocard brdr_radius20 bg_grey2 text-center",children:"No entries match your filters for this branch. Try adjusting the Entry Type filter."}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"mildictionaryterms_allcontenthgt scrollbar_style",children:e.jsx("div",{className:"row g-4",children:h.map(s=>e.jsx("div",{className:"col-xl-4 col-md-6",children:e.jsx(q,{term:s})},s.id))})}),e.jsx(Y,{page:N,pageCount:c.pageCount,total:c.total,totalLabel:"total entries",onPageChange:o})]})]}),e.jsxs("div",{className:"pt-15 mb-25",children:[e.jsx("div",{className:"d-flex flex-wrap mb-2",children:e.jsxs("div",{className:"w-100",children:[e.jsx("h4",{className:"subsection_title",children:i.branchDetailOtherBranchesTitle||"Other Service Branches"}),e.jsx("div",{className:"pb-10",children:i.branchesSectionSubtitle})]})}),f.length===0?e.jsx("div",{className:"allinfocard brdr_radius20 bg_grey2 text-center",children:"No other service branches found."}):e.jsx("div",{className:"row g-4",children:f.map(s=>{var n;return e.jsx("div",{className:"col-12 col-md-6 col-lg-4",children:e.jsxs("div",{className:"allinfocard brdr_radius20 mb-0",children:[e.jsx("h3",{className:"f_sz16 f_plusjakartasanssemibold",children:s.name}),e.jsxs("div",{className:"f_sz14 f_plusjakartasanssemibold f_dflt_lightgreen mb-10",children:[((n=s.dictionary_terms)==null?void 0:n.count)??0," terms"]}),e.jsxs(l,{to:`/military-resources/military-dictionary/branches/${s.slug}`,className:"link f_sz14",children:["Browse ",s.name," entries â"]})]})},s.id)})})]}),e.jsxs("div",{className:"pt-15 mb-25",children:[e.jsx("div",{className:"d-flex flex-wrap mb-2",children:e.jsxs("div",{className:"w-100",children:[e.jsx("h4",{className:"subsection_title",children:i.relatedResourcesTitle}),e.jsx("div",{className:"pb-10",children:i.relatedResourcesSubtitle})]})}),e.jsx("div",{className:"row",children:(i.relatedResourceCards||[]).map(s=>e.jsx("div",{className:"col-xl-4 col-lg-6 col-md-6",children:e.jsxs("div",{className:"allinfocard brdr_radius20 bg_grey2",children:[e.jsx("h4",{className:"milresourcetitle",children:s.title}),e.jsx("p",{className:"milresourcedesc",children:s.description}),s.href.startsWith("/")?e.jsx(l,{to:s.href,className:"link f_sz14",children:s.linkLabel}):e.jsx("a",{href:s.href,className:"link f_sz14",children:s.linkLabel})]})},s.title))})]}),e.jsx("div",{className:"mt-25 mb-25",children:e.jsxs("div",{className:"shopping_militarydiscount bg_dfltlightgreen brdr_radius20",children:[e.jsx("div",{className:"badge_shopping1",children:i.contributeCtaBadge}),e.jsx("div",{className:"shopping_mildisctitle mt-10",children:i.contributeCtaTitle}),e.jsx("div",{className:"shopping_mildisctext",children:i.contributeCtaSubtitle}),e.jsx(W,{ctaButtonText:i.contributeCtaButtonText})]})})]}
1),e.jsx("div",{className:"col-xl-3 col-lg-4 col-md-12 col-sm-12 col-12 allpagesdtl_right d-none d-lg-block",children:e.jsx("div",{className:"postdtl_adwrapper postdtl_adwrapper_sticky text-center mb-15",children:e.jsx(p,{location:"GLOBAL_SIDEBAR_STICKY"})})})]})})}),e.jsx(p,{location:"GLOBAL_BOTTOM_WIDE",showSection:!0,sectionClassName:"pb-20"}),e.jsx(H,{data:k,isLoading:D,isError:P}),e.jsx(j,{})]})}export{le as default};
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.