PageSourceSearch

https://citizensclimateinitiative.eu/wp-content/plugins/sassy-soci…/js/sassy-social-share-public_ver-3.3.8.js

js citizensclimateinitiative.eu collected 2026-10-03 20:46:09 UTC 43,534 bytes, 827 lines download raw bytes

1function heateorSssCallAjax(e){if(typeof jQuery!="undefined"){e()}else{heateorSssGetScript("https://code.jquery.com/jquery-latest.min.js",e)}}
2function heateorSssGetScript(e,t){var n=document.createElement("script");n.src=e;var r=document.getElementsByTagName("head")[0],i=false;n.onload=n.onreadystatechange=function(){if(!i&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){i=true;t();n.onload=n.onreadystatechange=null;r.removeChild(n)}};r.appendChild(n)}
3function heateorSssDetermineWhatsappShareAPI(a){if(a)return-1!=navigator.userAgent.indexOf("Mobi")?"api.whatsapp.com":"web.whatsapp.com";var p=jQuery("i.heateorSssWhatsappBackground a").attr("href");return void 0!==p?-1!=navigator.userAgent.indexOf("Mobi")?(jQuery("i.heateorSssWhatsappBackground a").attr("href",p.replace("web.whatsapp.com","api.whatsapp.com")),"api.whatsapp.com"):(jQuery("i.heateorSssWhatsappBackground a").attr("href",p.replace("api.whatsapp.com","web.whatsapp.com")),"web.whatsapp.com"):""}
4/**
5 * Show more sharing services popup
6 */
7function heateorSssMoreSharingPopup(elem, postUrl, postTitle, twitterTitle){
8	postUrl = encodeURIComponent(postUrl);
9	concate = '</ul></div><div class="footer-panel"><p></p></div></div>';
10	var heateorSssMoreSharingServices = {	  
11	  facebook: {
12		title: "Facebook",
13		locale: "en-US",
14		redirect_url: "https://www.facebook.com/sharer.php?u=" + postUrl + "&t=" + postTitle + "&v=3",
15	  },
16	  twitter: {
17		title: "Twitter",
18		locale: "en-US",
19		redirect_url: "https://twitter.com/intent/tweet?text=" + (twitterTitle ? twitterTitle : postTitle) + " " + postUrl,
20	  },
21	  linkedin: {
22		title: "Linkedin",
23		locale: "en-US",
24		redirect_url: "https://www.linkedin.com/shareArticle?mini=true&url=" + postUrl + "&title=" + postTitle,
25	  },
26	  pinterest: {
27		title: "Pinterest",
28		locale: "en-US",
29		redirect_url: "https://pinterest.com/pin/create/button/?url=" + postUrl + "&media=${media_link}&description=" + postTitle,
30		bookmarklet_url: "javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','https://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());"
31	  },
32	  CopyLink: {
33		title: "Copy Link",
34		locale: "en-US",
35		redirect_url: "",
36		bookmarklet_url: ""
37	  },
38	  Diaspora: {
39		title: "Diaspora",
40		locale: "en-US",
41		redirect_url: "https://joindiaspora.com/bookmarklet?url=" + postUrl + "&title=" + postTitle + "&v=1"
42	  },
43	  Douban: {
44		title: "Douban",
45		locale: "en-US",
46		redirect_url: "https://www.douban.com/share/service?name="+postTitle+"&href="+postUrl+"&image=&updated=&bm=&url="+postUrl+"&title="+postTitle+"&sel="
47	  },
48	  Draugiem: {
49		title: "Draugiem",
50		locale: "en-US",
51		redirect_url: "https://www.draugiem.lv/say/ext/add.php?link="+postUrl+"&title="+postTitle
52	  },
53	  Facebook_Messenger: {
54		title: "Facebook Messenger",
55		locale: "en-US",
56		redirect_url: "https://www.facebook.com/dialog/send?app_id=1904103319867886&display=popup&link="+postUrl+"&redirect_uri="+postUrl
57	  },
58	  Google_Classroom: {
59		title: "Google Classroom",
60		locale: "en-US",
61		redirect_url: "https://classroom.google.com/u/0/share?url="+postUrl
62	  },
63	  Kik: {
64		title: "Kik",
65		locale: "en-US",
66		redirect_url: "https://www.kik.com/send/article/?app_name=Share&text=&title="+postTitle+"&url="+postUrl
67	  },
68	  Papaly: {
69		title: "Papaly",
70		locale: "en-US",
71		redirect_url: "https://papaly.com/api/share.html?url="+postUrl+"&title="+postTitle
72	  },
73	  Refind: {
74		title: "Refind",
75		locale: "en-US",
76		redirect_url: "https://refind.com/?url="+postUrl
77	  },
78	  Skype: {
79		title: "Skype",
80		locale: "en-US",
81		redirect_url: "https://web.skype.com/share?url="+postUrl
82	  },
83	  SMS: {
84		title: "SMS",
85		locale: "en-US",
86		bookmarklet_url: "sms://?&body="+postTitle+" "+postUrl
87	  },
88	  Trello: {
89		title: "Trello",
90		locale: "en-US",
91		redirect_url: "https://trello.com/add-card?mode=popup&url="+postUrl+"&name="+postTitle+"&desc="
92	  },
93	  Viber: {
94		title: "Viber",
95		locale: "en-US",
96		bookmarklet_url: "viber://forward?text="+postTitle+" "+postUrl
97	  },
98	  Threema: {
99		title: "Threema",
100		locale: "en-US",
101		bookmarklet_url: "threema://compose?text="+postTitle+" "+postUrl
102	  },
103	  Telegram: {
104		title: "Telegram",
105		locale: "en-US",
106		redirect_url: "https://telegram.me/share/url?url="+postUrl+"&text="+postTitle
107	  },
108	  email: {
109		title: "Email",
110		locale: "en-US",
111		redirect_url: "mailto:?subject=" + postTitle + "&body=Link: " + postUrl,
112	  },
113	  reddit: {
114		title: "Reddit",
115		locale: "en-US",
116		redirect_url: "http://reddit.com/submit?url=" + postUrl + "&title=" + postTitle,
117	  },
118	  float_it: {
119		title: "Float it",
120		locale: "en-US",
121		redirect_url: "http://www.designfloat.com/submit.php?url=" + postUrl + "&title=" + postTitle,
122	  },
123	  google_mail: {
124		title: "Google Gmail",
125		locale: "en-US",
126		redirect_url: "https://mail.google.com/mail/?ui=2&view=cm&fs=1&tf=1&su=" + postTitle + "&body=Link: " + postUrl,
127	  },
128	  gentlereader: {
129        title: "GentleReader",
130        locale: "en-US",
131        redirect_url: "https://app.gentlereader.com/bookmark?url=" + postUrl,
132      },
133	  google_bookmarks: {
134		title: "Google Bookmarks",
135		locale: "en-US",
136		redirect_url: "http://www.google.com/bookmarks/mark?op=edit&bkmk=" + postUrl + "&title=" + postTitle,
137	  },
138	  digg: {
139		title: "Digg",
140		locale: "en-US",
141		redirect_url: "http://digg.com/submit?phase=2&url=" + postUrl + "&title=" + postTitle,
142	  },
143	  printfriendly: {
144		title: "PrintFriendly",
145		locale: "en-US",
146		redirect_url: "http://www.printfriendly.com/print?url=" + postUrl,
147	  },
148	  print: {
149		title: "Print",
150		locale: "en-US",
151		redirect_url: "http://www.printfriendly.com/print?url=" + postUrl,
152	  },
153	  tumblr: {
154		title: "Tumblr",
155		locale: "en-US",
156		redirect_url: "https://www.tumblr.com/widgets/share/tool?posttype=link&canonicalUrl=" + postUrl + "&title=" + postTitle + "&caption=",
157		bookmarklet_url: "javascript:var d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='http://www.tumblr.com/share',l=d.location,e=encodeURIComponent,p='?v=3&u='+e(l.href) +'&t='+e(d.title) +'&s='+e(s),u=f+p;try{if(!/^(.*\\.)?tumblr[^.]*$/.test(l.host))throw(0);tstbklt();}catch(z){a =function(){if(!w.open(u,'t','toolbar=0,resizable=0,status=1,width=450,height=430'))l.href=u;};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else a();}void(0);"
158	  },
159	  vk: {
160		title: "Vkontakte",
161		locale: "ru",
162		redirect_url: "https://vk.com/share.php?url=" + postUrl + "&title=" + postTitle,
163	  },
164	  evernote: {
165		title: "Evernote",
166		locale: "en-US",
167		redirect_url: "https://www.evernote.com/clip.action?url=" + postUrl + "&title=" + postTitle,
168		bookmarklet_url: "javascript:(function(){EN_CLIP_HOST='http://www.evernote.com';try{var x=document.createElement('SCRIPT');x.type='text/javascript';x.src=EN_CLIP_HOST+'/public/bookmarkClipper.js?'+(new Date().getTime()/100000);document.getElementsByTagName('head')[0].appendChild(x);}catch(e){location.href=EN_CLIP_HOST+'/clip.action?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);}})();"
169	  },
170	  amazon_us_wish_list: {
171		title: "Amazon Wish List",
172		locale: "en-US",
173		redirect_url: "http://www.amazon.com/wishlist/add?u=" + postUrl + "&t=" + postTitle,
174		bookmarklet_url: "javascript:(function(){var w=window,l=w.location,d=w.document,s=d.createElement('script'),e=encodeURIComponent,x='undefined',u='http://www.amazon.com/gp/wishlist/add';if(typeof s!='object')l.href=u+'?u='+e(l)+'&t='+e(d.title);function g(){if(d.readyState&&d.readyState!='complete'){setTimeout(g,200);}else{if(typeof AUWLBook==x)s.setAttribute('src',u+'.js?loc='+e(l)),d.body.appendChild(s);function f(){(typeof AUWLBook==x)?setTimeout(f,200):AUWLBook.showPopover();}f();}}g();}())"
175	  },
176	  wordpress_blog: {
177		title: "WordPress",
178		locale: "en-US",
179		redirect_url: "http://www.addtoany.com/ext/wordpress/press_this?linkurl=" + postUrl + "&linkname=" + postTitle,
180	  },
181	  whatsapp: {
182		title: "Whatsapp",
183		locale: "en-US",
184		bookmarklet_url: "https://" + heateorSssDetermineWhatsappShareAPI(true) + "/send?text=" + postTitle + " " + postUrl,
185	  },
186	  diigo: {
187		title: "Diigo",
188		locale: "en-US",
189		redirect_url: "http://www.diigo.com/post?url=" + postUrl + "&title=" + postTitle,
190	  },
191	  yc_hacker_news: {
192		title: "Hacker News",
193		locale: "en-US",
194		redirect_url: "http://news.ycombinator.com/submitlink?u=" + postUrl + "&t=" + postTitle,
195	  },
196	  box_net: {
197		title: "Box.net",
198		locale: "en-US",
199		redirect_url: "https://www.box.net/api/1.0/import?url=" + postUrl + "&name=" + postTitle + "&import_as=link",
200	  },
201	  aol_mail: {
202		title: "AOL Mail",
203		locale: "en-US",
204		redirect_url: "http://webmail.aol.com/25045/aol/en-us/Mail/compose-message.aspx?subject=" + postTitle + "&body=" + postUrl,
205	  },
206	  yahoo_mail: {
207		title: "Yahoo Mail",
208		locale: "en-US",
209		redirect_url: "http://compose.mail.yahoo.com/?Subject=" + postTitle + "&body=Link: " + postUrl,
210	  },
211	  instapaper: {
212		title: "Instapaper",
213		locale: "en-US",
214		redirect_url: "http://www.instapaper.com/edit?url=" + postUrl + "&title=" + postTitle,
215	  },
216	  plurk: {
217		title: "Plurk",
218		locale: "en-US",
219		redirect_url: "http://www.plurk.com/m?content=" + postUrl + "&qualifier=shares",
220	  },
221	  aim: {
222		title: "AIM",
223		locale: "en-US",
224		redirect_url: "http://share.aim.com/share/?url=" + postUrl + "&title=" + postTitle,
225	  },
226	  viadeo: {
227		title: "Viadeo",
228		locale: "en-US",
229		redirect_url: "http://www.viadeo.com/shareit/share/?url=" + postUrl + "&title=" + postTitle,
230	  },
231	  pinboard_in: {
232		title: "Pinboard",
233		locale: "en-US",
234		redirect_url: "http://pinboard.in/add?url=" + postUrl + "&title=" + postTitle,
235	  },
236	  blogger_post: {
237		title: "Blogger Post",
238		locale: "en-US",
239		redirect_url: "http://www.blogger.com/blog_this.pyra?t=&u=" + postUrl + "&l&n=" + postTitle,
240	  },
241	  typepad_post: {
242		title: "TypePad Post",
243		locale: "en-US",
244		redirect_url: "http://www.typepad.com/services/quickpost/post?v=2&qp_show=ac&qp_title=" + postTitle + "&qp_href=" + postUrl + "&qp_text=" + postTitle,
245	  },
246	  buffer: {
247		title: "Buffer",
248		locale: "en-US",
249		redirect_url: "http://bufferapp.com/add?url=" + postUrl + "&text=" + postTitle,
250	  },
251	  flipboard: {
252		title: "Flipboard",
253		locale: "en-US",
254		redirect_url: "https://share.flipboard.com/bookmarklet/popout?v=2&url=" + postUrl + "&title=" + postTitle,
255	  },
256	  pocket: {
257		title: "Pocket",
258		locale: "en-US",
259		redirect_url: "https://readitlaterlist.com/save?url=" + postUrl + "&title=" + postTitle,
260	  },
261	  fark: {
262		title: "Fark",
263		locale: "en-US",
264		redirect_url: "http://cgi.fark.com/cgi/fark/submit.pl?new_url=" + postUrl,
265	  },
266	  fintel: {
267		title: "Fintel",
268		locale: "en-US",
269		redirect_url: "https://fintel.io/submit?url=" + postUrl,
270	  },
271	  yummly: {
272		title: "Yummly",
273		locale: "en-US",
274		redirect_url: "http://www.yummly.com/urb/verify?url=" + postUrl + "&title=" + postTitle,
275	  },
276	  app_net: {
277		title: "App.net",
278		locale: "en-US",
279		redirect_url: "https://account.app.net/login/",
280	  },
281	  balatarin: {
282		title: "Balatarin",
283		locale: "en-US",
284		redirect_url: "https://www.balatarin.com/login",
285	  },
286	  bibSonomy: {
287		title: "BibSonomy",
288		locale: "en-US",
289		redirect_url: "http://www.bibsonomy.org/login",
290	  },
291	  Bitty_Browser: {
292		title: "Bitty Browser",
293		locale: "en-US",
294		redirect_url: "http://www.bitty.com/manual/?contenttype=&contentvalue=" + postUrl,
295	  },
296	  Blinklist: {
297		title: "Blinklist",
298		locale: "en-US",
299		redirect_url: "http://blinklist.com/blink?t=" + postTitle + "&d=&u=" + postUrl,
300	  },
301	  BlogMarks: {
302		title: "BlogMarks",
303		locale: "en-US",
304		redirect_url: "http://blogmarks.net/my/new.php?mini=1&simple=1&title=" + postTitle + "&url=" + postUrl,
305	  },
306	  Bookmarks_fr: {
307		title: "Bookmarks.fr",
308		locale: "en-US",
309		redirect_url: "http://www.bookmarks.fr/Connexion/?action=add&address=" + postUrl + "&title=" + postTitle,
310	  },
311	  BuddyMarks: {
312		title: "BuddyMarks",
313		locale: "en-US",
314		redirect_url: "http://buddymarks.com/login.php?bookmark_title=" + postTitle + "&bookmark_url=" + postUrl + "&bookmark_desc=&bookmark_tags=",
315	  },
316	  Care2_news: {
317		title: "Care2 News",
318		locale: "en-US",
319		redirect_url: "http://www.care2.com/passport/login.html?promoID=10&pg=http://www.care2.com/news/compose?sharehint=news&share[share_type]news&bookmarklet=Y&share[title]=" + postTitle + "&share[link_url]=" + postUrl + "&share[content]=",
320	  },
321	  Diary_Ru: {
322		title: "Diary.Ru",
323		locale: "en-US",
324		redirect_url: "http://www.diary.ru/?newpost&title=" + postTitle + "&text=" + postUrl,
325	  },
326	  Folkd: {
327		title: "Folkd",
328		locale: "en-US",
329		redirect_url: "http://www.folkd.com/page/social-bookmarking.html?addurl=" + postUrl,
330	  },
331	  Hatena: {
332		title: "Hatena",
333		locale: "en-US",
334		redirect_url: "http://b.hatena.ne.jp/bookmarklet?url=" + postUrl + "&btitle=" + postTitle,
335	  },
336	  Jamespot: {
337		title: "Jamespot",
338		locale: "en-US",
339		redirect_url: "https://my.jamespot.com/",
340	  },
341	  Kakao: {
342		title: "Kakao",
343		locale: "en-US",
344		redirect_url: "https://story.kakao.com/share?url=" + postUrl,
345	  },
346	  Kindle_It: {
347		title: "Kindle_It",
348		locale: "en-US",
349		redirect_url: "https://fivefilters.org/kindle-it/send.php?url=" + postUrl,
350	  },
351	  Known: {
352		title: "Known",
353		locale: "en-US",
354		redirect_url: "https://withknown.com/share/?url=" + postUrl + "&title=" + postTitle,
355	  },
356	  Line: {
357		title: "Line",
358		locale: "en-US",
359		redirect_url: "https://social-plugins.line.me/lineit/share?url=" + postUrl,
360	  },
361	  LiveJournal: {
362		title: "LiveJournal",
363		locale: "en-US",
364		redirect_url: "http://www.livejournal.com/update.bml?subject=" + postTitle + "&event=" + postUrl,
365	  },
366	  Mail_Ru: {
367		title: "Mail.Ru",
368		locale: "en-US",
369		redirect_url: "https://connect.mail.ru/share?share_url=" + postUrl,
370	  },
371	  Mendeley: {
372		title: "Mendeley",
373		locale: "en-US",
374		redirect_url: "https://www.mendeley.com/sign-in/",
375	  },
376	  Meneame: {
377		title: "Meneame",
378		locale: "en-US",
379		redirect_url: "https://www.meneame.net/submit.php?url=" + postUrl,
380	  },
381	  MeWe: {
382		title: "MeWe",
383		locale: "en-US",
384		redirect_url: "https://mewe.com/share?link=" + postUrl,
385	  },
386	  Mix: {
387		title: "Mix",
388		locale: "en-US",
389		redirect_url: "https://mix.com/mixit?url=" + postUrl,
390	  },
391	  Mixi: {
392		title: "Mixi",
393		locale: "en-US",
394		redirect_url: "https://mixi.jp/share.pl?mode=login&u=" + postUrl,
395	  },
396	  MySpace: {
397		title: "MySpace",
398		locale: "en-US",
399		redirect_url: "https://myspace.com/post?u=" + encodeURIComponent(postUrl) + "&t=" + postTitle + "&l=3&c=" + postTitle,
400	  },
401	  Netvouz: {
402		title: "Netvouz",
403		locale: "en-US",
404		redirect_url: "http://www.netvouz.com/action/submitBookmark?url=" + postUrl + "&title=" + postTitle + "&popup=no&description=",
405	  },
406	  Odnoklassniki: {
407		title: "Odnoklassniki",
408		locale: "en-US",
409		redirect_url: "https://connect.ok.ru/dk?cmd=WidgetSharePreview&st.cmd=WidgetSharePreview&st.shareUrl=" + postUrl + "&st.client_id=-1",
410	  },
411	  Outlook_com: {
412		title: "Outlook.com",
413		locale: "en-US",
414		redirect_url: "https://mail.live.com/default.aspx?rru=compose?subject=" + postTitle + "&body=" + postUrl + "&lc=1033&id=64855&mkt=en-us&cbcxt=mai",
415	  },
416	  Protopage_Bookmarks: {
417		title: "Protopage_Bookmarks",
418		locale: "en-US",
419		redirect_url: "http://www.protopage.com/add-button-site?url=" + postUrl + "&label=&type=page",
420	  },
421	  Pusha: {
422		title: "Pusha",
423		locale: "en-US",
424		redirect_url: "https://www.pusha.se/posta?url=" + postUrl,
425	  },
426	  Qzone: {
427		title: "Qzone",
428		locale: "en-US",
429		redirect_url: "http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=" + postUrl,
430	  },
431	  Rediff_MyPage: {
432		title: "Rediff MyPage",
433		locale: "en-US",
434		redirect_url: "https://share.rediff.com/bookmark/addbookmark?bookmarkurl=" + postUrl + "&title=" + postTitle,
435	  },
436	  Renren: {
437		title: "Renren",
438		locale: "en-US",
439		redirect_url: "https://www.connect.renren.com/share/sharer?url=" + postUrl + "&title=" + postTitle,
440	  },
441	  Sina_Weibo: {
442		title: "Sina Weibo",
443		locale: "en-US",
444		redirect_url: "https://service.weibo.com/share/share.php?url=" + postUrl + "&title=" + postTitle,
445	  },
446	  SiteJot: {
447		title: "SiteJot",
448		locale: "en-US",
449		redirect_url: "http://www.sitejot.com/loginform.php?iSiteAdd=&iSiteDes=",
450	  },
451	  Slashdot: {
452		title: "Slashdot",
453		locale: "en-US",
454		redirect_url: "https://slashdot.org/submission?url=" + postUrl,
455	  },
456	  StockTwits: {
457		title: "StockTwits",
458		locale: "en-US",
459		redirect_url: "https://stocktwits.com/widgets/share?body=" + postTitle + " " + postUrl,
460	  },
461	  Svejo: {
462		title: "Svejo",
463		locale: "en-US",
464		redirect_url: "https://svejo.net/story/submit_by_url?url=" + postUrl + "&title=" + postTitle + "&summary=",
465	  },
466	  Symbaloo_Feeds: {
467		title: "Symbaloo_Feeds",
468		locale: "en-US",
469		redirect_url: "https://www.symbaloo.com/",
470	  },
471	  Tuenti: {
472		title: "Tuenti",
473		locale: "en-US",
474		redirect_url: "https://www.tuenti.com/share?p=b5dd6602&url=" + postUrl,
475	  },
476	  Twiddla: {
477		title: "Twiddla",
478		locale: "en-US",
479		redirect_url: "https://www.twiddla.com/New.aspx?url=" + postUrl + "&title=" + postTitle,
480	  },
481	  Webnews: {
482		title: "Webnews",
483		locale: "en-US",
484		redirect_url: "https://www.webnews.de/login",
485	  },
486	  Wykop: {
487		title: "Wykop",
488		locale: "en-US",
489		redirect_url: "https://www.wykop.pl/dodaj?url=" + postUrl + "&title=" + postTitle,
490	  },
491	  Xing: {
492		title: "Xing",
493		locale: "en-US",
494		redirect_url: "https://www.xing.com/spi/shares/new?cb=0&url=" + postUrl,
495	  },
496	  Yoolink: {
497		title: "Yoolink",
498		locale: "en-US",
499		redirect_url: "https://yoolink.to/addorshare?url_value=" + postUrl + "&title=" + postTitle,
500	  }
501	};
502	var heateorSssMoreSharingServicesHtml = '<button id="heateor_sss_sharing_popup_close" class="close-button separated"><img src="'+ heateorSssCloseIconPath +'" /></button><div id="heateor_sss_sharing_more_content" data-href="'+ decodeURIComponent(postUrl) +'"><div class="filter"><input type="text" onkeyup="heateorSssFilterSharing(this.value.trim())" placeholder="Search" class="search"></div><div class="all-services"><ul class="mini">';
503	for(var i in heateorSssMoreSharingServices){
504		var tempTitle = heateorSssCapitaliseFirstLetter(heateorSssMoreSharingServices[i].title.replace(/[_. ]/g, ""));
505		heateorSssMoreSharingServicesHtml += '<li><a rel="nofollow" class="heateorSss'+i+'Share" title="'+ heateorSssMoreSharingServices[i].title +'" alt="'+ heateorSssMoreSharingServices[i].title +'" ';
506		if(heateorSssMoreSharingServices[i].bookmarklet_url){
507			heateorSssMoreSharingServicesHtml += 'href="' + heateorSssMoreSharingServices[i].bookmarklet_url + '" ';
508		}else if(heateorSssMoreSharingServices[i].redirect_url){
509			heateorSssMoreSharingServicesHtml += 'onclick="heateorSssPopup(\'' + heateorSssMoreSharingServices[i].redirect_url + '\')" href="javascript:void(0)" ';
510		}else{
511			heateorSssMoreSharingServicesHtml += 'href="javascript:void(0)" ';
512		}
513		heateorSssMoreSharingServicesHtml += '"><i style="width:22px;height:22px" title="'+ heateorSssMoreSharingServices[i].title +'" class="heateorSssSharing heateorSss' + tempTitle + 'Background"><ss style="display:block;width:100%;height:100%;" class="heateorSssSharingSvg heateorSss' + tempTitle + 'Svg"></ss></i>' + heateorSssMoreSharingServices[i].title + '</a></li>';
514	}
515	heateorSssMoreSharingServicesHtml += concate;
516	
517	var mainDiv = document.createElement('div');
518	mainDiv.innerHTML = heateorSssMoreSharingServicesHtml;
519	mainDiv.setAttribute('id', 'heateor_sss_sharing_more_providers');
520	var bgDiv = document.createElement('div');
521	bgDiv.setAttribute('id', 'heateor_sss_popup_bg');
522	jQuery('body').append(mainDiv).append(bgDiv);
523	document.getElementById('heateor_sss_popup_bg').onclick = document.getElementById('heateor_sss_sharing_popup_close').onclick = function(){
524		mainDiv.parentNode.removeChild(mainDiv);
525		bgDiv.parentNode.removeChild(bgDiv);
526	}
527}
528
529if(heateorSssHorizontalSharingCountEnable || heateorSssVerticalSharingCountEnable){
530	// get sharing counts on window load
531	heateorSssLoadEvent(
532		function(){
533			// sharing counts
534			heateorSssCallAjax(function(){
535				heateorSssGetSharingCounts();
536			});
537		}
538	);
539}
540	
541/**
542 * Search sharing services
543 */
544function heateorSssFilterSharing(val) {
545	jQuery('ul.mini li a').each(function(){
546		if (jQuery(this).text().toLowerCase().indexOf(val.toLowerCase()) != -1) {
547			jQuery(this).parent().css('display', 'block');
548		} else {
549			jQuery(this).parent().css('display', 'none');
550		}
551	});
552};
553
554var heateorSssFacebookTargetUrls = [];
555
556/**
557 * Get sharing counts
558 */
559function heateorSssGetSharingCounts(){
560	var targetUrls = [];
561	jQuery('.heateor_sss_sharing_container').each(function(){
562		if(typeof jQuery(this).attr('heateor-sss-no-counts') == 'undefined'){
563			var currentTargetUrl = jQuery(this).attr('heateor-sss-data-href');
564			if(currentTargetUrl != null && jQuery.inArray(currentTargetUrl, heateorSssUrlCountFetched) == -1){
565				targetUrls.push(currentTargetUrl);
566				heateorSssUrlCountFetched.push(currentTargetUrl);
567			}
568		}
569	});
570	
571	if(targetUrls.length == 0){
572		return;
573	}
574	jQuery.ajax({
575		type: 'GET',
576		dataType: 'json',
577		url: heateorSssSharingAjaxUrl,
578		data: {
579			action: 'heateor_sss_sharing_count',
580			urls: targetUrls,
581		},
582		success: function(data, textStatus, XMLHttpRequest){
583			if(data.status == 1){
584				if(data.facebook){
585					heateorSssFacebookTargetUrls = data.facebook_urls;
586				}
587				for(var i in data.message){
588					var sharingContainers = jQuery("div[heateor-sss-data-href='"+i+"']");
589
590					jQuery(sharingContainers).each(function(){
591						var totalCount = 0;
592						for(var j in data.message[i]){
593							var sharingCount = parseInt(data.message[i][j]) || 0;
594
595							var targetElement = jQuery(this).find('.heateor_sss_'+j+'_count');
596							
597							if(jQuery(targetElement).attr('sss_st_count')){
598								sharingCount = parseInt(sharingCount) + parseInt(jQuery(targetElement).attr('sss_st_count'));
599							}
600							totalCount += parseInt(sharingCount);
601							if(sharingCount < 1){ continue; }
602							jQuery(targetElement).html(heateorSssCalculateApproxCount(sharingCount)).css({'visibility': 'visible', 'display': 'block'});
603							if ( ( typeof heateorSssReduceHorizontalSvgWidth != 'undefined' && jQuery(this).hasClass('heateor_sss_horizontal_sharing') ) || ( typeof heateorSssReduceVerticalSvgWidth != 'undefined' && jQuery(this).hasClass('heateor_sss_vertical_sharing') ) ) {
604								jQuery(targetElement).parents('li').find('.heateorSssSharingSvg').css('float', 'left');
605							}
606							if ( ( typeof heateorSssReduceHorizontalSvgHeight != 'undefined' && jQuery(this).hasClass('heateor_sss_horizontal_sharing') ) || ( typeof heateorSssReduceVerticalSvgHeight != 'undefined' && jQuery(this).hasClass('heateor_sss_vertical_sharing') ) ) {
607								jQuery(targetElement).parents('li').find('.heateorSssSharingSvg').css('marginTop', '0');
608							}
609						}
610						var totalCountContainer = jQuery(this).find('.heateorSssTCBackground'), totalShares = heateorSssCalculateApproxCount(totalCount);
611						jQuery(totalCountContainer).each(function(){
612							var containerHeight = jQuery(this).css('height');
613							jQuery(this).html('<div class="heateorSssTotalShareCount" style="font-size: '+ (parseInt(containerHeight) * 62/100) +'px">' + totalShares + '</div><div class="heateorSssTotalShareText" style="font-size: '+ (parseInt(containerHeight) * 38/100) +'px">' + (totalCount == 0 || totalCount > 1 ? heateorSssSharesText : heateorSssShareText) + '</div>').css('visibility', 'visible');
614						});
615					});
616				}
617				if(heateorSssFacebookTargetUrls.length != 0){
618					heateorSssFetchFacebookShares(heateorSssFacebookTargetUrls);
619				}
620			}
621		}
622	});
623}
624
625function heateorSssFetchFacebookShares(targetUrls){
626	var loopCounter = 0;
627	for(var i in targetUrls){
628		for(var j in targetUrls[i]){
629			loopCounter++;
630			heateorSssFBShareJSONCall(targetUrls[i][j], loopCounter, targetUrls[0].length*targetUrls.length, targetUrls[0][j]);
631		}
632	}
633}
634
635function heateorSssFBShareJSONCall(targetUrl, loopCounter, targetUrlsLength, dataHref) {
636	jQuery.getJSON('https://graph.facebook.com/?id=' + targetUrl, function(data){
637	    if(data.share && data.share.share_count >= 0){
638	    	var sharingContainers = jQuery("div[heateor-sss-data-href='"+dataHref+"']");
639
640			jQuery(sharingContainers).each(function(){
641				var targetElement = jQuery(this).find('.heateor_sss_facebook_count');
642				var facebookBackground = jQuery(this).find('i.heateorSssFacebookBackground');
643				var sharingCount = parseInt(data.share.share_count);
644
645				if(jQuery(targetElement).attr('sss_st_count') !== undefined){
646					sharingCount += parseInt(jQuery(targetElement).attr('sss_st_count'));
647				}
648				if(sharingCount > 0){
649					if(typeof jQuery(facebookBackground).attr('heateor-sss-fb-shares') == 'undefined'){
650						jQuery(targetElement).html(heateorSssCalculateApproxCount(sharingCount)).css({'visibility': 'visible', 'display': 'block'});
651						jQuery(facebookBackground).attr('heateor-sss-fb-shares', sharingCount);
652					}else if(typeof jQuery(facebookBackground).attr('heateor-sss-fb-shares') != 'undefined'){
653						var tempShareCount = parseInt(jQuery(facebookBackground).attr('heateor-sss-fb-shares'));
654						jQuery(facebookBackground).attr('heateor-sss-fb-shares', sharingCount + tempShareCount);
655						jQuery(targetElement).html(heateorSssCalculateApproxCount(sharingCount + tempShareCount));
656					}
657
658					if ( ( typeof heateorSssReduceHorizontalSvgWidth != 'undefined' && jQuery(this).hasClass('heateor_sss_horizontal_sharing') ) || ( typeof heateorSssReduceVerticalSvgWidth != 'undefined' && jQuery(this).hasClass('heateor_sss_vertical_sharing') ) ) {
659						jQuery(targetElement).parents('li').find('.heateorSssSharingSvg').css('float', 'left');
660					}
661					if ( ( typeof heateorSssReduceHorizontalSvgHeight != 'undefined' && jQuery(this).hasClass('heateor_sss_horizontal_sharing') ) || ( typeof heateorSssReduceVerticalSvgHeight != 'undefined' && jQuery(this).hasClass('heateor_sss_vertical_sharing') ) ) {
662						jQuery(targetElement).parents('li').find('.heateorSssSharingSvg').css('marginTop', '0');
663					}
664					
665					var totalCountContainer = jQuery(this).find('.heateorSssTCBackgroun
665d');
666					jQuery(totalCountContainer).each(function(){
667						var totalShareCountElem = jQuery(this).find('.heateorSssTotalShareCount');
668						var totalShareCount = jQuery(totalShareCountElem).text();
669						var newTotalCount = heateorSssCalculateActualCount(totalShareCount) + sharingCount;
670						jQuery(totalShareCountElem).text(heateorSssCalculateApproxCount(newTotalCount));
671						jQuery(this).find('.heateorSssTotalShareText').text(newTotalCount == 0 || newTotalCount > 1 ? heateorSssSharesText : heateorSssShareText);
672					});
673				}
674			});
675		}
676		
677		if(loopCounter == targetUrlsLength){
678			setTimeout(function(){
679				var facebookShares = {};
680				for(var i in heateorSssFacebookTargetUrls[0]){
681					var sharingContainers = jQuery("div[heateor-sss-data-href='"+heateorSssFacebookTargetUrls[0][i]+"']");
682					jQuery(sharingContainers).each(function(){
683						var facebookCountElement = jQuery(this).find('.heateor_sss_facebook_count');
684						var facebookCountElementBg = jQuery(this).find('i.heateorSssFacebookBackground');
685						var shareCountString = typeof jQuery(facebookCountElementBg).attr('heateor-sss-fb-shares') != 'undefined' ? jQuery(facebookCountElementBg).attr('heateor-sss-fb-shares').trim() : '';
686						if(shareCountString != ''){
687							var shareCount = parseInt(heateorSssCalculateActualCount(shareCountString));
688							if(jQuery(facebookCountElement).attr('sss_st_count') !== undefined){
689								var startingCount = parseInt(jQuery(facebookCountElement).attr('sss_st_count').trim());
690								shareCount = Math.abs(shareCount - startingCount);
691							}
692							facebookShares[heateorSssFacebookTargetUrls[0][i]] = shareCount;
693							return;
694						}
695					});
696				}
697				if(!jQuery.isEmptyObject(facebookShares)){
698					heateorSssSaveFacebookShares(facebookShares);
699				}
700			}, 1000);
701		}
702	});
703}
704
705function heateorSssSaveFacebookShares(facebookShares){
706	jQuery.ajax({
707		type: 'GET',
708		dataType: 'json',
709		url: heateorSssSharingAjaxUrl,
710		data: {
711			action: 'heateor_sss_save_facebook_shares',
712			share_counts: facebookShares,
713		},
714		success: function(data, textStatus, XMLHttpRequest){}
715	});
716}
717
718function heateorSssCalculateApproxCount(sharingCount){
719	// round to one decimal
720	if(sharingCount > 999 && sharingCount < 10000){
721		sharingCount = (Math.round(sharingCount/100))/10 + 'K';
722	}else if(sharingCount > 9999 && sharingCount < 100000){
723		sharingCount = (Math.round(sharingCount/100))/10 + 'K';
724	}else if(sharingCount > 99999 && sharingCount < 1000000){
725		sharingCount = (Math.round(sharingCount/100))/10 + 'K';
726	}else if(sharingCount > 999999){
727		sharingCount = (Math.round(sharingCount/100000))/10 + 'M';
728	}
729	return sharingCount;
730}
731
732function heateorSssCalculateActualCount(sharingCount){
733	if(sharingCount.indexOf('K') > 0){
734		sharingCount = sharingCount.replace('K', '') * 1000;
735	}else if(sharingCount.indexOf('M') > 0){
736		sharingCount = sharingCount.replace('M', '') * 1000000;
737	}
738	return parseInt(sharingCount);
739}
740
741function heateorSssCapitaliseFirstLetter(e) {
742    return e.charAt(0).toUpperCase() + e.slice(1)
743}
744
745jQuery(function(){
746	var heateorSssWhatsappJSAPI = heateorSssDetermineWhatsappShareAPI(false);
747	var classes = ['heateor_sss_vertical_sharing', 'heateor_sss_vertical_counter'];
748	for(var i = 0; i < classes.length; i++){
749		if(jQuery('.' + classes[i]).length){
750			jQuery('.' + classes[i]).each(function(){
751				var verticalSharingHtml = jQuery(this).html();
752				if(jQuery(this).attr('style').indexOf('right') >= 0){
753					var removeClass = 'heateorSssPushIn', margin = 'Right', alignment = 'right', addClass = 'heateorSssPullOut';
754				}else{
755					var removeClass = 'heateorSssPullOut', margin = 'Left', alignment = 'left', addClass = 'heateorSssPushIn';
756				}
757				jQuery(this).html(verticalSharingHtml + '<div title="Hide" style="float:' + alignment + '" onclick="heateorSssHideSharing(this, \''+ removeClass +'\', \''+ addClass +'\',\'' + margin +'\', \'' + alignment + '\')" class="heateorSssSharingArrow ' + removeClass + '"></div>');
758			});
759		}
760	}
761	if(heateorSssMobileStickySharingEnabled == 1){
762		if(jQuery('div.heateor_sss_vertical_sharing').length){
763			// insert div before </body>
764			jQuery(document.body).append("<div class='heateor_sss_mobile_footer'></div>");
765		}
766	}
767
768	var heateorSssClipboard = new Clipboard('.heateorSssCopyLinkBackgroun
768d, .heateorSssCopyLinkShare, .heateorSssCopyLinkSvg', {
769		text: function(trigger) {
770			if(jQuery(trigger).hasClass('heateorSssCopyLinkShare')){
771				var element = trigger.parentElement.parentElement.parentElement.parentElement;
772				var url = jQuery(element).attr("data-href") || "";
773			}else if(jQuery(trigger).hasClass('heateorSssCopyLinkSvg')){
774                var element = trigger.parentElement.parentElement.parentElement.parentElement;
775                var url = jQuery(element).attr("heateor-sss-data-href") || "";
776                if(!url){
777                    var element = trigger.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement;
778                    var url = jQuery(element).attr("data-href") || "";
779                }
780            }
781			return url;
782		}
783	});
784	heateorSssClipboard.on('success', function(e) {
785        alert(heateorSssCopyLinkMessage);
786    });
787});
788
789function heateorSssHideSharing(elem, removeClass, addClass, margin, alignment){
790	var animation = {}, counter = jQuery(elem).parent().hasClass('heateor_sss_vertical_counter'), offset = parseInt(jQuery(elem).parent().css('width')) + 10 - (counter ? 16 : 0);
791	var ssOffset = jQuery(elem).parent().attr('ss-offset');
792	if(ssOffset){
793		var savedOffset = parseInt(ssOffset);
794	}else{
795		var savedOffset = (counter ? heateorSssCounterOffset : heateorSssSharingOffset);
796	}
797	if(jQuery(elem).attr('title') == 'Hide'){
798		animation[alignment] = "-=" + (offset + savedOffset);
799		jQuery(elem).parent().animate(animation, 400, function(){
800			jQuery(elem).removeClass(removeClass).addClass(addClass).attr('title', 'Share');
801			if(counter){
802				var cssFloat = alignment == 'left' ? 'right' : 'left';
803				jQuery(elem).css('float', cssFloat);
804			}else{
805				jQuery(elem).css('margin' + margin, offset + 'px')
806			}
807		});
808	}else{
809		animation[alignment] = "+=" + (offset + savedOffset); 
810		jQuery(elem).parent().animate(animation, 400, function(){
811			jQuery(elem).removeClass(addClass).addClass(removeClass).attr('title', 'Hide');
812			if(counter){
813				jQuery(elem).css('float', alignment);
814			}else{
815				jQuery(elem).css('margin' + margin, '0px');
816			}
817		});
818	}
819}
820
821/*!
822 * clipboard.js v1.7.1
823 * https://zenorocha.github.io/clipboard.js
824 *
825 * Licensed MIT © Zeno Rocha
826 */
827!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Clipboard=t()}}(function(){var t,e,n;return function t(e,n,o){function i(a,c){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!c&&l)return l(a,!0);if(r)return r(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var u=n[a]={exports:{}};e[a][0].call(u.exports,function(t){var n=e[a][1][t];return i(n||t)},u,u.exports,t,e,n,o)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a<o.length;a++)i(o[a]);return i}({1:[function(t,e,n){function o(t,e){for(;t&&t.nodeType!==i;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}var i=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}e.exports=o},{}],2:[function(t,e,n){function o(t,e,n,o,r){var a=i.apply(this,arguments);return t.addEventListener(n,a,r),{destroy:function(){t.removeEventListener(n,a,r)}}}function i(t,e,n,o){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&o.call(t,n)}}var r=t("./closest");e.exports=o},{"./closest":1}],3:[function(t,e,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},{}],4:[function(t,e,n){function o(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!c.string(e))throw new TypeError("Second argument must be a String");if(!c.fn(n))throw new TypeError("Third argument must be a Function");if(c.node(t))return i(t,e,n);if(c.nodeList(t))return r(t,e,n);if(c.string(t))return a(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function i(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function r(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}function a(t,e,n){return l(document.body,t,e,n)}var c=t("./is"),l=t("delegate");e.exports=o},{"./is":3,delegate:2}],5:[function(t,e,n){function o(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}
vendor: 7,655 bytes, line 827
827else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),i=document.createRange();i.selectNodeContents(t),o.removeAllRanges(),o.addRange(i),e=o.toString()}return e}e.exports=o},{}],6:[function(t,e,n){function o(){}o.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function o(){i.off(t,o),e.apply(n,arguments)}var i=this;return o._=e,this.on(t,o,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,i=n.length;for(o;o<i;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],i=[];if(o&&e)for(var r=0,a=o.length;r<a;r++)o[r].fn!==e&&o[r].fn._!==e&&i.push(o[r]);return i.length?n[t]=i:delete n[t],this}},e.exports=o},{}],7:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","select"],r);else if(void 0!==o)r(n,e("select"));else{var a={exports:{}};r(a,i.select),i.clipboardAction=a.exports}}(this,function(t,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=n(e),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),c=function(){function t(e){o(this,t),this.resolveOptions(e),this.initSelection()}return a(t,[{key:"resolveOptions",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function t(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function t(){var e=this,n="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[n?"right":"left"]="-9999px";var o=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=o+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,i.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function t(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function t(){this.selectedText=(0,i.default)(this.target),this.copyText()}},{key:"copyText",value:function t(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function t(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function t(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function t(){this.removeFake()}},{key:"action",set:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function t(){return this._action}},{key:"target",set:function t(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":r(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function t(){return this._target}}]),t}();t.exports=c})},{select:5}],8:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","./clipboard-action","tiny-emitter","good-listener"],r);else if(void 0!==o)r(n,e("./clipboard-action"),e("tiny-emitter"),e("good-listener"));else{var a={exports:{}};r(a,i.clipboardAction,i.tinyEmitter,i.goodListener),i.clipboard=a.exports}}(this,function(t,e,n,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}var s=i(e),u=i(n),f=i(o),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),p=function(t){function e(t,n){r(this,e);var o=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return o.resolveOptions(n),o.listenClick(t),o}return c(e,t),h(e,[{key:"resolveOptions",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function t(e){var n=this;this.listener=(0,f.default)(e,"click",function(t){return n.onClick(t)})}},{key:"onClick",value:function t(e){var n=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s.default({action:this.action(n),target:this.target(n),text:this.text(n),container:this.container,trigger:n,emitter:this})}},{key:"defaultAction",value:function t(e){return l("action",e)}},{key:"defaultTarget",value:function t(e){var n=l("target",e);if(n)return document.querySelector(n)}},{key:"defaultText",value:function t(e){return l("text",e)}},{key:"destroy",value:function t(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],n="string"==typeof e?[e]:e,o=!!document.queryCommandSupported;
827return n.forEach(function(t){o=o&&!!document.queryCommandSupported(t)}),o}}]),e}(u.default);t.exports=p})},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.