PageSourceSearch

https://www.mailkick.app/assets/wordCount-BSGC5rHP.js

js mailkick.app collected 2026-10-05 03:54:26 UTC 2,000 bytes, 1 lines download raw bytes

1function n(n){return n.sourceComponentId||n.properties?.componentId||n.properties?.componentName||n.content||null}function e(n,t){if(!n||!Array.isArray(n))return null;for(const r of n){if(r.id===t)return r;if(r.children){const n=e(r.children,t);if(n)return n}if(r.columns&&Array.isArray(r.columns))for(const n of r.columns){if(n.elements){const r=e(n.elements,t);if(r)return r}if(n.children){const r=e(n.children,t);if(r)return r}}}return null}async function t(e,r,o,i){if(e&&Array.isArray(e))for(const c of e){if(r.onElement&&await r.onElement(c,i),"component"===c.type){const e=n(c),i=e&&o?o.get(e):void 0;if(r.onComponent&&await r.onComponent(c,i),i?.children){const n=Array.isArray(c.overrides)?c.overrides:[];await t(i.children,r,o,{instanceId:c.id,overrides:n})}}if(c.children&&await t(c.children,r,o,i),c.columns&&Array.isArray(c.columns))for(const n of c.columns)n.elements&&await t(n.elements,r,o,i),n.children&&await t(n.children,r,o,i)}}function r(n,e){if(n&&Array.isArray(n))for(const t of n)if(e(t),t.children&&r(t.children,e),t.columns&&Array.isArray(t.columns))for(const n of t.columns)n.elements&&r(n.elements,e),n.children&&r(n.children,e)}function o(e){const t=new Set;return r(e,e=>{if("component"===e.type){const r=n(e);r&&t.add(r)}}),t}async function i(n,e,r){const o=!0===r?.onlyCountOverriddenComponentContent;let i=0;return await t(n,{onElement:(n,e)=>{let t,r;if("text"===n.type||"button"===n.type)t=n.content||"",r="content";else{if("image"!==n.type)return;t=n.properties?.alt||"",r="alt"}if(e?.overrides){const i=e.overrides.find(e=>e.elementId===n.id),c=i?.[r];if(void 0!==c)t=c;else if(o)return}const c=String(t).replace(/<[^>]*>/g," ").trim();if(c){const n=c.split(/\s+/).filter(n=>n.length>0);i+=n.length}}},e),i}const c=Object.freeze(Object.defineProperty({__proto__:null,computeComponentWordCount:async function(n){return Array.isArray(n)&&0!==n.length?i(n,new Map):0},countWordsInEmail:i},Symbol.toStringTag,{value:"Module"}));export{e as a,i as c,o as f,t,c as w};

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.