PageSourceSearch

https://www.relaxound.com/theme/61a9250f9d514917b677cf6b33ebeabc/j…ront_src_plugin_LenzPlatformAppPi-378781.js

js relaxound.com collected 2026-10-04 03:10:04 UTC 2,579 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["custom_apps_LenzPlatformAppPinterestTag_Resources_app_storefront_src_plugin_LenzPlatformAppPi-378781"],{232:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var n=r(266);class a{static serialize(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if("FORM"!==e.nodeName){if(t)throw Error("The passed element is not a form!");return{}}return new FormData(e)}static serializeJson(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=a.serialize(e,t);if(0===Object.keys(r).length)return{};let i={};return n.Z.iterate(r,(e,t)=>i[t]=e),i}}class i extends window.PluginBaseClass{init(){this.addToCartPluginInstances=window.PluginManager.getPluginInstances("AddToCart"),this.searchWidgetPluginInstances=window.PluginManager.getPluginInstances("SearchWidget"),this.registerAddToCartEvent(),this.registerAjaxSearchEvent()}registerAddToCartEvent(){for(var e=0;e<this.addToCartPluginInstances.length;e++){let t=this.addToCartPluginInstances[e]._form;this.addToCartPluginInstances[e].$emitter.subscribe("beforeFormSubmit",()=>{if(void 0===window.lenzPlatformAppPinterestTagTrackingStarted||!0!==window.lenzPlatformAppPinterestTagTrackingStarted)return;let e=a.serialize(t),r={lineItems:[]};if(e.has("lenz-platform-app-pinterest-tag-product-id")){let t=e.get("lenz-platform-app-pinterest-tag-product-id"),n=e.get("lenz-platform-app-pinterest-tag-product-name"),a=e.get("lenz-platform-app-pinterest-tag-product-brand"),i=e.get("lineItems["+t+"][quantity]");r.lineItems.push({product_id:t,product_brand:a,product_quantity:i,product_name:n})}window.LenzPlatformAppPinterestTagEventCallback("AddToCart",r)})}}registerAjaxSearchEvent(){for(var e=0;e<this.searchWidgetPluginInstances.length;e++){let t=this.searchWidgetPluginInstances[e]._inputField;this.searchWidgetPluginInstances[e].$emitter.subscribe("handleInputEvent",()=>{if(void 0===window.lenzPlatformAppPinterestTagTrackingStarted||!0!==window.lenzPlatformAppPinterestTagTrackingStarted)return;let e={search_query:t.value};window.LenzPlatformAppPinterestTagEventCallback("search",e)})}}}i.options={events:[]}},266:(e,t,r)=>{r.d(t,{Z:()=>n});class n{static iterate(e,t){if(e instanceof Map||Array.isArray(e))return e.forEach(t);if(e instanceof FormData){for(var r of e.entries())t(r[1],r[0]);return}if(e instanceof NodeList)return e.forEach(t);if(e instanceof HTMLCollection)return Array.from(e).forEach(t);if(e instanceof Object)return Object.keys(e).forEach(r=>{t(e[r],r)});throw Error("The element type ".concat(typeof e," is not iterable!"))}}}}]);

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.