PageSourceSearch

https://app.lernmore.com/build/assets/BugReportForm-D9buSm3H.js

js lernmore.com collected 2026-10-09 22:58:58 UTC 3,629 bytes, 1 lines download raw bytes

1import{o as b,d as v,a as e,r as c,b as s,w as o,u as a,f as d,j as h,v as _}from"./app-BYIh5UPV.js";import{_ as p}from"./Button-D-B1Zgko.js";import{Y as k,h as f,_ as C,V as I,S as N}from"./transition-CtwOiHEw.js";import"./hidden-C88IvNmj.js";import"./keyboard-CqIrqyxx.js";import"./open-closed-CSlRTajc.js";function V(m,u){return b(),v("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"})])}const B={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},M={class:"relative inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full sm:p-6"},j={class:"mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-sky-100"},D={class:"mt-3 text-center sm:mt-5"},S={class:"mt-2"},F={class:"mt-5 sm:mt-6 sm:grid sm:grid-cols-2 sm:gap-3 sm:grid-flow-row-dense"},E={__name:"BugReportForm",props:{documentId:{type:Number,required:!0},clauseId:{type:Number,default:null},subclauseId:{type:Number,default:null}},emits:["sendDoubt"],setup(m,{emit:u}){const r=m,y=u,n=c(!1),l=c({doubt:""}),x=()=>{n.value=!0},i=()=>{n.value=!1,l.value.doubt=""},w=()=>{y("sendDoubt",{document_id:r.documentId,clause_id:r.clauseId,subclause_id:r.subclauseId,doubt:l.value.doubt}),i()};return(P,t)=>(b(),v("div",null,[e("div",{class:"w-full text-center"},[e("button",{onClick:x,class:"mt-4 text-primary font-semibold hover:text-complementary"}," Would you like to report a problem? ")]),s(a(N),{as:"template",show:n.value},{default:o(()=>
1[s(a(k),{as:"div",class:"fixed z-10 inset-0 overflow-y-auto",onClose:i},{default:o(()=>[e("div",B,[s(a(f),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:o(()=>[s(a(C),{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),t[5]||(t[5]=e("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"​",-1)),s(a(f),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:o(()=>[e("div",M,[e("div",null,[e("div",j,[s(a(V),{class:"h-8 w-8 text-primary","aria-hidden":"true"})]),e("div",D,[s(a(I),{as:"h3",class:"text-lg leading-6 font-medium text-gray-900"},{default:o(()=>t[1]||(t[1]=[d(" Would you like to report a problem? ")])),_:1}),e("div",S,[t[2]||(t[2]=e("label",{for:"issue",class:"block text-sm font-medium text-gray-700"}," Please describe the problem: ",-1)),h(e("textarea",{id:"issue","onUpdate:modelValue":t[0]||(t[0]=g=>l.value.doubt=g),rows:"3",class:"mt-1 w-full h-32 border border-gray-300 rounded-md",placeholder:"Please describe the problem:"},null,512),[[_,l.value.doubt]])])])]),e("div",F,[s(p,{onClick:w,variant:"complementary"},{default:o(()=>t[3]||(t[3]=[d(" Send ")])),_:1}),s(p,{onClick:i},{default:o(()=>t[4]||(t[4]=[d(" Cancel ")])),_:1})])])]),_:1})])]),_:1})]),_:1},8,["show"])]))}};export{E 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.