PageSourceSearch

https://www.kinfolk.com/wp-content/themes/kinfolk/dist/WooProduct.js?ver=1789133760

js kinfolk.com collected 2026-10-02 03:34:42 UTC 4,965 bytes, 1 lines download raw bytes

1(()=>{"use strict";var t,e={3693:(t,e,r)=>{var n=r(3180),o=r(7034),i=r(6358);function a(t){return a="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},a(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==a(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===a(i)?i:String(i)),n)}var o,i}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=l(t);if(e){var o=l(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)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}(t)}(this,r)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var s=function(t){!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&&c(t,e)}(a,t);var e,r,n,o=f(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=o.call(this,t)).options={},e.ref={},e}return e=a,(r=[{key:"mount",value:function(){var t=this;window.eventbus.on("WooProduct::addProductToCart",(function(e){var r=e.formData;return t.addToCartAjax(r)}))}},{key:"unmount",value:function(){window.eventbus.off("WooProduct::addProductToCart")}},{key:"addToCartAjax",value:function(t){var e=this,r=(t.form,t.id,t.qty),n=t.productId,o=t.variationId,i={method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded","Cache-Control":"no-cache"},body:new URLSearchParams({action:"add_to_cart_with_ajax",nonce:six.nonce,id:n,variation:o,qty:r,sku:"",isGift:t.isGift,giftEmail:t.giftEmailAddress})},a=fetch(six.ajaxurl,i).then((function(t){return t.json()})).then((function(t){return t}));a.then((function(t){e.updateMiniCart(t)}))}},{key:"updateMiniCart",value:function(t){t.updatedCart&&(window.eventbus.emit("MiniCart::updateMiniCartTrigger",{count:t.count}),window.eventbus.emit("MiniCart::addToCartTriggered",{data:t})),this.addNotice(t.notice)}},{key:"addNotice",value:function(t){var e=i.ZP.timeline(),r=document.querySelector(".woocommerce-notices-wrapper");document.body.querySelector('div[data-barba="container"]').after(r),r.innerHTML=t,e.to(r,{y:0,opacity:1,delay:.15}),e.to(r,{y:r.getBoundingClientRect().height,opacity:0,delay:7,pointerEvents:"none"})}}])&&u(e.prototype,r),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Z);(0,o.Z)(s,"WooProduct")}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t].call(i.exports,i,i.exports,n),i.exports}n.m=e,t=[],n.O=(e,r,o,i)=>{if(!r){var a=1/0;for(l=0;l<t.length;l++){for(var[r,o,i]=t[l],u=!0,c=0;c<r.length;c++)(!1&i||a>=i)&&Object.keys(n.O).every((t=>n.O[t](r[c])))?r.splice(c--,1):(u=!1,i<a&&(a=i));if(u){t.splice(l--,1);var f=o();void 0!==f&&(e=f)}}return e}i=i||0;for(var l=t.length;l>0&&t[l-1][2]>i;l--)t[l]=t[l-1];t[l]=[r,o,i]},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}
vendor: 480 bytes, line 1
1}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.j=4845,(()=>{var t={4845:0};n.O.j=e=>0===t[e];var e=(e,r)=>{var o,i,[a,u,c]=r,f=0;if(a.some((e=>0!==t[e]))){for(o in u)n.o(u,o)&&(n.m[o]=u[o]);if(c)var l=c(n)}for(e&&e(r);f<a.length;f++)i=a[f],n.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return n.O(l)},r=self.webpackChunksix_base=self.webpackChunksix_base||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})();var o=n.O(void 0,[4736,8592],(()=>n(3693)));o=n.O(o)})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.