PageSourceSearch

https://jollylearning.com/hubfs/hub_generated/template_assets/1/44…/1789652027996/template_config.min.js

js jollylearning.com collected 2026-09-24 19:33:55 UTC 13,450 bytes, 2 lines download raw bytes

1!function(window){"use strict";var Commerce=window.JollyCommerce=window.JollyCommerce||{},DEFAULTS={region:"UK",countryCode:"GB",currencyCode:"GBP",languageCode:"EN",market:"UK",storeSelector:{currentStoreKey:"uk-global",currentStoreLabel:"UK & Global Store",currentStoreCode:"GB",options:[{key:"uk-global",code:"GB",label:"UK & Global Store",destinationText:"UK shop and global orders",url:"/uk/shop",external:!1,headless:!0,cartEnabled:!0,wishlistEnabled:!0,accountsEnabled:!0},{key:"ireland-europe",code:"IE",label:"Ireland & Europe",destinationText:"jollylearning.ie",url:"https://jollylearning.ie",external:!0,headless:!1,cartEnabled:!1,wishlistEnabled:!1,accountsEnabled:!1},{key:"india",code:"IN",label:"India",destinationText:"india.jollylearning.com",url:"https://india.jollylearning.com",external:!0,headless:!1,cartEnabled:!1,wishlistEnabled:!1,accountsEnabled:!1},{key:"south-africa",code:"ZA",label:"South Africa",destinationText:"jollylearning.co.za",url:"https://jollylearning.co.za",external:!0,headless:!1,cartEnabled:!1,wishlistEnabled:!1,accountsEnabled:!1},{key:"nigeria",code:"NG",label:"Nigeria",destinationText:"nigeria.jollylearning.com",url:"https://nigeria.jollylearning.com",external:!0,headless:!1,cartEnabled:!1,wishlistEnabled:!1,accountsEnabled:!1},{key:"americas",code:"US",label:"USA / North & South America",destinationText:"shop.jollylearning.com",url:"https://shop.jollylearning.com",external:!0,headless:!1,cartEnabled:!1,wishlistEnabled:!1,accountsEnabled:!1}]},shopify:{domain:"jollylearning.myshopify.com",apiVersion:"2026-07",storefrontAccessToken:"fafd28c370534ffe3373f32bc45c9eb4",checkoutDomain:"shop.jollylearning.co.uk",checkoutInShopify:!0},features:{commerceEnabled:!0,cartEnabled:!0,checkoutEnabled:!0,accountsEnabled:!1,wishlistEnabled:!0,schoolQuoteEnabled:!0,reviewsEnabled:!1,recommendationsEnabled:!0,analyticsEnabled:!0,consentRequired:!0},thresholds:{deliveryFreeAmount:null,lowStockQuantity:5,predictiveSearchMinLength:2},providers:{reviews:null,analytics:"hubspot"},schoolQuote:{endpoint:"/_hcms/api/school-quote",source:"jolly-headless-school-quote",maxItems:100},assets:{hubspotFolderId:"447277938902",icons:{wishlist:{default:"https://148210659.fs1.hubspotusercontent-eu1.net/hubfs/148210659/website-theme/Icons/Wishlist_empty.svg",hover:"https://148210659.fs1.hubspotusercontent-eu1.net/hubfs/148210659/website-theme/Icons/Wishlist_empty.svg",active:"/hubfs/website-theme/Icons/Heart.svg",activeHover:"/hubfs/website-theme/Icons/Heart.svg",disabled:"",loading:""},cart:{default:"/hubfs/website-theme/Icons/Nav%20Bar%20Icons/Shopping%20Cart.svg",hover:"/hubfs/website-theme/Icons/Nav%20Bar%20Icons/Shopping%20Cart_mouseover.svg",disabled:"",loading:"",success:""},search:{default:"/hubfs/website-theme/Icons/Nav%20Bar%20Icons/Search%20Icon.svg",hover:"/hubfs/website-theme/Icons/Nav%20Bar%20Icons/Search%20Icon_mouseover.svg"},trustDfeApproved:{default:"/hubfs/website-theme/Icons/New%20Icons/classical-building-icon.svg"},trustCountries:{default:"/hubfs/website-theme/Icons/New%20Icons/globe-icon-red.svg"},trustDelivery:{default:"/hubfs/website-theme/Icons/New%20Icons/delivery-icon.svg"},trustCheckout:{default:"/hubfs/website-theme/Icons/New%20Icons/secure-icon.svg"}}},customerAccounts:{clientId:"",authorizationEndpoint:"",tokenEndpoint:"",logoutEndpoint:"",graphqlEndpoint:"",scope:"openid email customer-account-api:full",callbackPath:"/uk/shop/account/callback",loginPath:"/uk/shop/account",logoutPath:"/uk/shop/account/logout"},storage:{prefix:"jolly-commerce",cartId:"cart-id",cartSnapshot:"cart-snapshot",accountSession:"account-session",accountOAuth:"account-oauth",wishlist:"wishlist",recentlyViewed:"recently-viewed",consent:"consent"},selectors:{root:"[data-commerce-root], [data-jl-shop-home], [data-jl-all-products]",cartDrawer:"[data-jl-cart-drawer]",cartOpen:"[data-jl-cart-open]",cartClose:"[data-jl-cart-close]",cartOverlay:"[data-jl-cart-overlay]",cartLines:"[data-jl-cart-lines]",cartCount:"[data-jl-cart-count]",cartSubtotal:"[data-jl-cart-subtotal]",cartCheckout:"[data-jl-cart-checkout]",cartMessage:"[data-jl-cart-message]",productGrid:"[data-jl-products-grid], [data-jl-home-collection-
1products-grid], [data-jl-featured-products-grid]",productCard:"[data-commerce-product-card], [data-shopify-variant-id]",addToCart:"[data-jl-add-to-cart]",wishlistToggle:"[data-jl-wishlist-toggle]",searchInput:"[data-commerce-search-input]",loadMore:"[data-jl-products-load-more]"},events:{ready:"commerce:ready",error:"commerce:error",configChanged:"commerce:config-changed",cartViewed:"cart:viewed",cartUpdated:"cart:updated",accountChanged:"account:changed",wishlistUpdated:"wishlist:updated",productViewed:"product:viewed",productAdded:"product:added",productRemoved:"product:removed",collectionViewed:"collection:viewed",searchSubmitted:"search:submitted",checkoutStarted:"checkout:started"}},REGIONS={UK:{region:"UK",countryCode:"GB",currencyCode:"GBP",languageCode:"EN",market:"UK",shopify:{domain:"jollylearning.myshopify.com",apiVersion:"2026-07",storefrontAccessToken:"fafd28c370534ffe3373f32bc45c9eb4",checkoutDomain:"shop.jollylearning.co.uk"},features:{accountsEnabled:!0},customerAccounts:{clientId:"0defa3f1-e189-44cb-bb2a-1286927be3d3",authorizationEndpoint:"https://shopify.com/authentication/88135237915/oauth/authorize",tokenEndpoint:"https://shopify.com/authentication/88135237915/oauth/token",logoutEndpoint:"https://shopify.com/authentication/88135237915/logout",graphqlEndpoint:"https://shopify.com/88135237915/account/customer/api/2026-07/graphql",scope:"openid email customer-account-api:full",callbackPath:"/uk/shop/account/callback",loginPath:"/uk/shop/account",logoutPath:"/uk/shop/account/logout"}}},activeConfig=null;function isObject(value){return value&&"[object Object]"===Object.prototype.toString.call(value)}function clone(value){return Array.isArray(value)?value.map(clone):isObject(value)?Object.keys(value).reduce(function(copy,key){return copy[key]=clone(value[key]),copy},{}):value}function merge(target){var output=clone(target||{});return Array.prototype.slice.call(arguments,1).forEach(function(source){isObject(source)&&Object.keys(source).forEach(function(key){isObject(source[key])&&isObject(output[key])?output[key]=merge(output[key],source[key]):output[key]=clone(source[key])})}),output}function getText(value){return null==value?"":String(value).trim()}function normaliseDomain(domain){return getText(domain).replace(/^https?:\/\//i,"").replace(/\/.*$/,"")||DEFAULTS.shopify.domain}function readBoolean(value,fallback){var text=getText(value).toLowerCase();return text?-1!==["1","true","yes","on"].indexOf(text):fallback}function readRootDataset(root){return root&&root.getAttribute?{region:getText(root.getAttribute("data-commerce-region")),countryCode:getText(root.getAttribute("data-commerce-country-code")),currencyCode:getText(root.getAttribute("data-commerce-currency-code")),languageCode:getText(root.getAttribute("data-commerce-language-code")),market:getText(root.getAttribute("data-commerce-market")),features:{cartEnabled:readBoolean(root.getAttribute("data-commerce-cart-enabled"),void 0),checkoutEnabled:readBoolean(root.getAttribute("data-commerce-checkout-enabled"),void 0),wishlistEnabled:readBoolean(root.getAttribute("data-commerce-wishlist-enabled"),void 0),schoolQuoteEnabled:readBoolean(root.getAttribute("data-commerce-school-quote-enabled"),void 0)}}:{}}function removeEmpty(value){return isObject(value)?Object.keys(value).reduce(function(clean,key){var child=removeEmpty(value[key]),isEmptyObject=isObject(child)&&!Object.keys(child).length;return""===child||null==child||isEmptyObject||(clean[key]=child),clean},{}):value}function getRegionKey(region){return getText(region||DEFAULTS.region).toUpperCase()}function getRegionConfig(regionKey){var key=getRegionKey(regionKey),externalRegions=window.JOLLY_COMMERCE_REGIONS||{};return merge(REGIONS[key]||{},externalRegions[key]||{})}function normaliseConfig(config){var resolved=config||{};return Commerce.RegionContext&&Commerce.RegionContext.active&&(resolved=merge(resolved,Commerce.RegionContext.config)),resolved.region=getRegionKey(resolved.region),resolved.shopify=resolved.shopify||{},resolved.shopify.domain=normaliseDomain(resolved.shopify.domain),resolved.shopify.apiVersion=getText(resolved.shopify.apiVersion)||DEFAULTS.shopify.apiVersion,resolved.shopify.storefrontAccessToken=getText(resolved.shopify.storefrontAccessToken),resolved.shopify.checkoutDomain=getText(resolved.shopify.checkoutDomain).replace(/^https?:\/\//i,"").replace(/\/.*$/,"")||resolved.shopify.domain,resolved}function getConfig(root,overrides){var windowConfig=removeEmpty(window.JOLLY_COMMERCE_CONFIG||{}),regionConfig=getRegionConfig(getRegionKey(overrides&&overrides.region||root&&root.getAttribute&&root.getAttribute("data-commerce-region")||windowConfig.region||DEFAULTS.region)),rootConfig=removeEmpty(readRootDataset(root));
1return clone(activeConfig=normaliseConfig(merge(DEFAULTS,regionConfig,windowConfig,rootConfig,overrides||{})))}function setConfig(overrides){var windowConfig=removeEmpty(window.JOLLY_COMMERCE_CONFIG||{}),regionConfig=getRegionConfig(getRegionKey(overrides&&overrides.region||activeConfig&&activeConfig.region||windowConfig.region||DEFAULTS.region));return activeConfig=normaliseConfig(merge(DEFAULTS,regionConfig,windowConfig,overrides||{})),window.dispatchEvent(new CustomEvent(DEFAULTS.events.configChanged,{detail:{config:clone(activeConfig)}})),clone(activeConfig)}Commerce.Config={DEFAULTS:DEFAULTS,REGIONS:REGIONS,PRODUCT_FILTER_SCHEMA:[{key:"resourceType",label:"Resource Type",metafield:"custom.resource_type",options:[{value:"core-pupil-and-teacher-resources",label:"Core pupil and teacher resources"},{value:"supplementary-resources",label:"Supplementary resources"}]},{key:"readerLevel",label:"Reader Level",metafield:"custom.reader_level",options:[{value:"orange",label:"Orange"},{value:"pink",label:"Pink"},{value:"red",label:"Red"},{value:"yellow",label:"Yellow"},{value:"green",label:"Green"},{value:"blue",label:"Blue"},{value:"purple",label:"Purple"}]},{key:"fontStyle",label:"Font Style",metafield:"custom.font_style",options:[{value:"precursive",label:"Precursive"},{value:"print",label:"Print"}]},{key:"phonics",label:"Phonics",metafield:"custom.phonics",options:[{value:"decodable-readers",label:"Decodable readers"},{value:"books-for-children",label:"Books for children"},{value:"books-for-teachers",label:"Books for teachers"},{value:"write-in-books-for-children",label:"Write-in books for children"},{value:"teaching-resources",label:"Teaching resources"},{value:"classroom-posters",label:"Classroom posters"},{value:"classroom-kits",label:"Classroom kits"},{value:"eal",label:"EAL"},{value:"intervention-send-resources",label:"Intervention / SEND resources",aliases:["Intervention/SEND resources","Intervention and SEND resources"]},{value:"apps",label:"Apps"}]},{key:"spellingGrammarPunctuation",label:"Spelling, Grammar & Punctuation",metafield:"custom.spelling_grammar_punctuation",options:[{value:"books-for-teachers",label:"Books for teachers"},{value:"write-in-books-for-children",label:"Write-in books for children"},{value:"teaching-resources",label:"Teaching resources"}]},{key:"homeResources",label:"Home Resources",metafield:"custom.home_resources",options:[{value:"books",label:"Books"},{value:"write-in-book-for-children",label:"Write-in book for children",aliases:["Write-in books for children"]},{value:"hands-on-resources",label:"Hands-on resources"}]},{key:"availability",label:"Availability",options:[{value:"in-stock",label:"In stock"}]},{key:"grade",label:"Grade",metafield:"custom.grade",options:[{value:"reception",label:"Reception"},{value:"year-1",label:"Year 1"},{value:"year-2",label:"Year 2"},{value:"year-3",label:"Year 3"},{value:"year-4",label:"Year 4"},{value:"year-5",label:"Year 5"},{value:"year-6",label:"Year 6"}]}],getConfig:getConfig,setConfig:setConfig,merge:merge,clone:clone,getText:getText,getRegionKey:getRegionKey,getRegionConfig:getRegionConfig,normaliseDomain:normaliseDomain,buildStorefrontEndpoint:function(config){var resolved=config||getConfig();return"https://"+normaliseDomain(resolved.shopify.domain)+"/api/"+encodeURIComponent(resolved.shopify.apiVersion)+"/graphql.json"},storageKey:function(name,config){var resolved=config||getConfig(),region=getText(resolved.region)||"UK",key=resolved.storage[name]||name;return[resolved.storage.prefix,region.toLowerCase(),key].join(":")},assetUrl:function(path,config){return function(source,path){for(var parts=getText(path).split("."),cursor=source,index=0;index<parts.length;index+=1){if(!cursor||!parts[index])return"";cursor=cursor[parts[index]]}return getText(cursor)}((config||getConfig()).assets||{},path)},iconUrl:function(group,state,config){var requestedGroup=getText(group),requestedState=getText(state)||"default",groupConfig=(((config||getConfig()).assets||{}).icons||{})[requestedGroup]||{};return getText(groupConfig[requestedState])||getText(groupConfig.default)},setRegion:function(region,overrides){return setConfig(merge(overrides||{},{region:getRegionKey(region)}))},featureEnabled:function(name,config){var resolved=config||getConfig();return Boolean(resolved.features&&resolved.features[name])},readRootDataset:readRootDataset}}(window);
2//# sourceURL=https://148210659.fs1.hubspotusercontent-eu1.net/hubfs/148210659/hub_generated/template_assets/1/448921079010/1789652027996/template_config.js

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.