import"./Item-f4cbd6f4.js";import{I as Item}from"./index-3299c1c0.js";import"./Credentials-b84c0c5f.js";import"./Token-ba2c5d5c.js";import"./index-a0a71287.js";import"./index-2d6441ea.js";import"./ok-c9833bf3.js";import"./index-c2c33860.js";import"./index-8e333ab5.js";import"./index-f77ff597.js";function getWarningMessage(e){var i,n,o,t,r,d,a;var s=(d=(o=(n=(i=e.data.body)===null||i===void 0?void 0:i.content)===null||n===void 0?void 0:n.description)!==null&&o!==void 0?o:(r=(t=e.data.body)===null||t===void 0?void 0:t.content)===null||r===void 0?void 0:r.type)!==null&&d!==void 0?d:(a=e.data.body)===null||a===void 0?void 0:a.type;return s?s.replace(".","").toLowerCase():e.level}function hasValue(e){return e.value==undefined||typeof e.value==="string"}function isDefined(e){return e!=undefined}function itemToAmount(e){var i;return Array.isArray(e)?e.reduce((function(e,i){return e+=i.price?i.price:0}),0):Item.is(e)?(i=e.price)!==null&&i!==void 0?i:0:e}export{itemToAmount as a,getWarningMessage as g,hasValue as h,isDefined as i};