PageSourceSearch

https://foodsavercostplus.com/assets/Circular-P0J-TAVl.js

js foodsavercostplus.com collected 2026-09-27 07:10:52 UTC 3,681 bytes, 1 lines download raw bytes

1import{bm as g,r as f,ao as w,bn as S,j as i,bo as b,bp as y,aF as _}from"./index-DuYcMUNu.js";const m="https://component.ideal.sale/";function j(){const e=document.querySelector("ideal-circular-view");if(!e)return;const t=new URLSearchParams(window.location.search),s=t.get("share_store"),r=t.get("share_type"),n=t.get("share_id"),a=t.get("share_card_id"),o=t.get("share_page_id"),p=t.get("share_subpage_id"),h=t.get("print");s&&e.setAttribute("store",s),r&&e.setAttribute("sharetype",r),n&&e.setAttribute("shareid",n),a&&e.setAttribute("sharecardid",a),o&&e.setAttribute("sharepageid",o),p&&e.setAttribute("sharesubpageid",p),h&&e.setAttribute("print",h)}function A(){if(g(),j(),window.__idealCircularBootstrapped)return;window.__idealCircularBootstrapped=!0;const e=document.getElementsByTagName("head")[0];if(!e)return;const t=Date.now(),s=document.createElement("script");s.src=`${m}polyfills.js?date=${t}`,s.type="module",s.onload=()=>{const r=document.createElement("script");r.src=`${m}scripts.js?date=${t}`,r.defer=!0,e.appendChild(r);const n=document.createElement("script");n.src=`${m}main.js?date=${t}`,n.type="module",e.appendChild(n)},e.appendChild(s)}function E(){A()}function N(e){const t=e.src||"",s=e.textContent||"";return t.includes("ideal-circular-view")||t.includes("ideal-circular")||s.includes("ideal-circular-view")||s.includes("ideal-circular")||s.includes("component.ideal.sale")}const C=new Set;function I(e,t={}){const{skipIdealCircularLoader:s=!1}=t,r=f.useRef(null);return f.useEffect(()=>{if(!r.current||!e)return;const n=()=>
1{if(!r.current)return;const p=new DOMParser().parseFromString(e,"text/html").querySelectorAll("script");(async()=>{for(const c of Array.from(p)){if(s&&N(c))continue;let u;if(c.src?u=c.src:u=`inline:${(c.textContent||"").substring(0,100)}`,C.has(u)){console.log(`Skipping duplicate script: ${u.substring(0,50)}...`);continue}const l=document.createElement("script");Array.from(c.attributes).forEach(d=>{l.setAttribute(d.name,d.value)}),c.src?(l.src=c.src,await new Promise(d=>{l.onload=()=>{C.add(u),d()},l.onerror=()=>{console.warn(`Failed to load script: ${c.src}`),d()},r.current?r.current.appendChild(l):d()})):(l.textContent=c.textContent,C.add(u),r.current&&r.current.appendChild(l))}})().catch(c=>{console.error("Error executing scripts:",c)})};requestAnimationFrame(()=>{r.current&&n()})},[e,s]),r}const R="circular",D="custom",x=_.forwardRef(({htmlContent:e,lastContentRef:t,contentSetRef:s},r)=>{const n=f.useRef(null),a=o=>{n.current=o,typeof r=="function"?r(o):r&&(r.current=o)};return f.useEffect(()=>{if(n.current&&(!s.current||t.current!==e)){if(n.current.querySelector("ideal-circular-view")&&t.current===e)return;n.current.innerHTML=e,t.current=e,s.current=!0,E()}},[e,t,s]),i.jsx("div",{ref:a})});x.displayName="ContentDiv";function v(){const{getSiteContentLocationGroupsForContentType:e}=w(),t=S(),s=t&&t.length>0,a=(e(D)||[]).find(u=>u.siteContent?.slug===R)?.siteContent,o="row mx-0 mx-lg-5 mt-2 mt-md-5 contentwrapper",p=I(a?.content||"",{skipIdealCircularLoader:!0}),h=f.useRef(!1),c=f.useRef("");return s?i.jsxs("div",{className:o,children:[a?i.jsxs(i.Fragment,{children:[i.jsx("h1",{className:"text-theme-header",children:a.title||"N/A"}),a.content&&i.jsx(x,{ref:p,htmlContent:a.content,lastContentRef:c,contentSetRef:h})]}):i.jsxs(i.Fragment,{children:[i.jsx("h1",{className:"text-theme-header",children:"NO CIRCULAR FOUND"}),i.jsx("p",{children:"No circular content is available at this time."})]}),i.jsx("hr",{className:"dotted"})]}):i.jsx("div",{className:o,children:i.jsx(b,{strokeColor:y("header_color"),strokeWidth:"5",animationDuration:"0.75",width:"50",visible:!0})})}export{v as default};

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.