|
- (window.webpackJsonp=window.webpackJsonp||[]).push([[13],{"+QN0":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("q1tI"),r=n.n(i),a=r.a.createContext(void 0),o=r.a.createContext(!1);function s(t){return t&&"undefined"!==typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=a),window.ReactQueryClientContext):a}var u=function(t){var e=t.client,n=t.contextSharing,i=void 0!==n&&n,a=t.children;r.a.useEffect((function(){return e.mount(),function(){e.unmount()}}),[e]);var u=s(i);return(r.a.createElement(o.Provider,{value:i},r.a.createElement(u.Provider,{value:e},a)))}},"1ZD8":function(t,e,n){"use strict";var i=n("C4XL");n.o(i,"QueryClient")&&n.d(e,"QueryClient",(function(){return i.QueryClient})),n.o(i,"QueryClientProvider")&&n.d(e,"QueryClientProvider",(function(){return i.QueryClientProvider}));var r=n("KtxU");n.o(r,"QueryClient")&&n.d(e,"QueryClient",(function(){return r.QueryClient})),n.o(r,"QueryClientProvider")&&n.d(e,"QueryClientProvider",(function(){return r.QueryClientProvider}))},"1aiA":function(t,e,n){"use strict";var i=n("GBAL"),r=n("i8i4"),a=n.n(r).a.unstable_batchedUpdates;i.a.setBatchNotifyFunction(a)},"7WNa":function(t,e,n){"use strict";var i=n("rePB"),r=n("eDSW");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}var o={section:{backgroundColor:"#FFFFFF",display:"block",width:"100%",position:"relative",padding:"0"},title:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){Object(i.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},r.v,{marginTop:"30px",minHeight:"32px",textDecoration:"none"}),container:r.c};e.a=o},"8E12":function(t,e,n){"use strict";n.d(e,"a",(function(){return P}));var i=n("o0o1"),r=n.n(i),a=n("Ff2n"),o=n("q1tI"),s=n.n(o),u=n("YFqc"),c=n.n(u),l=n("R/WZ"),f=n("eD//"),h=n("tVbE"),d=n("AqyA"),p=n("LYUY"),v=Object(p.a)(s.a.createElement("path",{d:"M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"}),"Apps"),m=n("UFp1"),y=n("QOEo"),b=n("Kg+a"),g=n("0G1C"),O=n("nJn1"),j=n.n(O),x=s.a.createElement,w=Object(l.a)(g.a);function P(t){var e=t.username,n=(Object(a.a)(t,["username"]),w());return x(f.a,{className:n.list},x(h.a,{className:n.listItem},x(c.a,{href:"/yamaha/home"},x(b.a,{color:"transparent",className:n.navLink},x("img",{src:j.a,width:"180px"})))),x(h.a,{className:n.listItem},x(c.a,{href:"/yamaha/home"},x(b.a,{color:"transparent",className:n.navLink,style:{marginTop:"10px"}},x(d.a,{className:n.icons},"home")," Home"))),x(h.a,{className:n.listItem,style:{marginTop:"10px"}},x(y.a,{noLiPadding:!0,navDropdown:!0,buttonText:"Product",buttonProps:{className:n.navLink,color:"transparent"},buttonIcon:v,dropdownList:[x("a",{href:"/yamaha/product/product",className:n.dropdownLink},"Motor"),x("a",{href:"/yamaha/sparepart/sparepart",className:n.dropdownLink},"Sparepart & Accessories"),x("a",{href:"https://booking.thamrin.co.id/",className:n.dropdownLink},"Service"),x("a",{href:"/yamaha/dealers",className:n.dropdownLink},"Dealers")]})),x(h.a,{className:n.listItem,style:{marginTop:"10px"}},x(c.a,{href:"/yamaha/latest_news/latestnews"},x(b.a,{color:"transparent",className:n.navLink},x(d.a,{className:n.icons},"event")," Latest News"))),x(h.a,{className:n.listItem,style:{marginTop:"10px"}},x(b.a,{href:"/yamaha/carrer/carrer",color:"transparent",className:n.navLink},x(d.a,{className:n.icons},"wallet_travel")," Career")),x(h.a,{className:n.listItem,style:{marginTop:"10px"}},x(b.a,{href:"/yamaha/abous_us/aboutus",color:"transparent",className:n.navLink},x(d.a,{className:n.icons},"account_balance")," About Us")),x(h.a,{className:n.listItem,style:{marginTop:"10px"}},x(b.a,{href:"/yamaha/profile/profile",color:"transparent",className:n.navLink},x(d.a,{className:n.icons},"people")," Profile")),x(h.a,{className:n.listItem,style:{marginTop:"10px"}},e&&""!=e?x(y.a,{noLiPadding:!0,navDropdown:!0,buttonText:e.length>12?e.substring(0,9)+"..":e,buttonProps:{className:n.navLink,color:"transparent"},buttonIcon:m.a,dropdownList:[x("div",{onClick:function(t){return r.a.async((function(e){for(;;)switch(e.prev=e.next){case 0:t.preventDefault(),fetch("/api/auth/logout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({p:"YAMAHA"})}).then((function(t){window.location.href="../yamaha/home"}));case 2:case"end":return e.stop()}}),null,null,null,Promise)}},x("a",{className:n.dropdownLink},x(d.a,{className:n.icons},"exit_to_app")," Logout")),x("div",null,x("a",{className:n.dropdownLink,href:"/yamaha/order/order"},x(d.a,{className:n.icons},"shopping_cart")," Pesanan Saya"))]}):x(b.a,{href:"/yamaha/login",className:n.registerNavLink,color:"info",round:!0},x(d.a,{className:n.icons},"input")," Login")))}},C4XL:function(t,e,n){"use strict";var i=n("PC6D");n.d(e,"QueryClient",(function(){return i.a}));var r=n("tCF2");n.o(r,"QueryClientProvider")&&n.d(e,"QueryClientProvider",(function(){return r.QueryClientProvider}))},FoiA:function(t,e,n){"use strict";n.d(e,"a",(function(){return N}));var i=n("ODXe"),r=n("q1tI"),a=n.n(r),o=n("17x9"),s=n.n(o),u=n("R/WZ"),c=n("Ff2n"),l=n("rePB"),f=n("wx14"),h=n("iuhU"),d=n("H2TA"),p=n("kKAo"),v=n("ye/S"),m=r.forwardRef((function(t,e){var n=t.action,i=t.classes,a=t.className,o=t.message,s=t.role,u=void 0===s?"alert":s,l=Object(c.a)(t,["action","classes","className","message","role"]);return(r.createElement(p.a,Object(f.a)({role:u,square:!0,elevation:6,className:Object(h.a)(i.root,a),ref:e},l),r.createElement("div",{className:i.message},o),n?r.createElement("div",{className:i.action},n):null))})),y=Object(d.a)((function(t){var e="light"===t.palette.type?.8:.98,n=Object(v.b)(t.palette.background.default,e);return{root:Object(f.a)({},t.typography.body2,Object(l.a)({color:t.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:t.shape.borderRadius,flexGrow:1},t.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(m),b=n("PsDL"),g=n("AqyA"),O=n("ZPUd"),j=n.n(O),x=n("eDSW");function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function P(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?w(Object(n),!0).forEach((function(e){Object(l.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var C={root:P({},x.g,{position:"relative",padding:"20px 15px",lineHeight:"20px",marginBottom:"20px",fontSize:"14px",backgroundColor:"white",color:"#555555",borderRadius:"0px",maxWidth:"100%",minWidth:"auto",boxShadow:"0 12px 20px -10px rgba(255, 255, 255, 0.28), 0 4px 20px 0px rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(255, 255, 255, 0.2)"}),info:P({backgroundColor:"#212121",color:"#ffffff"},x.k),success:P({backgroundColor:"#5cb860",color:"#ffffff"},x.s),warning:P({backgroundColor:"#ffa21a",color:"#ffffff"},x.x),danger:P({backgroundColor:"#f55a4e",color:"#ffffff"},x.d),primary:P({backgroundColor:"#af2cc5",color:"#ffffff"},x.n),message:{padding:"0",display:"block",maxWidth:"89%","&,& *":{letterSpacing:"normal"}},close:{width:"14px",height:"14px"},iconButton:{width:"24px",height:"24px",float:"right",fontSize:"1.5rem",fontWeight:"500",lineHeight:"1",position:"absolute",right:"-4px",top:"0",padding:"0"},icon:{display:"block",float:"left",marginRight:"1.071rem"},container:P({},x.c,{position:"relative"})},q=a.a.createElement,F=Object(u.a)(C);function N(t){var e=t.message,n=t.color,r=t.close,o=t.icon,s=F(),u=[];void 0!==r&&(u=[q(b.a,{className:s.iconButton,key:"close","aria-label":"Close",color:"inherit",onClick:function(){d(null)}},q(j.a,{className:s.close}))]);var c=null;switch(typeof o){case"object":c=q(t.icon,{className:s.icon});break;case"string":c=q(g.a,{className:s.icon},t.icon);break;default:c=null}var l=a.a.useState(q(y,{message:q("div",null,c,e,void 0!==r?u:null),classes:{root:s.root+" "+s[n],message:s.message+" "+s.container}})),f=Object(i.a)(l,2),h=f[0],d=f[1];return h}N.propTypes={message:s.a.node.isRequired,color:s.a.oneOf(["info","success","warning","danger","primary"]),close:s.a.bool,icon:s.a.oneOfType([s.a.object,s.a.string])}},"G8/n":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return o}));var i=n("q/uT"),r=console||{error:i.h,warn:i.h,log:i.h};function a(){return r}function o(t){r=t}},GBAL:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("q/uT"),r=new(function(){function t(){this.queue=[],this.transactions=0,this.notifyFn=function(t){t()},this.batchNotifyFn=function(t){t()}}var e=t.prototype;return e.batch=function(t){this.transactions++;var e=t();return this.transactions--,this.transactions||this.flush(),e},e.schedule=function(t){var e=this;this.transactions?this.queue.push(t):Object(i.m)((function(){e.notifyFn(t)}))},e.batchCalls=function(t){var e=this;return function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];e.schedule((function(){t.apply(void 0,i)}))}},e.flush=function(){var t=this,e=this.queue;this.queue=[],e.length&&Object(i.m)((function(){t.batchNotifyFn((function(){e.forEach((function(e){t.notifyFn(e)}))}))}))},e.setNotifyFunction=function(t){this.notifyFn=t},e.setBatchNotifyFunction=function(t){this.batchNotifyFn=t},t}())},HXcA:function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var i=n("rePB"),r=n("q1tI"),a=n.n(r),o=n("TSYQ"),s=n.n(o),u=n("eD//"),c=n("tVbE"),l=n("R/WZ"),f=(n("mtPR"),n("i4t8")),h=(n("A2So"),n("oLCs")),d=a.a.createElement,p=Object(l.a)(h.a);function v(t){var e,n,r=p(),a=t.whiteFont;s()((e={},Object(i.a)(e,r.footer,!0),Object(i.a)(e,r.footerWhiteFont,a),e)),s()((n={},Object(i.a)(n,r.a,!0),Object(i.a)(n,r.footerWhiteFont,a),n));return d(f.a,{xs:12},d("link",{rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"}),d("br",null),d("br",null),d("div",{align:"center"},d(u.a,{className:r.list},d(c.a,{className:r.inlineBlock},d("a",{href:"/yamaha/home",className:r.block}," Home ")),d(c.a,{className:r.inlineBlock},d("a",{href:"/yamaha/product/product",className:r.block}," Motor ")),d(c.a,{className:r.inlineBlock},d("a",{href:"/yamaha/product/ygp",className:r.block}," YGP ")),d(c.a,{className:r.inlineBlock},d("a",{href:"/yamaha/product/yamalube",className:r.block}," Yamalube ")),d(c.a,{className:r.inlineBlock},d("a",{href:"/yamaha/product/apparel",className:r.block}," Apparel ")),d(c.a,{className:r.inlineBlock},d("a",{href:"/yamaha/product/helmet",className:r.block}," Helmet ")),d(c.a,{className:r.inlineBlock},d("a",{href:"/yamaha/product/accessories",className:r.block}," Accessories ")),d(c.a,{className:r.inlineBlock},d("a",{href:"/yamaha/product/service",className:r.block}," Service ")),d(c.a,{className:r.inlineBlock},d("a",{href:"/yamaha/product/dealer",className:r.block}," Dealer ")),d(c.a,{className:r.inlineBlock},d("a",{href:"/yamaha/latestsnews",className:r.block}," Latest News ")),d(c.a,{className:r.inlineBlock},d("a",{href:"/yamaha/carrer",className:r.block}," Carrer ")),d(c.a,{className:r.inlineBlock},d("a",{href:"/yamaha/about_us/aboutus",className:r.block}," About Us ")))),d("div",{align:"center"},d(u.a,{className:r.list},d(c.a,{className:r.inlineBlock,style:{padding:"10px"}},d("a",{href:"#",class:"fa fa-facebook"})),d(c.a,{className:r.inlineBlock,style:{padding:"10px"}},d("a",{href:"#",class:"fa fa-instagram"})),d(c.a,{className:r.inlineBlock,style:{padding:"10px"}},d("a",{href:"#",class:"fa fa-twitter"})),d(c.a,{className:r.inlineBlock,style:{padding:"10px"}},d("a",{href:"#",class:"fa fa-youtube"})))),d("br",null),d("br",null),d("div",{align:"center"},"\xa9 ",1900+(new Date).getYear()," , All Right Reserved"," "," by"," "," @Thamrin Brothers"),d("br",null),d("br",null))}},KtxU:function(t,e,n){"use strict";n("1aiA"),n("xOaM");var i=n("+QN0");n.d(e,"QueryClientProvider",(function(){return i.a}));var r=n("aclS");n.o(r,"QueryClient")&&n.d(e,"QueryClient",(function(){return r.QueryClient}))},LHRF:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("dI71"),r=n("q/uT"),a=n("wx14"),o=n("GBAL"),s=n("G8/n"),u=n("x4JK"),c=function(){function t(t){this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||this.getDefaultState(this.options),this.state=this.initialState,this.scheduleGc()}var e=t.prototype;return e.setOptions=function(t){var e;this.options=Object(a.a)({},this.defaultOptions,t),this.cacheTime=Math.max(this.cacheTime||0,null!=(e=this.options.cacheTime)?e:3e5)},e.setDefaultOptions=function(t){this.defaultOptions=t},e.scheduleGc=function(){var t=this;this.clearGcTimeout(),Object(r.e)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){t.optionalRemove()}),this.cacheTime))},e.clearGcTimeout=function(){clearTimeout(this.gcTimeout),this.gcTimeout=void 0},e.optionalRemove=function(){this.observers.length||this.state.isFetching||this.cache.remove(this)},e.setData=function(t,e){var n,i,a=this.state.data,o=Object(r.a)(t,a);return(null==(n=(i=this.options).isDataEqual)?void 0:n.call(i,a,o))?o=a:!1!==this.options.structuralSharing&&(o=Object(r.l)(a,o)),this.dispatch({data:o,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt}),o},e.setState=function(t,e){this.dispatch({type:"setState",state:t,setStateOptions:e})},e.cancel=function(t){var e,n=this.promise;return null==(e=this.retryer)||e.cancel(t),n?n.then(r.h).catch(r.h):Promise.resolve()},e.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},e.reset=function(){this.destroy(),this.setState(this.initialState)},e.isActive=function(){return this.observers.some((function(t){return!1!==t.options.enabled}))},e.isFetching=function(){return this.state.isFetching},e.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(t){return t.getCurrentResult().isStale}))},e.isStaleByTime=function(t){return void 0===t&&(t=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!Object(r.o)(this.state.dataUpdatedAt,t)},e.onFocus=function(){var t,e=this.observers.find((function(t){return t.shouldFetchOnWindowFocus()}));e&&e.refetch(),null==(t=this.retryer)||t.continue()},e.onOnline=function(){var t,e=this.observers.find((function(t){return t.shouldFetchOnReconnect()}));e&&e.refetch(),null==(t=this.retryer)||t.continue()},e.addObserver=function(t){-1===this.observers.indexOf(t)&&(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))},e.removeObserver=function(t){-1!==this.observers.indexOf(t)&&(this.observers=this.observers.filter((function(e){return e!==t})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:t}))},e.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},e.fetch=function(t,e){var n,i,r=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==e?void 0:e.cancelRefetch))this.cancel({silent:!0});else if(this.promise)return this.promise;if(t&&this.setOptions(t),!this.options.queryFn){var a=this.observers.find((function(t){return t.options.queryFn}));a&&this.setOptions(a.options)}var o,c,l={queryKey:this.queryKey,pageParam:void 0},f={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:function(){return r.options.queryFn?r.options.queryFn(l):Promise.reject("Missing queryFn")}};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(o=this.options.behavior)||o.onFetch(f));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(i=f.fetchOptions)?void 0:i.meta))||this.dispatch({type:"fetch",meta:null==(c=f.fetchOptions)?void 0:c.meta});return this.retryer=new u.a({fn:f.fetchFn,onSuccess:function(t){r.setData(t),0===r.cacheTime&&r.optionalRemove()},onError:function(t){Object(u.c)(t)&&t.silent||r.dispatch({type:"error",error:t}),Object(u.c)(t)||(r.cache.config.onError&&r.cache.config.onError(t,r),Object(s.a)().error(t)),0===r.cacheTime&&r.optionalRemove()},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay}),this.promise=this.retryer.promise,this.promise},e.dispatch=function(t){var e=this;this.state=this.reducer(this.state,t),o.a.batch((function(){e.observers.forEach((function(e){e.onQueryUpdate(t)})),e.cache.notify({query:e,type:"queryUpdated",action:t})}))},e.getDefaultState=function(t){var e="function"===typeof t.initialData?t.initialData():t.initialData,n="undefined"!==typeof t.initialData?"function"===typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0,i="undefined"!==typeof e;return{data:e,dataUpdateCount:0,dataUpdatedAt:i?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:i?"success":"idle"}},e.reducer=function(t,e){var n,i;switch(e.type){case"failed":return Object(a.a)({},t,{fetchFailureCount:t.fetchFailureCount+1});case"pause":return Object(a.a)({},t,{isPaused:!0});case"continue":return Object(a.a)({},t,{isPaused:!1});case"fetch":return Object(a.a)({},t,{fetchFailureCount:0,fetchMeta:null!=(n=e.meta)?n:null,isFetching:!0,isPaused:!1,status:t.dataUpdatedAt?t.status:"loading"});case"success":return Object(a.a)({},t,{data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(i=e.dataUpdatedAt)?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var r=e.error;return Object(u.c)(r)&&r.revert&&this.revertState?Object(a.a)({},this.revertState):Object(a.a)({},t,{error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return Object(a.a)({},t,{isInvalidated:!0});case"setState":return Object(a.a)({},t,e.state);default:return t}},t}(),l=function(t){function e(e){var n;return(n=t.call(this)||this).config=e||{},n.queries=[],n.queriesMap={},n}Object(i.a)(e,t);var n=e.prototype;return n.build=function(t,e,n){var i,a=e.queryKey,o=null!=(i=e.queryHash)?i:Object(r.c)(a,e),s=this.get(o);return s||(s=new c({cache:this,queryKey:a,queryHash:o,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(s)),s},n.add=function(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"queryAdded",query:t}))},n.remove=function(t){var e=this.queriesMap[t.queryHash];e&&(t.destroy(),this.queries=this.queries.filter((function(e){return e!==t})),e===t&&delete this.queriesMap[t.queryHash],this.notify({type:"queryRemoved",query:t}))},n.clear=function(){var t=this;o.a.batch((function(){t.queries.forEach((function(e){t.remove(e)}))}))},n.get=function(t){return this.queriesMap[t]},n.getAll=function(){return this.queries},n.find=function(t,e){var n=Object(r.i)(t,e)[0];return"undefined"===typeof n.exact&&(n.exact=!0),this.queries.find((function(t){return Object(r.g)(n,t)}))},n.findAll=function(t,e){var n=Object(r.i)(t,e)[0];return n?this.queries.filter((function(t){return Object(r.g)(n,t)})):this.queries},n.notify=function(t){var e=this;o.a.batch((function(){e.listeners.forEach((function(e){e(t)}))}))},n.onFocus=function(){var t=this;o.a.batch((function(){t.queries.forEach((function(t){t.onFocus()}))}))},n.onOnline=function(){var t=this;o.a.batch((function(){t.queries.forEach((function(t){t.onOnline()}))}))},e}(n("S6zn").a)},LYUY:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("wx14"),r=n("q1tI"),a=n.n(r),o=n("HR5l");function s(t,e){var n=a.a.memo(a.a.forwardRef((function(e,n){return a.a.createElement(o.a,Object(i.a)({ref:n},e),t)})));return n.muiName=o.a.muiName,n}},PC6D:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=n("wx14"),r=n("q/uT"),a=n("LHRF"),o=n("mKIw"),s=n("Yyzc"),u=n("c6YU"),c=n("GBAL"),l=n("x4JK");function f(t,e){return null==t.getNextPageParam?void 0:t.getNextPageParam(e[e.length-1],e)}function h(t,e){return null==t.getPreviousPageParam?void 0:t.getPreviousPageParam(e[0],e)}var d=function(){function t(t){void 0===t&&(t={}),this.queryCache=t.queryCache||new a.a,this.mutationCache=t.mutationCache||new o.a,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var e=t.prototype;return e.mount=function(){var t=this;this.unsubscribeFocus=s.a.subscribe((function(){s.a.isFocused()&&u.a.isOnline()&&(t.mutationCache.onFocus(),t.queryCache.onFocus())})),this.unsubscribeOnline=u.a.subscribe((function(){s.a.isFocused()&&u.a.isOnline()&&(t.mutationCache.onOnline(),t.queryCache.onOnline())}))},e.unmount=function(){var t,e;null==(t=this.unsubscribeFocus)||t.call(this),null==(e=this.unsubscribeOnline)||e.call(this)},e.isFetching=function(t,e){var n=Object(r.i)(t,e)[0];return n.fetching=!0,this.queryCache.findAll(n).length},e.isMutating=function(t){return this.mutationCache.findAll(Object(i.a)({},t,{fetching:!0})).length},e.getQueryData=function(t,e){var n;return null==(n=this.queryCache.find(t,e))?void 0:n.state.data},e.setQueryData=function(t,e,n){var i=Object(r.j)(t),a=this.defaultQueryOptions(i);return this.queryCache.build(this,a).setData(e,n)},e.getQueryState=function(t,e){var n;return null==(n=this.queryCache.find(t,e))?void 0:n.state},e.removeQueries=function(t,e){var n=Object(r.i)(t,e)[0],i=this.queryCache;c.a.batch((function(){i.findAll(n).forEach((function(t){i.remove(t)}))}))},e.resetQueries=function(t,e,n){var a=this,o=Object(r.i)(t,e,n),s=o[0],u=o[1],l=this.queryCache,f=Object(i.a)({},s,{active:!0});return c.a.batch((function(){return l.findAll(s).forEach((function(t){t.reset()})),a.refetchQueries(f,u)}))},e.cancelQueries=function(t,e,n){var i=this,a=Object(r.i)(t,e,n),o=a[0],s=a[1],u=void 0===s?{}:s;"undefined"===typeof u.revert&&(u.revert=!0);var l=c.a.batch((function(){return i.queryCache.findAll(o).map((function(t){return t.cancel(u)}))}));return Promise.all(l).then(r.h).catch(r.h)},e.invalidateQueries=function(t,e,n){var a,o=this,s=Object(r.i)(t,e,n),u=s[0],l=s[1],f=Object(i.a)({},u,{active:null==(a=u.refetchActive)||a,inactive:u.refetchInactive});return c.a.batch((function(){return o.queryCache.findAll(u).forEach((function(t){t.invalidate()})),o.refetchQueries(f,l)}))},e.refetchQueries=function(t,e,n){var i=this,a=Object(r.i)(t,e,n),o=a[0],s=a[1],u=c.a.batch((function(){return i.queryCache.findAll(o).map((function(t){return t.fetch()}))})),l=Promise.all(u).then(r.h);return(null==s?void 0:s.throwOnError)||(l=l.catch(r.h)),l},e.fetchQuery=function(t,e,n){var i=Object(r.j)(t,e,n),a=this.defaultQueryOptions(i);"undefined"===typeof a.retry&&(a.retry=!1);var o=this.queryCache.build(this,a);return o.isStaleByTime(a.staleTime)?o.fetch(a):Promise.resolve(o.state.data)},e.prefetchQuery=function(t,e,n){return this.fetchQuery(t,e,n).then(r.h).catch(r.h)},e.fetchInfiniteQuery=function(t,e,n){var i=Object(r.j)(t,e,n);return i.behavior={onFetch:function(t){t.fetchFn=function(){var e,n,i,r,a,o=null==(e=t.fetchOptions)?void 0:null==(n=e.meta)?void 0:n.fetchMore,s=null==o?void 0:o.pageParam,u="forward"===(null==o?void 0:o.direction),c="backward"===(null==o?void 0:o.direction),d=(null==(i=t.state.data)?void 0:i.pages)||[],p=(null==(r=t.state.data)?void 0:r.pageParams)||[],v=p,m=!1,y=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},b=function(e,n,i,r){if(m)return Promise.reject("Cancelled");if("undefined"===typeof i&&!n&&e.length)return Promise.resolve(e);var a={queryKey:t.queryKey,pageParam:i},o=y(a),s=Promise.resolve(o).then((function(t){return v=r?[i].concat(v):[].concat(v,[i]),r?[t].concat(e):[].concat(e,[t])}));return Object(l.b)(o)&&(s.cancel=o.cancel),s};if(d.length)if(u){var g="undefined"!==typeof s,O=g?s:f(t.options,d);a=b(d,g,O)}else if(c){var j="undefined"!==typeof s,x=j?s:h(t.options,d);a=b(d,j,x,!0)}else!function(){v=[];var e="undefined"===typeof t.options.getNextPageParam;a=b([],e,p[0]);for(var n=function(n){a=a.then((function(i){var r=e?p[n]:f(t.options,i);return b(i,e,r)}))},i=1;i<d.length;i++)n(i)}();else a=b([]);var w=a.then((function(t){return{pages:t,pageParams:v}}));return w.cancel=function(){m=!0,Object(l.b)(a)&&a.cancel()},w}}},this.fetchQuery(i)},e.prefetchInfiniteQuery=function(t,e,n){return this.fetchInfiniteQuery(t,e,n).then(r.h).catch(r.h)},e.cancelMutations=function(){var t=this,e=c.a.batch((function(){return t.mutationCache.getAll().map((function(t){return t.cancel()}))}));return Promise.all(e).then(r.h).catch(r.h)},e.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},e.executeMutation=function(t){return this.mutationCache.build(this,t).execute()},e.getQueryCache=function(){return this.queryCache},e.getMutationCache=function(){return this.mutationCache},e.getDefaultOptions=function(){return this.defaultOptions},e.setDefaultOptions=function(t){this.defaultOptions=t},e.setQueryDefaults=function(t,e){var n=this.queryDefaults.find((function(e){return Object(r.b)(t)===Object(r.b)(e.queryKey)}));n?n.defaultOptions=e:this.queryDefaults.push({queryKey:t,defaultOptions:e})},e.getQueryDefaults=function(t){var e;return t?null==(e=this.queryDefaults.find((function(e){return Object(r.k)(t,e.queryKey)})))?void 0:e.defaultOptions:void 0},e.setMutationDefaults=function(t,e){var n=this.mutationDefaults.find((function(e){return Object(r.b)(t)===Object(r.b)(e.mutationKey)}));n?n.defaultOptions=e:this.mutationDefaults.push({mutationKey:t,defaultOptions:e})},e.getMutationDefaults=function(t){var e;return t?null==(e=this.mutationDefaults.find((function(e){return Object(r.k)(t,e.mutationKey)})))?void 0:e.defaultOptions:void 0},e.defaultQueryOptions=function(t){if(null==t?void 0:t._defaulted)return t;var e=Object(i.a)({},this.defaultOptions.queries,this.getQueryDefaults(null==t?void 0:t.queryKey),t,{_defaulted:!0});return!e.queryHash&&e.queryKey&&(e.queryHash=Object(r.c)(e.queryKey,e)),e},e.defaultQueryObserverOptions=function(t){return this.defaultQueryOptions(t)},e.defaultMutationOptions=function(t){return(null==t?void 0:t._defaulted)?t:Object(i.a)({},this.defaultOptions.mutations,this.getMutationDefaults(null==t?void 0:t.mutationKey),t,{_defaulted:!0})},e.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},t}()},QMLM:function(t,e,n){"use strict";var i=n("q1tI"),r=n.n(i),a=n("R/WZ"),o=n("FoiA"),s=n("7WNa"),u=r.a.createElement,c=Object(a.a)(s.a);e.a=function(){var t=c();return u("div",{align:"center"},u("div",{align:"center",className:t.section,id:"notifications"},u(o.a,{message:u("h4",null,"Thamrin Group bersama Anda melawan COVID-19. Untuk informasi silakan ",u("a",{href:"https://covid19.go.id/",target:"_blank",className:t.block},"klik di sini.")),align:"center",color:"info"})))}},S6zn:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=function(){function t(){this.listeners=[]}var e=t.prototype;return e.subscribe=function(t){var e=this,n=t||function(){};return this.listeners.push(n),this.onSubscribe(),function(){e.listeners=e.listeners.filter((function(t){return t!==n})),e.onUnsubscribe()}},e.hasListeners=function(){return this.listeners.length>0},e.onSubscribe=function(){},e.onUnsubscribe=function(){},t}()},UFp1:function(t,e,n){"use strict";var i=n("q1tI"),r=n.n(i),a=n("LYUY");e.a=Object(a.a)(r.a.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person")},UsYt:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var i=n("wx14"),r=n("rePB"),a=n("Ff2n"),o=n("q1tI"),s=n.n(o),u=n("TSYQ"),c=n.n(u),l=n("R/WZ"),f={cardBody:{padding:"0.9375rem 1.875rem",flex:"1 1 auto"}},h=s.a.createElement,d=Object(l.a)(f);function p(t){var e,n=d(),o=t.className,s=t.children,u=Object(a.a)(t,["className","children"]),l=c()((e={},Object(r.a)(e,n.cardBody,!0),Object(r.a)(e,o,void 0!==o),e));return h("div",Object(i.a)({className:l},u),s)}},Yyzc:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("dI71"),r=n("S6zn"),a=n("q/uT"),o=new(function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.onSubscribe=function(){this.removeEventListener||this.setDefaultEventListener()},n.setEventListener=function(t){var e=this;this.removeEventListener&&this.removeEventListener(),this.removeEventListener=t((function(t){"boolean"===typeof t?e.setFocused(t):e.onFocus()}))},n.setFocused=function(t){this.focused=t,t&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(t){t()}))},n.isFocused=function(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},n.setDefaultEventListener=function(){var t;!a.d&&(null==(t=window)?void 0:t.addEventListener)&&this.setEventListener((function(t){return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),function(){window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}))},e}(r.a))},Z2Lm:function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var i=n("rePB"),r=n("ODXe"),a=n("q1tI"),o=n.n(a),s=n("TSYQ"),u=n.n(s),c=n("R/WZ"),l=function(t){return{parallax:{height:"90vh",maxHeight:"1000px",overflow:"hidden",position:"relative",backgroundPosition:"center top",backgroundSize:"cover",margin:"0",padding:"0",border:"0",display:"flex",alignItems:"center"},filter:{"&:before":{background:"#212121"},"&:after,&:before":{position:"absolute",zIndex:"1",width:"100%",height:"100%",display:"block",left:"0",top:"0",content:"''"}},small:{height:"380px"},parallaxResponsive:Object(i.a)({},t.breakpoints.down("md"),{minHeight:"660px"})}},f=o.a.createElement;function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){Object(i.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var p=Object(c.a)(l);function v(t){var e,n=o.a.useState("translate3d(0,0px,0)"),a=Object(r.a)(n,2),s=a[0],c=a[1];o.a.useEffect((function(){return window.innerWidth>=768&&window.addEventListener("scroll",l),function(){window.innerWidth>=768&&window.removeEventListener("scroll",l)}}));var l=function(){var t=window.pageYOffset/3;c("translate3d(0,"+t+"px,0)")},h=t.filter,v=t.className,m=t.children,y=t.style,b=t.image,g=t.small,O=t.responsive,j=p(),x=u()((e={},Object(i.a)(e,j.parallax,!0),Object(i.a)(e,j.filter,h),Object(i.a)(e,j.small,g),Object(i.a)(e,j.parallaxResponsive,O),Object(i.a)(e,v,void 0!==v),e));return f("div",{className:x,style:d({},y,{backgroundImage:"url("+b+")",transform:s})},m)}},ZPUd:function(t,e,n){"use strict";var i=n("TqRt");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("q1tI")),a=(0,i(n("8/g6")).default)(r.default.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");e.default=a},aclS:function(t,e){},bhG4:function(t,e,n){"use strict";var i={container:n("eDSW").c,brand:{color:"#FFFFFF",textAlign:"left"},title:{fontSize:"4.2rem",fontWeight:"600",display:"inline-block",position:"relative"},subtitle:{fontSize:"1.313rem",maxWidth:"510px",margin:"10px 0 0"},main:{background:"#FFFFFF",position:"relative",zIndex:"3"},mainRaised:{margin:"-60px 30px 0px",borderRadius:"6px",boxShadow:"0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2)","@media (max-width: 830px)":{marginLeft:"10px",marginRight:"10px"}},link:{textDecoration:"none"},textCenter:{textAlign:"center"}};e.a=i},c6YU:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("dI71"),r=n("S6zn"),a=n("q/uT"),o=new(function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.onSubscribe=function(){this.removeEventListener||this.setDefaultEventListener()},n.setEventListener=function(t){var e=this;this.removeEventListener&&this.removeEventListener(),this.removeEventListener=t((function(t){"boolean"===typeof t?e.setOnline(t):e.onOnline()}))},n.setOnline=function(t){this.online=t,t&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(t){t()}))},n.isOnline=function(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine},n.setDefaultEventListener=function(){var t;!a.d&&(null==(t=window)?void 0:t.addEventListener)&&this.setEventListener((function(t){var e=function(){return t()};return window.addEventListener("online",e,!1),window.addEventListener("offline",e,!1),function(){window.removeEventListener("online",e),window.removeEventListener("offline",e)}}))},e}(r.a))},mKIw:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("dI71"),r=n("GBAL"),a=n("wx14"),o=n("G8/n"),s=n("x4JK"),u=n("q/uT"),c=function(){function t(t){this.options=Object(a.a)({},t.defaultOptions,t.options),this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.observers=[],this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}var e=t.prototype;return e.setState=function(t){this.dispatch({type:"setState",state:t})},e.addObserver=function(t){-1===this.observers.indexOf(t)&&this.observers.push(t)},e.removeObserver=function(t){this.observers=this.observers.filter((function(e){return e!==t}))},e.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(u.h).catch(u.h)):Promise.resolve()},e.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},e.execute=function(){var t,e=this,n="loading"===this.state.status,i=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),i=i.then((function(){return null==e.options.onMutate?void 0:e.options.onMutate(e.state.variables)})).then((function(t){t!==e.state.context&&e.dispatch({type:"loading",context:t,variables:e.state.variables})}))),i.then((function(){return e.executeMutation()})).then((function(e){t=e})).then((function(){return null==e.options.onSuccess?void 0:e.options.onSuccess(t,e.state.variables,e.state.context)})).then((function(){return null==e.options.onSettled?void 0:e.options.onSettled(t,null,e.state.variables,e.state.context)})).then((function(){return e.dispatch({type:"success",data:t}),t})).catch((function(t){return e.mutationCache.config.onError&&e.mutationCache.config.onError(t,e.state.variables,e.state.context,e),Object(o.a)().error(t),Promise.resolve().then((function(){return null==e.options.onError?void 0:e.options.onError(t,e.state.variables,e.state.context)})).then((function(){return null==e.options.onSettled?void 0:e.options.onSettled(void 0,t,e.state.variables,e.state.context)})).then((function(){throw e.dispatch({type:"error",error:t}),t}))}))},e.executeMutation=function(){var t,e=this;return this.retryer=new s.a({fn:function(){return e.options.mutationFn?e.options.mutationFn(e.state.variables):Promise.reject("No mutationFn found")},onFail:function(){e.dispatch({type:"failed"})},onPause:function(){e.dispatch({type:"pause"})},onContinue:function(){e.dispatch({type:"continue"})},retry:null!=(t=this.options.retry)?t:0,retryDelay:this.options.retryDelay}),this.retryer.promise},e.dispatch=function(t){var e=this;this.state=function(t,e){switch(e.type){case"failed":return Object(a.a)({},t,{failureCount:t.failureCount+1});case"pause":return Object(a.a)({},t,{isPaused:!0});case"continue":return Object(a.a)({},t,{isPaused:!1});case"loading":return Object(a.a)({},t,{context:e.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:e.variables});case"success":return Object(a.a)({},t,{data:e.data,error:null,status:"success",isPaused:!1});case"error":return Object(a.a)({},t,{data:void 0,error:e.error,failureCount:t.failureCount+1,isPaused:!1,status:"error"});case"setState":return Object(a.a)({},t,e.state);default:return t}}(this.state,t),r.a.batch((function(){e.observers.forEach((function(e){e.onMutationUpdate(t)})),e.mutationCache.notify(e)}))},t}();var l=function(t){function e(e){var n;return(n=t.call(this)||this).config=e||{},n.mutations=[],n.mutationId=0,n}Object(i.a)(e,t);var n=e.prototype;return n.build=function(t,e,n){var i=new c({mutationCache:this,mutationId:++this.mutationId,options:t.defaultMutationOptions(e),state:n,defaultOptions:e.mutationKey?t.getMutationDefaults(e.mutationKey):void 0});return this.add(i),i},n.add=function(t){this.mutations.push(t),this.notify(t)},n.remove=function(t){this.mutations=this.mutations.filter((function(e){return e!==t})),t.cancel(),this.notify(t)},n.clear=function(){var t=this;r.a.batch((function(){t.mutations.forEach((function(e){t.remove(e)}))}))},n.getAll=function(){return this.mutations},n.find=function(t){return"undefined"===typeof t.exact&&(t.exact=!0),this.mutations.find((function(e){return Object(u.f)(t,e)}))},n.findAll=function(t){return this.mutations.filter((function(e){return Object(u.f)(t,e)}))},n.notify=function(t){var e=this;r.a.batch((function(){e.listeners.forEach((function(e){e(t)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var t=this.mutations.filter((function(t){return t.state.isPaused}));return r.a.batch((function(){return t.reduce((function(t,e){return t.then((function(){return e.continue().catch(u.h)}))}),Promise.resolve())}))},e}(n("S6zn").a)},nJn1:function(t,e){t.exports="/_next/static/images/tb-07080d5d3d7b45d4452f1aae75c323f1.png"},o0o1:function(t,e,n){t.exports=n("ls82")},"q/uT":function(t,e,n){"use strict";n.d(e,"d",(function(){return r})),n.d(e,"h",(function(){return a})),n.d(e,"a",(function(){return o})),n.d(e,"e",(function(){return s})),n.d(e,"o",(function(){return c})),n.d(e,"j",(function(){return l})),n.d(e,"i",(function(){return f})),n.d(e,"g",(function(){return h})),n.d(e,"f",(function(){return d})),n.d(e,"c",(function(){return p})),n.d(e,"b",(function(){return v})),n.d(e,"k",(function(){return m})),n.d(e,"l",(function(){return y})),n.d(e,"n",(function(){return j})),n.d(e,"m",(function(){return x}));var i=n("wx14"),r="undefined"===typeof window;function a(){}function o(t,e){return"function"===typeof t?t(e):t}function s(t){return"number"===typeof t&&t>=0&&t!==1/0}function u(t){return Array.isArray(t)?t:[t]}function c(t,e){return Math.max(t+(e||0)-Date.now(),0)}function l(t,e,n){return O(t)?"function"===typeof e?Object(i.a)({},n,{queryKey:t,queryFn:e}):Object(i.a)({},e,{queryKey:t}):t}function f(t,e,n){return O(t)?[Object(i.a)({},e,{queryKey:t}),n]:[t||{},e]}function h(t,e){var n,i=t.active,r=t.exact,a=t.fetching,o=t.inactive,s=t.predicate,u=t.queryKey,c=t.stale;if(O(u))if(r){if(e.queryHash!==p(u,e.options))return!1}else if(!m(e.queryKey,u))return!1;return!1===o||i&&!o?n=!0:(!1===i||o&&!i)&&(n=!1),("boolean"!==typeof n||e.isActive()===n)&&(("boolean"!==typeof c||e.isStale()===c)&&(("boolean"!==typeof a||e.isFetching()===a)&&!(s&&!s(e))))}function d(t,e){var n=t.exact,i=t.fetching,r=t.predicate,a=t.mutationKey;if(O(a)){if(!e.options.mutationKey)return!1;if(n){if(v(e.options.mutationKey)!==v(a))return!1}else if(!m(e.options.mutationKey,a))return!1}return("boolean"!==typeof i||"loading"===e.state.status===i)&&!(r&&!r(e))}function p(t,e){return((null==e?void 0:e.queryKeyHashFn)||v)(t)}function v(t){var e,n=Array.isArray(t)?t:[t];return e=n,JSON.stringify(e,(function(t,e){return b(e)?Object.keys(e).sort().reduce((function(t,n){return t[n]=e[n],t}),{}):e}))}function m(t,e){return function t(e,n){if(e===n)return!0;if(typeof e!==typeof n)return!1;if(e&&n&&"object"===typeof e&&"object"===typeof n)return!Object.keys(n).some((function(i){return!t(e[i],n[i])}));return!1}(u(t),u(e))}function y(t,e){if(t===e)return t;var n=Array.isArray(t)&&Array.isArray(e);if(n||b(t)&&b(e)){for(var i=n?t.length:Object.keys(t).length,r=n?e:Object.keys(e),a=r.length,o=n?[]:{},s=0,u=0;u<a;u++){var c=n?u:r[u];o[c]=y(t[c],e[c]),o[c]===t[c]&&s++}return i===a&&s===i?t:o}return e}function b(t){if(!g(t))return!1;var e=t.constructor;if("undefined"===typeof e)return!0;var n=e.prototype;return!!g(n)&&!!n.hasOwnProperty("isPrototypeOf")}function g(t){return"[object Object]"===Object.prototype.toString.call(t)}function O(t){return"string"===typeof t||Array.isArray(t)}function j(t){return new Promise((function(e){setTimeout(e,t)}))}function x(t){Promise.resolve().then(t).catch((function(t){return setTimeout((function(){throw t}))}))}},tCF2:function(t,e){},x4JK:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return l}));var i=n("Yyzc"),r=n("c6YU"),a=n("q/uT");function o(t){return Math.min(1e3*Math.pow(2,t),3e4)}function s(t){return"function"===typeof(null==t?void 0:t.cancel)}var u=function(t){this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent};function c(t){return t instanceof u}var l=function(t){var e,n,c,l,f=this,h=!1;this.cancel=function(t){return null==e?void 0:e(t)},this.cancelRetry=function(){h=!0},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(t,e){c=t,l=e}));var d=function(e){f.isResolved||(f.isResolved=!0,null==t.onSuccess||t.onSuccess(e),null==n||n(),c(e))},p=function(e){f.isResolved||(f.isResolved=!0,null==t.onError||t.onError(e),null==n||n(),l(e))};!function c(){if(!f.isResolved){var l;try{l=t.fn()}catch(v){l=Promise.reject(v)}e=function(t){if(!f.isResolved&&(p(new u(t)),s(l)))try{l.cancel()}catch(e){}},f.isTransportCancelable=s(l),Promise.resolve(l).then(d).catch((function(e){var s,u;if(!f.isResolved){var l=null!=(s=t.retry)?s:3,d=null!=(u=t.retryDelay)?u:o,v="function"===typeof d?d(f.failureCount,e):d,m=!0===l||"number"===typeof l&&f.failureCount<l||"function"===typeof l&&l(f.failureCount,e);!h&&m?(f.failureCount++,null==t.onFail||t.onFail(f.failureCount,e),Object(a.n)(v).then((function(){if(!i.a.isFocused()||!r.a.isOnline())return new Promise((function(e){n=e,f.isPaused=!0,null==t.onPause||t.onPause()})).then((function(){n=void 0,f.isPaused=!1,null==t.onContinue||t.onContinue()}))})).then((function(){h?p(e):c()}))):p(e)}}))}}()}},xOaM:function(t,e,n){"use strict";var i=n("G8/n"),r=console;r&&Object(i.b)(r)}}]);
|