{"version":3,"file":"stockItem-DACTSDq2.js","sources":["../../../app/javascript/api/stockItem.js"],"sourcesContent":["import api from \"./index\";\n\nexport default {\n  async addToCart({\n    stockItem,\n    quantity = 1,\n    isPerfectPartner = false,\n    analyticsId = null,\n    quickAddIds = null\n  } = {}) {\n    const response = await api.post(\"/stock_items/add_to_cart\", {\n      stock_item_id: stockItem.id,\n      qty: quantity,\n      is_perfect_partner: isPerfectPartner,\n      analytics_id: analyticsId,\n      quick_add_ids: quickAddIds\n    });\n    return response;\n  }\n};\n"],"names":["stockItem","quantity","isPerfectPartner","analyticsId","quickAddIds","api"],"mappings":"wCAEA,MAAeA,EAAA,CACb,MAAM,UAAU,CACd,UAAAA,EACA,SAAAC,EAAW,EACX,iBAAAC,EAAmB,GACnB,YAAAC,EAAc,KACd,YAAAC,EAAc,IACf,EAAG,GAAI,CAQN,OAPiB,MAAMC,EAAI,KAAK,2BAA4B,CAC1D,cAAeL,EAAU,GACzB,IAAKC,EACL,mBAAoBC,EACpB,aAAcC,EACd,cAAeC,CACrB,CAAK,CAEL,CACA"}