| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Fn as n,Pn as r,kt as i}from"./axios-BbX9YWYe.js";var a=e(t());n();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z`}}]},name:`arrow-left`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(i,r(r({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Nn as n,Ot as r,Pn as i}from"./axios-GfLWCH1-.js";var a=e(t());i();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z`}}]},name:`arrow-left`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(r,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r}from"./axios-BbX9YWYe.js";import{t as i}from"./button-CGra0C8Y.js";import{t as a}from"./popconfirm-Z3C_yxj0.js";import{F as o,et as s}from"./index-cqbbFfLv.js";var c=e(r()),l=n(),u=({toolTipTitle:e,children:t})=>e?(0,l.jsx)(o,{title:e,children:t}):t;u.propTypes={toolTipTitle:c.default.string,children:c.default.node.isRequired};var d=e(t()),f=({withModalConfirm:e,withPopConfirm:t,confirmTitle:n,okText:r,cancelText:i,disabled:o,onConfirm:c,children:u})=>{let f=()=>{s.confirm({title:n,okText:r,cancelText:i,onOk:c,centered:!0,width:450})};return e?d.cloneElement(u,{onClick:()=>{o||f()}}):t?(0,l.jsx)(a,{title:n,onConfirm:c,okText:r,cancelText:i,disabled:o,children:u}):u};f.propTypes={withPopConfirm:c.default.bool,withModalConfirm:c.default.bool,confirmTitle:c.default.string,okText:c.default.string,cancelText:c.default.string,disabled:c.default.bool,onConfirm:c.default.func.isRequired,children:c.default.node.isRequired};var p=({icon:e,onClick:t,disabled:n=!1,type:r=`primary`,loading:a=!1,toolTipTitle:o=``,withPopConfirm:s=!1,withModalConfirm:c=!1,confirmTitle:d=`Confirmez-vous cette action ?`,okText:p=`Oui`,cancelText:m=`Annuler`,children:h,...g})=>(0,l.jsx)(u,{toolTipTitle:o,children:(0,l.jsx)(f,{withModalConfirm:c,withPopConfirm:s,confirmTitle:d,okText:p,cancelText:m,disabled:n,onConfirm:t,children:(0,l.jsx)(i,{type:r,icon:e,loading:a,onClick:!s&&!c?t:void 0,disabled:n,...g,children:h})})});p.propTypes={icon:c.default.node,onClick:c.default.func.isRequired,disabled:c.default.bool,type:c.default.string,toolTipTitle:c.default.string,loading:c.default.bool,withConfirm:c.default.bool,withModalConfirm:c.default.bool,confirmTitle:c.default.string,okText:c.default.string,cancelText:c.default.string,children:c.default.node};export{p as t}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r}from"./axios-GfLWCH1-.js";import{t as i}from"./button-DFsG8yVP.js";import{t as a}from"./popconfirm-pEpGkgTI.js";import{F as o,et as s}from"./index-BXgKcVQP.js";var c=e(r()),l=n(),u=({toolTipTitle:e,children:t})=>e?(0,l.jsx)(o,{title:e,children:t}):t;u.propTypes={toolTipTitle:c.default.string,children:c.default.node.isRequired};var d=e(t()),f=({withModalConfirm:e,withPopConfirm:t,confirmTitle:n,okText:r,cancelText:i,disabled:o,onConfirm:c,children:u})=>{let f=()=>{s.confirm({title:n,okText:r,cancelText:i,onOk:c,centered:!0,width:450})};return e?d.cloneElement(u,{onClick:()=>{o||f()}}):t?(0,l.jsx)(a,{title:n,onConfirm:c,okText:r,cancelText:i,disabled:o,children:u}):u};f.propTypes={withPopConfirm:c.default.bool,withModalConfirm:c.default.bool,confirmTitle:c.default.string,okText:c.default.string,cancelText:c.default.string,disabled:c.default.bool,onConfirm:c.default.func.isRequired,children:c.default.node.isRequired};var p=({icon:e,onClick:t,disabled:n=!1,type:r=`primary`,loading:a=!1,toolTipTitle:o=``,withPopConfirm:s=!1,withModalConfirm:c=!1,confirmTitle:d=`Confirmez-vous cette action ?`,okText:p=`Oui`,cancelText:m=`Annuler`,children:h,...g})=>(0,l.jsx)(u,{toolTipTitle:o,children:(0,l.jsx)(f,{withModalConfirm:c,withPopConfirm:s,confirmTitle:d,okText:p,cancelText:m,disabled:n,onConfirm:t,children:(0,l.jsx)(i,{type:r,icon:e,loading:a,onClick:!s&&!c?t:void 0,disabled:n,...g,children:h})})});p.propTypes={icon:c.default.node,onClick:c.default.func.isRequired,disabled:c.default.bool,type:c.default.string,toolTipTitle:c.default.string,loading:c.default.bool,withConfirm:c.default.bool,withModalConfirm:c.default.bool,confirmTitle:c.default.string,okText:c.default.string,cancelText:c.default.string,children:c.default.node};export{p as t}; | |||||
| @ -1 +1 @@ | |||||
| import{a as e,t}from"./chunk-jRWAZmH_.js";import{n}from"./jsx-runtime-CEixWuwE.js";import{Hn as r}from"./axios-BbX9YWYe.js";import{J as i,Y as a,_t as o,vt as s}from"./index-cqbbFfLv.js";import{E as c,T as l,_ as u,g as d,i as f,n as p,t as m,w as h,y as g}from"./context-CBotos2k.js";var _=t((e=>{var t=c().default,o=a().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=e.GroupContext=void 0;var s=o(i()),d=o(l()),f=o(u()),m=o(h()),_=o(r()),y=o(g()),b=t(n()),x=p(),S=o(v()),C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},w=e.GroupContext=b.createContext(null),T=b.forwardRef(function(e,t){var n=e.defaultValue,r=e.children,i=e.options,a=i===void 0?[]:i,o=e.prefixCls,c=e.className,l=e.style,u=e.onChange,p=C(e,[`defaultValue`,`children`,`options`,`prefixCls`,`className`,`style`,`onChange`]),h=b.useContext(x.ConfigContext),g=h.getPrefixCls,v=h.direction,T=b.useState(p.value||n||[]),E=(0,m.default)(T,2),D=E[0],O=E[1],k=b.useState([]),A=(0,m.default)(k,2),j=A[0],M=A[1];b.useEffect(function(){`value`in p&&O(p.value||[])},[p.value]);var N=function(){return a.map(function(e){return typeof e==`string`||typeof e==`number`?{label:e,value:e}:e})},P=function(e){M(function(t){return t.filter(function(t){return t!==e})})},F=function(e){M(function(t){return[].concat((0,f.default)(t),[e])})},I=function(e){var t=D.indexOf(e.value),n=(0,f.default)(D);t===-1?n.push(e.value):n.splice(t,1),`value`in p||O(n);var r=N();u?.(n.filter(function(e){return j.includes(e)}).sort(function(e,t){return r.findIndex(function(t){return t.value===e})-r.findIndex(function(e){return e.value===t})}))},L=g(`checkbox`,o),R=`${L}-group`,z=(0,y.default)(p,[`value`,`disabled`]);a&&a.length>0&&(r=N().map(function(e){return b.createElement(S.default,{prefixCls:L,key:e.value.toString(),disabled:`disabled`in e?e.disabled:p.disabled,value:e.value,checked:D.includes(e.value),onChange:e.onChange,className:`${R}-item`,style:e.style},e.label)}));var B={toggleOption:I,value:D,disabled:p.disabled,name:p.name,registerValue:F,cancelValue:P},V=(0,_.default)(R,(0,d.default)({},`${R}-rtl`,v===`rtl`),c);return b.createElement(`div`,(0,s.default)({className:V,style:l},z,{ref:t}),b.createElement(w.Provider,{value:B},r))});e.default=b.memo(T)})),v=t((t=>{var u=c().default,h=a().default;Object.defineProperty(t,`__esModule`,{value:!0}),t.default=void 0;var g=h(l()),v=h(i()),y=h(r()),b=h((s(),e(o))),x=u(n()),S=x,C=p(),w=m();h(d());var T=_(),E=h(f()),D=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};t.default=S.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.children,a=e.indeterminate,o=a===void 0?!1:a,s=e.style,c=e.onMouseEnter,l=e.onMouseLeave,u=e.skipGroup,d=u===void 0?!1:u,f=e.disabled,p=D(e,[`prefixCls`,`className`,`children`,`indeterminate`,`style`,`onMouseEnter`,`onMouseLeave`,`skipGroup`,`disabled`]),m=S.useContext(C.ConfigContext),h=m.getPrefixCls,_=m.direction,O=S.useContext(T.GroupContext),k=(0,x.useContext)(w.FormItemInputContext).isFormItemInput,A=(0,x.useContext)(E.default),j=(O?.disabled||f)??A,M=S.useRef(p.value);S.useEffect(function(){O?.registerValue(p.value)},[]),S.useEffect(function(){if(!d)return p.value!==M.current&&(O?.cancelValue(M.current),O?.registerValue(p.value),M.current=p.value),function(){return O?.cancelValue(p.value)}},[p.value]);var N=h(`checkbox`,n),P=(0,v.default)({},p);O&&!d&&(P.onChange=function(){p.onChange&&p.onChange.apply(p,arguments),O.toggleOption&&O.toggleOption({label:i,value:p.value})},P.name=O.name,P.checked=O.value.includes(p.value));var F=(0,y.default)((0,g.default)((0,g.default)((0,g.default)((0,g.default)((0,g.default)({},`${N}-wrapper`,!0),`${N}-rtl`,_===`rtl`),`${N}-wrapper-checked`,P.checked),`${N}-wrapper-disabled`,j),`${N}-wrapper-in-form-item`,k),r),I=(0,y.default)((0,g.default)({},`${N}-indeterminate`,o)),L=o?`mixed`:void 0;return S.createElement(`label`,{className:F,style:s,onMouseEnter:c,onMouseLeave:l},S.createElement(b.default,(0,v.default)({"aria-checked":L},P,{prefixCls:N,className:I,disabled:j,ref:t})),i!==void 0&&S.createElement(`span`,null,i))})}));export{v as t}; | |||||
| import{a as e,t}from"./chunk-jRWAZmH_.js";import{n}from"./jsx-runtime-CEixWuwE.js";import{Vn as r}from"./axios-GfLWCH1-.js";import{J as i,Y as a,_t as o,gt as s}from"./index-BXgKcVQP.js";import{E as c,T as l,_ as u,g as d,i as f,n as p,t as m,w as h,y as g}from"./context-DKr6FCfo.js";var _=t((e=>{var t=c().default,o=a().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=e.GroupContext=void 0;var s=o(i()),d=o(l()),f=o(u()),m=o(h()),_=o(r()),y=o(g()),b=t(n()),x=p(),S=o(v()),C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},w=e.GroupContext=b.createContext(null),T=b.forwardRef(function(e,t){var n=e.defaultValue,r=e.children,i=e.options,a=i===void 0?[]:i,o=e.prefixCls,c=e.className,l=e.style,u=e.onChange,p=C(e,[`defaultValue`,`children`,`options`,`prefixCls`,`className`,`style`,`onChange`]),h=b.useContext(x.ConfigContext),g=h.getPrefixCls,v=h.direction,T=b.useState(p.value||n||[]),E=(0,m.default)(T,2),D=E[0],O=E[1],k=b.useState([]),A=(0,m.default)(k,2),j=A[0],M=A[1];b.useEffect(function(){`value`in p&&O(p.value||[])},[p.value]);var N=function(){return a.map(function(e){return typeof e==`string`||typeof e==`number`?{label:e,value:e}:e})},P=function(e){M(function(t){return t.filter(function(t){return t!==e})})},F=function(e){M(function(t){return[].concat((0,f.default)(t),[e])})},I=function(e){var t=D.indexOf(e.value),n=(0,f.default)(D);t===-1?n.push(e.value):n.splice(t,1),`value`in p||O(n);var r=N();u?.(n.filter(function(e){return j.includes(e)}).sort(function(e,t){return r.findIndex(function(t){return t.value===e})-r.findIndex(function(e){return e.value===t})}))},L=g(`checkbox`,o),R=`${L}-group`,z=(0,y.default)(p,[`value`,`disabled`]);a&&a.length>0&&(r=N().map(function(e){return b.createElement(S.default,{prefixCls:L,key:e.value.toString(),disabled:`disabled`in e?e.disabled:p.disabled,value:e.value,checked:D.includes(e.value),onChange:e.onChange,className:`${R}-item`,style:e.style},e.label)}));var B={toggleOption:I,value:D,disabled:p.disabled,name:p.name,registerValue:F,cancelValue:P},V=(0,_.default)(R,(0,d.default)({},`${R}-rtl`,v===`rtl`),c);return b.createElement(`div`,(0,s.default)({className:V,style:l},z,{ref:t}),b.createElement(w.Provider,{value:B},r))});e.default=b.memo(T)})),v=t((t=>{var u=c().default,h=a().default;Object.defineProperty(t,`__esModule`,{value:!0}),t.default=void 0;var g=h(l()),v=h(i()),y=h(r()),b=h((o(),e(s))),x=u(n()),S=x,C=p(),w=m();h(d());var T=_(),E=h(f()),D=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};t.default=S.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.children,a=e.indeterminate,o=a===void 0?!1:a,s=e.style,c=e.onMouseEnter,l=e.onMouseLeave,u=e.skipGroup,d=u===void 0?!1:u,f=e.disabled,p=D(e,[`prefixCls`,`className`,`children`,`indeterminate`,`style`,`onMouseEnter`,`onMouseLeave`,`skipGroup`,`disabled`]),m=S.useContext(C.ConfigContext),h=m.getPrefixCls,_=m.direction,O=S.useContext(T.GroupContext),k=(0,x.useContext)(w.FormItemInputContext).isFormItemInput,A=(0,x.useContext)(E.default),j=(O?.disabled||f)??A,M=S.useRef(p.value);S.useEffect(function(){O?.registerValue(p.value)},[]),S.useEffect(function(){if(!d)return p.value!==M.current&&(O?.cancelValue(M.current),O?.registerValue(p.value),M.current=p.value),function(){return O?.cancelValue(p.value)}},[p.value]);var N=h(`checkbox`,n),P=(0,v.default)({},p);O&&!d&&(P.onChange=function(){p.onChange&&p.onChange.apply(p,arguments),O.toggleOption&&O.toggleOption({label:i,value:p.value})},P.name=O.name,P.checked=O.value.includes(p.value));var F=(0,y.default)((0,g.default)((0,g.default)((0,g.default)((0,g.default)((0,g.default)({},`${N}-wrapper`,!0),`${N}-rtl`,_===`rtl`),`${N}-wrapper-checked`,P.checked),`${N}-wrapper-disabled`,j),`${N}-wrapper-in-form-item`,k),r),I=(0,y.default)((0,g.default)({},`${N}-indeterminate`,o)),L=o?`mixed`:void 0;return S.createElement(`label`,{className:F,style:s,onMouseEnter:c,onMouseLeave:l},S.createElement(b.default,(0,v.default)({"aria-checked":L},P,{prefixCls:N,className:I,disabled:j,ref:t})),i!==void 0&&S.createElement(`span`,null,i))})}));export{v as t}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{Z as r,n as i}from"./axios-BbX9YWYe.js";import{t as a}from"./button-CGra0C8Y.js";import{t as o}from"./DiscardChangesButton-BxZmnLDP.js";t();var s=e(i()),c=n(),l=({onConfirm:e,modified:t,disabled:n,placement:i=`topRight`})=>(0,c.jsx)(o,{onConfirm:e,modified:t,placement:i,children:(0,c.jsx)(a,{type:`link`,className:`close-button`,disabled:n,children:(0,c.jsx)(r,{})})});l.propTypes={onConfirm:s.default.func.isRequired,modified:s.default.bool,disabled:s.default.bool,placement:s.default.string};export{l as t}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{X as r,n as i}from"./axios-GfLWCH1-.js";import{t as a}from"./button-DFsG8yVP.js";import{t as o}from"./DiscardChangesButton-BEmnYyeo.js";t();var s=e(i()),c=n(),l=({onConfirm:e,modified:t,disabled:n,placement:i=`topRight`})=>(0,c.jsx)(o,{onConfirm:e,modified:t,placement:i,children:(0,c.jsx)(a,{type:`link`,className:`close-button`,disabled:n,children:(0,c.jsx)(r,{})})});l.propTypes={onConfirm:s.default.func.isRequired,modified:s.default.bool,disabled:s.default.bool,placement:s.default.string};export{l as t}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Fn as n,Pn as r,kt as i}from"./axios-BbX9YWYe.js";var a=e(t());n();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`defs`,attrs:{},children:[{tag:`style`,attrs:{}}]},{tag:`path`,attrs:{d:`M301.3 496.7c-23.8 0-40.2-10.5-41.6-26.9H205c.9 43.4 36.9 70.3 93.9 70.3 59.1 0 95-28.4 95-75.5 0-35.8-20-55.9-64.5-64.5l-29.1-5.6c-23.8-4.7-33.8-11.9-33.8-24.2 0-15 13.3-24.5 33.4-24.5 20.1 0 35.3 11.1 36.6 27h53c-.9-41.7-37.5-70.3-90.3-70.3-54.4 0-89.7 28.9-89.7 73 0 35.5 21.2 58 62.5 65.8l29.7 5.9c25.8 5.2 35.6 11.9 35.6 24.4.1 14.7-14.5 25.1-36 25.1z`}},{tag:`path`,attrs:{d:`M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z`}},{tag:`path`,attrs:{d:`M828.5 486.7h-95.8V308.5h-57.4V534h153.2zm-298.6 53.4c14.1 0 27.2-2 39.1-5.8l13.3 20.3h53.3L607.9 511c21.1-20 33-51.1 33-89.8 0-73.3-43.3-118.8-110.9-118.8s-111.2 45.3-111.2 118.8c-.1 73.7 43 118.9 111.1 118.9zm0-190c31.6 0 52.7 27.7 52.7 71.1 0 16.7-3.6 30.6-10 40.5l-5.2-6.9h-48.8L542 491c-3.9.9-8 1.4-12.2 1.4-31.7 0-52.8-27.5-52.8-71.2.1-43.6 21.2-71.1 52.9-71.1z`}}]},name:`console-sql`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(i,r(r({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Nn as n,Ot as r,Pn as i}from"./axios-GfLWCH1-.js";var a=e(t());i();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`defs`,attrs:{},children:[{tag:`style`,attrs:{}}]},{tag:`path`,attrs:{d:`M301.3 496.7c-23.8 0-40.2-10.5-41.6-26.9H205c.9 43.4 36.9 70.3 93.9 70.3 59.1 0 95-28.4 95-75.5 0-35.8-20-55.9-64.5-64.5l-29.1-5.6c-23.8-4.7-33.8-11.9-33.8-24.2 0-15 13.3-24.5 33.4-24.5 20.1 0 35.3 11.1 36.6 27h53c-.9-41.7-37.5-70.3-90.3-70.3-54.4 0-89.7 28.9-89.7 73 0 35.5 21.2 58 62.5 65.8l29.7 5.9c25.8 5.2 35.6 11.9 35.6 24.4.1 14.7-14.5 25.1-36 25.1z`}},{tag:`path`,attrs:{d:`M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z`}},{tag:`path`,attrs:{d:`M828.5 486.7h-95.8V308.5h-57.4V534h153.2zm-298.6 53.4c14.1 0 27.2-2 39.1-5.8l13.3 20.3h53.3L607.9 511c21.1-20 33-51.1 33-89.8 0-73.3-43.3-118.8-110.9-118.8s-111.2 45.3-111.2 118.8c-.1 73.7 43 118.9 111.1 118.9zm0-190c31.6 0 52.7 27.7 52.7 71.1 0 16.7-3.6 30.6-10 40.5l-5.2-6.9h-48.8L542 491c-3.9.9-8 1.4-12.2 1.4-31.7 0-52.8-27.5-52.8-71.2.1-43.6 21.2-71.1 52.9-71.1z`}}]},name:`console-sql`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(r,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Fn as n,Pn as r,kt as i}from"./axios-BbX9YWYe.js";var a=e(t());n();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z`}}]},name:`copy`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(i,r(r({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Nn as n,Ot as r,Pn as i}from"./axios-GfLWCH1-.js";var a=e(t());i();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z`}}]},name:`copy`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(r,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r,r as i}from"./axios-BbX9YWYe.js";import{i as a}from"./ctiAxios-BMu1IxXE.js";import{U as o}from"./notification-BAy1NkPD.js";import{t as s}from"./button-CGra0C8Y.js";import{i as c}from"./select-SSTpnrPj.js";import{t as l}from"./CopyOutlined-H2Q_iVe-.js";import{t as u}from"./queryOptions-Cg9orY1Y.js";import{F as d}from"./index-cqbbFfLv.js";import{b as f}from"./CancelButton-CPkIvD2g.js";var p=async e=>f(await a(`modules/base/php/getIndicateurs.php`,{softCode:e}));async function m(e,t){await a(`modules/base/php/setIndicateur.php`,{action:`save`,softCode:e,...t})}async function h(e,t){await a(`modules/base/php/setIndicateur.php`,{action:`delete`,softCode:e,oid:t})}async function g(e,t){await a(`modules/base/php/setIndicateur.php`,{action:`copy`,softCode:e,oid:t})}var _={all:[`indicators`],list:e=>[..._.all,`list`,e]},v={indicators:[],tables:[],themesSearch:[],themes:[]},y=e=>u({queryKey:_.list(e),queryFn:()=>p(e),enabled:!!e}),b=e=>i(y(e)),x=e=>{let t=[{value:`*LIST`,title:`Pas de fonction total`},{value:`Sommes`,title:`Sommes`,disabled:!0,children:[{title:`Somme`,value:`SUM`},{title:`Somme du dernier mois`,value:`SUMLASTMONTH`},{title:`Somme du premier mois`,value:`SUMFIRSTMONTH`},{title:`Somme distincte`,value:`base.cti_sum_distinct_on`}]},{value:`Bornes`,title:`Bornes`,disabled:!0,children:[{title:`Minimum`,value:`MIN`},{title:`Maximum`,value:`MAX`}]},{value:`Moyennes`,title:`Moyennes`,disabled:!0,children:[{title:`Moyenne`,value:`AVG`},{title:`Moyenne sur 12 mois`,value:`AVG12M`}]},{value:`Comptage`,title:`Comptage`,disabled:!0,children:[{title:`Comptage`,value:`COUNT`},{title:`Comptage du dernier mois`,value:`COUNTLASTMONTH`}]},{value:`Texte`,title:`Texte`,disabled:!0,children:[{title:`Aggrégation des valeurs`,value:`LISTACUM`}]}];return e===`eis`&&t.filter(e=>e.value===`Texte`)[0].children.push({title:`AGGVAL`,data:`AGGVAL`}),t},S=[{title:`Pas de fonction total`,value:`AGGVAL`},{title:`Pas de fonction total`,value:`*LIST`},{title:`Somme`,value:`SUM`},{title:`Somme du dernier mois`,value:`SUMLASTMONTH`},{title:`Somme du premier mois`,value:`SUMFIRSTMONTH`},{title:`Somme distincte`,value:`base.cti_sum_distinct_on`},{title:`Minimum`,value:`MIN`},{title:`Maximum`,value:`MAX`},{title:`Moyenne`,value:`AVG`},{title:`Moyenne sur 12 mois`,value:`AVG12M`},{title:`Comptage`,value:`COUNT`},{title:`Comptage du dernier mois`,value:`COUNTLASTMONTH`},{title:`Aggrégation des valeurs`,value:`LISTACUM`},{title:`Calcul entre indicateurs`,value:`*CALC`}],C=(e,t)=>{let n={},r=[];for(let[t,r]of Object.entries(e))/indicateur_associe_[\d]*_id/.test(t)&&r!==`0`&&(n[t]=r);if(n){let e=Object.values(n).map(e=>t?.indicators.find(t=>t.oid===e));e.forEach(e=>{for(let[t,r]of Object.entries(n))if(r===e?.oid){let n=t.match(/\d+/g);e.associatedIndicatorIndex=Number(n[0])}}),r=e}return r},w=e(r()),T=e(t()),E=n(),D=({copiedText:e,size:t=`default`,type:n=`primary`,tooltip:r=`Copier`,style:i})=>{let[a,u]=(0,T.useState)(!1);return(0,E.jsx)(E.Fragment,{children:(0,E.jsx)(d,{title:`Copier`,children:(0,E.jsx)(s,{style:i,size:t,type:n,icon:a?(0,E.jsx)(c,{style:{color:o.green}}):(0,E.jsx)(l,{}),onClick:()=>{u(!a),navigator.clipboard.writeText(e)}})})})};D.propTypes={copiedText:w.default.string,size:w.default.string,type:w.default.string,tooltip:w.default.string};export{v as a,g as c,x as i,h as l,C as n,b as o,S as r,_ as s,D as t,m as u}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r,r as i}from"./axios-GfLWCH1-.js";import{i as a}from"./ctiAxios-uIjEIJkB.js";import{H as o}from"./notification-DWCxP4WF.js";import{t as s}from"./button-DFsG8yVP.js";import{i as c}from"./select-CAEYLMBr.js";import{t as l}from"./CopyOutlined-BqVrjO_n.js";import{t as u}from"./queryOptions-B35KRSJw.js";import{F as d}from"./index-BXgKcVQP.js";import{b as f}from"./CancelButton-CGU0iqBo.js";var p=async e=>f(await a(`modules/base/php/getIndicateurs.php`,{softCode:e}));async function m(e,t){await a(`modules/base/php/setIndicateur.php`,{action:`save`,softCode:e,...t})}async function h(e,t){await a(`modules/base/php/setIndicateur.php`,{action:`delete`,softCode:e,oid:t})}async function g(e,t){await a(`modules/base/php/setIndicateur.php`,{action:`copy`,softCode:e,oid:t})}var _={all:[`indicators`],list:e=>[..._.all,`list`,e]},v={indicators:[],tables:[],themesSearch:[],themes:[]},y=e=>u({queryKey:_.list(e),queryFn:()=>p(e),enabled:!!e}),b=e=>i(y(e)),x=e=>{let t=[{value:`*LIST`,title:`Pas de fonction total`},{value:`Sommes`,title:`Sommes`,disabled:!0,children:[{title:`Somme`,value:`SUM`},{title:`Somme du dernier mois`,value:`SUMLASTMONTH`},{title:`Somme du premier mois`,value:`SUMFIRSTMONTH`},{title:`Somme distincte`,value:`base.cti_sum_distinct_on`}]},{value:`Bornes`,title:`Bornes`,disabled:!0,children:[{title:`Minimum`,value:`MIN`},{title:`Maximum`,value:`MAX`}]},{value:`Moyennes`,title:`Moyennes`,disabled:!0,children:[{title:`Moyenne`,value:`AVG`},{title:`Moyenne sur 12 mois`,value:`AVG12M`}]},{value:`Comptage`,title:`Comptage`,disabled:!0,children:[{title:`Comptage`,value:`COUNT`},{title:`Comptage du dernier mois`,value:`COUNTLASTMONTH`}]},{value:`Texte`,title:`Texte`,disabled:!0,children:[{title:`Aggrégation des valeurs`,value:`LISTACUM`}]}];return e===`eis`&&t.filter(e=>e.value===`Texte`)[0].children.push({title:`AGGVAL`,data:`AGGVAL`}),t},S=[{title:`Pas de fonction total`,value:`AGGVAL`},{title:`Pas de fonction total`,value:`*LIST`},{title:`Somme`,value:`SUM`},{title:`Somme du dernier mois`,value:`SUMLASTMONTH`},{title:`Somme du premier mois`,value:`SUMFIRSTMONTH`},{title:`Somme distincte`,value:`base.cti_sum_distinct_on`},{title:`Minimum`,value:`MIN`},{title:`Maximum`,value:`MAX`},{title:`Moyenne`,value:`AVG`},{title:`Moyenne sur 12 mois`,value:`AVG12M`},{title:`Comptage`,value:`COUNT`},{title:`Comptage du dernier mois`,value:`COUNTLASTMONTH`},{title:`Aggrégation des valeurs`,value:`LISTACUM`},{title:`Calcul entre indicateurs`,value:`*CALC`}],C=(e,t)=>{let n={},r=[];for(let[t,r]of Object.entries(e))/indicateur_associe_[\d]*_id/.test(t)&&r!==`0`&&(n[t]=r);if(n){let e=Object.values(n).map(e=>t?.indicators.find(t=>t.oid===e));e.forEach(e=>{for(let[t,r]of Object.entries(n))if(r===e?.oid){let n=t.match(/\d+/g);e.associatedIndicatorIndex=Number(n[0])}}),r=e}return r},w=e(r()),T=e(t()),E=n(),D=({copiedText:e,size:t=`default`,type:n=`primary`,tooltip:r=`Copier`,style:i})=>{let[a,u]=(0,T.useState)(!1);return(0,E.jsx)(E.Fragment,{children:(0,E.jsx)(d,{title:`Copier`,children:(0,E.jsx)(s,{style:i,size:t,type:n,icon:a?(0,E.jsx)(c,{style:{color:o.green}}):(0,E.jsx)(l,{}),onClick:()=>{u(!a),navigator.clipboard.writeText(e)}})})})};D.propTypes={copiedText:w.default.string,size:w.default.string,type:w.default.string,tooltip:w.default.string};export{v as a,g as c,x as i,h as l,C as n,b as o,S as r,_ as s,D as t,m as u}; | |||||
| @ -0,0 +1 @@ | |||||
| .debug-tabs.ant-tabs{flex-flow:column;flex:1;min-height:0;display:flex}.debug-tabs--fill.ant-tabs .ant-tabs-content-holder{display:flex;overflow:hidden}.debug-tabs--fill.ant-tabs .ant-tabs-content,.debug-tabs--fill.ant-tabs .ant-tabs-tabpane{height:100%}.debug-panel h3:first-child{margin-top:0}.debug-panel--table{flex-flow:column;height:100%;min-height:0;display:flex}.debug-panel-toolbar{align-items:center;gap:12px;margin-bottom:12px;display:flex}.debug-panel-hint{color:#888;font-size:12px}.debug-logs-table{flex:1;min-height:0}.debug-cache{background:#f5f5f5;border-radius:4px;padding:12px;font-size:12px}.debug-memory{padding:12px}.debug-memory-tiles{flex-wrap:wrap;gap:0 32px;display:flex}.debug-memory-tiles>section{flex:460px;min-width:0}.debug-memory-tiles h3{margin-top:0} | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r}from"./axios-BbX9YWYe.js";import{t as i}from"./button-CGra0C8Y.js";import{t as a}from"./popconfirm-Z3C_yxj0.js";import{t as o}from"./UndoOutlined-eQ49Nx19.js";import{F as s}from"./index-cqbbFfLv.js";var c=e(t()),l=e(r()),u=n(),d=({onConfirm:e,modified:t=!0,children:n,title:r=`Quitter sans enregistrer ?`,description:l=`Vos modifications seront perdues.`,okText:d=`Quitter`,cancelText:f=`Continuer à modifier`,placement:p=`topRight`,toolTipTitle:m=`Annuler les modifications`,text:h,size:g=`default`,disabled:_=!1})=>{let v=(0,u.jsx)(s,{title:h?null:m,children:(0,u.jsx)(i,{size:g,disabled:_,icon:(0,u.jsx)(o,{}),children:h})});return t?(0,u.jsx)(a,{placement:p,title:r,description:l,onConfirm:e,okText:d,okButtonProps:{danger:!0},cancelText:f,children:n??v}):n?c.cloneElement(n,{onClick:e}):c.cloneElement(v,{onClick:e})};d.propTypes={onConfirm:l.default.func.isRequired,modified:l.default.bool,children:l.default.node,title:l.default.string,description:l.default.string,okText:l.default.string,cancelText:l.default.string,placement:l.default.string,toolTipTitle:l.default.string,text:l.default.string,size:l.default.string,disabled:l.default.bool};export{d as t}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r}from"./axios-GfLWCH1-.js";import{t as i}from"./button-DFsG8yVP.js";import{t as a}from"./popconfirm-pEpGkgTI.js";import{t as o}from"./UndoOutlined-BnvPIRYq.js";import{F as s}from"./index-BXgKcVQP.js";var c=e(t()),l=e(r()),u=n(),d=({onConfirm:e,modified:t=!0,children:n,title:r=`Quitter sans enregistrer ?`,description:l=`Vos modifications seront perdues.`,okText:d=`Quitter`,cancelText:f=`Continuer à modifier`,placement:p=`topRight`,toolTipTitle:m=`Annuler les modifications`,text:h,size:g=`default`,disabled:_=!1})=>{let v=(0,u.jsx)(s,{title:h?null:m,children:(0,u.jsx)(i,{size:g,disabled:_,icon:(0,u.jsx)(o,{}),children:h})});return t?(0,u.jsx)(a,{placement:p,title:r,description:l,onConfirm:e,okText:d,okButtonProps:{danger:!0},cancelText:f,children:n??v}):n?c.cloneElement(n,{onClick:e}):c.cloneElement(v,{onClick:e})};d.propTypes={onConfirm:l.default.func.isRequired,modified:l.default.bool,children:l.default.node,title:l.default.string,description:l.default.string,okText:l.default.string,cancelText:l.default.string,placement:l.default.string,toolTipTitle:l.default.string,text:l.default.string,size:l.default.string,disabled:l.default.bool};export{d as t}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Fn as n,Pn as r,kt as i}from"./axios-BbX9YWYe.js";var a=e(t());n();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z`}}]},name:`download`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(i,r(r({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Nn as n,Ot as r,Pn as i}from"./axios-GfLWCH1-.js";var a=e(t());i();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z`}}]},name:`download`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(r,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r}from"./axios-BbX9YWYe.js";import{u as i}from"./ctiAxios-BMu1IxXE.js";import{t as a}from"./button-CGra0C8Y.js";import{$ as o,B as s,H as c,I as l,Q as u,_ as d,ht as f,z as p}from"./index-cqbbFfLv.js";import{t as m}from"./logs.queries-CUsAtrhc.js";var h=e(t()),g=e(i()),_=e(r()),v=n(),y=({status:e,env:t,provider:n,module:r,duration:i,start:a,running:o})=>{let c=l().data,u=window.location,d=u.origin,f=u.pathname.replace(c?.environment?.ICTIDIR??``,`iCTI_${t.code}`),p=``,m=``;switch(e){case 0:p=`rgb(240, 255, 241)`,m=`3px solid rgb(124, 217, 146)`;break;case 1:p=`rgb(254, 255, 240)`,m=`3px solid rgb(247, 228, 99)`;break;case 2:p=`rgb(255, 242, 240)`,m=`3px solid rgb(235, 96, 96)`;break;case-1:p=`rgb(211,211,211)`,m=`3px solid rgb(122, 122, 122)`;break;default:break}return(0,v.jsx)(`a`,{href:d+f,target:`_blank`,rel:`noreferrer`,children:(0,v.jsxs)(`div`,{className:`exploit-env`,style:{backgroundColor:p,border:m},children:[(0,v.jsxs)(`div`,{className:`exploit-label`,children:[o===1&&(0,v.jsx)(s,{className:`exploit__icon`,spin:!0}),r??`${t.code} - ${t.trig&&t.trig!==``?t.trig+` - `:``}${t.comment}`]}),a&&(0,v.jsxs)(`div`,{className:`exploit-duration`,children:[`Débuté le `,(0,g.default)(a).format(`DD/MM/YYYY à HH:mm`)]}),i&&(0,v.jsxs)(`div`,{className:`exploit-duration`,children:[`Durée: `,i]}),(0,v.jsx)(`div`,{className:`exploit-provider`,children:n})]},r||t.code)})};y.propTypes={status:_.default.number,env:_.default.object,provider:_.default.string,module:_.default.string,duration:_.default.string,start:_.default.string,running:_.default.number};var b={iCTI_activite:`ADMPROVIDER`,iCTI_pmsi:`PMSIPROVIDER`,iCTI_pmsipsy:`PMSIPSYPROVIDER`,iCTI_pmsihad:`PMSIHADPROVIDER`,iCTI_pmsissr:`PMSISSRPROVIDER`,iCTI_rh:`RHPROVIDER`,iCTI_compta:`COMPTAPROVIDER`,iCTI_eco:`ECOPROVIDER`,iCTI_dpi:`DPIPROVIDER`},x=()=>{let e=m(),t=l(),n=e.data?.envs??[],r=e.data?.timestamp,i=t.data,[s,_]=(0,h.useState)([`Synthèse`]),[x,S]=(0,h.useState)(!1);(0,h.useEffect)(()=>{if(n.length){let e=[];n.forEach(t=>{t.jobs.forEach(t=>{let n=``;switch(t.job){case`iCTI_consolidation_pmsi`:n=`iCTI_pmsi`;break;case`iCTI_import_activite_consolidation`:n=`iCTI_activite`;break;default:n=t.job.replace(/iCTI_(import_)?/,``);break}d[n]&&!e.includes(n)&&e.push(n)})}),_(e)}},[n]);let C=()=>{e.refetch()},w=e=>n.filter(t=>t.jobs.some(t=>e===`rss_rsf_en_cours`&&t.job.includes(`pmsi`)?!0:t.job.includes(e))).sort((e,t)=>e.code.localeCompare(t.code)).map(t=>{let n=t.jobs.find(t=>e===`rss_rsf`?t.job.includes(e)&&!t.job.includes(`en_cours`):e===`rss_rsf_en_cours`&&t.job.includes(`pmsi`)?!0:t.job.includes(e));if(n){let r=n.status,i=n.running;return(0,v.jsx)(y,{status:r,running:i,env:t,provider:Object.keys(t.settings).length?t.settings[b[d[e].module]]:``,duration:n.duration,start:n.start},t.code)}else return null});return!e.isFetching&&!i?.environment?.ISEXPLOIT?(0,v.jsx)(o,{icon:(0,v.jsx)(p,{}),title:`Cette fonctionnalité n'est pas encore disponible sur votre serveur.`}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(`div`,{className:`component-header`,children:[(0,v.jsxs)(`div`,{className:`header-title`,children:[i?.environment?.ISEXPLOIT===`1`?`Résumé Exploitation Serveur `:`Résumé Exploitation `,`(dernière mise à jour: `,(0,g.default)(r).format(`HH:mm`),`)`]}),(0,v.jsxs)(`div`,{className:`header-actions`,children:[(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`div`,{className:`actions-label`,children:`Afficher les jobs CTI:`}),(0,v.jsx)(u,{checked:x,onChange:e=>S(e)})]}),(0,v.jsx)(a,{onClick:C,type:`primary`,loading:e.isFetching,disabled:e.isFetching,icon:(0,v.jsx)(c,{}),children:`Rafraichir`})]})]}),(0,v.jsx)(`div`,{className:`component-content`,children:(0,v.jsx)(f,{items:[{label:`Synthèse`,key:`total`,children:(0,v.jsx)(`div`,{className:`exploit-module`,children:(e=>{if(e)return n.sort((e,t)=>e.code.localeCompare(t.code)).map(e=>(0,v.jsx)(y,{status:e.jobs.map(e=>e.status).includes(-1)?-1:e.jobs.reduce((e,t)=>(x||d[t.module])&&t.status>e?t.status:e,0),running:0,env:e,provider:``},e.code));{let e=n.find(e=>e.code===i?.environment?.ICTIDIR?.replace(`iCTI_`,``));if(e)return e.jobs.map(t=>{let n=t.module===t.job?t.job.replace(/iCTI_(import_)?/,``):t.module,r=Object.keys(e.settings).length&&d[t.module]?e.settings[b[d[t.module].module]]:null;return x||d[n]?(0,v.jsx)(y,{status:t.status,running:t.running,env:e,provider:r,duration:t.duration,start:t.start,module:d[n]?d[n].label:n},t.job):null})}})(i?.environment?.ISEXPLOIT===`1`)})},{tabsItems:()=>{let e=[];return i?.environment?.ISEXPLOIT===`1`&&(e=s.map(e=>({label:d[e]?.label??e,key:e,children:(0,v.jsx)(`div`,{className:`exploit-module`,children:w(e)})}))),e}}]})})]})};export{x as default}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r}from"./axios-GfLWCH1-.js";import{l as i}from"./ctiAxios-uIjEIJkB.js";import{t as a}from"./button-DFsG8yVP.js";import{$ as o,B as s,H as c,I as l,Q as u,_ as d,mt as f,z as p}from"./index-BXgKcVQP.js";import{t as m}from"./logs.queries-DrNd_GFf.js";var h=e(t()),g=e(i()),_=e(r()),v=n(),y=({status:e,env:t,provider:n,module:r,duration:i,start:a,running:o})=>{let c=l().data,u=window.location,d=u.origin,f=u.pathname.replace(c?.environment?.ICTIDIR??``,`iCTI_${t.code}`),p=``,m=``;switch(e){case 0:p=`rgb(240, 255, 241)`,m=`3px solid rgb(124, 217, 146)`;break;case 1:p=`rgb(254, 255, 240)`,m=`3px solid rgb(247, 228, 99)`;break;case 2:p=`rgb(255, 242, 240)`,m=`3px solid rgb(235, 96, 96)`;break;case-1:p=`rgb(211,211,211)`,m=`3px solid rgb(122, 122, 122)`;break;default:break}return(0,v.jsx)(`a`,{href:d+f,target:`_blank`,rel:`noreferrer`,children:(0,v.jsxs)(`div`,{className:`exploit-env`,style:{backgroundColor:p,border:m},children:[(0,v.jsxs)(`div`,{className:`exploit-label`,children:[o===1&&(0,v.jsx)(s,{className:`exploit__icon`,spin:!0}),r??`${t.code} - ${t.trig&&t.trig!==``?t.trig+` - `:``}${t.comment}`]}),a&&(0,v.jsxs)(`div`,{className:`exploit-duration`,children:[`Débuté le `,(0,g.default)(a).format(`DD/MM/YYYY à HH:mm`)]}),i&&(0,v.jsxs)(`div`,{className:`exploit-duration`,children:[`Durée: `,i]}),(0,v.jsx)(`div`,{className:`exploit-provider`,children:n})]},r||t.code)})};y.propTypes={status:_.default.number,env:_.default.object,provider:_.default.string,module:_.default.string,duration:_.default.string,start:_.default.string,running:_.default.number};var b={iCTI_activite:`ADMPROVIDER`,iCTI_pmsi:`PMSIPROVIDER`,iCTI_pmsipsy:`PMSIPSYPROVIDER`,iCTI_pmsihad:`PMSIHADPROVIDER`,iCTI_pmsissr:`PMSISSRPROVIDER`,iCTI_rh:`RHPROVIDER`,iCTI_compta:`COMPTAPROVIDER`,iCTI_eco:`ECOPROVIDER`,iCTI_dpi:`DPIPROVIDER`},x=()=>{let e=m(),t=l(),n=e.data?.envs??[],r=e.data?.timestamp,i=t.data,[s,_]=(0,h.useState)([`Synthèse`]),[x,S]=(0,h.useState)(!1);(0,h.useEffect)(()=>{if(n.length){let e=[];n.forEach(t=>{t.jobs.forEach(t=>{let n=``;switch(t.job){case`iCTI_consolidation_pmsi`:n=`iCTI_pmsi`;break;case`iCTI_import_activite_consolidation`:n=`iCTI_activite`;break;default:n=t.job.replace(/iCTI_(import_)?/,``);break}d[n]&&!e.includes(n)&&e.push(n)})}),_(e)}},[n]);let C=()=>{e.refetch()},w=e=>n.filter(t=>t.jobs.some(t=>e===`rss_rsf_en_cours`&&t.job.includes(`pmsi`)?!0:t.job.includes(e))).sort((e,t)=>e.code.localeCompare(t.code)).map(t=>{let n=t.jobs.find(t=>e===`rss_rsf`?t.job.includes(e)&&!t.job.includes(`en_cours`):e===`rss_rsf_en_cours`&&t.job.includes(`pmsi`)?!0:t.job.includes(e));if(n){let r=n.status,i=n.running;return(0,v.jsx)(y,{status:r,running:i,env:t,provider:Object.keys(t.settings).length?t.settings[b[d[e].module]]:``,duration:n.duration,start:n.start},t.code)}else return null});return!e.isFetching&&!i?.environment?.ISEXPLOIT?(0,v.jsx)(o,{icon:(0,v.jsx)(p,{}),title:`Cette fonctionnalité n'est pas encore disponible sur votre serveur.`}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(`div`,{className:`component-header`,children:[(0,v.jsxs)(`div`,{className:`header-title`,children:[i?.environment?.ISEXPLOIT===`1`?`Résumé Exploitation Serveur `:`Résumé Exploitation `,`(dernière mise à jour: `,(0,g.default)(r).format(`HH:mm`),`)`]}),(0,v.jsxs)(`div`,{className:`header-actions`,children:[(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`div`,{className:`actions-label`,children:`Afficher les jobs CTI:`}),(0,v.jsx)(u,{checked:x,onChange:e=>S(e)})]}),(0,v.jsx)(a,{onClick:C,type:`primary`,loading:e.isFetching,disabled:e.isFetching,icon:(0,v.jsx)(c,{}),children:`Rafraichir`})]})]}),(0,v.jsx)(`div`,{className:`component-content`,children:(0,v.jsx)(f,{items:[{label:`Synthèse`,key:`total`,children:(0,v.jsx)(`div`,{className:`exploit-module`,children:(e=>{if(e)return n.sort((e,t)=>e.code.localeCompare(t.code)).map(e=>(0,v.jsx)(y,{status:e.jobs.map(e=>e.status).includes(-1)?-1:e.jobs.reduce((e,t)=>(x||d[t.module])&&t.status>e?t.status:e,0),running:0,env:e,provider:``},e.code));{let e=n.find(e=>e.code===i?.environment?.ICTIDIR?.replace(`iCTI_`,``));if(e)return e.jobs.map(t=>{let n=t.module===t.job?t.job.replace(/iCTI_(import_)?/,``):t.module,r=Object.keys(e.settings).length&&d[t.module]?e.settings[b[d[t.module].module]]:null;return x||d[n]?(0,v.jsx)(y,{status:t.status,running:t.running,env:e,provider:r,duration:t.duration,start:t.start,module:d[n]?d[n].label:n},t.job):null})}})(i?.environment?.ISEXPLOIT===`1`)})},{tabsItems:()=>{let e=[];return i?.environment?.ISEXPLOIT===`1`&&(e=s.map(e=>({label:d[e]?.label??e,key:e,children:(0,v.jsx)(`div`,{className:`exploit-module`,children:w(e)})}))),e}}]})})]})};export{x as default}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Fn as n,Pn as r,kt as i}from"./axios-BbX9YWYe.js";var a=e(t());n();var o={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z`}}]},name:`import`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(i,r(r({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Nn as n,Ot as r,Pn as i}from"./axios-GfLWCH1-.js";var a=e(t());i();var o={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z`}}]},name:`import`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(r,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Fn as n,Pn as r,kt as i}from"./axios-BbX9YWYe.js";var a=e(t());n();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M365.3 518.5l246 178c5.3 3.8 12.7 0 12.7-6.5v-46.9c0-10.2-4.9-19.9-13.2-25.9L465.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5l-246 178a8.05 8.05 0 000 13z`}},{tag:`path`,attrs:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z`}}]},name:`left-square`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(i,r(r({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Nn as n,Ot as r,Pn as i}from"./axios-GfLWCH1-.js";var a=e(t());i();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M365.3 518.5l246 178c5.3 3.8 12.7 0 12.7-6.5v-46.9c0-10.2-4.9-19.9-13.2-25.9L465.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5l-246 178a8.05 8.05 0 000 13z`}},{tag:`path`,attrs:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z`}}]},name:`left-square`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(r,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{a as r}from"./axios-BbX9YWYe.js";import{t as i}from"./index.esm-BWCs920B.js";import{t as a}from"./input-CAHxss7C.js";import{l as o}from"./ctiAxios-BMu1IxXE.js";import{t as s}from"./button-CGra0C8Y.js";import{n as c,t as l}from"./row-4XqGKqJp.js";import{t as u}from"./useMutation-BZFnlhBo.js";import{t as d}from"./UndoOutlined-eQ49Nx19.js";import{t as f}from"./Loader-BunwQzlz.js";import{F as p,G as m,K as h,Q as g,et as _,g as v,h as y,m as b,p as x,s as S}from"./index-cqbbFfLv.js";function C(){let e=r();return u({mutationFn:e=>v(e),meta:{successMessage:`Licence ajoutée`,errorMessage:`Erreur lors de l'ajout de la licence`},onSettled:async()=>{await e.invalidateQueries({queryKey:y.all})}})}var w=e(t()),T=n(),E=[{title:`Modules installés`,dataKey:`label`,key:`label`,width:250,dataGetter:({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:i})=>(0,T.jsxs)(`div`,{children:[r.label,` `,(0,T.jsx)(`span`,{style:{float:`right`},children:r.licenceOK===`OK`?(0,T.jsx)(h,{twoToneColor:`#52c41a`}):(0,T.jsx)(m,{twoToneColor:`#cf1322`})})]})},{title:`Code`,dataKey:`softCode`,key:`softCode`,width:250},{title:`Expiration`,dataKey:`licenceDate`,key:`licenceDate`,width:250},{title:`Type`,dataKey:`licenceType`,key:`licenceType`,width:250}],D=[{title:`Licences serveur installées`,dataKey:`machineName`,key:`machineName`,width:250},{title:`FINESS`,dataKey:`finess`,key:`finess`,width:250,dataGetter:({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:i})=>(0,T.jsxs)(`div`,{children:[r.finess,(0,T.jsx)(`span`,{style:{float:`right`},children:r.finessOK===`true`?(0,T.jsx)(h,{twoToneColor:`#52c41a`}):(0,T.jsx)(m,{twoToneColor:`#cf1322`})})]})},{title:`Module`,dataKey:`softCode`,key:`softCode`,width:250},{title:`Date expiration`,dataKey:`endDate`,key:`endDate`,width:250,dataGetter:({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:i})=>(0,T.jsxs)(`div`,{children:[r.endDate,(0,T.jsx)(`span`,{style:{float:`right`},children:r.endDateOK===`true`?(0,T.jsx)(h,{twoToneColor:`#52c41a`}):(0,T.jsx)(m,{twoToneColor:`#cf1322`})})]})}],O=()=>{let e=b(),t=C(),n=e.data??x,[r,u]=(0,w.useState)(!1),[m,h]=(0,w.useState)(``),[v,O]=(0,w.useState)(!1),k=()=>{o.invalidateQueries({queryKey:y.all})},A=e=>{u(e)},j=()=>{O(!v)};return e.isPending?(0,T.jsx)(`div`,{className:`loading-wrapper`,children:(0,T.jsx)(f,{style:{height:`auto`}})}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(i,{children:(0,T.jsx)(`title`,{children:`iCTI | Gestion des licences`})}),(0,T.jsx)(_,{open:v,onCancel:j,onOk:()=>{t.mutate(m,{onSuccess:()=>{h(``),j()}})},okText:`Ajouter`,cancelText:`Annuler`,confirmLoading:t.isPending,title:`Ajouter une licence`,children:(0,T.jsx)(`div`,{className:`form-row`,children:(0,T.jsxs)(`div`,{className:`form-item`,children:[(0,T.jsx)(`span`,{className:`first-label`,children:`Clé de la licence`}),(0,T.jsx)(a,{value:m,onChange:e=>{h(e.target.value)}})]})})}),(0,T.jsxs)(`div`,{className:`component-header`,children:[(0,T.jsx)(`div`,{className:`header-title`,children:`Gestions des licences`}),(0,T.jsxs)(`div`,{className:`header-actions`,children:[(0,T.jsx)(p,{title:`Actualiser`,children:(0,T.jsx)(s,{type:`link`,onClick:k,children:(0,T.jsx)(d,{})})}),(0,T.jsx)(s,{type:`primary`,onClick:j,children:`Ajouter une licence`})]})]}),(0,T.jsx)(`div`,{className:`licences-info`,children:(0,T.jsxs)(l,{children:[(0,T.jsxs)(c,{span:12,children:[(0,T.jsxs)(`div`,{className:`licences-info-row`,children:[(0,T.jsx)(`span`,{children:`FINESS :`}),n.env.FINESS]}),(0,T.jsxs)(`div`,{className:`licences-info-row`,children:[(0,T.jsx)(`span`,{children:`Serveur :`}),n.session.SERVERNAME]})]}),(0,T.jsx)(c,{span:12,children:(0,T.jsxs)(`div`,{className:`settings-single-check`,children:[(0,T.jsx)(g,{size:`small`,className:`switch`,checked:r,onChange:A}),(0,T.jsx)(`span`,{children:`Afficher les licences installées`})]})})]})}),(0,T.jsx)(`div`,{className:`component-content`,children:r?(0,T.jsx)(S,{columns:D,data:n.licences}):(0,T.jsx)(S,{columns:E,data:n.modules})})]})};O.propTypes={};export{O as default}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{a as r}from"./axios-GfLWCH1-.js";import{t as i}from"./index.esm-C-Cs05Yh.js";import{t as a}from"./input-ByI0RFd4.js";import{c as o}from"./ctiAxios-uIjEIJkB.js";import{t as s}from"./button-DFsG8yVP.js";import{n as c,t as l}from"./row-CONsHjj-.js";import{t as u}from"./useMutation-BmXoCM97.js";import{t as d}from"./UndoOutlined-BnvPIRYq.js";import{t as f}from"./Loader-QYhFJtwm.js";import{F as p,G as m,K as h,Q as g,et as _,g as v,h as y,m as b,p as x,s as S}from"./index-BXgKcVQP.js";function C(){let e=r();return u({mutationFn:e=>v(e),meta:{successMessage:`Licence ajoutée`,errorMessage:`Erreur lors de l'ajout de la licence`},onSettled:async()=>{await e.invalidateQueries({queryKey:y.all})}})}var w=e(t()),T=n(),E=[{title:`Modules installés`,dataKey:`label`,key:`label`,width:250,dataGetter:({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:i})=>(0,T.jsxs)(`div`,{children:[r.label,` `,(0,T.jsx)(`span`,{style:{float:`right`},children:r.licenceOK===`OK`?(0,T.jsx)(h,{twoToneColor:`#52c41a`}):(0,T.jsx)(m,{twoToneColor:`#cf1322`})})]})},{title:`Code`,dataKey:`softCode`,key:`softCode`,width:250},{title:`Expiration`,dataKey:`licenceDate`,key:`licenceDate`,width:250},{title:`Type`,dataKey:`licenceType`,key:`licenceType`,width:250}],D=[{title:`Licences serveur installées`,dataKey:`machineName`,key:`machineName`,width:250},{title:`FINESS`,dataKey:`finess`,key:`finess`,width:250,dataGetter:({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:i})=>(0,T.jsxs)(`div`,{children:[r.finess,(0,T.jsx)(`span`,{style:{float:`right`},children:r.finessOK===`true`?(0,T.jsx)(h,{twoToneColor:`#52c41a`}):(0,T.jsx)(m,{twoToneColor:`#cf1322`})})]})},{title:`Module`,dataKey:`softCode`,key:`softCode`,width:250},{title:`Date expiration`,dataKey:`endDate`,key:`endDate`,width:250,dataGetter:({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:i})=>(0,T.jsxs)(`div`,{children:[r.endDate,(0,T.jsx)(`span`,{style:{float:`right`},children:r.endDateOK===`true`?(0,T.jsx)(h,{twoToneColor:`#52c41a`}):(0,T.jsx)(m,{twoToneColor:`#cf1322`})})]})}],O=()=>{let e=b(),t=C(),n=e.data??x,[r,u]=(0,w.useState)(!1),[m,h]=(0,w.useState)(``),[v,O]=(0,w.useState)(!1),k=()=>{o.invalidateQueries({queryKey:y.all})},A=e=>{u(e)},j=()=>{O(!v)};return e.isPending?(0,T.jsx)(`div`,{className:`loading-wrapper`,children:(0,T.jsx)(f,{style:{height:`auto`}})}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(i,{children:(0,T.jsx)(`title`,{children:`iCTI | Gestion des licences`})}),(0,T.jsx)(_,{open:v,onCancel:j,onOk:()=>{t.mutate(m,{onSuccess:()=>{h(``),j()}})},okText:`Ajouter`,cancelText:`Annuler`,confirmLoading:t.isPending,title:`Ajouter une licence`,children:(0,T.jsx)(`div`,{className:`form-row`,children:(0,T.jsxs)(`div`,{className:`form-item`,children:[(0,T.jsx)(`span`,{className:`first-label`,children:`Clé de la licence`}),(0,T.jsx)(a,{value:m,onChange:e=>{h(e.target.value)}})]})})}),(0,T.jsxs)(`div`,{className:`component-header`,children:[(0,T.jsx)(`div`,{className:`header-title`,children:`Gestions des licences`}),(0,T.jsxs)(`div`,{className:`header-actions`,children:[(0,T.jsx)(p,{title:`Actualiser`,children:(0,T.jsx)(s,{type:`link`,onClick:k,children:(0,T.jsx)(d,{})})}),(0,T.jsx)(s,{type:`primary`,onClick:j,children:`Ajouter une licence`})]})]}),(0,T.jsx)(`div`,{className:`licences-info`,children:(0,T.jsxs)(l,{children:[(0,T.jsxs)(c,{span:12,children:[(0,T.jsxs)(`div`,{className:`licences-info-row`,children:[(0,T.jsx)(`span`,{children:`FINESS :`}),n.env.FINESS]}),(0,T.jsxs)(`div`,{className:`licences-info-row`,children:[(0,T.jsx)(`span`,{children:`Serveur :`}),n.session.SERVERNAME]})]}),(0,T.jsx)(c,{span:12,children:(0,T.jsxs)(`div`,{className:`settings-single-check`,children:[(0,T.jsx)(g,{size:`small`,className:`switch`,checked:r,onChange:A}),(0,T.jsx)(`span`,{children:`Afficher les licences installées`})]})})]})}),(0,T.jsx)(`div`,{className:`component-content`,children:r?(0,T.jsx)(S,{columns:D,data:n.licences}):(0,T.jsx)(S,{columns:E,data:n.modules})})]})};O.propTypes={};export{O as default}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r}from"./axios-BbX9YWYe.js";import{r as i}from"./react-redux-rciCADVi.js";t();var a=e(r()),o=n(),s=({style:e={},size:t})=>{i(e=>e.cti.ui.primaryColor);let n={...e};if(t)switch(t){case`small`:n.transform=`scale(0.5)`;break;default:break}return(0,o.jsx)(`div`,{className:`cti-loader`,style:n,children:(0,o.jsxs)(`div`,{className:`sk-folding-cube`,children:[(0,o.jsx)(`div`,{className:`sk-cube1 sk-cube`}),(0,o.jsx)(`div`,{className:`sk-cube2 sk-cube`}),(0,o.jsx)(`div`,{className:`sk-cube4 sk-cube`}),(0,o.jsx)(`div`,{className:`sk-cube3 sk-cube`})]})})};s.propTypes={style:a.default.object,size:a.default.string};export{s as t}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r}from"./axios-GfLWCH1-.js";import{r as i}from"./react-redux-H1MKEL0D.js";t();var a=e(r()),o=n(),s=({style:e={},size:t})=>{i(e=>e.cti.ui.primaryColor);let n={...e};if(t)switch(t){case`small`:n.transform=`scale(0.5)`;break;default:break}return(0,o.jsx)(`div`,{className:`cti-loader`,style:n,children:(0,o.jsxs)(`div`,{className:`sk-folding-cube`,children:[(0,o.jsx)(`div`,{className:`sk-cube1 sk-cube`}),(0,o.jsx)(`div`,{className:`sk-cube2 sk-cube`}),(0,o.jsx)(`div`,{className:`sk-cube4 sk-cube`}),(0,o.jsx)(`div`,{className:`sk-cube3 sk-cube`})]})})};s.propTypes={style:a.default.object,size:a.default.string};export{s as t}; | |||||
| @ -1 +0,0 @@ | |||||
| .logs-table{height:100%}.logs-cache-pre{background:#f5f5f5;border-radius:4px;flex:1;margin:0;padding:12px;font-size:12px;overflow:auto} | |||||
| @ -1 +0,0 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{et as r}from"./axios-BbX9YWYe.js";import{c as i,l as a}from"./ctiAxios-BMu1IxXE.js";import{S as o}from"./notification-BAy1NkPD.js";import{t as s}from"./button-CGra0C8Y.js";import{n as c}from"./chunk-4N6VE7H7-BV8msCgV.js";import{I as l,pt as u,s as d}from"./index-cqbbFfLv.js";import{n as f}from"./logs.queries-CUsAtrhc.js";var p=e(t()),m=n(),h=async()=>{let e=await o.getItem(`REACT_QUERY_OFFLINE_CACHE`);return e?(i(e)?.clientState?.queries??[]).map(e=>({queryKey:e.queryKey,status:e.state?.status??`—`,dataUpdatedAt:e.state?.dataUpdatedAt?new Date(e.state.dataUpdatedAt).toLocaleString():`—`,data:e.state?.data})):[]},g=()=>{let e=f(),t=l(),n=e.data??[],i=t.data?.session,[o,g]=(0,p.useState)(`logs`),[_,v]=(0,p.useState)([]),y=(0,p.useRef)(null);(0,p.useEffect)(()=>{if(o!==`cache`)return;let e=async()=>{v(await h())};e();let t=a.getQueryCache().subscribe(()=>{clearTimeout(y.current),y.current=setTimeout(e,1500)});return()=>{t(),clearTimeout(y.current)}},[o]);let b=()=>{e.refetch()},x=[{title:`Id`,dataKey:`id`},{title:`Date`,dataKey:`createdAt`,width:150},{title:`Code`,dataKey:`code`,width:100},{title:`Count`,dataKey:`count`,width:100},{title:`Erreur`,dataKey:`error`,width:200},{title:`Texte`,dataKey:`text`,width:200},{title:`Message`,dataKey:`message`,width:200},{title:`Utilisateur`,dataKey:`user`,dataGetter:({rowData:e})=>e.extra.user,width:100},{title:`URL`,dataKey:`url`,dataGetter:({rowData:e})=>e.extra.url,width:300}].map(e=>({width:50,resizable:!0,key:e.dataKey,...e}));return i.CONNECTEDUSER===`cti`?(0,m.jsxs)(`div`,{className:`cti-page`,children:[(0,m.jsxs)(`div`,{className:`page-header`,children:[(0,m.jsx)(`div`,{className:`header-title`,children:`Logs`}),(0,m.jsxs)(`div`,{className:`header-actions`,children:[(0,m.jsx)(s,{type:o===`logs`?`primary`:`default`,onClick:()=>g(`logs`),children:`Logs serveur`}),(0,m.jsx)(s,{type:o===`cache`?`primary`:`default`,onClick:()=>g(`cache`),children:`Cache persistant`}),o===`logs`&&(0,m.jsx)(s,{onClick:b,children:`Reload`})]})]}),(0,m.jsxs)(`div`,{className:`page-content`,children:[o===`logs`&&(0,m.jsx)(`div`,{className:`logs-table`,children:(0,m.jsx)(d,{rowKey:`id`,columns:x,data:n,loading:e.isFetching,cellProps:({rowData:e,column:t})=>({onClick:n=>{n.preventDefault();var i=document.createElement(`textarea`);i.value=e[t.dataKey],document.body.appendChild(i),i.select(),document.execCommand(`copy`),document.body.removeChild(i),r.success(`Copié !`)}})})}),o===`cache`&&(0,m.jsx)(`div`,{className:`logs-cache-pre`,children:_===null||_.length===0?(0,m.jsx)(`p`,{children:`Aucun cache persistant trouvé.`}):(0,m.jsx)(u,{children:_.map((e,t)=>(0,m.jsx)(u.Panel,{header:(0,m.jsxs)(`span`,{children:[(0,m.jsx)(`strong`,{children:JSON.stringify(e.queryKey)}),` — `,e.status,` — `,e.dataUpdatedAt]}),children:(0,m.jsx)(`pre`,{style:{margin:0,fontSize:11,overflow:`auto`},children:JSON.stringify(e.data,null,2)})},t))})})]})]}):(0,m.jsx)(c,{to:`/accueil`,replace:!0})};g.propTypes={};export{g as default}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{a as r,n as i,r as a,ur as o}from"./axios-BbX9YWYe.js";import{t as s}from"./index.esm-BWCs920B.js";import{t as c}from"./ctiAxios-BMu1IxXE.js";import{t as l}from"./button-CGra0C8Y.js";import{t as u}from"./DownloadOutlined-CVjXiqM_.js";import{t as d}from"./useMutation-BZFnlhBo.js";import{t as f}from"./queryOptions-Cg9orY1Y.js";import{t as p}from"./UndoOutlined-eQ49Nx19.js";import{F as m,I as h,L as g,N as _,Z as v,s as y,v as b}from"./index-cqbbFfLv.js";import{r as x,t as S}from"./path-DOVY3rux.js";import{i as C}from"./importColumn-DU7XI90I.js";async function w(e){let t=new FormData;return t.append(`action`,`get`),(await c({method:`post`,url:o()+x(e),data:t,headers:{"Content-Type":`multipart/form-data`},responseType:`json`})).data}async function T({id:e,module:t}){if(t===`ssr`){await _.delete(`api/pmsissr/importsOvalide/${e}`);return}let n=new FormData;n.append(`action`,`delete`),n.append(`id`,e),await c({method:`post`,url:o()+x(t),data:n,headers:{"Content-Type":`multipart/form-data`},responseType:`json`})}async function E({file:e,typeEts:t,module:n}){let r=new FormData;return r.append(`action`,`post`),r.append(`fileName`,e.name),r.append(`fileData`,e),r.append(`typeEts`,t),(await c({method:`post`,url:o()+x(n),data:r,headers:{"Content-Type":`multipart/form-data`},responseType:`json`})).data}async function D(e,t){b((await c({method:`get`,url:`${o()}${S(t)}${e}`,responseType:`blob`,headers:{"Content-Type":`multipart/form-data`}})).data,`ovalide.zip`)}var O={all:[`ovalideImports`],list:e=>[...O.all,`list`,e]},k=e=>f({queryKey:O.list(e),queryFn:()=>w(e),enabled:!!e}),A=e=>a(k(e));function j(){let e=r();return d({mutationFn:T,meta:{successMessage:`Import supprimé`,errorMessage:`Erreur lors de la suppression de l'import`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:O.list(r.module)})}})}function M(){let e=r();return d({mutationFn:E,meta:{successMessage:`Fichier importé`,errorMessage:`Erreur lors de l'import du fichier`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:O.list(r.module)})}})}var N=e(t()),P=e(i()),F=n(),I=({module:e})=>{let t=h(),n=A(e),r=j(),i=M(),a=n.data??[],[o,c]=(0,N.useState)(null),d=(0,N.useRef)(),f=()=>{n.refetch()},_=e=>{c(a.find(t=>t.oid===e))},b=()=>{o&&r.mutate({id:o.oid,module:e},{onSuccess:()=>c(null)})},x=()=>{o&&D(o.oid,e)},S=()=>{d.current.click()},w=n=>{let r=n.target.files[0];if(r){let n=t.data?.environment?.TYPEETS;i.mutate({file:r,typeEts:n,module:e})}},T=r.isPending||i.isPending;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(s,{children:(0,F.jsx)(`title`,{children:`iCTI | Gestion des imports`})}),(0,F.jsxs)(`div`,{className:`component-header`,children:[(0,F.jsx)(`div`,{className:`header-title`,children:`Import des fichiers MAT2A/OVALIDE`}),(0,F.jsxs)(`div`,{className:`header-actions`,children:[(0,F.jsx)(m,{title:`Actualiser`,children:(0,F.jsx)(l,{type:`link`,onClick:f,children:(0,F.jsx)(p,{})})}),(0,F.jsx)(m,{title:`Supprimer`,children:(0,F.jsx)(l,{type:`link`,onClick:b,disabled:!o||r.isPending,children:(0,F.jsx)(v,{})})}),(0,F.jsx)(m,{title:`Télécharger le fichier de l'import`,children:(0,F.jsx)(l,{type:`link`,onClick:x,disabled:!o||!o.oid,children:(0,F.jsx)(u,{})})}),(0,F.jsx)(l,{size:`default`,type:`primary`,icon:(0,F.jsx)(g,{}),onClick:S,loading:i.isPending,children:`Importer un fichier`}),(0,F.jsx)(`input`,{type:`file`,ref:d,onChange:w,style:{display:`none`}})]})]}),(0,F.jsx)(`div`,{className:`component-content`,children:(0,F.jsx)(`div`,{className:`ovalide-imports`,children:(0,F.jsx)(y,{rowKey:`oid`,columns:C(e),loading:n.isFetching||T,data:a,selectedRow:o,onRowSelect:_})})})]})};I.propTypes={module:P.default.string};export{I as default}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{a as r,lr as i,n as a,r as o}from"./axios-GfLWCH1-.js";import{t as s}from"./index.esm-C-Cs05Yh.js";import{t as c}from"./ctiAxios-uIjEIJkB.js";import{t as l}from"./button-DFsG8yVP.js";import{t as u}from"./DownloadOutlined-BdA_Yi9Y.js";import{t as d}from"./useMutation-BmXoCM97.js";import{t as f}from"./queryOptions-B35KRSJw.js";import{t as p}from"./UndoOutlined-BnvPIRYq.js";import{F as m,I as h,L as g,N as _,Z as v,s as y,v as b}from"./index-BXgKcVQP.js";import{r as x,t as S}from"./path-Lv4XoihJ.js";import{i as C}from"./importColumn-DU0q1njL.js";async function w(e){let t=new FormData;return t.append(`action`,`get`),(await c({method:`post`,url:i()+x(e),data:t,headers:{"Content-Type":`multipart/form-data`},responseType:`json`})).data}async function T({id:e,module:t}){if(t===`ssr`){await _.delete(`api/pmsissr/importsOvalide/${e}`);return}let n=new FormData;n.append(`action`,`delete`),n.append(`id`,e),await c({method:`post`,url:i()+x(t),data:n,headers:{"Content-Type":`multipart/form-data`},responseType:`json`})}async function E({file:e,typeEts:t,module:n}){let r=new FormData;return r.append(`action`,`post`),r.append(`fileName`,e.name),r.append(`fileData`,e),r.append(`typeEts`,t),(await c({method:`post`,url:i()+x(n),data:r,headers:{"Content-Type":`multipart/form-data`},responseType:`json`})).data}async function D(e,t){b((await c({method:`get`,url:`${i()}${S(t)}${e}`,responseType:`blob`,headers:{"Content-Type":`multipart/form-data`}})).data,`ovalide.zip`)}var O={all:[`ovalideImports`],list:e=>[...O.all,`list`,e]},k=e=>f({queryKey:O.list(e),queryFn:()=>w(e),enabled:!!e}),A=e=>o(k(e));function j(){let e=r();return d({mutationFn:T,meta:{successMessage:`Import supprimé`,errorMessage:`Erreur lors de la suppression de l'import`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:O.list(r.module)})}})}function M(){let e=r();return d({mutationFn:E,meta:{successMessage:`Fichier importé`,errorMessage:`Erreur lors de l'import du fichier`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:O.list(r.module)})}})}var N=e(t()),P=e(a()),F=n(),I=({module:e})=>{let t=h(),n=A(e),r=j(),i=M(),a=n.data??[],[o,c]=(0,N.useState)(null),d=(0,N.useRef)(),f=()=>{n.refetch()},_=e=>{c(a.find(t=>t.oid===e))},b=()=>{o&&r.mutate({id:o.oid,module:e},{onSuccess:()=>c(null)})},x=()=>{o&&D(o.oid,e)},S=()=>{d.current.click()},w=n=>{let r=n.target.files[0];if(r){let n=t.data?.environment?.TYPEETS;i.mutate({file:r,typeEts:n,module:e})}},T=r.isPending||i.isPending;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(s,{children:(0,F.jsx)(`title`,{children:`iCTI | Gestion des imports`})}),(0,F.jsxs)(`div`,{className:`component-header`,children:[(0,F.jsx)(`div`,{className:`header-title`,children:`Import des fichiers MAT2A/OVALIDE`}),(0,F.jsxs)(`div`,{className:`header-actions`,children:[(0,F.jsx)(m,{title:`Actualiser`,children:(0,F.jsx)(l,{type:`link`,onClick:f,children:(0,F.jsx)(p,{})})}),(0,F.jsx)(m,{title:`Supprimer`,children:(0,F.jsx)(l,{type:`link`,onClick:b,disabled:!o||r.isPending,children:(0,F.jsx)(v,{})})}),(0,F.jsx)(m,{title:`Télécharger le fichier de l'import`,children:(0,F.jsx)(l,{type:`link`,onClick:x,disabled:!o||!o.oid,children:(0,F.jsx)(u,{})})}),(0,F.jsx)(l,{size:`default`,type:`primary`,icon:(0,F.jsx)(g,{}),onClick:S,loading:i.isPending,children:`Importer un fichier`}),(0,F.jsx)(`input`,{type:`file`,ref:d,onChange:w,style:{display:`none`}})]})]}),(0,F.jsx)(`div`,{className:`component-content`,children:(0,F.jsx)(`div`,{className:`ovalide-imports`,children:(0,F.jsx)(y,{rowKey:`oid`,columns:C(e),loading:n.isFetching||T,data:a,selectedRow:o,onRowSelect:_})})})]})};I.propTypes={module:P.default.string};export{I as default}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{t as r}from"./index.esm-BWCs920B.js";import{t as i}from"./input-CAHxss7C.js";import{I as a,ot as o}from"./index-cqbbFfLv.js";import{t as s}from"./SaveButton-I18OHpZt.js";import{r as c}from"./users.mutations-B0d-u6q7.js";var l=e(t()),u=n(),d=()=>{let e=a(),t=c(),n=e.data?.session,[d,f]=(0,l.useState)(!1),[p]=o.useForm();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(r,{children:(0,u.jsx)(`title`,{children:`iCTI | Modification du mot de passe`})}),(0,u.jsxs)(`div`,{className:`component-header`,children:[(0,u.jsx)(`h1`,{className:`header-title`,children:`Modification du mot de passe`}),(0,u.jsx)(`div`,{className:`header-actions`,children:(0,u.jsx)(s,{onClick:()=>p.submit(),disabled:!d||t.isPending,loading:t.isPending,toolTipTitle:`Enregistrer`})})]}),(0,u.jsx)(`div`,{className:`component-content`,children:(0,u.jsx)(`div`,{className:`password-form`,children:(0,u.jsxs)(o,{form:p,onValuesChange:()=>{f(!0)},onFinish:e=>{let r=n.CONNECTEDUSER;t.mutate({user:r,password:e.password,newPassword:e.newPassword},{onSuccess:()=>{p.resetFields(),f(!1)}})},children:[(0,u.jsx)(`div`,{className:`row-row`,children:(0,u.jsxs)(`div`,{className:`form-item`,children:[(0,u.jsx)(`span`,{className:`first-label`,children:`Mot de passe actuel :`}),(0,u.jsx)(o.Item,{name:`password`,rules:[{required:!0,message:`Veuillez renseigner ce champ`}],children:(0,u.jsx)(i.Password,{})})]})}),(0,u.jsx)(`div`,{className:`row-row`,children:(0,u.jsxs)(`div`,{className:`form-item`,children:[(0,u.jsx)(`span`,{className:`first-label`,children:`Nouveau mot de passe :`}),(0,u.jsx)(o.Item,{name:`newPassword`,rules:[{required:!0,message:`Veuillez renseigner ce champ`}],children:(0,u.jsx)(i.Password,{})})]})}),(0,u.jsx)(`div`,{className:`row-row`,children:(0,u.jsxs)(`div`,{className:`form-item`,children:[(0,u.jsx)(`span`,{className:`first-label`,children:`Confirmer le nouveau mot de passe :`}),(0,u.jsx)(o.Item,{name:`confirmPassword`,rules:[{required:!0,message:`Veuillez renseigner ce champ`},({getFieldValue:e})=>({validator(t,n){return!n||e(`newPassword`)===n?Promise.resolve():Promise.reject(`Les mots de passes ne sont pas identiques !`)}})],children:(0,u.jsx)(i.Password,{})})]})})]})})})]})};d.propTypes={};export{d as default}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{t as r}from"./index.esm-C-Cs05Yh.js";import{t as i}from"./input-ByI0RFd4.js";import{I as a,ot as o}from"./index-BXgKcVQP.js";import{t as s}from"./SaveButton-B1cQYwWn.js";import{r as c}from"./users.mutations-qKzBHxfg.js";var l=e(t()),u=n(),d=()=>{let e=a(),t=c(),n=e.data?.session,[d,f]=(0,l.useState)(!1),[p]=o.useForm();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(r,{children:(0,u.jsx)(`title`,{children:`iCTI | Modification du mot de passe`})}),(0,u.jsxs)(`div`,{className:`component-header`,children:[(0,u.jsx)(`h1`,{className:`header-title`,children:`Modification du mot de passe`}),(0,u.jsx)(`div`,{className:`header-actions`,children:(0,u.jsx)(s,{onClick:()=>p.submit(),disabled:!d||t.isPending,loading:t.isPending,toolTipTitle:`Enregistrer`})})]}),(0,u.jsx)(`div`,{className:`component-content`,children:(0,u.jsx)(`div`,{className:`password-form`,children:(0,u.jsxs)(o,{form:p,onValuesChange:()=>{f(!0)},onFinish:e=>{let r=n.CONNECTEDUSER;t.mutate({user:r,password:e.password,newPassword:e.newPassword},{onSuccess:()=>{p.resetFields(),f(!1)}})},children:[(0,u.jsx)(`div`,{className:`row-row`,children:(0,u.jsxs)(`div`,{className:`form-item`,children:[(0,u.jsx)(`span`,{className:`first-label`,children:`Mot de passe actuel :`}),(0,u.jsx)(o.Item,{name:`password`,rules:[{required:!0,message:`Veuillez renseigner ce champ`}],children:(0,u.jsx)(i.Password,{})})]})}),(0,u.jsx)(`div`,{className:`row-row`,children:(0,u.jsxs)(`div`,{className:`form-item`,children:[(0,u.jsx)(`span`,{className:`first-label`,children:`Nouveau mot de passe :`}),(0,u.jsx)(o.Item,{name:`newPassword`,rules:[{required:!0,message:`Veuillez renseigner ce champ`}],children:(0,u.jsx)(i.Password,{})})]})}),(0,u.jsx)(`div`,{className:`row-row`,children:(0,u.jsxs)(`div`,{className:`form-item`,children:[(0,u.jsx)(`span`,{className:`first-label`,children:`Confirmer le nouveau mot de passe :`}),(0,u.jsx)(o.Item,{name:`confirmPassword`,rules:[{required:!0,message:`Veuillez renseigner ce champ`},({getFieldValue:e})=>({validator(t,n){return!n||e(`newPassword`)===n?Promise.resolve():Promise.reject(`Les mots de passes ne sont pas identiques !`)}})],children:(0,u.jsx)(i.Password,{})})]})})]})})})]})};d.propTypes={};export{d as default}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r,r as i}from"./axios-BbX9YWYe.js";import{t as a}from"./UndoOutlined-eQ49Nx19.js";import{N as o}from"./index-cqbbFfLv.js";import{t as s}from"./BaseActionButton-BDnQRTZA.js";var c=async()=>(await o.get(`/api/rh/paie/ventilations/eligible-salaries`)).data,l=async e=>(await o.get(`/api/rh/paie/ventilations/${e}/settings`)).data,u=async(e,t)=>(await o.put(`/api/rh/paie/ventilations/${e}/settings`,t)).data,d={all:[`salarieVentilation`],list:()=>[...d.all,`list`],detail:e=>[...d.all,e]},f=[`janvier`,`fevrier`,`mars`,`avril`,`mai`,`juin`,`juillet`,`aout`,`septembre`,`octobre`,`novembre`,`decembre`];function p(e,t){return e.filter(e=>{for(let n in t)if(t[n]?.length>0&&!t[n].includes(e[n]))return!1;return!0})}function m(e,t){return p(e,t).map(e=>e.salarie_id)}var h=e=>{let t=e?.ventilations??[],n=e=>`Etablissement ${e}`,r=t.reduce((e,t)=>{let{yearNumber:r,etablissementId:i,monthName:a,ratio:o,etablissementVentilation:s}=t;return e[r]||(e[r]={}),e[r][i]||(e[r][i]={key:i,etablissement_id:i,label:s||n(i)},f.forEach(t=>{e[r][i][`ratio_${t}`]=null})),e[r][i][`ratio_${a}`]=o,e},{}),i={};for(let e in r)i[e]=Object.values(r[e]);return i};function g(e,t){return Number(e)!==Number(t)}function _(e,t){for(let[n,r]of Object.entries(e)){if(!n.startsWith(`ratio_`))continue;let e=t?.[n]??null;if(!(r==null&&e==null)&&g(r,e))return!0}return!1}var v=(e,t)=>{let n=[],r=t.salarie_id;for(let[t,i]of Object.entries(e))i.forEach(e=>{f.forEach(i=>{let a=`ratio_${i}`;e.hasOwnProperty(a)&&(n=[...n,{yearNumber:Number(t),monthName:i,salarieId:r,etablissementId:e.etablissement_id,etablissementVentilation:e.label??`Non renseigné`,ratio:e[a]??0}])})});return{infos:t,ventilations:n}},y=(e=[])=>i({queryKey:d.list(),queryFn:c,select:t=>e.length>0?t.filter(({salarie_id:t})=>e.includes(t)):t}),b=e=>i({queryKey:d.detail(e),queryFn:()=>l(e),select:e=>({ventilationByYear:h(e),salarieInfo:e.infos})});t();var x=e(r()),S=n(),C=({children:e=`Réinitialiser`,...t})=>(0,S.jsx)(s,{icon:(0,S.jsx)(a,{}),confirmTitle:`Confirmez-vous la réinitialisation ?`,okText:`Réinitialiser`,...t,children:e});C.propTypes={children:x.default.node};export{p as a,g as c,u as d,f as i,v as l,b as n,m as o,y as r,_ as s,C as t,d as u}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r,r as i}from"./axios-GfLWCH1-.js";import{t as a}from"./UndoOutlined-BnvPIRYq.js";import{N as o}from"./index-BXgKcVQP.js";import{t as s}from"./BaseActionButton-C192ydN5.js";var c=async()=>(await o.get(`/api/rh/paie/ventilations/eligible-salaries`)).data,l=async e=>(await o.get(`/api/rh/paie/ventilations/${e}/settings`)).data,u=async(e,t)=>(await o.put(`/api/rh/paie/ventilations/${e}/settings`,t)).data,d={all:[`salarieVentilation`],list:()=>[...d.all,`list`],detail:e=>[...d.all,e]},f=[`janvier`,`fevrier`,`mars`,`avril`,`mai`,`juin`,`juillet`,`aout`,`septembre`,`octobre`,`novembre`,`decembre`];function p(e,t){return e.filter(e=>{for(let n in t)if(t[n]?.length>0&&!t[n].includes(e[n]))return!1;return!0})}function m(e,t){return p(e,t).map(e=>e.salarie_id)}var h=e=>{let t=e?.ventilations??[],n=e=>`Etablissement ${e}`,r=t.reduce((e,t)=>{let{yearNumber:r,etablissementId:i,monthName:a,ratio:o,etablissementVentilation:s}=t;return e[r]||(e[r]={}),e[r][i]||(e[r][i]={key:i,etablissement_id:i,label:s||n(i)},f.forEach(t=>{e[r][i][`ratio_${t}`]=null})),e[r][i][`ratio_${a}`]=o,e},{}),i={};for(let e in r)i[e]=Object.values(r[e]);return i};function g(e,t){return Number(e)!==Number(t)}function _(e,t){for(let[n,r]of Object.entries(e)){if(!n.startsWith(`ratio_`))continue;let e=t?.[n]??null;if(!(r==null&&e==null)&&g(r,e))return!0}return!1}var v=(e,t)=>{let n=[],r=t.salarie_id;for(let[t,i]of Object.entries(e))i.forEach(e=>{f.forEach(i=>{let a=`ratio_${i}`;e.hasOwnProperty(a)&&(n=[...n,{yearNumber:Number(t),monthName:i,salarieId:r,etablissementId:e.etablissement_id,etablissementVentilation:e.label??`Non renseigné`,ratio:e[a]??0}])})});return{infos:t,ventilations:n}},y=(e=[])=>i({queryKey:d.list(),queryFn:c,select:t=>e.length>0?t.filter(({salarie_id:t})=>e.includes(t)):t}),b=e=>i({queryKey:d.detail(e),queryFn:()=>l(e),select:e=>({ventilationByYear:h(e),salarieInfo:e.infos})});t();var x=e(r()),S=n(),C=({children:e=`Réinitialiser`,...t})=>(0,S.jsx)(s,{icon:(0,S.jsx)(a,{}),confirmTitle:`Confirmez-vous la réinitialisation ?`,okText:`Réinitialiser`,...t,children:e});C.propTypes={children:x.default.node};export{p as a,g as c,u as d,f as i,v as l,b as n,m as o,y as r,_ as s,C as t,d as u}; | |||||
| @ -1 +0,0 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Fn as n,Pn as r,kt as i}from"./axios-BbX9YWYe.js";var a=e(t());n();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z`}}]},name:`right`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(i,r(r({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Fn as n,Pn as r,kt as i}from"./axios-BbX9YWYe.js";var a=e(t());n();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M412.7 696.5l246-178c4.4-3.2 4.4-9.7 0-12.9l-246-178c-5.3-3.8-12.7 0-12.7 6.5V381c0 10.2 4.9 19.9 13.2 25.9L558.6 512 413.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5z`}},{tag:`path`,attrs:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z`}}]},name:`right-square`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(i,r(r({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Nn as n,Ot as r,Pn as i}from"./axios-GfLWCH1-.js";var a=e(t());i();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M412.7 696.5l246-178c4.4-3.2 4.4-9.7 0-12.9l-246-178c-5.3-3.8-12.7 0-12.7 6.5V381c0 10.2 4.9 19.9 13.2 25.9L558.6 512 413.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5z`}},{tag:`path`,attrs:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z`}}]},name:`right-square`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(r,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| @ -1,2 +1,2 @@ | |||||
| const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Filter-6hGzrL6X.js","./chunk-jRWAZmH_.js","./jsx-runtime-CEixWuwE.js","./FilterOutline-0NxB8lny.js","./Home-C0KXjxek.js","./HomeOutline-DA8r8OiJ.js","./Hospital-CLc27vPC.js","./Information-Dvaqgobw.js","./NotificationsOutline-COWH5lJd.js","./PeopleOutline-B7nsOh6I.js","./PersonCircleOutline-DFO77GzI.js","./SynthesisOutline-DU1b2CPh.js"])))=>i.map(i=>d[i]); | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{Fn as r,Pn as i,kt as a,n as o}from"./axios-BbX9YWYe.js";import{t as s}from"./preload-helper-D0MDUw1L.js";import{F as c}from"./index-cqbbFfLv.js";var l=e(t());r();var u={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z`}},{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}}]},name:`plus-circle`,theme:`outlined`},d=l.forwardRef(function(e,t){return l.createElement(a,i(i({},e),{},{ref:t,icon:u}))}),f=e(o()),p=n(),m=Object.assign({"../../components/shared/svg/icons/Filter.jsx":()=>s(()=>import(`./Filter-6hGzrL6X.js`).then(e=>e.t),__vite__mapDeps([0,1,2]),import.meta.url),"../../components/shared/svg/icons/FilterOutline.jsx":()=>s(()=>import(`./FilterOutline-0NxB8lny.js`).then(e=>e.t),__vite__mapDeps([3,1,2]),import.meta.url),"../../components/shared/svg/icons/Home.jsx":()=>s(()=>import(`./Home-C0KXjxek.js`).then(e=>e.t),__vite__mapDeps([4,1,2]),import.meta.url),"../../components/shared/svg/icons/HomeOutline.jsx":()=>s(()=>import(`./HomeOutline-DA8r8OiJ.js`).then(e=>e.t),__vite__mapDeps([5,1,2]),import.meta.url),"../../components/shared/svg/icons/Hospital.jsx":()=>s(()=>import(`./Hospital-CLc27vPC.js`),__vite__mapDeps([6,1,2]),import.meta.url),"../../components/shared/svg/icons/Information.jsx":()=>s(()=>import(`./Information-Dvaqgobw.js`).then(e=>e.t),__vite__mapDeps([7,1,2]),import.meta.url),"../../components/shared/svg/icons/NotificationsOutline.jsx":()=>s(()=>import(`./NotificationsOutline-COWH5lJd.js`).then(e=>e.t),__vite__mapDeps([8,1,2]),import.meta.url),"../../components/shared/svg/icons/PeopleOutline.jsx":()=>s(()=>import(`./PeopleOutline-B7nsOh6I.js`),__vite__mapDeps([9,1,2]),import.meta.url),"../../components/shared/svg/icons/PersonCircleOutline.jsx":()=>s(()=>import(`./PersonCircleOutline-DFO77GzI.js`).then(e=>e.t),__vite__mapDeps([10,1,2]),import.meta.url),"../../components/shared/svg/icons/SynthesisOutline.jsx":()=>s(()=>import(`./SynthesisOutline-DU1b2CPh.js`).then(e=>e.n),__vite__mapDeps([11,1,2]),import.meta.url)}),h=(e,t)=>{let[n,r]=(0,l.useState)(null);return(0,l.useEffect)(()=>{let n=!0;return(async()=>{try{let i=[``,`.jsx`,`.tsx`,`.js`,`.ts`],a=null;for(let t of i){let n=`../../components/${e}${t}`;if(m[n]){a=m[n];break}}if(!a){console.error(`Composant non trouvé: ${e}`);return}let o=(await a()).default;n&&r((0,p.jsx)(o,{...t}))}catch(t){console.error(`Erreur lors de l'import de ${e}:`,t)}})(),()=>{n=!1}},[e,t]),n},g=({label:e,isCti:t,icon:n,toolTipLabel:r})=>{let i=h(`shared/svg/icons/${n}`);return(0,p.jsxs)(p.Fragment,{children:[(t===`0`||t===`false`||!t)&&(0,p.jsx)(c,{title:r,children:i}),e]})};g.propTypes={label:f.default.string,isCti:f.default.oneOfType([f.default.string,f.default.bool]),icon:f.default.string};export{d as n,g as t}; | |||||
| const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Filter-COK4Xj7w.js","./chunk-jRWAZmH_.js","./jsx-runtime-CEixWuwE.js","./FilterOutline-CkWX7-De.js","./Home-pCqJVQWy.js","./HomeOutline-BSGKvRto.js","./Hospital-Bgy3F9wN.js","./Information-CUlvFYge.js","./NotificationsOutline-SjBnUW4M.js","./PeopleOutline-BO_hwZS3.js","./PersonCircleOutline-DMIs-KBK.js","./SynthesisOutline-WHFTiyV1.js"])))=>i.map(i=>d[i]); | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{Nn as r,Ot as i,Pn as a,n as o}from"./axios-GfLWCH1-.js";import{t as s}from"./preload-helper-q813TUYk.js";import{F as c}from"./index-BXgKcVQP.js";var l=e(t());a();var u={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z`}},{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}}]},name:`plus-circle`,theme:`outlined`},d=l.forwardRef(function(e,t){return l.createElement(i,r(r({},e),{},{ref:t,icon:u}))}),f=e(o()),p=n(),m=Object.assign({"../../components/shared/svg/icons/Filter.jsx":()=>s(()=>import(`./Filter-COK4Xj7w.js`).then(e=>e.t),__vite__mapDeps([0,1,2]),import.meta.url),"../../components/shared/svg/icons/FilterOutline.jsx":()=>s(()=>import(`./FilterOutline-CkWX7-De.js`).then(e=>e.t),__vite__mapDeps([3,1,2]),import.meta.url),"../../components/shared/svg/icons/Home.jsx":()=>s(()=>import(`./Home-pCqJVQWy.js`).then(e=>e.t),__vite__mapDeps([4,1,2]),import.meta.url),"../../components/shared/svg/icons/HomeOutline.jsx":()=>s(()=>import(`./HomeOutline-BSGKvRto.js`).then(e=>e.t),__vite__mapDeps([5,1,2]),import.meta.url),"../../components/shared/svg/icons/Hospital.jsx":()=>s(()=>import(`./Hospital-Bgy3F9wN.js`),__vite__mapDeps([6,1,2]),import.meta.url),"../../components/shared/svg/icons/Information.jsx":()=>s(()=>import(`./Information-CUlvFYge.js`).then(e=>e.t),__vite__mapDeps([7,1,2]),import.meta.url),"../../components/shared/svg/icons/NotificationsOutline.jsx":()=>s(()=>import(`./NotificationsOutline-SjBnUW4M.js`).then(e=>e.t),__vite__mapDeps([8,1,2]),import.meta.url),"../../components/shared/svg/icons/PeopleOutline.jsx":()=>s(()=>import(`./PeopleOutline-BO_hwZS3.js`),__vite__mapDeps([9,1,2]),import.meta.url),"../../components/shared/svg/icons/PersonCircleOutline.jsx":()=>s(()=>import(`./PersonCircleOutline-DMIs-KBK.js`).then(e=>e.t),__vite__mapDeps([10,1,2]),import.meta.url),"../../components/shared/svg/icons/SynthesisOutline.jsx":()=>s(()=>import(`./SynthesisOutline-WHFTiyV1.js`).then(e=>e.n),__vite__mapDeps([11,1,2]),import.meta.url)}),h=(e,t)=>{let[n,r]=(0,l.useState)(null);return(0,l.useEffect)(()=>{let n=!0;return(async()=>{try{let i=[``,`.jsx`,`.tsx`,`.js`,`.ts`],a=null;for(let t of i){let n=`../../components/${e}${t}`;if(m[n]){a=m[n];break}}if(!a){console.error(`Composant non trouvé: ${e}`);return}let o=(await a()).default;n&&r((0,p.jsx)(o,{...t}))}catch(t){console.error(`Erreur lors de l'import de ${e}:`,t)}})(),()=>{n=!1}},[e,t]),n},g=({label:e,isCti:t,icon:n,toolTipLabel:r})=>{let i=h(`shared/svg/icons/${n}`);return(0,p.jsxs)(p.Fragment,{children:[(t===`0`||t===`false`||!t)&&(0,p.jsx)(c,{title:r,children:i}),e]})};g.propTypes={label:f.default.string,isCti:f.default.oneOfType([f.default.string,f.default.bool]),icon:f.default.string};export{d as n,g as t}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{t as r}from"./index.esm-BWCs920B.js";import{t as i}from"./button-CGra0C8Y.js";import{t as a}from"./table-BEUJPs29.js";import{c as o,s,t as c}from"./chunk-4N6VE7H7-BV8msCgV.js";import{t as l}from"./Loader-BunwQzlz.js";import{a as u,o as d,r as f,t as p}from"./ResetButton-D9kNLvDF.js";var m=e(t()),h=n();function g(){let e=s(),t=o(),[n,g]=(0,m.useState)(e.state?.filteredInfo||{}),_=Object.values(n).filter(Boolean).length!==0,v=f();if(v.status===`pending`)return(0,h.jsx)(`div`,{className:`loading-wrapper`,children:(0,h.jsx)(l,{style:{height:`auto`}})});if(v.status===`error`)return(0,h.jsx)(`p`,{children:`Error :(`});let y=_?u(v.data,n):[...v.data],b=[`matricule`,`nom`,`prenom`,`etablissement_contrat`,`qualification`],x={};b.forEach(e=>{let t=new Set(y?.map(t=>t[e]).filter(Boolean));x[e]=Array.from(t).sort((e,t)=>e.localeCompare(t)).map(e=>({text:e,value:e}))});let S=(n,r,i)=>{g(r),t(e.pathname,{replace:!0,state:{...e.state,filteredInfo:r}})},C=()=>{g({}),t(e.pathname,{replace:!0,state:{...e.state,filteredInfo:{}}})},w=[{title:`Matricule`,dataIndex:`matricule`,key:`matricule`,onFilter:(e,t)=>t.matricule.toString().toLowerCase().includes(e.toLowerCase()),filteredValue:n.matricule||null,filters:x.matricule,filterSearch:!0},{title:`Nom`,dataIndex:`nom`,key:`nom`,filteredValue:n.nom||null,filters:x.nom,filterSearch:!0,onFilter:(e,t)=>t.nom.toString().toLowerCase().includes(e.toLowerCase())},{title:`Prénom`,dataIndex:`prenom`,key:`prenom`,filteredValue:n.prenom||null,filters:x.prenom,onFilter:(e,t)=>t.prenom.toString().toLowerCase().includes(e.toLowerCase()),filterSearch:!0},{title:`Etablissement du contrat`,dataIndex:`etablissement_contrat`,key:`etablissement_contrat`,filteredValue:n.etablissement_contrat||null,filters:x.etablissement_contrat,onFilter:(e,t)=>t.etablissement_contrat.toString().toLowerCase().includes(e.toLowerCase()),filterSearch:!0},{title:`Qualification`,dataIndex:`qualification`,key:`qualification`,filteredValue:n.qualification||null,filters:x.qualification,onFilter:(e,t)=>t.qualification.toString().toLowerCase().includes(e.toLowerCase()),filterSearch:!0},{title:`Action`,dataIndex:``,key:`action`,width:`8%`,render:e=>(0,h.jsx)(c,{to:{pathname:`/rh/ventilations/${e.salarie_id}/settings`,state:{fromSider:!0,filteredSalarieIds:d(v.data,n),filteredInfo:n}},children:(0,h.jsx)(i,{children:`Éditer`})})}];return(0,h.jsxs)(`div`,{className:``,children:[(0,h.jsx)(r,{children:(0,h.jsx)(`title`,{children:`iCTI | Liste des Salariés`})}),(0,h.jsxs)(`div`,{className:`component-header`,children:[(0,h.jsx)(`div`,{className:`header-title`,children:`Liste des Salariés`}),(0,h.jsx)(p,{disabled:!_,onClick:C,children:`Réinitialiser les filtres`})]}),(0,h.jsx)(`div`,{className:`component-content`,children:(0,h.jsx)(a,{columns:w,dataSource:y,pagination:{pageSize:50},scroll:{y:`calc(100vh - 240px)`},onChange:S,size:`small`})})]})}export{g as default}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{t as r}from"./index.esm-C-Cs05Yh.js";import{t as i}from"./button-DFsG8yVP.js";import{t as a}from"./table-B9r972uM.js";import{c as o,s,t as c}from"./chunk-4N6VE7H7-BhgXlIGA.js";import{t as l}from"./Loader-QYhFJtwm.js";import{a as u,o as d,r as f,t as p}from"./ResetButton-B9z5bqz7.js";var m=e(t()),h=n();function g(){let e=s(),t=o(),[n,g]=(0,m.useState)(e.state?.filteredInfo||{}),_=Object.values(n).filter(Boolean).length!==0,v=f();if(v.status===`pending`)return(0,h.jsx)(`div`,{className:`loading-wrapper`,children:(0,h.jsx)(l,{style:{height:`auto`}})});if(v.status===`error`)return(0,h.jsx)(`p`,{children:`Error :(`});let y=_?u(v.data,n):[...v.data],b=[`matricule`,`nom`,`prenom`,`etablissement_contrat`,`qualification`],x={};b.forEach(e=>{let t=new Set(y?.map(t=>t[e]).filter(Boolean));x[e]=Array.from(t).sort((e,t)=>e.localeCompare(t)).map(e=>({text:e,value:e}))});let S=(n,r,i)=>{g(r),t(e.pathname,{replace:!0,state:{...e.state,filteredInfo:r}})},C=()=>{g({}),t(e.pathname,{replace:!0,state:{...e.state,filteredInfo:{}}})},w=[{title:`Matricule`,dataIndex:`matricule`,key:`matricule`,onFilter:(e,t)=>t.matricule.toString().toLowerCase().includes(e.toLowerCase()),filteredValue:n.matricule||null,filters:x.matricule,filterSearch:!0},{title:`Nom`,dataIndex:`nom`,key:`nom`,filteredValue:n.nom||null,filters:x.nom,filterSearch:!0,onFilter:(e,t)=>t.nom.toString().toLowerCase().includes(e.toLowerCase())},{title:`Prénom`,dataIndex:`prenom`,key:`prenom`,filteredValue:n.prenom||null,filters:x.prenom,onFilter:(e,t)=>t.prenom.toString().toLowerCase().includes(e.toLowerCase()),filterSearch:!0},{title:`Etablissement du contrat`,dataIndex:`etablissement_contrat`,key:`etablissement_contrat`,filteredValue:n.etablissement_contrat||null,filters:x.etablissement_contrat,onFilter:(e,t)=>t.etablissement_contrat.toString().toLowerCase().includes(e.toLowerCase()),filterSearch:!0},{title:`Qualification`,dataIndex:`qualification`,key:`qualification`,filteredValue:n.qualification||null,filters:x.qualification,onFilter:(e,t)=>t.qualification.toString().toLowerCase().includes(e.toLowerCase()),filterSearch:!0},{title:`Action`,dataIndex:``,key:`action`,width:`8%`,render:e=>(0,h.jsx)(c,{to:{pathname:`/rh/ventilations/${e.salarie_id}/settings`,state:{fromSider:!0,filteredSalarieIds:d(v.data,n),filteredInfo:n}},children:(0,h.jsx)(i,{children:`Éditer`})})}];return(0,h.jsxs)(`div`,{className:``,children:[(0,h.jsx)(r,{children:(0,h.jsx)(`title`,{children:`iCTI | Liste des Salariés`})}),(0,h.jsxs)(`div`,{className:`component-header`,children:[(0,h.jsx)(`div`,{className:`header-title`,children:`Liste des Salariés`}),(0,h.jsx)(p,{disabled:!_,onClick:C,children:`Réinitialiser les filtres`})]}),(0,h.jsx)(`div`,{className:`component-content`,children:(0,h.jsx)(a,{columns:w,dataSource:y,pagination:{pageSize:50},scroll:{y:`calc(100vh - 240px)`},onChange:S,size:`small`})})]})}export{g as default}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r}from"./axios-BbX9YWYe.js";import{t as i}from"./SaveOutlined-CZUncBxA.js";import{t as a}from"./BaseActionButton-BDnQRTZA.js";t();var o=e(r()),s=n(),c=({children:e=`Enregistrer`,...t})=>(0,s.jsx)(a,{icon:(0,s.jsx)(i,{}),confirmTitle:`Confirmez-vous l'enregistrement ?`,okText:`Enregister`,...t,children:e});c.propTypes={children:o.default.node};export{c as t}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r}from"./axios-GfLWCH1-.js";import{t as i}from"./SaveOutlined-MFwicVtT.js";import{t as a}from"./BaseActionButton-C192ydN5.js";t();var o=e(r()),s=n(),c=({children:e=`Enregistrer`,...t})=>(0,s.jsx)(a,{icon:(0,s.jsx)(i,{}),confirmTitle:`Confirmez-vous l'enregistrement ?`,okText:`Enregister`,...t,children:e});c.propTypes={children:o.default.node};export{c as t}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Fn as n,Pn as r,kt as i}from"./axios-BbX9YWYe.js";var a=e(t());n();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z`}}]},name:`save`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(i,r(r({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Nn as n,Ot as r,Pn as i}from"./axios-GfLWCH1-.js";var a=e(t());i();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z`}}]},name:`save`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(r,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{a as r,n as i,pr as a,r as o,xr as s}from"./axios-BbX9YWYe.js";import{t as c}from"./index.esm-BWCs920B.js";import{i as l}from"./ctiAxios-BMu1IxXE.js";import{a as u}from"./notification-BAy1NkPD.js";import{t as d}from"./button-CGra0C8Y.js";import{t as f}from"./DownloadOutlined-CVjXiqM_.js";import{t as p}from"./useMutation-BZFnlhBo.js";import{t as m}from"./UndoOutlined-eQ49Nx19.js";import{F as h,L as g,s as _,wt as v}from"./index-cqbbFfLv.js";var y={all:[`simulations`],list:e=>[...y.all,e]},b=e=>{let t=e.getElementsByTagName(`HTTP_SERVICE`)[0];return s(a(t,`FILE`))},x=e=>{let t=e.getElementsByTagName(`HTTP_SERVICE`)[0];return s(a(t,`RETURN`))[0]},S=`modules/pmsi/php/PMSI_simulation.php`;async function C(e){let t=await l(S,{operation:`get_list`,FG_YEAR:e});return{simulations:b(t),message:x(t)}}async function w(e){await l(S,{operation:`send_file`,FG_YEAR:e})}async function T(e,t){let n=x(await l(S,{operation:`get_file`,FG_YEAR:e,file:t}));if(n.code!==`OK`)throw Error(n.message);return n}async function E(e,t){let n=x(await l(S,{operation:`trt_file`,FG_YEAR:e,file:t}));if(n.code!==`OK`)throw Error(n.message);return n}function D(e){return o({queryKey:y.list(e),queryFn:()=>C(e),enabled:!!e})}function O(){let e=r();return p({mutationFn:({year:e})=>w(e),meta:{successMessage:`Séjours non groupés envoyés`,errorMessage:`Erreur lors de l'envoi des séjours`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:y.list(r.year)})}})}function k(){let e=r();return p({mutationFn:async({year:e,file:t})=>{await T(e,t),u({type:`info`,message:`Simulation`,description:`Séjours groupés téléchargés, lancement des traitements`}),await E(e,t)},meta:{successMessage:`Traitements terminés`,errorMessage:`Erreur lors du téléchargement des séjours groupés`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:y.list(r.year)})}})}var A=e(t()),j=e(i()),M=[{title:`Séjour téléversés`,dataKey:`fg0_name`,key:`fg0_name`,width:300,resizable:!0,flexGrow:1},{title:`Date de téléversement`,dataKey:`fg0_remote_date`,key:`fg0_remote_date`,width:300,resizable:!0},{title:`Taille`,dataKey:`fg0_size`,key:`fg0_size`,cellRenderer:({cellData:e})=>`${e/1e3} Ko`,width:300,resizable:!0},{title:`Groupé par CTI`,dataKey:`fg1_remote_date`,key:`fg1_remote_date`,width:300,resizable:!0}],N=n(),P=({year:e})=>{let t=D(e),n=O(),r=k(),i=t.data?.simulations??[],a=t.data?.message??{},[o,s]=(0,A.useState)({}),l=()=>{t.refetch()},u=()=>{n.mutate({year:e})},p=e=>{s(i.find(t=>t.key===e))},y=()=>{o.fg1_ok===`OUI`&&r.mutate({year:e,file:o.fg1_name})},b=t.isFetching||n.isPending||r.isPending;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(c,{children:(0,N.jsxs)(`title`,{children:[`iCTI | Regroupage `,e]})}),(0,N.jsxs)(`div`,{className:`component-header`,children:[(0,N.jsxs)(`div`,{className:`header-title`,children:[`Regroupage `,e]}),(0,N.jsxs)(`div`,{className:`header-actions`,children:[(0,N.jsx)(h,{title:`Téléverser les séjours vers Web CTI`,children:(0,N.jsxs)(d,{onClick:u,disabled:n.isPending,children:[(0,N.jsx)(g,{}),`Téléverser`]})}),(0,N.jsx)(h,{title:`Télécharger la simulation`,children:(0,N.jsxs)(d,{disabled:o.fg1_ok!==`OUI`||r.isPending,onClick:y,children:[(0,N.jsx)(f,{}),`Télécharger`]})}),(0,N.jsx)(h,{title:`Actualiser`,children:(0,N.jsx)(d,{type:`link`,onClick:l,children:(0,N.jsx)(m,{})})})]})]}),a.warning&&a.warning!==``?(0,N.jsx)(v,{message:a.warning,type:`warning`,showIcon:!0}):null,(0,N.jsx)(`div`,{className:`component-content`,children:(0,N.jsx)(_,{columns:M,data:i,loading:b,fixed:!1,onRowSelect:p,selectedRow:o})})]})};P.propTypes={year:j.default.string};export{P as default}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{a as r,br as i,fr as a,n as o,r as s}from"./axios-GfLWCH1-.js";import{t as c}from"./index.esm-C-Cs05Yh.js";import{i as l}from"./ctiAxios-uIjEIJkB.js";import{a as u}from"./notification-DWCxP4WF.js";import{t as d}from"./button-DFsG8yVP.js";import{t as f}from"./DownloadOutlined-BdA_Yi9Y.js";import{t as p}from"./useMutation-BmXoCM97.js";import{t as m}from"./UndoOutlined-BnvPIRYq.js";import{F as h,L as g,bt as _,s as v}from"./index-BXgKcVQP.js";var y={all:[`simulations`],list:e=>[...y.all,e]},b=e=>{let t=e.getElementsByTagName(`HTTP_SERVICE`)[0];return i(a(t,`FILE`))},x=e=>{let t=e.getElementsByTagName(`HTTP_SERVICE`)[0];return i(a(t,`RETURN`))[0]},S=`modules/pmsi/php/PMSI_simulation.php`;async function C(e){let t=await l(S,{operation:`get_list`,FG_YEAR:e});return{simulations:b(t),message:x(t)}}async function w(e){await l(S,{operation:`send_file`,FG_YEAR:e})}async function T(e,t){let n=x(await l(S,{operation:`get_file`,FG_YEAR:e,file:t}));if(n.code!==`OK`)throw Error(n.message);return n}async function E(e,t){let n=x(await l(S,{operation:`trt_file`,FG_YEAR:e,file:t}));if(n.code!==`OK`)throw Error(n.message);return n}function D(e){return s({queryKey:y.list(e),queryFn:()=>C(e),enabled:!!e})}function O(){let e=r();return p({mutationFn:({year:e})=>w(e),meta:{successMessage:`Séjours non groupés envoyés`,errorMessage:`Erreur lors de l'envoi des séjours`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:y.list(r.year)})}})}function k(){let e=r();return p({mutationFn:async({year:e,file:t})=>{await T(e,t),u({type:`info`,message:`Simulation`,description:`Séjours groupés téléchargés, lancement des traitements`}),await E(e,t)},meta:{successMessage:`Traitements terminés`,errorMessage:`Erreur lors du téléchargement des séjours groupés`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:y.list(r.year)})}})}var A=e(t()),j=e(o()),M=[{title:`Séjour téléversés`,dataKey:`fg0_name`,key:`fg0_name`,width:300,resizable:!0,flexGrow:1},{title:`Date de téléversement`,dataKey:`fg0_remote_date`,key:`fg0_remote_date`,width:300,resizable:!0},{title:`Taille`,dataKey:`fg0_size`,key:`fg0_size`,cellRenderer:({cellData:e})=>`${e/1e3} Ko`,width:300,resizable:!0},{title:`Groupé par CTI`,dataKey:`fg1_remote_date`,key:`fg1_remote_date`,width:300,resizable:!0}],N=n(),P=({year:e})=>{let t=D(e),n=O(),r=k(),i=t.data?.simulations??[],a=t.data?.message??{},[o,s]=(0,A.useState)({}),l=()=>{t.refetch()},u=()=>{n.mutate({year:e})},p=e=>{s(i.find(t=>t.key===e))},y=()=>{o.fg1_ok===`OUI`&&r.mutate({year:e,file:o.fg1_name})},b=t.isFetching||n.isPending||r.isPending;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(c,{children:(0,N.jsxs)(`title`,{children:[`iCTI | Regroupage `,e]})}),(0,N.jsxs)(`div`,{className:`component-header`,children:[(0,N.jsxs)(`div`,{className:`header-title`,children:[`Regroupage `,e]}),(0,N.jsxs)(`div`,{className:`header-actions`,children:[(0,N.jsx)(h,{title:`Téléverser les séjours vers Web CTI`,children:(0,N.jsxs)(d,{onClick:u,disabled:n.isPending,children:[(0,N.jsx)(g,{}),`Téléverser`]})}),(0,N.jsx)(h,{title:`Télécharger la simulation`,children:(0,N.jsxs)(d,{disabled:o.fg1_ok!==`OUI`||r.isPending,onClick:y,children:[(0,N.jsx)(f,{}),`Télécharger`]})}),(0,N.jsx)(h,{title:`Actualiser`,children:(0,N.jsx)(d,{type:`link`,onClick:l,children:(0,N.jsx)(m,{})})})]})]}),a.warning&&a.warning!==``?(0,N.jsx)(_,{message:a.warning,type:`warning`,showIcon:!0}):null,(0,N.jsx)(`div`,{className:`component-content`,children:(0,N.jsx)(v,{columns:M,data:i,loading:b,fixed:!1,onRowSelect:p,selectedRow:o})})]})};P.propTypes={year:j.default.string};export{P as default}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r}from"./axios-BbX9YWYe.js";import{t as i}from"./index.esm-BWCs920B.js";import{t as a}from"./input-CAHxss7C.js";import{i as o}from"./ctiAxios-BMu1IxXE.js";import{a as s}from"./notification-BAy1NkPD.js";import{t as c}from"./button-CGra0C8Y.js";import{t as l}from"./popconfirm-Z3C_yxj0.js";import{t as u}from"./UndoOutlined-eQ49Nx19.js";import{t as d}from"./Loader-BunwQzlz.js";import{F as f,ht as p,ot as m,s as h}from"./index-cqbbFfLv.js";import{a as g,t as _}from"./synchronize.queries-Cwow9Iim.js";var v=e(t()),y=e(r()),b=n(),x=({swfData:e})=>{let[t]=m.useForm(),n=(0,v.useMemo)(()=>{let t=e.split(`|`);return{exe:t[0],title:t[1],options:t.splice(2,t.length-1).filter(e=>e)}},[e]),r=_(n.exe),y=()=>{r.refetch()},x=async()=>{let e=t.getFieldsValue(),r={exe:n.exe},i=``;for(let t in e)e[t]&&(i=`${i}${t} ${e[t]} `);r.args=i,s({type:`success`,message:`Synchronisation`,description:`Synchronisation lancée sur le serveur`}),await o(`modules/outils/php/httpService_synchronizeManager_exec.php`,r),y()};function S(e){return(0,b.jsx)(`div`,{className:`content-table`,children:(0,b.jsx)(h,{columns:g,data:e.map((e,t)=>({...e,key:t})),loading:r.isFetching})})}return!r.data?.jobs||r.isPending?(0,b.jsx)(`div`,{className:`loading-wrapper`,children:(0,b.jsx)(d,{})}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(i,{children:(0,b.jsx)(`title`,{children:`iCTI | Synchronisation`})}),(0,b.jsxs)(`div`,{className:`component-header`,children:[(0,b.jsx)(`div`,{className:`header-title`,children:n.title}),(0,b.jsx)(`div`,{className:`header-actions`,children:(0,b.jsx)(f,{title:`Actualiser`,children:(0,b.jsx)(c,{type:`link`,onClick:y,children:(0,b.jsx)(u,{})})})})]}),(0,b.jsx)(`div`,{className:`component-content`,children:(0,b.jsx)(p,{defaultActiveKey:`1`,items:[{label:`Synchronisation des données`,key:`1`,children:(0,b.jsxs)(b.Fragment,{children:[!n.options||!n.options.length?null:(0,b.jsx)(`div`,{className:`sync-options`,children:(0,b.jsx)(m,{form:t,children:n.options.map(e=>{let t=e.split(`#`)[0],n=e.split(`#`)[1],r=e.split(`#`)[3];return(0,b.jsxs)(`div`,{className:`form-item`,children:[(0,b.jsx)(`div`,{className:`first-label`,children:t}),(0,b.jsx)(m.Item,{name:n,extra:r,children:(0,b.jsx)(a,{})},n)]},n)})})}),(0,b.jsx)(`div`,{style:{display:`flex`,flexDirection:`row`,justifyContent:`center`},children:(0,b.jsxs)(l,{title:`Êtes-vous sur de vouloir lancer la synchronisation ?`,onConfirm:x,children:[(0,b.jsx)(c,{type:`primary`,style:{width:500},children:`Lancer`}),(0,b.jsx)(`p`,{children:r.data.lastJobs[0].last_all_endded})]})})]})},{label:`Historique des travaux`,key:`2`,children:(0,b.jsx)(b.Fragment,{children:S(r.data.jobs)})}]})})]})};x.propTypes={data:y.default.string};var S=v.memo(x);export{S as default}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{n as r}from"./axios-GfLWCH1-.js";import{t as i}from"./index.esm-C-Cs05Yh.js";import{t as a}from"./input-ByI0RFd4.js";import{i as o}from"./ctiAxios-uIjEIJkB.js";import{a as s}from"./notification-DWCxP4WF.js";import{t as c}from"./button-DFsG8yVP.js";import{t as l}from"./popconfirm-pEpGkgTI.js";import{t as u}from"./UndoOutlined-BnvPIRYq.js";import{t as d}from"./Loader-QYhFJtwm.js";import{F as f,mt as p,ot as m,s as h}from"./index-BXgKcVQP.js";import{a as g,t as _}from"./synchronize.queries-Bf3PYkcL.js";var v=e(t()),y=e(r()),b=n(),x=({swfData:e})=>{let[t]=m.useForm(),n=(0,v.useMemo)(()=>{let t=e.split(`|`);return{exe:t[0],title:t[1],options:t.splice(2,t.length-1).filter(e=>e)}},[e]),r=_(n.exe),y=()=>{r.refetch()},x=async()=>{let e=t.getFieldsValue(),r={exe:n.exe},i=``;for(let t in e)e[t]&&(i=`${i}${t} ${e[t]} `);r.args=i,s({type:`success`,message:`Synchronisation`,description:`Synchronisation lancée sur le serveur`}),await o(`modules/outils/php/httpService_synchronizeManager_exec.php`,r),y()};function S(e){return(0,b.jsx)(`div`,{className:`content-table`,children:(0,b.jsx)(h,{columns:g,data:e.map((e,t)=>({...e,key:t})),loading:r.isFetching})})}return!r.data?.jobs||r.isPending?(0,b.jsx)(`div`,{className:`loading-wrapper`,children:(0,b.jsx)(d,{})}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(i,{children:(0,b.jsx)(`title`,{children:`iCTI | Synchronisation`})}),(0,b.jsxs)(`div`,{className:`component-header`,children:[(0,b.jsx)(`div`,{className:`header-title`,children:n.title}),(0,b.jsx)(`div`,{className:`header-actions`,children:(0,b.jsx)(f,{title:`Actualiser`,children:(0,b.jsx)(c,{type:`link`,onClick:y,children:(0,b.jsx)(u,{})})})})]}),(0,b.jsx)(`div`,{className:`component-content`,children:(0,b.jsx)(p,{defaultActiveKey:`1`,items:[{label:`Synchronisation des données`,key:`1`,children:(0,b.jsxs)(b.Fragment,{children:[!n.options||!n.options.length?null:(0,b.jsx)(`div`,{className:`sync-options`,children:(0,b.jsx)(m,{form:t,children:n.options.map(e=>{let t=e.split(`#`)[0],n=e.split(`#`)[1],r=e.split(`#`)[3];return(0,b.jsxs)(`div`,{className:`form-item`,children:[(0,b.jsx)(`div`,{className:`first-label`,children:t}),(0,b.jsx)(m.Item,{name:n,extra:r,children:(0,b.jsx)(a,{})},n)]},n)})})}),(0,b.jsx)(`div`,{style:{display:`flex`,flexDirection:`row`,justifyContent:`center`},children:(0,b.jsxs)(l,{title:`Êtes-vous sur de vouloir lancer la synchronisation ?`,onConfirm:x,children:[(0,b.jsx)(c,{type:`primary`,style:{width:500},children:`Lancer`}),(0,b.jsx)(`p`,{children:r.data.lastJobs[0].last_all_endded})]})})]})},{label:`Historique des travaux`,key:`2`,children:(0,b.jsx)(b.Fragment,{children:S(r.data.jobs)})}]})})]})};x.propTypes={data:y.default.string};var S=v.memo(x);export{S as default}; | |||||
| @ -1 +0,0 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{Fn as r,Pn as i,a,kt as o,n as s}from"./axios-BbX9YWYe.js";import{t as c}from"./index.esm-BWCs920B.js";import{t as l}from"./button-CGra0C8Y.js";import{t as u}from"./popconfirm-Z3C_yxj0.js";import{t as d}from"./useMutation-BZFnlhBo.js";import{t as f}from"./UndoOutlined-eQ49Nx19.js";import{t as p}from"./Loader-BunwQzlz.js";import{F as m,ht as h,s as g}from"./index-cqbbFfLv.js";import{a as _,i as v,n as y,r as b}from"./synchronize.queries-Cwow9Iim.js";var x={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM641.7 520.8L442.3 677.6c-7.4 5.8-18.3.6-18.3-8.8V355.3c0-9.4 10.9-14.7 18.3-8.8l199.4 156.7a11.2 11.2 0 010 17.6z`}}]},name:`play-square`,theme:`filled`};r();var S=e(t()),C=S.forwardRef(function(e,t){return S.createElement(o,i(i({},e),{},{ref:t,icon:x}))});function w(){let e=a();return d({mutationFn:({exePath:e,year:t})=>v(e,t),meta:{successMessage:`Synchronisation lancée sur le serveur`,errorMessage:`Erreur lors du lancement de la synchronisation`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:b.ssaeJobs(r.year)})}})}var T=e(s()),E=n(),D=({softCode:e,year:t})=>{let n=y(t),r=w(),i=()=>{n.refetch()},a=e=>{r.mutate({exePath:e,year:t})};function o(t){return e===`iCTI_ssae`?(0,E.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`},children:t.map(e=>(0,E.jsxs)(`div`,{style:{padding:`10px 20px`},children:[(0,E.jsx)(u,{title:e.confirm,onConfirm:()=>a(e.exe_path),okText:`Lancer la synchronisation`,cancelText:`Annuler`,children:(0,E.jsx)(l,{type:`primary`,icon:(0,E.jsx)(C,{}),children:e.button})}),(0,E.jsx)(`br`,{}),(0,E.jsx)(`span`,{style:{margin:`10px 0px 0px`},children:e.last_status})]},e.button))}):(0,E.jsx)(`div`,{})}function s(e){return(0,E.jsx)(`div`,{className:`content-table`,children:(0,E.jsx)(g,{columns:_,data:e.map((e,t)=>({...e,key:t})),loading:n.isFetching})})}return!n.data?.jobs||n.isPending?(0,E.jsx)(`div`,{className:`loading-wrapper`,children:(0,E.jsx)(p,{})}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(c,{children:(0,E.jsx)(`title`,{children:`iCTI | Synchronisation`})}),(0,E.jsxs)(`div`,{className:`component-header`,children:[(0,E.jsx)(`div`,{className:`header-title`,children:`Synchronisation des données`}),(0,E.jsx)(`div`,{className:`header-actions`,children:(0,E.jsx)(m,{title:`Actualiser`,children:(0,E.jsx)(l,{type:`link`,onClick:i,children:(0,E.jsx)(f,{})})})})]}),(0,E.jsx)(`div`,{className:`component-content`,children:(0,E.jsx)(h,{defaultActiveKey:`1`,items:[{label:`Synchronisation des données`,key:`1`,children:(0,E.jsx)(E.Fragment,{children:o(n.data.execs)})},{label:`Historique des travaux`,key:`2`,children:(0,E.jsx)(E.Fragment,{children:s(n.data.jobs)})}]})})]})};D.propTypes={softCode:T.default.string,year:T.default.string};var O=S.memo(D);export{O as default}; | |||||
| @ -0,0 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{Nn as r,Ot as i,Pn as a,a as o,n as s}from"./axios-GfLWCH1-.js";import{t as c}from"./index.esm-C-Cs05Yh.js";import{t as l}from"./button-DFsG8yVP.js";import{t as u}from"./popconfirm-pEpGkgTI.js";import{t as d}from"./useMutation-BmXoCM97.js";import{t as f}from"./UndoOutlined-BnvPIRYq.js";import{t as p}from"./Loader-QYhFJtwm.js";import{F as m,mt as h,s as g}from"./index-BXgKcVQP.js";import{a as _,i as v,n as y,r as b}from"./synchronize.queries-Bf3PYkcL.js";var x={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM641.7 520.8L442.3 677.6c-7.4 5.8-18.3.6-18.3-8.8V355.3c0-9.4 10.9-14.7 18.3-8.8l199.4 156.7a11.2 11.2 0 010 17.6z`}}]},name:`play-square`,theme:`filled`};a();var S=e(t()),C=S.forwardRef(function(e,t){return S.createElement(i,r(r({},e),{},{ref:t,icon:x}))});function w(){let e=o();return d({mutationFn:({exePath:e,year:t})=>v(e,t),meta:{successMessage:`Synchronisation lancée sur le serveur`,errorMessage:`Erreur lors du lancement de la synchronisation`},onSettled:async(t,n,r)=>{await e.invalidateQueries({queryKey:b.ssaeJobs(r.year)})}})}var T=e(s()),E=n(),D=({softCode:e,year:t})=>{let n=y(t),r=w(),i=()=>{n.refetch()},a=e=>{r.mutate({exePath:e,year:t})};function o(t){return e===`iCTI_ssae`?(0,E.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`},children:t.map(e=>(0,E.jsxs)(`div`,{style:{padding:`10px 20px`},children:[(0,E.jsx)(u,{title:e.confirm,onConfirm:()=>a(e.exe_path),okText:`Lancer la synchronisation`,cancelText:`Annuler`,children:(0,E.jsx)(l,{type:`primary`,icon:(0,E.jsx)(C,{}),children:e.button})}),(0,E.jsx)(`br`,{}),(0,E.jsx)(`span`,{style:{margin:`10px 0px 0px`},children:e.last_status})]},e.button))}):(0,E.jsx)(`div`,{})}function s(e){return(0,E.jsx)(`div`,{className:`content-table`,children:(0,E.jsx)(g,{columns:_,data:e.map((e,t)=>({...e,key:t})),loading:n.isFetching})})}return!n.data?.jobs||n.isPending?(0,E.jsx)(`div`,{className:`loading-wrapper`,children:(0,E.jsx)(p,{})}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(c,{children:(0,E.jsx)(`title`,{children:`iCTI | Synchronisation`})}),(0,E.jsxs)(`div`,{className:`component-header`,children:[(0,E.jsx)(`div`,{className:`header-title`,children:`Synchronisation des données`}),(0,E.jsx)(`div`,{className:`header-actions`,children:(0,E.jsx)(m,{title:`Actualiser`,children:(0,E.jsx)(l,{type:`link`,onClick:i,children:(0,E.jsx)(f,{})})})})]}),(0,E.jsx)(`div`,{className:`component-content`,children:(0,E.jsx)(h,{defaultActiveKey:`1`,items:[{label:`Synchronisation des données`,key:`1`,children:(0,E.jsx)(E.Fragment,{children:o(n.data.execs)})},{label:`Historique des travaux`,key:`2`,children:(0,E.jsx)(E.Fragment,{children:s(n.data.jobs)})}]})})]})};D.propTypes={softCode:T.default.string,year:T.default.string};var O=S.memo(D);export{O as default}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Fn as n,Pn as r,kt as i}from"./axios-BbX9YWYe.js";var a=e(t());n();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z`}}]},name:`undo`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(i,r(r({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Nn as n,Ot as r,Pn as i}from"./axios-GfLWCH1-.js";var a=e(t());i();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z`}}]},name:`undo`,theme:`outlined`},s=a.forwardRef(function(e,t){return a.createElement(r,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{a as r,r as i,ur as a}from"./axios-BbX9YWYe.js";import{t as o}from"./index.esm-BWCs920B.js";import{t as s}from"./ctiAxios-BMu1IxXE.js";import{t as c}from"./button-CGra0C8Y.js";import{t as l}from"./useMutation-BZFnlhBo.js";import{t as u}from"./queryOptions-Cg9orY1Y.js";import{t as d}from"./UndoOutlined-eQ49Nx19.js";import{F as f,L as p,s as m}from"./index-cqbbFfLv.js";var h=`modules/pmsissr/php/PMSI_getImportsValo.php`;async function g(){let e=new FormData;return e.append(`action`,`get`),(await s({method:`post`,url:a()+h,data:e,headers:{"Content-Type":`multipart/form-data`},responseType:`json`})).data}async function _({file:e}){let t=new FormData;return t.append(`action`,`post`),t.append(`fileName`,e.name),t.append(`fileData`,e),(await s({method:`post`,url:a()+h,data:t,headers:{"Content-Type":`multipart/form-data`},responseType:`json`})).data}var v={all:[`valoSsrImports`],list:()=>[...v.all,`list`]},y=()=>u({queryKey:v.list(),queryFn:g}),b=()=>i(y());function x(){let e=r();return l({mutationFn:_,meta:{successMessage:`Fichier importé`,errorMessage:`Erreur lors de l'import du fichier`},onSettled:async()=>{await e.invalidateQueries({queryKey:v.list()})}})}var S=e(t()),C=n(),w=()=>{let e=b(),t=x(),n=e.data?.imports??[],r=(0,S.useRef)(),i=()=>{e.refetch()},a=()=>{r.current.click()},s=e=>{let n=e.target.files[0];n&&t.mutate({file:n})},l=[{title:`Import dans CTI`,dataKey:`date`},{title:`Nombre séjour`,dataKey:`nb_sejours`},{title:`Nombre séjour HC`,dataKey:`nb_sejours_hc`},{title:`Nombre séjour HP`,dataKey:`nb_sejours_hp`},{title:`Nombre séjour non valorisé`,dataKey:`nb_sejours_non_valorises`},{title:`Nombre séjour pédiatrique`,dataKey:`nb_sejours_pediatrique_valorises`},{title:`Année de valorisation`,dataKey:`vclass`},{title:`Coefficient Géographique`,dataKey:`coeffgeo`},{title:`Coefficient Spécialisation`,dataKey:`coeffspe`},{title:`Coefficient prudentiel`,dataKey:`coeffprud`},{title:`Coefficient honoraire`,dataKey:`coeffhono`},{title:`Coefficient transition`,dataKey:`coefftrans`},{title:`Fraction DMA`,dataKey:`fracdma`}].map(e=>({width:100,resizable:!0,key:e.dataKey,...e}));return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(o,{children:(0,C.jsx)(`title`,{children:`iCTI | Gestion des imports`})}),(0,C.jsxs)(`div`,{className:`component-header`,children:[(0,C.jsx)(`div`,{className:`header-title`,children:`Imports VALO SSR`}),(0,C.jsxs)(`div`,{className:`header-actions`,children:[(0,C.jsx)(f,{title:`Actualiser`,children:(0,C.jsx)(c,{type:`link`,onClick:i,children:(0,C.jsx)(d,{})})}),(0,C.jsx)(c,{size:`default`,type:`primary`,icon:(0,C.jsx)(p,{}),onClick:a,loading:t.isPending,children:`Importer un fichier`}),(0,C.jsx)(`input`,{type:`file`,ref:r,onChange:s,style:{display:`none`}})]})]}),(0,C.jsx)(`div`,{className:`component-content`,children:(0,C.jsx)(`div`,{className:`valo-imports`,children:(0,C.jsx)(m,{rowKey:`oid`,columns:l,loading:e.isFetching,data:n})})})]})};export{w as default}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{a as r,lr as i,r as a}from"./axios-GfLWCH1-.js";import{t as o}from"./index.esm-C-Cs05Yh.js";import{t as s}from"./ctiAxios-uIjEIJkB.js";import{t as c}from"./button-DFsG8yVP.js";import{t as l}from"./useMutation-BmXoCM97.js";import{t as u}from"./queryOptions-B35KRSJw.js";import{t as d}from"./UndoOutlined-BnvPIRYq.js";import{F as f,L as p,s as m}from"./index-BXgKcVQP.js";var h=`modules/pmsissr/php/PMSI_getImportsValo.php`;async function g(){let e=new FormData;return e.append(`action`,`get`),(await s({method:`post`,url:i()+h,data:e,headers:{"Content-Type":`multipart/form-data`},responseType:`json`})).data}async function _({file:e}){let t=new FormData;return t.append(`action`,`post`),t.append(`fileName`,e.name),t.append(`fileData`,e),(await s({method:`post`,url:i()+h,data:t,headers:{"Content-Type":`multipart/form-data`},responseType:`json`})).data}var v={all:[`valoSsrImports`],list:()=>[...v.all,`list`]},y=()=>u({queryKey:v.list(),queryFn:g}),b=()=>a(y());function x(){let e=r();return l({mutationFn:_,meta:{successMessage:`Fichier importé`,errorMessage:`Erreur lors de l'import du fichier`},onSettled:async()=>{await e.invalidateQueries({queryKey:v.list()})}})}var S=e(t()),C=n(),w=()=>{let e=b(),t=x(),n=e.data?.imports??[],r=(0,S.useRef)(),i=()=>{e.refetch()},a=()=>{r.current.click()},s=e=>{let n=e.target.files[0];n&&t.mutate({file:n})},l=[{title:`Import dans CTI`,dataKey:`date`},{title:`Nombre séjour`,dataKey:`nb_sejours`},{title:`Nombre séjour HC`,dataKey:`nb_sejours_hc`},{title:`Nombre séjour HP`,dataKey:`nb_sejours_hp`},{title:`Nombre séjour non valorisé`,dataKey:`nb_sejours_non_valorises`},{title:`Nombre séjour pédiatrique`,dataKey:`nb_sejours_pediatrique_valorises`},{title:`Année de valorisation`,dataKey:`vclass`},{title:`Coefficient Géographique`,dataKey:`coeffgeo`},{title:`Coefficient Spécialisation`,dataKey:`coeffspe`},{title:`Coefficient prudentiel`,dataKey:`coeffprud`},{title:`Coefficient honoraire`,dataKey:`coeffhono`},{title:`Coefficient transition`,dataKey:`coefftrans`},{title:`Fraction DMA`,dataKey:`fracdma`}].map(e=>({width:100,resizable:!0,key:e.dataKey,...e}));return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(o,{children:(0,C.jsx)(`title`,{children:`iCTI | Gestion des imports`})}),(0,C.jsxs)(`div`,{className:`component-header`,children:[(0,C.jsx)(`div`,{className:`header-title`,children:`Imports VALO SSR`}),(0,C.jsxs)(`div`,{className:`header-actions`,children:[(0,C.jsx)(f,{title:`Actualiser`,children:(0,C.jsx)(c,{type:`link`,onClick:i,children:(0,C.jsx)(d,{})})}),(0,C.jsx)(c,{size:`default`,type:`primary`,icon:(0,C.jsx)(p,{}),onClick:a,loading:t.isPending,children:`Importer un fichier`}),(0,C.jsx)(`input`,{type:`file`,ref:r,onChange:s,style:{display:`none`}})]})]}),(0,C.jsx)(`div`,{className:`component-content`,children:(0,C.jsx)(`div`,{className:`valo-imports`,children:(0,C.jsx)(m,{rowKey:`oid`,columns:l,loading:e.isFetching,data:n})})})]})};export{w as default}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Fn as n,Pn as r,kt as i}from"./axios-BbX9YWYe.js";var a=e(t());n();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`warning`,theme:`filled`},s=a.forwardRef(function(e,t){return a.createElement(i,r(r({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Nn as n,Ot as r,Pn as i}from"./axios-GfLWCH1-.js";var a=e(t());i();var o={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`warning`,theme:`filled`},s=a.forwardRef(function(e,t){return a.createElement(r,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| @ -1 +1 @@ | |||||
| import{t as e}from"./chunk-jRWAZmH_.js";import{C as t,T as n}from"./_getTag-DviDmB-q.js";var r=e(((e,n)=>{var r=t();n.exports=function(){try{var e=r(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),i=e(((e,t)=>{var n=r();function i(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=i})),a=e(((e,t)=>{var r=i(),a=n(),o=Object.prototype.hasOwnProperty;function s(e,t,n){var i=e[t];(!(o.call(e,t)&&a(i,n))||n===void 0&&!(t in e))&&r(e,t,n)}t.exports=s}));export{i as n,r,a as t}; | |||||
| import{t as e}from"./chunk-jRWAZmH_.js";import{C as t,T as n}from"./_getTag-Df9PzwXO.js";var r=e(((e,n)=>{var r=t();n.exports=function(){try{var e=r(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),i=e(((e,t)=>{var n=r();function i(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=i})),a=e(((e,t)=>{var r=i(),a=n(),o=Object.prototype.hasOwnProperty;function s(e,t,n){var i=e[t];(!(o.call(e,t)&&a(i,n))||n===void 0&&!(t in e))&&r(e,t,n)}t.exports=s}));export{i as n,r,a as t}; | |||||
| @ -1 +1 @@ | |||||
| import{t as e}from"./chunk-jRWAZmH_.js";import{It as t,Pt as n,Rt as r}from"./axios-BbX9YWYe.js";import{S as i,T as a,b as o,l as s,m as c,n as l,t as u,x as d}from"./_getTag-DviDmB-q.js";var f=e(((e,t)=>{var n=`__lodash_hash_undefined__`;function r(e){return this.__data__.set(e,n),this}t.exports=r})),p=e(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),m=e(((e,t)=>{var n=i(),r=f(),a=p();function o(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=r,o.prototype.has=a,t.exports=o})),h=e(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=n})),g=e(((e,t)=>{function n(e,t){return e.has(t)}t.exports=n})),_=e(((e,t)=>{var n=m(),r=h(),i=g(),a=1,o=2;function s(e,t,s,c,l,u){var d=s&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=u.get(e),h=u.get(t);if(m&&h)return m==t&&h==e;var g=-1,_=!0,v=s&o?new n:void 0;for(u.set(e,t),u.set(t,e);++g<f;){var y=e[g],b=t[g];if(c)var x=d?c(b,y,g,t,e,u):c(y,b,g,e,t,u);if(x!==void 0){if(x)continue;_=!1;break}if(v){if(!r(t,function(e,t){if(!i(v,t)&&(y===e||l(y,e,s,c,u)))return v.push(t)})){_=!1;break}}else if(!(y===b||l(y,b,s,c,u))){_=!1;break}}return u.delete(e),u.delete(t),_}t.exports=s})),v=e(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=n})),y=e(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n})),b=e(((e,t)=>{var n=r(),i=o(),s=a(),c=_(),l=v(),u=y(),d=1,f=2,p=`[object Boolean]`,m=`[object Date]`,h=`[object Error]`,g=`[object Map]`,b=`[object Number]`,x=`[object RegExp]`,S=`[object Set]`,C=`[object String]`,w=`[object Symbol]`,T=`[object ArrayBuffer]`,E=`[object DataView]`,D=n?n.prototype:void 0,O=D?D.valueOf:void 0;function k(e,t,n,r,a,o,_){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!o(new i(e),new i(t)));case p:case m:case b:return s(+e,+t);case h:return e.name==t.name&&e.message==t.message;case x:case C:return e==t+``;case g:var v=l;case S:var y=r&d;if(v||=u,e.size!=t.size&&!y)return!1;var D=_.get(e);if(D)return D==t;r|=f,_.set(e,t);var k=c(v(e),v(t),r,a,o,_);return _.delete(e),k;case w:if(O)return O.call(e)==O.call(t)}return!1}t.exports=k})),x=e(((e,t)=>{var n=l(),r=1,i=Object.prototype.hasOwnProperty;function a(e,t,a,o,s,c){var l=a&r,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var f=d;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=!0;c.set(e,t),c.set(t,e);for(var _=l;++f<d;){p=u[f];var v=e[p],y=t[p];if(o)var b=l?o(y,v,p,t,e,c):o(v,y,p,e,t,c);if(!(b===void 0?v===y||s(v,y,a,o,c):b)){g=!1;break}_||=p==`constructor`}if(g&&!_){var x=e.constructor,S=t.constructor;x!=S&&`constructor`in e&&`constructor`in t&&!(typeof x==`function`&&x instanceof x&&typeof S==`function`&&S instanceof S)&&(g=!1)}return c.delete(e),c.delete(t),g}t.exports=a})),S=e(((e,n)=>{var r=d(),i=_(),a=b(),o=x(),l=u(),f=t(),p=c(),m=s(),h=1,g=`[object Arguments]`,v=`[object Array]`,y=`[object Object]`,S=Object.prototype.hasOwnProperty;function C(e,t,n,s,c,u){var d=f(e),_=f(t),b=d?v:l(e),x=_?v:l(t);b=b==g?y:b,x=x==g?y:x;var C=b==y,w=x==y,T=b==x;if(T&&p(e)){if(!p(t))return!1;d=!0,C=!1}if(T&&!C)return u||=new r,d||m(e)?i(e,t,n,s,c,u):a(e,t,b,n,s,c,u);if(!(n&h)){var E=C&&S.call(e,`__wrapped__`),D=w&&S.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return u||=new r,c(O,k,n,s,u)}}return T?(u||=new r,o(e,t,n,s,c,u)):!1}n.exports=C})),C=e(((e,t)=>{var r=S(),i=n();function a(e,t,n,o,s){return e===t?!0:e==null||t==null||!i(e)&&!i(t)?e!==e&&t!==t:r(e,t,n,o,a,s)}t.exports=a}));export{C as t}; | |||||
| import{t as e}from"./chunk-jRWAZmH_.js";import{Ft as t,Lt as n,Nt as r}from"./axios-GfLWCH1-.js";import{S as i,T as a,b as o,l as s,m as c,n as l,t as u,x as d}from"./_getTag-Df9PzwXO.js";var f=e(((e,t)=>{var n=`__lodash_hash_undefined__`;function r(e){return this.__data__.set(e,n),this}t.exports=r})),p=e(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),m=e(((e,t)=>{var n=i(),r=f(),a=p();function o(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=r,o.prototype.has=a,t.exports=o})),h=e(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=n})),g=e(((e,t)=>{function n(e,t){return e.has(t)}t.exports=n})),_=e(((e,t)=>{var n=m(),r=h(),i=g(),a=1,o=2;function s(e,t,s,c,l,u){var d=s&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=u.get(e),h=u.get(t);if(m&&h)return m==t&&h==e;var g=-1,_=!0,v=s&o?new n:void 0;for(u.set(e,t),u.set(t,e);++g<f;){var y=e[g],b=t[g];if(c)var x=d?c(b,y,g,t,e,u):c(y,b,g,e,t,u);if(x!==void 0){if(x)continue;_=!1;break}if(v){if(!r(t,function(e,t){if(!i(v,t)&&(y===e||l(y,e,s,c,u)))return v.push(t)})){_=!1;break}}else if(!(y===b||l(y,b,s,c,u))){_=!1;break}}return u.delete(e),u.delete(t),_}t.exports=s})),v=e(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=n})),y=e(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n})),b=e(((e,t)=>{var r=n(),i=o(),s=a(),c=_(),l=v(),u=y(),d=1,f=2,p=`[object Boolean]`,m=`[object Date]`,h=`[object Error]`,g=`[object Map]`,b=`[object Number]`,x=`[object RegExp]`,S=`[object Set]`,C=`[object String]`,w=`[object Symbol]`,T=`[object ArrayBuffer]`,E=`[object DataView]`,D=r?r.prototype:void 0,O=D?D.valueOf:void 0;function k(e,t,n,r,a,o,_){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!o(new i(e),new i(t)));case p:case m:case b:return s(+e,+t);case h:return e.name==t.name&&e.message==t.message;case x:case C:return e==t+``;case g:var v=l;case S:var y=r&d;if(v||=u,e.size!=t.size&&!y)return!1;var D=_.get(e);if(D)return D==t;r|=f,_.set(e,t);var k=c(v(e),v(t),r,a,o,_);return _.delete(e),k;case w:if(O)return O.call(e)==O.call(t)}return!1}t.exports=k})),x=e(((e,t)=>{var n=l(),r=1,i=Object.prototype.hasOwnProperty;function a(e,t,a,o,s,c){var l=a&r,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var f=d;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=!0;c.set(e,t),c.set(t,e);for(var _=l;++f<d;){p=u[f];var v=e[p],y=t[p];if(o)var b=l?o(y,v,p,t,e,c):o(v,y,p,e,t,c);if(!(b===void 0?v===y||s(v,y,a,o,c):b)){g=!1;break}_||=p==`constructor`}if(g&&!_){var x=e.constructor,S=t.constructor;x!=S&&`constructor`in e&&`constructor`in t&&!(typeof x==`function`&&x instanceof x&&typeof S==`function`&&S instanceof S)&&(g=!1)}return c.delete(e),c.delete(t),g}t.exports=a})),S=e(((e,n)=>{var r=d(),i=_(),a=b(),o=x(),l=u(),f=t(),p=c(),m=s(),h=1,g=`[object Arguments]`,v=`[object Array]`,y=`[object Object]`,S=Object.prototype.hasOwnProperty;function C(e,t,n,s,c,u){var d=f(e),_=f(t),b=d?v:l(e),x=_?v:l(t);b=b==g?y:b,x=x==g?y:x;var C=b==y,w=x==y,T=b==x;if(T&&p(e)){if(!p(t))return!1;d=!0,C=!1}if(T&&!C)return u||=new r,d||m(e)?i(e,t,n,s,c,u):a(e,t,b,n,s,c,u);if(!(n&h)){var E=C&&S.call(e,`__wrapped__`),D=w&&S.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return u||=new r,c(O,k,n,s,u)}}return T?(u||=new r,o(e,t,n,s,c,u)):!1}n.exports=C})),C=e(((e,t)=>{var n=S(),i=r();function a(e,t,r,o,s){return e===t?!0:e==null||t==null||!i(e)&&!i(t)?e!==e&&t!==t:n(e,t,r,o,a,s)}t.exports=a}));export{C as t}; | |||||
| @ -1 +0,0 @@ | |||||
| import{t as e}from"./chunk-jRWAZmH_.js";import{x as t}from"./sanitizeDataUtils-thqQHiub.js";import{i as n}from"./_getTag-DviDmB-q.js";var r=e(((e,r)=>{var i=t(),a=n();function o(e,t){var n=-1,r=a(e)?Array(e.length):[];return i(e,function(e,i,a){r[++n]=t(e,i,a)}),r}r.exports=o}));export{r as t}; | |||||
| @ -0,0 +1 @@ | |||||
| import{t as e}from"./chunk-jRWAZmH_.js";import{x as t}from"./sanitizeDataUtils-CnFUVW7C.js";import{i as n}from"./_getTag-Df9PzwXO.js";var r=e(((e,r)=>{var i=t(),a=n();function o(e,t){var n=-1,r=a(e)?Array(e.length):[];return i(e,function(e,i,a){r[++n]=t(e,i,a)}),r}r.exports=o}));export{r as t}; | |||||
| @ -1 +0,0 @@ | |||||
| import{mr as e,pr as t}from"./axios-BbX9YWYe.js";var n=e=>{let t=e.getElementsByTagName(`HTTP_SERVICE`)[0],n=t.getElementsByTagName(`MYFAVORITES`)[0],a=t.getElementsByTagName(`ALLVIEWS`)[0];return{myFavorites:r(n),allViews:i(a)}},r=(n,i=!1)=>{let a=t(n,`MENUITEM`),o={};return i&&(o=[]),a.length&&a.forEach((t,n)=>{let a=e(t),s=r(t,!0);if(Object.keys(s).length&&(a.children=s),i){o.push(a);return}o[n]=a}),o},i=n=>{let r=t(n,`MENUITEM`),a={};return r.length&&r.forEach((t,n)=>{let r=e(t),o=i(t);Object.keys(o).length&&(r.children=o),a[n]=r}),a};export{r as n,n as t}; | |||||
| @ -0,0 +1 @@ | |||||
| import{fr as e,pr as t}from"./axios-GfLWCH1-.js";var n=e=>{let t=e.getElementsByTagName(`HTTP_SERVICE`)[0],n=t.getElementsByTagName(`MYFAVORITES`)[0],a=t.getElementsByTagName(`ALLVIEWS`)[0];return{myFavorites:r(n),allViews:i(a)}},r=(n,i=!1)=>{let a=e(n,`MENUITEM`),o={};return i&&(o=[]),a.length&&a.forEach((e,n)=>{let a=t(e),s=r(e,!0);if(Object.keys(s).length&&(a.children=s),i){o.push(a);return}o[n]=a}),o},i=n=>{let r=e(n,`MENUITEM`),a={};return r.length&&r.forEach((e,n)=>{let r=t(e),o=i(e);Object.keys(o).length&&(r.children=o),a[n]=r}),a};export{r as n,n as t}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Fn as n,Pn as r,kt as i,mr as a,pr as o,ur as s,vr as c}from"./axios-BbX9YWYe.js";import{i as l}from"./ctiAxios-BMu1IxXE.js";import{O as u}from"./index-cqbbFfLv.js";var d=e(t());n();var f={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z`}}]},name:`file-excel`,theme:`filled`},p=d.forwardRef(function(e,t){return d.createElement(i,r(r({},e),{},{ref:t,icon:f}))}),m=e(u());function h(e){let t=e.getElementsByTagName(`HTTP_SERVICE`)[0];return{schema:a(t).schema,tables:n(t),refTables:r(t)};function n(e){let t={};return o(e,`TABLE`).forEach((e,n)=>{let r=a(e),o=i(e);c(o)||(r.listes=o);let l=s(e);c(l)||(r.groups=l),t[`${r.table_id}-${n}`]=r}),t}function r(e){let t={};return o(e,`REFTABLE`).forEach(e=>{let n=a(e),r=i(e);c(r)||(n.listes=r);let o=s(e);c(o)||(n.groups=o),t[(0,m.default)(n.table_id)]=n}),t}function i(e){let t={};return o(e,`LISTE`).forEach(e=>{let n=a(e);t[(0,m.default)(n.liste_id)]=n}),t}function s(e){let t={};return o(e,`GROUP`).forEach(e=>{let n=a(e),r=s(e);c(r)||(n.groups=r);let o=i(e);c(o)||(n.listes=o),t[(0,m.default)(n.texte)]=n}),t}}function g(e){let t=e.getElementsByTagName(`HTTP_SERVICE`)[0],n=o(t,`LISTE`)[0],r=a(n),i=o(n,`COLUMN`);if(i){let e={};i.forEach(t=>{let n=a(t);e[n.name]=n}),r.columns=e}let s=o(n,`RECORD`);if(s){let e={};s.forEach(t=>{let n=a(t);e[n.oid]=n}),r.records=e}let c=o(n,`OID`);if(c){let e={};c.forEach(t=>{let n=a(t);e[n.code.replace(/\s/gm,``)]=n}),r.oids=e}return r}var _=async e=>h(await l(`modules/base/php/getListes.php`,{softCode:e})),v=async(e,t,n)=>g(await l(`modules/base/php/getListe.php`,{table_id:t,liste_id:n,schema:e})),y=`modules/base/php/setListe.php`;async function b(e){await l(y,e)}async function x(e,t,n,r){await l(y,{action:`refcopy`,softCode:t,refoid:e,schema:n,database:r})}async function S(e){let t=s()+`modules/base/php/getListeSaisieCode.php`,n=new FormData;for(let t in e)n.append(t,e[t]);return(await fetch(t,{method:`POST`,credentials:`include`,cache:`no-cache`,body:n})).json()}var C=/\w*\*?/gm;function w(e,t,n){let r=t.match(C),i=e.filter(e=>r.includes(e.code)?!0:r.length!==1&&r[0]!==``?r.some(t=>t!==``&&t.slice(-1)===`*`?e.code.startsWith(t.slice(0,-1)):!1):!0);if(n){let e=n.match(C);i=i.filter(t=>e.includes(t.code)?!1:e.length!==1&&e[0]!==``?e.some(e=>e!==``&&e.slice(-1)===`*`?!t.code.startsWith(e.slice(0,-1)):!0):!0)}return i}export{S as a,_ as i,x as n,b as o,v as r,p as s,w as t}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Nn as n,Ot as r,Pn as i,_r as a,fr as o,lr as s,pr as c}from"./axios-GfLWCH1-.js";import{i as l}from"./ctiAxios-uIjEIJkB.js";import{O as u}from"./index-BXgKcVQP.js";var d=e(t());i();var f={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z`}}]},name:`file-excel`,theme:`filled`},p=d.forwardRef(function(e,t){return d.createElement(r,n(n({},e),{},{ref:t,icon:f}))}),m=e(u());function h(e){let t=e.getElementsByTagName(`HTTP_SERVICE`)[0];return{schema:c(t).schema,tables:n(t),refTables:r(t)};function n(e){let t={};return o(e,`TABLE`).forEach((e,n)=>{let r=c(e),o=i(e);a(o)||(r.listes=o);let l=s(e);a(l)||(r.groups=l),t[`${r.table_id}-${n}`]=r}),t}function r(e){let t={};return o(e,`REFTABLE`).forEach(e=>{let n=c(e),r=i(e);a(r)||(n.listes=r);let o=s(e);a(o)||(n.groups=o),t[(0,m.default)(n.table_id)]=n}),t}function i(e){let t={};return o(e,`LISTE`).forEach(e=>{let n=c(e);t[(0,m.default)(n.liste_id)]=n}),t}function s(e){let t={};return o(e,`GROUP`).forEach(e=>{let n=c(e),r=s(e);a(r)||(n.groups=r);let o=i(e);a(o)||(n.listes=o),t[(0,m.default)(n.texte)]=n}),t}}function g(e){let t=e.getElementsByTagName(`HTTP_SERVICE`)[0],n=o(t,`LISTE`)[0],r=c(n),i=o(n,`COLUMN`);if(i){let e={};i.forEach(t=>{let n=c(t);e[n.name]=n}),r.columns=e}let a=o(n,`RECORD`);if(a){let e={};a.forEach(t=>{let n=c(t);e[n.oid]=n}),r.records=e}let s=o(n,`OID`);if(s){let e={};s.forEach(t=>{let n=c(t);e[n.code.replace(/\s/gm,``)]=n}),r.oids=e}return r}var _=async e=>h(await l(`modules/base/php/getListes.php`,{softCode:e})),v=async(e,t,n)=>g(await l(`modules/base/php/getListe.php`,{table_id:t,liste_id:n,schema:e})),y=`modules/base/php/setListe.php`;async function b(e){await l(y,e)}async function x(e,t,n,r){await l(y,{action:`refcopy`,softCode:t,refoid:e,schema:n,database:r})}async function S(e){let t=s()+`modules/base/php/getListeSaisieCode.php`,n=new FormData;for(let t in e)n.append(t,e[t]);return(await fetch(t,{method:`POST`,credentials:`include`,cache:`no-cache`,body:n})).json()}var C=/\w*\*?/gm;function w(e,t,n){let r=t.match(C),i=e.filter(e=>r.includes(e.code)?!0:r.length!==1&&r[0]!==``?r.some(t=>t!==``&&t.slice(-1)===`*`?e.code.startsWith(t.slice(0,-1)):!1):!0);if(n){let e=n.match(C);i=i.filter(t=>e.includes(t.code)?!1:e.length!==1&&e[0]!==``?e.some(e=>e!==``&&e.slice(-1)===`*`?!t.code.startsWith(e.slice(0,-1)):!0):!0)}return i}export{S as a,_ as i,x as n,b as o,v as r,p as s,w as t}; | |||||
| @ -1 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{u as r}from"./ctiAxios-BMu1IxXE.js";import{t as i}from"./button-CGra0C8Y.js";import{Z as a}from"./index-cqbbFfLv.js";import{m as o,p as s}from"./path-DOVY3rux.js";t();var c=e(r()),l=n(),u=[{title:`Nom`,dataKey:`name`},{title:`Titre`,dataKey:`title`},{title:`Démarré`,dataKey:`start`},{title:`Terminé`,dataKey:`end`},{title:`Statut`,dataKey:`endStatus`,width:50},{title:`Durée`,dataKey:`duration`}].map(e=>({width:150,resizable:!0,key:e.dataKey,...e})),d=(e,t,n)=>[{title:``,dataIndex:`action`,key:`deleteImport`,render:(e,r,o)=>(0,l.jsx)(i,{shape:`circle`,icon:(0,l.jsx)(a,{}),onClick:()=>n(r.fullname,t)})},{title:`Type`,dataIndex:`type`,key:`type`,render:(t,n,r)=>{let i=e.find(e=>e.key===t);if(i)return i.label}},{title:`Mois`,dataIndex:`mois`,key:`month`},{title:`Fichier`,dataIndex:`name`,key:`file`},{title:`Date`,dataIndex:`date`,key:`date`},{title:`Taille`,dataIndex:`size`,key:`size`}],f=e=>[{title:`N°`,dataKey:`oid`},{title:`Texte`,dataKey:`texte`,width:200},{title:`Date import`,dataKey:`date_import`,width:100},{title:`Etat`,dataKey:`etat`,width:100,dataGetter:({rowData:e})=>{let t=``;return e.etat===`G`?t=`Généré`:e.etat===`C`&&(t=`Contrôlé`),e.etat_en_cours===`G`&&(t+=` - Génération en cours`),e.traitement_a_faire===`G`&&(t+=` - Génération en attente`),t}},{title:`Finess`,dataKey:`finess`,width:150},{title:`Date début`,dataKey:`date_debut`,width:100},{title:`Date fin`,dataKey:`date_fin`,width:100},{title:s[e].title,dataKey:s[e].dataKey},{title:o[e].title,dataKey:o[e].dataKey},{title:`RSF`,dataKey:`nb_rsf`},{title:`Erreur(s)`,dataKey:`nb_erreurs`},{title:`Avertissement(s)`,dataKey:`nb_avertissements`,width:150}],p=e=>f(e).map(e=>({width:50,resizable:!0,key:e.dataKey,...e})),m=e=>[{title:`N°`,dataKey:`oid`,width:50},{title:`Import dans CTI`,dataKey:`date_text`,dataGetter:({columns:t,column:n,columnIndex:r,rowData:i,rowIndex:a})=>e===`mco`?(0,c.default)(i.date_text,`YYYY/MM/DD`).format(`DD/MM/YYYY`):i.date},{title:`Traitement du fichier MAT2A/OVALIDE`,dataKey:`mat2a_date_text`,dataGetter:({rowData:t})=>e===`mco`?(0,c.default)(t.mat2a_date_text,`YYYY/MM/DD`).format(`DD/MM/YYYY`):t.mat2a_date},{title:`Année`,dataKey:`mat2a_annee`},{title:`Mois`,dataKey:`mat2a_mois`}],h=[{title:`RSA Transmis`,dataKey:`mat2a_rsa_transmis`},{title:`RSA traités`,dataKey:`mat2a_rsa_traites`},{title:`RSA séances`,dataKey:`mat2a_rsa_seances`},{title:`RSA 0 nuits`,dataKey:`mat2a_rsa_0_nuits`},{title:`Montant base de remboursement`,dataKey:`mat2a_rsa_prestations_base_remb`,dataGetter:({rowData:e})=>new Intl.NumberFormat(`fr-FR`,{style:`currency`,currency:`EUR`,minimumFractionDigits:0,maximumFractionDigits:0}).format(e.mat2a_rsa_prestations_base_remb)}],g=[{title:`RHA`,dataKey:`mat2a_rha`},{title:`Journées`,dataKey:`mat2a_journees`},{title:`IVA`,dataKey:`mat2a_iva`},{title:`Age moyen`,dataKey:`mat2a_age_moyen`},{title:`% femmes`,dataKey:`mat2a_pct_femmes`}],_=e=>{let t=[];return t=e===`mco`?m(e).concat(h):m(e).concat(g),t.map(e=>({width:150,resizable:!0,key:e.dataKey,...e}))};export{_ as i,d as n,p as r,u as t}; | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{l as r}from"./ctiAxios-uIjEIJkB.js";import{t as i}from"./button-DFsG8yVP.js";import{Z as a}from"./index-BXgKcVQP.js";import{m as o,p as s}from"./path-Lv4XoihJ.js";t();var c=e(r()),l=n(),u=[{title:`Nom`,dataKey:`name`},{title:`Titre`,dataKey:`title`},{title:`Démarré`,dataKey:`start`},{title:`Terminé`,dataKey:`end`},{title:`Statut`,dataKey:`endStatus`,width:50},{title:`Durée`,dataKey:`duration`}].map(e=>({width:150,resizable:!0,key:e.dataKey,...e})),d=(e,t,n)=>[{title:``,dataIndex:`action`,key:`deleteImport`,render:(e,r,o)=>(0,l.jsx)(i,{shape:`circle`,icon:(0,l.jsx)(a,{}),onClick:()=>n(r.fullname,t)})},{title:`Type`,dataIndex:`type`,key:`type`,render:(t,n,r)=>{let i=e.find(e=>e.key===t);if(i)return i.label}},{title:`Mois`,dataIndex:`mois`,key:`month`},{title:`Fichier`,dataIndex:`name`,key:`file`},{title:`Date`,dataIndex:`date`,key:`date`},{title:`Taille`,dataIndex:`size`,key:`size`}],f=e=>[{title:`N°`,dataKey:`oid`},{title:`Texte`,dataKey:`texte`,width:200},{title:`Date import`,dataKey:`date_import`,width:100},{title:`Etat`,dataKey:`etat`,width:100,dataGetter:({rowData:e})=>{let t=``;return e.etat===`G`?t=`Généré`:e.etat===`C`&&(t=`Contrôlé`),e.etat_en_cours===`G`&&(t+=` - Génération en cours`),e.traitement_a_faire===`G`&&(t+=` - Génération en attente`),t}},{title:`Finess`,dataKey:`finess`,width:150},{title:`Date début`,dataKey:`date_debut`,width:100},{title:`Date fin`,dataKey:`date_fin`,width:100},{title:s[e].title,dataKey:s[e].dataKey},{title:o[e].title,dataKey:o[e].dataKey},{title:`RSF`,dataKey:`nb_rsf`},{title:`Erreur(s)`,dataKey:`nb_erreurs`},{title:`Avertissement(s)`,dataKey:`nb_avertissements`,width:150}],p=e=>f(e).map(e=>({width:50,resizable:!0,key:e.dataKey,...e})),m=e=>[{title:`N°`,dataKey:`oid`,width:50},{title:`Import dans CTI`,dataKey:`date_text`,dataGetter:({columns:t,column:n,columnIndex:r,rowData:i,rowIndex:a})=>e===`mco`?(0,c.default)(i.date_text,`YYYY/MM/DD`).format(`DD/MM/YYYY`):i.date},{title:`Traitement du fichier MAT2A/OVALIDE`,dataKey:`mat2a_date_text`,dataGetter:({rowData:t})=>e===`mco`?(0,c.default)(t.mat2a_date_text,`YYYY/MM/DD`).format(`DD/MM/YYYY`):t.mat2a_date},{title:`Année`,dataKey:`mat2a_annee`},{title:`Mois`,dataKey:`mat2a_mois`}],h=[{title:`RSA Transmis`,dataKey:`mat2a_rsa_transmis`},{title:`RSA traités`,dataKey:`mat2a_rsa_traites`},{title:`RSA séances`,dataKey:`mat2a_rsa_seances`},{title:`RSA 0 nuits`,dataKey:`mat2a_rsa_0_nuits`},{title:`Montant base de remboursement`,dataKey:`mat2a_rsa_prestations_base_remb`,dataGetter:({rowData:e})=>new Intl.NumberFormat(`fr-FR`,{style:`currency`,currency:`EUR`,minimumFractionDigits:0,maximumFractionDigits:0}).format(e.mat2a_rsa_prestations_base_remb)}],g=[{title:`RHA`,dataKey:`mat2a_rha`},{title:`Journées`,dataKey:`mat2a_journees`},{title:`IVA`,dataKey:`mat2a_iva`},{title:`Age moyen`,dataKey:`mat2a_age_moyen`},{title:`% femmes`,dataKey:`mat2a_pct_femmes`}],_=e=>{let t=[];return t=e===`mco`?m(e).concat(h):m(e).concat(g),t.map(e=>({width:150,resizable:!0,key:e.dataKey,...e}))};export{_ as i,d as n,p as r,u as t}; | |||||
| @ -1 +1 @@ | |||||
| import"./chunk-jRWAZmH_.js";import{n as e,t}from"./jsx-runtime-CEixWuwE.js";import{t as n}from"./RowLabelWithIcon-C9cs-sLd.js";import{mt as r}from"./index-cqbbFfLv.js";e();var i=t(),a=[{title:`oid`,key:`oid`,dataKey:`oid`,width:150},{title:`code`,key:`code`,dataKey:`code`,width:150},{title:`Entête`,key:`entete`,dataKey:`entete`,width:200},{title:`Libéllé`,key:`texte`,dataKey:`texte`,width:200,flexGrow:2},{title:`CTI`,key:`isCti`,dataKey:`isCti`,width:50,dataGetter:({rowData:e})=>(0,i.jsx)(r,{disabled:!0,checked:e.isCti})}],o=(e,t)=>{let r=[{title:`Code`,dataKey:`code`,width:250},{title:`Nom`,dataKey:`texte`,frozen:`left`,width:500,cellRenderer:({rowData:e})=>{let t=e.texte;return(0,i.jsx)(`div`,{className:`BaseTable__row-cell-text`,children:(0,i.jsx)(n,{label:t,isCti:e.is_cti?`1`:`0`,icon:`Hospital`,toolTipLabel:`Indicateur créé par l'établissement`})})}},{title:`Nom abrégé`,dataKey:`entete`,width:400},{title:`Table`,dataKey:`table_name`,dataGetter:({rowData:e})=>{let n=e.table_name,r=t.find(e=>e.code===n);return r?r.texte:n},width:200},{title:`Format de sortie`,dataKey:`output_format`,width:200}];return e===`iCTI_activite`&&r.push({title:`Dimension date`,key:`date`,dataKey:`dimension_date`}),r.map(e=>({width:200,...e,resizable:!0,key:e.dataKey,className:`cti-default-table`,headerClassName:`cti-default-table`}))};export{o as n,a as t}; | |||||
| import"./chunk-jRWAZmH_.js";import{n as e,t}from"./jsx-runtime-CEixWuwE.js";import{t as n}from"./RowLabelWithIcon-CWfXqglG.js";import{pt as r}from"./index-BXgKcVQP.js";e();var i=t(),a=[{title:`oid`,key:`oid`,dataKey:`oid`,width:150},{title:`code`,key:`code`,dataKey:`code`,width:150},{title:`Entête`,key:`entete`,dataKey:`entete`,width:200},{title:`Libéllé`,key:`texte`,dataKey:`texte`,width:200,flexGrow:2},{title:`CTI`,key:`isCti`,dataKey:`isCti`,width:50,dataGetter:({rowData:e})=>(0,i.jsx)(r,{disabled:!0,checked:e.isCti})}],o=(e,t)=>{let r=[{title:`Code`,dataKey:`code`,width:250},{title:`Nom`,dataKey:`texte`,frozen:`left`,width:500,cellRenderer:({rowData:e})=>{let t=e.texte;return(0,i.jsx)(`div`,{className:`BaseTable__row-cell-text`,children:(0,i.jsx)(n,{label:t,isCti:e.is_cti?`1`:`0`,icon:`Hospital`,toolTipLabel:`Indicateur créé par l'établissement`})})}},{title:`Nom abrégé`,dataKey:`entete`,width:400},{title:`Table`,dataKey:`table_name`,dataGetter:({rowData:e})=>{let n=e.table_name,r=t.find(e=>e.code===n);return r?r.texte:n},width:200},{title:`Format de sortie`,dataKey:`output_format`,width:200}];return e===`iCTI_activite`&&r.push({title:`Dimension date`,key:`date`,dataKey:`dimension_date`}),r.map(e=>({width:200,...e,resizable:!0,key:e.dataKey,className:`cti-default-table`,headerClassName:`cti-default-table`}))};export{o as n,a as t}; | |||||