import{u as E}from"./CrmPolicyApi-DkVQ8G4z.js";const R={PRODUCTION_SENT:"production sent",ORDER_PAYMENT:"payments received"},T=()=>{const{data:r,isLoading:n,isFetching:s}=E(void 0,{refetchOnMountOrArgChange:!0}),e=r,a=(e==null?void 0:e.orderPayment)!==!1,o=(e==null?void 0:e.paymentAmountMax)!==!1,u=!n&&a,t=a&&(e==null?void 0:e.salesTargetRevenue)===!0?"ORDER_PAYMENT":"PRODUCTION_SENT";return{policy:e,loading:n,fetching:n||s,orderPaymentEnabled:u,paymentAmountMaxEnabled:o,salesTargetRevenueBasis:t,salesTargetRevenueFromPayment:t==="ORDER_PAYMENT",salesTargetRevenueLabel:R[t]}};export{T as u};
