PageSourceSearch

https://cdn.harlemworldmagazine.com/wp-content/plugins/woocommerce…/store-notices.js?ver=c1eae8d5e518e3fbcf40

js harlemworldmagazine.com collected 2026-09-24 08:47:50 UTC 2,149 bytes, 1 lines download raw bytes

1import*as t from"@wordpress/interactivity";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const o=(s={getContext:()=>t.getContext,getElement:()=>t.getElement,store:()=>t.store},c={},e.d(c,s),c),n=o.getContext,{state:r}=(0,o.store)("woocommerce/store-notices",{state:{get role(){const t=n();return"error"===t.notice.type||"success"===t.notice.type?"alert":"status"},get isError(){const{notice:t}=n();return"error"===t.type},get isSuccess(){const{notice:t}=n();return"success"===t.type},get isInfo(){const{notice:t}=n();return"notice"===t.type},get notices(){const t=(0,o.getContext)("woocommerce/product-collection");if(t)return t?.notices;const e=n();return e&&e.notices?e.notices:[]}},actions:{addNotice:t=>{const{notices:e}=r,o=e.find((e=>e.notice===t.notice)),n=o?o.id:`${Date.now()}-${Math.random().toString(36).substring(2,15)}`;return o||e.push({...t,id:n}),n},removeNotice:t=>{const{notices:e}=r;t="string"==typeof t?t:n().notice.id;const o=e.findIndex((({id:e})=>e===t));-1!==o&&e.splice(o,1)}},callbacks:{renderNoticeContent:()=>{const t=n(),{ref:e}=(0,o.getElement)();e&&(e.innerHTML=t.notice.notice)},scrollIntoView:()=>{const{ref:t}=(0,o.getElement)();t&&t.scrollIntoView({behavior:"smooth"})},injectIcon:()=>{const{ref:t}=(0,o.getElement)();if(!t)return;const e=t.querySelector(":scope > svg");e&&e.remove();const n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","24"),n.setAttribute("height","24"),n.setAttribute("aria-hidden","true"),n.setAttribute("focusable","false");const s=document.createElementNS("http://www.w3.org/2000/svg","path");s.setAttribute("d",r.isError||r.isInfo?"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z":"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"),n.appendChild(s),t.prepend(n)}}},{lock:!0});var s,c;

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.