(e=>{"function"==typeof define&&define.amd?define("shareModal",e):e()})(function(){jQuery(function(a){a(".c27-open-popup-window, .cts-open-popup").click(function(e){e.preventDefault();e=screen.height/2-200;window.open(this.href,"targetWindow",["toolbar=no","location=no","status=no","menubar=no","scrollbars=yes","resizable=yes","width=600","height=400","top="+e,"left="+(screen.width/2-300)].join(","))}),a(document).on("mousedown click",".c27-copy-link",function(e){e.preventDefault();var t,n,o,i=a(this);i.hasClass("copying")||(i.addClass("copying"),t=i.find("div"),n=t.html(),e=i.attr("href"),o=a("<input>"),a("body").append(o),o.val(e).select(),document.execCommand("copy"),o.remove(),t.html(CASE27.l10n.copied_to_clipboard),setTimeout(function(){t.html(n),i.removeClass("copying")},1500))}),a(".c27-native-share").length&&(navigator.share||a(".c27-native-share").closest("li").hide(),a(".c27-native-share").click(function(e){e.preventDefault(),navigator.share&&navigator.share({title:this.dataset.title,url:this.dataset.link})}))})});
