import{u as l,a as o}from"./app-D7zH3Nl5.js";const m=()=>{const t="assets?fields=id,xid,name,serial_number,purchase_date,price,image,image_url,description,status,asset_user_id,x_asset_user_id,location_id,x_location_id,location{id,xid,name}user_id,x_user_id,user{id,xid,name,profile_image,profile_image_url},asset_type_id,x_asset_type_id,assetType{id,xid,name},return{id,xid,lent_to,x_lent_to,lend_date,return_date,notes,lent_by,x_lent_by,return_by,x_return_by,actual_return_date},assetUser{id,xid,lent_to,x_lent_to,lend_date,return_date,notes,lent_by,x_lent_by,return_by,x_return_by,actual_return_date},assetUser:user{id,xid,name,profile_image,profile_image_url},assetUser:returnBy{id,xid,name,profile_image,profile_image_url},assetUser:lentBy{id,xid,name,profile_image,profile_image_url},account_id,x_account_id,account{id,xid,account_number},brokenBy{id,xid,name},user:designation{id,xid,name},user:location{id,xid,name}",a="assets",n=["location_id","user_id","asset_type_id","asset_user_id","account_id"],{t:e}=l(),{dayjs:i}=o(),d={name:"",serial_number:"",location_id:void 0,image:void 0,image_url:void 0,description:"",status:"working",asset_type_id:void 0,account_id:void 0,purchase_date:i().utc().format("YYYY-MM-DDTHH:mm:ssZ"),price:"0",broken_by:void 0},s=[{title:e("user.name"),dataIndex:"name"},{title:e("asset.lend_date"),dataIndex:"lend_date"},{title:e("asset.lend_by"),dataIndex:"lend_by"},{title:e("asset.return_date"),dataIndex:"return_date"},{title:e("asset.return_by"),dataIndex:"return_by"},{title:e("asset.actual_return_date"),dataIndex:"actual_return_date"},{title:e("common.action"),dataIndex:"action"}],_=[{title:e("asset.name"),dataIndex:"name"},{title:e("asset.asset_type_id"),dataIndex:"asset_type_id"},{title:e("asset.image"),dataIndex:"image"},{title:e("asset.lent_to"),dataIndex:"user_id"},{title:e("asset.location_id"),dataIndex:"location"},{title:e("asset.serial_number"),dataIndex:"serial_number"},{title:e("asset.status"),dataIndex:"status"},{title:e("common.action"),dataIndex:"action"}],r=[{key:"name",value:e("asset.name")}];return{url:t,addEditUrl:a,initData:d,columns:_,filterableColumns:r,hashableColumns:n,recordViewColumns:s}};export{m as f};
