PageSourceSearch

https://www.pricesmartfoods.com/static/js/FloatingCmsPreviewWindowChunk.002134b5.chunk.js

js pricesmartfoods.com collected 2026-10-10 01:18:37 UTC 3,738 bytes, 41 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[331],{43098:(e,t,o)=>{o.r(t),o.d(t,{default:()=>C});var n=o(85893),i=o(67294),d=o(29163),s=o(1849),r=o(55977),l=o(29039),a=o(67979),m=o(51667);let p=d.ZP.div.withConfig({displayName:"PreviewContainer",componentId:"-__sc-d9170531-0"})(({theme:e})=>`    
2    display: grid;
3    grid-template-columns: auto auto auto 1fr auto; 
4    grid-gap: ${r.W0.md};        
5    justify-content: center;
6    align-items: center;
7    padding: ${r.W0.md};    
8    position: fixed;
9    left: 10vh;
10    right: 10vh;
11    width: 100%;
12    top: 85vh;
13    max-width: 80vw;
14    z-index: ${s.qi};
15    background-color: rgba(255,255,255,0.6);
16    border: 1px solid ${e.colors.uiColors.greyscale6};
17    font-weight: ${e.typography.weights.bold};
18    box-shadow: ${l.q.large};
19
20    ${(0,a.Z)("sm")} {
21      grid-template-columns: auto auto auto; 
22      left: 5vh;
23      right: 5vh;
24      top: 70vh;
25    }
26  `),c=d.ZP.span.withConfig({displayName:"PreviewTitle",componentId:"-__sc-d9170531-1"})(({theme:e})=>`
27    font-size: ${e.typography.text.fontSM.fontSize};
28  `),u=d.ZP.span.withConfig({displayName:"PreviewStatus",componentId:"-__sc-d9170531-2"})(({theme:e})=>`
29    text-align: center;
30    display: block;
31    padding: ${r.W0.xs} ${r.W0.sm};
32    background-color: ${e.colors.brandColors.primary4};
33  `),g=d.ZP.div.withConfig({displayName:"Text",componentId:"-__sc-d9170531-3"})(({theme:e})=>`
34    font-weight: ${e.typography.weights.normal};
35    font-size: ${e.typography.text.fontSM.fontSize};
36
37    ${(0,a.Z)("sm")} {
38      grid-row: 2/3;
39      grid-column: 2/4;
40    }
41  `),v=d.ZP.span.withConfig({displayName:"PreviewText",componentId:"-__sc-d9170531-4"})(["display:block;"]),w=d.ZP.div.withConfig({displayName:"PreviewHandler",componentId:"-__sc-d9170531-5"})(["cursor:grab;"]),f=(0,d.ZP)(m.zx).withConfig({displayName:"PreviewButton",componentId:"-__sc-d9170531-6"})(["","{grid-row:3/4;grid-column:2/4;}"],(0,a.Z)("sm"));var h=o(73342),y=o(62700),_=o(8618),x=o(63768);let C=e=>{let{t}=i.useContext(h.q),o=(0,x.TL)(),d="draggableContainer",s="draggableHandler",r=(0,x.CG)(e=>e.cms.isPreview);return(0,i.useEffect)(()=>{var e;let t,o,n,i,r;return e=document.getElementById(d),t=0,o=0,n=e=>{(e=e||window.event).preventDefault(),o=e.clientY,document.onmouseup=r,document.onmousemove=i},i=n=>{(n=n||window.event).preventDefault(),t=o-n.clientY,o=n.clientY,e.style.top=e.offsetTop-t>0?e.offsetTop+e.offsetHeight>document.documentElement.clientHeight?document.documentElement.clientHeight-e.offsetHeight-5+"px":e.offsetTop-t+"px":0},r=()=>{document.onmouseup=null,document.onmousemove=null},void(document.getElementById(s)?document.getElementById(s).onmousedown=n:e.onmousedown=n)},[]),(0,n.jsxs)(p,{id:d,children:[(0,n.jsx)(w,{id:s,children:"::"}),(0,n.jsx)(c,{children:t("previewCms.title")}),(0,n.jsx)(u,{children:t(r?"previewCms.preview":"previewCms.published")}),(0,n.jsxs)(g,{children:[(0,n.jsx)(v,{children:t("previewCms.text")}),(0,n.jsx)(v,{children:t("previewCms.subtext")})]}),(0,n.jsx)(f,{handleClick:()=>{_.logger.event("User Ending CmsPreviewSession ",{cmspreviewId:e.cmspreview_id,isPreviewPage:r}),o((0,y.G0)())},children:t("previewCms.endSession")})]})}},62700:(e,t,o)=>{o.d(t,{G0:()=>l,sX:()=>r,zR:()=>s});var n=o(33526);o(8618),o(1563);var i=o(93882),d=o(52306);o(71387),o(92762),o(48764).lW;let s=e=>({payload:e,type:n.FKn}),r=(e,t)=>({type:n.MDg,payload:{message:e,cmsRefName:t.refName,REQUEST_ID:t.reqId,upstreamStatus:t.upstreamStatus,storefrontStatus:t.storefrontStatus}}),l=()=>{if((0,i.Z)("endCmsPreviewSession")){let e=window.location.pathname;d.ZP.delete(n.HKP),d.ZP.delete(n.HKP,e),d.ZP.delete(n.v6H),d.ZP.delete(n.v6H,e)}return{type:n.FCV}}}}]);

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.