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