"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime");require("react");const o=require("semantic-ui-react"),a=require("react-redux"),c=e=>{let r;try{r=decodeURIComponent(e)}catch{r=e,console.error("error occurred decoding content:"+e)}return r},s=({"data-index":e="","data-description":r="","data-link":n=""})=>t.jsx(o.Popup,{className:"reference-popup",hoverable:!0,size:"mini",offset:[-16,0],content:t.jsxs("div",{children:[t.jsx("p",{children:c(r)}),t.jsx("a",{href:n,target:"_blank",children:n})]}),trigger:t.jsx("a",{"data-index":e,"data-description":r,"data-link":n,href:`#ref_${e}`,className:"wp-reference",children:e})}),d=(e,r)=>({random:e.getIn(["embeddable","random"])}),i={},u=a.connect(d,i)(s);exports.default=u;
