PageSourceSearch

https://globaltourismforum.org/assets/edit-D6nviY77.js

js globaltourismforum.org collected 2026-09-26 00:48:01 UTC 5,774 bytes, 1 lines download raw bytes

1import{p as x,r as f,q as g,j as t}from"./app-Brhd2feF.js";import{A as j}from"./admin-layout-C5Z4UBYI.js";import{S as v}from"./seo-head-C6Kt0xzi.js";import{E as S}from"./editor-screen-CLwLas4G.js";import{I as b,c as D}from"./image-dropzone-CT5rGPk3.js";import{I as p}from"./input-CRT5lgj6.js";import{L as I}from"./label-GPxnH6il.js";import{T}from"./textarea-D1DrmrUT.js";import{S as y,a as w,b as N,c as C,d as u}from"./select-CYCLDmKs.js";import{s as E}from"./slugify-BZwF0NQI.js";import"./button-Bfm8mE2G.js";import"./index-BHo8vIbS.js";import"./users-BAm5h6Y5.js";import"./video-D5mvhZeq.js";import"./file-text-DX8ujC5T.js";import"./calendar-days-DTr4algf.js";import"./globe-DNoLe35J.js";import"./shield-check-IqNr84R9.js";import"./mail-BGvYXT_V.js";import"./block-renderer-DkoirUEC.js";import"./references-C7GzmPXl.js";import"./field-3OgTzyEJ.js";import"./rich-text-DAWsuEPy.js";import"./chevron-left-Cepxs5yC.js";import"./rich_text_extensions-Br3XHU-V.js";import"./index-CFVuTSH7.js";import"./index-Vcq4gwWv.js";import"./vimeo-JWfi6W5V.js";import"./map-pin-q94vP-Lb.js";import"./play-D4_fc6YV.js";import"./person-card-txTfc3GI.js";import"./promo-banner-wide-BHjznsti.js";import"./minus-CBKq_oNA.js";import"./vimeo-embed-DF7r6-tt.js";import"./countries-De9aYeut.js";import"./speaker_application-CzPfXM-f.js";import"./checkbox-B6AUUWz_.js";import"./index-BAoSUbJw.js";import"./turnstile-Biq3UG6H.js";import"./circle-check-BkMhJC-A.js";import"./calendar-clock-DmKwOAL_.js";import"./quote-C_sAQhbD.js";import"./image-CV4F52Y0.js";import"./text-align-start-PaJj6OMy.js";import"./ids-B5-Te-Qr.js";import"./dialog-BND_CFED.js";import"./plus--Xd9Plds.js";import"./arrow-up-CYVmxAfD.js";import"./copy-DMbdSDoI.js";import"./eye-off-1jX_hvle.js";import"./eye-DF04krkg.js";import"./trash-2-C17VOgjA.js";import"./upload-BZ8Gr7-4.js";import"./rich-text-field-BbG4XMJ5.js";import"./editor_toolbar-QqSu4onT.js";import"./popover-BtE8pBc2.js";import"./list-ordered-CNUgoiv1.js";import"./film-DhgCXe2Z.js";import"./sortable.esm-fRfDjfU1.js";import"./modifiers.esm-DrsG2iN1.js";import"./picker-dialog-B81_QNZv.js";import"./link-2-ICxbOalc.js";import"./video_lookup-Cxowj6hw.js";import"./switch-EYvG7STq.js";import"./datetime-picker-BrOmYDhV.js";import"./calendar_range-CpiElQYv.js";import"./calendar-Cr455DCk.js";import"./rotate-ccw-DNcm9wBD.js";function Jt({page:r,revisions:a,references:l}){const{errors:n}=x(),[d,c]=f.useState(null),e=g({title:r.title,path:r.path,status:r.status,seoTitle:r.seoTitle??"",seoDescription:r.seoDescription??"",seoImage:r.seoImage??""}),h=async s=>{let m;try{m=(await D(d,{scope:"page",ownerId:r.id,currentValue:e.data.seoImage||null})).url}catch(i){window.alert(i instanceof Error?i.message:"The image could not be uploaded.");return}e.setData("seoImage",m??""),c(null),e.transform(i=>({...i,content:s,seoImage:m,seoTitle:i.seoTitle||null,seoDescription:i.seoDescription||null})),e.put(`/admin/pages/${r.id}`,{preserveScroll:!0,preserveState:!0})};return t.jsxs(j,{fullBleed:!0,children:[t.jsx(v,{noIndex:!0,title:`${r.title} — Pages`}),t.jsx(S,{address:`/${r.path}`,backHref:"/admin/pages",contentToken:r.updatedAt,initialContent:r.content,liveHref:r.status==="published"?`/${r.path}`:null,onSave:h,ownerId:r.id,initialReferences:l,revisions:a,saving:e.processing,settings:t.jsxs(t.Fragment,{children:[t.jsx(o,{error:n.title,label:"Title",children:t.jsx(p,{onChange:s=>e.setData("title",s.target.value),value:e.data.title})}),t.jsxs(o,{error:n.path,help:"Lowercase words joined by hyphens. Use a slash for a page under another, like about/secretariat.",label:"Address",children:[t.jsx(p,{onBlur:s=>e.setData("path",A(s.target.value)),onChange:s=>e.setData("path",s.target.value),value:e.data.path}),t.jsxs("p",{className:"mt-1.5 truncate font-mono text-xs text-muted-foreground",children:["/",e.data.path]})]}),t.jsxs(o,{label:"Status",children:[t.jsxs(y,{onValueChange:s=>e.setData("status",s),value:e.data.status,children:[t.jsx(w,{children:t.jsx(N,{})}),t.jsxs(C,{children:[t.jsx(u,{value:"draft",children:"Draft"}),t.jsx(u,{value:"published",children:"Published"})]})]}),t.jsx("p",{className:"mt-1.5 text-xs text-muted-foreground",children:e.data.status==="published"?"Live and reachable at its address.":"Hidden from the public site until published."})]}),t.jsxs("div",{className:"border-t pt-5",children:[t.jsx("h3",{className:"text-[0.7rem] font-semibold uppercase tracking-wider text-muted-foreground",children:"Search and s
1ocial"}),t.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"Optional. Falls back to the page title and the site defaults."}),t.jsxs("div",{className:"mt-4 space-y-4",children:[t.jsx(o,{label:"SEO title",children:t.jsx(p,{onChange:s=>e.setData("seoTitle",s.target.value),placeholder:e.data.title,value:e.data.seoTitle})}),t.jsx(o,{label:"SEO description",children:t.jsx(T,{onChange:s=>e.setData("seoDescription",s.target.value),placeholder:"A one-sentence summary for search results and social cards.",rows:3,value:e.data.seoDescription})}),t.jsx(o,{label:"Social image",children:t.jsx(b,{aspect:"16 / 9",onStagedChange:c,ownerId:r.id,scope:"page",staged:d,value:e.data.seoImage||null})})]})]})]}),settingsDirty:e.isDirty,status:e.data.status,surface:"page",title:e.data.title,urls:{restoreRevision:s=>`/admin/pages/${r.id}/revisions/${s}/restore`}})]})}function o({label:r,help:a,error:l,children:n}){return t.jsxs("div",{children:[t.jsx(I,{className:"text-[0.8rem] font-medium",children:r}),t.jsx("div",{className:"mt-1.5",children:n}),a?t.jsx("p",{className:"mt-1.5 text-xs leading-snug text-muted-foreground",children:a}):null,l?t.jsx("p",{className:"mt-1.5 text-xs text-destructive",children:l}):null]})}function A(r){return r.split("/").map(a=>E(a)).filter(Boolean).join("/")}export{Jt 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.