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