"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[408],{68070:(t,e,s)=>{s.d(e,{eQE:()=>r});var i=s(21583);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)}},68220:(t,e,s)=>{s.d(e,{n:()=>j});var i,r,o,n,a,u,h=s(22555),l=s(85672),d=s(4473),c=s(68341),v=s(9600),A=s(86547),p=s(30138),b=s(90010),f=(i=(0,c.A)("client"),r=(0,c.A)("currentResult"),o=(0,c.A)("currentMutation"),n=(0,c.A)("mutateOptions"),a=(0,c.A)("updateResult"),u=(0,c.A)("notify"),class extends p.Q{constructor(t,e){super(),Object.defineProperty(this,u,{value:O}),Object.defineProperty(this,a,{value:m}),Object.defineProperty(this,i,{writable:!0,value:void 0}),Object.defineProperty(this,r,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,n,{writable:!0,value:void 0}),(0,d.A)(this,r)[r]=void 0,(0,d.A)(this,i)[i]=t,this.setOptions(e),this.bindMethods(),(0,d.A)(this,a)[a]()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;const s=this.options;this.options=(0,d.A)(this,i)[i].defaultMutationOptions(t),(0,b.f8)(s,this.options)||(0,d.A)(this,i)[i].getMutationCache().notify({type:"observerOptionsUpdated",mutation:(0,d.A)(this,o)[o],observer:this}),null===(e=(0,d.A)(this,o)[o])||void 0===e||e.setOptions(this.options),null!==s&&void 0!==s&&s.mutationKey&&this.options.mutationKey&&(0,b.EN)(s.mutationKey)!==(0,b.EN)(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var t;this.hasListeners()||(null===(t=(0,d.A)(this,o)[o])||void 0===t||t.removeObserver(this))}onMutationUpdate(t){(0,d.A)(this,a)[a](),(0,d.A)(this,u)[u](t)}getCurrentResult(){return(0,d.A)(this,r)[r]}reset(){var t;null===(t=(0,d.A)(this,o)[o])||void 0===t||t.removeObserver(this),(0,d.A)(this,o)[o]=void 0,(0,d.A)(this,a)[a](),(0,d.A)(this,u)[u]()}mutate(t,e){var s;return(0,d.A)(this,n)[n]=e,null===(s=(0,d.A)(this,o)[o])||void 0===s||s.removeObserver(this),(0,d.A)(this,o)[o]=(0,d.A)(this,i)[i].getMutationCache().build((0,d.A)(this,i)[i],this.options),(0,d.A)(this,o)[o].addObserver(this),(0,d.A)(this,o)[o].execute(t)}});function m(){var t,e;const s=null!==(t=null===(e=(0,d.A)(this,o)[o])||void 0===e?void 0:e.state)&&void 0!==t?t:(0,v.$)();(0,d.A)(this,r)[r]=(0,h.A)((0,h.A)({},s),{},{isPending:"pending"===s.status,isSuccess:"success"===s.status,isError:"error"===s.status,isIdle:"idle"===s.status,mutate:this.mutate,reset:this.reset})}function O(t){A.j.batch((()=>{if((0,d.A)(this,n)[n]&&this.hasListeners()){const c=(0,d.A)(this,r)[r].variables,v=(0,d.A)(this,r)[r].context;var e,s,i,o;if("success"===(null===t||void 0===t?void 0:t.type))null===(e=(s=(0,d.A)(this,n)[n]).onSuccess)||void 0===e||e.call(s,t.data,c,v),null===(i=(o=(0,d.A)(this,n)[n]).onSettled)||void 0===i||i.call(o,t.data,null,c,v);else if("error"===(null===t||void 0===t?void 0:t.type)){var a,u,h,l;null===(a=(u=(0,d.A)(this,n)[n]).onError)||void 0===a||a.call(u,t.error,c,v),null===(h=(l=(0,d.A)(this,n)[n]).onSettled)||void 0===h||h.call(l,void 0,t.error,c,v)}}this.listeners.forEach((t=>{t((0,d.A)(this,r)[r])}))}))}var y=s(66299),k=s(42948);function j(t,e){const s=(0,y.jE)(e),[i]=l.useState((()=>new f(s,t)));l.useEffect((()=>{i.setOptions(t)}),[i,t]);const r=l.useSyncExternalStore(l.useCallback((t=>i.subscribe(A.j.batchCalls(t))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),o=l.useCallback(((t,e)=>{i.mutate(t,e).catch(w)}),[i]);if(r.error&&(0,k.G)(i.options.throwOnError,[r.error]))throw r.error;return(0,h.A)((0,h.A)({},r),{},{mutate:o,mutateAsync:r.mutate})}function w(){}},68320:(t,e,s)=>{s.d(e,{I:()=>o});var i=s(48149),r=s(59363);function o(t,e){return(0,r.t)(t,i.$,e)}},70775:(t,e,s)=>{var i=s(39744);e.A=void 0;var r=i(s(24956)),o=s(65908);e.A=(0,r.default)((0,o.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack")}}]);