Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
!function(){"use strict";var t={n:function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},e=window.jQuery,n=t.n(e),r=window.ctFrontend,o=window.ctEvents,i=t.n(o);function c(t){return c="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},c(t)}function a(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var l={},d=function(t){var e=t.e,o=t.el;if(!e.target.matches(".add_to_cart_button")&&!e.target.matches(".added_to_cart")){e.preventDefault();var d=Array.from(o.classList).find((function(t){return 0===t.indexOf("post-")})).split("-")[1],f="#quick-view-".concat(d);document.querySelector(f)?i().trigger("ct:overlay:handle-click",{e,href:f,options:{clickOutside:!0}}):(document.querySelector(".ct-drawer-canvas").lastElementChild.id="quick-view-".concat(d),Promise.all([new Promise((function(t){var e;(e="".concat(ct_localizations.ajax_url,"?action=blocsky_get_woo_quick_view&product_id=").concat(d),l[e]?new Promise((function(t){t(l[e]),l[e]=l[e].clone()})):new Promise((function(t){return fetch(e).then((function(n){t(n),l[e]=n.clone()}))}))).then((function(e){200===e.status&&e.json().then((function(e){var n=e.success,r=e.data;n&&t(r)}))}))}))]).then((function(t){var o,l,d=(o=t,l=1,function(t){if(Array.isArray(t))return t}(o)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=t[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}}(o,l)||a(o,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],m=document.createElement("div");m.innerHTML=d.quickview,-1===document.body.innerHTML.indexOf(d.body_html)&&document.body.insertAdjacentHTML("beforeend",d.body_html),document.querySelector(f)&&(document.querySelector(f).innerHTML=m.firstElementChild.innerHTML),n()&&function(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||a(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(document.querySelectorAll("".concat(f," .variations_form"))).map((function(t){return n()(t).wc_variation_form()})),i().trigger("ct:custom-select:init"),i().trigger("ct:custom-select-allow:init"),i().trigger("blocksy:frontend:init"),setTimeout((function(){n()&&n().wcpaInit&&n().wcpaInit()}),50),setTimeout((function(){setTimeout((function(){var t,o,a,u,l,d,m,s,y;i().trigger("ct:overlay:handle-click",{e,href:f,options:{openStrategy:"skip",isModal:!0,computeScrollContainer:function(){return r.getCurrentScreen&&"mobile"===(0,r.getCurrentScreen)({withTablet:!0})?document.querySelector(f).firstElementChild.lastElementChild.lastElementChild:document.querySelector(f).querySelector(".entry-summary")},clickOutside:!0,focus:!1}}),document.querySelector(f).querySelector("#ywcnp_form_name_your_price")&&(document.querySelector(f),t=n()(".yith-wcpb-bundle-form").length,o=n()(".group_table").find(".grouped_name_your_price"),a=n()("#ywcnp_form_name_your_price"),u=n()("form.variations_form"),l=n()(".ywcnp_min_label"),d=n()(".ywcnp_max_label"),m="",s="",y=u.find(".single_variation"),n()("td.price").show(),o&&o.next("td.price:eq(0)").hide(),t||(n()("body").on("init-variation-form",(function(){u.length&&(a.hide(),d.hide(),l.hide(),m=u.find(".single_add_to_cart_button"),s=m.html()),n()(".ywcnp_sugg_price").on("click",(function(t){n()(this).val("")})).focusout((function(){if(""==n()(this).val()){var t=n()(this).data("suggest_price");n()(this).val(t)}}))})).trigger("init-variation-form"),n()(document).on("found_variation",(function(t,e){if(null!=c(e.ywcnp_variation)&&"yes"==e.ywcnp_variation){var r=e.ywcnp_variation_sugg_price,o=e.ywcnp_variation_min_price,i=e.ywcnp_variation_max_price,u=n()(".ywcnp_sugg_price"),f=n()('input[name="ywcnp_min"]'),_=n()('input[name="ywcnp_max"]');u.val(r),f.val(o),_.val(i),a.show(),m.html(e.add_to_cart_text),d.hide(),l.hide(),""!=o&&(l.html(e.ywcnp_variation_min_price_html),l.show()),""!=i&&(d.html(e.ywcnp_variation_max_price_html),d.show()),y.find(".price").html(e.ywcnp_variation_sugg_price_html)}else a.hide(),d.hide(),l.hide(),m.html(s)})),n()(document).on("reset_image",(function(t){a.hide(),d.hide(),l.hide(),console.log("here",m),m.html(s)})),n()(document).on("click",".reset_variations",(function(t){a.hide(),d.hide(),l.hide(),m.html(s)}))))})),setTimeout((function(){return i().trigger("ct:flexy:update")}))}),100)})))}};(0,r.registerDynamicChunk)("blocksy_ext_woo_extra_quick_view",{mount:function(t,e){var n=e.event;t.closest('[data-quick-view="card"]')?d({e:n,el:t}):d({e:n,el:t.closest(".product")})}}),i().on("ct:modal:closed",(function(t){if(t.closest(".quick-view-modal")){if(t.querySelector(".flexy-container")){var e=t.querySelector(".flexy-container").parentNode;e.flexy&&e.flexy.destroy&&e.flexy.destroy()}setTimeout((function(){t.remove()}))}}))}();