1import{_ as G}from"./VesselOperatorsTable.vue_vue_type_script_setup_true_lang-CFNceVcw.js";import{e as K,s as T}from"./vessel-operators-kT9su7Ry.js";import{d as U,B as F,i as H,f as M,u as $,v as z,D as O,K as L,j as r,P as Q,x as q,aP as J,G as W,H as f,I as v,aQ as X,aR as Y,r as S,y as Z,o as s,c as i,a,t as ee,b as e,e as b,N as te,w as V,z as _,h as A,s as l,F as oe,ba as se,bb as ae}from"./index-BDTeKYVw.js";import{u as le}from"./vue.f36acd1f-V64dK-QL.js";import"./ReferenceDataApi-DEX_tJD9.js";const ne={key:0,class:"flex page-header table"},re={class:"flex flex-wrap flex-row justify-content-center md:justify-content-between p-0 col-12"},ie={class:"col-12 md:col-6"},ce={class:"col-12 md:col-6 flex justify-content-center md:justify-content-end"},pe={key:1,class:"flex page-content"},ue={class:"col-12 loading"},de={key:0,class:"p-export-loading-overlay",style:{"align-items":"flex-start !important"}},ye=U({__name:"VesselOperatorsPage",setup(me){const B={en:{vesselOperator:K,topbar:se},sk:{vesselOperator:T,topbar:ae}},{can:c}=F(),g=H(),j=M(),{locale:P,t}=$({useScope:"global",messages:B}),y=z(),k=O("keepAlive",[]),R=O("updateKeepAlive"),x=L().type.__name,p=r(null),u=r(!1),h=r(!1),n=r(!1);le({title:()=>t("vesselOperator.page.main.title")+" - "+t("topbar.topmenu.referencneData")+" | SlovRIS"}),Q(w),q(()=>{y.removeAllGroups(),k.length!==1&&k[0]!==x&&R([x])}),J(w),W(()=>{y.removeAllGroups()});async function w(){if(c(f.Read,v.VesselOperator))n.value=!0;else{n.value=!1;const C=X(j.fullPath);await g.replace({name:"reference-error-403"}),await Y(C,P.value)}}function I(){p.value.deleteSelectedVesselOperators()}function N(){u.value=!0,p.value.exportData(),u.value=!1}return(C,o)=>{const d=S("Button"),E=S("Toolbar"),m=Z("tooltip");return s(),i(oe,null,[n.value?(s(),i("div",ne,[a("div",re,[a("div",ie,[a("h1",null,ee(e(t)("vesselOperator.page.main.title")),1)]),a("div",ce,[b(E,null,te({_:2},[h.value?{name:"end",fn:V(()=>[e(c)(e(f).Delete,e(v).VesselOperator)?_((s(),A(d,{key:0,label:e(t)("global.delete"),class:"destructive",icon:"pi pi-trash",onClick:I},null,8,["label"])),[[m,e(t)("global.tooltip.delete"),void 0,{bottom:!0}]]):l("",!0)]),key:"1"}:{name:"start",fn:V(()=>[e(c)(e(f).Create,e(v).VesselOperator)?_((s(),A(d,{key:0,label:e(t)("global.create"),icon:"pi pi-plus",onClick:o[0]||(o[0]=D=>e(g).push({name:"operatori-new"}))},null,8,["label"])),[[m,e(t)("global.tooltip.create"),void 0,{bottom:!0}]]):l("",!0),_(b(d,{label:e(t)("global.file.download",["CSV"]),class:"secondary",icon:"pi pi-file-excel",onClick:N},null,8,["label"]),[[m,e(t)("global.tooltip.download",["CSV"]),void 0,{bottom:!0}]])]),key:"0"}]),1024)])])])):l("",!0),n.value?(s(),i("div",pe,[a("div",ue,[u.value?(s(),i("div",de,o[2]||(o[2]=[a("i",{class:"p-export-loading-icon pi-spin pi pi-spinner",style:{padding:"25rem"}},null,-1)]))):l("",!0),b(G,{ref_key:"table",ref:p,"is-main-component":"",onIsSelected:o[1]||(o[1]=D=>h.value=D)},null,512)])])):l("",!0)],64)}}});export{ye as default};
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.