1"use strict";(self.webpackChunkmy_facturation=self.webpackChunkmy_facturation||[]).push([[8020],{43254(e,t,n){n.d(t,{A:()=>p});n(52675),n(89463),n(2259),n(28706),n(23418),n(64346),n(23792),n(34782),n(23288),n(62010),n(26099),n(27495),n(38781),n(47764),n(62953);var r=n(96540),o=n(69733),s=n(47767),c=n(6549),i=n(24412),a=n(29798);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,s,c,i=[],a=!0,u=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=s.call(n)).done)&&(i.push(r.value),i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{if(!a&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const p=function(e){var t=e.Component,n=(0,s.Zp)(),l=(0,a.A)(),p=(0,s.g)().idRevenue,d=(0,o.d4)(function(e){return e.enterprise}),f=u((0,r.useState)({}),2),m=f[0],b=f[1],y=u((0,i.Ay)(),3),v=y[0],A=y[1],g=y[2];return(0,r.useEffect)(function(){d.id&&p&&(isNaN(p)?n("/404",{replace:!0}):A({url:"enterprises/".concat(d.id,"/revenues/").concat(p)}))},[d.id,p]),(0,r.useEffect)(function(){v&&(v.success?b(v.revenue):l())},[v]),g?r.createElement(c.A,{active:!0,inline:"centered"}):m.id?r.createElement(t,{revenue:m,setRevenue:b}):null}},25591(e,t,n){n.d(t,{A:()=>p});var r=n(96540),o=n(69733),s=n(75323),c=n(88561),i=n(81416),a=n(85973),u=n(91201),l=n(20912);const p=function(e){var t=e.wrapperRef,n=(0,o.d4)(function(e){return e.enterprise}),p=(0,r.useMemo)(function(){return[{end:!0,to:"/enterprises/".concat(n.id,"/clients"),Icon:u.A,content:"Clients"},{end:!0,to:"/enterprises/".concat(n.id,"/clients/categories"),Icon:i.A,content:"Catégories",Modal:l.A.STATISTICS},{end:!0,to:"/enterprises/".concat(n.id,"/clients/business-providers"),Icon:a.A,content:"Apporteurs d'affaires",Modal:l.A.BUSINESS_PROVIDERS},{end:!0,to:"/enterprises/".concat(n.id,"/stats/clients"),Icon:c.A,content:"Statistiques",Modal:l.A.STATISTICS}]},[n]);return n.id?r.createElement(s.A,{wrapperRef:t,itemGiven:p}):null}},19431(e,t,n){n.d(t,{A:()=>k});n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23792),n(89572),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(47764),n(48718),n(23500),n(62953);var r=n(96540),o=n(69733),s=n(75323),c=n(44291);const i=function(e){var t=e.label,n=e.count;return r.createElement(r.Fragment,null,t,r.createElement(c.A,{count:n,title:t}))};var a=n(91930),u=n(81416),l=n(91201),p=n(5196),d=n(61085),f=n(3444),m=n(70533),b=n(83183),y=n(22819),v=n(20912),A=n(43748),g=n(95233),h=n(11470);const S=function(){return(0,o.d4)(function(e){return(0,h.hC)(e.enterprise)})};function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach(function(t){P(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function P(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=I(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==I(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const k=function(e){var t=e.wrapperRef,n=(0,o.d4)(function(e){return e.enterprise}),c=(0,o.d4)(function(e){return e.user}),h=(0,g.A)(),I=S(),T=(0,r.useMemo)(function(){var e=[],t={end:!0,to:"/enterprises/".concat(n.id,"/expenses/transactions"),Icon:a.A,content:r.createElement(i,{label:"Dépenses à compléter",count:n.countExpensesToComplete})},o={end:!0,to:"/enterprises/".concat(n.id,"/expenses/categories"),Icon:u.A,content:"Catégories"};return e.push({end:!0,to:"/enterprises/".concat(n.id,"/expenses/list"),Icon:l.A,content:r.createElement(i,{label:"Dépenses",count:n.countExpensesToCheck})}),n.sub[A.NT]&&e.push(E({},t)),I&&e.push({end:!0,to:"/enterprises/".concat(n.id,"/expenses/pa-to-validate"),Icon:p.A,content:r.createElement(i,{label:"Dépenses à valider",count:n.countExpensesPaToValidate})}),n.sub[A.gS]&&e.push(E({},o)),e.push({end:!0,to:"/enterprises/".concat(n.id,"/expenses/providers"),Icon:d.A,content:"Fournisseurs",disabled:!n.currentUser.rightStat}),e.push({end:!0,to:"/enterprises/".concat(n.id,"/expenses/charge-types"),Icon:f.A,content:"Type de charges",disabled:!n.currentUser.rightStat}),e.push({end:!0,to:"/enterprises/".concat(n.id,"/expenses/amortizations"),Icon:m.A,content:"Tableau d'amortissement",display:c.isAccountant}
1),(n.sub[A.ob]||n.sub[A.GQ])&&e.push({end:!0,to:"/enterprises/".concat(n.id,"/expenses/account-categories"),Icon:b.A,content:"Comptes de résultat",display:c.isAccountant}),n.sub[A.NT]||e.push(E(E({},t),{},{Modal:v.A.BANK,modalProps:{autoTrigger:{className:"flex"}}})),n.sub[A.gS]||e.push(E(E({},o),{},{Modal:v.A.STATISTICS,modalProps:{autoTrigger:{className:"flex"}}})),e.push({end:!0,to:"/enterprises/".concat(n.id,"/expenses/workflow-nodes"),Icon:y.A,content:"Rôles d'approbation",regex:/^\/enterprises\/\d+\/expenses\/workflow-nodes/,display:h}),e},[n,c,h,I]);return n.id?r.createElement(s.A,{wrapperRef:t,itemGiven:T}):null}},30825(e,t,n){n.d(t,{A:()=>A});n(48718);var r=n(96540),o=n(6957),s=n(69733),c=n(16826),i=n(69613);const a=function(e){var t=e.children,n=e.disable,o=void 0!==n&&n;return r.createElement(i.A,{step:2,level:1,disable:o,children:t,keytuto:c.yK,title:"Packs de produits",content:"Créez autant de packs produits que vous le souhaitez afin de faciliter la saisie de vos produits et services lors de la création de vos documents."})};const u=function(e){var t=e.children,n=e.disable,o=void 0!==n&&n;return r.createElement(i.A,{step:3,level:1,disable:o,children:t,keytuto:c.yK,title:"gestion de stocks",content:"Gérez vos stocks simplement et selon la méthode de votre choix et ne tombez plus jamais à court !"})};const l=function(e){var t=e.children,n=e.disable,o=void 0!==n&&n;return r.createElement(i.A,{step:4,level:1,disable:o,children:t,keytuto:c.yK,title:"catégorisation",content:"Créez autant de catégories et de sous-catégories que vous le souhaitez afin d'obtenir des statistiques personnalisées."})};var p=n(75323),d=n(91201),f=n(558),m=n(81416),b=n(83183),y=n(43748),v=n(20912);const A=function(e){var t=e.wrapperRef,n=(0,s.d4)(function(e){return e.user}),i=(0,s.d4)(function(e){return e.enterprise}),A=(0,r.useMemo)(function(){var e=[];return e.push({end:!0,to:"/enterprises/".concat(i.id,"/products"),Icon:d.A,content:"Produits"}),e.push({end:!0,to:"/enterprises/".concat(i.id,"/products/packs"),Icon:d.A,content:"Packs",Popup:a,"data-tutorial-key":c.yK,"data-tutorial-step":"2",Modal:v.A.SIMPLIFIED_ACTION,modalProps:{autoTrigger:{className:"flex"}}}),e.push({end:!0,to:"/enterprises/".concat(i.id,"/stocks"),Icon:f.A,content:"Stocks",notification:i.countStockAlerts>0?r.createElement(o.A,{color:"orange",circular:!0,className:"notification"},i.countStockAlerts):null,Popup:u,"data-tutorial-key":c.yK,"data-tutorial-step":"3",Modal:v.A.SIMPLIFIED_ACTION,modalProps:{autoTrigger:{className:"flex"}}}),e.push({end:!0,to:"/enterprises/".concat(i.id,"/products/categories"),Icon:m.A,content:"Catégories",Popup:l,"data-tutorial-key":c.yK,"data-tutorial-step":"4",Modal:v.A.STATISTICS,modalProps:{autoTrigger:{className:"flex"}}}),(i.sub[y.ob]||i.sub[y.GQ])&&e.push({end:!0,to:"/enterprises/".concat(i.id,"/products/account-categories"),Icon:b.A,content:"Comptes de résultat",Modal:v.A.STATISTICS,modalProps:{autoTrigger:{className:"flex"}}}),e},[i,n]);return i.id?r.createElement(p.A,{wrapperRef:t,itemGiven:A}):null}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.