PageSourceSearch

https://www.methodlearning.com/build/assets/ProjectLink-H3dQsfYL.js

js methodlearning.com collected 2026-09-28 11:04:01 UTC 2,261 bytes, 1 lines download raw bytes

1import{o as n,c as o,a as e,d as c,F as p,r as u,n as b,t as k,b as f,v as g}from"./instance-CaiqpZWj.js";import{_ as y}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./___vite-browser-external_commonjs-proxy-Dtmx4hP1.js";const x={name:"ProjectLink",props:{oldLinkData:{type:Array,default:()=>[""]},hasErrors:{type:Boolean,default:!1}},data(){return{linkData:this.oldLinkData.length?[...this.oldLinkData]:[""]}},methods:{addLink(){this.linkData.push("")},remove(l){this.linkData.splice(l,1)}}},h={class:"mb-3 flex items-center justify-between"},v={class:"grid grid-cols-1 gap-3 lg:grid-cols-2"},D={class:"mb-1 flex items-center justify-between"},_=["for"],L=["onClick"],w=["id","onUpdate:modelValue"];function j(l,t,m,C,s,a){return n(),o("div",{class:b(["rounded-lg bg-gray-50 p-4",m.hasErrors?"border border-red-400 ring-1 ring-red-300":"border border-gray-200"])},[e("div",h,[t[2]||(t[2]=e("h3",{class:"text-base font-semibold text-gray-700"},"Project Links",-1)),s.linkData.length<12?(n(),o("button",{key:0,type:"button",class:"inline-flex items-center rounded-md border border-gray-300 bg-white px-3 py-2 text-base font-semibold text-gray-700 hover:border-primary-400 hover:text-primary-700",onClick:t[0]||(t[0]=(...i)=>a.addLink&&a.addLink(...i))},t[1]||(t[1]=[e("span",{class:"far fa-plus"},null,-1),e("span",{class:"ml-2"},"Add Link",-1)]))):c("",!0)]),e("div",v,[(n(!0),o(p,null,u(s.linkData,(i,r)=>(n(),o("div",{key:`link-${r}`,class:"rounded border border-gray-200 bg-white p-3"},[e("div",D,[e("label",{for:`link-${r}`,class:"text-base font-semibold text-gray-700"}," URL "+k(r+1),9,_),s.linkData.length>1?(n(),o("button",{key:0,type:"button",class:"inline-flex items-center rounded px-2 py-1 text-base font-semibold text-red-600 hover:bg-red-50",onClick:d=>a.remove(r)},t[3]||(t[3]=[e("span",{class:"far fa-xmark"},null,-1)]),8,L)):c("",!0)]),f(e("input",{id:`link-${r}`,"onUpdate:modelValue":d=>s.linkData[r]=d,name:"links[]",type:"url",placeholder:"https://example.com",class:"block w-full rounded-md border border-gray-300 bg-white px-3 py-2 text-base shadow-sm focus:border-primary-500 focus:outline-none focus:ring-1 focus:ring-primary-500"},null,8,w),[[g,s.linkData[r]]])]))),128))])],2)}const P=y(x,[["render",j]]);export{P 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.