var d=(c,i,r)=>new Promise((m,p)=>{var e=t=>{try{o(r.next(t))}catch(s){p(s)}},a=t=>{try{o(r.throw(t))}catch(s){p(s)}},o=t=>t.done?m(t.value):Promise.resolve(t.value).then(e,a);o((r=r.apply(c,i)).next())});import{b6 as l}from"./bootstrap-Bqxdt4iG.js";import{_ as v}from"./truck-list.vue_vue_type_script_setup_true_lang-cKhk7Dks.js";import{a1 as _,L as n,V as k,ai as u,aj as f,ak as w,an as h,a9 as x}from"../jse/index-index-BUJ_4tQs.js";import{u as C}from"./use-drawer-CLDmRz16.js";import"./vxe-table-D0Ytu0oZ.js";import"./upload-CodF4Wan.js";import"./index-BsjhuR3T.js";import"./Trigger-CftQioxV.js";import"./ResizeObserver.es-CDE7jhPe.js";import"./index-BZQGaz5w.js";import"./hasIn-DSO9yTkt.js";import"./isSymbol-sd7i9LG0.js";import"./isPlainObject-DJcwgk9A.js";import"./responsiveObserve-EPi7c3G5.js";import"./useFlexGapSupport-D8tKQOva.js";import"./_arrayIncludes-B8uzE354.js";import"./debounce-CYGc35EV.js";import"./index-BF1oQ5ik.js";import"./colors-CU1bIFfE.js";import"./roundedArrow-EYTrNAJt.js";import"./collapseMotion-DHKv0-UU.js";import"./FormItemContext-DjC4AFm9.js";import"./EyeOutlined-CSPqLYav.js";import"./CheckOutlined-CyOADmg7.js";import"./useRefs-BqD5DJTx.js";import"./useMergedState-mzgb8Um4.js";import"./index-CTgUvPXx.js";import"./css-BPcmMxJM.js";import"./LeftOutlined-pMa7biV7.js";import"./index-axp3BSAN.js";import"./useRoleAccess-rNIDgdat.js";import"./data-refresh-BZ1_-6mk.js";import"./tms-trucks-BDMVh6TZ.js";import"./tms-trucks-U21Gru7Z.js";import"./tms-vendors-BcN7IhOD.js";import"./tms-vendors-CoNy1oWa.js";import"./delete-actions-BYtiwUS9.js";import"./announcements-8EaxYlGv.js";import"./announcements-BeK93bSh.js";import"./custom-links-BriKAUZK.js";import"./customers-CYPE-oGV.js";import"./inventories-FA5wVZqN.js";import"./inventory-details-CyykCtw9.js";import"./packing-orders-F5ifB4Cx.js";import"./packing-orders-B65yyscU.js";import"./stock-outs-YMFu1xyT.js";import"./stock-outs-C0w9Kwsh.js";import"./storage-leases-DxTjNUp2.js";import"./storage-leases-DIh1SO1g.js";import"./tms-drivers-CG8odbgf.js";import"./uoms-C8j_QMVZ.js";import"./users-CtrZlEEf.js";import"./warehouses-BnkLPhlE.js";import"./index-nmF6dqm7.js";import"./format-DSCuLcwt.js";import"./vendor-detail-drawer.vue_vue_type_script_setup_true_lang-CVUNho3S.js";import"./vendor-detail-CJ_ORCEI.js";import"./vendor-edit-drawer.vue_vue_type_script_setup_true_lang-CVSORDCk.js";import"./useEditDrawer-JG4PTzvo.js";import"./useDrawerCloseConfirm-Q-yISXm7.js";import"./vendor-form.vue_vue_type_script_setup_true_lang-ZJ2h3wba.js";import"./useEntityForm-CMwp7TbN.js";import"./index-BfzlM1cI.js";import"./statusUtils-BYtfCLmZ.js";import"./BaseInput-hWv8kcd0.js";import"./index-BgJpmtO-.js";import"./SearchOutlined-D1HVVwei.js";import"./index-BNdxtbnh.js";import"./index-DL4Zx5Zk.js";import"./index-D0CahMPl.js";import"./index-0OckuOQU.js";import"./index-Dz5KNl-L.js";import"./index-B3CrEHyt.js";import"./shallowequal-DuLPtPXX.js";import"./Overflow-CeWBpt44.js";import"./slide-DUltH_8g.js";import"./Dropdown-CXIqLMHd.js";import"./isMobile-8sZ0LT6r.js";import"./index--N1ITuK7.js";import"./index-YAgfKi3d.js";import"./use-tabs-C7aNnvnZ.js";import"./index-BdDjlFUO.js";import"./index-CtcKC-FY.js";import"./index-BZFH0uEW.js";import"./DownOutlined-Dq3ZoN1L.js";import"./move-DY-9c5GY.js";import"./index-DUu2QB5i.js";import"./index-32EZ6Zls.js";import"./index-BwAAXtR3.js";import"./Checkbox-DJCXJeWP.js";import"./index-WBiU7Ubm.js";import"./operationUnit-vCu2co3e.js";import"./x-CmzO4AZ3.js";import"./Separator.vue_vue_type_script_setup_true_lang-V0MBJaAb.js";import"./truck-create-drawer.vue_vue_type_script_setup_true_lang-CmA-SduW.js";import"./useCreateDrawer-JEzOVO6Z.js";import"./truck-form.vue_vue_type_script_setup_true_lang-XMOJEhOv.js";import"./vendor-create-drawer.vue_vue_type_script_setup_true_lang-Bphk-CAG.js";import"./truck-edit-drawer.vue_vue_type_script_setup_true_lang-ByTbLqvT.js";const fr=_({__name:"truck-list-drawer",setup(c){const i=n(""),r=n(""),m=n(),[p,e]=C({title:l("page.tms.vendors.actions.showTrucks"),placement:"top",footer:!1,onOpenChange:a=>d(null,null,function*(){var o;if(a){const t=e.getData();t&&(i.value=t.vendorId,r.value=t.vendorName||"",e.setState({title:`${r.value} - ${l("page.tms.vendors.actions.showTrucks")}`}),yield k(),(o=m.value)==null||o.query())}}),onClosed:()=>{i.value="",r.value=""}});return(a,o)=>(f(),u(x(p),{class:"h-[500px]"},{default:w(()=>[i.value?(f(),u(v,{key:0,ref_key:"listRef",ref:m,"vendor-id":i.value,embedded:""},null,8,["vendor-id"])):h("",!0)]),_:1}))}});export{fr as default};
