1import{aR as et,aS as ot,aT as nt,aU as at,aV as st,aW as rt,aX as it,aY as w,aZ as f,a_ as s,a$ as k,b0 as l,b1 as p,b2 as e,b3 as L,b4 as z,b5 as x,b6 as u,b7 as ut,b8 as lt,b9 as ct,ba as dt,bb as _t,bc as d,bd as ft,be as pt}from"./DusadLuI.js";import{u as ht,_ as mt,a as yt,b as gt}from"./DZ3SUxHN.js";import{_ as bt}from"./B4qrO0qA.js";import"./o0qEVZET.js";import"./lPYntF-t.js";/* empty css */import"./xn7Rc3w9.js";import"./CN-OaDXb.js";import"./BvovIy2u.js";import"./MGauDH72.js";import"./BtsmfKTi.js";import"./DVqqdya_.js";import"./lirYfqjJ.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};r.SENTRY_RELEASE={id:"ed3b7066d750926bf41c003e0cec31acf3ac8236"};var i=new r.Error().stack;i&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[i]="7d734276-fb57-43ff-883f-dcd97f737a4d",r._sentryDebugIdIdentifier="sentry-dbid-7d734276-fb57-43ff-883f-dcd97f737a4d")}catch{}})();const vt={class:"authority-info-org__header"},It={class:"authority-info-org__title-row"},wt={key:0,class:"authority-info-org__toast"},kt={key:3,class:"authority-info-org__load-more"},xt=et({__name:"no-org",async setup(r){let i,h;const m=ot(),D=nt(),A=at(),{t:C}=st(),R=rt(),q=x(()=>`${R.value}manage/authorityInfo/tiles/schoolable/{z}/{x}/{y}.pbf`),N=x(()=>{const{west:t,south:o,east:a,north:n}=m.query;if(t&&o&&a&&n)return{west:parseFloat(t),south:parseFloat(o),east:parseFloat(a),north:parseFloat(n)}});let y=null;function V(t){y&&clearTimeout(y),y=setTimeout(()=>{D.replace({query:{...m.query,west:t.west.toFixed(6),south:t.south.toFixed(6),east:t.east.toFixed(6),north:t.north.toFixed(6)}})},500)}const U=x(()=>{const{west:t,south:o,east:a,north:n}=m.query;if(t&&o&&a&&n)return{swLon:parseFloat(t),swLat:parseFloat(o),neLon:parseFloat(a),neLat:parseFloat(n)}}),g=u(0),c=u([]),b=u(!1),_=u(!1),{error:v,status:P,refresh:M}=([i,h]=it(async()=>_t("authorityInfo-no-org",async()=>{const t=await A.manage.getAuthorityInfo({query:{page:0,size:50}});return c.value=t.authorityInfos.filter(o=>!o.organizationSlug),b.value=t.lastPage,g.value=0,t})),i=await i,h(),i);async function O(){_.value=!0;try{const t=g.value+1,o=await A.manage.getAuthorityInfo({query:{page:t,size:50}}),a=o.authorityInfos.filter(n=>!n.organizationSlug);c.value=[...c.value,...a],b.value=o.lastPage,g.value=t}finally{_.value=!1}}const F=u(null),S=u(null),T=u(null),{successMessage:B,showSuccess:E}=ht();function I(){M(),T.value?.refreshTiles()}function Y(){I(),E(C("authorityInfo.saveSuccess"))}function W(){I(),E(C("authorityInfo.deleteSuccess"))}function $(t){F.value?.show(t)}function X(){S.value?.show()}function Z(){I()}return(t,o)=>{const a=ut,n=ft,j=yt,G=lt,H=ct,J=mt,K=dt,Q=gt,tt=bt;return d(),w("div",null,[f("div",vt,[s(a,{to:"/admin/authorityinfo/",class:"authority-info-org__back"},{default:k(()=>[p(" â "+l(t.$t("authorityInfo.backToList")),1)]),_:1}),f("div",It,[f("h1",null,l(t.$t("authorityInfo.pageTitle"))+" â "+l(t.$t("authorityInfo.withoutOrganization")),1),f("button",{class:"authority-info-org__create-btn",onClick:X},[s(n,{name:"tabler:plus"}),p(" "+l(t.$t("authorityInfo.create")),1)])])]),s(G,null,{default:k(()=>
1[s(j,{ref_key:"mapRef",ref:T,"tile-url":e(q),"edit-base-path":"/admin/authorityinfo","initial-bounds":e(N),onBoundsChange:V,onEdit:$},null,8,["tile-url","initial-bounds"])]),_:1}),e(B)?(d(),w("div",wt,[s(n,{name:"tabler:check"}),p(" "+l(e(B)),1)])):L("",!0),e(v)?(d(),z(H,{key:1,error:e(v),"on-retry":()=>e(M)()},null,8,["error","on-retry"])):(d(),z(J,{key:2,items:e(c),loading:e(P)==="pending","show-organization":!1,onEdit:$},null,8,["items","loading"])),!e(v)&&!e(b)&&e(c).length?(d(),w("div",kt,[s(K,{disabled:e(_),onClick:O},{default:k(()=>[p(l(e(_)?"â¦":t.$t("authorityInfo.loadMore")),1)]),_:1},8,["disabled"])])):L("",!0),s(Q,{ref_key:"editModal",ref:F,onSaved:Y,onDeleted:W},null,512),s(tt,{ref_key:"createModal",ref:S,"initial-bounds":e(U),onCreated:Z},null,8,["initial-bounds"])])}}}),qt=pt(xt,[["__scopeId","data-v-a56f2aa0"]]);export{qt 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.