import{ac as u}from"./vendor-primevue-RJTR6wkG.js";import{bq as c,E as a,p as d,d as f,q as o,e as l,br as b}from"./vendor-other-yzRpIrj2.js";const g=["src","alt"],m=["src","alt"],h=c({__name:"WidgetImageCompare",props:{widget:{}},setup(r){const t=r,s=a(()=>{const e=t.widget.value;return typeof e=="string"?e:e?.before||""}),i=a(()=>{const e=t.widget.value;return typeof e=="string"?"":e?.after||""}),n=a(()=>{const e=t.widget.value;return typeof e=="object"&&e?.beforeAlt?e.beforeAlt:"Before image"}),p=a(()=>{const e=t.widget.value;return typeof e=="object"&&e?.afterAlt?e.afterAlt:"After image"});return(e,v)=>(f(),d(b(u),{tabindex:e.widget.options?.tabindex??0,"aria-label":e.widget.options?.ariaLabel,"aria-labelledby":e.widget.options?.ariaLabelledby,pt:e.widget.options?.pt,"pt-options":e.widget.options?.ptOptions,unstyled:e.widget.options?.unstyled},{left:o(()=>[l("img",{src:s.value,alt:n.value,class:"h-full w-full object-cover"},null,8,g)]),right:o(()=>[l("img",{src:i.value,alt:p.value,class:"h-full w-full object-cover"},null,8,m)]),_:1},8,["tabindex","aria-label","aria-labelledby","pt","pt-options","unstyled"]))}});export{h as default};
//# sourceMappingURL=WidgetImageCompare-TIQrQq2D.js.map
