import{i as s}from"./main.chunk.N-eZ2ybB.js";const t="rest-of-the-world",n=({pledgeOption:s,reward:t,amount:n=0})=>"with-rewards"===s?t?.amount??0:n,o=({pledgeOption:s,bonusAmount:t=0})=>"with-rewards"===s?t:0,i=({reward:n,backer:o})=>{if(!n?.shipping_costs||0===n.shipping_costs.length||!o?.shipping_address?.country)return 0;const i=o.shipping_address.country,r=n.shipping_costs.find(s=>s.location===i);if(!s(r)){const o=n.shipping_costs.find(s=>s.location===t);return s(o)?o.cost:0}return r.cost};export{t as S,o as a,i as b,n as g};
