@tracktor/shared-module 2.13.2 → 2.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,20 @@
1
- # [Versions](https://github.com/Tracktor/shared-module/releases)
1
+ # Changelog
2
2
 
3
- ## v2.13.2
4
- - **[fix]** - `useResponseError` enhancement
3
+ ## [2.14.1] - 2025-07-01
4
+
5
+ ### 📦 Dependencies Updates
6
+ - ⬆️ **vite**: `^6.x.x` → `^7.0.0` - Major upgrade with improved build performance and modern features
7
+ - ⬆️ **vite-plugin-dts**: `^3.x.x` → `^4.5.4` - Enhanced TypeScript declaration generation
8
+ - ⬆️ **vitest**: `^1.x.x` → `^1.6.1` - Latest testing improvements and bug fixes
9
+ - ⬆️ **@vitejs/plugin-react**: `^4.x.x` → `^4.6.0` - Updated React plugin for better compatibility
10
+ - ⬆️ **axios**: `^1.x.x` → `^1.9.0` - Security updates and performance improvements
11
+
12
+ ### 🛠️ Build System
13
+ - Updated to Vite 7 for faster builds and better developer experience
14
+ - Improved TypeScript compilation pipeline
15
+ - Enhanced development tooling
16
+
17
+ ### 🔧 Technical Improvements
18
+ - Better build performance and bundling optimization
19
+ - Improved development server and hot module replacement
20
+ - Enhanced type checking and declaration file generation
@@ -1,4 +1,4 @@
1
- import { AxiosError, AxiosRequestConfig } from "axios";
1
+ import { AxiosError, AxiosRequestConfig } from 'axios';
2
2
  export declare const axiosCustomInstance: <T>(config: AxiosRequestConfig, options?: AxiosRequestConfig) => Promise<T>;
3
3
  export default axiosCustomInstance;
4
4
  export type ErrorType<Error> = AxiosError<Error>;
@@ -1,4 +1,4 @@
1
- import { ComponentProps, ComponentType } from "react";
1
+ import { ComponentProps, ComponentType } from 'react';
2
2
  interface MaskTextFieldProps<T> {
3
3
  /**
4
4
  * Mask pattern.
@@ -14,7 +14,7 @@ interface InitializeAxiosConfigProps {
14
14
  */
15
15
  apiURL?: string;
16
16
  /**
17
- * Post content type for Axios instance
17
+ * Post-content type for Axios instance
18
18
  * @default application/json
19
19
  */
20
20
  postContentType?: string;
@@ -30,7 +30,7 @@ interface InitializeAxiosConfigProps {
30
30
  tokenKey?: string;
31
31
  }
32
32
  /**
33
- * This component initialize Axios instance with custom default config options
33
+ * This component initializes Axios instance with custom default config options
34
34
  * @param axios
35
35
  * @param tokenTypeKey
36
36
  * @param tokenKey
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
2
  import { InjectDependenciesContextProps } from '../../context/InjectDependenciesProvider';
3
3
  export interface RequireAuthProps {
4
4
  /**
@@ -1,2 +1,2 @@
1
- import Orval from "./orval";
1
+ import { default as Orval } from './orval';
2
2
  export default Orval;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
2
  export interface InjectDependenciesContextProps {
3
3
  /**
4
4
  * Children
@@ -43,7 +43,7 @@ export interface InjectDependenciesContextProps {
43
43
  };
44
44
  };
45
45
  }
46
- export declare const InjectDependenciesContext: import("react").Context<InjectDependenciesContextProps>;
46
+ export declare const InjectDependenciesContext: import('react').Context<InjectDependenciesContextProps>;
47
47
  /**
48
48
  * This provider is used to inject major dependencies
49
49
  * @param children
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from "react";
1
+ import { PropsWithChildren } from 'react';
2
2
  import { InjectDependenciesContextProps } from './InjectDependenciesProvider';
3
3
  interface QueryClientProviderWithConfigProps extends PropsWithChildren {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { SyntheticEvent } from "react";
1
+ import { SyntheticEvent } from 'react';
2
2
  import { InjectDependenciesContextProps } from '../context/InjectDependenciesProvider';
3
3
  interface useFiltersOptions {
4
4
  /**
@@ -19,6 +19,11 @@ interface useFiltersOptions {
19
19
  * @param options
20
20
  */
21
21
  declare const useFilters: (options?: useFiltersOptions) => {
22
+ readonly getFilter: () => undefined;
23
+ readonly getFilters: () => {};
24
+ readonly handleFilter: () => () => void;
25
+ readonly setFilter: () => void;
26
+ } | {
22
27
  getFilter: <T = string, DefaultValue = undefined>(name: string, defaultValue?: T | undefined) => DefaultValue extends undefined ? T | undefined : T;
23
28
  getFilters: () => {
24
29
  [x: string]: any;
package/dist/main.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var gt=Object.create;var Ie=Object.defineProperty;var yt=Object.getOwnPropertyDescriptor;var ht=Object.getOwnPropertyNames;var mt=Object.getPrototypeOf,Et=Object.prototype.hasOwnProperty;var pt=(t,r,o,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of ht(r))!Et.call(t,a)&&a!==o&&Ie(t,a,{get:()=>r[a],enumerable:!(i=yt(r,a))||i.enumerable});return t};var Fe=(t,r,o)=>(o=t!=null?gt(mt(t)):{},pt(r||!t||!t.__esModule?Ie(o,"default",{value:t,enumerable:!0}):o,t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react");var se={exports:{}},G={};/**
1
+ "use strict";var yr=Object.create;var Oe=Object.defineProperty;var hr=Object.getOwnPropertyDescriptor;var mr=Object.getOwnPropertyNames;var Er=Object.getPrototypeOf,br=Object.prototype.hasOwnProperty;var Rr=(r,n,o,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let a of mr(n))!br.call(r,a)&&a!==o&&Oe(r,a,{get:()=>n[a],enumerable:!(i=hr(n,a))||i.enumerable});return r};var Ie=(r,n,o)=>(o=r!=null?yr(Er(r)):{},Rr(n||!r||!r.__esModule?Oe(o,"default",{value:r,enumerable:!0}):o,r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react");var q={exports:{}},z={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Le;function wt(){if(Le)return G;Le=1;var t=p,r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function l(d,u,y){var g,S={},w=null,s=null;y!==void 0&&(w=""+y),u.key!==void 0&&(w=""+u.key),u.ref!==void 0&&(s=u.ref);for(g in u)i.call(u,g)&&!f.hasOwnProperty(g)&&(S[g]=u[g]);if(d&&d.defaultProps)for(g in u=d.defaultProps,u)S[g]===void 0&&(S[g]=u[g]);return{$$typeof:r,type:d,key:w,ref:s,props:S,_owner:a.current}}return G.Fragment=o,G.jsx=l,G.jsxs=l,G}var J={};/**
9
+ */var ke;function wr(){if(ke)return z;ke=1;var r=m,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function f(p,c,g){var u,w={},h=null,_=null;g!==void 0&&(h=""+g),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(_=c.ref);for(u in c)i.call(c,u)&&!l.hasOwnProperty(u)&&(w[u]=c[u]);if(p&&p.defaultProps)for(u in c=p.defaultProps,c)w[u]===void 0&&(w[u]=c[u]);return{$$typeof:n,type:p,key:h,ref:_,props:w,_owner:a.current}}return z.Fragment=o,z.jsx=f,z.jsxs=f,z}var U={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,12 +14,12 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var $e;function Rt(){return $e||($e=1,process.env.NODE_ENV!=="production"&&function(){var t=p,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),d=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),s=Symbol.for("react.offscreen"),R=Symbol.iterator,_="@@iterator";function x(e){if(e===null||typeof e!="object")return null;var n=R&&e[R]||e[_];return typeof n=="function"?n:null}var E=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(e){{for(var n=arguments.length,c=new Array(n>1?n-1:0),v=1;v<n;v++)c[v-1]=arguments[v];I("error",e,c)}}function I(e,n,c){{var v=E.ReactDebugCurrentFrame,C=v.getStackAddendum();C!==""&&(n+="%s",c=c.concat([C]));var b=c.map(function(m){return String(m)});b.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,b)}}var $=!1,N=!1,Y=!1,O=!1,ue=!1,ee;ee=Symbol.for("react.module.reference");function q(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===f||ue||e===a||e===y||e===g||O||e===s||$||N||Y||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===S||e.$$typeof===l||e.$$typeof===d||e.$$typeof===u||e.$$typeof===ee||e.getModuleId!==void 0))}function Ue(e,n,c){var v=e.displayName;if(v)return v;var C=n.displayName||n.name||"";return C!==""?c+"("+C+")":c}function le(e){return e.displayName||"Context"}function W(e){if(e==null)return null;if(typeof e.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case i:return"Fragment";case o:return"Portal";case f:return"Profiler";case a:return"StrictMode";case y:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case d:var n=e;return le(n)+".Consumer";case l:var c=e;return le(c._context)+".Provider";case u:return Ue(e,e.render,"ForwardRef");case S:var v=e.displayName||null;return v!==null?v:W(e.type)||"Memo";case w:{var C=e,b=C._payload,m=C._init;try{return W(m(b))}catch{return null}}}return null}var z=Object.assign,M=0,fe,de,ve,ge,ye,he,me;function Ee(){}Ee.__reactDisabledLog=!0;function Ve(){{if(M===0){fe=console.log,de=console.info,ve=console.warn,ge=console.error,ye=console.group,he=console.groupCollapsed,me=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ee,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}M++}}function Me(){{if(M--,M===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:fe}),info:z({},e,{value:de}),warn:z({},e,{value:ve}),error:z({},e,{value:ge}),group:z({},e,{value:ye}),groupCollapsed:z({},e,{value:he}),groupEnd:z({},e,{value:me})})}M<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var te=E.ReactCurrentDispatcher,re;function K(e,n,c){{if(re===void 0)try{throw Error()}catch(C){var v=C.stack.trim().match(/\n( *(at )?)/);re=v&&v[1]||""}return`
18
- `+re+e}}var ne=!1,B;{var Ge=typeof WeakMap=="function"?WeakMap:Map;B=new Ge}function pe(e,n){if(!e||ne)return"";{var c=B.get(e);if(c!==void 0)return c}var v;ne=!0;var C=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var b;b=te.current,te.current=null,Ve();try{if(n){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(F){v=F}Reflect.construct(e,[],m)}else{try{m.call()}catch(F){v=F}e.call(m.prototype)}}else{try{throw Error()}catch(F){v=F}e()}}catch(F){if(F&&v&&typeof F.stack=="string"){for(var h=F.stack.split(`
19
- `),A=v.stack.split(`
20
- `),P=h.length-1,T=A.length-1;P>=1&&T>=0&&h[P]!==A[T];)T--;for(;P>=1&&T>=0;P--,T--)if(h[P]!==A[T]){if(P!==1||T!==1)do if(P--,T--,T<0||h[P]!==A[T]){var D=`
21
- `+h[P].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),typeof e=="function"&&B.set(e,D),D}while(P>=1&&T>=0);break}}}finally{ne=!1,te.current=b,Me(),Error.prepareStackTrace=C}var V=e?e.displayName||e.name:"",De=V?K(V):"";return typeof e=="function"&&B.set(e,De),De}function Je(e,n,c){return pe(e,!1)}function qe(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function Q(e,n,c){if(e==null)return"";if(typeof e=="function")return pe(e,qe(e));if(typeof e=="string")return K(e);switch(e){case y:return K("Suspense");case g:return K("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return Je(e.render);case S:return Q(e.type,n,c);case w:{var v=e,C=v._payload,b=v._init;try{return Q(b(C),n,c)}catch{}}}return""}var H=Object.prototype.hasOwnProperty,we={},Re=E.ReactDebugCurrentFrame;function X(e){if(e){var n=e._owner,c=Q(e.type,e._source,n?n.type:null);Re.setExtraStackFrame(c)}else Re.setExtraStackFrame(null)}function Ke(e,n,c,v,C){{var b=Function.call.bind(H);for(var m in e)if(b(e,m)){var h=void 0;try{if(typeof e[m]!="function"){var A=Error((v||"React class")+": "+c+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw A.name="Invariant Violation",A}h=e[m](n,m,v,c,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(P){h=P}h&&!(h instanceof Error)&&(X(C),j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",v||"React class",c,m,typeof h),X(null)),h instanceof Error&&!(h.message in we)&&(we[h.message]=!0,X(C),j("Failed %s type: %s",c,h.message),X(null))}}}var Be=Array.isArray;function oe(e){return Be(e)}function Qe(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,c=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return c}}function He(e){try{return Ce(e),!1}catch{return!0}}function Ce(e){return""+e}function _e(e){if(He(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Qe(e)),Ce(e)}var Se=E.ReactCurrentOwner,Xe={key:!0,ref:!0,__self:!0,__source:!0},be,je;function Ze(e){if(H.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return e.ref!==void 0}function et(e){if(H.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function tt(e,n){typeof e.ref=="string"&&Se.current}function rt(e,n){{var c=function(){be||(be=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};c.isReactWarning=!0,Object.defineProperty(e,"key",{get:c,configurable:!0})}}function nt(e,n){{var c=function(){je||(je=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};c.isReactWarning=!0,Object.defineProperty(e,"ref",{get:c,configurable:!0})}}var ot=function(e,n,c,v,C,b,m){var h={$$typeof:r,type:e,key:n,ref:c,props:m,_owner:b};return h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(h,"_self",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.defineProperty(h,"_source",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h};function at(e,n,c,v,C){{var b,m={},h=null,A=null;c!==void 0&&(_e(c),h=""+c),et(n)&&(_e(n.key),h=""+n.key),Ze(n)&&(A=n.ref,tt(n,C));for(b in n)H.call(n,b)&&!Xe.hasOwnProperty(b)&&(m[b]=n[b]);if(e&&e.defaultProps){var P=e.defaultProps;for(b in P)m[b]===void 0&&(m[b]=P[b])}if(h||A){var T=typeof e=="function"?e.displayName||e.name||"Unknown":e;h&&rt(m,T),A&&nt(m,T)}return ot(e,h,A,C,v,Se.current,m)}}var ae=E.ReactCurrentOwner,Pe=E.ReactDebugCurrentFrame;function U(e){if(e){var n=e._owner,c=Q(e.type,e._source,n?n.type:null);Pe.setExtraStackFrame(c)}else Pe.setExtraStackFrame(null)}var ie;ie=!1;function ce(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function Te(){{if(ae.current){var e=W(ae.current.type);if(e)return`
17
+ */var De;function _r(){return De||(De=1,process.env.NODE_ENV!=="production"&&function(){var r=m,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),p=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),x=Symbol.iterator,b="@@iterator";function O(e){if(e===null||typeof e!="object")return null;var t=x&&e[x]||e[b];return typeof t=="function"?t:null}var P=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(e){{for(var t=arguments.length,s=new Array(t>1?t-1:0),d=1;d<t;d++)s[d-1]=arguments[d];T("error",e,s)}}function T(e,t,s){{var d=P.ReactDebugCurrentFrame,E=d.getStackAddendum();E!==""&&(t+="%s",s=s.concat([E]));var R=s.map(function(y){return String(y)});R.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,R)}}var oe=!1,ae=!1,We=!1,ze=!1,Ue=!1,ie;ie=Symbol.for("react.module.reference");function Ve(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===l||Ue||e===a||e===g||e===u||ze||e===_||oe||ae||We||typeof e=="object"&&e!==null&&(e.$$typeof===h||e.$$typeof===w||e.$$typeof===f||e.$$typeof===p||e.$$typeof===c||e.$$typeof===ie||e.getModuleId!==void 0))}function Me(e,t,s){var d=e.displayName;if(d)return d;var E=t.displayName||t.name||"";return E!==""?s+"("+E+")":s}function se(e){return e.displayName||"Context"}function L(e){if(e==null)return null;if(typeof e.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case i:return"Fragment";case o:return"Portal";case l:return"Profiler";case a:return"StrictMode";case g:return"Suspense";case u:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var t=e;return se(t)+".Consumer";case f:var s=e;return se(s._context)+".Provider";case c:return Me(e,e.render,"ForwardRef");case w:var d=e.displayName||null;return d!==null?d:L(e.type)||"Memo";case h:{var E=e,R=E._payload,y=E._init;try{return L(y(R))}catch{return null}}}return null}var $=Object.assign,W=0,ue,ce,le,fe,de,pe,ge;function ve(){}ve.__reactDisabledLog=!0;function Qe(){{if(W===0){ue=console.log,ce=console.info,le=console.warn,fe=console.error,de=console.group,pe=console.groupCollapsed,ge=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ve,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function Ke(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:$({},e,{value:ue}),info:$({},e,{value:ce}),warn:$({},e,{value:le}),error:$({},e,{value:fe}),group:$({},e,{value:de}),groupCollapsed:$({},e,{value:pe}),groupEnd:$({},e,{value:ge})})}W<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var H=P.ReactCurrentDispatcher,X;function M(e,t,s){{if(X===void 0)try{throw Error()}catch(E){var d=E.stack.trim().match(/\n( *(at )?)/);X=d&&d[1]||""}return`
18
+ `+X+e}}var Z=!1,Q;{var Ge=typeof WeakMap=="function"?WeakMap:Map;Q=new Ge}function ye(e,t){if(!e||Z)return"";{var s=Q.get(e);if(s!==void 0)return s}var d;Z=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var R;R=H.current,H.current=null,Qe();try{if(t){var y=function(){throw Error()};if(Object.defineProperty(y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(y,[])}catch(D){d=D}Reflect.construct(e,[],y)}else{try{y.call()}catch(D){d=D}e.call(y.prototype)}}else{try{throw Error()}catch(D){d=D}e()}}catch(D){if(D&&d&&typeof D.stack=="string"){for(var v=D.stack.split(`
19
+ `),A=d.stack.split(`
20
+ `),C=v.length-1,S=A.length-1;C>=1&&S>=0&&v[C]!==A[S];)S--;for(;C>=1&&S>=0;C--,S--)if(v[C]!==A[S]){if(C!==1||S!==1)do if(C--,S--,S<0||v[C]!==A[S]){var k=`
21
+ `+v[C].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),typeof e=="function"&&Q.set(e,k),k}while(C>=1&&S>=0);break}}}finally{Z=!1,H.current=R,Ke(),Error.prepareStackTrace=E}var Y=e?e.displayName||e.name:"",Ae=Y?M(Y):"";return typeof e=="function"&&Q.set(e,Ae),Ae}function Je(e,t,s){return ye(e,!1)}function qe(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function K(e,t,s){if(e==null)return"";if(typeof e=="function")return ye(e,qe(e));if(typeof e=="string")return M(e);switch(e){case g:return M("Suspense");case u:return M("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return Je(e.render);case w:return K(e.type,t,s);case h:{var d=e,E=d._payload,R=d._init;try{return K(R(E),t,s)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,he={},me=P.ReactDebugCurrentFrame;function J(e){if(e){var t=e._owner,s=K(e.type,e._source,t?t.type:null);me.setExtraStackFrame(s)}else me.setExtraStackFrame(null)}function Be(e,t,s,d,E){{var R=Function.call.bind(G);for(var y in e)if(R(e,y)){var v=void 0;try{if(typeof e[y]!="function"){var A=Error((d||"React class")+": "+s+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw A.name="Invariant Violation",A}v=e[y](t,y,d,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(C){v=C}v&&!(v instanceof Error)&&(J(E),j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",d||"React class",s,y,typeof v),J(null)),v instanceof Error&&!(v.message in he)&&(he[v.message]=!0,J(E),j("Failed %s type: %s",s,v.message),J(null))}}}var He=Array.isArray;function ee(e){return He(e)}function Xe(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,s=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function Ze(e){try{return Ee(e),!1}catch{return!0}}function Ee(e){return""+e}function be(e){if(Ze(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xe(e)),Ee(e)}var Re=P.ReactCurrentOwner,er={key:!0,ref:!0,__self:!0,__source:!0},we,_e;function rr(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function tr(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function nr(e,t){typeof e.ref=="string"&&Re.current}function or(e,t){{var s=function(){we||(we=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};s.isReactWarning=!0,Object.defineProperty(e,"key",{get:s,configurable:!0})}}function ar(e,t){{var s=function(){_e||(_e=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};s.isReactWarning=!0,Object.defineProperty(e,"ref",{get:s,configurable:!0})}}var ir=function(e,t,s,d,E,R,y){var v={$$typeof:n,type:e,key:t,ref:s,props:y,_owner:R};return v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(v,"_self",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.defineProperty(v,"_source",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v};function sr(e,t,s,d,E){{var R,y={},v=null,A=null;s!==void 0&&(be(s),v=""+s),tr(t)&&(be(t.key),v=""+t.key),rr(t)&&(A=t.ref,nr(t,E));for(R in t)G.call(t,R)&&!er.hasOwnProperty(R)&&(y[R]=t[R]);if(e&&e.defaultProps){var C=e.defaultProps;for(R in C)y[R]===void 0&&(y[R]=C[R])}if(v||A){var S=typeof e=="function"?e.displayName||e.name||"Unknown":e;v&&or(y,S),A&&ar(y,S)}return ir(e,v,A,E,d,Re.current,y)}}var re=P.ReactCurrentOwner,Ce=P.ReactDebugCurrentFrame;function N(e){if(e){var t=e._owner,s=K(e.type,e._source,t?t.type:null);Ce.setExtraStackFrame(s)}else Ce.setExtraStackFrame(null)}var te;te=!1;function ne(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Se(){{if(re.current){var e=L(re.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function it(e){return""}var Oe={};function ct(e){{var n=Te();if(!n){var c=typeof e=="string"?e:e.displayName||e.name;c&&(n=`
23
+ Check the render method of \``+e+"`."}return""}}function ur(e){return""}var Pe={};function cr(e){{var t=Se();if(!t){var s=typeof e=="string"?e:e.displayName||e.name;s&&(t=`
24
24
 
25
- Check the top-level render call using <`+c+">.")}return n}}function xe(e,n){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var c=ct(n);if(Oe[c])return;Oe[c]=!0;var v="";e&&e._owner&&e._owner!==ae.current&&(v=" It was passed a child from "+W(e._owner.type)+"."),U(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',c,v),U(null)}}function Ae(e,n){{if(typeof e!="object")return;if(oe(e))for(var c=0;c<e.length;c++){var v=e[c];ce(v)&&xe(v,n)}else if(ce(e))e._store&&(e._store.validated=!0);else if(e){var C=x(e);if(typeof C=="function"&&C!==e.entries)for(var b=C.call(e),m;!(m=b.next()).done;)ce(m.value)&&xe(m.value,n)}}}function st(e){{var n=e.type;if(n==null||typeof n=="string")return;var c;if(typeof n=="function")c=n.propTypes;else if(typeof n=="object"&&(n.$$typeof===u||n.$$typeof===S))c=n.propTypes;else return;if(c){var v=W(n);Ke(c,e.props,"prop",v,e)}else if(n.PropTypes!==void 0&&!ie){ie=!0;var C=W(n);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",C||"Unknown")}typeof n.getDefaultProps=="function"&&!n.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ut(e){{for(var n=Object.keys(e.props),c=0;c<n.length;c++){var v=n[c];if(v!=="children"&&v!=="key"){U(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v),U(null);break}}e.ref!==null&&(U(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),U(null))}}function ke(e,n,c,v,C,b){{var m=q(e);if(!m){var h="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(h+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var A=it();A?h+=A:h+=Te();var P;e===null?P="null":oe(e)?P="array":e!==void 0&&e.$$typeof===r?(P="<"+(W(e.type)||"Unknown")+" />",h=" Did you accidentally export a JSX literal instead of a component?"):P=typeof e,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",P,h)}var T=at(e,n,c,C,b);if(T==null)return T;if(m){var D=n.children;if(D!==void 0)if(v)if(oe(D)){for(var V=0;V<D.length;V++)Ae(D[V],e);Object.freeze&&Object.freeze(D)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ae(D,e)}return e===i?ut(T):st(T),T}}function lt(e,n,c){return ke(e,n,c,!0)}function ft(e,n,c){return ke(e,n,c,!1)}var dt=ft,vt=lt;J.Fragment=i,J.jsx=dt,J.jsxs=vt}()),J}process.env.NODE_ENV==="production"?se.exports=wt():se.exports=Rt();var L=se.exports;const k=p.createContext({}),Ct=({children:t,apiURL:r,libraries:o,localStorageKeys:i})=>{const a=p.useMemo(()=>({apiURL:r,libraries:o,localStorageKeys:i}),[r,o,i]);return L.jsx(k.Provider,{value:a,children:t})},_t="user",St=({Fallback:t,isLogged:r,loginPath:o="/login",redirect401Path:i="/login",...a})=>{var I,$,N,Y;const{libraries:f,localStorageKeys:l}=p.useContext(k),d=(a==null?void 0:a.reactRouter)||(f==null?void 0:f.reactRouter),u=(a==null?void 0:a.axios)||(f==null?void 0:f.axios),y=(a==null?void 0:a.localStorageKey)||(l==null?void 0:l.user)||_t;if(!d)throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");const[g,S]=p.useState(null),{useLocation:w,Navigate:s,Outlet:R}=d,_=w(),x=p.useRef(!1),E=typeof r=="function"?r():!!r,j=typeof E=="boolean"?E:E==null?void 0:E.isLogged;return p.useEffect(()=>{x.current||(x.current=!0,u.interceptors.response.use(O=>O,async O=>{var q;return typeof O=="object"&&O&&"response"in O&&O.response&&typeof O.response=="object"&&"status"in O.response&&O.response&&typeof O.response=="object"&&"status"in O.response&&((q=O==null?void 0:O.response)==null?void 0:q.status)===401&&(u.defaults.headers.common.Authorization=null,typeof window<"u"&&window.localStorage&&localStorage.removeItem(y),S(i)),Promise.reject(O)}))},[u.defaults.headers.common,u.interceptors.response,y,i]),j&&!g?L.jsx(p.Suspense,{fallback:t,children:($=(I=_.state)==null?void 0:I.from)!=null&&$.state&&((Y=(N=_.state)==null?void 0:N.from)==null?void 0:Y.pathname)===o?L.jsx(s,{to:_.state.from.state.from.pathname+_.state.from.state.from.search,replace:!0}):L.jsx(R,{})}):L.jsx(s,{to:o+_.search,state:{from:_},replace:!0})},bt=({data:t,...r})=>{const{libraries:o}=p.useContext(k),i=(r==null?void 0:r.reactRouter)||(o==null?void 0:o.reactRouter),a=(r==null?void 0:r.gtm)||(o==null?void 0:o.gtm);if(!i)throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");if(!a)throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");const{useGoogleTagManager:f}=a,{useLocation:l,Outlet:d}=i,{pathname:u}=l(),{sendEvent:y}=f();return p.useEffect(()=>{y({event:"pageView",pathname:u,...t})},[t,u,y]),L.jsx(d,{})},jt="user",Pt=({tokenTypeKey:t="tokenType",tokenKey:r="accessToken",postContentType:o="application/json",...i})=>{const{apiURL:a=i.apiURL,libraries:f,localStorageKeys:l}=p.useContext(k),d=(i==null?void 0:i.userLocalStorageKey)||(l==null?void 0:l.user)||jt,u=(i==null?void 0:i.axios)||(f==null?void 0:f.axios);if(!u)throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!(u!=null&&u.defaults))return null;if(typeof window<"u"&&window.localStorage){const y=localStorage.getItem(d),g=y?JSON.parse(y):null,S=g!=null&&g[t]?g[t]:null,w=g!=null&&g[r]?g[r]:null,s=y?`${S} ${w}`:null;s&&(u.defaults.headers.common.Authorization=s)}return u.defaults.baseURL=a,u.defaults.headers.post["Content-Type"]=o,null},Tt=({debug:t,resources:r,...o})=>{const{libraries:i}=p.useContext(k),a=(o==null?void 0:o.i18)||(i==null?void 0:i.i18),{i18next:f,initReactI18next:l,languageDetector:d}=a||{};if(!a)throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");return f!=null&&f.isInitialized||(f.use(d).use(l).init({debug:t,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{bindI18n:"languageChanged loaded",useSuspense:!0},resources:r,returnNull:!1}).then(()=>{document.documentElement.lang!==f.resolvedLanguage&&f.resolvedLanguage&&document.documentElement.setAttribute("lang",f.resolvedLanguage)}),f.on("languageChanged",u=>{document.documentElement.setAttribute("lang",u)})),null},Ot=({dsn:t,integrations:r,tracesSampleRate:o,replaysSessionSampleRate:i,replaysOnErrorSampleRate:a,tracePropagationTargets:f,ignoreErrors:l,debug:d,environment:u,release:y,...g})=>{const{libraries:S}=p.useContext(k),w=(g==null?void 0:g.sentry)||(S==null?void 0:S.sentry),s=(g==null?void 0:g.reactRouter)||(S==null?void 0:S.reactRouter);if(!w)throw new Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!s)throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(w.isInitialized())return null;const{createRoutesFromChildren:R,matchRoutes:_,useLocation:x,useNavigationType:E}=s;return(d||process.env.NODE_ENV==="prod"||process.env.NODE_ENV==="production")&&w.init({debug:d,dsn:t,environment:u||"production",ignoreErrors:[...l||[],/dynamically imported module/,/Cannot read properties of undefined \(reading 'default'\)/,/Loading chunk \d+ failed/,/ChunkLoadError/,/Failed to fetch dynamically imported module/,/vite:preloadError/],integrations:[w.reactRouterV6BrowserTracingIntegration({createRoutesFromChildren:R,matchRoutes:_,useEffect:p.useEffect,useLocation:x,useNavigationType:E}),...r||[]],release:y,replaysOnErrorSampleRate:a||1,replaysSessionSampleRate:i||.1,tracePropagationTargets:f,tracesSampleRate:o||1}),null},xt=({IMaskMixin:t,...r})=>{const o=p.useMemo(()=>t(({TextField:i,...a})=>L.jsx(i,{...a})),[t]);return L.jsx(o,{...r})},At=({language:t,...r})=>{const{libraries:o}=p.useContext(k),i=(r==null?void 0:r.dayjs)||(o==null?void 0:o.dayjs),a=(r==null?void 0:r.plugin)||(o==null?void 0:o.dayjsPlugin);if(!i)throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props of InitializeDaysJSConfig.");return p.useEffect(()=>{(async()=>{var d;const l=t||((d=navigator.language)==null?void 0:d.slice(0,2))||"en";a&&a.forEach(u=>{u&&i.extend(u)}),await import("dayjs/locale/en"),await import("dayjs/locale/fr"),i.locale(l)})().then()},[i,a,t]),null},kt=()=>(p.useEffect(()=>{const t=r=>{try{r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation(),window.location.reload()}catch{}};return window.addEventListener("vite:preloadError",t),()=>{window.removeEventListener("vite:preloadError",t)}},[]),null),Dt=t=>t&&typeof t=="function",It=t=>t&&typeof t=="function",Ft=({children:t,defaultQueriesOptions:r,defaultMutationsOptions:o,...i})=>{var u,y;const{libraries:a}=p.useContext(k),f=(i==null?void 0:i.QueryClient)||((u=a==null?void 0:a.reactQuery)==null?void 0:u.QueryClient),l=(i==null?void 0:i.QueryClientProvider)||((y=a==null?void 0:a.reactQuery)==null?void 0:y.QueryClientProvider);if(!f)throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!l)throw new Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!Dt(l))throw new Error("Provided QueryClientProvider dependencies are not valid.");if(!It(f))throw new Error("Provided QueryClient dependencies are not valid.");const d=new f({defaultOptions:{mutations:{...o},queries:{getNextPageParam:(g,S,w)=>g.length+(w||0),refetchOnWindowFocus:!1,retry:3,...r}}});return L.jsx(l,{client:d,children:t})},Lt=t=>{var y,g,S;const{libraries:r}=p.useContext(k),o=(t==null?void 0:t.i18)||(r==null?void 0:r.i18),i=((y=t==null?void 0:t.i18)==null?void 0:y.translateFunction)||((g=r==null?void 0:r.i18)==null?void 0:g.translateFunction),a=((S=o==null?void 0:o.i18next)==null?void 0:S.t)||i||(w=>w),{unknownErrorTranslationKey:f="error.unknownError"}=t||{},l=a(f),d=p.useCallback(w=>{if(w&&typeof w=="object"&&"response"in w){const{response:s}=w||{};if(s&&typeof s=="object"&&"reason"in s)return String(s.reason);if(s&&typeof s=="object"&&"data"in s&&s.data&&typeof s.data=="object"&&"reason"in s.data)return String(s.data.reason);if(s&&typeof s=="object"&&"data"in s&&s.data&&typeof s.data=="object"&&"message"in s.data)return String(s.data.message);if(s&&typeof s=="object"&&"data"in s&&s.data&&typeof s.data=="object"&&"detail"in s.data){const{detail:R}=s.data;if(Array.isArray(R)&&R.length>0&&typeof R[0]=="object"&&R[0]!==null&&"msg"in R[0]){const{msg:_}=R[0];if(typeof _=="string")return String(_)}}}return w instanceof Error?w.message:l},[l]);return{getErrorCode:p.useCallback(w=>{var R,_,x;const{response:s}=w||{};return s!=null&&s.error_code?String(s==null?void 0:s.error_code):(R=s==null?void 0:s.data)!=null&&R.error_code?String((_=s==null?void 0:s.data)==null?void 0:_.error_code):s!=null&&s.error_code?String(s==null?void 0:s.error_code):(x=s==null?void 0:s.data)!=null&&x.error_code?String(s.data.error_code):"unknown_error_code"},[]),printError:d}},$t=({data:t,fetchNextPage:r,isFetchingNextPage:o,isInitialLoading:i,isLoading:a,enabled:f=!0})=>{const l=p.useCallback(async u=>{o||!f||await r({pageParam:(u==null?void 0:u.pageParam)||u.visibleRowsCount})},[f,r,o]),d=p.useMemo(()=>{if(t)return t.pages.reduce((u,y)=>[...u,...y],[])},[t]);return{fetchNextPageOnRowsScrollEnd:l,isLoading:o||a,loadingVariant:i?"skeleton":"linear",rows:d}},Nt=t=>{const{libraries:r}=p.useContext(k),o=(t==null?void 0:t.axios)||(r==null?void 0:r.axios),i=(t==null?void 0:t.localStorageKey)||"user";if(!o)throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");const a=p.useCallback(({tokenType:l,accessToken:d})=>{o.defaults.headers.common.Authorization=`${l} ${d}`},[o.defaults.headers.common]),f=()=>{o.defaults.headers.common.Authorization=null};return p.useEffect(()=>{const l=({newValue:d,key:u})=>{if(u===i&&d)try{const{accessToken:y,tokenType:g}=JSON.parse(d);a({accessToken:y,tokenType:g})}catch(y){console.error("Failed to parse newValue from localStorage:",y)}};return window.addEventListener("storage",l),()=>{window.removeEventListener("storage",l)}},[i,a]),{clearAuthenticationToken:f,setAuthenticationToken:a}},Ye=({library:t,date:r,format:o="ll"})=>t(r).format(o),We=(t,r)=>{const{fractionDigits:o=0,metric:i="km"}=r||{},a=Number(t);return Number.isNaN(a)?`0${i}`:`${a.toFixed(o)}${i}`},ze=t=>!t||typeof t!="string"?"":t.replace(/_/g," ").toLowerCase().split(" ").map(o=>o.length>0?o.charAt(0).toUpperCase()+o.slice(1):o).join(" "),Yt=t=>t!=null&&t.startsWith("/")?t!=null&&t.startsWith("/files")?t:`/files${t}`:t!=null&&t.startsWith("files")?`/${t}`:`/files/${t}`,Wt=({path:t,size:r,apiURL:o})=>{if(!t)return"";const i=Yt(t),a=`${o}${i}`,f=a.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/)!==null;return typeof r=="number"&&f?`${a.replace("/files",`/thumbs/${r}`)}`:a},zt=t=>{const{apiURL:r,libraries:o}=p.useContext(k),i=(t==null?void 0:t.dayjs)||(o==null?void 0:o.dayjs);return{dateAdapter:(l,d)=>{if(!i)throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");return Ye({date:l,format:d,library:i})},distanceAdapter:We,filePathAdapter:(l,d)=>{if(!r)throw new Error("API URL is not provided. You can provide it with InjectDependenciesProvider or directly in props to filePathAdapter.");return Wt({apiURL:r,path:l,size:d})},worksiteNameAdapter:ze}},Z=(t,r)=>r==="short"?t.split("-")[0]:t,Ut=(t,r="full")=>{const[o,i]=p.useState(()=>{const a=(t==null?void 0:t.language)||navigator.language;return t&&"isInitialized"in t&&t.isInitialized,Z(a,r)});return p.useEffect(()=>{var f;t&&"isInitialized"in t&&t.isInitialized&&t.language&&i(Z(t.language,r));const a=l=>{i(Z(l,r))};return(f=t==null?void 0:t.on)==null||f.call(t,"languageChanged",a),()=>{var l;(l=t==null?void 0:t.off)==null||l.call(t,"languageChanged",a)}},[t,r]),o},Vt="tracktor.filter",Ne=(t,r,o)=>`${o}_${t}=>${r}`,Mt=t=>{const{libraries:r,localStorageKeys:o}=p.useContext(k),i=(t==null?void 0:t.reactRouter)||(r==null?void 0:r.reactRouter),{useLocation:a,useSearchParams:f}=i,{pathname:l}=a(),[d,u]=f(),y=(o==null?void 0:o.filter)||Vt;if(!i)throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");const g=(R,_,x=!0)=>{const E=Ne(R,(t==null?void 0:t.pathname)||l,y);if(!_||Array.isArray(_)&&!_.length){d.delete(R),u(d),localStorage.removeItem(E);return}x&&_&&localStorage.setItem(E,JSON.stringify({...d,[R]:_})),_&&(d.set(R,JSON.stringify(_)),u(d))};return{getFilter:(R,_)=>{const x=d.get(R);if(x)try{return JSON.parse(x)}catch{return x}const E=Ne(R,(t==null?void 0:t.pathname)||l,y),j=localStorage.getItem(E);if(j)try{return JSON.parse(j)[R]}catch{}return _},getFilters:()=>{const R=Object.fromEntries(d.entries()),x=Object.keys(localStorage).filter(E=>E.startsWith(y)&&E.endsWith((t==null?void 0:t.pathname)||l)).reduce((E,j)=>{var $,N;const I=localStorage.getItem(j);if(I){const Y=JSON.parse(I),O=($=Object.keys(Y))==null?void 0:$[0];E[O]=(N=Object.values(Y))==null?void 0:N[0]}return E},{});return{...R,...x}},handleFilter:(R,_)=>(x,E)=>{if(E||Array.isArray(E)&&E.length===0){const j=_||"value",I=typeof E=="object"&&j in E?E[j]:E;g(R,I);return}g(R,void 0)},setFilter:g}},Gt=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase(),Jt=t=>{const i=t.split("/").filter(a=>a.length>0).map(a=>a.replace(/\${([^}]*)}/g,"$1").split(/[_-]/).map(u=>u.charAt(0).toUpperCase()+u.slice(1)).join("")).join("");return i.charAt(0).toLowerCase()+i.slice(1)},qt=t=>(t.split("/").pop()||t).replace(/\.json$/,"").replace(/^openapi\./,""),Kt=(t,r,o,i)=>{const a=Jt(r),f=Gt(o),l=`${a}${f}`;return t&&typeof t=="object"&&"operationId"in t&&(i!=null&&i.includes(String(t.operationId)))?`${l}AsQuery`:l},Bt=(t,r)=>{const o={};return t==null||t.forEach(i=>{o[i]={query:{useInfinite:!0,useInfiniteQueryParam:"offset",useQuery:!0}}}),r==null||r.filter(i=>!o[i]).forEach(i=>{o[i]={query:{useQuery:!0}}}),Object.keys(o).length?o:void 0},Qt=t=>(Array.isArray(t)?t:[t]).reduce((o,i)=>{const{output:a,useInfiniteIds:f,useQueryIds:l,input:d="./openapi.json"}=i||{},u=qt(d);return{...o,[u]:{hooks:{afterAllFilesWrite:"prettier src/api/ --write"},input:d,output:{baseUrl:a==null?void 0:a.baseUrl,client:"react-query",mode:"tags-split",override:{...((f==null?void 0:f.length)||(l==null?void 0:l.length))&&{operations:Bt(f,l)},header:y=>["Generated by orval 🍺",...y.title?[y.title]:[],...y.description?[y.description]:[]],mutator:{name:"axiosCustomInstance",path:"./node_modules/@tracktor/shared-module/dist/axiosCustomInstance.ts"},operationName:(y,g,S)=>Kt(y,g,S,l),query:{useQuery:!0}},schemas:(a==null?void 0:a.schemas)||`src/api/${u}/model`,target:(a==null?void 0:a.target)||`src/api/${u}/services/api.ts`,...a}}}},{});exports.GTMSendPageView=bt;exports.InitializeAxiosConfig=Pt;exports.InitializeDaysJSConfig=At;exports.InitializeI18nConfig=Tt;exports.InitializeSentryConfig=Ot;exports.InjectDependenciesContext=k;exports.InjectDependenciesProvider=Ct;exports.MaskTextField=xt;exports.PreloadErrorHandler=kt;exports.QueryClientProviderWithConfig=Ft;exports.RequireAuth=St;exports.dateAdapter=Ye;exports.distanceAdapter=We;exports.getOrvalConfig=Qt;exports.useAdapter=zt;exports.useAuth=Nt;exports.useCurrentLanguage=Ut;exports.useFilters=Mt;exports.useInfiniteDataGrid=$t;exports.useResponseError=Lt;exports.worksiteNameAdapter=ze;
25
+ Check the top-level render call using <`+s+">.")}return t}}function je(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var s=cr(t);if(Pe[s])return;Pe[s]=!0;var d="";e&&e._owner&&e._owner!==re.current&&(d=" It was passed a child from "+L(e._owner.type)+"."),N(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',s,d),N(null)}}function Te(e,t){{if(typeof e!="object")return;if(ee(e))for(var s=0;s<e.length;s++){var d=e[s];ne(d)&&je(d,t)}else if(ne(e))e._store&&(e._store.validated=!0);else if(e){var E=O(e);if(typeof E=="function"&&E!==e.entries)for(var R=E.call(e),y;!(y=R.next()).done;)ne(y.value)&&je(y.value,t)}}}function lr(e){{var t=e.type;if(t==null||typeof t=="string")return;var s;if(typeof t=="function")s=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===c||t.$$typeof===w))s=t.propTypes;else return;if(s){var d=L(t);Be(s,e.props,"prop",d,e)}else if(t.PropTypes!==void 0&&!te){te=!0;var E=L(t);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fr(e){{for(var t=Object.keys(e.props),s=0;s<t.length;s++){var d=t[s];if(d!=="children"&&d!=="key"){N(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",d),N(null);break}}e.ref!==null&&(N(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),N(null))}}function xe(e,t,s,d,E,R){{var y=Ve(e);if(!y){var v="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(v+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var A=ur();A?v+=A:v+=Se();var C;e===null?C="null":ee(e)?C="array":e!==void 0&&e.$$typeof===n?(C="<"+(L(e.type)||"Unknown")+" />",v=" Did you accidentally export a JSX literal instead of a component?"):C=typeof e,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",C,v)}var S=sr(e,t,s,E,R);if(S==null)return S;if(y){var k=t.children;if(k!==void 0)if(d)if(ee(k)){for(var Y=0;Y<k.length;Y++)Te(k[Y],e);Object.freeze&&Object.freeze(k)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Te(k,e)}return e===i?fr(S):lr(S),S}}function dr(e,t,s){return xe(e,t,s,!0)}function pr(e,t,s){return xe(e,t,s,!1)}var gr=pr,vr=dr;U.Fragment=i,U.jsx=gr,U.jsxs=vr}()),U}var Fe;function Cr(){return Fe||(Fe=1,process.env.NODE_ENV==="production"?q.exports=wr():q.exports=_r()),q.exports}var F=Cr();const I=m.createContext({}),Sr=({children:r,apiURL:n,libraries:o,localStorageKeys:i})=>{const a=m.useMemo(()=>({apiURL:n,libraries:o,localStorageKeys:i}),[n,o,i]);return F.jsx(I.Provider,{value:a,children:r})},Pr="user",jr=({Fallback:r,isLogged:n,loginPath:o="/login",redirect401Path:i="/login",...a})=>{const{libraries:l,localStorageKeys:f}=m.useContext(I),p=a?.reactRouter||l?.reactRouter,c=a?.axios||l?.axios,g=a?.localStorageKey||f?.user||Pr;if(!p)throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");const[u,w]=m.useState(null),{useLocation:h,Navigate:_,Outlet:x}=p,b=h(),O=m.useRef(!1),P=typeof n=="function"?n():!!n,j=typeof P=="boolean"?P:P?.isLogged;return m.useEffect(()=>{O.current||(O.current=!0,c.interceptors.response.use(T=>T,async T=>(typeof T=="object"&&T&&"response"in T&&T.response&&typeof T.response=="object"&&"status"in T.response&&T.response&&typeof T.response=="object"&&"status"in T.response&&T?.response?.status===401&&(c.defaults.headers.common.Authorization=null,typeof window<"u"&&window.localStorage&&localStorage.removeItem(g),w(i)),Promise.reject(T))))},[c.defaults.headers.common,c.interceptors.response,g,i]),j&&!u?F.jsx(m.Suspense,{fallback:r,children:b.state?.from?.state&&b.state?.from?.pathname===o?F.jsx(_,{to:b.state.from.state.from.pathname+b.state.from.state.from.search,replace:!0}):F.jsx(x,{})}):F.jsx(_,{to:o+b.search,state:{from:b},replace:!0})},Tr=({data:r,...n})=>{const{libraries:o}=m.useContext(I),i=n?.reactRouter||o?.reactRouter,a=n?.gtm||o?.gtm;if(!i)throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");if(!a)throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");const{useGoogleTagManager:l}=a,{useLocation:f,Outlet:p}=i,{pathname:c}=f(),{sendEvent:g}=l();return m.useEffect(()=>{g({event:"pageView",pathname:c,...r})},[r,c,g]),F.jsx(p,{})},V=(()=>{try{return typeof global=="object"&&global!==null&&("HermesInternal"in global||"__fbBatchedBridge"in global||"__metro"in global)||typeof window>"u"&&typeof global<"u"?!0:typeof navigator<"u"&&navigator.userAgent?/react.native|ReactNative/i.test(navigator.userAgent):!1}catch{return!1}})(),xr="user",Ar=({tokenTypeKey:r="tokenType",tokenKey:n="accessToken",postContentType:o="application/json",...i})=>{const{apiURL:a=i.apiURL,libraries:l,localStorageKeys:f}=m.useContext(I),p=i?.userLocalStorageKey||f?.user||xr,c=i?.axios||l?.axios;if(!c)throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!c?.defaults||V)return null;if(typeof window<"u"&&window.localStorage){const g=localStorage.getItem(p),u=g?JSON.parse(g):null,w=u?.[r]?u[r]:null,h=u?.[n]?u[n]:null,_=g?`${w} ${h}`:null;_&&(c.defaults.headers.common.Authorization=_)}return c.defaults.baseURL=a,c.defaults.headers.post["Content-Type"]=o,null},Or=({debug:r,resources:n,...o})=>{const{libraries:i}=m.useContext(I),a=o?.i18||i?.i18,{i18next:l,initReactI18next:f,languageDetector:p}=a||{};if(V)return null;if(!a)throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");return l?.isInitialized||(l.use(p).use(f).init({debug:r,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{bindI18n:"languageChanged loaded",useSuspense:!0},resources:n,returnNull:!1}).then(()=>{document.documentElement.lang!==l.resolvedLanguage&&l.resolvedLanguage&&document.documentElement.setAttribute("lang",l.resolvedLanguage)}),l.on("languageChanged",c=>{document.documentElement.setAttribute("lang",c)})),null},Ir=({dsn:r,integrations:n,tracesSampleRate:o,replaysSessionSampleRate:i,replaysOnErrorSampleRate:a,tracePropagationTargets:l,ignoreErrors:f,debug:p,environment:c,release:g,...u})=>{const{libraries:w}=m.useContext(I),h=u?.sentry||w?.sentry,_=u?.reactRouter||w?.reactRouter;if(!h)throw new Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!_)throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(h.isInitialized())return null;const{createRoutesFromChildren:x,matchRoutes:b,useLocation:O,useNavigationType:P}=_;return(p||process.env.NODE_ENV==="prod"||process.env.NODE_ENV==="production")&&h.init({debug:p,dsn:r,environment:c||"production",ignoreErrors:[...f||[],/dynamically imported module/,/Cannot read properties of undefined \(reading 'default'\)/,/Loading chunk \d+ failed/,/ChunkLoadError/,/Failed to fetch dynamically imported module/,/vite:preloadError/],integrations:[h.reactRouterV6BrowserTracingIntegration({createRoutesFromChildren:x,matchRoutes:b,useEffect:m.useEffect,useLocation:O,useNavigationType:P}),...n||[]],release:g,replaysOnErrorSampleRate:a||1,replaysSessionSampleRate:i||.1,tracePropagationTargets:l,tracesSampleRate:o||1}),null},kr=({IMaskMixin:r,...n})=>{const o=m.useMemo(()=>r(({TextField:i,...a})=>F.jsx(i,{...a})),[r]);return F.jsx(o,{...n})},Dr=({language:r,...n})=>{const{libraries:o}=m.useContext(I),i=n?.dayjs||o?.dayjs,a=n?.plugin||o?.dayjsPlugin;if(!i)throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props of InitializeDaysJSConfig.");return m.useEffect(()=>{(async()=>{const f=r||navigator.language?.slice(0,2)||"en";a&&a.forEach(p=>{p&&i.extend(p)}),await import("dayjs/locale/en"),await import("dayjs/locale/fr"),i.locale(f)})().then()},[i,a,r]),null},Fr=()=>(m.useEffect(()=>{if(V)return;const r=n=>{try{n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation(),window.location.reload()}catch{}};return window.addEventListener("vite:preloadError",r),()=>{window.removeEventListener("vite:preloadError",r)}},[]),null),Lr=r=>r&&typeof r=="function",$r=r=>r&&typeof r=="function",Nr=({children:r,defaultQueriesOptions:n,defaultMutationsOptions:o,...i})=>{const{libraries:a}=m.useContext(I),l=i?.QueryClient||a?.reactQuery?.QueryClient,f=i?.QueryClientProvider||a?.reactQuery?.QueryClientProvider;if(!l)throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!f)throw new Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");if(!Lr(f))throw new Error("Provided QueryClientProvider dependencies are not valid.");if(!$r(l))throw new Error("Provided QueryClient dependencies are not valid.");const p=new l({defaultOptions:{mutations:{...o},queries:{getNextPageParam:(c,g,u)=>c.length+(u||0),refetchOnWindowFocus:!1,retry:3,...n}}});return F.jsx(f,{client:p,children:r})},Yr=r=>{const{libraries:n}=m.useContext(I),o=r?.i18||n?.i18,i=r?.i18?.translateFunction||n?.i18?.translateFunction,a=o?.i18next?.t||i||(g=>g),{unknownErrorTranslationKey:l="error.unknownError"}=r||{},f=a(l),p=m.useCallback(g=>{if(g&&typeof g=="object"&&"response"in g){const{response:u}=g||{};if(u&&typeof u=="object"&&"reason"in u)return String(u.reason);if(u&&typeof u=="object"&&"data"in u&&u.data&&typeof u.data=="object"&&"reason"in u.data)return String(u.data.reason);if(u&&typeof u=="object"&&"data"in u&&u.data&&typeof u.data=="object"&&"message"in u.data)return String(u.data.message);if(u&&typeof u=="object"&&"data"in u&&u.data&&typeof u.data=="object"&&"detail"in u.data){const{detail:w}=u.data;if(Array.isArray(w)&&w.length>0&&typeof w[0]=="object"&&w[0]!==null&&"msg"in w[0]){const{msg:h}=w[0];if(typeof h=="string")return String(h)}}}return g instanceof Error?g.message:f},[f]);return{getErrorCode:m.useCallback(g=>{const{response:u}=g||{};return u?.error_code?String(u?.error_code):u?.data?.error_code?String(u?.data?.error_code):u?.error_code?String(u?.error_code):u?.data?.error_code?String(u.data.error_code):"unknown_error_code"},[]),printError:p}},Wr=({data:r,fetchNextPage:n,isFetchingNextPage:o,isInitialLoading:i,isLoading:a,enabled:l=!0})=>{const f=m.useCallback(async c=>{o||!l||await n({pageParam:c?.pageParam||c.visibleRowsCount})},[l,n,o]),p=m.useMemo(()=>{if(r)return r.pages.reduce((c,g)=>[...c,...g],[])},[r]);return{fetchNextPageOnRowsScrollEnd:f,isLoading:o||a,loadingVariant:i?"skeleton":"linear",rows:p}},zr=r=>{const{libraries:n}=m.useContext(I),o=r?.axios||n?.axios,i=r?.localStorageKey||"user";if(!o)throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");const a=m.useCallback(({tokenType:f,accessToken:p})=>{o.defaults.headers.common.Authorization=`${f} ${p}`},[o.defaults.headers.common]),l=()=>{o.defaults.headers.common.Authorization=null};return m.useEffect(()=>{if(V)return;const f=({newValue:p,key:c})=>{if(c===i&&p)try{const{accessToken:g,tokenType:u}=JSON.parse(p);a({accessToken:g,tokenType:u})}catch(g){console.error("Failed to parse newValue from localStorage:",g)}};return window.addEventListener("storage",f),()=>{window.removeEventListener("storage",f)}},[i,a]),{clearAuthenticationToken:l,setAuthenticationToken:a}},$e=({library:r,date:n,format:o="ll"})=>r(n).format(o),Ne=(r,n)=>{const{fractionDigits:o=0,metric:i="km"}=n||{},a=Number(r);return Number.isNaN(a)?`0${i}`:`${a.toFixed(o)}${i}`},Ye=r=>!r||typeof r!="string"?"":r.replace(/_/g," ").toLowerCase().split(" ").map(o=>o.length>0?o.charAt(0).toUpperCase()+o.slice(1):o).join(" "),Ur=r=>r?.startsWith("/")?r?.startsWith("/files")?r:`/files${r}`:r?.startsWith("files")?`/${r}`:`/files/${r}`,Vr=({path:r,size:n,apiURL:o})=>{if(!r)return"";const i=Ur(r),a=`${o}${i}`,l=a.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/)!==null;return typeof n=="number"&&l?`${a.replace("/files",`/thumbs/${n}`)}`:a},Mr=r=>{const{apiURL:n,libraries:o}=m.useContext(I),i=r?.dayjs||o?.dayjs;return{dateAdapter:(f,p)=>{if(!i)throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");return $e({date:f,format:p,library:i})},distanceAdapter:Ne,filePathAdapter:(f,p)=>{if(!n)throw new Error("API URL is not provided. You can provide it with InjectDependenciesProvider or directly in props to filePathAdapter.");return Vr({apiURL:n,path:f,size:p})},worksiteNameAdapter:Ye}},B=(r,n)=>n==="short"?r.split("-")[0]:r,Qr=(r,n="full")=>{const[o,i]=m.useState(()=>{const a=r?.language||navigator.language;return r&&"isInitialized"in r&&r.isInitialized,B(a,n)});return m.useEffect(()=>{r&&"isInitialized"in r&&r.isInitialized&&r.language&&i(B(r.language,n));const a=l=>{i(B(l,n))};return r?.on?.("languageChanged",a),()=>{r?.off?.("languageChanged",a)}},[r,n]),o},Kr="tracktor.filter",Gr={getFilter:()=>{},getFilters:()=>({}),handleFilter:()=>()=>{},setFilter:()=>{}},Le=(r,n,o)=>`${o}_${r}=>${n}`,Jr=r=>{const{libraries:n,localStorageKeys:o}=m.useContext(I),i=r?.reactRouter||n?.reactRouter,{pathname:a}=i?.useLocation?.()??{pathname:"/"},[l,f]=i?.useSearchParams?.()??[new URLSearchParams,()=>{}],p=o?.filter||Kr;if(V)return Gr;if(!i)throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");const c=(h,_,x=!0)=>{const b=Le(h,r?.pathname||a,p);if(!_||Array.isArray(_)&&!_.length){l.delete(h),f(l),localStorage.removeItem(b);return}x&&_&&localStorage.setItem(b,JSON.stringify({...l,[h]:_})),_&&(l.set(h,JSON.stringify(_)),f(l))};return{getFilter:(h,_)=>{const x=l.get(h);if(x)try{return JSON.parse(x)}catch{return x}const b=Le(h,r?.pathname||a,p),O=localStorage.getItem(b);if(O)try{return JSON.parse(O)[h]}catch{}return _},getFilters:()=>{const h=Object.fromEntries(l.entries()),x=Object.keys(localStorage).filter(b=>b.startsWith(p)&&b.endsWith(r?.pathname||a)).reduce((b,O)=>{const P=localStorage.getItem(O);if(P){const j=JSON.parse(P),T=Object.keys(j)?.[0];b[T]=Object.values(j)?.[0]}return b},{});return{...h,...x}},handleFilter:(h,_)=>(x,b)=>{if(b||Array.isArray(b)&&b.length===0){const O=_||"value",P=typeof b=="object"&&O in b?b[O]:b;c(h,P);return}c(h,void 0)},setFilter:c}},qr=r=>r.charAt(0).toUpperCase()+r.slice(1).toLowerCase(),Br=r=>{const i=r.split("/").filter(a=>a.length>0).map(a=>a.replace(/\${([^}]*)}/g,"$1").split(/[_-]/).map(c=>c.charAt(0).toUpperCase()+c.slice(1)).join("")).join("");return i.charAt(0).toLowerCase()+i.slice(1)},Hr=r=>(r.split("/").pop()||r).replace(/\.json$/,"").replace(/^openapi\./,""),Xr=(r,n,o,i)=>{const a=Br(n),l=qr(o),f=`${a}${l}`;return r&&typeof r=="object"&&"operationId"in r&&i?.includes(String(r.operationId))?`${f}AsQuery`:f},Zr=(r,n)=>{const o={};return r?.forEach(i=>{o[i]={query:{useInfinite:!0,useInfiniteQueryParam:"offset",useQuery:!0}}}),n?.filter(i=>!o[i]).forEach(i=>{o[i]={query:{useQuery:!0}}}),Object.keys(o).length?o:void 0},et=r=>(Array.isArray(r)?r:[r]).reduce((o,i)=>{const{output:a,useInfiniteIds:l,useQueryIds:f,input:p="./openapi.json"}=i||{},c=Hr(p);return{...o,[c]:{hooks:{afterAllFilesWrite:"prettier src/api/ --write"},input:p,output:{baseUrl:a?.baseUrl,client:"react-query",mode:"tags-split",override:{...(l?.length||f?.length)&&{operations:Zr(l,f)},header:g=>["Generated by orval 🍺",...g.title?[g.title]:[],...g.description?[g.description]:[]],mutator:{name:"axiosCustomInstance",path:"./node_modules/@tracktor/shared-module/dist/axiosCustomInstance.ts"},operationName:(g,u,w)=>Xr(g,u,w,f),query:{useQuery:!0}},schemas:a?.schemas||`src/api/${c}/model`,target:a?.target||`src/api/${c}/services/api.ts`,...a}}}},{});exports.GTMSendPageView=Tr;exports.InitializeAxiosConfig=Ar;exports.InitializeDaysJSConfig=Dr;exports.InitializeI18nConfig=Or;exports.InitializeSentryConfig=Ir;exports.InjectDependenciesContext=I;exports.InjectDependenciesProvider=Sr;exports.MaskTextField=kr;exports.PreloadErrorHandler=Fr;exports.QueryClientProviderWithConfig=Nr;exports.RequireAuth=jr;exports.dateAdapter=$e;exports.distanceAdapter=Ne;exports.getOrvalConfig=et;exports.useAdapter=Mr;exports.useAuth=zr;exports.useCurrentLanguage=Qr;exports.useFilters=Jr;exports.useInfiniteDataGrid=Wr;exports.useResponseError=Yr;exports.worksiteNameAdapter=Ye;