PageSourceSearch

https://www.wholemonkey.com/_next/static/chunks/app/(root)/layout.1790863048910.b2f4ce02fd91e7ef.js

js wholemonkey.com collected 2026-10-01 23:45:56 UTC 8,370 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[88332],{61742:function(e,t,n){Promise.resolve().then(n.bind(n,82891)),Promise.resolve().then(n.bind(n,81553)),Promise.resolve().then(n.bind(n,39881)),Promise.resolve().then(n.bind(n,55417)),Promise.resolve().then(n.bind(n,78356)),Promise.resolve().then(n.bind(n,61807))},55417:function(e,t,n){"use strict";n.d(t,{default:function(){return a}});var o=n(99376),i=n(2265);function a(){let e=(0,o.usePathname)();return(0,i.useEffect)(()=>{window.scrollTo({top:0,behavior:"instant"})},[e]),null}},82891:function(e,t,n){"use strict";var o=n(57437);n(2265);var i=n(60032),a=n(87364),r=n(39919);t.default=()=>{let e=(0,i.I0)(),t=(0,i.v9)(e=>e.ui.snackbar),n=(t,n)=>{"clickaway"!==n&&e((0,r.p2)())};return(0,o.jsx)(a.Z,{open:t.open,message:t.message,label:t.label,bottom:t.bottom,autoHideDuration:t.duration,onClose:n,onClick:n})}},81553:function(e,t,n){"use strict";var o=n(2265);let i="keyboard-safe-viewport-styles";t.default=()=>((0,o.useEffect)(()=>{var e,t,n;let o=document.documentElement,a=document.getElementById(i),r=null,l=null,s=!1,d=0,c=window.innerHeight;a||((a=document.createElement("style")).id=i,a.textContent="\n  @media only screen and (max-width: 599.95px) {\n    .MuiDrawer-paperAnchorBottom {\n      bottom: var(--keyboard-offset, 0px) !important;\n      max-height: var(--visible-viewport-height, 100vh) !important;\n    }\n\n    .MuiDrawer-paperAnchorLeft,\n    .MuiDrawer-paperAnchorRight {\n      height: var(--visible-viewport-height, 100vh) !important;\n      max-height: var(--visible-viewport-height, 100vh) !important;\n    }\n\n    .bottom-sheet-body {\n      bottom: var(--keyboard-offset, 0px) !important;\n      max-height: var(--visible-viewport-height, 100vh) !important;\n    }\n\n    /* BottomModal caps its sheet via inline maxHeight (505px open, 0 when\n       closed), which !important would override — so it publishes the cap\n       as --bottom-modal-max-height and the keyboard-safe height may only\n       shrink it, never expand a capped (or closed) sheet to full screen. */\n    .bottom-modal__body {\n      bottom: var(--keyboard-offset, 0px) !important;\n      max-height: min(\n        var(--visible-viewport-height, 100vh),\n        var(--bottom-modal-max-height, 100vh)\n      ) !important;\n    }\n\n    .bottom-sheet-content {\n      max-height: calc(var(--visible-viewport-height, 100vh) - 130px) !important;\n    }\n  }\n",document.head.appendChild(a));let u=()=>{var e,t,n;return null!==(n=null===(e=(t=window).matchMedia)||void 0===e?void 0:e.call(t,"(max-width: 599.95px)").matches)&&void 0!==n&&n},h=()=>{let e=window.navigator.userAgent||"";return/instagram/i.test(e)&&/android/i.test(e)},m=e=>{var t,n;if(!e)return!1;let o=null===(t=e.tagName)||void 0===t?void 0:t.toLowerCase();if("textarea"===o||e.isContentEditable)return!0;if("input"!==o)return!1;let i=(null===(n=e.type)||void 0===n?void 0:n.toLowerCase())||"text";return!new Set(["button","checkbox","color","file","hidden","image","radio","range","reset","submit"]).has(i)},v=e=>Math.min(380,Math.max(260,.42*e)),w=()=>{var e,t;let n=window.navigator.virtualKeyboard;return Math.max(0,null!==(t=null==n?void 0:null===(e=n.boundingRect)||void 0===e?void 0:e.height)&&void 0!==t?t:0)},p=function(){let{canClearFallback:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r&&window.cancelAnimationFrame(r),r=window.requestAnimationFrame(()=>{var t,n;let i=window.visualViewport,a=window.innerHeight,r=null!==(t=null==i?void 0:i.height)&&void 0!==t?t:a,l=null!==(n=null==i?void 0:i.offsetTop)&&void 0!==n?n:0,p=m(document.activeElement);p||(c=Math.max(c,a));let f=c-a>100,b=Math.max(0,a-(r+l)),g=w(),y=Math.max(b,g);(e&&s&&y<80&&Date.now()-d>500||!p)&&(s=!1);let x=u()&&h()&&s&&p&&y<80&&!(g>0)&&!f,E=f?0:x?v(a):y,k=Math.max(320,Math.min(r,a-E));o.style.setProperty("--keyboard-offset","".concat(E,"px")),o.style.setProperty("--visible-viewport-height","".concat(k,"px"))})},f=()=>{s=h()&&m(document.activeElement),d=Date.now(),p(),window.requestAnimationFrame(p),l&&window.clearTimeout(l),l=window.setTimeout(p,300)};p();let b=()=>p({canClearFallback:!0});return window.addEventListener("resize",b),window.addEventListener("focusin",f),window.addEventListener("focusout",f),null===(e=window.visualVie
1wport)||void 0===e||e.addEventListener("resize",b),null===(t=window.visualViewport)||void 0===t||t.addEventListener("scroll",b),null===(n=window.navigator.virtualKeyboard)||void 0===n||n.addEventListener("geometrychange",b),()=>{var e,t,n;r&&window.cancelAnimationFrame(r),l&&window.clearTimeout(l),window.removeEventListener("resize",b),window.removeEventListener("focusin",f),window.removeEventListener("focusout",f),null===(e=window.visualViewport)||void 0===e||e.removeEventListener("resize",b),null===(t=window.visualViewport)||void 0===t||t.removeEventListener("scroll",b),null===(n=window.navigator.virtualKeyboard)||void 0===n||n.removeEventListener("geometrychange",b),o.style.removeProperty("--keyboard-offset"),o.style.removeProperty("--visible-viewport-height")}},[]),null)},39881:function(e,t,n){"use strict";var o=n(57437),i=n(2265),a=n(54887),r=n(99376);let l="preview-theme",s=e=>(e||"").replace(/[-_]/g," ").replace(/\b\w/g,e=>e.toUpperCase()).trim(),d=()=>new URLSearchParams(window.location.search).get(l)||null;t.default=()=>{let e=(0,r.usePathname)(),[t,n]=(0,i.useState)(!1),[c,u]=(0,i.useState)(null);return((0,i.useEffect)(()=>{n(!0)},[]),(0,i.useEffect)(()=>{u(d())},[e]),(0,i.useEffect)(()=>{if(!c)return;let e=e=>{let t;if(e.defaultPrevented||0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let n=e.target.closest&&e.target.closest("a[href]");if(n&&"_blank"!==n.target){try{t=new URL(n.href,window.location.origin)}catch(e){return}!(t.origin!==window.location.origin||!/^https?:$/.test(t.protocol)||t.searchParams.get(l))&&(t.pathname===window.location.pathname&&t.hash||(t.searchParams.set(l,c),e.preventDefault(),e.stopImmediatePropagation(),window.location.assign(t.toString())))}};return document.addEventListener("click",e,!0),()=>document.removeEventListener("click",e,!0)},[c]),t&&c&&"undefined"!=typeof document)?(0,a.createPortal)((0,o.jsxs)("div",{role:"region","aria-label":"Theme preview",style:{position:"fixed",left:0,right:0,bottom:0,zIndex:2147483e3,background:"#1A1A1A",color:"#FFFFFF",padding:"10px 16px",display:"flex",alignItems:"center",justifyContent:"center",gap:16,flexWrap:"wrap",font:"600 13px/1.4 system-ui, -apple-system, Segoe UI, Roboto, sans-serif",boxShadow:"0 -2px 12px rgba(0, 0, 0, 0.25)"},children:[(0,o.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:8},children:[(0,o.jsx)("span",{"aria-hidden":!0,style:{display:"inline-block",width:8,height:8,borderRadius:"50%",background:"#1ABF5C"}}),"You’re previewing the"," ",(0,o.jsx)("b",{style:{color:"#FFD466"},children:s(c)})," theme with your store’s real content — nothing is applied yet, so your live store stays exactly as it is."]}),(0,o.jsx)("button",{type:"button",onClick:()=>{let e=new URL(window.location.href);e.searchParams.delete(l),window.location.assign("".concat(e.pathname).concat(e.search).concat(e.hash))},style:{border:"none",borderRadius:999,background:"#FFFFFF",color:"#1A1A1A",padding:"6px 16px",fontWeight:700,fontSize:12,cursor:"pointer",whiteSpace:"nowrap"},children:"Exit preview"})]}),document.body):null}},87364:function(e,t,n){"use strict";var o=n(57437),i=n(2265),a=n(54887),r=n(49240);t.Z=e=>{let{message:t,open:n,onClose:l,onClick:s=()=>{},bottom:d,autoHideDuration:c,label:u}=e,[h,m]=(0,i.useState)(!1),[v,w]=(0,i.useState)(!1);if((0,i.useEffect)(()=>(m(!0),()=>m(!1)),[]),(0,i.useEffect)(()=>{if(n)w(!0);else{let e=setTimeout(()=>{w(!1)},500);return()=>clearTimeout(e)}},[n]),!h||"undefined"==typeof document||!n&&!v)return null;let p=(0,o.jsx)("div",{className:"snackbar-container",children:(0,o.jsx)(r.Z,{style:{bottom:d},classes:{anchorOriginBottomCenter:"snackbar"},anchorOrigin:{vertical:"bottom",horizontal:"center"},autoHideDuration:c&&c>0?c:2e3,open:n,onClose:l,message:(0,o.jsx)("p",{className:"snackbar-message",children:t}),action:(0,o.jsx)("button",{className:"snackbar-cta",onClick:s,children:u||"GOT IT"})})});return(0,a.createPortal)(p,document.body)}}},function(e){e.O(0,[443,43663,85657,60032,97281,56581,49240,61764,61807,92971,52117,1744],function(){return e(e.s=61742)}),_N_E=e.O()}]);

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.