import{_ as v,C as h}from"./AppLayout.vue_vue_type_script_setup_true_lang-BA0fi5xR.js";import{_ as u}from"./AppLogoIcon.vue_vue_type_script_setup_true_lang-M23wUS8o.js";import{d as y,a as l,o as n,e as r,b as s,u as d,h as N,k as g,w as c,l as k,i as b,F as f,B as C,t as o,G as w}from"./app-KXUNt_n9.js";import{C as B,_ as F}from"./_plugin-vue_export-helper-6HKQXqTi.js";import"./useForwardExpose-B0NY7lip.js";import"./VisuallyHidden-OJAPlYzx.js";import"./RovingFocusGroup-DKdqcDpA.js";import"./useArrowNavigation-C6Y-ieo6.js";import"./index-Z7dItZLR.js";import"./createLucideIcon-CFEmdjHu.js";const P={class:"p-6"},R={class:"flex justify-between"},j={class:"flex space-x-2"},S={class:"w-full border text-left"},V={class:"p-2 border"},$={class:"p-2 border"},z={class:"p-2 border"},D={class:"p-2 border"},L={class:"p-2 border"},U={key:0},E={key:0,class:"mt-6 flex items-center justify-center space-x-4"},G={class:"text-sm text-gray-700"},I={key:1,class:"mt-4 text-center text-sm text-gray-600"},T=y({layout:v,__name:"Nfr",props:{product_backlogs:{},breadcrumbs:{}},setup(e){const m=e,_=i=>{const t=m.product_backlogs.meta?.current_page||1,a=m.product_backlogs.meta?.per_page||10;return(t-1)*a+i+1},p=i=>{i&&w.visit(i)};return(i,t)=>(n(),l(f,null,[r(d(N),{title:"NFR Backlogs"}),s("div",P,[s("div",R,[t[4]||(t[4]=s("h1",{class:"text-2xl font-bold mb-4"},"Non-Functional Requirement Backlogs",-1)),s("div",j,[r(d(u),{variant:"secondary"},{default:c(()=>[r(d(k),{href:"/product-backlogs"},{default:c(()=>[...t[2]||(t[2]=[b(" Functional User Stories ",-1)])]),_:1})]),_:1}),r(d(u),{variant:"secondary"},{default:c(()=>[r(d(k),{href:"/product-backlogs/sprint-backlogs"},{default:c(()=>[...t[3]||(t[3]=[b(" Sprint Backlogs ",-1)])]),_:1})]),_:1})])]),s("table",S,[t[6]||(t[6]=s("thead",{class:"bg-gray-100 dark:bg-neutral-900"},[s("tr",null,[s("th",{class:"p-2 border"},"No"),s("th",{class:"p-2 border"},"Projects"),s("th",{class:"p-2 border"},"NFR"),s("th",{class:"p-2 border"},"Description"),s("th",{class:"p-2 border"},"Updated at")])],-1)),s("tbody",null,[(n(!0),l(f,null,C(e.product_backlogs.data,(a,x)=>(n(),l("tr",{key:a.id},[s("td",V,o(_(x)),1),s("td",$,o(a.project.name),1),s("td",z,o(a.name),1),s("td",D,o(a.description),1),s("td",L,o(a.updated_at),1)]))),128)),e.product_backlogs.data.length===0?(n(),l("tr",U,[...t[5]||(t[5]=[s("td",{colspan:"7",class:"p-4 border text-center text-gray-500"}," No requirements found. ",-1)])])):g("",!0)])]),e.product_backlogs.meta&&e.product_backlogs.meta.last_page>1?(n(),l("div",E,[r(d(u),{variant:"outline",size:"sm",disabled:!e.product_backlogs.links.prev,onClick:t[0]||(t[0]=a=>p(e.product_backlogs.links.prev))},{default:c(()=>[r(d(B),{class:"h-4 w-4"}),t[7]||(t[7]=b(" Previous ",-1))]),_:1},8,["disabled"]),s("span",G," Page "+o(e.product_backlogs.meta.current_page)+" of "+o(e.product_backlogs.meta.last_page),1),r(d(u),{variant:"outline",size:"sm",disabled:!e.product_backlogs.links.next,onClick:t[1]||(t[1]=a=>p(e.product_backlogs.links.next))},{default:c(()=>[t[8]||(t[8]=b(" Next ",-1)),r(d(h),{class:"h-4 w-4"})]),_:1},8,["disabled"])])):g("",!0),e.product_backlogs.meta?(n(),l("div",I," Showing "+o(e.product_backlogs.meta.from)+" to "+o(e.product_backlogs.meta.to)+" of "+o(e.product_backlogs.meta.total)+" results ",1)):g("",!0)])],64))}}),Z=F(T,[["__scopeId","data-v-d0d66a1b"]]);export{Z as default};
