"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[5180],{36150:(t,s,e)=>{e.d(s,{I:()=>a});var i=e(69347),r=e(1729);function a(t,s){return(0,r.t)(t,i.$,s)}},51778:(t,s,e)=>{e.d(s,{n:()=>y});var i,r,a,n,o,h,l=e(89379),u=e(9950),d=e(39790),c=e(55149),v=e(64137),A=e(83568),p=e(53167),b=e(92750),m=e(15941),f=e(95732),k=e(61664),w=(i=new WeakMap,r=new WeakMap,a=new WeakMap,n=new WeakMap,o=new WeakSet,h=new WeakSet,class extends f.Q{constructor(t,s){super(),(0,d.A)(this,h),(0,d.A)(this,o),(0,c.A)(this,i,{writable:!0,value:void 0}),(0,c.A)(this,r,{writable:!0,value:void 0}),(0,c.A)(this,a,{writable:!0,value:void 0}),(0,c.A)(this,n,{writable:!0,value:void 0}),(0,p.A)(this,r,void 0),(0,p.A)(this,i,t),this.setOptions(s),this.bindMethods(),(0,A.A)(this,o,M).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var s;const e=this.options;this.options=(0,v.A)(this,i).defaultMutationOptions(t),(0,k.f8)(e,this.options)||(0,v.A)(this,i).getMutationCache().notify({type:"observerOptionsUpdated",mutation:(0,v.A)(this,a),observer:this}),null===(s=(0,v.A)(this,a))||void 0===s||s.setOptions(this.options),null!==e&&void 0!==e&&e.mutationKey&&this.options.mutationKey&&(0,k.EN)(e.mutationKey)!==(0,k.EN)(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var t;this.hasListeners()||(null===(t=(0,v.A)(this,a))||void 0===t||t.removeObserver(this))}onMutationUpdate(t){(0,A.A)(this,o,M).call(this),(0,A.A)(this,h,C).call(this,t)}getCurrentResult(){return(0,v.A)(this,r)}reset(){var t;null===(t=(0,v.A)(this,a))||void 0===t||t.removeObserver(this),(0,p.A)(this,a,void 0),(0,A.A)(this,o,M).call(this),(0,A.A)(this,h,C).call(this)}mutate(t,s){var e;return(0,p.A)(this,n,s),null===(e=(0,v.A)(this,a))||void 0===e||e.removeObserver(this),(0,p.A)(this,a,(0,v.A)(this,i).getMutationCache().build((0,v.A)(this,i),this.options)),(0,v.A)(this,a).addObserver(this),(0,v.A)(this,a).execute(t)}});function M(){var t,s;const e=null!==(t=null===(s=(0,v.A)(this,a))||void 0===s?void 0:s.state)&&void 0!==t?t:(0,b.$)();(0,p.A)(this,r,(0,l.A)((0,l.A)({},e),{},{isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}))}function C(t){m.j.batch((()=>{if((0,v.A)(this,n)&&this.hasListeners()){const d=(0,v.A)(this,r).variables,c=(0,v.A)(this,r).context;var s,e,i,a;if("success"===(null===t||void 0===t?void 0:t.type))null===(s=(e=(0,v.A)(this,n)).onSuccess)||void 0===s||s.call(e,t.data,d,c),null===(i=(a=(0,v.A)(this,n)).onSettled)||void 0===i||i.call(a,t.data,null,d,c);else if("error"===(null===t||void 0===t?void 0:t.type)){var o,h,l,u;null===(o=(h=(0,v.A)(this,n)).onError)||void 0===o||o.call(h,t.error,d,c),null===(l=(u=(0,v.A)(this,n)).onSettled)||void 0===l||l.call(u,void 0,t.error,d,c)}}this.listeners.forEach((t=>{t((0,v.A)(this,r))}))}))}var O=e(15441),g=e(98986);function y(t,s){const e=(0,O.jE)(s),[i]=u.useState((()=>new w(e,t)));u.useEffect((()=>{i.setOptions(t)}),[i,t]);const r=u.useSyncExternalStore(u.useCallback((t=>i.subscribe(m.j.batchCalls(t))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),a=u.useCallback(((t,s)=>{i.mutate(t,s).catch(E)}),[i]);if(r.error&&(0,g.G)(i.options.throwOnError,[r.error]))throw r.error;return(0,l.A)((0,l.A)({},r),{},{mutate:a,mutateAsync:r.mutate})}function E(){}},63189:(t,s,e)=>{var i=e(24994);s.A=void 0;var r=i(e(79526)),a=e(44414);s.A=(0,r.default)((0,a.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack")},99324:(t,s,e)=>{e.d(s,{eQE:()=>r});var i=e(99230);function r(t){return(0,i.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 19l-7-7m0 0l7-7m-7 7h18"}}]})(t)}}}]);