1import{d as F,w as k,o as l,c as m,e as o,f as y,ak as T,a9 as U,t as C,j as d,g as e,a2 as I,i as p,F as b,K as B,k as n,l as A}from"./BKRH0lRf.js";import{I as D}from"./6Yg9at3B.js";import{I as V}from"./DJ_hF4iI.js";import{u as H}from"./BIMgC5f3.js";const N={class:"alert-content"},j={class:"alert-text"},z={key:0},L=["innerHTML"],M={class:"hidden sm:flex"},R={class:"flex w-full sm:hidden"},E=F({__name:"FAlert",props:{type:{default:"success"},title:{default:""},description:{default:""},buttonText:{default:""},buttonUrl:{default:""}},setup(_){const{getDownloadFileViewerUrl:g,registerDownloadFile:h}=H(),t=_,a=n(()=>t.buttonUrl?{title:t.title||t.buttonText||"Documento",filename:w(t.buttonUrl),url:t.buttonUrl}:null),s=n(()=>a.value?g(a.value):null),c=n(()=>{if(!(s.value||!t.buttonUrl))return t.buttonUrl}),i=n(()=>{if(!(!s.value&&!c.value))return"_blank"}),f=n(()=>{if(i.value)return"noopener noreferrer"}),v={success:"bg-success-100 border-success-700 text-success-700",warning:"bg-warning-100 border-warning-700 text-warning-700",critical:"bg-critical-100 border-critical-700 text-critical-700"};k(a,r=>{r&&h(r)},{immediate:!0});function w(r){const u=(r.split(/[?#]/)[0]??"").split("/").filter(Boolean).pop();if(u)try{return decodeURIComponent(u)}catch{return u}}return(r,x)=>(l(),m("section",{class:B(["alert",v[t.type]])},[o("article",N,[y(U,{src:t.type==="success"?D:t.type==="warning"?T:V,"background-color":t.type,size:"small"},null,8,["src","background-color"]),o("div",j,[t.title?(l(),m("h3",z,C(t.title),1)):d("",!0),o("div",{class:"wordpress-content",innerHTML:("formatCustomTextArea"in r?r.formatCustomTextArea:e(I))(t.description)},null,8,L)]),o("div",M,[t.buttonText?(l(),p(b,{key:0,label:t.buttonText,color:t.type,to:e(s)||void 0,href:e(c),target:e(i),rel:e(f)},null,8,["label","color","to","href","target","rel"])):d("",!0)])]),o("div",R,[t.buttonText?(l(),p(b,{key:0,label:t.buttonText,color:t.type,to:e(s)||void 0,href:e(c),target:e(i),rel:e(f),class:"w-full"},null,8,["label","color","to","href","target","rel"])):d("",!0)])],2))}}),W=Object.assign(A(E,[["__scopeId","data-v-1e834620"]]),{__name:"GeneralFAlert"});export{W as F};
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.