PATH:
home
/
fengshp
/
www
/
wp-content
/
plugins
/
themify-builder-pro
/
public
/
js
/
modules
((t,i,s)=>{"use strict";let e="";const o={...tbLocalScript.wishlist},n=document.currentScript.src,l={async t(){this.i()},o:()=>navigator.cookieEnabled,l(){return this.h().length},p(t){const i=this.h(),s=i.indexOf(~~t);return-1!==s&&(i.splice(s,1),this.u(i),!0)},m(t){t=~~t;const i=this.h();return!i.includes(t)&&(i.push(t),this.u(i),!0)},k(t){return this.h().includes(t)},u(t){const s=Date.prototype.toUTCString.call(new Date(1e3*o.expiration));i.cookie=o.cookie+"="+JSON.stringify(t)+";expires="+s+";path="+o.cookie_path+";SameSite=strict"},v(s,e){e?s.closest('[data-tbp_wishlist="1"]')&&t.fadeOut(s.closest(".product"),(t=>{t.remove()})):s.dataset.spark_color&&this.S(s);for(let t=i.querySelectorAll('.tbp_wishlist_icon_button[data-id="'+s.dataset.id+'"]'),o=t.length-1;o>-1;o--)t[o].classList.toggle("tbp_wishlisted",!e);this.C(i,!0)},async S(i){const[l,_]=n.replace("wishlist-icon.js","").split("?ver=");await Promise.all([t.loadJs(l+"clickspark.min",!!s.clickSpark,_),(()=>""!==e?1:t.fetch(null,"text",{method:"GET",credentials:"omit"},o.spark).then((t=>{const o=i.dataset.spark_color;"#dcaa2e"!==o&&(t=t.replace("#dcaa2e",o)),e="data:image/svg+xml;base64,"+s.btoa(t)})))()]);const a=s.clickSpark,c=300,h=30,r=8,p="splash",d=0,u=10;a.setParticleImagePath(e),a.setParticleDuration(c),a.setParticleCount(h),a.setParticleSpeed(r),a.setAnimationType(p),a.setParticleRotationSpeed(d),a.setParticleSize(u),a.fireParticles(jQuery(i))},i(){const s=this;i.body.tfOn("click",(i=>{const e=i.target;if(!e.classList.contains("tbp_wishlist_icon_button"))return;i.preventDefault();const o=e.dataset.id;e.classList.contains("tbp_wishlisted")?s.o()?s.p(o)&&s.v(e,!0):t.fetch({action:"themify_add_wishlist",id:o,type:"remove"},"text").then((t=>{s.v(e,!0)})):s.o()?s.m(o)&&s.v(e,!1):t.fetch({action:"themify_add_wishlist",id:o},"text").then((t=>{s.v(e,!1)}))}))},h(){const t=" "+i.cookie,s=" "+o.cookie+"=",e=[];if(t.length>0){let i=t.indexOf(s);if(-1!==i){i+=s.length;let o=t.indexOf(";",i);-1===o&&(o=t.length);const n=JSON.parse(t.substring(i,o));for(let t in n)e.push(n[t])}}return e},C(t,i=!1){const s=this.l();for(let e=t.querySelectorAll(".tbp_wishlist_link_count"),o=e.length-1;o>-1;o--)if(parseInt(e[o].textContent)!==s){e[o].closest(".tbp_wishlist_link_wrap").classList.toggle("tbp_wishlist_empty",0===s),e[o].textContent=s,e[o].classList.remove("tf_opacity"),!0===i&&(e[o].classList.remove("tbp_wishlist_animate"),e[o].classList.add("tbp_wishlist_animate"))}},I(t){this.k(parseInt(t.dataset.id))&&t.classList.add("tbp_wishlisted"),t.closest(".module").classList.remove("tf_opacity")}};t.on("builder_load_module_partial",((t,i)=>{if(!0!==i||t.classList.contains("module-wishlist-icon")||t.classList.contains("module-wishlist-link")){for(let i=t.tfClass("tbp_wishlist_icon_button"),s=i.length-1;s>-1;--s)l.I(i[s]);for(let i=t.tfClass("tbp_wishlist_link_wrap"),s=i.length-1;s>-1;--s)l.C(i[s])}})),l.t()})(Themify,document,window);
[+]
..
[-] checkout.js.gz
[edit]
[-] readtime.js.gz
[edit]
[-] cart.js.gz
[edit]
[-] wishlisted.js.gz
[edit]
[-] checkout.js
[edit]
[-] add-to-cart.js
[edit]
[-] wishlisted.js
[edit]
[-] readtime.js
[edit]
[-] clickspark.min.js
[edit]
[-] product-review.js.gz
[edit]
[-] cart.js
[edit]
[-] cart-icon.js
[edit]
[-] add-to-cart.js.gz
[edit]
[-] read-progress.js
[edit]
[-] read-progress.js.gz
[edit]
[-] cart-icon.js.gz
[edit]
[-] wishlist-icon.js.gz
[edit]
[-] clickspark.min.js.gz
[edit]
[-] product-review.js
[edit]
[-] wishlist-icon.js
[edit]