"use strict";exports.getIdFromGid=r=>{if(r)return r.split("/").at(-1)},exports.getSPButton=({styles:r,buttons:t})=>{let{DynamicCheckoutBlack:e,DynamicCheckoutWhite:o,DynamicCheckoutPurple:l,ExpressCheckoutBlack:c,ExpressCheckoutWhite:p,ExpressCheckoutPurple:i}=t;return r?.type==="dynamic"?"black"===r.color?e:"purple"===r.color?l:o:r?.color==="black"?c:r?.color==="purple"?i:p},exports.getStoreUrl=r=>{if(r)try{let t=new URL(r);return t.origin}catch{return}};
