PageSourceSearch

https://ilccnl.it/_next/static/chunks/pages/apps/calcolo-ral-75d20e7b1d6612e9.js

js ilccnl.it collected 2026-10-07 07:17:27 UTC 6,287 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6176],{7973:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apps/calcolo-ral",function(){return t(89405)}])},89405:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return v}});var l=t(47568),r=t(10092),n=t(85893),s=t(9008),i=t.n(s),o=t(67294),c=t(73613),d=t(35340),u=t(11163),x=t(56676),m=t(30381),p=t.n(m),f=t(25675),h=t.n(f),j=t(80404);function v(){var e=(0,c.a)(),a=e.user,t=e.subscribedApps,s=e.loading,m=(0,u.useRouter)(),p=(0,x.Z)(""),f=p.calcoliUtente,v=p.actions,N=(0,o.useState)(""),b=N[0],w=N[1],C=(0,o.useState)("date"),y=C[0],k=C[1],_=(0,o.useState)(0),L=_[0],R=_[1],z=(0,o.useState)(!1),O=z[0],P=z[1],S=(0,o.useState)(!0),A=S[0],E=S[1];(0,o.useEffect)((function(){if(a&&!s){if(!t.some((function(e){return e.features.includes("calcolo-ral")})))return void m.replace("/prodotti/apps#a-calcolo-ral");v.list().finally((function(){return E(!1)}));var e=new URL(window.location.href),l=e.searchParams.get("search"),r=e.searchParams.get("newId");l&&w(l),r&&(R(parseInt(r)),P(!0))}}),[a]);var T=f.filter((function(e){return e.nome.toLowerCase().includes(b.toLowerCase())||e.categoria.toLowerCase().includes(b.toLowerCase())}));return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i(),{children:[(0,n.jsx)("title",{children:"Calcolo RAL: nuovo calcolo e calcoli salvati | ilCCNL.it"}),(0,n.jsx)("meta",{name:"robots",content:"noindex, follow"}),(0,n.jsx)("meta",{name:"description",content:"Calcola la retribuzione annua lorda per CCNL e livello di inquadramento e ritrova i calcoli salvati."})]}),(0,n.jsx)(d.Z,{}),(0,n.jsx)(j.c,{open:O,title:"Calcolo RAL",scope:"ral",skipApprendisti:!0,preselectedCategoryId:L,onClose:function(){return P(!1)},onSelect:function(){var e=(0,l.Z)((function(e,a){return(0,r.__generator)(this,(function(t){switch(t.label){case 0:return[4,m.push("/apps/calcolo-ral/nuovo-calcolo-ui?categoria="+e.idCategoria+"&livello="+a.guid)];case 1:return t.sent(),[2]}}))}));return function(a,t){return e.apply(this,arguments)}}()}),(0,n.jsxs)("div",{className:"xl:container lg:px-50 md:px-28 mt-5 lg:mx-auto mx-2",children:[(0,n.jsx)("div",{className:"pb-5 border-b border-[#dbdbdb]",children:(0,n.jsx)("div",{className:"pb-3 flex flex-row gap-3",children:(0,n.jsx)("h1",{className:"text-xl text-primary font-bold",children:"Calcolo RAL"})})}),(0,n.jsxs)("div",{className:"mt-5 flex flex-row justify-between",children:[(0,n.jsx)("h2",{className:"text-3xl font-bold etk-font text-primary",children:"Calcoli salvati"}),(0,n.jsxs)("button",{onClick:function(){return P(!0)},className:"ok-btn-action flex flex-row gap-3 items-center",children:[(0,n.jsx)(h(),{className:"brightness-0 invert",src:"/assets/apps/okral/24px/add.svg",height:24,width:24,alt:"nuovo calcolo"})," ","NUOVO CALCOLO"]})]}),f.length>0&&(0,n.jsx)("div",{className:"mt-5",children:(0,n.jsx)("div",{className:"ok-search-bar",children:(0,n.jsx)("input",{type:"search",value:b,onChange:function(e){return w(e.target.value)},placeholder:"Ricerca un calcolo salvato"})})}),0===f.length&&(0,n.jsx)("div",{onClick:function(){return!A&&P(!0)},className:"w-full h-16 border font-bold text-gray-500 text-lg mt-5 border-[#dedede] flex flex-row justify-center items-center",children:A?"Caricamento in corso...":"Nessun calcolo creato, generane uno nuovo!"}),(0,n.jsxs)("div",{className:"flex flex-row text-xs gap-3 mt-2 items-center",children:[(0,n.jsx)("p",{className:"",children:"Ordina per:"}),(0,n.jsxs)("select",{className:"bg-inherit font-bold",value:y,onChange:function(e){return k(e.target.value)},children:[(0,n.jsx)("option",{value:"name",children:"Nome"}),(0,n.jsx)("option",{value:"date",children:"Data creazione"})]})]}),b.length>0&&!A&&(0,n.jsxs)("p",{className:"mt-3",children:[0===T.length?"Nessun calcolo trovato per la ricerca":"Risultati di ricerca per "," ",b,"."," ",(0,n.jsx)("span",{role:"button",className:"font-bold underline",onClick:function(){return w("")},children:"Rimuovi filtri"})]}),f.length>0&&(0,n.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-3 items-stretch",children:(b.length>0?T:f).sort((function(e,a){return"name"===y?e.nome.localeCompare(a.nome):new Date(a.dataCreazione).getTime()-new Date(e.dataCreazione).getTime()}
1)).map((function(e){return(0,n.jsx)(g,{deleteCalcolo:v.deleteCalcolo,calcoloRal:e},e.id)}))})]})]})}var g=function(e){var a=e.calcoloRal,t=e.deleteCalcolo,l=(0,u.useRouter)();return(0,n.jsx)("div",{role:"button",onClick:function(){return l.push("/apps/calcolo-ral/"+a.id)},className:"ok-card-wrapper mt-5",children:(0,n.jsxs)("div",{className:"cursor-pointer p-5 flex flex-col h-full",children:[(0,n.jsx)("h3",{className:"uppercase text-primary font-bold",children:a.nome}),(0,n.jsxs)("div",{className:"flex flex-col mt-5 h-full gap-3 text-sm",children:[(0,n.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,n.jsx)("p",{children:"Contratto:"}),(0,n.jsx)("p",{className:"bg-primary/20 text-primary px-2 py-1 rounded",children:a.categoria})]}),(0,n.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,n.jsx)("p",{children:"Livello:"}),(0,n.jsx)("p",{className:"bg-primary/20 text-primary px-2 py-1 rounded",children:a.inquadramento})]}),a.partTime&&(0,n.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,n.jsx)("p",{children:"Part time:"}),(0,n.jsxs)("p",{className:"bg-primary/20 text-primary px-2 py-1 rounded",children:[a.percentualePartTime,"%"]})]}),(0,n.jsxs)("div",{className:"mt-auto",children:[(0,n.jsx)("div",{className:"mb-5",children:(0,n.jsxs)("p",{className:"text-gray-500 italic",children:["creato il"," ",p()(a.dataCreazione).format("DD/MM/YYYY")]})}),(0,n.jsxs)("div",{className:"flex flex-row justify-between mt-auto",children:[(0,n.jsx)("button",{className:"font-bold text-primary uppercase",children:"visualizza report"}),(0,n.jsx)("button",{onClick:function(e){e.stopPropagation(),confirm("Sei sicuro di voler eliminare il calcolo?")&&t(a.id)},className:"text-primary",children:(0,n.jsx)(h(),{src:"/assets/apps/okral/24px/delete.svg",height:24,width:24,alt:"elimina calcolo"})})]})]})]})]})},a.id)}}},function(e){e.O(0,[7383,5340,6367,2656,6676,404,9774,2888,179],(function(){return a=7973,e(e.s=a);var a}));var a=e.O();_N_E=a}]);

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.