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