/home/silvwabw/public_html/wp-content/plugins/gutenverse/assets/js/frontend/team.js
(()=>{"use strict";function t(e){return t="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},t(e)}function e(e){var n=function(e){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(n)?n:n+""}function n(t,n){for(var o=0;o<n.length;o++){var r=n[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}const i=gutenverseCoreFrontend;function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}var a=function(e){function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),e=this,r=arguments,n=o(n=a),function(e,n){if(n&&("object"==t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e)}(e,c()?Reflect.construct(n,r||[],o(e).constructor):n.apply(e,r));var e,n,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)}(a,e),l=a,(s=[{key:"init",value:function(){var t=this;this._elements.map(function(e){t._addClickEvent(e)})}},{key:"_addClickEvent",value:function(t){var e=(0,i.u)(t),n=e.find(".profile-popup"),o=n.data("name"),r=n.data("job"),c=n.data("img"),a=n.data("desc"),l=n.data("phone"),s=n.data("email");n.html(this._popupElement(e,{name:o,job:r,img:c,desc:a,phone:l,email:s})),e.find(".profile-box .popup").on("click",function(){n.hasClass("show")||n.addClass("show")}),e.find(".profile-popup .overlay").on("click",function(){n.hasClass("show")&&n.removeClass("show")}),e.find(".profile-popup .popup-close").on("click",function(){n.hasClass("show")&&n.removeClass("show")})}},{key:"_popupElement",value:function(t,e){var n=e.img,o=void 0===n?"":n,r=e.name,i=void 0===r?"":r,c=e.job,a=void 0===c?"":c,l=e.desc,s=void 0===l?"":l,u=e.phone,p=void 0===u?"":u,f=e.email,d=void 0===f?"":f,v=t.find(".socials-wrapper").html();return'<div class="overlay"></div>\n <div class="popup">\n <div class="popup-close">\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokewidth="2" strokelinecap="round" strokelinejoin="round">\n <line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line>\n </svg>\n </div>\n <div class="content-1">\n <img src="'.concat(o,'" alt="').concat(i,'">\n </div>\n <div class="content-2">\n <h3 class="profile-title">').concat(i,'</h3>\n <p class="profile-sub">').concat(a,'</p>\n <p class="profile-desc">').concat(s,'</p>\n <p class="profile-phone"><strong>Phone :</strong>').concat(p,'</p>\n <p class="profile-email"><strong>Email :</strong>').concat(d,"</p>\n ").concat(v,"\n </div>\n </div>")}}])&&n(l.prototype,s),Object.defineProperty(l,"prototype",{writable:!1}),l;var l,s}(i.Default),l=(0,i.u)(".guten-team");l&&new a(l)})();