PageSourceSearch

https://wizaz.pl/kosmetyki/_nuxt/C2ANvHId.js

js wizaz.pl collected 2026-09-25 19:49:43 UTC 1,695 bytes, 1 lines download raw bytes

1import{a3 as c,aF as l,aH as r}from"./DBoyCmlc.js";function i(s,t){s.sort(({position:n},{position:o})=>n-o);const e=s.map(({block_id:n})=>t.cmsBlocks.find(({id:o})=>String(o)===String(n))).filter(n=>!!n);return e.forEach(n=>{n?.widget.sort(({position:o},{position:a})=>o-a)}),e}const d=c("cms",{state:()=>({cmsBlocks:[],currentlyLoadingBlocksIds:[]}),getters:{getContentWidgetsByPosition(s){const t=r();return e=>{if(!t.currentCategory||!t.currentCategory.landing_page||t.currentCategory.display_mode==="PRODUCTS"||s.cmsBlocks.length===0)return[];const n=t.currentCategory.landing_page.filter(({placement:o})=>o===e);return i(n,s)}},getContentWidgetsByPositionForNoContextHomePage(s){const t=r();return e=>{if(!t.instanceCategory||!t.instanceCategory.landing_page||t.instanceCategory.display_mode==="PRODUCTS"||s.cmsBlocks.length===0)return[];const n=t.instanceCategory.landing_page.filter(({placement:o})=>o===e);return i(n,s)}},getWidgetById(s){return t=>s.cmsBlocks.find(e=>e.identifier===t)}},actions:{async loadCmsBlocks(s){if(!s||s.display_mode==="PRODUCTS"||!s.landing_page||!s.landing_page.length)return;const t=s.landing_page.map(({block_id:e})=>e).filter(e=>this.cmsBlocks.find(n=>n.id===e)===void 0&&this.currentlyLoadingBlocksIds.find(n=>n===e)===void 0);if(t.length!==0)try{this.currentlyLoadingBlocksIds=[...new Set([...this.currentlyLoadingBlocksIds,...t])];const{data:e,error:n}=await l("/catalog/get-cms-blocks",{method:"GET",query:{ids:t}});if(n.value)throw n.value;if(!e.value)throw new Error("Data is missing!");this.cmsBlocks=[...this.cmsBlocks,...e.value]}finally{this.currentlyLoadingBlocksIds=this.currentlyLoadingBlocksIds.filter(e=>!t.includes(e))}}}});export{d as u};

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.