{"version":3,"file":"social.twitter.js","sources":["social.twitter.js.src.js"],"names":["define","instancesModule","modelModule","$","wsbHelper","appconfig","module","$element","options","this","model","mode","get","subscriptions","hasError","i18N","enableTwitter","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","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_https","profile_image_url","id_str","formatTimeStamp","created_at","formatTimeText","getDate","timestamp","Date","test","navigator","userAgent","replace","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,iBACA,aACD,SAAUC,EAAiBC,EAAaC,EAAGC,EAAWC,GAGrD,QAASC,GAAOC,EAAUC,GACtBC,KAAKF,SAAWA,EAChBE,KAAKC,MAAQ,GAAIR,GAAYM,GAC7BC,KAAKE,KAAOF,KAAKC,MAAME,IAAI,QAC3BH,KAAKI,iBACLJ,KAAKK,UAAW,EAChBL,KAAKM,KAAON,KAAKC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