Sei sulla pagina 1di 2

w=q.length;p=p.merge({text:(t.slice(0,r)+n+t.slice(r+w)),inlineStyles:(u.

splice(
r,w,m)),entities:(v.splice(r,w,s))});return l(p,r,r+n.length,s);}e.exports=o;},n
ull);
__d("getTextAfterNearestEntity",[],function(a,b,c,d,e,f){function g(h,i){var j=h
.getEntities(),k=i;while(j.get(k-1)===null)k--;return h.getText().slice(k,i);}e.
exports=g;},null);
__d("applyEmoticonToContentState",["EmoticonsList","applyEmoticonToContentBlock"
,"getTextAfterNearestEntity"],function(a,b,c,d,e,f,g,h,i){"use strict";var j=new
RegExp(g.regexp.source,'g');function k(l,m){var n=m.getAnchorKey(),o=m.getAncho
rOffset(),p=l.getBlockForKey(n),q=i(p,o),r,s;while(s!==null){s=j.exec(q);if(s!==
null)r=s;}if(!r)return l;var t=r[1];if(!t&&o!==q.length)return l;var u=r[2],v=oq.length,w=v+r.index+r[1].length,x=l.getBlockMap().set(n,h(p,u,w));o-=(u.length1);return l.merge({blockMap:x,selectionBefore:m,selectionAfter:m.merge({anchorOf
fset:o,focusOffset:o})});}e.exports=k;},null);
__d("handleBeforeInputForEmoticon",["DocumentModifierExperimental","EditorChange
Type","EditorState","applyEmoticonToContentState"],function(a,b,c,d,e,f,g,h,i,j)
{var k=new RegExp(/[\s'".,!?]/);function l(m,n){var o=m.getSelection();if(!o.isC
ollapsed()||!n||!k.test(n))return m;var p=m.getCurrentContent(),q=j(p,o);if(q===
p)return m;var r=g.insertText(q,q.getSelectionAfter(),n);return i.push(m,r,h.INS
ERT_CHARACTERS);}e.exports=l;},null);
__d("handleSoftNewlineForEmoticon",["DocumentModifierExperimental","EditorChange
Type","EditorState","applyEmoticonToContentState"],function(a,b,c,d,e,f,g,h,i,j)
{function k(l){var m=l.getCurrentContent(),n=l.getSelection(),o=j(m,n);if(o===m)
return l;var p=g.splitBlock(o,o.getSelectionAfter());return i.push(l,p,h.SPLIT_B
LOCK);}e.exports=k;},null);
__d("isSoftNewlineEvent",["Keys"],function(a,b,c,d,e,f,g){function h(i){return i
.which===g.RETURN&&(i.getModifierState('Shift')||i.getModifierState('Alt')||i.ge
tModifierState('Control'));}e.exports=h;},null);
__d("UFIExperimentalMentionsInput.react",["Arbiter","BanzaiScuba","Bootloader","
CommentPrelude","ComposedEntityMutability","ComposedEntityType","DocumentEntity"
,"DocumentModifierExperimental","DOMVector","EditorChangeType","EditorState","In
put","Keys","MentionsInput.Experimental.react","React","UserAgent","URI","create
EditorStateWithMentions","createEmptyEditorState","createMentionEntity","cx","em
ptyFunction","getMentionsInputDecorator","getMentionsTextForContentState","getVi
sibleValueForContentState","handleBeforeInputForEmoticon","handleSoftNewlineForE
moticon","isSoftNewlineEvent","setImmediate"],function(a,b,c,d,e,f,g,h,i,j,k,l,m
,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia){var ja=new h('ufi_tinder'
,null,{addBrowserFields:true,addGeoFields:true,addPredictedGeographyFields:true,
addMobileDeviceFields:true,addUser:true}),ka=200,la=((v.isPlatform('iOS')||v.isP
latform('Linux')||v.isPlatform('Mac OS X')||v.isPlatform('Windows')||v.isPlatfor
m('Chrome OS'))&&(v.isBrowser('Chrome')||v.isBrowser('Firefox >= 16')||v.isBrows
er('IE >= 9')||v.isBrowser('Opera >= 12')||v.isBrowser('Mobile Safari >= 6')||v.
isBrowser('Safari >= 5')));function ma(qa){var =qa.map(function(sa){return {kind
:'file',type:sa.type,getAsFile:ba.thatReturns(sa)};});return {clipboardData:{ite
ms:ra}};}function na(qa){var ra=/^image\//;return qa.filter(function(sa){return
ra.test(sa.type);});}var oa=u.createClass({displayName:"UFIExperimentalMentionsI
nput",getInitialState:function(){var qa='',ra=[];if(this.props.initialData){qa=t
his.props.initialDa.value||'';ra=this.props.initialData.mentions||[];ra=ra.map(f
unction(ta){return Object.assign({},ta,{entity:{uid:ta.uid,weakreference:ta.weak
reference}});});}var sa=x({text:qa,ranges:ra,decorator:ca(),mentionCreationFn:pa
});sa=q.moveSelectionToEnd(sa);return {bootloaded:false,fullRender:!!(this.props
.initialData&&this.props.initialData.value),typeaheadReporter:null,editorState:s
a,mentionsSource:null,mentionableEntries:null,fallbackText:qa};},hasEnteredText:
function(){return !!this.state.editorState.getCurrentContent().getPlainText().tr
im();},focus:function(){this._triggerFullRender(function(){if(la){this.refs.ment
ionsInput.focus();}else this.refs.textarea.getDOMNode().focus();}.bind(this));},
submitComment:function(event){if(this._submitComment(event))this._clearDocumentS
tate();},insertMention:function(qa){this._triggerFullRender(function(){if(la){va
r ra=this.state.editorState,sa=ra.getSelection(),ta=ra.getCurrentContent(),ua=sa
.getStartKey(),va=sa.getStartOffset(),wa=ta.getBlockForKey(ua),xa;if(wa.getText(

).substr(va-1,1).trim().length>0){var ya=n.replaceText(ta,sa,' ');sa=ya.getSelec


tionAfter();xa=n.instText(ya,sa,qa.getTitle(),ra.getCurrentInlineStyle(),z(qa));
}else xa=n.replaceText(ta,sa,qa.getTitle(),ra.getCurrentInlineStyle(),z(qa));ra=
q.push(ra,xa,p.INSERT_FRAGMENT);ra=q.forceSelection(ra,ra.getSelection());this.s
etState({editorState:ra});this.focus();}e

Potrebbero piacerti anche