| @ -0,0 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{In as n,Ln as r,jt as i}from"./axios-BDcMaxoP.js";var a=e(t());r();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,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| @ -0,0 +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-BDcMaxoP.js";import{t as i}from"./button-xukQsL9n.js";import{t as a}from"./popconfirm-BanNBanA.js";import{F as o,et as s}from"./index-C1mw6CgG.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}; | |||||
| @ -0,0 +1 @@ | |||||
| .view-graphs{width:100%;height:100%}.graphs{flex-flow:row;justify-content:center;align-items:stretch;height:100%;display:flex;overflow:hidden}.timeline-graph{height:100%;overflow:hidden}.sub-graph{flex-direction:column;width:95%;padding:0 6px;display:flex}.graph-title{text-align:center;max-height:20px;font-size:14px;font-weight:600}.slick-slide,.slick-slide>div{height:100%}.slick-slide>div>div{height:90%}.labelText{font-size:10px}.graph-wrapper{flex-flow:row;flex:3;justify-content:center;min-width:0;min-height:0;display:flex}.graph-wrapper>div{flex:3;min-width:0;min-height:0} | |||||
| @ -0,0 +1 @@ | |||||
| import{a as e,t}from"./chunk-jRWAZmH_.js";import{n}from"./jsx-runtime-CEixWuwE.js";import{Wn as r}from"./axios-BDcMaxoP.js";import{J as i,Y as a,_t as o,vt as s}from"./index-C1mw6CgG.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-CpzI18et.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}; | |||||
| @ -0,0 +1 @@ | |||||
| .editable-title{flex-flow:row;justify-content:flex-start;align-items:center;display:flex}.editable-title .title-buttons{margin-left:auto;margin-right:20px}.editable-code,.editable-text{cursor:pointer;flex-flow:row;align-items:center;height:24px;margin:4px 6px;padding:0 6px;display:flex}.editable-code:hover,.editable-text:hover{background-color:#eee;border:1px solid #fff;border-radius:4px}.editable-code{width:20%}.editable-text{text-overflow:ellipsis;white-space:nowrap;width:50%;display:inline-block;overflow:hidden}.classes-sections .ant-tree-title{max-width:100%}.classes-sections .ant-tree .ant-tree-treenode{padding:0}.editable-title .ant-tree .ant-tree-node-content-wrapper:hover{cursor:auto}.edit-button-title,.delete-button-title{font-size:18px;line-height:18px}.edit-button-title{margin-right:8px}.section-form{flex-flow:column;display:flex}.section-form .form-row{margin-top:8px}.section-form .form-buttons{margin-left:auto}.form-row{flex-flow:wrap;justify-content:flex-start;align-items:center;margin-top:8px;display:flex}.form-item{flex-flow:row;align-items:center;display:flex}.form-item .ant-form-item{margin-bottom:5px}.form-item .ant-form-item-control-input-content{margin-right:10px}.form-item .ant-input,.form-item .ant-select{width:250px}.form-item>span{margin-right:10px;font-weight:500}.form-column{flex-flow:column;justify-content:space-between;width:100%;height:100%;display:flex}.form-column>span{font-weight:600}.first-label{min-width:150px;font-weight:500}.transfer-layout-content{flex-flow:row;flex:3;min-height:0;margin-top:10px;display:flex}.transfer-actions{flex-direction:column;justify-content:center;align-items:center;height:100%;padding:0 15px;display:flex}.tree-header{z-index:3;background-color:#f0f2f5;flex-flow:row;justify-content:space-between;align-items:center;height:50px;padding:5px 20px;display:flex}.component-content{height:calc(100% - 103px)}.classes-description .form-column{justify-content:flex-start}.classes-description,.listes-description{background-color:#fff;border-top:1px solid #eee;flex-flow:row;justify-content:center;align-items:flex-start;padding:10px 20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.classes-description .form-column,.listes-description .form-column{margin-right:50px}.classes-description .form-item>span,.listes-description .form-item>span{min-width:70px}.classes-sections .ant-tree{height:100%;min-height:0;padding-top:8px;overflow:scroll}.classes-sections{box-shadow:0 .125rem .25rem #00000013}.classes-sections .ant-tree.ant-tree-block-node .ant-tree-list-holder-inner .ant-tree-node-content-wrapper{width:80%}.options-search{background-color:#fff;border-radius:5px;flex-flow:row;display:flex;box-shadow:0 .125rem .25rem #00000013}.options-search .form-column{justify-content:flex-start;height:auto;padding:10px}.options-search .form-row{margin:5px 0}.options-search .form-item{align-items:flex-start;width:100%}.options-search .form-item>span{min-width:160px}.options-search .form-item .ant-input{width:100%}.classes-manager-classes{background-color:#fff;border-radius:5px;flex:3;min-height:0;overflow:scroll}.classes-sections,.classes-options{flex-flow:column;height:100%;display:flex}.classes-sections{flex:3;min-width:250px;overflow:auto}.options-search,.options-table{width:100%}.options-search{position:relative}.options-dragger{background-color:#fff;border-radius:50%;align-items:center;padding:8px;display:flex;position:absolute;top:-8px;left:-14px;box-shadow:0 .125rem .25rem #00000013}.options-table{flex:3;min-height:0;margin-top:5px;overflow:hidden} | |||||
| @ -0,0 +1 @@ | |||||
| .indicator-modal-header{flex-direction:column;justify-content:space-between;margin-bottom:20px;display:flex}.modal-title{font-size:16px;font-weight:800}.modal-search{flex-direction:row;align-items:center;width:50%;margin-top:12px;display:flex}.modal-search>span{min-width:200px;font-weight:600}.indicator-modal{flex-flow:column;height:100%;display:flex}.indicator-modal-table{flex:3;width:100%;min-height:0} | |||||
| @ -0,0 +1 @@ | |||||
| .color-button{cursor:pointer;background:#fff;border-radius:1px;max-height:25px;margin:5px 0;padding:5px;display:inline-flex;box-shadow:0 0 0 1px #0000001a}.block-picker{z-index:3;margin-top:5px;margin-left:18px;position:absolute!important}.color-picker-container{flex-direction:row;align-items:center;display:flex}.reset-button{margin-left:10px} | |||||
| @ -0,0 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{In as n,Ln as r,jt as i}from"./axios-BDcMaxoP.js";var a=e(t());r();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,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| @ -0,0 +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-BDcMaxoP.js";import{B as a,i as o}from"./ctiAxios-HKh7HuhO.js";import{t as s}from"./button-xukQsL9n.js";import{i as c}from"./select-dQ-XiIfN.js";import{t as l}from"./CopyOutlined-DYcCtig4.js";import{t as u}from"./queryOptions-Cg9orY1Y.js";import{F as d}from"./index-C1mw6CgG.js";import{x as f}from"./CloseButton-CawXCByx.js";var p=async e=>f(await o(`modules/base/php/getIndicateurs.php`,{softCode:e}));async function m(e,t){await o(`modules/base/php/setIndicateur.php`,{action:`save`,softCode:e,...t})}async function h(e,t){await o(`modules/base/php/setIndicateur.php`,{action:`delete`,softCode:e,oid:t})}async function g(e,t){await o(`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[o,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:o?(0,E.jsx)(c,{style:{color:a.green}}):(0,E.jsx)(l,{}),onClick:()=>{u(!o),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 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{In as r,Ln as i,jt as a,n as o}from"./axios-BDcMaxoP.js";import{t as s}from"./button-xukQsL9n.js";import{t as c}from"./popconfirm-BanNBanA.js";import{t as l}from"./UndoOutlined-DAvTbx0c.js";import{F as u}from"./index-C1mw6CgG.js";var d=e(t());i();var f={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`},p=d.forwardRef(function(e,t){return d.createElement(a,r(r({},e),{},{ref:t,icon:f}))}),m=e(o()),h=n(),g=({onConfirm:e,modified:t=!0,children:n,title:r=`Quitter sans enregistrer ?`,description:i=`Vos modifications seront perdues.`,okText:a=`Quitter`,cancelText:o=`Continuer à modifier`,placement:f=`topRight`,toolTipTitle:p=`Annuler les modifications`,text:m,size:g=`default`,disabled:_=!1})=>{let v=(0,h.jsx)(u,{title:m?null:p,children:(0,h.jsx)(s,{size:g,disabled:_,icon:(0,h.jsx)(l,{}),children:m})});return t?(0,h.jsx)(c,{placement:f,title:r,description:i,onConfirm:e,okText:a,okButtonProps:{danger:!0},cancelText:o,children:n??v}):n?d.cloneElement(n,{onClick:e}):d.cloneElement(v,{onClick:e})};g.propTypes={onConfirm:m.default.func.isRequired,modified:m.default.bool,children:m.default.node,title:m.default.string,description:m.default.string,okText:m.default.string,cancelText:m.default.string,placement:m.default.string,toolTipTitle:m.default.string,text:m.default.string,size:m.default.string,disabled:m.default.bool};export{p as n,g as t}; | |||||
| @ -0,0 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{In as n,Ln as r,jt as i}from"./axios-BDcMaxoP.js";var a=e(t());r();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,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| @ -0,0 +1 @@ | |||||
| .cti-indicator-modal{flex-flow:column;height:70vh;display:flex}.indicator-modal-table{flex:3;margin-top:18px}.expert-settings{flex-direction:column;flex:3;min-height:0;display:flex}.expert-settings .BaseTable__row-cell-text{line-height:40px}.expert-settings-modal .ant-form-item-label{text-align:left;white-space:pre-line;width:150px}.expert-rule-container{border:1px dashed #d3d3d3;border-radius:5px;margin:14px 12px 12px;position:relative}.expert-rule-header{background-color:#fff;align-items:center;padding:0 8px;display:flex;position:absolute;top:-7px;left:27px}.expert-rule-label{font-size:12px;font-weight:500;line-height:12px}.expert-rule{padding:12px 12px 0}.expert-rule-indicator{margin-top:20px;position:relative}.expert-control-inactive{color:#b1b1b1}.expert-rule-divider{margin-top:0;margin-bottom:12px;position:absolute;top:-18px}.expert-rule-indicator-container,.expert-settings-containet .expert-settings-column{flex-direction:column;display:flex}.expert-rule-delete-button{justify-content:flex-end;display:flex}.expert-rule-add-button{justify-content:space-around;display:flex}.expert-rule-title-header{align-items:center;display:flex}.form-item-font{font-weight:600}.form-item-widht{width:100%;max-width:280px}.switch-label{font-size:12px;font-weight:400}span.ant-radio+*{font-weight:400}.header__settings--filters-actions{flex-flow:row;justify-content:flex-end;align-items:flex-end;gap:10px;display:flex}.header__settings--filters-actions-switch{flex-flow:column wrap;justify-content:center;align-items:center;display:flex}.header__settings--filters-actions-switch span{margin-right:0!important}.header__settings--filters-actions-switch button{width:30px}.header__settings{background-color:#fff;flex-flow:row;justify-content:space-between;align-items:center;width:100%;height:48px;padding:5px 20px;display:flex}.header__settings--filters{background-color:#fff;border-top:1px solid #eee;padding:10px 20px;box-shadow:0 .125rem .25rem #00000013}.header__settings--filters-search{flex-flow:row;align-items:center;display:flex}.header__settings--actions{flex-flow:row;align-items:center;gap:10px;display:flex} | |||||
| @ -0,0 +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-BDcMaxoP.js";import{V as i}from"./ctiAxios-HKh7HuhO.js";import{t as a}from"./button-xukQsL9n.js";import{$ as o,B as s,H as c,I as l,Q as u,ht as d,v as f,z as p}from"./index-C1mw6CgG.js";import{t as m}from"./logs.queries-Dl26GlbD.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}f[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[f[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)(d,{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||f[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&&f[t.module]?e.settings[b[f[t.module].module]]:null;return x||f[n]?(0,v.jsx)(y,{status:t.status,running:t.running,env:e,provider:r,duration:t.duration,start:t.start,module:f[n]?f[n].label:n},t.job):null})}})(i?.environment?.ISEXPLOIT===`1`)})},{tabsItems:()=>{let e=[];return i?.environment?.ISEXPLOIT===`1`&&(e=s.map(e=>({label:f[e]?.label??e,key:e,children:(0,v.jsx)(`div`,{className:`exploit-module`,children:w(e)})}))),e}}]})})]})};export{x as default}; | |||||
| @ -0,0 +1 @@ | |||||
| .exploit__icon{margin-right:6px}.actions-label{font-size:14px;font-weight:400}.exploit-module{flex-flow:wrap;padding-top:12px;display:flex;overflow-y:scroll}.exploit-env{border:1px solid #000;border-radius:5px;flex-flow:column;width:320px;height:120px;margin-bottom:12px;margin-right:12px;padding:8px;display:flex}.exploit-label{font-size:14px;font-weight:500}.exploit-provider{margin-top:auto;font-style:italic} | |||||
| @ -0,0 +1 @@ | |||||
| .editable-label{cursor:pointer;flex-flow:row;align-items:center;height:24px;margin:4px 6px;padding:0 6px;display:flex}.editable-label:hover{background-color:#eee;border:1px solid #fff;border-radius:4px}.transfer-layout-content{flex-flow:row;flex:3;min-height:0;margin-top:10px;display:flex}.transfer-actions{flex-direction:column;justify-content:center;align-items:center;height:100%;padding:0 15px;display:flex}.tree-header{z-index:3;background-color:#f0f2f5;flex-flow:row;justify-content:space-between;align-items:center;height:50px;padding:5px 20px;display:flex}.favorites-editor{flex-flow:row;align-items:center;height:100%;display:flex}.favorites-editor .ant-tree-switcher{align-items:center;display:flex}.favorites-editor-items,.favorites-editor-menu{background-color:#fff;flex-flow:column;width:100%;height:100%;min-height:0;display:flex;box-shadow:0 .125rem .25rem #00000013}.favorites-editor .ant-tree{height:100%;min-height:0;padding-top:8px}.favorites-editor .ant-tree-list{height:100%;min-height:0}.favorites-editor .ant-tree-list>div{height:100%;overflow:scroll}.favorites-editor .ant-tree-list-holder-inner{height:300px;max-height:100%}.favorites-actions{flex-flow:row;justify-content:space-between;align-items:center;height:100%;display:flex}.favorites-loader{z-index:1000;height:0;position:relative;top:150px} | |||||
| @ -0,0 +1 @@ | |||||
| import{r as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";var r=e({default:()=>a});t();var i=n(),a=e=>(0,i.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 25 25`,...e,children:(0,i.jsx)(`path`,{fill:`currentColor`,d:`M14.453 22.656q-.19 0-.368-.06l-3.914-1.302a1.17 1.17 0 0 1-.796-1.112V14.36l-.004-.007-8.235-9.591a1.465 1.465 0 0 1 1.113-2.42h20.505a1.465 1.465 0 0 1 1.113 2.42l-8.238 9.593-.004.006v7.122a1.17 1.17 0 0 1-1.172 1.172`})});export{a as n,r as t}; | |||||
| @ -0,0 +1 @@ | |||||
| import{r as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";var r=e({default:()=>a});t();var i=n(),a=e=>(0,i.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 25 25`,...e,children:(0,i.jsx)(`path`,{fill:`#fff`,stroke:`currentColor`,d:`M14.455 22.156h-.002a.7.7 0 0 1-.21-.034L10.33 20.82a.67.67 0 0 1-.455-.636v-5.931l-.044-.098a.5.5 0 0 0-.085-.131l-8.23-9.587a.965.965 0 0 1 .732-1.593h20.506a.965.965 0 0 1 .957 1.098l.495.07-.495-.07a.97.97 0 0 1-.224.495L15.25 14.03a.6.6 0 0 0-.063.091l-.062.112v7.253a.67.67 0 0 1-.196.474l.354.354-.354-.354a.67.67 0 0 1-.474.196Z`})});export{a as n,r as t}; | |||||
| @ -0,0 +1 @@ | |||||
| import{r as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";var r=e({default:()=>a});t();var i=n(),a=e=>(0,i.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 25 25`,...e,children:[(0,i.jsx)(`path`,{fill:`currentColor`,d:`M12.772 4.945a.39.39 0 0 0-.54 0l-8.99 8.588a.4.4 0 0 0-.12.282l-.002 8.06a1.56 1.56 0 0 0 1.563 1.563h4.692a.78.78 0 0 0 .781-.782v-6.64a.39.39 0 0 1 .39-.391h3.907a.39.39 0 0 1 .39.39v6.641a.78.78 0 0 0 .782.782h4.69a1.563 1.563 0 0 0 1.563-1.563v-8.06a.4.4 0 0 0-.12-.282z`}),(0,i.jsx)(`path`,{fill:`currentColor`,d:`m23.97 11.921-3.652-3.494V3.125a.78.78 0 0 0-.781-.781h-2.344a.78.78 0 0 0-.781.781v1.563l-2.828-2.705c-.265-.267-.659-.42-1.084-.42-.424 0-.816.153-1.081.42L1.033 11.92c-.303.293-.342.775-.065 1.093a.78.78 0 0 0 1.132.052l10.132-9.682a.39.39 0 0 1 .54 0l10.132 9.682a.78.78 0 0 0 1.103-.022c.3-.31.275-.823-.037-1.122`})]});export{a as n,r as t}; | |||||
| @ -0,0 +1 @@ | |||||
| import{r as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";var r=e({default:()=>a});t();var i=n(),a=e=>(0,i.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 26 25`,...e,children:[(0,i.jsxs)(`g`,{stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,clipPath:`url(#home-outline_svg__a)`,children:[(0,i.jsx)(`path`,{d:`M4.87 10.352v11.523a.78.78 0 0 0 .782.781h4.687v-6.64a1.17 1.17 0 0 1 1.172-1.172h3.906a1.17 1.17 0 0 1 1.172 1.172v6.64h4.688a.78.78 0 0 0 .781-.781V10.352`}),(0,i.jsx)(`path`,{d:`M24.402 12.5 13.996 2.54c-.244-.259-.815-.262-1.063 0L2.527 12.5M20.496 8.74V3.125h-2.344v3.37`})]}),(0,i.jsx)(`defs`,{children:(0,i.jsx)(`clipPath`,{id:`home-outline_svg__a`,children:(0,i.jsx)(`path`,{fill:`#fff`,d:`M.964 0h25v25h-25z`})})})]});export{a as n,r as t}; | |||||
| @ -1 +0,0 @@ | |||||
| import{j as a}from"./index-mh7VHmRi.js";const t=h=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 48 48",...h,children:[a.jsx("path",{fill:"#45413C",d:"M3.5 45.5c0 .398 2.16.78 6.004 1.06 3.845.282 9.06.44 14.496.44 5.437 0 10.651-.158 14.496-.44 3.844-.28 6.004-.662 6.004-1.06s-2.16-.78-6.004-1.06C34.65 44.157 29.436 44 24 44c-5.437 0-10.651.158-14.496.44-3.844.28-6.004.662-6.004 1.06",opacity:.15}),a.jsx("path",{fill:"#8CA4B8",d:"M4 15h40v3H4z"}),a.jsx("path",{fill:"#ADC4D9",d:"M43 15H5a1 1 0 0 0-1 1v1a1 1 0 0 0 0 .25 1 1 0 0 1 1-.75h38a1 1 0 0 1 1 .75q.015-.125 0-.25v-1a1 1 0 0 0-1-1"}),a.jsx("path",{stroke:"#45413C",strokeLinecap:"round",strokeLinejoin:"round",d:"M4 15h40v3H4z"}),a.jsx("path",{fill:"#fff",d:"M5 18h38v25.5a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z"}),a.jsx("path",{fill:"#E0E0E0",d:"M5 18h38v2.25H5z"}),a.jsx("path",{stroke:"#45413C",strokeLinecap:"round",strokeLinejoin:"round",d:"M5 18h38v25.5a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z"}),a.jsx("path",{fill:"#fff",d:"M13.5 12.5h21v32h-21z"}),a.jsx("path",{fill:"#E0E0E0",d:"M13.5 12.5h21v1.79h-21z"}),a.jsx("path",{stroke:"#45413C",strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 12.5h21v32h-21z"}),a.jsx("path",{fill:"#00B8F0",d:"M18 33.5h12v11H18z"}),a.jsx("path",{fill:"#4ACFFF",d:"M20.44 44.5h5.2L30 33.93v-.43h-5.03z"}),a.jsx("path",{stroke:"#45413C",strokeLinecap:"round",strokeLinejoin:"round",d:"M18 33.5h12v11H18z"}),a.jsx("path",{fill:"#8CA4B8",d:"M17 30h14v3.5H17z"}),a.jsx("path",{fill:"#ADC4D9",d:"M30 30H18a1 1 0 0 0-1 1v1.5a.5.5 0 0 0 0 .12 1 1 0 0 1 1-.87h12a1 1 0 0 1 1 .87.5.5 0 0 0 0-.12V31a1 1 0 0 0-1-1"}),a.jsx("path",{stroke:"#45413C",strokeLinecap:"round",strokeLinejoin:"round",d:"M17 30h14v3.5H17z"}),a.jsx("path",{fill:"#8CA4B8",d:"M12.5 9.5h23v3h-23z"}),a.jsx("path",{fill:"#ADC4D9",d:"M34.5 9.5h-21a1 1 0 0 0-1 1v1q.01.129.05.25a1 1 0 0 1 .95-.75h21a1 1 0 0 1 1 .75 1 1 0 0 0 0-.25v-1a1 1 0 0 0-1-1"}),a.jsx("path",{stroke:"#45413C",strokeLinecap:"round",strokeLinejoin:"round",d:"M12.5 9.5h23v3h-23z"}),a.jsx("path",{fill:"#FF6242",stroke:"#45413C",strokeLinecap:"round",strokeLinejoin:"round",d:"M27.5 19H26a.5.5 0 0 1-.5-.5V17a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1.5a.5.5 0 0 1-.5.5h-1.5a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5H22a.5.5 0 0 1 .5.5V24a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5v-1.5a.5.5 0 0 1 .5-.5h1.5a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5"}),a.jsx("path",{fill:"#00B8F0",d:"M8 20.5h2.5V25H8z"}),a.jsx("path",{fill:"#4ACFFF",d:"M8.5 25H10a.5.5 0 0 0 .5-.5V21a.5.5 0 0 0-.11-.3l-2.22 4.17a.5.5 0 0 0 .33.13"}),a.jsx("path",{fill:"#00B8F0",d:"M8 27.5h2.5V32H8z"}),a.jsx("path",{fill:"#4ACFFF",d:"M8.5 32H10a.5.5 0 0 0 .5-.5V28a.5.5 0 0 0-.11-.3l-2.22 4.17a.5.5 0 0 0 .33.13"}),a.jsx("path",{fill:"#00B8F0",d:"M8 34.5h2.5V39H8z"}),a.jsx("path",{fill:"#4ACFFF",d:"M8.5 39H10a.5.5 0 0 0 .5-.5V35a.5.5 0 0 0-.11-.3l-2.22 4.17a.5.5 0 0 0 .33.13"}),a.jsx("path",{stroke:"#45413C",strokeLinecap:"round",strokeLinejoin:"round",d:"M8 20.5h2.5V25H8zm0 7h2.5V32H8zm0 7h2.5V39H8z"}),a.jsx("path",{fill:"#00B8F0",d:"M37.5 20.5H40V25h-2.5z"}),a.jsx("path",{fill:"#4ACFFF",d:"M38 25h1.5a.5.5 0 0 0 .5-.5V21a.5.5 0 0 0-.11-.3l-2.22 4.17A.5.5 0 0 0 38 25"}),a.jsx("path",{fill:"#00B8F0",d:"M37.5 27.5H40V32h-2.5z"}),a.jsx("path",{fill:"#4ACFFF",d:"M38 32h1.5a.5.5 0 0 0 .5-.5V28a.5.5 0 0 0-.11-.3l-2.22 4.17A.5.5 0 0 0 38 32"}),a.jsx("path",{fill:"#00B8F0",d:"M37.5 34.5H40V39h-2.5z"}),a.jsx("path",{fill:"#4ACFFF",d:"M38 39h1.5a.5.5 0 0 0 .5-.5V35a.5.5 0 0 0-.11-.3l-2.22 4.17A.5.5 0 0 0 38 39"}),a.jsx("path",{stroke:"#45413C",strokeLinecap:"round",strokeLinejoin:"round",d:"M24 33.5v11m13.5-24H40V25h-2.5zm0 7H40V32h-2.5zm0 7H40V39h-2.5z"})]});export{t as default}; | |||||
| @ -0,0 +1 @@ | |||||
| import"./chunk-jRWAZmH_.js";import{n as e,t}from"./jsx-runtime-CEixWuwE.js";e();var n=t(),r=e=>(0,n.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 48 48`,...e,children:[(0,n.jsx)(`path`,{fill:`#45413C`,d:`M3.5 45.5c0 .398 2.16.78 6.004 1.06 3.845.282 9.06.44 14.496.44 5.437 0 10.651-.158 14.496-.44 3.844-.28 6.004-.662 6.004-1.06s-2.16-.78-6.004-1.06C34.65 44.157 29.436 44 24 44c-5.437 0-10.651.158-14.496.44-3.844.28-6.004.662-6.004 1.06`,opacity:.15}),(0,n.jsx)(`path`,{fill:`#8CA4B8`,d:`M4 15h40v3H4z`}),(0,n.jsx)(`path`,{fill:`#ADC4D9`,d:`M43 15H5a1 1 0 0 0-1 1v1a1 1 0 0 0 0 .25 1 1 0 0 1 1-.75h38a1 1 0 0 1 1 .75q.015-.125 0-.25v-1a1 1 0 0 0-1-1`}),(0,n.jsx)(`path`,{stroke:`#45413C`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M4 15h40v3H4z`}),(0,n.jsx)(`path`,{fill:`#fff`,d:`M5 18h38v25.5a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z`}),(0,n.jsx)(`path`,{fill:`#E0E0E0`,d:`M5 18h38v2.25H5z`}),(0,n.jsx)(`path`,{stroke:`#45413C`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M5 18h38v25.5a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z`}),(0,n.jsx)(`path`,{fill:`#fff`,d:`M13.5 12.5h21v32h-21z`}),(0,n.jsx)(`path`,{fill:`#E0E0E0`,d:`M13.5 12.5h21v1.79h-21z`}),(0,n.jsx)(`path`,{stroke:`#45413C`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M13.5 12.5h21v32h-21z`}),(0,n.jsx)(`path`,{fill:`#00B8F0`,d:`M18 33.5h12v11H18z`}),(0,n.jsx)(`path`,{fill:`#4ACFFF`,d:`M20.44 44.5h5.2L30 33.93v-.43h-5.03z`}),(0,n.jsx)(`path`,{stroke:`#45413C`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M18 33.5h12v11H18z`}),(0,n.jsx)(`path`,{fill:`#8CA4B8`,d:`M17 30h14v3.5H17z`}),(0,n.jsx)(`path`,{fill:`#ADC4D9`,d:`M30 30H18a1 1 0 0 0-1 1v1.5a.5.5 0 0 0 0 .12 1 1 0 0 1 1-.87h12a1 1 0 0 1 1 .87.5.5 0 0 0 0-.12V31a1 1 0 0 0-1-1`}),(0,n.jsx)(`path`,{stroke:`#45413C`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M17 30h14v3.5H17z`}),(0,n.jsx)(`path`,{fill:`#8CA4B8`,d:`M12.5 9.5h23v3h-23z`}),(0,n.jsx)(`path`,{fill:`#ADC4D9`,d:`M34.5 9.5h-21a1 1 0 0 0-1 1v1q.01.129.05.25a1 1 0 0 1 .95-.75h21a1 1 0 0 1 1 .75 1 1 0 0 0 0-.25v-1a1 1 0 0 0-1-1`}),(0,n.jsx)(`path`,{stroke:`#45413C`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12.5 9.5h23v3h-23z`}),(0,n.jsx)(`path`,{fill:`#FF6242`,stroke:`#45413C`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M27.5 19H26a.5.5 0 0 1-.5-.5V17a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1.5a.5.5 0 0 1-.5.5h-1.5a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5H22a.5.5 0 0 1 .5.5V24a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5v-1.5a.5.5 0 0 1 .5-.5h1.5a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5`}),(0,n.jsx)(`path`,{fill:`#00B8F0`,d:`M8 20.5h2.5V25H8z`}),(0,n.jsx)(`path`,{fill:`#4ACFFF`,d:`M8.5 25H10a.5.5 0 0 0 .5-.5V21a.5.5 0 0 0-.11-.3l-2.22 4.17a.5.5 0 0 0 .33.13`}),(0,n.jsx)(`path`,{fill:`#00B8F0`,d:`M8 27.5h2.5V32H8z`}),(0,n.jsx)(`path`,{fill:`#4ACFFF`,d:`M8.5 32H10a.5.5 0 0 0 .5-.5V28a.5.5 0 0 0-.11-.3l-2.22 4.17a.5.5 0 0 0 .33.13`}),(0,n.jsx)(`path`,{fill:`#00B8F0`,d:`M8 34.5h2.5V39H8z`}),(0,n.jsx)(`path`,{fill:`#4ACFFF`,d:`M8.5 39H10a.5.5 0 0 0 .5-.5V35a.5.5 0 0 0-.11-.3l-2.22 4.17a.5.5 0 0 0 .33.13`}),(0,n.jsx)(`path`,{stroke:`#45413C`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8 20.5h2.5V25H8zm0 7h2.5V32H8zm0 7h2.5V39H8z`}),(0,n.jsx)(`path`,{fill:`#00B8F0`,d:`M37.5 20.5H40V25h-2.5z`}),(0,n.jsx)(`path`,{fill:`#4ACFFF`,d:`M38 25h1.5a.5.5 0 0 0 .5-.5V21a.5.5 0 0 0-.11-.3l-2.22 4.17A.5.5 0 0 0 38 25`}),(0,n.jsx)(`path`,{fill:`#00B8F0`,d:`M37.5 27.5H40V32h-2.5z`}),(0,n.jsx)(`path`,{fill:`#4ACFFF`,d:`M38 32h1.5a.5.5 0 0 0 .5-.5V28a.5.5 0 0 0-.11-.3l-2.22 4.17A.5.5 0 0 0 38 32`}),(0,n.jsx)(`path`,{fill:`#00B8F0`,d:`M37.5 34.5H40V39h-2.5z`}),(0,n.jsx)(`path`,{fill:`#4ACFFF`,d:`M38 39h1.5a.5.5 0 0 0 .5-.5V35a.5.5 0 0 0-.11-.3l-2.22 4.17A.5.5 0 0 0 38 39`}),(0,n.jsx)(`path`,{stroke:`#45413C`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M24 33.5v11m13.5-24H40V25h-2.5zm0 7H40V32h-2.5zm0 7H40V39h-2.5z`})]});export{r as default}; | |||||
| @ -0,0 +1 @@ | |||||
| .form-row{flex-flow:wrap;justify-content:flex-start;align-items:center;margin-top:8px;display:flex}.form-item{flex-flow:row;align-items:center;display:flex}.form-item .ant-form-item{margin-bottom:5px}.form-item .ant-form-item-control-input-content{margin-right:10px}.form-item .ant-input,.form-item .ant-select{width:250px}.form-item>span{margin-right:10px;font-weight:500}.form-column{flex-flow:column;justify-content:space-between;width:100%;height:100%;display:flex}.form-column>span{font-weight:600}.first-label{min-width:150px;font-weight:500}.import-state,.import-jobs{height:100%}.import-new{background-color:#fff;border-radius:5px;flex-flow:column;padding:20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.new-title{font-size:14px;font-weight:600}.upload-form{flex-flow:row;justify-content:space-between;align-items:center;width:100%;margin:20px 0;display:flex}.description .ant-select{width:200px;margin-right:10px}.import-progress{background-color:#fff;border-radius:5px;margin-top:10px;padding:20px;box-shadow:0 .125rem .25rem #00000013} | |||||
| @ -0,0 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{In as n,Ln as r,jt as i}from"./axios-BDcMaxoP.js";var a=e(t());r();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,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| @ -0,0 +1 @@ | |||||
| .form-row{flex-flow:wrap;justify-content:flex-start;align-items:center;margin-top:8px;display:flex}.form-item{flex-flow:row;align-items:center;display:flex}.form-item .ant-form-item{margin-bottom:5px}.form-item .ant-form-item-control-input-content{margin-right:10px}.form-item .ant-input,.form-item .ant-select{width:250px}.form-item>span{margin-right:10px;font-weight:500}.form-column{flex-flow:column;justify-content:space-between;width:100%;height:100%;display:flex}.form-column>span{font-weight:600}.first-label{min-width:150px;font-weight:500}.editor-indicator-editor{background-color:#fff;flex-flow:column;flex:3;min-height:0;margin-top:20px;padding:20px;box-shadow:0 .125rem .25rem #00000013}.editor-indicator-header{flex-flow:row;justify-content:flex-end;align-items:center;gap:10px;width:100%;height:30px;display:flex}.editor-indicator-header .close-button{line-height:12px}.editor-new-indicator-header{flex-flow:row;justify-content:space-between;width:100%;height:30px;display:flex}.editor-indicator-action-button{align-items:center;gap:10px;display:flex}.editor-indicator-action-button .close-button{line-height:12px}.scrollable-tab{overflow-y:scroll}.indicator-tab-column{max-width:50%;padding:0 10px}.indicator-tab-column .form-row{flex-flow:wrap;align-items:center;margin-top:4px;display:flex}.editor-form{justify-content:space-around;height:calc(100% - 48px);margin-top:10px;padding:10px 20px}.indicator-editor-form{flex-direction:row;min-height:0;display:flex}.indicator-editor-form .first-label{min-width:130px}.indicator-form-input{min-width:400px}.editor__database-joined-indicator{margin-right:10px}.editor__database-joined-indicator--delete-button{display:block}.editor__database-joined-indicator-block{flex-direction:column;display:flex}.editor__database-joined-indicator-block ul{padding:0}.editor__database-joined-indicator-block li{list-style:none}.editor__database-joined-indicator-list--key{color:var(--primary-color)}.editor__database-joined-indicator-list{gap:10px;margin-bottom:10px;display:flex}.editor__database-joined-indicator-list>button{max-width:287px}.editor__database-joined-indicator-list>button span{text-overflow:ellipsis;max-width:266px;overflow:hidden}.editor__database-textArea{min-width:400px}.editor__header-title{min-width:150px;font-size:14px;font-weight:600}.settings-filters{background-color:#fff;border-top:1px solid #eee;flex-flow:column;justify-content:center;padding:10px 20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.settings-filters span{padding-left:20px;padding-right:20px;font-weight:600}.settings-search{flex-direction:row;align-items:center;display:flex}.settings-single-check{flex-flow:column wrap;justify-content:center;align-items:center;display:flex}.settings-single-check button{width:28px}.indicators-tab{flex-flow:column;height:100%;display:flex}.indicators__table-check{flex-flow:row;justify-content:flex-end;align-items:flex-end;gap:10px;display:flex}.indicators__table-single-check{flex-flow:column wrap;justify-content:center;align-items:center;display:flex}.indicators__table-single-check span{margin-right:0!important}.indicators__table-single-check button{width:30px} | |||||
| @ -0,0 +1 @@ | |||||
| import{r as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";var r=e({default:()=>a});t();var i=n(),a=e=>(0,i.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 20 20`,...e,children:(0,i.jsx)(`path`,{fill:`currentColor`,d:`M9 7h2V5H9m1 13c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-18a10 10 0 1 0 0 20 10 10 0 0 0 0-20M9 15h2V9H9z`})});export{a as n,r as t}; | |||||
| @ -0,0 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{In as n,Ln as r,jt as i}from"./axios-BDcMaxoP.js";var a=e(t());r();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,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| @ -0,0 +1 @@ | |||||
| .form-row{flex-flow:wrap;justify-content:flex-start;align-items:center;margin-top:8px;display:flex}.form-item{flex-flow:row;align-items:center;display:flex}.form-item .ant-form-item{margin-bottom:5px}.form-item .ant-form-item-control-input-content{margin-right:10px}.form-item .ant-input,.form-item .ant-select{width:250px}.form-item>span{margin-right:10px;font-weight:500}.form-column{flex-flow:column;justify-content:space-between;width:100%;height:100%;display:flex}.form-column>span{font-weight:600}.first-label{min-width:150px;font-weight:500}.settings-filters{background-color:#fff;border-top:1px solid #eee;flex-flow:column;justify-content:center;padding:10px 20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.settings-filters span{padding-left:20px;padding-right:20px;font-weight:600}.settings-search{flex-direction:row;align-items:center;display:flex}.settings-single-check{flex-flow:column wrap;justify-content:center;align-items:center;display:flex}.settings-single-check button{width:28px}.licences-info{background-color:#fff;border-top:1px solid #eee;flex-flow:column;justify-content:center;padding:10px 20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.licences-info-row{flex-flow:row;font-size:12px;font-weight:600;display:flex}.licences-info-row span{width:100px;font-weight:400} | |||||
| @ -0,0 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{o as r}from"./axios-BDcMaxoP.js";import{t as i}from"./index.esm-D4i6w2dF.js";import{t as a}from"./input-C55Uc3oN.js";import{u as o}from"./ctiAxios-HKh7HuhO.js";import{t as s}from"./button-xukQsL9n.js";import{n as c,t as l}from"./row-CaO7bYqu.js";import{t as u}from"./useMutation-BtpRmKbj.js";import{t as d}from"./UndoOutlined-DAvTbx0c.js";import{t as f}from"./Loader-BvAKWCqv.js";import{F as p,G as m,K as h,Q as g,_,et as v,g as y,h as b,m as x,s as S}from"./index-C1mw6CgG.js";function C(){let e=r();return u({mutationFn:e=>_(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)(``),[_,O]=(0,w.useState)(!1),k=()=>{o.invalidateQueries({queryKey:y.all})},A=e=>{u(e)},j=()=>{O(!_)};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)(v,{open:_,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}; | |||||
| @ -0,0 +1 @@ | |||||
| .form-row{flex-flow:wrap;justify-content:flex-start;align-items:center;margin-top:8px;display:flex}.form-item{flex-flow:row;align-items:center;display:flex}.form-item .ant-form-item{margin-bottom:5px}.form-item .ant-form-item-control-input-content{margin-right:10px}.form-item .ant-input,.form-item .ant-select{width:250px}.form-item>span{margin-right:10px;font-weight:500}.form-column{flex-flow:column;justify-content:space-between;width:100%;height:100%;display:flex}.form-column>span{font-weight:600}.first-label{min-width:150px;font-weight:500}.transfer-layout-content{flex-flow:row;flex:3;min-height:0;margin-top:10px;display:flex}.transfer-actions{flex-direction:column;justify-content:center;align-items:center;height:100%;padding:0 15px;display:flex}.tree-header{z-index:3;background-color:#f0f2f5;flex-flow:row;justify-content:space-between;align-items:center;height:50px;padding:5px 20px;display:flex}.list-editor{background-color:#f0f2f5;height:100%}.listes-description{background-color:#fff;border-top:1px solid #eee;flex-flow:row;justify-content:center;align-items:flex-start;padding:10px 20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.listes-description .form-column{margin-right:50px}.listes-description .form-item>span{min-width:70px}.container{background-color:#fff;border-top:1px solid #eee;flex-flow:column;justify-content:center;align-items:flex-start;padding:10px 20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.selected-items-table,.available-items{flex-flow:column;width:50%;height:100%;display:flex}.available-items-options{background-color:#fff;border-radius:5px;margin-bottom:12px;padding:8px;box-shadow:0 .125rem .25rem #00000013}.available-items-table{flex:3}.cti-listes-manager-references{flex-flow:column;height:30%;padding-top:20px}.listes-manager-listes{background-color:#fff;border-radius:5px;flex:3;min-height:0;overflow:scroll;box-shadow:0 .125rem .25rem #00000013}.references-header{flex-flow:wrap;display:flex}.references-tree{background-color:#fff;border-radius:5px;flex:3;min-height:0;overflow:scroll;box-shadow:0 .125rem .25rem #00000013}.listes-spin-loader{z-index:1000;height:0;position:relative;top:150px;left:50%} | |||||
| @ -0,0 +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-BDcMaxoP.js";import{r as i}from"./react-redux-Bek2gPun.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}; | |||||
| @ -0,0 +1 @@ | |||||
| .cti-loader{flex-flow:row;justify-content:center;align-items:center;width:100%;height:100%;display:flex}.sk-folding-cube{width:40px;height:40px;margin:20px auto;position:relative;transform:rotate(45deg)}.sk-folding-cube .sk-cube{float:left;width:50%;height:50%;position:relative;transform:scale(1.1)}.sk-folding-cube .sk-cube:before{content:"";background-color:var(--primary-color);transform-origin:100% 100%;width:100%;height:100%;animation:2.4s linear infinite both sk-foldCubeAngle;position:absolute;top:0;left:0}.sk-folding-cube .sk-cube2{transform:scale(1.1)rotate(90deg)}.sk-folding-cube .sk-cube3{transform:scale(1.1)rotate(180deg)}.sk-folding-cube .sk-cube4{transform:scale(1.1)rotate(270deg)}.sk-folding-cube .sk-cube2:before{animation-delay:.3s}.sk-folding-cube .sk-cube3:before{animation-delay:.6s}.sk-folding-cube .sk-cube4:before{animation-delay:.9s}@keyframes sk-foldCubeAngle{0%,10%{opacity:0;transform:perspective(140px)rotateX(-180deg)}25%,75%{opacity:1;transform:perspective(140px)rotateX(0)}90%,to{opacity:0;transform:perspective(140px)rotateY(180deg)}} | |||||
| @ -0,0 +1 @@ | |||||
| .logs-table{height:100%}.logs-cache-pre{background:#f5f5f5;border-radius:4px;flex:1;margin:0;padding:12px;font-size:12px;overflow:auto} | |||||
| @ -0,0 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{nt as r}from"./axios-BDcMaxoP.js";import{S as i,c as a,u as o}from"./ctiAxios-HKh7HuhO.js";import{t as s}from"./button-xukQsL9n.js";import{n as c}from"./chunk-4N6VE7H7-DnASKJzj.js";import{I as l,pt as u,s as d}from"./index-C1mw6CgG.js";import{n as f}from"./logs.queries-Dl26GlbD.js";var p=e(t()),m=n(),h=async()=>{let e=await i.getItem(`REACT_QUERY_OFFLINE_CACHE`);return e?(a(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,[a,g]=(0,p.useState)(`logs`),[_,v]=(0,p.useState)([]),y=(0,p.useRef)(null);(0,p.useEffect)(()=>{if(a!==`cache`)return;let e=async()=>{v(await h())};e();let t=o.getQueryCache().subscribe(()=>{clearTimeout(y.current),y.current=setTimeout(e,1500)});return()=>{t(),clearTimeout(y.current)}},[a]);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:a===`logs`?`primary`:`default`,onClick:()=>g(`logs`),children:`Logs serveur`}),(0,m.jsx)(s,{type:a===`cache`?`primary`:`default`,onClick:()=>g(`cache`),children:`Cache persistant`}),a===`logs`&&(0,m.jsx)(s,{onClick:b,children:`Reload`})]})]}),(0,m.jsxs)(`div`,{className:`page-content`,children:[a===`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é !`)}})})}),a===`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}; | |||||
| @ -0,0 +1 @@ | |||||
| import{r as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";var r=e({default:()=>a});t();var i=n(),a=e=>(0,i.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 25 25`,...e,children:(0,i.jsx)(`path`,{stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M20.883 17.16c-1.254-1.535-2.14-2.316-2.14-6.547 0-3.875-1.978-5.255-3.606-5.925a.87.87 0 0 1-.486-.516c-.286-.972-1.087-1.828-2.151-1.828-1.065 0-1.866.857-2.148 1.83-.066.224-.27.425-.486.513-1.63.672-3.607 2.047-3.607 5.926-.003 4.23-.888 5.012-2.142 6.547-.52.635-.064 1.59.844 1.59h15.083c.903 0 1.355-.957.839-1.59M15.625 18.75v.781a3.125 3.125 0 1 1-6.25 0v-.781`})});export{a as n,r as t}; | |||||
| @ -0,0 +1 @@ | |||||
| .ovalide-imports{height:100%} | |||||
| @ -0,0 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{fr as r,n as i,o as a,r as o}from"./axios-BDcMaxoP.js";import{t as s}from"./index.esm-D4i6w2dF.js";import{t as c}from"./ctiAxios-HKh7HuhO.js";import{t as l}from"./button-xukQsL9n.js";import{t as u}from"./DownloadOutlined-BxQhjjNl.js";import{t as d}from"./useMutation-BtpRmKbj.js";import{t as f}from"./queryOptions-Cg9orY1Y.js";import{t as p}from"./UndoOutlined-DAvTbx0c.js";import{F as m,I as h,L as g,N as _,Z as v,s as y,y as b}from"./index-C1mw6CgG.js";import{r as x,t as S}from"./path-DqrO9bqq.js";import{i as C}from"./importColumn-GAofQzY-.js";async function w(e){let t=new FormData;return t.append(`action`,`get`),(await c({method:`post`,url:r()+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:r()+x(t),data:n,headers:{"Content-Type":`multipart/form-data`},responseType:`json`})}async function E({file:e,typeEts:t,module:n}){let i=new FormData;return i.append(`action`,`post`),i.append(`fileName`,e.name),i.append(`fileData`,e),i.append(`typeEts`,t),(await c({method:`post`,url:r()+x(n),data:i,headers:{"Content-Type":`multipart/form-data`},responseType:`json`})).data}async function D(e,t){b((await c({method:`get`,url:`${r()}${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=a();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=a();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}; | |||||
| @ -0,0 +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-D4i6w2dF.js";import{t as i}from"./input-C55Uc3oN.js";import{I as a,ot as o}from"./index-C1mw6CgG.js";import{t as s}from"./SaveButton-BWNmkjLW.js";import{r as c}from"./users.mutations-CKeA39Fu.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}; | |||||
| @ -0,0 +1 @@ | |||||
| .form-row{flex-flow:wrap;justify-content:flex-start;align-items:center;margin-top:8px;display:flex}.form-item{flex-flow:row;align-items:center;display:flex}.form-item .ant-form-item{margin-bottom:5px}.form-item .ant-form-item-control-input-content{margin-right:10px}.form-item .ant-input,.form-item .ant-select{width:250px}.form-item>span{margin-right:10px;font-weight:500}.form-column{flex-flow:column;justify-content:space-between;width:100%;height:100%;display:flex}.form-column>span{font-weight:600}.first-label{min-width:150px;font-weight:500}.password-form{background-color:#fff;border-radius:5px;flex-flow:column;width:100%;padding:20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.password-form .first-label{font-size:12px;min-width:250px!important} | |||||
| @ -0,0 +1 @@ | |||||
| import"./chunk-jRWAZmH_.js";import{n as e,t}from"./jsx-runtime-CEixWuwE.js";e();var n=t(),r=e=>(0,n.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 25 25`,...e,children:(0,n.jsx)(`path`,{fill:`currentColor`,d:`M22.168 19.52a10.4 10.4 0 0 0-2.249-3.334 10.5 10.5 0 0 0-3.334-2.25q-.017-.006-.034-.013A6.918 6.918 0 0 0 12.5 1.395a6.92 6.92 0 0 0-6.92 6.92 6.91 6.91 0 0 0 2.869 5.61q-.017.008-.034.015a10.4 10.4 0 0 0-3.334 2.249 10.5 10.5 0 0 0-2.249 3.334 10.4 10.4 0 0 0-.823 3.853.223.223 0 0 0 .223.229h1.674c.123 0 .22-.098.223-.218a8.32 8.32 0 0 1 2.45-5.7 8.32 8.32 0 0 1 5.921-2.453c2.238 0 4.339.87 5.92 2.453a8.32 8.32 0 0 1 2.45 5.7c.003.123.101.218.224.218h1.674a.223.223 0 0 0 .223-.229 10.4 10.4 0 0 0-.823-3.856M12.5 13.114c-1.28 0-2.486-.5-3.393-1.406a4.77 4.77 0 0 1-1.406-3.393c0-1.281.5-2.486 1.406-3.393A4.77 4.77 0 0 1 12.5 3.516c1.28 0 2.486.5 3.393 1.406a4.77 4.77 0 0 1 1.406 3.393c0 1.28-.5 2.486-1.406 3.393a4.77 4.77 0 0 1-3.393 1.406`})});export{r as default}; | |||||
| @ -1 +0,0 @@ | |||||
| import{j as a}from"./index-mh7VHmRi.js";const o=e=>a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:a.jsx("path",{fill:"currentColor",d:"M22.168 19.52a10.4 10.4 0 0 0-2.249-3.334 10.5 10.5 0 0 0-3.334-2.25q-.017-.006-.034-.013A6.918 6.918 0 0 0 12.5 1.395a6.92 6.92 0 0 0-6.92 6.92 6.91 6.91 0 0 0 2.869 5.61q-.017.008-.034.015a10.4 10.4 0 0 0-3.334 2.249 10.5 10.5 0 0 0-2.249 3.334 10.4 10.4 0 0 0-.823 3.853.223.223 0 0 0 .223.229h1.674c.123 0 .22-.098.223-.218a8.32 8.32 0 0 1 2.45-5.7 8.32 8.32 0 0 1 5.921-2.453c2.238 0 4.339.87 5.92 2.453a8.32 8.32 0 0 1 2.45 5.7c.003.123.101.218.224.218h1.674a.223.223 0 0 0 .223-.229 10.4 10.4 0 0 0-.823-3.856M12.5 13.114c-1.28 0-2.486-.5-3.393-1.406a4.77 4.77 0 0 1-1.406-3.393c0-1.281.5-2.486 1.406-3.393A4.77 4.77 0 0 1 12.5 3.516c1.28 0 2.486.5 3.393 1.406a4.77 4.77 0 0 1 1.406 3.393c0 1.28-.5 2.486-1.406 3.393a4.77 4.77 0 0 1-3.393 1.406"})});export{o as default}; | |||||
| @ -0,0 +1 @@ | |||||
| import{r as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";var r=e({default:()=>a});t();var i=n(),a=e=>(0,i.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 25 25`,...e,children:[(0,i.jsx)(`path`,{fill:`currentColor`,d:`M12.642 2.344C6.93 2.267 2.267 6.93 2.344 12.642 2.42 18.12 6.88 22.58 12.358 22.656c5.713.078 10.375-4.585 10.297-10.297C22.58 6.88 18.12 2.42 12.642 2.344m6.172 15.979a.194.194 0 0 1-.235.04.2.2 0 0 1-.064-.056 6.1 6.1 0 0 0-1.58-1.445c-1.243-.798-2.818-1.237-4.435-1.237s-3.192.44-4.435 1.237a6.1 6.1 0 0 0-1.58 1.445.196.196 0 0 1-.3.015 8.56 8.56 0 0 1-2.279-5.675c-.08-4.752 3.82-8.73 8.573-8.74 4.754-.013 8.615 3.847 8.615 8.593a8.56 8.56 0 0 1-2.28 5.823`}),(0,i.jsx)(`path`,{fill:`currentColor`,d:`M12.5 7.031c-.963 0-1.834.361-2.452 1.017-.619.656-.928 1.562-.858 2.536.142 1.916 1.626 3.479 3.31 3.479s3.165-1.563 3.31-3.479c.072-.964-.234-1.862-.863-2.53-.621-.66-1.49-1.023-2.447-1.023`})]});export{a as n,r as t}; | |||||
| @ -0,0 +1 @@ | |||||
| .options-section{background-color:#fff;border-radius:5px;flex-flow:column;width:100%;padding:20px;display:flex}.options-section-middle{background-color:#fff;border-radius:5px;flex-flow:column;width:100%;margin-top:10px;padding:20px;display:flex}.section-title{margin-bottom:10px}.section-body{flex-flow:column;flex:3;display:flex}.section-body>div{height:40px}.form-item-element{margin-left:10px} | |||||
| @ -0,0 +1 @@ | |||||
| .form-item .ant-input,.form-item .ant-select{width:250px}.editor-essentials{background-color:#fff;height:100%;padding:20px;box-shadow:0 .125rem .25rem #00000013}.column-lists{flex-direction:row;height:calc(100% - 50px);padding-top:10px;display:flex}.column-list{flex-flow:row;flex:3;justify-content:center;width:100%;min-height:0}.column-list .ant-tree,.column-list .ant-tree-list,.column-list .ant-tree-list>div,.column-list .ant-tree-list-holder-inner{height:100%}.column-list .ant-tree-list-holder-inner{overflow:scroll}.tree-title{text-align:center;font-weight:600}.editor-essentials .ant-tree-list-holder>div{height:100%}.essentials-right-content{height:calc(100% - 28px)}.essentials-left-content{flex-flow:column;height:100%;display:flex}.essentials-left-content .ant-tree .ant-tree-treenode,.essentials-left-content .ant-tree .ant-tree-node-content-wrapper{width:100%}.reports-editor-table,.editor-table{flex:3;height:100%}.reports-editor-table{box-shadow:0 .125rem .25rem #00000013}.form-item .ant-input,.form-item .ant-select{width:250px}.editor-indicator-editor{background-color:#fff;flex-flow:column;flex:3;min-height:0;margin-top:20px;padding:20px;box-shadow:0 .125rem .25rem #00000013}.editor-indicator-header{flex-flow:row;justify-content:flex-end;align-items:center;gap:10px;width:100%;height:30px;display:flex}.editor-indicator-header .close-button{line-height:12px}.editor-new-indicator-header{flex-flow:row;justify-content:space-between;width:100%;height:30px;display:flex}.editor-indicator-action-button{align-items:center;gap:10px;display:flex}.editor-indicator-action-button .close-button{line-height:12px}.scrollable-tab{overflow-y:scroll}.indicator-tab-column{max-width:50%;padding:0 10px}.indicator-tab-column .form-row{flex-flow:wrap;align-items:center;margin-top:4px;display:flex}.form__report-indicator{flex-direction:column;min-height:0;display:flex}.form-item .ant-input,.form-item .ant-select{width:250px}.reports-editor-settings{background-color:#fff;border-top:1px solid #eee;flex-flow:column;padding:10px 20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.indicators-tab{flex-flow:column;height:100%;display:flex}#settings{flex-flow:wrap;display:flex}#settings>.form-row{flex:1;column-gap:50px;min-width:350px}#settings>.form-row>.form-item{flex:1}#settings>.form-row>.form-item .ant-input,#settings>.form-row>.form-item .ant-select{width:100%;min-width:200px}.form-row_margin_right{margin-right:50px!important}.form-row{flex-flow:wrap;justify-content:flex-start;align-items:center;margin-top:8px;display:flex}.form-item{flex-flow:row;align-items:center;display:flex}.form-item .ant-form-item{margin-bottom:5px}.form-item .ant-form-item-control-input-content{margin-right:10px}.form-item .ant-input,.form-item .ant-select{width:250px}.form-item>span{margin-right:10px;font-weight:500}.form-column{flex-flow:column;justify-content:space-between;width:100%;height:100%;display:flex}.form-column>span{font-weight:600}.first-label{min-width:150px;font-weight:500}.reports-table{flex:3}.reports-params{background-color:#fff;flex-flow:wrap;align-items:flex-start;width:100%;height:350px;margin-top:20px;padding:20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.params-close{flex-flow:row;justify-content:space-between;align-items:center;width:100%;height:32px;min-height:0;display:flex}.params-actions{align-items:center;gap:10px;display:flex}.params-actions .close-button{line-height:12px}.params-close>span{font-size:16px;font-weight:600}.params-form{flex-flow:row;width:100%;height:calc(100% - 32px);display:flex}.reports-params .ant-form{width:100%;height:100%}.settings__rowTable-inactive{color:#b1b1b1}.BaseTable__row-cell svg{margin-right:3px}.reports__table-check{flex-flow:row;justify-content:flex-end;align-items:flex-end;gap:10px;display:flex}.reports__table-single-check{flex-flow:column wrap;justify-content:center;align-items:center;display:flex}.reports__table-single-check span{margin-right:0!important}.reports__table-single-check button{width:30px}.reports__table-headers{background-color:#fff;border-top:1px solid #eee;padding:10px 20px;box-shadow:0 .125rem .25rem #00000013}.reports__table-headers .ant-input{max-width:250px;margin-right:10px}.reports__table-headers span{margin-right:10px;font-weight:600}.reports__table-filters{flex-flow:row;align-items:center;display:flex} | |||||
| @ -0,0 +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-BDcMaxoP.js";import{t as a}from"./UndoOutlined-DAvTbx0c.js";import{N as o}from"./index-C1mw6CgG.js";import{t as s}from"./BaseActionButton-C-haanPv.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}; | |||||
| @ -0,0 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{In as n,Ln as r,jt as i}from"./axios-BDcMaxoP.js";var a=e(t());r();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,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| @ -0,0 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{In as n,Ln as r,jt as i}from"./axios-BDcMaxoP.js";var a=e(t());r();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,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| @ -0,0 +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-Cq8lBfIi.js","./Information-BXzTZc0Z.js","./NotificationsOutline-COWH5lJd.js","./PeopleOutline-D1hS4ztT.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{In as r,Ln as i,jt as a,n as o}from"./axios-BDcMaxoP.js";import{t as s}from"./preload-helper-DZmVH3u5.js";import{F as c}from"./index-C1mw6CgG.js";var l=e(t());i();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,r(r({},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-Cq8lBfIi.js`),__vite__mapDeps([6,1,2]),import.meta.url),"../../components/shared/svg/icons/Information.jsx":()=>s(()=>import(`./Information-BXzTZc0Z.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-D1hS4ztT.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}; | |||||
| @ -0,0 +1 @@ | |||||
| .salarie-ventilation-editor{padding:0 20px}.salarie-ventilation-editor .ant-descriptions{background:#fff;border-radius:5px;margin-top:24px;margin-bottom:24px;padding:16px 24px}.salarie-ventilation-editor .ant-descriptions .ant-descriptions-title{color:#012b43;letter-spacing:.02em;margin-bottom:12px;font-size:14px;font-weight:700}.salarie-ventilation-editor .ant-descriptions .ant-descriptions-item-label{color:#929292;font-size:12px;font-weight:600}.salarie-ventilation-editor .ant-descriptions .ant-descriptions-item-content{color:#012b43;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:12px}.salarie-ventilation-editor .ant-table-thead th .auto-fill-btn:hover{opacity:1;color:#ff8801;background:#ffe6cc!important}.salarie-ventilation-editor .ant-tooltip-inner{background:#faad14;border-radius:5px;font-size:12px;font-weight:500}.salarie-ventilation-editor .editable-cell-value-wrap{cursor:pointer;padding:5px 12px}.salarie-ventilation-editor .editable-cell-value-wrap:hover{border:1px solid #ff8801;border-radius:2px;padding:4px 11px}.salarie-ventilation-editor .cell-modified .editable-cell-value-wrap{color:#ff8801;font-weight:800}.salarie-ventilation-editor .column-error .editable-cell-value-wrap{color:#ff4d4f;font-weight:800}.ventilation-error-alert{color:#ff4d4f;border:1px solid #ff4d4f;border-radius:4px;padding:8px 14px;font-weight:500}.auto-fill-btn{opacity:.3;transition:opacity .15s}.salarie-ventilation-editor .editor-table-container{border-radius:5px}.salarie-ventilation-editor .editor-table-container .ant-tabs-card.ant-tabs-top>.ant-tabs-nav .ant-tabs-tab{border-radius:4px 4px 0 0;justify-content:center;width:75px;font-weight:600;display:flex}.salarie-ventilation-editor .editor-table-container .ant-tabs-card .ant-tabs-tab-active{background:#fafafa;border-color:#ff8801 #ff8801 #fff;transition:background .3s,border-color .3s,border-bottom-color .3s}.salarie-ventilation-editor .editor-table-container .ant-tabs-card .ant-tabs-tab-active span{color:#ff8801;font-weight:700}.salarie-ventilation-editor .editor-table-container .ant-tabs-card .ant-tabs-tab-active.ant-tabs-tab:has(.tab-error){border-color:#ff4d4f #ff4d4f #fff;transition:background .3s,border-color .3s,border-bottom-color .3s}.salarie-ventilation-editor .editor-table-container .ant-tabs-card .ant-tabs-tab-active.ant-tabs-tab:has(.tab-error) span{color:red}.salarie-ventilation-editor .editor-table-container .ant-badge-dot{background:#ff8801}.salarie-ventilation-editor .editor-table-container .badge-error .ant-badge-dot{background:#ff4d4f}.salarie-ventilation-editor .editor-table-container .ant-tabs-extra-content .tabs-extra-button{gap:10px;margin-bottom:8px;display:flex} | |||||
| @ -0,0 +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-D4i6w2dF.js";import{t as i}from"./button-xukQsL9n.js";import{t as a}from"./table-adA-XDZ0.js";import{c as o,s,t as c}from"./chunk-4N6VE7H7-DnASKJzj.js";import{t as l}from"./Loader-BvAKWCqv.js";import{a as u,o as d,r as f,t as p}from"./ResetButton-BWz1k8XX.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}; | |||||
| @ -0,0 +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-BDcMaxoP.js";import{t as i}from"./SaveOutlined-uzaDTRdi.js";import{t as a}from"./BaseActionButton-C-haanPv.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}; | |||||
| @ -0,0 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{In as n,Ln as r,jt as i}from"./axios-BDcMaxoP.js";var a=e(t());r();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,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| @ -0,0 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{Cr as r,hr as i,n as a,o,r as s}from"./axios-BDcMaxoP.js";import{t as c}from"./index.esm-D4i6w2dF.js";import{i as l}from"./ctiAxios-HKh7HuhO.js";import{t as u}from"./button-xukQsL9n.js";import{t as d}from"./DownloadOutlined-BxQhjjNl.js";import{r as f}from"./notification-DIuyPXAV.js";import{t as p}from"./useMutation-BtpRmKbj.js";import{t as m}from"./UndoOutlined-DAvTbx0c.js";import{F as h,L as g,s as _,wt as v}from"./index-C1mw6CgG.js";var y={all:[`simulations`],list:e=>[...y.all,e]},b=e=>{let t=e.getElementsByTagName(`HTTP_SERVICE`)[0];return r(i(t,`FILE`))},x=e=>{let t=e.getElementsByTagName(`HTTP_SERVICE`)[0];return r(i(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=o();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=o();return p({mutationFn:async({year:e,file:t})=>{await T(e,t),f({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(a()),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()},f=()=>{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)(u,{onClick:f,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)(u,{disabled:o.fg1_ok!==`OUI`||r.isPending,onClick:y,children:[(0,N.jsx)(d,{}),`Télécharger`]})}),(0,N.jsx)(h,{title:`Actualiser`,children:(0,N.jsx)(u,{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}; | |||||
| @ -0,0 +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-BDcMaxoP.js";import{t as i}from"./index.esm-D4i6w2dF.js";import{t as a}from"./input-C55Uc3oN.js";import{i as o}from"./ctiAxios-HKh7HuhO.js";import{t as s}from"./button-xukQsL9n.js";import{t as c}from"./popconfirm-BanNBanA.js";import{r as l}from"./notification-DIuyPXAV.js";import{t as u}from"./UndoOutlined-DAvTbx0c.js";import{t as d}from"./Loader-BvAKWCqv.js";import{F as f,ht as p,ot as m,s as h}from"./index-C1mw6CgG.js";import{a as g,t as _}from"./synchronize.queries-BZpHRXuv.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,l({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)(s,{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)(c,{title:`Êtes-vous sur de vouloir lancer la synchronisation ?`,onConfirm:x,children:[(0,b.jsx)(s,{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}; | |||||
| @ -0,0 +1 @@ | |||||
| .form-row{flex-flow:wrap;justify-content:flex-start;align-items:center;margin-top:8px;display:flex}.form-item{flex-flow:row;align-items:center;display:flex}.form-item .ant-form-item{margin-bottom:5px}.form-item .ant-form-item-control-input-content{margin-right:10px}.form-item .ant-input,.form-item .ant-select{width:250px}.form-item>span{margin-right:10px;font-weight:500}.form-column{flex-flow:column;justify-content:space-between;width:100%;height:100%;display:flex}.form-column>span{font-weight:600}.first-label{min-width:150px;font-weight:500}.content-table{height:100%} | |||||
| @ -0,0 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{In as r,Ln as i,jt as a,n as o,o as s}from"./axios-BDcMaxoP.js";import{t as c}from"./index.esm-D4i6w2dF.js";import{t as l}from"./button-xukQsL9n.js";import{t as u}from"./popconfirm-BanNBanA.js";import{t as d}from"./useMutation-BtpRmKbj.js";import{t as f}from"./UndoOutlined-DAvTbx0c.js";import{t as p}from"./Loader-BvAKWCqv.js";import{F as m,ht as h,s as g}from"./index-C1mw6CgG.js";import{a as _,i as v,n as y,r as b}from"./synchronize.queries-BZpHRXuv.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`};i();var S=e(t()),C=S.forwardRef(function(e,t){return S.createElement(a,r(r({},e),{},{ref:t,icon:x}))});function w(){let e=s();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(o()),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 @@ | |||||
| .sync-button{background-color:#fff;border-radius:5px;flex-flow:column;padding:20px;display:flex}.sync-button .sync-title{font-size:14px;font-weight:600}.sync-button button{max-width:200px;margin-top:10px} | |||||
| @ -0,0 +1 @@ | |||||
| import{r as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";var r=e({default:()=>a});t();var i=n(),a=e=>(0,i.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`none`,viewBox:`0 0 25 26`,...e,children:[(0,i.jsx)(`path`,{stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:2,d:`M20.313 11.303v9.51a2.344 2.344 0 0 1-2.344 2.343H7.03a2.344 2.344 0 0 1-2.343-2.343V5.188A2.344 2.344 0 0 1 7.03 2.844h4.822c.414 0 .812.164 1.104.457l6.898 6.898c.293.293.457.69.457 1.104Z`}),(0,i.jsx)(`path`,{stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M12.5 3.234v5.86a1.563 1.563 0 0 0 1.563 1.562h5.859M8.594 14.562h7.812M8.594 18.47h7.812`})]});export{r as n,a as t}; | |||||
| @ -0,0 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{In as n,Ln as r,jt as i}from"./axios-BDcMaxoP.js";var a=e(t());r();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,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| @ -0,0 +1 @@ | |||||
| .transfer-layout-content{flex-flow:row;flex:3;min-height:0;margin-top:10px;display:flex}.transfer-actions{flex-direction:column;justify-content:center;align-items:center;height:100%;padding:0 15px;display:flex}.tree-header{z-index:3;background-color:#f0f2f5;flex-flow:row;justify-content:space-between;align-items:center;height:50px;padding:5px 20px;display:flex}.annuaire-editor{flex-flow:row;height:100%;display:flex}.annuaire-editor .user-editor-section-title{width:150px}.annuaire-options-30{width:30%}.annuaire-options-100{width:100%}.annuaire-list{flex-flow:row;flex:3;display:flex}.annuaire-list .transfer-table{width:100%}.annuaire-list .transfer-search{flex-flow:row;margin-bottom:8px;display:flex}.inline-chkbox{background-color:#f0f2f5;border-radius:10px;margin:3px}.user-editor-field.favoris-editor{align-items:center;display:flex}.user-editor-field.favoris-editor button{margin-left:8px}.inline-chkbox .ant-form-item{margin-bottom:0}.inline-chkbox ant-form-item-label>label{height:-webkit-fill-available}.form-row{flex-flow:wrap;justify-content:flex-start;align-items:center;margin-top:8px;display:flex}.form-item{flex-flow:row;align-items:center;display:flex}.form-item .ant-form-item{margin-bottom:5px}.form-item .ant-form-item-control-input-content{margin-right:10px}.form-item .ant-input,.form-item .ant-select{width:250px}.form-item>span{margin-right:10px;font-weight:500}.form-column{flex-flow:column;justify-content:space-between;width:100%;height:100%;display:flex}.form-column>span{font-weight:600}.first-label{min-width:150px;font-weight:500}.user-editor-container{flex-flow:column;height:100%;display:flex}.user-editor-form{flex:3;min-height:0}.user-editor-form form.ant-form.ant-form-horizontal{flex-flow:column;display:flex}.user-editor-tab{width:100%;height:100%;overflow-y:scroll}.user-editor-section{width:100%;display:flex}.user-editor-section-title{width:20%;height:100%;padding-top:10px}.user-editor-row-container{flex-flow:wrap;flex-basis:100%;display:flex}.user-editor-field{width:auto;padding-left:10px;padding-right:10px}.user-editor-field .ant-row.ant-form-item{margin:2px}.user-editor-form .ant-tabs.ant-tabs-top{flex:auto;height:100%}.user-editor-inline{flex-direction:row;display:flex}.user-editor-inline .subtitle{flex-flow:row;justify-content:center;align-items:center;margin-bottom:.5em;margin-left:8px;display:flex}.scrollable-tab{overflow-y:scroll}.settings-filters{background-color:#fff;border-top:1px solid #eee;flex-flow:column;justify-content:center;padding:10px 20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.settings-filters span{padding-left:20px;padding-right:20px;font-weight:600}.settings-search{flex-direction:row;align-items:center;display:flex}.settings-single-check{flex-flow:column wrap;justify-content:center;align-items:center;display:flex}.settings-single-check button{width:28px}.users-table{flex:3}.users-editor{background-color:#fff;border-radius:5px;flex-direction:column;min-height:0;margin-top:10px;padding:10px 20px;display:flex;box-shadow:0 .125rem .25rem #00000013}.user-editor-header{flex-flow:row;justify-content:flex-end;align-items:center;width:100%;height:50px;display:flex}.user-editor-header button{margin-left:10px}.user-editor-form{width:100%;height:calc(100% - 50px);display:flex}.user-editor-form .form-row,.user-editor-form .ant-form.ant-form-horizontal{width:100%}.user-editor-form .ant-tabs-tabpane.ant-tabs-tabpane-active.user-editor-tab{flex-flow:column;display:flex}.user-editor-form .ant-tabs-content.ant-tabs-content-top{height:100%}.user-editor-form .ant-transfer-list{height:100%;overflow-y:scroll}.user-editor-form .ant-transfer{flex:3;min-height:0;display:flex}.user-editor-form .tab-transfer-list,.user-editor-form .tab-transfer-list .ant-form-item-control-input{height:100%}.user-editor-form .ant-transfer.ant-transfer-customize-list{width:100%;min-width:0;height:100%;min-height:0}.user-editor-form .ant-tabs.ant-tabs-top{width:100%} | |||||
| @ -0,0 +1 @@ | |||||
| .valo-imports{height:100%} | |||||
| @ -0,0 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./jsx-runtime-CEixWuwE.js";import{fr as r,o as i,r as a}from"./axios-BDcMaxoP.js";import{t as o}from"./index.esm-D4i6w2dF.js";import{t as s}from"./ctiAxios-HKh7HuhO.js";import{t as c}from"./button-xukQsL9n.js";import{t as l}from"./useMutation-BtpRmKbj.js";import{t as u}from"./queryOptions-Cg9orY1Y.js";import{t as d}from"./UndoOutlined-DAvTbx0c.js";import{F as f,L as p,s as m}from"./index-C1mw6CgG.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:r()+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:r()+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=i();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}; | |||||
| @ -0,0 +1 @@ | |||||
| import{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{In as n,Ln as r,jt as i}from"./axios-BDcMaxoP.js";var a=e(t());r();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,n(n({},e),{},{ref:t,icon:o}))});export{s as t}; | |||||
| @ -0,0 +1 @@ | |||||
| import{t as e}from"./chunk-jRWAZmH_.js";import{C as t,T as n}from"./_getTag-Hpw31fpV.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}; | |||||
| @ -0,0 +1 @@ | |||||
| import{t as e}from"./chunk-jRWAZmH_.js";import{Bt as t,It as n,Rt as r}from"./axios-BDcMaxoP.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-Hpw31fpV.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,n)=>{var r=t(),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}n.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,t)=>{var n=d(),i=_(),a=b(),o=x(),l=u(),f=r(),p=c(),m=s(),h=1,g=`[object Arguments]`,v=`[object Array]`,y=`[object Object]`,S=Object.prototype.hasOwnProperty;function C(e,t,r,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 n,d||m(e)?i(e,t,r,s,c,u):a(e,t,b,r,s,c,u);if(!(r&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 n,c(O,k,r,s,u)}}return T?(u||=new n,o(e,t,r,s,c,u)):!1}t.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}; | |||||
| @ -0,0 +1 @@ | |||||
| import{t as e}from"./chunk-jRWAZmH_.js";import{x as t}from"./sanitizeDataUtils-DBUp8Fd9.js";import{i as n}from"./_getTag-Hpw31fpV.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{n as e}from"./chunk-jRWAZmH_.js";import{n as t,t as n}from"./typeof-C6uZ2mkP.js";function r(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var i=e((()=>{t()}));function a(e){var t=r(e,`string`);return n(t)==`symbol`?t:t+``}var o=e((()=>{t(),i()}));function s(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=e((()=>{o()}));function l(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function u(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){l(a,r,i,o,s,`next`,e)}function s(e){l(a,r,i,o,s,`throw`,e)}o(void 0)})}}var d=e((()=>{}));export{o as a,c as i,d as n,a as o,s as r,u as t}; | |||||
| @ -0,0 +1 @@ | |||||
| var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e),f=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});export{d as a,f as i,o as n,u as o,c as r,s as t}; | |||||
| @ -0,0 +1 @@ | |||||
| pre code.hljs{padding:1em;display:block;overflow-x:auto}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0} | |||||
| @ -0,0 +1 @@ | |||||
| import{gr as e,hr as t}from"./axios-BDcMaxoP.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{o as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{In as n,Ln as r,br as i,fr as a,gr as o,hr as s,jt as c}from"./axios-BDcMaxoP.js";import{i as l}from"./ctiAxios-HKh7HuhO.js";import{O as u}from"./index-C1mw6CgG.js";var d=e(t());r();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(c,n(n({},e),{},{ref:t,icon:f}))}),m=e(u());function h(e){let t=e.getElementsByTagName(`HTTP_SERVICE`)[0];return{schema:o(t).schema,tables:n(t),refTables:r(t)};function n(e){let t={};return s(e,`TABLE`).forEach((e,n)=>{let r=o(e),s=a(e);i(s)||(r.listes=s);let l=c(e);i(l)||(r.groups=l),t[`${r.table_id}-${n}`]=r}),t}function r(e){let t={};return s(e,`REFTABLE`).forEach(e=>{let n=o(e),r=a(e);i(r)||(n.listes=r);let s=c(e);i(s)||(n.groups=s),t[(0,m.default)(n.table_id)]=n}),t}function a(e){let t={};return s(e,`LISTE`).forEach(e=>{let n=o(e);t[(0,m.default)(n.liste_id)]=n}),t}function c(e){let t={};return s(e,`GROUP`).forEach(e=>{let n=o(e),r=c(e);i(r)||(n.groups=r);let s=a(e);i(s)||(n.listes=s),t[(0,m.default)(n.texte)]=n}),t}}function g(e){let t=e.getElementsByTagName(`HTTP_SERVICE`)[0],n=s(t,`LISTE`)[0],r=o(n),i=s(n,`COLUMN`);if(i){let e={};i.forEach(t=>{let n=o(t);e[n.name]=n}),r.columns=e}let a=s(n,`RECORD`);if(a){let e={};a.forEach(t=>{let n=o(t);e[n.oid]=n}),r.records=e}let c=s(n,`OID`);if(c){let e={};c.forEach(t=>{let n=o(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=a()+`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}; | |||||