"use strict";const getPostPurchaseAlignClasses=t=>"left"===t?"gp-justify-start":"right"===t?"gp-justify-end":"gp-justify-center",createStoreFrontFetcher=t=>async e=>{let[r,o,s]=e,n={"Content-Type":"application/json","X-GemX-Shop-Token":t.token};return fetch(t.endpoint,{method:"POST",headers:n,body:JSON.stringify({query:r,variables:o,operationName:s})}).then(t=>t.json()).then(t=>t.errors?Promise.reject(t.errors):t.data)},hasPublicStoreFrontData=t=>!!(t&&t.token&&t.endpoint);exports.createStoreFrontFetcher=createStoreFrontFetcher,exports.getPostPurchaseAlignClasses=getPostPurchaseAlignClasses,exports.hasPublicStoreFrontData=t=>!!(t&&t.token&&t.endpoint);
