PageSourceSearch

https://casolenteast.org.uk/build/assets/PageFeedback-BaJF5QLA.js

js casolenteast.org.uk collected 2026-10-09 23:13:42 UTC 3,291 bytes, 1 lines download raw bytes

1import{A as e,Ct as t,D as n,E as r,K as i,Ot as a,b as o,gt as s,h as c,j as l,k as u,o as d,st as f,w as p}from"./dist-uWkWGKUL.js";import{n as m,t as h}from"./thumbs-up-DT-aTgLE.js";var g={class:`mx-auto max-w-xl rounded-2xl border border-[var(--site-border,#A6BCD1)]/60 bg-[var(--site-tint,#D9E4ed)]/30 px-6 py-6 text-center dark:border-[var(--site-dark-border,#364B62)] dark:bg-[var(--site-dark-hover,#1B2E42)]/40`},_={key:0,class:`font-display text-lg font-semibold text-[var(--site-primary-text,#004B88)] dark:text-[var(--site-dark-link,#8FBBDF)]`},v={class:`font-display text-lg font-semibold text-[var(--site-primary-text,#004B88)] dark:text-[var(--site-dark-link,#8FBBDF)]`},y={key:0,class:`mt-4 flex items-center justify-center gap-3`},b={key:1,class:`mt-4 space-y-3 text-left`},x={class:`text-sm text-muted-foreground`},S={class:`flex justify-center gap-2`},C=[`disabled`],w=[`disabled`],T=l({__name:`PageFeedback`,props:{block:{},pageId:{default:null},preview:{type:Boolean,default:!1}},setup(l){let T=l;function E(e,t=``){let n=T.block.settings[e];return typeof n==`string`&&n!==``?n:t}let D=s(`none`),O=d({page_id:T.pageId,url:typeof window<`u`?window.location.pathname:``,helpful:!0,comment:``});function k(e){T.preview||(O.helpful=e,D.value=`commenting`)}function A(){T.preview||O.post(`/interactions/feedback`,{preserveScroll:!0,onSuccess:()=>{D.value=`done`}})}function j(){A()}return(s,l)=>(i(),n(`div`,g,[D.value===`done`?(i(),n(`p`,_,` Thank you — your feedback helps us improve. `)):(i(),n(o,{key:1},[p(`h2`,v,a(E(`heading`,`Was this page helpful?`)),1),D.value===`none`?(i(),n(`div`,y,[p(`button`,{type:`button`,class:`inline-flex items-center gap-2 rounded-xl border-2 border-[var(--site-primary,#004B88)]/30 px-5 py-2.5 text-sm font-semibold text-[var(--site-primary-text,#004B88)] transition-colors hover:bg-[var(--site-primary,#004B88)] hover:text-white dark:text-[var(--site-dark-link,#8FBBDF)]`,onClick:l[0]||=e=>k(!0)},[e(t(h),{class:`size-4`}),l[3]||=u(` Yes `,-1)]),p(`button`,{type:`button`,class:`inline-flex items-center gap-2 rounded-xl border-2 border-[var(--site-primary,#004B88)]/30 px-5 py-2.5 text-sm font-semibold text-[var(--site-primary-text,#004B88)] transition-colors hover:bg-[var(--site-primary,#004B88)] hover:text-white dark:text-[var(--site-dark-link,#8FBBDF)]`,onClick:l[1]||=e=>k(!1)},[e(t(m),{class:`size-4`}),l[4]||=u(` No `,-1)])])):D.value===`commenting`?(i(),n(`div`,b,[p(`p`,x,a(t(O).helpful?`Great — anything we could add?`:`Sorry to hear that. What was missing or unclear?`)+` (optional) `,1),f(p(`textarea`,{"onUpdate:modelValue":l[2]||=e=>t(O).comment=e,rows:`3`,maxlength:`1000`,class:`w-full rounded-xl border border-input bg-background px-3 py-2 text-sm focus:ring-2 focus:ring-ring focus:outline-none`,placeholder:`Your comment…`},null,512),[[c,t(O).comment]]),p(`div`,S,[p(`button`,{type:`button`,disabled:t(O).processing,class:`rounded-xl bg-[var(--site-primary,#004B88)] px-5 py-2.5 text-sm font-semibold text-white transition-transform hover:scale-105 disabled:opacity-60`,onClick:A},` Send feedback `,8,C),p(`button`,{type:`button`,disabled:t(O).processing,class:`rounded-xl px-5 py-2.5 text-sm font-medium text-muted-foreground hover:underline`,onClick:j},` Skip `,8,w)])])):r(``,!0)],64))]))}});export{T as t};

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.