import{u as n,a as d,aU as i,ai as p,dC as m,p as b,E as c,hC as _,j as e,C as v,aZ as x}from"./bundle.CHKSNOJF.js";import{S as f}from"./SortableVariableList-Z0W18BXK.js";function C(){const[t]=n(),l=d(),o=i(),u=p(),s=m(),r=[{value:"$product.product1",label:s("product1").label()||t("custom1")},{value:"$product.product2",label:s("product2").label()||t("custom2")},{value:"$product.product3",label:s("product3").label()||t("custom3")},{value:"$product.product4",label:s("product3").label()||t("custom4")},{value:"$product.description",label:t("description")},{value:"$product.gross_line_total",label:t("gross_line_total")},{value:"$product.item",label:t("item")},{value:"$product.line_total",label:t("line_total")},{value:"$product.quantity",label:t("quantity")},{value:"$product.unit_cost",label:t("unit_cost")},{value:"$product.discount",label:t("discount")},{value:"$product.tax",label:t("tax")}];return b.useEffect(()=>{if(o?.settings.pdf_variables?.product_columns&&!o?.settings.pdf_variables?.product_quote_columns){const a=c.cloneDeep(o);c.set(a,"settings.pdf_variables.product_quote_columns",a?.settings.pdf_variables?.product_columns),u(_({object:"company",data:a}))}},[o]),e.jsx(e.Fragment,{children:!o?.settings.sync_invoice_quote_columns&&e.jsx(v,{title:e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("div",{children:e.jsx(x,{color:"#2176FF",size:"1.3rem"})}),e.jsx("span",{children:t("quote_product_columns")})]}),padding:"small",className:"shadow-sm",style:{borderColor:l.$24},headerStyle:{borderColor:l.$20},children:e.jsx(f,{for:"product_quote_columns",defaultVariables:r})})})}export{C as default};
