{"version":3,"sources":["js/blog-single/blog-single.js","js/blog-single/sticky-social.js","js/blog-single/index.js","js/blog-single.js"],"names":["$","window","jQuery","updated","isUpdated","str","x","attr","prev","each","length","tmp","prop","replace","replaceWith","txt","html","find","lnk","shareDiv","fixed","shareLocationY","offset","top","innerHeight","width","addEventListener","document","on","handleStickySocial","pageYOffset","addClass","css","removeClass"],"mappings":";AAIA,IAAMA,EAAIC,OAAOC,OACdC,EAAU,CAAC,oBAAqB,qBAAsB,qBAAsB,qBAAsB,qBAAsB,qBAAsB,qBAAsB,kBAAmB,oBAE1L,SAASC,EAAUC,GACd,IAAA,IAAIC,KAAKH,EACTA,GAAAA,EAAQG,KAAOD,EACV,OAAA,EAIF,OAAA,EAGRL,EAAE,WACDA,EAAE,uBAAuBO,KAAK,QAASP,EAAE,iBAAiBO,KAAK,SAC/DP,EAAE,uBAAuBO,KAAK,KAAMP,EAAE,uBAAuBQ,OAAOD,KAAK,QACzEP,EAAE,2BAA2BS,KAAK,WACjCT,EAAE,MAAMO,KAAK,QAASP,EAAE,MAAMO,KAAK,SACnCP,EAAE,MAAMO,KAAK,KAAMP,EAAE,MAAMQ,OAAOD,KAAK,UAErCP,EAAE,KAAKU,OAAS,GAClBV,EAAE,KAAKS,KAAK,WACPE,IAAAA,EAAMX,EAAE,MAAMY,KAAK,aAEvBD,GADAA,EAAMA,EAAIE,QAAQ,KAAM,YACdA,QAAQ,OAAQ,aAC1Bb,EAAE,MAAMc,YAAYH,KAInBX,EAAE,wEAAwEU,OAAS,GACrFV,EAAE,wEAAwES,KAAK,WAC1EM,IAAAA,EAAMf,EAAE,MAAMgB,OAClBhB,EAAE,MAAMgB,KAAK,+DAA+DD,EAAI,aAI/Ef,EAAE,iBAAiBU,OAAS,GAC9BV,EAAE,iBAAiBS,KAAK,WACnBJ,IAAAA,EAAML,EAAE,MAAMiB,KAAK,OAAOD,OACT,GAAlBZ,EAAUC,IACZL,EAAE,MAAMiB,KAAK,OAAOD,KAAK,aAAaX,KAKtCL,EAAE,yCAAyCU,OAAS,GACrDV,EAAE,yCAAyCS,KAAK,WAC3CS,IAAAA,EAAMlB,EAAE,MAAMiB,KAAK,OACvBC,EAAIX,KAAK,QAASW,EAAIX,KAAK;;AChD/B,IAAMP,EAAIC,OAAOC,OAEXiB,EAAWnB,EAAG,kEAEpB,WAEM,GAAEmB,EAAST,OAAX,CAIDU,IAAAA,GAAQ,EACRC,EAAiBF,EAASG,SAASC,IAAM,GACzCA,EAAMvB,EAAG,eAAgBwB,cAAgBxB,EAAG,eAAgBwB,cAE3DxB,EAAGC,QAASwB,QAAU,MAC1BF,EAAM,GAGPtB,OAAOyB,iBAAkB,SAAU,WAClCL,EAAiBF,EAASG,SAASC,IAAM,GACzCA,EAAMvB,EAAG,eAAgBwB,cAAgBxB,EAAG,eAAgBwB,cAEvDxB,EAAGC,QAASwB,QAAU,MAC1BF,EAAM,KAIRvB,EAAG2B,UAAWC,GAAI,8BAA+B,WAChDP,EAAiBF,EAASG,SAASC,IAAM,GACzCA,EAAMvB,EAAG,eAAgBwB,cAAgBxB,EAAG,eAAgBwB,cAEvDxB,EAAGC,QAASwB,QAAU,MAC1BF,EAAM,KAmBRM,IACA5B,OAAOyB,iBAAkB,SAAUG,GAhB1BA,SAAAA,IACH5B,OAAO6B,YAAcT,EAClBD,IACND,EAASY,SAAU,SACnBZ,EAASa,IAAK,MAAWT,GAAAA,OAAAA,EAAzB,OACAH,GAAQ,GAGJA,IACJD,EAASc,YAAa,SACtBb,GAAQ,IA1CZ;;ACPA,aADA,QAAA,iBACA,QAAA;;ACDA,aAAA,QAAA","file":"blog-single.js","sourceRoot":"../src","sourcesContent":["//\n// Blog single specific functionality\n//\n\nconst $ = window.jQuery,\n\t updated = ['September 6, 2019', 'September 10, 2019', 'September 16, 2019', 'September 20, 2019', 'September 24, 2019', 'September 27, 2019', 'September 30, 2019', 'October 1, 2019', 'October 10, 2019'];\n\nfunction isUpdated(str){\n\tfor(let x in updated){\n\t\tif(updated[x] === str){\n\t\t\treturn true;\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn false;\n}\n\n$(function(){\n\t$('form textarea:first').attr('title', $('form textarea').attr('name'));\n\t$('form textarea:first').attr('id', $('form textarea:first').prev().attr('for'));\n\t$('form input[type=\"text\"]').each(function(){\n\t\t$(this).attr('title', $(this).attr('name'));\n\t\t$(this).attr('id', $(this).prev().attr('for'));\n\t});\n\tif($('b').length > 0){\n\t\t$('b').each(function(){\n\t\t\tlet tmp = $(this).prop('outerHTML');\n\t\t\ttmp = tmp.replace('', '');\t\t\t\n\t\t\t$(this).replaceWith(tmp);\n\t\t});\n\t}\n\t\n\tif($('.fl-theme-builder-singular .fl-module-content .ic-category-shortcode').length > 0){\n\t\t$('.fl-theme-builder-singular .fl-module-content .ic-category-shortcode').each(function(){\n\t\t\tlet txt = $(this).html();\n\t\t\t$(this).html(''+txt+'');\n\t\t});\t\t\n\t}\t\n\t\n\tif($('.fl-rich-text').length > 0){\n\t\t$('.fl-rich-text').each(function(){\n\t\t\tlet str = $(this).find('> p').html();\n\t\t\tif(isUpdated(str) == true){\n\t\t\t\t$(this).find('> p').html('Updated - '+str);\n\t\t\t}\n\t\t});\n\t}\n\t\n\tif($('.fl-comments-list .comment-reply-link').length > 0){\n\t\t\t$('.fl-comments-list .comment-reply-link').each(function(){\n\t\t\t\tlet lnk = $(this).find('> a');\n\t\t\t\tlnk.attr('title', lnk.attr('aria-label'));\n\t\t\t});\n\t}\n\t\n});\n/*\nwindow.addEventListener('load', function(){\n\tsetTimeout(function(){\n\t\t$('iframe').remove();\n\t}, 500);\n});*/","//\n// Sticky social links on blog posts\n//\n\nconst $ = window.jQuery;\n\nconst shareDiv = $( '.fl-theme-builder-singular .share-buttons .fl-rich-text > div' );\n\n( function() {\n\n\tif ( ! shareDiv.length ) {\n\t\treturn;\n\t}\n\n\tlet fixed = false;\n\tlet shareLocationY = shareDiv.offset().top + 40;\n\tlet top = $( '.top-header' ).innerHeight() + $( '#wpadminbar' ).innerHeight();\n\n\tif ( $( window ).width() < 561 ) {\n\t\ttop = 0;\n\t}\n\n\twindow.addEventListener( 'resize', function() {\n\t\tshareLocationY = shareDiv.offset().top + 40;\n\t\ttop = $( '.top-header' ).innerHeight() + $( '#wpadminbar' ).innerHeight();\n\n\t\tif ( $( window ).width() < 561 ) {\n\t\t\ttop = 0;\n\t\t}\n\t} );\n\n\t$( document ).on( 'answerfinancialheaderloaded', function() {\n\t\tshareLocationY = shareDiv.offset().top + 40;\n\t\ttop = $( '.top-header' ).innerHeight() + $( '#wpadminbar' ).innerHeight();\n\n\t\tif ( $( window ).width() < 561 ) {\n\t\t\ttop = 0;\n\t\t}\n\t} );\n\n\tfunction handleStickySocial() {\n\t\tif ( window.pageYOffset > shareLocationY ) {\n\t\t\tif ( ! fixed ) {\n\t\t\t\tshareDiv.addClass( 'fixed' );\n\t\t\t\tshareDiv.css( 'top', `${ top }px` );\n\t\t\t\tfixed = true;\n\t\t\t}\n\t\t} else {\n\t\t\tif ( fixed ) {\n\t\t\t\tshareDiv.removeClass( 'fixed' );\n\t\t\t\tfixed = false;\n\t\t\t}\n\t\t}\n\t}\n\n\thandleStickySocial();\n\twindow.addEventListener( 'scroll', handleStickySocial );\n\n} )();\n","import './blog-single';\nimport './sticky-social';\n","import './blog-single/index';\n"]}