define("linkify-react",["module","exports","react","./linkify"],function(e,t,r,n){"use strict";function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function l(e,t){for(var r=u.tokenize(e),n=[],a=0,i=0;i<r.length;i++){var l=r[i];if("nl"===l.type&&t.nl2br)n.push(f["default"].createElement("br",{key:"linkified-"+ ++a}));else if(l.isLink&&t.check(l)){var o=t.resolve(l),s=(o.href,o.formatted),p=o.formattedHref,d=o.tagName,c=o.className,h=o.target,v=o.attributes,y=(o.events,{key:"linkified-"+ ++a,href:p});if(c&&(y.className=c),h&&(y.target=h),v)for(var m in v)y[m]=v[m];n.push(f["default"].createElement(d,y,s))}else n.push(l.toString())}return n}function o(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0===f["default"].Children.count(e.props.children))return e;var n=[];f["default"].Children.forEach(e.props.children,function(e){"string"==typeof e?n.push.apply(n,l(e,t)):f["default"].isValidElement(e)?"string"==typeof e.type&&p.contains(t.ignoreTags,e.type.toUpperCase())?n.push(e):n.push(o(e,t,++r)):n.push(e)});var a={key:"linkified-element-"+r};for(var i in e.props)a[i]=e.props[i];return f["default"].cloneElement(e,a,n)}try{try{Object.defineProperty(t,"__esModule",{value:!0})}catch(s){t.__esModule=!0}}catch(s){t.__esModule=!0}var f=i(r),u=a(n),p=u.options,d=p.Options,c=f["default"].createClass({render:function(){var e={key:"linkified-element-0"};for(var t in this.props)"options"!==t&&"tagName"!==t&&(e[t]=this.props[t]);var r=new d(this.props.options),n=this.props.tagName||"span",a=f["default"].createElement(n,e);return o(a,r,0)}});t["default"]=c,e.exports=t["default"]}); |