PageSourceSearch

https://utaitedb.net/assets/VenueViewVersion-y5Ab9fws.js

js utaitedb.net collected 2026-09-24 18:56:32 UTC 4,533 bytes, 1 lines download raw bytes

1import{R as v,a as d,j as i,u as g,t as R,am as k,F as f,s as C,ae as b,i as N,d as c,C as I,ci as w,ao as u,E as A}from"./index-gMe9H88Y.js";import{B as V,L as T}from"./Layout-DlAsL32I.js";import{D,T as E,b as y,N as L,a as l,W as P,c as S,H as G,A as _,R as $}from"./ArchivedEntryStore-D2GwPIji.js";import{u as j}from"./useRegionNames-DhhjBNOm.js";import{u as x}from"./useChangedFieldNames-gf-97xJq.js";import{J as h}from"./JQueryUIButton-_V0TZG2a.js";import{v as p}from"./VenueRepository-ILhvmCUk.js";import{u as B}from"./useLocationStateHandler-BfG6-O6-.js";import"./ContentLanguageSelection-iqORDso9.js";import"./UrlHelper-BVd1y15x.js";import"./UniversalTimeLabel-B70iSPzk.js";import"./useReasonNames-BZ5Vff-k.js";import"./UserIconLink_UserForApiContract-CUobDPmk.js";import"./EntryToolTip-BigGEChL.js";import"./QTipToolTip-BpO7xCMj.js";import"./useWillUnmount-DtH49aY0.js";import"./useEventCallback-Bh-wTfTs.js";import"./Markdown-C9rHC8pJ.js";import"./EventCategory-Oz7AF5r9.js";import"./UserLink-CczWM7cf.js";import"./ui-DbMe5zwn.js";import"./JQueryUIDialog-BAFRlDw4.js";import"./ReportEntryStore-BMjyPQ0U.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};e.__faroBundleId_vocadb_frontend="1774128384054d7495f5124"}catch{}})();const F=v.memo(({comparedVenues:e})=>{const n=j();return d("div",{className:"well well-transparent archived-entry-contents",children:[i("h4",{children:"Content"}),i("table",{className:"table table-bordered",children:d("tbody",{children:[i(D,{name:"Id",val:e.firstData.id}),i(E,{comparedVersions:e,valGetter:r=>r.translatedName}),i(y,{name:"Names",comparedVersions:e,valGetter:r=>{var o;return((o=r.names)==null?void 0:o.map((t,a)=>i(L,{name:t},a)))??[]}}),i(l,{name:"Description",comparedVersions:e,valGetter:r=>r.description}),i(l,{name:"Coordinates",comparedVersions:e,valGetter:r=>r.coordinates.formatted}),i(l,{name:"Country/Region",comparedVersions:e,valGetter:r=>n.of(r.addressCountryCode)}),i(l,{name:"Address",comparedVersions:e,valGetter:r=>r.address}),i(y,{name:"External links",comparedVersions:e,valGetter:r=>{var o;return((o=r.webLinks)==null?void 0:o.map((t,a)=>i(P,{link:t},a)))??[]}})]})})]})}),H=k(({contract:e,archivedEntryStore:n})=>{const r=C(),{t:o}=b(["ViewRes"]),t=`Revision ${e.archivedVersion.version} for ${e.name}`,a=x();return B(n),d(T,{pageTitle:t,ready:!0,title:t,parents:d(f,{children:[i(V.Item,{linkAs:u,linkProps:{to:"/Venue"},divider:!0,children:o("ViewRes:Shared.Venues")}),i(V.Item,{linkAs:u,linkProps:{to:A.details(c.Venue,e.venue.id)},divider:!0,children:e.venue.name}),i(V.Item,{linkAs:u,linkProps:{to:`/Venue/Versions/${e.venue.id}`},children:"Revisions"})]}),toolbar:d(f,{children:[i(h,{as:I,href:"#",onClick:n.reportStore.show,icons:{primary:"ui-icon-alert"},children:o("ViewRes:EntryDetails.ReportAnError")})," ",r.canViewHiddenRevisions&&(e.archivedVersion.hidden?i(h,{as:"a",onClick:async s=>{if(window.confirm(o("ViewRes:ViewVersion.ConfirmUnhide"))){const m=await w.getToken();await p.updateVersionVisibility(m,{archivedVersionId:e.archivedVersion.id,hidden:!1}),window.location.reload()}},icons:{primary:"ui-icon-unlocked"},children:o("ViewRes:ViewVersion.UnhideVersion")}):i(h,{as:"a",onClick:async s=>{if(window.confirm(o("ViewRes:ViewVersion.ConfirmHide"))){const m=await w.getToken();await p.updateVersionVisibility(m,{archivedVersionId:e.archivedVersion.id,hidden:!0}),window.location.reload()}},icons:{primary:"ui-icon-locked"},children:o("ViewRes:ViewVersion.HideVersion")}))]}),children:[e.archivedVersion.hidden&&i(G,{}),e.comparableVersions.length>0&&d("form",{className:"form form-inline",children:["Compare to:"," ",d("select",{className:"input-xlarge",value:n.comparedVersionId,onChange:s=>N(()=>{n.comparedVersionId=s.target.value?Number(s.target.value):void 0}),children:[i("option",{value:""}),e.comparableVersions.map(s=>i("option",{value:s.id,children:`${s.version} (${s.changedFields.map(m=>a(c.Venue,m)).join(", ")} by ${s.agentName})`},s.id))]})]}),i(_,{version:e.archivedVersion,compareTo:e.comparedVersion,entryType:c.Venue}),i(F,{comparedVenues:e.versions}),i($,{reportEntryStore:n.reportStore})]})}),pe=()=>{const{id:e}=g(),[n]=R(),r=n.get("comparedVersionId"),[o,t]=v.useState();return v.useEffect(()=>
1{p.getVersionDetails({id:Number(e),comparedVersionId:r?Number(r):void 0}).then(a=>t({contract:a,archivedEntryStore:new S(a.venue.id,a.archivedVersion.version,p)}))},[e,r]),o?i(H,{contract:o.contract,archivedEntryStore:o.archivedEntryStore}):i(f,{})};export{pe 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.