PageSourceSearch

https://www.boody.co.uk/cdn/shop/t/305/assets/section-template-blog-all.js?v=27732195726408123651789137245

js boody.co.uk collected 2026-09-25 21:48:23 UTC 15,033 bytes, 2 lines download raw bytes

1(()=>{var e={6038(e,t,n){"use strict";var r=n(2430);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t,n){return(t=function(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var s=n(8970);const c="...",u=(e,t)=>Array.from({length:t-e+1},(t,n)=>n+e);var d=n(9273);const f=function(e){return(0,d.Y)("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className?`icon ${e.className}`:"icon",viewBox:e.viewBox,fill:"none",children:(0,d.Y)("use",{xmlnsXlink:"http://www.w3.org/1999/xlink",xlinkHref:`#${e.name}`,x:"0",y:"0"})})},p=function(e){const{onPageChange:t,totalCount:n,siblingCount:r=1,currentPage:o,pageSize:i}=e,l=(({totalCount:e,pageSize:t,siblingCount:n=1,currentPage:r})=>(0,s.Kr)(()=>{const o=Math.ceil(e/t);if(n+5>=o)return u(1,o);const i=Math.max(r-n,1),l=Math.min(r+n,o),a=i>2,s=l<o-2,d=o;if(!a&&s)return[...u(1,3+2*n),c,o];if(a&&!s){const e=u(o-(3+2*n)+1,o);return[1,c,...e]}if(a&&s){const e=u(i,l);return[1,c,...e,c,d]}},[e,t,n,r]))({currentPage:o,totalCount:n,siblingCount:r,pageSize:i});if(0===o||l.length<2)return null;const a=l[l.length-1];return(0,d.FD)("ul",{className:"mt-8 flex items-center justify-center lg:mt-12",children:[o>1&&(0,d.Y)("li",{className:"mx-1 flex h-8 w-8 cursor-pointer flex-col flex-wrap items-center justify-center",onClick:()=>{t(o-1)},children:(0,d.Y)(f,{viewBox:"0 0 16 16",name:"icon-chevron-left",className:"h-6 w-6 text-grey-700"})}),l.map(e=>(0,d.Y)("li","..."===e?{className:"dots mx-1 flex h-8 w-8 flex-col flex-wrap items-center justify-center bg-grey-100",children:"..."}:{className:"mx-1 flex h-8 w-8 flex-col flex-wrap items-center justify-center bg-grey-100 text-grey-700 "+(e===o?"border border-primary":"cursor-pointer"),onClick:()=>t(e),children:e})),o!==a&&(0,d.Y)("li",{className:"mx-1 flex h-8 w-8 cursor-pointer flex-col flex-wrap items-center justify-center",onClick:()=>{t(o+1)},children:(0,d.Y)(f,{viewBox:"0 0 16 16",name:"icon-chevron-right",className:"h-6 w-6 text-grey-700"})})]})};var g=n(4204);const m=/\/cdn\/shop\/|cdn\.shopify\.com/,h=[200,400,600,900,1200,1600,2560],b=(e,t)=>{if(/_\d+x\d*\./.test(e))return e.replace(/_\d+x\d*\./,`_${t}x.`);const n=e.replace(/([?&])width=\d+&?/,"$1").replace(/[?&]$/,"");return`${n}${n.includes("?")?"&":"?"}width=${t}`},v=function({imageUrl:e,alt:t,className:n,imageClass:r,isLazy:o=!0,isCover:i=!0,sizes:l="100vw"}){const a=`${i?"object-cover object-top":"object-contain"} ${r}`,c=`relative ${n}`,u=e&&e.length>0&&e.some(Boolean)?e[0]:window.GM_STATE.shopify.defaultImage,f="string"==typeof u?u:null==u?void 0:u.url,{src:p,srcSet:g}=(0,s.Kr)(()=>(e=>"string"==typeof e&&m.test(e)?{src:b(e,600),srcSet:h.map(t=>`${b(e,t)} ${t}w`).join(", ")}:null)(f)||{src:f,srcSet:void 0},[f]);return(0,d.Y)("figure",{className:c,children:(0,d.Y)("img",{loading:o?"lazy":"eager",sizes:g?l:void 0,srcSet:g,src:p,className:a,alt:t})})},y=["(min-width: 1024px) calc((100vw - 160px) / 3)","(min-width: 768px) calc((100vw - 64px) / 2)","calc(100vw - 32px)"].join(", "),w=function({id:e,title:t,imageUrl:n,altText:r,categoryTitle:o,onlineStoreUrl:i,content:l,buttonText:a}){return(0,d.Y)(g.FK,{children:(0,d.FD)("a",{href:i,className:"overflow-hidden p-0 flex flex-col gap-y-6 md-max:border-r-0 md:w-full",children:[(0,d.Y)("div",{className:"relative w-full overflow-hidden aspect-[344/196] lg:aspect-[426/260]",children:null!=n?(0,d.Y)(v,{sizes:y,imageUrl:[n],alt:r,imageClass:"w-full h-full duration-300",isCover:!0,isLazy:!0,className:"aspect-[344/196] lg:aspect-[426/260]"}):(0,d.Y)("div",{class:"duration-300 fit relative",children:(0,d.Y)("span",{class:"absolute inset-0 h-full w-full bg-gradient-to-br from-[#f0f0f0] to-[#9b9b9b]"})})}),(0,d.FD)("div",{class:"flex-auto flex flex-col",children:[(0,d.Y)("div",{class:"text-sm text-grey-500 font-medium",children:o}),(0,d.Y)("h3",{class:"h5 mb-3 font-medium",children:t}),(0,d.Y)("p",{class:"mb-auto text-base",dangerouslySetInnerHTML:{__html:l}}),(0,d.Y)("button",{type:"button",class:"text-left text-base font-semibold text-primary underline underline-offset-4 mt-6 hover:text-primary-hover",children:a})]})]})},e)},x=(e,...t)=>t.length>=e.length?e(...t):x.bind(void 0,e,...t),j=x((e,t)=>
1Array.isArray(t)?t.map(e):e(t)),O=(x((e,t)=>Array.isArray(t)?t.filter(e):e(t)?t:void 0),(e,...t)=>e.bind(void 0,...t)),S=(...e)=>function(t){return e.reduce((e,t)=>t.apply(this,[e]),t)},N=x((e,t)=>t[e]),T=(x((e,t)=>t<e),x((e,t,n)=>(n[e]=t,n)),(e,t,n)=>e(n)?T(e,t,t(n)):n),Y=(x((e,t)=>t/e),x((e,t)=>t*e),x((e,t)=>-1!==e.indexOf(t)),x((e,t)=>e<0?t[t.length+e]:t[e]));S((Y(1),Y(-1)),x((e,t)=>t+e)(1)),x((e,t)=>j(t=>(t.classList.add(e),t),t)),x((e,t)=>j(t=>e.appendChild(t),t)),x((e,t,n)=>(n.style[e]=t,n))("display","none"),x((e,t)=>getComputedStyle(t)[e]),N("clientHeight"),x((e,t)=>t.classList.contains(e));const A=(e,t)=>t.getAttribute(e),E=(x(A),x((e,t,n)=>(n.setAttribute(e,t),n))),P=(x((e,t)=>{t.removeAttribute(e)}),x((e,t)=>A("data-"+e,t)),x((e,t,n)=>E("data-"+e,t,n)),(e,t,n,r)=>(r.addEventListener(e,t,n),r)),F=(e,t,n,r)=>(r.removeEventListener(e,t,n),r),_=(e,t)=>{const n=["matches","matchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector"];for(const r of n)if("function"==typeof t[r])return t[r](e);return!1},C=x((e,t,n)=>j(O(P,e,t,{}),n)),k=(x((e,t,n)=>j(O(F,e,t,{}),n)),x((e,t,n)=>j(O(P,e,t,{passive:!0}),n)),x((e,t,n)=>j(O(P,e,t,!0),n)),x((e,t)=>T(t=>t&&!_(e,t)&&t.parentNode,e=>e.parentNode===document?null:e.parentNode,t.parentNode)),(e,t,n,r)=>P(e,e=>{const o=T(e=>e&&e!==document&&!_(n,e)&&e.parentNode,e=>e.parentNode,e.target);o!==document&&_(n,o)&&t.apply(r,[e])},{},r)),M=(x((e,t,n,r)=>j(O(k,e,t,n),r)),x((e,t)=>j(t=>(t.classList.remove(e),t),t)),x((e,t)=>j(t=>(t.classList.toggle(e),t),t)),S(N("children"),e=>Array.prototype.slice.call(e)),N("parentNode"),N("offsetTop"),N("value"),"undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iPad|iPhone|iPod/.test(window.navigator.platform)||"MacIntel"===navigator.platform&&navigator),768),$=(e="",t=window.innerWidth)=>{switch(e){case"large-desktop":return t>=1921;case"desktop":return t>=1200;case"tablet":return t>=M&&t<1024;default:return t<M}};var D=n(9551),B=n.n(D);function z(){return(0,d.Y)("div",{className:"px-4 py-8 lg:px-12 lg:pb-[72px] lg:pt-8",children:(0,d.Y)("div",{className:"grid grid-cols-1 gap-y-6 md:grid-cols-2 md:gap-x-8 md:gap-y-12 lg:grid-cols-3",children:[...Array(9)].map(()=>(0,d.FD)("div",{className:"flex flex-col gap-y-6 overflow-hidden p-0 md:w-full md-max:border-r-0",children:[(0,d.Y)("div",{className:"relative aspect-[344/196] w-full overflow-hidden lg:aspect-[426/260]",children:(0,d.Y)("div",{className:"aspect-square relative w-full bg-[linear-gradient(270deg,#F9FAFB_18.75%,#E5E7EB_179.69%)] pb-[100%]"})}),(0,d.FD)("div",{class:"flex flex-auto flex-col",children:[(0,d.Y)("div",{class:"h-5 w-full bg-[linear-gradient(270deg,#F9FAFB_18.75%,#E5E7EB_179.69%)] text-sm font-medium text-grey-500"}),(0,d.Y)("h3",{class:"h5 mb-3 h-8 w-full bg-[linear-gradient(270deg,#F9FAFB_18.75%,#E5E7EB_179.69%)] font-medium"}),(0,d.Y)("p",{class:"mb-auto h-8 w-full bg-[linear-gradient(270deg,#F9FAFB_18.75%,#E5E7EB_179.69%)] text-base"}),(0,d.Y)("button",{type:"button",class:"mt-6 h-5 bg-[linear-gradient(270deg,#F9FAFB_18.75%,#E5E7EB_179.69%)] text-left text-base font-semibold text-primary underline underline-offset-4 hover:text-primary-hover"})]})]}))})})}(0,r.A)(function(){const e=window.blogHandles,[t,n]=(0,s.J0)(1),[r,o]=(0,s.J0)([]),[i,l]=(0,s.J0)([]),[c,u]=(0,s.J0)(!1),{isTablet:f}=function(){const[e,t]=(0,s.J0)($("")),[n,r]=(0,s.J0)($("tablet")),[o,i]=(0,s.J0)($("desktop"));return(0,s.vJ)(()=>{C("resize",B()(()=>(()=>{const e=window.innerWidth;t($("",e)),r($("tablet",e)),i($("desktop",e))})(),500),window)},[]),{isMobile:e,isTablet:n,isDesktop:o}}();(0,s.vJ)(async()=>{u(!0);const n=(await(async()=>{const t=e.map(async e=>{var t;const n=`query {\n          blog(handle: "${e}") {\n            handle\n            id\n            title\n            articles(first: 250) {\n              nodes {\n                handle\n                blog {\n                  handle\n                  title\n                }\n                id\n                image {\n                  id\n                  height\n                  altText\n                  url\n                  width\n                }\n                tags\n                title\n                contentHtml\n                onlineStoreUrl\n                content(truncateAt: 100)\n                publishedAt\n              }\n            }\n          }\n        }`,r=await async function({query:e,variables:t}){const n=GM_STATE.apis.graphQlEndpoint,r=e.replace(/\n/g," ").replace(/ {2}/g,""),o={method:"post",headers:{"Content-Type":"application/json",Accept:"application/json","X-Shopify-Storefront-Access-Token":GM_STATE.apis.storefrontAccessToken},body:JSON.stringify(a({query:r},t?{variables:t}:{}))};return await fetch(n,o)}({query:n}).then(e=>e.json()).then(e=>{if(e.errors)throw e;return e.data}).catch(e=>(console.warn("error",e),{results:[]}));return(null==r||null===(t=r.blog)||void 0===t?void 0:t.articles)||{nodes:[]}});return(await Promise.all(t)).reduce((e,t)=>
1[...e,...t.nodes],[])})()).filter(e=>!e.tags.find(e=>"hidden"===e)&&e).sort(function(e,t){return new Date(t.publishedAt)-new Date(e.publishedAt)});l(n);const r=g(t,n);o(r),u(!1)},[]);const g=(e,t)=>{const n=[...t],r=(e-1)*(f?8:9);return n.slice(r,r+(f?8:9))};return(0,s.vJ)(()=>{const e=i.sort(function(e,t){return new Date(t.publishedAt)-new Date(e.publishedAt)}),n=g(t,e);o(n)},[t]),c?(0,d.Y)(z,{}):(0,d.Y)(d.FK,{children:r.length>0?(0,d.FD)("div",{className:"px-4 py-8 lg:px-12 lg:pb-[72px] lg:pt-8",children:[(0,d.Y)("div",{className:"grid grid-cols-1 gap-y-6 md:grid-cols-2 md:gap-x-8 md:gap-y-12 lg:grid-cols-3",children:r.map(e=>{var t,n,r;return!e.tags.find(e=>"hidden"===e)&&(0,d.Y)(w,{id:e.id,imageUrl:null===(t=e.image)||void 0===t?void 0:t.url,altText:null===(n=e.image)||void 0===n?void 0:n.altText,categoryTitle:null===(r=e.blog)||void 0===r?void 0:r.title,title:e.title,onlineStoreUrl:e.onlineStoreUrl,content:e.content,buttonText:"Read more"})})}),(0,d.Y)(p,{currentPage:t,totalCount:i.length,pageSize:9,onPageChange:e=>{document.scrollingElement.scrollTo({top:0,behavior:"smooth"}),n(e)}})]}):(0,d.Y)("div",{className:"px-4 py-8 lg:px-12 lg:pb-[72px] lg:pt-8",children:(0,d.Y)("h2",{class:"h5 lg:h4 flex justify-center font-semibold",children:"No blogs"})})})},"blog-all")},9551(e,t,n){var r="Expected a function",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,c="object"==typeof self&&self&&self.Object===Object&&self,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g||c||Function("return this")(),d=Object.prototype.toString,f=Math.max,p=Math.min,g=function(){return u.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=l.test(e);return n||a.test(e)?s(e.slice(2),n?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(r);return m(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),function(e,t,n){var o,i,l,a,s,c,u=0,d=!1,b=!1,v=!0;if("function"!=typeof e)throw new TypeError(r);function y(t){var n=o,r=i;return o=i=void 0,u=t,a=e.apply(r,n)}function w(e){var n=e-c;return void 0===c||n>=t||n<0||b&&e-u>=l}function x(){var e=g();if(w(e))return j(e);s=setTimeout(x,function(e){var n=t-(e-c);return b?p(n,l-(e-u)):n}(e))}function j(e){return s=void 0,v&&o?y(e):(o=i=void 0,a)}function O(){var e=g(),n=w(e);if(o=arguments,i=this,c=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(x,t),d?y(e):a}(c);if(b)return s=setTimeout(x,t),y(c)}return void 0===s&&(s=setTimeout(x,t)),a}return t=h(t)||0,m(n)&&(d=!!n.leading,l=(b="maxWait"in n)?f(h(n.maxWait)||0,t):l,v="trailing"in n?!!n.trailing:v),O.cancel=function(){void 0!==s&&clearTimeout(s),u=0,o=c=i=s=void 0},O.flush=function(){return void 0===s?a:j(g())},O}(e,t,{leading:o,maxWait:t,trailing:i})}}};const t={};function n(r){const o=t[r];if(void 0!==o)return o.exports;const i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.m=e,(()=>{const e=[];n.O=(t,r,o,i)=>{if(r){i=i||0;for(var l=e.length;l>0&&e[l-1][2]>i;l--)e[l]=e[l-1];return void(e[l]=[r,o,i])}let a=1/0;for(l=0;l<e.length;l++){let[r,o,i]=e[l],c=!0;for(var s=0;s<r.length;s++)(!1&i||a>=i)&&Object.keys(n.O).every(e=>n.O[e](r[s]))?r.splice(s--,1):(c=!1,i<a&&(a=i));if(c){e.splice(l--,1);const n=o();void 0!==n&&(t=n)}}return t}})(),n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var o=t[r++],i=t[r++];n.o(e,o)?0===i&&r++:Object.defineProperty(e,o,0===i?{enumerable:!0,value:t[r++]}:{enumerable:!0,get:i})}else for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}
1}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.j=7070,(()=>{const e={7070:0};n.O.j=t=>0===e[t];const t=(t,r)=>{let[o,i,l]=r;var a,s,c=0;if(o.some(t=>0!==e[t])){for(a in i)n.o(i,a)&&(n.m[a]=i[a]);if(l)var u=l(n)}for(t&&t(r);c<o.length;c++)n.o(e,s=o[c])&&e[s]&&e[s][0](),e[s]=0;return n.O(u)},r=self.webpackChunkgamma=self.webpackChunkgamma||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();let r=n.O(void 0,[9174],()=>n(6038));r=n.O(r)})();
2//# sourceMappingURL=section-template-blog-all.js.map

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.