PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/princesspicnicevents.com/wp-content/themes/soledad/js/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : //home/trave494/princesspicnicevents.com/wp-content/themes/soledad/js/selection-sharer.js

!function(c,a){"object"==typeof exports&&"object"==typeof module?module.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof exports?exports.Sharect=a():c.Sharect=a()}(window,function(){function f(b){if(g[b])return g[b].exports;var c=g[b]={i:b,l:!1,exports:{}};return a[b].call(c.exports,c,c.exports,f),c.l=!0,c.exports}return g={},f.m=a=[function(a,b,c){"use strict";function e(){return window.getSelection().toString()}function n(c){var d=(window.getSelection().baseNode||window.getSelection().anchorNode).parentNode;return c.some(function(b){return function(d,a){if(Element.prototype.closest)return d.closest(a);Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector);var b=d;do if(b.matches(a))return b;while(null!==(b=b.parentNode)&&b.nodeType===Node.ELEMENT_NODE);return null}(d,b)})}function q(e){var g=e.iconSize,h=e.buttonMargin,i=e.arrowSize,d=e.icons,e=window.getSelection().getRangeAt(0).getBoundingClientRect(),g=g+h,h=window.pageXOffset||document.documentElement.scrollTop||document.body.scrollTop;return{top:e.top+h-g-i,left:e.left+(e.width-g*d.length)/2}}function g(e,a){var b,f=Object.keys(e);return Object.getOwnPropertySymbols&&(b=Object.getOwnPropertySymbols(e),a&&(b=b.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),f.push.apply(f,b)),f}function h(e,a){var b,f=Object.keys(e);return Object.getOwnPropertySymbols&&(b=Object.getOwnPropertySymbols(e),a&&(b=b.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),f.push.apply(f,b)),f}function p(e){for(var a,d=1;d<arguments.length;d++)a=null==arguments[d]?{}:arguments[d],d%2?h(Object(a),!0).forEach(function(b){var g,h=e;b=a[g=b],g in h?Object.defineProperty(h,g,{value:b,enumerable:!0,configurable:!0,writable:!0}):h[g]=b}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):h(Object(a)).forEach(function(b){Object.defineProperty(e,b,Object.getOwnPropertyDescriptor(a,b))});return e}function k(a){setTimeout(function(){if(document.querySelector(".sharect")){if(e()&&n(a.selectableElements))return i=(o=q(p({},a))).top,r=o.left,(o=document.querySelector(".sharect")).style.top="".concat(i,"px"),void(o.style.left="".concat(r,"px"));document.body.removeChild(document.querySelector(".sharect"))}var b,c,d,i,o,r,s,t;e()&&n(a.selectableElements)&&(b=p({},a),s=q(b),t=function(e){for(var a,d=1;d<arguments.length;d++)a=null==arguments[d]?{}:arguments[d],d%2?g(Object(a),!0).forEach(function(b){var g,h=e;b=a[g=b],g in h?Object.defineProperty(h,g,{value:b,enumerable:!0,configurable:!0,writable:!0}):h[g]=b}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):g(Object(a)).forEach(function(b){Object.defineProperty(e,b,Object.getOwnPropertyDescriptor(a,b))});return e}({},b,{top:s.top,left:s.left}),document.body.appendChild((d=(c=t).top,i=c.left,o=c.iconSize,r=c.buttonMargin,b=c.backgroundColor,s=c.icons,t=c.arrowSize,r=o+r,(c=document.createElement("div")).className="penci-sharect sharect",c.style.cssText=x(b),c.style.cssText+=y(d,i),c.appendChild(s.icons),r={arrowSize:t,backgroundColor:b,buttonSize:r,icons:s},(s=document.createElement("div")).style.cssText=f(r),s.classList.add("penci-sharect-arrow"),c.appendChild(s),c)))},10)}function i(){this.style.opacity="0.8"}function l(){this.style.opacity="1"}function m(e,f,b){return c=e,e=document.createElement("div"),e.classList.add("pcshare-item"),e.innerHTML=c,e.onmousedown=function(){var c,c=(c=b,f.replace(/PAGE_URL/,window.location.href).replace(/TEXT_SELECTION/,window.getSelection().toString()).replace(/USERNAME/,c));if(-1!==f.indexOf("TEXT_COPIES")){var d=window.getSelection().toString(),e=document.createElement("textarea");e.value=d,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}else window.open(c,"Share","width=550, height=280")},e.onmouseover=i,e.onmouseout=l,e;var c}function o(e,a){var b,f=Object.keys(e);return Object.getOwnPropertySymbols&&(b=Object.getOwnPropertySymbols(e),a&&(b=b.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),f.push.apply(f,b)),f}function r(e){for(var a,d=1;d<arguments.length;d++)a=null==arguments[d]?{}:arguments[d],d%2?o(Object(a),!0).forEach(function(b){var g,h=e;b=a[g=b],g in h?Object.defineProperty(h,g,{value:b,enumerable:!0,configurable:!0,writable:!0}):h[g]=b}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach(function(b){Object.defineProperty(e,b,Object.getOwnPropertyDescriptor(a,b))});return e}c.r(b);var j,s,t,u,v,w,x=function(b){return"background:"+b+";"},y=function(c,a){return"top:"+(c-10)+"px;left:"+a+"px;"},f=function(b){return b.arrowSize,"border-top-color: "+b.backgroundColor+";"};b.default=(j={twitter:{isActive:!0,username:"",url:"https://twitter.com/intent/tweet?text=TEXT_SELECTION&via=USERNAME&url=PAGE_URL",icon:"<i class=\"penciicon-x-twitter\"></i>"},facebook:{isActive:!0,url:"https://www.facebook.com/dialog/feed?app_id="+penci_selection_sharer.facebookid+"&link=PAGE_URL&quote=TEXT_SELECTION",icon:"<i class=\"penci-faicon fa fa-facebook\"></i>"},whatsapp:{url:"https://api.whatsapp.com/send?text=TEXT_SELECTION%20PAGE_URL",icon:"<i class=\"penci-faicon fa fa-whatsapp\"></i>"},reddit:{url:"https://reddit.com/submit?url=PAGE_URL&title=TEXT_SELECTION",icon:"<i class=\"penci-faicon fa fa-reddit\"></i>"},linkedin:{url:"https://www.linkedin.com/shareArticle?mini=true&url=PAGE_URL&summary=TEXT_SELECTION",icon:"<i class=\"penci-faicon fa fa-linkedin\"></i>"},telegram:{url:"https://t.me/share/url?url=PAGE_URL&text=TEXT_SELECTION",icon:"<i class=\"penci-faicon fa fa-telegram\"></i>"},copy:{url:"TEXT_COPIES",icon:"<i class=\"penci-faicon fa fa-clone\"></i>"}},t=["body"],u=[],v="#333",w="#fff",{config:function(b){return void 0!==b.linkedin&&(j.linkedin.isActive=b.linkedin),void 0!==b.telegram&&(j.telegram.isActive=b.telegram),void 0!==b.copy&&(j.copy.isActive=b.copy),void 0!==b.reddit&&(j.reddit.isActive=b.reddit),void 0!==b.whatsapp&&(j.whatsapp.isActive=b.whatsapp),void 0!==b.twitter&&(j.twitter.isActive=b.twitter),void 0!==b.facebook&&(j.facebook.isActive=b.facebook),b.twitterUsername&&(j.twitter.username=b.twitterUsername),b.backgroundColor&&(v=b.backgroundColor),b.iconColor&&(w=b.iconColor),b.selectableElements&&(t=b.selectableElements),this},appendCustomShareButtons:function(b){return u=b,this},init:function(){var e,f,g={backgroundColor:v,iconColor:w,arrowSize:5,buttonMargin:14,iconSize:24,selectableElements:t,networks:j,customShareButtons:u},c=r({},g).iconColor;return(f=document.createElement("style")).id="sharect-style",f.innerHTML=".sharect i{color:".concat(c,";}"),document.body.appendChild(f),s=function(a){var e,k,l,n,o=a.networks,a=a.customShareButtons,j=document.createElement("div"),i=0;for(e in o)o[e]&&o[e].isActive&&(k=(n=o[e]).icon,l=n.url,n=n.username,j.appendChild(m(k,l,n)),i++);return 0<a.length&&a.forEach(function(b){j.appendChild(m(b.icon,b.url)),i++}),{icons:j,length:i}}(r({},g)),e=r({},g,{icons:s}),window.addEventListener("mouseup",function(){return k(e)},!1),this}})}],f.c=g,f.d=function(a,b,c){f.o(a,b)||Object.defineProperty(a,b,{enumerable:!0,get:c})},f.r=function(b){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(b,"__esModule",{value:!0})},f.t=function(g,a){if(1&a&&(g=f(g)),8&a)return g;if(4&a&&"object"==typeof g&&g&&g.__esModule)return g;var c=Object.create(null);if(f.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:g}),2&a&&"string"!=typeof g)for(var d in g)f.d(c,d,function(b){return g[b]}.bind(null,d));return c},f.n=function(a){var b=a&&a.__esModule?function(){return a.default}:function(){return a};return f.d(b,"a",b),b},f.o=function(c,a){return Object.prototype.hasOwnProperty.call(c,a)},f.p="",f(f.s=0).default;var a,g}),function(a){a(document).ready(function(){Sharect.config({buttonSize:"9px",arrowSize:"7",facebook:penci_selection_sharer.facebook,twitter:penci_selection_sharer.twitter,linkedin:penci_selection_sharer.linkedin,whatsapp:penci_selection_sharer.whatsapp,telegram:penci_selection_sharer.telegram,copy:penci_selection_sharer.copy,backgroundColor:penci_selection_sharer.bgcolor,iconColor:penci_selection_sharer.txtcolor,selectableElements:[".entry-content p",".entry-content :is(h1, h2, h3, h4, h5, h6)",".entry-content span"]}).init()})}(jQuery);