(()=>{"use strict";var e={20:(e,r,t)=>{var s=t(609),n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,a=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function p(e,r,t){var s,i={},p=null,l=null;for(s in void 0!==t&&(p=""+t),void 0!==r.key&&(p=""+r.key),void 0!==r.ref&&(l=r.ref),r)o.call(r,s)&&!c.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps)for(s in r=e.defaultProps)void 0===i[s]&&(i[s]=r[s]);return{$$typeof:n,type:e,key:p,ref:l,props:i,_owner:a.current}}r.Fragment=i,r.jsx=p,r.jsxs=p},609:e=>{e.exports=window.React},848:(e,r,t)=>{e.exports=t(20)}},r={};const t=window.wc.blocksCheckout,s=window.wc.blocksComponents,n=window.wp.i18n,i=window.wp.plugins,o=window.wc.priceFormat;var a=function t(s){var n=r[s];if(void 0!==n)return n.exports;var i=r[s]={exports:{}};return e[s](i,i.exports,t),i.exports}(848);(0,t.registerCheckoutFilters)("sdevs-subscription",{cartItemPrice:(e,r,t,s)=>{const{sdevs_subscription:i}=r,{cartItem:o}=t,{totals:a}=o;if(void 0===a)return e;if("0"===a.line_total)return`<price/> ${(0,n.__)("Due Today","subscription")}`;if(i&&i.type){const e=i.type.charAt(0).toUpperCase()+i.type.slice(1),r=parseInt(i.max_no_payment,10),t=!isNaN(r)&&r>0?` x ${r}`:"";return`<price/> / ${i.time&&i.time>1?" "+i.time+"-":""}${e}${t}`}return e},subtotalPriceFormat:(e,r,t,s)=>{const{sdevs_subscription:i}=r,{sdevs_subscription:o}=r;if(i&&i.type){const e=i.type.charAt(0).toUpperCase()+i.type.slice(1),r=parseInt(i.max_no_payment,10),t=!isNaN(r)&&r>0?` x ${r}`:"",s=i.time&&i.time>1?i.time+"-":"";return"<price/> "+(0,n.__)("Every","subscription")+" "+s+e+t}return e}});const c=({cart:e,extensions:r})=>{if(0===Object.keys(r).length)return;const{cartTotals:i}=e,{sdevs_subscription:c}=r;if(0===c.length)return;const p=(0,o.getCurrencyFromPriceResponse)(i),l=Math.pow(10,p.minorUnit);return(0,a.jsx)(t.TotalsItem,{className:"wc-block-components-totals-footer-item",label:(0,n.__)("Recurring totals","subscription"),description:(0,a.jsx)("div",{style:{display:"grid"},children:c.map(e=>{const r=e.type.charAt(0).toUpperCase()+e.type.slice(1);return(0,a.jsxs)("div",{style:{margin:"20px 0",float:"right"},children:[(0,a.jsxs)("div",{style:{fontSize:"18px"},children:[(0,a.jsx)(s.FormattedMonetaryAmount,{currency:p,value:Math.round(e.price*l)}),(0,a.jsxs)("span",{class:"wpsubs-subscription-timing",children:[" / ",e.time&&e.time>1?e.time+"-"+r+" ":r]})]}),(0,a.jsx)("small",{children:e.description}),"yes"===e.can_user_cancel&&(""===e.max_no_payment||0===parseInt(e.max_no_payment))&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("br",{}),(0,a.jsxs)("small",{children:[(0,n.__)("You can cancel subscription at any time!","subscription")," "]})]}),parseInt(e.max_no_payment)>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("br",{}),(0,a.jsx)("small",{children:(0,n.sprintf)(
(0,n.__)("This subscription will be billed in %1$s installments, for a total of %2$s.","subscription"),e.max_no_payment,(0,o.formatPrice)(Math.round(e.price*l*parseInt(e.max_no_payment)),{currency:p.code,currency_symbol:p.symbol,decimal_separator:p.decimalSeparator,thousand_separator:p.thousandSeparator,precision:p.minorUnit,price_format:p.priceFormat}))})]})]})})})})};(0,i.registerPlugin)("sdevs-subscription",{render:()=>(0,a.jsx)(t.ExperimentalOrderMeta,{children:(0,a.jsx)(c,{})}),scope:"woocommerce-checkout"})})();
function acp_createCookie(name, value, days){
var expires;
if(days){
var date=new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
expires="; expires=" + date.toGMTString();
}else{
expires="";
}
document.cookie=encodeURIComponent(name) + "=" + encodeURIComponent(value) + expires + "; path=/; SameSite=Lax";
}
function acp_readCookie(name){
var nameEQ=encodeURIComponent(name) + "=";
var ca=document.cookie.split(';');
for (var i=0; i < ca.length; i++){
var c=ca[i];
while (c.charAt(0)===' ')
c=c.substring(1, c.length);
if(c.indexOf(nameEQ)===0)
return decodeURIComponent(c.substring(nameEQ.length, c.length));
}
return null;
}
function acp_eraseCookie(name){
acp_createCookie(name, "", -1);
}
jQuery(document).ready(function ($){
setTimeout(function (){
$('#acwp-toolbar-btn-wrap').addClass('show');
}, 250);
const noCookies=acwp_attr.nocookies;
const noLineHeight=acwp_attr.fontsizer_nolineheight;
const customtags_option=acwp_attr.fontsizer_customtags;
const customTags=customtags_option!=='' ? customtags_option:'p,h1,h2,h3,h4,h5,h6,label';
const customexlcude_option=acwp_attr.fontsize_excludetags;
const IncreseFont=(toggle)=> {
let newSize=acwp_attr.fontsizer_max!='' ? parseFloat(acwp_attr.fontsizer_max) / 100:1.6;
let incCheckbox=document.getElementById('acwp-toggler-incfont');
let decCheckbox=document.getElementById('acwp-toggler-decfont');
if(decCheckbox.checked==true)
decCheckbox.checked=false;
if(toggle){
jQuery('#acwp-toolbar').addClass('incresed');
jQuery(customTags).not(customexlcude_option).each(function (){
let fontSize=jQuery(this).css('font-size');
if(!jQuery(this).data('acwp-fontsize'))
jQuery(this).attr('data-acwp-fontsize', fontSize.substring(0, fontSize.length - 2));
jQuery(this).css('font-size', parseInt(fontSize) * newSize + 'px');
if(noLineHeight!=='yes'){
let lineHeight=jQuery(this).css('line-height');
if(!jQuery(this).data('acwp-lineheight'))
jQuery(this).attr('data-acwp-lineheight', lineHeight.substring(0, lineHeight.length - 2));
jQuery(this).css('line-height', 'normal');
}});
}else{
if(incCheckbox.checked!==true){
jQuery('#acwp-toolbar').addClass('incresed');
jQuery(customTags).not(customexlcude_option).each(function (){
let fontSize=jQuery(this).css('font-size');
if(!jQuery(this).data('acwp-fontsize'))
jQuery(this).attr('data-acwp-fontsize', fontSize.substring(0, fontSize.length - 2));
jQuery(this).css('font-size', parseInt(fontSize) * newSize + 'px');
if(noLineHeight!=='yes'){
let lineHeight=jQuery(this).css('line-height');
if(!jQuery(this).data('acwp-lineheight'))
jQuery(this).attr('data-acwp-lineheight', lineHeight.substring(0, lineHeight.length - 2));
jQuery(this).css('line-height', 'normal');
}});
}else{
jQuery('#acwp-toolbar').removeClass('incresed');
jQuery(customTags).not(customexlcude_option).each(function (){
let fontSize=jQuery(this).data('acwp-fontsize');
jQuery(this).css('font-size', parseInt(fontSize) + 'px');
if(noLineHeight!=='yes'){
let lineHeight=jQuery(this).data('acwp-lineheight');
jQuery(this).css('line-height', parseInt(lineHeight) + 'px');
}});
}}
}
const DecreaseFont=(toggle)=> {
let newSize=(acwp_attr.fontsizer_min!=='') ? parseFloat(acwp_attr.fontsizer_min) / 100:0.8;
let incfontCheckbox=document.getElementById('acwp-toggler-incfont');
if(incfontCheckbox.checked==true){
incfontCheckbox.checked=false;
}
if(toggle){
jQuery(customTags).each(function (){
let fontSize=jQuery(this).css('font-size');
if(!jQuery(this).data('acwp-fontsize'))
jQuery(this).attr('data-acwp-fontsize', fontSize.substring(0, fontSize.length - 2));
jQuery(this).css('font-size', parseInt(fontSize) * newSize + 'px');
if(noLineHeight!=='yes'){
let lineHeight=jQuery(this).css('line-height');
if(!jQuery(this).data('acwp-lineheight'))
jQuery(this).attr('data-acwp-lineheight', lineHeight.substring(0, lineHeight.length - 2));
jQuery(this).css('line-height', 'normal');
}});
}else{
var checkbox=document.getElementById('acwp-toggler-decfont');
if(checkbox.checked!==true){
jQuery(customTags).each(function (){
let fontSize=jQuery(this).css('font-size');
if(!jQuery(this).data('acwp-fontsize'))
jQuery(this).attr('data-acwp-fontsize', fontSize.substring(0, fontSize.length - 2));
jQuery(this).css('font-size', parseInt(fontSize) * newSize + 'px');
if(noLineHeight!=='yes'){
let lineHeight=jQuery(this).css('line-height');
if(!jQuery(this).data('acwp-lineheight'))
jQuery(this).attr('data-acwp-lineheight', lineHeight.substring(0, lineHeight.length - 2));
jQuery(this).css('line-height', 'normal');
}});
}else{
jQuery(customTags).each(function (){
let fontSize=jQuery(this).data('acwp-fontsize');
jQuery(this).css('font-size', parseInt(fontSize) + 'px');
if(noLineHeight!=='yes'){
let lineHeight=jQuery(this).data('acwp-lineheight');
jQuery(this).css('line-height', parseInt(lineHeight) + 'px');
}});
}}
}
const ToggleContrast=(toggle)=> {
var checkbox=document.getElementById('acwp-toggler-contrast');
var exclude=acwp_attr.contrast_exclude;
if(toggle){
$('body').addClass('acwp-contrast');
if($('body').hasClass('acwp-contrast-js')){
jQuery('body *').not(exclude).each(function (){
if(this.style.backgroundImage!='')
jQuery(this).attr('data-acwp-bgimage', this.style.backgroundImage);
this.style.backgroundImage='none';
});
jQuery('body *').not(exclude).each(function (){
if(this.style.backgroundColor!='')
jQuery(this).attr('data-acwp-bgcolor', this.style.backgroundColor);
this.style.backgroundColor='black';
});
jQuery('body *').not(exclude).each(function (){
if(this.tagName=='A'||this.tagName=='BUTTON'||this.tagName=='LABEL'){
if(this.style.color!='')
jQuery(this).not(exclude).attr('data-acwp-lnkcolor', this.style.color);
this.style.color='yellow';
}else{
if(this.style.color!='')
jQuery(this).not(exclude).attr('data-acwp-txtcolor', this.style.color);
this.style.color='white';
}});
}}else{
if(checkbox.checked!==true&&!$('body').hasClass('acwp-contrast')){
$('body').addClass('acwp-contrast');
if($('body').hasClass('acwp-contrast-js')){
jQuery('body *').not(exclude).each(function (){
if(this.style.backgroundImage!='')
jQuery(this).attr('data-acwp-bgimage', this.style.backgroundImage);
this.style.backgroundImage='none';
});
jQuery('body *').not(exclude).each(function (){
if(this.style.backgroundColor!='')
jQuery(this).attr('data-acwp-bgcolor', this.style.backgroundColor);
this.style.backgroundColor='black';
});
jQuery('body *').not(exclude).each(function (){
if(this.tagName=='A'||this.tagName=='BUTTON'||this.tagName=='LABEL'){
if(this.style.color!='')
jQuery(this).not(exclude).attr('data-acwp-lnkcolor', this.style.color);
this.style.color='yellow';
}else{
if(this.style.color!='')
jQuery(this).not(exclude).attr('data-acwp-txtcolor', this.style.color);
this.style.color='white';
}});
}}else{
jQuery('body *').not(exclude).each(function (){
if(this.style.backgroundImage!='')
this.style.backgroundImage='';
});
jQuery('body [data-acwp-bgimage]').not(exclude).each(function (){
let bg=jQuery(this).attr('data-acwp-bgimage');
if(bg!='')
this.style.backgroundImage=bg;
});
jQuery('body *').not(exclude).each(function (){
if(this.style.backgroundColor!='')
this.style.backgroundColor='';
});
jQuery('body [data-acwp-bgcolor]').not(exclude).each(function (){
let bg=jQuery(this).attr('data-acwp-bgcolor');
if(bg!='')
this.style.backgroundColor=bg;
});
jQuery('body *').not(exclude).each(function (){
if(this.tagName=='a'||this.tagName=='button'||this.tagName=='label'){
let clr=jQuery(this).not(exclude).attr('data-acwp-lnkcolor');
if(clr!='')
this.style.color=clr;
if(this.style.color!='')
this.style.color='';
}else{
let clr=jQuery(this).not(exclude).attr('data-acwp-txtcolor');
if(this.style.color!='')
this.style.color='';
if(clr&&clr!='')
this.style.color=clr;
}});
document.body.classList.remove('acwp-contrast');
}}
}
if(noCookies!=='yes'){
const stored_keyboard=acp_readCookie('keyboard');
const stored_animations=acp_readCookie('animations');
const stored_contrast=acp_readCookie('contrast');
const stored_incfont=acp_readCookie('incfont');
const stored_decfont=acp_readCookie('decfont');
const stored_readable=acp_readCookie('readable');
const stored_marktitles=acp_readCookie('marktitles');
const stored_underline=acp_readCookie('underline');
if(stored_keyboard==='yes'){
var checkbox=document.getElementById('acwp-toggler-keyboard');
checkbox.checked=true;
$('body').addClass('acwp-keyboard');
}
if(stored_readable==='yes'){
var checkbox=document.getElementById('acwp-toggler-readable');
checkbox.checked=true;
$('body').addClass('acwp-readable');
}
if(stored_marktitles==='yes'){
var checkbox=document.getElementById('acwp-toggler-marktitles');
checkbox.checked=true;
$('body').addClass('acwp-marktitles');
}
if(stored_underline==='yes'){
var checkbox=document.getElementById('acwp-toggler-underline');
checkbox.checked=true;
$('body').addClass('acwp-underline');
}
if(stored_animations==='yes'){
var checkbox=document.getElementById('acwp-toggler-animations');
checkbox.checked=true;
$('body').addClass('acwp-animations');
}
if(stored_incfont==='yes'){
var checkbox=document.getElementById('acwp-toggler-incfont');
checkbox.checked=true;
$('body').addClass('acwp-incfont');
IncreseFont(true);
}
if(stored_decfont==='yes'){
var checkbox=document.getElementById('acwp-toggler-decfont');
checkbox.checked=true;
$('body').addClass('acwp-decfont');
DecreaseFont(true);
}
if(stored_contrast==='yes'){
var checkbox=document.getElementById('acwp-toggler-contrast');
checkbox.checked=true;
ToggleContrast(true);
}}
$('.acwp-toggler label').each(function(){
$(this).click(function(e){
if(e.target.tagName==='LABEL'){
const name=$(this).data('name');
if(name!=='contrast'){
var checkbox=document.getElementById('acwp-toggler-' + name);
if(checkbox.checked!==true&&!$('body').hasClass('acwp-' + name) ){
$('body').addClass('acwp-' + name);
}else{
$('body').removeClass('acwp-' + name);
}
if(name==='incfont'){
IncreseFont();
}
else if(name==='decfont'){
DecreaseFont();
}}
else if(name==='contrast'){
ToggleContrast();
}
if(noCookies!=='yes'){
const itemCookie=acp_readCookie(name);
if(itemCookie)
acp_eraseCookie(name);
else
acp_createCookie(name, 'yes', 1);
}}
});
});
jQuery("#acwp-toolbar .acwp-toggler label").keypress(function(event){
if(event.which==13){
event.preventDefault();
jQuery(this).click();
}});
if(acwp_attr.no_btn_drage!=='yes'){
jQuery("#acwp-toolbar-btn-wrap").on('mousedown', function (e){
e.preventDefault();
window.my_dragging={};
my_dragging.pageX0=e.pageX;
my_dragging.pageY0=e.pageY;
my_dragging.elem=this;
my_dragging.offset0=jQuery(this).offset();
function handle_dragging(e){
var top=my_dragging.offset0.top + (e.pageY - my_dragging.pageY0);
$(my_dragging.elem)
.offset({top: top});
}
function handle_mouseup(e){
jQuery('body')
.off('mousemove', handle_dragging)
.off('mouseup', handle_mouseup);
}
jQuery('body')
.on('mouseup', handle_mouseup)
.on('mousemove', handle_dragging);
});
}
$('#acwp-toolbar-btn').click(function(){
$('#acwp-toolbar-btn-wrap').removeClass('show');
$('.acwp-toolbar').addClass('acwp-toolbar-active');
setTimeout(function(){
$('.acwp-toolbar').addClass('acwp-toolbar-show');
}, 100);
});
$('#acwp-close-toolbar').click(function(){
$('#acwp-toolbar-btn-wrap').addClass('show');
$('.acwp-toolbar').removeClass('acwp-toolbar-show');
setTimeout(function(){
$('.acwp-toolbar').removeClass('acwp-toolbar-active');
}, 500);
});
});
function sendDataAccessibleWP(){
const eventData={
events: [ {
"event": "Accessibility-Toolbar-click",
"content": "user click Accessibility Toolbar button",
"siteUrl": AccessibleWPData.siteUrl,
} ]
};
const jsonData=JSON.stringify(eventData);
fetch('https://api.userway.org/api/abn/events', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: jsonData,
})
.then(response=> {
if(!response.ok){
throw new Error('An error occurred while executing the request: ${response.statusText}');
}
return response.json();
})
.then(data=> {
console.log('Response from the server:', data);
})
.catch(error=> {
console.error('An error has occurred:', error.message);
});
}
document.addEventListener('DOMContentLoaded', (event)=> {
const wpButton=document.getElementById('acwp-toolbar-btn');
if(wpButton){
wpButton.addEventListener('click', sendDataAccessibleWP);
}else{
console.error('Button with ID "plugin-button-notice" not found.');
}});
function sendDataPageLoad(){
const eventData={
events: [{
"event": "Accessibility-Page-load",
"content": "Page load with AccessibleWP widget",
"siteUrl": AccessibleWPData.siteUrl,
}]
};
const jsonData=JSON.stringify(eventData);
fetch('https://api.userway.org/api/abn/events', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: jsonData,
})
.then(response=> {
if(!response.ok){
throw new Error(`An error occurred while executing the request: ${response.statusText}`);
}
return response.json();
})
.then(data=> {
console.log('Response from the server:', data);
})
.catch(error=> {
console.error('An error has occurred:', error.message);
});
}
function checkFirstLoadAndSendData(){
if(!sessionStorage.getItem('dataSent')){
sendDataPageLoad();
sessionStorage.setItem('dataSent', 'true');
}}
document.addEventListener('DOMContentLoaded', (event)=> {
checkFirstLoadAndSendData();
});
;(function($, window, undefined){
"use strict";
var pluginName="jqss",
$head=$(window.document.head),
emailTemplate="mailto:?subject={{SUBJECT}}&body={{BODY}}",
timerOptions={
internal: 200,
counter: 100 
};
var defaults={
usePopup: true,
popupWidth: 600,
popupHeight: 450,
url: window.location.href,
siteUrl: window.location.origin ||
window.location.protocol + "//" + window.location.hostname +
(window.location.port ? ":" + window.location.port:""),
source: $head.find("[name='site'], [name='Site']").prop("content") ||
window.document.title,
title: $head.find("[name='title'], [name='Title']").prop("content") ||
window.document.title,
description: $head.find([
"[name='description']",
"[name='Description']",
"[property='og:description']",
"[property='og:Description']"
].join(", ") ).attr("content") ||
window.document.title,
image: $head.find([
"[name='image']",
"[name='Image']",
"[property='og:image']",
"[property='og:Image']"
].join(", ") ).prop("content") ||
$("img:first").prop("src")||"",
price: $head.find("[property='og:product:price:amount']").prop("content")||"",
template: null,
imageSelector: null,
priceSelector: null,
emailSubject: "I'm sharing \"{{TITLE}}\" with you",
emailBody: [
"Because I think you'll find it very interesting.",
"\"{{DESCRIPTION}}\"",
"Click this link {{URL}} for more info."
].join("%0A%0A"),
twitterSource:($head.find([
"[name='twitter:creator']",
"[name='twitter:site']"
].join(", ") ).prop("content")||"")
.replace("@", ""),
onOpen: function(){ },
onClose: function(){ }};
var _getDataOptions=function(el, prefix){
var data=$(el).data(),
out={}, inkey,
replace=new RegExp("^" + prefix.toLowerCase() + "([A-Z])");
prefix=new RegExp("^" + prefix.toLowerCase());
function reLower(_, a){
return a.toLowerCase();
}
for(var key in data){
if(!prefix.test(key) ){
continue;
}
inkey=key.replace(replace, reLower);
out[ inkey ]=data[ key ];
}
return out;
};
var _setTemplate=function(){
this.templateName=this.settings.template;
if(!this.templateName){
var classList=this.element.className.split(/\s+/);
for(var i=0; i < classList.length; i++){
var className=classList[ i ].toLowerCase();
if(undefined!==templates[ className ]){
this.templateName=className;
this.template=templates[ className ];
break;
}}
if(!this.template){
window.console.error("[jqss] Could not find a template to use for element:");
window.console.log(this.element);
if(this._isAnchor){
this.$element.prop("href", "#");
}
return;
}}else if(undefined!==templates[ this.templateName ]){
this.template=templates[ this.templateName ];
}
if(!this.template){
window.console.error("[jqss] Could not find template \"" +
this.templateName + "\" for element:");
window.console.log(this.element);
if(this._isAnchor){
this.$element.prop("href", "#");
}
return;
}
if("email"===this.templateName){
this.template=emailTemplate.replace("{{SUBJECT}}", this.settings.emailSubject)
.replace("{{BODY}}", this.settings.emailBody);
}
if(this.settings.imageSelector){
this.settings.image=$(this.settings.imageSelector).map(function(){
return $(this).prop("src");
}).get().join("||");
}
if(this.settings.priceSelector){
this.settings.price=$(this.settings.priceSelector).text();
}
this.href=this.template;
for(var _key in this.settings){
if(undefined!==this.settings[ _key ]){
var _value=encodeURIComponent(this.settings[ _key ]);
this.href=this.href.replace(new RegExp("{{" +
_key.toUpperCase() + "}}", "g"), _value);
}}
if(this._isAnchor){
this.$element.prop("href", this.href);
if("email"!==this.templateName){
this.$element.prop("target", "_blank");
}}
this.settings.template=this.templateName;
this.enabled=true;
};
function jqssPlugin(element, options){
this.element=element;
this.$element=$(this.element);
var elopts=_getDataOptions(this.$element, pluginName);
this.settings=$.extend({}, defaults, elopts, options);
this.enabled=false;
this.template=null;
this.templateName=null;
this.href=null;
this.uniqueId=new Date().getTime();
this._isAnchor=this.$element.is("a");
this._defaults=defaults;
this._pluginName=pluginName;
this._shareWin=null;
this._closeTimer=null;
this.init();
}
$.extend(jqssPlugin.prototype, {
init: function(){
_setTemplate.call(this);
if(this.enabled&&"email"!==this.settings.template){
this.$element.bind("click", function(e){
e.preventDefault();
e.stopPropagation();
$.data(this, "plugin_" + pluginName).open(true);
});
}},
open: function(callsback){
if(!this.enabled||"email"===this.settings.template){
return this.$element;
}
callsback=undefined!==callsback ? callsback:false;
if(this.settings.usePopup){
var dualScreenLeft=undefined!==window.screenLeft ?
window.screenLeft:window.screen.left;
var dualScreenTop=undefined!==window.screenTop ?
window.screenTop:window.screen.top;
var left=(( $(window).width() / 2) -
(this.settings.popupWidth / 2) ) + dualScreenLeft,
top=(( $(window).height() / 2) -
(this.settings.popupHeight / 2) ) + dualScreenTop;
this._shareWin=window.open(this.href, this._pluginName + "_" + this.uniqueId,
"scrollbars=yes,toolbar=0,scrollbars=1,resizable=1,width=" +
this.settings.popupWidth + ",height=" +
this.settings.popupHeight + ",top=" + top + ",left=" + left);
if(window.focus){
this._shareWin.focus();
}}else{
this._shareWin=window.open(this.href, "_blank");
}
if(callsback){
this.settings.onOpen.apply(undefined, this, this.$element);
if(this._shareWin){
var _this=this;
var _counter=timerOptions.counter;
this._closeTimer=window.setInterval(function(){
if(_this._shareWin.closed!==false){
window.clearInterval(_this._closeTimer);
if(callsback){
_this.settings.onClose.apply(undefined, _this, _this.$element);
}}else if(0===_counter){
window.clearInterval(_this._closeTimer);
}
_counter--;
}, timerOptions.internal);
}}
return this.$element;
},
close: function(callsback){
if(( !this.enabled ||
(this._shareWin||this._shareWin.closed===false) ) ||
"email"===this.settings.template){
return this.$element;
}
callsback=undefined!==callsback ? callsback:false;
this._shareWin.close();
if(callsback){
this.settings.onClose.apply(undefined, this, this.$element);
}
return this.$element;
}});
$.fn[ pluginName ]=function(options){
var args=Array.apply(null, arguments);
args.shift();
var _return;
var _items=this.each(function(){
var _plugin=$.data(this, "plugin_" + pluginName);
if(undefined===_plugin){
_plugin=new jqssPlugin(this,(options||{}) );
$.data(this, "plugin_" + pluginName, _plugin);
}
if("string"===typeof options&&"function"===typeof _plugin[ options ]){
_return=_plugin[ options ].apply(_plugin, args);
}});
if(undefined===_return ||
_return instanceof jqssPlugin
){
return _items;
}else{
return _return;
}};
var templates=$.fn[ pluginName ].templates={
amazon: "http://www.amazon.com/gp/wishlist/static-add?u={{URL}}&t={{TITLE}}&p={{PRICE}}",
blogger: "https://www.blogger.com/blog_this.pyra?t&u={{URL}}&n={{TITLE}}",
buffer: "https://buffer.com/add?url={{URL}}&title={{TITLE}}",
delicious: "https://delicious.com/post?url={{URL}}&title={{TITLE}}&notes={{DESCRIPTION}}",
digg: "https://digg.com/submit?url={{URL}}&title={{TITLE}}",
evernote: "http://www.evernote.com/clip.action?url={{URL}}&title={{TITLE}}",
pinterest: "http://pinterest.com/pin/create/button/?url={{URL}}" +
"&media={{IMAGE}}&description={{DESCRIPTION}}",
pocket: "https://getpocket.com/save?url={{URL}}&title={{TITLE}}",
quora: "http://www.quora.com/board/bookmarklet?v=1&url={{URL}}",
reddit: "http://www.reddit.com/submit?url={{URL}}&title={{TITLE}}",
stumbleupon: "http://www.stumbleupon.com/submit?url={{URL}}&title={{TITLE}}",
tumblr: "http://tumblr.com/widgets/share/tool?canonicalUrl={{URL}}",
email: "#",
linkedin: "http://www.linkedin.com/shareArticle?mini=true&ro=true" +
"&title={{TITLE}}&url={{URL}}&summary={{DESCRIPTION}}&source={{SOURCE}}&armin=armin",
facebook: "https://www.facebook.com/sharer/sharer.php?u={{URL}}",
twitter: "https://twitter.com/intent/tweet?text={{TITLE}}" +
"&url={{URL}}&via={{TWITTERSOURCE}}",
whatsapp: "https://wa.me/?text={{URL}}",
googleplus: "https://plus.google.com/share?url={{URL}}"
};})(jQuery, window);