PageSourceSearch

https://prepware.com/_nuxt/uXZ3LqOX.js

js prepware.com collected 2026-10-07 05:59:59 UTC 6,510 bytes, 1 lines download raw bytes

1import{_ as j}from"./BQg5CTAT.js";import{c as s,o as a,a as l,e as E,D as I,m as h,f as P,k as i,b as v,w as g,d as y,h as e,t as m,q,F as B,j as V}from"./D-EZImtS.js";import{u as D}from"./QUu4cwrk.js";import{r as H}from"./7f8XNC7F.js";import{r as z}from"./xXNb6yw-.js";import{o as O,s as u,n as d}from"./v7w1fKJg.js";import"./BJ2ClxiI.js";import"./B11LrlsJ.js";function Q(T,x){return a(),s("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"})])}const U={class:"sm:float-left w-full max-w-full lg:w-375 px-1 sm:px-5"},Z={class:"bg-white border border-asagrey-dark p-5 mb-10 rounded-lg shadow-[2px_4px_6px_#0000001A] w-full sm:min-h-[calc(100vh-140px)] relative"},G={class:"mb-6 pb-4 border-b border-gray-200"},J={class:"flex items-center justify-between gap-4 mb-3"},K={class:"flex items-center gap-2"},W={class:"text-sm text-gray-600"},X={key:1},Y={key:2,class:"mx-2"},ee={key:0},te={class:"block border-b-3 border-asaorange text-2xl text-asablue font-semibold pb-1 mb-6"},ae={key:0},ne={key:0},se={key:1},oe={key:0,class:"mt-1 text-lg text-gray-600 mb-4"},re={key:1,class:"flex items-center gap-2 rounded bg-blue-50 px-4 py-2 text-sm"},le={class:"text-blue-600"},ie=["innerHTML"],ue={key:3,class:"text-gray-500"},ce={key:4,class:"rounded border border-red-400 bg-red-50 p-6"},me={class:"text-sm text-red-700"},ge=E({__name:"[id]",async setup(T){let x,A;const F=O({id:d(),sectionnum:u().nullable().optional(),section:u().optional(),identifier:u().optional(),title:u(),subtitle:u().optional(),html:u(),part_id:d().nullable().optional(),partnum:d().nullable().optional(),prev_id:d().nullable().optional(),next_id:d().nullable().optional(),prev_sectionnum:u().nullable().optional(),next_sectionnum:u().nullable().optional(),section_id:d().optional(),chapter_id:d().nullable().optional(),chapnum:d().nullable().optional(),subsectionnum:d().optional(),subsectionnumtitle:u().optional(),prev_subsectionnumtitle:u().nullable().optional(),next_subsectionnumtitle:u().nullable().optional()}),_=I(),k=_.params.id?Number(_.params.id):null,c=h(()=>_.query.type?String(_.query.type):"far"),w=h(()=>_.query.q?String(_.query.q):null),L=h(()=>t.value?c.value==="aim"&&t.value.chapnum?`/faraim/aim/${t.value.chapnum}`:c.value==="far"&&t.value.partnum?`/faraim/far/${t.value.partnum}`:"/faraim":"/faraim"),N=h(()=>t.value?c.value==="aim"&&t.value.chapnum?`Back to Chapter ${t.value.chapnum}`:c.value==="far"&&t.value.partnum?`Back to Part ${t.value.partnum}`:"Back to FAR/AIM":"Back to FAR/AIM"),C=h(()=>{if(!t.value)return[];const n=[{text:"FAR/AIM",link:"/faraim"}];return c.value==="aim"?(t.value.chapnum&&n.push({text:`Chapter ${t.value.chapnum}`,link:`/faraim/aim/${t.value.chapnum}`}),n.push({text:t.value.subsectionnumtitle||""})):(t.value.partnum&&n.push({text:`Part ${t.value.partnum}`,link:`/faraim/far/${t.value.partnum}`}),n.push({text:t.value.sectionnum||""})),n}),{data:t,error:$}=([x,A]=P(()=>D("https://ops6ju2zqe.execute-api.us-east-1.amazonaws.com/faraim_detail",{query:h(()=>{const n={};return k!==null&&(c.value==="aim"?(n.mode="aim",n.aim_subsection_id=k):(n.mode="far",n.far_section_id=k)),n}),transform:n=>F.parse(n)},"$ZOFxloABdU")),x=await x,A(),x);function M(n,o){if(!o)return n;const b=o.trim().split(/\s+/).filter(f=>f.length>0);let p=n;return b.forEach(f=>{const S=f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),R=new RegExp(`\\b(${S})\\b`,"gi");p=p.replace(R,'<mark class="bg-yellow-200 font-semibold">$1</mark>')}),p}const r=h(()=>t.value?{...t.value,html:w.value?M(t.value.html,w.value):t.value.html}:null);return(n,o)=>{const b=j;return a(),s("div",U,[l("div",Z,[l("div",G,[l("div",J,[v(b,{to:e(L),class:"flex items-center gap-2 px-4 py-2 text-sm font-medium text-gray-700 bg-gray-100 rounded-md hover:bg-gray-200 transition-colors"},{default:g(()=>[v(e(Q),{class:"w-4 h-4"}),y(" "+m(e(N)),1)]),_:1},8,["to"]),l("div",K,[e(t)?.prev_id?(a(),q(b,{key:0,to:{path:`/faraim/content/${e(t).prev_id}`,query:{type:e(c)}},class:"flex items-center gap-1 px-5 py-1.5 text-base rounded-lg border border-asablue-light bg-asablue-light text-white hover:bg-asablue hover:border-asablue hover:text-white cursor-pointer active:bg-asablue-dark focus:outline-3 outline-asablue-lightest",title:`Previous: ${e(t).prev_sectionnum||e(t).prev_subsectionnumtitle}`},{default:g(()=>[v(e(H),{class:"w-4 h-4"}),o[0]||(o[0]=l("span",{class:"hidden sm:inline"},"Previous",-1))]),_:1},8,["to","title"])):i("",!0),e(t)?.next_id?(a(),q(b,{key:1,to:{path:`/faraim/content/${e(t).next_id}`,query:{type:e(c)}},class:"flex items-center gap-1 px-5 py-1.5 text-base rounded-lg border border-asablue-light bg-asablue-light text-white hover:bg-asablue hover:border-asablue hover:text-white cursor-pointer active:bg-asablue-dark focus:outline-3 outline-asablue-lightest",title:`Next: ${e(t).next_sectionnum||e(t).next_subsectionnumtitle}`},{default:g(()=>[o[1]||(o[1]=l("span",{class:"hidden sm:inline"},"Next",-1)),v(e(z),{class:"w-4 h-4"})]),_:1},8,["to","title"])):i("",!0)])]),l("div",W,[(a(!0),s(B,null,V(e(C),(p,f)=>(a(),s(B,{key:f},[p.link?(a(),q(b,{key:0,to:p.link,class:"hover:underline"},{default:g(()=>[y(m(p.text),1)]),_:2},1032,["to"])):(a(),s("span",X,m(p.text),1)),f<e(C).length-1?(a(),s("span",Y,"›")):i("",!0)],64))),128))])]),e(r)?(a(),s("div",ee,[l("h1",te,[e(r).sectionnum?(
1a(),s("span",ae,[!e(r).sectionnum.includes("Appendix")&&!e(r).sectionnum.includes("SFAR")?(a(),s("span",ne,"§")):i("",!0),y(m(e(r).sectionnum),1)])):i("",!0),e(r).subsectionnumtitle?(a(),s("span",se,m(e(r).subsectionnumtitle),1)):i("",!0),y(" "+m(e(r).title),1)]),e(r).subtitle?(a(),s("div",oe,m(e(r).subtitle),1)):i("",!0)])):i("",!0),e(w)?(a(),s("div",re,[o[3]||(o[3]=l("span",{class:"font-semibold text-blue-800"},"Search:",-1)),l("span",le,m(e(w)),1),v(b,{to:{path:`/faraim/content/${e(k)}`,query:{type:e(c)}},class:"ml-auto text-blue-600 hover:text-blue-800 hover:underline"},{default:g(()=>[...o[2]||(o[2]=[y(" Clear highlighting ",-1)])]),_:1},8,["to"])])):i("",!0),e(r)?(a(),s("div",{key:2,class:"prose prose-slate max-w-none faraim-content mb-8",innerHTML:e(r).html},null,8,ie)):i("",!0),!e(r)&&!e($)?(a(),s("div",ue," Loading content... ")):i("",!0),e($)?(a(),s("div",ce,[o[4]||(o[4]=l("h3",{class:"mb-2 font-semibold text-red-800"},"Error Loading Content",-1)),l("pre",me,m(e($)),1)])):i("",!0)])])}}});export{ge 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.