{"version":3,"file":"social.twitter.js","sources":["social.twitter.js.src.js"],"names":["define","instancesModule","modelModule","$","wsbHelper","module","$element","options","this","model","mode","get","subscriptions","hasError","i18N","init","moduleClass","twttrFailed","require","noop","prototype","self","$header","$feed","$ul","$footer","isKO","callback","refresh","mutatorViewModel","prop","ko","isObservable","push","subscribe","window","twttr","twttrObj","_e","ready","f","data","empty","children","not","remove","text","sfMsgOverlay","message","resources","onError","getData","destroy","ajax","url","cache","dataType","success","response","status","onSuccess","error","updateDisplay","errorConnecting","first","is","height","outerHeight","$overlay","length","addClass","appendTo","css","filter","background-color","style","$connectButton","append","html","$social","clone","constructor","String","prepend","find","bind","openAuthWindow","removeClass","type","count","websiteId","username","query","action","value","limit","tweets","isArray","createButtons","tweet","createTweet","toggleButton","parseInt","code","removeAuth","feed","$li","normalizeFeed","attr","href","feedUrl","target","timePosted","timeString","profileUrl","profileImg","userName","screenName","$tweet","data-text","data-count","data-show-count","sfFormat","widgets","load","https","Boolean","location","protocol","match","isReTweet","origFeed","retweeted_status","feedObj","formatTweet","media","$media","m","photo","title","expanded_url","media_url_https","media_url","after","user","screen_name","name","profile_image_url","replace","id_str","formatTimeStamp","created_at","formatTimeText","getDate","timestamp","Date","test","navigator","userAgent","getEntities","entities","e","entity","i","reverse","key","indices","entityObj","obj","unshift","x","splice","entityObjs","substring","encodeURIComponent","display_url","toLocaleString","months","abbreviatedMonthNames","then","diff","s","h","d","isNaN","Math","floor","slice","getMonth","getFullYear","dispose","instance","render","moduleInstance","create"],"mappings":"AAAAA,QACI,+BACA,2BACA,SACA,kBACD,SAAUC,EAAiBC,EAAaC,EAAGC,GAG1C,QAASC,GAAOC,EAAUC,GACtBC,KAAKF,SAAWA,EAChBE,KAAKC,MAAQ,GAAIP,GAAYK,GAC7BC,KAAKE,KAAOF,KAAKC,MAAME,IAAI,QAC3BH,KAAKI,iBACLJ,KAAKK,UAAW,EAChBL,KAAKM,KAAON,KAAKC,MAAME,IAAI,QAC3BH,KAAKO,OATT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