PageSourceSearch

https://www.ahrcm-srmo.org/build/assets/Details.5220362f.js

js ahrcm-srmo.org collected 2026-10-06 18:24:57 UTC 3,778 bytes, 1 lines download raw bytes

1import{j as h,d as v,c as f,w as c,k as x,o as i,a as t,g as l,t as n,h as e,p as u,b as g,e as d,L as b,f as _,T as y,F as k,i as w,I as $}from"./app.1c75f29f.js";import{_ as B}from"./AppLayout.78e80e3b.js";import{_ as C}from"./AttachmentsList.ce0e6eb5.js";import"./Banner.7925d127.js";import"./ApplicationMark.85c52153.js";import"./download.b52da6e8.js";const T={class:"grid grid-cols-12 gap-5 py-10"},A={class:"col-start-3 col-span-8"},F={class:"text-xs text-gray-90 mb-1"},L=t("span",{class:"text-gray-60"},"Publish Date: ",-1),N={class:"flex items-center justify-between"},V={class:"text-32 font-bold"},j={class:"relative"},D=t("i",{class:"icon-arrow---down-2 text-xs"},null,-1),M={key:0,class:"absolute bg-white p-1 text-14-regular border border-gray-10 w-36 rounded-md top-10 right-0"},z=["src"],E={class:"text-gray-60 text-16-regular"},I={key:0,class:"mt-8 border-t border-gray-30 pt-5"},P=t("h4",{class:"text-16-medium mb-4"},"Resource Links",-1),S={class:"space-y-10"},G=["href"],R=t("svg",{class:"w-6 h-6 text-right",xmlns:"http://www.w3.org/2000/svg","fill-rule":"evenodd","clip-rule":"evenodd"},[t("path",{d:"M14.851 11.923c-.179-.641-.521-1.246-1.025-1.749-1.562-1.562-4.095-1.563-5.657 0l-4.998 4.998c-1.562 1.563-1.563 4.095 0 5.657 1.562 1.563 4.096 1.561 5.656 0l3.842-3.841.333.009c.404 0 .802-.04 1.189-.117l-4.657 4.656c-.975.976-2.255 1.464-3.535 1.464-1.28 0-2.56-.488-3.535-1.464-1.952-1.951-1.952-5.12 0-7.071l4.998-4.998c.975-.976 2.256-1.464 3.536-1.464 1.279 0 2.56.488 3.535 1.464.493.493.861 1.063 1.105 1.672l-.787.784zm-5.703.147c.178.643.521 1.25 1.026 1.756 1.562 1.563 4.096 1.561 5.656 0l4.999-4.998c1.563-1.562 1.563-4.095 0-5.657-1.562-1.562-4.095-1.563-5.657 0l-3.841 3.841-.333-.009c-.404 0-.802.04-1.189.117l4.656-4.656c.975-.976 2.256-1.464 3.536-1.464 1.279 0 2.56.488 3.535 1.464 1.951 1.951 1.951 5.119 0 7.071l-4.999 4.998c-.975.976-2.255 1.464-3.535 1.464-1.28 0-2.56-.488-3.535-1.464-.494-.495-.863-1.067-1.107-1.678l.788-.785z"})],-1),W={__name:"Details",setup(q){const s=h(()=>x().props.value.training.data),o=v(!1),m=(p,r)=>{$.Inertia.put(`/admin/trainings/${p}/archive`,{is_active:!r},{onFinish:()=>{o.value=!1}})};return(p,r)=>(i(),f(B,null,{default:c(()=>[t("div",T,[t("div",A,[t("div",F,[L,l(n(e(s).date),1)]),t("div",N,[t("h1",V,n(e(s).title),1),t("div",j,[t("div",{onFocus:r[0]||(r[0]=a=>o.value=!0),onBlur:r[1]||(r[1]=a=>o.value=!1),onClick:r[2]||(r[2]=u(a=>o.value=!e(o),["stop"])),class:"border border-gray-30 rounded-3 bg-gray-10 text-12-regular text-gray-80 flex items-center px-2 py-1 cursor-pointer training-actions"},[l(" Actions "),D],32),g(y,{name:"fade"},{default:c(()=>[e(o)?(i(),d("ul",M,[g(e(b),{onClick:r[3]||(r[3]=u(()=>{},["stop"])),href:`/admin/trainings/${e(s).slug}/edit`,class:"px-2 py-1.5 hover:bg-gray-10 rounded-md transition-all duration-200 cursor-pointer block"},{default:c(()=>[l(" Edit ")]),_:1},8,["href"]),t("li",{onClick:r[4]||(r[4]=u(a=>m(e(s).slug,e(s).is_active),["stop"])),class:"px-2 py-1.5 hover:bg-gray-10 rounded-md transition-all duration-200 cursor-pointer"},n(e(s).is_active?"Archive":"Activate"),1)])):_("",!0)]),_:1})])]),t("img",{src:e(s).photo,class:"w-full object-cover h-96 rounded-lg mt-6 mb-11",alt:""},null,8,z),t("p",E,n(e(s).description),1),g(C,{attachments:e(s).attachments,"card-title":"Training Materials"},null,8,["attachments"]),e(s).resource_links&&e(s).resource_links.length>0?(i(),d("div",I,[P,t("div",S,[(i(!0),d(k,null,w(e(s).resource_links,a=>(i(),d("div",{key:a.id},[t("a",{href:a.link,target:"_blank",title:"Go to link",class:"rounded-md border border-gray-40 hover:border-gray-50 transition-all duration-200 text-12-regular px-4 py-2.5 cursor-pointer flex gap-2"},[R,l(" "+n(a.name),1)],8,G)]))),128))])])):_("",!0)])])]),_:1}))}};export{W 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.