@timum/timum_pdk 2.2.0 → 3.0.0

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/.eslintignore CHANGED
@@ -1,5 +1,5 @@
1
- build
2
- public
3
- node_modules
4
- .vscode
1
+ build
2
+ public
3
+ node_modules
4
+ .vscode
5
5
  .git
package/.eslintrc CHANGED
@@ -1,30 +1,30 @@
1
- {
2
- "settings": {
3
- "react": {"version":"detect"}
4
- },
5
- "extends": [
6
- "eslint:recommended",
7
- "plugin:prettier/recommended",
8
- "plugin:react/recommended",
9
- "plugin:storybook/recommended"
10
- ],
11
- "env": {
12
- "browser": true,
13
- "es2022": true,
14
- "node": true
15
- },
16
- "parserOptions": {
17
- "sourceType": "module"
18
- },
19
- "rules": {
20
- "prettier/prettier": [
21
- "error",
22
- {
23
- "singleQuote": true,
24
- "endOfLine": "auto"
25
- }
26
- ],
27
- "no-console": "off",
28
- "react/prop-types": 0
29
- }
1
+ {
2
+ "settings": {
3
+ "react": {"version":"detect"}
4
+ },
5
+ "extends": [
6
+ "eslint:recommended",
7
+ "plugin:prettier/recommended",
8
+ "plugin:react/recommended",
9
+ "plugin:storybook/recommended"
10
+ ],
11
+ "env": {
12
+ "browser": true,
13
+ "es2022": true,
14
+ "node": true
15
+ },
16
+ "parserOptions": {
17
+ "sourceType": "module"
18
+ },
19
+ "rules": {
20
+ "prettier/prettier": [
21
+ "error",
22
+ {
23
+ "singleQuote": true,
24
+ "endOfLine": "auto"
25
+ }
26
+ ],
27
+ "no-console": "off",
28
+ "react/prop-types": 0
29
+ }
30
30
  }
Binary file
package/README.md CHANGED
@@ -1,21 +1,21 @@
1
- # README #
2
-
3
- This repo contains publicly available timum endpoints.
4
-
5
- It uses Redux, Redux Toolkit and RTKQ.
6
- Here is how to add it to your store:
7
-
8
- ````
9
- import { timumApiSlice } from '@timum/timum_pdk';
10
-
11
- export default configureStore({
12
- reducer: {
13
- [timumApiSlice.reducerPath]: timumApiSlice.reducer,
14
- },
15
- middleware: (getDefaultMiddleware) =>
16
- getDefaultMiddleware().concat(timumApiSlice.middleware)
17
- });
18
- ````
19
-
20
-
21
-
1
+ # README #
2
+
3
+ This repo contains publicly available timum endpoints.
4
+
5
+ It uses Redux, Redux Toolkit and RTKQ.
6
+ Here is how to add it to your store:
7
+
8
+ ````
9
+ import { timumApiSlice } from '@timum/timum_pdk';
10
+
11
+ export default configureStore({
12
+ reducer: {
13
+ [timumApiSlice.reducerPath]: timumApiSlice.reducer,
14
+ },
15
+ middleware: (getDefaultMiddleware) =>
16
+ getDefaultMiddleware().concat(timumApiSlice.middleware)
17
+ });
18
+ ````
19
+
20
+
21
+
package/dist/main.js CHANGED
@@ -82,5 +82,5 @@ import e from"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helper
82
82
  *
83
83
  * This source code is licensed under the MIT license found in the
84
84
  * LICENSE file in the root directory of this source tree.
85
- */function Tr(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Rr(e,t){if(Tr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Tr(e[n[r]],t[n[r]]))return!1;return!0}function Pr(e=or){const t=e===or?ur:ir(e);return function(){const{store:e}=t();return e}}Cr||(Cr=1,"production"===process.env.NODE_ENV?kr.exports=function(){if(Sr)return Er;Sr=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case o:case a:case c:case f:return e;default:switch(e=e&&e.$$typeof){case l:case u:case s:case p:case d:case i:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),Er.ContextConsumer=u,Er.ContextProvider=i,Er.Element=t,Er.ForwardRef=s,Er.Fragment=r,Er.Lazy=p,Er.Memo=d,Er.Portal=n,Er.Profiler=o,Er.StrictMode=a,Er.Suspense=c,Er.SuspenseList=f,Er.isAsyncMode=function(){return!1},Er.isConcurrentMode=function(){return!1},Er.isContextConsumer=function(e){return m(e)===u},Er.isContextProvider=function(e){return m(e)===i},Er.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Er.isForwardRef=function(e){return m(e)===s},Er.isFragment=function(e){return m(e)===r},Er.isLazy=function(e){return m(e)===p},Er.isMemo=function(e){return m(e)===d},Er.isPortal=function(e){return m(e)===n},Er.isProfiler=function(e){return m(e)===o},Er.isStrictMode=function(e){return m(e)===a},Er.isSuspense=function(e){return m(e)===c},Er.isSuspenseList=function(e){return m(e)===f},Er.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===o||t===a||t===c||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===i||t.$$typeof===u||t.$$typeof===s||t.$$typeof===e||void 0!==t.getModuleId)},Er.typeOf=m,Er}():kr.exports=(xr||(xr=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var m=e.type;switch(m){case r:case o:case a:case c:case f:return m;default:var v=m&&m.$$typeof;switch(v){case l:case u:case s:case p:case d:case i:return v;default:return h}}case n:return h}}}e=Symbol.for("react.module.reference");var v=u,y=i,g=t,b=s,w=r,S=p,k=d,E=n,x=o,C=a,_=c,T=f,R=!1,P=!1;_r.ContextConsumer=v,_r.ContextProvider=y,_r.Element=g,_r.ForwardRef=b,_r.Fragment=w,_r.Lazy=S,_r.Memo=k,_r.Portal=E,_r.Profiler=x,_r.StrictMode=C,_r.Suspense=_,_r.SuspenseList=T,_r.isAsyncMode=function(e){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},_r.isConcurrentMode=function(e){return P||(P=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},_r.isContextConsumer=function(e){return m(e)===u},_r.isContextProvider=function(e){return m(e)===i},_r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},_r.isForwardRef=function(e){return m(e)===s},_r.isFragment=function(e){return m(e)===r},_r.isLazy=function(e){return m(e)===p},_r.isMemo=function(e){return m(e)===d},_r.isPortal=function(e){return m(e)===n},_r.isProfiler=function(e){return m(e)===o},_r.isStrictMode=function(e){return m(e)===a},_r.isSuspense=function(e){return m(e)===c},_r.isSuspenseList=function(e){return m(e)===f},_r.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===o||t===a||t===c||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===i||t.$$typeof===u||t.$$typeof===s||t.$$typeof===e||void 0!==t.getModuleId)},_r.typeOf=m}()),_r)),kr.exports;const Or=Pr();function Nr(e=or){const t=e===or?Or:Pr(e);return function(){return t().dispatch}}const Dr=Nr();(e=>{lr=e})(Fn.useSyncExternalStoreWithSelector);var Ir=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e},Lr=Object.defineProperty,zr=Object.defineProperties,Mr=Object.getOwnPropertyDescriptors,Ar=Object.getOwnPropertySymbols,jr=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable,Ur=function(e,t,n){return t in e?Lr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Vr=function(e,t){for(var n in t||(t={}))jr.call(t,n)&&Ur(e,n,t[n]);if(Ar)for(var r=0,a=Ar(t);r<a.length;r++){n=a[r];Fr.call(t,n)&&Ur(e,n,t[n])}return e},qr=function(e,t){return zr(e,Mr(t))};function Wr(e,t,n,r){var a=xn.useMemo((function(){return{queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e}}),[e,t,n,r]),o=xn.useRef(a);return xn.useEffect((function(){o.current.serialized!==a.serialized&&(o.current=a)}),[a]),o.current.serialized===a.serialized?o.current.queryArgs:e}var Br=Symbol();function $r(e){var t=xn.useRef(e);return xn.useEffect((function(){Rr(t.current,e)||(t.current=e)}),[e]),Rr(t.current,e)?t.current:e}var Hr,Qr=WeakMap?new WeakMap:void 0,Kr=function(e){var t=e.endpointName,n=e.queryArgs,r="",a=null==Qr?void 0:Qr.get(n);if("string"==typeof a)r=a;else{var o=JSON.stringify(n,(function(e,t){return Re(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}));Re(n)&&(null==Qr||Qr.set(n,o)),r=o}return t+"("+r+")"},Yr="undefined"!=typeof window&&window.document&&window.document.createElement?xn.useLayoutEffect:xn.useEffect,Gr=function(e){return e},Xr=function(e){return e.isUninitialized?qr(Vr({},e),{isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:tt.pending}):e};function Jr(e){return e.replace(e[0],e[0].toUpperCase())}function Zr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Object.assign.apply(Object,Ir([e],t))}!function(e){e.query="query",e.mutation="mutation"}(Hr||(Hr={}));var ea,ta,na,ra,aa,oa,ia,ua,la,sa,ca,fa,da,pa=Symbol(),ha=Zt({name:hn,init:function(e,l,s){var d=l.baseQuery,p=l.tagTypes,h=l.reducerPath,m=l.serializeQueryArgs,v=l.keepUnusedDataFor,y=l.refetchOnMountOrArgChange,b=l.refetchOnFocus,w=l.refetchOnReconnect;!function(){function e(t){if(!r(t))return t;if(Array.isArray(t))return t.map(e);if(c(t))return new Map(Array.from(t.entries()).map((function(t){return[t[0],e(t[1])]})));if(f(t))return new Set(Array.from(t).map(e));var n=Object.create(Object.getPrototypeOf(t));for(var a in t)n[a]=e(t[a]);return i(t,W)&&(n[W]=t[W]),n}function l(t){return n(t)?e(t):t}var s="add";g("Patches",{$:function(n,r){return r.forEach((function(r){for(var a=r.path,i=r.op,l=n,c=0;c<a.length-1;c++){var f=o(l),d=a[c];"string"!=typeof d&&"number"!=typeof d&&(d=""+d),0!==f&&1!==f||"__proto__"!==d&&"constructor"!==d||t(24),"function"==typeof l&&"prototype"===d&&t(24),"object"!=typeof(l=u(l,d))&&t(15,a.join("/"))}var p=o(l),h=e(r.value),m=a[a.length-1];switch(i){case"replace":switch(p){case 2:return l.set(m,h);case 3:t(16);default:return l[m]=h}case s:switch(p){case 1:return"-"===m?l.push(h):l.splice(m,0,h);case 2:return l.set(m,h);case 3:return l.add(h);default:return l[m]=h}case"remove":switch(p){case 1:return l.splice(m,1);case 2:return l.delete(m);case 3:return l.delete(r.value);default:return delete l[m]}default:t(17,i)}})),n},N:function(e,t,n,r){switch(e.i){case 0:case 4:case 2:return function(e,t,n,r){var o=e.t,c=e.o;a(e.R,(function(e,a){var f=u(o,e),d=u(c,e),p=a?i(o,e)?"replace":s:"remove";if(f!==d||"replace"!==p){var h=t.concat(e);n.push("remove"===p?{op:p,path:h}:{op:p,path:h,value:d}),r.push(p===s?{op:"remove",path:h}:"remove"===p?{op:s,path:h,value:l(f)}:{op:"replace",path:h,value:l(f)})}}))}(e,t,n,r);case 5:case 1:return function(e,t,n,r){var a=e.t,o=e.R,i=e.o;if(i.length<a.length){var u=[i,a];a=u[0],i=u[1];var c=[r,n];n=c[0],r=c[1]}for(var f=0;f<a.length;f++)if(o[f]&&i[f]!==a[f]){var d=t.concat([f]);n.push({op:"replace",path:d,value:l(i[f])}),r.push({op:"replace",path:d,value:l(a[f])})}for(var p=a.length;p<i.length;p++){var h=t.concat([p]);n.push({op:s,path:h,value:l(i[p])})}a.length<i.length&&r.push({op:"replace",path:t.concat(["length"]),value:a.length})}(e,t,n,r);case 3:return function(e,t,n,r){var a=e.t,o=e.o,i=0;a.forEach((function(e){if(!o.has(e)){var a=t.concat([i]);n.push({op:"remove",path:a,value:e}),r.unshift({op:s,path:a,value:e})}i++})),i=0,o.forEach((function(e){if(!a.has(e)){var o=t.concat([i]);n.push({op:s,path:o,value:e}),r.unshift({op:"remove",path:o,value:e})}i++}))}(e,t,n,r)}},M:function(e,t,n,r){n.push({op:"replace",path:[],value:t===q?void 0:t}),r.push({op:"replace",path:[],value:e})}})}();var S=function(e){return"undefined"!=typeof process&&"development"===process.env.NODE_ENV&&(p.includes(e.type)||console.error("Tag type '"+e.type+"' was used, but not specified in `tagTypes`!")),e};Object.assign(e,{reducerPath:h,endpoints:{},internalActions:{onOnline:Nt,onOffline:Dt,onFocus:Pt,onFocusLost:Ot},util:{}});var k=function(e){var t=this,n=e.reducerPath,a=e.baseQuery,o=e.context.endpointDefinitions,i=e.serializeQueryArgs,u=e.api,l=e.assertTagType,s=function(e,n){return mt(t,[e,n],(function(e,t){var n,r,i,u,l,s,f,d,p,h,m,v,y,g,b,w,S,k,E=t.signal,x=t.abort,C=t.rejectWithValue,_=t.fulfillWithValue,T=t.dispatch,R=t.getState,P=t.extra;return rt(this,(function(t){switch(t.label){case 0:n=o[e.endpointName],t.label=1;case 1:return t.trys.push([1,8,,13]),r=Ft,i=void 0,u={signal:E,abort:x,dispatch:T,getState:R,extra:P,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?c(e,R()):void 0},(l="query"===e.type?e[At]:void 0)?(i=l(),[3,6]):[3,2];case 2:return n.query?[4,a(n.query(e.originalArgs),u,n.extraOptions)]:[3,4];case 3:return i=t.sent(),n.transformResponse&&(r=n.transformResponse),[3,6];case 4:return[4,n.queryFn(e.originalArgs,u,n.extraOptions,(function(e){return a(e,u,n.extraOptions)}))];case 5:i=t.sent(),t.label=6;case 6:if("undefined"!=typeof process&&"development"===process.env.NODE_ENV){if(s=n.query?"`baseQuery`":"`queryFn`",f=void 0,i){if("object"!=typeof i)f=s+" did not return an object.";else if(i.error&&i.data)f=s+" returned an object containing both `error` and `result`.";else if(void 0===i.error&&void 0===i.data)f=s+" returned an object containing neither a valid `error` and `result`. At least one of them should not be `undefined`";else for(d=0,p=Object.keys(i);d<p.length;d++)if("error"!==(h=p[d])&&"data"!==h&&"meta"!==h){f="The object returned by "+s+" has the unknown property "+h+".";break}}else f=s+" did not return anything.";f&&console.error("Error encountered handling the endpoint "+e.endpointName+".\n "+f+"\n It needs to return an object with either the shape `{ data: <value> }` or `{ error: <value> }` that may contain an optional `meta` property.\n Object returned was:",i)}if(i.error)throw new Rt(i.error,i.meta);return m=_,[4,r(i.data,i.meta,e.originalArgs)];case 7:return[2,m.apply(void 0,[t.sent(),(S={fulfilledTimeStamp:Date.now(),baseQueryMeta:i.meta},S[Ze]=!0,S)])];case 8:if(v=t.sent(),!((y=v)instanceof Rt))return[3,12];g=Ft,n.query&&n.transformErrorResponse&&(g=n.transformErrorResponse),t.label=9;case 9:return t.trys.push([9,11,,12]),b=C,[4,g(y.value,y.meta,e.originalArgs)];case 10:return[2,b.apply(void 0,[t.sent(),(k={baseQueryMeta:y.meta},k[Ze]=!0,k)])];case 11:return w=t.sent(),y=w,[3,12];case 12:throw"undefined"!=typeof process&&"production"!==process.env.NODE_ENV?console.error('An unhandled error occurred processing a request for the endpoint "'+e.endpointName+'".\nIn the case of an unhandled error, no tags will be "provided" or "invalidated".',y):console.error(y),y;case 13:return[2]}}))}))};function c(e,t){var r,a,o,i,u=null==(a=null==(r=t[n])?void 0:r.queries)?void 0:a[e.queryCacheKey],l=null==(o=t[n])?void 0:o.config.refetchOnMountOrArgChange,s=null==u?void 0:u.fulfilledTimeStamp,c=null!=(i=e.forceRefetch)?i:e.subscribe&&l;return!!c&&(!0===c||(Number(new Date)-Number(s))/1e3>=c)}var f=Ue(n+"/executeQuery",s,{getPendingMeta:function(){var e;return(e={startedTimeStamp:Date.now()})[Ze]=!0,e},condition:function(e,t){var r,a,i,u=(0,t.getState)(),l=null==(a=null==(r=u[n])?void 0:r.queries)?void 0:a[e.queryCacheKey],s=null==l?void 0:l.fulfilledTimeStamp,f=e.originalArgs,d=null==l?void 0:l.originalArgs,p=o[e.endpointName];return!(!jt(e)&&("pending"===(null==l?void 0:l.status)||!c(e,u)&&(!It(p)||!(null==(i=null==p?void 0:p.forceRefetch)?void 0:i.call(p,{currentArg:f,previousArg:d,endpointState:l,state:u})))&&s))},dispatchConditionRejection:!0}),d=Ue(n+"/executeMutation",s,{getPendingMeta:function(){var e;return(e={startedTimeStamp:Date.now()})[Ze]=!0,e}});function p(e){return function(t){var n,r;return(null==(r=null==(n=null==t?void 0:t.meta)?void 0:n.arg)?void 0:r.endpointName)===e}}return{queryThunk:f,mutationThunk:d,prefetch:function(e,t,n){return function(r,a){var o=function(e){return"force"in e}(n)&&n.force,i=function(e){return"ifOlderThan"in e}(n)&&n.ifOlderThan,l=function(n){return void 0===n&&(n=!0),u.endpoints[e].initiate(t,{forceRefetch:n})},s=u.endpoints[e].select(t)(a());if(o)r(l());else if(i){var c=null==s?void 0:s.fulfilledTimeStamp;if(!c)return void r(l());(Number(new Date)-Number(new Date(c)))/1e3>=i&&r(l())}else r(l(!1))}},updateQueryData:function(e,t,n,a){return void 0===a&&(a=!0),function(o,i){var l,s,c,f=u.endpoints[e].select(t)(i()),d={patches:[],inversePatches:[],undo:function(){return o(u.util.patchQueryData(e,t,d.inversePatches,a))}};if(f.status===tt.uninitialized)return d;if("data"in f)if(r(f.data)){var p=te(f.data,n),h=p[0],m=p[1],v=p[2];(l=d.patches).push.apply(l,m),(s=d.inversePatches).push.apply(s,v),c=h}else c=n(f.data),d.patches.push({op:"replace",path:[],value:c}),d.inversePatches.push({op:"replace",path:[],value:f.data});return o(u.util.patchQueryData(e,t,d.patches,a)),d}},upsertQueryData:function(e,t,n){return function(r){var a;return r(u.endpoints[e].initiate(t,((a={subscribe:!1,forceRefetch:!0})[At]=function(){return{data:n}},a)))}},patchQueryData:function(e,t,n,r){return function(a,s){var c=o[e],f=i({queryArgs:t,endpointDefinition:c,endpointName:e});if(a(u.internalActions.queryResultPatched({queryCacheKey:f,patches:n})),r){var d=u.endpoints[e].select(t)(s()),p=Lt(c.providesTags,d.data,void 0,t,{},l);a(u.internalActions.updateProvidedBy({queryCacheKey:f,providedTags:p}))}}},buildMatchThunkActions:function(e,t){return{matchPending:Be(Qe(e),p(t)),matchFulfilled:Be(Ge(e),p(t)),matchRejected:Be(Ke(e),p(t))}}}}({baseQuery:d,reducerPath:h,context:s,api:e,serializeQueryArgs:m,assertTagType:S}),E=k.queryThunk,x=k.mutationThunk,C=k.patchQueryData,_=k.updateQueryData,T=k.upsertQueryData,R=k.prefetch,P=k.buildMatchThunkActions,O=$t({context:s,queryThunk:E,mutationThunk:x,reducerPath:h,assertTagType:S,config:{refetchOnFocus:b,refetchOnReconnect:w,refetchOnMountOrArgChange:y,keepUnusedDataFor:v,reducerPath:h}}),N=O.reducer,D=O.actions;dn(e.util,{patchQueryData:C,updateQueryData:_,upsertQueryData:T,prefetch:R,resetApiState:D.resetApiState}),dn(e.internalActions,D);var I=fn({reducerPath:h,context:s,queryThunk:E,mutationThunk:x,api:e,assertTagType:S}),L=I.middleware,z=I.actions;dn(e.util,z),dn(e,{reducer:N,middleware:L});var M=Gt({serializeQueryArgs:m,reducerPath:h}),A=M.buildQuerySelector,j=M.buildMutationSelector,F=M.selectInvalidatedBy;dn(e.util,{selectInvalidatedBy:F});var U=function(e){var t=e.serializeQueryArgs,n=e.queryThunk,r=e.mutationThunk,a=e.api,o=e.context,i=new Map,u=new Map,l=a.internalActions,s=l.unsubscribeQueryResult,c=l.removeMutationResult,f=l.updateSubscriptionOptions;return{buildInitiateQuery:function(e,r){var o=function(u,l){var c=void 0===l?{}:l,d=c.subscribe,h=void 0===d||d,m=c.forceRefetch,v=c.subscriptionOptions,y=c[At];return function(l,c){var d,g,b=t({queryArgs:u,endpointDefinition:r,endpointName:e}),w=n(((d={type:"query",subscribe:h,forceRefetch:m,subscriptionOptions:v,endpointName:e,originalArgs:u,queryCacheKey:b})[At]=y,d)),S=a.endpoints[e].select(u),k=l(w),E=S(c());p(l);var x=k.requestId,C=k.abort,_=E.requestId!==x,T=null==(g=i.get(l))?void 0:g[b],R=function(){return S(c())},P=Object.assign(y?k.then(R):_&&!T?Promise.resolve(E):Promise.all([T,k]).then(R),{arg:u,requestId:x,subscriptionOptions:v,queryCacheKey:b,abort:C,unwrap:function(){return mt(this,null,(function(){var e;return rt(this,(function(t){switch(t.label){case 0:return[4,P];case 1:if((e=t.sent()).isError)throw e.error;return[2,e.data]}}))}))},refetch:function(){return l(o(u,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){h&&l(s({queryCacheKey:b,requestId:x}))},updateSubscriptionOptions:function(t){P.subscriptionOptions=t,l(f({endpointName:e,requestId:x,queryCacheKey:b,options:t}))}});if(!T&&!_&&!y){var O=i.get(l)||{};O[b]=P,i.set(l,O),P.then((function(){delete O[b],Object.keys(O).length||i.delete(l)}))}return P}};return o},buildInitiateMutation:function(e){return function(t,n){var a=void 0===n?{}:n,o=a.track,i=void 0===o||o,l=a.fixedCacheKey;return function(n,a){var o=r({type:"mutation",endpointName:e,originalArgs:t,track:i,fixedCacheKey:l}),s=n(o);p(n);var f=s.requestId,d=s.abort,h=s.unwrap,m=s.unwrap().then((function(e){return{data:e}})).catch((function(e){return{error:e}})),v=function(){n(c({requestId:f,fixedCacheKey:l}))},y=Object.assign(m,{arg:s.arg,requestId:f,abort:d,unwrap:h,unsubscribe:v,reset:v}),g=u.get(n)||{};return u.set(n,g),g[f]=y,y.then((function(){delete g[f],Object.keys(g).length||u.delete(n)})),l&&(g[l]=y,y.then((function(){g[l]===y&&(delete g[l],Object.keys(g).length||u.delete(n))}))),y}}},getRunningQueryThunk:function(e,n){return function(r){var a,u=o.endpointDefinitions[e],l=t({queryArgs:n,endpointDefinition:u,endpointName:e});return null==(a=i.get(r))?void 0:a[l]}},getRunningMutationThunk:function(e,t){return function(e){var n;return null==(n=u.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return function(e){return Object.values(i.get(e)||{}).filter(Mt)}},getRunningMutationsThunk:function(){return function(e){return Object.values(u.get(e)||{}).filter(Mt)}},getRunningOperationPromises:function(){if("undefined"==typeof process||"development"!==process.env.NODE_ENV){var e=function(e){return Array.from(e.values()).flatMap((function(e){return e?Object.values(e):[]}))};return at(at([],e(i)),e(u)).filter(Mt)}d()},removalWarning:d};function d(){throw new Error("This method had to be removed due to a conceptual bug in RTK.\n Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.\n See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.")}function p(e){if("production"!==process.env.NODE_ENV){if(p.triggered)return;var t=e(a.internalActions.internal_probeSubscription({queryCacheKey:"DOES_NOT_EXIST",requestId:"DUMMY_REQUEST_ID"}));if(p.triggered=!0,"boolean"!=typeof t)throw new Error('Warning: Middleware for RTK-Query API at reducerPath "'+a.reducerPath+'" has not been added to the store.\nYou must add the middleware for RTK-Query to function correctly!')}}}({queryThunk:E,mutationThunk:x,api:e,serializeQueryArgs:m,context:s}),V=U.buildInitiateQuery,B=U.buildInitiateMutation,$=U.getRunningMutationThunk,H=U.getRunningMutationsThunk,Q=U.getRunningQueriesThunk,K=U.getRunningQueryThunk,Y=U.getRunningOperationPromises,G=U.removalWarning;return dn(e.util,{getRunningOperationPromises:Y,getRunningOperationPromise:G,getRunningMutationThunk:$,getRunningMutationsThunk:H,getRunningQueryThunk:K,getRunningQueriesThunk:Q}),{name:hn,injectEndpoint:function(t,n){var r,a=e;null!=(r=a.endpoints)[t]||(r[t]={}),It(n)?dn(a.endpoints[t],{name:t,select:A(t,n),initiate:V(t,n)},P(E,t)):function(e){return e.type===_t.mutation}(n)&&dn(a.endpoints[t],{name:t,select:j(),initiate:B(t)},P(x,t))}}}},(na=(ta=void 0===ea?{}:ea).batch,ra=void 0===na?tr.unstable_batchedUpdates:na,aa=ta.useDispatch,oa=void 0===aa?Dr:aa,ia=ta.useSelector,ua=void 0===ia?fr:ia,la=ta.useStore,sa=void 0===la?Or:la,ca=ta.unstable__sideEffectsInRender,fa=void 0!==ca&&ca,{name:pa,init:function(e,t,n){var r=t.serializeQueryArgs,a=e,o=function(e){var t=e.api,n=e.moduleOptions,r=n.batch,a=n.useDispatch,o=n.useSelector,i=n.useStore,u=n.unstable__sideEffectsInRender,l=e.serializeQueryArgs,s=e.context,c=u?function(e){return e()}:xn.useEffect;return{buildQueryHooks:function(e){var n=function(n,r){var o=void 0===r?{}:r,i=o.refetchOnReconnect,u=o.refetchOnFocus,l=o.refetchOnMountOrArgChange,f=o.skip,d=void 0!==f&&f,p=o.pollingInterval,h=void 0===p?0:p,m=t.endpoints[e].initiate,v=a(),y=Wr(d?Ht:n,Kr,s.endpointDefinitions[e],e),g=$r({refetchOnReconnect:i,refetchOnFocus:u,pollingInterval:h}),b=xn.useRef(!1),w=xn.useRef(),S=w.current||{},k=S.queryCacheKey,E=S.requestId,x=!1;if(k&&E){var C=v(t.internalActions.internal_probeSubscription({queryCacheKey:k,requestId:E}));if("production"!==process.env.NODE_ENV&&"boolean"!=typeof C)throw new Error('Warning: Middleware for RTK-Query API at reducerPath "'+t.reducerPath+'" has not been added to the store.\n You must add the middleware for RTK-Query to function correctly!');x=!!C}var _=!x&&b.current;return c((function(){b.current=x})),c((function(){_&&(w.current=void 0)}),[_]),c((function(){var e,t=w.current;if("undefined"!=typeof process&&"removeMeOnCompilation"===process.env.NODE_ENV&&console.log(_),y===Ht)return null==t||t.unsubscribe(),void(w.current=void 0);var n=null==(e=w.current)?void 0:e.subscriptionOptions;if(t&&t.arg===y)g!==n&&t.updateSubscriptionOptions(g);else{null==t||t.unsubscribe();var r=v(m(y,{subscriptionOptions:g,forceRefetch:l}));w.current=r}}),[v,m,l,y,g,_]),xn.useEffect((function(){return function(){var e;null==(e=w.current)||e.unsubscribe(),w.current=void 0}}),[]),xn.useMemo((function(){return{refetch:function(){var e;if(!w.current)throw new Error("Cannot refetch a query that has not been started yet.");return null==(e=w.current)?void 0:e.refetch()}}}),[])},u=function(n){var o=void 0===n?{}:n,i=o.refetchOnReconnect,u=o.refetchOnFocus,l=o.pollingInterval,s=void 0===l?0:l,f=t.endpoints[e].initiate,d=a(),p=xn.useState(Br),h=p[0],m=p[1],v=xn.useRef(),y=$r({refetchOnReconnect:i,refetchOnFocus:u,pollingInterval:s});c((function(){var e,t,n=null==(e=v.current)?void 0:e.subscriptionOptions;y!==n&&(null==(t=v.current)||t.updateSubscriptionOptions(y))}),[y]);var g=xn.useRef(y);c((function(){g.current=y}),[y]);var b=xn.useCallback((function(e,t){var n;return void 0===t&&(t=!1),r((function(){var r;null==(r=v.current)||r.unsubscribe(),v.current=n=d(f(e,{subscriptionOptions:g.current,forceRefetch:!t})),m(e)})),n}),[d,f]);return xn.useEffect((function(){return function(){var e;null==(e=null==v?void 0:v.current)||e.unsubscribe()}}),[]),xn.useEffect((function(){h===Br||v.current||b(h,!0)}),[h,b]),xn.useMemo((function(){return[b,h]}),[b,h])},d=function(n,r){var a=void 0===r?{}:r,u=a.skip,c=void 0!==u&&u,d=a.selectFromResult,p=t.endpoints[e].select,h=Wr(c?Ht:n,l,s.endpointDefinitions[e],e),m=xn.useRef(),v=xn.useMemo((function(){return me([p(h),function(e,t){return t},function(e){return h}],f)}),[p,h]),y=xn.useMemo((function(){return d?me([v],d):v}),[v,d]),g=o((function(e){return y(e,m.current)}),Rr),b=i(),w=v(b.getState(),m.current);return Yr((function(){m.current=w}),[w]),g};return{useQueryState:d,useQuerySubscription:n,useLazyQuerySubscription:u,useLazyQuery:function(e){var t=u(e),n=t[0],r=t[1],a=d(r,qr(Vr({},e),{skip:r===Br})),o=xn.useMemo((function(){return{lastArg:r}}),[r]);return xn.useMemo((function(){return[n,a,o]}),[n,a,o])},useQuery:function(e,t){var r=n(e,t),a=d(e,Vr({selectFromResult:e===Ht||(null==t?void 0:t.skip)?void 0:Xr},t)),o=a.data,i=a.status,u=a.isLoading,l=a.isSuccess,s=a.isError,c=a.error;return xn.useDebugValue({data:o,status:i,isLoading:u,isSuccess:l,isError:s,error:c}),xn.useMemo((function(){return Vr(Vr({},a),r)}),[a,r])}}},buildMutationHook:function(e){return function(n){var i=void 0===n?{}:n,u=i.selectFromResult,l=void 0===u?Gr:u,s=i.fixedCacheKey,c=t.endpoints[e],f=c.select,d=c.initiate,p=a(),h=xn.useState(),m=h[0],v=h[1];xn.useEffect((function(){return function(){(null==m?void 0:m.arg.fixedCacheKey)||null==m||m.reset()}}),[m]);var y=xn.useCallback((function(e){var t=p(d(e,{fixedCacheKey:s}));return v(t),t}),[p,d,s]),g=(m||{}).requestId,b=xn.useMemo((function(){return me([f({fixedCacheKey:s,requestId:null==m?void 0:m.requestId})],l)}),[f,m,l,s]),w=o(b,Rr),S=null==s?null==m?void 0:m.arg.originalArgs:void 0,k=xn.useCallback((function(){r((function(){m&&v(void 0),s&&p(t.internalActions.removeMutationResult({requestId:g,fixedCacheKey:s}))}))}),[p,s,m,g]),E=w.endpointName,x=w.data,C=w.status,_=w.isLoading,T=w.isSuccess,R=w.isError,P=w.error;xn.useDebugValue({endpointName:E,data:x,status:C,isLoading:_,isSuccess:T,isError:R,error:P});var O=xn.useMemo((function(){return qr(Vr({},w),{originalArgs:S,reset:k})}),[w,S,k]);return xn.useMemo((function(){return[y,O]}),[y,O])}},usePrefetch:function(e,n){var r=a(),o=$r(n);return xn.useCallback((function(n,a){return r(t.util.prefetch(e,n,Vr(Vr({},o),a)))}),[e,r,o])}};function f(e,t,n){if((null==t?void 0:t.endpointName)&&e.isUninitialized){var r=t.endpointName,a=s.endpointDefinitions[r];l({queryArgs:t.originalArgs,endpointDefinition:a,endpointName:r})===l({queryArgs:n,endpointDefinition:a,endpointName:r})&&(t=void 0)}var o=e.isSuccess?e.data:null==t?void 0:t.data;void 0===o&&(o=e.data);var i=void 0!==o,u=e.isLoading,c=!i&&u,f=e.isSuccess||u&&i;return qr(Vr({},e),{data:o,currentData:e.data,isFetching:u,isLoading:c,isSuccess:f})}}({api:e,moduleOptions:{batch:ra,useDispatch:oa,useSelector:ua,useStore:sa,unstable__sideEffectsInRender:fa},serializeQueryArgs:r,context:n}),i=o.buildQueryHooks,u=o.buildMutationHook,l=o.usePrefetch;return Zr(a,{usePrefetch:l}),Zr(n,{batch:ra}),{injectEndpoint:function(t,n){if(function(e){return e.type===Hr.query}(n)){var r=i(t),o=r.useQuery,l=r.useLazyQuery,s=r.useLazyQuerySubscription,c=r.useQueryState,f=r.useQuerySubscription;Zr(a.endpoints[t],{useQuery:o,useLazyQuery:l,useLazyQuerySubscription:s,useQueryState:c,useQuerySubscription:f}),e["use"+Jr(t)+"Query"]=o,e["useLazy"+Jr(t)+"Query"]=l}else if(function(e){return e.type===Hr.mutation}(n)){var d=u(t);Zr(a.endpoints[t],{useMutation:d}),e["use"+Jr(t)+"Mutation"]=d}}}}})),ma={};var va=(da||(da=1,ma.reactLocalStorage={set:function(e,t){return localStorage[e]=t,localStorage[e]},get:function(e,t=void 0,n=!0){var r=localStorage[e]||t;if(!n&&!r)throw e+" not found in localStorage";return r},setObject:function(e,t){return localStorage[e]=JSON.stringify(t),localStorage[e]},getObject:function(e,t={},n=!0){value=this.get(e,JSON.stringify(t),n);try{return JSON.parse(value)}catch(e){if(!n)throw"Error in parsing value"}},clear:function(){return localStorage.clear()},remove:function(e){return localStorage.removeItem(e)}}),ma);function ya(){var e="test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}var ga={get:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return ya()?va.reactLocalStorage.get(e,t,n):void 0},set:function(e,t){ya()&&va.reactLocalStorage.set(e,t)},getObject:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return ya()?va.reactLocalStorage.getObject(e,t,n):void 0},setObject:function(e,t){if(ya())return va.reactLocalStorage.setObject(e,t)}};function ba(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return wa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wa(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw o}}}}function wa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Sa=void 0,ka=function(e){Sa=e},Ea=function(){return Sa||ga.get("timumApiHost","https://www.timum.de")},xa=function(){return Ea()+"/rest/1"},Ca=function(t,n,r){if(n.params)for(var a=0,o=Object.entries(n.params);a<o.length;a++){var i=e(o[a],2),u=i[0],l=i[1];if(Array.isArray(l)){var s,c=ba(l);try{for(c.s();!(s=c.n()).done;){var f=s.value;t=t.includes("?")?"".concat(t,"&").concat(u,"=").concat(f):"".concat(t,"?").concat(u,"=").concat(f)}}catch(e){c.e(e)}finally{c.f()}}else t=t.includes("?")?"".concat(t,"&").concat(u,"=").concat(l):"".concat(t,"?").concat(u,"=").concat(l)}return t=t.includes("?")?"".concat(t,"&X-DISABLE-COOKIES=true"):"".concat(t,"?X-DISABLE-COOKIES=true"),r?"".concat(Ea()).concat(t):"".concat(xa()).concat(t)},_a=ha({reducerPath:"timumApi",baseQuery:function(e){var t=this;void 0===e&&(e={});var n=e,r=n.baseUrl,a=n.prepareHeaders,o=void 0===a?function(e){return e}:a,i=n.fetchFn,u=void 0===i?kt:i,l=n.paramsSerializer,s=n.isJsonContentType,c=void 0===s?xt:s,f=n.jsonContentType,d=void 0===f?"application/json":f,p=n.jsonReplacer,h=n.timeout,m=n.responseHandler,v=n.validateStatus,y=ht(n,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","jsonReplacer","timeout","responseHandler","validateStatus"]);return"undefined"==typeof fetch&&u===kt&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(e,n){return mt(t,null,(function(){var t,a,i,s,f,b,w,S,k,E,x,C,_,T,R,P,O,N,D,I,L,z,M,A,j,F,U,V,q,W,B,$,H,Q,K,Y;return rt(this,(function(G){switch(G.label){case 0:return t=n.signal,a=n.getState,i=n.extra,s=n.endpoint,f=n.forced,b=n.type,k=(S="string"==typeof e?{url:e}:e).url,E=S.headers,x=void 0===E?new Headers(y.headers):E,C=S.params,_=void 0===C?void 0:C,T=S.responseHandler,R=void 0===T?null!=m?m:"json":T,P=S.validateStatus,O=void 0===P?null!=v?v:Et:P,N=S.timeout,D=void 0===N?h:N,I=ht(S,["url","headers","params","responseHandler","validateStatus","timeout"]),L=dt(pt(dt({},y),{signal:t}),I),x=new Headers(Ct(x)),z=L,[4,o(x,{getState:a,extra:i,endpoint:s,forced:f,type:b})];case 1:z.headers=G.sent()||x,M=function(e){return"object"==typeof e&&(Re(e)||Array.isArray(e)||"function"==typeof e.toJSON)},!L.headers.has("content-type")&&M(L.body)&&L.headers.set("content-type",d),M(L.body)&&c(L.headers)&&(L.body=JSON.stringify(L.body,p)),_&&(A=~k.indexOf("?")?"&":"?",j=l?l(_):new URLSearchParams(Ct(_)),k+=A+j),k=gt(r,k),F=new Request(k,L),U=new Request(k,L),w={request:U},q=!1,W=D&&setTimeout((function(){q=!0,n.abort()}),D),G.label=2;case 2:return G.trys.push([2,4,5,6]),[4,u(F)];case 3:return V=G.sent(),[3,6];case 4:return B=G.sent(),[2,{error:{status:q?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(B)},meta:w}];case 5:return W&&clearTimeout(W),[7];case 6:$=V.clone(),w.response=$,Q="",G.label=7;case 7:return G.trys.push([7,9,,10]),[4,Promise.all([g(V,R).then((function(e){return H=e}),(function(e){return K=e})),$.text().then((function(e){return Q=e}),(function(){}))])];case 8:if(G.sent(),K)throw K;return[3,10];case 9:return Y=G.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:V.status,data:Q,error:String(Y)},meta:w}];case 10:return[2,O(V,H)?{data:H,meta:w}:{error:{status:V.status,data:H},meta:w}]}}))}))};function g(e,t){return mt(this,null,(function(){var n;return rt(this,(function(r){switch(r.label){case 0:return"function"==typeof t?[2,t(e)]:("content-type"===t&&(t=c(e.headers)?"json":"text"),"json"!==t?[3,2]:[4,e.text()]);case 1:return[2,(n=r.sent()).length?JSON.parse(n):null];case 2:return[2,e.text()]}}))}))}}({baseUrl:void 0,credentials:"include"}),tagTypes:["Timeslot","Product","Account","Provider","User","IdentifiedCustomer"],endpoints:function(e){return{upcomingBookables:e.query({query:function(e){return{url:Ca("/resources/".concat(e.channelOrResourceId,"/upcoming_bookables"),e),headers:e.headers}},providesTags:function(){return["Timeslot"]}}),specificBookables:e.query({query:function(e){return{url:Ca("/bookables/specific_bookables",e),headers:e.headers,method:"post",body:e.body}},providesTags:function(){return["Timeslot"]}}),activeProducts:e.query({query:function(e){return{url:Ca("/resources/".concat(e.channelOrResourceId,"/active_products"),e),headers:e.headers}},providesTags:function(){return["Product"]}}),specificProducts:e.query({query:function(e){return{url:Ca("/products/specific_products",e),headers:e.headers,method:"post",body:e.body}},providesTags:function(){return["Product"]}}),createAppointmentWithConsumer:e.mutation({query:function(e){return{url:Ca("/resources/".concat(e.channelOrResourceId,"/create_appointment_with_consumer"),e),method:"post",body:e.body,headers:e.headers}},invalidatesTags:function(e,t,n){var r=[{type:"Timeslot"}];return n.shouldInvalidateCustomerIdentification&&r.push({type:"IdentifiedCustomer"}),r}}),removeCustomerFromAppointment:e.mutation({query:function(e){return{url:Ca("/customers/".concat(e.customersId,"/appointments/").concat(e.appointmentId),e),method:"delete",headers:e.headers}},invalidatesTags:function(){return[{type:"Timeslot"}]}}),authenticate:e.query({query:function(e){return{url:Ca("/auth/cookieless/login",e,!0),headers:e.headers,method:"post",body:e.body}}}),publicData:e.query({query:function(e){return{url:Ca("/resources/".concat(e.channelOrResourceId,"/public_data"),e),headers:e.headers}}}),identifyCustomer:e.query({query:function(e){return{url:Ca("/crms/".concat(e.crmSlug,"/resources/").concat(e.channelOrResourceId,"/customers/").concat(e.personId,"/identify"),e),headers:e.headers}},providesTags:"IdentifiedCustomer",keepUnusedDataFor:9999999}),reserveAppoinment:e.mutation({query:function(e){return{url:Ca("/resources/".concat(e.channelOrResourceId,"/reserve_appointment"),e),method:"post",body:e.body,headers:e.headers}}}),revokeAppointmentReservation:e.mutation({query:function(e){return{url:Ca("/resources/".concat(e.channelOrResourceId,"/revoke_reservation"),e),method:"post",body:e.body,headers:e.headers}}}),getAccount:e.query({query:function(e){return{url:Ca("/crms/".concat(e.platform,"/account/").concat(e.accountReference),e)}},providesTags:function(){return["Account"]}}),createAccount:e.mutation({query:function(e){return{url:Ca("/crms/".concat(e.platform,"/account"),e),method:"post",body:JSON.stringify(e.accountData)}},invalidatesTags:function(){return[{type:"Account"}]}}),getProviders:e.query({query:function(e){return{url:Ca("/crms/".concat(e.platform,"/account/").concat(e.accountReference,"/providers"),e)}},providesTags:function(){return["Product"]}}),getProvider:e.query({query:function(e){return{url:Ca("/crms/".concat(e.platform,"/provider/").concat(e.providerReference),e)}}}),createProvider:e.mutation({query:function(e){return{url:Ca("/crms/".concat(e.platform,"/provider"),e),method:"post",body:JSON.stringify({user:null!==(t=e.userData)&&void 0!==t?t:{},provider:null!==(n=e.providerData)&&void 0!==n?n:{},address:null!==(r=e.addressData)&&void 0!==r?r:null,account:null!==(a=e.account)&&void 0!==a?a:null,sendEmail:null!==(o=e.sendEmail)&&void 0!==o&&o})};var t,n,r,a,o},invalidatesTags:function(){return[{type:"Provider"}]}}),getUser:e.query({query:function(e){return{url:Ca("/crms/".concat(e.platform,"/user/").concat(e.userReference),e)}}}),createUser:e.mutation({query:function(e){return{url:Ca("/crms/".concat(e.platform,"/user"),e),method:"post",body:JSON.stringify(e.userData)}},invalidatesTags:function(){return[{type:"User"}]}})}}}),Ta=_a.useUpcomingBookablesQuery,Ra=_a.useLazyUpcomingBookablesQuery,Pa=_a.useSpecificBookablesQuery,Oa=_a.useLazySpecificBookablesQuery,Na=_a.useActiveProductsQuery,Da=_a.useLazyActiveProductsQuery,Ia=_a.useSpecificProductsQuery,La=_a.useLazySpecificProductsQuery,za=_a.useCreateAppointmentWithConsumerMutation,Ma=_a.useIdentifyCustomerQuery,Aa=_a.useLazyIdentifyCustomerQuery,ja=_a.usePublicDataQuery,Fa=_a.useLazyPublicDataQuery,Ua=_a.useReserveAppoinmentMutation,Va=_a.useRevokeAppointmentReservationMutation,qa=_a.useRemoveCustomerFromAppointmentMutation,Wa=_a.useAuthenticateQuery,Ba=_a.useLazyAuthenticateQuery,$a=_a.useCreateAccountMutation,Ha=_a.useGetAccountQuery,Qa=_a.useLazyGetAccountQuery,Ka=_a.useGetProvidersQuery,Ya=_a.useLazyGetProvidersQuery,Ga=_a.useCreateProviderMutation,Xa=_a.useCreateUserMutation,Ja=_a.useGetUserQuery,Za=_a.useLazyGetUserQuery;export{Ca as constructUrl,xa as getBaseUrl,Ea as getTimumApiHost,ka as setTimumApiHost,_a as timumApiSlice,Na as useActiveProductsQuery,Wa as useAuthenticateQuery,$a as useCreateAccountMutation,za as useCreateAppointmentWithConsumerMutation,Ga as useCreateProviderMutation,Xa as useCreateUserMutation,Ha as useGetAccountQuery,Ka as useGetProvidersQuery,Ja as useGetUserQuery,Ma as useIdentifyCustomerQuery,Da as useLazyActiveProductsQuery,Ba as useLazyAuthenticateQuery,Qa as useLazyGetAccountQuery,Ya as useLazyGetProvidersQuery,Za as useLazyGetUserQuery,Aa as useLazyIdentifyCustomerQuery,Fa as useLazyPublicDataQuery,Oa as useLazySpecificBookablesQuery,La as useLazySpecificProductsQuery,Ra as useLazyUpcomingBookablesQuery,ja as usePublicDataQuery,qa as useRemoveCustomerFromAppointmentMutation,Ua as useReserveAppoinmentMutation,Va as useRevokeAppointmentReservationMutation,Pa as useSpecificBookablesQuery,Ia as useSpecificProductsQuery,Ta as useUpcomingBookablesQuery};
85
+ */function Tr(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Rr(e,t){if(Tr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Tr(e[n[r]],t[n[r]]))return!1;return!0}function Pr(e=or){const t=e===or?ur:ir(e);return function(){const{store:e}=t();return e}}Cr||(Cr=1,"production"===process.env.NODE_ENV?kr.exports=function(){if(Sr)return Er;Sr=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case o:case a:case c:case f:return e;default:switch(e=e&&e.$$typeof){case l:case u:case s:case p:case d:case i:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),Er.ContextConsumer=u,Er.ContextProvider=i,Er.Element=t,Er.ForwardRef=s,Er.Fragment=r,Er.Lazy=p,Er.Memo=d,Er.Portal=n,Er.Profiler=o,Er.StrictMode=a,Er.Suspense=c,Er.SuspenseList=f,Er.isAsyncMode=function(){return!1},Er.isConcurrentMode=function(){return!1},Er.isContextConsumer=function(e){return m(e)===u},Er.isContextProvider=function(e){return m(e)===i},Er.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Er.isForwardRef=function(e){return m(e)===s},Er.isFragment=function(e){return m(e)===r},Er.isLazy=function(e){return m(e)===p},Er.isMemo=function(e){return m(e)===d},Er.isPortal=function(e){return m(e)===n},Er.isProfiler=function(e){return m(e)===o},Er.isStrictMode=function(e){return m(e)===a},Er.isSuspense=function(e){return m(e)===c},Er.isSuspenseList=function(e){return m(e)===f},Er.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===o||t===a||t===c||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===i||t.$$typeof===u||t.$$typeof===s||t.$$typeof===e||void 0!==t.getModuleId)},Er.typeOf=m,Er}():kr.exports=(xr||(xr=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var m=e.type;switch(m){case r:case o:case a:case c:case f:return m;default:var v=m&&m.$$typeof;switch(v){case l:case u:case s:case p:case d:case i:return v;default:return h}}case n:return h}}}e=Symbol.for("react.module.reference");var v=u,y=i,g=t,b=s,w=r,S=p,k=d,E=n,x=o,C=a,_=c,T=f,R=!1,P=!1;_r.ContextConsumer=v,_r.ContextProvider=y,_r.Element=g,_r.ForwardRef=b,_r.Fragment=w,_r.Lazy=S,_r.Memo=k,_r.Portal=E,_r.Profiler=x,_r.StrictMode=C,_r.Suspense=_,_r.SuspenseList=T,_r.isAsyncMode=function(e){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},_r.isConcurrentMode=function(e){return P||(P=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},_r.isContextConsumer=function(e){return m(e)===u},_r.isContextProvider=function(e){return m(e)===i},_r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},_r.isForwardRef=function(e){return m(e)===s},_r.isFragment=function(e){return m(e)===r},_r.isLazy=function(e){return m(e)===p},_r.isMemo=function(e){return m(e)===d},_r.isPortal=function(e){return m(e)===n},_r.isProfiler=function(e){return m(e)===o},_r.isStrictMode=function(e){return m(e)===a},_r.isSuspense=function(e){return m(e)===c},_r.isSuspenseList=function(e){return m(e)===f},_r.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===o||t===a||t===c||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===i||t.$$typeof===u||t.$$typeof===s||t.$$typeof===e||void 0!==t.getModuleId)},_r.typeOf=m}()),_r)),kr.exports;const Or=Pr();function Nr(e=or){const t=e===or?Or:Pr(e);return function(){return t().dispatch}}const Dr=Nr();(e=>{lr=e})(Fn.useSyncExternalStoreWithSelector);var Ir=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e},Lr=Object.defineProperty,zr=Object.defineProperties,Mr=Object.getOwnPropertyDescriptors,Ar=Object.getOwnPropertySymbols,jr=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable,Ur=function(e,t,n){return t in e?Lr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Vr=function(e,t){for(var n in t||(t={}))jr.call(t,n)&&Ur(e,n,t[n]);if(Ar)for(var r=0,a=Ar(t);r<a.length;r++){n=a[r];Fr.call(t,n)&&Ur(e,n,t[n])}return e},qr=function(e,t){return zr(e,Mr(t))};function Wr(e,t,n,r){var a=xn.useMemo((function(){return{queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e}}),[e,t,n,r]),o=xn.useRef(a);return xn.useEffect((function(){o.current.serialized!==a.serialized&&(o.current=a)}),[a]),o.current.serialized===a.serialized?o.current.queryArgs:e}var Br=Symbol();function $r(e){var t=xn.useRef(e);return xn.useEffect((function(){Rr(t.current,e)||(t.current=e)}),[e]),Rr(t.current,e)?t.current:e}var Hr,Qr=WeakMap?new WeakMap:void 0,Kr=function(e){var t=e.endpointName,n=e.queryArgs,r="",a=null==Qr?void 0:Qr.get(n);if("string"==typeof a)r=a;else{var o=JSON.stringify(n,(function(e,t){return Re(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}));Re(n)&&(null==Qr||Qr.set(n,o)),r=o}return t+"("+r+")"},Yr="undefined"!=typeof window&&window.document&&window.document.createElement?xn.useLayoutEffect:xn.useEffect,Gr=function(e){return e},Xr=function(e){return e.isUninitialized?qr(Vr({},e),{isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:tt.pending}):e};function Jr(e){return e.replace(e[0],e[0].toUpperCase())}function Zr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Object.assign.apply(Object,Ir([e],t))}!function(e){e.query="query",e.mutation="mutation"}(Hr||(Hr={}));var ea,ta,na,ra,aa,oa,ia,ua,la,sa,ca,fa,da,pa=Symbol(),ha=Zt({name:hn,init:function(e,l,s){var d=l.baseQuery,p=l.tagTypes,h=l.reducerPath,m=l.serializeQueryArgs,v=l.keepUnusedDataFor,y=l.refetchOnMountOrArgChange,b=l.refetchOnFocus,w=l.refetchOnReconnect;!function(){function e(t){if(!r(t))return t;if(Array.isArray(t))return t.map(e);if(c(t))return new Map(Array.from(t.entries()).map((function(t){return[t[0],e(t[1])]})));if(f(t))return new Set(Array.from(t).map(e));var n=Object.create(Object.getPrototypeOf(t));for(var a in t)n[a]=e(t[a]);return i(t,W)&&(n[W]=t[W]),n}function l(t){return n(t)?e(t):t}var s="add";g("Patches",{$:function(n,r){return r.forEach((function(r){for(var a=r.path,i=r.op,l=n,c=0;c<a.length-1;c++){var f=o(l),d=a[c];"string"!=typeof d&&"number"!=typeof d&&(d=""+d),0!==f&&1!==f||"__proto__"!==d&&"constructor"!==d||t(24),"function"==typeof l&&"prototype"===d&&t(24),"object"!=typeof(l=u(l,d))&&t(15,a.join("/"))}var p=o(l),h=e(r.value),m=a[a.length-1];switch(i){case"replace":switch(p){case 2:return l.set(m,h);case 3:t(16);default:return l[m]=h}case s:switch(p){case 1:return"-"===m?l.push(h):l.splice(m,0,h);case 2:return l.set(m,h);case 3:return l.add(h);default:return l[m]=h}case"remove":switch(p){case 1:return l.splice(m,1);case 2:return l.delete(m);case 3:return l.delete(r.value);default:return delete l[m]}default:t(17,i)}})),n},N:function(e,t,n,r){switch(e.i){case 0:case 4:case 2:return function(e,t,n,r){var o=e.t,c=e.o;a(e.R,(function(e,a){var f=u(o,e),d=u(c,e),p=a?i(o,e)?"replace":s:"remove";if(f!==d||"replace"!==p){var h=t.concat(e);n.push("remove"===p?{op:p,path:h}:{op:p,path:h,value:d}),r.push(p===s?{op:"remove",path:h}:"remove"===p?{op:s,path:h,value:l(f)}:{op:"replace",path:h,value:l(f)})}}))}(e,t,n,r);case 5:case 1:return function(e,t,n,r){var a=e.t,o=e.R,i=e.o;if(i.length<a.length){var u=[i,a];a=u[0],i=u[1];var c=[r,n];n=c[0],r=c[1]}for(var f=0;f<a.length;f++)if(o[f]&&i[f]!==a[f]){var d=t.concat([f]);n.push({op:"replace",path:d,value:l(i[f])}),r.push({op:"replace",path:d,value:l(a[f])})}for(var p=a.length;p<i.length;p++){var h=t.concat([p]);n.push({op:s,path:h,value:l(i[p])})}a.length<i.length&&r.push({op:"replace",path:t.concat(["length"]),value:a.length})}(e,t,n,r);case 3:return function(e,t,n,r){var a=e.t,o=e.o,i=0;a.forEach((function(e){if(!o.has(e)){var a=t.concat([i]);n.push({op:"remove",path:a,value:e}),r.unshift({op:s,path:a,value:e})}i++})),i=0,o.forEach((function(e){if(!a.has(e)){var o=t.concat([i]);n.push({op:s,path:o,value:e}),r.unshift({op:"remove",path:o,value:e})}i++}))}(e,t,n,r)}},M:function(e,t,n,r){n.push({op:"replace",path:[],value:t===q?void 0:t}),r.push({op:"replace",path:[],value:e})}})}();var S=function(e){return"undefined"!=typeof process&&"development"===process.env.NODE_ENV&&(p.includes(e.type)||console.error("Tag type '"+e.type+"' was used, but not specified in `tagTypes`!")),e};Object.assign(e,{reducerPath:h,endpoints:{},internalActions:{onOnline:Nt,onOffline:Dt,onFocus:Pt,onFocusLost:Ot},util:{}});var k=function(e){var t=this,n=e.reducerPath,a=e.baseQuery,o=e.context.endpointDefinitions,i=e.serializeQueryArgs,u=e.api,l=e.assertTagType,s=function(e,n){return mt(t,[e,n],(function(e,t){var n,r,i,u,l,s,f,d,p,h,m,v,y,g,b,w,S,k,E=t.signal,x=t.abort,C=t.rejectWithValue,_=t.fulfillWithValue,T=t.dispatch,R=t.getState,P=t.extra;return rt(this,(function(t){switch(t.label){case 0:n=o[e.endpointName],t.label=1;case 1:return t.trys.push([1,8,,13]),r=Ft,i=void 0,u={signal:E,abort:x,dispatch:T,getState:R,extra:P,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?c(e,R()):void 0},(l="query"===e.type?e[At]:void 0)?(i=l(),[3,6]):[3,2];case 2:return n.query?[4,a(n.query(e.originalArgs),u,n.extraOptions)]:[3,4];case 3:return i=t.sent(),n.transformResponse&&(r=n.transformResponse),[3,6];case 4:return[4,n.queryFn(e.originalArgs,u,n.extraOptions,(function(e){return a(e,u,n.extraOptions)}))];case 5:i=t.sent(),t.label=6;case 6:if("undefined"!=typeof process&&"development"===process.env.NODE_ENV){if(s=n.query?"`baseQuery`":"`queryFn`",f=void 0,i){if("object"!=typeof i)f=s+" did not return an object.";else if(i.error&&i.data)f=s+" returned an object containing both `error` and `result`.";else if(void 0===i.error&&void 0===i.data)f=s+" returned an object containing neither a valid `error` and `result`. At least one of them should not be `undefined`";else for(d=0,p=Object.keys(i);d<p.length;d++)if("error"!==(h=p[d])&&"data"!==h&&"meta"!==h){f="The object returned by "+s+" has the unknown property "+h+".";break}}else f=s+" did not return anything.";f&&console.error("Error encountered handling the endpoint "+e.endpointName+".\n "+f+"\n It needs to return an object with either the shape `{ data: <value> }` or `{ error: <value> }` that may contain an optional `meta` property.\n Object returned was:",i)}if(i.error)throw new Rt(i.error,i.meta);return m=_,[4,r(i.data,i.meta,e.originalArgs)];case 7:return[2,m.apply(void 0,[t.sent(),(S={fulfilledTimeStamp:Date.now(),baseQueryMeta:i.meta},S[Ze]=!0,S)])];case 8:if(v=t.sent(),!((y=v)instanceof Rt))return[3,12];g=Ft,n.query&&n.transformErrorResponse&&(g=n.transformErrorResponse),t.label=9;case 9:return t.trys.push([9,11,,12]),b=C,[4,g(y.value,y.meta,e.originalArgs)];case 10:return[2,b.apply(void 0,[t.sent(),(k={baseQueryMeta:y.meta},k[Ze]=!0,k)])];case 11:return w=t.sent(),y=w,[3,12];case 12:throw"undefined"!=typeof process&&"production"!==process.env.NODE_ENV?console.error('An unhandled error occurred processing a request for the endpoint "'+e.endpointName+'".\nIn the case of an unhandled error, no tags will be "provided" or "invalidated".',y):console.error(y),y;case 13:return[2]}}))}))};function c(e,t){var r,a,o,i,u=null==(a=null==(r=t[n])?void 0:r.queries)?void 0:a[e.queryCacheKey],l=null==(o=t[n])?void 0:o.config.refetchOnMountOrArgChange,s=null==u?void 0:u.fulfilledTimeStamp,c=null!=(i=e.forceRefetch)?i:e.subscribe&&l;return!!c&&(!0===c||(Number(new Date)-Number(s))/1e3>=c)}var f=Ue(n+"/executeQuery",s,{getPendingMeta:function(){var e;return(e={startedTimeStamp:Date.now()})[Ze]=!0,e},condition:function(e,t){var r,a,i,u=(0,t.getState)(),l=null==(a=null==(r=u[n])?void 0:r.queries)?void 0:a[e.queryCacheKey],s=null==l?void 0:l.fulfilledTimeStamp,f=e.originalArgs,d=null==l?void 0:l.originalArgs,p=o[e.endpointName];return!(!jt(e)&&("pending"===(null==l?void 0:l.status)||!c(e,u)&&(!It(p)||!(null==(i=null==p?void 0:p.forceRefetch)?void 0:i.call(p,{currentArg:f,previousArg:d,endpointState:l,state:u})))&&s))},dispatchConditionRejection:!0}),d=Ue(n+"/executeMutation",s,{getPendingMeta:function(){var e;return(e={startedTimeStamp:Date.now()})[Ze]=!0,e}});function p(e){return function(t){var n,r;return(null==(r=null==(n=null==t?void 0:t.meta)?void 0:n.arg)?void 0:r.endpointName)===e}}return{queryThunk:f,mutationThunk:d,prefetch:function(e,t,n){return function(r,a){var o=function(e){return"force"in e}(n)&&n.force,i=function(e){return"ifOlderThan"in e}(n)&&n.ifOlderThan,l=function(n){return void 0===n&&(n=!0),u.endpoints[e].initiate(t,{forceRefetch:n})},s=u.endpoints[e].select(t)(a());if(o)r(l());else if(i){var c=null==s?void 0:s.fulfilledTimeStamp;if(!c)return void r(l());(Number(new Date)-Number(new Date(c)))/1e3>=i&&r(l())}else r(l(!1))}},updateQueryData:function(e,t,n,a){return void 0===a&&(a=!0),function(o,i){var l,s,c,f=u.endpoints[e].select(t)(i()),d={patches:[],inversePatches:[],undo:function(){return o(u.util.patchQueryData(e,t,d.inversePatches,a))}};if(f.status===tt.uninitialized)return d;if("data"in f)if(r(f.data)){var p=te(f.data,n),h=p[0],m=p[1],v=p[2];(l=d.patches).push.apply(l,m),(s=d.inversePatches).push.apply(s,v),c=h}else c=n(f.data),d.patches.push({op:"replace",path:[],value:c}),d.inversePatches.push({op:"replace",path:[],value:f.data});return o(u.util.patchQueryData(e,t,d.patches,a)),d}},upsertQueryData:function(e,t,n){return function(r){var a;return r(u.endpoints[e].initiate(t,((a={subscribe:!1,forceRefetch:!0})[At]=function(){return{data:n}},a)))}},patchQueryData:function(e,t,n,r){return function(a,s){var c=o[e],f=i({queryArgs:t,endpointDefinition:c,endpointName:e});if(a(u.internalActions.queryResultPatched({queryCacheKey:f,patches:n})),r){var d=u.endpoints[e].select(t)(s()),p=Lt(c.providesTags,d.data,void 0,t,{},l);a(u.internalActions.updateProvidedBy({queryCacheKey:f,providedTags:p}))}}},buildMatchThunkActions:function(e,t){return{matchPending:Be(Qe(e),p(t)),matchFulfilled:Be(Ge(e),p(t)),matchRejected:Be(Ke(e),p(t))}}}}({baseQuery:d,reducerPath:h,context:s,api:e,serializeQueryArgs:m,assertTagType:S}),E=k.queryThunk,x=k.mutationThunk,C=k.patchQueryData,_=k.updateQueryData,T=k.upsertQueryData,R=k.prefetch,P=k.buildMatchThunkActions,O=$t({context:s,queryThunk:E,mutationThunk:x,reducerPath:h,assertTagType:S,config:{refetchOnFocus:b,refetchOnReconnect:w,refetchOnMountOrArgChange:y,keepUnusedDataFor:v,reducerPath:h}}),N=O.reducer,D=O.actions;dn(e.util,{patchQueryData:C,updateQueryData:_,upsertQueryData:T,prefetch:R,resetApiState:D.resetApiState}),dn(e.internalActions,D);var I=fn({reducerPath:h,context:s,queryThunk:E,mutationThunk:x,api:e,assertTagType:S}),L=I.middleware,z=I.actions;dn(e.util,z),dn(e,{reducer:N,middleware:L});var M=Gt({serializeQueryArgs:m,reducerPath:h}),A=M.buildQuerySelector,j=M.buildMutationSelector,F=M.selectInvalidatedBy;dn(e.util,{selectInvalidatedBy:F});var U=function(e){var t=e.serializeQueryArgs,n=e.queryThunk,r=e.mutationThunk,a=e.api,o=e.context,i=new Map,u=new Map,l=a.internalActions,s=l.unsubscribeQueryResult,c=l.removeMutationResult,f=l.updateSubscriptionOptions;return{buildInitiateQuery:function(e,r){var o=function(u,l){var c=void 0===l?{}:l,d=c.subscribe,h=void 0===d||d,m=c.forceRefetch,v=c.subscriptionOptions,y=c[At];return function(l,c){var d,g,b=t({queryArgs:u,endpointDefinition:r,endpointName:e}),w=n(((d={type:"query",subscribe:h,forceRefetch:m,subscriptionOptions:v,endpointName:e,originalArgs:u,queryCacheKey:b})[At]=y,d)),S=a.endpoints[e].select(u),k=l(w),E=S(c());p(l);var x=k.requestId,C=k.abort,_=E.requestId!==x,T=null==(g=i.get(l))?void 0:g[b],R=function(){return S(c())},P=Object.assign(y?k.then(R):_&&!T?Promise.resolve(E):Promise.all([T,k]).then(R),{arg:u,requestId:x,subscriptionOptions:v,queryCacheKey:b,abort:C,unwrap:function(){return mt(this,null,(function(){var e;return rt(this,(function(t){switch(t.label){case 0:return[4,P];case 1:if((e=t.sent()).isError)throw e.error;return[2,e.data]}}))}))},refetch:function(){return l(o(u,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){h&&l(s({queryCacheKey:b,requestId:x}))},updateSubscriptionOptions:function(t){P.subscriptionOptions=t,l(f({endpointName:e,requestId:x,queryCacheKey:b,options:t}))}});if(!T&&!_&&!y){var O=i.get(l)||{};O[b]=P,i.set(l,O),P.then((function(){delete O[b],Object.keys(O).length||i.delete(l)}))}return P}};return o},buildInitiateMutation:function(e){return function(t,n){var a=void 0===n?{}:n,o=a.track,i=void 0===o||o,l=a.fixedCacheKey;return function(n,a){var o=r({type:"mutation",endpointName:e,originalArgs:t,track:i,fixedCacheKey:l}),s=n(o);p(n);var f=s.requestId,d=s.abort,h=s.unwrap,m=s.unwrap().then((function(e){return{data:e}})).catch((function(e){return{error:e}})),v=function(){n(c({requestId:f,fixedCacheKey:l}))},y=Object.assign(m,{arg:s.arg,requestId:f,abort:d,unwrap:h,unsubscribe:v,reset:v}),g=u.get(n)||{};return u.set(n,g),g[f]=y,y.then((function(){delete g[f],Object.keys(g).length||u.delete(n)})),l&&(g[l]=y,y.then((function(){g[l]===y&&(delete g[l],Object.keys(g).length||u.delete(n))}))),y}}},getRunningQueryThunk:function(e,n){return function(r){var a,u=o.endpointDefinitions[e],l=t({queryArgs:n,endpointDefinition:u,endpointName:e});return null==(a=i.get(r))?void 0:a[l]}},getRunningMutationThunk:function(e,t){return function(e){var n;return null==(n=u.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return function(e){return Object.values(i.get(e)||{}).filter(Mt)}},getRunningMutationsThunk:function(){return function(e){return Object.values(u.get(e)||{}).filter(Mt)}},getRunningOperationPromises:function(){if("undefined"==typeof process||"development"!==process.env.NODE_ENV){var e=function(e){return Array.from(e.values()).flatMap((function(e){return e?Object.values(e):[]}))};return at(at([],e(i)),e(u)).filter(Mt)}d()},removalWarning:d};function d(){throw new Error("This method had to be removed due to a conceptual bug in RTK.\n Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.\n See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.")}function p(e){if("production"!==process.env.NODE_ENV){if(p.triggered)return;var t=e(a.internalActions.internal_probeSubscription({queryCacheKey:"DOES_NOT_EXIST",requestId:"DUMMY_REQUEST_ID"}));if(p.triggered=!0,"boolean"!=typeof t)throw new Error('Warning: Middleware for RTK-Query API at reducerPath "'+a.reducerPath+'" has not been added to the store.\nYou must add the middleware for RTK-Query to function correctly!')}}}({queryThunk:E,mutationThunk:x,api:e,serializeQueryArgs:m,context:s}),V=U.buildInitiateQuery,B=U.buildInitiateMutation,$=U.getRunningMutationThunk,H=U.getRunningMutationsThunk,Q=U.getRunningQueriesThunk,K=U.getRunningQueryThunk,Y=U.getRunningOperationPromises,G=U.removalWarning;return dn(e.util,{getRunningOperationPromises:Y,getRunningOperationPromise:G,getRunningMutationThunk:$,getRunningMutationsThunk:H,getRunningQueryThunk:K,getRunningQueriesThunk:Q}),{name:hn,injectEndpoint:function(t,n){var r,a=e;null!=(r=a.endpoints)[t]||(r[t]={}),It(n)?dn(a.endpoints[t],{name:t,select:A(t,n),initiate:V(t,n)},P(E,t)):function(e){return e.type===_t.mutation}(n)&&dn(a.endpoints[t],{name:t,select:j(),initiate:B(t)},P(x,t))}}}},(na=(ta=void 0===ea?{}:ea).batch,ra=void 0===na?tr.unstable_batchedUpdates:na,aa=ta.useDispatch,oa=void 0===aa?Dr:aa,ia=ta.useSelector,ua=void 0===ia?fr:ia,la=ta.useStore,sa=void 0===la?Or:la,ca=ta.unstable__sideEffectsInRender,fa=void 0!==ca&&ca,{name:pa,init:function(e,t,n){var r=t.serializeQueryArgs,a=e,o=function(e){var t=e.api,n=e.moduleOptions,r=n.batch,a=n.useDispatch,o=n.useSelector,i=n.useStore,u=n.unstable__sideEffectsInRender,l=e.serializeQueryArgs,s=e.context,c=u?function(e){return e()}:xn.useEffect;return{buildQueryHooks:function(e){var n=function(n,r){var o=void 0===r?{}:r,i=o.refetchOnReconnect,u=o.refetchOnFocus,l=o.refetchOnMountOrArgChange,f=o.skip,d=void 0!==f&&f,p=o.pollingInterval,h=void 0===p?0:p,m=t.endpoints[e].initiate,v=a(),y=Wr(d?Ht:n,Kr,s.endpointDefinitions[e],e),g=$r({refetchOnReconnect:i,refetchOnFocus:u,pollingInterval:h}),b=xn.useRef(!1),w=xn.useRef(),S=w.current||{},k=S.queryCacheKey,E=S.requestId,x=!1;if(k&&E){var C=v(t.internalActions.internal_probeSubscription({queryCacheKey:k,requestId:E}));if("production"!==process.env.NODE_ENV&&"boolean"!=typeof C)throw new Error('Warning: Middleware for RTK-Query API at reducerPath "'+t.reducerPath+'" has not been added to the store.\n You must add the middleware for RTK-Query to function correctly!');x=!!C}var _=!x&&b.current;return c((function(){b.current=x})),c((function(){_&&(w.current=void 0)}),[_]),c((function(){var e,t=w.current;if("undefined"!=typeof process&&"removeMeOnCompilation"===process.env.NODE_ENV&&console.log(_),y===Ht)return null==t||t.unsubscribe(),void(w.current=void 0);var n=null==(e=w.current)?void 0:e.subscriptionOptions;if(t&&t.arg===y)g!==n&&t.updateSubscriptionOptions(g);else{null==t||t.unsubscribe();var r=v(m(y,{subscriptionOptions:g,forceRefetch:l}));w.current=r}}),[v,m,l,y,g,_]),xn.useEffect((function(){return function(){var e;null==(e=w.current)||e.unsubscribe(),w.current=void 0}}),[]),xn.useMemo((function(){return{refetch:function(){var e;if(!w.current)throw new Error("Cannot refetch a query that has not been started yet.");return null==(e=w.current)?void 0:e.refetch()}}}),[])},u=function(n){var o=void 0===n?{}:n,i=o.refetchOnReconnect,u=o.refetchOnFocus,l=o.pollingInterval,s=void 0===l?0:l,f=t.endpoints[e].initiate,d=a(),p=xn.useState(Br),h=p[0],m=p[1],v=xn.useRef(),y=$r({refetchOnReconnect:i,refetchOnFocus:u,pollingInterval:s});c((function(){var e,t,n=null==(e=v.current)?void 0:e.subscriptionOptions;y!==n&&(null==(t=v.current)||t.updateSubscriptionOptions(y))}),[y]);var g=xn.useRef(y);c((function(){g.current=y}),[y]);var b=xn.useCallback((function(e,t){var n;return void 0===t&&(t=!1),r((function(){var r;null==(r=v.current)||r.unsubscribe(),v.current=n=d(f(e,{subscriptionOptions:g.current,forceRefetch:!t})),m(e)})),n}),[d,f]);return xn.useEffect((function(){return function(){var e;null==(e=null==v?void 0:v.current)||e.unsubscribe()}}),[]),xn.useEffect((function(){h===Br||v.current||b(h,!0)}),[h,b]),xn.useMemo((function(){return[b,h]}),[b,h])},d=function(n,r){var a=void 0===r?{}:r,u=a.skip,c=void 0!==u&&u,d=a.selectFromResult,p=t.endpoints[e].select,h=Wr(c?Ht:n,l,s.endpointDefinitions[e],e),m=xn.useRef(),v=xn.useMemo((function(){return me([p(h),function(e,t){return t},function(e){return h}],f)}),[p,h]),y=xn.useMemo((function(){return d?me([v],d):v}),[v,d]),g=o((function(e){return y(e,m.current)}),Rr),b=i(),w=v(b.getState(),m.current);return Yr((function(){m.current=w}),[w]),g};return{useQueryState:d,useQuerySubscription:n,useLazyQuerySubscription:u,useLazyQuery:function(e){var t=u(e),n=t[0],r=t[1],a=d(r,qr(Vr({},e),{skip:r===Br})),o=xn.useMemo((function(){return{lastArg:r}}),[r]);return xn.useMemo((function(){return[n,a,o]}),[n,a,o])},useQuery:function(e,t){var r=n(e,t),a=d(e,Vr({selectFromResult:e===Ht||(null==t?void 0:t.skip)?void 0:Xr},t)),o=a.data,i=a.status,u=a.isLoading,l=a.isSuccess,s=a.isError,c=a.error;return xn.useDebugValue({data:o,status:i,isLoading:u,isSuccess:l,isError:s,error:c}),xn.useMemo((function(){return Vr(Vr({},a),r)}),[a,r])}}},buildMutationHook:function(e){return function(n){var i=void 0===n?{}:n,u=i.selectFromResult,l=void 0===u?Gr:u,s=i.fixedCacheKey,c=t.endpoints[e],f=c.select,d=c.initiate,p=a(),h=xn.useState(),m=h[0],v=h[1];xn.useEffect((function(){return function(){(null==m?void 0:m.arg.fixedCacheKey)||null==m||m.reset()}}),[m]);var y=xn.useCallback((function(e){var t=p(d(e,{fixedCacheKey:s}));return v(t),t}),[p,d,s]),g=(m||{}).requestId,b=xn.useMemo((function(){return me([f({fixedCacheKey:s,requestId:null==m?void 0:m.requestId})],l)}),[f,m,l,s]),w=o(b,Rr),S=null==s?null==m?void 0:m.arg.originalArgs:void 0,k=xn.useCallback((function(){r((function(){m&&v(void 0),s&&p(t.internalActions.removeMutationResult({requestId:g,fixedCacheKey:s}))}))}),[p,s,m,g]),E=w.endpointName,x=w.data,C=w.status,_=w.isLoading,T=w.isSuccess,R=w.isError,P=w.error;xn.useDebugValue({endpointName:E,data:x,status:C,isLoading:_,isSuccess:T,isError:R,error:P});var O=xn.useMemo((function(){return qr(Vr({},w),{originalArgs:S,reset:k})}),[w,S,k]);return xn.useMemo((function(){return[y,O]}),[y,O])}},usePrefetch:function(e,n){var r=a(),o=$r(n);return xn.useCallback((function(n,a){return r(t.util.prefetch(e,n,Vr(Vr({},o),a)))}),[e,r,o])}};function f(e,t,n){if((null==t?void 0:t.endpointName)&&e.isUninitialized){var r=t.endpointName,a=s.endpointDefinitions[r];l({queryArgs:t.originalArgs,endpointDefinition:a,endpointName:r})===l({queryArgs:n,endpointDefinition:a,endpointName:r})&&(t=void 0)}var o=e.isSuccess?e.data:null==t?void 0:t.data;void 0===o&&(o=e.data);var i=void 0!==o,u=e.isLoading,c=!i&&u,f=e.isSuccess||u&&i;return qr(Vr({},e),{data:o,currentData:e.data,isFetching:u,isLoading:c,isSuccess:f})}}({api:e,moduleOptions:{batch:ra,useDispatch:oa,useSelector:ua,useStore:sa,unstable__sideEffectsInRender:fa},serializeQueryArgs:r,context:n}),i=o.buildQueryHooks,u=o.buildMutationHook,l=o.usePrefetch;return Zr(a,{usePrefetch:l}),Zr(n,{batch:ra}),{injectEndpoint:function(t,n){if(function(e){return e.type===Hr.query}(n)){var r=i(t),o=r.useQuery,l=r.useLazyQuery,s=r.useLazyQuerySubscription,c=r.useQueryState,f=r.useQuerySubscription;Zr(a.endpoints[t],{useQuery:o,useLazyQuery:l,useLazyQuerySubscription:s,useQueryState:c,useQuerySubscription:f}),e["use"+Jr(t)+"Query"]=o,e["useLazy"+Jr(t)+"Query"]=l}else if(function(e){return e.type===Hr.mutation}(n)){var d=u(t);Zr(a.endpoints[t],{useMutation:d}),e["use"+Jr(t)+"Mutation"]=d}}}}})),ma={};var va=(da||(da=1,ma.reactLocalStorage={set:function(e,t){return localStorage[e]=t,localStorage[e]},get:function(e,t=void 0,n=!0){var r=localStorage[e]||t;if(!n&&!r)throw e+" not found in localStorage";return r},setObject:function(e,t){return localStorage[e]=JSON.stringify(t),localStorage[e]},getObject:function(e,t={},n=!0){value=this.get(e,JSON.stringify(t),n);try{return JSON.parse(value)}catch(e){if(!n)throw"Error in parsing value"}},clear:function(){return localStorage.clear()},remove:function(e){return localStorage.removeItem(e)}}),ma);function ya(){var e="test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}var ga={get:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return ya()?va.reactLocalStorage.get(e,t,n):void 0},set:function(e,t){ya()&&va.reactLocalStorage.set(e,t)},getObject:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return ya()?va.reactLocalStorage.getObject(e,t,n):void 0},setObject:function(e,t){if(ya())return va.reactLocalStorage.setObject(e,t)}};function ba(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return wa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wa(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw o}}}}function wa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Sa=void 0,ka=function(e){Sa=e},Ea=function(){return Sa||ga.get("timumApiHost","https://www.timum.de")},xa=function(){return Ea()+"/rest/1"},Ca=function(t,n,r){if(n.params)for(var a=0,o=Object.entries(n.params);a<o.length;a++){var i=e(o[a],2),u=i[0],l=i[1];if(Array.isArray(l)){var s,c=ba(l);try{for(c.s();!(s=c.n()).done;){var f=s.value;t=t.includes("?")?"".concat(t,"&").concat(u,"=").concat(f):"".concat(t,"?").concat(u,"=").concat(f)}}catch(e){c.e(e)}finally{c.f()}}else t=t.includes("?")?"".concat(t,"&").concat(u,"=").concat(l):"".concat(t,"?").concat(u,"=").concat(l)}return t=t.includes("?")?"".concat(t,"&X-DISABLE-COOKIES=true"):"".concat(t,"?X-DISABLE-COOKIES=true"),r?"".concat(Ea()).concat(t):"".concat(xa()).concat(t)},_a=ha({reducerPath:"timumApi",baseQuery:function(e){var t=this;void 0===e&&(e={});var n=e,r=n.baseUrl,a=n.prepareHeaders,o=void 0===a?function(e){return e}:a,i=n.fetchFn,u=void 0===i?kt:i,l=n.paramsSerializer,s=n.isJsonContentType,c=void 0===s?xt:s,f=n.jsonContentType,d=void 0===f?"application/json":f,p=n.jsonReplacer,h=n.timeout,m=n.responseHandler,v=n.validateStatus,y=ht(n,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","jsonReplacer","timeout","responseHandler","validateStatus"]);return"undefined"==typeof fetch&&u===kt&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(e,n){return mt(t,null,(function(){var t,a,i,s,f,b,w,S,k,E,x,C,_,T,R,P,O,N,D,I,L,z,M,A,j,F,U,V,q,W,B,$,H,Q,K,Y;return rt(this,(function(G){switch(G.label){case 0:return t=n.signal,a=n.getState,i=n.extra,s=n.endpoint,f=n.forced,b=n.type,k=(S="string"==typeof e?{url:e}:e).url,E=S.headers,x=void 0===E?new Headers(y.headers):E,C=S.params,_=void 0===C?void 0:C,T=S.responseHandler,R=void 0===T?null!=m?m:"json":T,P=S.validateStatus,O=void 0===P?null!=v?v:Et:P,N=S.timeout,D=void 0===N?h:N,I=ht(S,["url","headers","params","responseHandler","validateStatus","timeout"]),L=dt(pt(dt({},y),{signal:t}),I),x=new Headers(Ct(x)),z=L,[4,o(x,{getState:a,extra:i,endpoint:s,forced:f,type:b})];case 1:z.headers=G.sent()||x,M=function(e){return"object"==typeof e&&(Re(e)||Array.isArray(e)||"function"==typeof e.toJSON)},!L.headers.has("content-type")&&M(L.body)&&L.headers.set("content-type",d),M(L.body)&&c(L.headers)&&(L.body=JSON.stringify(L.body,p)),_&&(A=~k.indexOf("?")?"&":"?",j=l?l(_):new URLSearchParams(Ct(_)),k+=A+j),k=gt(r,k),F=new Request(k,L),U=new Request(k,L),w={request:U},q=!1,W=D&&setTimeout((function(){q=!0,n.abort()}),D),G.label=2;case 2:return G.trys.push([2,4,5,6]),[4,u(F)];case 3:return V=G.sent(),[3,6];case 4:return B=G.sent(),[2,{error:{status:q?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(B)},meta:w}];case 5:return W&&clearTimeout(W),[7];case 6:$=V.clone(),w.response=$,Q="",G.label=7;case 7:return G.trys.push([7,9,,10]),[4,Promise.all([g(V,R).then((function(e){return H=e}),(function(e){return K=e})),$.text().then((function(e){return Q=e}),(function(){}))])];case 8:if(G.sent(),K)throw K;return[3,10];case 9:return Y=G.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:V.status,data:Q,error:String(Y)},meta:w}];case 10:return[2,O(V,H)?{data:H,meta:w}:{error:{status:V.status,data:H},meta:w}]}}))}))};function g(e,t){return mt(this,null,(function(){var n;return rt(this,(function(r){switch(r.label){case 0:return"function"==typeof t?[2,t(e)]:("content-type"===t&&(t=c(e.headers)?"json":"text"),"json"!==t?[3,2]:[4,e.text()]);case 1:return[2,(n=r.sent()).length?JSON.parse(n):null];case 2:return[2,e.text()]}}))}))}}({baseUrl:void 0,credentials:"include"}),tagTypes:["Timeslot","Product","Account","Provider","User","IdentifiedCustomer"],endpoints:function(e){return{upcomingBookables:e.query({query:function(e){return{url:Ca("/resources/".concat(e.channelOrResourceId,"/upcoming_bookables"),e),method:"post",headers:e.headers}},providesTags:function(){return["Timeslot"]}}),specificBookables:e.query({query:function(e){return{url:Ca("/bookables/specific_bookables",e),headers:e.headers,method:"post",body:e.body}},providesTags:function(){return["Timeslot"]}}),activeProducts:e.query({query:function(e){return{url:Ca("/products/active_products",e),headers:e.headers,method:"post",body:e.body}},providesTags:function(){return["Product"]}}),specificProducts:e.query({query:function(e){return{url:Ca("/products/specific_products",e),headers:e.headers,method:"post",body:e.body}},providesTags:function(){return["Product"]}}),createAppointmentWithConsumer:e.mutation({query:function(e){return{url:Ca("/resources/".concat(e.channelOrResourceId,"/create_appointment_with_consumer"),e),method:"post",body:e.body,headers:e.headers}},invalidatesTags:function(e,t,n){var r=[{type:"Timeslot"}];return n.shouldInvalidateCustomerIdentification&&r.push({type:"IdentifiedCustomer"}),r}}),removeCustomerFromAppointment:e.mutation({query:function(e){return{url:Ca("/customers/".concat(e.customersId,"/appointments/").concat(e.appointmentId),e),method:"delete",headers:e.headers}},invalidatesTags:function(){return[{type:"Timeslot"}]}}),authenticate:e.query({query:function(e){return{url:Ca("/auth/cookieless/login",e,!0),headers:e.headers,method:"post",body:e.body}}}),publicData:e.query({query:function(e){return{url:Ca("/resources/".concat(e.channelOrResourceId,"/public_data"),e),headers:e.headers}}}),identifyCustomer:e.query({query:function(e){return{url:Ca("/crms/".concat(e.crmSlug,"/resources/").concat(e.channelOrResourceId,"/customers/").concat(e.personId,"/identify"),e),headers:e.headers}},providesTags:"IdentifiedCustomer",keepUnusedDataFor:9999999}),reserveAppoinment:e.mutation({query:function(e){return{url:Ca("/resources/".concat(e.channelOrResourceId,"/reserve_appointment"),e),method:"post",body:e.body,headers:e.headers}}}),revokeAppointmentReservation:e.mutation({query:function(e){return{url:Ca("/resources/".concat(e.channelOrResourceId,"/revoke_reservation"),e),method:"post",body:e.body,headers:e.headers}}}),getAccount:e.query({query:function(e){return{url:Ca("/crms/".concat(e.platform,"/account/").concat(e.accountReference),e)}},providesTags:function(){return["Account"]}}),createAccount:e.mutation({query:function(e){return{url:Ca("/crms/".concat(e.platform,"/account"),e),method:"post",body:JSON.stringify(e.accountData)}},invalidatesTags:function(){return[{type:"Account"}]}}),getProviders:e.query({query:function(e){return{url:Ca("/crms/".concat(e.platform,"/account/").concat(e.accountReference,"/providers"),e)}},providesTags:function(){return["Product"]}}),getProvider:e.query({query:function(e){return{url:Ca("/crms/".concat(e.platform,"/provider/").concat(e.providerReference),e)}}}),createProvider:e.mutation({query:function(e){return{url:Ca("/crms/".concat(e.platform,"/provider"),e),method:"post",body:JSON.stringify({user:null!==(t=e.userData)&&void 0!==t?t:{},provider:null!==(n=e.providerData)&&void 0!==n?n:{},address:null!==(r=e.addressData)&&void 0!==r?r:null,account:null!==(a=e.account)&&void 0!==a?a:null,sendEmail:null!==(o=e.sendEmail)&&void 0!==o&&o})};var t,n,r,a,o},invalidatesTags:function(){return[{type:"Provider"}]}}),getUser:e.query({query:function(e){return{url:Ca("/crms/".concat(e.platform,"/user/").concat(e.userReference),e)}}}),createUser:e.mutation({query:function(e){return{url:Ca("/crms/".concat(e.platform,"/user"),e),method:"post",body:JSON.stringify(e.userData)}},invalidatesTags:function(){return[{type:"User"}]}})}}}),Ta=_a.useUpcomingBookablesQuery,Ra=_a.useLazyUpcomingBookablesQuery,Pa=_a.useSpecificBookablesQuery,Oa=_a.useLazySpecificBookablesQuery,Na=_a.useActiveProductsQuery,Da=_a.useLazyActiveProductsQuery,Ia=_a.useSpecificProductsQuery,La=_a.useLazySpecificProductsQuery,za=_a.useCreateAppointmentWithConsumerMutation,Ma=_a.useIdentifyCustomerQuery,Aa=_a.useLazyIdentifyCustomerQuery,ja=_a.usePublicDataQuery,Fa=_a.useLazyPublicDataQuery,Ua=_a.useReserveAppoinmentMutation,Va=_a.useRevokeAppointmentReservationMutation,qa=_a.useRemoveCustomerFromAppointmentMutation,Wa=_a.useAuthenticateQuery,Ba=_a.useLazyAuthenticateQuery,$a=_a.useCreateAccountMutation,Ha=_a.useGetAccountQuery,Qa=_a.useLazyGetAccountQuery,Ka=_a.useGetProvidersQuery,Ya=_a.useLazyGetProvidersQuery,Ga=_a.useCreateProviderMutation,Xa=_a.useCreateUserMutation,Ja=_a.useGetUserQuery,Za=_a.useLazyGetUserQuery;export{Ca as constructUrl,xa as getBaseUrl,Ea as getTimumApiHost,ka as setTimumApiHost,_a as timumApiSlice,Na as useActiveProductsQuery,Wa as useAuthenticateQuery,$a as useCreateAccountMutation,za as useCreateAppointmentWithConsumerMutation,Ga as useCreateProviderMutation,Xa as useCreateUserMutation,Ha as useGetAccountQuery,Ka as useGetProvidersQuery,Ja as useGetUserQuery,Ma as useIdentifyCustomerQuery,Da as useLazyActiveProductsQuery,Ba as useLazyAuthenticateQuery,Qa as useLazyGetAccountQuery,Ya as useLazyGetProvidersQuery,Za as useLazyGetUserQuery,Aa as useLazyIdentifyCustomerQuery,Fa as useLazyPublicDataQuery,Oa as useLazySpecificBookablesQuery,La as useLazySpecificProductsQuery,Ra as useLazyUpcomingBookablesQuery,ja as usePublicDataQuery,qa as useRemoveCustomerFromAppointmentMutation,Ua as useReserveAppoinmentMutation,Va as useRevokeAppointmentReservationMutation,Pa as useSpecificBookablesQuery,Ia as useSpecificProductsQuery,Ta as useUpcomingBookablesQuery};
86
86
  //# sourceMappingURL=main.js.map
package/package.json CHANGED
@@ -1,60 +1,66 @@
1
- {
2
- "name": "@timum/timum_pdk",
3
- "version": "2.2.0",
4
- "next_version": "2.2.0",
5
- "current_major_version": "2",
6
- "license": "MIT",
7
- "description": "Contains timum public and general api endpoints",
8
- "homepage": "https://www.timum.de",
9
- "main": "dist/main.js",
10
- "module": "src/index.js",
11
- "dependencies": {
12
- "@reduxjs/toolkit": "^1.8.0",
13
- "np": "^7.6.2",
14
- "react": "^18.2.0",
15
- "react-dom": "^18.2.0",
16
- "react-redux": "^8.0.2",
17
- "reactjs-localstorage": "^1.0.1"
18
- },
19
- "scripts": {
20
- "lint": "eslint .",
21
- "lint:fix": "eslint --fix .",
22
- "s3:deleteCurrentVersionStage": "aws s3 rm \"s3://staging-cdn.timum/timum_pdk/%npm_package_current_major_version%/%npm_package_next_version%\" --recursive",
23
- "s3:deleteLatestStage": "aws s3 rm \"s3://staging-cdn.timum/timum_pdk/%npm_package_current_major_version%/\" --exclude \"*\" --include \"*.*\" --exclude \"*/*\" --recursive",
24
- "s3:publishToStage": "yarn buildProd && yarn s3:deleteCurrentVersionStage && aws s3 sync ./dist/ \"s3://staging-cdn.timum/timum_pdk/%npm_package_current_major_version%/%npm_package_next_version%/\" && yarn s3:deleteLatestStage && aws s3 sync ./dist/ \"s3://staging-cdn.timum/timum_pdk/%npm_package_current_major_version%/\"",
25
- "s3:deleteLatestProd": "aws s3 rm \"s3://cdn.timum/timum_pdk/%npm_package_current_major_version%\" --exclude \"*\" --include \"*.*\" --exclude \"*/*\" --recursive",
26
- "s3:publishToProd": "yarn buildProd && np --no-yarn --no-cleanup && aws s3 sync ./dist/ \"s3://cdn.timum/timum_pdk/%npm_package_current_major_version%/%npm_package_version%/\" && yarn s3:deleteLatestProd && aws s3 sync ./dist/ \"s3://cdn.timum/timum_pdk/%npm_package_current_major_version%/\"",
27
- "build": "rollup --config && moveBundle.bat",
28
- "buildProd": "rollup --config",
29
- "test": "echo \"No tests yet\""
30
- },
31
- "browserslist": {
32
- "production": [
33
- ">0.2%",
34
- "not dead",
35
- "not op_mini all"
36
- ],
37
- "development": [
38
- "last 1 chrome version",
39
- "last 1 firefox version",
40
- "last 1 safari version"
41
- ]
42
- },
43
- "devDependencies": {
44
- "eslint": "^8.17.0",
45
- "eslint-config-prettier": "^8.5.0",
46
- "eslint-plugin-prettier": "^4.0.0",
47
- "eslint-plugin-react": "^7.30.0",
48
- "eslint-plugin-storybook": "^0.5.12",
49
- "@babel/core": "^7.20.5",
50
- "@babel/plugin-transform-runtime": "^7.19.6",
51
- "@babel/preset-env": "^7.20.2",
52
- "@reduxjs/toolkit": "^1.9.1",
53
- "@rollup/plugin-babel": "^6.0.3",
54
- "@rollup/plugin-commonjs": "^24.0.0",
55
- "@rollup/plugin-node-resolve": "^15.0.1",
56
- "@rollup/plugin-terser": "^0.4.0",
57
- "rollup": "^3.7.5",
58
- "rollup-plugin-peer-deps-external": "^2.2.4"
59
- }
60
- }
1
+ {
2
+ "name": "@timum/timum_pdk",
3
+ "version": "3.0.0",
4
+ "next_version": "3.0.0",
5
+ "current_major_version": "3",
6
+ "license": "MIT",
7
+ "description": "Contains timum public and general api endpoints",
8
+ "homepage": "https://www.timum.de",
9
+ "main": "dist/main.js",
10
+ "module": "src/index.js",
11
+ "packageManager": "yarn@4.2.2",
12
+ "dependencies": {
13
+ "@reduxjs/toolkit": "^1.8.0",
14
+ "np": "^7.6.2",
15
+ "react": "^18.2.0",
16
+ "react-dom": "^18.2.0",
17
+ "react-redux": "^8.0.2",
18
+ "reactjs-localstorage": "^1.0.1"
19
+ },
20
+ "scripts": {
21
+ "lint": "eslint .",
22
+ "lint:fix": "eslint --fix .",
23
+ "s3:deleteCurrentVersionStage": "aws s3 rm \"s3://cdn.timum/timum_pdk/${npm_package_current_major_version}/${npm_package_next_version}-rc\" --recursive",
24
+ "s3:deleteLatestStage": "aws s3 rm \"s3://cdn.timum/timum_pdk/${npm_package_current_major_version}/latest-rc\" --exclude \"*\" --include \"*.*\" --exclude \"*/*\" --recursive",
25
+ "s3:publishToStage": "yarn buildProd && yarn s3:deleteCurrentVersionStage && aws s3 sync ./dist/ \"s3://cdn.timum/timum_pdk/${npm_package_current_major_version}/${npm_package_next_version}-rc/\" && yarn s3:deleteLatestStage && aws s3 sync ./dist/ \"s3://cdn.timum/timum_pdk/${npm_package_current_major_version}/latest-rc\"",
26
+ "s3:deleteLatestProd": "aws s3 rm \"s3://cdn.timum/timum_pdk/${npm_package_current_major_version}\" --exclude \"*\" --include \"*.*\" --exclude \"*/*\" --recursive",
27
+ "s3:publishToProd": "yarn buildProd && np --no-yarn --no-cleanup && aws s3 sync ./dist/ \"s3://cdn.timum/timum_pdk/${npm_package_current_major_version}/${npm_package_next_version}/\" && yarn s3:deleteLatestProd && aws s3 sync ./dist/ \"s3://cdn.timum/timum_pdk/${npm_package_current_major_version}/\"",
28
+ "s3:publishToProdWithoutBuild": "np --no-yarn --no-cleanup --no-publish && aws s3 sync ./build/ \"s3://cdn.timum/timum_pdk/${npm_package_current_major_version}/${npm_package_next_version}/\" && yarn s3:deleteLatestProd && aws s3 sync ./build/ \"s3://cdn.timum/timum_pdk/${npm_package_current_major_version}/\"",
29
+ "s3:publishToProdWithoutNP": "yarn buildProd && aws s3 sync ./build/ \"s3://cdn.timum/timum_pdk/${npm_package_current_major_version}/${npm_package_next_version}/\" && yarn s3:deleteLatestProd && aws s3 sync ./build/ \"s3://cdn.timum/timum_pdk/${npm_package_current_major_version}/\"",
30
+ "build": "rollup --config && moveBundle.bat",
31
+ "buildProd": "rollup --config",
32
+ "test": "echo \"No tests yet\""
33
+ },
34
+ "browserslist": {
35
+ "production": [
36
+ ">0.2%",
37
+ "not dead",
38
+ "not op_mini all"
39
+ ],
40
+ "development": [
41
+ "last 1 chrome version",
42
+ "last 1 firefox version",
43
+ "last 1 safari version"
44
+ ]
45
+ },
46
+ "devDependencies": {
47
+ "@babel/core": "^7.20.5",
48
+ "@babel/plugin-transform-runtime": "^7.19.6",
49
+ "@babel/preset-env": "^7.20.2",
50
+ "@reduxjs/toolkit": "^1.9.1",
51
+ "@rollup/plugin-babel": "^6.0.3",
52
+ "@rollup/plugin-commonjs": "^24.0.0",
53
+ "@rollup/plugin-node-resolve": "^15.0.1",
54
+ "@rollup/plugin-terser": "^0.4.0",
55
+ "eslint": "^8.52.0",
56
+ "eslint-config-prettier": "^8.5.0",
57
+ "eslint-plugin-prettier": "^5.0.0",
58
+ "eslint-plugin-react": "^7.30.0",
59
+ "eslint-plugin-storybook": "^0.5.12",
60
+ "prettier": "^3.3.1",
61
+ "prettier-eslint": "^16.3.0",
62
+ "prettier-eslint-cli": "^7.1.0",
63
+ "rollup": "^3.7.5",
64
+ "rollup-plugin-peer-deps-external": "^2.2.4"
65
+ }
66
+ }
package/rollup.config.js CHANGED
@@ -1,43 +1,43 @@
1
- //
2
- const resolve = require('@rollup/plugin-node-resolve');
3
-
4
- //converts commonjs modules to ES6 so that they can be included in a rollup bundle
5
- const commonjs = require('@rollup/plugin-commonjs');
6
-
7
- // minifies the resulting code to further reduce package size
8
- const terser = require('@rollup/plugin-terser');
9
-
10
- // makes it so that deps marked as peer deps in package.json aren't included in the resulting bundle.
11
- const peerDepsExternal = require('rollup-plugin-peer-deps-external');
12
-
13
- // transpiles the code so older browser can interpret this
14
- // if there is jsx in the repo this transforms it into plain javascript (at least if it's configured that way in your .babelrc)
15
- const babel = require('@rollup/plugin-babel');
16
-
17
- const packageJson = require('./package.json');
18
-
19
- module.exports = {
20
- input: 'src/index.js',
21
- external: [/@babel\/runtime/],
22
- output: [
23
- {
24
- file: packageJson.main,
25
- format: 'es',
26
- sourcemap: true,
27
- },
28
- ],
29
- plugins: [
30
- peerDepsExternal(),
31
- resolve(),
32
- babel({
33
- exclude: 'node_modules/**',
34
- babelHelpers: 'runtime',
35
- }),
36
- commonjs({
37
- strictRequires: true,
38
- }),
39
- terser({
40
- sourceMap: true, // doesn't work for some reason
41
- }),
42
- ],
43
- };
1
+ //
2
+ const resolve = require('@rollup/plugin-node-resolve');
3
+
4
+ //converts commonjs modules to ES6 so that they can be included in a rollup bundle
5
+ const commonjs = require('@rollup/plugin-commonjs');
6
+
7
+ // minifies the resulting code to further reduce package size
8
+ const terser = require('@rollup/plugin-terser');
9
+
10
+ // makes it so that deps marked as peer deps in package.json aren't included in the resulting bundle.
11
+ const peerDepsExternal = require('rollup-plugin-peer-deps-external');
12
+
13
+ // transpiles the code so older browser can interpret this
14
+ // if there is jsx in the repo this transforms it into plain javascript (at least if it's configured that way in your .babelrc)
15
+ const babel = require('@rollup/plugin-babel');
16
+
17
+ const packageJson = require('./package.json');
18
+
19
+ module.exports = {
20
+ input: 'src/index.js',
21
+ external: [/@babel\/runtime/],
22
+ output: [
23
+ {
24
+ file: packageJson.main,
25
+ format: 'es',
26
+ sourcemap: true,
27
+ },
28
+ ],
29
+ plugins: [
30
+ peerDepsExternal(),
31
+ resolve(),
32
+ babel({
33
+ exclude: 'node_modules/**',
34
+ babelHelpers: 'runtime',
35
+ }),
36
+ commonjs({
37
+ strictRequires: true,
38
+ }),
39
+ terser({
40
+ sourceMap: true, // doesn't work for some reason
41
+ }),
42
+ ],
43
+ };
package/src/index.js CHANGED
@@ -1 +1 @@
1
- export * from "./timumPdk";
1
+ export * from "./timumPdk";