':'',email:'',copy:'',print:'',sms:'',messenger:'',facebook:'',whatsapp:'',twitter:'',linkedin:'',telegram:'',skype:'',pinterest:''};function l(e){var n=e,t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",o.appendChild(document.createTextNode(n)),o.id="shareAPIPolyfill-style",t.appendChild(o)}return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(s,r){t.title&&"string"==typeof t.title&&t.text&&"string"==typeof t.text||r("Invalid Params");var p=t.title,d=t.url,h=t.fbId,m=t.hashtags,g=t.via,v=t.hashtag,y=n(n({},{copy:!0,print:!0,email:!0,sms:!0,messenger:!0,facebook:!0,whatsapp:!0,twitter:!0,linkedin:!0,telegram:!0,skype:!0,pinterest:!0,language:"en"}),o),w=n(n({},e.default),e[y.language]?e[y.language]:e[navigator.language]||e[navigator.language.substr(0,2).toLowerCase()]||e.en),u=t.text||p,f=encodeURIComponent(t.image);function b(){k.classList.remove("visible"),P.classList.remove("visible"),k.addEventListener("transitionend",(function e(){k.removeEventListener("transitionend",e),document.body.removeChild(k)})),P.addEventListener("transitionend",(function e(){P.removeEventListener("transitionend",e),document.body.removeChild(P),document.head.removeChild(document.querySelector("#shareAPIPolyfill-style")),document.removeEventListener("keyup",x)}))}l('\n#shareAPIPolyfill-backdrop,\n#shareAPIPolyfill-container {\n opacity: 0;\n pointer-events: none;\n position: fixed;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n margin: auto;\n width: 100%;\n height: 100%;\n will-change: opacity;\n z-index: 99999999;\n}\n#shareAPIPolyfill-backdrop {\n transition: opacity linear 250ms;\n background-color: rgba(0, 0, 0, 0.6);\n}\n#shareAPIPolyfill-container {\n color: #424242;\n background-color: #f9f9f9;\n top: auto;\n max-width: 400px;\n height: auto;\n transition-property: transform,opacity;\n transition-timing-function: linear;\n transition-duration: 250ms;\n transition-delay: 150ms;\n transform: translateY(100%);\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", arial, sans-serif, "Microsoft JhengHei";\n}\n#shareAPIPolyfill-backdrop.visible,\n#shareAPIPolyfill-container.visible {\n opacity: 1;\n pointer-events: all;\n}\n#shareAPIPolyfill-container.visible {\n transform: translateY(0);\n}\n#shareAPIPolyfill-container .shareAPIPolyfill-header {\n background: #EEE;\n}\n#shareAPIPolyfill-container .shareAPIPolyfill-header .shareAPIPolyfill-icons-container {\n display: flex;\n}\n#shareAPIPolyfill-container .shareAPIPolyfill-header-title {\n background-color: #E0E0E0;\n padding: 10px 18px;\n color: #424242;\n font-weight: 600;\n}\n#shareAPIPolyfill-container .shareAPIPolyfill-body {\n border-top: solid 1px #EEE;\n}\n#shareAPIPolyfill-container .shareAPIPolyfill-footer {\n width: 100%;\n display: block;\n border: none;\n transition: opacity ease-in 250ms;\n border-top: solid 1px #EEE;\n background-color: #EEE;\n text-align: center;\n padding: 10px;\n font-size:13px;\n cursor: pointer;\n opacity: .5;\n}\n#shareAPIPolyfill-container .shareAPIPolyfill-footer:hover {\n opacity: 1;\n}\n#shareAPIPolyfill-container .shareAPIPolyfill-icons-container {\n display: flex;\n flex-wrap: wrap;\n}\n#shareAPIPolyfill-container .tool-icon {\n border: none;\n display: inline-block;\n width: 25%;\n box-sizing: border-box;\n font-weight: 400;\n font-size: 12px;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-align: center;\n cursor: pointer;\n background-color: transparent;\n padding: 20px 0;\n}\n#shareAPIPolyfill-container .tool-icon:hover {\n box-shadow: inset 0 0 20px rgba(0,0,0, .125);\n}\n#shareAPIPolyfill-container .the-icon-title {\n padding-top: 10px;\n display: block;\n}\n.shareAPIPolyfill-header-title .the-icon {\n\tdisplay: inline-block;\n\theight: 20px;\n\twidth: 20px;\n\tpadding-right: 5px;\n\tvertical-align:'.concat(a?"-2px":"-4px",";\n}\n.shareAPIPolyfill-icons-container.title .tool-icon .the-icon,\n.shareAPIPolyfill-icons-container.body .tool-icon .the-icon {\n display: block;\n margin: auto;\n width: 42px;\n height: 36px;\n}\n.shareAPIPolyfill-icons-container.title .tool-icon .the-icon {\n height: 24px;\n}\n.shareAPIPolyfill-icons-container .hidden {\n display: none !important;\n}\n"));var k=document.createElement("div"),P=document.createElement("div");function x(e){27===e.keyCode&&b()}k.id="shareAPIPolyfill-backdrop",P.id="shareAPIPolyfill-container",P.setAttribute("tabindex","0"),P.innerHTML='\n
\n \n"),k.addEventListener("click",(function(){b()})),!1!==y.skype&&function(e,n,t){e.loadSkypeWebSdkAsync=e.loadSkypeWebSdkAsync||function(e){var o,a=n.getElementsByTagName(t)[0];n.getElementById(e.id)||((o=n.createElement(t)).id=e.id,o.src=e.scriptToLoad,o.onload=e.callback,a.parentNode.insertBefore(o,a))};e.loadSkypeWebSdkAsync({scriptToLoad:"https://swx.cdn.skype.com/shared/v/latest/skypewebsdk.js",id:"skype_web_sdk"})}(window,document,"script"),requestAnimationFrame((function(e){document.body.appendChild(k),document.body.appendChild(P),document.addEventListener("keyup",x),Array.from(P.querySelectorAll(".tool-icon")).forEach((function(e){e.addEventListener("click",(function(n){var o=encodeURIComponent(u+": "+d);switch(e.dataset.tool){case"copy":navigator.clipboard.writeText("".concat(p,"\n").concat(t.text||"","\n").concat(d));break;case"print":setTimeout((function(e){self.print()}),500);break;case"email":var a="".concat(encodeURIComponent(u),"%0D%0A"),c="mailto:?subject=".concat(p,"&body=").concat(a).concat(encodeURIComponent(d));window.open(c);break;case"sms":location.href="sms:".concat(w.selectSms,"?&body=").concat(encodeURIComponent(p),": ").concat(encodeURIComponent(t.text||"")," ").concat(d);break;case"messenger":window.open("http://www.facebook.com/dialog/send?app_id="+h+"&display=popup&href="+encodeURIComponent(d)+"&link="+encodeURIComponent(d)+"&redirect_uri="+encodeURIComponent(d)+""e="+encodeURIComponent(u));break;case"facebook":window.open("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(d)+""e="+encodeURIComponent(u)+"&hashtag="+(v||m||""));break;case"whatsapp":window.open((i?"https://api.whatsapp.com/send?text=":"whatsapp://send?text=")+encodeURIComponent(u+"\n"+d));break;case"twitter":window.open("https://twitter.com/intent/tweet?text=".concat(encodeURIComponent(u),"&url=").concat(encodeURIComponent(d),"&hashtags=").concat(m||"","&via=").concat(g?encodeURIComponent(g):""));break;case"linkedin":window.open("https://www.linkedin.com/shareArticle?mini=true&url=".concat(encodeURIComponent(d),"&title=").concat(p,"&summary=").concat(u,"&source=LinkedIn"));break;case"telegram":window.open(i?"https://telegram.me/share/msg?url="+encodeURIComponent(d)+"&text="+encodeURIComponent(u):"tg://msg?text="+o);break;case"pinterest":window.open("https://pinterest.com/pin/create/button/?url="+encodeURIComponent(d)+"&description="+encodeURIComponent(u)+"&media="+f)}s(),b()}))})),P.querySelector(".shareAPIPolyfill-footer").addEventListener("click",b),requestAnimationFrame((function(){k.classList.add("visible"),P.classList.add("visible")})),document.getElementById("shareAPIPolyfill-container").focus()}))}))}}()})(); //# sourceMappingURL=share-min.js.map