PageSourceSearch

https://app.merlinai.co/_next/static/chunks/91227-eda747853a1d1a7c.js

js merlinai.co collected 2026-09-30 05:40:57 UTC 23,972 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[91227],{391227:function(r,t,n){n.d(t,{$z:function(){return rH},Aw:function(){return rI},BM:function(){return b},BZ:function(){return C},C0:function(){return rS},CC:function(){return ra},EP:function(){return w},Fh:function(){return B},Gx:function(){return V},Hq:function(){return W},IL:function(){return f},Id:function(){return s},J2:function(){return j},KL:function(){return rt},Kz:function(){return rp},LB:function(){return L},LM:function(){return rf},Lr:function(){return re},Lz:function(){return rr},MS:function(){return rY},Mb:function(){return h},Mu:function(){return rP},N6:function(){return X},NG:function(){return ry},Nk:function(){return S},OE:function(){return rM},Ox:function(){return rg},P0:function(){return rO},Qc:function(){return rw},Qz:function(){return P},RR:function(){return g},RU:function(){return M},S7:function(){return rl},S_:function(){return q},Sd:function(){return z},Si:function(){return rN},TO:function(){return rC},Tf:function(){return d},U9:function(){return D},Uo:function(){return rX},VB:function(){return x},Vb:function(){return G},Vp:function(){return $},W1:function(){return O},W3:function(){return rv},WL:function(){return rV},WU:function(){return r$},YK:function(){return rj},ZW:function(){return Y},Zl:function(){return rG},Zs:function(){return R},_H:function(){return rk},_Y:function(){return r_},_g:function(){return rx},aO:function(){return J},aR:function(){return rs},aV:function(){return F},bW:function(){return A},bq:function(){return rK},bv:function(){return rR},cD:function(){return rE},dE:function(){return rZ},dp:function(){return rF},eO:function(){return Q},eT:function(){return N},ef:function(){return rA},ez:function(){return rq},fn:function(){return rz},g7:function(){return rJ},g8:function(){return ru},h3:function(){return H},hc:function(){return rU},jy:function(){return rL},kL:function(){return k},km:function(){return p},ll:function(){return rd},mk:function(){return I},my:function(){return v},nS:function(){return ri},nt:function(){return U},oM:function(){return rW},p5:function(){return rB},p6:function(){return rD},qg:function(){return Z},rG:function(){return ro},rI:function(){return o},sV:function(){return y},tG:function(){return rn},vC:function(){return rT},vn:function(){return rb},wd:function(){return l},ww:function(){return rc},xP:function(){return rm},xy:function(){return K},yE:function(){return E},yF:function(){return rQ},y_:function(){return rh},yn:function(){return T},zH:function(){return _},zh:function(){return m}});var e,a,o,i,c=n(55678),u=n(921156);let s=(r,t)=>{try{let n=new URLSearchParams;t.billToAddress&&n.append("billToAddress",t.billToAddress),t.shipToAddress&&n.append("shipToAddress",t.shipToAddress),t.projectId&&n.append("projectId",t.projectId),t.destinationWarehouseId&&n.append("destinationWarehouseId",t.destinationWarehouseId);let e=n.toString(),a="/api/v1/purchasing/order/bid?submittalId=".concat(r).concat(e?"&".concat(e):"");return u.ZP.post(a,{})}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},p=(r,t)=>{try{return u.ZP.post("/api/v1/purchasing/order/".concat(r,"/item/add"),t)}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},l=(r,t)=>{try{return u.ZP.post("/api/v1/purchasing/order",r,(null==t?void 0:t.suppressGlobalToast)?{"X-Handled-Locally":"1"}:void 0)}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},g=(r,t,n,e)=>{try{let i=new URLSearchParams;if(i.append("page",t.toString()),i.append("size",n.toString()),e){var a,o;e.poItemType&&i.append("poItemType",e.poItemType),e.projectId&&i.append("projectId",e.projectId),e.shippingStatus&&i.append("shippingStatus",e.shippingStatus),e.supplierId&&i.append("supplierId",e.supplierId),e.deliveryStatus&&i.append("deliveryStatus",e.deliveryStatus),null!==e.minPrice&&void 0!==e.minPrice&&i.append("minPrice",e.minPrice.toString()),null!==e.maxPrice&&void 0!==e.maxPrice&&i.append("maxPrice",e.maxPrice.toString()),e.search&&i.append("search",e.search),e.shopId&&i.append("shopId",e.shopId),e.warehouseId&&i.append("warehouseId",e.warehouseId),e.columnFilters&&i.append("columnFilters",e.columnFilters),e.sortBy&&i.append("sortBy",e.sortBy),e.sortOrder&&i.append("sortOrder",e.sortOrder),null!==e.specialOrder&&void 0!==e.specialOrder&&i.append("specialOrder",String(e.specialOrder)),(null===(a=e.costCodeIds)||void 0===a?void 0:a.length)&&e.costCodeIds.forEach(r=>{i.append("costCodeIds",r)}),e.includeCostCodes&&i.append("includeCostCodes","true"),e.includeItemDescriptions&&i.append("includeItemDescriptions","true"),(null===(o=e.purchaseOrderIds)||void 0===o?void 0:o.length)&&e.purchaseOrderIds.forEach(r=>{i.append("purchaseOrderIds",r)})}return u.ZP.get("/api/v1/purchasing/order/".concat(r,"?").concat(i.toString()))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},d=async(r,t,n)=>{let e=new URLSearchParams;e.append("aggregations",JSON.stringify(t)),n&&(n.poItemType&&e.append("poItemType",n.poItemType),n.projectId&&e.append("projectId",n.projectId),n.shippingStatus&&e.append("shippingStatus",n.shippingStatus),n.supplierId&&e.append("supplierId",n.supplierId),n.deliveryStatus&&e.append("deliveryStatus",n.deliveryStatus),n.search&&e.append("search",n.search),n.columnFilters&&e.append("columnFilters",n.columnFilters),n.warehouseId&&e.append("warehouseId",n.warehouseId));let a=await u.ZP.get("/api/v1/purchasing/order/".concat(r,"/aggregations?").concat(e.toString()));return null==a?void 0:a.data},h=r=>{try{let e=new URLSearchParams;if(r){var t,n;r.poItemType&&e.append("poItemType",r.poItemType),r.projectId&&e.append("projectId",r.projectId),r.shippingStatus&&e.append("shippingStatus",r.shippingStatus),r.supplierId&&e.append("supplierId",r.supplierId),r.deliveryStatus&&e.append("deliveryStatus",r.deliveryStatus),null!==r.minPrice&&void 0!==r.minPrice&&e.append("minPrice",r.minPrice.toString()),null!==r.maxPrice&&void 0!==r.maxPrice&&e.append("maxPrice",r.maxPrice.toString()),r.shopId&&e.append("shopId",r.shopId),r.warehouseId&&e.append("warehouseId",r.warehouseId),null!==r.specialOrder&&void 0!==r.specialOrder&&e.append("specialOrder",String(r.specialOrder)),(null===(t=r.costCodeIds)||void 0===t?void 0:t.length)&&r.costCodeIds.forEach(r=>{e.append("costCodeIds",r)}),(null===(n=r.purchaseOrderIds)||void 0===n?void 0:n.length)&&r.purchaseOrderIds.forEach(r=>{e.append("purchaseOrderId",r)})}let a=e.toString();return u.ZP.get("/api/v1/purchasing/order/counts".concat(a?"?".concat(a):""))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},m=(r,t)=>{try{return u.ZP.post("/api/v1/purchasing/order/".concat(r,"/delete?reason=").concat(t))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},y=(r,t)=>{let n=(null==t?void 0:t.trim())?"?reason=".concat(encodeURIComponent(t.trim())):"";return u.ZP.post("/api/v1/purchasing/order/".concat(r,"/unvoid").concat(n),void 0,void 0,{handledLocally:!0})},v=(r,t)=>{try{return u.ZP.post("/api/v1/purchasing/order/".concat(r,"/short-close"),{reason:t})}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},w=()=>{try{return u.ZP.get("/api/v1/purchasing/generatePONumber")}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},S=(r,t)=>{try{return u.ZP.post("/api/v1/open/po/".concat(r,"/ack"),t)}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},P=r=>{try{return u.ZP.get("/api/v1/purchasing/order/".concat(r))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},f=r=>{try{return u.ZP.get("/api/v1/purchaseOrders/".concat(r,"/gl-impact"))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},O=r=>{try{return u.ZP.get("/api/v1/purchasing/order/".concat(r,"/pdf-status"))}catch(r){return null}},A=r=>u.ZP.post("/api/v1/purchasing/order/".concat(r,"/pdf/start")),I=r=>{try{return u.ZP.get("/api/v1/open/po/".concat(r))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},L=(r,t)=>u.ZP.post("/api/v1/purchasing/orders/".concat(r),t),E=(r,t)=>{try{return u.ZP.post("/api/v1/purchasing/order/item/".concat(r,"/update"),t)}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},Z=r=>{try{return u.ZP.post("/api/v1/purchasing/order/item/".concat(r,"/delete"))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},R=(r,t)=>{try{return u.ZP.post("/api/v1/purchasing/orders/".concat(r,"/mail/resend?toEmails=").concat(t),{})}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},T=(r,t,n,e)=>{try{let a=new URLSearchParams;r&&a.set("tradeOrService",r),void 0!==t&&a.set("fullDetails",String(t)),n&&a.set("financeCompaniesOnly","true"),e&&e.length>0&&a.set("tags",e.join(","));let o=a.toString()?"?".concat(a.toString()):"";return u.ZP.get("/api/v1/purchasing/suppliers".concat(o))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},N=r=>u.ZP.post("/api/v1/purchasing/suppliers/".concat(r,"/delete"),{},void 0,{handledLocally:!0}),_=async r=>u.ZP.post("/api/v1/purchasing/receive",r,void 0,{handledLocally:!0});function C(r){var t,n;let e=(0,u.vu)(r);return"WRONG_WAREHOUSE_RECEIPT"!==e.code?null:{message:"string"==typeof e.message?e.message:void 0,homeWarehouse:null!==(t=e.homeWarehouse)&&void 0!==t?t:null,destinationWarehouse:null!==(n=e.destinationWarehouse)&&void 0!==n?n:null}}let U=r=>{try{return u.ZP.get("/api/v1/purchasing/receive/batch/signedUrl/upload?fileName=".concat(encodeURIComponent(r)))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},b=r=>{try{return u.ZP.get("/api/v1/purchasing/receive/batch/order/".concat(r))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},k=r=>{try{return u.ZP.get("/api/v1/purchasing/receive/batch/".concat(r))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},G=r=>{try{return u.ZP.post("/api/v1/purchasing/materials",r)}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},M=function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{return u.ZP.get("/api/v1/purchasing/materials?sectionId=".concat(r,"&retrieveProductOptions=").concat(t))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},D=(r,t,n,e)=>{try{let a=new URLSearchParams;r&&a.append("supplierSelected",r),t&&a.append("search",t),void 0!==n&&a.append("page",String(n)),void 0!==e&&a.append("pageSize",String(e));let o=a.toString();return u.ZP.get("/api/v1/purchasing/materials/dropdown".concat(o?"?".concat(o):""))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},W=()=>{try{return u.ZP.get("/api/v1/purchasing/material/count")}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},x=function(){let r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,e=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],i=arguments.length>6?arguments[6]:void 0;try{let c=new URLSearchParams;r&&c.append("includeCustomItems","true"),t&&c.append("supplierSelected",t),n&&c.append("search",n),void 0!==e&&c.append("page",String(e)),void 0!==a&&c.append("pageSize",String(a)),o&&c.append("includeInventoryCounts","true"),i&&c.append("familyId",i);let s=c.toString();return u.ZP.get("/api/v1/purchasing/materials/dropdown".concat(s?"?".concat(s):""))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},H=r=>{try{return u.ZP.get("/api/v1/purchasing/materials/".concat(r,"/form-details"))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},B=()=>{try{return u.ZP.get("/api/v1/purchasing/materials/family")}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},j=r=>{try{return u.ZP.get("/api/v1/purchasing/materials/".concat(r))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},V=r=>{try{return u.ZP.delete("/api/v1/purchasing/materials/".concat(r,"/delete"))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},K=r=>{try{return u.ZP.get("/api/v1/purchasing/materials/variants/".concat(r))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},q=(r,t)=>{try{return u.ZP.post("/api/v1/purchasing/materials/".concat(r,"/variants"),t)}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},F=()=>{try{return u.ZP.get("/api/v1/purchasing/products")}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},z=r=>{try{return u.ZP.post("/api/v1/products/family/".concat(r,"/delete"))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},Y=r=>{try{return u.ZP.post("/api/v1/purchasing/products/family",{name:r})}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},Q=()=>{try{return u.ZP.get("/api/v1/purchasing/productVariants")}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},X=r=>
1{if(!r||"new"===r)return null;try{return u.ZP.get("/api/v1/purchasing/productVariants/".concat(r))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},J=r=>{try{return u.ZP.get("/api/v1/purchasing/order/".concat(r,"/items"))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},$=r=>{try{return u.ZP.get("/api/v1/payables/purchase-order/".concat(r,"/import"))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rr=(r,t)=>{try{let n=new URLSearchParams;r&&n.append("search",r),t&&n.append("source",t);let e=n.toString();return u.ZP.get("/api/v1/purchasing/products/dropdown".concat(e?"?".concat(e):""))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rt=r=>{try{return u.ZP.get("/api/v1/purchasing/products/".concat(r,"/form-details"))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rn=()=>{try{return u.ZP.get("/api/v1/purchasing/categories")}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}};(e=o||(o={})).units="UNITS",e.pc="PIECE",e.pcs="PIECES",e.in="LENGTH_INCHES",e.feet="LENGTH_FEET",e.yards="LENGTH_YARD",e.miles="LENGTH_MILES",e.metre="LENGTH_METRE",e.oz="WEIGHT_OZ",e.pounds="WEIGHT_POUNDS",e.bags="BAGS",e.sq_feet="SQ_FEET",e.sq_meter="SQ_METER",e.linear_feet="LINEAR_FEET",e.boxes="BOXES",e.buckets="BUCKETS",e.gallons="GALLONS",e.cases="CASES",e.rolls="ROLLS",e.each="EACH",e.tin="TIN",e.set="SET",e.box="BOX",e.pack="PACK",e.panel="PANEL",e.linear_metre="LINEAR_METRE",e.sheets="SHEETS",e.hours="HOURS",e.days="DAYS",e.months="MONTHS",e.kms="KMS",e.cubic_metre="CUBIC_METRE",e.cubic_yard="CUBIC_YARD",e.pail="PAIL",e.board_feet="BOARD_FEET",e.boards="BOARDS",e.bricks="BRICKS",e.pair="PAIR",e.per_house_pkg="PER_HOUSE_PKG",e.pod="POD",e.pods="PODS",e.service="SERVICE",e.sq_yard="SQ_YARD",e.square="SQUARE",e.standard="STANDARD",e.sticks="STICKS",e.volume_milliliters="VOLUME_MILLILITERS",e.weekly="WEEKLY",e.weight_grams="WEIGHT_GRAMS",(a=i||(i={})).ENGINEER="ENGINEER",a.OPERATOR="OPERATOR",a.SUPERVISOR="SUPERVISOR",a.MANAGER="MANAGER",a.BOOKKEEPER="BOOKKEEPER",a.ACCOUNTANT="ACCOUNTANT",a.CEO="CEO",a.PRESIDENT="PRESIDENT",a.OWNER="OWNER",a.INVESTOR="INVESTOR",a.CONSULTANT="CONSULTANT",a.GENERAL_MANAGER="GENERAL_MANAGER",a.INVENTORY_MANAGER="INVENTORY_MANAGER",a.IT="IT",a.OPERATIONS_MANAGER="OPERATIONS_MANAGER",a.PRODUCTION_MANAGER="PRODUCTION_MANAGER";let re=()=>{try{return u.ZP.get("/api/v1/purchasing/stocktake")}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},ra=r=>{try{return u.ZP.post("/api/v1/stocktake/merge",{stockTakeNumbers:r})}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},ro=r=>{try{return u.ZP.get("/api/v1/quickbooks/connectUrl?redirectUrl=".concat(r))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}};function ri(){try{return u.ZP.get("/api/v1/quickbooks/resync")}catch(r){return null}}let rc=async(r,t,n,e)=>{let a=new URLSearchParams({code:r,realmId:t,redirectUri:n,state:e});return u.ZP.post("/api/v1/quickbooks/tokens?".concat(a.toString()))},ru=r=>{try{return u.ZP.get("/api/v1/xero/auth/url?redirectUri=".concat(r))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rs=async(r,t)=>{try{return u.ZP.post("/api/v1/xero/tokens?code=".concat(r,"&redirectUri=").concat(t))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rp=()=>{try{return u.ZP.get("/api/v1/xero/connection")}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rl=()=>{try{return u.ZP.post("/api/v1/xero/disconnect")}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rg=()=>{try{return u.ZP.get("/api/v1/quickbooks/categories")}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rd=()=>{try{return u.ZP.get("/api/v1/quickbooks/lines")}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rh=r=>{try{return u.ZP.get("/api/v1/purchasing/order/payment-terms".concat(r?"?supplierId=".concat(r):""))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rm=r=>{try{return u.ZP.post("/api/v1/purchasing/order/payment-terms",r)}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},ry=(r,t)=>{try{return u.ZP.post("/api/v1/purchasing/order/payment-terms/update/".concat(r),t)}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rv=()=>{try{return u.ZP.get("/api/v1/payables/select/purchase-orders")}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rw=async r=>{try{return await u.ZP.get("/api/v1/suppliers/tradeOrService/detail
1s?tradeOrService=".concat(r))}catch(r){return null}},rS=async r=>{try{return await u.ZP.put("/api/v1/purchasing/orders/item/".concat(r,"/status?status=SHIPPED"))}catch(r){return null}},rP=async r=>await u.ZP.put("/api/v1/purchasing/orders/item/".concat(r,"/status?status=PENDING")),rf=async()=>{try{return await u.ZP.get("/api/v1/purchasing/orders/config")}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rO=async r=>{try{return await u.ZP.post("/api/v1/purchasing/orders/config",r)}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rA=async r=>{try{return await u.ZP.post("/api/v1/purchasing/po/".concat(r,"/approve"))}catch(r){return null}},rI=async(r,t)=>{try{return await u.ZP.post("/api/v1/purchasing/po/".concat(r,"/reject"),{reason:t})}catch(r){return null}},rL=async r=>{try{return await u.ZP.post("/api/v1/purchasing/po/".concat(r,"/recall"))}catch(r){return null}},rE=async()=>{try{return await u.ZP.get("/users?roles=CARPENTER")}catch(r){return null}},rZ=async r=>{try{if(0===r.length)return[];let t=[];for(let n=0;n<r.length;n+=50)t.push(r.slice(n,n+50));let n=await Promise.all(t.map(r=>u.ZP.post("/api/v1/ai/classify-budget-category",{items:r}))),e=n.flatMap(r=>{var t;let n=(null==r?void 0:null===(t=r.data)||void 0===t?void 0:t.results)||(null==r?void 0:r.data)||[];return Array.isArray(n)?n:[]}),a=new Map(e.map(r=>[r.itemId,r]));return r.map(r=>a.get(r.id)).filter(Boolean)}catch(r){throw r}},rR=async(r,t)=>{try{return await u.ZP.post("/api/v1/purchasing/po/".concat(r,"/send-for-review"),{approvers:t})}catch(r){return null}},rT=async r=>{try{return await u.ZP.post("/api/v1/purchasing/po/".concat(r,"/approve"))}catch(r){return null}},rN=async(r,t)=>{try{return await u.ZP.post("/api/v1/purchasing/po/".concat(r,"/reject"),{reason:t})}catch(r){return null}},r_=async r=>{try{return await u.ZP.post("/api/v1/purchasing/po/".concat(r,"/direct-approve"))}catch(r){return null}},rC=(r,t)=>{try{return u.ZP.get("/api/v1/purchasing/order/".concat(r,"/files/preSignedUrl?filename=").concat(encodeURIComponent(t)))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rU=(r,t)=>{try{return u.ZP.post("/api/v1/purchasing/order/".concat(r,"/files"),t)}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rb=(r,t)=>{try{return u.ZP.delete("/api/v1/purchasing/order/".concat(r,"/files/").concat(t))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rk=(r,t)=>{try{return u.ZP.get("/api/v1/purchasing/order/".concat(r,"/files/").concat(t,"/download"))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rG=r=>{try{return u.ZP.get("/api/v1/payables/purchase-order/".concat(r,"/invoices"))}catch(r){return null}},rM=async()=>{try{return await u.ZP.get("/api/v1/purchasing/destinations")}catch(r){return null}},rD=async r=>{try{return await u.ZP.post("/api/v1/purchasing/destinations/preview",{destinationId:r})}catch(r){return null}},rW=async r=>{let{startDate:t,endDate:n}=r;try{return await u.ZP.post("/api/v1/purchasing/order/export",{startDate:t,endDate:n})}catch(r){return null}},rx=async r=>{try{return await u.ZP.get("/api/v1/purchasing/order/export/".concat(r))}catch(r){return null}},rH=r=>{try{return u.ZP.get("/api/v1/purchasing/receive/activity-log/".concat(r))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rB=r=>{try{return u.ZP.post("/api/v1/purchasing/receiving/items/bulk-adjust-received",r)}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rj=r=>u.ZP.post("/api/v1/purchasing/receiving/items/unreceivable-quantities",{purchaseOrderItemIds:r}),rV=(r,t)=>{try{return u.ZP.put("/api/v1/purchasing/receiving/items/".concat(r,"/adjust-received"),t)}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rK=async r=>{try{let t=await u.ZP.get("/api/v1/invoices/purchase-orders/".concat(r,"/financial-summary"));return null==t?void 0:t.data}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rq=r=>{try{let t=new URLSearchParams;(null==r?void 0:r.supplierId)&&t.append("supplierId",r.supplierId),(null==r?void 0:r.receivedOnly)&&t.append("receivedOnly","true");let n=t.toString();return u.ZP.get("/api/v1/purchasing/order/dropdown".concat(n?"?".concat(n):""))}catch(r){c.Am.error("Oops, Something went wrong! Let's try again.")}},rF=r=>{try{return u.ZP.get("/api/v1/purchase-orders/".concat(r,"/prepayments"))}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rz=(r,t)=>{try{return u.ZP.post("/api/v1/purchase-orders/".concat(r,"/prepayments"),t)}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rY=(r,t,n)=>{try{return u.ZP.delete("/api/v1/purchase-orders/".concat(r,"/prepayments/").concat(t),{reason:n},{handledLocally:!0})}catch(r){return c.Am.error("Oops, Something went wrong! Let's try again."),null}},rQ=async(r,t)=>{let n=new URLSearchParams({variantId:r});(null==t?void 0:t.supplierId)&&n.append("supplierId",t.supplierId),(null==t?void 0:t.months)!==void 0&&n.append("months",String(t.months));let e=await u.ZP.get("/api/v1/purchasing/price-history?".concat(n.toString()));return null==e?void 0:e.data},rX=async(r,t)=>{let n=await u.ZP.post("/api/v1/purchasing/destination/set",{purchaseOrderId:r,warehouseId:t},void 0,{handledLocally:!0});return null==n?void 0:n.data},rJ=async(r,t)=>{let n=await u.ZP.post("/api/v1/purchasing/order/".concat(r,"/notes"),t);return null==n?void 0:n.data},r$=async(r,t)=>{await u.ZP.delete("/api/v1/purchasing/order/".concat(r,"/notes/").concat(t))}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.