1import{c as l,w as c,o as i,a as t,t as s,h as p,i as h,b as m,u as x,d as g,g as u,F as y,e as _}from"./app-CeAYduRG.js";import{_ as f}from"./AppLayout-C4ae1BTR.js";import{_ as b}from"./Paginator-lPkZSz6G.js";import{r as k}from"./XMarkIcon-DRbRI_mE.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./XCircleIcon-C-oof0_Y.js";import"./LanguageSelect-CVYQHrCJ.js";import"./BanknotesIcon-zPX66xpp.js";const w={class:"m-auto"},v={class:"m-auto"},C={class:"max-w-full mx-auto ml-4 mr-4 sm:px-4 lg:px-4"},$={class:"bg-white dark:bg-gray-800 overflow-hidden shadow-xl sm:rounded-lg"},S={class:"px-4 sm:px-6 lg:px-8"},P={class:"sm:flex sm:items-center mt-4"},B={class:"sm:flex-auto"},z={class:"text-base font-semibold leading-6 text-gray-900 dark:text-gray-200"},F={for:"default-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},O={class:"relative w-96"},D=t("div",{class:"absolute inset-y-0 start-0 flex items-center ps-3 pointer-events-none"},[t("svg",{class:"w-4 h-4 text-gray-500 dark:text-gray-400","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},[t("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"})])],-1),N={class:"mt-8 flow-root"},V={class:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"},j={class:"inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"},A={scope:"col",class:"py-3.5 pl-4 pr-3 text-left text-sm leading-4 font-semibold text-gray-900 dark:text-gray-200 dark:bg-gray-700 sm:pl-3"},E={scope:"col",class:"px-3 py-3.5 text-left text-sm leading-4 font-semibold text-gray-900 dark:text-gray-200 dark:bg-gray-700"},L={scope:"col",class:"px-3 py-3.5 text-left text-sm leading-4 font-semibold text-gray-900 dark:text-gray-200 dark:bg-gray-700"},M={scope:"col",class:"px-3 py-3.5 text-left text-sm leading-4 font-semibold text-gray-900 dark:text-gray-200 dark:bg-gray-700"},q={scope:"col",class:"px-3 py-3.5 text-left text-sm leading-4 font-semibold text-gray-900 dark:text-gray-200 dark:bg-gray-700"},I={scope:"col",class:"px-3 py-3.5 text-left text-sm leading-4 font-semibold text-gray-900 dark:text-gray-200 dark:bg-gray-700"},K={scope:"col",class:"px-3 py-3.5 text-left text-sm leading-4 font-semibold text-gray-900 dark:text-gray-200 dark:bg-gray-700"},R={class:"bg-white"},T={class:"even:bg-gray-50 dark:even:bg-gray-700 dark:bg-gray-800 cursor-pointer"},U={class:"whitespace-nowrap py-4 pl-4 pr-3 text-sm leading-4 font-medium text-gray-900 dark:text-gray-200 sm:pl-3"},Z={class:"whitespace-nowrap px-3 py-4 text-sm leading-4 text-gray-500 dark:text-gray-200"},G={class:"whitespace-nowrap px-3 py-4 text-sm leading-4 text-gray-500 dark:text-gray-200"},H={class:"whitespace-nowrap px-3 py-4 text-sm leading-4 text-gray-500 dark:text-gray-200 text-right"},J={class:"whitespace-nowrap px-3 py-4 text-sm leading-4 text-gray-500 dark:text-gray-200"},Q={class:"whitespace-nowrap px-3 py-4 text-sm leading-4 text-gray-500 dark:text-gray-200 text-right"},W={class:"whitespace-nowrap px-3 py-4 text-sm leading-4 text-gray-500 dark:text-gray-200 text-center"},X={props:{modalita_pagamento:Object},data(){return{pagination:{data:[]},search:null,currentPage:1,pageSize:10,sortingColumn:null,sortingOrder:null,pageSizes:[10,20,100]}},methods:{paginate(){this.tableLoading=!0,axios.post(route("fatturaElettronica.modalitaPagamento.paginate"),{pageSize:this.pageSize,page:this.currentPage,sort:this.sortingColumn,order:this.sortingOrder,search:this.search}).then(o=>{this.pagination=o.data})},handleClick(o){const e=document.querySelector("table"),r=o.target.closest("tr");let a;if(r){const n=Array.from(e.rows).indexOf(r)-1;a=this.pagination.data[n]}const d=[];for(const n of e.rows[0].cells)d.push(n.textContent);d[o.target.cellIndex]!==void 0?this.$inertia.get(this.route("gestione.aziende.edit",{id:a.id})):console.log("Altro")},handlePagination(o){this.currentPage=o,this.paginate()},clearSearchBar(){this.search="",this.paginate()}},mounted(){this.paginate()}},dt=Object.assign(X,{__name:"List",setup(o){return(e,r)=>(i(),l(f,{title:"FatturaElettronica"},{default:c(()=>[t("div",w,[t("div",v,[t("div",C,[t("div",$,[t("div",null,[t("div",S,[t("div",P,[t("div",B,[t("h1",z,s(e.$t("Modalità di pagamento")),1)]),t("label",F,s(e.$t("Search")),1),t("div",O,[D,p(t("input",{type:"search",id:"default-search","onUpdate:modelValue":r[0]||(r[0]=a=>e.search=a),class:"block w-full /*p-3*/ ps-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Search Name, address, email ...",required:"",onKeyup:r[1]||(r[1]=(...a)=>e.paginate&&e.paginate(...a))},null,544),[[h,e.search]]),m(x(k),{class:"h-5 w-5 mr-2 float-left absolute end-0 bottom-2 rounded-md bg-red-200 text-red-700","aria-hidden":"true",onClick:e.clearSearchBar},null,8,["onClick"])])]),t("div",N,[t("div",V,[t("div",j,[t("table",{onClick:r[2]||(r[2]=a=>e.handleClick(a)),class:"min-w-full divide-y divide-gray-300 dark:divide-gray-600 border-b border-b-gray-500"},[t("thead",null,[t("tr",null,[t("th",A,s(e.$t("id")),1),t("th",E,s(e.$t("id_gruppo")),1),t("th",L,s(e.$t("description")),1),t("th",M,s(e.$t("mesi")),1),t("th",q,s(e.$t("modo")),1),t("th",I,s(e.$t("posticipo")),1),t("th",K,s(e.$t("Codice SDI")),1)])]),t("tbody",R,[(i(!0),g(y,null,u(e.pagination.data,a=>(i(),g("tr",T,[t("td",U,s(a.id),1),t("td",Z,s(a.gruppi_pagamento.description),1),t("td",G,s(a.description),1),t("td",H,s(a.mesi),1),t("td",J,s(a.modo===0?"Data Fattura.":"Fine Mese"),1),t("td",Q,s(a.posticipo),1),t("td",W,s(a.value),1)]))),256))])])])])])]),e.pagination.data.length!==0?(i(),l(b,{key:0,"current-page":e.currentPage,data:e.pagination,onPage_change:e.handlePagination},null,8,["current-page","data","onPage_change"])):_("",!0)])])])])])]),_:1}))}});
1export{dt 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.