@timum/booking 1.7.0 → 1.7.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/build/booking.js
CHANGED
|
@@ -9980,16 +9980,14 @@ const ile = (e) => {
|
|
|
9980
9980
|
`/resources/${t.channelOrResourceId}/upcoming_bookables`,
|
|
9981
9981
|
t
|
|
9982
9982
|
),
|
|
9983
|
+
method: "post",
|
|
9983
9984
|
headers: t.headers
|
|
9984
9985
|
}),
|
|
9985
9986
|
providesTags: () => ["Timeslot"]
|
|
9986
9987
|
}),
|
|
9987
9988
|
specificBookables: e.query({
|
|
9988
9989
|
query: (t) => ({
|
|
9989
|
-
url: Yn(
|
|
9990
|
-
"/bookables/specific_bookables",
|
|
9991
|
-
t
|
|
9992
|
-
),
|
|
9990
|
+
url: Yn("/bookables/specific_bookables", t),
|
|
9993
9991
|
headers: t.headers,
|
|
9994
9992
|
method: "post",
|
|
9995
9993
|
body: t.body
|
|
@@ -10008,10 +10006,7 @@ const ile = (e) => {
|
|
|
10008
10006
|
}),
|
|
10009
10007
|
specificProducts: e.query({
|
|
10010
10008
|
query: (t) => ({
|
|
10011
|
-
url: Yn(
|
|
10012
|
-
"/products/specific_products",
|
|
10013
|
-
t
|
|
10014
|
-
),
|
|
10009
|
+
url: Yn("/products/specific_products", t),
|
|
10015
10010
|
headers: t.headers,
|
|
10016
10011
|
method: "post",
|
|
10017
10012
|
body: t.body
|
package/build/booking.umd.cjs
CHANGED
|
@@ -70,7 +70,7 @@ Error generating stack: `+o.message+`
|
|
|
70
70
|
*
|
|
71
71
|
* This source code is licensed under the MIT license found in the
|
|
72
72
|
* LICENSE file in the root directory of this source tree.
|
|
73
|
-
*/var Uw=Symbol.for("react.element"),Hw=Symbol.for("react.portal"),M1=Symbol.for("react.fragment"),I1=Symbol.for("react.strict_mode"),N1=Symbol.for("react.profiler"),L1=Symbol.for("react.provider"),F1=Symbol.for("react.context"),Nee=Symbol.for("react.server_context"),j1=Symbol.for("react.forward_ref"),z1=Symbol.for("react.suspense"),B1=Symbol.for("react.suspense_list"),U1=Symbol.for("react.memo"),H1=Symbol.for("react.lazy"),Lee=Symbol.for("react.offscreen"),BR;BR=Symbol.for("react.module.reference");function Bi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Uw:switch(e=e.type,e){case M1:case N1:case I1:case z1:case B1:return e;default:switch(e=e&&e.$$typeof,e){case Nee:case F1:case j1:case H1:case U1:case L1:return e;default:return t}}case Hw:return t}}}It.ContextConsumer=F1,It.ContextProvider=L1,It.Element=Uw,It.ForwardRef=j1,It.Fragment=M1,It.Lazy=H1,It.Memo=U1,It.Portal=Hw,It.Profiler=N1,It.StrictMode=I1,It.Suspense=z1,It.SuspenseList=B1,It.isAsyncMode=function(){return!1},It.isConcurrentMode=function(){return!1},It.isContextConsumer=function(e){return Bi(e)===F1},It.isContextProvider=function(e){return Bi(e)===L1},It.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Uw},It.isForwardRef=function(e){return Bi(e)===j1},It.isFragment=function(e){return Bi(e)===M1},It.isLazy=function(e){return Bi(e)===H1},It.isMemo=function(e){return Bi(e)===U1},It.isPortal=function(e){return Bi(e)===Hw},It.isProfiler=function(e){return Bi(e)===N1},It.isStrictMode=function(e){return Bi(e)===I1},It.isSuspense=function(e){return Bi(e)===z1},It.isSuspenseList=function(e){return Bi(e)===B1},It.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===M1||e===N1||e===I1||e===z1||e===B1||e===Lee||typeof e=="object"&&e!==null&&(e.$$typeof===H1||e.$$typeof===U1||e.$$typeof===L1||e.$$typeof===F1||e.$$typeof===j1||e.$$typeof===BR||e.getModuleId!==void 0)},It.typeOf=Bi,zR.exports=It;var UR=zR.exports;function HR(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function V1(e,t){if(HR(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!HR(e[n[i]],t[n[i]]))return!1;return!0}function VR(e=mu){const t=e===mu?MR:Fw(e);return function(){const{store:r}=t();return r}}const WR=VR();function Fee(e=mu){const t=e===mu?WR:VR(e);return function(){return t().dispatch}}const jee=Fee();$ee(See.useSyncExternalStoreWithSelector);var zee=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},Bee=Object.defineProperty,Uee=Object.defineProperties,Hee=Object.getOwnPropertyDescriptors,qR=Object.getOwnPropertySymbols,Vee=Object.prototype.hasOwnProperty,Wee=Object.prototype.propertyIsEnumerable,GR=function(e,t,n){return t in e?Bee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Os=function(e,t){for(var n in t||(t={}))Vee.call(t,n)&&GR(e,n,t[n]);if(qR)for(var r=0,i=qR(t);r<i.length;r++){var n=i[r];Wee.call(t,n)&&GR(e,n,t[n])}return e},W1=function(e,t){return Uee(e,Hee(t))};function YR(e,t,n,r){var i=_.useMemo(function(){return{queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e}},[e,t,n,r]),o=_.useRef(i);return _.useEffect(function(){o.current.serialized!==i.serialized&&(o.current=i)},[i]),o.current.serialized===i.serialized?o.current.queryArgs:e}var Vw=Symbol();function Ww(e){var t=_.useRef(e);return _.useEffect(function(){V1(t.current,e)||(t.current=e)},[e]),V1(t.current,e)?t.current:e}var q1=WeakMap?new WeakMap:void 0,qee=function(e){var t=e.endpointName,n=e.queryArgs,r="",i=q1==null?void 0:q1.get(n);if(typeof i=="string")r=i;else{var o=JSON.stringify(n,function(s,a){return fu(a)?Object.keys(a).sort().reduce(function(l,u){return l[u]=a[u],l},{}):a});fu(n)&&(q1==null||q1.set(n,o)),r=o}return t+"("+r+")"},Gee=typeof window<"u"&&window.document&&window.document.createElement?_.useLayoutEffect:_.useEffect,Yee=function(e){return e},Kee=function(e){return e.isUninitialized?W1(Os({},e),{isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:on.pending}):e};function Zee(e){var t=e.api,n=e.moduleOptions,r=n.batch,i=n.useDispatch,o=n.useSelector,s=n.useStore,a=n.unstable__sideEffectsInRender,l=e.serializeQueryArgs,u=e.context,d=a?function(v){return v()}:_.useEffect;return{buildQueryHooks:h,buildMutationHook:g,usePrefetch:m};function f(v,w,y){if(w!=null&&w.endpointName&&v.isUninitialized){var x=w.endpointName,S=u.endpointDefinitions[x];l({queryArgs:w.originalArgs,endpointDefinition:S,endpointName:x})===l({queryArgs:y,endpointDefinition:S,endpointName:x})&&(w=void 0)}var C=v.isSuccess?v.data:w==null?void 0:w.data;C===void 0&&(C=v.data);var T=C!==void 0,k=v.isLoading,R=!T&&k,A=v.isSuccess||k&&T;return W1(Os({},v),{data:C,currentData:v.data,isFetching:k,isLoading:R,isSuccess:A})}function m(v,w){var y=i(),x=Ww(w);return _.useCallback(function(S,C){return y(t.util.prefetch(v,S,Os(Os({},x),C)))},[v,y,x])}function h(v){var w=function(S,C){var T=C===void 0?{}:C,k=T.refetchOnReconnect,R=T.refetchOnFocus,A=T.refetchOnMountOrArgChange,M=T.skip,D=M===void 0?!1:M,j=T.pollingInterval,F=j===void 0?0:j,B=t.endpoints[v].initiate,z=i(),P=YR(D?hu:S,qee,u.endpointDefinitions[v],v),U=Ww({refetchOnReconnect:k,refetchOnFocus:R,pollingInterval:F}),Y=_.useRef(!1),H=_.useRef(),X=H.current||{},Q=X.queryCacheKey,le=X.requestId,we=!1;if(Q&&le){var ve=z(t.internalActions.internal_probeSubscription({queryCacheKey:Q,requestId:le}));we=!!ve}var he=!we&&Y.current;return d(function(){Y.current=we}),d(function(){he&&(H.current=void 0)},[he]),d(function(){var ye,Ce=H.current;if(typeof process<"u",P===hu){Ce==null||Ce.unsubscribe(),H.current=void 0;return}var He=(ye=H.current)==null?void 0:ye.subscriptionOptions;if(!Ce||Ce.arg!==P){Ce==null||Ce.unsubscribe();var Me=z(B(P,{subscriptionOptions:U,forceRefetch:A}));H.current=Me}else U!==He&&Ce.updateSubscriptionOptions(U)},[z,B,A,P,U,he]),_.useEffect(function(){return function(){var ye;(ye=H.current)==null||ye.unsubscribe(),H.current=void 0}},[]),_.useMemo(function(){return{refetch:function(){var ye;if(!H.current)throw new Error("Cannot refetch a query that has not been started yet.");return(ye=H.current)==null?void 0:ye.refetch()}}},[])},y=function(S){var C=S===void 0?{}:S,T=C.refetchOnReconnect,k=C.refetchOnFocus,R=C.pollingInterval,A=R===void 0?0:R,M=t.endpoints[v].initiate,D=i(),j=_.useState(Vw),F=j[0],B=j[1],z=_.useRef(),P=Ww({refetchOnReconnect:T,refetchOnFocus:k,pollingInterval:A});d(function(){var H,X,Q=(H=z.current)==null?void 0:H.subscriptionOptions;P!==Q&&((X=z.current)==null||X.updateSubscriptionOptions(P))},[P]);var U=_.useRef(P);d(function(){U.current=P},[P]);var Y=_.useCallback(function(H,X){X===void 0&&(X=!1);var Q;return r(function(){var le;(le=z.current)==null||le.unsubscribe(),z.current=Q=D(M(H,{subscriptionOptions:U.current,forceRefetch:!X})),B(H)}),Q},[D,M]);return _.useEffect(function(){return function(){var H;(H=z==null?void 0:z.current)==null||H.unsubscribe()}},[]),_.useEffect(function(){F!==Vw&&!z.current&&Y(F,!0)},[F,Y]),_.useMemo(function(){return[Y,F]},[Y,F])},x=function(S,C){var T=C===void 0?{}:C,k=T.skip,R=k===void 0?!1:k,A=T.selectFromResult,M=t.endpoints[v].select,D=YR(R?hu:S,l,u.endpointDefinitions[v],v),j=_.useRef(),F=_.useMemo(function(){return ah([M(D),function(Y,H){return H},function(Y){return D}],f)},[M,D]),B=_.useMemo(function(){return A?ah([F],A):F},[F,A]),z=o(function(Y){return B(Y,j.current)},V1),P=s(),U=F(P.getState(),j.current);return Gee(function(){j.current=U},[U]),z};return{useQueryState:x,useQuerySubscription:w,useLazyQuerySubscription:y,useLazyQuery:function(S){var C=y(S),T=C[0],k=C[1],R=x(k,W1(Os({},S),{skip:k===Vw})),A=_.useMemo(function(){return{lastArg:k}},[k]);return _.useMemo(function(){return[T,R,A]},[T,R,A])},useQuery:function(S,C){var T=w(S,C),k=x(S,Os({selectFromResult:S===hu||C!=null&&C.skip?void 0:Kee},C)),R=k.data,A=k.status,M=k.isLoading,D=k.isSuccess,j=k.isError,F=k.error;return _.useDebugValue({data:R,status:A,isLoading:M,isSuccess:D,isError:j,error:F}),_.useMemo(function(){return Os(Os({},k),T)},[k,T])}}}function g(v){return function(w){var y=w===void 0?{}:w,x=y.selectFromResult,S=x===void 0?Yee:x,C=y.fixedCacheKey,T=t.endpoints[v],k=T.select,R=T.initiate,A=i(),M=_.useState(),D=M[0],j=M[1];_.useEffect(function(){return function(){D!=null&&D.arg.fixedCacheKey||D==null||D.reset()}},[D]);var F=_.useCallback(function(Ce){var He=A(R(Ce,{fixedCacheKey:C}));return j(He),He},[A,R,C]),B=(D||{}).requestId,z=_.useMemo(function(){return ah([k({fixedCacheKey:C,requestId:D==null?void 0:D.requestId})],S)},[k,D,S,C]),P=o(z,V1),U=C==null?D==null?void 0:D.arg.originalArgs:void 0,Y=_.useCallback(function(){r(function(){D&&j(void 0),C&&A(t.internalActions.removeMutationResult({requestId:B,fixedCacheKey:C}))})},[A,C,D,B]),H=P.endpointName,X=P.data,Q=P.status,le=P.isLoading,we=P.isSuccess,ve=P.isError,he=P.error;_.useDebugValue({endpointName:H,data:X,status:Q,isLoading:le,isSuccess:we,isError:ve,error:he});var ye=_.useMemo(function(){return W1(Os({},P),{originalArgs:U,reset:Y})},[P,U,Y]);return _.useMemo(function(){return[F,ye]},[F,ye])}}}var G1;(function(e){e.query="query",e.mutation="mutation"})(G1||(G1={}));function Qee(e){return e.type===G1.query}function Xee(e){return e.type===G1.mutation}function qw(e){return e.replace(e[0],e[0].toUpperCase())}function Y1(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Object.assign.apply(Object,zee([e],t))}var Jee=Symbol(),ete=function(e){var t=e===void 0?{}:e,n=t.batch,r=n===void 0?uu.unstable_batchedUpdates:n,i=t.useDispatch,o=i===void 0?jee:i,s=t.useSelector,a=s===void 0?Eee:s,l=t.useStore,u=l===void 0?WR:l,d=t.unstable__sideEffectsInRender,f=d===void 0?!1:d;return{name:Jee,init:function(m,h,g){var v=h.serializeQueryArgs,w=m,y=Zee({api:m,moduleOptions:{batch:r,useDispatch:o,useSelector:a,useStore:u,unstable__sideEffectsInRender:f},serializeQueryArgs:v,context:g}),x=y.buildQueryHooks,S=y.buildMutationHook,C=y.usePrefetch;return Y1(w,{usePrefetch:C}),Y1(g,{batch:r}),{injectEndpoint:function(T,k){if(Qee(k)){var R=x(T),A=R.useQuery,M=R.useLazyQuery,D=R.useLazyQuerySubscription,j=R.useQueryState,F=R.useQuerySubscription;Y1(w.endpoints[T],{useQuery:A,useLazyQuery:M,useLazyQuerySubscription:D,useQueryState:j,useQuerySubscription:F}),m["use"+qw(T)+"Query"]=A,m["useLazy"+qw(T)+"Query"]=M}else if(Xee(k)){var B=S(T);Y1(w.endpoints[T],{useMutation:B}),m["use"+qw(T)+"Mutation"]=B}}}}}},tte=VJ(ree(),ete()),K1={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{if(!n)throw"Error in parsing value"}},clear:function(){return localStorage.clear()},remove:function(e){return localStorage.removeItem(e)}};function nte(e,t=void 0,n=!0){if(Z1())return K1.get(e,t,n)}function rte(e,t){Z1()&&K1.set(e,t)}function ite(e,t={},n=!0){if(Z1())return K1.getObject(e,t,n)}function ote(e,t){if(Z1())return K1.setObject(e,t)}function Z1(){var e="test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch{return!1}}const ste={get:nte,set:rte,getObject:ite,setObject:ote};let Gw;const ate=e=>{Gw=e},KR=()=>Gw||ste.get("timumApiHost","https://www.timum.de"),lte=()=>KR()+"/rest/1",Gn=(e,t,n)=>{if(t.params)for(const[r,i]of Object.entries(t.params))if(Array.isArray(i))for(let o of i)e.includes("?")?e=`${e}&${r}=${o}`:e=`${e}?${r}=${o}`;else e.includes("?")?e=`${e}&${r}=${i}`:e=`${e}?${r}=${i}`;return e.includes("?")?e=`${e}&X-DISABLE-COOKIES=true`:e=`${e}?X-DISABLE-COOKIES=true`,n?`${KR()}${e}`:`${lte()}${e}`},Q1=tte({reducerPath:"timumApi",baseQuery:LJ({baseUrl:void 0,credentials:"include"}),tagTypes:["Timeslot","Product","Account","Provider","User","IdentifiedCustomer"],endpoints:e=>({upcomingBookables:e.query({query:t=>({url:Gn(`/resources/${t.channelOrResourceId}/upcoming_bookables`,t),headers:t.headers}),providesTags:()=>["Timeslot"]}),specificBookables:e.query({query:t=>({url:Gn("/bookables/specific_bookables",t),headers:t.headers,method:"post",body:t.body}),providesTags:()=>["Timeslot"]}),activeProducts:e.query({query:t=>({url:Gn(`/resources/${t.channelOrResourceId}/active_products`,t),headers:t.headers}),providesTags:()=>["Product"]}),specificProducts:e.query({query:t=>({url:Gn("/products/specific_products",t),headers:t.headers,method:"post",body:t.body}),providesTags:()=>["Product"]}),createAppointmentWithConsumer:e.mutation({query:t=>({url:Gn(`/resources/${t.channelOrResourceId}/create_appointment_with_consumer`,t),method:"post",body:t.body,headers:t.headers}),invalidatesTags:(t,n,r)=>{const i=[{type:"Timeslot"}];return r.shouldInvalidateCustomerIdentification&&i.push({type:"IdentifiedCustomer"}),i}}),removeCustomerFromAppointment:e.mutation({query:t=>({url:Gn(`/customers/${t.customersId}/appointments/${t.appointmentId}`,t),method:"delete",headers:t.headers}),invalidatesTags:()=>[{type:"Timeslot"}]}),authenticate:e.query({query:t=>({url:Gn("/auth/cookieless/login",t,!0),headers:t.headers,method:"post",body:t.body})}),publicData:e.query({query:t=>({url:Gn(`/resources/${t.channelOrResourceId}/public_data`,t),headers:t.headers})}),identifyCustomer:e.query({query:t=>({url:Gn(`/crms/${t.crmSlug}/resources/${t.channelOrResourceId}/customers/${t.personId}/identify`,t),headers:t.headers}),providesTags:"IdentifiedCustomer",keepUnusedDataFor:9999999}),reserveAppoinment:e.mutation({query:t=>({url:Gn(`/resources/${t.channelOrResourceId}/reserve_appointment`,t),method:"post",body:t.body,headers:t.headers})}),revokeAppointmentReservation:e.mutation({query:t=>({url:Gn(`/resources/${t.channelOrResourceId}/revoke_reservation`,t),method:"post",body:t.body,headers:t.headers})}),getAccount:e.query({query:t=>({url:Gn(`/crms/${t.platform}/account/${t.accountReference}`,t)}),providesTags:()=>["Account"]}),createAccount:e.mutation({query:t=>({url:Gn(`/crms/${t.platform}/account`,t),method:"post",body:JSON.stringify(t.accountData)}),invalidatesTags:()=>[{type:"Account"}]}),getProviders:e.query({query:t=>({url:Gn(`/crms/${t.platform}/account/${t.accountReference}/providers`,t)}),providesTags:()=>["Product"]}),getProvider:e.query({query:t=>({url:Gn(`/crms/${t.platform}/provider/${t.providerReference}`,t)})}),createProvider:e.mutation({query:t=>({url:Gn(`/crms/${t.platform}/provider`,t),method:"post",body:JSON.stringify((()=>({user:t.userData??{},provider:t.providerData??{},address:t.addressData??null,account:t.account??null,sendEmail:t.sendEmail??!1}))())}),invalidatesTags:()=>[{type:"Provider"}]}),getUser:e.query({query:t=>({url:Gn(`/crms/${t.platform}/user/${t.userReference}`,t)})}),createUser:e.mutation({query:t=>({url:Gn(`/crms/${t.platform}/user`,t),method:"post",body:JSON.stringify(t.userData)}),invalidatesTags:()=>[{type:"User"}]})})}),{useUpcomingBookablesQuery:PKe,useLazyUpcomingBookablesQuery:ute,useSpecificBookablesQuery:DKe,useLazySpecificBookablesQuery:cte,useActiveProductsQuery:MKe,useLazyActiveProductsQuery:dte,useSpecificProductsQuery:IKe,useLazySpecificProductsQuery:fte,useCreateAppointmentWithConsumerMutation:ZR,useIdentifyCustomerQuery:pte,useLazyIdentifyCustomerQuery:NKe,usePublicDataQuery:LKe,useLazyPublicDataQuery:hte,useReserveAppoinmentMutation:Yw,useRevokeAppointmentReservationMutation:mte,useRemoveCustomerFromAppointmentMutation:gte,useAuthenticateQuery:FKe,useLazyAuthenticateQuery:vte,useCreateAccountMutation:jKe,useGetAccountQuery:zKe,useLazyGetAccountQuery:BKe,useGetProvidersQuery:UKe,useLazyGetProvidersQuery:HKe,useCreateProviderMutation:VKe,useCreateUserMutation:WKe,useGetUserQuery:qKe,useLazyGetUserQuery:GKe}=Q1;function rr(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var yte=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")(),QR=yte,Kw=()=>Math.random().toString(36).substring(7).split("").join("."),bte={INIT:`@@redux/INIT${Kw()}`,REPLACE:`@@redux/REPLACE${Kw()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Kw()}`},X1=bte;function Zw(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function XR(e,t,n){if(typeof e!="function")throw new Error(rr(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(rr(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(rr(1));return n(XR)(e,t)}let r=e,i=t,o=new Map,s=o,a=0,l=!1;function u(){s===o&&(s=new Map,o.forEach((w,y)=>{s.set(y,w)}))}function d(){if(l)throw new Error(rr(3));return i}function f(w){if(typeof w!="function")throw new Error(rr(4));if(l)throw new Error(rr(5));let y=!0;u();const x=a++;return s.set(x,w),function(){if(y){if(l)throw new Error(rr(6));y=!1,u(),s.delete(x),o=null}}}function m(w){if(!Zw(w))throw new Error(rr(7));if(typeof w.type>"u")throw new Error(rr(8));if(typeof w.type!="string")throw new Error(rr(17));if(l)throw new Error(rr(9));try{l=!0,i=r(i,w)}finally{l=!1}return(o=s).forEach(x=>{x()}),w}function h(w){if(typeof w!="function")throw new Error(rr(10));r=w,m({type:X1.REPLACE})}function g(){const w=f;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(rr(11));function x(){const C=y;C.next&&C.next(d())}return x(),{unsubscribe:w(x)}},[QR](){return this}}}return m({type:X1.INIT}),{dispatch:m,subscribe:f,getState:d,replaceReducer:h,[QR]:g}}function xte(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:X1.INIT})>"u")throw new Error(rr(12));if(typeof n(void 0,{type:X1.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(rr(13))})}function wte(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const s=t[o];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;try{xte(n)}catch(o){i=o}return function(s={},a){if(i)throw i;let l=!1;const u={};for(let d=0;d<r.length;d++){const f=r[d],m=n[f],h=s[f],g=m(h,a);if(typeof g>"u")throw a&&a.type,new Error(rr(14));u[f]=g,l=l||g!==h}return l=l||r.length!==Object.keys(s).length,l?u:s}}function J1(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Ste(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(rr(15))};const s={getState:i.getState,dispatch:(l,...u)=>o(l,...u)},a=e.map(l=>l(s));return o=J1(...a)(i.dispatch),{...i,dispatch:o}}}function Cte(e){return Zw(e)&&"type"in e&&typeof e.type=="string"}var JR=Symbol.for("immer-nothing"),e_=Symbol.for("immer-draftable"),mi=Symbol.for("immer-state");function wo(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var fd=Object.getPrototypeOf;function el(e){return!!e&&!!e[mi]}function Ps(e){var t;return e?t_(e)||Array.isArray(e)||!!e[e_]||!!((t=e.constructor)!=null&&t[e_])||nv(e)||rv(e):!1}var $te=Object.prototype.constructor.toString();function t_(e){if(!e||typeof e!="object")return!1;const t=fd(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===$te}function ev(e,t){tv(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function tv(e){const t=e[mi];return t?t.type_:Array.isArray(e)?1:nv(e)?2:rv(e)?3:0}function Qw(e,t){return tv(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function n_(e,t,n){const r=tv(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Tte(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function nv(e){return e instanceof Map}function rv(e){return e instanceof Set}function gu(e){return e.copy_||e.base_}function Xw(e,t){if(nv(e))return new Map(e);if(rv(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=t_(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[mi];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const s=i[o],a=r[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(r[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[s]})}return Object.create(fd(e),r)}else{const r=fd(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function Jw(e,t=!1){return iv(e)||el(e)||!Ps(e)||(tv(e)>1&&(e.set=e.add=e.clear=e.delete=kte),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Jw(r,!0))),e}function kte(){wo(2)}function iv(e){return Object.isFrozen(e)}var Ete={};function vu(e){const t=Ete[e];return t||wo(0,e),t}var vh;function r_(){return vh}function Ate(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function i_(e,t){t&&(vu("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function e4(e){t4(e),e.drafts_.forEach(Rte),e.drafts_=null}function t4(e){e===vh&&(vh=e.parent_)}function o_(e){return vh=Ate(vh,e)}function Rte(e){const t=e[mi];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function s_(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[mi].modified_&&(e4(t),wo(4)),Ps(e)&&(e=ov(t,e),t.parent_||sv(t,e)),t.patches_&&vu("Patches").generateReplacementPatches_(n[mi].base_,e,t.patches_,t.inversePatches_)):e=ov(t,n,[]),e4(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==JR?e:void 0}function ov(e,t,n){if(iv(t))return t;const r=t[mi];if(!r)return ev(t,(i,o)=>a_(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return sv(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,s=!1;r.type_===3&&(o=new Set(i),i.clear(),s=!0),ev(o,(a,l)=>a_(e,r,i,a,l,n,s)),sv(e,i,!1),n&&e.patches_&&vu("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function a_(e,t,n,r,i,o,s){if(el(i)){const a=o&&t&&t.type_!==3&&!Qw(t.assigned_,r)?o.concat(r):void 0,l=ov(e,i,a);if(n_(n,r,l),el(l))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Ps(i)&&!iv(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ov(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&sv(e,i)}}function sv(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Jw(t,n)}function _te(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:r_(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=n4;n&&(i=[r],o=yh);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,a}var n4={get(e,t){if(t===mi)return e;const n=gu(e);if(!Qw(n,t))return Ote(e,n,t);const r=n[t];return e.finalized_||!Ps(r)?r:r===r4(e.base_,t)?(o4(e),e.copy_[t]=s4(r,e)):r},has(e,t){return t in gu(e)},ownKeys(e){return Reflect.ownKeys(gu(e))},set(e,t,n){const r=l_(gu(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=r4(gu(e),t),o=i==null?void 0:i[mi];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Tte(n,i)&&(n!==void 0||Qw(e.base_,t)))return!0;o4(e),i4(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return r4(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,o4(e),i4(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=gu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){wo(11)},getPrototypeOf(e){return fd(e.base_)},setPrototypeOf(){wo(12)}},yh={};ev(n4,(e,t)=>{yh[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),yh.deleteProperty=function(e,t){return yh.set.call(this,e,t,void 0)},yh.set=function(e,t,n){return n4.set.call(this,e[0],t,n,e[0])};function r4(e,t){const n=e[mi];return(n?gu(n):e)[t]}function Ote(e,t,n){var i;const r=l_(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function l_(e,t){if(!(t in e))return;let n=fd(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=fd(n)}}function i4(e){e.modified_||(e.modified_=!0,e.parent_&&i4(e.parent_))}function o4(e){e.copy_||(e.copy_=Xw(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Pte=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const s=this;return function(l=o,...u){return s.produce(l,d=>n.call(this,d,...u))}}typeof n!="function"&&wo(6),r!==void 0&&typeof r!="function"&&wo(7);let i;if(Ps(t)){const o=o_(this),s=s4(t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?e4(o):t4(o)}return i_(o,r),s_(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===JR&&(i=void 0),this.autoFreeze_&&Jw(i,!0),r){const o=[],s=[];vu("Patches").generateReplacementPatches_(t,i,o,s),r(o,s)}return i}else wo(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ps(e)||wo(8),el(e)&&(e=u_(e));const t=o_(this),n=s4(e,void 0);return n[mi].isManual_=!0,t4(t),n}finishDraft(e,t){const n=e&&e[mi];(!n||!n.isManual_)&&wo(9);const{scope_:r}=n;return i_(r,t),s_(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=vu("Patches").applyPatches_;return el(e)?r(e,t):this.produce(e,i=>r(i,t))}};function s4(e,t){const n=nv(e)?vu("MapSet").proxyMap_(e,t):rv(e)?vu("MapSet").proxySet_(e,t):_te(e,t);return(t?t.scope_:r_()).drafts_.push(n),n}function u_(e){return el(e)||wo(10,e),c_(e)}function c_(e){if(!Ps(e)||iv(e))return e;const t=e[mi];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Xw(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Xw(e,!0);return ev(n,(r,i)=>{n_(n,r,c_(i))}),t&&(t.finalized_=!1),n}var gi=new Pte,d_=gi.produce;gi.produceWithPatches.bind(gi),gi.setAutoFreeze.bind(gi),gi.setUseStrictShallowCopy.bind(gi),gi.applyPatches.bind(gi),gi.createDraft.bind(gi),gi.finishDraft.bind(gi);function Dte(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Mte(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Ite(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var f_=e=>Array.isArray(e)?e:[e];function Nte(e){const t=Array.isArray(e[0])?e[0]:e;return Ite(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Lte(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Fte=class{constructor(e){this.value=e}deref(){return this.value}},jte=typeof WeakRef<"u"?WeakRef:Fte,zte=0,p_=1;function av(){return{s:zte,v:void 0,o:null,p:null}}function a4(e,t={}){let n=av();const{resultEqualityCheck:r}=t;let i,o=0;function s(){var f;let a=n;const{length:l}=arguments;for(let m=0,h=l;m<h;m++){const g=arguments[m];if(typeof g=="function"||typeof g=="object"&&g!==null){let v=a.o;v===null&&(a.o=v=new WeakMap);const w=v.get(g);w===void 0?(a=av(),v.set(g,a)):a=w}else{let v=a.p;v===null&&(a.p=v=new Map);const w=v.get(g);w===void 0?(a=av(),v.set(g,a)):a=w}}const u=a;let d;if(a.s===p_)d=a.v;else if(d=e.apply(null,arguments),o++,r){const m=((f=i==null?void 0:i.deref)==null?void 0:f.call(i))??i;m!=null&&r(m,d)&&(d=m,o!==0&&o--),i=typeof d=="object"&&d!==null||typeof d=="function"?new jte(d):d}return u.s=p_,u.v=d,d}return s.clearCache=()=>{n=av(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function h_(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,s=0,a,l={},u=i.pop();typeof u=="object"&&(l=u,u=i.pop()),Dte(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const d={...n,...l},{memoize:f,memoizeOptions:m=[],argsMemoize:h=a4,argsMemoizeOptions:g=[],devModeChecks:v={}}=d,w=f_(m),y=f_(g),x=Nte(i),S=f(function(){return o++,u.apply(null,arguments)},...w),C=h(function(){s++;const k=Lte(x,arguments);return a=S.apply(null,k),a},...y);return Object.assign(C,{resultFunc:u,memoizedResultFunc:S,dependencies:x,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:f,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var m_=h_(a4),Bte=Object.assign((e,t=m_)=>{Mte(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((s,a,l)=>(s[n[l]]=a,s),{}))},{withTypes:()=>Bte});function g_(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var Ute=g_(),Hte=g_,Vte=(...e)=>{const t=h_(...e),n=Object.assign((...r)=>{const i=t(...r),o=(s,...a)=>i(el(s)?u_(s):s,...a);return Object.assign(o,i),o},{withTypes:()=>n});return n};Vte(a4);var Wte=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?J1:J1.apply(null,arguments)};function pd(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Kr(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Cte(r)&&r.type===e,n}var v_=class Vm extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Vm.prototype)}static get[Symbol.species](){return Vm}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Vm(...t[0].concat(this)):new Vm(...t.concat(this))}};function y_(e){return Ps(e)?d_(e,()=>{}):e}function b_(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(Kr(10));const r=n.insert(t,e);return e.set(t,r),r}function qte(e){return typeof e=="boolean"}var Gte=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new v_;return n&&(qte(n)?s.push(Ute):s.push(Hte(n.extraArgument))),s},Yte="RTK_autoBatch",x_=e=>t=>{setTimeout(t,e)},Kte=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:x_(10),Zte=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?Kte:e.type==="callback"?e.queueNotification:x_(e.timeout),u=()=>{s=!1,o&&(o=!1,a.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const f=()=>i&&d(),m=r.subscribe(f);return a.add(d),()=>{m(),a.delete(d)}},dispatch(d){var f;try{return i=!((f=d==null?void 0:d.meta)!=null&&f[Yte]),o=!i,o&&(s||(s=!0,l(u))),r.dispatch(d)}finally{i=!0}}})},Qte=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new v_(e);return r&&i.push(Zte(typeof r=="object"?r:void 0)),i},Xte=!0;function Jte(e){const t=Gte(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(Zw(n))a=wte(n);else throw new Error(Kr(1));let l;typeof r=="function"?l=r(t):l=t();let u=J1;i&&(u=Wte({trace:!Xte,...typeof i=="object"&&i}));const d=Ste(...l),f=Qte(d);let m=typeof s=="function"?s(f):f();const h=u(...m);return XR(a,o,h)}function w_(e){const t={},n=[];let r;const i={addCase(o,s){const a=typeof o=="string"?o:o.type;if(!a)throw new Error(Kr(28));if(a in t)throw new Error(Kr(29));return t[a]=s,i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function ene(e){return typeof e=="function"}function tne(e,t){let[n,r,i]=w_(t),o;if(ene(e))o=()=>y_(e());else{const a=y_(e);o=()=>a}function s(a=o(),l){let u=[n[l.type],...r.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[i]),u.reduce((d,f)=>{if(f)if(el(d)){const h=f(d,l);return h===void 0?d:h}else{if(Ps(d))return d_(d,m=>f(m,l));{const m=f(d,l);if(m===void 0){if(d===null)return d;throw new Error(Kr(9))}return m}}return d},a)}return s.getInitialState=o,s}var nne="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",rne=(e=21)=>{let t="",n=e;for(;n--;)t+=nne[Math.random()*64|0];return t},ine=Symbol.for("rtk-slice-createasyncthunk");function one(e,t){return`${e}/${t}`}function sne({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[ine];return function(i){const{name:o,reducerPath:s=o}=i;if(!o)throw new Error(Kr(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(une()):i.reducers)||{},l=Object.keys(a),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(S,C){const T=typeof S=="string"?S:S.type;if(!T)throw new Error(Kr(12));if(T in u.sliceCaseReducersByType)throw new Error(Kr(13));return u.sliceCaseReducersByType[T]=C,d},addMatcher(S,C){return u.sliceMatchers.push({matcher:S,reducer:C}),d},exposeAction(S,C){return u.actionCreators[S]=C,d},exposeCaseReducer(S,C){return u.sliceCaseReducersByName[S]=C,d}};l.forEach(S=>{const C=a[S],T={reducerName:S,type:one(o,S),createNotation:typeof i.reducers=="function"};dne(C)?pne(T,C,d,t):cne(T,C,d)});function f(){const[S={},C=[],T=void 0]=typeof i.extraReducers=="function"?w_(i.extraReducers):[i.extraReducers],k={...S,...u.sliceCaseReducersByType};return tne(i.initialState,R=>{for(let A in k)R.addCase(A,k[A]);for(let A of u.sliceMatchers)R.addMatcher(A.matcher,A.reducer);for(let A of C)R.addMatcher(A.matcher,A.reducer);T&&R.addDefaultCase(T)})}const m=S=>S,h=new Map;let g;function v(S,C){return g||(g=f()),g(S,C)}function w(){return g||(g=f()),g.getInitialState()}function y(S,C=!1){function T(R){let A=R[S];return typeof A>"u"&&C&&(A=w()),A}function k(R=m){const A=b_(h,C,{insert:()=>new WeakMap});return b_(A,R,{insert:()=>{const M={};for(const[D,j]of Object.entries(i.selectors??{}))M[D]=ane(j,R,w,C);return M}})}return{reducerPath:S,getSelectors:k,get selectors(){return k(T)},selectSlice:T}}const x={name:o,reducer:v,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:w,...y(s),injectInto(S,{reducerPath:C,...T}={}){const k=C??s;return S.inject({reducerPath:k,reducer:v},T),{...x,...y(k,!0)}}};return x}}function ane(e,t,n,r){function i(o,...s){let a=t(o);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return i.unwrapped=e,i}var lne=sne();function une(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function cne({type:e,reducerName:t,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!fne(r))throw new Error(Kr(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?pd(e,s):pd(e))}function dne(e){return e._reducerDefinitionType==="asyncThunk"}function fne(e){return e._reducerDefinitionType==="reducerWithPrepare"}function pne({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Kr(18));const{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:u,options:d}=n,f=i(e,o,d);r.exposeAction(t,f),s&&r.addCase(f.fulfilled,s),a&&r.addCase(f.pending,a),l&&r.addCase(f.rejected,l),u&&r.addMatcher(f.settled,u),r.exposeCaseReducer(t,{fulfilled:s||lv,pending:a||lv,rejected:l||lv,settled:u||lv})}function lv(){}var hne=(e,t)=>{if(typeof e!="function")throw new Error(Kr(32))},l4="listenerMiddleware",mne=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=pd(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(Kr(21));return hne(o),{predicate:i,type:t,effect:o}},gne=Object.assign(e=>{const{type:t,predicate:n,effect:r}=mne(e);return{id:rne(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Kr(22))}}},{withTypes:()=>gne}),vne=Object.assign(pd(`${l4}/add`),{withTypes:()=>vne});pd(`${l4}/removeAll`);var yne=Object.assign(pd(`${l4}/remove`),{withTypes:()=>yne});function Kr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var uv={exports:{}};/**
|
|
73
|
+
*/var Uw=Symbol.for("react.element"),Hw=Symbol.for("react.portal"),M1=Symbol.for("react.fragment"),I1=Symbol.for("react.strict_mode"),N1=Symbol.for("react.profiler"),L1=Symbol.for("react.provider"),F1=Symbol.for("react.context"),Nee=Symbol.for("react.server_context"),j1=Symbol.for("react.forward_ref"),z1=Symbol.for("react.suspense"),B1=Symbol.for("react.suspense_list"),U1=Symbol.for("react.memo"),H1=Symbol.for("react.lazy"),Lee=Symbol.for("react.offscreen"),BR;BR=Symbol.for("react.module.reference");function Bi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Uw:switch(e=e.type,e){case M1:case N1:case I1:case z1:case B1:return e;default:switch(e=e&&e.$$typeof,e){case Nee:case F1:case j1:case H1:case U1:case L1:return e;default:return t}}case Hw:return t}}}It.ContextConsumer=F1,It.ContextProvider=L1,It.Element=Uw,It.ForwardRef=j1,It.Fragment=M1,It.Lazy=H1,It.Memo=U1,It.Portal=Hw,It.Profiler=N1,It.StrictMode=I1,It.Suspense=z1,It.SuspenseList=B1,It.isAsyncMode=function(){return!1},It.isConcurrentMode=function(){return!1},It.isContextConsumer=function(e){return Bi(e)===F1},It.isContextProvider=function(e){return Bi(e)===L1},It.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Uw},It.isForwardRef=function(e){return Bi(e)===j1},It.isFragment=function(e){return Bi(e)===M1},It.isLazy=function(e){return Bi(e)===H1},It.isMemo=function(e){return Bi(e)===U1},It.isPortal=function(e){return Bi(e)===Hw},It.isProfiler=function(e){return Bi(e)===N1},It.isStrictMode=function(e){return Bi(e)===I1},It.isSuspense=function(e){return Bi(e)===z1},It.isSuspenseList=function(e){return Bi(e)===B1},It.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===M1||e===N1||e===I1||e===z1||e===B1||e===Lee||typeof e=="object"&&e!==null&&(e.$$typeof===H1||e.$$typeof===U1||e.$$typeof===L1||e.$$typeof===F1||e.$$typeof===j1||e.$$typeof===BR||e.getModuleId!==void 0)},It.typeOf=Bi,zR.exports=It;var UR=zR.exports;function HR(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function V1(e,t){if(HR(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!HR(e[n[i]],t[n[i]]))return!1;return!0}function VR(e=mu){const t=e===mu?MR:Fw(e);return function(){const{store:r}=t();return r}}const WR=VR();function Fee(e=mu){const t=e===mu?WR:VR(e);return function(){return t().dispatch}}const jee=Fee();$ee(See.useSyncExternalStoreWithSelector);var zee=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},Bee=Object.defineProperty,Uee=Object.defineProperties,Hee=Object.getOwnPropertyDescriptors,qR=Object.getOwnPropertySymbols,Vee=Object.prototype.hasOwnProperty,Wee=Object.prototype.propertyIsEnumerable,GR=function(e,t,n){return t in e?Bee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Os=function(e,t){for(var n in t||(t={}))Vee.call(t,n)&&GR(e,n,t[n]);if(qR)for(var r=0,i=qR(t);r<i.length;r++){var n=i[r];Wee.call(t,n)&&GR(e,n,t[n])}return e},W1=function(e,t){return Uee(e,Hee(t))};function YR(e,t,n,r){var i=_.useMemo(function(){return{queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e}},[e,t,n,r]),o=_.useRef(i);return _.useEffect(function(){o.current.serialized!==i.serialized&&(o.current=i)},[i]),o.current.serialized===i.serialized?o.current.queryArgs:e}var Vw=Symbol();function Ww(e){var t=_.useRef(e);return _.useEffect(function(){V1(t.current,e)||(t.current=e)},[e]),V1(t.current,e)?t.current:e}var q1=WeakMap?new WeakMap:void 0,qee=function(e){var t=e.endpointName,n=e.queryArgs,r="",i=q1==null?void 0:q1.get(n);if(typeof i=="string")r=i;else{var o=JSON.stringify(n,function(s,a){return fu(a)?Object.keys(a).sort().reduce(function(l,u){return l[u]=a[u],l},{}):a});fu(n)&&(q1==null||q1.set(n,o)),r=o}return t+"("+r+")"},Gee=typeof window<"u"&&window.document&&window.document.createElement?_.useLayoutEffect:_.useEffect,Yee=function(e){return e},Kee=function(e){return e.isUninitialized?W1(Os({},e),{isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:on.pending}):e};function Zee(e){var t=e.api,n=e.moduleOptions,r=n.batch,i=n.useDispatch,o=n.useSelector,s=n.useStore,a=n.unstable__sideEffectsInRender,l=e.serializeQueryArgs,u=e.context,d=a?function(v){return v()}:_.useEffect;return{buildQueryHooks:h,buildMutationHook:g,usePrefetch:m};function f(v,w,y){if(w!=null&&w.endpointName&&v.isUninitialized){var x=w.endpointName,S=u.endpointDefinitions[x];l({queryArgs:w.originalArgs,endpointDefinition:S,endpointName:x})===l({queryArgs:y,endpointDefinition:S,endpointName:x})&&(w=void 0)}var C=v.isSuccess?v.data:w==null?void 0:w.data;C===void 0&&(C=v.data);var T=C!==void 0,k=v.isLoading,R=!T&&k,A=v.isSuccess||k&&T;return W1(Os({},v),{data:C,currentData:v.data,isFetching:k,isLoading:R,isSuccess:A})}function m(v,w){var y=i(),x=Ww(w);return _.useCallback(function(S,C){return y(t.util.prefetch(v,S,Os(Os({},x),C)))},[v,y,x])}function h(v){var w=function(S,C){var T=C===void 0?{}:C,k=T.refetchOnReconnect,R=T.refetchOnFocus,A=T.refetchOnMountOrArgChange,M=T.skip,D=M===void 0?!1:M,j=T.pollingInterval,F=j===void 0?0:j,B=t.endpoints[v].initiate,z=i(),P=YR(D?hu:S,qee,u.endpointDefinitions[v],v),U=Ww({refetchOnReconnect:k,refetchOnFocus:R,pollingInterval:F}),Y=_.useRef(!1),H=_.useRef(),X=H.current||{},Q=X.queryCacheKey,le=X.requestId,we=!1;if(Q&&le){var ve=z(t.internalActions.internal_probeSubscription({queryCacheKey:Q,requestId:le}));we=!!ve}var he=!we&&Y.current;return d(function(){Y.current=we}),d(function(){he&&(H.current=void 0)},[he]),d(function(){var ye,Ce=H.current;if(typeof process<"u",P===hu){Ce==null||Ce.unsubscribe(),H.current=void 0;return}var He=(ye=H.current)==null?void 0:ye.subscriptionOptions;if(!Ce||Ce.arg!==P){Ce==null||Ce.unsubscribe();var Me=z(B(P,{subscriptionOptions:U,forceRefetch:A}));H.current=Me}else U!==He&&Ce.updateSubscriptionOptions(U)},[z,B,A,P,U,he]),_.useEffect(function(){return function(){var ye;(ye=H.current)==null||ye.unsubscribe(),H.current=void 0}},[]),_.useMemo(function(){return{refetch:function(){var ye;if(!H.current)throw new Error("Cannot refetch a query that has not been started yet.");return(ye=H.current)==null?void 0:ye.refetch()}}},[])},y=function(S){var C=S===void 0?{}:S,T=C.refetchOnReconnect,k=C.refetchOnFocus,R=C.pollingInterval,A=R===void 0?0:R,M=t.endpoints[v].initiate,D=i(),j=_.useState(Vw),F=j[0],B=j[1],z=_.useRef(),P=Ww({refetchOnReconnect:T,refetchOnFocus:k,pollingInterval:A});d(function(){var H,X,Q=(H=z.current)==null?void 0:H.subscriptionOptions;P!==Q&&((X=z.current)==null||X.updateSubscriptionOptions(P))},[P]);var U=_.useRef(P);d(function(){U.current=P},[P]);var Y=_.useCallback(function(H,X){X===void 0&&(X=!1);var Q;return r(function(){var le;(le=z.current)==null||le.unsubscribe(),z.current=Q=D(M(H,{subscriptionOptions:U.current,forceRefetch:!X})),B(H)}),Q},[D,M]);return _.useEffect(function(){return function(){var H;(H=z==null?void 0:z.current)==null||H.unsubscribe()}},[]),_.useEffect(function(){F!==Vw&&!z.current&&Y(F,!0)},[F,Y]),_.useMemo(function(){return[Y,F]},[Y,F])},x=function(S,C){var T=C===void 0?{}:C,k=T.skip,R=k===void 0?!1:k,A=T.selectFromResult,M=t.endpoints[v].select,D=YR(R?hu:S,l,u.endpointDefinitions[v],v),j=_.useRef(),F=_.useMemo(function(){return ah([M(D),function(Y,H){return H},function(Y){return D}],f)},[M,D]),B=_.useMemo(function(){return A?ah([F],A):F},[F,A]),z=o(function(Y){return B(Y,j.current)},V1),P=s(),U=F(P.getState(),j.current);return Gee(function(){j.current=U},[U]),z};return{useQueryState:x,useQuerySubscription:w,useLazyQuerySubscription:y,useLazyQuery:function(S){var C=y(S),T=C[0],k=C[1],R=x(k,W1(Os({},S),{skip:k===Vw})),A=_.useMemo(function(){return{lastArg:k}},[k]);return _.useMemo(function(){return[T,R,A]},[T,R,A])},useQuery:function(S,C){var T=w(S,C),k=x(S,Os({selectFromResult:S===hu||C!=null&&C.skip?void 0:Kee},C)),R=k.data,A=k.status,M=k.isLoading,D=k.isSuccess,j=k.isError,F=k.error;return _.useDebugValue({data:R,status:A,isLoading:M,isSuccess:D,isError:j,error:F}),_.useMemo(function(){return Os(Os({},k),T)},[k,T])}}}function g(v){return function(w){var y=w===void 0?{}:w,x=y.selectFromResult,S=x===void 0?Yee:x,C=y.fixedCacheKey,T=t.endpoints[v],k=T.select,R=T.initiate,A=i(),M=_.useState(),D=M[0],j=M[1];_.useEffect(function(){return function(){D!=null&&D.arg.fixedCacheKey||D==null||D.reset()}},[D]);var F=_.useCallback(function(Ce){var He=A(R(Ce,{fixedCacheKey:C}));return j(He),He},[A,R,C]),B=(D||{}).requestId,z=_.useMemo(function(){return ah([k({fixedCacheKey:C,requestId:D==null?void 0:D.requestId})],S)},[k,D,S,C]),P=o(z,V1),U=C==null?D==null?void 0:D.arg.originalArgs:void 0,Y=_.useCallback(function(){r(function(){D&&j(void 0),C&&A(t.internalActions.removeMutationResult({requestId:B,fixedCacheKey:C}))})},[A,C,D,B]),H=P.endpointName,X=P.data,Q=P.status,le=P.isLoading,we=P.isSuccess,ve=P.isError,he=P.error;_.useDebugValue({endpointName:H,data:X,status:Q,isLoading:le,isSuccess:we,isError:ve,error:he});var ye=_.useMemo(function(){return W1(Os({},P),{originalArgs:U,reset:Y})},[P,U,Y]);return _.useMemo(function(){return[F,ye]},[F,ye])}}}var G1;(function(e){e.query="query",e.mutation="mutation"})(G1||(G1={}));function Qee(e){return e.type===G1.query}function Xee(e){return e.type===G1.mutation}function qw(e){return e.replace(e[0],e[0].toUpperCase())}function Y1(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Object.assign.apply(Object,zee([e],t))}var Jee=Symbol(),ete=function(e){var t=e===void 0?{}:e,n=t.batch,r=n===void 0?uu.unstable_batchedUpdates:n,i=t.useDispatch,o=i===void 0?jee:i,s=t.useSelector,a=s===void 0?Eee:s,l=t.useStore,u=l===void 0?WR:l,d=t.unstable__sideEffectsInRender,f=d===void 0?!1:d;return{name:Jee,init:function(m,h,g){var v=h.serializeQueryArgs,w=m,y=Zee({api:m,moduleOptions:{batch:r,useDispatch:o,useSelector:a,useStore:u,unstable__sideEffectsInRender:f},serializeQueryArgs:v,context:g}),x=y.buildQueryHooks,S=y.buildMutationHook,C=y.usePrefetch;return Y1(w,{usePrefetch:C}),Y1(g,{batch:r}),{injectEndpoint:function(T,k){if(Qee(k)){var R=x(T),A=R.useQuery,M=R.useLazyQuery,D=R.useLazyQuerySubscription,j=R.useQueryState,F=R.useQuerySubscription;Y1(w.endpoints[T],{useQuery:A,useLazyQuery:M,useLazyQuerySubscription:D,useQueryState:j,useQuerySubscription:F}),m["use"+qw(T)+"Query"]=A,m["useLazy"+qw(T)+"Query"]=M}else if(Xee(k)){var B=S(T);Y1(w.endpoints[T],{useMutation:B}),m["use"+qw(T)+"Mutation"]=B}}}}}},tte=VJ(ree(),ete()),K1={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{if(!n)throw"Error in parsing value"}},clear:function(){return localStorage.clear()},remove:function(e){return localStorage.removeItem(e)}};function nte(e,t=void 0,n=!0){if(Z1())return K1.get(e,t,n)}function rte(e,t){Z1()&&K1.set(e,t)}function ite(e,t={},n=!0){if(Z1())return K1.getObject(e,t,n)}function ote(e,t){if(Z1())return K1.setObject(e,t)}function Z1(){var e="test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch{return!1}}const ste={get:nte,set:rte,getObject:ite,setObject:ote};let Gw;const ate=e=>{Gw=e},KR=()=>Gw||ste.get("timumApiHost","https://www.timum.de"),lte=()=>KR()+"/rest/1",Gn=(e,t,n)=>{if(t.params)for(const[r,i]of Object.entries(t.params))if(Array.isArray(i))for(let o of i)e.includes("?")?e=`${e}&${r}=${o}`:e=`${e}?${r}=${o}`;else e.includes("?")?e=`${e}&${r}=${i}`:e=`${e}?${r}=${i}`;return e.includes("?")?e=`${e}&X-DISABLE-COOKIES=true`:e=`${e}?X-DISABLE-COOKIES=true`,n?`${KR()}${e}`:`${lte()}${e}`},Q1=tte({reducerPath:"timumApi",baseQuery:LJ({baseUrl:void 0,credentials:"include"}),tagTypes:["Timeslot","Product","Account","Provider","User","IdentifiedCustomer"],endpoints:e=>({upcomingBookables:e.query({query:t=>({url:Gn(`/resources/${t.channelOrResourceId}/upcoming_bookables`,t),method:"post",headers:t.headers}),providesTags:()=>["Timeslot"]}),specificBookables:e.query({query:t=>({url:Gn("/bookables/specific_bookables",t),headers:t.headers,method:"post",body:t.body}),providesTags:()=>["Timeslot"]}),activeProducts:e.query({query:t=>({url:Gn(`/resources/${t.channelOrResourceId}/active_products`,t),headers:t.headers}),providesTags:()=>["Product"]}),specificProducts:e.query({query:t=>({url:Gn("/products/specific_products",t),headers:t.headers,method:"post",body:t.body}),providesTags:()=>["Product"]}),createAppointmentWithConsumer:e.mutation({query:t=>({url:Gn(`/resources/${t.channelOrResourceId}/create_appointment_with_consumer`,t),method:"post",body:t.body,headers:t.headers}),invalidatesTags:(t,n,r)=>{const i=[{type:"Timeslot"}];return r.shouldInvalidateCustomerIdentification&&i.push({type:"IdentifiedCustomer"}),i}}),removeCustomerFromAppointment:e.mutation({query:t=>({url:Gn(`/customers/${t.customersId}/appointments/${t.appointmentId}`,t),method:"delete",headers:t.headers}),invalidatesTags:()=>[{type:"Timeslot"}]}),authenticate:e.query({query:t=>({url:Gn("/auth/cookieless/login",t,!0),headers:t.headers,method:"post",body:t.body})}),publicData:e.query({query:t=>({url:Gn(`/resources/${t.channelOrResourceId}/public_data`,t),headers:t.headers})}),identifyCustomer:e.query({query:t=>({url:Gn(`/crms/${t.crmSlug}/resources/${t.channelOrResourceId}/customers/${t.personId}/identify`,t),headers:t.headers}),providesTags:"IdentifiedCustomer",keepUnusedDataFor:9999999}),reserveAppoinment:e.mutation({query:t=>({url:Gn(`/resources/${t.channelOrResourceId}/reserve_appointment`,t),method:"post",body:t.body,headers:t.headers})}),revokeAppointmentReservation:e.mutation({query:t=>({url:Gn(`/resources/${t.channelOrResourceId}/revoke_reservation`,t),method:"post",body:t.body,headers:t.headers})}),getAccount:e.query({query:t=>({url:Gn(`/crms/${t.platform}/account/${t.accountReference}`,t)}),providesTags:()=>["Account"]}),createAccount:e.mutation({query:t=>({url:Gn(`/crms/${t.platform}/account`,t),method:"post",body:JSON.stringify(t.accountData)}),invalidatesTags:()=>[{type:"Account"}]}),getProviders:e.query({query:t=>({url:Gn(`/crms/${t.platform}/account/${t.accountReference}/providers`,t)}),providesTags:()=>["Product"]}),getProvider:e.query({query:t=>({url:Gn(`/crms/${t.platform}/provider/${t.providerReference}`,t)})}),createProvider:e.mutation({query:t=>({url:Gn(`/crms/${t.platform}/provider`,t),method:"post",body:JSON.stringify((()=>({user:t.userData??{},provider:t.providerData??{},address:t.addressData??null,account:t.account??null,sendEmail:t.sendEmail??!1}))())}),invalidatesTags:()=>[{type:"Provider"}]}),getUser:e.query({query:t=>({url:Gn(`/crms/${t.platform}/user/${t.userReference}`,t)})}),createUser:e.mutation({query:t=>({url:Gn(`/crms/${t.platform}/user`,t),method:"post",body:JSON.stringify(t.userData)}),invalidatesTags:()=>[{type:"User"}]})})}),{useUpcomingBookablesQuery:PKe,useLazyUpcomingBookablesQuery:ute,useSpecificBookablesQuery:DKe,useLazySpecificBookablesQuery:cte,useActiveProductsQuery:MKe,useLazyActiveProductsQuery:dte,useSpecificProductsQuery:IKe,useLazySpecificProductsQuery:fte,useCreateAppointmentWithConsumerMutation:ZR,useIdentifyCustomerQuery:pte,useLazyIdentifyCustomerQuery:NKe,usePublicDataQuery:LKe,useLazyPublicDataQuery:hte,useReserveAppoinmentMutation:Yw,useRevokeAppointmentReservationMutation:mte,useRemoveCustomerFromAppointmentMutation:gte,useAuthenticateQuery:FKe,useLazyAuthenticateQuery:vte,useCreateAccountMutation:jKe,useGetAccountQuery:zKe,useLazyGetAccountQuery:BKe,useGetProvidersQuery:UKe,useLazyGetProvidersQuery:HKe,useCreateProviderMutation:VKe,useCreateUserMutation:WKe,useGetUserQuery:qKe,useLazyGetUserQuery:GKe}=Q1;function rr(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var yte=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")(),QR=yte,Kw=()=>Math.random().toString(36).substring(7).split("").join("."),bte={INIT:`@@redux/INIT${Kw()}`,REPLACE:`@@redux/REPLACE${Kw()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Kw()}`},X1=bte;function Zw(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function XR(e,t,n){if(typeof e!="function")throw new Error(rr(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(rr(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(rr(1));return n(XR)(e,t)}let r=e,i=t,o=new Map,s=o,a=0,l=!1;function u(){s===o&&(s=new Map,o.forEach((w,y)=>{s.set(y,w)}))}function d(){if(l)throw new Error(rr(3));return i}function f(w){if(typeof w!="function")throw new Error(rr(4));if(l)throw new Error(rr(5));let y=!0;u();const x=a++;return s.set(x,w),function(){if(y){if(l)throw new Error(rr(6));y=!1,u(),s.delete(x),o=null}}}function m(w){if(!Zw(w))throw new Error(rr(7));if(typeof w.type>"u")throw new Error(rr(8));if(typeof w.type!="string")throw new Error(rr(17));if(l)throw new Error(rr(9));try{l=!0,i=r(i,w)}finally{l=!1}return(o=s).forEach(x=>{x()}),w}function h(w){if(typeof w!="function")throw new Error(rr(10));r=w,m({type:X1.REPLACE})}function g(){const w=f;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(rr(11));function x(){const C=y;C.next&&C.next(d())}return x(),{unsubscribe:w(x)}},[QR](){return this}}}return m({type:X1.INIT}),{dispatch:m,subscribe:f,getState:d,replaceReducer:h,[QR]:g}}function xte(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:X1.INIT})>"u")throw new Error(rr(12));if(typeof n(void 0,{type:X1.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(rr(13))})}function wte(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const s=t[o];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;try{xte(n)}catch(o){i=o}return function(s={},a){if(i)throw i;let l=!1;const u={};for(let d=0;d<r.length;d++){const f=r[d],m=n[f],h=s[f],g=m(h,a);if(typeof g>"u")throw a&&a.type,new Error(rr(14));u[f]=g,l=l||g!==h}return l=l||r.length!==Object.keys(s).length,l?u:s}}function J1(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Ste(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(rr(15))};const s={getState:i.getState,dispatch:(l,...u)=>o(l,...u)},a=e.map(l=>l(s));return o=J1(...a)(i.dispatch),{...i,dispatch:o}}}function Cte(e){return Zw(e)&&"type"in e&&typeof e.type=="string"}var JR=Symbol.for("immer-nothing"),e_=Symbol.for("immer-draftable"),mi=Symbol.for("immer-state");function wo(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var fd=Object.getPrototypeOf;function el(e){return!!e&&!!e[mi]}function Ps(e){var t;return e?t_(e)||Array.isArray(e)||!!e[e_]||!!((t=e.constructor)!=null&&t[e_])||nv(e)||rv(e):!1}var $te=Object.prototype.constructor.toString();function t_(e){if(!e||typeof e!="object")return!1;const t=fd(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===$te}function ev(e,t){tv(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function tv(e){const t=e[mi];return t?t.type_:Array.isArray(e)?1:nv(e)?2:rv(e)?3:0}function Qw(e,t){return tv(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function n_(e,t,n){const r=tv(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Tte(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function nv(e){return e instanceof Map}function rv(e){return e instanceof Set}function gu(e){return e.copy_||e.base_}function Xw(e,t){if(nv(e))return new Map(e);if(rv(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=t_(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[mi];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const s=i[o],a=r[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(r[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[s]})}return Object.create(fd(e),r)}else{const r=fd(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function Jw(e,t=!1){return iv(e)||el(e)||!Ps(e)||(tv(e)>1&&(e.set=e.add=e.clear=e.delete=kte),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Jw(r,!0))),e}function kte(){wo(2)}function iv(e){return Object.isFrozen(e)}var Ete={};function vu(e){const t=Ete[e];return t||wo(0,e),t}var vh;function r_(){return vh}function Ate(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function i_(e,t){t&&(vu("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function e4(e){t4(e),e.drafts_.forEach(Rte),e.drafts_=null}function t4(e){e===vh&&(vh=e.parent_)}function o_(e){return vh=Ate(vh,e)}function Rte(e){const t=e[mi];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function s_(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[mi].modified_&&(e4(t),wo(4)),Ps(e)&&(e=ov(t,e),t.parent_||sv(t,e)),t.patches_&&vu("Patches").generateReplacementPatches_(n[mi].base_,e,t.patches_,t.inversePatches_)):e=ov(t,n,[]),e4(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==JR?e:void 0}function ov(e,t,n){if(iv(t))return t;const r=t[mi];if(!r)return ev(t,(i,o)=>a_(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return sv(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,s=!1;r.type_===3&&(o=new Set(i),i.clear(),s=!0),ev(o,(a,l)=>a_(e,r,i,a,l,n,s)),sv(e,i,!1),n&&e.patches_&&vu("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function a_(e,t,n,r,i,o,s){if(el(i)){const a=o&&t&&t.type_!==3&&!Qw(t.assigned_,r)?o.concat(r):void 0,l=ov(e,i,a);if(n_(n,r,l),el(l))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Ps(i)&&!iv(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ov(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&sv(e,i)}}function sv(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Jw(t,n)}function _te(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:r_(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=n4;n&&(i=[r],o=yh);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,a}var n4={get(e,t){if(t===mi)return e;const n=gu(e);if(!Qw(n,t))return Ote(e,n,t);const r=n[t];return e.finalized_||!Ps(r)?r:r===r4(e.base_,t)?(o4(e),e.copy_[t]=s4(r,e)):r},has(e,t){return t in gu(e)},ownKeys(e){return Reflect.ownKeys(gu(e))},set(e,t,n){const r=l_(gu(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=r4(gu(e),t),o=i==null?void 0:i[mi];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Tte(n,i)&&(n!==void 0||Qw(e.base_,t)))return!0;o4(e),i4(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return r4(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,o4(e),i4(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=gu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){wo(11)},getPrototypeOf(e){return fd(e.base_)},setPrototypeOf(){wo(12)}},yh={};ev(n4,(e,t)=>{yh[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),yh.deleteProperty=function(e,t){return yh.set.call(this,e,t,void 0)},yh.set=function(e,t,n){return n4.set.call(this,e[0],t,n,e[0])};function r4(e,t){const n=e[mi];return(n?gu(n):e)[t]}function Ote(e,t,n){var i;const r=l_(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function l_(e,t){if(!(t in e))return;let n=fd(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=fd(n)}}function i4(e){e.modified_||(e.modified_=!0,e.parent_&&i4(e.parent_))}function o4(e){e.copy_||(e.copy_=Xw(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Pte=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const s=this;return function(l=o,...u){return s.produce(l,d=>n.call(this,d,...u))}}typeof n!="function"&&wo(6),r!==void 0&&typeof r!="function"&&wo(7);let i;if(Ps(t)){const o=o_(this),s=s4(t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?e4(o):t4(o)}return i_(o,r),s_(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===JR&&(i=void 0),this.autoFreeze_&&Jw(i,!0),r){const o=[],s=[];vu("Patches").generateReplacementPatches_(t,i,o,s),r(o,s)}return i}else wo(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ps(e)||wo(8),el(e)&&(e=u_(e));const t=o_(this),n=s4(e,void 0);return n[mi].isManual_=!0,t4(t),n}finishDraft(e,t){const n=e&&e[mi];(!n||!n.isManual_)&&wo(9);const{scope_:r}=n;return i_(r,t),s_(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=vu("Patches").applyPatches_;return el(e)?r(e,t):this.produce(e,i=>r(i,t))}};function s4(e,t){const n=nv(e)?vu("MapSet").proxyMap_(e,t):rv(e)?vu("MapSet").proxySet_(e,t):_te(e,t);return(t?t.scope_:r_()).drafts_.push(n),n}function u_(e){return el(e)||wo(10,e),c_(e)}function c_(e){if(!Ps(e)||iv(e))return e;const t=e[mi];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Xw(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Xw(e,!0);return ev(n,(r,i)=>{n_(n,r,c_(i))}),t&&(t.finalized_=!1),n}var gi=new Pte,d_=gi.produce;gi.produceWithPatches.bind(gi),gi.setAutoFreeze.bind(gi),gi.setUseStrictShallowCopy.bind(gi),gi.applyPatches.bind(gi),gi.createDraft.bind(gi),gi.finishDraft.bind(gi);function Dte(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Mte(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Ite(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var f_=e=>Array.isArray(e)?e:[e];function Nte(e){const t=Array.isArray(e[0])?e[0]:e;return Ite(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Lte(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Fte=class{constructor(e){this.value=e}deref(){return this.value}},jte=typeof WeakRef<"u"?WeakRef:Fte,zte=0,p_=1;function av(){return{s:zte,v:void 0,o:null,p:null}}function a4(e,t={}){let n=av();const{resultEqualityCheck:r}=t;let i,o=0;function s(){var f;let a=n;const{length:l}=arguments;for(let m=0,h=l;m<h;m++){const g=arguments[m];if(typeof g=="function"||typeof g=="object"&&g!==null){let v=a.o;v===null&&(a.o=v=new WeakMap);const w=v.get(g);w===void 0?(a=av(),v.set(g,a)):a=w}else{let v=a.p;v===null&&(a.p=v=new Map);const w=v.get(g);w===void 0?(a=av(),v.set(g,a)):a=w}}const u=a;let d;if(a.s===p_)d=a.v;else if(d=e.apply(null,arguments),o++,r){const m=((f=i==null?void 0:i.deref)==null?void 0:f.call(i))??i;m!=null&&r(m,d)&&(d=m,o!==0&&o--),i=typeof d=="object"&&d!==null||typeof d=="function"?new jte(d):d}return u.s=p_,u.v=d,d}return s.clearCache=()=>{n=av(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function h_(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,s=0,a,l={},u=i.pop();typeof u=="object"&&(l=u,u=i.pop()),Dte(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const d={...n,...l},{memoize:f,memoizeOptions:m=[],argsMemoize:h=a4,argsMemoizeOptions:g=[],devModeChecks:v={}}=d,w=f_(m),y=f_(g),x=Nte(i),S=f(function(){return o++,u.apply(null,arguments)},...w),C=h(function(){s++;const k=Lte(x,arguments);return a=S.apply(null,k),a},...y);return Object.assign(C,{resultFunc:u,memoizedResultFunc:S,dependencies:x,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:f,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var m_=h_(a4),Bte=Object.assign((e,t=m_)=>{Mte(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((s,a,l)=>(s[n[l]]=a,s),{}))},{withTypes:()=>Bte});function g_(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var Ute=g_(),Hte=g_,Vte=(...e)=>{const t=h_(...e),n=Object.assign((...r)=>{const i=t(...r),o=(s,...a)=>i(el(s)?u_(s):s,...a);return Object.assign(o,i),o},{withTypes:()=>n});return n};Vte(a4);var Wte=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?J1:J1.apply(null,arguments)};function pd(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Kr(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Cte(r)&&r.type===e,n}var v_=class Vm extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Vm.prototype)}static get[Symbol.species](){return Vm}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Vm(...t[0].concat(this)):new Vm(...t.concat(this))}};function y_(e){return Ps(e)?d_(e,()=>{}):e}function b_(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(Kr(10));const r=n.insert(t,e);return e.set(t,r),r}function qte(e){return typeof e=="boolean"}var Gte=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new v_;return n&&(qte(n)?s.push(Ute):s.push(Hte(n.extraArgument))),s},Yte="RTK_autoBatch",x_=e=>t=>{setTimeout(t,e)},Kte=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:x_(10),Zte=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?Kte:e.type==="callback"?e.queueNotification:x_(e.timeout),u=()=>{s=!1,o&&(o=!1,a.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const f=()=>i&&d(),m=r.subscribe(f);return a.add(d),()=>{m(),a.delete(d)}},dispatch(d){var f;try{return i=!((f=d==null?void 0:d.meta)!=null&&f[Yte]),o=!i,o&&(s||(s=!0,l(u))),r.dispatch(d)}finally{i=!0}}})},Qte=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new v_(e);return r&&i.push(Zte(typeof r=="object"?r:void 0)),i},Xte=!0;function Jte(e){const t=Gte(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(Zw(n))a=wte(n);else throw new Error(Kr(1));let l;typeof r=="function"?l=r(t):l=t();let u=J1;i&&(u=Wte({trace:!Xte,...typeof i=="object"&&i}));const d=Ste(...l),f=Qte(d);let m=typeof s=="function"?s(f):f();const h=u(...m);return XR(a,o,h)}function w_(e){const t={},n=[];let r;const i={addCase(o,s){const a=typeof o=="string"?o:o.type;if(!a)throw new Error(Kr(28));if(a in t)throw new Error(Kr(29));return t[a]=s,i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function ene(e){return typeof e=="function"}function tne(e,t){let[n,r,i]=w_(t),o;if(ene(e))o=()=>y_(e());else{const a=y_(e);o=()=>a}function s(a=o(),l){let u=[n[l.type],...r.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[i]),u.reduce((d,f)=>{if(f)if(el(d)){const h=f(d,l);return h===void 0?d:h}else{if(Ps(d))return d_(d,m=>f(m,l));{const m=f(d,l);if(m===void 0){if(d===null)return d;throw new Error(Kr(9))}return m}}return d},a)}return s.getInitialState=o,s}var nne="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",rne=(e=21)=>{let t="",n=e;for(;n--;)t+=nne[Math.random()*64|0];return t},ine=Symbol.for("rtk-slice-createasyncthunk");function one(e,t){return`${e}/${t}`}function sne({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[ine];return function(i){const{name:o,reducerPath:s=o}=i;if(!o)throw new Error(Kr(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(une()):i.reducers)||{},l=Object.keys(a),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(S,C){const T=typeof S=="string"?S:S.type;if(!T)throw new Error(Kr(12));if(T in u.sliceCaseReducersByType)throw new Error(Kr(13));return u.sliceCaseReducersByType[T]=C,d},addMatcher(S,C){return u.sliceMatchers.push({matcher:S,reducer:C}),d},exposeAction(S,C){return u.actionCreators[S]=C,d},exposeCaseReducer(S,C){return u.sliceCaseReducersByName[S]=C,d}};l.forEach(S=>{const C=a[S],T={reducerName:S,type:one(o,S),createNotation:typeof i.reducers=="function"};dne(C)?pne(T,C,d,t):cne(T,C,d)});function f(){const[S={},C=[],T=void 0]=typeof i.extraReducers=="function"?w_(i.extraReducers):[i.extraReducers],k={...S,...u.sliceCaseReducersByType};return tne(i.initialState,R=>{for(let A in k)R.addCase(A,k[A]);for(let A of u.sliceMatchers)R.addMatcher(A.matcher,A.reducer);for(let A of C)R.addMatcher(A.matcher,A.reducer);T&&R.addDefaultCase(T)})}const m=S=>S,h=new Map;let g;function v(S,C){return g||(g=f()),g(S,C)}function w(){return g||(g=f()),g.getInitialState()}function y(S,C=!1){function T(R){let A=R[S];return typeof A>"u"&&C&&(A=w()),A}function k(R=m){const A=b_(h,C,{insert:()=>new WeakMap});return b_(A,R,{insert:()=>{const M={};for(const[D,j]of Object.entries(i.selectors??{}))M[D]=ane(j,R,w,C);return M}})}return{reducerPath:S,getSelectors:k,get selectors(){return k(T)},selectSlice:T}}const x={name:o,reducer:v,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:w,...y(s),injectInto(S,{reducerPath:C,...T}={}){const k=C??s;return S.inject({reducerPath:k,reducer:v},T),{...x,...y(k,!0)}}};return x}}function ane(e,t,n,r){function i(o,...s){let a=t(o);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return i.unwrapped=e,i}var lne=sne();function une(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function cne({type:e,reducerName:t,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!fne(r))throw new Error(Kr(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?pd(e,s):pd(e))}function dne(e){return e._reducerDefinitionType==="asyncThunk"}function fne(e){return e._reducerDefinitionType==="reducerWithPrepare"}function pne({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Kr(18));const{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:u,options:d}=n,f=i(e,o,d);r.exposeAction(t,f),s&&r.addCase(f.fulfilled,s),a&&r.addCase(f.pending,a),l&&r.addCase(f.rejected,l),u&&r.addMatcher(f.settled,u),r.exposeCaseReducer(t,{fulfilled:s||lv,pending:a||lv,rejected:l||lv,settled:u||lv})}function lv(){}var hne=(e,t)=>{if(typeof e!="function")throw new Error(Kr(32))},l4="listenerMiddleware",mne=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=pd(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(Kr(21));return hne(o),{predicate:i,type:t,effect:o}},gne=Object.assign(e=>{const{type:t,predicate:n,effect:r}=mne(e);return{id:rne(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Kr(22))}}},{withTypes:()=>gne}),vne=Object.assign(pd(`${l4}/add`),{withTypes:()=>vne});pd(`${l4}/removeAll`);var yne=Object.assign(pd(`${l4}/remove`),{withTypes:()=>yne});function Kr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var uv={exports:{}};/**
|
|
74
74
|
* @license
|
|
75
75
|
* Lodash <https://lodash.com/>
|
|
76
76
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
@@ -3802,16 +3802,14 @@ const sZ = (e) => {
|
|
|
3802
3802
|
`/resources/${t.channelOrResourceId}/upcoming_bookables`,
|
|
3803
3803
|
t
|
|
3804
3804
|
),
|
|
3805
|
+
method: "post",
|
|
3805
3806
|
headers: t.headers
|
|
3806
3807
|
}),
|
|
3807
3808
|
providesTags: () => ["Timeslot"]
|
|
3808
3809
|
}),
|
|
3809
3810
|
specificBookables: e.query({
|
|
3810
3811
|
query: (t) => ({
|
|
3811
|
-
url: In(
|
|
3812
|
-
"/bookables/specific_bookables",
|
|
3813
|
-
t
|
|
3814
|
-
),
|
|
3812
|
+
url: In("/bookables/specific_bookables", t),
|
|
3815
3813
|
headers: t.headers,
|
|
3816
3814
|
method: "post",
|
|
3817
3815
|
body: t.body
|
|
@@ -3830,10 +3828,7 @@ const sZ = (e) => {
|
|
|
3830
3828
|
}),
|
|
3831
3829
|
specificProducts: e.query({
|
|
3832
3830
|
query: (t) => ({
|
|
3833
|
-
url: In(
|
|
3834
|
-
"/products/specific_products",
|
|
3835
|
-
t
|
|
3836
|
-
),
|
|
3831
|
+
url: In("/products/specific_products", t),
|
|
3837
3832
|
headers: t.headers,
|
|
3838
3833
|
method: "post",
|
|
3839
3834
|
body: t.body
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/var ey=Symbol.for("react.element"),ty=Symbol.for("react.portal"),ip=Symbol.for("react.fragment"),op=Symbol.for("react.strict_mode"),sp=Symbol.for("react.profiler"),ap=Symbol.for("react.provider"),lp=Symbol.for("react.context"),pH=Symbol.for("react.server_context"),up=Symbol.for("react.forward_ref"),cp=Symbol.for("react.suspense"),dp=Symbol.for("react.suspense_list"),fp=Symbol.for("react.memo"),hp=Symbol.for("react.lazy"),mH=Symbol.for("react.offscreen"),N9;N9=Symbol.for("react.module.reference");function Kr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ey:switch(e=e.type,e){case ip:case sp:case op:case cp:case dp:return e;default:switch(e=e&&e.$$typeof,e){case pH:case lp:case up:case hp:case fp:case ap:return e;default:return t}}case ty:return t}}}Ot.ContextConsumer=lp,Ot.ContextProvider=ap,Ot.Element=ey,Ot.ForwardRef=up,Ot.Fragment=ip,Ot.Lazy=hp,Ot.Memo=fp,Ot.Portal=ty,Ot.Profiler=sp,Ot.StrictMode=op,Ot.Suspense=cp,Ot.SuspenseList=dp,Ot.isAsyncMode=function(){return!1},Ot.isConcurrentMode=function(){return!1},Ot.isContextConsumer=function(e){return Kr(e)===lp},Ot.isContextProvider=function(e){return Kr(e)===ap},Ot.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ey},Ot.isForwardRef=function(e){return Kr(e)===up},Ot.isFragment=function(e){return Kr(e)===ip},Ot.isLazy=function(e){return Kr(e)===hp},Ot.isMemo=function(e){return Kr(e)===fp},Ot.isPortal=function(e){return Kr(e)===ty},Ot.isProfiler=function(e){return Kr(e)===sp},Ot.isStrictMode=function(e){return Kr(e)===op},Ot.isSuspense=function(e){return Kr(e)===cp},Ot.isSuspenseList=function(e){return Kr(e)===dp},Ot.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ip||e===sp||e===op||e===cp||e===dp||e===mH||typeof e=="object"&&e!==null&&(e.$$typeof===hp||e.$$typeof===fp||e.$$typeof===ap||e.$$typeof===lp||e.$$typeof===up||e.$$typeof===N9||e.getModuleId!==void 0)},Ot.typeOf=Kr,I9.exports=Ot;var L9=I9.exports;function F9(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function pp(e,t){if(F9(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!F9(e[n[i]],t[n[i]]))return!1;return!0}function j9(e=xa){const t=e===xa?_9:Zv(e);return function(){const{store:r}=t();return r}}const B9=j9();function gH(e=xa){const t=e===xa?B9:j9(e);return function(){return t().dispatch}}const vH=gH();nH(eH.useSyncExternalStoreWithSelector);var yH=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},bH=Object.defineProperty,xH=Object.defineProperties,wH=Object.getOwnPropertyDescriptors,z9=Object.getOwnPropertySymbols,SH=Object.prototype.hasOwnProperty,CH=Object.prototype.propertyIsEnumerable,H9=function(e,t,n){return t in e?bH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},vo=function(e,t){for(var n in t||(t={}))SH.call(t,n)&&H9(e,n,t[n]);if(z9)for(var r=0,i=z9(t);r<i.length;r++){var n=i[r];CH.call(t,n)&&H9(e,n,t[n])}return e},mp=function(e,t){return xH(e,wH(t))};function U9(e,t,n,r){var i=P.useMemo(function(){return{queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e}},[e,t,n,r]),o=P.useRef(i);return P.useEffect(function(){o.current.serialized!==i.serialized&&(o.current=i)},[i]),o.current.serialized===i.serialized?o.current.queryArgs:e}var ny=Symbol();function ry(e){var t=P.useRef(e);return P.useEffect(function(){pp(t.current,e)||(t.current=e)},[e]),pp(t.current,e)?t.current:e}var gp=WeakMap?new WeakMap:void 0,TH=function(e){var t=e.endpointName,n=e.queryArgs,r="",i=gp==null?void 0:gp.get(n);if(typeof i=="string")r=i;else{var o=JSON.stringify(n,function(s,a){return va(a)?Object.keys(a).sort().reduce(function(l,c){return l[c]=a[c],l},{}):a});va(n)&&(gp==null||gp.set(n,o)),r=o}return t+"("+r+")"},$H=typeof window<"u"&&window.document&&window.document.createElement?P.useLayoutEffect:P.useEffect,EH=function(e){return e},kH=function(e){return e.isUninitialized?mp(vo({},e),{isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:Kt.pending}):e};function AH(e){var t=e.api,n=e.moduleOptions,r=n.batch,i=n.useDispatch,o=n.useSelector,s=n.useStore,a=n.unstable__sideEffectsInRender,l=e.serializeQueryArgs,c=e.context,d=a?function(v){return v()}:P.useEffect;return{buildQueryHooks:p,buildMutationHook:g,usePrefetch:m};function f(v,b,x){if(b!=null&&b.endpointName&&v.isUninitialized){var w=b.endpointName,S=c.endpointDefinitions[w];l({queryArgs:b.originalArgs,endpointDefinition:S,endpointName:w})===l({queryArgs:x,endpointDefinition:S,endpointName:w})&&(b=void 0)}var T=v.isSuccess?v.data:b==null?void 0:b.data;T===void 0&&(T=v.data);var E=T!==void 0,k=v.isLoading,_=!E&&k,A=v.isSuccess||k&&E;return mp(vo({},v),{data:T,currentData:v.data,isFetching:k,isLoading:_,isSuccess:A})}function m(v,b){var x=i(),w=ry(b);return P.useCallback(function(S,T){return x(t.util.prefetch(v,S,vo(vo({},w),T)))},[v,x,w])}function p(v){var b=function(S,T){var E=T===void 0?{}:T,k=E.refetchOnReconnect,_=E.refetchOnFocus,A=E.refetchOnMountOrArgChange,M=E.skip,D=M===void 0?!1:M,j=E.pollingInterval,F=j===void 0?0:j,H=t.endpoints[v].initiate,z=i(),R=U9(D?ba:S,TH,c.endpointDefinitions[v],v),U=ry({refetchOnReconnect:k,refetchOnFocus:_,pollingInterval:F}),Y=P.useRef(!1),K=P.useRef(),re=K.current||{},ne=re.queryCacheKey,he=re.requestId,Pe=!1;if(ne&&he){var ye=z(t.internalActions.internal_probeSubscription({queryCacheKey:ne,requestId:he}));Pe=!!ye}var ge=!Pe&&Y.current;return d(function(){Y.current=Pe}),d(function(){ge&&(K.current=void 0)},[ge]),d(function(){var be,Ee=K.current;if(typeof process<"u",R===ba){Ee==null||Ee.unsubscribe(),K.current=void 0;return}var Ye=(be=K.current)==null?void 0:be.subscriptionOptions;if(!Ee||Ee.arg!==R){Ee==null||Ee.unsubscribe();var Re=z(H(R,{subscriptionOptions:U,forceRefetch:A}));K.current=Re}else U!==Ye&&Ee.updateSubscriptionOptions(U)},[z,H,A,R,U,ge]),P.useEffect(function(){return function(){var be;(be=K.current)==null||be.unsubscribe(),K.current=void 0}},[]),P.useMemo(function(){return{refetch:function(){var be;if(!K.current)throw new Error("Cannot refetch a query that has not been started yet.");return(be=K.current)==null?void 0:be.refetch()}}},[])},x=function(S){var T=S===void 0?{}:S,E=T.refetchOnReconnect,k=T.refetchOnFocus,_=T.pollingInterval,A=_===void 0?0:_,M=t.endpoints[v].initiate,D=i(),j=P.useState(ny),F=j[0],H=j[1],z=P.useRef(),R=ry({refetchOnReconnect:E,refetchOnFocus:k,pollingInterval:A});d(function(){var K,re,ne=(K=z.current)==null?void 0:K.subscriptionOptions;R!==ne&&((re=z.current)==null||re.updateSubscriptionOptions(R))},[R]);var U=P.useRef(R);d(function(){U.current=R},[R]);var Y=P.useCallback(function(K,re){re===void 0&&(re=!1);var ne;return r(function(){var he;(he=z.current)==null||he.unsubscribe(),z.current=ne=D(M(K,{subscriptionOptions:U.current,forceRefetch:!re})),H(K)}),ne},[D,M]);return P.useEffect(function(){return function(){var K;(K=z==null?void 0:z.current)==null||K.unsubscribe()}},[]),P.useEffect(function(){F!==ny&&!z.current&&Y(F,!0)},[F,Y]),P.useMemo(function(){return[Y,F]},[Y,F])},w=function(S,T){var E=T===void 0?{}:T,k=E.skip,_=k===void 0?!1:k,A=E.selectFromResult,M=t.endpoints[v].select,D=U9(_?ba:S,l,c.endpointDefinitions[v],v),j=P.useRef(),F=P.useMemo(function(){return Wc([M(D),function(Y,K){return K},function(Y){return D}],f)},[M,D]),H=P.useMemo(function(){return A?Wc([F],A):F},[F,A]),z=o(function(Y){return H(Y,j.current)},pp),R=s(),U=F(R.getState(),j.current);return $H(function(){j.current=U},[U]),z};return{useQueryState:w,useQuerySubscription:b,useLazyQuerySubscription:x,useLazyQuery:function(S){var T=x(S),E=T[0],k=T[1],_=w(k,mp(vo({},S),{skip:k===ny})),A=P.useMemo(function(){return{lastArg:k}},[k]);return P.useMemo(function(){return[E,_,A]},[E,_,A])},useQuery:function(S,T){var E=b(S,T),k=w(S,vo({selectFromResult:S===ba||T!=null&&T.skip?void 0:kH},T)),_=k.data,A=k.status,M=k.isLoading,D=k.isSuccess,j=k.isError,F=k.error;return P.useDebugValue({data:_,status:A,isLoading:M,isSuccess:D,isError:j,error:F}),P.useMemo(function(){return vo(vo({},k),E)},[k,E])}}}function g(v){return function(b){var x=b===void 0?{}:b,w=x.selectFromResult,S=w===void 0?EH:w,T=x.fixedCacheKey,E=t.endpoints[v],k=E.select,_=E.initiate,A=i(),M=P.useState(),D=M[0],j=M[1];P.useEffect(function(){return function(){D!=null&&D.arg.fixedCacheKey||D==null||D.reset()}},[D]);var F=P.useCallback(function(Ee){var Ye=A(_(Ee,{fixedCacheKey:T}));return j(Ye),Ye},[A,_,T]),H=(D||{}).requestId,z=P.useMemo(function(){return Wc([k({fixedCacheKey:T,requestId:D==null?void 0:D.requestId})],S)},[k,D,S,T]),R=o(z,pp),U=T==null?D==null?void 0:D.arg.originalArgs:void 0,Y=P.useCallback(function(){r(function(){D&&j(void 0),T&&A(t.internalActions.removeMutationResult({requestId:H,fixedCacheKey:T}))})},[A,T,D,H]),K=R.endpointName,re=R.data,ne=R.status,he=R.isLoading,Pe=R.isSuccess,ye=R.isError,ge=R.error;P.useDebugValue({endpointName:K,data:re,status:ne,isLoading:he,isSuccess:Pe,isError:ye,error:ge});var be=P.useMemo(function(){return mp(vo({},R),{originalArgs:U,reset:Y})},[R,U,Y]);return P.useMemo(function(){return[F,be]},[F,be])}}}var vp;(function(e){e.query="query",e.mutation="mutation"})(vp||(vp={}));function _H(e){return e.type===vp.query}function OH(e){return e.type===vp.mutation}function iy(e){return e.replace(e[0],e[0].toUpperCase())}function yp(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Object.assign.apply(Object,yH([e],t))}var RH=Symbol(),PH=function(e){var t=e===void 0?{}:e,n=t.batch,r=n===void 0?zi.unstable_batchedUpdates:n,i=t.useDispatch,o=i===void 0?vH:i,s=t.useSelector,a=s===void 0?oH:s,l=t.useStore,c=l===void 0?B9:l,d=t.unstable__sideEffectsInRender,f=d===void 0?!1:d;return{name:RH,init:function(m,p,g){var v=p.serializeQueryArgs,b=m,x=AH({api:m,moduleOptions:{batch:r,useDispatch:o,useSelector:a,useStore:c,unstable__sideEffectsInRender:f},serializeQueryArgs:v,context:g}),w=x.buildQueryHooks,S=x.buildMutationHook,T=x.usePrefetch;return yp(b,{usePrefetch:T}),yp(g,{batch:r}),{injectEndpoint:function(E,k){if(_H(k)){var _=w(E),A=_.useQuery,M=_.useLazyQuery,D=_.useLazyQuerySubscription,j=_.useQueryState,F=_.useQuerySubscription;yp(b.endpoints[E],{useQuery:A,useLazyQuery:M,useLazyQuerySubscription:D,useQueryState:j,useQuerySubscription:F}),m["use"+iy(E)+"Query"]=A,m["useLazy"+iy(E)+"Query"]=M}else if(OH(k)){var H=S(E);yp(b.endpoints[E],{useMutation:H}),m["use"+iy(E)+"Mutation"]=H}}}}}},DH=Sz(Iz(),PH()),bp={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{if(!n)throw"Error in parsing value"}},clear:function(){return localStorage.clear()},remove:function(e){return localStorage.removeItem(e)}};function MH(e,t=void 0,n=!0){if(xp())return bp.get(e,t,n)}function IH(e,t){xp()&&bp.set(e,t)}function NH(e,t={},n=!0){if(xp())return bp.getObject(e,t,n)}function LH(e,t){if(xp())return bp.setObject(e,t)}function xp(){var e="test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch{return!1}}const FH={get:MH,set:IH,getObject:NH,setObject:LH};let oy;const jH=e=>{oy=e},V9=()=>oy||FH.get("timumApiHost","https://www.timum.de"),BH=()=>V9()+"/rest/1",An=(e,t,n)=>{if(t.params)for(const[r,i]of Object.entries(t.params))if(Array.isArray(i))for(let o of i)e.includes("?")?e=`${e}&${r}=${o}`:e=`${e}?${r}=${o}`;else e.includes("?")?e=`${e}&${r}=${i}`:e=`${e}?${r}=${i}`;return e.includes("?")?e=`${e}&X-DISABLE-COOKIES=true`:e=`${e}?X-DISABLE-COOKIES=true`,n?`${V9()}${e}`:`${BH()}${e}`},wp=DH({reducerPath:"timumApi",baseQuery:mz({baseUrl:void 0,credentials:"include"}),tagTypes:["Timeslot","Product","Account","Provider","User","IdentifiedCustomer"],endpoints:e=>({upcomingBookables:e.query({query:t=>({url:An(`/resources/${t.channelOrResourceId}/upcoming_bookables`,t),headers:t.headers}),providesTags:()=>["Timeslot"]}),specificBookables:e.query({query:t=>({url:An("/bookables/specific_bookables",t),headers:t.headers,method:"post",body:t.body}),providesTags:()=>["Timeslot"]}),activeProducts:e.query({query:t=>({url:An(`/resources/${t.channelOrResourceId}/active_products`,t),headers:t.headers}),providesTags:()=>["Product"]}),specificProducts:e.query({query:t=>({url:An("/products/specific_products",t),headers:t.headers,method:"post",body:t.body}),providesTags:()=>["Product"]}),createAppointmentWithConsumer:e.mutation({query:t=>({url:An(`/resources/${t.channelOrResourceId}/create_appointment_with_consumer`,t),method:"post",body:t.body,headers:t.headers}),invalidatesTags:(t,n,r)=>{const i=[{type:"Timeslot"}];return r.shouldInvalidateCustomerIdentification&&i.push({type:"IdentifiedCustomer"}),i}}),removeCustomerFromAppointment:e.mutation({query:t=>({url:An(`/customers/${t.customersId}/appointments/${t.appointmentId}`,t),method:"delete",headers:t.headers}),invalidatesTags:()=>[{type:"Timeslot"}]}),authenticate:e.query({query:t=>({url:An("/auth/cookieless/login",t,!0),headers:t.headers,method:"post",body:t.body})}),publicData:e.query({query:t=>({url:An(`/resources/${t.channelOrResourceId}/public_data`,t),headers:t.headers})}),identifyCustomer:e.query({query:t=>({url:An(`/crms/${t.crmSlug}/resources/${t.channelOrResourceId}/customers/${t.personId}/identify`,t),headers:t.headers}),providesTags:"IdentifiedCustomer",keepUnusedDataFor:9999999}),reserveAppoinment:e.mutation({query:t=>({url:An(`/resources/${t.channelOrResourceId}/reserve_appointment`,t),method:"post",body:t.body,headers:t.headers})}),revokeAppointmentReservation:e.mutation({query:t=>({url:An(`/resources/${t.channelOrResourceId}/revoke_reservation`,t),method:"post",body:t.body,headers:t.headers})}),getAccount:e.query({query:t=>({url:An(`/crms/${t.platform}/account/${t.accountReference}`,t)}),providesTags:()=>["Account"]}),createAccount:e.mutation({query:t=>({url:An(`/crms/${t.platform}/account`,t),method:"post",body:JSON.stringify(t.accountData)}),invalidatesTags:()=>[{type:"Account"}]}),getProviders:e.query({query:t=>({url:An(`/crms/${t.platform}/account/${t.accountReference}/providers`,t)}),providesTags:()=>["Product"]}),getProvider:e.query({query:t=>({url:An(`/crms/${t.platform}/provider/${t.providerReference}`,t)})}),createProvider:e.mutation({query:t=>({url:An(`/crms/${t.platform}/provider`,t),method:"post",body:JSON.stringify((()=>({user:t.userData??{},provider:t.providerData??{},address:t.addressData??null,account:t.account??null,sendEmail:t.sendEmail??!1}))())}),invalidatesTags:()=>[{type:"Provider"}]}),getUser:e.query({query:t=>({url:An(`/crms/${t.platform}/user/${t.userReference}`,t)})}),createUser:e.mutation({query:t=>({url:An(`/crms/${t.platform}/user`,t),method:"post",body:JSON.stringify(t.userData)}),invalidatesTags:()=>[{type:"User"}]})})}),{useUpcomingBookablesQuery:cLe,useLazyUpcomingBookablesQuery:zH,useSpecificBookablesQuery:dLe,useLazySpecificBookablesQuery:HH,useActiveProductsQuery:fLe,useLazyActiveProductsQuery:UH,useSpecificProductsQuery:hLe,useLazySpecificProductsQuery:VH,useCreateAppointmentWithConsumerMutation:W9,useIdentifyCustomerQuery:WH,useLazyIdentifyCustomerQuery:pLe,usePublicDataQuery:mLe,useLazyPublicDataQuery:qH,useReserveAppoinmentMutation:sy,useRevokeAppointmentReservationMutation:GH,useRemoveCustomerFromAppointmentMutation:YH,useAuthenticateQuery:gLe,useLazyAuthenticateQuery:KH,useCreateAccountMutation:vLe,useGetAccountQuery:yLe,useLazyGetAccountQuery:bLe,useGetProvidersQuery:xLe,useLazyGetProvidersQuery:wLe,useCreateProviderMutation:SLe,useCreateUserMutation:CLe,useGetUserQuery:TLe,useLazyGetUserQuery:$Le}=wp;function In(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ZH=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")(),q9=ZH,ay=()=>Math.random().toString(36).substring(7).split("").join("."),QH={INIT:`@@redux/INIT${ay()}`,REPLACE:`@@redux/REPLACE${ay()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ay()}`},Sp=QH;function ly(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function G9(e,t,n){if(typeof e!="function")throw new Error(In(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(In(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(In(1));return n(G9)(e,t)}let r=e,i=t,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((b,x)=>{s.set(x,b)}))}function d(){if(l)throw new Error(In(3));return i}function f(b){if(typeof b!="function")throw new Error(In(4));if(l)throw new Error(In(5));let x=!0;c();const w=a++;return s.set(w,b),function(){if(x){if(l)throw new Error(In(6));x=!1,c(),s.delete(w),o=null}}}function m(b){if(!ly(b))throw new Error(In(7));if(typeof b.type>"u")throw new Error(In(8));if(typeof b.type!="string")throw new Error(In(17));if(l)throw new Error(In(9));try{l=!0,i=r(i,b)}finally{l=!1}return(o=s).forEach(w=>{w()}),b}function p(b){if(typeof b!="function")throw new Error(In(10));r=b,m({type:Sp.REPLACE})}function g(){const b=f;return{subscribe(x){if(typeof x!="object"||x===null)throw new Error(In(11));function w(){const T=x;T.next&&T.next(d())}return w(),{unsubscribe:b(w)}},[q9](){return this}}}return m({type:Sp.INIT}),{dispatch:m,subscribe:f,getState:d,replaceReducer:p,[q9]:g}}function XH(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Sp.INIT})>"u")throw new Error(In(12));if(typeof n(void 0,{type:Sp.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(In(13))})}function JH(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const s=t[o];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;try{XH(n)}catch(o){i=o}return function(s={},a){if(i)throw i;let l=!1;const c={};for(let d=0;d<r.length;d++){const f=r[d],m=n[f],p=s[f],g=m(p,a);if(typeof g>"u")throw a&&a.type,new Error(In(14));c[f]=g,l=l||g!==p}return l=l||r.length!==Object.keys(s).length,l?c:s}}function Cp(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function eU(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(In(15))};const s={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},a=e.map(l=>l(s));return o=Cp(...a)(i.dispatch),{...i,dispatch:o}}}function tU(e){return ly(e)&&"type"in e&&typeof e.type=="string"}var Y9=Symbol.for("immer-nothing"),K9=Symbol.for("immer-draftable"),_r=Symbol.for("immer-state");function bi(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Bl=Object.getPrototypeOf;function xs(e){return!!e&&!!e[_r]}function yo(e){var t;return e?Z9(e)||Array.isArray(e)||!!e[K9]||!!((t=e.constructor)!=null&&t[K9])||Ep(e)||kp(e):!1}var nU=Object.prototype.constructor.toString();function Z9(e){if(!e||typeof e!="object")return!1;const t=Bl(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===nU}function Tp(e,t){$p(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function $p(e){const t=e[_r];return t?t.type_:Array.isArray(e)?1:Ep(e)?2:kp(e)?3:0}function uy(e,t){return $p(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Q9(e,t,n){const r=$p(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function rU(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ep(e){return e instanceof Map}function kp(e){return e instanceof Set}function wa(e){return e.copy_||e.base_}function cy(e,t){if(Ep(e))return new Map(e);if(kp(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Z9(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[_r];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const s=i[o],a=r[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(r[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[s]})}return Object.create(Bl(e),r)}else{const r=Bl(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function dy(e,t=!1){return Ap(e)||xs(e)||!yo(e)||($p(e)>1&&(e.set=e.add=e.clear=e.delete=iU),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>dy(r,!0))),e}function iU(){bi(2)}function Ap(e){return Object.isFrozen(e)}var oU={};function Sa(e){const t=oU[e];return t||bi(0,e),t}var td;function X9(){return td}function sU(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function J9(e,t){t&&(Sa("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function fy(e){hy(e),e.drafts_.forEach(aU),e.drafts_=null}function hy(e){e===td&&(td=e.parent_)}function eS(e){return td=sU(td,e)}function aU(e){const t=e[_r];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function tS(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[_r].modified_&&(fy(t),bi(4)),yo(e)&&(e=_p(t,e),t.parent_||Op(t,e)),t.patches_&&Sa("Patches").generateReplacementPatches_(n[_r].base_,e,t.patches_,t.inversePatches_)):e=_p(t,n,[]),fy(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Y9?e:void 0}function _p(e,t,n){if(Ap(t))return t;const r=t[_r];if(!r)return Tp(t,(i,o)=>nS(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Op(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,s=!1;r.type_===3&&(o=new Set(i),i.clear(),s=!0),Tp(o,(a,l)=>nS(e,r,i,a,l,n,s)),Op(e,i,!1),n&&e.patches_&&Sa("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function nS(e,t,n,r,i,o,s){if(xs(i)){const a=o&&t&&t.type_!==3&&!uy(t.assigned_,r)?o.concat(r):void 0,l=_p(e,i,a);if(Q9(n,r,l),xs(l))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(yo(i)&&!Ap(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;_p(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Op(e,i)}}function Op(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&dy(t,n)}function lU(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:X9(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=py;n&&(i=[r],o=nd);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,a}var py={get(e,t){if(t===_r)return e;const n=wa(e);if(!uy(n,t))return uU(e,n,t);const r=n[t];return e.finalized_||!yo(r)?r:r===my(e.base_,t)?(vy(e),e.copy_[t]=yy(r,e)):r},has(e,t){return t in wa(e)},ownKeys(e){return Reflect.ownKeys(wa(e))},set(e,t,n){const r=rS(wa(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=my(wa(e),t),o=i==null?void 0:i[_r];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(rU(n,i)&&(n!==void 0||uy(e.base_,t)))return!0;vy(e),gy(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return my(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,vy(e),gy(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=wa(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){bi(11)},getPrototypeOf(e){return Bl(e.base_)},setPrototypeOf(){bi(12)}},nd={};Tp(py,(e,t)=>{nd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),nd.deleteProperty=function(e,t){return nd.set.call(this,e,t,void 0)},nd.set=function(e,t,n){return py.set.call(this,e[0],t,n,e[0])};function my(e,t){const n=e[_r];return(n?wa(n):e)[t]}function uU(e,t,n){var i;const r=rS(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function rS(e,t){if(!(t in e))return;let n=Bl(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Bl(n)}}function gy(e){e.modified_||(e.modified_=!0,e.parent_&&gy(e.parent_))}function vy(e){e.copy_||(e.copy_=cy(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var cU=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const s=this;return function(l=o,...c){return s.produce(l,d=>n.call(this,d,...c))}}typeof n!="function"&&bi(6),r!==void 0&&typeof r!="function"&&bi(7);let i;if(yo(t)){const o=eS(this),s=yy(t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?fy(o):hy(o)}return J9(o,r),tS(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Y9&&(i=void 0),this.autoFreeze_&&dy(i,!0),r){const o=[],s=[];Sa("Patches").generateReplacementPatches_(t,i,o,s),r(o,s)}return i}else bi(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){yo(e)||bi(8),xs(e)&&(e=iS(e));const t=eS(this),n=yy(e,void 0);return n[_r].isManual_=!0,hy(t),n}finishDraft(e,t){const n=e&&e[_r];(!n||!n.isManual_)&&bi(9);const{scope_:r}=n;return J9(r,t),tS(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Sa("Patches").applyPatches_;return xs(e)?r(e,t):this.produce(e,i=>r(i,t))}};function yy(e,t){const n=Ep(e)?Sa("MapSet").proxyMap_(e,t):kp(e)?Sa("MapSet").proxySet_(e,t):lU(e,t);return(t?t.scope_:X9()).drafts_.push(n),n}function iS(e){return xs(e)||bi(10,e),oS(e)}function oS(e){if(!yo(e)||Ap(e))return e;const t=e[_r];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=cy(e,t.scope_.immer_.useStrictShallowCopy_)}else n=cy(e,!0);return Tp(n,(r,i)=>{Q9(n,r,oS(i))}),t&&(t.finalized_=!1),n}var Or=new cU,sS=Or.produce;Or.produceWithPatches.bind(Or),Or.setAutoFreeze.bind(Or),Or.setUseStrictShallowCopy.bind(Or),Or.applyPatches.bind(Or),Or.createDraft.bind(Or),Or.finishDraft.bind(Or);function dU(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function fU(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function hU(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var aS=e=>Array.isArray(e)?e:[e];function pU(e){const t=Array.isArray(e[0])?e[0]:e;return hU(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function mU(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var gU=class{constructor(e){this.value=e}deref(){return this.value}},vU=typeof WeakRef<"u"?WeakRef:gU,yU=0,lS=1;function Rp(){return{s:yU,v:void 0,o:null,p:null}}function by(e,t={}){let n=Rp();const{resultEqualityCheck:r}=t;let i,o=0;function s(){var f;let a=n;const{length:l}=arguments;for(let m=0,p=l;m<p;m++){const g=arguments[m];if(typeof g=="function"||typeof g=="object"&&g!==null){let v=a.o;v===null&&(a.o=v=new WeakMap);const b=v.get(g);b===void 0?(a=Rp(),v.set(g,a)):a=b}else{let v=a.p;v===null&&(a.p=v=new Map);const b=v.get(g);b===void 0?(a=Rp(),v.set(g,a)):a=b}}const c=a;let d;if(a.s===lS)d=a.v;else if(d=e.apply(null,arguments),o++,r){const m=((f=i==null?void 0:i.deref)==null?void 0:f.call(i))??i;m!=null&&r(m,d)&&(d=m,o!==0&&o--),i=typeof d=="object"&&d!==null||typeof d=="function"?new vU(d):d}return c.s=lS,c.v=d,d}return s.clearCache=()=>{n=Rp(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function uS(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,s=0,a,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),dU(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const d={...n,...l},{memoize:f,memoizeOptions:m=[],argsMemoize:p=by,argsMemoizeOptions:g=[],devModeChecks:v={}}=d,b=aS(m),x=aS(g),w=pU(i),S=f(function(){return o++,c.apply(null,arguments)},...b),T=p(function(){s++;const k=mU(w,arguments);return a=S.apply(null,k),a},...x);return Object.assign(T,{resultFunc:c,memoizedResultFunc:S,dependencies:w,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:f,argsMemoize:p})};return Object.assign(r,{withTypes:()=>r}),r}var cS=uS(by),bU=Object.assign((e,t=cS)=>{fU(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((s,a,l)=>(s[n[l]]=a,s),{}))},{withTypes:()=>bU});function dS(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var xU=dS(),wU=dS,SU=(...e)=>{const t=uS(...e),n=Object.assign((...r)=>{const i=t(...r),o=(s,...a)=>i(xs(s)?iS(s):s,...a);return Object.assign(o,i),o},{withTypes:()=>n});return n};SU(by);var CU=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Cp:Cp.apply(null,arguments)};function zl(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(pr(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>tU(r)&&r.type===e,n}var fS=class _h extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,_h.prototype)}static get[Symbol.species](){return _h}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new _h(...t[0].concat(this)):new _h(...t.concat(this))}};function hS(e){return yo(e)?sS(e,()=>{}):e}function pS(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(pr(10));const r=n.insert(t,e);return e.set(t,r),r}function TU(e){return typeof e=="boolean"}var $U=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new fS;return n&&(TU(n)?s.push(xU):s.push(wU(n.extraArgument))),s},EU="RTK_autoBatch",mS=e=>t=>{setTimeout(t,e)},kU=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:mS(10),AU=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?kU:e.type==="callback"?e.queueNotification:mS(e.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const f=()=>i&&d(),m=r.subscribe(f);return a.add(d),()=>{m(),a.delete(d)}},dispatch(d){var f;try{return i=!((f=d==null?void 0:d.meta)!=null&&f[EU]),o=!i,o&&(s||(s=!0,l(c))),r.dispatch(d)}finally{i=!0}}})},_U=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new fS(e);return r&&i.push(AU(typeof r=="object"?r:void 0)),i},OU=!0;function RU(e){const t=$U(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(ly(n))a=JH(n);else throw new Error(pr(1));let l;typeof r=="function"?l=r(t):l=t();let c=Cp;i&&(c=CU({trace:!OU,...typeof i=="object"&&i}));const d=eU(...l),f=_U(d);let m=typeof s=="function"?s(f):f();const p=c(...m);return G9(a,o,p)}function gS(e){const t={},n=[];let r;const i={addCase(o,s){const a=typeof o=="string"?o:o.type;if(!a)throw new Error(pr(28));if(a in t)throw new Error(pr(29));return t[a]=s,i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function PU(e){return typeof e=="function"}function DU(e,t){let[n,r,i]=gS(t),o;if(PU(e))o=()=>hS(e());else{const a=hS(e);o=()=>a}function s(a=o(),l){let c=[n[l.type],...r.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return c.filter(d=>!!d).length===0&&(c=[i]),c.reduce((d,f)=>{if(f)if(xs(d)){const p=f(d,l);return p===void 0?d:p}else{if(yo(d))return sS(d,m=>f(m,l));{const m=f(d,l);if(m===void 0){if(d===null)return d;throw new Error(pr(9))}return m}}return d},a)}return s.getInitialState=o,s}var MU="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",IU=(e=21)=>{let t="",n=e;for(;n--;)t+=MU[Math.random()*64|0];return t},NU=Symbol.for("rtk-slice-createasyncthunk");function LU(e,t){return`${e}/${t}`}function FU({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[NU];return function(i){const{name:o,reducerPath:s=o}=i;if(!o)throw new Error(pr(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(zU()):i.reducers)||{},l=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(S,T){const E=typeof S=="string"?S:S.type;if(!E)throw new Error(pr(12));if(E in c.sliceCaseReducersByType)throw new Error(pr(13));return c.sliceCaseReducersByType[E]=T,d},addMatcher(S,T){return c.sliceMatchers.push({matcher:S,reducer:T}),d},exposeAction(S,T){return c.actionCreators[S]=T,d},exposeCaseReducer(S,T){return c.sliceCaseReducersByName[S]=T,d}};l.forEach(S=>{const T=a[S],E={reducerName:S,type:LU(o,S),createNotation:typeof i.reducers=="function"};UU(T)?WU(E,T,d,t):HU(E,T,d)});function f(){const[S={},T=[],E=void 0]=typeof i.extraReducers=="function"?gS(i.extraReducers):[i.extraReducers],k={...S,...c.sliceCaseReducersByType};return DU(i.initialState,_=>{for(let A in k)_.addCase(A,k[A]);for(let A of c.sliceMatchers)_.addMatcher(A.matcher,A.reducer);for(let A of T)_.addMatcher(A.matcher,A.reducer);E&&_.addDefaultCase(E)})}const m=S=>S,p=new Map;let g;function v(S,T){return g||(g=f()),g(S,T)}function b(){return g||(g=f()),g.getInitialState()}function x(S,T=!1){function E(_){let A=_[S];return typeof A>"u"&&T&&(A=b()),A}function k(_=m){const A=pS(p,T,{insert:()=>new WeakMap});return pS(A,_,{insert:()=>{const M={};for(const[D,j]of Object.entries(i.selectors??{}))M[D]=jU(j,_,b,T);return M}})}return{reducerPath:S,getSelectors:k,get selectors(){return k(E)},selectSlice:E}}const w={name:o,reducer:v,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:b,...x(s),injectInto(S,{reducerPath:T,...E}={}){const k=T??s;return S.inject({reducerPath:k,reducer:v},E),{...w,...x(k,!0)}}};return w}}function jU(e,t,n,r){function i(o,...s){let a=t(o);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return i.unwrapped=e,i}var BU=FU();function zU(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function HU({type:e,reducerName:t,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!VU(r))throw new Error(pr(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?zl(e,s):zl(e))}function UU(e){return e._reducerDefinitionType==="asyncThunk"}function VU(e){return e._reducerDefinitionType==="reducerWithPrepare"}function WU({type:e,reducerName:t},n,r,i){if(!i)throw new Error(pr(18));const{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:d}=n,f=i(e,o,d);r.exposeAction(t,f),s&&r.addCase(f.fulfilled,s),a&&r.addCase(f.pending,a),l&&r.addCase(f.rejected,l),c&&r.addMatcher(f.settled,c),r.exposeCaseReducer(t,{fulfilled:s||Pp,pending:a||Pp,rejected:l||Pp,settled:c||Pp})}function Pp(){}var qU=(e,t)=>{if(typeof e!="function")throw new Error(pr(32))},xy="listenerMiddleware",GU=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=zl(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(pr(21));return qU(o),{predicate:i,type:t,effect:o}},YU=Object.assign(e=>{const{type:t,predicate:n,effect:r}=GU(e);return{id:IU(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(pr(22))}}},{withTypes:()=>YU}),KU=Object.assign(zl(`${xy}/add`),{withTypes:()=>KU});zl(`${xy}/removeAll`);var ZU=Object.assign(zl(`${xy}/remove`),{withTypes:()=>ZU});function pr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Dp={exports:{}};/**
|
|
42
|
+
*/var ey=Symbol.for("react.element"),ty=Symbol.for("react.portal"),ip=Symbol.for("react.fragment"),op=Symbol.for("react.strict_mode"),sp=Symbol.for("react.profiler"),ap=Symbol.for("react.provider"),lp=Symbol.for("react.context"),pH=Symbol.for("react.server_context"),up=Symbol.for("react.forward_ref"),cp=Symbol.for("react.suspense"),dp=Symbol.for("react.suspense_list"),fp=Symbol.for("react.memo"),hp=Symbol.for("react.lazy"),mH=Symbol.for("react.offscreen"),N9;N9=Symbol.for("react.module.reference");function Kr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ey:switch(e=e.type,e){case ip:case sp:case op:case cp:case dp:return e;default:switch(e=e&&e.$$typeof,e){case pH:case lp:case up:case hp:case fp:case ap:return e;default:return t}}case ty:return t}}}Ot.ContextConsumer=lp,Ot.ContextProvider=ap,Ot.Element=ey,Ot.ForwardRef=up,Ot.Fragment=ip,Ot.Lazy=hp,Ot.Memo=fp,Ot.Portal=ty,Ot.Profiler=sp,Ot.StrictMode=op,Ot.Suspense=cp,Ot.SuspenseList=dp,Ot.isAsyncMode=function(){return!1},Ot.isConcurrentMode=function(){return!1},Ot.isContextConsumer=function(e){return Kr(e)===lp},Ot.isContextProvider=function(e){return Kr(e)===ap},Ot.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ey},Ot.isForwardRef=function(e){return Kr(e)===up},Ot.isFragment=function(e){return Kr(e)===ip},Ot.isLazy=function(e){return Kr(e)===hp},Ot.isMemo=function(e){return Kr(e)===fp},Ot.isPortal=function(e){return Kr(e)===ty},Ot.isProfiler=function(e){return Kr(e)===sp},Ot.isStrictMode=function(e){return Kr(e)===op},Ot.isSuspense=function(e){return Kr(e)===cp},Ot.isSuspenseList=function(e){return Kr(e)===dp},Ot.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ip||e===sp||e===op||e===cp||e===dp||e===mH||typeof e=="object"&&e!==null&&(e.$$typeof===hp||e.$$typeof===fp||e.$$typeof===ap||e.$$typeof===lp||e.$$typeof===up||e.$$typeof===N9||e.getModuleId!==void 0)},Ot.typeOf=Kr,I9.exports=Ot;var L9=I9.exports;function F9(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function pp(e,t){if(F9(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!F9(e[n[i]],t[n[i]]))return!1;return!0}function j9(e=xa){const t=e===xa?_9:Zv(e);return function(){const{store:r}=t();return r}}const B9=j9();function gH(e=xa){const t=e===xa?B9:j9(e);return function(){return t().dispatch}}const vH=gH();nH(eH.useSyncExternalStoreWithSelector);var yH=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},bH=Object.defineProperty,xH=Object.defineProperties,wH=Object.getOwnPropertyDescriptors,z9=Object.getOwnPropertySymbols,SH=Object.prototype.hasOwnProperty,CH=Object.prototype.propertyIsEnumerable,H9=function(e,t,n){return t in e?bH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},vo=function(e,t){for(var n in t||(t={}))SH.call(t,n)&&H9(e,n,t[n]);if(z9)for(var r=0,i=z9(t);r<i.length;r++){var n=i[r];CH.call(t,n)&&H9(e,n,t[n])}return e},mp=function(e,t){return xH(e,wH(t))};function U9(e,t,n,r){var i=P.useMemo(function(){return{queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e}},[e,t,n,r]),o=P.useRef(i);return P.useEffect(function(){o.current.serialized!==i.serialized&&(o.current=i)},[i]),o.current.serialized===i.serialized?o.current.queryArgs:e}var ny=Symbol();function ry(e){var t=P.useRef(e);return P.useEffect(function(){pp(t.current,e)||(t.current=e)},[e]),pp(t.current,e)?t.current:e}var gp=WeakMap?new WeakMap:void 0,TH=function(e){var t=e.endpointName,n=e.queryArgs,r="",i=gp==null?void 0:gp.get(n);if(typeof i=="string")r=i;else{var o=JSON.stringify(n,function(s,a){return va(a)?Object.keys(a).sort().reduce(function(l,c){return l[c]=a[c],l},{}):a});va(n)&&(gp==null||gp.set(n,o)),r=o}return t+"("+r+")"},$H=typeof window<"u"&&window.document&&window.document.createElement?P.useLayoutEffect:P.useEffect,EH=function(e){return e},kH=function(e){return e.isUninitialized?mp(vo({},e),{isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:Kt.pending}):e};function AH(e){var t=e.api,n=e.moduleOptions,r=n.batch,i=n.useDispatch,o=n.useSelector,s=n.useStore,a=n.unstable__sideEffectsInRender,l=e.serializeQueryArgs,c=e.context,d=a?function(v){return v()}:P.useEffect;return{buildQueryHooks:p,buildMutationHook:g,usePrefetch:m};function f(v,b,x){if(b!=null&&b.endpointName&&v.isUninitialized){var w=b.endpointName,S=c.endpointDefinitions[w];l({queryArgs:b.originalArgs,endpointDefinition:S,endpointName:w})===l({queryArgs:x,endpointDefinition:S,endpointName:w})&&(b=void 0)}var T=v.isSuccess?v.data:b==null?void 0:b.data;T===void 0&&(T=v.data);var E=T!==void 0,k=v.isLoading,_=!E&&k,A=v.isSuccess||k&&E;return mp(vo({},v),{data:T,currentData:v.data,isFetching:k,isLoading:_,isSuccess:A})}function m(v,b){var x=i(),w=ry(b);return P.useCallback(function(S,T){return x(t.util.prefetch(v,S,vo(vo({},w),T)))},[v,x,w])}function p(v){var b=function(S,T){var E=T===void 0?{}:T,k=E.refetchOnReconnect,_=E.refetchOnFocus,A=E.refetchOnMountOrArgChange,M=E.skip,D=M===void 0?!1:M,j=E.pollingInterval,F=j===void 0?0:j,H=t.endpoints[v].initiate,z=i(),R=U9(D?ba:S,TH,c.endpointDefinitions[v],v),U=ry({refetchOnReconnect:k,refetchOnFocus:_,pollingInterval:F}),Y=P.useRef(!1),K=P.useRef(),re=K.current||{},ne=re.queryCacheKey,he=re.requestId,Pe=!1;if(ne&&he){var ye=z(t.internalActions.internal_probeSubscription({queryCacheKey:ne,requestId:he}));Pe=!!ye}var ge=!Pe&&Y.current;return d(function(){Y.current=Pe}),d(function(){ge&&(K.current=void 0)},[ge]),d(function(){var be,Ee=K.current;if(typeof process<"u",R===ba){Ee==null||Ee.unsubscribe(),K.current=void 0;return}var Ye=(be=K.current)==null?void 0:be.subscriptionOptions;if(!Ee||Ee.arg!==R){Ee==null||Ee.unsubscribe();var Re=z(H(R,{subscriptionOptions:U,forceRefetch:A}));K.current=Re}else U!==Ye&&Ee.updateSubscriptionOptions(U)},[z,H,A,R,U,ge]),P.useEffect(function(){return function(){var be;(be=K.current)==null||be.unsubscribe(),K.current=void 0}},[]),P.useMemo(function(){return{refetch:function(){var be;if(!K.current)throw new Error("Cannot refetch a query that has not been started yet.");return(be=K.current)==null?void 0:be.refetch()}}},[])},x=function(S){var T=S===void 0?{}:S,E=T.refetchOnReconnect,k=T.refetchOnFocus,_=T.pollingInterval,A=_===void 0?0:_,M=t.endpoints[v].initiate,D=i(),j=P.useState(ny),F=j[0],H=j[1],z=P.useRef(),R=ry({refetchOnReconnect:E,refetchOnFocus:k,pollingInterval:A});d(function(){var K,re,ne=(K=z.current)==null?void 0:K.subscriptionOptions;R!==ne&&((re=z.current)==null||re.updateSubscriptionOptions(R))},[R]);var U=P.useRef(R);d(function(){U.current=R},[R]);var Y=P.useCallback(function(K,re){re===void 0&&(re=!1);var ne;return r(function(){var he;(he=z.current)==null||he.unsubscribe(),z.current=ne=D(M(K,{subscriptionOptions:U.current,forceRefetch:!re})),H(K)}),ne},[D,M]);return P.useEffect(function(){return function(){var K;(K=z==null?void 0:z.current)==null||K.unsubscribe()}},[]),P.useEffect(function(){F!==ny&&!z.current&&Y(F,!0)},[F,Y]),P.useMemo(function(){return[Y,F]},[Y,F])},w=function(S,T){var E=T===void 0?{}:T,k=E.skip,_=k===void 0?!1:k,A=E.selectFromResult,M=t.endpoints[v].select,D=U9(_?ba:S,l,c.endpointDefinitions[v],v),j=P.useRef(),F=P.useMemo(function(){return Wc([M(D),function(Y,K){return K},function(Y){return D}],f)},[M,D]),H=P.useMemo(function(){return A?Wc([F],A):F},[F,A]),z=o(function(Y){return H(Y,j.current)},pp),R=s(),U=F(R.getState(),j.current);return $H(function(){j.current=U},[U]),z};return{useQueryState:w,useQuerySubscription:b,useLazyQuerySubscription:x,useLazyQuery:function(S){var T=x(S),E=T[0],k=T[1],_=w(k,mp(vo({},S),{skip:k===ny})),A=P.useMemo(function(){return{lastArg:k}},[k]);return P.useMemo(function(){return[E,_,A]},[E,_,A])},useQuery:function(S,T){var E=b(S,T),k=w(S,vo({selectFromResult:S===ba||T!=null&&T.skip?void 0:kH},T)),_=k.data,A=k.status,M=k.isLoading,D=k.isSuccess,j=k.isError,F=k.error;return P.useDebugValue({data:_,status:A,isLoading:M,isSuccess:D,isError:j,error:F}),P.useMemo(function(){return vo(vo({},k),E)},[k,E])}}}function g(v){return function(b){var x=b===void 0?{}:b,w=x.selectFromResult,S=w===void 0?EH:w,T=x.fixedCacheKey,E=t.endpoints[v],k=E.select,_=E.initiate,A=i(),M=P.useState(),D=M[0],j=M[1];P.useEffect(function(){return function(){D!=null&&D.arg.fixedCacheKey||D==null||D.reset()}},[D]);var F=P.useCallback(function(Ee){var Ye=A(_(Ee,{fixedCacheKey:T}));return j(Ye),Ye},[A,_,T]),H=(D||{}).requestId,z=P.useMemo(function(){return Wc([k({fixedCacheKey:T,requestId:D==null?void 0:D.requestId})],S)},[k,D,S,T]),R=o(z,pp),U=T==null?D==null?void 0:D.arg.originalArgs:void 0,Y=P.useCallback(function(){r(function(){D&&j(void 0),T&&A(t.internalActions.removeMutationResult({requestId:H,fixedCacheKey:T}))})},[A,T,D,H]),K=R.endpointName,re=R.data,ne=R.status,he=R.isLoading,Pe=R.isSuccess,ye=R.isError,ge=R.error;P.useDebugValue({endpointName:K,data:re,status:ne,isLoading:he,isSuccess:Pe,isError:ye,error:ge});var be=P.useMemo(function(){return mp(vo({},R),{originalArgs:U,reset:Y})},[R,U,Y]);return P.useMemo(function(){return[F,be]},[F,be])}}}var vp;(function(e){e.query="query",e.mutation="mutation"})(vp||(vp={}));function _H(e){return e.type===vp.query}function OH(e){return e.type===vp.mutation}function iy(e){return e.replace(e[0],e[0].toUpperCase())}function yp(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Object.assign.apply(Object,yH([e],t))}var RH=Symbol(),PH=function(e){var t=e===void 0?{}:e,n=t.batch,r=n===void 0?zi.unstable_batchedUpdates:n,i=t.useDispatch,o=i===void 0?vH:i,s=t.useSelector,a=s===void 0?oH:s,l=t.useStore,c=l===void 0?B9:l,d=t.unstable__sideEffectsInRender,f=d===void 0?!1:d;return{name:RH,init:function(m,p,g){var v=p.serializeQueryArgs,b=m,x=AH({api:m,moduleOptions:{batch:r,useDispatch:o,useSelector:a,useStore:c,unstable__sideEffectsInRender:f},serializeQueryArgs:v,context:g}),w=x.buildQueryHooks,S=x.buildMutationHook,T=x.usePrefetch;return yp(b,{usePrefetch:T}),yp(g,{batch:r}),{injectEndpoint:function(E,k){if(_H(k)){var _=w(E),A=_.useQuery,M=_.useLazyQuery,D=_.useLazyQuerySubscription,j=_.useQueryState,F=_.useQuerySubscription;yp(b.endpoints[E],{useQuery:A,useLazyQuery:M,useLazyQuerySubscription:D,useQueryState:j,useQuerySubscription:F}),m["use"+iy(E)+"Query"]=A,m["useLazy"+iy(E)+"Query"]=M}else if(OH(k)){var H=S(E);yp(b.endpoints[E],{useMutation:H}),m["use"+iy(E)+"Mutation"]=H}}}}}},DH=Sz(Iz(),PH()),bp={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{if(!n)throw"Error in parsing value"}},clear:function(){return localStorage.clear()},remove:function(e){return localStorage.removeItem(e)}};function MH(e,t=void 0,n=!0){if(xp())return bp.get(e,t,n)}function IH(e,t){xp()&&bp.set(e,t)}function NH(e,t={},n=!0){if(xp())return bp.getObject(e,t,n)}function LH(e,t){if(xp())return bp.setObject(e,t)}function xp(){var e="test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch{return!1}}const FH={get:MH,set:IH,getObject:NH,setObject:LH};let oy;const jH=e=>{oy=e},V9=()=>oy||FH.get("timumApiHost","https://www.timum.de"),BH=()=>V9()+"/rest/1",An=(e,t,n)=>{if(t.params)for(const[r,i]of Object.entries(t.params))if(Array.isArray(i))for(let o of i)e.includes("?")?e=`${e}&${r}=${o}`:e=`${e}?${r}=${o}`;else e.includes("?")?e=`${e}&${r}=${i}`:e=`${e}?${r}=${i}`;return e.includes("?")?e=`${e}&X-DISABLE-COOKIES=true`:e=`${e}?X-DISABLE-COOKIES=true`,n?`${V9()}${e}`:`${BH()}${e}`},wp=DH({reducerPath:"timumApi",baseQuery:mz({baseUrl:void 0,credentials:"include"}),tagTypes:["Timeslot","Product","Account","Provider","User","IdentifiedCustomer"],endpoints:e=>({upcomingBookables:e.query({query:t=>({url:An(`/resources/${t.channelOrResourceId}/upcoming_bookables`,t),method:"post",headers:t.headers}),providesTags:()=>["Timeslot"]}),specificBookables:e.query({query:t=>({url:An("/bookables/specific_bookables",t),headers:t.headers,method:"post",body:t.body}),providesTags:()=>["Timeslot"]}),activeProducts:e.query({query:t=>({url:An(`/resources/${t.channelOrResourceId}/active_products`,t),headers:t.headers}),providesTags:()=>["Product"]}),specificProducts:e.query({query:t=>({url:An("/products/specific_products",t),headers:t.headers,method:"post",body:t.body}),providesTags:()=>["Product"]}),createAppointmentWithConsumer:e.mutation({query:t=>({url:An(`/resources/${t.channelOrResourceId}/create_appointment_with_consumer`,t),method:"post",body:t.body,headers:t.headers}),invalidatesTags:(t,n,r)=>{const i=[{type:"Timeslot"}];return r.shouldInvalidateCustomerIdentification&&i.push({type:"IdentifiedCustomer"}),i}}),removeCustomerFromAppointment:e.mutation({query:t=>({url:An(`/customers/${t.customersId}/appointments/${t.appointmentId}`,t),method:"delete",headers:t.headers}),invalidatesTags:()=>[{type:"Timeslot"}]}),authenticate:e.query({query:t=>({url:An("/auth/cookieless/login",t,!0),headers:t.headers,method:"post",body:t.body})}),publicData:e.query({query:t=>({url:An(`/resources/${t.channelOrResourceId}/public_data`,t),headers:t.headers})}),identifyCustomer:e.query({query:t=>({url:An(`/crms/${t.crmSlug}/resources/${t.channelOrResourceId}/customers/${t.personId}/identify`,t),headers:t.headers}),providesTags:"IdentifiedCustomer",keepUnusedDataFor:9999999}),reserveAppoinment:e.mutation({query:t=>({url:An(`/resources/${t.channelOrResourceId}/reserve_appointment`,t),method:"post",body:t.body,headers:t.headers})}),revokeAppointmentReservation:e.mutation({query:t=>({url:An(`/resources/${t.channelOrResourceId}/revoke_reservation`,t),method:"post",body:t.body,headers:t.headers})}),getAccount:e.query({query:t=>({url:An(`/crms/${t.platform}/account/${t.accountReference}`,t)}),providesTags:()=>["Account"]}),createAccount:e.mutation({query:t=>({url:An(`/crms/${t.platform}/account`,t),method:"post",body:JSON.stringify(t.accountData)}),invalidatesTags:()=>[{type:"Account"}]}),getProviders:e.query({query:t=>({url:An(`/crms/${t.platform}/account/${t.accountReference}/providers`,t)}),providesTags:()=>["Product"]}),getProvider:e.query({query:t=>({url:An(`/crms/${t.platform}/provider/${t.providerReference}`,t)})}),createProvider:e.mutation({query:t=>({url:An(`/crms/${t.platform}/provider`,t),method:"post",body:JSON.stringify((()=>({user:t.userData??{},provider:t.providerData??{},address:t.addressData??null,account:t.account??null,sendEmail:t.sendEmail??!1}))())}),invalidatesTags:()=>[{type:"Provider"}]}),getUser:e.query({query:t=>({url:An(`/crms/${t.platform}/user/${t.userReference}`,t)})}),createUser:e.mutation({query:t=>({url:An(`/crms/${t.platform}/user`,t),method:"post",body:JSON.stringify(t.userData)}),invalidatesTags:()=>[{type:"User"}]})})}),{useUpcomingBookablesQuery:cLe,useLazyUpcomingBookablesQuery:zH,useSpecificBookablesQuery:dLe,useLazySpecificBookablesQuery:HH,useActiveProductsQuery:fLe,useLazyActiveProductsQuery:UH,useSpecificProductsQuery:hLe,useLazySpecificProductsQuery:VH,useCreateAppointmentWithConsumerMutation:W9,useIdentifyCustomerQuery:WH,useLazyIdentifyCustomerQuery:pLe,usePublicDataQuery:mLe,useLazyPublicDataQuery:qH,useReserveAppoinmentMutation:sy,useRevokeAppointmentReservationMutation:GH,useRemoveCustomerFromAppointmentMutation:YH,useAuthenticateQuery:gLe,useLazyAuthenticateQuery:KH,useCreateAccountMutation:vLe,useGetAccountQuery:yLe,useLazyGetAccountQuery:bLe,useGetProvidersQuery:xLe,useLazyGetProvidersQuery:wLe,useCreateProviderMutation:SLe,useCreateUserMutation:CLe,useGetUserQuery:TLe,useLazyGetUserQuery:$Le}=wp;function In(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ZH=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")(),q9=ZH,ay=()=>Math.random().toString(36).substring(7).split("").join("."),QH={INIT:`@@redux/INIT${ay()}`,REPLACE:`@@redux/REPLACE${ay()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ay()}`},Sp=QH;function ly(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function G9(e,t,n){if(typeof e!="function")throw new Error(In(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(In(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(In(1));return n(G9)(e,t)}let r=e,i=t,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((b,x)=>{s.set(x,b)}))}function d(){if(l)throw new Error(In(3));return i}function f(b){if(typeof b!="function")throw new Error(In(4));if(l)throw new Error(In(5));let x=!0;c();const w=a++;return s.set(w,b),function(){if(x){if(l)throw new Error(In(6));x=!1,c(),s.delete(w),o=null}}}function m(b){if(!ly(b))throw new Error(In(7));if(typeof b.type>"u")throw new Error(In(8));if(typeof b.type!="string")throw new Error(In(17));if(l)throw new Error(In(9));try{l=!0,i=r(i,b)}finally{l=!1}return(o=s).forEach(w=>{w()}),b}function p(b){if(typeof b!="function")throw new Error(In(10));r=b,m({type:Sp.REPLACE})}function g(){const b=f;return{subscribe(x){if(typeof x!="object"||x===null)throw new Error(In(11));function w(){const T=x;T.next&&T.next(d())}return w(),{unsubscribe:b(w)}},[q9](){return this}}}return m({type:Sp.INIT}),{dispatch:m,subscribe:f,getState:d,replaceReducer:p,[q9]:g}}function XH(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Sp.INIT})>"u")throw new Error(In(12));if(typeof n(void 0,{type:Sp.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(In(13))})}function JH(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const s=t[o];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;try{XH(n)}catch(o){i=o}return function(s={},a){if(i)throw i;let l=!1;const c={};for(let d=0;d<r.length;d++){const f=r[d],m=n[f],p=s[f],g=m(p,a);if(typeof g>"u")throw a&&a.type,new Error(In(14));c[f]=g,l=l||g!==p}return l=l||r.length!==Object.keys(s).length,l?c:s}}function Cp(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function eU(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(In(15))};const s={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},a=e.map(l=>l(s));return o=Cp(...a)(i.dispatch),{...i,dispatch:o}}}function tU(e){return ly(e)&&"type"in e&&typeof e.type=="string"}var Y9=Symbol.for("immer-nothing"),K9=Symbol.for("immer-draftable"),_r=Symbol.for("immer-state");function bi(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Bl=Object.getPrototypeOf;function xs(e){return!!e&&!!e[_r]}function yo(e){var t;return e?Z9(e)||Array.isArray(e)||!!e[K9]||!!((t=e.constructor)!=null&&t[K9])||Ep(e)||kp(e):!1}var nU=Object.prototype.constructor.toString();function Z9(e){if(!e||typeof e!="object")return!1;const t=Bl(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===nU}function Tp(e,t){$p(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function $p(e){const t=e[_r];return t?t.type_:Array.isArray(e)?1:Ep(e)?2:kp(e)?3:0}function uy(e,t){return $p(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Q9(e,t,n){const r=$p(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function rU(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ep(e){return e instanceof Map}function kp(e){return e instanceof Set}function wa(e){return e.copy_||e.base_}function cy(e,t){if(Ep(e))return new Map(e);if(kp(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Z9(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[_r];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const s=i[o],a=r[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(r[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[s]})}return Object.create(Bl(e),r)}else{const r=Bl(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function dy(e,t=!1){return Ap(e)||xs(e)||!yo(e)||($p(e)>1&&(e.set=e.add=e.clear=e.delete=iU),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>dy(r,!0))),e}function iU(){bi(2)}function Ap(e){return Object.isFrozen(e)}var oU={};function Sa(e){const t=oU[e];return t||bi(0,e),t}var td;function X9(){return td}function sU(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function J9(e,t){t&&(Sa("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function fy(e){hy(e),e.drafts_.forEach(aU),e.drafts_=null}function hy(e){e===td&&(td=e.parent_)}function eS(e){return td=sU(td,e)}function aU(e){const t=e[_r];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function tS(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[_r].modified_&&(fy(t),bi(4)),yo(e)&&(e=_p(t,e),t.parent_||Op(t,e)),t.patches_&&Sa("Patches").generateReplacementPatches_(n[_r].base_,e,t.patches_,t.inversePatches_)):e=_p(t,n,[]),fy(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Y9?e:void 0}function _p(e,t,n){if(Ap(t))return t;const r=t[_r];if(!r)return Tp(t,(i,o)=>nS(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Op(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,s=!1;r.type_===3&&(o=new Set(i),i.clear(),s=!0),Tp(o,(a,l)=>nS(e,r,i,a,l,n,s)),Op(e,i,!1),n&&e.patches_&&Sa("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function nS(e,t,n,r,i,o,s){if(xs(i)){const a=o&&t&&t.type_!==3&&!uy(t.assigned_,r)?o.concat(r):void 0,l=_p(e,i,a);if(Q9(n,r,l),xs(l))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(yo(i)&&!Ap(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;_p(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Op(e,i)}}function Op(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&dy(t,n)}function lU(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:X9(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=py;n&&(i=[r],o=nd);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,a}var py={get(e,t){if(t===_r)return e;const n=wa(e);if(!uy(n,t))return uU(e,n,t);const r=n[t];return e.finalized_||!yo(r)?r:r===my(e.base_,t)?(vy(e),e.copy_[t]=yy(r,e)):r},has(e,t){return t in wa(e)},ownKeys(e){return Reflect.ownKeys(wa(e))},set(e,t,n){const r=rS(wa(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=my(wa(e),t),o=i==null?void 0:i[_r];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(rU(n,i)&&(n!==void 0||uy(e.base_,t)))return!0;vy(e),gy(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return my(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,vy(e),gy(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=wa(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){bi(11)},getPrototypeOf(e){return Bl(e.base_)},setPrototypeOf(){bi(12)}},nd={};Tp(py,(e,t)=>{nd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),nd.deleteProperty=function(e,t){return nd.set.call(this,e,t,void 0)},nd.set=function(e,t,n){return py.set.call(this,e[0],t,n,e[0])};function my(e,t){const n=e[_r];return(n?wa(n):e)[t]}function uU(e,t,n){var i;const r=rS(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function rS(e,t){if(!(t in e))return;let n=Bl(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Bl(n)}}function gy(e){e.modified_||(e.modified_=!0,e.parent_&&gy(e.parent_))}function vy(e){e.copy_||(e.copy_=cy(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var cU=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const s=this;return function(l=o,...c){return s.produce(l,d=>n.call(this,d,...c))}}typeof n!="function"&&bi(6),r!==void 0&&typeof r!="function"&&bi(7);let i;if(yo(t)){const o=eS(this),s=yy(t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?fy(o):hy(o)}return J9(o,r),tS(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Y9&&(i=void 0),this.autoFreeze_&&dy(i,!0),r){const o=[],s=[];Sa("Patches").generateReplacementPatches_(t,i,o,s),r(o,s)}return i}else bi(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){yo(e)||bi(8),xs(e)&&(e=iS(e));const t=eS(this),n=yy(e,void 0);return n[_r].isManual_=!0,hy(t),n}finishDraft(e,t){const n=e&&e[_r];(!n||!n.isManual_)&&bi(9);const{scope_:r}=n;return J9(r,t),tS(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Sa("Patches").applyPatches_;return xs(e)?r(e,t):this.produce(e,i=>r(i,t))}};function yy(e,t){const n=Ep(e)?Sa("MapSet").proxyMap_(e,t):kp(e)?Sa("MapSet").proxySet_(e,t):lU(e,t);return(t?t.scope_:X9()).drafts_.push(n),n}function iS(e){return xs(e)||bi(10,e),oS(e)}function oS(e){if(!yo(e)||Ap(e))return e;const t=e[_r];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=cy(e,t.scope_.immer_.useStrictShallowCopy_)}else n=cy(e,!0);return Tp(n,(r,i)=>{Q9(n,r,oS(i))}),t&&(t.finalized_=!1),n}var Or=new cU,sS=Or.produce;Or.produceWithPatches.bind(Or),Or.setAutoFreeze.bind(Or),Or.setUseStrictShallowCopy.bind(Or),Or.applyPatches.bind(Or),Or.createDraft.bind(Or),Or.finishDraft.bind(Or);function dU(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function fU(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function hU(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var aS=e=>Array.isArray(e)?e:[e];function pU(e){const t=Array.isArray(e[0])?e[0]:e;return hU(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function mU(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var gU=class{constructor(e){this.value=e}deref(){return this.value}},vU=typeof WeakRef<"u"?WeakRef:gU,yU=0,lS=1;function Rp(){return{s:yU,v:void 0,o:null,p:null}}function by(e,t={}){let n=Rp();const{resultEqualityCheck:r}=t;let i,o=0;function s(){var f;let a=n;const{length:l}=arguments;for(let m=0,p=l;m<p;m++){const g=arguments[m];if(typeof g=="function"||typeof g=="object"&&g!==null){let v=a.o;v===null&&(a.o=v=new WeakMap);const b=v.get(g);b===void 0?(a=Rp(),v.set(g,a)):a=b}else{let v=a.p;v===null&&(a.p=v=new Map);const b=v.get(g);b===void 0?(a=Rp(),v.set(g,a)):a=b}}const c=a;let d;if(a.s===lS)d=a.v;else if(d=e.apply(null,arguments),o++,r){const m=((f=i==null?void 0:i.deref)==null?void 0:f.call(i))??i;m!=null&&r(m,d)&&(d=m,o!==0&&o--),i=typeof d=="object"&&d!==null||typeof d=="function"?new vU(d):d}return c.s=lS,c.v=d,d}return s.clearCache=()=>{n=Rp(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function uS(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,s=0,a,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),dU(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const d={...n,...l},{memoize:f,memoizeOptions:m=[],argsMemoize:p=by,argsMemoizeOptions:g=[],devModeChecks:v={}}=d,b=aS(m),x=aS(g),w=pU(i),S=f(function(){return o++,c.apply(null,arguments)},...b),T=p(function(){s++;const k=mU(w,arguments);return a=S.apply(null,k),a},...x);return Object.assign(T,{resultFunc:c,memoizedResultFunc:S,dependencies:w,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:f,argsMemoize:p})};return Object.assign(r,{withTypes:()=>r}),r}var cS=uS(by),bU=Object.assign((e,t=cS)=>{fU(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((s,a,l)=>(s[n[l]]=a,s),{}))},{withTypes:()=>bU});function dS(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var xU=dS(),wU=dS,SU=(...e)=>{const t=uS(...e),n=Object.assign((...r)=>{const i=t(...r),o=(s,...a)=>i(xs(s)?iS(s):s,...a);return Object.assign(o,i),o},{withTypes:()=>n});return n};SU(by);var CU=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Cp:Cp.apply(null,arguments)};function zl(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(pr(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>tU(r)&&r.type===e,n}var fS=class _h extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,_h.prototype)}static get[Symbol.species](){return _h}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new _h(...t[0].concat(this)):new _h(...t.concat(this))}};function hS(e){return yo(e)?sS(e,()=>{}):e}function pS(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(pr(10));const r=n.insert(t,e);return e.set(t,r),r}function TU(e){return typeof e=="boolean"}var $U=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new fS;return n&&(TU(n)?s.push(xU):s.push(wU(n.extraArgument))),s},EU="RTK_autoBatch",mS=e=>t=>{setTimeout(t,e)},kU=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:mS(10),AU=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?kU:e.type==="callback"?e.queueNotification:mS(e.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const f=()=>i&&d(),m=r.subscribe(f);return a.add(d),()=>{m(),a.delete(d)}},dispatch(d){var f;try{return i=!((f=d==null?void 0:d.meta)!=null&&f[EU]),o=!i,o&&(s||(s=!0,l(c))),r.dispatch(d)}finally{i=!0}}})},_U=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new fS(e);return r&&i.push(AU(typeof r=="object"?r:void 0)),i},OU=!0;function RU(e){const t=$U(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(ly(n))a=JH(n);else throw new Error(pr(1));let l;typeof r=="function"?l=r(t):l=t();let c=Cp;i&&(c=CU({trace:!OU,...typeof i=="object"&&i}));const d=eU(...l),f=_U(d);let m=typeof s=="function"?s(f):f();const p=c(...m);return G9(a,o,p)}function gS(e){const t={},n=[];let r;const i={addCase(o,s){const a=typeof o=="string"?o:o.type;if(!a)throw new Error(pr(28));if(a in t)throw new Error(pr(29));return t[a]=s,i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function PU(e){return typeof e=="function"}function DU(e,t){let[n,r,i]=gS(t),o;if(PU(e))o=()=>hS(e());else{const a=hS(e);o=()=>a}function s(a=o(),l){let c=[n[l.type],...r.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return c.filter(d=>!!d).length===0&&(c=[i]),c.reduce((d,f)=>{if(f)if(xs(d)){const p=f(d,l);return p===void 0?d:p}else{if(yo(d))return sS(d,m=>f(m,l));{const m=f(d,l);if(m===void 0){if(d===null)return d;throw new Error(pr(9))}return m}}return d},a)}return s.getInitialState=o,s}var MU="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",IU=(e=21)=>{let t="",n=e;for(;n--;)t+=MU[Math.random()*64|0];return t},NU=Symbol.for("rtk-slice-createasyncthunk");function LU(e,t){return`${e}/${t}`}function FU({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[NU];return function(i){const{name:o,reducerPath:s=o}=i;if(!o)throw new Error(pr(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(zU()):i.reducers)||{},l=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(S,T){const E=typeof S=="string"?S:S.type;if(!E)throw new Error(pr(12));if(E in c.sliceCaseReducersByType)throw new Error(pr(13));return c.sliceCaseReducersByType[E]=T,d},addMatcher(S,T){return c.sliceMatchers.push({matcher:S,reducer:T}),d},exposeAction(S,T){return c.actionCreators[S]=T,d},exposeCaseReducer(S,T){return c.sliceCaseReducersByName[S]=T,d}};l.forEach(S=>{const T=a[S],E={reducerName:S,type:LU(o,S),createNotation:typeof i.reducers=="function"};UU(T)?WU(E,T,d,t):HU(E,T,d)});function f(){const[S={},T=[],E=void 0]=typeof i.extraReducers=="function"?gS(i.extraReducers):[i.extraReducers],k={...S,...c.sliceCaseReducersByType};return DU(i.initialState,_=>{for(let A in k)_.addCase(A,k[A]);for(let A of c.sliceMatchers)_.addMatcher(A.matcher,A.reducer);for(let A of T)_.addMatcher(A.matcher,A.reducer);E&&_.addDefaultCase(E)})}const m=S=>S,p=new Map;let g;function v(S,T){return g||(g=f()),g(S,T)}function b(){return g||(g=f()),g.getInitialState()}function x(S,T=!1){function E(_){let A=_[S];return typeof A>"u"&&T&&(A=b()),A}function k(_=m){const A=pS(p,T,{insert:()=>new WeakMap});return pS(A,_,{insert:()=>{const M={};for(const[D,j]of Object.entries(i.selectors??{}))M[D]=jU(j,_,b,T);return M}})}return{reducerPath:S,getSelectors:k,get selectors(){return k(E)},selectSlice:E}}const w={name:o,reducer:v,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:b,...x(s),injectInto(S,{reducerPath:T,...E}={}){const k=T??s;return S.inject({reducerPath:k,reducer:v},E),{...w,...x(k,!0)}}};return w}}function jU(e,t,n,r){function i(o,...s){let a=t(o);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return i.unwrapped=e,i}var BU=FU();function zU(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function HU({type:e,reducerName:t,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!VU(r))throw new Error(pr(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?zl(e,s):zl(e))}function UU(e){return e._reducerDefinitionType==="asyncThunk"}function VU(e){return e._reducerDefinitionType==="reducerWithPrepare"}function WU({type:e,reducerName:t},n,r,i){if(!i)throw new Error(pr(18));const{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:d}=n,f=i(e,o,d);r.exposeAction(t,f),s&&r.addCase(f.fulfilled,s),a&&r.addCase(f.pending,a),l&&r.addCase(f.rejected,l),c&&r.addMatcher(f.settled,c),r.exposeCaseReducer(t,{fulfilled:s||Pp,pending:a||Pp,rejected:l||Pp,settled:c||Pp})}function Pp(){}var qU=(e,t)=>{if(typeof e!="function")throw new Error(pr(32))},xy="listenerMiddleware",GU=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=zl(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(pr(21));return qU(o),{predicate:i,type:t,effect:o}},YU=Object.assign(e=>{const{type:t,predicate:n,effect:r}=GU(e);return{id:IU(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(pr(22))}}},{withTypes:()=>YU}),KU=Object.assign(zl(`${xy}/add`),{withTypes:()=>KU});zl(`${xy}/removeAll`);var ZU=Object.assign(zl(`${xy}/remove`),{withTypes:()=>ZU});function pr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Dp={exports:{}};/**
|
|
43
43
|
* @license
|
|
44
44
|
* Lodash <https://lodash.com/>
|
|
45
45
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@timum/booking",
|
|
3
|
-
"version": "1.7.
|
|
4
|
-
"next_version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
|
+
"next_version": "1.7.1",
|
|
5
5
|
"current_major_version": "1",
|
|
6
6
|
"license": "CC-BY-ND-4.0",
|
|
7
7
|
"type": "module",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@testing-library/jest-dom": "^5.16.4",
|
|
33
33
|
"@testing-library/react": "^13.3.0",
|
|
34
34
|
"@testing-library/user-event": "^13.5.0",
|
|
35
|
-
"@timum/timum_pdk": "^2.2.
|
|
35
|
+
"@timum/timum_pdk": "^2.2.1",
|
|
36
36
|
"add-to-calendar-button": "^1.18.8",
|
|
37
37
|
"framer-motion": "^11.0.3",
|
|
38
38
|
"i18next": "^21.10.0",
|
|
@@ -91,7 +91,8 @@
|
|
|
91
91
|
"np:preview": "np --no-cleanup --preview",
|
|
92
92
|
"np:publish": "yarn build && np --no-cleanup",
|
|
93
93
|
"s3:deleteCurrentVersionStage": "aws s3 rm \"s3://cdn.timum/bookingjs/${npm_package_current_major_version}/${npm_package_next_version}-rc\" --recursive",
|
|
94
|
-
"s3:
|
|
94
|
+
"s3:deleteLatestStage": "aws s3 rm \"s3://cdn.timum/bookingjs/${npm_package_current_major_version}/latest-rc\" --exclude \"*\" --include \"*.*\" --recursive",
|
|
95
|
+
"s3:publishToStage": "yarn build && yarn s3:deleteCurrentVersionStage && aws s3 sync ./build/ \"s3://cdn.timum/bookingjs/${npm_package_current_major_version}/${npm_package_next_version}-rc/\" && yarn s3:deleteLatestStage && aws s3 sync ./build/ \"s3://cdn.timum/bookingjs/${npm_package_current_major_version}/latest-rc/\"",
|
|
95
96
|
"s3:deleteLatestProd": "aws s3 rm \"s3://cdn.timum/bookingjs/${npm_package_current_major_version}\" --exclude \"*\" --include \"*.*\" --exclude \"*/*\" --recursive",
|
|
96
97
|
"s3:publishToProd": "yarn build && np --no-yarn --no-cleanup && aws s3 sync ./build/ \"s3://cdn.timum/bookingjs/${npm_package_current_major_version}/${npm_package_version}/\" && yarn s3:deleteLatestProd && aws s3 sync ./build/ \"s3://cdn.timum/bookingjs/${npm_package_current_major_version}/\"",
|
|
97
98
|
"s3:publishToProdWithoutBuild": "np --no-yarn --no-cleanup && aws s3 sync ./build/ \"s3://cdn.timum/bookingjs/${npm_package_current_major_version}/${npm_package_version}/\" && yarn s3:deleteLatestProd && aws s3 sync ./build/ \"s3://cdn.timum/bookingjs/${npm_package_current_major_version}/\"",
|