diff --git a/build/asset-manifest.json b/build/asset-manifest.json index b116823..c45b33f 100644 --- a/build/asset-manifest.json +++ b/build/asset-manifest.json @@ -1,88 +1,83 @@ { "files": { "main.css": "/static/css/main.b85b0dd8.css", - "main.js": "/static/js/main.f985379c.js", - "static/js/1837.b15fae20.chunk.js": "/static/js/1837.b15fae20.chunk.js", - "static/js/2898.91e92c8b.chunk.js": "/static/js/2898.91e92c8b.chunk.js", - "static/js/6390.1dc7fa61.chunk.js": "/static/js/6390.1dc7fa61.chunk.js", - "static/js/3176.340ee957.chunk.js": "/static/js/3176.340ee957.chunk.js", - "static/js/4465.8c45ec27.chunk.js": "/static/js/4465.8c45ec27.chunk.js", - "static/js/5770.482ef079.chunk.js": "/static/js/5770.482ef079.chunk.js", - "static/js/2142.379ba3cc.chunk.js": "/static/js/2142.379ba3cc.chunk.js", - "static/js/4612.9e7024f7.chunk.js": "/static/js/4612.9e7024f7.chunk.js", - "static/js/1504.d7a3fb13.chunk.js": "/static/js/1504.d7a3fb13.chunk.js", - "static/js/7157.99d280ab.chunk.js": "/static/js/7157.99d280ab.chunk.js", - "static/js/4947.51001989.chunk.js": "/static/js/4947.51001989.chunk.js", - "static/js/7221.c4a0ec4e.chunk.js": "/static/js/7221.c4a0ec4e.chunk.js", - "static/js/2851.828e003e.chunk.js": "/static/js/2851.828e003e.chunk.js", - "static/js/9521.9d99da63.chunk.js": "/static/js/9521.9d99da63.chunk.js", - "static/js/6165.266ba693.chunk.js": "/static/js/6165.266ba693.chunk.js", - "static/js/9912.8ae215bb.chunk.js": "/static/js/9912.8ae215bb.chunk.js", - "static/js/6248.8f2e2aaa.chunk.js": "/static/js/6248.8f2e2aaa.chunk.js", - "static/js/1148.1f747cf9.chunk.js": "/static/js/1148.1f747cf9.chunk.js", - "static/css/9592.d6bfd15f.chunk.css": "/static/css/9592.d6bfd15f.chunk.css", - "static/js/9592.e7d1e3ea.chunk.js": "/static/js/9592.e7d1e3ea.chunk.js", - "static/js/54.06907ff1.chunk.js": "/static/js/54.06907ff1.chunk.js", - "static/js/2638.6b26c3ee.chunk.js": "/static/js/2638.6b26c3ee.chunk.js", - "static/js/4793.72fb0edf.chunk.js": "/static/js/4793.72fb0edf.chunk.js", - "static/js/7875.0f6b626d.chunk.js": "/static/js/7875.0f6b626d.chunk.js", - "static/js/6849.958bd3ec.chunk.js": "/static/js/6849.958bd3ec.chunk.js", - "static/css/8846.d6bfd15f.chunk.css": "/static/css/8846.d6bfd15f.chunk.css", - "static/js/8846.9f2a057e.chunk.js": "/static/js/8846.9f2a057e.chunk.js", - "static/js/181.1ef0e862.chunk.js": "/static/js/181.1ef0e862.chunk.js", - "static/js/4263.ec3fbee8.chunk.js": "/static/js/4263.ec3fbee8.chunk.js", - "static/js/9438.5565fcf3.chunk.js": "/static/js/9438.5565fcf3.chunk.js", - "static/js/9593.4ad5bb1b.chunk.js": "/static/js/9593.4ad5bb1b.chunk.js", - "static/js/238.b0a6c12d.chunk.js": "/static/js/238.b0a6c12d.chunk.js", - "static/js/8954.e87abf2c.chunk.js": "/static/js/8954.e87abf2c.chunk.js", - "static/js/9027.574b1256.chunk.js": "/static/js/9027.574b1256.chunk.js", - "static/js/4917.5bb4b5d9.chunk.js": "/static/js/4917.5bb4b5d9.chunk.js", + "main.js": "/static/js/main.1e716c62.js", + "static/js/1837.4efb059f.chunk.js": "/static/js/1837.4efb059f.chunk.js", + "static/js/8478.2bdfed69.chunk.js": "/static/js/8478.2bdfed69.chunk.js", + "static/js/9062.f38a5265.chunk.js": "/static/js/9062.f38a5265.chunk.js", + "static/js/3176.3baff992.chunk.js": "/static/js/3176.3baff992.chunk.js", + "static/js/4465.700ec3d6.chunk.js": "/static/js/4465.700ec3d6.chunk.js", + "static/js/5770.f24c6b1f.chunk.js": "/static/js/5770.f24c6b1f.chunk.js", + "static/js/2142.b22bf308.chunk.js": "/static/js/2142.b22bf308.chunk.js", + "static/js/4612.f72187a1.chunk.js": "/static/js/4612.f72187a1.chunk.js", + "static/js/1504.629fb0e6.chunk.js": "/static/js/1504.629fb0e6.chunk.js", + "static/js/7157.3a086cbd.chunk.js": "/static/js/7157.3a086cbd.chunk.js", + "static/js/4947.82e8f095.chunk.js": "/static/js/4947.82e8f095.chunk.js", + "static/js/9297.c1d141e7.chunk.js": "/static/js/9297.c1d141e7.chunk.js", + "static/js/2851.aa3e7db5.chunk.js": "/static/js/2851.aa3e7db5.chunk.js", + "static/js/9521.e24db89d.chunk.js": "/static/js/9521.e24db89d.chunk.js", + "static/js/6165.5ae41b22.chunk.js": "/static/js/6165.5ae41b22.chunk.js", + "static/js/5409.fa07332d.chunk.js": "/static/js/5409.fa07332d.chunk.js", + "static/js/6248.215de3df.chunk.js": "/static/js/6248.215de3df.chunk.js", + "static/js/1148.f2e54475.chunk.js": "/static/js/1148.f2e54475.chunk.js", + "static/css/8445.d6bfd15f.chunk.css": "/static/css/8445.d6bfd15f.chunk.css", + "static/js/8445.64dd4a5c.chunk.js": "/static/js/8445.64dd4a5c.chunk.js", + "static/js/6015.055567a3.chunk.js": "/static/js/6015.055567a3.chunk.js", + "static/js/2638.d525cca2.chunk.js": "/static/js/2638.d525cca2.chunk.js", + "static/js/4793.02666cf4.chunk.js": "/static/js/4793.02666cf4.chunk.js", + "static/js/7875.dedbfe98.chunk.js": "/static/js/7875.dedbfe98.chunk.js", + "static/js/6849.5167b405.chunk.js": "/static/js/6849.5167b405.chunk.js", + "static/css/5235.d6bfd15f.chunk.css": "/static/css/5235.d6bfd15f.chunk.css", + "static/js/5235.534e4ff6.chunk.js": "/static/js/5235.534e4ff6.chunk.js", + "static/js/181.7dd6b2c7.chunk.js": "/static/js/181.7dd6b2c7.chunk.js", + "static/js/4263.1d7b8c5e.chunk.js": "/static/js/4263.1d7b8c5e.chunk.js", + "static/js/9438.3a1c3ba9.chunk.js": "/static/js/9438.3a1c3ba9.chunk.js", + "static/js/9593.57216787.chunk.js": "/static/js/9593.57216787.chunk.js", + "static/js/238.20c0d222.chunk.js": "/static/js/238.20c0d222.chunk.js", + "static/js/8954.437e3303.chunk.js": "/static/js/8954.437e3303.chunk.js", + "static/js/7579.c4ab85a1.chunk.js": "/static/js/7579.c4ab85a1.chunk.js", + "static/js/4917.f816a140.chunk.js": "/static/js/4917.f816a140.chunk.js", "static/js/5260.ffe264e4.chunk.js": "/static/js/5260.ffe264e4.chunk.js", - "static/js/1685.d71eee3a.chunk.js": "/static/js/1685.d71eee3a.chunk.js", - "static/js/2660.8ec125e1.chunk.js": "/static/js/2660.8ec125e1.chunk.js", - "static/js/6.25ff8786.chunk.js": "/static/js/6.25ff8786.chunk.js", - "static/js/9925.4a94ad25.chunk.js": "/static/js/9925.4a94ad25.chunk.js", - "static/js/1222.c450ab8b.chunk.js": "/static/js/1222.c450ab8b.chunk.js", - "static/js/7922.5b607201.chunk.js": "/static/js/7922.5b607201.chunk.js", - "static/js/3999.847bb360.chunk.js": "/static/js/3999.847bb360.chunk.js", - "static/js/191.a343f9f5.chunk.js": "/static/js/191.a343f9f5.chunk.js", - "static/js/7980.893651c1.chunk.js": "/static/js/7980.893651c1.chunk.js", - "static/js/3565.5749e522.chunk.js": "/static/js/3565.5749e522.chunk.js", - "static/js/9459.5f509ca8.chunk.js": "/static/js/9459.5f509ca8.chunk.js", - "static/js/62.8be6503f.chunk.js": "/static/js/62.8be6503f.chunk.js", - "static/js/9826.07f60dc6.chunk.js": "/static/js/9826.07f60dc6.chunk.js", - "static/js/3302.c5347b25.chunk.js": "/static/js/3302.c5347b25.chunk.js", - "static/js/6321.e0290628.chunk.js": "/static/js/6321.e0290628.chunk.js", - "static/js/3838.10f5e491.chunk.js": "/static/js/3838.10f5e491.chunk.js", - "static/js/2075.9858b66a.chunk.js": "/static/js/2075.9858b66a.chunk.js", - "static/js/5855.32e15e16.chunk.js": "/static/js/5855.32e15e16.chunk.js", - "static/js/4180.172969de.chunk.js": "/static/js/4180.172969de.chunk.js", - "static/js/5180.7a86124f.chunk.js": "/static/js/5180.7a86124f.chunk.js", - "static/js/4734.5b301125.chunk.js": "/static/js/4734.5b301125.chunk.js", - "static/js/3992.7901ae42.chunk.js": "/static/js/3992.7901ae42.chunk.js", - "static/js/5527.2024fea7.chunk.js": "/static/js/5527.2024fea7.chunk.js", - "static/js/3680.460c3cd4.chunk.js": "/static/js/3680.460c3cd4.chunk.js", - "static/js/5116.88b8f8cf.chunk.js": "/static/js/5116.88b8f8cf.chunk.js", - "static/js/6651.ada8ee90.chunk.js": "/static/js/6651.ada8ee90.chunk.js", - "static/js/5374.86c3f116.chunk.js": "/static/js/5374.86c3f116.chunk.js", - "static/js/9054.3ae3e32b.chunk.js": "/static/js/9054.3ae3e32b.chunk.js", - "static/js/5358.522741a7.chunk.js": "/static/js/5358.522741a7.chunk.js", - "static/js/9267.3d3b6584.chunk.js": "/static/js/9267.3d3b6584.chunk.js", - "static/js/436.b7322d7b.chunk.js": "/static/js/436.b7322d7b.chunk.js", - "static/js/8718.bddae0b2.chunk.js": "/static/js/8718.bddae0b2.chunk.js", - "static/js/5580.da4f4eb4.chunk.js": "/static/js/5580.da4f4eb4.chunk.js", - "static/js/4542.c6c7874f.chunk.js": "/static/js/4542.c6c7874f.chunk.js", - "static/js/9863.29197136.chunk.js": "/static/js/9863.29197136.chunk.js", - "static/js/9562.6abb1e0d.chunk.js": "/static/js/9562.6abb1e0d.chunk.js", - "static/js/7533.136137f2.chunk.js": "/static/js/7533.136137f2.chunk.js", - "static/js/4894.cfa4d36d.chunk.js": "/static/js/4894.cfa4d36d.chunk.js", - "static/js/6810.2e79aa63.chunk.js": "/static/js/6810.2e79aa63.chunk.js", - "static/js/348.a1db66c5.chunk.js": "/static/js/348.a1db66c5.chunk.js", - "static/js/4486.23cac129.chunk.js": "/static/js/4486.23cac129.chunk.js", - "static/js/1425.191dbcce.chunk.js": "/static/js/1425.191dbcce.chunk.js", - "static/css/3624.6072ca69.chunk.css": "/static/css/3624.6072ca69.chunk.css", - "static/js/3624.c11c08a1.chunk.js": "/static/js/3624.c11c08a1.chunk.js", - "static/js/23.4be71fed.chunk.js": "/static/js/23.4be71fed.chunk.js", + "static/js/9027.a72d6971.chunk.js": "/static/js/9027.a72d6971.chunk.js", + "static/js/9776.f47f1c05.chunk.js": "/static/js/9776.f47f1c05.chunk.js", + "static/js/1422.5e8c518a.chunk.js": "/static/js/1422.5e8c518a.chunk.js", + "static/js/6270.8b8aef93.chunk.js": "/static/js/6270.8b8aef93.chunk.js", + "static/js/8952.e50de237.chunk.js": "/static/js/8952.e50de237.chunk.js", + "static/js/7488.96e6ce36.chunk.js": "/static/js/7488.96e6ce36.chunk.js", + "static/js/7915.2be56ba5.chunk.js": "/static/js/7915.2be56ba5.chunk.js", + "static/js/6086.e7136251.chunk.js": "/static/js/6086.e7136251.chunk.js", + "static/js/6453.1b9b525a.chunk.js": "/static/js/6453.1b9b525a.chunk.js", + "static/js/2141.a1763a91.chunk.js": "/static/js/2141.a1763a91.chunk.js", + "static/js/8471.b441dcad.chunk.js": "/static/js/8471.b441dcad.chunk.js", + "static/js/5172.79835854.chunk.js": "/static/js/5172.79835854.chunk.js", + "static/js/1025.db4d08ad.chunk.js": "/static/js/1025.db4d08ad.chunk.js", + "static/js/8464.8b814dfe.chunk.js": "/static/js/8464.8b814dfe.chunk.js", + "static/js/9622.66a1da48.chunk.js": "/static/js/9622.66a1da48.chunk.js", + "static/js/4743.451e841a.chunk.js": "/static/js/4743.451e841a.chunk.js", + "static/js/2351.da2f2779.chunk.js": "/static/js/2351.da2f2779.chunk.js", + "static/js/408.526d4f68.chunk.js": "/static/js/408.526d4f68.chunk.js", + "static/js/3119.63266416.chunk.js": "/static/js/3119.63266416.chunk.js", + "static/js/605.4135b571.chunk.js": "/static/js/605.4135b571.chunk.js", + "static/js/4451.436239f4.chunk.js": "/static/js/4451.436239f4.chunk.js", + "static/js/8012.0a91258c.chunk.js": "/static/js/8012.0a91258c.chunk.js", + "static/js/6317.9c04fccf.chunk.js": "/static/js/6317.9c04fccf.chunk.js", + "static/js/9552.b43795cd.chunk.js": "/static/js/9552.b43795cd.chunk.js", + "static/js/3522.58c85d19.chunk.js": "/static/js/3522.58c85d19.chunk.js", + "static/js/8858.c8246809.chunk.js": "/static/js/8858.c8246809.chunk.js", + "static/js/7757.d8b1bc4f.chunk.js": "/static/js/7757.d8b1bc4f.chunk.js", + "static/js/5982.a515fbf1.chunk.js": "/static/js/5982.a515fbf1.chunk.js", + "static/js/1205.b72f82c1.chunk.js": "/static/js/1205.b72f82c1.chunk.js", + "static/js/5076.0e3e1d1e.chunk.js": "/static/js/5076.0e3e1d1e.chunk.js", + "static/js/740.df3fbcd6.chunk.js": "/static/js/740.df3fbcd6.chunk.js", + "static/js/4274.767ba516.chunk.js": "/static/js/4274.767ba516.chunk.js", + "static/js/804.228f9b46.chunk.js": "/static/js/804.228f9b46.chunk.js", + "static/js/4748.54f74845.chunk.js": "/static/js/4748.54f74845.chunk.js", + "static/js/6341.7608b15e.chunk.js": "/static/js/6341.7608b15e.chunk.js", + "static/js/1471.8f910e5f.chunk.js": "/static/js/1471.8f910e5f.chunk.js", + "static/js/1425.79f82280.chunk.js": "/static/js/1425.79f82280.chunk.js", + "static/css/5437.6072ca69.chunk.css": "/static/css/5437.6072ca69.chunk.css", + "static/js/5437.b3b5d24f.chunk.js": "/static/js/5437.b3b5d24f.chunk.js", + "static/js/23.3a22b785.chunk.js": "/static/js/23.3a22b785.chunk.js", "static/css/6509.ab611cf0.chunk.css": "/static/css/6509.ab611cf0.chunk.css", "static/media/aiImage.png": "/static/media/aiImage.89c2ccb91a41d85031e3.png", "static/media/coming-soon.png": "/static/media/coming-soon.69b99428ab9e22eca0ba.png", @@ -100,6 +95,6 @@ }, "entrypoints": [ "static/css/main.b85b0dd8.css", - "static/js/main.f985379c.js" + "static/js/main.1e716c62.js" ] } \ No newline at end of file diff --git a/build/index.html b/build/index.html index 4b55fa8..817dc1a 100644 --- a/build/index.html +++ b/build/index.html @@ -1 +1 @@ -Nearle Console
\ No newline at end of file +Nearle Console
\ No newline at end of file diff --git a/build/static/css/8846.d6bfd15f.chunk.css b/build/static/css/5235.d6bfd15f.chunk.css similarity index 100% rename from build/static/css/8846.d6bfd15f.chunk.css rename to build/static/css/5235.d6bfd15f.chunk.css diff --git a/build/static/css/3624.6072ca69.chunk.css b/build/static/css/5437.6072ca69.chunk.css similarity index 100% rename from build/static/css/3624.6072ca69.chunk.css rename to build/static/css/5437.6072ca69.chunk.css diff --git a/build/static/css/9592.d6bfd15f.chunk.css b/build/static/css/8445.d6bfd15f.chunk.css similarity index 100% rename from build/static/css/9592.d6bfd15f.chunk.css rename to build/static/css/8445.d6bfd15f.chunk.css diff --git a/build/static/js/1025.db4d08ad.chunk.js b/build/static/js/1025.db4d08ad.chunk.js new file mode 100644 index 0000000..bd76ee1 --- /dev/null +++ b/build/static/js/1025.db4d08ad.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 1025.db4d08ad.chunk.js.LICENSE.txt */ +(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[1025],{87:(t,e,i)=>{"use strict";i.d(e,{p:()=>l});var n=i(53986),o=i(91323),s=i(81501),r=i(12414),a=i(73413);const h=["position"],l=(0,o.Nq)((function(t,e){let{position:i}=t,o=(0,n.A)(t,h);const l=new a.Marker(i,o);return(0,s.Q)(l,(0,r.W4)(e,{overlayContainer:l}))}),(function(t,e,i){e.position!==i.position&&t.setLatLng(e.position),null!=e.icon&&e.icon!==i.icon&&t.setIcon(e.icon),null!=e.zIndexOffset&&e.zIndexOffset!==i.zIndexOffset&&t.setZIndexOffset(e.zIndexOffset),null!=e.opacity&&e.opacity!==i.opacity&&t.setOpacity(e.opacity),null!=t.dragging&&e.draggable!==i.draggable&&(!0===e.draggable?t.dragging.enable():t.dragging.disable())}))},12010:(t,e,i)=>{"use strict";i.d(e,{A:()=>E});var n=i(57528),o=i(84849),s=i(27326),r=i(85672),a=i(72574),h=i(25234),l=i(8913),u=i(16775),c=i(38009),d=i(60308),_=i(37300),p=i(10644);function m(t){return(0,p.Ay)("MuiCircularProgress",t)}(0,_.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var f,g,v,y,x=i(65908);const w=["className","color","disableShrink","size","style","thickness","value","variant"];let b,P,L,T;const M=44,z=(0,l.i7)(b||(b=f||(f=(0,n.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),C=(0,l.i7)(P||(P=g||(g=(0,n.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),S=(0,d.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:i}=t;return[e.root,e[i.variant],e["color".concat((0,u.A)(i.color))]]}})((t=>{let{ownerState:e,theme:i}=t;return(0,s.A)({display:"inline-block"},"determinate"===e.variant&&{transition:i.transitions.create("transform")},"inherit"!==e.color&&{color:(i.vars||i).palette[e.color].main})}),(t=>{let{ownerState:e}=t;return"indeterminate"===e.variant&&(0,l.AH)(L||(L=v||(v=(0,n.A)(["\n animation: "," 1.4s linear infinite;\n "]))),z)})),k=(0,d.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),Z=(0,d.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:i}=t;return[e.circle,e["circle".concat((0,u.A)(i.variant))],i.disableShrink&&e.circleDisableShrink]}})((t=>{let{ownerState:e,theme:i}=t;return(0,s.A)({stroke:"currentColor"},"determinate"===e.variant&&{transition:i.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(t=>{let{ownerState:e}=t;return"indeterminate"===e.variant&&!e.disableShrink&&(0,l.AH)(T||(T=y||(y=(0,n.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),C)})),E=r.forwardRef((function(t,e){const i=(0,c.b)({props:t,name:"MuiCircularProgress"}),{className:n,color:r="primary",disableShrink:l=!1,size:d=40,style:_,thickness:p=3.6,value:f=0,variant:g="indeterminate"}=i,v=(0,o.A)(i,w),y=(0,s.A)({},i,{color:r,disableShrink:l,size:d,thickness:p,value:f,variant:g}),b=(t=>{const{classes:e,variant:i,color:n,disableShrink:o}=t,s={root:["root",i,"color".concat((0,u.A)(n))],svg:["svg"],circle:["circle","circle".concat((0,u.A)(i)),o&&"circleDisableShrink"]};return(0,h.A)(s,m,e)})(y),P={},L={},T={};if("determinate"===g){const t=2*Math.PI*((M-p)/2);P.strokeDasharray=t.toFixed(3),T["aria-valuenow"]=Math.round(f),P.strokeDashoffset="".concat(((100-f)/100*t).toFixed(3),"px"),L.transform="rotate(-90deg)"}return(0,x.jsx)(S,(0,s.A)({className:(0,a.A)(b.root,n),style:(0,s.A)({width:d,height:d},L,_),ownerState:y,ref:e,role:"progressbar"},T,v,{children:(0,x.jsx)(k,{className:b.svg,ownerState:y,viewBox:"".concat(22," ").concat(22," ").concat(M," ").concat(M),children:(0,x.jsx)(Z,{className:b.circle,style:P,ownerState:y,cx:M,cy:M,r:(M-p)/2,fill:"none",strokeWidth:p})})}))}))},12414:(t,e,i)=>{"use strict";i.d(e,{U$:()=>u,W4:()=>a,fB:()=>r,hL:()=>l});var n=i(22555),o=i(85672);const s=1;function r(t){return Object.freeze({__version:s,map:t})}function a(t,e){return Object.freeze((0,n.A)((0,n.A)({},t),e))}const h=(0,o.createContext)(null),l=h.Provider;function u(){const t=(0,o.useContext)(h);if(null==t)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of ");return t}},40323:(t,e,i)=>{"use strict";i.d(e,{P:()=>o});var n=i(22555);function o(t,e){var i;const o=null!==(i=t.pane)&&void 0!==i?i:e.pane;return o?(0,n.A)((0,n.A)({},t),{},{pane:o}):t}},43e3:(t,e,i)=>{"use strict";i.d(e,{W:()=>u});var n=i(53986),o=i(12414),s=i(73413),r=i(85672);const a=["bounds","boundsOptions","center","children","className","id","placeholder","style","whenReady","zoom"];function h(){return h=Object.assign||function(t){for(var e=1;e{var t;return null!==(t=null===x||void 0===x?void 0:x.map)&&void 0!==t?t:null}),[x]);const b=(0,r.useCallback)((t=>{if(null!==t&&null===x){const e=new s.Map(t,v);null!=u&&null!=g?e.setView(u,g):null!=i&&e.fitBounds(i,l),null!=f&&e.whenReady(f),w((0,o.fB)(e))}}),[]);(0,r.useEffect)((()=>()=>{null===x||void 0===x||x.map.remove()}),[x]);const P=x?r.createElement(o.hL,{value:x},c):null!==p&&void 0!==p?p:null;return r.createElement("div",h({},y,{ref:b}),P)}const u=(0,r.forwardRef)(l)},69191:(t,e,i)=>{"use strict";i.d(e,{e:()=>l});var n=i(53986),o=i(91323),s=i(40323),r=i(81501);var a=i(73413);const h=["url"],l=(0,o.X3)((function(t,e){let{url:i}=t,o=(0,n.A)(t,h);const l=new a.TileLayer(i,(0,s.P)(o,e));return(0,r.Q)(l,e)}),(function(t,e,i){!function(t,e,i){const{opacity:n,zIndex:o}=e;null!=n&&n!==i.opacity&&t.setOpacity(n),null!=o&&o!==i.zIndex&&t.setZIndex(o)}(t,e,i);const{url:n}=e;null!=n&&n!==i.url&&t.setUrl(n)}))},73413:function(t,e){!function(t){"use strict";var e="1.9.4";function i(t){var e,i,n,o;for(i=1,n=arguments.length;i0?Math.floor(t):Math.ceil(t)};function I(t,e,i){return t instanceof A?t:g(t)?new A(t[0],t[1]):void 0===t||null===t?t:"object"===typeof t&&"x"in t&&"y"in t?new A(t.x,t.y):new A(t,e,i)}function B(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=R(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>=e.x&&n.x<=i.x,r=o.y>=e.y&&n.y<=i.y;return s&&r},overlaps:function(t){t=R(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>e.x&&n.xe.y&&n.y=n.lat&&i.lat<=o.lat&&e.lng>=n.lng&&i.lng<=o.lng},intersects:function(t){t=D(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=e.lat&&n.lat<=i.lat,r=o.lng>=e.lng&&n.lng<=i.lng;return s&&r},overlaps:function(t){t=D(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>e.lat&&n.late.lng&&n.lng1,Ct=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",l,e),window.removeEventListener("testPassiveEventSupport",l,e)}catch(i){}return t}(),St=!!document.createElement("canvas").getContext,kt=!(!document.createElementNS||!X("svg").createSVGRect),Zt=!!kt&&function(){var t=document.createElement("div");return t.innerHTML="","http://www.w3.org/2000/svg"===(t.firstChild&&t.firstChild.namespaceURI)}(),Et=!kt&&function(){try{var t=document.createElement("div");t.innerHTML='';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"===typeof e.adj}catch(i){return!1}}(),At=0===navigator.platform.indexOf("Mac"),Ot=0===navigator.platform.indexOf("Linux");function It(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Bt={ie:Q,ielt9:tt,edge:et,webkit:it,android:nt,android23:ot,androidStock:rt,opera:at,chrome:ht,gecko:lt,safari:ut,phantom:ct,opera12:dt,win:_t,ie3d:pt,webkit3d:mt,gecko3d:ft,any3d:gt,mobile:vt,mobileWebkit:yt,mobileWebkit3d:xt,msPointer:wt,pointer:bt,touch:Lt,touchNative:Pt,mobileOpera:Tt,mobileGecko:Mt,retina:zt,passiveEvents:Ct,canvas:St,svg:kt,vml:Et,inlineSvg:Zt,mac:At,linux:Ot},Rt=Bt.msPointer?"MSPointerDown":"pointerdown",Nt=Bt.msPointer?"MSPointerMove":"pointermove",Dt=Bt.msPointer?"MSPointerUp":"pointerup",jt=Bt.msPointer?"MSPointerCancel":"pointercancel",Ht={touchstart:Rt,touchmove:Nt,touchend:Dt,touchcancel:jt},Wt={touchstart:$t,touchmove:Jt,touchend:Jt,touchcancel:Jt},Ft={},Ut=!1;function Vt(t,e,i){return"touchstart"===e&&Xt(),Wt[e]?(i=Wt[e].bind(this,i),t.addEventListener(Ht[e],i,!1),i):(console.warn("wrong event specified:",e),l)}function qt(t,e,i){Ht[e]?t.removeEventListener(Ht[e],i,!1):console.warn("wrong event specified:",e)}function Gt(t){Ft[t.pointerId]=t}function Kt(t){Ft[t.pointerId]&&(Ft[t.pointerId]=t)}function Yt(t){delete Ft[t.pointerId]}function Xt(){Ut||(document.addEventListener(Rt,Gt,!0),document.addEventListener(Nt,Kt,!0),document.addEventListener(Dt,Yt,!0),document.addEventListener(jt,Yt,!0),Ut=!0)}function Jt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var i in e.touches=[],Ft)e.touches.push(Ft[i]);e.changedTouches=[e],t(e)}}function $t(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Ge(e),Jt(t,e)}function Qt(t){var e,i,n={};for(i in t)e=t[i],n[i]=e&&e.bind?e.bind(t):e;return t=n,n.type="dblclick",n.detail=2,n.isTrusted=!1,n._simulated=!0,n}var te=200;function ee(t,e){t.addEventListener("dblclick",e);var i,n=0;function o(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var o=Ye(t);if(!o.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))||o.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){var s=Date.now();s-n<=te?2===++i&&e(Qt(t)):i=1,n=s}}}else i=t.detail}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}function ie(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var ne,oe,se,re,ae,he=Te(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),le=Te(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ue="webkitTransition"===le||"OTransition"===le?le+"End":"transitionend";function ce(t){return"string"===typeof t?document.getElementById(t):t}function de(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||"auto"===i)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return"auto"===i?null:i}function _e(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function pe(t){var e=t.parentNode;e&&e.removeChild(t)}function me(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function fe(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ge(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ve(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=be(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function ye(t,e){if(void 0!==t.classList)for(var i=d(e),n=0,o=i.length;n0?2*window.devicePixelRatio:1;function $e(t){return Bt.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Je:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function Qe(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(n){return!1}return i!==t}var ti={__proto__:null,on:Re,off:De,stopPropagation:Ue,disableScrollPropagation:Ve,disableClickPropagation:qe,preventDefault:Ge,stop:Ke,getPropagationPath:Ye,getMousePosition:Xe,getWheelDelta:$e,isExternalTarget:Qe,addListener:Re,removeListener:De},ei=E.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=Ce(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=M(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=1e3*this._duration;ethis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,D(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=I((e=e||{}).paddingTopLeft||e.padding||[0,0]),n=I(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),s=this.project(t),r=this.getPixelBounds(),a=R([r.min.add(i),r.max.subtract(n)]),h=a.getSize();if(!a.contains(s)){this._enforcingBounds=!0;var l=s.subtract(a.getCenter()),u=a.extend(s).getSize().subtract(h);o.x+=l.x<0?-u.x:u.x,o.y+=l.y<0?-u.y:u.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),s=e.divideBy(2).round(),r=n.divideBy(2).round(),a=s.subtract(r);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=o(this._handleGeolocationResponse,this),n=o(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,i=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new j(t.coords.latitude,t.coords.longitude),i=e.toBounds(2*t.coords.accuracy),n=this._locateOptions;if(n.setView){var o=this.getBoundsZoom(i);this.setView(e,n.maxZoom?Math.min(o,n.maxZoom):o)}var s={latlng:e,bounds:i,timestamp:t.timestamp};for(var r in t.coords)"number"===typeof t.coords[r]&&(s[r]=t.coords[r]);this.fire("locationfound",s)}},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(e){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),pe(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(z(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)pe(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i=_e("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new N(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=D(t),i=I(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),a=t.getSouthEast(),h=this.getSize().subtract(i),l=R(this.project(a,n),this.project(r,n)).getSize(),u=Bt.any3d?this.options.zoomSnap:1,c=h.x/l.x,d=h.y/l.y,_=e?Math.max(c,d):Math.min(c,d);return n=this.getScaleZoom(_,n),u&&(n=Math.round(n/(u/100))*(u/100),n=e?Math.ceil(n/u)*u:Math.floor(n/u)*u),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new A(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new B(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"===typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=void 0===e?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(H(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(I(t),e)},layerPointToLatLng:function(t){var e=I(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(H(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(H(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(D(t))},distance:function(t,e){return this.options.crs.distance(H(t),H(e))},containerPointToLayerPoint:function(t){return I(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return I(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(I(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(H(t)))},mouseEventToContainerPoint:function(t){return Xe(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=ce(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Re(e,"scroll",this._onScroll,this),this._containerId=r(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Bt.any3d,ye(t,"leaflet-container"+(Bt.touch?" leaflet-touch":"")+(Bt.retina?" leaflet-retina":"")+(Bt.ielt9?" leaflet-oldie":"")+(Bt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=de(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ze(this._mapPane,new A(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ye(t.markerPane,"leaflet-zoom-hide"),ye(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){ze(this._mapPane,new A(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,i)._move(t,e)._moveEnd(o),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,n){void 0===e&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i&&i.pinch&&this.fire("zoom",i):((o||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return z(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){ze(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[r(this._container)]=this;var e=t?De:Re;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),Bt.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){z(this._resizeRequest),this._resizeRequest=M((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i,n=[],o="mouseout"===e||"mouseover"===e,s=t.target||t.srcElement,a=!1;s;){if((i=this._targets[r(s)])&&("click"===e||"preclick"===e)&&this._draggableMoved(i)){a=!0;break}if(i&&i.listens(e,!0)){if(o&&!Qe(s,t))break;if(n.push(i),o)break}if(s===this._container)break;s=s.parentNode}return n.length||a||o||!this.listens(e,!0)||(n=[this]),n},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var i=t.type;"mousedown"===i&&Ee(e),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if("click"===t.type){var o=i({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}var s=this._findEventTargets(t,e);if(n){for(var r=[],a=0;a0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=Bt.any3d?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){xe(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(i))&&(this.panBy(i,e),!0)},_createAnimProxy:function(){var t=this._proxy=_e("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=he,i=this._proxy.style[e];Me(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),i===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){pe(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Me(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==i.animate&&!this.getSize().contains(o))&&(M((function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)}),this),!0)},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,ye(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&xe(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function ni(t,e){return new ii(t,e)}var oi=S.extend({options:{position:"topright"},initialize:function(t){_(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return ye(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(pe(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),si=function(t){return new oi(t)};ii.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=_e("div",e+"control-container",this._container);function n(n,o){var s=e+n+" "+e+o;t[n+o]=_e("div",s,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)pe(this._controlCorners[t]);pe(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ri=oi.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(r(t.target)),i=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e,i=document.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers_"+r(this),n),this._layerControlInputs.push(e),e.layerId=r(t.layer),Re(e,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var s=document.createElement("span");return i.appendChild(s),s.appendChild(e),s.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var t,e,i=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var s=i.length-1;s>=0;s--)t=i[s],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||o.push(e);for(s=0;s=0;o--)t=i[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&ne.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,Re(t,"click",Ge),this.expand();var e=this;setTimeout((function(){De(t,"click",Ge),e._preventClick=!1}))}}),ai=function(t,e,i){return new ri(t,e,i)},hi=oi.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=_e("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,o){var s=_e("a",i,n);return s.innerHTML=t,s.href="#",s.title=e,s.setAttribute("role","button"),s.setAttribute("aria-label",e),qe(s),Re(s,"click",Ke),Re(s,"click",o,this),Re(s,"click",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";xe(this._zoomInButton,e),xe(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(ye(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(ye(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});ii.mergeOptions({zoomControl:!0}),ii.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new hi,this.addControl(this.zoomControl))}));var li=function(t){return new hi(t)},ui=oi.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=_e("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=_e("div",e,i)),t.imperial&&(this._iScale=_e("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e,i,n,o=3.2808399*t;o>5280?(e=o/5280,i=this._getRoundNum(e),this._updateScale(this._iScale,i+" mi",i/e)):(n=this._getRoundNum(o),this._updateScale(this._iScale,n+" ft",n/o))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return e*(i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1)}}),ci=function(t){return new ui(t)},di='',_i=oi.extend({options:{position:"bottomright",prefix:''+(Bt.inlineSvg?di+" ":"")+"Leaflet"},initialize:function(t){_(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=_e("div","leaflet-control-attribution"),qe(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(' ')}}});ii.mergeOptions({attributionControl:!0}),ii.addInitHook((function(){this.options.attributionControl&&(new _i).addTo(this)}));var pi=function(t){return new _i(t)};oi.Layers=ri,oi.Zoom=hi,oi.Scale=ui,oi.Attribution=_i,si.layers=ai,si.zoom=li,si.scale=ci,si.attribution=pi;var mi=S.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});mi.addTo=function(t,e){return t.addHandler(e,this),this};var fi={Events:Z},gi=Bt.touch?"touchstart mousedown":"mousedown",vi=E.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){_(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(Re(this._dragStartTarget,gi,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(vi._dragging===this&&this.finishDrag(!0),De(this._dragStartTarget,gi,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!ve(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)vi._dragging===this&&this.finishDrag();else if(!(vi._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches)&&(vi._dragging=this,this._preventOutline&&Ee(this._element),ke(),ne(),!this._moving)){this.fire("down");var e=t.touches?t.touches[0]:t,i=Oe(this._element);this._startPoint=new A(e.clientX,e.clientY),this._startPos=Ce(this._element),this._parentScale=Ie(i);var n="mousedown"===t.type;Re(document,n?"mousemove":"touchmove",this._onMove,this),Re(document,n?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,i=new A(e.clientX,e.clientY)._subtract(this._startPoint);(i.x||i.y)&&(Math.abs(i.x)+Math.abs(i.y)h&&(s=r,h=a);h>i&&(e[s]=1,Ci(t,e,i,n,s),Ci(t,e,i,s,o))}function Si(t,e){for(var i=[t[0]],n=1,o=0,s=t.length;ne&&(i.push(t[n]),o=n);return oe.max.x&&(i|=2),t.ye.max.y&&(i|=8),i}function Ai(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function Oi(t,e,i,n){var o,s=e.x,r=e.y,a=i.x-s,h=i.y-r,l=a*a+h*h;return l>0&&((o=((t.x-s)*a+(t.y-r)*h)/l)>1?(s=i.x,r=i.y):o>0&&(s+=a*o,r+=h*o)),a=t.x-s,h=t.y-r,n?a*a+h*h:new A(s,r)}function Ii(t){return!g(t[0])||"object"!==typeof t[0][0]&&"undefined"!==typeof t[0][0]}function Bi(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Ii(t)}function Ri(t,e){var i,n,o,s,r,a,h,l;if(!t||0===t.length)throw new Error("latlngs not passed");Ii(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var u=H([0,0]),c=D(t);c.getNorthWest().distanceTo(c.getSouthWest())*c.getNorthEast().distanceTo(c.getNorthWest())<1700&&(u=wi(t));var d=t.length,_=[];for(i=0;in){h=(s-n)/o,l=[a.x-h*(a.x-r.x),a.y-h*(a.y-r.y)];break}var m=e.unproject(I(l));return H([m.lat+u.lat,m.lng+u.lng])}var Ni={__proto__:null,simplify:Li,pointToSegmentDistance:Ti,closestPointOnSegment:Mi,clipSegment:ki,_getEdgeIntersection:Zi,_getBitCode:Ei,_sqClosestPointOnSegment:Oi,isFlat:Ii,_flat:Bi,polylineCenter:Ri},Di={project:function(t){return new A(t.lng,t.lat)},unproject:function(t){return new j(t.y,t.x)},bounds:new B([-180,-90],[180,90])},ji={R:6378137,R_MINOR:6356752.314245179,bounds:new B([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,s=Math.sqrt(1-o*o),r=s*Math.sin(n),a=Math.tan(Math.PI/4-n/2)/Math.pow((1-r)/(1+r),s/2);return n=-i*Math.log(Math.max(a,1e-10)),new A(t.lng*e*i,n)},unproject:function(t){for(var e,i=180/Math.PI,n=this.R,o=this.R_MINOR/n,s=Math.sqrt(1-o*o),r=Math.exp(-t.y/n),a=Math.PI/2-2*Math.atan(r),h=0,l=.1;h<15&&Math.abs(l)>1e-7;h++)e=s*Math.sin(a),e=Math.pow((1-e)/(1+e),s/2),a+=l=Math.PI/2-2*Math.atan(r*e)-a;return new j(a*i,t.x*i/n)}},Hi={__proto__:null,LonLat:Di,Mercator:ji,SphericalMercator:V},Wi=i({},F,{code:"EPSG:3395",projection:ji,transformation:function(){var t=.5/(Math.PI*ji.R);return G(t,.5,-t,.5)}()}),Fi=i({},F,{code:"EPSG:4326",projection:Di,transformation:G(1/180,1,-1/180,.5)}),Ui=i({},W,{projection:Di,transformation:G(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});W.Earth=F,W.EPSG3395=Wi,W.EPSG3857=K,W.EPSG900913=Y,W.EPSG4326=Fi,W.Simple=Ui;var Vi=E.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[r(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[r(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",(function(){e.off(i,this)}),this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});ii.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=r(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=r(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return r(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){for(var e=0,i=(t=t?g(t)?t:[t]:[]).length;ethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()=2&&e[0]instanceof j&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){hn.prototype._setLatLngs.call(this,t),Ii(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Ii(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new A(e,e);if(t=new B(t.min.subtract(i),t.max.add(i)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,o=0,s=this._rings.length;ot.y!==n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(l=!l);return l||hn.prototype._containsPoint.call(this,t,!0)}});function cn(t,e){return new un(t,e)}var dn=Ki.extend({initialize:function(t,e){_(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,o=g(t)?t:t.features;if(o){for(e=0,i=o.length;e0&&o.push(o[0].slice()),o}function yn(t,e){return t.feature?i({},t.feature,{geometry:e}):xn(e)}function xn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var wn={toGeoJSON:function(t){return yn(this,{type:"Point",coordinates:gn(this.getLatLng(),t)})}};function bn(t,e){return new dn(t,e)}tn.include(wn),rn.include(wn),on.include(wn),hn.include({toGeoJSON:function(t){var e=!Ii(this._latlngs);return yn(this,{type:(e?"Multi":"")+"LineString",coordinates:vn(this._latlngs,e?1:0,!1,t)})}}),un.include({toGeoJSON:function(t){var e=!Ii(this._latlngs),i=e&&!Ii(this._latlngs[0]),n=vn(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),yn(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),qi.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(i){e.push(i.toGeoJSON(t).geometry.coordinates)})),yn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var i="GeometryCollection"===e,n=[];return this.eachLayer((function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(i)n.push(o.geometry);else{var s=xn(o);"FeatureCollection"===s.type?n.push.apply(n,s.features):n.push(s)}}})),i?yn(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var Pn=bn,Ln=Vi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=D(e),_(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ye(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){pe(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&fe(this._image),this},bringToBack:function(){return this._map&&ge(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=D(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:_e("img");ye(e,"leaflet-image-layer"),this._zoomAnimated&&ye(e,"leaflet-zoom-animated"),this.options.className&&ye(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onload=o(this.fire,this,"load"),e.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Me(this._image,i,e)},_reset:function(){var t=this._image,e=new B(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();ze(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){Pe(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Tn=function(t,e,i){return new Ln(t,e,i)},Mn=Ln.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:_e("video");if(ye(e,"leaflet-image-layer"),this._zoomAnimated&&ye(e,"leaflet-zoom-animated"),this.options.className&&ye(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onloadeddata=o(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],s=0;s0?n:[e.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var r=0;ro?(e.height=o+"px",ye(t,s)):xe(t,s),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();ze(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(de(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,o=new A(this._containerLeft,-i-this._containerBottom);o._add(Ce(this._container));var s=t.layerPointToContainerPoint(o),r=I(this.options.autoPanPadding),a=I(this.options.autoPanPaddingTopLeft||r),h=I(this.options.autoPanPaddingBottomRight||r),l=t.getSize(),u=0,c=0;s.x+n+h.x>l.x&&(u=s.x+n-l.x+h.x),s.x-u-a.x<0&&(u=s.x-a.x),s.y+i+h.y>l.y&&(c=s.y+i-l.y+h.y),s.y-c-a.y<0&&(c=s.y-a.y),(u||c)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([u,c]))}},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),En=function(t,e){return new Zn(t,e)};ii.mergeOptions({closePopupOnClick:!0}),ii.include({openPopup:function(t,e,i){return this._initOverlay(Zn,t,e,i).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),Vi.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Zn,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Ki||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){Ke(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof nn?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var An=kn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){kn.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){kn.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=kn.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=_e("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+r(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,o=this._container,s=n.latLngToContainerPoint(n.getCenter()),r=n.layerPointToContainerPoint(t),a=this.options.direction,h=o.offsetWidth,l=o.offsetHeight,u=I(this.options.offset),c=this._getAnchor();"top"===a?(e=h/2,i=l):"bottom"===a?(e=h/2,i=0):"center"===a?(e=h/2,i=l/2):"right"===a?(e=0,i=l/2):"left"===a?(e=h,i=l/2):r.xthis.options.maxZoom||in&&this._retainParent(o,s,r,n))},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*e;s<2*e+2;s++){var r=new A(o,s);r.z=i+1;var a=this._tileCoordsToKey(r),h=this._tiles[a];h&&h.active?h.retain=!0:(h&&h.loaded&&(h.retain=!0),i+1this.options.maxZoom||void 0!==this.options.minZoom&&o1)this._setView(t,i);else{for(var c=o.min.y;c<=o.max.y;c++)for(var d=o.min.x;d<=o.max.x;d++){var _=new A(d,c);if(_.z=this._tileZoom,this._isValidTile(_)){var p=this._tiles[this._tileCoordsToKey(_)];p?p.current=!0:r.push(_)}}if(r.sort((function(t,e){return t.distanceTo(s)-e.distanceTo(s)})),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(d=0;di.max.x)||!e.wrapLat&&(t.yi.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return D(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i);return[e.unproject(n,t.z),e.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new N(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new A(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(pe(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ye(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=l,t.onmousemove=l,Bt.ielt9&&this.options.opacity<1&&Pe(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),s=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(s),this.createTile.length<2&&M(o(this._tileReady,this,t,null,s)),ze(s,i),this._tiles[n]={el:s,coords:t,current:!0},e.appendChild(s),this.fire("tileloadstart",{tile:s,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);(i=this._tiles[n])&&(i.loaded=+new Date,this._map._fadeAnimated?(Pe(i.el,0),z(this._fadeFrame),this._fadeFrame=M(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(ye(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Bt.ielt9||!this._map._fadeAnimated?M(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new A(this._wrapX?h(t.x,this._wrapX):t.x,this._wrapY?h(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new B(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Nn(t){return new Rn(t)}var Dn=Rn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=_(this,e)).detectRetina&&Bt.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"===typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return Re(i,"load",o(this._tileOnLoad,this,e,i)),Re(i,"error",o(this._tileOnError,this,e,i)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"===typeof this.options.referrerPolicy&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var e={r:Bt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e["-y"]=n}return f(this._url,i(e,this.options))},_tileOnLoad:function(t,e){Bt.ielt9?setTimeout(o(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=l,e.onerror=l,!e.complete)){e.src=y;var i=this._tiles[t].coords;pe(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",y),Rn.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(this._map&&(!i||i.getAttribute("src")!==y))return Rn.prototype._tileReady.call(this,t,e,i)}});function jn(t,e){return new Dn(t,e)}var Hn=Dn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=i({},this.defaultWmsParams);for(var o in e)o in this.options||(n[o]=e[o]);var s=(e=_(this,e)).detectRetina&&Bt.retina?2:1,r=this.getTileSize();n.width=r.x*s,n.height=r.y*s,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,Dn.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=R(i.project(e[0]),i.project(e[1])),o=n.min,s=n.max,r=(this._wmsVersion>=1.3&&this._crs===Fi?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(","),a=Dn.prototype.getTileUrl.call(this,t);return a+p(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+r},setParams:function(t,e){return i(this.wmsParams,t),e||this.redraw(),this}});function Wn(t,e){return new Hn(t,e)}Dn.WMS=Hn,jn.wms=Wn;var Fn=Vi.extend({options:{padding:.1},initialize:function(t){_(this,t),r(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),ye(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),s=n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));Bt.any3d?Me(this._container,s,i):ze(this._container,s)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new B(i,i.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Un=Fn.extend({options:{tolerance:0},getEvents:function(){var t=Fn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Fn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Re(t,"mousemove",this._onMouseMove,this),Re(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Re(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){z(this._redrawRequest),delete this._ctx,pe(this._container),De(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Fn.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=Bt.retina?2:1;ze(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",Bt.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Fn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[r(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.next=i:this._drawFirst=i,delete t._order,delete this._layers[r(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"===typeof t.options.dashArray){var e,i,n=t.options.dashArray.split(/[, ]+/),o=[];for(i=0;i')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Gn={_initContainer:function(){this._container=_e("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Fn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=qn("shape");ye(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=qn("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;pe(e),t.removeInteractiveTarget(e),delete this._layers[r(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(e||(e=t._stroke=qn("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=g(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(o.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=qn("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){fe(t._container)},_bringToBack:function(t){ge(t._container)}},Kn=Bt.vml?qn:X,Yn=Fn.extend({_initContainer:function(){this._container=Kn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Kn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){pe(this._container),De(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Fn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),ze(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Kn("path");t.options.className&&ye(e,t.options.className),t.options.interactive&&ye(e,"leaflet-interactive"),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){pe(t._path),t.removeInteractiveTarget(t._path),delete this._layers[r(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,J(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){fe(t._path)},_bringToBack:function(t){ge(t._path)}});function Xn(t){return Bt.svg||Bt.vml?new Yn(t):null}Bt.vml&&Yn.include(Gn),ii.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Vn(t)||Xn(t)}});var Jn=un.extend({initialize:function(t,e){un.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=D(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function $n(t,e){return new Jn(t,e)}Yn.create=Kn,Yn.pointsToPath=J,dn.geometryToLayer=_n,dn.coordsToLatLng=mn,dn.coordsToLatLngs=fn,dn.latLngToCoords=gn,dn.latLngsToCoords=vn,dn.getFeature=yn,dn.asFeature=xn,ii.mergeOptions({boxZoom:!0});var Qn=mi.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Re(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){De(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){pe(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),ne(),ke(),this._startPoint=this._map.mouseEventToContainerPoint(t),Re(document,{contextmenu:Ke,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=_e("div","leaflet-zoom-box",this._container),ye(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new B(this._point,this._startPoint),i=e.getSize();ze(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(pe(this._box),xe(this._container,"leaflet-crosshair")),oe(),Ze(),De(document,{contextmenu:Ke,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var e=new N(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ii.addInitHook("addHandler","boxZoom",Qn),ii.mergeOptions({doubleClickZoom:!0});var to=mi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});ii.addInitHook("addHandler","doubleClickZoom",to),ii.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var eo=mi.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new vi(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}ye(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){xe(this._map._container,"leaflet-grab"),xe(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=D(this._map.options.maxBounds);this._offsetLimit=R(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.xe.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,s=(n+e+i)%t-e-i,r=Math.abs(o+i)0?s:-s))-e;this._delta=0,this._startTime=null,r&&("center"===t.options.scrollWheelZoom?t.setZoom(e+r):t.setZoomAround(this._lastMousePos,e+r))}});ii.addInitHook("addHandler","scrollWheelZoom",no);var oo=600;ii.mergeOptions({tapHold:Bt.touchNative&&Bt.safari&&Bt.mobile,tapTolerance:15});var so=mi.extend({addHooks:function(){Re(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){De(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new A(e.clientX,e.clientY),this._holdTimeout=setTimeout(o((function(){this._cancel(),this._isTapValid()&&(Re(document,"touchend",Ge),Re(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))}),this),oo),Re(document,"touchend touchcancel contextmenu",this._cancel,this),Re(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){De(document,"touchend",Ge),De(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),De(document,"touchend touchcancel contextmenu",this._cancel,this),De(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new A(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=!0,e.target.dispatchEvent(i)}});ii.addInitHook("addHandler","tapHold",so),ii.mergeOptions({touchZoom:Bt.touch,bounceAtZoomLimits:!0});var ro=mi.extend({addHooks:function(){ye(this._map._container,"leaflet-touch-zoom"),Re(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){xe(this._map._container,"leaflet-touch-zoom"),De(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Re(document,"touchmove",this._onTouchMove,this),Re(document,"touchend touchcancel",this._onTouchEnd,this),Ge(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),s=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(s,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoome.getMaxZoom()&&s>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===s)return}else{var r=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(1===s&&0===r.x&&0===r.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),z(this._animRequest);var a=o(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=M(a,this,!0),Ge(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,z(this._animRequest),De(document,"touchmove",this._onTouchMove,this),De(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});ii.addInitHook("addHandler","touchZoom",ro),ii.BoxZoom=Qn,ii.DoubleClickZoom=to,ii.Drag=eo,ii.Keyboard=io,ii.ScrollWheelZoom=no,ii.TapHold=so,ii.TouchZoom=ro,t.Bounds=B,t.Browser=Bt,t.CRS=W,t.Canvas=Un,t.Circle=rn,t.CircleMarker=on,t.Class=S,t.Control=oi,t.DivIcon=In,t.DivOverlay=kn,t.DomEvent=ti,t.DomUtil=Be,t.Draggable=vi,t.Evented=E,t.FeatureGroup=Ki,t.GeoJSON=dn,t.GridLayer=Rn,t.Handler=mi,t.Icon=Xi,t.ImageOverlay=Ln,t.LatLng=j,t.LatLngBounds=N,t.Layer=Vi,t.LayerGroup=qi,t.LineUtil=Ni,t.Map=ii,t.Marker=tn,t.Mixin=fi,t.Path=nn,t.Point=A,t.PolyUtil=Pi,t.Polygon=un,t.Polyline=hn,t.Popup=Zn,t.PosAnimation=ei,t.Projection=Hi,t.Rectangle=Jn,t.Renderer=Fn,t.SVG=Yn,t.SVGOverlay=Cn,t.TileLayer=Dn,t.Tooltip=An,t.Transformation=q,t.Util=C,t.VideoOverlay=Mn,t.bind=o,t.bounds=R,t.canvas=Vn,t.circle=an,t.circleMarker=sn,t.control=si,t.divIcon=Bn,t.extend=i,t.featureGroup=Yi,t.geoJSON=bn,t.geoJson=Pn,t.gridLayer=Nn,t.icon=Ji,t.imageOverlay=Tn,t.latLng=H,t.latLngBounds=D,t.layerGroup=Gi,t.map=ni,t.marker=en,t.point=I,t.polygon=cn,t.polyline=ln,t.popup=En,t.rectangle=$n,t.setOptions=_,t.stamp=r,t.svg=Xn,t.svgOverlay=Sn,t.tileLayer=jn,t.tooltip=On,t.transformation=G,t.version=e,t.videoOverlay=zn;var ao=window.L;t.noConflict=function(){return window.L=ao,this},window.L=t}(e)},81501:(t,e,i)=>{"use strict";i.d(e,{K:()=>s,Q:()=>o});var n=i(85672);function o(t,e,i){return Object.freeze({instance:t,context:e,container:i})}function s(t,e){return null==e?function(e,i){const o=(0,n.useRef)();return o.current||(o.current=t(e,i)),o}:function(i,o){const s=(0,n.useRef)();s.current||(s.current=t(i,o));const r=(0,n.useRef)(i),{instance:a}=s.current;return(0,n.useEffect)((function(){r.current!==i&&(e(a,i,r.current),r.current=i)}),[a,i,o]),s}}},91001:(t,e,i)=>{"use strict";i.d(e,{R:()=>l});var n=i(53986),o=i(91323),s=i(81501),r=i(12414),a=i(73413);const h=["positions"],l=(0,o.Lt)((function(t,e){let{positions:i}=t,o=(0,n.A)(t,h);const l=new a.Polyline(i,o);return(0,s.Q)(l,(0,r.W4)(e,{overlayContainer:l}))}),(function(t,e,i){e.positions!==i.positions&&t.setLatLngs(e.positions)}))},91323:(t,e,i)=>{"use strict";i.d(e,{T7:()=>m,Nq:()=>f,wk:()=>g,Lt:()=>v,X3:()=>y});var n=i(85672),o=i(40829),s=i(12414);function r(t){function e(e,i){const{instance:o,context:r}=t(e).current;return(0,n.useImperativeHandle)(i,(()=>o)),null==e.children?null:n.createElement(s.hL,{value:r},e.children)}return(0,n.forwardRef)(e)}function a(t){function e(e,i){const{instance:o}=t(e).current;return(0,n.useImperativeHandle)(i,(()=>o)),null}return(0,n.forwardRef)(e)}var h=i(81501);function l(t,e){const i=(0,n.useRef)(e);(0,n.useEffect)((function(){e!==i.current&&null!=t.attributionControl&&(null!=i.current&&t.attributionControl.removeAttribution(i.current),null!=e&&t.attributionControl.addAttribution(e)),i.current=e}),[t,e])}function u(t,e){const i=(0,n.useRef)();(0,n.useEffect)((function(){return null!=e&&t.instance.on(e),i.current=e,function(){null!=i.current&&t.instance.off(i.current),i.current=null}}),[t,e])}var c=i(40323);function d(t,e){(0,n.useEffect)((function(){var i;return(null!==(i=e.layerContainer)&&void 0!==i?i:e.map).addLayer(t.instance),function(){var i;null===(i=e.layerContainer)||void 0===i||i.removeLayer(t.instance),e.map.removeLayer(t.instance)}}),[e,t])}function _(t){return function(e){const i=(0,s.U$)(),n=t((0,c.P)(e,i),i);return l(i.map,e.attribution),u(n.current,e.eventHandlers),d(n.current,i),n}}function p(t){return function(e){const i=(0,s.U$)(),o=t((0,c.P)(e,i),i);return u(o.current,e.eventHandlers),d(o.current,i),function(t,e){const i=(0,n.useRef)();(0,n.useEffect)((function(){if(e.pathOptions!==i.current){var n;const o=null!==(n=e.pathOptions)&&void 0!==n?n:{};t.instance.setStyle(o),i.current=o}}),[t,e])}(o.current,e),o}}function m(t){const e=function(t){return function(e){const i=(0,s.U$)(),o=t(e,i),{instance:r}=o.current,a=(0,n.useRef)(e.position),{position:h}=e;return(0,n.useEffect)((function(){return r.addTo(i.map),function(){r.remove()}}),[i.map,r]),(0,n.useEffect)((function(){null!=h&&h!==a.current&&(r.setPosition(h),a.current=h)}),[r,h]),o}}((0,h.K)((function(e,i){return(0,h.Q)(t(e),i)})));return a(e)}function f(t,e){return r(_((0,h.K)(t,e)))}function g(t,e){const i=function(t,e){return function(i,n){const o=(0,s.U$)(),r=t((0,c.P)(i,o),o);return l(o.map,i.attribution),u(r.current,i.eventHandlers),e(r.current,o,i,n),r}}((0,h.K)(t),e);return function(t){function e(e,i){const[s,r]=(0,n.useState)(!1),{instance:a}=t(e,r).current;(0,n.useImperativeHandle)(i,(()=>a)),(0,n.useEffect)((function(){s&&a.update()}),[a,s,e.children]);const h=a._contentNode;return h?(0,o.createPortal)(e.children,h):null}return(0,n.forwardRef)(e)}(i)}function v(t,e){return r(p((0,h.K)(t,e)))}function y(t,e){return a(_((0,h.K)(t,e)))}},98443:()=>{}}]); \ No newline at end of file diff --git a/build/static/js/6321.e0290628.chunk.js.LICENSE.txt b/build/static/js/1025.db4d08ad.chunk.js.LICENSE.txt similarity index 100% rename from build/static/js/6321.e0290628.chunk.js.LICENSE.txt rename to build/static/js/1025.db4d08ad.chunk.js.LICENSE.txt diff --git a/build/static/js/1148.1f747cf9.chunk.js b/build/static/js/1148.1f747cf9.chunk.js deleted file mode 100644 index a8c4303..0000000 --- a/build/static/js/1148.1f747cf9.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[1148],{11148:(e,i,l)=>{l.r(i),l.d(i,{default:()=>C});var n=l(93230),t=l(41413),s=l(16491),o=l(82053),c=l(2235),d=l(47223),r=l(25277),a=l(60899),x=l(14857),h=l(36150),m=l(31222),v=l(94826),A=l(52351),p=l(81425),j=l(44414);const u=16,g="0 14px 40px rgba(15, 23, 42, 0.10)",f="#0f172a",b="#64748b",S="#94a3b8",W="#e2e8f0",k="#f1f5f9",Y="#f8fafc",J="#662582",w=e=>"".concat(e,"08"),R=e=>"".concat(e,"18"),y=e=>{let{icon:i,label:l,value:c,accent:d=J}=e;return(0,j.jsxs)(n.A,{direction:"row",spacing:1.5,alignItems:"flex-start",sx:{minWidth:0},children:[(0,j.jsx)(t.A,{sx:{width:36,height:36,bgcolor:R(d),color:d,flexShrink:0},children:(0,j.jsx)(i,{size:18})}),(0,j.jsxs)(s.A,{sx:{minWidth:0},children:[(0,j.jsx)(o.A,{variant:"overline",sx:{display:"block",color:S,lineHeight:1.6,letterSpacing:"0.06em"},children:l}),(0,j.jsx)(o.A,{variant:"body1",sx:{fontWeight:600,color:f,wordBreak:"break-word"},title:c||"",children:c||"\u2014"})]})]})},T=e=>{let{title:i,icon:l,children:d}=e;return(0,j.jsxs)(c.A,{elevation:0,sx:{borderRadius:u+"px",border:"1px solid ".concat(W),boxShadow:g,overflow:"hidden",height:"100%"},children:[(0,j.jsxs)(n.A,{direction:"row",alignItems:"center",spacing:1.25,sx:{px:2.5,py:1.75,borderBottom:"1px solid ".concat(k),bgcolor:Y},children:[(0,j.jsx)(t.A,{sx:{width:28,height:28,bgcolor:R(J),color:J},children:(0,j.jsx)(l,{size:16})}),(0,j.jsx)(o.A,{variant:"subtitle1",sx:{fontWeight:700,color:f},children:i})]}),(0,j.jsx)(s.A,{sx:{p:2.5},children:d})]})},C=()=>{const e=(0,x.A)(),i=(0,d.A)(e.breakpoints.down("md")),{data:l,isLoading:S}=(0,h.I)({queryKey:["getuser"],queryFn:p.ts}),k=(null===l||void 0===l?void 0:l.fullname)||(null===l||void 0===l?void 0:l.firstname)||"User Profile";return(0,j.jsxs)(j.Fragment,{children:[S&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(A.A,{}),(0,j.jsx)(v.A,{})]}),(0,j.jsxs)(s.A,{sx:{p:{xs:1.5,md:0}},children:[(0,j.jsx)(c.A,{elevation:0,sx:{borderRadius:u+"px",border:"1px solid ".concat(W),background:"linear-gradient(135deg, ".concat(w(J)," 0%, ").concat(w("#9255AB")," 100%)"),boxShadow:g,p:{xs:2.5,md:3.5},mb:{xs:2.5,md:3}},children:(0,j.jsxs)(n.A,{direction:{xs:"column",sm:"row"},spacing:{xs:2,sm:3},alignItems:{xs:"flex-start",sm:"center"},children:[(0,j.jsx)(t.A,{sx:{width:{xs:64,md:76},height:{xs:64,md:76},bgcolor:J,color:"#fff",fontSize:{xs:24,md:28},fontWeight:700,boxShadow:"0 10px 24px rgba(102, 37, 130, 0.35)"},children:(Y=k,(Y||"").trim().split(/\s+/).slice(0,2).map((e=>e[0])).join("").toUpperCase()||"\u2013")}),(0,j.jsxs)(s.A,{sx:{minWidth:0},children:[(0,j.jsx)(o.A,{variant:"h3",sx:{color:f,fontWeight:700,mb:.5},children:k}),(0,j.jsxs)(n.A,{direction:"row",spacing:1,flexWrap:"wrap",useFlexGap:!0,alignItems:"center",children:[(null===l||void 0===l?void 0:l.authname)&&(0,j.jsx)(r.A,{size:"small",icon:(0,j.jsx)(m.AI8,{size:14,style:{color:J}}),label:l.authname,sx:{bgcolor:R(J),color:J,fontWeight:700,border:"1px solid ".concat(J,"40"),"& .MuiChip-icon":{ml:"6px"}}}),null!=(null===l||void 0===l?void 0:l.userid)&&""!==(null===l||void 0===l?void 0:l.userid)&&(0,j.jsxs)(o.A,{variant:"body2",sx:{color:b,fontWeight:600},children:["ID\xa0#",l.userid]}),(null===l||void 0===l?void 0:l.applocation)&&(0,j.jsxs)(n.A,{direction:"row",spacing:.5,alignItems:"center",sx:{color:b},children:[(0,j.jsx)(m.gwi,{size:15}),(0,j.jsx)(o.A,{variant:"body2",sx:{fontWeight:600},children:l.applocation})]})]})]})]})}),(0,j.jsxs)(a.Ay,{container:!0,spacing:{xs:2.5,md:3},children:[(0,j.jsx)(a.Ay,{item:!0,xs:12,md:6,children:(0,j.jsx)(T,{title:"Account",icon:m.tpc,children:(0,j.jsxs)(n.A,{spacing:2.5,children:[(0,j.jsx)(y,{icon:m.LTk,label:"User Name",value:null===l||void 0===l?void 0:l.fullname}),(0,j.jsx)(y,{icon:m.tpc,label:"User ID",value:null===l||void 0===l?void 0:l.userid}),(0,j.jsx)(y,{icon:m.AI8,label:"Auth Name",value:null===l||void 0===l?void 0:l.authname}),(0,j.jsx)(y,{icon:m.gwi,label:"App Location",value:null===l||void 0===l?void 0:l.applocation})]})})}),(0,j.jsx)(a.Ay,{item:!0,xs:12,md:6,children:(0,j.jsx)(T,{title:"Contact",icon:m.tfO,children:(0,j.jsxs)(n.A,{spacing:2.5,children:[(0,j.jsx)(y,{icon:m.EZw,label:"Contact No",value:null===l||void 0===l?void 0:l.contactno,accent:"#0ea5e9"}),(0,j.jsx)(y,{icon:m.tfO,label:"E-Mail",value:null===l||void 0===l?void 0:l.email,accent:"#0ea5e9"}),(0,j.jsx)(y,{icon:m.JFD,label:"Address",value:null===l||void 0===l?void 0:l.address,accent:"#0ea5e9"})]})})}),(0,j.jsx)(a.Ay,{item:!0,xs:12,children:(0,j.jsx)(T,{title:"Location",icon:m.Cd7,children:(0,j.jsxs)(a.Ay,{container:!0,spacing:i?2.5:3,children:[(0,j.jsx)(a.Ay,{item:!0,xs:12,sm:6,md:3,children:(0,j.jsx)(y,{icon:m.HPi,label:"Suburb",value:null===l||void 0===l?void 0:l.suburb,accent:"#14b8a6"})}),(0,j.jsx)(a.Ay,{item:!0,xs:12,sm:6,md:3,children:(0,j.jsx)(y,{icon:m.qod,label:"City",value:null===l||void 0===l?void 0:l.city,accent:"#14b8a6"})}),(0,j.jsx)(a.Ay,{item:!0,xs:12,sm:6,md:3,children:(0,j.jsx)(y,{icon:m.Cd7,label:"State",value:null===l||void 0===l?void 0:l.state,accent:"#14b8a6"})}),(0,j.jsx)(a.Ay,{item:!0,xs:12,sm:6,md:3,children:(0,j.jsx)(y,{icon:m.u9F,label:"Postcode",value:null===l||void 0===l?void 0:l.postcode,accent:"#14b8a6"})})]})})})]})]})]});var Y}},62217:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAAA+CAYAAABzwahEAAAPnUlEQVR4AdVae3AU9R3/7d4jdyGQQKAhECBAJBSmEAtFSQUjqPgAHGlhRm0lDkWY6Tg+O9qiErR26h8WR8ZWqTMN1ur4qMpDrTyjtDwDJloeCYiBvAgkaZ53l7vb3X4/v9vfZS/Zu9uFwLSfmb3d293f7u/z+z5/399K7CphdW5JrupgBZosZ0ialmu8pklSjUOTamRJbvvjqTUV7CpAYlcIj+SWZHQ55WJZlm7UNK2IXpRhpZ3GWJskSWXUZrPD4Sp77eSva9gVwIATXz35+SJNYWs1phWxAYDEpDKVaZv+fOrZUjaAGDDiK695rpgetpYOc82upw72sMycdJbz/SzmHeKl/ynRay31bbS1s7rjTczXGYj3ihrShnUDNQCXTXzlNS8UyExdbybhSdeNYwXz81nBzflE2pKms7oT51ntiSa276NKVn3wrNktNcGQelNpTUkNuwxcFvFV+S88rKnKy8ZzkOz84uvYvOJZ/PhyAE3Y/+HXbN+HFVwjjJAlR8lr1WueY9wt2MclEYfj8rnkj+nwRnHOLuGWhnbmpfuMKh/3Xn0Atm74IuY8OcGPFYk99kbVM98xm7BFnDyttHLyb3MlRdsjSWycOA+VLv79YpY5Ork6V5efY59s/JJVHznH/+dMymLz7v0Rm71oWtK2GIDSJ7ew6kMxJlCjytI8u+Qddm4+93bPBIfqiiG96KG5RPouljokuZT3b/2avf7EB6ylsZ1dM2MsG5OfxU7RAFSWVbMAObUphRMTtsc7CpdMh6c3kqe8gN117Yh5W4627GljFmGZ+C/ynx/flzSkDPW2Aqj2+lV/Y5mj0tljG3/GFhQXspkLpnBJVx85yyq/OGWJPAANgzkd2/utOMXJzxp965vlF3YFrPRHZtYgSZq6vi/p2TT6VrF+1Vt8/yiRhnoLiIHAftc7h0kDzlp6HgYcfTAgVwmEPmIWzTeZxPEQaeWkkhJJk1eJk8vWLGBz75nBrAIqfmDrN2zhqjlsetGkftddKU6WQ2qPe6AZVuwdGPP9kWw4+ZWKnVXiVO6M4UXtR1rKDiZrm4g4J70871cTnMzzd3ESNn3bgz9mdgC7hmoufeKWuB4/c1QGV3nYfP7Msfy/FYB8rM1LC6YNm72lonXv+UTtEqr60qVLJTcbvEv8h20tfOhGZgeQtpBiZnZ6wnuhEUDFnlPMDhaSMCbNilohc0kp61mEW1y1j0u8hLR78Ff5xX3t2i5AHLjegvqOIdtHXK/8oorZRfGLiw3aJM1dkVeynA5kCsGm98cjLhNxh4O5nxEnoOJW4rQRkDRUF3adTNoAEprRRB7tfJ09zA7Qt3mGCCMz+dmioiLKcSRTjvGISw/kPbNcSDtzdLotDy6A+AyYObR4KCjK53ur3t2I+ct7s0b0Pfds4U04RuLV914z4rjJ4ZSc94sTSBrsShvYv62S76frZKwAYQ2orWpidoEExyh1tzPl6SlTpjhJ6v3u7Utcgm0vHf/wePKUc8TJS5E21LWu6gKbRBmalXwcgHp70yISg8QR3oTWWAWk3gtpbp6/cCiLRK8Y9k7jHzgCGh3n8om/ibpueHKr0vZT5lVZFvHItVWRaALVQ4pqxcYfL3opeoxcvlr3D4BVc4HU4eFFeMt0ZsHJvUzcFKPkY4gvW7YMGiC7ZfcicW723dalXUsS3lSyNeZcBUmsmaS/5p0Vlp4BVccADsvOYP6uAM/yKsqq7PkJmv8L4k7mmEu7DcRNIfIqkedu3qjq0pkzZ/DfITE5quZjp2Qxu0Dnha1iX1fdxD55fW/CNjANYN49s7jKI5O788E5kfY0oHZQcEuvT5GY8wbaye+//36MqsfY+JEjR6QlY1cX0CHvNdQmZ/JIZhUtjW3RzkNqsG90Hti2cS8fgGSoqz7Pp6loi/uH6wNnJ7zBNA0ZYvrdY1aMZ6hdGHQ9RuL473KmDBUnUB+zAyE1dP6me2fxpMUYljat3Zb0GfvJodWRRz9Aic/utw+Ts/NG1L/L0qQrCoRggVTXUGRPMULmNo44h0CflZXlcGiuXLPGdoDOo7Pw0EYpC5W/c9Wcfm3EoAGiSAF4h0QiQmtDmyUHKZAzZSSrPam/W5MgzJgUlo+CrgFSU1OT5GTOseKi7UytsT2GiJlqW1X5aB+IrJfCYXNDO7MDYwh1yA4kYvKMGTNkkcxw4ghjdJLfQ9ntJRcgWxqsFUCsqDzg1e0U5FtsEvfGVIQ4J9nv90fNXEhcgmPLyEAh49KJW4WZlzezYSE172BvjDbZhc5JPn78eH/nlpubK7e1tcWQtjtRaDXpnLHaYkRflTdbSEhN65V4a4Plclo/IC/TDyV9ixCnNJWFw2EpPT2dBcKBBtHA3+FndmCmjsueuJnIf8/0/mQq79UlDkdpV+LGOnxQ7aljOmFwBTjxY8eOSXV1day9vV1SlFCHaFB3wroT8sdZ+kE4QuXFDMkSG7+ucZmUxdmdqrbU9WpIINQuiPO5CM5x4pTVYMdTucbgt8ejjeutj3K8Tg0jaU2aMY4nJWYQKm+mLT7d7kUW2GrDwRmFFpD8Xax3xSUmZcUfPhL7L2yvp9XJTv7ijgAv4ltBPK8rHNRCPf00QzKVRzs8p7Y6YRktCqy99foMrWN73bsnWJ/ZmTGbUVlkADRFDUarlIYKZkKYeWUjUYSm+0sWmraFxHdTaTkRhtnI2bHwKBBUA3iwSv6LcxPnjV4dI6J5vV61W+04JM5X7LBG3Mwr9820oPLxZln+zsQpac6kkdG5QDLs+7AyetwRat0FTvqsLEpeJDBaTU2NQocqBXl1f9PnH4uGmN5ZcSpmqu41KSUvffwWy4UJIzCIxlQ2bj/ILxnX1mq6Tx0EJwrVKlVjNFF8NKasbMSIEeqgQYOUWl91W0gNlIvGu0oPJH2h31Ti/VNeqP8dJrm6KQnDYIp5erKwZpR2j9JTfrRldy1x4mZMCYwWk7mxiPjVixcvqt3d3WpKSopS6z/9J/GA3ZsOJZW6mRp640h2Pk1bsWhoBzAToLo8fhES0t4fo+YXoblhWZbDtOcaLa5FbZziGyc/ZMgQpaenJ7yz4b1DqhpuxDV492RSNxuYeF4cWF6yiNmB8OyJ1B3SFlFI1ZSGj2o3grjS2dnJSescYyswa9eu5cQ7OjpwE0YodLGn/jVxHVJPFNfNc21PQiKiSJEIxgGFZ49XfETfthk+HGiO9B08wsOHD8deNd4fJa7rPi6G09LSeINPm97cHFT9R3gHSOqlT25m8WCWXCRzYvMpqUmkFYBxQOHZYedmNXdj36Cp6LvOJdTc3KzS4oKqC5cjSlz3dvhRurq6Qh6PJ0SDETrefvQP4h54y76fYwhg+ffRjfeRCi/kkrx+0Q9oVSRx2SpRbI8S7+iVuAiP+KrCiK0bvozx5Idat68KBoMhCmNBcKFQrYC4KDQC0SqrfhIS56oeCASC5ORCh5o/Pz7aO279CE/Oo7hvG70EBYrCPrX26CzM+uoxh0hnUWYyJd4VmSihWvvJxkheX2uY1e0qPRij4q09TW98/Z8D59B3CmNBUnMFoVpMTgT6LigI44eqB2kwMNxBchJvk8ofFTdtempLTNi4XCCdjWcWqLwgrH3w0g4eCaBVq1/6Kb+GPrz3u+3Re31K95cfnHv1dfSZPDn6HoKq06qvqvVZPey3Po6RKSsr49cwVWWRwXE2+M7tyxs87VZZktNwsZJSWVRhJxTksMsFPgyY85MZbGrhBJqDe5kzxRGd20MjOlq6qNqawSOBWDcHaQhAQCG7Pty66+l29WKz0+n0k8ZCVQITJ04M7dy5U1m3bl0M8XjVFgyIizYP2ckgUpnBdJw6OeOHuYWZC191ys6o8WJtepHNNXMrgDeHE0MuALLG9Bc2bVTvsBo+v6/ls1+ebDv8Ham4j8IxZmPdtMEzhljvPCSKeMT5wmF2dra7sbExlY4H0QZJe4n82L7ksWRT/OJdl1yVtQqELHhvoyMjSZ//V4T0WbfbHSCnxklTxdhPxdMgaXjY6NSMBPtBX0ODikPqbto4eXpwKj0Y5MfMHHbzI6mOtJhADOkXLikY8AGA9JFA7S49FDMZCij+ih31bz3V2FPbqpOGlLH5aION94vfAnELi3qtHddBHJ7Hy3Sp0+YhO3Ivzl65Yrgn+wFjO3j82UumDcgAxCMMNPnPbdhc98a7LpcLThikYdOQNrdtcmhhKrD0U3GBZBVVieKfg5wdJJ+Smprq9fl8kH4qvdATCoVc+ekFo28YvvgVh0H1BWACWGLGBzpjLK7KoGSEGgC2Pl8wckDK/247+MrR1t2YL8N+IVmfThh7YdcKS/Cda1LiqFHRJufk5LioLuch8h6dvJfIpxB5aITzjtE/v32kZ/wDTpMBAJC+YkkKWmD8ktlHCQqKmrUnL7BWIh3vs23YcmPgu798Wv/Xz0CM3h2mdwd0wnwjn9QzatSoEJXKw1pEZeMTYxagq73w9FB7Suw8XlVVvaRi+A/yuO64bfR9t2eljL09xeEtYAOAQNhfcabrm9J/XtyGPIKn1Lp6B3X19tN6gJ/m29ymSUgKUlMzh2aEncUDmdRe1tXeaPce/dilbxgAOT99evbEQdOuHebJvsHrSC2gpec0Ky/RmNrlV3wVneHWrw427/hHc7C+k/IJEFZ1KSOjDFDIEtLmSRb1LUR94/dZeY+tVROoPDaQo1TQTS9PoSlfik4cA0B9c7mpc1z6GAByghISoZkjivI8MuVRjqEjU52DRuossXir+UJdFHcCXfW+b09VtR9tMnReoefxNJqeCbsF6R7KygL03B56N8/OWK/3tkTaNnHWa/M8zrNIru8iOik0GeADQGHFTabh0q85qL/8Kwu0xSBgTwPB6BiLGMZn83SZzmuQMAhTWz5voEeGoNcgTtWUHiqW8OO8vLww+R5lz5494UT2PBDEY9rSQqOTHAmP91TFdNGChJsyPTdlelztqcMu6i+XvNiIkBQRHlcPHGv6sUbHIKzo56J1AZBkvR5cSFhUVBR2CbD69bIpysvLecdoAHqINOytm0ijJt9J3r+TVBLHXfrGkwsiJRIMLF1i76MBEue7qE0XqTPadYiNnFen3j6Ad5HGYSDwTcslkQYGamVULLrLpH7y6dOnuY1TGctFFR0hcYfhvujinQ6eaNBgYc6sEHm+0WAKqatEWJkwYYI6depUjYhbtuWrBW775GGd1FEXFQA8FFsR8+HRMdFBKocgPrTvRkgnh4l70ijPxtwAzpLnCLpDvSztvFqQ9C8PuAPEINDeTdpgjADYjOFQhESn3s6hP+OKr9dfSUhCaiIcYjNIMur52f850f95/BfoYlARf1CQvwAAAABJRU5ErkJggg=="},94826:(e,i,l)=>{l.d(i,{A:()=>r});var n=l(59254),t=l(46639),s=l(62217),o=l(44414);const c=(0,n.Ay)("div")((()=>({position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2001,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0.7)",padding:"20px",borderRadius:"10px"}))),d=(0,n.Ay)("div")((()=>({position:"absolute",width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center"}))),r=()=>(0,o.jsxs)(c,{children:[(0,o.jsx)(t.A,{color:"primary",size:80,thickness:6}),(0,o.jsx)(d,{children:(0,o.jsx)("img",{src:s,alt:"Logo",style:{width:"100%",height:"100%"}})})]})}}]); \ No newline at end of file diff --git a/build/static/js/1148.f2e54475.chunk.js b/build/static/js/1148.f2e54475.chunk.js new file mode 100644 index 0000000..4f756ab --- /dev/null +++ b/build/static/js/1148.f2e54475.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[1148],{11148:(e,i,r)=>{r.r(i),r.d(i,{default:()=>P});var t=r(71392),n=r(97043),o=r(48738),s=r(2866),a=r(55235),l=r(76264),c=r(81062),d=r(1939),h=r(69039),x=r(68320),m=r(48952),v=r(94826),u=r(52351),A=r(81425),p=r(65908);const f=16,j="0 14px 40px rgba(15, 23, 42, 0.10)",g="#0f172a",b="#64748b",S="#94a3b8",k="#e2e8f0",y="#f1f5f9",w="#f8fafc",W="#662582",Y=e=>"".concat(e,"08"),R=e=>"".concat(e,"18"),J=e=>{let{icon:i,label:r,value:a,accent:l=W}=e;return(0,p.jsxs)(t.A,{direction:"row",spacing:1.5,alignItems:"flex-start",sx:{minWidth:0},children:[(0,p.jsx)(n.A,{sx:{width:36,height:36,bgcolor:R(l),color:l,flexShrink:0},children:(0,p.jsx)(i,{size:18})}),(0,p.jsxs)(o.A,{sx:{minWidth:0},children:[(0,p.jsx)(s.A,{variant:"overline",sx:{display:"block",color:S,lineHeight:1.6,letterSpacing:"0.06em"},children:r}),(0,p.jsx)(s.A,{variant:"body1",sx:{fontWeight:600,color:g,wordBreak:"break-word"},title:a||"",children:a||"\u2014"})]})]})},C=e=>{let{title:i,icon:r,children:l}=e;return(0,p.jsxs)(a.A,{elevation:0,sx:{borderRadius:f+"px",border:"1px solid ".concat(k),boxShadow:j,overflow:"hidden",height:"100%"},children:[(0,p.jsxs)(t.A,{direction:"row",alignItems:"center",spacing:1.25,sx:{px:2.5,py:1.75,borderBottom:"1px solid ".concat(y),bgcolor:w},children:[(0,p.jsx)(n.A,{sx:{width:28,height:28,bgcolor:R(W),color:W},children:(0,p.jsx)(r,{size:16})}),(0,p.jsx)(s.A,{variant:"subtitle1",sx:{fontWeight:700,color:g},children:i})]}),(0,p.jsx)(o.A,{sx:{p:2.5},children:l})]})},P=()=>{const e=(0,h.A)(),i=(0,l.A)(e.breakpoints.down("md")),{data:r,isLoading:S}=(0,x.I)({queryKey:["getuser"],queryFn:A.ts}),y=(null===r||void 0===r?void 0:r.fullname)||(null===r||void 0===r?void 0:r.firstname)||"User Profile";return(0,p.jsxs)(p.Fragment,{children:[S&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(u.A,{}),(0,p.jsx)(v.A,{})]}),(0,p.jsxs)(o.A,{sx:{p:{xs:1.5,md:0}},children:[(0,p.jsx)(a.A,{elevation:0,sx:{borderRadius:f+"px",border:"1px solid ".concat(k),background:"linear-gradient(135deg, ".concat(Y(W)," 0%, ").concat(Y("#9255AB")," 100%)"),boxShadow:j,p:{xs:2.5,md:3.5},mb:{xs:2.5,md:3}},children:(0,p.jsxs)(t.A,{direction:{xs:"column",sm:"row"},spacing:{xs:2,sm:3},alignItems:{xs:"flex-start",sm:"center"},children:[(0,p.jsx)(n.A,{sx:{width:{xs:64,md:76},height:{xs:64,md:76},bgcolor:W,color:"#fff",fontSize:{xs:24,md:28},fontWeight:700,boxShadow:"0 10px 24px rgba(102, 37, 130, 0.35)"},children:(w=y,(w||"").trim().split(/\s+/).slice(0,2).map((e=>e[0])).join("").toUpperCase()||"\u2013")}),(0,p.jsxs)(o.A,{sx:{minWidth:0},children:[(0,p.jsx)(s.A,{variant:"h3",sx:{color:g,fontWeight:700,mb:.5},children:y}),(0,p.jsxs)(t.A,{direction:"row",spacing:1,flexWrap:"wrap",useFlexGap:!0,alignItems:"center",children:[(null===r||void 0===r?void 0:r.authname)&&(0,p.jsx)(c.A,{size:"small",icon:(0,p.jsx)(m.AI8,{size:14,style:{color:W}}),label:r.authname,sx:{bgcolor:R(W),color:W,fontWeight:700,border:"1px solid ".concat(W,"40"),"& .MuiChip-icon":{ml:"6px"}}}),null!=(null===r||void 0===r?void 0:r.userid)&&""!==(null===r||void 0===r?void 0:r.userid)&&(0,p.jsxs)(s.A,{variant:"body2",sx:{color:b,fontWeight:600},children:["ID\xa0#",r.userid]}),(null===r||void 0===r?void 0:r.applocation)&&(0,p.jsxs)(t.A,{direction:"row",spacing:.5,alignItems:"center",sx:{color:b},children:[(0,p.jsx)(m.gwi,{size:15}),(0,p.jsx)(s.A,{variant:"body2",sx:{fontWeight:600},children:r.applocation})]})]})]})]})}),(0,p.jsxs)(d.Ay,{container:!0,spacing:{xs:2.5,md:3},children:[(0,p.jsx)(d.Ay,{item:!0,xs:12,md:6,children:(0,p.jsx)(C,{title:"Account",icon:m.tpc,children:(0,p.jsxs)(t.A,{spacing:2.5,children:[(0,p.jsx)(J,{icon:m.LTk,label:"User Name",value:null===r||void 0===r?void 0:r.fullname}),(0,p.jsx)(J,{icon:m.tpc,label:"User ID",value:null===r||void 0===r?void 0:r.userid}),(0,p.jsx)(J,{icon:m.AI8,label:"Auth Name",value:null===r||void 0===r?void 0:r.authname}),(0,p.jsx)(J,{icon:m.gwi,label:"App Location",value:null===r||void 0===r?void 0:r.applocation})]})})}),(0,p.jsx)(d.Ay,{item:!0,xs:12,md:6,children:(0,p.jsx)(C,{title:"Contact",icon:m.tfO,children:(0,p.jsxs)(t.A,{spacing:2.5,children:[(0,p.jsx)(J,{icon:m.EZw,label:"Contact No",value:null===r||void 0===r?void 0:r.contactno,accent:"#0ea5e9"}),(0,p.jsx)(J,{icon:m.tfO,label:"E-Mail",value:null===r||void 0===r?void 0:r.email,accent:"#0ea5e9"}),(0,p.jsx)(J,{icon:m.JFD,label:"Address",value:null===r||void 0===r?void 0:r.address,accent:"#0ea5e9"})]})})}),(0,p.jsx)(d.Ay,{item:!0,xs:12,children:(0,p.jsx)(C,{title:"Location",icon:m.Cd7,children:(0,p.jsxs)(d.Ay,{container:!0,spacing:i?2.5:3,children:[(0,p.jsx)(d.Ay,{item:!0,xs:12,sm:6,md:3,children:(0,p.jsx)(J,{icon:m.HPi,label:"Suburb",value:null===r||void 0===r?void 0:r.suburb,accent:"#14b8a6"})}),(0,p.jsx)(d.Ay,{item:!0,xs:12,sm:6,md:3,children:(0,p.jsx)(J,{icon:m.qod,label:"City",value:null===r||void 0===r?void 0:r.city,accent:"#14b8a6"})}),(0,p.jsx)(d.Ay,{item:!0,xs:12,sm:6,md:3,children:(0,p.jsx)(J,{icon:m.Cd7,label:"State",value:null===r||void 0===r?void 0:r.state,accent:"#14b8a6"})}),(0,p.jsx)(d.Ay,{item:!0,xs:12,sm:6,md:3,children:(0,p.jsx)(J,{icon:m.u9F,label:"Postcode",value:null===r||void 0===r?void 0:r.postcode,accent:"#14b8a6"})})]})})})]})]})]});var w}},12010:(e,i,r)=>{r.d(i,{A:()=>T});var t=r(57528),n=r(84849),o=r(27326),s=r(85672),a=r(72574),l=r(25234),c=r(8913),d=r(16775),h=r(38009),x=r(60308),m=r(37300),v=r(10644);function u(e){return(0,v.Ay)("MuiCircularProgress",e)}(0,m.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var A,p,f,j,g=r(65908);const b=["className","color","disableShrink","size","style","thickness","value","variant"];let S,k,y,w;const W=44,Y=(0,c.i7)(S||(S=A||(A=(0,t.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),R=(0,c.i7)(k||(k=p||(p=(0,t.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),J=(0,x.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,i)=>{const{ownerState:r}=e;return[i.root,i[r.variant],i["color".concat((0,d.A)(r.color))]]}})((e=>{let{ownerState:i,theme:r}=e;return(0,o.A)({display:"inline-block"},"determinate"===i.variant&&{transition:r.transitions.create("transform")},"inherit"!==i.color&&{color:(r.vars||r).palette[i.color].main})}),(e=>{let{ownerState:i}=e;return"indeterminate"===i.variant&&(0,c.AH)(y||(y=f||(f=(0,t.A)(["\n animation: "," 1.4s linear infinite;\n "]))),Y)})),C=(0,x.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,i)=>i.svg})({display:"block"}),P=(0,x.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,i)=>{const{ownerState:r}=e;return[i.circle,i["circle".concat((0,d.A)(r.variant))],r.disableShrink&&i.circleDisableShrink]}})((e=>{let{ownerState:i,theme:r}=e;return(0,o.A)({stroke:"currentColor"},"determinate"===i.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===i.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:i}=e;return"indeterminate"===i.variant&&!i.disableShrink&&(0,c.AH)(w||(w=j||(j=(0,t.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),R)})),T=s.forwardRef((function(e,i){const r=(0,h.b)({props:e,name:"MuiCircularProgress"}),{className:t,color:s="primary",disableShrink:c=!1,size:x=40,style:m,thickness:v=3.6,value:A=0,variant:p="indeterminate"}=r,f=(0,n.A)(r,b),j=(0,o.A)({},r,{color:s,disableShrink:c,size:x,thickness:v,value:A,variant:p}),S=(e=>{const{classes:i,variant:r,color:t,disableShrink:n}=e,o={root:["root",r,"color".concat((0,d.A)(t))],svg:["svg"],circle:["circle","circle".concat((0,d.A)(r)),n&&"circleDisableShrink"]};return(0,l.A)(o,u,i)})(j),k={},y={},w={};if("determinate"===p){const e=2*Math.PI*((W-v)/2);k.strokeDasharray=e.toFixed(3),w["aria-valuenow"]=Math.round(A),k.strokeDashoffset="".concat(((100-A)/100*e).toFixed(3),"px"),y.transform="rotate(-90deg)"}return(0,g.jsx)(J,(0,o.A)({className:(0,a.A)(S.root,t),style:(0,o.A)({width:x,height:x},y,m),ownerState:j,ref:i,role:"progressbar"},w,f,{children:(0,g.jsx)(C,{className:S.svg,ownerState:j,viewBox:"".concat(22," ").concat(22," ").concat(W," ").concat(W),children:(0,g.jsx)(P,{className:S.circle,style:k,ownerState:j,cx:W,cy:W,r:(W-v)/2,fill:"none",strokeWidth:v})})}))}))},62217:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAAA+CAYAAABzwahEAAAPnUlEQVR4AdVae3AU9R3/7d4jdyGQQKAhECBAJBSmEAtFSQUjqPgAHGlhRm0lDkWY6Tg+O9qiErR26h8WR8ZWqTMN1ur4qMpDrTyjtDwDJloeCYiBvAgkaZ53l7vb3X4/v9vfZS/Zu9uFwLSfmb3d293f7u/z+z5/399K7CphdW5JrupgBZosZ0ialmu8pklSjUOTamRJbvvjqTUV7CpAYlcIj+SWZHQ55WJZlm7UNK2IXpRhpZ3GWJskSWXUZrPD4Sp77eSva9gVwIATXz35+SJNYWs1phWxAYDEpDKVaZv+fOrZUjaAGDDiK695rpgetpYOc82upw72sMycdJbz/SzmHeKl/ynRay31bbS1s7rjTczXGYj3ihrShnUDNQCXTXzlNS8UyExdbybhSdeNYwXz81nBzflE2pKms7oT51ntiSa276NKVn3wrNktNcGQelNpTUkNuwxcFvFV+S88rKnKy8ZzkOz84uvYvOJZ/PhyAE3Y/+HXbN+HFVwjjJAlR8lr1WueY9wt2MclEYfj8rnkj+nwRnHOLuGWhnbmpfuMKh/3Xn0Atm74IuY8OcGPFYk99kbVM98xm7BFnDyttHLyb3MlRdsjSWycOA+VLv79YpY5Ork6V5efY59s/JJVHznH/+dMymLz7v0Rm71oWtK2GIDSJ7ew6kMxJlCjytI8u+Qddm4+93bPBIfqiiG96KG5RPouljokuZT3b/2avf7EB6ylsZ1dM2MsG5OfxU7RAFSWVbMAObUphRMTtsc7CpdMh6c3kqe8gN117Yh5W4627GljFmGZ+C/ynx/flzSkDPW2Aqj2+lV/Y5mj0tljG3/GFhQXspkLpnBJVx85yyq/OGWJPAANgzkd2/utOMXJzxp965vlF3YFrPRHZtYgSZq6vi/p2TT6VrF+1Vt8/yiRhnoLiIHAftc7h0kDzlp6HgYcfTAgVwmEPmIWzTeZxPEQaeWkkhJJk1eJk8vWLGBz75nBrAIqfmDrN2zhqjlsetGkftddKU6WQ2qPe6AZVuwdGPP9kWw4+ZWKnVXiVO6M4UXtR1rKDiZrm4g4J70871cTnMzzd3ESNn3bgz9mdgC7hmoufeKWuB4/c1QGV3nYfP7Msfy/FYB8rM1LC6YNm72lonXv+UTtEqr60qVLJTcbvEv8h20tfOhGZgeQtpBiZnZ6wnuhEUDFnlPMDhaSMCbNilohc0kp61mEW1y1j0u8hLR78Ff5xX3t2i5AHLjegvqOIdtHXK/8oorZRfGLiw3aJM1dkVeynA5kCsGm98cjLhNxh4O5nxEnoOJW4rQRkDRUF3adTNoAEprRRB7tfJ09zA7Qt3mGCCMz+dmioiLKcSRTjvGISw/kPbNcSDtzdLotDy6A+AyYObR4KCjK53ur3t2I+ct7s0b0Pfds4U04RuLV914z4rjJ4ZSc94sTSBrsShvYv62S76frZKwAYQ2orWpidoEExyh1tzPl6SlTpjhJ6v3u7Utcgm0vHf/wePKUc8TJS5E21LWu6gKbRBmalXwcgHp70yISg8QR3oTWWAWk3gtpbp6/cCiLRK8Y9k7jHzgCGh3n8om/ibpueHKr0vZT5lVZFvHItVWRaALVQ4pqxcYfL3opeoxcvlr3D4BVc4HU4eFFeMt0ZsHJvUzcFKPkY4gvW7YMGiC7ZfcicW723dalXUsS3lSyNeZcBUmsmaS/5p0Vlp4BVccADsvOYP6uAM/yKsqq7PkJmv8L4k7mmEu7DcRNIfIqkedu3qjq0pkzZ/DfITE5quZjp2Qxu0Dnha1iX1fdxD55fW/CNjANYN49s7jKI5O788E5kfY0oHZQcEuvT5GY8wbaye+//36MqsfY+JEjR6QlY1cX0CHvNdQmZ/JIZhUtjW3RzkNqsG90Hti2cS8fgGSoqz7Pp6loi/uH6wNnJ7zBNA0ZYvrdY1aMZ6hdGHQ9RuL473KmDBUnUB+zAyE1dP6me2fxpMUYljat3Zb0GfvJodWRRz9Aic/utw+Ts/NG1L/L0qQrCoRggVTXUGRPMULmNo44h0CflZXlcGiuXLPGdoDOo7Pw0EYpC5W/c9Wcfm3EoAGiSAF4h0QiQmtDmyUHKZAzZSSrPam/W5MgzJgUlo+CrgFSU1OT5GTOseKi7UytsT2GiJlqW1X5aB+IrJfCYXNDO7MDYwh1yA4kYvKMGTNkkcxw4ghjdJLfQ9ntJRcgWxqsFUCsqDzg1e0U5FtsEvfGVIQ4J9nv90fNXEhcgmPLyEAh49KJW4WZlzezYSE172BvjDbZhc5JPn78eH/nlpubK7e1tcWQtjtRaDXpnLHaYkRflTdbSEhN65V4a4Plclo/IC/TDyV9ixCnNJWFw2EpPT2dBcKBBtHA3+FndmCmjsueuJnIf8/0/mQq79UlDkdpV+LGOnxQ7aljOmFwBTjxY8eOSXV1day9vV1SlFCHaFB3wroT8sdZ+kE4QuXFDMkSG7+ucZmUxdmdqrbU9WpIINQuiPO5CM5x4pTVYMdTucbgt8ejjeutj3K8Tg0jaU2aMY4nJWYQKm+mLT7d7kUW2GrDwRmFFpD8Xax3xSUmZcUfPhL7L2yvp9XJTv7ijgAv4ltBPK8rHNRCPf00QzKVRzs8p7Y6YRktCqy99foMrWN73bsnWJ/ZmTGbUVlkADRFDUarlIYKZkKYeWUjUYSm+0sWmraFxHdTaTkRhtnI2bHwKBBUA3iwSv6LcxPnjV4dI6J5vV61W+04JM5X7LBG3Mwr9820oPLxZln+zsQpac6kkdG5QDLs+7AyetwRat0FTvqsLEpeJDBaTU2NQocqBXl1f9PnH4uGmN5ZcSpmqu41KSUvffwWy4UJIzCIxlQ2bj/ILxnX1mq6Tx0EJwrVKlVjNFF8NKasbMSIEeqgQYOUWl91W0gNlIvGu0oPJH2h31Ti/VNeqP8dJrm6KQnDYIp5erKwZpR2j9JTfrRldy1x4mZMCYwWk7mxiPjVixcvqt3d3WpKSopS6z/9J/GA3ZsOJZW6mRp640h2Pk1bsWhoBzAToLo8fhES0t4fo+YXoblhWZbDtOcaLa5FbZziGyc/ZMgQpaenJ7yz4b1DqhpuxDV492RSNxuYeF4cWF6yiNmB8OyJ1B3SFlFI1ZSGj2o3grjS2dnJSescYyswa9eu5cQ7OjpwE0YodLGn/jVxHVJPFNfNc21PQiKiSJEIxgGFZ49XfETfthk+HGiO9B08wsOHD8deNd4fJa7rPi6G09LSeINPm97cHFT9R3gHSOqlT25m8WCWXCRzYvMpqUmkFYBxQOHZYedmNXdj36Cp6LvOJdTc3KzS4oKqC5cjSlz3dvhRurq6Qh6PJ0SDETrefvQP4h54y76fYwhg+ffRjfeRCi/kkrx+0Q9oVSRx2SpRbI8S7+iVuAiP+KrCiK0bvozx5Idat68KBoMhCmNBcKFQrYC4KDQC0SqrfhIS56oeCASC5ORCh5o/Pz7aO279CE/Oo7hvG70EBYrCPrX26CzM+uoxh0hnUWYyJd4VmSihWvvJxkheX2uY1e0qPRij4q09TW98/Z8D59B3CmNBUnMFoVpMTgT6LigI44eqB2kwMNxBchJvk8ofFTdtempLTNi4XCCdjWcWqLwgrH3w0g4eCaBVq1/6Kb+GPrz3u+3Re31K95cfnHv1dfSZPDn6HoKq06qvqvVZPey3Po6RKSsr49cwVWWRwXE2+M7tyxs87VZZktNwsZJSWVRhJxTksMsFPgyY85MZbGrhBJqDe5kzxRGd20MjOlq6qNqawSOBWDcHaQhAQCG7Pty66+l29WKz0+n0k8ZCVQITJ04M7dy5U1m3bl0M8XjVFgyIizYP2ckgUpnBdJw6OeOHuYWZC191ys6o8WJtepHNNXMrgDeHE0MuALLG9Bc2bVTvsBo+v6/ls1+ebDv8Ham4j8IxZmPdtMEzhljvPCSKeMT5wmF2dra7sbExlY4H0QZJe4n82L7ksWRT/OJdl1yVtQqELHhvoyMjSZ//V4T0WbfbHSCnxklTxdhPxdMgaXjY6NSMBPtBX0ODikPqbto4eXpwKj0Y5MfMHHbzI6mOtJhADOkXLikY8AGA9JFA7S49FDMZCij+ih31bz3V2FPbqpOGlLH5aION94vfAnELi3qtHddBHJ7Hy3Sp0+YhO3Ivzl65Yrgn+wFjO3j82UumDcgAxCMMNPnPbdhc98a7LpcLThikYdOQNrdtcmhhKrD0U3GBZBVVieKfg5wdJJ+Smprq9fl8kH4qvdATCoVc+ekFo28YvvgVh0H1BWACWGLGBzpjLK7KoGSEGgC2Pl8wckDK/247+MrR1t2YL8N+IVmfThh7YdcKS/Cda1LiqFHRJufk5LioLuch8h6dvJfIpxB5aITzjtE/v32kZ/wDTpMBAJC+YkkKWmD8ktlHCQqKmrUnL7BWIh3vs23YcmPgu798Wv/Xz0CM3h2mdwd0wnwjn9QzatSoEJXKw1pEZeMTYxagq73w9FB7Suw8XlVVvaRi+A/yuO64bfR9t2eljL09xeEtYAOAQNhfcabrm9J/XtyGPIKn1Lp6B3X19tN6gJ/m29ymSUgKUlMzh2aEncUDmdRe1tXeaPce/dilbxgAOT99evbEQdOuHebJvsHrSC2gpec0Ky/RmNrlV3wVneHWrw427/hHc7C+k/IJEFZ1KSOjDFDIEtLmSRb1LUR94/dZeY+tVROoPDaQo1TQTS9PoSlfik4cA0B9c7mpc1z6GAByghISoZkjivI8MuVRjqEjU52DRuossXir+UJdFHcCXfW+b09VtR9tMnReoefxNJqeCbsF6R7KygL03B56N8/OWK/3tkTaNnHWa/M8zrNIru8iOik0GeADQGHFTabh0q85qL/8Kwu0xSBgTwPB6BiLGMZn83SZzmuQMAhTWz5voEeGoNcgTtWUHiqW8OO8vLww+R5lz5494UT2PBDEY9rSQqOTHAmP91TFdNGChJsyPTdlelztqcMu6i+XvNiIkBQRHlcPHGv6sUbHIKzo56J1AZBkvR5cSFhUVBR2CbD69bIpysvLecdoAHqINOytm0ijJt9J3r+TVBLHXfrGkwsiJRIMLF1i76MBEue7qE0XqTPadYiNnFen3j6Ad5HGYSDwTcslkQYGamVULLrLpH7y6dOnuY1TGctFFR0hcYfhvujinQ6eaNBgYc6sEHm+0WAKqatEWJkwYYI6depUjYhbtuWrBW775GGd1FEXFQA8FFsR8+HRMdFBKocgPrTvRkgnh4l70ijPxtwAzpLnCLpDvSztvFqQ9C8PuAPEINDeTdpgjADYjOFQhESn3s6hP+OKr9dfSUhCaiIcYjNIMur52f850f95/BfoYlARf1CQvwAAAABJRU5ErkJggg=="},68320:(e,i,r)=>{r.d(i,{I:()=>o});var t=r(48149),n=r(59363);function o(e,i){return(0,n.t)(e,t.$,i)}},94826:(e,i,r)=>{r.d(i,{A:()=>c});var t=r(60308),n=r(12010),o=r(62217),s=r(65908);const a=(0,t.Ay)("div")((()=>({position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2001,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0.7)",padding:"20px",borderRadius:"10px"}))),l=(0,t.Ay)("div")((()=>({position:"absolute",width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center"}))),c=()=>(0,s.jsxs)(a,{children:[(0,s.jsx)(n.A,{color:"primary",size:80,thickness:6}),(0,s.jsx)(l,{children:(0,s.jsx)("img",{src:o,alt:"Logo",style:{width:"100%",height:"100%"}})})]})}}]); \ No newline at end of file diff --git a/build/static/js/1205.b72f82c1.chunk.js b/build/static/js/1205.b72f82c1.chunk.js new file mode 100644 index 0000000..d43e359 --- /dev/null +++ b/build/static/js/1205.b72f82c1.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[1205],{6749:(e,o,t)=>{t.d(o,{A:()=>r});var n=t(31529),a=t(65908);const r=(0,n.A)((0,a.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDownOutlined")},18871:(e,o,t)=>{t.d(o,{A:()=>s});var n=t(27326),a=t(85672);const r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"}}]},name:"delete",theme:"filled"};var i=t(75890),c=function(e,o){return a.createElement(i.A,(0,n.A)({},e,{ref:o,icon:r}))};const s=a.forwardRef(c)},19103:(e,o,t)=>{t.d(o,{A:()=>s});var n=t(27326),a=t(85672);const r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};var i=t(75890),c=function(e,o){return a.createElement(i.A,(0,n.A)({},e,{ref:o,icon:r}))};const s=a.forwardRef(c)},28579:(e,o,t)=>{t.d(o,{A:()=>I});var n=t(84849),a=t(27326),r=t(85672),i=t(72574),c=t(25234),s=t(10247),l=t(42081),d=t(31529),p=t(65908);const u=(0,d.A)((0,p.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),m=(0,d.A)((0,p.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),h=(0,d.A)((0,p.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var v=t(16775),f=t(38009),A=t(60308),b=t(24270),g=t(37300),w=t(10644);function y(e){return(0,w.Ay)("MuiCheckbox",e)}const x=(0,g.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),S=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],k=(0,A.Ay)(l.A,{shouldForwardProp:e=>(0,b.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.indeterminate&&o.indeterminate,o["size".concat((0,v.A)(t.size))],"default"!==t.color&&o["color".concat((0,v.A)(t.color))]]}})((e=>{let{theme:o,ownerState:t}=e;return(0,a.A)({color:(o.vars||o).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:o.vars?"rgba(".concat("default"===t.color?o.vars.palette.action.activeChannel:o.vars.palette[t.color].mainChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,s.X4)("default"===t.color?o.palette.action.active:o.palette[t.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{["&.".concat(x.checked,", &.").concat(x.indeterminate)]:{color:(o.vars||o).palette[t.color].main},["&.".concat(x.disabled)]:{color:(o.vars||o).palette.action.disabled}})})),C=(0,p.jsx)(m,{}),z=(0,p.jsx)(u,{}),R=(0,p.jsx)(h,{}),I=r.forwardRef((function(e,o){var t,s;const l=(0,f.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:d=C,color:u="primary",icon:m=z,indeterminate:h=!1,indeterminateIcon:A=R,inputProps:b,size:g="medium",className:w}=l,x=(0,n.A)(l,S),I=h?A:m,M=h?A:d,D=(0,a.A)({},l,{color:u,indeterminate:h,size:g}),F=(e=>{const{classes:o,indeterminate:t,color:n,size:r}=e,i={root:["root",t&&"indeterminate","color".concat((0,v.A)(n)),"size".concat((0,v.A)(r))]},s=(0,c.A)(i,y,o);return(0,a.A)({},o,s)})(D);return(0,p.jsx)(k,(0,a.A)({type:"checkbox",inputProps:(0,a.A)({"data-indeterminate":h},b),icon:r.cloneElement(I,{fontSize:null!=(t=I.props.fontSize)?t:g}),checkedIcon:r.cloneElement(M,{fontSize:null!=(s=M.props.fontSize)?s:g}),ownerState:D,ref:o,className:(0,i.A)(F.root,w)},x,{classes:F}))}))},42081:(e,o,t)=>{t.d(o,{A:()=>y});var n=t(84849),a=t(27326),r=t(85672),i=t(72574),c=t(25234),s=t(16775),l=t(60308),d=t(24270),p=t(11235),u=t(75520),m=t(61949),h=t(37300),v=t(10644);function f(e){return(0,v.Ay)("PrivateSwitchBase",e)}(0,h.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var A=t(65908);const b=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],g=(0,l.Ay)(m.A)((e=>{let{ownerState:o}=e;return(0,a.A)({padding:9,borderRadius:"50%"},"start"===o.edge&&{marginLeft:"small"===o.size?-3:-12},"end"===o.edge&&{marginRight:"small"===o.size?-3:-12})})),w=(0,l.Ay)("input",{shouldForwardProp:d.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),y=r.forwardRef((function(e,o){const{autoFocus:t,checked:r,checkedIcon:l,className:d,defaultChecked:m,disabled:h,disableFocusRipple:v=!1,edge:y=!1,icon:x,id:S,inputProps:k,inputRef:C,name:z,onBlur:R,onChange:I,onFocus:M,readOnly:D,required:F=!1,tabIndex:N,type:P,value:E}=e,T=(0,n.A)(e,b),[L,O]=(0,p.A)({controlled:r,default:Boolean(m),name:"SwitchBase",state:"checked"}),B=(0,u.A)();let j=h;B&&"undefined"===typeof j&&(j=B.disabled);const H="checkbox"===P||"radio"===P,V=(0,a.A)({},e,{checked:L,disabled:j,disableFocusRipple:v,edge:y}),_=(e=>{const{classes:o,checked:t,disabled:n,edge:a}=e,r={root:["root",t&&"checked",n&&"disabled",a&&"edge".concat((0,s.A)(a))],input:["input"]};return(0,c.A)(r,f,o)})(V);return(0,A.jsxs)(g,(0,a.A)({component:"span",className:(0,i.A)(_.root,d),centerRipple:!0,focusRipple:!v,disabled:j,tabIndex:null,role:void 0,onFocus:e=>{M&&M(e),B&&B.onFocus&&B.onFocus(e)},onBlur:e=>{R&&R(e),B&&B.onBlur&&B.onBlur(e)},ownerState:V,ref:o},T,{children:[(0,A.jsx)(w,(0,a.A)({autoFocus:t,checked:r,defaultChecked:m,className:_.input,disabled:j,id:H?S:void 0,name:z,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const o=e.target.checked;O(o),I&&I(e,o)},readOnly:D,ref:C,required:F,ownerState:V,tabIndex:N,type:P},"checkbox"===P&&void 0===E?{}:{value:E},k)),L?l:x]}))}))},42836:(e,o,t)=>{t.d(o,{A:()=>S});var n=t(84849),a=t(27326),r=t(85672),i=t(72574),c=t(25234),s=t(10247),l=t(60308),d=t(38009),p=t(78222),u=t(23440),m=t(16775),h=t(37300),v=t(10644);function f(e){return(0,v.Ay)("MuiSpeedDialAction",e)}const A=(0,h.A)("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]);var b=t(65908);const g=["className","delay","FabProps","icon","id","open","TooltipClasses","tooltipOpen","tooltipPlacement","tooltipTitle"],w=(0,l.Ay)(p.A,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.fab,!t.open&&o.fabClosed]}})((e=>{let{theme:o,ownerState:t}=e;return(0,a.A)({margin:8,color:(o.vars||o).palette.text.secondary,backgroundColor:(o.vars||o).palette.background.paper,"&:hover":{backgroundColor:o.vars?o.vars.palette.SpeedDialAction.fabHoverBg:(0,s.tL)(o.palette.background.paper,.15)},transition:"".concat(o.transitions.create("transform",{duration:o.transitions.duration.shorter}),", opacity 0.8s"),opacity:1},!t.open&&{opacity:0,transform:"scale(0)"})})),y=(0,l.Ay)("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.staticTooltip,!t.open&&o.staticTooltipClosed,o["tooltipPlacement".concat((0,m.A)(t.tooltipPlacement))]]}})((e=>{let{theme:o,ownerState:t}=e;return{position:"relative",display:"flex",alignItems:"center",["& .".concat(A.staticTooltipLabel)]:(0,a.A)({transition:o.transitions.create(["transform","opacity"],{duration:o.transitions.duration.shorter}),opacity:1},!t.open&&{opacity:0,transform:"scale(0.5)"},"left"===t.tooltipPlacement&&{transformOrigin:"100% 50%",right:"100%",marginRight:8},"right"===t.tooltipPlacement&&{transformOrigin:"0% 50%",left:"100%",marginLeft:8})}})),x=(0,l.Ay)("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel",overridesResolver:(e,o)=>o.staticTooltipLabel})((e=>{let{theme:o}=e;return(0,a.A)({position:"absolute"},o.typography.body1,{backgroundColor:(o.vars||o).palette.background.paper,borderRadius:(o.vars||o).shape.borderRadius,boxShadow:(o.vars||o).shadows[1],color:(o.vars||o).palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"})})),S=r.forwardRef((function(e,o){const t=(0,d.b)({props:e,name:"MuiSpeedDialAction"}),{className:s,delay:l=0,FabProps:p={},icon:h,id:v,open:A,TooltipClasses:S,tooltipOpen:k=!1,tooltipPlacement:C="left",tooltipTitle:z}=t,R=(0,n.A)(t,g),I=(0,a.A)({},t,{tooltipPlacement:C}),M=(e=>{const{open:o,tooltipPlacement:t,classes:n}=e,a={fab:["fab",!o&&"fabClosed"],staticTooltip:["staticTooltip","tooltipPlacement".concat((0,m.A)(t)),!o&&"staticTooltipClosed"],staticTooltipLabel:["staticTooltipLabel"]};return(0,c.A)(a,f,n)})(I),[D,F]=r.useState(k),N={transitionDelay:"".concat(l,"ms")},P=(0,b.jsx)(w,(0,a.A)({size:"small",className:(0,i.A)(M.fab,s),tabIndex:-1,role:"menuitem",ownerState:I},p,{style:(0,a.A)({},N,p.style),children:h}));return k?(0,b.jsxs)(y,(0,a.A)({id:v,ref:o,className:M.staticTooltip,ownerState:I},R,{children:[(0,b.jsx)(x,{style:N,id:"".concat(v,"-label"),className:M.staticTooltipLabel,ownerState:I,children:z}),r.cloneElement(P,{"aria-labelledby":"".concat(v,"-label")})]})):(!A&&D&&F(!1),(0,b.jsx)(u.A,(0,a.A)({id:v,ref:o,title:z,placement:C,onClose:()=>{F(!1)},onOpen:()=>{F(!0)},open:A&&D,classes:S},R,{children:P})))}))},46781:(e,o,t)=>{t.d(o,{A:()=>w});var n=t(84849),a=t(27326),r=t(85672),i=t(72574),c=t(25234),s=t(60308),l=t(38009),d=t(31529),p=t(65908);const u=(0,d.A)((0,p.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");var m=t(37300),h=t(10644);function v(e){return(0,h.Ay)("MuiSpeedDialIcon",e)}const f=(0,m.A)("MuiSpeedDialIcon",["root","icon","iconOpen","iconWithOpenIconOpen","openIcon","openIconOpen"]),A=["className","icon","open","openIcon"],b=(0,s.Ay)("span",{name:"MuiSpeedDialIcon",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{["& .".concat(f.icon)]:o.icon},{["& .".concat(f.icon)]:t.open&&o.iconOpen},{["& .".concat(f.icon)]:t.open&&t.openIcon&&o.iconWithOpenIconOpen},{["& .".concat(f.openIcon)]:o.openIcon},{["& .".concat(f.openIcon)]:t.open&&o.openIconOpen},o.root]}})((e=>{let{theme:o,ownerState:t}=e;return{height:24,["& .".concat(f.icon)]:(0,a.A)({transition:o.transitions.create(["transform","opacity"],{duration:o.transitions.duration.short})},t.open&&(0,a.A)({transform:"rotate(45deg)"},t.openIcon&&{opacity:0})),["& .".concat(f.openIcon)]:(0,a.A)({position:"absolute",transition:o.transitions.create(["transform","opacity"],{duration:o.transitions.duration.short}),opacity:0,transform:"rotate(-45deg)"},t.open&&{transform:"rotate(0deg)",opacity:1})}})),g=r.forwardRef((function(e,o){const t=(0,l.b)({props:e,name:"MuiSpeedDialIcon"}),{className:s,icon:d,openIcon:m}=t,h=(0,n.A)(t,A),f=t,g=(e=>{const{classes:o,open:t,openIcon:n}=e,a={root:["root"],icon:["icon",t&&"iconOpen",n&&t&&"iconWithOpenIconOpen"],openIcon:["openIcon",t&&"openIconOpen"]};return(0,c.A)(a,v,o)})(f);function w(e,o){return r.isValidElement(e)?r.cloneElement(e,{className:o}):e}return(0,p.jsxs)(b,(0,a.A)({className:(0,i.A)(g.root,s),ref:o,ownerState:f},h,{children:[m?w(m,g.openIcon):null,d?w(d,g.icon):(0,p.jsx)(u,{className:g.icon})]}))}));g.muiName="SpeedDialIcon";const w=g},64551:(e,o,t)=>{t.d(o,{A:()=>s});var n=t(27326),a=t(85672);const r={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M922.9 701.9H327.4l29.9-60.9 496.8-.9c16.8 0 31.2-12 34.2-28.6l68.8-385.1c1.8-10.1-.9-20.5-7.5-28.4a34.99 34.99 0 00-26.6-12.5l-632-2.1-5.4-25.4c-3.4-16.2-18-28-34.6-28H96.5a35.3 35.3 0 100 70.6h125.9L246 312.8l58.1 281.3-74.8 122.1a34.96 34.96 0 00-3 36.8c6 11.9 18.1 19.4 31.5 19.4h62.8a102.43 102.43 0 00-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7h161.1a102.43 102.43 0 00-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7H923c19.4 0 35.3-15.8 35.3-35.3a35.42 35.42 0 00-35.4-35.2zM305.7 253l575.8 1.9-56.4 315.8-452.3.8L305.7 253zm96.9 612.7c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 01-31.6 31.6zm325.1 0c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 01-31.6 31.6z"}}]},name:"shopping-cart",theme:"outlined"};var i=t(75890),c=function(e,o){return a.createElement(i.A,(0,n.A)({},e,{ref:o,icon:r}))};const s=a.forwardRef(c)},78222:(e,o,t)=>{t.d(o,{A:()=>w});var n=t(84849),a=t(27326),r=t(85672),i=t(72574),c=t(25234),s=t(61949),l=t(16775),d=t(38009),p=t(37300),u=t(10644);function m(e){return(0,u.Ay)("MuiFab",e)}const h=(0,p.A)("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]);var v=t(60308),f=t(24270),A=t(65908);const b=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],g=(0,v.Ay)(s.A,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>(0,f.A)(e)||"classes"===e,overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,o[t.variant],o["size".concat((0,l.A)(t.size))],"inherit"===t.color&&o.colorInherit,o[(0,l.A)(t.size)],o[t.color]]}})((e=>{let{theme:o,ownerState:t}=e;var n,r;return(0,a.A)({},o.typography.button,{minHeight:36,transition:o.transitions.create(["background-color","box-shadow","border-color"],{duration:o.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(o.vars||o).zIndex.fab,boxShadow:(o.vars||o).shadows[6],"&:active":{boxShadow:(o.vars||o).shadows[12]},color:o.vars?o.vars.palette.text.primary:null==(n=(r=o.palette).getContrastText)?void 0:n.call(r,o.palette.grey[300]),backgroundColor:(o.vars||o).palette.grey[300],"&:hover":{backgroundColor:(o.vars||o).palette.grey.A100,"@media (hover: none)":{backgroundColor:(o.vars||o).palette.grey[300]},textDecoration:"none"},["&.".concat(h.focusVisible)]:{boxShadow:(o.vars||o).shadows[6]}},"small"===t.size&&{width:40,height:40},"medium"===t.size&&{width:48,height:48},"extended"===t.variant&&{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},"extended"===t.variant&&"small"===t.size&&{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"extended"===t.variant&&"medium"===t.size&&{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40},"inherit"===t.color&&{color:"inherit"})}),(e=>{let{theme:o,ownerState:t}=e;return(0,a.A)({},"inherit"!==t.color&&"default"!==t.color&&null!=(o.vars||o).palette[t.color]&&{color:(o.vars||o).palette[t.color].contrastText,backgroundColor:(o.vars||o).palette[t.color].main,"&:hover":{backgroundColor:(o.vars||o).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(o.vars||o).palette[t.color].main}}})}),(e=>{let{theme:o}=e;return{["&.".concat(h.disabled)]:{color:(o.vars||o).palette.action.disabled,boxShadow:(o.vars||o).shadows[0],backgroundColor:(o.vars||o).palette.action.disabledBackground}}})),w=r.forwardRef((function(e,o){const t=(0,d.b)({props:e,name:"MuiFab"}),{children:r,className:s,color:p="default",component:u="button",disabled:h=!1,disableFocusRipple:v=!1,focusVisibleClassName:f,size:w="large",variant:y="circular"}=t,x=(0,n.A)(t,b),S=(0,a.A)({},t,{color:p,component:u,disabled:h,disableFocusRipple:v,size:w,variant:y}),k=(e=>{const{color:o,variant:t,classes:n,size:r}=e,i={root:["root",t,"size".concat((0,l.A)(r)),"inherit"===o?"colorInherit":o]},s=(0,c.A)(i,m,n);return(0,a.A)({},n,s)})(S);return(0,A.jsx)(g,(0,a.A)({className:(0,i.A)(k.root,s),component:u,disabled:h,focusRipple:!v,focusVisibleClassName:(0,i.A)(k.focusVisible,f),ownerState:S,ref:o},x,{classes:k,children:r}))}))},78752:(e,o,t)=>{t.d(o,{A:()=>r});var n=t(31529),a=t(65908);const r=(0,n.A)((0,a.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUpOutlined")},95661:(e,o,t)=>{t.d(o,{A:()=>F});var n=t(84849),a=t(27326),r=t(85672),i=t(72574),c=t(25234),s=t(2978);const l=function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(o,Math.min(e,t))};var d=t(60308),p=t(38009),u=t(69039),m=t(34611),h=t(78222),v=t(16775),f=t(92694),A=t(45688),b=t(11235),g=t(37300),w=t(10644);function y(e){return(0,w.Ay)("MuiSpeedDial",e)}const x=(0,g.A)("MuiSpeedDial",["root","fab","directionUp","directionDown","directionLeft","directionRight","actions","actionsClosed"]);var S=t(65908);const k=["ref"],C=["ariaLabel","FabProps","children","className","direction","hidden","icon","onBlur","onClose","onFocus","onKeyDown","onMouseEnter","onMouseLeave","onOpen","open","openIcon","TransitionComponent","transitionDuration","TransitionProps"],z=["ref"];function R(e){return"up"===e||"down"===e?"vertical":"right"===e||"left"===e?"horizontal":void 0}const I=(0,d.Ay)("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,o["direction".concat((0,v.A)(t.direction))]]}})((e=>{let{theme:o,ownerState:t}=e;return(0,a.A)({zIndex:(o.vars||o).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none"},"up"===t.direction&&{flexDirection:"column-reverse",["& .".concat(x.actions)]:{flexDirection:"column-reverse",marginBottom:-32,paddingBottom:48}},"down"===t.direction&&{flexDirection:"column",["& .".concat(x.actions)]:{flexDirection:"column",marginTop:-32,paddingTop:48}},"left"===t.direction&&{flexDirection:"row-reverse",["& .".concat(x.actions)]:{flexDirection:"row-reverse",marginRight:-32,paddingRight:48}},"right"===t.direction&&{flexDirection:"row",["& .".concat(x.actions)]:{flexDirection:"row",marginLeft:-32,paddingLeft:48}})})),M=(0,d.Ay)(h.A,{name:"MuiSpeedDial",slot:"Fab",overridesResolver:(e,o)=>o.fab})((()=>({pointerEvents:"auto"}))),D=(0,d.Ay)("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.actions,!t.open&&o.actionsClosed]}})((e=>{let{ownerState:o}=e;return(0,a.A)({display:"flex",pointerEvents:"auto"},!o.open&&{transition:"top 0s linear 0.2s",pointerEvents:"none"})})),F=r.forwardRef((function(e,o){const t=(0,p.b)({props:e,name:"MuiSpeedDial"}),d=(0,u.A)(),h={enter:d.transitions.duration.enteringScreen,exit:d.transitions.duration.leavingScreen},{ariaLabel:g,FabProps:{ref:w}={},children:x,className:F,direction:N="up",hidden:P=!1,icon:E,onBlur:T,onClose:L,onFocus:O,onKeyDown:B,onMouseEnter:j,onMouseLeave:H,onOpen:V,open:_,TransitionComponent:W=m.A,transitionDuration:K=h,TransitionProps:q}=t,G=(0,n.A)(t.FabProps,k),U=(0,n.A)(t,C),[X,J]=(0,b.A)({controlled:_,default:!1,name:"SpeedDial",state:"open"}),Q=(0,a.A)({},t,{open:X,direction:N}),Y=(e=>{const{classes:o,open:t,direction:n}=e,a={root:["root","direction".concat((0,v.A)(n))],fab:["fab"],actions:["actions",!t&&"actionsClosed"]};return(0,c.A)(a,y,o)})(Q),Z=(0,s.A)(),$=r.useRef(0),ee=r.useRef(),oe=r.useRef([]);oe.current=[oe.current[0]];const te=r.useCallback((e=>{oe.current[0]=e}),[]),ne=(0,A.A)(w,te),ae=(e,o)=>t=>{oe.current[e+1]=t,o&&o(t)};r.useEffect((()=>{X||($.current=0,ee.current=void 0)}),[X]);const re=e=>{"mouseleave"===e.type&&H&&H(e),"blur"===e.type&&T&&T(e),Z.clear(),"blur"===e.type?Z.start(0,(()=>{J(!1),L&&L(e,"blur")})):(J(!1),L&&L(e,"mouseLeave"))},ie=e=>{"mouseenter"===e.type&&j&&j(e),"focus"===e.type&&O&&O(e),Z.clear(),X||Z.start(0,(()=>{if(J(!0),V){V(e,{focus:"focus",mouseenter:"mouseEnter"}[e.type])}}))},ce=g.replace(/^[^a-z]+|[^\w:.-]+/gi,""),se=r.Children.toArray(x).filter((e=>r.isValidElement(e))),le=se.map(((e,o)=>{const t=e.props,{FabProps:{ref:i}={},tooltipPlacement:c}=t,s=(0,n.A)(t.FabProps,z),l=c||("vertical"===R(N)?"left":"top");return r.cloneElement(e,{FabProps:(0,a.A)({},s,{ref:ae(o,i)}),delay:30*(X?o:se.length-o),open:X,tooltipPlacement:l,id:"".concat(ce,"-action-").concat(o)})}));return(0,S.jsxs)(I,(0,a.A)({className:(0,i.A)(Y.root,F),ref:o,role:"presentation",onKeyDown:e=>{B&&B(e);const o=e.key.replace("Arrow","").toLowerCase(),{current:t=o}=ee;if("Escape"===e.key)return J(!1),oe.current[0].focus(),void(L&&L(e,"escapeKeyDown"));if(R(o)===R(t)&&void 0!==R(o)){e.preventDefault();const n=o===t?1:-1,a=l($.current+n,0,oe.current.length-1);oe.current[a].focus(),$.current=a,ee.current=t}},onBlur:re,onFocus:ie,onMouseEnter:ie,onMouseLeave:re,ownerState:Q},U,{children:[(0,S.jsx)(W,(0,a.A)({in:!P,timeout:K,unmountOnExit:!0},q,{children:(0,S.jsx)(M,(0,a.A)({color:"primary","aria-label":g,"aria-haspopup":"true","aria-expanded":X,"aria-controls":"".concat(ce,"-actions")},G,{onClick:e=>{G.onClick&&G.onClick(e),Z.clear(),X?(J(!1),L&&L(e,"toggle")):(J(!0),V&&V(e,"toggle"))},className:(0,i.A)(Y.fab,G.className),ref:ne,ownerState:Q,children:r.isValidElement(E)&&(0,f.A)(E,["SpeedDialIcon"])?r.cloneElement(E,{open:X}):E}))})),(0,S.jsx)(D,{id:"".concat(ce,"-actions"),role:"menu","aria-orientation":R(N),className:(0,i.A)(Y.actions,!X&&Y.actionsClosed),ownerState:Q,children:le})]}))}))}}]); \ No newline at end of file diff --git a/build/static/js/1422.5e8c518a.chunk.js b/build/static/js/1422.5e8c518a.chunk.js new file mode 100644 index 0000000..b0891cb --- /dev/null +++ b/build/static/js/1422.5e8c518a.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[1422],{7803:(e,t,o)=>{o.d(t,{A:()=>A});var n=o(84849),r=o(27326),a=o(85672),i=o(25234),l=o(50148),s=o(51476),u=o(60308),c=o(24270),p=o(38009),d=o(74031),m=o(65908);const f=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],v=(0,u.Ay)(s.Sh,{shouldForwardProp:e=>(0,c.A)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...(0,s.WC)(e,t),!o.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:o}=e;let n="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n="rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")")),(0,r.A)({position:"relative"},o.formControl&&{"label + &":{marginTop:16}},!o.disableUnderline&&{"&::after":{borderBottom:"2px solid ".concat((t.vars||t).palette[o.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(d.A.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(d.A.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(d.A.disabled,", .").concat(d.A.error,"):before")]:{borderBottom:"2px solid ".concat((t.vars||t).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(n)}},["&.".concat(d.A.disabled,":before")]:{borderBottomStyle:"dotted"}})})),h=(0,u.Ay)(s.f3,{name:"MuiInput",slot:"Input",overridesResolver:s.Oj})({}),b=a.forwardRef((function(e,t){var o,a,u,c;const b=(0,p.b)({props:e,name:"MuiInput"}),{disableUnderline:A,components:g={},componentsProps:y,fullWidth:P=!1,inputComponent:w="input",multiline:S=!1,slotProps:x,slots:C={},type:R="text"}=b,I=(0,n.A)(b,f),M=(e=>{const{classes:t,disableUnderline:o}=e,n={root:["root",!o&&"underline"],input:["input"]},a=(0,i.A)(n,d.B,t);return(0,r.A)({},t,a)})(b),k={root:{ownerState:{disableUnderline:A}}},E=(null!=x?x:y)?(0,l.A)(null!=x?x:y,k):k,F=null!=(o=null!=(a=C.root)?a:g.Root)?o:v,O=null!=(u=null!=(c=C.input)?c:g.Input)?u:h;return(0,m.jsx)(s.Ay,(0,r.A)({slots:{root:F,input:O},slotProps:E,fullWidth:P,inputComponent:w,multiline:S,ref:t,type:R},I,{classes:M}))}));b.muiName="Input";const A=b},25406:(e,t,o)=>{o.d(t,{A:()=>a});o(85672);var n=o(31529),r=o(65908);const a=(0,n.A)((0,r.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},30154:(e,t,o)=>{o.d(t,{A:()=>Z});var n=o(27326),r=o(84849),a=o(85672),i=o(72574),l=o(25234),s=o(29048),u=o(83484),c=o(22892),p=o(31975);const d=o(22868).A;var m=o(45688),f=o(93046),v=o(65908);const h=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function b(e,t,o){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:o?null:e.firstChild}function A(e,t,o){return e===t?o?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:o?null:e.lastChild}function g(e,t){if(void 0===t)return!0;let o=e.innerText;return void 0===o&&(o=e.textContent),o=o.trim().toLowerCase(),0!==o.length&&(t.repeating?o[0]===t.keys[0]:0===o.indexOf(t.keys.join("")))}function y(e,t,o,n,r,a){let i=!1,l=r(e,t,!!t&&o);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&g(l,a)&&!t)return l.focus(),!0;l=r(e,l,o)}return!1}const P=a.forwardRef((function(e,t){const{actions:o,autoFocus:i=!1,autoFocusItem:l=!1,children:s,className:u,disabledItemsFocusable:P=!1,disableListWrap:w=!1,onKeyDown:S,variant:x="selectedMenu"}=e,C=(0,r.A)(e,h),R=a.useRef(null),I=a.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,f.A)((()=>{i&&R.current.focus()}),[i]),a.useImperativeHandle(o,(()=>({adjustStyleForScrollbar:(e,t)=>{let{direction:o}=t;const n=!R.current.style.width;if(e.clientHeight{a.isValidElement(e)?(e.props.disabled||("selectedMenu"===x&&e.props.selected||-1===k)&&(k=t),k===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(k+=1,k>=s.length&&(k=-1))):k===t&&(k+=1,k>=s.length&&(k=-1))}));const E=a.Children.map(s,((e,t)=>{if(t===k){const t={};return l&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===x&&(t.tabIndex=0),a.cloneElement(e,t)}return e}));return(0,v.jsx)(p.A,(0,n.A)({role:"menu",ref:M,className:u,onKeyDown:e=>{const t=R.current,o=e.key,n=(0,c.A)(t).activeElement;if("ArrowDown"===o)e.preventDefault(),y(t,n,w,P,b);else if("ArrowUp"===o)e.preventDefault(),y(t,n,w,P,A);else if("Home"===o)e.preventDefault(),y(t,null,w,P,b);else if("End"===o)e.preventDefault(),y(t,null,w,P,A);else if(1===o.length){const r=I.current,a=o.toLowerCase(),i=performance.now();r.keys.length>0&&(i-r.lastTime>500?(r.keys=[],r.repeating=!0,r.previousKeyMatched=!0):r.repeating&&a!==r.keys[0]&&(r.repeating=!1)),r.lastTime=i,r.keys.push(a);const l=n&&!r.repeating&&g(n,r);r.previousKeyMatched&&(l||y(t,n,!1,P,b,r))?e.preventDefault():r.previousKeyMatched=!1}S&&S(e)},tabIndex:i?0:-1},C,{children:E}))}));var w=o(28292),S=o(60308),x=o(38009),C=o(56691),R=o(24249),I=o(38815),M=o(52243),k=o(55235),E=o(37300),F=o(10644);function O(e){return(0,F.Ay)("MuiPopover",e)}(0,E.A)("MuiPopover",["root","paper"]);const T=["onEntering"],N=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],L=["slotProps"];function B(e,t){let o=0;return"number"===typeof t?o=t:"center"===t?o=e.height/2:"bottom"===t&&(o=e.height),o}function j(e,t){let o=0;return"number"===typeof t?o=t:"center"===t?o=e.width/2:"right"===t&&(o=e.width),o}function D(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?"".concat(e,"px"):e)).join(" ")}function W(e){return"function"===typeof e?e():e}const z=(0,S.Ay)(M.A,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),U=(0,S.Ay)(k.A,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),H=a.forwardRef((function(e,t){var o,s,p;const d=(0,x.b)({props:e,name:"MuiPopover"}),{action:f,anchorEl:h,anchorOrigin:b={vertical:"top",horizontal:"left"},anchorPosition:A,anchorReference:g="anchorEl",children:y,className:P,container:S,elevation:M=8,marginThreshold:k=16,open:E,PaperProps:F={},slots:H,slotProps:K,transformOrigin:V={vertical:"top",horizontal:"left"},TransitionComponent:X=I.A,transitionDuration:_="auto",TransitionProps:{onEntering:q}={},disableScrollLock:Y=!1}=d,G=(0,r.A)(d.TransitionProps,T),J=(0,r.A)(d,N),Q=null!=(o=null==K?void 0:K.paper)?o:F,Z=a.useRef(),$=(0,m.A)(Z,Q.ref),ee=(0,n.A)({},d,{anchorOrigin:b,anchorReference:g,elevation:M,marginThreshold:k,externalPaperSlotProps:Q,transformOrigin:V,TransitionComponent:X,transitionDuration:_,TransitionProps:G}),te=(e=>{const{classes:t}=e;return(0,l.A)({root:["root"],paper:["paper"]},O,t)})(ee),oe=a.useCallback((()=>{if("anchorPosition"===g)return A;const e=W(h),t=(e&&1===e.nodeType?e:(0,c.A)(Z.current).body).getBoundingClientRect();return{top:t.top+B(t,b.vertical),left:t.left+j(t,b.horizontal)}}),[h,b.horizontal,b.vertical,A,g]),ne=a.useCallback((e=>({vertical:B(e,V.vertical),horizontal:j(e,V.horizontal)})),[V.horizontal,V.vertical]),re=a.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},o=ne(t);if("none"===g)return{top:null,left:null,transformOrigin:D(o)};const n=oe();let r=n.top-o.vertical,a=n.left-o.horizontal;const i=r+t.height,l=a+t.width,s=(0,R.A)(W(h)),u=s.innerHeight-k,c=s.innerWidth-k;if(null!==k&&ru){const e=i-u;r-=e,o.vertical+=e}if(null!==k&&ac){const e=l-c;a-=e,o.horizontal+=e}return{top:"".concat(Math.round(r),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:D(o)}}),[h,g,oe,ne,k]),[ae,ie]=a.useState(E),le=a.useCallback((()=>{const e=Z.current;if(!e)return;const t=re(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,ie(!0)}),[re]);a.useEffect((()=>(Y&&window.addEventListener("scroll",le),()=>window.removeEventListener("scroll",le))),[h,Y,le]);a.useEffect((()=>{E&&le()})),a.useImperativeHandle(f,(()=>E?{updatePosition:()=>{le()}}:null),[E,le]),a.useEffect((()=>{if(!E)return;const e=(0,C.A)((()=>{le()})),t=(0,R.A)(h);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[h,E,le]);let se=_;"auto"!==_||X.muiSupportAuto||(se=void 0);const ue=S||(h?(0,c.A)(W(h)).body:void 0),ce=null!=(s=null==H?void 0:H.root)?s:z,pe=null!=(p=null==H?void 0:H.paper)?p:U,de=(0,u.A)({elementType:pe,externalSlotProps:(0,n.A)({},Q,{style:ae?Q.style:(0,n.A)({},Q.style,{opacity:0})}),additionalProps:{elevation:M,ref:$},ownerState:ee,className:(0,i.A)(te.paper,null==Q?void 0:Q.className)}),me=(0,u.A)({elementType:ce,externalSlotProps:(null==K?void 0:K.root)||{},externalForwardedProps:J,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:ue,open:E},ownerState:ee,className:(0,i.A)(te.root,P)}),{slotProps:fe}=me,ve=(0,r.A)(me,L);return(0,v.jsx)(ce,(0,n.A)({},ve,!(0,w.A)(ce)&&{slotProps:fe,disableScrollLock:Y},{children:(0,v.jsx)(X,(0,n.A)({appear:!0,in:E,onEntering:(e,t)=>{q&&q(e,t),le()},onExited:()=>{ie(!1)},timeout:se},G,{children:(0,v.jsx)(pe,(0,n.A)({},de,{children:y}))}))}))}));var K=o(24270);function V(e){return(0,F.Ay)("MuiMenu",e)}(0,E.A)("MuiMenu",["root","paper","list"]);const X=["onEntering"],_=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],q={vertical:"top",horizontal:"right"},Y={vertical:"top",horizontal:"left"},G=(0,S.Ay)(H,{shouldForwardProp:e=>(0,K.A)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),J=(0,S.Ay)(U,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Q=(0,S.Ay)(P,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Z=a.forwardRef((function(e,t){var o,c;const p=(0,x.b)({props:e,name:"MuiMenu"}),{autoFocus:d=!0,children:m,className:f,disableAutoFocusItem:h=!1,MenuListProps:b={},onClose:A,open:g,PaperProps:y={},PopoverClasses:P,transitionDuration:w="auto",TransitionProps:{onEntering:S}={},variant:C="selectedMenu",slots:R={},slotProps:I={}}=p,M=(0,r.A)(p.TransitionProps,X),k=(0,r.A)(p,_),E=(0,s.I)(),F=(0,n.A)({},p,{autoFocus:d,disableAutoFocusItem:h,MenuListProps:b,onEntering:S,PaperProps:y,transitionDuration:w,TransitionProps:M,variant:C}),O=(e=>{const{classes:t}=e;return(0,l.A)({root:["root"],paper:["paper"],list:["list"]},V,t)})(F),T=d&&!h&&g,N=a.useRef(null);let L=-1;a.Children.map(m,((e,t)=>{a.isValidElement(e)&&(e.props.disabled||("selectedMenu"===C&&e.props.selected||-1===L)&&(L=t))}));const B=null!=(o=R.paper)?o:J,j=null!=(c=I.paper)?c:y,D=(0,u.A)({elementType:R.root,externalSlotProps:I.root,ownerState:F,className:[O.root,f]}),W=(0,u.A)({elementType:B,externalSlotProps:j,ownerState:F,className:O.paper});return(0,v.jsx)(G,(0,n.A)({onClose:A,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?q:Y,slots:{paper:B,root:R.root},slotProps:{root:D,paper:W},open:g,ref:t,transitionDuration:w,TransitionProps:(0,n.A)({onEntering:(e,t)=>{N.current&&N.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),S&&S(e,t)}},M),ownerState:F},k,{classes:P,children:(0,v.jsx)(Q,(0,n.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),A&&A(e,"tabKeyDown"))},actions:N,autoFocus:d&&(-1===L||h),autoFocusItem:T,variant:C},b,{className:(0,i.A)(O.list,b.className),children:m}))}))}))},48283:(e,t,o)=>{o.d(t,{A:()=>s,N:()=>l});var n=o(27326),r=o(37300),a=o(10644),i=o(28915);function l(e){return(0,a.Ay)("MuiFilledInput",e)}const s=(0,n.A)({},i.A,(0,r.A)("MuiFilledInput",["root","underline","input"]))},51422:(e,t,o)=>{o.d(t,{A:()=>oe});var n=o(27326),r=o(84849),a=o(85672),i=o(72574),l=o(50148),s=o(95390),u=o(21484),c=o(25234),p=o(16660),d=o(22892),m=o(16775),f=o(30154),v=o(37300),h=o(10644);function b(e){return(0,h.Ay)("MuiNativeSelect",e)}const A=(0,v.A)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var g=o(60308),y=o(24270),P=o(65908);const w=["className","disabled","error","IconComponent","inputRef","variant"],S=e=>{let{ownerState:t,theme:o}=e;return(0,n.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,n.A)({},o.vars?{backgroundColor:"rgba(".concat(o.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===o.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},["&.".concat(A.disabled)]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(o.vars||o).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(o.vars||o).shape.borderRadius,"&:focus":{borderRadius:(o.vars||o).shape.borderRadius},"&&&":{paddingRight:32}})},x=(0,g.Ay)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:y.A,overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.select,t[o.variant],o.error&&t.error,{["&.".concat(A.multiple)]:t.multiple}]}})(S),C=e=>{let{ownerState:t,theme:o}=e;return(0,n.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(o.vars||o).palette.action.active,["&.".concat(A.disabled)]:{color:(o.vars||o).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},R=(0,g.Ay)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t["icon".concat((0,m.A)(o.variant))],o.open&&t.iconOpen]}})(C),I=a.forwardRef((function(e,t){const{className:o,disabled:l,error:s,IconComponent:u,inputRef:p,variant:d="standard"}=e,f=(0,r.A)(e,w),v=(0,n.A)({},e,{disabled:l,variant:d,error:s}),h=(e=>{const{classes:t,variant:o,disabled:n,multiple:r,open:a,error:i}=e,l={select:["select",o,n&&"disabled",r&&"multiple",i&&"error"],icon:["icon","icon".concat((0,m.A)(o)),a&&"iconOpen",n&&"disabled"]};return(0,c.A)(l,b,t)})(v);return(0,P.jsxs)(a.Fragment,{children:[(0,P.jsx)(x,(0,n.A)({ownerState:v,className:(0,i.A)(h.select,o),disabled:l,ref:p||t},f)),e.multiple?null:(0,P.jsx)(R,{as:u,ownerState:v,className:h.icon})]})}));var M=o(75287),k=o(95946),E=o(45688),F=o(11235);function O(e){return(0,h.Ay)("MuiSelect",e)}const T=(0,v.A)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var N;const L=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],B=(0,g.Ay)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{["&.".concat(T.select)]:t.select},{["&.".concat(T.select)]:t[o.variant]},{["&.".concat(T.error)]:t.error},{["&.".concat(T.multiple)]:t.multiple}]}})(S,{["&.".concat(T.select)]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),j=(0,g.Ay)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t["icon".concat((0,m.A)(o.variant))],o.open&&t.iconOpen]}})(C),D=(0,g.Ay)("input",{shouldForwardProp:e=>(0,k.A)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function W(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function z(e){return null==e||"string"===typeof e&&!e.trim()}const U=a.forwardRef((function(e,t){var o;const{"aria-describedby":l,"aria-label":s,autoFocus:v,autoWidth:h,children:b,className:A,defaultOpen:g,defaultValue:y,disabled:w,displayEmpty:S,error:x=!1,IconComponent:C,inputRef:R,labelId:I,MenuProps:k={},multiple:T,name:U,onBlur:H,onChange:K,onClose:V,onFocus:X,onOpen:_,open:q,readOnly:Y,renderValue:G,SelectDisplayProps:J={},tabIndex:Q,value:Z,variant:$="standard"}=e,ee=(0,r.A)(e,L),[te,oe]=(0,F.A)({controlled:Z,default:y,name:"Select"}),[ne,re]=(0,F.A)({controlled:q,default:g,name:"Select"}),ae=a.useRef(null),ie=a.useRef(null),[le,se]=a.useState(null),{current:ue}=a.useRef(null!=q),[ce,pe]=a.useState(),de=(0,E.A)(t,R),me=a.useCallback((e=>{ie.current=e,e&&se(e)}),[]),fe=null==le?void 0:le.parentNode;a.useImperativeHandle(de,(()=>({focus:()=>{ie.current.focus()},node:ae.current,value:te})),[te]),a.useEffect((()=>{g&&ne&&le&&!ue&&(pe(h?null:fe.clientWidth),ie.current.focus())}),[le,h]),a.useEffect((()=>{v&&ie.current.focus()}),[v]),a.useEffect((()=>{if(!I)return;const e=(0,d.A)(ie.current).getElementById(I);if(e){const t=()=>{getSelection().isCollapsed&&ie.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[I]);const ve=(e,t)=>{e?_&&_(t):V&&V(t),ue||(pe(h?null:fe.clientWidth),re(e))},he=a.Children.toArray(b),be=e=>t=>{let o;if(t.currentTarget.hasAttribute("tabindex")){if(T){o=Array.isArray(te)?te.slice():[];const t=te.indexOf(e.props.value);-1===t?o.push(e.props.value):o.splice(t,1)}else o=e.props.value;if(e.props.onClick&&e.props.onClick(t),te!==o&&(oe(o),K)){const n=t.nativeEvent||t,r=new n.constructor(n.type,n);Object.defineProperty(r,"target",{writable:!0,value:{value:o,name:U}}),K(r,e)}T||ve(!1,t)}},Ae=null!==le&≠let ge,ye;delete ee["aria-invalid"];const Pe=[];let we=!1,Se=!1;((0,M.lq)({value:te})||S)&&(G?ge=G(te):we=!0);const xe=he.map((e=>{if(!a.isValidElement(e))return null;let t;if(T){if(!Array.isArray(te))throw new Error((0,u.A)(2));t=te.some((t=>W(t,e.props.value))),t&&we&&Pe.push(e.props.children)}else t=W(te,e.props.value),t&&we&&(ye=e.props.children);return t&&(Se=!0),a.cloneElement(e,{"aria-selected":t?"true":"false",onClick:be(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));we&&(ge=T?0===Pe.length?null:Pe.reduce(((e,t,o)=>(e.push(t),o{const{classes:t,variant:o,disabled:n,multiple:r,open:a,error:i}=e,l={select:["select",o,n&&"disabled",r&&"multiple",i&&"error"],icon:["icon","icon".concat((0,m.A)(o)),a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,c.A)(l,O,t)})(Me),Ee=(0,n.A)({},k.PaperProps,null==(o=k.slotProps)?void 0:o.paper),Fe=(0,p.A)();return(0,P.jsxs)(a.Fragment,{children:[(0,P.jsx)(B,(0,n.A)({ref:me,tabIndex:Ce,role:"combobox","aria-controls":Fe,"aria-disabled":w?"true":void 0,"aria-expanded":Ae?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[I,Ie].filter(Boolean).join(" ")||void 0,"aria-describedby":l,onKeyDown:e=>{if(!Y){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ve(!0,e))}},onMouseDown:w||Y?null:e=>{0===e.button&&(e.preventDefault(),ie.current.focus(),ve(!0,e))},onBlur:e=>{!Ae&&H&&(Object.defineProperty(e,"target",{writable:!0,value:{value:te,name:U}}),H(e))},onFocus:X},J,{ownerState:Me,className:(0,i.A)(J.className,ke.select,A),id:Ie,children:z(ge)?N||(N=(0,P.jsx)("span",{className:"notranslate",children:"\u200b"})):ge})),(0,P.jsx)(D,(0,n.A)({"aria-invalid":x,value:Array.isArray(te)?te.join(","):te,name:U,ref:ae,"aria-hidden":!0,onChange:e=>{const t=he.find((t=>t.props.value===e.target.value));void 0!==t&&(oe(t.props.value),K&&K(e,t))},tabIndex:-1,disabled:w,className:ke.nativeInput,autoFocus:v,ownerState:Me},ee)),(0,P.jsx)(j,{as:C,className:ke.icon,ownerState:Me}),(0,P.jsx)(f.A,(0,n.A)({id:"menu-".concat(U||""),anchorEl:fe,open:Ae,onClose:e=>{ve(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},k,{MenuListProps:(0,n.A)({"aria-labelledby":I,role:"listbox","aria-multiselectable":T?"true":void 0,disableListWrap:!0,id:Fe},k.MenuListProps),slotProps:(0,n.A)({},k.slotProps,{paper:(0,n.A)({},Ee,{style:(0,n.A)({minWidth:Re},null!=Ee?Ee.style:null)})}),children:xe}))]})}));var H=o(38666),K=o(75520),V=o(25406),X=o(7803),_=o(56847),q=o(29776),Y=o(38009);const G=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],J=["root"],Q={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,y.A)(e)&&"variant"!==e,slot:"Root"},Z=(0,g.Ay)(X.A,Q)(""),$=(0,g.Ay)(q.A,Q)(""),ee=(0,g.Ay)(_.A,Q)(""),te=a.forwardRef((function(e,t){const o=(0,Y.b)({name:"MuiSelect",props:e}),{autoWidth:u=!1,children:c,classes:p={},className:d,defaultOpen:m=!1,displayEmpty:f=!1,IconComponent:v=V.A,id:h,input:b,inputProps:A,label:g,labelId:y,MenuProps:w,multiple:S=!1,native:x=!1,onClose:C,onOpen:R,open:M,renderValue:k,SelectDisplayProps:F,variant:O="outlined"}=o,T=(0,r.A)(o,G),N=x?I:U,L=(0,K.A)(),B=(0,H.A)({props:o,muiFormControl:L,states:["variant","error"]}),j=B.variant||O,D=(0,n.A)({},o,{variant:j,classes:p}),W=(e=>{const{classes:t}=e;return t})(D),z=(0,r.A)(W,J),X=b||{standard:(0,P.jsx)(Z,{ownerState:D}),outlined:(0,P.jsx)($,{label:g,ownerState:D}),filled:(0,P.jsx)(ee,{ownerState:D})}[j],_=(0,E.A)(t,(0,s.A)(X));return(0,P.jsx)(a.Fragment,{children:a.cloneElement(X,(0,n.A)({inputComponent:N,inputProps:(0,n.A)({children:c,error:B.error,IconComponent:v,variant:j,type:void 0,multiple:S},x?{id:h}:{autoWidth:u,defaultOpen:m,displayEmpty:f,labelId:y,MenuProps:w,onClose:C,onOpen:R,open:M,renderValue:k,SelectDisplayProps:(0,n.A)({id:h},F)},A,{classes:A?(0,l.A)(z,A.classes):z},b?b.props.inputProps:{})},(S&&x||f)&&"outlined"===j?{notched:!0}:{},{ref:_,className:(0,i.A)(X.props.className,d,W.root)},!b&&{variant:j},T))})}));te.muiName="Select";const oe=te},56847:(e,t,o)=>{o.d(t,{A:()=>A});var n=o(84849),r=o(27326),a=o(85672),i=o(50148),l=o(25234),s=o(51476),u=o(60308),c=o(24270),p=o(38009),d=o(48283),m=o(65908);const f=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],v=(0,u.Ay)(s.Sh,{shouldForwardProp:e=>(0,c.A)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...(0,s.WC)(e,t),!o.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:o}=e;var n;const a="light"===t.palette.mode,i=a?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",l=a?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=a?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",u=a?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,r.A)({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:l,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:l}},["&.".concat(d.A.focused)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:l},["&.".concat(d.A.disabled)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:u}},!o.disableUnderline&&{"&::after":{borderBottom:"2px solid ".concat(null==(n=(t.vars||t).palette[o.color||"primary"])?void 0:n.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(d.A.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(d.A.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")"):i),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(d.A.disabled,", .").concat(d.A.error,"):before")]:{borderBottom:"1px solid ".concat((t.vars||t).palette.text.primary)},["&.".concat(d.A.disabled,":before")]:{borderBottomStyle:"dotted"}},o.startAdornment&&{paddingLeft:12},o.endAdornment&&{paddingRight:12},o.multiline&&(0,r.A)({padding:"25px 12px 8px"},"small"===o.size&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.hiddenLabel&&"small"===o.size&&{paddingTop:8,paddingBottom:9}))})),h=(0,u.Ay)(s.f3,{name:"MuiFilledInput",slot:"Input",overridesResolver:s.Oj})((e=>{let{theme:t,ownerState:o}=e;return(0,r.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===o.size&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0},o.hiddenLabel&&"small"===o.size&&{paddingTop:8,paddingBottom:9},o.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})})),b=a.forwardRef((function(e,t){var o,a,u,c;const b=(0,p.b)({props:e,name:"MuiFilledInput"}),{components:A={},componentsProps:g,fullWidth:y=!1,inputComponent:P="input",multiline:w=!1,slotProps:S,slots:x={},type:C="text"}=b,R=(0,n.A)(b,f),I=(0,r.A)({},b,{fullWidth:y,inputComponent:P,multiline:w,type:C}),M=(e=>{const{classes:t,disableUnderline:o}=e,n={root:["root",!o&&"underline"],input:["input"]},a=(0,l.A)(n,d.N,t);return(0,r.A)({},t,a)})(b),k={root:{ownerState:I},input:{ownerState:I}},E=(null!=S?S:g)?(0,i.A)(k,null!=S?S:g):k,F=null!=(o=null!=(a=x.root)?a:A.Root)?o:v,O=null!=(u=null!=(c=x.input)?c:A.Input)?u:h;return(0,m.jsx)(s.Ay,(0,r.A)({slots:{root:F,input:O},componentsProps:E,fullWidth:y,inputComponent:P,multiline:w,ref:t,type:C},R,{classes:M}))}));b.muiName="Input";const A=b},74031:(e,t,o)=>{o.d(t,{A:()=>s,B:()=>l});var n=o(27326),r=o(37300),a=o(10644),i=o(28915);function l(e){return(0,a.Ay)("MuiInput",e)}const s=(0,n.A)({},i.A,(0,r.A)("MuiInput",["root","underline","input"]))}}]); \ No newline at end of file diff --git a/build/static/js/1425.191dbcce.chunk.js b/build/static/js/1425.191dbcce.chunk.js deleted file mode 100644 index d6944af..0000000 --- a/build/static/js/1425.191dbcce.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[1425],{20466:(t,e,a)=>{a.d(e,{k:()=>r});var n=a(8881);const r=(t,e,a)=>(0,n.M8)(t,{variant:e,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:a||2e3})},81425:(t,e,a)=>{a.d(e,{DK:()=>F,DL:()=>g,DM:()=>O,FC:()=>w,H2:()=>k,HY:()=>m,Hh:()=>v,KN:()=>T,Mn:()=>u,N4:()=>K,OM:()=>P,R_:()=>_,Sd:()=>h,U6:()=>I,U8:()=>A,W0:()=>j,XC:()=>U,Xw:()=>Q,Y8:()=>X,Yk:()=>f,aL:()=>d,bY:()=>x,bd:()=>L,eF:()=>C,jO:()=>N,jy:()=>p,k3:()=>b,nQ:()=>y,ne:()=>l,qB:()=>M,ry:()=>H,tL:()=>Y,ts:()=>E,wT:()=>D,z3:()=>z,zF:()=>S,zR:()=>q,zb:()=>B,zf:()=>R});var n=a(89379),r=a(26910),i=a(20466),o=a(4159),c=a.n(o);const s=localStorage.getItem("userid"),l=async t=>{const e="".concat("https://jupiter.nearle.app/live/api/v1","/utils/getriderperiodiclogs").concat(t?"?userid=".concat(t):""),a=await r.A.get(e);return a.data&&a.data.status?a.data.data:null},d=async()=>[...(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(s))).data.details,{locationname:"All",applocationid:0}],p=async t=>{let{queryKey:e}=t;const[,a,n,i,o,c]=e,s=(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/orders/getordersummary/?applocationid=").concat(a,"&tenantid=").concat(o,"&locationid=").concat(c,"&fromdate=").concat(n,"&todate=").concat(i))).data.details;return{created:s.created.toString(),uncoveredOrders:s.pending.toString(),coveredOrders:s.delivered.toString(),cancelled:s.cancelled.toString(),percentage1:(Math.round(s.created/s.total*100)||0).toString(),percentage2:(Math.round(s.pending/s.total*100)||0).toString(),percentage3:(Math.round(s.delivered/s.total*100)||0).toString(),percentage4:(Math.round(s.cancelled/s.total*100)||0).toString()}},u=async t=>{const e=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenants/?applocationid=").concat(t,"&status=active"));if(e.data.status){let t=[];return e.data.details.map((e=>{t.push((0,n.A)((0,n.A)({},e),{},{label:"".concat(e.tenantname)}))})),t}},g=async t=>{try{return(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantlocations/?tenantid=").concat(t))).data.details}catch(e){console.log("gettenantlocations",e)}},v=async t=>{let{queryKey:e}=t;const[,a,n,i,o,c,s]=e,l="".concat("https://jupiter.nearle.app/live/api/v1","/orders/getordersummary/?applocationid=").concat(a,"&tenantid=").concat(c,"&locationid=").concat(s,"&fromdate=").concat(n,"&todate=").concat(i,"&status=").concat(o);return(await r.A.get(l)).data.details},y=async t=>{let{pageParam:e=1,queryKey:a}=t;const[,n,i,o,c,s,l,d,p]=a,u="".concat("https://jupiter.nearle.app/live/api/v1","/orders/tenant/getorders/?applocationid=").concat(n,"&tenantid=").concat(d,"&locationid=").concat(p,"&status=").concat(i,"&fromdate=").concat(c,"&todate=").concat(s,"&keyword=").concat(o,"&pageno=").concat(e,"&pagesize=").concat(l),g=await r.A.get(u);return{rows:g.data.details,nextPage:g.data.details.length===Number(l)?e+1:void 0}},m=async()=>{const{data:t}=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getapptypes/?tag=paymentmode"));return t.details.map((t=>(0,n.A)((0,n.A)({},t),{},{label:t.typename})))},h=async t=>{let{queryKey:e}=t;try{const[,t]=e,{data:a}=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getriders/?applocationid=").concat(t));console.log("data",a);return null!==a&&void 0!==a&&a.details?null===a||void 0===a?void 0:a.details.map((t=>(0,n.A)((0,n.A)({},t),{},{label:"".concat(t.firstname," ").concat(t.lastname," | ").concat(t.contactno)}))):[]}catch(a){throw(0,i.k)(a.message,"error",2e3),a}},w=async t=>(await r.A.post("https://routes.workolik.com/api/v1/optimization/createdeliveries",t.deliveries)).data,A=async t=>{let{riders:e}=t;return(await r.A.post("https://routes.workolik.com/api/v1/optimization/reconcile-steps",{riders:e})).data},j=async t=>{let{batch:e,tenantId:a}=t;return(await r.A.post("https://routes.workolik.com/api/v1/batch/efficiency",{batch:e,tenant_id:a},{headers:{"Content-Type":"application/json"},validateStatus:()=>!0})).data},k=async t=>{const e=t=>{const e=Number(t);return Number.isFinite(e)?e:t},a=(t.deliveries||[]).map((t=>(0,n.A)((0,n.A)({},t),{},{userid:e(t.userid),rider_id:e(t.rider_id)})));console.log("deliveryData",a);return(await r.A.post("https://jupiter.nearle.app/live/api/v1/deliveries/createdeliveries",a)).data},f=async t=>{console.log("variables",t);const e=Array.isArray(t.absent_riders)?t.absent_riders:[],a=1==t.selectedMode.value?"https://routes.workolik.com/api/v1/optimization/riderassign?hypertuning_params=".concat(t.hypertuning_params):"https://routemate.workolik.com/api/v1/optimization/riderassign?strategy=multi_trip",i=1==t.selectedMode.value?{deliveries:t.deliveries,absent_riders:e}:(0,n.A)((0,n.A)({},t.data||{}),{},{absent_riders:e});console.log("createAutomationDeliveries body",i);return(await r.A.post(a,i)).data},b=async t=>{if(!t)throw new Error("Invalid rider token");console.log("notify rider called"),console.log("riderToken",t);return(await r.A.post("".concat("https://jupiter.nearle.app/live/api/v1","/utils/notifyuser"),{token:t,notification:{title:"NearleXpress",body:"Orders have been placed for delivery. Kindly accept and process deliveries",sound:"ring",image:""}})).data},K=async t=>(await r.A.put("".concat("https://jupiter.nearle.app/live/api/v1","/orders/updateorder"),{orderheaderid:t,orderstatus:"cancelled",cancelled:c()().format("YYYY-MM-DD HH:mm:ss")})).data,q=async t=>{console.log("data",t);const e=null===t||void 0===t?void 0:t.map((t=>({orderheaderid:t.orderheaderid,orderstatus:"cancelled",cancelled:c()().format("YYYY-MM-DD HH:mm:ss")})));return(await r.A.put("".concat("https://jupiter.nearle.app/live/api/v1","/orders/updatemultipleorders"),e)).data},Y=async t=>{let{pageParam:e=1,queryKey:a}=t,[,n,i,o,c,s,l,d,p,u,g]=a;o="All"==o?"all":o;const v=0===n?"".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/getdeliveries/?appuserid=").concat(i,"&status=").concat(o,"&fromdate=").concat(c,"&todate=").concat(s,"&pageno=").concat(e,"&pagesize=").concat(l,"&keyword=").concat(d,"&tenantid=").concat(p,"&locationid=").concat(u,"&userid=").concat(g):"".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/getdeliveries/?applocationid=").concat(n,"&status=").concat(o,"&fromdate=").concat(c,"&todate=").concat(s,"&pageno=").concat(e,"&pagesize=").concat(l,"&keyword=").concat(d,"&tenantid=").concat(p,"&locationid=").concat(u,"&userid=").concat(g),y=await r.A.get(v);return{rows:y.data.details,nextPage:y.data.details.length===Number(l)?e+1:void 0}},M=async(t,e,a,n,i,o,c,s,l)=>{const d=0==t?"".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/deliverysummary/?appuserid=").concat(e,"&fromdate=").concat(a,"&todate=").concat(n):"".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/deliverysummary/?applocationid=").concat(t,"&fromdate=").concat(a,"&todate=").concat(n,"&tenantid=").concat(c,"&locationid=").concat(s,"&userid=").concat(l),p=(await r.A.get(d)).data.details;return{total:p.total,uncoveredLength:p.pending,assignedLength:p.accepted,arrivedLength:p.arrived,pickedLength:p.picked,activeLength:p.active,coveredLength:p.delivered,cancelLength:p.cancelled,skippedLength:p.skipped}},S=async(t,e)=>{const a={deliveryid:t.deliveryid,orderheaderid:t.orderheaderid,orderstatus:"cancelled",canceltime:c()().format("YYYY-MM-DD HH:mm:ss"),feedback:e};return(await r.A.put("".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/updatedelivery"),a)).data},z=async t=>(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/orders/getorderdetails?orderheaderid=").concat(t))).data,_=async(t,e)=>(console.log("selectedRider",t),console.log("selectedRow",e),r.A.put("".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/updatedelivery"),{userid:t.userid,deliveryid:e.deliveryid,orderheaderid:e.orderheaderid,orderstatus:"pending",assigntime:c()().format("YYYY-MM-DD HH:mm:ss")})),D=async t=>r.A.put("".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/updatedelivery"),t),H=async t=>{let{queryKey:e}=t;const[,a,n,o,c,s]=e;try{let t="".concat("https://jupiter.nearle.app/live/api/v1","/tenants/getalltenants/?status=").concat(o,"&applocationid=").concat(a,"&keyword=").concat(n,"&pageno=").concat(c+1,"&pagesize=").concat(s,"&moduleid=6");return(await r.A.get(t)).data.details}catch(p){var l,d;const t=(null===(l=p.response)||void 0===l||null===(d=l.data)||void 0===d?void 0:d.message)||p.message||"Something went wrong";return(0,i.k)(t),null}},L=async t=>{let{queryKey:e}=t;const[,a]=e;try{return(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantsummary/?moduleid=6&applocationid=").concat(a))).data.summary}catch(c){var n,o;const t=(null===(n=c.response)||void 0===n||null===(o=n.data)||void 0===o?void 0:o.message)||c.message||"Something went wrong";return(0,i.k)(t),null}},P=async t=>{let{queryKey:e}=t;const[,a]=e;try{return(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getallpricing/?applocationid=").concat(a))).data.details||[]}catch(c){var n,o;const t=(null===(n=c.response)||void 0===n||null===(o=n.data)||void 0===o?void 0:o.message)||c.message||"Something went wrong";return(0,i.k)(t),[]}},R=async t=>{let{queryKey:e}=t;const[,a]=e;try{return(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/customers/getcustomersummary?applocationid=").concat(a))).data.summary}catch(c){var n,o;const t=(null===(n=c.response)||void 0===n||null===(o=n.data)||void 0===o?void 0:o.message)||c.message||"Something went wrong";return(0,i.k)(t),null}},N=async t=>{let{pageParam:e=1,queryKey:a}=t;const[,n,o,c]=a;try{var s;const t=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/customers/getallcustomers/"),{params:{applocationid:n,keyword:o,pageno:e,pagesize:c}});return{data:t.data.details||[],nextPage:(null===(s=t.data.details)||void 0===s?void 0:s.length)===c?e+1:void 0}}catch(p){var l,d;const t=(null===(l=p.response)||void 0===l||null===(d=l.data)||void 0===d?void 0:d.message)||p.message||"Something went wrong";throw(0,i.k)(t),p}},O=async t=>{let{pageParam:e=1,queryKey:a}=t;try{const[,t,n,i]=a,o="".concat("https://jupiter.nearle.app/live/api/v1","/partners/getallriders/?applocationid=").concat(t,"&pageno=").concat(e,"&pagesize=",20,"&keyword=").concat(n,"&status=").concat(0==i||2==i?"":"Active"),c=await r.A.get(o);return{details:c.data.details,nextPage:20===c.data.details.length?e+1:void 0}}catch(n){return console.log("fetchAllRiders err",n.message),[]}},C=async t=>{let{queryKey:e}=t;try{const[,t,a]=e;return(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getallridersummary/?applocationid=").concat(t,"&status=").concat(0==a?"":"Active"))).data.details}catch(a){return console.log("getallridersummary err",a.message),[]}},x=async()=>(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getriderstatus"))).data.data,F=async t=>{let{queryKey:e}=t;console.log("queryKey for getreportsummary",e);const[a,n,i,o,c]=e,s=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/getreportsummary/?applocationid=").concat(a,"&tenantid=").concat(n,"&locationid=").concat(i,"&fromdate=").concat(o,"&todate=").concat(c));return console.log("getreportsummary",s.data.details),s.data.details},I=async t=>{let{queryKey:e}=t;console.log("queryKey for getreportlocationsummary",e);const[a,n,i,o,c]=e,s=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/getreportlocationsummary/?applocationid=").concat(a,"&tenantid=").concat(n,"&locationid=").concat(i,"&fromdate=").concat(o,"&todate=").concat(c));return console.log("getreportlocationsummary",s.data.details),s.data.details},T=async t=>{let{queryKey:e}=t;console.log("queryKey for fetchRidersSummary",e);const[,a,n,i]=e,o=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/getridersummary/?applocationid=").concat(a,"&fromdate=").concat(n,"&todate=").concat(i));return console.log("fetchRidersSummary",o.data.details),o.data.details},X=async()=>(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/invoice/getinvoiceinsight"))).data.details,U=async t=>{let{queryKey:e}=t;const[a]=e,n=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/invoice/getallinvoice/?billstatus=").concat(a));return console.log("fetchdeliverylist",n.data.details),n.data.details},B=async t=>{let{queryKey:e}=t;const[a,n,i=""]=e,o=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v2","/partners/getriderlogs/?applocationid=").concat(a,"&fromdate=").concat(n||"","&todate=").concat(n,"&keyword=").concat(i||""," "));return console.log("fetchRidersLogs",o.data.details),o.data.details},E=async()=>{try{return(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/users/getusers/?configid=9&userid=").concat(s))).data.details}catch(t){console.log("getusers",t.message)}},Q=async()=>{try{return(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getallriders?partnerid=64"))).data.details}catch(t){console.log("getallriders",t.message)}}}}]); \ No newline at end of file diff --git a/build/static/js/1425.79f82280.chunk.js b/build/static/js/1425.79f82280.chunk.js new file mode 100644 index 0000000..573eb6c --- /dev/null +++ b/build/static/js/1425.79f82280.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[1425],{20466:(t,e,a)=>{a.d(e,{k:()=>r});var n=a(13659);const r=(t,e,a)=>(0,n.M8)(t,{variant:e,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:a||2e3})},81425:(t,e,a)=>{a.d(e,{DK:()=>F,DL:()=>g,DM:()=>O,FC:()=>w,H2:()=>k,HY:()=>m,Hh:()=>v,KN:()=>T,Mn:()=>u,N4:()=>K,OM:()=>P,R_:()=>_,Sd:()=>h,U6:()=>I,U8:()=>A,W0:()=>j,XC:()=>U,Xw:()=>Q,Y8:()=>X,Yk:()=>f,aL:()=>d,bY:()=>x,bd:()=>L,eF:()=>C,jO:()=>N,jy:()=>p,k3:()=>b,nQ:()=>y,ne:()=>l,qB:()=>M,ry:()=>H,tL:()=>Y,ts:()=>E,wT:()=>D,z3:()=>z,zF:()=>S,zR:()=>q,zb:()=>B,zf:()=>R});var n=a(22555),r=a(66157),i=a(20466),o=a(46077),c=a.n(o);const s=localStorage.getItem("userid"),l=async t=>{const e="".concat("https://jupiter.nearle.app/live/api/v1","/utils/getriderperiodiclogs").concat(t?"?userid=".concat(t):""),a=await r.A.get(e);return a.data&&a.data.status?a.data.data:null},d=async()=>[...(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(s))).data.details,{locationname:"All",applocationid:0}],p=async t=>{let{queryKey:e}=t;const[,a,n,i,o,c]=e,s=(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/orders/getordersummary/?applocationid=").concat(a,"&tenantid=").concat(o,"&locationid=").concat(c,"&fromdate=").concat(n,"&todate=").concat(i))).data.details;return{created:s.created.toString(),uncoveredOrders:s.pending.toString(),coveredOrders:s.delivered.toString(),cancelled:s.cancelled.toString(),percentage1:(Math.round(s.created/s.total*100)||0).toString(),percentage2:(Math.round(s.pending/s.total*100)||0).toString(),percentage3:(Math.round(s.delivered/s.total*100)||0).toString(),percentage4:(Math.round(s.cancelled/s.total*100)||0).toString()}},u=async t=>{const e=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenants/?applocationid=").concat(t,"&status=active"));if(e.data.status){let t=[];return e.data.details.map((e=>{t.push((0,n.A)((0,n.A)({},e),{},{label:"".concat(e.tenantname)}))})),t}},g=async t=>{try{return(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantlocations/?tenantid=").concat(t))).data.details}catch(e){console.log("gettenantlocations",e)}},v=async t=>{let{queryKey:e}=t;const[,a,n,i,o,c,s]=e,l="".concat("https://jupiter.nearle.app/live/api/v1","/orders/getordersummary/?applocationid=").concat(a,"&tenantid=").concat(c,"&locationid=").concat(s,"&fromdate=").concat(n,"&todate=").concat(i,"&status=").concat(o);return(await r.A.get(l)).data.details},y=async t=>{let{pageParam:e=1,queryKey:a}=t;const[,n,i,o,c,s,l,d,p]=a,u="".concat("https://jupiter.nearle.app/live/api/v1","/orders/tenant/getorders/?applocationid=").concat(n,"&tenantid=").concat(d,"&locationid=").concat(p,"&status=").concat(i,"&fromdate=").concat(c,"&todate=").concat(s,"&keyword=").concat(o,"&pageno=").concat(e,"&pagesize=").concat(l),g=await r.A.get(u);return{rows:g.data.details,nextPage:g.data.details.length===Number(l)?e+1:void 0}},m=async()=>{const{data:t}=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getapptypes/?tag=paymentmode"));return t.details.map((t=>(0,n.A)((0,n.A)({},t),{},{label:t.typename})))},h=async t=>{let{queryKey:e}=t;try{const[,t]=e,{data:a}=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getriders/?applocationid=").concat(t));console.log("data",a);return null!==a&&void 0!==a&&a.details?null===a||void 0===a?void 0:a.details.map((t=>(0,n.A)((0,n.A)({},t),{},{label:"".concat(t.firstname," ").concat(t.lastname," | ").concat(t.contactno)}))):[]}catch(a){throw(0,i.k)(a.message,"error",2e3),a}},w=async t=>(await r.A.post("https://routes.workolik.com/api/v1/optimization/createdeliveries",t.deliveries)).data,A=async t=>{let{riders:e}=t;return(await r.A.post("https://routes.workolik.com/api/v1/optimization/reconcile-steps",{riders:e})).data},j=async t=>{let{batch:e,tenantId:a}=t;return(await r.A.post("https://routes.workolik.com/api/v1/batch/efficiency",{batch:e,tenant_id:a},{headers:{"Content-Type":"application/json"},validateStatus:()=>!0})).data},k=async t=>{const e=t=>{const e=Number(t);return Number.isFinite(e)?e:t},a=(t.deliveries||[]).map((t=>(0,n.A)((0,n.A)({},t),{},{userid:e(t.userid),rider_id:e(t.rider_id)})));console.log("deliveryData",a);return(await r.A.post("https://jupiter.nearle.app/live/api/v1/deliveries/createdeliveries",a)).data},f=async t=>{console.log("variables",t);const e=Array.isArray(t.absent_riders)?t.absent_riders:[],a=1==t.selectedMode.value?"https://routes.workolik.com/api/v1/optimization/riderassign?hypertuning_params=".concat(t.hypertuning_params):"https://routemate.workolik.com/api/v1/optimization/riderassign?strategy=multi_trip",i=1==t.selectedMode.value?{deliveries:t.deliveries,absent_riders:e}:(0,n.A)((0,n.A)({},t.data||{}),{},{absent_riders:e});console.log("createAutomationDeliveries body",i);return(await r.A.post(a,i)).data},b=async t=>{if(!t)throw new Error("Invalid rider token");console.log("notify rider called"),console.log("riderToken",t);return(await r.A.post("".concat("https://jupiter.nearle.app/live/api/v1","/utils/notifyuser"),{token:t,notification:{title:"NearleXpress",body:"Orders have been placed for delivery. Kindly accept and process deliveries",sound:"ring",image:""}})).data},K=async t=>(await r.A.put("".concat("https://jupiter.nearle.app/live/api/v1","/orders/updateorder"),{orderheaderid:t,orderstatus:"cancelled",cancelled:c()().format("YYYY-MM-DD HH:mm:ss")})).data,q=async t=>{console.log("data",t);const e=null===t||void 0===t?void 0:t.map((t=>({orderheaderid:t.orderheaderid,orderstatus:"cancelled",cancelled:c()().format("YYYY-MM-DD HH:mm:ss")})));return(await r.A.put("".concat("https://jupiter.nearle.app/live/api/v1","/orders/updatemultipleorders"),e)).data},Y=async t=>{let{pageParam:e=1,queryKey:a}=t,[,n,i,o,c,s,l,d,p,u,g]=a;o="All"==o?"all":o;const v=0===n?"".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/getdeliveries/?appuserid=").concat(i,"&status=").concat(o,"&fromdate=").concat(c,"&todate=").concat(s,"&pageno=").concat(e,"&pagesize=").concat(l,"&keyword=").concat(d,"&tenantid=").concat(p,"&locationid=").concat(u,"&userid=").concat(g):"".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/getdeliveries/?applocationid=").concat(n,"&status=").concat(o,"&fromdate=").concat(c,"&todate=").concat(s,"&pageno=").concat(e,"&pagesize=").concat(l,"&keyword=").concat(d,"&tenantid=").concat(p,"&locationid=").concat(u,"&userid=").concat(g),y=await r.A.get(v);return{rows:y.data.details,nextPage:y.data.details.length===Number(l)?e+1:void 0}},M=async(t,e,a,n,i,o,c,s,l)=>{const d=0==t?"".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/deliverysummary/?appuserid=").concat(e,"&fromdate=").concat(a,"&todate=").concat(n):"".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/deliverysummary/?applocationid=").concat(t,"&fromdate=").concat(a,"&todate=").concat(n,"&tenantid=").concat(c,"&locationid=").concat(s,"&userid=").concat(l),p=(await r.A.get(d)).data.details;return{total:p.total,uncoveredLength:p.pending,assignedLength:p.accepted,arrivedLength:p.arrived,pickedLength:p.picked,activeLength:p.active,coveredLength:p.delivered,cancelLength:p.cancelled,skippedLength:p.skipped}},S=async(t,e)=>{const a={deliveryid:t.deliveryid,orderheaderid:t.orderheaderid,orderstatus:"cancelled",canceltime:c()().format("YYYY-MM-DD HH:mm:ss"),feedback:e};return(await r.A.put("".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/updatedelivery"),a)).data},z=async t=>(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/orders/getorderdetails?orderheaderid=").concat(t))).data,_=async(t,e)=>(console.log("selectedRider",t),console.log("selectedRow",e),r.A.put("".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/updatedelivery"),{userid:t.userid,deliveryid:e.deliveryid,orderheaderid:e.orderheaderid,orderstatus:"pending",assigntime:c()().format("YYYY-MM-DD HH:mm:ss")})),D=async t=>r.A.put("".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/updatedelivery"),t),H=async t=>{let{queryKey:e}=t;const[,a,n,o,c,s]=e;try{let t="".concat("https://jupiter.nearle.app/live/api/v1","/tenants/getalltenants/?status=").concat(o,"&applocationid=").concat(a,"&keyword=").concat(n,"&pageno=").concat(c+1,"&pagesize=").concat(s,"&moduleid=6");return(await r.A.get(t)).data.details}catch(p){var l,d;const t=(null===(l=p.response)||void 0===l||null===(d=l.data)||void 0===d?void 0:d.message)||p.message||"Something went wrong";return(0,i.k)(t),null}},L=async t=>{let{queryKey:e}=t;const[,a]=e;try{return(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantsummary/?moduleid=6&applocationid=").concat(a))).data.summary}catch(c){var n,o;const t=(null===(n=c.response)||void 0===n||null===(o=n.data)||void 0===o?void 0:o.message)||c.message||"Something went wrong";return(0,i.k)(t),null}},P=async t=>{let{queryKey:e}=t;const[,a]=e;try{return(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getallpricing/?applocationid=").concat(a))).data.details||[]}catch(c){var n,o;const t=(null===(n=c.response)||void 0===n||null===(o=n.data)||void 0===o?void 0:o.message)||c.message||"Something went wrong";return(0,i.k)(t),[]}},R=async t=>{let{queryKey:e}=t;const[,a]=e;try{return(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/customers/getcustomersummary?applocationid=").concat(a))).data.summary}catch(c){var n,o;const t=(null===(n=c.response)||void 0===n||null===(o=n.data)||void 0===o?void 0:o.message)||c.message||"Something went wrong";return(0,i.k)(t),null}},N=async t=>{let{pageParam:e=1,queryKey:a}=t;const[,n,o,c]=a;try{var s;const t=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/customers/getallcustomers/"),{params:{applocationid:n,keyword:o,pageno:e,pagesize:c}});return{data:t.data.details||[],nextPage:(null===(s=t.data.details)||void 0===s?void 0:s.length)===c?e+1:void 0}}catch(p){var l,d;const t=(null===(l=p.response)||void 0===l||null===(d=l.data)||void 0===d?void 0:d.message)||p.message||"Something went wrong";throw(0,i.k)(t),p}},O=async t=>{let{pageParam:e=1,queryKey:a}=t;try{const[,t,n,i]=a,o="".concat("https://jupiter.nearle.app/live/api/v1","/partners/getallriders/?applocationid=").concat(t,"&pageno=").concat(e,"&pagesize=",20,"&keyword=").concat(n,"&status=").concat(0==i||2==i?"":"Active"),c=await r.A.get(o);return{details:c.data.details,nextPage:20===c.data.details.length?e+1:void 0}}catch(n){return console.log("fetchAllRiders err",n.message),[]}},C=async t=>{let{queryKey:e}=t;try{const[,t,a]=e;return(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getallridersummary/?applocationid=").concat(t,"&status=").concat(0==a?"":"Active"))).data.details}catch(a){return console.log("getallridersummary err",a.message),[]}},x=async()=>(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getriderstatus"))).data.data,F=async t=>{let{queryKey:e}=t;console.log("queryKey for getreportsummary",e);const[a,n,i,o,c]=e,s=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/getreportsummary/?applocationid=").concat(a,"&tenantid=").concat(n,"&locationid=").concat(i,"&fromdate=").concat(o,"&todate=").concat(c));return console.log("getreportsummary",s.data.details),s.data.details},I=async t=>{let{queryKey:e}=t;console.log("queryKey for getreportlocationsummary",e);const[a,n,i,o,c]=e,s=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/getreportlocationsummary/?applocationid=").concat(a,"&tenantid=").concat(n,"&locationid=").concat(i,"&fromdate=").concat(o,"&todate=").concat(c));return console.log("getreportlocationsummary",s.data.details),s.data.details},T=async t=>{let{queryKey:e}=t;console.log("queryKey for fetchRidersSummary",e);const[,a,n,i]=e,o=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/getridersummary/?applocationid=").concat(a,"&fromdate=").concat(n,"&todate=").concat(i));return console.log("fetchRidersSummary",o.data.details),o.data.details},X=async()=>(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/invoice/getinvoiceinsight"))).data.details,U=async t=>{let{queryKey:e}=t;const[a]=e,n=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/invoice/getallinvoice/?billstatus=").concat(a));return console.log("fetchdeliverylist",n.data.details),n.data.details},B=async t=>{let{queryKey:e}=t;const[a,n,i=""]=e,o=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v2","/partners/getriderlogs/?applocationid=").concat(a,"&fromdate=").concat(n||"","&todate=").concat(n,"&keyword=").concat(i||""," "));return console.log("fetchRidersLogs",o.data.details),o.data.details},E=async()=>{try{return(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/users/getusers/?configid=9&userid=").concat(s))).data.details}catch(t){console.log("getusers",t.message)}},Q=async()=>{try{return(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getallriders?partnerid=64"))).data.details}catch(t){console.log("getallriders",t.message)}}}}]); \ No newline at end of file diff --git a/build/static/js/1471.8f910e5f.chunk.js b/build/static/js/1471.8f910e5f.chunk.js new file mode 100644 index 0000000..dc9bf1b --- /dev/null +++ b/build/static/js/1471.8f910e5f.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[1471],{22686:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(a,n,s){var i=n.prototype;s.utc=function(t){return new n({date:t,utc:!0,args:arguments})},i.utc=function(e){var o=s(this.toDate(),{locale:this.$L,utc:!0});return e?o.add(this.utcOffset(),t):o},i.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var r=i.parse;i.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),r.call(this,t)};var l=i.init;i.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else l.call(this)};var c=i.utcOffset;i.utcOffset=function(a,n){var s=this.$utils().u;if(s(a))return this.$u?0:s(this.$offset)?c.call(this):this.$offset;if("string"==typeof a&&(a=function(t){void 0===t&&(t="");var a=t.match(e);if(!a)return null;var n=(""+a[0]).match(o)||["-",0,0],s=n[0],i=60*+n[1]+ +n[2];return 0===i?0:"+"===s?i:-i}(a),null===a))return this;var i=Math.abs(a)<=16?60*a:a,r=this;if(n)return r.$offset=i,r.$u=0===a,r;if(0!==a){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(r=this.local().add(i+l,t)).$offset=i,r.$x.$localOffset=l}else r=this.utc();return r};var u=i.format;i.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,e)},i.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var d=i.toDate;i.toDate=function(t){return"s"===t&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var p=i.diff;i.diff=function(t,e,o){if(t&&this.$u===t.$u)return p.call(this,t,e,o);var a=this.local(),n=s(t).local();return p.call(a,n,e,o)}}}()},67677:(t,e,o)=>{"use strict";o.d(e,{A:()=>Y});var a=o(84849),n=o(27326),s=o(85672),i=o(72574),r=o(25234),l=o(28292),c=o(60308),u=o(38009),d=o(51476),p=o(77865),h=o(51422),f=o(1596),g=o(5957),m=o(29048),b=o(30073),v=o(82336),A=o(11969),x=o(31529),y=o(65908);const P=(0,x.A)((0,y.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),I=(0,x.A)((0,y.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),B=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],w=s.forwardRef((function(t,e){var o,s,i,r,l,c,u,d;const{backIconButtonProps:p,count:h,disabled:f=!1,getItemAriaLabel:g,nextIconButtonProps:x,onPageChange:w,page:C,rowsPerPage:$,showFirstButton:M,showLastButton:R,slots:S={},slotProps:L={}}=t,k=(0,a.A)(t,B),T=(0,m.I)(),O=null!=(o=S.firstButton)?o:A.A,j=null!=(s=S.lastButton)?s:A.A,D=null!=(i=S.nextButton)?i:A.A,N=null!=(r=S.previousButton)?r:A.A,H=null!=(l=S.firstButtonIcon)?l:I,z=null!=(c=S.lastButtonIcon)?c:P,F=null!=(u=S.nextButtonIcon)?u:v.A,U=null!=(d=S.previousButtonIcon)?d:b.A,Y=T?j:O,G=T?D:N,V=T?N:D,X=T?O:j,_=T?L.lastButton:L.firstButton,W=T?L.nextButton:L.previousButton,E=T?L.previousButton:L.nextButton,Z=T?L.firstButton:L.lastButton;return(0,y.jsxs)("div",(0,n.A)({ref:e},k,{children:[M&&(0,y.jsx)(Y,(0,n.A)({onClick:t=>{w(t,0)},disabled:f||0===C,"aria-label":g("first",C),title:g("first",C)},_,{children:T?(0,y.jsx)(z,(0,n.A)({},L.lastButtonIcon)):(0,y.jsx)(H,(0,n.A)({},L.firstButtonIcon))})),(0,y.jsx)(G,(0,n.A)({onClick:t=>{w(t,C-1)},disabled:f||0===C,color:"inherit","aria-label":g("previous",C),title:g("previous",C)},null!=W?W:p,{children:T?(0,y.jsx)(F,(0,n.A)({},L.nextButtonIcon)):(0,y.jsx)(U,(0,n.A)({},L.previousButtonIcon))})),(0,y.jsx)(V,(0,n.A)({onClick:t=>{w(t,C+1)},disabled:f||-1!==h&&C>=Math.ceil(h/$)-1,color:"inherit","aria-label":g("next",C),title:g("next",C)},null!=E?E:x,{children:T?(0,y.jsx)(U,(0,n.A)({},L.previousButtonIcon)):(0,y.jsx)(F,(0,n.A)({},L.nextButtonIcon))})),R&&(0,y.jsx)(X,(0,n.A)({onClick:t=>{w(t,Math.max(0,Math.ceil(h/$)-1))},disabled:f||C>=Math.ceil(h/$)-1,"aria-label":g("last",C),title:g("last",C)},Z,{children:T?(0,y.jsx)(H,(0,n.A)({},L.firstButtonIcon)):(0,y.jsx)(z,(0,n.A)({},L.lastButtonIcon))}))]}))}));var C=o(66664),$=o(37300),M=o(10644);function R(t){return(0,M.Ay)("MuiTablePagination",t)}const S=(0,$.A)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var L;const k=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],T=(0,c.Ay)(f.A,{name:"MuiTablePagination",slot:"Root",overridesResolver:(t,e)=>e.root})((t=>{let{theme:e}=t;return{overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}})),O=(0,c.Ay)(g.A,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(t,e)=>(0,n.A)({["& .".concat(S.actions)]:e.actions},e.toolbar)})((t=>{let{theme:e}=t;return{minHeight:52,paddingRight:2,["".concat(e.breakpoints.up("xs")," and (orientation: landscape)")]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},["& .".concat(S.actions)]:{flexShrink:0,marginLeft:20}}})),j=(0,c.Ay)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(t,e)=>e.spacer})({flex:"1 1 100%"}),D=(0,c.Ay)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(t,e)=>e.selectLabel})((t=>{let{theme:e}=t;return(0,n.A)({},e.typography.body2,{flexShrink:0})})),N=(0,c.Ay)(h.A,{name:"MuiTablePagination",slot:"Select",overridesResolver:(t,e)=>(0,n.A)({["& .".concat(S.selectIcon)]:e.selectIcon,["& .".concat(S.select)]:e.select},e.input,e.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,["& .".concat(S.select)]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),H=(0,c.Ay)(p.A,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(t,e)=>e.menuItem})({}),z=(0,c.Ay)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(t,e)=>e.displayedRows})((t=>{let{theme:e}=t;return(0,n.A)({},e.typography.body2,{flexShrink:0})}));function F(t){let{from:e,to:o,count:a}=t;return"".concat(e,"\u2013").concat(o," of ").concat(-1!==a?a:"more than ".concat(o))}function U(t){return"Go to ".concat(t," page")}const Y=s.forwardRef((function(t,e){var o;const c=(0,u.b)({props:t,name:"MuiTablePagination"}),{ActionsComponent:p=w,backIconButtonProps:h,className:g,colSpan:m,component:b=f.A,count:v,disabled:A=!1,getItemAriaLabel:x=U,labelDisplayedRows:P=F,labelRowsPerPage:I="Rows per page:",nextIconButtonProps:B,onPageChange:$,onRowsPerPageChange:M,page:S,rowsPerPage:Y,rowsPerPageOptions:G=[10,25,50,100],SelectProps:V={},showFirstButton:X=!1,showLastButton:_=!1,slotProps:W={},slots:E={}}=c,Z=(0,a.A)(c,k),q=c,J=(t=>{const{classes:e}=t;return(0,r.A)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},R,e)})(q),K=null!=(o=null==W?void 0:W.select)?o:V,Q=K.native?"option":H;let tt;b!==f.A&&"td"!==b||(tt=m||1e3);const et=(0,C.A)(K.id),ot=(0,C.A)(K.labelId);return(0,y.jsx)(T,(0,n.A)({colSpan:tt,ref:e,as:b,ownerState:q,className:(0,i.A)(J.root,g)},Z,{children:(0,y.jsxs)(O,{className:J.toolbar,children:[(0,y.jsx)(j,{className:J.spacer}),G.length>1&&(0,y.jsx)(D,{className:J.selectLabel,id:ot,children:I}),G.length>1&&(0,y.jsx)(N,(0,n.A)({variant:"standard"},!K.variant&&{input:L||(L=(0,y.jsx)(d.Ay,{}))},{value:Y,onChange:M,id:et,labelId:ot},K,{classes:(0,n.A)({},K.classes,{root:(0,i.A)(J.input,J.selectRoot,(K.classes||{}).root),select:(0,i.A)(J.select,(K.classes||{}).select),icon:(0,i.A)(J.selectIcon,(K.classes||{}).icon)}),disabled:A,children:G.map((t=>(0,s.createElement)(Q,(0,n.A)({},!(0,l.A)(Q)&&{ownerState:q},{className:J.menuItem,key:t.label?t.label:t,value:t.value?t.value:t}),t.label?t.label:t)))})),(0,y.jsx)(z,{className:J.displayedRows,children:P({from:0===v?0:S*Y+1,to:-1===v?(S+1)*Y:-1===Y?v:Math.min(v,(S+1)*Y),count:-1===v?-1:v,page:S})}),(0,y.jsx)(p,{className:J.actions,backIconButtonProps:h,count:v,nextIconButtonProps:B,onPageChange:$,page:S,rowsPerPage:Y,showFirstButton:X,showLastButton:_,slotProps:W.actions,slots:E.actions,getItemAriaLabel:x,disabled:A})]})}))}))},68320:(t,e,o)=>{"use strict";o.d(e,{I:()=>s});var a=o(48149),n=o(59363);function s(t,e){return(0,n.t)(t,a.$,e)}},77865:(t,e,o)=>{"use strict";o.d(e,{A:()=>C});var a=o(84849),n=o(27326),s=o(85672),i=o(72574),r=o(25234),l=o(10247),c=o(60308),u=o(24270),d=o(38009),p=o(78534),h=o(61949),f=o(93046),g=o(45688),m=o(8191),b=o(58541),v=o(43917),A=o(37300),x=o(10644);function y(t){return(0,x.Ay)("MuiMenuItem",t)}const P=(0,A.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var I=o(65908);const B=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],w=(0,c.Ay)(h.A,{shouldForwardProp:t=>(0,u.A)(t)||"classes"===t,name:"MuiMenuItem",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.root,o.dense&&e.dense,o.divider&&e.divider,!o.disableGutters&&e.gutters]}})((t=>{let{theme:e,ownerState:o}=t;return(0,n.A)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.divider&&{borderBottom:"1px solid ".concat((e.vars||e).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(P.selected)]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / ").concat(e.vars.palette.action.selectedOpacity,")"):(0,l.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),["&.".concat(P.focusVisible)]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / calc(").concat(e.vars.palette.action.selectedOpacity," + ").concat(e.vars.palette.action.focusOpacity,"))"):(0,l.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},["&.".concat(P.selected,":hover")]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / calc(").concat(e.vars.palette.action.selectedOpacity," + ").concat(e.vars.palette.action.hoverOpacity,"))"):(0,l.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / ").concat(e.vars.palette.action.selectedOpacity,")"):(0,l.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},["&.".concat(P.focusVisible)]:{backgroundColor:(e.vars||e).palette.action.focus},["&.".concat(P.disabled)]:{opacity:(e.vars||e).palette.action.disabledOpacity},["& + .".concat(m.A.root)]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},["& + .".concat(m.A.inset)]:{marginLeft:52},["& .".concat(v.A.root)]:{marginTop:0,marginBottom:0},["& .".concat(v.A.inset)]:{paddingLeft:36},["& .".concat(b.A.root)]:{minWidth:36}},!o.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},o.dense&&(0,n.A)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{["& .".concat(b.A.root," svg")]:{fontSize:"1.25rem"}}))})),C=s.forwardRef((function(t,e){const o=(0,d.b)({props:t,name:"MuiMenuItem"}),{autoFocus:l=!1,component:c="li",dense:u=!1,divider:h=!1,disableGutters:m=!1,focusVisibleClassName:b,role:v="menuitem",tabIndex:A,className:x}=o,P=(0,a.A)(o,B),C=s.useContext(p.A),$=s.useMemo((()=>({dense:u||C.dense||!1,disableGutters:m})),[C.dense,u,m]),M=s.useRef(null);(0,f.A)((()=>{l&&M.current&&M.current.focus()}),[l]);const R=(0,n.A)({},o,{dense:$.dense,divider:h,disableGutters:m}),S=(t=>{const{disabled:e,dense:o,divider:a,disableGutters:s,selected:i,classes:l}=t,c={root:["root",o&&"dense",e&&"disabled",!s&&"gutters",a&&"divider",i&&"selected"]},u=(0,r.A)(c,y,l);return(0,n.A)({},l,u)})(o),L=(0,g.A)(M,e);let k;return o.disabled||(k=void 0!==A?A:-1),(0,I.jsx)(p.A.Provider,{value:$,children:(0,I.jsx)(w,(0,n.A)({ref:L,role:v,tabIndex:k,component:c,focusVisibleClassName:(0,i.A)(S.focusVisible,b),className:(0,i.A)(S.root,x)},P,{ownerState:R,classes:S}))})}))}}]); \ No newline at end of file diff --git a/build/static/js/1504.629fb0e6.chunk.js b/build/static/js/1504.629fb0e6.chunk.js new file mode 100644 index 0000000..f33ba41 --- /dev/null +++ b/build/static/js/1504.629fb0e6.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[1504],{23787:(e,t,i)=>{i.d(t,{FG:()=>p,nV:()=>x,pY:()=>g,pg:()=>h});var n=i(22555),s=i(53986),o=i(71392),r=i(55235),l=i(48738),a=i(2866),c=i(65908);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:t,scroll:i=!1,onScroll:r,sx:l}=e,a=(0,s.A)(e,d);return(0,c.jsx)(o.A,(0,n.A)((0,n.A)({spacing:1.25,onScroll:r,sx:(0,n.A)((0,n.A)({p:1.5},i&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),l)},a),{},{children:t}))},h=e=>{let{accent:t="#662582",header:i,footer:s,selected:o=!1,onClick:a,children:d,sx:x}=e;return(0,c.jsxs)(r.A,{elevation:0,onClick:a,sx:(0,n.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:o?t:"#e2e8f0",background:o?"".concat(t,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,c.jsx)(l.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:t}}),(0,c.jsxs)(l.A,{sx:{p:1.5,pl:2},children:[i,d,s]})]})},p=e=>{let{children:t,columns:i=2,sx:s}=e;return(0,c.jsx)(l.A,{sx:(0,n.A)({display:"grid",gridTemplateColumns:"repeat(".concat(i,", minmax(0, 1fr))"),gap:1,mt:1.25},s),children:t})},g=e=>{let{label:t,value:i,children:n,full:s=!1,align:o="left"}=e;return(0,c.jsxs)(l.A,{sx:{gridColumn:s?"1 / -1":"auto",minWidth:0,textAlign:o},children:[(0,c.jsx)(a.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:t}),(0,c.jsx)(l.A,{sx:{mt:.25,minWidth:0},children:void 0!==n?n:(0,c.jsx)(a.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==i&&void 0!==i?i:"\u2014"})})]})}},27001:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(71392),s=i(48738),o=i(2866),r=i(65908);function l(e){let{title:t,subtitle:i,live:l=!1,action:a}=e;return(0,r.jsxs)(n.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,r.jsxs)(s.A,{sx:{minWidth:0},children:[(0,r.jsx)(o.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:t}),i&&(0,r.jsxs)(n.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[l&&(0,r.jsx)(s.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,r.jsx)(o.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:i})]})]}),a&&(0,r.jsx)(s.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:a})]})}},36803:(e,t,i)=>{i.d(t,{A:()=>x});var n=i(84007),s=i(75953),o=i(71392),r=i(48738),l=i(2866),a=i(91834),c=i(97043),d=i(65908);function x(e){let{title:t,value:i,icon:x,color:h="#662582",caption:p,loading:g=!1}=e;return(0,d.jsx)(n.A,{sx:{height:"100%"},children:(0,d.jsx)(s.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,d.jsxs)(o.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,d.jsxs)(r.A,{sx:{minWidth:0,flex:1},children:[(0,d.jsx)(l.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t}),g?(0,d.jsx)(a.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,d.jsx)(l.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:i}),p&&(0,d.jsx)(l.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:p})]}),x&&(0,d.jsx)(c.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(h,"14"),color:h,flexShrink:0},children:x})]})})})}},56311:(e,t,i)=>{i.d(t,{A:()=>p});var n=i(22555),s=i(85672),o=i(29776),r=i(43318),l=i(23440),a=i(11969),c=i(80795),d=i(51808),x=i(93811),h=i(65908);const p=e=>{let{value:t,onChange:i,onDebouncedChange:p,debounceTime:g=500,placeholder:u="Search (ctrl+k)",sx:A}=e;const j=(0,s.useRef)(null),[m]=(0,x.d7)(t,g);return(0,s.useEffect)((()=>{p&&p(m)}),[m,p]),(0,s.useEffect)((()=>{const e=e=>{var t;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(t=j.current)||void 0===t||t.focus());"Escape"===e.key&&document.activeElement===j.current&&j.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,h.jsx)(o.A,{sx:(0,n.A)({},A),inputRef:j,placeholder:u,autoComplete:"off",value:t,fullWidth:!0,onChange:e=>i(e.target.value),startAdornment:(0,h.jsx)(r.A,{position:"start",sx:{mr:-.5},children:(0,h.jsx)(c.A,{})}),endAdornment:(0,h.jsx)(l.A,{title:"Clear",children:(0,h.jsx)(a.A,{sx:{visibility:t?"visible":"hidden"},onClick:()=>i(""),children:(0,h.jsx)(d.A,{})})})})}},59212:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(22555),s=i(85672),o=i(71392),r=i(97043),l=i(17488),a=i(86270),c=i(66157),d=i(48952),x=i(65908);const h=(0,s.forwardRef)(((e,t)=>{let{setAppId:i,setLocoName:h,setPage:p,sx:g,textfeildSx:u,textfieldSx:A,pill:j=!1,accentColor:m="#6366f1",icon:f,placeholder:b="Select Zone",paperComponent:v}=e;const[y,S]=(0,s.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,s.useEffect)((()=>{0===y.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const t=await c.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(t.data.status){const e=[...t.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),S(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[y.length]);const w=e=>"".concat(m).concat(e),C=w("26"),k=w("18"),z=j?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(C)},"&.Mui-focused fieldset":{borderColor:m,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},W=j&&(0,x.jsx)(o.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,x.jsx)(r.A,{sx:{width:24,height:24,bgcolor:k,color:m,transition:"background-color 0.15s, color 0.15s"},children:f||(0,x.jsx)(d.HPi,{size:14})})});return(0,x.jsx)(l.A,{id:"location-autocomplete",options:y||[],getOptionLabel:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.locationname)&&void 0!==t?t:""},PaperComponent:v,sx:(0,n.A)({},g),onChange:(e,t,n)=>{"clear"===n?(null===i||void 0===i||i(0),null===h||void 0===h||h(""),null===p||void 0===p||p(0)):t&&(null===i||void 0===i||i(t.applocationid),null===h||void 0===h||h(t.locationname),null===p||void 0===p||p(0))},renderInput:e=>j?(0,x.jsx)(a.A,(0,n.A)((0,n.A)({},e),{},{inputRef:t,placeholder:b,InputProps:(0,n.A)((0,n.A)({},e.InputProps),{},{startAdornment:W}),sx:(0,n.A)((0,n.A)({},z),A||u||{})})):(0,x.jsx)(a.A,(0,n.A)((0,n.A)({},e),{},{inputRef:t,label:"Select Zones",sx:(0,n.A)({},A||u||{})}))})}))},71504:(e,t,i)=>{i.r(t),i.d(t,{default:()=>Ke});var n=i(22555),s=i(85672),o=i(59008),r=i(66157),l=i(69039),a=i(52351),c=i(38464),d=i(46077),x=i.n(d),h=i(13659),p=i(76453),g=i(58355),u=i(75153),A=i.n(u),j=i(56691),m=i(55235),f=i(97043),b=i(76264),v=i(1939),y=i(48738),S=i(71392),w=i(2866),C=i(91834),k=i(83209),z=i(72486),W=i(54016),I=i(50755),P=i(1596),M=i(81802),R=i(23440),Y=i(11969),L=i(1150),_=i(93977),E=i(13420),K=i(84007),T=i(80911),D=i(75953),O=i(86270),H=i(17488),B=i(78754),F=i(58571),q=i(67677),N=i(58689),V=i(19619),X=i(5670),J=i(35935),G=i(17450),U=i(23787),Z=i(16957),Q=i(46114),$=i(88999),ee=i(51142),te=i(36563),ie=i(20077),ne=i(37476),se=i(81600),oe=i(90215),re=i(20605),le=i(70168),ae=i(48952),ce=i(76550),de=i(61660),xe=i(59212),he=i(56311),pe=i(27001),ge=i(36803),ue=i(68320),Ae=i(81425),je=i(96646),me=i(65908);const fe=14,be="0 12px 32px rgba(15, 23, 42, 0.12)",ve="#0f172a",ye="#64748b",Se="#94a3b8",we="#e2e8f0",Ce="#f1f5f9",ke="#f8fafc",ze=(e,t)=>"".concat(e).concat(t),We=e=>ze(e,"08"),Ie=e=>ze(e,"18"),Pe=e=>ze(e,"26"),Me=e=>ze(e,"55"),Re={active:{label:"Active",color:"#10b981",icon:ae.mU9,statusKey:"active"},pending:{label:"Pending",color:"#f59e0b",icon:ae.tX0,statusKey:"pending"},inactive:{label:"Inactive",color:"#ef4444",icon:ae.uDv,statusKey:"inactive"}},Ye=[{status:"active",countKey:"active",tabStatus:"Active"},{status:"pending",countKey:"pending",tabStatus:"Pending"},{status:"inactive",countKey:"inactive",tabStatus:"InActive"}],Le=[{key:"active",label:"Active Tenants",color:"#10b981",icon:ae.cAP,countKey:"active"},{key:"pending",label:"Pending Approval",color:"#f59e0b",icon:ae.G6c,countKey:"pending"},{key:"inactive",label:"Inactive Tenants",color:"#ef4444",icon:ae.qiG,countKey:"inactive"}],_e=e=>(0,me.jsx)(m.A,(0,n.A)((0,n.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:be,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),Ee=e=>{let{color:t,selected:i,size:n=24,children:s}=e;return(0,me.jsx)(f.A,{sx:{width:n,height:n,bgcolor:i?t:Ie(t),color:i?"#fff":t,transition:"background-color 0.15s, color 0.15s"},children:s})},Ke=()=>{var e;const t=(0,s.useRef)(null),[i,d]=(0,s.useState)(""),[u,be]=(0,s.useState)(""),[ze,Ke]=s.useState(10),Te=(0,l.A)(),De=(0,b.A)(Te.breakpoints.down("md")),[Oe,He]=(0,s.useState)(!1),[Be,Fe]=(0,s.useState)(0),[qe,Ne]=(0,s.useState)(""),[Ve]=(0,s.useState)("All"),[Xe,Je]=s.useState(null),[Ge,Ue]=(0,s.useState)(0),[Ze,Qe]=(0,s.useState)(0),[$e,et]=(0,s.useState)(0),[tt,it]=(0,s.useState)(null),[nt,st]=(0,s.useState)([]),[ot,rt]=(0,s.useState)("active"),[lt,at]=(0,s.useState)({}),[ct,dt]=(0,s.useState)(!1),[xt,ht]=(0,s.useState)([]),[pt,gt]=(0,s.useState)({}),[ut,At]=(0,s.useState)(!0),[jt,mt]=(0,s.useState)(""),[ft,bt]=(0,s.useState)(""),[vt,yt]=(0,s.useState)(""),[St,wt]=(0,s.useState)({}),[Ct,kt]=(0,s.useState)({}),[zt,Wt]=(0,s.useState)(0),[It,Pt]=(0,s.useState)("Active"),Mt=()=>{dt(!1)},Rt=(e,t)=>{Pt(0==t?"Active":1==t?"Pending":"InActive"),Ue(t),d(""),Wt(0)},Yt=(e,t)=>{console.log("newValue1",t),Qe(t)},Lt=(e,t)=>{console.log("newValue2",t),et(t)},[_t,Et]=(0,s.useState)(null),[Kt,Tt]=(0,s.useState)(null),Dt=e=>{Et((t=>t===e?null:e))};(0,s.useEffect)((()=>{console.log("selectedCustomer",lt)}),[lt]),(0,s.useEffect)((()=>{Et(-1),Tt(-1)}),[Ge]);const Ot=(e,t,i)=>{(0,h.M8)(e,{variant:t,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:i})};const Ht={current:null},[Bt,Ft]=(0,s.useState)(""),[qt,Nt]=(0,s.useState)([]),Vt=(0,s.useRef)(!1);"undefined"===typeof window||Vt.current||(document.querySelector("#google-maps")||function(e,t,i){if(!t)return;const n=document.createElement("script");n.setAttribute("async",""),n.setAttribute("id",i),n.src=e,t.appendChild(n)}("https://maps.googleapis.com/maps/api/js?key=".concat("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8","&libraries=places"),document.querySelector("head"),"google-maps"),Vt.current=!0);const Xt=(0,s.useMemo)((()=>(0,j.A)(((e,t)=>{Ht.current.getPlacePredictions(e,t)}),400)),[]);(0,s.useEffect)((()=>{let e=!0;if(!Ht.current&&window.google&&(Ht.current=new window.google.maps.places.AutocompleteService),Ht.current){if(""!==Bt)return Xt({input:Bt},(t=>{if(e){let e=[];Xe&&(e=[Xe]),t&&(e=[...e,...t]),Nt(e)}})),()=>{e=!1};Nt(Xe?[Xe]:[])}}),[Xe,Bt,Xt]),p.A.setApiKey("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8"),(0,s.useEffect)((()=>{try{console.log("selected address =>",jt),p.A.fromAddress(jt).then((e=>{if(console.log("lat long response =>",e.results[0]),"OK"==e.status){const{lat:t,lng:i}=e.results[0].geometry.location;if(wt({lat:t,lng:i}),kt((0,n.A)((0,n.A)({},Ct),{},{latitude:t.toString(),longitude:i.toString()})),e.results[0].address_components){let t,i,s,o,r=e.results[0];for(let e=0;e{console.log(e)}))}catch(e){console.log(e)}}),[jt]),(0,s.useEffect)((()=>{lt&&wt({lat:lt.latitude,lng:lt.longitude})}),[lt]),(0,s.useEffect)((()=>{const e=e=>{"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),t.current.focus()),"Escape"===e.key&&document.activeElement===t.current&&t.current.blur()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[]);const{data:Jt,isLoading:Gt,refetch:Ut}=(0,ue.I)({queryKey:["tenantList",Be,u,ot,zt,ze],queryFn:Ae.ry}),{data:Zt=[],isLoading:Qt,refetch:$t}=(0,ue.I)({queryKey:["gettenantsummary",Be,ot],queryFn:Ae.bd}),ei=async()=>{await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/getpricinglist/?tenantid=").concat(tt)).then((e=>{console.log("getpricinglist",e),e.data.status&&st(e.data.details)})).catch((e=>{console.log(e)}))};(0,s.useEffect)((()=>{tt&&ei()}),[tt]);(0,s.useEffect)((()=>{tt&&(async e=>{try{let t=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantpricing/?tenantid=").concat(e));console.log("tenantPricing",t.data.details),setTenanatPricing(t.data.details)}catch(t){console.log("fetchTenanatPricing",t)}})(tt)}),[tt]);const ti=async e=>{let t;He(!0),t=-1==e?{tenantid:tt,approved:1}:{tenantid:e,status:"active"===ot?"InActive":"Active"},await r.A.put("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/update"),t).then((e=>{e.data.status&&(Ot(0==Ge?"Inactivated Successfully":1==Ge?"Approved Successfully":"Activate Successfully","success",2e3),Ut(),$t(),He(!1))})).catch((e=>{console.log(e),Ot(e.message,"error",1500),He(!1)}))},ii=async e=>{console.log("id",e);try{let t=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getapppricing/?applocationid=").concat(e));console.log("appPricingRes",t.data.details),ht(t.data.details)}catch(t){console.log("appPricingRes",t)}},ni=async()=>{He(!0),await r.A.post("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/createpricing"),{tenantpricingid:0,applocationid:Be,pricingid:pt.pricingid,tenantid:tt,pricingdate:x()().format("YYYY-MM-DD HH:mm:ss"),configid:pt.configid,pricingtypeid:pt.pricingtypeid,slab:pt.slab,baseprice:+pt.baseprice,priceperkm:+pt.priceperkm,minkm:+pt.minkm,maxkm:+pt.maxkm,orders:+pt.minorder,othercharges:0}).then((e=>{e.data.status&&((0,h.M8)("Price Created Successfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),Mt(),gt({}),ti(-1),ei())})).catch((e=>{console.log(e)}))},si=Re[null===(e=Ye[Ge])||void 0===e?void 0:e.status]||Re.active;return(0,me.jsxs)(me.Fragment,{children:[(Gt||Qt||Oe)&&(0,me.jsx)(a.A,{}),(0,me.jsx)(pe.A,{title:"Tenants",subtitle:"Live \xb7 ".concat(qe||"All Zones"),live:!0,action:(0,me.jsx)(xe.A,{locations:Ve,locaName:qe,setAppId:Fe,setLocoName:Ne,setPage:Wt,pill:!0,accentColor:"#662582",icon:(0,me.jsx)(ae.HPi,{size:14}),placeholder:"Select Zone",paperComponent:_e,sx:{width:{xs:"100%",sm:280},zIndex:100}})}),(0,me.jsx)(v.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:Le.map(((e,t)=>{var i;const n=e.icon,s=null!==(i=null===Zt||void 0===Zt?void 0:Zt[e.countKey])&&void 0!==i?i:0;return(0,me.jsx)(v.Ay,{item:!0,xs:12,sm:4,children:(0,me.jsx)(y.A,{onClick:()=>{t>=0&&Rt(0,t)},sx:{cursor:"pointer",height:"100%"},children:(0,me.jsx)(ge.A,{title:e.label,value:null!==s&&void 0!==s?s:0,icon:(0,me.jsx)(n,{size:20}),color:0===t?"#662582":e.color,loading:Qt})})},e.key)}))}),(0,me.jsx)(m.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:fe/8,borderTopRightRadius:fe/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:we,borderBottom:0,background:"#fff"},children:(0,me.jsxs)(S.A,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:1.5,sx:{flexWrap:"wrap-reverse"},children:[(0,me.jsx)(S.A,{direction:"row",spacing:.75,sx:{flex:1,overflowX:"auto",py:.5,px:.25,"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-thumb":{backgroundColor:we,borderRadius:4}},children:Ye.map(((e,t)=>{var i;const n=Re[e.status],s=n.icon,o=Ge===t,r=null!==(i=null===Zt||void 0===Zt?void 0:Zt[e.countKey])&&void 0!==i?i:0;return(0,me.jsxs)(y.A,{onClick:()=>{rt(e.status),Rt(0,t)},sx:{display:"inline-flex",alignItems:"center",gap:{xs:.625,md:.875},pl:.5,pr:{xs:1,md:1.25},py:.5,flexShrink:0,cursor:"pointer",borderRadius:"10px",border:"1px solid ".concat(o?n.color:"#e2e8f0"),bgcolor:o?n.color:"#fff",color:o?"#fff":"#64748b",fontWeight:600,boxShadow:"none",transition:"background-color 0.15s, border-color 0.15s, color 0.15s","&:hover":{borderColor:o?n.color:"#cbd5e1",bgcolor:o?n.color:"#f8fafc"}},children:[(0,me.jsx)(f.A,{sx:{width:{xs:22,md:26},height:{xs:22,md:26},bgcolor:o?"rgba(255,255,255,0.22)":Ie(n.color),color:o?"#fff":n.color},children:(0,me.jsx)(s,{size:13})}),(0,me.jsx)(w.A,{variant:"caption",sx:{fontWeight:600,fontSize:{xs:11.5,md:13},lineHeight:1},children:n.label}),(0,me.jsx)(y.A,{sx:{minWidth:{xs:22,md:26},height:{xs:18,md:22},px:.625,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:999,fontSize:{xs:10,md:11},fontWeight:700,bgcolor:o?"rgba(255,255,255,0.22)":"#f8fafc",color:o?"#fff":"#64748b",border:"none"},children:Qt?(0,me.jsx)(C.A,{variant:"text",width:14,height:10}):r})]},e.status)}))}),(0,me.jsx)(y.A,{sx:{width:{xs:"100%",sm:240,lg:280},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,me.jsx)(he.A,{value:i,onChange:d,onDebouncedChange:be,sx:{m:0,width:"100%",borderRadius:999,bgcolor:We("#662582"),"& fieldset":{borderColor:Me("#662582"),borderWidth:1.5},"&:hover fieldset":{borderColor:"#662582"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:2},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(Pe("#662582"))}}})})]})}),(0,me.jsxs)(m.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:fe/8,borderBottomRightRadius:fe/8,border:"1px solid",borderColor:we,overflow:"hidden",background:"#fff"},children:[(0,me.jsx)(k.A,{sx:{display:{xs:"none",md:"block"},maxHeight:{xs:"calc(100vh - 220px)",md:"calc(100vh - 190px)"},"&::-webkit-scrollbar":{width:"10px",height:"10px"},"&::-webkit-scrollbar-thumb":{backgroundColor:Me("#662582"),borderRadius:"8px","&:hover":{backgroundColor:"#662582"}},"&::-webkit-scrollbar-track":{backgroundColor:ke}},children:(0,me.jsxs)(z.A,{stickyHeader:!0,sx:{minWidth:{xs:720,md:960}},children:[(0,me.jsx)(W.A,{children:(0,me.jsxs)(I.A,{sx:{"& th":{backgroundColor:ke,color:ye,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(we),py:{xs:1,md:1.25},px:{xs:1,md:2}}},children:[(0,me.jsx)(P.A,{children:"#"}),(0,me.jsx)(P.A,{children:"Status"}),(0,me.jsx)(P.A,{children:"Client"}),(0,me.jsx)(P.A,{children:"Contact"}),(0,me.jsx)(P.A,{children:"Address"}),(0,me.jsx)(P.A,{align:"right",children:"Actions"})]})}),(0,me.jsxs)(M.A,{children:[Gt&&(0,me.jsx)(je.r,{}),0!=(null===Jt||void 0===Jt?void 0:Jt.length)||Oe?null===Jt||void 0===Jt?void 0:Jt.map(((e,t)=>{var i;const l=Re[0===Ge?"active":1===Ge?"pending":"inactive"],a=l.icon;return(0,me.jsxs)(s.Fragment,{children:[(0,me.jsxs)(I.A,{sx:{cursor:"pointer",transition:"background-color 0.15s","& td":{borderBottom:"1px solid ".concat(Ce),py:{xs:1,md:1.5},px:{xs:1,md:2}},"&:hover":{backgroundColor:ke}},children:[(0,me.jsx)(P.A,{children:(0,me.jsx)(w.A,{variant:"caption",sx:{fontWeight:700,color:Se},children:String(t+1+zt*ze).padStart(2,"0")})}),(0,me.jsx)(P.A,{children:(0,me.jsxs)(S.A,{direction:"row",alignItems:"center",spacing:.5,sx:{display:"inline-flex",pl:.5,pr:1,py:.25,borderRadius:999,bgcolor:We(l.color),border:"1px solid ".concat(Me(l.color)),color:l.color},children:[(0,me.jsx)(Ee,{color:l.color,size:20,children:(0,me.jsx)(a,{size:12})}),(0,me.jsx)(w.A,{variant:"caption",sx:{fontWeight:800,fontSize:11,lineHeight:1},children:l.label})]})}),(0,me.jsx)(P.A,{children:(0,me.jsxs)(S.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,me.jsx)(Ee,{color:"#662582",size:32,children:(0,me.jsx)(ae.Azs,{size:16})}),(0,me.jsxs)(S.A,{children:[(0,me.jsx)(w.A,{variant:"subtitle2",sx:{fontWeight:700,color:ve,whiteSpace:"nowrap"},children:e.tenantname}),(0,me.jsxs)(w.A,{variant:"caption",sx:{color:ye},children:["ID #",e.tenantid]})]})]})}),(0,me.jsx)(P.A,{children:(0,me.jsxs)(S.A,{children:[(0,me.jsx)(w.A,{variant:"subtitle2",sx:{fontWeight:700,color:ve,whiteSpace:"nowrap"},children:e.primarycontact||"\u2014"}),(0,me.jsx)(w.A,{variant:"caption",sx:{color:ye},children:e.primaryemail||"\u2014"})]})}),(0,me.jsx)(P.A,{sx:{maxWidth:280},children:(0,me.jsx)(R.A,{title:e.address||"",placement:"top",children:(0,me.jsx)(w.A,{variant:"caption",sx:{color:ye,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.address||"\u2014"})})}),(0,me.jsx)(P.A,{align:"right",children:(0,me.jsxs)(S.A,{direction:"row",spacing:.75,justifyContent:"flex-end",children:[0==Ge&&(0,me.jsx)(R.A,{title:"Inactivate",placement:"top",children:(0,me.jsx)(Y.A,{size:"small",sx:{bgcolor:Ie("#ef4444"),color:"#ef4444",border:"1px solid ".concat(Me("#ef4444")),"&:hover":{bgcolor:"#ef4444",color:"#fff"}},onClick:()=>{at(e),it(e.tenantid),Fe(e.applocationid),setTimeout((()=>{ti(e.tenantid)}),100)},children:(0,me.jsx)(Z.A,{style:{fontSize:14}})})}),1==Ge&&(0,me.jsx)(R.A,{title:"Approve",placement:"top",children:(0,me.jsx)(Y.A,{size:"small",sx:{bgcolor:Ie("#f59e0b"),color:"#f59e0b",border:"1px solid ".concat(Me("#f59e0b")),"&:hover":{bgcolor:"#f59e0b",color:"#fff"}},onClick:()=>{at(e),dt(!0),it(e.tenantid),Fe(e.applocationid),ii(e.applolcationid)},children:(0,me.jsx)(Q.A,{style:{fontSize:14}})})}),2==Ge&&(0,me.jsx)(R.A,{title:"Activate",placement:"top",children:(0,me.jsx)(Y.A,{size:"small",sx:{bgcolor:Ie("#10b981"),color:"#10b981",border:"1px solid ".concat(Me("#10b981")),"&:hover":{bgcolor:"#10b981",color:"#fff"}},onClick:()=>{at(e),it(e.tenantid),Fe(e.applocationid),setTimeout((()=>{ti(e.tenantid)}),100)},children:(0,me.jsx)(se.yjt,{style:{fontSize:14}})})}),(0,me.jsx)(R.A,{title:_t===t?"Hide details":"View details",placement:"top",children:(0,me.jsx)(Y.A,{size:"small",sx:{bgcolor:_t===t?"#662582":Ie("#662582"),color:_t===t?"#fff":"#662582",border:"1px solid ".concat(Me("#662582")),"&:hover":{bgcolor:"#662582",color:"#fff"}},onClick:()=>{at(e),Dt(t),Tt(-1),it(e.tenantid)},children:_t===t?(0,me.jsx)($.A,{style:{fontSize:14}}):(0,me.jsx)(ee.A,{style:{fontSize:14}})})}),1!==Ge&&(0,me.jsx)(R.A,{title:Kt===t?"Close":"Edit",placement:"top",children:(0,me.jsx)(Y.A,{size:"small",sx:{bgcolor:Kt===t?"#8b5cf6":Ie("#8b5cf6"),color:Kt===t?"#fff":"#8b5cf6",border:"1px solid ".concat(Me("#8b5cf6")),"&:hover":{bgcolor:"#8b5cf6",color:"#fff"}},onClick:()=>{var i;at(e),i=t,Tt((e=>e===i?null:i)),Et(-1),it(e.tenantid),Fe(e.applocationid)},children:Kt===t?(0,me.jsx)(te.A,{style:{fontSize:14}}):(0,me.jsx)(ie.A,{style:{fontSize:14}})})})]})})]}),_t===t&&(0,me.jsx)(I.A,{children:(0,me.jsx)(P.A,{sx:{"&:hover":{backgroundColor:"white !important"}},colSpan:15,children:(0,me.jsx)(L.A,{in:open,timeout:800,easing:"ease-in-out",mountOnEnter:!0,unmountOnExit:!1,sx:{"& .MuiCollapse-wrapperInner":{transition:"transform 800ms ease, opacity 800ms ease"}},children:(0,me.jsxs)(o.A,{content:!1,sx:{transform:open?"translateY(0)":"translateY(-8px)",opacity:open?1:0},title:(0,me.jsxs)(_.A,{sx:{bgcolor:"primary.lighter"},value:Ze,onChange:Yt,"aria-label":"basic tabs example",children:[(0,me.jsx)(E.A,{label:" Details",icon:(0,me.jsx)(oe.gA5,{style:{marginRight:5,fontSize:"20px",marginBottom:-1}}),sx:{alignItems:"center",flexDirection:"row"}}),(0,me.jsx)(E.A,{label:"Pricing",icon:(0,me.jsx)(re.FA6,{style:{marginRight:5,fontSize:"20px",marginBottom:-1}}),sx:{alignItems:"center",flexDirection:"row"}})]}),children:[0==Ze&&(0,me.jsxs)(v.Ay,{container:!0,sx:{m:1},spacing:2.5,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,xs:6,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(le.JXP,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsxs)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:[(0,me.jsx)(w.A,{align:"left",children:e.tenantname}),(0,me.jsx)(w.A,{align:"left",variant:"caption",color:"secondary",children:"Tenant"})]})]})}),(0,me.jsx)(v.Ay,{item:!0,xs:6,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(le.JXP,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsxs)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:[(0,me.jsx)(w.A,{align:"left",children:e.firstname}),(0,me.jsx)(w.A,{align:"left",variant:"caption",color:"secondary",children:"Contact Person"})]})]})}),(0,me.jsx)(v.Ay,{item:!0,xs:6,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(le.wnV,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsxs)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:[(0,me.jsx)(w.A,{align:"left",children:e.primarycontact}),(0,me.jsx)(w.A,{align:"left",variant:"caption",color:"secondary",children:"Phone"})]})]})}),(0,me.jsx)(v.Ay,{item:!0,xs:6,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(ce.h2r,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsxs)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:[(0,me.jsx)(w.A,{align:"left",children:e.primaryemail}),(0,me.jsx)(w.A,{align:"left",variant:"caption",color:"secondary",children:"E-Mail"})]})]})}),(0,me.jsx)(v.Ay,{item:!0,xs:12,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(se.Y9o,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsxs)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:[(0,me.jsx)(w.A,{align:"left",children:e.address}),(0,me.jsx)(w.A,{align:"left",variant:"caption",color:"secondary",children:"Address"})]})]})}),(0,me.jsx)(v.Ay,{item:!0,xs:12,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(re.BUW,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsxs)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:[(0,me.jsx)(w.A,{align:"left",children:e.city}),(0,me.jsx)(w.A,{align:"left",variant:"caption",color:"secondary",children:"City"})]}),(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(ae.kci,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsxs)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:[(0,me.jsx)(w.A,{align:"left",variant:"subtitle1",children:e.postcode}),(0,me.jsx)(w.A,{align:"left",variant:"caption",color:"secondary",children:"PostCode"})]})]})}),(0,me.jsx)(v.Ay,{item:!0,xs:12,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(oe.J0X,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsxs)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:[(0,me.jsx)(w.A,{align:"left",children:e.latitude}),(0,me.jsx)(w.A,{align:"left",variant:"caption",color:"secondary",children:"Latitude"})]}),(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(oe.u3h,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsxs)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:[(0,me.jsx)(w.A,{align:"left",variant:"subtitle1",children:e.longitude}),(0,me.jsx)(w.A,{align:"left",variant:"caption",color:"secondary",children:"Longitude"})]})]})})]}),1==Ze&&(0,me.jsx)(K.A,{variant:"outlined",sx:{},children:(0,me.jsx)(k.A,{children:(0,me.jsxs)(z.A,{children:[(0,me.jsx)(W.A,{children:(0,me.jsxs)(I.A,{children:[(0,me.jsx)(P.A,{children:"#"}),(0,me.jsx)(P.A,{children:"Date"}),(0,me.jsx)(P.A,{children:"Slab"}),(0,me.jsx)(P.A,{children:"Base Price"}),(0,me.jsx)(P.A,{children:"Min Kms"}),(0,me.jsx)(P.A,{children:"Price/Km"}),(0,me.jsx)(P.A,{children:"Other Charges"})]})}),(0,me.jsx)(M.A,{children:0===(null===nt||void 0===nt?void 0:nt.length)?(0,me.jsx)(I.A,{children:(0,me.jsx)(P.A,{colSpan:7,align:"center",children:(0,me.jsx)(c.A,{description:"No Pricing List"})})}):nt.map(((e,t)=>(0,me.jsxs)(I.A,{sx:{bgcolor:"white"},children:[(0,me.jsx)(P.A,{children:t+1}),(0,me.jsx)(P.A,{children:x()(e.pricingdate).format("DD-MM-YYYY")}),(0,me.jsx)(P.A,{children:e.slab}),(0,me.jsx)(P.A,{children:e.baseprice}),(0,me.jsx)(P.A,{children:e.minkm}),(0,me.jsx)(P.A,{children:e.priceperkm}),(0,me.jsx)(P.A,{children:e.othercharges})]},e.id||t)))})]})})},"left - card")]})})})}),Kt===t&&(0,me.jsx)(I.A,{children:(0,me.jsx)(P.A,{sx:{backgroundColor:"white!important","&:hover":{backgroundColor:"white!important"}},colSpan:15,children:(0,me.jsxs)(o.A,{content:!1,title:(0,me.jsxs)(y.A,{sx:{bgcolor:"primary.lighter",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,me.jsxs)(_.A,{value:$e,onChange:Lt,"aria-label":"basic tabs example",children:[(0,me.jsx)(E.A,{label:"Edit Details",icon:(0,me.jsx)(oe.gA5,{style:{marginRight:5,fontSize:"20px",marginBottom:-1}}),sx:{alignItems:"center",flexDirection:"row"}}),1!==Ge&&(0,me.jsx)(E.A,{label:"Edit Pricing",icon:(0,me.jsx)(re.FA6,{style:{marginRight:5,fontSize:"20px",marginBottom:-1}}),sx:{alignItems:"center",flexDirection:"row"},onClick:()=>{ii(lt.applolcationid)}})]}),1==$e&&(0,me.jsx)(T.A,{variant:"contained",color:"error",size:"smaller",startIcon:(0,me.jsx)(ie.A,{size:"small"}),sx:{mr:1.8,height:"30px"},onClick:()=>{dt(!0)},children:"Add Pricing"})]}),children:[0==$e&&(0,me.jsx)(K.A,{variant:"outlined",sx:{m:2},children:(0,me.jsx)(v.Ay,{container:!0,spacing:0,children:(0,me.jsx)(v.Ay,{item:!0,xs:12,children:(0,me.jsxs)(K.A,{variant:"outlined",children:[(0,me.jsx)(D.A,{children:(0,me.jsxs)(v.Ay,{container:!0,spacing:2.5,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,xs:6,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(de.PY8,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsx)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:(0,me.jsx)(O.A,{fullWidth:!0,id:"outlined-basic",label:"Tenant Name",defaultValue:lt.tenantname,variant:"outlined",onChange:e=>{kt((0,n.A)((0,n.A)({},Ct),{},{tenantname:e.target.value}))},sx:{mt:2}})})]})})," ",(0,me.jsx)(v.Ay,{item:!0,xs:6,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(le.JXP,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsx)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:(0,me.jsx)(O.A,{fullWidth:!0,id:"outlined-basic",label:"Contact Person",defaultValue:e.firstname,variant:"outlined",onChange:e=>{kt((0,n.A)((0,n.A)({},Ct),{},{firstname:e.target.value}))},sx:{mt:2}})})]})}),(0,me.jsx)(v.Ay,{item:!0,xs:6,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(le.wnV,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsx)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:(0,me.jsx)(O.A,{inputProps:{maxLength:10},fullWidth:!0,id:"outlined-basic",label:"Contact Number",defaultValue:lt.primarycontact,variant:"outlined",onChange:e=>{kt((0,n.A)((0,n.A)({},Ct),{},{primarycontact:e.target.value}))},sx:{mt:2}})})]})}),(0,me.jsx)(v.Ay,{item:!0,xs:6,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(ce.h2r,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsx)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:(0,me.jsx)(O.A,{fullWidth:!0,id:"outlined-basic",label:"E-Mail",defaultValue:lt.primaryemail,variant:"outlined",onChange:e=>{kt((0,n.A)((0,n.A)({},Ct),{},{primaryemail:e.target.value}))},sx:{mt:2}})})]})}),(0,me.jsx)(v.Ay,{item:!0,xs:12,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(se.Y9o,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsx)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:(0,me.jsx)(H.A,{id:"google-map-demo",sx:{},fullWidth:!0,label:"Address",getOptionLabel:e=>"string"===typeof e?e:e.description,filterOptions:e=>e,options:qt,autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,defaultValue:lt.address,noOptionsText:"No locations",onChange:(e,t)=>{Nt(t?[t,...qt]:qt),Je(t||""),console.log("newValue",t),mt((null===t||void 0===t?void 0:t.description)||""),kt((0,n.A)((0,n.A)({},Ct),{},{address:(null===t||void 0===t?void 0:t.description)||""}))},onInputChange:(e,t)=>{Ft(t)},renderInput:e=>(0,me.jsx)(O.A,(0,n.A)((0,n.A)({},e),{},{fullWidth:!0,label:"Address",variant:"outlined"})),renderOption:(e,t)=>{const i=t.structured_formatting.main_text_matched_substrings||[],s=A()(t.structured_formatting.main_text,i.map((e=>[e.offset,e.offset+e.length])));return(0,me.jsx)("li",(0,n.A)((0,n.A)({},e),{},{children:(0,me.jsxs)(v.Ay,{container:!0,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,sx:{display:"flex",width:44},children:(0,me.jsx)(g.A,{sx:{color:"text.secondary"}})}),(0,me.jsxs)(v.Ay,{item:!0,sx:{width:"calc(100% - 44px)",wordWrap:"break-word"},children:[s.map(((e,t)=>(0,me.jsx)(y.A,{component:"span",sx:{fontWeight:e.highlight?"bold":"regular"},children:e.text},t))),(0,me.jsx)(w.A,{variant:"body2",color:"text.secondary",children:t.structured_formatting.secondary_text})]})]})}))}})})]})}),(0,me.jsx)(v.Ay,{item:!0,xs:12,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(re.BUW,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsx)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:(0,me.jsx)(O.A,{fullWidth:!0,required:!0,id:"outlined-required",label:"City",onChange:e=>{kt((0,n.A)((0,n.A)({},Ct),{},{city:e.target.value}))},value:""==ft?lt.city:ft})}),(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(ae.kci,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsx)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:(0,me.jsx)(O.A,{fullWidth:!0,required:!0,label:" PostCode",id:"outlined-required",onChange:e=>{kt((0,n.A)((0,n.A)({},Ct),{},{postcode:e.target.value}))},value:""==vt?lt.postcode:vt})})]})}),(0,me.jsx)(v.Ay,{item:!0,xs:12,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(oe.J0X,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsx)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:(0,me.jsx)(O.A,{variant:"outlined",readonly:!0,label:"Latitude",fullWidth:!0,value:St.lat,sx:{cursor:"not-allowed"}})}),(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(oe.u3h,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsx)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:(0,me.jsx)(O.A,{label:"Longitude",readonly:!0,variant:"outlined",fullWidth:!0,value:St.lng})})]})})]})}),(0,me.jsx)(B.A,{sx:{display:"flex",justifyContent:"end",mr:3,mb:2},children:(0,me.jsx)(T.A,{variant:"contained",size:"medium",onClick:()=>{(async()=>{try{const e=(0,n.A)((0,n.A)({},Ct),{},{tenantid:tt});console.log("updateClient",e);const t=await r.A.put("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/update"),e);console.log("updateClient",t.data.message),t.data.status&&Ot(t.data.message,"success",1500),Ut(),$t()}catch(e){console.log("updateClient",e)}})()},children:"Update Client"})})]})})})},"left - card"),1==$e&&(0,me.jsx)(K.A,{variant:"outlined",sx:{},children:(0,me.jsx)(k.A,{children:(0,me.jsxs)(z.A,{children:[(0,me.jsx)(W.A,{children:(0,me.jsxs)(I.A,{children:[(0,me.jsx)(P.A,{children:"#"}),(0,me.jsx)(P.A,{children:"Date"}),(0,me.jsx)(P.A,{children:"Slab"}),(0,me.jsx)(P.A,{children:"Base Price"}),(0,me.jsx)(P.A,{children:"Min Kms"}),(0,me.jsx)(P.A,{children:"Price/Km"}),(0,me.jsx)(P.A,{children:"Other Charges"})]})}),(0,me.jsx)(M.A,{children:0===(null===nt||void 0===nt?void 0:nt.length)?(0,me.jsx)(I.A,{children:(0,me.jsx)(P.A,{colSpan:7,align:"center",children:(0,me.jsx)(c.A,{})})}):nt.map(((e,t)=>(0,me.jsxs)(I.A,{sx:{bgcolor:"white"},children:[(0,me.jsx)(P.A,{children:t+1}),(0,me.jsx)(P.A,{children:x()(e.pricingdate).format("DD-MM-YYYY")}),(0,me.jsx)(P.A,{children:e.slab}),(0,me.jsx)(P.A,{children:e.baseprice}),(0,me.jsx)(P.A,{children:e.minkm}),(0,me.jsx)(P.A,{children:e.priceperkm}),(0,me.jsx)(P.A,{children:e.othercharges})]},e.id||t)))})]})})},"left - card")]})})})]},null!==(i=e.tenantid)&&void 0!==i?i:t)})):(0,me.jsx)(I.A,{children:(0,me.jsx)(P.A,{colSpan:6,sx:{py:6},children:(0,me.jsxs)(S.A,{alignItems:"center",spacing:1.5,children:[(0,me.jsx)(f.A,{sx:{width:64,height:64,bgcolor:Ie("#94a3b8"),color:Se},children:(0,me.jsx)(ae.Itr,{size:28})}),(0,me.jsx)(w.A,{variant:"subtitle1",sx:{fontWeight:700,color:ve},children:"No tenants to show"}),(0,me.jsx)(w.A,{variant:"caption",sx:{color:ye},children:"No ".concat(si.label.toLowerCase()," tenants for this filter.")})]})})})]})]})}),De&&(0,me.jsxs)(U.nV,{scroll:!0,sx:{display:{xs:"flex",md:"none"}},children:[Gt&&(0,me.jsxs)(S.A,{alignItems:"center",sx:{py:4},children:[(0,me.jsx)(C.A,{variant:"rounded",width:"100%",height:96,animation:"wave"}),(0,me.jsx)(C.A,{variant:"rounded",width:"100%",height:96,animation:"wave",sx:{mt:1.25}})]}),0!=(null===Jt||void 0===Jt?void 0:Jt.length)||Oe?null===Jt||void 0===Jt?void 0:Jt.map(((e,t)=>{var i;const n=Re[0===Ge?"active":1===Ge?"pending":"inactive"],s=n.icon,o=_t===t;return(0,me.jsxs)(U.pg,{accent:n.color,header:(0,me.jsxs)(S.A,{direction:"row",alignItems:"flex-start",justifyContent:"space-between",spacing:1,children:[(0,me.jsxs)(S.A,{direction:"row",alignItems:"center",spacing:1,sx:{minWidth:0},children:[(0,me.jsx)(Ee,{color:"#662582",size:36,children:(0,me.jsx)(ae.Azs,{size:18})}),(0,me.jsxs)(S.A,{sx:{minWidth:0},children:[(0,me.jsx)(w.A,{variant:"subtitle2",sx:{fontWeight:800,color:ve},noWrap:!0,children:e.tenantname}),(0,me.jsxs)(S.A,{direction:"row",alignItems:"center",spacing:.5,sx:{display:"inline-flex",mt:.25,pl:.25,pr:.875,py:.125,borderRadius:999,bgcolor:We(n.color),border:"1px solid ".concat(Me(n.color)),color:n.color,alignSelf:"flex-start"},children:[(0,me.jsx)(Ee,{color:n.color,size:16,children:(0,me.jsx)(s,{size:10})}),(0,me.jsx)(w.A,{sx:{fontWeight:800,fontSize:10,lineHeight:1},children:n.label})]})]})]}),(0,me.jsxs)(S.A,{direction:"row",spacing:.5,sx:{flexShrink:0},children:[0==Ge&&(0,me.jsx)(Y.A,{size:"small",sx:{bgcolor:Ie("#ef4444"),color:"#ef4444",border:"1px solid ".concat(Me("#ef4444")),"&:hover":{bgcolor:"#ef4444",color:"#fff"}},onClick:()=>{at(e),it(e.tenantid),Fe(e.applocationid),setTimeout((()=>{ti(e.tenantid)}),100)},children:(0,me.jsx)(Z.A,{style:{fontSize:14}})}),1==Ge&&(0,me.jsx)(Y.A,{size:"small",sx:{bgcolor:Ie("#f59e0b"),color:"#f59e0b",border:"1px solid ".concat(Me("#f59e0b")),"&:hover":{bgcolor:"#f59e0b",color:"#fff"}},onClick:()=>{at(e),dt(!0),it(e.tenantid),Fe(e.applocationid),ii(e.applolcationid)},children:(0,me.jsx)(Q.A,{style:{fontSize:14}})}),2==Ge&&(0,me.jsx)(Y.A,{size:"small",sx:{bgcolor:Ie("#10b981"),color:"#10b981",border:"1px solid ".concat(Me("#10b981")),"&:hover":{bgcolor:"#10b981",color:"#fff"}},onClick:()=>{at(e),it(e.tenantid),Fe(e.applocationid),setTimeout((()=>{ti(e.tenantid)}),100)},children:(0,me.jsx)(se.yjt,{style:{fontSize:14}})}),(0,me.jsx)(Y.A,{size:"small",sx:{bgcolor:o?"#662582":Ie("#662582"),color:o?"#fff":"#662582",border:"1px solid ".concat(Me("#662582")),"&:hover":{bgcolor:"#662582",color:"#fff"}},onClick:()=>{at(e),Dt(t),Tt(-1),it(e.tenantid)},children:o?(0,me.jsx)($.A,{style:{fontSize:14}}):(0,me.jsx)(ee.A,{style:{fontSize:14}})}),1!==Ge&&(0,me.jsx)(Y.A,{size:"small",sx:{bgcolor:Ie("#8b5cf6"),color:"#8b5cf6",border:"1px solid ".concat(Me("#8b5cf6")),"&:hover":{bgcolor:"#8b5cf6",color:"#fff"}},onClick:()=>{at(e),it(e.tenantid),Fe(e.applocationid),ii(e.applolcationid),dt(!0)},children:(0,me.jsx)(ie.A,{style:{fontSize:14}})})]})]}),children:[(0,me.jsxs)(U.FG,{children:[(0,me.jsx)(U.pY,{label:"Tenant ID",value:"#".concat(e.tenantid)}),(0,me.jsx)(U.pY,{label:"Contact",value:e.primarycontact||"\u2014"}),(0,me.jsx)(U.pY,{label:"Email",value:e.primaryemail||"\u2014",full:!0}),(0,me.jsx)(U.pY,{label:"Address",full:!0,children:(0,me.jsx)(w.A,{sx:{fontSize:13,fontWeight:600,color:ve},children:e.address||"\u2014"})})]}),o&&(0,me.jsx)(y.A,{sx:{mt:1.25,pt:1.25,borderTop:"1px solid ".concat(Ce)},children:(0,me.jsxs)(U.FG,{children:[(0,me.jsx)(U.pY,{label:"Contact Person",value:e.firstname||"\u2014"}),(0,me.jsx)(U.pY,{label:"City",value:e.city||"\u2014"}),(0,me.jsx)(U.pY,{label:"Postcode",value:e.postcode||"\u2014"}),(0,me.jsx)(U.pY,{label:"Latitude",value:e.latitude||"\u2014"}),(0,me.jsx)(U.pY,{label:"Longitude",value:e.longitude||"\u2014"})]})})]},null!==(i=e.tenantid)&&void 0!==i?i:t)})):(0,me.jsxs)(S.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,me.jsx)(f.A,{sx:{width:64,height:64,bgcolor:Ie("#94a3b8"),color:Se},children:(0,me.jsx)(ae.Itr,{size:28})}),(0,me.jsx)(w.A,{variant:"subtitle1",sx:{fontWeight:700,color:ve},children:"No tenants to show"}),(0,me.jsx)(w.A,{variant:"caption",sx:{color:ye,textAlign:"center"},children:"No ".concat(si.label.toLowerCase()," tenants for this filter.")})]})]}),!i&&(null===Jt||void 0===Jt?void 0:Jt.length)>0&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(F.A,{sx:{borderColor:we}}),(0,me.jsx)(q.A,{rowsPerPageOptions:[5,10,25,50,100],component:"div",count:0==Ge?null===Zt||void 0===Zt?void 0:Zt.active:1==Ge?null===Zt||void 0===Zt?void 0:Zt.pending:2==Ge?null===Zt||void 0===Zt?void 0:Zt.inactive:0,rowsPerPage:ze,page:zt,onPageChange:(e,t)=>{Wt(t)},onRowsPerPageChange:e=>{Ke(parseInt(e.target.value,10)),Wt(0)}})]})]}),(0,me.jsxs)(N.A,{fullWidth:!0,fullScreen:De,open:ct,onClose:Mt,scroll:"paper",maxWidth:"sm",TransitionComponent:ne.s,PaperProps:{sx:{borderRadius:{xs:0,sm:3}}},children:[(0,me.jsx)(V.A,{sx:{bgcolor:"#662582",color:"#fff",fontSize:"20px"},children:"Client Pricing - (".concat(lt.tenantname,")")}),(0,me.jsx)(X.A,{dividers:!0,children:(0,me.jsx)(o.A,{sx:{height:"100%"},children:(0,me.jsxs)(v.Ay,{container:!0,spacing:2.5,alignItems:"center",children:[(0,me.jsxs)(v.Ay,{item:!0,xs:12,sm:6,children:[(0,me.jsx)(J.A,{children:"Select Slab"}),(0,me.jsx)(H.A,{disablePortal:!0,id:"combo-box-demo",options:xt,getOptionLabel:e=>"".concat(e.slab),fullWidth:!0,selectOnFocus:!0,renderInput:e=>(0,me.jsx)(O.A,(0,n.A)((0,n.A)({},e),{},{label:"Slab"})),onChange:(e,t,i)=>{gt(t),console.log("pricing",t),At(!1),"clear"===i&&At(!0)}})]}),(0,me.jsxs)(v.Ay,{item:!0,xs:12,sm:6,children:[(0,me.jsx)(J.A,{children:"Base Price"}),(0,me.jsx)(O.A,{type:"number",fullWidth:!0,value:ut?0:pt.baseprice,onChange:e=>{gt((0,n.A)((0,n.A)({},pt),{},{baseprice:e.target.value}))}})]}),(0,me.jsxs)(v.Ay,{item:!0,xs:12,sm:6,children:[(0,me.jsx)(J.A,{children:"Price/Km"}),(0,me.jsx)(O.A,{type:"number",fullWidth:!0,value:ut?0:pt.priceperkm,onChange:e=>{gt((0,n.A)((0,n.A)({},pt),{},{priceperkm:e.target.value}))}})]}),(0,me.jsxs)(v.Ay,{item:!0,xs:12,sm:6,children:[(0,me.jsx)(J.A,{children:"Min Kms"}),(0,me.jsx)(O.A,{type:"number",fullWidth:!0,value:ut?0:pt.minkm,onChange:e=>{gt((0,n.A)((0,n.A)({},pt),{},{minkm:e.target.value}))}})]}),(0,me.jsxs)(v.Ay,{item:!0,xs:12,sm:6,children:[(0,me.jsx)(J.A,{children:"Max Kms"}),(0,me.jsx)(O.A,{type:"number",fullWidth:!0,value:ut?0:pt.maxkm,onChange:e=>{gt((0,n.A)((0,n.A)({},pt),{},{maxkm:e.target.value}))}})]}),(0,me.jsxs)(v.Ay,{item:!0,xs:12,sm:6,children:[(0,me.jsx)(J.A,{children:"Min Orders"}),(0,me.jsx)(O.A,{type:"number",fullWidth:!0,value:ut?0:pt.minorder,onChange:e=>{gt((0,n.A)((0,n.A)({},pt),{},{minorder:e.target.value}))}})]})]})})}),(0,me.jsx)(G.A,{children:(0,me.jsx)(v.Ay,{container:!0,children:(0,me.jsx)(v.Ay,{item:!0,xs:12,children:(0,me.jsxs)(S.A,{direction:"row",justifyContent:"flex-end",spacing:2,sx:{p:2},children:[1==$e&&(0,me.jsx)(T.A,{disabled:ut,variant:"contained",onClick:()=>{ni()},children:"Update Pricing"}),1==Ge&&(0,me.jsx)(T.A,{disabled:ut,variant:"contained",onClick:()=>{ni()},children:"Save"}),(0,me.jsx)(T.A,{variant:"contained",onClick:()=>{At(!0),setTimeout((()=>{Mt()}),100),gt({})},color:"error",children:"Cancel"})]})})})})]})]})}},96646:(e,t,i)=>{i.d(t,{r:()=>a});var n=i(50755),s=i(1596),o=i(91834),r=i(71392),l=i(65908);const a=e=>{let{rowsPerPage:t=5,col:i=1}=e;return(0,l.jsx)(l.Fragment,{children:Array.from(new Array(t)).map(((e,t)=>(0,l.jsxs)(n.A,{children:[(0,l.jsx)(s.A,{children:(0,l.jsx)(o.A,{variant:"circular",width:24,height:24})}),(0,l.jsx)(s.A,{children:(0,l.jsx)(o.A,{variant:"text",width:30})}),Array.from({length:i}).map(((e,t)=>(0,l.jsx)(s.A,{children:(0,l.jsxs)(r.A,{spacing:.5,children:[(0,l.jsx)(o.A,{variant:"text",width:100}),(0,l.jsx)(o.A,{variant:"text",width:80})]})},t))),(0,l.jsx)(s.A,{children:(0,l.jsx)(o.A,{variant:"text",width:150})}),(0,l.jsx)(s.A,{children:(0,l.jsx)(o.A,{variant:"rounded",width:60,height:24})}),(0,l.jsx)(s.A,{align:"center",children:(0,l.jsxs)(r.A,{direction:"row",spacing:1,justifyContent:"flex-end",children:[(0,l.jsx)(o.A,{variant:"circular",width:28,height:28}),(0,l.jsx)(o.A,{variant:"circular",width:28,height:28})]})})]},t)))})}}}]); \ No newline at end of file diff --git a/build/static/js/1504.d7a3fb13.chunk.js b/build/static/js/1504.d7a3fb13.chunk.js deleted file mode 100644 index 79f7f20..0000000 --- a/build/static/js/1504.d7a3fb13.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[1504],{23787:(e,t,i)=>{i.d(t,{FG:()=>p,nV:()=>x,pY:()=>g,pg:()=>h});var n=i(89379),s=i(80045),o=i(93230),r=i(2235),l=i(16491),a=i(82053),c=i(44414);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:t,scroll:i=!1,onScroll:r,sx:l}=e,a=(0,s.A)(e,d);return(0,c.jsx)(o.A,(0,n.A)((0,n.A)({spacing:1.25,onScroll:r,sx:(0,n.A)((0,n.A)({p:1.5},i&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),l)},a),{},{children:t}))},h=e=>{let{accent:t="#662582",header:i,footer:s,selected:o=!1,onClick:a,children:d,sx:x}=e;return(0,c.jsxs)(r.A,{elevation:0,onClick:a,sx:(0,n.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:o?t:"#e2e8f0",background:o?"".concat(t,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,c.jsx)(l.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:t}}),(0,c.jsxs)(l.A,{sx:{p:1.5,pl:2},children:[i,d,s]})]})},p=e=>{let{children:t,columns:i=2,sx:s}=e;return(0,c.jsx)(l.A,{sx:(0,n.A)({display:"grid",gridTemplateColumns:"repeat(".concat(i,", minmax(0, 1fr))"),gap:1,mt:1.25},s),children:t})},g=e=>{let{label:t,value:i,children:n,full:s=!1,align:o="left"}=e;return(0,c.jsxs)(l.A,{sx:{gridColumn:s?"1 / -1":"auto",minWidth:0,textAlign:o},children:[(0,c.jsx)(a.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:t}),(0,c.jsx)(l.A,{sx:{mt:.25,minWidth:0},children:void 0!==n?n:(0,c.jsx)(a.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==i&&void 0!==i?i:"\u2014"})})]})}},27001:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(93230),s=i(16491),o=i(82053),r=i(44414);function l(e){let{title:t,subtitle:i,live:l=!1,action:a}=e;return(0,r.jsxs)(n.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,r.jsxs)(s.A,{sx:{minWidth:0},children:[(0,r.jsx)(o.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:t}),i&&(0,r.jsxs)(n.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[l&&(0,r.jsx)(s.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,r.jsx)(o.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:i})]})]}),a&&(0,r.jsx)(s.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:a})]})}},36803:(e,t,i)=>{i.d(t,{A:()=>x});var n=i(48089),s=i(50704),o=i(93230),r=i(16491),l=i(82053),a=i(82917),c=i(41413),d=i(44414);function x(e){let{title:t,value:i,icon:x,color:h="#662582",caption:p,loading:g=!1}=e;return(0,d.jsx)(n.A,{sx:{height:"100%"},children:(0,d.jsx)(s.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,d.jsxs)(o.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,d.jsxs)(r.A,{sx:{minWidth:0,flex:1},children:[(0,d.jsx)(l.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t}),g?(0,d.jsx)(a.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,d.jsx)(l.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:i}),p&&(0,d.jsx)(l.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:p})]}),x&&(0,d.jsx)(c.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(h,"14"),color:h,flexShrink:0},children:x})]})})})}},56311:(e,t,i)=>{i.d(t,{A:()=>p});var n=i(89379),s=i(9950),o=i(2660),r=i(2046),l=i(83274),a=i(25333),c=i(97125),d=i(7762),x=i(52097),h=i(44414);const p=e=>{let{value:t,onChange:i,onDebouncedChange:p,debounceTime:g=500,placeholder:u="Search (ctrl+k)",sx:A}=e;const j=(0,s.useRef)(null),[m]=(0,x.d7)(t,g);return(0,s.useEffect)((()=>{p&&p(m)}),[m,p]),(0,s.useEffect)((()=>{const e=e=>{var t;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(t=j.current)||void 0===t||t.focus());"Escape"===e.key&&document.activeElement===j.current&&j.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,h.jsx)(o.A,{sx:(0,n.A)({},A),inputRef:j,placeholder:u,autoComplete:"off",value:t,fullWidth:!0,onChange:e=>i(e.target.value),startAdornment:(0,h.jsx)(r.A,{position:"start",sx:{mr:-.5},children:(0,h.jsx)(c.A,{})}),endAdornment:(0,h.jsx)(l.A,{title:"Clear",children:(0,h.jsx)(a.A,{sx:{visibility:t?"visible":"hidden"},onClick:()=>i(""),children:(0,h.jsx)(d.A,{})})})})}},59212:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(89379),s=i(9950),o=i(93230),r=i(41413),l=i(77922),a=i(29925),c=i(26910),d=i(31222),x=i(44414);const h=(0,s.forwardRef)(((e,t)=>{let{setAppId:i,setLocoName:h,setPage:p,sx:g,textfeildSx:u,textfieldSx:A,pill:j=!1,accentColor:m="#6366f1",icon:f,placeholder:b="Select Zone",paperComponent:v}=e;const[y,S]=(0,s.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,s.useEffect)((()=>{0===y.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const t=await c.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(t.data.status){const e=[...t.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),S(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[y.length]);const w=e=>"".concat(m).concat(e),C=w("26"),k=w("18"),z=j?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(C)},"&.Mui-focused fieldset":{borderColor:m,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},W=j&&(0,x.jsx)(o.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,x.jsx)(r.A,{sx:{width:24,height:24,bgcolor:k,color:m,transition:"background-color 0.15s, color 0.15s"},children:f||(0,x.jsx)(d.HPi,{size:14})})});return(0,x.jsx)(l.A,{id:"location-autocomplete",options:y||[],getOptionLabel:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.locationname)&&void 0!==t?t:""},PaperComponent:v,sx:(0,n.A)({},g),onChange:(e,t,n)=>{"clear"===n?(null===i||void 0===i||i(0),null===h||void 0===h||h(""),null===p||void 0===p||p(0)):t&&(null===i||void 0===i||i(t.applocationid),null===h||void 0===h||h(t.locationname),null===p||void 0===p||p(0))},renderInput:e=>j?(0,x.jsx)(a.A,(0,n.A)((0,n.A)({},e),{},{inputRef:t,placeholder:b,InputProps:(0,n.A)((0,n.A)({},e.InputProps),{},{startAdornment:W}),sx:(0,n.A)((0,n.A)({},z),A||u||{})})):(0,x.jsx)(a.A,(0,n.A)((0,n.A)({},e),{},{inputRef:t,label:"Select Zones",sx:(0,n.A)({},A||u||{})}))})}))},71504:(e,t,i)=>{i.r(t),i.d(t,{default:()=>Ke});var n=i(89379),s=i(9950),o=i(50027),r=i(26910),l=i(14857),a=i(52351),c=i(13838),d=i(4159),x=i.n(d),h=i(8881),p=i(99459),g=i(28217),u=i(55471),A=i.n(u),j=i(21209),m=i(2235),f=i(41413),b=i(47223),v=i(60899),y=i(16491),S=i(93230),w=i(82053),C=i(82917),k=i(1320),z=i(15769),W=i(69780),I=i(9213),P=i(21671),M=i(34075),R=i(83274),Y=i(25333),L=i(33738),_=i(48159),E=i(84142),K=i(48089),T=i(10226),D=i(50704),O=i(29925),H=i(77922),B=i(25713),F=i(74745),q=i(6258),N=i(96583),V=i(40033),X=i(28170),J=i(29277),G=i(79739),U=i(23787),Z=i(9083),Q=i(8203),$=i(4729),ee=i(12678),te=i(94118),ie=i(24513),ne=i(37476),se=i(54826),oe=i(63057),re=i(85527),le=i(74930),ae=i(31222),ce=i(21636),de=i(39174),xe=i(59212),he=i(56311),pe=i(27001),ge=i(36803),ue=i(36150),Ae=i(81425),je=i(96646),me=i(44414);const fe=14,be="0 12px 32px rgba(15, 23, 42, 0.12)",ve="#0f172a",ye="#64748b",Se="#94a3b8",we="#e2e8f0",Ce="#f1f5f9",ke="#f8fafc",ze=(e,t)=>"".concat(e).concat(t),We=e=>ze(e,"08"),Ie=e=>ze(e,"18"),Pe=e=>ze(e,"26"),Me=e=>ze(e,"55"),Re={active:{label:"Active",color:"#10b981",icon:ae.mU9,statusKey:"active"},pending:{label:"Pending",color:"#f59e0b",icon:ae.tX0,statusKey:"pending"},inactive:{label:"Inactive",color:"#ef4444",icon:ae.uDv,statusKey:"inactive"}},Ye=[{status:"active",countKey:"active",tabStatus:"Active"},{status:"pending",countKey:"pending",tabStatus:"Pending"},{status:"inactive",countKey:"inactive",tabStatus:"InActive"}],Le=[{key:"active",label:"Active Tenants",color:"#10b981",icon:ae.cAP,countKey:"active"},{key:"pending",label:"Pending Approval",color:"#f59e0b",icon:ae.G6c,countKey:"pending"},{key:"inactive",label:"Inactive Tenants",color:"#ef4444",icon:ae.qiG,countKey:"inactive"}],_e=e=>(0,me.jsx)(m.A,(0,n.A)((0,n.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:be,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),Ee=e=>{let{color:t,selected:i,size:n=24,children:s}=e;return(0,me.jsx)(f.A,{sx:{width:n,height:n,bgcolor:i?t:Ie(t),color:i?"#fff":t,transition:"background-color 0.15s, color 0.15s"},children:s})},Ke=()=>{var e;const t=(0,s.useRef)(null),[i,d]=(0,s.useState)(""),[u,be]=(0,s.useState)(""),[ze,Ke]=s.useState(10),Te=(0,l.A)(),De=(0,b.A)(Te.breakpoints.down("md")),[Oe,He]=(0,s.useState)(!1),[Be,Fe]=(0,s.useState)(0),[qe,Ne]=(0,s.useState)(""),[Ve]=(0,s.useState)("All"),[Xe,Je]=s.useState(null),[Ge,Ue]=(0,s.useState)(0),[Ze,Qe]=(0,s.useState)(0),[$e,et]=(0,s.useState)(0),[tt,it]=(0,s.useState)(null),[nt,st]=(0,s.useState)([]),[ot,rt]=(0,s.useState)("active"),[lt,at]=(0,s.useState)({}),[ct,dt]=(0,s.useState)(!1),[xt,ht]=(0,s.useState)([]),[pt,gt]=(0,s.useState)({}),[ut,At]=(0,s.useState)(!0),[jt,mt]=(0,s.useState)(""),[ft,bt]=(0,s.useState)(""),[vt,yt]=(0,s.useState)(""),[St,wt]=(0,s.useState)({}),[Ct,kt]=(0,s.useState)({}),[zt,Wt]=(0,s.useState)(0),[It,Pt]=(0,s.useState)("Active"),Mt=()=>{dt(!1)},Rt=(e,t)=>{Pt(0==t?"Active":1==t?"Pending":"InActive"),Ue(t),d(""),Wt(0)},Yt=(e,t)=>{console.log("newValue1",t),Qe(t)},Lt=(e,t)=>{console.log("newValue2",t),et(t)},[_t,Et]=(0,s.useState)(null),[Kt,Tt]=(0,s.useState)(null),Dt=e=>{Et((t=>t===e?null:e))};(0,s.useEffect)((()=>{console.log("selectedCustomer",lt)}),[lt]),(0,s.useEffect)((()=>{Et(-1),Tt(-1)}),[Ge]);const Ot=(e,t,i)=>{(0,h.M8)(e,{variant:t,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:i})};const Ht={current:null},[Bt,Ft]=(0,s.useState)(""),[qt,Nt]=(0,s.useState)([]),Vt=(0,s.useRef)(!1);"undefined"===typeof window||Vt.current||(document.querySelector("#google-maps")||function(e,t,i){if(!t)return;const n=document.createElement("script");n.setAttribute("async",""),n.setAttribute("id",i),n.src=e,t.appendChild(n)}("https://maps.googleapis.com/maps/api/js?key=".concat("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8","&libraries=places"),document.querySelector("head"),"google-maps"),Vt.current=!0);const Xt=(0,s.useMemo)((()=>(0,j.A)(((e,t)=>{Ht.current.getPlacePredictions(e,t)}),400)),[]);(0,s.useEffect)((()=>{let e=!0;if(!Ht.current&&window.google&&(Ht.current=new window.google.maps.places.AutocompleteService),Ht.current){if(""!==Bt)return Xt({input:Bt},(t=>{if(e){let e=[];Xe&&(e=[Xe]),t&&(e=[...e,...t]),Nt(e)}})),()=>{e=!1};Nt(Xe?[Xe]:[])}}),[Xe,Bt,Xt]),p.A.setApiKey("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8"),(0,s.useEffect)((()=>{try{console.log("selected address =>",jt),p.A.fromAddress(jt).then((e=>{if(console.log("lat long response =>",e.results[0]),"OK"==e.status){const{lat:t,lng:i}=e.results[0].geometry.location;if(wt({lat:t,lng:i}),kt((0,n.A)((0,n.A)({},Ct),{},{latitude:t.toString(),longitude:i.toString()})),e.results[0].address_components){let t,i,s,o,r=e.results[0];for(let e=0;e{console.log(e)}))}catch(e){console.log(e)}}),[jt]),(0,s.useEffect)((()=>{lt&&wt({lat:lt.latitude,lng:lt.longitude})}),[lt]),(0,s.useEffect)((()=>{const e=e=>{"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),t.current.focus()),"Escape"===e.key&&document.activeElement===t.current&&t.current.blur()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[]);const{data:Jt,isLoading:Gt,refetch:Ut}=(0,ue.I)({queryKey:["tenantList",Be,u,ot,zt,ze],queryFn:Ae.ry}),{data:Zt=[],isLoading:Qt,refetch:$t}=(0,ue.I)({queryKey:["gettenantsummary",Be,ot],queryFn:Ae.bd}),ei=async()=>{await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/getpricinglist/?tenantid=").concat(tt)).then((e=>{console.log("getpricinglist",e),e.data.status&&st(e.data.details)})).catch((e=>{console.log(e)}))};(0,s.useEffect)((()=>{tt&&ei()}),[tt]);(0,s.useEffect)((()=>{tt&&(async e=>{try{let t=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantpricing/?tenantid=").concat(e));console.log("tenantPricing",t.data.details),setTenanatPricing(t.data.details)}catch(t){console.log("fetchTenanatPricing",t)}})(tt)}),[tt]);const ti=async e=>{let t;He(!0),t=-1==e?{tenantid:tt,approved:1}:{tenantid:e,status:"active"===ot?"InActive":"Active"},await r.A.put("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/update"),t).then((e=>{e.data.status&&(Ot(0==Ge?"Inactivated Successfully":1==Ge?"Approved Successfully":"Activate Successfully","success",2e3),Ut(),$t(),He(!1))})).catch((e=>{console.log(e),Ot(e.message,"error",1500),He(!1)}))},ii=async e=>{console.log("id",e);try{let t=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getapppricing/?applocationid=").concat(e));console.log("appPricingRes",t.data.details),ht(t.data.details)}catch(t){console.log("appPricingRes",t)}},ni=async()=>{He(!0),await r.A.post("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/createpricing"),{tenantpricingid:0,applocationid:Be,pricingid:pt.pricingid,tenantid:tt,pricingdate:x()().format("YYYY-MM-DD HH:mm:ss"),configid:pt.configid,pricingtypeid:pt.pricingtypeid,slab:pt.slab,baseprice:+pt.baseprice,priceperkm:+pt.priceperkm,minkm:+pt.minkm,maxkm:+pt.maxkm,orders:+pt.minorder,othercharges:0}).then((e=>{e.data.status&&((0,h.M8)("Price Created Successfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),Mt(),gt({}),ti(-1),ei())})).catch((e=>{console.log(e)}))},si=Re[null===(e=Ye[Ge])||void 0===e?void 0:e.status]||Re.active;return(0,me.jsxs)(me.Fragment,{children:[(Gt||Qt||Oe)&&(0,me.jsx)(a.A,{}),(0,me.jsx)(pe.A,{title:"Tenants",subtitle:"Live \xb7 ".concat(qe||"All Zones"),live:!0,action:(0,me.jsx)(xe.A,{locations:Ve,locaName:qe,setAppId:Fe,setLocoName:Ne,setPage:Wt,pill:!0,accentColor:"#662582",icon:(0,me.jsx)(ae.HPi,{size:14}),placeholder:"Select Zone",paperComponent:_e,sx:{width:{xs:"100%",sm:280},zIndex:100}})}),(0,me.jsx)(v.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:Le.map(((e,t)=>{var i;const n=e.icon,s=null!==(i=null===Zt||void 0===Zt?void 0:Zt[e.countKey])&&void 0!==i?i:0;return(0,me.jsx)(v.Ay,{item:!0,xs:12,sm:4,children:(0,me.jsx)(y.A,{onClick:()=>{t>=0&&Rt(0,t)},sx:{cursor:"pointer",height:"100%"},children:(0,me.jsx)(ge.A,{title:e.label,value:null!==s&&void 0!==s?s:0,icon:(0,me.jsx)(n,{size:20}),color:0===t?"#662582":e.color,loading:Qt})})},e.key)}))}),(0,me.jsx)(m.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:fe/8,borderTopRightRadius:fe/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:we,borderBottom:0,background:"#fff"},children:(0,me.jsxs)(S.A,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:1.5,sx:{flexWrap:"wrap-reverse"},children:[(0,me.jsx)(S.A,{direction:"row",spacing:.75,sx:{flex:1,overflowX:"auto",py:.5,px:.25,"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-thumb":{backgroundColor:we,borderRadius:4}},children:Ye.map(((e,t)=>{var i;const n=Re[e.status],s=n.icon,o=Ge===t,r=null!==(i=null===Zt||void 0===Zt?void 0:Zt[e.countKey])&&void 0!==i?i:0;return(0,me.jsxs)(y.A,{onClick:()=>{rt(e.status),Rt(0,t)},sx:{display:"inline-flex",alignItems:"center",gap:{xs:.625,md:.875},pl:.5,pr:{xs:1,md:1.25},py:.5,flexShrink:0,cursor:"pointer",borderRadius:"10px",border:"1px solid ".concat(o?n.color:"#e2e8f0"),bgcolor:o?n.color:"#fff",color:o?"#fff":"#64748b",fontWeight:600,boxShadow:"none",transition:"background-color 0.15s, border-color 0.15s, color 0.15s","&:hover":{borderColor:o?n.color:"#cbd5e1",bgcolor:o?n.color:"#f8fafc"}},children:[(0,me.jsx)(f.A,{sx:{width:{xs:22,md:26},height:{xs:22,md:26},bgcolor:o?"rgba(255,255,255,0.22)":Ie(n.color),color:o?"#fff":n.color},children:(0,me.jsx)(s,{size:13})}),(0,me.jsx)(w.A,{variant:"caption",sx:{fontWeight:600,fontSize:{xs:11.5,md:13},lineHeight:1},children:n.label}),(0,me.jsx)(y.A,{sx:{minWidth:{xs:22,md:26},height:{xs:18,md:22},px:.625,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:999,fontSize:{xs:10,md:11},fontWeight:700,bgcolor:o?"rgba(255,255,255,0.22)":"#f8fafc",color:o?"#fff":"#64748b",border:"none"},children:Qt?(0,me.jsx)(C.A,{variant:"text",width:14,height:10}):r})]},e.status)}))}),(0,me.jsx)(y.A,{sx:{width:{xs:"100%",sm:240,lg:280},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,me.jsx)(he.A,{value:i,onChange:d,onDebouncedChange:be,sx:{m:0,width:"100%",borderRadius:999,bgcolor:We("#662582"),"& fieldset":{borderColor:Me("#662582"),borderWidth:1.5},"&:hover fieldset":{borderColor:"#662582"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:2},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(Pe("#662582"))}}})})]})}),(0,me.jsxs)(m.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:fe/8,borderBottomRightRadius:fe/8,border:"1px solid",borderColor:we,overflow:"hidden",background:"#fff"},children:[(0,me.jsx)(k.A,{sx:{display:{xs:"none",md:"block"},maxHeight:{xs:"calc(100vh - 220px)",md:"calc(100vh - 190px)"},"&::-webkit-scrollbar":{width:"10px",height:"10px"},"&::-webkit-scrollbar-thumb":{backgroundColor:Me("#662582"),borderRadius:"8px","&:hover":{backgroundColor:"#662582"}},"&::-webkit-scrollbar-track":{backgroundColor:ke}},children:(0,me.jsxs)(z.A,{stickyHeader:!0,sx:{minWidth:{xs:720,md:960}},children:[(0,me.jsx)(W.A,{children:(0,me.jsxs)(I.A,{sx:{"& th":{backgroundColor:ke,color:ye,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(we),py:{xs:1,md:1.25},px:{xs:1,md:2}}},children:[(0,me.jsx)(P.A,{children:"#"}),(0,me.jsx)(P.A,{children:"Status"}),(0,me.jsx)(P.A,{children:"Client"}),(0,me.jsx)(P.A,{children:"Contact"}),(0,me.jsx)(P.A,{children:"Address"}),(0,me.jsx)(P.A,{align:"right",children:"Actions"})]})}),(0,me.jsxs)(M.A,{children:[Gt&&(0,me.jsx)(je.r,{}),0!=(null===Jt||void 0===Jt?void 0:Jt.length)||Oe?null===Jt||void 0===Jt?void 0:Jt.map(((e,t)=>{var i;const l=Re[0===Ge?"active":1===Ge?"pending":"inactive"],a=l.icon;return(0,me.jsxs)(s.Fragment,{children:[(0,me.jsxs)(I.A,{sx:{cursor:"pointer",transition:"background-color 0.15s","& td":{borderBottom:"1px solid ".concat(Ce),py:{xs:1,md:1.5},px:{xs:1,md:2}},"&:hover":{backgroundColor:ke}},children:[(0,me.jsx)(P.A,{children:(0,me.jsx)(w.A,{variant:"caption",sx:{fontWeight:700,color:Se},children:String(t+1+zt*ze).padStart(2,"0")})}),(0,me.jsx)(P.A,{children:(0,me.jsxs)(S.A,{direction:"row",alignItems:"center",spacing:.5,sx:{display:"inline-flex",pl:.5,pr:1,py:.25,borderRadius:999,bgcolor:We(l.color),border:"1px solid ".concat(Me(l.color)),color:l.color},children:[(0,me.jsx)(Ee,{color:l.color,size:20,children:(0,me.jsx)(a,{size:12})}),(0,me.jsx)(w.A,{variant:"caption",sx:{fontWeight:800,fontSize:11,lineHeight:1},children:l.label})]})}),(0,me.jsx)(P.A,{children:(0,me.jsxs)(S.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,me.jsx)(Ee,{color:"#662582",size:32,children:(0,me.jsx)(ae.Azs,{size:16})}),(0,me.jsxs)(S.A,{children:[(0,me.jsx)(w.A,{variant:"subtitle2",sx:{fontWeight:700,color:ve,whiteSpace:"nowrap"},children:e.tenantname}),(0,me.jsxs)(w.A,{variant:"caption",sx:{color:ye},children:["ID #",e.tenantid]})]})]})}),(0,me.jsx)(P.A,{children:(0,me.jsxs)(S.A,{children:[(0,me.jsx)(w.A,{variant:"subtitle2",sx:{fontWeight:700,color:ve,whiteSpace:"nowrap"},children:e.primarycontact||"\u2014"}),(0,me.jsx)(w.A,{variant:"caption",sx:{color:ye},children:e.primaryemail||"\u2014"})]})}),(0,me.jsx)(P.A,{sx:{maxWidth:280},children:(0,me.jsx)(R.A,{title:e.address||"",placement:"top",children:(0,me.jsx)(w.A,{variant:"caption",sx:{color:ye,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.address||"\u2014"})})}),(0,me.jsx)(P.A,{align:"right",children:(0,me.jsxs)(S.A,{direction:"row",spacing:.75,justifyContent:"flex-end",children:[0==Ge&&(0,me.jsx)(R.A,{title:"Inactivate",placement:"top",children:(0,me.jsx)(Y.A,{size:"small",sx:{bgcolor:Ie("#ef4444"),color:"#ef4444",border:"1px solid ".concat(Me("#ef4444")),"&:hover":{bgcolor:"#ef4444",color:"#fff"}},onClick:()=>{at(e),it(e.tenantid),Fe(e.applocationid),setTimeout((()=>{ti(e.tenantid)}),100)},children:(0,me.jsx)(Z.A,{style:{fontSize:14}})})}),1==Ge&&(0,me.jsx)(R.A,{title:"Approve",placement:"top",children:(0,me.jsx)(Y.A,{size:"small",sx:{bgcolor:Ie("#f59e0b"),color:"#f59e0b",border:"1px solid ".concat(Me("#f59e0b")),"&:hover":{bgcolor:"#f59e0b",color:"#fff"}},onClick:()=>{at(e),dt(!0),it(e.tenantid),Fe(e.applocationid),ii(e.applolcationid)},children:(0,me.jsx)(Q.A,{style:{fontSize:14}})})}),2==Ge&&(0,me.jsx)(R.A,{title:"Activate",placement:"top",children:(0,me.jsx)(Y.A,{size:"small",sx:{bgcolor:Ie("#10b981"),color:"#10b981",border:"1px solid ".concat(Me("#10b981")),"&:hover":{bgcolor:"#10b981",color:"#fff"}},onClick:()=>{at(e),it(e.tenantid),Fe(e.applocationid),setTimeout((()=>{ti(e.tenantid)}),100)},children:(0,me.jsx)(se.yjt,{style:{fontSize:14}})})}),(0,me.jsx)(R.A,{title:_t===t?"Hide details":"View details",placement:"top",children:(0,me.jsx)(Y.A,{size:"small",sx:{bgcolor:_t===t?"#662582":Ie("#662582"),color:_t===t?"#fff":"#662582",border:"1px solid ".concat(Me("#662582")),"&:hover":{bgcolor:"#662582",color:"#fff"}},onClick:()=>{at(e),Dt(t),Tt(-1),it(e.tenantid)},children:_t===t?(0,me.jsx)($.A,{style:{fontSize:14}}):(0,me.jsx)(ee.A,{style:{fontSize:14}})})}),1!==Ge&&(0,me.jsx)(R.A,{title:Kt===t?"Close":"Edit",placement:"top",children:(0,me.jsx)(Y.A,{size:"small",sx:{bgcolor:Kt===t?"#8b5cf6":Ie("#8b5cf6"),color:Kt===t?"#fff":"#8b5cf6",border:"1px solid ".concat(Me("#8b5cf6")),"&:hover":{bgcolor:"#8b5cf6",color:"#fff"}},onClick:()=>{var i;at(e),i=t,Tt((e=>e===i?null:i)),Et(-1),it(e.tenantid),Fe(e.applocationid)},children:Kt===t?(0,me.jsx)(te.A,{style:{fontSize:14}}):(0,me.jsx)(ie.A,{style:{fontSize:14}})})})]})})]}),_t===t&&(0,me.jsx)(I.A,{children:(0,me.jsx)(P.A,{sx:{"&:hover":{backgroundColor:"white !important"}},colSpan:15,children:(0,me.jsx)(L.A,{in:open,timeout:800,easing:"ease-in-out",mountOnEnter:!0,unmountOnExit:!1,sx:{"& .MuiCollapse-wrapperInner":{transition:"transform 800ms ease, opacity 800ms ease"}},children:(0,me.jsxs)(o.A,{content:!1,sx:{transform:open?"translateY(0)":"translateY(-8px)",opacity:open?1:0},title:(0,me.jsxs)(_.A,{sx:{bgcolor:"primary.lighter"},value:Ze,onChange:Yt,"aria-label":"basic tabs example",children:[(0,me.jsx)(E.A,{label:" Details",icon:(0,me.jsx)(oe.gA5,{style:{marginRight:5,fontSize:"20px",marginBottom:-1}}),sx:{alignItems:"center",flexDirection:"row"}}),(0,me.jsx)(E.A,{label:"Pricing",icon:(0,me.jsx)(re.FA6,{style:{marginRight:5,fontSize:"20px",marginBottom:-1}}),sx:{alignItems:"center",flexDirection:"row"}})]}),children:[0==Ze&&(0,me.jsxs)(v.Ay,{container:!0,sx:{m:1},spacing:2.5,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,xs:6,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(le.JXP,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsxs)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:[(0,me.jsx)(w.A,{align:"left",children:e.tenantname}),(0,me.jsx)(w.A,{align:"left",variant:"caption",color:"secondary",children:"Tenant"})]})]})}),(0,me.jsx)(v.Ay,{item:!0,xs:6,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(le.JXP,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsxs)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:[(0,me.jsx)(w.A,{align:"left",children:e.firstname}),(0,me.jsx)(w.A,{align:"left",variant:"caption",color:"secondary",children:"Contact Person"})]})]})}),(0,me.jsx)(v.Ay,{item:!0,xs:6,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(le.wnV,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsxs)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:[(0,me.jsx)(w.A,{align:"left",children:e.primarycontact}),(0,me.jsx)(w.A,{align:"left",variant:"caption",color:"secondary",children:"Phone"})]})]})}),(0,me.jsx)(v.Ay,{item:!0,xs:6,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(ce.h2r,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsxs)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:[(0,me.jsx)(w.A,{align:"left",children:e.primaryemail}),(0,me.jsx)(w.A,{align:"left",variant:"caption",color:"secondary",children:"E-Mail"})]})]})}),(0,me.jsx)(v.Ay,{item:!0,xs:12,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(se.Y9o,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsxs)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:[(0,me.jsx)(w.A,{align:"left",children:e.address}),(0,me.jsx)(w.A,{align:"left",variant:"caption",color:"secondary",children:"Address"})]})]})}),(0,me.jsx)(v.Ay,{item:!0,xs:12,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(re.BUW,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsxs)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:[(0,me.jsx)(w.A,{align:"left",children:e.city}),(0,me.jsx)(w.A,{align:"left",variant:"caption",color:"secondary",children:"City"})]}),(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(ae.kci,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsxs)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:[(0,me.jsx)(w.A,{align:"left",variant:"subtitle1",children:e.postcode}),(0,me.jsx)(w.A,{align:"left",variant:"caption",color:"secondary",children:"PostCode"})]})]})}),(0,me.jsx)(v.Ay,{item:!0,xs:12,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(oe.J0X,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsxs)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:[(0,me.jsx)(w.A,{align:"left",children:e.latitude}),(0,me.jsx)(w.A,{align:"left",variant:"caption",color:"secondary",children:"Latitude"})]}),(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(oe.u3h,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsxs)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:[(0,me.jsx)(w.A,{align:"left",variant:"subtitle1",children:e.longitude}),(0,me.jsx)(w.A,{align:"left",variant:"caption",color:"secondary",children:"Longitude"})]})]})})]}),1==Ze&&(0,me.jsx)(K.A,{variant:"outlined",sx:{},children:(0,me.jsx)(k.A,{children:(0,me.jsxs)(z.A,{children:[(0,me.jsx)(W.A,{children:(0,me.jsxs)(I.A,{children:[(0,me.jsx)(P.A,{children:"#"}),(0,me.jsx)(P.A,{children:"Date"}),(0,me.jsx)(P.A,{children:"Slab"}),(0,me.jsx)(P.A,{children:"Base Price"}),(0,me.jsx)(P.A,{children:"Min Kms"}),(0,me.jsx)(P.A,{children:"Price/Km"}),(0,me.jsx)(P.A,{children:"Other Charges"})]})}),(0,me.jsx)(M.A,{children:0===(null===nt||void 0===nt?void 0:nt.length)?(0,me.jsx)(I.A,{children:(0,me.jsx)(P.A,{colSpan:7,align:"center",children:(0,me.jsx)(c.A,{description:"No Pricing List"})})}):nt.map(((e,t)=>(0,me.jsxs)(I.A,{sx:{bgcolor:"white"},children:[(0,me.jsx)(P.A,{children:t+1}),(0,me.jsx)(P.A,{children:x()(e.pricingdate).format("DD-MM-YYYY")}),(0,me.jsx)(P.A,{children:e.slab}),(0,me.jsx)(P.A,{children:e.baseprice}),(0,me.jsx)(P.A,{children:e.minkm}),(0,me.jsx)(P.A,{children:e.priceperkm}),(0,me.jsx)(P.A,{children:e.othercharges})]},e.id||t)))})]})})},"left - card")]})})})}),Kt===t&&(0,me.jsx)(I.A,{children:(0,me.jsx)(P.A,{sx:{backgroundColor:"white!important","&:hover":{backgroundColor:"white!important"}},colSpan:15,children:(0,me.jsxs)(o.A,{content:!1,title:(0,me.jsxs)(y.A,{sx:{bgcolor:"primary.lighter",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,me.jsxs)(_.A,{value:$e,onChange:Lt,"aria-label":"basic tabs example",children:[(0,me.jsx)(E.A,{label:"Edit Details",icon:(0,me.jsx)(oe.gA5,{style:{marginRight:5,fontSize:"20px",marginBottom:-1}}),sx:{alignItems:"center",flexDirection:"row"}}),1!==Ge&&(0,me.jsx)(E.A,{label:"Edit Pricing",icon:(0,me.jsx)(re.FA6,{style:{marginRight:5,fontSize:"20px",marginBottom:-1}}),sx:{alignItems:"center",flexDirection:"row"},onClick:()=>{ii(lt.applolcationid)}})]}),1==$e&&(0,me.jsx)(T.A,{variant:"contained",color:"error",size:"smaller",startIcon:(0,me.jsx)(ie.A,{size:"small"}),sx:{mr:1.8,height:"30px"},onClick:()=>{dt(!0)},children:"Add Pricing"})]}),children:[0==$e&&(0,me.jsx)(K.A,{variant:"outlined",sx:{m:2},children:(0,me.jsx)(v.Ay,{container:!0,spacing:0,children:(0,me.jsx)(v.Ay,{item:!0,xs:12,children:(0,me.jsxs)(K.A,{variant:"outlined",children:[(0,me.jsx)(D.A,{children:(0,me.jsxs)(v.Ay,{container:!0,spacing:2.5,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,xs:6,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(de.PY8,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsx)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:(0,me.jsx)(O.A,{fullWidth:!0,id:"outlined-basic",label:"Tenant Name",defaultValue:lt.tenantname,variant:"outlined",onChange:e=>{kt((0,n.A)((0,n.A)({},Ct),{},{tenantname:e.target.value}))},sx:{mt:2}})})]})})," ",(0,me.jsx)(v.Ay,{item:!0,xs:6,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(le.JXP,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsx)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:(0,me.jsx)(O.A,{fullWidth:!0,id:"outlined-basic",label:"Contact Person",defaultValue:e.firstname,variant:"outlined",onChange:e=>{kt((0,n.A)((0,n.A)({},Ct),{},{firstname:e.target.value}))},sx:{mt:2}})})]})}),(0,me.jsx)(v.Ay,{item:!0,xs:6,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(le.wnV,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsx)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:(0,me.jsx)(O.A,{inputProps:{maxLength:10},fullWidth:!0,id:"outlined-basic",label:"Contact Number",defaultValue:lt.primarycontact,variant:"outlined",onChange:e=>{kt((0,n.A)((0,n.A)({},Ct),{},{primarycontact:e.target.value}))},sx:{mt:2}})})]})}),(0,me.jsx)(v.Ay,{item:!0,xs:6,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(ce.h2r,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsx)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:(0,me.jsx)(O.A,{fullWidth:!0,id:"outlined-basic",label:"E-Mail",defaultValue:lt.primaryemail,variant:"outlined",onChange:e=>{kt((0,n.A)((0,n.A)({},Ct),{},{primaryemail:e.target.value}))},sx:{mt:2}})})]})}),(0,me.jsx)(v.Ay,{item:!0,xs:12,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(se.Y9o,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsx)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:(0,me.jsx)(H.A,{id:"google-map-demo",sx:{},fullWidth:!0,label:"Address",getOptionLabel:e=>"string"===typeof e?e:e.description,filterOptions:e=>e,options:qt,autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,defaultValue:lt.address,noOptionsText:"No locations",onChange:(e,t)=>{Nt(t?[t,...qt]:qt),Je(t||""),console.log("newValue",t),mt((null===t||void 0===t?void 0:t.description)||""),kt((0,n.A)((0,n.A)({},Ct),{},{address:(null===t||void 0===t?void 0:t.description)||""}))},onInputChange:(e,t)=>{Ft(t)},renderInput:e=>(0,me.jsx)(O.A,(0,n.A)((0,n.A)({},e),{},{fullWidth:!0,label:"Address",variant:"outlined"})),renderOption:(e,t)=>{const i=t.structured_formatting.main_text_matched_substrings||[],s=A()(t.structured_formatting.main_text,i.map((e=>[e.offset,e.offset+e.length])));return(0,me.jsx)("li",(0,n.A)((0,n.A)({},e),{},{children:(0,me.jsxs)(v.Ay,{container:!0,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,sx:{display:"flex",width:44},children:(0,me.jsx)(g.A,{sx:{color:"text.secondary"}})}),(0,me.jsxs)(v.Ay,{item:!0,sx:{width:"calc(100% - 44px)",wordWrap:"break-word"},children:[s.map(((e,t)=>(0,me.jsx)(y.A,{component:"span",sx:{fontWeight:e.highlight?"bold":"regular"},children:e.text},t))),(0,me.jsx)(w.A,{variant:"body2",color:"text.secondary",children:t.structured_formatting.secondary_text})]})]})}))}})})]})}),(0,me.jsx)(v.Ay,{item:!0,xs:12,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(re.BUW,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsx)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:(0,me.jsx)(O.A,{fullWidth:!0,required:!0,id:"outlined-required",label:"City",onChange:e=>{kt((0,n.A)((0,n.A)({},Ct),{},{city:e.target.value}))},value:""==ft?lt.city:ft})}),(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(ae.kci,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsx)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:(0,me.jsx)(O.A,{fullWidth:!0,required:!0,label:" PostCode",id:"outlined-required",onChange:e=>{kt((0,n.A)((0,n.A)({},Ct),{},{postcode:e.target.value}))},value:""==vt?lt.postcode:vt})})]})}),(0,me.jsx)(v.Ay,{item:!0,xs:12,children:(0,me.jsxs)(v.Ay,{container:!0,spacing:4,alignItems:"center",children:[(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(oe.J0X,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsx)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:(0,me.jsx)(O.A,{variant:"outlined",readonly:!0,label:"Latitude",fullWidth:!0,value:St.lat,sx:{cursor:"not-allowed"}})}),(0,me.jsx)(v.Ay,{item:!0,children:(0,me.jsx)(oe.u3h,{style:{fontSize:"20px",fontWeight:"lighter"}})}),(0,me.jsx)(v.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:(0,me.jsx)(O.A,{label:"Longitude",readonly:!0,variant:"outlined",fullWidth:!0,value:St.lng})})]})})]})}),(0,me.jsx)(B.A,{sx:{display:"flex",justifyContent:"end",mr:3,mb:2},children:(0,me.jsx)(T.A,{variant:"contained",size:"medium",onClick:()=>{(async()=>{try{const e=(0,n.A)((0,n.A)({},Ct),{},{tenantid:tt});console.log("updateClient",e);const t=await r.A.put("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/update"),e);console.log("updateClient",t.data.message),t.data.status&&Ot(t.data.message,"success",1500),Ut(),$t()}catch(e){console.log("updateClient",e)}})()},children:"Update Client"})})]})})})},"left - card"),1==$e&&(0,me.jsx)(K.A,{variant:"outlined",sx:{},children:(0,me.jsx)(k.A,{children:(0,me.jsxs)(z.A,{children:[(0,me.jsx)(W.A,{children:(0,me.jsxs)(I.A,{children:[(0,me.jsx)(P.A,{children:"#"}),(0,me.jsx)(P.A,{children:"Date"}),(0,me.jsx)(P.A,{children:"Slab"}),(0,me.jsx)(P.A,{children:"Base Price"}),(0,me.jsx)(P.A,{children:"Min Kms"}),(0,me.jsx)(P.A,{children:"Price/Km"}),(0,me.jsx)(P.A,{children:"Other Charges"})]})}),(0,me.jsx)(M.A,{children:0===(null===nt||void 0===nt?void 0:nt.length)?(0,me.jsx)(I.A,{children:(0,me.jsx)(P.A,{colSpan:7,align:"center",children:(0,me.jsx)(c.A,{})})}):nt.map(((e,t)=>(0,me.jsxs)(I.A,{sx:{bgcolor:"white"},children:[(0,me.jsx)(P.A,{children:t+1}),(0,me.jsx)(P.A,{children:x()(e.pricingdate).format("DD-MM-YYYY")}),(0,me.jsx)(P.A,{children:e.slab}),(0,me.jsx)(P.A,{children:e.baseprice}),(0,me.jsx)(P.A,{children:e.minkm}),(0,me.jsx)(P.A,{children:e.priceperkm}),(0,me.jsx)(P.A,{children:e.othercharges})]},e.id||t)))})]})})},"left - card")]})})})]},null!==(i=e.tenantid)&&void 0!==i?i:t)})):(0,me.jsx)(I.A,{children:(0,me.jsx)(P.A,{colSpan:6,sx:{py:6},children:(0,me.jsxs)(S.A,{alignItems:"center",spacing:1.5,children:[(0,me.jsx)(f.A,{sx:{width:64,height:64,bgcolor:Ie("#94a3b8"),color:Se},children:(0,me.jsx)(ae.Itr,{size:28})}),(0,me.jsx)(w.A,{variant:"subtitle1",sx:{fontWeight:700,color:ve},children:"No tenants to show"}),(0,me.jsx)(w.A,{variant:"caption",sx:{color:ye},children:"No ".concat(si.label.toLowerCase()," tenants for this filter.")})]})})})]})]})}),De&&(0,me.jsxs)(U.nV,{scroll:!0,sx:{display:{xs:"flex",md:"none"}},children:[Gt&&(0,me.jsxs)(S.A,{alignItems:"center",sx:{py:4},children:[(0,me.jsx)(C.A,{variant:"rounded",width:"100%",height:96,animation:"wave"}),(0,me.jsx)(C.A,{variant:"rounded",width:"100%",height:96,animation:"wave",sx:{mt:1.25}})]}),0!=(null===Jt||void 0===Jt?void 0:Jt.length)||Oe?null===Jt||void 0===Jt?void 0:Jt.map(((e,t)=>{var i;const n=Re[0===Ge?"active":1===Ge?"pending":"inactive"],s=n.icon,o=_t===t;return(0,me.jsxs)(U.pg,{accent:n.color,header:(0,me.jsxs)(S.A,{direction:"row",alignItems:"flex-start",justifyContent:"space-between",spacing:1,children:[(0,me.jsxs)(S.A,{direction:"row",alignItems:"center",spacing:1,sx:{minWidth:0},children:[(0,me.jsx)(Ee,{color:"#662582",size:36,children:(0,me.jsx)(ae.Azs,{size:18})}),(0,me.jsxs)(S.A,{sx:{minWidth:0},children:[(0,me.jsx)(w.A,{variant:"subtitle2",sx:{fontWeight:800,color:ve},noWrap:!0,children:e.tenantname}),(0,me.jsxs)(S.A,{direction:"row",alignItems:"center",spacing:.5,sx:{display:"inline-flex",mt:.25,pl:.25,pr:.875,py:.125,borderRadius:999,bgcolor:We(n.color),border:"1px solid ".concat(Me(n.color)),color:n.color,alignSelf:"flex-start"},children:[(0,me.jsx)(Ee,{color:n.color,size:16,children:(0,me.jsx)(s,{size:10})}),(0,me.jsx)(w.A,{sx:{fontWeight:800,fontSize:10,lineHeight:1},children:n.label})]})]})]}),(0,me.jsxs)(S.A,{direction:"row",spacing:.5,sx:{flexShrink:0},children:[0==Ge&&(0,me.jsx)(Y.A,{size:"small",sx:{bgcolor:Ie("#ef4444"),color:"#ef4444",border:"1px solid ".concat(Me("#ef4444")),"&:hover":{bgcolor:"#ef4444",color:"#fff"}},onClick:()=>{at(e),it(e.tenantid),Fe(e.applocationid),setTimeout((()=>{ti(e.tenantid)}),100)},children:(0,me.jsx)(Z.A,{style:{fontSize:14}})}),1==Ge&&(0,me.jsx)(Y.A,{size:"small",sx:{bgcolor:Ie("#f59e0b"),color:"#f59e0b",border:"1px solid ".concat(Me("#f59e0b")),"&:hover":{bgcolor:"#f59e0b",color:"#fff"}},onClick:()=>{at(e),dt(!0),it(e.tenantid),Fe(e.applocationid),ii(e.applolcationid)},children:(0,me.jsx)(Q.A,{style:{fontSize:14}})}),2==Ge&&(0,me.jsx)(Y.A,{size:"small",sx:{bgcolor:Ie("#10b981"),color:"#10b981",border:"1px solid ".concat(Me("#10b981")),"&:hover":{bgcolor:"#10b981",color:"#fff"}},onClick:()=>{at(e),it(e.tenantid),Fe(e.applocationid),setTimeout((()=>{ti(e.tenantid)}),100)},children:(0,me.jsx)(se.yjt,{style:{fontSize:14}})}),(0,me.jsx)(Y.A,{size:"small",sx:{bgcolor:o?"#662582":Ie("#662582"),color:o?"#fff":"#662582",border:"1px solid ".concat(Me("#662582")),"&:hover":{bgcolor:"#662582",color:"#fff"}},onClick:()=>{at(e),Dt(t),Tt(-1),it(e.tenantid)},children:o?(0,me.jsx)($.A,{style:{fontSize:14}}):(0,me.jsx)(ee.A,{style:{fontSize:14}})}),1!==Ge&&(0,me.jsx)(Y.A,{size:"small",sx:{bgcolor:Ie("#8b5cf6"),color:"#8b5cf6",border:"1px solid ".concat(Me("#8b5cf6")),"&:hover":{bgcolor:"#8b5cf6",color:"#fff"}},onClick:()=>{at(e),it(e.tenantid),Fe(e.applocationid),ii(e.applolcationid),dt(!0)},children:(0,me.jsx)(ie.A,{style:{fontSize:14}})})]})]}),children:[(0,me.jsxs)(U.FG,{children:[(0,me.jsx)(U.pY,{label:"Tenant ID",value:"#".concat(e.tenantid)}),(0,me.jsx)(U.pY,{label:"Contact",value:e.primarycontact||"\u2014"}),(0,me.jsx)(U.pY,{label:"Email",value:e.primaryemail||"\u2014",full:!0}),(0,me.jsx)(U.pY,{label:"Address",full:!0,children:(0,me.jsx)(w.A,{sx:{fontSize:13,fontWeight:600,color:ve},children:e.address||"\u2014"})})]}),o&&(0,me.jsx)(y.A,{sx:{mt:1.25,pt:1.25,borderTop:"1px solid ".concat(Ce)},children:(0,me.jsxs)(U.FG,{children:[(0,me.jsx)(U.pY,{label:"Contact Person",value:e.firstname||"\u2014"}),(0,me.jsx)(U.pY,{label:"City",value:e.city||"\u2014"}),(0,me.jsx)(U.pY,{label:"Postcode",value:e.postcode||"\u2014"}),(0,me.jsx)(U.pY,{label:"Latitude",value:e.latitude||"\u2014"}),(0,me.jsx)(U.pY,{label:"Longitude",value:e.longitude||"\u2014"})]})})]},null!==(i=e.tenantid)&&void 0!==i?i:t)})):(0,me.jsxs)(S.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,me.jsx)(f.A,{sx:{width:64,height:64,bgcolor:Ie("#94a3b8"),color:Se},children:(0,me.jsx)(ae.Itr,{size:28})}),(0,me.jsx)(w.A,{variant:"subtitle1",sx:{fontWeight:700,color:ve},children:"No tenants to show"}),(0,me.jsx)(w.A,{variant:"caption",sx:{color:ye,textAlign:"center"},children:"No ".concat(si.label.toLowerCase()," tenants for this filter.")})]})]}),!i&&(null===Jt||void 0===Jt?void 0:Jt.length)>0&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(F.A,{sx:{borderColor:we}}),(0,me.jsx)(q.A,{rowsPerPageOptions:[5,10,25,50,100],component:"div",count:0==Ge?null===Zt||void 0===Zt?void 0:Zt.active:1==Ge?null===Zt||void 0===Zt?void 0:Zt.pending:2==Ge?null===Zt||void 0===Zt?void 0:Zt.inactive:0,rowsPerPage:ze,page:zt,onPageChange:(e,t)=>{Wt(t)},onRowsPerPageChange:e=>{Ke(parseInt(e.target.value,10)),Wt(0)}})]})]}),(0,me.jsxs)(N.A,{fullWidth:!0,fullScreen:De,open:ct,onClose:Mt,scroll:"paper",maxWidth:"sm",TransitionComponent:ne.s,PaperProps:{sx:{borderRadius:{xs:0,sm:3}}},children:[(0,me.jsx)(V.A,{sx:{bgcolor:"#662582",color:"#fff",fontSize:"20px"},children:"Client Pricing - (".concat(lt.tenantname,")")}),(0,me.jsx)(X.A,{dividers:!0,children:(0,me.jsx)(o.A,{sx:{height:"100%"},children:(0,me.jsxs)(v.Ay,{container:!0,spacing:2.5,alignItems:"center",children:[(0,me.jsxs)(v.Ay,{item:!0,xs:12,sm:6,children:[(0,me.jsx)(J.A,{children:"Select Slab"}),(0,me.jsx)(H.A,{disablePortal:!0,id:"combo-box-demo",options:xt,getOptionLabel:e=>"".concat(e.slab),fullWidth:!0,selectOnFocus:!0,renderInput:e=>(0,me.jsx)(O.A,(0,n.A)((0,n.A)({},e),{},{label:"Slab"})),onChange:(e,t,i)=>{gt(t),console.log("pricing",t),At(!1),"clear"===i&&At(!0)}})]}),(0,me.jsxs)(v.Ay,{item:!0,xs:12,sm:6,children:[(0,me.jsx)(J.A,{children:"Base Price"}),(0,me.jsx)(O.A,{type:"number",fullWidth:!0,value:ut?0:pt.baseprice,onChange:e=>{gt((0,n.A)((0,n.A)({},pt),{},{baseprice:e.target.value}))}})]}),(0,me.jsxs)(v.Ay,{item:!0,xs:12,sm:6,children:[(0,me.jsx)(J.A,{children:"Price/Km"}),(0,me.jsx)(O.A,{type:"number",fullWidth:!0,value:ut?0:pt.priceperkm,onChange:e=>{gt((0,n.A)((0,n.A)({},pt),{},{priceperkm:e.target.value}))}})]}),(0,me.jsxs)(v.Ay,{item:!0,xs:12,sm:6,children:[(0,me.jsx)(J.A,{children:"Min Kms"}),(0,me.jsx)(O.A,{type:"number",fullWidth:!0,value:ut?0:pt.minkm,onChange:e=>{gt((0,n.A)((0,n.A)({},pt),{},{minkm:e.target.value}))}})]}),(0,me.jsxs)(v.Ay,{item:!0,xs:12,sm:6,children:[(0,me.jsx)(J.A,{children:"Max Kms"}),(0,me.jsx)(O.A,{type:"number",fullWidth:!0,value:ut?0:pt.maxkm,onChange:e=>{gt((0,n.A)((0,n.A)({},pt),{},{maxkm:e.target.value}))}})]}),(0,me.jsxs)(v.Ay,{item:!0,xs:12,sm:6,children:[(0,me.jsx)(J.A,{children:"Min Orders"}),(0,me.jsx)(O.A,{type:"number",fullWidth:!0,value:ut?0:pt.minorder,onChange:e=>{gt((0,n.A)((0,n.A)({},pt),{},{minorder:e.target.value}))}})]})]})})}),(0,me.jsx)(G.A,{children:(0,me.jsx)(v.Ay,{container:!0,children:(0,me.jsx)(v.Ay,{item:!0,xs:12,children:(0,me.jsxs)(S.A,{direction:"row",justifyContent:"flex-end",spacing:2,sx:{p:2},children:[1==$e&&(0,me.jsx)(T.A,{disabled:ut,variant:"contained",onClick:()=>{ni()},children:"Update Pricing"}),1==Ge&&(0,me.jsx)(T.A,{disabled:ut,variant:"contained",onClick:()=>{ni()},children:"Save"}),(0,me.jsx)(T.A,{variant:"contained",onClick:()=>{At(!0),setTimeout((()=>{Mt()}),100),gt({})},color:"error",children:"Cancel"})]})})})})]})]})}},96646:(e,t,i)=>{i.d(t,{r:()=>a});var n=i(9213),s=i(21671),o=i(82917),r=i(93230),l=i(44414);const a=e=>{let{rowsPerPage:t=5,col:i=1}=e;return(0,l.jsx)(l.Fragment,{children:Array.from(new Array(t)).map(((e,t)=>(0,l.jsxs)(n.A,{children:[(0,l.jsx)(s.A,{children:(0,l.jsx)(o.A,{variant:"circular",width:24,height:24})}),(0,l.jsx)(s.A,{children:(0,l.jsx)(o.A,{variant:"text",width:30})}),Array.from({length:i}).map(((e,t)=>(0,l.jsx)(s.A,{children:(0,l.jsxs)(r.A,{spacing:.5,children:[(0,l.jsx)(o.A,{variant:"text",width:100}),(0,l.jsx)(o.A,{variant:"text",width:80})]})},t))),(0,l.jsx)(s.A,{children:(0,l.jsx)(o.A,{variant:"text",width:150})}),(0,l.jsx)(s.A,{children:(0,l.jsx)(o.A,{variant:"rounded",width:60,height:24})}),(0,l.jsx)(s.A,{align:"center",children:(0,l.jsxs)(r.A,{direction:"row",spacing:1,justifyContent:"flex-end",children:[(0,l.jsx)(o.A,{variant:"circular",width:28,height:28}),(0,l.jsx)(o.A,{variant:"circular",width:28,height:28})]})})]},t)))})}}}]); \ No newline at end of file diff --git a/build/static/js/181.1ef0e862.chunk.js b/build/static/js/181.7dd6b2c7.chunk.js similarity index 68% rename from build/static/js/181.1ef0e862.chunk.js rename to build/static/js/181.7dd6b2c7.chunk.js index a4e0985..1c57ca4 100644 --- a/build/static/js/181.1ef0e862.chunk.js +++ b/build/static/js/181.7dd6b2c7.chunk.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[181],{10181:(e,t,r)=>{r.r(t),r.d(t,{default:()=>le});var o=r(89379),n=r(9950),i=r(26910),l=r(36150),s=r(2235),a=r(41413),c=r(83274),d=r(16491),x=r(82053),h=r(14857),u=r(47223),p=r(60899),m=r(93230),A=r(25333),f=r(33738),g=r(74745),j=r(1320),b=r(15769),v=r(69780),S=r(9213),w=r(21671),y=r(34075),k=r(25277),C=r(96583),z=r(28170),D=r(31222),P=r(4159),R=r.n(P),I=r(81425),_=r(52351),M=r(35678),T=r(59212),E=r(56311),W=r(27001),N=r(36803),L=r(96646),Y=r(10523),F=r(46639),O=r(44414);const K={width:"100%",height:"100%"};function B(e){let{details:t,loading:r,riderName:o,dateRange:i,onClose:l}=e;const s=(0,n.useRef)(null),[a,c]=(0,n.useState)(null),[h,u]=(0,n.useState)([]),[p,f]=(0,n.useState)(!1),{isLoaded:g}=(0,Y.KD)({googleMapsApiKey:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_API_URL:"https://mock-data-api-nextjs.vercel.app/",REACT_APP_AUTH0_CLIENT_ID:"",REACT_APP_AUTH0_DOMAIN:"",REACT_APP_AWS_APP_CLIENT_ID:"",REACT_APP_AWS_POOL_ID:"",REACT_APP_FIREBASE_API_KEY:"",REACT_APP_FIREBASE_APP_ID:"",REACT_APP_FIREBASE_AUTH_DOMAIN:"",REACT_APP_FIREBASE_MEASUREMENT_ID:"",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"",REACT_APP_FIREBASE_PROJECT_ID:"",REACT_APP_FIREBASE_STORAGE_BUCKET:"",REACT_APP_GOOGLE_MAPS_API_KEY:"AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8",REACT_APP_RIDER_ACCESS_ID:"AAAAILMpCEU:APA91bEavuOllBI6sFgYtxXAgNmAVwNA-MnCMHLGlR4_t7UqpLajAkdn3T0CZr_zaLBknLyim9ytFLMZgbeXmKqTad_PKCbqlYjHpaizVrLXtecxqyEy4UktIacK2UvHVUATHL-7VQQk",REACT_APP_STAFF_TOKEN:"",REACT_APP_URL:"https://jupiter.nearle.app/live/api/v1",REACT_APP_URL2:"https://jupiter.nearle.app/live/api/v2",REACT_APP_URL3:"https://jupiter.nearle.app/live/api/v3",REACT_APP_VERSION:"v2.1.0"}.REACT_APP_GOOGLE_MAPS_KEY}),j=(0,n.useMemo)((()=>(t||[]).map((e=>({lat:e.dropLat,lng:e.dropLng})))),[t]);(0,n.useEffect)((()=>{if(!g||!s.current||0===j.length)return;const e=new window.google.maps.LatLngBounds;j.forEach((t=>e.extend(t))),s.current.fitBounds(e,48)}),[g,j]),(0,n.useEffect)((()=>{if(!g||j.length<2)return void u([]);let e=!1;const t=new window.google.maps.DirectionsService,r=(e,r,o)=>new Promise(((n,i)=>{t.route({origin:e,destination:r,waypoints:o.map((e=>({location:e,stopover:!0}))),travelMode:window.google.maps.TravelMode.DRIVING},((e,t)=>{"OK"===t?n(e):i(new Error(t))}))}));return(async()=>{f(!0);try{const t=j,o=[];let n=0;for(;n({lat:e.lat(),lng:e.lng()})));o.length>0&&c.length>0&&c.shift(),o.push(...c),n+=i}e||u(o)}catch(t){e||u([])}finally{e||f(!1)}})(),()=>{e=!0}}),[g,j]);const b=(e,t)=>{const r=t?38:32,o=t?"#4D1C61":"#662582",n=encodeURIComponent('')+'')+''.concat(e,"")+"");return"data:image/svg+xml;charset=UTF-8,".concat(n)},v=(0,O.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1.5,sx:{px:2,py:1.25,borderBottom:"1px solid rgba(15, 23, 42, 0.08)",background:"linear-gradient(135deg, #662582 0%, #9255AB 100%)",color:"#fff",flexShrink:0},children:[(0,O.jsx)(D.pk7,{size:20}),(0,O.jsxs)(m.A,{sx:{flex:1,minWidth:0},children:[(0,O.jsxs)(x.A,{sx:{fontWeight:700,fontSize:15,lineHeight:1.2},children:["Planned route",o?" \u2014 ".concat(o):""]}),i&&(0,O.jsx)(x.A,{sx:{fontSize:12,opacity:.85},children:i})]}),t&&t.length>0&&(0,O.jsxs)(x.A,{sx:{fontSize:12,opacity:.9,fontWeight:600},children:[t.length," ",1===t.length?"stop":"stops",p?" \xb7 resolving route\u2026":""]}),l&&(0,O.jsx)(A.A,{size:"small",onClick:l,sx:{color:"#fff"},"aria-label":"Close",children:(0,O.jsx)(D.m6K,{})})]});return r||!g?(0,O.jsxs)(d.A,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[v,(0,O.jsxs)(m.A,{alignItems:"center",justifyContent:"center",sx:{flex:1,gap:1.5},children:[(0,O.jsx)(F.A,{size:32}),(0,O.jsx)(x.A,{sx:{color:"#64748b",fontSize:13},children:r?"Loading planned route\u2026":"Loading map\u2026"})]})]}):t&&0!==t.length?(0,O.jsxs)(d.A,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[v,(0,O.jsx)(d.A,{sx:{flex:1,minHeight:0},children:(0,O.jsxs)(Y.u6,{mapContainerStyle:K,onLoad:e=>s.current=e,center:j[0],zoom:14,options:{streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1},children:[h.length>0?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Y.Ro,{path:h,options:{strokeColor:"#662582",strokeOpacity:.25,strokeWeight:8}}),(0,O.jsx)(Y.Ro,{path:h,options:{strokeColor:"#662582",strokeOpacity:.95,strokeWeight:4}})]}):(0,O.jsx)(Y.Ro,{path:j,options:{strokeColor:"#662582",strokeOpacity:0,strokeWeight:0,icons:[{icon:{path:"M 0,-1 0,1",strokeOpacity:.6,strokeColor:"#662582",scale:3},offset:"0",repeat:"14px"}]}}),t.map(((e,t)=>{const r=e.step||t+1,o=a===e.deliveryid;return(0,O.jsx)(Y.pH,{position:{lat:e.dropLat,lng:e.dropLng},icon:{url:b(r,o)},onClick:()=>c(o?null:e.deliveryid),zIndex:o?1e3:r,children:o&&(0,O.jsx)(Y.Fu,{onCloseClick:()=>c(null),children:(0,O.jsxs)(d.A,{sx:{minWidth:180,fontFamily:"inherit"},children:[(0,O.jsxs)(x.A,{sx:{fontWeight:800,fontSize:13,color:"#0f172a"},children:["Step ",r," \xb7 ",e.customer]}),e.address&&(0,O.jsx)(x.A,{sx:{fontSize:12,color:"#475569",mt:.5},children:e.address}),e.expectedTime&&(0,O.jsxs)(x.A,{sx:{fontSize:12,color:"#64748b",mt:.5},children:["ETA ",String(e.expectedTime).slice(11,16)||e.expectedTime]}),e.orderid&&(0,O.jsxs)(x.A,{sx:{fontSize:11,color:"#94a3b8",mt:.5},children:["Order #",e.orderid]})]})})},"step-".concat(e.deliveryid||e.orderid||t))}))]})})]}):(0,O.jsxs)(d.A,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[v,(0,O.jsxs)(m.A,{alignItems:"center",justifyContent:"center",sx:{flex:1,gap:1,p:3},children:[(0,O.jsx)(x.A,{sx:{color:"#1e293b",fontWeight:700,fontSize:16},children:"No planned route for this rider"}),(0,O.jsx)(x.A,{sx:{color:"#64748b",fontSize:13,textAlign:"center",maxWidth:360},children:"There are no deliveries with drop coordinates assigned to this rider for the selected date range."})]})]})}var H=r(20466),U=r(23787),G=r(36220);R().extend(G);const V={radiusPill:999,radiusCard:14,shadowSoft:"0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05)",shadowMd:"0 1px 3px rgba(15, 23, 42, 0.06)",shadowPop:"0 12px 32px rgba(15, 23, 42, 0.12)",textPrimary:"#0f172a",textSecondary:"#64748b",textMuted:"#94a3b8",borderSubtle:"#e2e8f0",divider:"#f1f5f9",surface:"#ffffff",surfaceAlt:"#f8fafc"},X=(e,t)=>"".concat(e).concat(t),$=e=>X(e,"08"),q=e=>X(e,"18"),Z=e=>X(e,"26"),Q=e=>X(e,"55"),J="#662582",ee="#9255AB",te=e=>(0,O.jsx)(s.A,(0,o.A)((0,o.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:V.shadowPop,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),re=e=>{let{color:t,selected:r,size:o=24,children:n}=e;return(0,O.jsx)(a.A,{sx:{width:o,height:o,bgcolor:r?t:q(t),color:r?"#fff":t,transition:"background-color 0.15s, color 0.15s"},children:n})},oe=e=>{let{color:t,icon:r,label:o,tooltip:n,minWidth:i=80}=e;return(0,O.jsx)(c.A,{title:n||"",placement:"top",children:(0,O.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(Q(t)),color:t,fontSize:11,fontWeight:800,minWidth:i,justifyContent:"center",whiteSpace:"nowrap"},children:[r,o]})})},ne=e=>{let{value:t,color:r="#ef4444",icon:o}=e;const n=Number(t)||0;return 0===n?(0,O.jsx)(x.A,{variant:"caption",sx:{color:V.textMuted,fontWeight:700},children:"0"}):(0,O.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:.875,py:.25,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(Q(r)),color:r,fontSize:12,fontWeight:800,minWidth:36,justifyContent:"center"},children:[o,n]})};function ie(e){return new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",minimumFractionDigits:2}).format(Number(e)||0)}function le(){const e=(0,h.A)(),t=(0,u.A)(e.breakpoints.down("md")),[r,o]=(0,n.useState)(R()().format("YYYY-MM-DD")),[P,Y]=(0,n.useState)(R()().format("YYYY-MM-DD")),[F,K]=(0,n.useState)("All"),[G,X]=(0,n.useState)(!1),[le,se]=(0,n.useState)("Today"),[ae,ce]=(0,n.useState)([]),[de,xe]=(0,n.useState)(null),[he,ue]=(0,n.useState)(0),[pe,me]=(0,n.useState)(!1),[Ae,fe]=(0,n.useState)(!1),[ge,je]=(0,n.useState)(null),[be,ve]=(0,n.useState)(null),[Se,we]=(0,n.useState)(!1),[ye,ke]=(0,n.useState)(""),[Ce,ze]=(0,n.useState)(""),{isLoading:De,data:Pe}=(0,l.I)({queryKey:["ridersummary",he,r,P],queryFn:I.KN}),Re=(0,n.useMemo)((()=>{if(!Pe)return[];if(!Ce)return Pe;const e=Ce.toLowerCase().trim();return Pe.filter((t=>["".concat(t.firstname||""," ").concat(t.lastname||""),String(t.userid)].filter(Boolean).some((t=>String(t).toLowerCase().includes(e)))))}),[Pe,Ce]),Ie=(0,n.useMemo)((()=>Pe&&0!==Pe.length?Pe.reduce(((e,t)=>(e.riders+=1,e.orders+=Number(t.totalorders)||0,e.delivered+=Number(t.delivered)||0,e.amount+=Math.max(Number(t.charges)||0,Number(t.deliveryamt)||0),e)),{riders:0,orders:0,delivered:0,amount:0}):{riders:0,orders:0,delivered:0,amount:0}),[Pe]),_e=async e=>{me(!0);try{const t=await i.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/getreportsummary/?&fromdate=").concat(r,"&todate=").concat(P,"&userid=").concat(e));ce(t.data.details)}catch(t){console.log("tenantRes",t)}finally{me(!1)}},Me=async e=>{we(!0);try{var t;const o="undefined"!==typeof window&&localStorage.getItem("userid")||0,n=0===he?"appuserid=".concat(o):"applocationid=".concat(he),l="".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/getdeliveries/")+"?".concat(n)+"&status=all"+"&fromdate=".concat(r)+"&todate=".concat(P)+"&pageno=1&pagesize=200&keyword=&tenantid=&locationid="+"&userid=".concat(e),s=await i.A.get(l),a=(null===s||void 0===s||null===(t=s.data)||void 0===t?void 0:t.details)||[],c=e=>{const t=Number(e);return Number.isFinite(t)?t:null},d=a.map((e=>{var t,r,o,n,i;const l=c(null!==(t=e.droplat)&&void 0!==t?t:e.deliverylat),s=c(null!==(r=e.droplon)&&void 0!==r?r:e.deliverylong),a=c(null!==(o=e.pickuplat)&&void 0!==o?o:e.pickuplatitude),d=c(null!==(n=null!==(i=e.pickuplon)&&void 0!==i?i:e.pickuplong)&&void 0!==n?n:e.picklongitude);return null==l||null==s?null:{step:Number(e.step)||0,orderid:e.orderid,deliveryid:e.deliveryid,customer:e.deliverycustomer||e.customername||"Order ".concat(e.orderid),address:e.deliveryaddress||e.deliverysuburb||"",dropLat:l,dropLng:s,pickLat:null!==a&&void 0!==a?a:null,pickLng:null!==d&&void 0!==d?d:null,expectedTime:e.expecteddeliverytime||null}})).filter(Boolean).sort(((e,t)=>e.step-t.step));je(d)}catch(o){(0,H.k)(null===o||void 0===o?void 0:o.message,"error",2e3),je([])}finally{we(!1)}},Te=(0,n.useMemo)((()=>Pe?Pe.reduce(((e,t)=>e+(Number(t.deliveryamt)||0)),0):0),[Pe]),Ee=[{key:"riders",label:"Active Riders",color:J,icon:D.bsz,value:Ie.riders},{key:"orders",label:"Total Orders",color:"#0ea5e9",icon:D.HU2,value:Ie.orders},{key:"delivered",label:"Delivered",color:"#10b981",icon:D.cAP,value:Ie.delivered},{key:"amount",label:"Total Amount",color:"#f59e0b",icon:D.S75,value:ie(Te)}];return(0,O.jsxs)(O.Fragment,{children:[(De||pe)&&(0,O.jsx)(_.A,{}),(0,O.jsx)(W.A,{title:"Riders Summary",subtitle:"Live \xb7 ".concat(F||"All Zones"," \xb7 ").concat(le),live:!0,action:(0,O.jsx)(T.A,{locaName:F,setAppId:ue,setLocoName:K,pill:!0,accentColor:J,icon:(0,O.jsx)(D.HPi,{size:14}),placeholder:"Select Zone",paperComponent:te,sx:{width:{xs:"100%",sm:280},zIndex:100}})}),(0,O.jsx)(p.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:Ee.map((e=>{var t;const r=e.icon;return(0,O.jsx)(p.Ay,{item:!0,xs:6,sm:6,md:3,children:(0,O.jsx)(N.A,{title:e.label,value:null!==(t=e.value)&&void 0!==t?t:0,icon:(0,O.jsx)(r,{size:20}),color:e.color,loading:De})},e.key)}))}),(0,O.jsx)(s.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:V.radiusCard/8,borderTopRightRadius:V.radiusCard/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:V.borderSubtle,borderBottom:0,background:"#fff"},children:(0,O.jsxs)(m.A,{direction:{xs:"column",sm:"row"},alignItems:{xs:"stretch",sm:"center"},justifyContent:"space-between",spacing:1.25,children:[(0,O.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1.25,flexWrap:"wrap",children:[(0,O.jsx)(re,{color:J,size:32,children:(0,O.jsx)(D.bsz,{size:18})}),(0,O.jsxs)(m.A,{children:[(0,O.jsxs)(x.A,{variant:"caption",sx:{fontWeight:800,color:V.textSecondary,letterSpacing:.6,textTransform:"uppercase"},children:["Orders \xb7 ",le]}),(0,O.jsxs)(x.A,{variant:"body2",sx:{color:V.textPrimary,fontWeight:700},children:[Re.length," riders \xb7 ",Ie.orders," orders"]})]}),(0,O.jsx)(c.A,{title:"Date Filter",placement:"top",children:(0,O.jsxs)(d.A,{onClick:()=>X(!0),sx:{display:"inline-flex",alignItems:"center",gap:.75,px:1.25,py:.75,borderRadius:999,cursor:"pointer",bgcolor:$("#f59e0b"),border:"1.5px solid ".concat(Q("#f59e0b")),color:"#f59e0b",fontWeight:800,fontSize:12,ml:1,transition:"all 0.18s","&:hover":{borderColor:"#f59e0b",boxShadow:"0 0 0 3px ".concat(Z("#f59e0b"))}},children:[(0,O.jsx)(D.Ki0,{size:14}),R()(r).format("DD/MM/YY")," \u2013 ",R()(P).format("DD/MM/YY")]})})]}),(0,O.jsx)(d.A,{sx:{width:{xs:"100%",sm:280,lg:340},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,O.jsx)(E.A,{value:ye,onChange:ke,onDebouncedChange:ze,placeholder:"Search riders (ctrl+k)",sx:{m:0,width:"100%",borderRadius:999,bgcolor:"#ffffff","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:1.5},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(Z(J))}}})})]})}),(0,O.jsxs)(s.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:V.radiusCard/8,borderBottomRightRadius:V.radiusCard/8,border:"1px solid",borderColor:V.borderSubtle,overflow:"hidden",background:"#fff"},children:[t?(0,O.jsxs)(U.nV,{scroll:!0,children:[De&&(0,O.jsx)(m.A,{alignItems:"center",sx:{py:4},children:(0,O.jsx)(x.A,{variant:"caption",sx:{color:V.textMuted,fontWeight:700},children:"Loading riders\u2026"})}),Re&&0!==Re.length||De?Re.map(((e,t)=>{const r=de===e.userid,o=Math.max(Number(e.charges)||0,Number(e.deliveryamt)||0),n="".concat((null===e||void 0===e?void 0:e.firstname)||""," ").concat((null===e||void 0===e?void 0:e.lastname)||"").trim()||"\u2014";return(0,O.jsxs)(U.pg,{accent:J,selected:r,header:(0,O.jsxs)(m.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,O.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1,sx:{minWidth:0},children:[(0,O.jsx)(re,{color:J,size:36,children:(0,O.jsx)(D.LTk,{size:18})}),(0,O.jsxs)(m.A,{sx:{minWidth:0},children:[(0,O.jsx)(x.A,{variant:"subtitle2",sx:{fontWeight:700,color:V.textPrimary},noWrap:!0,children:n}),(0,O.jsxs)(x.A,{variant:"caption",sx:{color:V.textSecondary},children:["#",String(t+1).padStart(2,"0")," \xb7 ID #",e.userid]})]})]}),(0,O.jsxs)(m.A,{direction:"row",spacing:.75,sx:{flexShrink:0},children:[(0,O.jsx)(c.A,{title:"View planned route",placement:"top",children:(0,O.jsx)(A.A,{size:"small",onClick:()=>{ve({userid:null===e||void 0===e?void 0:e.userid,name:"".concat((null===e||void 0===e?void 0:e.firstname)||""," ").concat((null===e||void 0===e?void 0:e.lastname)||"").trim()||"Rider ".concat(null===e||void 0===e?void 0:e.userid)}),je(null),fe(!0),Me(null===e||void 0===e?void 0:e.userid)},sx:{bgcolor:q("#0ea5e9"),color:"#0ea5e9",border:"1px solid ".concat(Q("#0ea5e9")),"&:hover":{bgcolor:"#0ea5e9",color:"#fff"}},children:(0,O.jsx)(D.Cd7,{size:14})})}),(0,O.jsx)(c.A,{title:r?"Collapse breakdown":"Expand breakdown",placement:"top",children:(0,O.jsx)(A.A,{size:"small",onClick:()=>{const t=!r;xe(t?e.userid:null),t&&_e(e.userid)},sx:{bgcolor:r?J:q(J),color:r?"#fff":J,border:"1px solid ".concat(Q(J)),"&:hover":{bgcolor:J,color:"#fff"}},children:r?(0,O.jsx)(D.Xbk,{size:16}):(0,O.jsx)(D.j1Q,{size:16})})})]})]}),children:[(0,O.jsxs)(U.FG,{columns:2,children:[(0,O.jsx)(U.pY,{label:"Orders",children:(0,O.jsx)(ne,{value:e.totalorders,color:J,icon:(0,O.jsx)(D.F6S,{size:11})})}),(0,O.jsx)(U.pY,{label:"Delivered",children:(0,O.jsx)(ne,{value:e.delivered,color:"#10b981",icon:(0,O.jsx)(D.mU9,{size:11})})}),(0,O.jsx)(U.pY,{label:"Pending",children:(0,O.jsx)(ne,{value:e.pending,color:"#f59e0b",icon:(0,O.jsx)(D.tX0,{size:11})})}),(0,O.jsx)(U.pY,{label:"Cancelled",children:(0,O.jsx)(ne,{value:e.cancelled,color:"#ef4444",icon:(0,O.jsx)(D.uDv,{size:11})})}),(0,O.jsx)(U.pY,{label:"KMS",children:(0,O.jsx)(oe,{color:"#ef4444",icon:(0,O.jsx)(D.xI$,{size:11}),label:"".concat(Number(e.kms||0).toFixed(2)," km"),tooltip:"KMS"})}),(0,O.jsx)(U.pY,{label:"Actual KMS",children:(0,O.jsx)(oe,{color:"#10b981",icon:(0,O.jsx)(D.xI$,{size:11}),label:"".concat(Number(e.cumulativekms||0).toFixed(2)," km"),tooltip:"Actual KMS"})}),(0,O.jsx)(U.pY,{label:"Amount",full:!0,children:(0,O.jsx)(oe,{color:J,icon:(0,O.jsx)(D.YHz,{size:11}),label:ie(o).replace("\u20b9","").trim(),tooltip:"Total Amount",minWidth:100})})]}),r&&(0,O.jsx)(f.A,{in:r,timeout:"auto",unmountOnExit:!0,children:(0,O.jsxs)(s.A,{elevation:0,sx:{mt:1.25,borderRadius:V.radiusCard/8,border:"1px solid",borderColor:V.borderSubtle,overflow:"hidden",boxShadow:V.shadowSoft},children:[(0,O.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1,sx:{px:1.5,py:1,background:"#ffffff",borderBottom:"1px solid ".concat(V.borderSubtle)},children:[(0,O.jsx)(re,{color:J,size:24,selected:!0,children:(0,O.jsx)(D.Itr,{size:12})}),(0,O.jsx)(x.A,{variant:"caption",sx:{fontWeight:800,color:V.textPrimary,letterSpacing:.6,textTransform:"uppercase"},children:"Tenant Breakdown"})]}),(0,O.jsxs)(m.A,{divider:(0,O.jsx)(g.A,{}),children:[pe&&(0,O.jsx)(x.A,{variant:"caption",sx:{color:V.textMuted,textAlign:"center",py:2},children:"Loading\u2026"}),pe||ae&&0!==ae.length?null===ae||void 0===ae?void 0:ae.map(((e,t)=>(0,O.jsxs)(d.A,{sx:{p:1.5},children:[(0,O.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mb:1},children:[(0,O.jsx)(re,{color:"#0ea5e9",size:24,children:(0,O.jsx)(D.Itr,{size:12})}),(0,O.jsx)(x.A,{variant:"subtitle2",sx:{fontWeight:700,color:V.textPrimary},noWrap:!0,children:e.tenantname||"\u2014"})]}),(0,O.jsxs)(U.FG,{columns:2,children:[(0,O.jsx)(U.pY,{label:"All",children:(0,O.jsx)(ne,{value:e.totalorders,color:J,icon:(0,O.jsx)(D.F6S,{size:10})})}),(0,O.jsx)(U.pY,{label:"Completed",children:(0,O.jsx)(ne,{value:e.deliveriescompleted,color:"#10b981",icon:(0,O.jsx)(D.mU9,{size:10})})}),(0,O.jsx)(U.pY,{label:"Pending",children:(0,O.jsx)(ne,{value:e.deliveriespending,color:"#f59e0b",icon:(0,O.jsx)(D.tX0,{size:10})})}),(0,O.jsx)(U.pY,{label:"Cancelled",children:(0,O.jsx)(ne,{value:e.deliveriescancelled,color:"#ef4444",icon:(0,O.jsx)(D.uDv,{size:10})})}),(0,O.jsx)(U.pY,{label:"KMS",children:(0,O.jsx)(oe,{color:"#ef4444",icon:(0,O.jsx)(D.xI$,{size:10}),label:"".concat(Number(e.kms||0).toFixed(2)," km"),tooltip:"KMS"})}),(0,O.jsx)(U.pY,{label:"Actual KMS",children:(0,O.jsx)(oe,{color:"#10b981",icon:(0,O.jsx)(D.xI$,{size:10}),label:"".concat(Number(e.cumulativekms||0).toFixed(2)," km"),tooltip:"Actual KMS"})}),(0,O.jsx)(U.pY,{label:"Amount",full:!0,children:(0,O.jsx)(oe,{color:J,icon:(0,O.jsx)(D.YHz,{size:10}),label:ie(Math.max(Number(e.charges)||0,Number(e.deliveryamt)||0)).replace("\u20b9","").trim(),tooltip:"Total Amount",minWidth:100})})]})]},"".concat(e.tenantname,"-").concat(t)))):(0,O.jsx)(x.A,{variant:"caption",sx:{color:V.textMuted,textAlign:"center",py:2},children:"No tenant breakdown available."})]})]})})]},e.userid||t)})):(0,O.jsxs)(m.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,O.jsx)(a.A,{sx:{width:64,height:64,bgcolor:q("#94a3b8"),color:V.textMuted},children:(0,O.jsx)(D.bsz,{size:28})}),(0,O.jsx)(x.A,{variant:"subtitle1",sx:{fontWeight:700,color:V.textPrimary},children:"No riders to show"}),(0,O.jsx)(x.A,{variant:"caption",sx:{color:V.textSecondary},children:ye?"Try a different keyword.":"Pick a zone or date range to load the summary."})]})]}):(0,O.jsx)(j.A,{sx:{maxHeight:{xs:"calc(100vh - 220px)",md:"calc(100vh - 190px)"},"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:Q(J),borderRadius:8,"&:hover":{backgroundColor:J}},"&::-webkit-scrollbar-track":{backgroundColor:V.surfaceAlt}},children:(0,O.jsxs)(b.A,{stickyHeader:!0,sx:{minWidth:{xs:880,md:1080}},children:[(0,O.jsx)(v.A,{children:(0,O.jsxs)(S.A,{sx:{"& th":{backgroundColor:V.surfaceAlt,color:V.textSecondary,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(V.borderSubtle),py:{xs:1,md:1.25},px:{xs:1,md:2}}},children:[(0,O.jsx)(w.A,{children:"#"}),(0,O.jsx)(w.A,{children:"Rider"}),(0,O.jsx)(w.A,{align:"center",children:"Orders"}),(0,O.jsx)(w.A,{align:"center",children:"Pending"}),(0,O.jsx)(w.A,{align:"center",children:"Cancelled"}),(0,O.jsx)(w.A,{align:"center",children:"Delivered"}),(0,O.jsx)(w.A,{align:"center",children:"KMS"}),(0,O.jsx)(w.A,{align:"center",children:"Amount"}),(0,O.jsx)(w.A,{align:"right",children:"Action"})]})}),(0,O.jsxs)(y.A,{children:[De&&(0,O.jsx)(L.r,{col:5}),Re&&0!==Re.length||De?Re.map(((e,t)=>{const r=de===e.userid,o=Math.max(Number(e.charges)||0,Number(e.deliveryamt)||0);return(0,O.jsxs)(n.Fragment,{children:[(0,O.jsxs)(S.A,{sx:{transition:"background-color 0.15s","& td":{borderBottom:r?"none":"1px solid ".concat(V.divider),py:{xs:1,md:1.5},px:{xs:1,md:2}},"&:hover":{backgroundColor:r?"#fff":V.surfaceAlt},bgcolor:r?$(J):"transparent"},children:[(0,O.jsx)(w.A,{children:(0,O.jsx)(x.A,{variant:"caption",sx:{fontWeight:700,color:V.textMuted},children:String(t+1).padStart(2,"0")})}),(0,O.jsx)(w.A,{children:(0,O.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,O.jsx)(re,{color:J,size:36,children:(0,O.jsx)(D.LTk,{size:18})}),(0,O.jsxs)(m.A,{children:[(0,O.jsx)(x.A,{variant:"subtitle2",sx:{fontWeight:700,color:V.textPrimary,whiteSpace:"nowrap"},children:"".concat((null===e||void 0===e?void 0:e.firstname)||""," ").concat((null===e||void 0===e?void 0:e.lastname)||"").trim()||"\u2014"}),(0,O.jsxs)(x.A,{variant:"caption",sx:{color:V.textSecondary},children:["ID #",e.userid]})]})]})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsx)(ne,{value:e.totalorders,color:J,icon:(0,O.jsx)(D.F6S,{size:11})})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsx)(ne,{value:e.pending,color:"#f59e0b",icon:(0,O.jsx)(D.tX0,{size:11})})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsx)(ne,{value:e.cancelled,color:"#ef4444",icon:(0,O.jsx)(D.uDv,{size:11})})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsx)(ne,{value:e.delivered,color:"#10b981",icon:(0,O.jsx)(D.mU9,{size:11})})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsxs)(m.A,{direction:"column",spacing:.5,alignItems:"center",children:[(0,O.jsx)(oe,{color:"#ef4444",icon:(0,O.jsx)(D.xI$,{size:11}),label:"".concat(Number(e.kms||0).toFixed(2)," km"),tooltip:"KMS"}),(0,O.jsx)(oe,{color:"#10b981",icon:(0,O.jsx)(D.xI$,{size:11}),label:"".concat(Number(e.cumulativekms||0).toFixed(2)," km"),tooltip:"Actual KMS"})]})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsx)(oe,{color:J,icon:(0,O.jsx)(D.YHz,{size:11}),label:ie(o).replace("\u20b9","").trim(),tooltip:"Total Amount",minWidth:100})}),(0,O.jsx)(w.A,{align:"right",children:(0,O.jsxs)(m.A,{direction:"row",spacing:.75,justifyContent:"flex-end",children:[(0,O.jsx)(c.A,{title:"View planned route",placement:"top",children:(0,O.jsx)(A.A,{size:"small",onClick:()=>{ve({userid:null===e||void 0===e?void 0:e.userid,name:"".concat((null===e||void 0===e?void 0:e.firstname)||""," ").concat((null===e||void 0===e?void 0:e.lastname)||"").trim()||"Rider ".concat(null===e||void 0===e?void 0:e.userid)}),je(null),fe(!0),Me(null===e||void 0===e?void 0:e.userid)},sx:{bgcolor:q("#0ea5e9"),color:"#0ea5e9",border:"1px solid ".concat(Q("#0ea5e9")),"&:hover":{bgcolor:"#0ea5e9",color:"#fff"}},children:(0,O.jsx)(D.Cd7,{size:14})})}),(0,O.jsx)(c.A,{title:r?"Collapse breakdown":"Expand breakdown",placement:"top",children:(0,O.jsx)(A.A,{size:"small",onClick:()=>{const t=!r;xe(t?e.userid:null),t&&_e(e.userid)},sx:{bgcolor:r?J:q(J),color:r?"#fff":J,border:"1px solid ".concat(Q(J)),"&:hover":{bgcolor:J,color:"#fff"}},children:r?(0,O.jsx)(D.Xbk,{size:16}):(0,O.jsx)(D.j1Q,{size:16})})})]})})]}),r&&(0,O.jsx)(S.A,{children:(0,O.jsx)(w.A,{colSpan:9,sx:{p:0,borderBottom:"1px solid ".concat(V.divider),bgcolor:$(J)},children:(0,O.jsx)(f.A,{in:r,timeout:"auto",unmountOnExit:!0,children:(0,O.jsx)(d.A,{sx:{p:{xs:1,md:2}},children:(0,O.jsxs)(s.A,{elevation:0,sx:{borderRadius:V.radiusCard/8,border:"1px solid",borderColor:V.borderSubtle,overflow:"hidden",boxShadow:V.shadowSoft},children:[(0,O.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1,sx:{px:2,py:1.25,background:"#ffffff",borderBottom:"1px solid ".concat(V.borderSubtle)},children:[(0,O.jsx)(re,{color:J,size:28,selected:!0,children:(0,O.jsx)(D.Itr,{size:14})}),(0,O.jsxs)(x.A,{variant:"caption",sx:{fontWeight:800,color:V.textPrimary,letterSpacing:.6,textTransform:"uppercase"},children:["Tenant Breakdown \xb7 ","".concat((null===e||void 0===e?void 0:e.firstname)||""," ").concat((null===e||void 0===e?void 0:e.lastname)||"").trim()]})]}),(0,O.jsxs)(b.A,{size:"small",children:[(0,O.jsx)(v.A,{children:(0,O.jsxs)(S.A,{sx:{"& th":{backgroundColor:V.surfaceAlt,color:V.textSecondary,fontSize:10,fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(V.borderSubtle),py:1,px:1.5}},children:[(0,O.jsx)(w.A,{children:"#"}),(0,O.jsx)(w.A,{children:"Client"}),(0,O.jsx)(w.A,{align:"center",children:"All"}),(0,O.jsx)(w.A,{align:"center",children:"Pending"}),(0,O.jsx)(w.A,{align:"center",children:"Completed"}),(0,O.jsx)(w.A,{align:"center",children:"Cancelled"}),(0,O.jsx)(w.A,{align:"center",children:"KMS"}),(0,O.jsx)(w.A,{align:"center",children:"Amount"})]})}),(0,O.jsxs)(y.A,{children:[pe&&(0,O.jsx)(L.r,{col:4}),pe||ae&&0!==ae.length?null===ae||void 0===ae?void 0:ae.map(((e,t)=>(0,O.jsxs)(S.A,{sx:{"& td":{borderBottom:"1px solid ".concat(V.divider),py:1,px:1.5},"&:hover":{backgroundColor:V.surfaceAlt}},children:[(0,O.jsx)(w.A,{children:(0,O.jsx)(x.A,{variant:"caption",sx:{fontWeight:700,color:V.textMuted},children:String(t+1).padStart(2,"0")})}),(0,O.jsx)(w.A,{children:(0,O.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:.75,children:[(0,O.jsx)(re,{color:"#0ea5e9",size:24,children:(0,O.jsx)(D.Itr,{size:12})}),(0,O.jsx)(x.A,{variant:"subtitle2",sx:{fontWeight:700,color:V.textPrimary,whiteSpace:"nowrap"},children:e.tenantname||"\u2014"})]})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsx)(ne,{value:e.totalorders,color:J,icon:(0,O.jsx)(D.F6S,{size:10})})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsx)(ne,{value:e.deliveriespending,color:"#f59e0b",icon:(0,O.jsx)(D.tX0,{size:10})})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsx)(ne,{value:e.deliveriescompleted,color:"#10b981",icon:(0,O.jsx)(D.mU9,{size:10})})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsx)(ne,{value:e.deliveriescancelled,color:"#ef4444",icon:(0,O.jsx)(D.uDv,{size:10})})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsxs)(m.A,{direction:"column",spacing:.5,alignItems:"center",children:[(0,O.jsx)(oe,{color:"#ef4444",icon:(0,O.jsx)(D.xI$,{size:10}),label:"".concat(Number(e.kms||0).toFixed(2)," km"),tooltip:"KMS"}),(0,O.jsx)(oe,{color:"#10b981",icon:(0,O.jsx)(D.xI$,{size:10}),label:"".concat(Number(e.cumulativekms||0).toFixed(2)," km"),tooltip:"Actual KMS"})]})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsx)(oe,{color:J,icon:(0,O.jsx)(D.YHz,{size:10}),label:ie(Math.max(Number(e.charges)||0,Number(e.deliveryamt)||0)).replace("\u20b9","").trim(),tooltip:"Total Amount",minWidth:100})})]},"".concat(e.tenantname,"-").concat(t)))):(0,O.jsx)(S.A,{children:(0,O.jsx)(w.A,{colSpan:8,sx:{py:3},children:(0,O.jsx)(x.A,{variant:"caption",sx:{color:V.textMuted,textAlign:"center",display:"block"},children:"No tenant breakdown available."})})})]})]})]})})})})})]},e.userid||t)})):(0,O.jsx)(S.A,{children:(0,O.jsx)(w.A,{colSpan:9,sx:{py:6},children:(0,O.jsxs)(m.A,{alignItems:"center",spacing:1.5,children:[(0,O.jsx)(a.A,{sx:{width:64,height:64,bgcolor:q("#94a3b8"),color:V.textMuted},children:(0,O.jsx)(D.bsz,{size:28})}),(0,O.jsx)(x.A,{variant:"subtitle1",sx:{fontWeight:700,color:V.textPrimary},children:"No riders to show"}),(0,O.jsx)(x.A,{variant:"caption",sx:{color:V.textSecondary},children:ye?"Try a different keyword.":"Pick a zone or date range to load the summary."})]})})})]})]})}),Re.length>0&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(g.A,{}),(0,O.jsxs)(m.A,{direction:"row",alignItems:"center",justifyContent:"flex-end",spacing:1.5,sx:{px:2,py:1.5,background:"#ffffff"},children:[(0,O.jsx)(x.A,{variant:"caption",sx:{fontWeight:800,color:V.textSecondary,letterSpacing:.6,textTransform:"uppercase"},children:"Grand Total"}),(0,O.jsx)(k.A,{label:ie(Te),sx:{fontWeight:800,fontSize:13,color:"#fff",background:"linear-gradient(135deg, ".concat(J," 0%, ").concat(ee," 100%)"),boxShadow:"0 6px 16px ".concat(Z(J))}})]})]})]}),(0,O.jsx)(C.A,{maxWidth:"xl",fullScreen:!0,open:Ae,onClose:()=>{fe(!1),je(null),ve(null)},children:(0,O.jsx)(z.A,{sx:{p:0,height:"100vh"},children:(0,O.jsx)(B,{details:ge,loading:Se,riderName:null===be||void 0===be?void 0:be.name,dateRange:"".concat(R()(r).format("DD/MM/YY")," \u2013 ").concat(R()(P).format("DD/MM/YY")),onClose:()=>{fe(!1),je(null),ve(null)}})})}),(0,O.jsx)(M.A,{open:G,onClose:()=>X(!1),onSelect:e=>{o(e.startDate),Y(e.endDate),se(e.label)}})]})}},23787:(e,t,r)=>{r.d(t,{FG:()=>u,nV:()=>x,pY:()=>p,pg:()=>h});var o=r(89379),n=r(80045),i=r(93230),l=r(2235),s=r(16491),a=r(82053),c=r(44414);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:t,scroll:r=!1,onScroll:l,sx:s}=e,a=(0,n.A)(e,d);return(0,c.jsx)(i.A,(0,o.A)((0,o.A)({spacing:1.25,onScroll:l,sx:(0,o.A)((0,o.A)({p:1.5},r&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),s)},a),{},{children:t}))},h=e=>{let{accent:t="#662582",header:r,footer:n,selected:i=!1,onClick:a,children:d,sx:x}=e;return(0,c.jsxs)(l.A,{elevation:0,onClick:a,sx:(0,o.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:i?t:"#e2e8f0",background:i?"".concat(t,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,c.jsx)(s.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:t}}),(0,c.jsxs)(s.A,{sx:{p:1.5,pl:2},children:[r,d,n]})]})},u=e=>{let{children:t,columns:r=2,sx:n}=e;return(0,c.jsx)(s.A,{sx:(0,o.A)({display:"grid",gridTemplateColumns:"repeat(".concat(r,", minmax(0, 1fr))"),gap:1,mt:1.25},n),children:t})},p=e=>{let{label:t,value:r,children:o,full:n=!1,align:i="left"}=e;return(0,c.jsxs)(s.A,{sx:{gridColumn:n?"1 / -1":"auto",minWidth:0,textAlign:i},children:[(0,c.jsx)(a.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:t}),(0,c.jsx)(s.A,{sx:{mt:.25,minWidth:0},children:void 0!==o?o:(0,c.jsx)(a.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==r&&void 0!==r?r:"\u2014"})})]})}},27001:(e,t,r)=>{r.d(t,{A:()=>s});var o=r(93230),n=r(16491),i=r(82053),l=r(44414);function s(e){let{title:t,subtitle:r,live:s=!1,action:a}=e;return(0,l.jsxs)(o.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,l.jsxs)(n.A,{sx:{minWidth:0},children:[(0,l.jsx)(i.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:t}),r&&(0,l.jsxs)(o.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[s&&(0,l.jsx)(n.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,l.jsx)(i.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:r})]})]}),a&&(0,l.jsx)(n.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:a})]})}},35678:(e,t,r)=>{r.d(t,{A:()=>v});var o=r(9950),n=r(96583),i=r(40033),l=r(82053),s=r(28170),a=r(93230),c=r(10226),d=r(55916),x=r(4159),h=r.n(x),u=r(56712),p=r(81417),m=r(96600),A=r(53132),f=r(94289),g=r(57326),j=r(50624),b=r(44414);const v=e=>{let{open:t,onClose:r,onSelect:x}=e;const[v,S]=(0,o.useState)(null);return(0,b.jsxs)(n.A,{open:t,onClose:r,children:[(0,b.jsx)(i.A,{align:"left",children:(0,b.jsx)(l.A,{variant:"h4",children:"Select Filter Options"})}),(0,b.jsx)(s.A,{sx:{width:"100%"},className:"datedialog",children:(0,b.jsx)(d.U,{open:t,toggle:r,id:"daterange1",onChange:e=>{S({startDate:h()(e.startDate).format("YYYY-MM-DD"),endDate:h()(e.endDate).format("YYYY-MM-DD"),label:e.label||"custom"})},definedRanges:[{label:"Today",startDate:new Date,endDate:new Date},{label:"Yesterday",startDate:(0,u.A)(new Date,-1),endDate:(0,u.A)(new Date,-1)},{label:"Tomorrow",startDate:(0,u.A)(new Date,1),endDate:(0,u.A)(new Date,1)},{label:"This Week",startDate:(0,p.A)(new Date),endDate:(0,m.A)(new Date)},{label:"Last Week",startDate:(0,p.A)((0,A.A)(new Date,-1)),endDate:(0,m.A)((0,A.A)(new Date,-1))},{label:"Last 7 Days",startDate:(0,A.A)(new Date,-1),endDate:new Date},{label:"This Month",startDate:(0,f.A)(new Date),endDate:(0,g.A)(new Date)},{label:"Last Month",startDate:(0,f.A)((0,j.A)(new Date,-1)),endDate:(0,g.A)((0,j.A)(new Date,-1))}]})}),(0,b.jsx)(a.A,{direction:"row",justifyContent:"flex-end",sx:{width:"100%",p:2},children:(0,b.jsx)(c.A,{variant:"contained",size:"small",onClick:()=>{v?(x(v),r()):r()},children:"OK"})})]})}},36803:(e,t,r)=>{r.d(t,{A:()=>x});var o=r(48089),n=r(50704),i=r(93230),l=r(16491),s=r(82053),a=r(82917),c=r(41413),d=r(44414);function x(e){let{title:t,value:r,icon:x,color:h="#662582",caption:u,loading:p=!1}=e;return(0,d.jsx)(o.A,{sx:{height:"100%"},children:(0,d.jsx)(n.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,d.jsxs)(i.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,d.jsxs)(l.A,{sx:{minWidth:0,flex:1},children:[(0,d.jsx)(s.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t}),p?(0,d.jsx)(a.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,d.jsx)(s.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r}),u&&(0,d.jsx)(s.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:u})]}),x&&(0,d.jsx)(c.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(h,"14"),color:h,flexShrink:0},children:x})]})})})}},46639:(e,t,r)=>{r.d(t,{A:()=>_});var o=r(57528),n=r(98587),i=r(58168),l=r(9950),s=r(72004),a=r(3484),c=r(88283),d=r(89548),x=r(18463),h=r(59254),u=r(45558),p=r(1614);function m(e){return(0,p.Ay)("MuiCircularProgress",e)}(0,u.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var A,f,g,j,b=r(44414);const v=["className","color","disableShrink","size","style","thickness","value","variant"];let S,w,y,k;const C=44,z=(0,c.i7)(S||(S=A||(A=(0,o.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),D=(0,c.i7)(w||(w=f||(f=(0,o.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),P=(0,h.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["color".concat((0,d.A)(r.color))]]}})((e=>{let{ownerState:t,theme:r}=e;return(0,i.A)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,c.AH)(y||(y=g||(g=(0,o.A)(["\n animation: "," 1.4s linear infinite;\n "]))),z)})),R=(0,h.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),I=(0,h.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t["circle".concat((0,d.A)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:r}=e;return(0,i.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,c.AH)(k||(k=j||(j=(0,o.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),D)})),_=l.forwardRef((function(e,t){const r=(0,x.b)({props:e,name:"MuiCircularProgress"}),{className:o,color:l="primary",disableShrink:c=!1,size:h=40,style:u,thickness:p=3.6,value:A=0,variant:f="indeterminate"}=r,g=(0,n.A)(r,v),j=(0,i.A)({},r,{color:l,disableShrink:c,size:h,thickness:p,value:A,variant:f}),S=(e=>{const{classes:t,variant:r,color:o,disableShrink:n}=e,i={root:["root",r,"color".concat((0,d.A)(o))],svg:["svg"],circle:["circle","circle".concat((0,d.A)(r)),n&&"circleDisableShrink"]};return(0,a.A)(i,m,t)})(j),w={},y={},k={};if("determinate"===f){const e=2*Math.PI*((C-p)/2);w.strokeDasharray=e.toFixed(3),k["aria-valuenow"]=Math.round(A),w.strokeDashoffset="".concat(((100-A)/100*e).toFixed(3),"px"),y.transform="rotate(-90deg)"}return(0,b.jsx)(P,(0,i.A)({className:(0,s.A)(S.root,o),style:(0,i.A)({width:h,height:h},y,u),ownerState:j,ref:t,role:"progressbar"},k,g,{children:(0,b.jsx)(R,{className:S.svg,ownerState:j,viewBox:"".concat(22," ").concat(22," ").concat(C," ").concat(C),children:(0,b.jsx)(I,{className:S.circle,style:w,ownerState:j,cx:C,cy:C,r:(C-p)/2,fill:"none",strokeWidth:p})})}))}))},56311:(e,t,r)=>{r.d(t,{A:()=>u});var o=r(89379),n=r(9950),i=r(2660),l=r(2046),s=r(83274),a=r(25333),c=r(97125),d=r(7762),x=r(52097),h=r(44414);const u=e=>{let{value:t,onChange:r,onDebouncedChange:u,debounceTime:p=500,placeholder:m="Search (ctrl+k)",sx:A}=e;const f=(0,n.useRef)(null),[g]=(0,x.d7)(t,p);return(0,n.useEffect)((()=>{u&&u(g)}),[g,u]),(0,n.useEffect)((()=>{const e=e=>{var t;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(t=f.current)||void 0===t||t.focus());"Escape"===e.key&&document.activeElement===f.current&&f.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,h.jsx)(i.A,{sx:(0,o.A)({},A),inputRef:f,placeholder:m,autoComplete:"off",value:t,fullWidth:!0,onChange:e=>r(e.target.value),startAdornment:(0,h.jsx)(l.A,{position:"start",sx:{mr:-.5},children:(0,h.jsx)(c.A,{})}),endAdornment:(0,h.jsx)(s.A,{title:"Clear",children:(0,h.jsx)(a.A,{sx:{visibility:t?"visible":"hidden"},onClick:()=>r(""),children:(0,h.jsx)(d.A,{})})})})}},59212:(e,t,r)=>{r.d(t,{A:()=>h});var o=r(89379),n=r(9950),i=r(93230),l=r(41413),s=r(77922),a=r(29925),c=r(26910),d=r(31222),x=r(44414);const h=(0,n.forwardRef)(((e,t)=>{let{setAppId:r,setLocoName:h,setPage:u,sx:p,textfeildSx:m,textfieldSx:A,pill:f=!1,accentColor:g="#6366f1",icon:j,placeholder:b="Select Zone",paperComponent:v}=e;const[S,w]=(0,n.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,n.useEffect)((()=>{0===S.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const t=await c.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(t.data.status){const e=[...t.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),w(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[S.length]);const y=e=>"".concat(g).concat(e),k=y("26"),C=y("18"),z=f?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(k)},"&.Mui-focused fieldset":{borderColor:g,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},D=f&&(0,x.jsx)(i.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,x.jsx)(l.A,{sx:{width:24,height:24,bgcolor:C,color:g,transition:"background-color 0.15s, color 0.15s"},children:j||(0,x.jsx)(d.HPi,{size:14})})});return(0,x.jsx)(s.A,{id:"location-autocomplete",options:S||[],getOptionLabel:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.locationname)&&void 0!==t?t:""},PaperComponent:v,sx:(0,o.A)({},p),onChange:(e,t,o)=>{"clear"===o?(null===r||void 0===r||r(0),null===h||void 0===h||h(""),null===u||void 0===u||u(0)):t&&(null===r||void 0===r||r(t.applocationid),null===h||void 0===h||h(t.locationname),null===u||void 0===u||u(0))},renderInput:e=>f?(0,x.jsx)(a.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,placeholder:b,InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:D}),sx:(0,o.A)((0,o.A)({},z),A||m||{})})):(0,x.jsx)(a.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,label:"Select Zones",sx:(0,o.A)({},A||m||{})}))})}))},96646:(e,t,r)=>{r.d(t,{r:()=>a});var o=r(9213),n=r(21671),i=r(82917),l=r(93230),s=r(44414);const a=e=>{let{rowsPerPage:t=5,col:r=1}=e;return(0,s.jsx)(s.Fragment,{children:Array.from(new Array(t)).map(((e,t)=>(0,s.jsxs)(o.A,{children:[(0,s.jsx)(n.A,{children:(0,s.jsx)(i.A,{variant:"circular",width:24,height:24})}),(0,s.jsx)(n.A,{children:(0,s.jsx)(i.A,{variant:"text",width:30})}),Array.from({length:r}).map(((e,t)=>(0,s.jsx)(n.A,{children:(0,s.jsxs)(l.A,{spacing:.5,children:[(0,s.jsx)(i.A,{variant:"text",width:100}),(0,s.jsx)(i.A,{variant:"text",width:80})]})},t))),(0,s.jsx)(n.A,{children:(0,s.jsx)(i.A,{variant:"text",width:150})}),(0,s.jsx)(n.A,{children:(0,s.jsx)(i.A,{variant:"rounded",width:60,height:24})}),(0,s.jsx)(n.A,{align:"center",children:(0,s.jsxs)(l.A,{direction:"row",spacing:1,justifyContent:"flex-end",children:[(0,s.jsx)(i.A,{variant:"circular",width:28,height:28}),(0,s.jsx)(i.A,{variant:"circular",width:28,height:28})]})})]},t)))})}}}]); \ No newline at end of file +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[181],{10181:(e,t,r)=>{r.r(t),r.d(t,{default:()=>le});var o=r(22555),n=r(85672),i=r(66157),l=r(68320),s=r(55235),a=r(97043),c=r(23440),d=r(48738),x=r(2866),h=r(69039),u=r(76264),p=r(1939),m=r(71392),A=r(11969),f=r(1150),g=r(58571),j=r(83209),b=r(72486),v=r(54016),S=r(50755),w=r(1596),y=r(81802),k=r(81062),C=r(58689),z=r(5670),D=r(48952),P=r(46077),R=r.n(P),I=r(81425),_=r(52351),M=r(35678),T=r(59212),E=r(56311),W=r(27001),N=r(36803),L=r(96646),Y=r(25045),F=r(12010),O=r(65908);const K={width:"100%",height:"100%"};function B(e){let{details:t,loading:r,riderName:o,dateRange:i,onClose:l}=e;const s=(0,n.useRef)(null),[a,c]=(0,n.useState)(null),[h,u]=(0,n.useState)([]),[p,f]=(0,n.useState)(!1),{isLoaded:g}=(0,Y.KD)({googleMapsApiKey:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_API_URL:"https://mock-data-api-nextjs.vercel.app/",REACT_APP_AUTH0_CLIENT_ID:"",REACT_APP_AUTH0_DOMAIN:"",REACT_APP_AWS_APP_CLIENT_ID:"",REACT_APP_AWS_POOL_ID:"",REACT_APP_FIREBASE_API_KEY:"",REACT_APP_FIREBASE_APP_ID:"",REACT_APP_FIREBASE_AUTH_DOMAIN:"",REACT_APP_FIREBASE_MEASUREMENT_ID:"",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"",REACT_APP_FIREBASE_PROJECT_ID:"",REACT_APP_FIREBASE_STORAGE_BUCKET:"",REACT_APP_GOOGLE_MAPS_API_KEY:"AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8",REACT_APP_RIDER_ACCESS_ID:"AAAAILMpCEU:APA91bEavuOllBI6sFgYtxXAgNmAVwNA-MnCMHLGlR4_t7UqpLajAkdn3T0CZr_zaLBknLyim9ytFLMZgbeXmKqTad_PKCbqlYjHpaizVrLXtecxqyEy4UktIacK2UvHVUATHL-7VQQk",REACT_APP_STAFF_TOKEN:"",REACT_APP_URL:"https://jupiter.nearle.app/live/api/v1",REACT_APP_URL2:"https://jupiter.nearle.app/live/api/v2",REACT_APP_URL3:"https://jupiter.nearle.app/live/api/v3",REACT_APP_VERSION:"v2.1.0"}.REACT_APP_GOOGLE_MAPS_KEY}),j=(0,n.useMemo)((()=>(t||[]).map((e=>({lat:e.dropLat,lng:e.dropLng})))),[t]);(0,n.useEffect)((()=>{if(!g||!s.current||0===j.length)return;const e=new window.google.maps.LatLngBounds;j.forEach((t=>e.extend(t))),s.current.fitBounds(e,48)}),[g,j]),(0,n.useEffect)((()=>{if(!g||j.length<2)return void u([]);let e=!1;const t=new window.google.maps.DirectionsService,r=(e,r,o)=>new Promise(((n,i)=>{t.route({origin:e,destination:r,waypoints:o.map((e=>({location:e,stopover:!0}))),travelMode:window.google.maps.TravelMode.DRIVING},((e,t)=>{"OK"===t?n(e):i(new Error(t))}))}));return(async()=>{f(!0);try{const t=j,o=[];let n=0;for(;n({lat:e.lat(),lng:e.lng()})));o.length>0&&c.length>0&&c.shift(),o.push(...c),n+=i}e||u(o)}catch(t){e||u([])}finally{e||f(!1)}})(),()=>{e=!0}}),[g,j]);const b=(e,t)=>{const r=t?38:32,o=t?"#4D1C61":"#662582",n=encodeURIComponent('')+'')+''.concat(e,"")+"");return"data:image/svg+xml;charset=UTF-8,".concat(n)},v=(0,O.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1.5,sx:{px:2,py:1.25,borderBottom:"1px solid rgba(15, 23, 42, 0.08)",background:"linear-gradient(135deg, #662582 0%, #9255AB 100%)",color:"#fff",flexShrink:0},children:[(0,O.jsx)(D.pk7,{size:20}),(0,O.jsxs)(m.A,{sx:{flex:1,minWidth:0},children:[(0,O.jsxs)(x.A,{sx:{fontWeight:700,fontSize:15,lineHeight:1.2},children:["Planned route",o?" \u2014 ".concat(o):""]}),i&&(0,O.jsx)(x.A,{sx:{fontSize:12,opacity:.85},children:i})]}),t&&t.length>0&&(0,O.jsxs)(x.A,{sx:{fontSize:12,opacity:.9,fontWeight:600},children:[t.length," ",1===t.length?"stop":"stops",p?" \xb7 resolving route\u2026":""]}),l&&(0,O.jsx)(A.A,{size:"small",onClick:l,sx:{color:"#fff"},"aria-label":"Close",children:(0,O.jsx)(D.m6K,{})})]});return r||!g?(0,O.jsxs)(d.A,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[v,(0,O.jsxs)(m.A,{alignItems:"center",justifyContent:"center",sx:{flex:1,gap:1.5},children:[(0,O.jsx)(F.A,{size:32}),(0,O.jsx)(x.A,{sx:{color:"#64748b",fontSize:13},children:r?"Loading planned route\u2026":"Loading map\u2026"})]})]}):t&&0!==t.length?(0,O.jsxs)(d.A,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[v,(0,O.jsx)(d.A,{sx:{flex:1,minHeight:0},children:(0,O.jsxs)(Y.u6,{mapContainerStyle:K,onLoad:e=>s.current=e,center:j[0],zoom:14,options:{streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1},children:[h.length>0?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Y.Ro,{path:h,options:{strokeColor:"#662582",strokeOpacity:.25,strokeWeight:8}}),(0,O.jsx)(Y.Ro,{path:h,options:{strokeColor:"#662582",strokeOpacity:.95,strokeWeight:4}})]}):(0,O.jsx)(Y.Ro,{path:j,options:{strokeColor:"#662582",strokeOpacity:0,strokeWeight:0,icons:[{icon:{path:"M 0,-1 0,1",strokeOpacity:.6,strokeColor:"#662582",scale:3},offset:"0",repeat:"14px"}]}}),t.map(((e,t)=>{const r=e.step||t+1,o=a===e.deliveryid;return(0,O.jsx)(Y.pH,{position:{lat:e.dropLat,lng:e.dropLng},icon:{url:b(r,o)},onClick:()=>c(o?null:e.deliveryid),zIndex:o?1e3:r,children:o&&(0,O.jsx)(Y.Fu,{onCloseClick:()=>c(null),children:(0,O.jsxs)(d.A,{sx:{minWidth:180,fontFamily:"inherit"},children:[(0,O.jsxs)(x.A,{sx:{fontWeight:800,fontSize:13,color:"#0f172a"},children:["Step ",r," \xb7 ",e.customer]}),e.address&&(0,O.jsx)(x.A,{sx:{fontSize:12,color:"#475569",mt:.5},children:e.address}),e.expectedTime&&(0,O.jsxs)(x.A,{sx:{fontSize:12,color:"#64748b",mt:.5},children:["ETA ",String(e.expectedTime).slice(11,16)||e.expectedTime]}),e.orderid&&(0,O.jsxs)(x.A,{sx:{fontSize:11,color:"#94a3b8",mt:.5},children:["Order #",e.orderid]})]})})},"step-".concat(e.deliveryid||e.orderid||t))}))]})})]}):(0,O.jsxs)(d.A,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[v,(0,O.jsxs)(m.A,{alignItems:"center",justifyContent:"center",sx:{flex:1,gap:1,p:3},children:[(0,O.jsx)(x.A,{sx:{color:"#1e293b",fontWeight:700,fontSize:16},children:"No planned route for this rider"}),(0,O.jsx)(x.A,{sx:{color:"#64748b",fontSize:13,textAlign:"center",maxWidth:360},children:"There are no deliveries with drop coordinates assigned to this rider for the selected date range."})]})]})}var H=r(20466),U=r(23787),G=r(22686);R().extend(G);const V={radiusPill:999,radiusCard:14,shadowSoft:"0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05)",shadowMd:"0 1px 3px rgba(15, 23, 42, 0.06)",shadowPop:"0 12px 32px rgba(15, 23, 42, 0.12)",textPrimary:"#0f172a",textSecondary:"#64748b",textMuted:"#94a3b8",borderSubtle:"#e2e8f0",divider:"#f1f5f9",surface:"#ffffff",surfaceAlt:"#f8fafc"},X=(e,t)=>"".concat(e).concat(t),$=e=>X(e,"08"),q=e=>X(e,"18"),Z=e=>X(e,"26"),Q=e=>X(e,"55"),J="#662582",ee="#9255AB",te=e=>(0,O.jsx)(s.A,(0,o.A)((0,o.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:V.shadowPop,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),re=e=>{let{color:t,selected:r,size:o=24,children:n}=e;return(0,O.jsx)(a.A,{sx:{width:o,height:o,bgcolor:r?t:q(t),color:r?"#fff":t,transition:"background-color 0.15s, color 0.15s"},children:n})},oe=e=>{let{color:t,icon:r,label:o,tooltip:n,minWidth:i=80}=e;return(0,O.jsx)(c.A,{title:n||"",placement:"top",children:(0,O.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(Q(t)),color:t,fontSize:11,fontWeight:800,minWidth:i,justifyContent:"center",whiteSpace:"nowrap"},children:[r,o]})})},ne=e=>{let{value:t,color:r="#ef4444",icon:o}=e;const n=Number(t)||0;return 0===n?(0,O.jsx)(x.A,{variant:"caption",sx:{color:V.textMuted,fontWeight:700},children:"0"}):(0,O.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:.875,py:.25,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(Q(r)),color:r,fontSize:12,fontWeight:800,minWidth:36,justifyContent:"center"},children:[o,n]})};function ie(e){return new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",minimumFractionDigits:2}).format(Number(e)||0)}function le(){const e=(0,h.A)(),t=(0,u.A)(e.breakpoints.down("md")),[r,o]=(0,n.useState)(R()().format("YYYY-MM-DD")),[P,Y]=(0,n.useState)(R()().format("YYYY-MM-DD")),[F,K]=(0,n.useState)("All"),[G,X]=(0,n.useState)(!1),[le,se]=(0,n.useState)("Today"),[ae,ce]=(0,n.useState)([]),[de,xe]=(0,n.useState)(null),[he,ue]=(0,n.useState)(0),[pe,me]=(0,n.useState)(!1),[Ae,fe]=(0,n.useState)(!1),[ge,je]=(0,n.useState)(null),[be,ve]=(0,n.useState)(null),[Se,we]=(0,n.useState)(!1),[ye,ke]=(0,n.useState)(""),[Ce,ze]=(0,n.useState)(""),{isLoading:De,data:Pe}=(0,l.I)({queryKey:["ridersummary",he,r,P],queryFn:I.KN}),Re=(0,n.useMemo)((()=>{if(!Pe)return[];if(!Ce)return Pe;const e=Ce.toLowerCase().trim();return Pe.filter((t=>["".concat(t.firstname||""," ").concat(t.lastname||""),String(t.userid)].filter(Boolean).some((t=>String(t).toLowerCase().includes(e)))))}),[Pe,Ce]),Ie=(0,n.useMemo)((()=>Pe&&0!==Pe.length?Pe.reduce(((e,t)=>(e.riders+=1,e.orders+=Number(t.totalorders)||0,e.delivered+=Number(t.delivered)||0,e.amount+=Math.max(Number(t.charges)||0,Number(t.deliveryamt)||0),e)),{riders:0,orders:0,delivered:0,amount:0}):{riders:0,orders:0,delivered:0,amount:0}),[Pe]),_e=async e=>{me(!0);try{const t=await i.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/getreportsummary/?&fromdate=").concat(r,"&todate=").concat(P,"&userid=").concat(e));ce(t.data.details)}catch(t){console.log("tenantRes",t)}finally{me(!1)}},Me=async e=>{we(!0);try{var t;const o="undefined"!==typeof window&&localStorage.getItem("userid")||0,n=0===he?"appuserid=".concat(o):"applocationid=".concat(he),l="".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/getdeliveries/")+"?".concat(n)+"&status=all"+"&fromdate=".concat(r)+"&todate=".concat(P)+"&pageno=1&pagesize=200&keyword=&tenantid=&locationid="+"&userid=".concat(e),s=await i.A.get(l),a=(null===s||void 0===s||null===(t=s.data)||void 0===t?void 0:t.details)||[],c=e=>{const t=Number(e);return Number.isFinite(t)?t:null},d=a.map((e=>{var t,r,o,n,i;const l=c(null!==(t=e.droplat)&&void 0!==t?t:e.deliverylat),s=c(null!==(r=e.droplon)&&void 0!==r?r:e.deliverylong),a=c(null!==(o=e.pickuplat)&&void 0!==o?o:e.pickuplatitude),d=c(null!==(n=null!==(i=e.pickuplon)&&void 0!==i?i:e.pickuplong)&&void 0!==n?n:e.picklongitude);return null==l||null==s?null:{step:Number(e.step)||0,orderid:e.orderid,deliveryid:e.deliveryid,customer:e.deliverycustomer||e.customername||"Order ".concat(e.orderid),address:e.deliveryaddress||e.deliverysuburb||"",dropLat:l,dropLng:s,pickLat:null!==a&&void 0!==a?a:null,pickLng:null!==d&&void 0!==d?d:null,expectedTime:e.expecteddeliverytime||null}})).filter(Boolean).sort(((e,t)=>e.step-t.step));je(d)}catch(o){(0,H.k)(null===o||void 0===o?void 0:o.message,"error",2e3),je([])}finally{we(!1)}},Te=(0,n.useMemo)((()=>Pe?Pe.reduce(((e,t)=>e+(Number(t.deliveryamt)||0)),0):0),[Pe]),Ee=[{key:"riders",label:"Active Riders",color:J,icon:D.bsz,value:Ie.riders},{key:"orders",label:"Total Orders",color:"#0ea5e9",icon:D.HU2,value:Ie.orders},{key:"delivered",label:"Delivered",color:"#10b981",icon:D.cAP,value:Ie.delivered},{key:"amount",label:"Total Amount",color:"#f59e0b",icon:D.S75,value:ie(Te)}];return(0,O.jsxs)(O.Fragment,{children:[(De||pe)&&(0,O.jsx)(_.A,{}),(0,O.jsx)(W.A,{title:"Riders Summary",subtitle:"Live \xb7 ".concat(F||"All Zones"," \xb7 ").concat(le),live:!0,action:(0,O.jsx)(T.A,{locaName:F,setAppId:ue,setLocoName:K,pill:!0,accentColor:J,icon:(0,O.jsx)(D.HPi,{size:14}),placeholder:"Select Zone",paperComponent:te,sx:{width:{xs:"100%",sm:280},zIndex:100}})}),(0,O.jsx)(p.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:Ee.map((e=>{var t;const r=e.icon;return(0,O.jsx)(p.Ay,{item:!0,xs:6,sm:6,md:3,children:(0,O.jsx)(N.A,{title:e.label,value:null!==(t=e.value)&&void 0!==t?t:0,icon:(0,O.jsx)(r,{size:20}),color:e.color,loading:De})},e.key)}))}),(0,O.jsx)(s.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:V.radiusCard/8,borderTopRightRadius:V.radiusCard/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:V.borderSubtle,borderBottom:0,background:"#fff"},children:(0,O.jsxs)(m.A,{direction:{xs:"column",sm:"row"},alignItems:{xs:"stretch",sm:"center"},justifyContent:"space-between",spacing:1.25,children:[(0,O.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1.25,flexWrap:"wrap",children:[(0,O.jsx)(re,{color:J,size:32,children:(0,O.jsx)(D.bsz,{size:18})}),(0,O.jsxs)(m.A,{children:[(0,O.jsxs)(x.A,{variant:"caption",sx:{fontWeight:800,color:V.textSecondary,letterSpacing:.6,textTransform:"uppercase"},children:["Orders \xb7 ",le]}),(0,O.jsxs)(x.A,{variant:"body2",sx:{color:V.textPrimary,fontWeight:700},children:[Re.length," riders \xb7 ",Ie.orders," orders"]})]}),(0,O.jsx)(c.A,{title:"Date Filter",placement:"top",children:(0,O.jsxs)(d.A,{onClick:()=>X(!0),sx:{display:"inline-flex",alignItems:"center",gap:.75,px:1.25,py:.75,borderRadius:999,cursor:"pointer",bgcolor:$("#f59e0b"),border:"1.5px solid ".concat(Q("#f59e0b")),color:"#f59e0b",fontWeight:800,fontSize:12,ml:1,transition:"all 0.18s","&:hover":{borderColor:"#f59e0b",boxShadow:"0 0 0 3px ".concat(Z("#f59e0b"))}},children:[(0,O.jsx)(D.Ki0,{size:14}),R()(r).format("DD/MM/YY")," \u2013 ",R()(P).format("DD/MM/YY")]})})]}),(0,O.jsx)(d.A,{sx:{width:{xs:"100%",sm:280,lg:340},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,O.jsx)(E.A,{value:ye,onChange:ke,onDebouncedChange:ze,placeholder:"Search riders (ctrl+k)",sx:{m:0,width:"100%",borderRadius:999,bgcolor:"#ffffff","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:1.5},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(Z(J))}}})})]})}),(0,O.jsxs)(s.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:V.radiusCard/8,borderBottomRightRadius:V.radiusCard/8,border:"1px solid",borderColor:V.borderSubtle,overflow:"hidden",background:"#fff"},children:[t?(0,O.jsxs)(U.nV,{scroll:!0,children:[De&&(0,O.jsx)(m.A,{alignItems:"center",sx:{py:4},children:(0,O.jsx)(x.A,{variant:"caption",sx:{color:V.textMuted,fontWeight:700},children:"Loading riders\u2026"})}),Re&&0!==Re.length||De?Re.map(((e,t)=>{const r=de===e.userid,o=Math.max(Number(e.charges)||0,Number(e.deliveryamt)||0),n="".concat((null===e||void 0===e?void 0:e.firstname)||""," ").concat((null===e||void 0===e?void 0:e.lastname)||"").trim()||"\u2014";return(0,O.jsxs)(U.pg,{accent:J,selected:r,header:(0,O.jsxs)(m.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,O.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1,sx:{minWidth:0},children:[(0,O.jsx)(re,{color:J,size:36,children:(0,O.jsx)(D.LTk,{size:18})}),(0,O.jsxs)(m.A,{sx:{minWidth:0},children:[(0,O.jsx)(x.A,{variant:"subtitle2",sx:{fontWeight:700,color:V.textPrimary},noWrap:!0,children:n}),(0,O.jsxs)(x.A,{variant:"caption",sx:{color:V.textSecondary},children:["#",String(t+1).padStart(2,"0")," \xb7 ID #",e.userid]})]})]}),(0,O.jsxs)(m.A,{direction:"row",spacing:.75,sx:{flexShrink:0},children:[(0,O.jsx)(c.A,{title:"View planned route",placement:"top",children:(0,O.jsx)(A.A,{size:"small",onClick:()=>{ve({userid:null===e||void 0===e?void 0:e.userid,name:"".concat((null===e||void 0===e?void 0:e.firstname)||""," ").concat((null===e||void 0===e?void 0:e.lastname)||"").trim()||"Rider ".concat(null===e||void 0===e?void 0:e.userid)}),je(null),fe(!0),Me(null===e||void 0===e?void 0:e.userid)},sx:{bgcolor:q("#0ea5e9"),color:"#0ea5e9",border:"1px solid ".concat(Q("#0ea5e9")),"&:hover":{bgcolor:"#0ea5e9",color:"#fff"}},children:(0,O.jsx)(D.Cd7,{size:14})})}),(0,O.jsx)(c.A,{title:r?"Collapse breakdown":"Expand breakdown",placement:"top",children:(0,O.jsx)(A.A,{size:"small",onClick:()=>{const t=!r;xe(t?e.userid:null),t&&_e(e.userid)},sx:{bgcolor:r?J:q(J),color:r?"#fff":J,border:"1px solid ".concat(Q(J)),"&:hover":{bgcolor:J,color:"#fff"}},children:r?(0,O.jsx)(D.Xbk,{size:16}):(0,O.jsx)(D.j1Q,{size:16})})})]})]}),children:[(0,O.jsxs)(U.FG,{columns:2,children:[(0,O.jsx)(U.pY,{label:"Orders",children:(0,O.jsx)(ne,{value:e.totalorders,color:J,icon:(0,O.jsx)(D.F6S,{size:11})})}),(0,O.jsx)(U.pY,{label:"Delivered",children:(0,O.jsx)(ne,{value:e.delivered,color:"#10b981",icon:(0,O.jsx)(D.mU9,{size:11})})}),(0,O.jsx)(U.pY,{label:"Pending",children:(0,O.jsx)(ne,{value:e.pending,color:"#f59e0b",icon:(0,O.jsx)(D.tX0,{size:11})})}),(0,O.jsx)(U.pY,{label:"Cancelled",children:(0,O.jsx)(ne,{value:e.cancelled,color:"#ef4444",icon:(0,O.jsx)(D.uDv,{size:11})})}),(0,O.jsx)(U.pY,{label:"KMS",children:(0,O.jsx)(oe,{color:"#ef4444",icon:(0,O.jsx)(D.xI$,{size:11}),label:"".concat(Number(e.kms||0).toFixed(2)," km"),tooltip:"KMS"})}),(0,O.jsx)(U.pY,{label:"Actual KMS",children:(0,O.jsx)(oe,{color:"#10b981",icon:(0,O.jsx)(D.xI$,{size:11}),label:"".concat(Number(e.cumulativekms||0).toFixed(2)," km"),tooltip:"Actual KMS"})}),(0,O.jsx)(U.pY,{label:"Amount",full:!0,children:(0,O.jsx)(oe,{color:J,icon:(0,O.jsx)(D.YHz,{size:11}),label:ie(o).replace("\u20b9","").trim(),tooltip:"Total Amount",minWidth:100})})]}),r&&(0,O.jsx)(f.A,{in:r,timeout:"auto",unmountOnExit:!0,children:(0,O.jsxs)(s.A,{elevation:0,sx:{mt:1.25,borderRadius:V.radiusCard/8,border:"1px solid",borderColor:V.borderSubtle,overflow:"hidden",boxShadow:V.shadowSoft},children:[(0,O.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1,sx:{px:1.5,py:1,background:"#ffffff",borderBottom:"1px solid ".concat(V.borderSubtle)},children:[(0,O.jsx)(re,{color:J,size:24,selected:!0,children:(0,O.jsx)(D.Itr,{size:12})}),(0,O.jsx)(x.A,{variant:"caption",sx:{fontWeight:800,color:V.textPrimary,letterSpacing:.6,textTransform:"uppercase"},children:"Tenant Breakdown"})]}),(0,O.jsxs)(m.A,{divider:(0,O.jsx)(g.A,{}),children:[pe&&(0,O.jsx)(x.A,{variant:"caption",sx:{color:V.textMuted,textAlign:"center",py:2},children:"Loading\u2026"}),pe||ae&&0!==ae.length?null===ae||void 0===ae?void 0:ae.map(((e,t)=>(0,O.jsxs)(d.A,{sx:{p:1.5},children:[(0,O.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mb:1},children:[(0,O.jsx)(re,{color:"#0ea5e9",size:24,children:(0,O.jsx)(D.Itr,{size:12})}),(0,O.jsx)(x.A,{variant:"subtitle2",sx:{fontWeight:700,color:V.textPrimary},noWrap:!0,children:e.tenantname||"\u2014"})]}),(0,O.jsxs)(U.FG,{columns:2,children:[(0,O.jsx)(U.pY,{label:"All",children:(0,O.jsx)(ne,{value:e.totalorders,color:J,icon:(0,O.jsx)(D.F6S,{size:10})})}),(0,O.jsx)(U.pY,{label:"Completed",children:(0,O.jsx)(ne,{value:e.deliveriescompleted,color:"#10b981",icon:(0,O.jsx)(D.mU9,{size:10})})}),(0,O.jsx)(U.pY,{label:"Pending",children:(0,O.jsx)(ne,{value:e.deliveriespending,color:"#f59e0b",icon:(0,O.jsx)(D.tX0,{size:10})})}),(0,O.jsx)(U.pY,{label:"Cancelled",children:(0,O.jsx)(ne,{value:e.deliveriescancelled,color:"#ef4444",icon:(0,O.jsx)(D.uDv,{size:10})})}),(0,O.jsx)(U.pY,{label:"KMS",children:(0,O.jsx)(oe,{color:"#ef4444",icon:(0,O.jsx)(D.xI$,{size:10}),label:"".concat(Number(e.kms||0).toFixed(2)," km"),tooltip:"KMS"})}),(0,O.jsx)(U.pY,{label:"Actual KMS",children:(0,O.jsx)(oe,{color:"#10b981",icon:(0,O.jsx)(D.xI$,{size:10}),label:"".concat(Number(e.cumulativekms||0).toFixed(2)," km"),tooltip:"Actual KMS"})}),(0,O.jsx)(U.pY,{label:"Amount",full:!0,children:(0,O.jsx)(oe,{color:J,icon:(0,O.jsx)(D.YHz,{size:10}),label:ie(Math.max(Number(e.charges)||0,Number(e.deliveryamt)||0)).replace("\u20b9","").trim(),tooltip:"Total Amount",minWidth:100})})]})]},"".concat(e.tenantname,"-").concat(t)))):(0,O.jsx)(x.A,{variant:"caption",sx:{color:V.textMuted,textAlign:"center",py:2},children:"No tenant breakdown available."})]})]})})]},e.userid||t)})):(0,O.jsxs)(m.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,O.jsx)(a.A,{sx:{width:64,height:64,bgcolor:q("#94a3b8"),color:V.textMuted},children:(0,O.jsx)(D.bsz,{size:28})}),(0,O.jsx)(x.A,{variant:"subtitle1",sx:{fontWeight:700,color:V.textPrimary},children:"No riders to show"}),(0,O.jsx)(x.A,{variant:"caption",sx:{color:V.textSecondary},children:ye?"Try a different keyword.":"Pick a zone or date range to load the summary."})]})]}):(0,O.jsx)(j.A,{sx:{maxHeight:{xs:"calc(100vh - 220px)",md:"calc(100vh - 190px)"},"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:Q(J),borderRadius:8,"&:hover":{backgroundColor:J}},"&::-webkit-scrollbar-track":{backgroundColor:V.surfaceAlt}},children:(0,O.jsxs)(b.A,{stickyHeader:!0,sx:{minWidth:{xs:880,md:1080}},children:[(0,O.jsx)(v.A,{children:(0,O.jsxs)(S.A,{sx:{"& th":{backgroundColor:V.surfaceAlt,color:V.textSecondary,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(V.borderSubtle),py:{xs:1,md:1.25},px:{xs:1,md:2}}},children:[(0,O.jsx)(w.A,{children:"#"}),(0,O.jsx)(w.A,{children:"Rider"}),(0,O.jsx)(w.A,{align:"center",children:"Orders"}),(0,O.jsx)(w.A,{align:"center",children:"Pending"}),(0,O.jsx)(w.A,{align:"center",children:"Cancelled"}),(0,O.jsx)(w.A,{align:"center",children:"Delivered"}),(0,O.jsx)(w.A,{align:"center",children:"KMS"}),(0,O.jsx)(w.A,{align:"center",children:"Amount"}),(0,O.jsx)(w.A,{align:"right",children:"Action"})]})}),(0,O.jsxs)(y.A,{children:[De&&(0,O.jsx)(L.r,{col:5}),Re&&0!==Re.length||De?Re.map(((e,t)=>{const r=de===e.userid,o=Math.max(Number(e.charges)||0,Number(e.deliveryamt)||0);return(0,O.jsxs)(n.Fragment,{children:[(0,O.jsxs)(S.A,{sx:{transition:"background-color 0.15s","& td":{borderBottom:r?"none":"1px solid ".concat(V.divider),py:{xs:1,md:1.5},px:{xs:1,md:2}},"&:hover":{backgroundColor:r?"#fff":V.surfaceAlt},bgcolor:r?$(J):"transparent"},children:[(0,O.jsx)(w.A,{children:(0,O.jsx)(x.A,{variant:"caption",sx:{fontWeight:700,color:V.textMuted},children:String(t+1).padStart(2,"0")})}),(0,O.jsx)(w.A,{children:(0,O.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,O.jsx)(re,{color:J,size:36,children:(0,O.jsx)(D.LTk,{size:18})}),(0,O.jsxs)(m.A,{children:[(0,O.jsx)(x.A,{variant:"subtitle2",sx:{fontWeight:700,color:V.textPrimary,whiteSpace:"nowrap"},children:"".concat((null===e||void 0===e?void 0:e.firstname)||""," ").concat((null===e||void 0===e?void 0:e.lastname)||"").trim()||"\u2014"}),(0,O.jsxs)(x.A,{variant:"caption",sx:{color:V.textSecondary},children:["ID #",e.userid]})]})]})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsx)(ne,{value:e.totalorders,color:J,icon:(0,O.jsx)(D.F6S,{size:11})})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsx)(ne,{value:e.pending,color:"#f59e0b",icon:(0,O.jsx)(D.tX0,{size:11})})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsx)(ne,{value:e.cancelled,color:"#ef4444",icon:(0,O.jsx)(D.uDv,{size:11})})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsx)(ne,{value:e.delivered,color:"#10b981",icon:(0,O.jsx)(D.mU9,{size:11})})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsxs)(m.A,{direction:"column",spacing:.5,alignItems:"center",children:[(0,O.jsx)(oe,{color:"#ef4444",icon:(0,O.jsx)(D.xI$,{size:11}),label:"".concat(Number(e.kms||0).toFixed(2)," km"),tooltip:"KMS"}),(0,O.jsx)(oe,{color:"#10b981",icon:(0,O.jsx)(D.xI$,{size:11}),label:"".concat(Number(e.cumulativekms||0).toFixed(2)," km"),tooltip:"Actual KMS"})]})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsx)(oe,{color:J,icon:(0,O.jsx)(D.YHz,{size:11}),label:ie(o).replace("\u20b9","").trim(),tooltip:"Total Amount",minWidth:100})}),(0,O.jsx)(w.A,{align:"right",children:(0,O.jsxs)(m.A,{direction:"row",spacing:.75,justifyContent:"flex-end",children:[(0,O.jsx)(c.A,{title:"View planned route",placement:"top",children:(0,O.jsx)(A.A,{size:"small",onClick:()=>{ve({userid:null===e||void 0===e?void 0:e.userid,name:"".concat((null===e||void 0===e?void 0:e.firstname)||""," ").concat((null===e||void 0===e?void 0:e.lastname)||"").trim()||"Rider ".concat(null===e||void 0===e?void 0:e.userid)}),je(null),fe(!0),Me(null===e||void 0===e?void 0:e.userid)},sx:{bgcolor:q("#0ea5e9"),color:"#0ea5e9",border:"1px solid ".concat(Q("#0ea5e9")),"&:hover":{bgcolor:"#0ea5e9",color:"#fff"}},children:(0,O.jsx)(D.Cd7,{size:14})})}),(0,O.jsx)(c.A,{title:r?"Collapse breakdown":"Expand breakdown",placement:"top",children:(0,O.jsx)(A.A,{size:"small",onClick:()=>{const t=!r;xe(t?e.userid:null),t&&_e(e.userid)},sx:{bgcolor:r?J:q(J),color:r?"#fff":J,border:"1px solid ".concat(Q(J)),"&:hover":{bgcolor:J,color:"#fff"}},children:r?(0,O.jsx)(D.Xbk,{size:16}):(0,O.jsx)(D.j1Q,{size:16})})})]})})]}),r&&(0,O.jsx)(S.A,{children:(0,O.jsx)(w.A,{colSpan:9,sx:{p:0,borderBottom:"1px solid ".concat(V.divider),bgcolor:$(J)},children:(0,O.jsx)(f.A,{in:r,timeout:"auto",unmountOnExit:!0,children:(0,O.jsx)(d.A,{sx:{p:{xs:1,md:2}},children:(0,O.jsxs)(s.A,{elevation:0,sx:{borderRadius:V.radiusCard/8,border:"1px solid",borderColor:V.borderSubtle,overflow:"hidden",boxShadow:V.shadowSoft},children:[(0,O.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1,sx:{px:2,py:1.25,background:"#ffffff",borderBottom:"1px solid ".concat(V.borderSubtle)},children:[(0,O.jsx)(re,{color:J,size:28,selected:!0,children:(0,O.jsx)(D.Itr,{size:14})}),(0,O.jsxs)(x.A,{variant:"caption",sx:{fontWeight:800,color:V.textPrimary,letterSpacing:.6,textTransform:"uppercase"},children:["Tenant Breakdown \xb7 ","".concat((null===e||void 0===e?void 0:e.firstname)||""," ").concat((null===e||void 0===e?void 0:e.lastname)||"").trim()]})]}),(0,O.jsxs)(b.A,{size:"small",children:[(0,O.jsx)(v.A,{children:(0,O.jsxs)(S.A,{sx:{"& th":{backgroundColor:V.surfaceAlt,color:V.textSecondary,fontSize:10,fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(V.borderSubtle),py:1,px:1.5}},children:[(0,O.jsx)(w.A,{children:"#"}),(0,O.jsx)(w.A,{children:"Client"}),(0,O.jsx)(w.A,{align:"center",children:"All"}),(0,O.jsx)(w.A,{align:"center",children:"Pending"}),(0,O.jsx)(w.A,{align:"center",children:"Completed"}),(0,O.jsx)(w.A,{align:"center",children:"Cancelled"}),(0,O.jsx)(w.A,{align:"center",children:"KMS"}),(0,O.jsx)(w.A,{align:"center",children:"Amount"})]})}),(0,O.jsxs)(y.A,{children:[pe&&(0,O.jsx)(L.r,{col:4}),pe||ae&&0!==ae.length?null===ae||void 0===ae?void 0:ae.map(((e,t)=>(0,O.jsxs)(S.A,{sx:{"& td":{borderBottom:"1px solid ".concat(V.divider),py:1,px:1.5},"&:hover":{backgroundColor:V.surfaceAlt}},children:[(0,O.jsx)(w.A,{children:(0,O.jsx)(x.A,{variant:"caption",sx:{fontWeight:700,color:V.textMuted},children:String(t+1).padStart(2,"0")})}),(0,O.jsx)(w.A,{children:(0,O.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:.75,children:[(0,O.jsx)(re,{color:"#0ea5e9",size:24,children:(0,O.jsx)(D.Itr,{size:12})}),(0,O.jsx)(x.A,{variant:"subtitle2",sx:{fontWeight:700,color:V.textPrimary,whiteSpace:"nowrap"},children:e.tenantname||"\u2014"})]})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsx)(ne,{value:e.totalorders,color:J,icon:(0,O.jsx)(D.F6S,{size:10})})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsx)(ne,{value:e.deliveriespending,color:"#f59e0b",icon:(0,O.jsx)(D.tX0,{size:10})})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsx)(ne,{value:e.deliveriescompleted,color:"#10b981",icon:(0,O.jsx)(D.mU9,{size:10})})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsx)(ne,{value:e.deliveriescancelled,color:"#ef4444",icon:(0,O.jsx)(D.uDv,{size:10})})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsxs)(m.A,{direction:"column",spacing:.5,alignItems:"center",children:[(0,O.jsx)(oe,{color:"#ef4444",icon:(0,O.jsx)(D.xI$,{size:10}),label:"".concat(Number(e.kms||0).toFixed(2)," km"),tooltip:"KMS"}),(0,O.jsx)(oe,{color:"#10b981",icon:(0,O.jsx)(D.xI$,{size:10}),label:"".concat(Number(e.cumulativekms||0).toFixed(2)," km"),tooltip:"Actual KMS"})]})}),(0,O.jsx)(w.A,{align:"center",children:(0,O.jsx)(oe,{color:J,icon:(0,O.jsx)(D.YHz,{size:10}),label:ie(Math.max(Number(e.charges)||0,Number(e.deliveryamt)||0)).replace("\u20b9","").trim(),tooltip:"Total Amount",minWidth:100})})]},"".concat(e.tenantname,"-").concat(t)))):(0,O.jsx)(S.A,{children:(0,O.jsx)(w.A,{colSpan:8,sx:{py:3},children:(0,O.jsx)(x.A,{variant:"caption",sx:{color:V.textMuted,textAlign:"center",display:"block"},children:"No tenant breakdown available."})})})]})]})]})})})})})]},e.userid||t)})):(0,O.jsx)(S.A,{children:(0,O.jsx)(w.A,{colSpan:9,sx:{py:6},children:(0,O.jsxs)(m.A,{alignItems:"center",spacing:1.5,children:[(0,O.jsx)(a.A,{sx:{width:64,height:64,bgcolor:q("#94a3b8"),color:V.textMuted},children:(0,O.jsx)(D.bsz,{size:28})}),(0,O.jsx)(x.A,{variant:"subtitle1",sx:{fontWeight:700,color:V.textPrimary},children:"No riders to show"}),(0,O.jsx)(x.A,{variant:"caption",sx:{color:V.textSecondary},children:ye?"Try a different keyword.":"Pick a zone or date range to load the summary."})]})})})]})]})}),Re.length>0&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(g.A,{}),(0,O.jsxs)(m.A,{direction:"row",alignItems:"center",justifyContent:"flex-end",spacing:1.5,sx:{px:2,py:1.5,background:"#ffffff"},children:[(0,O.jsx)(x.A,{variant:"caption",sx:{fontWeight:800,color:V.textSecondary,letterSpacing:.6,textTransform:"uppercase"},children:"Grand Total"}),(0,O.jsx)(k.A,{label:ie(Te),sx:{fontWeight:800,fontSize:13,color:"#fff",background:"linear-gradient(135deg, ".concat(J," 0%, ").concat(ee," 100%)"),boxShadow:"0 6px 16px ".concat(Z(J))}})]})]})]}),(0,O.jsx)(C.A,{maxWidth:"xl",fullScreen:!0,open:Ae,onClose:()=>{fe(!1),je(null),ve(null)},children:(0,O.jsx)(z.A,{sx:{p:0,height:"100vh"},children:(0,O.jsx)(B,{details:ge,loading:Se,riderName:null===be||void 0===be?void 0:be.name,dateRange:"".concat(R()(r).format("DD/MM/YY")," \u2013 ").concat(R()(P).format("DD/MM/YY")),onClose:()=>{fe(!1),je(null),ve(null)}})})}),(0,O.jsx)(M.A,{open:G,onClose:()=>X(!1),onSelect:e=>{o(e.startDate),Y(e.endDate),se(e.label)}})]})}},12010:(e,t,r)=>{r.d(t,{A:()=>_});var o=r(57528),n=r(84849),i=r(27326),l=r(85672),s=r(72574),a=r(25234),c=r(8913),d=r(16775),x=r(38009),h=r(60308),u=r(37300),p=r(10644);function m(e){return(0,p.Ay)("MuiCircularProgress",e)}(0,u.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var A,f,g,j,b=r(65908);const v=["className","color","disableShrink","size","style","thickness","value","variant"];let S,w,y,k;const C=44,z=(0,c.i7)(S||(S=A||(A=(0,o.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),D=(0,c.i7)(w||(w=f||(f=(0,o.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),P=(0,h.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["color".concat((0,d.A)(r.color))]]}})((e=>{let{ownerState:t,theme:r}=e;return(0,i.A)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,c.AH)(y||(y=g||(g=(0,o.A)(["\n animation: "," 1.4s linear infinite;\n "]))),z)})),R=(0,h.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),I=(0,h.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t["circle".concat((0,d.A)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:r}=e;return(0,i.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,c.AH)(k||(k=j||(j=(0,o.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),D)})),_=l.forwardRef((function(e,t){const r=(0,x.b)({props:e,name:"MuiCircularProgress"}),{className:o,color:l="primary",disableShrink:c=!1,size:h=40,style:u,thickness:p=3.6,value:A=0,variant:f="indeterminate"}=r,g=(0,n.A)(r,v),j=(0,i.A)({},r,{color:l,disableShrink:c,size:h,thickness:p,value:A,variant:f}),S=(e=>{const{classes:t,variant:r,color:o,disableShrink:n}=e,i={root:["root",r,"color".concat((0,d.A)(o))],svg:["svg"],circle:["circle","circle".concat((0,d.A)(r)),n&&"circleDisableShrink"]};return(0,a.A)(i,m,t)})(j),w={},y={},k={};if("determinate"===f){const e=2*Math.PI*((C-p)/2);w.strokeDasharray=e.toFixed(3),k["aria-valuenow"]=Math.round(A),w.strokeDashoffset="".concat(((100-A)/100*e).toFixed(3),"px"),y.transform="rotate(-90deg)"}return(0,b.jsx)(P,(0,i.A)({className:(0,s.A)(S.root,o),style:(0,i.A)({width:h,height:h},y,u),ownerState:j,ref:t,role:"progressbar"},k,g,{children:(0,b.jsx)(R,{className:S.svg,ownerState:j,viewBox:"".concat(22," ").concat(22," ").concat(C," ").concat(C),children:(0,b.jsx)(I,{className:S.circle,style:w,ownerState:j,cx:C,cy:C,r:(C-p)/2,fill:"none",strokeWidth:p})})}))}))},23787:(e,t,r)=>{r.d(t,{FG:()=>u,nV:()=>x,pY:()=>p,pg:()=>h});var o=r(22555),n=r(53986),i=r(71392),l=r(55235),s=r(48738),a=r(2866),c=r(65908);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:t,scroll:r=!1,onScroll:l,sx:s}=e,a=(0,n.A)(e,d);return(0,c.jsx)(i.A,(0,o.A)((0,o.A)({spacing:1.25,onScroll:l,sx:(0,o.A)((0,o.A)({p:1.5},r&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),s)},a),{},{children:t}))},h=e=>{let{accent:t="#662582",header:r,footer:n,selected:i=!1,onClick:a,children:d,sx:x}=e;return(0,c.jsxs)(l.A,{elevation:0,onClick:a,sx:(0,o.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:i?t:"#e2e8f0",background:i?"".concat(t,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,c.jsx)(s.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:t}}),(0,c.jsxs)(s.A,{sx:{p:1.5,pl:2},children:[r,d,n]})]})},u=e=>{let{children:t,columns:r=2,sx:n}=e;return(0,c.jsx)(s.A,{sx:(0,o.A)({display:"grid",gridTemplateColumns:"repeat(".concat(r,", minmax(0, 1fr))"),gap:1,mt:1.25},n),children:t})},p=e=>{let{label:t,value:r,children:o,full:n=!1,align:i="left"}=e;return(0,c.jsxs)(s.A,{sx:{gridColumn:n?"1 / -1":"auto",minWidth:0,textAlign:i},children:[(0,c.jsx)(a.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:t}),(0,c.jsx)(s.A,{sx:{mt:.25,minWidth:0},children:void 0!==o?o:(0,c.jsx)(a.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==r&&void 0!==r?r:"\u2014"})})]})}},27001:(e,t,r)=>{r.d(t,{A:()=>s});var o=r(71392),n=r(48738),i=r(2866),l=r(65908);function s(e){let{title:t,subtitle:r,live:s=!1,action:a}=e;return(0,l.jsxs)(o.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,l.jsxs)(n.A,{sx:{minWidth:0},children:[(0,l.jsx)(i.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:t}),r&&(0,l.jsxs)(o.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[s&&(0,l.jsx)(n.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,l.jsx)(i.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:r})]})]}),a&&(0,l.jsx)(n.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:a})]})}},35678:(e,t,r)=>{r.d(t,{A:()=>v});var o=r(85672),n=r(58689),i=r(19619),l=r(2866),s=r(5670),a=r(71392),c=r(80911),d=r(36117),x=r(46077),h=r.n(x),u=r(36738),p=r(80959),m=r(33090),A=r(52994),f=r(33323),g=r(75732),j=r(43962),b=r(65908);const v=e=>{let{open:t,onClose:r,onSelect:x}=e;const[v,S]=(0,o.useState)(null);return(0,b.jsxs)(n.A,{open:t,onClose:r,children:[(0,b.jsx)(i.A,{align:"left",children:(0,b.jsx)(l.A,{variant:"h4",children:"Select Filter Options"})}),(0,b.jsx)(s.A,{sx:{width:"100%"},className:"datedialog",children:(0,b.jsx)(d.U,{open:t,toggle:r,id:"daterange1",onChange:e=>{S({startDate:h()(e.startDate).format("YYYY-MM-DD"),endDate:h()(e.endDate).format("YYYY-MM-DD"),label:e.label||"custom"})},definedRanges:[{label:"Today",startDate:new Date,endDate:new Date},{label:"Yesterday",startDate:(0,u.A)(new Date,-1),endDate:(0,u.A)(new Date,-1)},{label:"Tomorrow",startDate:(0,u.A)(new Date,1),endDate:(0,u.A)(new Date,1)},{label:"This Week",startDate:(0,p.A)(new Date),endDate:(0,m.A)(new Date)},{label:"Last Week",startDate:(0,p.A)((0,A.A)(new Date,-1)),endDate:(0,m.A)((0,A.A)(new Date,-1))},{label:"Last 7 Days",startDate:(0,A.A)(new Date,-1),endDate:new Date},{label:"This Month",startDate:(0,f.A)(new Date),endDate:(0,g.A)(new Date)},{label:"Last Month",startDate:(0,f.A)((0,j.A)(new Date,-1)),endDate:(0,g.A)((0,j.A)(new Date,-1))}]})}),(0,b.jsx)(a.A,{direction:"row",justifyContent:"flex-end",sx:{width:"100%",p:2},children:(0,b.jsx)(c.A,{variant:"contained",size:"small",onClick:()=>{v?(x(v),r()):r()},children:"OK"})})]})}},36803:(e,t,r)=>{r.d(t,{A:()=>x});var o=r(84007),n=r(75953),i=r(71392),l=r(48738),s=r(2866),a=r(91834),c=r(97043),d=r(65908);function x(e){let{title:t,value:r,icon:x,color:h="#662582",caption:u,loading:p=!1}=e;return(0,d.jsx)(o.A,{sx:{height:"100%"},children:(0,d.jsx)(n.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,d.jsxs)(i.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,d.jsxs)(l.A,{sx:{minWidth:0,flex:1},children:[(0,d.jsx)(s.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t}),p?(0,d.jsx)(a.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,d.jsx)(s.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r}),u&&(0,d.jsx)(s.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:u})]}),x&&(0,d.jsx)(c.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(h,"14"),color:h,flexShrink:0},children:x})]})})})}},56311:(e,t,r)=>{r.d(t,{A:()=>u});var o=r(22555),n=r(85672),i=r(29776),l=r(43318),s=r(23440),a=r(11969),c=r(80795),d=r(51808),x=r(93811),h=r(65908);const u=e=>{let{value:t,onChange:r,onDebouncedChange:u,debounceTime:p=500,placeholder:m="Search (ctrl+k)",sx:A}=e;const f=(0,n.useRef)(null),[g]=(0,x.d7)(t,p);return(0,n.useEffect)((()=>{u&&u(g)}),[g,u]),(0,n.useEffect)((()=>{const e=e=>{var t;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(t=f.current)||void 0===t||t.focus());"Escape"===e.key&&document.activeElement===f.current&&f.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,h.jsx)(i.A,{sx:(0,o.A)({},A),inputRef:f,placeholder:m,autoComplete:"off",value:t,fullWidth:!0,onChange:e=>r(e.target.value),startAdornment:(0,h.jsx)(l.A,{position:"start",sx:{mr:-.5},children:(0,h.jsx)(c.A,{})}),endAdornment:(0,h.jsx)(s.A,{title:"Clear",children:(0,h.jsx)(a.A,{sx:{visibility:t?"visible":"hidden"},onClick:()=>r(""),children:(0,h.jsx)(d.A,{})})})})}},59212:(e,t,r)=>{r.d(t,{A:()=>h});var o=r(22555),n=r(85672),i=r(71392),l=r(97043),s=r(17488),a=r(86270),c=r(66157),d=r(48952),x=r(65908);const h=(0,n.forwardRef)(((e,t)=>{let{setAppId:r,setLocoName:h,setPage:u,sx:p,textfeildSx:m,textfieldSx:A,pill:f=!1,accentColor:g="#6366f1",icon:j,placeholder:b="Select Zone",paperComponent:v}=e;const[S,w]=(0,n.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,n.useEffect)((()=>{0===S.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const t=await c.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(t.data.status){const e=[...t.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),w(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[S.length]);const y=e=>"".concat(g).concat(e),k=y("26"),C=y("18"),z=f?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(k)},"&.Mui-focused fieldset":{borderColor:g,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},D=f&&(0,x.jsx)(i.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,x.jsx)(l.A,{sx:{width:24,height:24,bgcolor:C,color:g,transition:"background-color 0.15s, color 0.15s"},children:j||(0,x.jsx)(d.HPi,{size:14})})});return(0,x.jsx)(s.A,{id:"location-autocomplete",options:S||[],getOptionLabel:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.locationname)&&void 0!==t?t:""},PaperComponent:v,sx:(0,o.A)({},p),onChange:(e,t,o)=>{"clear"===o?(null===r||void 0===r||r(0),null===h||void 0===h||h(""),null===u||void 0===u||u(0)):t&&(null===r||void 0===r||r(t.applocationid),null===h||void 0===h||h(t.locationname),null===u||void 0===u||u(0))},renderInput:e=>f?(0,x.jsx)(a.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,placeholder:b,InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:D}),sx:(0,o.A)((0,o.A)({},z),A||m||{})})):(0,x.jsx)(a.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,label:"Select Zones",sx:(0,o.A)({},A||m||{})}))})}))},96646:(e,t,r)=>{r.d(t,{r:()=>a});var o=r(50755),n=r(1596),i=r(91834),l=r(71392),s=r(65908);const a=e=>{let{rowsPerPage:t=5,col:r=1}=e;return(0,s.jsx)(s.Fragment,{children:Array.from(new Array(t)).map(((e,t)=>(0,s.jsxs)(o.A,{children:[(0,s.jsx)(n.A,{children:(0,s.jsx)(i.A,{variant:"circular",width:24,height:24})}),(0,s.jsx)(n.A,{children:(0,s.jsx)(i.A,{variant:"text",width:30})}),Array.from({length:r}).map(((e,t)=>(0,s.jsx)(n.A,{children:(0,s.jsxs)(l.A,{spacing:.5,children:[(0,s.jsx)(i.A,{variant:"text",width:100}),(0,s.jsx)(i.A,{variant:"text",width:80})]})},t))),(0,s.jsx)(n.A,{children:(0,s.jsx)(i.A,{variant:"text",width:150})}),(0,s.jsx)(n.A,{children:(0,s.jsx)(i.A,{variant:"rounded",width:60,height:24})}),(0,s.jsx)(n.A,{align:"center",children:(0,s.jsxs)(l.A,{direction:"row",spacing:1,justifyContent:"flex-end",children:[(0,s.jsx)(i.A,{variant:"circular",width:28,height:28}),(0,s.jsx)(i.A,{variant:"circular",width:28,height:28})]})})]},t)))})}}}]); \ No newline at end of file diff --git a/build/static/js/1837.4efb059f.chunk.js b/build/static/js/1837.4efb059f.chunk.js new file mode 100644 index 0000000..c0004a4 --- /dev/null +++ b/build/static/js/1837.4efb059f.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[1837],{855:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(68106),a=n(82522),o=n(65908);function i(e){var t,n;let i,s,{children:l,type:c="scale",direction:u="right",offset:d=10,scale:p={hover:1.05,tap:.95}}=e;switch(u){case"up":case"left":i=d,s=0;break;default:i=0,s=d}const[f,h]=(0,r.Y)(i,s),[v,g]=(0,r.Y)(i,s);switch(c){case"rotate":return(0,o.jsx)(a.P.div,{animate:{rotate:360},transition:{repeat:1/0,repeatType:"loop",duration:2,repeatDelay:0},children:l});case"slide":return"up"===u||"down"===u?(0,o.jsx)(a.P.div,{animate:{y:void 0!==v?v:""},onHoverEnd:()=>g(),onHoverStart:()=>g(),children:l}):(0,o.jsx)(a.P.div,{animate:{x:void 0!==f?f:""},onHoverEnd:()=>h(),onHoverStart:()=>h(),children:l});default:return"number"===typeof p&&(p={hover:p,tap:p}),(0,o.jsx)(a.P.div,{whileHover:{scale:null===(t=p)||void 0===t?void 0:t.hover},whileTap:{scale:null===(n=p)||void 0===n?void 0:n.tap},children:l})}}},7051:(e,t,n)=>{n.d(t,{A:()=>C});var r=n(84849),a=n(27326),o=n(85672),i=n(72574),s=n(25234),l=n(16775),c=n(60308),u=n(38009),d=n(18233),p=n(45688),f=n(2866),h=n(37300),v=n(10644);function g(e){return(0,v.Ay)("MuiLink",e)}const m=(0,h.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var y=n(27909),b=n(10247);const A={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},x=e=>{let{theme:t,ownerState:n}=e;const r=(e=>A[e]||e)(n.color),a=(0,y.Yn)(t,"palette.".concat(r),!1)||n.color,o=(0,y.Yn)(t,"palette.".concat(r,"Channel"));return"vars"in t&&o?"rgba(".concat(o," / 0.4)"):(0,b.X4)(a,.4)};var j=n(65908);const S=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],w=(0,c.Ay)(f.A,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["underline".concat((0,l.A)(n.underline))],"button"===n.component&&t.button]}})((e=>{let{theme:t,ownerState:n}=e;return(0,a.A)({},"none"===n.underline&&{textDecoration:"none"},"hover"===n.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===n.underline&&(0,a.A)({textDecoration:"underline"},"inherit"!==n.color&&{textDecorationColor:x({theme:t,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===n.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(m.focusVisible)]:{outline:"auto"}})})),C=o.forwardRef((function(e,t){const n=(0,u.b)({props:e,name:"MuiLink"}),{className:c,color:f="primary",component:h="a",onBlur:v,onFocus:m,TypographyClasses:y,underline:b="always",variant:x="inherit",sx:C}=n,O=(0,r.A)(n,S),{isFocusVisibleRef:k,onBlur:I,onFocus:D,ref:N}=(0,d.A)(),[E,P]=o.useState(!1),M=(0,p.A)(t,N),F=(0,a.A)({},n,{color:f,component:h,focusVisible:E,underline:b,variant:x}),Y=(e=>{const{classes:t,component:n,focusVisible:r,underline:a}=e,o={root:["root","underline".concat((0,l.A)(a)),"button"===n&&"button",r&&"focusVisible"]};return(0,s.A)(o,g,t)})(F);return(0,j.jsx)(w,(0,a.A)({color:f,className:(0,i.A)(Y.root,c),classes:y,component:h,onBlur:e=>{I(e),!1===k.current&&P(!1),v&&v(e)},onFocus:e=>{D(e),!0===k.current&&P(!0),m&&m(e)},ref:M,ownerState:F,variant:x,sx:[...Object.keys(A).includes(f)?[]:[{color:f}],...Array.isArray(C)?C:[C]]},O))}))},8457:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALEAAABFCAYAAAAFKgfKAAAQE0lEQVR4Ae2dS4wcRxmA/6p5GLxEHiuHRILgtpx1wslrDjwuZDdcAduckTyrxOsIFNl7Q1HsnbVz4YC8IQoku4685sjFNnCMtGMuICTkzQWIdy23RZDgABlAgL0zXcX/Vz+mp6cf1Y/ZJUl90u70zHTXdNf8/df/qhoAg8FgMBgMBoPBYDAYDIa9hEEJ2lan1WzWzoGUbXxqSYAeNrkJIK+vbV1cB4NhFygsxO1nO1bT4Ru4aSXsYu/0xdy63bHBYJgghYQ4KsCkgTnATSlZC5icgaFg9ySIubWtziYYDBOCQ07GBFjI16f64vDbWxfnV7cvnOI1MYfmxbK3e4sB30CzwwKDYULk1sRnpy9dQ83bVk9QWFe3lzpx+y08vdwBxpa8p2RaHEfTogcGQ8XU8ux8ZrrTRrnv0DZK/zoK8GLSvr/7e7f7xYOzBxljX8GnrRqHR/QaGAwVk8ucQNMg0KysL5az9u87skP7ugezcxTNAIOhYrSF2NXCnsMm5fW3NKIOZD44QvjautWss/NgMFSMthCHtXCSHRzHO/c6N934MTXCToPBUDFaQvzi051ZCGlhyAmT8nVv0/LaMhgqQ0uIa4wHGpQP5DrkhNeHxzDJToLBUCGZQkxxYT+kRhGJtwpk4N76ozrG9j7xOTAYKiRTiBsOzPrbAyFuQUEwKaKOZcBmTJTCUCU8e4eab0rY5KRBUbgMUs+12vDGMBjKkirErikhZ2kbTYkulAAFtxtsM26BwVARqUJclSlBkF3sh9oYg2NgMFREqhBzWTvhb5cyJTzQHrbpEYV5FgyGiqinvSndskoMDbMuVACTYEsG1GbLywBSyM3Cz7lpyjUNRUkUYhSyoC6YgSxsSrxw5PJJzuU1tKlbknSwC5VoXgO38d7a1lJn4Ujn5GoF2t7wySMQYhK2GpdX4nZC7bm0cPTSc6t3L56CnHDukMAmhtRQy29SyI1xTqaLlhC/hA6ncPj9kXa8wvxHfbGsM5skWiq6unXxMG2QM7tvwM/hNVNSxoISCCnmrm53uknvt1FRNIHfiH4OXQtjbGX17oXUIquz05c3fMe7HGpKWXfH7bsejZKBkkGwb0pNY/NRteiidkVKOUtKDUrQGHDrzfuvPqDtwCZmTFrgdmb4z32PPlDCyYVnLpUq4Hnq2SeC7W++7OY8OJN2va5MjFK4mh7azQa/440ihaCCfxRguk4LJkycABNuf8vO7qXoldl4vtkcCm7VBJMppDxZVoCj8OGGDBre/9in1N8YApbyJirI5qXHxz97AL7e/nLw+jde/hoc/dIhvCaJdxOfEUwehGooPJuERiPYBeElRqoCE2DDkWJ3QEU1qUSUF+myYAIMbWI2/IDTP/gW/OS7P1Pbz6PgffD7v8Dd3yrN3fLu1txmxeOfG++bp77wBLz/mwc2amNLSjgEBRESFrlyQoMquRZqZBLkXBNVyfQJB2wcIU5hOLDwbJTPDCDWWSWtxBweFlCbSlbps6i2hHF2jl7EaM7smelLbb2Z4/K2kKp+OxccFQh+UGBGTrH6gR0YQNUoZRYySsr27Zv3Lz7wt+vDD+EHMEqAGrOl/nyeQW35eTQDPCFWdysNc2m2Xhwf/OGv8NQrT8JXv30MhfdJ9drmu3fR3hY2flkW/pXQAGJzdauzgnauHbJzrWaD3fAEuVBnvTMhR3MfCrAMaSUJ4hR+lhJ4PN/NJmfkH6j38Xu/gq/dzLoG7L/7V7eXupAT9C9s9C+uwO5iV9m3YU2shOi//3oYvEQmBWnLX/zoVyMHccavYcdqzZlDDdvCOw7+88+H8GPU7mRGYIfDD7/zU/jbn0cOt6AkVOd85shyy9dkeFEzjQajL2geCkDzCaEE6GQuRvtIZUEdb44ieNO8QuFFz7FaDjlW/mSCTtpnoYM3o5zVnEiHjYyA/5aDfzRg4rTK9i1NTPa3AyGWnrFNwvbLN27DhVsL8OnH9sGfUIP++sZ70TZQy6nhcDHrwxgfGvEktNe///OR9/c59fv9mjNL2987/Noh3+Msytq9pfNnp5ePSRyK1eej3CwcvWxnefpxBBNiC4JDcwdgdMj0tHBA3DQvjJmv4zWc9q/Bm9q1nm4aMTILcju04XOhfIB3E8GEaZXtWwgppsAAxDvZ8rc3330fLp9YhVeefyOwjWM4X4X3THe+AKa+6J36oBLn7lFfks1uBy+grVg2slIF5MyNfHlSLieVtjrDZQ8I8kUmOuSTANcGTqERa68Z2sQFwh46ZoVvayfh3fk9dT8JTpqkdOaO2kRbb06EVygScGXh6Gsfrt59VXtmCg31UAK6QUfbG3Hm0B9g5xamL+lN2cr0ReRtVETrSYe7jtVotIMcYsZEd6oP9sruLqfQY5o5AR2UELvJAyhCtlnBUm8O1XFC1HqYaKHCoMrCO1RwhDcHamS+EdygUqzga+/pprjDdldZ4kJq3nlpX7MXcuvGvoeO3erW0nra8QtPX+qFIxEck1ioXroru78eSK/KvlVC7DgUWy0MmRW38kYrCNQcNj1iaMtWkWo5NGmqgIQVhQdvsKGTRDFkDFst4vUekhnHv4Cp8DJhoAGG2GhUiAmpFSJfyG2c1e2LFMFphTSy1x+d1KXGquiHyEutsqao37e0rYTYjyAUhTMVATgOeZFcnUStBj0aCThnB6BiyEnCL84a/eLgWpYAq/PiKqNWmHpdzOFDNxpSI1tYYJpXtx3G+A1/NNENuSVBERzsD0gTZH9k9CnbD1OMW49A9EIlky00RTegBFNuTXpYiGu0ECAUh6nwTtxUfpk2XHKhbEYa+tE2RLNV5vaudYj54mLp9+FmswG0jwUVEQ2pQc4lDwg0A5ZDZoBWyC2NLEF2HKeLgmtDhf0wGIj1BpqeVaecCXVzeHUTyTANI9wNA1njb8jEk+aSfRh6qpIeMCHoi8OkwjxLKSsl7aYWRAR5XULx4TPMvogZQYkNyAmZARCOtiT2dZ428UaKREA8QZ4J98PI55aA2qzVxPEq+9ZHGRGRiq4xdmricMZaxAq0cbtrW0tz4ddQw95POo68f9/AX5i+fIcKUXb64qBZeNCQB9dMYenCuY7DvZAi05skx6N4PFaojEqjUd0QZvhk4JoTGMtN2cemfyr6oGNWuJVuVugVCzSQwhti3FixwaCNr4nTitbtYGcuFjXsmVajwfLnxb0p/Zn2ucEQwY1OaHqMKoow6inH4psVq+8rh0SLYcKDFS7J3Auo/vZT2H+DevaIUx+AnWcFpZe8ES2pbaamdo3Hd/Ock855UXtk5lEoFgqAMV07WvdRts3wtXtCLK2kMDHNvAg/J0/57PTyiaA4JQkyK57t3ISUTGC4EL7RcDYxTawVZvOmJ8U6mnhDrq+VyAZhMoHmA7Zj3rJ5X8z5X7abgaudZiBnBegtaicaytHFc6QIibOYJID0i1SY+DkvPOWS1LY3gTdwpBeOXl7yf8lK95xC52WjJlkMz3Ok8GDDqV1j/tojBXMJzbqKgnSqbDN87a5NDGnmBM28GCVSnJJEq+mw9CC5GNri/roUOmE22tcNAY2Hf0gAzxQs89MVYPzCr1CpJCs4v42Ow+PvRJ1gNYWnwe9QwVLeeOrC0Us3wC2Kt6AYFtqL18IzOygixSqZwzeEQo5Vt8lJq6XvwsZsYHLy6AdnIBOWy0nz1qVoUUlm1r5VC7KuAHtTmApGYCJEpnt5MWULcqJSuFJNbC0LJlJ4mzY8ubCgYnCEqOI8R6hn1U04Uthxr9NPGTQ4O11tBobCbGxmhyvhXM/amwTZrVYjjT96w3iCDDqmRbIAy839fTkXLpBBg2cWYLTH1ExryTYhA8nGNFDLW5fuptfO7NgxqW27zjBPMu3wOJbiiMecD6Qlp3TajEOwoQzFykuBNv1rJ+pZdRNJhR9eCWW4uKY8ErWqOhf99DMJMk1BwnTxRhFBThJgsrmmBuJUtMKLc35MgozsK069rVEAdebI8spw1olLZF06K3oM/bxakSozlUjavjCf93wywJT5hfw1MhmUbbPOWNaM2+Q7ZGwGQk6i4TTUDJR6JtWSa602L8N3/MXp5XUOoz+pkCbISQKMzuX1q9sX21Ax8X2ZrvkKl0lK6L2UkZoWNYwE5SuZaVF2V0ac/SQYxv51FsShqUoCxG3QgNrccVQFm+2/hpqYp2rifj89d85qcl467D5UgxsrzmlL+1zdWmqjdulFtUucICdqYLT1r95bqsbm3UNo7QzZ4OnXESPA6LSr7+DhQ+g1xyfbqTJOBpohBe5GPaheJBSJsWF8sZg2Orpt0AHbbFK7R19r+xMcOM/QBFl1DGoVeL1oRSahG0bLuYuD5tjFnY8ryMsbdNefmb68EWsD43FrHwMBLoHdcFxFQt+7gPy/zxKDhb0/zCtI0AgIaCDFiu8U1zPqJmzQYGcgV5oNNYxbUALqOBWvxHb6NVXttQIFSCq9pCSMVI8xKijl11E/irjhSk1nSbIek+I2c+RKOOmhRrbpTpfJ2gldB14OV5IKYCFzk/IMNB0tV5tqBBjzk1q0RgY+9uppc+DCKec0SPgwzDNfoNB57CIYeqrUEZIrz7mQEBM7dbnecNg5zY6y6UaEjxH0i1VV3JTk90COuYYqWdPgH1bZJpFWDVmHiua1UewYnbxuTidv7LOFFA8w9UzC/BwUJPQj6rrXRgutbBRfaIXP4E2cvodU9uTp8XdYMcctCwYn8Jy6kJPwtJ8iU4iyAgVUr5w31Ux9JyE5FFwPT9UfO1jTC/UhJw9jtndKxY5VIZA63VaRlYZCAmzFvG3TP69DIufIZihMV0SQuaolyUjyJnwD6JVvQkmCqM7oB85wxnJPAfKnVNF22SlEcaADdyNL0GMOSnUlucyZck6DnDy0THI5eVEHLvzbHjxn6C5NgMlJoeVb6Q+jFAfjnRYSZKWRKxmdNLCLTLCNQtOq4P8bGyaAvyQCF0LMq/UHMLSkpu6QTRo4BPmHOncqjSysXbzfvFNgmEjbpMgSYHJSwq/R870UZOrjIlOV4lAjh8xejWnPkJVEOSJtsmCybD1pYbfzJb5EIeWi7lD2qDY4jA+Bxg/bYeTVkjBlDe95BdiHXkc7/tC4HV/ctEhDRQyUsyxuTaEjWeV6D57X38U+wxAjPxbjze8FFH69XnHUR7W5fyACR1wzap0f3ZSmFDC/ds9dR4EEOGqH0RKgaSsopgkwpY7Xti/MQQquN8024ouV5OZOX44Ictzq7Fkrwhsmi27JaW6oQEjmKOogYaJlsbynNpk4+/viYFEBJgGcGjiZwzUJKAlqvAm06zayoQATE2JXe4lFyKju8usnGg33NzIo7YvCe/wqDo9pw22WAEerz7LO1QjyR5eJCTFBQW2qUOI1cZjMgrh1DPyYIYPaOT/tu1LCBs4rwD5GkD+61GEX8CIO9KdMA++HYWYo9Qj+cklS3NJxACYhwD5q3TRV1snujLfvOnv5ir4MBoPBYDAYDAaDwWAwZPI/iTTgFxK8/KcAAAAASUVORK5CYII="},20466:(e,t,n)=>{n.d(t,{k:()=>a});var r=n(13659);const a=(e,t,n)=>(0,r.M8)(e,{variant:t,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:n||2e3})},22568:(e,t,n)=>{var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==m(e)&&"function"!==typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(85672)),a=["placeholder","separator","isLastChild","ariaLabelOverride","shouldRender","inputStyle","focus","isDisabled","hasErrored","errorStyle","isSuccessed","successStyle","focusStyle","disabledStyle","shouldAutoFocus","isInputNum","index","value","className","isInputSecure","onSubmit"];function o(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n0&&console.error("Length of the placeholder should be equal to the number of inputs.")}})),g(h(e),"handleOtpChange",(function(t){(0,e.props.onChange)(t.join(""))})),g(h(e),"isInputValueValid",(function(t){return(e.props.isInputNum?!isNaN(parseInt(t,10)):"string"===typeof t)&&1===t.trim().length})),g(h(e),"focusInput",(function(t){var n=e.props.numInputs,r=Math.max(Math.min(n-1,t),0);e.setState({activeInput:r})})),g(h(e),"focusNextInput",(function(){var t=e.state.activeInput;e.focusInput(t+1)})),g(h(e),"focusPrevInput",(function(){var t=e.state.activeInput;e.focusInput(t-1)})),g(h(e),"changeCodeAtFocus",(function(t){var n=e.state.activeInput,r=e.getOtpValue();r[n]=t[0],e.handleOtpChange(r)})),g(h(e),"handleOnPaste",(function(t){t.preventDefault();var n=e.state.activeInput,r=e.props,a=r.numInputs;if(!r.isDisabled){for(var o=e.getOtpValue(),i=n,s=t.clipboardData.getData("text/plain"),l=(e.props.isInputNum?s.replace(/\D/g,""):s).slice(0,a-n).split(""),c=0;c=n&&l.length>0&&(o[c]=l.shift(),i++);e.setState({activeInput:i},(function(){e.focusInput(i),e.handleOtpChange(o)}))}})),g(h(e),"handleOnChange",(function(t){var n=t.target.value;e.isInputValueValid(n)&&e.changeCodeAtFocus(n)})),g(h(e),"handleOnKeyDown",(function(t){8===t.keyCode||"Backspace"===t.key?(t.preventDefault(),e.changeCodeAtFocus(""),e.focusInput(e.state.activeInput-1)):46===t.keyCode||"Delete"===t.key?(t.preventDefault(),e.changeCodeAtFocus("")):37===t.keyCode||"ArrowLeft"===t.key?(t.preventDefault(),e.focusPrevInput()):39===t.keyCode||"ArrowRight"===t.key?(t.preventDefault(),e.focusNextInput()):32===t.keyCode||" "===t.key||"Spacebar"===t.key||"Space"===t.key?t.preventDefault():13!==t.keyCode&&"Enter"!==t.key||e.props.onSubmit()})),g(h(e),"handleOnInput",(function(t){var n=t.target.value;if(t.target.value)if(t.target.value&&t.target.value.length>1){t.preventDefault();for(var r=e.props.numInputs,a=e.state.activeInput,o=e.getOtpValue(),i=t.target.value.slice(0,r-a).split(""),s=0;s=a&&i.length>0&&(o[s]=i.shift());e.handleOtpChange(o),e.focusInput(e.props.numInputs)}else if(n&&n.trim().length>1)t.clipboardData={getData:function(){return n.trim()}},e.handleOnPaste(t);else if(e.isInputValueValid(t.target.value))e.focusNextInput();else if(!e.props.isInputNum){var l=t.nativeEvent;null===l.data&&"deleteContentBackward"===l.inputType&&(t.preventDefault(),e.changeCodeAtFocus(""),e.focusPrevInput())}})),g(h(e),"renderInputs",(function(){for(var t=e.state.activeInput,n=e.props,a=n.id,o=n.autoComplete,s=n.numInputs,l=n.inputStyle,c=n.focusStyle,u=n.separator,d=n.separateAfter,p=void 0===d?1:d,f=n.isDisabled,h=n.disabledStyle,v=n.hasErrored,g=n.errorStyle,m=n.isSuccessed,y=n.successStyle,A=n.shouldAutoFocus,x=n.isInputNum,j=n.isInputSecure,S=n.className,w=n.inputProps,C=n.onSubmit,O=[],k=e.getOtpValue(),I=e.getPlaceholderValue(),D=e.props["data-cy"],N=e.props["data-testid"],E=e.props["custom-test-attr"],P=e.props["custom-test-id"],M=function(n){var d=void 0;d=(n+1)%parseInt(p)===0;var M={};E&&(M[E]=P&&"".concat(P,"-").concat(n));var F={};w&&(Array.isArray(w)?w[n]&&(F=w[n]):F=w),O.push(r.default.createElement(b,i({id:a&&"".concat(a,"-").concat(n),autoComplete:null!==o&&void 0!==o?o:"off",placeholder:I&&I[n],key:n,index:n,focus:t===n,value:k&&k[n],onChange:e.handleOnChange,onKeyDown:e.handleOnKeyDown,onInput:e.handleOnInput,onPaste:e.handleOnPaste,onFocus:function(t){e.setState({activeInput:n}),t.target.select()},onBlur:function(){return e.setState({activeInput:-1})},separator:u,inputStyle:l,focusStyle:c,isLastChild:n===s-1,isDisabled:f,disabledStyle:h,hasErrored:v,errorStyle:g,isSuccessed:m,successStyle:y,shouldAutoFocus:A,isInputNum:x,isInputSecure:j,className:S,"data-cy":D&&"".concat(D,"-").concat(n),"data-testid":N&&"".concat(N,"-").concat(n),shouldRender:d,onSubmit:C},F,M)))},F=0;F0&&this.setState({activeInput:0})}},{key:"render",value:function(){var e=this.props.containerStyle;return r.default.createElement("div",{style:Object.assign({display:"flex"},y(e)&&e),className:y(e)?"":e},this.renderInputs())}}]),n}(r.Component);g(A,"defaultProps",{numInputs:4,onChange:function(e){return console.log(e)},isDisabled:!1,shouldAutoFocus:!1,value:"",isInputSecure:!1,onSubmit:function(e){return console.log(e)}})},26067:(e,t,n)=>{n.r(t),n.d(t,{default:()=>N});var r=n(85672),a=n(13659),o=n(855),i=(n(22568),n(48738)),s=n(2866),l=n(71392),c=n(84007),u=n(75953),d=n(86270),p=n(43318),f=n(11969),h=n(35935),v=n(7051),g=n(80911),m=n(69039),y=n(66157),b=n(96515),A=n(52351),x=n(8457);const j=n.p+"static/media/express.f3f0173f40dff89a5846.png";var S=n(65383),w=n(20466),C=(n(45669),n(63981)),O=n(34356),k=n(68889),I=n(91363),D=n(65908);const N=()=>{const e=(0,S.wA)(),t=(0,S.d4)((e=>e.fcm)),n=((0,S.d4)((e=>e.fcm.permission)),(0,m.A)()),[N,E]=(0,r.useState)(!1);let P=(0,b.Zp)();const[M,F]=(0,r.useState)(""),[Y,T]=(0,r.useState)(""),[R,V]=(0,r.useState)({}),[z,L]=(0,r.useState)(""),[B,U]=(0,r.useState)(0),[q,J]=(0,r.useState)(""),[H,Q]=(0,r.useState)(""),[W,G]=(0,r.useState)(!1),[Z,K]=(0,r.useState)(!1),[X,_]=(0,r.useState)(!1),[$,ee]=(0,r.useState)(0);(0,r.useEffect)((()=>{localStorage.getItem("firstname")&&P("/nearle/dispatch")}),[]);const te=async()=>{if(E(!0),!z)return ne("Fill All required fields"),void E(!1);try{const n=await y.A.post("https://jupiter.nearle.app/live/api/v1/users/console/login",{authname:z,configid:9,userfcmtoken:null===t||void 0===t?void 0:t.token,password:q});if(409!=n.data.code||n.data.status)if(403==n.data.code)(0,w.k)(n.data.message,"warning",3e3);else if(409==n.data.code&&n.data.status)U(1),ee(n.data.details.userid),(0,w.k)("User Found","success",3e3),(0,w.k)(n.data.message,"success",3e3);else if(401!=n.data.code||n.data.status)if(401==n.data.code&&n.data.status)(0,w.k)(n.data.message,"success",3e3),re(n.data.userid),U(2);else if(200==n.data.code&&n.data.status){(0,w.k)(n.data.message,"success",1e3),V(n.data.details);const t=n.data.details;e((0,k.FN)(t)),localStorage.setItem("firstname",t.firstname),localStorage.setItem("authname",t.authname),localStorage.setItem("roleid",t.roleid),localStorage.setItem("tenantid",t.tenantid),localStorage.setItem("partnerid",t.partnerid),localStorage.setItem("applocationid",t.applocationid),localStorage.setItem("userid",t.userid),localStorage.setItem("userfcmtoken",t.userfcmtoken),(0,I.oZ)(),re(t.userid),P("/nearle/dispatch")}else(0,w.k)(n.data.message,"error",3e3);else(0,w.k)(n.data.message,"error",3e3);else(0,w.k)(n.data.message,"error",3e3)}catch(n){console.error(n),(0,w.k)(n.message,"error",5e3)}finally{E(!1)}},ne=e=>{(0,a.M8)(e,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:1500})},re=async e=>{const t=[...(await y.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e))).data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(t))};return(0,D.jsxs)(i.A,{sx:{minHeight:"100vh",display:"flex",bgcolor:"#f8fafc"},children:[N&&(0,D.jsx)(A.A,{}),(0,D.jsxs)(i.A,{sx:{display:{xs:"none",md:"flex"},position:"relative",overflow:"hidden",flexBasis:"46%",flexDirection:"column",justifyContent:"center",color:"#fff",p:6,background:"linear-gradient(150deg, #4D1C61 0%, #662582 52%, #9255AB 100%)"},children:[(0,D.jsx)("img",{src:j,alt:"Operate your dispatch",style:{position:"absolute",top:48,left:48,maxHeight:60}}),(0,D.jsx)(i.A,{sx:{position:"absolute",top:-120,right:-80,width:360,height:360,borderRadius:"50%",background:"radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 70%)"}}),(0,D.jsx)(i.A,{sx:{position:"absolute",bottom:-150,left:-110,width:440,height:440,borderRadius:"50%",background:"radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 70%)"}}),(0,D.jsxs)(i.A,{sx:{position:"relative",maxWidth:430},children:[(0,D.jsxs)(s.A,{sx:{fontSize:40,fontWeight:700,lineHeight:1.18,letterSpacing:"-0.02em",mb:2},children:["Operate your dispatch,",(0,D.jsx)("br",{}),"end to end."]}),(0,D.jsx)(s.A,{sx:{fontSize:17.5,color:"rgba(255,255,255,0.85)",mb:4,lineHeight:1.6},children:"Orders, AI route optimisation, live rider tracking and billing \u2014 all in the NearlExpress operator console."}),(0,D.jsx)(l.A,{spacing:1.5,sx:{display:"inline-flex",textAlign:"left"},children:["Real-time fleet visibility","AI-optimised dispatch routes","Tenant, pricing & invoice control"].map((e=>(0,D.jsxs)(l.A,{direction:"row",spacing:1.25,alignItems:"center",children:[(0,D.jsx)(i.A,{sx:{width:22,height:22,borderRadius:"50%",bgcolor:"rgba(255,255,255,0.18)",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:13,fontWeight:700},children:"\u2713"}),(0,D.jsx)(s.A,{sx:{fontSize:16,color:"rgba(255,255,255,0.9)"},children:e})]},e)))})]})]}),(0,D.jsx)(i.A,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",p:{xs:2.5,sm:4}},children:(0,D.jsxs)(i.A,{sx:{width:"100%",maxWidth:420},children:[(0,D.jsxs)(c.A,{sx:{width:"100%",borderRadius:3,border:"1px solid ".concat(n.palette.divider),boxShadow:"0 14px 40px rgba(15, 23, 42, 0.10)",p:{xs:2.5,sm:4}},children:[(0,D.jsx)(l.A,{alignItems:"center",mb:2.5,children:(0,D.jsx)("img",{src:x,alt:"loginpagelogo",style:{maxHeight:48}})}),(0,D.jsx)(s.A,{variant:"h3",textAlign:"center",sx:{fontWeight:700,mb:.5},children:"Welcome back"}),(0,D.jsx)(s.A,{variant:"body2",textAlign:"center",sx:{color:"#64748b",mb:3},children:"Sign in to the NearlExpress console"}),(0,D.jsx)(u.A,{sx:{p:0},children:(0,D.jsx)("form",{noValidate:!0,onSubmit:e=>{e.preventDefault(),0==B?te():1==B?q&&H&&q==H?(async()=>{const e=await y.A.put("".concat("https://jupiter.nearle.app/live/api/v2","/users/update"),{userid:$,password:q});e.data.status&&((0,w.k)(e.data.message,"success",3e3),(0,w.k)("Enter Password to Login","success",3e3),U(2),J(""))})():(0,w.k)("Check Password","warning",3e3):2==B&&(q||(0,w.k)("Invalid Password","warning",3e3),te())},children:(0,D.jsxs)(l.A,{spacing:3,children:[(0,D.jsx)(d.A,{autoFocus:!0,fullWidth:!0,label:"E-mail Address",variant:"outlined",autoComplete:"email",required:!0,value:z,onChange:e=>L(e.target.value.toLocaleLowerCase()),InputProps:{readOnly:B}}),1==B&&(0,D.jsxs)(l.A,{display:"flex",flexDirection:"column",spacing:3,children:[(0,D.jsx)(s.A,{variant:"h4",textAlign:"start",mb:3,children:"Setup Password"}),(0,D.jsx)(d.A,{autoFocus:!0,fullWidth:!0,label:"Enter New Password",variant:"outlined",required:!0,type:Z?"text":"password",value:q,onChange:e=>J(e.target.value),InputProps:{endAdornment:(0,D.jsx)(p.A,{position:"end",children:(0,D.jsx)(f.A,{onClick:()=>K((e=>!e)),edge:"end",children:Z?(0,D.jsx)(O.A,{}):(0,D.jsx)(C.A,{})})})}}),(0,D.jsx)(d.A,{error:""!==H&&q!==H,fullWidth:!0,label:"Re-Enter Password",variant:"outlined",required:!0,type:X?"text":"password",value:H,onChange:e=>Q(e.target.value),InputProps:{endAdornment:(0,D.jsx)(p.A,{position:"end",children:(0,D.jsx)(f.A,{onClick:()=>_((e=>!e)),edge:"end",children:X?(0,D.jsx)(O.A,{}):(0,D.jsx)(C.A,{})})})}})]}),2==B&&(0,D.jsxs)(l.A,{display:"flex",flexDirection:"column",spacing:3,children:[(0,D.jsx)(s.A,{variant:"h4",textAlign:"start",mb:3,children:"Enter Password"}),(0,D.jsx)(d.A,{autoFocus:!0,fullWidth:!0,label:"Enter Password",variant:"outlined",required:!0,type:Z?"text":"password",value:q,onChange:e=>J(e.target.value),InputProps:{endAdornment:(0,D.jsx)(p.A,{position:"end",children:(0,D.jsx)(f.A,{onClick:()=>K((e=>!e)),edge:"end",children:Z?(0,D.jsx)(O.A,{}):(0,D.jsx)(C.A,{})})})}})]}),W&&(0,D.jsxs)(l.A,{spacing:1.5,children:[(0,D.jsxs)(l.A,{direction:"row",justifyContent:"space-between",children:[(0,D.jsx)(h.A,{children:"Enter Password"}),(0,D.jsx)(v.A,{variant:"body2",sx:{cursor:"pointer"},onClick:()=>{F(""),te()},children:"Retry"})]}),(0,D.jsx)(d.A,{type:"passowrd",value:q,onChange:e=>J(e.target.value)})]}),(0,D.jsx)(o.A,{children:(0,D.jsx)(g.A,{fullWidth:!0,size:"large",type:"submit",variant:"contained",color:"primary",children:"Continue"})})]})})})]}),(0,D.jsxs)(l.A,{direction:"row",justifyContent:"center",alignItems:"center",flexWrap:"wrap",useFlexGap:!0,spacing:2,sx:{mt:3},children:[(0,D.jsx)(s.A,{variant:"caption",component:v.A,href:"https://nearle.in",target:"_blank",sx:{color:"#94a3b8",textDecoration:"none",fontWeight:600,"&:hover":{color:"#662582"}},children:"\xa9 All rights reserved"}),(0,D.jsx)(s.A,{variant:"caption",component:v.A,href:"https://nearle.in/terms",target:"_blank",sx:{color:"#94a3b8",textDecoration:"none",fontWeight:600,"&:hover":{color:"#662582"}},children:"Terms and Conditions"}),(0,D.jsx)(s.A,{variant:"caption",component:v.A,href:"https://nearle.in/privacy",target:"_blank",sx:{color:"#94a3b8",textDecoration:"none",fontWeight:600,"&:hover":{color:"#662582"}},children:"Privacy Policy"})]})]})})]})}},34356:(e,t,n)=>{var r=n(39744);t.A=void 0;var a=r(n(24956)),o=n(65908);t.A=(0,a.default)((0,o.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},43318:(e,t,n)=>{n.d(t,{A:()=>j});var r=n(84849),a=n(27326),o=n(85672),i=n(72574),s=n(25234),l=n(16775),c=n(2866),u=n(25676),d=n(75520),p=n(60308),f=n(37300),h=n(10644);function v(e){return(0,h.Ay)("MuiInputAdornment",e)}const g=(0,f.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var m,y=n(38009),b=n(65908);const A=["children","className","component","disablePointerEvents","disableTypography","position","variant"],x=(0,p.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["position".concat((0,l.A)(n.position))],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,a.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===n.variant&&{["&.".concat(g.positionStart,"&:not(.").concat(g.hiddenLabel,")")]:{marginTop:16}},"start"===n.position&&{marginRight:8},"end"===n.position&&{marginLeft:8},!0===n.disablePointerEvents&&{pointerEvents:"none"})})),j=o.forwardRef((function(e,t){const n=(0,y.b)({props:e,name:"MuiInputAdornment"}),{children:p,className:f,component:h="div",disablePointerEvents:g=!1,disableTypography:j=!1,position:S,variant:w}=n,C=(0,r.A)(n,A),O=(0,d.A)()||{};let k=w;w&&O.variant,O&&!k&&(k=O.variant);const I=(0,a.A)({},n,{hiddenLabel:O.hiddenLabel,size:O.size,disablePointerEvents:g,position:S,variant:k}),D=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:a,size:o,variant:i}=e,c={root:["root",n&&"disablePointerEvents",a&&"position".concat((0,l.A)(a)),i,r&&"hiddenLabel",o&&"size".concat((0,l.A)(o))]};return(0,s.A)(c,v,t)})(I);return(0,b.jsx)(u.A.Provider,{value:null,children:(0,b.jsx)(x,(0,a.A)({as:h,ownerState:I,className:(0,i.A)(D.root,f),ref:t},C,{children:"string"!==typeof p||j?(0,b.jsxs)(o.Fragment,{children:["start"===S?m||(m=(0,b.jsx)("span",{className:"notranslate",children:"\u200b"})):null,p]}):(0,b.jsx)(c.A,{color:"text.secondary",children:p})}))})}))},63981:(e,t,n)=>{var r=n(39744);t.A=void 0;var a=r(n(24956)),o=n(65908);t.A=(0,a.default)((0,o.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")}}]); \ No newline at end of file diff --git a/build/static/js/1837.b15fae20.chunk.js b/build/static/js/1837.b15fae20.chunk.js deleted file mode 100644 index ad9f3b2..0000000 --- a/build/static/js/1837.b15fae20.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[1837],{855:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7208),a=n(76475),o=n(44414);function i(e){var t,n;let i,s,{children:l,type:c="scale",direction:u="right",offset:d=10,scale:p={hover:1.05,tap:.95}}=e;switch(u){case"up":case"left":i=d,s=0;break;default:i=0,s=d}const[f,h]=(0,r.Y)(i,s),[v,g]=(0,r.Y)(i,s);switch(c){case"rotate":return(0,o.jsx)(a.P.div,{animate:{rotate:360},transition:{repeat:1/0,repeatType:"loop",duration:2,repeatDelay:0},children:l});case"slide":return"up"===u||"down"===u?(0,o.jsx)(a.P.div,{animate:{y:void 0!==v?v:""},onHoverEnd:()=>g(),onHoverStart:()=>g(),children:l}):(0,o.jsx)(a.P.div,{animate:{x:void 0!==f?f:""},onHoverEnd:()=>h(),onHoverStart:()=>h(),children:l});default:return"number"===typeof p&&(p={hover:p,tap:p}),(0,o.jsx)(a.P.div,{whileHover:{scale:null===(t=p)||void 0===t?void 0:t.hover},whileTap:{scale:null===(n=p)||void 0===n?void 0:n.tap},children:l})}}},2046:(e,t,n)=>{n.d(t,{A:()=>j});var r=n(98587),a=n(58168),o=n(9950),i=n(72004),s=n(3484),l=n(89548),c=n(82053),u=n(15866),d=n(39766),p=n(59254),f=n(45558),h=n(1614);function v(e){return(0,h.Ay)("MuiInputAdornment",e)}const g=(0,f.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var m,y=n(18463),b=n(44414);const A=["children","className","component","disablePointerEvents","disableTypography","position","variant"],x=(0,p.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["position".concat((0,l.A)(n.position))],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,a.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===n.variant&&{["&.".concat(g.positionStart,"&:not(.").concat(g.hiddenLabel,")")]:{marginTop:16}},"start"===n.position&&{marginRight:8},"end"===n.position&&{marginLeft:8},!0===n.disablePointerEvents&&{pointerEvents:"none"})})),j=o.forwardRef((function(e,t){const n=(0,y.b)({props:e,name:"MuiInputAdornment"}),{children:p,className:f,component:h="div",disablePointerEvents:g=!1,disableTypography:j=!1,position:S,variant:w}=n,C=(0,r.A)(n,A),O=(0,d.A)()||{};let k=w;w&&O.variant,O&&!k&&(k=O.variant);const I=(0,a.A)({},n,{hiddenLabel:O.hiddenLabel,size:O.size,disablePointerEvents:g,position:S,variant:k}),D=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:a,size:o,variant:i}=e,c={root:["root",n&&"disablePointerEvents",a&&"position".concat((0,l.A)(a)),i,r&&"hiddenLabel",o&&"size".concat((0,l.A)(o))]};return(0,s.A)(c,v,t)})(I);return(0,b.jsx)(u.A.Provider,{value:null,children:(0,b.jsx)(x,(0,a.A)({as:h,ownerState:I,className:(0,i.A)(D.root,f),ref:t},C,{children:"string"!==typeof p||j?(0,b.jsxs)(o.Fragment,{children:["start"===S?m||(m=(0,b.jsx)("span",{className:"notranslate",children:"\u200b"})):null,p]}):(0,b.jsx)(c.A,{color:"text.secondary",children:p})}))})}))},8457:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALEAAABFCAYAAAAFKgfKAAAQE0lEQVR4Ae2dS4wcRxmA/6p5GLxEHiuHRILgtpx1wslrDjwuZDdcAduckTyrxOsIFNl7Q1HsnbVz4YC8IQoku4685sjFNnCMtGMuICTkzQWIdy23RZDgABlAgL0zXcX/Vz+mp6cf1Y/ZJUl90u70zHTXdNf8/df/qhoAg8FgMBgMBoPBYDAYDIa9hEEJ2lan1WzWzoGUbXxqSYAeNrkJIK+vbV1cB4NhFygsxO1nO1bT4Ru4aSXsYu/0xdy63bHBYJgghYQ4KsCkgTnATSlZC5icgaFg9ySIubWtziYYDBOCQ07GBFjI16f64vDbWxfnV7cvnOI1MYfmxbK3e4sB30CzwwKDYULk1sRnpy9dQ83bVk9QWFe3lzpx+y08vdwBxpa8p2RaHEfTogcGQ8XU8ux8ZrrTRrnv0DZK/zoK8GLSvr/7e7f7xYOzBxljX8GnrRqHR/QaGAwVk8ucQNMg0KysL5az9u87skP7ugezcxTNAIOhYrSF2NXCnsMm5fW3NKIOZD44QvjautWss/NgMFSMthCHtXCSHRzHO/c6N934MTXCToPBUDFaQvzi051ZCGlhyAmT8nVv0/LaMhgqQ0uIa4wHGpQP5DrkhNeHxzDJToLBUCGZQkxxYT+kRhGJtwpk4N76ozrG9j7xOTAYKiRTiBsOzPrbAyFuQUEwKaKOZcBmTJTCUCU8e4eab0rY5KRBUbgMUs+12vDGMBjKkirErikhZ2kbTYkulAAFtxtsM26BwVARqUJclSlBkF3sh9oYg2NgMFREqhBzWTvhb5cyJTzQHrbpEYV5FgyGiqinvSndskoMDbMuVACTYEsG1GbLywBSyM3Cz7lpyjUNRUkUYhSyoC6YgSxsSrxw5PJJzuU1tKlbknSwC5VoXgO38d7a1lJn4Ujn5GoF2t7wySMQYhK2GpdX4nZC7bm0cPTSc6t3L56CnHDukMAmhtRQy29SyI1xTqaLlhC/hA6ncPj9kXa8wvxHfbGsM5skWiq6unXxMG2QM7tvwM/hNVNSxoISCCnmrm53uknvt1FRNIHfiH4OXQtjbGX17oXUIquz05c3fMe7HGpKWXfH7bsejZKBkkGwb0pNY/NRteiidkVKOUtKDUrQGHDrzfuvPqDtwCZmTFrgdmb4z32PPlDCyYVnLpUq4Hnq2SeC7W++7OY8OJN2va5MjFK4mh7azQa/440ihaCCfxRguk4LJkycABNuf8vO7qXoldl4vtkcCm7VBJMppDxZVoCj8OGGDBre/9in1N8YApbyJirI5qXHxz97AL7e/nLw+jde/hoc/dIhvCaJdxOfEUwehGooPJuERiPYBeElRqoCE2DDkWJ3QEU1qUSUF+myYAIMbWI2/IDTP/gW/OS7P1Pbz6PgffD7v8Dd3yrN3fLu1txmxeOfG++bp77wBLz/mwc2amNLSjgEBRESFrlyQoMquRZqZBLkXBNVyfQJB2wcIU5hOLDwbJTPDCDWWSWtxBweFlCbSlbps6i2hHF2jl7EaM7smelLbb2Z4/K2kKp+OxccFQh+UGBGTrH6gR0YQNUoZRYySsr27Zv3Lz7wt+vDD+EHMEqAGrOl/nyeQW35eTQDPCFWdysNc2m2Xhwf/OGv8NQrT8JXv30MhfdJ9drmu3fR3hY2flkW/pXQAGJzdauzgnauHbJzrWaD3fAEuVBnvTMhR3MfCrAMaSUJ4hR+lhJ4PN/NJmfkH6j38Xu/gq/dzLoG7L/7V7eXupAT9C9s9C+uwO5iV9m3YU2shOi//3oYvEQmBWnLX/zoVyMHccavYcdqzZlDDdvCOw7+88+H8GPU7mRGYIfDD7/zU/jbn0cOt6AkVOd85shyy9dkeFEzjQajL2geCkDzCaEE6GQuRvtIZUEdb44ieNO8QuFFz7FaDjlW/mSCTtpnoYM3o5zVnEiHjYyA/5aDfzRg4rTK9i1NTPa3AyGWnrFNwvbLN27DhVsL8OnH9sGfUIP++sZ70TZQy6nhcDHrwxgfGvEktNe///OR9/c59fv9mjNL2987/Noh3+Msytq9pfNnp5ePSRyK1eej3CwcvWxnefpxBBNiC4JDcwdgdMj0tHBA3DQvjJmv4zWc9q/Bm9q1nm4aMTILcju04XOhfIB3E8GEaZXtWwgppsAAxDvZ8rc3330fLp9YhVeefyOwjWM4X4X3THe+AKa+6J36oBLn7lFfks1uBy+grVg2slIF5MyNfHlSLieVtjrDZQ8I8kUmOuSTANcGTqERa68Z2sQFwh46ZoVvayfh3fk9dT8JTpqkdOaO2kRbb06EVygScGXh6Gsfrt59VXtmCg31UAK6QUfbG3Hm0B9g5xamL+lN2cr0ReRtVETrSYe7jtVotIMcYsZEd6oP9sruLqfQY5o5AR2UELvJAyhCtlnBUm8O1XFC1HqYaKHCoMrCO1RwhDcHamS+EdygUqzga+/pprjDdldZ4kJq3nlpX7MXcuvGvoeO3erW0nra8QtPX+qFIxEck1ioXroru78eSK/KvlVC7DgUWy0MmRW38kYrCNQcNj1iaMtWkWo5NGmqgIQVhQdvsKGTRDFkDFst4vUekhnHv4Cp8DJhoAGG2GhUiAmpFSJfyG2c1e2LFMFphTSy1x+d1KXGquiHyEutsqao37e0rYTYjyAUhTMVATgOeZFcnUStBj0aCThnB6BiyEnCL84a/eLgWpYAq/PiKqNWmHpdzOFDNxpSI1tYYJpXtx3G+A1/NNENuSVBERzsD0gTZH9k9CnbD1OMW49A9EIlky00RTegBFNuTXpYiGu0ECAUh6nwTtxUfpk2XHKhbEYa+tE2RLNV5vaudYj54mLp9+FmswG0jwUVEQ2pQc4lDwg0A5ZDZoBWyC2NLEF2HKeLgmtDhf0wGIj1BpqeVaecCXVzeHUTyTANI9wNA1njb8jEk+aSfRh6qpIeMCHoi8OkwjxLKSsl7aYWRAR5XULx4TPMvogZQYkNyAmZARCOtiT2dZ428UaKREA8QZ4J98PI55aA2qzVxPEq+9ZHGRGRiq4xdmricMZaxAq0cbtrW0tz4ddQw95POo68f9/AX5i+fIcKUXb64qBZeNCQB9dMYenCuY7DvZAi05skx6N4PFaojEqjUd0QZvhk4JoTGMtN2cemfyr6oGNWuJVuVugVCzSQwhti3FixwaCNr4nTitbtYGcuFjXsmVajwfLnxb0p/Zn2ucEQwY1OaHqMKoow6inH4psVq+8rh0SLYcKDFS7J3Auo/vZT2H+DevaIUx+AnWcFpZe8ES2pbaamdo3Hd/Ock855UXtk5lEoFgqAMV07WvdRts3wtXtCLK2kMDHNvAg/J0/57PTyiaA4JQkyK57t3ISUTGC4EL7RcDYxTawVZvOmJ8U6mnhDrq+VyAZhMoHmA7Zj3rJ5X8z5X7abgaudZiBnBegtaicaytHFc6QIibOYJID0i1SY+DkvPOWS1LY3gTdwpBeOXl7yf8lK95xC52WjJlkMz3Ok8GDDqV1j/tojBXMJzbqKgnSqbDN87a5NDGnmBM28GCVSnJJEq+mw9CC5GNri/roUOmE22tcNAY2Hf0gAzxQs89MVYPzCr1CpJCs4v42Ow+PvRJ1gNYWnwe9QwVLeeOrC0Us3wC2Kt6AYFtqL18IzOygixSqZwzeEQo5Vt8lJq6XvwsZsYHLy6AdnIBOWy0nz1qVoUUlm1r5VC7KuAHtTmApGYCJEpnt5MWULcqJSuFJNbC0LJlJ4mzY8ubCgYnCEqOI8R6hn1U04Uthxr9NPGTQ4O11tBobCbGxmhyvhXM/amwTZrVYjjT96w3iCDDqmRbIAy839fTkXLpBBg2cWYLTH1ExryTYhA8nGNFDLW5fuptfO7NgxqW27zjBPMu3wOJbiiMecD6Qlp3TajEOwoQzFykuBNv1rJ+pZdRNJhR9eCWW4uKY8ErWqOhf99DMJMk1BwnTxRhFBThJgsrmmBuJUtMKLc35MgozsK069rVEAdebI8spw1olLZF06K3oM/bxakSozlUjavjCf93wywJT5hfw1MhmUbbPOWNaM2+Q7ZGwGQk6i4TTUDJR6JtWSa602L8N3/MXp5XUOoz+pkCbISQKMzuX1q9sX21Ax8X2ZrvkKl0lK6L2UkZoWNYwE5SuZaVF2V0ac/SQYxv51FsShqUoCxG3QgNrccVQFm+2/hpqYp2rifj89d85qcl467D5UgxsrzmlL+1zdWmqjdulFtUucICdqYLT1r95bqsbm3UNo7QzZ4OnXESPA6LSr7+DhQ+g1xyfbqTJOBpohBe5GPaheJBSJsWF8sZg2Orpt0AHbbFK7R19r+xMcOM/QBFl1DGoVeL1oRSahG0bLuYuD5tjFnY8ryMsbdNefmb68EWsD43FrHwMBLoHdcFxFQt+7gPy/zxKDhb0/zCtI0AgIaCDFiu8U1zPqJmzQYGcgV5oNNYxbUALqOBWvxHb6NVXttQIFSCq9pCSMVI8xKijl11E/irjhSk1nSbIek+I2c+RKOOmhRrbpTpfJ2gldB14OV5IKYCFzk/IMNB0tV5tqBBjzk1q0RgY+9uppc+DCKec0SPgwzDNfoNB57CIYeqrUEZIrz7mQEBM7dbnecNg5zY6y6UaEjxH0i1VV3JTk90COuYYqWdPgH1bZJpFWDVmHiua1UewYnbxuTidv7LOFFA8w9UzC/BwUJPQj6rrXRgutbBRfaIXP4E2cvodU9uTp8XdYMcctCwYn8Jy6kJPwtJ8iU4iyAgVUr5w31Ux9JyE5FFwPT9UfO1jTC/UhJw9jtndKxY5VIZA63VaRlYZCAmzFvG3TP69DIufIZihMV0SQuaolyUjyJnwD6JVvQkmCqM7oB85wxnJPAfKnVNF22SlEcaADdyNL0GMOSnUlucyZck6DnDy0THI5eVEHLvzbHjxn6C5NgMlJoeVb6Q+jFAfjnRYSZKWRKxmdNLCLTLCNQtOq4P8bGyaAvyQCF0LMq/UHMLSkpu6QTRo4BPmHOncqjSysXbzfvFNgmEjbpMgSYHJSwq/R870UZOrjIlOV4lAjh8xejWnPkJVEOSJtsmCybD1pYbfzJb5EIeWi7lD2qDY4jA+Bxg/bYeTVkjBlDe95BdiHXkc7/tC4HV/ctEhDRQyUsyxuTaEjWeV6D57X38U+wxAjPxbjze8FFH69XnHUR7W5fyACR1wzap0f3ZSmFDC/ds9dR4EEOGqH0RKgaSsopgkwpY7Xti/MQQquN8024ouV5OZOX44Ictzq7Fkrwhsmi27JaW6oQEjmKOogYaJlsbynNpk4+/viYFEBJgGcGjiZwzUJKAlqvAm06zayoQATE2JXe4lFyKju8usnGg33NzIo7YvCe/wqDo9pw22WAEerz7LO1QjyR5eJCTFBQW2qUOI1cZjMgrh1DPyYIYPaOT/tu1LCBs4rwD5GkD+61GEX8CIO9KdMA++HYWYo9Qj+cklS3NJxACYhwD5q3TRV1snujLfvOnv5ir4MBoPBYDAYDAaDwWAwZPI/iTTgFxK8/KcAAAAASUVORK5CYII="},20466:(e,t,n)=>{n.d(t,{k:()=>a});var r=n(8881);const a=(e,t,n)=>(0,r.M8)(e,{variant:t,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:n||2e3})},21862:(e,t,n)=>{var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==m(e)&&"function"!==typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(9950)),a=["placeholder","separator","isLastChild","ariaLabelOverride","shouldRender","inputStyle","focus","isDisabled","hasErrored","errorStyle","isSuccessed","successStyle","focusStyle","disabledStyle","shouldAutoFocus","isInputNum","index","value","className","isInputSecure","onSubmit"];function o(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n0&&console.error("Length of the placeholder should be equal to the number of inputs.")}})),g(h(e),"handleOtpChange",(function(t){(0,e.props.onChange)(t.join(""))})),g(h(e),"isInputValueValid",(function(t){return(e.props.isInputNum?!isNaN(parseInt(t,10)):"string"===typeof t)&&1===t.trim().length})),g(h(e),"focusInput",(function(t){var n=e.props.numInputs,r=Math.max(Math.min(n-1,t),0);e.setState({activeInput:r})})),g(h(e),"focusNextInput",(function(){var t=e.state.activeInput;e.focusInput(t+1)})),g(h(e),"focusPrevInput",(function(){var t=e.state.activeInput;e.focusInput(t-1)})),g(h(e),"changeCodeAtFocus",(function(t){var n=e.state.activeInput,r=e.getOtpValue();r[n]=t[0],e.handleOtpChange(r)})),g(h(e),"handleOnPaste",(function(t){t.preventDefault();var n=e.state.activeInput,r=e.props,a=r.numInputs;if(!r.isDisabled){for(var o=e.getOtpValue(),i=n,s=t.clipboardData.getData("text/plain"),l=(e.props.isInputNum?s.replace(/\D/g,""):s).slice(0,a-n).split(""),c=0;c=n&&l.length>0&&(o[c]=l.shift(),i++);e.setState({activeInput:i},(function(){e.focusInput(i),e.handleOtpChange(o)}))}})),g(h(e),"handleOnChange",(function(t){var n=t.target.value;e.isInputValueValid(n)&&e.changeCodeAtFocus(n)})),g(h(e),"handleOnKeyDown",(function(t){8===t.keyCode||"Backspace"===t.key?(t.preventDefault(),e.changeCodeAtFocus(""),e.focusInput(e.state.activeInput-1)):46===t.keyCode||"Delete"===t.key?(t.preventDefault(),e.changeCodeAtFocus("")):37===t.keyCode||"ArrowLeft"===t.key?(t.preventDefault(),e.focusPrevInput()):39===t.keyCode||"ArrowRight"===t.key?(t.preventDefault(),e.focusNextInput()):32===t.keyCode||" "===t.key||"Spacebar"===t.key||"Space"===t.key?t.preventDefault():13!==t.keyCode&&"Enter"!==t.key||e.props.onSubmit()})),g(h(e),"handleOnInput",(function(t){var n=t.target.value;if(t.target.value)if(t.target.value&&t.target.value.length>1){t.preventDefault();for(var r=e.props.numInputs,a=e.state.activeInput,o=e.getOtpValue(),i=t.target.value.slice(0,r-a).split(""),s=0;s=a&&i.length>0&&(o[s]=i.shift());e.handleOtpChange(o),e.focusInput(e.props.numInputs)}else if(n&&n.trim().length>1)t.clipboardData={getData:function(){return n.trim()}},e.handleOnPaste(t);else if(e.isInputValueValid(t.target.value))e.focusNextInput();else if(!e.props.isInputNum){var l=t.nativeEvent;null===l.data&&"deleteContentBackward"===l.inputType&&(t.preventDefault(),e.changeCodeAtFocus(""),e.focusPrevInput())}})),g(h(e),"renderInputs",(function(){for(var t=e.state.activeInput,n=e.props,a=n.id,o=n.autoComplete,s=n.numInputs,l=n.inputStyle,c=n.focusStyle,u=n.separator,d=n.separateAfter,p=void 0===d?1:d,f=n.isDisabled,h=n.disabledStyle,v=n.hasErrored,g=n.errorStyle,m=n.isSuccessed,y=n.successStyle,A=n.shouldAutoFocus,x=n.isInputNum,j=n.isInputSecure,S=n.className,w=n.inputProps,C=n.onSubmit,O=[],k=e.getOtpValue(),I=e.getPlaceholderValue(),D=e.props["data-cy"],N=e.props["data-testid"],E=e.props["custom-test-attr"],P=e.props["custom-test-id"],M=function(n){var d=void 0;d=(n+1)%parseInt(p)===0;var M={};E&&(M[E]=P&&"".concat(P,"-").concat(n));var F={};w&&(Array.isArray(w)?w[n]&&(F=w[n]):F=w),O.push(r.default.createElement(b,i({id:a&&"".concat(a,"-").concat(n),autoComplete:null!==o&&void 0!==o?o:"off",placeholder:I&&I[n],key:n,index:n,focus:t===n,value:k&&k[n],onChange:e.handleOnChange,onKeyDown:e.handleOnKeyDown,onInput:e.handleOnInput,onPaste:e.handleOnPaste,onFocus:function(t){e.setState({activeInput:n}),t.target.select()},onBlur:function(){return e.setState({activeInput:-1})},separator:u,inputStyle:l,focusStyle:c,isLastChild:n===s-1,isDisabled:f,disabledStyle:h,hasErrored:v,errorStyle:g,isSuccessed:m,successStyle:y,shouldAutoFocus:A,isInputNum:x,isInputSecure:j,className:S,"data-cy":D&&"".concat(D,"-").concat(n),"data-testid":N&&"".concat(N,"-").concat(n),shouldRender:d,onSubmit:C},F,M)))},F=0;F0&&this.setState({activeInput:0})}},{key:"render",value:function(){var e=this.props.containerStyle;return r.default.createElement("div",{style:Object.assign({display:"flex"},y(e)&&e),className:y(e)?"":e},this.renderInputs())}}]),n}(r.Component);g(A,"defaultProps",{numInputs:4,onChange:function(e){return console.log(e)},isDisabled:!1,shouldAutoFocus:!1,value:"",isInputSecure:!1,onSubmit:function(e){return console.log(e)}})},26067:(e,t,n)=>{n.r(t),n.d(t,{default:()=>N});var r=n(9950),a=n(8881),o=n(855),i=(n(21862),n(16491)),s=n(82053),l=n(93230),c=n(48089),u=n(50704),d=n(29925),p=n(2046),f=n(25333),h=n(29277),v=n(36080),g=n(10226),m=n(14857),y=n(26910),b=n(28429),A=n(52351),x=n(8457);const j=n.p+"static/media/express.f3f0173f40dff89a5846.png";var S=n(82569),w=n(20466),C=(n(45669),n(62375)),O=n(62462),k=n(68889),I=n(91363),D=n(44414);const N=()=>{const e=(0,S.wA)(),t=(0,S.d4)((e=>e.fcm)),n=((0,S.d4)((e=>e.fcm.permission)),(0,m.A)()),[N,E]=(0,r.useState)(!1);let P=(0,b.Zp)();const[M,F]=(0,r.useState)(""),[Y,T]=(0,r.useState)(""),[R,V]=(0,r.useState)({}),[z,L]=(0,r.useState)(""),[B,U]=(0,r.useState)(0),[q,J]=(0,r.useState)(""),[H,Q]=(0,r.useState)(""),[W,G]=(0,r.useState)(!1),[Z,K]=(0,r.useState)(!1),[X,_]=(0,r.useState)(!1),[$,ee]=(0,r.useState)(0);(0,r.useEffect)((()=>{localStorage.getItem("firstname")&&P("/nearle/dispatch")}),[]);const te=async()=>{if(E(!0),!z)return ne("Fill All required fields"),void E(!1);try{const n=await y.A.post("https://jupiter.nearle.app/live/api/v1/users/console/login",{authname:z,configid:9,userfcmtoken:null===t||void 0===t?void 0:t.token,password:q});if(409!=n.data.code||n.data.status)if(403==n.data.code)(0,w.k)(n.data.message,"warning",3e3);else if(409==n.data.code&&n.data.status)U(1),ee(n.data.details.userid),(0,w.k)("User Found","success",3e3),(0,w.k)(n.data.message,"success",3e3);else if(401!=n.data.code||n.data.status)if(401==n.data.code&&n.data.status)(0,w.k)(n.data.message,"success",3e3),re(n.data.userid),U(2);else if(200==n.data.code&&n.data.status){(0,w.k)(n.data.message,"success",1e3),V(n.data.details);const t=n.data.details;e((0,k.FN)(t)),localStorage.setItem("firstname",t.firstname),localStorage.setItem("authname",t.authname),localStorage.setItem("roleid",t.roleid),localStorage.setItem("tenantid",t.tenantid),localStorage.setItem("partnerid",t.partnerid),localStorage.setItem("applocationid",t.applocationid),localStorage.setItem("userid",t.userid),localStorage.setItem("userfcmtoken",t.userfcmtoken),(0,I.oZ)(),re(t.userid),P("/nearle/dispatch")}else(0,w.k)(n.data.message,"error",3e3);else(0,w.k)(n.data.message,"error",3e3);else(0,w.k)(n.data.message,"error",3e3)}catch(n){console.error(n),(0,w.k)(n.message,"error",5e3)}finally{E(!1)}},ne=e=>{(0,a.M8)(e,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:1500})},re=async e=>{const t=[...(await y.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e))).data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(t))};return(0,D.jsxs)(i.A,{sx:{minHeight:"100vh",display:"flex",bgcolor:"#f8fafc"},children:[N&&(0,D.jsx)(A.A,{}),(0,D.jsxs)(i.A,{sx:{display:{xs:"none",md:"flex"},position:"relative",overflow:"hidden",flexBasis:"46%",flexDirection:"column",justifyContent:"center",color:"#fff",p:6,background:"linear-gradient(150deg, #4D1C61 0%, #662582 52%, #9255AB 100%)"},children:[(0,D.jsx)("img",{src:j,alt:"Operate your dispatch",style:{position:"absolute",top:48,left:48,maxHeight:60}}),(0,D.jsx)(i.A,{sx:{position:"absolute",top:-120,right:-80,width:360,height:360,borderRadius:"50%",background:"radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 70%)"}}),(0,D.jsx)(i.A,{sx:{position:"absolute",bottom:-150,left:-110,width:440,height:440,borderRadius:"50%",background:"radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 70%)"}}),(0,D.jsxs)(i.A,{sx:{position:"relative",maxWidth:430},children:[(0,D.jsxs)(s.A,{sx:{fontSize:40,fontWeight:700,lineHeight:1.18,letterSpacing:"-0.02em",mb:2},children:["Operate your dispatch,",(0,D.jsx)("br",{}),"end to end."]}),(0,D.jsx)(s.A,{sx:{fontSize:17.5,color:"rgba(255,255,255,0.85)",mb:4,lineHeight:1.6},children:"Orders, AI route optimisation, live rider tracking and billing \u2014 all in the NearlExpress operator console."}),(0,D.jsx)(l.A,{spacing:1.5,sx:{display:"inline-flex",textAlign:"left"},children:["Real-time fleet visibility","AI-optimised dispatch routes","Tenant, pricing & invoice control"].map((e=>(0,D.jsxs)(l.A,{direction:"row",spacing:1.25,alignItems:"center",children:[(0,D.jsx)(i.A,{sx:{width:22,height:22,borderRadius:"50%",bgcolor:"rgba(255,255,255,0.18)",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:13,fontWeight:700},children:"\u2713"}),(0,D.jsx)(s.A,{sx:{fontSize:16,color:"rgba(255,255,255,0.9)"},children:e})]},e)))})]})]}),(0,D.jsx)(i.A,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",p:{xs:2.5,sm:4}},children:(0,D.jsxs)(i.A,{sx:{width:"100%",maxWidth:420},children:[(0,D.jsxs)(c.A,{sx:{width:"100%",borderRadius:3,border:"1px solid ".concat(n.palette.divider),boxShadow:"0 14px 40px rgba(15, 23, 42, 0.10)",p:{xs:2.5,sm:4}},children:[(0,D.jsx)(l.A,{alignItems:"center",mb:2.5,children:(0,D.jsx)("img",{src:x,alt:"loginpagelogo",style:{maxHeight:48}})}),(0,D.jsx)(s.A,{variant:"h3",textAlign:"center",sx:{fontWeight:700,mb:.5},children:"Welcome back"}),(0,D.jsx)(s.A,{variant:"body2",textAlign:"center",sx:{color:"#64748b",mb:3},children:"Sign in to the NearlExpress console"}),(0,D.jsx)(u.A,{sx:{p:0},children:(0,D.jsx)("form",{noValidate:!0,onSubmit:e=>{e.preventDefault(),0==B?te():1==B?q&&H&&q==H?(async()=>{const e=await y.A.put("".concat("https://jupiter.nearle.app/live/api/v2","/users/update"),{userid:$,password:q});e.data.status&&((0,w.k)(e.data.message,"success",3e3),(0,w.k)("Enter Password to Login","success",3e3),U(2),J(""))})():(0,w.k)("Check Password","warning",3e3):2==B&&(q||(0,w.k)("Invalid Password","warning",3e3),te())},children:(0,D.jsxs)(l.A,{spacing:3,children:[(0,D.jsx)(d.A,{autoFocus:!0,fullWidth:!0,label:"E-mail Address",variant:"outlined",autoComplete:"email",required:!0,value:z,onChange:e=>L(e.target.value.toLocaleLowerCase()),InputProps:{readOnly:B}}),1==B&&(0,D.jsxs)(l.A,{display:"flex",flexDirection:"column",spacing:3,children:[(0,D.jsx)(s.A,{variant:"h4",textAlign:"start",mb:3,children:"Setup Password"}),(0,D.jsx)(d.A,{autoFocus:!0,fullWidth:!0,label:"Enter New Password",variant:"outlined",required:!0,type:Z?"text":"password",value:q,onChange:e=>J(e.target.value),InputProps:{endAdornment:(0,D.jsx)(p.A,{position:"end",children:(0,D.jsx)(f.A,{onClick:()=>K((e=>!e)),edge:"end",children:Z?(0,D.jsx)(O.A,{}):(0,D.jsx)(C.A,{})})})}}),(0,D.jsx)(d.A,{error:""!==H&&q!==H,fullWidth:!0,label:"Re-Enter Password",variant:"outlined",required:!0,type:X?"text":"password",value:H,onChange:e=>Q(e.target.value),InputProps:{endAdornment:(0,D.jsx)(p.A,{position:"end",children:(0,D.jsx)(f.A,{onClick:()=>_((e=>!e)),edge:"end",children:X?(0,D.jsx)(O.A,{}):(0,D.jsx)(C.A,{})})})}})]}),2==B&&(0,D.jsxs)(l.A,{display:"flex",flexDirection:"column",spacing:3,children:[(0,D.jsx)(s.A,{variant:"h4",textAlign:"start",mb:3,children:"Enter Password"}),(0,D.jsx)(d.A,{autoFocus:!0,fullWidth:!0,label:"Enter Password",variant:"outlined",required:!0,type:Z?"text":"password",value:q,onChange:e=>J(e.target.value),InputProps:{endAdornment:(0,D.jsx)(p.A,{position:"end",children:(0,D.jsx)(f.A,{onClick:()=>K((e=>!e)),edge:"end",children:Z?(0,D.jsx)(O.A,{}):(0,D.jsx)(C.A,{})})})}})]}),W&&(0,D.jsxs)(l.A,{spacing:1.5,children:[(0,D.jsxs)(l.A,{direction:"row",justifyContent:"space-between",children:[(0,D.jsx)(h.A,{children:"Enter Password"}),(0,D.jsx)(v.A,{variant:"body2",sx:{cursor:"pointer"},onClick:()=>{F(""),te()},children:"Retry"})]}),(0,D.jsx)(d.A,{type:"passowrd",value:q,onChange:e=>J(e.target.value)})]}),(0,D.jsx)(o.A,{children:(0,D.jsx)(g.A,{fullWidth:!0,size:"large",type:"submit",variant:"contained",color:"primary",children:"Continue"})})]})})})]}),(0,D.jsxs)(l.A,{direction:"row",justifyContent:"center",alignItems:"center",flexWrap:"wrap",useFlexGap:!0,spacing:2,sx:{mt:3},children:[(0,D.jsx)(s.A,{variant:"caption",component:v.A,href:"https://nearle.in",target:"_blank",sx:{color:"#94a3b8",textDecoration:"none",fontWeight:600,"&:hover":{color:"#662582"}},children:"\xa9 All rights reserved"}),(0,D.jsx)(s.A,{variant:"caption",component:v.A,href:"https://nearle.in/terms",target:"_blank",sx:{color:"#94a3b8",textDecoration:"none",fontWeight:600,"&:hover":{color:"#662582"}},children:"Terms and Conditions"}),(0,D.jsx)(s.A,{variant:"caption",component:v.A,href:"https://nearle.in/privacy",target:"_blank",sx:{color:"#94a3b8",textDecoration:"none",fontWeight:600,"&:hover":{color:"#662582"}},children:"Privacy Policy"})]})]})})]})}},36080:(e,t,n)=>{n.d(t,{A:()=>C});var r=n(98587),a=n(58168),o=n(9950),i=n(72004),s=n(3484),l=n(89548),c=n(59254),u=n(18463),d=n(52695),p=n(31506),f=n(82053),h=n(45558),v=n(1614);function g(e){return(0,v.Ay)("MuiLink",e)}const m=(0,h.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var y=n(12703),b=n(99269);const A={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},x=e=>{let{theme:t,ownerState:n}=e;const r=(e=>A[e]||e)(n.color),a=(0,y.Yn)(t,"palette.".concat(r),!1)||n.color,o=(0,y.Yn)(t,"palette.".concat(r,"Channel"));return"vars"in t&&o?"rgba(".concat(o," / 0.4)"):(0,b.X4)(a,.4)};var j=n(44414);const S=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],w=(0,c.Ay)(f.A,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["underline".concat((0,l.A)(n.underline))],"button"===n.component&&t.button]}})((e=>{let{theme:t,ownerState:n}=e;return(0,a.A)({},"none"===n.underline&&{textDecoration:"none"},"hover"===n.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===n.underline&&(0,a.A)({textDecoration:"underline"},"inherit"!==n.color&&{textDecorationColor:x({theme:t,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===n.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(m.focusVisible)]:{outline:"auto"}})})),C=o.forwardRef((function(e,t){const n=(0,u.b)({props:e,name:"MuiLink"}),{className:c,color:f="primary",component:h="a",onBlur:v,onFocus:m,TypographyClasses:y,underline:b="always",variant:x="inherit",sx:C}=n,O=(0,r.A)(n,S),{isFocusVisibleRef:k,onBlur:I,onFocus:D,ref:N}=(0,d.A)(),[E,P]=o.useState(!1),M=(0,p.A)(t,N),F=(0,a.A)({},n,{color:f,component:h,focusVisible:E,underline:b,variant:x}),Y=(e=>{const{classes:t,component:n,focusVisible:r,underline:a}=e,o={root:["root","underline".concat((0,l.A)(a)),"button"===n&&"button",r&&"focusVisible"]};return(0,s.A)(o,g,t)})(F);return(0,j.jsx)(w,(0,a.A)({color:f,className:(0,i.A)(Y.root,c),classes:y,component:h,onBlur:e=>{I(e),!1===k.current&&P(!1),v&&v(e)},onFocus:e=>{D(e),!0===k.current&&P(!0),m&&m(e)},ref:M,ownerState:F,variant:x,sx:[...Object.keys(A).includes(f)?[]:[{color:f}],...Array.isArray(C)?C:[C]]},O))}))},62375:(e,t,n)=>{var r=n(24994);t.A=void 0;var a=r(n(79526)),o=n(44414);t.A=(0,a.default)((0,o.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},62462:(e,t,n)=>{var r=n(24994);t.A=void 0;var a=r(n(79526)),o=n(44414);t.A=(0,a.default)((0,o.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")}}]); \ No newline at end of file diff --git a/build/static/js/191.a343f9f5.chunk.js b/build/static/js/191.a343f9f5.chunk.js deleted file mode 100644 index ad2bbd0..0000000 --- a/build/static/js/191.a343f9f5.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[191],{1729:(t,e,s)=>{s.d(e,{t:()=>u});var i=s(9950),n=s(15941),r=s(45904),a=s(15441),h=s(30618),o=s(80958),l=s(73895);function u(t,e,s){const u=(0,a.jE)(s),c=(0,h.w)(),d=(0,r.h)(),A=u.defaultQueryOptions(t);A._optimisticResults=c?"isRestoring":"optimistic",(0,l.tu)(A),(0,o.LJ)(A,d),(0,o.wZ)(d);const[p]=i.useState((()=>new e(u,A))),f=p.getOptimisticResult(A);if(i.useSyncExternalStore(i.useCallback((t=>{const e=c?()=>{}:p.subscribe(n.j.batchCalls(t));return p.updateResult(),e}),[p,c]),(()=>p.getCurrentResult()),(()=>p.getCurrentResult())),i.useEffect((()=>{p.setOptions(A,{listeners:!1})}),[A,p]),(0,l.EU)(A,f))throw(0,l.iL)(A,p,d);if((0,o.$1)({result:f,errorResetBoundary:d,throwOnError:A.throwOnError,query:u.getQueryCache().get(A.queryHash)}))throw f.error;return A.notifyOnChangeProps?f:p.trackResult(f)}},20454:(t,e,s)=>{function i(t){if(null==t)throw new TypeError("Cannot destructure "+t)}s.d(e,{A:()=>i})},30618:(t,e,s)=>{s.d(e,{w:()=>r});var i=s(9950),n=i.createContext(!1),r=()=>i.useContext(n);n.Provider},45904:(t,e,s)=>{s.d(e,{h:()=>a});var i=s(9950);function n(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var r=i.createContext(n()),a=()=>i.useContext(r)},69347:(t,e,s)=>{s.d(e,{$:()=>q});var i,n,r,a,h,o,l,u,c,d,A,p,f,v,w,b,y,g,R,O,k,C,m,S=s(89379),W=s(20454),U=s(39790),E=s(55149),M=s(83568),F=s(64137),L=s(53167),Q=s(61664),T=s(15941),D=s(90698),P=s(95732),j=s(15368),q=(i=new WeakMap,n=new WeakMap,r=new WeakMap,a=new WeakMap,h=new WeakMap,o=new WeakMap,l=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakMap,A=new WeakMap,p=new WeakMap,f=new WeakMap,v=new WeakMap,w=new WeakSet,b=new WeakSet,y=new WeakSet,g=new WeakSet,R=new WeakSet,O=new WeakSet,k=new WeakSet,C=new WeakSet,m=new WeakSet,class extends P.Q{constructor(t,e){super(),(0,U.A)(this,m),(0,U.A)(this,C),(0,U.A)(this,k),(0,U.A)(this,O),(0,U.A)(this,R),(0,U.A)(this,g),(0,U.A)(this,y),(0,U.A)(this,b),(0,U.A)(this,w),(0,E.A)(this,i,{writable:!0,value:void 0}),(0,E.A)(this,n,{writable:!0,value:void 0}),(0,E.A)(this,r,{writable:!0,value:void 0}),(0,E.A)(this,a,{writable:!0,value:void 0}),(0,E.A)(this,h,{writable:!0,value:void 0}),(0,E.A)(this,o,{writable:!0,value:void 0}),(0,E.A)(this,l,{writable:!0,value:void 0}),(0,E.A)(this,u,{writable:!0,value:void 0}),(0,E.A)(this,c,{writable:!0,value:void 0}),(0,E.A)(this,d,{writable:!0,value:void 0}),(0,E.A)(this,A,{writable:!0,value:void 0}),(0,E.A)(this,p,{writable:!0,value:void 0}),(0,E.A)(this,f,{writable:!0,value:void 0}),(0,E.A)(this,v,{writable:!0,value:new Set}),this.options=e,(0,L.A)(this,i,t),(0,L.A)(this,l,null),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&((0,F.A)(this,n).addObserver(this),Z((0,F.A)(this,n),this.options)?(0,M.A)(this,w,I).call(this):this.updateResult(),(0,M.A)(this,R,B).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return H((0,F.A)(this,n),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return H((0,F.A)(this,n),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,(0,M.A)(this,O,K).call(this),(0,M.A)(this,k,z).call(this),(0,F.A)(this,n).removeObserver(this)}setOptions(t,e){const s=this.options,r=(0,F.A)(this,n);if(this.options=(0,F.A)(this,i).defaultQueryOptions(t),(0,Q.f8)(s,this.options)||(0,F.A)(this,i).getQueryCache().notify({type:"observerOptionsUpdated",query:(0,F.A)(this,n),observer:this}),"undefined"!==typeof this.options.enabled&&"boolean"!==typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),(0,M.A)(this,C,G).call(this);const a=this.hasListeners();a&&N((0,F.A)(this,n),r,this.options,s)&&(0,M.A)(this,w,I).call(this),this.updateResult(e),!a||(0,F.A)(this,n)===r&&this.options.enabled===s.enabled&&this.options.staleTime===s.staleTime||(0,M.A)(this,b,_).call(this);const h=(0,M.A)(this,y,x).call(this);!a||(0,F.A)(this,n)===r&&this.options.enabled===s.enabled&&h===(0,F.A)(this,f)||(0,M.A)(this,g,$).call(this,h)}getOptimisticResult(t){const e=(0,F.A)(this,i).getQueryCache().build((0,F.A)(this,i),t),s=this.createResult(e,t);return function(t,e){if(!(0,Q.f8)(t.getCurrentResult(),e))return!0;return!1}(this,s)&&((0,L.A)(this,a,s),(0,L.A)(this,o,this.options),(0,L.A)(this,h,(0,F.A)(this,n).state)),s}getCurrentResult(){return(0,F.A)(this,a)}trackResult(t){const e={};return Object.keys(t).forEach((s=>{Object.defineProperty(e,s,{configurable:!1,enumerable:!0,get:()=>((0,F.A)(this,v).add(s),t[s])})})),e}getCurrentQuery(){return(0,F.A)(this,n)}refetch(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({},((0,W.A)(t),t));return this.fetch((0,S.A)({},e))}fetchOptimistic(t){const e=(0,F.A)(this,i).defaultQueryOptions(t),s=(0,F.A)(this,i).getQueryCache().build((0,F.A)(this,i),e);return s.isFetchingOptimistic=!0,s.fetch().then((()=>this.createResult(s,e)))}fetch(t){var e;return(0,M.A)(this,w,I).call(this,(0,S.A)((0,S.A)({},t),{},{cancelRefetch:null===(e=t.cancelRefetch)||void 0===e||e})).then((()=>(this.updateResult(),(0,F.A)(this,a))))}createResult(t,e){const s=(0,F.A)(this,n),i=this.options,A=(0,F.A)(this,a),p=(0,F.A)(this,h),f=(0,F.A)(this,o),v=t!==s?t.state:(0,F.A)(this,r),{state:w}=t;let b,{error:y,errorUpdatedAt:g,fetchStatus:R,status:O}=w,k=!1;if(e._optimisticResults){const n=this.hasListeners(),r=!n&&Z(t,e),a=n&&N(t,s,e,i);(r||a)&&(R=(0,j.v_)(t.options.networkMode)?"fetching":"paused",w.dataUpdatedAt||(O="pending")),"isRestoring"===e._optimisticResults&&(R="idle")}if(e.select&&"undefined"!==typeof w.data)if(A&&w.data===(null===p||void 0===p?void 0:p.data)&&e.select===(0,F.A)(this,u))b=(0,F.A)(this,c);else try{(0,L.A)(this,u,e.select),b=e.select(w.data),b=(0,Q.pl)(null===A||void 0===A?void 0:A.data,b,e),(0,L.A)(this,c,b),(0,L.A)(this,l,null)}catch(E){(0,L.A)(this,l,E)}else b=w.data;if("undefined"!==typeof e.placeholderData&&"undefined"===typeof b&&"pending"===O){let t;var C;if(null!==A&&void 0!==A&&A.isPlaceholderData&&e.placeholderData===(null===f||void 0===f?void 0:f.placeholderData))t=A.data;else if(t="function"===typeof e.placeholderData?e.placeholderData(null===(C=(0,F.A)(this,d))||void 0===C?void 0:C.state.data,(0,F.A)(this,d)):e.placeholderData,e.select&&"undefined"!==typeof t)try{t=e.select(t),(0,L.A)(this,l,null)}catch(E){(0,L.A)(this,l,E)}"undefined"!==typeof t&&(O="success",b=(0,Q.pl)(null===A||void 0===A?void 0:A.data,t,e),k=!0)}(0,F.A)(this,l)&&(y=(0,F.A)(this,l),b=(0,F.A)(this,c),g=Date.now(),O="error");const m="fetching"===R,S="pending"===O,W="error"===O,U=S&&m;return{status:O,fetchStatus:R,isPending:S,isSuccess:"success"===O,isError:W,isInitialLoading:U,isLoading:U,data:b,dataUpdatedAt:w.dataUpdatedAt,error:y,errorUpdatedAt:g,failureCount:w.fetchFailureCount,failureReason:w.fetchFailureReason,errorUpdateCount:w.errorUpdateCount,isFetched:w.dataUpdateCount>0||w.errorUpdateCount>0,isFetchedAfterMount:w.dataUpdateCount>v.dataUpdateCount||w.errorUpdateCount>v.errorUpdateCount,isFetching:m,isRefetching:m&&!S,isLoadingError:W&&0===w.dataUpdatedAt,isPaused:"paused"===R,isPlaceholderData:k,isRefetchError:W&&0!==w.dataUpdatedAt,isStale:V(t,e),refetch:this.refetch}}updateResult(t){const e=(0,F.A)(this,a),s=this.createResult((0,F.A)(this,n),this.options);if((0,L.A)(this,h,(0,F.A)(this,n).state),(0,L.A)(this,o,this.options),void 0!==(0,F.A)(this,h).data&&(0,L.A)(this,d,(0,F.A)(this,n)),(0,Q.f8)(s,e))return;(0,L.A)(this,a,s);const i={};!1!==(null===t||void 0===t?void 0:t.listeners)&&(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,s="function"===typeof t?t():t;if("all"===s||!s&&!(0,F.A)(this,v).size)return!0;const i=new Set(null!==s&&void 0!==s?s:(0,F.A)(this,v));return this.options.throwOnError&&i.add("error"),Object.keys((0,F.A)(this,a)).some((t=>{const s=t;return(0,F.A)(this,a)[s]!==e[s]&&i.has(s)}))})()&&(i.listeners=!0),(0,M.A)(this,m,J).call(this,(0,S.A)((0,S.A)({},i),t))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&(0,M.A)(this,R,B).call(this)}});function I(t){(0,M.A)(this,C,G).call(this);let e=(0,F.A)(this,n).fetch(this.options,t);return null!==t&&void 0!==t&&t.throwOnError||(e=e.catch(Q.lQ)),e}function _(){if((0,M.A)(this,O,K).call(this),Q.S$||(0,F.A)(this,a).isStale||!(0,Q.gn)(this.options.staleTime))return;const t=(0,Q.j3)((0,F.A)(this,a).dataUpdatedAt,this.options.staleTime)+1;(0,L.A)(this,A,setTimeout((()=>{(0,F.A)(this,a).isStale||this.updateResult()}),t))}function x(){var t;return null!==(t="function"===typeof this.options.refetchInterval?this.options.refetchInterval((0,F.A)(this,n)):this.options.refetchInterval)&&void 0!==t&&t}function $(t){(0,M.A)(this,k,z).call(this),(0,L.A)(this,f,t),!Q.S$&&!1!==this.options.enabled&&(0,Q.gn)((0,F.A)(this,f))&&0!==(0,F.A)(this,f)&&(0,L.A)(this,p,setInterval((()=>{(this.options.refetchIntervalInBackground||D.m.isFocused())&&(0,M.A)(this,w,I).call(this)}),(0,F.A)(this,f)))}function B(){(0,M.A)(this,b,_).call(this),(0,M.A)(this,g,$).call(this,(0,M.A)(this,y,x).call(this))}function K(){(0,F.A)(this,A)&&(clearTimeout((0,F.A)(this,A)),(0,L.A)(this,A,void 0))}function z(){(0,F.A)(this,p)&&(clearInterval((0,F.A)(this,p)),(0,L.A)(this,p,void 0))}function G(){const t=(0,F.A)(this,i).getQueryCache().build((0,F.A)(this,i),this.options);if(t===(0,F.A)(this,n))return;const e=(0,F.A)(this,n);(0,L.A)(this,n,t),(0,L.A)(this,r,t.state),this.hasListeners()&&(null===e||void 0===e||e.removeObserver(this),t.addObserver(this))}function J(t){T.j.batch((()=>{t.listeners&&this.listeners.forEach((t=>{t((0,F.A)(this,a))})),(0,F.A)(this,i).getQueryCache().notify({query:(0,F.A)(this,n),type:"observerResultsUpdated"})}))}function Z(t,e){return function(t,e){return!1!==e.enabled&&!t.state.dataUpdatedAt&&!("error"===t.state.status&&!1===e.retryOnMount)}(t,e)||t.state.dataUpdatedAt>0&&H(t,e,e.refetchOnMount)}function H(t,e,s){if(!1!==e.enabled){const i="function"===typeof s?s(t):s;return"always"===i||!1!==i&&V(t,e)}return!1}function N(t,e,s,i){return!1!==s.enabled&&(t!==e||!1===i.enabled)&&(!s.suspense||"error"!==t.state.status)&&V(t,s)}function V(t,e){return t.isStaleByTime(e.staleTime)}},73895:(t,e,s)=>{s.d(e,{EU:()=>r,iL:()=>a,nE:()=>n,tu:()=>i});var i=t=>{t.suspense&&"number"!==typeof t.staleTime&&(t.staleTime=1e3)},n=(t,e)=>t.isLoading&&t.isFetching&&!e,r=(t,e)=>(null===t||void 0===t?void 0:t.suspense)&&e.isPending,a=(t,e,s)=>e.fetchOptimistic(t).catch((()=>{s.clearReset()}))},80958:(t,e,s)=>{s.d(e,{$1:()=>h,LJ:()=>r,wZ:()=>a});var i=s(9950),n=s(98986),r=(t,e)=>{(t.suspense||t.throwOnError)&&(e.isReset()||(t.retryOnMount=!1))},a=t=>{i.useEffect((()=>{t.clearReset()}),[t])},h=t=>{let{result:e,errorResetBoundary:s,throwOnError:i,query:r}=t;return e.isError&&!s.isReset()&&!e.isFetching&&r&&(0,n.G)(i,[e.error,r])}},98986:(t,e,s)=>{function i(t,e){return"function"===typeof t?t(...e):!!t}s.d(e,{G:()=>i})}}]); \ No newline at end of file diff --git a/build/static/js/2075.9858b66a.chunk.js b/build/static/js/2075.9858b66a.chunk.js deleted file mode 100644 index 49c5ea6..0000000 --- a/build/static/js/2075.9858b66a.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[2075],{7762:(c,t,a)=>{var r=a(24994);t.A=void 0;var n=r(a(79526)),i=a(44414);t.A=(0,n.default)((0,i.jsx)("path",{d:"M19 6.41 17.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"}),"Clear")},54826:(c,t,a)=>{a.d(t,{$Fg:()=>z,CMH:()=>s,Cer:()=>o,H5e:()=>e,MxO:()=>h,QVr:()=>n,TXh:()=>l,Y9o:()=>p,YXz:()=>M,YYR:()=>v,Z0P:()=>i,dRU:()=>g,dv1:()=>u,wTh:()=>d,wwX:()=>f,x$1:()=>m,yjt:()=>L});var r=a(99230);function n(c){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"}}]})(c)}function i(c){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"}}]})(c)}function l(c){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M509.5 184.6L458.9 32.8C452.4 13.2 434.1 0 413.4 0H272v192h238.7c-.4-2.5-.4-5-1.2-7.4zM240 0H98.6c-20.7 0-39 13.2-45.5 32.8L2.5 184.6c-.8 2.4-.8 4.9-1.2 7.4H240V0zM0 224v240c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V224H0z"}}]})(c)}function e(c){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M560 288h-80v96l-32-21.3-32 21.3v-96h-80c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V304c0-8.8-7.2-16-16-16zm-384-64h224c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16h-80v96l-32-21.3L256 96V0h-80c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16zm64 64h-80v96l-32-21.3L96 384v-96H16c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V304c0-8.8-7.2-16-16-16z"}}]})(c)}function v(c){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"}}]})(c)}function s(c){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"}}]})(c)}function h(c){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM48 132.22c20.12 5.04 41.12 7.57 62.72 8.93C104.84 170.54 79 192.69 48 192.69v-60.47zm0 285v-47.78c34.37 0 62.18 27.27 63.71 61.4-22.53-1.81-43.59-6.31-63.71-13.62zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 27.78c-17.52-4.39-35.71-6.85-54.32-8.44 5.87-26.08 27.5-45.88 54.32-49.28v57.72zm0-236.11c-30.89-3.91-54.86-29.7-55.81-61.55 19.54 2.17 38.09 6.23 55.81 12.66v48.89z"}}]})(c)}function o(c){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z"}}]})(c)}function g(c){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M497.39 361.8l-112-48a24 24 0 0 0-28 6.9l-49.6 60.6A370.66 370.66 0 0 1 130.6 204.11l60.6-49.6a23.94 23.94 0 0 0 6.9-28l-48-112A24.16 24.16 0 0 0 122.6.61l-104 24A24 24 0 0 0 0 48c0 256.5 207.9 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.29 24.29 0 0 0-14.01-27.6z"}}]})(c)}function d(c){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M358.4 3.2L320 48 265.6 3.2a15.9 15.9 0 0 0-19.2 0L192 48 137.6 3.2a15.9 15.9 0 0 0-19.2 0L64 48 25.6 3.2C15-4.7 0 2.8 0 16v480c0 13.2 15 20.7 25.6 12.8L64 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L192 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L320 464l38.4 44.8c10.5 7.9 25.6.4 25.6-12.8V16c0-13.2-15-20.7-25.6-12.8zM320 360c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16z"}}]})(c)}function z(c){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M416 320h-96c-17.6 0-32-14.4-32-32s14.4-32 32-32h96s96-107 96-160-43-96-96-96-96 43-96 96c0 25.5 22.2 63.4 45.3 96H320c-52.9 0-96 43.1-96 96s43.1 96 96 96h96c17.6 0 32 14.4 32 32s-14.4 32-32 32H185.5c-16 24.8-33.8 47.7-47.3 64H416c52.9 0 96-43.1 96-96s-43.1-96-96-96zm0-256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM96 256c-53 0-96 43-96 96s96 160 96 160 96-107 96-160-43-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"}}]})(c)}function u(c){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"}}]})(c)}function m(c){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"}}]})(c)}function M(c){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"}}]})(c)}function p(c){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 400H48V80h480v352zM208 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm-89.6 128h179.2c12.4 0 22.4-8.6 22.4-19.2v-19.2c0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6v19.2c0 10.6 10 19.2 22.4 19.2zM360 320h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8z"}}]})(c)}function L(c){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z"}}]})(c)}function f(c){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M402.3 344.9l32-32c5-5 13.7-1.5 13.7 5.7V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h273.5c7.1 0 10.7 8.6 5.7 13.7l-32 32c-1.5 1.5-3.5 2.3-5.7 2.3H48v352h352V350.5c0-2.1.8-4.1 2.3-5.6zm156.6-201.8L296.3 405.7l-90.4 10c-26.2 2.9-48.5-19.2-45.6-45.6l10-90.4L432.9 17.1c22.9-22.9 59.9-22.9 82.7 0l43.2 43.2c22.9 22.9 22.9 60 .1 82.8zM460.1 174L402 115.9 216.2 301.8l-7.3 65.3 65.3-7.3L460.1 174zm64.8-79.7l-43.2-43.2c-4.1-4.1-10.8-4.1-14.8 0L436 82l58.1 58.1 30.9-30.9c4-4.2 4-10.8-.1-14.9z"}}]})(c)}},79739:(c,t,a)=>{a.d(t,{A:()=>m});var r=a(98587),n=a(58168),i=a(9950),l=a(72004),e=a(3484),v=a(59254),s=a(18463),h=a(45558),o=a(1614);function g(c){return(0,o.Ay)("MuiDialogActions",c)}(0,h.A)("MuiDialogActions",["root","spacing"]);var d=a(44414);const z=["className","disableSpacing"],u=(0,v.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(c,t)=>{const{ownerState:a}=c;return[t.root,!a.disableSpacing&&t.spacing]}})((c=>{let{ownerState:t}=c;return(0,n.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),m=i.forwardRef((function(c,t){const a=(0,s.b)({props:c,name:"MuiDialogActions"}),{className:i,disableSpacing:v=!1}=a,h=(0,r.A)(a,z),o=(0,n.A)({},a,{disableSpacing:v}),m=(c=>{const{classes:t,disableSpacing:a}=c,r={root:["root",!a&&"spacing"]};return(0,e.A)(r,g,t)})(o);return(0,d.jsx)(u,(0,n.A)({className:(0,l.A)(m.root,i),ownerState:o,ref:t},h))}))}}]); \ No newline at end of file diff --git a/build/static/js/2141.a1763a91.chunk.js b/build/static/js/2141.a1763a91.chunk.js new file mode 100644 index 0000000..2f57112 --- /dev/null +++ b/build/static/js/2141.a1763a91.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[2141],{20454:(t,e,n)=>{function i(t){if(null==t)throw new TypeError("Cannot destructure "+t)}n.d(e,{A:()=>i})},68106:(t,e,n)=>{n.d(e,{Y:()=>o});var i=n(85672);const s=(t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t};function o(){for(var t=arguments.length,e=new Array(t),n=0;n{o.current="number"!==typeof t?s(0,e.length,o.current+1):t,a(e[o.current])}),[e.length,...e])]}},82522:(t,e,n)=>{n.d(e,{P:()=>hr});var i=n(22555),s=n(85672);const o=(0,s.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),r=(0,s.createContext)({}),a=(0,s.createContext)(null),l="undefined"!==typeof document,c=l?s.useLayoutEffect:s.useEffect,u=(0,s.createContext)({strict:!1}),h=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),d="data-"+h("framerAppearId");function p(t){return t&&"object"===typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function m(t){return"string"===typeof t||Array.isArray(t)}function f(t){return null!==t&&"object"===typeof t&&"function"===typeof t.start}const g=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],v=["initial",...g];function y(t){return f(t.animate)||v.some((e=>m(t[e])))}function x(t){return Boolean(y(t)||t.variants)}function A(t){const{initial:e,animate:n}=function(t,e){if(y(t)){const{initial:e,animate:n}=t;return{initial:!1===e||m(e)?e:void 0,animate:m(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,s.useContext)(r));return(0,s.useMemo)((()=>({initial:e,animate:n})),[P(e),P(n)])}function P(t){return Array.isArray(t)?t.join(" "):t}const b={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},T={};for(const pr in b)T[pr]={isEnabled:t=>b[pr].some((e=>!!t[e]))};const w=(0,s.createContext)({}),S=(0,s.createContext)({}),E=Symbol.for("motionComponentSymbol");function V(t){let{preloadedFeatures:e,createVisualElement:n,useRender:h,useVisualState:m,Component:f}=t;function g(t,g){let v;const y=(0,i.A)((0,i.A)((0,i.A)({},(0,s.useContext)(o)),t),{},{layoutId:C(t)}),{isStatic:x}=y,P=A(t),b=m(t,x);if(!x&&l){P.visualElement=function(t,e,n,i){const{visualElement:l}=(0,s.useContext)(r),h=(0,s.useContext)(u),p=(0,s.useContext)(a),m=(0,s.useContext)(o).reducedMotion,f=(0,s.useRef)();i=i||h.renderer,!f.current&&i&&(f.current=i(t,{visualState:e,parent:l,props:n,presenceContext:p,blockInitialAnimation:!!p&&!1===p.initial,reducedMotionConfig:m}));const g=f.current;(0,s.useInsertionEffect)((()=>{g&&g.update(n,p)}));const v=(0,s.useRef)(Boolean(n[d]&&!window.HandoffComplete));return c((()=>{g&&(g.render(),v.current&&g.animationState&&g.animationState.animateChanges())})),(0,s.useEffect)((()=>{g&&(g.updateFeatures(),!v.current&&g.animationState&&g.animationState.animateChanges(),v.current&&(v.current=!1,window.HandoffComplete=!0))})),g}(f,b,y,n);const t=(0,s.useContext)(S),i=(0,s.useContext)(u).strict;P.visualElement&&(v=P.visualElement.loadFeatures(y,i,e,t))}return s.createElement(r.Provider,{value:P},v&&P.visualElement?s.createElement(v,(0,i.A)({visualElement:P.visualElement},y)):null,h(f,t,function(t,e,n){return(0,s.useCallback)((i=>{i&&t.mount&&t.mount(i),e&&(i?e.mount(i):e.unmount()),n&&("function"===typeof n?n(i):p(n)&&(n.current=i))}),[e])}(b,P.visualElement,g),b,x,P.visualElement))}e&&function(t){for(const e in t)T[e]=(0,i.A)((0,i.A)({},T[e]),t[e])}(e);const v=(0,s.forwardRef)(g);return v[E]=f,v}function C(t){let{layoutId:e}=t;const n=(0,s.useContext)(w).id;return n&&void 0!==e?n+"-"+e:e}function M(t){function e(e){return V(t(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}if("undefined"===typeof Proxy)return e;const n=new Map;return new Proxy(e,{get:(t,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const D=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function k(t){return"string"===typeof t&&!t.includes("-")&&!!(D.indexOf(t)>-1||/[A-Z]/.test(t))}const R={};const L=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],j=new Set(L);function B(t,e){let{layout:n,layoutId:i}=e;return j.has(t)||t.startsWith("origin")||(n||void 0!==i)&&(!!R[t]||"opacity"===t)}const F=t=>Boolean(t&&t.getVelocity),O={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},I=L.length;const U=t=>e=>"string"===typeof e&&e.startsWith(t),N=U("--"),W=U("var(--"),H=(t,e)=>e&&"number"===typeof t?e.transform(t):t,z=(t,e,n)=>Math.min(Math.max(n,t),e),Y={test:t=>"number"===typeof t,parse:parseFloat,transform:t=>t},X=(0,i.A)((0,i.A)({},Y),{},{transform:t=>z(0,1,t)}),G=(0,i.A)((0,i.A)({},Y),{},{default:1}),q=t=>Math.round(1e5*t)/1e5,Z=/(-)?([\d]*\.?[\d])+/g,K=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,$=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function _(t){return"string"===typeof t}const J=t=>({test:e=>_(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>"".concat(e).concat(t)}),Q=J("deg"),tt=J("%"),et=J("px"),nt=J("vh"),it=J("vw"),st=(0,i.A)((0,i.A)({},tt),{},{parse:t=>tt.parse(t)/100,transform:t=>tt.transform(100*t)}),ot=(0,i.A)((0,i.A)({},Y),{},{transform:Math.round}),rt={borderWidth:et,borderTopWidth:et,borderRightWidth:et,borderBottomWidth:et,borderLeftWidth:et,borderRadius:et,radius:et,borderTopLeftRadius:et,borderTopRightRadius:et,borderBottomRightRadius:et,borderBottomLeftRadius:et,width:et,maxWidth:et,height:et,maxHeight:et,size:et,top:et,right:et,bottom:et,left:et,padding:et,paddingTop:et,paddingRight:et,paddingBottom:et,paddingLeft:et,margin:et,marginTop:et,marginRight:et,marginBottom:et,marginLeft:et,rotate:Q,rotateX:Q,rotateY:Q,rotateZ:Q,scale:G,scaleX:G,scaleY:G,scaleZ:G,skew:Q,skewX:Q,skewY:Q,distance:et,translateX:et,translateY:et,translateZ:et,x:et,y:et,z:et,perspective:et,transformPerspective:et,opacity:X,originX:st,originY:st,originZ:et,zIndex:ot,fillOpacity:X,strokeOpacity:X,numOctaves:ot};function at(t,e,n,i){const{style:s,vars:o,transform:r,transformOrigin:a}=t;let l=!1,c=!1,u=!0;for(const h in e){const t=e[h];if(N(h)){o[h]=t;continue}const n=rt[h],i=H(t,n);if(j.has(h)){if(l=!0,r[h]=i,!u)continue;t!==(n.default||0)&&(u=!1)}else h.startsWith("origin")?(c=!0,a[h]=i):s[h]=i}if(e.transform||(l||i?s.transform=function(t,e,n,i){let{enableHardwareAcceleration:s=!0,allowTransformNone:o=!0}=e,r="";for(let a=0;a({style:{},transform:{},transformOrigin:{},vars:{}});function ct(t,e,n){for(const i in e)F(e[i])||B(i,n)||(t[i]=e[i])}function ut(t,e,n){const i={};return ct(i,t.style||{},t),Object.assign(i,function(t,e,n){let{transformTemplate:i}=t;return(0,s.useMemo)((()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return at(t,e,{enableHardwareAcceleration:!n},i),Object.assign({},t.vars,t.style)}),[e])}(t,e,n)),t.transformValues?t.transformValues(i):i}function ht(t,e,n){const i={},s=ut(t,e,n);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=s,i}const dt=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function pt(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||dt.has(t)}let mt=t=>!pt(t);try{(ft=require("@emotion/is-prop-valid").default)&&(mt=t=>t.startsWith("on")?!pt(t):ft(t))}catch(dr){}var ft;var gt=n(53986);function vt(t,e,n){return"string"===typeof t?t:et.transform(e+n*t)}const yt={offset:"stroke-dashoffset",array:"stroke-dasharray"},xt={offset:"strokeDashoffset",array:"strokeDasharray"};const At=["attrX","attrY","attrScale","originX","originY","pathLength","pathSpacing","pathOffset"];function Pt(t,e,n,i,s){let{attrX:o,attrY:r,attrScale:a,originX:l,originY:c,pathLength:u,pathSpacing:h=1,pathOffset:d=0}=e;if(at(t,(0,gt.A)(e,At),n,s),i)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:p,style:m,dimensions:f}=t;p.transform&&(f&&(m.transform=p.transform),delete p.transform),f&&(void 0!==l||void 0!==c||m.transform)&&(m.transformOrigin=function(t,e,n){const i=vt(e,t.x,t.width),s=vt(n,t.y,t.height);return"".concat(i," ").concat(s)}(f,void 0!==l?l:.5,void 0!==c?c:.5)),void 0!==o&&(p.x=o),void 0!==r&&(p.y=r),void 0!==a&&(p.scale=a),void 0!==u&&function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];t.pathLength=1;const o=s?yt:xt;t[o.offset]=et.transform(-i);const r=et.transform(e),a=et.transform(n);t[o.array]="".concat(r," ").concat(a)}(p,u,h,d,!1)}const bt=()=>(0,i.A)((0,i.A)({},{style:{},transform:{},transformOrigin:{},vars:{}}),{},{attrs:{}}),Tt=t=>"string"===typeof t&&"svg"===t.toLowerCase();function wt(t,e,n,o){const r=(0,s.useMemo)((()=>{const n=bt();return Pt(n,e,{enableHardwareAcceleration:!1},Tt(o),t.transformTemplate),(0,i.A)((0,i.A)({},n.attrs),{},{style:(0,i.A)({},n.style)})}),[e]);if(t.style){const e={};ct(e,t.style,t),r.style=(0,i.A)((0,i.A)({},e),r.style)}return r}function St(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(e,n,o,r,a)=>{let{latestValues:l}=r;const c=(k(e)?wt:ht)(n,l,a,e),u=function(t,e,n){const i={};for(const s in t)"values"===s&&"object"===typeof t.values||(mt(s)||!0===n&&pt(s)||!e&&!pt(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}(n,"string"===typeof e,t),h=(0,i.A)((0,i.A)((0,i.A)({},u),c),{},{ref:o}),{children:d}=n,p=(0,s.useMemo)((()=>F(d)?d.get():d),[d]);return(0,s.createElement)(e,(0,i.A)((0,i.A)({},h),{},{children:p}))}}function Et(t,e,n,i){let{style:s,vars:o}=e;Object.assign(t.style,s,i&&i.getProjectionStyles(n));for(const r in o)t.style.setProperty(r,o[r])}const Vt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ct(t,e,n,i){Et(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(Vt.has(s)?s:h(s),e.attrs[s])}function Mt(t,e){const{style:n}=t,i={};for(const s in n)(F(n[s])||e.style&&F(e.style[s])||B(s,t))&&(i[s]=n[s]);return i}function Dt(t,e){const n=Mt(t,e);for(const i in t)if(F(t[i])||F(e[i])){n[-1!==L.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]}return n}function kt(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return"function"===typeof e&&(e=e(void 0!==n?n:t.custom,i,s)),"string"===typeof e&&(e=t.variants&&t.variants[e]),"function"===typeof e&&(e=e(void 0!==n?n:t.custom,i,s)),e}const Rt=t=>Array.isArray(t);function Lt(t){const e=F(t)?t.get():t;return n=e,Boolean(n&&"object"===typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}const jt=["transitionEnd","transition"];const Bt=t=>(e,n)=>{const i=(0,s.useContext)(r),o=(0,s.useContext)(a),l=()=>function(t,e,n,i){let{scrapeMotionValuesFromProps:s,createRenderState:o,onMount:r}=t;const a={latestValues:Ft(e,n,i,s),renderState:o()};return r&&(a.mount=t=>r(e,t,a)),a}(t,e,i,o);return n?l():function(t){const e=(0,s.useRef)(null);return null===e.current&&(e.current=t()),e.current}(l)};function Ft(t,e,n,i){const s={},o=i(t,{});for(const d in o)s[d]=Lt(o[d]);let{initial:r,animate:a}=t;const l=y(t),c=x(t);e&&c&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let u=!!n&&!1===n.initial;u=u||!1===r;const h=u?a:r;if(h&&"boolean"!==typeof h&&!f(h)){(Array.isArray(h)?h:[h]).forEach((e=>{const n=kt(t,e);if(!n)return;const{transitionEnd:i,transition:o}=n,r=(0,gt.A)(n,jt);for(const t in r){let e=r[t];if(Array.isArray(e)){e=e[u?e.length-1:0]}null!==e&&(s[t]=e)}for(const t in i)s[t]=i[t]}))}return s}const Ot=t=>t;class It{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}const Ut=["prepare","read","update","preRender","render","postRender"];const{schedule:Nt,cancel:Wt,state:Ht,steps:zt}=function(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=Ut.reduce(((t,e)=>(t[e]=function(t){let e=new It,n=new It,i=0,s=!1,o=!1;const r=new WeakSet,a={schedule:function(t){const o=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&s,a=o?e:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&r.add(t),a.add(t)&&o&&s&&(i=e.order.length),t},cancel:t=>{n.remove(t),r.delete(t)},process:l=>{if(s)o=!0;else{if(s=!0,[e,n]=[n,e],n.clear(),i=e.order.length,i)for(let n=0;nn=!0)),t)),{}),r=t=>o[t].process(s),a=()=>{const o=performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(o-s.timestamp,40),1),s.timestamp=o,s.isProcessing=!0,Ut.forEach(r),s.isProcessing=!1,n&&e&&(i=!1,t(a))},l=Ut.reduce(((e,r)=>{const l=o[r];return e[r]=function(e){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||(n=!0,i=!0,s.isProcessing||t(a)),l.schedule(e,o,r)},e}),{});return{schedule:l,cancel:t=>Ut.forEach((e=>o[e].cancel(t))),state:s,steps:o}}("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:Ot,!0),Yt={useVisualState:Bt({scrapeMotionValuesFromProps:Dt,createRenderState:bt,onMount:(t,e,n)=>{let{renderState:i,latestValues:s}=n;Nt.read((()=>{try{i.dimensions="function"===typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}})),Nt.render((()=>{Pt(i,s,{enableHardwareAcceleration:!1},Tt(e.tagName),t.transformTemplate),Ct(e,i)}))}})},Xt={useVisualState:Bt({scrapeMotionValuesFromProps:Mt,createRenderState:lt})};function Gt(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}const qt=t=>"mouse"===t.pointerType?"number"!==typeof t.button||t.button<=0:!1!==t.isPrimary;function Zt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page";return{point:{x:t[e+"X"],y:t[e+"Y"]}}}function Kt(t,e,n,i){return Gt(t,e,(t=>e=>qt(e)&&t(e,Zt(e)))(n),i)}const $t=(t,e)=>n=>e(t(n)),_t=function(){for(var t=arguments.length,e=new Array(t),n=0;n{const n=()=>{e=null};return null===e&&(e=t,n)}}const Qt=Jt("dragHorizontal"),te=Jt("dragVertical");function ee(t){let e=!1;if("y"===t)e=te();else if("x"===t)e=Qt();else{const t=Qt(),n=te();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function ne(){const t=ee(!0);return!t||(t(),!1)}class ie{constructor(t){this.isMounted=!1,this.node=t}update(){}}function se(t,e){const n="pointer"+(e?"enter":"leave"),i="onHover"+(e?"Start":"End");return Kt(t.current,n,((n,s)=>{if("touch"===n.pointerType||ne())return;const o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e),o[i]&&Nt.update((()=>o[i](n,s)))}),{passive:!t.getProps()[i]})}const oe=(t,e)=>!!e&&(t===e||oe(t,e.parentElement));function re(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Zt(n))}const ae=["root"],le=new WeakMap,ce=new WeakMap,ue=t=>{const e=le.get(t.target);e&&e(t)},he=t=>{t.forEach(ue)};function de(t,e,n){const s=function(t){let{root:e}=t,n=(0,gt.A)(t,ae);const s=e||document;ce.has(s)||ce.set(s,{});const o=ce.get(s),r=JSON.stringify(n);return o[r]||(o[r]=new IntersectionObserver(he,(0,i.A)({root:e},n))),o[r]}(e);return le.set(t,n),s.observe(t),()=>{le.delete(t),s.unobserve(t)}}const pe={some:0,all:1};const me={inView:{Feature:class extends ie{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"===typeof i?i:pe[i]};return de(this.node.current,o,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"===typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node,n=["amount","margin","root"].some(function(t){let{viewport:e={}}=t,{viewport:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>e[t]!==n[t]}(t,e));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends ie{constructor(){super(...arguments),this.removeStartListeners=Ot,this.removeEndListeners=Ot,this.removeAccessibleListeners=Ot,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),i=Kt(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:i,globalTapTarget:s}=this.node.getProps();Nt.update((()=>{s||oe(this.node.current,t.target)?n&&n(t,e):i&&i(t,e)}))}),{passive:!(n.onTap||n.onPointerUp)}),s=Kt(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=_t(i,s),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=Gt(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Gt(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&re("up",((t,e)=>{const{onTap:n}=this.node.getProps();n&&Nt.update((()=>n(t,e)))}))})),re("down",((t,e)=>{this.startPress(t,e)}))})),e=Gt(this.node.current,"blur",(()=>{this.isPressing&&re("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=_t(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Nt.update((()=>n(t,e)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ne()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Nt.update((()=>n(t,e)))}mount(){const t=this.node.getProps(),e=Kt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Gt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=_t(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends ie{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=_t(Gt(this.node.current,"focus",(()=>this.onFocus())),Gt(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends ie{mount(){this.unmount=_t(se(this.node,!0),se(this.node,!1))}unmount(){}}}};function fe(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;ie[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}let ve=Ot,ye=Ot;const xe=t=>1e3*t,Ae=t=>t/1e3,Pe=!1,be=t=>Array.isArray(t)&&"number"===typeof t[0];function Te(t){return Boolean(!t||"string"===typeof t&&Se[t]||be(t)||Array.isArray(t)&&t.every(Te))}const we=t=>{let[e,n,i,s]=t;return"cubic-bezier(".concat(e,", ").concat(n,", ").concat(i,", ").concat(s,")")},Se={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:we([0,.65,.55,1]),circOut:we([.55,0,1,.45]),backIn:we([.31,.01,.66,-.59]),backOut:we([.33,1.53,.69,.99])};function Ee(t){if(t)return be(t)?we(t):Array.isArray(t)?t.map(Ee):Se[t]}const Ve=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function Ce(t,e,n,i){if(t===e&&n===i)return Ot;const s=e=>function(t,e,n,i,s){let o,r,a=0;do{r=e+(n-e)/2,o=Ve(r,i,s)-t,o>0?n=r:e=r}while(Math.abs(o)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:Ve(s(t),e,i)}const Me=Ce(.42,0,1,1),De=Ce(0,0,.58,1),ke=Ce(.42,0,.58,1),Re=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Le=t=>e=>1-t(1-e),je=t=>1-Math.sin(Math.acos(t)),Be=Le(je),Fe=Re(je),Oe=Ce(.33,1.53,.69,.99),Ie=Le(Oe),Ue=Re(Ie),Ne={linear:Ot,easeIn:Me,easeInOut:ke,easeOut:De,circIn:je,circInOut:Fe,circOut:Be,backIn:Ie,backInOut:Ue,backOut:Oe,anticipate:t=>(t*=2)<1?.5*Ie(t):.5*(2-Math.pow(2,-10*(t-1)))},We=t=>{if(Array.isArray(t)){ye(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,s]=t;return Ce(e,n,i,s)}return"string"===typeof t?(ye(void 0!==Ne[t],"Invalid easing type '".concat(t,"'")),Ne[t]):t},He=(t,e)=>n=>Boolean(_(n)&&$.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),ze=(t,e,n)=>i=>{if(!_(i))return i;const[s,o,r,a]=i.match(Z);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1}},Ye=(0,i.A)((0,i.A)({},Y),{},{transform:t=>Math.round((t=>z(0,255,t))(t))}),Xe={test:He("rgb","red"),parse:ze("red","green","blue"),transform:t=>{let{red:e,green:n,blue:i,alpha:s=1}=t;return"rgba("+Ye.transform(e)+", "+Ye.transform(n)+", "+Ye.transform(i)+", "+q(X.transform(s))+")"}};const Ge={test:He("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}},transform:Xe.transform},qe={test:He("hsl","hue"),parse:ze("hue","saturation","lightness"),transform:t=>{let{hue:e,saturation:n,lightness:i,alpha:s=1}=t;return"hsla("+Math.round(e)+", "+tt.transform(q(n))+", "+tt.transform(q(i))+", "+q(X.transform(s))+")"}},Ze={test:t=>Xe.test(t)||Ge.test(t)||qe.test(t),parse:t=>Xe.test(t)?Xe.parse(t):qe.test(t)?qe.parse(t):Ge.parse(t),transform:t=>_(t)?t:t.hasOwnProperty("red")?Xe.transform(t):qe.transform(t)},Ke=(t,e,n)=>-n*t+n*e+t;function $e(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}const _e=(t,e,n)=>{const i=t*t;return Math.sqrt(Math.max(0,n*(e*e-i)+i))},Je=[Ge,Xe,qe];function Qe(t){const e=(n=t,Je.find((t=>t.test(n))));var n;ye(Boolean(e),"'".concat(t,"' is not an animatable color. Use the equivalent color code instead."));let i=e.parse(t);return e===qe&&(i=function(t){let{hue:e,saturation:n,lightness:i,alpha:s}=t;e/=360,n/=100,i/=100;let o=0,r=0,a=0;if(n){const t=i<.5?i*(1+n):i+n-i*n,s=2*i-t;o=$e(s,t,e+1/3),r=$e(s,t,e),a=$e(s,t,e-1/3)}else o=r=a=i;return{red:Math.round(255*o),green:Math.round(255*r),blue:Math.round(255*a),alpha:s}}(i)),i}const tn=(t,e)=>{const n=Qe(t),s=Qe(e),o=(0,i.A)({},n);return t=>(o.red=_e(n.red,s.red,t),o.green=_e(n.green,s.green,t),o.blue=_e(n.blue,s.blue,t),o.alpha=Ke(n.alpha,s.alpha,t),Xe.transform(o))};const en={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:Ot},nn={regex:K,countKey:"Colors",token:"${c}",parse:Ze.parse},sn={regex:Z,countKey:"Numbers",token:"${n}",parse:Y.parse};function on(t,e){let{regex:n,countKey:i,token:s,parse:o}=e;const r=t.tokenised.match(n);r&&(t["num"+i]=r.length,t.tokenised=t.tokenised.replace(n,s),t.values.push(...r.map(o)))}function rn(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&on(n,en),on(n,nn),on(n,sn),n}function an(t){return rn(t).values}function ln(t){const{values:e,numColors:n,numVars:i,tokenised:s}=rn(t),o=e.length;return t=>{let e=s;for(let s=0;s"number"===typeof t?0:t;const un={test:function(t){var e,n;return isNaN(t)&&_(t)&&((null===(e=t.match(Z))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(K))||void 0===n?void 0:n.length)||0)>0},parse:an,createTransformer:ln,getAnimatableNone:function(t){const e=an(t);return ln(t)(e.map(cn))}},hn=(t,e)=>n=>"".concat(n>0?e:t);function dn(t,e){return"number"===typeof t?n=>Ke(t,e,n):Ze.test(t)?tn(t,e):t.startsWith("var(")?hn(t,e):fn(t,e)}const pn=(t,e)=>{const n=[...t],i=n.length,s=t.map(((t,n)=>dn(t,e[n])));return t=>{for(let e=0;e{const n=(0,i.A)((0,i.A)({},t),e),s={};for(const i in n)void 0!==t[i]&&void 0!==e[i]&&(s[i]=dn(t[i],e[i]));return t=>{for(const e in s)n[e]=s[e](t);return n}},fn=(t,e)=>{const n=un.createTransformer(e),i=rn(t),s=rn(e);return i.numVars===s.numVars&&i.numColors===s.numColors&&i.numNumbers>=s.numNumbers?_t(pn(i.values,s.values),n):(ve(!0,"Complex values '".concat(t,"' and '").concat(e,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.")),hn(t,e))},gn=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i},vn=(t,e)=>n=>Ke(t,e,n);function yn(t,e,n){const i=[],s=n||("number"===typeof(o=t[0])?vn:"string"===typeof o?Ze.test(o)?tn:fn:Array.isArray(o)?pn:"object"===typeof o?mn:vn);var o;const r=t.length-1;for(let a=0;a2&&void 0!==arguments[2]?arguments[2]:{};const o=t.length;if(ye(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const r=yn(e,i,s),a=r.length,l=e=>{let n=0;if(a>1)for(;nl(z(t[0],t[o-1],e)):l}function An(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=gn(0,e,i);t.push(Ke(n,1,s))}}(e,t.length-1),e}function Pn(t){let{duration:e=300,keyframes:n,times:i,ease:s="easeInOut"}=t;const o=(t=>Array.isArray(t)&&"number"!==typeof t[0])(s)?s.map(We):We(s),r={done:!1,value:n[0]},a=function(t,e){return t.map((t=>t*e))}(i&&i.length===n.length?i:An(n),e),l=xn(a,n,{ease:Array.isArray(o)?o:(c=n,u=o,c.map((()=>u||ke)).splice(0,c.length-1))});var c,u;return{calculatedDuration:e,next:t=>(r.value=l(t),r.done=t>=e,r)}}function bn(t,e){return e?t*(1e3/e):0}function Tn(t,e,n){const i=Math.max(e-5,0);return bn(n-t(i),e-i)}const wn=.001;function Sn(t){let e,n,{duration:i=800,bounce:s=.25,velocity:o=0,mass:r=1}=t;ve(i<=xe(10),"Spring duration must be 10 seconds or less");let a=1-s;a=z(.05,1,a),i=z(.01,10,Ae(i)),a<1?(e=t=>{const e=t*a,n=e*i,s=e-o,r=Vn(t,a),l=Math.exp(-n);return wn-s/r*l},n=t=>{const n=t*a*i,s=n*o+o,r=Math.pow(a,2)*Math.pow(t,2)*i,l=Math.exp(-n),c=Vn(Math.pow(t,2),a);return(-e(t)+wn>0?-1:1)*((s-r)*l)/c}):(e=t=>Math.exp(-t*i)*((t-o)*i+1)-.001,n=t=>Math.exp(-t*i)*(i*i*(o-t)));const l=function(t,e,n){let i=n;for(let s=1;svoid 0!==t[e]))}function Rn(t){let{keyframes:e,restDelta:n,restSpeed:s}=t,o=(0,gt.A)(t,Cn);const r=e[0],a=e[e.length-1],l={done:!1,value:r},{stiffness:c,damping:u,mass:h,duration:d,velocity:p,isResolvedFromDuration:m}=function(t){let e=(0,i.A)({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!kn(t,Dn)&&kn(t,Mn)){const n=Sn(t);e=(0,i.A)((0,i.A)((0,i.A)({},e),n),{},{mass:1}),e.isResolvedFromDuration=!0}return e}((0,i.A)((0,i.A)({},o),{},{velocity:-Ae(o.velocity||0)})),f=p||0,g=u/(2*Math.sqrt(c*h)),v=a-r,y=Ae(Math.sqrt(c/h)),x=Math.abs(v)<5;let A;if(s||(s=x?.01:2),n||(n=x?.005:.5),g<1){const t=Vn(y,g);A=e=>{const n=Math.exp(-g*y*e);return a-n*((f+g*y*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}}else if(1===g)A=t=>a-Math.exp(-y*t)*(v+(f+y*v)*t);else{const t=y*Math.sqrt(g*g-1);A=e=>{const n=Math.exp(-g*y*e),i=Math.min(t*e,300);return a-n*((f+g*y*v)*Math.sinh(i)+t*v*Math.cosh(i))/t}}return{calculatedDuration:m&&d||null,next:t=>{const e=A(t);if(m)l.done=t>=d;else{let i=f;0!==t&&(i=g<1?Tn(A,t,e):0);const o=Math.abs(i)<=s,r=Math.abs(a-e)<=n;l.done=o&&r}return l.value=l.done?a:e,l}}}function Ln(t){let{keyframes:e,velocity:n=0,power:i=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:r=500,modifyTarget:a,min:l,max:c,restDelta:u=.5,restSpeed:h}=t;const d=e[0],p={done:!1,value:d},m=t=>void 0===l?c:void 0===c||Math.abs(l-t)-f*Math.exp(-t/s),x=t=>v+y(t),A=t=>{const e=y(t),n=x(t);p.done=Math.abs(e)<=u,p.value=p.done?v:n};let P,b;const T=t=>{var e;(e=p.value,void 0!==l&&ec)&&(P=t,b=Rn({keyframes:[p.value,m(p.value)],velocity:Tn(x,t,p.value),damping:o,stiffness:r,restDelta:u,restSpeed:h}))};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return b||void 0!==P||(e=!0,A(t),T(t)),void 0!==P&&t>P?b.next(t-P):(!e&&A(t),p)}}}const jn=t=>{const e=e=>{let{timestamp:n}=e;return t(n)};return{start:()=>Nt.update(e,!0),stop:()=>Wt(e),now:()=>Ht.isProcessing?Ht.timestamp:performance.now()}};function Bn(t){let e=0;let n=t.next(e);for(;!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}const Fn=["autoplay","delay","driver","keyframes","type","repeat","repeatDelay","repeatType","onPlay","onStop","onComplete","onUpdate"],On={decay:Ln,inertia:Ln,tween:Pn,keyframes:Pn,spring:Rn};function In(t){let e,n,{autoplay:s=!0,delay:o=0,driver:r=jn,keyframes:a,type:l="keyframes",repeat:c=0,repeatDelay:u=0,repeatType:h="loop",onPlay:d,onStop:p,onComplete:m,onUpdate:f}=t,g=(0,gt.A)(t,Fn),v=1,y=!1;const x=()=>{n=new Promise((t=>{e=t}))};let A;x();const P=On[l]||Pn;let b;P!==Pn&&"number"!==typeof a[0]&&(b=xn([0,100],a,{clamp:!1}),a=[0,100]);const T=P((0,i.A)((0,i.A)({},g),{},{keyframes:a}));let w;"mirror"===h&&(w=P((0,i.A)((0,i.A)({},g),{},{keyframes:[...a].reverse(),velocity:-(g.velocity||0)})));let S="idle",E=null,V=null,C=null;null===T.calculatedDuration&&c&&(T.calculatedDuration=Bn(T));const{calculatedDuration:M}=T;let D=1/0,k=1/0;null!==M&&(D=M+u,k=D*(c+1)-u);let R=0;const L=t=>{if(null===V)return;v>0&&(V=Math.min(V,t)),v<0&&(V=Math.min(t-k/v,V)),R=null!==E?E:Math.round(t-V)*v;const e=R-o*(v>=0?1:-1),n=v>=0?e<0:e>k;R=Math.max(e,0),"finished"===S&&null===E&&(R=k);let i=R,s=T;if(c){const t=Math.min(R,k)/D;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,c+1);Boolean(e%2)&&("reverse"===h?(n=1-n,u&&(n-=u/D)):"mirror"===h&&(s=w)),i=z(0,1,n)*D}const r=n?{done:!1,value:a[0]}:s.next(i);b&&(r.value=b(r.value));let{done:l}=r;n||null===M||(l=v>=0?R>=k:R<=0);const d=null===E&&("finished"===S||"running"===S&&l);return f&&f(r.value),d&&F(),r},j=()=>{A&&A.stop(),A=void 0},B=()=>{S="idle",j(),e(),x(),V=C=null},F=()=>{S="finished",m&&m(),j(),e()},O=()=>{if(y)return;A||(A=r(L));const t=A.now();d&&d(),null!==E?V=t-E:V&&"finished"!==S||(V=t),"finished"===S&&x(),C=V,E=null,S="running",A.start()};s&&O();const I={then:(t,e)=>n.then(t,e),get time(){return Ae(R)},set time(t){t=xe(t),R=t,null===E&&A&&0!==v?V=A.now()-t/v:E=t},get duration(){const t=null===T.calculatedDuration?Bn(T):T.calculatedDuration;return Ae(t)},get speed(){return v},set speed(t){t!==v&&A&&(v=t,I.time=Ae(R))},get state(){return S},play:O,pause:()=>{S="paused",E=R},stop:()=>{y=!0,"idle"!==S&&(S="idle",p&&p(),B())},cancel:()=>{null!==C&&L(C),B()},complete:()=>{S="finished"},sample:t=>(V=0,L(t))};return I}const Un=["onUpdate","onComplete"],Nn=function(t){let e;return()=>(void 0===e&&(e=t()),e)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Wn=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Hn(t,e,n){let{onUpdate:s,onComplete:o}=n,r=(0,gt.A)(n,Un);if(!(Nn()&&Wn.has(e)&&!r.repeatDelay&&"mirror"!==r.repeatType&&0!==r.damping&&"inertia"!==r.type))return!1;let a,l,c=!1,u=!1;const h=()=>{l=new Promise((t=>{a=t}))};h();let{keyframes:d,duration:p=300,ease:m,times:f}=r;if(((t,e)=>"spring"===e.type||"backgroundColor"===t||!Te(e.ease))(e,r)){const t=In((0,i.A)((0,i.A)({},r),{},{repeat:0,delay:0}));let e={done:!1,value:d[0]};const n=[];let s=0;for(;!e.done&&s<2e4;)e=t.sample(s),n.push(e.value),s+=10;f=void 0,d=n,p=s-10,m="linear"}const g=function(t,e,n){let{delay:i=0,duration:s,repeat:o=0,repeatType:r="loop",ease:a,times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const c={[e]:n};l&&(c.offset=l);const u=Ee(a);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:i,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"})}(t.owner.current,e,d,(0,i.A)((0,i.A)({},r),{},{duration:p,ease:m,times:f})),v=()=>{u=!1,g.cancel()},y=()=>{u=!0,Nt.update(v),a(),h()};g.onfinish=()=>{u||(t.set(function(t,e){let{repeat:n,repeatType:i="loop"}=e;return t[n&&"loop"!==i&&n%2===1?0:t.length-1]}(d,r)),o&&o(),y())};return{then:(t,e)=>l.then(t,e),attachTimeline:t=>(g.timeline=t,g.onfinish=null,Ot),get time(){return Ae(g.currentTime||0)},set time(t){g.currentTime=xe(t)},get speed(){return g.playbackRate},set speed(t){g.playbackRate=t},get duration(){return Ae(p)},play:()=>{c||(g.play(),Wt(v))},pause:()=>g.pause(),stop:()=>{if(c=!0,"idle"===g.playState)return;const{currentTime:e}=g;if(e){const n=In((0,i.A)((0,i.A)({},r),{},{autoplay:!1}));t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}y()},complete:()=>{u||g.finish()},cancel:y}}const zn={type:"spring",stiffness:500,damping:25,restSpeed:10},Yn={type:"keyframes",duration:.8},Xn={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Gn=(t,e)=>{let{keyframes:n}=e;return n.length>2?Yn:j.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:zn:Xn},qn=(t,e)=>"zIndex"!==t&&(!("number"!==typeof e&&!Array.isArray(e))||!("string"!==typeof e||!un.test(e)&&"0"!==e||e.startsWith("url("))),Zn=new Set(["brightness","contrast","saturate","opacity"]);function Kn(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(Z)||[];if(!i)return t;const s=n.replace(i,"");let o=Zn.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const $n=/([a-z-]*)\(.*?\)/g,_n=(0,i.A)((0,i.A)({},un),{},{getAnimatableNone:t=>{const e=t.match($n);return e?e.map(Kn).join(" "):t}}),Jn=(0,i.A)((0,i.A)({},rt),{},{color:Ze,backgroundColor:Ze,outlineColor:Ze,fill:Ze,stroke:Ze,borderColor:Ze,borderTopColor:Ze,borderRightColor:Ze,borderBottomColor:Ze,borderLeftColor:Ze,filter:_n,WebkitFilter:_n}),Qn=t=>Jn[t];function ti(t,e){let n=Qn(t);return n!==_n&&(n=un),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const ei=t=>/^0[^.\s]+$/.test(t);function ni(t){return"number"===typeof t?0===t:null!==t?"none"===t||"0"===t||ei(t):void 0}const ii=["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"];function si(t,e){return t[e]||t.default||t}const oi=!1,ri=function(t,e,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return o=>{const r=si(s,t)||{},a=r.delay||s.delay||0;let{elapsed:l=0}=s;l-=xe(a);const c=function(t,e,n,i){const s=qn(e,n);let o;o=Array.isArray(n)?[...n]:[null,n];const r=void 0!==i.from?i.from:t.get();let a;const l=[];for(let c=0;c{e.set(t),r.onUpdate&&r.onUpdate(t)},onComplete:()=>{o(),r.onComplete&&r.onComplete()}});if(function(t){let{when:e,delay:n,delayChildren:i,staggerChildren:s,staggerDirection:o,repeat:r,repeatType:a,repeatDelay:l,from:c,elapsed:u}=t,h=(0,gt.A)(t,ii);return!!Object.keys(h).length}(r)||(m=(0,i.A)((0,i.A)({},m),Gn(t,m))),m.duration&&(m.duration=xe(m.duration)),m.repeatDelay&&(m.repeatDelay=xe(m.repeatDelay)),!d||!p||Pe||!1===r.type||oi)return function(t){let{keyframes:e,delay:n,onUpdate:i,onComplete:s}=t;const o=()=>(i&&i(e[e.length-1]),s&&s(),{time:0,speed:1,duration:0,play:Ot,pause:Ot,stop:Ot,then:t=>(t(),Promise.resolve()),cancel:Ot,complete:Ot});return n?In({keyframes:[0,1],duration:0,delay:n,onComplete:o}):o()}(Pe?(0,i.A)((0,i.A)({},m),{},{delay:0}):m);if(!s.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const n=Hn(e,t,m);if(n)return n}return In(m)}};function ai(t){return Boolean(F(t)&&t.add)}const li=t=>/^\-?\d*\.?\d+$/.test(t);function ci(t,e){-1===t.indexOf(e)&&t.push(e)}function ui(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class hi{constructor(){this.subscriptions=[]}add(t){return ci(this.subscriptions,t),()=>ui(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s1&&void 0!==arguments[1]?arguments[1]:{};var i;this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=function(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.prev=e.current,e.current=t;const{delta:i,timestamp:s}=Ht;e.lastUpdated!==s&&(e.timeDelta=i,e.lastUpdated=s,Nt.postRender(e.scheduleVelocityCheck)),e.prev!==e.current&&e.events.change&&e.events.change.notify(e.current),e.events.velocityChange&&e.events.velocityChange.notify(e.getVelocity()),n&&e.events.renderRequest&&e.events.renderRequest.notify(e.current)},this.scheduleVelocityCheck=()=>Nt.postRender(this.velocityCheck),this.velocityCheck=t=>{let{timestamp:e}=t;e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(i=this.current,!isNaN(parseFloat(i))),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new hi);const n=this.events[t].add(e);return"change"===t?()=>{n(),Nt.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return di.current&&di.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?bn(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function mi(t,e){return new pi(t,e)}const fi=t=>e=>e.test(t),gi=[Y,et,tt,Q,it,nt,{test:t=>"auto"===t,parse:t=>t}],vi=t=>gi.find(fi(t)),yi=[...gi,Ze,un],xi=["transitionEnd","transition"];function Ai(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,mi(n))}function Pi(t,e){const n=ge(t,e);let s=n?t.makeTargetAnimatable(n,!1):{},{transitionEnd:o={},transition:r={}}=s,a=(0,gt.A)(s,xi);a=(0,i.A)((0,i.A)({},a),o);for(const i in a){Ai(t,i,(l=a[i],Rt(l)?l[l.length-1]||0:l))}var l}function bi(t,e){if(!e)return;return(e[t]||e.default||e).from}const Ti=["transition","transitionEnd"];function wi(t,e){let{protectedKeys:n,needsAnimating:i}=t;const s=n.hasOwnProperty(e)&&!0!==i[e];return i[e]=!1,s}function Si(t,e){const n=t.get();if(!Array.isArray(e))return n!==e;for(let i=0;i2&&void 0!==arguments[2]?arguments[2]:{},r=t.makeTargetAnimatable(e),{transition:a=t.getDefaultTransition(),transitionEnd:l}=r,c=(0,gt.A)(r,Ti);const u=t.getValue("willChange");s&&(a=s);const h=[],p=o&&t.animationState&&t.animationState.getState()[o];for(const m in c){const e=t.getValue(m),s=c[m];if(!e||void 0===s||p&&wi(p,m))continue;const o=(0,i.A)({delay:n,elapsed:0},si(a||{},m));if(window.HandoffAppearAnimations){const n=t.getProps()[d];if(n){const t=window.HandoffAppearAnimations(n,m,e,Nt);null!==t&&(o.elapsed=t,o.isHandoff=!0)}}let r=!o.isHandoff&&!Si(e,s);if("spring"===o.type&&(e.getVelocity()||o.velocity)&&(r=!1),e.animation&&(r=!1),r)continue;e.start(ri(m,e,s,t.shouldReduceMotion&&j.has(m)?{type:!1}:o));const l=e.animation;ai(u)&&(u.add(m),l.then((()=>u.remove(m)))),h.push(l)}return l&&Promise.all(h).then((()=>{l&&Pi(t,l)})),h}function Vi(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=ge(t,e,n.custom);let{transition:o=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const r=s?()=>Promise.all(Ei(t,s,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(s=0)=>{const{delayChildren:r=0,staggerChildren:a,staggerDirection:l}=o;return function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=arguments.length>5?arguments[5]:void 0;const a=[],l=(t.variantChildren.size-1)*s,c=1===o?function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*s}:function(){return l-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*s};return Array.from(t.variantChildren).sort(Ci).forEach(((t,s)=>{t.notify("AnimationStart",e),a.push(Vi(t,e,(0,i.A)((0,i.A)({},r),{},{delay:n+c(s)})).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(a)}(t,e,r+s,a,l,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then((()=>e()))}return Promise.all([r(),a(n.delay)])}function Ci(t,e){return t.sortNodePosition(e)}const Mi=["transition","transitionEnd"],Di=[...g].reverse(),ki=g.length;function Ri(t){return e=>Promise.all(e.map((e=>{let{animation:n,options:i}=e;return function(t,e){let n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map((e=>Vi(t,e,i)));n=Promise.all(s)}else if("string"===typeof e)n=Vi(t,e,i);else{const s="function"===typeof e?ge(t,e,i.custom):e;n=Promise.all(Ei(t,s,i))}return n.then((()=>t.notify("AnimationComplete",e)))}(t,n,i)})))}function Li(t){let e=Ri(t);const n={animate:Bi(!0),whileInView:Bi(),whileHover:Bi(),whileTap:Bi(),whileDrag:Bi(),whileFocus:Bi(),exit:Bi()};let s=!0;const o=(e,n)=>{const s=ge(t,n);if(s){const{transition:t,transitionEnd:n}=s,o=(0,gt.A)(s,Mi);e=(0,i.A)((0,i.A)((0,i.A)({},e),o),n)}return e};function r(r,a){const l=t.getProps(),c=t.getVariantContext(!0)||{},u=[],h=new Set;let d={},p=1/0;for(let e=0;ep&&x,T=!1;const w=Array.isArray(y)?y:[y];let S=w.reduce(o,{});!1===A&&(S={});const{prevResolvedValues:E={}}=v,V=(0,i.A)((0,i.A)({},E),S),C=t=>{b=!0,h.has(t)&&(T=!0,h.delete(t)),v.needsAnimating[t]=!0};for(const t in V){const e=S[t],n=E[t];if(d.hasOwnProperty(t))continue;let i=!1;i=Rt(e)&&Rt(n)?!fe(e,n):e!==n,i?void 0!==e?C(t):h.add(t):void 0!==e&&h.has(t)?C(t):v.protectedKeys[t]=!0}v.prevProp=y,v.prevResolvedValues=S,v.isActive&&(d=(0,i.A)((0,i.A)({},d),S)),s&&t.blockInitialAnimation&&(b=!1),!b||P&&!T||u.push(...w.map((t=>({animation:t,options:(0,i.A)({type:g},r)}))))}if(h.size){const e={};h.forEach((n=>{const i=t.getBaseTarget(n);void 0!==i&&(e[n]=i)})),u.push({animation:e})}let g=Boolean(u.length);return!s||!1!==l.initial&&l.initial!==l.animate||t.manuallyAnimateOnMount||(g=!1),s=!1,g?e(u):Promise.resolve()}return{animateChanges:r,setActive:function(e,i,s){var o;if(n[e].isActive===i)return Promise.resolve();null===(o=t.variantChildren)||void 0===o||o.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)})),n[e].isActive=i;const a=r(s,e);for(const t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function ji(t,e){return"string"===typeof e?e!==t:!!Array.isArray(e)&&!fe(e,t)}function Bi(){return{isActive:arguments.length>0&&void 0!==arguments[0]&&arguments[0],protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Fi=0;const Oi={animation:{Feature:class extends ie{constructor(t){super(t),t.animationState||(t.animationState=Li(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),f(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends ie{constructor(){super(...arguments),this.id=Fi++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const s=this.node.animationState.setActive("exit",!t,{custom:null!==n&&void 0!==n?n:this.node.getProps().custom});e&&!t&&s.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}},Ii=(t,e)=>Math.abs(t-e);class Ui{constructor(t,e){let{transformPagePoint:n,contextWindow:s,dragSnapToOrigin:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=Hi(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=Ii(t.x,e.x),i=Ii(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:s}=t,{timestamp:o}=Ht;this.history.push((0,i.A)((0,i.A)({},s),{},{timestamp:o}));const{onStart:r,onMove:a}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=Ni(e,this.transformPagePoint),Nt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=Hi("pointercancel"===t.type?this.lastMoveEventInfo:Ni(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!qt(t))return;this.dragSnapToOrigin=o,this.handlers=e,this.transformPagePoint=n,this.contextWindow=s||window;const r=Ni(Zt(t),this.transformPagePoint),{point:a}=r,{timestamp:l}=Ht;this.history=[(0,i.A)((0,i.A)({},a),{},{timestamp:l})];const{onSessionStart:c}=e;c&&c(t,Hi(r,this.history)),this.removeListeners=_t(Kt(this.contextWindow,"pointermove",this.handlePointerMove),Kt(this.contextWindow,"pointerup",this.handlePointerUp),Kt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Wt(this.updatePoint)}}function Ni(t,e){return e?{point:e(t.point)}:t}function Wi(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Hi(t,e){let{point:n}=t;return{point:n,delta:Wi(n,Yi(e)),offset:Wi(n,zi(e)),velocity:Xi(e,.1)}}function zi(t){return t[0]}function Yi(t){return t[t.length-1]}function Xi(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=Yi(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>xe(e)));)n--;if(!i)return{x:0,y:0};const o=Ae(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function Gi(t){return t.max-t.min}function qi(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01;return Math.abs(t-e)<=n}function Zi(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=i,t.originPoint=Ke(e.min,e.max,t.origin),t.scale=Gi(n)/Gi(e),(qi(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Ke(n.min,n.max,t.origin)-t.originPoint,(qi(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Ki(t,e,n,i){Zi(t.x,e.x,n.x,i?i.originX:void 0),Zi(t.y,e.y,n.y,i?i.originY:void 0)}function $i(t,e,n){t.min=n.min+e.min,t.max=t.min+Gi(e)}function _i(t,e,n){t.min=e.min-n.min,t.max=t.min+Gi(e)}function Ji(t,e,n){_i(t.x,e.x,n.x),_i(t.y,e.y,n.y)}function Qi(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function ts(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;t.min=ds(t.min,e,n,i,s),t.max=ds(t.max,e,n,i,s)}function ms(t,e){let{x:n,y:i}=e;ps(t.x,n.translate,n.scale,n.originPoint),ps(t.y,i.translate,i.scale,i.originPoint)}function fs(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function gs(t,e){t.min=t.min+e,t.max=t.max+e}function vs(t,e,n){let[i,s,o]=n;const r=void 0!==e[o]?e[o]:.5,a=Ke(t.min,t.max,r);ps(t,e[i],e[s],a,e.scale)}const ys=["x","scaleX","originX"],xs=["y","scaleY","originY"];function As(t,e){vs(t.x,e,ys),vs(t.y,e,xs)}function Ps(t,e){return os(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}const bs=t=>{let{current:e}=t;return e?e.ownerDocument.defaultView:null},Ts=new WeakMap;class ws{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}start(t){let{snapToCursor:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new Ui(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(Zt(t,"page").point)},onStart:(t,e)=>{const{drag:n,dragPropagation:i,onDragStart:s}=this.getProps();if(n&&!i&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ee(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ss((t=>{let e=this.getAxisMotionValue(t).get()||0;if(tt.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];if(i){e=Gi(i)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),s&&Nt.update((()=>s(t,e)),!1,!0);const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>ss((t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,contextWindow:bs(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=e;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&Nt.update((()=>s(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!Ss(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,e,n){let{min:i,max:s}=e;return void 0!==i&&ts&&(t=n?Ke(s,t,n.max):Math.min(t,s)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,s=this.constraints;e&&p(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!i)&&function(t,e){let{top:n,left:i,bottom:s,right:o}=e;return{x:Qi(t.x,i,o),y:Qi(t.y,n,s)}}(i.layoutBox,e),this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:es;return!1===t?t=0:!0===t&&(t=es),{x:ns(t,"left","right"),y:ns(t,"top","bottom")}}(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ss((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(i.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!p(t))return!1;const n=t.current;ye(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=function(t,e,n){const i=Ps(t,n),{scroll:s}=e;return s&&(gs(i.x,s.offset.x),gs(i.y,s.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:ts(t.x,e.x),y:ts(t.y,e.y)}}(i.layout.layoutBox,s);if(e){const t=e(function(t){let{x:e,y:n}=t;return{top:n.min,right:e.max,bottom:n.max,left:e.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=os(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:s,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=ss((a=>{if(!Ss(a,e,this.currentDirection))return;let c=l&&l[a]||{};r&&(c={min:0,max:0});const u=s?200:1e6,h=s?40:1e7,d=(0,i.A)((0,i.A)({type:"inertia",velocity:n?t[a]:0,bounceStiffness:u,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10},o),c);return this.startAxisValueAnimation(a,d)}));return Promise.all(c).then(a)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start(ri(t,n,0,e))}stopAnimation(){ss((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){ss((t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()}))}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){ss((e=>{const{drag:n}=this.getProps();if(!Ss(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e];s.set(t[e]-Ke(n,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!p(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ss((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();i[t]=function(t,e){let n=.5;const i=Gi(t),s=Gi(e);return s>i?n=gn(e.min,e.max-i,t.min):i>s&&(n=gn(t.min,t.max-s,e.min)),z(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ss((e=>{if(!Ss(e,t,null))return;const n=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];n.set(Ke(s,o,i[e]))}))}addListeners(){if(!this.visualElement.current)return;Ts.set(this.visualElement,this);const t=Kt(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();p(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),e();const s=Gt(window,"resize",(()=>this.scalePositionWithinConstraints())),o=n.addEventListener("didUpdate",(t=>{let{delta:e,hasLayoutChanged:n}=t;this.isDragging&&n&&(ss((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{s(),t(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:r=es,dragMomentum:a=!0}=t;return(0,i.A)((0,i.A)({},t),{},{drag:e,dragDirectionLock:n,dragPropagation:s,dragConstraints:o,dragElastic:r,dragMomentum:a})}}function Ss(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}const Es=t=>(e,n)=>{t&&Nt.update((()=>t(e,n)))};const Vs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Cs(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ms={correct:(t,e)=>{if(!e.target)return t;if("string"===typeof t){if(!et.test(t))return t;t=parseFloat(t)}const n=Cs(t,e.target.x),i=Cs(t,e.target.y);return"".concat(n,"% ").concat(i,"%")}},Ds={correct:(t,e)=>{let{treeScale:n,projectionDelta:i}=e;const s=t,o=un.parse(t);if(o.length>5)return s;const r=un.createTransformer(t),a="number"!==typeof o[0]?1:0,l=i.x.scale*n.x,c=i.y.scale*n.y;o[0+a]/=l,o[1+a]/=c;const u=Ke(l,c,.5);return"number"===typeof o[2+a]&&(o[2+a]/=u),"number"===typeof o[3+a]&&(o[3+a]/=u),r(o)}};class ks extends s.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:s}=this.props,{projection:o}=t;var r;r=Ls,Object.assign(R,r),o&&(e.group&&e.group.add(o),n&&n.register&&s&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions((0,i.A)((0,i.A)({},o.options),{},{onExitComplete:()=>this.safeToRemove()}))),Vs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,o=n.projection;return o?(o.isPresent=s,i||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||Nt.postRender((()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Rs(t){const[e,n]=function(){const t=(0,s.useContext)(a);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:i}=t,o=(0,s.useId)();return(0,s.useEffect)((()=>i(o)),[]),!e&&n?[!1,()=>n&&n(o)]:[!0]}(),o=(0,s.useContext)(w);return s.createElement(ks,(0,i.A)((0,i.A)({},t),{},{layoutGroup:o,switchLayoutGroup:(0,s.useContext)(S),isPresent:e,safeToRemove:n}))}const Ls={borderRadius:(0,i.A)((0,i.A)({},Ms),{},{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ms,borderTopRightRadius:Ms,borderBottomLeftRadius:Ms,borderBottomRightRadius:Ms,boxShadow:Ds},js=["TopLeft","TopRight","BottomLeft","BottomRight"],Bs=js.length,Fs=t=>"string"===typeof t?parseFloat(t):t,Os=t=>"number"===typeof t||et.test(t);function Is(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Us=Ws(0,.5,Be),Ns=Ws(.5,.95,Ot);function Ws(t,e,n){return i=>ie?1:n(gn(t,e,i))}function Hs(t,e){t.min=e.min,t.max=e.max}function zs(t,e){Hs(t.x,e.x),Hs(t.y,e.y)}function Ys(t,e,n,i,s){return t=hs(t-=e,1/n,i),void 0!==s&&(t=hs(t,1/s,i)),t}function Xs(t,e,n,i,s){let[o,r,a]=n;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;tt.test(e)&&(e=parseFloat(e),e=Ke(r.min,r.max,e/100)-r.min);if("number"!==typeof e)return;let a=Ke(o.min,o.max,i);t===o&&(a-=e),t.min=Ys(t.min,e,n,a,s),t.max=Ys(t.max,e,n,a,s)}(t,e[o],e[r],e[a],e.scale,i,s)}const Gs=["x","scaleX","originX"],qs=["y","scaleY","originY"];function Zs(t,e,n,i){Xs(t.x,e,Gs,n?n.x:void 0,i?i.x:void 0),Xs(t.y,e,qs,n?n.y:void 0,i?i.y:void 0)}function Ks(t){return 0===t.translate&&1===t.scale}function $s(t){return Ks(t.x)&&Ks(t.y)}function _s(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function Js(t){return Gi(t.x)/Gi(t.y)}class Qs{constructor(){this.members=[]}add(t){ci(this.members,t),t.scheduleRender()}remove(t){if(ui(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let i=e;i>=0;i--){const t=this.members[i];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function to(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y;if((s||o)&&(i="translate3d(".concat(s,"px, ").concat(o,"px, 0) ")),1===e.x&&1===e.y||(i+="scale(".concat(1/e.x,", ").concat(1/e.y,") ")),n){const{rotate:t,rotateX:e,rotateY:s}=n;t&&(i+="rotate(".concat(t,"deg) ")),e&&(i+="rotateX(".concat(e,"deg) ")),s&&(i+="rotateY(".concat(s,"deg) "))}const r=t.x.scale*e.x,a=t.y.scale*e.y;return 1===r&&1===a||(i+="scale(".concat(r,", ").concat(a,")")),i||"none"}const eo=(t,e)=>t.depth-e.depth;class no{constructor(){this.children=[],this.isDirty=!1}add(t){ci(this.children,t),this.isDirty=!0}remove(t){ui(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eo),this.isDirty=!1,this.children.forEach(t)}}const io=["","X","Y","Z"],so={visibility:"hidden"};let oo=0;const ro={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ao(t){let{attachResizeListener:e,defaultParent:n,measureScroll:s,checkIsScrollRoot:o,resetTransform:r}=t;return class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===n||void 0===n?void 0:n();this.id=oo++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var t;this.projectionUpdateScheduled=!1,ro.totalNodes=ro.resolvedTargetDeltas=ro.recalculatedProjection=0,this.nodes.forEach(uo),this.nodes.forEach(yo),this.nodes.forEach(xo),this.nodes.forEach(ho),t=ro,window.MotionDebug&&window.MotionDebug.record(t)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=e?e.root||e:this,this.path=e?[...e.path,e]:[],this.parent=e,this.depth=e?e.depth+1:0;for(let n=0;n1?n-1:0),s=1;s1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;var s;this.isSVG=(s=t)instanceof SVGElement&&"svg"!==s.tagName,this.instance=t;const{layoutId:o,layout:r,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(r||o)&&(this.isLayoutDirty=!0),e){let n;const i=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=performance.now(),i=s=>{let{timestamp:o}=s;const r=o-n;r>=e&&(Wt(i),t(r-e))};return Nt.read(i,!0),()=>Wt(i)}(i,250),Vs.hasAnimatedSinceResize&&(Vs.hasAnimatedSinceResize=!1,this.nodes.forEach(vo))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||r)&&this.addEventListener("didUpdate",(t=>{let{delta:e,hasLayoutChanged:n,hasRelativeTargetChanged:s,layout:o}=t;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const r=this.options.transition||a.getDefaultTransition()||So,{onLayoutAnimationStart:l,onLayoutAnimationComplete:c}=a.getProps(),u=!this.targetLayout||!_s(this.targetLayout,o)||s,h=!n&&s;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||n&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,h);const t=(0,i.A)((0,i.A)({},si(r,"layout")),{},{onPlay:l,onComplete:c});(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else n||vo(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=o}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Wt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ao),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let s=0;sthis.update())))}clearAllSnapshots(){this.nodes.forEach(po),this.sharedNodes.forEach(Po)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Nt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Nt.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n0&&void 0!==arguments[0]?arguments[0]:"measure",e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:o(this.instance),offset:s(this.instance)})}resetTransform(){if(!r)return;const t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!$s(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,s=i!==this.prevTransformTemplateValue;t&&(e||ls(this.latestValues)||s)&&(r(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),Co((i=n).x),Co(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(gs(e.x,n.offset.x),gs(e.y,n.offset.y)),e}removeElementScroll(t){const e={x:{min:0,max:0},y:{min:0,max:0}};zs(e,t);for(let n=0;n1&&void 0!==arguments[1]&&arguments[1];const n={x:{min:0,max:0},y:{min:0,max:0}};zs(n,t);for(let i=0;i0&&void 0!==arguments[0]&&arguments[0];var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const i=Boolean(this.resumingFrom)||this!==n;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:s,layoutId:o}=this.options;if(this.layout&&(s||o)){if(this.resolvedRelativeTargetAt=Ht.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ji(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),zs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var r,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,l=this.relativeParent.target,$i(r.x,a.x,l.x),$i(r.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):zs(this.target,this.layout.layoutBox),ms(this.target,this.targetDelta)):zs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ji(this.relativeTargetOrigin,this.target,t.target),zs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ro.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!as(this.parent.latestValues)&&!cs(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let i=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===Ht.timestamp&&(i=!1),i)return;const{layout:s,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!o)return;zs(this.layoutCorrected,this.layout.layoutBox);const r=this.treeScale.x,a=this.treeScale.y;!function(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const s=n.length;if(!s)return;let o,r;e.x=e.y=1;for(let a=0;a0&&void 0!==arguments[0])||arguments[0];if(this.options.scheduleRender&&this.options.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.snapshot,s=n?n.latestValues:{},o=(0,i.A)({},this.latestValues),r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const a={x:{min:0,max:0},y:{min:0,max:0}},l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),u=!c||c.members.length<=1,h=Boolean(l&&!u&&!0===this.options.crossfade&&!this.path.some(wo));let d;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var i,c,p,m,f,g;bo(r.x,t.x,n),bo(r.y,t.y,n),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ji(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=n,To(p.x,m.x,f.x,g),To(p.y,m.y,f.y,g),d&&(i=this.relativeTarget,c=d,i.x.min===c.x.min&&i.x.max===c.x.max&&i.y.min===c.y.min&&i.y.max===c.y.max)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),zs(d,this.relativeTarget)),l&&(this.animationValues=o,function(t,e,n,i,s,o){s?(t.opacity=Ke(0,void 0!==n.opacity?n.opacity:1,Us(i)),t.opacityExit=Ke(void 0!==e.opacity?e.opacity:1,0,Ns(i))):o&&(t.opacity=Ke(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let r=0;r{Vs.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const i=F(t)?t:mi(t);return i.start(ri("",i,e,n)),i.animation}(0,1e3,(0,i.A)((0,i.A)({},t),{},{onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:s}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&Mo(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=Gi(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=Gi(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}zs(e,n),As(e,s),Ki(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Qs);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote(){let{needsReset:t,transition:e,preserveFollowOpacity:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const i={};for(let s=0;s{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(mo),this.root.sharedNodes.clear()}}}function lo(t){t.updateLayout()}function co(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;"size"===s?ss((t=>{const i=o?n.measuredBox[t]:n.layoutBox[t],s=Gi(i);i.min=e[t].min,i.max=i.min+s})):Mo(s,n.layoutBox,e)&&ss((i=>{const s=o?n.measuredBox[i]:n.layoutBox[i],r=Gi(e[i]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+r)}));const r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Ki(r,e,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?Ki(a,t.applyTransform(i,!0),n.measuredBox):Ki(a,e,n.layoutBox);const l=!$s(r);let c=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:s,layout:o}=i;if(s&&o){const r={x:{min:0,max:0},y:{min:0,max:0}};Ji(r,n.layoutBox,s.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Ji(a,e,o.layoutBox),_s(r,a)||(c=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function uo(t){ro.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ho(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function po(t){t.clearSnapshot()}function mo(t){t.clearMeasurements()}function fo(t){t.isLayoutDirty=!1}function go(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function vo(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function yo(t){t.resolveTargetDelta()}function xo(t){t.calcProjection()}function Ao(t){t.resetRotation()}function Po(t){t.removeLeadSnapshot()}function bo(t,e,n){t.translate=Ke(e.translate,0,n),t.scale=Ke(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function To(t,e,n,i){t.min=Ke(e.min,n.min,i),t.max=Ke(e.max,n.max,i)}function wo(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const So={duration:.45,ease:[.4,0,.1,1]},Eo=t=>"undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().includes(t),Vo=Eo("applewebkit/")&&!Eo("chrome/")?Math.round:Ot;function Co(t){t.min=Vo(t.min),t.max=Vo(t.max)}function Mo(t,e,n){return"position"===t||"preserve-aspect"===t&&!qi(Js(e),Js(n),.2)}const Do=ao({attachResizeListener:(t,e)=>Gt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ko={current:void 0},Ro=ao({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ko.current){const t=new Do({});t.mount(window),t.setOptions({layoutScroll:!0}),ko.current=t}return ko.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Lo={pan:{Feature:class extends ie{constructor(){super(...arguments),this.removePointerDownListener=Ot}onPointerDown(t){this.session=new Ui(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:bs(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:Es(t),onStart:Es(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&Nt.update((()=>i(t,e)))}}}mount(){this.removePointerDownListener=Kt(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ie{constructor(t){super(t),this.removeGroupControls=Ot,this.removeListeners=Ot,this.controls=new ws(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ot}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Ro,MeasureLayout:Rs}};var jo=n(20454);const Bo=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Fo(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;ye(n<=4,'Max CSS variable fallback depth detected in property "'.concat(t,'". This may indicate a circular fallback dependency.'));const[i,s]=function(t){const e=Bo.exec(t);if(!e)return[,];const[,n,i]=e;return[n,i]}(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const t=o.trim();return li(t)?parseFloat(t):t}return W(s)?Fo(s,e,n+1):s}const Oo=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Io=t=>Oo.has(t),Uo=t=>t===Y||t===et,No=(t,e)=>parseFloat(t.split(", ")[e]),Wo=(t,e)=>(n,i)=>{let{transform:s}=i;if("none"===s||!s)return 0;const o=s.match(/^matrix3d\((.+)\)$/);if(o)return No(o[1],e);{const e=s.match(/^matrix\((.+)\)$/);return e?No(e[1],t):0}},Ho=new Set(["x","y","z"]),zo=L.filter((t=>!Ho.has(t)));const Yo={width:(t,e)=>{let{x:n}=t,{paddingLeft:i="0",paddingRight:s="0"}=e;return n.max-n.min-parseFloat(i)-parseFloat(s)},height:(t,e)=>{let{y:n}=t,{paddingTop:i="0",paddingBottom:s="0"}=e;return n.max-n.min-parseFloat(i)-parseFloat(s)},top:(t,e)=>{let{top:n}=e;return parseFloat(n)},left:(t,e)=>{let{left:n}=e;return parseFloat(n)},bottom:(t,e)=>{let{y:n}=t,{top:i}=e;return parseFloat(i)+(n.max-n.min)},right:(t,e)=>{let{x:n}=t,{left:i}=e;return parseFloat(i)+(n.max-n.min)},x:Wo(4,13),y:Wo(5,14)};Yo.translateX=Yo.x,Yo.translateY=Yo.y;const Xo=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e=(0,i.A)({},e),s=(0,i.A)({},s);const o=Object.keys(e).filter(Io);let r=[],a=!1;const c=[];if(o.forEach((i=>{const o=t.getValue(i);if(!t.hasValue(i))return;let l=n[i],u=vi(l);const h=e[i];let d;if(Rt(h)){const t=h.length,e=null===h[0]?1:0;l=h[e],u=vi(l);for(let n=e;n{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),a=!0),c.push(i),s[i]=void 0!==s[i]?s[i]:e[i],o.jump(h))})),c.length){const n=c.indexOf("height")>=0?window.pageYOffset:null,i=((t,e,n)=>{const i=e.measureViewportBox(),s=e.current,o=getComputedStyle(s),{display:r}=o,a={};"none"===r&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=Yo[t](i,o)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const i=e.getValue(n);i&&i.jump(a[n]),t[n]=Yo[n](l,o)})),t})(e,t,c);return r.length&&r.forEach((e=>{let[n,i]=e;t.getValue(n).set(i)})),t.render(),l&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:s}}return{target:e,transitionEnd:s}};function Go(t,e,n,i){return(t=>Object.keys(t).some(Io))(e)?Xo(t,e,n,i):{target:e,transitionEnd:i}}const qo=(t,e,n,s)=>{const o=function(t,e,n){let s=Object.assign({},((0,jo.A)(e),e));const o=t.current;if(!(o instanceof Element))return{target:s,transitionEnd:n};n&&(n=(0,i.A)({},n)),t.values.forEach((t=>{const e=t.get();if(!W(e))return;const n=Fo(e,o);n&&t.set(n)}));for(const i in s){const t=s[i];if(!W(t))continue;const e=Fo(t,o);e&&(s[i]=e,n||(n={}),void 0===n[i]&&(n[i]=t))}return{target:s,transitionEnd:n}}(t,e,s);return Go(t,e=o.target,n,s=o.transitionEnd)},Zo={current:null},Ko={current:!1};const $o=new WeakMap,_o=["willChange"],Jo=["children"],Qo=Object.keys(T),tr=Qo.length,er=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],nr=v.length;class ir{constructor(t){let{parent:e,props:n,presenceContext:s,reducedMotionConfig:o,visualState:r}=t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Nt.render(this.render,!1,!0);const{latestValues:l,renderState:c}=r;this.latestValues=l,this.baseTarget=(0,i.A)({},l),this.initialValues=n.initial?(0,i.A)({},l):{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=y(n),this.isVariantNode=x(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const u=this.scrapeMotionValuesFromProps(n,{}),{willChange:h}=u,d=(0,gt.A)(u,_o);for(const i in d){const t=d[i];void 0!==l[i]&&F(t)&&(t.set(l[i],!1),ai(h)&&h.add(i))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,$o.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),Ko.current||function(){if(Ko.current=!0,l)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Zo.current=t.matches;t.addListener(e),e()}else Zo.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Zo.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){$o.delete(this.current),this.projection&&this.projection.unmount(),Wt(this.notifyUpdate),Wt(this.render),this.valueSubscriptions.forEach((t=>t())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){const n=j.has(t),i=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&Nt.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),s=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{i(),s()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(t,e,n,i){let s,o,{children:r}=t,a=(0,gt.A)(t,Jo);for(let l=0;lthis.scheduleRender(),animationType:"string"===typeof e?e:"both",initialPromotionConfig:i,layoutScroll:r,layoutRoot:l})}return o}updateFeatures(){for(const t in this.features){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;n0&&void 0!==arguments[0]&&arguments[0])return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const t={};for(let e=0;ee.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=mi(e,{owner:this}),this.addValue(t,n)),n}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,i="string"===typeof n||"object"===typeof n?null===(e=kt(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==i)return i;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||F(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new hi),this.events[t].add(e)}notify(t){if(this.events[t]){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i!t.hasValue(e))),r=o.length;var a;if(r)for(let l=0;l{this.current&&(this.current.textContent="".concat(t))})))}renderInstance(t,e,n,i){Et(t,e,n,i)}}class ar extends or{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(j.has(e)){const t=Qn(e);return t&&t.default||0}return e=Vt.has(e)?e:h(e),t.getAttribute(e)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(t,e){return Dt(t,e)}build(t,e,n,i){Pt(t,e,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,n,i){Ct(t,e,0,i)}mount(t){this.isSVGTag=Tt(t.tagName),super.mount(t)}}const lr=(t,e)=>k(t)?new ar(e,{enableHardwareAcceleration:!1}):new rr(e,{enableHardwareAcceleration:!0}),cr={layout:{ProjectionNode:Ro,MeasureLayout:Rs}},ur=(0,i.A)((0,i.A)((0,i.A)((0,i.A)({},Oi),me),Lo),cr),hr=M(((t,e)=>function(t,e,n,s){let{forwardMotionProps:o=!1}=e;const r=k(t)?Yt:Xt;return(0,i.A)((0,i.A)({},r),{},{preloadedFeatures:n,useRender:St(o),createVisualElement:s,Component:t})}(t,e,ur,lr)))}}]); \ No newline at end of file diff --git a/build/static/js/2142.379ba3cc.chunk.js b/build/static/js/2142.379ba3cc.chunk.js deleted file mode 100644 index 11c2510..0000000 --- a/build/static/js/2142.379ba3cc.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[2142],{12897:(e,t,r)=>{var n=r(43693);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}e.exports=function(e){for(var t=1;t{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(14857),s=r(47223),o=r(93230),i=r(16491),c=r(82053),a=r(60899),u=r(29925),l=r(10226),m=r(62419);const d=r.p+"static/media/coming-soon.69b99428ab9e22eca0ba.png";var p=r(50027),x=r(44414);const f=e=>{let{count:t,label:r}=e;const a=(0,n.A)(),u=(0,s.A)(a.breakpoints.down("sm"));return(0,x.jsx)(p.A,{content:!1,sx:{width:{xs:60,sm:80}},children:(0,x.jsxs)(o.A,{justifyContent:"center",alignItems:"center",children:[(0,x.jsx)(i.A,{sx:{py:1.75},children:(0,x.jsx)(c.A,{variant:u?"h4":"h2",children:t})}),(0,x.jsx)(i.A,{sx:{p:.5,bgcolor:"secondary.lighter",width:"100%"},children:(0,x.jsx)(c.A,{align:"center",variant:"subtitle2",children:r})})]})})};const h=function(){const e=new Date;e.setSeconds(e.getSeconds()+172800-55800);const{seconds:t,minutes:r,hours:n,days:s}=(0,m.useTimer)({expiryTimestamp:e});return(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)(a.Ay,{container:!0,spacing:4,direction:"column",alignItems:"center",justifyContent:"center",sx:{minHeight:"100vh",py:2},children:[(0,x.jsx)(a.Ay,{item:!0,xs:12,children:(0,x.jsx)(i.A,{sx:{height:{xs:310,sm:420},width:{xs:360,sm:"auto"}},children:(0,x.jsx)("img",{src:d,alt:"mantis",style:{height:"100%",width:"100%"}})})}),(0,x.jsx)(a.Ay,{item:!0,xs:12,children:(0,x.jsxs)(o.A,{spacing:1,justifyContent:"center",alignItems:"center",sx:{mt:-2},children:[(0,x.jsx)(c.A,{align:"center",variant:"h1",children:"Coming Soon"}),(0,x.jsx)(c.A,{align:"center",color:"textSecondary",children:"Something new is on its way"})]})}),(0,x.jsx)(a.Ay,{item:!0,xs:12,sx:{width:{xs:"95%",md:"40%"}},children:(0,x.jsxs)(o.A,{direction:"row",alignItems:"center",justifyContent:"center",spacing:{xs:1,sm:2},children:[(0,x.jsx)(f,{count:s,label:"day"}),(0,x.jsx)(c.A,{variant:"h1",children:" : "}),(0,x.jsx)(f,{count:n,label:"hour"}),(0,x.jsx)(c.A,{variant:"h1",children:" : "}),(0,x.jsx)(f,{count:r,label:"min"}),(0,x.jsx)(c.A,{variant:"h1",children:" : "}),(0,x.jsx)(f,{count:t,label:"sec"})]})}),(0,x.jsx)(a.Ay,{item:!0,xs:12,sx:{width:{xs:380,md:"40%",lg:"30%"}},children:(0,x.jsxs)(o.A,{spacing:2,sx:{mt:2},children:[(0,x.jsx)(c.A,{align:"center",color:"textSecondary",children:"Be the first to be notified when Mantis launches."}),(0,x.jsxs)(o.A,{direction:"row",spacing:1,children:[(0,x.jsx)(u.A,{fullWidth:!0,placeholder:"Email Address"}),(0,x.jsx)(l.A,{variant:"contained",sx:{width:"50%"},children:"Notify Me"})]})]})})]})})}},43693:(e,t,r)=>{var n=r(77736);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},62419:function(e,t,r){var n,s=r(12897).default;"undefined"!=typeof self&&self,e.exports=(n=r(9950),(()=>{"use strict";var e={155:e=>{e.exports=n}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};r.r(o),r.d(o,{default:()=>f,useStopwatch:()=>p,useTime:()=>x,useTimer:()=>d});var i=r(155);class c{static expiryTimestamp(e){const t=new Date(e).getTime()>0;return t||console.warn("react-timer-hook: { useTimer } Invalid expiryTimestamp settings",e),t}static onExpire(e){const t=e&&"function"==typeof e;return e&&!t&&console.warn("react-timer-hook: { useTimer } Invalid onExpire settings function",e),t}}class a{static getTimeFromSeconds(e){const t=Math.ceil(e),r=Math.floor(t/86400),n=Math.floor(t%86400/3600),s=Math.floor(t%3600/60);return{totalSeconds:t,seconds:Math.floor(t%60),minutes:s,hours:n,days:r}}static getSecondsFromExpiry(e,t){const r=e-(new Date).getTime();if(r>0){const e=r/1e3;return t?Math.round(e):e}return 0}static getSecondsFromPrevTime(e,t){const r=(new Date).getTime()-e;if(r>0){const e=r/1e3;return t?Math.round(e):e}return 0}static getSecondsFromTimeNow(){const e=new Date;return e.getTime()/1e3-60*e.getTimezoneOffset()}static getFormattedTimeFromSeconds(e,t){const{seconds:r,minutes:n,hours:s}=a.getTimeFromSeconds(e);let o="",i=s;return"12-hour"===t&&(o=s>=12?"pm":"am",i=s%12),{seconds:r,minutes:n,hours:i,ampm:o}}}function u(e,t){const r=(0,i.useRef)();(0,i.useEffect)((()=>{r.current=e})),(0,i.useEffect)((()=>{if(!t)return()=>{};const e=setInterval((()=>{r.current&&r.current()}),t);return()=>clearInterval(e)}),[t])}const l=1e3;function m(e){if(!c.expiryTimestamp(e))return null;const t=a.getSecondsFromExpiry(e),r=Math.floor(1e3*(t-Math.floor(t)));return r>0?r:l}function d(){let{expiryTimestamp:e,onExpire:t,autoStart:r=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[n,o]=(0,i.useState)(e),[d,p]=(0,i.useState)(a.getSecondsFromExpiry(n)),[x,f]=(0,i.useState)(r),[h,g]=(0,i.useState)(r),[y,b]=(0,i.useState)(m(n)),S=(0,i.useCallback)((()=>{c.onExpire(t)&&t(),f(!1),b(null)}),[t]),j=(0,i.useCallback)((()=>{f(!1)}),[]),v=(0,i.useCallback)((function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];b(m(e)),g(t),f(t),o(e),p(a.getSecondsFromExpiry(e))}),[]),T=(0,i.useCallback)((()=>{const e=new Date;e.setMilliseconds(e.getMilliseconds()+1e3*d),v(e)}),[d,v]),w=(0,i.useCallback)((()=>{h?(p(a.getSecondsFromExpiry(n)),f(!0)):T()}),[n,h,T]);return u((()=>{y!==l&&b(l);const e=a.getSecondsFromExpiry(n);p(e),e<=0&&S()}),x?y:null),s(s({},a.getTimeFromSeconds(d)),{},{start:w,pause:j,resume:T,restart:v,isRunning:x})}function p(){let{autoStart:e,offsetTimestamp:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[r,n]=(0,i.useState)(a.getSecondsFromExpiry(t,!0)||0),[o,c]=(0,i.useState)(new Date),[l,m]=(0,i.useState)(r+a.getSecondsFromPrevTime(o||0,!0)),[d,p]=(0,i.useState)(e);u((()=>{m(r+a.getSecondsFromPrevTime(o,!0))}),d?1e3:null);const x=(0,i.useCallback)((()=>{const e=new Date;c(e),p(!0),m(r+a.getSecondsFromPrevTime(e,!0))}),[r]),f=(0,i.useCallback)((()=>{n(l),p(!1)}),[l]),h=(0,i.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=a.getSecondsFromExpiry(e,!0)||0,s=new Date;c(s),n(r),p(t),m(r+a.getSecondsFromPrevTime(s,!0))}),[]);return s(s({},a.getTimeFromSeconds(l)),{},{start:x,pause:f,reset:h,isRunning:d})}function x(){let{format:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[t,r]=(0,i.useState)(a.getSecondsFromTimeNow());return u((()=>{r(a.getSecondsFromTimeNow())}),1e3),s({},a.getFormattedTimeFromSeconds(t,e))}function f(e){if((0,i.useEffect)((()=>{console.warn("react-timer-hook: default export useTimer is deprecated, use named exports { useTimer, useStopwatch, useTime } instead")}),[]),e.expiryTimestamp){const t=d(e);return s(s({},t),{},{startTimer:t.start,stopTimer:t.pause,resetTimer:()=>{}})}const t=p(e);return s(s({},t),{},{startTimer:t.start,stopTimer:t.pause,resetTimer:t.reset})}return o})())},73738:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},77736:(e,t,r)=>{var n=r(73738).default,s=r(89045);e.exports=function(e){var t=s(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},89045:(e,t,r)=>{var n=r(73738).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=n(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}}]); \ No newline at end of file diff --git a/build/static/js/2142.b22bf308.chunk.js b/build/static/js/2142.b22bf308.chunk.js new file mode 100644 index 0000000..677f947 --- /dev/null +++ b/build/static/js/2142.b22bf308.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[2142],{35791:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var s=n(69039),r=n(76264),o=n(71392),i=n(48738),c=n(2866),a=n(1939),l=n(86270),m=n(80911);const u=n.p+"static/media/coming-soon.69b99428ab9e22eca0ba.png";var d=n(59008),h=n(65908);const{useTimer:x}=n(41549),p=e=>{let{count:t,label:n}=e;const a=(0,s.A)(),l=(0,r.A)(a.breakpoints.down("sm"));return(0,h.jsx)(d.A,{content:!1,sx:{width:{xs:60,sm:80}},children:(0,h.jsxs)(o.A,{justifyContent:"center",alignItems:"center",children:[(0,h.jsx)(i.A,{sx:{py:1.75},children:(0,h.jsx)(c.A,{variant:l?"h4":"h2",children:t})}),(0,h.jsx)(i.A,{sx:{p:.5,bgcolor:"secondary.lighter",width:"100%"},children:(0,h.jsx)(c.A,{align:"center",variant:"subtitle2",children:n})})]})})};const g=function(){const e=new Date;e.setSeconds(e.getSeconds()+172800-55800);const{seconds:t,minutes:n,hours:s,days:r}=x({expiryTimestamp:e});return(0,h.jsx)(h.Fragment,{children:(0,h.jsxs)(a.Ay,{container:!0,spacing:4,direction:"column",alignItems:"center",justifyContent:"center",sx:{minHeight:"100vh",py:2},children:[(0,h.jsx)(a.Ay,{item:!0,xs:12,children:(0,h.jsx)(i.A,{sx:{height:{xs:310,sm:420},width:{xs:360,sm:"auto"}},children:(0,h.jsx)("img",{src:u,alt:"mantis",style:{height:"100%",width:"100%"}})})}),(0,h.jsx)(a.Ay,{item:!0,xs:12,children:(0,h.jsxs)(o.A,{spacing:1,justifyContent:"center",alignItems:"center",sx:{mt:-2},children:[(0,h.jsx)(c.A,{align:"center",variant:"h1",children:"Coming Soon"}),(0,h.jsx)(c.A,{align:"center",color:"textSecondary",children:"Something new is on its way"})]})}),(0,h.jsx)(a.Ay,{item:!0,xs:12,sx:{width:{xs:"95%",md:"40%"}},children:(0,h.jsxs)(o.A,{direction:"row",alignItems:"center",justifyContent:"center",spacing:{xs:1,sm:2},children:[(0,h.jsx)(p,{count:r,label:"day"}),(0,h.jsx)(c.A,{variant:"h1",children:" : "}),(0,h.jsx)(p,{count:s,label:"hour"}),(0,h.jsx)(c.A,{variant:"h1",children:" : "}),(0,h.jsx)(p,{count:n,label:"min"}),(0,h.jsx)(c.A,{variant:"h1",children:" : "}),(0,h.jsx)(p,{count:t,label:"sec"})]})}),(0,h.jsx)(a.Ay,{item:!0,xs:12,sx:{width:{xs:380,md:"40%",lg:"30%"}},children:(0,h.jsxs)(o.A,{spacing:2,sx:{mt:2},children:[(0,h.jsx)(c.A,{align:"center",color:"textSecondary",children:"Be the first to be notified when Mantis launches."}),(0,h.jsxs)(o.A,{direction:"row",spacing:1,children:[(0,h.jsx)(l.A,{fullWidth:!0,placeholder:"Email Address"}),(0,h.jsx)(m.A,{variant:"contained",sx:{width:"50%"},children:"Notify Me"})]})]})})]})})}},41549:(e,t,n)=>{n.r(t);var s,r,o=n(22555);e=n.hmd(e),s="undefined"!=typeof self?self:void 0,r=e=>(()=>{var t={155:t=>{t.exports=e}},n={};function s(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,s),o.exports}s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};s.r(r),s.d(r,{default:()=>p,useStopwatch:()=>h,useTime:()=>x,useTimer:()=>d});var i=s(155);class c{static expiryTimestamp(e){const t=new Date(e).getTime()>0;return t||console.warn("react-timer-hook: { useTimer } Invalid expiryTimestamp settings",e),t}static onExpire(e){const t=e&&"function"==typeof e;return e&&!t&&console.warn("react-timer-hook: { useTimer } Invalid onExpire settings function",e),t}}class a{static getTimeFromSeconds(e){const t=Math.ceil(e),n=Math.floor(t/86400),s=Math.floor(t%86400/3600),r=Math.floor(t%3600/60);return{totalSeconds:t,seconds:Math.floor(t%60),minutes:r,hours:s,days:n}}static getSecondsFromExpiry(e,t){const n=e-(new Date).getTime();if(n>0){const e=n/1e3;return t?Math.round(e):e}return 0}static getSecondsFromPrevTime(e,t){const n=(new Date).getTime()-e;if(n>0){const e=n/1e3;return t?Math.round(e):e}return 0}static getSecondsFromTimeNow(){const e=new Date;return e.getTime()/1e3-60*e.getTimezoneOffset()}static getFormattedTimeFromSeconds(e,t){const{seconds:n,minutes:s,hours:r}=a.getTimeFromSeconds(e);let o="",i=r;return"12-hour"===t&&(o=r>=12?"pm":"am",i=r%12),{seconds:n,minutes:s,hours:i,ampm:o}}}function l(e,t){const n=(0,i.useRef)();(0,i.useEffect)((()=>{n.current=e})),(0,i.useEffect)((()=>{if(!t)return()=>{};const e=setInterval((()=>{n.current&&n.current()}),t);return()=>clearInterval(e)}),[t])}const m=1e3;function u(e){if(!c.expiryTimestamp(e))return null;const t=a.getSecondsFromExpiry(e),n=Math.floor(1e3*(t-Math.floor(t)));return n>0?n:m}function d(){let{expiryTimestamp:e,onExpire:t,autoStart:n=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[s,r]=(0,i.useState)(e),[d,h]=(0,i.useState)(a.getSecondsFromExpiry(s)),[x,p]=(0,i.useState)(n),[g,f]=(0,i.useState)(n),[y,S]=(0,i.useState)(u(s)),T=(0,i.useCallback)((()=>{c.onExpire(t)&&t(),p(!1),S(null)}),[t]),j=(0,i.useCallback)((()=>{p(!1)}),[]),v=(0,i.useCallback)((function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];S(u(e)),f(t),p(t),r(e),h(a.getSecondsFromExpiry(e))}),[]),A=(0,i.useCallback)((()=>{const e=new Date;e.setMilliseconds(e.getMilliseconds()+1e3*d),v(e)}),[d,v]),w=(0,i.useCallback)((()=>{g?(h(a.getSecondsFromExpiry(s)),p(!0)):A()}),[s,g,A]);return l((()=>{y!==m&&S(m);const e=a.getSecondsFromExpiry(s);h(e),e<=0&&T()}),x?y:null),(0,o.A)((0,o.A)({},a.getTimeFromSeconds(d)),{},{start:w,pause:j,resume:A,restart:v,isRunning:x})}function h(){let{autoStart:e,offsetTimestamp:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[n,s]=(0,i.useState)(a.getSecondsFromExpiry(t,!0)||0),[r,c]=(0,i.useState)(new Date),[m,u]=(0,i.useState)(n+a.getSecondsFromPrevTime(r||0,!0)),[d,h]=(0,i.useState)(e);l((()=>{u(n+a.getSecondsFromPrevTime(r,!0))}),d?1e3:null);const x=(0,i.useCallback)((()=>{const e=new Date;c(e),h(!0),u(n+a.getSecondsFromPrevTime(e,!0))}),[n]),p=(0,i.useCallback)((()=>{s(m),h(!1)}),[m]),g=(0,i.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=a.getSecondsFromExpiry(e,!0)||0,r=new Date;c(r),s(n),h(t),u(n+a.getSecondsFromPrevTime(r,!0))}),[]);return(0,o.A)((0,o.A)({},a.getTimeFromSeconds(m)),{},{start:x,pause:p,reset:g,isRunning:d})}function x(){let{format:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[t,n]=(0,i.useState)(a.getSecondsFromTimeNow());return l((()=>{n(a.getSecondsFromTimeNow())}),1e3),(0,o.A)({},a.getFormattedTimeFromSeconds(t,e))}function p(e){if((0,i.useEffect)((()=>{console.warn("react-timer-hook: default export useTimer is deprecated, use named exports { useTimer, useStopwatch, useTime } instead")}),[]),e.expiryTimestamp){const t=d(e);return(0,o.A)((0,o.A)({},t),{},{startTimer:t.start,stopTimer:t.pause,resetTimer:()=>{}})}const t=h(e);return(0,o.A)((0,o.A)({},t),{},{startTimer:t.start,stopTimer:t.pause,resetTimer:t.reset})}return r})(),"object"==typeof exports?e.exports=r(n(85672)):"function"==typeof define&&n.amdO?define(["react"],r):"object"==typeof exports?exports["react-timer-hook"]=r(n(85672)):s["react-timer-hook"]=r(s.react)}}]); \ No newline at end of file diff --git a/build/static/js/23.4be71fed.chunk.js b/build/static/js/23.3a22b785.chunk.js similarity index 73% rename from build/static/js/23.4be71fed.chunk.js rename to build/static/js/23.3a22b785.chunk.js index 3acc794..6372870 100644 --- a/build/static/js/23.4be71fed.chunk.js +++ b/build/static/js/23.3a22b785.chunk.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[23],{62217:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAAA+CAYAAABzwahEAAAPnUlEQVR4AdVae3AU9R3/7d4jdyGQQKAhECBAJBSmEAtFSQUjqPgAHGlhRm0lDkWY6Tg+O9qiErR26h8WR8ZWqTMN1ur4qMpDrTyjtDwDJloeCYiBvAgkaZ53l7vb3X4/v9vfZS/Zu9uFwLSfmb3d293f7u/z+z5/399K7CphdW5JrupgBZosZ0ialmu8pklSjUOTamRJbvvjqTUV7CpAYlcIj+SWZHQ55WJZlm7UNK2IXpRhpZ3GWJskSWXUZrPD4Sp77eSva9gVwIATXz35+SJNYWs1phWxAYDEpDKVaZv+fOrZUjaAGDDiK695rpgetpYOc82upw72sMycdJbz/SzmHeKl/ynRay31bbS1s7rjTczXGYj3ihrShnUDNQCXTXzlNS8UyExdbybhSdeNYwXz81nBzflE2pKms7oT51ntiSa276NKVn3wrNktNcGQelNpTUkNuwxcFvFV+S88rKnKy8ZzkOz84uvYvOJZ/PhyAE3Y/+HXbN+HFVwjjJAlR8lr1WueY9wt2MclEYfj8rnkj+nwRnHOLuGWhnbmpfuMKh/3Xn0Atm74IuY8OcGPFYk99kbVM98xm7BFnDyttHLyb3MlRdsjSWycOA+VLv79YpY5Ork6V5efY59s/JJVHznH/+dMymLz7v0Rm71oWtK2GIDSJ7ew6kMxJlCjytI8u+Qddm4+93bPBIfqiiG96KG5RPouljokuZT3b/2avf7EB6ylsZ1dM2MsG5OfxU7RAFSWVbMAObUphRMTtsc7CpdMh6c3kqe8gN117Yh5W4627GljFmGZ+C/ynx/flzSkDPW2Aqj2+lV/Y5mj0tljG3/GFhQXspkLpnBJVx85yyq/OGWJPAANgzkd2/utOMXJzxp965vlF3YFrPRHZtYgSZq6vi/p2TT6VrF+1Vt8/yiRhnoLiIHAftc7h0kDzlp6HgYcfTAgVwmEPmIWzTeZxPEQaeWkkhJJk1eJk8vWLGBz75nBrAIqfmDrN2zhqjlsetGkftddKU6WQ2qPe6AZVuwdGPP9kWw4+ZWKnVXiVO6M4UXtR1rKDiZrm4g4J70871cTnMzzd3ESNn3bgz9mdgC7hmoufeKWuB4/c1QGV3nYfP7Msfy/FYB8rM1LC6YNm72lonXv+UTtEqr60qVLJTcbvEv8h20tfOhGZgeQtpBiZnZ6wnuhEUDFnlPMDhaSMCbNilohc0kp61mEW1y1j0u8hLR78Ff5xX3t2i5AHLjegvqOIdtHXK/8oorZRfGLiw3aJM1dkVeynA5kCsGm98cjLhNxh4O5nxEnoOJW4rQRkDRUF3adTNoAEprRRB7tfJ09zA7Qt3mGCCMz+dmioiLKcSRTjvGISw/kPbNcSDtzdLotDy6A+AyYObR4KCjK53ur3t2I+ct7s0b0Pfds4U04RuLV914z4rjJ4ZSc94sTSBrsShvYv62S76frZKwAYQ2orWpidoEExyh1tzPl6SlTpjhJ6v3u7Utcgm0vHf/wePKUc8TJS5E21LWu6gKbRBmalXwcgHp70yISg8QR3oTWWAWk3gtpbp6/cCiLRK8Y9k7jHzgCGh3n8om/ibpueHKr0vZT5lVZFvHItVWRaALVQ4pqxcYfL3opeoxcvlr3D4BVc4HU4eFFeMt0ZsHJvUzcFKPkY4gvW7YMGiC7ZfcicW723dalXUsS3lSyNeZcBUmsmaS/5p0Vlp4BVccADsvOYP6uAM/yKsqq7PkJmv8L4k7mmEu7DcRNIfIqkedu3qjq0pkzZ/DfITE5quZjp2Qxu0Dnha1iX1fdxD55fW/CNjANYN49s7jKI5O788E5kfY0oHZQcEuvT5GY8wbaye+//36MqsfY+JEjR6QlY1cX0CHvNdQmZ/JIZhUtjW3RzkNqsG90Hti2cS8fgGSoqz7Pp6loi/uH6wNnJ7zBNA0ZYvrdY1aMZ6hdGHQ9RuL473KmDBUnUB+zAyE1dP6me2fxpMUYljat3Zb0GfvJodWRRz9Aic/utw+Ts/NG1L/L0qQrCoRggVTXUGRPMULmNo44h0CflZXlcGiuXLPGdoDOo7Pw0EYpC5W/c9Wcfm3EoAGiSAF4h0QiQmtDmyUHKZAzZSSrPam/W5MgzJgUlo+CrgFSU1OT5GTOseKi7UytsT2GiJlqW1X5aB+IrJfCYXNDO7MDYwh1yA4kYvKMGTNkkcxw4ghjdJLfQ9ntJRcgWxqsFUCsqDzg1e0U5FtsEvfGVIQ4J9nv90fNXEhcgmPLyEAh49KJW4WZlzezYSE172BvjDbZhc5JPn78eH/nlpubK7e1tcWQtjtRaDXpnLHaYkRflTdbSEhN65V4a4Plclo/IC/TDyV9ixCnNJWFw2EpPT2dBcKBBtHA3+FndmCmjsueuJnIf8/0/mQq79UlDkdpV+LGOnxQ7aljOmFwBTjxY8eOSXV1day9vV1SlFCHaFB3wroT8sdZ+kE4QuXFDMkSG7+ucZmUxdmdqrbU9WpIINQuiPO5CM5x4pTVYMdTucbgt8ejjeutj3K8Tg0jaU2aMY4nJWYQKm+mLT7d7kUW2GrDwRmFFpD8Xax3xSUmZcUfPhL7L2yvp9XJTv7ijgAv4ltBPK8rHNRCPf00QzKVRzs8p7Y6YRktCqy99foMrWN73bsnWJ/ZmTGbUVlkADRFDUarlIYKZkKYeWUjUYSm+0sWmraFxHdTaTkRhtnI2bHwKBBUA3iwSv6LcxPnjV4dI6J5vV61W+04JM5X7LBG3Mwr9820oPLxZln+zsQpac6kkdG5QDLs+7AyetwRat0FTvqsLEpeJDBaTU2NQocqBXl1f9PnH4uGmN5ZcSpmqu41KSUvffwWy4UJIzCIxlQ2bj/ILxnX1mq6Tx0EJwrVKlVjNFF8NKasbMSIEeqgQYOUWl91W0gNlIvGu0oPJH2h31Ti/VNeqP8dJrm6KQnDYIp5erKwZpR2j9JTfrRldy1x4mZMCYwWk7mxiPjVixcvqt3d3WpKSopS6z/9J/GA3ZsOJZW6mRp640h2Pk1bsWhoBzAToLo8fhES0t4fo+YXoblhWZbDtOcaLa5FbZziGyc/ZMgQpaenJ7yz4b1DqhpuxDV492RSNxuYeF4cWF6yiNmB8OyJ1B3SFlFI1ZSGj2o3grjS2dnJSescYyswa9eu5cQ7OjpwE0YodLGn/jVxHVJPFNfNc21PQiKiSJEIxgGFZ49XfETfthk+HGiO9B08wsOHD8deNd4fJa7rPi6G09LSeINPm97cHFT9R3gHSOqlT25m8WCWXCRzYvMpqUmkFYBxQOHZYedmNXdj36Cp6LvOJdTc3KzS4oKqC5cjSlz3dvhRurq6Qh6PJ0SDETrefvQP4h54y76fYwhg+ffRjfeRCi/kkrx+0Q9oVSRx2SpRbI8S7+iVuAiP+KrCiK0bvozx5Idat68KBoMhCmNBcKFQrYC4KDQC0SqrfhIS56oeCASC5ORCh5o/Pz7aO279CE/Oo7hvG70EBYrCPrX26CzM+uoxh0hnUWYyJd4VmSihWvvJxkheX2uY1e0qPRij4q09TW98/Z8D59B3CmNBUnMFoVpMTgT6LigI44eqB2kwMNxBchJvk8ofFTdtempLTNi4XCCdjWcWqLwgrH3w0g4eCaBVq1/6Kb+GPrz3u+3Re31K95cfnHv1dfSZPDn6HoKq06qvqvVZPey3Po6RKSsr49cwVWWRwXE2+M7tyxs87VZZktNwsZJSWVRhJxTksMsFPgyY85MZbGrhBJqDe5kzxRGd20MjOlq6qNqawSOBWDcHaQhAQCG7Pty66+l29WKz0+n0k8ZCVQITJ04M7dy5U1m3bl0M8XjVFgyIizYP2ckgUpnBdJw6OeOHuYWZC191ys6o8WJtepHNNXMrgDeHE0MuALLG9Bc2bVTvsBo+v6/ls1+ebDv8Ham4j8IxZmPdtMEzhljvPCSKeMT5wmF2dra7sbExlY4H0QZJe4n82L7ksWRT/OJdl1yVtQqELHhvoyMjSZ//V4T0WbfbHSCnxklTxdhPxdMgaXjY6NSMBPtBX0ODikPqbto4eXpwKj0Y5MfMHHbzI6mOtJhADOkXLikY8AGA9JFA7S49FDMZCij+ih31bz3V2FPbqpOGlLH5aION94vfAnELi3qtHddBHJ7Hy3Sp0+YhO3Ivzl65Yrgn+wFjO3j82UumDcgAxCMMNPnPbdhc98a7LpcLThikYdOQNrdtcmhhKrD0U3GBZBVVieKfg5wdJJ+Smprq9fl8kH4qvdATCoVc+ekFo28YvvgVh0H1BWACWGLGBzpjLK7KoGSEGgC2Pl8wckDK/247+MrR1t2YL8N+IVmfThh7YdcKS/Cda1LiqFHRJufk5LioLuch8h6dvJfIpxB5aITzjtE/v32kZ/wDTpMBAJC+YkkKWmD8ktlHCQqKmrUnL7BWIh3vs23YcmPgu798Wv/Xz0CM3h2mdwd0wnwjn9QzatSoEJXKw1pEZeMTYxagq73w9FB7Suw8XlVVvaRi+A/yuO64bfR9t2eljL09xeEtYAOAQNhfcabrm9J/XtyGPIKn1Lp6B3X19tN6gJ/m29ymSUgKUlMzh2aEncUDmdRe1tXeaPce/dilbxgAOT99evbEQdOuHebJvsHrSC2gpec0Ky/RmNrlV3wVneHWrw427/hHc7C+k/IJEFZ1KSOjDFDIEtLmSRb1LUR94/dZeY+tVROoPDaQo1TQTS9PoSlfik4cA0B9c7mpc1z6GAByghISoZkjivI8MuVRjqEjU52DRuossXir+UJdFHcCXfW+b09VtR9tMnReoefxNJqeCbsF6R7KygL03B56N8/OWK/3tkTaNnHWa/M8zrNIru8iOik0GeADQGHFTabh0q85qL/8Kwu0xSBgTwPB6BiLGMZn83SZzmuQMAhTWz5voEeGoNcgTtWUHiqW8OO8vLww+R5lz5494UT2PBDEY9rSQqOTHAmP91TFdNGChJsyPTdlelztqcMu6i+XvNiIkBQRHlcPHGv6sUbHIKzo56J1AZBkvR5cSFhUVBR2CbD69bIpysvLecdoAHqINOytm0ijJt9J3r+TVBLHXfrGkwsiJRIMLF1i76MBEue7qE0XqTPadYiNnFen3j6Ad5HGYSDwTcslkQYGamVULLrLpH7y6dOnuY1TGctFFR0hcYfhvujinQ6eaNBgYc6sEHm+0WAKqatEWJkwYYI6depUjYhbtuWrBW775GGd1FEXFQA8FFsR8+HRMdFBKocgPrTvRkgnh4l70ijPxtwAzpLnCLpDvSztvFqQ9C8PuAPEINDeTdpgjADYjOFQhESn3s6hP+OKr9dfSUhCaiIcYjNIMur52f850f95/BfoYlARf1CQvwAAAABJRU5ErkJggg=="},90376:(e,t,l)=>{l.d(t,{Ay:()=>A,pK:()=>h});var a=l(89379),d=(l(9950),l(59254)),i=l(83274),n=l(10226),c=l(46639),r=l(93230),o=l(16243),p=l(46411),s=l(98114),m=l(44414);(0,d.Ay)("div")((e=>{let{theme:t,x:l,y:a}=e;return{color:t.palette.text.secondary,position:"fixed",pointerEvents:"none",left:12,top:24,transform:"translate(".concat(l,"px, ").concat(a,"px)"),opacity:.6}}));const h=e=>{let{data:t,filename:l,headers:d,label:r,style:o,btnLoading:h,onClick:A}=e;return(0,m.jsx)(p.CSVLink,{data:t,filename:l,headers:d,children:(0,m.jsx)(i.A,{title:"CSV Export",children:(0,m.jsx)(n.A,{startIcon:!h&&(0,m.jsx)(s.A,{}),variant:h?"outlined":"contained",sx:(0,a.A)({},o),disabled:h,onClick:e=>{null===A||void 0===A||A(e)},children:h?(0,m.jsx)(c.A,{size:20,thickness:5}):r||"Download"})})})},A=h;(0,d.Ay)(r.A)((e=>{let{theme:t}=e;return{height:"400px","& .ant-empty-img-1":{fill:t.palette.mode===o.lG.DARK?t.palette.secondary[200]:t.palette.secondary[400]},"& .ant-empty-img-2":{fill:t.palette.secondary.light},"& .ant-empty-img-3":{fill:t.palette.mode===o.lG.DARK?t.palette.secondary.A200:t.palette.secondary[200]},"& .ant-empty-img-4":{fill:t.palette.mode===o.lG.DARK?t.palette.secondary.A300:t.palette.secondary.A100},"& .ant-empty-img-5":{fillOpacity:t.palette.mode===o.lG.DARK?"0.09":"0.95",fill:t.palette.mode===o.lG.DARK?t.palette.secondary.darker:t.palette.secondary.light}}}))},94826:(e,t,l)=>{l.d(t,{A:()=>o});var a=l(59254),d=l(46639),i=l(62217),n=l(44414);const c=(0,a.Ay)("div")((()=>({position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2001,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0.7)",padding:"20px",borderRadius:"10px"}))),r=(0,a.Ay)("div")((()=>({position:"absolute",width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center"}))),o=()=>(0,n.jsxs)(c,{children:[(0,n.jsx)(d.A,{color:"primary",size:80,thickness:6}),(0,n.jsx)(r,{children:(0,n.jsx)("img",{src:i,alt:"Logo",style:{width:"100%",height:"100%"}})})]})}}]); \ No newline at end of file +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[23],{62217:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAAA+CAYAAABzwahEAAAPnUlEQVR4AdVae3AU9R3/7d4jdyGQQKAhECBAJBSmEAtFSQUjqPgAHGlhRm0lDkWY6Tg+O9qiErR26h8WR8ZWqTMN1ur4qMpDrTyjtDwDJloeCYiBvAgkaZ53l7vb3X4/v9vfZS/Zu9uFwLSfmb3d293f7u/z+z5/399K7CphdW5JrupgBZosZ0ialmu8pklSjUOTamRJbvvjqTUV7CpAYlcIj+SWZHQ55WJZlm7UNK2IXpRhpZ3GWJskSWXUZrPD4Sp77eSva9gVwIATXz35+SJNYWs1phWxAYDEpDKVaZv+fOrZUjaAGDDiK695rpgetpYOc82upw72sMycdJbz/SzmHeKl/ynRay31bbS1s7rjTczXGYj3ihrShnUDNQCXTXzlNS8UyExdbybhSdeNYwXz81nBzflE2pKms7oT51ntiSa276NKVn3wrNktNcGQelNpTUkNuwxcFvFV+S88rKnKy8ZzkOz84uvYvOJZ/PhyAE3Y/+HXbN+HFVwjjJAlR8lr1WueY9wt2MclEYfj8rnkj+nwRnHOLuGWhnbmpfuMKh/3Xn0Atm74IuY8OcGPFYk99kbVM98xm7BFnDyttHLyb3MlRdsjSWycOA+VLv79YpY5Ork6V5efY59s/JJVHznH/+dMymLz7v0Rm71oWtK2GIDSJ7ew6kMxJlCjytI8u+Qddm4+93bPBIfqiiG96KG5RPouljokuZT3b/2avf7EB6ylsZ1dM2MsG5OfxU7RAFSWVbMAObUphRMTtsc7CpdMh6c3kqe8gN117Yh5W4627GljFmGZ+C/ynx/flzSkDPW2Aqj2+lV/Y5mj0tljG3/GFhQXspkLpnBJVx85yyq/OGWJPAANgzkd2/utOMXJzxp965vlF3YFrPRHZtYgSZq6vi/p2TT6VrF+1Vt8/yiRhnoLiIHAftc7h0kDzlp6HgYcfTAgVwmEPmIWzTeZxPEQaeWkkhJJk1eJk8vWLGBz75nBrAIqfmDrN2zhqjlsetGkftddKU6WQ2qPe6AZVuwdGPP9kWw4+ZWKnVXiVO6M4UXtR1rKDiZrm4g4J70871cTnMzzd3ESNn3bgz9mdgC7hmoufeKWuB4/c1QGV3nYfP7Msfy/FYB8rM1LC6YNm72lonXv+UTtEqr60qVLJTcbvEv8h20tfOhGZgeQtpBiZnZ6wnuhEUDFnlPMDhaSMCbNilohc0kp61mEW1y1j0u8hLR78Ff5xX3t2i5AHLjegvqOIdtHXK/8oorZRfGLiw3aJM1dkVeynA5kCsGm98cjLhNxh4O5nxEnoOJW4rQRkDRUF3adTNoAEprRRB7tfJ09zA7Qt3mGCCMz+dmioiLKcSRTjvGISw/kPbNcSDtzdLotDy6A+AyYObR4KCjK53ur3t2I+ct7s0b0Pfds4U04RuLV914z4rjJ4ZSc94sTSBrsShvYv62S76frZKwAYQ2orWpidoEExyh1tzPl6SlTpjhJ6v3u7Utcgm0vHf/wePKUc8TJS5E21LWu6gKbRBmalXwcgHp70yISg8QR3oTWWAWk3gtpbp6/cCiLRK8Y9k7jHzgCGh3n8om/ibpueHKr0vZT5lVZFvHItVWRaALVQ4pqxcYfL3opeoxcvlr3D4BVc4HU4eFFeMt0ZsHJvUzcFKPkY4gvW7YMGiC7ZfcicW723dalXUsS3lSyNeZcBUmsmaS/5p0Vlp4BVccADsvOYP6uAM/yKsqq7PkJmv8L4k7mmEu7DcRNIfIqkedu3qjq0pkzZ/DfITE5quZjp2Qxu0Dnha1iX1fdxD55fW/CNjANYN49s7jKI5O788E5kfY0oHZQcEuvT5GY8wbaye+//36MqsfY+JEjR6QlY1cX0CHvNdQmZ/JIZhUtjW3RzkNqsG90Hti2cS8fgGSoqz7Pp6loi/uH6wNnJ7zBNA0ZYvrdY1aMZ6hdGHQ9RuL473KmDBUnUB+zAyE1dP6me2fxpMUYljat3Zb0GfvJodWRRz9Aic/utw+Ts/NG1L/L0qQrCoRggVTXUGRPMULmNo44h0CflZXlcGiuXLPGdoDOo7Pw0EYpC5W/c9Wcfm3EoAGiSAF4h0QiQmtDmyUHKZAzZSSrPam/W5MgzJgUlo+CrgFSU1OT5GTOseKi7UytsT2GiJlqW1X5aB+IrJfCYXNDO7MDYwh1yA4kYvKMGTNkkcxw4ghjdJLfQ9ntJRcgWxqsFUCsqDzg1e0U5FtsEvfGVIQ4J9nv90fNXEhcgmPLyEAh49KJW4WZlzezYSE172BvjDbZhc5JPn78eH/nlpubK7e1tcWQtjtRaDXpnLHaYkRflTdbSEhN65V4a4Plclo/IC/TDyV9ixCnNJWFw2EpPT2dBcKBBtHA3+FndmCmjsueuJnIf8/0/mQq79UlDkdpV+LGOnxQ7aljOmFwBTjxY8eOSXV1day9vV1SlFCHaFB3wroT8sdZ+kE4QuXFDMkSG7+ucZmUxdmdqrbU9WpIINQuiPO5CM5x4pTVYMdTucbgt8ejjeutj3K8Tg0jaU2aMY4nJWYQKm+mLT7d7kUW2GrDwRmFFpD8Xax3xSUmZcUfPhL7L2yvp9XJTv7ijgAv4ltBPK8rHNRCPf00QzKVRzs8p7Y6YRktCqy99foMrWN73bsnWJ/ZmTGbUVlkADRFDUarlIYKZkKYeWUjUYSm+0sWmraFxHdTaTkRhtnI2bHwKBBUA3iwSv6LcxPnjV4dI6J5vV61W+04JM5X7LBG3Mwr9820oPLxZln+zsQpac6kkdG5QDLs+7AyetwRat0FTvqsLEpeJDBaTU2NQocqBXl1f9PnH4uGmN5ZcSpmqu41KSUvffwWy4UJIzCIxlQ2bj/ILxnX1mq6Tx0EJwrVKlVjNFF8NKasbMSIEeqgQYOUWl91W0gNlIvGu0oPJH2h31Ti/VNeqP8dJrm6KQnDYIp5erKwZpR2j9JTfrRldy1x4mZMCYwWk7mxiPjVixcvqt3d3WpKSopS6z/9J/GA3ZsOJZW6mRp640h2Pk1bsWhoBzAToLo8fhES0t4fo+YXoblhWZbDtOcaLa5FbZziGyc/ZMgQpaenJ7yz4b1DqhpuxDV492RSNxuYeF4cWF6yiNmB8OyJ1B3SFlFI1ZSGj2o3grjS2dnJSescYyswa9eu5cQ7OjpwE0YodLGn/jVxHVJPFNfNc21PQiKiSJEIxgGFZ49XfETfthk+HGiO9B08wsOHD8deNd4fJa7rPi6G09LSeINPm97cHFT9R3gHSOqlT25m8WCWXCRzYvMpqUmkFYBxQOHZYedmNXdj36Cp6LvOJdTc3KzS4oKqC5cjSlz3dvhRurq6Qh6PJ0SDETrefvQP4h54y76fYwhg+ffRjfeRCi/kkrx+0Q9oVSRx2SpRbI8S7+iVuAiP+KrCiK0bvozx5Idat68KBoMhCmNBcKFQrYC4KDQC0SqrfhIS56oeCASC5ORCh5o/Pz7aO279CE/Oo7hvG70EBYrCPrX26CzM+uoxh0hnUWYyJd4VmSihWvvJxkheX2uY1e0qPRij4q09TW98/Z8D59B3CmNBUnMFoVpMTgT6LigI44eqB2kwMNxBchJvk8ofFTdtempLTNi4XCCdjWcWqLwgrH3w0g4eCaBVq1/6Kb+GPrz3u+3Re31K95cfnHv1dfSZPDn6HoKq06qvqvVZPey3Po6RKSsr49cwVWWRwXE2+M7tyxs87VZZktNwsZJSWVRhJxTksMsFPgyY85MZbGrhBJqDe5kzxRGd20MjOlq6qNqawSOBWDcHaQhAQCG7Pty66+l29WKz0+n0k8ZCVQITJ04M7dy5U1m3bl0M8XjVFgyIizYP2ckgUpnBdJw6OeOHuYWZC191ys6o8WJtepHNNXMrgDeHE0MuALLG9Bc2bVTvsBo+v6/ls1+ebDv8Ham4j8IxZmPdtMEzhljvPCSKeMT5wmF2dra7sbExlY4H0QZJe4n82L7ksWRT/OJdl1yVtQqELHhvoyMjSZ//V4T0WbfbHSCnxklTxdhPxdMgaXjY6NSMBPtBX0ODikPqbto4eXpwKj0Y5MfMHHbzI6mOtJhADOkXLikY8AGA9JFA7S49FDMZCij+ih31bz3V2FPbqpOGlLH5aION94vfAnELi3qtHddBHJ7Hy3Sp0+YhO3Ivzl65Yrgn+wFjO3j82UumDcgAxCMMNPnPbdhc98a7LpcLThikYdOQNrdtcmhhKrD0U3GBZBVVieKfg5wdJJ+Smprq9fl8kH4qvdATCoVc+ekFo28YvvgVh0H1BWACWGLGBzpjLK7KoGSEGgC2Pl8wckDK/247+MrR1t2YL8N+IVmfThh7YdcKS/Cda1LiqFHRJufk5LioLuch8h6dvJfIpxB5aITzjtE/v32kZ/wDTpMBAJC+YkkKWmD8ktlHCQqKmrUnL7BWIh3vs23YcmPgu798Wv/Xz0CM3h2mdwd0wnwjn9QzatSoEJXKw1pEZeMTYxagq73w9FB7Suw8XlVVvaRi+A/yuO64bfR9t2eljL09xeEtYAOAQNhfcabrm9J/XtyGPIKn1Lp6B3X19tN6gJ/m29ymSUgKUlMzh2aEncUDmdRe1tXeaPce/dilbxgAOT99evbEQdOuHebJvsHrSC2gpec0Ky/RmNrlV3wVneHWrw427/hHc7C+k/IJEFZ1KSOjDFDIEtLmSRb1LUR94/dZeY+tVROoPDaQo1TQTS9PoSlfik4cA0B9c7mpc1z6GAByghISoZkjivI8MuVRjqEjU52DRuossXir+UJdFHcCXfW+b09VtR9tMnReoefxNJqeCbsF6R7KygL03B56N8/OWK/3tkTaNnHWa/M8zrNIru8iOik0GeADQGHFTabh0q85qL/8Kwu0xSBgTwPB6BiLGMZn83SZzmuQMAhTWz5voEeGoNcgTtWUHiqW8OO8vLww+R5lz5494UT2PBDEY9rSQqOTHAmP91TFdNGChJsyPTdlelztqcMu6i+XvNiIkBQRHlcPHGv6sUbHIKzo56J1AZBkvR5cSFhUVBR2CbD69bIpysvLecdoAHqINOytm0ijJt9J3r+TVBLHXfrGkwsiJRIMLF1i76MBEue7qE0XqTPadYiNnFen3j6Ad5HGYSDwTcslkQYGamVULLrLpH7y6dOnuY1TGctFFR0hcYfhvujinQ6eaNBgYc6sEHm+0WAKqatEWJkwYYI6depUjYhbtuWrBW775GGd1FEXFQA8FFsR8+HRMdFBKocgPrTvRkgnh4l70ijPxtwAzpLnCLpDvSztvFqQ9C8PuAPEINDeTdpgjADYjOFQhESn3s6hP+OKr9dfSUhCaiIcYjNIMur52f850f95/BfoYlARf1CQvwAAAABJRU5ErkJggg=="},90376:(e,t,l)=>{l.d(t,{Ay:()=>A,pK:()=>h});var a=l(22555),d=(l(85672),l(60308)),i=l(23440),n=l(80911),c=l(12010),r=l(71392),o=l(16243),p=l(29625),s=l(61687),m=l(65908);(0,d.Ay)("div")((e=>{let{theme:t,x:l,y:a}=e;return{color:t.palette.text.secondary,position:"fixed",pointerEvents:"none",left:12,top:24,transform:"translate(".concat(l,"px, ").concat(a,"px)"),opacity:.6}}));const h=e=>{let{data:t,filename:l,headers:d,label:r,style:o,btnLoading:h,onClick:A}=e;return(0,m.jsx)(p.CSVLink,{data:t,filename:l,headers:d,children:(0,m.jsx)(i.A,{title:"CSV Export",children:(0,m.jsx)(n.A,{startIcon:!h&&(0,m.jsx)(s.A,{}),variant:h?"outlined":"contained",sx:(0,a.A)({},o),disabled:h,onClick:e=>{null===A||void 0===A||A(e)},children:h?(0,m.jsx)(c.A,{size:20,thickness:5}):r||"Download"})})})},A=h;(0,d.Ay)(r.A)((e=>{let{theme:t}=e;return{height:"400px","& .ant-empty-img-1":{fill:t.palette.mode===o.lG.DARK?t.palette.secondary[200]:t.palette.secondary[400]},"& .ant-empty-img-2":{fill:t.palette.secondary.light},"& .ant-empty-img-3":{fill:t.palette.mode===o.lG.DARK?t.palette.secondary.A200:t.palette.secondary[200]},"& .ant-empty-img-4":{fill:t.palette.mode===o.lG.DARK?t.palette.secondary.A300:t.palette.secondary.A100},"& .ant-empty-img-5":{fillOpacity:t.palette.mode===o.lG.DARK?"0.09":"0.95",fill:t.palette.mode===o.lG.DARK?t.palette.secondary.darker:t.palette.secondary.light}}}))},94826:(e,t,l)=>{l.d(t,{A:()=>o});var a=l(60308),d=l(12010),i=l(62217),n=l(65908);const c=(0,a.Ay)("div")((()=>({position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2001,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0.7)",padding:"20px",borderRadius:"10px"}))),r=(0,a.Ay)("div")((()=>({position:"absolute",width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center"}))),o=()=>(0,n.jsxs)(c,{children:[(0,n.jsx)(d.A,{color:"primary",size:80,thickness:6}),(0,n.jsx)(r,{children:(0,n.jsx)("img",{src:i,alt:"Logo",style:{width:"100%",height:"100%"}})})]})}}]); \ No newline at end of file diff --git a/build/static/js/2351.da2f2779.chunk.js b/build/static/js/2351.da2f2779.chunk.js new file mode 100644 index 0000000..7a27c36 --- /dev/null +++ b/build/static/js/2351.da2f2779.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[2351],{12375:(e,t,r)=>{Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"usePlacesWidget",{enumerable:!0,get:function(){return o.default}});var n=a(r(17055)),o=a(r(46836));function a(e){return e&&e.__esModule?e:{default:e}}},17055:(e,t,r)=>{function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!==typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var i=a?Object.getOwnPropertyDescriptor(e,c):null;i&&(i.get||i.set)?Object.defineProperty(o,c,i):o[c]=e[c]}o.default=e,r&&r.set(e,o);return o}(r(85672)),a=i(r(45656)),c=i(r(46836));function i(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function s(){return s=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function p(e){var t=e.onPlaceSelected,r=e.apiKey,n=e.libraries,a=e.inputAutocompleteValue,i=e.options,u=e.googleMapsScriptBaseUrl,p=e.refProp,d=e.language,f=l(e,["onPlaceSelected","apiKey","libraries","inputAutocompleteValue","options","googleMapsScriptBaseUrl","refProp","language"]),b=(0,c.default)({ref:p,googleMapsScriptBaseUrl:u,onPlaceSelected:t,apiKey:r,libraries:n,inputAutocompleteValue:a,options:i,language:d}).ref;return o.default.createElement("input",s({ref:b},f))}p.propTypes={apiKey:a.default.string,libraries:a.default.arrayOf(a.default.string),ref:a.default.oneOfType([a.default.func,a.default.shape({current:a.default.any})]),googleMapsScriptBaseUrl:a.default.string,onPlaceSelected:a.default.func,inputAutocompleteValue:a.default.string,options:a.default.shape({componentRestrictions:a.default.object,bounds:a.default.object,location:a.default.object,offset:a.default.number,origin:a.default.object,radius:a.default.number,sessionToken:a.default.object,types:a.default.arrayOf(a.default.string)}),language:a.default.string};var d=(0,o.forwardRef)((function(e,t){return o.default.createElement(p,s({},e,{refProp:t}))}));t.default=d},42498:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.loadGoogleMapScript=t.isBrowser=void 0;var r="undefined"!==typeof window&&window.document;t.isBrowser=r;t.loadGoogleMapScript=function(e,t){if(!r)return Promise.resolve();if("undefined"!==typeof google&&google.maps&&google.maps.api)return Promise.resolve();var n=document.querySelectorAll('script[src*="'.concat(e,'"]'));if(n&&n.length)return new Promise((function(e){if("undefined"!==typeof google)return e();n[0].addEventListener("load",(function(){return e()}))}));var o=new URL(t);o.searchParams.set("callback","__REACT_GOOGLE_AUTOCOMPLETE_CALLBACK__");var a=document.createElement("script");return a.src=o.toString(),new Promise((function(e){window.__REACT_GOOGLE_AUTOCOMPLETE_CALLBACK__=e,document.body.appendChild(a)}))}},46836:(e,t,r)=>{function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.ref,r=e.onPlaceSelected,n=e.apiKey,i=e.libraries,u=void 0===i?"places":i,l=e.inputAutocompleteValue,p=void 0===l?"new-password":l,d=e.options,f=(d=void 0===d?{}:d).types,b=void 0===f?["(cities)"]:f,y=d.componentRestrictions,m=d.fields,g=void 0===m?["address_components","geometry.location","place_id","formatted_address"]:m,v=d.bounds,O=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(d,["types","componentRestrictions","fields","bounds"]),P=e.googleMapsScriptBaseUrl,w=void 0===P?c.GOOGLE_MAP_SCRIPT_BASE_URL:P,_=e.language,h=(0,o.useRef)(null),j=(0,o.useRef)(null),A=(0,o.useRef)(null),S=_?"&language=".concat(_):"",M="".concat(w,"?libraries=").concat(u,"&key=").concat(n).concat(S),C=(0,o.useCallback)((function(){return(0,a.loadGoogleMapScript)(w,M)}),[w,M]);return(0,o.useEffect)((function(){var e=s(s({},O),{},{fields:g,types:b,bounds:v});if(y&&(e.componentRestrictions=y),!A.current&&h.current&&a.isBrowser){t&&!t.current&&(t.current=h.current);var o=function(){var t;return"undefined"===typeof google?console.error("Google has not been found. Make sure your provide apiKey prop."):null!==(t=google.maps)&&void 0!==t&&t.places?h.current instanceof HTMLInputElement?(A.current=new google.maps.places.Autocomplete(h.current,e),void(A.current&&(j.current=A.current.addListener("place_changed",(function(){r&&A&&A.current&&r(A.current.getPlace(),h.current,A.current)}))))):console.error("Input ref must be HTMLInputElement."):console.error("Google maps places API must be loaded.")};return n?C().then((function(){return o()})):o(),function(){return j.current?j.current.remove():void 0}}}),[]),(0,o.useEffect)((function(){if(a.isBrowser&&window.MutationObserver&&h.current&&h.current instanceof HTMLInputElement){var e=new MutationObserver((function(){e.disconnect(),h.current&&(h.current.autocomplete=p)}));return e.observe(h.current,{attributes:!0,attributeFilter:["autocomplete"]}),function(){e.disconnect()}}}),[p]),(0,o.useEffect)((function(){A.current&&A.current.setFields(g)}),[g]),(0,o.useEffect)((function(){A.current&&A.current.setBounds(v)}),[v]),(0,o.useEffect)((function(){A.current&&A.current.setComponentRestrictions(y)}),[y]),(0,o.useEffect)((function(){A.current&&A.current.setOptions(O)}),[O]),{ref:h,autocompleteRef:A}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!==typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var u=a?Object.getOwnPropertyDescriptor(e,c):null;u&&(u.get||u.set)?Object.defineProperty(o,c,u):o[c]=e[c]}o.default=e,r&&r.set(e,o);return o}(r(85672)),a=r(42498),c=r(96602);function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t{e.exports=r(12375)},77865:(e,t,r)=>{r.d(t,{A:()=>S});var n=r(84849),o=r(27326),a=r(85672),c=r(72574),i=r(25234),u=r(10247),s=r(60308),l=r(24270),p=r(38009),d=r(78534),f=r(61949),b=r(93046),y=r(45688),m=r(8191),g=r(58541),v=r(43917),O=r(37300),P=r(10644);function w(e){return(0,P.Ay)("MuiMenuItem",e)}const _=(0,O.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var h=r(65908);const j=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],A=(0,s.Ay)(f.A,{shouldForwardProp:e=>(0,l.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:r}=e;return(0,o.A)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(_.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,u.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(_.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,u.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(_.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,u.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,u.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(_.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(_.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(m.A.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(m.A.inset)]:{marginLeft:52},["& .".concat(v.A.root)]:{marginTop:0,marginBottom:0},["& .".concat(v.A.inset)]:{paddingLeft:36},["& .".concat(g.A.root)]:{minWidth:36}},!r.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},r.dense&&(0,o.A)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(g.A.root," svg")]:{fontSize:"1.25rem"}}))})),S=a.forwardRef((function(e,t){const r=(0,p.b)({props:e,name:"MuiMenuItem"}),{autoFocus:u=!1,component:s="li",dense:l=!1,divider:f=!1,disableGutters:m=!1,focusVisibleClassName:g,role:v="menuitem",tabIndex:O,className:P}=r,_=(0,n.A)(r,j),S=a.useContext(d.A),M=a.useMemo((()=>({dense:l||S.dense||!1,disableGutters:m})),[S.dense,l,m]),C=a.useRef(null);(0,b.A)((()=>{u&&C.current&&C.current.focus()}),[u]);const E=(0,o.A)({},r,{dense:M.dense,divider:f,disableGutters:m}),k=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:c,classes:u}=e,s={root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",c&&"selected"]},l=(0,i.A)(s,w,u);return(0,o.A)({},u,l)})(r),R=(0,y.A)(C,t);let L;return r.disabled||(L=void 0!==O?O:-1),(0,h.jsx)(d.A.Provider,{value:M,children:(0,h.jsx)(A,(0,o.A)({ref:R,role:v,tabIndex:L,component:s,focusVisibleClassName:(0,c.A)(k.focusVisible,g),className:(0,c.A)(k.root,P)},_,{ownerState:E,classes:k}))})}))},96602:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GOOGLE_MAP_SCRIPT_BASE_URL=void 0;t.GOOGLE_MAP_SCRIPT_BASE_URL="https://maps.googleapis.com/maps/api/js"}}]); \ No newline at end of file diff --git a/build/static/js/238.b0a6c12d.chunk.js b/build/static/js/238.20c0d222.chunk.js similarity index 96% rename from build/static/js/238.b0a6c12d.chunk.js rename to build/static/js/238.20c0d222.chunk.js index 9312cfa..9acbb64 100644 --- a/build/static/js/238.b0a6c12d.chunk.js +++ b/build/static/js/238.20c0d222.chunk.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[238],{40238:(e,t,a)=>{a.r(t),a.d(t,{default:()=>b});var s=a(9950),l=a(14857),n=a(47223),o=a(16491),i=a(60899),r=a(93230),c=a(82053),d=a(19647),h=a(29925),m=a(70006),u=a(23266),p=a(10226),g=a(50027),x=a(26910),A=a(56713),f=a(52351),j=a(99459),y=a(8881),v=a(28429),C=a(44414);const b=()=>{const[e,t]=(0,s.useState)(""),[a,b]=(0,s.useState)(""),[S,_]=(0,s.useState)(""),[F,k]=(0,s.useState)(""),[I,w]=(0,s.useState)(""),[z,W]=(0,s.useState)(""),[H,M]=(0,s.useState)(""),[N,D]=(0,s.useState)({}),[O,E]=(0,s.useState)(""),[K,L]=(0,s.useState)(""),[P,R]=(0,s.useState)(""),[Y,q]=(0,s.useState)({}),T=(0,v.Zp)(),U=(0,l.A)(),Z=(0,n.A)(U.breakpoints.down("md"));j.A.setApiKey("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8");const[V,B]=(0,s.useState)(!1);(0,s.useEffect)((()=>{localStorage.getItem("tenantid")&&J(localStorage.getItem("tenantid"))}),[]),(0,s.useEffect)((()=>{try{j.A.fromAddress(I).then((e=>{if("OK"==e.status){const{lat:t,lng:a}=e.results[0].geometry.location;D({lat:t,lng:a}),console.log(e)}}),(e=>{console.log(e)}))}catch(e){console.log(e)}}),[I]);const G=e=>{(0,y.M8)(e,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3})},J=async e=>{B(!0),await x.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantinfo/?tenantid=").concat(e)).then((e=>{console.log(e),e.data.status&&q(e.data.details),B(!1)})).catch((e=>{console.log(e),B(!1)}))};(0,s.useEffect)((()=>{selectedImage&&setAvatar(URL.createObjectURL(selectedImage))}),[selectedImage]);const{ref:Q}=(0,A.usePlacesWidget)({apiKey:"AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8",onPlaceSelected:e=>{let t,a,s,l;console.log(e),w(e.formatted_address);for(let n=0;nE(e.target.value),value:O,autoComplete:"off"})]})}),(0,C.jsx)(i.Ay,{item:!0,xs:12,sm:6}),(0,C.jsx)(i.Ay,{item:!0,xs:12,sm:6,children:(0,C.jsxs)(r.A,{spacing:1.25,children:[(0,C.jsx)(d.A,{htmlFor:"personal-phone",children:"Phone Number"}),(0,C.jsxs)(r.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:2,children:[(0,C.jsx)(m.A,{defaultValue:"+1",disabled:!0,sx:{cursor:"not-allowed"},children:(0,C.jsx)(u.A,{value:"+1",children:"+91"})}),(0,C.jsx)(h.A,{type:"number",id:"personal-phone",fullWidth:!0,placeholder:"Phone Number",onChange:e=>{e.target.value.toString().length<=10&&t(e.target.value)},value:e,autoComplete:"off",sx:{cursor:"not-allowed"}})]})]})}),(0,C.jsx)(i.Ay,{item:!0,xs:12,sm:6,children:(0,C.jsxs)(r.A,{spacing:1.25,children:[(0,C.jsx)(d.A,{htmlFor:"personal-email",children:"Email Address"}),(0,C.jsx)(h.A,{type:"email",fullWidth:!0,id:"personal-email",placeholder:"Email Address",onChange:e=>b(e.target.value),value:a,autoComplete:"off"})]})}),(0,C.jsx)(i.Ay,{item:!0,xs:12,children:(0,C.jsxs)(r.A,{spacing:1.25,children:[(0,C.jsx)(d.A,{htmlFor:"personal-address",children:"Address"}),(0,C.jsx)(h.A,{fullWidth:!0,id:"personal-address",placeholder:"Address",value:I,onChange:e=>w(e.target.value),inputRef:Q})]})}),(0,C.jsx)(i.Ay,{item:!0,xs:12,sm:6,children:(0,C.jsxs)(r.A,{spacing:1.25,children:[(0,C.jsx)(d.A,{htmlFor:"personal-location",children:"Suburb"}),(0,C.jsx)(h.A,{fullWidth:!0,id:"personal-location",placeholder:"Location",onChange:e=>M(e.target.value),value:H,autoComplete:"off"})]})}),(0,C.jsx)(i.Ay,{item:!0,xs:12,sm:6,children:(0,C.jsxs)(r.A,{spacing:1.25,children:[(0,C.jsx)(d.A,{htmlFor:"personal-zipcode",children:"City"}),(0,C.jsx)(h.A,{fullWidth:!0,id:"personal-zipcode",placeholder:"City",onChange:e=>_(e.target.value),value:S,autoComplete:"off"})]})}),(0,C.jsx)(i.Ay,{item:!0,xs:12,sm:6,children:(0,C.jsxs)(r.A,{spacing:1.25,children:[(0,C.jsx)(d.A,{htmlFor:"personal-location",children:"State"}),(0,C.jsx)(h.A,{fullWidth:!0,id:"personal-location",placeholder:"State",onChange:e=>W(e.target.value),value:z,autoComplete:"off"})]})}),(0,C.jsx)(i.Ay,{item:!0,xs:12,sm:6,children:(0,C.jsxs)(r.A,{spacing:1.25,children:[(0,C.jsx)(d.A,{htmlFor:"personal-zipcode",children:"Post Code"}),(0,C.jsx)(h.A,{fullWidth:!0,type:"number",id:"personal-zipcode",placeholder:"Zipcode",onChange:e=>k(e.target.value),value:F,autoComplete:"off"})]})}),(0,C.jsx)(i.Ay,{item:!0,xs:12,sm:6,children:(0,C.jsxs)(r.A,{spacing:1.25,children:[(0,C.jsx)(d.A,{htmlFor:"personal-location",children:"Door No"}),(0,C.jsx)(h.A,{fullWidth:!0,id:"personal-location",placeholder:"Door No",onChange:e=>L(e.target.value),value:K,autoComplete:"off"})]})}),(0,C.jsx)(i.Ay,{item:!0,xs:12,sm:6,children:(0,C.jsxs)(r.A,{spacing:1.25,children:[(0,C.jsx)(d.A,{htmlFor:"personal-email",children:"Landmark"}),(0,C.jsx)(h.A,{type:"email",fullWidth:!0,id:"personal-email",placeholder:"Landmark",onChange:e=>R(e.target.value),value:P,autoComplete:"off"})]})})]})})}),(0,C.jsx)(i.Ay,{item:!0,xs:12,children:(0,C.jsx)(r.A,{direction:{xs:"column",sm:"row"},justifyContent:"flex-end",alignItems:{xs:"stretch",sm:"center"},spacing:2,children:(0,C.jsx)(p.A,{variant:"contained",onClick:()=>(async()=>{if(console.log("res",businessname,businessno,e,a,I,S,F),O)if(e)if(a)if(I)if(S)if(F)if(H)if(N.lat&&N.lng){let s={customerid:0,configid:1,firstname:O,applocationid:Y.applolcationid,profileimage:"",dialcode:"+91",contactno:e,devicetype:"",deviceid:"",customertoken:"",address:I,suburb:H,city:S,state:z,postcode:F,landmark:P,doorno:K,latitude:N.lat.toString(),longitude:N.lng.toString(),tenantid:parseInt(localStorage.getItem("tenantid")),email:a};console.log(s),B(!0);try{await x.A.post("".concat("https://jupiter.nearle.app/live/api/v1","/customers/create"),s).then((e=>{console.log(e),e.data.status?((0,y.M8)(" Created Successfully ",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),T("/clients")):"Customer Already available"==e.data.message&&(0,y.M8)("Customer Already available",{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),B(!1)})).catch((e=>{console.log(e),B(!1),(0,y.M8)(e.message,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3})}))}catch(t){console.log(t),B(!1)}}else G("Choose valid address");else G("Fill suburb");else G("Fill post code");else G("Fill City");else G("Fill Address");else G("Fill emailaddress");else G("Fill Mobile Number");else G("Fill Full name")})(),fullWidth:Z,children:"Create"})})})]})})]})]})}}}]); \ No newline at end of file +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[238],{40238:(e,t,a)=>{a.r(t),a.d(t,{default:()=>b});var s=a(85672),l=a(69039),n=a(76264),o=a(48738),i=a(1939),r=a(71392),c=a(2866),d=a(29882),h=a(86270),m=a(51422),u=a(77865),p=a(80911),g=a(59008),x=a(66157),A=a(72679),f=a(52351),j=a(76453),y=a(13659),v=a(96515),C=a(65908);const b=()=>{const[e,t]=(0,s.useState)(""),[a,b]=(0,s.useState)(""),[S,_]=(0,s.useState)(""),[F,k]=(0,s.useState)(""),[I,w]=(0,s.useState)(""),[z,W]=(0,s.useState)(""),[H,M]=(0,s.useState)(""),[N,D]=(0,s.useState)({}),[O,E]=(0,s.useState)(""),[K,L]=(0,s.useState)(""),[P,R]=(0,s.useState)(""),[Y,q]=(0,s.useState)({}),T=(0,v.Zp)(),U=(0,l.A)(),Z=(0,n.A)(U.breakpoints.down("md"));j.A.setApiKey("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8");const[V,B]=(0,s.useState)(!1);(0,s.useEffect)((()=>{localStorage.getItem("tenantid")&&J(localStorage.getItem("tenantid"))}),[]),(0,s.useEffect)((()=>{try{j.A.fromAddress(I).then((e=>{if("OK"==e.status){const{lat:t,lng:a}=e.results[0].geometry.location;D({lat:t,lng:a}),console.log(e)}}),(e=>{console.log(e)}))}catch(e){console.log(e)}}),[I]);const G=e=>{(0,y.M8)(e,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3})},J=async e=>{B(!0),await x.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantinfo/?tenantid=").concat(e)).then((e=>{console.log(e),e.data.status&&q(e.data.details),B(!1)})).catch((e=>{console.log(e),B(!1)}))};(0,s.useEffect)((()=>{selectedImage&&setAvatar(URL.createObjectURL(selectedImage))}),[selectedImage]);const{ref:Q}=(0,A.usePlacesWidget)({apiKey:"AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8",onPlaceSelected:e=>{let t,a,s,l;console.log(e),w(e.formatted_address);for(let n=0;nE(e.target.value),value:O,autoComplete:"off"})]})}),(0,C.jsx)(i.Ay,{item:!0,xs:12,sm:6}),(0,C.jsx)(i.Ay,{item:!0,xs:12,sm:6,children:(0,C.jsxs)(r.A,{spacing:1.25,children:[(0,C.jsx)(d.A,{htmlFor:"personal-phone",children:"Phone Number"}),(0,C.jsxs)(r.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:2,children:[(0,C.jsx)(m.A,{defaultValue:"+1",disabled:!0,sx:{cursor:"not-allowed"},children:(0,C.jsx)(u.A,{value:"+1",children:"+91"})}),(0,C.jsx)(h.A,{type:"number",id:"personal-phone",fullWidth:!0,placeholder:"Phone Number",onChange:e=>{e.target.value.toString().length<=10&&t(e.target.value)},value:e,autoComplete:"off",sx:{cursor:"not-allowed"}})]})]})}),(0,C.jsx)(i.Ay,{item:!0,xs:12,sm:6,children:(0,C.jsxs)(r.A,{spacing:1.25,children:[(0,C.jsx)(d.A,{htmlFor:"personal-email",children:"Email Address"}),(0,C.jsx)(h.A,{type:"email",fullWidth:!0,id:"personal-email",placeholder:"Email Address",onChange:e=>b(e.target.value),value:a,autoComplete:"off"})]})}),(0,C.jsx)(i.Ay,{item:!0,xs:12,children:(0,C.jsxs)(r.A,{spacing:1.25,children:[(0,C.jsx)(d.A,{htmlFor:"personal-address",children:"Address"}),(0,C.jsx)(h.A,{fullWidth:!0,id:"personal-address",placeholder:"Address",value:I,onChange:e=>w(e.target.value),inputRef:Q})]})}),(0,C.jsx)(i.Ay,{item:!0,xs:12,sm:6,children:(0,C.jsxs)(r.A,{spacing:1.25,children:[(0,C.jsx)(d.A,{htmlFor:"personal-location",children:"Suburb"}),(0,C.jsx)(h.A,{fullWidth:!0,id:"personal-location",placeholder:"Location",onChange:e=>M(e.target.value),value:H,autoComplete:"off"})]})}),(0,C.jsx)(i.Ay,{item:!0,xs:12,sm:6,children:(0,C.jsxs)(r.A,{spacing:1.25,children:[(0,C.jsx)(d.A,{htmlFor:"personal-zipcode",children:"City"}),(0,C.jsx)(h.A,{fullWidth:!0,id:"personal-zipcode",placeholder:"City",onChange:e=>_(e.target.value),value:S,autoComplete:"off"})]})}),(0,C.jsx)(i.Ay,{item:!0,xs:12,sm:6,children:(0,C.jsxs)(r.A,{spacing:1.25,children:[(0,C.jsx)(d.A,{htmlFor:"personal-location",children:"State"}),(0,C.jsx)(h.A,{fullWidth:!0,id:"personal-location",placeholder:"State",onChange:e=>W(e.target.value),value:z,autoComplete:"off"})]})}),(0,C.jsx)(i.Ay,{item:!0,xs:12,sm:6,children:(0,C.jsxs)(r.A,{spacing:1.25,children:[(0,C.jsx)(d.A,{htmlFor:"personal-zipcode",children:"Post Code"}),(0,C.jsx)(h.A,{fullWidth:!0,type:"number",id:"personal-zipcode",placeholder:"Zipcode",onChange:e=>k(e.target.value),value:F,autoComplete:"off"})]})}),(0,C.jsx)(i.Ay,{item:!0,xs:12,sm:6,children:(0,C.jsxs)(r.A,{spacing:1.25,children:[(0,C.jsx)(d.A,{htmlFor:"personal-location",children:"Door No"}),(0,C.jsx)(h.A,{fullWidth:!0,id:"personal-location",placeholder:"Door No",onChange:e=>L(e.target.value),value:K,autoComplete:"off"})]})}),(0,C.jsx)(i.Ay,{item:!0,xs:12,sm:6,children:(0,C.jsxs)(r.A,{spacing:1.25,children:[(0,C.jsx)(d.A,{htmlFor:"personal-email",children:"Landmark"}),(0,C.jsx)(h.A,{type:"email",fullWidth:!0,id:"personal-email",placeholder:"Landmark",onChange:e=>R(e.target.value),value:P,autoComplete:"off"})]})})]})})}),(0,C.jsx)(i.Ay,{item:!0,xs:12,children:(0,C.jsx)(r.A,{direction:{xs:"column",sm:"row"},justifyContent:"flex-end",alignItems:{xs:"stretch",sm:"center"},spacing:2,children:(0,C.jsx)(p.A,{variant:"contained",onClick:()=>(async()=>{if(console.log("res",businessname,businessno,e,a,I,S,F),O)if(e)if(a)if(I)if(S)if(F)if(H)if(N.lat&&N.lng){let s={customerid:0,configid:1,firstname:O,applocationid:Y.applolcationid,profileimage:"",dialcode:"+91",contactno:e,devicetype:"",deviceid:"",customertoken:"",address:I,suburb:H,city:S,state:z,postcode:F,landmark:P,doorno:K,latitude:N.lat.toString(),longitude:N.lng.toString(),tenantid:parseInt(localStorage.getItem("tenantid")),email:a};console.log(s),B(!0);try{await x.A.post("".concat("https://jupiter.nearle.app/live/api/v1","/customers/create"),s).then((e=>{console.log(e),e.data.status?((0,y.M8)(" Created Successfully ",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),T("/clients")):"Customer Already available"==e.data.message&&(0,y.M8)("Customer Already available",{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),B(!1)})).catch((e=>{console.log(e),B(!1),(0,y.M8)(e.message,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3})}))}catch(t){console.log(t),B(!1)}}else G("Choose valid address");else G("Fill suburb");else G("Fill post code");else G("Fill City");else G("Fill Address");else G("Fill emailaddress");else G("Fill Mobile Number");else G("Fill Full name")})(),fullWidth:Z,children:"Create"})})})]})})]})]})}}}]); \ No newline at end of file diff --git a/build/static/js/2638.6b26c3ee.chunk.js b/build/static/js/2638.d525cca2.chunk.js similarity index 96% rename from build/static/js/2638.6b26c3ee.chunk.js rename to build/static/js/2638.d525cca2.chunk.js index 978ae5d..11da59d 100644 --- a/build/static/js/2638.6b26c3ee.chunk.js +++ b/build/static/js/2638.d525cca2.chunk.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[2638],{12638:(e,t,a)=>{a.r(t),a.d(t,{default:()=>C});var s=a(9950),l=a(14857),n=a(47223),o=a(60899),i=a(93230),r=a(82053),c=a(19647),d=a(29925),h=a(70006),m=a(23266),u=a(10226),p=a(50027),g=a(26910),x=a(56713),A=a(52351),f=a(99459),j=a(8881),y=a(28429),v=a(44414);const C=()=>{const e=(0,l.A)(),t=(0,n.A)(e.breakpoints.down("md")),[a,C]=(0,s.useState)(""),[S,b]=(0,s.useState)(""),[_,F]=(0,s.useState)(""),[k,I]=(0,s.useState)(""),[w,z]=(0,s.useState)(""),[W,H]=(0,s.useState)(""),[M,N]=(0,s.useState)(""),[D,O]=(0,s.useState)({}),[E,K]=(0,s.useState)(""),[L,P]=(0,s.useState)(""),[Y,R]=(0,s.useState)(""),[q,T]=(0,s.useState)({}),U=(0,y.Zp)();f.A.setApiKey("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8");const[X,Z]=(0,s.useState)(!1);(0,s.useEffect)((()=>{localStorage.getItem("tenantid")&&B(localStorage.getItem("tenantid"))}),[]),(0,s.useEffect)((()=>{try{f.A.fromAddress(w).then((e=>{if("OK"==e.status){const{lat:t,lng:a}=e.results[0].geometry.location;O({lat:t,lng:a}),console.log(e)}}),(e=>{console.log(e)}))}catch(e){console.log(e)}}),[w]);const V=e=>{(0,j.M8)(e,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3})},B=async e=>{Z(!0),await g.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantinfo/?tenantid=").concat(e)).then((e=>{console.log(e),e.data.status&&T(e.data.details),Z(!1)})).catch((e=>{console.log(e),Z(!1)}))};(0,s.useEffect)((()=>{selectedImage&&setAvatar(URL.createObjectURL(selectedImage))}),[selectedImage]);const{ref:G}=(0,x.usePlacesWidget)({apiKey:"AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8",onPlaceSelected:e=>{let t,a,s,l;console.log(e),z(e.formatted_address);for(let n=0;nK(e.target.value),value:E,autoComplete:"off"})]})}),(0,v.jsx)(o.Ay,{item:!0,xs:12,sm:6}),(0,v.jsx)(o.Ay,{item:!0,xs:12,sm:6,children:(0,v.jsxs)(i.A,{spacing:1.25,children:[(0,v.jsx)(c.A,{htmlFor:"personal-phone",children:"Phone Number"}),(0,v.jsxs)(i.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:2,children:[(0,v.jsx)(h.A,{defaultValue:"+1",disabled:!0,sx:{cursor:"not-allowed"},children:(0,v.jsx)(m.A,{value:"+1",children:"+91"})}),(0,v.jsx)(d.A,{type:"number",id:"personal-phone",fullWidth:!0,placeholder:"Phone Number",onChange:e=>{e.target.value.toString().length<=10&&C(e.target.value)},value:a,autoComplete:"off",sx:{cursor:"not-allowed"}})]})]})}),(0,v.jsx)(o.Ay,{item:!0,xs:12,sm:6,children:(0,v.jsxs)(i.A,{spacing:1.25,children:[(0,v.jsx)(c.A,{htmlFor:"personal-email",children:"Email Address"}),(0,v.jsx)(d.A,{type:"email",fullWidth:!0,id:"personal-email",placeholder:"Email Address",onChange:e=>b(e.target.value),value:S,autoComplete:"off"})]})}),(0,v.jsx)(o.Ay,{item:!0,xs:12,children:(0,v.jsxs)(i.A,{spacing:1.25,children:[(0,v.jsx)(c.A,{htmlFor:"personal-address",children:"Address"}),(0,v.jsx)(d.A,{fullWidth:!0,id:"personal-address",placeholder:"Address",value:w,onChange:e=>z(e.target.value),inputRef:G})]})}),(0,v.jsx)(o.Ay,{item:!0,xs:12,sm:6,children:(0,v.jsxs)(i.A,{spacing:1.25,children:[(0,v.jsx)(c.A,{htmlFor:"personal-location",children:"Suburb"}),(0,v.jsx)(d.A,{fullWidth:!0,id:"personal-location",placeholder:"Location",onChange:e=>N(e.target.value),value:M,autoComplete:"off"})]})}),(0,v.jsx)(o.Ay,{item:!0,xs:12,sm:6,children:(0,v.jsxs)(i.A,{spacing:1.25,children:[(0,v.jsx)(c.A,{htmlFor:"personal-zipcode",children:"City"}),(0,v.jsx)(d.A,{fullWidth:!0,id:"personal-zipcode",placeholder:"City",onChange:e=>F(e.target.value),value:_,autoComplete:"off"})]})}),(0,v.jsx)(o.Ay,{item:!0,xs:12,sm:6,children:(0,v.jsxs)(i.A,{spacing:1.25,children:[(0,v.jsx)(c.A,{htmlFor:"personal-location",children:"State"}),(0,v.jsx)(d.A,{fullWidth:!0,id:"personal-location",placeholder:"State",onChange:e=>H(e.target.value),value:W,autoComplete:"off"})]})}),(0,v.jsx)(o.Ay,{item:!0,xs:12,sm:6,children:(0,v.jsxs)(i.A,{spacing:1.25,children:[(0,v.jsx)(c.A,{htmlFor:"personal-zipcode",children:"Post Code"}),(0,v.jsx)(d.A,{fullWidth:!0,type:"number",id:"personal-zipcode",placeholder:"Zipcode",onChange:e=>I(e.target.value),value:k,autoComplete:"off"})]})}),(0,v.jsx)(o.Ay,{item:!0,xs:12,sm:6,children:(0,v.jsxs)(i.A,{spacing:1.25,children:[(0,v.jsx)(c.A,{htmlFor:"personal-location",children:"Door No"}),(0,v.jsx)(d.A,{fullWidth:!0,id:"personal-location",placeholder:"Door No",onChange:e=>P(e.target.value),value:L,autoComplete:"off"})]})}),(0,v.jsx)(o.Ay,{item:!0,xs:12,sm:6,children:(0,v.jsxs)(i.A,{spacing:1.25,children:[(0,v.jsx)(c.A,{htmlFor:"personal-email",children:"Landmark"}),(0,v.jsx)(d.A,{type:"email",fullWidth:!0,id:"personal-email",placeholder:"Landmark",onChange:e=>R(e.target.value),value:Y,autoComplete:"off"})]})})]})})}),(0,v.jsx)(o.Ay,{item:!0,xs:12,children:(0,v.jsx)(i.A,{direction:{xs:"column",sm:"row"},justifyContent:"flex-end",alignItems:{xs:"stretch",sm:"center"},spacing:2,children:(0,v.jsx)(u.A,{variant:"contained",onClick:()=>(async()=>{if(console.log("res",businessname,businessno,a,S,w,_,k),E)if(a)if(S)if(w)if(_)if(k)if(M)if(D.lat&&D.lng){let t={customerid:0,configid:1,firstname:E,applocationid:q.applolcationid,profileimage:"",dialcode:"+91",contactno:a,devicetype:"",deviceid:"",customertoken:"",address:w,suburb:M,city:_,state:W,postcode:k,landmark:Y,doorno:L,latitude:D.lat.toString(),longitude:D.lng.toString(),tenantid:parseInt(localStorage.getItem("tenantid")),email:S};console.log(t),Z(!0);try{await g.A.post("".concat("https://jupiter.nearle.app/live/api/v1","/customers/create"),t).then((e=>{console.log(e),e.data.status?((0,j.M8)(" Created Successfully ",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),U("/clients")):"Customer Already available"==e.data.message&&(0,j.M8)("Customer Already available",{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),Z(!1)})).catch((e=>{console.log(e),Z(!1),(0,j.M8)(e.message,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3})}))}catch(e){console.log(e),Z(!1)}}else V("Choose valid address");else V("Fill suburb");else V("Fill post code");else V("Fill City");else V("Fill Address");else V("Fill emailaddress");else V("Fill Mobile Number");else V("Fill Full name")})(),fullWidth:t,children:"Create"})})})]})})]})}}}]); \ No newline at end of file +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[2638],{12638:(e,t,a)=>{a.r(t),a.d(t,{default:()=>C});var s=a(85672),l=a(69039),n=a(76264),o=a(1939),i=a(71392),r=a(2866),c=a(29882),d=a(86270),h=a(51422),m=a(77865),u=a(80911),p=a(59008),g=a(66157),x=a(72679),A=a(52351),f=a(76453),j=a(13659),y=a(96515),v=a(65908);const C=()=>{const e=(0,l.A)(),t=(0,n.A)(e.breakpoints.down("md")),[a,C]=(0,s.useState)(""),[S,b]=(0,s.useState)(""),[_,F]=(0,s.useState)(""),[k,I]=(0,s.useState)(""),[w,z]=(0,s.useState)(""),[W,H]=(0,s.useState)(""),[M,N]=(0,s.useState)(""),[D,O]=(0,s.useState)({}),[E,K]=(0,s.useState)(""),[L,P]=(0,s.useState)(""),[Y,R]=(0,s.useState)(""),[q,T]=(0,s.useState)({}),U=(0,y.Zp)();f.A.setApiKey("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8");const[X,Z]=(0,s.useState)(!1);(0,s.useEffect)((()=>{localStorage.getItem("tenantid")&&B(localStorage.getItem("tenantid"))}),[]),(0,s.useEffect)((()=>{try{f.A.fromAddress(w).then((e=>{if("OK"==e.status){const{lat:t,lng:a}=e.results[0].geometry.location;O({lat:t,lng:a}),console.log(e)}}),(e=>{console.log(e)}))}catch(e){console.log(e)}}),[w]);const V=e=>{(0,j.M8)(e,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3})},B=async e=>{Z(!0),await g.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantinfo/?tenantid=").concat(e)).then((e=>{console.log(e),e.data.status&&T(e.data.details),Z(!1)})).catch((e=>{console.log(e),Z(!1)}))};(0,s.useEffect)((()=>{selectedImage&&setAvatar(URL.createObjectURL(selectedImage))}),[selectedImage]);const{ref:G}=(0,x.usePlacesWidget)({apiKey:"AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8",onPlaceSelected:e=>{let t,a,s,l;console.log(e),z(e.formatted_address);for(let n=0;nK(e.target.value),value:E,autoComplete:"off"})]})}),(0,v.jsx)(o.Ay,{item:!0,xs:12,sm:6}),(0,v.jsx)(o.Ay,{item:!0,xs:12,sm:6,children:(0,v.jsxs)(i.A,{spacing:1.25,children:[(0,v.jsx)(c.A,{htmlFor:"personal-phone",children:"Phone Number"}),(0,v.jsxs)(i.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:2,children:[(0,v.jsx)(h.A,{defaultValue:"+1",disabled:!0,sx:{cursor:"not-allowed"},children:(0,v.jsx)(m.A,{value:"+1",children:"+91"})}),(0,v.jsx)(d.A,{type:"number",id:"personal-phone",fullWidth:!0,placeholder:"Phone Number",onChange:e=>{e.target.value.toString().length<=10&&C(e.target.value)},value:a,autoComplete:"off",sx:{cursor:"not-allowed"}})]})]})}),(0,v.jsx)(o.Ay,{item:!0,xs:12,sm:6,children:(0,v.jsxs)(i.A,{spacing:1.25,children:[(0,v.jsx)(c.A,{htmlFor:"personal-email",children:"Email Address"}),(0,v.jsx)(d.A,{type:"email",fullWidth:!0,id:"personal-email",placeholder:"Email Address",onChange:e=>b(e.target.value),value:S,autoComplete:"off"})]})}),(0,v.jsx)(o.Ay,{item:!0,xs:12,children:(0,v.jsxs)(i.A,{spacing:1.25,children:[(0,v.jsx)(c.A,{htmlFor:"personal-address",children:"Address"}),(0,v.jsx)(d.A,{fullWidth:!0,id:"personal-address",placeholder:"Address",value:w,onChange:e=>z(e.target.value),inputRef:G})]})}),(0,v.jsx)(o.Ay,{item:!0,xs:12,sm:6,children:(0,v.jsxs)(i.A,{spacing:1.25,children:[(0,v.jsx)(c.A,{htmlFor:"personal-location",children:"Suburb"}),(0,v.jsx)(d.A,{fullWidth:!0,id:"personal-location",placeholder:"Location",onChange:e=>N(e.target.value),value:M,autoComplete:"off"})]})}),(0,v.jsx)(o.Ay,{item:!0,xs:12,sm:6,children:(0,v.jsxs)(i.A,{spacing:1.25,children:[(0,v.jsx)(c.A,{htmlFor:"personal-zipcode",children:"City"}),(0,v.jsx)(d.A,{fullWidth:!0,id:"personal-zipcode",placeholder:"City",onChange:e=>F(e.target.value),value:_,autoComplete:"off"})]})}),(0,v.jsx)(o.Ay,{item:!0,xs:12,sm:6,children:(0,v.jsxs)(i.A,{spacing:1.25,children:[(0,v.jsx)(c.A,{htmlFor:"personal-location",children:"State"}),(0,v.jsx)(d.A,{fullWidth:!0,id:"personal-location",placeholder:"State",onChange:e=>H(e.target.value),value:W,autoComplete:"off"})]})}),(0,v.jsx)(o.Ay,{item:!0,xs:12,sm:6,children:(0,v.jsxs)(i.A,{spacing:1.25,children:[(0,v.jsx)(c.A,{htmlFor:"personal-zipcode",children:"Post Code"}),(0,v.jsx)(d.A,{fullWidth:!0,type:"number",id:"personal-zipcode",placeholder:"Zipcode",onChange:e=>I(e.target.value),value:k,autoComplete:"off"})]})}),(0,v.jsx)(o.Ay,{item:!0,xs:12,sm:6,children:(0,v.jsxs)(i.A,{spacing:1.25,children:[(0,v.jsx)(c.A,{htmlFor:"personal-location",children:"Door No"}),(0,v.jsx)(d.A,{fullWidth:!0,id:"personal-location",placeholder:"Door No",onChange:e=>P(e.target.value),value:L,autoComplete:"off"})]})}),(0,v.jsx)(o.Ay,{item:!0,xs:12,sm:6,children:(0,v.jsxs)(i.A,{spacing:1.25,children:[(0,v.jsx)(c.A,{htmlFor:"personal-email",children:"Landmark"}),(0,v.jsx)(d.A,{type:"email",fullWidth:!0,id:"personal-email",placeholder:"Landmark",onChange:e=>R(e.target.value),value:Y,autoComplete:"off"})]})})]})})}),(0,v.jsx)(o.Ay,{item:!0,xs:12,children:(0,v.jsx)(i.A,{direction:{xs:"column",sm:"row"},justifyContent:"flex-end",alignItems:{xs:"stretch",sm:"center"},spacing:2,children:(0,v.jsx)(u.A,{variant:"contained",onClick:()=>(async()=>{if(console.log("res",businessname,businessno,a,S,w,_,k),E)if(a)if(S)if(w)if(_)if(k)if(M)if(D.lat&&D.lng){let t={customerid:0,configid:1,firstname:E,applocationid:q.applolcationid,profileimage:"",dialcode:"+91",contactno:a,devicetype:"",deviceid:"",customertoken:"",address:w,suburb:M,city:_,state:W,postcode:k,landmark:Y,doorno:L,latitude:D.lat.toString(),longitude:D.lng.toString(),tenantid:parseInt(localStorage.getItem("tenantid")),email:S};console.log(t),Z(!0);try{await g.A.post("".concat("https://jupiter.nearle.app/live/api/v1","/customers/create"),t).then((e=>{console.log(e),e.data.status?((0,j.M8)(" Created Successfully ",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),U("/clients")):"Customer Already available"==e.data.message&&(0,j.M8)("Customer Already available",{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),Z(!1)})).catch((e=>{console.log(e),Z(!1),(0,j.M8)(e.message,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3})}))}catch(e){console.log(e),Z(!1)}}else V("Choose valid address");else V("Fill suburb");else V("Fill post code");else V("Fill City");else V("Fill Address");else V("Fill emailaddress");else V("Fill Mobile Number");else V("Fill Full name")})(),fullWidth:t,children:"Create"})})})]})})]})}}}]); \ No newline at end of file diff --git a/build/static/js/2660.8ec125e1.chunk.js b/build/static/js/2660.8ec125e1.chunk.js deleted file mode 100644 index e047ab9..0000000 --- a/build/static/js/2660.8ec125e1.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[2660],{2660:(e,t,n)=>{n.d(t,{A:()=>C});var o,r=n(98587),i=n(58168),l=n(9950),a=n(3484),d=n(59254),s=n(19608),u=n(44414);const c=["children","classes","className","label","notched"],p=(0,d.Ay)("fieldset",{shouldForwardProp:s.A})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),m=(0,d.Ay)("legend",{shouldForwardProp:s.A})((e=>{let{ownerState:t,theme:n}=e;return(0,i.A)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},t.withLabel&&(0,i.A)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));var h=n(39766),f=n(68624),b=n(79229),A=n(22302),g=n(18463);const y=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],v=(0,d.Ay)(A.Sh,{shouldForwardProp:e=>(0,s.A)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:A.WC})((e=>{let{theme:t,ownerState:n}=e;const o="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,i.A)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,["&:hover .".concat(b.A.notchedOutline)]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{["&:hover .".concat(b.A.notchedOutline)]:{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):o}},["&.".concat(b.A.focused," .").concat(b.A.notchedOutline)]:{borderColor:(t.vars||t).palette[n.color].main,borderWidth:2},["&.".concat(b.A.error," .").concat(b.A.notchedOutline)]:{borderColor:(t.vars||t).palette.error.main},["&.".concat(b.A.disabled," .").concat(b.A.notchedOutline)]:{borderColor:(t.vars||t).palette.action.disabled}},n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&(0,i.A)({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))})),w=(0,d.Ay)((function(e){const{className:t,label:n,notched:l}=e,a=(0,r.A)(e,c),d=null!=n&&""!==n,s=(0,i.A)({},e,{notched:l,withLabel:d});return(0,u.jsx)(p,(0,i.A)({"aria-hidden":!0,className:t,ownerState:s},a,{children:(0,u.jsx)(m,{ownerState:s,children:d?(0,u.jsx)("span",{children:n}):o||(o=(0,u.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}})),x=(0,d.Ay)(A.f3,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:A.Oj})((e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),S=l.forwardRef((function(e,t){var n,o,d,s,c;const p=(0,g.b)({props:e,name:"MuiOutlinedInput"}),{components:m={},fullWidth:S=!1,inputComponent:C="input",label:R,multiline:k=!1,notched:O,slots:z={},type:W="text"}=p,F=(0,r.A)(p,y),B=(e=>{const{classes:t}=e,n=(0,a.A)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},b.v,t);return(0,i.A)({},t,n)})(p),I=(0,h.A)(),L=(0,f.A)({props:p,muiFormControl:I,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),M=(0,i.A)({},p,{color:L.color||"primary",disabled:L.disabled,error:L.error,focused:L.focused,formControl:I,fullWidth:S,hiddenLabel:L.hiddenLabel,multiline:k,size:L.size,type:W}),j=null!=(n=null!=(o=z.root)?o:m.Root)?n:v,N=null!=(d=null!=(s=z.input)?s:m.Input)?d:x;return(0,u.jsx)(A.Ay,(0,i.A)({slots:{root:j,input:N},renderSuffix:e=>(0,u.jsx)(w,{ownerState:M,className:B.notchedOutline,label:null!=R&&""!==R&&L.required?c||(c=(0,u.jsxs)(l.Fragment,{children:[R,"\u2009","*"]})):R,notched:"undefined"!==typeof O?O:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:S,inputComponent:C,multiline:k,ref:t,type:W},F,{classes:(0,i.A)({},B,{notchedOutline:null})}))}));S.muiName="Input";const C=S},15866:(e,t,n)=>{n.d(t,{A:()=>o});const o=n(9950).createContext(void 0)},22302:(e,t,n)=>{n.d(t,{f3:()=>M,Sh:()=>L,Ay:()=>N,Oj:()=>I,WC:()=>B});var o=n(98587),r=n(58168),i=n(37750),l=n(9950),a=n(72004),d=n(3484),s=n(52014),u=n(49456),c=n(89222),p=n(95034),m=n(97654),h=n(44414);const f=["onChange","maxRows","minRows","style","value"];function b(e){return parseInt(e,10)||0}const A={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const g=l.forwardRef((function(e,t){const{onChange:n,maxRows:i,minRows:a=1,style:d,value:s}=e,g=(0,o.A)(e,f),{current:y}=l.useRef(null!=s),v=l.useRef(null),w=(0,u.A)(t,v),x=l.useRef(null),S=l.useRef(null),C=l.useCallback((()=>{const t=v.current,n=(0,c.A)(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const o=S.current;o.style.width=n.width,o.value=t.value||e.placeholder||"x","\n"===o.value.slice(-1)&&(o.value+=" ");const r=n.boxSizing,l=b(n.paddingBottom)+b(n.paddingTop),d=b(n.borderBottomWidth)+b(n.borderTopWidth),s=o.scrollHeight;o.value="x";const u=o.scrollHeight;let p=s;a&&(p=Math.max(Number(a)*u,p)),i&&(p=Math.min(Number(i)*u,p)),p=Math.max(p,u);return{outerHeightStyle:p+("border-box"===r?l+d:0),overflowing:Math.abs(p-s)<=1}}),[i,a,e.placeholder]),R=l.useCallback((()=>{const e=C();if(void 0===(t=e)||null===t||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=e.outerHeightStyle,o=v.current;x.current!==n&&(x.current=n,o.style.height="".concat(n,"px")),o.style.overflow=e.overflowing?"hidden":""}),[C]);(0,p.A)((()=>{const e=()=>{R()};let t;const n=(0,m.A)(e),o=v.current,r=(0,c.A)(o);let i;return r.addEventListener("resize",n),"undefined"!==typeof ResizeObserver&&(i=new ResizeObserver(e),i.observe(o)),()=>{n.clear(),cancelAnimationFrame(t),r.removeEventListener("resize",n),i&&i.disconnect()}}),[C,R]),(0,p.A)((()=>{R()}));return(0,h.jsxs)(l.Fragment,{children:[(0,h.jsx)("textarea",(0,r.A)({value:s,onChange:e=>{y||R(),n&&n(e)},ref:w,rows:a,style:d},g)),(0,h.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:S,tabIndex:-1,style:(0,r.A)({},A,d,{paddingTop:0,paddingBottom:0})})]})}));var y=n(68624),v=n(15866),w=n(39766),x=n(59254),S=n(18463),C=n(89548),R=n(31506),k=n(79044),O=n(71777),z=n(43317),W=n(63589);const F=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],B=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color".concat((0,C.A)(n.color))],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},I=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},L=(0,x.Ay)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:B})((e=>{let{theme:t,ownerState:n}=e;return(0,r.A)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&.".concat(W.A.disabled)]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},n.multiline&&(0,r.A)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),M=(0,x.Ay)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:I})((e=>{let{theme:t,ownerState:n}=e;const o="light"===t.palette.mode,i=(0,r.A)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),l={opacity:"0 !important"},a=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return(0,r.A)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},["label[data-shrink=false] + .".concat(W.A.formControl," &")]:{"&::-webkit-input-placeholder":l,"&::-moz-placeholder":l,"&:-ms-input-placeholder":l,"&::-ms-input-placeholder":l,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},["&.".concat(W.A.disabled)]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===n.size&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===n.type&&{MozAppearance:"textfield"})})),j=(0,h.jsx)(O.A,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),N=l.forwardRef((function(e,t){var n;const u=(0,S.b)({props:e,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:p,autoFocus:m,className:f,components:b={},componentsProps:A={},defaultValue:x,disabled:O,disableInjectingGlobalStyles:B,endAdornment:I,fullWidth:N=!1,id:E,inputComponent:T="input",inputProps:P={},inputRef:H,maxRows:q,minRows:K,multiline:D=!1,name:V,onBlur:_,onChange:U,onClick:G,onFocus:Z,onKeyDown:J,onKeyUp:Q,placeholder:X,readOnly:Y,renderSuffix:$,rows:ee,slotProps:te={},slots:ne={},startAdornment:oe,type:re="text",value:ie}=u,le=(0,o.A)(u,F),ae=null!=P.value?P.value:ie,{current:de}=l.useRef(null!=ae),se=l.useRef(),ue=l.useCallback((e=>{0}),[]),ce=(0,R.A)(se,H,P.ref,ue),[pe,me]=l.useState(!1),he=(0,w.A)();const fe=(0,y.A)({props:u,muiFormControl:he,states:["color","disabled","error","hiddenLabel","size","required","filled"]});fe.focused=he?he.focused:pe,l.useEffect((()=>{!he&&O&&pe&&(me(!1),_&&_())}),[he,O,pe,_]);const be=he&&he.onFilled,Ae=he&&he.onEmpty,ge=l.useCallback((e=>{(0,z.lq)(e)?be&&be():Ae&&Ae()}),[be,Ae]);(0,k.A)((()=>{de&&ge({value:ae})}),[ae,ge,de]);l.useEffect((()=>{ge(se.current)}),[]);let ye=T,ve=P;D&&"input"===ye&&(ve=ee?(0,r.A)({type:void 0,minRows:ee,maxRows:ee},ve):(0,r.A)({type:void 0,maxRows:q,minRows:K},ve),ye=g);l.useEffect((()=>{he&&he.setAdornedStart(Boolean(oe))}),[he,oe]);const we=(0,r.A)({},u,{color:fe.color||"primary",disabled:fe.disabled,endAdornment:I,error:fe.error,focused:fe.focused,formControl:he,fullWidth:N,hiddenLabel:fe.hiddenLabel,multiline:D,size:fe.size,startAdornment:oe,type:re}),xe=(e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:i,focused:l,formControl:a,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:p,size:m,startAdornment:h,type:f}=e,b={root:["root","color".concat((0,C.A)(n)),o&&"disabled",r&&"error",s&&"fullWidth",l&&"focused",a&&"formControl",m&&"medium"!==m&&"size".concat((0,C.A)(m)),c&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",o&&"disabled","search"===f&&"inputTypeSearch",c&&"inputMultiline","small"===m&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return(0,d.A)(b,W.g,t)})(we),Se=ne.root||b.Root||L,Ce=te.root||A.root||{},Re=ne.input||b.Input||M;return ve=(0,r.A)({},ve,null!=(n=te.input)?n:A.input),(0,h.jsxs)(l.Fragment,{children:[!B&&j,(0,h.jsxs)(Se,(0,r.A)({},Ce,!(0,s.A)(Se)&&{ownerState:(0,r.A)({},we,Ce.ownerState)},{ref:t,onClick:e=>{se.current&&e.currentTarget===e.target&&se.current.focus(),G&&G(e)}},le,{className:(0,a.A)(xe.root,Ce.className,f,Y&&"MuiInputBase-readOnly"),children:[oe,(0,h.jsx)(v.A.Provider,{value:null,children:(0,h.jsx)(Re,(0,r.A)({ownerState:we,"aria-invalid":fe.error,"aria-describedby":c,autoComplete:p,autoFocus:m,defaultValue:x,disabled:fe.disabled,id:E,onAnimationStart:e=>{ge("mui-auto-fill-cancel"===e.animationName?se.current:{value:"x"})},name:V,placeholder:X,readOnly:Y,required:fe.required,rows:ee,value:ae,onKeyDown:J,onKeyUp:Q,type:re},ve,!(0,s.A)(Re)&&{as:ye,ownerState:(0,r.A)({},we,ve.ownerState)},{ref:ce,className:(0,a.A)(xe.input,ve.className,Y&&"MuiInputBase-readOnly"),onBlur:e=>{_&&_(e),P.onBlur&&P.onBlur(e),he&&he.onBlur?he.onBlur(e):me(!1)},onChange:function(e){if(!de){const t=e.target||se.current;if(null==t)throw new Error((0,i.A)(1));ge({value:t.value})}for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o{fe.disabled?e.stopPropagation():(Z&&Z(e),P.onFocus&&P.onFocus(e),he&&he.onFocus?he.onFocus(e):me(!0))}}))}),I,$?$((0,r.A)({},fe,{startAdornment:oe})):null]}))]})}))},39766:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(9950),r=n(15866);function i(){return o.useContext(r.A)}},43317:(e,t,n)=>{function o(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function r(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(o(e.value)&&""!==e.value||t&&o(e.defaultValue)&&""!==e.defaultValue)}function i(e){return e.startAdornment}n.d(t,{gr:()=>i,lq:()=>r})},63589:(e,t,n)=>{n.d(t,{A:()=>l,g:()=>i});var o=n(45558),r=n(1614);function i(e){return(0,r.Ay)("MuiInputBase",e)}const l=(0,o.A)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"])},68624:(e,t,n)=>{function o(e){let{props:t,states:n,muiFormControl:o}=e;return n.reduce(((e,n)=>(e[n]=t[n],o&&"undefined"===typeof t[n]&&(e[n]=o[n]),e)),{})}n.d(t,{A:()=>o})},79229:(e,t,n)=>{n.d(t,{A:()=>d,v:()=>a});var o=n(58168),r=n(45558),i=n(1614),l=n(63589);function a(e){return(0,i.Ay)("MuiOutlinedInput",e)}const d=(0,o.A)({},l.A,(0,r.A)("MuiOutlinedInput",["root","notchedOutline","input"]))}}]); \ No newline at end of file diff --git a/build/static/js/2851.828e003e.chunk.js b/build/static/js/2851.aa3e7db5.chunk.js similarity index 81% rename from build/static/js/2851.828e003e.chunk.js rename to build/static/js/2851.aa3e7db5.chunk.js index 3ee4d84..1f9206b 100644 --- a/build/static/js/2851.828e003e.chunk.js +++ b/build/static/js/2851.aa3e7db5.chunk.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[2851],{22851:(e,o,r)=>{r.r(o),r.d(o,{default:()=>Be});var t=r(89379),i=r(85571),n=r(8881),l=r(24513),s=r(36256),d=r(9950),c=r(4159),a=r.n(c),h=r(26910),x=r(14857),u=r(31222),p=r(51778),g=r(36150),f=r(60010),v=r(2235),A=r(41413),b=r(47223),m=r(55158),j=r(60899),w=r(93230),S=r(82053),y=r(77922),W=r(25277),C=r(29925),k=r(16491),R=r(1320),z=r(93038),D=r(25333),P=r(15769),I=r(69780),L=r(9213),M=r(21671),Y=r(34075),T=r(83274),F=r(33738),E=r(17239),K=r(23266),O=r(96583),N=r(28170),H=r(10226),B=r(40033),J=r(79739),q=r(37476),G=r(56712),Z=r(81417),U=r(96600),V=r(53132),Q=r(94289),X=r(57326),_=r(50624),$=r(55916),ee=r(52351),oe=r(67562),re=r(49883),te=r(81425),ie=r(56311),ne=r(20466),le=r(96646),se=r(59212),de=r(58691),ce=r(27001),ae=r(36803),he=r(23787),xe=r(44414),ue=r(36220);a().extend(ue);const pe=14,ge=10,fe="0 1px 3px rgba(15, 23, 42, 0.06)",ve="0 12px 32px rgba(15, 23, 42, 0.12)",Ae="#0f172a",be="#64748b",me="#94a3b8",je="#e2e8f0",we="#cbd5e1",Se="#f1f5f9",ye="#ffffff",We="#f8fafc",Ce="#662582",ke=(e,o)=>"".concat(e).concat(o),Re=e=>ke(e,"08"),ze=e=>ke(e,"18"),De=e=>ke(e,"26"),Pe=e=>ke(e,"55"),Ie=()=>({cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:ge+"px",bgcolor:ye,fontWeight:600,color:Ae,paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:je,borderWidth:1},"&:hover fieldset":{borderColor:we},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(De(Ce))},"&.Mui-focused fieldset":{borderColor:Ce,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:me}}),Le={pending:{label:"Pending",color:"#f59e0b",icon:u.tX0},accepted:{label:"Accepted",color:"#6366f1",icon:u.Azs},arrived:{label:"Arrived",color:"#06b6d4",icon:u.gwi},picked:{label:"Picked",color:"#8b5cf6",icon:u.gsJ},active:{label:"Active",color:"#14b8a6",icon:u.pk7},skipped:{label:"Skipped",color:"#f97316",icon:u.ivF},delivered:{label:"Delivered",color:"#10b981",icon:u.mU9},cancelled:{label:"Cancelled",color:"#ef4444",icon:u.uDv}},Me=[{status:"pending",countKey:"uncoveredLength"},{status:"accepted",countKey:"assignedLength"},{status:"arrived",countKey:"arrivedLength"},{status:"picked",countKey:"pickedLength"},{status:"active",countKey:"activeLength"},{status:"skipped",countKey:"skippedLength"},{status:"delivered",countKey:"coveredLength"},{status:"cancelled",countKey:"cancelLength"}],Ye=[{key:"created",label:"Created Orders",color:"#0ea5e9",icon:u.HU2},{key:"pending",label:"Pending Orders",color:"#f59e0b",icon:u.G6c},{key:"delivered",label:"Delivered Orders",color:"#10b981",icon:u.cAP},{key:"cancelled",label:"Cancelled Orders",color:"#ef4444",icon:u.qiG}],Te=[{id:"all",label:"All Batches",range:"Across the day",color:"#7c3aed",iconKey:"all"},{id:"morning",label:"Morning Batch",range:"12 AM to 8 AM",color:"#0ea5e9",iconKey:"morning",startHour:0,endHour:8},{id:"afternoon",label:"Afternoon Batch",range:"9 AM to 12:30 PM",color:"#f59e0b",iconKey:"afternoon",startHour:9,endHour:12.5},{id:"evening",label:"Evening Batch",range:"4 PM to 7 PM",color:"#6366f1",iconKey:"evening",startHour:16,endHour:19}],Fe={all:u.lB9,morning:u.N3N,afternoon:u.aSE,evening:u.giK},Ee=()=>{const e=a()(),o=e.hour()+e.minute()/60;for(const r of Te)if("all"!==r.id&&o>=r.startHour&&o{let o=null;for(const n of Ke)if(null!==e&&void 0!==e&&e[n]){o=e[n];break}if(!o)return null;const r=String(o).trim();if(/^\d{4}-\d{2}-\d{2}$/.test(r))return null;const t=a()(o);if(!t.isValid())return null;const i=t.hour()+t.minute()/60;for(const n of Te)if("all"!==n.id&&i>=n.startHour&&i(0,xe.jsx)(v.A,(0,t.A)((0,t.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:ve,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),He=e=>{let{color:o,selected:r,size:t=24,children:i}=e;return(0,xe.jsx)(A.A,{sx:{width:t,height:t,bgcolor:r?o:ze(o),color:r?"#fff":o,transition:"background-color 0.15s, color 0.15s"},children:i})},Be=()=>{const e=localStorage.getItem("userid"),o=(0,x.A)(),r=(0,b.A)(o.breakpoints.down("md")),c=(0,d.useRef)(),ue=(0,d.useRef)(),[ke,Ke]=(0,d.useState)([]),[Be,Je]=(0,d.useState)(!1),[qe,Ge]=(0,d.useState)("All"),[Ze,Ue]=(0,d.useState)(0),[Ve,Qe]=(0,d.useState)(a()().format("YYYY-MM-DD")),[Xe,_e]=(0,d.useState)(a()().format("YYYY-MM-DD")),[$e,eo]=(0,d.useState)("Pending"),[oo,ro]=(0,d.useState)(0),[to,io]=(0,d.useState)(!1),[no,lo]=(0,d.useState)("Today"),[so,co]=(0,d.useState)(""),[ao,ho]=(0,d.useState)(),[xo,uo]=(0,d.useState)(),[po,go]=(0,d.useState)(""),[fo,vo]=(0,d.useState)({}),[Ao,bo]=(0,d.useState)(""),[mo,jo]=(0,d.useState)(""),[wo,So]=(0,d.useState)("pending"),[yo,Wo]=(0,d.useState)("delivered"),Co=(0,d.useRef)(null),ko=(0,d.useRef)(null),[Ro,zo]=d.useState(0),[Do,Po]=d.useState(50),[Io,Lo]=d.useState(),[Mo,Yo]=(0,d.useState)(null),[To,Fo]=(0,d.useState)(null),[Eo,Ko]=(0,d.useState)(""),[Oo,No]=(0,d.useState)(""),[Ho,Bo]=d.useState(null),[Jo,qo]=(0,d.useState)(null),[Go,Zo]=(0,d.useState)(!1),[Uo,Vo]=d.useState(null),[Qo,Xo]=(0,d.useState)(""),[_o,$o]=(0,d.useState)(!1),[er,or]=(0,d.useState)(!1),[rr,tr]=(0,d.useState)(""),[ir,nr]=(0,d.useState)(null),[lr,sr]=(0,d.useState)(0),[dr,cr]=(0,d.useState)(0),[ar,hr]=(0,d.useState)(null),[xr,ur]=(0,d.useState)(null),[pr,gr]=(0,d.useState)(0),[fr,vr]=(0,d.useState)(Ee),Ar=localStorage.getItem("roleid");(0,d.useEffect)((()=>{sr(0),hr(null),cr(0),ur(null)}),[Ze]),(0,d.useEffect)((()=>{cr(0),ur(null)}),[lr]);const br=Boolean(Ho),mr=(e,o)=>{qo(o),console.log("selectedRow",o),Bo(e.currentTarget)},jr=()=>{Bo(null)},{mutate:wr}=(0,p.n)({mutationFn:e=>{let{selectedRow:o,cancelFeed:r}=e;return(0,te.zF)(o,r)},onSuccess:()=>{Lr("Delivery Cancelled Successfully","success"),$o(!1),ot(),Kr(),qr()},onError:e=>{Lr(e.message,"error")}}),{data:Sr,isLoading:yr,isError:Wr,error:Cr}=(0,g.I)({queryKey:["tenantlist",Ze],queryFn:()=>(0,te.Mn)(Ze),enabled:0!==Ze}),{data:kr,isLoading:Rr,isError:zr,error:Dr}=(0,g.I)({queryKey:["gettenantlocations",lr],queryFn:()=>(0,te.DL)(lr),enabled:0!==lr}),Pr=(0,p.n)({mutationFn:te.k3,onSuccess:()=>{(0,n.M8)("Notification sent Successfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3})},onError:e=>{(0,n.M8)(e.message,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3})}}),Ir=(0,p.n)({mutationFn:e=>{let{selectedRider:o,selectedRow:r}=e;return(0,te.R_)(o,r)},onSuccess:(e,o)=>{let{selectedRider:r,selectedRow:t}=o;Zo(!1),or(!1),"Success"===e.data.message&&(i.A.info("Rider changed successfully for order ID ".concat(null===t||void 0===t?void 0:t.orderid,". New Rider: ").concat(null===r||void 0===r?void 0:r.firstname," ").concat(null===r||void 0===r?void 0:r.lastname)),Lr("Rider Changed Successfully","success")),ot(),Kr(),qr(),Pr.mutate(r.userfcmtoken)},onError:(e,o)=>{let{selectedRider:r,selectedRow:t}=o;i.A.error("Failed to change rider for order ID ".concat(null===t||void 0===t?void 0:t.orderid,":"),e),Lr(e.message,"error"),Zo(!1)}}),Lr=(e,o)=>{(0,n.M8)(e,{variant:o,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3})},{data:Mr}=(0,g.I)({queryKey:["orderdetails",To],queryFn:()=>(0,te.z3)(To),enabled:!!To}),Yr=()=>{Je(!1)},{isLoading:Tr,isError:Fr,error:Er,refetch:Kr}=(0,f.q)({queryKey:["fetchdeliveries",Ze,e,wo,Ve,Xe,Do,Oo,lr,dr,pr],queryFn:te.tL,getNextPageParam:e=>{var o;return null!==(o=e.nextPage)&&void 0!==o?o:void 0}}),{data:Or,fetchNextPage:Nr,hasNextPage:Hr,isFetchingNextPage:Br,isLoading:Jr,refetch:qr}=(0,f.q)({queryKey:["fetchdeliveries-batchcounts",Ze,e,"all",Ve,Xe,200,"",lr,dr,pr],queryFn:te.tL,getNextPageParam:e=>{var o;return null!==(o=e.nextPage)&&void 0!==o?o:void 0}}),Gr=(0,d.useMemo)((()=>((null===Or||void 0===Or?void 0:Or.pages)||[]).flatMap((e=>e.rows||[]))),[Or]);(0,d.useEffect)((()=>{Hr&&!Br&&Nr()}),[Hr,Br,Nr,Gr.length]);const Zr=Hr||Br,Ur=(0,d.useMemo)((()=>{const e=String(wo||"").toLowerCase(),o=String(Oo||"").trim().toLowerCase();return Gr.filter((r=>{if("all"!==fr&&Oe(r)!==fr)return!1;const t=String(r.orderstatus||"").toLowerCase();if(e&&t!==e)return!1;if(o){if(![r.deliverycustomer,r.deliveryaddress,r.deliverysuburb,r.pickupcustomer,r.pickupaddress,r.pickupsuburb,r.orderid,r.tenantname,r.ridername,r.username].map((e=>String(e||"").toLowerCase())).join(" ").includes(o))return!1}return!0}))}),[Gr,fr,wo,Oo]),Vr=(0,d.useMemo)((()=>{const e={uncoveredLength:0,assignedLength:0,arrivedLength:0,pickedLength:0,activeLength:0,skippedLength:0,coveredLength:0,cancelLength:0};return Gr.forEach((o=>{if("all"!==fr&&Oe(o)!==fr)return;switch(String(o.orderstatus||"").toLowerCase()){case"pending":e.uncoveredLength+=1;break;case"accepted":case"assigned":e.assignedLength+=1;break;case"arrived":e.arrivedLength+=1;break;case"picked":e.pickedLength+=1;break;case"active":e.activeLength+=1;break;case"skipped":e.skippedLength+=1;break;case"delivered":e.coveredLength+=1;break;case"cancelled":case"canceled":e.cancelLength+=1}})),e}),[Gr,fr]),Qr=(0,d.useMemo)((()=>{const e={all:0};return Te.forEach((o=>{"all"!==o.id&&(e[o.id]=0)})),Gr.forEach((o=>{const r=Oe(o);r&&(e[r]=(e[r]||0)+1,e.all+=1)})),e}),[Gr]);(0,d.useEffect)((()=>{if(!Hr)return;const e=new IntersectionObserver((e=>{e[0].isIntersecting&&Nr()}),{root:document.querySelector(".MuiTableContainer-root"),rootMargin:"0px",threshold:1});return c.current&&e.observe(c.current),()=>{c.current&&e.unobserve(c.current)}}),[Hr,Nr]);const{data:Xr={},isLoading:_r,isError:$r,error:et,refetch:ot}=(0,g.I)({queryKey:["fetchCountData",Ze,e,Ve,Xe,Do,Oo,lr,dr,pr,$e],queryFn:()=>(0,te.qB)(Ze,e,Ve,Xe,Do,Oo,lr,dr,pr)});(0,d.useEffect)((()=>{console.log("countData",Xr),0===oo&&Xr&&Lo(Xr.uncoveredLength)}),[Xr]);const{data:rt=[],isLoading:tt,isError:it,error:nt}=(0,g.I)({queryKey:["ridersList",Ze],queryFn:te.Sd,enabled:Boolean(Ze),onError:e=>{(0,ne.k)(e.message,"error",2e3)}}),lt=(0,p.n)({mutationFn:e=>(0,te.wT)(e),onSuccess:e=>{console.log(e),e.data.status&&(Lr("Updated Successfully","success"),uo(""),go(""),Je(!1),Kr(),ot(),qr())},onError:e=>{console.log(e),Lr(e.message,"success")}}),st=Fr?"Error fetching deliveries: ".concat(null===Er||void 0===Er?void 0:Er.message):$r?"Error fetching count summary: ".concat(null===et||void 0===et?void 0:et.message):it?"Error fetching riders: ".concat(null===nt||void 0===nt?void 0:nt.message):Wr?"Error tenant list: ".concat(null===Cr||void 0===Cr?void 0:Cr.message):zr?"Error location list: ".concat(null===Dr||void 0===Dr?void 0:Dr.message):null;return st?(console.log("errorMessage",st),(0,ne.k)(st,"error",2e3),null):(0,xe.jsxs)(xe.Fragment,{children:[(_r||Jr||yr||Rr||tt)&&(0,xe.jsx)(xe.Fragment,{children:(0,xe.jsx)(ee.A,{})}),(0,xe.jsx)(m.A,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:_r||Tr||yr||Rr||tt}),(0,xe.jsx)(ce.A,{title:"Deliveries",subtitle:"Live \xb7 ".concat(qe||"All Zones"),live:!0,action:(0,xe.jsx)(se.A,{ref:Co,locaName:qe,setAppId:Ue,setLocoName:Ge,setPage:zo,pill:!0,accentColor:"#662582",icon:(0,xe.jsx)(u.HPi,{size:14}),placeholder:"Select Zone",paperComponent:Ne,sx:{width:{xs:"100%",sm:280},zIndex:100}})}),(0,xe.jsx)(j.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:[(0,t.A)((0,t.A)({},Ye[0]),{},{value:Qr.all,percentage:null}),(0,t.A)((0,t.A)({},Ye[1]),{},{value:null===Xr||void 0===Xr?void 0:Xr.uncoveredLength,percentage:null!==Xr&&void 0!==Xr&&Xr.total?Math.round(Xr.uncoveredLength/Xr.total*100):0}),(0,t.A)((0,t.A)({},Ye[2]),{},{value:null===Xr||void 0===Xr?void 0:Xr.coveredLength,percentage:null!==Xr&&void 0!==Xr&&Xr.total?Math.round(Xr.coveredLength/Xr.total*100):0}),(0,t.A)((0,t.A)({},Ye[3]),{},{value:null===Xr||void 0===Xr?void 0:Xr.cancelLength,percentage:null!==Xr&&void 0!==Xr&&Xr.total?Math.round(Xr.cancelLength/Xr.total*100):0})].map((e=>{var o;const r=e.icon,t="number"===typeof e.percentage?e.percentage:Number(e.percentage),i=!Number.isNaN(t)&&void 0!==e.percentage&&null!==e.percentage;return(0,xe.jsx)(j.Ay,{item:!0,xs:6,sm:6,md:3,children:(0,xe.jsx)(ae.A,{title:e.label,value:null!==(o=e.value)&&void 0!==o?o:0,icon:(0,xe.jsx)(r,{size:20}),color:e.color,loading:_r,caption:i?"".concat(Math.abs(t),"% of total"):void 0})},e.key)}))}),(0,xe.jsxs)(v.A,{elevation:0,sx:{mt:{xs:1.5,md:2},mb:{xs:1.5,md:2},p:{xs:1.5,md:2},borderRadius:pe/8,border:"1px solid",borderColor:je,background:"#fff",boxShadow:fe},children:[(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:1,sx:{mb:{xs:1,md:1.5},color:be},children:[(0,xe.jsx)(A.A,{sx:{width:28,height:28,bgcolor:ze("#662582"),color:"#662582"},children:(0,xe.jsx)(u.MiI,{size:16})}),(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:800,letterSpacing:.6,textTransform:"uppercase",color:be},children:"Filters"})]}),(0,xe.jsxs)(w.A,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:1.25,sx:{flexWrap:"wrap"},children:[(0,xe.jsxs)(w.A,{direction:"row",flexWrap:"wrap",gap:1.5,alignItems:"center",children:[(()=>{const e=Te.find((e=>e.id===fr))||Te[0],o=Fe[e.iconKey]||u.VP9;return(0,xe.jsx)(y.A,{disableClearable:!0,size:"small",openOnFocus:!0,selectOnFocus:!0,filterOptions:e=>e,options:Te,value:e,onChange:(e,o)=>o&&vr(o.id),getOptionLabel:e=>e.label,isOptionEqualToValue:(e,o)=>e.id===o.id,PaperComponent:Ne,ListboxProps:{sx:{py:0,maxHeight:360}},renderOption:(e,o,r)=>{var i;let{selected:n}=r;const l=Fe[o.iconKey]||u.VP9,s=null!==(i=Qr[o.id])&&void 0!==i?i:0;return(0,d.createElement)("li",(0,t.A)((0,t.A)({},e),{},{key:o.id,style:{display:"flex",alignItems:"center",gap:12,padding:"10px 14px",borderBottom:"1px solid #f1f5f9",backgroundColor:n?"".concat(o.color,"10"):"transparent",transition:"background-color 0.15s"}}),(0,xe.jsx)(A.A,{sx:{width:36,height:36,bgcolor:n?o.color:"".concat(o.color,"18"),color:n?"#fff":o.color,transition:"background-color 0.15s, color 0.15s"},children:(0,xe.jsx)(l,{size:20})}),(0,xe.jsxs)(w.A,{direction:"column",spacing:0,flex:1,minWidth:0,children:[(0,xe.jsx)(S.A,{variant:"body2",fontWeight:700,color:"#0f172a",noWrap:!0,children:o.label}),(0,xe.jsx)(S.A,{variant:"caption",color:"text.secondary",noWrap:!0,children:o.range})]}),(0,xe.jsx)(W.A,{size:"small",label:s,sx:{minWidth:36,height:22,fontWeight:800,fontSize:11,bgcolor:s>0?"".concat(o.color,"18"):"#f1f5f9",color:s>0?o.color:"#94a3b8",border:"1px solid ".concat(s>0?o.color+"55":"#e2e8f0"),"& .MuiChip-label":{px:.75}}}),n&&(0,xe.jsx)(A.A,{sx:{width:22,height:22,bgcolor:o.color,color:"#fff"},children:(0,xe.jsx)(u.g9_,{size:14})}))},renderInput:r=>{var i;return(0,xe.jsx)(C.A,(0,t.A)((0,t.A)({},r),{},{placeholder:"Batch",inputProps:(0,t.A)((0,t.A)({},r.inputProps),{},{readOnly:!0,style:(0,t.A)((0,t.A)({},(null===(i=r.inputProps)||void 0===i?void 0:i.style)||{}),{},{cursor:"pointer",caretColor:"transparent"})}),InputProps:(0,t.A)((0,t.A)({},r.InputProps),{},{startAdornment:(0,xe.jsx)(w.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,xe.jsx)(A.A,{sx:{width:24,height:24,bgcolor:"".concat(e.color,"18"),color:e.color},children:(0,xe.jsx)(o,{size:14})})})}),sx:{minWidth:{xs:180,sm:220,md:240},cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(De("#662582"))},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}}))}})})(),Ve&&Xe&&(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:.75,onClick:()=>io(!0),sx:{pl:.5,pr:1.25,py:.5,borderRadius:"10px",cursor:"pointer",bgcolor:"#ffffff",border:"1px solid #e2e8f0",transition:"border-color 0.15s","&:hover":{borderColor:"#cbd5e1"}},children:[(0,xe.jsx)(He,{color:"#94a3b8",children:(0,xe.jsx)(u.tjE,{size:14})}),(0,xe.jsxs)(S.A,{variant:"caption",sx:{fontWeight:600,color:"#475569",whiteSpace:"nowrap"},children:[a()(Ve).format("DD MMM")," \u2013 ",a()(Xe).format("DD MMM")]})]})]}),(0,xe.jsx)(y.A,{disablePortal:!0,options:Sr||[],value:ar,PaperComponent:Ne,sx:{flex:{xs:"1 1 100%",sm:"1 1 180px"},minWidth:{xs:"100%",sm:180}},onOpen:e=>{Ze||(e.preventDefault(),(0,ne.k)("Please select your zone first!","warning",3e3),setTimeout((()=>{var e;return null===(e=Co.current)||void 0===e?void 0:e.focus()}),0))},onChange:(e,o,r)=>{"clear"===r?(sr(0),hr(null),cr(0),ur(null)):(sr((null===o||void 0===o?void 0:o.tenantid)||0),hr(o),cr(0),ur(null))},renderInput:e=>(0,xe.jsx)(C.A,(0,t.A)((0,t.A)({},e),{},{inputRef:ko,placeholder:"Select Tenant",InputProps:(0,t.A)((0,t.A)({},e.InputProps),{},{startAdornment:(0,xe.jsx)(w.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,xe.jsx)(He,{color:"#94a3b8",children:(0,xe.jsx)(u.gl1,{size:14})})})}),sx:Ie()}))}),(0,xe.jsx)(y.A,{disablePortal:!0,options:kr||[],getOptionLabel:e=>"".concat(e.locationname," (").concat(e.suburb,")")||0,value:xr,PaperComponent:Ne,sx:{flex:{xs:"1 1 100%",sm:"1 1 180px"},minWidth:{xs:"100%",sm:180}},onOpen:e=>{Ze||lr?lr||(e.preventDefault(),(0,ne.k)("Please select your Tenant first!","warning",3e3),setTimeout((()=>{var e;return null===(e=ko.current)||void 0===e?void 0:e.focus()}),0)):(e.preventDefault(),(0,ne.k)("Please select your Zone and Tenant first!","warning",3e3),setTimeout((()=>{var e;return null===(e=Co.current)||void 0===e?void 0:e.focus()}),0))},onChange:(e,o,r)=>{"clear"===r?(cr(0),ur(null)):(cr(o.locationid||0),ur(o))},renderInput:e=>(0,xe.jsx)(C.A,(0,t.A)((0,t.A)({},e),{},{placeholder:"Select Location",InputProps:(0,t.A)((0,t.A)({},e.InputProps),{},{startAdornment:(0,xe.jsx)(w.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,xe.jsx)(He,{color:"#94a3b8",children:(0,xe.jsx)(u.gwi,{size:14})})})}),sx:Ie()}))}),(0,xe.jsx)(y.A,{disabled:tt,options:rt,PaperComponent:Ne,getOptionLabel:e=>"".concat(e.firstname," ").concat(e.lastname," (").concat(e.contactno,")"),sx:{flex:{xs:"1 1 100%",sm:"1 1 180px"},minWidth:{xs:"100%",sm:180}},onChange:(e,o,r)=>{gr("clear"===r?0:o.userid)},onOpen:e=>{Ze||(e.preventDefault(),(0,ne.k)("Please select your zone first!","warning",3e3),setTimeout((()=>{var e;return null===(e=Co.current)||void 0===e?void 0:e.focus()}),0))},renderInput:e=>(0,xe.jsx)(C.A,(0,t.A)((0,t.A)({},e),{},{placeholder:"Choose Rider",InputProps:(0,t.A)((0,t.A)({},e.InputProps),{},{startAdornment:(0,xe.jsx)(w.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,xe.jsx)(He,{color:"#94a3b8",children:(0,xe.jsx)(u.bsz,{size:14})})})}),sx:Ie()}))})]})]}),(0,xe.jsx)(v.A,{elevation:0,sx:{p:{xs:1,md:1.5},borderTopLeftRadius:pe/8,borderTopRightRadius:pe/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:je,borderBottom:0,background:"#fff"},children:(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:1.5,sx:{flexWrap:"wrap-reverse"},children:[(0,xe.jsx)(w.A,{direction:"row",spacing:.75,sx:{flex:1,overflowX:"auto",py:.5,px:.25,"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-thumb":{backgroundColor:je,borderRadius:4}},children:Me.map(((e,o)=>{var r;const t=Le[e.status],i=t.icon,n=oo===o,l=null!==(r=Vr[e.countKey])&&void 0!==r?r:0;return(0,xe.jsxs)(k.A,{onClick:e=>{return r=o,zo(0),ro(r),Po(50),0===r&&(eo("Pending"),So("pending"),Lo(null===Xr||void 0===Xr?void 0:Xr.uncoveredLength)),1===r&&(eo("Assigned"),So("accepted"),Lo(null===Xr||void 0===Xr?void 0:Xr.assignedLength)),2===r&&(eo("Arrived"),So("arrived"),Lo(null===Xr||void 0===Xr?void 0:Xr.arrivedLength)),3===r&&(eo("Picked"),So("picked"),Lo(null===Xr||void 0===Xr?void 0:Xr.pickedLength)),4===r&&(eo("Active"),So("active"),Lo(null===Xr||void 0===Xr?void 0:Xr.activeLength)),5===r&&(eo("Skipped"),So("skipped"),Lo(null===Xr||void 0===Xr?void 0:Xr.skippedLength)),6===r&&(eo("Delivered"),So("delivered"),Lo(null===Xr||void 0===Xr?void 0:Xr.coveredLength)),7===r&&(eo("Cancelled"),So("cancelled"),Lo(null===Xr||void 0===Xr?void 0:Xr.cancelLength)),console.log(r),void Ko("");var r},sx:{display:"inline-flex",alignItems:"center",gap:{xs:.625,md:.875},pl:.5,pr:{xs:1,md:1.25},py:.5,flexShrink:0,cursor:"pointer",borderRadius:ge+"px",border:"1px solid ".concat(n?t.color:je),bgcolor:n?t.color:ye,color:n?"#fff":be,fontWeight:600,boxShadow:"none",transition:"background-color 0.15s, border-color 0.15s, color 0.15s","&:hover":{borderColor:n?t.color:we,bgcolor:n?t.color:We}},children:[(0,xe.jsx)(A.A,{sx:{width:{xs:20,md:22},height:{xs:20,md:22},bgcolor:n?"rgba(255,255,255,0.22)":ze(t.color),color:n?"#fff":t.color},children:(0,xe.jsx)(i,{size:12})}),(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:600,fontSize:{xs:11.5,md:13},lineHeight:1},children:t.label}),(0,xe.jsx)(k.A,{sx:{minWidth:{xs:20,md:24},height:{xs:18,md:20},px:.625,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:999,fontSize:{xs:10,md:11},fontWeight:700,bgcolor:n?"rgba(255,255,255,0.22)":We,color:n?"#fff":be,border:"none"},children:l})]},e.status)}))}),(0,xe.jsx)(k.A,{sx:{width:{xs:"100%",sm:240,lg:280},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,xe.jsx)(ie.A,{value:Eo,onChange:Ko,onDebouncedChange:No,sx:{m:0,width:"100%",borderRadius:ge+"px",bgcolor:ye,"& fieldset":{borderColor:je,borderWidth:1},"&:hover fieldset":{borderColor:we},"&.Mui-focused fieldset":{borderColor:Ce,borderWidth:1.5},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(De(Ce))}}})})]})}),(0,xe.jsx)(v.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:pe/8,borderBottomRightRadius:pe/8,border:"1px solid",borderColor:je,overflow:"hidden",background:"#fff"},children:(0,xe.jsx)(R.A,{ref:ue,onScroll:e=>{const{scrollTop:o,scrollHeight:r,clientHeight:t}=e.currentTarget;o+t>=r-50&&Hr&&!Br&&Nr()},sx:{maxHeight:{xs:"calc(100vh - 220px)",md:"calc(100vh - 190px)"},overflow:"auto",overflowX:"auto","&::-webkit-scrollbar":{width:"10px",height:"10px",cursor:"pointer"},"&::-webkit-scrollbar-thumb":{backgroundColor:Pe("#662582"),borderRadius:"8px",cursor:"pointer","&:hover":{backgroundColor:"#662582"}},"&::-webkit-scrollbar-track":{backgroundColor:We}},children:((e,o,i,n,s,h)=>{const x="Cancelled"!==$e&&"Delivered"!==$e,p="Created"==$e,g=15+(x?1:0)+(p?1:0);return r?(0,xe.jsxs)(he.nV,{sx:{p:1.25},children:[0===Ur.length&&!Go&&!Zr&&(0,xe.jsxs)(w.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,xe.jsx)(A.A,{sx:{width:64,height:64,bgcolor:ze("#94a3b8"),color:me},children:(0,xe.jsx)(u.gsJ,{size:28})}),(0,xe.jsx)(S.A,{variant:"subtitle1",sx:{fontWeight:700,color:Ae},children:"No deliveries to show"}),(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be,textAlign:"center",px:2},children:"all"===fr?"No ".concat(((null===(e=Le[wo])||void 0===e?void 0:e.label)||$e).toLowerCase()," orders for this filter."):"No ".concat(((null===(o=Le[wo])||void 0===o?void 0:o.label)||$e).toLowerCase()," orders in ").concat((null===(i=Te.find((e=>e.id===fr)))||void 0===i?void 0:i.label)||"this batch",".")})]}),0===Ur.length&&Zr&&(0,xe.jsxs)(w.A,{alignItems:"center",sx:{py:6},children:[(0,xe.jsx)(de.A,{}),(0,xe.jsx)(S.A,{variant:"caption",color:"text.secondary",sx:{mt:1},children:"Loading deliveries\u2026"})]}),Ur.map(((e,o)=>{var r,i,n,s,d,c,h,g;const f=Le[String(e.orderstatus||"").toLowerCase()]||{label:e.orderstatus||"\u2014",color:"#94a3b8",icon:u.bfP},v=f.icon,A=!!ke.find((o=>o.orderheaderid==e.orderheaderid)),b=(null===Mo||void 0===Mo?void 0:Mo.orderid)===(null===e||void 0===e?void 0:e.orderid),m=e=>({display:"inline-flex",alignItems:"center",justifyContent:"center",color:e,fontWeight:700,fontSize:12,whiteSpace:"nowrap"});return(0,xe.jsxs)(he.pg,{accent:f.color,selected:A,header:(0,xe.jsxs)(w.A,{spacing:1.25,children:[(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:.75,sx:{minWidth:0},children:[p&&(0,xe.jsx)(z.A,{size:"small",sx:{p:.25},onChange:o=>{if(o.target.checked){let o=ke;o.push((0,t.A)((0,t.A)({},e),{},{sno:ke.length+1})),Ke([...o])}else{let o=ke.find((o=>o.orderheaderid==e.orderheaderid));if(o){let e=ke;e.splice(o.sno-1,1),e.map(((e,o)=>{e.sno=o+1})),Ke([...e])}}},checked:!!ke.find((o=>o.orderheaderid==e.orderheaderid))}),(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:700,color:me},children:String(Ro*Do+o+1).padStart(2,"0")}),(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:.5,sx:{display:"inline-flex",pl:.5,pr:1,py:.25,borderRadius:999,bgcolor:Re(f.color),border:"1px solid ".concat(Pe(f.color)),color:f.color},children:[(0,xe.jsx)(He,{color:f.color,size:18,children:(0,xe.jsx)(v,{size:11})}),(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:800,fontSize:10.5,lineHeight:1},children:f.label})]})]}),(0,xe.jsxs)(w.A,{direction:"row",spacing:.75,sx:{flexShrink:0},children:["C"==e.deliverytype&&(0,xe.jsx)(D.A,{size:"small",onClick:()=>{(null===Mo||void 0===Mo?void 0:Mo.orderid)===e.orderid?(Yo(null),Fo(null)):(Yo(e),Fo(e.orderheaderid))},sx:{borderRadius:999,bgcolor:Re("#06b6d4"),color:"#06b6d4",border:"1px solid ".concat(Pe("#06b6d4")),"&:hover":{bgcolor:ze("#06b6d4")}},children:b?(0,xe.jsx)(oe.A,{fontSize:"small"}):(0,xe.jsx)(re.A,{fontSize:"small"})}),x&&(0,xe.jsx)(D.A,{size:"small",onClick:o=>mr(o,e),sx:{borderRadius:999,bgcolor:Re("#662582"),color:"#662582",border:"1px solid ".concat(Pe("#662582")),"&:hover":{bgcolor:ze("#662582")}},children:(0,xe.jsx)(l.A,{})})]})]}),(0,xe.jsxs)(k.A,{sx:{minWidth:0},children:[(0,xe.jsx)(S.A,{sx:{fontWeight:800,color:Ae,fontSize:15},noWrap:!0,children:e.tenantname}),(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be},noWrap:!0,children:[e.tenantsuburb,e.applocation].filter(Boolean).join(" \xb7 ")||"\u2014"})]})]}),children:[(0,xe.jsxs)(he.FG,{children:[(0,xe.jsxs)(he.pY,{label:"Order / Location",full:!0,children:[(0,xe.jsx)(S.A,{sx:{fontSize:13,fontWeight:600,color:Ae},noWrap:!0,children:"".concat(e.locationname,"-(").concat(e.locationsuburb,")")}),(0,xe.jsxs)(S.A,{variant:"caption",sx:{color:be},children:[e.orderid," \xb7 ",e.deliveryid]})]}),(0,xe.jsxs)(he.pY,{label:"Pickup",children:[(0,xe.jsx)(S.A,{sx:{fontSize:13,fontWeight:600,color:Ae},noWrap:!0,children:e.pickupcustomer||"\u2014"}),(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be},noWrap:!0,children:e.pickupcontactno})]}),(0,xe.jsxs)(he.pY,{label:"Drop",children:[(0,xe.jsx)(S.A,{sx:{fontSize:13,fontWeight:600,color:Ae},noWrap:!0,children:e.deliverycustomer||"\u2014"}),(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be},noWrap:!0,children:e.deliverycontactno})]}),(0,xe.jsx)(he.pY,{label:"Rider",full:!0,children:e.ridername?(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,xe.jsx)(He,{color:"#8b5cf6",size:24,children:(0,xe.jsx)(u.bsz,{size:13})}),(0,xe.jsxs)(w.A,{sx:{minWidth:0},children:[(0,xe.jsx)(S.A,{sx:{fontSize:13,fontWeight:700,color:Ae},noWrap:!0,children:e.ridername}),(0,xe.jsxs)(S.A,{variant:"caption",sx:{color:be},noWrap:!0,children:["ID #",e.userid," \xb7 ",e.ridercontact||"\u2014"]})]})]}):(0,xe.jsx)(S.A,{variant:"caption",sx:{color:me,fontWeight:600},children:"Unassigned"})}),(0,xe.jsx)(he.pY,{label:"ETA",value:e.expecteddeliverytime?a()(e.expecteddeliverytime).format("hh:mm A"):"\u2014"}),(0,xe.jsx)(he.pY,{label:"Transit",children:(0,xe.jsxs)(k.A,{sx:m("#06b6d4"),children:[e.transitminutes||0,"m"]})}),(0,xe.jsx)(he.pY,{label:"Kms \xb7 plan / act",children:(0,xe.jsxs)(w.A,{direction:"row",spacing:.5,flexWrap:"wrap",useFlexGap:!0,children:[(0,xe.jsxs)(k.A,{sx:m("#ef4444"),children:[e.kms||0," km"]}),(0,xe.jsxs)(k.A,{sx:m("#10b981"),children:[e.cumulativekms||0," km"]})]})}),(0,xe.jsx)(he.pY,{label:"Amount \xb7 chg / amt",children:(0,xe.jsxs)(w.A,{direction:"row",spacing:.5,flexWrap:"wrap",useFlexGap:!0,children:[(0,xe.jsxs)(k.A,{sx:m("#ef4444"),children:["\u20b9 ",null!==(i=null===(n=e.deliverycharges)||void 0===n?void 0:n.toFixed(2))&&void 0!==i?i:"0.00"]}),(0,xe.jsxs)(k.A,{sx:m("#10b981"),children:["\u20b9 ",null!==(s=null===(d=e.deliveryamt)||void 0===d?void 0:d.toFixed(2))&&void 0!==s?s:"0.00"]})]})}),(0,xe.jsx)(he.pY,{label:"Qty",value:e.Quantity||"\u2014"}),(0,xe.jsx)(he.pY,{label:"COD",children:(0,xe.jsx)(S.A,{sx:{fontSize:13,fontWeight:800,color:e.collectionamt?"#ef4444":me},children:e.collectionamt?"\u20b9 ".concat(e.collectionamt.toFixed(2)):"\u2014"})}),(0,xe.jsx)(he.pY,{label:"Step",children:e.step?(0,xe.jsx)(k.A,{sx:(0,t.A)((0,t.A)({},m("#662582")),{},{minWidth:30,fontWeight:800}),children:e.step}):(0,xe.jsx)(S.A,{variant:"caption",sx:{color:me},children:"\u2014"})}),e.notes&&(0,xe.jsx)(he.pY,{label:"Notes",full:!0,children:(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be},children:e.notes})})]}),b&&(0,xe.jsxs)(k.A,{sx:{mt:1.5,p:1.25,borderRadius:2,bgcolor:We,border:"1px solid ".concat(Se)},children:[(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:1,sx:{mb:1},children:[(0,xe.jsx)(He,{color:"#662582",size:22,children:(0,xe.jsx)(u.gsJ,{size:12})}),(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#662582"},children:"Product Details"})]}),(0,xe.jsxs)(w.A,{spacing:1,children:[null===Mr||void 0===Mr||null===(c=Mr.details)||void 0===c?void 0:c.map(((e,o)=>(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:1.25,sx:{p:1,borderRadius:1.5,bgcolor:"#fff",border:"1px solid ".concat(Se)},children:[(0,xe.jsx)(k.A,{component:"img",src:(null===e||void 0===e?void 0:e.productimage)||"https://via.placeholder.com/40",alt:null===e||void 0===e?void 0:e.productname,sx:{width:36,height:36,objectFit:"cover",borderRadius:1.5,border:"1px solid ".concat(Se),flexShrink:0}}),(0,xe.jsxs)(w.A,{sx:{minWidth:0,flex:1},children:[(0,xe.jsx)(S.A,{variant:"body2",sx:{fontWeight:600,color:Ae},noWrap:!0,children:(null===e||void 0===e?void 0:e.productname)||"Unnamed"}),(0,xe.jsxs)(S.A,{variant:"caption",sx:{color:be},children:["Qty ",(null===e||void 0===e?void 0:e.orderqty)||0," \xb7 \u20b9 ",(null===e||void 0===e?void 0:e.price)||0]})]}),(0,xe.jsxs)(S.A,{variant:"body2",sx:{fontWeight:800,color:Ae,flexShrink:0},children:["\u20b9 ",((null===e||void 0===e?void 0:e.productsumprice)+(null===e||void 0===e?void 0:e.taxamount)).toFixed(2)||0]})]},o))),(0,xe.jsxs)(w.A,{direction:"row",justifyContent:"space-between",sx:{pt:.5},children:[(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:700,color:be},children:"Total Amount"}),(0,xe.jsxs)(S.A,{variant:"body2",sx:{fontWeight:800,color:"#10b981"},children:["\u20b9 ",null===Mr||void 0===Mr||null===(h=Mr.pricedetails)||void 0===h||null===(g=h.orderamount)||void 0===g?void 0:g.toFixed(2)]})]})]})]})]},null!==(r=e.orderheaderid)&&void 0!==r?r:"".concat(e.tenantname,"-").concat(o))})),0!=(null===Gr||void 0===Gr?void 0:Gr.length)&&(0,xe.jsx)("div",{ref:c,style:{height:40,textAlign:"center"},children:Br||Hr?(0,xe.jsx)(de.A,{}):(0,xe.jsx)(S.A,{variant:"caption",sx:{color:me,fontWeight:600},children:"\xb7 End of list \xb7"})})]}):(0,xe.jsxs)(P.A,{stickyHeader:!0,sx:{minWidth:{xs:1100,lg:1300,xl:1400}},children:[(0,xe.jsx)(I.A,{children:(0,xe.jsxs)(L.A,{sx:{"& th":{backgroundColor:We,color:be,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(je),py:{xs:1,md:1.25},px:{xs:1,md:2}}},children:[p&&(0,xe.jsx)(M.A,{sx:{whiteSpace:"nowrap"},children:(0,xe.jsx)(z.A,{indeterminate:ke.length>0&&ke.length!=Ur.length,onChange:e=>{e.target.checked?Ke([...Ur]):Ke([])},checked:ke.length>0&&ke.length==Ur.length})}),(0,xe.jsx)(M.A,{children:"#"}),(0,xe.jsx)(M.A,{children:"Status"}),(0,xe.jsx)(M.A,{children:"Tenant"}),(0,xe.jsx)(M.A,{children:"Order / Location"}),(0,xe.jsx)(M.A,{children:"Pickup"}),(0,xe.jsx)(M.A,{children:"Drop"}),(0,xe.jsx)(M.A,{children:"Rider"}),(0,xe.jsx)(M.A,{children:"ETA"}),(0,xe.jsx)(M.A,{children:"Transit"}),(0,xe.jsx)(M.A,{children:"Kms"}),(0,xe.jsx)(M.A,{children:"Amount"}),(0,xe.jsx)(M.A,{children:"Notes"}),(0,xe.jsx)(M.A,{children:"Step"}),(0,xe.jsx)(M.A,{children:"Qty"}),(0,xe.jsx)(M.A,{children:"COD"}),x&&(0,xe.jsx)(M.A,{align:"right",children:"Action"})]})}),(Go||Jr)&&(0,xe.jsx)(le.r,{col:8}),(0,xe.jsxs)(Y.A,{children:[0==Ur.length&&!Go&&!Zr&&(0,xe.jsx)(L.A,{children:(0,xe.jsx)(M.A,{colSpan:g,sx:{py:6},children:(0,xe.jsxs)(w.A,{alignItems:"center",spacing:1.5,children:[(0,xe.jsx)(A.A,{sx:{width:64,height:64,bgcolor:ze("#94a3b8"),color:me},children:(0,xe.jsx)(u.gsJ,{size:28})}),(0,xe.jsx)(S.A,{variant:"subtitle1",sx:{fontWeight:700,color:Ae},children:"No deliveries to show"}),(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be},children:"all"===fr?"No ".concat(((null===(n=Le[wo])||void 0===n?void 0:n.label)||$e).toLowerCase()," orders for this filter."):"No ".concat(((null===(s=Le[wo])||void 0===s?void 0:s.label)||$e).toLowerCase()," orders in ").concat((null===(h=Te.find((e=>e.id===fr)))||void 0===h?void 0:h.label)||"this batch",".")})]})})}),0==Ur.length&&Zr&&(0,xe.jsx)(L.A,{children:(0,xe.jsxs)(M.A,{colSpan:g,sx:{textAlign:"center",py:6},children:[(0,xe.jsx)(de.A,{}),(0,xe.jsx)(S.A,{variant:"caption",color:"text.secondary",sx:{display:"block",mt:1},children:"Loading deliveries\u2026"})]})}),Ur.map(((e,o)=>{var r,i,n,s,c,h,x,p;const f=Le[String(e.orderstatus||"").toLowerCase()]||{label:e.orderstatus||"\u2014",color:"#94a3b8",icon:u.bfP},A=f.icon,b=!!ke.find((o=>o.orderheaderid==e.orderheaderid));return(0,xe.jsxs)(d.Fragment,{children:[(0,xe.jsxs)(L.A,{role:"checkbox",tabIndex:-1,sx:{cursor:"pointer",transition:"background-color 0.15s","& td":{borderBottom:"1px solid ".concat(Se),py:{xs:1,md:1.5},px:{xs:1,md:2}},backgroundColor:b?ze("#8b5cf6"):"transparent","&:hover":{backgroundColor:b?ze("#8b5cf6"):We}},children:["Created"==$e&&(0,xe.jsx)(M.A,{children:(0,xe.jsx)(z.A,{onChange:o=>{if(o.target.checked){let o=ke;o.push((0,t.A)((0,t.A)({},e),{},{sno:ke.length+1})),Ke([...o])}else{if(ke.find((o=>o.orderheaderid==e.orderheaderid))){let o=ke,r=ke.find((o=>o.orderheaderid==e.orderheaderid));o.splice(r.sno-1,1),o.map(((e,o)=>{e.sno=o+1})),Ke([...o])}}console.log("list",ke)},checked:ke.find((o=>o.orderheaderid==e.orderheaderid))})}),(0,xe.jsx)(M.A,{children:(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:700,color:me},children:String(Ro*Do+o+1).padStart(2,"0")})}),(0,xe.jsx)(M.A,{children:(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:.5,sx:{display:"inline-flex",pl:.5,pr:1,py:.25,borderRadius:999,bgcolor:Re(f.color),border:"1px solid ".concat(Pe(f.color)),color:f.color},children:[(0,xe.jsx)(He,{color:f.color,size:20,children:(0,xe.jsx)(A,{size:12})}),(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:800,fontSize:11,lineHeight:1},children:f.label})]})}),(0,xe.jsx)(M.A,{children:(0,xe.jsx)(T.A,{title:e.tenantadress,children:(0,xe.jsxs)(w.A,{children:[(0,xe.jsx)(S.A,{noWrap:!0,variant:"subtitle2",sx:{fontWeight:700,color:Ae},children:e.tenantname}),(0,xe.jsx)(S.A,{noWrap:!0,variant:"caption",sx:{color:be},children:e.tenantsuburb}),(0,xe.jsx)(S.A,{noWrap:!0,variant:"caption",sx:{color:me},children:e.applocation})]})})}),(0,xe.jsxs)(M.A,{align:"left",children:[(0,xe.jsx)(T.A,{title:"Location Name-Suburb",placement:"top",children:(0,xe.jsx)(S.A,{variant:"subtitle1",noWrap:!0,children:"".concat(e.locationname,"-(").concat(e.locationsuburb,")")})}),(0,xe.jsxs)(w.A,{display:"flex",flexDirection:"row",gap:3,children:[(0,xe.jsxs)(w.A,{children:[(0,xe.jsx)(T.A,{title:"Order Id",placement:"top",children:(0,xe.jsx)(S.A,{variant:"body2",noWrap:!0,children:e.orderid})}),(0,xe.jsxs)(T.A,{title:"Ordered date",placement:"top",children:[(0,xe.jsx)(S.A,{noWrap:!0,sx:{fontSize:"12px"},children:a()(e.orderdate).utc().format("DD/MM/YYYY")}),(0,xe.jsx)(S.A,{noWrap:!0,sx:{fontSize:"11px"},children:a()(e.orderdate).utc().format("hh:mm A")})]})]}),"-",(0,xe.jsxs)(w.A,{children:[(0,xe.jsx)(T.A,{title:"Delivery Id",placement:"top",children:(0,xe.jsx)(S.A,{variant:"body2",noWrap:!0,children:e.deliveryid})}),(0,xe.jsxs)(T.A,{title:"Delivery date",placement:"top",children:[(0,xe.jsx)(S.A,{noWrap:!0,sx:{fontSize:"12px"},children:a()(e.deliverydate).utc().format("DD/MM/YYYY")}),(0,xe.jsx)(S.A,{noWrap:!0,sx:{fontSize:"11px"},children:a()(e.deliverydate).utc().format("hh:mm A")})]})]})]})]}),(0,xe.jsx)(M.A,{align:"left",children:(0,xe.jsxs)(w.A,{children:[(0,xe.jsx)(S.A,{variant:"subtitle2",sx:{fontWeight:700,color:Ae,whiteSpace:"nowrap"},children:e.pickupcustomer}),(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be},children:e.pickupcontactno}),(0,xe.jsx)(T.A,{title:e.Pickupaddress,sx:{whiteSpace:"nowrap"},children:(0,xe.jsx)(S.A,{variant:"caption",sx:{color:me},children:e.pickuplocation||(e.Pickupaddress?e.Pickupaddress.slice(0,14)+"\u2026":"\u2014")})})]})}),(0,xe.jsx)(M.A,{align:"left",children:(0,xe.jsxs)(w.A,{children:[(0,xe.jsx)(S.A,{variant:"subtitle2",sx:{fontWeight:700,color:Ae,whiteSpace:"nowrap"},children:e.deliverycustomer}),(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be},children:e.deliverycontactno}),(0,xe.jsx)(T.A,{title:e.deliveryaddress,children:(0,xe.jsx)(S.A,{variant:"caption",sx:{color:me,whiteSpace:"nowrap"},children:e.deliverylocation||(e.deliveryaddress?e.deliveryaddress.slice(0,14)+"\u2026":"\u2014")})})]})}),(0,xe.jsx)(M.A,{children:e.ridername?(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,xe.jsx)(He,{color:"#8b5cf6",size:28,children:(0,xe.jsx)(u.bsz,{size:14})}),(0,xe.jsxs)(w.A,{children:[(0,xe.jsx)(S.A,{variant:"subtitle2",sx:{fontWeight:700,color:Ae},noWrap:!0,children:e.ridername}),(0,xe.jsxs)(S.A,{variant:"caption",sx:{color:be},children:["ID #",e.userid," \xb7 ",e.ridercontact||"\u2014"]})]})]}):(0,xe.jsx)(S.A,{variant:"caption",sx:{color:me,fontWeight:600},children:"Unassigned"})}),(0,xe.jsx)(M.A,{align:"left",children:(0,xe.jsx)(S.A,{variant:"subtitle2",sx:{fontWeight:700,color:Ae,whiteSpace:"nowrap"},children:e.expecteddeliverytime?a()(e.expecteddeliverytime).format("hh:mm A"):"\u2014"})}),(0,xe.jsx)(M.A,{align:"left",children:(0,xe.jsxs)(k.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.5,borderRadius:999,bgcolor:Re("#06b6d4"),color:"#06b6d4",fontWeight:700,fontSize:12,border:"1px solid ".concat(Pe("#06b6d4"))},children:[e.transitminutes||0,"m"]})}),(0,xe.jsx)(M.A,{children:(0,xe.jsxs)(w.A,{direction:"column",spacing:.5,alignItems:"flex-start",children:[(0,xe.jsx)(T.A,{title:"Planned KMS",placement:"top",children:(0,xe.jsxs)(k.A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",px:1.25,py:.375,borderRadius:999,bgcolor:Re("#ef4444"),color:"#ef4444",fontWeight:700,fontSize:11,border:"1px solid ".concat(Pe("#ef4444")),whiteSpace:"nowrap",minWidth:75},children:[e.kms||0," km"]})}),(0,xe.jsx)(T.A,{title:"Actual KMS",placement:"top",children:(0,xe.jsxs)(k.A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",px:1.25,py:.375,borderRadius:999,bgcolor:Re("#10b981"),color:"#10b981",fontWeight:700,fontSize:11,border:"1px solid ".concat(Pe("#10b981")),whiteSpace:"nowrap",minWidth:75},children:[e.cumulativekms||0," km"]})})]})}),(0,xe.jsx)(M.A,{align:"left",children:(0,xe.jsxs)(w.A,{direction:"column",spacing:.5,alignItems:"flex-start",children:[(0,xe.jsx)(T.A,{title:"Delivery Charge",placement:"top",children:(0,xe.jsxs)(k.A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",px:1.25,py:.375,borderRadius:999,bgcolor:Re("#ef4444"),color:"#ef4444",fontWeight:700,fontSize:11,border:"1px solid ".concat(Pe("#ef4444")),whiteSpace:"nowrap",minWidth:85},children:["\u20b9 ",null!==(i=null===(n=e.deliverycharges)||void 0===n?void 0:n.toFixed(2))&&void 0!==i?i:"0.00"]})}),(0,xe.jsx)(T.A,{title:"Delivery Amount",placement:"top",children:(0,xe.jsxs)(k.A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",px:1.25,py:.375,borderRadius:999,bgcolor:Re("#10b981"),color:"#10b981",fontWeight:700,fontSize:11,border:"1px solid ".concat(Pe("#10b981")),whiteSpace:"nowrap",minWidth:85},children:["\u20b9 ",null!==(s=null===(c=e.deliveryamt)||void 0===c?void 0:c.toFixed(2))&&void 0!==s?s:"0.00"]})})]})}),(0,xe.jsx)(M.A,{children:e.notes?(0,xe.jsx)(T.A,{title:e.notes,children:(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be,maxWidth:160,display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.notes})}):(0,xe.jsx)(S.A,{variant:"caption",sx:{color:me},children:"\u2014"})}),(0,xe.jsx)(M.A,{align:"center",children:e.step?(0,xe.jsx)(k.A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:30,height:24,px:.875,borderRadius:999,bgcolor:Re("#662582"),border:"1px solid ".concat(Pe("#662582")),color:"#662582",fontWeight:800,fontSize:11},children:e.step}):(0,xe.jsx)(S.A,{variant:"caption",sx:{color:me},children:"\u2014"})}),(0,xe.jsx)(M.A,{children:(0,xe.jsx)(S.A,{variant:"subtitle2",sx:{fontWeight:700,color:e.Quantity?Ae:me,whiteSpace:"nowrap"},children:e.Quantity||"\u2014"})}),(0,xe.jsx)(M.A,{children:(0,xe.jsx)(S.A,{variant:"subtitle2",sx:{fontWeight:800,color:e.collectionamt?"#ef4444":me,whiteSpace:"nowrap"},children:e.collectionamt?"\u20b9 ".concat(e.collectionamt.toFixed(2)):"\u2014"})}),"Cancelled"!==$e&&"Delivered"!==$e&&(0,xe.jsx)(M.A,{align:"right",children:(0,xe.jsxs)(w.A,{direction:"row",justifyContent:"flex-end",spacing:.75,children:["C"==e.deliverytype&&(0,xe.jsx)(T.A,{title:"Product details",placement:"top",children:(0,xe.jsx)(D.A,{size:"small",onClick:()=>{(null===Mo||void 0===Mo?void 0:Mo.orderid)===e.orderid?(Yo(null),Fo(null)):(Yo(e),Fo(e.orderheaderid))},sx:{borderRadius:999,bgcolor:Re("#06b6d4"),color:"#06b6d4",border:"1px solid ".concat(Pe("#06b6d4")),"&:hover":{bgcolor:ze("#06b6d4")}},children:(null===Mo||void 0===Mo?void 0:Mo.orderid)===e.orderid?(0,xe.jsx)(oe.A,{fontSize:"small"}):(0,xe.jsx)(re.A,{fontSize:"small"})})}),(0,xe.jsx)(T.A,{title:"Actions",placement:"top",children:(0,xe.jsx)(D.A,{size:"small",onClick:o=>mr(o,e),sx:{borderRadius:999,bgcolor:Re("#662582"),color:"#662582",border:"1px solid ".concat(Pe("#662582")),"&:hover":{bgcolor:ze("#662582")}},children:(0,xe.jsx)(l.A,{})})})]})})]}),(null===Mo||void 0===Mo?void 0:Mo.orderid)===(null===e||void 0===e?void 0:e.orderid)&&(0,xe.jsx)(L.A,{children:(0,xe.jsx)(M.A,{colSpan:g,sx:{p:0,border:0,backgroundColor:We},children:(0,xe.jsx)(F.A,{in:!0,timeout:"auto",unmountOnExit:!0,children:(0,xe.jsx)(k.A,{sx:{width:"100%",p:2.5},children:(0,xe.jsxs)(v.A,{elevation:0,sx:{borderRadius:2,border:"1px solid",borderColor:je,overflow:"hidden",background:"#fff"},children:[(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:1,sx:{px:2,py:1.25,borderBottom:"1px solid ".concat(Se),bgcolor:Re("#662582")},children:[(0,xe.jsx)(He,{color:"#662582",children:(0,xe.jsx)(u.gsJ,{size:14})}),(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#662582"},children:"Product Details"})]}),(0,xe.jsxs)(P.A,{size:"small",sx:{minWidth:800},children:[(0,xe.jsx)(I.A,{children:(0,xe.jsxs)(L.A,{sx:{"& th":{fontSize:11,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:be,borderBottom:"1px solid ".concat(Se)},"&:hover":{backgroundColor:"transparent !important"}},children:[(0,xe.jsx)(M.A,{children:"#"}),(0,xe.jsx)(M.A,{children:"Product"}),(0,xe.jsx)(M.A,{children:"Description"}),(0,xe.jsx)(M.A,{align:"right",children:"Qty"}),(0,xe.jsx)(M.A,{align:"right",children:"Cost"}),(0,xe.jsx)(M.A,{align:"right",children:"Price"}),(0,xe.jsx)(M.A,{align:"right",children:"Tax"}),(0,xe.jsx)(M.A,{align:"right",children:"Amount"})]})}),(0,xe.jsxs)(Y.A,{children:[null===Mr||void 0===Mr||null===(h=Mr.details)||void 0===h?void 0:h.map(((e,o)=>{var r,t;return(0,xe.jsxs)(L.A,{sx:{"&:hover":{backgroundColor:We+" !important"}},children:[(0,xe.jsx)(M.A,{sx:{color:me,fontWeight:700},children:String(o+1).padStart(2,"0")}),(0,xe.jsx)(M.A,{children:(0,xe.jsxs)(w.A,{direction:"row",spacing:1.25,alignItems:"center",children:[(0,xe.jsx)(k.A,{component:"img",src:(null===e||void 0===e?void 0:e.productimage)||"https://via.placeholder.com/40",alt:null===e||void 0===e?void 0:e.productname,sx:{width:36,height:36,objectFit:"cover",borderRadius:1.5,border:"1px solid ".concat(Se)}}),(0,xe.jsx)(S.A,{variant:"body2",sx:{fontWeight:600,color:Ae},noWrap:!0,children:(null===e||void 0===e?void 0:e.productname)||"Unnamed"})]})}),(0,xe.jsx)(M.A,{sx:{color:be},children:(null===e||void 0===e?void 0:e.productdescription)||"-"}),(0,xe.jsx)(M.A,{align:"right",sx:{fontWeight:700},children:(null===e||void 0===e?void 0:e.orderqty)||0}),(0,xe.jsxs)(M.A,{align:"right",children:["\u20b9 ",(null===e||void 0===e?void 0:e.price)||0]}),(0,xe.jsxs)(M.A,{align:"right",children:["\u20b9 ",(null!==(r=null===e||void 0===e?void 0:e.productsumprice)&&void 0!==r?r:0).toFixed(2)]}),(0,xe.jsxs)(M.A,{align:"right",children:["\u20b9 ",(null!==(t=null===e||void 0===e?void 0:e.taxamount)&&void 0!==t?t:0).toFixed(2)]}),(0,xe.jsxs)(M.A,{align:"right",sx:{fontWeight:800,color:Ae},children:["\u20b9 ",((null===e||void 0===e?void 0:e.productsumprice)+(null===e||void 0===e?void 0:e.taxamount)).toFixed(2)||0]})]},o)})),(0,xe.jsxs)(L.A,{sx:{"&:hover":{backgroundColor:"transparent !important"}},children:[(0,xe.jsx)(M.A,{align:"right",colSpan:7,sx:{fontWeight:700,color:be,borderTop:"1px solid ".concat(Se)},children:"Total Amount"}),(0,xe.jsxs)(M.A,{align:"right",sx:{fontWeight:800,color:"#10b981",borderTop:"1px solid ".concat(Se)},children:["\u20b9 ",null===Mr||void 0===Mr||null===(x=Mr.pricedetails)||void 0===x||null===(p=x.orderamount)||void 0===p?void 0:p.toFixed(2)]})]})]})]})]})})})})})]},null!==(r=e.orderheaderid)&&void 0!==r?r:"".concat(e.tenantname,"-").concat(o))})),0!=(null===Gr||void 0===Gr?void 0:Gr.length)&&(0,xe.jsx)(L.A,{children:(0,xe.jsx)(M.A,{colSpan:g,rowSpan:3,children:(0,xe.jsx)("div",{ref:c,style:{height:40,textAlign:"center"},children:Br||Hr?(0,xe.jsx)(de.A,{}):(0,xe.jsx)(S.A,{variant:"caption",sx:{color:me,fontWeight:600},children:"\xb7 End of list \xb7"})})})})]})]})})()})}),(0,xe.jsxs)(E.A,{anchorEl:Ho,open:br,onClose:jr,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{elevation:0,sx:{minWidth:220,borderRadius:2,mt:.75,border:"1px solid",borderColor:je,boxShadow:ve,overflow:"hidden","& .MuiMenuItem-root":{fontSize:13,fontWeight:600,py:1.1,px:1.5,gap:1,transition:"background-color 0.15s","&:hover":{bgcolor:We}}}},children:["delivered"!==(null===Jo||void 0===Jo?void 0:Jo.orderstatus)&&(0,xe.jsxs)(K.A,{onClick:()=>{Pr.mutate(Jo.userfcmtoken),jr()},children:[(0,xe.jsx)(He,{color:"#0ea5e9",size:22,children:(0,xe.jsx)(u.q53,{size:13})}),"Notify Rider"]}),["pending","accepted","arrived"].includes(null===Jo||void 0===Jo?void 0:Jo.orderstatus)&&(0,xe.jsxs)(K.A,{onClick:()=>{var e;if(!Ze)return Lr("Please select a location first!","warning"),void(null===(e=Co.current)||void 0===e||e.focus());or(!0),jr()},children:[(0,xe.jsx)(He,{color:"#8b5cf6",size:22,children:(0,xe.jsx)(u.bsz,{size:13})}),"Change Rider"]}),(1==Ar||2==Ar)&&(0,xe.jsxs)(K.A,{onClick:()=>{co(Jo.kms),ho(Jo.cumulativekms),bo(Jo.droplat),jo(Jo.droplon),go(Jo.notes),uo(Jo.deliveryamount),Wo(Jo.orderstatus||"delivered"),vo(Jo),Je(!0),jr()},children:[(0,xe.jsx)(He,{color:"#10b981",size:22,children:(0,xe.jsx)(u.mU9,{size:13})}),"Update Status"]}),"cancelled"!==(null===Jo||void 0===Jo?void 0:Jo.orderstatus)&&"delivered"!==(null===Jo||void 0===Jo?void 0:Jo.orderstatus)&&(0,xe.jsxs)(K.A,{sx:{color:"#ef4444 !important"},onClick:()=>{$o(!0),jr()},children:[(0,xe.jsx)(He,{color:"#ef4444",size:22,children:(0,xe.jsx)(u.uDv,{size:13})}),"Cancel Delivery"]})]}),(0,xe.jsxs)(O.A,{open:_o,onClose:()=>$o(!1),maxWidth:"xs",fullWidth:!0,PaperProps:{elevation:0,sx:{borderRadius:3,border:"1px solid",borderColor:je,boxShadow:ve,overflow:"hidden"}},children:[(0,xe.jsx)(k.A,{sx:{height:4,background:"linear-gradient(90deg, #ef4444 0%, ".concat(ze("#ef4444")," 100%)")}}),(0,xe.jsx)(N.A,{sx:{p:3.5},children:(0,xe.jsxs)(w.A,{alignItems:"center",spacing:2.5,children:[(0,xe.jsx)(A.A,{sx:{width:64,height:64,bgcolor:ze("#ef4444"),color:"#ef4444"},children:(0,xe.jsx)(s.A,{style:{fontSize:28}})}),(0,xe.jsxs)(w.A,{spacing:.5,alignItems:"center",children:[(0,xe.jsx)(S.A,{variant:"h4",sx:{fontWeight:800,color:Ae},children:"Cancel Delivery?"}),(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be,textAlign:"center",px:1},children:"This action will cancel the delivery and notify the rider. Please share a brief reason."})]}),(0,xe.jsx)(C.A,{fullWidth:!0,placeholder:"Reason for cancellation",multiline:!0,minRows:2,maxRows:4,onChange:e=>tr(e.target.value),sx:{"& .MuiOutlinedInput-root":{borderRadius:2,bgcolor:We,"& fieldset":{borderColor:je},"&:hover fieldset":{borderColor:"#ef4444"},"&.Mui-focused fieldset":{borderColor:"#ef4444",borderWidth:2},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(De("#ef4444"))}}}}),(0,xe.jsxs)(w.A,{direction:"row",spacing:1.5,sx:{width:1},children:[(0,xe.jsx)(H.A,{fullWidth:!0,onClick:()=>$o(!1),variant:"outlined",sx:{borderRadius:999,py:1.1,fontWeight:700,borderColor:je,color:be,"&:hover":{borderColor:me,bgcolor:We}},children:"Keep Delivery"}),(0,xe.jsx)(H.A,{fullWidth:!0,variant:"contained",onClick:()=>{""==rr?Lr("Enter FeedBack","error"):wr({selectedRow:Jo,cancelFeed:rr}),(async()=>{console.log("cancelridernotification",Jo);try{return(await h.A.post("".concat("https://jupiter.nearle.app/live/api/v1","/utils/notifyuser"),{token:Jo.userfcmtoken,notification:{title:"NearleXpress",body:"".concat(Jo.orderid," have been Cancelled"),sound:"ring",image:""},data:{type:"cancel"}})).data}catch(e){Lr(e.message,"error",2e3),console.log(e)}})()},autoFocus:!0,sx:{borderRadius:999,py:1.1,fontWeight:800,bgcolor:"#ef4444",boxShadow:"0 6px 18px ".concat(De("#ef4444")),"&:hover":{bgcolor:"#dc2626"}},children:"Yes, Cancel"})]})]})})]}),(0,xe.jsxs)(O.A,{open:er,onClose:()=>or(!1),maxWidth:"sm",fullWidth:!0,TransitionComponent:q.s,PaperProps:{elevation:0,sx:{borderRadius:3,border:"1px solid",borderColor:je,boxShadow:ve,overflow:"hidden"}},children:[(0,xe.jsx)(k.A,{sx:{height:4,background:"linear-gradient(90deg, #8b5cf6 0%, ".concat(ze("#8b5cf6")," 100%)")}}),(0,xe.jsx)(B.A,{sx:{p:3,pb:1.5},children:(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:1.5,children:[(0,xe.jsx)(A.A,{sx:{width:44,height:44,bgcolor:ze("#8b5cf6"),color:"#8b5cf6"},children:(0,xe.jsx)(u.bsz,{size:22})}),(0,xe.jsxs)(w.A,{children:[(0,xe.jsx)(S.A,{variant:"h4",sx:{fontWeight:800,color:Ae},children:"Change Rider"}),(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be},children:"Assign this delivery to a different rider"})]})]})}),(0,xe.jsx)(N.A,{sx:{p:3,pt:2},children:(0,xe.jsx)(y.A,{fullWidth:!0,options:rt,PaperComponent:Ne,getOptionLabel:e=>"".concat(e.firstname," ").concat(e.lastname," (").concat(e.contactno,")"),onChange:(e,o)=>{nr(o),i.A.debug("Rider selected in dropdown:",o?"".concat(o.firstname," ").concat(o.lastname):"None")},renderInput:e=>(0,xe.jsx)(C.A,(0,t.A)((0,t.A)({},e),{},{placeholder:"Choose Rider",InputProps:(0,t.A)((0,t.A)({},e.InputProps),{},{startAdornment:(0,xe.jsx)(w.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,xe.jsx)(He,{color:"#8b5cf6",children:(0,xe.jsx)(u.bsz,{size:14})})})}),sx:Ie()}))})}),(0,xe.jsx)(J.A,{sx:{p:3,pt:1},children:(0,xe.jsxs)(w.A,{direction:"row",spacing:1.5,sx:{width:1},children:[(0,xe.jsx)(H.A,{fullWidth:!0,variant:"outlined",onClick:()=>or(!1),sx:{borderRadius:999,py:1.1,fontWeight:700,borderColor:je,color:be,"&:hover":{borderColor:me,bgcolor:We}},children:"Cancel"}),(0,xe.jsx)(H.A,{fullWidth:!0,variant:"contained",onClick:()=>{Zo(!0),i.A.info("Initiating rider assignment change for order ID ".concat(null===Jo||void 0===Jo?void 0:Jo.orderid," to rider: ").concat(null===ir||void 0===ir?void 0:ir.firstname," ").concat(null===ir||void 0===ir?void 0:ir.lastname)),Ir.mutate({selectedRider:ir,selectedRow:Jo})},sx:{borderRadius:999,py:1.1,fontWeight:800,bgcolor:"#8b5cf6",boxShadow:"0 6px 18px ".concat(De("#8b5cf6")),"&:hover":{bgcolor:"#7c3aed"}},children:"Change Rider"})]})})]}),(0,xe.jsxs)(O.A,{open:to,onClose:()=>io(!1),fullScreen:r,PaperProps:{elevation:0,sx:{borderRadius:{xs:0,sm:3},border:"1px solid",borderColor:je,boxShadow:ve,overflow:"hidden"}},children:[(0,xe.jsx)(k.A,{sx:{height:4,background:"linear-gradient(90deg, #f59e0b 0%, ".concat(ze("#f59e0b")," 100%)")}}),(0,xe.jsx)(B.A,{align:"left",sx:{p:3,pb:1.5},children:(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:1.5,children:[(0,xe.jsx)(A.A,{sx:{width:44,height:44,bgcolor:ze("#f59e0b"),color:"#f59e0b"},children:(0,xe.jsx)(u.tjE,{size:22})}),(0,xe.jsxs)(w.A,{children:[(0,xe.jsx)(S.A,{variant:"h4",sx:{fontWeight:800,color:Ae},children:"Date Range"}),(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be},children:"Pick a window to filter the deliveries"})]})]})}),(0,xe.jsx)(N.A,{sx:{width:"100%"},className:"datedialog",children:(0,xe.jsx)($.U,{open:to,toggle:()=>io(!to),id:"daterange1",onChange:e=>{"All"===e.label?(Qe(""),_e(""),io(!1)):(Qe(a()(e.startDate).format("YYYY-MM-DD")),_e(a()(e.endDate).format("YYYY-MM-DD")),e.label?lo(e.label):lo("")),console.log(e)},definedRanges:[{label:"Today",startDate:new Date,endDate:new Date},{label:"Yesterday",startDate:(0,G.A)(new Date,-1),endDate:(0,G.A)(new Date,-1)},{label:"Tomorrow",startDate:(0,G.A)(new Date,1),endDate:(0,G.A)(new Date,1)},{label:"This Week",startDate:(0,Z.A)(new Date),endDate:(0,U.A)(new Date)},{label:"Last Week",startDate:(0,Z.A)((0,V.A)(new Date,-1)),endDate:(0,U.A)((0,V.A)(new Date,-1))},{label:"Last 7 Days",startDate:(0,V.A)(new Date,-1),endDate:new Date},{label:"This Month",startDate:(0,Q.A)(new Date),endDate:(0,X.A)(new Date)},{label:"Last Month",startDate:(0,Q.A)((0,_.A)(new Date,-1)),endDate:(0,X.A)((0,_.A)(new Date,-1))}]})}),(0,xe.jsx)(w.A,{direction:"row",justifyContent:"flex-end",sx:{width:"100%",p:2.5,pt:1},children:(0,xe.jsx)(H.A,{variant:"contained",onClick:()=>{io(!1)},sx:{borderRadius:999,px:3,py:1,fontWeight:800,bgcolor:"#f59e0b",boxShadow:"0 6px 18px ".concat(De("#f59e0b")),"&:hover":{bgcolor:"#d97706"}},children:"Apply"})})]}),(0,xe.jsxs)(O.A,{fullWidth:!0,open:Be,onClose:Yr,scroll:"paper",maxWidth:"sm",fullScreen:r,TransitionComponent:q.s,PaperProps:{elevation:0,sx:{borderRadius:{xs:0,sm:3},border:"1px solid",borderColor:je,boxShadow:ve,overflow:"hidden"}},children:[(0,xe.jsx)(k.A,{sx:{height:4,background:"linear-gradient(90deg, #10b981 0%, ".concat(ze("#10b981")," 100%)")}}),(0,xe.jsx)(B.A,{sx:{p:3,pb:1.5},children:(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:1.5,children:[(0,xe.jsx)(A.A,{sx:{width:44,height:44,bgcolor:ze("#10b981"),color:"#10b981"},children:(0,xe.jsx)(u.mU9,{size:22})}),(0,xe.jsxs)(w.A,{children:[(0,xe.jsx)(S.A,{variant:"h4",sx:{fontWeight:800,color:Ae},children:"Update Delivery Status"}),(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be},children:null!==fo&&void 0!==fo&&fo.orderid?"Order #".concat(fo.orderid):"Modify delivery details"})]})]})}),(0,xe.jsx)(N.A,{dividers:!0,sx:{p:3,bgcolor:We},children:(0,xe.jsxs)(j.Ay,{container:!0,spacing:2,children:[[{label:"KMs",value:so,set:e=>co(e),color:"#ef4444"},{label:"Actual KMs",value:ao,set:e=>ho(+e),color:"#10b981"},{label:"Delivery Latitude",value:Ao,set:e=>bo(e),color:"#06b6d4"},{label:"Delivery Longitude",value:mo,set:e=>jo(e),color:"#06b6d4"}].map((e=>(0,xe.jsxs)(j.Ay,{item:!0,xs:12,sm:6,children:[(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:700,color:be,letterSpacing:.5,textTransform:"uppercase"},children:e.label}),(0,xe.jsx)(C.A,{fullWidth:!0,value:e.value,type:"number",onChange:o=>e.set(o.target.value),sx:{mt:.5,"& .MuiOutlinedInput-root":{borderRadius:2,bgcolor:"#fff","& fieldset":{borderColor:je},"&:hover fieldset":{borderColor:e.color},"&.Mui-focused fieldset":{borderColor:e.color,borderWidth:2},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(De(e.color))}}}})]},e.label))),(0,xe.jsxs)(j.Ay,{item:!0,xs:12,children:[(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:700,color:be,letterSpacing:.5,textTransform:"uppercase"},children:"Amount"}),(0,xe.jsx)(C.A,{fullWidth:!0,type:"number",value:xo,onChange:e=>uo(+e.target.value),sx:{mt:.5,"& .MuiOutlinedInput-root":{borderRadius:2,bgcolor:"#fff","& fieldset":{borderColor:je},"&:hover fieldset":{borderColor:"#10b981"},"&.Mui-focused fieldset":{borderColor:"#10b981",borderWidth:2},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(De("#10b981"))}}}})]}),(0,xe.jsxs)(j.Ay,{item:!0,xs:12,children:[(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:700,color:be,letterSpacing:.5,textTransform:"uppercase"},children:"Status"}),(0,xe.jsx)(C.A,{select:!0,fullWidth:!0,value:yo,onChange:e=>Wo(e.target.value),SelectProps:{MenuProps:{PaperProps:{sx:{borderRadius:2,mt:.5,boxShadow:ve}}}},sx:{mt:.5,"& .MuiOutlinedInput-root":{borderRadius:2,bgcolor:"#fff","& fieldset":{borderColor:je},"&:hover fieldset":{borderColor:"#662582"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:2},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(De("#662582"))}}},children:["pending","accepted","started","arrived","delivered","cancelled"].map((e=>{const o=Le[e]||{label:e,color:"#662582",icon:u.bfP},r=o.icon;return(0,xe.jsxs)(K.A,{value:e,sx:{gap:1},children:[(0,xe.jsx)(He,{color:o.color,size:22,children:(0,xe.jsx)(r,{size:13})}),o.label]},e)}))})]}),(0,xe.jsxs)(j.Ay,{item:!0,xs:12,children:[(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:700,color:be,letterSpacing:.5,textTransform:"uppercase"},children:"Notes"}),(0,xe.jsx)(C.A,{value:po,fullWidth:!0,multiline:!0,minRows:2,onChange:e=>go(e.target.value),sx:{mt:.5,"& .MuiOutlinedInput-root":{borderRadius:2,bgcolor:"#fff","& fieldset":{borderColor:je},"&:hover fieldset":{borderColor:"#662582"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:2},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(De("#662582"))}}}})]})]})}),(0,xe.jsx)(J.A,{sx:{p:3},children:(0,xe.jsxs)(w.A,{direction:"row",spacing:1.5,sx:{width:1},children:[(0,xe.jsx)(H.A,{fullWidth:!0,variant:"outlined",onClick:Yr,sx:{borderRadius:999,py:1.1,fontWeight:700,borderColor:je,color:be,"&:hover":{borderColor:me,bgcolor:We}},children:"Close"}),(0,xe.jsx)(H.A,{fullWidth:!0,variant:"contained",onClick:()=>{so?ao?Ao?mo?xo?lt.mutate({deliveryid:fo.deliveryid,orderheaderid:fo.orderheaderid,orderstatus:yo,deliverytime:a()().format("YYYY-MM-DD HH:mm:ss"),deliverylat:Ao,deliverylong:mo,kms:so,cumulativekms:ao,deliveryamt:parseFloat(xo),notes:po,userid:+Jo.userid}):Lr("Fill Delivery Amount","warning"):Lr("Fill Delivery Longitude","warning"):Lr("Fill Delivery Latitude","warning"):Lr("Fill Actual Kms","warning"):Lr("Fill Kms","warning")},sx:{borderRadius:999,py:1.1,fontWeight:800,bgcolor:"#10b981",boxShadow:"0 6px 18px ".concat(De("#10b981")),"&:hover":{bgcolor:"#059669"}},children:"Update"})]})})]})]})}},23787:(e,o,r)=>{r.d(o,{FG:()=>u,nV:()=>h,pY:()=>p,pg:()=>x});var t=r(89379),i=r(80045),n=r(93230),l=r(2235),s=r(16491),d=r(82053),c=r(44414);const a=["children","scroll","onScroll","sx"],h=e=>{let{children:o,scroll:r=!1,onScroll:l,sx:s}=e,d=(0,i.A)(e,a);return(0,c.jsx)(n.A,(0,t.A)((0,t.A)({spacing:1.25,onScroll:l,sx:(0,t.A)((0,t.A)({p:1.5},r&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),s)},d),{},{children:o}))},x=e=>{let{accent:o="#662582",header:r,footer:i,selected:n=!1,onClick:d,children:a,sx:h}=e;return(0,c.jsxs)(l.A,{elevation:0,onClick:d,sx:(0,t.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:n?o:"#e2e8f0",background:n?"".concat(o,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},h),children:[(0,c.jsx)(s.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:o}}),(0,c.jsxs)(s.A,{sx:{p:1.5,pl:2},children:[r,a,i]})]})},u=e=>{let{children:o,columns:r=2,sx:i}=e;return(0,c.jsx)(s.A,{sx:(0,t.A)({display:"grid",gridTemplateColumns:"repeat(".concat(r,", minmax(0, 1fr))"),gap:1,mt:1.25},i),children:o})},p=e=>{let{label:o,value:r,children:t,full:i=!1,align:n="left"}=e;return(0,c.jsxs)(s.A,{sx:{gridColumn:i?"1 / -1":"auto",minWidth:0,textAlign:n},children:[(0,c.jsx)(d.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:o}),(0,c.jsx)(s.A,{sx:{mt:.25,minWidth:0},children:void 0!==t?t:(0,c.jsx)(d.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==r&&void 0!==r?r:"\u2014"})})]})}},27001:(e,o,r)=>{r.d(o,{A:()=>s});var t=r(93230),i=r(16491),n=r(82053),l=r(44414);function s(e){let{title:o,subtitle:r,live:s=!1,action:d}=e;return(0,l.jsxs)(t.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,l.jsxs)(i.A,{sx:{minWidth:0},children:[(0,l.jsx)(n.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:o}),r&&(0,l.jsxs)(t.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[s&&(0,l.jsx)(i.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,l.jsx)(n.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:r})]})]}),d&&(0,l.jsx)(i.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:d})]})}},36803:(e,o,r)=>{r.d(o,{A:()=>h});var t=r(48089),i=r(50704),n=r(93230),l=r(16491),s=r(82053),d=r(82917),c=r(41413),a=r(44414);function h(e){let{title:o,value:r,icon:h,color:x="#662582",caption:u,loading:p=!1}=e;return(0,a.jsx)(t.A,{sx:{height:"100%"},children:(0,a.jsx)(i.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,a.jsxs)(n.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,a.jsxs)(l.A,{sx:{minWidth:0,flex:1},children:[(0,a.jsx)(s.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o}),p?(0,a.jsx)(d.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,a.jsx)(s.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r}),u&&(0,a.jsx)(s.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:u})]}),h&&(0,a.jsx)(c.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(x,"14"),color:x,flexShrink:0},children:h})]})})})}},56311:(e,o,r)=>{r.d(o,{A:()=>u});var t=r(89379),i=r(9950),n=r(2660),l=r(2046),s=r(83274),d=r(25333),c=r(97125),a=r(7762),h=r(52097),x=r(44414);const u=e=>{let{value:o,onChange:r,onDebouncedChange:u,debounceTime:p=500,placeholder:g="Search (ctrl+k)",sx:f}=e;const v=(0,i.useRef)(null),[A]=(0,h.d7)(o,p);return(0,i.useEffect)((()=>{u&&u(A)}),[A,u]),(0,i.useEffect)((()=>{const e=e=>{var o;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(o=v.current)||void 0===o||o.focus());"Escape"===e.key&&document.activeElement===v.current&&v.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,x.jsx)(n.A,{sx:(0,t.A)({},f),inputRef:v,placeholder:g,autoComplete:"off",value:o,fullWidth:!0,onChange:e=>r(e.target.value),startAdornment:(0,x.jsx)(l.A,{position:"start",sx:{mr:-.5},children:(0,x.jsx)(c.A,{})}),endAdornment:(0,x.jsx)(s.A,{title:"Clear",children:(0,x.jsx)(d.A,{sx:{visibility:o?"visible":"hidden"},onClick:()=>r(""),children:(0,x.jsx)(a.A,{})})})})}},58691:(e,o,r)=>{r.d(o,{A:()=>s});r(9950);var t=r(16491),i=r(46639),n=r(62217),l=r(44414);function s(e){let{size:o=70,imgSize:r=40,alt:s="loader"}=e;return(0,l.jsxs)(t.A,{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",children:[(0,l.jsx)(i.A,{size:o}),(0,l.jsx)(t.A,{position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",sx:{width:r,height:r},children:(0,l.jsx)("img",{src:n,alt:s,style:{width:"100%",height:"100%",borderRadius:"50%",objectFit:"contain"}})})]})}},59212:(e,o,r)=>{r.d(o,{A:()=>x});var t=r(89379),i=r(9950),n=r(93230),l=r(41413),s=r(77922),d=r(29925),c=r(26910),a=r(31222),h=r(44414);const x=(0,i.forwardRef)(((e,o)=>{let{setAppId:r,setLocoName:x,setPage:u,sx:p,textfeildSx:g,textfieldSx:f,pill:v=!1,accentColor:A="#6366f1",icon:b,placeholder:m="Select Zone",paperComponent:j}=e;const[w,S]=(0,i.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,i.useEffect)((()=>{0===w.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const o=await c.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(o.data.status){const e=[...o.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),S(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[w.length]);const y=e=>"".concat(A).concat(e),W=y("26"),C=y("18"),k=v?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(W)},"&.Mui-focused fieldset":{borderColor:A,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},R=v&&(0,h.jsx)(n.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,h.jsx)(l.A,{sx:{width:24,height:24,bgcolor:C,color:A,transition:"background-color 0.15s, color 0.15s"},children:b||(0,h.jsx)(a.HPi,{size:14})})});return(0,h.jsx)(s.A,{id:"location-autocomplete",options:w||[],getOptionLabel:e=>{var o;return null!==(o=null===e||void 0===e?void 0:e.locationname)&&void 0!==o?o:""},PaperComponent:j,sx:(0,t.A)({},p),onChange:(e,o,t)=>{"clear"===t?(null===r||void 0===r||r(0),null===x||void 0===x||x(""),null===u||void 0===u||u(0)):o&&(null===r||void 0===r||r(o.applocationid),null===x||void 0===x||x(o.locationname),null===u||void 0===u||u(0))},renderInput:e=>v?(0,h.jsx)(d.A,(0,t.A)((0,t.A)({},e),{},{inputRef:o,placeholder:m,InputProps:(0,t.A)((0,t.A)({},e.InputProps),{},{startAdornment:R}),sx:(0,t.A)((0,t.A)({},k),f||g||{})})):(0,h.jsx)(d.A,(0,t.A)((0,t.A)({},e),{},{inputRef:o,label:"Select Zones",sx:(0,t.A)({},f||g||{})}))})}))},62217:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAAA+CAYAAABzwahEAAAPnUlEQVR4AdVae3AU9R3/7d4jdyGQQKAhECBAJBSmEAtFSQUjqPgAHGlhRm0lDkWY6Tg+O9qiErR26h8WR8ZWqTMN1ur4qMpDrTyjtDwDJloeCYiBvAgkaZ53l7vb3X4/v9vfZS/Zu9uFwLSfmb3d293f7u/z+z5/399K7CphdW5JrupgBZosZ0ialmu8pklSjUOTamRJbvvjqTUV7CpAYlcIj+SWZHQ55WJZlm7UNK2IXpRhpZ3GWJskSWXUZrPD4Sp77eSva9gVwIATXz35+SJNYWs1phWxAYDEpDKVaZv+fOrZUjaAGDDiK695rpgetpYOc82upw72sMycdJbz/SzmHeKl/ynRay31bbS1s7rjTczXGYj3ihrShnUDNQCXTXzlNS8UyExdbybhSdeNYwXz81nBzflE2pKms7oT51ntiSa276NKVn3wrNktNcGQelNpTUkNuwxcFvFV+S88rKnKy8ZzkOz84uvYvOJZ/PhyAE3Y/+HXbN+HFVwjjJAlR8lr1WueY9wt2MclEYfj8rnkj+nwRnHOLuGWhnbmpfuMKh/3Xn0Atm74IuY8OcGPFYk99kbVM98xm7BFnDyttHLyb3MlRdsjSWycOA+VLv79YpY5Ork6V5efY59s/JJVHznH/+dMymLz7v0Rm71oWtK2GIDSJ7ew6kMxJlCjytI8u+Qddm4+93bPBIfqiiG96KG5RPouljokuZT3b/2avf7EB6ylsZ1dM2MsG5OfxU7RAFSWVbMAObUphRMTtsc7CpdMh6c3kqe8gN117Yh5W4627GljFmGZ+C/ynx/flzSkDPW2Aqj2+lV/Y5mj0tljG3/GFhQXspkLpnBJVx85yyq/OGWJPAANgzkd2/utOMXJzxp965vlF3YFrPRHZtYgSZq6vi/p2TT6VrF+1Vt8/yiRhnoLiIHAftc7h0kDzlp6HgYcfTAgVwmEPmIWzTeZxPEQaeWkkhJJk1eJk8vWLGBz75nBrAIqfmDrN2zhqjlsetGkftddKU6WQ2qPe6AZVuwdGPP9kWw4+ZWKnVXiVO6M4UXtR1rKDiZrm4g4J70871cTnMzzd3ESNn3bgz9mdgC7hmoufeKWuB4/c1QGV3nYfP7Msfy/FYB8rM1LC6YNm72lonXv+UTtEqr60qVLJTcbvEv8h20tfOhGZgeQtpBiZnZ6wnuhEUDFnlPMDhaSMCbNilohc0kp61mEW1y1j0u8hLR78Ff5xX3t2i5AHLjegvqOIdtHXK/8oorZRfGLiw3aJM1dkVeynA5kCsGm98cjLhNxh4O5nxEnoOJW4rQRkDRUF3adTNoAEprRRB7tfJ09zA7Qt3mGCCMz+dmioiLKcSRTjvGISw/kPbNcSDtzdLotDy6A+AyYObR4KCjK53ur3t2I+ct7s0b0Pfds4U04RuLV914z4rjJ4ZSc94sTSBrsShvYv62S76frZKwAYQ2orWpidoEExyh1tzPl6SlTpjhJ6v3u7Utcgm0vHf/wePKUc8TJS5E21LWu6gKbRBmalXwcgHp70yISg8QR3oTWWAWk3gtpbp6/cCiLRK8Y9k7jHzgCGh3n8om/ibpueHKr0vZT5lVZFvHItVWRaALVQ4pqxcYfL3opeoxcvlr3D4BVc4HU4eFFeMt0ZsHJvUzcFKPkY4gvW7YMGiC7ZfcicW723dalXUsS3lSyNeZcBUmsmaS/5p0Vlp4BVccADsvOYP6uAM/yKsqq7PkJmv8L4k7mmEu7DcRNIfIqkedu3qjq0pkzZ/DfITE5quZjp2Qxu0Dnha1iX1fdxD55fW/CNjANYN49s7jKI5O788E5kfY0oHZQcEuvT5GY8wbaye+//36MqsfY+JEjR6QlY1cX0CHvNdQmZ/JIZhUtjW3RzkNqsG90Hti2cS8fgGSoqz7Pp6loi/uH6wNnJ7zBNA0ZYvrdY1aMZ6hdGHQ9RuL473KmDBUnUB+zAyE1dP6me2fxpMUYljat3Zb0GfvJodWRRz9Aic/utw+Ts/NG1L/L0qQrCoRggVTXUGRPMULmNo44h0CflZXlcGiuXLPGdoDOo7Pw0EYpC5W/c9Wcfm3EoAGiSAF4h0QiQmtDmyUHKZAzZSSrPam/W5MgzJgUlo+CrgFSU1OT5GTOseKi7UytsT2GiJlqW1X5aB+IrJfCYXNDO7MDYwh1yA4kYvKMGTNkkcxw4ghjdJLfQ9ntJRcgWxqsFUCsqDzg1e0U5FtsEvfGVIQ4J9nv90fNXEhcgmPLyEAh49KJW4WZlzezYSE172BvjDbZhc5JPn78eH/nlpubK7e1tcWQtjtRaDXpnLHaYkRflTdbSEhN65V4a4Plclo/IC/TDyV9ixCnNJWFw2EpPT2dBcKBBtHA3+FndmCmjsueuJnIf8/0/mQq79UlDkdpV+LGOnxQ7aljOmFwBTjxY8eOSXV1day9vV1SlFCHaFB3wroT8sdZ+kE4QuXFDMkSG7+ucZmUxdmdqrbU9WpIINQuiPO5CM5x4pTVYMdTucbgt8ejjeutj3K8Tg0jaU2aMY4nJWYQKm+mLT7d7kUW2GrDwRmFFpD8Xax3xSUmZcUfPhL7L2yvp9XJTv7ijgAv4ltBPK8rHNRCPf00QzKVRzs8p7Y6YRktCqy99foMrWN73bsnWJ/ZmTGbUVlkADRFDUarlIYKZkKYeWUjUYSm+0sWmraFxHdTaTkRhtnI2bHwKBBUA3iwSv6LcxPnjV4dI6J5vV61W+04JM5X7LBG3Mwr9820oPLxZln+zsQpac6kkdG5QDLs+7AyetwRat0FTvqsLEpeJDBaTU2NQocqBXl1f9PnH4uGmN5ZcSpmqu41KSUvffwWy4UJIzCIxlQ2bj/ILxnX1mq6Tx0EJwrVKlVjNFF8NKasbMSIEeqgQYOUWl91W0gNlIvGu0oPJH2h31Ti/VNeqP8dJrm6KQnDYIp5erKwZpR2j9JTfrRldy1x4mZMCYwWk7mxiPjVixcvqt3d3WpKSopS6z/9J/GA3ZsOJZW6mRp640h2Pk1bsWhoBzAToLo8fhES0t4fo+YXoblhWZbDtOcaLa5FbZziGyc/ZMgQpaenJ7yz4b1DqhpuxDV492RSNxuYeF4cWF6yiNmB8OyJ1B3SFlFI1ZSGj2o3grjS2dnJSescYyswa9eu5cQ7OjpwE0YodLGn/jVxHVJPFNfNc21PQiKiSJEIxgGFZ49XfETfthk+HGiO9B08wsOHD8deNd4fJa7rPi6G09LSeINPm97cHFT9R3gHSOqlT25m8WCWXCRzYvMpqUmkFYBxQOHZYedmNXdj36Cp6LvOJdTc3KzS4oKqC5cjSlz3dvhRurq6Qh6PJ0SDETrefvQP4h54y76fYwhg+ffRjfeRCi/kkrx+0Q9oVSRx2SpRbI8S7+iVuAiP+KrCiK0bvozx5Idat68KBoMhCmNBcKFQrYC4KDQC0SqrfhIS56oeCASC5ORCh5o/Pz7aO279CE/Oo7hvG70EBYrCPrX26CzM+uoxh0hnUWYyJd4VmSihWvvJxkheX2uY1e0qPRij4q09TW98/Z8D59B3CmNBUnMFoVpMTgT6LigI44eqB2kwMNxBchJvk8ofFTdtempLTNi4XCCdjWcWqLwgrH3w0g4eCaBVq1/6Kb+GPrz3u+3Re31K95cfnHv1dfSZPDn6HoKq06qvqvVZPey3Po6RKSsr49cwVWWRwXE2+M7tyxs87VZZktNwsZJSWVRhJxTksMsFPgyY85MZbGrhBJqDe5kzxRGd20MjOlq6qNqawSOBWDcHaQhAQCG7Pty66+l29WKz0+n0k8ZCVQITJ04M7dy5U1m3bl0M8XjVFgyIizYP2ckgUpnBdJw6OeOHuYWZC191ys6o8WJtepHNNXMrgDeHE0MuALLG9Bc2bVTvsBo+v6/ls1+ebDv8Ham4j8IxZmPdtMEzhljvPCSKeMT5wmF2dra7sbExlY4H0QZJe4n82L7ksWRT/OJdl1yVtQqELHhvoyMjSZ//V4T0WbfbHSCnxklTxdhPxdMgaXjY6NSMBPtBX0ODikPqbto4eXpwKj0Y5MfMHHbzI6mOtJhADOkXLikY8AGA9JFA7S49FDMZCij+ih31bz3V2FPbqpOGlLH5aION94vfAnELi3qtHddBHJ7Hy3Sp0+YhO3Ivzl65Yrgn+wFjO3j82UumDcgAxCMMNPnPbdhc98a7LpcLThikYdOQNrdtcmhhKrD0U3GBZBVVieKfg5wdJJ+Smprq9fl8kH4qvdATCoVc+ekFo28YvvgVh0H1BWACWGLGBzpjLK7KoGSEGgC2Pl8wckDK/247+MrR1t2YL8N+IVmfThh7YdcKS/Cda1LiqFHRJufk5LioLuch8h6dvJfIpxB5aITzjtE/v32kZ/wDTpMBAJC+YkkKWmD8ktlHCQqKmrUnL7BWIh3vs23YcmPgu798Wv/Xz0CM3h2mdwd0wnwjn9QzatSoEJXKw1pEZeMTYxagq73w9FB7Suw8XlVVvaRi+A/yuO64bfR9t2eljL09xeEtYAOAQNhfcabrm9J/XtyGPIKn1Lp6B3X19tN6gJ/m29ymSUgKUlMzh2aEncUDmdRe1tXeaPce/dilbxgAOT99evbEQdOuHebJvsHrSC2gpec0Ky/RmNrlV3wVneHWrw427/hHc7C+k/IJEFZ1KSOjDFDIEtLmSRb1LUR94/dZeY+tVROoPDaQo1TQTS9PoSlfik4cA0B9c7mpc1z6GAByghISoZkjivI8MuVRjqEjU52DRuossXir+UJdFHcCXfW+b09VtR9tMnReoefxNJqeCbsF6R7KygL03B56N8/OWK/3tkTaNnHWa/M8zrNIru8iOik0GeADQGHFTabh0q85qL/8Kwu0xSBgTwPB6BiLGMZn83SZzmuQMAhTWz5voEeGoNcgTtWUHiqW8OO8vLww+R5lz5494UT2PBDEY9rSQqOTHAmP91TFdNGChJsyPTdlelztqcMu6i+XvNiIkBQRHlcPHGv6sUbHIKzo56J1AZBkvR5cSFhUVBR2CbD69bIpysvLecdoAHqINOytm0ijJt9J3r+TVBLHXfrGkwsiJRIMLF1i76MBEue7qE0XqTPadYiNnFen3j6Ad5HGYSDwTcslkQYGamVULLrLpH7y6dOnuY1TGctFFR0hcYfhvujinQ6eaNBgYc6sEHm+0WAKqatEWJkwYYI6depUjYhbtuWrBW775GGd1FEXFQA8FFsR8+HRMdFBKocgPrTvRkgnh4l70ijPxtwAzpLnCLpDvSztvFqQ9C8PuAPEINDeTdpgjADYjOFQhESn3s6hP+OKr9dfSUhCaiIcYjNIMur52f850f95/BfoYlARf1CQvwAAAABJRU5ErkJggg=="},96646:(e,o,r)=>{r.d(o,{r:()=>d});var t=r(9213),i=r(21671),n=r(82917),l=r(93230),s=r(44414);const d=e=>{let{rowsPerPage:o=5,col:r=1}=e;return(0,s.jsx)(s.Fragment,{children:Array.from(new Array(o)).map(((e,o)=>(0,s.jsxs)(t.A,{children:[(0,s.jsx)(i.A,{children:(0,s.jsx)(n.A,{variant:"circular",width:24,height:24})}),(0,s.jsx)(i.A,{children:(0,s.jsx)(n.A,{variant:"text",width:30})}),Array.from({length:r}).map(((e,o)=>(0,s.jsx)(i.A,{children:(0,s.jsxs)(l.A,{spacing:.5,children:[(0,s.jsx)(n.A,{variant:"text",width:100}),(0,s.jsx)(n.A,{variant:"text",width:80})]})},o))),(0,s.jsx)(i.A,{children:(0,s.jsx)(n.A,{variant:"text",width:150})}),(0,s.jsx)(i.A,{children:(0,s.jsx)(n.A,{variant:"rounded",width:60,height:24})}),(0,s.jsx)(i.A,{align:"center",children:(0,s.jsxs)(l.A,{direction:"row",spacing:1,justifyContent:"flex-end",children:[(0,s.jsx)(n.A,{variant:"circular",width:28,height:28}),(0,s.jsx)(n.A,{variant:"circular",width:28,height:28})]})})]},o)))})}}}]); \ No newline at end of file +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[2851],{22851:(e,o,r)=>{r.r(o),r.d(o,{default:()=>Be});var t=r(22555),i=r(85571),n=r(13659),l=r(20077),s=r(18871),d=r(85672),c=r(46077),a=r.n(c),h=r(66157),x=r(69039),u=r(48952),p=r(68220),g=r(68320),f=r(41033),v=r(55235),A=r(97043),b=r(76264),m=r(15227),j=r(1939),w=r(71392),S=r(2866),y=r(17488),W=r(81062),C=r(86270),k=r(48738),R=r(83209),z=r(28579),D=r(11969),P=r(72486),I=r(54016),L=r(50755),M=r(1596),Y=r(81802),T=r(23440),F=r(1150),E=r(30154),K=r(77865),O=r(58689),N=r(5670),H=r(80911),B=r(19619),J=r(17450),q=r(37476),G=r(36738),Z=r(80959),U=r(33090),V=r(52994),Q=r(33323),X=r(75732),_=r(43962),$=r(36117),ee=r(52351),oe=r(78752),re=r(6749),te=r(81425),ie=r(56311),ne=r(20466),le=r(96646),se=r(59212),de=r(58691),ce=r(27001),ae=r(36803),he=r(23787),xe=r(65908),ue=r(22686);a().extend(ue);const pe=14,ge=10,fe="0 1px 3px rgba(15, 23, 42, 0.06)",ve="0 12px 32px rgba(15, 23, 42, 0.12)",Ae="#0f172a",be="#64748b",me="#94a3b8",je="#e2e8f0",we="#cbd5e1",Se="#f1f5f9",ye="#ffffff",We="#f8fafc",Ce="#662582",ke=(e,o)=>"".concat(e).concat(o),Re=e=>ke(e,"08"),ze=e=>ke(e,"18"),De=e=>ke(e,"26"),Pe=e=>ke(e,"55"),Ie=()=>({cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:ge+"px",bgcolor:ye,fontWeight:600,color:Ae,paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:je,borderWidth:1},"&:hover fieldset":{borderColor:we},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(De(Ce))},"&.Mui-focused fieldset":{borderColor:Ce,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:me}}),Le={pending:{label:"Pending",color:"#f59e0b",icon:u.tX0},accepted:{label:"Accepted",color:"#6366f1",icon:u.Azs},arrived:{label:"Arrived",color:"#06b6d4",icon:u.gwi},picked:{label:"Picked",color:"#8b5cf6",icon:u.gsJ},active:{label:"Active",color:"#14b8a6",icon:u.pk7},skipped:{label:"Skipped",color:"#f97316",icon:u.ivF},delivered:{label:"Delivered",color:"#10b981",icon:u.mU9},cancelled:{label:"Cancelled",color:"#ef4444",icon:u.uDv}},Me=[{status:"pending",countKey:"uncoveredLength"},{status:"accepted",countKey:"assignedLength"},{status:"arrived",countKey:"arrivedLength"},{status:"picked",countKey:"pickedLength"},{status:"active",countKey:"activeLength"},{status:"skipped",countKey:"skippedLength"},{status:"delivered",countKey:"coveredLength"},{status:"cancelled",countKey:"cancelLength"}],Ye=[{key:"created",label:"Created Orders",color:"#0ea5e9",icon:u.HU2},{key:"pending",label:"Pending Orders",color:"#f59e0b",icon:u.G6c},{key:"delivered",label:"Delivered Orders",color:"#10b981",icon:u.cAP},{key:"cancelled",label:"Cancelled Orders",color:"#ef4444",icon:u.qiG}],Te=[{id:"all",label:"All Batches",range:"Across the day",color:"#7c3aed",iconKey:"all"},{id:"morning",label:"Morning Batch",range:"12 AM to 8 AM",color:"#0ea5e9",iconKey:"morning",startHour:0,endHour:8},{id:"afternoon",label:"Afternoon Batch",range:"9 AM to 12:30 PM",color:"#f59e0b",iconKey:"afternoon",startHour:9,endHour:12.5},{id:"evening",label:"Evening Batch",range:"4 PM to 7 PM",color:"#6366f1",iconKey:"evening",startHour:16,endHour:19}],Fe={all:u.lB9,morning:u.N3N,afternoon:u.aSE,evening:u.giK},Ee=()=>{const e=a()(),o=e.hour()+e.minute()/60;for(const r of Te)if("all"!==r.id&&o>=r.startHour&&o{let o=null;for(const n of Ke)if(null!==e&&void 0!==e&&e[n]){o=e[n];break}if(!o)return null;const r=String(o).trim();if(/^\d{4}-\d{2}-\d{2}$/.test(r))return null;const t=a()(o);if(!t.isValid())return null;const i=t.hour()+t.minute()/60;for(const n of Te)if("all"!==n.id&&i>=n.startHour&&i(0,xe.jsx)(v.A,(0,t.A)((0,t.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:ve,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),He=e=>{let{color:o,selected:r,size:t=24,children:i}=e;return(0,xe.jsx)(A.A,{sx:{width:t,height:t,bgcolor:r?o:ze(o),color:r?"#fff":o,transition:"background-color 0.15s, color 0.15s"},children:i})},Be=()=>{const e=localStorage.getItem("userid"),o=(0,x.A)(),r=(0,b.A)(o.breakpoints.down("md")),c=(0,d.useRef)(),ue=(0,d.useRef)(),[ke,Ke]=(0,d.useState)([]),[Be,Je]=(0,d.useState)(!1),[qe,Ge]=(0,d.useState)("All"),[Ze,Ue]=(0,d.useState)(0),[Ve,Qe]=(0,d.useState)(a()().format("YYYY-MM-DD")),[Xe,_e]=(0,d.useState)(a()().format("YYYY-MM-DD")),[$e,eo]=(0,d.useState)("Pending"),[oo,ro]=(0,d.useState)(0),[to,io]=(0,d.useState)(!1),[no,lo]=(0,d.useState)("Today"),[so,co]=(0,d.useState)(""),[ao,ho]=(0,d.useState)(),[xo,uo]=(0,d.useState)(),[po,go]=(0,d.useState)(""),[fo,vo]=(0,d.useState)({}),[Ao,bo]=(0,d.useState)(""),[mo,jo]=(0,d.useState)(""),[wo,So]=(0,d.useState)("pending"),[yo,Wo]=(0,d.useState)("delivered"),Co=(0,d.useRef)(null),ko=(0,d.useRef)(null),[Ro,zo]=d.useState(0),[Do,Po]=d.useState(50),[Io,Lo]=d.useState(),[Mo,Yo]=(0,d.useState)(null),[To,Fo]=(0,d.useState)(null),[Eo,Ko]=(0,d.useState)(""),[Oo,No]=(0,d.useState)(""),[Ho,Bo]=d.useState(null),[Jo,qo]=(0,d.useState)(null),[Go,Zo]=(0,d.useState)(!1),[Uo,Vo]=d.useState(null),[Qo,Xo]=(0,d.useState)(""),[_o,$o]=(0,d.useState)(!1),[er,or]=(0,d.useState)(!1),[rr,tr]=(0,d.useState)(""),[ir,nr]=(0,d.useState)(null),[lr,sr]=(0,d.useState)(0),[dr,cr]=(0,d.useState)(0),[ar,hr]=(0,d.useState)(null),[xr,ur]=(0,d.useState)(null),[pr,gr]=(0,d.useState)(0),[fr,vr]=(0,d.useState)(Ee),Ar=localStorage.getItem("roleid");(0,d.useEffect)((()=>{sr(0),hr(null),cr(0),ur(null)}),[Ze]),(0,d.useEffect)((()=>{cr(0),ur(null)}),[lr]);const br=Boolean(Ho),mr=(e,o)=>{qo(o),console.log("selectedRow",o),Bo(e.currentTarget)},jr=()=>{Bo(null)},{mutate:wr}=(0,p.n)({mutationFn:e=>{let{selectedRow:o,cancelFeed:r}=e;return(0,te.zF)(o,r)},onSuccess:()=>{Lr("Delivery Cancelled Successfully","success"),$o(!1),ot(),Kr(),qr()},onError:e=>{Lr(e.message,"error")}}),{data:Sr,isLoading:yr,isError:Wr,error:Cr}=(0,g.I)({queryKey:["tenantlist",Ze],queryFn:()=>(0,te.Mn)(Ze),enabled:0!==Ze}),{data:kr,isLoading:Rr,isError:zr,error:Dr}=(0,g.I)({queryKey:["gettenantlocations",lr],queryFn:()=>(0,te.DL)(lr),enabled:0!==lr}),Pr=(0,p.n)({mutationFn:te.k3,onSuccess:()=>{(0,n.M8)("Notification sent Successfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3})},onError:e=>{(0,n.M8)(e.message,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3})}}),Ir=(0,p.n)({mutationFn:e=>{let{selectedRider:o,selectedRow:r}=e;return(0,te.R_)(o,r)},onSuccess:(e,o)=>{let{selectedRider:r,selectedRow:t}=o;Zo(!1),or(!1),"Success"===e.data.message&&(i.A.info("Rider changed successfully for order ID ".concat(null===t||void 0===t?void 0:t.orderid,". New Rider: ").concat(null===r||void 0===r?void 0:r.firstname," ").concat(null===r||void 0===r?void 0:r.lastname)),Lr("Rider Changed Successfully","success")),ot(),Kr(),qr(),Pr.mutate(r.userfcmtoken)},onError:(e,o)=>{let{selectedRider:r,selectedRow:t}=o;i.A.error("Failed to change rider for order ID ".concat(null===t||void 0===t?void 0:t.orderid,":"),e),Lr(e.message,"error"),Zo(!1)}}),Lr=(e,o)=>{(0,n.M8)(e,{variant:o,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3})},{data:Mr}=(0,g.I)({queryKey:["orderdetails",To],queryFn:()=>(0,te.z3)(To),enabled:!!To}),Yr=()=>{Je(!1)},{isLoading:Tr,isError:Fr,error:Er,refetch:Kr}=(0,f.q)({queryKey:["fetchdeliveries",Ze,e,wo,Ve,Xe,Do,Oo,lr,dr,pr],queryFn:te.tL,getNextPageParam:e=>{var o;return null!==(o=e.nextPage)&&void 0!==o?o:void 0}}),{data:Or,fetchNextPage:Nr,hasNextPage:Hr,isFetchingNextPage:Br,isLoading:Jr,refetch:qr}=(0,f.q)({queryKey:["fetchdeliveries-batchcounts",Ze,e,"all",Ve,Xe,200,"",lr,dr,pr],queryFn:te.tL,getNextPageParam:e=>{var o;return null!==(o=e.nextPage)&&void 0!==o?o:void 0}}),Gr=(0,d.useMemo)((()=>((null===Or||void 0===Or?void 0:Or.pages)||[]).flatMap((e=>e.rows||[]))),[Or]);(0,d.useEffect)((()=>{Hr&&!Br&&Nr()}),[Hr,Br,Nr,Gr.length]);const Zr=Hr||Br,Ur=(0,d.useMemo)((()=>{const e=String(wo||"").toLowerCase(),o=String(Oo||"").trim().toLowerCase();return Gr.filter((r=>{if("all"!==fr&&Oe(r)!==fr)return!1;const t=String(r.orderstatus||"").toLowerCase();if(e&&t!==e)return!1;if(o){if(![r.deliverycustomer,r.deliveryaddress,r.deliverysuburb,r.pickupcustomer,r.pickupaddress,r.pickupsuburb,r.orderid,r.tenantname,r.ridername,r.username].map((e=>String(e||"").toLowerCase())).join(" ").includes(o))return!1}return!0}))}),[Gr,fr,wo,Oo]),Vr=(0,d.useMemo)((()=>{const e={uncoveredLength:0,assignedLength:0,arrivedLength:0,pickedLength:0,activeLength:0,skippedLength:0,coveredLength:0,cancelLength:0};return Gr.forEach((o=>{if("all"!==fr&&Oe(o)!==fr)return;switch(String(o.orderstatus||"").toLowerCase()){case"pending":e.uncoveredLength+=1;break;case"accepted":case"assigned":e.assignedLength+=1;break;case"arrived":e.arrivedLength+=1;break;case"picked":e.pickedLength+=1;break;case"active":e.activeLength+=1;break;case"skipped":e.skippedLength+=1;break;case"delivered":e.coveredLength+=1;break;case"cancelled":case"canceled":e.cancelLength+=1}})),e}),[Gr,fr]),Qr=(0,d.useMemo)((()=>{const e={all:0};return Te.forEach((o=>{"all"!==o.id&&(e[o.id]=0)})),Gr.forEach((o=>{const r=Oe(o);r&&(e[r]=(e[r]||0)+1,e.all+=1)})),e}),[Gr]);(0,d.useEffect)((()=>{if(!Hr)return;const e=new IntersectionObserver((e=>{e[0].isIntersecting&&Nr()}),{root:document.querySelector(".MuiTableContainer-root"),rootMargin:"0px",threshold:1});return c.current&&e.observe(c.current),()=>{c.current&&e.unobserve(c.current)}}),[Hr,Nr]);const{data:Xr={},isLoading:_r,isError:$r,error:et,refetch:ot}=(0,g.I)({queryKey:["fetchCountData",Ze,e,Ve,Xe,Do,Oo,lr,dr,pr,$e],queryFn:()=>(0,te.qB)(Ze,e,Ve,Xe,Do,Oo,lr,dr,pr)});(0,d.useEffect)((()=>{console.log("countData",Xr),0===oo&&Xr&&Lo(Xr.uncoveredLength)}),[Xr]);const{data:rt=[],isLoading:tt,isError:it,error:nt}=(0,g.I)({queryKey:["ridersList",Ze],queryFn:te.Sd,enabled:Boolean(Ze),onError:e=>{(0,ne.k)(e.message,"error",2e3)}}),lt=(0,p.n)({mutationFn:e=>(0,te.wT)(e),onSuccess:e=>{console.log(e),e.data.status&&(Lr("Updated Successfully","success"),uo(""),go(""),Je(!1),Kr(),ot(),qr())},onError:e=>{console.log(e),Lr(e.message,"success")}}),st=Fr?"Error fetching deliveries: ".concat(null===Er||void 0===Er?void 0:Er.message):$r?"Error fetching count summary: ".concat(null===et||void 0===et?void 0:et.message):it?"Error fetching riders: ".concat(null===nt||void 0===nt?void 0:nt.message):Wr?"Error tenant list: ".concat(null===Cr||void 0===Cr?void 0:Cr.message):zr?"Error location list: ".concat(null===Dr||void 0===Dr?void 0:Dr.message):null;return st?(console.log("errorMessage",st),(0,ne.k)(st,"error",2e3),null):(0,xe.jsxs)(xe.Fragment,{children:[(_r||Jr||yr||Rr||tt)&&(0,xe.jsx)(xe.Fragment,{children:(0,xe.jsx)(ee.A,{})}),(0,xe.jsx)(m.A,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:_r||Tr||yr||Rr||tt}),(0,xe.jsx)(ce.A,{title:"Deliveries",subtitle:"Live \xb7 ".concat(qe||"All Zones"),live:!0,action:(0,xe.jsx)(se.A,{ref:Co,locaName:qe,setAppId:Ue,setLocoName:Ge,setPage:zo,pill:!0,accentColor:"#662582",icon:(0,xe.jsx)(u.HPi,{size:14}),placeholder:"Select Zone",paperComponent:Ne,sx:{width:{xs:"100%",sm:280},zIndex:100}})}),(0,xe.jsx)(j.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:[(0,t.A)((0,t.A)({},Ye[0]),{},{value:Qr.all,percentage:null}),(0,t.A)((0,t.A)({},Ye[1]),{},{value:null===Xr||void 0===Xr?void 0:Xr.uncoveredLength,percentage:null!==Xr&&void 0!==Xr&&Xr.total?Math.round(Xr.uncoveredLength/Xr.total*100):0}),(0,t.A)((0,t.A)({},Ye[2]),{},{value:null===Xr||void 0===Xr?void 0:Xr.coveredLength,percentage:null!==Xr&&void 0!==Xr&&Xr.total?Math.round(Xr.coveredLength/Xr.total*100):0}),(0,t.A)((0,t.A)({},Ye[3]),{},{value:null===Xr||void 0===Xr?void 0:Xr.cancelLength,percentage:null!==Xr&&void 0!==Xr&&Xr.total?Math.round(Xr.cancelLength/Xr.total*100):0})].map((e=>{var o;const r=e.icon,t="number"===typeof e.percentage?e.percentage:Number(e.percentage),i=!Number.isNaN(t)&&void 0!==e.percentage&&null!==e.percentage;return(0,xe.jsx)(j.Ay,{item:!0,xs:6,sm:6,md:3,children:(0,xe.jsx)(ae.A,{title:e.label,value:null!==(o=e.value)&&void 0!==o?o:0,icon:(0,xe.jsx)(r,{size:20}),color:e.color,loading:_r,caption:i?"".concat(Math.abs(t),"% of total"):void 0})},e.key)}))}),(0,xe.jsxs)(v.A,{elevation:0,sx:{mt:{xs:1.5,md:2},mb:{xs:1.5,md:2},p:{xs:1.5,md:2},borderRadius:pe/8,border:"1px solid",borderColor:je,background:"#fff",boxShadow:fe},children:[(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:1,sx:{mb:{xs:1,md:1.5},color:be},children:[(0,xe.jsx)(A.A,{sx:{width:28,height:28,bgcolor:ze("#662582"),color:"#662582"},children:(0,xe.jsx)(u.MiI,{size:16})}),(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:800,letterSpacing:.6,textTransform:"uppercase",color:be},children:"Filters"})]}),(0,xe.jsxs)(w.A,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:1.25,sx:{flexWrap:"wrap"},children:[(0,xe.jsxs)(w.A,{direction:"row",flexWrap:"wrap",gap:1.5,alignItems:"center",children:[(()=>{const e=Te.find((e=>e.id===fr))||Te[0],o=Fe[e.iconKey]||u.VP9;return(0,xe.jsx)(y.A,{disableClearable:!0,size:"small",openOnFocus:!0,selectOnFocus:!0,filterOptions:e=>e,options:Te,value:e,onChange:(e,o)=>o&&vr(o.id),getOptionLabel:e=>e.label,isOptionEqualToValue:(e,o)=>e.id===o.id,PaperComponent:Ne,ListboxProps:{sx:{py:0,maxHeight:360}},renderOption:(e,o,r)=>{var i;let{selected:n}=r;const l=Fe[o.iconKey]||u.VP9,s=null!==(i=Qr[o.id])&&void 0!==i?i:0;return(0,d.createElement)("li",(0,t.A)((0,t.A)({},e),{},{key:o.id,style:{display:"flex",alignItems:"center",gap:12,padding:"10px 14px",borderBottom:"1px solid #f1f5f9",backgroundColor:n?"".concat(o.color,"10"):"transparent",transition:"background-color 0.15s"}}),(0,xe.jsx)(A.A,{sx:{width:36,height:36,bgcolor:n?o.color:"".concat(o.color,"18"),color:n?"#fff":o.color,transition:"background-color 0.15s, color 0.15s"},children:(0,xe.jsx)(l,{size:20})}),(0,xe.jsxs)(w.A,{direction:"column",spacing:0,flex:1,minWidth:0,children:[(0,xe.jsx)(S.A,{variant:"body2",fontWeight:700,color:"#0f172a",noWrap:!0,children:o.label}),(0,xe.jsx)(S.A,{variant:"caption",color:"text.secondary",noWrap:!0,children:o.range})]}),(0,xe.jsx)(W.A,{size:"small",label:s,sx:{minWidth:36,height:22,fontWeight:800,fontSize:11,bgcolor:s>0?"".concat(o.color,"18"):"#f1f5f9",color:s>0?o.color:"#94a3b8",border:"1px solid ".concat(s>0?o.color+"55":"#e2e8f0"),"& .MuiChip-label":{px:.75}}}),n&&(0,xe.jsx)(A.A,{sx:{width:22,height:22,bgcolor:o.color,color:"#fff"},children:(0,xe.jsx)(u.g9_,{size:14})}))},renderInput:r=>{var i;return(0,xe.jsx)(C.A,(0,t.A)((0,t.A)({},r),{},{placeholder:"Batch",inputProps:(0,t.A)((0,t.A)({},r.inputProps),{},{readOnly:!0,style:(0,t.A)((0,t.A)({},(null===(i=r.inputProps)||void 0===i?void 0:i.style)||{}),{},{cursor:"pointer",caretColor:"transparent"})}),InputProps:(0,t.A)((0,t.A)({},r.InputProps),{},{startAdornment:(0,xe.jsx)(w.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,xe.jsx)(A.A,{sx:{width:24,height:24,bgcolor:"".concat(e.color,"18"),color:e.color},children:(0,xe.jsx)(o,{size:14})})})}),sx:{minWidth:{xs:180,sm:220,md:240},cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(De("#662582"))},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}}))}})})(),Ve&&Xe&&(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:.75,onClick:()=>io(!0),sx:{pl:.5,pr:1.25,py:.5,borderRadius:"10px",cursor:"pointer",bgcolor:"#ffffff",border:"1px solid #e2e8f0",transition:"border-color 0.15s","&:hover":{borderColor:"#cbd5e1"}},children:[(0,xe.jsx)(He,{color:"#94a3b8",children:(0,xe.jsx)(u.tjE,{size:14})}),(0,xe.jsxs)(S.A,{variant:"caption",sx:{fontWeight:600,color:"#475569",whiteSpace:"nowrap"},children:[a()(Ve).format("DD MMM")," \u2013 ",a()(Xe).format("DD MMM")]})]})]}),(0,xe.jsx)(y.A,{disablePortal:!0,options:Sr||[],value:ar,PaperComponent:Ne,sx:{flex:{xs:"1 1 100%",sm:"1 1 180px"},minWidth:{xs:"100%",sm:180}},onOpen:e=>{Ze||(e.preventDefault(),(0,ne.k)("Please select your zone first!","warning",3e3),setTimeout((()=>{var e;return null===(e=Co.current)||void 0===e?void 0:e.focus()}),0))},onChange:(e,o,r)=>{"clear"===r?(sr(0),hr(null),cr(0),ur(null)):(sr((null===o||void 0===o?void 0:o.tenantid)||0),hr(o),cr(0),ur(null))},renderInput:e=>(0,xe.jsx)(C.A,(0,t.A)((0,t.A)({},e),{},{inputRef:ko,placeholder:"Select Tenant",InputProps:(0,t.A)((0,t.A)({},e.InputProps),{},{startAdornment:(0,xe.jsx)(w.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,xe.jsx)(He,{color:"#94a3b8",children:(0,xe.jsx)(u.gl1,{size:14})})})}),sx:Ie()}))}),(0,xe.jsx)(y.A,{disablePortal:!0,options:kr||[],getOptionLabel:e=>"".concat(e.locationname," (").concat(e.suburb,")")||0,value:xr,PaperComponent:Ne,sx:{flex:{xs:"1 1 100%",sm:"1 1 180px"},minWidth:{xs:"100%",sm:180}},onOpen:e=>{Ze||lr?lr||(e.preventDefault(),(0,ne.k)("Please select your Tenant first!","warning",3e3),setTimeout((()=>{var e;return null===(e=ko.current)||void 0===e?void 0:e.focus()}),0)):(e.preventDefault(),(0,ne.k)("Please select your Zone and Tenant first!","warning",3e3),setTimeout((()=>{var e;return null===(e=Co.current)||void 0===e?void 0:e.focus()}),0))},onChange:(e,o,r)=>{"clear"===r?(cr(0),ur(null)):(cr(o.locationid||0),ur(o))},renderInput:e=>(0,xe.jsx)(C.A,(0,t.A)((0,t.A)({},e),{},{placeholder:"Select Location",InputProps:(0,t.A)((0,t.A)({},e.InputProps),{},{startAdornment:(0,xe.jsx)(w.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,xe.jsx)(He,{color:"#94a3b8",children:(0,xe.jsx)(u.gwi,{size:14})})})}),sx:Ie()}))}),(0,xe.jsx)(y.A,{disabled:tt,options:rt,PaperComponent:Ne,getOptionLabel:e=>"".concat(e.firstname," ").concat(e.lastname," (").concat(e.contactno,")"),sx:{flex:{xs:"1 1 100%",sm:"1 1 180px"},minWidth:{xs:"100%",sm:180}},onChange:(e,o,r)=>{gr("clear"===r?0:o.userid)},onOpen:e=>{Ze||(e.preventDefault(),(0,ne.k)("Please select your zone first!","warning",3e3),setTimeout((()=>{var e;return null===(e=Co.current)||void 0===e?void 0:e.focus()}),0))},renderInput:e=>(0,xe.jsx)(C.A,(0,t.A)((0,t.A)({},e),{},{placeholder:"Choose Rider",InputProps:(0,t.A)((0,t.A)({},e.InputProps),{},{startAdornment:(0,xe.jsx)(w.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,xe.jsx)(He,{color:"#94a3b8",children:(0,xe.jsx)(u.bsz,{size:14})})})}),sx:Ie()}))})]})]}),(0,xe.jsx)(v.A,{elevation:0,sx:{p:{xs:1,md:1.5},borderTopLeftRadius:pe/8,borderTopRightRadius:pe/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:je,borderBottom:0,background:"#fff"},children:(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:1.5,sx:{flexWrap:"wrap-reverse"},children:[(0,xe.jsx)(w.A,{direction:"row",spacing:.75,sx:{flex:1,overflowX:"auto",py:.5,px:.25,"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-thumb":{backgroundColor:je,borderRadius:4}},children:Me.map(((e,o)=>{var r;const t=Le[e.status],i=t.icon,n=oo===o,l=null!==(r=Vr[e.countKey])&&void 0!==r?r:0;return(0,xe.jsxs)(k.A,{onClick:e=>{return r=o,zo(0),ro(r),Po(50),0===r&&(eo("Pending"),So("pending"),Lo(null===Xr||void 0===Xr?void 0:Xr.uncoveredLength)),1===r&&(eo("Assigned"),So("accepted"),Lo(null===Xr||void 0===Xr?void 0:Xr.assignedLength)),2===r&&(eo("Arrived"),So("arrived"),Lo(null===Xr||void 0===Xr?void 0:Xr.arrivedLength)),3===r&&(eo("Picked"),So("picked"),Lo(null===Xr||void 0===Xr?void 0:Xr.pickedLength)),4===r&&(eo("Active"),So("active"),Lo(null===Xr||void 0===Xr?void 0:Xr.activeLength)),5===r&&(eo("Skipped"),So("skipped"),Lo(null===Xr||void 0===Xr?void 0:Xr.skippedLength)),6===r&&(eo("Delivered"),So("delivered"),Lo(null===Xr||void 0===Xr?void 0:Xr.coveredLength)),7===r&&(eo("Cancelled"),So("cancelled"),Lo(null===Xr||void 0===Xr?void 0:Xr.cancelLength)),console.log(r),void Ko("");var r},sx:{display:"inline-flex",alignItems:"center",gap:{xs:.625,md:.875},pl:.5,pr:{xs:1,md:1.25},py:.5,flexShrink:0,cursor:"pointer",borderRadius:ge+"px",border:"1px solid ".concat(n?t.color:je),bgcolor:n?t.color:ye,color:n?"#fff":be,fontWeight:600,boxShadow:"none",transition:"background-color 0.15s, border-color 0.15s, color 0.15s","&:hover":{borderColor:n?t.color:we,bgcolor:n?t.color:We}},children:[(0,xe.jsx)(A.A,{sx:{width:{xs:20,md:22},height:{xs:20,md:22},bgcolor:n?"rgba(255,255,255,0.22)":ze(t.color),color:n?"#fff":t.color},children:(0,xe.jsx)(i,{size:12})}),(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:600,fontSize:{xs:11.5,md:13},lineHeight:1},children:t.label}),(0,xe.jsx)(k.A,{sx:{minWidth:{xs:20,md:24},height:{xs:18,md:20},px:.625,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:999,fontSize:{xs:10,md:11},fontWeight:700,bgcolor:n?"rgba(255,255,255,0.22)":We,color:n?"#fff":be,border:"none"},children:l})]},e.status)}))}),(0,xe.jsx)(k.A,{sx:{width:{xs:"100%",sm:240,lg:280},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,xe.jsx)(ie.A,{value:Eo,onChange:Ko,onDebouncedChange:No,sx:{m:0,width:"100%",borderRadius:ge+"px",bgcolor:ye,"& fieldset":{borderColor:je,borderWidth:1},"&:hover fieldset":{borderColor:we},"&.Mui-focused fieldset":{borderColor:Ce,borderWidth:1.5},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(De(Ce))}}})})]})}),(0,xe.jsx)(v.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:pe/8,borderBottomRightRadius:pe/8,border:"1px solid",borderColor:je,overflow:"hidden",background:"#fff"},children:(0,xe.jsx)(R.A,{ref:ue,onScroll:e=>{const{scrollTop:o,scrollHeight:r,clientHeight:t}=e.currentTarget;o+t>=r-50&&Hr&&!Br&&Nr()},sx:{maxHeight:{xs:"calc(100vh - 220px)",md:"calc(100vh - 190px)"},overflow:"auto",overflowX:"auto","&::-webkit-scrollbar":{width:"10px",height:"10px",cursor:"pointer"},"&::-webkit-scrollbar-thumb":{backgroundColor:Pe("#662582"),borderRadius:"8px",cursor:"pointer","&:hover":{backgroundColor:"#662582"}},"&::-webkit-scrollbar-track":{backgroundColor:We}},children:((e,o,i,n,s,h)=>{const x="Cancelled"!==$e&&"Delivered"!==$e,p="Created"==$e,g=15+(x?1:0)+(p?1:0);return r?(0,xe.jsxs)(he.nV,{sx:{p:1.25},children:[0===Ur.length&&!Go&&!Zr&&(0,xe.jsxs)(w.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,xe.jsx)(A.A,{sx:{width:64,height:64,bgcolor:ze("#94a3b8"),color:me},children:(0,xe.jsx)(u.gsJ,{size:28})}),(0,xe.jsx)(S.A,{variant:"subtitle1",sx:{fontWeight:700,color:Ae},children:"No deliveries to show"}),(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be,textAlign:"center",px:2},children:"all"===fr?"No ".concat(((null===(e=Le[wo])||void 0===e?void 0:e.label)||$e).toLowerCase()," orders for this filter."):"No ".concat(((null===(o=Le[wo])||void 0===o?void 0:o.label)||$e).toLowerCase()," orders in ").concat((null===(i=Te.find((e=>e.id===fr)))||void 0===i?void 0:i.label)||"this batch",".")})]}),0===Ur.length&&Zr&&(0,xe.jsxs)(w.A,{alignItems:"center",sx:{py:6},children:[(0,xe.jsx)(de.A,{}),(0,xe.jsx)(S.A,{variant:"caption",color:"text.secondary",sx:{mt:1},children:"Loading deliveries\u2026"})]}),Ur.map(((e,o)=>{var r,i,n,s,d,c,h,g;const f=Le[String(e.orderstatus||"").toLowerCase()]||{label:e.orderstatus||"\u2014",color:"#94a3b8",icon:u.bfP},v=f.icon,A=!!ke.find((o=>o.orderheaderid==e.orderheaderid)),b=(null===Mo||void 0===Mo?void 0:Mo.orderid)===(null===e||void 0===e?void 0:e.orderid),m=e=>({display:"inline-flex",alignItems:"center",justifyContent:"center",color:e,fontWeight:700,fontSize:12,whiteSpace:"nowrap"});return(0,xe.jsxs)(he.pg,{accent:f.color,selected:A,header:(0,xe.jsxs)(w.A,{spacing:1.25,children:[(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:.75,sx:{minWidth:0},children:[p&&(0,xe.jsx)(z.A,{size:"small",sx:{p:.25},onChange:o=>{if(o.target.checked){let o=ke;o.push((0,t.A)((0,t.A)({},e),{},{sno:ke.length+1})),Ke([...o])}else{let o=ke.find((o=>o.orderheaderid==e.orderheaderid));if(o){let e=ke;e.splice(o.sno-1,1),e.map(((e,o)=>{e.sno=o+1})),Ke([...e])}}},checked:!!ke.find((o=>o.orderheaderid==e.orderheaderid))}),(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:700,color:me},children:String(Ro*Do+o+1).padStart(2,"0")}),(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:.5,sx:{display:"inline-flex",pl:.5,pr:1,py:.25,borderRadius:999,bgcolor:Re(f.color),border:"1px solid ".concat(Pe(f.color)),color:f.color},children:[(0,xe.jsx)(He,{color:f.color,size:18,children:(0,xe.jsx)(v,{size:11})}),(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:800,fontSize:10.5,lineHeight:1},children:f.label})]})]}),(0,xe.jsxs)(w.A,{direction:"row",spacing:.75,sx:{flexShrink:0},children:["C"==e.deliverytype&&(0,xe.jsx)(D.A,{size:"small",onClick:()=>{(null===Mo||void 0===Mo?void 0:Mo.orderid)===e.orderid?(Yo(null),Fo(null)):(Yo(e),Fo(e.orderheaderid))},sx:{borderRadius:999,bgcolor:Re("#06b6d4"),color:"#06b6d4",border:"1px solid ".concat(Pe("#06b6d4")),"&:hover":{bgcolor:ze("#06b6d4")}},children:b?(0,xe.jsx)(oe.A,{fontSize:"small"}):(0,xe.jsx)(re.A,{fontSize:"small"})}),x&&(0,xe.jsx)(D.A,{size:"small",onClick:o=>mr(o,e),sx:{borderRadius:999,bgcolor:Re("#662582"),color:"#662582",border:"1px solid ".concat(Pe("#662582")),"&:hover":{bgcolor:ze("#662582")}},children:(0,xe.jsx)(l.A,{})})]})]}),(0,xe.jsxs)(k.A,{sx:{minWidth:0},children:[(0,xe.jsx)(S.A,{sx:{fontWeight:800,color:Ae,fontSize:15},noWrap:!0,children:e.tenantname}),(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be},noWrap:!0,children:[e.tenantsuburb,e.applocation].filter(Boolean).join(" \xb7 ")||"\u2014"})]})]}),children:[(0,xe.jsxs)(he.FG,{children:[(0,xe.jsxs)(he.pY,{label:"Order / Location",full:!0,children:[(0,xe.jsx)(S.A,{sx:{fontSize:13,fontWeight:600,color:Ae},noWrap:!0,children:"".concat(e.locationname,"-(").concat(e.locationsuburb,")")}),(0,xe.jsxs)(S.A,{variant:"caption",sx:{color:be},children:[e.orderid," \xb7 ",e.deliveryid]})]}),(0,xe.jsxs)(he.pY,{label:"Pickup",children:[(0,xe.jsx)(S.A,{sx:{fontSize:13,fontWeight:600,color:Ae},noWrap:!0,children:e.pickupcustomer||"\u2014"}),(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be},noWrap:!0,children:e.pickupcontactno})]}),(0,xe.jsxs)(he.pY,{label:"Drop",children:[(0,xe.jsx)(S.A,{sx:{fontSize:13,fontWeight:600,color:Ae},noWrap:!0,children:e.deliverycustomer||"\u2014"}),(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be},noWrap:!0,children:e.deliverycontactno})]}),(0,xe.jsx)(he.pY,{label:"Rider",full:!0,children:e.ridername?(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,xe.jsx)(He,{color:"#8b5cf6",size:24,children:(0,xe.jsx)(u.bsz,{size:13})}),(0,xe.jsxs)(w.A,{sx:{minWidth:0},children:[(0,xe.jsx)(S.A,{sx:{fontSize:13,fontWeight:700,color:Ae},noWrap:!0,children:e.ridername}),(0,xe.jsxs)(S.A,{variant:"caption",sx:{color:be},noWrap:!0,children:["ID #",e.userid," \xb7 ",e.ridercontact||"\u2014"]})]})]}):(0,xe.jsx)(S.A,{variant:"caption",sx:{color:me,fontWeight:600},children:"Unassigned"})}),(0,xe.jsx)(he.pY,{label:"ETA",value:e.expecteddeliverytime?a()(e.expecteddeliverytime).format("hh:mm A"):"\u2014"}),(0,xe.jsx)(he.pY,{label:"Transit",children:(0,xe.jsxs)(k.A,{sx:m("#06b6d4"),children:[e.transitminutes||0,"m"]})}),(0,xe.jsx)(he.pY,{label:"Kms \xb7 plan / act",children:(0,xe.jsxs)(w.A,{direction:"row",spacing:.5,flexWrap:"wrap",useFlexGap:!0,children:[(0,xe.jsxs)(k.A,{sx:m("#ef4444"),children:[e.kms||0," km"]}),(0,xe.jsxs)(k.A,{sx:m("#10b981"),children:[e.cumulativekms||0," km"]})]})}),(0,xe.jsx)(he.pY,{label:"Amount \xb7 chg / amt",children:(0,xe.jsxs)(w.A,{direction:"row",spacing:.5,flexWrap:"wrap",useFlexGap:!0,children:[(0,xe.jsxs)(k.A,{sx:m("#ef4444"),children:["\u20b9 ",null!==(i=null===(n=e.deliverycharges)||void 0===n?void 0:n.toFixed(2))&&void 0!==i?i:"0.00"]}),(0,xe.jsxs)(k.A,{sx:m("#10b981"),children:["\u20b9 ",null!==(s=null===(d=e.deliveryamt)||void 0===d?void 0:d.toFixed(2))&&void 0!==s?s:"0.00"]})]})}),(0,xe.jsx)(he.pY,{label:"Qty",value:e.Quantity||"\u2014"}),(0,xe.jsx)(he.pY,{label:"COD",children:(0,xe.jsx)(S.A,{sx:{fontSize:13,fontWeight:800,color:e.collectionamt?"#ef4444":me},children:e.collectionamt?"\u20b9 ".concat(e.collectionamt.toFixed(2)):"\u2014"})}),(0,xe.jsx)(he.pY,{label:"Step",children:e.step?(0,xe.jsx)(k.A,{sx:(0,t.A)((0,t.A)({},m("#662582")),{},{minWidth:30,fontWeight:800}),children:e.step}):(0,xe.jsx)(S.A,{variant:"caption",sx:{color:me},children:"\u2014"})}),e.notes&&(0,xe.jsx)(he.pY,{label:"Notes",full:!0,children:(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be},children:e.notes})})]}),b&&(0,xe.jsxs)(k.A,{sx:{mt:1.5,p:1.25,borderRadius:2,bgcolor:We,border:"1px solid ".concat(Se)},children:[(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:1,sx:{mb:1},children:[(0,xe.jsx)(He,{color:"#662582",size:22,children:(0,xe.jsx)(u.gsJ,{size:12})}),(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#662582"},children:"Product Details"})]}),(0,xe.jsxs)(w.A,{spacing:1,children:[null===Mr||void 0===Mr||null===(c=Mr.details)||void 0===c?void 0:c.map(((e,o)=>(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:1.25,sx:{p:1,borderRadius:1.5,bgcolor:"#fff",border:"1px solid ".concat(Se)},children:[(0,xe.jsx)(k.A,{component:"img",src:(null===e||void 0===e?void 0:e.productimage)||"https://via.placeholder.com/40",alt:null===e||void 0===e?void 0:e.productname,sx:{width:36,height:36,objectFit:"cover",borderRadius:1.5,border:"1px solid ".concat(Se),flexShrink:0}}),(0,xe.jsxs)(w.A,{sx:{minWidth:0,flex:1},children:[(0,xe.jsx)(S.A,{variant:"body2",sx:{fontWeight:600,color:Ae},noWrap:!0,children:(null===e||void 0===e?void 0:e.productname)||"Unnamed"}),(0,xe.jsxs)(S.A,{variant:"caption",sx:{color:be},children:["Qty ",(null===e||void 0===e?void 0:e.orderqty)||0," \xb7 \u20b9 ",(null===e||void 0===e?void 0:e.price)||0]})]}),(0,xe.jsxs)(S.A,{variant:"body2",sx:{fontWeight:800,color:Ae,flexShrink:0},children:["\u20b9 ",((null===e||void 0===e?void 0:e.productsumprice)+(null===e||void 0===e?void 0:e.taxamount)).toFixed(2)||0]})]},o))),(0,xe.jsxs)(w.A,{direction:"row",justifyContent:"space-between",sx:{pt:.5},children:[(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:700,color:be},children:"Total Amount"}),(0,xe.jsxs)(S.A,{variant:"body2",sx:{fontWeight:800,color:"#10b981"},children:["\u20b9 ",null===Mr||void 0===Mr||null===(h=Mr.pricedetails)||void 0===h||null===(g=h.orderamount)||void 0===g?void 0:g.toFixed(2)]})]})]})]})]},null!==(r=e.orderheaderid)&&void 0!==r?r:"".concat(e.tenantname,"-").concat(o))})),0!=(null===Gr||void 0===Gr?void 0:Gr.length)&&(0,xe.jsx)("div",{ref:c,style:{height:40,textAlign:"center"},children:Br||Hr?(0,xe.jsx)(de.A,{}):(0,xe.jsx)(S.A,{variant:"caption",sx:{color:me,fontWeight:600},children:"\xb7 End of list \xb7"})})]}):(0,xe.jsxs)(P.A,{stickyHeader:!0,sx:{minWidth:{xs:1100,lg:1300,xl:1400}},children:[(0,xe.jsx)(I.A,{children:(0,xe.jsxs)(L.A,{sx:{"& th":{backgroundColor:We,color:be,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(je),py:{xs:1,md:1.25},px:{xs:1,md:2}}},children:[p&&(0,xe.jsx)(M.A,{sx:{whiteSpace:"nowrap"},children:(0,xe.jsx)(z.A,{indeterminate:ke.length>0&&ke.length!=Ur.length,onChange:e=>{e.target.checked?Ke([...Ur]):Ke([])},checked:ke.length>0&&ke.length==Ur.length})}),(0,xe.jsx)(M.A,{children:"#"}),(0,xe.jsx)(M.A,{children:"Status"}),(0,xe.jsx)(M.A,{children:"Tenant"}),(0,xe.jsx)(M.A,{children:"Order / Location"}),(0,xe.jsx)(M.A,{children:"Pickup"}),(0,xe.jsx)(M.A,{children:"Drop"}),(0,xe.jsx)(M.A,{children:"Rider"}),(0,xe.jsx)(M.A,{children:"ETA"}),(0,xe.jsx)(M.A,{children:"Transit"}),(0,xe.jsx)(M.A,{children:"Kms"}),(0,xe.jsx)(M.A,{children:"Amount"}),(0,xe.jsx)(M.A,{children:"Notes"}),(0,xe.jsx)(M.A,{children:"Step"}),(0,xe.jsx)(M.A,{children:"Qty"}),(0,xe.jsx)(M.A,{children:"COD"}),x&&(0,xe.jsx)(M.A,{align:"right",children:"Action"})]})}),(Go||Jr)&&(0,xe.jsx)(le.r,{col:8}),(0,xe.jsxs)(Y.A,{children:[0==Ur.length&&!Go&&!Zr&&(0,xe.jsx)(L.A,{children:(0,xe.jsx)(M.A,{colSpan:g,sx:{py:6},children:(0,xe.jsxs)(w.A,{alignItems:"center",spacing:1.5,children:[(0,xe.jsx)(A.A,{sx:{width:64,height:64,bgcolor:ze("#94a3b8"),color:me},children:(0,xe.jsx)(u.gsJ,{size:28})}),(0,xe.jsx)(S.A,{variant:"subtitle1",sx:{fontWeight:700,color:Ae},children:"No deliveries to show"}),(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be},children:"all"===fr?"No ".concat(((null===(n=Le[wo])||void 0===n?void 0:n.label)||$e).toLowerCase()," orders for this filter."):"No ".concat(((null===(s=Le[wo])||void 0===s?void 0:s.label)||$e).toLowerCase()," orders in ").concat((null===(h=Te.find((e=>e.id===fr)))||void 0===h?void 0:h.label)||"this batch",".")})]})})}),0==Ur.length&&Zr&&(0,xe.jsx)(L.A,{children:(0,xe.jsxs)(M.A,{colSpan:g,sx:{textAlign:"center",py:6},children:[(0,xe.jsx)(de.A,{}),(0,xe.jsx)(S.A,{variant:"caption",color:"text.secondary",sx:{display:"block",mt:1},children:"Loading deliveries\u2026"})]})}),Ur.map(((e,o)=>{var r,i,n,s,c,h,x,p;const f=Le[String(e.orderstatus||"").toLowerCase()]||{label:e.orderstatus||"\u2014",color:"#94a3b8",icon:u.bfP},A=f.icon,b=!!ke.find((o=>o.orderheaderid==e.orderheaderid));return(0,xe.jsxs)(d.Fragment,{children:[(0,xe.jsxs)(L.A,{role:"checkbox",tabIndex:-1,sx:{cursor:"pointer",transition:"background-color 0.15s","& td":{borderBottom:"1px solid ".concat(Se),py:{xs:1,md:1.5},px:{xs:1,md:2}},backgroundColor:b?ze("#8b5cf6"):"transparent","&:hover":{backgroundColor:b?ze("#8b5cf6"):We}},children:["Created"==$e&&(0,xe.jsx)(M.A,{children:(0,xe.jsx)(z.A,{onChange:o=>{if(o.target.checked){let o=ke;o.push((0,t.A)((0,t.A)({},e),{},{sno:ke.length+1})),Ke([...o])}else{if(ke.find((o=>o.orderheaderid==e.orderheaderid))){let o=ke,r=ke.find((o=>o.orderheaderid==e.orderheaderid));o.splice(r.sno-1,1),o.map(((e,o)=>{e.sno=o+1})),Ke([...o])}}console.log("list",ke)},checked:ke.find((o=>o.orderheaderid==e.orderheaderid))})}),(0,xe.jsx)(M.A,{children:(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:700,color:me},children:String(Ro*Do+o+1).padStart(2,"0")})}),(0,xe.jsx)(M.A,{children:(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:.5,sx:{display:"inline-flex",pl:.5,pr:1,py:.25,borderRadius:999,bgcolor:Re(f.color),border:"1px solid ".concat(Pe(f.color)),color:f.color},children:[(0,xe.jsx)(He,{color:f.color,size:20,children:(0,xe.jsx)(A,{size:12})}),(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:800,fontSize:11,lineHeight:1},children:f.label})]})}),(0,xe.jsx)(M.A,{children:(0,xe.jsx)(T.A,{title:e.tenantadress,children:(0,xe.jsxs)(w.A,{children:[(0,xe.jsx)(S.A,{noWrap:!0,variant:"subtitle2",sx:{fontWeight:700,color:Ae},children:e.tenantname}),(0,xe.jsx)(S.A,{noWrap:!0,variant:"caption",sx:{color:be},children:e.tenantsuburb}),(0,xe.jsx)(S.A,{noWrap:!0,variant:"caption",sx:{color:me},children:e.applocation})]})})}),(0,xe.jsxs)(M.A,{align:"left",children:[(0,xe.jsx)(T.A,{title:"Location Name-Suburb",placement:"top",children:(0,xe.jsx)(S.A,{variant:"subtitle1",noWrap:!0,children:"".concat(e.locationname,"-(").concat(e.locationsuburb,")")})}),(0,xe.jsxs)(w.A,{display:"flex",flexDirection:"row",gap:3,children:[(0,xe.jsxs)(w.A,{children:[(0,xe.jsx)(T.A,{title:"Order Id",placement:"top",children:(0,xe.jsx)(S.A,{variant:"body2",noWrap:!0,children:e.orderid})}),(0,xe.jsxs)(T.A,{title:"Ordered date",placement:"top",children:[(0,xe.jsx)(S.A,{noWrap:!0,sx:{fontSize:"12px"},children:a()(e.orderdate).utc().format("DD/MM/YYYY")}),(0,xe.jsx)(S.A,{noWrap:!0,sx:{fontSize:"11px"},children:a()(e.orderdate).utc().format("hh:mm A")})]})]}),"-",(0,xe.jsxs)(w.A,{children:[(0,xe.jsx)(T.A,{title:"Delivery Id",placement:"top",children:(0,xe.jsx)(S.A,{variant:"body2",noWrap:!0,children:e.deliveryid})}),(0,xe.jsxs)(T.A,{title:"Delivery date",placement:"top",children:[(0,xe.jsx)(S.A,{noWrap:!0,sx:{fontSize:"12px"},children:a()(e.deliverydate).utc().format("DD/MM/YYYY")}),(0,xe.jsx)(S.A,{noWrap:!0,sx:{fontSize:"11px"},children:a()(e.deliverydate).utc().format("hh:mm A")})]})]})]})]}),(0,xe.jsx)(M.A,{align:"left",children:(0,xe.jsxs)(w.A,{children:[(0,xe.jsx)(S.A,{variant:"subtitle2",sx:{fontWeight:700,color:Ae,whiteSpace:"nowrap"},children:e.pickupcustomer}),(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be},children:e.pickupcontactno}),(0,xe.jsx)(T.A,{title:e.Pickupaddress,sx:{whiteSpace:"nowrap"},children:(0,xe.jsx)(S.A,{variant:"caption",sx:{color:me},children:e.pickuplocation||(e.Pickupaddress?e.Pickupaddress.slice(0,14)+"\u2026":"\u2014")})})]})}),(0,xe.jsx)(M.A,{align:"left",children:(0,xe.jsxs)(w.A,{children:[(0,xe.jsx)(S.A,{variant:"subtitle2",sx:{fontWeight:700,color:Ae,whiteSpace:"nowrap"},children:e.deliverycustomer}),(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be},children:e.deliverycontactno}),(0,xe.jsx)(T.A,{title:e.deliveryaddress,children:(0,xe.jsx)(S.A,{variant:"caption",sx:{color:me,whiteSpace:"nowrap"},children:e.deliverylocation||(e.deliveryaddress?e.deliveryaddress.slice(0,14)+"\u2026":"\u2014")})})]})}),(0,xe.jsx)(M.A,{children:e.ridername?(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,xe.jsx)(He,{color:"#8b5cf6",size:28,children:(0,xe.jsx)(u.bsz,{size:14})}),(0,xe.jsxs)(w.A,{children:[(0,xe.jsx)(S.A,{variant:"subtitle2",sx:{fontWeight:700,color:Ae},noWrap:!0,children:e.ridername}),(0,xe.jsxs)(S.A,{variant:"caption",sx:{color:be},children:["ID #",e.userid," \xb7 ",e.ridercontact||"\u2014"]})]})]}):(0,xe.jsx)(S.A,{variant:"caption",sx:{color:me,fontWeight:600},children:"Unassigned"})}),(0,xe.jsx)(M.A,{align:"left",children:(0,xe.jsx)(S.A,{variant:"subtitle2",sx:{fontWeight:700,color:Ae,whiteSpace:"nowrap"},children:e.expecteddeliverytime?a()(e.expecteddeliverytime).format("hh:mm A"):"\u2014"})}),(0,xe.jsx)(M.A,{align:"left",children:(0,xe.jsxs)(k.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.5,borderRadius:999,bgcolor:Re("#06b6d4"),color:"#06b6d4",fontWeight:700,fontSize:12,border:"1px solid ".concat(Pe("#06b6d4"))},children:[e.transitminutes||0,"m"]})}),(0,xe.jsx)(M.A,{children:(0,xe.jsxs)(w.A,{direction:"column",spacing:.5,alignItems:"flex-start",children:[(0,xe.jsx)(T.A,{title:"Planned KMS",placement:"top",children:(0,xe.jsxs)(k.A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",px:1.25,py:.375,borderRadius:999,bgcolor:Re("#ef4444"),color:"#ef4444",fontWeight:700,fontSize:11,border:"1px solid ".concat(Pe("#ef4444")),whiteSpace:"nowrap",minWidth:75},children:[e.kms||0," km"]})}),(0,xe.jsx)(T.A,{title:"Actual KMS",placement:"top",children:(0,xe.jsxs)(k.A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",px:1.25,py:.375,borderRadius:999,bgcolor:Re("#10b981"),color:"#10b981",fontWeight:700,fontSize:11,border:"1px solid ".concat(Pe("#10b981")),whiteSpace:"nowrap",minWidth:75},children:[e.cumulativekms||0," km"]})})]})}),(0,xe.jsx)(M.A,{align:"left",children:(0,xe.jsxs)(w.A,{direction:"column",spacing:.5,alignItems:"flex-start",children:[(0,xe.jsx)(T.A,{title:"Delivery Charge",placement:"top",children:(0,xe.jsxs)(k.A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",px:1.25,py:.375,borderRadius:999,bgcolor:Re("#ef4444"),color:"#ef4444",fontWeight:700,fontSize:11,border:"1px solid ".concat(Pe("#ef4444")),whiteSpace:"nowrap",minWidth:85},children:["\u20b9 ",null!==(i=null===(n=e.deliverycharges)||void 0===n?void 0:n.toFixed(2))&&void 0!==i?i:"0.00"]})}),(0,xe.jsx)(T.A,{title:"Delivery Amount",placement:"top",children:(0,xe.jsxs)(k.A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",px:1.25,py:.375,borderRadius:999,bgcolor:Re("#10b981"),color:"#10b981",fontWeight:700,fontSize:11,border:"1px solid ".concat(Pe("#10b981")),whiteSpace:"nowrap",minWidth:85},children:["\u20b9 ",null!==(s=null===(c=e.deliveryamt)||void 0===c?void 0:c.toFixed(2))&&void 0!==s?s:"0.00"]})})]})}),(0,xe.jsx)(M.A,{children:e.notes?(0,xe.jsx)(T.A,{title:e.notes,children:(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be,maxWidth:160,display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.notes})}):(0,xe.jsx)(S.A,{variant:"caption",sx:{color:me},children:"\u2014"})}),(0,xe.jsx)(M.A,{align:"center",children:e.step?(0,xe.jsx)(k.A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:30,height:24,px:.875,borderRadius:999,bgcolor:Re("#662582"),border:"1px solid ".concat(Pe("#662582")),color:"#662582",fontWeight:800,fontSize:11},children:e.step}):(0,xe.jsx)(S.A,{variant:"caption",sx:{color:me},children:"\u2014"})}),(0,xe.jsx)(M.A,{children:(0,xe.jsx)(S.A,{variant:"subtitle2",sx:{fontWeight:700,color:e.Quantity?Ae:me,whiteSpace:"nowrap"},children:e.Quantity||"\u2014"})}),(0,xe.jsx)(M.A,{children:(0,xe.jsx)(S.A,{variant:"subtitle2",sx:{fontWeight:800,color:e.collectionamt?"#ef4444":me,whiteSpace:"nowrap"},children:e.collectionamt?"\u20b9 ".concat(e.collectionamt.toFixed(2)):"\u2014"})}),"Cancelled"!==$e&&"Delivered"!==$e&&(0,xe.jsx)(M.A,{align:"right",children:(0,xe.jsxs)(w.A,{direction:"row",justifyContent:"flex-end",spacing:.75,children:["C"==e.deliverytype&&(0,xe.jsx)(T.A,{title:"Product details",placement:"top",children:(0,xe.jsx)(D.A,{size:"small",onClick:()=>{(null===Mo||void 0===Mo?void 0:Mo.orderid)===e.orderid?(Yo(null),Fo(null)):(Yo(e),Fo(e.orderheaderid))},sx:{borderRadius:999,bgcolor:Re("#06b6d4"),color:"#06b6d4",border:"1px solid ".concat(Pe("#06b6d4")),"&:hover":{bgcolor:ze("#06b6d4")}},children:(null===Mo||void 0===Mo?void 0:Mo.orderid)===e.orderid?(0,xe.jsx)(oe.A,{fontSize:"small"}):(0,xe.jsx)(re.A,{fontSize:"small"})})}),(0,xe.jsx)(T.A,{title:"Actions",placement:"top",children:(0,xe.jsx)(D.A,{size:"small",onClick:o=>mr(o,e),sx:{borderRadius:999,bgcolor:Re("#662582"),color:"#662582",border:"1px solid ".concat(Pe("#662582")),"&:hover":{bgcolor:ze("#662582")}},children:(0,xe.jsx)(l.A,{})})})]})})]}),(null===Mo||void 0===Mo?void 0:Mo.orderid)===(null===e||void 0===e?void 0:e.orderid)&&(0,xe.jsx)(L.A,{children:(0,xe.jsx)(M.A,{colSpan:g,sx:{p:0,border:0,backgroundColor:We},children:(0,xe.jsx)(F.A,{in:!0,timeout:"auto",unmountOnExit:!0,children:(0,xe.jsx)(k.A,{sx:{width:"100%",p:2.5},children:(0,xe.jsxs)(v.A,{elevation:0,sx:{borderRadius:2,border:"1px solid",borderColor:je,overflow:"hidden",background:"#fff"},children:[(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:1,sx:{px:2,py:1.25,borderBottom:"1px solid ".concat(Se),bgcolor:Re("#662582")},children:[(0,xe.jsx)(He,{color:"#662582",children:(0,xe.jsx)(u.gsJ,{size:14})}),(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#662582"},children:"Product Details"})]}),(0,xe.jsxs)(P.A,{size:"small",sx:{minWidth:800},children:[(0,xe.jsx)(I.A,{children:(0,xe.jsxs)(L.A,{sx:{"& th":{fontSize:11,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:be,borderBottom:"1px solid ".concat(Se)},"&:hover":{backgroundColor:"transparent !important"}},children:[(0,xe.jsx)(M.A,{children:"#"}),(0,xe.jsx)(M.A,{children:"Product"}),(0,xe.jsx)(M.A,{children:"Description"}),(0,xe.jsx)(M.A,{align:"right",children:"Qty"}),(0,xe.jsx)(M.A,{align:"right",children:"Cost"}),(0,xe.jsx)(M.A,{align:"right",children:"Price"}),(0,xe.jsx)(M.A,{align:"right",children:"Tax"}),(0,xe.jsx)(M.A,{align:"right",children:"Amount"})]})}),(0,xe.jsxs)(Y.A,{children:[null===Mr||void 0===Mr||null===(h=Mr.details)||void 0===h?void 0:h.map(((e,o)=>{var r,t;return(0,xe.jsxs)(L.A,{sx:{"&:hover":{backgroundColor:We+" !important"}},children:[(0,xe.jsx)(M.A,{sx:{color:me,fontWeight:700},children:String(o+1).padStart(2,"0")}),(0,xe.jsx)(M.A,{children:(0,xe.jsxs)(w.A,{direction:"row",spacing:1.25,alignItems:"center",children:[(0,xe.jsx)(k.A,{component:"img",src:(null===e||void 0===e?void 0:e.productimage)||"https://via.placeholder.com/40",alt:null===e||void 0===e?void 0:e.productname,sx:{width:36,height:36,objectFit:"cover",borderRadius:1.5,border:"1px solid ".concat(Se)}}),(0,xe.jsx)(S.A,{variant:"body2",sx:{fontWeight:600,color:Ae},noWrap:!0,children:(null===e||void 0===e?void 0:e.productname)||"Unnamed"})]})}),(0,xe.jsx)(M.A,{sx:{color:be},children:(null===e||void 0===e?void 0:e.productdescription)||"-"}),(0,xe.jsx)(M.A,{align:"right",sx:{fontWeight:700},children:(null===e||void 0===e?void 0:e.orderqty)||0}),(0,xe.jsxs)(M.A,{align:"right",children:["\u20b9 ",(null===e||void 0===e?void 0:e.price)||0]}),(0,xe.jsxs)(M.A,{align:"right",children:["\u20b9 ",(null!==(r=null===e||void 0===e?void 0:e.productsumprice)&&void 0!==r?r:0).toFixed(2)]}),(0,xe.jsxs)(M.A,{align:"right",children:["\u20b9 ",(null!==(t=null===e||void 0===e?void 0:e.taxamount)&&void 0!==t?t:0).toFixed(2)]}),(0,xe.jsxs)(M.A,{align:"right",sx:{fontWeight:800,color:Ae},children:["\u20b9 ",((null===e||void 0===e?void 0:e.productsumprice)+(null===e||void 0===e?void 0:e.taxamount)).toFixed(2)||0]})]},o)})),(0,xe.jsxs)(L.A,{sx:{"&:hover":{backgroundColor:"transparent !important"}},children:[(0,xe.jsx)(M.A,{align:"right",colSpan:7,sx:{fontWeight:700,color:be,borderTop:"1px solid ".concat(Se)},children:"Total Amount"}),(0,xe.jsxs)(M.A,{align:"right",sx:{fontWeight:800,color:"#10b981",borderTop:"1px solid ".concat(Se)},children:["\u20b9 ",null===Mr||void 0===Mr||null===(x=Mr.pricedetails)||void 0===x||null===(p=x.orderamount)||void 0===p?void 0:p.toFixed(2)]})]})]})]})]})})})})})]},null!==(r=e.orderheaderid)&&void 0!==r?r:"".concat(e.tenantname,"-").concat(o))})),0!=(null===Gr||void 0===Gr?void 0:Gr.length)&&(0,xe.jsx)(L.A,{children:(0,xe.jsx)(M.A,{colSpan:g,rowSpan:3,children:(0,xe.jsx)("div",{ref:c,style:{height:40,textAlign:"center"},children:Br||Hr?(0,xe.jsx)(de.A,{}):(0,xe.jsx)(S.A,{variant:"caption",sx:{color:me,fontWeight:600},children:"\xb7 End of list \xb7"})})})})]})]})})()})}),(0,xe.jsxs)(E.A,{anchorEl:Ho,open:br,onClose:jr,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{elevation:0,sx:{minWidth:220,borderRadius:2,mt:.75,border:"1px solid",borderColor:je,boxShadow:ve,overflow:"hidden","& .MuiMenuItem-root":{fontSize:13,fontWeight:600,py:1.1,px:1.5,gap:1,transition:"background-color 0.15s","&:hover":{bgcolor:We}}}},children:["delivered"!==(null===Jo||void 0===Jo?void 0:Jo.orderstatus)&&(0,xe.jsxs)(K.A,{onClick:()=>{Pr.mutate(Jo.userfcmtoken),jr()},children:[(0,xe.jsx)(He,{color:"#0ea5e9",size:22,children:(0,xe.jsx)(u.q53,{size:13})}),"Notify Rider"]}),["pending","accepted","arrived"].includes(null===Jo||void 0===Jo?void 0:Jo.orderstatus)&&(0,xe.jsxs)(K.A,{onClick:()=>{var e;if(!Ze)return Lr("Please select a location first!","warning"),void(null===(e=Co.current)||void 0===e||e.focus());or(!0),jr()},children:[(0,xe.jsx)(He,{color:"#8b5cf6",size:22,children:(0,xe.jsx)(u.bsz,{size:13})}),"Change Rider"]}),(1==Ar||2==Ar)&&(0,xe.jsxs)(K.A,{onClick:()=>{co(Jo.kms),ho(Jo.cumulativekms),bo(Jo.droplat),jo(Jo.droplon),go(Jo.notes),uo(Jo.deliveryamount),Wo(Jo.orderstatus||"delivered"),vo(Jo),Je(!0),jr()},children:[(0,xe.jsx)(He,{color:"#10b981",size:22,children:(0,xe.jsx)(u.mU9,{size:13})}),"Update Status"]}),"cancelled"!==(null===Jo||void 0===Jo?void 0:Jo.orderstatus)&&"delivered"!==(null===Jo||void 0===Jo?void 0:Jo.orderstatus)&&(0,xe.jsxs)(K.A,{sx:{color:"#ef4444 !important"},onClick:()=>{$o(!0),jr()},children:[(0,xe.jsx)(He,{color:"#ef4444",size:22,children:(0,xe.jsx)(u.uDv,{size:13})}),"Cancel Delivery"]})]}),(0,xe.jsxs)(O.A,{open:_o,onClose:()=>$o(!1),maxWidth:"xs",fullWidth:!0,PaperProps:{elevation:0,sx:{borderRadius:3,border:"1px solid",borderColor:je,boxShadow:ve,overflow:"hidden"}},children:[(0,xe.jsx)(k.A,{sx:{height:4,background:"linear-gradient(90deg, #ef4444 0%, ".concat(ze("#ef4444")," 100%)")}}),(0,xe.jsx)(N.A,{sx:{p:3.5},children:(0,xe.jsxs)(w.A,{alignItems:"center",spacing:2.5,children:[(0,xe.jsx)(A.A,{sx:{width:64,height:64,bgcolor:ze("#ef4444"),color:"#ef4444"},children:(0,xe.jsx)(s.A,{style:{fontSize:28}})}),(0,xe.jsxs)(w.A,{spacing:.5,alignItems:"center",children:[(0,xe.jsx)(S.A,{variant:"h4",sx:{fontWeight:800,color:Ae},children:"Cancel Delivery?"}),(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be,textAlign:"center",px:1},children:"This action will cancel the delivery and notify the rider. Please share a brief reason."})]}),(0,xe.jsx)(C.A,{fullWidth:!0,placeholder:"Reason for cancellation",multiline:!0,minRows:2,maxRows:4,onChange:e=>tr(e.target.value),sx:{"& .MuiOutlinedInput-root":{borderRadius:2,bgcolor:We,"& fieldset":{borderColor:je},"&:hover fieldset":{borderColor:"#ef4444"},"&.Mui-focused fieldset":{borderColor:"#ef4444",borderWidth:2},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(De("#ef4444"))}}}}),(0,xe.jsxs)(w.A,{direction:"row",spacing:1.5,sx:{width:1},children:[(0,xe.jsx)(H.A,{fullWidth:!0,onClick:()=>$o(!1),variant:"outlined",sx:{borderRadius:999,py:1.1,fontWeight:700,borderColor:je,color:be,"&:hover":{borderColor:me,bgcolor:We}},children:"Keep Delivery"}),(0,xe.jsx)(H.A,{fullWidth:!0,variant:"contained",onClick:()=>{""==rr?Lr("Enter FeedBack","error"):wr({selectedRow:Jo,cancelFeed:rr}),(async()=>{console.log("cancelridernotification",Jo);try{return(await h.A.post("".concat("https://jupiter.nearle.app/live/api/v1","/utils/notifyuser"),{token:Jo.userfcmtoken,notification:{title:"NearleXpress",body:"".concat(Jo.orderid," have been Cancelled"),sound:"ring",image:""},data:{type:"cancel"}})).data}catch(e){Lr(e.message,"error",2e3),console.log(e)}})()},autoFocus:!0,sx:{borderRadius:999,py:1.1,fontWeight:800,bgcolor:"#ef4444",boxShadow:"0 6px 18px ".concat(De("#ef4444")),"&:hover":{bgcolor:"#dc2626"}},children:"Yes, Cancel"})]})]})})]}),(0,xe.jsxs)(O.A,{open:er,onClose:()=>or(!1),maxWidth:"sm",fullWidth:!0,TransitionComponent:q.s,PaperProps:{elevation:0,sx:{borderRadius:3,border:"1px solid",borderColor:je,boxShadow:ve,overflow:"hidden"}},children:[(0,xe.jsx)(k.A,{sx:{height:4,background:"linear-gradient(90deg, #8b5cf6 0%, ".concat(ze("#8b5cf6")," 100%)")}}),(0,xe.jsx)(B.A,{sx:{p:3,pb:1.5},children:(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:1.5,children:[(0,xe.jsx)(A.A,{sx:{width:44,height:44,bgcolor:ze("#8b5cf6"),color:"#8b5cf6"},children:(0,xe.jsx)(u.bsz,{size:22})}),(0,xe.jsxs)(w.A,{children:[(0,xe.jsx)(S.A,{variant:"h4",sx:{fontWeight:800,color:Ae},children:"Change Rider"}),(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be},children:"Assign this delivery to a different rider"})]})]})}),(0,xe.jsx)(N.A,{sx:{p:3,pt:2},children:(0,xe.jsx)(y.A,{fullWidth:!0,options:rt,PaperComponent:Ne,getOptionLabel:e=>"".concat(e.firstname," ").concat(e.lastname," (").concat(e.contactno,")"),onChange:(e,o)=>{nr(o),i.A.debug("Rider selected in dropdown:",o?"".concat(o.firstname," ").concat(o.lastname):"None")},renderInput:e=>(0,xe.jsx)(C.A,(0,t.A)((0,t.A)({},e),{},{placeholder:"Choose Rider",InputProps:(0,t.A)((0,t.A)({},e.InputProps),{},{startAdornment:(0,xe.jsx)(w.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,xe.jsx)(He,{color:"#8b5cf6",children:(0,xe.jsx)(u.bsz,{size:14})})})}),sx:Ie()}))})}),(0,xe.jsx)(J.A,{sx:{p:3,pt:1},children:(0,xe.jsxs)(w.A,{direction:"row",spacing:1.5,sx:{width:1},children:[(0,xe.jsx)(H.A,{fullWidth:!0,variant:"outlined",onClick:()=>or(!1),sx:{borderRadius:999,py:1.1,fontWeight:700,borderColor:je,color:be,"&:hover":{borderColor:me,bgcolor:We}},children:"Cancel"}),(0,xe.jsx)(H.A,{fullWidth:!0,variant:"contained",onClick:()=>{Zo(!0),i.A.info("Initiating rider assignment change for order ID ".concat(null===Jo||void 0===Jo?void 0:Jo.orderid," to rider: ").concat(null===ir||void 0===ir?void 0:ir.firstname," ").concat(null===ir||void 0===ir?void 0:ir.lastname)),Ir.mutate({selectedRider:ir,selectedRow:Jo})},sx:{borderRadius:999,py:1.1,fontWeight:800,bgcolor:"#8b5cf6",boxShadow:"0 6px 18px ".concat(De("#8b5cf6")),"&:hover":{bgcolor:"#7c3aed"}},children:"Change Rider"})]})})]}),(0,xe.jsxs)(O.A,{open:to,onClose:()=>io(!1),fullScreen:r,PaperProps:{elevation:0,sx:{borderRadius:{xs:0,sm:3},border:"1px solid",borderColor:je,boxShadow:ve,overflow:"hidden"}},children:[(0,xe.jsx)(k.A,{sx:{height:4,background:"linear-gradient(90deg, #f59e0b 0%, ".concat(ze("#f59e0b")," 100%)")}}),(0,xe.jsx)(B.A,{align:"left",sx:{p:3,pb:1.5},children:(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:1.5,children:[(0,xe.jsx)(A.A,{sx:{width:44,height:44,bgcolor:ze("#f59e0b"),color:"#f59e0b"},children:(0,xe.jsx)(u.tjE,{size:22})}),(0,xe.jsxs)(w.A,{children:[(0,xe.jsx)(S.A,{variant:"h4",sx:{fontWeight:800,color:Ae},children:"Date Range"}),(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be},children:"Pick a window to filter the deliveries"})]})]})}),(0,xe.jsx)(N.A,{sx:{width:"100%"},className:"datedialog",children:(0,xe.jsx)($.U,{open:to,toggle:()=>io(!to),id:"daterange1",onChange:e=>{"All"===e.label?(Qe(""),_e(""),io(!1)):(Qe(a()(e.startDate).format("YYYY-MM-DD")),_e(a()(e.endDate).format("YYYY-MM-DD")),e.label?lo(e.label):lo("")),console.log(e)},definedRanges:[{label:"Today",startDate:new Date,endDate:new Date},{label:"Yesterday",startDate:(0,G.A)(new Date,-1),endDate:(0,G.A)(new Date,-1)},{label:"Tomorrow",startDate:(0,G.A)(new Date,1),endDate:(0,G.A)(new Date,1)},{label:"This Week",startDate:(0,Z.A)(new Date),endDate:(0,U.A)(new Date)},{label:"Last Week",startDate:(0,Z.A)((0,V.A)(new Date,-1)),endDate:(0,U.A)((0,V.A)(new Date,-1))},{label:"Last 7 Days",startDate:(0,V.A)(new Date,-1),endDate:new Date},{label:"This Month",startDate:(0,Q.A)(new Date),endDate:(0,X.A)(new Date)},{label:"Last Month",startDate:(0,Q.A)((0,_.A)(new Date,-1)),endDate:(0,X.A)((0,_.A)(new Date,-1))}]})}),(0,xe.jsx)(w.A,{direction:"row",justifyContent:"flex-end",sx:{width:"100%",p:2.5,pt:1},children:(0,xe.jsx)(H.A,{variant:"contained",onClick:()=>{io(!1)},sx:{borderRadius:999,px:3,py:1,fontWeight:800,bgcolor:"#f59e0b",boxShadow:"0 6px 18px ".concat(De("#f59e0b")),"&:hover":{bgcolor:"#d97706"}},children:"Apply"})})]}),(0,xe.jsxs)(O.A,{fullWidth:!0,open:Be,onClose:Yr,scroll:"paper",maxWidth:"sm",fullScreen:r,TransitionComponent:q.s,PaperProps:{elevation:0,sx:{borderRadius:{xs:0,sm:3},border:"1px solid",borderColor:je,boxShadow:ve,overflow:"hidden"}},children:[(0,xe.jsx)(k.A,{sx:{height:4,background:"linear-gradient(90deg, #10b981 0%, ".concat(ze("#10b981")," 100%)")}}),(0,xe.jsx)(B.A,{sx:{p:3,pb:1.5},children:(0,xe.jsxs)(w.A,{direction:"row",alignItems:"center",spacing:1.5,children:[(0,xe.jsx)(A.A,{sx:{width:44,height:44,bgcolor:ze("#10b981"),color:"#10b981"},children:(0,xe.jsx)(u.mU9,{size:22})}),(0,xe.jsxs)(w.A,{children:[(0,xe.jsx)(S.A,{variant:"h4",sx:{fontWeight:800,color:Ae},children:"Update Delivery Status"}),(0,xe.jsx)(S.A,{variant:"caption",sx:{color:be},children:null!==fo&&void 0!==fo&&fo.orderid?"Order #".concat(fo.orderid):"Modify delivery details"})]})]})}),(0,xe.jsx)(N.A,{dividers:!0,sx:{p:3,bgcolor:We},children:(0,xe.jsxs)(j.Ay,{container:!0,spacing:2,children:[[{label:"KMs",value:so,set:e=>co(e),color:"#ef4444"},{label:"Actual KMs",value:ao,set:e=>ho(+e),color:"#10b981"},{label:"Delivery Latitude",value:Ao,set:e=>bo(e),color:"#06b6d4"},{label:"Delivery Longitude",value:mo,set:e=>jo(e),color:"#06b6d4"}].map((e=>(0,xe.jsxs)(j.Ay,{item:!0,xs:12,sm:6,children:[(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:700,color:be,letterSpacing:.5,textTransform:"uppercase"},children:e.label}),(0,xe.jsx)(C.A,{fullWidth:!0,value:e.value,type:"number",onChange:o=>e.set(o.target.value),sx:{mt:.5,"& .MuiOutlinedInput-root":{borderRadius:2,bgcolor:"#fff","& fieldset":{borderColor:je},"&:hover fieldset":{borderColor:e.color},"&.Mui-focused fieldset":{borderColor:e.color,borderWidth:2},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(De(e.color))}}}})]},e.label))),(0,xe.jsxs)(j.Ay,{item:!0,xs:12,children:[(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:700,color:be,letterSpacing:.5,textTransform:"uppercase"},children:"Amount"}),(0,xe.jsx)(C.A,{fullWidth:!0,type:"number",value:xo,onChange:e=>uo(+e.target.value),sx:{mt:.5,"& .MuiOutlinedInput-root":{borderRadius:2,bgcolor:"#fff","& fieldset":{borderColor:je},"&:hover fieldset":{borderColor:"#10b981"},"&.Mui-focused fieldset":{borderColor:"#10b981",borderWidth:2},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(De("#10b981"))}}}})]}),(0,xe.jsxs)(j.Ay,{item:!0,xs:12,children:[(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:700,color:be,letterSpacing:.5,textTransform:"uppercase"},children:"Status"}),(0,xe.jsx)(C.A,{select:!0,fullWidth:!0,value:yo,onChange:e=>Wo(e.target.value),SelectProps:{MenuProps:{PaperProps:{sx:{borderRadius:2,mt:.5,boxShadow:ve}}}},sx:{mt:.5,"& .MuiOutlinedInput-root":{borderRadius:2,bgcolor:"#fff","& fieldset":{borderColor:je},"&:hover fieldset":{borderColor:"#662582"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:2},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(De("#662582"))}}},children:["pending","accepted","started","arrived","delivered","cancelled"].map((e=>{const o=Le[e]||{label:e,color:"#662582",icon:u.bfP},r=o.icon;return(0,xe.jsxs)(K.A,{value:e,sx:{gap:1},children:[(0,xe.jsx)(He,{color:o.color,size:22,children:(0,xe.jsx)(r,{size:13})}),o.label]},e)}))})]}),(0,xe.jsxs)(j.Ay,{item:!0,xs:12,children:[(0,xe.jsx)(S.A,{variant:"caption",sx:{fontWeight:700,color:be,letterSpacing:.5,textTransform:"uppercase"},children:"Notes"}),(0,xe.jsx)(C.A,{value:po,fullWidth:!0,multiline:!0,minRows:2,onChange:e=>go(e.target.value),sx:{mt:.5,"& .MuiOutlinedInput-root":{borderRadius:2,bgcolor:"#fff","& fieldset":{borderColor:je},"&:hover fieldset":{borderColor:"#662582"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:2},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(De("#662582"))}}}})]})]})}),(0,xe.jsx)(J.A,{sx:{p:3},children:(0,xe.jsxs)(w.A,{direction:"row",spacing:1.5,sx:{width:1},children:[(0,xe.jsx)(H.A,{fullWidth:!0,variant:"outlined",onClick:Yr,sx:{borderRadius:999,py:1.1,fontWeight:700,borderColor:je,color:be,"&:hover":{borderColor:me,bgcolor:We}},children:"Close"}),(0,xe.jsx)(H.A,{fullWidth:!0,variant:"contained",onClick:()=>{so?ao?Ao?mo?xo?lt.mutate({deliveryid:fo.deliveryid,orderheaderid:fo.orderheaderid,orderstatus:yo,deliverytime:a()().format("YYYY-MM-DD HH:mm:ss"),deliverylat:Ao,deliverylong:mo,kms:so,cumulativekms:ao,deliveryamt:parseFloat(xo),notes:po,userid:+Jo.userid}):Lr("Fill Delivery Amount","warning"):Lr("Fill Delivery Longitude","warning"):Lr("Fill Delivery Latitude","warning"):Lr("Fill Actual Kms","warning"):Lr("Fill Kms","warning")},sx:{borderRadius:999,py:1.1,fontWeight:800,bgcolor:"#10b981",boxShadow:"0 6px 18px ".concat(De("#10b981")),"&:hover":{bgcolor:"#059669"}},children:"Update"})]})})]})]})}},23787:(e,o,r)=>{r.d(o,{FG:()=>u,nV:()=>h,pY:()=>p,pg:()=>x});var t=r(22555),i=r(53986),n=r(71392),l=r(55235),s=r(48738),d=r(2866),c=r(65908);const a=["children","scroll","onScroll","sx"],h=e=>{let{children:o,scroll:r=!1,onScroll:l,sx:s}=e,d=(0,i.A)(e,a);return(0,c.jsx)(n.A,(0,t.A)((0,t.A)({spacing:1.25,onScroll:l,sx:(0,t.A)((0,t.A)({p:1.5},r&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),s)},d),{},{children:o}))},x=e=>{let{accent:o="#662582",header:r,footer:i,selected:n=!1,onClick:d,children:a,sx:h}=e;return(0,c.jsxs)(l.A,{elevation:0,onClick:d,sx:(0,t.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:n?o:"#e2e8f0",background:n?"".concat(o,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},h),children:[(0,c.jsx)(s.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:o}}),(0,c.jsxs)(s.A,{sx:{p:1.5,pl:2},children:[r,a,i]})]})},u=e=>{let{children:o,columns:r=2,sx:i}=e;return(0,c.jsx)(s.A,{sx:(0,t.A)({display:"grid",gridTemplateColumns:"repeat(".concat(r,", minmax(0, 1fr))"),gap:1,mt:1.25},i),children:o})},p=e=>{let{label:o,value:r,children:t,full:i=!1,align:n="left"}=e;return(0,c.jsxs)(s.A,{sx:{gridColumn:i?"1 / -1":"auto",minWidth:0,textAlign:n},children:[(0,c.jsx)(d.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:o}),(0,c.jsx)(s.A,{sx:{mt:.25,minWidth:0},children:void 0!==t?t:(0,c.jsx)(d.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==r&&void 0!==r?r:"\u2014"})})]})}},27001:(e,o,r)=>{r.d(o,{A:()=>s});var t=r(71392),i=r(48738),n=r(2866),l=r(65908);function s(e){let{title:o,subtitle:r,live:s=!1,action:d}=e;return(0,l.jsxs)(t.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,l.jsxs)(i.A,{sx:{minWidth:0},children:[(0,l.jsx)(n.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:o}),r&&(0,l.jsxs)(t.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[s&&(0,l.jsx)(i.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,l.jsx)(n.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:r})]})]}),d&&(0,l.jsx)(i.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:d})]})}},36803:(e,o,r)=>{r.d(o,{A:()=>h});var t=r(84007),i=r(75953),n=r(71392),l=r(48738),s=r(2866),d=r(91834),c=r(97043),a=r(65908);function h(e){let{title:o,value:r,icon:h,color:x="#662582",caption:u,loading:p=!1}=e;return(0,a.jsx)(t.A,{sx:{height:"100%"},children:(0,a.jsx)(i.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,a.jsxs)(n.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,a.jsxs)(l.A,{sx:{minWidth:0,flex:1},children:[(0,a.jsx)(s.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o}),p?(0,a.jsx)(d.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,a.jsx)(s.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r}),u&&(0,a.jsx)(s.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:u})]}),h&&(0,a.jsx)(c.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(x,"14"),color:x,flexShrink:0},children:h})]})})})}},56311:(e,o,r)=>{r.d(o,{A:()=>u});var t=r(22555),i=r(85672),n=r(29776),l=r(43318),s=r(23440),d=r(11969),c=r(80795),a=r(51808),h=r(93811),x=r(65908);const u=e=>{let{value:o,onChange:r,onDebouncedChange:u,debounceTime:p=500,placeholder:g="Search (ctrl+k)",sx:f}=e;const v=(0,i.useRef)(null),[A]=(0,h.d7)(o,p);return(0,i.useEffect)((()=>{u&&u(A)}),[A,u]),(0,i.useEffect)((()=>{const e=e=>{var o;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(o=v.current)||void 0===o||o.focus());"Escape"===e.key&&document.activeElement===v.current&&v.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,x.jsx)(n.A,{sx:(0,t.A)({},f),inputRef:v,placeholder:g,autoComplete:"off",value:o,fullWidth:!0,onChange:e=>r(e.target.value),startAdornment:(0,x.jsx)(l.A,{position:"start",sx:{mr:-.5},children:(0,x.jsx)(c.A,{})}),endAdornment:(0,x.jsx)(s.A,{title:"Clear",children:(0,x.jsx)(d.A,{sx:{visibility:o?"visible":"hidden"},onClick:()=>r(""),children:(0,x.jsx)(a.A,{})})})})}},58691:(e,o,r)=>{r.d(o,{A:()=>s});r(85672);var t=r(48738),i=r(12010),n=r(62217),l=r(65908);function s(e){let{size:o=70,imgSize:r=40,alt:s="loader"}=e;return(0,l.jsxs)(t.A,{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",children:[(0,l.jsx)(i.A,{size:o}),(0,l.jsx)(t.A,{position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",sx:{width:r,height:r},children:(0,l.jsx)("img",{src:n,alt:s,style:{width:"100%",height:"100%",borderRadius:"50%",objectFit:"contain"}})})]})}},59212:(e,o,r)=>{r.d(o,{A:()=>x});var t=r(22555),i=r(85672),n=r(71392),l=r(97043),s=r(17488),d=r(86270),c=r(66157),a=r(48952),h=r(65908);const x=(0,i.forwardRef)(((e,o)=>{let{setAppId:r,setLocoName:x,setPage:u,sx:p,textfeildSx:g,textfieldSx:f,pill:v=!1,accentColor:A="#6366f1",icon:b,placeholder:m="Select Zone",paperComponent:j}=e;const[w,S]=(0,i.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,i.useEffect)((()=>{0===w.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const o=await c.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(o.data.status){const e=[...o.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),S(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[w.length]);const y=e=>"".concat(A).concat(e),W=y("26"),C=y("18"),k=v?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(W)},"&.Mui-focused fieldset":{borderColor:A,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},R=v&&(0,h.jsx)(n.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,h.jsx)(l.A,{sx:{width:24,height:24,bgcolor:C,color:A,transition:"background-color 0.15s, color 0.15s"},children:b||(0,h.jsx)(a.HPi,{size:14})})});return(0,h.jsx)(s.A,{id:"location-autocomplete",options:w||[],getOptionLabel:e=>{var o;return null!==(o=null===e||void 0===e?void 0:e.locationname)&&void 0!==o?o:""},PaperComponent:j,sx:(0,t.A)({},p),onChange:(e,o,t)=>{"clear"===t?(null===r||void 0===r||r(0),null===x||void 0===x||x(""),null===u||void 0===u||u(0)):o&&(null===r||void 0===r||r(o.applocationid),null===x||void 0===x||x(o.locationname),null===u||void 0===u||u(0))},renderInput:e=>v?(0,h.jsx)(d.A,(0,t.A)((0,t.A)({},e),{},{inputRef:o,placeholder:m,InputProps:(0,t.A)((0,t.A)({},e.InputProps),{},{startAdornment:R}),sx:(0,t.A)((0,t.A)({},k),f||g||{})})):(0,h.jsx)(d.A,(0,t.A)((0,t.A)({},e),{},{inputRef:o,label:"Select Zones",sx:(0,t.A)({},f||g||{})}))})}))},62217:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAAA+CAYAAABzwahEAAAPnUlEQVR4AdVae3AU9R3/7d4jdyGQQKAhECBAJBSmEAtFSQUjqPgAHGlhRm0lDkWY6Tg+O9qiErR26h8WR8ZWqTMN1ur4qMpDrTyjtDwDJloeCYiBvAgkaZ53l7vb3X4/v9vfZS/Zu9uFwLSfmb3d293f7u/z+z5/399K7CphdW5JrupgBZosZ0ialmu8pklSjUOTamRJbvvjqTUV7CpAYlcIj+SWZHQ55WJZlm7UNK2IXpRhpZ3GWJskSWXUZrPD4Sp77eSva9gVwIATXz35+SJNYWs1phWxAYDEpDKVaZv+fOrZUjaAGDDiK695rpgetpYOc82upw72sMycdJbz/SzmHeKl/ynRay31bbS1s7rjTczXGYj3ihrShnUDNQCXTXzlNS8UyExdbybhSdeNYwXz81nBzflE2pKms7oT51ntiSa276NKVn3wrNktNcGQelNpTUkNuwxcFvFV+S88rKnKy8ZzkOz84uvYvOJZ/PhyAE3Y/+HXbN+HFVwjjJAlR8lr1WueY9wt2MclEYfj8rnkj+nwRnHOLuGWhnbmpfuMKh/3Xn0Atm74IuY8OcGPFYk99kbVM98xm7BFnDyttHLyb3MlRdsjSWycOA+VLv79YpY5Ork6V5efY59s/JJVHznH/+dMymLz7v0Rm71oWtK2GIDSJ7ew6kMxJlCjytI8u+Qddm4+93bPBIfqiiG96KG5RPouljokuZT3b/2avf7EB6ylsZ1dM2MsG5OfxU7RAFSWVbMAObUphRMTtsc7CpdMh6c3kqe8gN117Yh5W4627GljFmGZ+C/ynx/flzSkDPW2Aqj2+lV/Y5mj0tljG3/GFhQXspkLpnBJVx85yyq/OGWJPAANgzkd2/utOMXJzxp965vlF3YFrPRHZtYgSZq6vi/p2TT6VrF+1Vt8/yiRhnoLiIHAftc7h0kDzlp6HgYcfTAgVwmEPmIWzTeZxPEQaeWkkhJJk1eJk8vWLGBz75nBrAIqfmDrN2zhqjlsetGkftddKU6WQ2qPe6AZVuwdGPP9kWw4+ZWKnVXiVO6M4UXtR1rKDiZrm4g4J70871cTnMzzd3ESNn3bgz9mdgC7hmoufeKWuB4/c1QGV3nYfP7Msfy/FYB8rM1LC6YNm72lonXv+UTtEqr60qVLJTcbvEv8h20tfOhGZgeQtpBiZnZ6wnuhEUDFnlPMDhaSMCbNilohc0kp61mEW1y1j0u8hLR78Ff5xX3t2i5AHLjegvqOIdtHXK/8oorZRfGLiw3aJM1dkVeynA5kCsGm98cjLhNxh4O5nxEnoOJW4rQRkDRUF3adTNoAEprRRB7tfJ09zA7Qt3mGCCMz+dmioiLKcSRTjvGISw/kPbNcSDtzdLotDy6A+AyYObR4KCjK53ur3t2I+ct7s0b0Pfds4U04RuLV914z4rjJ4ZSc94sTSBrsShvYv62S76frZKwAYQ2orWpidoEExyh1tzPl6SlTpjhJ6v3u7Utcgm0vHf/wePKUc8TJS5E21LWu6gKbRBmalXwcgHp70yISg8QR3oTWWAWk3gtpbp6/cCiLRK8Y9k7jHzgCGh3n8om/ibpueHKr0vZT5lVZFvHItVWRaALVQ4pqxcYfL3opeoxcvlr3D4BVc4HU4eFFeMt0ZsHJvUzcFKPkY4gvW7YMGiC7ZfcicW723dalXUsS3lSyNeZcBUmsmaS/5p0Vlp4BVccADsvOYP6uAM/yKsqq7PkJmv8L4k7mmEu7DcRNIfIqkedu3qjq0pkzZ/DfITE5quZjp2Qxu0Dnha1iX1fdxD55fW/CNjANYN49s7jKI5O788E5kfY0oHZQcEuvT5GY8wbaye+//36MqsfY+JEjR6QlY1cX0CHvNdQmZ/JIZhUtjW3RzkNqsG90Hti2cS8fgGSoqz7Pp6loi/uH6wNnJ7zBNA0ZYvrdY1aMZ6hdGHQ9RuL473KmDBUnUB+zAyE1dP6me2fxpMUYljat3Zb0GfvJodWRRz9Aic/utw+Ts/NG1L/L0qQrCoRggVTXUGRPMULmNo44h0CflZXlcGiuXLPGdoDOo7Pw0EYpC5W/c9Wcfm3EoAGiSAF4h0QiQmtDmyUHKZAzZSSrPam/W5MgzJgUlo+CrgFSU1OT5GTOseKi7UytsT2GiJlqW1X5aB+IrJfCYXNDO7MDYwh1yA4kYvKMGTNkkcxw4ghjdJLfQ9ntJRcgWxqsFUCsqDzg1e0U5FtsEvfGVIQ4J9nv90fNXEhcgmPLyEAh49KJW4WZlzezYSE172BvjDbZhc5JPn78eH/nlpubK7e1tcWQtjtRaDXpnLHaYkRflTdbSEhN65V4a4Plclo/IC/TDyV9ixCnNJWFw2EpPT2dBcKBBtHA3+FndmCmjsueuJnIf8/0/mQq79UlDkdpV+LGOnxQ7aljOmFwBTjxY8eOSXV1day9vV1SlFCHaFB3wroT8sdZ+kE4QuXFDMkSG7+ucZmUxdmdqrbU9WpIINQuiPO5CM5x4pTVYMdTucbgt8ejjeutj3K8Tg0jaU2aMY4nJWYQKm+mLT7d7kUW2GrDwRmFFpD8Xax3xSUmZcUfPhL7L2yvp9XJTv7ijgAv4ltBPK8rHNRCPf00QzKVRzs8p7Y6YRktCqy99foMrWN73bsnWJ/ZmTGbUVlkADRFDUarlIYKZkKYeWUjUYSm+0sWmraFxHdTaTkRhtnI2bHwKBBUA3iwSv6LcxPnjV4dI6J5vV61W+04JM5X7LBG3Mwr9820oPLxZln+zsQpac6kkdG5QDLs+7AyetwRat0FTvqsLEpeJDBaTU2NQocqBXl1f9PnH4uGmN5ZcSpmqu41KSUvffwWy4UJIzCIxlQ2bj/ILxnX1mq6Tx0EJwrVKlVjNFF8NKasbMSIEeqgQYOUWl91W0gNlIvGu0oPJH2h31Ti/VNeqP8dJrm6KQnDYIp5erKwZpR2j9JTfrRldy1x4mZMCYwWk7mxiPjVixcvqt3d3WpKSopS6z/9J/GA3ZsOJZW6mRp640h2Pk1bsWhoBzAToLo8fhES0t4fo+YXoblhWZbDtOcaLa5FbZziGyc/ZMgQpaenJ7yz4b1DqhpuxDV492RSNxuYeF4cWF6yiNmB8OyJ1B3SFlFI1ZSGj2o3grjS2dnJSescYyswa9eu5cQ7OjpwE0YodLGn/jVxHVJPFNfNc21PQiKiSJEIxgGFZ49XfETfthk+HGiO9B08wsOHD8deNd4fJa7rPi6G09LSeINPm97cHFT9R3gHSOqlT25m8WCWXCRzYvMpqUmkFYBxQOHZYedmNXdj36Cp6LvOJdTc3KzS4oKqC5cjSlz3dvhRurq6Qh6PJ0SDETrefvQP4h54y76fYwhg+ffRjfeRCi/kkrx+0Q9oVSRx2SpRbI8S7+iVuAiP+KrCiK0bvozx5Idat68KBoMhCmNBcKFQrYC4KDQC0SqrfhIS56oeCASC5ORCh5o/Pz7aO279CE/Oo7hvG70EBYrCPrX26CzM+uoxh0hnUWYyJd4VmSihWvvJxkheX2uY1e0qPRij4q09TW98/Z8D59B3CmNBUnMFoVpMTgT6LigI44eqB2kwMNxBchJvk8ofFTdtempLTNi4XCCdjWcWqLwgrH3w0g4eCaBVq1/6Kb+GPrz3u+3Re31K95cfnHv1dfSZPDn6HoKq06qvqvVZPey3Po6RKSsr49cwVWWRwXE2+M7tyxs87VZZktNwsZJSWVRhJxTksMsFPgyY85MZbGrhBJqDe5kzxRGd20MjOlq6qNqawSOBWDcHaQhAQCG7Pty66+l29WKz0+n0k8ZCVQITJ04M7dy5U1m3bl0M8XjVFgyIizYP2ckgUpnBdJw6OeOHuYWZC191ys6o8WJtepHNNXMrgDeHE0MuALLG9Bc2bVTvsBo+v6/ls1+ebDv8Ham4j8IxZmPdtMEzhljvPCSKeMT5wmF2dra7sbExlY4H0QZJe4n82L7ksWRT/OJdl1yVtQqELHhvoyMjSZ//V4T0WbfbHSCnxklTxdhPxdMgaXjY6NSMBPtBX0ODikPqbto4eXpwKj0Y5MfMHHbzI6mOtJhADOkXLikY8AGA9JFA7S49FDMZCij+ih31bz3V2FPbqpOGlLH5aION94vfAnELi3qtHddBHJ7Hy3Sp0+YhO3Ivzl65Yrgn+wFjO3j82UumDcgAxCMMNPnPbdhc98a7LpcLThikYdOQNrdtcmhhKrD0U3GBZBVVieKfg5wdJJ+Smprq9fl8kH4qvdATCoVc+ekFo28YvvgVh0H1BWACWGLGBzpjLK7KoGSEGgC2Pl8wckDK/247+MrR1t2YL8N+IVmfThh7YdcKS/Cda1LiqFHRJufk5LioLuch8h6dvJfIpxB5aITzjtE/v32kZ/wDTpMBAJC+YkkKWmD8ktlHCQqKmrUnL7BWIh3vs23YcmPgu798Wv/Xz0CM3h2mdwd0wnwjn9QzatSoEJXKw1pEZeMTYxagq73w9FB7Suw8XlVVvaRi+A/yuO64bfR9t2eljL09xeEtYAOAQNhfcabrm9J/XtyGPIKn1Lp6B3X19tN6gJ/m29ymSUgKUlMzh2aEncUDmdRe1tXeaPce/dilbxgAOT99evbEQdOuHebJvsHrSC2gpec0Ky/RmNrlV3wVneHWrw427/hHc7C+k/IJEFZ1KSOjDFDIEtLmSRb1LUR94/dZeY+tVROoPDaQo1TQTS9PoSlfik4cA0B9c7mpc1z6GAByghISoZkjivI8MuVRjqEjU52DRuossXir+UJdFHcCXfW+b09VtR9tMnReoefxNJqeCbsF6R7KygL03B56N8/OWK/3tkTaNnHWa/M8zrNIru8iOik0GeADQGHFTabh0q85qL/8Kwu0xSBgTwPB6BiLGMZn83SZzmuQMAhTWz5voEeGoNcgTtWUHiqW8OO8vLww+R5lz5494UT2PBDEY9rSQqOTHAmP91TFdNGChJsyPTdlelztqcMu6i+XvNiIkBQRHlcPHGv6sUbHIKzo56J1AZBkvR5cSFhUVBR2CbD69bIpysvLecdoAHqINOytm0ijJt9J3r+TVBLHXfrGkwsiJRIMLF1i76MBEue7qE0XqTPadYiNnFen3j6Ad5HGYSDwTcslkQYGamVULLrLpH7y6dOnuY1TGctFFR0hcYfhvujinQ6eaNBgYc6sEHm+0WAKqatEWJkwYYI6depUjYhbtuWrBW775GGd1FEXFQA8FFsR8+HRMdFBKocgPrTvRkgnh4l70ijPxtwAzpLnCLpDvSztvFqQ9C8PuAPEINDeTdpgjADYjOFQhESn3s6hP+OKr9dfSUhCaiIcYjNIMur52f850f95/BfoYlARf1CQvwAAAABJRU5ErkJggg=="},96646:(e,o,r)=>{r.d(o,{r:()=>d});var t=r(50755),i=r(1596),n=r(91834),l=r(71392),s=r(65908);const d=e=>{let{rowsPerPage:o=5,col:r=1}=e;return(0,s.jsx)(s.Fragment,{children:Array.from(new Array(o)).map(((e,o)=>(0,s.jsxs)(t.A,{children:[(0,s.jsx)(i.A,{children:(0,s.jsx)(n.A,{variant:"circular",width:24,height:24})}),(0,s.jsx)(i.A,{children:(0,s.jsx)(n.A,{variant:"text",width:30})}),Array.from({length:r}).map(((e,o)=>(0,s.jsx)(i.A,{children:(0,s.jsxs)(l.A,{spacing:.5,children:[(0,s.jsx)(n.A,{variant:"text",width:100}),(0,s.jsx)(n.A,{variant:"text",width:80})]})},o))),(0,s.jsx)(i.A,{children:(0,s.jsx)(n.A,{variant:"text",width:150})}),(0,s.jsx)(i.A,{children:(0,s.jsx)(n.A,{variant:"rounded",width:60,height:24})}),(0,s.jsx)(i.A,{align:"center",children:(0,s.jsxs)(l.A,{direction:"row",spacing:1,justifyContent:"flex-end",children:[(0,s.jsx)(n.A,{variant:"circular",width:28,height:28}),(0,s.jsx)(n.A,{variant:"circular",width:28,height:28})]})})]},o)))})}}}]); \ No newline at end of file diff --git a/build/static/js/2898.91e92c8b.chunk.js b/build/static/js/2898.91e92c8b.chunk.js deleted file mode 100644 index 8661f06..0000000 --- a/build/static/js/2898.91e92c8b.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 2898.91e92c8b.chunk.js.LICENSE.txt */ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[2898],{855:(e,r,n)=>{n.d(r,{A:()=>i});var t=n(7208),o=n(76475),a=n(44414);function i(e){var r,n;let i,s,{children:l,type:c="scale",direction:p="right",offset:d=10,scale:h={hover:1.05,tap:.95}}=e;switch(p){case"up":case"left":i=d,s=0;break;default:i=0,s=d}const[x,m]=(0,t.Y)(i,s),[u,y]=(0,t.Y)(i,s);switch(c){case"rotate":return(0,a.jsx)(o.P.div,{animate:{rotate:360},transition:{repeat:1/0,repeatType:"loop",duration:2,repeatDelay:0},children:l});case"slide":return"up"===p||"down"===p?(0,a.jsx)(o.P.div,{animate:{y:void 0!==u?u:""},onHoverEnd:()=>y(),onHoverStart:()=>y(),children:l}):(0,a.jsx)(o.P.div,{animate:{x:void 0!==x?x:""},onHoverEnd:()=>m(),onHoverStart:()=>m(),children:l});default:return"number"===typeof h&&(h={hover:h,tap:h}),(0,a.jsx)(o.P.div,{whileHover:{scale:null===(r=h)||void 0===r?void 0:r.hover},whileTap:{scale:null===(n=h)||void 0===n?void 0:n.tap},children:l})}}},36080:(e,r,n)=>{n.d(r,{A:()=>w});var t=n(98587),o=n(58168),a=n(9950),i=n(72004),s=n(3484),l=n(89548),c=n(59254),p=n(18463),d=n(52695),h=n(31506),x=n(82053),m=n(45558),u=n(1614);function y(e){return(0,u.Ay)("MuiLink",e)}const A=(0,m.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var L=n(12703),j=n(99269);const v={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},f=e=>{let{theme:r,ownerState:n}=e;const t=(e=>v[e]||e)(n.color),o=(0,L.Yn)(r,"palette.".concat(t),!1)||n.color,a=(0,L.Yn)(r,"palette.".concat(t,"Channel"));return"vars"in r&&a?"rgba(".concat(a," / 0.4)"):(0,j.X4)(o,.4)};var g=n(44414);const b=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],C=(0,c.Ay)(x.A,{name:"MuiLink",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.root,r["underline".concat((0,l.A)(n.underline))],"button"===n.component&&r.button]}})((e=>{let{theme:r,ownerState:n}=e;return(0,o.A)({},"none"===n.underline&&{textDecoration:"none"},"hover"===n.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===n.underline&&(0,o.A)({textDecoration:"underline"},"inherit"!==n.color&&{textDecorationColor:f({theme:r,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===n.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(A.focusVisible)]:{outline:"auto"}})})),w=a.forwardRef((function(e,r){const n=(0,p.b)({props:e,name:"MuiLink"}),{className:c,color:x="primary",component:m="a",onBlur:u,onFocus:A,TypographyClasses:L,underline:j="always",variant:f="inherit",sx:w}=n,k=(0,t.A)(n,b),{isFocusVisibleRef:H,onBlur:M,onFocus:V,ref:D}=(0,d.A)(),[_,S]=a.useState(!1),Z=(0,h.A)(r,D),N=(0,o.A)({},n,{color:x,component:m,focusVisible:_,underline:j,variant:f}),P=(e=>{const{classes:r,component:n,focusVisible:t,underline:o}=e,a={root:["root","underline".concat((0,l.A)(o)),"button"===n&&"button",t&&"focusVisible"]};return(0,s.A)(a,y,r)})(N);return(0,g.jsx)(C,(0,o.A)({color:x,className:(0,i.A)(P.root,c),classes:L,component:m,onBlur:e=>{M(e),!1===H.current&&S(!1),u&&u(e)},onFocus:e=>{V(e),!0===H.current&&S(!0),A&&A(e)},ref:Z,ownerState:N,variant:f,sx:[...Object.keys(v).includes(x)?[]:[{color:x}],...Array.isArray(w)?w:[w]]},k))}))},92898:(e,r,n)=>{n.r(r),n.d(r,{default:()=>F});var t=n(89379),o=n(80045),a=n(9950),i=n(42074),s=n(88060),l=n(14857),c=n(14387),p=n(47223),d=n(19808),h=n(83239),x=n(93230),m=n(82053),u=n(25277),y=n(36080),A=n(16491),L=n(10226),j=n(71525),v=n(249),f=n(57357),g=n(14195),b=n(83563),C=n(16243),w=n(86263),k=n(855),H=n(24184),M=n(44414);const V=e=>{let{reverse:r}=e;const n=(0,l.A)();return(0,M.jsx)(M.Fragment,{children:(0,M.jsxs)("svg",{width:"118",height:"35",viewBox:"0 0 118 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,M.jsx)("path",{d:"M4.63564 15.8644L6.94797 13.552L6.95038 13.5496H11.3006L9.56969 15.2806L9.12278 15.7275L7.35024 17.5L7.56977 17.7201L17.5 27.6498L27.6498 17.5L25.8766 15.7275L25.7518 15.602L23.6994 13.5496H28.0496L28.052 13.552L29.8644 15.3644L32 17.5L17.5 32L3 17.5L4.63564 15.8644ZM17.5 3L25.8784 11.3784H21.5282L17.5 7.35024L13.4718 11.3784H9.12158L17.5 3Z",fill:n.palette.primary.dark}),(0,M.jsx)("path",{d:"M7.35025 17.5L9.1228 15.7275L9.5697 15.2805L7.83937 13.5496H6.95039L6.94798 13.552L4.63564 15.8644L6.8551 18.073L7.35025 17.5Z",fill:"url(#paint0_linear)"}),(0,M.jsx)("path",{d:"M25.8767 15.7275L27.6498 17.5L27.4743 17.6755L27.4749 17.6761L29.8644 15.3644L28.0521 13.552L28.0497 13.5496H27.8736L25.7518 15.602L25.8767 15.7275Z",fill:"url(#paint1_linear)"}),(0,M.jsx)("path",{d:"M6.94549 13.5496L6.9479 13.552L9.12272 15.7275L17.4999 24.1041L28.0544 13.5496H6.94549Z",fill:n.palette.primary.main}),(0,M.jsx)("path",{d:"M46.5781 10V26H49.3594V14.9844H49.5078L53.9297 25.9531H56.0078L60.4297 15.0078H60.5781V26H63.3594V10H59.8125L55.0625 21.5937H54.875L50.125 10H46.5781ZM69.8438 26.2422C71.7266 26.2422 72.8516 25.3594 73.3672 24.3516H73.4609V26H76.1797V17.9687C76.1797 14.7969 73.5937 13.8438 71.3047 13.8438C68.7813 13.8438 66.8437 14.9687 66.2188 17.1562L68.8594 17.5312C69.1406 16.7109 69.9375 16.0078 71.3203 16.0078C72.6328 16.0078 73.3516 16.6797 73.3516 17.8594V17.9062C73.3516 18.7188 72.5 18.7578 70.3828 18.9844C68.0547 19.2344 65.8281 19.9297 65.8281 22.6328C65.8281 24.9922 67.5547 26.2422 69.8438 26.2422ZM70.5781 24.1641C69.3984 24.1641 68.5547 23.625 68.5547 22.5859C68.5547 21.5 69.5 21.0469 70.7656 20.8672C71.5078 20.7656 72.9922 20.5781 73.3594 20.2812V21.6953C73.3594 23.0312 72.2813 24.1641 70.5781 24.1641ZM81.8516 18.9687C81.8516 17.2344 82.8984 16.2344 84.3906 16.2344C85.8516 16.2344 86.7266 17.1953 86.7266 18.7969V26H89.5547V18.3594C89.5625 15.4844 87.9219 13.8438 85.4453 13.8438C83.6484 13.8438 82.4141 14.7031 81.8672 16.0391H81.7266V14H79.0234V26H81.8516V18.9687ZM98.4219 14H96.0547V11.125H93.2266V14H91.5234V16.1875H93.2266V22.8594C93.2109 25.1172 94.8516 26.2266 96.9766 26.1641C97.7813 26.1406 98.3359 25.9844 98.6406 25.8828L98.1641 23.6719C98.0078 23.7109 97.6875 23.7812 97.3359 23.7812C96.625 23.7812 96.0547 23.5312 96.0547 22.3906V16.1875H98.4219V14ZM100.787 26H103.615V14H100.787V26ZM102.209 12.2969C103.107 12.2969 103.842 11.6094 103.842 10.7656C103.842 9.91406 103.107 9.22656 102.209 9.22656C101.303 9.22656 100.568 9.91406 100.568 10.7656C100.568 11.6094 101.303 12.2969 102.209 12.2969ZM116.008 17.1719C115.617 15.1406 113.992 13.8438 111.18 13.8438C108.289 13.8438 106.32 15.2656 106.328 17.4844C106.32 19.2344 107.398 20.3906 109.703 20.8672L111.75 21.2969C112.852 21.5391 113.367 21.9844 113.367 22.6641C113.367 23.4844 112.477 24.1016 111.133 24.1016C109.836 24.1016 108.992 23.5391 108.75 22.4609L105.992 22.7266C106.344 24.9297 108.195 26.2344 111.141 26.2344C114.141 26.2344 116.258 24.6797 116.266 22.4062C116.258 20.6953 115.156 19.6484 112.891 19.1562L110.844 18.7188C109.625 18.4453 109.141 18.0234 109.148 17.3281C109.141 16.5156 110.039 15.9531 111.219 15.9531C112.523 15.9531 113.211 16.6641 113.43 17.4531L116.008 17.1719Z",fill:n.palette.mode===C.lG.DARK||r?n.palette.common.white:n.palette.common.black,fillOpacity:"0.85"}),(0,M.jsxs)("defs",{children:[(0,M.jsxs)("linearGradient",{id:"paint0_linear",x1:"8.62526",y1:"14.0888",x2:"5.56709",y2:"17.1469",gradientUnits:"userSpaceOnUse",children:[(0,M.jsx)("stop",{stopColor:n.palette.primary.darker}),(0,M.jsx)("stop",{offset:"0.9637",stopColor:n.palette.primary.dark,stopOpacity:"0"})]}),(0,M.jsxs)("linearGradient",{id:"paint1_linear",x1:"26.2675",y1:"14.1279",x2:"28.7404",y2:"16.938",gradientUnits:"userSpaceOnUse",children:[(0,M.jsx)("stop",{stopColor:n.palette.primary.darker}),(0,M.jsx)("stop",{offset:"1",stopColor:n.palette.primary.dark,stopOpacity:"0"})]})]})]})})},D=()=>{const e=(0,l.A)();return(0,M.jsxs)("svg",{width:"129",height:"129",viewBox:"0 0 129 129",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,M.jsx)("path",{d:"M7.27577 57.2242L17.5616 46.9384L17.5724 46.9276H36.9234L29.2238 54.6273L27.2358 56.6152L19.3511 64.5L20.3276 65.4792L64.5 109.649L109.649 64.5L101.761 56.6152L101.206 56.0572L92.0766 46.9276H111.428L111.438 46.9384L119.5 55.0002L129 64.5L64.5 129L0 64.5L7.27577 57.2242ZM64.5 0L101.77 37.2695H82.4185L64.5 19.3511L46.5816 37.2695H27.2305L64.5 0Z",fill:e.palette.primary.dark}),(0,M.jsx)("path",{d:"M19.3509 64.5L27.2357 56.6152L29.2236 54.6273L21.5267 46.9276H17.5722L17.5615 46.9384L7.27561 57.2242L17.1483 67.0487L19.3509 64.5Z",fill:"url(#paint0_linear)"}),(0,M.jsx)("path",{d:"M101.762 56.6152L109.649 64.5L108.868 65.2807L108.871 65.2834L119.5 55.0002L111.438 46.9384L111.428 46.9276H110.644L101.206 56.0572L101.762 56.6152Z",fill:"url(#paint1_linear)"}),(0,M.jsx)("path",{d:"M17.5508 46.9276L17.5615 46.9384L27.2357 56.6152L64.4999 93.8767L111.449 46.9276H17.5508Z",fill:e.palette.primary.main}),(0,M.jsxs)("defs",{children:[(0,M.jsxs)("linearGradient",{id:"paint0_linear",x1:"25.0225",y1:"49.3259",x2:"11.4189",y2:"62.9295",gradientUnits:"userSpaceOnUse",children:[(0,M.jsx)("stop",{stopColor:e.palette.primary.darker}),(0,M.jsx)("stop",{offset:"0.9637",stopColor:e.palette.primary.dark,stopOpacity:"0"})]}),(0,M.jsxs)("linearGradient",{id:"paint1_linear",x1:"103.5",y1:"49.5",x2:"114.5",y2:"62",gradientUnits:"userSpaceOnUse",children:[(0,M.jsx)("stop",{stopColor:e.palette.primary.darker}),(0,M.jsx)("stop",{offset:"1",stopColor:e.palette.primary.dark,stopOpacity:"0"})]})]})]})},_=e=>{let{reverse:r,isIcon:n,sx:t,to:o}=e;return(0,M.jsx)(H.A,{disableRipple:!0,component:i.N_,to:o||C.qm,sx:t,children:n?(0,M.jsx)(D,{}):(0,M.jsx)(V,{reverse:r})})};var S=n(58168);const Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};var N=n(61187),P=function(e,r){return a.createElement(N.A,(0,S.A)({},e,{ref:r,icon:Z}))};const T=a.forwardRef(P);const z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 476H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"line",theme:"outlined"};var O=function(e,r){return a.createElement(N.A,(0,S.A)({},e,{ref:r,icon:z}))};const R=a.forwardRef(O),B=["handleDrawerOpen","layout"];function G(e){let{layout:r,children:n,window:t}=e;const o=(0,l.A)(),i=(0,c.A)({disableHysteresis:!0,threshold:10,target:t?t():void 0}),s=o.palette.mode===C.lG.DARK?o.palette.grey[50]:o.palette.grey[800],p="landing"!==r?s:"transparent";return a.cloneElement(n,{style:{backgroundColor:i?s:p}})}const F=e=>{let{handleDrawerOpen:r,layout:n="landing"}=e,c=(0,o.A)(e,B);const H=(0,l.A)(),V=(0,p.A)(H.breakpoints.down("md")),[D,S]=(0,a.useState)(!1),Z=e=>r=>{("keydown"!==r.type||"Tab"!==r.key&&"Shift"!==r.key)&&S(e)};return(0,M.jsx)(G,(0,t.A)((0,t.A)({layout:n},c),{},{children:(0,M.jsx)(s.A,{sx:{bgcolor:"transparent",color:H.palette.text.primary,boxShadow:"none"},children:(0,M.jsx)(d.A,{disableGutters:V,children:(0,M.jsxs)(h.A,{sx:{px:{xs:1.5,md:0,lg:0},py:2},children:[(0,M.jsxs)(x.A,{direction:"row",sx:{flexGrow:1,display:{xs:"none",md:"block"}},alignItems:"center",children:[(0,M.jsx)(m.A,{component:"div",sx:{textAlign:"left",display:"inline-block"},children:(0,M.jsx)(_,{reverse:!0,to:"/"})}),(0,M.jsx)(u.A,{label:"v2.1.0",variant:"outlined",size:"small",color:"secondary",sx:{mt:.5,ml:1,fontSize:"0.725rem",height:20,"& .MuiChip-label":{px:.5}}})]}),(0,M.jsxs)(x.A,{direction:"row",sx:{"& .header-link":{px:1,"&:hover":{color:H.palette.primary.main}},display:{xs:"none",md:"block"}},spacing:2,children:[(0,M.jsx)(y.A,{className:"header-link",color:"white",component:i.N_,to:"/login",target:"_blank",underline:"none",children:"Dashboard"}),(0,M.jsx)(y.A,{className:"header-link",color:r?"primary":"white",component:i.N_,to:"/components-overview/buttons",underline:"none",children:"Components"}),(0,M.jsx)(y.A,{className:"header-link",color:"white",href:"https://links.codedthemes.com/BQFrl",target:"_blank",underline:"none",children:"Documentation"}),(0,M.jsx)(A.A,{sx:{display:"inline-block"},children:(0,M.jsx)(k.A,{children:(0,M.jsx)(L.A,{component:y.A,href:"https://links.codedthemes.com/Aprwb",disableElevation:!0,color:"primary",variant:"contained",children:"Purchase Now"})})})]}),(0,M.jsxs)(A.A,{sx:{width:"100%",alignItems:"center",justifyContent:"space-between",display:{xs:"flex",md:"none"}},children:[(0,M.jsx)(m.A,{component:"div",sx:{textAlign:"left",display:"inline-block"},children:(0,M.jsx)(_,{reverse:!0,to:"/"})}),(0,M.jsxs)(x.A,{direction:"row",spacing:2,children:["component"===n&&(0,M.jsx)(L.A,{variant:"outlined",size:"small",color:"warning",component:i.N_,to:C.qm,sx:{mt:.5,height:28},children:"Dashboard"}),"component"!==n&&(0,M.jsx)(L.A,{variant:"outlined",size:"small",color:"warning",component:i.N_,to:"/components-overview/buttons",sx:{mt:.5,height:28},children:"All Components"}),(0,M.jsx)(w.A,(0,t.A)((0,t.A)({color:"secondary"},"component"===n?{onClick:r}:{onClick:Z(!0)}),{},{sx:{"&:hover":{bgcolor:H.palette.mode===C.lG.DARK?"secondary.lighter":"secondary.dark"}},children:(0,M.jsx)(T,{style:{color:H.palette.mode===C.lG.DARK?"inherit":H.palette.grey[100]}})}))]}),(0,M.jsx)(j.Ay,{anchor:"top",open:D,onClose:Z(!1),sx:{"& .MuiDrawer-paper":{backgroundImage:"none"}},children:(0,M.jsx)(A.A,{sx:{width:"auto","& .MuiListItemIcon-root":{fontSize:"1rem",minWidth:28}},role:"presentation",onClick:Z(!1),onKeyDown:Z(!1),children:(0,M.jsxs)(v.A,{children:[(0,M.jsx)(y.A,{style:{textDecoration:"none"},href:"/login",target:"_blank",children:(0,M.jsxs)(f.A,{component:"span",children:[(0,M.jsx)(g.A,{children:(0,M.jsx)(R,{})}),(0,M.jsx)(b.A,{primary:"Dashboard",primaryTypographyProps:{variant:"h6",color:"text.primary"}})]})}),(0,M.jsx)(y.A,{style:{textDecoration:"none"},href:"/components-overview/buttons",target:"_blank",children:(0,M.jsxs)(f.A,{component:"span",children:[(0,M.jsx)(g.A,{children:(0,M.jsx)(R,{})}),(0,M.jsx)(b.A,{primary:"All Components",primaryTypographyProps:{variant:"h6",color:"text.primary"}})]})}),(0,M.jsx)(y.A,{style:{textDecoration:"none"},href:"https://links.codedthemes.com/sTUAK",target:"_blank",children:(0,M.jsxs)(f.A,{component:"span",children:[(0,M.jsx)(g.A,{children:(0,M.jsx)(R,{})}),(0,M.jsx)(b.A,{primary:"Free Version",primaryTypographyProps:{variant:"h6",color:"text.primary"}})]})}),(0,M.jsx)(y.A,{style:{textDecoration:"none"},href:"https://links.codedthemes.com/BQFrl",target:"_blank",children:(0,M.jsxs)(f.A,{component:"span",children:[(0,M.jsx)(g.A,{children:(0,M.jsx)(R,{})}),(0,M.jsx)(b.A,{primary:"Documentation",primaryTypographyProps:{variant:"h6",color:"text.primary"}})]})}),(0,M.jsx)(y.A,{style:{textDecoration:"none"},href:"https://codedthemes.support-hub.io/",target:"_blank",children:(0,M.jsxs)(f.A,{component:"span",children:[(0,M.jsx)(g.A,{children:(0,M.jsx)(R,{})}),(0,M.jsx)(b.A,{primary:"Support",primaryTypographyProps:{variant:"h6",color:"text.primary"}})]})}),(0,M.jsx)(y.A,{style:{textDecoration:"none"},href:"https://links.codedthemes.com/Aprwb",target:"_blank",children:(0,M.jsxs)(f.A,{component:"span",children:[(0,M.jsx)(g.A,{children:(0,M.jsx)(R,{})}),(0,M.jsx)(b.A,{primary:"Purchase Now",primaryTypographyProps:{variant:"h6",color:"text.primary"}}),(0,M.jsx)(u.A,{color:"primary",label:"v1.0",size:"small"})]})})]})})})]})]})})})}))}}}]); \ No newline at end of file diff --git a/build/static/js/3119.63266416.chunk.js b/build/static/js/3119.63266416.chunk.js new file mode 100644 index 0000000..13d43ca --- /dev/null +++ b/build/static/js/3119.63266416.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[3119],{17450:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(84849),o=n(27326),a=n(85672),i=n(72574),c=n(25234),u=n(60308),s=n(38009),l=n(37300),f=n(10644);function p(e){return(0,f.Ay)("MuiDialogActions",e)}(0,l.A)("MuiDialogActions",["root","spacing"]);var d=n(65908);const y=["className","disableSpacing"],h=(0,u.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,o.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),v=a.forwardRef((function(e,t){const n=(0,s.b)({props:e,name:"MuiDialogActions"}),{className:a,disableSpacing:u=!1}=n,l=(0,r.A)(n,y),f=(0,o.A)({},n,{disableSpacing:u}),v=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,c.A)(r,p,t)})(f);return(0,d.jsx)(h,(0,o.A)({className:(0,i.A)(v.root,a),ownerState:f,ref:t},l))}))},24992:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PropsNotForwarded=t.defaultProps=t.propTypes=void 0;var r,o=n(85672),a=((r=o)&&r.__esModule,n(45656));t.propTypes={data:(0,a.oneOfType)([a.string,a.array,a.func]).isRequired,headers:a.array,target:a.string,separator:a.string,filename:a.string,uFEFF:a.bool,onClick:a.func,asyncOnClick:a.bool,enclosingCharacter:a.string},t.defaultProps={separator:",",filename:"generatedBy_react-csv.csv",uFEFF:!0,asyncOnClick:!1,enclosingCharacter:'"'},t.PropsNotForwarded=["data","headers"]},29625:(e,t,n)=>{e.exports=n(43297)},38454:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:",",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'"';return e.filter((function(e){return e})).map((function(e){return e.map((function(e){return l(e)})).map((function(e){return""+n+e+n})).join(t)})).join("\n")},p=t.arrays2csv=function(e,t,n,o){return f(t?[t].concat(r(e)):e,n,o)},d=t.jsons2csv=function(e,t,n,r){return f(u(e,t),n,r)},y=t.string2csv=function(e,t,n,r){return t?t.join(n)+"\n"+e:e.replace(/"/g,'""')},h=t.toCSV=function(e,t,n,r){if(a(e))return d(e,t,n,r);if(i(e))return p(e,t,n,r);if("string"===typeof e)return y(e,t,n);throw new TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ')};t.buildURI=function(e,t,n,r,a){var i=h(e,n,r,a),c=o()?"application/csv":"text/csv",u=new Blob([t?"\ufeff":"",i],{type:c}),s="data:"+c+";charset=utf-8,"+(t?"\ufeff":"")+i,l=window.URL||window.webkitURL;return"undefined"===typeof l.createObjectURL?s:l.createObjectURL(u)}},38860:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n{"use strict";n.d(t,{q:()=>u});var r=n(22555),o=n(48149),a=n(59949),i=class extends o.${constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions((0,r.A)((0,r.A)({},e),{},{behavior:(0,a.PL)()}),t)}getOptimisticResult(e){return e.behavior=(0,a.PL)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch((0,r.A)((0,r.A)({},e),{},{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(e){return this.fetch((0,r.A)((0,r.A)({},e),{},{meta:{fetchMore:{direction:"backward"}}}))}createResult(e,t){var n,o,i,c;const{state:u}=e,s=super.createResult(e,t),{isFetching:l,isRefetching:f}=s,p=l&&"forward"===(null===(n=u.fetchMeta)||void 0===n||null===(o=n.fetchMore)||void 0===o?void 0:o.direction),d=l&&"backward"===(null===(i=u.fetchMeta)||void 0===i||null===(c=i.fetchMore)||void 0===c?void 0:c.direction);return(0,r.A)((0,r.A)({},s),{},{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,a.rB)(t,u.data),hasPreviousPage:(0,a.RQ)(t,u.data),isFetchingNextPage:p,isFetchingPreviousPage:d,isRefetching:f&&!p&&!d})}},c=n(59363);function u(e,t){return(0,c.t)(e,i,t)}},43297:(e,t,n)=>{"use strict";t.CSVLink=void 0;var r=a(n(38860)),o=a(n(72500));function a(e){return e&&e.__esModule?e:{default:e}}r.default,t.CSVLink=o.default},61687:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(27326),o=n(85672);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var i=n(75890),c=function(e,t){return o.createElement(i.A,(0,r.A)({},e,{ref:t,icon:a}))};const u=o.forwardRef(c)},69810:(e,t,n)=>{"use strict";n.d(t,{m:()=>c});var r=n(91323),o=n(81501),a=n(73413),i=n(85672);const c=(0,r.wk)((function(e,t){const n=new a.Tooltip(e,t.overlayContainer);return(0,o.Q)(n,t)}),(function(e,t,n,r){let{position:o}=n;(0,i.useEffect)((function(){const n=t.overlayContainer;if(null==n)return;const{instance:a}=e,i=e=>{e.tooltip===a&&(null!=o&&a.setLatLng(o),a.update(),r(!0))},c=e=>{e.tooltip===a&&r(!1)};return n.on({tooltipopen:i,tooltipclose:c}),n.bindTooltip(a),function(){n.off({tooltipopen:i,tooltipclose:c}),null!=n._map&&n.unbindTooltip()}}),[e,t,r,o])}))},72500:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];if(window.navigator.msSaveOrOpenBlob){e.preventDefault();var n=this.props,r=n.data,o=n.headers,a=n.separator,i=n.filename,c=n.enclosingCharacter,s=n.uFEFF,l=t&&"function"===typeof r?r():r,f=new Blob([s?"\ufeff":"",(0,u.toCSV)(l,o,a,c)]);return window.navigator.msSaveBlob(f,i),!1}}},{key:"handleAsyncClick",value:function(e){var t=this;this.props.onClick(e,(function(n){!1!==n?t.handleLegacy(e,!0):e.preventDefault()}))}},{key:"handleSyncClick",value:function(e){!1===this.props.onClick(e)?e.preventDefault():this.handleLegacy(e)}},{key:"handleClick",value:function(){var e=this;return function(t){if("function"===typeof e.props.onClick)return e.props.asyncOnClick?e.handleAsyncClick(t):e.handleSyncClick(t);e.handleLegacy(t)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.data,r=t.headers,a=t.separator,i=t.filename,u=t.uFEFF,s=t.children,l=(t.onClick,t.asyncOnClick,t.enclosingCharacter),f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["data","headers","separator","filename","uFEFF","children","onClick","asyncOnClick","enclosingCharacter"]),p="undefined"===typeof window?"":this.buildURI(n,u,r,a,l);return c.default.createElement("a",o({download:i},f,{ref:function(t){return e.link=t},target:"_self",href:p,onClick:this.handleClick()}),s)}}]),t}(c.default.Component);l.defaultProps=s.defaultProps,l.propTypes=s.propTypes,t.default=l}}]); \ No newline at end of file diff --git a/build/static/js/3176.340ee957.chunk.js b/build/static/js/3176.340ee957.chunk.js deleted file mode 100644 index 6673539..0000000 --- a/build/static/js/3176.340ee957.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[3176],{12045:(e,t,i)=>{i.r(t),i.d(t,{default:()=>x});var s=i(42074),n=i(16243),r=i(60899),a=i(93230),c=i(16491),o=i(82053),d=i(10226);const h=i.p+"static/media/Error404.fe9de1c8a87d552fa643.png",l=i.p+"static/media/TwoCone.a296352ed5cf72a5f7a5.png";var m=i(44414);const x=function(){return(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)(r.Ay,{container:!0,spacing:10,direction:"column",alignItems:"center",justifyContent:"center",sx:{minHeight:"100vh",pt:1.5,pb:1,overflow:"hidden"},children:[(0,m.jsx)(r.Ay,{item:!0,xs:12,children:(0,m.jsxs)(a.A,{direction:"row",children:[(0,m.jsx)(r.Ay,{item:!0,children:(0,m.jsx)(c.A,{sx:{width:{xs:250,sm:590},height:{xs:130,sm:300}},children:(0,m.jsx)("img",{src:h,alt:"mantis",style:{width:"100%",height:"100%"}})})}),(0,m.jsx)(r.Ay,{item:!0,sx:{position:"relative"},children:(0,m.jsx)(c.A,{sx:{position:"absolute",top:60,left:-40,width:{xs:130,sm:390},height:{xs:115,sm:330}},children:(0,m.jsx)("img",{src:l,alt:"mantis",style:{width:"100%",height:"100%"}})})})]})}),(0,m.jsx)(r.Ay,{item:!0,xs:12,children:(0,m.jsxs)(a.A,{spacing:2,justifyContent:"center",alignItems:"center",children:[(0,m.jsx)(o.A,{variant:"h1",children:"Page Not Found"}),(0,m.jsx)(o.A,{color:"textSecondary",align:"center",sx:{width:{xs:"73%",sm:"61%"}},children:"The page you are looking was moved, removed, renamed, or might never exist!"}),(0,m.jsx)(d.A,{component:s.N_,to:n.qm,variant:"contained",children:"Back To Home"})]})})]})})}}}]); \ No newline at end of file diff --git a/build/static/js/3176.3baff992.chunk.js b/build/static/js/3176.3baff992.chunk.js new file mode 100644 index 0000000..2b00b4f --- /dev/null +++ b/build/static/js/3176.3baff992.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[3176],{12045:(e,t,i)=>{i.r(t),i.d(t,{default:()=>x});var s=i(96492),n=i(16243),r=i(1939),a=i(71392),c=i(48738),o=i(2866),d=i(80911);const h=i.p+"static/media/Error404.fe9de1c8a87d552fa643.png",l=i.p+"static/media/TwoCone.a296352ed5cf72a5f7a5.png";var m=i(65908);const x=function(){return(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)(r.Ay,{container:!0,spacing:10,direction:"column",alignItems:"center",justifyContent:"center",sx:{minHeight:"100vh",pt:1.5,pb:1,overflow:"hidden"},children:[(0,m.jsx)(r.Ay,{item:!0,xs:12,children:(0,m.jsxs)(a.A,{direction:"row",children:[(0,m.jsx)(r.Ay,{item:!0,children:(0,m.jsx)(c.A,{sx:{width:{xs:250,sm:590},height:{xs:130,sm:300}},children:(0,m.jsx)("img",{src:h,alt:"mantis",style:{width:"100%",height:"100%"}})})}),(0,m.jsx)(r.Ay,{item:!0,sx:{position:"relative"},children:(0,m.jsx)(c.A,{sx:{position:"absolute",top:60,left:-40,width:{xs:130,sm:390},height:{xs:115,sm:330}},children:(0,m.jsx)("img",{src:l,alt:"mantis",style:{width:"100%",height:"100%"}})})})]})}),(0,m.jsx)(r.Ay,{item:!0,xs:12,children:(0,m.jsxs)(a.A,{spacing:2,justifyContent:"center",alignItems:"center",children:[(0,m.jsx)(o.A,{variant:"h1",children:"Page Not Found"}),(0,m.jsx)(o.A,{color:"textSecondary",align:"center",sx:{width:{xs:"73%",sm:"61%"}},children:"The page you are looking was moved, removed, renamed, or might never exist!"}),(0,m.jsx)(d.A,{component:s.N_,to:n.qm,variant:"contained",children:"Back To Home"})]})})]})})}}}]); \ No newline at end of file diff --git a/build/static/js/348.a1db66c5.chunk.js b/build/static/js/348.a1db66c5.chunk.js deleted file mode 100644 index 6d4cbe9..0000000 --- a/build/static/js/348.a1db66c5.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[348],{2046:(t,e,n)=>{"use strict";n.d(e,{A:()=>C});var r=n(98587),i=n(58168),a=n(9950),o=n(72004),s=n(3484),c=n(89548),u=n(82053),l=n(15866),d=n(39766),f=n(59254),p=n(45558),v=n(1614);function h(t){return(0,v.Ay)("MuiInputAdornment",t)}const m=(0,p.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var g,b=n(18463),A=n(44414);const y=["children","className","component","disablePointerEvents","disableTypography","position","variant"],$=(0,f.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e["position".concat((0,c.A)(n.position))],!0===n.disablePointerEvents&&e.disablePointerEvents,e[n.variant]]}})((t=>{let{theme:e,ownerState:n}=t;return(0,i.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===n.variant&&{["&.".concat(m.positionStart,"&:not(.").concat(m.hiddenLabel,")")]:{marginTop:16}},"start"===n.position&&{marginRight:8},"end"===n.position&&{marginLeft:8},!0===n.disablePointerEvents&&{pointerEvents:"none"})})),C=a.forwardRef((function(t,e){const n=(0,b.b)({props:t,name:"MuiInputAdornment"}),{children:f,className:p,component:v="div",disablePointerEvents:m=!1,disableTypography:C=!1,position:x,variant:S}=n,O=(0,r.A)(n,y),M=(0,d.A)()||{};let w=S;S&&M.variant,M&&!w&&(w=M.variant);const T=(0,i.A)({},n,{hiddenLabel:M.hiddenLabel,size:M.size,disablePointerEvents:m,position:x,variant:w}),D=(t=>{const{classes:e,disablePointerEvents:n,hiddenLabel:r,position:i,size:a,variant:o}=t,u={root:["root",n&&"disablePointerEvents",i&&"position".concat((0,c.A)(i)),o,r&&"hiddenLabel",a&&"size".concat((0,c.A)(a))]};return(0,s.A)(u,h,e)})(T);return(0,A.jsx)(l.A.Provider,{value:null,children:(0,A.jsx)($,(0,i.A)({as:v,ownerState:T,className:(0,o.A)(D.root,p),ref:e},O,{children:"string"!==typeof f||C?(0,A.jsxs)(a.Fragment,{children:["start"===x?g||(g=(0,A.jsx)("span",{className:"notranslate",children:"\u200b"})):null,f]}):(0,A.jsx)(u.A,{color:"text.secondary",children:f})}))})}))},7762:(t,e,n)=>{"use strict";var r=n(24994);e.A=void 0;var i=r(n(79526)),a=n(44414);e.A=(0,i.default)((0,a.jsx)("path",{d:"M19 6.41 17.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"}),"Clear")},23266:(t,e,n)=>{"use strict";n.d(e,{A:()=>M});var r=n(98587),i=n(58168),a=n(9950),o=n(72004),s=n(3484),c=n(99269),u=n(59254),l=n(19608),d=n(18463),f=n(13372),p=n(24184),v=n(79044),h=n(31506),m=n(40777),g=n(92455),b=n(88543),A=n(45558),y=n(1614);function $(t){return(0,y.Ay)("MuiMenuItem",t)}const C=(0,A.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var x=n(44414);const S=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],O=(0,u.Ay)(p.A,{shouldForwardProp:t=>(0,l.A)(t)||"classes"===t,name:"MuiMenuItem",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.divider&&e.divider,!n.disableGutters&&e.gutters]}})((t=>{let{theme:e,ownerState:n}=t;return(0,i.A)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:"1px solid ".concat((e.vars||e).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(C.selected)]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / ").concat(e.vars.palette.action.selectedOpacity,")"):(0,c.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),["&.".concat(C.focusVisible)]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / calc(").concat(e.vars.palette.action.selectedOpacity," + ").concat(e.vars.palette.action.focusOpacity,"))"):(0,c.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},["&.".concat(C.selected,":hover")]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / calc(").concat(e.vars.palette.action.selectedOpacity," + ").concat(e.vars.palette.action.hoverOpacity,"))"):(0,c.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / ").concat(e.vars.palette.action.selectedOpacity,")"):(0,c.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},["&.".concat(C.focusVisible)]:{backgroundColor:(e.vars||e).palette.action.focus},["&.".concat(C.disabled)]:{opacity:(e.vars||e).palette.action.disabledOpacity},["& + .".concat(m.A.root)]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},["& + .".concat(m.A.inset)]:{marginLeft:52},["& .".concat(b.A.root)]:{marginTop:0,marginBottom:0},["& .".concat(b.A.inset)]:{paddingLeft:36},["& .".concat(g.A.root)]:{minWidth:36}},!n.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},n.dense&&(0,i.A)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{["& .".concat(g.A.root," svg")]:{fontSize:"1.25rem"}}))})),M=a.forwardRef((function(t,e){const n=(0,d.b)({props:t,name:"MuiMenuItem"}),{autoFocus:c=!1,component:u="li",dense:l=!1,divider:p=!1,disableGutters:m=!1,focusVisibleClassName:g,role:b="menuitem",tabIndex:A,className:y}=n,C=(0,r.A)(n,S),M=a.useContext(f.A),w=a.useMemo((()=>({dense:l||M.dense||!1,disableGutters:m})),[M.dense,l,m]),T=a.useRef(null);(0,v.A)((()=>{c&&T.current&&T.current.focus()}),[c]);const D=(0,i.A)({},n,{dense:w.dense,divider:p,disableGutters:m}),R=(t=>{const{disabled:e,dense:n,divider:r,disableGutters:a,selected:o,classes:c}=t,u={root:["root",n&&"dense",e&&"disabled",!a&&"gutters",r&&"divider",o&&"selected"]},l=(0,s.A)(u,$,c);return(0,i.A)({},c,l)})(n),I=(0,h.A)(T,e);let k;return n.disabled||(k=void 0!==A?A:-1),(0,x.jsx)(f.A.Provider,{value:w,children:(0,x.jsx)(O,(0,i.A)({ref:I,role:b,tabIndex:k,component:u,focusVisibleClassName:(0,o.A)(R.focusVisible,g),className:(0,o.A)(R.root,y)},C,{ownerState:D,classes:R}))})}))},36150:(t,e,n)=>{"use strict";n.d(e,{I:()=>a});var r=n(69347),i=n(1729);function a(t,e){return(0,i.t)(t,r.$,e)}},36220:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(t){return new i({date:t,utc:!0,args:arguments})},o.utc=function(e){var n=a(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),s.call(this,t)};var c=o.init;o.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else c.call(this)};var u=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&(r=function(t){void 0===t&&(t="");var r=t.match(e);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],a=i[0],o=60*+i[1]+ +i[2];return 0===o?0:"+"===a?o:-o}(r),null===r))return this;var o=Math.abs(r)<=16?60*r:r,s=this;if(i)return s.$offset=o,s.$u=0===r,s;if(0!==r){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(o+c,t)).$offset=o,s.$x.$localOffset=c}else s=this.utc();return s};var l=o.format;o.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,e)},o.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(t){return"s"===t&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=o.diff;o.diff=function(t,e,n){if(t&&this.$u===t.$u)return f.call(this,t,e,n);var r=this.local(),i=a(t).local();return f.call(r,i,e,n)}}}()},52097:(t,e,n)=>{"use strict";n.d(e,{d7:()=>o});var r=n(9950);function i(t,e,n,i){var a=this,o=(0,r.useRef)(null),s=(0,r.useRef)(0),c=(0,r.useRef)(0),u=(0,r.useRef)(null),l=(0,r.useRef)([]),d=(0,r.useRef)(),f=(0,r.useRef)(),p=(0,r.useRef)(t),v=(0,r.useRef)(!0);p.current=t;var h="undefined"!=typeof window,m=!e&&0!==e&&h;if("function"!=typeof t)throw new TypeError("Expected a function");e=+e||0;var g=!!(n=n||{}).leading,b=!("trailing"in n)||!!n.trailing,A="maxWait"in n,y="debounceOnServer"in n&&!!n.debounceOnServer,$=A?Math.max(+n.maxWait||0,e):null;(0,r.useEffect)((function(){return v.current=!0,function(){v.current=!1}}),[]);var C=(0,r.useMemo)((function(){var t=function(t){var e=l.current,n=d.current;return l.current=d.current=null,s.current=t,c.current=c.current||t,f.current=p.current.apply(n,e)},n=function(t,e){m&&cancelAnimationFrame(u.current),u.current=m?requestAnimationFrame(t):setTimeout(t,e)},r=function(t){if(!v.current)return!1;var n=t-o.current;return!o.current||n>=e||n<0||A&&t-s.current>=$},C=function(e){return u.current=null,b&&l.current?t(e):(l.current=d.current=null,f.current)},x=function t(){var i=Date.now();if(g&&c.current===s.current&&S(),r(i))return C(i);if(v.current){var a=e-(i-o.current),u=A?Math.min(a,$-(i-s.current)):a;n(t,u)}},S=function(){i&&i({})},O=function(){if(h||y){var i=Date.now(),c=r(i);if(l.current=[].slice.call(arguments),d.current=a,o.current=i,c){if(!u.current&&v.current)return s.current=o.current,n(x,e),g?t(o.current):f.current;if(A)return n(x,e),t(o.current)}return u.current||n(x,e),f.current}};return O.cancel=function(){u.current&&(m?cancelAnimationFrame(u.current):clearTimeout(u.current)),s.current=0,l.current=o.current=d.current=u.current=null},O.isPending=function(){return!!u.current},O.flush=function(){return u.current?C(Date.now()):f.current},O}),[g,A,e,$,b,m,h,y,i]);return C}function a(t,e){return t===e}function o(t,e,n){var o=n&&n.equalityFn||a,s=(0,r.useRef)(t),c=(0,r.useState)({})[1],u=i((0,r.useCallback)((function(t){s.current=t,c({})}),[c]),e,n,c),l=(0,r.useRef)(t);return o(l.current,t)||(u(t),l.current=t),[s.current,u]}},97125:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(23235),i=n(44414);const a=(0,r.A)((0,i.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchOutlined")}}]); \ No newline at end of file diff --git a/build/static/js/3522.58c85d19.chunk.js b/build/static/js/3522.58c85d19.chunk.js new file mode 100644 index 0000000..62bfb13 --- /dev/null +++ b/build/static/js/3522.58c85d19.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[3522],{1596:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var a=n(84849),r=n(27326),o=n(85672),i=n(72574),s=n(25234),c=n(10247),l=n(16775),d=n(19728),u=n(78292),p=n(38009),h=n(60308),m=n(37300),v=n(10644);function f(e){return(0,v.Ay)("MuiTableCell",e)}const g=(0,m.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var A=n(65908);const b=["align","className","component","padding","scope","size","sortDirection","variant"],y=(0,h.Ay)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["size".concat((0,l.A)(n.size))],"normal"!==n.padding&&t["padding".concat((0,l.A)(n.padding))],"inherit"!==n.align&&t["align".concat((0,l.A)(n.align))],n.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:n}=e;return(0,r.A)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n ".concat("light"===t.palette.mode?(0,c.a)((0,c.X4)(t.palette.divider,1),.88):(0,c.e$)((0,c.X4)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===n.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===n.variant&&{color:(t.vars||t).palette.text.primary},"footer"===n.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===n.size&&{padding:"6px 16px",["&.".concat(g.paddingCheckbox)]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===n.padding&&{width:48,padding:"0 0 0 4px"},"none"===n.padding&&{padding:0},"left"===n.align&&{textAlign:"left"},"center"===n.align&&{textAlign:"center"},"right"===n.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===n.align&&{textAlign:"justify"},n.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),x=o.forwardRef((function(e,t){const n=(0,p.b)({props:e,name:"MuiTableCell"}),{align:c="inherit",className:h,component:m,padding:v,scope:g,size:x,sortDirection:w,variant:S}=n,M=(0,a.A)(n,b),k=o.useContext(d.A),C=o.useContext(u.A),R=C&&"head"===C.variant;let P;P=m||(R?"th":"td");let D=g;"td"===P?D=void 0:!D&&R&&(D="col");const I=S||C&&C.variant,$=(0,r.A)({},n,{align:c,component:P,padding:v||(k&&k.padding?k.padding:"normal"),size:x||(k&&k.size?k.size:"medium"),sortDirection:w,stickyHeader:"head"===I&&k&&k.stickyHeader,variant:I}),T=(e=>{const{classes:t,variant:n,align:a,padding:r,size:o,stickyHeader:i}=e,c={root:["root",n,i&&"stickyHeader","inherit"!==a&&"align".concat((0,l.A)(a)),"normal"!==r&&"padding".concat((0,l.A)(r)),"size".concat((0,l.A)(o))]};return(0,s.A)(c,f,t)})($);let B=null;return w&&(B="asc"===w?"ascending":"descending"),(0,A.jsx)(y,(0,r.A)({as:P,ref:t,className:(0,i.A)(T.root,h),"aria-sort":B,scope:D,ownerState:$},M))}))},5670:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var a=n(84849),r=n(27326),o=n(85672),i=n(72574),s=n(25234),c=n(60308),l=n(38009),d=n(37300),u=n(10644);function p(e){return(0,u.Ay)("MuiDialogContent",e)}(0,d.A)("MuiDialogContent",["root","dividers"]);var h=n(30903),m=n(65908);const v=["className","dividers"],f=(0,c.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((e=>{let{theme:t,ownerState:n}=e;return(0,r.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},n.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:{[".".concat(h.A.root," + &")]:{paddingTop:0}})})),g=o.forwardRef((function(e,t){const n=(0,l.b)({props:e,name:"MuiDialogContent"}),{className:o,dividers:c=!1}=n,d=(0,a.A)(n,v),u=(0,r.A)({},n,{dividers:c}),h=(e=>{const{classes:t,dividers:n}=e,a={root:["root",n&&"dividers"]};return(0,s.A)(a,p,t)})(u);return(0,m.jsx)(f,(0,r.A)({className:(0,i.A)(h.root,o),ownerState:u,ref:t},d))}))},6026:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});const a=n(85672).createContext({})},12010:(e,t,n)=>{"use strict";n.d(t,{A:()=>T});var a=n(57528),r=n(84849),o=n(27326),i=n(85672),s=n(72574),c=n(25234),l=n(8913),d=n(16775),u=n(38009),p=n(60308),h=n(37300),m=n(10644);function v(e){return(0,m.Ay)("MuiCircularProgress",e)}(0,h.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var f,g,A,b,y=n(65908);const x=["className","color","disableShrink","size","style","thickness","value","variant"];let w,S,M,k;const C=44,R=(0,l.i7)(w||(w=f||(f=(0,a.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),P=(0,l.i7)(S||(S=g||(g=(0,a.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),D=(0,p.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["color".concat((0,d.A)(n.color))]]}})((e=>{let{ownerState:t,theme:n}=e;return(0,o.A)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,l.AH)(M||(M=A||(A=(0,a.A)(["\n animation: "," 1.4s linear infinite;\n "]))),R)})),I=(0,p.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),$=(0,p.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t["circle".concat((0,d.A)(n.variant))],n.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:n}=e;return(0,o.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,l.AH)(k||(k=b||(b=(0,a.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),P)})),T=i.forwardRef((function(e,t){const n=(0,u.b)({props:e,name:"MuiCircularProgress"}),{className:a,color:i="primary",disableShrink:l=!1,size:p=40,style:h,thickness:m=3.6,value:f=0,variant:g="indeterminate"}=n,A=(0,r.A)(n,x),b=(0,o.A)({},n,{color:i,disableShrink:l,size:p,thickness:m,value:f,variant:g}),w=(e=>{const{classes:t,variant:n,color:a,disableShrink:r}=e,o={root:["root",n,"color".concat((0,d.A)(a))],svg:["svg"],circle:["circle","circle".concat((0,d.A)(n)),r&&"circleDisableShrink"]};return(0,c.A)(o,v,t)})(b),S={},M={},k={};if("determinate"===g){const e=2*Math.PI*((C-m)/2);S.strokeDasharray=e.toFixed(3),k["aria-valuenow"]=Math.round(f),S.strokeDashoffset="".concat(((100-f)/100*e).toFixed(3),"px"),M.transform="rotate(-90deg)"}return(0,y.jsx)(D,(0,o.A)({className:(0,s.A)(w.root,a),style:(0,o.A)({width:p,height:p},M,h),ownerState:b,ref:t,role:"progressbar"},k,A,{children:(0,y.jsx)(I,{className:w.svg,ownerState:b,viewBox:"".concat(22," ").concat(22," ").concat(C," ").concat(C),children:(0,y.jsx)($,{className:w.circle,style:S,ownerState:b,cx:C,cy:C,r:(C-m)/2,fill:"none",strokeWidth:m})})}))}))},17450:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var a=n(84849),r=n(27326),o=n(85672),i=n(72574),s=n(25234),c=n(60308),l=n(38009),d=n(37300),u=n(10644);function p(e){return(0,u.Ay)("MuiDialogActions",e)}(0,d.A)("MuiDialogActions",["root","spacing"]);var h=n(65908);const m=["className","disableSpacing"],v=(0,c.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,r.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),f=o.forwardRef((function(e,t){const n=(0,l.b)({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:c=!1}=n,d=(0,a.A)(n,m),u=(0,r.A)({},n,{disableSpacing:c}),f=(e=>{const{classes:t,disableSpacing:n}=e,a={root:["root",!n&&"spacing"]};return(0,s.A)(a,p,t)})(u);return(0,h.jsx)(v,(0,r.A)({className:(0,i.A)(f.root,o),ownerState:u,ref:t},d))}))},19103:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(27326),r=n(85672);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};var i=n(75890),s=function(e,t){return r.createElement(i.A,(0,a.A)({},e,{ref:t,icon:o}))};const c=r.forwardRef(s)},19619:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var a=n(27326),r=n(84849),o=n(85672),i=n(72574),s=n(25234),c=n(2866),l=n(60308),d=n(38009),u=n(30903),p=n(6026),h=n(65908);const m=["className","id"],v=(0,l.Ay)(c.A,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),f=o.forwardRef((function(e,t){const n=(0,d.b)({props:e,name:"MuiDialogTitle"}),{className:c,id:l}=n,f=(0,r.A)(n,m),g=n,A=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},u.t,t)})(g),{titleId:b=l}=o.useContext(p.A);return(0,h.jsx)(v,(0,a.A)({component:"h2",className:(0,i.A)(A.root,c),ownerState:g,ref:t,variant:"h6",id:null!=l?l:b},f))}))},19728:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});const a=n(85672).createContext()},26777:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(27326),r=n(85672);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var i=n(75890),s=function(e,t){return r.createElement(i.A,(0,a.A)({},e,{ref:t,icon:o}))};const c=r.forwardRef(s)},30903:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,t:()=>o});var a=n(37300),r=n(10644);function o(e){return(0,r.Ay)("MuiDialogTitle",e)}const i=(0,a.A)("MuiDialogTitle",["root"])},37740:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var a=n(84849),r=n(27326),o=n(25234),i=n(72574),s=n(85672),c=n(61949),l=n(31529),d=n(65908);const u=(0,l.A)((0,d.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");var p=n(60308),h=n(38009),m=n(16775),v=n(37300),f=n(10644);function g(e){return(0,f.Ay)("MuiTableSortLabel",e)}const A=(0,v.A)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),b=["active","children","className","direction","hideSortIcon","IconComponent"],y=(0,p.Ay)(c.A,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})((e=>{let{theme:t}=e;return{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":{color:(t.vars||t).palette.text.secondary,["& .".concat(A.icon)]:{opacity:.5}},["&.".concat(A.active)]:{color:(t.vars||t).palette.text.primary,["& .".concat(A.icon)]:{opacity:1,color:(t.vars||t).palette.text.secondary}}}})),x=(0,p.Ay)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t["iconDirection".concat((0,m.A)(n.direction))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,r.A)({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.shorter}),userSelect:"none"},"desc"===n.direction&&{transform:"rotate(0deg)"},"asc"===n.direction&&{transform:"rotate(180deg)"})})),w=s.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiTableSortLabel"}),{active:s=!1,children:c,className:l,direction:p="asc",hideSortIcon:v=!1,IconComponent:f=u}=n,A=(0,a.A)(n,b),w=(0,r.A)({},n,{active:s,direction:p,hideSortIcon:v,IconComponent:f}),S=(e=>{const{classes:t,direction:n,active:a}=e,r={root:["root",a&&"active"],icon:["icon","iconDirection".concat((0,m.A)(n))]};return(0,o.A)(r,g,t)})(w);return(0,d.jsxs)(y,(0,r.A)({className:(0,i.A)(S.root,l),component:"span",disableRipple:!0,ownerState:w,ref:t},A,{children:[c,v&&!s?null:(0,d.jsx)(x,{as:f,className:(0,i.A)(S.icon),ownerState:w})]}))}))},41337:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>P});var a=n(84849),r=n(27326),o=n(85672),i=n(72574),s=n(25234),c=n(10247),l=n(28292),d=n(60308),u=n(38009),p=n(61949),h=n(92694),m=n(93046),v=n(45688),f=n(78534),g=n(37300),A=n(10644);function b(e){return(0,A.Ay)("MuiListItem",e)}const y=(0,g.A)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var x=n(83611),w=n(97006),S=n(65908);const M=["className"],k=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],C=(0,d.Ay)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((e=>{let{theme:t,ownerState:n}=e;return(0,r.A)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!n.disablePadding&&(0,r.A)({paddingTop:8,paddingBottom:8},n.dense&&{paddingTop:4,paddingBottom:4},!n.disableGutters&&{paddingLeft:16,paddingRight:16},!!n.secondaryAction&&{paddingRight:48}),!!n.secondaryAction&&{["& > .".concat(x.A.root)]:{paddingRight:48}},{["&.".concat(y.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(y.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(y.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(y.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===n.alignItems&&{alignItems:"flex-start"},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},n.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(y.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},n.hasSecondaryAction&&{paddingRight:48})})),R=(0,d.Ay)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),P=o.forwardRef((function(e,t){const n=(0,u.b)({props:e,name:"MuiListItem"}),{alignItems:c="center",autoFocus:d=!1,button:g=!1,children:A,className:x,component:P,components:D={},componentsProps:I={},ContainerComponent:$="li",ContainerProps:{className:T}={},dense:B=!1,disabled:N=!1,disableGutters:j=!1,disablePadding:L=!1,divider:H=!1,focusVisibleClassName:W,secondaryAction:z,selected:O=!1,slotProps:F={},slots:_={}}=n,E=(0,a.A)(n.ContainerProps,M),X=(0,a.A)(n,k),Y=o.useContext(f.A),V=o.useMemo((()=>({dense:B||Y.dense||!1,alignItems:c,disableGutters:j})),[c,Y.dense,B,j]),q=o.useRef(null);(0,m.A)((()=>{d&&q.current&&q.current.focus()}),[d]);const G=o.Children.toArray(A),J=G.length&&(0,h.A)(G[G.length-1],["ListItemSecondaryAction"]),U=(0,r.A)({},n,{alignItems:c,autoFocus:d,button:g,dense:V.dense,disabled:N,disableGutters:j,disablePadding:L,divider:H,hasSecondaryAction:J,selected:O}),K=(e=>{const{alignItems:t,button:n,classes:a,dense:r,disabled:o,disableGutters:i,disablePadding:c,divider:l,hasSecondaryAction:d,selected:u}=e,p={root:["root",r&&"dense",!i&&"gutters",!c&&"padding",l&&"divider",o&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",d&&"secondaryAction",u&&"selected"],container:["container"]};return(0,s.A)(p,b,a)})(U),Z=(0,v.A)(q,t),Q=_.root||D.Root||C,ee=F.root||I.root||{},te=(0,r.A)({className:(0,i.A)(K.root,ee.className,x),disabled:N},X);let ne=P||"li";return g&&(te.component=P||"div",te.focusVisibleClassName=(0,i.A)(y.focusVisible,W),ne=p.A),J?(ne=te.component||P?ne:"div","li"===$&&("li"===ne?ne="div":"li"===te.component&&(te.component="div")),(0,S.jsx)(f.A.Provider,{value:V,children:(0,S.jsxs)(R,(0,r.A)({as:$,className:(0,i.A)(K.container,T),ref:Z,ownerState:U},E,{children:[(0,S.jsx)(Q,(0,r.A)({},ee,!(0,l.A)(Q)&&{as:ne,ownerState:(0,r.A)({},U,ee.ownerState)},te,{children:G})),G.pop()]}))})):(0,S.jsx)(f.A.Provider,{value:V,children:(0,S.jsxs)(Q,(0,r.A)({},ee,{as:ne,ref:Z},!(0,l.A)(Q)&&{ownerState:(0,r.A)({},U,ee.ownerState)},te,{children:[G,z&&(0,S.jsx)(w.A,{children:z})]}))})}))},42129:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,f:()=>o});var a=n(37300),r=n(10644);function o(e){return(0,r.Ay)("MuiDialog",e)}const i=(0,a.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"])},43318:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var a=n(84849),r=n(27326),o=n(85672),i=n(72574),s=n(25234),c=n(16775),l=n(2866),d=n(25676),u=n(75520),p=n(60308),h=n(37300),m=n(10644);function v(e){return(0,m.Ay)("MuiInputAdornment",e)}const f=(0,h.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var g,A=n(38009),b=n(65908);const y=["children","className","component","disablePointerEvents","disableTypography","position","variant"],x=(0,p.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["position".concat((0,c.A)(n.position))],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,r.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===n.variant&&{["&.".concat(f.positionStart,"&:not(.").concat(f.hiddenLabel,")")]:{marginTop:16}},"start"===n.position&&{marginRight:8},"end"===n.position&&{marginLeft:8},!0===n.disablePointerEvents&&{pointerEvents:"none"})})),w=o.forwardRef((function(e,t){const n=(0,A.b)({props:e,name:"MuiInputAdornment"}),{children:p,className:h,component:m="div",disablePointerEvents:f=!1,disableTypography:w=!1,position:S,variant:M}=n,k=(0,a.A)(n,y),C=(0,u.A)()||{};let R=M;M&&C.variant,C&&!R&&(R=C.variant);const P=(0,r.A)({},n,{hiddenLabel:C.hiddenLabel,size:C.size,disablePointerEvents:f,position:S,variant:R}),D=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:a,position:r,size:o,variant:i}=e,l={root:["root",n&&"disablePointerEvents",r&&"position".concat((0,c.A)(r)),i,a&&"hiddenLabel",o&&"size".concat((0,c.A)(o))]};return(0,s.A)(l,v,t)})(P);return(0,b.jsx)(d.A.Provider,{value:null,children:(0,b.jsx)(x,(0,r.A)({as:m,ownerState:P,className:(0,i.A)(D.root,h),ref:t},k,{children:"string"!==typeof p||w?(0,b.jsxs)(o.Fragment,{children:["start"===S?g||(g=(0,b.jsx)("span",{className:"notranslate",children:"\u200b"})):null,p]}):(0,b.jsx)(l.A,{color:"text.secondary",children:p})}))})}))},46077:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,a="millisecond",r="second",o="minute",i="hour",s="day",c="week",l="month",d="quarter",u="year",p="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(n)+e},A={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),a=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+g(a,2,"0")+":"+g(r,2,"0")},m:function e(t,n){if(t.date()1)return e(i[0])}else{var s=t.name;y[s]=t,r=s}return!a&&r&&(b=r),r||!a&&b},M=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},k=A;k.l=S,k.i=w,k.w=function(e,t){return M(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function f(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var g=f.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var a=t.match(m);if(a){var r=a[2]-1||0,o=(a[7]||"0").substring(0,3);return n?new Date(Date.UTC(a[1],r,a[3]||1,a[4]||0,a[5]||0,a[6]||0,o)):new Date(a[1],r,a[3]||1,a[4]||0,a[5]||0,a[6]||0,o)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return k},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var n=M(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return M(e){"use strict";n.d(t,{A:()=>y});var a=n(27326),r=n(84849),o=n(85672),i=n(72574),s=n(25234),c=n(10247),l=n(78292),d=n(38009),u=n(60308),p=n(37300),h=n(10644);function m(e){return(0,h.Ay)("MuiTableRow",e)}const v=(0,p.A)("MuiTableRow",["root","selected","hover","head","footer"]);var f=n(65908);const g=["className","component","hover","selected"],A=(0,u.Ay)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((e=>{let{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,["&.".concat(v.hover,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(v.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}})),b="tr",y=o.forwardRef((function(e,t){const n=(0,d.b)({props:e,name:"MuiTableRow"}),{className:c,component:u=b,hover:p=!1,selected:h=!1}=n,v=(0,r.A)(n,g),y=o.useContext(l.A),x=(0,a.A)({},n,{component:u,hover:p,selected:h,head:y&&"head"===y.variant,footer:y&&"footer"===y.variant}),w=(e=>{const{classes:t,selected:n,hover:a,head:r,footer:o}=e,i={root:["root",n&&"selected",a&&"hover",r&&"head",o&&"footer"]};return(0,s.A)(i,m,t)})(x);return(0,f.jsx)(A,(0,a.A)({as:u,ref:t,className:(0,i.A)(w.root,c),role:u===b?null:"row",ownerState:x},v))}))},52825:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});const a={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"}},54016:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var a=n(27326),r=n(84849),o=n(85672),i=n(72574),s=n(25234),c=n(78292),l=n(38009),d=n(60308),u=n(37300),p=n(10644);function h(e){return(0,p.Ay)("MuiTableHead",e)}(0,u.A)("MuiTableHead",["root"]);var m=n(65908);const v=["className","component"],f=(0,d.Ay)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),g={variant:"head"},A="thead",b=o.forwardRef((function(e,t){const n=(0,l.b)({props:e,name:"MuiTableHead"}),{className:o,component:d=A}=n,u=(0,r.A)(n,v),p=(0,a.A)({},n,{component:d}),b=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},h,t)})(p);return(0,m.jsx)(c.A.Provider,{value:g,children:(0,m.jsx)(f,(0,a.A)({as:d,className:(0,i.A)(b.root,o),ref:t,role:d===A?null:"rowgroup",ownerState:p},u))})}))},58689:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var a=n(84849),r=n(27326),o=n(85672),i=n(72574),s=n(25234),c=n(16660),l=n(16775),d=n(52243),u=n(95345),p=n(55235),h=n(38009),m=n(60308),v=n(42129),f=n(6026),g=n(15227),A=n(69039),b=n(65908);const y=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],x=(0,m.Ay)(g.A,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),w=(0,m.Ay)(d.A,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),S=(0,m.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t["scroll".concat((0,l.A)(n.scroll))]]}})((e=>{let{ownerState:t}=e;return(0,r.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),M=(0,m.Ay)(p.A,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t["scrollPaper".concat((0,l.A)(n.scroll))],t["paperWidth".concat((0,l.A)(String(n.maxWidth)))],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((e=>{let{theme:t,ownerState:n}=e;return(0,r.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===n.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===n.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!n.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===n.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)"),["&.".concat(v.A.paperScrollBody)]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},n.maxWidth&&"xs"!==n.maxWidth&&{maxWidth:"".concat(t.breakpoints.values[n.maxWidth]).concat(t.breakpoints.unit),["&.".concat(v.A.paperScrollBody)]:{[t.breakpoints.down(t.breakpoints.values[n.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},n.fullWidth&&{width:"calc(100% - 64px)"},n.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(v.A.paperScrollBody)]:{margin:0,maxWidth:"100%"}})})),k=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiDialog"}),d=(0,A.A)(),m={enter:d.transitions.duration.enteringScreen,exit:d.transitions.duration.leavingScreen},{"aria-describedby":g,"aria-labelledby":k,BackdropComponent:C,BackdropProps:R,children:P,className:D,disableEscapeKeyDown:I=!1,fullScreen:$=!1,fullWidth:T=!1,maxWidth:B="sm",onBackdropClick:N,onClick:j,onClose:L,open:H,PaperComponent:W=p.A,PaperProps:z={},scroll:O="paper",TransitionComponent:F=u.A,transitionDuration:_=m,TransitionProps:E}=n,X=(0,a.A)(n,y),Y=(0,r.A)({},n,{disableEscapeKeyDown:I,fullScreen:$,fullWidth:T,maxWidth:B,scroll:O}),V=(e=>{const{classes:t,scroll:n,maxWidth:a,fullWidth:r,fullScreen:o}=e,i={root:["root"],container:["container","scroll".concat((0,l.A)(n))],paper:["paper","paperScroll".concat((0,l.A)(n)),"paperWidth".concat((0,l.A)(String(a))),r&&"paperFullWidth",o&&"paperFullScreen"]};return(0,s.A)(i,v.f,t)})(Y),q=o.useRef(),G=(0,c.A)(k),J=o.useMemo((()=>({titleId:G})),[G]);return(0,b.jsx)(w,(0,r.A)({className:(0,i.A)(V.root,D),closeAfterTransition:!0,components:{Backdrop:x},componentsProps:{backdrop:(0,r.A)({transitionDuration:_,as:C},R)},disableEscapeKeyDown:I,onClose:L,open:H,ref:t,onClick:e=>{j&&j(e),q.current&&(q.current=null,N&&N(e),L&&L(e,"backdropClick"))},ownerState:Y},X,{children:(0,b.jsx)(F,(0,r.A)({appear:!0,in:H,timeout:_,role:"presentation"},E,{children:(0,b.jsx)(S,{className:(0,i.A)(V.container),onMouseDown:e=>{q.current=e.target===e.currentTarget},ownerState:Y,children:(0,b.jsx)(M,(0,r.A)({as:W,elevation:24,role:"dialog","aria-describedby":g,"aria-labelledby":G},z,{className:(0,i.A)(V.paper,z.className),ownerState:Y,children:(0,b.jsx)(f.A.Provider,{value:J,children:P})}))})}))}))}))},67677:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var a=n(84849),r=n(27326),o=n(85672),i=n(72574),s=n(25234),c=n(28292),l=n(60308),d=n(38009),u=n(51476),p=n(77865),h=n(51422),m=n(1596),v=n(5957),f=n(29048),g=n(30073),A=n(82336),b=n(11969),y=n(31529),x=n(65908);const w=(0,y.A)((0,x.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),S=(0,y.A)((0,x.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),M=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],k=o.forwardRef((function(e,t){var n,o,i,s,c,l,d,u;const{backIconButtonProps:p,count:h,disabled:m=!1,getItemAriaLabel:v,nextIconButtonProps:y,onPageChange:k,page:C,rowsPerPage:R,showFirstButton:P,showLastButton:D,slots:I={},slotProps:$={}}=e,T=(0,a.A)(e,M),B=(0,f.I)(),N=null!=(n=I.firstButton)?n:b.A,j=null!=(o=I.lastButton)?o:b.A,L=null!=(i=I.nextButton)?i:b.A,H=null!=(s=I.previousButton)?s:b.A,W=null!=(c=I.firstButtonIcon)?c:S,z=null!=(l=I.lastButtonIcon)?l:w,O=null!=(d=I.nextButtonIcon)?d:A.A,F=null!=(u=I.previousButtonIcon)?u:g.A,_=B?j:N,E=B?L:H,X=B?H:L,Y=B?N:j,V=B?$.lastButton:$.firstButton,q=B?$.nextButton:$.previousButton,G=B?$.previousButton:$.nextButton,J=B?$.firstButton:$.lastButton;return(0,x.jsxs)("div",(0,r.A)({ref:t},T,{children:[P&&(0,x.jsx)(_,(0,r.A)({onClick:e=>{k(e,0)},disabled:m||0===C,"aria-label":v("first",C),title:v("first",C)},V,{children:B?(0,x.jsx)(z,(0,r.A)({},$.lastButtonIcon)):(0,x.jsx)(W,(0,r.A)({},$.firstButtonIcon))})),(0,x.jsx)(E,(0,r.A)({onClick:e=>{k(e,C-1)},disabled:m||0===C,color:"inherit","aria-label":v("previous",C),title:v("previous",C)},null!=q?q:p,{children:B?(0,x.jsx)(O,(0,r.A)({},$.nextButtonIcon)):(0,x.jsx)(F,(0,r.A)({},$.previousButtonIcon))})),(0,x.jsx)(X,(0,r.A)({onClick:e=>{k(e,C+1)},disabled:m||-1!==h&&C>=Math.ceil(h/R)-1,color:"inherit","aria-label":v("next",C),title:v("next",C)},null!=G?G:y,{children:B?(0,x.jsx)(F,(0,r.A)({},$.previousButtonIcon)):(0,x.jsx)(O,(0,r.A)({},$.nextButtonIcon))})),D&&(0,x.jsx)(Y,(0,r.A)({onClick:e=>{k(e,Math.max(0,Math.ceil(h/R)-1))},disabled:m||C>=Math.ceil(h/R)-1,"aria-label":v("last",C),title:v("last",C)},J,{children:B?(0,x.jsx)(W,(0,r.A)({},$.firstButtonIcon)):(0,x.jsx)(z,(0,r.A)({},$.lastButtonIcon))}))]}))}));var C=n(66664),R=n(37300),P=n(10644);function D(e){return(0,P.Ay)("MuiTablePagination",e)}const I=(0,R.A)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var $;const T=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],B=(0,l.Ay)(m.A,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}})),N=(0,l.Ay)(v.A,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>(0,r.A)({["& .".concat(I.actions)]:t.actions},t.toolbar)})((e=>{let{theme:t}=e;return{minHeight:52,paddingRight:2,["".concat(t.breakpoints.up("xs")," and (orientation: landscape)")]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},["& .".concat(I.actions)]:{flexShrink:0,marginLeft:20}}})),j=(0,l.Ay)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),L=(0,l.Ay)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})((e=>{let{theme:t}=e;return(0,r.A)({},t.typography.body2,{flexShrink:0})})),H=(0,l.Ay)(h.A,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>(0,r.A)({["& .".concat(I.selectIcon)]:t.selectIcon,["& .".concat(I.select)]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,["& .".concat(I.select)]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),W=(0,l.Ay)(p.A,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),z=(0,l.Ay)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})((e=>{let{theme:t}=e;return(0,r.A)({},t.typography.body2,{flexShrink:0})}));function O(e){let{from:t,to:n,count:a}=e;return"".concat(t,"\u2013").concat(n," of ").concat(-1!==a?a:"more than ".concat(n))}function F(e){return"Go to ".concat(e," page")}const _=o.forwardRef((function(e,t){var n;const l=(0,d.b)({props:e,name:"MuiTablePagination"}),{ActionsComponent:p=k,backIconButtonProps:h,className:v,colSpan:f,component:g=m.A,count:A,disabled:b=!1,getItemAriaLabel:y=F,labelDisplayedRows:w=O,labelRowsPerPage:S="Rows per page:",nextIconButtonProps:M,onPageChange:R,onRowsPerPageChange:P,page:I,rowsPerPage:_,rowsPerPageOptions:E=[10,25,50,100],SelectProps:X={},showFirstButton:Y=!1,showLastButton:V=!1,slotProps:q={},slots:G={}}=l,J=(0,a.A)(l,T),U=l,K=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},D,t)})(U),Z=null!=(n=null==q?void 0:q.select)?n:X,Q=Z.native?"option":W;let ee;g!==m.A&&"td"!==g||(ee=f||1e3);const te=(0,C.A)(Z.id),ne=(0,C.A)(Z.labelId);return(0,x.jsx)(B,(0,r.A)({colSpan:ee,ref:t,as:g,ownerState:U,className:(0,i.A)(K.root,v)},J,{children:(0,x.jsxs)(N,{className:K.toolbar,children:[(0,x.jsx)(j,{className:K.spacer}),E.length>1&&(0,x.jsx)(L,{className:K.selectLabel,id:ne,children:S}),E.length>1&&(0,x.jsx)(H,(0,r.A)({variant:"standard"},!Z.variant&&{input:$||($=(0,x.jsx)(u.Ay,{}))},{value:_,onChange:P,id:te,labelId:ne},Z,{classes:(0,r.A)({},Z.classes,{root:(0,i.A)(K.input,K.selectRoot,(Z.classes||{}).root),select:(0,i.A)(K.select,(Z.classes||{}).select),icon:(0,i.A)(K.selectIcon,(Z.classes||{}).icon)}),disabled:b,children:E.map((e=>(0,o.createElement)(Q,(0,r.A)({},!(0,c.A)(Q)&&{ownerState:U},{className:K.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e)))})),(0,x.jsx)(z,{className:K.displayedRows,children:w({from:0===A?0:I*_+1,to:-1===A?(I+1)*_:-1===_?A:Math.min(A,(I+1)*_),count:-1===A?-1:A,page:I})}),(0,x.jsx)(p,{className:K.actions,backIconButtonProps:h,count:A,nextIconButtonProps:M,onPageChange:R,page:I,rowsPerPage:_,showFirstButton:Y,showLastButton:V,slotProps:q.actions,slots:G.actions,getItemAriaLabel:y,disabled:b})]})}))}))},72486:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var a=n(84849),r=n(27326),o=n(85672),i=n(72574),s=n(25234),c=n(19728),l=n(38009),d=n(60308),u=n(37300),p=n(10644);function h(e){return(0,p.Ay)("MuiTable",e)}(0,u.A)("MuiTable",["root","stickyHeader"]);var m=n(65908);const v=["className","component","padding","size","stickyHeader"],f=(0,d.Ay)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:n}=e;return(0,r.A)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,r.A)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},n.stickyHeader&&{borderCollapse:"separate"})})),g="table",A=o.forwardRef((function(e,t){const n=(0,l.b)({props:e,name:"MuiTable"}),{className:d,component:u=g,padding:p="normal",size:A="medium",stickyHeader:b=!1}=n,y=(0,a.A)(n,v),x=(0,r.A)({},n,{component:u,padding:p,size:A,stickyHeader:b}),w=(e=>{const{classes:t,stickyHeader:n}=e,a={root:["root",n&&"stickyHeader"]};return(0,s.A)(a,h,t)})(x),S=o.useMemo((()=>({padding:p,size:A,stickyHeader:b})),[p,A,b]);return(0,m.jsx)(c.A.Provider,{value:S,children:(0,m.jsx)(f,(0,r.A)({as:u,role:u===g?null:"table",ref:t,className:(0,i.A)(w.root,d),ownerState:x},y))})}))},78292:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});const a=n(85672).createContext()},78879:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(27326),r=n(85672);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 01-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 00-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 00285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z"}}]},name:"phone",theme:"outlined"};var i=n(75890),s=function(e,t){return r.createElement(i.A,(0,a.A)({},e,{ref:t,icon:o}))};const c=r.forwardRef(s)},81802:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var a=n(27326),r=n(84849),o=n(85672),i=n(72574),s=n(25234),c=n(78292),l=n(38009),d=n(60308),u=n(37300),p=n(10644);function h(e){return(0,p.Ay)("MuiTableBody",e)}(0,u.A)("MuiTableBody",["root"]);var m=n(65908);const v=["className","component"],f=(0,d.Ay)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),g={variant:"body"},A="tbody",b=o.forwardRef((function(e,t){const n=(0,l.b)({props:e,name:"MuiTableBody"}),{className:o,component:d=A}=n,u=(0,r.A)(n,v),p=(0,a.A)({},n,{component:d}),b=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},h,t)})(p);return(0,m.jsx)(c.A.Provider,{value:g,children:(0,m.jsx)(f,(0,a.A)({className:(0,i.A)(b.root,o),as:d,ref:t,role:d===A?null:"rowgroup",ownerState:p},u))})}))},83209:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var a=n(27326),r=n(84849),o=n(85672),i=n(72574),s=n(25234),c=n(38009),l=n(60308),d=n(37300),u=n(10644);function p(e){return(0,u.Ay)("MuiTableContainer",e)}(0,d.A)("MuiTableContainer",["root"]);var h=n(65908);const m=["className","component"],v=(0,l.Ay)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),f=o.forwardRef((function(e,t){const n=(0,c.b)({props:e,name:"MuiTableContainer"}),{className:o,component:l="div"}=n,d=(0,r.A)(n,m),u=(0,a.A)({},n,{component:l}),f=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},p,t)})(u);return(0,h.jsx)(v,(0,a.A)({ref:t,as:l,className:(0,i.A)(f.root,o),ownerState:u},d))}))},91834:(e,t,n)=>{"use strict";n.d(t,{A:()=>$});var a=n(57528),r=n(84849),o=n(27326),i=n(85672),s=n(72574),c=n(8913),l=n(25234);function d(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function u(e){return parseFloat(e)}var p=n(40835),h=n(60308),m=n(38009),v=n(37300),f=n(10644);function g(e){return(0,f.Ay)("MuiSkeleton",e)}(0,v.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var A,b,y,x,w=n(65908);const S=["animation","className","component","height","style","variant","width"];let M,k,C,R;const P=(0,c.i7)(M||(M=A||(A=(0,a.A)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"])))),D=(0,c.i7)(k||(k=b||(b=(0,a.A)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"])))),I=(0,h.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((e=>{let{theme:t,ownerState:n}=e;const a=d(t.shape.borderRadius)||"px",r=u(t.shape.borderRadius);return(0,o.A)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:(0,p.X4)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===n.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(r).concat(a,"/").concat(Math.round(r/.6*10)/10).concat(a),"&:empty:before":{content:'"\\00a0"'}},"circular"===n.variant&&{borderRadius:"50%"},"rounded"===n.variant&&{borderRadius:(t.vars||t).shape.borderRadius},n.hasChildren&&{"& > *":{visibility:"hidden"}},n.hasChildren&&!n.width&&{maxWidth:"fit-content"},n.hasChildren&&!n.height&&{height:"auto"})}),(e=>{let{ownerState:t}=e;return"pulse"===t.animation&&(0,c.AH)(C||(C=y||(y=(0,a.A)(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "]))),P)}),(e=>{let{ownerState:t,theme:n}=e;return"wave"===t.animation&&(0,c.AH)(R||(R=x||(x=(0,a.A)(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 2s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ",",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "]))),D,(n.vars||n).palette.action.hover)})),$=i.forwardRef((function(e,t){const n=(0,m.b)({props:e,name:"MuiSkeleton"}),{animation:a="pulse",className:i,component:c="span",height:d,style:u,variant:p="text",width:h}=n,v=(0,r.A)(n,S),f=(0,o.A)({},n,{animation:a,component:c,variant:p,hasChildren:Boolean(v.children)}),A=(e=>{const{classes:t,variant:n,animation:a,hasChildren:r,width:o,height:i}=e,s={root:["root",n,a,r&&"withChildren",r&&!o&&"fitContent",r&&!i&&"heightAuto"]};return(0,l.A)(s,g,t)})(f);return(0,w.jsx)(I,(0,o.A)({as:c,ref:t,className:(0,s.A)(A.root,i),ownerState:f},v,{style:(0,o.A)({width:h,height:d},u)}))}))},95223:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(27326),r=n(85672);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var i=n(75890),s=function(e,t){return r.createElement(i.A,(0,a.A)({},e,{ref:t,icon:o}))};const c=r.forwardRef(s)}}]); \ No newline at end of file diff --git a/build/static/js/3565.5749e522.chunk.js b/build/static/js/3565.5749e522.chunk.js deleted file mode 100644 index c69300d..0000000 --- a/build/static/js/3565.5749e522.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[3565],{2046:(e,t,n)=>{n.d(t,{A:()=>C});var a=n(98587),o=n(58168),i=n(9950),s=n(72004),r=n(3484),c=n(89548),d=n(82053),l=n(15866),p=n(39766),m=n(59254),u=n(45558),v=n(1614);function b(e){return(0,v.Ay)("MuiInputAdornment",e)}const g=(0,u.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var A,h=n(18463),y=n(44414);const f=["children","className","component","disablePointerEvents","disableTypography","position","variant"],x=(0,m.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["position".concat((0,c.A)(n.position))],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===n.variant&&{["&.".concat(g.positionStart,"&:not(.").concat(g.hiddenLabel,")")]:{marginTop:16}},"start"===n.position&&{marginRight:8},"end"===n.position&&{marginLeft:8},!0===n.disablePointerEvents&&{pointerEvents:"none"})})),C=i.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiInputAdornment"}),{children:m,className:u,component:v="div",disablePointerEvents:g=!1,disableTypography:C=!1,position:P,variant:I}=n,S=(0,a.A)(n,f),w=(0,p.A)()||{};let L=I;I&&w.variant,w&&!L&&(L=w.variant);const N=(0,o.A)({},n,{hiddenLabel:w.hiddenLabel,size:w.size,disablePointerEvents:g,position:P,variant:L}),R=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:a,position:o,size:i,variant:s}=e,d={root:["root",n&&"disablePointerEvents",o&&"position".concat((0,c.A)(o)),s,a&&"hiddenLabel",i&&"size".concat((0,c.A)(i))]};return(0,r.A)(d,b,t)})(N);return(0,y.jsx)(l.A.Provider,{value:null,children:(0,y.jsx)(x,(0,o.A)({as:v,ownerState:N,className:(0,s.A)(R.root,u),ref:t},S,{children:"string"!==typeof m||C?(0,y.jsxs)(i.Fragment,{children:["start"===P?A||(A=(0,y.jsx)("span",{className:"notranslate",children:"\u200b"})):null,m]}):(0,y.jsx)(d.A,{color:"text.secondary",children:m})}))})}))},26050:(e,t,n)=>{n.d(t,{Ay:()=>N});var a=n(98587),o=n(58168),i=n(9950),s=n(72004),r=n(3484),c=n(99269),d=n(52014),l=n(59254),p=n(18463),m=n(24184),u=n(36658),v=n(79044),b=n(31506),g=n(13372),A=n(45558),h=n(1614);function y(e){return(0,h.Ay)("MuiListItem",e)}const f=(0,A.A)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var x=n(19813),C=n(71378),P=n(44414);const I=["className"],S=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],w=(0,l.Ay)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.A)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!n.disablePadding&&(0,o.A)({paddingTop:8,paddingBottom:8},n.dense&&{paddingTop:4,paddingBottom:4},!n.disableGutters&&{paddingLeft:16,paddingRight:16},!!n.secondaryAction&&{paddingRight:48}),!!n.secondaryAction&&{["& > .".concat(x.A.root)]:{paddingRight:48}},{["&.".concat(f.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(f.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(f.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(f.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===n.alignItems&&{alignItems:"flex-start"},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},n.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(f.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},n.hasSecondaryAction&&{paddingRight:48})})),L=(0,l.Ay)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),N=i.forwardRef((function(e,t){const n=(0,p.b)({props:e,name:"MuiListItem"}),{alignItems:c="center",autoFocus:l=!1,button:A=!1,children:h,className:x,component:N,components:R={},componentsProps:k={},ContainerComponent:O="li",ContainerProps:{className:j}={},dense:E=!1,disabled:M=!1,disableGutters:F=!1,disablePadding:G=!1,divider:V=!1,focusVisibleClassName:z,secondaryAction:T,selected:X=!1,slotProps:_={},slots:B={}}=n,D=(0,a.A)(n.ContainerProps,I),H=(0,a.A)(n,S),q=i.useContext(g.A),J=i.useMemo((()=>({dense:E||q.dense||!1,alignItems:c,disableGutters:F})),[c,q.dense,E,F]),K=i.useRef(null);(0,v.A)((()=>{l&&K.current&&K.current.focus()}),[l]);const Q=i.Children.toArray(h),U=Q.length&&(0,u.A)(Q[Q.length-1],["ListItemSecondaryAction"]),W=(0,o.A)({},n,{alignItems:c,autoFocus:l,button:A,dense:J.dense,disabled:M,disableGutters:F,disablePadding:G,divider:V,hasSecondaryAction:U,selected:X}),Y=(e=>{const{alignItems:t,button:n,classes:a,dense:o,disabled:i,disableGutters:s,disablePadding:c,divider:d,hasSecondaryAction:l,selected:p}=e,m={root:["root",o&&"dense",!s&&"gutters",!c&&"padding",d&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",l&&"secondaryAction",p&&"selected"],container:["container"]};return(0,r.A)(m,y,a)})(W),Z=(0,b.A)(K,t),$=B.root||R.Root||w,ee=_.root||k.root||{},te=(0,o.A)({className:(0,s.A)(Y.root,ee.className,x),disabled:M},H);let ne=N||"li";return A&&(te.component=N||"div",te.focusVisibleClassName=(0,s.A)(f.focusVisible,z),ne=m.A),U?(ne=te.component||N?ne:"div","li"===O&&("li"===ne?ne="div":"li"===te.component&&(te.component="div")),(0,P.jsx)(g.A.Provider,{value:J,children:(0,P.jsxs)(L,(0,o.A)({as:O,className:(0,s.A)(Y.container,j),ref:Z,ownerState:W},D,{children:[(0,P.jsx)($,(0,o.A)({},ee,!(0,d.A)($)&&{as:ne,ownerState:(0,o.A)({},W,ee.ownerState)},te,{children:Q})),Q.pop()]}))})):(0,P.jsx)(g.A.Provider,{value:J,children:(0,P.jsxs)($,(0,o.A)({},ee,{as:ne,ref:Z},!(0,d.A)($)&&{ownerState:(0,o.A)({},W,ee.ownerState)},te,{children:[Q,T&&(0,P.jsx)(C.A,{children:T})]}))})}))}}]); \ No newline at end of file diff --git a/build/static/js/3624.c11c08a1.chunk.js b/build/static/js/3624.c11c08a1.chunk.js deleted file mode 100644 index 3080b28..0000000 --- a/build/static/js/3624.c11c08a1.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[3624],{84702:(e,s,a)=>{a.d(s,{Cx:()=>i,IE:()=>d,L0:()=>o,Ys:()=>r,Z3:()=>l,d1:()=>u,gM:()=>c,yP:()=>n});const t={created:{label:"Created",bg:"#3b82f6",fg:"#fff"},pending:{label:"Pending",bg:"#f59e0b",fg:"#fff"},accepted:{label:"Accepted",bg:"#8b5cf6",fg:"#fff"},arrived:{label:"Arrived",bg:"#ea580c",fg:"#fff"},picked:{label:"Picked",bg:"#0ea5e9",fg:"#fff"},active:{label:"Active",bg:"#0ea5e9",fg:"#fff"},delivered:{label:"Delivered",bg:"#22c55e",fg:"#fff"},skipped:{label:"Skipped",bg:"#94a3b8",fg:"#fff"},cancelled:{label:"Cancelled",bg:"#ef4444",fg:"#fff"}},i=e=>t[String(e||"").toLowerCase()]||{label:e||"Unknown",bg:"#64748b",fg:"#fff"},r=new Set(["delivered"]),n=new Set(["cancelled","skipped"]),l=["#2563eb","#dc2626","#16a34a","#ea580c","#9333ea","#0891b2","#ca8a04","#db2777","#0f766e","#7c3aed","#65a30d","#0284c7","#b91c1c","#15803d","#a16207","#86198f"],c=e=>l[(e%l.length+l.length)%l.length],d=e=>{if(null==e)return"";const s=["th","st","nd","rd"],a=e%100;return e+(s[(a-20)%10]||s[a]||s[0])},o=e=>"active"===String((null===e||void 0===e?void 0:e.orderstatus)||"").toLowerCase(),u=e=>{if(!Array.isArray(e)||!e.length)return null;return[...e].sort(((e,s)=>{const a=e.trip_number||1,t=s.trip_number||1;return a!==t?a-t:(e.step||0)-(s.step||0)})).find(o)||null}},88267:(e,s,a)=>{a.r(s),a.d(s,{default:()=>Ee});var t=a(80045),i=a(89379),r=a(9950),n=a(98007),l=a(47113),c=a(82215),d=a(99810),o=a(49029),u=a(33516),m=a(48513),p=a(37119),h=a(2527),v=a.n(h);a(55392);v().PolylineOffset={translatePoint:(e,s,a)=>v().point(e.x+s*Math.cos(a),e.y+s*Math.sin(a)),offsetPointLine(e,s){const a=e.length;if(a<2)throw new Error("Line should be defined by at least 2 points");let t,i=e[0];const r=Math.PI/2,n=[];for(let l=1;l=0&&l<=1&&c>=0&&c<=1?v().point(e.x+c*i.x,e.y+c*i.y):null},segmentAsVector:(e,s)=>v().point(s.x-e.x,s.y-e.y),joinLineSegments(e){const s=[];let a=e[0].offset;s.push(a[0]);for(let t=1;te.latLngToLayerPoint(s)));return this.offsetPoints(t,a).map((s=>e.layerPointToLatLng(s)))}};const x=v().Polyline.prototype._projectLatlngs;v().Polyline.prototype._projectLatlngs=function(e,s,a){const t=this.options.offset;if(!t||"number"!==typeof t)return x.call(this,e,s,a);if(!(e[0]instanceof v().LatLng)){for(let t=0;tthis._map.latLngToLayerPoint(e))),r=v().PolylineOffset.offsetPoints(i,t);for(let n=0;n1&&void 0!==arguments[1]?arguments[1]:A;const a=(null===e||void 0===e?void 0:e.assigntime)||(null===e||void 0===e?void 0:e.deliverydate);if(!a)return null;const t=String(a).trim();if(/^\d{4}-\d{2}-\d{2}$/.test(t))return null;const i=f()(a);return i.isValid()?function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A;for(const a of s)if(e>=a.startHour&&e{if(!s)return!0;return(e.assigntime?f()(e.assigntime).format("YYYY-MM-DD"):e.deliverydate?f()(e.deliverydate).format("YYYY-MM-DD"):"unknown")===s}));let r=0,n=0;const l={};for(const p of i){r+=C(p),n+=parseFloat(p.riderkms||0);const e=z(p,a);if(!e)continue;const s=p.assigntime?f()(p.assigntime).format("YYYY-MM-DD"):p.deliverydate?f()(p.deliverydate).format("YYYY-MM-DD"):null;s&&(l[s]||(l[s]=new Set),l[s].add(e))}let c=0;Object.values(l).forEach((e=>{c+=Math.min(e.size,3)}));const d=2.5*n,o=c*w,u=d+o,m=r-u;return{revenue:r,kms:n,varCost:d,fixedCost:o,totalCost:u,net:m,margin:r>0?m/r*100:0,orders:i}}function E(e){const s=Number.isFinite(e)?e:0;return s>0&&s<1?{value:String(Math.round(1e3*s)),unit:"m"}:{value:s.toFixed(1),unit:"km"}}function D(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?"\u2014":"\u20b9".concat(parseFloat(e).toFixed(s))}function L(e){return e&&e.trim().split(/\s+/).slice(0,2).map((e=>{var s;return null!==(s=e[0])&&void 0!==s?s:""})).join("").toUpperCase()||"?"}function R(e){let{status:s}=e;const a=function(e){var s;return null!==(s=F[String(null!==e&&void 0!==e?e:"").toLowerCase()])&&void 0!==s?s:M}(s);return(0,_.jsxs)("span",{className:"order-status-pill",style:{background:a.bg,color:a.color,borderColor:a.border},children:[(0,_.jsx)("span",{className:"order-status-dot","aria-hidden":"true"}),a.label]})}function q(e){var s,a,t,i,r,n,l,c,d,o;let{order:u}=e;const m=null!==(s=null!==(a=null!==(t=null!==(i=u.customername)&&void 0!==i?i:u.customer_name)&&void 0!==t?t:u.deliverycustomer)&&void 0!==a?a:u.pickupcustomer)&&void 0!==s?s:"Unknown customer",p=null!==(r=null!==(n=null!==(l=u.customerphone)&&void 0!==l?l:u.phone)&&void 0!==n?n:u.mobile)&&void 0!==r?r:"",h=null!==(c=null!==(d=null!==(o=u.locationname)&&void 0!==o?o:u.kitchenname)&&void 0!==d?d:u.kitchenName)&&void 0!==c?c:"";return(0,_.jsxs)("div",{children:[(0,_.jsx)("div",{className:"customer-name",title:m,children:m}),p&&(0,_.jsx)("div",{className:"customer-phone",children:p}),h&&(0,_.jsxs)("div",{className:"customer-location",children:[(0,_.jsx)(S.gwi,{size:12,"aria-hidden":"true"}),h]})]})}function I(e){let{orders:s,getRevenue:a}=e;return null!==s&&void 0!==s&&s.length?(0,_.jsx)("div",{className:"orders-table-container",children:(0,_.jsxs)("table",{className:"orders-table",role:"table",children:[(0,_.jsx)("thead",{children:(0,_.jsxs)("tr",{children:[(0,_.jsx)("th",{scope:"col",children:"Customer"}),(0,_.jsx)("th",{scope:"col",children:"Status"}),(0,_.jsx)("th",{scope:"col",children:"Planned KMs"}),(0,_.jsx)("th",{scope:"col",children:"Actual KMs"}),(0,_.jsx)("th",{scope:"col",children:"Trip KMs"}),(0,_.jsx)("th",{scope:"col",style:{textAlign:"right"},children:"Revenue"})]})}),(0,_.jsx)("tbody",{children:s.map(((e,s)=>{var t,i,r,n,l;const c=E(parseFloat(null!==(t=e.riderkms)&&void 0!==t?t:0)),d=E(parseFloat(null!==(i=e.kms)&&void 0!==i?i:0)),o=E(parseFloat(null!==(r=e.actualkms)&&void 0!==r?r:0)),u=a(e);return(0,_.jsxs)("tr",{children:[(0,_.jsx)("td",{children:(0,_.jsx)(q,{order:e})}),(0,_.jsx)("td",{children:(0,_.jsx)(R,{status:null!==(l=e.orderstatus)&&void 0!==l?l:e.status})}),(0,_.jsxs)("td",{children:[(0,_.jsx)("span",{className:"distance-value",children:d.value}),(0,_.jsx)("span",{className:"distance-unit",children:d.unit})]}),(0,_.jsxs)("td",{children:[(0,_.jsx)("span",{className:"distance-value",children:o.value}),(0,_.jsx)("span",{className:"distance-unit",children:o.unit})]}),(0,_.jsxs)("td",{children:[(0,_.jsx)("span",{className:"distance-value",children:c.value}),(0,_.jsx)("span",{className:"distance-unit",children:c.unit})]}),(0,_.jsx)("td",{style:{textAlign:"right"},children:(0,_.jsx)("span",{className:"revenue-amount",children:D(u)})})]},"".concat(null!==(n=e.orderid)&&void 0!==n?n:"order","-").concat(s))}))})]})}):(0,_.jsxs)("div",{className:"orders-empty-state",role:"status",children:[(0,_.jsx)(S.q8i,{size:24,"aria-hidden":"true"}),(0,_.jsx)("p",{className:"orders-empty-message",children:"No orders assigned to this rider yet."})]})}function O(e){var s,a,t,i;let{metrics:r}=e;const{varCost:n,fixedCost:l,kms:c,net:d,margin:o}=r,u=d>=0,m=[{icon:(0,_.jsx)(S.DwJ,{size:16}),iconClass:"cost-tile-icon--fixed",label:"Fixed cost",amount:D(l,2),amountClass:"",footnote:"Salary (per slot)"},{icon:(0,_.jsx)(S.pk7,{size:16}),iconClass:"cost-tile-icon--variable",label:"Variable cost",amount:D(n,2),amountClass:"",footnote:"".concat(c.toFixed(1)," km \xd7 \u20b9").concat(2.5,"/km")},{icon:u?(0,_.jsx)(S.imn,{size:16}):(0,_.jsx)(S.Rod,{size:16}),iconClass:u?"cost-tile-icon--profit":"cost-tile-icon--loss",label:u?"Net profit":"Net loss",amount:"".concat(u?"+":"").concat(D(d,2)),amountClass:u?"cost-tile-amount--profit":"cost-tile-amount--loss",footnote:"".concat(Math.abs(o).toFixed(0),"% margin")}];return(0,_.jsx)("div",{className:"rider-detail-panel","aria-label":"Rider cost breakdown",children:(0,_.jsxs)("div",{className:"rider-detail-inner",children:[(0,_.jsx)("div",{className:"cost-breakdown-grid",children:m.map((e=>(0,_.jsxs)("div",{className:"cost-tile",children:[(0,_.jsx)("div",{className:"cost-tile-icon ".concat(e.iconClass),"aria-hidden":"true",children:e.icon}),(0,_.jsxs)("div",{className:"cost-tile-content",children:[(0,_.jsx)("span",{className:"cost-tile-label",children:e.label}),(0,_.jsx)("span",{className:"cost-tile-amount ".concat(e.amountClass),children:e.amount}),(0,_.jsx)("span",{className:"cost-tile-footnote",children:e.footnote})]})]},e.label)))}),(0,_.jsxs)("div",{className:"revenue-breakdown",children:[(0,_.jsxs)("div",{className:"revenue-breakdown-header",children:[(0,_.jsxs)("div",{className:"revenue-breakdown-title",children:[(0,_.jsx)(S.q8i,{size:14,"aria-hidden":"true"}),"Revenue Breakdown"]}),(0,_.jsxs)("span",{className:"revenue-breakdown-count",children:[null!==(s=null===(a=r.orders)||void 0===a?void 0:a.length)&&void 0!==s?s:0," order",1!==(null!==(t=null===(i=r.orders)||void 0===i?void 0:i.length)&&void 0!==t?t:0)?"s":""]})]}),(0,_.jsx)(I,{orders:r.orders,getRevenue:C})]})]})})}function T(e){var s,a,t;let{rider:i,metrics:r,isExpanded:n,isFocused:l,onToggle:c,onFocus:d}=e;const{revenue:o,kms:u,totalCost:m,net:p,margin:h,orders:v}=r,x=p>=0,j="".concat((f=Math.abs(h),g=0,N=100,Math.min(Math.max(f,g),N)),"%");var f,g,N;const b=null!==(s=null===v||void 0===v?void 0:v.length)&&void 0!==s?s:0,y=null!==(a=null!==(t=i.riderName)&&void 0!==t?t:i.username)&&void 0!==a?a:"Rider #".concat(i.id),k=["rider-profitability-card",x?"rider-profitability-card--profitable":"rider-profitability-card--unprofitable",l?"rider-profitability-card--selected":""].filter(Boolean).join(" ");function w(){c(i.id),!l&&d&&d(i)}return(0,_.jsxs)("div",{className:k,"aria-label":"Rider: ".concat(y),children:[(0,_.jsxs)("div",{className:"rider-card-header",role:"button",tabIndex:0,"aria-expanded":n,onClick:w,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),w())},children:[(0,_.jsx)("div",{className:"rider-avatar","aria-hidden":"true",children:L(y)}),(0,_.jsxs)("div",{className:"rider-identity",children:[(0,_.jsx)("div",{className:"rider-name",title:y,children:y}),(0,_.jsxs)("div",{className:"rider-order-summary",children:[b," order",1!==b?"s":"",(0,_.jsx)("span",{className:"rider-order-summary-separator",children:"\xb7"}),u.toFixed(1)," km total"]})]}),(0,_.jsxs)("div",{className:"rider-metrics-row","aria-hidden":"true",children:[(0,_.jsxs)("div",{className:"rider-metric",children:[(0,_.jsx)("span",{className:"rider-metric-label",children:"Revenue"}),(0,_.jsx)("span",{className:"rider-metric-amount rider-metric-amount--revenue",children:D(o)})]}),(0,_.jsxs)("div",{className:"rider-metric",children:[(0,_.jsx)("span",{className:"rider-metric-label",children:"Cost"}),(0,_.jsx)("span",{className:"rider-metric-amount rider-metric-amount--cost",children:D(m)})]}),(0,_.jsxs)("div",{className:"rider-net-profit-column",children:[(0,_.jsxs)("div",{className:"rider-metric",children:[(0,_.jsx)("span",{className:"rider-metric-label",children:"Net"}),(0,_.jsxs)("span",{className:"rider-metric-amount ".concat(x?"rider-metric-amount--net-profit":"rider-metric-amount--net-loss"),children:[x?"+":"",D(p)]})]}),(0,_.jsx)("div",{className:"rider-margin-bar",children:(0,_.jsx)("div",{className:"rider-margin-bar-fill ".concat(x?"rider-margin-bar-fill--profit":"rider-margin-bar-fill--loss"),style:{width:j},role:"presentation"})})]})]}),(0,_.jsx)("div",{className:"rider-expand-toggle ".concat(n?"rider-expand-toggle--open":""),"aria-hidden":"true",children:(0,_.jsx)(S.j1Q,{size:22})})]}),n&&(0,_.jsx)(O,{rider:i,metrics:r})]})}function Y(e){let{riders:s=[],totalDailyProfit:a=0,focusedRider:t=null,handleRiderFocus:n,selectedDate:l,batches:c}=e;const[d,o]=(0,r.useState)({}),u="profit-asc",m=(0,r.useCallback)((e=>{o((s=>(0,i.A)((0,i.A)({},s),{},{[e]:!s[e]})))}),[]),p=(0,r.useMemo)((()=>s.map((e=>(0,i.A)((0,i.A)({},e),{},{_m:P(e,l,c)})))),[s,l,c]),h=(0,r.useMemo)((()=>p.filter((e=>e._m.orders.length>0))),[p]),v=h.reduce(((e,s)=>e+s._m.revenue),0),x=h.reduce(((e,s)=>e+s._m.totalCost),0),j=h.reduce(((e,s)=>e+s._m.net),0),f=h.reduce(((e,s)=>e+s._m.kms),0),g=h.filter((e=>e._m.net>=0)).length,N=h.length-g,b=a>=0,y=j>=0,k=h,w=(0,r.useMemo)((()=>{const e=[...k];return e.sort(((e,s)=>e._m.net-s._m.net)),e}),[k,u]);return(0,_.jsxs)("div",{className:"profitability-dashboard",role:"region","aria-label":"Profitability overview",children:[(0,_.jsxs)("header",{className:"profitability-header",children:[(0,_.jsxs)("div",{className:"profitability-header-left",children:[(0,_.jsx)("div",{className:"profitability-header-icon","aria-hidden":"true",children:(0,_.jsx)(S.rgL,{size:18})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("h2",{className:"profitability-header-title",children:"Profitability Overview"}),(0,_.jsxs)("p",{className:"profitability-header-subtitle",children:[(0,_.jsxs)("span",{children:[h.length," rider",1!==h.length?"s":""]}),(0,_.jsx)("span",{className:"profitability-header-dot"}),(0,_.jsxs)("span",{style:{color:"var(--profit-green)"},children:[g," profitable"]}),(0,_.jsx)("span",{className:"profitability-header-dot"}),(0,_.jsxs)("span",{style:{color:"var(--loss-red)"},children:[N," at loss"]})]})]})]}),(0,_.jsxs)("div",{className:"profitability-kpi-group",children:[(0,_.jsxs)("div",{className:"profitability-kpi-chip ".concat(b?"profitability-kpi-chip--profit":"profitability-kpi-chip--loss"),children:[(0,_.jsx)("div",{className:"profitability-kpi-chip-icon","aria-hidden":"true",children:b?(0,_.jsx)(S.imn,{}):(0,_.jsx)(S.Rod,{})}),(0,_.jsxs)("div",{className:"profitability-kpi-chip-content",children:[(0,_.jsxs)("span",{className:"profitability-kpi-chip-label",children:["Daily ",b?"profit":"loss"]}),(0,_.jsx)("span",{className:"profitability-kpi-chip-amount",children:D(Math.abs(a))})]})]}),(0,_.jsxs)("div",{className:"profitability-kpi-chip ".concat(y?"profitability-kpi-chip--profit":"profitability-kpi-chip--loss"),children:[(0,_.jsx)("div",{className:"profitability-kpi-chip-icon","aria-hidden":"true",children:y?(0,_.jsx)(S.imn,{}):(0,_.jsx)(S.Rod,{})}),(0,_.jsxs)("div",{className:"profitability-kpi-chip-content",children:[(0,_.jsxs)("span",{className:"profitability-kpi-chip-label",children:["Slot ",y?"profit":"loss"]}),(0,_.jsx)("span",{className:"profitability-kpi-chip-amount",children:D(Math.abs(j))})]})]})]})]}),(0,_.jsxs)("div",{className:"profitability-summary-row",role:"group","aria-label":"Slot summary",children:[(0,_.jsxs)("div",{className:"profitability-summary-card profitability-summary-card--primary",children:[(0,_.jsx)("span",{className:"profitability-summary-label",children:"Riders Active"}),(0,_.jsx)("span",{className:"profitability-summary-value",children:h.length}),(0,_.jsxs)("span",{className:"profitability-summary-detail",children:[g," in profit \xb7 ",N," at loss"]})]}),(0,_.jsxs)("div",{className:"profitability-summary-card profitability-summary-card--primary",children:[(0,_.jsx)("span",{className:"profitability-summary-label",children:"Total Distance"}),(0,_.jsxs)("span",{className:"profitability-summary-value",children:[f.toFixed(1)," km"]}),(0,_.jsx)("span",{className:"profitability-summary-detail",children:"Cumulative travel distance"})]}),(0,_.jsxs)("div",{className:"profitability-summary-card profitability-summary-card--primary",children:[(0,_.jsx)("span",{className:"profitability-summary-label",children:"Slot Revenue"}),(0,_.jsx)("span",{className:"profitability-summary-value",children:D(v)}),(0,_.jsxs)("span",{className:"profitability-summary-detail",children:["From ",p.reduce(((e,s)=>{var a,t;return e+(null!==(a=null===(t=s._m.orders)||void 0===t?void 0:t.length)&&void 0!==a?a:0)}),0)," orders"]})]}),(0,_.jsxs)("div",{className:"profitability-summary-card profitability-summary-card--loss",children:[(0,_.jsx)("span",{className:"profitability-summary-label",children:"Slot Cost"}),(0,_.jsx)("span",{className:"profitability-summary-value profitability-summary-value--loss",children:D(x)}),(0,_.jsx)("span",{className:"profitability-summary-detail",children:"Fixed + variable"})]}),(0,_.jsxs)("div",{className:"profitability-summary-card ".concat(y?"card-profit":"card-loss"),children:[(0,_.jsx)("span",{className:"profitability-summary-label",children:"Slot Net"}),(0,_.jsxs)("span",{className:"profitability-summary-value ".concat(y?"net-positive":"net-negative"),children:[y?"+":"",D(j)]}),(0,_.jsx)("span",{className:"profitability-summary-detail ".concat(v>0?j/v>=0?"margin-positive":"margin-negative":""),children:v>0?"".concat(j/v>=0?"+":"").concat((j/v*100).toFixed(0),"% margin"):"0% margin"})]})]}),(0,_.jsxs)("div",{className:"rider-profitability-feed",role:"list","aria-label":"Rider cards",children:[(0,_.jsx)("div",{className:"rider-feed-heading","aria-hidden":"true",children:"Riders List"}),0===w.length?(0,_.jsxs)("div",{className:"profitability-empty-state",role:"status",children:[(0,_.jsx)(S._pN,{size:32,"aria-hidden":"true"}),(0,_.jsx)("p",{className:"profitability-empty-message",children:"No riders matching the filters."})]}):w.map((e=>(0,_.jsx)("div",{role:"listitem",children:(0,_.jsx)(T,{rider:e,metrics:e._m,isExpanded:!!d[e.id],isFocused:(null===t||void 0===t?void 0:t.id)===e.id,onToggle:m,onFocus:n})},e.id)))]})]})}var H=a(46639),V=a(84702),K=a(20466);const B=e=>{let{visibleRiders:s,riders:a,focusedStop:t,handleRiderFocus:i,setFocusedStop:n,calculateEstMeters:l,getRiderColor:c,formatMeters:d,isLoading:o}=e;const u=s.map((e=>(0,V.d1)(e.orders))).filter(Boolean).sort(((e,s)=>{var a,t;return(null!==(a=l(e.rider_id||e.userid,e))&&void 0!==a?a:1/0)-(null!==(t=l(s.rider_id||s.userid,s))&&void 0!==t?t:1/0)})),m=(0,r.useRef)(null);if((0,r.useEffect)((()=>{const e={};s.forEach((s=>{(s.orders||[]).forEach((s=>{e[String(s.orderid)]={status:String(s.orderstatus||"").toLowerCase(),riderName:s.rider_name||s.ridername||"Rider",customer:s.deliverycustomer||s.customername||"Order #".concat(s.orderid)}}))}));const a=m.current;null!==a&&Object.entries(e).forEach((e=>{let[s,t]=e;const i=a[s];i?("active"!==i.status&&"active"===t.status&&(0,K.k)("\ud83d\udef5 ".concat(t.riderName," is now delivering to ").concat(t.customer),"success",3e3),"active"===i.status&&"delivered"===t.status&&(0,K.k)("\ud83d\udccd ".concat(t.riderName," has reached ").concat(t.customer,"'s location"),"info",3e3)):"active"===t.status&&(0,K.k)("\ud83d\udef5 ".concat(t.riderName," is now delivering to ").concat(t.customer),"success",3e3)})),m.current=e}),[s]),o)return(0,_.jsxs)("div",{className:"empty-slot",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",minHeight:"200px"},children:[(0,_.jsx)(H.A,{size:30,style:{color:"#7b1fa2",marginBottom:"16px"}}),(0,_.jsx)("div",{className:"empty-slot-title",children:"Loading active deliveries..."})]});if(0===u.length)return(0,_.jsxs)("div",{className:"empty-slot",children:[(0,_.jsx)("div",{className:"empty-slot-icon",children:(0,_.jsx)(S.gsJ,{})}),(0,_.jsx)("div",{className:"empty-slot-title",children:"No active deliveries"}),(0,_.jsx)("div",{className:"empty-slot-sub",children:"No deliveries are currently in progress for this slot"})]});return(0,_.jsx)("div",{className:"adcard-list",children:u.map(((e,s)=>{const r=e.rider_id||e.userid,o=a.find((e=>String(e.id)===String(r))),u=c(r),m=(0,V.Cx)(e.orderstatus),p=parseFloat(e.droplat||e.deliverylat),h=parseFloat(e.droplon||e.deliverylong),v=Number.isFinite(p)&&Number.isFinite(h),x=l(r,e),j=e.deliverycustomer||e.customername||"Order #".concat(e.orderid),g=e.deliverysuburb||e.deliveryaddress||e.zone_name||"",N=e.rider_name||e.ridername||"Unassigned",b=v&&t&&String(t.orderid)===String(e.orderid),y=N.split(/\s+/).filter(Boolean).slice(0,2).map((e=>e[0])).join("").toUpperCase()||"\u2022";return(0,_.jsxs)("div",{className:"adcard".concat(b?" is-active":""),style:{"--ad-accent":u},onClick:()=>{o&&i(o),v&&n({orderid:e.orderid,lat:p,lon:h})},children:[(0,_.jsxs)("div",{className:"adcard-top",children:[(0,_.jsx)("div",{className:"adcard-avatar",style:{background:u},children:y}),(0,_.jsxs)("div",{className:"adcard-titles",children:[(0,_.jsxs)("div",{className:"adcard-rider",title:N,children:[(0,_.jsx)(S.aVM,{style:{fontSize:13,flexShrink:0}}),(0,_.jsx)("span",{className:"adcard-tx",children:N})]}),(0,_.jsx)("div",{className:"adcard-customer",title:j,children:j})]}),(0,_.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"4px"},children:[(0,_.jsx)("span",{className:"adcard-status",style:{background:"".concat(m.bg,"1a"),color:m.bg},title:m.label,children:m.label}),e.deliverytime&&(0,_.jsx)("span",{className:"adcard-time",style:{fontSize:"11px",color:"#64748b"},children:f()(e.deliverytime).isValid()?f()(e.deliverytime).format("HH:mm:ss"):String(e.deliverytime)})]})]}),g&&(0,_.jsxs)("div",{className:"adcard-addr",children:[(0,_.jsx)("span",{className:"adcard-ic",children:(0,_.jsx)(S.gwi,{})}),(0,_.jsx)("span",{className:"adcard-tx adcard-addr-tx",title:g,children:g})]}),(0,_.jsxs)("div",{className:"adcard-foot",children:[e.pickupcustomer?(0,_.jsxs)("span",{className:"adcard-pickup",title:e.pickupcustomer,children:[(0,_.jsx)("span",{className:"adcard-ic",children:(0,_.jsx)(S.NtI,{})}),(0,_.jsx)("span",{className:"adcard-tx",children:e.pickupcustomer})]}):(0,_.jsx)("span",{}),(0,_.jsx)("span",{className:"adcard-metrics",children:null!==x&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("span",{className:"adcard-m adcard-m-eta",title:"Distance to drop",children:[(0,_.jsx)("span",{className:"adcard-ic",children:(0,_.jsx)(S.HPi,{})}),d(x)]}),(0,_.jsxs)("span",{className:"adcard-m adcard-m-time",title:"Estimated time to drop",children:[(0,_.jsx)("span",{className:"adcard-ic",children:(0,_.jsx)(S.VP9,{})}),(()=>{const e=x/1e3/20*60;return e<1?"< 1 min":"".concat(Math.ceil(e)," min")})()]})]})})]})]},e.orderid)}))})};var U=a(81425),G=a(14857),J=a(47223);const W=function(e){let{focusedRider:s,compareDeltas:a,compareSummary:t,actualOrdered:i,focusedCompareStep:n,setFocusedCompareStep:l,sequenceOpen:c,setSequenceOpen:d,expandedSeqGroups:o,setExpandedSeqGroups:u,onClose:m}=e;const p=(0,G.A)(),h=(0,J.A)(p.breakpoints.down("md")),v=(0,r.useMemo)((()=>{const e=t,r=e.onTime+e.late,n=s.orders.reduce(((e,s)=>e+parseFloat(s.profit||0)),0),l=n<0,c=a.filter((e=>e.anomaly)),d=a.filter((e=>V.Ys.has(String(e.orderstatus||"").toLowerCase()))).length,o=a.filter((e=>V.yP.has(String(e.orderstatus||"").toLowerCase()))).length,u=null==e.kmDeltaPct?"":e.kmDeltaPct>25?"is-over":e.kmDeltaPct<-5?"is-under":"",m=a.length||1,p=e.onTime+e.late||1,h=Math.round(d/m*60+e.onTime/p*25+(m-e.anomalies)/m*15),v=h>=85?"#16a34a":h>=65?"#f59e0b":"#dc2626",x=h>=85?"Excellent":h>=65?"Acceptable":"Needs review",j=a.filter((e=>e.actualTs)),f=j.reduce(((e,s)=>!e||s.actualTs.isBefore(e)?s.actualTs:e),null),g=j.reduce(((e,s)=>!e||s.actualTs.isAfter(e)?s.actualTs:e),null),N=f&&g?Math.max(0,g.diff(f,"minute")):0,b=a.length>1?Math.round(N/(a.length-1)):0,y=N>0?(e.actualKm/(N/60)).toFixed(1):null,k=a.filter((e=>!e.isLoading&&e.coordsCount>0)),S=k.filter((e=>null!=e.timeDeltaMin&&!e.anomaly)).sort(((e,s)=>e.timeDeltaMin-s.timeDeltaMin))[0]||null,_=k.filter((e=>e.anomaly)).sort(((e,s)=>{const a=Math.abs(e.kmDeltaPct||0)+(e.timeDeltaMin>0?e.timeDeltaMin:0);return Math.abs(s.kmDeltaPct||0)+(s.timeDeltaMin>0?s.timeDeltaMin:0)-a}))[0]||null,w=i.filter(((e,s)=>{var a;const t=null===(a=e.order)||void 0===a?void 0:a.step;return null!=t&&t!==s+1})),F=[];w.forEach((e=>{var s;const a=null===(s=e.order)||void 0===s?void 0:s.step,t=i.findIndex((s=>s.sequenceStep===e.sequenceStep))+1,r=t-a,n=F[F.length-1];n&&n.delta===r&&n.lastActualPos+1===t?(n.items.push({d:e,planned:a,actualPos:t,delta:r}),n.lastActualPos=t):F.push({delta:r,items:[{d:e,planned:a,actualPos:t,delta:r}],lastActualPos:t})}));const M={};s.orders.forEach((e=>{const s=e.trip_number||1;M[s]||(M[s]=[]),M[s].push(e)}));const C=Object.entries(M).sort(((e,s)=>{let[a]=e,[t]=s;return Number(a)-Number(t)})).map((e=>{let[s,a]=e;return{tNum:s,count:a.length,plannedKm:a.reduce(((e,s)=>e+parseFloat(s.kms||0)),0),actualKm:a.reduce(((e,s)=>e+parseFloat(s.actualkms||s.kms||0)),0),profit:a.reduce(((e,s)=>e+parseFloat(s.profit||0)),0),delivered:a.filter((e=>V.Ys.has(String(e.orderstatus||"").toLowerCase()))).length}}));return{sum:e,totalSteps:r,totalProfit:n,isLoss:l,deviations:c,delivered:d,skipped:o,stepDeltaPct:u,score:h,scoreColor:v,scoreLabel:x,firstDelivery:f,lastDelivery:g,activeMin:N,avgPerStop:b,avgSpeed:y,bestStep:S,worstStep:_,outOfOrderSteps:w,seqRuns:F,tripList:C}}),[s,a,t,i]),x=null!=n?a.find((e=>e.sequenceStep===n)):null,j=e=>{l((s=>s===e?null:e))},f=function(e){let s=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{d:a,planned:t,actualPos:i,delta:r}=e;return(0,_.jsxs)("li",{className:"cdp-seq-diff".concat(n===a.sequenceStep?" is-focused":"").concat(s?"":" is-nested"),onClick:()=>j(a.sequenceStep),children:[(0,_.jsx)("span",{className:"cdp-seq-diff-num",style:{background:(0,V.gM)((t||a.sequenceStep)-1)},children:t||a.sequenceStep}),(0,_.jsxs)("div",{className:"cdp-seq-diff-body",children:[(0,_.jsx)("div",{className:"cdp-seq-diff-title",children:a.deliverycustomer||"Step ".concat(t||a.sequenceStep)}),(0,_.jsxs)("div",{className:"cdp-seq-diff-sub",children:["Visited ",(0,_.jsx)("strong",{children:(0,V.IE)(i)})," ","\xb7 planned ",(0,_.jsx)("strong",{children:(0,V.IE)(t)})]})]}),(0,_.jsx)("span",{className:"cdp-seq-diff-tag",children:r>0?"+".concat(r):"".concat(r)})]},"diff-".concat(a.sequenceStep))},{sum:g,totalSteps:N,totalProfit:b,isLoss:y,deviations:k,delivered:w,skipped:F,stepDeltaPct:M,score:C,scoreColor:A,scoreLabel:z,firstDelivery:P,lastDelivery:E,activeMin:D,avgPerStop:L,avgSpeed:R,bestStep:q,worstStep:I,outOfOrderSteps:O,seqRuns:T,tripList:Y}=v;return(0,_.jsxs)("aside",{id:"compare-data-panel",className:"compare-data-panel".concat(h?" cdp-is-mobile":""),children:[(0,_.jsxs)("div",{className:"cdp-head",children:[(0,_.jsxs)("div",{className:"cdp-head-title",children:[(0,_.jsx)("span",{className:"cdp-rider-dot",style:{background:s.color}}),(0,_.jsxs)("div",{className:"cdp-head-text",children:[(0,_.jsx)("div",{className:"cdp-rider-name",children:s.riderName}),(0,_.jsx)("div",{className:"cdp-head-badge",children:"PLANNED vs ACTUAL"})]})]}),(0,_.jsx)("button",{type:"button",className:"cdp-close",onClick:m,title:"Exit compare","aria-label":"Exit compare",children:(0,_.jsx)(S.m6K,{})})]}),(0,_.jsxs)("div",{className:"cdp-scroll",children:[(0,_.jsx)("section",{className:"cdp-section cdp-score-section",children:(0,_.jsxs)("div",{className:"cdp-score-wrap",children:[(0,_.jsx)("div",{className:"cdp-score-ring",style:{background:"conic-gradient(".concat(A," ").concat(3.6*C,"deg, rgba(15,23,42,0.08) 0deg)")},children:(0,_.jsxs)("div",{className:"cdp-score-inner",children:[(0,_.jsx)("div",{className:"cdp-score-value",style:{color:A},children:C}),(0,_.jsx)("div",{className:"cdp-score-unit",children:"/100"})]})}),(0,_.jsxs)("div",{className:"cdp-score-body",children:[(0,_.jsx)("div",{className:"cdp-score-label",style:{color:A},children:z}),(0,_.jsx)("div",{className:"cdp-score-title",children:"Compliance score"}),(0,_.jsxs)("div",{className:"cdp-score-sub",children:[w,"/",a.length," delivered",g.anomalies>0?" \xb7 ".concat(g.anomalies," deviation").concat(g.anomalies>1?"s":""):"",g.late>0?" \xb7 ".concat(g.late," late"):"",F>0?" \xb7 ".concat(F," skipped"):""]})]})]})}),(0,_.jsxs)("section",{className:"cdp-section",children:[(0,_.jsxs)("div",{className:"cdp-section-head",children:[(0,_.jsx)("span",{className:"cdp-section-icon",children:(0,_.jsx)(S.Zs6,{})}),(0,_.jsx)("span",{className:"cdp-section-title",children:"Day overview"})]}),(0,_.jsxs)("div",{className:"cdp-tiles",children:[(0,_.jsxs)("div",{className:"cdp-tile",children:[(0,_.jsxs)("div",{className:"cdp-tile-label",children:[(0,_.jsx)(S.xI$,{})," Distance"]}),(0,_.jsxs)("div",{className:"cdp-tile-value",children:[g.actualKm.toFixed(1),(0,_.jsx)("span",{className:"cdp-tile-unit",children:"km"})]}),(0,_.jsxs)("div",{className:"cdp-tile-sub",children:["planned ",g.plannedKm.toFixed(1)," km"]})]}),(0,_.jsxs)("div",{className:"cdp-tile".concat(g.anomalies>0?" is-warn":""),children:[(0,_.jsxs)("div",{className:"cdp-tile-label",children:[(0,_.jsx)(S.Wux,{})," Deviation"]}),(0,_.jsx)("div",{className:"cdp-tile-value ".concat(M),children:null!=g.kmDeltaPct?"".concat(g.kmDeltaPct>0?"+":"").concat(g.kmDeltaPct.toFixed(0),"%"):"\u2014"}),(0,_.jsx)("div",{className:"cdp-tile-sub",children:g.anomalies>0?"".concat(g.anomalies," flagged"):"within plan"})]}),(0,_.jsxs)("div",{className:"cdp-tile".concat(g.late>0?" is-warn":""),children:[(0,_.jsxs)("div",{className:"cdp-tile-label",children:[(0,_.jsx)(S.VP9,{})," On-time"]}),(0,_.jsxs)("div",{className:"cdp-tile-value",children:[g.onTime,N>0&&(0,_.jsxs)("span",{className:"cdp-tile-unit",children:["/",N]})]}),(0,_.jsx)("div",{className:"cdp-tile-sub",children:g.late>0?"".concat(g.late," late"):"all on schedule"})]}),(0,_.jsxs)("div",{className:"cdp-tile ".concat(y?"is-loss":"is-gain"),children:[(0,_.jsxs)("div",{className:"cdp-tile-label",children:[y?(0,_.jsx)(S.Rod,{}):(0,_.jsx)(S.imn,{})," ",y?"Loss":"Profit"]}),(0,_.jsxs)("div",{className:"cdp-tile-value",children:[y?"-":"","\u20b9",Math.abs(b).toFixed(0)]}),(0,_.jsxs)("div",{className:"cdp-tile-sub",children:[s.orders.length," ",1===s.orders.length?"order":"orders"," \xb7 ",w," delivered"]})]})]})]}),a.length>0&&(0,_.jsxs)("section",{className:"cdp-section cdp-seq-section",children:[(0,_.jsxs)("div",{className:"cdp-section-head cdp-section-head-clickable",onClick:()=>d((e=>!e)),role:"button","aria-expanded":c,title:c?"Collapse route sequence":"Expand route sequence",children:[(0,_.jsx)("span",{className:"cdp-section-icon",children:(0,_.jsx)(S.$G1,{})}),(0,_.jsx)("span",{className:"cdp-section-title",children:"Route sequence"}),(0,_.jsx)("span",{className:"cdp-seq-status".concat(O.length>0?" is-warn":" is-good"),children:O.length>0?"".concat(O.length," out of order"):"In order"}),(0,_.jsx)("span",{className:"cdp-seq-toggle".concat(c?" is-open":""),children:(0,_.jsx)(S.j1Q,{})})]}),c&&(0,_.jsx)("div",{className:"cdp-seq",children:O.length>0?(0,_.jsx)("ul",{className:"cdp-seq-diffs",children:T.map(((e,s)=>{if(1===e.items.length)return f(e.items[0]);const a=e.items[0],t=e.items[e.items.length-1],i=o.has(s),l=e.delta>0?"+".concat(e.delta):"".concat(e.delta),c=e.items.some((e=>e.d.sequenceStep===n));return(0,_.jsxs)(r.Fragment,{children:[(0,_.jsxs)("li",{className:"cdp-seq-diff is-group".concat(i?" is-expanded":"").concat(c?" is-focused":""),onClick:()=>{return e=s,void u((s=>{const a=new Set(s);return a.has(e)?a.delete(e):a.add(e),a}));var e},"aria-expanded":i,children:[(0,_.jsxs)("span",{className:"cdp-seq-group-num",children:[(0,_.jsx)("span",{className:"cdp-seq-group-num-bg",style:{background:"linear-gradient(135deg, ".concat((0,V.gM)((a.planned||1)-1),", ").concat((0,V.gM)((t.planned||1)-1),")")}}),(0,_.jsxs)("span",{className:"cdp-seq-group-num-label",children:[e.items.length,"\xd7"]})]}),(0,_.jsxs)("div",{className:"cdp-seq-diff-body",children:[(0,_.jsxs)("div",{className:"cdp-seq-diff-title",children:[e.items.length," consecutive steps shifted"," ",(0,_.jsx)("span",{className:"cdp-seq-group-delta",children:l})]}),(0,_.jsxs)("div",{className:"cdp-seq-diff-sub",children:["Planned ",(0,V.IE)(a.planned),"\u2013",(0,V.IE)(t.planned)," ","visited"," ",(0,_.jsxs)("strong",{children:[(0,V.IE)(a.actualPos),"\u2013",(0,V.IE)(t.actualPos)]})]})]}),(0,_.jsx)("span",{className:"cdp-seq-diff-tag",children:l}),(0,_.jsx)("span",{className:"cdp-seq-group-toggle".concat(i?" is-open":""),"aria-hidden":"true",children:(0,_.jsx)(S.j1Q,{})})]}),i&&(0,_.jsx)("li",{className:"cdp-seq-group-children-wrap",children:(0,_.jsx)("ul",{className:"cdp-seq-group-children",children:e.items.map((e=>f(e,!1)))})})]},"run-".concat(s,"-").concat(a.d.sequenceStep))}))}):(0,_.jsxs)("div",{className:"cdp-seq-good",children:[(0,_.jsx)(S.mU9,{})," Rider followed the planned route in order."]})})]}),(P||E)&&(0,_.jsxs)("section",{className:"cdp-section cdp-timing-section",children:[(0,_.jsxs)("div",{className:"cdp-section-head",children:[(0,_.jsx)("span",{className:"cdp-section-icon",children:(0,_.jsx)(S.pWE,{})}),(0,_.jsx)("span",{className:"cdp-section-title",children:"Timing"}),D>0&&(0,_.jsxs)("span",{className:"cdp-timing-active-tag",children:[(0,_.jsx)("span",{className:"cdp-timing-active-pulse"}),"Day window"]})]}),(0,_.jsxs)("div",{className:"cdp-timing-clock",children:[(0,_.jsxs)("div",{className:"cdp-clock-card is-start",children:[(0,_.jsxs)("div",{className:"cdp-clock-label",children:[(0,_.jsx)(S.WVj,{})," First delivery"]}),(0,_.jsxs)("div",{className:"cdp-clock-face",children:[(0,_.jsx)("span",{className:"cdp-clock-time",children:P?P.format("hh:mm"):"\u2014"}),(0,_.jsx)("span",{className:"cdp-clock-period",children:P?P.format("A"):""})]}),(0,_.jsx)("div",{className:"cdp-clock-caption",children:"Started"})]}),(0,_.jsxs)("div",{className:"cdp-clock-track","aria-hidden":"true",children:[(0,_.jsx)("span",{className:"cdp-clock-track-line"}),(0,_.jsx)("span",{className:"cdp-clock-track-dot is-start"}),(0,_.jsx)("span",{className:"cdp-clock-track-dot is-end"}),(0,_.jsxs)("div",{className:"cdp-clock-duration",children:[(0,_.jsx)("span",{className:"cdp-clock-duration-icon",children:(0,_.jsx)(S.DZH,{})}),(0,_.jsx)("span",{className:"cdp-clock-duration-val",children:D>0?D>=60?"".concat(Math.floor(D/60),"h ").concat(D%60,"m"):"".concat(D,"m"):"\u2014"}),(0,_.jsx)("span",{className:"cdp-clock-duration-sub",children:"active"})]})]}),(0,_.jsxs)("div",{className:"cdp-clock-card is-end",children:[(0,_.jsxs)("div",{className:"cdp-clock-label",children:[(0,_.jsx)(S.mU9,{})," Last delivery"]}),(0,_.jsxs)("div",{className:"cdp-clock-face",children:[(0,_.jsx)("span",{className:"cdp-clock-time",children:E?E.format("hh:mm"):"\u2014"}),(0,_.jsx)("span",{className:"cdp-clock-period",children:E?E.format("A"):""})]}),(0,_.jsx)("div",{className:"cdp-clock-caption",children:"Finished"})]})]}),(0,_.jsxs)("div",{className:"cdp-timing-stats",children:[(0,_.jsxs)("div",{className:"cdp-timing-stat",children:[(0,_.jsxs)("div",{className:"cdp-timing-stat-head",children:[(0,_.jsx)("div",{className:"cdp-timing-stat-icon",children:(0,_.jsx)(S.VP9,{})}),(0,_.jsxs)("div",{className:"cdp-timing-stat-body",children:[(0,_.jsxs)("div",{className:"cdp-timing-stat-value",children:[L>0?"".concat(L):"\u2014",L>0&&(0,_.jsx)("span",{className:"cdp-timing-stat-unit",children:"min"})]}),(0,_.jsx)("div",{className:"cdp-timing-stat-label",children:"Avg / stop"})]})]}),a.length>0&&(0,_.jsxs)("div",{className:"cdp-timing-stat-viz cdp-stops-dots","aria-hidden":"true",children:[Array.from({length:Math.min(a.length,12)}).map(((e,s)=>(0,_.jsx)("span",{className:"cdp-stop-dot"},"dot-".concat(s)))),(0,_.jsxs)("span",{className:"cdp-timing-stat-viz-label",children:[a.length," stop",1===a.length?"":"s"]})]})]}),null!=R&&(0,_.jsxs)("div",{className:"cdp-timing-stat",children:[(0,_.jsxs)("div",{className:"cdp-timing-stat-head",children:[(0,_.jsx)("div",{className:"cdp-timing-stat-icon",children:(0,_.jsx)(S.BJM,{})}),(0,_.jsxs)("div",{className:"cdp-timing-stat-body",children:[(0,_.jsxs)("div",{className:"cdp-timing-stat-value",children:[R,(0,_.jsx)("span",{className:"cdp-timing-stat-unit",children:"km/h"})]}),(0,_.jsx)("div",{className:"cdp-timing-stat-label",children:"Avg speed"})]})]}),(0,_.jsxs)("div",{className:"cdp-timing-stat-viz cdp-speed-gauge","aria-hidden":"true",children:[(0,_.jsx)("div",{className:"cdp-speed-gauge-track",children:(0,_.jsx)("div",{className:"cdp-speed-gauge-fill",style:{width:"".concat(Math.min(100,parseFloat(R)/60*100),"%")}})}),(0,_.jsxs)("div",{className:"cdp-speed-gauge-scale",children:[(0,_.jsx)("span",{children:"0"}),(0,_.jsx)("span",{children:"30"}),(0,_.jsx)("span",{children:"60 km/h"})]})]})]})]})]}),(q||I)&&(0,_.jsxs)("section",{className:"cdp-section",children:[(0,_.jsxs)("div",{className:"cdp-section-head",children:[(0,_.jsx)("span",{className:"cdp-section-icon",children:(0,_.jsx)(S.SeC,{})}),(0,_.jsx)("span",{className:"cdp-section-title",children:"Highlights"})]}),(0,_.jsxs)("div",{className:"cdp-highlights",children:[q&&(0,_.jsxs)("div",{className:"cdp-highlight is-best",onClick:()=>j(q.sequenceStep),role:"button",title:"Focus this step",children:[(0,_.jsx)("span",{className:"cdp-highlight-rail","aria-hidden":"true"}),(0,_.jsxs)("div",{className:"cdp-highlight-content",children:[(0,_.jsxs)("div",{className:"cdp-highlight-top",children:[(0,_.jsxs)("span",{className:"cdp-highlight-label",children:[(0,_.jsx)("span",{className:"cdp-highlight-chip",children:(0,_.jsx)(S.mU9,{})}),"Fastest stop"]}),(0,_.jsxs)("span",{className:"cdp-highlight-step-chip",style:{background:(0,V.gM)(q.sequenceStep-1)},children:["Step ",q.sequenceStep]})]}),(0,_.jsx)("div",{className:"cdp-highlight-title",children:q.deliverycustomer||"Step ".concat(q.sequenceStep)}),(0,_.jsx)("div",{className:"cdp-highlight-meta",children:(0,_.jsx)("span",{className:"cdp-highlight-pill is-good",children:null!=q.timeDeltaMin?0===q.timeDeltaMin?"On schedule":"".concat(q.timeDeltaMin>0?"+":"").concat(q.timeDeltaMin," min vs plan"):"On schedule"})})]})]}),I&&(0,_.jsxs)("div",{className:"cdp-highlight is-worst",onClick:()=>j(I.sequenceStep),role:"button",title:"Focus this step",children:[(0,_.jsx)("span",{className:"cdp-highlight-rail","aria-hidden":"true"}),(0,_.jsxs)("div",{className:"cdp-highlight-content",children:[(0,_.jsxs)("div",{className:"cdp-highlight-top",children:[(0,_.jsxs)("span",{className:"cdp-highlight-label",children:[(0,_.jsx)("span",{className:"cdp-highlight-chip",children:(0,_.jsx)(S.Wux,{})}),"Biggest deviation"]}),(0,_.jsxs)("span",{className:"cdp-highlight-step-chip",style:{background:(0,V.gM)(I.sequenceStep-1)},children:["Step ",I.sequenceStep]})]}),(0,_.jsx)("div",{className:"cdp-highlight-title",children:I.deliverycustomer||"Step ".concat(I.sequenceStep)}),(0,_.jsxs)("div",{className:"cdp-highlight-meta",children:[null!=I.kmDeltaPct&&(0,_.jsxs)("span",{className:"cdp-highlight-pill is-bad",children:[I.kmDeltaPct>0?"+":"",I.kmDeltaPct.toFixed(0),"% route"]}),null!=I.timeDeltaMin&&I.timeDeltaMin>0&&(0,_.jsxs)("span",{className:"cdp-highlight-pill is-bad",children:["+",I.timeDeltaMin,"m late"]})]})]})]})]})]}),Y.length>1&&(0,_.jsxs)("section",{className:"cdp-section",children:[(0,_.jsxs)("div",{className:"cdp-section-head",children:[(0,_.jsx)("span",{className:"cdp-section-icon",children:(0,_.jsx)(S.$G1,{})}),(0,_.jsxs)("span",{className:"cdp-section-title",children:["Trips (",Y.length,")"]})]}),(0,_.jsx)("div",{className:"cdp-trips",children:Y.map((e=>{const s=e.profit<0;return(0,_.jsxs)("div",{className:"cdp-trip",children:[(0,_.jsxs)("div",{className:"cdp-trip-head",children:[(0,_.jsxs)("span",{className:"cdp-trip-badge",children:["Trip ",e.tNum]}),(0,_.jsxs)("span",{className:"cdp-trip-meta",children:[e.delivered,"/",e.count," delivered"]})]}),(0,_.jsxs)("div",{className:"cdp-trip-stats",children:[(0,_.jsxs)("span",{title:"Distance",children:[(0,_.jsx)(S.xI$,{}),e.actualKm.toFixed(1),"km",(0,_.jsxs)("small",{children:[" / ",e.plannedKm.toFixed(1)]})]}),(0,_.jsxs)("span",{className:s?"is-over":"",title:s?"Loss":"Profit",children:[(0,_.jsx)(S.ohY,{}),s?"-":"","\u20b9",Math.abs(e.profit).toFixed(0)]})]})]},"trip-".concat(e.tNum))}))})]}),x&&(e=>{const s=(0,V.gM)(x.sequenceStep-1),a=x.kmDelta>=0?"+":"",t=x.anomaly?"is-over":x.kmDelta<-.1?"is-under":"",i=null!=x.timeDeltaMin?x.timeDeltaMin>10?"is-over":x.timeDeltaMin<-2?"is-under":"":"",r=(0,V.Cx)(x.orderstatus),n=parseFloat((null===(e=x.order)||void 0===e?void 0:e.profit)||0);return(0,_.jsxs)("section",{className:"cdp-section",children:[(0,_.jsxs)("div",{className:"cdp-section-head",children:[(0,_.jsx)("span",{className:"cdp-section-icon",children:(0,_.jsx)(S.$G1,{})}),(0,_.jsxs)("span",{className:"cdp-section-title",children:["Step ",x.sequenceStep," details"]}),(0,_.jsx)("button",{type:"button",className:"cdp-section-clear",onClick:()=>l(null),title:"Clear step focus",children:"Show all"})]}),(0,_.jsxs)("div",{className:"compare-delta".concat(x.anomaly?" is-anomaly":""),children:[(0,_.jsxs)("div",{className:"compare-delta-title",children:[(0,_.jsx)("span",{className:"compare-delta-step-badge",style:{background:s},children:x.sequenceStep}),(0,_.jsxs)("div",{className:"compare-delta-title-text",children:[(0,_.jsx)("div",{className:"compare-delta-title-main",children:x.deliverycustomer||"Step ".concat(x.sequenceStep)}),(0,_.jsxs)("div",{className:"compare-delta-title-sub",children:[x.pickupcustomer?"from ".concat(x.pickupcustomer," \xb7 "):"","Order #",x.orderid]})]}),x.orderstatus&&(0,_.jsx)("span",{className:"compare-delta-status",style:{background:r.bg,color:r.fg},children:r.label})]}),(0,_.jsxs)("div",{className:"compare-delta-grid",children:[(0,_.jsxs)("div",{className:"compare-delta-cell".concat(x.anomaly?" is-anomaly":""),children:[(0,_.jsx)("span",{className:"compare-delta-cell-label",children:"Distance"}),(0,_.jsxs)("span",{className:"compare-delta-cell-val",children:[x.actualKm.toFixed(2)," ",(0,_.jsx)("span",{className:"compare-delta-cell-unit",children:"km"})]}),(0,_.jsxs)("span",{className:"compare-delta-cell-sub",children:["planned ",x.plannedKm.toFixed(2)," km"]})]}),(0,_.jsxs)("div",{className:"compare-delta-cell",children:[(0,_.jsx)("span",{className:"compare-delta-cell-label",children:"\u0394 Route"}),(0,_.jsxs)("span",{className:"compare-delta-cell-val ".concat(t),children:[a,x.kmDelta.toFixed(2)," km"]}),(0,_.jsx)("span",{className:"compare-delta-cell-sub",children:null!=x.kmDeltaPct?"".concat(a).concat(x.kmDeltaPct.toFixed(0),"% vs plan"):"no planned km"})]}),(0,_.jsxs)("div",{className:"compare-delta-cell",children:[(0,_.jsx)("span",{className:"compare-delta-cell-label",children:"Time"}),(0,_.jsx)("span",{className:"compare-delta-cell-val ".concat(i),children:null!=x.timeDeltaMin?"".concat(x.timeDeltaMin>0?"+":"").concat(x.timeDeltaMin," min"):"\u2014"}),(0,_.jsx)("span",{className:"compare-delta-cell-sub",children:x.actualTs&&x.expectedTs?"".concat(x.actualTs.format("HH:mm")," vs ").concat(x.expectedTs.format("HH:mm")):x.actualTs?"delivered ".concat(x.actualTs.format("HH:mm")):"in flight"})]}),!Number.isNaN(n)&&0!==n&&(0,_.jsxs)("div",{className:"compare-delta-cell".concat(n<0?" is-anomaly":""),children:[(0,_.jsx)("span",{className:"compare-delta-cell-label",children:n<0?"Loss":"Profit"}),(0,_.jsxs)("span",{className:"compare-delta-cell-val ".concat(n<0?"is-over":"is-under"),children:[n<0?"-":"","\u20b9",Math.abs(n).toFixed(0)]}),(0,_.jsx)("span",{className:"compare-delta-cell-sub",children:"order revenue"})]})]})]})]})})(),k.length>0&&(0,_.jsxs)("section",{className:"cdp-section",children:[(0,_.jsxs)("div",{className:"cdp-section-head",children:[(0,_.jsx)("span",{className:"cdp-section-icon cdp-icon-warn",children:(0,_.jsx)(S.ItP,{})}),(0,_.jsxs)("span",{className:"cdp-section-title",children:["Deviations (",k.length,")"]})]}),(0,_.jsx)("ul",{className:"cdp-dev-list",children:k.map((e=>{const s=(0,V.gM)(e.sequenceStep-1),a=e.kmDelta>=0?"+":"";return(0,_.jsxs)("li",{className:"cdp-dev-item".concat(n===e.sequenceStep?" is-focused":""),onClick:()=>j(e.sequenceStep),children:[(0,_.jsx)("span",{className:"cdp-dev-num",style:{background:s},children:e.sequenceStep}),(0,_.jsxs)("div",{className:"cdp-dev-body",children:[(0,_.jsx)("div",{className:"cdp-dev-title",children:e.deliverycustomer||"Step ".concat(e.sequenceStep)}),(0,_.jsxs)("div",{className:"cdp-dev-meta",children:[null!=e.kmDeltaPct&&(0,_.jsxs)("span",{className:"cdp-dev-chip is-over",children:[a,e.kmDeltaPct.toFixed(0),"% route"]}),null!=e.timeDeltaMin&&e.timeDeltaMin>10&&(0,_.jsxs)("span",{className:"cdp-dev-chip is-over",children:["+",e.timeDeltaMin,"m late"]})]})]})]},"dev-".concat(e.sequenceStep))}))})]}),(0,_.jsxs)("section",{className:"cdp-section",children:[(0,_.jsxs)("div",{className:"cdp-section-head",children:[(0,_.jsx)("span",{className:"cdp-section-icon",children:(0,_.jsx)(S.EgJ,{})}),(0,_.jsxs)("span",{className:"cdp-section-title",children:["Steps (",a.length,")"]}),(0,_.jsxs)("span",{className:"cdp-section-sub",children:[w,"/",a.length," delivered"]})]}),(0,_.jsx)("ul",{className:"cdp-step-list",children:a.map((e=>{var s;const a=(0,V.gM)(e.sequenceStep-1),t=String(e.orderstatus||"").toLowerCase(),i=V.Ys.has(t),r=V.yP.has(t),l=i&&!e.anomaly,c=n===e.sequenceStep,d=(0,V.Cx)(e.orderstatus),o=parseFloat((null===(s=e.order)||void 0===s?void 0:s.profit)||0),u=e.kmDelta>=0?"+":"",m=null!=e.timeDeltaMin?e.timeDeltaMin>10?"is-over":e.timeDeltaMin<-2?"is-under":"":"",p=["cdp-step",c?"is-focused":"",e.anomaly?"is-anomaly":"",l?"is-correct":"",r?"is-skipped":"",e.isLoading?"is-loading":""].filter(Boolean).join(" ");return(0,_.jsxs)("li",{className:p,onClick:()=>j(e.sequenceStep),children:[(0,_.jsxs)("span",{className:"cdp-step-num",style:{background:a},children:[e.sequenceStep,l&&(0,_.jsx)("span",{className:"cdp-step-check",children:(0,_.jsx)(S.mU9,{})}),e.anomaly&&(0,_.jsx)("span",{className:"cdp-step-flag",children:(0,_.jsx)(S.ItP,{})})]}),(0,_.jsxs)("div",{className:"cdp-step-body",children:[(0,_.jsxs)("div",{className:"cdp-step-title-row",children:[(0,_.jsx)("span",{className:"cdp-step-title",children:e.deliverycustomer||"Step ".concat(e.sequenceStep)}),e.orderstatus&&(0,_.jsx)("span",{className:"cdp-step-status",style:{background:d.bg,color:d.fg},children:d.label})]}),(0,_.jsxs)("div",{className:"cdp-step-sub",children:[e.pickupcustomer?"from ".concat(e.pickupcustomer," \xb7 "):"","Order #",e.orderid]}),(0,_.jsxs)("div",{className:"cdp-step-deltas",children:[(0,_.jsxs)("span",{className:"cdp-step-delta",title:"Distance",children:[(0,_.jsx)(S.xI$,{}),e.actualKm.toFixed(1),"km",e.plannedKm>0&&(0,_.jsxs)("small",{className:e.anomaly?"is-over":"",children:[" ",u,e.kmDelta.toFixed(1)]})]}),(0,_.jsxs)("span",{className:"cdp-step-delta ".concat(m),title:"Delivery time",children:[(0,_.jsx)(S.VP9,{}),e.actualTs?e.actualTs.format("HH:mm"):"\u2014",null!=e.timeDeltaMin&&(0,_.jsxs)("small",{children:[" ",e.timeDeltaMin>0?"+":"",e.timeDeltaMin,"m"]})]}),!Number.isNaN(o)&&0!==o&&(0,_.jsxs)("span",{className:"cdp-step-delta".concat(o<0?" is-over":""),title:o<0?"Loss":"Profit",children:[(0,_.jsx)(S.ohY,{}),o<0?"-":"","\u20b9",Math.abs(o).toFixed(0)]})]})]})]},"step-".concat(e.sequenceStep))}))})]})]})]})};var $=a(85571);const Z=["_ts"],X="#662582",Q="#10b981",ee=e=>{const s=parseFloat(e);return Number.isFinite(s)?s:NaN},se=e=>{if(!e)return"";const s=String(e).trim();if(!s)return"";if(s.includes(",")){const e=s.split(",").map((e=>e.trim())).filter(Boolean);return 0===e.length?s:e.length<=2?e.join(", "):e.slice(-2).join(", ")}const a=s.split(/\s+/).filter(Boolean),t=a.length>6?a.slice(-6).join(" "):s;return t.length>40?"".concat(t.slice(0,40).trim(),"\u2026"):t},ae=e=>Number.isFinite(ee(e.droplat||e.deliverylat))&&Number.isFinite(ee(e.droplon||e.deliverylong)),te=e=>e.pickuplat||e.pickuplatitude||e.pickup_lat,ie=e=>e.pickuplong||e.pickuplongitude||e.picklongitude||e.pickup_lon,re=e=>Number.isFinite(ee(te(e)))&&Number.isFinite(ee(ie(e))),ne=[{id:"morning",name:"Morning Batch",startHour:0,endHour:8},{id:"afternoon",name:"Afternoon Batch",startHour:9,endHour:12.5},{id:"evening",name:"Evening Batch",startHour:16,endHour:19}],le="dispatch.slots.v9",ce=["dispatch.slots.v1","dispatch.slots.v2","dispatch.slots.v3","dispatch.slots.v4","dispatch.slots.v5","dispatch.slots.v6","dispatch.slots.v7","dispatch.slots.v8"],de=(e,s)=>"Slot ".concat(e+1," \xb7 ").concat(oe(s)),oe=e=>{const s=Math.floor(e),a=Math.round(60*(e-s)),t=(s+11)%12+1,i=s>=12&&s<24?"PM":"AM";if(0===a)return"".concat(t," ").concat(i);const r=String(a).padStart(2,"0");return"".concat(t,":").concat(r," ").concat(i)},ue=(e,s)=>s>=24?"After ".concat(oe(e)):"".concat(oe(e),"\u2013").concat(oe(s)),me=ne.map(((e,s)=>(0,i.A)((0,i.A)({},e),{},{label:e.name||de(s,e.startHour),range:ue(e.startHour,e.endHour)}))),pe=(e,s)=>{for(const a of s)if(e>=a.startHour&&e2&&void 0!==arguments[2]?arguments[2]:me;const a=((e,s)=>{const a=he.find((e=>e.id===s))||he[0];for(const t of a.keys)if(null!==e&&void 0!==e&&e[t])return e[t];return null})(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all");if(!a)return null;const t=String(a).trim();if(/^\d{4}-\d{2}-\d{2}$/.test(t))return null;const i=f()(a);return i.isValid()?pe(i.hour()+i.minute()/60,s):null};function xe(e){let{targetRef:s}=e;const a=(0,n.ko)();return(0,r.useEffect)((()=>(s.current=a,()=>{s.current=null})),[a]),null}function je(e){let{trigger:s}=e;const a=(0,n.ko)();return(0,r.useEffect)((()=>{const e=[0,60,120,200,300,380].map((e=>setTimeout((()=>a.invalidateSize({animate:!1})),e)));return()=>e.forEach(clearTimeout)}),[s,a]),null}function fe(e,s){const a=e=>e*Math.PI/180,t=a(e[0]),i=a(s[0]),r=a(s[0]-e[0]),n=a(s[1]-e[1]),l=Math.sin(r/2)**2+Math.cos(t)*Math.cos(i)*Math.sin(n/2)**2;return 12742*Math.asin(Math.min(1,Math.sqrt(l)))}function ge(e){if(!Array.isArray(e)||e.length<2)return 0;let s=0;for(let a=1;a{let a=0,t=1/0;for(let i=0;i{const a=Math.max(s,i);t.push(e.slice(i,a+1)),i=a})),t}const be=e=>{if(!e)return null;const s=f()(e);return s.isValid()?s.format("HH:mm:ss"):String(e)},ye=[{key:"assigntime",label:"Assigned"},{key:"acceptedtime",label:"Accepted"},{key:"arrivaltime",label:"Arrived"},{key:"pickuptime",label:"Pickup"},{key:"starttime",label:"Started"},{key:"deliverytime",label:"Delivered",final:!0}],ke=e=>{const s=e.filter(ae);if(!s.length)return[];const a=e.find(re),t=[];return a&&t.push([ee(te(a)),ee(ie(a))]),s.forEach((e=>t.push([ee(e.droplat||e.deliverylat),ee(e.droplon||e.deliverylong)]))),t},Se=(e,s,a)=>{if(!a||0===a.length)return"".concat(e,"-").concat(s);const t=a.map((e=>"".concat(e[0].toFixed(5),",").concat(e[1].toFixed(5)))).join("|");return"".concat(e,"-").concat(s,"-").concat(t)};delete v().Icon.Default.prototype._getIconUrl,v().Icon.Default.mergeOptions({iconRetinaUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon-2x.png",iconUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon.png",shadowUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-shadow.png"});const _e=["#0055FF","#00D82C","#FF6B00","#9D00FF","#FF00A8","#00C2B2","#FF9900","#FF0000"],we=e=>{const s=String(null!==e&&void 0!==e?e:"");if(!s)return _e[0];let a=0;for(let t=0;t>>0;return _e[a%_e.length]},Fe=e=>{let{focusedItem:s,viewMode:a,orders:t,kitchens:i,locationKey:l}=e;const c=(0,n.ko)(),d=(0,r.useRef)(""),o=(0,r.useMemo)((()=>{const e=null!=l?"loc:".concat(l,"|"):"",r=e=>{let s=0,a=0,t=0;for(const i of e)Number.isFinite(i[0])&&Number.isFinite(i[1])&&(s+=i[0],a+=i[1],t+=1);return 0===t?"0":"".concat((s/t).toFixed(1),",").concat((a/t).toFixed(1))};if(s){var n,c,d;const a=null!==(n=null!==(c=null!==(d=s.id)&&void 0!==d?d:s.kitchenName)&&void 0!==c?c:s.name)&&void 0!==n?n:null!=s.lat?"".concat(s.lat,",").concat(s.lon):"item",t=s.orders?s.orders.length:0;return"".concat(e,"f|").concat(a,"|").concat(t)}const o=(i||[]).map((e=>[e.lat,e.lon])),u=r(o);if("kitchens"===a){const s=o.filter((e=>Number.isFinite(e[0])&&Number.isFinite(e[1]))).length;return"".concat(e,"k|").concat(s,"|").concat(u)}if("all"===a){const s=(t||[]).map((e=>[parseFloat(e.droplat||e.deliverylat),parseFloat(e.droplon||e.deliverylong)]));return"".concat(e,"a|").concat(s.length,"|").concat(r(s))}return"".concat(e,"m|").concat(a||"","|").concat(o.length,"|").concat(u)}),[s,a,t,i,l]);return(0,r.useEffect)((()=>{if(d.current===o)return;let e=[];s?s.orders?(e=s.orders.map((e=>[parseFloat(e.droplat||e.deliverylat),parseFloat(e.droplon||e.deliverylong)])),s.orders.forEach((s=>e.push([ee(te(s)),ee(ie(s))])))):e=[[s.lat,s.lon]]:"kitchens"===a?(e=(i||[]).filter((e=>Number.isFinite(e.lat)&&Number.isFinite(e.lon))).map((e=>[e.lat,e.lon])),0===e.length&&(e=(t||[]).map((e=>[parseFloat(e.droplat||e.deliverylat),parseFloat(e.droplon||e.deliverylong)])))):"all"===a?e=(t||[]).map((e=>[parseFloat(e.droplat||e.deliverylat),parseFloat(e.droplon||e.deliverylong)])):(e=(i||[]).filter((e=>Number.isFinite(e.lat)&&Number.isFinite(e.lon))).map((e=>[e.lat,e.lon])),0===e.length&&(e=(t||[]).map((e=>[parseFloat(e.droplat||e.deliverylat),parseFloat(e.droplon||e.deliverylong)]))));const r=e.filter((e=>Number.isFinite(e[0])&&Number.isFinite(e[1])));if(r.length>0){const e=v().latLngBounds(r);if(e.isValid()){1===r.length||e.getNorthEast().equals(e.getSouthWest())?c.setView(r[0],15,{animate:!0,duration:.6}):c.flyToBounds(e,{padding:[60,60],duration:.6,maxZoom:16}),d.current=o}}else;}),[o,s,a,t,i,c]),null},Me=e=>{let{target:s,icon:a,duration:t=950,zIndexOffset:i,eventHandlers:n,children:c,markerRef:d}=e;const o=(0,r.useRef)(null),u=(0,r.useRef)(null),m=(0,r.useRef)(s),p=(0,r.useRef)(null),h=Array.isArray(s)?Number(s[0]):NaN,x=Array.isArray(s)?Number(s[1]):NaN;return(0,r.useEffect)((()=>{const e=o.current;if(!e||!Number.isFinite(h)||!Number.isFinite(x))return;const s=v().latLng(h,x),a=e.getLatLng();if(!a)return void e.setLatLng(s);const i=s.lat-a.lat,r=s.lng-a.lng;if(Math.abs(i)<1e-6&&Math.abs(r)<1e-6)return void e.setLatLng(s);let n=!1;try{n=a.distanceTo(s)>2e3}catch(b){n=!1}if(n)return e.setLatLng(s),void(p.current=performance.now());u.current&&cancelAnimationFrame(u.current);const l=performance.now(),c=null==p.current?t:l-p.current,d=Math.max(200,Math.min(2500,c));p.current=l;const m=a.lat,j=a.lng;let f=!0,g=null;(async()=>{const e="https://router.project-osrm.org/route/v1/driving/".concat(a.lng,",").concat(a.lat,";").concat(s.lng,",").concat(s.lat,"?overview=full&geometries=geojson");try{const s=await fetch(e),a=await s.json();f&&a.routes&&a.routes[0]&&(g=a.routes[0].geometry.coordinates.map((e=>[e[1],e[0]])))}catch(t){console.error("OSRM animated rider marker fetch error:",t)}})();const N=s=>{if(!f)return;const a=Math.min(1,(s-l)/d);if(g&&g.length>=2){const s=((e,s)=>{if(!e||0===e.length)return null;if(1===e.length)return e[0];if(s<=0)return e[0];if(s>=1)return e[e.length-1];const a=[];let t=0;for(let n=0;n=i){const s=(i-r)/a[n],t=e[n],l=e[n+1];return[t[0]+(l[0]-t[0])*s,t[1]+(l[1]-t[1])*s]}r=s}return e[e.length-1]})(g,a);s?e.setLatLng(s):e.setLatLng([m+i*a,j+r*a])}else e.setLatLng([m+i*a,j+r*a]);a<1&&(u.current=requestAnimationFrame(N))};return u.current=requestAnimationFrame(N),()=>{f=!1,u.current&&cancelAnimationFrame(u.current)}}),[h,x,t]),(0,r.useEffect)((()=>()=>{u.current&&cancelAnimationFrame(u.current)}),[]),(0,_.jsx)(l.p,{ref:e=>{o.current=e,"function"===typeof d?d(e):d&&(d.current=e)},position:m.current,icon:a,zIndexOffset:i,eventHandlers:n,children:c})},Ce=e=>{let{children:s}=e;return(0,_.jsx)("span",{className:"ico-inline",style:{display:"inline-flex",alignItems:"center",verticalAlign:"-2px",marginRight:4},children:s})},Ae=[{key:"morning",label:"Morning",timeRange:"12:00 AM \u2013 8:00 AM",sub:"Early shift orders",color:"#f59e0b",bg:"#fffbeb",border:"#fde68a"},{key:"afternoon",label:"Noon",timeRange:"9:00 AM \u2013 12:30 PM",sub:"Lunch rush window",color:"#10b981",bg:"#ecfdf5",border:"#a7f3d0"},{key:"evening",label:"Evening",timeRange:"4:00 PM \u2013 7:00 PM",sub:"Dinner & end-of-day",color:"#6366f1",bg:"#eef2ff",border:"#c7d2fe"}],ze=e=>{if(null==e)return"\u2014";if("number"===typeof e)return e.toLocaleString("en-IN");const s=parseFloat(e);return Number.isFinite(s)?s.toLocaleString("en-IN"):String(e)},Pe=e=>{if(!e||"string"!==typeof e)return null;const s=e.split(":").map(Number);if(s.length<2||s.some((e=>!Number.isFinite(e))))return null;const[a,t,i=0]=s;return 3600*a+60*t+i},Ee=e=>{let{data:s,embedded:a=!1,selectedRiderId:n,onRiderSelect:h,pulseOrderId:x,onChangeRider:j}=e;const w=null!==s&&void 0!==s&&s.zones&&s.zones.length>0?"zones":"riders",[F,M]=(0,r.useState)(w),[C,A]=(0,r.useState)("live"),[z,P]=(0,r.useState)({}),[E,D]=(0,r.useState)(null),[L,R]=(0,r.useState)(null),[q,I]=(0,r.useState)(null);(0,r.useEffect)((()=>{if(!q)return;const e=e=>{"Escape"===e.key&&I(null)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[q]);const O=(0,g.n)({mutationFn:U.W0,onMutate:e=>D(e.batch),onSuccess:(e,s)=>{P((a=>(0,i.A)((0,i.A)({},a),{},{[s.batch]:{data:e,fetchedAt:f()().format("HH:mm:ss")}})))},onSettled:()=>D(null)}),T=e=>{R(e);const s=z[e];s&&s.data&&!1!==s.data.success||O.mutate({batch:e,tenantId:916})},H=15e3,K=(0,r.useRef)(null);(0,r.useEffect)((()=>{K.current=E}),[E]),(0,r.useEffect)((()=>{if("analysis"!==C)return;if(!L)return;const e=setInterval((()=>{K.current||"undefined"!==typeof document&&document.hidden||O.mutate({batch:L,tenantId:916})}),H);return()=>clearInterval(e)}),[C,L]);const[G,J]=(0,r.useState)(new Set),[oe,he]=(0,r.useState)(null),[Ee,De]=(0,r.useState)(null),[Le,Re]=(0,r.useState)(null),[qe,Ie]=(0,r.useState)(null),[Oe,Te]=(0,r.useState)("planned"),Ye=(0,r.useRef)({}),He=(0,r.useRef)(new Set),Ve=(0,r.useRef)(new Set),Ke=(0,r.useRef)(new Map),Be=((0,r.useRef)(null),(0,r.useRef)(null)),[Ue,Ge]=(0,r.useState)(null),Je=void 0!==n,[We,$e]=(0,r.useState)(""),{data:Ze}=(0,N.I)({queryKey:["appLocations"],queryFn:U.aL,staleTime:3e5}),Xe="undefined"!==typeof window?localStorage.getItem("applocationid"):null,[Qe,es]=(0,r.useState)(null!=Xe?Number(Xe):0),[ss,as]=(0,r.useState)(!1),ts=(0,r.useRef)(null),[is,rs]=(0,r.useState)("assigned"),[ns,ls]=(0,r.useState)(!1),cs=(0,r.useRef)(null),[ds,os]=(0,r.useState)((()=>{if("undefined"===typeof window)return me;try{const e=window.localStorage.getItem(le);if(!e)return me;const s=JSON.parse(e);return Array.isArray(s)&&s.length===ne.length?s.map(((e,s)=>{const a=e.id||"slot-".concat(s+1),t=Number(e.startHour)||0,i=Number(e.endHour)||24,r=me.find((e=>e.id===a));return{id:a,startHour:t,endHour:i,label:(null===r||void 0===r?void 0:r.name)||de(s,t),range:ue(t,i)}})):me}catch(e){return me}})),us=ds,[ms,ps]=(0,r.useState)(!1),hs=(0,r.useRef)(null);(0,r.useEffect)((()=>{if("undefined"!==typeof window)try{ce.forEach((e=>window.localStorage.removeItem(e)))}catch(e){}}),[]);const vs=(0,r.useRef)(!1);(0,r.useEffect)((()=>{if(vs.current){if("undefined"!==typeof window)try{window.localStorage.setItem(le,JSON.stringify(ds.map((e=>{let{id:s,startHour:a,endHour:t}=e;return{id:s,startHour:a,endHour:t}}))))}catch(e){}}else vs.current=!0}),[ds]),(0,r.useEffect)((()=>{if(!ss)return;const e=e=>{ts.current&&!ts.current.contains(e.target)&&as(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[ss]),(0,r.useEffect)((()=>{if(!ns)return;const e=e=>{cs.current&&!cs.current.contains(e.target)&&ls(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[ns]),(0,r.useEffect)((()=>{if(!ms)return;const e=e=>{hs.current&&!hs.current.contains(e.target)&&ps(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[ms]);const[xs,js]=(0,r.useState)(null),[fs,gs]=(0,r.useState)(""),{data:Ns,isFetching:bs,isError:ys,error:ks}=(0,N.I)({queryKey:["riderPeriodicLog",xs],queryFn:()=>(0,U.ne)(xs),enabled:"rider-info"===F&&null!=xs,refetchInterval:"rider-info"===F&&null!=xs&&15e3,refetchIntervalInBackground:!1,staleTime:5e3,refetchOnWindowFocus:!1}),Ss=(0,r.useMemo)((()=>{const e=parseFloat(null===Ns||void 0===Ns?void 0:Ns.latitude),s=parseFloat(null===Ns||void 0===Ns?void 0:Ns.longitude);return Number.isFinite(e)&&Number.isFinite(s)?{lat:e.toFixed(4),lon:s.toFixed(4)}:null}),[null===Ns||void 0===Ns?void 0:Ns.latitude,null===Ns||void 0===Ns?void 0:Ns.longitude]),{data:_s}=(0,N.I)({queryKey:["reverseGeocode",null===Ss||void 0===Ss?void 0:Ss.lat,null===Ss||void 0===Ss?void 0:Ss.lon],queryFn:async()=>{const e=await fetch("https://nominatim.openstreetmap.org/reverse?lat=".concat(Ss.lat,"&lon=").concat(Ss.lon,"&format=json&zoom=16&addressdetails=1"),{headers:{Accept:"application/json"}});if(!e.ok)return null;const s=await e.json(),a=(null===s||void 0===s?void 0:s.address)||{};return{area:a.suburb||a.neighbourhood||a.village||a.hamlet||a.city_district||a.town||a.city||a.county||a.state||"",display:(null===s||void 0===s?void 0:s.display_name)||""}},enabled:"rider-info"===F&&!!Ss,staleTime:3e5,refetchOnWindowFocus:!1,retry:1}),ws=(0,r.useMemo)((()=>{if(!Ze)return null;const e=Ze.find((e=>String(e.applocationid)===String(Qe)));return(null===e||void 0===e?void 0:e.locationname)||null}),[Ze,Qe]),[Fs,Ms]=(0,r.useState)({}),Cs=(0,r.useRef)({}),[As,zs]=(0,r.useState)({}),Ps=(0,r.useRef)({}),[Es,Ds]=(0,r.useState)(!1),[Ls,Rs]=(0,r.useState)([]),[qs,Is]=(0,r.useState)({}),Os=(0,r.useRef)(!1),[Ts,Ys]=(0,r.useState)(f()().format("YYYY-MM-DD")),[Hs,Vs]=(0,r.useState)(!1),[Ks,Bs]=(0,r.useState)((()=>f()(Ts).isValid()?f()(Ts).startOf("month"):f()().startOf("month"))),Us=(0,r.useRef)(null);(0,r.useEffect)((()=>{if(!Hs)return;const e=e=>{Us.current&&(Us.current.contains(e.target)||Vs(!1))},s=e=>{"Escape"===e.key&&Vs(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",s),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",s)}}),[Hs]),(0,r.useEffect)((()=>{if(Hs){const e=f()(Ts);e.isValid()&&Bs(e.startOf("month"))}}),[Hs,Ts]);const[Gs,Js]=(0,r.useState)(!1),[Ws,$s]=(0,r.useState)("combined"),[Zs,Xs]=(0,r.useState)(!0),[Qs,ea]=(0,r.useState)(!0),[sa,aa]=(0,r.useState)((()=>new Set)),ta=(0,r.useRef)(!1),[ia,ra]=(0,r.useState)(!1),na=(0,r.useRef)(!1),la=(0,r.useRef)(!1),[ca,da]=(0,r.useState)(!1),[oa,ua]=(0,r.useState)(null),ma=(0,r.useRef)(null),pa=(0,r.useRef)(null);pa.current||(pa.current=v().canvas({padding:1.5,tolerance:5}));const{data:ha}=(0,N.I)({queryKey:[Qe,Ts,""],queryFn:U.zb,refetchInterval:1e3,refetchIntervalInBackground:!1,staleTime:0,refetchOnWindowFocus:!1}),va=(0,r.useMemo)((()=>(ha||[]).map((e=>{var s;const a=parseFloat(null===e||void 0===e?void 0:e.latitude),t=parseFloat(null===e||void 0===e?void 0:e.longitude);return Number.isFinite(a)&&Number.isFinite(t)?{id:String(null!==(s=e.userid)&&void 0!==s?s:""),userid:e.userid,username:e.username||"Rider #".concat(e.userid),status:String(e.status||"").toLowerCase(),contactno:e.contactno,orderid:e.orderid,logdate:e.logdate,lat:a,lon:t}:null})).filter(Boolean)),[ha]),xa=(0,r.useMemo)((()=>new Set(va.filter((e=>"active"===e.status||"pending"===e.status)).map((e=>String(e.id))))),[va]),[ja,fa]=(0,r.useState)((()=>{const e=f()();return pe(e.hour()+e.minute()/60,me)||me[0].id}));(0,r.useEffect)((()=>{var e;"all"!==ja&&(us.some((e=>e.id===ja))||fa((null===(e=us[0])||void 0===e?void 0:e.id)||"all"))}),[us,ja]);const ga=(0,r.useRef)(null),Na=!s,ba="undefined"!==typeof window&&localStorage.getItem("userid")||0,{data:ya,isFetching:ka,isError:Sa,fetchNextPage:_a,hasNextPage:wa,isFetchingNextPage:Fa}=(0,b.q)({queryKey:["dispatchDeliveries",Qe,ba,"all",Ts,Ts,50,"",0,0,0],queryFn:U.tL,getNextPageParam:e=>{var s;return null!==(s=e.nextPage)&&void 0!==s?s:void 0},enabled:Na,refetchInterval:"all"===F&&15e3,refetchIntervalInBackground:!1});(0,r.useEffect)((()=>{Na&&wa&&!Fa&&_a()}),[Na,wa,Fa,_a]);const Ma=(0,r.useRef)([]),Ca=(0,r.useRef)({}),Aa=(0,r.useMemo)((()=>{const e=((null===ya||void 0===ya?void 0:ya.pages)||[]).flatMap((e=>e.rows||[])),s=new Set,a=[];for(const t of e){const e=null!=t.orderid?String(t.orderid):null;e&&s.has(e)||(e&&s.add(e),a.push(t))}return ka&&wa&&Ma.current.length>0?Ma.current:(wa||(Ma.current=a),a)}),[ya,ka,wa]),za=(0,r.useMemo)((()=>{const e=new Map;return Aa.forEach((s=>{const a=String(s.userid||s.rider_id||"");a&&"unassigned"!==a&&"0"!==a&&(e.has(a)||e.set(a,{id:a,riderName:s.ridername||s.rider_name||s.username||"Rider ".concat(a)}))})),Array.from(e.values()).sort(((e,s)=>String(e.riderName).localeCompare(String(s.riderName))))}),[Aa]),Pa=(0,r.useMemo)((()=>{const e={all:Aa.length};return us.forEach((s=>{e[s.id]=0})),Aa.forEach((s=>{const a=ve(s,is,us);a&&(e[a]=(e[a]||0)+1)})),e}),[Aa,is,us]),Ea=(0,r.useMemo)((()=>"all"===ja?Aa:Aa.filter((e=>ve(e,is,us)===ja))),[Aa,ja,is,us]),Da=(0,r.useMemo)((()=>{let e=0;const s={};return Aa.forEach((e=>{const a=e.assigntime?f()(e.assigntime).format("YYYY-MM-DD"):e.deliverydate?f()(e.deliverydate).format("YYYY-MM-DD"):"unknown";if(Ts&&a!==Ts)return;const t=ve(e,is,us);if(!t||"all"===t)return;const i=String(e.userid||e.rider_id||"unassigned");if("unassigned"===i||"0"===i)return;s[i]||(s[i]={revenue:0,kms:0,batches:new Set});const r=parseFloat(e.kms||e.actualkms||0);s[i].kms+=r,s[i].revenue+=r<=8?30:30+6*(r-8),s[i].batches.add(t)})),Object.values(s).forEach((s=>{const a=2.5*s.kms+Math.min(s.batches.size,3)*(500/3);e+=s.revenue-a})),e}),[Aa,is,us,Ts]),La=(0,r.useMemo)((()=>{if(!Na)return null;if(!Ea.length)return{code:200,zone_summary:[],zones:[]};const e=e=>String(e||"").trim(),s={};Ea.forEach((a=>{const t=e(a.deliverysuburb)||e(a.locationsuburb)||e(a.zone_name)||"Unzoned",i=t.toLowerCase(),r=String(a.userid||a.rider_id||"unassigned"),n=a.ridername||a.rider_name||a.username||("unassigned"===r?"Unassigned":"Rider ".concat(r));s[i]||(s[i]={zone_name:t,riders:{}}),s[i].riders[r]||(s[i].riders[r]={rider_id:r,rider_name:n,orders:[]}),s[i].riders[r].orders.push(a)}));const a=Object.values(s).map((e=>{const s=Object.values(e.riders).map((e=>{const s=[...e.orders].sort(((e,s)=>f()(e.deliverydate||e.assigntime||0).valueOf()-f()(s.deliverydate||s.assigntime||0).valueOf()));return(0,i.A)((0,i.A)({},e),{},{orders:s.map(((e,s)=>(0,i.A)((0,i.A)({},e),{},{trip_number:e.trip_number||1,step:e.step||s+1})))})}));return{zone_name:e.zone_name,riders:s}}));return{code:200,zone_summary:a.map((e=>{const s=e.riders.flatMap((e=>e.orders)),a=s.filter((e=>e.userid||e.rider_id)).length;return{zone_name:e.zone_name,total_orders:s.length,assigned_orders:a,unassigned_orders_count:s.length-a,active_riders_count:e.riders.filter((e=>"unassigned"!==e.rider_id)).length,total_delivery_kms:s.reduce(((e,s)=>e+parseFloat(s.actualkms||s.kms||0)),0),total_profit:s.reduce(((e,s)=>e+parseFloat(s.profit||0)),0)}})),zones:a}}),[Na,Ea]),Ra=(0,r.useMemo)((()=>{const e=s||La||{zones:[],zone_summary:[]},a=e.zones||[],t={};(e.zone_summary||[]).forEach((e=>{t[e.zone_name]=e}));const i=(e,s)=>{const a={};return e.forEach((e=>{const t=s(e);t&&(a[t]=(a[t]||0)+1)})),Object.entries(a).map((e=>{let[s,a]=e;return{name:s,count:a}})).sort(((e,s)=>s.count-e.count))};return a.map((e=>{var s,a,r,n;const l=t[e.zone_name]||{},c=(e.riders||[]).flatMap((e=>e.orders||[])),d=(e.riders||[]).filter((e=>e.rider_id&&"unassigned"!==e.rider_id)).length,o=i(c,(e=>e.deliverysuburb||e.locationsuburb)),u=i(c,(e=>e.pickupcustomer||e.kitchen_key)),m={};return c.forEach((e=>{const s=String(e.orderstatus||"unknown").toLowerCase();m[s]=(m[s]||0)+1})),{id:e.zone_name,name:e.zone_name,riders:e.riders||[],orders:c,totalOrders:null!==(s=l.total_orders)&&void 0!==s?s:c.length,activeRidersCount:null!==(a=l.active_riders_count)&&void 0!==a?a:d,totalKms:null!==(r=l.total_delivery_kms)&&void 0!==r?r:c.reduce(((e,s)=>e+parseFloat(s.actualkms||s.kms||0)),0),totalProfit:null!==(n=l.total_profit)&&void 0!==n?n:c.reduce(((e,s)=>e+parseFloat(s.profit||0)),0),suburbs:o,kitchens:u,statusCounts:m}}))}),[s,La]),{riders:qa,kitchens:Ia,allOrders:Oa,stats:Ta}=(0,r.useMemo)((()=>{const e=s||La||{zones:[],zone_summary:[]},a=[];(e.zones||[]).forEach((e=>{(e.riders||[]).forEach((s=>{s.orders.forEach((t=>{a.push((0,i.A)((0,i.A)({},t),{},{zone_name:e.zone_name,rider_name:s.rider_name,rider_id:s.rider_id}))}))}))}));const t={};(e.zones||[]).forEach((e=>{(e.riders||[]).forEach((e=>{const s=e.rider_id;s&&"unassigned"!==s&&(t[s]||(t[s]={id:s,riderName:e.rider_name||e.username||s,orders:[],color:_e[Object.keys(t).length%_e.length]}))}))})),a.forEach((e=>{const s=e.rider_id||e.userid||"unknown";"unassigned"!==s&&(t[s]||(t[s]={id:s,riderName:e.rider_name||e.username||e.rider||s,orders:[],color:_e[Object.keys(t).length%_e.length]}),t[s].orders.some((s=>s.orderid===e.orderid))||t[s].orders.push(e))}));const r={};a.forEach((e=>{const s=e.pickupcustomer||e.kitchen_key||"Unknown",a=s.toLowerCase().trim();r[a]?!Number.isFinite(r[a].lat)&&re(e)&&(r[a].lat=ee(te(e)),r[a].lon=ee(ie(e))):r[a]={id:a,kitchenName:s,lat:ee(te(e)),lon:ee(ie(e)),orders:[],riders:new Set},r[a].orders.push(e),e.rider_id&&r[a].riders.add(e.rider_id)}));const n=a.reduce(((e,s)=>e+parseFloat(s.actualkms||s.kms||0)),0),l=a.reduce(((e,s)=>e+parseFloat(s.profit||0)),0);return{riders:Object.values(t).map((e=>(0,i.A)((0,i.A)({},e),{},{orders:[...e.orders].sort(((e,s)=>{const a=e.trip_number||1,t=s.trip_number||1;return a!==t?a-t:(e.step||0)-(s.step||0)}))}))).sort(((e,s)=>s.orders.length-e.orders.length)),kitchens:Object.values(r).sort(((e,s)=>s.orders.length-e.orders.length)),allOrders:a,stats:{totalOrders:a.length,totalKms:n,totalProfit:l,totalRiders:Object.keys(t).length}}}),[s,La]),Ya=Je?n&&qa.find((e=>e.id===n))||null:oe,Ha="all"===F,Va=(0,r.useMemo)((()=>Ha?Oa.filter((e=>xa.has(String(e.rider_id)))):Oa),[Ha,Oa,xa]),Ka=(0,r.useMemo)((()=>new Set((Ha?Va:[]).filter(V.L0).map((e=>String(e.rider_id))))),[Ha,Va]),Ba=(0,r.useMemo)((()=>Ha?qa.filter((e=>Ka.has(String(e.id)))):qa),[Ha,qa,Ka]),Ua=(0,r.useMemo)((()=>{if(!Ha)return Ca.current={},[];const e=new Set(["delivered","cancelled","skipped","complete","completed"]);Ea.forEach((s=>{const a=String(s.orderid),t=String(s.orderstatus||"").toLowerCase();"active"===t?Ca.current[a]=s:e.has(t)&&delete Ca.current[a]}));const s=Object.values(Ca.current);if(!s.length)return[];const a=Object.fromEntries(qa.map((e=>[e.id,e]))),t={};return s.forEach((e=>{const s=String(e.rider_id||e.userid||"");if(s&&"unassigned"!==s&&"0"!==s){if(!t[s]){const i=a[s];t[s]={id:s,riderName:(null===i||void 0===i?void 0:i.riderName)||e.rider_name||e.ridername||e.username||"Rider ".concat(s),orders:[],color:(null===i||void 0===i?void 0:i.color)||we(s)}}t[s].orders.some((s=>String(s.orderid)===String(e.orderid)))||t[s].orders.push(e)}})),Object.values(t)}),[Ha,Ea,qa]),Ga=(0,r.useMemo)((()=>Ha?va.filter((e=>("active"===e.status||"pending"===e.status)&&Ka.has(String(e.id)))).map((e=>[e.lat,e.lon])):[]),[Ha,va,Ka]);(0,r.useEffect)((()=>{Ca.current={}}),[Ts,Qe,ja]);const Ja=(0,r.useMemo)((()=>Ha?Ua.reduce(((e,s)=>e+s.orders.length),0):0),[Ha,Ua]),Wa=(0,r.useCallback)((e=>{h&&h(e?e.id:null),Je||he(e),Ie(null)}),[Je,h]),$a=(0,r.useRef)(null);(0,r.useEffect)((()=>{const e=Ya?Ya.id:null;e!==$a.current&&(Ya?$.A.info("Focused rider changed to: ".concat(Ya.riderName," (").concat(Ya.orders.length," orders)")):$.A.info("Focused rider reset to: None"),$a.current=e)}),[Ya]),(0,r.useEffect)((()=>{qe?$.A.info("Focused order updated: ID ".concat(qe.orderid)):$.A.debug("Focused order selection cleared")}),[qe]);const Za=(0,r.useRef)(0);(0,r.useEffect)((()=>{Oa&&Oa.length!==Za.current&&($.A.info("Orders database updated: ".concat(Oa.length," orders actively tracked")),Za.current=Oa.length)}),[Oa]);const Xa=(0,r.useRef)(0);(0,r.useEffect)((()=>{va&&va.length!==Xa.current&&($.A.info("Live riders list updated: ".concat(va.length," active riders mapped")),Xa.current=va.length)}),[va]);const Qa=(0,r.useMemo)((()=>{if(Ya)return{orders:Ya.orders.length,riders:1,km:Ya.orders.reduce(((e,s)=>e+parseFloat(s.actualkms||s.kms||0)),0),profit:Ya.orders.reduce(((e,s)=>e+parseFloat(s.profit||0)),0),label:"Focused Rider"};if(Ee)return{orders:Ee.orders.length,riders:Ee.riders.size,km:Ee.orders.reduce(((e,s)=>e+parseFloat(s.actualkms||s.kms||0)),0),profit:Ee.orders.reduce(((e,s)=>e+parseFloat(s.profit||0)),0),label:"Focused Kitchen"};if(Ha){const e=Ua.flatMap((e=>e.orders));return{orders:e.length,riders:Ua.length,km:e.reduce(((e,s)=>e+parseFloat(s.actualkms||s.kms||0)),0),profit:e.reduce(((e,s)=>e+parseFloat(s.profit||0)),0),label:"Active Fleet"}}return{orders:Ta.totalOrders,riders:Ta.totalRiders,km:Ta.totalKms,profit:Ta.totalProfit,label:"Total Fleet"}}),[Ya,Ee,Ha,Ua,Ta]),et=(0,r.useMemo)((()=>{if(!Ya)return[];const e=new Set;return Ya.orders.forEach((s=>{null!=s.deliveryid&&""!==s.deliveryid&&0!==s.deliveryid&&e.add(String(s.deliveryid))})),Array.from(e)}),[Ya]),st=(0,y.E)({queries:et.map((e=>({queryKey:["deliveryLogs",e],queryFn:async()=>{var s,a;const i=await k.A.get("".concat("https://jupiter.nearle.app/live/api/v3","/deliveries/getdeliverylogs/?deliveryid=").concat(e));return function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Array.isArray(e)||0===e.length)return[];const a=e.filter((e=>Number.isFinite(e.lat)&&Number.isFinite(e.lng)&&(Math.abs(e.lat)>.1||Math.abs(e.lng)>.1)));if(0===a.length)return[];if(1===a.length)return[{lat:a[0].lat,lng:a[0].lng,logdate:a[0].logdate,_ts:a[0]._ts}];const t=null!=s.processNoise?s.processNoise:1e-10,i=null!=s.measurementNoise?s.measurementNoise:2e-9,r=null!=s.outlierGate?s.outlierGate:9,n=null!=s.maxSpeedKmh?s.maxSpeedKmh:120,l=e=>e._ts||(e.logdate?new Date(e.logdate).getTime():0);let c=0;for(;cn||(d.push(e),o=s)}if(d.length<2)return d.map((e=>({lat:e.lat,lng:e.lng,logdate:e.logdate,_ts:e._ts})));const u=e=>{const s=d.length,a=new Array(s),n=new Array(s),c=new Array(s),o=new Array(s),u=new Array(s),m=l(d[0]),p=l(d[1]),h=Math.max(.1,(p-m)/1e3),v=(d[1][e]-d[0][e])/h;a[0]=[d[0][e],v],n[0]=[i,0,0,1],c[0]=a[0].slice(),o[0]=n[0].slice(),u[0]=0;let x=m;for(let f=1;fr){a[f]=[v,j],n[f]=[_,w,F,M];continue}const z=_/A,P=F/A,E=v+z*C,D=j+P*C;a[f]=[E,D],n[f]=[(1-z)*_,(1-z)*w,F-P*_,M-P*w]}const j=new Array(s);j[s-1]=a[s-1].slice();for(let t=s-2;t>=0;t--){const e=u[t+1],[s,i,r,l]=n[t],d=s+e*i,m=i,p=r+e*l,h=l,[v,x,f,g]=o[t+1],N=v*g-x*f;if(!Number.isFinite(N)||Math.abs(N)<1e-30){j[t]=a[t].slice();continue}const b=g/N,y=-x/N,k=-f/N,S=v/N,_=d*b+m*k,w=d*y+m*S,F=p*b+h*k,M=p*y+h*S,C=j[t+1][0]-c[t+1][0],A=j[t+1][1]-c[t+1][1];j[t]=[a[t][0]+_*C+w*A,a[t][1]+F*C+M*A]}return j.map((e=>e[0]))},m=u("lat"),p=u("lng");return d.map(((e,s)=>({lat:m[s],lng:p[s],logdate:e.logdate,_ts:e._ts})))}(([null===i||void 0===i||null===(s=i.data)||void 0===s?void 0:s.details,null===i||void 0===i||null===(a=i.data)||void 0===a?void 0:a.data,null===i||void 0===i?void 0:i.data,i].find((e=>Array.isArray(e)))||[]).map((e=>{var s,a,t;const i=null!==e&&void 0!==e&&e.logdate?f()(e.logdate):null;return{lat:parseFloat(null!==(s=null===e||void 0===e?void 0:e.latitude)&&void 0!==s?s:null===e||void 0===e?void 0:e.lat),lng:parseFloat(null!==(a=null!==(t=null===e||void 0===e?void 0:e.longitude)&&void 0!==t?t:null===e||void 0===e?void 0:e.lng)&&void 0!==a?a:null===e||void 0===e?void 0:e.lon),logdate:null===e||void 0===e?void 0:e.logdate,_ts:i&&i.isValid()?i.valueOf():Number.MAX_SAFE_INTEGER}})).filter((e=>Number.isFinite(e.lat)&&Number.isFinite(e.lng))).sort(((e,s)=>e._ts-s._ts))).map((e=>{let{_ts:s}=e;return(0,t.A)(e,Z)}))},enabled:Gs&&null!=Ya,staleTime:3e5,refetchOnWindowFocus:!1,retry:1})))}),at=(0,r.useMemo)((()=>{if(!Ya)return[];const e=e=>{const s=e.deliverytime||e.expecteddeliverytime;if(!s)return Number.MAX_SAFE_INTEGER;const a=f()(s);return a.isValid()?a.valueOf():Number.MAX_SAFE_INTEGER};return Ya.orders.filter((e=>null!=e.deliveryid&&""!==e.deliveryid&&0!==e.deliveryid)).sort(((s,a)=>{const t=e(s)-e(a);return 0!==t?t:(s.step||0)-(a.step||0)})).map(((e,s)=>{const a=et.indexOf(String(e.deliveryid)),t=a>=0?st[a]:null;return{sequenceStep:s+1,orderid:e.orderid,deliveryid:e.deliveryid,deliverycustomer:e.deliverycustomer,pickupcustomer:e.pickupcustomer,step:e.step,tripNumber:e.trip_number||1,deliverytime:e.deliverytime||e.expecteddeliverytime,kms:parseFloat(e.actualkms||e.kms||0)||0,profit:parseFloat(e.profit||0)||0,orderstatus:e.orderstatus,isLoading:(null===t||void 0===t?void 0:t.isLoading)||(null===t||void 0===t?void 0:t.isFetching),isError:null===t||void 0===t?void 0:t.isError,coords:(null===t||void 0===t?void 0:t.data)||[]}}))}),[Ya,et,st]),tt=(0,r.useMemo)((()=>Ya?at.map((e=>{const s=Ya.orders.find((s=>String(s.deliveryid)===String(e.deliveryid))),a=parseFloat((null===s||void 0===s?void 0:s.kms)||0)||0,t=As[e.deliveryid];let i=0;Array.isArray(t)&&t.length>=2?i=ge(t):null!=(null===s||void 0===s?void 0:s.actualkms)&&""!==s.actualkms?i=parseFloat(s.actualkms)||0:e.coords.length>=2&&(i=ge(e.coords.map((e=>[e.lat,e.lng]))));const r=i-a,n=a>0?r/a*100:null,l=null!==s&&void 0!==s&&s.expecteddeliverytime?f()(s.expecteddeliverytime):null,c=null!==s&&void 0!==s&&s.deliverytime?f()(s.deliverytime):null,d=null!==l&&void 0!==l&&l.isValid()&&null!==c&&void 0!==c&&c.isValid()?c.diff(l,"minute"):null,o=a>0&&i>1.25*a||null!=d&&d>15;return{sequenceStep:e.sequenceStep,deliveryid:e.deliveryid,orderid:e.orderid,order:s,plannedKm:a,actualKm:i,kmDelta:r,kmDeltaPct:n,expectedTs:null!==l&&void 0!==l&&l.isValid()?l:null,actualTs:null!==c&&void 0!==c&&c.isValid()?c:null,timeDeltaMin:d,anomaly:o,orderstatus:e.orderstatus,deliverycustomer:e.deliverycustomer,pickupcustomer:null===s||void 0===s?void 0:s.pickupcustomer,isLoading:e.isLoading,coordsCount:e.coords.length}})):[]),[at,Ya,As]),it=(0,r.useMemo)((()=>{if(0===tt.length)return{plannedKm:0,actualKm:0,kmDeltaPct:null,anomalies:0,late:0,onTime:0};const e=tt.filter((e=>!e.isLoading&&e.coordsCount>0)),s=e.reduce(((e,s)=>e+s.plannedKm),0),a=e.reduce(((e,s)=>e+s.actualKm),0);return{plannedKm:s,actualKm:a,kmDeltaPct:s>0?(a-s)/s*100:null,anomalies:e.filter((e=>e.anomaly)).length,late:e.filter((e=>null!=e.timeDeltaMin&&e.timeDeltaMin>5)).length,onTime:e.filter((e=>null!=e.timeDeltaMin&&e.timeDeltaMin<=5)).length}}),[tt]),rt=(0,r.useMemo)((()=>[...tt].sort(((e,s)=>{var a,t;return((null===(a=e.order)||void 0===a?void 0:a.step)||e.sequenceStep)-((null===(t=s.order)||void 0===t?void 0:t.step)||s.sequenceStep)}))),[tt]),nt=(0,r.useMemo)((()=>[...tt].sort(((e,s)=>e.sequenceStep-s.sequenceStep))),[tt]),lt=(0,r.useMemo)((()=>{if(!Gs||!oa||!Ya)return null;const e=at.find((e=>e.sequenceStep===oa));if(!e)return null;const s=Ya.orders.find((s=>String(s.deliveryid)===String(e.deliveryid)));return s?{orders:[s],id:"cmp-step-".concat(oa,"-").concat(s.orderid)}:null}),[Gs,oa,Ya,at]);(0,r.useEffect)((()=>{ua(null),aa(new Set),$s("combined")}),[Gs,null===Ya||void 0===Ya?void 0:Ya.id]),(0,r.useEffect)((()=>{!Ya&&Gs&&Js(!1)}),[Ya,Gs]),(0,r.useEffect)((()=>{ta.current&&Ya&&(ta.current=!1,Js(!0))}),[Ya]),(0,r.useEffect)((()=>{Gs&&!la.current?(na.current=ia,ra(!0),da(!1)):!Gs&&la.current&&ra(na.current),la.current=Gs}),[Gs]);const ct=(0,r.useCallback)((async(e,s,a)=>{if(a.length<2)return;const t=Se(e,s,a);if(void 0!==Cs.current[t])return;Cs.current[t]=null,Ms((e=>(0,i.A)((0,i.A)({},e),{},{[t]:null})));const r=a.map((e=>"".concat(e[1],",").concat(e[0]))).join(";"),n="https://router.project-osrm.org/route/v1/driving/".concat(r,"?overview=full&geometries=geojson");try{const e=await fetch(n),s=await e.json();if(s.routes&&s.routes[0]){const e=s.routes[0].geometry.coordinates.map((e=>[e[1],e[0]]));Cs.current[t]=e,Ms((s=>(0,i.A)((0,i.A)({},s),{},{[t]:e})))}else Cs.current[t]=!1,Ms((e=>(0,i.A)((0,i.A)({},e),{},{[t]:!1})))}catch(l){console.error("OSRM Fetch error:",l),Cs.current[t]=!1,Ms((e=>(0,i.A)((0,i.A)({},e),{},{[t]:!1})))}}),[]);(0,r.useEffect)((()=>{Cs.current={},Ms({}),Ps.current={},zs({})}),[Ts,ja]);const dt=(0,r.useCallback)((async(e,s)=>{if(void 0!==Ps.current[e])return;if(!Array.isArray(s)||s.length<2)return;Ps.current[e]=null,zs((s=>(0,i.A)((0,i.A)({},s),{},{[e]:null})));const a=s=>{Ps.current[e]=s,zs((a=>(0,i.A)((0,i.A)({},a),{},{[e]:s})))},t=()=>{Ps.current[e]=!1,zs((s=>(0,i.A)((0,i.A)({},s),{},{[e]:!1})))},r=(e,s)=>{if(e.length<=s)return e;const a=Math.ceil(e.length/s),t=e.filter(((e,s)=>s%a===0)),i=e[e.length-1];return t[t.length-1]!==i&&t.push(i),t};try{const e=r(s,90).map((e=>"".concat(e[1],",").concat(e[0]))).join(";"),t="https://router.project-osrm.org/match/v1/driving/".concat(e,"?overview=full&geometries=geojson&gaps=ignore&tidy=true"),i=await fetch(t),n=await i.json();if(n.matchings&&n.matchings.length>0){const e=n.matchings.flatMap((e=>{var s;return((null===(s=e.geometry)||void 0===s?void 0:s.coordinates)||[]).map((e=>[e[1],e[0]]))}));if(e.length>=2)return void a(e)}}catch(n){console.warn("OSRM Match error, trying route fallback:",n)}try{const e=r(s,25).map((e=>"".concat(e[1],",").concat(e[0]))).join(";"),i="https://router.project-osrm.org/route/v1/driving/".concat(e,"?overview=full&geometries=geojson"),n=await fetch(i),l=await n.json();if(l.routes&&l.routes[0]){const e=l.routes[0].geometry.coordinates.map((e=>[e[1],e[0]]));if(e.length>=2)return void a(e)}t()}catch(n){console.error("OSRM Route fallback error:",n),t()}}),[]);(0,r.useEffect)((()=>{Gs&&Ya&&at.forEach((e=>{if(!e.deliveryid||e.coords.length<2)return;const s=e.coords.map((e=>[e.lat,e.lng]));dt(e.deliveryid,s)}))}),[at,Gs,Ya,dt]),(0,r.useEffect)((()=>{Os.current=Es}),[Es]),(0,r.useEffect)((()=>{if(a)return;const e=()=>{const e=new Date;$e([e.getHours(),e.getMinutes(),e.getSeconds()].map((e=>String(e).padStart(2,"0"))).join(":"))},s=setInterval(e,1e3);return e(),()=>clearInterval(s)}),[a]),(0,r.useEffect)((()=>{J(new Set(qa.map((e=>e.id))))}),[qa]),(0,r.useEffect)((()=>{qa.forEach((e=>{if(!G.has(e.id))return;if(Ya&&Ya.id!==e.id)return;const s={};if(e.orders.forEach((e=>{const a=e.trip_number||1;s[a]||(s[a]=[]),s[a].push(e)})),Object.entries(s).forEach((s=>{let[a,t]=s;const i=[...t].sort(((e,s)=>(e.step||0)-(s.step||0))),r=ke(i);r.length>=2&&ct(e.id,a,r)})),Ha){const s=(0,V.d1)(e.orders);if(s){const a=va.find((s=>String(s.id)===String(e.id))),t=a&&Number.isFinite(a.lat)&&Number.isFinite(a.lon)?[a.lat,a.lon]:re(s)?[ee(te(s)),ee(ie(s))]:null,i=ee(s.droplat||s.deliverylat),r=ee(s.droplon||s.deliverylong);t&&Number.isFinite(i)&&Number.isFinite(r)&&ct(e.id,"active-".concat(s.orderid),[t,[i,r]])}}}))}),[qa,G,Ya,Ha,va,ct]);const ot=(0,r.useRef)(null);(0,r.useEffect)((()=>{if(!Na)return;const e=()=>{const e=f()();return e.hour()+e.minute()/60};null===ot.current&&(ot.current=e());const s=setInterval((()=>{const s=e(),a=pe(ot.current,us),t=pe(s,us);ot.current=s,t&&t!==a&&fa((e=>e===a?t:e))}),3e4);return()=>clearInterval(s)}),[Na,us]),(0,r.useEffect)((()=>{Ie(null)}),[null===Ee||void 0===Ee?void 0:Ee.id]),(0,r.useEffect)((()=>{const e=ga.current;e&&"function"===typeof e.scrollIntoView&&e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}),[ja]);const ut=function(e){let s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return v().divIcon({className:"",iconSize:s?[56,56]:[46,46],iconAnchor:s?[28,28]:[23,23],popupAnchor:[0,s?-30:-24],html:'
').concat((e||"K").charAt(0).toUpperCase(),"
")})},mt=e=>{var s;return(null===(s=qa.find((s=>String(s.id)===String(e))))||void 0===s?void 0:s.color)||"#475569"},pt=(e,s)=>{if(!e||!s||!ae(s))return null;const a=va.find((s=>String(s.id)===String(e)));if(!a)return null;const t=ee(s.droplat||s.deliverylat),i=ee(s.droplon||s.deliverylong);if(!Number.isFinite(t)||!Number.isFinite(i))return null;const r=fe([a.lat,a.lon],[t,i]);return Math.round(1e3*r)},ht=e=>null===e||void 0===e?"":e>=1e3?"".concat((e/1e3).toFixed(1)," km"):"".concat(e," m");return(0,_.jsxs)("div",{className:"dispatch-container".concat(a?" embedded":"").concat(Gs?" compare-open":""),children:[!a&&(0,_.jsxs)("div",{id:"hdr",children:[(0,_.jsxs)("div",{className:"logo",children:[(0,_.jsx)("div",{className:"logo-badge",children:"D"}),(0,_.jsx)("div",{className:"logo-name",children:"Dispatch"}),Ze&&Ze.length>0&&(0,_.jsxs)("div",{className:"logo-city-wrap",ref:ts,children:[(0,_.jsxs)("button",{type:"button",className:"logo-city ".concat(ss?"open":""),onClick:()=>as((e=>!e)),"aria-haspopup":"listbox","aria-expanded":ss,title:"Switch hub",children:[(0,_.jsx)(S.JFD,{}),(0,_.jsx)("span",{className:"logo-city-text",children:ws||"All locations"}),(0,_.jsx)(S.j1Q,{className:"logo-city-caret"})]}),ss&&(0,_.jsx)("div",{className:"logo-city-menu",role:"listbox",children:Ze.map((e=>{const s=String(e.applocationid)===String(Qe);return(0,_.jsxs)("button",{type:"button",role:"option","aria-selected":s,className:"logo-city-option ".concat(s?"active":""),onClick:()=>(e=>{if($.A.info("Switching hub/location ID:",e),es(Number(e)),as(!1),"undefined"!==typeof window)try{localStorage.setItem("applocationid",String(e))}catch(s){}Wa(null),De(null),Re(null)})(e.applocationid),children:[(0,_.jsx)(S.JFD,{className:"logo-city-option-icon"}),(0,_.jsx)("span",{children:e.locationname}),s&&(0,_.jsx)("span",{className:"logo-city-option-check",children:"\u2713"})]},e.applocationid)}))})]}),(0,_.jsxs)("div",{id:"dispatch-top-tabs",className:"dtt-inline",children:[(0,_.jsxs)("button",{type:"button",className:"dtt-tab ".concat("live"===C?"active":""),onClick:()=>A("live"),children:[(0,_.jsx)("span",{className:"dtt-icon",children:(0,_.jsx)(S.Cd7,{})}),"Live"]}),(0,_.jsxs)("button",{type:"button",className:"dtt-tab ".concat("analysis"===C?"active":""),onClick:()=>A("analysis"),children:[(0,_.jsx)("span",{className:"dtt-icon",children:(0,_.jsx)(S.DX0,{})}),"Analysis"]})]})]}),(0,_.jsxs)("div",{className:"hdr-stats",children:[(()=>{const e=Qa.profit<0,s=Math.abs(Qa.profit);return(0,_.jsxs)("span",{className:"strat-stat ".concat(e?"strat-stat-loss":"strat-stat-profit"),title:"".concat(e?"Loss":"Revenue"," (").concat(Qa.label,")"),children:[(0,_.jsx)("span",{className:"strat-stat-icon",children:e?(0,_.jsx)(S.Rod,{}):(0,_.jsx)(S.imn,{})}),(0,_.jsx)("span",{className:"strat-stat-label",children:e?"Loss":"Revenue"}),(0,_.jsxs)("span",{className:"strat-stat-value",children:[e?"-":"","\u20b9",s.toFixed(0)]})]})})(),Na&&(0,_.jsxs)(_.Fragment,{children:[ka&&(0,_.jsxs)("span",{className:"live-status",children:[(0,_.jsx)("span",{className:"live-dot"})," Loading ",Aa.length?"\xb7 ".concat(Aa.length," loaded"):""]}),!ka&&!Sa&&(0,_.jsxs)("span",{className:"live-status live-status-ready",children:[(0,_.jsx)("span",{className:"live-dot ready"})," ",Ea.length," orders",(0,_.jsxs)("span",{className:"live-status-sub",children:[" / ",Aa.length," total"]})]}),Sa&&(0,_.jsxs)("span",{className:"live-status live-status-error",children:[(0,_.jsx)("span",{className:"live-dot error"})," Failed to load"]}),(()=>{const e=f()().startOf("day"),s=e.format("YYYY-MM-DD"),a=f()(Ts),t=Ts===s,i=a.isAfter(e,"day"),r=s=>{if(!s)return;const a=s.format("YYYY-MM-DD");a!==Ts?s.isAfter(e,"day")||(Ys(a),Wa(null),De(null),Re(null),Vs(!1)):Vs(!1)},n=Ks.startOf("month"),l=n.subtract(n.day(),"day"),c=Array.from({length:42},((e,s)=>l.add(s,"day"))),d=!Ks.add(1,"month").startOf("month").isAfter(e,"month");return(0,_.jsxs)("div",{className:"date-chip".concat(t?" is-today":"").concat(Hs?" is-open":""),ref:Us,children:[(0,_.jsx)("button",{type:"button",className:"date-chip-nav",onClick:()=>r(a.subtract(1,"day")),"aria-label":"Previous day",title:"Previous day",children:(0,_.jsx)(S.E_E,{})}),(0,_.jsxs)("button",{type:"button",className:"date-chip-main",onClick:()=>Vs((e=>!e)),"aria-haspopup":"dialog","aria-expanded":Hs,children:[(0,_.jsx)("span",{className:"date-chip-icon","aria-hidden":"true",children:(0,_.jsx)(S.dDC,{})}),(0,_.jsxs)("span",{className:"date-chip-text",children:[(0,_.jsxs)("span",{className:"date-chip-label",children:["Date",t&&(0,_.jsx)("span",{className:"date-chip-today-pill",children:"Today"})]}),(0,_.jsx)("span",{className:"date-chip-value",children:a.isValid()?a.format("ddd, MMM D, YYYY"):"\u2014"})]}),(0,_.jsx)("span",{className:"date-chip-chevron".concat(Hs?" is-open":""),"aria-hidden":"true",children:(0,_.jsx)(S.j1Q,{})})]}),(0,_.jsx)("button",{type:"button",className:"date-chip-nav",onClick:()=>{t||i||r(a.add(1,"day"))},disabled:t||i,"aria-label":"Next day",title:t?"You're viewing today":"Next day",children:(0,_.jsx)(S.xVu,{})}),Hs&&(0,_.jsxs)("div",{className:"date-cal-popover",role:"dialog","aria-label":"Pick a date",children:[(0,_.jsxs)("div",{className:"date-cal-header",children:[(0,_.jsx)("button",{type:"button",className:"date-cal-nav",onClick:()=>Bs((e=>e.subtract(1,"month"))),"aria-label":"Previous month",children:(0,_.jsx)(S.E_E,{})}),(0,_.jsx)("div",{className:"date-cal-title",children:Ks.format("MMMM YYYY")}),(0,_.jsx)("button",{type:"button",className:"date-cal-nav",onClick:()=>{const s=Ks.add(1,"month");s.startOf("month").isAfter(e,"month")||Bs(s)},disabled:!d,"aria-label":"Next month",children:(0,_.jsx)(S.xVu,{})})]}),(0,_.jsx)("div",{className:"date-cal-weekdays",children:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map((e=>(0,_.jsx)("div",{className:"date-cal-weekday",children:e},e)))}),(0,_.jsx)("div",{className:"date-cal-grid",children:c.map((a=>{const t=a.month()===Ks.month(),i=a.format("YYYY-MM-DD")===Ts,n=a.format("YYYY-MM-DD")===s,l=a.isAfter(e,"day"),c=["date-cal-day",!t&&"is-other-month",i&&"is-selected",n&&"is-today",l&&"is-disabled"].filter(Boolean).join(" ");return(0,_.jsx)("button",{type:"button",className:c,disabled:l,onClick:()=>r(a),"aria-current":n?"date":void 0,"aria-pressed":i,children:a.date()},a.format("YYYY-MM-DD"))}))}),(0,_.jsxs)("div",{className:"date-cal-presets",children:[(0,_.jsx)("button",{type:"button",className:"date-cal-preset",onClick:()=>r(e),children:"Today"}),(0,_.jsx)("button",{type:"button",className:"date-cal-preset",onClick:()=>r(e.subtract(1,"day")),children:"Yesterday"}),(0,_.jsx)("button",{type:"button",className:"date-cal-preset",onClick:()=>r(e.subtract(7,"day")),children:"\u22127 days"})]})]})]})})()]})]}),(0,_.jsx)("div",{id:"clock",children:We})]}),(a||"live"===C)&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{id:"strat-row",children:[(0,_.jsxs)("button",{className:"sbt ".concat("kitchens"===F?"active":""),onClick:()=>{$.A.info("View mode changed: By Location"),M("kitchens"),Wa(null),De(null),Re(null)},children:[(0,_.jsx)("span",{className:"sbt-icon",children:(0,_.jsx)(S.JFD,{})})," By Location"]}),(0,_.jsxs)("button",{className:"sbt ".concat("zones"===F?"active":""),onClick:()=>{$.A.info("View mode changed: By Zone"),M("zones"),Wa(null),De(null),Re(null)},children:[(0,_.jsx)("span",{className:"sbt-icon",children:(0,_.jsx)(S.Cd7,{})})," By Zone"]}),(0,_.jsxs)("button",{className:"sbt ".concat("riders"===F?"active":""),onClick:()=>{$.A.info("View mode changed: By Rider"),M("riders"),Wa(null),De(null),Re(null)},children:[(0,_.jsx)("span",{className:"sbt-icon",children:(0,_.jsx)(S.bsz,{})})," By Rider"]}),!a&&(0,_.jsxs)("button",{className:"sbt ".concat("all"===F?"active":""),onClick:()=>{$.A.info("View mode changed: All Active Routes"),M("all"),Wa(null),De(null),Re(null)},children:[(0,_.jsx)("span",{className:"sbt-icon",children:(0,_.jsx)(S.Zs6,{})}),"Active"]}),(0,_.jsxs)("button",{type:"button",className:"sbt sbt-profitability ".concat("profitability"===F?"active":""),onClick:()=>{$.A.info("View mode changed: Profitability"),M("profitability"),Wa(null),De(null),Re(null)},title:"View overall and rider profitability",children:[(0,_.jsx)("span",{className:"sbt-icon",children:(0,_.jsx)(S.H4F,{})})," Profitability"]}),(0,_.jsxs)("button",{type:"button",className:"sbt sbt-rider-info ".concat("rider-info"===F?"active":""),onClick:()=>{M("rider-info"),Wa(null),De(null),Re(null)},title:"Live GPS / battery / status snapshot for a rider",children:[(0,_.jsx)("span",{className:"sbt-icon",children:(0,_.jsx)(S.k4P,{})})," Rider Info"]})]}),Na&&"rider-info"!==F&&(0,_.jsxs)("div",{id:"batch-row",children:[(0,_.jsx)("span",{className:"batch-label",children:"Batch"}),(0,_.jsx)("div",{className:"batch-scroll",children:us.map((e=>{var s;const a=ja===e.id;return(0,_.jsxs)("button",{ref:a?ga:null,className:"batch-btn batch-slot ".concat(a?"active":""),onClick:()=>{fa(e.id),Wa(null),De(null),Re(null)},title:"".concat(e.label," (").concat(e.range,")"),children:[(0,_.jsx)("span",{className:"batch-btn-label",children:e.label}),(0,_.jsx)("span",{className:"batch-btn-count",children:null!==(s=Pa[e.id])&&void 0!==s?s:0})]},e.id)}))})]}),"profitability"===F?(0,_.jsx)(Y,{riders:qa,handleRiderFocus:Wa,focusedRider:Ya,totalDailyProfit:Da,selectedDate:Ts,batches:us}):"rider-info"===F?(0,_.jsxs)("div",{className:"rider-info-mode",children:[(0,_.jsxs)("div",{className:"ri-sidebar",children:[(0,_.jsxs)("div",{className:"ri-sb-head",children:[(0,_.jsx)("div",{className:"ri-sb-title",children:"Riders"}),(0,_.jsxs)("div",{className:"ri-sb-sub",children:[za.length," ",1===za.length?"rider":"riders"," today"]})]}),(0,_.jsxs)("div",{className:"ri-search",children:[(0,_.jsx)(S.gZ7,{className:"ri-search-icon"}),(0,_.jsx)("input",{type:"text",className:"ri-search-input",placeholder:"Search by name or ID",value:fs,onChange:e=>gs(e.target.value)})]}),(()=>{const e=fs.trim().toLowerCase(),s=za.filter((s=>!e||(String(s.riderName||"").toLowerCase().includes(e)||String(s.id).includes(e))));return 0===s.length?(0,_.jsx)("div",{className:"ri-empty",children:fs?'No riders match "'.concat(fs,'"'):"No riders have orders today"}):(0,_.jsx)("div",{className:"ri-rider-list",children:s.map((e=>{const s=String(xs)===String(e.id);return(0,_.jsxs)("button",{type:"button",className:"ri-rider-item ".concat(s?"active":""),onClick:()=>js(e.id),children:[(0,_.jsx)("span",{className:"ri-rider-dot",style:{background:we(e.id)}}),(0,_.jsxs)("span",{className:"ri-rider-info-block",children:[(0,_.jsx)("span",{className:"ri-rider-name",children:e.riderName}),(0,_.jsxs)("span",{className:"ri-rider-meta",children:["#",e.id]})]}),(0,_.jsx)("span",{className:"ri-rider-arrow",children:"\u2192"})]},e.id)}))})})()]}),(0,_.jsx)("div",{className:"ri-main",children:null==xs?(0,_.jsxs)("div",{className:"ri-placeholder",children:[(0,_.jsx)("div",{className:"ri-placeholder-icon",children:(0,_.jsx)(S.k4P,{})}),(0,_.jsx)("div",{className:"ri-placeholder-title",children:"Pick a rider"}),(0,_.jsx)("div",{className:"ri-placeholder-sub",children:"Select a rider from the list on the left to see their live GPS, battery, connection, and current order snapshot."})]}):(0,_.jsxs)(_.Fragment,{children:[bs&&!Ns&&(0,_.jsx)("div",{className:"ri-loading",children:"Loading rider snapshot\u2026"}),ys&&(0,_.jsxs)("div",{className:"ri-error",children:["Couldn't load this rider's log. ",(null===ks||void 0===ks?void 0:ks.message)||""]}),Ns&&(()=>{const e=Ns,s=parseFloat(e.latitude),a=parseFloat(e.longitude),t=Number.isFinite(s)&&Number.isFinite(a),i=parseInt(String(e.battery||"").replace("%",""),10),r=Number.isFinite(i)&&i<=20,n=parseFloat(e.speed),c=String(e.status||"").toLowerCase();return(0,_.jsxs)("div",{className:"ri-snapshot",children:[(0,_.jsxs)("div",{className:"ri-snap-head",children:[(0,_.jsx)("div",{className:"ri-snap-name",children:e.username||"Rider #".concat(e.userid)}),(0,_.jsxs)("div",{className:"ri-snap-meta",children:[(0,_.jsxs)("span",{children:["#",e.userid]}),e.status&&(0,_.jsx)("span",{className:"ri-status ri-status-".concat(c),children:e.status}),(0,_.jsxs)("span",{className:"ri-live ".concat(bs?"is-refetching":""),children:[(0,_.jsx)("span",{className:"ri-live-dot"}),bs?"Updating\u2026":"Live"]})]}),e.logdate&&(0,_.jsxs)("div",{className:"ri-snap-time",children:[(0,_.jsx)(S.VP9,{})," Last seen ",e.logdate]})]}),(0,_.jsxs)("div",{className:"ri-snap-grid",children:[(0,_.jsxs)("div",{className:"ri-stat ".concat(r?"ri-stat-warn":""),children:[(0,_.jsx)("div",{className:"ri-stat-icon",children:(0,_.jsx)(S.wZm,{})}),(0,_.jsxs)("div",{className:"ri-stat-body",children:[(0,_.jsx)("div",{className:"ri-stat-label",children:"Battery"}),(0,_.jsxs)("div",{className:"ri-stat-value",children:[e.battery||"\u2014",e.is_charging&&(0,_.jsx)("span",{className:"ri-stat-tag",children:"Charging"})]})]})]}),(0,_.jsxs)("div",{className:"ri-stat",children:[(0,_.jsx)("div",{className:"ri-stat-icon",children:(0,_.jsx)(S.Xh5,{})}),(0,_.jsxs)("div",{className:"ri-stat-body",children:[(0,_.jsx)("div",{className:"ri-stat-label",children:"Connection"}),(0,_.jsx)("div",{className:"ri-stat-value",children:e.connection||"\u2014"})]})]}),(0,_.jsxs)("div",{className:"ri-stat",children:[(0,_.jsx)("div",{className:"ri-stat-icon",children:(0,_.jsx)(S.HPi,{})}),(0,_.jsxs)("div",{className:"ri-stat-body",children:[(0,_.jsx)("div",{className:"ri-stat-label",children:"GPS Accuracy"}),(0,_.jsx)("div",{className:"ri-stat-value",children:e.accuracy?"".concat(e.accuracy," m"):"\u2014"})]})]}),(0,_.jsxs)("div",{className:"ri-stat",children:[(0,_.jsx)("div",{className:"ri-stat-icon",children:(0,_.jsx)(S.o8z,{})}),(0,_.jsxs)("div",{className:"ri-stat-body",children:[(0,_.jsx)("div",{className:"ri-stat-label",children:"Location Service"}),(0,_.jsx)("div",{className:"ri-stat-value",children:e.location_service||"\u2014"})]})]}),(0,_.jsxs)("div",{className:"ri-stat",children:[(0,_.jsx)("div",{className:"ri-stat-icon",children:(0,_.jsx)(S.BJM,{})}),(0,_.jsxs)("div",{className:"ri-stat-body",children:[(0,_.jsx)("div",{className:"ri-stat-label",children:"Speed"}),(0,_.jsx)("div",{className:"ri-stat-value",children:Number.isFinite(n)?"".concat(n.toFixed(2)," km/h"):"\u2014"})]})]}),(0,_.jsxs)("div",{className:"ri-stat",children:[(0,_.jsx)("div",{className:"ri-stat-icon",children:(0,_.jsx)(S.bqQ,{})}),(0,_.jsxs)("div",{className:"ri-stat-body",children:[(0,_.jsx)("div",{className:"ri-stat-label",children:"Heading"}),(0,_.jsx)("div",{className:"ri-stat-value",children:null!=e.heading?"".concat(e.heading,"\xb0"):"\u2014"})]})]}),(0,_.jsxs)("div",{className:"ri-stat",children:[(0,_.jsx)("div",{className:"ri-stat-icon",children:(0,_.jsx)(S.pSF,{})}),(0,_.jsxs)("div",{className:"ri-stat-body",children:[(0,_.jsx)("div",{className:"ri-stat-label",children:"App State"}),(0,_.jsx)("div",{className:"ri-stat-value",children:e.is_background?"Background":"Foreground"})]})]}),(0,_.jsxs)("div",{className:"ri-stat",children:[(0,_.jsx)("div",{className:"ri-stat-icon",children:(0,_.jsx)(S.gsJ,{})}),(0,_.jsxs)("div",{className:"ri-stat-body",children:[(0,_.jsx)("div",{className:"ri-stat-label",children:"Current Order"}),(0,_.jsx)("div",{className:"ri-stat-value",children:e.orderid||"\u2014"})]})]})]}),t&&(0,_.jsxs)("div",{className:"ri-map-section",children:[(0,_.jsxs)("div",{className:"ri-coords-label",children:[(0,_.jsx)(S.gwi,{})," ",s.toFixed(6),", ",a.toFixed(6)]}),(0,_.jsx)("div",{className:"ri-map",children:(0,_.jsxs)(d.W,{center:[s,a],zoom:13,scrollWheelZoom:!1,style:{height:"100%",width:"100%"},children:[(0,_.jsx)(o.e,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:"\xa9 OpenStreetMap contributors"}),(0,_.jsxs)(l.p,{position:[s,a],children:[(0,_.jsx)(u.m,{direction:"top",offset:[0,-10],permanent:!0,className:"ri-area-banner",children:(null===_s||void 0===_s?void 0:_s.area)||"Locating area\u2026"}),(0,_.jsxs)(m.z,{children:[(0,_.jsx)("div",{style:{fontWeight:700,marginBottom:2},children:e.username||"Rider #".concat(e.userid)}),(null===_s||void 0===_s?void 0:_s.area)&&(0,_.jsx)("div",{style:{fontSize:12,color:"#0f172a",marginBottom:4},children:_s.area}),(0,_.jsx)("div",{style:{fontSize:11,color:"#64748b"},children:e.logdate?"Last seen ".concat(e.logdate):"".concat(s.toFixed(6),", ").concat(a.toFixed(6))})]})]})]},"".concat(e.userid,"-").concat(s,"-").concat(a))})]})]})})()]})})]}):(0,_.jsxs)("div",{id:"body",className:"".concat(ia?"sidebar-collapsed":""," ").concat(Gs?"compare-mode":""," ").concat(Gs&&ca?"compare-data-collapsed":"").trim(),children:[(0,_.jsx)("button",{type:"button",className:"sidebar-toggle-tab".concat(ia?" is-collapsed":""),onClick:()=>ra((e=>!e)),title:ia?"Show sidebar":"Hide sidebar","aria-label":ia?"Show sidebar":"Hide sidebar",children:ia?(0,_.jsx)(S.xVu,{}):(0,_.jsx)(S.E_E,{})}),Gs&&Ya&&(0,_.jsx)("button",{type:"button",className:"compare-data-toggle-tab".concat(ca?" is-collapsed":""),onClick:()=>da((e=>!e)),title:ca?"Show details panel":"Hide details panel","aria-label":ca?"Show details panel":"Hide details panel",children:ca?(0,_.jsx)(S.E_E,{}):(0,_.jsx)(S.xVu,{})}),(0,_.jsxs)("div",{id:"sidebar",children:[!Ya&&(0,_.jsxs)("div",{className:"sb-header",children:[(0,_.jsxs)("div",{className:"sb-header-top",children:[(0,_.jsxs)("div",{className:"sb-header-title",children:[(0,_.jsx)("span",{className:"sb-title-bar","aria-hidden":"true"}),(0,_.jsx)("span",{className:"sb-title-text",children:"RIDER DISPATCH"})]}),(0,_.jsxs)("span",{className:"sb-header-scope",title:Qa.label,children:[(0,_.jsx)("span",{className:"sb-scope-dot"}),Qa.label]})]}),(0,_.jsxs)("div",{className:"sb-header-tiles",children:[(0,_.jsxs)("div",{className:"sb-tile sb-tile-orders",children:[(0,_.jsx)("span",{className:"sb-tile-icon",children:(0,_.jsx)(S.gsJ,{})}),(0,_.jsxs)("div",{className:"sb-tile-body",children:[(0,_.jsx)("div",{className:"sb-tile-value",children:Qa.orders}),(0,_.jsx)("div",{className:"sb-tile-label",children:1===Qa.orders?"Order":"Orders"})]})]}),(0,_.jsxs)("div",{className:"sb-tile sb-tile-riders",children:[(0,_.jsx)("span",{className:"sb-tile-icon",children:(0,_.jsx)(S.aVM,{})}),(0,_.jsxs)("div",{className:"sb-tile-body",children:[(0,_.jsx)("div",{className:"sb-tile-value",children:Qa.riders}),(0,_.jsx)("div",{className:"sb-tile-label",children:1===Qa.riders?"Rider":"Riders"})]})]})]})]}),Ya&&!Ha||Ee?(0,_.jsxs)("div",{id:"route-detail",children:[(0,_.jsxs)("button",{className:"rd-back",onClick:()=>{Wa(null),De(null)},children:["\u2190 Back to ",Le?Le.name:"list"]}),Ya?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"rd-rider-name",style:{color:Ya.color},children:Ya.riderName}),(()=>{const e=Ya.orders.reduce(((e,s)=>e+parseFloat(s.actualkms||0)),0),s=Ya.orders.reduce(((e,s)=>e+parseFloat(s.riderkms||0)),0);return(0,_.jsxs)("div",{className:"rd-stats-grid",children:[(0,_.jsxs)("div",{className:"rd-stat rd-stat-orders",children:[(0,_.jsx)("div",{className:"rd-stat-icon",children:(0,_.jsx)(S.gsJ,{})}),(0,_.jsx)("div",{className:"rd-stat-value",children:Ya.orders.length}),(0,_.jsx)("div",{className:"rd-stat-label",children:"Orders"})]}),(0,_.jsxs)("div",{className:"rd-stat rd-stat-distance",children:[(0,_.jsx)("div",{className:"rd-stat-icon",children:(0,_.jsx)(S.xI$,{})}),(0,_.jsxs)("div",{className:"rd-stat-value",children:[e.toFixed(1),(0,_.jsx)("span",{className:"rd-stat-unit",children:"km"})]}),(0,_.jsx)("div",{className:"rd-stat-label",children:"Actual KMs"})]}),(0,_.jsxs)("div",{className:"rd-stat rd-stat-distance",children:[(0,_.jsx)("div",{className:"rd-stat-icon",children:(0,_.jsx)(S.xI$,{})}),(0,_.jsxs)("div",{className:"rd-stat-value",children:[s.toFixed(1),(0,_.jsx)("span",{className:"rd-stat-unit",children:"km"})]}),(0,_.jsx)("div",{className:"rd-stat-label",children:"Trip KMs"})]})]})})(),(()=>{const e={};Ya.orders.forEach((s=>{const a=s.trip_number||1;e[a]||(e[a]=[]),e[a].push(s)}));const s=[...Ya.orders].sort(((e,s)=>{const a=e.trip_number||1,t=s.trip_number||1;return a!==t?a-t:(e.step||0)-(s.step||0)})).find((e=>{const s=String(e.orderstatus||"").toLowerCase();return!V.Ys.has(s)&&!V.yP.has(s)})),a=s?s.orderid:null,t=e=>{const s=e.deliverytime||e.expecteddeliverytime;if(!s)return Number.MAX_SAFE_INTEGER;const a=f()(s);return a.isValid()?a.valueOf():Number.MAX_SAFE_INTEGER},i="time"===Oe;let n=null;return Object.entries(e).sort(((e,s)=>{let[a]=e,[t]=s;return Number(a)-Number(t)})).map((e=>{let[s,l]=e;const c=i?[...l].sort(((e,s)=>{const a=t(e)-t(s);return 0!==a?a:(e.step||0)-(s.step||0)})):l;return(0,_.jsxs)("div",{className:"trip-block",children:[(0,_.jsxs)("div",{className:"trip-header",style:{background:"".concat(Ya.color,"12"),borderColor:"".concat(Ya.color,"30")},children:[(0,_.jsxs)("span",{className:"th-badge",style:{background:Ya.color},children:["Trip ",s]}),(0,_.jsxs)("span",{className:"trip-stats",children:[(0,_.jsxs)("span",{children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.gwi,{})}),l.length," stops"]}),(0,_.jsxs)("span",{children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.xI$,{})}),l.reduce(((e,s)=>e+parseFloat(s.actualkms||s.kms||0)),0).toFixed(1)," km"]})]}),(0,_.jsxs)("div",{className:"trip-sort-toggle",role:"group","aria-label":"Sort stops by","data-mode":i?"time":"planned",children:[(0,_.jsxs)("button",{type:"button",className:"trip-sort-pill ".concat(i?"":"is-active"),"aria-pressed":!i,onClick:()=>Te("planned"),title:"Sort stops by planned step (dispatched order)",children:[(0,_.jsx)(S.EgJ,{"aria-hidden":"true"}),(0,_.jsx)("span",{children:"Planned"})]}),(0,_.jsxs)("button",{type:"button",className:"trip-sort-pill ".concat(i?"is-active":""),"aria-pressed":i,onClick:()=>Te("time"),title:"Sort stops by completion time (which delivery was done first)",children:[(0,_.jsx)(S.VP9,{"aria-hidden":"true"}),(0,_.jsx)("span",{children:"By time"})]})]})]}),(0,_.jsx)("div",{className:"zone-order-grid",children:c.map(((e,t)=>{const l=(e.kitchen_key||e.pickupcustomer||"Unknown").toLowerCase().trim(),c=null!==n&&l!==n;n=l;const d=qe&&qe.orderid===e.orderid,o=a&&e.orderid===a,u=parseFloat(e.droplat||e.deliverylat),m=parseFloat(e.droplon||e.deliverylong),p=Number.isFinite(u)&&Number.isFinite(m),h=(0,V.Cx)(e.orderstatus),v=parseFloat(e.profit||0),x=v<0,f=pt(Ya.id,e),g=e.step||t+1,N=i&&!e.deliverytime;return(0,_.jsxs)(r.Fragment,{children:[c&&(0,_.jsxs)("div",{className:"kitchen-transition",children:[(0,_.jsx)("span",{className:"kt-ico",children:(0,_.jsx)(S.$G1,{})})," Switch to ",(0,_.jsx)("strong",{children:e.pickupcustomer})]}),(0,_.jsxs)("div",{className:"zone-order-card ".concat(p?"clickable":""," ").concat(d?"active":""," ").concat(o?"going-on":""," ").concat(N?"is-pending-time":""),role:p?"button":void 0,tabIndex:p?0:void 0,onClick:p?()=>Ie(d?null:{orderid:e.orderid,lat:u,lon:m}):void 0,onKeyDown:p?s=>{"Enter"!==s.key&&" "!==s.key||(s.preventDefault(),Ie(d?null:{orderid:e.orderid,lat:u,lon:m}))}:void 0,title:p?d?"Click to show full trip":"Show ".concat(e.deliverycustomer||"order #".concat(e.orderid)," on map"):void 0,children:[(0,_.jsxs)("div",{className:"zone-order-card-head",children:[(0,_.jsx)("div",{className:"zone-order-num",title:"Planned step ".concat(e.step||t+1),children:g}),(0,_.jsx)("div",{className:"zone-order-id-block",children:(0,_.jsxs)("div",{className:"zone-order-id",children:["Order #",e.orderid]})}),(()=>{const s=be(e.deliverytime),a=be(e.expecteddeliverytime),t=!V.Ys.has(String(e.orderstatus||"").toLowerCase())&&null!==f;return e.orderstatus||s||a||t?(0,_.jsxs)("div",{className:"zone-order-status-stack",children:[e.orderstatus&&(0,_.jsx)("span",{className:"zone-order-status",style:{background:h.bg,color:h.fg},children:h.label}),(s||a)&&(0,_.jsxs)("span",{className:"zone-order-time ".concat(s?"":"is-expected"),title:s?"Delivered at ".concat(s):"Expected at ".concat(a),children:[(0,_.jsx)(S.VP9,{}),s||a]}),t&&(0,_.jsxs)("span",{className:"zone-order-est-drop",title:"Estimated distance to drop location",children:[(0,_.jsx)(S.HPi,{}),ht(f)]})]}):null})(),j&&(0,_.jsx)("button",{type:"button",className:"zone-order-change-rider",title:"Change rider",onClick:s=>{s.stopPropagation(),j(e,Ya)},children:(0,_.jsx)(S.$G1,{})})]}),(0,_.jsxs)("div",{className:"zone-order-customer",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.u9F,{})}),e.deliverycustomer||"\u2014"]}),e.pickupcustomer&&(0,_.jsxs)("div",{className:"zone-order-line",title:"Kitchen: ".concat(e.pickupcustomer),children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.NtI,{})}),e.pickupcustomer]}),(e.deliverysuburb||e.deliveryaddress)&&(0,_.jsxs)("div",{className:"zone-order-line",title:e.deliveryaddress||e.deliverysuburb,children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.gwi,{})}),e.deliverysuburb||se(e.deliveryaddress)]}),e.ordernotes&&(0,_.jsxs)("div",{className:"zone-order-line zone-order-notes",title:e.ordernotes,children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.dKO,{})}),e.ordernotes]}),(0,_.jsxs)("div",{className:"zone-order-stats",children:[(0,_.jsxs)("span",{className:"zone-order-chip",title:"Distance",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.xI$,{})}),e.actualkms||e.kms||0," km"]}),(0,_.jsxs)("span",{className:"zone-order-chip ".concat(x?"is-loss":"is-profit"),title:"Profit",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.ohY,{})}),x?"-":"","\u20b9",Math.abs(v).toFixed(0)]}),null!=e.deliverycharge&&(0,_.jsxs)("span",{className:"zone-order-chip",title:"Delivery charge",children:["\u20b9",parseFloat(e.deliverycharge).toFixed(0)," chg"]}),e.ordertype&&(0,_.jsx)("span",{className:"zone-order-chip zone-order-type type-".concat(String(e.ordertype).toLowerCase()),children:e.ordertype}),(0,_.jsxs)("span",{className:"zone-order-chip zone-order-trip",children:["T",e.trip_number||s," \xb7 S",e.step||t+1]})]})]})]},e.orderid)}))})]},s)}))})()]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"rd-rider-name",style:{color:"#f59e0b"},children:Ee.kitchenName}),(0,_.jsxs)("div",{className:"rd-rider-sub",children:[(0,_.jsxs)("span",{children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.gsJ,{})}),Ee.orders.length," orders"]}),(0,_.jsxs)("span",{children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.aVM,{})}),Ee.riders.size," riders"]})]}),(0,_.jsxs)("div",{className:"zone-detail-section",children:[(0,_.jsxs)("div",{className:"zone-section-label",children:["Orders ",(0,_.jsxs)("span",{className:"section-count",children:["(",Ee.orders.length,")"]})]}),0===Ee.orders.length?(0,_.jsx)("div",{className:"zone-suburb-panel-empty",children:"No orders for this kitchen."}):(0,_.jsx)("div",{className:"zone-order-grid",children:Ee.orders.map(((e,s)=>{const a=parseFloat(e.droplat||e.deliverylat),t=parseFloat(e.droplon||e.deliverylong),i=Number.isFinite(a)&&Number.isFinite(t),r=qe&&qe.orderid===e.orderid,n=(0,V.Cx)(e.orderstatus),l=parseFloat(e.profit||0),c=l<0,d=e.rider_id||e.userid,o=d?qa.find((e=>String(e.id)===String(d))):null,u=(()=>{if(!o)return null;const e=[...o.orders].sort(((e,s)=>{const a=e.trip_number||1,t=s.trip_number||1;return a!==t?a-t:(e.step||0)-(s.step||0)})).find((e=>{const s=String(e.orderstatus||"").toLowerCase();return!V.Ys.has(s)&&!V.yP.has(s)}));return e?e.orderid:null})(),m=u&&e.orderid===u,p=d?pt(d,e):null;return(0,_.jsxs)("div",{className:"zone-order-card ".concat(i?"clickable":""," ").concat(r?"active":""," ").concat(m?"going-on":""),role:i?"button":void 0,tabIndex:i?0:void 0,onClick:i?()=>Ie(r?null:{orderid:e.orderid,lat:a,lon:t}):void 0,children:[(0,_.jsxs)("div",{className:"zone-order-card-head",children:[(0,_.jsx)("div",{className:"zone-order-num",children:e.step||s+1}),(0,_.jsxs)("div",{className:"zone-order-id-block",children:[(0,_.jsxs)("div",{className:"zone-order-id",children:["Order #",e.orderid]}),(0,_.jsxs)("div",{className:"zone-order-rider",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.aVM,{})}),e.rider_name||e.ridername||"Unassigned"]})]}),(()=>{const s=be(e.deliverytime),a=be(e.expecteddeliverytime),t=!V.Ys.has(String(e.orderstatus||"").toLowerCase())&&null!==p;return e.orderstatus||s||a||t?(0,_.jsxs)("div",{className:"zone-order-status-stack",children:[e.orderstatus&&(0,_.jsx)("span",{className:"zone-order-status",style:{background:n.bg,color:n.fg},children:n.label}),(s||a)&&(0,_.jsxs)("span",{className:"zone-order-time ".concat(s?"":"is-expected"),title:s?"Delivered at ".concat(s):"Expected at ".concat(a),children:[(0,_.jsx)(S.VP9,{}),s||a]}),t&&(0,_.jsxs)("span",{className:"zone-order-est-drop",title:"Estimated distance to drop location",children:[(0,_.jsx)(S.HPi,{}),ht(p)]})]}):null})()]}),(0,_.jsxs)("div",{className:"zone-order-customer",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.u9F,{})}),e.deliverycustomer||"\u2014"]}),e.pickupcustomer&&(0,_.jsxs)("div",{className:"zone-order-line",title:"Kitchen: ".concat(e.pickupcustomer),children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.NtI,{})}),e.pickupcustomer]}),(e.deliverysuburb||e.deliveryaddress)&&(0,_.jsxs)("div",{className:"zone-order-line",title:e.deliveryaddress||e.deliverysuburb,children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.gwi,{})}),e.deliverysuburb||se(e.deliveryaddress)]}),e.ordernotes&&(0,_.jsxs)("div",{className:"zone-order-line zone-order-notes",title:e.ordernotes,children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.dKO,{})}),e.ordernotes]}),(0,_.jsxs)("div",{className:"zone-order-stats",children:[(0,_.jsxs)("span",{className:"zone-order-chip",title:"Distance",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.xI$,{})}),e.actualkms||e.kms||0," km"]}),(0,_.jsxs)("span",{className:"zone-order-chip ".concat(c?"is-loss":"is-profit"),title:"Profit",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.ohY,{})}),c?"-":"","\u20b9",Math.abs(l).toFixed(0)]}),null!=e.deliverycharge&&(0,_.jsxs)("span",{className:"zone-order-chip",title:"Delivery charge",children:["\u20b9",parseFloat(e.deliverycharge).toFixed(0)," chg"]}),e.ordertype&&(0,_.jsx)("span",{className:"zone-order-chip zone-order-type type-".concat(String(e.ordertype).toLowerCase()),children:e.ordertype}),(0,_.jsxs)("span",{className:"zone-order-chip zone-order-trip",children:["T",e.trip_number||"-"," \xb7 S",e.step||s+1]})]})]},e.orderid)}))})]})]})]}):Le?(0,_.jsxs)("div",{id:"route-detail",children:[(0,_.jsx)("button",{className:"rd-back",onClick:()=>Re(null),children:"\u2190 Back to zones"}),(0,_.jsx)("div",{className:"rd-rider-name",style:{color:"#3b82f6"},children:Le.name}),(0,_.jsx)("div",{className:"rd-rider-sub",children:(0,_.jsxs)("span",{children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.gsJ,{})}),Le.totalOrders," ",1===Le.totalOrders?"order":"orders"]})}),(0,_.jsxs)("div",{className:"zone-detail-section",children:[(0,_.jsxs)("div",{className:"zone-section-label",children:["Orders ",(0,_.jsxs)("span",{className:"section-count",children:["(",Le.orders.length,")"]})]}),0===Le.orders.length?(0,_.jsx)("div",{className:"zone-suburb-panel-empty",children:"No orders in this zone."}):(0,_.jsx)("div",{className:"zone-order-grid",children:Le.orders.map(((e,s)=>{const a=parseFloat(e.droplat||e.deliverylat),t=parseFloat(e.droplon||e.deliverylong),i=Number.isFinite(a)&&Number.isFinite(t),r=qe&&qe.orderid===e.orderid,n=(0,V.Cx)(e.orderstatus),l=parseFloat(e.profit||0),c=l<0,d=e.rider_id||e.userid,o=d?qa.find((e=>String(e.id)===String(d))):null,u=(()=>{if(!o)return null;const e=[...o.orders].sort(((e,s)=>{const a=e.trip_number||1,t=s.trip_number||1;return a!==t?a-t:(e.step||0)-(s.step||0)})).find((e=>{const s=String(e.orderstatus||"").toLowerCase();return!V.Ys.has(s)&&!V.yP.has(s)}));return e?e.orderid:null})(),m=u&&e.orderid===u,p=d?pt(d,e):null;return(0,_.jsxs)("div",{className:"zone-order-card ".concat(i?"clickable":""," ").concat(r?"active":""," ").concat(m?"going-on":""),role:i?"button":void 0,tabIndex:i?0:void 0,onClick:i?()=>Ie(r?null:{orderid:e.orderid,lat:a,lon:t}):void 0,children:[(0,_.jsxs)("div",{className:"zone-order-card-head",children:[(0,_.jsx)("div",{className:"zone-order-num",children:e.step||s+1}),(0,_.jsxs)("div",{className:"zone-order-id-block",children:[(0,_.jsxs)("div",{className:"zone-order-id",children:["Order #",e.orderid]}),(0,_.jsxs)("div",{className:"zone-order-rider",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.aVM,{})}),e.rider_name||e.ridername||"Unassigned"]})]}),(()=>{const s=be(e.deliverytime),a=be(e.expecteddeliverytime),t=!V.Ys.has(String(e.orderstatus||"").toLowerCase())&&null!==p;return e.orderstatus||s||a||t?(0,_.jsxs)("div",{className:"zone-order-status-stack",children:[e.orderstatus&&(0,_.jsx)("span",{className:"zone-order-status",style:{background:n.bg,color:n.fg},children:n.label}),(s||a)&&(0,_.jsxs)("span",{className:"zone-order-time ".concat(s?"":"is-expected"),title:s?"Delivered at ".concat(s):"Expected at ".concat(a),children:[(0,_.jsx)(S.VP9,{}),s||a]}),t&&(0,_.jsxs)("span",{className:"zone-order-est-drop",title:"Estimated distance to drop location",children:[(0,_.jsx)(S.HPi,{}),ht(p)]})]}):null})()]}),(0,_.jsxs)("div",{className:"zone-order-customer",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.u9F,{})}),e.deliverycustomer||"\u2014"]}),e.pickupcustomer&&(0,_.jsxs)("div",{className:"zone-order-line",title:"Kitchen: ".concat(e.pickupcustomer),children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.NtI,{})}),e.pickupcustomer]}),(e.deliverysuburb||e.deliveryaddress)&&(0,_.jsxs)("div",{className:"zone-order-line",title:e.deliveryaddress||e.deliverysuburb,children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.gwi,{})}),e.deliverysuburb||se(e.deliveryaddress)]}),e.ordernotes&&(0,_.jsxs)("div",{className:"zone-order-line zone-order-notes",title:e.ordernotes,children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.dKO,{})}),e.ordernotes]}),(0,_.jsxs)("div",{className:"zone-order-stats",children:[(0,_.jsxs)("span",{className:"zone-order-chip",title:"Distance",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.xI$,{})}),e.actualkms||e.kms||0," km"]}),(0,_.jsxs)("span",{className:"zone-order-chip ".concat(c?"is-loss":"is-profit"),title:"Profit",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.ohY,{})}),c?"-":"","\u20b9",Math.abs(l).toFixed(0)]}),null!=e.deliverycharge&&(0,_.jsxs)("span",{className:"zone-order-chip",title:"Delivery charge",children:["\u20b9",parseFloat(e.deliverycharge).toFixed(0)," chg"]}),e.ordertype&&(0,_.jsx)("span",{className:"zone-order-chip zone-order-type type-".concat(String(e.ordertype).toLowerCase()),children:e.ordertype}),(0,_.jsxs)("span",{className:"zone-order-chip zone-order-trip",children:["T",e.trip_number||"-"," \xb7 S",e.step||s+1]})]})]},e.orderid)}))})]})]}):(0,_.jsxs)("div",{id:"riders-panel",children:[!(Ha&&0===Ja)&&(0,_.jsx)("div",{className:"ph",children:"zones"===F?"Zone dispatch":"kitchens"===F?"Kitchen dispatch":Ha?"Active rider dispatch":"Rider dispatch"}),(0,_.jsx)("div",{id:"rider-cards",children:0!==Oa.length||ka?"zones"===F?Ra.map(((e,s)=>{const a=e.statusCounts.delivered||0,t=e.totalProfit<0;return(0,_.jsxs)("div",{className:"rcard zone-card",onClick:()=>Re(e),style:{animationDelay:"".concat(.05*s,"s")},children:[(0,_.jsxs)("div",{className:"zone-card-header",children:[(0,_.jsx)("div",{className:"zone-card-emoji",children:(0,_.jsx)(S.Cd7,{})}),(0,_.jsxs)("div",{className:"zone-card-titles",children:[(0,_.jsx)("div",{className:"zone-card-name",children:e.name}),(0,_.jsxs)("div",{className:"zone-card-sub",children:[e.activeRidersCount," ",1===e.activeRidersCount?"rider":"riders"," \xb7 ",e.totalOrders," ",1===e.totalOrders?"order":"orders"]})]}),(0,_.jsx)("span",{className:"zone-card-arrow","aria-hidden":"true",children:"\u2192"})]}),e.totalOrders>0&&(0,_.jsxs)("div",{className:"zone-progress-row",children:[(0,_.jsx)("div",{className:"zone-status-bar",title:Object.entries(e.statusCounts).map((e=>{let[s,a]=e;return"".concat((0,V.Cx)(s).label,": ").concat(a)})).join(" \xb7 "),children:Object.entries(e.statusCounts).map((s=>{let[a,t]=s;const i=(0,V.Cx)(a),r=t/e.totalOrders*100;return(0,_.jsx)("div",{className:"zone-status-seg",style:{width:"".concat(r,"%"),background:i.bg}},a)}))}),(0,_.jsxs)("div",{className:"zone-progress-label",children:[a,"/",e.totalOrders]})]}),(0,_.jsxs)("div",{className:"zone-stat-pills",children:[(0,_.jsxs)("span",{className:"zone-stat-pill",title:"Areas covered",children:[(0,_.jsx)("span",{className:"zone-stat-icon",children:(0,_.jsx)(S.gwi,{})}),(0,_.jsx)("span",{className:"zone-stat-value",children:e.suburbs.length}),(0,_.jsx)("span",{className:"zone-stat-label",children:1===e.suburbs.length?"area":"areas"})]}),(0,_.jsxs)("span",{className:"zone-stat-pill",title:"Total distance",children:[(0,_.jsx)("span",{className:"zone-stat-icon",children:(0,_.jsx)(S.xI$,{})}),(0,_.jsx)("span",{className:"zone-stat-value",children:e.totalKms.toFixed(1)}),(0,_.jsx)("span",{className:"zone-stat-label",children:"km"})]}),(0,_.jsxs)("span",{className:"zone-stat-pill",title:"Kitchens",children:[(0,_.jsx)("span",{className:"zone-stat-icon",children:(0,_.jsx)(S.NtI,{})}),(0,_.jsx)("span",{className:"zone-stat-value",children:e.kitchens.length}),(0,_.jsx)("span",{className:"zone-stat-label",children:1===e.kitchens.length?"kitchen":"kitchens"})]}),(0,_.jsxs)("span",{className:"zone-stat-pill ".concat(t?"profit-negative":"profit-positive"),title:"Total profit",children:[(0,_.jsx)("span",{className:"zone-stat-icon",children:(0,_.jsx)(S.ohY,{})}),(0,_.jsx)("span",{className:"zone-stat-value",children:t?"-\u20b9".concat(Math.abs(e.totalProfit).toFixed(0)):"\u20b9".concat(e.totalProfit.toFixed(0))})]})]}),e.suburbs.length>0&&(0,_.jsxs)("div",{className:"zone-card-suburbs",children:[(0,_.jsx)("span",{className:"zone-card-suburbs-text",children:e.suburbs.slice(0,3).map((e=>e.name)).join(" \xb7 ")}),e.suburbs.length>3&&(0,_.jsxs)("span",{className:"zone-card-suburbs-more",children:["+",e.suburbs.length-3]})]})]},e.id)})):"kitchens"===F?Ia.map(((e,s)=>(0,_.jsxs)("div",{className:"rcard",onClick:()=>De(e),style:{animationDelay:"".concat(.05*s,"s")},children:[(0,_.jsxs)("div",{className:"rcard-top",children:[(0,_.jsx)("div",{className:"rcard-emo",style:{background:"#f59e0b18",borderColor:"#f59e0b50",color:"#f59e0b"},children:(0,_.jsx)(S.NtI,{})}),(0,_.jsxs)("div",{className:"rcard-info",children:[(0,_.jsx)("div",{className:"rcard-name",children:e.kitchenName}),(0,_.jsxs)("div",{className:"rcard-zone",children:[e.riders.size," riders \xb7 ",(0,_.jsx)(Ce,{children:(0,_.jsx)(S.ohY,{})}),"\u20b9",e.orders.reduce(((e,s)=>e+parseFloat(s.profit||0)),0).toFixed(0)]})]}),(0,_.jsx)("div",{className:"rcard-badge",style:{background:"#f59e0b18",color:"#f59e0b"},children:e.orders.length})]}),(0,_.jsx)("div",{className:"bar-bg",children:(0,_.jsx)("div",{className:"bar-fg",style:{width:"".concat(Math.min(100,e.orders.length/20*100),"%"),background:"#f59e0b"}})}),(0,_.jsxs)("div",{className:"rcard-meta",children:[(0,_.jsxs)("span",{children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.xI$,{})}),e.orders.reduce(((e,s)=>e+parseFloat(s.actualkms||s.kms||0)),0).toFixed(1)," km"]}),(0,_.jsxs)("span",{children:[e.riders.size," riders"]})]}),(0,_.jsx)("div",{className:"step-ids",children:Array.from(e.riders).slice(0,10).map((e=>{var s;return(0,_.jsx)("span",{className:"step-id",style:{color:mt(e)},children:null===(s=qa.find((s=>s.id===e)))||void 0===s?void 0:s.riderName.split(" ")[0]},e)}))})]},e.id))):Ha?(0,_.jsx)(B,{visibleRiders:Ua,riders:qa,focusedStop:qe,handleRiderFocus:Wa,setFocusedStop:Ie,calculateEstMeters:pt,getRiderColor:mt,formatMeters:ht,isLoading:Na&&ka&&0===Ua.length},"".concat(Ts,"-").concat(Qe,"-").concat(ja)):Ba.map(((e,s)=>{var a;const t=e.orders.length,i=e.orders.filter((e=>V.Ys.has(String(e.orderstatus||"").toLowerCase()))).length,r=t>0&&i>=t,n=e.orders.find((e=>{const s=String(e.orderstatus||"").toLowerCase();return!V.Ys.has(s)&&!V.yP.has(s)})),l=n?pt(e.id,n):null;return(0,_.jsxs)("div",{className:"rcard",onClick:()=>Wa(e),style:{animationDelay:"".concat(.05*s,"s"),borderLeft:"3px solid ".concat(e.color)},children:[(0,_.jsxs)("div",{className:"rcard-top",children:[(0,_.jsx)("div",{className:"rcard-emo",style:{background:"#f1f5f9",borderColor:"#e2e8f0",color:"#64748b"},children:(0,_.jsx)(S.aVM,{})}),(0,_.jsxs)("div",{className:"rcard-info",children:[(0,_.jsx)("div",{className:"rcard-name",children:e.riderName}),(0,_.jsxs)("div",{className:"rcard-zone",children:[(null===(a=e.orders[0])||void 0===a?void 0:a.zone_name)||ws||"Local"," \xb7 ",new Set(e.orders.map((e=>e.trip_number||1))).size," trips"]})]}),(0,_.jsxs)("div",{className:"rcard-badge ".concat(r?"is-done":""),style:r?void 0:{background:"#f1f5f9",color:"#475569"},title:"".concat(i," delivered of ").concat(t," total"),children:[i,"/",t]})]}),(0,_.jsx)("div",{className:"bar-bg",children:(0,_.jsx)("div",{className:"bar-fg",style:{width:"".concat(Math.min(100,t/15*100),"%"),background:e.color}})}),(0,_.jsxs)("div",{className:"rcard-meta",children:[(0,_.jsxs)("span",{children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.xI$,{})}),e.orders.reduce(((e,s)=>e+parseFloat(s.actualkms||s.kms||0)),0).toFixed(1)," km"]}),null!==l&&(0,_.jsxs)("span",{className:"rcard-est-meters",title:"Estimated distance to next drop location",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.HPi,{})}),ht(l)," to drop"]}),(0,_.jsxs)("span",{children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.ohY,{})}),"\u20b9",e.orders.reduce(((e,s)=>e+parseFloat(s.profit||0)),0).toFixed(0)]})]}),(0,_.jsx)("div",{className:"step-ids",children:e.orders.slice(0,15).map((e=>(0,_.jsxs)("span",{className:"step-id",children:["S",e.step]},e.orderid)))})]},e.id)})):(e=>{const s=null===(e=us.find((e=>e.id===ja)))||void 0===e?void 0:e.label,a=Na&&Aa.length>0;return(0,_.jsxs)("div",{className:"empty-slot",children:[(0,_.jsx)("div",{className:"empty-slot-icon",children:(0,_.jsx)(S.gsJ,{})}),(0,_.jsx)("div",{className:"empty-slot-title",children:s?"No orders in ".concat(s):"No orders"}),(0,_.jsx)("div",{className:"empty-slot-sub",children:a?"".concat(Aa.length," order").concat(1===Aa.length?"":"s"," exist in other slots today"):"No deliveries found for this date"})]})})()})]})]}),(0,_.jsxs)("div",{id:"map-wrap",className:"".concat("kitchens"===F?"view-mode-kitchens":""," ").concat(Gs?"compare-split":"").trim(),children:[(0,_.jsxs)(d.W,{center:[11.022,76.982],zoom:12,scrollWheelZoom:!0,style:{height:"100%",width:"100%"},zoomControl:!1,renderer:pa.current,inertia:!0,inertiaDeceleration:2400,inertiaMaxSpeed:2e3,wheelDebounceTime:20,wheelPxPerZoomLevel:80,zoomSnap:.25,children:[(0,_.jsx)(o.e,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:"\xa9 OpenStreetMap contributors"}),(0,_.jsx)(p.p,{position:"bottomright"}),Gs&&(0,_.jsx)(xe,{targetRef:ma}),(0,_.jsx)(je,{trigger:"".concat(ia,"|").concat(Gs,"|").concat(ca)}),(0,_.jsx)(Fe,{focusedItem:lt||(Ya||Ee)&&qe||Ya||Ee||Le,viewMode:F,orders:Va,kitchens:Ia,locationKey:Qe,extraPoints:Ga}),Ia.filter((e=>Number.isFinite(e.lat)&&Number.isFinite(e.lon))).filter((e=>!Ya||e.riders.has(Ya.id))).map(((e,s)=>(0,_.jsx)(l.p,{position:[e.lat,e.lon],icon:ut(e.kitchenName,(null===Ee||void 0===Ee?void 0:Ee.id)===e.id),zIndexOffset:(null===Ee||void 0===Ee?void 0:Ee.id)===e.id?4e3:2e3,eventHandlers:{click:()=>De(e),mouseover:e=>e.target.openPopup(),mouseout:e=>e.target.closePopup()},children:(0,_.jsxs)(m.z,{className:"kitchen-popup",maxWidth:220,minWidth:200,autoPan:!0,autoPanPadding:[20,20],children:[(0,_.jsx)("div",{className:"kp-header",children:"KITCHEN"}),(0,_.jsx)("div",{className:"kp-name",children:e.kitchenName}),(0,_.jsxs)("div",{className:"kp-stat",children:[(0,_.jsx)("span",{className:"kp-stat-lbl",children:"Orders"}),(0,_.jsx)("span",{className:"kp-stat-val",children:e.orders.length})]})]})},"k-".concat(s)))),(()=>{if(Gs&&Ya&&"actual"===Ws)return null;let e=Oa;Le&&(e=Le.orders),Ee&&(e=Ee.orders),Ya&&(e=Ya.orders),e=e.filter(ae);const s=Gs&&Ya?new Map(at.map((e=>[String(e.deliveryid),e.sequenceStep]))):null;return e.map(((a,t)=>{const i=a.rider_id,r=!i||G.has(i);let n,c=mt(i);if(s&&i===Ya.id&&null!=a.deliveryid){const e=s.get(String(a.deliveryid));e&&(c=(0,V.gM)(e-1),n=e)}const d=!!Ya||!!Ee,o=(0,V.Cx)(a.orderstatus),u="delivered"===String(a.orderstatus||"").toLowerCase(),m=x&&String(x)===String(a.orderid),p=a.orderstatus?'\n \n \n ').concat(u?'':"","\n "):"",h=d?(()=>{const s=n||a.step||e.indexOf(a)+1,t=32;return v().divIcon({className:"",iconSize:[t,t],iconAnchor:[16,16],popupAnchor:[0,-28],html:'
9?12:14,"px;opacity:").concat(r?1:.75,'">').concat(s>0?s:"").concat(p,"
")})})():v().divIcon({className:"",iconSize:[24,30],iconAnchor:[2,30],popupAnchor:[10,-25],html:'
').concat(p,"
")});return(0,_.jsx)(l.p,{position:[parseFloat(a.droplat||a.deliverylat),parseFloat(a.droplon||a.deliverylong)],icon:h,zIndexOffset:i?100:0,ref:e=>{e?Ye.current[String(a.orderid)]=e:delete Ye.current[String(a.orderid)]},eventHandlers:{click:()=>{const e=String(a.orderid);He.current.has(e)?(He.current.delete(e),Ge(null)):(He.current.add(e),Ge(a))}}},"".concat(a.orderid,"-").concat(d?"num":"flag"))}))})(),(()=>{const e=Gs&&Ya&&"actual"===Ws;if(Es)return e?[]:Ls.map(((e,s)=>(0,_.jsx)(c.R,{positions:[e.from,e.to],pathOptions:{color:e.color,weight:6,opacity:.9,lineJoin:"round",lineCap:"round"}},s)));const s=[],a=Le?new Set(Le.riders.map((e=>String(e.rider_id)))):null;return e||(Ha?Ua:qa).forEach((e=>{const t=G.has(e.id);if(Ya&&Ya.id!==e.id)return;if(Ee&&!Ee.riders.has(e.id))return;if(a&&!a.has(String(e.id)))return;const i=Ha?(0,V.d1)(e.orders):null,n=Ha?i?[i]:[]:e.orders;if(Ha&&0===n.length)return;const l={};n.forEach((e=>{const s=e.trip_number||1;l[s]||(l[s]=[]),l[s].push(e)})),Object.entries(l).forEach((a=>{let[i,n]=a;const l=Ee?n.filter((e=>(e.pickupcustomer||e.kitchen_key||"Unknown").toLowerCase().trim()===Ee.id)):n;if(0===l.length)return;const d=[...n].sort(((e,s)=>(e.step||0)-(s.step||0))),o=ke(d),u=Se(e.id,i,o),m=Fs[u],p=[...l].sort(((e,s)=>(e.step||0)-(s.step||0))),h=Ha?p[0]:null;let v=null;if(Ha&&h){const s=va.find((s=>String(s.id)===String(e.id))),a=s&&Number.isFinite(s.lat)&&Number.isFinite(s.lon)?[s.lat,s.lon]:re(h)?[ee(te(h)),ee(ie(h))]:null,t=ee(h.droplat||h.deliverylat),i=ee(h.droplon||h.deliverylong);a&&Number.isFinite(t)&&Number.isFinite(i)&&(v=[a,[t,i]])}const x=Ha?h&&v?Fs[Se(e.id,"active-".concat(h.orderid),v)]:void 0:m,j=Array.isArray(x)&&x.length>=2,f=!1===x;if(!Ha&&!j&&!f)return;const g=j?x:Ha?v:ke(p);if(!g||g.length<2)return;const N=t?1:.1,b="kitchens"===F||Ee?7:6,y=Gs&&Ya&&e.id===Ya.id,k=f?"8 6":y&&"combined"===Ws?"6 5":void 0;if(Gs&&Ya&&e.id===Ya.id){const a=new Map(at.map((e=>[String(e.deliveryid),e.sequenceStep]))),t=p.filter(ae),r=t.map((e=>[parseFloat(e.droplat||e.deliverylat),parseFloat(e.droplon||e.deliverylong)]));let n;if(j)n=Ne(g,r);else{const e=g.length>r.length;n=[];for(let s=0;s=g.length||t>=g.length?n.push([]):n.push([g[a],g[t]])}}const l="combined"===Ws?5:0;return s.push((0,_.jsx)(c.R,{positions:g,pathOptions:{color:"#ffffff",weight:b+4,opacity:.5*N,lineJoin:"round",lineCap:"round",offset:l}},"".concat(e.id,"-").concat(i,"-halo"))),void n.forEach(((r,n)=>{if(!r||r.length<2)return;const d=t[n],o=d?a.get(String(d.deliveryid)):null,u="combined"===Ws?X:o?(0,V.gM)(o-1):e.color,m=null!=oa&&oa===o,p=m?b+1.5:b,h=m?1:oa?.5*N:N;s.push((0,_.jsx)(c.R,{positions:r,pathOptions:{color:u,weight:p,opacity:h,lineJoin:"round",lineCap:"round",dashArray:k,offset:l}},"".concat(e.id,"-").concat(i,"-step-").concat(n,"-").concat((null===d||void 0===d?void 0:d.deliveryid)||n)))}))}s.push((0,_.jsxs)(r.Fragment,{children:[(0,_.jsx)(c.R,{positions:g,pathOptions:{color:"#ffffff",weight:b+4,opacity:.5*N,lineJoin:"round",lineCap:"round"}}),(0,_.jsx)(c.R,{positions:g,pathOptions:{color:e.color,weight:b,opacity:N,lineJoin:"round",lineCap:"round",dashArray:k}})]},"".concat(e.id,"-").concat(i)))}))})),s})(),va.filter((e=>Ha?("active"===e.status||"pending"===e.status)&&Ka.has(String(e.id)):qa.some((s=>String(s.id)===String(e.id))))).filter((e=>!Ya||String(Ya.id)===String(e.id))).map((e=>{var s;const a="active"===e.status||"pending"===e.status,t=a?"#16a34a":"#dc2626",r=qa.find((s=>String(s.id)===String(e.id))),n=null===r||void 0===r||null===(s=r.orders)||void 0===s?void 0:s.slice().sort(((e,s)=>{const a=e.trip_number||1,t=s.trip_number||1;return a!==t?a-t:(e.step||0)-(s.step||0)})).find((e=>{const s=String(e.orderstatus||"").toLowerCase();return!V.Ys.has(s)&&!V.yP.has(s)})),c=n?n.deliverysuburb||se(n.deliveryaddress):null,d=(e.username||"").replace(/[<>&"']/g,""),o=e.orderid?String(e.orderid).replace(/[<>&"']/g,""):"",u="".concat(Ha?"bike":"pin","|").concat(t,"|").concat(d,"|").concat(o,"|").concat(a?1:0);let p=Ke.current.get(e.id);if(!p||p.sig!==u){p={sig:u,icon:Ha?v().divIcon({className:"",iconSize:[160,44],iconAnchor:[22,22],popupAnchor:[0,-22],html:'
\n \n \n \n \n ').concat(d).concat(o?" #".concat(o,""):"","\n
")}):v().divIcon({className:"",iconSize:[140,56],iconAnchor:[12,41],popupAnchor:[58,-40],html:'
\n
\n
').concat(d).concat(o?" #".concat(o,""):"","
\n
")})},Ke.current.set(e.id,p)}const h=p.icon,x={click:s=>{const a=String(e.id);Ve.current.has(a)?(Ve.current.delete(a),s.target.closePopup()):(Ve.current.add(a),s.target.openPopup());const t=qa.find((e=>String(e.id)===a));t&&Wa(t)},popupclose:()=>{Ve.current.delete(String(e.id))}},j=Ha?Me:l.p,g=Ha?{target:[e.lat,e.lon],duration:1e3}:{position:[e.lat,e.lon]};return(0,_.jsx)(j,(0,i.A)((0,i.A)({},g),{},{icon:h,zIndexOffset:2500,eventHandlers:x,children:(0,_.jsxs)(m.z,{maxWidth:260,autoPan:!0,autoPanPadding:[20,20],className:"dispatch-popup live-rider-popup",children:[(0,_.jsx)("div",{className:"pu-hdr-live",children:(0,_.jsxs)("div",{className:"pu-hdr-left",children:[(0,_.jsx)("span",{className:"pu-live-indicator",style:{"--pulse-color":t},children:(0,_.jsx)("span",{className:"pu-live-dot"})}),(0,_.jsx)("span",{className:"pu-hdr-title",children:"LIVE GPS"})]})}),(0,_.jsxs)("div",{className:"pu-rider-profile",children:[(0,_.jsx)("div",{className:"pu-avatar",style:{backgroundColor:"".concat(t,"12"),color:t},children:(0,_.jsx)(S.bsz,{})}),(0,_.jsxs)("div",{className:"pu-rider-info-text",children:[(0,_.jsxs)("div",{className:"pu-rider-name-row",children:[(0,_.jsx)("span",{className:"pu-rider-name",children:e.username||"Rider #".concat(e.id)}),e.status&&(0,_.jsx)("span",{className:"pu-status-badge ".concat("active"===e.status.toLowerCase()?"active":"idle"),children:e.status})]}),(0,_.jsxs)("div",{className:"pu-rider-meta",children:["Rider ID: #",e.id]})]})]}),(0,_.jsxs)("div",{className:"pu-body-content",children:[e.orderid&&(0,_.jsxs)("div",{className:"pu-info-row",children:[(0,_.jsx)("span",{className:"pu-info-label",children:"Active Order"}),(0,_.jsxs)("span",{className:"pu-info-value pu-order-badge",children:["#",e.orderid]})]}),n&&(0,_.jsxs)("div",{className:"pu-info-row",children:[(0,_.jsx)("span",{className:"pu-info-label",children:"Next Stop"}),(0,_.jsxs)("span",{className:"pu-info-value",style:{color:"#4f46e5"},children:["#",n.step||"?"," \xb7 ",n.deliverycustomer||"\u2014"]})]}),c&&(0,_.jsxs)("div",{className:"pu-info-row",children:[(0,_.jsx)("span",{className:"pu-info-label",children:"Next Location"}),(0,_.jsx)("span",{className:"pu-info-value",title:n.deliveryaddress||c,children:c})]}),(null===n||void 0===n?void 0:n.pickupcustomer)&&(0,_.jsxs)("div",{className:"pu-info-row",children:[(0,_.jsx)("span",{className:"pu-info-label",children:"Pickup"}),(0,_.jsx)("span",{className:"pu-info-value",title:n.pickupcustomer,children:n.pickupcustomer})]}),e.contactno&&(0,_.jsxs)("div",{className:"pu-info-row",children:[(0,_.jsx)("span",{className:"pu-info-label",children:"Phone"}),(0,_.jsx)("a",{href:"tel:".concat(e.contactno),className:"pu-info-value pu-phone-link",children:e.contactno})]}),e.logdate&&(0,_.jsxs)("div",{className:"pu-info-row",children:[(0,_.jsx)("span",{className:"pu-info-label",children:"Last Seen"}),(0,_.jsxs)("span",{className:"pu-info-value pu-time-stamp",children:[(0,_.jsx)(S.VP9,{className:"inline-icon"})," ",f()(e.logdate).isValid()?f()(e.logdate).format("hh:mm:ss A"):e.logdate]})]}),(0,_.jsxs)("div",{className:"pu-info-row",children:[(0,_.jsx)("span",{className:"pu-info-label",children:"Position"}),(0,_.jsxs)("span",{className:"pu-info-value pu-coordinates",children:[e.lat.toFixed(5),", ",e.lon.toFixed(5)]})]})]})]})}),"live-".concat(e.id))})),Gs&&Ya&&"planned"!==Ws&&at.map(((e,s)=>{var a,t;if(0===e.coords.length)return null;const i=(0,V.gM)(s),n="combined"===Ws?Q:i,d=[e.coords[0].lat,e.coords[0].lng],o=[e.coords[e.coords.length-1].lat,e.coords[e.coords.length-1].lng],m=As[e.deliveryid],p=Array.isArray(m)&&m.length>=2?m:e.coords.map((e=>[e.lat,e.lng]));let h=p,x=!0;if(Es){const s=qs[e.sequenceStep]||0;s<2?x=!1:h=p.slice(0,Math.min(s,p.length))}const j=oa===e.sequenceStep,g=String(e.orderstatus||"").toLowerCase(),N=V.Ys.has(g),b=V.yP.has(g),y=tt.find((s=>s.sequenceStep===e.sequenceStep)),k=!(null===y||void 0===y||!y.anomaly),w=null===Ya||void 0===Ya||null===(a=Ya.orders)||void 0===a?void 0:a.find((s=>null!=s.deliveryid&&String(s.deliveryid)===String(e.deliveryid))),F=(0,V.Cx)(e.orderstatus),M=(e.orderstatus&&'\n \n \n ').concat(N?'':"","\n "),["compare-step-pin"]);j&&M.push("is-focused"),N&&M.push("is-delivered"),b&&M.push("is-skipped"),k&&M.push("is-anomaly");const C='
')+''.concat(e.sequenceStep,"")+(N?'':"")+"
",A=v().divIcon({className:"",iconSize:[36,36],iconAnchor:[18,18],popupAnchor:[0,-22],html:C}),z=1===e.sequenceStep,P=z?v().divIcon({className:"",iconSize:[40,40],iconAnchor:[20,20],html:'
')+'
'}):null,E="combined"===Ws?-5:0;return(0,_.jsxs)(r.Fragment,{children:[x&&(0,_.jsx)(c.R,{positions:h,pathOptions:{color:"#ffffff",weight:j?11:9,opacity:j?.75:.55,lineJoin:"round",lineCap:"round",offset:E}}),x&&(0,_.jsx)(c.R,{positions:h,pathOptions:{color:n,weight:j?6.5:5,opacity:j?1:oa?.55:.95,lineJoin:"round",lineCap:"round",offset:E}}),z&&(0,_.jsx)(l.p,{position:d,icon:P,zIndexOffset:j?900:100,eventHandlers:{click:s=>{s.originalEvent&&s.originalEvent.stopPropagation(),ua((s=>s===e.sequenceStep?null:e.sequenceStep))}},children:(0,_.jsx)(u.m,{direction:"top",offset:[0,-12],opacity:1,className:"compare-tooltip",children:(0,_.jsxs)("div",{className:"cmp-tip",children:[(0,_.jsxs)("div",{className:"cmp-tip-header",children:[(0,_.jsx)("span",{className:"cmp-tip-step",style:{background:i},children:(0,_.jsx)(S.zPd,{})}),(0,_.jsxs)("div",{className:"cmp-tip-title-stack",children:[(0,_.jsx)("div",{className:"cmp-tip-title",children:e.pickupcustomer||"Pickup"}),(0,_.jsx)("div",{className:"cmp-tip-sub",children:null!==(t=e.coords[0])&&void 0!==t&&t.logdate?"Picked up \xb7 ".concat(f()(e.coords[0].logdate).format("hh:mm A")):"Rider trip origin"})]})]}),(0,_.jsx)("div",{className:"cmp-tip-action",children:"Click for step 1 details"})]})})}),(0,_.jsx)(l.p,{position:o,icon:A,zIndexOffset:j?1e3:200,eventHandlers:w?{click:s=>{s.originalEvent&&s.originalEvent.stopPropagation(),ua((s=>s===e.sequenceStep?null:e.sequenceStep)),Be.current&&(clearTimeout(Be.current),Be.current=null);const a=String(w.orderid);He.current.has(a)?(He.current.delete(a),Ge(null)):(He.current.add(a),Ge(w))}}:{click:s=>{s.originalEvent&&s.originalEvent.stopPropagation(),ua((s=>s===e.sequenceStep?null:e.sequenceStep)),w&&s.target&&"function"===typeof s.target.openPopup&&s.target.openPopup()}},children:!w&&(0,_.jsx)(u.m,{direction:"top",offset:[0,-20],opacity:1,className:"compare-tooltip",children:(()=>{const s=(0,V.Cx)(e.orderstatus);return(0,_.jsxs)("div",{className:"cmp-tip",children:[(0,_.jsxs)("div",{className:"cmp-tip-header",children:[(0,_.jsx)("span",{className:"cmp-tip-step",style:{background:i},children:e.sequenceStep}),(0,_.jsxs)("div",{className:"cmp-tip-title-stack",children:[(0,_.jsx)("div",{className:"cmp-tip-title",children:e.deliverycustomer||"Step ".concat(e.sequenceStep)}),(0,_.jsx)("div",{className:"cmp-tip-sub",children:e.deliverytime?"Delivered ".concat(f()(e.deliverytime).format("hh:mm A")):"".concat(e.coords.length," GPS pings")})]}),e.orderstatus&&(0,_.jsx)("span",{className:"cmp-tip-tag",style:{background:s.bg,color:s.fg},children:s.label})]}),k&&(0,_.jsx)("div",{className:"cmp-tip-anomaly",children:"Deviation flagged \u2014 see details below"}),(0,_.jsx)("div",{className:"cmp-tip-action",children:j?"Click to deselect":"Click for details"})]})})()})})]},"actual-".concat(e.deliveryid))}))]}),Gs&&Ya&&(0,_.jsxs)("div",{className:"compare-view-switcher",role:"group","aria-label":"Compare view layer",children:[(0,_.jsx)("button",{type:"button",className:"actual"===Ws?"is-active":"",onClick:()=>$s("actual"),title:"Show only the rider's actual GPS trail",children:"Actual"}),(0,_.jsx)("button",{type:"button",className:"planned"===Ws?"is-active":"",onClick:()=>$s("planned"),title:"Show only the dispatched planned route",children:"Planned"}),(0,_.jsx)("button",{type:"button",className:"combined"===Ws?"is-active":"",onClick:()=>$s("combined"),title:"Overlay planned (dashed) and actual (solid) on one map",children:"Combined"})]}),(0,_.jsx)("div",{id:"ov-tl"}),(0,_.jsxs)("div",{id:"ov-br",children:[(0,_.jsxs)("button",{className:"sbt ".concat(Es?"active":""),onClick:()=>{if(Es)return Ds(!1),Rs([]),void Is({});Ds(!0),Rs([]),Is({});const e=Gs&&Ya,s=e?new Map(at.map((e=>[String(e.deliveryid),e.sequenceStep]))):null,a=[];if(qa.forEach((t=>{if(!G.has(t.id))return;if(Ya&&Ya.id!==t.id)return;if(Ee&&!Ee.riders.has(t.id))return;const i={};t.orders.forEach((e=>{const s=e.trip_number||1;i[s]||(i[s]=[]),i[s].push(e)})),Object.entries(i).forEach((i=>{let[r,n]=i;const l=Ee?n.filter((e=>(e.pickupcustomer||e.kitchen_key||"Unknown").toLowerCase().trim()===Ee.id)):n;if(0===l.length)return;const c=[...n].sort(((e,s)=>(e.step||0)-(s.step||0))),d=ke(c),o=Se(t.id,r,d),u=Fs[o],m=[...l].sort(((e,s)=>(e.step||0)-(s.step||0))),p=ke(m),h="kitchens"===F||Ee,v=u||p;if(v.length<2)return;let x=()=>t.color;if(e&&t.id===Ya.id){const e=m.filter(ae).map((e=>[parseFloat(e.droplat||e.deliverylat),parseFloat(e.droplon||e.deliverylong)])),a=u?Ne(u,e):(()=>{const s=p.length>e.length,a=[];for(let t=0;t=p.length||i>=p.length?a.push([]):a.push([p[e],p[i]])}return a})(),i=[];let r=0;a.forEach(((e,s)=>{const a=Math.max(0,((null===e||void 0===e?void 0:e.length)||0)-1);for(let t=0;t{const a=i[e];if(null==a)return t.color;const r=m.filter(ae)[a],n=r?s.get(String(r.deliveryid)):null;return n?(0,V.gM)(n-1):t.color}}for(let e=0;ee.delay-s.delay)),a.forEach(((e,s)=>{setTimeout((()=>{Rs((s=>[...s,e])),s===a.length-1&&setTimeout((()=>{Ds(!1),Is({})}),1e3)}),e.delay)})),e&&at.length>0){const e=[...at],s=e.map((e=>{const s=As[e.deliveryid];return Array.isArray(s)&&s.length>=2?s:e.coords.map((e=>[e.lat,e.lng]))})),t=a.length>0?a[a.length-1].delay:800*e.length,i=Math.max(t,600*e.length),r=i/Math.max(1,e.length),n=Date.now(),l=()=>{if(!Os.current)return;const a=Date.now()-n,t={};e.forEach(((e,i)=>{const n=s[i];if(!n||n.length<2)return;const l=i*r;if(a>=l+r)t[e.sequenceStep]=n.length;else if(a>=l){const s=(a-l)/r;t[e.sequenceStep]=Math.max(2,Math.ceil(s*n.length))}})),Is(t),a{if(Gs)Js(!1);else{if(!Ya){const e=qa.find((e=>(e.orders||[]).some((e=>null!=e.deliveryid&&""!==e.deliveryid&&0!==e.deliveryid)))),s=qa.find((e=>e.orders&&e.orders.length>0)),a=e||s;if(a&&(Wa(a),Je))return void(ta.current=!0)}Js(!0)}},title:Ya?"Compare planned vs. actual route for ".concat(Ya.riderName):"Compare planned vs. actual route (will focus the first rider)",style:{boxShadow:"var(--shadow-lg)",background:Gs?"linear-gradient(135deg, #662582, #9255AB)":"#fff",marginLeft:8,color:Gs?"#fff":void 0},children:[(0,_.jsx)("span",{className:"sbt-icon",children:(0,_.jsx)(S.$G1,{})}),Gs?"Exit Compare":"Compare"]})]})]}),Gs&&Ya&&(0,_.jsx)("div",{id:"compare-map-wrap",children:(()=>{const e=at.length,s=at.filter((e=>e.coords.length>0)).length,a=at.filter((e=>e.isLoading)).length,t=e>0?Math.round(s/e*100):0,i=e>0&&s===e&&0===a,n=null!=oa?tt.find((e=>e.sequenceStep===oa)):null;return(0,_.jsxs)("div",{className:"compare-header-v2",children:[(0,_.jsxs)("div",{className:"compare-header-row",children:[(0,_.jsxs)("div",{className:"compare-title",children:[(0,_.jsx)("span",{className:"compare-title-dot",style:{background:Ya.color}}),(0,_.jsx)("span",{className:"compare-title-name",children:Ya.riderName}),(0,_.jsx)("span",{className:"compare-title-badge",children:"ACTUAL vs PLANNED"})]}),(0,_.jsxs)("div",{className:"compare-header-tools",children:[null!=oa&&(0,_.jsxs)("button",{type:"button",className:"compare-overall-btn",onClick:()=>ua(null),title:"Zoom out to the whole day",children:[(0,_.jsx)(S.Zs6,{})," Overall"]}),(0,_.jsx)("button",{type:"button",className:"compare-timeline-toggle".concat(Qs?" is-open":""),onClick:()=>ea((e=>!e)),title:Qs?"Hide planned/actual timeline":"Show planned/actual timeline","aria-expanded":Qs,children:(0,_.jsx)(S.j1Q,{})})]})]}),Qs&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"compare-timeline-wrap",children:[(0,_.jsxs)("div",{className:"compare-timeline-container",children:[(0,_.jsxs)("div",{className:"compare-timeline-labels",children:[(0,_.jsx)("div",{className:"compare-timeline-label",children:"Planned"}),(0,_.jsx)("div",{className:"compare-timeline-label",children:"Actual"})]}),(0,_.jsxs)("div",{className:"compare-timeline-scrollable",children:[(0,_.jsx)("div",{className:"compare-timeline-track is-planned",children:rt.map(((e,s)=>{var a;const t=String(e.orderstatus||"").toLowerCase(),i=V.Ys.has(t),n=V.yP.has(t),l=oa===e.sequenceStep,c=e.isLoading&&0===e.coordsCount,d=!e.isLoading&&0===e.coordsCount,o=(null===(a=e.order)||void 0===a?void 0:a.step)||e.sequenceStep,u=(0,V.gM)(o-1),m=["compare-step",l&&"is-focused",i&&"is-delivered",n&&"is-skipped",!i&&!n&&"is-pending",c&&"is-loading",d&&"is-no-data",e.anomaly&&"is-anomaly"].filter(Boolean).join(" ");return(0,_.jsxs)(r.Fragment,{children:[s>0&&(0,_.jsx)("span",{className:"compare-step-spacer"}),(0,_.jsxs)("button",{type:"button",className:m,style:{"--step-color":u},onClick:()=>ua((s=>s===e.sequenceStep?null:e.sequenceStep)),title:"Planned Step ".concat(o)+(e.deliverycustomer?" \xb7 ".concat(e.deliverycustomer):"")+(e.expectedTs?" \xb7 ".concat(e.expectedTs.format("hh:mm A")):"")+(e.anomaly?" \xb7 deviation flagged":""),children:[(0,_.jsx)("span",{className:"compare-step-circle",children:c?(0,_.jsx)("span",{className:"compare-step-spin"}):o}),e.expectedTs&&(0,_.jsx)("span",{className:"compare-step-tick",children:e.expectedTs.format("HH:mm")})]})]},"step-p-".concat(e.deliveryid))}))}),(0,_.jsx)("div",{className:"compare-timeline-track is-actual",children:nt.map(((e,s)=>{var a;const t=String(e.orderstatus||"").toLowerCase(),i=V.Ys.has(t),n=V.yP.has(t),l=oa===e.sequenceStep,c=e.isLoading&&0===e.coordsCount,d=!e.isLoading&&0===e.coordsCount,o=(null===(a=e.order)||void 0===a?void 0:a.step)||e.sequenceStep,u=(0,V.gM)(o-1),m=["compare-step",l&&"is-focused",i&&"is-delivered",n&&"is-skipped",!i&&!n&&"is-pending",c&&"is-loading",d&&"is-no-data",e.anomaly&&"is-anomaly"].filter(Boolean).join(" ");return(0,_.jsxs)(r.Fragment,{children:[s>0&&(0,_.jsx)("span",{className:"compare-step-spacer"}),(0,_.jsxs)("button",{type:"button",className:m,style:{"--step-color":u},onClick:()=>ua((s=>s===e.sequenceStep?null:e.sequenceStep)),title:"Actual Visit ".concat(s+1," (Planned Step ").concat(o,")")+(e.deliverycustomer?" \xb7 ".concat(e.deliverycustomer):"")+(e.actualTs?" \xb7 ".concat(e.actualTs.format("hh:mm A")):"")+(e.anomaly?" \xb7 deviation flagged":""),children:[(0,_.jsx)("span",{className:"compare-step-circle",children:c?(0,_.jsx)("span",{className:"compare-step-spin"}):o}),e.actualTs&&(0,_.jsx)("span",{className:"compare-step-tick",children:e.actualTs.format("HH:mm")}),e.anomaly&&(0,_.jsx)("span",{className:"compare-step-flag",title:"Deviation flagged"})]})]},"step-a-".concat(e.deliveryid))}))})]})]}),(0,_.jsxs)("div",{className:"compare-progress-strip",children:[(0,_.jsx)("div",{className:"compare-progress-bar-wrap",children:(0,_.jsx)("div",{className:"compare-progress-bar-fill".concat(i?" is-done":""),style:{width:"".concat(t,"%")}})}),(0,_.jsx)("span",{className:"compare-progress-text",children:a>0?"Loading GPS\u2026 ".concat(s,"/").concat(e):"".concat(s,"/").concat(e," tracks")})]})]}),(()=>{const e="combined"===Ws,s=n?(0,V.gM)(n.sequenceStep-1):"linear-gradient(90deg, ".concat(V.Z3.slice(0,6).join(", "),")"),a=e?X:s,t=e?Q:s;return(0,_.jsxs)("div",{className:"compare-legend",children:[(0,_.jsxs)("span",{className:"compare-legend-item",children:[(0,_.jsx)("span",{className:"compare-legend-swatch is-step-color is-dashed",style:{background:a}}),"Planned (dashed)"]}),(0,_.jsxs)("span",{className:"compare-legend-item",children:[(0,_.jsx)("span",{className:"compare-legend-swatch is-step-color",style:{background:t}}),"Actual GPS (solid)"]}),(0,_.jsx)("span",{className:"compare-legend-note",children:"Kalman-smoothed GPS \xb7 OSRM road-snapped"})]})})()]})]})})()}),Gs&&Ya&&(0,_.jsx)(W,{focusedRider:Ya,compareDeltas:tt,compareSummary:it,actualOrdered:nt,focusedCompareStep:oa,setFocusedCompareStep:ua,sequenceOpen:Zs,setSequenceOpen:Xs,expandedSeqGroups:sa,setExpandedSeqGroups:aa,onClose:()=>Js(!1)})]}),Ue&&(0,_.jsx)("div",{className:"dispatch-popup-center",role:"dialog","aria-label":"Order ".concat(Ue.orderid," details"),onMouseEnter:()=>{Be.current&&(clearTimeout(Be.current),Be.current=null)},onMouseLeave:()=>{(e=>{if(!e)return!1;if(He.current.has(String(e.orderid)))return!0;if(Gs&&Ya&&null!=e.deliveryid){const s=at.find((s=>String(s.deliveryid)===String(e.deliveryid)));if(s&&oa===s.sequenceStep)return!0}return!1})(Ue)||(Be.current&&clearTimeout(Be.current),Be.current=setTimeout((()=>{Ge(null),Be.current=null}),200))},children:(0,_.jsxs)("div",{className:"dispatch-popup-card dispatch-popup",children:[(0,_.jsx)("button",{type:"button",className:"dispatch-popup-center-close","aria-label":"Close order details",onClick:()=>{He.current.delete(String(Ue.orderid)),Ge(null)},children:"\xd7"}),(e=>{const s=(0,V.Cx)(e.orderstatus),a=e.rider_id||e.userid,t=V.Ys.has(String(e.orderstatus||"").toLowerCase())?null:pt(a,e);return(0,_.jsxs)("div",{style:{height:"100%",width:"100%"},children:[(0,_.jsxs)("div",{className:"pu-header",children:[(0,_.jsxs)("div",{className:"pu-header-top",children:[(0,_.jsxs)("div",{className:"pu-id",children:["ORDER #",e.orderid]}),e.orderstatus&&(0,_.jsx)("span",{className:"pu-status-chip",style:{background:s.bg,color:s.fg},children:s.label})]}),(0,_.jsxs)("div",{className:"pu-header-main",children:[(0,_.jsxs)("div",{className:"pu-header-left",children:[(0,_.jsxs)("div",{className:"pu-rider",children:[(0,_.jsx)(S.aVM,{})," ",(0,_.jsx)("span",{children:e.rider_name||e.ridername||"Unassigned"})]}),(e.deliverycustomer||e.customername)&&(0,_.jsxs)("div",{className:"pu-customer",title:e.deliverycustomer||e.customername,children:[(0,_.jsx)(S.u9F,{}),(0,_.jsx)("span",{children:e.deliverycustomer||e.customername})]}),null!=e.deliveryid&&(0,_.jsxs)("div",{className:"pu-delivery-id",children:["Delivery #",e.deliveryid]})]}),null!=e.step&&(0,_.jsxs)("div",{className:"pu-header-step",children:[(0,_.jsx)("span",{className:"pu-header-step-label",children:"Step"}),(0,_.jsxs)("span",{className:"pu-header-step-value",children:[null!=e.trip_number&&e.trip_number>1?"T".concat(e.trip_number,"\xb7"):"",e.step]})]})]})]}),(0,_.jsxs)("div",{className:"pu-body",children:[ye.some((s=>e[s.key]))&&(0,_.jsxs)("div",{className:"pu-section",children:[(0,_.jsx)("div",{className:"pu-section-label",children:"Timeline"}),(0,_.jsx)("div",{className:"pu-timeline",children:ye.map((s=>{const a=be(e[s.key]);return a?(0,_.jsxs)("div",{className:"pu-tl-row ".concat(s.final?"delivered":""),children:[(0,_.jsx)("span",{className:"pu-tl-dot"}),(0,_.jsx)("span",{className:"pu-tl-label",children:s.label}),(0,_.jsx)("span",{className:"pu-tl-time",children:a})]},s.key):null}))})]}),(0,_.jsxs)("div",{className:"pu-section",children:[(0,_.jsx)("div",{className:"pu-section-label",children:"Details"}),(0,_.jsxs)("div",{className:"pu-details-grid",children:[(e.pickupcustomer||e.locationname||e.pickuplocation)&&(0,_.jsxs)("div",{className:"pu-detail",children:[(0,_.jsx)("div",{className:"pu-detail-icon",children:(0,_.jsx)(S.NtI,{})}),(0,_.jsxs)("div",{className:"pu-detail-body",children:[(0,_.jsx)("div",{className:"pu-detail-label",children:"Pickup"}),(0,_.jsx)("div",{className:"pu-detail-value",title:e.pickupcustomer||e.locationname||e.pickuplocation,children:e.pickupcustomer||e.locationname||e.pickuplocation})]})]}),(e.deliverysuburb||e.deliveryaddress)&&(0,_.jsxs)("div",{className:"pu-detail",children:[(0,_.jsx)("div",{className:"pu-detail-icon",children:(0,_.jsx)(S.JFD,{})}),(0,_.jsxs)("div",{className:"pu-detail-body",children:[(0,_.jsx)("div",{className:"pu-detail-label",children:"Drop"}),(0,_.jsx)("div",{className:"pu-detail-value",title:e.deliveryaddress||e.deliverysuburb,children:e.deliverysuburb||se(e.deliveryaddress)})]})]}),e.zone_name&&(0,_.jsxs)("div",{className:"pu-detail",children:[(0,_.jsx)("div",{className:"pu-detail-icon",children:(0,_.jsx)(S.Cd7,{})}),(0,_.jsxs)("div",{className:"pu-detail-body",children:[(0,_.jsx)("div",{className:"pu-detail-label",children:"Zone"}),(0,_.jsx)("div",{className:"pu-detail-value",title:e.zone_name,children:e.zone_name})]})]}),(e.rider_id||e.userid)&&(0,_.jsxs)("div",{className:"pu-detail",children:[(0,_.jsx)("div",{className:"pu-detail-icon",children:(0,_.jsx)(S.aVM,{})}),(0,_.jsxs)("div",{className:"pu-detail-body",children:[(0,_.jsx)("div",{className:"pu-detail-label",children:"Rider ID"}),(0,_.jsxs)("div",{className:"pu-detail-value",children:["#",e.rider_id||e.userid]})]})]})]}),(null!=e.plannedkms||null!=e.kms||null!=e.actualkms||null!=e.riderkms||null!==t)&&(0,_.jsxs)("div",{className:"pu-distance-row",children:[null!=e.plannedkms&&""!==e.plannedkms?(0,_.jsxs)("div",{className:"pu-distance-chip",children:[(0,_.jsx)("span",{className:"pu-distance-icon",children:(0,_.jsx)(S.xI$,{})}),(0,_.jsx)("span",{className:"pu-distance-label",children:"Planned"}),(0,_.jsxs)("span",{className:"pu-distance-value",children:[parseFloat(e.plannedkms).toFixed(1)," km"]})]}):null!=e.kms&&""!==e.kms?(0,_.jsxs)("div",{className:"pu-distance-chip",children:[(0,_.jsx)("span",{className:"pu-distance-icon",children:(0,_.jsx)(S.xI$,{})}),(0,_.jsx)("span",{className:"pu-distance-label",children:"Planned"}),(0,_.jsxs)("span",{className:"pu-distance-value",children:[parseFloat(e.kms).toFixed(1)," km"]})]}):null,null!=e.actualkms&&""!==e.actualkms&&(0,_.jsxs)("div",{className:"pu-distance-chip",children:[(0,_.jsx)("span",{className:"pu-distance-icon",children:(0,_.jsx)(S.xI$,{})}),(0,_.jsx)("span",{className:"pu-distance-label",children:"Actual"}),(0,_.jsxs)("span",{className:"pu-distance-value",children:[parseFloat(e.actualkms).toFixed(1)," km"]})]}),null!=e.riderkms&&""!==e.riderkms&&(0,_.jsxs)("div",{className:"pu-distance-chip",children:[(0,_.jsx)("span",{className:"pu-distance-icon",children:(0,_.jsx)(S.xI$,{})}),(0,_.jsx)("span",{className:"pu-distance-label",children:"Rider KMs"}),(0,_.jsxs)("span",{className:"pu-distance-value",children:[parseFloat(e.riderkms).toFixed(1)," km"]})]}),null!==t&&(0,_.jsxs)("div",{className:"pu-distance-chip pu-est-meters",title:"Estimated distance to drop location",children:[(0,_.jsx)("span",{className:"pu-distance-icon",children:(0,_.jsx)(S.HPi,{})}),(0,_.jsx)("span",{className:"pu-distance-label",children:"Est. to Drop"}),(0,_.jsx)("span",{className:"pu-distance-value",children:ht(t)})]})]})]})]})]})})(Ue)]})})]}),!a&&"analysis"===C&&(0,_.jsxs)("div",{id:"dispatch-analysis",children:[(0,_.jsx)("div",{className:"da-picker-row",children:Ae.map((e=>{var s;const a=z[e.key],t=E===e.key,i=!1===(null===a||void 0===a||null===(s=a.data)||void 0===s?void 0:s.success),r=i?"#fee2e2":a?"".concat(e.color,"22"):"#f1f5f9",n=i?"#dc2626":a?e.color:"#64748b",l=t?"Loading\u2026":i?"! Failed":a?"\u2713 ".concat(a.fetchedAt):"Fetch",c=L===e.key;return(0,_.jsxs)("button",{type:"button",className:"da-picker ".concat(a?"has-data":""," ").concat(t?"is-loading":""," ").concat(c?"is-active":""),onClick:()=>!t&&T(e.key),style:{borderColor:c?e.color:i?"#fecaca":a?e.border:"#e2e8f0",background:i?"#fef2f2":a?e.bg:"#ffffff",boxShadow:c?"0 0 0 2px ".concat(e.color,"33"):void 0},disabled:t,children:[(0,_.jsxs)("div",{className:"da-picker-head",children:[(0,_.jsx)("div",{className:"da-picker-badge",style:{background:"".concat(e.color,"22"),color:e.color},children:e.label[0]}),(0,_.jsxs)("div",{className:"da-picker-meta",children:[(0,_.jsx)("div",{className:"da-picker-name",children:e.label}),(0,_.jsx)("div",{className:"da-picker-range",children:e.timeRange})]}),(0,_.jsx)("span",{className:"da-picker-status",style:{background:r,color:n},children:l})]}),(0,_.jsx)("div",{className:"da-picker-sub",children:e.sub})]},e.key)}))}),((e,s,a)=>{if(!L)return(0,_.jsx)("div",{className:"da-empty",children:"Pick a batch above to view its efficiency analysis."});const t=Ae.find((e=>e.key===L)),r=z[L],n=E===L;if(n&&!r)return(0,_.jsxs)("div",{className:"da-empty",children:["Loading ",t.label," batch\u2026"]});if(!r)return null;const l=r.data||{};var c,d;if(!1===l.success)return(0,_.jsxs)("div",{className:"da-result-card da-result-card-error",style:{borderColor:"#fecaca",borderTopColor:"#ef4444"},children:[(0,_.jsxs)("div",{className:"da-result-head",children:[(0,_.jsxs)("div",{children:[(0,_.jsxs)("div",{className:"da-result-title",children:[t.label," Batch"]}),(0,_.jsxs)("div",{className:"da-result-sub",children:[t.timeRange," \xb7 Fetched at ",r.fetchedAt]})]}),(0,_.jsx)("button",{type:"button",className:"da-result-refresh",title:"Retry",onClick:()=>T(L),disabled:n,style:{background:"#fee2e2",color:"#dc2626"},children:(0,_.jsx)(S.joZ,{})})]}),(0,_.jsxs)("div",{className:"da-error",children:[(0,_.jsxs)("div",{className:"da-error-title",children:[(0,_.jsx)(S.ItP,{}),(0,_.jsx)("span",{children:(null===l||void 0===l||null===(c=l.error)||void 0===c?void 0:c.code)||"Request failed"})]}),(0,_.jsx)("div",{className:"da-error-msg",children:(null===l||void 0===l||null===(d=l.error)||void 0===d?void 0:d.message)||"The server returned an error."}),(null===l||void 0===l?void 0:l.request_id)&&(0,_.jsxs)("div",{className:"da-error-meta",children:["request_id: ",l.request_id]})]})]});const o=l.fleet_summary||{},u=Array.isArray(l.rider_timelines)?l.rider_timelines:[],m=Array.isArray(l.substitution_opportunities)?l.substitution_opportunities:[],p=l.top_recommendation,h=!(!p||!p.idle_rider_name&&!p.idle_rider_id),v=!!(p&&p.action&&"none"!==p.action&&h),x=l.window||{},j=(e,s)=>{const a=String(null!==e&&void 0!==e?e:"").trim();if(!a)return s||"\u2014";const t="string"===typeof s&&/^Rider\s+\d+$/i.test(s.trim()),i=Array.isArray(qa)?qa.find((e=>String(e.id)===a)):null;if(i&&i.riderName)return i.riderName;const r=Array.isArray(za)?za.find((e=>String(e.id)===a)):null;return r&&r.riderName?r.riderName:!t&&s?s:"Rider ".concat(a)},f=Pe(o.fleet_start),g=Pe(o.fleet_done),N=null!=f&&null!=g&&g>f?g-f:null,b=parseFloat(o.avg_utilisation_pct),y=Number.isFinite(b)?b:null,k=null==y?"unknown":y>=85?"good":y>=70?"ok":"low",w="good"===k?"#10b981":"ok"===k?"#f59e0b":"low"===k?"#ef4444":"#94a3b8",F=(e=>{let{assessment:s,spreadMin:a,stdev:t}=e;const i=String(s||"").toLowerCase();return/high imbalance|severe|critical/.test(i)||/imbalance|recommend/.test(i)||null!=a&&a>30||null!=t&&t>1?"warn":/balanced|excellent|good/.test(i)?"success":"info"})({assessment:null===p||void 0===p?void 0:p.fleet_balance_assessment,spreadMin:parseFloat(o.finish_time_spread_minutes),stdev:parseFloat(o.load_balance_stdev)}),M=u.map((e=>{const s=Pe(e.started_at),a=Pe(e.finished_at);let t=0,r=100;null!=f&&N&&(null!=s&&(t=Math.max(0,Math.min(100,(s-f)/N*100))),null!=a&&(r=Math.max(0,Math.min(100,(a-f)/N*100))));const n=Math.max(0,r-t),l=parseFloat(e.active_minutes),c=parseFloat(e.idle_minutes),d=(Number.isFinite(l)?l:0)+(Number.isFinite(c)?c:0),o=d>0?l/d*100:y,u=null==o?"unknown":o>=85?"good":o>=70?"ok":"low",m="good"===u?"#10b981":"ok"===u?"#f59e0b":"low"===u?"#ef4444":"#94a3b8",p=j(e.userid,e.name);return(0,i.A)((0,i.A)({},e),{},{displayName:p,_startPct:t,_endPct:r,_activePct:n,_riderUtilPct:o,_riderColor:m})}));return M.sort(((e,s)=>(Pe(s.finished_at)||0)-(Pe(e.finished_at)||0))),(0,_.jsxs)("div",{className:"da-detail",children:[(0,_.jsxs)("div",{className:"da-detail-head",style:{borderTopColor:t.color,background:t.bg},children:[(0,_.jsxs)("div",{children:[(0,_.jsxs)("div",{className:"da-detail-title",children:[t.label," Batch",(0,_.jsxs)("span",{className:"da-detail-sub-inline",children:[l.date?" \xb7 ".concat(l.date):"",x.from&&x.to?" \xb7 ".concat(x.from," \u2013 ").concat(x.to):""]})]}),(0,_.jsxs)("div",{className:"da-detail-sub",children:["Fetched at ",r.fetchedAt," \xb7 Input deliveries: ",null!==(e=l.input_delivery_count)&&void 0!==e?e:"\u2014"]})]}),(0,_.jsxs)("div",{className:"da-detail-actions",children:[(0,_.jsxs)("span",{className:"da-live-tag ".concat(n?"is-active":""),title:"Auto-refreshing every ".concat(Math.round(15),"s"),children:[(0,_.jsx)("span",{className:"da-live-dot"}),"Live \xb7 ",Math.round(15),"s"]}),(0,_.jsx)("button",{type:"button",className:"da-result-refresh",title:"Refresh now",onClick:()=>{P((e=>{const s=(0,i.A)({},e);return delete s[L],s})),O.mutate({batch:L,tenantId:916})},disabled:n,style:{background:"".concat(t.color,"22"),color:t.color},children:(0,_.jsx)(S.joZ,{})})]})]}),(0,_.jsx)("div",{className:"da-section",children:(0,_.jsxs)("div",{className:"da-hero-row",children:[(0,_.jsxs)("div",{className:"da-hero-card",children:[(0,_.jsx)("div",{className:"da-hero-icon",style:{background:"#6625821f",color:"#662582"},children:(0,_.jsx)(S.aEx,{})}),(0,_.jsx)("div",{className:"da-hero-value",children:ze(o.total_orders)}),(0,_.jsx)("div",{className:"da-hero-label",children:"Total Orders"}),null!=l.input_delivery_count&&l.input_delivery_count!==o.total_orders&&(0,_.jsxs)("div",{className:"da-hero-sub",children:[l.input_delivery_count," input"]})]}),(0,_.jsxs)("div",{className:"da-hero-card",children:[(0,_.jsx)("div",{className:"da-hero-icon",style:{background:"#0ea5e91f",color:"#0ea5e9"},children:(0,_.jsx)(S.GQB,{})}),(0,_.jsx)("div",{className:"da-hero-value",children:ze(o.total_riders)}),(0,_.jsx)("div",{className:"da-hero-label",children:"Active Riders"}),null!=o.orders_per_rider_avg&&(0,_.jsxs)("div",{className:"da-hero-sub",children:[o.orders_per_rider_avg," avg orders / rider"]})]}),(0,_.jsxs)("div",{className:"da-hero-card",children:[(0,_.jsx)("div",{className:"da-hero-icon",style:{background:"#8b5cf61f",color:"#8b5cf6"},children:(0,_.jsx)(S.XT0,{})}),(0,_.jsxs)("div",{className:"da-hero-value",children:[null!=o.total_duration_minutes?"".concat(o.total_duration_minutes):"\u2014",null!=o.total_duration_minutes&&(0,_.jsx)("span",{className:"da-hero-unit",children:" min"})]}),(0,_.jsx)("div",{className:"da-hero-label",children:"Fleet Window"}),o.fleet_start&&o.fleet_done&&(0,_.jsxs)("div",{className:"da-hero-sub",children:[o.fleet_start," \u2192 ",o.fleet_done]})]})]})}),(0,_.jsxs)("div",{className:"da-section",children:[(0,_.jsx)("div",{className:"da-section-label",children:"Fleet Health"}),(0,_.jsxs)("div",{className:"da-health-row",children:[(0,_.jsxs)("div",{className:"da-health-card",children:[(0,_.jsx)("div",{className:"da-ring",style:{"--ring-color":w,"--ring-pct":null!=y?Math.max(0,Math.min(100,y)):0},children:(0,_.jsxs)("span",{className:"da-ring-num",children:[null!=y?"".concat(y.toFixed(0)):"\u2014",null!=y&&(0,_.jsx)("span",{className:"da-ring-unit",children:"%"})]})}),(0,_.jsxs)("div",{className:"da-health-meta",children:[(0,_.jsx)("div",{className:"da-health-label",children:"Avg Utilisation"}),(0,_.jsx)("div",{className:"da-health-sub",style:{color:w},children:"good"===k?"Strong":"ok"===k?"Moderate":"low"===k?"Low":"\u2014"})]})]}),(0,_.jsxs)("div",{className:"da-health-card da-health-card-stat",children:[(0,_.jsx)("div",{className:"da-health-value",children:null!=o.load_balance_stdev?parseFloat(o.load_balance_stdev).toFixed(2):"\u2014"}),(0,_.jsx)("div",{className:"da-health-label",children:"Load Balance \u03c3"}),(0,_.jsx)("div",{className:"da-health-sub",children:null!=o.load_balance_stdev?parseFloat(o.load_balance_stdev)>1?"Uneven workload":"Workload balanced":"Stdev of orders / rider"})]}),(0,_.jsxs)("div",{className:"da-health-card da-health-card-stat",children:[(0,_.jsxs)("div",{className:"da-health-value",children:[null!=o.finish_time_spread_minutes?"".concat(o.finish_time_spread_minutes):"\u2014",null!=o.finish_time_spread_minutes&&(0,_.jsx)("span",{className:"da-health-unit",children:" min"})]}),(0,_.jsx)("div",{className:"da-health-label",children:"Finish Spread"}),(0,_.jsx)("div",{className:"da-health-sub",children:null!=o.finish_time_stdev_minutes?"\u03c3 ".concat(parseFloat(o.finish_time_stdev_minutes).toFixed(1)," min"):"First \u2192 last finish"})]}),(0,_.jsxs)("div",{className:"da-health-card da-health-card-stat",children:[(0,_.jsxs)("div",{className:"da-health-value",children:[null!=o.avg_active_minutes?"".concat(parseFloat(o.avg_active_minutes).toFixed(0)):"\u2014",null!=o.avg_active_minutes&&(0,_.jsx)("span",{className:"da-health-unit",children:" min"})]}),(0,_.jsx)("div",{className:"da-health-label",children:"Avg Active"}),(0,_.jsx)("div",{className:"da-health-sub",children:"Per rider, this batch"})]})]})]}),(0,_.jsxs)("div",{className:"da-section",children:[(0,_.jsx)("div",{className:"da-section-label",children:"Top Recommendation"}),v?(0,_.jsxs)("div",{className:"da-rec-banner is-action",children:[(0,_.jsx)("div",{className:"da-rec-banner-icon",children:(0,_.jsx)(S.DX0,{})}),(0,_.jsxs)("div",{className:"da-rec-banner-body",children:[(0,_.jsxs)("div",{className:"da-rec-head",children:[(0,_.jsx)("div",{className:"da-rec-action",children:(0,_.jsx)("span",{children:(p.action||"recommendation").replaceAll("_"," ")})}),null!=p.fleet_improvement_minutes&&(0,_.jsxs)("span",{className:"da-rec-improve",style:p.fleet_improvement_minutes>0?{background:"#dcfce7",color:"#166534"}:{background:"#f1f5f9",color:"#475569"},children:[p.fleet_improvement_minutes>0?"\u2191":"\u2022"," Fleet improves by ",p.fleet_improvement_minutes," min"]})]}),(0,_.jsxs)("div",{className:"da-rec-line",children:[(0,_.jsx)("strong",{children:j(p.idle_rider_id,p.idle_rider_name)}),p.primary_kitchen&&(0,_.jsxs)(_.Fragment,{children:[" \xb7 primary kitchen ",(0,_.jsx)("strong",{children:p.primary_kitchen})]}),p.second_kitchen&&(0,_.jsxs)(_.Fragment,{children:[" \u2192 also serve ",(0,_.jsx)("strong",{children:p.second_kitchen})," after ",p.second_kitchen_dispatch_after||"\u2014"]})]}),p.description&&(0,_.jsx)("div",{className:"da-rec-desc",children:p.description}),(null===p||void 0===p?void 0:p.fleet_balance_assessment)&&(0,_.jsx)("div",{className:"da-rec-assess",children:p.fleet_balance_assessment}),(null===(s=p.activate_when)||void 0===s||null===(a=s.rules)||void 0===a?void 0:a.length)>0&&(0,_.jsxs)("div",{className:"da-rec-rules",children:[(0,_.jsxs)("div",{className:"da-rec-rules-head",children:["Activate when (",p.activate_when.condition||"AND","):"]}),p.activate_when.rules.map(((e,s)=>(0,_.jsxs)("div",{className:"da-rec-rule",children:[(0,_.jsxs)("code",{children:[e.field," ",e.operator," ",e.value]}),e.reason&&(0,_.jsxs)("span",{className:"da-rec-rule-why",children:[" \u2014 ",e.reason]})]},s)))]})]})]}):(0,_.jsxs)("div",{className:"da-rec-banner is-".concat(F),children:[(0,_.jsx)("div",{className:"da-rec-banner-icon",children:"warn"===F?(0,_.jsx)(S.Wux,{}):"success"===F?(0,_.jsx)(S.mU9,{}):(0,_.jsx)(S.DX0,{})}),(0,_.jsxs)("div",{className:"da-rec-banner-body",children:[(0,_.jsx)("div",{className:"da-rec-action",children:(0,_.jsx)("span",{children:"warn"===F?"Fleet imbalance detected \u2014 no feasible substitution":"success"===F?"Fleet ran balanced \u2014 no reassignment needed":"No action recommended"})}),(null===p||void 0===p?void 0:p.reason)&&(0,_.jsx)("div",{className:"da-rec-desc",children:p.reason}),(null===p||void 0===p?void 0:p.fleet_balance_assessment)&&(0,_.jsx)("div",{className:"da-rec-assess",children:p.fleet_balance_assessment})]})]})]}),M.length>0&&(0,_.jsxs)("div",{className:"da-section",children:[(0,_.jsxs)("div",{className:"da-section-label",children:["Rider Timelines ",(0,_.jsxs)("span",{className:"da-section-count",children:["(",M.length,")"]}),(0,_.jsx)("span",{className:"da-section-hint",children:"Sorted by latest finish \u2014 bottleneck riders first"})]}),(0,_.jsxs)("div",{className:"da-gantt-axis",children:[(0,_.jsx)("span",{children:o.fleet_start||"\u2014"}),(0,_.jsx)("span",{className:"da-gantt-axis-mid",children:null!=o.total_duration_minutes?"".concat(o.total_duration_minutes," min batch"):"Batch window"}),(0,_.jsx)("span",{children:o.fleet_done||"\u2014"})]}),(0,_.jsx)("div",{className:"da-timeline-list",children:M.map((e=>{var s,a,t;const i="active"===String(e.status||"").toLowerCase(),r=null!==(s=e.completed_orders)&&void 0!==s?s:e.order_count,n=null!==(a=e.pending_orders)&&void 0!==a?a:0,l=null!=r&&e.order_count>0?Math.max(0,Math.min(100,r/e.order_count*100)):0,c=null!=e.idle_minutes&&e.idle_minutes>30,d=null!=e.kitchen_confidence&&e.kitchen_confidence<.7;return(0,_.jsxs)("div",{className:"da-timeline-card",children:[(0,_.jsxs)("div",{className:"da-timeline-top",children:[(0,_.jsxs)("div",{className:"da-timeline-name",children:[(0,_.jsx)(S.aVM,{style:{color:e._riderColor}}),(0,_.jsx)("span",{title:e.name&&e.name!==e.displayName?"API name: ".concat(e.name):void 0,children:e.displayName}),(0,_.jsxs)("span",{className:"da-timeline-id",children:["#",e.userid]})]}),(0,_.jsx)("span",{className:"da-pill ".concat(i?"is-active":"is-idle"),children:e.status})]}),(0,_.jsxs)("div",{className:"da-gantt-row",children:[(0,_.jsxs)("div",{className:"da-gantt-track",title:"".concat(e.started_at," \u2192 ").concat(e.finished_at),children:[(0,_.jsxs)("div",{className:"da-gantt-fill",style:{left:"".concat(e._startPct,"%"),width:"".concat(Math.max(2,e._activePct),"%"),background:e._riderColor},children:[(0,_.jsx)("span",{className:"da-gantt-fill-start",children:e.started_at}),(0,_.jsx)("span",{className:"da-gantt-fill-end",children:e.finished_at})]}),e._endPct<99&&(0,_.jsx)("div",{className:"da-gantt-idle",style:{left:"".concat(e._endPct,"%"),width:"".concat(100-e._endPct,"%")},title:"Idle ".concat(e.idle_minutes," min after finishing")})]}),(0,_.jsx)("span",{className:"da-gantt-util",style:{background:"".concat(e._riderColor,"22"),color:e._riderColor},title:"Per-rider utilisation: ".concat(null!=e._riderUtilPct?e._riderUtilPct.toFixed(0):"\u2014","%"),children:null!=e._riderUtilPct?"".concat(e._riderUtilPct.toFixed(0),"%"):"\u2014"})]}),(0,_.jsxs)("div",{className:"da-timeline-mid",children:[e.kitchen?(0,_.jsxs)("span",{className:"da-chip",title:null!=e.kitchen_confidence?"Kitchen confidence: ".concat((100*e.kitchen_confidence).toFixed(0),"%"):void 0,children:[(0,_.jsx)(S.NtI,{})," ",e.kitchen,null!=e.kitchen_confidence&&(0,_.jsx)("span",{className:"da-conf-dot ".concat(d?"is-low":"is-ok"),"aria-label":"Confidence ".concat((100*e.kitchen_confidence).toFixed(0),"%")})]}):(0,_.jsxs)("span",{className:"da-chip",style:{background:"#f8fafc",color:"#64748b",borderColor:"#e2e8f0",borderStyle:"dashed"},title:"Solver did not identify a primary kitchen for this rider",children:[(0,_.jsx)(S.NtI,{})," Unassigned"]}),(0,_.jsxs)("span",{className:"da-chip da-chip-orders",title:"Completed ".concat(r," of ").concat(e.order_count),children:[(0,_.jsx)(S.gsJ,{}),(0,_.jsxs)("span",{className:"da-orders-label",children:[r,"/",e.order_count]}),(0,_.jsx)("span",{className:"da-orders-bar",children:(0,_.jsx)("span",{className:"da-orders-bar-fill",style:{width:"".concat(l,"%")}})}),n>0&&(0,_.jsxs)("span",{className:"da-orders-pending",children:[n," pending"]})]}),null!=e.pace_orders_per_hour&&(0,_.jsxs)("span",{className:"da-chip",title:"Delivery pace this batch",children:[(0,_.jsx)(S.BJM,{})," ",parseFloat(e.pace_orders_per_hour).toFixed(1)," / hr"]}),null!=e.active_minutes&&(0,_.jsxs)("span",{className:"da-chip",title:"Time actively delivering",children:[(0,_.jsx)(S.pWE,{})," ",parseFloat(e.active_minutes).toFixed(0)," min active"]}),(0,_.jsxs)("span",{className:"da-chip",style:c?{background:"#fef3c7",color:"#92400e",borderColor:"#fde68a"}:void 0,title:"Idle time after this rider finished \u2014 fleet kept running",children:[(0,_.jsx)(S.VP9,{})," ",null!==(t=e.idle_minutes)&&void 0!==t?t:0," min idle"]}),null!=e.free_window_minutes&&(0,_.jsxs)("span",{className:"da-chip",style:e.free_window_minutes>=30?{background:"#ecfdf5",color:"#065f46",borderColor:"#a7f3d0"}:e.free_window_minutes>0?{background:"#fefce8",color:"#854d0e",borderColor:"#fde68a"}:{background:"#fef2f2",color:"#991b1b",borderColor:"#fecaca"},title:"Free window before the next batch \u2014 capacity available for a follow-up run",children:[(0,_.jsx)(S.pWE,{})," ",parseFloat(e.free_window_minutes).toFixed(0)," min free"]})]})]},e.userid)}))})]}),m.length>0&&(0,_.jsxs)("div",{className:"da-section",children:[(0,_.jsxs)("div",{className:"da-section-label",children:["Substitution Opportunities ",(0,_.jsxs)("span",{className:"da-section-count",children:["(",m.length,")"]})]}),(0,_.jsx)("div",{className:"da-sub-list",children:m.map(((e,s)=>{var a;const t=e.idle_rider||{},i=e.most_relieved_rider||{},r=null!==(a=e.fleet_improvement_minutes)&&void 0!==a?a:0;return(0,_.jsxs)("div",{className:"da-sub-card",children:[(0,_.jsxs)("div",{className:"da-sub-head",children:[(0,_.jsxs)("div",{className:"da-sub-title",children:[(0,_.jsx)("strong",{children:j(t.userid,t.name)})," ","covers ",(0,_.jsx)("strong",{children:e.target_kitchen})]}),(0,_.jsxs)("span",{className:"da-sub-improve",style:r>0?{background:"#dcfce7",color:"#166534"}:{background:"#f1f5f9",color:"#475569"},children:["Fleet ",r>0?"\u2191":"\u2022"," ",r," min"]})]}),(0,_.jsxs)("div",{className:"da-sub-meta",children:[(0,_.jsxs)("span",{className:"da-chip",children:[(0,_.jsx)(S.xI$,{})," ",e.travel_to_kitchen_km," km"]}),(0,_.jsxs)("span",{className:"da-chip",children:[(0,_.jsx)(S.pWE,{})," ",e.travel_to_kitchen_minutes," min travel"]}),(0,_.jsxs)("span",{className:"da-chip",children:[(0,_.jsx)(S.VP9,{})," arrives ",e.arrive_at_kitchen]}),(0,_.jsxs)("span",{className:"da-chip",children:[(0,_.jsx)(S.gsJ,{})," ",e.total_orders_transferred," orders"]}),(0,_.jsxs)("span",{className:"da-chip",children:[(0,_.jsx)(S.xI$,{})," +",e.extra_km_for_idle_rider," km for idle rider"]})]}),(i.name||null!=i.userid)&&(0,_.jsxs)("div",{className:"da-sub-relieved",children:[(0,_.jsx)(S.imn,{}),"Most relieved: ",(0,_.jsx)("strong",{children:j(i.userid,i.name)})," ","(",i.original_finish," \u2192 ",i.new_finish,", saves"," ",i.time_saved_minutes," min)"]}),Array.isArray(e.orders_to_transfer)&&e.orders_to_transfer.length>0&&(0,_.jsxs)("div",{className:"da-sub-transfers",children:[(0,_.jsx)("div",{className:"da-sub-transfers-head",children:"Orders transferred"}),e.orders_to_transfer.map((e=>{var s;const a=null!==(s=e.improvement_minutes)&&void 0!==s?s:0;return(0,_.jsxs)("div",{className:"da-transfer-row",children:[(0,_.jsxs)("span",{className:"da-transfer-id",children:["#",e.deliveryid]}),(0,_.jsxs)("span",{className:"da-transfer-from",children:["from ",j(e.from_rider_id||e.from_userid,e.from_rider_name)]}),(0,_.jsxs)("span",{className:"da-transfer-time",children:[e.original_delivery_time," \u2192 ",e.estimated_delivery_time]}),(0,_.jsxs)("span",{className:"da-transfer-imp",style:a>0?{background:"#dcfce7",color:"#166534"}:a<0?{background:"#fee2e2",color:"#991b1b"}:{background:"#f1f5f9",color:"#475569"},children:[a>0?"+":"",a," min"]})]},e.deliveryid)}))]})]},s)}))})]})]})})()]}),q&&(0,_.jsx)("div",{className:"da-pos-modal-backdrop",role:"dialog","aria-modal":"true","aria-label":"Last known position of ".concat(q.name),onClick:e=>{e.target===e.currentTarget&&I(null)},children:(0,_.jsxs)("div",{className:"da-pos-modal-card",children:[(0,_.jsxs)("div",{className:"da-pos-modal-head",children:[(0,_.jsxs)("div",{className:"da-pos-modal-title-wrap",children:[(0,_.jsx)("div",{className:"da-pos-modal-avatar",style:{background:"".concat(q.color||"#662582","22"),color:q.color||"#662582"},children:(0,_.jsx)(S.aVM,{})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("div",{className:"da-pos-modal-title",children:q.name}),(0,_.jsxs)("div",{className:"da-pos-modal-sub",children:["#",q.userid,q.kitchen&&(0,_.jsxs)(_.Fragment,{children:[" \xb7 ",q.kitchen]}),q.finished_at&&(0,_.jsxs)(_.Fragment,{children:[" \xb7 finished ",q.finished_at]})]})]})]}),(0,_.jsxs)("div",{className:"da-pos-modal-actions",children:[(0,_.jsx)("span",{className:"da-pill ".concat("active"===String(q.status||"").toLowerCase()?"is-active":"is-idle"),children:q.status||"\u2014"}),(0,_.jsx)("button",{type:"button",className:"da-pos-modal-close","aria-label":"Close",onClick:()=>I(null),children:(0,_.jsx)(S.m6K,{})})]})]}),(0,_.jsx)("div",{className:"da-pos-modal-map",children:(0,_.jsxs)(d.W,{center:[q.lat,q.lon],zoom:13,scrollWheelZoom:!0,style:{width:"100%",height:"100%"},whenReady:e=>{const s=e.target;requestAnimationFrame((()=>s.invalidateSize())),setTimeout((()=>s.invalidateSize()),260)},children:[(0,_.jsx)(o.e,{attribution:'\xa9 OpenStreetMap',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),(0,_.jsx)(l.p,{position:[q.lat,q.lon],children:(0,_.jsxs)(m.z,{children:[(0,_.jsx)("strong",{children:q.name}),(0,_.jsx)("br",{}),q.lat.toFixed(6),", ",q.lon.toFixed(6)]})})]},"".concat(q.userid,"-").concat(q.lat,"-").concat(q.lon))}),(0,_.jsxs)("div",{className:"da-pos-modal-foot",children:[(0,_.jsxs)("div",{className:"da-pos-modal-coord",children:[(0,_.jsx)(S.gwi,{}),(0,_.jsxs)("span",{children:[(0,_.jsx)("strong",{children:"Lat:"})," ",q.lat.toFixed(6),(0,_.jsx)("span",{className:"da-pos-modal-sep",children:"\xb7"}),(0,_.jsx)("strong",{children:"Lon:"})," ",q.lon.toFixed(6)]})]}),(0,_.jsx)("button",{type:"button",className:"da-pos-modal-copy",onClick:()=>{var e,s;const a="".concat(q.lat.toFixed(6),", ").concat(q.lon.toFixed(6));null!==(e=navigator)&&void 0!==e&&null!==(s=e.clipboard)&&void 0!==s&&s.writeText&&navigator.clipboard.writeText(a)},title:"Copy coordinates",children:"Copy"})]})]})})]})}}}]); \ No newline at end of file diff --git a/build/static/js/3680.460c3cd4.chunk.js b/build/static/js/3680.460c3cd4.chunk.js deleted file mode 100644 index d772643..0000000 --- a/build/static/js/3680.460c3cd4.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[3680],{6604:(t,e,s)=>{s.d(e,{UF6:()=>r});var i=s(99230);function r(t){return(0,i.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M400 148l-21.12-24.57A191.43 191.43 0 00240 64C134 64 48 150 48 256s86 192 192 192a192.09 192.09 0 00181.07-128"}},{tag:"path",attr:{d:"M464 97.42V208a16 16 0 01-16 16H337.42c-14.26 0-21.4-17.23-11.32-27.31L436.69 86.1C446.77 76 464 83.16 464 97.42z"}}]})(t)}},36687:(t,e,s)=>{s.d(e,{E:()=>j});var i,r,n,o,a,u,l,h,c,p,f,d=s(80045),A=s(9950),v=s(39790),w=s(55149),b=s(64137),m=s(83568),y=s(53167),g=s(15941),k=s(69347),O=s(95732),Q=s(61664);function C(t,e){return t.filter((t=>!e.includes(t)))}var E=(i=new WeakMap,r=new WeakMap,n=new WeakMap,o=new WeakMap,a=new WeakMap,u=new WeakMap,l=new WeakSet,h=new WeakSet,c=new WeakSet,p=new WeakSet,f=new WeakSet,class extends O.Q{constructor(t,e,s){super(),(0,v.A)(this,f),(0,v.A)(this,p),(0,v.A)(this,c),(0,v.A)(this,h),(0,v.A)(this,l),(0,w.A)(this,i,{writable:!0,value:void 0}),(0,w.A)(this,r,{writable:!0,value:void 0}),(0,w.A)(this,n,{writable:!0,value:void 0}),(0,w.A)(this,o,{writable:!0,value:void 0}),(0,w.A)(this,a,{writable:!0,value:void 0}),(0,w.A)(this,u,{writable:!0,value:void 0}),(0,y.A)(this,i,t),(0,y.A)(this,n,[]),(0,y.A)(this,o,[]),(0,m.A)(this,l,M).call(this,[]),this.setQueries(e,s)}onSubscribe(){1===this.listeners.size&&(0,b.A)(this,o).forEach((t=>{t.subscribe((e=>{(0,m.A)(this,p,S).call(this,t,e)}))}))}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,(0,b.A)(this,o).forEach((t=>{t.destroy()}))}setQueries(t,e,s){(0,y.A)(this,n,t),(0,y.A)(this,a,e),g.j.batch((()=>{const t=(0,b.A)(this,o),e=(0,m.A)(this,c,R).call(this,(0,b.A)(this,n));e.forEach((t=>t.observer.setOptions(t.defaultedQueryOptions,s)));const i=e.map((t=>t.observer)),r=i.map((t=>t.getCurrentResult())),a=i.some(((e,s)=>e!==t[s]));(t.length!==i.length||a)&&((0,y.A)(this,o,i),(0,m.A)(this,l,M).call(this,r),this.hasListeners()&&(C(t,i).forEach((t=>{t.destroy()})),C(i,t).forEach((t=>{t.subscribe((e=>{(0,m.A)(this,p,S).call(this,t,e)}))})),(0,m.A)(this,f,q).call(this)))}))}getCurrentResult(){return(0,b.A)(this,u)}getQueries(){return(0,b.A)(this,o).map((t=>t.getCurrentQuery()))}getObservers(){return(0,b.A)(this,o)}getOptimisticResult(t,e){const s=(0,m.A)(this,c,R).call(this,t),i=s.map((t=>t.observer.getOptimisticResult(t.defaultedQueryOptions)));return[i,t=>(0,m.A)(this,h,W).call(this,null!==t&&void 0!==t?t:i,e),()=>s.map(((t,e)=>{const s=i[e];return t.defaultedQueryOptions.notifyOnChangeProps?s:t.observer.trackResult(s)}))]}});function M(t){var e;(0,y.A)(this,r,t),(0,y.A)(this,u,(0,m.A)(this,h,W).call(this,t,null===(e=(0,b.A)(this,a))||void 0===e?void 0:e.combine))}function W(t,e){return e?(0,Q.BH)((0,b.A)(this,u),e(t)):t}function R(t){const e=(0,b.A)(this,o),s=new Map(e.map((t=>[t.options.queryHash,t]))),r=t.map((t=>(0,b.A)(this,i).defaultQueryOptions(t))),n=r.flatMap((t=>{const e=s.get(t.queryHash);return null!=e?[{defaultedQueryOptions:t,observer:e}]:[]})),a=new Set(n.map((t=>t.defaultedQueryOptions.queryHash))),u=r.filter((t=>!a.has(t.queryHash))),l=t=>{const e=(0,b.A)(this,i).defaultQueryOptions(t),s=(0,b.A)(this,o).find((t=>t.options.queryHash===e.queryHash));return null!==s&&void 0!==s?s:new k.$((0,b.A)(this,i),e)},h=u.map((t=>({defaultedQueryOptions:t,observer:l(t)})));return n.concat(h).sort(((t,e)=>r.indexOf(t.defaultedQueryOptions)-r.indexOf(e.defaultedQueryOptions)))}function S(t,e){const s=(0,b.A)(this,o).indexOf(t);-1!==s&&((0,m.A)(this,l,M).call(this,function(t,e,s){const i=t.slice(0);return i[e]=s,i}((0,b.A)(this,r),s,e)),(0,m.A)(this,f,q).call(this))}function q(){g.j.batch((()=>{this.listeners.forEach((t=>{t((0,b.A)(this,r))}))}))}var H=s(15441),L=s(30618),x=s(45904),P=s(80958),U=s(73895);const _=["queries"];function j(t,e){let{queries:s}=t,i=(0,d.A)(t,_);const r=(0,H.jE)(e),n=(0,L.w)(),o=(0,x.h)(),a=A.useMemo((()=>s.map((t=>{const e=r.defaultQueryOptions(t);return e._optimisticResults=n?"isRestoring":"optimistic",e}))),[s,r,n]);a.forEach((t=>{(0,U.tu)(t),(0,P.LJ)(t,o)})),(0,P.wZ)(o);const[u]=A.useState((()=>new E(r,a,i))),[l,h,c]=u.getOptimisticResult(a,i.combine);A.useSyncExternalStore(A.useCallback((t=>n?()=>{}:u.subscribe(g.j.batchCalls(t))),[u,n]),(()=>u.getCurrentResult()),(()=>u.getCurrentResult())),A.useEffect((()=>{u.setQueries(a,i,{listeners:!1})}),[a,i,u]);const p=l.some(((t,e)=>(0,U.EU)(a[e],t)))?l.flatMap(((t,e)=>{const s=a[e];if(s){const e=new k.$(r,s);if((0,U.EU)(s,t))return(0,U.iL)(s,e,o);(0,U.nE)(t,n)&&(0,U.iL)(s,e,o)}return[]})):[];if(p.length>0)throw Promise.all(p);const f=l.find(((t,e)=>{const s=a[e];return s&&(0,P.$1)({result:t,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)})}));if(null!==f&&void 0!==f&&f.error)throw f.error;return h(c())}},37119:(t,e,s)=>{s.d(e,{p:()=>n});var i=s(464),r=s(2527);const n=(0,i.T7)((function(t){return new r.Control.Zoom(t)}))},48513:(t,e,s)=>{s.d(e,{z:()=>a});var i=s(464),r=s(69995),n=s(2527),o=s(9950);const a=(0,i.wk)((function(t,e){const s=new n.Popup(t,e.overlayContainer);return(0,r.Q)(s,e)}),(function(t,e,s,i){let{position:r}=s;(0,o.useEffect)((function(){const{instance:s}=t;function n(t){t.popup===s&&(s.update(),i(!0))}function o(t){t.popup===s&&i(!1)}return e.map.on({popupopen:n,popupclose:o}),null==e.overlayContainer?(null!=r&&s.setLatLng(r),s.openOn(e.map)):e.overlayContainer.bindPopup(s),function(){var t;e.map.off({popupopen:n,popupclose:o}),null===(t=e.overlayContainer)||void 0===t||t.unbindPopup(),e.map.removeLayer(s)}}),[t,e,i,r])}))},98007:(t,e,s)=>{s.d(e,{ko:()=>r});var i=s(3388);s(9950);function r(){return(0,i.U$)().map}}}]); \ No newline at end of file diff --git a/build/static/js/3838.10f5e491.chunk.js b/build/static/js/3838.10f5e491.chunk.js deleted file mode 100644 index b2a20a4..0000000 --- a/build/static/js/3838.10f5e491.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 3838.10f5e491.chunk.js.LICENSE.txt */ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[3838],{13838:(e,t,r)=>{r.d(t,{A:()=>Br});var n=r(9950),o=r.t(n,2),a=r(48738),i=r.n(a);const c=(0,n.createContext)(void 0);const l={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var s=r(89379);const u=(0,s.A)((0,s.A)({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),f={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},d={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},u),timePickerLocale:Object.assign({},f)},p="${label} is not a valid ${type}",h={locale:"en",Pagination:l,DatePicker:d,TimePicker:f,Calendar:d,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:p,method:p,array:p,object:p,number:p,date:p,boolean:p,integer:p,float:p,regexp:p,email:p,url:p,hex:p},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},g=(e,t)=>{const r=n.useContext(c),o=n.useMemo((()=>{var n;const o=t||h[e],a=null!==(n=null===r||void 0===r?void 0:r[e])&&void 0!==n?n:{};return Object.assign(Object.assign({},"function"===typeof o?o():o),a||{})}),[e,t,r]);return[o,n.useMemo((()=>{const e=null===r||void 0===r?void 0:r.locale;return(null===r||void 0===r?void 0:r.exist)&&!e?h.locale:e}),[r])]};var v=r(34677),m=r(64467),y=r(80296),b=r(43145);var x=r(27800);function S(e){return function(e){if(Array.isArray(e))return(0,b.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,x.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const A=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)};var k=r(84605);var C=r(99424);function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var E=r(20816);function O(e,t){for(var r=0;r1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&n&&(o.value[1]=this.cacheCallTimes++),null===(r=o)||void 0===r?void 0:r.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,r){var n=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var r=(0,y.A)(e,2)[1];return n.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),$+=1}return M(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,r){return r(e,t)}),void 0)}}]),e}(),G=new X;var W=new WeakMap,Y={};var U=new WeakMap;function V(e){var t=U.get(e)||"";return t||(Object.keys(e).forEach((function(r){var n=e[r];t+=r,n instanceof N?t+=n.id:n&&"object"===(0,F.A)(n)?t+=V(n):t+=n})),t=A(t),U.set(e,t)),t}function q(e,t){return A("".concat(t,"_").concat(V(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var K=(0,_.A)();function Q(e){return"number"===typeof e?"".concat(e,"px"):e}function Z(e,t,r){var n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var a=(0,s.A)((0,s.A)({},o),{},(n={},(0,m.A)(n,H,t),(0,m.A)(n,B,r),n)),i=Object.keys(a).map((function(e){var t=a[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var J=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},ee=function(e,t,r){return Object.keys(e).length?".".concat(t).concat(null!==r&&void 0!==r&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(e).map((function(e){var t=(0,y.A)(e,2),r=t[0],n=t[1];return"".concat(r,":").concat(n,";")})).join(""),"}"):""},te=function(e,t,r){var n={},o={};return Object.entries(e).forEach((function(e){var t,a,i=(0,y.A)(e,2),c=i[0],l=i[1];if(null!==r&&void 0!==r&&null!==(t=r.preserve)&&void 0!==t&&t[c])o[c]=l;else if(("string"===typeof l||"number"===typeof l)&&(null===r||void 0===r||null===(a=r.ignore)||void 0===a||!a[c])){var s,u=J(c,null===r||void 0===r?void 0:r.prefix);n[u]="number"!==typeof l||null!==r&&void 0!==r&&null!==(s=r.unitless)&&void 0!==s&&s[c]?String(l):"".concat(l,"px"),o[c]="var(".concat(u,")")}})),[o,ee(n,t,{scope:null===r||void 0===r?void 0:r.scope})]},re=(0,_.A)()?n.useLayoutEffect:n.useEffect,ne=function(e,t){var r=n.useRef(!0);re((function(){return e(r.current)}),t),re((function(){return r.current=!1,function(){r.current=!0}}),[])};const oe=ne;var ae=(0,s.A)({},o).useInsertionEffect;const ie=ae?function(e,t,r){return ae((function(){return e(),t()}),r)}:function(e,t,r){n.useMemo(e,r),oe((function(){return t(!0)}),r)};const ce="undefined"!==typeof(0,s.A)({},o).useInsertionEffect?function(e){var t=[],r=!1;return n.useEffect((function(){return r=!1,function(){r=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){r||t.push(e)}}:function(){return function(e){e()}};const le=function(){return!1};function se(e,t,r,o,a){var i=n.useContext(L).cache,c=j([e].concat(S(t))),l=ce([c]),s=(le(),function(e){i.opUpdate(c,(function(t){var n=t||[void 0,void 0],o=(0,y.A)(n,2),a=o[0];var i=[void 0===a?0:a,o[1]||r()];return e?e(i):i}))});n.useMemo((function(){s()}),[c]);var u=i.opGet(c)[1];return ie((function(){null===a||void 0===a||a(u)}),(function(e){return s((function(t){var r=(0,y.A)(t,2),n=r[0],o=r[1];return e&&0===n&&(null===a||void 0===a||a(u)),[n+1,o]})),function(){i.opUpdate(c,(function(t){var r=t||[],n=(0,y.A)(r,2),a=n[0],s=void 0===a?0:a,u=n[1];return 0===s-1?(l((function(){!e&&i.opGet(c)||null===o||void 0===o||o(u,!1)})),null):[s-1,u]}))}}),[c]),u}var ue={},fe=new Map;function de(e,t){fe.set(e,(fe.get(e)||0)-1);var r=Array.from(fe.keys()),n=r.filter((function(e){return(fe.get(e)||0)<=0}));r.length-n.length>0&&n.forEach((function(e){!function(e,t){"undefined"!==typeof document&&document.querySelectorAll("style[".concat(H,'="').concat(e,'"]')).forEach((function(e){var r;e[z]===t&&(null===(r=e.parentNode)||void 0===r||r.removeChild(e))}))}(e,t),fe.delete(e)}))}var pe="token";function he(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,n.useContext)(L),a=o.cache.instanceId,i=o.container,c=r.salt,l=void 0===c?"":c,u=r.override,f=void 0===u?ue:u,d=r.formatToken,p=r.getComputedToken,h=r.cssVar,g=function(e,t){for(var r=W,n=0;n0?we(De,--ze):0,He--,10===Ie&&(He=1,Pe--),Ie}function _e(){return Ie=ze2||Ne(Ie)>3?"":" "}function Ve(e,t){for(;--t&&_e()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return $e(e,Xe()+(t<6&&32==Re()&&32==_e()))}function qe(e){for(;_e();)switch(Ie){case e:return ze;case 34:case 39:34!==e&&39!==e&&qe(Ie);break;case 40:41===e&&qe(e);break;case 92:_e()}return ze}function Ke(e,t){for(;_e()&&e+Ie!==57&&(e+Ie!==84||47!==Re()););return"/*"+$e(t,ze-1)+"*"+Se(47===e?e:_e())}function Qe(e){for(;!Ne(Re());)_e();return $e(e,ze)}function Ze(e){return We(Je("",null,null,null,[""],e=Ge(e),0,[0],e))}function Je(e,t,r,n,o,a,i,c,l){for(var s=0,u=0,f=i,d=0,p=0,h=0,g=1,v=1,m=1,y=0,b="",x=o,S=a,A=n,k=b;v;)switch(h=y,y=_e()){case 40:if(108!=h&&58==we(k,f-1)){-1!=Ce(k+=ke(Ye(y),"&","&\f"),"&\f",xe(s?c[s-1]:0))&&(m=-1);break}case 34:case 39:case 91:k+=Ye(y);break;case 9:case 10:case 13:case 32:k+=Ue(h);break;case 92:k+=Ve(Xe()-1,7);continue;case 47:switch(Re()){case 42:case 47:Me(tt(Ke(_e(),Xe()),t,r,l),l),5!=Ne(h||1)&&5!=Ne(Re()||1)||!Oe(k)||" "===Ee(k,-1,void 0)||(k+=" ");break;default:k+="/"}break;case 123*g:c[s++]=Oe(k)*m;case 125*g:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+u:-1==m&&(k=ke(k,/\f/g,"")),p>0&&(Oe(k)-f||0===g&&47===h)&&Me(p>32?rt(k+";",n,r,f-1,l):rt(ke(k," ","")+";",n,r,f-2,l),l);break;case 59:k+=";";default:if(Me(A=et(k,t,r,s,u,o,c,b,x=[],S=[],f,a),a),123===y)if(0===u)Je(k,t,A,A,x,a,f,c,S);else{switch(d){case 99:if(110===we(k,3))break;case 108:if(97===we(k,2))break;default:u=0;case 100:case 109:case 115:}u?Je(e,A,A,n&&Me(et(e,A,A,0,0,o,c,b,o,x=[],f,S),S),o,S,f,c,n?x:S):Je(k,A,A,A,[""],S,0,c,S)}}s=u=p=0,g=m=1,b=k="",f=i;break;case 58:f=1+Oe(k),p=h;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==Fe())continue;switch(k+=Se(y),y*g){case 38:m=u>0?1:(k+="\f",-1);break;case 44:c[s++]=(Oe(k)-1)*m,m=1;break;case 64:45===Re()&&(k+=Ye(_e())),d=Re(),u=f=Oe(b=k+=Qe(Xe())),y++;break;case 45:45===h&&2==Oe(k)&&(g=0)}}return a}function et(e,t,r,n,o,a,i,c,l,s,u,f){for(var d=o-1,p=0===o?a:[""],h=function(e){return e.length}(p),g=0,v=0,m=0;g0?p[y]+" "+b:ke(b,/&\f/g,p[y])))&&(l[m++]=x);return Le(e,t,r,0===o?ye:c,l,s,u,f)}function tt(e,t,r,n){return Le(e,t,r,me,Se(Ie),Ee(e,2,-2),0,n)}function rt(e,t,r,n,o){return Le(e,t,r,be,Ee(e,0,n),Ee(e,n+1,-1),n,o)}var nt,ot="data-ant-cssinjs-cache-path",at="_FILE_STYLE__";var it=!0;function ct(e){return function(){if(!nt&&(nt={},(0,_.A)())){var e=document.createElement("div");e.className=ot,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=e.split(":"),r=(0,y.A)(t,2),n=r[0],o=r[1];nt[n]=o}));var r,n=document.querySelector("style[".concat(ot,"]"));n&&(it=!1,null===(r=n.parentNode)||void 0===r||r.removeChild(n)),document.body.removeChild(e)}}(),!!nt[e]}var lt="_multi_value_";function st(e){return je(Ze(e),Te).replace(/\{%%%\:[^;];}/g,";")}function ut(e,t,r){if(!t)return e;var n=".".concat(t),o="low"===r?":where(".concat(n,")"):n;return e.split(",").map((function(e){var t,r=e.trim().split(/\s+/),n=r[0]||"",a=(null===(t=n.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[n="".concat(a).concat(o).concat(n.slice(a.length))].concat(S(r.slice(1))).join(" ")})).join(",")}var ft=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=n.root,a=n.injectHash,i=n.parentSelectors,c=r.hashId,l=r.layer,u=(r.path,r.hashPriority),f=r.transformers,d=void 0===f?[]:f,p=(r.linters,""),h={};function g(t){var n=t.getName(c);if(!h[n]){var o=e(t.style,r,{root:!1,parentSelectors:i}),a=(0,y.A)(o,1)[0];h[n]="@keyframes ".concat(t.getName(c)).concat(a)}}var v=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,r):t&&r.push(t)})),r}(Array.isArray(t)?t:[t]);return v.forEach((function(t){var n="string"!==typeof t||o?t:{};if("string"===typeof n)p+="".concat(n,"\n");else if(n._keyframe)g(n);else{var l=d.reduce((function(e,t){var r;return(null===t||void 0===t||null===(r=t.visit)||void 0===r?void 0:r.call(t,e))||e}),n);Object.keys(l).forEach((function(t){var n=l[t];if("object"!==(0,F.A)(n)||!n||"animationName"===t&&n._keyframe||function(e){return"object"===(0,F.A)(e)&&e&&("_skip_check_"in e||lt in e)}(n)){var f;function w(e,t){var r=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),n=t;ve[e]||"number"!==typeof n||0===n||(n="".concat(n,"px")),"animationName"===e&&null!==t&&void 0!==t&&t._keyframe&&(g(t),n=t.getName(c)),p+="".concat(r,":").concat(n,";")}var d=null!==(f=null===n||void 0===n?void 0:n.value)&&void 0!==f?f:n;"object"===(0,F.A)(n)&&null!==n&&void 0!==n&&n[lt]&&Array.isArray(d)?d.forEach((function(e){w(t,e)})):w(t,d)}else{var v=!1,m=t.trim(),b=!1;(o||a)&&c?m.startsWith("@")?v=!0:m=ut("&"===m?"":t,c,u):!o||c||"&"!==m&&""!==m||(m="",b=!0);var x=e(n,r,{root:b,injectHash:v,parentSelectors:[].concat(S(i),[m])}),A=(0,y.A)(x,2),k=A[0],C=A[1];h=(0,s.A)((0,s.A)({},h),C),p+="".concat(m).concat(k)}}))}})),o?l&&(p&&(p="@layer ".concat(l.name," {").concat(p,"}")),l.dependencies&&(h["@layer ".concat(l.name)]=l.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(l.name,";")})).join("\n"))):p="{".concat(p,"}"),[p,h]};function dt(e,t){return A("".concat(e.join("%")).concat(t))}function pt(){return null}var ht="style";function gt(e,t){var r=e.token,o=e.path,a=e.hashId,i=e.layer,c=e.nonce,l=e.clientOnly,u=e.order,f=void 0===u?0:u,d=n.useContext(L),p=d.autoClear,h=(d.mock,d.defaultCache),g=d.hashPriority,v=d.container,b=d.ssrInline,x=d.transformers,A=d.linters,C=d.cache,w=d.layer,E=r._tokenKey,O=[E];w&&O.push("layer"),O.push.apply(O,S(o));var M=K;var j=se(ht,O,(function(){var e=O.join("|");if(ct(e)){var r=function(e){var t=nt[e],r=null;if(t&&(0,_.A)())if(it)r=at;else{var n=document.querySelector("style[".concat(B,'="').concat(nt[e],'"]'));n?r=n.innerHTML:delete nt[e]}return[r,t]}(e),n=(0,y.A)(r,2),c=n[0],s=n[1];if(c)return[c,E,s,{},l,f]}var u=t(),d=ft(u,{hashId:a,hashPriority:g,layer:w?i:void 0,path:o.join("-"),transformers:x,linters:A}),p=(0,y.A)(d,2),h=p[0],v=p[1],m=st(h),b=dt(O,m);return[m,E,b,v,l,f]}),(function(e,t){var r=(0,y.A)(e,3)[2];(t||p)&&K&&(0,k.m6)(r,{mark:B})}),(function(e){var t=(0,y.A)(e,4),r=t[0],n=(t[1],t[2]),o=t[3];if(M&&r!==at){var a={mark:B,prepend:!w&&"queue",attachTo:v,priority:f},i="function"===typeof c?c():c;i&&(a.csp={nonce:i});var l=[],u=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?l.push(e):u.push(e)})),l.forEach((function(e){(0,k.BD)(st(o[e]),"_layer-".concat(e),(0,s.A)((0,s.A)({},a),{},{prepend:!0}))}));var d=(0,k.BD)(r,n,a);d[z]=C.instanceId,d.setAttribute(H,E),u.forEach((function(e){(0,k.BD)(st(o[e]),"_effect-".concat(e),a)}))}})),T=(0,y.A)(j,3),P=T[0],I=T[1],D=T[2];return function(e){var t,r;b&&!M&&h?t=n.createElement("style",(0,ge.A)({},(r={},(0,m.A)(r,H,I),(0,m.A)(r,B,D),r),{dangerouslySetInnerHTML:{__html:P}})):t=n.createElement(pt,null);return n.createElement(n.Fragment,null,t,e)}}var vt="cssVar";const mt=function(e,t){var r=e.key,o=e.prefix,a=e.unitless,i=e.ignore,c=e.token,l=e.scope,s=void 0===l?"":l,u=(0,n.useContext)(L),f=u.cache.instanceId,d=u.container,p=c._tokenKey,h=[].concat(S(e.path),[r,s,p]);return se(vt,h,(function(){var e=t(),n=te(e,r,{prefix:o,unitless:a,ignore:i,scope:s}),c=(0,y.A)(n,2),l=c[0],u=c[1];return[l,u,dt(h,u),r]}),(function(e){var t=(0,y.A)(e,3)[2];K&&(0,k.m6)(t,{mark:B})}),(function(e){var t=(0,y.A)(e,3),n=t[1],o=t[2];if(n){var a=(0,k.BD)(n,o,{mark:B,prepend:"queue",attachTo:d,priority:-999});a[z]=f,a.setAttribute(H,r)}}))};var yt;yt={},(0,m.A)(yt,ht,(function(e,t,r){var n=(0,y.A)(e,6),o=n[0],a=n[1],i=n[2],c=n[3],l=n[4],s=n[5],u=(r||{}).plain;if(l)return null;var f=o,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return f=Z(o,a,i,d,u),c&&Object.keys(c).forEach((function(e){if(!t[e]){t[e]=!0;var r=Z(st(c[e]),a,"_effect-".concat(e),d,u);e.startsWith("@layer")?f=r+f:f+=r}})),[s,i,f]})),(0,m.A)(yt,pe,(function(e,t,r){var n=(0,y.A)(e,5),o=n[2],a=n[3],i=n[4],c=(r||{}).plain;if(!a)return null;var l=o._tokenKey;return[-999,l,Z(a,i,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]})),(0,m.A)(yt,vt,(function(e,t,r){var n=(0,y.A)(e,4),o=n[1],a=n[2],i=n[3],c=(r||{}).plain;if(!o)return null;return[-999,a,Z(o,i,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]}));function bt(e){return e.notSplit=!0,e}bt(["borderTop","borderBottom"]),bt(["borderTop"]),bt(["borderBottom"]),bt(["borderLeft","borderRight"]),bt(["borderLeft"]),bt(["borderRight"]);const xt={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},St=Object.assign(Object.assign({},xt),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),At={token:St,override:{override:St},hashed:!0},kt=n.createContext(At);var Ct=r(36889);const wt=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}};const Et=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};const Ot=e=>{const t=function(e){const t=Array.from({length:10}).map(((t,r)=>{const n=r-1,o=e*Math.pow(Math.E,n/5),a=r>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(a/2)}));return t[1]=e,t.map((e=>{return{size:e,lineHeight:(t=e,(t+8)/t)};var t}))}(e),r=t.map((e=>e.size)),n=t.map((e=>e.lineHeight)),o=r[1],a=r[0],i=r[2],c=n[1],l=n[0],s=n[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:c,lineHeightLG:s,lineHeightSM:l,fontHeight:Math.round(c*o),fontHeightLG:Math.round(s*i),fontHeightSM:Math.round(l*a),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};const Mt=(e,t)=>new v.Y(e).setA(t).toRgbString(),jt=(e,t)=>new v.Y(e).darken(t).toHexString(),Tt=e=>{const t=(0,Ct.cM)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Pt=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Mt(n,.88),colorTextSecondary:Mt(n,.65),colorTextTertiary:Mt(n,.45),colorTextQuaternary:Mt(n,.25),colorFill:Mt(n,.15),colorFillSecondary:Mt(n,.06),colorFillTertiary:Mt(n,.04),colorFillQuaternary:Mt(n,.02),colorBgSolid:Mt(n,1),colorBgSolidHover:Mt(n,.75),colorBgSolidActive:Mt(n,.95),colorBgLayout:jt(r,4),colorBgContainer:jt(r,0),colorBgElevated:jt(r,0),colorBgSpotlight:Mt(n,.85),colorBgBlur:"transparent",colorBorder:jt(r,15),colorBorderSecondary:jt(r,6)}};const Ht=function(e){var t=Array.isArray(e)?e:[e];return G.has(t)||G.set(t,new N(t)),G.get(t)}((function(e){Ct.uy.pink=Ct.uy.magenta,Ct.UA.pink=Ct.UA.magenta;const t=Object.keys(xt).map((t=>{const r=e[t]===Ct.uy[t]?Ct.UA[t]:(0,Ct.cM)(e[t]);return Array.from({length:10},(()=>1)).reduce(((e,n,o)=>(e["".concat(t,"-").concat(o+1)]=r[o],e["".concat(t).concat(o+1)]=r[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:c,colorPrimary:l,colorBgBase:s,colorTextBase:u}=e,f=r(l),d=r(o),p=r(a),h=r(i),g=r(c),m=n(s,u),y=r(e.colorLink||e.colorInfo),b=new v.Y(h[1]).mix(new v.Y(h[3]),50).toHexString();return Object.assign(Object.assign({},m),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:b,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new v.Y("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Tt,generateNeutralColorPalettes:Pt})),Ot(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}(e)),Et(e)),function(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:"".concat((r+t).toFixed(1),"s"),motionDurationMid:"".concat((r+2*t).toFixed(1),"s"),motionDurationSlow:"".concat((r+3*t).toFixed(1),"s"),lineWidthBold:o+1},wt(n))}(e))})),Bt=Ht;function zt(e){return e>=0&&e<=255}const It=function(e,t){const{r:r,g:n,b:o,a:a}=new v.Y(e).toRgb();if(a<1)return e;const{r:i,g:c,b:l}=new v.Y(t).toRgb();for(let s=.01;s<=1;s+=.01){const e=Math.round((r-i*(1-s))/s),t=Math.round((n-c*(1-s))/s),a=Math.round((o-l*(1-s))/s);if(zt(e)&&zt(t)&&zt(a))return new v.Y({r:e,g:t,b:a,a:Math.round(100*s)/100}).toRgbString()}return new v.Y({r:r,g:n,b:o,a:1}).toRgbString()};var Dt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o{delete n[e]}));const o=Object.assign(Object.assign({},r),n),a=1200,i=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:It(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:It(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:It(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:It(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:a,screenXLMin:a,screenXLMax:1599,screenXXL:i,screenXXLMin:i,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:"\n 0 1px 2px -2px ".concat(new v.Y("rgba(0, 0, 0, 0.16)").toRgbString(),",\n 0 3px 6px 0 ").concat(new v.Y("rgba(0, 0, 0, 0.12)").toRgbString(),",\n 0 5px 12px 4px ").concat(new v.Y("rgba(0, 0, 0, 0.09)").toRgbString(),"\n "),boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var Ft=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o{const n=r.getDerivativeToken(e),{override:o}=t,a=Ft(t,["override"]);let i=Object.assign(Object.assign({},n),{override:o});return i=Lt(i),a&&Object.entries(a).forEach((e=>{let[t,r]=e;const{theme:n}=r,o=Ft(r,["theme"]);let a=o;n&&(a=$t(Object.assign(Object.assign({},i),o),{override:o},n)),i[t]=a})),i};function Nt(){const{token:e,hashed:t,theme:r,override:o,cssVar:a}=n.useContext(kt),i="".concat("5.24.2","-").concat(t||""),c=r||Bt,[l,s,u]=he(c,[St,e],{salt:i,override:o,getComputedToken:$t,formatToken:Lt,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:_t,ignore:Rt,preserve:Xt}});return[c,u,t?s:"",l,a]}const Gt=()=>{const[,e]=Nt(),[t]=g("Empty"),r=new v.Y(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return n.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},n.createElement("title",null,(null===t||void 0===t?void 0:t.description)||"Empty"),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("g",{transform:"translate(24 31.67)"},n.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),n.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),n.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),n.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),n.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),n.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),n.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},n.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),n.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};const Wt=()=>{const[,e]=Nt(),[t]=g("Empty"),{colorFill:r,colorFillTertiary:o,colorFillQuaternary:a,colorBgContainer:i}=e,{borderColor:c,shadowColor:l,contentColor:s}=(0,n.useMemo)((()=>({borderColor:new v.Y(r).onBackground(i).toHexString(),shadowColor:new v.Y(o).onBackground(i).toHexString(),contentColor:new v.Y(a).onBackground(i).toHexString()})),[r,o,a,i]);return n.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},n.createElement("title",null,(null===t||void 0===t?void 0:t.description)||"Empty"),n.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},n.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),n.createElement("g",{fillRule:"nonzero",stroke:c},n.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),n.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))};var Yt=r(9417),Ut=r(63662);function Vt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,Ut.A)(e,t)}function qt(e){return qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qt(e)}function Kt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kt=function(){return!!e})()}function Qt(e){var t=Kt();return function(){var r,n=qt(e);if(t){var o=qt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"==(0,F.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,Yt.A)(e)}(this,r)}}const Zt=M((function e(){w(this,e)}));var Jt="CALC_UNIT",er=new RegExp(Jt,"g");function tr(e){return"number"===typeof e?"".concat(e).concat(Jt):e}var rr=function(e){Vt(r,e);var t=Qt(r);function r(e,n){var o;w(this,r),o=t.call(this),(0,m.A)((0,Yt.A)(o),"result",""),(0,m.A)((0,Yt.A)(o),"unitlessCssVar",void 0),(0,m.A)((0,Yt.A)(o),"lowPriority",void 0);var a=(0,F.A)(e);return o.unitlessCssVar=n,e instanceof r?o.result="(".concat(e.result,")"):"number"===a?o.result=tr(e):"string"===a&&(o.result=e),o}return M(r,[{key:"add",value:function(e){return e instanceof r?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," + ").concat(tr(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof r?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," - ").concat(tr(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof r?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof r?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,r=(e||{}).unit,n=!0;return"boolean"===typeof r?n=r:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(n=!1),this.result=this.result.replace(er,n?"px":""),"undefined"!==typeof this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),r}(Zt);const nr=function(e){Vt(r,e);var t=Qt(r);function r(e){var n;return w(this,r),n=t.call(this),(0,m.A)((0,Yt.A)(n),"result",0),e instanceof r?n.result=e.result:"number"===typeof e&&(n.result=e),n}return M(r,[{key:"add",value:function(e){return e instanceof r?this.result+=e.result:"number"===typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof r?this.result-=e.result:"number"===typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof r?this.result*=e.result:"number"===typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof r?this.result/=e.result:"number"===typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),r}(Zt);const or=function(e,t){var r="css"===e?rr:nr;return function(e){return new r(e,t)}};const ar=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};r(63329),Symbol.for("react.element"),Symbol.for("react.transitional.element"),Symbol.for("react.fragment");Number(n.version.split(".")[0]);"undefined"===typeof Reflect?Object.keys:Reflect.ownKeys;const ir=function(e,t,r,n){var o=(0,s.A)({},t[e]);null!==n&&void 0!==n&&n.deprecatedTokens&&n.deprecatedTokens.forEach((function(e){var t,r=(0,y.A)(e,2),n=r[0],a=r[1];(null!==o&&void 0!==o&&o[n]||null!==o&&void 0!==o&&o[a])&&(null!==(t=o[a])&&void 0!==t||(o[a]=null===o||void 0===o?void 0:o[n]))}));var a=(0,s.A)((0,s.A)({},r),o);return Object.keys(a).forEach((function(e){a[e]===t[e]&&delete a[e]})),a};var cr="undefined"!==typeof CSSINJS_STATISTIC,lr=!0;function sr(){for(var e=arguments.length,t=new Array(e),r=0;r1e4){var t=Date.now();this.lastAccessBeat.forEach((function(r,n){t-r>6e5&&(e.map.delete(n),e.lastAccessBeat.delete(n))})),this.accessBeat=0}}}]),e}(),vr=new gr;const mr=function(e,t){return n.useMemo((function(){var r=vr.get(t);if(r)return r;var n=e();return vr.set(t,n),n}),t)};const yr=function(){return{}};const br=function(e){var t=e.useCSP,r=void 0===t?yr:t,o=e.useToken,a=e.usePrefix,i=e.getResetStyles,c=e.getCommonStyle,l=e.getCompUnitless;function u(t,n,l){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=Array.isArray(t)?t:[t,t],d=(0,y.A)(f,1)[0],p=f.join("-"),h=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,f=o(),g=f.theme,v=f.realToken,m=f.hashId,y=f.token,b=f.cssVar,x=a(),S=x.rootPrefixCls,A=x.iconPrefixCls,k=r(),C=b?"css":"js",w=mr((function(){var e=new Set;return b&&Object.keys(u.unitless||{}).forEach((function(t){e.add(J(t,b.prefix)),e.add(J(t,ar(d,b.prefix)))})),or(C,e)}),[C,d,null===b||void 0===b?void 0:b.prefix]),E=hr(C),O=E.max,M=E.min,j={theme:g,token:y,hashId:m,nonce:function(){return k.nonce},clientOnly:u.clientOnly,layer:h,order:u.order||-999};return"function"===typeof i&>((0,s.A)((0,s.A)({},j),{},{clientOnly:!1,path:["Shared",S]}),(function(){return i(y,{prefix:{rootPrefixCls:S,iconPrefixCls:A},csp:k})})),[gt((0,s.A)((0,s.A)({},j),{},{path:[p,e,A]}),(function(){if(!1===u.injectStyle)return[];var r=dr(y),o=r.token,a=r.flush,i=pr(d,v,l),s=".".concat(e),f=ir(d,v,i,{deprecatedTokens:u.deprecatedTokens});b&&i&&"object"===(0,F.A)(i)&&Object.keys(i).forEach((function(e){i[e]="var(".concat(J(e,ar(d,b.prefix)),")")}));var p=sr(o,{componentCls:s,prefixCls:e,iconCls:".".concat(A),antCls:".".concat(S),calc:w,max:O,min:M},b?i:f),h=n(p,{hashId:m,prefixCls:e,rootPrefixCls:S,iconPrefixCls:A});a(d,f);var g="function"===typeof c?c(p,e,t,u.resetFont):null;return[!1===u.resetStyle?null:g,h]})),m]}}return{genStyleHooks:function(e,t,r,a){var i=Array.isArray(e)?e[0]:e;function c(e){return"".concat(String(i)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var f=(null===a||void 0===a?void 0:a.unitless)||{},d="function"===typeof l?l(e):{},p=(0,s.A)((0,s.A)({},d),{},(0,m.A)({},c("zIndexPopup"),!0));Object.keys(f).forEach((function(e){p[c(e)]=f[e]}));var h=(0,s.A)((0,s.A)({},a),{},{unitless:p,prefixToken:c}),g=u(e,t,r,h),v=function(e,t,r){var a=r.unitless,i=r.injectStyle,c=void 0===i||i,l=r.prefixToken,s=r.ignore,u=function(n){var i=n.rootCls,c=n.cssVar,u=void 0===c?{}:c,f=o().realToken;return mt({path:[e],prefix:u.prefix,key:u.key,unitless:a,ignore:s,token:f,scope:i},(function(){var n=pr(e,f,t),o=ir(e,f,n,{deprecatedTokens:null===r||void 0===r?void 0:r.deprecatedTokens});return Object.keys(n).forEach((function(e){o[l(e)]=o[e],delete o[e]})),o})),null},f=function(t){var r=o().cssVar;return[function(o){return c&&r?n.createElement(n.Fragment,null,n.createElement(u,{rootCls:t,cssVar:r,component:e}),o):o},null===r||void 0===r?void 0:r.key]};return f}(i,r,h);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=g(e,t),n=(0,y.A)(r,2)[1],o=v(t),a=(0,y.A)(o,2);return[a[0],n,a[1]]}},genSubStyleComponent:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=u(e,t,r,(0,s.A)({resetStyle:!1,order:-998},n));return function(e){var t=e.prefixCls,r=e.rootCls;return o(t,void 0===r?t:r),null}},genComponentStyleHook:u}},xr="anticon",Sr=n.createContext({getPrefixCls:(e,t)=>t||(e?"".concat("ant","-").concat(e):"ant"),iconPrefixCls:xr}),{Consumer:Ar}=Sr,kr={};const{genStyleHooks:Cr,genComponentStyleHook:wr,genSubStyleComponent:Er}=br({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,n.useContext)(Sr);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,o]=Nt();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{const{csp:e}=(0,n.useContext)(Sr);return null!==e&&void 0!==e?e:{}},getResetStyles:(e,t)=>{var r;const n=(e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}))(e);return[n,{"&":n},(o=null!==(r=null===t||void 0===t?void 0:t.prefix.iconPrefixCls)&&void 0!==r?r:xr,{[".".concat(o)]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[".".concat(o," .").concat(o,"-icon")]:{display:"block"}})})];var o},getCommonStyle:(e,t,r,n)=>{const o='[class^="'.concat(t,'"], [class*=" ').concat(t,'"]'),a=r?".".concat(r):o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let c={};return!1!==n&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},c),i),{[o]:i})}},getCompUnitless:()=>_t}),Or=e=>{const{componentCls:t,margin:r,marginXS:n,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:n,fontSize:a,lineHeight:i,textAlign:"center",["".concat(t,"-image")]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},["".concat(t,"-description")]:{color:e.colorTextDescription},["".concat(t,"-footer")]:{marginTop:r},"&-normal":{marginBlock:o,color:e.colorTextDescription,["".concat(t,"-description")]:{color:e.colorTextDescription},["".concat(t,"-image")]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,["".concat(t,"-image")]:{height:e.emptyImgHeightSM}}}}},Mr=Cr("Empty",(e=>{const{componentCls:t,controlHeightLG:r,calc:n}=e,o=sr(e,{emptyImgCls:"".concat(t,"-img"),emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()});return[Or(o)]}));var jr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o{const{className:t,rootClassName:r,prefixCls:o,image:a=Tr,description:c,children:l,imageStyle:s,style:u,classNames:f,styles:d}=e,p=jr(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:h,direction:v,className:m,style:y,classNames:b,styles:x}=function(e){const t=n.useContext(Sr),{getPrefixCls:r,direction:o,getPopupContainer:a}=t,i=t[e];return Object.assign(Object.assign({classNames:kr,styles:kr},i),{getPrefixCls:r,direction:o,getPopupContainer:a})}("empty"),S=h("empty",o),[A,k,C]=Mr(S),[w]=g("Empty"),E="undefined"!==typeof c?c:null===w||void 0===w?void 0:w.description,O="string"===typeof E?E:"empty";let M=null;return M="string"===typeof a?n.createElement("img",{alt:O,src:a}):a,A(n.createElement("div",Object.assign({className:i()(k,C,S,m,{["".concat(S,"-normal")]:a===Pr,["".concat(S,"-rtl")]:"rtl"===v},t,r,b.root,null===f||void 0===f?void 0:f.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},x.root),y),null===d||void 0===d?void 0:d.root),u)},p),n.createElement("div",{className:i()("".concat(S,"-image"),b.image,null===f||void 0===f?void 0:f.image),style:Object.assign(Object.assign(Object.assign({},s),x.image),null===d||void 0===d?void 0:d.image)},M),E&&n.createElement("div",{className:i()("".concat(S,"-description"),b.description,null===f||void 0===f?void 0:f.description),style:Object.assign(Object.assign({},x.description),null===d||void 0===d?void 0:d.description)},E),l&&n.createElement("div",{className:i()("".concat(S,"-footer"),b.footer,null===f||void 0===f?void 0:f.footer),style:Object.assign(Object.assign({},x.footer),null===d||void 0===d?void 0:d.footer)},l)))};Hr.PRESENTED_IMAGE_DEFAULT=Tr,Hr.PRESENTED_IMAGE_SIMPLE=Pr;const Br=Hr},57997:(e,t)=>{var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function m(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case a:case c:case i:case d:case p:return e;default:switch(e=e&&e.$$typeof){case u:case s:case f:case g:case h:case l:return e;default:return t}}case o:return t}}}r=Symbol.for("react.module.reference")},63329:(e,t,r)=>{r(57997)}}]); \ No newline at end of file diff --git a/build/static/js/3992.7901ae42.chunk.js b/build/static/js/3992.7901ae42.chunk.js deleted file mode 100644 index a968f1a..0000000 --- a/build/static/js/3992.7901ae42.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[3992],{795:(e,t,n)=>{"use strict";t.CSVLink=void 0;var r=a(n(91078)),o=a(n(49462));function a(e){return e&&e.__esModule?e:{default:e}}r.default,t.CSVLink=o.default},8010:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PropsNotForwarded=t.defaultProps=t.propTypes=void 0;var r,o=n(9950),a=((r=o)&&r.__esModule,n(11942));t.propTypes={data:(0,a.oneOfType)([a.string,a.array,a.func]).isRequired,headers:a.array,target:a.string,separator:a.string,filename:a.string,uFEFF:a.bool,onClick:a.func,asyncOnClick:a.bool,enclosingCharacter:a.string},t.defaultProps={separator:",",filename:"generatedBy_react-csv.csv",uFEFF:!0,asyncOnClick:!1,enclosingCharacter:'"'},t.PropsNotForwarded=["data","headers"]},33516:(e,t,n)=>{"use strict";n.d(t,{m:()=>c});var r=n(464),o=n(69995),a=n(2527),i=n(9950);const c=(0,r.wk)((function(e,t){const n=new a.Tooltip(e,t.overlayContainer);return(0,o.Q)(n,t)}),(function(e,t,n,r){let{position:o}=n;(0,i.useEffect)((function(){const n=t.overlayContainer;if(null==n)return;const{instance:a}=e,i=e=>{e.tooltip===a&&(null!=o&&a.setLatLng(o),a.update(),r(!0))},c=e=>{e.tooltip===a&&r(!1)};return n.on({tooltipopen:i,tooltipclose:c}),n.bindTooltip(a),function(){n.off({tooltipopen:i,tooltipclose:c}),null!=n._map&&n.unbindTooltip()}}),[e,t,r,o])}))},46411:(e,t,n)=>{e.exports=n(795)},49462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];if(window.navigator.msSaveOrOpenBlob){e.preventDefault();var n=this.props,r=n.data,o=n.headers,a=n.separator,i=n.filename,c=n.enclosingCharacter,s=n.uFEFF,l=t&&"function"===typeof r?r():r,f=new Blob([s?"\ufeff":"",(0,u.toCSV)(l,o,a,c)]);return window.navigator.msSaveBlob(f,i),!1}}},{key:"handleAsyncClick",value:function(e){var t=this;this.props.onClick(e,(function(n){!1!==n?t.handleLegacy(e,!0):e.preventDefault()}))}},{key:"handleSyncClick",value:function(e){!1===this.props.onClick(e)?e.preventDefault():this.handleLegacy(e)}},{key:"handleClick",value:function(){var e=this;return function(t){if("function"===typeof e.props.onClick)return e.props.asyncOnClick?e.handleAsyncClick(t):e.handleSyncClick(t);e.handleLegacy(t)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.data,r=t.headers,a=t.separator,i=t.filename,u=t.uFEFF,s=t.children,l=(t.onClick,t.asyncOnClick,t.enclosingCharacter),f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["data","headers","separator","filename","uFEFF","children","onClick","asyncOnClick","enclosingCharacter"]),p="undefined"===typeof window?"":this.buildURI(n,u,r,a,l);return c.default.createElement("a",o({download:i},f,{ref:function(t){return e.link=t},target:"_self",href:p,onClick:this.handleClick()}),s)}}]),t}(c.default.Component);l.defaultProps=s.defaultProps,l.propTypes=s.propTypes,t.default=l},60010:(e,t,n)=>{"use strict";n.d(t,{q:()=>u});var r=n(89379),o=n(69347),a=n(45247),i=class extends o.${constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions((0,r.A)((0,r.A)({},e),{},{behavior:(0,a.PL)()}),t)}getOptimisticResult(e){return e.behavior=(0,a.PL)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch((0,r.A)((0,r.A)({},e),{},{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(e){return this.fetch((0,r.A)((0,r.A)({},e),{},{meta:{fetchMore:{direction:"backward"}}}))}createResult(e,t){var n,o;const{state:i}=e,c=super.createResult(e,t),{isFetching:u,isRefetching:s}=c,l=u&&"forward"===(null===(n=i.fetchMeta)||void 0===n||null===(n=n.fetchMore)||void 0===n?void 0:n.direction),f=u&&"backward"===(null===(o=i.fetchMeta)||void 0===o||null===(o=o.fetchMore)||void 0===o?void 0:o.direction);return(0,r.A)((0,r.A)({},c),{},{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,a.rB)(t,i.data),hasPreviousPage:(0,a.RQ)(t,i.data),isFetchingNextPage:l,isFetchingPreviousPage:f,isRefetching:s&&!l&&!f})}},c=n(1729);function u(e,t){return(0,c.t)(e,i,t)}},79739:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(98587),o=n(58168),a=n(9950),i=n(72004),c=n(3484),u=n(59254),s=n(18463),l=n(45558),f=n(1614);function p(e){return(0,f.Ay)("MuiDialogActions",e)}(0,l.A)("MuiDialogActions",["root","spacing"]);var d=n(44414);const y=["className","disableSpacing"],h=(0,u.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,o.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),v=a.forwardRef((function(e,t){const n=(0,s.b)({props:e,name:"MuiDialogActions"}),{className:a,disableSpacing:u=!1}=n,l=(0,r.A)(n,y),f=(0,o.A)({},n,{disableSpacing:u}),v=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,c.A)(r,p,t)})(f);return(0,d.jsx)(h,(0,o.A)({className:(0,i.A)(v.root,a),ownerState:f,ref:t},l))}))},87924:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:",",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'"';return e.filter((function(e){return e})).map((function(e){return e.map((function(e){return l(e)})).map((function(e){return""+n+e+n})).join(t)})).join("\n")},p=t.arrays2csv=function(e,t,n,o){return f(t?[t].concat(r(e)):e,n,o)},d=t.jsons2csv=function(e,t,n,r){return f(u(e,t),n,r)},y=t.string2csv=function(e,t,n,r){return t?t.join(n)+"\n"+e:e.replace(/"/g,'""')},h=t.toCSV=function(e,t,n,r){if(a(e))return d(e,t,n,r);if(i(e))return p(e,t,n,r);if("string"===typeof e)return y(e,t,n);throw new TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ')};t.buildURI=function(e,t,n,r,a){var i=h(e,n,r,a),c=o()?"application/csv":"text/csv",u=new Blob([t?"\ufeff":"",i],{type:c}),s="data:"+c+";charset=utf-8,"+(t?"\ufeff":"")+i,l=window.URL||window.webkitURL;return"undefined"===typeof l.createObjectURL?s:l.createObjectURL(u)}},91078:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n{"use strict";n.d(t,{A:()=>u});var r=n(58168),o=n(9950);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var i=n(61187),c=function(e,t){return o.createElement(i.A,(0,r.A)({},e,{ref:t,icon:a}))};const u=o.forwardRef(c)}}]); \ No newline at end of file diff --git a/build/static/js/3999.847bb360.chunk.js b/build/static/js/3999.847bb360.chunk.js deleted file mode 100644 index c3edf27..0000000 --- a/build/static/js/3999.847bb360.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[3999],{646:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(9950).createContext()},1320:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(58168),a=r(98587),o=r(9950),i=r(72004),s=r(3484),c=r(18463),u=r(59254),l=r(45558),d=r(1614);function h(e){return(0,d.Ay)("MuiTableContainer",e)}(0,l.A)("MuiTableContainer",["root"]);var f=r(44414);const p=["className","component"],m=(0,u.Ay)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),v=o.forwardRef((function(e,t){const r=(0,c.b)({props:e,name:"MuiTableContainer"}),{className:o,component:u="div"}=r,l=(0,a.A)(r,p),d=(0,n.A)({},r,{component:u}),v=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},h,t)})(d);return(0,f.jsx)(m,(0,n.A)({ref:t,as:u,className:(0,i.A)(v.root,o),ownerState:d},l))}))},4159:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",a="second",o="minute",i="hour",s="day",c="week",u="month",l="quarter",d="year",h="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},y=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},g={s:y,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),a=r%60;return(t<=0?"+":"-")+y(n,2,"0")+":"+y(a,2,"0")},m:function e(t,r){if(t.date()1)return e(i[0])}else{var s=t.name;b[s]=t,a=s}return!n&&a&&(A=a),a||!n&&A},x=function(e,t){if(M(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new k(r)},S=g;S.l=w,S.i=M,S.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var k=function(){function v(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[$]=!0}var y=v.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(p);if(n){var a=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return S},y.isValid=function(){return!(this.$d.toString()===f)},y.isSame=function(e,t){var r=x(e);return this.startOf(t)<=r&&r<=this.endOf(t)},y.isAfter=function(e,t){return x(e){"use strict";r.d(t,{A:()=>b});var n=r(58168),a=r(98587),o=r(9950),i=r(72004),s=r(3484),c=r(99269),u=r(89330),l=r(18463),d=r(59254),h=r(45558),f=r(1614);function p(e){return(0,f.Ay)("MuiTableRow",e)}const m=(0,h.A)("MuiTableRow",["root","selected","hover","head","footer"]);var v=r(44414);const y=["className","component","hover","selected"],g=(0,d.Ay)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((e=>{let{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,["&.".concat(m.hover,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(m.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}})),A="tr",b=o.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiTableRow"}),{className:c,component:d=A,hover:h=!1,selected:f=!1}=r,m=(0,a.A)(r,y),b=o.useContext(u.A),$=(0,n.A)({},r,{component:d,hover:h,selected:f,head:b&&"head"===b.variant,footer:b&&"footer"===b.variant}),M=(e=>{const{classes:t,selected:r,hover:n,head:a,footer:o}=e,i={root:["root",r&&"selected",n&&"hover",a&&"head",o&&"footer"]};return(0,s.A)(i,p,t)})($);return(0,v.jsx)(g,(0,n.A)({as:d,ref:t,className:(0,i.A)(M.root,c),role:d===A?null:"row",ownerState:$},m))}))},15769:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(98587),a=r(58168),o=r(9950),i=r(72004),s=r(3484),c=r(646),u=r(18463),l=r(59254),d=r(45558),h=r(1614);function f(e){return(0,h.Ay)("MuiTable",e)}(0,d.A)("MuiTable",["root","stickyHeader"]);var p=r(44414);const m=["className","component","padding","size","stickyHeader"],v=(0,l.Ay)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:r}=e;return(0,a.A)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,a.A)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},r.stickyHeader&&{borderCollapse:"separate"})})),y="table",g=o.forwardRef((function(e,t){const r=(0,u.b)({props:e,name:"MuiTable"}),{className:l,component:d=y,padding:h="normal",size:g="medium",stickyHeader:A=!1}=r,b=(0,n.A)(r,m),$=(0,a.A)({},r,{component:d,padding:h,size:g,stickyHeader:A}),M=(e=>{const{classes:t,stickyHeader:r}=e,n={root:["root",r&&"stickyHeader"]};return(0,s.A)(n,f,t)})($),w=o.useMemo((()=>({padding:h,size:g,stickyHeader:A})),[h,g,A]);return(0,p.jsx)(c.A.Provider,{value:w,children:(0,p.jsx)(v,(0,a.A)({as:d,role:d===y?null:"table",ref:t,className:(0,i.A)(M.root,l),ownerState:$},b))})}))},21671:(e,t,r)=>{"use strict";r.d(t,{A:()=>$});var n=r(98587),a=r(58168),o=r(9950),i=r(72004),s=r(3484),c=r(99269),u=r(89548),l=r(646),d=r(89330),h=r(18463),f=r(59254),p=r(45558),m=r(1614);function v(e){return(0,m.Ay)("MuiTableCell",e)}const y=(0,p.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var g=r(44414);const A=["align","className","component","padding","scope","size","sortDirection","variant"],b=(0,f.Ay)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,u.A)(r.size))],"normal"!==r.padding&&t["padding".concat((0,u.A)(r.padding))],"inherit"!==r.align&&t["align".concat((0,u.A)(r.align))],r.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:r}=e;return(0,a.A)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n ".concat("light"===t.palette.mode?(0,c.a)((0,c.X4)(t.palette.divider,1),.88):(0,c.e$)((0,c.X4)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===r.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===r.variant&&{color:(t.vars||t).palette.text.primary},"footer"===r.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===r.size&&{padding:"6px 16px",["&.".concat(y.paddingCheckbox)]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===r.padding&&{width:48,padding:"0 0 0 4px"},"none"===r.padding&&{padding:0},"left"===r.align&&{textAlign:"left"},"center"===r.align&&{textAlign:"center"},"right"===r.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===r.align&&{textAlign:"justify"},r.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),$=o.forwardRef((function(e,t){const r=(0,h.b)({props:e,name:"MuiTableCell"}),{align:c="inherit",className:f,component:p,padding:m,scope:y,size:$,sortDirection:M,variant:w}=r,x=(0,n.A)(r,A),S=o.useContext(l.A),k=o.useContext(d.A),D=k&&"head"===k.variant;let T;T=p||(D?"th":"td");let H=y;"td"===T?H=void 0:!H&&D&&(H="col");const C=w||k&&k.variant,O=(0,a.A)({},r,{align:c,component:T,padding:m||(S&&S.padding?S.padding:"normal"),size:$||(S&&S.size?S.size:"medium"),sortDirection:M,stickyHeader:"head"===C&&S&&S.stickyHeader,variant:C}),R=(e=>{const{classes:t,variant:r,align:n,padding:a,size:o,stickyHeader:i}=e,c={root:["root",r,i&&"stickyHeader","inherit"!==n&&"align".concat((0,u.A)(n)),"normal"!==a&&"padding".concat((0,u.A)(a)),"size".concat((0,u.A)(o))]};return(0,s.A)(c,v,t)})(O);let N=null;return M&&(N="asc"===M?"ascending":"descending"),(0,g.jsx)(b,(0,a.A)({as:T,ref:t,className:(0,i.A)(R.root,f),"aria-sort":N,scope:H,ownerState:O},x))}))},34075:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(58168),a=r(98587),o=r(9950),i=r(72004),s=r(3484),c=r(89330),u=r(18463),l=r(59254),d=r(45558),h=r(1614);function f(e){return(0,h.Ay)("MuiTableBody",e)}(0,d.A)("MuiTableBody",["root"]);var p=r(44414);const m=["className","component"],v=(0,l.Ay)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),y={variant:"body"},g="tbody",A=o.forwardRef((function(e,t){const r=(0,u.b)({props:e,name:"MuiTableBody"}),{className:o,component:l=g}=r,d=(0,a.A)(r,m),h=(0,n.A)({},r,{component:l}),A=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},f,t)})(h);return(0,p.jsx)(c.A.Provider,{value:y,children:(0,p.jsx)(v,(0,n.A)({className:(0,i.A)(A.root,o),as:l,ref:t,role:l===g?null:"rowgroup",ownerState:h},d))})}))},69780:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(58168),a=r(98587),o=r(9950),i=r(72004),s=r(3484),c=r(89330),u=r(18463),l=r(59254),d=r(45558),h=r(1614);function f(e){return(0,h.Ay)("MuiTableHead",e)}(0,d.A)("MuiTableHead",["root"]);var p=r(44414);const m=["className","component"],v=(0,l.Ay)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),y={variant:"head"},g="thead",A=o.forwardRef((function(e,t){const r=(0,u.b)({props:e,name:"MuiTableHead"}),{className:o,component:l=g}=r,d=(0,a.A)(r,m),h=(0,n.A)({},r,{component:l}),A=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},f,t)})(h);return(0,p.jsx)(c.A.Provider,{value:y,children:(0,p.jsx)(v,(0,n.A)({as:l,className:(0,i.A)(A.root,o),ref:t,role:l===g?null:"rowgroup",ownerState:h},d))})}))},89330:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(9950).createContext()}}]); \ No newline at end of file diff --git a/build/static/js/408.526d4f68.chunk.js b/build/static/js/408.526d4f68.chunk.js new file mode 100644 index 0000000..ad5a4f4 --- /dev/null +++ b/build/static/js/408.526d4f68.chunk.js @@ -0,0 +1 @@ +"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")}}]); \ No newline at end of file diff --git a/build/static/js/4180.172969de.chunk.js b/build/static/js/4180.172969de.chunk.js deleted file mode 100644 index 8fcfcb8..0000000 --- a/build/static/js/4180.172969de.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[4180],{1617:(e,t,r)=>{Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"usePlacesWidget",{enumerable:!0,get:function(){return o.default}});var n=a(r(14345)),o=a(r(13870));function a(e){return e&&e.__esModule?e:{default:e}}},8668:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.loadGoogleMapScript=t.isBrowser=void 0;var r="undefined"!==typeof window&&window.document;t.isBrowser=r;t.loadGoogleMapScript=function(e,t){if(!r)return Promise.resolve();if("undefined"!==typeof google&&google.maps&&google.maps.api)return Promise.resolve();var n=document.querySelectorAll('script[src*="'.concat(e,'"]'));if(n&&n.length)return new Promise((function(e){if("undefined"!==typeof google)return e();n[0].addEventListener("load",(function(){return e()}))}));var o=new URL(t);o.searchParams.set("callback","__REACT_GOOGLE_AUTOCOMPLETE_CALLBACK__");var a=document.createElement("script");return a.src=o.toString(),new Promise((function(e){window.__REACT_GOOGLE_AUTOCOMPLETE_CALLBACK__=e,document.body.appendChild(a)}))}},13870:(e,t,r)=>{function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.ref,r=e.onPlaceSelected,n=e.apiKey,i=e.libraries,u=void 0===i?"places":i,l=e.inputAutocompleteValue,p=void 0===l?"new-password":l,d=e.options,f=(d=void 0===d?{}:d).types,b=void 0===f?["(cities)"]:f,y=d.componentRestrictions,m=d.fields,g=void 0===m?["address_components","geometry.location","place_id","formatted_address"]:m,v=d.bounds,O=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(d,["types","componentRestrictions","fields","bounds"]),P=e.googleMapsScriptBaseUrl,w=void 0===P?c.GOOGLE_MAP_SCRIPT_BASE_URL:P,_=e.language,h=(0,o.useRef)(null),j=(0,o.useRef)(null),A=(0,o.useRef)(null),S=_?"&language=".concat(_):"",M="".concat(w,"?libraries=").concat(u,"&key=").concat(n).concat(S),C=(0,o.useCallback)((function(){return(0,a.loadGoogleMapScript)(w,M)}),[w,M]);return(0,o.useEffect)((function(){var e=s(s({},O),{},{fields:g,types:b,bounds:v});if(y&&(e.componentRestrictions=y),!A.current&&h.current&&a.isBrowser){t&&!t.current&&(t.current=h.current);var o=function(){var t;return"undefined"===typeof google?console.error("Google has not been found. Make sure your provide apiKey prop."):null!==(t=google.maps)&&void 0!==t&&t.places?h.current instanceof HTMLInputElement?(A.current=new google.maps.places.Autocomplete(h.current,e),void(A.current&&(j.current=A.current.addListener("place_changed",(function(){r&&A&&A.current&&r(A.current.getPlace(),h.current,A.current)}))))):console.error("Input ref must be HTMLInputElement."):console.error("Google maps places API must be loaded.")};return n?C().then((function(){return o()})):o(),function(){return j.current?j.current.remove():void 0}}}),[]),(0,o.useEffect)((function(){if(a.isBrowser&&window.MutationObserver&&h.current&&h.current instanceof HTMLInputElement){var e=new MutationObserver((function(){e.disconnect(),h.current&&(h.current.autocomplete=p)}));return e.observe(h.current,{attributes:!0,attributeFilter:["autocomplete"]}),function(){e.disconnect()}}}),[p]),(0,o.useEffect)((function(){A.current&&A.current.setFields(g)}),[g]),(0,o.useEffect)((function(){A.current&&A.current.setBounds(v)}),[v]),(0,o.useEffect)((function(){A.current&&A.current.setComponentRestrictions(y)}),[y]),(0,o.useEffect)((function(){A.current&&A.current.setOptions(O)}),[O]),{ref:h,autocompleteRef:A}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!==typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var u=a?Object.getOwnPropertyDescriptor(e,c):null;u&&(u.get||u.set)?Object.defineProperty(o,c,u):o[c]=e[c]}o.default=e,r&&r.set(e,o);return o}(r(9950)),a=r(8668),c=r(34040);function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t{function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!==typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var i=a?Object.getOwnPropertyDescriptor(e,c):null;i&&(i.get||i.set)?Object.defineProperty(o,c,i):o[c]=e[c]}o.default=e,r&&r.set(e,o);return o}(r(9950)),a=i(r(11942)),c=i(r(13870));function i(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function s(){return s=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function p(e){var t=e.onPlaceSelected,r=e.apiKey,n=e.libraries,a=e.inputAutocompleteValue,i=e.options,u=e.googleMapsScriptBaseUrl,p=e.refProp,d=e.language,f=l(e,["onPlaceSelected","apiKey","libraries","inputAutocompleteValue","options","googleMapsScriptBaseUrl","refProp","language"]),b=(0,c.default)({ref:p,googleMapsScriptBaseUrl:u,onPlaceSelected:t,apiKey:r,libraries:n,inputAutocompleteValue:a,options:i,language:d}).ref;return o.default.createElement("input",s({ref:b},f))}p.propTypes={apiKey:a.default.string,libraries:a.default.arrayOf(a.default.string),ref:a.default.oneOfType([a.default.func,a.default.shape({current:a.default.any})]),googleMapsScriptBaseUrl:a.default.string,onPlaceSelected:a.default.func,inputAutocompleteValue:a.default.string,options:a.default.shape({componentRestrictions:a.default.object,bounds:a.default.object,location:a.default.object,offset:a.default.number,origin:a.default.object,radius:a.default.number,sessionToken:a.default.object,types:a.default.arrayOf(a.default.string)}),language:a.default.string};var d=(0,o.forwardRef)((function(e,t){return o.default.createElement(p,s({},e,{refProp:t}))}));t.default=d},23266:(e,t,r)=>{r.d(t,{A:()=>S});var n=r(98587),o=r(58168),a=r(9950),c=r(72004),i=r(3484),u=r(99269),s=r(59254),l=r(19608),p=r(18463),d=r(13372),f=r(24184),b=r(79044),y=r(31506),m=r(40777),g=r(92455),v=r(88543),O=r(45558),P=r(1614);function w(e){return(0,P.Ay)("MuiMenuItem",e)}const _=(0,O.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var h=r(44414);const j=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],A=(0,s.Ay)(f.A,{shouldForwardProp:e=>(0,l.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:r}=e;return(0,o.A)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(_.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,u.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(_.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,u.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(_.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,u.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,u.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(_.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(_.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(m.A.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(m.A.inset)]:{marginLeft:52},["& .".concat(v.A.root)]:{marginTop:0,marginBottom:0},["& .".concat(v.A.inset)]:{paddingLeft:36},["& .".concat(g.A.root)]:{minWidth:36}},!r.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},r.dense&&(0,o.A)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(g.A.root," svg")]:{fontSize:"1.25rem"}}))})),S=a.forwardRef((function(e,t){const r=(0,p.b)({props:e,name:"MuiMenuItem"}),{autoFocus:u=!1,component:s="li",dense:l=!1,divider:f=!1,disableGutters:m=!1,focusVisibleClassName:g,role:v="menuitem",tabIndex:O,className:P}=r,_=(0,n.A)(r,j),S=a.useContext(d.A),M=a.useMemo((()=>({dense:l||S.dense||!1,disableGutters:m})),[S.dense,l,m]),C=a.useRef(null);(0,b.A)((()=>{u&&C.current&&C.current.focus()}),[u]);const E=(0,o.A)({},r,{dense:M.dense,divider:f,disableGutters:m}),k=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:c,classes:u}=e,s={root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",c&&"selected"]},l=(0,i.A)(s,w,u);return(0,o.A)({},u,l)})(r),R=(0,y.A)(C,t);let L;return r.disabled||(L=void 0!==O?O:-1),(0,h.jsx)(d.A.Provider,{value:M,children:(0,h.jsx)(A,(0,o.A)({ref:R,role:v,tabIndex:L,component:s,focusVisibleClassName:(0,c.A)(k.focusVisible,g),className:(0,c.A)(k.root,P)},_,{ownerState:E,classes:k}))})}))},34040:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GOOGLE_MAP_SCRIPT_BASE_URL=void 0;t.GOOGLE_MAP_SCRIPT_BASE_URL="https://maps.googleapis.com/maps/api/js"},56713:(e,t,r)=>{e.exports=r(1617)}}]); \ No newline at end of file diff --git a/build/static/js/4263.1d7b8c5e.chunk.js b/build/static/js/4263.1d7b8c5e.chunk.js new file mode 100644 index 0000000..699deb8 --- /dev/null +++ b/build/static/js/4263.1d7b8c5e.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[4263],{14263:(e,t,r)=>{r.r(t),r.d(t,{default:()=>T});var i=r(85672),n=r(69039),o=r(76264),s=r(48738),l=r(96019),a=r(31975),c=r(41337),d=r(28169),h=r(28579),x=r(44117),u=r(58571),p=r(91834),g=r(71392),v=r(2866),m=r(50193),A=r(5957),j=r(11969),f=r(80911),w=r(66654),y=r(22555),b=r(29398),k=r(29776),C=r(43318),S=r(63575),Y=r(51808),z=r(65908);const W=e=>{let{value:t,onChange:r,sx:o,placeholder:s="Search (Ctrl + K)",delay:l=300}=e;const a=(0,n.A)(),c=(0,i.useRef)(null),[d,h]=(0,i.useState)(t||"");return(0,i.useEffect)((()=>{h(t||"")}),[t]),(0,i.useEffect)((()=>{const e=setTimeout((()=>{d!==t&&r({target:{value:d}})}),l);return()=>clearTimeout(e)}),[d]),(0,i.useEffect)((()=>{const e=e=>{var t;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(t=c.current)||void 0===t||t.focus());"Escape"===e.key&&document.activeElement===c.current&&c.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,z.jsx)(b.A,{fullWidth:!0,children:(0,z.jsx)(k.A,{inputRef:c,placeholder:s,sx:(0,y.A)({borderRadius:0},o),value:d,onChange:e=>h(e.target.value),autoComplete:"off",size:"large",startAdornment:(0,z.jsx)(C.A,{position:"start",sx:{mr:-.5,color:a.palette.secondary.main},children:(0,z.jsx)(S.A,{})}),endAdornment:(0,z.jsx)(j.A,{sx:{visibility:d?"visible":"hidden"},onClick:()=>h(""),children:(0,z.jsx)(Y.A,{style:{fontSize:"large",color:a.palette.primary.main}})})})})};var E=r(68320),I=r(81425),M=r(25045);const R={width:"100%",height:"calc(100vh - 150px)"};function L(e){var t,r;let{riderLocations:i}=e;console.log("riderLocations",i);const n={lat:Number((null===i||void 0===i||null===(t=i[0])||void 0===t?void 0:t.latitude)||11.0056),lng:Number((null===i||void 0===i||null===(r=i[0])||void 0===r?void 0:r.longitude)||76.9661)},o={url:"https://cdn.rawgit.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-green.png",scaledSize:new window.google.maps.Size(25,41),anchor:new window.google.maps.Point(12,41)},s={url:"https://cdn.rawgit.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-red.png",scaledSize:new window.google.maps.Size(25,41),anchor:new window.google.maps.Point(12,41)};return(0,z.jsx)(M.BH,{googleMapsApiKey:"AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8",children:(0,z.jsx)(M.u6,{mapContainerStyle:R,zoom:12,center:n,children:i&&(null===i||void 0===i?void 0:i.map(((e,t)=>{const r=Number(e.latitude),i=Number(e.longitude);return(0,z.jsxs)("div",{children:[(0,z.jsx)(M.pH,{position:{lat:r,lng:i},icon:"active"==e.status?o:s,label:{fontSize:"14px",fontWeight:"bold"}}),(0,z.jsx)(M.i3,{position:{lat:r,lng:i},mapPaneName:M.i3.OVERLAY_LAYER,children:(0,z.jsx)("div",{style:{background:"none",color:"green",padding:"2px 8px",borderRadius:"4px",fontSize:"12px",fontWeight:600,whiteSpace:"nowrap",transform:"translate(-50%, -140%)",pointerEvents:"none",ml:20},children:(0,z.jsxs)(f.A,{variant:"contained",color:"primary",size:"small",children:[" ".concat(e.username," "),(0,z.jsx)("br",{}),"(".concat(e.orderid||"",") ")]})})})]},t)})))})})}var D=r(59008),F=r(23787),H=r(46077),K=r.n(H),_=r(96088);const N=350,T=()=>{const e=(0,n.A)(),t=(0,o.A)("(min-width:900px)"),r=(0,o.A)(e.breakpoints.down("md")),[y,b]=(0,i.useState)(!1),[k,C]=(0,i.useState)([]),[S,Y]=(0,i.useState)(""),{data:M,isLoading:R,isFetching:H,refetch:T,error:G}=(0,E.I)({queryKey:[1,K()().format("YYYY-MM-DD"),S],queryFn:I.zb,refetchInterval:3e5});return(0,i.useEffect)((()=>{C(M)}),[M]),(0,i.useEffect)((()=>{console.log("selectedRiders",k)}),[k]),(0,i.useEffect)((()=>{b(t)}),[t]),(0,z.jsx)(D.A,{content:!1,children:(0,z.jsxs)(s.A,{sx:{display:"flex",width:"100%",height:"100%",position:"relative"},children:[(0,z.jsxs)(l.Ay,{variant:t?"persistent":"temporary",open:y,onClose:()=>!t&&b(!1),ModalProps:{keepMounted:!0},sx:{"& .MuiDrawer-paper":{width:r?"100vw":N,maxWidth:r?"100vw":N,position:"absolute",left:0,top:0,height:"100%",overflowY:"auto",transition:"transform 0.35s ease-in-out",zIndex:13}},children:[(0,z.jsxs)(s.A,{sx:{position:"sticky",top:0,zIndex:1},children:[(0,z.jsx)(W,{value:S,placeholder:"Search Rider",onChange:e=>Y(e.target.value),sx:{height:60,bgcolor:"white","& .MuiOutlinedInput-notchedOutline":{borderBottom:"1px solid",borderColor:e.palette.secondary.light}}}),(0,z.jsxs)(a.A,{children:[(0,z.jsxs)(c.Ay,{sx:{cursor:"pointer","&:hover":{bgcolor:e.palette.secondary.lighter},bgcolor:"white",mt:-1},children:[(0,z.jsx)(d.A,{children:(0,z.jsx)(h.A,{checked:(null===M||void 0===M?void 0:M.length)==(null===k||void 0===k?void 0:k.length),onChange:e=>{e.target.checked&&C(M)}})}),(0,z.jsx)(x.A,{primary:"All"})]}),(0,z.jsx)(u.A,{})]})]}),(0,z.jsx)(a.A,{children:R||H?Array.from({length:10}).map(((e,t)=>(0,z.jsxs)(i.Fragment,{children:[(0,z.jsxs)(c.Ay,{sx:{py:1.5,px:2},children:[(0,z.jsx)(d.A,{children:(0,z.jsx)(p.A,{variant:"circular",width:24,height:24})}),(0,z.jsx)(x.A,{primary:(0,z.jsx)(p.A,{variant:"text",width:"60%",height:22}),secondary:(0,z.jsx)(p.A,{variant:"text",width:"40%",height:18})}),(0,z.jsxs)(g.A,{spacing:.5,textAlign:"right",children:[(0,z.jsx)(p.A,{variant:"text",width:50,height:18}),(0,z.jsx)(p.A,{variant:"text",width:80,height:16})]})]}),(0,z.jsx)(u.A,{})]},t))):!r&&(null===M||void 0===M?void 0:M.map((t=>{var r,n,o;return(0,z.jsxs)(i.Fragment,{children:[(0,z.jsxs)(c.Ay,{sx:{cursor:"pointer",py:1,px:2,borderRadius:1,"&:hover":{bgcolor:e.palette.secondary.lighter}},secondaryAction:(0,z.jsxs)(g.A,{textAlign:"right",spacing:.5,children:[(0,z.jsx)(v.A,{variant:"body2",noWrap:!0,sx:{color:"active"==t.status?"success.main":"error.main"},children:t.userid}),(0,z.jsx)(v.A,{variant:"caption",color:"text.secondary",noWrap:!0,children:K()(t.logdate).format("DD/MM/YYYY hh:mm A")})]}),children:[(0,z.jsx)(d.A,{children:(0,z.jsx)(h.A,{sx:{color:"active"==t.status?"green":"red","&.Mui-checked":{color:"active"==t.status?"green":"red"}},checked:1===(null===k||void 0===k?void 0:k.length)&&(null===(r=k[0])||void 0===r?void 0:r.userid)===(null===t||void 0===t?void 0:t.userid),onChange:e=>{e.target.checked?C([t]):C(M)}})}),(0,z.jsx)(x.A,{primary:(0,z.jsxs)(v.A,{noWrap:!0,children:[(null===(n=t.username)||void 0===n?void 0:n.slice(0,25))||"",(null===(o=t.username)||void 0===o?void 0:o.length)>25&&"..."]}),secondary:(0,z.jsx)(v.A,{variant:"caption",color:"text.secondary",noWrap:!0,children:t.contactno||"##########"})})]}),(0,z.jsx)(u.A,{})]},t.userid)})))}),r&&!R&&!H&&(0,z.jsx)(F.nV,{children:null===M||void 0===M?void 0:M.map((e=>{var t,r,i;const n="active"==e.status,o=1===(null===k||void 0===k?void 0:k.length)&&(null===(t=k[0])||void 0===t?void 0:t.userid)===(null===e||void 0===e?void 0:e.userid);return(0,z.jsx)(F.pg,{accent:n?"#10b981":"#ef4444",selected:o,header:(0,z.jsxs)(g.A,{direction:"row",alignItems:"flex-start",spacing:1,children:[(0,z.jsx)(h.A,{sx:{p:.5,color:n?"green":"red","&.Mui-checked":{color:n?"green":"red"}},checked:o,onChange:t=>{t.target.checked?C([e]):C(M)}}),(0,z.jsxs)(s.A,{sx:{minWidth:0,flexGrow:1},children:[(0,z.jsxs)(v.A,{noWrap:!0,sx:{fontWeight:600},children:[(null===(r=e.username)||void 0===r?void 0:r.slice(0,25))||"",(null===(i=e.username)||void 0===i?void 0:i.length)>25&&"..."]}),(0,z.jsx)(v.A,{variant:"caption",color:"text.secondary",noWrap:!0,children:e.contactno||"##########"})]})]}),children:(0,z.jsxs)(F.FG,{children:[(0,z.jsx)(F.pY,{label:"User ID",children:(0,z.jsx)(v.A,{sx:{fontSize:13,fontWeight:600,color:n?"success.main":"error.main"},noWrap:!0,children:e.userid})}),(0,z.jsx)(F.pY,{label:"Status",value:n?"Active":"Inactive"}),(0,z.jsx)(F.pY,{label:"Last Log",value:K()(e.logdate).format("DD/MM/YYYY hh:mm A"),full:!0})]})},e.userid)}))})]}),(0,z.jsx)(m.A,{elevation:0,position:"absolute",sx:{top:0,left:y&&t?"".concat(N,"px"):0,width:y&&t?"calc(100% - ".concat(N,"px)"):"100%",transition:"left 0.3s ease, width 0.3s ease",backgroundColor:"white",borderBottom:"1px solid",borderColor:e.palette.secondary.light},children:(0,z.jsx)(A.A,{children:(0,z.jsxs)(g.A,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{width:"100%"},children:[(0,z.jsxs)(g.A,{direction:"row",alignItems:"center",children:[(0,z.jsx)(j.A,{color:"primary",onClick:()=>b(!y),children:(0,z.jsx)(w.A,{})}),(0,z.jsx)(v.A,{variant:"h5",color:"primary",sx:{ml:2},children:"Riders Locations"})]}),(0,z.jsx)(f.A,{variant:"outlined",color:"primary",onClick:()=>{T()},children:"Refresh"})]})})}),(0,z.jsxs)(s.A,{sx:{flexGrow:1,overflow:"auto",pt:"64px",pl:y&&t?"".concat(N,"px"):0,transition:"padding-left 0.3s ease",minHeight:"80vh"},children:[(R||H)&&(0,z.jsx)(s.A,{position:"relative",width:"100%",height:"80vh",display:"grid",placeItems:"center",children:(0,z.jsx)(p.A,{variant:"rectangular",width:"100%",height:"100%",animation:"wave",sx:{position:"absolute",top:0,left:0,borderRadius:1,zIndex:1}})}),(null===k||void 0===k?void 0:k.length)>0&&(0,z.jsx)(L,{riderLocations:k}),G&&(0,z.jsx)(s.A,{sx:{width:"100% ",height:"100%"},children:(0,z.jsx)("img",{src:_,alt:"mantis",style:{height:"100%",width:"100%"}})})]})]})})}},23787:(e,t,r)=>{r.d(t,{FG:()=>u,nV:()=>h,pY:()=>p,pg:()=>x});var i=r(22555),n=r(53986),o=r(71392),s=r(55235),l=r(48738),a=r(2866),c=r(65908);const d=["children","scroll","onScroll","sx"],h=e=>{let{children:t,scroll:r=!1,onScroll:s,sx:l}=e,a=(0,n.A)(e,d);return(0,c.jsx)(o.A,(0,i.A)((0,i.A)({spacing:1.25,onScroll:s,sx:(0,i.A)((0,i.A)({p:1.5},r&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),l)},a),{},{children:t}))},x=e=>{let{accent:t="#662582",header:r,footer:n,selected:o=!1,onClick:a,children:d,sx:h}=e;return(0,c.jsxs)(s.A,{elevation:0,onClick:a,sx:(0,i.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:o?t:"#e2e8f0",background:o?"".concat(t,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},h),children:[(0,c.jsx)(l.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:t}}),(0,c.jsxs)(l.A,{sx:{p:1.5,pl:2},children:[r,d,n]})]})},u=e=>{let{children:t,columns:r=2,sx:n}=e;return(0,c.jsx)(l.A,{sx:(0,i.A)({display:"grid",gridTemplateColumns:"repeat(".concat(r,", minmax(0, 1fr))"),gap:1,mt:1.25},n),children:t})},p=e=>{let{label:t,value:r,children:i,full:n=!1,align:o="left"}=e;return(0,c.jsxs)(l.A,{sx:{gridColumn:n?"1 / -1":"auto",minWidth:0,textAlign:o},children:[(0,c.jsx)(a.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:t}),(0,c.jsx)(l.A,{sx:{mt:.25,minWidth:0},children:void 0!==i?i:(0,c.jsx)(a.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==r&&void 0!==r?r:"\u2014"})})]})}},96088:(e,t,r)=>{e.exports=r.p+"static/media/Error500.1619a596c73d5cce4899.png"}}]); \ No newline at end of file diff --git a/build/static/js/4263.ec3fbee8.chunk.js b/build/static/js/4263.ec3fbee8.chunk.js deleted file mode 100644 index d3100f7..0000000 --- a/build/static/js/4263.ec3fbee8.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[4263],{14263:(e,t,r)=>{r.r(t),r.d(t,{default:()=>T});var i=r(9950),n=r(14857),o=r(47223),s=r(16491),l=r(71525),a=r(249),c=r(26050),d=r(38614),h=r(93038),x=r(83563),u=r(74745),p=r(82917),g=r(93230),v=r(82053),m=r(88060),A=r(83239),j=r(25333),f=r(10226),w=r(99624),y=r(89379),b=r(25979),k=r(2660),C=r(2046),S=r(33425),Y=r(7762),z=r(44414);const W=e=>{let{value:t,onChange:r,sx:o,placeholder:s="Search (Ctrl + K)",delay:l=300}=e;const a=(0,n.A)(),c=(0,i.useRef)(null),[d,h]=(0,i.useState)(t||"");return(0,i.useEffect)((()=>{h(t||"")}),[t]),(0,i.useEffect)((()=>{const e=setTimeout((()=>{d!==t&&r({target:{value:d}})}),l);return()=>clearTimeout(e)}),[d]),(0,i.useEffect)((()=>{const e=e=>{var t;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(t=c.current)||void 0===t||t.focus());"Escape"===e.key&&document.activeElement===c.current&&c.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,z.jsx)(b.A,{fullWidth:!0,children:(0,z.jsx)(k.A,{inputRef:c,placeholder:s,sx:(0,y.A)({borderRadius:0},o),value:d,onChange:e=>h(e.target.value),autoComplete:"off",size:"large",startAdornment:(0,z.jsx)(C.A,{position:"start",sx:{mr:-.5,color:a.palette.secondary.main},children:(0,z.jsx)(S.A,{})}),endAdornment:(0,z.jsx)(j.A,{sx:{visibility:d?"visible":"hidden"},onClick:()=>h(""),children:(0,z.jsx)(Y.A,{style:{fontSize:"large",color:a.palette.primary.main}})})})})};var E=r(36150),I=r(81425),M=r(10523);const R={width:"100%",height:"calc(100vh - 150px)"};function L(e){var t,r;let{riderLocations:i}=e;console.log("riderLocations",i);const n={lat:Number((null===i||void 0===i||null===(t=i[0])||void 0===t?void 0:t.latitude)||11.0056),lng:Number((null===i||void 0===i||null===(r=i[0])||void 0===r?void 0:r.longitude)||76.9661)},o={url:"https://cdn.rawgit.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-green.png",scaledSize:new window.google.maps.Size(25,41),anchor:new window.google.maps.Point(12,41)},s={url:"https://cdn.rawgit.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-red.png",scaledSize:new window.google.maps.Size(25,41),anchor:new window.google.maps.Point(12,41)};return(0,z.jsx)(M.BH,{googleMapsApiKey:"AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8",children:(0,z.jsx)(M.u6,{mapContainerStyle:R,zoom:12,center:n,children:i&&(null===i||void 0===i?void 0:i.map(((e,t)=>{const r=Number(e.latitude),i=Number(e.longitude);return(0,z.jsxs)("div",{children:[(0,z.jsx)(M.pH,{position:{lat:r,lng:i},icon:"active"==e.status?o:s,label:{fontSize:"14px",fontWeight:"bold"}}),(0,z.jsx)(M.i3,{position:{lat:r,lng:i},mapPaneName:M.i3.OVERLAY_LAYER,children:(0,z.jsx)("div",{style:{background:"none",color:"green",padding:"2px 8px",borderRadius:"4px",fontSize:"12px",fontWeight:600,whiteSpace:"nowrap",transform:"translate(-50%, -140%)",pointerEvents:"none",ml:20},children:(0,z.jsxs)(f.A,{variant:"contained",color:"primary",size:"small",children:[" ".concat(e.username," "),(0,z.jsx)("br",{}),"(".concat(e.orderid||"",") ")]})})})]},t)})))})})}var D=r(50027),F=r(23787),H=r(4159),K=r.n(H),_=r(96088);const N=350,T=()=>{const e=(0,n.A)(),t=(0,o.A)("(min-width:900px)"),r=(0,o.A)(e.breakpoints.down("md")),[y,b]=(0,i.useState)(!1),[k,C]=(0,i.useState)([]),[S,Y]=(0,i.useState)(""),{data:M,isLoading:R,isFetching:H,refetch:T,error:G}=(0,E.I)({queryKey:[1,K()().format("YYYY-MM-DD"),S],queryFn:I.zb,refetchInterval:3e5});return(0,i.useEffect)((()=>{C(M)}),[M]),(0,i.useEffect)((()=>{console.log("selectedRiders",k)}),[k]),(0,i.useEffect)((()=>{b(t)}),[t]),(0,z.jsx)(D.A,{content:!1,children:(0,z.jsxs)(s.A,{sx:{display:"flex",width:"100%",height:"100%",position:"relative"},children:[(0,z.jsxs)(l.Ay,{variant:t?"persistent":"temporary",open:y,onClose:()=>!t&&b(!1),ModalProps:{keepMounted:!0},sx:{"& .MuiDrawer-paper":{width:r?"100vw":N,maxWidth:r?"100vw":N,position:"absolute",left:0,top:0,height:"100%",overflowY:"auto",transition:"transform 0.35s ease-in-out",zIndex:13}},children:[(0,z.jsxs)(s.A,{sx:{position:"sticky",top:0,zIndex:1},children:[(0,z.jsx)(W,{value:S,placeholder:"Search Rider",onChange:e=>Y(e.target.value),sx:{height:60,bgcolor:"white","& .MuiOutlinedInput-notchedOutline":{borderBottom:"1px solid",borderColor:e.palette.secondary.light}}}),(0,z.jsxs)(a.A,{children:[(0,z.jsxs)(c.Ay,{sx:{cursor:"pointer","&:hover":{bgcolor:e.palette.secondary.lighter},bgcolor:"white",mt:-1},children:[(0,z.jsx)(d.A,{children:(0,z.jsx)(h.A,{checked:(null===M||void 0===M?void 0:M.length)==(null===k||void 0===k?void 0:k.length),onChange:e=>{e.target.checked&&C(M)}})}),(0,z.jsx)(x.A,{primary:"All"})]}),(0,z.jsx)(u.A,{})]})]}),(0,z.jsx)(a.A,{children:R||H?Array.from({length:10}).map(((e,t)=>(0,z.jsxs)(i.Fragment,{children:[(0,z.jsxs)(c.Ay,{sx:{py:1.5,px:2},children:[(0,z.jsx)(d.A,{children:(0,z.jsx)(p.A,{variant:"circular",width:24,height:24})}),(0,z.jsx)(x.A,{primary:(0,z.jsx)(p.A,{variant:"text",width:"60%",height:22}),secondary:(0,z.jsx)(p.A,{variant:"text",width:"40%",height:18})}),(0,z.jsxs)(g.A,{spacing:.5,textAlign:"right",children:[(0,z.jsx)(p.A,{variant:"text",width:50,height:18}),(0,z.jsx)(p.A,{variant:"text",width:80,height:16})]})]}),(0,z.jsx)(u.A,{})]},t))):!r&&(null===M||void 0===M?void 0:M.map((t=>{var r,n,o;return(0,z.jsxs)(i.Fragment,{children:[(0,z.jsxs)(c.Ay,{sx:{cursor:"pointer",py:1,px:2,borderRadius:1,"&:hover":{bgcolor:e.palette.secondary.lighter}},secondaryAction:(0,z.jsxs)(g.A,{textAlign:"right",spacing:.5,children:[(0,z.jsx)(v.A,{variant:"body2",noWrap:!0,sx:{color:"active"==t.status?"success.main":"error.main"},children:t.userid}),(0,z.jsx)(v.A,{variant:"caption",color:"text.secondary",noWrap:!0,children:K()(t.logdate).format("DD/MM/YYYY hh:mm A")})]}),children:[(0,z.jsx)(d.A,{children:(0,z.jsx)(h.A,{sx:{color:"active"==t.status?"green":"red","&.Mui-checked":{color:"active"==t.status?"green":"red"}},checked:1===(null===k||void 0===k?void 0:k.length)&&(null===(r=k[0])||void 0===r?void 0:r.userid)===(null===t||void 0===t?void 0:t.userid),onChange:e=>{e.target.checked?C([t]):C(M)}})}),(0,z.jsx)(x.A,{primary:(0,z.jsxs)(v.A,{noWrap:!0,children:[(null===(n=t.username)||void 0===n?void 0:n.slice(0,25))||"",(null===(o=t.username)||void 0===o?void 0:o.length)>25&&"..."]}),secondary:(0,z.jsx)(v.A,{variant:"caption",color:"text.secondary",noWrap:!0,children:t.contactno||"##########"})})]}),(0,z.jsx)(u.A,{})]},t.userid)})))}),r&&!R&&!H&&(0,z.jsx)(F.nV,{children:null===M||void 0===M?void 0:M.map((e=>{var t,r,i;const n="active"==e.status,o=1===(null===k||void 0===k?void 0:k.length)&&(null===(t=k[0])||void 0===t?void 0:t.userid)===(null===e||void 0===e?void 0:e.userid);return(0,z.jsx)(F.pg,{accent:n?"#10b981":"#ef4444",selected:o,header:(0,z.jsxs)(g.A,{direction:"row",alignItems:"flex-start",spacing:1,children:[(0,z.jsx)(h.A,{sx:{p:.5,color:n?"green":"red","&.Mui-checked":{color:n?"green":"red"}},checked:o,onChange:t=>{t.target.checked?C([e]):C(M)}}),(0,z.jsxs)(s.A,{sx:{minWidth:0,flexGrow:1},children:[(0,z.jsxs)(v.A,{noWrap:!0,sx:{fontWeight:600},children:[(null===(r=e.username)||void 0===r?void 0:r.slice(0,25))||"",(null===(i=e.username)||void 0===i?void 0:i.length)>25&&"..."]}),(0,z.jsx)(v.A,{variant:"caption",color:"text.secondary",noWrap:!0,children:e.contactno||"##########"})]})]}),children:(0,z.jsxs)(F.FG,{children:[(0,z.jsx)(F.pY,{label:"User ID",children:(0,z.jsx)(v.A,{sx:{fontSize:13,fontWeight:600,color:n?"success.main":"error.main"},noWrap:!0,children:e.userid})}),(0,z.jsx)(F.pY,{label:"Status",value:n?"Active":"Inactive"}),(0,z.jsx)(F.pY,{label:"Last Log",value:K()(e.logdate).format("DD/MM/YYYY hh:mm A"),full:!0})]})},e.userid)}))})]}),(0,z.jsx)(m.A,{elevation:0,position:"absolute",sx:{top:0,left:y&&t?"".concat(N,"px"):0,width:y&&t?"calc(100% - ".concat(N,"px)"):"100%",transition:"left 0.3s ease, width 0.3s ease",backgroundColor:"white",borderBottom:"1px solid",borderColor:e.palette.secondary.light},children:(0,z.jsx)(A.A,{children:(0,z.jsxs)(g.A,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{width:"100%"},children:[(0,z.jsxs)(g.A,{direction:"row",alignItems:"center",children:[(0,z.jsx)(j.A,{color:"primary",onClick:()=>b(!y),children:(0,z.jsx)(w.A,{})}),(0,z.jsx)(v.A,{variant:"h5",color:"primary",sx:{ml:2},children:"Riders Locations"})]}),(0,z.jsx)(f.A,{variant:"outlined",color:"primary",onClick:()=>{T()},children:"Refresh"})]})})}),(0,z.jsxs)(s.A,{sx:{flexGrow:1,overflow:"auto",pt:"64px",pl:y&&t?"".concat(N,"px"):0,transition:"padding-left 0.3s ease",minHeight:"80vh"},children:[(R||H)&&(0,z.jsx)(s.A,{position:"relative",width:"100%",height:"80vh",display:"grid",placeItems:"center",children:(0,z.jsx)(p.A,{variant:"rectangular",width:"100%",height:"100%",animation:"wave",sx:{position:"absolute",top:0,left:0,borderRadius:1,zIndex:1}})}),(null===k||void 0===k?void 0:k.length)>0&&(0,z.jsx)(L,{riderLocations:k}),G&&(0,z.jsx)(s.A,{sx:{width:"100% ",height:"100%"},children:(0,z.jsx)("img",{src:_,alt:"mantis",style:{height:"100%",width:"100%"}})})]})]})})}},23787:(e,t,r)=>{r.d(t,{FG:()=>u,nV:()=>h,pY:()=>p,pg:()=>x});var i=r(89379),n=r(80045),o=r(93230),s=r(2235),l=r(16491),a=r(82053),c=r(44414);const d=["children","scroll","onScroll","sx"],h=e=>{let{children:t,scroll:r=!1,onScroll:s,sx:l}=e,a=(0,n.A)(e,d);return(0,c.jsx)(o.A,(0,i.A)((0,i.A)({spacing:1.25,onScroll:s,sx:(0,i.A)((0,i.A)({p:1.5},r&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),l)},a),{},{children:t}))},x=e=>{let{accent:t="#662582",header:r,footer:n,selected:o=!1,onClick:a,children:d,sx:h}=e;return(0,c.jsxs)(s.A,{elevation:0,onClick:a,sx:(0,i.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:o?t:"#e2e8f0",background:o?"".concat(t,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},h),children:[(0,c.jsx)(l.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:t}}),(0,c.jsxs)(l.A,{sx:{p:1.5,pl:2},children:[r,d,n]})]})},u=e=>{let{children:t,columns:r=2,sx:n}=e;return(0,c.jsx)(l.A,{sx:(0,i.A)({display:"grid",gridTemplateColumns:"repeat(".concat(r,", minmax(0, 1fr))"),gap:1,mt:1.25},n),children:t})},p=e=>{let{label:t,value:r,children:i,full:n=!1,align:o="left"}=e;return(0,c.jsxs)(l.A,{sx:{gridColumn:n?"1 / -1":"auto",minWidth:0,textAlign:o},children:[(0,c.jsx)(a.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:t}),(0,c.jsx)(l.A,{sx:{mt:.25,minWidth:0},children:void 0!==i?i:(0,c.jsx)(a.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==r&&void 0!==r?r:"\u2014"})})]})}},96088:(e,t,r)=>{e.exports=r.p+"static/media/Error500.1619a596c73d5cce4899.png"}}]); \ No newline at end of file diff --git a/build/static/js/4274.767ba516.chunk.js b/build/static/js/4274.767ba516.chunk.js new file mode 100644 index 0000000..b9ace0b --- /dev/null +++ b/build/static/js/4274.767ba516.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[4274],{6749:(e,t,r)=>{r.d(t,{A:()=>n});var i=r(31529),o=r(65908);const n=(0,i.A)((0,o.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDownOutlined")},12010:(e,t,r)=>{r.d(t,{A:()=>N});var i=r(57528),o=r(84849),n=r(27326),s=r(85672),a=r(72574),c=r(25234),l=r(8913),d=r(16775),u=r(38009),h=r(60308),v=r(37300),p=r(10644);function A(e){return(0,p.Ay)("MuiCircularProgress",e)}(0,v.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var f,m,b,g,k=r(65908);const y=["className","color","disableShrink","size","style","thickness","value","variant"];let x,S,w,P;const M=44,C=(0,l.i7)(x||(x=f||(f=(0,i.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),R=(0,l.i7)(S||(S=m||(m=(0,i.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),O=(0,h.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["color".concat((0,d.A)(r.color))]]}})((e=>{let{ownerState:t,theme:r}=e;return(0,n.A)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,l.AH)(w||(w=b||(b=(0,i.A)(["\n animation: "," 1.4s linear infinite;\n "]))),C)})),z=(0,h.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),j=(0,h.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t["circle".concat((0,d.A)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:r}=e;return(0,n.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,l.AH)(P||(P=g||(g=(0,i.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),R)})),N=s.forwardRef((function(e,t){const r=(0,u.b)({props:e,name:"MuiCircularProgress"}),{className:i,color:s="primary",disableShrink:l=!1,size:h=40,style:v,thickness:p=3.6,value:f=0,variant:m="indeterminate"}=r,b=(0,o.A)(r,y),g=(0,n.A)({},r,{color:s,disableShrink:l,size:h,thickness:p,value:f,variant:m}),x=(e=>{const{classes:t,variant:r,color:i,disableShrink:o}=e,n={root:["root",r,"color".concat((0,d.A)(i))],svg:["svg"],circle:["circle","circle".concat((0,d.A)(r)),o&&"circleDisableShrink"]};return(0,c.A)(n,A,t)})(g),S={},w={},P={};if("determinate"===m){const e=2*Math.PI*((M-p)/2);S.strokeDasharray=e.toFixed(3),P["aria-valuenow"]=Math.round(f),S.strokeDashoffset="".concat(((100-f)/100*e).toFixed(3),"px"),w.transform="rotate(-90deg)"}return(0,k.jsx)(O,(0,n.A)({className:(0,a.A)(x.root,i),style:(0,n.A)({width:h,height:h},w,v),ownerState:g,ref:t,role:"progressbar"},P,b,{children:(0,k.jsx)(z,{className:x.svg,ownerState:g,viewBox:"".concat(22," ").concat(22," ").concat(M," ").concat(M),children:(0,k.jsx)(j,{className:x.circle,style:S,ownerState:g,cx:M,cy:M,r:(M-p)/2,fill:"none",strokeWidth:p})})}))}))},17450:(e,t,r)=>{r.d(t,{A:()=>f});var i=r(84849),o=r(27326),n=r(85672),s=r(72574),a=r(25234),c=r(60308),l=r(38009),d=r(37300),u=r(10644);function h(e){return(0,u.Ay)("MuiDialogActions",e)}(0,d.A)("MuiDialogActions",["root","spacing"]);var v=r(65908);const p=["className","disableSpacing"],A=(0,c.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,o.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),f=n.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiDialogActions"}),{className:n,disableSpacing:c=!1}=r,d=(0,i.A)(r,p),u=(0,o.A)({},r,{disableSpacing:c}),f=(e=>{const{classes:t,disableSpacing:r}=e,i={root:["root",!r&&"spacing"]};return(0,a.A)(i,h,t)})(u);return(0,v.jsx)(A,(0,o.A)({className:(0,s.A)(f.root,n),ownerState:u,ref:t},d))}))},18871:(e,t,r)=>{r.d(t,{A:()=>c});var i=r(27326),o=r(85672);const n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"}}]},name:"delete",theme:"filled"};var s=r(75890),a=function(e,t){return o.createElement(s.A,(0,i.A)({},e,{ref:t,icon:n}))};const c=o.forwardRef(a)},28579:(e,t,r)=>{r.d(t,{A:()=>R});var i=r(84849),o=r(27326),n=r(85672),s=r(72574),a=r(25234),c=r(10247),l=r(42081),d=r(31529),u=r(65908);const h=(0,d.A)((0,u.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),v=(0,d.A)((0,u.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),p=(0,d.A)((0,u.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var A=r(16775),f=r(38009),m=r(60308),b=r(24270),g=r(37300),k=r(10644);function y(e){return(0,k.Ay)("MuiCheckbox",e)}const x=(0,g.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),S=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],w=(0,m.Ay)(l.A,{shouldForwardProp:e=>(0,b.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t["size".concat((0,A.A)(r.size))],"default"!==r.color&&t["color".concat((0,A.A)(r.color))]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,o.A)({color:(t.vars||t).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===r.color?t.vars.palette.action.activeChannel:t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,c.X4)("default"===r.color?t.palette.action.active:t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{["&.".concat(x.checked,", &.").concat(x.indeterminate)]:{color:(t.vars||t).palette[r.color].main},["&.".concat(x.disabled)]:{color:(t.vars||t).palette.action.disabled}})})),P=(0,u.jsx)(v,{}),M=(0,u.jsx)(h,{}),C=(0,u.jsx)(p,{}),R=n.forwardRef((function(e,t){var r,c;const l=(0,f.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:d=P,color:h="primary",icon:v=M,indeterminate:p=!1,indeterminateIcon:m=C,inputProps:b,size:g="medium",className:k}=l,x=(0,i.A)(l,S),R=p?m:v,O=p?m:d,z=(0,o.A)({},l,{color:h,indeterminate:p,size:g}),j=(e=>{const{classes:t,indeterminate:r,color:i,size:n}=e,s={root:["root",r&&"indeterminate","color".concat((0,A.A)(i)),"size".concat((0,A.A)(n))]},c=(0,a.A)(s,y,t);return(0,o.A)({},t,c)})(z);return(0,u.jsx)(w,(0,o.A)({type:"checkbox",inputProps:(0,o.A)({"data-indeterminate":p},b),icon:n.cloneElement(R,{fontSize:null!=(r=R.props.fontSize)?r:g}),checkedIcon:n.cloneElement(O,{fontSize:null!=(c=O.props.fontSize)?c:g}),ownerState:z,ref:t,className:(0,s.A)(j.root,k)},x,{classes:j}))}))},41033:(e,t,r)=>{r.d(t,{q:()=>c});var i=r(22555),o=r(48149),n=r(59949),s=class extends o.${constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions((0,i.A)((0,i.A)({},e),{},{behavior:(0,n.PL)()}),t)}getOptimisticResult(e){return e.behavior=(0,n.PL)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch((0,i.A)((0,i.A)({},e),{},{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(e){return this.fetch((0,i.A)((0,i.A)({},e),{},{meta:{fetchMore:{direction:"backward"}}}))}createResult(e,t){var r,o,s,a;const{state:c}=e,l=super.createResult(e,t),{isFetching:d,isRefetching:u}=l,h=d&&"forward"===(null===(r=c.fetchMeta)||void 0===r||null===(o=r.fetchMore)||void 0===o?void 0:o.direction),v=d&&"backward"===(null===(s=c.fetchMeta)||void 0===s||null===(a=s.fetchMore)||void 0===a?void 0:a.direction);return(0,i.A)((0,i.A)({},l),{},{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,n.rB)(t,c.data),hasPreviousPage:(0,n.RQ)(t,c.data),isFetchingNextPage:h,isFetchingPreviousPage:v,isRefetching:u&&!h&&!v})}},a=r(59363);function c(e,t){return(0,a.t)(e,s,t)}},42081:(e,t,r)=>{r.d(t,{A:()=>y});var i=r(84849),o=r(27326),n=r(85672),s=r(72574),a=r(25234),c=r(16775),l=r(60308),d=r(24270),u=r(11235),h=r(75520),v=r(61949),p=r(37300),A=r(10644);function f(e){return(0,A.Ay)("PrivateSwitchBase",e)}(0,p.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var m=r(65908);const b=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],g=(0,l.Ay)(v.A)((e=>{let{ownerState:t}=e;return(0,o.A)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),k=(0,l.Ay)("input",{shouldForwardProp:d.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),y=n.forwardRef((function(e,t){const{autoFocus:r,checked:n,checkedIcon:l,className:d,defaultChecked:v,disabled:p,disableFocusRipple:A=!1,edge:y=!1,icon:x,id:S,inputProps:w,inputRef:P,name:M,onBlur:C,onChange:R,onFocus:O,readOnly:z,required:j=!1,tabIndex:N,type:F,value:I}=e,B=(0,i.A)(e,b),[E,D]=(0,u.A)({controlled:n,default:Boolean(v),name:"SwitchBase",state:"checked"}),H=(0,h.A)();let L=p;H&&"undefined"===typeof L&&(L=H.disabled);const K="checkbox"===F||"radio"===F,q=(0,o.A)({},e,{checked:E,disabled:L,disableFocusRipple:A,edge:y}),U=(e=>{const{classes:t,checked:r,disabled:i,edge:o}=e,n={root:["root",r&&"checked",i&&"disabled",o&&"edge".concat((0,c.A)(o))],input:["input"]};return(0,a.A)(n,f,t)})(q);return(0,m.jsxs)(g,(0,o.A)({component:"span",className:(0,s.A)(U.root,d),centerRipple:!0,focusRipple:!A,disabled:L,tabIndex:null,role:void 0,onFocus:e=>{O&&O(e),H&&H.onFocus&&H.onFocus(e)},onBlur:e=>{C&&C(e),H&&H.onBlur&&H.onBlur(e)},ownerState:q,ref:t},B,{children:[(0,m.jsx)(k,(0,o.A)({autoFocus:r,checked:n,defaultChecked:v,className:U.input,disabled:L,id:K?S:void 0,name:M,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;D(t),R&&R(e,t)},readOnly:z,ref:P,required:j,ownerState:q,tabIndex:N,type:F},"checkbox"===F&&void 0===I?{}:{value:I},w)),E?l:x]}))}))},68220:(e,t,r)=>{r.d(t,{n:()=>x});var i,o,n,s,a,c,l=r(22555),d=r(85672),u=r(4473),h=r(68341),v=r(9600),p=r(86547),A=r(30138),f=r(90010),m=(i=(0,h.A)("client"),o=(0,h.A)("currentResult"),n=(0,h.A)("currentMutation"),s=(0,h.A)("mutateOptions"),a=(0,h.A)("updateResult"),c=(0,h.A)("notify"),class extends A.Q{constructor(e,t){super(),Object.defineProperty(this,c,{value:g}),Object.defineProperty(this,a,{value:b}),Object.defineProperty(this,i,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,n,{writable:!0,value:void 0}),Object.defineProperty(this,s,{writable:!0,value:void 0}),(0,u.A)(this,o)[o]=void 0,(0,u.A)(this,i)[i]=e,this.setOptions(t),this.bindMethods(),(0,u.A)(this,a)[a]()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const r=this.options;this.options=(0,u.A)(this,i)[i].defaultMutationOptions(e),(0,f.f8)(r,this.options)||(0,u.A)(this,i)[i].getMutationCache().notify({type:"observerOptionsUpdated",mutation:(0,u.A)(this,n)[n],observer:this}),null===(t=(0,u.A)(this,n)[n])||void 0===t||t.setOptions(this.options),null!==r&&void 0!==r&&r.mutationKey&&this.options.mutationKey&&(0,f.EN)(r.mutationKey)!==(0,f.EN)(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var e;this.hasListeners()||(null===(e=(0,u.A)(this,n)[n])||void 0===e||e.removeObserver(this))}onMutationUpdate(e){(0,u.A)(this,a)[a](),(0,u.A)(this,c)[c](e)}getCurrentResult(){return(0,u.A)(this,o)[o]}reset(){var e;null===(e=(0,u.A)(this,n)[n])||void 0===e||e.removeObserver(this),(0,u.A)(this,n)[n]=void 0,(0,u.A)(this,a)[a](),(0,u.A)(this,c)[c]()}mutate(e,t){var r;return(0,u.A)(this,s)[s]=t,null===(r=(0,u.A)(this,n)[n])||void 0===r||r.removeObserver(this),(0,u.A)(this,n)[n]=(0,u.A)(this,i)[i].getMutationCache().build((0,u.A)(this,i)[i],this.options),(0,u.A)(this,n)[n].addObserver(this),(0,u.A)(this,n)[n].execute(e)}});function b(){var e,t;const r=null!==(e=null===(t=(0,u.A)(this,n)[n])||void 0===t?void 0:t.state)&&void 0!==e?e:(0,v.$)();(0,u.A)(this,o)[o]=(0,l.A)((0,l.A)({},r),{},{isPending:"pending"===r.status,isSuccess:"success"===r.status,isError:"error"===r.status,isIdle:"idle"===r.status,mutate:this.mutate,reset:this.reset})}function g(e){p.j.batch((()=>{if((0,u.A)(this,s)[s]&&this.hasListeners()){const h=(0,u.A)(this,o)[o].variables,v=(0,u.A)(this,o)[o].context;var t,r,i,n;if("success"===(null===e||void 0===e?void 0:e.type))null===(t=(r=(0,u.A)(this,s)[s]).onSuccess)||void 0===t||t.call(r,e.data,h,v),null===(i=(n=(0,u.A)(this,s)[s]).onSettled)||void 0===i||i.call(n,e.data,null,h,v);else if("error"===(null===e||void 0===e?void 0:e.type)){var a,c,l,d;null===(a=(c=(0,u.A)(this,s)[s]).onError)||void 0===a||a.call(c,e.error,h,v),null===(l=(d=(0,u.A)(this,s)[s]).onSettled)||void 0===l||l.call(d,void 0,e.error,h,v)}}this.listeners.forEach((e=>{e((0,u.A)(this,o)[o])}))}))}var k=r(66299),y=r(42948);function x(e,t){const r=(0,k.jE)(t),[i]=d.useState((()=>new m(r,e)));d.useEffect((()=>{i.setOptions(e)}),[i,e]);const o=d.useSyncExternalStore(d.useCallback((e=>i.subscribe(p.j.batchCalls(e))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),n=d.useCallback(((e,t)=>{i.mutate(e,t).catch(S)}),[i]);if(o.error&&(0,y.G)(i.options.throwOnError,[o.error]))throw o.error;return(0,l.A)((0,l.A)({},o),{},{mutate:n,mutateAsync:o.mutate})}function S(){}},68320:(e,t,r)=>{r.d(t,{I:()=>n});var i=r(48149),o=r(59363);function n(e,t){return(0,o.t)(e,i.$,t)}},78752:(e,t,r)=>{r.d(t,{A:()=>n});var i=r(31529),o=r(65908);const n=(0,i.A)((0,o.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUpOutlined")}}]); \ No newline at end of file diff --git a/build/static/js/436.b7322d7b.chunk.js b/build/static/js/436.b7322d7b.chunk.js deleted file mode 100644 index 1b259de..0000000 --- a/build/static/js/436.b7322d7b.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[436],{2046:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(98587),a=n(58168),i=n(9950),o=n(72004),c=n(3484),s=n(89548),u=n(82053),l=n(15866),d=n(39766),p=n(59254),v=n(45558),m=n(1614);function f(e){return(0,m.Ay)("MuiInputAdornment",e)}const h=(0,v.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var g,A=n(18463),b=n(44414);const y=["children","className","component","disablePointerEvents","disableTypography","position","variant"],x=(0,p.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["position".concat((0,s.A)(n.position))],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,a.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===n.variant&&{["&.".concat(h.positionStart,"&:not(.").concat(h.hiddenLabel,")")]:{marginTop:16}},"start"===n.position&&{marginRight:8},"end"===n.position&&{marginLeft:8},!0===n.disablePointerEvents&&{pointerEvents:"none"})})),w=i.forwardRef((function(e,t){const n=(0,A.b)({props:e,name:"MuiInputAdornment"}),{children:p,className:v,component:m="div",disablePointerEvents:h=!1,disableTypography:w=!1,position:C,variant:M}=n,k=(0,r.A)(n,y),L=(0,d.A)()||{};let S=M;M&&L.variant,L&&!S&&(S=L.variant);const R=(0,a.A)({},n,{hiddenLabel:L.hiddenLabel,size:L.size,disablePointerEvents:h,position:C,variant:S}),z=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:a,size:i,variant:o}=e,u={root:["root",n&&"disablePointerEvents",a&&"position".concat((0,s.A)(a)),o,r&&"hiddenLabel",i&&"size".concat((0,s.A)(i))]};return(0,c.A)(u,f,t)})(R);return(0,b.jsx)(l.A.Provider,{value:null,children:(0,b.jsx)(x,(0,a.A)({as:m,ownerState:R,className:(0,o.A)(z.root,v),ref:t},k,{children:"string"!==typeof p||w?(0,b.jsxs)(i.Fragment,{children:["start"===C?g||(g=(0,b.jsx)("span",{className:"notranslate",children:"\u200b"})):null,p]}):(0,b.jsx)(u.A,{color:"text.secondary",children:p})}))})}))},4729:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(58168),a=n(9950);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var o=n(61187),c=function(e,t){return a.createElement(o.A,(0,r.A)({},e,{ref:t,icon:i}))};const s=a.forwardRef(c)},8203:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(58168),a=n(9950);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm72-112c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48zm400-188h-59.3c-2.6 0-5 1.2-6.5 3.3L763.7 538.1l-49.9-68.8a7.92 7.92 0 00-6.5-3.3H648c-6.5 0-10.3 7.4-6.5 12.7l109.2 150.7a16.1 16.1 0 0026 0l165.8-228.7c3.8-5.3 0-12.7-6.5-12.7zm-44 306h-64.2c-5.5 0-10.6 2.9-13.6 7.5a352.2 352.2 0 01-49.8 62.2A355.92 355.92 0 01651.1 840a355 355 0 01-138.7 27.9c-48.1 0-94.8-9.4-138.7-27.9a355.92 355.92 0 01-113.3-76.3A353.06 353.06 0 01184 650.5c-18.6-43.8-28-90.5-28-138.5s9.4-94.7 28-138.5c17.9-42.4 43.6-80.5 76.4-113.2 32.8-32.7 70.9-58.4 113.3-76.3a355 355 0 01138.7-27.9c48.1 0 94.8 9.4 138.7 27.9 42.4 17.9 80.5 43.6 113.3 76.3 19 19 35.6 39.8 49.8 62.2 2.9 4.7 8.1 7.5 13.6 7.5H892c6 0 9.8-6.3 7.2-11.6C828.8 178.5 684.7 82 517.7 80 278.9 77.2 80.5 272.5 80 511.2 79.5 750.1 273.3 944 512.4 944c169.2 0 315.6-97 386.7-238.4A8 8 0 00892 694z"}}]},name:"issues-close",theme:"outlined"};var o=n(61187),c=function(e,t){return a.createElement(o.A,(0,r.A)({},e,{ref:t,icon:i}))};const s=a.forwardRef(c)},12678:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(58168),a=n(9950);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var o=n(61187),c=function(e,t){return a.createElement(o.A,(0,r.A)({},e,{ref:t,icon:i}))};const s=a.forwardRef(c)},21636:(e,t,n)=>{"use strict";n.d(t,{h2r:()=>a});var r=n(99230);function a(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{width:"20",height:"16",x:"2",y:"4",rx:"2"}},{tag:"path",attr:{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"}}]})(e)}},23266:(e,t,n)=>{"use strict";n.d(t,{A:()=>L});var r=n(98587),a=n(58168),i=n(9950),o=n(72004),c=n(3484),s=n(99269),u=n(59254),l=n(19608),d=n(18463),p=n(13372),v=n(24184),m=n(79044),f=n(31506),h=n(40777),g=n(92455),A=n(88543),b=n(45558),y=n(1614);function x(e){return(0,y.Ay)("MuiMenuItem",e)}const w=(0,b.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var C=n(44414);const M=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],k=(0,u.Ay)(v.A,{shouldForwardProp:e=>(0,l.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:n}=e;return(0,a.A)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(w.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,s.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(w.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,s.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(w.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,s.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,s.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(w.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(w.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(h.A.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(h.A.inset)]:{marginLeft:52},["& .".concat(A.A.root)]:{marginTop:0,marginBottom:0},["& .".concat(A.A.inset)]:{paddingLeft:36},["& .".concat(g.A.root)]:{minWidth:36}},!n.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},n.dense&&(0,a.A)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(g.A.root," svg")]:{fontSize:"1.25rem"}}))})),L=i.forwardRef((function(e,t){const n=(0,d.b)({props:e,name:"MuiMenuItem"}),{autoFocus:s=!1,component:u="li",dense:l=!1,divider:v=!1,disableGutters:h=!1,focusVisibleClassName:g,role:A="menuitem",tabIndex:b,className:y}=n,w=(0,r.A)(n,M),L=i.useContext(p.A),S=i.useMemo((()=>({dense:l||L.dense||!1,disableGutters:h})),[L.dense,l,h]),R=i.useRef(null);(0,m.A)((()=>{s&&R.current&&R.current.focus()}),[s]);const z=(0,a.A)({},n,{dense:S.dense,divider:v,disableGutters:h}),E=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:s}=e,u={root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},l=(0,c.A)(u,x,s);return(0,a.A)({},s,l)})(n),O=(0,f.A)(R,t);let I;return n.disabled||(I=void 0!==b?b:-1),(0,C.jsx)(p.A.Provider,{value:S,children:(0,C.jsx)(k,(0,a.A)({ref:O,role:A,tabIndex:I,component:u,focusVisibleClassName:(0,o.A)(E.focusVisible,g),className:(0,o.A)(E.root,y)},w,{ownerState:z,classes:E}))})}))},25713:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(98587),a=n(58168),i=n(9950),o=n(72004),c=n(3484),s=n(59254),u=n(18463),l=n(45558),d=n(1614);function p(e){return(0,d.Ay)("MuiCardActions",e)}(0,l.A)("MuiCardActions",["root","spacing"]);var v=n(44414);const m=["disableSpacing","className"],f=(0,s.Ay)("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,a.A)({display:"flex",alignItems:"center",padding:8},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),h=i.forwardRef((function(e,t){const n=(0,u.b)({props:e,name:"MuiCardActions"}),{disableSpacing:i=!1,className:s}=n,l=(0,r.A)(n,m),d=(0,a.A)({},n,{disableSpacing:i}),h=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,c.A)(r,p,t)})(d);return(0,v.jsx)(f,(0,a.A)({className:(0,o.A)(h.root,s),ownerState:d,ref:t},l))}))},28217:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var a=r(n(79526)),i=n(44414);t.A=(0,a.default)((0,i.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"LocationOn")},36150:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});var r=n(69347),a=n(1729);function i(e,t){return(0,a.t)(e,r.$,t)}},39174:(e,t,n)=>{"use strict";n.d(t,{PY8:()=>a});var r=n(99230);function a(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2a5 5 0 1 0 5 5 5 5 0 0 0-5-5zm0 8a3 3 0 1 1 3-3 3 3 0 0 1-3 3zm9 11v-1a7 7 0 0 0-7-7h-4a7 7 0 0 0-7 7v1h2v-1a5 5 0 0 1 5-5h4a5 5 0 0 1 5 5v1z"}}]})(e)}},52097:(e,t,n)=>{"use strict";n.d(t,{d7:()=>o});var r=n(9950);function a(e,t,n,a){var i=this,o=(0,r.useRef)(null),c=(0,r.useRef)(0),s=(0,r.useRef)(0),u=(0,r.useRef)(null),l=(0,r.useRef)([]),d=(0,r.useRef)(),p=(0,r.useRef)(),v=(0,r.useRef)(e),m=(0,r.useRef)(!0);v.current=e;var f="undefined"!=typeof window,h=!t&&0!==t&&f;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,A=!("trailing"in n)||!!n.trailing,b="maxWait"in n,y="debounceOnServer"in n&&!!n.debounceOnServer,x=b?Math.max(+n.maxWait||0,t):null;(0,r.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]);var w=(0,r.useMemo)((function(){var e=function(e){var t=l.current,n=d.current;return l.current=d.current=null,c.current=e,s.current=s.current||e,p.current=v.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(u.current),u.current=h?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!m.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||b&&e-c.current>=x},w=function(t){return u.current=null,A&&l.current?e(t):(l.current=d.current=null,p.current)},C=function e(){var a=Date.now();if(g&&s.current===c.current&&M(),r(a))return w(a);if(m.current){var i=t-(a-o.current),u=b?Math.min(i,x-(a-c.current)):i;n(e,u)}},M=function(){a&&a({})},k=function(){if(f||y){var a=Date.now(),s=r(a);if(l.current=[].slice.call(arguments),d.current=i,o.current=a,s){if(!u.current&&m.current)return c.current=o.current,n(C,t),g?e(o.current):p.current;if(b)return n(C,t),e(o.current)}return u.current||n(C,t),p.current}};return k.cancel=function(){u.current&&(h?cancelAnimationFrame(u.current):clearTimeout(u.current)),c.current=0,l.current=o.current=d.current=u.current=null},k.isPending=function(){return!!u.current},k.flush=function(){return u.current?w(Date.now()):p.current},k}),[g,b,t,x,A,h,f,y,a]);return w}function i(e,t){return e===t}function o(e,t,n){var o=n&&n.equalityFn||i,c=(0,r.useRef)(e),s=(0,r.useState)({})[1],u=a((0,r.useCallback)((function(e){c.current=e,s({})}),[s]),t,n,s),l=(0,r.useRef)(e);return o(l.current,e)||(u(e),l.current=e),[c.current,u]}},55471:function(e){e.exports=(()=>{return e={705:e=>{e.exports=function(e,t){const n=[];return 0===t.length?n.push({text:e,highlight:!1}):t[0][0]>0&&n.push({text:e.slice(0,t[0][0]),highlight:!1}),t.forEach(((r,a)=>{const i=r[0],o=r[1];n.push({text:e.slice(i,o),highlight:!0}),a===t.length-1?o{"use strict";n.d(t,{JXP:()=>i,wnV:()=>a});var r=n(99230);function a(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"}}]})(e)}function i(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}},{tag:"circle",attr:{cx:"12",cy:"7",r:"4"}}]})(e)}},97125:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(23235),a=n(44414);const i=(0,r.A)((0,a.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchOutlined")}}]); \ No newline at end of file diff --git a/build/static/js/4451.436239f4.chunk.js b/build/static/js/4451.436239f4.chunk.js new file mode 100644 index 0000000..5ab7f88 --- /dev/null +++ b/build/static/js/4451.436239f4.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[4451],{13437:(e,t,r)=>{r.d(t,{p:()=>n});var s=r(91323),i=r(73413);const n=(0,s.T7)((function(e){return new i.Control.Zoom(e)}))},19283:(e,t,r)=>{r.d(t,{z:()=>u});var s=r(91323),i=r(81501),n=r(73413),o=r(85672);const u=(0,s.wk)((function(e,t){const r=new n.Popup(e,t.overlayContainer);return(0,i.Q)(r,t)}),(function(e,t,r,s){let{position:i}=r;(0,o.useEffect)((function(){const{instance:r}=e;function n(e){e.popup===r&&(r.update(),s(!0))}function o(e){e.popup===r&&s(!1)}return t.map.on({popupopen:n,popupclose:o}),null==t.overlayContainer?(null!=i&&r.setLatLng(i),r.openOn(t.map)):t.overlayContainer.bindPopup(r),function(){var e;t.map.off({popupopen:n,popupclose:o}),null===(e=t.overlayContainer)||void 0===e||e.unbindPopup(),t.map.removeLayer(r)}}),[e,t,s,i])}))},38965:(e,t,r)=>{r.d(t,{ko:()=>i});var s=r(12414);r(85672);function i(){return(0,s.U$)().map}},66166:(e,t,r)=>{r.d(t,{UF6:()=>i});var s=r(21583);function i(e){return(0,s.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M400 148l-21.12-24.57A191.43 191.43 0 00240 64C134 64 48 150 48 256s86 192 192 192a192.09 192.09 0 00181.07-128"}},{tag:"path",attr:{d:"M464 97.42V208a16 16 0 01-16 16H337.42c-14.26 0-21.4-17.23-11.32-27.31L436.69 86.1C446.77 76 464 83.16 464 97.42z"}}]})(e)}},97448:(e,t,r)=>{r.d(t,{E:()=>S});var s,i,n,o,u,a,c,l,h,p,f,d=r(53986),A=r(85672),b=r(4473),v=r(68341),y=r(86547),m=r(48149),O=r(30138),g=r(90010);function w(e,t){return e.filter((e=>!t.includes(e)))}var Q=(s=(0,v.A)("client"),i=(0,v.A)("result"),n=(0,v.A)("queries"),o=(0,v.A)("observers"),u=(0,v.A)("options"),a=(0,v.A)("combinedResult"),c=(0,v.A)("setResult"),l=(0,v.A)("combineResult"),h=(0,v.A)("findMatchingObservers"),p=(0,v.A)("onUpdate"),f=(0,v.A)("notify"),class extends O.Q{constructor(e,t,r){super(),Object.defineProperty(this,f,{value:R}),Object.defineProperty(this,p,{value:j}),Object.defineProperty(this,h,{value:P}),Object.defineProperty(this,l,{value:E}),Object.defineProperty(this,c,{value:C}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,i,{writable:!0,value:void 0}),Object.defineProperty(this,n,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),(0,b.A)(this,s)[s]=e,(0,b.A)(this,n)[n]=[],(0,b.A)(this,o)[o]=[],(0,b.A)(this,c)[c]([]),this.setQueries(t,r)}onSubscribe(){1===this.listeners.size&&(0,b.A)(this,o)[o].forEach((e=>{e.subscribe((t=>{(0,b.A)(this,p)[p](e,t)}))}))}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,(0,b.A)(this,o)[o].forEach((e=>{e.destroy()}))}setQueries(e,t,r){(0,b.A)(this,n)[n]=e,(0,b.A)(this,u)[u]=t,y.j.batch((()=>{const e=(0,b.A)(this,o)[o],t=(0,b.A)(this,h)[h]((0,b.A)(this,n)[n]);t.forEach((e=>e.observer.setOptions(e.defaultedQueryOptions,r)));const s=t.map((e=>e.observer)),i=s.map((e=>e.getCurrentResult())),u=s.some(((t,r)=>t!==e[r]));(e.length!==s.length||u)&&((0,b.A)(this,o)[o]=s,(0,b.A)(this,c)[c](i),this.hasListeners()&&(w(e,s).forEach((e=>{e.destroy()})),w(s,e).forEach((e=>{e.subscribe((t=>{(0,b.A)(this,p)[p](e,t)}))})),(0,b.A)(this,f)[f]()))}))}getCurrentResult(){return(0,b.A)(this,a)[a]}getQueries(){return(0,b.A)(this,o)[o].map((e=>e.getCurrentQuery()))}getObservers(){return(0,b.A)(this,o)[o]}getOptimisticResult(e,t){const r=(0,b.A)(this,h)[h](e),s=r.map((e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)));return[s,e=>(0,b.A)(this,l)[l](null!==e&&void 0!==e?e:s,t),()=>r.map(((e,t)=>{const r=s[t];return e.defaultedQueryOptions.notifyOnChangeProps?r:e.observer.trackResult(r)}))]}});function C(e){var t;(0,b.A)(this,i)[i]=e,(0,b.A)(this,a)[a]=(0,b.A)(this,l)[l](e,null===(t=(0,b.A)(this,u)[u])||void 0===t?void 0:t.combine)}function E(e,t){return t?(0,g.BH)((0,b.A)(this,a)[a],t(e)):e}function P(e){const t=(0,b.A)(this,o)[o],r=new Map(t.map((e=>[e.options.queryHash,e]))),i=e.map((e=>(0,b.A)(this,s)[s].defaultQueryOptions(e))),n=i.flatMap((e=>{const t=r.get(e.queryHash);return null!=t?[{defaultedQueryOptions:e,observer:t}]:[]})),u=new Set(n.map((e=>e.defaultedQueryOptions.queryHash))),a=i.filter((e=>!u.has(e.queryHash))),c=e=>{const t=(0,b.A)(this,s)[s].defaultQueryOptions(e),r=(0,b.A)(this,o)[o].find((e=>e.options.queryHash===t.queryHash));return null!==r&&void 0!==r?r:new m.$((0,b.A)(this,s)[s],t)},l=a.map((e=>({defaultedQueryOptions:e,observer:c(e)})));return n.concat(l).sort(((e,t)=>i.indexOf(e.defaultedQueryOptions)-i.indexOf(t.defaultedQueryOptions)))}function j(e,t){const r=(0,b.A)(this,o)[o].indexOf(e);-1!==r&&((0,b.A)(this,c)[c](function(e,t,r){const s=e.slice(0);return s[t]=r,s}((0,b.A)(this,i)[i],r,t)),(0,b.A)(this,f)[f]())}function R(){y.j.batch((()=>{this.listeners.forEach((e=>{e((0,b.A)(this,i)[i])}))}))}var k=r(66299),q=r(89404),H=r(40154),L=r(98964),M=r(50505);const x=["queries"];function S(e,t){let{queries:r}=e,s=(0,d.A)(e,x);const i=(0,k.jE)(t),n=(0,q.w)(),o=(0,H.h)(),u=A.useMemo((()=>r.map((e=>{const t=i.defaultQueryOptions(e);return t._optimisticResults=n?"isRestoring":"optimistic",t}))),[r,i,n]);u.forEach((e=>{(0,M.tu)(e),(0,L.LJ)(e,o)})),(0,L.wZ)(o);const[a]=A.useState((()=>new Q(i,u,s))),[c,l,h]=a.getOptimisticResult(u,s.combine);A.useSyncExternalStore(A.useCallback((e=>n?()=>{}:a.subscribe(y.j.batchCalls(e))),[a,n]),(()=>a.getCurrentResult()),(()=>a.getCurrentResult())),A.useEffect((()=>{a.setQueries(u,s,{listeners:!1})}),[u,s,a]);const p=c.some(((e,t)=>(0,M.EU)(u[t],e)))?c.flatMap(((e,t)=>{const r=u[t];if(r){const t=new m.$(i,r);if((0,M.EU)(r,e))return(0,M.iL)(r,t,o);(0,M.nE)(e,n)&&(0,M.iL)(r,t,o)}return[]})):[];if(p.length>0)throw Promise.all(p);const f=c.find(((e,t)=>{const r=u[t];return r&&(0,L.$1)({result:e,errorResetBoundary:o,throwOnError:r.throwOnError,query:i.getQueryCache().get(r.queryHash)})}));if(null!==f&&void 0!==f&&f.error)throw f.error;return l(h())}}}]); \ No newline at end of file diff --git a/build/static/js/4465.700ec3d6.chunk.js b/build/static/js/4465.700ec3d6.chunk.js new file mode 100644 index 0000000..1c7f6ed --- /dev/null +++ b/build/static/js/4465.700ec3d6.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[4465],{24465:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var r=n(96492),s=n(16243),i=n(69039),a=n(76264),c=n(1939),o=n(48738),l=n(71392),m=n(2866),h=n(80911),x=n(96088),d=n(65908);const g=function(){const e=(0,i.A)(),t=(0,a.A)(e.breakpoints.down("sm"));return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(c.Ay,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",sx:{minHeight:"100vh"},children:[(0,d.jsx)(c.Ay,{item:!0,xs:12,children:(0,d.jsx)(o.A,{sx:{width:{xs:350,sm:396}},children:(0,d.jsx)("img",{src:x,alt:"mantis",style:{height:"100%",width:"100%"}})})}),(0,d.jsx)(c.Ay,{item:!0,xs:12,children:(0,d.jsxs)(l.A,{justifyContent:"center",alignItems:"center",children:[(0,d.jsx)(m.A,{align:"center",variant:t?"h2":"h1",children:"Internal Server Error"}),(0,d.jsx)(m.A,{color:"textSecondary",variant:"body2",align:"center",sx:{width:{xs:"73%",sm:"70%"},mt:1},children:"Server error 500. we fixing the problem. please try again at a later stage."}),(0,d.jsx)(h.A,{component:r.N_,to:s.qm,variant:"contained",sx:{textTransform:"none",mt:4},children:"Back To Home"})]})})]})})}},96088:(e,t,n)=>{e.exports=n.p+"static/media/Error500.1619a596c73d5cce4899.png"}}]); \ No newline at end of file diff --git a/build/static/js/4465.8c45ec27.chunk.js b/build/static/js/4465.8c45ec27.chunk.js deleted file mode 100644 index 12f8d7c..0000000 --- a/build/static/js/4465.8c45ec27.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[4465],{24465:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var r=n(42074),s=n(16243),i=n(14857),a=n(47223),c=n(60899),o=n(16491),l=n(93230),m=n(82053),h=n(10226),x=n(96088),d=n(44414);const g=function(){const e=(0,i.A)(),t=(0,a.A)(e.breakpoints.down("sm"));return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(c.Ay,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",sx:{minHeight:"100vh"},children:[(0,d.jsx)(c.Ay,{item:!0,xs:12,children:(0,d.jsx)(o.A,{sx:{width:{xs:350,sm:396}},children:(0,d.jsx)("img",{src:x,alt:"mantis",style:{height:"100%",width:"100%"}})})}),(0,d.jsx)(c.Ay,{item:!0,xs:12,children:(0,d.jsxs)(l.A,{justifyContent:"center",alignItems:"center",children:[(0,d.jsx)(m.A,{align:"center",variant:t?"h2":"h1",children:"Internal Server Error"}),(0,d.jsx)(m.A,{color:"textSecondary",variant:"body2",align:"center",sx:{width:{xs:"73%",sm:"70%"},mt:1},children:"Server error 500. we fixing the problem. please try again at a later stage."}),(0,d.jsx)(h.A,{component:r.N_,to:s.qm,variant:"contained",sx:{textTransform:"none",mt:4},children:"Back To Home"})]})})]})})}},96088:(e,t,n)=>{e.exports=n.p+"static/media/Error500.1619a596c73d5cce4899.png"}}]); \ No newline at end of file diff --git a/build/static/js/4486.23cac129.chunk.js b/build/static/js/4486.23cac129.chunk.js deleted file mode 100644 index 117b314..0000000 --- a/build/static/js/4486.23cac129.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[4486],{4159:function(t){t.exports=function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",s="second",i="minute",a="hour",o="day",c="week",u="month",l="quarter",h="year",f="date",d="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},y=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},g={s:y,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),s=r%60;return(e<=0?"+":"-")+y(n,2,"0")+":"+y(s,2,"0")},m:function t(e,r){if(e.date()1)return t(a[0])}else{var o=e.name;p[o]=e,s=o}return!n&&s&&(S=s),s||!n&&S},w=function(t,e){if(D(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new A(r)},b=g;b.l=k,b.i=D,b.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var A=function(){function v(t){this.$L=k(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[M]=!0}var y=v.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match($);if(n){var s=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(e)}(t),this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return b},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(t,e){var r=w(t);return this.startOf(e)<=r&&r<=this.endOf(e)},y.isAfter=function(t,e){return w(t){"use strict";r.d(e,{I:()=>i});var n=r(69347),s=r(1729);function i(t,e){return(0,s.t)(t,n.$,e)}},46639:(t,e,r)=>{"use strict";r.d(e,{A:()=>Y});var n=r(57528),s=r(98587),i=r(58168),a=r(9950),o=r(72004),c=r(3484),u=r(88283),l=r(89548),h=r(18463),f=r(59254),d=r(45558),$=r(1614);function m(t){return(0,$.Ay)("MuiCircularProgress",t)}(0,d.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var v,y,g,S,p=r(44414);const M=["className","color","disableShrink","size","style","thickness","value","variant"];let D,k,w,b;const A=44,x=(0,u.i7)(D||(D=v||(v=(0,n.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),O=(0,u.i7)(k||(k=y||(y=(0,n.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),_=(0,f.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e["color".concat((0,l.A)(r.color))]]}})((t=>{let{ownerState:e,theme:r}=t;return(0,i.A)({display:"inline-block"},"determinate"===e.variant&&{transition:r.transitions.create("transform")},"inherit"!==e.color&&{color:(r.vars||r).palette[e.color].main})}),(t=>{let{ownerState:e}=t;return"indeterminate"===e.variant&&(0,u.AH)(w||(w=g||(g=(0,n.A)(["\n animation: "," 1.4s linear infinite;\n "]))),x)})),C=(0,f.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),H=(0,f.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.circle,e["circle".concat((0,l.A)(r.variant))],r.disableShrink&&e.circleDisableShrink]}})((t=>{let{ownerState:e,theme:r}=t;return(0,i.A)({stroke:"currentColor"},"determinate"===e.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(t=>{let{ownerState:e}=t;return"indeterminate"===e.variant&&!e.disableShrink&&(0,u.AH)(b||(b=S||(S=(0,n.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),O)})),Y=a.forwardRef((function(t,e){const r=(0,h.b)({props:t,name:"MuiCircularProgress"}),{className:n,color:a="primary",disableShrink:u=!1,size:f=40,style:d,thickness:$=3.6,value:v=0,variant:y="indeterminate"}=r,g=(0,s.A)(r,M),S=(0,i.A)({},r,{color:a,disableShrink:u,size:f,thickness:$,value:v,variant:y}),D=(t=>{const{classes:e,variant:r,color:n,disableShrink:s}=t,i={root:["root",r,"color".concat((0,l.A)(n))],svg:["svg"],circle:["circle","circle".concat((0,l.A)(r)),s&&"circleDisableShrink"]};return(0,c.A)(i,m,e)})(S),k={},w={},b={};if("determinate"===y){const t=2*Math.PI*((A-$)/2);k.strokeDasharray=t.toFixed(3),b["aria-valuenow"]=Math.round(v),k.strokeDashoffset="".concat(((100-v)/100*t).toFixed(3),"px"),w.transform="rotate(-90deg)"}return(0,p.jsx)(_,(0,i.A)({className:(0,o.A)(D.root,n),style:(0,i.A)({width:f,height:f},w,d),ownerState:S,ref:e,role:"progressbar"},b,g,{children:(0,p.jsx)(C,{className:D.svg,ownerState:S,viewBox:"".concat(22," ").concat(22," ").concat(A," ").concat(A),children:(0,p.jsx)(H,{className:D.circle,style:k,ownerState:S,cx:A,cy:A,r:(A-$)/2,fill:"none",strokeWidth:$})})}))}))}}]); \ No newline at end of file diff --git a/build/static/js/4542.c6c7874f.chunk.js b/build/static/js/4542.c6c7874f.chunk.js deleted file mode 100644 index 9ff32d4..0000000 --- a/build/static/js/4542.c6c7874f.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[4542],{2046:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var r=n(98587),i=n(58168),a=n(9950),o=n(72004),s=n(3484),c=n(89548),u=n(82053),l=n(15866),h=n(39766),d=n(59254),f=n(45558),v=n(1614);function p(e){return(0,v.Ay)("MuiInputAdornment",e)}const m=(0,f.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var g,A=n(18463),b=n(44414);const x=["children","className","component","disablePointerEvents","disableTypography","position","variant"],w=(0,d.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["position".concat((0,c.A)(n.position))],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===n.variant&&{["&.".concat(m.positionStart,"&:not(.").concat(m.hiddenLabel,")")]:{marginTop:16}},"start"===n.position&&{marginRight:8},"end"===n.position&&{marginLeft:8},!0===n.disablePointerEvents&&{pointerEvents:"none"})})),k=a.forwardRef((function(e,t){const n=(0,A.b)({props:e,name:"MuiInputAdornment"}),{children:d,className:f,component:v="div",disablePointerEvents:m=!1,disableTypography:k=!1,position:y,variant:S}=n,P=(0,r.A)(n,x),R=(0,h.A)()||{};let M=S;S&&R.variant,R&&!M&&(M=R.variant);const C=(0,i.A)({},n,{hiddenLabel:R.hiddenLabel,size:R.size,disablePointerEvents:m,position:y,variant:M}),N=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:a,variant:o}=e,u={root:["root",n&&"disablePointerEvents",i&&"position".concat((0,c.A)(i)),o,r&&"hiddenLabel",a&&"size".concat((0,c.A)(a))]};return(0,s.A)(u,p,t)})(C);return(0,b.jsx)(l.A.Provider,{value:null,children:(0,b.jsx)(w,(0,i.A)({as:v,ownerState:C,className:(0,o.A)(N.root,f),ref:t},P,{children:"string"!==typeof d||k?(0,b.jsxs)(a.Fragment,{children:["start"===y?g||(g=(0,b.jsx)("span",{className:"notranslate",children:"\u200b"})):null,d]}):(0,b.jsx)(u.A,{color:"text.secondary",children:d})}))})}))},28217:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(79526)),a=n(44414);t.A=(0,i.default)((0,a.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"LocationOn")},36150:(e,t,n)=>{"use strict";n.d(t,{I:()=>a});var r=n(69347),i=n(1729);function a(e,t){return(0,i.t)(e,r.$,t)}},46639:(e,t,n)=>{"use strict";n.d(t,{A:()=>j});var r=n(57528),i=n(98587),a=n(58168),o=n(9950),s=n(72004),c=n(3484),u=n(88283),l=n(89548),h=n(18463),d=n(59254),f=n(45558),v=n(1614);function p(e){return(0,v.Ay)("MuiCircularProgress",e)}(0,f.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var m,g,A,b,x=n(44414);const w=["className","color","disableShrink","size","style","thickness","value","variant"];let k,y,S,P;const R=44,M=(0,u.i7)(k||(k=m||(m=(0,r.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),C=(0,u.i7)(y||(y=g||(g=(0,r.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),N=(0,d.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["color".concat((0,l.A)(n.color))]]}})((e=>{let{ownerState:t,theme:n}=e;return(0,a.A)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,u.AH)(S||(S=A||(A=(0,r.A)(["\n animation: "," 1.4s linear infinite;\n "]))),M)})),E=(0,d.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),F=(0,d.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t["circle".concat((0,l.A)(n.variant))],n.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:n}=e;return(0,a.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,u.AH)(P||(P=b||(b=(0,r.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),C)})),j=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:u=!1,size:d=40,style:f,thickness:v=3.6,value:m=0,variant:g="indeterminate"}=n,A=(0,i.A)(n,w),b=(0,a.A)({},n,{color:o,disableShrink:u,size:d,thickness:v,value:m,variant:g}),k=(e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,a={root:["root",n,"color".concat((0,l.A)(r))],svg:["svg"],circle:["circle","circle".concat((0,l.A)(n)),i&&"circleDisableShrink"]};return(0,c.A)(a,p,t)})(b),y={},S={},P={};if("determinate"===g){const e=2*Math.PI*((R-v)/2);y.strokeDasharray=e.toFixed(3),P["aria-valuenow"]=Math.round(m),y.strokeDashoffset="".concat(((100-m)/100*e).toFixed(3),"px"),S.transform="rotate(-90deg)"}return(0,x.jsx)(N,(0,a.A)({className:(0,s.A)(k.root,r),style:(0,a.A)({width:d,height:d},S,f),ownerState:b,ref:t,role:"progressbar"},P,A,{children:(0,x.jsx)(E,{className:k.svg,ownerState:b,viewBox:"".concat(22," ").concat(22," ").concat(R," ").concat(R),children:(0,x.jsx)(F,{className:k.circle,style:y,ownerState:b,cx:R,cy:R,r:(R-v)/2,fill:"none",strokeWidth:v})})}))}))},52097:(e,t,n)=>{"use strict";n.d(t,{d7:()=>o});var r=n(9950);function i(e,t,n,i){var a=this,o=(0,r.useRef)(null),s=(0,r.useRef)(0),c=(0,r.useRef)(0),u=(0,r.useRef)(null),l=(0,r.useRef)([]),h=(0,r.useRef)(),d=(0,r.useRef)(),f=(0,r.useRef)(e),v=(0,r.useRef)(!0);f.current=e;var p="undefined"!=typeof window,m=!t&&0!==t&&p;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,A=!("trailing"in n)||!!n.trailing,b="maxWait"in n,x="debounceOnServer"in n&&!!n.debounceOnServer,w=b?Math.max(+n.maxWait||0,t):null;(0,r.useEffect)((function(){return v.current=!0,function(){v.current=!1}}),[]);var k=(0,r.useMemo)((function(){var e=function(e){var t=l.current,n=h.current;return l.current=h.current=null,s.current=e,c.current=c.current||e,d.current=f.current.apply(n,t)},n=function(e,t){m&&cancelAnimationFrame(u.current),u.current=m?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!v.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||b&&e-s.current>=w},k=function(t){return u.current=null,A&&l.current?e(t):(l.current=h.current=null,d.current)},y=function e(){var i=Date.now();if(g&&c.current===s.current&&S(),r(i))return k(i);if(v.current){var a=t-(i-o.current),u=b?Math.min(a,w-(i-s.current)):a;n(e,u)}},S=function(){i&&i({})},P=function(){if(p||x){var i=Date.now(),c=r(i);if(l.current=[].slice.call(arguments),h.current=a,o.current=i,c){if(!u.current&&v.current)return s.current=o.current,n(y,t),g?e(o.current):d.current;if(b)return n(y,t),e(o.current)}return u.current||n(y,t),d.current}};return P.cancel=function(){u.current&&(m?cancelAnimationFrame(u.current):clearTimeout(u.current)),s.current=0,l.current=o.current=h.current=u.current=null},P.isPending=function(){return!!u.current},P.flush=function(){return u.current?k(Date.now()):d.current},P}),[g,b,t,w,A,m,p,x,i]);return k}function a(e,t){return e===t}function o(e,t,n){var o=n&&n.equalityFn||a,s=(0,r.useRef)(e),c=(0,r.useState)({})[1],u=i((0,r.useCallback)((function(e){s.current=e,c({})}),[c]),t,n,c),l=(0,r.useRef)(e);return o(l.current,e)||(u(e),l.current=e),[s.current,u]}},55471:function(e){e.exports=(()=>{return e={705:e=>{e.exports=function(e,t){const n=[];return 0===t.length?n.push({text:e,highlight:!1}):t[0][0]>0&&n.push({text:e.slice(0,t[0][0]),highlight:!1}),t.forEach(((r,i)=>{const a=r[0],o=r[1];n.push({text:e.slice(a,o),highlight:!0}),i===t.length-1?o{"use strict";n.d(t,{q:()=>c});var r=n(89379),i=n(69347),a=n(45247),o=class extends i.${constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions((0,r.A)((0,r.A)({},e),{},{behavior:(0,a.PL)()}),t)}getOptimisticResult(e){return e.behavior=(0,a.PL)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch((0,r.A)((0,r.A)({},e),{},{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(e){return this.fetch((0,r.A)((0,r.A)({},e),{},{meta:{fetchMore:{direction:"backward"}}}))}createResult(e,t){var n,i;const{state:o}=e,s=super.createResult(e,t),{isFetching:c,isRefetching:u}=s,l=c&&"forward"===(null===(n=o.fetchMeta)||void 0===n||null===(n=n.fetchMore)||void 0===n?void 0:n.direction),h=c&&"backward"===(null===(i=o.fetchMeta)||void 0===i||null===(i=i.fetchMore)||void 0===i?void 0:i.direction);return(0,r.A)((0,r.A)({},s),{},{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,a.rB)(t,o.data),hasPreviousPage:(0,a.RQ)(t,o.data),isFetchingNextPage:l,isFetchingPreviousPage:h,isRefetching:u&&!l&&!h})}},s=n(1729);function c(e,t){return(0,s.t)(e,o,t)}},82917:(e,t,n)=>{"use strict";n.d(t,{A:()=>F});var r=n(57528),i=n(98587),a=n(58168),o=n(9950),s=n(72004),c=n(88283),u=n(3484);function l(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function h(e){return parseFloat(e)}var d=n(97497),f=n(59254),v=n(18463),p=n(45558),m=n(1614);function g(e){return(0,m.Ay)("MuiSkeleton",e)}(0,p.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var A,b,x,w,k=n(44414);const y=["animation","className","component","height","style","variant","width"];let S,P,R,M;const C=(0,c.i7)(S||(S=A||(A=(0,r.A)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"])))),N=(0,c.i7)(P||(P=b||(b=(0,r.A)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"])))),E=(0,f.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((e=>{let{theme:t,ownerState:n}=e;const r=l(t.shape.borderRadius)||"px",i=h(t.shape.borderRadius);return(0,a.A)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:(0,d.X4)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===n.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(i).concat(r,"/").concat(Math.round(i/.6*10)/10).concat(r),"&:empty:before":{content:'"\\00a0"'}},"circular"===n.variant&&{borderRadius:"50%"},"rounded"===n.variant&&{borderRadius:(t.vars||t).shape.borderRadius},n.hasChildren&&{"& > *":{visibility:"hidden"}},n.hasChildren&&!n.width&&{maxWidth:"fit-content"},n.hasChildren&&!n.height&&{height:"auto"})}),(e=>{let{ownerState:t}=e;return"pulse"===t.animation&&(0,c.AH)(R||(R=x||(x=(0,r.A)(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "]))),C)}),(e=>{let{ownerState:t,theme:n}=e;return"wave"===t.animation&&(0,c.AH)(M||(M=w||(w=(0,r.A)(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 2s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ",",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "]))),N,(n.vars||n).palette.action.hover)})),F=o.forwardRef((function(e,t){const n=(0,v.b)({props:e,name:"MuiSkeleton"}),{animation:r="pulse",className:o,component:c="span",height:l,style:h,variant:d="text",width:f}=n,p=(0,i.A)(n,y),m=(0,a.A)({},n,{animation:r,component:c,variant:d,hasChildren:Boolean(p.children)}),A=(e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:a,height:o}=e,s={root:["root",n,r,i&&"withChildren",i&&!a&&"fitContent",i&&!o&&"heightAuto"]};return(0,u.A)(s,g,t)})(m);return(0,k.jsx)(E,(0,a.A)({as:c,ref:t,className:(0,s.A)(A.root,o),ownerState:m},p,{style:(0,a.A)({width:f,height:l},h)}))}))},97125:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(23235),i=n(44414);const a=(0,r.A)((0,i.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchOutlined")}}]); \ No newline at end of file diff --git a/build/static/js/4612.9e7024f7.chunk.js b/build/static/js/4612.9e7024f7.chunk.js deleted file mode 100644 index 941a059..0000000 --- a/build/static/js/4612.9e7024f7.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[4612],{855:(e,a,t)=>{t.d(a,{A:()=>o});var r=t(7208),n=t(76475),A=t(44414);function o(e){var a,t;let o,C,{children:c,type:Y="scale",direction:i="right",offset:D=10,scale:u={hover:1.05,tap:.95}}=e;switch(i){case"up":case"left":o=D,C=0;break;default:o=0,C=D}const[h,s]=(0,r.Y)(o,C),[w,d]=(0,r.Y)(o,C);switch(Y){case"rotate":return(0,A.jsx)(n.P.div,{animate:{rotate:360},transition:{repeat:1/0,repeatType:"loop",duration:2,repeatDelay:0},children:c});case"slide":return"up"===i||"down"===i?(0,A.jsx)(n.P.div,{animate:{y:void 0!==w?w:""},onHoverEnd:()=>d(),onHoverStart:()=>d(),children:c}):(0,A.jsx)(n.P.div,{animate:{x:void 0!==h?h:""},onHoverEnd:()=>s(),onHoverStart:()=>s(),children:c});default:return"number"===typeof u&&(u={hover:u,tap:u}),(0,A.jsx)(n.P.div,{whileHover:{scale:null===(a=u)||void 0===a?void 0:a.hover},whileTap:{scale:null===(t=u)||void 0===t?void 0:t.tap},children:c})}}},8457:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALEAAABFCAYAAAAFKgfKAAAQE0lEQVR4Ae2dS4wcRxmA/6p5GLxEHiuHRILgtpx1wslrDjwuZDdcAduckTyrxOsIFNl7Q1HsnbVz4YC8IQoku4685sjFNnCMtGMuICTkzQWIdy23RZDgABlAgL0zXcX/Vz+mp6cf1Y/ZJUl90u70zHTXdNf8/df/qhoAg8FgMBgMBoPBYDAYDIa9hEEJ2lan1WzWzoGUbXxqSYAeNrkJIK+vbV1cB4NhFygsxO1nO1bT4Ru4aSXsYu/0xdy63bHBYJgghYQ4KsCkgTnATSlZC5icgaFg9ySIubWtziYYDBOCQ07GBFjI16f64vDbWxfnV7cvnOI1MYfmxbK3e4sB30CzwwKDYULk1sRnpy9dQ83bVk9QWFe3lzpx+y08vdwBxpa8p2RaHEfTogcGQ8XU8ux8ZrrTRrnv0DZK/zoK8GLSvr/7e7f7xYOzBxljX8GnrRqHR/QaGAwVk8ucQNMg0KysL5az9u87skP7ugezcxTNAIOhYrSF2NXCnsMm5fW3NKIOZD44QvjautWss/NgMFSMthCHtXCSHRzHO/c6N934MTXCToPBUDFaQvzi051ZCGlhyAmT8nVv0/LaMhgqQ0uIa4wHGpQP5DrkhNeHxzDJToLBUCGZQkxxYT+kRhGJtwpk4N76ozrG9j7xOTAYKiRTiBsOzPrbAyFuQUEwKaKOZcBmTJTCUCU8e4eab0rY5KRBUbgMUs+12vDGMBjKkirErikhZ2kbTYkulAAFtxtsM26BwVARqUJclSlBkF3sh9oYg2NgMFREqhBzWTvhb5cyJTzQHrbpEYV5FgyGiqinvSndskoMDbMuVACTYEsG1GbLywBSyM3Cz7lpyjUNRUkUYhSyoC6YgSxsSrxw5PJJzuU1tKlbknSwC5VoXgO38d7a1lJn4Ujn5GoF2t7wySMQYhK2GpdX4nZC7bm0cPTSc6t3L56CnHDukMAmhtRQy29SyI1xTqaLlhC/hA6ncPj9kXa8wvxHfbGsM5skWiq6unXxMG2QM7tvwM/hNVNSxoISCCnmrm53uknvt1FRNIHfiH4OXQtjbGX17oXUIquz05c3fMe7HGpKWXfH7bsejZKBkkGwb0pNY/NRteiidkVKOUtKDUrQGHDrzfuvPqDtwCZmTFrgdmb4z32PPlDCyYVnLpUq4Hnq2SeC7W++7OY8OJN2va5MjFK4mh7azQa/440ihaCCfxRguk4LJkycABNuf8vO7qXoldl4vtkcCm7VBJMppDxZVoCj8OGGDBre/9in1N8YApbyJirI5qXHxz97AL7e/nLw+jde/hoc/dIhvCaJdxOfEUwehGooPJuERiPYBeElRqoCE2DDkWJ3QEU1qUSUF+myYAIMbWI2/IDTP/gW/OS7P1Pbz6PgffD7v8Dd3yrN3fLu1txmxeOfG++bp77wBLz/mwc2amNLSjgEBRESFrlyQoMquRZqZBLkXBNVyfQJB2wcIU5hOLDwbJTPDCDWWSWtxBweFlCbSlbps6i2hHF2jl7EaM7smelLbb2Z4/K2kKp+OxccFQh+UGBGTrH6gR0YQNUoZRYySsr27Zv3Lz7wt+vDD+EHMEqAGrOl/nyeQW35eTQDPCFWdysNc2m2Xhwf/OGv8NQrT8JXv30MhfdJ9drmu3fR3hY2flkW/pXQAGJzdauzgnauHbJzrWaD3fAEuVBnvTMhR3MfCrAMaSUJ4hR+lhJ4PN/NJmfkH6j38Xu/gq/dzLoG7L/7V7eXupAT9C9s9C+uwO5iV9m3YU2shOi//3oYvEQmBWnLX/zoVyMHccavYcdqzZlDDdvCOw7+88+H8GPU7mRGYIfDD7/zU/jbn0cOt6AkVOd85shyy9dkeFEzjQajL2geCkDzCaEE6GQuRvtIZUEdb44ieNO8QuFFz7FaDjlW/mSCTtpnoYM3o5zVnEiHjYyA/5aDfzRg4rTK9i1NTPa3AyGWnrFNwvbLN27DhVsL8OnH9sGfUIP++sZ70TZQy6nhcDHrwxgfGvEktNe///OR9/c59fv9mjNL2987/Noh3+Msytq9pfNnp5ePSRyK1eej3CwcvWxnefpxBBNiC4JDcwdgdMj0tHBA3DQvjJmv4zWc9q/Bm9q1nm4aMTILcju04XOhfIB3E8GEaZXtWwgppsAAxDvZ8rc3330fLp9YhVeefyOwjWM4X4X3THe+AKa+6J36oBLn7lFfks1uBy+grVg2slIF5MyNfHlSLieVtjrDZQ8I8kUmOuSTANcGTqERa68Z2sQFwh46ZoVvayfh3fk9dT8JTpqkdOaO2kRbb06EVygScGXh6Gsfrt59VXtmCg31UAK6QUfbG3Hm0B9g5xamL+lN2cr0ReRtVETrSYe7jtVotIMcYsZEd6oP9sruLqfQY5o5AR2UELvJAyhCtlnBUm8O1XFC1HqYaKHCoMrCO1RwhDcHamS+EdygUqzga+/pprjDdldZ4kJq3nlpX7MXcuvGvoeO3erW0nra8QtPX+qFIxEck1ioXroru78eSK/KvlVC7DgUWy0MmRW38kYrCNQcNj1iaMtWkWo5NGmqgIQVhQdvsKGTRDFkDFst4vUekhnHv4Cp8DJhoAGG2GhUiAmpFSJfyG2c1e2LFMFphTSy1x+d1KXGquiHyEutsqao37e0rYTYjyAUhTMVATgOeZFcnUStBj0aCThnB6BiyEnCL84a/eLgWpYAq/PiKqNWmHpdzOFDNxpSI1tYYJpXtx3G+A1/NNENuSVBERzsD0gTZH9k9CnbD1OMW49A9EIlky00RTegBFNuTXpYiGu0ECAUh6nwTtxUfpk2XHKhbEYa+tE2RLNV5vaudYj54mLp9+FmswG0jwUVEQ2pQc4lDwg0A5ZDZoBWyC2NLEF2HKeLgmtDhf0wGIj1BpqeVaecCXVzeHUTyTANI9wNA1njb8jEk+aSfRh6qpIeMCHoi8OkwjxLKSsl7aYWRAR5XULx4TPMvogZQYkNyAmZARCOtiT2dZ428UaKREA8QZ4J98PI55aA2qzVxPEq+9ZHGRGRiq4xdmricMZaxAq0cbtrW0tz4ddQw95POo68f9/AX5i+fIcKUXb64qBZeNCQB9dMYenCuY7DvZAi05skx6N4PFaojEqjUd0QZvhk4JoTGMtN2cemfyr6oGNWuJVuVugVCzSQwhti3FixwaCNr4nTitbtYGcuFjXsmVajwfLnxb0p/Zn2ucEQwY1OaHqMKoow6inH4psVq+8rh0SLYcKDFS7J3Auo/vZT2H+DevaIUx+AnWcFpZe8ES2pbaamdo3Hd/Ock855UXtk5lEoFgqAMV07WvdRts3wtXtCLK2kMDHNvAg/J0/57PTyiaA4JQkyK57t3ISUTGC4EL7RcDYxTawVZvOmJ8U6mnhDrq+VyAZhMoHmA7Zj3rJ5X8z5X7abgaudZiBnBegtaicaytHFc6QIibOYJID0i1SY+DkvPOWS1LY3gTdwpBeOXl7yf8lK95xC52WjJlkMz3Ok8GDDqV1j/tojBXMJzbqKgnSqbDN87a5NDGnmBM28GCVSnJJEq+mw9CC5GNri/roUOmE22tcNAY2Hf0gAzxQs89MVYPzCr1CpJCs4v42Ow+PvRJ1gNYWnwe9QwVLeeOrC0Us3wC2Kt6AYFtqL18IzOygixSqZwzeEQo5Vt8lJq6XvwsZsYHLy6AdnIBOWy0nz1qVoUUlm1r5VC7KuAHtTmApGYCJEpnt5MWULcqJSuFJNbC0LJlJ4mzY8ubCgYnCEqOI8R6hn1U04Uthxr9NPGTQ4O11tBobCbGxmhyvhXM/amwTZrVYjjT96w3iCDDqmRbIAy839fTkXLpBBg2cWYLTH1ExryTYhA8nGNFDLW5fuptfO7NgxqW27zjBPMu3wOJbiiMecD6Qlp3TajEOwoQzFykuBNv1rJ+pZdRNJhR9eCWW4uKY8ErWqOhf99DMJMk1BwnTxRhFBThJgsrmmBuJUtMKLc35MgozsK069rVEAdebI8spw1olLZF06K3oM/bxakSozlUjavjCf93wywJT5hfw1MhmUbbPOWNaM2+Q7ZGwGQk6i4TTUDJR6JtWSa602L8N3/MXp5XUOoz+pkCbISQKMzuX1q9sX21Ax8X2ZrvkKl0lK6L2UkZoWNYwE5SuZaVF2V0ac/SQYxv51FsShqUoCxG3QgNrccVQFm+2/hpqYp2rifj89d85qcl467D5UgxsrzmlL+1zdWmqjdulFtUucICdqYLT1r95bqsbm3UNo7QzZ4OnXESPA6LSr7+DhQ+g1xyfbqTJOBpohBe5GPaheJBSJsWF8sZg2Orpt0AHbbFK7R19r+xMcOM/QBFl1DGoVeL1oRSahG0bLuYuD5tjFnY8ryMsbdNefmb68EWsD43FrHwMBLoHdcFxFQt+7gPy/zxKDhb0/zCtI0AgIaCDFiu8U1zPqJmzQYGcgV5oNNYxbUALqOBWvxHb6NVXttQIFSCq9pCSMVI8xKijl11E/irjhSk1nSbIek+I2c+RKOOmhRrbpTpfJ2gldB14OV5IKYCFzk/IMNB0tV5tqBBjzk1q0RgY+9uppc+DCKec0SPgwzDNfoNB57CIYeqrUEZIrz7mQEBM7dbnecNg5zY6y6UaEjxH0i1VV3JTk90COuYYqWdPgH1bZJpFWDVmHiua1UewYnbxuTidv7LOFFA8w9UzC/BwUJPQj6rrXRgutbBRfaIXP4E2cvodU9uTp8XdYMcctCwYn8Jy6kJPwtJ8iU4iyAgVUr5w31Ux9JyE5FFwPT9UfO1jTC/UhJw9jtndKxY5VIZA63VaRlYZCAmzFvG3TP69DIufIZihMV0SQuaolyUjyJnwD6JVvQkmCqM7oB85wxnJPAfKnVNF22SlEcaADdyNL0GMOSnUlucyZck6DnDy0THI5eVEHLvzbHjxn6C5NgMlJoeVb6Q+jFAfjnRYSZKWRKxmdNLCLTLCNQtOq4P8bGyaAvyQCF0LMq/UHMLSkpu6QTRo4BPmHOncqjSysXbzfvFNgmEjbpMgSYHJSwq/R870UZOrjIlOV4lAjh8xejWnPkJVEOSJtsmCybD1pYbfzJb5EIeWi7lD2qDY4jA+Bxg/bYeTVkjBlDe95BdiHXkc7/tC4HV/ctEhDRQyUsyxuTaEjWeV6D57X38U+wxAjPxbjze8FFH69XnHUR7W5fyACR1wzap0f3ZSmFDC/ds9dR4EEOGqH0RKgaSsopgkwpY7Xti/MQQquN8024ouV5OZOX44Ictzq7Fkrwhsmi27JaW6oQEjmKOogYaJlsbynNpk4+/viYFEBJgGcGjiZwzUJKAlqvAm06zayoQATE2JXe4lFyKju8usnGg33NzIo7YvCe/wqDo9pw22WAEerz7LO1QjyR5eJCTFBQW2qUOI1cZjMgrh1DPyYIYPaOT/tu1LCBs4rwD5GkD+61GEX8CIO9KdMA++HYWYo9Qj+cklS3NJxACYhwD5q3TRV1snujLfvOnv5ir4MBoPBYDAYDAaDwWAwZPI/iTTgFxK8/KcAAAAASUVORK5CYII="},34612:(e,a,t)=>{t.r(a),t.d(a,{default:()=>r});t(9950),t(82569),t(855),t(8457),t(52351),t(8881),t(44414);const r=Login1}}]); \ No newline at end of file diff --git a/build/static/js/4612.f72187a1.chunk.js b/build/static/js/4612.f72187a1.chunk.js new file mode 100644 index 0000000..02a5278 --- /dev/null +++ b/build/static/js/4612.f72187a1.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[4612],{855:(e,a,t)=>{t.d(a,{A:()=>o});var r=t(68106),n=t(82522),A=t(65908);function o(e){var a,t;let o,C,{children:c,type:Y="scale",direction:i="right",offset:D=10,scale:u={hover:1.05,tap:.95}}=e;switch(i){case"up":case"left":o=D,C=0;break;default:o=0,C=D}const[h,s]=(0,r.Y)(o,C),[w,d]=(0,r.Y)(o,C);switch(Y){case"rotate":return(0,A.jsx)(n.P.div,{animate:{rotate:360},transition:{repeat:1/0,repeatType:"loop",duration:2,repeatDelay:0},children:c});case"slide":return"up"===i||"down"===i?(0,A.jsx)(n.P.div,{animate:{y:void 0!==w?w:""},onHoverEnd:()=>d(),onHoverStart:()=>d(),children:c}):(0,A.jsx)(n.P.div,{animate:{x:void 0!==h?h:""},onHoverEnd:()=>s(),onHoverStart:()=>s(),children:c});default:return"number"===typeof u&&(u={hover:u,tap:u}),(0,A.jsx)(n.P.div,{whileHover:{scale:null===(a=u)||void 0===a?void 0:a.hover},whileTap:{scale:null===(t=u)||void 0===t?void 0:t.tap},children:c})}}},8457:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALEAAABFCAYAAAAFKgfKAAAQE0lEQVR4Ae2dS4wcRxmA/6p5GLxEHiuHRILgtpx1wslrDjwuZDdcAduckTyrxOsIFNl7Q1HsnbVz4YC8IQoku4685sjFNnCMtGMuICTkzQWIdy23RZDgABlAgL0zXcX/Vz+mp6cf1Y/ZJUl90u70zHTXdNf8/df/qhoAg8FgMBgMBoPBYDAYDIa9hEEJ2lan1WzWzoGUbXxqSYAeNrkJIK+vbV1cB4NhFygsxO1nO1bT4Ru4aSXsYu/0xdy63bHBYJgghYQ4KsCkgTnATSlZC5icgaFg9ySIubWtziYYDBOCQ07GBFjI16f64vDbWxfnV7cvnOI1MYfmxbK3e4sB30CzwwKDYULk1sRnpy9dQ83bVk9QWFe3lzpx+y08vdwBxpa8p2RaHEfTogcGQ8XU8ux8ZrrTRrnv0DZK/zoK8GLSvr/7e7f7xYOzBxljX8GnrRqHR/QaGAwVk8ucQNMg0KysL5az9u87skP7ugezcxTNAIOhYrSF2NXCnsMm5fW3NKIOZD44QvjautWss/NgMFSMthCHtXCSHRzHO/c6N934MTXCToPBUDFaQvzi051ZCGlhyAmT8nVv0/LaMhgqQ0uIa4wHGpQP5DrkhNeHxzDJToLBUCGZQkxxYT+kRhGJtwpk4N76ozrG9j7xOTAYKiRTiBsOzPrbAyFuQUEwKaKOZcBmTJTCUCU8e4eab0rY5KRBUbgMUs+12vDGMBjKkirErikhZ2kbTYkulAAFtxtsM26BwVARqUJclSlBkF3sh9oYg2NgMFREqhBzWTvhb5cyJTzQHrbpEYV5FgyGiqinvSndskoMDbMuVACTYEsG1GbLywBSyM3Cz7lpyjUNRUkUYhSyoC6YgSxsSrxw5PJJzuU1tKlbknSwC5VoXgO38d7a1lJn4Ujn5GoF2t7wySMQYhK2GpdX4nZC7bm0cPTSc6t3L56CnHDukMAmhtRQy29SyI1xTqaLlhC/hA6ncPj9kXa8wvxHfbGsM5skWiq6unXxMG2QM7tvwM/hNVNSxoISCCnmrm53uknvt1FRNIHfiH4OXQtjbGX17oXUIquz05c3fMe7HGpKWXfH7bsejZKBkkGwb0pNY/NRteiidkVKOUtKDUrQGHDrzfuvPqDtwCZmTFrgdmb4z32PPlDCyYVnLpUq4Hnq2SeC7W++7OY8OJN2va5MjFK4mh7azQa/440ihaCCfxRguk4LJkycABNuf8vO7qXoldl4vtkcCm7VBJMppDxZVoCj8OGGDBre/9in1N8YApbyJirI5qXHxz97AL7e/nLw+jde/hoc/dIhvCaJdxOfEUwehGooPJuERiPYBeElRqoCE2DDkWJ3QEU1qUSUF+myYAIMbWI2/IDTP/gW/OS7P1Pbz6PgffD7v8Dd3yrN3fLu1txmxeOfG++bp77wBLz/mwc2amNLSjgEBRESFrlyQoMquRZqZBLkXBNVyfQJB2wcIU5hOLDwbJTPDCDWWSWtxBweFlCbSlbps6i2hHF2jl7EaM7smelLbb2Z4/K2kKp+OxccFQh+UGBGTrH6gR0YQNUoZRYySsr27Zv3Lz7wt+vDD+EHMEqAGrOl/nyeQW35eTQDPCFWdysNc2m2Xhwf/OGv8NQrT8JXv30MhfdJ9drmu3fR3hY2flkW/pXQAGJzdauzgnauHbJzrWaD3fAEuVBnvTMhR3MfCrAMaSUJ4hR+lhJ4PN/NJmfkH6j38Xu/gq/dzLoG7L/7V7eXupAT9C9s9C+uwO5iV9m3YU2shOi//3oYvEQmBWnLX/zoVyMHccavYcdqzZlDDdvCOw7+88+H8GPU7mRGYIfDD7/zU/jbn0cOt6AkVOd85shyy9dkeFEzjQajL2geCkDzCaEE6GQuRvtIZUEdb44ieNO8QuFFz7FaDjlW/mSCTtpnoYM3o5zVnEiHjYyA/5aDfzRg4rTK9i1NTPa3AyGWnrFNwvbLN27DhVsL8OnH9sGfUIP++sZ70TZQy6nhcDHrwxgfGvEktNe///OR9/c59fv9mjNL2987/Noh3+Msytq9pfNnp5ePSRyK1eej3CwcvWxnefpxBBNiC4JDcwdgdMj0tHBA3DQvjJmv4zWc9q/Bm9q1nm4aMTILcju04XOhfIB3E8GEaZXtWwgppsAAxDvZ8rc3330fLp9YhVeefyOwjWM4X4X3THe+AKa+6J36oBLn7lFfks1uBy+grVg2slIF5MyNfHlSLieVtjrDZQ8I8kUmOuSTANcGTqERa68Z2sQFwh46ZoVvayfh3fk9dT8JTpqkdOaO2kRbb06EVygScGXh6Gsfrt59VXtmCg31UAK6QUfbG3Hm0B9g5xamL+lN2cr0ReRtVETrSYe7jtVotIMcYsZEd6oP9sruLqfQY5o5AR2UELvJAyhCtlnBUm8O1XFC1HqYaKHCoMrCO1RwhDcHamS+EdygUqzga+/pprjDdldZ4kJq3nlpX7MXcuvGvoeO3erW0nra8QtPX+qFIxEck1ioXroru78eSK/KvlVC7DgUWy0MmRW38kYrCNQcNj1iaMtWkWo5NGmqgIQVhQdvsKGTRDFkDFst4vUekhnHv4Cp8DJhoAGG2GhUiAmpFSJfyG2c1e2LFMFphTSy1x+d1KXGquiHyEutsqao37e0rYTYjyAUhTMVATgOeZFcnUStBj0aCThnB6BiyEnCL84a/eLgWpYAq/PiKqNWmHpdzOFDNxpSI1tYYJpXtx3G+A1/NNENuSVBERzsD0gTZH9k9CnbD1OMW49A9EIlky00RTegBFNuTXpYiGu0ECAUh6nwTtxUfpk2XHKhbEYa+tE2RLNV5vaudYj54mLp9+FmswG0jwUVEQ2pQc4lDwg0A5ZDZoBWyC2NLEF2HKeLgmtDhf0wGIj1BpqeVaecCXVzeHUTyTANI9wNA1njb8jEk+aSfRh6qpIeMCHoi8OkwjxLKSsl7aYWRAR5XULx4TPMvogZQYkNyAmZARCOtiT2dZ428UaKREA8QZ4J98PI55aA2qzVxPEq+9ZHGRGRiq4xdmricMZaxAq0cbtrW0tz4ddQw95POo68f9/AX5i+fIcKUXb64qBZeNCQB9dMYenCuY7DvZAi05skx6N4PFaojEqjUd0QZvhk4JoTGMtN2cemfyr6oGNWuJVuVugVCzSQwhti3FixwaCNr4nTitbtYGcuFjXsmVajwfLnxb0p/Zn2ucEQwY1OaHqMKoow6inH4psVq+8rh0SLYcKDFS7J3Auo/vZT2H+DevaIUx+AnWcFpZe8ES2pbaamdo3Hd/Ock855UXtk5lEoFgqAMV07WvdRts3wtXtCLK2kMDHNvAg/J0/57PTyiaA4JQkyK57t3ISUTGC4EL7RcDYxTawVZvOmJ8U6mnhDrq+VyAZhMoHmA7Zj3rJ5X8z5X7abgaudZiBnBegtaicaytHFc6QIibOYJID0i1SY+DkvPOWS1LY3gTdwpBeOXl7yf8lK95xC52WjJlkMz3Ok8GDDqV1j/tojBXMJzbqKgnSqbDN87a5NDGnmBM28GCVSnJJEq+mw9CC5GNri/roUOmE22tcNAY2Hf0gAzxQs89MVYPzCr1CpJCs4v42Ow+PvRJ1gNYWnwe9QwVLeeOrC0Us3wC2Kt6AYFtqL18IzOygixSqZwzeEQo5Vt8lJq6XvwsZsYHLy6AdnIBOWy0nz1qVoUUlm1r5VC7KuAHtTmApGYCJEpnt5MWULcqJSuFJNbC0LJlJ4mzY8ubCgYnCEqOI8R6hn1U04Uthxr9NPGTQ4O11tBobCbGxmhyvhXM/amwTZrVYjjT96w3iCDDqmRbIAy839fTkXLpBBg2cWYLTH1ExryTYhA8nGNFDLW5fuptfO7NgxqW27zjBPMu3wOJbiiMecD6Qlp3TajEOwoQzFykuBNv1rJ+pZdRNJhR9eCWW4uKY8ErWqOhf99DMJMk1BwnTxRhFBThJgsrmmBuJUtMKLc35MgozsK069rVEAdebI8spw1olLZF06K3oM/bxakSozlUjavjCf93wywJT5hfw1MhmUbbPOWNaM2+Q7ZGwGQk6i4TTUDJR6JtWSa602L8N3/MXp5XUOoz+pkCbISQKMzuX1q9sX21Ax8X2ZrvkKl0lK6L2UkZoWNYwE5SuZaVF2V0ac/SQYxv51FsShqUoCxG3QgNrccVQFm+2/hpqYp2rifj89d85qcl467D5UgxsrzmlL+1zdWmqjdulFtUucICdqYLT1r95bqsbm3UNo7QzZ4OnXESPA6LSr7+DhQ+g1xyfbqTJOBpohBe5GPaheJBSJsWF8sZg2Orpt0AHbbFK7R19r+xMcOM/QBFl1DGoVeL1oRSahG0bLuYuD5tjFnY8ryMsbdNefmb68EWsD43FrHwMBLoHdcFxFQt+7gPy/zxKDhb0/zCtI0AgIaCDFiu8U1zPqJmzQYGcgV5oNNYxbUALqOBWvxHb6NVXttQIFSCq9pCSMVI8xKijl11E/irjhSk1nSbIek+I2c+RKOOmhRrbpTpfJ2gldB14OV5IKYCFzk/IMNB0tV5tqBBjzk1q0RgY+9uppc+DCKec0SPgwzDNfoNB57CIYeqrUEZIrz7mQEBM7dbnecNg5zY6y6UaEjxH0i1VV3JTk90COuYYqWdPgH1bZJpFWDVmHiua1UewYnbxuTidv7LOFFA8w9UzC/BwUJPQj6rrXRgutbBRfaIXP4E2cvodU9uTp8XdYMcctCwYn8Jy6kJPwtJ8iU4iyAgVUr5w31Ux9JyE5FFwPT9UfO1jTC/UhJw9jtndKxY5VIZA63VaRlYZCAmzFvG3TP69DIufIZihMV0SQuaolyUjyJnwD6JVvQkmCqM7oB85wxnJPAfKnVNF22SlEcaADdyNL0GMOSnUlucyZck6DnDy0THI5eVEHLvzbHjxn6C5NgMlJoeVb6Q+jFAfjnRYSZKWRKxmdNLCLTLCNQtOq4P8bGyaAvyQCF0LMq/UHMLSkpu6QTRo4BPmHOncqjSysXbzfvFNgmEjbpMgSYHJSwq/R870UZOrjIlOV4lAjh8xejWnPkJVEOSJtsmCybD1pYbfzJb5EIeWi7lD2qDY4jA+Bxg/bYeTVkjBlDe95BdiHXkc7/tC4HV/ctEhDRQyUsyxuTaEjWeV6D57X38U+wxAjPxbjze8FFH69XnHUR7W5fyACR1wzap0f3ZSmFDC/ds9dR4EEOGqH0RKgaSsopgkwpY7Xti/MQQquN8024ouV5OZOX44Ictzq7Fkrwhsmi27JaW6oQEjmKOogYaJlsbynNpk4+/viYFEBJgGcGjiZwzUJKAlqvAm06zayoQATE2JXe4lFyKju8usnGg33NzIo7YvCe/wqDo9pw22WAEerz7LO1QjyR5eJCTFBQW2qUOI1cZjMgrh1DPyYIYPaOT/tu1LCBs4rwD5GkD+61GEX8CIO9KdMA++HYWYo9Qj+cklS3NJxACYhwD5q3TRV1snujLfvOnv5ir4MBoPBYDAYDAaDwWAwZPI/iTTgFxK8/KcAAAAASUVORK5CYII="},34612:(e,a,t)=>{t.r(a),t.d(a,{default:()=>r});t(85672),t(65383),t(855),t(8457),t(52351),t(13659),t(65908);const r=Login1}}]); \ No newline at end of file diff --git a/build/static/js/4734.5b301125.chunk.js b/build/static/js/4734.5b301125.chunk.js deleted file mode 100644 index 97db2fc..0000000 --- a/build/static/js/4734.5b301125.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[4734],{6258:(t,e,n)=>{n.d(e,{A:()=>E});var o=n(98587),a=n(58168),s=n(9950),i=n(72004),r=n(3484),l=n(52014),c=n(59254),u=n(18463),h=n(22302),d=n(23266),p=n(70006),g=n(21671),m=n(83239),b=n(44730),A=n(30099),v=n(88090),f=n(25333),w=n(23235),P=n(44414);const x=(0,w.A)((0,P.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),B=(0,w.A)((0,P.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),I=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],y=s.forwardRef((function(t,e){var n,s,i,r,l,c,u,h;const{backIconButtonProps:d,count:p,disabled:g=!1,getItemAriaLabel:m,nextIconButtonProps:w,onPageChange:y,page:R,rowsPerPage:k,showFirstButton:C,showLastButton:S,slots:L={},slotProps:M={}}=t,j=(0,o.A)(t,I),T=(0,b.I)(),N=null!=(n=L.firstButton)?n:f.A,F=null!=(s=L.lastButton)?s:f.A,z=null!=(i=L.nextButton)?i:f.A,H=null!=(r=L.previousButton)?r:f.A,X=null!=(l=L.firstButtonIcon)?l:B,_=null!=(c=L.lastButtonIcon)?c:x,D=null!=(u=L.nextButtonIcon)?u:v.A,O=null!=(h=L.previousButtonIcon)?h:A.A,E=T?F:N,G=T?z:H,W=T?H:z,q=T?N:F,J=T?M.lastButton:M.firstButton,K=T?M.nextButton:M.previousButton,Q=T?M.previousButton:M.nextButton,U=T?M.firstButton:M.lastButton;return(0,P.jsxs)("div",(0,a.A)({ref:e},j,{children:[C&&(0,P.jsx)(E,(0,a.A)({onClick:t=>{y(t,0)},disabled:g||0===R,"aria-label":m("first",R),title:m("first",R)},J,{children:T?(0,P.jsx)(_,(0,a.A)({},M.lastButtonIcon)):(0,P.jsx)(X,(0,a.A)({},M.firstButtonIcon))})),(0,P.jsx)(G,(0,a.A)({onClick:t=>{y(t,R-1)},disabled:g||0===R,color:"inherit","aria-label":m("previous",R),title:m("previous",R)},null!=K?K:d,{children:T?(0,P.jsx)(D,(0,a.A)({},M.nextButtonIcon)):(0,P.jsx)(O,(0,a.A)({},M.previousButtonIcon))})),(0,P.jsx)(W,(0,a.A)({onClick:t=>{y(t,R+1)},disabled:g||-1!==p&&R>=Math.ceil(p/k)-1,color:"inherit","aria-label":m("next",R),title:m("next",R)},null!=Q?Q:w,{children:T?(0,P.jsx)(O,(0,a.A)({},M.previousButtonIcon)):(0,P.jsx)(D,(0,a.A)({},M.nextButtonIcon))})),S&&(0,P.jsx)(q,(0,a.A)({onClick:t=>{y(t,Math.max(0,Math.ceil(p/k)-1))},disabled:g||R>=Math.ceil(p/k)-1,"aria-label":m("last",R),title:m("last",R)},U,{children:T?(0,P.jsx)(X,(0,a.A)({},M.firstButtonIcon)):(0,P.jsx)(_,(0,a.A)({},M.lastButtonIcon))}))]}))}));var R=n(31014),k=n(45558),C=n(1614);function S(t){return(0,C.Ay)("MuiTablePagination",t)}const L=(0,k.A)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var M;const j=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],T=(0,c.Ay)(g.A,{name:"MuiTablePagination",slot:"Root",overridesResolver:(t,e)=>e.root})((t=>{let{theme:e}=t;return{overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}})),N=(0,c.Ay)(m.A,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(t,e)=>(0,a.A)({["& .".concat(L.actions)]:e.actions},e.toolbar)})((t=>{let{theme:e}=t;return{minHeight:52,paddingRight:2,["".concat(e.breakpoints.up("xs")," and (orientation: landscape)")]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},["& .".concat(L.actions)]:{flexShrink:0,marginLeft:20}}})),F=(0,c.Ay)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(t,e)=>e.spacer})({flex:"1 1 100%"}),z=(0,c.Ay)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(t,e)=>e.selectLabel})((t=>{let{theme:e}=t;return(0,a.A)({},e.typography.body2,{flexShrink:0})})),H=(0,c.Ay)(p.A,{name:"MuiTablePagination",slot:"Select",overridesResolver:(t,e)=>(0,a.A)({["& .".concat(L.selectIcon)]:e.selectIcon,["& .".concat(L.select)]:e.select},e.input,e.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,["& .".concat(L.select)]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),X=(0,c.Ay)(d.A,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(t,e)=>e.menuItem})({}),_=(0,c.Ay)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(t,e)=>e.displayedRows})((t=>{let{theme:e}=t;return(0,a.A)({},e.typography.body2,{flexShrink:0})}));function D(t){let{from:e,to:n,count:o}=t;return"".concat(e,"\u2013").concat(n," of ").concat(-1!==o?o:"more than ".concat(n))}function O(t){return"Go to ".concat(t," page")}const E=s.forwardRef((function(t,e){var n;const c=(0,u.b)({props:t,name:"MuiTablePagination"}),{ActionsComponent:d=y,backIconButtonProps:p,className:m,colSpan:b,component:A=g.A,count:v,disabled:f=!1,getItemAriaLabel:w=O,labelDisplayedRows:x=D,labelRowsPerPage:B="Rows per page:",nextIconButtonProps:I,onPageChange:k,onRowsPerPageChange:C,page:L,rowsPerPage:E,rowsPerPageOptions:G=[10,25,50,100],SelectProps:W={},showFirstButton:q=!1,showLastButton:J=!1,slotProps:K={},slots:Q={}}=c,U=(0,o.A)(c,j),V=c,Y=(t=>{const{classes:e}=t;return(0,r.A)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},S,e)})(V),Z=null!=(n=null==K?void 0:K.select)?n:W,$=Z.native?"option":X;let tt;A!==g.A&&"td"!==A||(tt=b||1e3);const et=(0,R.A)(Z.id),nt=(0,R.A)(Z.labelId);return(0,P.jsx)(T,(0,a.A)({colSpan:tt,ref:e,as:A,ownerState:V,className:(0,i.A)(Y.root,m)},U,{children:(0,P.jsxs)(N,{className:Y.toolbar,children:[(0,P.jsx)(F,{className:Y.spacer}),G.length>1&&(0,P.jsx)(z,{className:Y.selectLabel,id:nt,children:B}),G.length>1&&(0,P.jsx)(H,(0,a.A)({variant:"standard"},!Z.variant&&{input:M||(M=(0,P.jsx)(h.Ay,{}))},{value:E,onChange:C,id:et,labelId:nt},Z,{classes:(0,a.A)({},Z.classes,{root:(0,i.A)(Y.input,Y.selectRoot,(Z.classes||{}).root),select:(0,i.A)(Y.select,(Z.classes||{}).select),icon:(0,i.A)(Y.selectIcon,(Z.classes||{}).icon)}),disabled:f,children:G.map((t=>(0,s.createElement)($,(0,a.A)({},!(0,l.A)($)&&{ownerState:V},{className:Y.menuItem,key:t.label?t.label:t,value:t.value?t.value:t}),t.label?t.label:t)))})),(0,P.jsx)(_,{className:Y.displayedRows,children:x({from:0===v?0:L*E+1,to:-1===v?(L+1)*E:-1===E?v:Math.min(v,(L+1)*E),count:-1===v?-1:v,page:L})}),(0,P.jsx)(d,{className:Y.actions,backIconButtonProps:p,count:v,nextIconButtonProps:I,onPageChange:k,page:L,rowsPerPage:E,showFirstButton:q,showLastButton:J,slotProps:K.actions,slots:Q.actions,getItemAriaLabel:w,disabled:f})]})}))}))},82917:(t,e,n)=>{n.d(e,{A:()=>M});var o=n(57528),a=n(98587),s=n(58168),i=n(9950),r=n(72004),l=n(88283),c=n(3484);function u(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function h(t){return parseFloat(t)}var d=n(97497),p=n(59254),g=n(18463),m=n(45558),b=n(1614);function A(t){return(0,b.Ay)("MuiSkeleton",t)}(0,m.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var v,f,w,P,x=n(44414);const B=["animation","className","component","height","style","variant","width"];let I,y,R,k;const C=(0,l.i7)(I||(I=v||(v=(0,o.A)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"])))),S=(0,l.i7)(y||(y=f||(f=(0,o.A)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"])))),L=(0,p.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!1!==n.animation&&e[n.animation],n.hasChildren&&e.withChildren,n.hasChildren&&!n.width&&e.fitContent,n.hasChildren&&!n.height&&e.heightAuto]}})((t=>{let{theme:e,ownerState:n}=t;const o=u(e.shape.borderRadius)||"px",a=h(e.shape.borderRadius);return(0,s.A)({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,d.X4)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em"},"text"===n.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(a).concat(o,"/").concat(Math.round(a/.6*10)/10).concat(o),"&:empty:before":{content:'"\\00a0"'}},"circular"===n.variant&&{borderRadius:"50%"},"rounded"===n.variant&&{borderRadius:(e.vars||e).shape.borderRadius},n.hasChildren&&{"& > *":{visibility:"hidden"}},n.hasChildren&&!n.width&&{maxWidth:"fit-content"},n.hasChildren&&!n.height&&{height:"auto"})}),(t=>{let{ownerState:e}=t;return"pulse"===e.animation&&(0,l.AH)(R||(R=w||(w=(0,o.A)(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "]))),C)}),(t=>{let{ownerState:e,theme:n}=t;return"wave"===e.animation&&(0,l.AH)(k||(k=P||(P=(0,o.A)(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 2s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ",",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "]))),S,(n.vars||n).palette.action.hover)})),M=i.forwardRef((function(t,e){const n=(0,g.b)({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:l="span",height:u,style:h,variant:d="text",width:p}=n,m=(0,a.A)(n,B),b=(0,s.A)({},n,{animation:o,component:l,variant:d,hasChildren:Boolean(m.children)}),v=(t=>{const{classes:e,variant:n,animation:o,hasChildren:a,width:s,height:i}=t,r={root:["root",n,o,a&&"withChildren",a&&!s&&"fitContent",a&&!i&&"heightAuto"]};return(0,c.A)(r,A,e)})(b);return(0,x.jsx)(L,(0,s.A)({as:l,ref:e,className:(0,r.A)(v.root,i),ownerState:b},m,{style:(0,s.A)({width:p,height:u},h)}))}))}}]); \ No newline at end of file diff --git a/build/static/js/4743.451e841a.chunk.js b/build/static/js/4743.451e841a.chunk.js new file mode 100644 index 0000000..e223a91 --- /dev/null +++ b/build/static/js/4743.451e841a.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[4743],{10241:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,a=/\d\d/,o=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,s={},i=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=s[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,a=s.meridiem;if(a){for(var o=1;o<=24;o+=1)if(e.indexOf(a(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},m={A:[r,function(e){this.afternoon=d(e,!1)}],a:[r,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[a,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,l("seconds")],ss:[o,l("seconds")],m:[o,l("minutes")],mm:[o,l("minutes")],H:[o,l("hours")],h:[o,l("hours")],HH:[o,l("hours")],hh:[o,l("hours")],D:[o,l("day")],DD:[a,l("day")],Do:[r,function(e){var t=s.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var a=1;a<=31;a+=1)t(a).replace(/\[|\]/g,"")===e&&(this.day=a)}],w:[o,l("week")],ww:[a,l("week")],M:[o,l("month")],MM:[a,l("month")],MMM:[r,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[r,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[a,function(e){this.year=i(e)}],YYYY:[/\d{4}/,l("year")],Z:u,ZZ:u};function h(n){var a,o;a=n,o=s&&s.formats;for(var r=(n=a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,a){var r=a&&a.toUpperCase();return n||o[a]||e[a]||o[r].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),i=r.length,l=0;l-1)return new Date(("X"===t?1e3:1)*e);var o=h(t)(e),r=o.year,s=o.month,i=o.day,l=o.hours,u=o.minutes,c=o.seconds,d=o.milliseconds,m=o.zone,p=o.week,f=new Date,y=i||(r||s?1:f.getDate()),g=r||f.getFullYear(),v=0;r&&!s||(v=s>0?s-1:f.getMonth());var b,w=l||0,x=u||0,A=c||0,D=d||0;return m?new Date(Date.UTC(g,v,y,w,x,A,D+60*m.offset*1e3)):n?new Date(Date.UTC(g,v,y,w,x,A,D)):(b=new Date(g,v,y,w,x,A,D),p&&(b=a(b).week(p).toDate()),b)}catch(e){return new Date("")}}(t,i,a,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),c&&t!=this.format(i)&&(this.$d=new Date("")),s={}}else if(i instanceof Array)for(var m=i.length,p=1;p<=m;p+=1){r[1]=i[p-1];var f=n.apply(this,r);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}p===m&&(this.$d=new Date(""))}else o.call(this,e)}}}()},12557:(e,t,n)=>{"use strict";n.d(t,{R:()=>w});var a=n(27326),o=n(46077),r=n.n(o),s=n(48554),i=n.n(s),l=n(10241),u=n.n(l),c=n(22474),d=n.n(c),m=n(40444),h=n.n(m),p=n(89299);r().extend(u()),r().extend(d()),r().extend(h());const f=(0,p.f)(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),y={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},g={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},v=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join("\n"),b=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join("\n");class w{constructor(){let{locale:e,formats:t,instance:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var o,s,l;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=y,this.setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)},this.hasUTCPlugin=()=>"undefined"!==typeof r().utc,this.hasTimezonePlugin=()=>"undefined"!==typeof r().tz,this.isSame=(e,t,n)=>{const a=this.setTimezone(t,this.getTimezone(e));return e.format(n)===a.format(n)},this.cleanTimezone=e=>{switch(e){case"default":return;case"system":return r().tz.guess();default:return e}},this.createSystemDate=e=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(e);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const t=r().tz.guess();return"UTC"!==t?r().tz(e,t):r()(e)}return r()(e)},this.createUTCDate=e=>{if(!this.hasUTCPlugin())throw new Error(v);return r().utc(e)},this.createTZDate=(e,t)=>{if(!this.hasUTCPlugin())throw new Error(v);if(!this.hasTimezonePlugin())throw new Error(b);const n=void 0!==e&&!e.endsWith("Z");return r()(e).tz(this.cleanTimezone(t),n)},this.getLocaleFormats=()=>{const e=r().Ls;let t=e[this.locale||"en"];return void 0===t&&(f(),t=e.en),t.formats},this.adjustOffset=e=>{if(!this.hasTimezonePlugin())return e;const t=this.getTimezone(e);if("UTC"!==t){var n,a;const o=e.tz(this.cleanTimezone(t),!0);if((null!=(n=o.$offset)?n:0)===(null!=(a=e.$offset)?a:0))return e;e.$offset=o.$offset}return e},this.date=e=>null===e?null:this.dayjs(e),this.dateWithTimezone=(e,t)=>{if(null===e)return null;let n;return n="UTC"===t?this.createUTCDate(e):"system"===t||"default"===t&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t),void 0===this.locale?n:n.locale(this.locale)},this.getTimezone=e=>{if(this.hasTimezonePlugin()){var t;const n=null==(t=e.$x)?void 0:t.$timezone;if(n)return n}return this.hasUTCPlugin()&&e.isUTC()?"UTC":"system"},this.setTimezone=(e,t)=>{if(this.getTimezone(e)===t)return e;if("UTC"===t){if(!this.hasUTCPlugin())throw new Error(v);return e.utc()}if("system"===t)return e.local();if(!this.hasTimezonePlugin()){if("default"===t)return e;throw new Error(b)}return r().tz(e,this.cleanTimezone(t))},this.toJsDate=e=>e.toDate(),this.parseISO=e=>this.dayjs(e),this.toISO=e=>e.toISOString(),this.parse=(e,t)=>""===e?null:this.dayjs(e,t,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=e=>{const t=this.getLocaleFormats();return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,((e,n,a)=>{const o=a&&a.toUpperCase();return n||t[a]||t[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,((e,t,n)=>t||n.slice(1)))}))},this.getFormatHelperText=e=>this.expandFormat(e).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=e=>null===e,this.isValid=e=>this.dayjs(e).isValid(),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>this.dayjs(e).format(t),this.formatNumber=e=>e,this.getDiff=(e,t,n)=>e.diff(t,n),this.isEqual=(e,t)=>null===e&&null===t||this.dayjs(e).toDate().getTime()===this.dayjs(t).toDate().getTime(),this.isSameYear=(e,t)=>this.isSame(e,t,"YYYY"),this.isSameMonth=(e,t)=>this.isSame(e,t,"YYYY-MM"),this.isSameDay=(e,t)=>this.isSame(e,t,"YYYY-MM-DD"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.isAfter=(e,t)=>e>t,this.isAfterYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()>t.utc():e.isAfter(t,"year"),this.isAfterDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()>t.utc():e.isAfter(t,"day"),this.isBefore=(e,t)=>ethis.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc(){let[n,a]=t;return e>=n&&e<=a},this.startOfYear=e=>this.adjustOffset(e.startOf("year")),this.startOfMonth=e=>this.adjustOffset(e.startOf("month")),this.startOfWeek=e=>this.adjustOffset(e.startOf("week")),this.startOfDay=e=>this.adjustOffset(e.startOf("day")),this.endOfYear=e=>this.adjustOffset(e.endOf("year")),this.endOfMonth=e=>this.adjustOffset(e.endOf("month")),this.endOfWeek=e=>this.adjustOffset(e.endOf("week")),this.endOfDay=e=>this.adjustOffset(e.endOf("day")),this.addYears=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"year"):e.add(t,"year")),this.addMonths=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"month"):e.add(t,"month")),this.addWeeks=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"week"):e.add(t,"week")),this.addDays=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"day"):e.add(t,"day")),this.addHours=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"hour"):e.add(t,"hour")),this.addMinutes=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"minute"):e.add(t,"minute")),this.addSeconds=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"second"):e.add(t,"second")),this.getYear=e=>e.year(),this.getMonth=e=>e.month(),this.getDate=e=>e.date(),this.getHours=e=>e.hour(),this.getMinutes=e=>e.minute(),this.getSeconds=e=>e.second(),this.getMilliseconds=e=>e.millisecond(),this.setYear=(e,t)=>this.adjustOffset(e.set("year",t)),this.setMonth=(e,t)=>this.adjustOffset(e.set("month",t)),this.setDate=(e,t)=>this.adjustOffset(e.set("date",t)),this.setHours=(e,t)=>this.adjustOffset(e.set("hour",t)),this.setMinutes=(e,t)=>this.adjustOffset(e.set("minute",t)),this.setSeconds=(e,t)=>this.adjustOffset(e.set("second",t)),this.setMilliseconds=(e,t)=>this.adjustOffset(e.set("millisecond",t)),this.getDaysInMonth=e=>e.daysInMonth(),this.getNextMonth=e=>this.addMonths(e,1),this.getPreviousMonth=e=>this.addMonths(e,-1),this.getMonthArray=e=>{const t=[e.startOf("year")];for(;t.length<12;){const e=t[t.length-1];t.push(this.addMonths(e,1))}return t},this.mergeDateAndTime=(e,t)=>e.hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>{const e=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map((t=>this.formatByString(this.addDays(e,t),"dd")))},this.getWeekArray=e=>{const t=this.setLocaleToValue(e),n=t.startOf("month").startOf("week"),a=t.endOf("month").endOf("week");let o=0,r=n;const s=[];for(;re.week(),this.getYearRange=(e,t)=>{const n=e.startOf("year"),a=t.endOf("year"),o=[];let r=n;for(;r"am"===e?"AM":"PM",this.rawDayJsInstance=n,this.dayjs=(s=null!=(o=this.rawDayJsInstance)?o:r(),(l=e)?function(){return s(...arguments).locale(l)}:s),this.locale=e,this.formats=(0,a.A)({},g,t),r().extend(i())}}},22474:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,a){var o=n.prototype,r=o.format;a.en.formats=e,o.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,a=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,a,o){var r=o&&o.toUpperCase();return a||n[o]||e[o]||n[r].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,void 0===n?{}:n);return r.call(this,a)}}}()},32369:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(41063),o=n(88937),r=n(10228);function s(e){let{props:t,name:n}=e;return(0,a.A)({props:t,name:n,defaultTheme:o.A,themeId:r.A})}},40444:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isBetween=function(e,t,a,o){var r=n(e),s=n(t),i="("===(o=o||"()")[0],l=")"===o[1];return(i?this.isAfter(r,a):!this.isBefore(r,a))&&(l?this.isBefore(s,a):!this.isAfter(s,a))||(i?this.isBefore(r,a):!this.isAfter(r,a))&&(l?this.isAfter(s,a):!this.isBefore(s,a))}}}()},41337:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>T});var a=n(84849),o=n(27326),r=n(85672),s=n(72574),i=n(25234),l=n(10247),u=n(28292),c=n(60308),d=n(38009),m=n(61949),h=n(92694),p=n(93046),f=n(45688),y=n(78534),g=n(37300),v=n(10644);function b(e){return(0,v.Ay)("MuiListItem",e)}const w=(0,g.A)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var x=n(83611),A=n(97006),D=n(65908);const M=["className"],C=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],P=(0,c.Ay)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.A)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!n.disablePadding&&(0,o.A)({paddingTop:8,paddingBottom:8},n.dense&&{paddingTop:4,paddingBottom:4},!n.disableGutters&&{paddingLeft:16,paddingRight:16},!!n.secondaryAction&&{paddingRight:48}),!!n.secondaryAction&&{["& > .".concat(x.A.root)]:{paddingRight:48}},{["&.".concat(w.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(w.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(w.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(w.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===n.alignItems&&{alignItems:"flex-start"},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},n.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(w.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},n.hasSecondaryAction&&{paddingRight:48})})),S=(0,c.Ay)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),T=r.forwardRef((function(e,t){const n=(0,d.b)({props:e,name:"MuiListItem"}),{alignItems:l="center",autoFocus:c=!1,button:g=!1,children:v,className:x,component:T,components:k={},componentsProps:V={},ContainerComponent:O="li",ContainerProps:{className:I}={},dense:F=!1,disabled:L=!1,disableGutters:R=!1,disablePadding:N=!1,divider:j=!1,focusVisibleClassName:E,secondaryAction:z,selected:Y=!1,slotProps:B={},slots:H={}}=n,W=(0,a.A)(n.ContainerProps,M),U=(0,a.A)(n,C),K=r.useContext(y.A),Z=r.useMemo((()=>({dense:F||K.dense||!1,alignItems:l,disableGutters:R})),[l,K.dense,F,R]),$=r.useRef(null);(0,p.A)((()=>{c&&$.current&&$.current.focus()}),[c]);const G=r.Children.toArray(v),q=G.length&&(0,h.A)(G[G.length-1],["ListItemSecondaryAction"]),Q=(0,o.A)({},n,{alignItems:l,autoFocus:c,button:g,dense:Z.dense,disabled:L,disableGutters:R,disablePadding:N,divider:j,hasSecondaryAction:q,selected:Y}),X=(e=>{const{alignItems:t,button:n,classes:a,dense:o,disabled:r,disableGutters:s,disablePadding:l,divider:u,hasSecondaryAction:c,selected:d}=e,m={root:["root",o&&"dense",!s&&"gutters",!l&&"padding",u&&"divider",r&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]};return(0,i.A)(m,b,a)})(Q),J=(0,f.A)($,t),_=H.root||k.Root||P,ee=B.root||V.root||{},te=(0,o.A)({className:(0,s.A)(X.root,ee.className,x),disabled:L},U);let ne=T||"li";return g&&(te.component=T||"div",te.focusVisibleClassName=(0,s.A)(w.focusVisible,E),ne=m.A),q?(ne=te.component||T?ne:"div","li"===O&&("li"===ne?ne="div":"li"===te.component&&(te.component="div")),(0,D.jsx)(y.A.Provider,{value:Z,children:(0,D.jsxs)(S,(0,o.A)({as:O,className:(0,s.A)(X.container,I),ref:J,ownerState:Q},W,{children:[(0,D.jsx)(_,(0,o.A)({},ee,!(0,u.A)(_)&&{as:ne,ownerState:(0,o.A)({},Q,ee.ownerState)},te,{children:G})),G.pop()]}))})):(0,D.jsx)(y.A.Provider,{value:Z,children:(0,D.jsxs)(_,(0,o.A)({},ee,{as:ne,ref:J},!(0,u.A)(_)&&{ownerState:(0,o.A)({},Q,ee.ownerState)},te,{children:[G,z&&(0,D.jsx)(A.A,{children:z})]}))})}))},48554:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,a,o){var r=a.prototype;r.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var a=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var r=o(this).startOf(t).add(1,t).date(a),s=o(this).endOf(e);if(r.isBefore(s))return 1}var i=o(this).startOf(t).date(a).startOf(e).subtract(1,"millisecond"),l=this.diff(i,e,!0);return l<0?o(this).startOf("week").week():Math.ceil(l)},r.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},65293:(e,t,n)=>{"use strict";n.d(t,{$:()=>c,F:()=>u});var a=n(27326),o=n(84849),r=n(85672),s=n(32369),i=n(65908);const l=["localeText"],u=r.createContext(null);const c=function(e){var t;const{localeText:n}=e,c=(0,o.A)(e,l),{utils:d,localeText:m}=null!=(t=r.useContext(u))?t:{utils:void 0,localeText:void 0},h=(0,s.A)({props:c,name:"MuiLocalizationProvider"}),{children:p,dateAdapter:f,dateFormats:y,dateLibInstance:g,adapterLocale:v,localeText:b}=h,w=r.useMemo((()=>(0,a.A)({},b,m,n)),[b,m,n]),x=r.useMemo((()=>{if(!f)return d||null;const e=new f({locale:v,formats:y,instance:g});if(!e.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join("\n"));return e}),[f,v,y,g,d]),A=r.useMemo((()=>x?{minDate:x.date("1900-01-01T00:00:00.000"),maxDate:x.date("2099-12-31T00:00:00.000")}:null),[x]),D=r.useMemo((()=>({utils:x,defaultDates:A,localeText:w})),[A,x,w]);return(0,i.jsx)(u.Provider,{value:D,children:p})}},89299:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});const a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warning",n=!1;const a=Array.isArray(e)?e.join("\n"):e;return()=>{n||(n=!0,"error"===t?console.error(a):console.warn(a))}}},91939:(e,t,n)=>{"use strict";n.d(t,{l:()=>Ja});var a=n(27326),o=n(84849),r=n(85672),s=n.t(r,2),i=n(76264),l=n(32369),u=n(45656),c=n.n(u);function d(e,t,n){return"function"===typeof e?e(t,n):e}const m=c().oneOfType([c().func,c().object]),h=(e,t)=>e.length===t.length&&t.every((t=>e.includes(t))),p=(e,t,n)=>{let a=t;return a=e.setHours(a,e.getHours(n)),a=e.setMinutes(a,e.getMinutes(n)),a=e.setSeconds(a,e.getSeconds(n)),a},f=e=>{let{date:t,disableFuture:n,disablePast:a,maxDate:o,minDate:r,isDateDisabled:s,utils:i,timezone:l}=e;const u=p(i,i.dateWithTimezone(void 0,l),t);a&&i.isBefore(r,u)&&(r=u),n&&i.isAfter(o,u)&&(o=u);let c=t,d=t;for(i.isBefore(t,r)&&(c=r,d=null),i.isAfter(t,o)&&(d&&(d=o),c=null);c||d;){if(c&&i.isAfter(c,o)&&(c=null),d&&i.isBefore(d,r)&&(d=null),c){if(!s(c))return c;c=i.addDays(c,1)}if(d){if(!s(d))return d;d=i.addDays(d,-1)}}return null},y=(e,t,n)=>null!=t&&e.isValid(t)?t:n,g=(e,t)=>{const n=[e.startOfYear(t)];for(;n.length<12;){const t=n[n.length-1];n.push(e.addMonths(t,1))}return n},v=(e,t,n)=>"date"===n?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),b=["year","month","day"],w=e=>b.includes(e),x=(e,t,n)=>{let{format:a,views:o}=t;if(null!=a)return a;const r=e.formats;return h(o,["year"])?r.year:h(o,["month"])?r.month:h(o,["day"])?r.dayOfMonth:h(o,["month","year"])?"".concat(r.month," ").concat(r.year):h(o,["day","month"])?"".concat(r.month," ").concat(r.dayOfMonth):n?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},A=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map((t=>e.addDays(n,t)))},D=["hours","minutes","seconds"],M=(e,t)=>3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e),C={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},P=(e,t,n)=>{if(t===C.year)return e.startOfYear(n);if(t===C.month)return e.startOfMonth(n);if(t===C.day)return e.startOfDay(n);let a=n;return t{let{props:t,utils:n,granularity:a,timezone:o,getTodayDate:r}=e;var s;let i=r?r():P(n,a,v(n,o));null!=t.minDate&&n.isAfterDay(t.minDate,i)&&(i=P(n,a,t.minDate)),null!=t.maxDate&&n.isBeforeDay(t.maxDate,i)&&(i=P(n,a,t.maxDate));const l=((e,t)=>(n,a)=>e?t.isAfter(n,a):M(n,t)>M(a,t))(null!=(s=t.disableIgnoringDatePartForTimeValidation)&&s,n);return null!=t.minTime&&l(t.minTime,i)&&(i=P(n,a,t.disableIgnoringDatePartForTimeValidation?t.minTime:p(n,i,t.minTime))),null!=t.maxTime&&l(i,t.maxTime)&&(i=P(n,a,t.disableIgnoringDatePartForTimeValidation?t.maxTime:p(n,i,t.maxTime))),i},T=(e,t)=>{const n=e.formatTokenMap[t];if(null==n)throw new Error(['MUI: The token "'.concat(t,'" is not supported by the Date and Time Pickers.'),"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join("\n"));return"string"===typeof n?{type:n,contentType:"meridiem"===n?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},k=(e,t,n)=>{const a=[],o=e.dateWithTimezone(void 0,t),r=e.startOfWeek(o),s=e.endOfWeek(o);let i=r;for(;e.isBefore(i,s);)a.push(i),i=e.addDays(i,1);return a.map((t=>e.formatByString(t,n)))},V=(e,t,n,a)=>{switch(n){case"month":return g(e,e.dateWithTimezone(void 0,t)).map((t=>e.formatByString(t,a)));case"weekDay":return k(e,t,a);case"meridiem":{const n=e.dateWithTimezone(void 0,t);return[e.startOfDay(n),e.endOfDay(n)].map((t=>e.formatByString(t,a)))}default:return[]}},O=(e,t,n)=>{let a=t;for(a=Number(a).toString();a.length{if("day"===o.type&&"digit-with-letter"===o.contentType){const t=e.setDate(a.longestMonth,n);return e.formatByString(t,o.format)}const r=n.toString();return o.hasLeadingZerosInInput?O(0,r,o.maxLength):r},F=(e,t,n,a,o,r,s)=>{const i=(e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}})(a),l="Home"===a,u="End"===a,c=""===n.value||l||u;return"digit"===n.contentType||"digit-with-letter"===n.contentType?(()=>{const a=o[n.type]({currentDate:r,format:n.format,contentType:n.contentType}),d=t=>I(e,0,t,a,n),m="minutes"===n.type&&null!=s&&s.minutesStep?s.minutesStep:1;let h=parseInt(n.value,10)+i*m;if(c){if("year"===n.type&&!u&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);h=i>0||l?a.minimum:a.maximum}return h%m!==0&&((i<0||l)&&(h+=m-(m+h)%m),(i>0||u)&&(h-=h%m)),h>a.maximum?d(a.minimum+(h-a.maximum-1)%(a.maximum-a.minimum+1)):h{const a=V(e,t,n.type,n.format);if(0===a.length)return n.value;if(c)return i>0||l?a[0]:a[a.length-1];const o=a.indexOf(n.value);return a[(o+a.length+i)%a.length]})()},L=(e,t)=>{let n=e.value||e.placeholder;const a="non-input"===t?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;"non-input"===t&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString());return["input-rtl","input-ltr"].includes(t)&&"digit"===e.contentType&&!a&&1===n.length&&(n="".concat(n,"\u200e")),"input-rtl"===t&&(n="\u2068".concat(n,"\u2069")),n},R=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),N=(e,t)=>{let n=0,o=t?1:0;const r=[];for(let s=0;s{switch(a.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length,format:o});case"month":return n.fieldMonthPlaceholder({contentType:a.contentType,format:o});case"day":return n.fieldDayPlaceholder({format:o});case"weekDay":return n.fieldWeekDayPlaceholder({contentType:a.contentType,format:o});case"hours":return n.fieldHoursPlaceholder({format:o});case"minutes":return n.fieldMinutesPlaceholder({format:o});case"seconds":return n.fieldSecondsPlaceholder({format:o});case"meridiem":return n.fieldMeridiemPlaceholder({format:o});default:return o}},E=(e,t,n,a)=>e.formatByString(e.parse(t,n),a),z=(e,t,n)=>4===e.formatByString(e.dateWithTimezone(void 0,t),n).length,Y=(e,t,n,a,o)=>{if("digit"!==n)return!1;const r=e.dateWithTimezone(void 0,t);switch(a){case"year":if(z(e,t,o)){return"0001"===e.formatByString(e.setYear(r,1),o)}return"01"===e.formatByString(e.setYear(r,2001),o);case"month":return e.formatByString(e.startOfYear(r),o).length>1;case"day":return e.formatByString(e.startOfMonth(r),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(r),o).length>1;case"hours":return e.formatByString(e.setHours(r,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(r,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(r,1),o).length>1;default:throw new Error("Invalid section type")}},B=(e,t,n,o,r,s,i,l)=>{let u="";const c=[],d=e.date(),m=o=>{if(""===o)return null;const s=T(e,o),l=Y(e,t,s.contentType,s.type,o),m=i?l:"digit"===s.contentType,h=null!=r&&e.isValid(r);let p=h?e.formatByString(r,o):"",f=null;if(m)if(l)f=""===p?e.formatByString(d,o).length:p.length;else{if(null==s.maxLength)throw new Error("MUI: The token ".concat(o," should have a 'maxDigitNumber' property on it's adapter"));f=s.maxLength,h&&(p=O(0,p,f))}return c.push((0,a.A)({},s,{format:o,maxLength:f,value:p,placeholder:j(e,t,n,s,o),hasLeadingZeros:l,hasLeadingZerosInFormat:l,hasLeadingZerosInInput:m,startSeparator:0===c.length?u:"",endSeparator:"",modified:!1})),null};let h=10,p=o,f=e.expandFormat(o);for(;f!==p;)if(p=f,f=e.expandFormat(p),h-=1,h<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const y=f,g=((e,t)=>{const n=[],{start:a,end:o}=e.escapedCharacters,r=new RegExp("(\\".concat(a,"[^\\").concat(o,"]*\\").concat(o,")+"),"g");let s=null;for(;s=r.exec(t);)n.push({start:s.index,end:r.lastIndex-1});return n})(e,y),v=new RegExp("^(".concat(Object.keys(e.formatTokenMap).sort(((e,t)=>t.length-e.length)).join("|"),")"),"g");let b="";for(let a=0;ae.start<=a&&e.end>=a)),t=y[a],n=null!=e,o="".concat(b).concat(y.slice(a)),r=v.test(o);if(!n&&t.match(/([A-Za-z]+)/)&&r)b=o.slice(0,v.lastIndex),a+=v.lastIndex-1;else{n&&(null==e?void 0:e.start)===a||(null==e?void 0:e.end)===a||(m(b),b="",0===c.length?u+=t:c[c.length-1].endSeparator+=t)}}return m(b),c.map((e=>{const t=e=>{let t=e;return l&&null!==t&&t.includes(" ")&&(t="\u2069".concat(t,"\u2066")),"spacious"===s&&["/",".","-"].includes(t)&&(t=" ".concat(t," ")),t};return e.startSeparator=t(e.startSeparator),e.endSeparator=t(e.endSeparator),e}))};const H=(e,t)=>{0},W={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},U=(e,t,n,a,o,r)=>[...a].sort(((e,t)=>W[e.type]-W[t.type])).reduce(((a,o)=>!r||o.modified?((e,t,n,a,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(a));case"month":return e.setMonth(o,e.getMonth(a));case"weekDay":{const o=k(e,t,n.format),r=e.formatByString(a,n.format),s=o.indexOf(r),i=o.indexOf(n.value)-s;return e.addDays(a,i)}case"day":return e.setDate(o,e.getDate(a));case"meridiem":{const t=e.getHours(a)<12,n=e.getHours(o);return t&&n>=12?e.addHours(o,-12):!t&&n<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(a));case"minutes":return e.setMinutes(o,e.getMinutes(a));case"seconds":return e.setSeconds(o,e.getSeconds(a));default:return o}})(e,t,o,n,a):a),o),K=["value","referenceDate"],Z={emptyValue:null,getTodayValue:v,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,a=(0,o.A)(e,K);return null!=t&&a.utils.isValid(t)?t:null!=n?n:S(a)},cleanValue:(e,t)=>null!=t&&e.isValid(t)?t:null,areValuesEqual:(e,t,n)=>!e.isValid(t)&&null!=t&&!e.isValid(n)&&null!=n||e.isEqual(t,n),isSameError:(e,t)=>e===t,hasError:e=>null!=e,defaultErrorState:null,getTimezone:(e,t)=>null!=t&&e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>null==n?null:e.setTimezone(n,t)},$={updateReferenceValue:(e,t,n)=>null!=t&&e.isValid(t)?t:n,getSectionsFromValue:(e,t,n,a,o)=>!e.isValid(t)&&!!n?n:N(o(t),a),getValueStrFromSections:(e,t)=>{const n=e.map((e=>{const n=L(e,t?"input-rtl":"input-ltr");return"".concat(e.startSeparator).concat(n).concat(e.endSeparator)})).join("");return t?"\u2066".concat(n,"\u2069"):n},getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:e=>e,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:null!=n&&e.isValid(n)?n:t.referenceValue})}),parseValueStr:(e,t,n)=>n(e.trim(),t)};var G=n(65293);const q={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>"Select ".concat(e,". ").concat(null===t?"No time selected":"Selected time is ".concat(n.format(t,"fullTime"))),hoursClockNumberText:e=>"".concat(e," hours"),minutesClockNumberText:e=>"".concat(e," minutes"),secondsClockNumberText:e=>"".concat(e," seconds"),selectViewText:e=>"Select ".concat(e),calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>"Week ".concat(e),calendarWeekNumberText:e=>"".concat(e),openDatePickerDialogue:(e,t)=>null!==e&&t.isValid(e)?"Choose date, selected date is ".concat(t.format(e,"fullDate")):"Choose date",openTimePickerDialogue:(e,t)=>null!==e&&t.isValid(e)?"Choose time, selected time is ".concat(t.format(e,"fullTime")):"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>"letter"===e.contentType?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>"letter"===e.contentType?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},Q=q;X=q,(0,a.A)({},X);var X;const J=()=>{const e=r.useContext(G.F);if(null===e)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join("\n"));if(null===e.utils)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join("\n"));const t=r.useMemo((()=>(0,a.A)({},Q,e.localeText)),[e.localeText]);return r.useMemo((()=>(0,a.A)({},e,{localeText:t})),[e,t])},_=()=>J().utils,ee=()=>J().defaultDates,te=()=>J().localeText,ne=e=>{const t=_(),n=r.useRef();return void 0===n.current&&(n.current=t.dateWithTimezone(void 0,e)),n.current};var ae=n(72574),oe=n(2866),re=n(60308);function se(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const a={};return Object.keys(e).forEach((o=>{a[o]=e[o].reduce(((e,a)=>{if(a){const o=t(a);""!==o&&e.push(o),n&&n[a]&&e.push(n[a])}return e}),[]).join(" ")})),a}const ie=e=>e,le=(()=>{let e=ie;return{configure(t){e=t},generate:t=>e(t),reset(){e=ie}}})(),ue={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ce(e,t){const n=ue[t];return n?"".concat(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui","-").concat(n):"".concat(le.generate(e),"-").concat(t)}function de(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const a={};return t.forEach((t=>{a[t]=ce(e,t,n)})),a}function me(e){return ce("MuiPickersToolbar",e)}de("MuiPickersToolbar",["root","content"]);var he=n(65908);const pe=(0,re.Ay)("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t,ownerState:n}=e;return(0,a.A)({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:t.spacing(2,3)},n.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})})),fe=(0,re.Ay)("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})((e=>{let{ownerState:t}=e;var n;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:t.isLandscape?"flex-start":"space-between",flexDirection:t.isLandscape?null!=(n=t.landscapeDirection)?n:"column":"row",flex:1,alignItems:t.isLandscape?"flex-start":"center"}})),ye=r.forwardRef((function(e,t){const n=(0,l.A)({props:e,name:"MuiPickersToolbar"}),{children:a,className:o,toolbarTitle:r,hidden:s,titleId:i}=n,u=n,c=(e=>{const{classes:t,isLandscape:n}=e;return se({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},me,t)})(u);return s?null:(0,he.jsxs)(pe,{ref:t,className:(0,ae.A)(c.root,o),ownerState:u,children:[(0,he.jsx)(oe.A,{color:"text.secondary",variant:"overline",id:i,children:r}),(0,he.jsx)(fe,{className:c.content,ownerState:u,children:a})]})}));function ge(e){return ce("MuiDatePickerToolbar",e)}de("MuiDatePickerToolbar",["root","title"]);const ve=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className"],be=(0,re.Ay)(ye,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),we=(0,re.Ay)(oe.A,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})((e=>{let{ownerState:t}=e;return(0,a.A)({},t.isLandscape&&{margin:"auto 16px auto auto"})})),xe=r.forwardRef((function(e,t){const n=(0,l.A)({props:e,name:"MuiDatePickerToolbar"}),{value:s,isLandscape:i,toolbarFormat:u,toolbarPlaceholder:c="\u2013\u2013",views:d,className:m}=n,h=(0,o.A)(n,ve),p=_(),f=te(),y=(e=>{const{classes:t}=e;return se({root:["root"],title:["title"]},ge,t)})(n),g=r.useMemo((()=>{if(!s)return c;const e=x(p,{format:u,views:d},!0);return p.formatByString(s,e)}),[s,u,c,p,d]),v=n;return(0,he.jsx)(be,(0,a.A)({ref:t,toolbarTitle:f.datePickerToolbarTitle,isLandscape:i,className:(0,ae.A)(y.root,m)},h,{children:(0,he.jsx)(we,{variant:"h4",align:i?"left":"center",ownerState:v,className:y.title,children:g})}))})),Ae=e=>{if(void 0!==e)return Object.keys(e).reduce(((t,n)=>(0,a.A)({},t,{["".concat(n.slice(0,1).toLowerCase()).concat(n.slice(1))]:e[n]})),{})};function De(e,t){var n,o,s,i;const u=_(),c=ee(),d=(0,l.A)({props:e,name:t}),m=r.useMemo((()=>{var e;return null==(null==(e=d.localeText)?void 0:e.toolbarTitle)?d.localeText:(0,a.A)({},d.localeText,{datePickerToolbarTitle:d.localeText.toolbarTitle})}),[d.localeText]),h=null!=(n=d.slots)?n:Ae(d.components);return(0,a.A)({},d,{localeText:m},(e=>{let{openTo:t,defaultOpenTo:n,views:a,defaultViews:o}=e;const r=null!=a?a:o;let s;if(null!=t)s=t;else if(r.includes(n))s=n;else{if(!(r.length>0))throw new Error("MUI: The `views` prop must contain at least one view");s=r[0]}return{views:r,openTo:s}})({views:d.views,openTo:d.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:null!=(o=d.disableFuture)&&o,disablePast:null!=(s=d.disablePast)&&s,minDate:y(u,d.minDate,c.minDate),maxDate:y(u,d.maxDate,c.maxDate),slots:(0,a.A)({toolbar:xe},h),slotProps:null!=(i=d.slotProps)?i:d.componentsProps})}const Me=e=>{let{props:t,value:n,adapter:a}=e;if(null===n)return null;const{shouldDisableDate:o,shouldDisableMonth:r,shouldDisableYear:s,disablePast:i,disableFuture:l,timezone:u}=t,c=a.utils.dateWithTimezone(void 0,u),d=y(a.utils,t.minDate,a.defaultDates.minDate),m=y(a.utils,t.maxDate,a.defaultDates.maxDate);switch(!0){case!a.utils.isValid(n):return"invalidDate";case Boolean(o&&o(n)):return"shouldDisableDate";case Boolean(r&&r(n)):return"shouldDisableMonth";case Boolean(s&&s(n)):return"shouldDisableYear";case Boolean(l&&a.utils.isAfterDay(n,c)):return"disableFuture";case Boolean(i&&a.utils.isBeforeDay(n,c)):return"disablePast";case Boolean(d&&a.utils.isBeforeDay(n,d)):return"minDate";case Boolean(m&&a.utils.isAfterDay(n,m)):return"maxDate";default:return null}};var Ce=n(22555),Pe=n(53986);function Se(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"===typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function Te(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:a,externalForwardedProps:o,className:r}=e;if(!t){const e=(0,ae.A)(null===n||void 0===n?void 0:n.className,r,null===o||void 0===o?void 0:o.className,null===a||void 0===a?void 0:a.className),t=(0,Ce.A)((0,Ce.A)((0,Ce.A)({},null===n||void 0===n?void 0:n.style),null===o||void 0===o?void 0:o.style),null===a||void 0===a?void 0:a.style),s=(0,Ce.A)((0,Ce.A)((0,Ce.A)({},n),o),a);return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}((0,Ce.A)((0,Ce.A)({},o),a)),i=Se(a),l=Se(o),u=t(s),c=(0,ae.A)(null===u||void 0===u?void 0:u.className,null===n||void 0===n?void 0:n.className,r,null===o||void 0===o?void 0:o.className,null===a||void 0===a?void 0:a.className),d=(0,Ce.A)((0,Ce.A)((0,Ce.A)((0,Ce.A)({},null===u||void 0===u?void 0:u.style),null===n||void 0===n?void 0:n.style),null===o||void 0===o?void 0:o.style),null===a||void 0===a?void 0:a.style),m=(0,Ce.A)((0,Ce.A)((0,Ce.A)((0,Ce.A)({},u),n),l),i);return c.length>0&&(m.className=c),Object.keys(d).length>0&&(m.style=d),{props:m,internalRef:u.ref}}const ke=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ve(e){var t;const{elementType:n,externalSlotProps:a,ownerState:o,skipResolvingSlotProps:s=!1}=e,i=(0,Pe.A)(e,ke),l=s?{}:d(a,o),{props:u,internalRef:c}=Te((0,Ce.A)((0,Ce.A)({},i),{},{externalSlotProps:l})),m=function(){for(var e=arguments.length,t=new Array(e),n=0;nt.every((e=>null==e))?null:e=>{t.forEach((t=>{!function(e,t){"function"===typeof e?e(t):e&&(e.current=t)}(t,e)}))}),t)}(c,null===l||void 0===l?void 0:l.ref,null===(t=e.additionalProps)||void 0===t?void 0:t.ref),h=function(e,t,n){return void 0===e||"string"===typeof e?t:(0,Ce.A)((0,Ce.A)({},t),{},{ownerState:(0,Ce.A)((0,Ce.A)({},t.ownerState),n)})}(n,(0,Ce.A)((0,Ce.A)({},u),{},{ref:m}),o);return h}var Oe=n(43318),Ie=n(11969);function Fe(){for(var e=arguments.length,t=new Array(e),n=0;nt.every((e=>null==e))?null:e=>{t.forEach((t=>{!function(e,t){"function"===typeof e?e(t):e&&(e.current=t)}(t,e)}))}),t)}let Le=0;const Re=s["useId".toString()];function Ne(e){if(void 0!==Re){const t=Re();return null!=e?e:t}return function(e){const[t,n]=r.useState(e),a=e||t;return r.useEffect((()=>{null==t&&(Le+=1,n("mui-".concat(Le)))}),[t]),a}(e)}var je=n(38815),Ee=n(95345),ze=n(55235),Ye=n(46486),Be=n(14128);const He="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;const We=function(e){const t=r.useRef(e);return He((()=>{t.current=e})),r.useRef((function(){return(0,t.current)(...arguments)})).current};function Ue(e){return e&&e.ownerDocument||document}function Ke(e){return ce("MuiPickersPopper",e)}de("MuiPickersPopper",["root","paper"]);const Ze=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).activeElement;return e?e.shadowRoot?Ze(e.shadowRoot):e:null},$e="@media (pointer: fine)",Ge="undefined"!==typeof navigator&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),qe=Ge&&Ge[1]?parseInt(Ge[1],10):null,Qe=Ge&&Ge[2]?parseInt(Ge[2],10):null,Xe=qe&&qe<10||Qe&&Qe<13||!1,Je=()=>(0,i.A)("@media (prefers-reduced-motion: reduce)",{defaultMatches:!1})||Xe,_e=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],et=(0,re.Ay)(Ye.A,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{zIndex:t.zIndex.modal}})),tt=(0,re.Ay)(ze.A,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})((e=>{let{ownerState:t}=e;return(0,a.A)({outline:0,transformOrigin:"top center"},t.placement.includes("top")&&{transformOrigin:"bottom center"})}));const nt=r.forwardRef(((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:s,children:i,paperSlotProps:l,paperClasses:u,onPaperClick:c,onPaperTouchStart:d}=e,m=(0,o.A)(e,_e),h=(0,a.A)({},s,{placement:r}),p=Ve({elementType:n,externalSlotProps:l,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:u,ownerState:h});return(0,he.jsx)(n,(0,a.A)({},m,p,{onClick:e=>{var t;c(e),null==(t=p.onClick)||t.call(p,e)},onTouchStart:e=>{var t;d(e),null==(t=p.onTouchStart)||t.call(p,e)},ownerState:h,children:i}))}));function at(e){var t,n,o,s;const i=(0,l.A)({props:e,name:"MuiPickersPopper"}),{anchorEl:u,children:c,containerRef:d=null,shouldRestoreFocus:m,onBlur:h,onDismiss:p,open:f,role:y,placement:g,slots:v,slotProps:b,reduceAnimations:w}=i;r.useEffect((()=>{function e(e){!f||"Escape"!==e.key&&"Esc"!==e.key||p()}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[p,f]);const x=r.useRef(null);r.useEffect((()=>{"tooltip"===y||m&&!m()||(f?x.current=Ze(document):x.current&&x.current instanceof HTMLElement&&setTimeout((()=>{x.current instanceof HTMLElement&&x.current.focus()})))}),[f,y,m]);const[A,D,M]=function(e,t){const n=r.useRef(!1),a=r.useRef(!1),o=r.useRef(null),s=r.useRef(!1);r.useEffect((()=>{if(e)return document.addEventListener("mousedown",t,!0),document.addEventListener("touchstart",t,!0),()=>{document.removeEventListener("mousedown",t,!0),document.removeEventListener("touchstart",t,!0),s.current=!1};function t(){s.current=!0}}),[e]);const i=We((e=>{if(!s.current)return;const r=a.current;a.current=!1;const i=Ue(o.current);if(!o.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!i.documentElement.contains(e.target)||o.current.contains(e.target),l||r||t(e)})),l=()=>{a.current=!0};return r.useEffect((()=>{if(e){const e=Ue(o.current),t=()=>{n.current=!0};return e.addEventListener("touchstart",i),e.addEventListener("touchmove",t),()=>{e.removeEventListener("touchstart",i),e.removeEventListener("touchmove",t)}}}),[e,i]),r.useEffect((()=>{if(e){const e=Ue(o.current);return e.addEventListener("click",i),()=>{e.removeEventListener("click",i),a.current=!1}}}),[e,i]),[o,l,l]}(f,null!=h?h:p),C=Fe(r.useRef(null),d),P=Fe(C,A),S=i,T=(e=>{const{classes:t}=e;return se({root:["root"],paper:["paper"]},Ke,t)})(S),k=Je(),V=null!=w?w:k,O=(null!=(t=null==v?void 0:v.desktopTransition)?t:V)?Ee.A:je.A,I=null!=(n=null==v?void 0:v.desktopTrapFocus)?n:Be.A,F=null!=(o=null==v?void 0:v.desktopPaper)?o:tt,L=null!=(s=null==v?void 0:v.popper)?s:et,R=Ve({elementType:L,externalSlotProps:null==b?void 0:b.popper,additionalProps:{transition:!0,role:y,open:f,anchorEl:u,placement:g,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),p())}},className:T.root,ownerState:i});return(0,he.jsx)(L,(0,a.A)({},R,{children:e=>{let{TransitionProps:t,placement:n}=e;return(0,he.jsx)(I,(0,a.A)({open:f,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:"tooltip"===y,isEnabled:()=>!0},null==b?void 0:b.desktopTrapFocus,{children:(0,he.jsx)(O,(0,a.A)({},t,null==b?void 0:b.desktopTransition,{children:(0,he.jsx)(nt,{PaperComponent:F,ownerState:S,popperPlacement:n,ref:P,onPaperClick:D,onPaperTouchStart:M,paperClasses:T.paper,paperSlotProps:null==b?void 0:b.desktopPaper,children:c})}))}))}}))}function ot(e){let{controlled:t,default:n,name:a,state:o="value"}=e;const{current:s}=r.useRef(void 0!==t),[i,l]=r.useState(n);return[s?t:i,r.useCallback((e=>{s||l(e)}),[])]}function rt(e,t,n,a){const{value:o,onError:s}=e,i=J(),l=r.useRef(a),u=t({adapter:i,value:o,props:e});return r.useEffect((()=>{s&&!n(u,l.current)&&s(u,o),l.current=u}),[n,s,l,u,o]),u}const st=e=>{let{timezone:t,value:n,defaultValue:a,onChange:o,valueManager:s}=e;var i,l;const u=_(),c=r.useRef(a),d=null!=(i=null!=n?n:c.current)?i:s.emptyValue,m=r.useMemo((()=>s.getTimezone(u,d)),[u,s,d]),h=We((e=>null==m?e:s.setTimezone(u,m,e))),p=null!=(l=null!=t?t:m)?l:"default";return{value:r.useMemo((()=>s.setTimezone(u,p,d)),[s,u,p,d]),handleValueChange:We((function(e){const t=h(e);for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r{let{name:t,timezone:n,value:a,defaultValue:o,onChange:r,valueManager:s}=e;const[i,l]=ot({name:t,state:"value",controlled:a,default:null!=o?o:s.emptyValue}),u=We((function(e){l(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{let{props:t,valueManager:n,valueType:o,wrapperVariant:s,validator:i}=e;const{onAccept:l,onChange:u,value:c,defaultValue:d,closeOnSelect:m="desktop"===s,selectedSections:h,onSelectedSectionsChange:p,timezone:f}=t,{current:y}=r.useRef(d),{current:g}=r.useRef(void 0!==c);const v=_(),b=J(),[w,x]=ot({controlled:h,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:A,setIsOpen:D}=(e=>{let{open:t,onOpen:n,onClose:a}=e;const o=r.useRef("boolean"===typeof t).current,[s,i]=r.useState(!1);return r.useEffect((()=>{if(o){if("boolean"!==typeof t)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(t)}}),[o,t]),{isOpen:s,setIsOpen:r.useCallback((e=>{o||i(e),e&&n&&n(),!e&&a&&a()}),[o,n,a])}})(t),[M,C]=r.useState((()=>{let e;return e=void 0!==c?c:void 0!==y?y:n.emptyValue,{draft:e,lastPublishedValue:e,lastCommittedValue:e,lastControlledValue:c,hasBeenModifiedSinceMount:!1}})),{timezone:P,handleValueChange:S}=st({timezone:f,value:c,defaultValue:y,onChange:u,valueManager:n});rt((0,a.A)({},t,{value:M.draft,timezone:P}),i,n.isSameError,n.defaultErrorState);const T=We((e=>{const o={action:e,dateState:M,hasChanged:t=>!n.areValuesEqual(v,e.value,t),isControlled:g,closeOnSelect:m},r=(e=>{const{action:t,hasChanged:n,dateState:a,isControlled:o}=e,r=!o&&!a.hasBeenModifiedSinceMount;return"setValueFromField"===t.name||("setValueFromAction"===t.name?!(!r||!["accept","today","clear"].includes(t.pickerAction))||n(a.lastPublishedValue):("setValueFromView"===t.name&&"shallow"!==t.selectionState||"setValueFromShortcut"===t.name)&&(!!r||n(a.lastPublishedValue)))})(o),s=(e=>{const{action:t,hasChanged:n,dateState:a,isControlled:o,closeOnSelect:r}=e,s=!o&&!a.hasBeenModifiedSinceMount;return"setValueFromAction"===t.name?!(!s||!["accept","today","clear"].includes(t.pickerAction))||n(a.lastCommittedValue):"setValueFromView"===t.name&&"finish"===t.selectionState&&r?!!s||n(a.lastCommittedValue):"setValueFromShortcut"===t.name&&"accept"===t.changeImportance&&n(a.lastCommittedValue)})(o),u=(e=>{const{action:t,closeOnSelect:n}=e;return"setValueFromAction"===t.name||("setValueFromView"===t.name?"finish"===t.selectionState&&n:"setValueFromShortcut"===t.name&&"accept"===t.changeImportance)})(o);if(C((t=>(0,a.A)({},t,{draft:e.value,lastPublishedValue:r?e.value:t.lastPublishedValue,lastCommittedValue:s?e.value:t.lastCommittedValue,hasBeenModifiedSinceMount:!0}))),r){const n={validationError:"setValueFromField"===e.name?e.context.validationError:i({adapter:b,value:e.value,props:(0,a.A)({},t,{value:e.value,timezone:P})})};"setValueFromShortcut"===e.name&&null!=e.shortcut&&(n.shortcut=e.shortcut),S(e.value,n)}s&&l&&l(e.value),u&&D(!1)}));if(void 0!==c&&(void 0===M.lastControlledValue||!n.areValuesEqual(v,M.lastControlledValue,c))){const e=n.areValuesEqual(v,M.draft,c);C((t=>(0,a.A)({},t,{lastControlledValue:c},e?{}:{lastCommittedValue:c,lastPublishedValue:c,draft:c,hasBeenModifiedSinceMount:!0})))}const k=We((()=>{T({value:n.emptyValue,name:"setValueFromAction",pickerAction:"clear"})})),V=We((()=>{T({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})})),O=We((()=>{T({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})})),I=We((()=>{T({value:M.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})})),F=We((()=>{T({value:n.getTodayValue(v,P,o),name:"setValueFromAction",pickerAction:"today"})})),L=We((()=>D(!0))),R=We((()=>D(!1))),N=We((function(e){return T({name:"setValueFromView",value:e,selectionState:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"partial"})})),j=We(((e,t,n)=>T({name:"setValueFromShortcut",value:e,changeImportance:null!=t?t:"accept",shortcut:n}))),E=We(((e,t)=>T({name:"setValueFromField",value:e,context:t}))),z=We((e=>{x(e),null==p||p(e)})),Y={onClear:k,onAccept:V,onDismiss:O,onCancel:I,onSetToday:F,onOpen:L,onClose:R},B={value:M.draft,onChange:E,selectedSections:w,onSelectedSectionsChange:z},H=r.useMemo((()=>n.cleanValue(v,M.draft)),[v,n,M.draft]);return{open:A,fieldProps:B,viewProps:{value:H,onChange:N,onClose:R,open:A,onSelectedSectionsChange:z},layoutProps:(0,a.A)({},Y,{value:H,onChange:N,onSelectShortcut:j,isValid:e=>{const o=i({adapter:b,value:e,props:(0,a.A)({},t,{value:e,timezone:P})});return!n.hasError(o)}}),actions:Y}};function ut(e){let{onChange:t,onViewChange:n,openTo:a,view:o,views:s,autoFocus:i,focusedView:l,onFocusedViewChange:u}=e;var c,d;const m=r.useRef(a),h=r.useRef(s),p=r.useRef(s.includes(a)?a:s[0]),[f,y]=ot({name:"useViews",state:"view",controlled:o,default:p.current}),g=r.useRef(i?f:null),[v,b]=ot({name:"useViews",state:"focusedView",controlled:l,default:g.current});r.useEffect((()=>{(m.current&&m.current!==a||h.current&&h.current.some((e=>!s.includes(e))))&&(y(s.includes(a)?a:s[0]),h.current=s,m.current=a)}),[a,y,f,s]);const w=s.indexOf(f),x=null!=(c=s[w-1])?c:null,A=null!=(d=s[w+1])?d:null,D=We(((e,t)=>{b(t?e:t=>e===t?null:t),null==u||u(e,t)})),M=We((e=>{D(e,!0),e!==f&&(y(e),n&&n(e))})),C=We((()=>{A&&M(A)})),P=We(((e,n,a)=>{const o="finish"===n,r=a?s.indexOf(a){let{props:t,propsFromPickerValue:n,additionalViewProps:s,inputRef:i,autoFocusView:l}=e;const{onChange:u,open:c,onSelectedSectionsChange:d,onClose:m}=n,{view:h,views:p,openTo:f,onViewChange:y,viewRenderers:g,timezone:v}=t,b=(0,o.A)(t,ct),{view:w,setView:x,defaultView:A,focusedView:M,setFocusedView:C,setValueAndGoToNextView:P}=ut({view:h,views:p,openTo:f,onChange:u,onViewChange:y,autoFocus:l}),{hasUIView:S,viewModeLookup:T}=r.useMemo((()=>p.reduce(((e,t)=>{let n;return n=null!=g[t]?"UI":"field",e.viewModeLookup[t]=n,"UI"===n&&(e.hasUIView=!0),e}),{hasUIView:!1,viewModeLookup:{}})),[g,p]),k=r.useMemo((()=>p.reduce(((e,t)=>null!=g[t]&&(e=>D.includes(e))(t)?e+1:e),0)),[g,p]),V=T[w],O=We((()=>"UI"===V)),[I,F]=r.useState("UI"===V?w:null);I!==w&&"UI"===T[w]&&F(w),He((()=>{"field"===V&&c&&(m(),setTimeout((()=>{null==i||i.current.focus(),d(w)})))}),[w]),He((()=>{if(!c)return;let e=w;"field"===V&&null!=I&&(e=I),e!==A&&"UI"===T[e]&&"UI"===T[A]&&(e=A),e!==w&&x(e),C(e,!0)}),[c]);return{hasUIView:S,shouldRestoreFocus:O,layoutProps:{views:p,view:I,onViewChange:x},renderCurrentView:()=>{if(null==I)return null;const e=g[I];return null==e?null:e((0,a.A)({},b,s,n,{views:p,timezone:v,onChange:P,view:I,onViewChange:x,focusedView:M,onFocusedViewChange:C,showViewSwitcher:k>1,timeViewsCount:k}))}}};function mt(){return"undefined"===typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}const ht=(e,t)=>{const[n,a]=r.useState(mt);if(He((()=>{const e=()=>{a(mt())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}}),[]),o=e,s=["hours","minutes","seconds"],Array.isArray(s)?s.every((e=>-1!==o.indexOf(e))):-1!==o.indexOf(s))return!1;var o,s;return"landscape"===(t||n)};(0,n(89299).f)(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const pt=e=>{let{props:t,valueManager:n,valueType:o,wrapperVariant:r,inputRef:s,additionalViewProps:i,validator:l,autoFocusView:u}=e;const c=lt({props:t,valueManager:n,valueType:o,wrapperVariant:r,validator:l}),d=dt({props:t,inputRef:s,additionalViewProps:i,autoFocusView:u,propsFromPickerValue:c.viewProps}),m=(e=>{let{props:t,propsFromPickerValue:n,propsFromPickerViews:o,wrapperVariant:r}=e;const{orientation:s}=t,i=ht(o.views,s);return{layoutProps:(0,a.A)({},o,n,{isLandscape:i,wrapperVariant:r,disabled:t.disabled,readOnly:t.readOnly})}})({props:t,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:d.layoutProps});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:d.renderCurrentView,hasUIView:d.hasUIView,shouldRestoreFocus:d.shouldRestoreFocus,layoutProps:m.layoutProps}};function ft(e){return ce("MuiPickersLayout",e)}const yt=de("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);var gt=n(80911),vt=n(17450);const bt=["onAccept","onClear","onCancel","onSetToday","actions"];function wt(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:s,actions:i}=e,l=(0,o.A)(e,bt),u=te();if(null==i||0===i.length)return null;const c=null==i?void 0:i.map((e=>{switch(e){case"clear":return(0,he.jsx)(gt.A,{onClick:n,children:u.clearButtonLabel},e);case"cancel":return(0,he.jsx)(gt.A,{onClick:r,children:u.cancelButtonLabel},e);case"accept":return(0,he.jsx)(gt.A,{onClick:t,children:u.okButtonLabel},e);case"today":return(0,he.jsx)(gt.A,{onClick:s,children:u.todayButtonLabel},e);default:return null}}));return(0,he.jsx)(vt.A,(0,a.A)({},l,{children:c}))}var xt=n(31975),At=n(41337),Dt=n(81062);const Mt=320,Ct=["items","changeImportance","isLandscape","onChange","isValid"],Pt=["getValue"];function St(e){const{items:t,changeImportance:n,onChange:r,isValid:s}=e,i=(0,o.A)(e,Ct);if(null==t||0===t.length)return null;const l=t.map((e=>{let{getValue:t}=e,a=(0,o.A)(e,Pt);const i=t({isValid:s});return{label:a.label,onClick:()=>{r(i,n,a)},disabled:!s(i)}}));return(0,he.jsx)(xt.A,(0,a.A)({dense:!0,sx:[{maxHeight:334,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:l.map((e=>(0,he.jsx)(At.Ay,{children:(0,he.jsx)(Dt.A,(0,a.A)({},e))},e.label)))}))}const Tt=e=>{var t,n;const{wrapperVariant:o,onAccept:r,onClear:s,onCancel:i,onSetToday:l,view:u,views:c,onViewChange:d,value:m,onChange:h,onSelectShortcut:p,isValid:f,isLandscape:y,disabled:g,readOnly:v,children:b,components:w,componentsProps:x,slots:A,slotProps:D}=e,M=null!=A?A:Ae(w),C=null!=D?D:x,P=(e=>{const{classes:t,isLandscape:n}=e;return se({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},ft,t)})(e),S=null!=(t=null==M?void 0:M.actionBar)?t:wt,T=Ve({elementType:S,externalSlotProps:null==C?void 0:C.actionBar,additionalProps:{onAccept:r,onClear:s,onCancel:i,onSetToday:l,actions:"desktop"===o?[]:["cancel","accept"],className:P.actionBar},ownerState:(0,a.A)({},e,{wrapperVariant:o})}),k=(0,he.jsx)(S,(0,a.A)({},T)),V=null==M?void 0:M.toolbar,O=Ve({elementType:V,externalSlotProps:null==C?void 0:C.toolbar,additionalProps:{isLandscape:y,onChange:h,value:m,view:u,onViewChange:d,views:c,disabled:g,readOnly:v,className:P.toolbar},ownerState:(0,a.A)({},e,{wrapperVariant:o})}),I=function(e){return null!==e.view}(O)&&V?(0,he.jsx)(V,(0,a.A)({},O)):null,F=b,L=null==M?void 0:M.tabs,R=u&&L?(0,he.jsx)(L,(0,a.A)({view:u,onViewChange:d,className:P.tabs},null==C?void 0:C.tabs)):null,N=null!=(n=null==M?void 0:M.shortcuts)?n:St,j=Ve({elementType:N,externalSlotProps:null==C?void 0:C.shortcuts,additionalProps:{isValid:f,isLandscape:y,onChange:p,className:P.shortcuts},ownerState:{isValid:f,isLandscape:y,onChange:p,className:P.shortcuts,wrapperVariant:o}});return{toolbar:I,content:F,tabs:R,actionBar:k,shortcuts:u&&N?(0,he.jsx)(N,(0,a.A)({},j)):null}},kt=(0,re.Ay)("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t,ownerState:n}=e;return{display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",["& .".concat(yt.toolbar)]:n.isLandscape?{gridColumn:"rtl"===t.direction?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[".".concat(yt.shortcuts)]:n.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:"rtl"===t.direction?3:1,gridRow:"2 / 3"},["& .".concat(yt.actionBar)]:{gridColumn:"1 / 4",gridRow:3}}}));kt.propTypes={as:c().elementType,ownerState:c().shape({isLandscape:c().bool.isRequired}).isRequired,sx:c().oneOfType([c().arrayOf(c().oneOfType([c().func,c().object,c().bool])),c().func,c().object])};const Vt=(0,re.Ay)("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Ot=function(e){const t=(0,l.A)({props:e,name:"MuiPickersLayout"}),{toolbar:n,content:a,tabs:o,actionBar:s,shortcuts:i}=Tt(t),{sx:u,className:c,isLandscape:d,ref:m,wrapperVariant:h}=t,p=t,f=(e=>{const{isLandscape:t,classes:n}=e;return se({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},ft,n)})(p);return(0,he.jsxs)(kt,{ref:m,sx:u,className:(0,ae.A)(c,f.root),ownerState:p,children:[d?i:n,d?n:i,(0,he.jsx)(Vt,{className:f.contentWrapper,children:"desktop"===h?(0,he.jsxs)(r.Fragment,{children:[a,o]}):(0,he.jsxs)(r.Fragment,{children:[o,a]})}),s]})},It=["props","getOpenDialogAriaText"],Ft=["ownerState"],Lt=["ownerState"];var Rt=n(31529);const Nt=(0,Rt.A)((0,he.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),jt=(0,Rt.A)((0,he.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Et=(0,Rt.A)((0,he.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),zt=(0,Rt.A)((0,he.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),Yt=((0,Rt.A)((0,he.jsxs)(r.Fragment,{children:[(0,he.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,he.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),(0,Rt.A)((0,he.jsx)("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),(0,Rt.A)((0,he.jsxs)(r.Fragment,{children:[(0,he.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,he.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),(0,Rt.A)((0,he.jsx)("path",{d:"M19 6.41 17.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"}),"Clear"));var Bt=n(86270),Ht=n(69039);const Wt=e=>{const t=_(),n=te(),o=J(),s="rtl"===(0,Ht.A)().direction,{valueManager:i,fieldValueManager:l,valueType:u,validator:c,internalProps:d,internalProps:{value:m,defaultValue:h,referenceDate:p,onChange:f,format:y,formatDensity:v="dense",selectedSections:b,onSelectedSectionsChange:w,shouldRespectLeadingZeros:x=!1,timezone:A}}=e,{timezone:D,value:M,handleValueChange:P}=st({timezone:A,value:m,defaultValue:h,onChange:f,valueManager:i}),S=r.useMemo((()=>((e,t)=>{const n=e.dateWithTimezone(void 0,t),a=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:r,longestMonth:s}=g(e,n).reduce(((t,n)=>{const a=e.getDaysInMonth(n);return a>t.maxDaysInMonth?{maxDaysInMonth:a,longestMonth:n}:t}),{maxDaysInMonth:0,longestMonth:null});return{year:n=>{let{format:a}=n;return{minimum:0,maximum:z(e,t,a)?9999:99}},month:()=>({minimum:1,maximum:e.getMonth(a)+1}),day:t=>{let{currentDate:n}=t;return{minimum:1,maximum:null!=n&&e.isValid(n)?e.getDaysInMonth(n):r,longestMonth:s}},weekDay:n=>{let{format:a,contentType:o}=n;if("digit"===o){const n=k(e,t,a).map(Number);return{minimum:Math.min(...n),maximum:Math.max(...n)}}return{minimum:1,maximum:7}},hours:t=>{let{format:a}=t;const r=e.getHours(o);return e.formatByString(e.endOfDay(n),a)!==r.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),a))}:{minimum:0,maximum:r}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}})(t,D)),[t,D]),T=r.useCallback((function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return l.getSectionsFromValue(t,e,a,s,(e=>B(t,D,n,y,e,v,x,s)))}),[l,y,n,s,x,t,v,D]),V=r.useMemo((()=>l.getValueStrFromSections(T(i.emptyValue),s)),[l,T,i.emptyValue,s]),[O,I]=r.useState((()=>{const e=T(M);H();const n={sections:e,value:M,referenceValue:i.emptyValue,tempValueStrAndroid:null},o=(e=>Math.max(...e.map((e=>{var t;return null!=(t=C[e.type])?t:1}))))(e),r=i.getInitialReferenceValue({referenceDate:p,value:M,utils:t,props:d,granularity:o,timezone:D});return(0,a.A)({},n,{referenceValue:r})})),[F,R]=ot({controlled:b,default:null,name:"useField",state:"selectedSectionIndexes"}),j=e=>{R(e),null==w||w(e),I((e=>(0,a.A)({},e,{selectedSectionQuery:null})))},E=r.useMemo((()=>{if(null==F)return null;if("all"===F)return{startIndex:0,endIndex:O.sections.length-1,shouldSelectBoundarySelectors:!0};if("number"===typeof F)return{startIndex:F,endIndex:F};if("string"===typeof F){const e=O.sections.findIndex((e=>e.type===F));return{startIndex:e,endIndex:e}}return F}),[F,O.sections]),Y=e=>{let{value:n,referenceValue:r,sections:s}=e;if(I((e=>(0,a.A)({},e,{sections:s,value:n,referenceValue:r,tempValueStrAndroid:null}))),i.areValuesEqual(t,O.value,n))return;const l={validationError:c({adapter:o,value:n,props:(0,a.A)({},d,{value:n,timezone:D})})};P(n,l)},W=(e,t)=>{const n=[...O.sections];return n[e]=(0,a.A)({},n[e],{value:t,modified:!0}),N(n,s)};return r.useEffect((()=>{const e=T(O.value);H(),I((t=>(0,a.A)({},t,{sections:e})))}),[y,t.locale]),r.useEffect((()=>{let e=!1;e=!i.areValuesEqual(t,O.value,M)||i.getTimezone(t,O.value)!==i.getTimezone(t,M),e&&I((e=>(0,a.A)({},e,{value:M,referenceValue:l.updateReferenceValue(t,M,e.referenceValue),sections:T(M)})))}),[M]),{state:O,selectedSectionIndexes:E,setSelectedSections:j,clearValue:()=>{Y({value:i.emptyValue,referenceValue:O.referenceValue,sections:T(i.emptyValue)})},clearActiveSection:()=>{if(null==E)return;const e=O.sections[E.startIndex],n=l.getActiveDateManager(t,O,e),o=n.getSections(O.sections).filter((e=>""!==e.value)).length===(""===e.value?0:1),r=W(E.startIndex,""),s=o?null:t.date(new Date("")),i=n.getNewValuesFromNewActiveDate(s);(null!=s&&!t.isValid(s))!==(null!=n.date&&!t.isValid(n.date))?Y((0,a.A)({},i,{sections:r})):I((e=>(0,a.A)({},e,i,{sections:r,tempValueStrAndroid:null})))},updateSectionValue:e=>{let{activeSection:n,newSectionValue:o,shouldGoToNextSection:r}=e;r&&E&&E.startIndex{const n=t.some((e=>"day"===e.type)),a=[],o=[];for(let i=0;i(0,a.A)({},e,d,{sections:i,tempValueStrAndroid:null})))},updateValueFromValueStr:e=>{const a=l.parseValueStr(e,O.referenceValue,((e,a)=>{const o=t.parse(e,y);if(null==o||!t.isValid(o))return null;const r=B(t,D,n,y,o,v,x,s);return U(t,D,o,r,a,!1)})),o=l.updateReferenceValue(t,a,O.referenceValue);Y({value:a,referenceValue:o,sections:T(a,O.sections)})},setTempAndroidValueStr:e=>I((t=>(0,a.A)({},t,{tempValueStrAndroid:e}))),sectionsValueBoundaries:S,placeholder:V,timezone:D}},Ut=e=>null!=e.saveQuery,Kt=e=>{let{sections:t,updateSectionValue:n,sectionsValueBoundaries:o,setTempAndroidValueStr:s,timezone:i}=e;const l=_(),[u,c]=r.useState(null),d=We((()=>c(null)));r.useEffect((()=>{var e;null!=u&&(null==(e=t[u.sectionIndex])?void 0:e.type)!==u.sectionType&&d()}),[t,u,d]),r.useEffect((()=>{if(null!=u){const e=setTimeout((()=>d()),5e3);return()=>{window.clearTimeout(e)}}return()=>{}}),[u,d]);const m=(e,n,a)=>{let{keyPressed:o,sectionIndex:r}=e;const s=o.toLowerCase(),i=t[r];if(null!=u&&(!a||a(u.value))&&u.sectionIndex===r){const e="".concat(u.value).concat(s),t=n(e,i);if(!Ut(t))return c({sectionIndex:r,value:e,sectionType:i.type}),t}const l=n(s,i);return Ut(l)&&!l.saveQuery?(d(),null):(c({sectionIndex:r,value:s,sectionType:i.type}),Ut(l)?null:l)};return{applyCharacterEditing:We((e=>{const r=t[e.sectionIndex],u=" "!==e.keyPressed&&!Number.isNaN(Number(e.keyPressed))?(e=>{const t=(e,t)=>{const n=Number("".concat(e)),a=o[t.type]({currentDate:null,format:t.format,contentType:t.contentType});if(n>a.maximum)return{saveQuery:!1};if(na.maximum||e.length===a.maximum.toString().length;return{sectionValue:I(l,0,n,a,t),shouldGoToNextSection:r}};return m(e,((e,n)=>{if("digit"===n.contentType||"digit-with-letter"===n.contentType)return t(e,n);if("month"===n.type){const o=Y(l,i,"digit","month","MM"),r=t(e,{type:n.type,format:"MM",hasLeadingZerosInFormat:o,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Ut(r))return r;const s=E(l,r.sectionValue,"MM",n.format);return(0,a.A)({},r,{sectionValue:s})}if("weekDay"===n.type){const o=t(e,n);if(Ut(o))return o;const r=k(l,i,n.format)[Number(o.sectionValue)-1];return(0,a.A)({},o,{sectionValue:r})}return{saveQuery:!1}}),(e=>!Number.isNaN(Number(e))))})(e):(e=>{const t=(e,t,n)=>{const a=t.filter((e=>e.toLowerCase().startsWith(n)));return 0===a.length?{saveQuery:!1}:{sectionValue:a[0],shouldGoToNextSection:1===a.length}},n=(e,n,o,r)=>{const s=e=>V(l,i,n.type,e);if("letter"===n.contentType)return t(n.format,s(n.format),e);if(o&&null!=r&&"letter"===T(l,o).contentType){const n=s(o),i=t(0,n,e);return Ut(i)?{saveQuery:!1}:(0,a.A)({},i,{sectionValue:r(i.sectionValue,n)})}return{saveQuery:!1}};return m(e,((e,t)=>{switch(t.type){case"month":{const a=e=>E(l,e,l.formats.month,t.format);return n(e,t,l.formats.month,a)}case"weekDay":{const a=(e,t)=>t.indexOf(e).toString();return n(e,t,l.formats.weekday,a)}case"meridiem":return n(e,t);default:return{saveQuery:!1}}}))})(e);null==u?s(null):n({activeSection:r,newSectionValue:u.sectionValue,shouldGoToNextSection:u.shouldGoToNextSection})})),resetCharacterQuery:d}},Zt=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],$t=e=>{const t=_(),{state:n,selectedSectionIndexes:s,setSelectedSections:i,clearValue:l,clearActiveSection:u,updateSectionValue:c,updateValueFromValueStr:d,setTempAndroidValueStr:m,sectionsValueBoundaries:h,placeholder:p,timezone:f}=Wt(e),{inputRef:y,internalProps:g,internalProps:{readOnly:v=!1,unstableFieldRef:b,minutesStep:w},forwardedProps:{onClick:x,onKeyDown:A,onFocus:D,onBlur:M,onMouseUp:C,onPaste:P,error:S,clearable:T,onClear:k,disabled:V},fieldValueManager:O,valueManager:I,validator:L}=e,N=(0,o.A)(e.forwardedProps,Zt),{applyCharacterEditing:j,resetCharacterQuery:E}=Kt({sections:n.sections,updateSectionValue:c,sectionsValueBoundaries:h,setTempAndroidValueStr:m,timezone:f}),z=r.useRef(null),Y=Fe(y,z),B=r.useRef(void 0),H="rtl"===(0,Ht.A)().direction,W=r.useMemo((()=>((e,t)=>{const n={};if(!t)return e.forEach(((t,a)=>{const o=0===a?null:a-1,r=a===e.length-1?null:a+1;n[a]={leftIndex:o,rightIndex:r}})),{neighbors:n,startIndex:0,endIndex:e.length-1};const a={},o={};let r=0,s=0,i=e.length-1;for(;i>=0;){s=e.findIndex(((e,t)=>{var n;return t>=r&&(null==(n=e.endSeparator)?void 0:n.includes(" "))&&" / "!==e.endSeparator})),-1===s&&(s=e.length-1);for(let e=s;e>=r;e-=1)o[e]=i,a[i]=e,i-=1;r=s+1}return e.forEach(((t,r)=>{const s=o[r],i=0===s?null:a[s-1],l=s===e.length-1?null:a[s+1];n[r]={leftIndex:i,rightIndex:l}})),{neighbors:n,startIndex:a[0],endIndex:a[e.length-1]}})(n.sections,H)),[n.sections,H]),U=()=>{var e;if(v)return void i(null);const t=null!=(e=z.current.selectionStart)?e:0;let a;a=t<=n.sections[0].startInInput||t>=n.sections[n.sections.length-1].endInInput?1:n.sections.findIndex((e=>e.startInInput-e.startSeparator.length>t));const o=-1===a?n.sections.length-1:a-1;i(o)},K=We((function(e){if(!e.isDefaultPrevented()){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{null==C||C(e),e.preventDefault()})),$=We((function(){null==D||D(...arguments);const e=z.current;window.clearTimeout(B.current),B.current=setTimeout((()=>{e&&e===z.current&&(null!=s||v||(e.value.length&&Number(e.selectionEnd)-Number(e.selectionStart)===e.value.length?i("all"):U()))}))})),G=We((function(){null==M||M(...arguments),i(null)})),q=We((e=>{if(null==P||P(e),v)return void e.preventDefault();const t=e.clipboardData.getData("text");if(s&&s.startIndex===s.endIndex){const a=n.sections[s.startIndex],o=/^[a-zA-Z]+$/.test(t),r=/^[0-9]+$/.test(t),i=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(t);if("letter"===a.contentType&&o||"digit"===a.contentType&&r||"digit-with-letter"===a.contentType&&i)return E(),c({activeSection:a,newSectionValue:t,shouldGoToNextSection:!0}),void e.preventDefault();if(o||r)return void e.preventDefault()}e.preventDefault(),E(),d(t)})),Q=We((e=>{if(v)return;const t=e.target.value;if(""===t)return E(),void l();const a=e.nativeEvent.data,o=a&&a.length>1,r=o?a:t,i=R(r);if(null==s||o)return void d(o?a:i);let c;if(0===s.startIndex&&s.endIndex===n.sections.length-1&&1===i.length)c=i;else{const e=R(O.getValueStrFromSections(n.sections,H));let t=-1,a=-1;for(let n=0;no.end)return;const r=i.length-e.length+o.end-R(o.endSeparator||"").length;c=i.slice(o.start+R(o.startSeparator||"").length,r)}0!==c.length?j({keyPressed:c,sectionIndex:s.startIndex}):navigator.userAgent.toLowerCase().indexOf("android")>-1?m(r):(E(),u())})),X=We((e=>{switch(null==A||A(e),!0){case"a"===e.key&&(e.ctrlKey||e.metaKey):e.preventDefault(),i("all");break;case"ArrowRight"===e.key:if(e.preventDefault(),null==s)i(W.startIndex);else if(s.startIndex!==s.endIndex)i(s.endIndex);else{const e=W.neighbors[s.startIndex].rightIndex;null!==e&&i(e)}break;case"ArrowLeft"===e.key:if(e.preventDefault(),null==s)i(W.endIndex);else if(s.startIndex!==s.endIndex)i(s.startIndex);else{const e=W.neighbors[s.startIndex].leftIndex;null!==e&&i(e)}break;case"Delete"===e.key:if(e.preventDefault(),v)break;null==s||0===s.startIndex&&s.endIndex===n.sections.length-1?l():u(),E();break;case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(e.key):{if(e.preventDefault(),v||null==s)break;const a=n.sections[s.startIndex],o=O.getActiveDateManager(t,n,a),r=F(t,f,a,e.key,h,o.date,{minutesStep:w});c({activeSection:a,newSectionValue:r,shouldGoToNextSection:!1});break}}}));He((()=>{if(!z.current)return;if(null==s)return void(z.current.scrollLeft&&(z.current.scrollLeft=0));const e=n.sections[s.startIndex],t=n.sections[s.endIndex];let a=e.startInInput,o=t.endInInput;if(s.shouldSelectBoundarySelectors&&(a-=e.startSeparator.length,o+=t.endSeparator.length),a!==z.current.selectionStart||o!==z.current.selectionEnd){const e=z.current.scrollTop;z.current===Ze(document)&&z.current.setSelectionRange(a,o),z.current.scrollTop=e}}));const J=rt((0,a.A)({},g,{value:n.value,timezone:f}),L,I.isSameError,I.defaultErrorState),ee=r.useMemo((()=>void 0!==S?S:I.hasError(J)),[I,J,S]);r.useEffect((()=>{ee||s||E()}),[n.referenceValue,s,ee]),r.useEffect((()=>(z.current&&z.current===document.activeElement&&i("all"),()=>window.clearTimeout(B.current))),[]),r.useEffect((()=>{null!=n.tempValueStrAndroid&&null!=s&&(E(),u())}),[n.tempValueStrAndroid]);const te=r.useMemo((()=>{var e;return null!=(e=n.tempValueStrAndroid)?e:O.getValueStrFromSections(n.sections,H)}),[n.sections,O,n.tempValueStrAndroid,H]),ne=r.useMemo((()=>null==s||"letter"===n.sections[s.startIndex].contentType?"text":"numeric"),[s,n.sections]),ae=z.current&&z.current===Ze(document),oe=I.areValuesEqual(t,n.value,I.emptyValue),re=!ae&&oe;r.useImperativeHandle(b,(()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var e,t,a;const o=null!=(e=z.current.selectionStart)?e:0,r=null!=(t=z.current.selectionEnd)?t:0,s=!(null==(a=z.current)||!a.readOnly);if(0===o&&0===r||s)return null;const i=o<=n.sections[0].startInInput?1:n.sections.findIndex((e=>e.startInInput-e.startSeparator.length>o));return-1===i?n.sections.length-1:i-1},setSelectedSections:e=>i(e)})));const se=We((function(e){var t;e.preventDefault();for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;oXt.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{}),_t=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],en=e=>{let{props:t,inputRef:n}=e;const o=(e=>{var t,n,o;const r=_(),s=ee();return(0,a.A)({},e,{disablePast:null!=(t=e.disablePast)&&t,disableFuture:null!=(n=e.disableFuture)&&n,format:null!=(o=e.format)?o:r.formats.keyboardDate,minDate:y(r,e.minDate,s.minDate),maxDate:y(r,e.maxDate,s.maxDate)})})(t),{forwardedProps:r,internalProps:s}=((e,t)=>{const n=(0,a.A)({},e),o={},r=e=>{n.hasOwnProperty(e)&&(o[e]=n[e],delete n[e])};return _t.forEach(r),"date"===t?Gt.forEach(r):"time"===t?qt.forEach(r):"date-time"===t&&(Gt.forEach(r),qt.forEach(r),Qt.forEach(r)),{forwardedProps:n,internalProps:o}})(o,"date");return $t({inputRef:n,forwardedProps:r,internalProps:s,valueManager:Z,fieldValueManager:$,validator:Me,valueType:"date"})},tn=["ownerState"],nn=["components","componentsProps","slots","slotProps","InputProps","inputProps"],an=["inputRef"],on=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],rn=r.forwardRef((function(e,t){var n,s,i;const u=(0,l.A)({props:e,name:"MuiDateField"}),{components:c,componentsProps:d,slots:m,slotProps:h,InputProps:p,inputProps:f}=u,y=(0,o.A)(u,nn),g=u,v=null!=(n=null!=(s=null==m?void 0:m.textField)?s:null==c?void 0:c.TextField)?n:Bt.A,b=Ve({elementType:v,externalSlotProps:null!=(i=null==h?void 0:h.textField)?i:null==d?void 0:d.textField,externalForwardedProps:y,ownerState:g}),{inputRef:w}=b,x=(0,o.A)(b,an);x.inputProps=(0,a.A)({},f,x.inputProps),x.InputProps=(0,a.A)({},p,x.InputProps);const A=en({props:x,inputRef:w}),{ref:D,onPaste:M,onKeyDown:C,inputMode:P,readOnly:S,clearable:T,onClear:k}=A,V=(0,o.A)(A,on),{InputProps:O,fieldProps:I}=(e=>{let{clearable:t,fieldProps:n,InputProps:s,onClear:i,slots:l,slotProps:u,components:c,componentsProps:d}=e;var m,h,p,f,y,g;const v=te(),b=null!=(m=null!=(h=null==l?void 0:l.clearButton)?h:null==c?void 0:c.ClearButton)?m:Ie.A,w=Ve({elementType:b,externalSlotProps:null!=(p=null==u?void 0:u.clearButton)?p:null==d?void 0:d.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:v.fieldClearLabel}}),x=(0,o.A)(w,tn),A=null!=(f=null!=(y=null==l?void 0:l.clearIcon)?y:null==c?void 0:c.ClearIcon)?f:Yt,D=Ve({elementType:A,externalSlotProps:null!=(g=null==u?void 0:u.clearIcon)?g:null==d?void 0:d.clearIcon,ownerState:{}});return{InputProps:(0,a.A)({},s,{endAdornment:(0,he.jsxs)(r.Fragment,{children:[t&&(0,he.jsx)(Oe.A,{position:"end",sx:{marginRight:null!=s&&s.endAdornment?-1:-1.5},children:(0,he.jsx)(b,(0,a.A)({},x,{onClick:i,children:(0,he.jsx)(A,(0,a.A)({fontSize:"small"},D))}))}),null==s?void 0:s.endAdornment]})}),fieldProps:(0,a.A)({},n,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(n.sx)?n.sx:[n.sx]]})}})({onClear:k,clearable:T,fieldProps:V,InputProps:V.InputProps,slots:m,slotProps:h,components:c,componentsProps:d});return(0,he.jsx)(v,(0,a.A)({ref:t},I,{InputProps:(0,a.A)({},O,{readOnly:S}),inputProps:(0,a.A)({},V.inputProps,{inputMode:P,onPaste:M,onKeyDown:C,ref:D})}))})),sn=e=>{let{shouldDisableDate:t,shouldDisableMonth:n,shouldDisableYear:a,minDate:o,maxDate:s,disableFuture:i,disablePast:l,timezone:u}=e;const c=J();return r.useCallback((e=>null!==Me({adapter:c,value:e,props:{shouldDisableDate:t,shouldDisableMonth:n,shouldDisableYear:a,minDate:o,maxDate:s,disableFuture:i,disablePast:l,timezone:u}})),[c,t,n,a,o,s,i,l,u])},ln=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:o,disableFuture:s,disablePast:i,disableSwitchToMonthOnDayFocus:l=!1,maxDate:u,minDate:c,onMonthChange:d,reduceAnimations:m,shouldDisableDate:h,timezone:p}=e,f=_(),y=r.useRef(((e,t,n)=>(o,r)=>{switch(r.type){case"changeMonth":return(0,a.A)({},o,{slideDirection:r.direction,currentMonth:r.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return(0,a.A)({},o,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(null!=o.focusedDay&&null!=r.focusedDay&&n.isSameDay(r.focusedDay,o.focusedDay))return o;const s=null!=r.focusedDay&&!t&&!n.isSameMonth(o.currentMonth,r.focusedDay);return(0,a.A)({},o,{focusedDay:r.focusedDay,isMonthSwitchingAnimating:s&&!e&&!r.withoutMonthSwitchingAnimation,currentMonth:s?n.startOfMonth(r.focusedDay):o.currentMonth,slideDirection:null!=r.focusedDay&&n.isAfterDay(r.focusedDay,o.currentMonth)?"left":"right"})}default:throw new Error("missing support")}})(Boolean(m),l,f)).current,g=r.useMemo((()=>{let a=null;return n?a=n:o&&(a=f.startOfMonth(o)),Z.getInitialReferenceValue({value:t,utils:f,timezone:p,props:e,referenceDate:a,granularity:C.day})}),[]),[v,b]=r.useReducer(y,{isMonthSwitchingAnimating:!1,focusedDay:g,currentMonth:f.startOfMonth(g),slideDirection:"left"}),w=r.useCallback((e=>{b((0,a.A)({type:"changeMonth"},e)),d&&d(e.newMonth)}),[d]),x=r.useCallback((e=>{const t=e;f.isSameMonth(t,v.currentMonth)||w({newMonth:f.startOfMonth(t),direction:f.isAfterDay(t,v.currentMonth)?"left":"right"})}),[v.currentMonth,w,f]),A=sn({shouldDisableDate:h,minDate:c,maxDate:u,disableFuture:s,disablePast:i,timezone:p}),D=r.useCallback((()=>{b({type:"finishMonthSwitchingAnimation"})}),[]),M=We(((e,t)=>{A(e)||b({type:"changeFocusedDay",focusedDay:e,withoutMonthSwitchingAnimation:t})}));return{referenceDate:g,calendarState:v,changeMonth:x,changeFocusedDay:M,isDateDisabled:A,onMonthSwitchingAnimationEnd:D,handleChangeMonth:w}};var un=n(198);const cn=e=>ce("MuiPickersFadeTransitionGroup",e),dn=(de("MuiPickersFadeTransitionGroup",["root"]),(0,re.Ay)(un.A,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"}));function mn(e){const t=(0,l.A)({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:a,reduceAnimations:o,transKey:r}=t,s=(e=>{const{classes:t}=e;return se({root:["root"]},cn,t)})(t),i=(0,Ht.A)();return o?n:(0,he.jsx)(dn,{className:(0,ae.A)(s.root,a),children:(0,he.jsx)(Ee.A,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:i.transitions.duration.enteringScreen,enter:i.transitions.duration.enteringScreen,exit:0},children:n},r)})}var hn=n(61949),pn=n(40835);function fn(e){return ce("MuiPickersDay",e)}const yn=de("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),gn=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],vn=e=>{let{theme:t,ownerState:n}=e;return(0,a.A)({},t.typography.caption,{width:36,height:36,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:t.transitions.create("background-color",{duration:t.transitions.duration.short}),color:(t.vars||t).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,pn.X4)(t.palette.primary.main,t.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.focusOpacity,")"):(0,pn.X4)(t.palette.primary.main,t.palette.action.focusOpacity),["&.".concat(yn.selected)]:{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},["&.".concat(yn.selected)]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,fontWeight:t.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},["&.".concat(yn.disabled,":not(.").concat(yn.selected,")")]:{color:(t.vars||t).palette.text.disabled},["&.".concat(yn.disabled,"&.").concat(yn.selected)]:{opacity:.6}},!n.disableMargin&&{margin:"0 ".concat(2,"px")},n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&{color:(t.vars||t).palette.text.secondary},!n.disableHighlightToday&&n.today&&{["&:not(.".concat(yn.selected,")")]:{border:"1px solid ".concat((t.vars||t).palette.text.secondary)}})},bn=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},wn=(0,re.Ay)(hn.A,{name:"MuiPickersDay",slot:"Root",overridesResolver:bn})(vn),xn=(0,re.Ay)("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:bn})((e=>{let{theme:t,ownerState:n}=e;return(0,a.A)({},vn({theme:t,ownerState:n}),{opacity:0,pointerEvents:"none"})})),An=()=>{},Dn=r.forwardRef((function(e,t){const n=(0,l.A)({props:e,name:"MuiPickersDay"}),{autoFocus:s=!1,className:i,day:u,disabled:c=!1,disableHighlightToday:d=!1,disableMargin:m=!1,isAnimating:h,onClick:p,onDaySelect:f,onFocus:y=An,onBlur:g=An,onKeyDown:v=An,onMouseDown:b=An,onMouseEnter:w=An,outsideCurrentMonth:x,selected:A=!1,showDaysOutsideCurrentMonth:D=!1,children:M,today:C=!1}=n,P=(0,o.A)(n,gn),S=(0,a.A)({},n,{autoFocus:s,disabled:c,disableHighlightToday:d,disableMargin:m,selected:A,showDaysOutsideCurrentMonth:D,today:C}),T=(e=>{const{selected:t,disableMargin:n,disableHighlightToday:a,today:o,disabled:r,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:i,classes:l}=e,u=s&&!i;return se({root:["root",t&&!u&&"selected",r&&"disabled",!n&&"dayWithMargin",!a&&o&&"today",s&&i&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},fn,l)})(S),k=_(),V=r.useRef(null),O=Fe(V,t);He((()=>{!s||c||h||x||V.current.focus()}),[s,c,h,x]);return x&&!D?(0,he.jsx)(xn,{className:(0,ae.A)(T.root,T.hiddenDaySpacingFiller,i),ownerState:S,role:P.role}):(0,he.jsx)(wn,(0,a.A)({className:(0,ae.A)(T.root,i),ref:O,centerRipple:!0,disabled:c,tabIndex:A?0:-1,onKeyDown:e=>v(e,u),onFocus:e=>y(e,u),onBlur:e=>g(e,u),onMouseEnter:e=>w(e,u),onClick:e=>{c||f(u),x&&e.currentTarget.focus(),p&&p(e)},onMouseDown:e=>{b(e),x&&e.preventDefault()}},P,{ownerState:S,children:M||k.format(u,"dayOfMonth")}))})),Mn=r.memo(Dn);var Cn=n(2209);function Pn(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Sn=n(14794),Tn=n(19767),kn=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return a=t,void((n=e).classList?n.classList.remove(a):"string"===typeof n.className?n.className=Pn(n.className,a):n.setAttribute("class",Pn(n.className&&n.className.baseVal||"",a)));var n,a}))},Vn=function(e){function t(){for(var t,n=arguments.length,a=new Array(n),o=0;oce("MuiPickersSlideTransition",e),Fn=de("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Ln=["children","className","reduceAnimations","slideDirection","transKey","classes"],Rn=(0,re.Ay)(un.A,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[".".concat(Fn["slideEnter-left"])]:t["slideEnter-left"]},{[".".concat(Fn["slideEnter-right"])]:t["slideEnter-right"]},{[".".concat(Fn.slideEnterActive)]:t.slideEnterActive},{[".".concat(Fn.slideExit)]:t.slideExit},{[".".concat(Fn["slideExitActiveLeft-left"])]:t["slideExitActiveLeft-left"]},{[".".concat(Fn["slideExitActiveLeft-right"])]:t["slideExitActiveLeft-right"]}]})((e=>{let{theme:t}=e;const n=t.transitions.create("transform",{duration:t.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},["& .".concat(Fn["slideEnter-left"])]:{willChange:"transform",transform:"translate(100%)",zIndex:1},["& .".concat(Fn["slideEnter-right"])]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},["& .".concat(Fn.slideEnterActive)]:{transform:"translate(0%)",transition:n},["& .".concat(Fn.slideExit)]:{transform:"translate(0%)"},["& .".concat(Fn["slideExitActiveLeft-left"])]:{willChange:"transform",transform:"translate(-100%)",transition:n,zIndex:0},["& .".concat(Fn["slideExitActiveLeft-right"])]:{willChange:"transform",transform:"translate(100%)",transition:n,zIndex:0}}}));const Nn=e=>ce("MuiDayCalendar",e),jn=(de("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]),["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"]),En=["ownerState"],zn=(0,re.Ay)("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Yn=(0,re.Ay)("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Bn=(0,re.Ay)(oe.A,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})((e=>{let{theme:t}=e;return{width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(t.vars||t).palette.text.secondary}})),Hn=(0,re.Ay)(oe.A,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})((e=>{let{theme:t}=e;return{width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:t.palette.text.disabled}})),Wn=(0,re.Ay)(oe.A,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})((e=>{let{theme:t}=e;return(0,a.A)({},t.typography.caption,{width:36,height:36,padding:0,margin:"0 ".concat(2,"px"),color:t.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})})),Un=(0,re.Ay)("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:240}),Kn=(0,re.Ay)((function(e){const t=(0,l.A)({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:s,reduceAnimations:i,transKey:u}=t,c=(0,o.A)(t,Ln),d=(e=>{const{classes:t,slideDirection:n}=e;return se({root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:["slideEnter-".concat(n)],exitActive:["slideExitActiveLeft-".concat(n)]},In,t)})(t),m=(0,Ht.A)();if(i)return(0,he.jsx)("div",{className:(0,ae.A)(d.root,s),children:n});const h={exit:d.exit,enterActive:d.enterActive,enter:d.enter,exitActive:d.exitActive};return(0,he.jsx)(Rn,{className:(0,ae.A)(d.root,s),childFactory:e=>r.cloneElement(e,{classNames:h}),role:"presentation",children:(0,he.jsx)(On,(0,a.A)({mountOnEnter:!0,unmountOnExit:!0,timeout:m.transitions.duration.complex,classNames:h},c,{children:n}),u)})}),{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:240}),Zn=(0,re.Ay)("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),$n=(0,re.Ay)("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:"".concat(2,"px 0"),display:"flex",justifyContent:"center"});function Gn(e){var t,n,s;let{parentProps:i,day:l,focusableDay:u,selectedDays:c,isDateDisabled:d,currentMonthNumber:m,isViewFocused:h}=e,p=(0,o.A)(e,jn);const{disabled:f,disableHighlightToday:y,isMonthSwitchingAnimating:g,showDaysOutsideCurrentMonth:v,components:b,componentsProps:w,slots:x,slotProps:A,timezone:D}=i,M=_(),C=ne(D),P=null!==u&&M.isSameDay(l,u),S=c.some((e=>M.isSameDay(e,l))),T=M.isSameDay(l,C),k=null!=(t=null!=(n=null==x?void 0:x.day)?n:null==b?void 0:b.Day)?t:Mn,V=Ve({elementType:k,externalSlotProps:null!=(s=null==A?void 0:A.day)?s:null==w?void 0:w.day,additionalProps:(0,a.A)({disableHighlightToday:y,showDaysOutsideCurrentMonth:v,role:"gridcell",isAnimating:g,"data-timestamp":M.toJsDate(l).valueOf()},p),ownerState:(0,a.A)({},i,{day:l,selected:S})}),O=(0,o.A)(V,En),I=r.useMemo((()=>f||d(l)),[f,d,l]),F=r.useMemo((()=>M.getMonth(l)!==m),[M,l,m]),L=r.useMemo((()=>{const e=M.startOfMonth(M.setMonth(l,m));return v?M.isSameDay(l,M.startOfWeek(e)):M.isSameDay(l,e)}),[m,l,v,M]),R=r.useMemo((()=>{const e=M.endOfMonth(M.setMonth(l,m));return v?M.isSameDay(l,M.endOfWeek(e)):M.isSameDay(l,e)}),[m,l,v,M]);return(0,he.jsx)(k,(0,a.A)({},O,{day:l,disabled:I,autoFocus:h&&P,today:T,outsideCurrentMonth:F,isFirstVisibleCell:L,isLastVisibleCell:R,selected:S,tabIndex:P?0:-1,"aria-selected":S,"aria-current":T?"date":void 0}))}function qn(e){const t=(0,l.A)({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:o,currentMonth:s,selectedDays:i,focusedDay:u,loading:c,onSelectedDaysChange:d,onMonthSwitchingAnimationEnd:m,readOnly:h,reduceAnimations:p,renderLoading:y=()=>(0,he.jsx)("span",{children:"..."}),slideDirection:g,TransitionProps:v,disablePast:b,disableFuture:w,minDate:x,maxDate:D,shouldDisableDate:M,shouldDisableMonth:C,shouldDisableYear:P,dayOfWeekFormatter:S,hasFocus:T,onFocusedViewChange:k,gridLabelId:V,displayWeekNumber:O,fixedWeekNumber:I,autoFocus:F,timezone:L}=t,R=ne(L),N=_(),j=(e=>{const{classes:t}=e;return se({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Nn,t)})(t),E="rtl"===(0,Ht.A)().direction,z=S||((e,t)=>N.format(t,"weekdayShort").charAt(0).toUpperCase()),Y=sn({shouldDisableDate:M,shouldDisableMonth:C,shouldDisableYear:P,minDate:x,maxDate:D,disablePast:b,disableFuture:w,timezone:L}),B=te(),[H,W]=ot({name:"DayCalendar",state:"hasFocus",controlled:T,default:null!=F&&F}),[U,K]=r.useState((()=>u||R)),Z=We((e=>{h||d(e)})),$=e=>{Y(e)||(n(e),K(e),null==k||k(!0),W(!0))},G=We(((e,t)=>{switch(e.key){case"ArrowUp":$(N.addDays(t,-7)),e.preventDefault();break;case"ArrowDown":$(N.addDays(t,7)),e.preventDefault();break;case"ArrowLeft":{const n=N.addDays(t,E?1:-1),a=N.addMonths(t,E?1:-1),o=f({utils:N,date:n,minDate:E?n:N.startOfMonth(a),maxDate:E?N.endOfMonth(a):n,isDateDisabled:Y,timezone:L});$(o||n),e.preventDefault();break}case"ArrowRight":{const n=N.addDays(t,E?-1:1),a=N.addMonths(t,E?-1:1),o=f({utils:N,date:n,minDate:E?N.startOfMonth(a):n,maxDate:E?n:N.endOfMonth(a),isDateDisabled:Y,timezone:L});$(o||n),e.preventDefault();break}case"Home":$(N.startOfWeek(t)),e.preventDefault();break;case"End":$(N.endOfWeek(t)),e.preventDefault();break;case"PageUp":$(N.addMonths(t,1)),e.preventDefault();break;case"PageDown":$(N.addMonths(t,-1)),e.preventDefault()}})),q=We(((e,t)=>$(t))),Q=We(((e,t)=>{H&&N.isSameDay(U,t)&&(null==k||k(!1))})),X=N.getMonth(s),J=r.useMemo((()=>i.filter((e=>!!e)).map((e=>N.startOfDay(e)))),[N,i]),ee=X,oe=r.useMemo((()=>r.createRef()),[ee]),re=N.startOfWeek(R),ie=r.useMemo((()=>{const e=N.startOfMonth(s),t=N.endOfMonth(s);return Y(U)||N.isAfterDay(U,t)||N.isBeforeDay(U,e)?f({utils:N,date:U,minDate:e,maxDate:t,disablePast:b,disableFuture:w,isDateDisabled:Y,timezone:L}):U}),[s,w,b,U,Y,N,L]),le=r.useMemo((()=>{const e=N.setTimezone(s,L),t=N.getWeekArray(e);let n=N.addMonths(e,1);for(;I&&t.length{t.length{var n;const a=N.format(e,"weekdayShort");return(0,he.jsx)(Bn,{variant:"caption",role:"columnheader","aria-label":N.format(N.addDays(re,t),"weekday"),className:j.weekDayLabel,children:null!=(n=null==z?void 0:z(a,e))?n:a},a+t.toString())}))]}),c?(0,he.jsx)(Un,{className:j.loadingContainer,children:y()}):(0,he.jsx)(Kn,(0,a.A)({transKey:ee,onExited:m,reduceAnimations:p,slideDirection:g,className:(0,ae.A)(o,j.slideTransition)},v,{nodeRef:oe,children:(0,he.jsx)(Zn,{ref:oe,role:"rowgroup",className:j.monthContainer,children:le.map(((e,n)=>(0,he.jsxs)($n,{role:"row",className:j.weekContainer,"aria-rowindex":n+1,children:[O&&(0,he.jsx)(Wn,{className:j.weekNumber,role:"rowheader","aria-label":B.calendarWeekNumberAriaLabelText(N.getWeekNumber(e[0])),children:B.calendarWeekNumberText(N.getWeekNumber(e[0]))}),e.map(((e,n)=>(0,he.jsx)(Gn,{parentProps:t,day:e,selectedDays:J,focusableDay:ie,onKeyDown:G,onFocus:q,onBlur:Q,onDaySelect:Z,isDateDisabled:Y,currentMonthNumber:X,isViewFocused:H,"aria-colindex":n+1},e.toString())))]},"week-".concat(e[0]))))})}))]})}var Qn=n(6958);function Xn(e){return ce("MuiPickersMonth",e)}const Jn=de("MuiPickersMonth",["root","monthButton","disabled","selected"]),_n=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],ea=(0,re.Ay)("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})((e=>{let{ownerState:t}=e;return{flexBasis:3===t.monthsPerRow?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"}})),ta=(0,re.Ay)("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{["&.".concat(Jn.disabled)]:t.disabled},{["&.".concat(Jn.selected)]:t.selected}]})((e=>{let{theme:t}=e;return(0,a.A)({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,pn.X4)(t.palette.action.active,t.palette.action.hoverOpacity)},"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,pn.X4)(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},["&.".concat(Jn.disabled)]:{color:(t.vars||t).palette.text.secondary},["&.".concat(Jn.selected)]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})})),na=r.memo((function(e){const t=(0,l.A)({props:e,name:"MuiPickersMonth"}),{autoFocus:n,children:s,disabled:i,selected:u,value:c,tabIndex:d,onClick:m,onKeyDown:h,onFocus:p,onBlur:f,"aria-current":y,"aria-label":g}=t,v=(0,o.A)(t,_n),b=r.useRef(null),w=(e=>{const{disabled:t,selected:n,classes:a}=e;return se({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},Xn,a)})(t);return He((()=>{var e;n&&(null==(e=b.current)||e.focus())}),[n]),(0,he.jsx)(ea,(0,a.A)({className:w.root,ownerState:t},v,{children:(0,he.jsx)(ta,{ref:b,disabled:i,type:"button",role:"radio",tabIndex:i?-1:d,"aria-current":y,"aria-checked":u,"aria-label":g,onClick:e=>m(e,c),onKeyDown:e=>h(e,c),onFocus:e=>p(e,c),onBlur:e=>f(e,c),className:w.monthButton,ownerState:t,children:s})}))}));function aa(e){return ce("MuiMonthCalendar",e)}de("MuiMonthCalendar",["root"]);const oa=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"];const ra=(0,re.Ay)("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Mt,boxSizing:"border-box"}),sa=r.forwardRef((function(e,t){const n=function(e,t){const n=_(),o=ee(),r=(0,l.A)({props:e,name:t});return(0,a.A)({disableFuture:!1,disablePast:!1},r,{minDate:y(n,r.minDate,o.minDate),maxDate:y(n,r.maxDate,o.maxDate)})}(e,"MuiMonthCalendar"),{className:s,value:i,defaultValue:u,referenceDate:c,disabled:d,disableFuture:m,disablePast:h,maxDate:p,minDate:f,onChange:v,shouldDisableMonth:b,readOnly:w,disableHighlightToday:x,autoFocus:A=!1,onMonthFocus:D,hasFocus:M,onFocusedViewChange:P,monthsPerRow:S=3,timezone:T,gridLabelId:k}=n,V=(0,o.A)(n,oa),{value:O,handleValueChange:I,timezone:F}=it({name:"MonthCalendar",timezone:T,value:i,defaultValue:u,onChange:v,valueManager:Z}),L=ne(F),R=(0,Qn.A)(),N=_(),j=r.useMemo((()=>Z.getInitialReferenceValue({value:O,utils:N,props:n,timezone:F,referenceDate:c,granularity:C.month})),[]),E=n,z=(e=>{const{classes:t}=e;return se({root:["root"]},aa,t)})(E),Y=r.useMemo((()=>N.getMonth(L)),[N,L]),B=r.useMemo((()=>null!=O?N.getMonth(O):x?null:N.getMonth(j)),[O,N,x,j]),[H,W]=r.useState((()=>B||Y)),[U,K]=ot({name:"MonthCalendar",state:"hasFocus",controlled:M,default:null!=A&&A}),$=We((e=>{K(e),P&&P(e)})),G=r.useCallback((e=>{const t=N.startOfMonth(h&&N.isAfter(L,f)?L:f),n=N.startOfMonth(m&&N.isBefore(L,p)?L:p),a=N.startOfMonth(e);return!!N.isBefore(a,t)||(!!N.isAfter(a,n)||!!b&&b(a))}),[m,h,p,f,L,b,N]),q=We(((e,t)=>{if(w)return;const n=N.setMonth(null!=O?O:j,t);I(n)})),Q=We((e=>{G(N.setMonth(null!=O?O:j,e))||(W(e),$(!0),D&&D(e))}));r.useEffect((()=>{W((e=>null!==B&&e!==B?B:e))}),[B]);const X=We(((e,t)=>{const n=12;switch(e.key){case"ArrowUp":Q((n+t-3)%n),e.preventDefault();break;case"ArrowDown":Q((n+t+3)%n),e.preventDefault();break;case"ArrowLeft":Q((n+t+("ltr"===R.direction?-1:1))%n),e.preventDefault();break;case"ArrowRight":Q((n+t+("ltr"===R.direction?1:-1))%n),e.preventDefault()}})),J=We(((e,t)=>{Q(t)})),te=We(((e,t)=>{H===t&&$(!1)}));return(0,he.jsx)(ra,(0,a.A)({ref:t,className:(0,ae.A)(z.root,s),ownerState:E,role:"radiogroup","aria-labelledby":k},V,{children:g(N,null!=O?O:j).map((e=>{const t=N.getMonth(e),n=N.format(e,"monthShort"),a=N.format(e,"month"),o=t===B,r=d||G(e);return(0,he.jsx)(na,{selected:o,value:t,onClick:q,onKeyDown:X,autoFocus:U&&t===H,disabled:r,tabIndex:t===H?0:-1,onFocus:J,onBlur:te,"aria-current":Y===t?"date":void 0,"aria-label":a,monthsPerRow:S,children:n},n)}))}))}));function ia(e){return ce("MuiPickersYear",e)}const la=de("MuiPickersYear",["root","yearButton","selected","disabled"]),ua=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],ca=(0,re.Ay)("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})((e=>{let{ownerState:t}=e;return{flexBasis:3===t.yearsPerRow?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"}})),da=(0,re.Ay)("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{["&.".concat(la.disabled)]:t.disabled},{["&.".concat(la.selected)]:t.selected}]})((e=>{let{theme:t}=e;return(0,a.A)({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.focusOpacity,")"):(0,pn.X4)(t.palette.action.active,t.palette.action.focusOpacity)},"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,pn.X4)(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},["&.".concat(la.disabled)]:{color:(t.vars||t).palette.text.secondary},["&.".concat(la.selected)]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})})),ma=r.memo((function(e){const t=(0,l.A)({props:e,name:"MuiPickersYear"}),{autoFocus:n,className:s,children:i,disabled:u,selected:c,value:d,tabIndex:m,onClick:h,onKeyDown:p,onFocus:f,onBlur:y,"aria-current":g}=t,v=(0,o.A)(t,ua),b=r.useRef(null),w=(e=>{const{disabled:t,selected:n,classes:a}=e;return se({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},ia,a)})(t);return r.useEffect((()=>{n&&b.current.focus()}),[n]),(0,he.jsx)(ca,(0,a.A)({className:(0,ae.A)(w.root,s),ownerState:t},v,{children:(0,he.jsx)(da,{ref:b,disabled:u,type:"button",role:"radio",tabIndex:u?-1:m,"aria-current":g,"aria-checked":c,onClick:e=>h(e,d),onKeyDown:e=>p(e,d),onFocus:e=>f(e,d),onBlur:e=>y(e,d),className:w.yearButton,ownerState:t,children:i})}))}));function ha(e){return ce("MuiYearCalendar",e)}de("MuiYearCalendar",["root"]);const pa=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"];const fa=(0,re.Ay)("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Mt,maxHeight:280,boxSizing:"border-box",position:"relative"}),ya=r.forwardRef((function(e,t){const n=function(e,t){var n;const o=_(),r=ee(),s=(0,l.A)({props:e,name:t});return(0,a.A)({disablePast:!1,disableFuture:!1},s,{yearsPerRow:null!=(n=s.yearsPerRow)?n:3,minDate:y(o,s.minDate,r.minDate),maxDate:y(o,s.maxDate,r.maxDate)})}(e,"MuiYearCalendar"),{autoFocus:s,className:i,value:u,defaultValue:c,referenceDate:d,disabled:m,disableFuture:h,disablePast:p,maxDate:f,minDate:g,onChange:v,readOnly:b,shouldDisableYear:w,disableHighlightToday:x,onYearFocus:A,hasFocus:D,onFocusedViewChange:M,yearsPerRow:P,timezone:S,gridLabelId:T}=n,k=(0,o.A)(n,pa),{value:V,handleValueChange:O,timezone:I}=it({name:"YearCalendar",timezone:S,value:u,defaultValue:c,onChange:v,valueManager:Z}),F=ne(I),L=(0,Qn.A)(),R=_(),N=r.useMemo((()=>Z.getInitialReferenceValue({value:V,utils:R,props:n,timezone:I,referenceDate:d,granularity:C.year})),[]),j=n,E=(e=>{const{classes:t}=e;return se({root:["root"]},ha,t)})(j),z=r.useMemo((()=>R.getYear(F)),[R,F]),Y=r.useMemo((()=>null!=V?R.getYear(V):x?null:R.getYear(N)),[V,R,x,N]),[B,H]=r.useState((()=>Y||z)),[W,U]=ot({name:"YearCalendar",state:"hasFocus",controlled:D,default:null!=s&&s}),K=We((e=>{U(e),M&&M(e)})),$=r.useCallback((e=>{if(p&&R.isBeforeYear(e,F))return!0;if(h&&R.isAfterYear(e,F))return!0;if(g&&R.isBeforeYear(e,g))return!0;if(f&&R.isAfterYear(e,f))return!0;if(!w)return!1;const t=R.startOfYear(e);return w(t)}),[h,p,f,g,F,w,R]),G=We(((e,t)=>{if(b)return;const n=R.setYear(null!=V?V:N,t);O(n)})),q=We((e=>{$(R.setYear(null!=V?V:N,e))||(H(e),K(!0),null==A||A(e))}));r.useEffect((()=>{H((e=>null!==Y&&e!==Y?Y:e))}),[Y]);const Q=We(((e,t)=>{switch(e.key){case"ArrowUp":q(t-P),e.preventDefault();break;case"ArrowDown":q(t+P),e.preventDefault();break;case"ArrowLeft":q(t+("ltr"===L.direction?-1:1)),e.preventDefault();break;case"ArrowRight":q(t+("ltr"===L.direction?1:-1)),e.preventDefault()}})),X=We(((e,t)=>{q(t)})),J=We(((e,t)=>{B===t&&K(!1)})),te=r.useRef(null),oe=Fe(t,te);return r.useEffect((()=>{if(s||null===te.current)return;const e=te.current.querySelector('[tabindex="0"]');if(!e)return;const t=e.offsetHeight,n=e.offsetTop,a=te.current.clientHeight,o=te.current.scrollTop,r=n+t;t>a||n{const t=R.getYear(e),n=t===Y,a=m||$(e);return(0,he.jsx)(ma,{selected:n,value:t,onClick:G,onKeyDown:Q,autoFocus:W&&t===B,disabled:a,tabIndex:t===B?0:-1,onFocus:X,onBlur:J,"aria-current":z===t?"date":void 0,yearsPerRow:P,children:R.format(e,"year")},R.format(e,"year"))}))}))}));function ga(e){return ce("MuiPickersArrowSwitcher",e)}de("MuiPickersArrowSwitcher",["root","spacer","button"]);const va=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],ba=["ownerState"],wa=["ownerState"],xa=(0,re.Ay)("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Aa=(0,re.Ay)("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})((e=>{let{theme:t}=e;return{width:t.spacing(3)}})),Da=(0,re.Ay)(Ie.A,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})((e=>{let{ownerState:t}=e;return(0,a.A)({},t.hidden&&{visibility:"hidden"})})),Ma=r.forwardRef((function(e,t){var n,r,s,i;const u="rtl"===(0,Ht.A)().direction,c=(0,l.A)({props:e,name:"MuiPickersArrowSwitcher"}),{children:d,className:m,slots:h,slotProps:p,isNextDisabled:f,isNextHidden:y,onGoToNext:g,nextLabel:v,isPreviousDisabled:b,isPreviousHidden:w,onGoToPrevious:x,previousLabel:A}=c,D=(0,o.A)(c,va),M=c,C=(e=>{const{classes:t}=e;return se({root:["root"],spacer:["spacer"],button:["button"]},ga,t)})(M),P={isDisabled:f,isHidden:y,goTo:g,label:v},S={isDisabled:b,isHidden:w,goTo:x,label:A},T=null!=(n=null==h?void 0:h.previousIconButton)?n:Da,k=Ve({elementType:T,externalSlotProps:null==p?void 0:p.previousIconButton,additionalProps:{size:"medium",title:S.label,"aria-label":S.label,disabled:S.isDisabled,edge:"end",onClick:S.goTo},ownerState:(0,a.A)({},M,{hidden:S.isHidden}),className:C.button}),V=null!=(r=null==h?void 0:h.nextIconButton)?r:Da,O=Ve({elementType:V,externalSlotProps:null==p?void 0:p.nextIconButton,additionalProps:{size:"medium",title:P.label,"aria-label":P.label,disabled:P.isDisabled,edge:"start",onClick:P.goTo},ownerState:(0,a.A)({},M,{hidden:P.isHidden}),className:C.button}),I=null!=(s=null==h?void 0:h.leftArrowIcon)?s:jt,F=Ve({elementType:I,externalSlotProps:null==p?void 0:p.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),L=(0,o.A)(F,ba),R=null!=(i=null==h?void 0:h.rightArrowIcon)?i:Et,N=Ve({elementType:R,externalSlotProps:null==p?void 0:p.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),j=(0,o.A)(N,wa);return(0,he.jsxs)(xa,(0,a.A)({ref:t,className:(0,ae.A)(C.root,m),ownerState:M},D,{children:[(0,he.jsx)(T,(0,a.A)({},k,{children:u?(0,he.jsx)(R,(0,a.A)({},j)):(0,he.jsx)(I,(0,a.A)({},L))})),d?(0,he.jsx)(oe.A,{variant:"subtitle1",component:"span",children:d}):(0,he.jsx)(Aa,{className:C.spacer,ownerState:M}),(0,he.jsx)(V,(0,a.A)({},O,{children:u?(0,he.jsx)(I,(0,a.A)({},L)):(0,he.jsx)(R,(0,a.A)({},j))}))]}))}));const Ca=e=>ce("MuiPickersCalendarHeader",e),Pa=de("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),Sa=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],Ta=["ownerState"],ka=(0,re.Ay)("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),Va=(0,re.Ay)("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})((e=>{let{theme:t}=e;return(0,a.A)({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},t.typography.body1,{fontWeight:t.typography.fontWeightMedium})})),Oa=(0,re.Ay)("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Ia=(0,re.Ay)(Ie.A,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})((e=>{let{ownerState:t}=e;return(0,a.A)({marginRight:"auto"},"year"===t.view&&{[".".concat(Pa.switchViewIcon)]:{transform:"rotate(180deg)"}})})),Fa=(0,re.Ay)(Nt,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})((e=>{let{theme:t}=e;return{willChange:"transform",transition:t.transitions.create("transform"),transform:"rotate(0deg)"}})),La=r.forwardRef((function(e,t){var n,s,i,u;const c=te(),d=_(),m=(0,l.A)({props:e,name:"MuiPickersCalendarHeader"}),{slots:h,slotProps:p,components:f,currentMonth:y,disabled:g,disableFuture:v,disablePast:b,maxDate:w,minDate:x,onMonthChange:A,onViewChange:D,view:M,reduceAnimations:C,views:P,labelId:S,className:T,timezone:k}=m,V=(0,o.A)(m,Sa),O=m,I=(e=>{const{classes:t}=e;return se({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Ca,t)})(m),F=null!=(n=null!=(s=null==h?void 0:h.switchViewButton)?s:null==f?void 0:f.SwitchViewButton)?n:Ia,L=Ve({elementType:F,externalSlotProps:null==p?void 0:p.switchViewButton,additionalProps:{size:"small","aria-label":c.calendarViewSwitchingButtonAriaLabel(M)},ownerState:O,className:I.switchViewButton}),R=null!=(i=null!=(u=null==h?void 0:h.switchViewIcon)?u:null==f?void 0:f.SwitchViewIcon)?i:Fa,N=Ve({elementType:R,externalSlotProps:null==p?void 0:p.switchViewIcon,ownerState:void 0,className:I.switchViewIcon}),j=(0,o.A)(N,Ta),E=function(e,t){let{disableFuture:n,maxDate:a,timezone:o}=t;const s=_();return r.useMemo((()=>{const t=s.dateWithTimezone(void 0,o),r=s.startOfMonth(n&&s.isBefore(t,a)?t:a);return!s.isAfter(r,e)}),[n,a,e,s,o])}(y,{disableFuture:v,maxDate:w,timezone:k}),z=function(e,t){let{disablePast:n,minDate:a,timezone:o}=t;const s=_();return r.useMemo((()=>{const t=s.dateWithTimezone(void 0,o),r=s.startOfMonth(n&&s.isAfter(t,a)?t:a);return!s.isBefore(r,e)}),[n,a,e,s,o])}(y,{disablePast:b,minDate:x,timezone:k});return 1===P.length&&"year"===P[0]?null:(0,he.jsxs)(ka,(0,a.A)({},V,{ownerState:O,className:(0,ae.A)(T,I.root),ref:t,children:[(0,he.jsxs)(Va,{role:"presentation",onClick:()=>{if(1!==P.length&&D&&!g)if(2===P.length)D(P.find((e=>e!==M))||P[0]);else{const e=0!==P.indexOf(M)?0:1;D(P[e])}},ownerState:O,"aria-live":"polite",className:I.labelContainer,children:[(0,he.jsx)(mn,{reduceAnimations:C,transKey:d.format(y,"monthAndYear"),children:(0,he.jsx)(Oa,{id:S,ownerState:O,className:I.label,children:d.format(y,"monthAndYear")})}),P.length>1&&!g&&(0,he.jsx)(F,(0,a.A)({},L,{children:(0,he.jsx)(R,(0,a.A)({},j))}))]}),(0,he.jsx)(Ee.A,{in:"day"===M,children:(0,he.jsx)(Ma,{slots:h,slotProps:p,onGoToPrevious:()=>A(d.addMonths(y,-1),"right"),isPreviousDisabled:z,previousLabel:c.previousMonth,onGoToNext:()=>A(d.addMonths(y,1),"left"),isNextDisabled:E,nextLabel:c.nextMonth})})]}))})),Ra=(0,re.Ay)("div")({overflow:"hidden",width:Mt,maxHeight:334,display:"flex",flexDirection:"column",margin:"0 auto"}),Na=e=>ce("MuiDateCalendar",e),ja=(de("MuiDateCalendar",["root","viewTransitionContainer"]),["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"]);const Ea=(0,re.Ay)(Ra,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:334}),za=(0,re.Ay)(mn,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Ya=r.forwardRef((function(e,t){var n,s,i;const u=_(),c=Ne(),d=function(e,t){var n,o,r,s,i,u,c;const d=_(),m=ee(),h=Je(),p=(0,l.A)({props:e,name:t});return(0,a.A)({},p,{loading:null!=(n=p.loading)&&n,disablePast:null!=(o=p.disablePast)&&o,disableFuture:null!=(r=p.disableFuture)&&r,openTo:null!=(s=p.openTo)?s:"day",views:null!=(i=p.views)?i:["year","day"],reduceAnimations:null!=(u=p.reduceAnimations)?u:h,renderLoading:null!=(c=p.renderLoading)?c:()=>(0,he.jsx)("span",{children:"..."}),minDate:y(d,p.minDate,m.minDate),maxDate:y(d,p.maxDate,m.maxDate)})}(e,"MuiDateCalendar"),{autoFocus:m,onViewChange:h,value:g,defaultValue:v,referenceDate:b,disableFuture:w,disablePast:x,defaultCalendarMonth:A,onChange:D,onYearChange:M,onMonthChange:C,reduceAnimations:P,shouldDisableDate:S,shouldDisableMonth:T,shouldDisableYear:k,view:V,views:O,openTo:I,className:F,disabled:L,readOnly:R,minDate:N,maxDate:j,disableHighlightToday:E,focusedView:z,onFocusedViewChange:Y,showDaysOutsideCurrentMonth:B,fixedWeekNumber:H,dayOfWeekFormatter:W,components:U,componentsProps:K,slots:$,slotProps:G,loading:q,renderLoading:Q,displayWeekNumber:X,yearsPerRow:J,monthsPerRow:te,timezone:ne}=d,oe=(0,o.A)(d,ja),{value:re,handleValueChange:ie,timezone:le}=it({name:"DateCalendar",timezone:ne,value:g,defaultValue:v,onChange:D,valueManager:Z}),{view:ue,setView:ce,focusedView:de,setFocusedView:me,goToNextView:pe,setValueAndGoToNextView:fe}=ut({view:V,views:O,openTo:I,onChange:ie,onViewChange:h,autoFocus:m,focusedView:z,onFocusedViewChange:Y}),{referenceDate:ye,calendarState:ge,changeFocusedDay:ve,changeMonth:be,handleChangeMonth:we,isDateDisabled:xe,onMonthSwitchingAnimationEnd:Ae}=ln({value:re,defaultCalendarMonth:A,referenceDate:b,reduceAnimations:P,onMonthChange:C,minDate:N,maxDate:j,shouldDisableDate:S,disablePast:x,disableFuture:w,timezone:le}),De=L&&re||N,Me=L&&re||j,Ce="".concat(c,"-grid-label"),Pe=null!==de,Se=null!=(n=null!=(s=null==$?void 0:$.calendarHeader)?s:null==U?void 0:U.CalendarHeader)?n:La,Te=Ve({elementType:Se,externalSlotProps:null!=(i=null==G?void 0:G.calendarHeader)?i:null==K?void 0:K.calendarHeader,additionalProps:{views:O,view:ue,currentMonth:ge.currentMonth,onViewChange:ce,onMonthChange:(e,t)=>we({newMonth:e,direction:t}),minDate:De,maxDate:Me,disabled:L,disablePast:x,disableFuture:w,reduceAnimations:P,timezone:le,labelId:Ce,slots:$,slotProps:G},ownerState:d}),ke=We((e=>{const t=u.startOfMonth(e),n=u.endOfMonth(e),a=xe(e)?f({utils:u,date:e,minDate:u.isBefore(N,t)?t:N,maxDate:u.isAfter(j,n)?n:j,disablePast:x,disableFuture:w,isDateDisabled:xe,timezone:le}):e;a?(fe(a,"finish"),null==C||C(t)):(pe(),be(t)),ve(a,!0)})),Oe=We((e=>{const t=u.startOfYear(e),n=u.endOfYear(e),a=xe(e)?f({utils:u,date:e,minDate:u.isBefore(N,t)?t:N,maxDate:u.isAfter(j,n)?n:j,disablePast:x,disableFuture:w,isDateDisabled:xe,timezone:le}):e;a?(fe(a,"finish"),null==M||M(a)):(pe(),be(t)),ve(a,!0)})),Ie=We((e=>ie(e?p(u,e,null!=re?re:ye):e,"finish",ue)));r.useEffect((()=>{null!=re&&u.isValid(re)&&be(re)}),[re]);const Fe=d,Le=(e=>{const{classes:t}=e;return se({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},Na,t)})(Fe),Re={disablePast:x,disableFuture:w,maxDate:j,minDate:N},je={disableHighlightToday:E,readOnly:R,disabled:L,timezone:le,gridLabelId:Ce},Ee=r.useRef(ue);r.useEffect((()=>{Ee.current!==ue&&(de===Ee.current&&me(ue,!0),Ee.current=ue)}),[de,me,ue]);const ze=r.useMemo((()=>[re]),[re]);return(0,he.jsxs)(Ea,(0,a.A)({ref:t,className:(0,ae.A)(Le.root,F),ownerState:Fe},oe,{children:[(0,he.jsx)(Se,(0,a.A)({},Te)),(0,he.jsx)(za,{reduceAnimations:P,className:Le.viewTransitionContainer,transKey:ue,ownerState:Fe,children:(0,he.jsxs)("div",{children:["year"===ue&&(0,he.jsx)(ya,(0,a.A)({},Re,je,{value:re,onChange:Oe,shouldDisableYear:k,hasFocus:Pe,onFocusedViewChange:e=>me("year",e),yearsPerRow:J,referenceDate:ye})),"month"===ue&&(0,he.jsx)(sa,(0,a.A)({},Re,je,{hasFocus:Pe,className:F,value:re,onChange:ke,shouldDisableMonth:T,onFocusedViewChange:e=>me("month",e),monthsPerRow:te,referenceDate:ye})),"day"===ue&&(0,he.jsx)(qn,(0,a.A)({},ge,Re,je,{onMonthSwitchingAnimationEnd:Ae,onFocusedDayChange:ve,reduceAnimations:P,selectedDays:ze,onSelectedDaysChange:Ie,shouldDisableDate:S,shouldDisableMonth:T,shouldDisableYear:k,hasFocus:Pe,onFocusedViewChange:e=>me("day",e),showDaysOutsideCurrentMonth:B,fixedWeekNumber:H,dayOfWeekFormatter:W,displayWeekNumber:X,components:U,componentsProps:K,slots:$,slotProps:G,loading:q,renderLoading:Q}))]})})]}))})),Ba=e=>{let{view:t,onViewChange:n,views:a,focusedView:o,onFocusedViewChange:r,value:s,defaultValue:i,referenceDate:l,onChange:u,className:c,classes:d,disableFuture:m,disablePast:h,minDate:p,maxDate:f,shouldDisableDate:y,shouldDisableMonth:g,shouldDisableYear:v,reduceAnimations:b,onMonthChange:x,monthsPerRow:A,onYearChange:D,yearsPerRow:M,defaultCalendarMonth:C,components:P,componentsProps:S,slots:T,slotProps:k,loading:V,renderLoading:O,disableHighlightToday:I,readOnly:F,disabled:L,showDaysOutsideCurrentMonth:R,dayOfWeekFormatter:N,sx:j,autoFocus:E,fixedWeekNumber:z,displayWeekNumber:Y,timezone:B}=e;return(0,he.jsx)(Ya,{view:t,onViewChange:n,views:a.filter(w),focusedView:o&&w(o)?o:null,onFocusedViewChange:r,value:s,defaultValue:i,referenceDate:l,onChange:u,className:c,classes:d,disableFuture:m,disablePast:h,minDate:p,maxDate:f,shouldDisableDate:y,shouldDisableMonth:g,shouldDisableYear:v,reduceAnimations:b,onMonthChange:x,monthsPerRow:A,onYearChange:D,yearsPerRow:M,defaultCalendarMonth:C,components:P,componentsProps:S,slots:T,slotProps:k,loading:V,renderLoading:O,disableHighlightToday:I,readOnly:F,disabled:L,showDaysOutsideCurrentMonth:R,dayOfWeekFormatter:N,sx:j,autoFocus:E,fixedWeekNumber:z,displayWeekNumber:Y,timezone:B})},Ha=r.forwardRef((function(e,t){var n,s,i,l;const u=te(),c=_(),m=De(e,"MuiDesktopDatePicker"),h=(0,a.A)({day:Ba,month:Ba,year:Ba},m.viewRenderers),p=(0,a.A)({},m,{viewRenderers:h,format:x(c,m,!1),yearsPerRow:null!=(n=m.yearsPerRow)?n:4,slots:(0,a.A)({openPickerIcon:zt,field:rn},m.slots),slotProps:(0,a.A)({},m.slotProps,{field:e=>{var n;return(0,a.A)({},d(null==(n=m.slotProps)?void 0:n.field,e),Jt(m),{ref:t})},toolbar:(0,a.A)({hidden:!0},null==(s=m.slotProps)?void 0:s.toolbar)})}),{renderPicker:f}=(e=>{var t,n,s,i,l;let{props:u,getOpenDialogAriaText:c}=e,d=(0,o.A)(e,It);const{slots:m,slotProps:h,className:p,sx:f,format:y,formatDensity:g,timezone:v,name:b,label:w,inputRef:x,readOnly:A,disabled:D,autoFocus:M,localeText:C,reduceAnimations:P}=u,S=_(),T=r.useRef(null),k=r.useRef(null),V=Ne(),O=null!=(t=null==h||null==(n=h.toolbar)?void 0:n.hidden)&&t,{open:I,actions:F,hasUIView:L,layoutProps:R,renderCurrentView:N,shouldRestoreFocus:j,fieldProps:E}=pt((0,a.A)({},d,{props:u,inputRef:T,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),z=null!=(s=m.inputAdornment)?s:Oe.A,Y=Ve({elementType:z,externalSlotProps:null==h?void 0:h.inputAdornment,additionalProps:{position:"end"},ownerState:u}),B=(0,o.A)(Y,Ft),H=null!=(i=m.openPickerButton)?i:Ie.A,W=Ve({elementType:H,externalSlotProps:null==h?void 0:h.openPickerButton,additionalProps:{disabled:D||A,onClick:I?F.onClose:F.onOpen,"aria-label":c(E.value,S),edge:B.position},ownerState:u}),U=(0,o.A)(W,Lt),K=m.openPickerIcon,Z=m.field,$=Ve({elementType:Z,externalSlotProps:null==h?void 0:h.field,additionalProps:(0,a.A)({},E,O&&{id:V},{readOnly:A,disabled:D,className:p,sx:f,format:y,formatDensity:g,timezone:v,label:w,name:b,autoFocus:M&&!u.open,focused:!!I||void 0}),ownerState:u});L&&($.InputProps=(0,a.A)({},$.InputProps,{ref:k},!u.disableOpenPicker&&{["".concat(B.position,"Adornment")]:(0,he.jsx)(z,(0,a.A)({},B,{children:(0,he.jsx)(H,(0,a.A)({},U,{children:(0,he.jsx)(K,(0,a.A)({},null==h?void 0:h.openPickerIcon))}))}))}));const q=(0,a.A)({textField:m.textField,clearIcon:m.clearIcon,clearButton:m.clearButton},$.slots),Q=null!=(l=m.layout)?l:Ot,X=Fe(T,$.inputRef,x);let J=V;O&&(J=w?"".concat(V,"-label"):void 0);const ee=(0,a.A)({},h,{toolbar:(0,a.A)({},null==h?void 0:h.toolbar,{titleId:V}),popper:(0,a.A)({"aria-labelledby":J},null==h?void 0:h.popper)});return{renderPicker:()=>(0,he.jsxs)(G.$,{localeText:C,children:[(0,he.jsx)(Z,(0,a.A)({},$,{slots:q,slotProps:ee,inputRef:X})),(0,he.jsx)(at,(0,a.A)({role:"dialog",placement:"bottom-start",anchorEl:k.current},F,{open:I,slots:m,slotProps:ee,shouldRestoreFocus:j,reduceAnimations:P,children:(0,he.jsx)(Q,(0,a.A)({},R,null==ee?void 0:ee.layout,{slots:m,slotProps:ee,children:N()}))}))]})}})({props:p,valueManager:Z,valueType:"date",getOpenDialogAriaText:null!=(i=null==(l=p.localeText)?void 0:l.openDatePickerDialogue)?i:u.openDatePickerDialogue,validator:Me});return f()}));Ha.propTypes={autoFocus:c().bool,className:c().string,closeOnSelect:c().bool,components:c().object,componentsProps:c().object,dayOfWeekFormatter:c().func,defaultCalendarMonth:c().any,defaultValue:c().any,disabled:c().bool,disableFuture:c().bool,disableHighlightToday:c().bool,disableOpenPicker:c().bool,disablePast:c().bool,displayWeekNumber:c().bool,fixedWeekNumber:c().number,format:c().string,formatDensity:c().oneOf(["dense","spacious"]),inputRef:m,label:c().node,loading:c().bool,localeText:c().object,maxDate:c().any,minDate:c().any,monthsPerRow:c().oneOf([3,4]),name:c().string,onAccept:c().func,onChange:c().func,onClose:c().func,onError:c().func,onMonthChange:c().func,onOpen:c().func,onSelectedSectionsChange:c().func,onViewChange:c().func,onYearChange:c().func,open:c().bool,openTo:c().oneOf(["day","month","year"]),orientation:c().oneOf(["landscape","portrait"]),readOnly:c().bool,reduceAnimations:c().bool,referenceDate:c().any,renderLoading:c().func,selectedSections:c().oneOfType([c().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),c().number,c().shape({endIndex:c().number.isRequired,startIndex:c().number.isRequired})]),shouldDisableDate:c().func,shouldDisableMonth:c().func,shouldDisableYear:c().func,showDaysOutsideCurrentMonth:c().bool,slotProps:c().object,slots:c().object,sx:c().oneOfType([c().arrayOf(c().oneOfType([c().func,c().object,c().bool])),c().func,c().object]),timezone:c().string,value:c().any,view:c().oneOf(["day","month","year"]),viewRenderers:c().shape({day:c().func,month:c().func,year:c().func}),views:c().arrayOf(c().oneOf(["day","month","year"]).isRequired),yearsPerRow:c().oneOf([3,4])};var Wa=n(5670),Ua=n(58689),Ka=n(42129);const Za=(0,re.Ay)(Ua.A)({["& .".concat(Ka.A.container)]:{outline:0},["& .".concat(Ka.A.paper)]:{outline:0,minWidth:Mt}}),$a=(0,re.Ay)(Wa.A)({"&:first-of-type":{padding:0}});function Ga(e){var t,n;const{children:o,onDismiss:r,open:s,slots:i,slotProps:l}=e,u=null!=(t=null==i?void 0:i.dialog)?t:Za,c=null!=(n=null==i?void 0:i.mobileTransition)?n:Ee.A;return(0,he.jsx)(u,(0,a.A)({open:s,onClose:r},null==l?void 0:l.dialog,{TransitionComponent:c,TransitionProps:null==l?void 0:l.mobileTransition,PaperComponent:null==i?void 0:i.mobilePaper,PaperProps:null==l?void 0:l.mobilePaper,children:(0,he.jsx)($a,{children:o})}))}const qa=["props","getOpenDialogAriaText"],Qa=r.forwardRef((function(e,t){var n,s,i;const l=te(),u=_(),c=De(e,"MuiMobileDatePicker"),m=(0,a.A)({day:Ba,month:Ba,year:Ba},c.viewRenderers),h=(0,a.A)({},c,{viewRenderers:m,format:x(u,c,!1),slots:(0,a.A)({field:rn},c.slots),slotProps:(0,a.A)({},c.slotProps,{field:e=>{var n;return(0,a.A)({},d(null==(n=c.slotProps)?void 0:n.field,e),Jt(c),{ref:t})},toolbar:(0,a.A)({hidden:!1},null==(n=c.slotProps)?void 0:n.toolbar)})}),{renderPicker:p}=(e=>{var t,n,s;let{props:i,getOpenDialogAriaText:l}=e,u=(0,o.A)(e,qa);const{slots:c,slotProps:d,className:m,sx:h,format:p,formatDensity:f,timezone:y,name:g,label:v,inputRef:b,readOnly:w,disabled:x,localeText:A}=i,D=_(),M=r.useRef(null),C=Ne(),P=null!=(t=null==d||null==(n=d.toolbar)?void 0:n.hidden)&&t,{open:S,actions:T,layoutProps:k,renderCurrentView:V,fieldProps:O}=pt((0,a.A)({},u,{props:i,inputRef:M,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),I=c.field,F=Ve({elementType:I,externalSlotProps:null==d?void 0:d.field,additionalProps:(0,a.A)({},O,P&&{id:C},!(x||w)&&{onClick:T.onOpen,onKeyDown:(L=T.onOpen,e=>{"Enter"!==e.key&&" "!==e.key||(L(e),e.preventDefault(),e.stopPropagation()),R&&R(e)})},{readOnly:null==w||w,disabled:x,className:m,sx:h,format:p,formatDensity:f,timezone:y,label:v,name:g}),ownerState:i});var L,R;F.inputProps=(0,a.A)({},F.inputProps,{"aria-label":l(O.value,D)});const N=(0,a.A)({textField:c.textField},F.slots),j=null!=(s=c.layout)?s:Ot,E=Fe(M,F.inputRef,b);let z=C;P&&(z=v?"".concat(C,"-label"):void 0);const Y=(0,a.A)({},d,{toolbar:(0,a.A)({},null==d?void 0:d.toolbar,{titleId:C}),mobilePaper:(0,a.A)({"aria-labelledby":z},null==d?void 0:d.mobilePaper)});return{renderPicker:()=>(0,he.jsxs)(G.$,{localeText:A,children:[(0,he.jsx)(I,(0,a.A)({},F,{slots:N,slotProps:Y,inputRef:E})),(0,he.jsx)(Ga,(0,a.A)({},T,{open:S,slots:c,slotProps:Y,children:(0,he.jsx)(j,(0,a.A)({},k,null==Y?void 0:Y.layout,{slots:c,slotProps:Y,children:V()}))}))]})}})({props:h,valueManager:Z,valueType:"date",getOpenDialogAriaText:null!=(s=null==(i=h.localeText)?void 0:i.openDatePickerDialogue)?s:l.openDatePickerDialogue,validator:Me});return p()}));Qa.propTypes={autoFocus:c().bool,className:c().string,closeOnSelect:c().bool,components:c().object,componentsProps:c().object,dayOfWeekFormatter:c().func,defaultCalendarMonth:c().any,defaultValue:c().any,disabled:c().bool,disableFuture:c().bool,disableHighlightToday:c().bool,disableOpenPicker:c().bool,disablePast:c().bool,displayWeekNumber:c().bool,fixedWeekNumber:c().number,format:c().string,formatDensity:c().oneOf(["dense","spacious"]),inputRef:m,label:c().node,loading:c().bool,localeText:c().object,maxDate:c().any,minDate:c().any,monthsPerRow:c().oneOf([3,4]),name:c().string,onAccept:c().func,onChange:c().func,onClose:c().func,onError:c().func,onMonthChange:c().func,onOpen:c().func,onSelectedSectionsChange:c().func,onViewChange:c().func,onYearChange:c().func,open:c().bool,openTo:c().oneOf(["day","month","year"]),orientation:c().oneOf(["landscape","portrait"]),readOnly:c().bool,reduceAnimations:c().bool,referenceDate:c().any,renderLoading:c().func,selectedSections:c().oneOfType([c().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),c().number,c().shape({endIndex:c().number.isRequired,startIndex:c().number.isRequired})]),shouldDisableDate:c().func,shouldDisableMonth:c().func,shouldDisableYear:c().func,showDaysOutsideCurrentMonth:c().bool,slotProps:c().object,slots:c().object,sx:c().oneOfType([c().arrayOf(c().oneOfType([c().func,c().object,c().bool])),c().func,c().object]),timezone:c().string,value:c().any,view:c().oneOf(["day","month","year"]),viewRenderers:c().shape({day:c().func,month:c().func,year:c().func}),views:c().arrayOf(c().oneOf(["day","month","year"]).isRequired),yearsPerRow:c().oneOf([3,4])};const Xa=["desktopModeMediaQuery"],Ja=r.forwardRef((function(e,t){const n=(0,l.A)({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=$e}=n,s=(0,o.A)(n,Xa);return(0,i.A)(r,{defaultMatches:!0})?(0,he.jsx)(Ha,(0,a.A)({ref:t},s)):(0,he.jsx)(Qa,(0,a.A)({ref:t},s))}))}}]); \ No newline at end of file diff --git a/build/static/js/4748.54f74845.chunk.js b/build/static/js/4748.54f74845.chunk.js new file mode 100644 index 0000000..316802b --- /dev/null +++ b/build/static/js/4748.54f74845.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[4748],{1596:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var a=r(84849),o=r(27326),n=r(85672),i=r(72574),s=r(25234),c=r(10247),l=r(16775),d=r(19728),u=r(78292),h=r(38009),p=r(60308),f=r(37300),v=r(10644);function m(e){return(0,v.Ay)("MuiTableCell",e)}const g=(0,f.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var A=r(65908);const y=["align","className","component","padding","scope","size","sortDirection","variant"],b=(0,p.Ay)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,l.A)(r.size))],"normal"!==r.padding&&t["padding".concat((0,l.A)(r.padding))],"inherit"!==r.align&&t["align".concat((0,l.A)(r.align))],r.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:r}=e;return(0,o.A)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n ".concat("light"===t.palette.mode?(0,c.a)((0,c.X4)(t.palette.divider,1),.88):(0,c.e$)((0,c.X4)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===r.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===r.variant&&{color:(t.vars||t).palette.text.primary},"footer"===r.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===r.size&&{padding:"6px 16px",["&.".concat(g.paddingCheckbox)]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===r.padding&&{width:48,padding:"0 0 0 4px"},"none"===r.padding&&{padding:0},"left"===r.align&&{textAlign:"left"},"center"===r.align&&{textAlign:"center"},"right"===r.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===r.align&&{textAlign:"justify"},r.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),x=n.forwardRef((function(e,t){const r=(0,h.b)({props:e,name:"MuiTableCell"}),{align:c="inherit",className:p,component:f,padding:v,scope:g,size:x,sortDirection:k,variant:w}=r,C=(0,a.A)(r,y),M=n.useContext(d.A),S=n.useContext(u.A),T=S&&"head"===S.variant;let $;$=f||(T?"th":"td");let H=g;"td"===$?H=void 0:!H&&T&&(H="col");const R=w||S&&S.variant,z=(0,o.A)({},r,{align:c,component:$,padding:v||(M&&M.padding?M.padding:"normal"),size:x||(M&&M.size?M.size:"medium"),sortDirection:k,stickyHeader:"head"===R&&M&&M.stickyHeader,variant:R}),D=(e=>{const{classes:t,variant:r,align:a,padding:o,size:n,stickyHeader:i}=e,c={root:["root",r,i&&"stickyHeader","inherit"!==a&&"align".concat((0,l.A)(a)),"normal"!==o&&"padding".concat((0,l.A)(o)),"size".concat((0,l.A)(n))]};return(0,s.A)(c,m,t)})(z);let N=null;return k&&(N="asc"===k?"ascending":"descending"),(0,A.jsx)(b,(0,o.A)({as:$,ref:t,className:(0,i.A)(D.root,p),"aria-sort":N,scope:H,ownerState:z},C))}))},12010:(e,t,r)=>{"use strict";r.d(t,{A:()=>D});var a=r(57528),o=r(84849),n=r(27326),i=r(85672),s=r(72574),c=r(25234),l=r(8913),d=r(16775),u=r(38009),h=r(60308),p=r(37300),f=r(10644);function v(e){return(0,f.Ay)("MuiCircularProgress",e)}(0,p.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var m,g,A,y,b=r(65908);const x=["className","color","disableShrink","size","style","thickness","value","variant"];let k,w,C,M;const S=44,T=(0,l.i7)(k||(k=m||(m=(0,a.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),$=(0,l.i7)(w||(w=g||(g=(0,a.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),H=(0,h.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["color".concat((0,d.A)(r.color))]]}})((e=>{let{ownerState:t,theme:r}=e;return(0,n.A)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,l.AH)(C||(C=A||(A=(0,a.A)(["\n animation: "," 1.4s linear infinite;\n "]))),T)})),R=(0,h.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),z=(0,h.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t["circle".concat((0,d.A)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:r}=e;return(0,n.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,l.AH)(M||(M=y||(y=(0,a.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),$)})),D=i.forwardRef((function(e,t){const r=(0,u.b)({props:e,name:"MuiCircularProgress"}),{className:a,color:i="primary",disableShrink:l=!1,size:h=40,style:p,thickness:f=3.6,value:m=0,variant:g="indeterminate"}=r,A=(0,o.A)(r,x),y=(0,n.A)({},r,{color:i,disableShrink:l,size:h,thickness:f,value:m,variant:g}),k=(e=>{const{classes:t,variant:r,color:a,disableShrink:o}=e,n={root:["root",r,"color".concat((0,d.A)(a))],svg:["svg"],circle:["circle","circle".concat((0,d.A)(r)),o&&"circleDisableShrink"]};return(0,c.A)(n,v,t)})(y),w={},C={},M={};if("determinate"===g){const e=2*Math.PI*((S-f)/2);w.strokeDasharray=e.toFixed(3),M["aria-valuenow"]=Math.round(m),w.strokeDashoffset="".concat(((100-m)/100*e).toFixed(3),"px"),C.transform="rotate(-90deg)"}return(0,b.jsx)(H,(0,n.A)({className:(0,s.A)(k.root,a),style:(0,n.A)({width:h,height:h},C,p),ownerState:y,ref:t,role:"progressbar"},M,A,{children:(0,b.jsx)(R,{className:k.svg,ownerState:y,viewBox:"".concat(22," ").concat(22," ").concat(S," ").concat(S),children:(0,b.jsx)(z,{className:k.circle,style:w,ownerState:y,cx:S,cy:S,r:(S-f)/2,fill:"none",strokeWidth:f})})}))}))},19728:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});const a=r(85672).createContext()},22686:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(a,o,n){var i=o.prototype;n.utc=function(e){return new o({date:e,utc:!0,args:arguments})},i.utc=function(t){var r=n(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},i.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var s=i.parse;i.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=i.init;i.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=i.utcOffset;i.utcOffset=function(a,o){var n=this.$utils().u;if(n(a))return this.$u?0:n(this.$offset)?l.call(this):this.$offset;if("string"==typeof a&&(a=function(e){void 0===e&&(e="");var a=e.match(t);if(!a)return null;var o=(""+a[0]).match(r)||["-",0,0],n=o[0],i=60*+o[1]+ +o[2];return 0===i?0:"+"===n?i:-i}(a),null===a))return this;var i=Math.abs(a)<=16?60*a:a,s=this;if(o)return s.$offset=i,s.$u=0===a,s;if(0!==a){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(i+c,e)).$offset=i,s.$x.$localOffset=c}else s=this.utc();return s};var d=i.format;i.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,t)},i.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var u=i.toDate;i.toDate=function(e){return"s"===e&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var h=i.diff;i.diff=function(e,t,r){if(e&&this.$u===e.$u)return h.call(this,e,t,r);var a=this.local(),o=n(e).local();return h.call(a,o,t,r)}}}()},28478:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var a=r(27326),o=r(85672);const n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM482 232c0-4.4 3.6-8 8-8h44c4.4 0 8 3.6 8 8v80c0 4.4-3.6 8-8 8h-44c-4.4 0-8-3.6-8-8v-80zM270 582c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v44zm90.7-204.5l-31.1 31.1a8.03 8.03 0 01-11.3 0L261.7 352a8.03 8.03 0 010-11.3l31.1-31.1c3.1-3.1 8.2-3.1 11.3 0l56.6 56.6c3.1 3.1 3.1 8.2 0 11.3zm291.1 83.6l-84.5 84.5c5 18.7.2 39.4-14.5 54.1a55.95 55.95 0 01-79.2 0 55.95 55.95 0 010-79.2 55.87 55.87 0 0154.1-14.5l84.5-84.5c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3c3.1 3.1 3.1 8.1 0 11.3zm43-52.4l-31.1-31.1a8.03 8.03 0 010-11.3l56.6-56.6c3.1-3.1 8.2-3.1 11.3 0l31.1 31.1c3.1 3.1 3.1 8.2 0 11.3l-56.6 56.6a8.03 8.03 0 01-11.3 0zM846 582c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v44z"}}]},name:"dashboard",theme:"filled"};var i=r(75890),s=function(e,t){return o.createElement(i.A,(0,a.A)({},e,{ref:t,icon:n}))};const c=o.forwardRef(s)},50755:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var a=r(27326),o=r(84849),n=r(85672),i=r(72574),s=r(25234),c=r(10247),l=r(78292),d=r(38009),u=r(60308),h=r(37300),p=r(10644);function f(e){return(0,p.Ay)("MuiTableRow",e)}const v=(0,h.A)("MuiTableRow",["root","selected","hover","head","footer"]);var m=r(65908);const g=["className","component","hover","selected"],A=(0,u.Ay)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((e=>{let{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,["&.".concat(v.hover,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(v.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}})),y="tr",b=n.forwardRef((function(e,t){const r=(0,d.b)({props:e,name:"MuiTableRow"}),{className:c,component:u=y,hover:h=!1,selected:p=!1}=r,v=(0,o.A)(r,g),b=n.useContext(l.A),x=(0,a.A)({},r,{component:u,hover:h,selected:p,head:b&&"head"===b.variant,footer:b&&"footer"===b.variant}),k=(e=>{const{classes:t,selected:r,hover:a,head:o,footer:n}=e,i={root:["root",r&&"selected",a&&"hover",o&&"head",n&&"footer"]};return(0,s.A)(i,f,t)})(x);return(0,m.jsx)(A,(0,a.A)({as:u,ref:t,className:(0,i.A)(k.root,c),role:u===y?null:"row",ownerState:x},v))}))},54016:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var a=r(27326),o=r(84849),n=r(85672),i=r(72574),s=r(25234),c=r(78292),l=r(38009),d=r(60308),u=r(37300),h=r(10644);function p(e){return(0,h.Ay)("MuiTableHead",e)}(0,u.A)("MuiTableHead",["root"]);var f=r(65908);const v=["className","component"],m=(0,d.Ay)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),g={variant:"head"},A="thead",y=n.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiTableHead"}),{className:n,component:d=A}=r,u=(0,o.A)(r,v),h=(0,a.A)({},r,{component:d}),y=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},p,t)})(h);return(0,f.jsx)(c.A.Provider,{value:g,children:(0,f.jsx)(m,(0,a.A)({as:d,className:(0,i.A)(y.root,n),ref:t,role:d===A?null:"rowgroup",ownerState:h},u))})}))},72486:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var a=r(84849),o=r(27326),n=r(85672),i=r(72574),s=r(25234),c=r(19728),l=r(38009),d=r(60308),u=r(37300),h=r(10644);function p(e){return(0,h.Ay)("MuiTable",e)}(0,u.A)("MuiTable",["root","stickyHeader"]);var f=r(65908);const v=["className","component","padding","size","stickyHeader"],m=(0,d.Ay)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:r}=e;return(0,o.A)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,o.A)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},r.stickyHeader&&{borderCollapse:"separate"})})),g="table",A=n.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiTable"}),{className:d,component:u=g,padding:h="normal",size:A="medium",stickyHeader:y=!1}=r,b=(0,a.A)(r,v),x=(0,o.A)({},r,{component:u,padding:h,size:A,stickyHeader:y}),k=(e=>{const{classes:t,stickyHeader:r}=e,a={root:["root",r&&"stickyHeader"]};return(0,s.A)(a,p,t)})(x),w=n.useMemo((()=>({padding:h,size:A,stickyHeader:y})),[h,A,y]);return(0,f.jsx)(c.A.Provider,{value:w,children:(0,f.jsx)(m,(0,o.A)({as:u,role:u===g?null:"table",ref:t,className:(0,i.A)(k.root,d),ownerState:x},b))})}))},78292:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});const a=r(85672).createContext()},81802:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var a=r(27326),o=r(84849),n=r(85672),i=r(72574),s=r(25234),c=r(78292),l=r(38009),d=r(60308),u=r(37300),h=r(10644);function p(e){return(0,h.Ay)("MuiTableBody",e)}(0,u.A)("MuiTableBody",["root"]);var f=r(65908);const v=["className","component"],m=(0,d.Ay)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),g={variant:"body"},A="tbody",y=n.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiTableBody"}),{className:n,component:d=A}=r,u=(0,o.A)(r,v),h=(0,a.A)({},r,{component:d}),y=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},p,t)})(h);return(0,f.jsx)(c.A.Provider,{value:g,children:(0,f.jsx)(m,(0,a.A)({className:(0,i.A)(y.root,n),as:d,ref:t,role:d===A?null:"rowgroup",ownerState:h},u))})}))},83209:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var a=r(27326),o=r(84849),n=r(85672),i=r(72574),s=r(25234),c=r(38009),l=r(60308),d=r(37300),u=r(10644);function h(e){return(0,u.Ay)("MuiTableContainer",e)}(0,d.A)("MuiTableContainer",["root"]);var p=r(65908);const f=["className","component"],v=(0,l.Ay)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),m=n.forwardRef((function(e,t){const r=(0,c.b)({props:e,name:"MuiTableContainer"}),{className:n,component:l="div"}=r,d=(0,o.A)(r,f),u=(0,a.A)({},r,{component:l}),m=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},h,t)})(u);return(0,p.jsx)(v,(0,a.A)({ref:t,as:l,className:(0,i.A)(m.root,n),ownerState:u},d))}))}}]); \ No newline at end of file diff --git a/build/static/js/4793.02666cf4.chunk.js b/build/static/js/4793.02666cf4.chunk.js new file mode 100644 index 0000000..f80f6e1 --- /dev/null +++ b/build/static/js/4793.02666cf4.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[4793],{20466:(e,t,a)=>{a.d(t,{k:()=>n});var o=a(13659);const n=(e,t,a)=>(0,o.M8)(e,{variant:t,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:a||2e3})},59212:(e,t,a)=>{a.d(t,{A:()=>p});var o=a(22555),n=a(85672),s=a(71392),i=a(97043),l=a(17488),r=a(86270),c=a(66157),d=a(48952),u=a(65908);const p=(0,n.forwardRef)(((e,t)=>{let{setAppId:a,setLocoName:p,setPage:m,sx:g,textfeildSx:h,textfieldSx:A,pill:v=!1,accentColor:x="#6366f1",icon:f,placeholder:b="Select Zone",paperComponent:y}=e;const[j,C]=(0,n.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,n.useEffect)((()=>{0===j.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const t=await c.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(t.data.status){const e=[...t.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),C(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[j.length]);const _=e=>"".concat(x).concat(e),S=_("26"),w=_("18"),k=v?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(S)},"&.Mui-focused fieldset":{borderColor:x,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},I=v&&(0,u.jsx)(s.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,u.jsx)(i.A,{sx:{width:24,height:24,bgcolor:w,color:x,transition:"background-color 0.15s, color 0.15s"},children:f||(0,u.jsx)(d.HPi,{size:14})})});return(0,u.jsx)(l.A,{id:"location-autocomplete",options:j||[],getOptionLabel:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.locationname)&&void 0!==t?t:""},PaperComponent:y,sx:(0,o.A)({},g),onChange:(e,t,o)=>{"clear"===o?(null===a||void 0===a||a(0),null===p||void 0===p||p(""),null===m||void 0===m||m(0)):t&&(null===a||void 0===a||a(t.applocationid),null===p||void 0===p||p(t.locationname),null===m||void 0===m||m(0))},renderInput:e=>v?(0,u.jsx)(r.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,placeholder:b,InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:I}),sx:(0,o.A)((0,o.A)({},k),A||h||{})})):(0,u.jsx)(r.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,label:"Select Zones",sx:(0,o.A)({},A||h||{})}))})}))},77865:(e,t,a)=>{a.d(t,{A:()=>w});var o=a(84849),n=a(27326),s=a(85672),i=a(72574),l=a(25234),r=a(10247),c=a(60308),d=a(24270),u=a(38009),p=a(78534),m=a(61949),g=a(93046),h=a(45688),A=a(8191),v=a(58541),x=a(43917),f=a(37300),b=a(10644);function y(e){return(0,b.Ay)("MuiMenuItem",e)}const j=(0,f.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var C=a(65908);const _=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],S=(0,c.Ay)(m.A,{shouldForwardProp:e=>(0,d.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,a.dense&&t.dense,a.divider&&t.divider,!a.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:a}=e;return(0,n.A)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!a.disableGutters&&{paddingLeft:16,paddingRight:16},a.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(j.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,r.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(j.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,r.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(j.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,r.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,r.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(j.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(j.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(A.A.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(A.A.inset)]:{marginLeft:52},["& .".concat(x.A.root)]:{marginTop:0,marginBottom:0},["& .".concat(x.A.inset)]:{paddingLeft:36},["& .".concat(v.A.root)]:{minWidth:36}},!a.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},a.dense&&(0,n.A)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(v.A.root," svg")]:{fontSize:"1.25rem"}}))})),w=s.forwardRef((function(e,t){const a=(0,u.b)({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:c="li",dense:d=!1,divider:m=!1,disableGutters:A=!1,focusVisibleClassName:v,role:x="menuitem",tabIndex:f,className:b}=a,j=(0,o.A)(a,_),w=s.useContext(p.A),k=s.useMemo((()=>({dense:d||w.dense||!1,disableGutters:A})),[w.dense,d,A]),I=s.useRef(null);(0,g.A)((()=>{r&&I.current&&I.current.focus()}),[r]);const M=(0,n.A)({},a,{dense:k.dense,divider:m,disableGutters:A}),O=(e=>{const{disabled:t,dense:a,divider:o,disableGutters:s,selected:i,classes:r}=e,c={root:["root",a&&"dense",t&&"disabled",!s&&"gutters",o&&"divider",i&&"selected"]},d=(0,l.A)(c,y,r);return(0,n.A)({},r,d)})(a),N=(0,h.A)(I,t);let E;return a.disabled||(E=void 0!==f?f:-1),(0,C.jsx)(p.A.Provider,{value:k,children:(0,C.jsx)(S,(0,n.A)({ref:N,role:x,tabIndex:E,component:c,focusVisibleClassName:(0,i.A)(O.focusVisible,v),className:(0,i.A)(O.root,b)},j,{ownerState:M,classes:O}))})}))},94793:(e,t,a)=>{a.r(t),a.d(t,{default:()=>k});var o=a(22555),n=a(85672),s=a(69039),i=a(76264),l=a(1939),r=a(71392),c=a(2866),d=a(17488),u=a(86270),p=a(29882),m=a(51422),g=a(77865),h=a(11969),A=a(80911),v=a(59008),x=a(66157),f=a(52351),b=a(76453),y=a(13659),j=a(96515),C=a(43281),_=a(59212),S=a(20466),w=a(65908);const k=()=>{const e=(0,s.A)(),t=(0,i.A)(e.breakpoints.down("md")),[a,k]=(0,n.useState)(0),I=(0,n.useRef)(null),[M,O]=(0,n.useState)(""),[N,E]=(0,n.useState)(""),[L,F]=(0,n.useState)(""),[W,z]=(0,n.useState)(""),[P,H]=(0,n.useState)(""),[R,D]=(0,n.useState)(""),[B,V]=(0,n.useState)(""),[G,T]=(0,n.useState)(),[X,Z]=(0,n.useState)(),[J,K]=(0,n.useState)(),[Y,q]=(0,n.useState)("Select Location"),[Q,U]=(0,n.useState)([]),[$,ee]=(0,n.useState)(0),[te,ae]=(0,n.useState)({}),[oe,ne]=(0,n.useState)({latitude:0,longitude:0}),[se,ie]=(0,n.useState)(!1),le=(0,j.Zp)();b.A.setApiKey("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8"),(0,n.useEffect)((()=>{if(B){const e=document.getElementById("addressAuto1"),t=new window.google.maps.places.Autocomplete(e,{strictBounds:!0,bounds:new window.google.maps.Circle({center:new window.google.maps.LatLng(G,X),radius:1e3*J}).getBounds()});t.addListener("place_changed",(()=>{const e=t.getPlace();V("".concat(e.name,", ").concat(e.formatted_address)),console.log("new place",e),console.log(" pick (new place) lat lng",{lat:e.geometry.location.lat(),lng:e.geometry.location.lng()}),ne({latitude:e.geometry.location.lat(),longitude:e.geometry.location.lng()}),F("".concat(e.name," ").concat(e.formatted_address)),ae((0,o.A)((0,o.A)({},te),{},{address:"".concat(e.name," ").concat(e.formatted_address)}));const a={address:"".concat(e.name," ").concat(e.formatted_address),street_number:"",route:"",locality:"",sublocality_level_1:"",administrative_area_level_3:"",administrative_area_level_1:"",country:"",postal_code:""};e.address_components.forEach((e=>{e.types.forEach((t=>{switch(t){case"street_number":a.street_number=e.long_name;break;case"route":a.route=e.long_name;break;case"locality":a.locality=e.long_name;break;case"sublocality_level_1":a.sublocality_level_1=e.long_name;break;case"administrative_area_level_3":a.administrative_area_level_3=e.long_name;break;case"administrative_area_level_1":a.administrative_area_level_1=e.long_name;break;case"country":a.country=e.long_name;break;case"postal_code":a.postal_code=e.long_name}}))})),ae((0,o.A)((0,o.A)({},te),{},{address:a.address,doorno:"".concat(a.street_number," ").concat(a.route),suburb:a.administrative_area_level_3,city:a.locality,state:a.administrative_area_level_1,postcode:a.postal_code,latitude:e.geometry.location.lat(),longitude:e.geometry.location.lng()})),console.log("Pick Address:",a)}))}}),[B]);(0,n.useEffect)((()=>{a&&(async()=>{ie(!0),await x.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getapplocations/?applocationid=").concat(a)).then((e=>{console.log("getapplocations",e);const{latitude:t,longitude:a,radius:o}=e.data.details[0];e.data.status&&(T(t),Z(a),K(o),console.log("radius",o)),ie(!1)})).catch((e=>{console.log(e),ie(!1)}))})()}),[a]);(0,n.useEffect)((()=>{a&&(async e=>{ie(!0),await x.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenants/?applocationid=").concat(e,"&status=active")).then((e=>{if(console.log(e),e.data.status){let t=[];e.data.details.map((e=>{t.push((0,o.A)((0,o.A)({},e),{},{label:"".concat(e.tenantname)}))})),U(t)}ie(!1)})).catch((e=>{console.log(e),ie(!1)}))})(a)}),[a]);const re=e=>{(0,y.M8)(e,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3})};return(0,w.jsxs)(w.Fragment,{children:[se&&(0,w.jsx)(f.A,{}),(0,w.jsx)(l.Ay,{item:!0,xs:12,sx:{mb:2},children:(0,w.jsx)(r.A,{direction:"row",justifyContent:"space-between",alignItems:"center",children:(0,w.jsx)(c.A,{variant:"h3",children:"Create Customer"})})}),(0,w.jsx)(v.A,{sx:{p:{xs:1.5,md:3}},children:(0,w.jsxs)(l.Ay,{container:!0,spacing:{xs:2,md:3},children:[(0,w.jsx)(l.Ay,{item:!0,xs:12,children:(0,w.jsxs)(l.Ay,{container:!0,spacing:{xs:2,md:3},children:[(0,w.jsx)(l.Ay,{item:!0,xs:12,md:6,children:(0,w.jsx)(_.A,{ref:I,locaName:Y,setAppId:k,setLocoName:q,sx:{}})}),(0,w.jsxs)(l.Ay,{item:!0,xs:12,md:6,children:[(0,w.jsx)(d.A,{fullWidth:!0,disabled:0==a,id:"free-solo-demo",sx:{},options:Q||[],renderInput:e=>(0,w.jsx)(u.A,(0,o.A)((0,o.A)({},e),{},{label:"Choose Client",focused:!0})),onChange:(e,t,a)=>{t?(console.log("Client",t),(async e=>{try{const t=await x.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantlocations/?tenantid=").concat(e));console.log("gettenantlocations",t.data.details),t.data.details.length}catch(t){console.log("gettenantlocations",t)}})(t.tenantid),ee(t.tenantid)):(setClientinfo({}),setTenantid(""))}})," "]}),(0,w.jsx)(l.Ay,{item:!0,xs:12,sm:6,children:(0,w.jsxs)(r.A,{spacing:1.25,children:[(0,w.jsx)(p.A,{htmlFor:"personal-last-name",children:"Name"}),(0,w.jsx)(u.A,{fullWidth:!0,id:"personal-last-name",placeholder:"Name",onChange:e=>z(e.target.value),value:W,autoComplete:"off"})]})}),(0,w.jsx)(l.Ay,{item:!0,xs:12,sm:6,children:(0,w.jsxs)(r.A,{spacing:1.25,children:[(0,w.jsx)(p.A,{htmlFor:"personal-phone",children:"Phone Number"}),(0,w.jsxs)(r.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:2,children:[(0,w.jsx)(m.A,{defaultValue:"+1",disabled:!0,sx:{cursor:"not-allowed"},children:(0,w.jsx)(g.A,{value:"+1",children:"+91"})}),(0,w.jsx)(u.A,{type:"number",id:"personal-phone",fullWidth:!0,placeholder:"Phone Number",onChange:e=>{e.target.value.toString().length<=10&&O(e.target.value)},value:M,autoComplete:"off",sx:{cursor:"not-allowed"}})]})]})}),(0,w.jsx)(l.Ay,{item:!0,xs:12,sm:6,children:(0,w.jsxs)(r.A,{spacing:1.25,children:[(0,w.jsx)(p.A,{htmlFor:"personal-email",children:"Email "}),(0,w.jsx)(u.A,{type:"email",fullWidth:!0,id:"personal-email",placeholder:"Email ",onChange:e=>E(e.target.value),value:N,autoComplete:"off"})]})}),(0,w.jsx)(l.Ay,{item:!0,xs:12,sm:6,children:(0,w.jsxs)(r.A,{spacing:1.25,children:[(0,w.jsx)(p.A,{htmlFor:"personal-location",children:"Door No"}),(0,w.jsx)(u.A,{fullWidth:!0,id:"personal-location",placeholder:"Door No",onChange:e=>H(e.target.value),value:P,autoComplete:"off"})]})}),(0,w.jsx)(l.Ay,{item:!0,xs:12,children:(0,w.jsxs)(r.A,{spacing:1.25,children:[(0,w.jsx)(p.A,{htmlFor:"personal-email",children:" Address"}),(0,w.jsx)(u.A,{variant:"outlined",id:"addressAuto1",fullWidth:!0,value:B,onChange:e=>{a?a&&V(e.target.value):(0,S.k)("Select Location First","warning",3e3)},InputProps:{endAdornment:(0,w.jsx)(h.A,{onClick:()=>{V(""),ae((0,o.A)((0,o.A)({},te),{},{doorno:"",suburb:"",city:"",postcode:"",landmark:""})),ne({latitude:0,longitude:0})},size:"small",children:(0,w.jsx)(C.A,{})})}})]})}),(0,w.jsx)(l.Ay,{item:!0,xs:12,sm:6,children:(0,w.jsxs)(r.A,{spacing:1.25,children:[(0,w.jsx)(p.A,{htmlFor:"personal-location",children:"Location"}),(0,w.jsx)(u.A,{fullWidth:!0,id:"personal-location",placeholder:"Location",onChange:e=>ae((0,o.A)((0,o.A)({},te),{},{suburb:e.target.value})),value:te.suburb,autoComplete:"off"})]})}),(0,w.jsx)(l.Ay,{item:!0,xs:12,sm:6,children:(0,w.jsxs)(r.A,{spacing:1.25,children:[(0,w.jsx)(p.A,{htmlFor:"personal-zipcode",children:"City"}),(0,w.jsx)(u.A,{fullWidth:!0,id:"personal-zipcode",placeholder:"City",onChange:e=>ae((0,o.A)((0,o.A)({},te),{},{city:e.target.value})),value:te.city,autoComplete:"off"})]})}),(0,w.jsx)(l.Ay,{item:!0,xs:12,sm:6,children:(0,w.jsxs)(r.A,{spacing:1.25,children:[(0,w.jsx)(p.A,{htmlFor:"personal-location",children:"State"}),(0,w.jsx)(u.A,{fullWidth:!0,id:"personal-location",placeholder:"State",onChange:e=>ae((0,o.A)((0,o.A)({},te),{},{state:e.target.value})),value:te.state,autoComplete:"off"})]})}),(0,w.jsx)(l.Ay,{item:!0,xs:12,sm:6,children:(0,w.jsxs)(r.A,{spacing:1.25,children:[(0,w.jsx)(p.A,{htmlFor:"personal-zipcode",children:"Post Code"}),(0,w.jsx)(u.A,{fullWidth:!0,type:"number",id:"personal-zipcode",placeholder:"Zipcode",onChange:e=>ae((0,o.A)((0,o.A)({},te),{},{postcode:e.target.value})),value:te.postcode,autoComplete:"off"})]})}),(0,w.jsx)(l.Ay,{item:!0,xs:12,children:(0,w.jsxs)(r.A,{spacing:1.25,children:[(0,w.jsx)(p.A,{htmlFor:"personal-email",children:"Landmark"}),(0,w.jsx)(u.A,{type:"email",fullWidth:!0,id:"personal-email",placeholder:"Landmark",onChange:e=>D(e.target.value),value:R,autoComplete:"off"})]})})]})}),(0,w.jsx)(l.Ay,{item:!0,xs:12,children:(0,w.jsx)(r.A,{direction:{xs:"column",sm:"row"},justifyContent:"flex-end",alignItems:{xs:"stretch",sm:"center"},spacing:2,children:(0,w.jsx)(A.A,{variant:"contained",fullWidth:t,onClick:()=>{""===a?re("Select Applocation "):""===$?re("Select Tenant"):""===W?re("Enter Name"):""===M?re("Enter Mobile Number "):""===L?re("Enter Address "):""===te.city?re("Enter City "):""===te.state?re("Enter State "):""===te.suburb?re("Enter location "):""===te.postcode?re("Enter Post Code "):""===R?re("Enter Land Mark "):""===te.latitude?re("Invalid latitude "):""===te.longitude?re("Invaiid Longitude "):(async()=>{let e={applocationid:+a,tenantid:+$,customerid:0,configid:1,firstname:W,dialcode:"+91",contactno:M,email:N,doorno:P,address:te.address,suburb:te.suburb,city:te.city,state:te.state,postcode:te.postcode,landmark:R,latitude:oe.latitude.toString(),longitude:oe.longitude.toString(),profileimage:"",devicetype:"",deviceid:"",customertoken:"",primaryaddress:1};console.log(e),ie(!0);try{await x.A.post("".concat("https://jupiter.nearle.app/live/api/v1","/customers/create"),e).then((e=>{console.log(e),e.data.status?((0,y.M8)(" Created Successfully ",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),le("/nearle/customers")):"Customer Already available"==e.data.message&&(0,y.M8)("Customer Already available",{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),ie(!1)})).catch((e=>{console.log(e),ie(!1),(0,y.M8)(e.message,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3})}))}catch(t){console.log(t),ie(!1)}})()},children:"Create"})})})]})})]})}}}]); \ No newline at end of file diff --git a/build/static/js/4793.72fb0edf.chunk.js b/build/static/js/4793.72fb0edf.chunk.js deleted file mode 100644 index cdb6a01..0000000 --- a/build/static/js/4793.72fb0edf.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[4793],{20466:(e,t,a)=>{a.d(t,{k:()=>n});var o=a(8881);const n=(e,t,a)=>(0,o.M8)(e,{variant:t,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:a||2e3})},23266:(e,t,a)=>{a.d(t,{A:()=>w});var o=a(98587),n=a(58168),s=a(9950),i=a(72004),l=a(3484),r=a(99269),c=a(59254),d=a(19608),u=a(18463),p=a(13372),m=a(24184),g=a(79044),h=a(31506),A=a(40777),v=a(92455),x=a(88543),f=a(45558),b=a(1614);function y(e){return(0,b.Ay)("MuiMenuItem",e)}const j=(0,f.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var C=a(44414);const _=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],S=(0,c.Ay)(m.A,{shouldForwardProp:e=>(0,d.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,a.dense&&t.dense,a.divider&&t.divider,!a.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:a}=e;return(0,n.A)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!a.disableGutters&&{paddingLeft:16,paddingRight:16},a.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(j.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,r.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(j.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,r.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(j.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,r.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,r.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(j.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(j.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(A.A.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(A.A.inset)]:{marginLeft:52},["& .".concat(x.A.root)]:{marginTop:0,marginBottom:0},["& .".concat(x.A.inset)]:{paddingLeft:36},["& .".concat(v.A.root)]:{minWidth:36}},!a.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},a.dense&&(0,n.A)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(v.A.root," svg")]:{fontSize:"1.25rem"}}))})),w=s.forwardRef((function(e,t){const a=(0,u.b)({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:c="li",dense:d=!1,divider:m=!1,disableGutters:A=!1,focusVisibleClassName:v,role:x="menuitem",tabIndex:f,className:b}=a,j=(0,o.A)(a,_),w=s.useContext(p.A),k=s.useMemo((()=>({dense:d||w.dense||!1,disableGutters:A})),[w.dense,d,A]),I=s.useRef(null);(0,g.A)((()=>{r&&I.current&&I.current.focus()}),[r]);const M=(0,n.A)({},a,{dense:k.dense,divider:m,disableGutters:A}),O=(e=>{const{disabled:t,dense:a,divider:o,disableGutters:s,selected:i,classes:r}=e,c={root:["root",a&&"dense",t&&"disabled",!s&&"gutters",o&&"divider",i&&"selected"]},d=(0,l.A)(c,y,r);return(0,n.A)({},r,d)})(a),N=(0,h.A)(I,t);let E;return a.disabled||(E=void 0!==f?f:-1),(0,C.jsx)(p.A.Provider,{value:k,children:(0,C.jsx)(S,(0,n.A)({ref:N,role:x,tabIndex:E,component:c,focusVisibleClassName:(0,i.A)(O.focusVisible,v),className:(0,i.A)(O.root,b)},j,{ownerState:M,classes:O}))})}))},59212:(e,t,a)=>{a.d(t,{A:()=>p});var o=a(89379),n=a(9950),s=a(93230),i=a(41413),l=a(77922),r=a(29925),c=a(26910),d=a(31222),u=a(44414);const p=(0,n.forwardRef)(((e,t)=>{let{setAppId:a,setLocoName:p,setPage:m,sx:g,textfeildSx:h,textfieldSx:A,pill:v=!1,accentColor:x="#6366f1",icon:f,placeholder:b="Select Zone",paperComponent:y}=e;const[j,C]=(0,n.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,n.useEffect)((()=>{0===j.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const t=await c.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(t.data.status){const e=[...t.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),C(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[j.length]);const _=e=>"".concat(x).concat(e),S=_("26"),w=_("18"),k=v?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(S)},"&.Mui-focused fieldset":{borderColor:x,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},I=v&&(0,u.jsx)(s.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,u.jsx)(i.A,{sx:{width:24,height:24,bgcolor:w,color:x,transition:"background-color 0.15s, color 0.15s"},children:f||(0,u.jsx)(d.HPi,{size:14})})});return(0,u.jsx)(l.A,{id:"location-autocomplete",options:j||[],getOptionLabel:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.locationname)&&void 0!==t?t:""},PaperComponent:y,sx:(0,o.A)({},g),onChange:(e,t,o)=>{"clear"===o?(null===a||void 0===a||a(0),null===p||void 0===p||p(""),null===m||void 0===m||m(0)):t&&(null===a||void 0===a||a(t.applocationid),null===p||void 0===p||p(t.locationname),null===m||void 0===m||m(0))},renderInput:e=>v?(0,u.jsx)(r.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,placeholder:b,InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:I}),sx:(0,o.A)((0,o.A)({},k),A||h||{})})):(0,u.jsx)(r.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,label:"Select Zones",sx:(0,o.A)({},A||h||{})}))})}))},94793:(e,t,a)=>{a.r(t),a.d(t,{default:()=>k});var o=a(89379),n=a(9950),s=a(14857),i=a(47223),l=a(60899),r=a(93230),c=a(82053),d=a(77922),u=a(29925),p=a(19647),m=a(70006),g=a(23266),h=a(25333),A=a(10226),v=a(50027),x=a(26910),f=a(52351),b=a(99459),y=a(8881),j=a(28429),C=a(96319),_=a(59212),S=a(20466),w=a(44414);const k=()=>{const e=(0,s.A)(),t=(0,i.A)(e.breakpoints.down("md")),[a,k]=(0,n.useState)(0),I=(0,n.useRef)(null),[M,O]=(0,n.useState)(""),[N,E]=(0,n.useState)(""),[L,F]=(0,n.useState)(""),[W,z]=(0,n.useState)(""),[P,H]=(0,n.useState)(""),[R,D]=(0,n.useState)(""),[B,V]=(0,n.useState)(""),[G,T]=(0,n.useState)(),[X,Z]=(0,n.useState)(),[J,K]=(0,n.useState)(),[Y,q]=(0,n.useState)("Select Location"),[Q,U]=(0,n.useState)([]),[$,ee]=(0,n.useState)(0),[te,ae]=(0,n.useState)({}),[oe,ne]=(0,n.useState)({latitude:0,longitude:0}),[se,ie]=(0,n.useState)(!1),le=(0,j.Zp)();b.A.setApiKey("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8"),(0,n.useEffect)((()=>{if(B){const e=document.getElementById("addressAuto1"),t=new window.google.maps.places.Autocomplete(e,{strictBounds:!0,bounds:new window.google.maps.Circle({center:new window.google.maps.LatLng(G,X),radius:1e3*J}).getBounds()});t.addListener("place_changed",(()=>{const e=t.getPlace();V("".concat(e.name,", ").concat(e.formatted_address)),console.log("new place",e),console.log(" pick (new place) lat lng",{lat:e.geometry.location.lat(),lng:e.geometry.location.lng()}),ne({latitude:e.geometry.location.lat(),longitude:e.geometry.location.lng()}),F("".concat(e.name," ").concat(e.formatted_address)),ae((0,o.A)((0,o.A)({},te),{},{address:"".concat(e.name," ").concat(e.formatted_address)}));const a={address:"".concat(e.name," ").concat(e.formatted_address),street_number:"",route:"",locality:"",sublocality_level_1:"",administrative_area_level_3:"",administrative_area_level_1:"",country:"",postal_code:""};e.address_components.forEach((e=>{e.types.forEach((t=>{switch(t){case"street_number":a.street_number=e.long_name;break;case"route":a.route=e.long_name;break;case"locality":a.locality=e.long_name;break;case"sublocality_level_1":a.sublocality_level_1=e.long_name;break;case"administrative_area_level_3":a.administrative_area_level_3=e.long_name;break;case"administrative_area_level_1":a.administrative_area_level_1=e.long_name;break;case"country":a.country=e.long_name;break;case"postal_code":a.postal_code=e.long_name}}))})),ae((0,o.A)((0,o.A)({},te),{},{address:a.address,doorno:"".concat(a.street_number," ").concat(a.route),suburb:a.administrative_area_level_3,city:a.locality,state:a.administrative_area_level_1,postcode:a.postal_code,latitude:e.geometry.location.lat(),longitude:e.geometry.location.lng()})),console.log("Pick Address:",a)}))}}),[B]);(0,n.useEffect)((()=>{a&&(async()=>{ie(!0),await x.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getapplocations/?applocationid=").concat(a)).then((e=>{console.log("getapplocations",e);const{latitude:t,longitude:a,radius:o}=e.data.details[0];e.data.status&&(T(t),Z(a),K(o),console.log("radius",o)),ie(!1)})).catch((e=>{console.log(e),ie(!1)}))})()}),[a]);(0,n.useEffect)((()=>{a&&(async e=>{ie(!0),await x.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenants/?applocationid=").concat(e,"&status=active")).then((e=>{if(console.log(e),e.data.status){let t=[];e.data.details.map((e=>{t.push((0,o.A)((0,o.A)({},e),{},{label:"".concat(e.tenantname)}))})),U(t)}ie(!1)})).catch((e=>{console.log(e),ie(!1)}))})(a)}),[a]);const re=e=>{(0,y.M8)(e,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3})};return(0,w.jsxs)(w.Fragment,{children:[se&&(0,w.jsx)(f.A,{}),(0,w.jsx)(l.Ay,{item:!0,xs:12,sx:{mb:2},children:(0,w.jsx)(r.A,{direction:"row",justifyContent:"space-between",alignItems:"center",children:(0,w.jsx)(c.A,{variant:"h3",children:"Create Customer"})})}),(0,w.jsx)(v.A,{sx:{p:{xs:1.5,md:3}},children:(0,w.jsxs)(l.Ay,{container:!0,spacing:{xs:2,md:3},children:[(0,w.jsx)(l.Ay,{item:!0,xs:12,children:(0,w.jsxs)(l.Ay,{container:!0,spacing:{xs:2,md:3},children:[(0,w.jsx)(l.Ay,{item:!0,xs:12,md:6,children:(0,w.jsx)(_.A,{ref:I,locaName:Y,setAppId:k,setLocoName:q,sx:{}})}),(0,w.jsxs)(l.Ay,{item:!0,xs:12,md:6,children:[(0,w.jsx)(d.A,{fullWidth:!0,disabled:0==a,id:"free-solo-demo",sx:{},options:Q||[],renderInput:e=>(0,w.jsx)(u.A,(0,o.A)((0,o.A)({},e),{},{label:"Choose Client",focused:!0})),onChange:(e,t,a)=>{t?(console.log("Client",t),(async e=>{try{const t=await x.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantlocations/?tenantid=").concat(e));console.log("gettenantlocations",t.data.details),t.data.details.length}catch(t){console.log("gettenantlocations",t)}})(t.tenantid),ee(t.tenantid)):(setClientinfo({}),setTenantid(""))}})," "]}),(0,w.jsx)(l.Ay,{item:!0,xs:12,sm:6,children:(0,w.jsxs)(r.A,{spacing:1.25,children:[(0,w.jsx)(p.A,{htmlFor:"personal-last-name",children:"Name"}),(0,w.jsx)(u.A,{fullWidth:!0,id:"personal-last-name",placeholder:"Name",onChange:e=>z(e.target.value),value:W,autoComplete:"off"})]})}),(0,w.jsx)(l.Ay,{item:!0,xs:12,sm:6,children:(0,w.jsxs)(r.A,{spacing:1.25,children:[(0,w.jsx)(p.A,{htmlFor:"personal-phone",children:"Phone Number"}),(0,w.jsxs)(r.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:2,children:[(0,w.jsx)(m.A,{defaultValue:"+1",disabled:!0,sx:{cursor:"not-allowed"},children:(0,w.jsx)(g.A,{value:"+1",children:"+91"})}),(0,w.jsx)(u.A,{type:"number",id:"personal-phone",fullWidth:!0,placeholder:"Phone Number",onChange:e=>{e.target.value.toString().length<=10&&O(e.target.value)},value:M,autoComplete:"off",sx:{cursor:"not-allowed"}})]})]})}),(0,w.jsx)(l.Ay,{item:!0,xs:12,sm:6,children:(0,w.jsxs)(r.A,{spacing:1.25,children:[(0,w.jsx)(p.A,{htmlFor:"personal-email",children:"Email "}),(0,w.jsx)(u.A,{type:"email",fullWidth:!0,id:"personal-email",placeholder:"Email ",onChange:e=>E(e.target.value),value:N,autoComplete:"off"})]})}),(0,w.jsx)(l.Ay,{item:!0,xs:12,sm:6,children:(0,w.jsxs)(r.A,{spacing:1.25,children:[(0,w.jsx)(p.A,{htmlFor:"personal-location",children:"Door No"}),(0,w.jsx)(u.A,{fullWidth:!0,id:"personal-location",placeholder:"Door No",onChange:e=>H(e.target.value),value:P,autoComplete:"off"})]})}),(0,w.jsx)(l.Ay,{item:!0,xs:12,children:(0,w.jsxs)(r.A,{spacing:1.25,children:[(0,w.jsx)(p.A,{htmlFor:"personal-email",children:" Address"}),(0,w.jsx)(u.A,{variant:"outlined",id:"addressAuto1",fullWidth:!0,value:B,onChange:e=>{a?a&&V(e.target.value):(0,S.k)("Select Location First","warning",3e3)},InputProps:{endAdornment:(0,w.jsx)(h.A,{onClick:()=>{V(""),ae((0,o.A)((0,o.A)({},te),{},{doorno:"",suburb:"",city:"",postcode:"",landmark:""})),ne({latitude:0,longitude:0})},size:"small",children:(0,w.jsx)(C.A,{})})}})]})}),(0,w.jsx)(l.Ay,{item:!0,xs:12,sm:6,children:(0,w.jsxs)(r.A,{spacing:1.25,children:[(0,w.jsx)(p.A,{htmlFor:"personal-location",children:"Location"}),(0,w.jsx)(u.A,{fullWidth:!0,id:"personal-location",placeholder:"Location",onChange:e=>ae((0,o.A)((0,o.A)({},te),{},{suburb:e.target.value})),value:te.suburb,autoComplete:"off"})]})}),(0,w.jsx)(l.Ay,{item:!0,xs:12,sm:6,children:(0,w.jsxs)(r.A,{spacing:1.25,children:[(0,w.jsx)(p.A,{htmlFor:"personal-zipcode",children:"City"}),(0,w.jsx)(u.A,{fullWidth:!0,id:"personal-zipcode",placeholder:"City",onChange:e=>ae((0,o.A)((0,o.A)({},te),{},{city:e.target.value})),value:te.city,autoComplete:"off"})]})}),(0,w.jsx)(l.Ay,{item:!0,xs:12,sm:6,children:(0,w.jsxs)(r.A,{spacing:1.25,children:[(0,w.jsx)(p.A,{htmlFor:"personal-location",children:"State"}),(0,w.jsx)(u.A,{fullWidth:!0,id:"personal-location",placeholder:"State",onChange:e=>ae((0,o.A)((0,o.A)({},te),{},{state:e.target.value})),value:te.state,autoComplete:"off"})]})}),(0,w.jsx)(l.Ay,{item:!0,xs:12,sm:6,children:(0,w.jsxs)(r.A,{spacing:1.25,children:[(0,w.jsx)(p.A,{htmlFor:"personal-zipcode",children:"Post Code"}),(0,w.jsx)(u.A,{fullWidth:!0,type:"number",id:"personal-zipcode",placeholder:"Zipcode",onChange:e=>ae((0,o.A)((0,o.A)({},te),{},{postcode:e.target.value})),value:te.postcode,autoComplete:"off"})]})}),(0,w.jsx)(l.Ay,{item:!0,xs:12,children:(0,w.jsxs)(r.A,{spacing:1.25,children:[(0,w.jsx)(p.A,{htmlFor:"personal-email",children:"Landmark"}),(0,w.jsx)(u.A,{type:"email",fullWidth:!0,id:"personal-email",placeholder:"Landmark",onChange:e=>D(e.target.value),value:R,autoComplete:"off"})]})})]})}),(0,w.jsx)(l.Ay,{item:!0,xs:12,children:(0,w.jsx)(r.A,{direction:{xs:"column",sm:"row"},justifyContent:"flex-end",alignItems:{xs:"stretch",sm:"center"},spacing:2,children:(0,w.jsx)(A.A,{variant:"contained",fullWidth:t,onClick:()=>{""===a?re("Select Applocation "):""===$?re("Select Tenant"):""===W?re("Enter Name"):""===M?re("Enter Mobile Number "):""===L?re("Enter Address "):""===te.city?re("Enter City "):""===te.state?re("Enter State "):""===te.suburb?re("Enter location "):""===te.postcode?re("Enter Post Code "):""===R?re("Enter Land Mark "):""===te.latitude?re("Invalid latitude "):""===te.longitude?re("Invaiid Longitude "):(async()=>{let e={applocationid:+a,tenantid:+$,customerid:0,configid:1,firstname:W,dialcode:"+91",contactno:M,email:N,doorno:P,address:te.address,suburb:te.suburb,city:te.city,state:te.state,postcode:te.postcode,landmark:R,latitude:oe.latitude.toString(),longitude:oe.longitude.toString(),profileimage:"",devicetype:"",deviceid:"",customertoken:"",primaryaddress:1};console.log(e),ie(!0);try{await x.A.post("".concat("https://jupiter.nearle.app/live/api/v1","/customers/create"),e).then((e=>{console.log(e),e.data.status?((0,y.M8)(" Created Successfully ",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),le("/nearle/customers")):"Customer Already available"==e.data.message&&(0,y.M8)("Customer Already available",{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),ie(!1)})).catch((e=>{console.log(e),ie(!1),(0,y.M8)(e.message,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3})}))}catch(t){console.log(t),ie(!1)}})()},children:"Create"})})})]})})]})}}}]); \ No newline at end of file diff --git a/build/static/js/4894.cfa4d36d.chunk.js b/build/static/js/4894.cfa4d36d.chunk.js deleted file mode 100644 index 7e3fc9e..0000000 --- a/build/static/js/4894.cfa4d36d.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[4894],{36150:(t,e,s)=>{s.d(e,{I:()=>a});var i=s(69347),r=s(1729);function a(t,e){return(0,r.t)(t,i.$,e)}},46639:(t,e,s)=>{s.d(e,{A:()=>E});var i=s(57528),r=s(98587),a=s(58168),n=s(9950),o=s(72004),c=s(3484),l=s(88283),h=s(89548),u=s(18463),d=s(59254),v=s(45558),A=s(1614);function f(t){return(0,A.Ay)("MuiCircularProgress",t)}(0,v.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var p,m,g,b,k=s(44414);const S=["className","color","disableShrink","size","style","thickness","value","variant"];let w,y,x,P;const M=44,C=(0,l.i7)(w||(w=p||(p=(0,i.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),R=(0,l.i7)(y||(y=m||(m=(0,i.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),N=(0,d.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:s}=t;return[e.root,e[s.variant],e["color".concat((0,h.A)(s.color))]]}})((t=>{let{ownerState:e,theme:s}=t;return(0,a.A)({display:"inline-block"},"determinate"===e.variant&&{transition:s.transitions.create("transform")},"inherit"!==e.color&&{color:(s.vars||s).palette[e.color].main})}),(t=>{let{ownerState:e}=t;return"indeterminate"===e.variant&&(0,l.AH)(x||(x=g||(g=(0,i.A)(["\n animation: "," 1.4s linear infinite;\n "]))),C)})),O=(0,d.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),D=(0,d.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:s}=t;return[e.circle,e["circle".concat((0,h.A)(s.variant))],s.disableShrink&&e.circleDisableShrink]}})((t=>{let{ownerState:e,theme:s}=t;return(0,a.A)({stroke:"currentColor"},"determinate"===e.variant&&{transition:s.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(t=>{let{ownerState:e}=t;return"indeterminate"===e.variant&&!e.disableShrink&&(0,l.AH)(P||(P=b||(b=(0,i.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),R)})),E=n.forwardRef((function(t,e){const s=(0,u.b)({props:t,name:"MuiCircularProgress"}),{className:i,color:n="primary",disableShrink:l=!1,size:d=40,style:v,thickness:A=3.6,value:p=0,variant:m="indeterminate"}=s,g=(0,r.A)(s,S),b=(0,a.A)({},s,{color:n,disableShrink:l,size:d,thickness:A,value:p,variant:m}),w=(t=>{const{classes:e,variant:s,color:i,disableShrink:r}=t,a={root:["root",s,"color".concat((0,h.A)(i))],svg:["svg"],circle:["circle","circle".concat((0,h.A)(s)),r&&"circleDisableShrink"]};return(0,c.A)(a,f,e)})(b),y={},x={},P={};if("determinate"===m){const t=2*Math.PI*((M-A)/2);y.strokeDasharray=t.toFixed(3),P["aria-valuenow"]=Math.round(p),y.strokeDashoffset="".concat(((100-p)/100*t).toFixed(3),"px"),x.transform="rotate(-90deg)"}return(0,k.jsx)(N,(0,a.A)({className:(0,o.A)(w.root,i),style:(0,a.A)({width:d,height:d},x,v),ownerState:b,ref:e,role:"progressbar"},P,g,{children:(0,k.jsx)(O,{className:w.svg,ownerState:b,viewBox:"".concat(22," ").concat(22," ").concat(M," ").concat(M),children:(0,k.jsx)(D,{className:w.circle,style:y,ownerState:b,cx:M,cy:M,r:(M-A)/2,fill:"none",strokeWidth:A})})}))}))},51778:(t,e,s)=>{s.d(e,{n:()=>P});var i,r,a,n,o,c,l=s(89379),h=s(9950),u=s(39790),d=s(55149),v=s(64137),A=s(83568),f=s(53167),p=s(92750),m=s(15941),g=s(95732),b=s(61664),k=(i=new WeakMap,r=new WeakMap,a=new WeakMap,n=new WeakMap,o=new WeakSet,c=new WeakSet,class extends g.Q{constructor(t,e){super(),(0,u.A)(this,c),(0,u.A)(this,o),(0,d.A)(this,i,{writable:!0,value:void 0}),(0,d.A)(this,r,{writable:!0,value:void 0}),(0,d.A)(this,a,{writable:!0,value:void 0}),(0,d.A)(this,n,{writable:!0,value:void 0}),(0,f.A)(this,r,void 0),(0,f.A)(this,i,t),this.setOptions(e),this.bindMethods(),(0,A.A)(this,o,S).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;const s=this.options;this.options=(0,v.A)(this,i).defaultMutationOptions(t),(0,b.f8)(s,this.options)||(0,v.A)(this,i).getMutationCache().notify({type:"observerOptionsUpdated",mutation:(0,v.A)(this,a),observer:this}),null===(e=(0,v.A)(this,a))||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,v.A)(this,a))||void 0===t||t.removeObserver(this))}onMutationUpdate(t){(0,A.A)(this,o,S).call(this),(0,A.A)(this,c,w).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,f.A)(this,a,void 0),(0,A.A)(this,o,S).call(this),(0,A.A)(this,c,w).call(this)}mutate(t,e){var s;return(0,f.A)(this,n,e),null===(s=(0,v.A)(this,a))||void 0===s||s.removeObserver(this),(0,f.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 S(){var t,e;const s=null!==(t=null===(e=(0,v.A)(this,a))||void 0===e?void 0:e.state)&&void 0!==t?t:(0,p.$)();(0,f.A)(this,r,(0,l.A)((0,l.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 w(t){m.j.batch((()=>{if((0,v.A)(this,n)&&this.hasListeners()){const u=(0,v.A)(this,r).variables,d=(0,v.A)(this,r).context;var e,s,i,a;if("success"===(null===t||void 0===t?void 0:t.type))null===(e=(s=(0,v.A)(this,n)).onSuccess)||void 0===e||e.call(s,t.data,u,d),null===(i=(a=(0,v.A)(this,n)).onSettled)||void 0===i||i.call(a,t.data,null,u,d);else if("error"===(null===t||void 0===t?void 0:t.type)){var o,c,l,h;null===(o=(c=(0,v.A)(this,n)).onError)||void 0===o||o.call(c,t.error,u,d),null===(l=(h=(0,v.A)(this,n)).onSettled)||void 0===l||l.call(h,void 0,t.error,u,d)}}this.listeners.forEach((t=>{t((0,v.A)(this,r))}))}))}var y=s(15441),x=s(98986);function P(t,e){const s=(0,y.jE)(e),[i]=h.useState((()=>new k(s,t)));h.useEffect((()=>{i.setOptions(t)}),[i,t]);const r=h.useSyncExternalStore(h.useCallback((t=>i.subscribe(m.j.batchCalls(t))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),a=h.useCallback(((t,e)=>{i.mutate(t,e).catch(M)}),[i]);if(r.error&&(0,x.G)(i.options.throwOnError,[r.error]))throw r.error;return(0,l.A)((0,l.A)({},r),{},{mutate:a,mutateAsync:r.mutate})}function M(){}},60010:(t,e,s)=>{s.d(e,{q:()=>c});var i=s(89379),r=s(69347),a=s(45247),n=class extends r.${constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,e){super.setOptions((0,i.A)((0,i.A)({},t),{},{behavior:(0,a.PL)()}),e)}getOptimisticResult(t){return t.behavior=(0,a.PL)(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch((0,i.A)((0,i.A)({},t),{},{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(t){return this.fetch((0,i.A)((0,i.A)({},t),{},{meta:{fetchMore:{direction:"backward"}}}))}createResult(t,e){var s,r;const{state:n}=t,o=super.createResult(t,e),{isFetching:c,isRefetching:l}=o,h=c&&"forward"===(null===(s=n.fetchMeta)||void 0===s||null===(s=s.fetchMore)||void 0===s?void 0:s.direction),u=c&&"backward"===(null===(r=n.fetchMeta)||void 0===r||null===(r=r.fetchMore)||void 0===r?void 0:r.direction);return(0,i.A)((0,i.A)({},o),{},{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,a.rB)(e,n.data),hasPreviousPage:(0,a.RQ)(e,n.data),isFetchingNextPage:h,isFetchingPreviousPage:u,isRefetching:l&&!h&&!u})}},o=s(1729);function c(t,e){return(0,o.t)(t,n,e)}},79739:(t,e,s)=>{s.d(e,{A:()=>p});var i=s(98587),r=s(58168),a=s(9950),n=s(72004),o=s(3484),c=s(59254),l=s(18463),h=s(45558),u=s(1614);function d(t){return(0,u.Ay)("MuiDialogActions",t)}(0,h.A)("MuiDialogActions",["root","spacing"]);var v=s(44414);const A=["className","disableSpacing"],f=(0,c.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:s}=t;return[e.root,!s.disableSpacing&&e.spacing]}})((t=>{let{ownerState:e}=t;return(0,r.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),p=a.forwardRef((function(t,e){const s=(0,l.b)({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:c=!1}=s,h=(0,i.A)(s,A),u=(0,r.A)({},s,{disableSpacing:c}),p=(t=>{const{classes:e,disableSpacing:s}=t,i={root:["root",!s&&"spacing"]};return(0,o.A)(i,d,e)})(u);return(0,v.jsx)(f,(0,r.A)({className:(0,n.A)(p.root,a),ownerState:u,ref:e},h))}))}}]); \ No newline at end of file diff --git a/build/static/js/4917.5bb4b5d9.chunk.js b/build/static/js/4917.5bb4b5d9.chunk.js deleted file mode 100644 index 7f28d3d..0000000 --- a/build/static/js/4917.5bb4b5d9.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[4917],{4159:function(e){e.exports=function(){"use strict";var e=1e3,r=6e4,t=36e5,n="millisecond",i="second",s="minute",o="hour",a="day",d="week",c="month",l="quarter",u="year",f="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var r=["th","st","nd","rd"],t=e%100;return"["+e+(r[(t-20)%10]||r[t]||r[0])+"]"}},x=function(e,r,t){var n=String(e);return!n||n.length>=r?e:""+Array(r+1-n.length).join(t)+e},g={s:x,z:function(e){var r=-e.utcOffset(),t=Math.abs(r),n=Math.floor(t/60),i=t%60;return(r<=0?"+":"-")+x(n,2,"0")+":"+x(i,2,"0")},m:function e(r,t){if(r.date()1)return e(o[0])}else{var a=r.name;A[a]=r,i=a}return!n&&i&&(y=i),i||!n&&y},$=function(e,r){if(S(e))return e.clone();var t="object"==typeof r?r:{};return t.date=e,t.args=arguments,new j(t)},w=g;w.l=_,w.i=S,w.w=function(e,r){return $(e,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var j=function(){function v(e){this.$L=_(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[b]=!0}var x=v.prototype;return x.parse=function(e){this.$d=function(e){var r=e.date,t=e.utc;if(null===r)return new Date(NaN);if(w.u(r))return new Date;if(r instanceof Date)return new Date(r);if("string"==typeof r&&!/Z$/i.test(r)){var n=r.match(m);if(n){var i=n[2]-1||0,s=(n[7]||"0").substring(0,3);return t?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)}}return new Date(r)}(e),this.init()},x.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},x.$utils=function(){return w},x.isValid=function(){return!(this.$d.toString()===h)},x.isSame=function(e,r){var t=$(e);return this.startOf(r)<=t&&t<=this.endOf(r)},x.isAfter=function(e,r){return $(e){"use strict";t.r(r),t.d(r,{default:()=>L});var n=t(89379),i=t(9950),s=t(28429),o=t(14857),a=t(47223),d=t(16491),c=t(55158),l=t(93230),u=t(83274),f=t(25333),h=t(82053),m=t(77922),p=t(29925),v=t(10226),x=t(48159),g=t(84142),y=t(48089),A=t(25277),b=t(96583),S=t(40033),_=t(28170),$=t(79739),w=t(36150),j=t(51778),k=t(4159),M=t.n(k),D=t(63189),z=t(99324),C=t(6604),O=t(31222),I=t(81425),R=t(20466),W=t(90376),N=t(94826),E=t(88267),H=t(84702),T=t(44414);const Y=[{tuneid:1,type:"Balanced",value:"balanced"},{tuneid:2,type:"Aggressive Speed",value:"aggressive_speed"},{tuneid:3,type:"Fuel Saver",value:"fuel_saver"},{tuneid:4,type:"Zone Strict",value:"zone_strict"}];function F(e){return e.map((e=>{const r=Number(e.cumulativekms||0),t=Number(e.minkm||0),i=Number(e.baseprice||0),s=Number(e.priceperkm||0);return r<=t?(0,n.A)((0,n.A)({},e),{},{deliveryamt:i}):(0,n.A)((0,n.A)({},e),{},{deliveryamt:(r-t)*s+i})}))}const L=()=>{var e,r;const t=(0,s.Zp)(),k=(0,s.zy)().state||{},L=(0,o.A)(),J=(0,a.A)(L.breakpoints.down("md")),[P,U]=(0,i.useState)(k.dispatchPreviewData||null);(0,i.useEffect)((()=>{var e;k.dispatchPreviewData?"undefined"!==typeof window&&null!==(e=window.history)&&void 0!==e&&e.state&&window.history.replaceState((0,n.A)((0,n.A)({},window.history.state),{},{usr:null}),""):t("/nearle/orders",{replace:!0})}),[]);const[B,Z]=(0,i.useState)([]),[V,q]=(0,i.useState)(!1),[K,Q]=(0,i.useState)(0),[G,X]=(0,i.useState)(!1),[ee,re]=(0,i.useState)(!1),[te,ne]=(0,i.useState)((()=>new Set)),[ie,se]=(0,i.useState)(!1),[oe,ae]=(0,i.useState)(null),[de,ce]=(0,i.useState)(null),[le,ue]=(0,i.useState)(null),fe=null!==(e=k.aiMode)&&void 0!==e?e:1,he=k.selectedMode||null,me=k.deliveryData||[],pe=k.autoRiders||[],ve=k.absentRidersPayload||[],xe=k.rider||null,ge=(0,i.useMemo)((()=>{if(k.appId)return k.appId;if("undefined"!==typeof window){const e=localStorage.getItem("applocationid");return e?Number(e):0}return 0}),[k.appId]),{data:ye}=(0,w.I)({queryKey:["ridersList",ge],queryFn:I.Sd,enabled:!!ge,staleTime:3e5}),Ae=(0,i.useMemo)((()=>(e=>{if(!e)return[];const r=new Map,t=new Set,n=(e,n,i)=>{if(null==e)return;const s=String(e);r.has(s)||r.set(s,{rider_id:e,rider_name:n,orders:[]});const o=r.get(s);(i||[]).forEach((e=>{const r=null!=(null===e||void 0===e?void 0:e.orderid)?String(e.orderid):null;if(r){if(t.has(r))return;t.add(r)}o.orders.push(e)})),!o.rider_name&&n&&(o.rider_name=n)};return Array.isArray(e.zones)&&e.zones.length?e.zones.forEach((e=>{(e.riders||[]).forEach((e=>{var r;const t=null!==(r=e.rider_id)&&void 0!==r?r:e.userid,i=e.rider_name||e.username||"Rider ".concat(t);n(t,i,e.orders)}))})):Array.isArray(e.details)&&e.details.forEach((e=>{var r;const t=null!==(r=e.rider_id)&&void 0!==r?r:e.userid,i=e.rider_name||e.ridername||"Rider ".concat(t);n(t,i,[e])})),Array.from(r.values())})(P)),[P]),be=(0,i.useMemo)((()=>{const e=(e=>{const r=[];return e.forEach((e=>{const t=Number(e.rider_id),i=Number.isFinite(t)?t:e.rider_id;(e.orders||[]).forEach((t=>{r.push((0,n.A)((0,n.A)({},t),{},{rider_id:i,userid:i,rider_name:e.rider_name,rider:e.rider_name}))}))})),r})(Ae);return e.length?F(e):Array.isArray(null===P||void 0===P?void 0:P.details)?F(P.details):[]}),[Ae,P]);(0,i.useEffect)((()=>{const e=be.map((e=>({zone_name:e.zone_name,ordernotes:e.ordernotes,rider:e.rider,step:e.step,ordertype:e.ordertype,orderamount:e.orderamount,riderkms:e.riderkms,cumulativekms:e.cumulativekms,baseprice:e.baseprice,minkm:e.minkm,priceperkm:e.priceperkm,kms:e.kms,actualkms:e.actualkms,rider_charge:e.rider_charge,deliveryamt:e.deliveryamt,deliverycharges:e.deliverycharges,profit:e.profit})));Z(e)}),[be]);const Se=(0,j.n)({mutationFn:I.k3,onSuccess:()=>(0,R.k)("Notification sent Successfully","success",2e3),onError:e=>(0,R.k)(e.message,"error",2e3)}),_e=(0,j.n)({mutationFn:0==fe?I.FC:I.Yk,onSuccess:e=>{(0,R.k)("Orders Optimised Successfully","success",2e3),U(e),re(!1),ne(new Set),q(!1)},onError:e=>{(0,R.k)(e.message,"error",4e3),q(!1)},onSettled:()=>q(!1)}),$e=(0,j.n)({mutationFn:I.H2,onSuccess:()=>{(0,R.k)("Delivery Created Successfully","success",2e3),q(!1),null!==xe&&void 0!==xe&&xe.userfcmtoken&&Se.mutate(xe.userfcmtoken),t("/nearle/deliveries")},onError:e=>{(0,R.k)(e.message,"error",4e3),q(!1)},onSettled:()=>q(!1)}),we=(0,j.n)({mutationFn:I.U8,onMutate:()=>X(!0),onSuccess:e=>{Array.isArray(null===e||void 0===e?void 0:e.riders)?(U((r=>((e,r)=>{if(!e||!Array.isArray(null===r||void 0===r?void 0:r.riders))return e;const t=JSON.parse(JSON.stringify(e)),i=new Map(r.riders.map((e=>[String(e.rider_id),e.orders||[]])));Array.isArray(t.zones)&&t.zones.length?(t.zones.forEach((e=>{Array.isArray(e.riders)&&e.riders.forEach((e=>{var r;const t=String(null!==(r=e.rider_id)&&void 0!==r?r:e.userid);i.has(t)&&(e.orders=[])}))})),i.forEach(((e,r)=>{let n=!1;for(const s of t.zones){if(!Array.isArray(s.riders))continue;const t=s.riders.find((e=>{var t;return String(null!==(t=e.rider_id)&&void 0!==t?t:e.userid)===r}));if(t){t.orders=e,n=!0;break}}if(!n){var i;const n=t.zones[0];n.riders=n.riders||[],n.riders.push({rider_id:Number(r)||r,rider_name:(null===(i=e[0])||void 0===i?void 0:i.rider_name)||"Rider ".concat(r),orders:e})}}))):t.zones=[{zone_name:"Reconciled",riders:r.riders.map((e=>({rider_id:e.rider_id,rider_name:e.rider_name||"Rider ".concat(e.rider_id),orders:e.orders||[]})))}];const s=[];return t.zones.forEach((e=>{(e.riders||[]).forEach((e=>{(e.orders||[]).forEach((r=>{s.push((0,n.A)((0,n.A)({},r),{},{rider_id:e.rider_id,userid:e.rider_id,rider_name:e.rider_name,rider:e.rider_name}))}))}))})),t.details=s,t})(r,e))),re(!0),ne((r=>{const t=new Set(r);return e.riders.forEach((e=>t.delete(String(e.rider_id)))),t})),(0,R.k)("Steps reconciled \u2014 preview updated","success",2e3)):(0,R.k)("Reconcile returned no rider data","warning",3e3)},onError:e=>{(0,R.k)(e.message||"Reconcile failed","error",4e3)},onSettled:()=>X(!1)}),je=e=>{q(!0),0==fe?_e.mutate({deliveries:me}):he&&1==(null===he||void 0===he?void 0:he.value)?_e.mutate({deliveries:me,hypertuning_params:e||null,selectedMode:he,absent_riders:ve}):_e.mutate({data:{orders:me,riders:pe,config:{pay_type:"hourly",base_pay:300,strategy:"multi_trip"},absent_riders:ve},selectedMode:he})},ke=(e,r)=>{var t,n,i,s;const o=null!==(t=null!==(n=null!==(i=null!==(s=null===e||void 0===e?void 0:e.rider_id)&&void 0!==s?s:null===e||void 0===e?void 0:e.id)&&void 0!==i?i:null===r||void 0===r?void 0:r.rider_id)&&void 0!==n?n:null===r||void 0===r?void 0:r.userid)&&void 0!==t?t:null;ce(o),ae(r),ue(null),se(!0)};return(0,T.jsxs)(d.A,{sx:{display:"flex",flexDirection:"column",height:"100vh",overflow:"hidden",position:"relative"},children:[(0,T.jsx)(c.A,{sx:{position:"absolute",color:"#fff",zIndex:e=>e.zIndex.modal+1},open:V,children:(0,T.jsx)(N.A,{color:"inherit"})}),(0,T.jsx)(d.A,{sx:{py:1.25,px:2,borderBottom:"1px solid #eef2f6"},children:(0,T.jsxs)(l.A,{direction:{xs:"column",md:"row"},alignItems:{xs:"stretch",md:"center"},justifyContent:"space-between",spacing:1.25,children:[(0,T.jsxs)(l.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,T.jsx)(u.A,{title:"Back to orders",placement:"top",children:(0,T.jsx)(f.A,{onClick:()=>t("/nearle/orders"),sx:{bgcolor:"action.hover","&:hover":{bgcolor:"action.selected"}},children:(0,T.jsx)(z.eQE,{size:20})})}),(0,T.jsx)(h.A,{variant:"h3",fontWeight:600,children:"Assign Orders"})]}),(0,T.jsxs)(l.A,{direction:{xs:"column",sm:"row"},alignItems:{xs:"stretch",sm:"center"},spacing:1,sx:{width:{xs:"100%",md:"auto"}},children:[(0,T.jsx)(m.A,{options:Y||[],getOptionLabel:e=>e.type,sx:{minWidth:{xs:0,sm:250},maxWidth:600,flex:1,width:{xs:"100%",sm:"auto"}},renderInput:e=>(0,T.jsx)(p.A,(0,n.A)((0,n.A)({},e),{},{label:"Hyper Tuning"})),onChange:(e,r,t)=>{je("clear"===t?null:r.value)}}),(0,T.jsx)(v.A,{variant:"contained",color:"primary",startIcon:(0,T.jsx)(C.UF6,{}),fullWidth:J,onClick:()=>{q(!0),je("reshuffle")},children:"Re-Assign"}),(0,T.jsx)(W.Ay,{data:B,filename:"Orders_Detail_".concat(M()().format("YYYY-MM-DD_HHmmss"),".csv"),label:" CSV",style:{m:1}})]})]})}),(0,T.jsx)(d.A,{sx:{px:2,borderBottom:"1px solid #eef2f6"},children:(0,T.jsxs)(x.A,{value:K,onChange:(e,r)=>Q(r),variant:J?"fullWidth":"standard",sx:{minHeight:40},children:[(0,T.jsx)(g.A,{label:"Dispatch",sx:{minHeight:40,textTransform:"none",fontWeight:600}}),(0,T.jsx)(g.A,{label:"Reconcile",sx:{minHeight:40,textTransform:"none",fontWeight:600}})]})}),(0,T.jsxs)(d.A,{sx:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:[0===K&&P&&(0,T.jsx)(E.default,{data:P,embedded:!0,onChangeRider:(e,r)=>ke(r,e)},(null===P||void 0===P?void 0:P.__cacheKey)||JSON.stringify(Ae.length)),1===K&&(0,T.jsx)(d.A,{sx:{flex:1,overflow:"auto",p:2,bgcolor:"#f8fafc"},children:0===Ae.length?(0,T.jsx)(h.A,{sx:{color:"#94a3b8",textAlign:"center",mt:4},children:"No rider data available to reconcile."}):(0,T.jsxs)(l.A,{spacing:1.75,children:[(0,T.jsx)(d.A,{sx:{bgcolor:ee?"#ecfdf5":"#fffbeb",border:"1px solid ".concat(ee?"#a7f3d0":"#fde68a"),color:ee?"#065f46":"#92400e",borderRadius:"10px",px:1.5,py:1,fontSize:13},children:ee?"Steps have been reconciled. The Dispatch tab and Assign payload are updated.":"Click a numbered step to change its rider. Hit Reconcile to verify the corrected steps with the server."}),Ae.map((e=>{const r=e.orders.reduce(((e,r)=>e+parseFloat(r.actualkms||r.kms||0)),0);return(0,T.jsxs)(y.A,{sx:{p:{xs:1.5,md:2},borderRadius:"12px",boxShadow:"0 1px 3px rgba(15,23,42,0.06)"},children:[(0,T.jsxs)(l.A,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{mb:1.25,flexWrap:"wrap",gap:1},children:[(0,T.jsxs)(l.A,{direction:"row",alignItems:"center",gap:1.25,children:[(0,T.jsx)(d.A,{sx:{width:32,height:32,borderRadius:"8px",bgcolor:"#eef2ff",color:"#4f46e5",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:(0,T.jsx)(O.aVM,{size:18})}),(0,T.jsxs)(d.A,{children:[(0,T.jsx)(h.A,{sx:{fontWeight:700,fontSize:14,color:"#1e293b"},children:e.rider_name}),(0,T.jsxs)(h.A,{sx:{fontSize:11.5,color:"#64748b"},children:["ID: ",e.rider_id]})]})]}),(0,T.jsxs)(l.A,{direction:"row",gap:1,children:[(0,T.jsx)(A.A,{size:"small",label:"".concat(e.orders.length," stops"),sx:{fontWeight:600}}),(0,T.jsx)(A.A,{size:"small",label:"".concat(r.toFixed(1)," km"),variant:"outlined"})]})]}),(0,T.jsx)(l.A,{direction:"row",gap:1.25,sx:{flexWrap:"wrap",alignItems:"center"},children:e.orders.map(((r,t)=>{var n;const i=null!==(n=r.step)&&void 0!==n?n:t+1,s=(0,H.gM)(Number(i)-1);return(0,T.jsx)(u.A,{title:(0,T.jsxs)(d.A,{children:[(0,T.jsxs)("div",{children:["Order #",r.orderid]}),(0,T.jsx)("div",{children:r.deliveryaddress||r.deliverysuburb||""}),(0,T.jsx)("div",{style:{marginTop:4,opacity:.8},children:"Click to change rider"})]}),children:(0,T.jsx)(d.A,{onClick:()=>ke(e,r),sx:{width:36,height:36,borderRadius:"50%",bgcolor:s,color:"#fff",display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:800,fontSize:14,cursor:"pointer",boxShadow:"0 0 0 2px rgba(255,255,255,0.6), 0 1px 3px rgba(15,23,42,0.15)",transition:"transform 0.15s","&:hover":{transform:"scale(1.08)"}},children:i})},"".concat(r.orderid,"-").concat(t))}))})]},e.rider_id)})),(0,T.jsx)(d.A,{sx:{display:"flex",justifyContent:"center",pt:1.5,pb:2},children:(0,T.jsx)(v.A,{variant:"contained",color:"primary",size:"large",startIcon:(0,T.jsx)(O.$G1,{}),onClick:()=>{if(!Ae.length)return void(0,R.k)("No riders to reconcile","warning",3e3);const e=Ae.filter((e=>te.has(String(e.rider_id))));e.length?we.mutate({riders:e.map((e=>({rider_id:e.rider_id,orders:e.orders})))}):(0,R.k)("No edits to reconcile","info",2500)},disabled:G||0===te.size,fullWidth:J,sx:{minWidth:{xs:0,sm:220},borderRadius:"10px",textTransform:"none",fontWeight:700},children:G?"Reconciling...":0===te.size?"Reconcile":"Reconcile (".concat(te.size,")")})})]})})]}),(0,T.jsx)(d.A,{sx:{px:2,py:1.25,borderTop:"1px solid #eef2f6"},children:(0,T.jsxs)(l.A,{direction:{xs:"column-reverse",sm:"row"},gap:{xs:1,sm:2},alignItems:{xs:"stretch",sm:"center"},justifyContent:"end",children:[(0,T.jsx)(v.A,{variant:"contained",color:"secondary",startIcon:(0,T.jsx)(D.A,{}),fullWidth:J,onClick:()=>t(-1),children:"Back"}),(0,T.jsx)(v.A,{variant:"contained",fullWidth:J,onClick:()=>{null!==be&&void 0!==be&&be.length?(q(!0),$e.mutate({deliveries:be})):(0,R.k)("No deliveries to assign","error",3e3)},children:"Assign Orders"})]})}),(0,T.jsxs)(b.A,{open:ie,onClose:()=>se(!1),maxWidth:"xs",fullWidth:!0,fullScreen:J,PaperProps:{sx:{borderRadius:{xs:0,sm:3}}},children:[(0,T.jsx)(S.A,{sx:{fontWeight:700},children:"Change Rider"}),(0,T.jsxs)(_.A,{children:[(0,T.jsxs)(h.A,{sx:{mb:2,fontSize:13,color:"text.secondary"},children:["Move order #",null===oe||void 0===oe?void 0:oe.orderid," (step ",null!==(r=null===oe||void 0===oe?void 0:oe.step)&&void 0!==r?r:"\u2014",") to:"]}),(0,T.jsx)(m.A,{options:ye||[],getOptionLabel:e=>(null===e||void 0===e?void 0:e.label)||"".concat((null===e||void 0===e?void 0:e.firstname)||""," ").concat((null===e||void 0===e?void 0:e.lastname)||"").trim()||"",value:le,onChange:(e,r)=>ue(r),renderInput:e=>(0,T.jsx)(p.A,(0,n.A)((0,n.A)({},e),{},{label:"New rider",placeholder:"Pick a rider"}))})]}),(0,T.jsxs)($.A,{sx:{px:3,pb:2,flexDirection:{xs:"column-reverse",sm:"row"},gap:{xs:1,sm:0}},children:[(0,T.jsx)(v.A,{fullWidth:J,onClick:()=>se(!1),children:"Cancel"}),(0,T.jsx)(v.A,{variant:"contained",fullWidth:J,disabled:!le,onClick:()=>{if(!le||!oe)return;const e=Number(le.userid),r=le.label||"".concat(le.firstname||""," ").concat(le.lastname||"").trim()||"Rider ".concat(e);U((t=>((e,r)=>{let{orderId:t,newRiderId:i,newRiderName:s}=r;if(!e)return e;const o=JSON.parse(JSON.stringify(e));if(Array.isArray(o.details)&&(o.details=o.details.map((e=>String(e.orderid)===String(t)?(0,n.A)((0,n.A)({},e),{},{rider_id:i,userid:i,rider_name:s,rider:s}):e))),Array.isArray(o.zones)){let e=null,r=-1;for(let n=0;nString(e.orderid)===String(t)));-1!==a&&(e=o.orders[a],o.orders.splice(a,1),r=n)}}if(e){const t=(0,n.A)((0,n.A)({},e),{},{rider_id:i,userid:i,rider_name:s,rider:s});let a=!1;for(const e of o.zones){if(!Array.isArray(e.riders))continue;const r=e.riders.find((e=>{var r;return String(null!==(r=e.rider_id)&&void 0!==r?r:e.userid)===String(i)}));if(r){r.orders=r.orders||[],r.orders.push(t),a=!0;break}}!a&&r>=0&&o.zones[r].riders.push({rider_id:i,userid:i,rider_name:s,orders:[t]})}}return o})(t,{orderId:oe.orderid,oldRiderId:de,newRiderId:e,newRiderName:r}))),ne((r=>{const t=new Set(r);return null!=de&&t.add(String(de)),null!=e&&Number.isFinite(e)&&t.add(String(e)),t})),re(!1),se(!1),(0,R.k)("Rider changed \u2014 click Reconcile to verify steps","info",2500)},children:"Change Rider"})]})]})]})}}}]); \ No newline at end of file diff --git a/build/static/js/4917.f816a140.chunk.js b/build/static/js/4917.f816a140.chunk.js new file mode 100644 index 0000000..38f0b2c --- /dev/null +++ b/build/static/js/4917.f816a140.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[4917],{5670:(e,r,i)=>{i.d(r,{A:()=>v});var n=i(84849),t=i(27326),o=i(85672),s=i(72574),a=i(25234),d=i(60308),l=i(38009),c=i(37300),u=i(10644);function p(e){return(0,u.Ay)("MuiDialogContent",e)}(0,c.A)("MuiDialogContent",["root","dividers"]);var m=i(30903),h=i(65908);const x=["className","dividers"],f=(0,d.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.root,i.dividers&&r.dividers]}})((e=>{let{theme:r,ownerState:i}=e;return(0,t.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},i.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((r.vars||r).palette.divider),borderBottom:"1px solid ".concat((r.vars||r).palette.divider)}:{[".".concat(m.A.root," + &")]:{paddingTop:0}})})),v=o.forwardRef((function(e,r){const i=(0,l.b)({props:e,name:"MuiDialogContent"}),{className:o,dividers:d=!1}=i,c=(0,n.A)(i,x),u=(0,t.A)({},i,{dividers:d}),m=(e=>{const{classes:r,dividers:i}=e,n={root:["root",i&&"dividers"]};return(0,a.A)(n,p,r)})(u);return(0,h.jsx)(f,(0,t.A)({className:(0,s.A)(m.root,o),ownerState:u,ref:r},c))}))},6026:(e,r,i)=>{i.d(r,{A:()=>n});const n=i(85672).createContext({})},19619:(e,r,i)=>{i.d(r,{A:()=>f});var n=i(27326),t=i(84849),o=i(85672),s=i(72574),a=i(25234),d=i(2866),l=i(60308),c=i(38009),u=i(30903),p=i(6026),m=i(65908);const h=["className","id"],x=(0,l.Ay)(d.A,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,r)=>r.root})({padding:"16px 24px",flex:"0 0 auto"}),f=o.forwardRef((function(e,r){const i=(0,c.b)({props:e,name:"MuiDialogTitle"}),{className:d,id:l}=i,f=(0,t.A)(i,h),v=i,A=(e=>{const{classes:r}=e;return(0,a.A)({root:["root"]},u.t,r)})(v),{titleId:g=l}=o.useContext(p.A);return(0,m.jsx)(x,(0,n.A)({component:"h2",className:(0,s.A)(A.root,d),ownerState:v,ref:r,variant:"h6",id:null!=l?l:g},f))}))},30903:(e,r,i)=>{i.d(r,{A:()=>s,t:()=>o});var n=i(37300),t=i(10644);function o(e){return(0,t.Ay)("MuiDialogTitle",e)}const s=(0,n.A)("MuiDialogTitle",["root"])},42129:(e,r,i)=>{i.d(r,{A:()=>s,f:()=>o});var n=i(37300),t=i(10644);function o(e){return(0,t.Ay)("MuiDialog",e)}const s=(0,n.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"])},44917:(e,r,i)=>{i.r(r),i.d(r,{default:()=>Y});var n=i(22555),t=i(85672),o=i(96515),s=i(69039),a=i(76264),d=i(48738),l=i(15227),c=i(71392),u=i(23440),p=i(11969),m=i(2866),h=i(17488),x=i(86270),f=i(80911),v=i(93977),A=i(13420),g=i(84007),y=i(81062),b=i(58689),S=i(19619),k=i(5670),w=i(17450),j=i(68320),_=i(68220),W=i(46077),C=i.n(W),R=i(70775),D=i(68070),z=i(66166),N=i(48952),M=i(81425),I=i(20466),E=i(90376),P=i(94826),T=i(88267),B=i(84702),F=i(65908);const O=[{tuneid:1,type:"Balanced",value:"balanced"},{tuneid:2,type:"Aggressive Speed",value:"aggressive_speed"},{tuneid:3,type:"Fuel Saver",value:"fuel_saver"},{tuneid:4,type:"Zone Strict",value:"zone_strict"}];function H(e){return e.map((e=>{const r=Number(e.cumulativekms||0),i=Number(e.minkm||0),t=Number(e.baseprice||0),o=Number(e.priceperkm||0);return r<=i?(0,n.A)((0,n.A)({},e),{},{deliveryamt:t}):(0,n.A)((0,n.A)({},e),{},{deliveryamt:(r-i)*o+t})}))}const Y=()=>{var e,r;const i=(0,o.Zp)(),W=(0,o.zy)().state||{},Y=(0,s.A)(),K=(0,a.A)(Y.breakpoints.down("md")),[J,L]=(0,t.useState)(W.dispatchPreviewData||null);(0,t.useEffect)((()=>{var e;W.dispatchPreviewData?"undefined"!==typeof window&&null!==(e=window.history)&&void 0!==e&&e.state&&window.history.replaceState((0,n.A)((0,n.A)({},window.history.state),{},{usr:null}),""):i("/nearle/orders",{replace:!0})}),[]);const[X,q]=(0,t.useState)([]),[U,V]=(0,t.useState)(!1),[Z,G]=(0,t.useState)(0),[Q,$]=(0,t.useState)(!1),[ee,re]=(0,t.useState)(!1),[ie,ne]=(0,t.useState)((()=>new Set)),[te,oe]=(0,t.useState)(!1),[se,ae]=(0,t.useState)(null),[de,le]=(0,t.useState)(null),[ce,ue]=(0,t.useState)(null),pe=null!==(e=W.aiMode)&&void 0!==e?e:1,me=W.selectedMode||null,he=W.deliveryData||[],xe=W.autoRiders||[],fe=W.absentRidersPayload||[],ve=W.rider||null,Ae=(0,t.useMemo)((()=>{if(W.appId)return W.appId;if("undefined"!==typeof window){const e=localStorage.getItem("applocationid");return e?Number(e):0}return 0}),[W.appId]),{data:ge}=(0,j.I)({queryKey:["ridersList",Ae],queryFn:M.Sd,enabled:!!Ae,staleTime:3e5}),ye=(0,t.useMemo)((()=>(e=>{if(!e)return[];const r=new Map,i=new Set,n=(e,n,t)=>{if(null==e)return;const o=String(e);r.has(o)||r.set(o,{rider_id:e,rider_name:n,orders:[]});const s=r.get(o);(t||[]).forEach((e=>{const r=null!=(null===e||void 0===e?void 0:e.orderid)?String(e.orderid):null;if(r){if(i.has(r))return;i.add(r)}s.orders.push(e)})),!s.rider_name&&n&&(s.rider_name=n)};return Array.isArray(e.zones)&&e.zones.length?e.zones.forEach((e=>{(e.riders||[]).forEach((e=>{var r;const i=null!==(r=e.rider_id)&&void 0!==r?r:e.userid,t=e.rider_name||e.username||"Rider ".concat(i);n(i,t,e.orders)}))})):Array.isArray(e.details)&&e.details.forEach((e=>{var r;const i=null!==(r=e.rider_id)&&void 0!==r?r:e.userid,t=e.rider_name||e.ridername||"Rider ".concat(i);n(i,t,[e])})),Array.from(r.values())})(J)),[J]),be=(0,t.useMemo)((()=>{const e=(e=>{const r=[];return e.forEach((e=>{const i=Number(e.rider_id),t=Number.isFinite(i)?i:e.rider_id;(e.orders||[]).forEach((i=>{r.push((0,n.A)((0,n.A)({},i),{},{rider_id:t,userid:t,rider_name:e.rider_name,rider:e.rider_name}))}))})),r})(ye);return e.length?H(e):Array.isArray(null===J||void 0===J?void 0:J.details)?H(J.details):[]}),[ye,J]);(0,t.useEffect)((()=>{const e=be.map((e=>({zone_name:e.zone_name,ordernotes:e.ordernotes,rider:e.rider,step:e.step,ordertype:e.ordertype,orderamount:e.orderamount,riderkms:e.riderkms,cumulativekms:e.cumulativekms,baseprice:e.baseprice,minkm:e.minkm,priceperkm:e.priceperkm,kms:e.kms,actualkms:e.actualkms,rider_charge:e.rider_charge,deliveryamt:e.deliveryamt,deliverycharges:e.deliverycharges,profit:e.profit})));q(e)}),[be]);const Se=(0,_.n)({mutationFn:M.k3,onSuccess:()=>(0,I.k)("Notification sent Successfully","success",2e3),onError:e=>(0,I.k)(e.message,"error",2e3)}),ke=(0,_.n)({mutationFn:0==pe?M.FC:M.Yk,onSuccess:e=>{(0,I.k)("Orders Optimised Successfully","success",2e3),L(e),re(!1),ne(new Set),V(!1)},onError:e=>{(0,I.k)(e.message,"error",4e3),V(!1)},onSettled:()=>V(!1)}),we=(0,_.n)({mutationFn:M.H2,onSuccess:()=>{(0,I.k)("Delivery Created Successfully","success",2e3),V(!1),null!==ve&&void 0!==ve&&ve.userfcmtoken&&Se.mutate(ve.userfcmtoken),i("/nearle/deliveries")},onError:e=>{(0,I.k)(e.message,"error",4e3),V(!1)},onSettled:()=>V(!1)}),je=(0,_.n)({mutationFn:M.U8,onMutate:()=>$(!0),onSuccess:e=>{Array.isArray(null===e||void 0===e?void 0:e.riders)?(L((r=>((e,r)=>{if(!e||!Array.isArray(null===r||void 0===r?void 0:r.riders))return e;const i=JSON.parse(JSON.stringify(e)),t=new Map(r.riders.map((e=>[String(e.rider_id),e.orders||[]])));Array.isArray(i.zones)&&i.zones.length?(i.zones.forEach((e=>{Array.isArray(e.riders)&&e.riders.forEach((e=>{var r;const i=String(null!==(r=e.rider_id)&&void 0!==r?r:e.userid);t.has(i)&&(e.orders=[])}))})),t.forEach(((e,r)=>{let n=!1;for(const o of i.zones){if(!Array.isArray(o.riders))continue;const i=o.riders.find((e=>{var i;return String(null!==(i=e.rider_id)&&void 0!==i?i:e.userid)===r}));if(i){i.orders=e,n=!0;break}}if(!n){var t;const n=i.zones[0];n.riders=n.riders||[],n.riders.push({rider_id:Number(r)||r,rider_name:(null===(t=e[0])||void 0===t?void 0:t.rider_name)||"Rider ".concat(r),orders:e})}}))):i.zones=[{zone_name:"Reconciled",riders:r.riders.map((e=>({rider_id:e.rider_id,rider_name:e.rider_name||"Rider ".concat(e.rider_id),orders:e.orders||[]})))}];const o=[];return i.zones.forEach((e=>{(e.riders||[]).forEach((e=>{(e.orders||[]).forEach((r=>{o.push((0,n.A)((0,n.A)({},r),{},{rider_id:e.rider_id,userid:e.rider_id,rider_name:e.rider_name,rider:e.rider_name}))}))}))})),i.details=o,i})(r,e))),re(!0),ne((r=>{const i=new Set(r);return e.riders.forEach((e=>i.delete(String(e.rider_id)))),i})),(0,I.k)("Steps reconciled \u2014 preview updated","success",2e3)):(0,I.k)("Reconcile returned no rider data","warning",3e3)},onError:e=>{(0,I.k)(e.message||"Reconcile failed","error",4e3)},onSettled:()=>$(!1)}),_e=e=>{V(!0),0==pe?ke.mutate({deliveries:he}):me&&1==(null===me||void 0===me?void 0:me.value)?ke.mutate({deliveries:he,hypertuning_params:e||null,selectedMode:me,absent_riders:fe}):ke.mutate({data:{orders:he,riders:xe,config:{pay_type:"hourly",base_pay:300,strategy:"multi_trip"},absent_riders:fe},selectedMode:me})},We=(e,r)=>{var i,n,t,o;const s=null!==(i=null!==(n=null!==(t=null!==(o=null===e||void 0===e?void 0:e.rider_id)&&void 0!==o?o:null===e||void 0===e?void 0:e.id)&&void 0!==t?t:null===r||void 0===r?void 0:r.rider_id)&&void 0!==n?n:null===r||void 0===r?void 0:r.userid)&&void 0!==i?i:null;le(s),ae(r),ue(null),oe(!0)};return(0,F.jsxs)(d.A,{sx:{display:"flex",flexDirection:"column",height:"100vh",overflow:"hidden",position:"relative"},children:[(0,F.jsx)(l.A,{sx:{position:"absolute",color:"#fff",zIndex:e=>e.zIndex.modal+1},open:U,children:(0,F.jsx)(P.A,{color:"inherit"})}),(0,F.jsx)(d.A,{sx:{py:1.25,px:2,borderBottom:"1px solid #eef2f6"},children:(0,F.jsxs)(c.A,{direction:{xs:"column",md:"row"},alignItems:{xs:"stretch",md:"center"},justifyContent:"space-between",spacing:1.25,children:[(0,F.jsxs)(c.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,F.jsx)(u.A,{title:"Back to orders",placement:"top",children:(0,F.jsx)(p.A,{onClick:()=>i("/nearle/orders"),sx:{bgcolor:"action.hover","&:hover":{bgcolor:"action.selected"}},children:(0,F.jsx)(D.eQE,{size:20})})}),(0,F.jsx)(m.A,{variant:"h3",fontWeight:600,children:"Assign Orders"})]}),(0,F.jsxs)(c.A,{direction:{xs:"column",sm:"row"},alignItems:{xs:"stretch",sm:"center"},spacing:1,sx:{width:{xs:"100%",md:"auto"}},children:[(0,F.jsx)(h.A,{options:O||[],getOptionLabel:e=>e.type,sx:{minWidth:{xs:0,sm:250},maxWidth:600,flex:1,width:{xs:"100%",sm:"auto"}},renderInput:e=>(0,F.jsx)(x.A,(0,n.A)((0,n.A)({},e),{},{label:"Hyper Tuning"})),onChange:(e,r,i)=>{_e("clear"===i?null:r.value)}}),(0,F.jsx)(f.A,{variant:"contained",color:"primary",startIcon:(0,F.jsx)(z.UF6,{}),fullWidth:K,onClick:()=>{V(!0),_e("reshuffle")},children:"Re-Assign"}),(0,F.jsx)(E.Ay,{data:X,filename:"Orders_Detail_".concat(C()().format("YYYY-MM-DD_HHmmss"),".csv"),label:" CSV",style:{m:1}})]})]})}),(0,F.jsx)(d.A,{sx:{px:2,borderBottom:"1px solid #eef2f6"},children:(0,F.jsxs)(v.A,{value:Z,onChange:(e,r)=>G(r),variant:K?"fullWidth":"standard",sx:{minHeight:40},children:[(0,F.jsx)(A.A,{label:"Dispatch",sx:{minHeight:40,textTransform:"none",fontWeight:600}}),(0,F.jsx)(A.A,{label:"Reconcile",sx:{minHeight:40,textTransform:"none",fontWeight:600}})]})}),(0,F.jsxs)(d.A,{sx:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:[0===Z&&J&&(0,F.jsx)(T.default,{data:J,embedded:!0,onChangeRider:(e,r)=>We(r,e)},(null===J||void 0===J?void 0:J.__cacheKey)||JSON.stringify(ye.length)),1===Z&&(0,F.jsx)(d.A,{sx:{flex:1,overflow:"auto",p:2,bgcolor:"#f8fafc"},children:0===ye.length?(0,F.jsx)(m.A,{sx:{color:"#94a3b8",textAlign:"center",mt:4},children:"No rider data available to reconcile."}):(0,F.jsxs)(c.A,{spacing:1.75,children:[(0,F.jsx)(d.A,{sx:{bgcolor:ee?"#ecfdf5":"#fffbeb",border:"1px solid ".concat(ee?"#a7f3d0":"#fde68a"),color:ee?"#065f46":"#92400e",borderRadius:"10px",px:1.5,py:1,fontSize:13},children:ee?"Steps have been reconciled. The Dispatch tab and Assign payload are updated.":"Click a numbered step to change its rider. Hit Reconcile to verify the corrected steps with the server."}),ye.map((e=>{const r=e.orders.reduce(((e,r)=>e+parseFloat(r.actualkms||r.kms||0)),0);return(0,F.jsxs)(g.A,{sx:{p:{xs:1.5,md:2},borderRadius:"12px",boxShadow:"0 1px 3px rgba(15,23,42,0.06)"},children:[(0,F.jsxs)(c.A,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{mb:1.25,flexWrap:"wrap",gap:1},children:[(0,F.jsxs)(c.A,{direction:"row",alignItems:"center",gap:1.25,children:[(0,F.jsx)(d.A,{sx:{width:32,height:32,borderRadius:"8px",bgcolor:"#eef2ff",color:"#4f46e5",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:(0,F.jsx)(N.aVM,{size:18})}),(0,F.jsxs)(d.A,{children:[(0,F.jsx)(m.A,{sx:{fontWeight:700,fontSize:14,color:"#1e293b"},children:e.rider_name}),(0,F.jsxs)(m.A,{sx:{fontSize:11.5,color:"#64748b"},children:["ID: ",e.rider_id]})]})]}),(0,F.jsxs)(c.A,{direction:"row",gap:1,children:[(0,F.jsx)(y.A,{size:"small",label:"".concat(e.orders.length," stops"),sx:{fontWeight:600}}),(0,F.jsx)(y.A,{size:"small",label:"".concat(r.toFixed(1)," km"),variant:"outlined"})]})]}),(0,F.jsx)(c.A,{direction:"row",gap:1.25,sx:{flexWrap:"wrap",alignItems:"center"},children:e.orders.map(((r,i)=>{var n;const t=null!==(n=r.step)&&void 0!==n?n:i+1,o=(0,B.gM)(Number(t)-1);return(0,F.jsx)(u.A,{title:(0,F.jsxs)(d.A,{children:[(0,F.jsxs)("div",{children:["Order #",r.orderid]}),(0,F.jsx)("div",{children:r.deliveryaddress||r.deliverysuburb||""}),(0,F.jsx)("div",{style:{marginTop:4,opacity:.8},children:"Click to change rider"})]}),children:(0,F.jsx)(d.A,{onClick:()=>We(e,r),sx:{width:36,height:36,borderRadius:"50%",bgcolor:o,color:"#fff",display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:800,fontSize:14,cursor:"pointer",boxShadow:"0 0 0 2px rgba(255,255,255,0.6), 0 1px 3px rgba(15,23,42,0.15)",transition:"transform 0.15s","&:hover":{transform:"scale(1.08)"}},children:t})},"".concat(r.orderid,"-").concat(i))}))})]},e.rider_id)})),(0,F.jsx)(d.A,{sx:{display:"flex",justifyContent:"center",pt:1.5,pb:2},children:(0,F.jsx)(f.A,{variant:"contained",color:"primary",size:"large",startIcon:(0,F.jsx)(N.$G1,{}),onClick:()=>{if(!ye.length)return void(0,I.k)("No riders to reconcile","warning",3e3);const e=ye.filter((e=>ie.has(String(e.rider_id))));e.length?je.mutate({riders:e.map((e=>({rider_id:e.rider_id,orders:e.orders})))}):(0,I.k)("No edits to reconcile","info",2500)},disabled:Q||0===ie.size,fullWidth:K,sx:{minWidth:{xs:0,sm:220},borderRadius:"10px",textTransform:"none",fontWeight:700},children:Q?"Reconciling...":0===ie.size?"Reconcile":"Reconcile (".concat(ie.size,")")})})]})})]}),(0,F.jsx)(d.A,{sx:{px:2,py:1.25,borderTop:"1px solid #eef2f6"},children:(0,F.jsxs)(c.A,{direction:{xs:"column-reverse",sm:"row"},gap:{xs:1,sm:2},alignItems:{xs:"stretch",sm:"center"},justifyContent:"end",children:[(0,F.jsx)(f.A,{variant:"contained",color:"secondary",startIcon:(0,F.jsx)(R.A,{}),fullWidth:K,onClick:()=>i(-1),children:"Back"}),(0,F.jsx)(f.A,{variant:"contained",fullWidth:K,onClick:()=>{null!==be&&void 0!==be&&be.length?(V(!0),we.mutate({deliveries:be})):(0,I.k)("No deliveries to assign","error",3e3)},children:"Assign Orders"})]})}),(0,F.jsxs)(b.A,{open:te,onClose:()=>oe(!1),maxWidth:"xs",fullWidth:!0,fullScreen:K,PaperProps:{sx:{borderRadius:{xs:0,sm:3}}},children:[(0,F.jsx)(S.A,{sx:{fontWeight:700},children:"Change Rider"}),(0,F.jsxs)(k.A,{children:[(0,F.jsxs)(m.A,{sx:{mb:2,fontSize:13,color:"text.secondary"},children:["Move order #",null===se||void 0===se?void 0:se.orderid," (step ",null!==(r=null===se||void 0===se?void 0:se.step)&&void 0!==r?r:"\u2014",") to:"]}),(0,F.jsx)(h.A,{options:ge||[],getOptionLabel:e=>(null===e||void 0===e?void 0:e.label)||"".concat((null===e||void 0===e?void 0:e.firstname)||""," ").concat((null===e||void 0===e?void 0:e.lastname)||"").trim()||"",value:ce,onChange:(e,r)=>ue(r),renderInput:e=>(0,F.jsx)(x.A,(0,n.A)((0,n.A)({},e),{},{label:"New rider",placeholder:"Pick a rider"}))})]}),(0,F.jsxs)(w.A,{sx:{px:3,pb:2,flexDirection:{xs:"column-reverse",sm:"row"},gap:{xs:1,sm:0}},children:[(0,F.jsx)(f.A,{fullWidth:K,onClick:()=>oe(!1),children:"Cancel"}),(0,F.jsx)(f.A,{variant:"contained",fullWidth:K,disabled:!ce,onClick:()=>{if(!ce||!se)return;const e=Number(ce.userid),r=ce.label||"".concat(ce.firstname||""," ").concat(ce.lastname||"").trim()||"Rider ".concat(e);L((i=>((e,r)=>{let{orderId:i,newRiderId:t,newRiderName:o}=r;if(!e)return e;const s=JSON.parse(JSON.stringify(e));if(Array.isArray(s.details)&&(s.details=s.details.map((e=>String(e.orderid)===String(i)?(0,n.A)((0,n.A)({},e),{},{rider_id:t,userid:t,rider_name:o,rider:o}):e))),Array.isArray(s.zones)){let e=null,r=-1;for(let n=0;nString(e.orderid)===String(i)));-1!==a&&(e=s.orders[a],s.orders.splice(a,1),r=n)}}if(e){const i=(0,n.A)((0,n.A)({},e),{},{rider_id:t,userid:t,rider_name:o,rider:o});let a=!1;for(const e of s.zones){if(!Array.isArray(e.riders))continue;const r=e.riders.find((e=>{var r;return String(null!==(r=e.rider_id)&&void 0!==r?r:e.userid)===String(t)}));if(r){r.orders=r.orders||[],r.orders.push(i),a=!0;break}}!a&&r>=0&&s.zones[r].riders.push({rider_id:t,userid:t,rider_name:o,orders:[i]})}}return s})(i,{orderId:se.orderid,oldRiderId:de,newRiderId:e,newRiderName:r}))),ne((r=>{const i=new Set(r);return null!=de&&i.add(String(de)),null!=e&&Number.isFinite(e)&&i.add(String(e)),i})),re(!1),oe(!1),(0,I.k)("Rider changed \u2014 click Reconcile to verify steps","info",2500)},children:"Change Rider"})]})]})]})}},58689:(e,r,i)=>{i.d(r,{A:()=>j});var n=i(84849),t=i(27326),o=i(85672),s=i(72574),a=i(25234),d=i(16660),l=i(16775),c=i(52243),u=i(95345),p=i(55235),m=i(38009),h=i(60308),x=i(42129),f=i(6026),v=i(15227),A=i(69039),g=i(65908);const y=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],b=(0,h.Ay)(v.A,{name:"MuiDialog",slot:"Backdrop",overrides:(e,r)=>r.backdrop})({zIndex:-1}),S=(0,h.Ay)(c.A,{name:"MuiDialog",slot:"Root",overridesResolver:(e,r)=>r.root})({"@media print":{position:"absolute !important"}}),k=(0,h.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.container,r["scroll".concat((0,l.A)(i.scroll))]]}})((e=>{let{ownerState:r}=e;return(0,t.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===r.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===r.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),w=(0,h.Ay)(p.A,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,r)=>{const{ownerState:i}=e;return[r.paper,r["scrollPaper".concat((0,l.A)(i.scroll))],r["paperWidth".concat((0,l.A)(String(i.maxWidth)))],i.fullWidth&&r.paperFullWidth,i.fullScreen&&r.paperFullScreen]}})((e=>{let{theme:r,ownerState:i}=e;return(0,t.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===i.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===i.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!i.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===i.maxWidth&&{maxWidth:"px"===r.breakpoints.unit?Math.max(r.breakpoints.values.xs,444):"max(".concat(r.breakpoints.values.xs).concat(r.breakpoints.unit,", 444px)"),["&.".concat(x.A.paperScrollBody)]:{[r.breakpoints.down(Math.max(r.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},i.maxWidth&&"xs"!==i.maxWidth&&{maxWidth:"".concat(r.breakpoints.values[i.maxWidth]).concat(r.breakpoints.unit),["&.".concat(x.A.paperScrollBody)]:{[r.breakpoints.down(r.breakpoints.values[i.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},i.fullWidth&&{width:"calc(100% - 64px)"},i.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(x.A.paperScrollBody)]:{margin:0,maxWidth:"100%"}})})),j=o.forwardRef((function(e,r){const i=(0,m.b)({props:e,name:"MuiDialog"}),c=(0,A.A)(),h={enter:c.transitions.duration.enteringScreen,exit:c.transitions.duration.leavingScreen},{"aria-describedby":v,"aria-labelledby":j,BackdropComponent:_,BackdropProps:W,children:C,className:R,disableEscapeKeyDown:D=!1,fullScreen:z=!1,fullWidth:N=!1,maxWidth:M="sm",onBackdropClick:I,onClick:E,onClose:P,open:T,PaperComponent:B=p.A,PaperProps:F={},scroll:O="paper",TransitionComponent:H=u.A,transitionDuration:Y=h,TransitionProps:K}=i,J=(0,n.A)(i,y),L=(0,t.A)({},i,{disableEscapeKeyDown:D,fullScreen:z,fullWidth:N,maxWidth:M,scroll:O}),X=(e=>{const{classes:r,scroll:i,maxWidth:n,fullWidth:t,fullScreen:o}=e,s={root:["root"],container:["container","scroll".concat((0,l.A)(i))],paper:["paper","paperScroll".concat((0,l.A)(i)),"paperWidth".concat((0,l.A)(String(n))),t&&"paperFullWidth",o&&"paperFullScreen"]};return(0,a.A)(s,x.f,r)})(L),q=o.useRef(),U=(0,d.A)(j),V=o.useMemo((()=>({titleId:U})),[U]);return(0,g.jsx)(S,(0,t.A)({className:(0,s.A)(X.root,R),closeAfterTransition:!0,components:{Backdrop:b},componentsProps:{backdrop:(0,t.A)({transitionDuration:Y,as:_},W)},disableEscapeKeyDown:D,onClose:P,open:T,ref:r,onClick:e=>{E&&E(e),q.current&&(q.current=null,I&&I(e),P&&P(e,"backdropClick"))},ownerState:L},J,{children:(0,g.jsx)(H,(0,t.A)({appear:!0,in:T,timeout:Y,role:"presentation"},K,{children:(0,g.jsx)(k,{className:(0,s.A)(X.container),onMouseDown:e=>{q.current=e.target===e.currentTarget},ownerState:L,children:(0,g.jsx)(w,(0,t.A)({as:B,elevation:24,role:"dialog","aria-describedby":v,"aria-labelledby":U},F,{className:(0,s.A)(X.paper,F.className),ownerState:L,children:(0,g.jsx)(f.A.Provider,{value:V,children:C})}))})}))}))}))}}]); \ No newline at end of file diff --git a/build/static/js/4947.51001989.chunk.js b/build/static/js/4947.51001989.chunk.js deleted file mode 100644 index 4502bc2..0000000 --- a/build/static/js/4947.51001989.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[4947],{13968:(e,r,t)=>{t.r(r),t.d(r,{default:()=>Me});var o=t(89379),n=t(9950),i=t(47965),l=t(44070),s=t(36256),a=t(13838),c=t(4159),d=t.n(c),x=t(36150),h=t(60010),u=t(51778),p=(t(47659),t(14857)),A=t(94118),g=t(37476),f=t(94826),m=t(52351),j=t(67562),b=t(49883),v=t(31222),y=t(35678),k=t(56311),S=t(44414);var w=t(50027),C=t(20466),W=t(96646),D=t(59212),I=t(27001),z=t(36803);const M=t.p+"static/media/aiImage.89c2ccb91a41d85031e3.png";var P=t(63189),Y=t(99324),R=t(6604),O=t(2235),F=t(41413),T=t(47223),L=t(55158),E=t(59382),N=t(28810),q=t(79046),H=t(33092),K=t(60899),_=t(77922),B=t(29925),U=t(93230),Z=t(83274),V=t(16491),Q=t(82053),X=t(1320),G=t(93038),J=t(25333),$=t(15769),ee=t(69780),re=t(9213),te=t(21671),oe=t(34075),ne=t(96583),ie=t(40033),le=t(25277),se=t(28170),ae=t(79739),ce=t(10226),de=t(74745),xe=t(81425),he=t(58691),ue=t(23787),pe=t(28429),Ae=t(90376),ge=t(88267),fe=t(36220);d().extend(fe);const me={radiusPill:999,radiusCard:14,shadowSoft:"0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05)",shadowMd:"0 1px 3px rgba(15, 23, 42, 0.06)",shadowPop:"0 12px 32px rgba(15, 23, 42, 0.12)",textPrimary:"#0f172a",textSecondary:"#64748b",textMuted:"#94a3b8",borderSubtle:"#e2e8f0",divider:"#f1f5f9",surface:"#ffffff",surfaceAlt:"#f8fafc"},je=(e,r)=>"".concat(e).concat(r),be=e=>je(e,"08"),ve=e=>je(e,"18"),ye=e=>je(e,"26"),ke=e=>je(e,"55"),Se="#662582",we=e=>(0,S.jsx)(O.A,(0,o.A)((0,o.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:me.shadowPop,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),Ce=e=>{let{color:r,selected:t,size:o=24,children:n}=e;return(0,S.jsx)(F.A,{sx:{width:o,height:o,bgcolor:t?r:ve(r),color:t?"#fff":r,transition:"background-color 0.15s, color 0.15s"},children:n})},We=()=>({"& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,"& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(ye("#662582"))},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:1.5}}}),De={created:{label:"Created",color:"#0ea5e9",icon:v.F6S},pending:{label:"Pending",color:"#f59e0b",icon:v.tX0},processing:{label:"Processing",color:"#0ea5e9",icon:v.bfP},modified:{label:"Modified",color:"#06b6d4",icon:v.bfP},confirmed:{label:"Confirmed",color:"#10b981",icon:v.mU9},accepted:{label:"Accepted",color:"#6366f1",icon:v.mU9},delivered:{label:"Delivered",color:"#10b981",icon:v.mU9},cancelled:{label:"Cancelled",color:"#ef4444",icon:v.uDv}},Ie=[{idx:0,status:"created",label:"Created",color:Se,icon:v.F6S,countKey:"created"},{idx:1,status:"pending",label:"Pending",color:"#f59e0b",icon:v.tX0,countKey:"pending"},{idx:2,status:"delivered",label:"Delivered",color:"#10b981",icon:v.mU9,countKey:"delivered"},{idx:3,status:"cancelled",label:"Cancelled",color:"#ef4444",icon:v.uDv,countKey:"cancelled"}],ze=e=>{const r=[e.pickupslot,e.deliverydate,e.orderdate];for(const t of r)if(t&&d()(t).isValid())return"".concat(d()(t).utc().format("DD/MM/YYYY")," ").concat(d()(t).format("hh:mm A"));return"\u2014"},Me=()=>{const e=(0,p.A)(),r=(0,T.A)(e.breakpoints.down("md")),t=(0,pe.Zp)(),c=(0,n.useRef)(),fe=(0,n.useRef)(),je=(0,n.useRef)(null),Me=(0,n.useRef)(null),[Pe,Ye]=(0,n.useState)(0),[Re,Oe]=(0,n.useState)("All"),[Fe,Te]=(0,n.useState)(!1),[Le,Ee]=(0,n.useState)(d()().format("YYYY-MM-DD")),[Ne,qe]=(0,n.useState)(d()().format("YYYY-MM-DD")),[He,Ke]=(0,n.useState)("Today"),[_e,Be]=(0,n.useState)(!1),[Ue,Ze]=(0,n.useState)(0),[Ve,Qe]=(0,n.useState)("created"),[Xe,Ge]=(0,n.useState)(!1),[Je,$e]=(0,n.useState)(!1),[er,rr]=(0,n.useState)(!1),[tr,or]=(0,n.useState)(null),[nr,ir]=(0,n.useState)(null),[lr,sr]=(0,n.useState)(""),[ar,cr]=(0,n.useState)(0),[dr,xr]=(0,n.useState)(null),[hr,ur]=(0,n.useState)(0),[pr,Ar]=(0,n.useState)(0),[gr,fr]=(0,n.useState)(""),[mr,jr]=(0,n.useState)(""),[br,vr]=(0,n.useState)(!1),[yr,kr]=(0,n.useState)(!1),[Sr,wr]=(0,n.useState)(null),[Cr,Wr]=(0,n.useState)(null),[Dr,Ir]=(0,n.useState)(!1),[zr,Mr]=(0,n.useState)(!1),[Pr,Yr]=(0,n.useState)(!1),[Rr,Or]=(0,n.useState)(null),[Fr,Tr]=(0,n.useState)([]),[Lr,Er]=(0,n.useState)([]),[Nr,qr]=(0,n.useState)(null),[Hr,Kr]=(0,n.useState)(null),[_r]=(0,n.useState)(0),[Br,Ur]=(0,n.useState)([]),[Zr,Vr]=(0,n.useState)([]),Qr=(0,n.useRef)(0),Xr=(0,n.useRef)(null),[Gr,Jr]=(0,n.useState)(null),[$r,et]=(0,n.useState)([]);(0,n.useEffect)((()=>{ur(0),wr(null),Ar(0),Wr(null)}),[Pe]),(0,n.useEffect)((()=>{Ar(0),Wr(null)}),[hr]),(0,n.useEffect)((()=>{const e=Zr.map((e=>({zone_name:e.zone_name,ordernotes:e.ordernotes,rider:e.rider,step:e.step,ordertype:e.ordertype,orderamount:e.orderamount,riderkms:e.riderkms,cumulativekms:e.cumulativekms,baseprice:e.baseprice,minkm:e.minkm,priceperkm:e.priceperkm,kms:e.kms,actualkms:e.actualkms,rider_charge:e.rider_charge,deliveryamt:e.deliveryamt,deliverycharges:e.deliverycharges,profit:e.profit})));Ur(e),console.log("csvExportData",e)}),[Zr]),(0,n.useEffect)((()=>{if(null===Lr||void 0===Lr||!Lr.length)return;const e=Lr.map((e=>{const r=Number(e.cumulativekms||0),t=Number(e.minkm||0),n=Number(e.baseprice||0),i=Number(e.priceperkm||0);return r<=t?(0,o.A)((0,o.A)({},e),{},{deliveryamt:n}):(0,o.A)((0,o.A)({},e),{},{deliveryamt:(r-t)*i+n})}));Vr(e),console.log("finaldeliveryList",e)}),[Lr]);const{data:rt,isLoading:tt,isError:ot,error:nt,refetch:it}=(0,x.I)({queryKey:["percentageData",Pe,Le,Ne,hr,pr],queryFn:xe.jy,enabled:!0}),{data:lt,isLoading:st,isError:at,error:ct}=(0,x.I)({queryKey:["tenantlist",Pe],queryFn:()=>(0,xe.Mn)(Pe),enabled:0!==Pe}),{data:dt,isLoading:xt,isError:ht,error:ut}=(0,x.I)({queryKey:["gettenantlocations",hr],queryFn:()=>(0,xe.DL)(hr),enabled:0!==hr}),{data:pt=[],isLoading:At}=(0,x.I)({queryKey:["paymentmodes"],queryFn:xe.HY}),{data:gt=[],isLoading:ft}=(0,x.I)({queryKey:["ridersList",Pe],queryFn:xe.Sd,enabled:0!==Pe}),{data:mt,isLoading:jt,isError:bt,error:vt,refetch:yt}=(0,x.I)({queryKey:["ordersCount",Pe,Le,Ne,Ve,hr,pr],queryFn:xe.Hh,refetchOnMount:!0,refetchOnWindowFocus:!0}),{data:kt}=(0,x.I)({queryKey:["getallriders"],queryFn:xe.Xw,refetchOnMount:!0,refetchOnWindowFocus:!0}),{data:St,isLoading:wt,isError:Ct,error:Wt,fetchNextPage:Dt,hasNextPage:It,isFetchingNextPage:zt,refetch:Mt}=(0,h.q)({queryKey:["fetchOrders",Pe,Ve,mr,Le,Ne,100,hr,pr],queryFn:xe.nQ,getNextPageParam:e=>{var r;return null!==(r=e.nextPage)&&void 0!==r?r:void 0},refetchOnWindowFocus:!0,refetchOnMount:!0,refetchOnReconnect:!0,staleTime:0}),Pt=(null===St||void 0===St?void 0:St.pages.flatMap((e=>e.rows)))||[];(0,n.useEffect)((()=>{if(!It)return;const e=new IntersectionObserver((e=>{e[0].isIntersecting&&Dt()}),{root:document.querySelector(".MuiTableContainer-root"),rootMargin:"0px",threshold:1});return c.current&&e.observe(c.current),()=>{c.current&&e.unobserve(c.current)}}),[It,Dt]);const Yt=(0,u.n)({mutationFn:0==Qr.current?xe.FC:xe.Yk,onSuccess:function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(console.log("data",e),console.log("varialbles",r),(0,C.k)("Orders Optimised Successfully","success",2e3),yt(),Mt(),Te(!1),vr(!1),0==Qr.current)Er(null===e||void 0===e?void 0:e.details),qr(null===e||void 0===e?void 0:e.zones),Kr(null===e||void 0===e?void 0:e.meta),Yr(!0);else{var o,n,i;Er(null===e||void 0===e?void 0:e.details),qr(null===e||void 0===e?void 0:e.zones),Kr(null===e||void 0===e?void 0:e.meta),Or(e);const r=Xr.current||{};t("/nearle/dispatch/preview",{state:{dispatchPreviewData:e,aiMode:null!==(o=r.aiMode)&&void 0!==o?o:Qr.current,selectedMode:r.selectedMode||Gr,deliveryData:r.deliveryData||[],autoRiders:r.autoRiders||kt||[],absentRidersPayload:r.absentRidersPayload||[],rider:r.rider||tr,appId:null!==(n=r.appId)&&void 0!==n?n:Pe,tenantId:null!==(i=r.tenantid)&&void 0!==i?i:hr,startdate:Le}})}},onError:e=>{(0,C.k)(e.message,"error",4e3),vr(!1),Te(!1)},onSettled:()=>{Nt(),Te(!1),vr(!1),kr(!1)}}),Rt=(0,u.n)({mutationFn:xe.H2,onMutate:()=>{kr(!0)},onSuccess:e=>{console.log("create data",e),(0,C.k)("Delivery Created Successfully","success",2e3),t("/nearle/deliveries"),Tt.mutate(null===tr||void 0===tr?void 0:tr.userfcmtoken)},onError:e=>{(0,C.k)(e.message,"error",4e3)},onSettled:()=>{kr(!1)}}),Ot=(0,u.n)({mutationFn:xe.N4,onSuccess:e=>{e.status&&(Ge(!1),(0,C.k)("Order Cancelled Successfully","success",2e3),yt(),it())},onError:e=>{(0,C.k)(e.message,"error",2e3)}}),Ft=(0,u.n)({mutationFn:xe.zR,onSuccess:e=>{e.status&&(rr(!1),(0,C.k)("Order Cancelled Successfully","success",2e3),Mt(),yt(),it(),Tr([]))},onError:e=>{(0,C.k)(e.message,"error",2e3)}}),Tt=(0,u.n)({mutationFn:xe.k3,onSuccess:()=>{(0,C.k)("Notification sent Successfully","success",2e3)},onError:e=>{(0,C.k)(e.message,"error",2e3)}}),Lt=async e=>{kr(!0),Te(!0);const r=Fr.map((e=>(0,o.A)((0,o.A)({},e),{},{deliveryid:0,deliverydate:d()(e.deliverydate).utc().format("YYYY-MM-DD HH:mm:ss"),assigntime:d()().format("YYYY-MM-DD HH:mm:ss"),orderstatus:"pending",orderamount:e.deliverycharge,droplat:e.deliverylat,droplon:e.deliverylong,pickuplat:e.pickuplat,pickuplon:e.pickuplong,ordernotes:e.ordernotes,deliverycharges:e.deliverycharge,pickuplocation:e.pickupsuburb,deliverylocation:e.deliverysuburb})));console.log("deliveryData",r);const t=($r||[]).map((e=>({userid:e.userid,username:"".concat(e.firstname||""," ").concat(e.lastname||"").trim()||e.username||"Rider ".concat(e.userid)})));Xr.current={deliveryData:r,absentRidersPayload:t,autoRiders:kt,selectedMode:Gr,aiMode:Qr.current,rider:tr,appId:Pe,tenantid:hr},0==Qr.current?Yt.mutate({deliveries:r}):Gr&&1==(null===Gr||void 0===Gr?void 0:Gr.value)?Yt.mutate({deliveries:1==Gr.value?r:{body:r},hypertuning_params:e||null,selectedMode:Gr,absent_riders:t}):Yt.mutate({data:{orders:r,riders:kt,config:{pay_type:"hourly",base_pay:300,strategy:"multi_trip"},absent_riders:t},selectedMode:Gr})},Et=(0,u.n)({mutationFn:xe.H2,onSuccess:(e,r)=>{console.log("data",e),console.log("varialbles",r),(0,C.k)("Delivery Created Successfully","success",2e3),kr(!1),t("/nearle/deliveries")},onError:e=>{(0,C.k)(e.message,"error",4e3)},onSettled:()=>{kr(!1)}}),Nt=()=>{$e(!1),or(null),ir(null),Jr(null),et([])},qt=ot?"Error fetching percentages: ".concat(null===nt||void 0===nt?void 0:nt.message):bt?"Error fetching orders Count: ".concat(null===vt||void 0===vt?void 0:vt.message):Ct?"Error fetching orders : ".concat(null===Wt||void 0===Wt?void 0:Wt.message):at?"Error Fetching on Tenants:".concat(null===ct||void 0===ct?void 0:ct.message," "):ht?"Error Fetching on Tenants Locations:".concat(null===ut||void 0===ut?void 0:ut.message," "):null;return(0,n.useEffect)((()=>{qt&&(console.log(qt),(0,C.k)(qt,"error",3e3))}),[qt]),(0,S.jsxs)(n.Fragment,{children:[(tt||jt||wt||st||xt||br)&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(m.A,{}),(0,S.jsx)(f.A,{})]}),(0,S.jsx)(L.A,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:br||wt,children:(0,S.jsx)(f.A,{color:"inherit"})}),(0,S.jsx)(L.A,{sx:{zIndex:1e3},open:Dr}),Fr.length>0&&(0,S.jsxs)(E.A,{ariaLabel:"Actions",icon:(0,S.jsx)(N.A,{badgeContent:(null===Fr||void 0===Fr?void 0:Fr.length)||"",color:"secondary",children:(0,S.jsx)(q.A,{})}),open:Dr,onOpen:()=>Ir(!0),onClose:()=>Ir(!1),sx:{position:"fixed",bottom:52,right:16,"& .MuiFab-primary":{bgcolor:"#7b1fa2",color:"#fff","&:hover":{bgcolor:"#6a1b9a"},width:64,height:64}},children:[(0,S.jsx)(H.A,{icon:(0,S.jsx)("img",{src:M,alt:"Assign",style:{width:38,height:38,objectFit:"contain",borderRadius:50}}),tooltipTitle:" Optimisation",FabProps:{sx:{bgcolor:"primary.main",color:"#fff","&:hover":{bgcolor:"primary.dark"},width:64,height:64}},onClick:()=>{Qr.current=1,Ir(!1),$e(!0)}}),(0,S.jsx)(H.A,{icon:(0,S.jsx)(i.A,{style:{fontSize:22}}),tooltipTitle:"Manual Assign",FabProps:{sx:{bgcolor:"success.600",color:"#fff","&:hover":{bgcolor:"success.dark"},width:64,height:64}},onClick:()=>{Qr.current=0,Ir(!1),$e(!0)}}),(0,S.jsx)(H.A,{icon:(0,S.jsx)(l.A,{style:{fontSize:22}}),tooltipTitle:"Delete",FabProps:{sx:{bgcolor:"#d32f2f",color:"#fff","&:hover":{bgcolor:"#9a0007"},width:64,height:64}},onClick:()=>{Ir(!1),rr(!0)}})]}),(0,S.jsx)(I.A,{title:"Orders",subtitle:"Live \xb7 ".concat(Re||"All Zones"," \xb7 ").concat(He),live:!0,action:(0,S.jsx)(D.A,{ref:je,locaName:Re,setAppId:Ye,setLocoName:Oe,setPage:cr,pill:!0,accentColor:Se,icon:(0,S.jsx)(v.HPi,{size:14}),placeholder:"Select Zone",paperComponent:we,sx:{width:{xs:"100%",sm:280},zIndex:100}})}),(0,S.jsx)(K.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:[{key:"created",label:"Created Orders",color:"#662582",icon:v.AdO,value:null===rt||void 0===rt?void 0:rt.created,percentage:null===rt||void 0===rt?void 0:rt.percentage1},{key:"pending",label:"Pending Orders",color:"#f59e0b",icon:v.G6c,value:null===rt||void 0===rt?void 0:rt.uncoveredOrders,percentage:null===rt||void 0===rt?void 0:rt.percentage2},{key:"delivered",label:"Delivered Orders",color:"#10b981",icon:v.cAP,value:null===rt||void 0===rt?void 0:rt.coveredOrders,percentage:null===rt||void 0===rt?void 0:rt.percentage3},{key:"cancelled",label:"Cancelled Orders",color:"#ef4444",icon:v.qiG,value:null===rt||void 0===rt?void 0:rt.cancelled,percentage:null===rt||void 0===rt?void 0:rt.percentage4}].map((e=>{var r;const t=e.icon;return(0,S.jsx)(K.Ay,{item:!0,xs:6,sm:6,md:3,children:(0,S.jsx)(z.A,{title:e.label,value:null!==(r=e.value)&&void 0!==r?r:0,icon:(0,S.jsx)(t,{size:20}),color:e.color,loading:tt,caption:null!=e.percentage?"".concat(e.percentage,"% of total"):void 0})},e.key)}))}),(0,S.jsxs)(O.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1.25,md:1.75},borderRadius:me.radiusCard/8,border:"1px solid",borderColor:me.borderSubtle,background:"#fff",boxShadow:me.shadowSoft},children:[(0,S.jsxs)(K.Ay,{container:!0,spacing:1.25,alignItems:"center",children:[(0,S.jsx)(K.Ay,{item:!0,xs:12,sm:6,md:4,children:(0,S.jsx)(_.A,{options:lt||[],value:Sr,getOptionLabel:e=>(null===e||void 0===e?void 0:e.tenantname)||"",PaperComponent:we,onOpen:e=>{Pe||(e.preventDefault(),(0,C.k)("Please select location first!","warning",3e3),setTimeout((()=>{var e;null===(e=je.current)||void 0===e||e.focus()}),0))},onChange:(e,r,t)=>{"clear"===t?(ur(0),wr(null),Ar(0),Wr(null)):(ur((null===r||void 0===r?void 0:r.tenantid)||0),wr(r),Ar(0),Wr(null))},renderInput:e=>(0,S.jsx)(B.A,(0,o.A)((0,o.A)({},e),{},{inputRef:Me,placeholder:"Select Tenant",size:"small",sx:We(),InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:(0,S.jsx)(U.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5},children:(0,S.jsx)(Ce,{color:"#94a3b8",size:22,children:(0,S.jsx)(v.Itr,{size:13})})})})}))})}),(0,S.jsx)(K.Ay,{item:!0,xs:12,sm:6,md:4,children:(0,S.jsx)(_.A,{options:dt||[],getOptionLabel:e=>e?"".concat(e.locationname," (").concat(e.suburb,")"):"",value:Cr,PaperComponent:we,onOpen:e=>{Pe||hr?hr||(e.preventDefault(),(0,C.k)("Please select Tenant first!","warning",3e3),setTimeout((()=>{var e;null===(e=Me.current)||void 0===e||e.focus()}),0)):(e.preventDefault(),(0,C.k)("Please select a your Location and Tenant first!","warning",3e3),setTimeout((()=>{var e;null===(e=je.current)||void 0===e||e.focus()}),0))},onChange:(e,r,t)=>{"clear"===t?(Ar(0),Wr(null)):(Ar(r.locationid||0),Wr(r))},renderInput:e=>(0,S.jsx)(B.A,(0,o.A)((0,o.A)({},e),{},{placeholder:"Select Location",size:"small",sx:We(),InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:(0,S.jsx)(U.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5},children:(0,S.jsx)(Ce,{color:"#94a3b8",size:22,children:(0,S.jsx)(v.JFD,{size:13})})})})}))})}),(0,S.jsx)(K.Ay,{item:!0,xs:12,sm:12,md:4,children:(0,S.jsxs)(U.A,{direction:"row",spacing:1,alignItems:"center",justifyContent:{xs:"flex-start",md:"flex-end"},flexWrap:"wrap",children:[(0,S.jsx)(Z.A,{title:"Date Filter",placement:"top",children:(0,S.jsxs)(V.A,{onClick:()=>Be(!0),sx:{display:"inline-flex",alignItems:"center",gap:.75,px:1.5,py:.875,borderRadius:"10px",cursor:"pointer",bgcolor:"#ffffff",border:"1px solid #e2e8f0",color:"#475569",fontWeight:600,fontSize:12,transition:"border-color 0.15s, box-shadow 0.15s","&:hover":{borderColor:"#cbd5e1"},"& svg":{color:"#94a3b8"}},children:[(0,S.jsx)(v.Ki0,{size:15}),d()(Le).format("DD/MM/YY")," \u2013 ",d()(Ne).format("DD/MM/YY")]})}),(0,S.jsx)(V.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.5,borderRadius:"8px",bgcolor:"#f1f5f9",color:"#64748b",fontSize:11,fontWeight:600},children:He})]})})]}),(0,S.jsx)(y.A,{open:_e,onClose:()=>Be(!1),onSelect:e=>{Ee(e.startDate),qe(e.endDate),Ke(e.label),console.log("Selected Date Range:",e)}})]}),(0,S.jsx)(O.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:me.radiusCard/8,borderTopRightRadius:me.radiusCard/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:me.borderSubtle,borderBottom:0,background:"#fff"},children:(0,S.jsxs)(U.A,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:1.5,sx:{flexWrap:"wrap-reverse"},children:[(0,S.jsx)(U.A,{direction:"row",spacing:.75,sx:{flex:1,overflowX:"auto",py:.5,px:.25,"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-thumb":{backgroundColor:me.borderSubtle,borderRadius:4}},children:Ie.map((e=>{var r;const t=e.icon,o=Ue===e.idx,n=null!==(r=null===mt||void 0===mt?void 0:mt[e.countKey])&&void 0!==r?r:0;return(0,S.jsxs)(V.A,{onClick:r=>{return t=e.idx,cr(0),Ze(t),0===t&&Qe("created"),1===t&&Qe("pending"),2===t&&Qe("delivered"),3===t&&Qe("cancelled"),void fr("");var t},sx:{display:"inline-flex",alignItems:"center",gap:{xs:.625,md:.875},pl:.5,pr:{xs:1,md:1.25},py:.5,flexShrink:0,cursor:"pointer",borderRadius:me.radiusField+"px",border:"1px solid ".concat(o?e.color:me.borderSubtle),bgcolor:o?e.color:me.surface,color:o?"#fff":me.textSecondary,fontWeight:600,boxShadow:"none",transition:"background-color 0.15s, border-color 0.15s, color 0.15s","&:hover":{borderColor:o?e.color:me.borderHover,bgcolor:o?e.color:me.surfaceAlt}},children:[(0,S.jsx)(F.A,{sx:{width:{xs:20,md:22},height:{xs:20,md:22},bgcolor:o?"rgba(255,255,255,0.22)":ve(e.color),color:o?"#fff":e.color},children:(0,S.jsx)(t,{size:12})}),(0,S.jsx)(Q.A,{variant:"caption",sx:{fontWeight:600,fontSize:{xs:11.5,md:13},lineHeight:1},children:e.label}),(0,S.jsx)(V.A,{sx:{minWidth:{xs:20,md:24},height:{xs:18,md:20},px:.625,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:999,fontSize:{xs:10,md:11},fontWeight:700,bgcolor:o?"rgba(255,255,255,0.22)":me.surfaceAlt,color:o?"#fff":me.textSecondary,border:"none"},children:n})]},e.status)}))}),(0,S.jsx)(V.A,{sx:{width:{xs:"100%",sm:240,lg:280},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,S.jsx)(k.A,{value:gr,onChange:fr,onDebouncedChange:jr,placeholder:"Search orders (ctrl+k)",sx:{m:0,width:"100%",borderRadius:999,bgcolor:be(Se),"& fieldset":{borderColor:ke(Se),borderWidth:1.5},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:1.5},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(ye(Se))}}})})]})}),(0,S.jsx)(O.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:me.radiusCard/8,borderBottomRightRadius:me.radiusCard/8,border:"1px solid",borderColor:me.borderSubtle,overflow:"hidden",background:"#fff"},children:(0,S.jsx)(X.A,{ref:fe,onScroll:e=>{const{scrollTop:r,scrollHeight:t,clientHeight:o}=e.currentTarget;r+o>=t-50&&It&&!zt&&Dt()},sx:{maxHeight:{xs:"calc(100vh - 220px)",md:"calc(100vh - 190px)"},overflow:"auto","&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:ke(Se),borderRadius:8,"&:hover":{backgroundColor:Se}},"&::-webkit-scrollbar-track":{backgroundColor:me.surfaceAlt}},children:r?(0,S.jsxs)(ue.nV,{sx:{p:1.25},children:[0===(null===Pt||void 0===Pt?void 0:Pt.length)&&!wt&&(0,S.jsxs)(U.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,S.jsx)(F.A,{sx:{width:64,height:64,bgcolor:ve("#94a3b8"),color:me.textMuted},children:(0,S.jsx)(v.F6S,{size:28})}),(0,S.jsxs)(Q.A,{variant:"subtitle1",sx:{fontWeight:700,color:me.textPrimary},children:["No ",Ve," orders"]}),(0,S.jsx)(Q.A,{variant:"caption",sx:{color:me.textSecondary,textAlign:"center",px:2},children:gr?"Try a different keyword.":"Adjust the filters above to load orders."})]}),wt&&(0,S.jsxs)(U.A,{alignItems:"center",sx:{py:6},children:[(0,S.jsx)(he.A,{}),(0,S.jsx)(Q.A,{variant:"caption",color:"text.secondary",sx:{mt:1},children:"Loading orders\u2026"})]}),null===Pt||void 0===Pt?void 0:Pt.map(((r,t)=>{const n=!!Fr.find((e=>e.orderheaderid===r.orderheaderid)),i=De[String(r.orderstatus||"").toLowerCase()]||{label:r.orderstatus||"\u2014",color:Se,icon:v.bfP},l=i.icon;return(0,S.jsx)(ue.pg,{accent:i.color,selected:n,header:(0,S.jsxs)(U.A,{spacing:1.25,children:[(0,S.jsxs)(U.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,S.jsxs)(U.A,{direction:"row",alignItems:"center",spacing:.75,sx:{minWidth:0},children:["created"===Ve&&(0,S.jsx)(G.A,{size:"small",sx:{p:.25,color:ke(Se),"&.Mui-checked":{color:Se}},onChange:e=>{var t;if(!Pe)return(0,C.k)("Please select a location first!","warning",2e3),void(null===(t=je.current)||void 0===t||t.focus());e.target.checked?Tr((e=>[...e,(0,o.A)((0,o.A)({},r),{},{sno:e.length+1})])):Tr((e=>e.filter((e=>e.orderheaderid!==r.orderheaderid)).map(((e,r)=>(0,o.A)((0,o.A)({},e),{},{sno:r+1})))))},checked:n}),(0,S.jsx)(Q.A,{variant:"caption",sx:{fontWeight:700,color:me.textMuted},children:String(100*ar+t+1).padStart(2,"0")}),(0,S.jsxs)(V.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:be(i.color),border:"1px solid ".concat(ke(i.color)),color:i.color,fontSize:10.5,fontWeight:800,whiteSpace:"nowrap"},children:[(0,S.jsx)(l,{size:11})," ",i.label]})]}),"created"===r.orderstatus&&(0,S.jsxs)(U.A,{direction:"row",spacing:.75,sx:{flexShrink:0},children:["C"===r.deliverytype&&(0,S.jsx)(J.A,{size:"small",onClick:()=>{(null===dr||void 0===dr?void 0:dr.orderid)===r.orderid?xr(null):xr(r)},sx:{borderRadius:999,bgcolor:be("#06b6d4"),color:"#06b6d4",border:"1px solid ".concat(ke("#06b6d4")),"&:hover":{bgcolor:ve("#06b6d4")}},children:(null===dr||void 0===dr?void 0:dr.orderid)===r.orderid?(0,S.jsx)(j.A,{fontSize:"small"}):(0,S.jsx)(b.A,{fontSize:"small"})}),(0,S.jsx)(J.A,{size:"small",disabled:n,onClick:()=>{Ge(!0),sr(r.orderheaderid)},sx:{borderRadius:999,bgcolor:be("#ef4444"),color:"#ef4444",border:"1px solid ".concat(ke("#ef4444")),"&:hover":{bgcolor:ve("#ef4444")},"&.Mui-disabled":{color:e.palette.secondary.main}},children:(0,S.jsx)(A.A,{})})]})]}),(0,S.jsxs)(V.A,{sx:{minWidth:0},children:[(0,S.jsx)(Q.A,{sx:{fontWeight:800,color:me.textPrimary,fontSize:15},noWrap:!0,children:r.tenantname}),(0,S.jsx)(Q.A,{variant:"caption",sx:{color:me.textSecondary},noWrap:!0,children:[r.tenantsuburb,r.applocation].filter(Boolean).join(" \xb7 ")||"\u2014"})]})]}),children:(0,S.jsxs)(ue.FG,{children:[(0,S.jsxs)(ue.pY,{label:"Order / Location",full:!0,children:[(0,S.jsx)(Q.A,{sx:{fontSize:13,fontWeight:600,color:me.textPrimary},noWrap:!0,children:"".concat(r.locationname,"-(").concat(r.locationsuburb,")")}),(0,S.jsxs)(Q.A,{variant:"caption",sx:{color:me.textSecondary},children:[r.orderid," \xb7 ",ze(r)]})]}),(0,S.jsxs)(ue.pY,{label:"Pickup",children:[(0,S.jsx)(Q.A,{sx:{fontSize:13,fontWeight:600,color:me.textPrimary},noWrap:!0,children:r.pickupcustomer||"\u2014"}),(0,S.jsx)(Q.A,{variant:"caption",sx:{color:me.textSecondary},noWrap:!0,children:r.pickupcontactno}),(0,S.jsx)(Q.A,{variant:"caption",sx:{color:me.textSecondary},noWrap:!0,children:r.pickupsuburb||r.pickupaddress})]}),(0,S.jsxs)(ue.pY,{label:"Drop",children:[(0,S.jsx)(Q.A,{sx:{fontSize:13,fontWeight:600,color:me.textPrimary},noWrap:!0,children:r.deliverycustomer||"\u2014"}),(0,S.jsx)(Q.A,{variant:"caption",sx:{color:me.textSecondary},noWrap:!0,children:r.deliverycontactno}),(0,S.jsx)(Q.A,{variant:"caption",sx:{color:me.textSecondary},noWrap:!0,children:r.deliverysuburb||r.deliveryaddress})]}),(0,S.jsx)(ue.pY,{label:"Qty",value:r.quantity||"\u2014"}),(0,S.jsx)(ue.pY,{label:"KMS",children:(0,S.jsxs)(V.A,{sx:(s="#06b6d4",{display:"inline-flex",alignItems:"center",justifyContent:"center",px:1,py:.25,borderRadius:999,bgcolor:be(s),color:s,fontWeight:700,fontSize:11,border:"1px solid ".concat(ke(s)),whiteSpace:"nowrap"}),children:[r.kms||0," km"]})}),(0,S.jsx)(ue.pY,{label:"COD",children:(0,S.jsx)(Q.A,{sx:{fontSize:13,fontWeight:800,color:r.collectionamt?"#ef4444":me.textMuted},children:r.collectionamt?"\u20b9 ".concat(r.collectionamt.toFixed(2)):"\u2014"})}),(0,S.jsx)(ue.pY,{label:"Charges",children:(0,S.jsx)(Q.A,{sx:{fontSize:13,fontWeight:800,color:r.deliverycharge?"#ef4444":me.textMuted},children:r.deliverycharge?"\u20b9 ".concat(r.deliverycharge.toFixed(2)):"\u2014"})}),r.ordernotes&&(0,S.jsx)(ue.pY,{label:"Notes",full:!0,children:(0,S.jsx)(Q.A,{variant:"caption",sx:{color:me.textSecondary},children:r.ordernotes})})]})},r.sno);var s})),0!=(null===Pt||void 0===Pt?void 0:Pt.length)&&(0,S.jsx)("div",{ref:c,style:{height:40,textAlign:"center"},children:zt||It?(0,S.jsx)(he.A,{}):(0,S.jsx)(Q.A,{variant:"caption",sx:{color:me.textMuted,fontWeight:600},children:"No more orders"})})]}):(0,S.jsxs)($.A,{stickyHeader:!0,sx:{minWidth:{xs:960,md:1180}},children:[(0,S.jsx)(ee.A,{children:(0,S.jsxs)(re.A,{sx:{"& th":{backgroundColor:me.surfaceAlt,color:me.textSecondary,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(me.borderSubtle),py:{xs:1,md:1.25},px:{xs:1,md:1.5}}},children:["created"==Ve&&(0,S.jsx)(te.A,{sx:{position:"sticky !important"},children:(0,S.jsx)(G.A,{size:"small",sx:{p:.5,color:ke(Se),"&.Mui-checked, &.MuiCheckbox-indeterminate":{color:Se}},indeterminate:Fr.length>0&&Fr.length!==(null===Pt||void 0===Pt?void 0:Pt.length),checked:Fr.length===(null===Pt||void 0===Pt?void 0:Pt.length),onChange:e=>{var r;if(!Pe)return(0,C.k)("Please select a location first!","warning",2e3),void(null===(r=je.current)||void 0===r||r.focus());if(e.target.checked){const e=null===Pt||void 0===Pt?void 0:Pt.map(((e,r)=>(0,o.A)((0,o.A)({},e),{},{sno:r+1})));Tr(e)}else Tr([])}})}),(0,S.jsx)(te.A,{children:"#"}),(0,S.jsx)(te.A,{children:"Tenant"}),(0,S.jsx)(te.A,{children:"Location"}),(0,S.jsx)(te.A,{children:"Pickup"}),(0,S.jsx)(te.A,{children:"Drop"}),(0,S.jsx)(te.A,{align:"center",children:"QTY"}),(0,S.jsx)(te.A,{align:"right",children:"COD"}),(0,S.jsx)(te.A,{align:"center",children:"KMS"}),(0,S.jsx)(te.A,{align:"right",children:"Charges"}),(0,S.jsx)(te.A,{children:"Notes"}),(0,S.jsx)(te.A,{children:"Status"}),"created"==Ve&&(0,S.jsx)(te.A,{align:"right",children:"Actions"})]})}),(0,S.jsxs)(oe.A,{children:[0===(null===Pt||void 0===Pt?void 0:Pt.length)&&!wt&&(0,S.jsx)(re.A,{children:(0,S.jsx)(te.A,{colSpan:13,sx:{py:6},children:(0,S.jsxs)(U.A,{alignItems:"center",spacing:1.5,children:[(0,S.jsx)(F.A,{sx:{width:64,height:64,bgcolor:ve("#94a3b8"),color:me.textMuted},children:(0,S.jsx)(v.F6S,{size:28})}),(0,S.jsxs)(Q.A,{variant:"subtitle1",sx:{fontWeight:700,color:me.textPrimary},children:["No ",Ve," orders"]}),(0,S.jsx)(Q.A,{variant:"caption",sx:{color:me.textSecondary},children:gr?"Try a different keyword.":"Adjust the filters above to load orders."})]})})}),wt&&(0,S.jsx)(W.r,{col:8}),null===Pt||void 0===Pt?void 0:Pt.map(((r,t)=>{const n=!!Fr.find((e=>e.orderheaderid===r.orderheaderid));return(0,S.jsxs)(re.A,{role:"checkbox",tabIndex:-1,sx:{cursor:"pointer",transition:"background-color 0.15s",backgroundColor:n?be(Se):"transparent","& td":{borderBottom:"1px solid ".concat(me.divider),py:{xs:1,md:1.25},px:{xs:1,md:1.5}},"&:hover":{backgroundColor:n?ve(Se)+" !important":me.surfaceAlt}},children:["created"===Ve&&(0,S.jsx)(te.A,{children:(0,S.jsx)(G.A,{size:"small",sx:{p:.5,color:ke(Se),"&.Mui-checked":{color:Se}},onChange:e=>{var t;if(!Pe)return(0,C.k)("Please select a location first!","warning",2e3),void(null===(t=je.current)||void 0===t||t.focus());e.target.checked?Tr((e=>[...e,(0,o.A)((0,o.A)({},r),{},{sno:e.length+1})])):Tr((e=>e.filter((e=>e.orderheaderid!==r.orderheaderid)).map(((e,r)=>(0,o.A)((0,o.A)({},e),{},{sno:r+1})))))},checked:n})}),(0,S.jsx)(te.A,{children:(0,S.jsx)(Q.A,{children:100*ar+t+1})}),(0,S.jsx)(te.A,{children:(0,S.jsxs)(Z.A,{title:r.tenantaddress,children:[(0,S.jsx)(Q.A,{variant:"subtitle1",noWrap:!0,children:r.tenantname}),(0,S.jsxs)(Q.A,{noWrap:!0,variant:"body2",children:[r.tenantsuburb,(0,S.jsx)("br",{})]}),(0,S.jsx)(Q.A,{noWrap:!0,variant:"body2",children:r.applocation})]})}),(0,S.jsxs)(te.A,{align:"left",children:[(0,S.jsx)(Q.A,{variant:"subtitle1",noWrap:!0,children:"".concat(r.locationname,"-(").concat(r.locationsuburb,")")}),(0,S.jsx)(Z.A,{title:"TenantId - OrderId",children:(0,S.jsx)(Q.A,{variant:"body2",noWrap:!0,children:r.orderid})}),(0,S.jsx)(Z.A,{title:"Pickup Slot",children:(0,S.jsx)(Q.A,{noWrap:!0,sx:{fontSize:"12px"},children:ze(r)})})]}),(0,S.jsx)(te.A,{align:"left",children:(0,S.jsxs)(U.A,{direction:"column",children:[(0,S.jsx)(Q.A,{variant:"subtitle1",sx:{whiteSpace:"nowrap"},children:r.pickupcustomer}),(0,S.jsx)(Q.A,{variant:"caption",children:r.pickupcontactno}),(0,S.jsx)(Z.A,{title:r.pickupaddress,children:(0,S.jsx)(Q.A,{variant:"caption",children:"".concat(r.pickupsuburb||r.pickupaddress.slice(0,12)+".....")})})]})}),(0,S.jsx)(te.A,{align:"left",children:(0,S.jsxs)(U.A,{direction:"column",children:[(0,S.jsx)(Q.A,{variant:"subtitle1",sx:{maxWidth:120,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r.deliverycustomer}),(0,S.jsx)(Q.A,{variant:"caption",children:r.deliverycontactno}),(0,S.jsx)(Z.A,{title:r.deliveryaddress,sx:{whiteSpace:"nowrap"},children:(0,S.jsx)(Q.A,{variant:"caption",children:"".concat(r.deliverysuburb||r.deliveryaddress.slice(0,12)+".....")})})]})}),(0,S.jsx)(te.A,{align:"center",children:r.quantity?(0,S.jsx)(Q.A,{variant:"subtitle1",color:"error",sx:{whiteSpace:"nowrap"},children:r.quantity}):(0,S.jsx)(Q.A,{variant:"subtitle1",sx:{whiteSpace:"nowrap"},children:r.quantity})}),(0,S.jsx)(te.A,{align:"right",children:r.collectionamt?(0,S.jsxs)(Q.A,{variant:"subtitle1",color:r.collectionamt?"error":null,sx:{whiteSpace:"nowrap"},children:["\u20b9",r.collectionamt.toFixed(2)]}):(0,S.jsxs)(Q.A,{variant:"subtitle1",sx:{whiteSpace:"nowrap"},children:["\u20b9",r.collectionamt.toFixed(2)]})}),(0,S.jsx)(te.A,{align:"center",children:(0,S.jsx)(Q.A,{variant:"subtitle1",color:r.kms?"error":null,children:r.kms})}),(0,S.jsx)(te.A,{align:"right",children:r.deliverycharge?(0,S.jsxs)(Q.A,{variant:"subtitle1",color:r.deliverycharge?"error":null,sx:{whiteSpace:"nowrap"},children:["\u20b9",r.deliverycharge.toFixed(2)]}):(0,S.jsxs)(Q.A,{variant:"subtitle1",sx:{whiteSpace:"nowrap"},children:["\u20b9",r.deliverycharge.toFixed(2)]})}),(0,S.jsx)(te.A,{align:"left",children:(0,S.jsx)(Q.A,{variant:"body1",fontSize:"12px",sx:{maxWidth:120,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r.ordernotes})}),(0,S.jsx)(te.A,{align:"left",children:(()=>{const e=De[String(r.orderstatus||"").toLowerCase()]||{label:r.orderstatus||"\u2014",color:Se,icon:v.bfP},t=e.icon;return(0,S.jsxs)(V.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:be(e.color),border:"1px solid ".concat(ke(e.color)),color:e.color,fontSize:11,fontWeight:800,whiteSpace:"nowrap"},children:[(0,S.jsx)(t,{size:12})," ",e.label]})})()}),"created"===r.orderstatus&&(0,S.jsx)(te.A,{align:"center",children:(0,S.jsxs)(U.A,{flexDirection:"row",justifyContent:"end",children:["C"===r.deliverytype&&(0,S.jsx)(Z.A,{title:"Product details",children:(0,S.jsx)(J.A,{color:"primary",onClick:()=>{(null===dr||void 0===dr?void 0:dr.orderid)===r.orderid?xr(null):xr(r)},children:(null===dr||void 0===dr?void 0:dr.orderid)===r.orderid?(0,S.jsx)(j.A,{}):(0,S.jsx)(b.A,{})})}),(0,S.jsx)(Z.A,{title:"To Cancel",children:(0,S.jsx)(J.A,{"aria-describedby":"aria-".concat(r.sno),disabled:n,onClick:()=>{Ge(!0),sr(r.orderheaderid)},children:(0,S.jsx)(A.A,{style:{color:n?e.palette.secondary.main:e.palette.error.main}})})})]})})]},r.sno)})),0!=(null===Pt||void 0===Pt?void 0:Pt.length)&&(0,S.jsx)(re.A,{children:(0,S.jsx)(te.A,{colSpan:15,rowSpan:3,sx:{borderBottom:"none"},children:(0,S.jsx)("div",{ref:c,style:{height:40,textAlign:"center"},children:zt||It?(0,S.jsx)(he.A,{}):(0,S.jsx)(Q.A,{variant:"caption",sx:{color:me.textMuted,fontWeight:600},children:"No more orders"})})})})]})]})})}),(0,S.jsxs)(ne.A,{fullScreen:!0,open:Je,TransitionComponent:g.s,children:[(0,S.jsx)(L.A,{sx:{position:"absolute",color:"#fff",zIndex:e=>e.zIndex.modal+1},open:br,children:(0,S.jsx)(f.A,{color:"inherit",text:"Optimising ... .."})}),(0,S.jsx)(ie.A,{sx:{bgcolor:e.palette.primary.lighter},children:(0,S.jsx)(N.A,{badgeContent:null===Fr||void 0===Fr?void 0:Fr.length,color:"primary",children:(0,S.jsx)(le.A,{label:(0,S.jsx)(Q.A,{variant:"h3",children:"Preview Orders "}),variant:"contained"})})}),(0,S.jsx)(se.A,{dividers:!0,children:(0,S.jsx)(w.A,{content:!1,children:(0,S.jsx)(X.A,{children:(0,S.jsxs)($.A,{stickyHeader:!0,children:[(0,S.jsx)(ee.A,{children:(0,S.jsxs)(re.A,{children:[(0,S.jsx)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.lighter},children:"#"}),(0,S.jsxs)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.lighter},children:["Tenant"," "]}),(0,S.jsx)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.lighter},children:"order Location"}),(0,S.jsxs)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.lighter},children:["Pickup"," "]}),(0,S.jsx)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.lighter},children:"Delivery"}),(0,S.jsx)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.lighter},children:"Notes"}),(0,S.jsx)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.lighter},children:"Charges"}),(0,S.jsx)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.lighter},children:"KMS"})]})}),(0,S.jsx)(oe.A,{children:Fr.map(((e,r)=>(0,S.jsx)(n.Fragment,{children:(0,S.jsxs)(re.A,{sx:{},children:[(0,S.jsx)(te.A,{children:(0,S.jsxs)(Q.A,{children:[" ",e.sno]})}),(0,S.jsx)(te.A,{children:(0,S.jsxs)(Z.A,{title:e.tenantaddress,children:[(0,S.jsx)(Q.A,{variant:"body1",noWrap:!0,children:e.tenantname}),(0,S.jsxs)(Q.A,{noWrap:!0,sx:{fontSize:"11px"},children:[e.tenantsuburb,(0,S.jsx)("br",{})]}),(0,S.jsx)(Q.A,{noWrap:!0,variant:"body2",children:e.applocation})]})}),(0,S.jsxs)(te.A,{align:"left",children:[(0,S.jsx)(Z.A,{title:e.locationaddress,placement:"top",children:(0,S.jsx)(Q.A,{variant:"body1",noWrap:!0,children:"".concat(e.locationname,"-(").concat(e.locationsuburb,")")})}),(0,S.jsx)(Z.A,{title:"Order Id",children:(0,S.jsx)(Q.A,{variant:"body2",noWrap:!0,children:e.orderid})}),(0,S.jsxs)(U.A,{display:"flex",flexDirection:"row",gap:3,children:[(0,S.jsxs)(Z.A,{title:"Ordered date",children:[(0,S.jsx)(Q.A,{noWrap:!0,sx:{fontSize:"12px"},children:d()(e.orderdate).utc().format("DD/MM/YYYY")}),(0,S.jsx)(Q.A,{noWrap:!0,sx:{fontSize:"11px"},children:d()(e.orderdate).utc().format("hh:mm A")})]}),"-",(0,S.jsxs)(Z.A,{title:"Delivery date",children:[(0,S.jsx)(Q.A,{noWrap:!0,sx:{fontSize:"12px"},children:d()(e.deliverydate).utc().format("DD/MM/YYYY")}),(0,S.jsx)(Q.A,{noWrap:!0,sx:{fontSize:"11px"},children:d()(e.deliverydate).utc().format("hh:mm A")})]})]})]}),(0,S.jsx)(te.A,{align:"left",children:(0,S.jsx)(U.A,{direction:"row",spacing:1,children:(0,S.jsxs)(U.A,{direction:"column",children:[(0,S.jsx)(Q.A,{variant:"caption",children:e.pickupcustomer}),(0,S.jsx)(Q.A,{variant:"caption",children:e.pickupcontactno}),(0,S.jsx)(Z.A,{title:e.pickupaddress,children:(0,S.jsx)(Q.A,{variant:"caption",children:e.pickupsuburb||e.pickupaddress.slice(0,20)})})]})})}),(0,S.jsx)(te.A,{align:"left",children:(0,S.jsx)(U.A,{direction:"row",spacing:1,children:(0,S.jsxs)(U.A,{direction:"column",children:[(0,S.jsx)(Q.A,{variant:"caption",children:e.deliverycustomer}),(0,S.jsx)(Q.A,{variant:"caption",children:e.deliverycontactno}),(0,S.jsx)(Z.A,{title:e.deliveryaddress,children:(0,S.jsx)(Q.A,{variant:"caption",children:e.deliverysuburb||e.deliveryaddress.slice(0,20)})})]})})}),(0,S.jsx)(te.A,{align:"left",children:e.ordernotes}),(0,S.jsxs)(te.A,{align:"left",children:["\u20b9 ",e.deliverycharge.toFixed(2)]}),(0,S.jsx)(te.A,{align:"left",children:e.kms})]})},r)))})]})})})}),(0,S.jsx)(ae.A,{sx:{bgcolor:e.palette.secondary.light},children:(0,S.jsx)(K.Ay,{container:!0,sx:{},children:(0,S.jsx)(K.Ay,{item:!0,xs:12,children:(0,S.jsxs)(U.A,{sx:{mt:2,mr:2},direction:"row",justifyContent:"flex-end",flexWrap:"wrap",gap:2,spacing:5,children:[(0,S.jsx)(ce.A,{sx:{width:"130px"},color:"secondary",variant:"contained",onClick:()=>{Nt()},startIcon:(0,S.jsx)(A.A,{}),children:"Close"}),1==Qr.current&&(0,S.jsx)(_.A,{options:[{label:"Bike",value:1},{label:"Auto",value:2}],getOptionLabel:e=>e.label,value:Gr,onChange:(e,r)=>{Jr(r),console.log("Selected value:",null===r||void 0===r?void 0:r.value)},renderInput:e=>(0,S.jsx)(B.A,(0,o.A)((0,o.A)({sx:{width:200,border:"1px solid ",borderColor:"primary.main"}},e),{},{placeholder:"Select Transport"})),isOptionEqualToValue:(e,r)=>e.value===r.value}),1==Qr.current&&(0,S.jsx)(_.A,{multiple:!0,fullWidth:!1,options:gt||[],loading:ft,disableCloseOnSelect:!0,limitTags:2,value:$r,onChange:(e,r)=>et(r),getOptionLabel:e=>"".concat(e.firstname||""," ").concat(e.lastname||"").trim()||"Rider #".concat(e.userid),isOptionEqualToValue:(e,r)=>e.userid===r.userid,PaperComponent:e=>(0,S.jsx)(O.A,(0,o.A)((0,o.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:"0 14px 40px rgba(15, 23, 42, 0.18)",border:"1px solid",borderColor:"divider",overflow:"hidden"}})),ListboxProps:{sx:{py:0,maxHeight:340}},noOptionsText:(0,S.jsxs)(U.A,{alignItems:"center",py:2,spacing:1,children:[(0,S.jsx)(v.vbW,{size:26,color:"#94a3b8"}),(0,S.jsx)(Q.A,{variant:"caption",color:"text.secondary",children:"No riders to show for this location"})]}),renderTags:(e,r)=>e.map(((e,t)=>{const i="".concat(e.firstname||""," ").concat(e.lastname||"").trim()||"Rider #".concat(e.userid),l=(i.match(/\b\w/g)||[]).slice(0,2).join("").toUpperCase()||"?",s=r({index:t});return(0,n.createElement)(le.A,(0,o.A)((0,o.A)({},s),{},{key:e.userid,size:"small",avatar:(0,S.jsx)(F.A,{sx:{bgcolor:"#fed7aa",color:"#9a3412",fontSize:10,fontWeight:800},children:l}),label:i,sx:{height:26,bgcolor:"#fff7ed",color:"#9a3412",border:"1px solid",borderColor:"#fdba74",fontWeight:600,fontSize:12,"& .MuiChip-label":{px:.75},"& .MuiChip-deleteIcon":{color:"#c2410c",fontSize:16,"&:hover":{color:"#7c2d12"}}}}))})),renderOption:(e,r,t)=>{let{selected:i}=t;const l="".concat(r.firstname||""," ").concat(r.lastname||"").trim(),s=(l.match(/\b\w/g)||[]).slice(0,2).join("").toUpperCase()||"?";return(0,n.createElement)("li",(0,o.A)((0,o.A)({},e),{},{key:r.userid,style:{display:"flex",alignItems:"center",gap:12,padding:"8px 12px",borderBottom:"1px solid #f1f5f9",backgroundColor:i?"#fff7ed":"transparent"}}),(0,S.jsx)(G.A,{size:"small",checked:i,sx:{p:.5,color:"#fb923c","&.Mui-checked":{color:"#ea580c"}}}),(0,S.jsx)(F.A,{sx:{width:34,height:34,bgcolor:i?"#fb923c":"#f1f5f9",color:i?"#fff":"#475569",fontSize:12,fontWeight:800,transition:"background-color 0.15s, color 0.15s"},children:s}),(0,S.jsxs)(U.A,{direction:"column",spacing:0,flex:1,minWidth:0,children:[(0,S.jsx)(Q.A,{variant:"body2",fontWeight:700,color:"#0f172a",noWrap:!0,children:l||"Rider #".concat(r.userid)}),(0,S.jsxs)(Q.A,{variant:"caption",color:"text.secondary",noWrap:!0,children:["ID #",r.userid,r.contactno?" \xb7 ".concat(r.contactno):""]})]}),i&&(0,S.jsx)(le.A,{size:"small",label:"Absent",sx:{height:18,fontSize:9,fontWeight:800,letterSpacing:.3,bgcolor:"#ea580c",color:"#fff","& .MuiChip-label":{px:.75}}}))},renderInput:e=>(0,S.jsx)(B.A,(0,o.A)((0,o.A)({},e),{},{label:"Absent Riders",placeholder:$r.length?"":"Pick riders unavailable today",InputLabelProps:{shrink:!0},InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:(0,S.jsxs)(U.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25},children:[(0,S.jsx)(v.ihY,{size:18,color:"#ea580c"}),$r.length>0&&(0,S.jsx)(le.A,{size:"small",label:$r.length,sx:{height:18,minWidth:22,fontSize:10,fontWeight:800,bgcolor:"#ea580c",color:"#fff","& .MuiChip-label":{px:.5}}}),e.InputProps.startAdornment]})}),sx:{minWidth:300,maxWidth:440,"& .MuiOutlinedInput-root":{borderRadius:2,bgcolor:"#fffbf5",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#fdba74",borderWidth:1.5},"&:hover fieldset":{borderColor:"#fb923c"},"&.Mui-focused":{boxShadow:"0 0 0 3px rgba(251, 146, 60, 0.18)"},"&.Mui-focused fieldset":{borderColor:"#ea580c",borderWidth:2}},"& .MuiInputLabel-root":{fontWeight:700,fontSize:13,color:"#9a3412","&.Mui-focused":{color:"#9a3412"}}}})),sx:{"& .MuiAutocomplete-tag":{my:.25},"& .MuiAutocomplete-endAdornment":{right:8}}}),(0,S.jsx)(ce.A,{color:"primary",disabled:!Gr&&1==Qr.current,variant:"contained",startIcon:1==Qr.current&&(0,S.jsx)("img",{src:M,alt:"Assign",style:{width:32,height:32,objectFit:"contain",borderRadius:50}}),onClick:()=>{vr(!0),Lt()},children:Fe?"Optimising...":0==Qr.current?"Optimise Orders":"AI Optimise Orders"})]})})})})]}),(0,S.jsxs)(ne.A,{fullScreen:!0,open:Pr,TransitionComponent:g.s,children:[(0,S.jsx)(ie.A,{children:(0,S.jsx)(U.A,{children:(0,S.jsxs)(U.A,{direction:"row",alignItems:"center",spacing:1,sx:{ml:1},children:[(0,S.jsx)(Z.A,{title:"Back to orders",placement:"top",children:(0,S.jsx)(J.A,{onClick:()=>Yr(!1),sx:{backgroundColor:"action.hover",color:"text.primary","&:hover":{backgroundColor:"action.selected"}},children:(0,S.jsx)(Y.eQE,{size:22})})}),(0,S.jsx)(Q.A,{sx:{m:2},variant:"h3",children:"Assign Orders"})]})})}),(0,S.jsx)(de.A,{}),(0,S.jsx)(se.A,{children:(0,S.jsxs)(w.A,{content:!1,children:[(At||ft||yr)&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(m.A,{}),(0,S.jsx)(f.A,{})]}),(0,S.jsx)(L.A,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:At||ft||yr,children:(0,S.jsx)(f.A,{color:"inherit"})}),(0,S.jsx)(X.A,{children:(0,S.jsxs)($.A,{stickyHeader:!0,children:[(0,S.jsx)(ee.A,{children:(0,S.jsxs)(re.A,{sx:{backgroundColor:"red"},children:[(0,S.jsx)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.light},children:"#"}),1==_r&&(0,S.jsxs)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.light},children:["Zone"," "]}),(0,S.jsxs)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.light},children:["Tenant"," "]}),(0,S.jsx)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.light},children:"order Location"}),(0,S.jsxs)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.light},children:["Pickup"," "]}),(0,S.jsx)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.light},children:"Delivery"}),(0,S.jsx)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.light},children:"Notes"}),1==_r&&(0,S.jsx)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.light},children:"Rider"}),(0,S.jsx)(te.A,{align:"center",sx:{position:"sticky !important",backgroundColor:e.palette.secondary.light},children:"Type"}),(0,S.jsx)(te.A,{align:"center",sx:{position:"sticky !important",backgroundColor:e.palette.secondary.light},children:"Charges"}),(0,S.jsx)(te.A,{align:"center",sx:{position:"sticky !important",backgroundColor:e.palette.secondary.light},children:"KMS"})]})}),(0,S.jsxs)(oe.A,{children:[0==(null===Zr||void 0===Zr?void 0:Zr.length)&&(0,S.jsx)(re.A,{children:(0,S.jsx)(te.A,{colSpan:10,children:(0,S.jsx)(a.A,{})})}),null===Zr||void 0===Zr?void 0:Zr.map(((e,r)=>(0,S.jsxs)(re.A,{sx:{},children:[(0,S.jsx)(te.A,{children:(0,S.jsxs)(Q.A,{children:[" ",r+1]})}),(0,S.jsx)(te.A,{children:(0,S.jsxs)(Z.A,{title:e.tenantaddress,children:[(0,S.jsx)(Q.A,{variant:"body1",noWrap:!0,children:e.tenantname}),(0,S.jsxs)(Q.A,{noWrap:!0,sx:{fontSize:"11px"},children:[e.tenantsuburb,(0,S.jsx)("br",{})]}),(0,S.jsx)(Q.A,{noWrap:!0,variant:"body2",children:e.applocation})]})}),(0,S.jsxs)(te.A,{align:"left",children:[(0,S.jsx)(Z.A,{title:e.locationaddress,placement:"top",children:(0,S.jsx)(Q.A,{variant:"body1",noWrap:!0,children:"".concat(e.locationname,"-(").concat(e.locationsuburb,")")})}),(0,S.jsx)(Z.A,{title:"Order Id",children:(0,S.jsx)(Q.A,{variant:"body2",noWrap:!0,children:e.orderid})}),(0,S.jsxs)(U.A,{display:"flex",flexDirection:"row",gap:3,children:[(0,S.jsxs)(Z.A,{title:"Ordered date",children:[(0,S.jsx)(Q.A,{noWrap:!0,sx:{fontSize:"12px"},children:d()(e.orderdate).utc().format("DD/MM/YYYY")}),(0,S.jsx)(Q.A,{noWrap:!0,sx:{fontSize:"11px"},children:d()(e.orderdate).utc().format("hh:mm A")})]}),"-",(0,S.jsxs)(Z.A,{title:"Delivery date",children:[(0,S.jsx)(Q.A,{noWrap:!0,sx:{fontSize:"12px"},children:d()(e.deliverydate).utc().format("DD/MM/YYYY")}),(0,S.jsx)(Q.A,{noWrap:!0,sx:{fontSize:"11px"},children:d()(e.deliverydate).utc().format("hh:mm A")})]})]})]}),(0,S.jsx)(te.A,{align:"left",children:(0,S.jsx)(U.A,{direction:"row",spacing:1,children:(0,S.jsxs)(U.A,{direction:"column",children:[(0,S.jsx)(Q.A,{variant:"caption",children:e.pickupcustomer}),(0,S.jsx)(Q.A,{variant:"caption",children:e.pickupcontactno}),(0,S.jsx)(Z.A,{title:e.pickupaddress,children:(0,S.jsx)(Q.A,{variant:"caption",children:e.pickupsuburb||e.pickupaddress.slice(0,20)})})]})})}),(0,S.jsx)(te.A,{align:"left",children:(0,S.jsx)(U.A,{direction:"row",spacing:1,children:(0,S.jsxs)(U.A,{direction:"column",children:[(0,S.jsx)(Q.A,{variant:"caption",children:e.deliverycustomer}),(0,S.jsx)(Q.A,{variant:"caption",children:e.deliverycontactno}),(0,S.jsx)(Z.A,{title:e.deliveryaddress,children:(0,S.jsx)(Q.A,{variant:"caption",children:e.deliverysuburb||e.deliveryaddress.slice(0,20)})})]})})}),(0,S.jsx)(te.A,{align:"left",children:e.ordernotes}),(0,S.jsx)(te.A,{align:"center",children:(0,S.jsx)(le.A,{size:"small",label:e.ordertype,color:"Economy"==e.ordertype?"success":"Risky"==e.ordertype?"error":"primary",variant:"light"})}),(0,S.jsx)(te.A,{align:"center",children:(0,S.jsxs)(U.A,{display:"flex",flexDirection:"column",gap:1,sx:{cursor:"pointer"},children:[(0,S.jsx)(Z.A,{title:"Charges",placement:"top",children:(0,S.jsx)(le.A,{size:"small",label:"\u20b9 ".concat(e.deliverycharge.toFixed(2)," "),color:"error",variant:"light"})}),(0,S.jsx)(Z.A,{title:"Amount",placement:"left",children:(0,S.jsx)(le.A,{size:"small",label:"\u20b9 ".concat(e.deliveryamt.toFixed(2)," "),color:"success",variant:"light"})})]})}),(0,S.jsx)(te.A,{align:"center",children:(0,S.jsxs)(U.A,{display:"flex",flexDirection:"column",gap:1,sx:{cursor:"pointer"},children:[(0,S.jsx)(Z.A,{title:"KMS",placement:"top",children:(0,S.jsx)(le.A,{size:"small",label:"".concat(e.kms," km"),color:"error",variant:"light"})}),(0,S.jsx)(Z.A,{title:"Cumulative Kms",placement:"right",children:(0,S.jsx)(le.A,{size:"small",label:"".concat(e.cumulativekms," km"),color:"success",variant:"light"})})]})})]},r)))]})]})}),(0,S.jsx)(de.A,{})]})}),(0,S.jsx)(de.A,{}),(0,S.jsxs)(ae.A,{sx:{flexDirection:"column",alignItems:"stretch",p:2,gap:2},children:[(0,S.jsxs)(K.Ay,{container:!0,spacing:2,children:[(0,S.jsx)(K.Ay,{item:!0,xs:12,sm:6,children:(0,S.jsx)(_.A,{options:pt,fullWidth:!0,renderInput:e=>(0,S.jsx)(B.A,(0,o.A)((0,o.A)({},e),{},{label:"Choose Payment"})),onChange:(e,r,t)=>{if("clear"!==t){if(r){ir(r);const e=null===Zr||void 0===Zr?void 0:Zr.map((e=>(0,o.A)((0,o.A)({},e),{},{paymenttype:r.apptypeid||42})));Vr(e)}}else ir(null)}})}),(0,S.jsx)(K.Ay,{item:!0,xs:12,sm:6,children:(0,S.jsx)(_.A,{options:gt,fullWidth:!0,renderInput:e=>(0,S.jsx)(B.A,(0,o.A)((0,o.A)({},e),{},{label:"Choose Rider"})),onChange:(e,r,t)=>{if("clear"!==t){if(r){or(r);const e=null===Zr||void 0===Zr?void 0:Zr.map((e=>(0,o.A)((0,o.A)({},e),{},{userid:r.userid,fuelcharge:r.fuelcharge||0,userfcmtoken:r.userfcmtoken})));Vr(e)}}else or(null)}})})]}),(0,S.jsxs)(U.A,{direction:"row",spacing:2,justifyContent:"flex-end",sx:{pt:1,my:2},children:[(0,S.jsx)(ce.A,{variant:"outlined",color:"secondary",startIcon:(0,S.jsx)(P.A,{}),onClick:()=>Yr(!1),children:"Back"}),(0,S.jsx)(ce.A,{variant:"contained",disabled:!tr||!nr,onClick:()=>{null!==Zr&&void 0!==Zr&&Zr.length?Rt.mutate({deliveries:Zr}):(0,C.k)("No deliveries selected","error",3e3)},children:"Assign Orders"})]})]})]}),(0,S.jsxs)(ne.A,{open:zr,fullScreen:!0,TransitionComponent:g.s,PaperProps:{sx:{display:"flex",flexDirection:"column",overflow:"hidden"}},children:[(0,S.jsx)(L.A,{sx:{position:"absolute",color:"#fff",zIndex:e=>e.zIndex.modal+1},open:yr,children:(0,S.jsx)(f.A,{color:"inherit"})}),(0,S.jsx)(ie.A,{sx:{py:1.25},children:(0,S.jsxs)(U.A,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{},children:[(0,S.jsxs)(U.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,S.jsx)(Z.A,{title:"Back to orders",placement:"top",children:(0,S.jsx)(J.A,{onClick:()=>t("/nearle/orders"),sx:{bgcolor:"action.hover","&:hover":{bgcolor:"action.selected"}},children:(0,S.jsx)(Y.eQE,{size:20})})}),(0,S.jsx)(Q.A,{variant:"h3",fontWeight:600,children:"Assign Orders"})]}),(0,S.jsxs)(U.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,S.jsx)(_.A,{options:[{tuneid:1,type:"Balanced",value:"balanced"},{tuneid:2,type:"Aggressive Speed",value:"aggressive_speed"},{tuneid:3,type:"Fuel Saver",value:"fuel_saver"},{tuneid:4,type:"Zone Strict",value:"zone_strict"}]||[],getOptionLabel:e=>e.type,sx:{minWidth:250,maxWidth:600,flex:1},renderInput:e=>(0,S.jsx)(B.A,(0,o.A)((0,o.A)({},e),{},{label:"Hyper Tuning"})),onChange:(e,r,t)=>{"clear"===t?Lt(null):(console.log("val",r),Lt(r.value))}}),(0,S.jsx)(ce.A,{variant:"contained",color:"primary",startIcon:(0,S.jsx)(R.UF6,{}),onClick:()=>{kr(!0),Lt("reshuffle")},children:"Re-Assign"}),(0,S.jsx)(Ae.Ay,{data:Br,filename:"Orders_Detail_".concat(d()().format("YYYY-MM-DD_HHmmss"),".csv"),label:" CSV",style:{m:1}})]})]})}),(0,S.jsx)(se.A,{sx:{p:0,display:"flex",flexDirection:"column",overflow:"hidden",flex:1},children:Rr&&(0,S.jsx)(ge.default,{data:Rr,embedded:!0})}),(0,S.jsx)(ae.A,{sx:{px:2,py:1.25},children:(0,S.jsxs)(U.A,{direction:"row",gap:2,alignItems:"center",justifyContent:"end",children:[(0,S.jsx)(ce.A,{variant:"contained",color:"secondary",startIcon:(0,S.jsx)(P.A,{}),onClick:()=>{Mr(!1)},children:"Back"}),(0,S.jsx)(ce.A,{variant:"contained",onClick:async()=>{kr(!0),Et.mutate({deliveries:Zr})},children:"Assign Orders"})]})})]}),(0,S.jsx)(ne.A,{open:Xe,onClose:()=>handleClose(),maxWidth:"xs",children:(0,S.jsx)(se.A,{sx:{mt:2,my:1},children:(0,S.jsxs)(U.A,{alignItems:"center",spacing:3.5,children:[(0,S.jsx)(F.A,{color:"error",sx:{width:72,height:72,fontSize:"1.75rem"},children:(0,S.jsx)(s.A,{})}),(0,S.jsx)(U.A,{spacing:2,children:(0,S.jsx)(Q.A,{variant:"h4",align:"center",children:"Are you sure you want to cancel this order?"})}),(0,S.jsxs)(U.A,{direction:"row",spacing:2,sx:{width:1},children:[(0,S.jsx)(ce.A,{fullWidth:!0,color:"error",variant:"contained",onClick:()=>{Ot.mutate(lr)},autoFocus:!0,children:"Yes, Cancel"}),(0,S.jsx)(ce.A,{fullWidth:!0,onClick:()=>{Ge(!1)},color:"secondary",variant:"outlined",children:"No"})]})]})})}),(0,S.jsx)(ne.A,{open:er,onClose:()=>rr(!1),maxWidth:"xs",children:(0,S.jsx)(se.A,{sx:{mt:2,my:1},children:(0,S.jsxs)(U.A,{alignItems:"center",spacing:3.5,children:[(0,S.jsx)(F.A,{color:"error",sx:{width:72,height:72,fontSize:"1.75rem"},children:(0,S.jsx)(s.A,{})}),(0,S.jsx)(U.A,{spacing:2,children:(0,S.jsx)(Q.A,{variant:"h4",align:"center",children:"Are you sure, you want to cancel multiple orders?"})}),(0,S.jsxs)(U.A,{direction:"row",spacing:2,sx:{width:1},children:[(0,S.jsx)(ce.A,{fullWidth:!0,onClick:()=>{rr(!1)},color:"secondary",variant:"outlined",children:"No"}),(0,S.jsx)(ce.A,{fullWidth:!0,color:"error",variant:"contained",onClick:()=>{Ft.mutate(Fr)},autoFocus:!0,children:"Yes, Cancel"})]})]})})})]})}},23787:(e,r,t)=>{t.d(r,{FG:()=>u,nV:()=>x,pY:()=>p,pg:()=>h});var o=t(89379),n=t(80045),i=t(93230),l=t(2235),s=t(16491),a=t(82053),c=t(44414);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:r,scroll:t=!1,onScroll:l,sx:s}=e,a=(0,n.A)(e,d);return(0,c.jsx)(i.A,(0,o.A)((0,o.A)({spacing:1.25,onScroll:l,sx:(0,o.A)((0,o.A)({p:1.5},t&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),s)},a),{},{children:r}))},h=e=>{let{accent:r="#662582",header:t,footer:n,selected:i=!1,onClick:a,children:d,sx:x}=e;return(0,c.jsxs)(l.A,{elevation:0,onClick:a,sx:(0,o.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:i?r:"#e2e8f0",background:i?"".concat(r,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,c.jsx)(s.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:r}}),(0,c.jsxs)(s.A,{sx:{p:1.5,pl:2},children:[t,d,n]})]})},u=e=>{let{children:r,columns:t=2,sx:n}=e;return(0,c.jsx)(s.A,{sx:(0,o.A)({display:"grid",gridTemplateColumns:"repeat(".concat(t,", minmax(0, 1fr))"),gap:1,mt:1.25},n),children:r})},p=e=>{let{label:r,value:t,children:o,full:n=!1,align:i="left"}=e;return(0,c.jsxs)(s.A,{sx:{gridColumn:n?"1 / -1":"auto",minWidth:0,textAlign:i},children:[(0,c.jsx)(a.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:r}),(0,c.jsx)(s.A,{sx:{mt:.25,minWidth:0},children:void 0!==o?o:(0,c.jsx)(a.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==t&&void 0!==t?t:"\u2014"})})]})}},27001:(e,r,t)=>{t.d(r,{A:()=>s});var o=t(93230),n=t(16491),i=t(82053),l=t(44414);function s(e){let{title:r,subtitle:t,live:s=!1,action:a}=e;return(0,l.jsxs)(o.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,l.jsxs)(n.A,{sx:{minWidth:0},children:[(0,l.jsx)(i.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:r}),t&&(0,l.jsxs)(o.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[s&&(0,l.jsx)(n.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,l.jsx)(i.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:t})]})]}),a&&(0,l.jsx)(n.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:a})]})}},35678:(e,r,t)=>{t.d(r,{A:()=>v});var o=t(9950),n=t(96583),i=t(40033),l=t(82053),s=t(28170),a=t(93230),c=t(10226),d=t(55916),x=t(4159),h=t.n(x),u=t(56712),p=t(81417),A=t(96600),g=t(53132),f=t(94289),m=t(57326),j=t(50624),b=t(44414);const v=e=>{let{open:r,onClose:t,onSelect:x}=e;const[v,y]=(0,o.useState)(null);return(0,b.jsxs)(n.A,{open:r,onClose:t,children:[(0,b.jsx)(i.A,{align:"left",children:(0,b.jsx)(l.A,{variant:"h4",children:"Select Filter Options"})}),(0,b.jsx)(s.A,{sx:{width:"100%"},className:"datedialog",children:(0,b.jsx)(d.U,{open:r,toggle:t,id:"daterange1",onChange:e=>{y({startDate:h()(e.startDate).format("YYYY-MM-DD"),endDate:h()(e.endDate).format("YYYY-MM-DD"),label:e.label||"custom"})},definedRanges:[{label:"Today",startDate:new Date,endDate:new Date},{label:"Yesterday",startDate:(0,u.A)(new Date,-1),endDate:(0,u.A)(new Date,-1)},{label:"Tomorrow",startDate:(0,u.A)(new Date,1),endDate:(0,u.A)(new Date,1)},{label:"This Week",startDate:(0,p.A)(new Date),endDate:(0,A.A)(new Date)},{label:"Last Week",startDate:(0,p.A)((0,g.A)(new Date,-1)),endDate:(0,A.A)((0,g.A)(new Date,-1))},{label:"Last 7 Days",startDate:(0,g.A)(new Date,-1),endDate:new Date},{label:"This Month",startDate:(0,f.A)(new Date),endDate:(0,m.A)(new Date)},{label:"Last Month",startDate:(0,f.A)((0,j.A)(new Date,-1)),endDate:(0,m.A)((0,j.A)(new Date,-1))}]})}),(0,b.jsx)(a.A,{direction:"row",justifyContent:"flex-end",sx:{width:"100%",p:2},children:(0,b.jsx)(c.A,{variant:"contained",size:"small",onClick:()=>{v?(x(v),t()):t()},children:"OK"})})]})}},36803:(e,r,t)=>{t.d(r,{A:()=>x});var o=t(48089),n=t(50704),i=t(93230),l=t(16491),s=t(82053),a=t(82917),c=t(41413),d=t(44414);function x(e){let{title:r,value:t,icon:x,color:h="#662582",caption:u,loading:p=!1}=e;return(0,d.jsx)(o.A,{sx:{height:"100%"},children:(0,d.jsx)(n.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,d.jsxs)(i.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,d.jsxs)(l.A,{sx:{minWidth:0,flex:1},children:[(0,d.jsx)(s.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r}),p?(0,d.jsx)(a.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,d.jsx)(s.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t}),u&&(0,d.jsx)(s.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:u})]}),x&&(0,d.jsx)(c.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(h,"14"),color:h,flexShrink:0},children:x})]})})})}},47659:(e,r,t)=>{t.d(r,{A:()=>d});var o=t(89379),n=t(48089),i=t(50704),l=t(16491),s=t(82053),a=t(60899),c=t(44414);const d=e=>{let{primary:r,secondary:t,percentage:d,color:x,sx:h}=e;return(0,c.jsx)(n.A,{elevation:0,sx:(0,o.A)({background:x,position:"relative",color:"#fff","&:hover svg":{opacity:1,transform:"scale(1.1)"}},h),children:(0,c.jsxs)(i.A,{children:[(0,c.jsx)(l.A,{sx:{position:"absolute",right:15,top:25,color:"#fff","& svg":{width:36,height:36,opacity:.5,transition:"all .3s ease-in-out"}},children:(0,c.jsx)(s.A,{variant:"h2",color:"inherit",sx:{fontSize:{xs:20,md:25}},children:d&&"number"===typeof d?"".concat(d.toString()," %"):d})}),(0,c.jsxs)(a.Ay,{container:!0,spacing:0,children:[(0,c.jsx)(a.Ay,{item:!0,xs:12,children:(0,c.jsx)(s.A,{variant:"h3",color:"inherit",sx:{fontSize:{xs:16,md:20}},children:t})}),(0,c.jsx)(a.Ay,{item:!0,xs:12,children:(0,c.jsx)(s.A,{variant:"subtitle2",color:"inherit",children:r})})]})]})})}},56311:(e,r,t)=>{t.d(r,{A:()=>u});var o=t(89379),n=t(9950),i=t(2660),l=t(2046),s=t(83274),a=t(25333),c=t(97125),d=t(7762),x=t(52097),h=t(44414);const u=e=>{let{value:r,onChange:t,onDebouncedChange:u,debounceTime:p=500,placeholder:A="Search (ctrl+k)",sx:g}=e;const f=(0,n.useRef)(null),[m]=(0,x.d7)(r,p);return(0,n.useEffect)((()=>{u&&u(m)}),[m,u]),(0,n.useEffect)((()=>{const e=e=>{var r;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(r=f.current)||void 0===r||r.focus());"Escape"===e.key&&document.activeElement===f.current&&f.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,h.jsx)(i.A,{sx:(0,o.A)({},g),inputRef:f,placeholder:A,autoComplete:"off",value:r,fullWidth:!0,onChange:e=>t(e.target.value),startAdornment:(0,h.jsx)(l.A,{position:"start",sx:{mr:-.5},children:(0,h.jsx)(c.A,{})}),endAdornment:(0,h.jsx)(s.A,{title:"Clear",children:(0,h.jsx)(a.A,{sx:{visibility:r?"visible":"hidden"},onClick:()=>t(""),children:(0,h.jsx)(d.A,{})})})})}},58691:(e,r,t)=>{t.d(r,{A:()=>s});t(9950);var o=t(16491),n=t(46639),i=t(62217),l=t(44414);function s(e){let{size:r=70,imgSize:t=40,alt:s="loader"}=e;return(0,l.jsxs)(o.A,{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",children:[(0,l.jsx)(n.A,{size:r}),(0,l.jsx)(o.A,{position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",sx:{width:t,height:t},children:(0,l.jsx)("img",{src:i,alt:s,style:{width:"100%",height:"100%",borderRadius:"50%",objectFit:"contain"}})})]})}},59212:(e,r,t)=>{t.d(r,{A:()=>h});var o=t(89379),n=t(9950),i=t(93230),l=t(41413),s=t(77922),a=t(29925),c=t(26910),d=t(31222),x=t(44414);const h=(0,n.forwardRef)(((e,r)=>{let{setAppId:t,setLocoName:h,setPage:u,sx:p,textfeildSx:A,textfieldSx:g,pill:f=!1,accentColor:m="#6366f1",icon:j,placeholder:b="Select Zone",paperComponent:v}=e;const[y,k]=(0,n.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,n.useEffect)((()=>{0===y.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const r=await c.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(r.data.status){const e=[...r.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),k(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[y.length]);const S=e=>"".concat(m).concat(e),w=S("26"),C=S("18"),W=f?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(w)},"&.Mui-focused fieldset":{borderColor:m,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},D=f&&(0,x.jsx)(i.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,x.jsx)(l.A,{sx:{width:24,height:24,bgcolor:C,color:m,transition:"background-color 0.15s, color 0.15s"},children:j||(0,x.jsx)(d.HPi,{size:14})})});return(0,x.jsx)(s.A,{id:"location-autocomplete",options:y||[],getOptionLabel:e=>{var r;return null!==(r=null===e||void 0===e?void 0:e.locationname)&&void 0!==r?r:""},PaperComponent:v,sx:(0,o.A)({},p),onChange:(e,r,o)=>{"clear"===o?(null===t||void 0===t||t(0),null===h||void 0===h||h(""),null===u||void 0===u||u(0)):r&&(null===t||void 0===t||t(r.applocationid),null===h||void 0===h||h(r.locationname),null===u||void 0===u||u(0))},renderInput:e=>f?(0,x.jsx)(a.A,(0,o.A)((0,o.A)({},e),{},{inputRef:r,placeholder:b,InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:D}),sx:(0,o.A)((0,o.A)({},W),g||A||{})})):(0,x.jsx)(a.A,(0,o.A)((0,o.A)({},e),{},{inputRef:r,label:"Select Zones",sx:(0,o.A)({},g||A||{})}))})}))},96646:(e,r,t)=>{t.d(r,{r:()=>a});var o=t(9213),n=t(21671),i=t(82917),l=t(93230),s=t(44414);const a=e=>{let{rowsPerPage:r=5,col:t=1}=e;return(0,s.jsx)(s.Fragment,{children:Array.from(new Array(r)).map(((e,r)=>(0,s.jsxs)(o.A,{children:[(0,s.jsx)(n.A,{children:(0,s.jsx)(i.A,{variant:"circular",width:24,height:24})}),(0,s.jsx)(n.A,{children:(0,s.jsx)(i.A,{variant:"text",width:30})}),Array.from({length:t}).map(((e,r)=>(0,s.jsx)(n.A,{children:(0,s.jsxs)(l.A,{spacing:.5,children:[(0,s.jsx)(i.A,{variant:"text",width:100}),(0,s.jsx)(i.A,{variant:"text",width:80})]})},r))),(0,s.jsx)(n.A,{children:(0,s.jsx)(i.A,{variant:"text",width:150})}),(0,s.jsx)(n.A,{children:(0,s.jsx)(i.A,{variant:"rounded",width:60,height:24})}),(0,s.jsx)(n.A,{align:"center",children:(0,s.jsxs)(l.A,{direction:"row",spacing:1,justifyContent:"flex-end",children:[(0,s.jsx)(i.A,{variant:"circular",width:28,height:28}),(0,s.jsx)(i.A,{variant:"circular",width:28,height:28})]})})]},r)))})}}}]); \ No newline at end of file diff --git a/build/static/js/4947.82e8f095.chunk.js b/build/static/js/4947.82e8f095.chunk.js new file mode 100644 index 0000000..7f50c69 --- /dev/null +++ b/build/static/js/4947.82e8f095.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[4947],{13968:(e,r,t)=>{t.r(r),t.d(r,{default:()=>Me});var o=t(22555),n=t(85672),i=t(64551),l=t(19103),s=t(18871),a=t(38464),c=t(46077),d=t.n(c),x=t(68320),h=t(41033),u=t(68220),p=(t(47659),t(69039)),A=t(36563),g=t(37476),f=t(94826),m=t(52351),j=t(78752),b=t(6749),v=t(48952),y=t(35678),k=t(56311),S=t(65908);var w=t(59008),C=t(20466),W=t(96646),D=t(59212),I=t(27001),z=t(36803);const M=t.p+"static/media/aiImage.89c2ccb91a41d85031e3.png";var P=t(70775),Y=t(68070),R=t(66166),O=t(55235),F=t(97043),T=t(76264),L=t(15227),E=t(95661),N=t(45066),q=t(46781),H=t(42836),K=t(1939),_=t(17488),B=t(86270),U=t(71392),Z=t(23440),V=t(48738),Q=t(2866),X=t(83209),G=t(28579),J=t(11969),$=t(72486),ee=t(54016),re=t(50755),te=t(1596),oe=t(81802),ne=t(58689),ie=t(19619),le=t(81062),se=t(5670),ae=t(17450),ce=t(80911),de=t(58571),xe=t(81425),he=t(58691),ue=t(23787),pe=t(96515),Ae=t(90376),ge=t(88267),fe=t(22686);d().extend(fe);const me={radiusPill:999,radiusCard:14,shadowSoft:"0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05)",shadowMd:"0 1px 3px rgba(15, 23, 42, 0.06)",shadowPop:"0 12px 32px rgba(15, 23, 42, 0.12)",textPrimary:"#0f172a",textSecondary:"#64748b",textMuted:"#94a3b8",borderSubtle:"#e2e8f0",divider:"#f1f5f9",surface:"#ffffff",surfaceAlt:"#f8fafc"},je=(e,r)=>"".concat(e).concat(r),be=e=>je(e,"08"),ve=e=>je(e,"18"),ye=e=>je(e,"26"),ke=e=>je(e,"55"),Se="#662582",we=e=>(0,S.jsx)(O.A,(0,o.A)((0,o.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:me.shadowPop,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),Ce=e=>{let{color:r,selected:t,size:o=24,children:n}=e;return(0,S.jsx)(F.A,{sx:{width:o,height:o,bgcolor:t?r:ve(r),color:t?"#fff":r,transition:"background-color 0.15s, color 0.15s"},children:n})},We=()=>({"& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,"& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(ye("#662582"))},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:1.5}}}),De={created:{label:"Created",color:"#0ea5e9",icon:v.F6S},pending:{label:"Pending",color:"#f59e0b",icon:v.tX0},processing:{label:"Processing",color:"#0ea5e9",icon:v.bfP},modified:{label:"Modified",color:"#06b6d4",icon:v.bfP},confirmed:{label:"Confirmed",color:"#10b981",icon:v.mU9},accepted:{label:"Accepted",color:"#6366f1",icon:v.mU9},delivered:{label:"Delivered",color:"#10b981",icon:v.mU9},cancelled:{label:"Cancelled",color:"#ef4444",icon:v.uDv}},Ie=[{idx:0,status:"created",label:"Created",color:Se,icon:v.F6S,countKey:"created"},{idx:1,status:"pending",label:"Pending",color:"#f59e0b",icon:v.tX0,countKey:"pending"},{idx:2,status:"delivered",label:"Delivered",color:"#10b981",icon:v.mU9,countKey:"delivered"},{idx:3,status:"cancelled",label:"Cancelled",color:"#ef4444",icon:v.uDv,countKey:"cancelled"}],ze=e=>{const r=[e.pickupslot,e.deliverydate,e.orderdate];for(const t of r)if(t&&d()(t).isValid())return"".concat(d()(t).utc().format("DD/MM/YYYY")," ").concat(d()(t).format("hh:mm A"));return"\u2014"},Me=()=>{const e=(0,p.A)(),r=(0,T.A)(e.breakpoints.down("md")),t=(0,pe.Zp)(),c=(0,n.useRef)(),fe=(0,n.useRef)(),je=(0,n.useRef)(null),Me=(0,n.useRef)(null),[Pe,Ye]=(0,n.useState)(0),[Re,Oe]=(0,n.useState)("All"),[Fe,Te]=(0,n.useState)(!1),[Le,Ee]=(0,n.useState)(d()().format("YYYY-MM-DD")),[Ne,qe]=(0,n.useState)(d()().format("YYYY-MM-DD")),[He,Ke]=(0,n.useState)("Today"),[_e,Be]=(0,n.useState)(!1),[Ue,Ze]=(0,n.useState)(0),[Ve,Qe]=(0,n.useState)("created"),[Xe,Ge]=(0,n.useState)(!1),[Je,$e]=(0,n.useState)(!1),[er,rr]=(0,n.useState)(!1),[tr,or]=(0,n.useState)(null),[nr,ir]=(0,n.useState)(null),[lr,sr]=(0,n.useState)(""),[ar,cr]=(0,n.useState)(0),[dr,xr]=(0,n.useState)(null),[hr,ur]=(0,n.useState)(0),[pr,Ar]=(0,n.useState)(0),[gr,fr]=(0,n.useState)(""),[mr,jr]=(0,n.useState)(""),[br,vr]=(0,n.useState)(!1),[yr,kr]=(0,n.useState)(!1),[Sr,wr]=(0,n.useState)(null),[Cr,Wr]=(0,n.useState)(null),[Dr,Ir]=(0,n.useState)(!1),[zr,Mr]=(0,n.useState)(!1),[Pr,Yr]=(0,n.useState)(!1),[Rr,Or]=(0,n.useState)(null),[Fr,Tr]=(0,n.useState)([]),[Lr,Er]=(0,n.useState)([]),[Nr,qr]=(0,n.useState)(null),[Hr,Kr]=(0,n.useState)(null),[_r]=(0,n.useState)(0),[Br,Ur]=(0,n.useState)([]),[Zr,Vr]=(0,n.useState)([]),Qr=(0,n.useRef)(0),Xr=(0,n.useRef)(null),[Gr,Jr]=(0,n.useState)(null),[$r,et]=(0,n.useState)([]);(0,n.useEffect)((()=>{ur(0),wr(null),Ar(0),Wr(null)}),[Pe]),(0,n.useEffect)((()=>{Ar(0),Wr(null)}),[hr]),(0,n.useEffect)((()=>{const e=Zr.map((e=>({zone_name:e.zone_name,ordernotes:e.ordernotes,rider:e.rider,step:e.step,ordertype:e.ordertype,orderamount:e.orderamount,riderkms:e.riderkms,cumulativekms:e.cumulativekms,baseprice:e.baseprice,minkm:e.minkm,priceperkm:e.priceperkm,kms:e.kms,actualkms:e.actualkms,rider_charge:e.rider_charge,deliveryamt:e.deliveryamt,deliverycharges:e.deliverycharges,profit:e.profit})));Ur(e),console.log("csvExportData",e)}),[Zr]),(0,n.useEffect)((()=>{if(null===Lr||void 0===Lr||!Lr.length)return;const e=Lr.map((e=>{const r=Number(e.cumulativekms||0),t=Number(e.minkm||0),n=Number(e.baseprice||0),i=Number(e.priceperkm||0);return r<=t?(0,o.A)((0,o.A)({},e),{},{deliveryamt:n}):(0,o.A)((0,o.A)({},e),{},{deliveryamt:(r-t)*i+n})}));Vr(e),console.log("finaldeliveryList",e)}),[Lr]);const{data:rt,isLoading:tt,isError:ot,error:nt,refetch:it}=(0,x.I)({queryKey:["percentageData",Pe,Le,Ne,hr,pr],queryFn:xe.jy,enabled:!0}),{data:lt,isLoading:st,isError:at,error:ct}=(0,x.I)({queryKey:["tenantlist",Pe],queryFn:()=>(0,xe.Mn)(Pe),enabled:0!==Pe}),{data:dt,isLoading:xt,isError:ht,error:ut}=(0,x.I)({queryKey:["gettenantlocations",hr],queryFn:()=>(0,xe.DL)(hr),enabled:0!==hr}),{data:pt=[],isLoading:At}=(0,x.I)({queryKey:["paymentmodes"],queryFn:xe.HY}),{data:gt=[],isLoading:ft}=(0,x.I)({queryKey:["ridersList",Pe],queryFn:xe.Sd,enabled:0!==Pe}),{data:mt,isLoading:jt,isError:bt,error:vt,refetch:yt}=(0,x.I)({queryKey:["ordersCount",Pe,Le,Ne,Ve,hr,pr],queryFn:xe.Hh,refetchOnMount:!0,refetchOnWindowFocus:!0}),{data:kt}=(0,x.I)({queryKey:["getallriders"],queryFn:xe.Xw,refetchOnMount:!0,refetchOnWindowFocus:!0}),{data:St,isLoading:wt,isError:Ct,error:Wt,fetchNextPage:Dt,hasNextPage:It,isFetchingNextPage:zt,refetch:Mt}=(0,h.q)({queryKey:["fetchOrders",Pe,Ve,mr,Le,Ne,100,hr,pr],queryFn:xe.nQ,getNextPageParam:e=>{var r;return null!==(r=e.nextPage)&&void 0!==r?r:void 0},refetchOnWindowFocus:!0,refetchOnMount:!0,refetchOnReconnect:!0,staleTime:0}),Pt=(null===St||void 0===St?void 0:St.pages.flatMap((e=>e.rows)))||[];(0,n.useEffect)((()=>{if(!It)return;const e=new IntersectionObserver((e=>{e[0].isIntersecting&&Dt()}),{root:document.querySelector(".MuiTableContainer-root"),rootMargin:"0px",threshold:1});return c.current&&e.observe(c.current),()=>{c.current&&e.unobserve(c.current)}}),[It,Dt]);const Yt=(0,u.n)({mutationFn:0==Qr.current?xe.FC:xe.Yk,onSuccess:function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(console.log("data",e),console.log("varialbles",r),(0,C.k)("Orders Optimised Successfully","success",2e3),yt(),Mt(),Te(!1),vr(!1),0==Qr.current)Er(null===e||void 0===e?void 0:e.details),qr(null===e||void 0===e?void 0:e.zones),Kr(null===e||void 0===e?void 0:e.meta),Yr(!0);else{var o,n,i;Er(null===e||void 0===e?void 0:e.details),qr(null===e||void 0===e?void 0:e.zones),Kr(null===e||void 0===e?void 0:e.meta),Or(e);const r=Xr.current||{};t("/nearle/dispatch/preview",{state:{dispatchPreviewData:e,aiMode:null!==(o=r.aiMode)&&void 0!==o?o:Qr.current,selectedMode:r.selectedMode||Gr,deliveryData:r.deliveryData||[],autoRiders:r.autoRiders||kt||[],absentRidersPayload:r.absentRidersPayload||[],rider:r.rider||tr,appId:null!==(n=r.appId)&&void 0!==n?n:Pe,tenantId:null!==(i=r.tenantid)&&void 0!==i?i:hr,startdate:Le}})}},onError:e=>{(0,C.k)(e.message,"error",4e3),vr(!1),Te(!1)},onSettled:()=>{Nt(),Te(!1),vr(!1),kr(!1)}}),Rt=(0,u.n)({mutationFn:xe.H2,onMutate:()=>{kr(!0)},onSuccess:e=>{console.log("create data",e),(0,C.k)("Delivery Created Successfully","success",2e3),t("/nearle/deliveries"),Tt.mutate(null===tr||void 0===tr?void 0:tr.userfcmtoken)},onError:e=>{(0,C.k)(e.message,"error",4e3)},onSettled:()=>{kr(!1)}}),Ot=(0,u.n)({mutationFn:xe.N4,onSuccess:e=>{e.status&&(Ge(!1),(0,C.k)("Order Cancelled Successfully","success",2e3),yt(),it())},onError:e=>{(0,C.k)(e.message,"error",2e3)}}),Ft=(0,u.n)({mutationFn:xe.zR,onSuccess:e=>{e.status&&(rr(!1),(0,C.k)("Order Cancelled Successfully","success",2e3),Mt(),yt(),it(),Tr([]))},onError:e=>{(0,C.k)(e.message,"error",2e3)}}),Tt=(0,u.n)({mutationFn:xe.k3,onSuccess:()=>{(0,C.k)("Notification sent Successfully","success",2e3)},onError:e=>{(0,C.k)(e.message,"error",2e3)}}),Lt=async e=>{kr(!0),Te(!0);const r=Fr.map((e=>(0,o.A)((0,o.A)({},e),{},{deliveryid:0,deliverydate:d()(e.deliverydate).utc().format("YYYY-MM-DD HH:mm:ss"),assigntime:d()().format("YYYY-MM-DD HH:mm:ss"),orderstatus:"pending",orderamount:e.deliverycharge,droplat:e.deliverylat,droplon:e.deliverylong,pickuplat:e.pickuplat,pickuplon:e.pickuplong,ordernotes:e.ordernotes,deliverycharges:e.deliverycharge,pickuplocation:e.pickupsuburb,deliverylocation:e.deliverysuburb})));console.log("deliveryData",r);const t=($r||[]).map((e=>({userid:e.userid,username:"".concat(e.firstname||""," ").concat(e.lastname||"").trim()||e.username||"Rider ".concat(e.userid)})));Xr.current={deliveryData:r,absentRidersPayload:t,autoRiders:kt,selectedMode:Gr,aiMode:Qr.current,rider:tr,appId:Pe,tenantid:hr},0==Qr.current?Yt.mutate({deliveries:r}):Gr&&1==(null===Gr||void 0===Gr?void 0:Gr.value)?Yt.mutate({deliveries:1==Gr.value?r:{body:r},hypertuning_params:e||null,selectedMode:Gr,absent_riders:t}):Yt.mutate({data:{orders:r,riders:kt,config:{pay_type:"hourly",base_pay:300,strategy:"multi_trip"},absent_riders:t},selectedMode:Gr})},Et=(0,u.n)({mutationFn:xe.H2,onSuccess:(e,r)=>{console.log("data",e),console.log("varialbles",r),(0,C.k)("Delivery Created Successfully","success",2e3),kr(!1),t("/nearle/deliveries")},onError:e=>{(0,C.k)(e.message,"error",4e3)},onSettled:()=>{kr(!1)}}),Nt=()=>{$e(!1),or(null),ir(null),Jr(null),et([])},qt=ot?"Error fetching percentages: ".concat(null===nt||void 0===nt?void 0:nt.message):bt?"Error fetching orders Count: ".concat(null===vt||void 0===vt?void 0:vt.message):Ct?"Error fetching orders : ".concat(null===Wt||void 0===Wt?void 0:Wt.message):at?"Error Fetching on Tenants:".concat(null===ct||void 0===ct?void 0:ct.message," "):ht?"Error Fetching on Tenants Locations:".concat(null===ut||void 0===ut?void 0:ut.message," "):null;return(0,n.useEffect)((()=>{qt&&(console.log(qt),(0,C.k)(qt,"error",3e3))}),[qt]),(0,S.jsxs)(n.Fragment,{children:[(tt||jt||wt||st||xt||br)&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(m.A,{}),(0,S.jsx)(f.A,{})]}),(0,S.jsx)(L.A,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:br||wt,children:(0,S.jsx)(f.A,{color:"inherit"})}),(0,S.jsx)(L.A,{sx:{zIndex:1e3},open:Dr}),Fr.length>0&&(0,S.jsxs)(E.A,{ariaLabel:"Actions",icon:(0,S.jsx)(N.A,{badgeContent:(null===Fr||void 0===Fr?void 0:Fr.length)||"",color:"secondary",children:(0,S.jsx)(q.A,{})}),open:Dr,onOpen:()=>Ir(!0),onClose:()=>Ir(!1),sx:{position:"fixed",bottom:52,right:16,"& .MuiFab-primary":{bgcolor:"#7b1fa2",color:"#fff","&:hover":{bgcolor:"#6a1b9a"},width:64,height:64}},children:[(0,S.jsx)(H.A,{icon:(0,S.jsx)("img",{src:M,alt:"Assign",style:{width:38,height:38,objectFit:"contain",borderRadius:50}}),tooltipTitle:" Optimisation",FabProps:{sx:{bgcolor:"primary.main",color:"#fff","&:hover":{bgcolor:"primary.dark"},width:64,height:64}},onClick:()=>{Qr.current=1,Ir(!1),$e(!0)}}),(0,S.jsx)(H.A,{icon:(0,S.jsx)(i.A,{style:{fontSize:22}}),tooltipTitle:"Manual Assign",FabProps:{sx:{bgcolor:"success.600",color:"#fff","&:hover":{bgcolor:"success.dark"},width:64,height:64}},onClick:()=>{Qr.current=0,Ir(!1),$e(!0)}}),(0,S.jsx)(H.A,{icon:(0,S.jsx)(l.A,{style:{fontSize:22}}),tooltipTitle:"Delete",FabProps:{sx:{bgcolor:"#d32f2f",color:"#fff","&:hover":{bgcolor:"#9a0007"},width:64,height:64}},onClick:()=>{Ir(!1),rr(!0)}})]}),(0,S.jsx)(I.A,{title:"Orders",subtitle:"Live \xb7 ".concat(Re||"All Zones"," \xb7 ").concat(He),live:!0,action:(0,S.jsx)(D.A,{ref:je,locaName:Re,setAppId:Ye,setLocoName:Oe,setPage:cr,pill:!0,accentColor:Se,icon:(0,S.jsx)(v.HPi,{size:14}),placeholder:"Select Zone",paperComponent:we,sx:{width:{xs:"100%",sm:280},zIndex:100}})}),(0,S.jsx)(K.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:[{key:"created",label:"Created Orders",color:"#662582",icon:v.AdO,value:null===rt||void 0===rt?void 0:rt.created,percentage:null===rt||void 0===rt?void 0:rt.percentage1},{key:"pending",label:"Pending Orders",color:"#f59e0b",icon:v.G6c,value:null===rt||void 0===rt?void 0:rt.uncoveredOrders,percentage:null===rt||void 0===rt?void 0:rt.percentage2},{key:"delivered",label:"Delivered Orders",color:"#10b981",icon:v.cAP,value:null===rt||void 0===rt?void 0:rt.coveredOrders,percentage:null===rt||void 0===rt?void 0:rt.percentage3},{key:"cancelled",label:"Cancelled Orders",color:"#ef4444",icon:v.qiG,value:null===rt||void 0===rt?void 0:rt.cancelled,percentage:null===rt||void 0===rt?void 0:rt.percentage4}].map((e=>{var r;const t=e.icon;return(0,S.jsx)(K.Ay,{item:!0,xs:6,sm:6,md:3,children:(0,S.jsx)(z.A,{title:e.label,value:null!==(r=e.value)&&void 0!==r?r:0,icon:(0,S.jsx)(t,{size:20}),color:e.color,loading:tt,caption:null!=e.percentage?"".concat(e.percentage,"% of total"):void 0})},e.key)}))}),(0,S.jsxs)(O.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1.25,md:1.75},borderRadius:me.radiusCard/8,border:"1px solid",borderColor:me.borderSubtle,background:"#fff",boxShadow:me.shadowSoft},children:[(0,S.jsxs)(K.Ay,{container:!0,spacing:1.25,alignItems:"center",children:[(0,S.jsx)(K.Ay,{item:!0,xs:12,sm:6,md:4,children:(0,S.jsx)(_.A,{options:lt||[],value:Sr,getOptionLabel:e=>(null===e||void 0===e?void 0:e.tenantname)||"",PaperComponent:we,onOpen:e=>{Pe||(e.preventDefault(),(0,C.k)("Please select location first!","warning",3e3),setTimeout((()=>{var e;null===(e=je.current)||void 0===e||e.focus()}),0))},onChange:(e,r,t)=>{"clear"===t?(ur(0),wr(null),Ar(0),Wr(null)):(ur((null===r||void 0===r?void 0:r.tenantid)||0),wr(r),Ar(0),Wr(null))},renderInput:e=>(0,S.jsx)(B.A,(0,o.A)((0,o.A)({},e),{},{inputRef:Me,placeholder:"Select Tenant",size:"small",sx:We(),InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:(0,S.jsx)(U.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5},children:(0,S.jsx)(Ce,{color:"#94a3b8",size:22,children:(0,S.jsx)(v.Itr,{size:13})})})})}))})}),(0,S.jsx)(K.Ay,{item:!0,xs:12,sm:6,md:4,children:(0,S.jsx)(_.A,{options:dt||[],getOptionLabel:e=>e?"".concat(e.locationname," (").concat(e.suburb,")"):"",value:Cr,PaperComponent:we,onOpen:e=>{Pe||hr?hr||(e.preventDefault(),(0,C.k)("Please select Tenant first!","warning",3e3),setTimeout((()=>{var e;null===(e=Me.current)||void 0===e||e.focus()}),0)):(e.preventDefault(),(0,C.k)("Please select a your Location and Tenant first!","warning",3e3),setTimeout((()=>{var e;null===(e=je.current)||void 0===e||e.focus()}),0))},onChange:(e,r,t)=>{"clear"===t?(Ar(0),Wr(null)):(Ar(r.locationid||0),Wr(r))},renderInput:e=>(0,S.jsx)(B.A,(0,o.A)((0,o.A)({},e),{},{placeholder:"Select Location",size:"small",sx:We(),InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:(0,S.jsx)(U.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5},children:(0,S.jsx)(Ce,{color:"#94a3b8",size:22,children:(0,S.jsx)(v.JFD,{size:13})})})})}))})}),(0,S.jsx)(K.Ay,{item:!0,xs:12,sm:12,md:4,children:(0,S.jsxs)(U.A,{direction:"row",spacing:1,alignItems:"center",justifyContent:{xs:"flex-start",md:"flex-end"},flexWrap:"wrap",children:[(0,S.jsx)(Z.A,{title:"Date Filter",placement:"top",children:(0,S.jsxs)(V.A,{onClick:()=>Be(!0),sx:{display:"inline-flex",alignItems:"center",gap:.75,px:1.5,py:.875,borderRadius:"10px",cursor:"pointer",bgcolor:"#ffffff",border:"1px solid #e2e8f0",color:"#475569",fontWeight:600,fontSize:12,transition:"border-color 0.15s, box-shadow 0.15s","&:hover":{borderColor:"#cbd5e1"},"& svg":{color:"#94a3b8"}},children:[(0,S.jsx)(v.Ki0,{size:15}),d()(Le).format("DD/MM/YY")," \u2013 ",d()(Ne).format("DD/MM/YY")]})}),(0,S.jsx)(V.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.5,borderRadius:"8px",bgcolor:"#f1f5f9",color:"#64748b",fontSize:11,fontWeight:600},children:He})]})})]}),(0,S.jsx)(y.A,{open:_e,onClose:()=>Be(!1),onSelect:e=>{Ee(e.startDate),qe(e.endDate),Ke(e.label),console.log("Selected Date Range:",e)}})]}),(0,S.jsx)(O.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:me.radiusCard/8,borderTopRightRadius:me.radiusCard/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:me.borderSubtle,borderBottom:0,background:"#fff"},children:(0,S.jsxs)(U.A,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:1.5,sx:{flexWrap:"wrap-reverse"},children:[(0,S.jsx)(U.A,{direction:"row",spacing:.75,sx:{flex:1,overflowX:"auto",py:.5,px:.25,"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-thumb":{backgroundColor:me.borderSubtle,borderRadius:4}},children:Ie.map((e=>{var r;const t=e.icon,o=Ue===e.idx,n=null!==(r=null===mt||void 0===mt?void 0:mt[e.countKey])&&void 0!==r?r:0;return(0,S.jsxs)(V.A,{onClick:r=>{return t=e.idx,cr(0),Ze(t),0===t&&Qe("created"),1===t&&Qe("pending"),2===t&&Qe("delivered"),3===t&&Qe("cancelled"),void fr("");var t},sx:{display:"inline-flex",alignItems:"center",gap:{xs:.625,md:.875},pl:.5,pr:{xs:1,md:1.25},py:.5,flexShrink:0,cursor:"pointer",borderRadius:me.radiusField+"px",border:"1px solid ".concat(o?e.color:me.borderSubtle),bgcolor:o?e.color:me.surface,color:o?"#fff":me.textSecondary,fontWeight:600,boxShadow:"none",transition:"background-color 0.15s, border-color 0.15s, color 0.15s","&:hover":{borderColor:o?e.color:me.borderHover,bgcolor:o?e.color:me.surfaceAlt}},children:[(0,S.jsx)(F.A,{sx:{width:{xs:20,md:22},height:{xs:20,md:22},bgcolor:o?"rgba(255,255,255,0.22)":ve(e.color),color:o?"#fff":e.color},children:(0,S.jsx)(t,{size:12})}),(0,S.jsx)(Q.A,{variant:"caption",sx:{fontWeight:600,fontSize:{xs:11.5,md:13},lineHeight:1},children:e.label}),(0,S.jsx)(V.A,{sx:{minWidth:{xs:20,md:24},height:{xs:18,md:20},px:.625,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:999,fontSize:{xs:10,md:11},fontWeight:700,bgcolor:o?"rgba(255,255,255,0.22)":me.surfaceAlt,color:o?"#fff":me.textSecondary,border:"none"},children:n})]},e.status)}))}),(0,S.jsx)(V.A,{sx:{width:{xs:"100%",sm:240,lg:280},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,S.jsx)(k.A,{value:gr,onChange:fr,onDebouncedChange:jr,placeholder:"Search orders (ctrl+k)",sx:{m:0,width:"100%",borderRadius:999,bgcolor:be(Se),"& fieldset":{borderColor:ke(Se),borderWidth:1.5},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:1.5},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(ye(Se))}}})})]})}),(0,S.jsx)(O.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:me.radiusCard/8,borderBottomRightRadius:me.radiusCard/8,border:"1px solid",borderColor:me.borderSubtle,overflow:"hidden",background:"#fff"},children:(0,S.jsx)(X.A,{ref:fe,onScroll:e=>{const{scrollTop:r,scrollHeight:t,clientHeight:o}=e.currentTarget;r+o>=t-50&&It&&!zt&&Dt()},sx:{maxHeight:{xs:"calc(100vh - 220px)",md:"calc(100vh - 190px)"},overflow:"auto","&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:ke(Se),borderRadius:8,"&:hover":{backgroundColor:Se}},"&::-webkit-scrollbar-track":{backgroundColor:me.surfaceAlt}},children:r?(0,S.jsxs)(ue.nV,{sx:{p:1.25},children:[0===(null===Pt||void 0===Pt?void 0:Pt.length)&&!wt&&(0,S.jsxs)(U.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,S.jsx)(F.A,{sx:{width:64,height:64,bgcolor:ve("#94a3b8"),color:me.textMuted},children:(0,S.jsx)(v.F6S,{size:28})}),(0,S.jsxs)(Q.A,{variant:"subtitle1",sx:{fontWeight:700,color:me.textPrimary},children:["No ",Ve," orders"]}),(0,S.jsx)(Q.A,{variant:"caption",sx:{color:me.textSecondary,textAlign:"center",px:2},children:gr?"Try a different keyword.":"Adjust the filters above to load orders."})]}),wt&&(0,S.jsxs)(U.A,{alignItems:"center",sx:{py:6},children:[(0,S.jsx)(he.A,{}),(0,S.jsx)(Q.A,{variant:"caption",color:"text.secondary",sx:{mt:1},children:"Loading orders\u2026"})]}),null===Pt||void 0===Pt?void 0:Pt.map(((r,t)=>{const n=!!Fr.find((e=>e.orderheaderid===r.orderheaderid)),i=De[String(r.orderstatus||"").toLowerCase()]||{label:r.orderstatus||"\u2014",color:Se,icon:v.bfP},l=i.icon;return(0,S.jsx)(ue.pg,{accent:i.color,selected:n,header:(0,S.jsxs)(U.A,{spacing:1.25,children:[(0,S.jsxs)(U.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,S.jsxs)(U.A,{direction:"row",alignItems:"center",spacing:.75,sx:{minWidth:0},children:["created"===Ve&&(0,S.jsx)(G.A,{size:"small",sx:{p:.25,color:ke(Se),"&.Mui-checked":{color:Se}},onChange:e=>{var t;if(!Pe)return(0,C.k)("Please select a location first!","warning",2e3),void(null===(t=je.current)||void 0===t||t.focus());e.target.checked?Tr((e=>[...e,(0,o.A)((0,o.A)({},r),{},{sno:e.length+1})])):Tr((e=>e.filter((e=>e.orderheaderid!==r.orderheaderid)).map(((e,r)=>(0,o.A)((0,o.A)({},e),{},{sno:r+1})))))},checked:n}),(0,S.jsx)(Q.A,{variant:"caption",sx:{fontWeight:700,color:me.textMuted},children:String(100*ar+t+1).padStart(2,"0")}),(0,S.jsxs)(V.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:be(i.color),border:"1px solid ".concat(ke(i.color)),color:i.color,fontSize:10.5,fontWeight:800,whiteSpace:"nowrap"},children:[(0,S.jsx)(l,{size:11})," ",i.label]})]}),"created"===r.orderstatus&&(0,S.jsxs)(U.A,{direction:"row",spacing:.75,sx:{flexShrink:0},children:["C"===r.deliverytype&&(0,S.jsx)(J.A,{size:"small",onClick:()=>{(null===dr||void 0===dr?void 0:dr.orderid)===r.orderid?xr(null):xr(r)},sx:{borderRadius:999,bgcolor:be("#06b6d4"),color:"#06b6d4",border:"1px solid ".concat(ke("#06b6d4")),"&:hover":{bgcolor:ve("#06b6d4")}},children:(null===dr||void 0===dr?void 0:dr.orderid)===r.orderid?(0,S.jsx)(j.A,{fontSize:"small"}):(0,S.jsx)(b.A,{fontSize:"small"})}),(0,S.jsx)(J.A,{size:"small",disabled:n,onClick:()=>{Ge(!0),sr(r.orderheaderid)},sx:{borderRadius:999,bgcolor:be("#ef4444"),color:"#ef4444",border:"1px solid ".concat(ke("#ef4444")),"&:hover":{bgcolor:ve("#ef4444")},"&.Mui-disabled":{color:e.palette.secondary.main}},children:(0,S.jsx)(A.A,{})})]})]}),(0,S.jsxs)(V.A,{sx:{minWidth:0},children:[(0,S.jsx)(Q.A,{sx:{fontWeight:800,color:me.textPrimary,fontSize:15},noWrap:!0,children:r.tenantname}),(0,S.jsx)(Q.A,{variant:"caption",sx:{color:me.textSecondary},noWrap:!0,children:[r.tenantsuburb,r.applocation].filter(Boolean).join(" \xb7 ")||"\u2014"})]})]}),children:(0,S.jsxs)(ue.FG,{children:[(0,S.jsxs)(ue.pY,{label:"Order / Location",full:!0,children:[(0,S.jsx)(Q.A,{sx:{fontSize:13,fontWeight:600,color:me.textPrimary},noWrap:!0,children:"".concat(r.locationname,"-(").concat(r.locationsuburb,")")}),(0,S.jsxs)(Q.A,{variant:"caption",sx:{color:me.textSecondary},children:[r.orderid," \xb7 ",ze(r)]})]}),(0,S.jsxs)(ue.pY,{label:"Pickup",children:[(0,S.jsx)(Q.A,{sx:{fontSize:13,fontWeight:600,color:me.textPrimary},noWrap:!0,children:r.pickupcustomer||"\u2014"}),(0,S.jsx)(Q.A,{variant:"caption",sx:{color:me.textSecondary},noWrap:!0,children:r.pickupcontactno}),(0,S.jsx)(Q.A,{variant:"caption",sx:{color:me.textSecondary},noWrap:!0,children:r.pickupsuburb||r.pickupaddress})]}),(0,S.jsxs)(ue.pY,{label:"Drop",children:[(0,S.jsx)(Q.A,{sx:{fontSize:13,fontWeight:600,color:me.textPrimary},noWrap:!0,children:r.deliverycustomer||"\u2014"}),(0,S.jsx)(Q.A,{variant:"caption",sx:{color:me.textSecondary},noWrap:!0,children:r.deliverycontactno}),(0,S.jsx)(Q.A,{variant:"caption",sx:{color:me.textSecondary},noWrap:!0,children:r.deliverysuburb||r.deliveryaddress})]}),(0,S.jsx)(ue.pY,{label:"Qty",value:r.quantity||"\u2014"}),(0,S.jsx)(ue.pY,{label:"KMS",children:(0,S.jsxs)(V.A,{sx:(s="#06b6d4",{display:"inline-flex",alignItems:"center",justifyContent:"center",px:1,py:.25,borderRadius:999,bgcolor:be(s),color:s,fontWeight:700,fontSize:11,border:"1px solid ".concat(ke(s)),whiteSpace:"nowrap"}),children:[r.kms||0," km"]})}),(0,S.jsx)(ue.pY,{label:"COD",children:(0,S.jsx)(Q.A,{sx:{fontSize:13,fontWeight:800,color:r.collectionamt?"#ef4444":me.textMuted},children:r.collectionamt?"\u20b9 ".concat(r.collectionamt.toFixed(2)):"\u2014"})}),(0,S.jsx)(ue.pY,{label:"Charges",children:(0,S.jsx)(Q.A,{sx:{fontSize:13,fontWeight:800,color:r.deliverycharge?"#ef4444":me.textMuted},children:r.deliverycharge?"\u20b9 ".concat(r.deliverycharge.toFixed(2)):"\u2014"})}),r.ordernotes&&(0,S.jsx)(ue.pY,{label:"Notes",full:!0,children:(0,S.jsx)(Q.A,{variant:"caption",sx:{color:me.textSecondary},children:r.ordernotes})})]})},r.sno);var s})),0!=(null===Pt||void 0===Pt?void 0:Pt.length)&&(0,S.jsx)("div",{ref:c,style:{height:40,textAlign:"center"},children:zt||It?(0,S.jsx)(he.A,{}):(0,S.jsx)(Q.A,{variant:"caption",sx:{color:me.textMuted,fontWeight:600},children:"No more orders"})})]}):(0,S.jsxs)($.A,{stickyHeader:!0,sx:{minWidth:{xs:960,md:1180}},children:[(0,S.jsx)(ee.A,{children:(0,S.jsxs)(re.A,{sx:{"& th":{backgroundColor:me.surfaceAlt,color:me.textSecondary,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(me.borderSubtle),py:{xs:1,md:1.25},px:{xs:1,md:1.5}}},children:["created"==Ve&&(0,S.jsx)(te.A,{sx:{position:"sticky !important"},children:(0,S.jsx)(G.A,{size:"small",sx:{p:.5,color:ke(Se),"&.Mui-checked, &.MuiCheckbox-indeterminate":{color:Se}},indeterminate:Fr.length>0&&Fr.length!==(null===Pt||void 0===Pt?void 0:Pt.length),checked:Fr.length===(null===Pt||void 0===Pt?void 0:Pt.length),onChange:e=>{var r;if(!Pe)return(0,C.k)("Please select a location first!","warning",2e3),void(null===(r=je.current)||void 0===r||r.focus());if(e.target.checked){const e=null===Pt||void 0===Pt?void 0:Pt.map(((e,r)=>(0,o.A)((0,o.A)({},e),{},{sno:r+1})));Tr(e)}else Tr([])}})}),(0,S.jsx)(te.A,{children:"#"}),(0,S.jsx)(te.A,{children:"Tenant"}),(0,S.jsx)(te.A,{children:"Location"}),(0,S.jsx)(te.A,{children:"Pickup"}),(0,S.jsx)(te.A,{children:"Drop"}),(0,S.jsx)(te.A,{align:"center",children:"QTY"}),(0,S.jsx)(te.A,{align:"right",children:"COD"}),(0,S.jsx)(te.A,{align:"center",children:"KMS"}),(0,S.jsx)(te.A,{align:"right",children:"Charges"}),(0,S.jsx)(te.A,{children:"Notes"}),(0,S.jsx)(te.A,{children:"Status"}),"created"==Ve&&(0,S.jsx)(te.A,{align:"right",children:"Actions"})]})}),(0,S.jsxs)(oe.A,{children:[0===(null===Pt||void 0===Pt?void 0:Pt.length)&&!wt&&(0,S.jsx)(re.A,{children:(0,S.jsx)(te.A,{colSpan:13,sx:{py:6},children:(0,S.jsxs)(U.A,{alignItems:"center",spacing:1.5,children:[(0,S.jsx)(F.A,{sx:{width:64,height:64,bgcolor:ve("#94a3b8"),color:me.textMuted},children:(0,S.jsx)(v.F6S,{size:28})}),(0,S.jsxs)(Q.A,{variant:"subtitle1",sx:{fontWeight:700,color:me.textPrimary},children:["No ",Ve," orders"]}),(0,S.jsx)(Q.A,{variant:"caption",sx:{color:me.textSecondary},children:gr?"Try a different keyword.":"Adjust the filters above to load orders."})]})})}),wt&&(0,S.jsx)(W.r,{col:8}),null===Pt||void 0===Pt?void 0:Pt.map(((r,t)=>{const n=!!Fr.find((e=>e.orderheaderid===r.orderheaderid));return(0,S.jsxs)(re.A,{role:"checkbox",tabIndex:-1,sx:{cursor:"pointer",transition:"background-color 0.15s",backgroundColor:n?be(Se):"transparent","& td":{borderBottom:"1px solid ".concat(me.divider),py:{xs:1,md:1.25},px:{xs:1,md:1.5}},"&:hover":{backgroundColor:n?ve(Se)+" !important":me.surfaceAlt}},children:["created"===Ve&&(0,S.jsx)(te.A,{children:(0,S.jsx)(G.A,{size:"small",sx:{p:.5,color:ke(Se),"&.Mui-checked":{color:Se}},onChange:e=>{var t;if(!Pe)return(0,C.k)("Please select a location first!","warning",2e3),void(null===(t=je.current)||void 0===t||t.focus());e.target.checked?Tr((e=>[...e,(0,o.A)((0,o.A)({},r),{},{sno:e.length+1})])):Tr((e=>e.filter((e=>e.orderheaderid!==r.orderheaderid)).map(((e,r)=>(0,o.A)((0,o.A)({},e),{},{sno:r+1})))))},checked:n})}),(0,S.jsx)(te.A,{children:(0,S.jsx)(Q.A,{children:100*ar+t+1})}),(0,S.jsx)(te.A,{children:(0,S.jsxs)(Z.A,{title:r.tenantaddress,children:[(0,S.jsx)(Q.A,{variant:"subtitle1",noWrap:!0,children:r.tenantname}),(0,S.jsxs)(Q.A,{noWrap:!0,variant:"body2",children:[r.tenantsuburb,(0,S.jsx)("br",{})]}),(0,S.jsx)(Q.A,{noWrap:!0,variant:"body2",children:r.applocation})]})}),(0,S.jsxs)(te.A,{align:"left",children:[(0,S.jsx)(Q.A,{variant:"subtitle1",noWrap:!0,children:"".concat(r.locationname,"-(").concat(r.locationsuburb,")")}),(0,S.jsx)(Z.A,{title:"TenantId - OrderId",children:(0,S.jsx)(Q.A,{variant:"body2",noWrap:!0,children:r.orderid})}),(0,S.jsx)(Z.A,{title:"Pickup Slot",children:(0,S.jsx)(Q.A,{noWrap:!0,sx:{fontSize:"12px"},children:ze(r)})})]}),(0,S.jsx)(te.A,{align:"left",children:(0,S.jsxs)(U.A,{direction:"column",children:[(0,S.jsx)(Q.A,{variant:"subtitle1",sx:{whiteSpace:"nowrap"},children:r.pickupcustomer}),(0,S.jsx)(Q.A,{variant:"caption",children:r.pickupcontactno}),(0,S.jsx)(Z.A,{title:r.pickupaddress,children:(0,S.jsx)(Q.A,{variant:"caption",children:"".concat(r.pickupsuburb||r.pickupaddress.slice(0,12)+".....")})})]})}),(0,S.jsx)(te.A,{align:"left",children:(0,S.jsxs)(U.A,{direction:"column",children:[(0,S.jsx)(Q.A,{variant:"subtitle1",sx:{maxWidth:120,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r.deliverycustomer}),(0,S.jsx)(Q.A,{variant:"caption",children:r.deliverycontactno}),(0,S.jsx)(Z.A,{title:r.deliveryaddress,sx:{whiteSpace:"nowrap"},children:(0,S.jsx)(Q.A,{variant:"caption",children:"".concat(r.deliverysuburb||r.deliveryaddress.slice(0,12)+".....")})})]})}),(0,S.jsx)(te.A,{align:"center",children:r.quantity?(0,S.jsx)(Q.A,{variant:"subtitle1",color:"error",sx:{whiteSpace:"nowrap"},children:r.quantity}):(0,S.jsx)(Q.A,{variant:"subtitle1",sx:{whiteSpace:"nowrap"},children:r.quantity})}),(0,S.jsx)(te.A,{align:"right",children:r.collectionamt?(0,S.jsxs)(Q.A,{variant:"subtitle1",color:r.collectionamt?"error":null,sx:{whiteSpace:"nowrap"},children:["\u20b9",r.collectionamt.toFixed(2)]}):(0,S.jsxs)(Q.A,{variant:"subtitle1",sx:{whiteSpace:"nowrap"},children:["\u20b9",r.collectionamt.toFixed(2)]})}),(0,S.jsx)(te.A,{align:"center",children:(0,S.jsx)(Q.A,{variant:"subtitle1",color:r.kms?"error":null,children:r.kms})}),(0,S.jsx)(te.A,{align:"right",children:r.deliverycharge?(0,S.jsxs)(Q.A,{variant:"subtitle1",color:r.deliverycharge?"error":null,sx:{whiteSpace:"nowrap"},children:["\u20b9",r.deliverycharge.toFixed(2)]}):(0,S.jsxs)(Q.A,{variant:"subtitle1",sx:{whiteSpace:"nowrap"},children:["\u20b9",r.deliverycharge.toFixed(2)]})}),(0,S.jsx)(te.A,{align:"left",children:(0,S.jsx)(Q.A,{variant:"body1",fontSize:"12px",sx:{maxWidth:120,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r.ordernotes})}),(0,S.jsx)(te.A,{align:"left",children:(()=>{const e=De[String(r.orderstatus||"").toLowerCase()]||{label:r.orderstatus||"\u2014",color:Se,icon:v.bfP},t=e.icon;return(0,S.jsxs)(V.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:be(e.color),border:"1px solid ".concat(ke(e.color)),color:e.color,fontSize:11,fontWeight:800,whiteSpace:"nowrap"},children:[(0,S.jsx)(t,{size:12})," ",e.label]})})()}),"created"===r.orderstatus&&(0,S.jsx)(te.A,{align:"center",children:(0,S.jsxs)(U.A,{flexDirection:"row",justifyContent:"end",children:["C"===r.deliverytype&&(0,S.jsx)(Z.A,{title:"Product details",children:(0,S.jsx)(J.A,{color:"primary",onClick:()=>{(null===dr||void 0===dr?void 0:dr.orderid)===r.orderid?xr(null):xr(r)},children:(null===dr||void 0===dr?void 0:dr.orderid)===r.orderid?(0,S.jsx)(j.A,{}):(0,S.jsx)(b.A,{})})}),(0,S.jsx)(Z.A,{title:"To Cancel",children:(0,S.jsx)(J.A,{"aria-describedby":"aria-".concat(r.sno),disabled:n,onClick:()=>{Ge(!0),sr(r.orderheaderid)},children:(0,S.jsx)(A.A,{style:{color:n?e.palette.secondary.main:e.palette.error.main}})})})]})})]},r.sno)})),0!=(null===Pt||void 0===Pt?void 0:Pt.length)&&(0,S.jsx)(re.A,{children:(0,S.jsx)(te.A,{colSpan:15,rowSpan:3,sx:{borderBottom:"none"},children:(0,S.jsx)("div",{ref:c,style:{height:40,textAlign:"center"},children:zt||It?(0,S.jsx)(he.A,{}):(0,S.jsx)(Q.A,{variant:"caption",sx:{color:me.textMuted,fontWeight:600},children:"No more orders"})})})})]})]})})}),(0,S.jsxs)(ne.A,{fullScreen:!0,open:Je,TransitionComponent:g.s,children:[(0,S.jsx)(L.A,{sx:{position:"absolute",color:"#fff",zIndex:e=>e.zIndex.modal+1},open:br,children:(0,S.jsx)(f.A,{color:"inherit",text:"Optimising ... .."})}),(0,S.jsx)(ie.A,{sx:{bgcolor:e.palette.primary.lighter},children:(0,S.jsx)(N.A,{badgeContent:null===Fr||void 0===Fr?void 0:Fr.length,color:"primary",children:(0,S.jsx)(le.A,{label:(0,S.jsx)(Q.A,{variant:"h3",children:"Preview Orders "}),variant:"contained"})})}),(0,S.jsx)(se.A,{dividers:!0,children:(0,S.jsx)(w.A,{content:!1,children:(0,S.jsx)(X.A,{children:(0,S.jsxs)($.A,{stickyHeader:!0,children:[(0,S.jsx)(ee.A,{children:(0,S.jsxs)(re.A,{children:[(0,S.jsx)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.lighter},children:"#"}),(0,S.jsxs)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.lighter},children:["Tenant"," "]}),(0,S.jsx)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.lighter},children:"order Location"}),(0,S.jsxs)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.lighter},children:["Pickup"," "]}),(0,S.jsx)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.lighter},children:"Delivery"}),(0,S.jsx)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.lighter},children:"Notes"}),(0,S.jsx)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.lighter},children:"Charges"}),(0,S.jsx)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.lighter},children:"KMS"})]})}),(0,S.jsx)(oe.A,{children:Fr.map(((e,r)=>(0,S.jsx)(n.Fragment,{children:(0,S.jsxs)(re.A,{sx:{},children:[(0,S.jsx)(te.A,{children:(0,S.jsxs)(Q.A,{children:[" ",e.sno]})}),(0,S.jsx)(te.A,{children:(0,S.jsxs)(Z.A,{title:e.tenantaddress,children:[(0,S.jsx)(Q.A,{variant:"body1",noWrap:!0,children:e.tenantname}),(0,S.jsxs)(Q.A,{noWrap:!0,sx:{fontSize:"11px"},children:[e.tenantsuburb,(0,S.jsx)("br",{})]}),(0,S.jsx)(Q.A,{noWrap:!0,variant:"body2",children:e.applocation})]})}),(0,S.jsxs)(te.A,{align:"left",children:[(0,S.jsx)(Z.A,{title:e.locationaddress,placement:"top",children:(0,S.jsx)(Q.A,{variant:"body1",noWrap:!0,children:"".concat(e.locationname,"-(").concat(e.locationsuburb,")")})}),(0,S.jsx)(Z.A,{title:"Order Id",children:(0,S.jsx)(Q.A,{variant:"body2",noWrap:!0,children:e.orderid})}),(0,S.jsxs)(U.A,{display:"flex",flexDirection:"row",gap:3,children:[(0,S.jsxs)(Z.A,{title:"Ordered date",children:[(0,S.jsx)(Q.A,{noWrap:!0,sx:{fontSize:"12px"},children:d()(e.orderdate).utc().format("DD/MM/YYYY")}),(0,S.jsx)(Q.A,{noWrap:!0,sx:{fontSize:"11px"},children:d()(e.orderdate).utc().format("hh:mm A")})]}),"-",(0,S.jsxs)(Z.A,{title:"Delivery date",children:[(0,S.jsx)(Q.A,{noWrap:!0,sx:{fontSize:"12px"},children:d()(e.deliverydate).utc().format("DD/MM/YYYY")}),(0,S.jsx)(Q.A,{noWrap:!0,sx:{fontSize:"11px"},children:d()(e.deliverydate).utc().format("hh:mm A")})]})]})]}),(0,S.jsx)(te.A,{align:"left",children:(0,S.jsx)(U.A,{direction:"row",spacing:1,children:(0,S.jsxs)(U.A,{direction:"column",children:[(0,S.jsx)(Q.A,{variant:"caption",children:e.pickupcustomer}),(0,S.jsx)(Q.A,{variant:"caption",children:e.pickupcontactno}),(0,S.jsx)(Z.A,{title:e.pickupaddress,children:(0,S.jsx)(Q.A,{variant:"caption",children:e.pickupsuburb||e.pickupaddress.slice(0,20)})})]})})}),(0,S.jsx)(te.A,{align:"left",children:(0,S.jsx)(U.A,{direction:"row",spacing:1,children:(0,S.jsxs)(U.A,{direction:"column",children:[(0,S.jsx)(Q.A,{variant:"caption",children:e.deliverycustomer}),(0,S.jsx)(Q.A,{variant:"caption",children:e.deliverycontactno}),(0,S.jsx)(Z.A,{title:e.deliveryaddress,children:(0,S.jsx)(Q.A,{variant:"caption",children:e.deliverysuburb||e.deliveryaddress.slice(0,20)})})]})})}),(0,S.jsx)(te.A,{align:"left",children:e.ordernotes}),(0,S.jsxs)(te.A,{align:"left",children:["\u20b9 ",e.deliverycharge.toFixed(2)]}),(0,S.jsx)(te.A,{align:"left",children:e.kms})]})},r)))})]})})})}),(0,S.jsx)(ae.A,{sx:{bgcolor:e.palette.secondary.light},children:(0,S.jsx)(K.Ay,{container:!0,sx:{},children:(0,S.jsx)(K.Ay,{item:!0,xs:12,children:(0,S.jsxs)(U.A,{sx:{mt:2,mr:2},direction:"row",justifyContent:"flex-end",flexWrap:"wrap",gap:2,spacing:5,children:[(0,S.jsx)(ce.A,{sx:{width:"130px"},color:"secondary",variant:"contained",onClick:()=>{Nt()},startIcon:(0,S.jsx)(A.A,{}),children:"Close"}),1==Qr.current&&(0,S.jsx)(_.A,{options:[{label:"Bike",value:1},{label:"Auto",value:2}],getOptionLabel:e=>e.label,value:Gr,onChange:(e,r)=>{Jr(r),console.log("Selected value:",null===r||void 0===r?void 0:r.value)},renderInput:e=>(0,S.jsx)(B.A,(0,o.A)((0,o.A)({sx:{width:200,border:"1px solid ",borderColor:"primary.main"}},e),{},{placeholder:"Select Transport"})),isOptionEqualToValue:(e,r)=>e.value===r.value}),1==Qr.current&&(0,S.jsx)(_.A,{multiple:!0,fullWidth:!1,options:gt||[],loading:ft,disableCloseOnSelect:!0,limitTags:2,value:$r,onChange:(e,r)=>et(r),getOptionLabel:e=>"".concat(e.firstname||""," ").concat(e.lastname||"").trim()||"Rider #".concat(e.userid),isOptionEqualToValue:(e,r)=>e.userid===r.userid,PaperComponent:e=>(0,S.jsx)(O.A,(0,o.A)((0,o.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:"0 14px 40px rgba(15, 23, 42, 0.18)",border:"1px solid",borderColor:"divider",overflow:"hidden"}})),ListboxProps:{sx:{py:0,maxHeight:340}},noOptionsText:(0,S.jsxs)(U.A,{alignItems:"center",py:2,spacing:1,children:[(0,S.jsx)(v.vbW,{size:26,color:"#94a3b8"}),(0,S.jsx)(Q.A,{variant:"caption",color:"text.secondary",children:"No riders to show for this location"})]}),renderTags:(e,r)=>e.map(((e,t)=>{const i="".concat(e.firstname||""," ").concat(e.lastname||"").trim()||"Rider #".concat(e.userid),l=(i.match(/\b\w/g)||[]).slice(0,2).join("").toUpperCase()||"?",s=r({index:t});return(0,n.createElement)(le.A,(0,o.A)((0,o.A)({},s),{},{key:e.userid,size:"small",avatar:(0,S.jsx)(F.A,{sx:{bgcolor:"#fed7aa",color:"#9a3412",fontSize:10,fontWeight:800},children:l}),label:i,sx:{height:26,bgcolor:"#fff7ed",color:"#9a3412",border:"1px solid",borderColor:"#fdba74",fontWeight:600,fontSize:12,"& .MuiChip-label":{px:.75},"& .MuiChip-deleteIcon":{color:"#c2410c",fontSize:16,"&:hover":{color:"#7c2d12"}}}}))})),renderOption:(e,r,t)=>{let{selected:i}=t;const l="".concat(r.firstname||""," ").concat(r.lastname||"").trim(),s=(l.match(/\b\w/g)||[]).slice(0,2).join("").toUpperCase()||"?";return(0,n.createElement)("li",(0,o.A)((0,o.A)({},e),{},{key:r.userid,style:{display:"flex",alignItems:"center",gap:12,padding:"8px 12px",borderBottom:"1px solid #f1f5f9",backgroundColor:i?"#fff7ed":"transparent"}}),(0,S.jsx)(G.A,{size:"small",checked:i,sx:{p:.5,color:"#fb923c","&.Mui-checked":{color:"#ea580c"}}}),(0,S.jsx)(F.A,{sx:{width:34,height:34,bgcolor:i?"#fb923c":"#f1f5f9",color:i?"#fff":"#475569",fontSize:12,fontWeight:800,transition:"background-color 0.15s, color 0.15s"},children:s}),(0,S.jsxs)(U.A,{direction:"column",spacing:0,flex:1,minWidth:0,children:[(0,S.jsx)(Q.A,{variant:"body2",fontWeight:700,color:"#0f172a",noWrap:!0,children:l||"Rider #".concat(r.userid)}),(0,S.jsxs)(Q.A,{variant:"caption",color:"text.secondary",noWrap:!0,children:["ID #",r.userid,r.contactno?" \xb7 ".concat(r.contactno):""]})]}),i&&(0,S.jsx)(le.A,{size:"small",label:"Absent",sx:{height:18,fontSize:9,fontWeight:800,letterSpacing:.3,bgcolor:"#ea580c",color:"#fff","& .MuiChip-label":{px:.75}}}))},renderInput:e=>(0,S.jsx)(B.A,(0,o.A)((0,o.A)({},e),{},{label:"Absent Riders",placeholder:$r.length?"":"Pick riders unavailable today",InputLabelProps:{shrink:!0},InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:(0,S.jsxs)(U.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25},children:[(0,S.jsx)(v.ihY,{size:18,color:"#ea580c"}),$r.length>0&&(0,S.jsx)(le.A,{size:"small",label:$r.length,sx:{height:18,minWidth:22,fontSize:10,fontWeight:800,bgcolor:"#ea580c",color:"#fff","& .MuiChip-label":{px:.5}}}),e.InputProps.startAdornment]})}),sx:{minWidth:300,maxWidth:440,"& .MuiOutlinedInput-root":{borderRadius:2,bgcolor:"#fffbf5",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#fdba74",borderWidth:1.5},"&:hover fieldset":{borderColor:"#fb923c"},"&.Mui-focused":{boxShadow:"0 0 0 3px rgba(251, 146, 60, 0.18)"},"&.Mui-focused fieldset":{borderColor:"#ea580c",borderWidth:2}},"& .MuiInputLabel-root":{fontWeight:700,fontSize:13,color:"#9a3412","&.Mui-focused":{color:"#9a3412"}}}})),sx:{"& .MuiAutocomplete-tag":{my:.25},"& .MuiAutocomplete-endAdornment":{right:8}}}),(0,S.jsx)(ce.A,{color:"primary",disabled:!Gr&&1==Qr.current,variant:"contained",startIcon:1==Qr.current&&(0,S.jsx)("img",{src:M,alt:"Assign",style:{width:32,height:32,objectFit:"contain",borderRadius:50}}),onClick:()=>{vr(!0),Lt()},children:Fe?"Optimising...":0==Qr.current?"Optimise Orders":"AI Optimise Orders"})]})})})})]}),(0,S.jsxs)(ne.A,{fullScreen:!0,open:Pr,TransitionComponent:g.s,children:[(0,S.jsx)(ie.A,{children:(0,S.jsx)(U.A,{children:(0,S.jsxs)(U.A,{direction:"row",alignItems:"center",spacing:1,sx:{ml:1},children:[(0,S.jsx)(Z.A,{title:"Back to orders",placement:"top",children:(0,S.jsx)(J.A,{onClick:()=>Yr(!1),sx:{backgroundColor:"action.hover",color:"text.primary","&:hover":{backgroundColor:"action.selected"}},children:(0,S.jsx)(Y.eQE,{size:22})})}),(0,S.jsx)(Q.A,{sx:{m:2},variant:"h3",children:"Assign Orders"})]})})}),(0,S.jsx)(de.A,{}),(0,S.jsx)(se.A,{children:(0,S.jsxs)(w.A,{content:!1,children:[(At||ft||yr)&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(m.A,{}),(0,S.jsx)(f.A,{})]}),(0,S.jsx)(L.A,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:At||ft||yr,children:(0,S.jsx)(f.A,{color:"inherit"})}),(0,S.jsx)(X.A,{children:(0,S.jsxs)($.A,{stickyHeader:!0,children:[(0,S.jsx)(ee.A,{children:(0,S.jsxs)(re.A,{sx:{backgroundColor:"red"},children:[(0,S.jsx)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.light},children:"#"}),1==_r&&(0,S.jsxs)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.light},children:["Zone"," "]}),(0,S.jsxs)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.light},children:["Tenant"," "]}),(0,S.jsx)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.light},children:"order Location"}),(0,S.jsxs)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.light},children:["Pickup"," "]}),(0,S.jsx)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.light},children:"Delivery"}),(0,S.jsx)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.light},children:"Notes"}),1==_r&&(0,S.jsx)(te.A,{sx:{position:"sticky !important",backgroundColor:e.palette.secondary.light},children:"Rider"}),(0,S.jsx)(te.A,{align:"center",sx:{position:"sticky !important",backgroundColor:e.palette.secondary.light},children:"Type"}),(0,S.jsx)(te.A,{align:"center",sx:{position:"sticky !important",backgroundColor:e.palette.secondary.light},children:"Charges"}),(0,S.jsx)(te.A,{align:"center",sx:{position:"sticky !important",backgroundColor:e.palette.secondary.light},children:"KMS"})]})}),(0,S.jsxs)(oe.A,{children:[0==(null===Zr||void 0===Zr?void 0:Zr.length)&&(0,S.jsx)(re.A,{children:(0,S.jsx)(te.A,{colSpan:10,children:(0,S.jsx)(a.A,{})})}),null===Zr||void 0===Zr?void 0:Zr.map(((e,r)=>(0,S.jsxs)(re.A,{sx:{},children:[(0,S.jsx)(te.A,{children:(0,S.jsxs)(Q.A,{children:[" ",r+1]})}),(0,S.jsx)(te.A,{children:(0,S.jsxs)(Z.A,{title:e.tenantaddress,children:[(0,S.jsx)(Q.A,{variant:"body1",noWrap:!0,children:e.tenantname}),(0,S.jsxs)(Q.A,{noWrap:!0,sx:{fontSize:"11px"},children:[e.tenantsuburb,(0,S.jsx)("br",{})]}),(0,S.jsx)(Q.A,{noWrap:!0,variant:"body2",children:e.applocation})]})}),(0,S.jsxs)(te.A,{align:"left",children:[(0,S.jsx)(Z.A,{title:e.locationaddress,placement:"top",children:(0,S.jsx)(Q.A,{variant:"body1",noWrap:!0,children:"".concat(e.locationname,"-(").concat(e.locationsuburb,")")})}),(0,S.jsx)(Z.A,{title:"Order Id",children:(0,S.jsx)(Q.A,{variant:"body2",noWrap:!0,children:e.orderid})}),(0,S.jsxs)(U.A,{display:"flex",flexDirection:"row",gap:3,children:[(0,S.jsxs)(Z.A,{title:"Ordered date",children:[(0,S.jsx)(Q.A,{noWrap:!0,sx:{fontSize:"12px"},children:d()(e.orderdate).utc().format("DD/MM/YYYY")}),(0,S.jsx)(Q.A,{noWrap:!0,sx:{fontSize:"11px"},children:d()(e.orderdate).utc().format("hh:mm A")})]}),"-",(0,S.jsxs)(Z.A,{title:"Delivery date",children:[(0,S.jsx)(Q.A,{noWrap:!0,sx:{fontSize:"12px"},children:d()(e.deliverydate).utc().format("DD/MM/YYYY")}),(0,S.jsx)(Q.A,{noWrap:!0,sx:{fontSize:"11px"},children:d()(e.deliverydate).utc().format("hh:mm A")})]})]})]}),(0,S.jsx)(te.A,{align:"left",children:(0,S.jsx)(U.A,{direction:"row",spacing:1,children:(0,S.jsxs)(U.A,{direction:"column",children:[(0,S.jsx)(Q.A,{variant:"caption",children:e.pickupcustomer}),(0,S.jsx)(Q.A,{variant:"caption",children:e.pickupcontactno}),(0,S.jsx)(Z.A,{title:e.pickupaddress,children:(0,S.jsx)(Q.A,{variant:"caption",children:e.pickupsuburb||e.pickupaddress.slice(0,20)})})]})})}),(0,S.jsx)(te.A,{align:"left",children:(0,S.jsx)(U.A,{direction:"row",spacing:1,children:(0,S.jsxs)(U.A,{direction:"column",children:[(0,S.jsx)(Q.A,{variant:"caption",children:e.deliverycustomer}),(0,S.jsx)(Q.A,{variant:"caption",children:e.deliverycontactno}),(0,S.jsx)(Z.A,{title:e.deliveryaddress,children:(0,S.jsx)(Q.A,{variant:"caption",children:e.deliverysuburb||e.deliveryaddress.slice(0,20)})})]})})}),(0,S.jsx)(te.A,{align:"left",children:e.ordernotes}),(0,S.jsx)(te.A,{align:"center",children:(0,S.jsx)(le.A,{size:"small",label:e.ordertype,color:"Economy"==e.ordertype?"success":"Risky"==e.ordertype?"error":"primary",variant:"light"})}),(0,S.jsx)(te.A,{align:"center",children:(0,S.jsxs)(U.A,{display:"flex",flexDirection:"column",gap:1,sx:{cursor:"pointer"},children:[(0,S.jsx)(Z.A,{title:"Charges",placement:"top",children:(0,S.jsx)(le.A,{size:"small",label:"\u20b9 ".concat(e.deliverycharge.toFixed(2)," "),color:"error",variant:"light"})}),(0,S.jsx)(Z.A,{title:"Amount",placement:"left",children:(0,S.jsx)(le.A,{size:"small",label:"\u20b9 ".concat(e.deliveryamt.toFixed(2)," "),color:"success",variant:"light"})})]})}),(0,S.jsx)(te.A,{align:"center",children:(0,S.jsxs)(U.A,{display:"flex",flexDirection:"column",gap:1,sx:{cursor:"pointer"},children:[(0,S.jsx)(Z.A,{title:"KMS",placement:"top",children:(0,S.jsx)(le.A,{size:"small",label:"".concat(e.kms," km"),color:"error",variant:"light"})}),(0,S.jsx)(Z.A,{title:"Cumulative Kms",placement:"right",children:(0,S.jsx)(le.A,{size:"small",label:"".concat(e.cumulativekms," km"),color:"success",variant:"light"})})]})})]},r)))]})]})}),(0,S.jsx)(de.A,{})]})}),(0,S.jsx)(de.A,{}),(0,S.jsxs)(ae.A,{sx:{flexDirection:"column",alignItems:"stretch",p:2,gap:2},children:[(0,S.jsxs)(K.Ay,{container:!0,spacing:2,children:[(0,S.jsx)(K.Ay,{item:!0,xs:12,sm:6,children:(0,S.jsx)(_.A,{options:pt,fullWidth:!0,renderInput:e=>(0,S.jsx)(B.A,(0,o.A)((0,o.A)({},e),{},{label:"Choose Payment"})),onChange:(e,r,t)=>{if("clear"!==t){if(r){ir(r);const e=null===Zr||void 0===Zr?void 0:Zr.map((e=>(0,o.A)((0,o.A)({},e),{},{paymenttype:r.apptypeid||42})));Vr(e)}}else ir(null)}})}),(0,S.jsx)(K.Ay,{item:!0,xs:12,sm:6,children:(0,S.jsx)(_.A,{options:gt,fullWidth:!0,renderInput:e=>(0,S.jsx)(B.A,(0,o.A)((0,o.A)({},e),{},{label:"Choose Rider"})),onChange:(e,r,t)=>{if("clear"!==t){if(r){or(r);const e=null===Zr||void 0===Zr?void 0:Zr.map((e=>(0,o.A)((0,o.A)({},e),{},{userid:r.userid,fuelcharge:r.fuelcharge||0,userfcmtoken:r.userfcmtoken})));Vr(e)}}else or(null)}})})]}),(0,S.jsxs)(U.A,{direction:"row",spacing:2,justifyContent:"flex-end",sx:{pt:1,my:2},children:[(0,S.jsx)(ce.A,{variant:"outlined",color:"secondary",startIcon:(0,S.jsx)(P.A,{}),onClick:()=>Yr(!1),children:"Back"}),(0,S.jsx)(ce.A,{variant:"contained",disabled:!tr||!nr,onClick:()=>{null!==Zr&&void 0!==Zr&&Zr.length?Rt.mutate({deliveries:Zr}):(0,C.k)("No deliveries selected","error",3e3)},children:"Assign Orders"})]})]})]}),(0,S.jsxs)(ne.A,{open:zr,fullScreen:!0,TransitionComponent:g.s,PaperProps:{sx:{display:"flex",flexDirection:"column",overflow:"hidden"}},children:[(0,S.jsx)(L.A,{sx:{position:"absolute",color:"#fff",zIndex:e=>e.zIndex.modal+1},open:yr,children:(0,S.jsx)(f.A,{color:"inherit"})}),(0,S.jsx)(ie.A,{sx:{py:1.25},children:(0,S.jsxs)(U.A,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{},children:[(0,S.jsxs)(U.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,S.jsx)(Z.A,{title:"Back to orders",placement:"top",children:(0,S.jsx)(J.A,{onClick:()=>t("/nearle/orders"),sx:{bgcolor:"action.hover","&:hover":{bgcolor:"action.selected"}},children:(0,S.jsx)(Y.eQE,{size:20})})}),(0,S.jsx)(Q.A,{variant:"h3",fontWeight:600,children:"Assign Orders"})]}),(0,S.jsxs)(U.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,S.jsx)(_.A,{options:[{tuneid:1,type:"Balanced",value:"balanced"},{tuneid:2,type:"Aggressive Speed",value:"aggressive_speed"},{tuneid:3,type:"Fuel Saver",value:"fuel_saver"},{tuneid:4,type:"Zone Strict",value:"zone_strict"}]||[],getOptionLabel:e=>e.type,sx:{minWidth:250,maxWidth:600,flex:1},renderInput:e=>(0,S.jsx)(B.A,(0,o.A)((0,o.A)({},e),{},{label:"Hyper Tuning"})),onChange:(e,r,t)=>{"clear"===t?Lt(null):(console.log("val",r),Lt(r.value))}}),(0,S.jsx)(ce.A,{variant:"contained",color:"primary",startIcon:(0,S.jsx)(R.UF6,{}),onClick:()=>{kr(!0),Lt("reshuffle")},children:"Re-Assign"}),(0,S.jsx)(Ae.Ay,{data:Br,filename:"Orders_Detail_".concat(d()().format("YYYY-MM-DD_HHmmss"),".csv"),label:" CSV",style:{m:1}})]})]})}),(0,S.jsx)(se.A,{sx:{p:0,display:"flex",flexDirection:"column",overflow:"hidden",flex:1},children:Rr&&(0,S.jsx)(ge.default,{data:Rr,embedded:!0})}),(0,S.jsx)(ae.A,{sx:{px:2,py:1.25},children:(0,S.jsxs)(U.A,{direction:"row",gap:2,alignItems:"center",justifyContent:"end",children:[(0,S.jsx)(ce.A,{variant:"contained",color:"secondary",startIcon:(0,S.jsx)(P.A,{}),onClick:()=>{Mr(!1)},children:"Back"}),(0,S.jsx)(ce.A,{variant:"contained",onClick:async()=>{kr(!0),Et.mutate({deliveries:Zr})},children:"Assign Orders"})]})})]}),(0,S.jsx)(ne.A,{open:Xe,onClose:()=>handleClose(),maxWidth:"xs",children:(0,S.jsx)(se.A,{sx:{mt:2,my:1},children:(0,S.jsxs)(U.A,{alignItems:"center",spacing:3.5,children:[(0,S.jsx)(F.A,{color:"error",sx:{width:72,height:72,fontSize:"1.75rem"},children:(0,S.jsx)(s.A,{})}),(0,S.jsx)(U.A,{spacing:2,children:(0,S.jsx)(Q.A,{variant:"h4",align:"center",children:"Are you sure you want to cancel this order?"})}),(0,S.jsxs)(U.A,{direction:"row",spacing:2,sx:{width:1},children:[(0,S.jsx)(ce.A,{fullWidth:!0,color:"error",variant:"contained",onClick:()=>{Ot.mutate(lr)},autoFocus:!0,children:"Yes, Cancel"}),(0,S.jsx)(ce.A,{fullWidth:!0,onClick:()=>{Ge(!1)},color:"secondary",variant:"outlined",children:"No"})]})]})})}),(0,S.jsx)(ne.A,{open:er,onClose:()=>rr(!1),maxWidth:"xs",children:(0,S.jsx)(se.A,{sx:{mt:2,my:1},children:(0,S.jsxs)(U.A,{alignItems:"center",spacing:3.5,children:[(0,S.jsx)(F.A,{color:"error",sx:{width:72,height:72,fontSize:"1.75rem"},children:(0,S.jsx)(s.A,{})}),(0,S.jsx)(U.A,{spacing:2,children:(0,S.jsx)(Q.A,{variant:"h4",align:"center",children:"Are you sure, you want to cancel multiple orders?"})}),(0,S.jsxs)(U.A,{direction:"row",spacing:2,sx:{width:1},children:[(0,S.jsx)(ce.A,{fullWidth:!0,onClick:()=>{rr(!1)},color:"secondary",variant:"outlined",children:"No"}),(0,S.jsx)(ce.A,{fullWidth:!0,color:"error",variant:"contained",onClick:()=>{Ft.mutate(Fr)},autoFocus:!0,children:"Yes, Cancel"})]})]})})})]})}},23787:(e,r,t)=>{t.d(r,{FG:()=>u,nV:()=>x,pY:()=>p,pg:()=>h});var o=t(22555),n=t(53986),i=t(71392),l=t(55235),s=t(48738),a=t(2866),c=t(65908);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:r,scroll:t=!1,onScroll:l,sx:s}=e,a=(0,n.A)(e,d);return(0,c.jsx)(i.A,(0,o.A)((0,o.A)({spacing:1.25,onScroll:l,sx:(0,o.A)((0,o.A)({p:1.5},t&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),s)},a),{},{children:r}))},h=e=>{let{accent:r="#662582",header:t,footer:n,selected:i=!1,onClick:a,children:d,sx:x}=e;return(0,c.jsxs)(l.A,{elevation:0,onClick:a,sx:(0,o.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:i?r:"#e2e8f0",background:i?"".concat(r,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,c.jsx)(s.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:r}}),(0,c.jsxs)(s.A,{sx:{p:1.5,pl:2},children:[t,d,n]})]})},u=e=>{let{children:r,columns:t=2,sx:n}=e;return(0,c.jsx)(s.A,{sx:(0,o.A)({display:"grid",gridTemplateColumns:"repeat(".concat(t,", minmax(0, 1fr))"),gap:1,mt:1.25},n),children:r})},p=e=>{let{label:r,value:t,children:o,full:n=!1,align:i="left"}=e;return(0,c.jsxs)(s.A,{sx:{gridColumn:n?"1 / -1":"auto",minWidth:0,textAlign:i},children:[(0,c.jsx)(a.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:r}),(0,c.jsx)(s.A,{sx:{mt:.25,minWidth:0},children:void 0!==o?o:(0,c.jsx)(a.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==t&&void 0!==t?t:"\u2014"})})]})}},27001:(e,r,t)=>{t.d(r,{A:()=>s});var o=t(71392),n=t(48738),i=t(2866),l=t(65908);function s(e){let{title:r,subtitle:t,live:s=!1,action:a}=e;return(0,l.jsxs)(o.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,l.jsxs)(n.A,{sx:{minWidth:0},children:[(0,l.jsx)(i.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:r}),t&&(0,l.jsxs)(o.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[s&&(0,l.jsx)(n.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,l.jsx)(i.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:t})]})]}),a&&(0,l.jsx)(n.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:a})]})}},35678:(e,r,t)=>{t.d(r,{A:()=>v});var o=t(85672),n=t(58689),i=t(19619),l=t(2866),s=t(5670),a=t(71392),c=t(80911),d=t(36117),x=t(46077),h=t.n(x),u=t(36738),p=t(80959),A=t(33090),g=t(52994),f=t(33323),m=t(75732),j=t(43962),b=t(65908);const v=e=>{let{open:r,onClose:t,onSelect:x}=e;const[v,y]=(0,o.useState)(null);return(0,b.jsxs)(n.A,{open:r,onClose:t,children:[(0,b.jsx)(i.A,{align:"left",children:(0,b.jsx)(l.A,{variant:"h4",children:"Select Filter Options"})}),(0,b.jsx)(s.A,{sx:{width:"100%"},className:"datedialog",children:(0,b.jsx)(d.U,{open:r,toggle:t,id:"daterange1",onChange:e=>{y({startDate:h()(e.startDate).format("YYYY-MM-DD"),endDate:h()(e.endDate).format("YYYY-MM-DD"),label:e.label||"custom"})},definedRanges:[{label:"Today",startDate:new Date,endDate:new Date},{label:"Yesterday",startDate:(0,u.A)(new Date,-1),endDate:(0,u.A)(new Date,-1)},{label:"Tomorrow",startDate:(0,u.A)(new Date,1),endDate:(0,u.A)(new Date,1)},{label:"This Week",startDate:(0,p.A)(new Date),endDate:(0,A.A)(new Date)},{label:"Last Week",startDate:(0,p.A)((0,g.A)(new Date,-1)),endDate:(0,A.A)((0,g.A)(new Date,-1))},{label:"Last 7 Days",startDate:(0,g.A)(new Date,-1),endDate:new Date},{label:"This Month",startDate:(0,f.A)(new Date),endDate:(0,m.A)(new Date)},{label:"Last Month",startDate:(0,f.A)((0,j.A)(new Date,-1)),endDate:(0,m.A)((0,j.A)(new Date,-1))}]})}),(0,b.jsx)(a.A,{direction:"row",justifyContent:"flex-end",sx:{width:"100%",p:2},children:(0,b.jsx)(c.A,{variant:"contained",size:"small",onClick:()=>{v?(x(v),t()):t()},children:"OK"})})]})}},36803:(e,r,t)=>{t.d(r,{A:()=>x});var o=t(84007),n=t(75953),i=t(71392),l=t(48738),s=t(2866),a=t(91834),c=t(97043),d=t(65908);function x(e){let{title:r,value:t,icon:x,color:h="#662582",caption:u,loading:p=!1}=e;return(0,d.jsx)(o.A,{sx:{height:"100%"},children:(0,d.jsx)(n.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,d.jsxs)(i.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,d.jsxs)(l.A,{sx:{minWidth:0,flex:1},children:[(0,d.jsx)(s.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r}),p?(0,d.jsx)(a.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,d.jsx)(s.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t}),u&&(0,d.jsx)(s.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:u})]}),x&&(0,d.jsx)(c.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(h,"14"),color:h,flexShrink:0},children:x})]})})})}},47659:(e,r,t)=>{t.d(r,{A:()=>d});var o=t(22555),n=t(84007),i=t(75953),l=t(48738),s=t(2866),a=t(1939),c=t(65908);const d=e=>{let{primary:r,secondary:t,percentage:d,color:x,sx:h}=e;return(0,c.jsx)(n.A,{elevation:0,sx:(0,o.A)({background:x,position:"relative",color:"#fff","&:hover svg":{opacity:1,transform:"scale(1.1)"}},h),children:(0,c.jsxs)(i.A,{children:[(0,c.jsx)(l.A,{sx:{position:"absolute",right:15,top:25,color:"#fff","& svg":{width:36,height:36,opacity:.5,transition:"all .3s ease-in-out"}},children:(0,c.jsx)(s.A,{variant:"h2",color:"inherit",sx:{fontSize:{xs:20,md:25}},children:d&&"number"===typeof d?"".concat(d.toString()," %"):d})}),(0,c.jsxs)(a.Ay,{container:!0,spacing:0,children:[(0,c.jsx)(a.Ay,{item:!0,xs:12,children:(0,c.jsx)(s.A,{variant:"h3",color:"inherit",sx:{fontSize:{xs:16,md:20}},children:t})}),(0,c.jsx)(a.Ay,{item:!0,xs:12,children:(0,c.jsx)(s.A,{variant:"subtitle2",color:"inherit",children:r})})]})]})})}},56311:(e,r,t)=>{t.d(r,{A:()=>u});var o=t(22555),n=t(85672),i=t(29776),l=t(43318),s=t(23440),a=t(11969),c=t(80795),d=t(51808),x=t(93811),h=t(65908);const u=e=>{let{value:r,onChange:t,onDebouncedChange:u,debounceTime:p=500,placeholder:A="Search (ctrl+k)",sx:g}=e;const f=(0,n.useRef)(null),[m]=(0,x.d7)(r,p);return(0,n.useEffect)((()=>{u&&u(m)}),[m,u]),(0,n.useEffect)((()=>{const e=e=>{var r;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(r=f.current)||void 0===r||r.focus());"Escape"===e.key&&document.activeElement===f.current&&f.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,h.jsx)(i.A,{sx:(0,o.A)({},g),inputRef:f,placeholder:A,autoComplete:"off",value:r,fullWidth:!0,onChange:e=>t(e.target.value),startAdornment:(0,h.jsx)(l.A,{position:"start",sx:{mr:-.5},children:(0,h.jsx)(c.A,{})}),endAdornment:(0,h.jsx)(s.A,{title:"Clear",children:(0,h.jsx)(a.A,{sx:{visibility:r?"visible":"hidden"},onClick:()=>t(""),children:(0,h.jsx)(d.A,{})})})})}},58691:(e,r,t)=>{t.d(r,{A:()=>s});t(85672);var o=t(48738),n=t(12010),i=t(62217),l=t(65908);function s(e){let{size:r=70,imgSize:t=40,alt:s="loader"}=e;return(0,l.jsxs)(o.A,{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",children:[(0,l.jsx)(n.A,{size:r}),(0,l.jsx)(o.A,{position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",sx:{width:t,height:t},children:(0,l.jsx)("img",{src:i,alt:s,style:{width:"100%",height:"100%",borderRadius:"50%",objectFit:"contain"}})})]})}},59212:(e,r,t)=>{t.d(r,{A:()=>h});var o=t(22555),n=t(85672),i=t(71392),l=t(97043),s=t(17488),a=t(86270),c=t(66157),d=t(48952),x=t(65908);const h=(0,n.forwardRef)(((e,r)=>{let{setAppId:t,setLocoName:h,setPage:u,sx:p,textfeildSx:A,textfieldSx:g,pill:f=!1,accentColor:m="#6366f1",icon:j,placeholder:b="Select Zone",paperComponent:v}=e;const[y,k]=(0,n.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,n.useEffect)((()=>{0===y.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const r=await c.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(r.data.status){const e=[...r.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),k(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[y.length]);const S=e=>"".concat(m).concat(e),w=S("26"),C=S("18"),W=f?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(w)},"&.Mui-focused fieldset":{borderColor:m,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},D=f&&(0,x.jsx)(i.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,x.jsx)(l.A,{sx:{width:24,height:24,bgcolor:C,color:m,transition:"background-color 0.15s, color 0.15s"},children:j||(0,x.jsx)(d.HPi,{size:14})})});return(0,x.jsx)(s.A,{id:"location-autocomplete",options:y||[],getOptionLabel:e=>{var r;return null!==(r=null===e||void 0===e?void 0:e.locationname)&&void 0!==r?r:""},PaperComponent:v,sx:(0,o.A)({},p),onChange:(e,r,o)=>{"clear"===o?(null===t||void 0===t||t(0),null===h||void 0===h||h(""),null===u||void 0===u||u(0)):r&&(null===t||void 0===t||t(r.applocationid),null===h||void 0===h||h(r.locationname),null===u||void 0===u||u(0))},renderInput:e=>f?(0,x.jsx)(a.A,(0,o.A)((0,o.A)({},e),{},{inputRef:r,placeholder:b,InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:D}),sx:(0,o.A)((0,o.A)({},W),g||A||{})})):(0,x.jsx)(a.A,(0,o.A)((0,o.A)({},e),{},{inputRef:r,label:"Select Zones",sx:(0,o.A)({},g||A||{})}))})}))},96646:(e,r,t)=>{t.d(r,{r:()=>a});var o=t(50755),n=t(1596),i=t(91834),l=t(71392),s=t(65908);const a=e=>{let{rowsPerPage:r=5,col:t=1}=e;return(0,s.jsx)(s.Fragment,{children:Array.from(new Array(r)).map(((e,r)=>(0,s.jsxs)(o.A,{children:[(0,s.jsx)(n.A,{children:(0,s.jsx)(i.A,{variant:"circular",width:24,height:24})}),(0,s.jsx)(n.A,{children:(0,s.jsx)(i.A,{variant:"text",width:30})}),Array.from({length:t}).map(((e,r)=>(0,s.jsx)(n.A,{children:(0,s.jsxs)(l.A,{spacing:.5,children:[(0,s.jsx)(i.A,{variant:"text",width:100}),(0,s.jsx)(i.A,{variant:"text",width:80})]})},r))),(0,s.jsx)(n.A,{children:(0,s.jsx)(i.A,{variant:"text",width:150})}),(0,s.jsx)(n.A,{children:(0,s.jsx)(i.A,{variant:"rounded",width:60,height:24})}),(0,s.jsx)(n.A,{align:"center",children:(0,s.jsxs)(l.A,{direction:"row",spacing:1,justifyContent:"flex-end",children:[(0,s.jsx)(i.A,{variant:"circular",width:28,height:28}),(0,s.jsx)(i.A,{variant:"circular",width:28,height:28})]})})]},r)))})}}}]); \ No newline at end of file diff --git a/build/static/js/5076.0e3e1d1e.chunk.js b/build/static/js/5076.0e3e1d1e.chunk.js new file mode 100644 index 0000000..74a28c9 --- /dev/null +++ b/build/static/js/5076.0e3e1d1e.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[5076],{5670:(t,e,r)=>{"use strict";r.d(e,{A:()=>g});var o=r(84849),a=r(27326),i=r(85672),n=r(72574),s=r(25234),l=r(60308),c=r(38009),d=r(37300),u=r(10644);function p(t){return(0,u.Ay)("MuiDialogContent",t)}(0,d.A)("MuiDialogContent",["root","dividers"]);var h=r(30903),f=r(65908);const v=["className","dividers"],m=(0,l.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.dividers&&e.dividers]}})((t=>{let{theme:e,ownerState:r}=t;return(0,a.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},r.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((e.vars||e).palette.divider),borderBottom:"1px solid ".concat((e.vars||e).palette.divider)}:{[".".concat(h.A.root," + &")]:{paddingTop:0}})})),g=i.forwardRef((function(t,e){const r=(0,c.b)({props:t,name:"MuiDialogContent"}),{className:i,dividers:l=!1}=r,d=(0,o.A)(r,v),u=(0,a.A)({},r,{dividers:l}),h=(t=>{const{classes:e,dividers:r}=t,o={root:["root",r&&"dividers"]};return(0,s.A)(o,p,e)})(u);return(0,f.jsx)(m,(0,a.A)({className:(0,n.A)(h.root,i),ownerState:u,ref:e},d))}))},6026:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});const o=r(85672).createContext({})},12010:(t,e,r)=>{"use strict";r.d(e,{A:()=>T});var o=r(57528),a=r(84849),i=r(27326),n=r(85672),s=r(72574),l=r(25234),c=r(8913),d=r(16775),u=r(38009),p=r(60308),h=r(37300),f=r(10644);function v(t){return(0,f.Ay)("MuiCircularProgress",t)}(0,h.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var m,g,A,b,x=r(65908);const y=["className","color","disableShrink","size","style","thickness","value","variant"];let S,k,C,w;const B=44,M=(0,c.i7)(S||(S=m||(m=(0,o.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),R=(0,c.i7)(k||(k=g||(g=(0,o.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),W=(0,p.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e["color".concat((0,d.A)(r.color))]]}})((t=>{let{ownerState:e,theme:r}=t;return(0,i.A)({display:"inline-block"},"determinate"===e.variant&&{transition:r.transitions.create("transform")},"inherit"!==e.color&&{color:(r.vars||r).palette[e.color].main})}),(t=>{let{ownerState:e}=t;return"indeterminate"===e.variant&&(0,c.AH)(C||(C=A||(A=(0,o.A)(["\n animation: "," 1.4s linear infinite;\n "]))),M)})),D=(0,p.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),P=(0,p.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.circle,e["circle".concat((0,d.A)(r.variant))],r.disableShrink&&e.circleDisableShrink]}})((t=>{let{ownerState:e,theme:r}=t;return(0,i.A)({stroke:"currentColor"},"determinate"===e.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(t=>{let{ownerState:e}=t;return"indeterminate"===e.variant&&!e.disableShrink&&(0,c.AH)(w||(w=b||(b=(0,o.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),R)})),T=n.forwardRef((function(t,e){const r=(0,u.b)({props:t,name:"MuiCircularProgress"}),{className:o,color:n="primary",disableShrink:c=!1,size:p=40,style:h,thickness:f=3.6,value:m=0,variant:g="indeterminate"}=r,A=(0,a.A)(r,y),b=(0,i.A)({},r,{color:n,disableShrink:c,size:p,thickness:f,value:m,variant:g}),S=(t=>{const{classes:e,variant:r,color:o,disableShrink:a}=t,i={root:["root",r,"color".concat((0,d.A)(o))],svg:["svg"],circle:["circle","circle".concat((0,d.A)(r)),a&&"circleDisableShrink"]};return(0,l.A)(i,v,e)})(b),k={},C={},w={};if("determinate"===g){const t=2*Math.PI*((B-f)/2);k.strokeDasharray=t.toFixed(3),w["aria-valuenow"]=Math.round(m),k.strokeDashoffset="".concat(((100-m)/100*t).toFixed(3),"px"),C.transform="rotate(-90deg)"}return(0,x.jsx)(W,(0,i.A)({className:(0,s.A)(S.root,o),style:(0,i.A)({width:p,height:p},C,h),ownerState:b,ref:e,role:"progressbar"},w,A,{children:(0,x.jsx)(D,{className:S.svg,ownerState:b,viewBox:"".concat(22," ").concat(22," ").concat(B," ").concat(B),children:(0,x.jsx)(P,{className:S.circle,style:k,ownerState:b,cx:B,cy:B,r:(B-f)/2,fill:"none",strokeWidth:f})})}))}))},17450:(t,e,r)=>{"use strict";r.d(e,{A:()=>m});var o=r(84849),a=r(27326),i=r(85672),n=r(72574),s=r(25234),l=r(60308),c=r(38009),d=r(37300),u=r(10644);function p(t){return(0,u.Ay)("MuiDialogActions",t)}(0,d.A)("MuiDialogActions",["root","spacing"]);var h=r(65908);const f=["className","disableSpacing"],v=(0,l.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableSpacing&&e.spacing]}})((t=>{let{ownerState:e}=t;return(0,a.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),m=i.forwardRef((function(t,e){const r=(0,c.b)({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:l=!1}=r,d=(0,o.A)(r,f),u=(0,a.A)({},r,{disableSpacing:l}),m=(t=>{const{classes:e,disableSpacing:r}=t,o={root:["root",!r&&"spacing"]};return(0,s.A)(o,p,e)})(u);return(0,h.jsx)(v,(0,a.A)({className:(0,n.A)(m.root,i),ownerState:u,ref:e},d))}))},19619:(t,e,r)=>{"use strict";r.d(e,{A:()=>m});var o=r(27326),a=r(84849),i=r(85672),n=r(72574),s=r(25234),l=r(2866),c=r(60308),d=r(38009),u=r(30903),p=r(6026),h=r(65908);const f=["className","id"],v=(0,c.Ay)(l.A,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:"16px 24px",flex:"0 0 auto"}),m=i.forwardRef((function(t,e){const r=(0,d.b)({props:t,name:"MuiDialogTitle"}),{className:l,id:c}=r,m=(0,a.A)(r,f),g=r,A=(t=>{const{classes:e}=t;return(0,s.A)({root:["root"]},u.t,e)})(g),{titleId:b=c}=i.useContext(p.A);return(0,h.jsx)(v,(0,o.A)({component:"h2",className:(0,n.A)(A.root,l),ownerState:g,ref:e,variant:"h6",id:null!=c?c:b},m))}))},22686:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(o,a,i){var n=a.prototype;i.utc=function(t){return new a({date:t,utc:!0,args:arguments})},n.utc=function(e){var r=i(this.toDate(),{locale:this.$L,utc:!0});return e?r.add(this.utcOffset(),t):r},n.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=n.parse;n.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),s.call(this,t)};var l=n.init;n.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else l.call(this)};var c=n.utcOffset;n.utcOffset=function(o,a){var i=this.$utils().u;if(i(o))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof o&&(o=function(t){void 0===t&&(t="");var o=t.match(e);if(!o)return null;var a=(""+o[0]).match(r)||["-",0,0],i=a[0],n=60*+a[1]+ +a[2];return 0===n?0:"+"===i?n:-n}(o),null===o))return this;var n=Math.abs(o)<=16?60*o:o,s=this;if(a)return s.$offset=n,s.$u=0===o,s;if(0!==o){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(n+l,t)).$offset=n,s.$x.$localOffset=l}else s=this.utc();return s};var d=n.format;n.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,e)},n.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},n.isUTC=function(){return!!this.$u},n.toISOString=function(){return this.toDate().toISOString()},n.toString=function(){return this.toDate().toUTCString()};var u=n.toDate;n.toDate=function(t){return"s"===t&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var p=n.diff;n.diff=function(t,e,r){if(t&&this.$u===t.$u)return p.call(this,t,e,r);var o=this.local(),a=i(t).local();return p.call(o,a,e,r)}}}()},30903:(t,e,r)=>{"use strict";r.d(e,{A:()=>n,t:()=>i});var o=r(37300),a=r(10644);function i(t){return(0,a.Ay)("MuiDialogTitle",t)}const n=(0,o.A)("MuiDialogTitle",["root"])},41033:(t,e,r)=>{"use strict";r.d(e,{q:()=>l});var o=r(22555),a=r(48149),i=r(59949),n=class extends a.${constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,e){super.setOptions((0,o.A)((0,o.A)({},t),{},{behavior:(0,i.PL)()}),e)}getOptimisticResult(t){return t.behavior=(0,i.PL)(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch((0,o.A)((0,o.A)({},t),{},{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(t){return this.fetch((0,o.A)((0,o.A)({},t),{},{meta:{fetchMore:{direction:"backward"}}}))}createResult(t,e){var r,a,n,s;const{state:l}=t,c=super.createResult(t,e),{isFetching:d,isRefetching:u}=c,p=d&&"forward"===(null===(r=l.fetchMeta)||void 0===r||null===(a=r.fetchMore)||void 0===a?void 0:a.direction),h=d&&"backward"===(null===(n=l.fetchMeta)||void 0===n||null===(s=n.fetchMore)||void 0===s?void 0:s.direction);return(0,o.A)((0,o.A)({},c),{},{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,i.rB)(e,l.data),hasPreviousPage:(0,i.RQ)(e,l.data),isFetchingNextPage:p,isFetchingPreviousPage:h,isRefetching:u&&!p&&!h})}},s=r(59363);function l(t,e){return(0,s.t)(t,n,e)}},42129:(t,e,r)=>{"use strict";r.d(e,{A:()=>n,f:()=>i});var o=r(37300),a=r(10644);function i(t){return(0,a.Ay)("MuiDialog",t)}const n=(0,o.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"])},58689:(t,e,r)=>{"use strict";r.d(e,{A:()=>w});var o=r(84849),a=r(27326),i=r(85672),n=r(72574),s=r(25234),l=r(16660),c=r(16775),d=r(52243),u=r(95345),p=r(55235),h=r(38009),f=r(60308),v=r(42129),m=r(6026),g=r(15227),A=r(69039),b=r(65908);const x=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],y=(0,f.Ay)(g.A,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),S=(0,f.Ay)(d.A,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),k=(0,f.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.container,e["scroll".concat((0,c.A)(r.scroll))]]}})((t=>{let{ownerState:e}=t;return(0,a.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),C=(0,f.Ay)(p.A,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.paper,e["scrollPaper".concat((0,c.A)(r.scroll))],e["paperWidth".concat((0,c.A)(String(r.maxWidth)))],r.fullWidth&&e.paperFullWidth,r.fullScreen&&e.paperFullScreen]}})((t=>{let{theme:e,ownerState:r}=t;return(0,a.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):"max(".concat(e.breakpoints.values.xs).concat(e.breakpoints.unit,", 444px)"),["&.".concat(v.A.paperScrollBody)]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},r.maxWidth&&"xs"!==r.maxWidth&&{maxWidth:"".concat(e.breakpoints.values[r.maxWidth]).concat(e.breakpoints.unit),["&.".concat(v.A.paperScrollBody)]:{[e.breakpoints.down(e.breakpoints.values[r.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(v.A.paperScrollBody)]:{margin:0,maxWidth:"100%"}})})),w=i.forwardRef((function(t,e){const r=(0,h.b)({props:t,name:"MuiDialog"}),d=(0,A.A)(),f={enter:d.transitions.duration.enteringScreen,exit:d.transitions.duration.leavingScreen},{"aria-describedby":g,"aria-labelledby":w,BackdropComponent:B,BackdropProps:M,children:R,className:W,disableEscapeKeyDown:D=!1,fullScreen:P=!1,fullWidth:T=!1,maxWidth:$="sm",onBackdropClick:N,onClick:z,onClose:O,open:j,PaperComponent:F=p.A,PaperProps:L={},scroll:Y="paper",TransitionComponent:H=u.A,transitionDuration:I=f,TransitionProps:U}=r,X=(0,o.A)(r,x),E=(0,a.A)({},r,{disableEscapeKeyDown:D,fullScreen:P,fullWidth:T,maxWidth:$,scroll:Y}),G=(t=>{const{classes:e,scroll:r,maxWidth:o,fullWidth:a,fullScreen:i}=t,n={root:["root"],container:["container","scroll".concat((0,c.A)(r))],paper:["paper","paperScroll".concat((0,c.A)(r)),"paperWidth".concat((0,c.A)(String(o))),a&&"paperFullWidth",i&&"paperFullScreen"]};return(0,s.A)(n,v.f,e)})(E),K=i.useRef(),_=(0,l.A)(w),J=i.useMemo((()=>({titleId:_})),[_]);return(0,b.jsx)(S,(0,a.A)({className:(0,n.A)(G.root,W),closeAfterTransition:!0,components:{Backdrop:y},componentsProps:{backdrop:(0,a.A)({transitionDuration:I,as:B},M)},disableEscapeKeyDown:D,onClose:O,open:j,ref:e,onClick:t=>{z&&z(t),K.current&&(K.current=null,N&&N(t),O&&O(t,"backdropClick"))},ownerState:E},X,{children:(0,b.jsx)(H,(0,a.A)({appear:!0,in:j,timeout:I,role:"presentation"},U,{children:(0,b.jsx)(k,{className:(0,n.A)(G.container),onMouseDown:t=>{K.current=t.target===t.currentTarget},ownerState:E,children:(0,b.jsx)(C,(0,a.A)({as:F,elevation:24,role:"dialog","aria-describedby":g,"aria-labelledby":_},L,{className:(0,n.A)(G.paper,L.className),ownerState:E,children:(0,b.jsx)(m.A.Provider,{value:J,children:R})}))})}))}))}))},66827:(t,e,r)=>{"use strict";r.d(e,{A:()=>S});var o=r(84849),a=r(27326),i=r(85672),n=r(72574),s=r(8422),l=r(25234),c=r(40835),d=r(61949),u=r(16775),p=r(38009),h=r(60308),f=r(91017),v=r(79724),m=r(81656);function g(t,e){return void 0!==e&&void 0!==t&&(Array.isArray(e)?e.indexOf(t)>=0:t===e)}var A=r(65908);const b=["value"],x=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],y=(0,h.Ay)(d.A,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e["size".concat((0,u.A)(r.size))]]}})((t=>{let e,{theme:r,ownerState:o}=t,i="standard"===o.color?r.palette.text.primary:r.palette[o.color].main;return r.vars&&(i="standard"===o.color?r.vars.palette.text.primary:r.vars.palette[o.color].main,e="standard"===o.color?r.vars.palette.text.primaryChannel:r.vars.palette[o.color].mainChannel),(0,a.A)({},r.typography.button,{borderRadius:(r.vars||r).shape.borderRadius,padding:11,border:"1px solid ".concat((r.vars||r).palette.divider),color:(r.vars||r).palette.action.active},o.fullWidth&&{width:"100%"},{["&.".concat(f.A.disabled)]:{color:(r.vars||r).palette.action.disabled,border:"1px solid ".concat((r.vars||r).palette.action.disabledBackground)},"&:hover":{textDecoration:"none",backgroundColor:r.vars?"rgba(".concat(r.vars.palette.text.primaryChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,c.X4)(r.palette.text.primary,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(f.A.selected)]:{color:i,backgroundColor:r.vars?"rgba(".concat(e," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,c.X4)(i,r.palette.action.selectedOpacity),"&:hover":{backgroundColor:r.vars?"rgba(".concat(e," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,c.X4)(i,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:r.vars?"rgba(".concat(e," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,c.X4)(i,r.palette.action.selectedOpacity)}}}},"small"===o.size&&{padding:7,fontSize:r.typography.pxToRem(13)},"large"===o.size&&{padding:15,fontSize:r.typography.pxToRem(15)})})),S=i.forwardRef((function(t,e){const r=i.useContext(v.A),{value:c}=r,d=(0,o.A)(r,b),h=i.useContext(m.A),S=(0,s.A)((0,a.A)({},d,{selected:g(t.value,c)}),t),k=(0,p.b)({props:S,name:"MuiToggleButton"}),{children:C,className:w,color:B="standard",disabled:M=!1,disableFocusRipple:R=!1,fullWidth:W=!1,onChange:D,onClick:P,selected:T,size:$="medium",value:N}=k,z=(0,o.A)(k,x),O=(0,a.A)({},k,{color:B,disabled:M,disableFocusRipple:R,fullWidth:W,size:$}),j=(t=>{const{classes:e,fullWidth:r,selected:o,disabled:a,size:i,color:n}=t,s={root:["root",o&&"selected",a&&"disabled",r&&"fullWidth","size".concat((0,u.A)(i)),n]};return(0,l.A)(s,f.J,e)})(O),F=h||"";return(0,A.jsx)(y,(0,a.A)({className:(0,n.A)(d.className,j.root,w,F),disabled:M,focusRipple:!R,ref:e,onClick:t=>{P&&(P(t,N),t.defaultPrevented)||D&&D(t,N)},onChange:D,value:N,ownerState:O,"aria-pressed":T},z,{children:C}))}))},68320:(t,e,r)=>{"use strict";r.d(e,{I:()=>i});var o=r(48149),a=r(59363);function i(t,e){return(0,a.t)(t,o.$,e)}},79724:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});const o=r(85672).createContext({})},81656:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});const o=r(85672).createContext(void 0)},86245:(t,e,r)=>{"use strict";r.d(e,{A:()=>y});var o=r(84849),a=r(27326),i=r(85672),n=r(72574),s=r(25234);var l=r(60308),c=r(38009),d=r(16775),u=r(37300),p=r(10644);function h(t){return(0,p.Ay)("MuiToggleButtonGroup",t)}const f=(0,u.A)("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]);var v=r(79724),m=r(81656),g=r(91017),A=r(65908);const b=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],x=(0,l.Ay)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{["& .".concat(f.grouped)]:e.grouped},{["& .".concat(f.grouped)]:e["grouped".concat((0,d.A)(r.orientation))]},{["& .".concat(f.firstButton)]:e.firstButton},{["& .".concat(f.lastButton)]:e.lastButton},{["& .".concat(f.middleButton)]:e.middleButton},e.root,"vertical"===r.orientation&&e.vertical,r.fullWidth&&e.fullWidth]}})((t=>{let{ownerState:e,theme:r}=t;return(0,a.A)({display:"inline-flex",borderRadius:(r.vars||r).shape.borderRadius},"vertical"===e.orientation&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{["& .".concat(f.grouped)]:(0,a.A)({},"horizontal"===e.orientation?{["&.".concat(f.selected," + .").concat(f.grouped,".").concat(f.selected)]:{borderLeft:0,marginLeft:0}}:{["&.".concat(f.selected," + .").concat(f.grouped,".").concat(f.selected)]:{borderTop:0,marginTop:0}})},"horizontal"===e.orientation?{["& .".concat(f.firstButton,",& .").concat(f.middleButton)]:{borderTopRightRadius:0,borderBottomRightRadius:0},["& .".concat(f.lastButton,",& .").concat(f.middleButton)]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{["& .".concat(f.firstButton,",& .").concat(f.middleButton)]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},["& .".concat(f.lastButton,",& .").concat(f.middleButton)]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},"horizontal"===e.orientation?{["& .".concat(f.lastButton,".").concat(g.A.disabled,",& .").concat(f.middleButton,".").concat(g.A.disabled)]:{borderLeft:"1px solid transparent"}}:{["& .".concat(f.lastButton,".").concat(g.A.disabled,",& .").concat(f.middleButton,".").concat(g.A.disabled)]:{borderTop:"1px solid transparent"}})})),y=i.forwardRef((function(t,e){const r=(0,c.b)({props:t,name:"MuiToggleButtonGroup"}),{children:l,className:u,color:p="standard",disabled:f=!1,exclusive:g=!1,fullWidth:y=!1,onChange:S,orientation:k="horizontal",size:C="medium",value:w}=r,B=(0,o.A)(r,b),M=(0,a.A)({},r,{disabled:f,fullWidth:y,orientation:k,size:C}),R=(t=>{const{classes:e,orientation:r,fullWidth:o,disabled:a}=t,i={root:["root","vertical"===r&&"vertical",o&&"fullWidth"],grouped:["grouped","grouped".concat((0,d.A)(r)),a&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,s.A)(i,h,e)})(M),W=i.useCallback(((t,e)=>{if(!S)return;const r=w&&w.indexOf(e);let o;w&&r>=0?(o=w.slice(),o.splice(r,1)):o=w?w.concat(e):[e],S(t,o)}),[S,w]),D=i.useCallback(((t,e)=>{S&&S(t,w===e?null:e)}),[S,w]),P=i.useMemo((()=>({className:R.grouped,onChange:g?D:W,value:w,size:C,fullWidth:y,color:p,disabled:f})),[R.grouped,g,D,W,w,C,y,p,f]),T=function(t){return i.Children.toArray(t).filter((t=>i.isValidElement(t)))}(l),$=T.length,N=t=>{const e=0===t,r=t===$-1;return e&&r?"":e?R.firstButton:r?R.lastButton:R.middleButton};return(0,A.jsx)(x,(0,a.A)({role:"group",className:(0,n.A)(R.root,u),ref:e,ownerState:M},B,{children:(0,A.jsx)(v.A.Provider,{value:P,children:T.map(((t,e)=>(0,A.jsx)(m.A.Provider,{value:N(e),children:t},e)))})}))}))},91017:(t,e,r)=>{"use strict";r.d(e,{A:()=>n,J:()=>i});var o=r(37300),a=r(10644);function i(t){return(0,a.Ay)("MuiToggleButton",t)}const n=(0,o.A)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"])}}]); \ No newline at end of file diff --git a/build/static/js/5116.88b8f8cf.chunk.js b/build/static/js/5116.88b8f8cf.chunk.js deleted file mode 100644 index eac8fc2..0000000 --- a/build/static/js/5116.88b8f8cf.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 5116.88b8f8cf.chunk.js.LICENSE.txt */ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[5116],{10523:(e,t,n)=>{n.d(t,{BH:()=>U,Fu:()=>gt,KD:()=>G,Ro:()=>Lt,i3:()=>nn,pH:()=>pe,u6:()=>C});var s,o,i=n(44414),r=n(9950),a=n(17119);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,t||"default");if("object"!=l(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}function p(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var d=c(o?s:(o=1,s=function(e,t,n,s,o,i,r,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,s,o,i,r,a],p=0;(l=new Error(t.replace(/%s/g,(function(){return u[p++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}})),h=(0,r.createContext)(null);function g(e,t,n,s){var o,i,r={};return o=e,i=(e,o)=>{var i=n[o];i!==t[o]&&(r[o]=i,e(s,i))},Object.keys(o).forEach((e=>i(o[e],e))),r}function m(e,t,n){var s,o,i,r=(s=n,o=function(n,s,o){return"function"===typeof e[o]&&n.push(google.maps.event.addListener(t,s,e[o])),n},i=[],Object.keys(s).reduce((function(e,t){return o(e,s[t],t)}),i));return r}function v(e){google.maps.event.removeListener(e)}function f(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(v)}function y(e){var{updaterMap:t,eventMap:n,prevProps:s,nextProps:o,instance:i}=e,r=m(o,i,n);return g(t,s,o,i),r}var b={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},L={extraMapTypes(e,t){t.forEach((function(t,n){e.mapTypes.set(String(n),t)}))},center(e,t){e.setCenter(t)},clickableIcons(e,t){e.setClickableIcons(t)},heading(e,t){e.setHeading(t)},mapTypeId(e,t){e.setMapTypeId(t)},options(e,t){e.setOptions(t)},streetView(e,t){e.setStreetView(t)},tilt(e,t){e.setTilt(t)},zoom(e,t){e.setZoom(t)}};(0,r.memo)((function(e){var{children:t,options:n,id:s,mapContainerStyle:o,mapContainerClassName:a,center:l,onClick:u,onDblClick:p,onDrag:c,onDragEnd:d,onDragStart:g,onMouseMove:m,onMouseOut:v,onMouseOver:f,onMouseDown:y,onMouseUp:b,onRightClick:L,onCenterChanged:C,onLoad:E,onUnmount:w}=e,[M,x]=(0,r.useState)(null),k=(0,r.useRef)(null),[P,O]=(0,r.useState)(null),[S,D]=(0,r.useState)(null),[I,j]=(0,r.useState)(null),[B,_]=(0,r.useState)(null),[R,T]=(0,r.useState)(null),[U,z]=(0,r.useState)(null),[A,Z]=(0,r.useState)(null),[V,W]=(0,r.useState)(null),[N,H]=(0,r.useState)(null),[F,G]=(0,r.useState)(null),[K,Y]=(0,r.useState)(null),[q,J]=(0,r.useState)(null);return(0,r.useEffect)((()=>{n&&null!==M&&M.setOptions(n)}),[M,n]),(0,r.useEffect)((()=>{null!==M&&"undefined"!==typeof l&&M.setCenter(l)}),[M,l]),(0,r.useEffect)((()=>{M&&p&&(null!==S&&google.maps.event.removeListener(S),D(google.maps.event.addListener(M,"dblclick",p)))}),[p]),(0,r.useEffect)((()=>{M&&d&&(null!==I&&google.maps.event.removeListener(I),j(google.maps.event.addListener(M,"dragend",d)))}),[d]),(0,r.useEffect)((()=>{M&&g&&(null!==B&&google.maps.event.removeListener(B),_(google.maps.event.addListener(M,"dragstart",g)))}),[g]),(0,r.useEffect)((()=>{M&&y&&(null!==R&&google.maps.event.removeListener(R),T(google.maps.event.addListener(M,"mousedown",y)))}),[y]),(0,r.useEffect)((()=>{M&&m&&(null!==U&&google.maps.event.removeListener(U),z(google.maps.event.addListener(M,"mousemove",m)))}),[m]),(0,r.useEffect)((()=>{M&&v&&(null!==A&&google.maps.event.removeListener(A),Z(google.maps.event.addListener(M,"mouseout",v)))}),[v]),(0,r.useEffect)((()=>{M&&f&&(null!==V&&google.maps.event.removeListener(V),W(google.maps.event.addListener(M,"mouseover",f)))}),[f]),(0,r.useEffect)((()=>{M&&b&&(null!==N&&google.maps.event.removeListener(N),H(google.maps.event.addListener(M,"mouseup",b)))}),[b]),(0,r.useEffect)((()=>{M&&L&&(null!==F&&google.maps.event.removeListener(F),G(google.maps.event.addListener(M,"rightclick",L)))}),[L]),(0,r.useEffect)((()=>{M&&u&&(null!==K&&google.maps.event.removeListener(K),Y(google.maps.event.addListener(M,"click",u)))}),[u]),(0,r.useEffect)((()=>{M&&c&&(null!==q&&google.maps.event.removeListener(q),J(google.maps.event.addListener(M,"drag",c)))}),[c]),(0,r.useEffect)((()=>{M&&C&&(null!==P&&google.maps.event.removeListener(P),O(google.maps.event.addListener(M,"center_changed",C)))}),[u]),(0,r.useEffect)((()=>{var e=null===k.current?null:new google.maps.Map(k.current,n);return x(e),null!==e&&E&&E(e),()=>{null!==e&&w&&w(e)}}),[]),(0,i.jsx)("div",{id:s,ref:k,style:o,className:a,children:(0,i.jsx)(h.Provider,{value:M,children:null!==M?t:null})})}));class C extends r.PureComponent{constructor(){super(...arguments),p(this,"state",{map:null}),p(this,"registeredEvents",[]),p(this,"mapRef",null),p(this,"getInstance",(()=>null===this.mapRef?null:new google.maps.Map(this.mapRef,this.props.options))),p(this,"panTo",(e=>{var t=this.getInstance();t&&t.panTo(e)})),p(this,"setMapCallback",(()=>{null!==this.state.map&&this.props.onLoad&&this.props.onLoad(this.state.map)})),p(this,"getRef",(e=>{this.mapRef=e}))}componentDidMount(){var e=this.getInstance();this.registeredEvents=y({updaterMap:L,eventMap:b,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{map:e}}),this.setMapCallback)}componentDidUpdate(e){null!==this.state.map&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:L,eventMap:b,prevProps:e,nextProps:this.props,instance:this.state.map}))}componentWillUnmount(){null!==this.state.map&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),f(this.registeredEvents))}render(){return(0,i.jsx)("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName,children:(0,i.jsx)(h.Provider,{value:this.state.map,children:null!==this.state.map?this.props.children:null})})}}function E(e,t,n,s,o,i,r){try{var a=e[i](r),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(s,o)}function w(e){return function(){var t=this,n=arguments;return new Promise((function(s,o){var i=e.apply(t,n);function r(e){E(i,s,o,r,a,"next",e)}function a(e){E(i,s,o,r,a,"throw",e)}r(void 0)}))}}function M(e){var{googleMapsApiKey:t,googleMapsClientId:n,version:s="weekly",language:o,region:i,libraries:r,channel:a,mapIds:l,authReferrerPolicy:u,apiUrl:p="https://maps.googleapis.com"}=e,c=[];return d(t&&n||!(t&&n),"You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time."),t?c.push("key=".concat(t)):n&&c.push("client=".concat(n)),s&&c.push("v=".concat(s)),o&&c.push("language=".concat(o)),i&&c.push("region=".concat(i)),r&&r.length&&c.push("libraries=".concat(r.sort().join(","))),a&&c.push("channel=".concat(a)),l&&l.length&&c.push("map_ids=".concat(l.join(","))),u&&c.push("auth_referrer_policy=".concat(u)),c.push("loading=async"),c.push("callback=initMap"),"".concat(p,"/maps/api/js?").concat(c.join("&"))}var x="undefined"!==typeof document;function k(e){var{url:t,id:n,nonce:s}=e;return x?new Promise((function(e,o){var i=document.getElementById(n),r=window;if(i){var a=i.getAttribute("data-state");if(i.src===t&&"error"!==a){if("ready"===a)return e(n);var l=r.initMap,u=i.onerror;return r.initMap=function(){l&&l(),e(n)},void(i.onerror=function(e){u&&u(e),o(e)})}i.remove()}var p=document.createElement("script");p.type="text/javascript",p.src=t,p.id=n,p.async=!0,p.nonce=s||"",p.onerror=function(e){p.setAttribute("data-state","error"),o(e)},r.initMap=function(){p.setAttribute("data-state","ready"),e(n)},document.head.appendChild(p)})).catch((e=>{throw console.error("injectScript error: ",e),e})):Promise.reject(new Error("document is undefined"))}function P(e){var t=e.href;return!(!t||0!==t.indexOf("https://fonts.googleapis.com/css?family=Roboto")&&0!==t.indexOf("https://fonts.googleapis.com/css?family=Google+Sans+Text"))||("style"===e.tagName.toLowerCase()&&e.styleSheet&&e.styleSheet.cssText&&0===e.styleSheet.cssText.replace("\r\n","").indexOf(".gm-style")?(e.styleSheet.cssText="",!0):"style"===e.tagName.toLowerCase()&&e.innerHTML&&0===e.innerHTML.replace("\r\n","").indexOf(".gm-style")?(e.innerHTML="",!0):"style"===e.tagName.toLowerCase()&&!e.styleSheet&&!e.innerHTML)}function O(){var e=document.getElementsByTagName("head")[0];if(e){var t=e.insertBefore.bind(e);e.insertBefore=function(n,s){return P(n)||Reflect.apply(t,e,[n,s]),n};var n=e.appendChild.bind(e);e.appendChild=function(t){return P(t)||Reflect.apply(n,e,[t]),t}}}var S=!1;function D(){return(0,i.jsx)("div",{children:"Loading..."})}var I,j={id:"script-loader",version:"weekly"};class B extends r.PureComponent{constructor(){super(...arguments),p(this,"check",null),p(this,"state",{loaded:!1}),p(this,"cleanupCallback",(()=>{delete window.google.maps,this.injectScript()})),p(this,"isCleaningUp",w((function*(){return new Promise((function(e){if(S){if(x)var t=window.setInterval((function(){S||(window.clearInterval(t),e())}),1)}else e()}))}))),p(this,"cleanup",(()=>{S=!0;var e=document.getElementById(this.props.id);e&&e.parentNode&&e.parentNode.removeChild(e),Array.prototype.slice.call(document.getElementsByTagName("script")).filter((function(e){return"string"===typeof e.src&&e.src.includes("maps.googleapis")})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)})),Array.prototype.slice.call(document.getElementsByTagName("link")).filter((function(e){return"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"===e.href})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)})),Array.prototype.slice.call(document.getElementsByTagName("style")).filter((function(e){return void 0!==e.innerText&&e.innerText.length>0&&e.innerText.includes(".gm-")})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))})),p(this,"injectScript",(()=>{this.props.preventGoogleFontsLoading&&O(),d(!!this.props.id,'LoadScript requires "id" prop to be a string: %s',this.props.id),k({id:this.props.id,nonce:this.props.nonce,url:M(this.props)}).then((()=>{this.props.onLoad&&this.props.onLoad(),this.setState((function(){return{loaded:!0}}))})).catch((e=>{this.props.onError&&this.props.onError(e),console.error("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (".concat(this.props.googleMapsApiKey||"-",") or Client ID (").concat(this.props.googleMapsClientId||"-",") to \n Otherwise it is a Network issue.\n "))}))})),p(this,"getRef",(e=>{this.check=e}))}componentDidMount(){if(x){if(window.google&&window.google.maps&&!S)return void console.error("google api is already presented");this.isCleaningUp().then(this.injectScript).catch((function(e){console.error("Error at injecting script after cleaning up: ",e)}))}}componentDidUpdate(e){this.props.libraries!==e.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),x&&e.language!==this.props.language&&(this.cleanup(),this.setState((function(){return{loaded:!1}}),this.cleanupCallback))}componentWillUnmount(){if(x){this.cleanup();window.setTimeout((()=>{this.check||(delete window.google,S=!1)}),1),this.props.onUnmount&&this.props.onUnmount()}}render(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:this.getRef}),this.state.loaded?this.props.children:this.props.loadingElement||(0,i.jsx)(D,{})]})}}function _(e,t){if(null==e)return{};var n,s,o=function(e,t){if(null==e)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.includes(s))continue;n[s]=e[s]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s{v.current=!1}}),[]),(0,r.useEffect)((function(){x&&p&&O()}),[p]),(0,r.useEffect)((function(){f&&d(!!window.google,"useLoadScript was marked as loaded, but window.google is not present. Something went wrong.")}),[f]);var C=M({version:n,googleMapsApiKey:o,googleMapsClientId:i,language:a,region:l,libraries:u,channel:c,mapIds:h,authReferrerPolicy:g,apiUrl:m});(0,r.useEffect)((function(){function e(){v.current&&(y(!0),I=C)}x&&(window.google&&window.google.maps&&I===C?e():k({id:t,url:C,nonce:s}).then(e).catch((function(e){v.current&&L(e),console.warn("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (".concat(o||"-",") or Client ID (").concat(i||"-",")\n Otherwise it is a Network issue.\n ")),console.error(e)})))}),[t,C,s]);var E=(0,r.useRef)(void 0);return(0,r.useEffect)((function(){E.current&&u!==E.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),E.current=u}),[u]),{isLoaded:f,loadError:b,url:C}}(a);return(0,r.useEffect)((function(){l&&"function"===typeof n&&n()}),[l,n]),(0,r.useEffect)((function(){u&&"function"===typeof s&&s(u)}),[u,s]),(0,r.useEffect)((function(){return()=>{o&&o()}}),[o]),l?i:t||T}));function z(e,t,n,s){return new(n||(n=Promise))((function(t,o){function i(e){try{a(s.next(e))}catch(t){o(t)}}function r(e){try{a(s.throw(e))}catch(t){o(t)}}function a(e){var s;e.done?t(e.value):(s=e.value,s instanceof n?s:new n((function(e){e(s)}))).then(i,r)}a((s=s.apply(e,[])).next())}))}function A(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"===typeof SuppressedError&&SuppressedError;var Z,V=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var s,o,i;if(Array.isArray(t)){if((s=t.length)!=n.length)return!1;for(o=s;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((s=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=s;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=s;0!==o--;){var r=i[o];if(!e(t[r],n[r]))return!1}return!0}return t!==t&&n!==n},W=A(V),N="__googleMapsScriptId";!function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"}(Z||(Z={}));class H{constructor(e){var{apiKey:t,authReferrerPolicy:n,channel:s,client:o,id:i=N,language:r,libraries:a=[],mapIds:l,nonce:u,region:p,retries:c=3,url:d="https://maps.googleapis.com/maps/api/js",version:h}=e;if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=n,this.channel=s,this.client=o,this.id=i||N,this.language=r,this.libraries=a,this.mapIds=l,this.nonce=u,this.region=p,this.retries=c,this.url=d,this.version=h,H.instance){if(!W(this.options,H.instance.options))throw new Error("Loader must not be called again with different options. ".concat(JSON.stringify(this.options)," !== ").concat(JSON.stringify(H.instance.options)));return H.instance}H.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?Z.FAILURE:this.done?Z.SUCCESS:this.loading?Z.LOADING:Z.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){var e=this.url;return e+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(e+="&key=".concat(this.apiKey)),this.channel&&(e+="&channel=".concat(this.channel)),this.client&&(e+="&client=".concat(this.client)),this.libraries.length>0&&(e+="&libraries=".concat(this.libraries.join(","))),this.language&&(e+="&language=".concat(this.language)),this.region&&(e+="®ion=".concat(this.region)),this.version&&(e+="&v=".concat(this.version)),this.mapIds&&(e+="&map_ids=".concat(this.mapIds.join(","))),this.authReferrerPolicy&&(e+="&auth_referrer_policy=".concat(this.authReferrerPolicy)),e}deleteScript(){var e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((e,t)=>{this.loadCallback((n=>{n?t(n.error):e(window.google)}))}))}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,t;if(document.getElementById(this.id))this.callback();else{var n={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(n).forEach((e=>!n[e]&&delete n[e])),(null===(t=null===(e=null===window||void 0===window?void 0:window.google)||void 0===e?void 0:e.maps)||void 0===t?void 0:t.importLibrary)||(e=>{var t,n,s,o="The Google Maps JavaScript API",i="google",r="importLibrary",a="__ib__",l=document,u=window,p=(u=u[i]||(u[i]={})).maps||(u.maps={}),c=new Set,d=new URLSearchParams,h=()=>t||(t=new Promise(((r,u)=>z(this,0,void 0,(function*(){var h;for(s in yield n=l.createElement("script"),n.id=this.id,d.set("libraries",[...c]+""),e)d.set(s.replace(/[A-Z]/g,(e=>"_"+e[0].toLowerCase())),e[s]);d.set("callback",i+".maps."+a),n.src=this.url+"?"+d,p[a]=r,n.onerror=()=>t=u(Error(o+" could not load.")),n.nonce=this.nonce||(null===(h=l.querySelector("script[nonce]"))||void 0===h?void 0:h.nonce)||"",l.head.append(n)})))));p[r]?console.warn(o+" only loads once. Ignoring:",e):p[r]=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;sp[r](e,...n)))}})(n);var s=this.libraries.map((e=>this.importLibrary(e)));s.length||s.push(this.importLibrary("core")),Promise.all(s).then((()=>this.callback()),(e=>{var t=new ErrorEvent("error",{error:e});this.loadErrorCallback(t)}))}}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){var t=this.errors.length*Math.pow(2,this.errors.length);console.error("Failed to load Google Maps script, retrying in ".concat(t," ms.")),setTimeout((()=>{this.deleteScript(),this.setScript()}),t)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((e=>{e(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),!this.loading)if(this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader. This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading=!0,this.setScript()}}}var F=["maps"];function G(e){var{id:t=j.id,version:n=j.version,nonce:s,googleMapsApiKey:o,language:i,region:a,libraries:l=F,preventGoogleFontsLoading:u,mapIds:p,authReferrerPolicy:c}=e,d=(0,r.useRef)(!1),[h,g]=(0,r.useState)(!1),[m,v]=(0,r.useState)(void 0);(0,r.useEffect)((function(){return d.current=!0,()=>{d.current=!1}}),[]);var f=(0,r.useMemo)((()=>new H({id:t,apiKey:o,version:n,libraries:l,language:i||"en",region:a||"US",mapIds:p||[],nonce:s||"",authReferrerPolicy:c||"origin"})),[t,o,n,l,i,a,p,s,c]);(0,r.useEffect)((function(){h||f.load().then((()=>{d.current&&g(!0)})).catch((e=>{v(e)}))}),[]),(0,r.useEffect)((()=>{x&&u&&O()}),[u]);var y=(0,r.useRef)();return(0,r.useEffect)((()=>{y.current&&l!==y.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),y.current=l}),[l]),{isLoaded:h,loadError:m}}function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function Y(e){for(var t=1;t{null!==i&&i.setMap(o)}),[o]),(0,r.useEffect)((()=>{t&&null!==i&&i.setOptions(t)}),[i,t]),(0,r.useEffect)((()=>{var e=new google.maps.TrafficLayer(Y(Y({},t),{},{map:o}));return a(e),n&&n(e),()=>{null!==i&&(s&&s(i),i.setMap(null))}}),[]),null}));class X extends r.PureComponent{constructor(){super(...arguments),p(this,"state",{trafficLayer:null}),p(this,"setTrafficLayerCallback",(()=>{null!==this.state.trafficLayer&&this.props.onLoad&&this.props.onLoad(this.state.trafficLayer)})),p(this,"registeredEvents",[])}componentDidMount(){var e=new google.maps.TrafficLayer(Y(Y({},this.props.options),{},{map:this.context}));this.registeredEvents=y({updaterMap:J,eventMap:q,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{trafficLayer:e}}),this.setTrafficLayerCallback)}componentDidUpdate(e){null!==this.state.trafficLayer&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:J,eventMap:q,prevProps:e,nextProps:this.props,instance:this.state.trafficLayer}))}componentWillUnmount(){null!==this.state.trafficLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),f(this.registeredEvents),this.state.trafficLayer.setMap(null))}render(){return null}}p(X,"contextType",h);(0,r.memo)((function(e){var{onLoad:t,onUnmount:n}=e,s=(0,r.useContext)(h),[o,i]=(0,r.useState)(null);return(0,r.useEffect)((()=>{null!==o&&o.setMap(s)}),[s]),(0,r.useEffect)((()=>{var e=new google.maps.BicyclingLayer;return i(e),e.setMap(s),t&&t(e),()=>{null!==e&&(n&&n(e),e.setMap(null))}}),[]),null}));class $ extends r.PureComponent{constructor(){super(...arguments),p(this,"state",{bicyclingLayer:null}),p(this,"setBicyclingLayerCallback",(()=>{null!==this.state.bicyclingLayer&&(this.state.bicyclingLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.bicyclingLayer))}))}componentDidMount(){var e=new google.maps.BicyclingLayer;this.setState((()=>({bicyclingLayer:e})),this.setBicyclingLayerCallback)}componentWillUnmount(){null!==this.state.bicyclingLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))}render(){return null}}p($,"contextType",h);(0,r.memo)((function(e){var{onLoad:t,onUnmount:n}=e,s=(0,r.useContext)(h),[o,i]=(0,r.useState)(null);return(0,r.useEffect)((()=>{null!==o&&o.setMap(s)}),[s]),(0,r.useEffect)((()=>{var e=new google.maps.TransitLayer;return i(e),e.setMap(s),t&&t(e),()=>{null!==o&&(n&&n(o),o.setMap(null))}}),[]),null}));class Q extends r.PureComponent{constructor(){super(...arguments),p(this,"state",{transitLayer:null}),p(this,"setTransitLayerCallback",(()=>{null!==this.state.transitLayer&&(this.state.transitLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.transitLayer))}))}componentDidMount(){var e=new google.maps.TransitLayer;this.setState((function(){return{transitLayer:e}}),this.setTransitLayerCallback)}componentWillUnmount(){null!==this.state.transitLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))}render(){return null}}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function te(e){for(var t=1;t{null!==m&&m.setMap(g)}),[g]),(0,r.useEffect)((()=>{t&&null!==m&&m.setOptions(t)}),[m,t]),(0,r.useEffect)((()=>{null!==m&&m.setDrawingMode(null!==n&&void 0!==n?n:null)}),[m,n]),(0,r.useEffect)((()=>{m&&s&&(null!==f&&google.maps.event.removeListener(f),y(google.maps.event.addListener(m,"circlecomplete",s)))}),[m,s]),(0,r.useEffect)((()=>{m&&o&&(null!==b&&google.maps.event.removeListener(b),L(google.maps.event.addListener(m,"markercomplete",o)))}),[m,o]),(0,r.useEffect)((()=>{m&&i&&(null!==C&&google.maps.event.removeListener(C),E(google.maps.event.addListener(m,"overlaycomplete",i)))}),[m,i]),(0,r.useEffect)((()=>{m&&a&&(null!==w&&google.maps.event.removeListener(w),M(google.maps.event.addListener(m,"polygoncomplete",a)))}),[m,a]),(0,r.useEffect)((()=>{m&&l&&(null!==x&&google.maps.event.removeListener(x),k(google.maps.event.addListener(m,"polylinecomplete",l)))}),[m,l]),(0,r.useEffect)((()=>{m&&u&&(null!==P&&google.maps.event.removeListener(P),O(google.maps.event.addListener(m,"rectanglecomplete",u)))}),[m,u]),(0,r.useEffect)((()=>{d(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing);var e=new google.maps.drawing.DrawingManager(te(te({},t),{},{map:g}));return n&&e.setDrawingMode(n),s&&y(google.maps.event.addListener(e,"circlecomplete",s)),o&&L(google.maps.event.addListener(e,"markercomplete",o)),i&&E(google.maps.event.addListener(e,"overlaycomplete",i)),a&&M(google.maps.event.addListener(e,"polygoncomplete",a)),l&&k(google.maps.event.addListener(e,"polylinecomplete",l)),u&&O(google.maps.event.addListener(e,"rectanglecomplete",u)),v(e),p&&p(e),()=>{null!==m&&(f&&google.maps.event.removeListener(f),b&&google.maps.event.removeListener(b),C&&google.maps.event.removeListener(C),w&&google.maps.event.removeListener(w),x&&google.maps.event.removeListener(x),P&&google.maps.event.removeListener(P),c&&c(m),m.setMap(null))}}),[]),null}));class oe extends r.PureComponent{constructor(e){super(e),p(this,"registeredEvents",[]),p(this,"state",{drawingManager:null}),p(this,"setDrawingManagerCallback",(()=>{null!==this.state.drawingManager&&this.props.onLoad&&this.props.onLoad(this.state.drawingManager)})),d(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing)}componentDidMount(){var e=new google.maps.drawing.DrawingManager(te(te({},this.props.options),{},{map:this.context}));this.registeredEvents=y({updaterMap:se,eventMap:ne,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{drawingManager:e}}),this.setDrawingManagerCallback)}componentDidUpdate(e){null!==this.state.drawingManager&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:se,eventMap:ne,prevProps:e,nextProps:this.props,instance:this.state.drawingManager}))}componentWillUnmount(){null!==this.state.drawingManager&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),f(this.registeredEvents),this.state.drawingManager.setMap(null))}render(){return null}}function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function re(e){for(var t=1;t{null!==H&&H.setMap(N)}),[N]),(0,r.useEffect)((()=>{"undefined"!==typeof n&&null!==H&&H.setOptions(n)}),[H,n]),(0,r.useEffect)((()=>{"undefined"!==typeof l&&null!==H&&H.setDraggable(l)}),[H,l]),(0,r.useEffect)((()=>{t&&null!==H&&H.setPosition(t)}),[H,t]),(0,r.useEffect)((()=>{"undefined"!==typeof u&&null!==H&&H.setVisible(u)}),[H,u]),(0,r.useEffect)((()=>{null===H||void 0===H||H.setAnimation(p)}),[H,p]),(0,r.useEffect)((()=>{H&&void 0!==c&&H.setClickable(c)}),[H,c]),(0,r.useEffect)((()=>{H&&void 0!==d&&H.setCursor(d)}),[H,d]),(0,r.useEffect)((()=>{H&&void 0!==g&&H.setIcon(g)}),[H,g]),(0,r.useEffect)((()=>{H&&void 0!==m&&H.setLabel(m)}),[H,m]),(0,r.useEffect)((()=>{H&&void 0!==v&&H.setOpacity(v)}),[H,v]),(0,r.useEffect)((()=>{H&&void 0!==f&&H.setShape(f)}),[H,f]),(0,r.useEffect)((()=>{H&&void 0!==y&&H.setTitle(y)}),[H,y]),(0,r.useEffect)((()=>{H&&void 0!==b&&H.setZIndex(b)}),[H,b]),(0,r.useEffect)((()=>{H&&C&&(null!==G&&google.maps.event.removeListener(G),K(google.maps.event.addListener(H,"dblclick",C)))}),[C]),(0,r.useEffect)((()=>{H&&w&&(null!==Y&&google.maps.event.removeListener(Y),q(google.maps.event.addListener(H,"dragend",w)))}),[w]),(0,r.useEffect)((()=>{H&&M&&(null!==J&&google.maps.event.removeListener(J),X(google.maps.event.addListener(H,"dragstart",M)))}),[M]),(0,r.useEffect)((()=>{H&&O&&(null!==$&&google.maps.event.removeListener($),Q(google.maps.event.addListener(H,"mousedown",O)))}),[O]),(0,r.useEffect)((()=>{H&&x&&(null!==ee&&google.maps.event.removeListener(ee),te(google.maps.event.addListener(H,"mouseout",x)))}),[x]),(0,r.useEffect)((()=>{H&&k&&(null!==ne&&google.maps.event.removeListener(ne),se(google.maps.event.addListener(H,"mouseover",k)))}),[k]),(0,r.useEffect)((()=>{H&&P&&(null!==oe&&google.maps.event.removeListener(oe),ie(google.maps.event.addListener(H,"mouseup",P)))}),[P]),(0,r.useEffect)((()=>{H&&S&&(null!==ae&&google.maps.event.removeListener(ae),le(google.maps.event.addListener(H,"rightclick",S)))}),[S]),(0,r.useEffect)((()=>{H&&L&&(null!==pe&&google.maps.event.removeListener(pe),ce(google.maps.event.addListener(H,"click",L)))}),[L]),(0,r.useEffect)((()=>{H&&E&&(null!==de&&google.maps.event.removeListener(de),he(google.maps.event.addListener(H,"drag",E)))}),[E]),(0,r.useEffect)((()=>{H&&D&&(null!==ge&&google.maps.event.removeListener(ge),me(google.maps.event.addListener(H,"clickable_changed",D)))}),[D]),(0,r.useEffect)((()=>{H&&I&&(null!==ve&&google.maps.event.removeListener(ve),fe(google.maps.event.addListener(H,"cursor_changed",I)))}),[I]),(0,r.useEffect)((()=>{H&&j&&(null!==ye&&google.maps.event.removeListener(ye),be(google.maps.event.addListener(H,"animation_changed",j)))}),[j]),(0,r.useEffect)((()=>{H&&B&&(null!==Le&&google.maps.event.removeListener(Le),Ce(google.maps.event.addListener(H,"draggable_changed",B)))}),[B]),(0,r.useEffect)((()=>{H&&_&&(null!==Ee&&google.maps.event.removeListener(Ee),we(google.maps.event.addListener(H,"flat_changed",_)))}),[_]),(0,r.useEffect)((()=>{H&&R&&(null!==Me&&google.maps.event.removeListener(Me),xe(google.maps.event.addListener(H,"icon_changed",R)))}),[R]),(0,r.useEffect)((()=>{H&&T&&(null!==ke&&google.maps.event.removeListener(ke),Pe(google.maps.event.addListener(H,"position_changed",T)))}),[T]),(0,r.useEffect)((()=>{H&&U&&(null!==Oe&&google.maps.event.removeListener(Oe),Se(google.maps.event.addListener(H,"shape_changed",U)))}),[U]),(0,r.useEffect)((()=>{H&&z&&(null!==De&&google.maps.event.removeListener(De),Ie(google.maps.event.addListener(H,"title_changed",z)))}),[z]),(0,r.useEffect)((()=>{H&&A&&(null!==je&&google.maps.event.removeListener(je),Be(google.maps.event.addListener(H,"visible_changed",A)))}),[A]),(0,r.useEffect)((()=>{H&&Z&&(null!==_e&&google.maps.event.removeListener(_e),Re(google.maps.event.addListener(H,"zindex_changed",Z)))}),[Z]),(0,r.useEffect)((()=>{var e=re(re(re({},n||ue),s?ue:{map:N}),{},{position:t}),i=new google.maps.Marker(e);return s?s.addMarker(i,!!o):i.setMap(N),t&&i.setPosition(t),"undefined"!==typeof u&&i.setVisible(u),"undefined"!==typeof l&&i.setDraggable(l),"undefined"!==typeof c&&i.setClickable(c),"string"===typeof d&&i.setCursor(d),g&&i.setIcon(g),"undefined"!==typeof m&&i.setLabel(m),"undefined"!==typeof v&&i.setOpacity(v),f&&i.setShape(f),"string"===typeof y&&i.setTitle(y),"number"===typeof b&&i.setZIndex(b),C&&K(google.maps.event.addListener(i,"dblclick",C)),w&&q(google.maps.event.addListener(i,"dragend",w)),M&&X(google.maps.event.addListener(i,"dragstart",M)),O&&Q(google.maps.event.addListener(i,"mousedown",O)),x&&te(google.maps.event.addListener(i,"mouseout",x)),k&&se(google.maps.event.addListener(i,"mouseover",k)),P&&ie(google.maps.event.addListener(i,"mouseup",P)),S&&le(google.maps.event.addListener(i,"rightclick",S)),L&&ce(google.maps.event.addListener(i,"click",L)),E&&he(google.maps.event.addListener(i,"drag",E)),D&&me(google.maps.event.addListener(i,"clickable_changed",D)),I&&fe(google.maps.event.addListener(i,"cursor_changed",I)),j&&be(google.maps.event.addListener(i,"animation_changed",j)),B&&Ce(google.maps.event.addListener(i,"draggable_changed",B)),_&&we(google.maps.event.addListener(i,"flat_changed",_)),R&&xe(google.maps.event.addListener(i,"icon_changed",R)),T&&Pe(google.maps.event.addListener(i,"position_changed",T)),U&&Se(google.maps.event.addListener(i,"shape_changed",U)),z&&Ie(google.maps.event.addListener(i,"title_changed",z)),A&&Be(google.maps.event.addListener(i,"visible_changed",A)),Z&&Re(google.maps.event.addListener(i,"zindex_changed",Z)),F(i),V&&V(i),()=>{null!==G&&google.maps.event.removeListener(G),null!==Y&&google.maps.event.removeListener(Y),null!==J&&google.maps.event.removeListener(J),null!==$&&google.maps.event.removeListener($),null!==ee&&google.maps.event.removeListener(ee),null!==ne&&google.maps.event.removeListener(ne),null!==oe&&google.maps.event.removeListener(oe),null!==ae&&google.maps.event.removeListener(ae),null!==pe&&google.maps.event.removeListener(pe),null!==ge&&google.maps.event.removeListener(ge),null!==ve&&google.maps.event.removeListener(ve),null!==ye&&google.maps.event.removeListener(ye),null!==Le&&google.maps.event.removeListener(Le),null!==Ee&&google.maps.event.removeListener(Ee),null!==Me&&google.maps.event.removeListener(Me),null!==ke&&google.maps.event.removeListener(ke),null!==De&&google.maps.event.removeListener(De),null!==je&&google.maps.event.removeListener(je),null!==_e&&google.maps.event.removeListener(_e),W&&W(i),s?s.removeMarker(i,!!o):i&&i.setMap(null)}}),[]);var Te=(0,r.useMemo)((()=>a?r.Children.map(a,(e=>{if(!(0,r.isValidElement)(e))return e;var t=e;return(0,r.cloneElement)(t,{anchor:H})})):null),[a,H]);return(0,i.jsx)(i.Fragment,{children:Te})||null}));class pe extends r.PureComponent{constructor(){super(...arguments),p(this,"registeredEvents",[])}componentDidMount(){var e=this;return w((function*(){var t=re(re(re({},e.props.options||ue),e.props.clusterer?ue:{map:e.context}),{},{position:e.props.position});e.marker=new google.maps.Marker(t),e.props.clusterer?e.props.clusterer.addMarker(e.marker,!!e.props.noClustererRedraw):e.marker.setMap(e.context),e.registeredEvents=y({updaterMap:le,eventMap:ae,prevProps:{},nextProps:e.props,instance:e.marker}),e.props.onLoad&&e.props.onLoad(e.marker)}))()}componentDidUpdate(e){this.marker&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:le,eventMap:ae,prevProps:e,nextProps:this.props,instance:this.marker}))}componentWillUnmount(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),f(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))}render(){return(this.props.children?r.Children.map(this.props.children,(e=>{if(!(0,r.isValidElement)(e))return e;var t=e;return(0,r.cloneElement)(t,{anchor:this.marker})})):null)||null}}p(pe,"contextType",h);var ce=function(){function e(t,n){t.getClusterer().extend(e,google.maps.OverlayView),this.cluster=t,this.clusterClassName=this.cluster.getClusterer().getClusterClass(),this.className=this.clusterClassName,this.styles=n,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.cMouseDownInCluster=null,this.cDraggingMapByCluster=null,this.timeOut=null,this.setMap(t.getMap()),this.onBoundsChanged=this.onBoundsChanged.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onClick=this.onClick.bind(this),this.onMouseOver=this.onMouseOver.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.onAdd=this.onAdd.bind(this),this.onRemove=this.onRemove.bind(this),this.draw=this.draw.bind(this),this.hide=this.hide.bind(this),this.show=this.show.bind(this),this.useStyle=this.useStyle.bind(this),this.setCenter=this.setCenter.bind(this),this.getPosFromLatLng=this.getPosFromLatLng.bind(this)}return e.prototype.onBoundsChanged=function(){this.cDraggingMapByCluster=this.cMouseDownInCluster},e.prototype.onMouseDown=function(){this.cMouseDownInCluster=!0,this.cDraggingMapByCluster=!1},e.prototype.onClick=function(e){if(this.cMouseDownInCluster=!1,!this.cDraggingMapByCluster){var t=this.cluster.getClusterer();if(google.maps.event.trigger(t,"click",this.cluster),google.maps.event.trigger(t,"clusterclick",this.cluster),t.getZoomOnClick()){var n=t.getMaxZoom(),s=this.cluster.getBounds(),o=t.getMap();null!==o&&"fitBounds"in o&&o.fitBounds(s),this.timeOut=window.setTimeout((function(){var e=t.getMap();if(null!==e){"fitBounds"in e&&e.fitBounds(s);var o=e.getZoom()||0;null!==n&&o>n&&e.setZoom(n+1)}}),100)}e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}},e.prototype.onMouseOver=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseover",this.cluster)},e.prototype.onMouseOut=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseout",this.cluster)},e.prototype.onAdd=function(){var e;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),null===(e=this.getPanes())||void 0===e||e.overlayMouseTarget.appendChild(this.div);var t=this.getMap();null!==t&&(this.boundsChangedListener=google.maps.event.addListener(t,"bounds_changed",this.onBoundsChanged),this.div.addEventListener("mousedown",this.onMouseDown),this.div.addEventListener("click",this.onClick),this.div.addEventListener("mouseover",this.onMouseOver),this.div.addEventListener("mouseout",this.onMouseOut))},e.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),null!==this.boundsChangedListener&&google.maps.event.removeListener(this.boundsChangedListener),this.div.removeEventListener("mousedown",this.onMouseDown),this.div.removeEventListener("click",this.onClick),this.div.removeEventListener("mouseover",this.onMouseOver),this.div.removeEventListener("mouseout",this.onMouseOut),this.div.parentNode.removeChild(this.div),null!==this.timeOut&&(window.clearTimeout(this.timeOut),this.timeOut=null),this.div=null)},e.prototype.draw=function(){if(this.visible&&null!==this.div&&this.center){var e=this.getPosFromLatLng(this.center);this.div.style.top=null!==e?"".concat(e.y,"px"):"0",this.div.style.left=null!==e?"".concat(e.x,"px"):"0"}},e.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},e.prototype.show=function(){var e,t,n,s,o,i;if(this.div&&this.center){var r=null===this.sums||"undefined"===typeof this.sums.title||""===this.sums.title?this.cluster.getClusterer().getTitle():this.sums.title,a=this.backgroundPosition.split(" "),l=parseInt((null===(e=a[0])||void 0===e?void 0:e.replace(/^\s+|\s+$/g,""))||"0",10),u=parseInt((null===(t=a[1])||void 0===t?void 0:t.replace(/^\s+|\s+$/g,""))||"0",10),p=this.getPosFromLatLng(this.center);this.div.className=this.className,this.div.setAttribute("style","cursor: pointer; position: absolute; top: ".concat(null!==p?"".concat(p.y,"px"):"0","; left: ").concat(null!==p?"".concat(p.x,"px"):"0","; width: ").concat(this.width,"px; height: ").concat(this.height,"px; "));var c=document.createElement("img");c.alt=r,c.src=this.url,c.width=this.width,c.height=this.height,c.setAttribute("style","position: absolute; top: ".concat(u,"px; left: ").concat(l,"px")),this.cluster.getClusterer().enableRetinaIcons||(c.style.clip="rect(-".concat(u,"px, -").concat(l+this.width,"px, -").concat(u+this.height,", -").concat(l,")"));var d=document.createElement("div");d.setAttribute("style","position: absolute; top: ".concat(this.anchorText[0],"px; left: ").concat(this.anchorText[1],"px; color: ").concat(this.textColor,"; font-size: ").concat(this.textSize,"px; font-family: ").concat(this.fontFamily,"; font-weight: ").concat(this.fontWeight,"; fontStyle: ").concat(this.fontStyle,"; text-decoration: ").concat(this.textDecoration,"; text-align: center; width: ").concat(this.width,"px; line-height: ").concat(this.height,"px")),(null===(n=this.sums)||void 0===n?void 0:n.text)&&(d.innerText="".concat(null===(s=this.sums)||void 0===s?void 0:s.text)),(null===(o=this.sums)||void 0===o?void 0:o.html)&&(d.innerHTML="".concat(null===(i=this.sums)||void 0===i?void 0:i.html)),this.div.innerHTML="",this.div.appendChild(c),this.div.appendChild(d),this.div.title=r,this.div.style.display=""}this.visible=!0},e.prototype.useStyle=function(e){this.sums=e;var t=this.cluster.getClusterer().getStyles(),n=t[Math.min(t.length-1,Math.max(0,e.index-1))];n&&(this.url=n.url,this.height=n.height,this.width=n.width,n.className&&(this.className="".concat(this.clusterClassName," ").concat(n.className)),this.anchorText=n.anchorText||[0,0],this.anchorIcon=n.anchorIcon||[this.height/2,this.width/2],this.textColor=n.textColor||"black",this.textSize=n.textSize||11,this.textDecoration=n.textDecoration||"none",this.fontWeight=n.fontWeight||"bold",this.fontStyle=n.fontStyle||"normal",this.fontFamily=n.fontFamily||"Arial,sans-serif",this.backgroundPosition=n.backgroundPosition||"0 0")},e.prototype.setCenter=function(e){this.center=e},e.prototype.getPosFromLatLng=function(e){var t=this.getProjection().fromLatLngToDivPixel(e);return null!==t&&(t.x-=this.anchorIcon[1],t.y-=this.anchorIcon[0]),t},e}(),de=function(){function e(e){this.markerClusterer=e,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new ce(this,this.markerClusterer.getStyles()),this.getSize=this.getSize.bind(this),this.getMarkers=this.getMarkers.bind(this),this.getCenter=this.getCenter.bind(this),this.getMap=this.getMap.bind(this),this.getClusterer=this.getClusterer.bind(this),this.getBounds=this.getBounds.bind(this),this.remove=this.remove.bind(this),this.addMarker=this.addMarker.bind(this),this.isMarkerInClusterBounds=this.isMarkerInClusterBounds.bind(this),this.calculateBounds=this.calculateBounds.bind(this),this.updateIcon=this.updateIcon.bind(this),this.isMarkerAlreadyAdded=this.isMarkerAlreadyAdded.bind(this)}return e.prototype.getSize=function(){return this.markers.length},e.prototype.getMarkers=function(){return this.markers},e.prototype.getCenter=function(){return this.center},e.prototype.getMap=function(){return this.map},e.prototype.getClusterer=function(){return this.markerClusterer},e.prototype.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center,this.center),t=0,n=this.getMarkers();ti)e.getMap()!==this.map&&e.setMap(this.map);else if(on||t0))for(var e=0;e3?new google.maps.LatLngBounds(null===s||void 0===s?void 0:s.getSouthWest(),null===s||void 0===s?void 0:s.getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),i=this.getExtendedBounds(o),r=Math.min(e+this.batchSize,this.markers.length),a=e;a{O&&x&&(null!==U&&google.maps.event.removeListener(U),z(google.maps.event.addListener(O,fe.onMouseOut,x)))}),[x]),(0,r.useEffect)((()=>{O&&M&&(null!==A&&google.maps.event.removeListener(A),Z(google.maps.event.addListener(O,fe.onMouseOver,M)))}),[M]),(0,r.useEffect)((()=>{O&&C&&(null!==I&&google.maps.event.removeListener(I),j(google.maps.event.addListener(O,fe.onClick,C)))}),[C]),(0,r.useEffect)((()=>{O&&E&&(null!==B&&google.maps.event.removeListener(B),_(google.maps.event.addListener(O,fe.onClusteringBegin,E)))}),[E]),(0,r.useEffect)((()=>{O&&w&&(null!==R&&google.maps.event.removeListener(R),_(google.maps.event.addListener(O,fe.onClusteringEnd,w)))}),[w]),(0,r.useEffect)((()=>{"undefined"!==typeof s&&null!==O&&ye.averageCenter(O,s)}),[O,s]),(0,r.useEffect)((()=>{"undefined"!==typeof o&&null!==O&&ye.batchSizeIE(O,o)}),[O,o]),(0,r.useEffect)((()=>{"undefined"!==typeof i&&null!==O&&ye.calculator(O,i)}),[O,i]),(0,r.useEffect)((()=>{"undefined"!==typeof a&&null!==O&&ye.clusterClass(O,a)}),[O,a]),(0,r.useEffect)((()=>{"undefined"!==typeof l&&null!==O&&ye.enableRetinaIcons(O,l)}),[O,l]),(0,r.useEffect)((()=>{"undefined"!==typeof u&&null!==O&&ye.gridSize(O,u)}),[O,u]),(0,r.useEffect)((()=>{"undefined"!==typeof c&&null!==O&&ye.ignoreHidden(O,c)}),[O,c]),(0,r.useEffect)((()=>{"undefined"!==typeof d&&null!==O&&ye.imageExtension(O,d)}),[O,d]),(0,r.useEffect)((()=>{"undefined"!==typeof g&&null!==O&&ye.imagePath(O,g)}),[O,g]),(0,r.useEffect)((()=>{"undefined"!==typeof m&&null!==O&&ye.imageSizes(O,m)}),[O,m]),(0,r.useEffect)((()=>{"undefined"!==typeof v&&null!==O&&ye.maxZoom(O,v)}),[O,v]),(0,r.useEffect)((()=>{"undefined"!==typeof f&&null!==O&&ye.minimumClusterSize(O,f)}),[O,f]),(0,r.useEffect)((()=>{"undefined"!==typeof y&&null!==O&&ye.styles(O,y)}),[O,y]),(0,r.useEffect)((()=>{"undefined"!==typeof b&&null!==O&&ye.title(O,b)}),[O,b]),(0,r.useEffect)((()=>{"undefined"!==typeof L&&null!==O&&ye.zoomOnClick(O,L)}),[O,L]),(0,r.useEffect)((()=>{if(D){var e=function(e){for(var t=1;t{null!==U&&google.maps.event.removeListener(U),null!==A&&google.maps.event.removeListener(A),null!==I&&google.maps.event.removeListener(I),null!==B&&google.maps.event.removeListener(B),null!==R&&google.maps.event.removeListener(R),P&&P(t)}}}),[]),null!==O&&t(O)||null}));class Le extends r.PureComponent{constructor(){super(...arguments),p(this,"registeredEvents",[]),p(this,"state",{markerClusterer:null}),p(this,"setClustererCallback",(()=>{null!==this.state.markerClusterer&&this.props.onLoad&&this.props.onLoad(this.state.markerClusterer)}))}componentDidMount(){if(this.context){var e=new me(this.context,[],this.props.options);this.registeredEvents=y({updaterMap:ye,eventMap:fe,prevProps:{},nextProps:this.props,instance:e}),this.setState((()=>({markerClusterer:e})),this.setClustererCallback)}}componentDidUpdate(e){this.state.markerClusterer&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:ye,eventMap:fe,prevProps:e,nextProps:this.props,instance:this.state.markerClusterer}))}componentWillUnmount(){null!==this.state.markerClusterer&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),f(this.registeredEvents),this.state.markerClusterer.setMap(null))}render(){return null!==this.state.markerClusterer?this.props.children(this.state.markerClusterer):null}}function Ce(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}p(Le,"contextType",h);var Ee=function(){function e(t){void 0===t&&(t={}),this.getCloseClickHandler=this.getCloseClickHandler.bind(this),this.closeClickHandler=this.closeClickHandler.bind(this),this.createInfoBoxDiv=this.createInfoBoxDiv.bind(this),this.addClickHandler=this.addClickHandler.bind(this),this.getCloseBoxImg=this.getCloseBoxImg.bind(this),this.getBoxWidths=this.getBoxWidths.bind(this),this.setBoxStyle=this.setBoxStyle.bind(this),this.setPosition=this.setPosition.bind(this),this.getPosition=this.getPosition.bind(this),this.setOptions=this.setOptions.bind(this),this.setContent=this.setContent.bind(this),this.setVisible=this.setVisible.bind(this),this.getContent=this.getContent.bind(this),this.getVisible=this.getVisible.bind(this),this.setZIndex=this.setZIndex.bind(this),this.getZIndex=this.getZIndex.bind(this),this.onRemove=this.onRemove.bind(this),this.panBox=this.panBox.bind(this),this.extend=this.extend.bind(this),this.close=this.close.bind(this),this.draw=this.draw.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.open=this.open.bind(this),this.extend(e,google.maps.OverlayView),this.content=t.content||"",this.disableAutoPan=t.disableAutoPan||!1,this.maxWidth=t.maxWidth||0,this.pixelOffset=t.pixelOffset||new google.maps.Size(0,0),this.position=t.position||new google.maps.LatLng(0,0),this.zIndex=t.zIndex||null,this.boxClass=t.boxClass||"infoBox",this.boxStyle=t.boxStyle||{},this.closeBoxMargin=t.closeBoxMargin||"2px",this.closeBoxURL=t.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",""===t.closeBoxURL&&(this.closeBoxURL=""),this.infoBoxClearance=t.infoBoxClearance||new google.maps.Size(1,1),"undefined"===typeof t.visible&&("undefined"===typeof t.isHidden?t.visible=!0:t.visible=!t.isHidden),this.isHidden=!t.visible,this.alignBottom=t.alignBottom||!1,this.pane=t.pane||"floatPane",this.enableEventPropagation=t.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return e.prototype.createInfoBoxDiv=function(){var e=this;if(!this.div){this.div=document.createElement("div"),this.setBoxStyle(),"string"===typeof this.content?this.div.innerHTML=this.getCloseBoxImg()+this.content:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(this.content));var t=this.getPanes();if(null!==t&&t[this.pane].appendChild(this.div),this.addClickHandler(),this.div.style.width)this.fixedWidthSet=!0;else if(0!==this.maxWidth&&this.div.offsetWidth>this.maxWidth)this.div.style.width=this.maxWidth+"px",this.fixedWidthSet=!0;else{var n=this.getBoxWidths();this.div.style.width=this.div.offsetWidth-n.left-n.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var s=0,o=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"];sr&&(n=g.x+p+l+d-r),this.alignBottom?g.y<-u+h+c?s=g.y+u-h-c:g.y+u+h>a&&(s=g.y+u+h-a):g.y<-u+h?s=g.y+u-h:g.y+c+u+h>a&&(s=g.y+c+u+h-a)),0===n&&0===s||t.panBy(n,s)}}},e.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var e=this.boxStyle;for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.div.style[t]=e[t]);if(this.div.style.webkitTransform="translateZ(0)","undefined"!==typeof this.div.style.opacity&&""!==this.div.style.opacity){var n=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*n+')"',this.div.style.filter="alpha(opacity="+100*n+")"}this.div.style.position="absolute",this.div.style.visibility="hidden",null!==this.zIndex&&(this.div.style.zIndex=this.zIndex+""),this.div.style.overflow||(this.div.style.overflow="auto")}},e.prototype.getBoxWidths=function(){var e={top:0,bottom:0,left:0,right:0};if(!this.div)return e;if(document.defaultView){var t=this.div.ownerDocument,n=t&&t.defaultView?t.defaultView.getComputedStyle(this.div,""):null;n&&(e.top=parseInt(n.borderTopWidth||"",10)||0,e.bottom=parseInt(n.borderBottomWidth||"",10)||0,e.left=parseInt(n.borderLeftWidth||"",10)||0,e.right=parseInt(n.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var s=this.div.currentStyle;s&&(e.top=parseInt(s.borderTopWidth||"",10)||0,e.bottom=parseInt(s.borderBottomWidth||"",10)||0,e.left=parseInt(s.borderLeftWidth||"",10)||0,e.right=parseInt(s.borderRightWidth||"",10)||0)}return e},e.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},e.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var e=this.getProjection().fromLatLngToDivPixel(this.position);null!==e&&(this.div.style.left=e.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(e.y+this.pixelOffset.height)+"px":this.div.style.top=e.y+this.pixelOffset.height+"px"),this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},e.prototype.setOptions=function(e){void 0===e&&(e={}),"undefined"!==typeof e.boxClass&&(this.boxClass=e.boxClass,this.setBoxStyle()),"undefined"!==typeof e.boxStyle&&(this.boxStyle=e.boxStyle,this.setBoxStyle()),"undefined"!==typeof e.content&&this.setContent(e.content),"undefined"!==typeof e.disableAutoPan&&(this.disableAutoPan=e.disableAutoPan),"undefined"!==typeof e.maxWidth&&(this.maxWidth=e.maxWidth),"undefined"!==typeof e.pixelOffset&&(this.pixelOffset=e.pixelOffset),"undefined"!==typeof e.alignBottom&&(this.alignBottom=e.alignBottom),"undefined"!==typeof e.position&&this.setPosition(e.position),"undefined"!==typeof e.zIndex&&this.setZIndex(e.zIndex),"undefined"!==typeof e.closeBoxMargin&&(this.closeBoxMargin=e.closeBoxMargin),"undefined"!==typeof e.closeBoxURL&&(this.closeBoxURL=e.closeBoxURL),"undefined"!==typeof e.infoBoxClearance&&(this.infoBoxClearance=e.infoBoxClearance),"undefined"!==typeof e.isHidden&&(this.isHidden=e.isHidden),"undefined"!==typeof e.visible&&(this.isHidden=!e.visible),"undefined"!==typeof e.enableEventPropagation&&(this.enableEventPropagation=e.enableEventPropagation),this.div&&this.draw()},e.prototype.setContent=function(e){this.content=e,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),"string"===typeof e?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px","string"===typeof e?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},e.prototype.setPosition=function(e){this.position=e,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},e.prototype.setVisible=function(e){this.isHidden=!e,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},e.prototype.setZIndex=function(e){this.zIndex=e,this.div&&(this.div.style.zIndex=e+""),google.maps.event.trigger(this,"zindex_changed")},e.prototype.getContent=function(){return this.content},e.prototype.getPosition=function(){return this.position},e.prototype.getZIndex=function(){return this.zIndex},e.prototype.getVisible=function(){var e=this.getMap();return"undefined"!==typeof e&&null!==e&&!this.isHidden},e.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},e.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},e.prototype.open=function(e,t){var n=this;t&&(this.position=t.getPosition(),this.moveListener=google.maps.event.addListener(t,"position_changed",(function(){var e=t.getPosition();n.setPosition(e)})),this.mapListener=google.maps.event.addListener(t,"map_changed",(function(){n.setMap(t.map)}))),this.setMap(e),this.div&&this.panBox()},e.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var e=0,t=this.eventListeners;e{f&&null!==y&&(y.close(),n?y.open(f,n):y.getPosition()&&y.open(f))}),[f,y,n]),(0,r.useEffect)((()=>{s&&null!==y&&y.setOptions(s)}),[y,s]),(0,r.useEffect)((()=>{if(o&&null!==y){var e=o instanceof google.maps.LatLng?o:new google.maps.LatLng(o.lat,o.lng);y.setPosition(e)}}),[o]),(0,r.useEffect)((()=>{"number"===typeof i&&null!==y&&y.setZIndex(i)}),[i]),(0,r.useEffect)((()=>{y&&l&&(null!==L&&google.maps.event.removeListener(L),C(google.maps.event.addListener(y,"closeclick",l)))}),[l]),(0,r.useEffect)((()=>{y&&u&&(null!==E&&google.maps.event.removeListener(E),w(google.maps.event.addListener(y,"domready",u)))}),[u]),(0,r.useEffect)((()=>{y&&p&&(null!==M&&google.maps.event.removeListener(M),x(google.maps.event.addListener(y,"content_changed",p)))}),[p]),(0,r.useEffect)((()=>{y&&c&&(null!==k&&google.maps.event.removeListener(k),P(google.maps.event.addListener(y,"position_changed",c)))}),[c]),(0,r.useEffect)((()=>{y&&g&&(null!==O&&google.maps.event.removeListener(O),S(google.maps.event.addListener(y,"zindex_changed",g)))}),[g]),(0,r.useEffect)((()=>{if(f){var e,t=s||Se,{position:o}=t,i=_(t,we);!o||o instanceof google.maps.LatLng||(e=new google.maps.LatLng(o.lat,o.lng));var r=new Ee(ke(ke({},i),e?{position:e}:{}));D.current=document.createElement("div"),b(r),l&&C(google.maps.event.addListener(r,"closeclick",l)),u&&w(google.maps.event.addListener(r,"domready",u)),p&&x(google.maps.event.addListener(r,"content_changed",p)),c&&P(google.maps.event.addListener(r,"position_changed",c)),g&&S(google.maps.event.addListener(r,"zindex_changed",g)),r.setContent(D.current),n?r.open(f,n):r.getPosition()?r.open(f):d(!1,"You must provide either an anchor or a position prop for ."),m&&m(r)}return()=>{null!==y&&(L&&google.maps.event.removeListener(L),M&&google.maps.event.removeListener(M),E&&google.maps.event.removeListener(E),k&&google.maps.event.removeListener(k),O&&google.maps.event.removeListener(O),v&&v(y),y.close())}}),[]),D.current?(0,a.createPortal)(r.Children.only(t),D.current):null}));class je extends r.PureComponent{constructor(){super(...arguments),p(this,"registeredEvents",[]),p(this,"containerElement",null),p(this,"state",{infoBox:null}),p(this,"open",((e,t)=>{t?null!==this.context&&e.open(this.context,t):e.getPosition()?null!==this.context&&e.open(this.context):d(!1,"You must provide either an anchor or a position prop for .")})),p(this,"setInfoBoxCallback",(()=>{null!==this.state.infoBox&&null!==this.containerElement&&(this.state.infoBox.setContent(this.containerElement),this.open(this.state.infoBox,this.props.anchor),this.props.onLoad&&this.props.onLoad(this.state.infoBox))}))}componentDidMount(){var e,t=this.props.options||{},{position:n}=t,s=_(t,Me);!n||n instanceof google.maps.LatLng||(e=new google.maps.LatLng(n.lat,n.lng));var o=new Ee(ke(ke({},s),e?{position:e}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=y({updaterMap:Oe,eventMap:Pe,prevProps:{},nextProps:this.props,instance:o}),this.setState({infoBox:o},this.setInfoBoxCallback)}componentDidUpdate(e){var{infoBox:t}=this.state;null!==t&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:Oe,eventMap:Pe,prevProps:e,nextProps:this.props,instance:t}))}componentWillUnmount(){var{onUnmount:e}=this.props,{infoBox:t}=this.state;null!==t&&(e&&e(t),f(this.registeredEvents),t.close())}render(){return this.containerElement?(0,a.createPortal)(r.Children.only(this.props.children),this.containerElement):null}}p(je,"contextType",h);var Be=(Ie||(Ie=1,De=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var s,o,i;if(Array.isArray(t)){if((s=t.length)!=n.length)return!1;for(o=s;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((s=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=s;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=s;0!==o--;){var r=i[o];if(!e(t[r],n[r]))return!1}return!0}return t!==t&&n!==n}),De),_e=c(Be),Re=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class Te{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");var[t,n]=new Uint8Array(e,0,2);if(219!==t)throw new Error("Data does not appear to be in a KDBush format.");var s=n>>4;if(1!==s)throw new Error("Got v".concat(s," data when expected v").concat(1,"."));var o=Re[15&n];if(!o)throw new Error("Unrecognized array type.");var[i]=new Uint16Array(e,2,1),[r]=new Uint32Array(e,4,1);return new Te(r,i,o,e)}constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Float64Array,s=arguments.length>3?arguments[3]:void 0;if(isNaN(e)||e<0)throw new Error("Unpexpected numItems value: ".concat(e,"."));this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=n,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;var o=Re.indexOf(this.ArrayType),i=2*e*this.ArrayType.BYTES_PER_ELEMENT,r=e*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-r%8)%8;if(o<0)throw new Error("Unexpected typed array class: ".concat(n,"."));s&&s instanceof ArrayBuffer?(this.data=s,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+r+a,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+i+r+a),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+r+a,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+o]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}add(e,t){var n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=e,this.coords[this._pos++]=t,n}finish(){var e=this._pos>>1;if(e!==this.numItems)throw new Error("Added ".concat(e," items when expected ").concat(this.numItems,"."));return Ue(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,n,s){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");for(var{ids:o,coords:i,nodeSize:r}=this,a=[0,o.length-1,0],l=[];a.length;){var u=a.pop()||0,p=a.pop()||0,c=a.pop()||0;if(p-c<=r)for(var d=c;d<=p;d++){var h=i[2*d],g=i[2*d+1];h>=e&&h<=n&&g>=t&&g<=s&&l.push(o[d])}else{var m=c+p>>1,v=i[2*m],f=i[2*m+1];v>=e&&v<=n&&f>=t&&f<=s&&l.push(o[m]),(0===u?e<=v:t<=f)&&(a.push(c),a.push(m-1),a.push(1-u)),(0===u?n>=v:s>=f)&&(a.push(m+1),a.push(p),a.push(1-u))}}return l}within(e,t,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");for(var{ids:s,coords:o,nodeSize:i}=this,r=[0,s.length-1,0],a=[],l=n*n;r.length;){var u=r.pop()||0,p=r.pop()||0,c=r.pop()||0;if(p-c<=i)for(var d=c;d<=p;d++)Ve(o[2*d],o[2*d+1],e,t)<=l&&a.push(s[d]);else{var h=c+p>>1,g=o[2*h],m=o[2*h+1];Ve(g,m,e,t)<=l&&a.push(s[h]),(0===u?e-n<=g:t-n<=m)&&(r.push(c),r.push(h-1),r.push(1-u)),(0===u?e+n>=g:t+n>=m)&&(r.push(h+1),r.push(p),r.push(1-u))}}return a}}function Ue(e,t,n,s,o,i){if(!(o-s<=n)){var r=s+o>>1;ze(e,t,r,s,o,i),Ue(e,t,n,s,r-1,1-i),Ue(e,t,n,r+1,o,1-i)}}function ze(e,t,n,s,o,i){for(;o>s;){if(o-s>600){var r=o-s+1,a=n-s+1,l=Math.log(r),u=.5*Math.exp(2*l/3),p=.5*Math.sqrt(l*u*(r-u)/r)*(a-r/2<0?-1:1);ze(e,t,n,Math.max(s,Math.floor(n-a*u/r+p)),Math.min(o,Math.floor(n+(r-a)*u/r+p)),i)}var c=t[2*n+i],d=s,h=o;for(Ae(e,t,s,n),t[2*o+i]>c&&Ae(e,t,s,o);dc;)h--}t[2*s+i]===c?Ae(e,t,s,h):Ae(e,t,++h,o),h<=n&&(s=h+1),n<=h&&(o=h-1)}}function Ae(e,t,n,s){Ze(e,n,s),Ze(t,2*n,2*s),Ze(t,2*n+1,2*s+1)}function Ze(e,t,n){var s=e[t];e[t]=e[n],e[n]=s}function Ve(e,t,n,s){var o=e-n,i=t-s;return o*o+i*i}var We,Ne={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},He=Math.fround||(We=new Float32Array(1),e=>(We[0]=+e,We[0]));class Fe{constructor(e){this.options=Object.assign(Object.create(Ne),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){var{log:t,minZoom:n,maxZoom:s}=this.options;t&&console.time("total time");var o="prepare ".concat(e.length," points");t&&console.time(o),this.points=e;for(var i=[],r=0;r=n;h--){var g=+Date.now();d=this.trees[h]=this._createTree(this._cluster(d,h)),t&&console.log("z%d: %d clusters in %dms",h,d.numItems,+Date.now()-g)}return t&&console.timeEnd("total time"),this}getClusters(e,t){var n=((e[0]+180)%360+360)%360-180,s=Math.max(-90,Math.min(90,e[1])),o=180===e[2]?180:((e[2]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,o=180;else if(n>o){var r=this.getClusters([n,s,180,i],t),a=this.getClusters([-180,s,o,i],t);return r.concat(a)}var l=this.trees[this._limitZoom(t)],u=l.range(Ye(n),qe(i),Ye(o),qe(s)),p=l.data,c=[];for(var d of u){var h=this.stride*d;c.push(p[h+5]>1?Ge(p,h,this.clusterProps):this.points[p[h+3]])}return c}getChildren(e){var t=this._getOriginId(e),n=this._getOriginZoom(e),s="No cluster with the specified id.",o=this.trees[n];if(!o)throw new Error(s);var i=o.data;if(t*this.stride>=i.length)throw new Error(s);var r=this.options.radius/(this.options.extent*Math.pow(2,n-1)),a=i[t*this.stride],l=i[t*this.stride+1],u=o.within(a,l,r),p=[];for(var c of u){var d=c*this.stride;i[d+4]===e&&p.push(i[d+5]>1?Ge(i,d,this.clusterProps):this.points[i[d+3]])}if(0===p.length)throw new Error(s);return p}getLeaves(e,t,n){t=t||10,n=n||0;var s=[];return this._appendLeaves(s,e,t,n,0),s}getTile(e,t,n){var s=this.trees[this._limitZoom(e)],o=Math.pow(2,e),{extent:i,radius:r}=this.options,a=r/i,l=(n-a)/o,u=(n+1+a)/o,p={features:[]};return this._addTileFeatures(s.range((t-a)/o,l,(t+1+a)/o,u),s.data,t,n,o,p),0===t&&this._addTileFeatures(s.range(1-a/o,l,1,u),s.data,o,n,o,p),t===o-1&&this._addTileFeatures(s.range(0,l,a/o,u),s.data,-1,n,o,p),p.features.length?p:null}getClusterExpansionZoom(e){for(var t=this._getOriginZoom(e)-1;t<=this.options.maxZoom;){var n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t}_appendLeaves(e,t,n,s,o){var i=this.getChildren(t);for(var r of i){var a=r.properties;if(a&&a.cluster?o+a.point_count<=s?o+=a.point_count:o=this._appendLeaves(e,a.cluster_id,n,s,o):o1,u=void 0,p=void 0,c=void 0;if(l)u=Ke(t,a,this.clusterProps),p=t[a],c=t[a+1];else{var d=this.points[t[a+3]];u=d.properties;var[h,g]=d.geometry.coordinates;p=Ye(h),c=qe(g)}var m={type:1,geometry:[[Math.round(this.options.extent*(p*o-n)),Math.round(this.options.extent*(c*o-s))]],tags:u},v=void 0;void 0!==(v=l||this.options.generateId?t[a+3]:this.points[t[a+3]].id)&&(m.id=v),i.features.push(m)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){for(var{radius:n,extent:s,reduce:o,minPoints:i}=this.options,r=n/(s*Math.pow(2,t)),a=e.data,l=[],u=this.stride,p=0;pt&&(m+=a[f+5])}if(m>g&&m>=i){var y=c*g,b=d*g,L=void 0,C=-1,E=(p/u<<5)+(t+1)+this.points.length;for(var w of h){var M=w*u;if(!(a[M+2]<=t)){a[M+2]=t;var x=a[M+5];y+=a[M]*x,b+=a[M+1]*x,a[M+4]=E,o&&(L||(L=this._map(a,p,!0),C=this.clusterProps.length,this.clusterProps.push(L)),o(L,this._map(a,M)))}}a[p+4]=E,l.push(y/m,b/m,1/0,E,-1,m),o&&l.push(C)}else{for(var k=0;k1)for(var P of h){var O=P*u;if(!(a[O+2]<=t)){a[O+2]=t;for(var S=0;S>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,n){if(e[t+5]>1){var s=this.clusterProps[e[t+6]];return n?Object.assign({},s):s}var o=this.points[e[t+3]].properties,i=this.options.map(o);return n&&i===o?Object.assign({},i):i}}function Ge(e,t,n){return{type:"Feature",id:e[t+3],properties:Ke(e,t,n),geometry:{type:"Point",coordinates:[(s=e[t],360*(s-.5)),Je(e[t+1])]}};var s}function Ke(e,t,n){var s=e[t+5],o=s>=1e4?"".concat(Math.round(s/1e3),"k"):s>=1e3?"".concat(Math.round(s/100)/10,"k"):s,i=e[t+6],r=-1===i?{}:Object.assign({},n[i]);return Object.assign(r,{cluster:!0,cluster_id:e[t+3],point_count:s,point_count_abbreviated:o})}function Ye(e){return e/360+.5}function qe(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function Je(e){var t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function Xe(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(s=Object.getOwnPropertySymbols(e);o$e.getVisible(e))).length}push(e){this.markers.push(e)}delete(){this.marker&&($e.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}class et{constructor(e){var{maxZoom:t=16}=e;this.maxZoom=t}noop(e){var{markers:t}=e;return nt(t)}}var tt,nt=e=>e.map((e=>new Qe({position:$e.getPosition(e),markers:[e]})));class st extends et{constructor(e){var{maxZoom:t,radius:n=60}=e,s=Xe(e,["maxZoom","radius"]);super({maxZoom:t}),this.state={zoom:-1},this.superCluster=new Fe(Object.assign({maxZoom:this.maxZoom,radius:n},s))}calculate(e){var t=!1,n={zoom:e.map.getZoom()};if(!_e(e.markers,this.markers)){t=!0,this.markers=[...e.markers];var s=this.markers.map((e=>{var t=$e.getPosition(e);return{type:"Feature",geometry:{type:"Point",coordinates:[t.lng(),t.lat()]},properties:{marker:e}}}));this.superCluster.load(s)}return t||(this.state.zoom<=this.maxZoom||n.zoom<=this.maxZoom)&&(t=!_e(this.state,n)),this.state=n,t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t}}cluster(e){var{map:t}=e;return this.superCluster.getClusters([-180,-90,180,90],Math.round(t.getZoom())).map((e=>this.transformCluster(e)))}transformCluster(e){var{geometry:{coordinates:[t,n]},properties:s}=e;if(s.cluster)return new Qe({markers:this.superCluster.getLeaves(s.cluster_id,1/0).map((e=>e.properties.marker)),position:{lat:n,lng:t}});var o=s.marker;return new Qe({markers:[o],position:$e.getPosition(o)})}}class ot{constructor(e,t){this.markers={sum:e.length};var n=t.map((e=>e.count)),s=n.reduce(((e,t)=>e+t),0);this.clusters={count:t.length,markers:{mean:s/t.length,sum:s,min:Math.min(...n),max:Math.max(...n)}}}}class it{render(e,t,n){var{count:s,position:o}=e,i=s>Math.max(10,t.clusters.markers.mean)?"#ff0000":"#0000ff",r='\n\n\n\n').concat(s,"\n"),a="Cluster of ".concat(s," markers"),l=Number(google.maps.Marker.MAX_ZINDEX)+s;if($e.isAdvancedMarkerAvailable(n)){var u=(new DOMParser).parseFromString(r,"image/svg+xml").documentElement;u.setAttribute("transform","translate(0 25)");var p={map:n,position:o,zIndex:l,title:a,content:u};return new google.maps.marker.AdvancedMarkerElement(p)}var c={position:o,zIndex:l,title:a,icon:{url:"data:image/svg+xml;base64,".concat(btoa(r)),anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(c)}}class rt{constructor(){!function(e,t){for(var n in t.prototype)e.prototype[n]=t.prototype[n]}(rt,google.maps.OverlayView)}}!function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"}(tt||(tt={}));var at=(e,t,n)=>{n.fitBounds(t.bounds)};class lt extends rt{constructor(e){var{map:t,markers:n=[],algorithmOptions:s={},algorithm:o=new st(s),renderer:i=new it,onClusterClick:r=at}=e;super(),this.markers=[...n],this.clusters=[],this.algorithm=o,this.renderer=i,this.onClusterClick=r,t&&this.setMap(t)}addMarker(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())}addMarkers(e,t){e.forEach((e=>{this.addMarker(e,!0)})),t||this.render()}removeMarker(e,t){var n=this.markers.indexOf(e);return-1!==n&&($e.setMap(e,null),this.markers.splice(n,1),t||this.render(),!0)}removeMarkers(e,t){var n=!1;return e.forEach((e=>{n=this.removeMarker(e,!0)||n})),n&&!t&&this.render(),n}clearMarkers(e){this.markers.length=0,e||this.render()}render(){var e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,tt.CLUSTERING_BEGIN,this);var{clusters:t,changed:n}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(n||void 0==n){var s=new Set;for(var o of t)1==o.markers.length&&s.add(o.markers[0]);var i=[];for(var r of this.clusters)null!=r.marker&&(1==r.markers.length?s.has(r.marker)||$e.setMap(r.marker,null):i.push(r.marker));this.clusters=t,this.renderClusters(),requestAnimationFrame((()=>i.forEach((e=>$e.setMap(e,null)))))}google.maps.event.trigger(this,tt.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach((e=>$e.setMap(e,null))),this.clusters.forEach((e=>e.delete())),this.clusters=[]}renderClusters(){var e=new ot(this.markers,this.clusters),t=this.getMap();this.clusters.forEach((n=>{1===n.markers.length?n.marker=n.markers[0]:(n.marker=this.renderer.render(n,e,t),n.markers.forEach((e=>$e.setMap(e,null))),this.onClusterClick&&n.marker.addListener("click",(e=>{google.maps.event.trigger(this,tt.CLUSTER_CLICK,n),this.onClusterClick(e,n,t)}))),$e.setMap(n.marker,t)}))}}function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function pt(e){for(var t=1;t{if(t&&null===n){var o=new lt(pt(pt({},e),{},{map:t}));s(o)}}),[t]),n}(0,r.memo)((function(e){var{children:t,options:n}=e,s=ct(n);return null!==s?t(s):null}));var dt={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},ht={options(e,t){e.setOptions(t)},position(e,t){e.setPosition(t)},zIndex(e,t){e.setZIndex(t)}};(0,r.memo)((function(e){var{children:t,anchor:n,options:s,position:o,zIndex:i,onCloseClick:l,onDomReady:u,onContentChanged:p,onPositionChanged:c,onZindexChanged:g,onLoad:m,onUnmount:v}=e,f=(0,r.useContext)(h),[y,b]=(0,r.useState)(null),[L,C]=(0,r.useState)(null),[E,w]=(0,r.useState)(null),[M,x]=(0,r.useState)(null),[k,P]=(0,r.useState)(null),[O,S]=(0,r.useState)(null),D=(0,r.useRef)(null);return(0,r.useEffect)((()=>{null!==y&&(y.close(),n?y.open(f,n):y.getPosition()&&y.open(f))}),[f,y,n]),(0,r.useEffect)((()=>{s&&null!==y&&y.setOptions(s)}),[y,s]),(0,r.useEffect)((()=>{o&&null!==y&&y.setPosition(o)}),[o]),(0,r.useEffect)((()=>{"number"===typeof i&&null!==y&&y.setZIndex(i)}),[i]),(0,r.useEffect)((()=>{y&&l&&(null!==L&&google.maps.event.removeListener(L),C(google.maps.event.addListener(y,"closeclick",l)))}),[l]),(0,r.useEffect)((()=>{y&&u&&(null!==E&&google.maps.event.removeListener(E),w(google.maps.event.addListener(y,"domready",u)))}),[u]),(0,r.useEffect)((()=>{y&&p&&(null!==M&&google.maps.event.removeListener(M),x(google.maps.event.addListener(y,"content_changed",p)))}),[p]),(0,r.useEffect)((()=>{y&&c&&(null!==k&&google.maps.event.removeListener(k),P(google.maps.event.addListener(y,"position_changed",c)))}),[c]),(0,r.useEffect)((()=>{y&&g&&(null!==O&&google.maps.event.removeListener(O),S(google.maps.event.addListener(y,"zindex_changed",g)))}),[g]),(0,r.useEffect)((()=>{var e=new google.maps.InfoWindow(s);return b(e),D.current=document.createElement("div"),l&&C(google.maps.event.addListener(e,"closeclick",l)),u&&w(google.maps.event.addListener(e,"domready",u)),p&&x(google.maps.event.addListener(e,"content_changed",p)),c&&P(google.maps.event.addListener(e,"position_changed",c)),g&&S(google.maps.event.addListener(e,"zindex_changed",g)),e.setContent(D.current),o&&e.setPosition(o),i&&e.setZIndex(i),n?e.open(f,n):e.getPosition()?e.open(f):d(!1,"You must provide either an anchor (typically render it inside a ) or a position props for ."),m&&m(e),()=>{L&&google.maps.event.removeListener(L),M&&google.maps.event.removeListener(M),E&&google.maps.event.removeListener(E),k&&google.maps.event.removeListener(k),O&&google.maps.event.removeListener(O),v&&v(e),e.close()}}),[]),D.current?(0,a.createPortal)(r.Children.only(t),D.current):null}));class gt extends r.PureComponent{constructor(){super(...arguments),p(this,"registeredEvents",[]),p(this,"containerElement",null),p(this,"state",{infoWindow:null}),p(this,"open",((e,t)=>{t?e.open(this.context,t):e.getPosition()?e.open(this.context):d(!1,"You must provide either an anchor (typically render it inside a ) or a position props for .")})),p(this,"setInfoWindowCallback",(()=>{null!==this.state.infoWindow&&null!==this.containerElement&&(this.state.infoWindow.setContent(this.containerElement),this.open(this.state.infoWindow,this.props.anchor),this.props.onLoad&&this.props.onLoad(this.state.infoWindow))}))}componentDidMount(){var e=new google.maps.InfoWindow(this.props.options);this.containerElement=document.createElement("div"),this.registeredEvents=y({updaterMap:ht,eventMap:dt,prevProps:{},nextProps:this.props,instance:e}),this.setState((()=>({infoWindow:e})),this.setInfoWindowCallback)}componentDidUpdate(e){null!==this.state.infoWindow&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:ht,eventMap:dt,prevProps:e,nextProps:this.props,instance:this.state.infoWindow}))}componentWillUnmount(){null!==this.state.infoWindow&&(f(this.registeredEvents),this.props.onUnmount&&this.props.onUnmount(this.state.infoWindow),this.state.infoWindow.close())}render(){return this.containerElement?(0,a.createPortal)(r.Children.only(this.props.children),this.containerElement):null}}function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function vt(e){for(var t=1;t{null!==E&&E.setMap(C)}),[C]),(0,r.useEffect)((()=>{"undefined"!==typeof t&&null!==E&&E.setOptions(t)}),[E,t]),(0,r.useEffect)((()=>{"undefined"!==typeof n&&null!==E&&E.setDraggable(n)}),[E,n]),(0,r.useEffect)((()=>{"undefined"!==typeof s&&null!==E&&E.setEditable(s)}),[E,s]),(0,r.useEffect)((()=>{"undefined"!==typeof o&&null!==E&&E.setVisible(o)}),[E,o]),(0,r.useEffect)((()=>{"undefined"!==typeof i&&null!==E&&E.setPath(i)}),[E,i]),(0,r.useEffect)((()=>{E&&a&&(null!==M&&google.maps.event.removeListener(M),x(google.maps.event.addListener(E,"dblclick",a)))}),[a]),(0,r.useEffect)((()=>{E&&l&&(null!==k&&google.maps.event.removeListener(k),P(google.maps.event.addListener(E,"dragend",l)))}),[l]),(0,r.useEffect)((()=>{E&&u&&(null!==O&&google.maps.event.removeListener(O),S(google.maps.event.addListener(E,"dragstart",u)))}),[u]),(0,r.useEffect)((()=>{E&&p&&(null!==D&&google.maps.event.removeListener(D),I(google.maps.event.addListener(E,"mousedown",p)))}),[p]),(0,r.useEffect)((()=>{E&&c&&(null!==j&&google.maps.event.removeListener(j),B(google.maps.event.addListener(E,"mousemove",c)))}),[c]),(0,r.useEffect)((()=>{E&&d&&(null!==_&&google.maps.event.removeListener(_),R(google.maps.event.addListener(E,"mouseout",d)))}),[d]),(0,r.useEffect)((()=>{E&&g&&(null!==T&&google.maps.event.removeListener(T),U(google.maps.event.addListener(E,"mouseover",g)))}),[g]),(0,r.useEffect)((()=>{E&&m&&(null!==z&&google.maps.event.removeListener(z),A(google.maps.event.addListener(E,"mouseup",m)))}),[m]),(0,r.useEffect)((()=>{E&&v&&(null!==Z&&google.maps.event.removeListener(Z),V(google.maps.event.addListener(E,"rightclick",v)))}),[v]),(0,r.useEffect)((()=>{E&&f&&(null!==W&&google.maps.event.removeListener(W),N(google.maps.event.addListener(E,"click",f)))}),[f]),(0,r.useEffect)((()=>{E&&y&&(null!==H&&google.maps.event.removeListener(H),F(google.maps.event.addListener(E,"drag",y)))}),[y]),(0,r.useEffect)((()=>{var e=new google.maps.Polyline(vt(vt({},t||bt),{},{map:C}));return i&&e.setPath(i),"undefined"!==typeof o&&e.setVisible(o),"undefined"!==typeof s&&e.setEditable(s),"undefined"!==typeof n&&e.setDraggable(n),a&&x(google.maps.event.addListener(e,"dblclick",a)),l&&P(google.maps.event.addListener(e,"dragend",l)),u&&S(google.maps.event.addListener(e,"dragstart",u)),p&&I(google.maps.event.addListener(e,"mousedown",p)),c&&B(google.maps.event.addListener(e,"mousemove",c)),d&&R(google.maps.event.addListener(e,"mouseout",d)),g&&U(google.maps.event.addListener(e,"mouseover",g)),m&&A(google.maps.event.addListener(e,"mouseup",m)),v&&V(google.maps.event.addListener(e,"rightclick",v)),f&&N(google.maps.event.addListener(e,"click",f)),y&&F(google.maps.event.addListener(e,"drag",y)),w(e),b&&b(e),()=>{null!==M&&google.maps.event.removeListener(M),null!==k&&google.maps.event.removeListener(k),null!==O&&google.maps.event.removeListener(O),null!==D&&google.maps.event.removeListener(D),null!==j&&google.maps.event.removeListener(j),null!==_&&google.maps.event.removeListener(_),null!==T&&google.maps.event.removeListener(T),null!==z&&google.maps.event.removeListener(z),null!==Z&&google.maps.event.removeListener(Z),null!==W&&google.maps.event.removeListener(W),L&&L(e),e.setMap(null)}}),[]),null}));class Lt extends r.PureComponent{constructor(){super(...arguments),p(this,"registeredEvents",[]),p(this,"state",{polyline:null}),p(this,"setPolylineCallback",(()=>{null!==this.state.polyline&&this.props.onLoad&&this.props.onLoad(this.state.polyline)}))}componentDidMount(){var e=new google.maps.Polyline(vt(vt({},this.props.options),{},{map:this.context}));this.registeredEvents=y({updaterMap:yt,eventMap:ft,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{polyline:e}}),this.setPolylineCallback)}componentDidUpdate(e){null!==this.state.polyline&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:yt,eventMap:ft,prevProps:e,nextProps:this.props,instance:this.state.polyline}))}componentWillUnmount(){null!==this.state.polyline&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),f(this.registeredEvents),this.state.polyline.setMap(null))}render(){return null}}function Ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function Et(e){for(var t=1;t{null!==M&&M.setMap(w)}),[w]),(0,r.useEffect)((()=>{"undefined"!==typeof t&&null!==M&&M.setOptions(t)}),[M,t]),(0,r.useEffect)((()=>{"undefined"!==typeof n&&null!==M&&M.setDraggable(n)}),[M,n]),(0,r.useEffect)((()=>{"undefined"!==typeof s&&null!==M&&M.setEditable(s)}),[M,s]),(0,r.useEffect)((()=>{"undefined"!==typeof o&&null!==M&&M.setVisible(o)}),[M,o]),(0,r.useEffect)((()=>{"undefined"!==typeof i&&null!==M&&M.setPath(i)}),[M,i]),(0,r.useEffect)((()=>{"undefined"!==typeof a&&null!==M&&M.setPaths(a)}),[M,a]),(0,r.useEffect)((()=>{M&&"function"===typeof l&&(null!==k&&google.maps.event.removeListener(k),P(google.maps.event.addListener(M,"dblclick",l)))}),[l]),(0,r.useEffect)((()=>{M&&(google.maps.event.addListener(M.getPath(),"insert_at",(()=>{null===E||void 0===E||E(M)})),google.maps.event.addListener(M.getPath(),"set_at",(()=>{null===E||void 0===E||E(M)})),google.maps.event.addListener(M.getPath(),"remove_at",(()=>{null===E||void 0===E||E(M)})))}),[M,E]),(0,r.useEffect)((()=>{M&&"function"===typeof u&&(null!==O&&google.maps.event.removeListener(O),S(google.maps.event.addListener(M,"dragend",u)))}),[u]),(0,r.useEffect)((()=>{M&&"function"===typeof p&&(null!==D&&google.maps.event.removeListener(D),I(google.maps.event.addListener(M,"dragstart",p)))}),[p]),(0,r.useEffect)((()=>{M&&"function"===typeof c&&(null!==j&&google.maps.event.removeListener(j),B(google.maps.event.addListener(M,"mousedown",c)))}),[c]),(0,r.useEffect)((()=>{M&&"function"===typeof d&&(null!==_&&google.maps.event.removeListener(_),R(google.maps.event.addListener(M,"mousemove",d)))}),[d]),(0,r.useEffect)((()=>{M&&"function"===typeof g&&(null!==T&&google.maps.event.removeListener(T),U(google.maps.event.addListener(M,"mouseout",g)))}),[g]),(0,r.useEffect)((()=>{M&&"function"===typeof m&&(null!==z&&google.maps.event.removeListener(z),A(google.maps.event.addListener(M,"mouseover",m)))}),[m]),(0,r.useEffect)((()=>{M&&"function"===typeof v&&(null!==Z&&google.maps.event.removeListener(Z),V(google.maps.event.addListener(M,"mouseup",v)))}),[v]),(0,r.useEffect)((()=>{M&&"function"===typeof f&&(null!==W&&google.maps.event.removeListener(W),N(google.maps.event.addListener(M,"rightclick",f)))}),[f]),(0,r.useEffect)((()=>{M&&"function"===typeof y&&(null!==H&&google.maps.event.removeListener(H),F(google.maps.event.addListener(M,"click",y)))}),[y]),(0,r.useEffect)((()=>{M&&"function"===typeof b&&(null!==G&&google.maps.event.removeListener(G),K(google.maps.event.addListener(M,"drag",b)))}),[b]),(0,r.useEffect)((()=>{var e=new google.maps.Polygon(Et(Et({},t),{},{map:w}));return i&&e.setPath(i),a&&e.setPaths(a),"undefined"!==typeof o&&e.setVisible(o),"undefined"!==typeof s&&e.setEditable(s),"undefined"!==typeof n&&e.setDraggable(n),l&&P(google.maps.event.addListener(e,"dblclick",l)),u&&S(google.maps.event.addListener(e,"dragend",u)),p&&I(google.maps.event.addListener(e,"dragstart",p)),c&&B(google.maps.event.addListener(e,"mousedown",c)),d&&R(google.maps.event.addListener(e,"mousemove",d)),g&&U(google.maps.event.addListener(e,"mouseout",g)),m&&A(google.maps.event.addListener(e,"mouseover",m)),v&&V(google.maps.event.addListener(e,"mouseup",v)),f&&N(google.maps.event.addListener(e,"rightclick",f)),y&&F(google.maps.event.addListener(e,"click",y)),b&&K(google.maps.event.addListener(e,"drag",b)),x(e),L&&L(e),()=>{null!==k&&google.maps.event.removeListener(k),null!==O&&google.maps.event.removeListener(O),null!==D&&google.maps.event.removeListener(D),null!==j&&google.maps.event.removeListener(j),null!==_&&google.maps.event.removeListener(_),null!==T&&google.maps.event.removeListener(T),null!==z&&google.maps.event.removeListener(z),null!==Z&&google.maps.event.removeListener(Z),null!==W&&google.maps.event.removeListener(W),null!==H&&google.maps.event.removeListener(H),C&&C(e),e.setMap(null)}}),[]),null}));class xt extends r.PureComponent{constructor(){super(...arguments),p(this,"registeredEvents",[])}componentDidMount(){var e=this.props.options||{};this.polygon=new google.maps.Polygon(e),this.polygon.setMap(this.context),this.registeredEvents=y({updaterMap:Mt,eventMap:wt,prevProps:{},nextProps:this.props,instance:this.polygon}),this.props.onLoad&&this.props.onLoad(this.polygon)}componentDidUpdate(e){this.polygon&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:Mt,eventMap:wt,prevProps:e,nextProps:this.props,instance:this.polygon}))}componentWillUnmount(){this.polygon&&(this.props.onUnmount&&this.props.onUnmount(this.polygon),f(this.registeredEvents),this.polygon&&this.polygon.setMap(null))}render(){return null}}function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function Pt(e){for(var t=1;t{null!==w&&w.setMap(E)}),[E]),(0,r.useEffect)((()=>{"undefined"!==typeof t&&null!==w&&w.setOptions(t)}),[w,t]),(0,r.useEffect)((()=>{"undefined"!==typeof s&&null!==w&&w.setDraggable(s)}),[w,s]),(0,r.useEffect)((()=>{"undefined"!==typeof o&&null!==w&&w.setEditable(o)}),[w,o]),(0,r.useEffect)((()=>{"undefined"!==typeof i&&null!==w&&w.setVisible(i)}),[w,i]),(0,r.useEffect)((()=>{"undefined"!==typeof n&&null!==w&&w.setBounds(n)}),[w,n]),(0,r.useEffect)((()=>{w&&a&&(null!==x&&google.maps.event.removeListener(x),k(google.maps.event.addListener(w,"dblclick",a)))}),[a]),(0,r.useEffect)((()=>{w&&l&&(null!==P&&google.maps.event.removeListener(P),O(google.maps.event.addListener(w,"dragend",l)))}),[l]),(0,r.useEffect)((()=>{w&&u&&(null!==S&&google.maps.event.removeListener(S),D(google.maps.event.addListener(w,"dragstart",u)))}),[u]),(0,r.useEffect)((()=>{w&&p&&(null!==I&&google.maps.event.removeListener(I),j(google.maps.event.addListener(w,"mousedown",p)))}),[p]),(0,r.useEffect)((()=>{w&&c&&(null!==B&&google.maps.event.removeListener(B),_(google.maps.event.addListener(w,"mousemove",c)))}),[c]),(0,r.useEffect)((()=>{w&&d&&(null!==R&&google.maps.event.removeListener(R),T(google.maps.event.addListener(w,"mouseout",d)))}),[d]),(0,r.useEffect)((()=>{w&&g&&(null!==U&&google.maps.event.removeListener(U),z(google.maps.event.addListener(w,"mouseover",g)))}),[g]),(0,r.useEffect)((()=>{w&&m&&(null!==A&&google.maps.event.removeListener(A),Z(google.maps.event.addListener(w,"mouseup",m)))}),[m]),(0,r.useEffect)((()=>{w&&v&&(null!==V&&google.maps.event.removeListener(V),W(google.maps.event.addListener(w,"rightclick",v)))}),[v]),(0,r.useEffect)((()=>{w&&f&&(null!==N&&google.maps.event.removeListener(N),H(google.maps.event.addListener(w,"click",f)))}),[f]),(0,r.useEffect)((()=>{w&&y&&(null!==F&&google.maps.event.removeListener(F),G(google.maps.event.addListener(w,"drag",y)))}),[y]),(0,r.useEffect)((()=>{w&&b&&(null!==K&&google.maps.event.removeListener(K),Y(google.maps.event.addListener(w,"bounds_changed",b)))}),[b]),(0,r.useEffect)((()=>{var e=new google.maps.Rectangle(Pt(Pt({},t),{},{map:E}));return"undefined"!==typeof i&&e.setVisible(i),"undefined"!==typeof o&&e.setEditable(o),"undefined"!==typeof s&&e.setDraggable(s),"undefined"!==typeof n&&e.setBounds(n),a&&k(google.maps.event.addListener(e,"dblclick",a)),l&&O(google.maps.event.addListener(e,"dragend",l)),u&&D(google.maps.event.addListener(e,"dragstart",u)),p&&j(google.maps.event.addListener(e,"mousedown",p)),c&&_(google.maps.event.addListener(e,"mousemove",c)),d&&T(google.maps.event.addListener(e,"mouseout",d)),g&&z(google.maps.event.addListener(e,"mouseover",g)),m&&Z(google.maps.event.addListener(e,"mouseup",m)),v&&W(google.maps.event.addListener(e,"rightclick",v)),f&&H(google.maps.event.addListener(e,"click",f)),y&&G(google.maps.event.addListener(e,"drag",y)),b&&Y(google.maps.event.addListener(e,"bounds_changed",b)),M(e),L&&L(e),()=>{null!==x&&google.maps.event.removeListener(x),null!==P&&google.maps.event.removeListener(P),null!==S&&google.maps.event.removeListener(S),null!==I&&google.maps.event.removeListener(I),null!==B&&google.maps.event.removeListener(B),null!==R&&google.maps.event.removeListener(R),null!==U&&google.maps.event.removeListener(U),null!==A&&google.maps.event.removeListener(A),null!==V&&google.maps.event.removeListener(V),null!==N&&google.maps.event.removeListener(N),null!==F&&google.maps.event.removeListener(F),null!==K&&google.maps.event.removeListener(K),C&&C(e),e.setMap(null)}}),[]),null}));class Dt extends r.PureComponent{constructor(){super(...arguments),p(this,"registeredEvents",[]),p(this,"state",{rectangle:null}),p(this,"setRectangleCallback",(()=>{null!==this.state.rectangle&&this.props.onLoad&&this.props.onLoad(this.state.rectangle)}))}componentDidMount(){var e=new google.maps.Rectangle(Pt(Pt({},this.props.options),{},{map:this.context}));this.registeredEvents=y({updaterMap:St,eventMap:Ot,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{rectangle:e}}),this.setRectangleCallback)}componentDidUpdate(e){null!==this.state.rectangle&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:St,eventMap:Ot,prevProps:e,nextProps:this.props,instance:this.state.rectangle}))}componentWillUnmount(){null!==this.state.rectangle&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),f(this.registeredEvents),this.state.rectangle.setMap(null))}render(){return null}}function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function jt(e){for(var t=1;t{null!==x&&x.setMap(M)}),[M]),(0,r.useEffect)((()=>{"undefined"!==typeof t&&null!==x&&x.setOptions(t)}),[x,t]),(0,r.useEffect)((()=>{"undefined"!==typeof o&&null!==x&&x.setDraggable(o)}),[x,o]),(0,r.useEffect)((()=>{"undefined"!==typeof i&&null!==x&&x.setEditable(i)}),[x,i]),(0,r.useEffect)((()=>{"undefined"!==typeof a&&null!==x&&x.setVisible(a)}),[x,a]),(0,r.useEffect)((()=>{"number"===typeof s&&null!==x&&x.setRadius(s)}),[x,s]),(0,r.useEffect)((()=>{"undefined"!==typeof n&&null!==x&&x.setCenter(n)}),[x,n]),(0,r.useEffect)((()=>{x&&l&&(null!==P&&google.maps.event.removeListener(P),O(google.maps.event.addListener(x,"dblclick",l)))}),[l]),(0,r.useEffect)((()=>{x&&u&&(null!==S&&google.maps.event.removeListener(S),D(google.maps.event.addListener(x,"dragend",u)))}),[u]),(0,r.useEffect)((()=>{x&&p&&(null!==I&&google.maps.event.removeListener(I),j(google.maps.event.addListener(x,"dragstart",p)))}),[p]),(0,r.useEffect)((()=>{x&&c&&(null!==B&&google.maps.event.removeListener(B),_(google.maps.event.addListener(x,"mousedown",c)))}),[c]),(0,r.useEffect)((()=>{x&&d&&(null!==R&&google.maps.event.removeListener(R),T(google.maps.event.addListener(x,"mousemove",d)))}),[d]),(0,r.useEffect)((()=>{x&&g&&(null!==U&&google.maps.event.removeListener(U),z(google.maps.event.addListener(x,"mouseout",g)))}),[g]),(0,r.useEffect)((()=>{x&&m&&(null!==A&&google.maps.event.removeListener(A),Z(google.maps.event.addListener(x,"mouseover",m)))}),[m]),(0,r.useEffect)((()=>{x&&v&&(null!==V&&google.maps.event.removeListener(V),W(google.maps.event.addListener(x,"mouseup",v)))}),[v]),(0,r.useEffect)((()=>{x&&f&&(null!==N&&google.maps.event.removeListener(N),H(google.maps.event.addListener(x,"rightclick",f)))}),[f]),(0,r.useEffect)((()=>{x&&y&&(null!==F&&google.maps.event.removeListener(F),G(google.maps.event.addListener(x,"click",y)))}),[y]),(0,r.useEffect)((()=>{x&&b&&(null!==K&&google.maps.event.removeListener(K),Y(google.maps.event.addListener(x,"drag",b)))}),[b]),(0,r.useEffect)((()=>{x&&L&&(null!==q&&google.maps.event.removeListener(q),J(google.maps.event.addListener(x,"center_changed",L)))}),[y]),(0,r.useEffect)((()=>{x&&C&&(null!==X&&google.maps.event.removeListener(X),$(google.maps.event.addListener(x,"radius_changed",C)))}),[C]),(0,r.useEffect)((()=>{var e=new google.maps.Circle(jt(jt({},t||Rt),{},{map:M}));return"number"===typeof s&&e.setRadius(s),"undefined"!==typeof n&&e.setCenter(n),"number"===typeof s&&e.setRadius(s),"undefined"!==typeof a&&e.setVisible(a),"undefined"!==typeof i&&e.setEditable(i),"undefined"!==typeof o&&e.setDraggable(o),l&&O(google.maps.event.addListener(e,"dblclick",l)),u&&D(google.maps.event.addListener(e,"dragend",u)),p&&j(google.maps.event.addListener(e,"dragstart",p)),c&&_(google.maps.event.addListener(e,"mousedown",c)),d&&T(google.maps.event.addListener(e,"mousemove",d)),g&&z(google.maps.event.addListener(e,"mouseout",g)),m&&Z(google.maps.event.addListener(e,"mouseover",m)),v&&W(google.maps.event.addListener(e,"mouseup",v)),f&&H(google.maps.event.addListener(e,"rightclick",f)),y&&G(google.maps.event.addListener(e,"click",y)),b&&Y(google.maps.event.addListener(e,"drag",b)),L&&J(google.maps.event.addListener(e,"center_changed",L)),C&&$(google.maps.event.addListener(e,"radius_changed",C)),k(e),E&&E(e),()=>{null!==P&&google.maps.event.removeListener(P),null!==S&&google.maps.event.removeListener(S),null!==I&&google.maps.event.removeListener(I),null!==B&&google.maps.event.removeListener(B),null!==R&&google.maps.event.removeListener(R),null!==U&&google.maps.event.removeListener(U),null!==A&&google.maps.event.removeListener(A),null!==V&&google.maps.event.removeListener(V),null!==N&&google.maps.event.removeListener(N),null!==F&&google.maps.event.removeListener(F),null!==q&&google.maps.event.removeListener(q),null!==X&&google.maps.event.removeListener(X),w&&w(e),e.setMap(null)}}),[]),null}));class Tt extends r.PureComponent{constructor(){super(...arguments),p(this,"registeredEvents",[]),p(this,"state",{circle:null}),p(this,"setCircleCallback",(()=>{null!==this.state.circle&&this.props.onLoad&&this.props.onLoad(this.state.circle)}))}componentDidMount(){var e=new google.maps.Circle(jt(jt({},this.props.options),{},{map:this.context}));this.registeredEvents=y({updaterMap:_t,eventMap:Bt,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{circle:e}}),this.setCircleCallback)}componentDidUpdate(e){null!==this.state.circle&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:_t,eventMap:Bt,prevProps:e,nextProps:this.props,instance:this.state.circle}))}componentWillUnmount(){var e;null!==this.state.circle&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),f(this.registeredEvents),null===(e=this.state.circle)||void 0===e||e.setMap(null))}render(){return null}}function Ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function zt(e){for(var t=1;t{null!==L&&L.setMap(b)}),[b]),(0,r.useEffect)((()=>{L&&s&&(null!==E&&google.maps.event.removeListener(E),w(google.maps.event.addListener(L,"dblclick",s)))}),[s]),(0,r.useEffect)((()=>{L&&o&&(null!==M&&google.maps.event.removeListener(M),x(google.maps.event.addListener(L,"mousedown",o)))}),[o]),(0,r.useEffect)((()=>{L&&i&&(null!==k&&google.maps.event.removeListener(k),P(google.maps.event.addListener(L,"mousemove",i)))}),[i]),(0,r.useEffect)((()=>{L&&a&&(null!==O&&google.maps.event.removeListener(O),S(google.maps.event.addListener(L,"mouseout",a)))}),[a]),(0,r.useEffect)((()=>{L&&l&&(null!==D&&google.maps.event.removeListener(D),I(google.maps.event.addListener(L,"mouseover",l)))}),[l]),(0,r.useEffect)((()=>{L&&u&&(null!==j&&google.maps.event.removeListener(j),B(google.maps.event.addListener(L,"mouseup",u)))}),[u]),(0,r.useEffect)((()=>{L&&p&&(null!==_&&google.maps.event.removeListener(_),R(google.maps.event.addListener(L,"rightclick",p)))}),[p]),(0,r.useEffect)((()=>{L&&n&&(null!==T&&google.maps.event.removeListener(T),U(google.maps.event.addListener(L,"click",n)))}),[n]),(0,r.useEffect)((()=>{L&&c&&(null!==z&&google.maps.event.removeListener(z),A(google.maps.event.addListener(L,"addfeature",c)))}),[c]),(0,r.useEffect)((()=>{L&&d&&(null!==Z&&google.maps.event.removeListener(Z),V(google.maps.event.addListener(L,"removefeature",d)))}),[d]),(0,r.useEffect)((()=>{L&&g&&(null!==W&&google.maps.event.removeListener(W),N(google.maps.event.addListener(L,"removeproperty",g)))}),[g]),(0,r.useEffect)((()=>{L&&m&&(null!==H&&google.maps.event.removeListener(H),F(google.maps.event.addListener(L,"setgeometry",m)))}),[m]),(0,r.useEffect)((()=>{L&&v&&(null!==G&&google.maps.event.removeListener(G),K(google.maps.event.addListener(L,"setproperty",v)))}),[v]),(0,r.useEffect)((()=>{if(null!==b){var e=new google.maps.Data(zt(zt({},t),{},{map:b}));s&&w(google.maps.event.addListener(e,"dblclick",s)),o&&x(google.maps.event.addListener(e,"mousedown",o)),i&&P(google.maps.event.addListener(e,"mousemove",i)),a&&S(google.maps.event.addListener(e,"mouseout",a)),l&&I(google.maps.event.addListener(e,"mouseover",l)),u&&B(google.maps.event.addListener(e,"mouseup",u)),p&&R(google.maps.event.addListener(e,"rightclick",p)),n&&U(google.maps.event.addListener(e,"click",n)),c&&A(google.maps.event.addListener(e,"addfeature",c)),d&&V(google.maps.event.addListener(e,"removefeature",d)),g&&N(google.maps.event.addListener(e,"removeproperty",g)),m&&F(google.maps.event.addListener(e,"setgeometry",m)),v&&K(google.maps.event.addListener(e,"setproperty",v)),C(e),f&&f(e)}return()=>{L&&(null!==E&&google.maps.event.removeListener(E),null!==M&&google.maps.event.removeListener(M),null!==k&&google.maps.event.removeListener(k),null!==O&&google.maps.event.removeListener(O),null!==D&&google.maps.event.removeListener(D),null!==j&&google.maps.event.removeListener(j),null!==_&&google.maps.event.removeListener(_),null!==T&&google.maps.event.removeListener(T),null!==z&&google.maps.event.removeListener(z),null!==Z&&google.maps.event.removeListener(Z),null!==W&&google.maps.event.removeListener(W),null!==H&&google.maps.event.removeListener(H),null!==G&&google.maps.event.removeListener(G),y&&y(L),L.setMap(null))}}),[]),null}));class Vt extends r.PureComponent{constructor(){super(...arguments),p(this,"registeredEvents",[]),p(this,"state",{data:null}),p(this,"setDataCallback",(()=>{null!==this.state.data&&this.props.onLoad&&this.props.onLoad(this.state.data)}))}componentDidMount(){if(null!==this.context){var e=new google.maps.Data(zt(zt({},this.props.options),{},{map:this.context}));this.registeredEvents=y({updaterMap:Zt,eventMap:At,prevProps:{},nextProps:this.props,instance:e}),this.setState((()=>({data:e})),this.setDataCallback)}}componentDidUpdate(e){null!==this.state.data&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:Zt,eventMap:At,prevProps:e,nextProps:this.props,instance:this.state.data}))}componentWillUnmount(){null!==this.state.data&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),f(this.registeredEvents),this.state.data&&this.state.data.setMap(null))}render(){return null}}function Wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function Nt(e){for(var t=1;t{null!==this.state.kmlLayer&&this.props.onLoad&&this.props.onLoad(this.state.kmlLayer)}))}componentDidMount(){var e=new google.maps.KmlLayer(Nt(Nt({},this.props.options),{},{map:this.context}));this.registeredEvents=y({updaterMap:Ft,eventMap:Ht,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{kmlLayer:e}}),this.setKmlLayerCallback)}componentDidUpdate(e){null!==this.state.kmlLayer&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:Ft,eventMap:Ht,prevProps:e,nextProps:this.props,instance:this.state.kmlLayer}))}componentWillUnmount(){null!==this.state.kmlLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),f(this.registeredEvents),this.state.kmlLayer.setMap(null))}render(){return null}}function Kt(e,t){return"function"===typeof t?t(e.offsetWidth,e.offsetHeight):{x:0,y:0}}function Yt(e,t){return new t(e.lat,e.lng)}function qt(e,t){return new t(new google.maps.LatLng(e.ne.lat,e.ne.lng),new google.maps.LatLng(e.sw.lat,e.sw.lng))}function Jt(e,t,n,s){return void 0!==n?function(e,t,n){var s=e&&e.fromLatLngToDivPixel(n.getNorthEast()),o=e&&e.fromLatLngToDivPixel(n.getSouthWest());return s&&o?{left:"".concat(o.x+t.x,"px"),top:"".concat(s.y+t.y,"px"),width:"".concat(s.x-o.x-t.x,"px"),height:"".concat(o.y-s.y-t.y,"px")}:{left:"-9999px",top:"-9999px"}}(e,t,(o=n,i=google.maps.LatLngBounds,r=qt,o instanceof i?o:r(o,i))):function(e,t,n){var s=e&&e.fromLatLngToDivPixel(n);if(s){var{x:o,y:i}=s;return{left:"".concat(o+t.x,"px"),top:"".concat(i+t.y,"px")}}return{left:"-9999px",top:"-9999px"}}(e,t,function(e,t,n){return e instanceof t?e:n(e,t)}(s,google.maps.LatLng,Yt));var o,i,r}function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function $t(e,t,n,s,o){class i extends google.maps.OverlayView{constructor(e,t,n,s){super(),this.container=e,this.pane=t,this.position=n,this.bounds=s}onAdd(){var e,t=null===(e=this.getPanes())||void 0===e?void 0:e[this.pane];null===t||void 0===t||t.appendChild(this.container)}draw(){var e=this.getProjection(),t=function(e){for(var t=1;t{var e=document.createElement("div");return e.style.position="absolute",e}),[]),g=(0,r.useMemo)((()=>$t(d,s,t,n,u)),[d,s,t,n]);return(0,r.useEffect)((()=>(null===i||void 0===i||i(g),null===g||void 0===g||g.setMap(c),()=>{null===l||void 0===l||l(g),null===g||void 0===g||g.setMap(null)})),[c,g]),(0,r.useEffect)((()=>{d.style.zIndex="".concat(o)}),[o,d]),a.createPortal(p,d)}));class nn extends r.PureComponent{constructor(e){super(e),p(this,"state",{paneEl:null,containerStyle:{position:"absolute"}}),p(this,"updatePane",(()=>{var e=this.props.mapPaneName,t=this.overlayView.getPanes();d(!!e,"OverlayView requires props.mapPaneName but got %s",e),t?this.setState({paneEl:t[e]}):this.setState({paneEl:null})})),p(this,"onAdd",(()=>{var e,t;this.updatePane(),null===(e=(t=this.props).onLoad)||void 0===e||e.call(t,this.overlayView)})),p(this,"onPositionElement",(()=>{var e,t,n,s,o,i,r=this.overlayView.getProjection(),a=function(e){for(var t=1;t{this.onPositionElement()})),p(this,"onRemove",(()=>{var e,t;this.setState((()=>({paneEl:null}))),null===(e=(t=this.props).onUnmount)||void 0===e||e.call(t,this.overlayView)})),this.containerRef=(0,r.createRef)();var t=new google.maps.OverlayView;t.onAdd=this.onAdd,t.draw=this.draw,t.onRemove=this.onRemove,this.overlayView=t}componentDidMount(){this.overlayView.setMap(this.context)}componentDidUpdate(e){var t=en(e.position),n=en(this.props.position),s=tn(e.bounds),o=tn(this.props.bounds);t===n&&s===o||this.overlayView.draw(),e.mapPaneName!==this.props.mapPaneName&&this.updatePane()}componentWillUnmount(){this.overlayView.setMap(null)}render(){var e=this.state.paneEl;return e?a.createPortal((0,i.jsx)("div",{ref:this.containerRef,style:this.state.containerStyle,children:r.Children.only(this.props.children)}),e):null}}function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function on(e){for(var t=1;tnew google.maps.GroundOverlay(t,a,s)),[]);return(0,r.useEffect)((()=>{null!==l&&l.setMap(i)}),[i]),(0,r.useEffect)((()=>{"undefined"!==typeof t&&null!==l&&(l.set("url",t),l.setMap(i))}),[l,t]),(0,r.useEffect)((()=>{"undefined"!==typeof o&&null!==l&&l.setOpacity(o?1:0)}),[l,o]),(0,r.useEffect)((()=>{var e=new google.maps.LatLngBounds(new google.maps.LatLng(n.south,n.west),new google.maps.LatLng(n.north,n.east));"undefined"!==typeof n&&null!==l&&(l.set("bounds",e),l.setMap(i))}),[l,n]),null}));class ln extends r.PureComponent{constructor(){super(...arguments),p(this,"registeredEvents",[]),p(this,"state",{groundOverlay:null}),p(this,"setGroundOverlayCallback",(()=>{null!==this.state.groundOverlay&&this.props.onLoad&&this.props.onLoad(this.state.groundOverlay)}))}componentDidMount(){d(!!this.props.url||!!this.props.bounds,"For GroundOverlay, url and bounds are passed in to constructor and are immutable after instantiated. This is the behavior of Google Maps JavaScript API v3 ( See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) Hence, use the corresponding two props provided by `react-google-maps-api`, url and bounds. In some cases, you'll need the GroundOverlay component to reflect the changes of url and bounds. You can leverage the React's key property to remount the component. Typically, just `key={url}` would serve your need. See https://github.com/tomchentw/react-google-maps/issues/655");var e=new google.maps.GroundOverlay(this.props.url,this.props.bounds,on(on({},this.props.options),{},{map:this.context}));this.registeredEvents=y({updaterMap:an,eventMap:rn,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{groundOverlay:e}}),this.setGroundOverlayCallback)}componentDidUpdate(e){null!==this.state.groundOverlay&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:an,eventMap:rn,prevProps:e,nextProps:this.props,instance:this.state.groundOverlay}))}componentWillUnmount(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))}render(){return null}}function un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function pn(e){for(var t=1;t{google.maps.visualization||d(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} in useJsApiScript? %s',google.maps.visualization)}),[]),(0,r.useEffect)((()=>{d(!!t,"data property is required in HeatmapLayer %s",t)}),[t]),(0,r.useEffect)((()=>{null!==a&&a.setMap(i)}),[i]),(0,r.useEffect)((()=>{o&&null!==a&&a.setOptions(o)}),[a,o]),(0,r.useEffect)((()=>{var e=new google.maps.visualization.HeatmapLayer(pn(pn({},o),{},{data:t,map:i}));return l(e),n&&n(e),()=>{null!==a&&(s&&s(a),a.setMap(null))}}),[]),null}));class hn extends r.PureComponent{constructor(){super(...arguments),p(this,"registeredEvents",[]),p(this,"state",{heatmapLayer:null}),p(this,"setHeatmapLayerCallback",(()=>{null!==this.state.heatmapLayer&&this.props.onLoad&&this.props.onLoad(this.state.heatmapLayer)}))}componentDidMount(){d(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to ? %s',google.maps.visualization),d(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);var e=new google.maps.visualization.HeatmapLayer(pn(pn({},this.props.options),{},{data:this.props.data,map:this.context}));this.registeredEvents=y({updaterMap:dn,eventMap:cn,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{heatmapLayer:e}}),this.setHeatmapLayerCallback)}componentDidUpdate(e){f(this.registeredEvents),this.registeredEvents=y({updaterMap:dn,eventMap:cn,prevProps:e,nextProps:this.props,instance:this.state.heatmapLayer})}componentWillUnmount(){null!==this.state.heatmapLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),f(this.registeredEvents),this.state.heatmapLayer.setMap(null))}render(){return null}}p(hn,"contextType",h);var gn={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},mn={register(e,t,n){e.registerPanoProvider(t,n)},links(e,t){e.setLinks(t)},motionTracking(e,t){e.setMotionTracking(t)},options(e,t){e.setOptions(t)},pano(e,t){e.setPano(t)},position(e,t){e.setPosition(t)},pov(e,t){e.setPov(t)},visible(e,t){e.setVisible(t)},zoom(e,t){e.setZoom(t)}};class vn extends r.PureComponent{constructor(){super(...arguments),p(this,"registeredEvents",[]),p(this,"state",{streetViewPanorama:null}),p(this,"setStreetViewPanoramaCallback",(()=>{null!==this.state.streetViewPanorama&&this.props.onLoad&&this.props.onLoad(this.state.streetViewPanorama)}))}componentDidMount(){var e,t,n=null!==(e=null===(t=this.context)||void 0===t?void 0:t.getStreetView())&&void 0!==e?e:null;this.registeredEvents=y({updaterMap:mn,eventMap:gn,prevProps:{},nextProps:this.props,instance:n}),this.setState((()=>({streetViewPanorama:n})),this.setStreetViewPanoramaCallback)}componentDidUpdate(e){null!==this.state.streetViewPanorama&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:mn,eventMap:gn,prevProps:e,nextProps:this.props,instance:this.state.streetViewPanorama}))}componentWillUnmount(){null!==this.state.streetViewPanorama&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),f(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))}render(){return null}}p(vn,"contextType",h);class fn extends r.PureComponent{constructor(){super(...arguments),p(this,"state",{streetViewService:null}),p(this,"setStreetViewServiceCallback",(()=>{null!==this.state.streetViewService&&this.props.onLoad&&this.props.onLoad(this.state.streetViewService)}))}componentDidMount(){var e=new google.maps.StreetViewService;this.setState((function(){return{streetViewService:e}}),this.setStreetViewServiceCallback)}componentWillUnmount(){null!==this.state.streetViewService&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)}render(){return null}}p(fn,"contextType",h);r.PureComponent;var yn={onDirectionsChanged:"directions_changed"},bn={directions(e,t){e.setDirections(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},panel(e,t){e.setPanel(t)},routeIndex(e,t){e.setRouteIndex(t)}};class Ln extends r.PureComponent{constructor(){super(...arguments),p(this,"registeredEvents",[]),p(this,"state",{directionsRenderer:null}),p(this,"setDirectionsRendererCallback",(()=>{null!==this.state.directionsRenderer&&(this.state.directionsRenderer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.directionsRenderer))}))}componentDidMount(){var e=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=y({updaterMap:bn,eventMap:yn,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{directionsRenderer:e}}),this.setDirectionsRendererCallback)}componentDidUpdate(e){null!==this.state.directionsRenderer&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:bn,eventMap:yn,prevProps:e,nextProps:this.props,instance:this.state.directionsRenderer}))}componentWillUnmount(){null!==this.state.directionsRenderer&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),f(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))}render(){return null}}p(Ln,"contextType",h);r.PureComponent;var Cn={onPlacesChanged:"places_changed"},En={bounds(e,t){e.setBounds(t)}};class wn extends r.PureComponent{constructor(){super(...arguments),p(this,"registeredEvents",[]),p(this,"containerElement",(0,r.createRef)()),p(this,"state",{searchBox:null}),p(this,"setSearchBoxCallback",(()=>{null!==this.state.searchBox&&this.props.onLoad&&this.props.onLoad(this.state.searchBox)}))}componentDidMount(){if(d(!!google.maps.places,'You need to provide libraries={["places"]} prop to component %s',google.maps.places),null!==this.containerElement&&null!==this.containerElement.current){var e=this.containerElement.current.querySelector("input");if(null!==e){var t=new google.maps.places.SearchBox(e,this.props.options);this.registeredEvents=y({updaterMap:En,eventMap:Cn,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{searchBox:t}}),this.setSearchBoxCallback)}}}componentDidUpdate(e){null!==this.state.searchBox&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:En,eventMap:Cn,prevProps:e,nextProps:this.props,instance:this.state.searchBox}))}componentWillUnmount(){null!==this.state.searchBox&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),f(this.registeredEvents))}render(){return(0,i.jsx)("div",{ref:this.containerElement,children:r.Children.only(this.props.children)})}}p(wn,"contextType",h);var Mn={onPlaceChanged:"place_changed"},xn={bounds(e,t){e.setBounds(t)},restrictions(e,t){e.setComponentRestrictions(t)},fields(e,t){e.setFields(t)},options(e,t){e.setOptions(t)},types(e,t){e.setTypes(t)}};class kn extends r.PureComponent{constructor(){super(...arguments),p(this,"registeredEvents",[]),p(this,"containerElement",(0,r.createRef)()),p(this,"state",{autocomplete:null}),p(this,"setAutocompleteCallback",(()=>{null!==this.state.autocomplete&&this.props.onLoad&&this.props.onLoad(this.state.autocomplete)}))}componentDidMount(){var e;d(!!google.maps.places,'You need to provide libraries={["places"]} prop to component %s',google.maps.places);var t=null===(e=this.containerElement.current)||void 0===e?void 0:e.querySelector("input");if(t){var n=new google.maps.places.Autocomplete(t,this.props.options);this.registeredEvents=y({updaterMap:xn,eventMap:Mn,prevProps:{},nextProps:this.props,instance:n}),this.setState((()=>({autocomplete:n})),this.setAutocompleteCallback)}}componentDidUpdate(e){f(this.registeredEvents),this.registeredEvents=y({updaterMap:xn,eventMap:Mn,prevProps:e,nextProps:this.props,instance:this.state.autocomplete})}componentWillUnmount(){null!==this.state.autocomplete&&f(this.registeredEvents)}render(){return(0,i.jsx)("div",{ref:this.containerElement,className:this.props.className,children:r.Children.only(this.props.children)})}}p(kn,"defaultProps",{className:""}),p(kn,"contextType",h)},36150:(e,t,n)=>{n.d(t,{I:()=>i});var s=n(69347),o=n(1729);function i(e,t){return(0,o.t)(e,s.$,t)}}}]); \ No newline at end of file diff --git a/build/static/js/5116.88b8f8cf.chunk.js.LICENSE.txt b/build/static/js/5116.88b8f8cf.chunk.js.LICENSE.txt deleted file mode 100644 index c18ab1d..0000000 --- a/build/static/js/5116.88b8f8cf.chunk.js.LICENSE.txt +++ /dev/null @@ -1,14 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ diff --git a/build/static/js/3302.c5347b25.chunk.js b/build/static/js/5172.79835854.chunk.js similarity index 95% rename from build/static/js/3302.c5347b25.chunk.js rename to build/static/js/5172.79835854.chunk.js index 7e4e8aa..685d3b5 100644 --- a/build/static/js/3302.c5347b25.chunk.js +++ b/build/static/js/5172.79835854.chunk.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[3302],{43302:(t,c,a)=>{a.d(c,{Ndh:()=>n,QVr:()=>h,cxC:()=>s,jtd:()=>i,sIY:()=>e,us2:()=>g,x$1:()=>l});var r=a(99230);function h(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"}}]})(t)}function s(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"}}]})(t)}function i(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M0 64C0 46.3 14.3 32 32 32H96h16H288c17.7 0 32 14.3 32 32s-14.3 32-32 32H231.8c9.6 14.4 16.7 30.6 20.7 48H288c17.7 0 32 14.3 32 32s-14.3 32-32 32H252.4c-13.2 58.3-61.9 103.2-122.2 110.9L274.6 422c14.4 10.3 17.7 30.3 7.4 44.6s-30.3 17.7-44.6 7.4L13.4 314C2.1 306-2.7 291.5 1.5 278.2S18.1 256 32 256h80c32.8 0 61-19.7 73.3-48H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H185.3C173 115.7 144.8 96 112 96H96 32C14.3 96 0 81.7 0 64z"}}]})(t)}function n(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M248 0h16c13.3 0 24 10.7 24 24V34.7C368.4 48.1 431.9 111.6 445.3 192H448c17.7 0 32 14.3 32 32s-14.3 32-32 32H64c-17.7 0-32-14.3-32-32s14.3-32 32-32h2.7C80.1 111.6 143.6 48.1 224 34.7V24c0-13.3 10.7-24 24-24zM64 288h64V416h40V288h64V416h48V288h64V416h40V288h64V420.3c.6 .3 1.2 .7 1.7 1.1l48 32c11.7 7.8 17 22.4 12.9 35.9S494.1 512 480 512H32c-14.1 0-26.5-9.2-30.6-22.7s1.1-28.1 12.9-35.9l48-32c.6-.4 1.2-.7 1.8-1.1V288z"}}]})(t)}function e(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"}}]})(t)}function g(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M408 120c0 54.6-73.1 151.9-105.2 192c-7.7 9.6-22 9.6-29.6 0C241.1 271.9 168 174.6 168 120C168 53.7 221.7 0 288 0s120 53.7 120 120zm8 80.4c3.5-6.9 6.7-13.8 9.6-20.6c.5-1.2 1-2.5 1.5-3.7l116-46.4C558.9 123.4 576 135 576 152V422.8c0 9.8-6 18.6-15.1 22.3L416 503V200.4zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6V451.8L32.9 502.7C17.1 509 0 497.4 0 480.4V209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77V504.3L192 449.4V255c20.5 31.3 42.3 59.6 56.2 77c20.5 25.6 59.1 25.6 79.6 0zM288 152a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"}}]})(t)}function l(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"}}]})(t)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[5172],{15172:(t,c,a)=>{a.d(c,{Ndh:()=>n,QVr:()=>h,cxC:()=>s,jtd:()=>i,sIY:()=>e,us2:()=>g,x$1:()=>l});var r=a(21583);function h(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"}}]})(t)}function s(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"}}]})(t)}function i(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M0 64C0 46.3 14.3 32 32 32H96h16H288c17.7 0 32 14.3 32 32s-14.3 32-32 32H231.8c9.6 14.4 16.7 30.6 20.7 48H288c17.7 0 32 14.3 32 32s-14.3 32-32 32H252.4c-13.2 58.3-61.9 103.2-122.2 110.9L274.6 422c14.4 10.3 17.7 30.3 7.4 44.6s-30.3 17.7-44.6 7.4L13.4 314C2.1 306-2.7 291.5 1.5 278.2S18.1 256 32 256h80c32.8 0 61-19.7 73.3-48H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H185.3C173 115.7 144.8 96 112 96H96 32C14.3 96 0 81.7 0 64z"}}]})(t)}function n(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M248 0h16c13.3 0 24 10.7 24 24V34.7C368.4 48.1 431.9 111.6 445.3 192H448c17.7 0 32 14.3 32 32s-14.3 32-32 32H64c-17.7 0-32-14.3-32-32s14.3-32 32-32h2.7C80.1 111.6 143.6 48.1 224 34.7V24c0-13.3 10.7-24 24-24zM64 288h64V416h40V288h64V416h48V288h64V416h40V288h64V420.3c.6 .3 1.2 .7 1.7 1.1l48 32c11.7 7.8 17 22.4 12.9 35.9S494.1 512 480 512H32c-14.1 0-26.5-9.2-30.6-22.7s1.1-28.1 12.9-35.9l48-32c.6-.4 1.2-.7 1.8-1.1V288z"}}]})(t)}function e(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"}}]})(t)}function g(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M408 120c0 54.6-73.1 151.9-105.2 192c-7.7 9.6-22 9.6-29.6 0C241.1 271.9 168 174.6 168 120C168 53.7 221.7 0 288 0s120 53.7 120 120zm8 80.4c3.5-6.9 6.7-13.8 9.6-20.6c.5-1.2 1-2.5 1.5-3.7l116-46.4C558.9 123.4 576 135 576 152V422.8c0 9.8-6 18.6-15.1 22.3L416 503V200.4zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6V451.8L32.9 502.7C17.1 509 0 497.4 0 480.4V209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77V504.3L192 449.4V255c20.5 31.3 42.3 59.6 56.2 77c20.5 25.6 59.1 25.6 79.6 0zM288 152a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"}}]})(t)}function l(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"}}]})(t)}}}]); \ No newline at end of file diff --git a/build/static/js/5180.7a86124f.chunk.js b/build/static/js/5180.7a86124f.chunk.js deleted file mode 100644 index 1f4add9..0000000 --- a/build/static/js/5180.7a86124f.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"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)}}}]); \ No newline at end of file diff --git a/build/static/js/5235.534e4ff6.chunk.js b/build/static/js/5235.534e4ff6.chunk.js new file mode 100644 index 0000000..f8d723e --- /dev/null +++ b/build/static/js/5235.534e4ff6.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[5235],{11041:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Ie});var o=r(22555),i=r(85672),n=r(66157),l=r(41033),a=r(68320),s=r(55235),c=r(97043),d=r(23440),x=r(48738),u=r(71392),h=r(91834),p=r(2866),m=r(76264),g=r(15227),f=r(1939),b=r(17488),v=r(86270),A=r(80911),j=r(83209),y=r(11969),w=r(72486),S=r(54016),k=r(50755),D=r(1596),M=r(81802),C=r(58571),z=r(58689),I=r(19619),W=r(5670),P=r(81062),R=r(17450),Y=r(69039),T=r(48952),L=r(15172),O=r(43e3),N=r(69191),E=r(87),F=r(69810),K=r(91001),H=r(73413),_=r.n(H),B=(r(98443),r(46077)),q=r.n(B),J=r(15059),G=r(94826),Z=r(65908),U=r(22686);q().extend(U);const V=new(_().Icon)({iconUrl:"https://cdn.rawgit.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-green.png",shadowUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],shadowSize:[41,41]}),$=new(_().Icon)({iconUrl:"https://cdn.rawgit.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-red.png",shadowUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],shadowSize:[41,41]}),X=e=>{let{coordinates:t,additionalProps:r,order:o,setMapOpen:n}=e;console.log("additionalProps",r);const l=(0,i.useRef)(null),a=(0,Y.A)(),[s,c]=(0,i.useState)([]),[d,h]=(0,i.useState)(!1);if((0,i.useEffect)((()=>{if(l.current&&t.length>0){const e=[[Math.min(...t.map((e=>e.lat))),Math.min(...t.map((e=>e.lng)))],[Math.max(...t.map((e=>e.lat))),Math.max(...t.map((e=>e.lng)))]];l.current.fitBounds(e)}}),[t]),(0,i.useEffect)((()=>{(async()=>{if(h(!0),t.length<2)return c([]),void h(!1);const e=(e,t)=>{if(e.length<=t)return e;const r=Math.ceil(e.length/t),o=e.filter(((e,t)=>t%r===0)),i=e[e.length-1];return o[o.length-1]!==i&&o.push(i),o};try{const r=e(t,90).map((e=>"".concat(e.lng,",").concat(e.lat))).join(";"),o="https://router.project-osrm.org/match/v1/driving/".concat(r,"?overview=full&geometries=geojson&gaps=ignore&tidy=true"),i=await fetch(o),n=await i.json();if(n.matchings&&n.matchings.length>0){const e=n.matchings.flatMap((e=>{var t;return((null===(t=e.geometry)||void 0===t?void 0:t.coordinates)||[]).map((e=>{let[t,r]=e;return{lat:r,lng:t}}))}));if(e.length>=2)return c(e),void h(!1)}}catch(r){console.warn("OSRM Match error, trying route fallback:",r)}try{const r=e(t,25).map((e=>"".concat(e.lng,",").concat(e.lat))).join(";"),o="https://router.project-osrm.org/route/v1/driving/".concat(r,"?overview=full&geometries=geojson"),i=await fetch(o),n=await i.json();if(n.routes&&n.routes[0]){const e=n.routes[0].geometry.coordinates.map((e=>{let[t,r]=e;return{lat:r,lng:t}}));c(e)}else c(t)}catch(o){console.error("OSRM Route fallback error:",o),c(t)}finally{h(!1)}})()}),[t]),!t||0===t.length)return null;const m=t[0],g=t[t.length-1],f=t[Math.floor(t.length/2)],b=e=>{let{label:t,value:r}=e;return(0,Z.jsxs)(u.A,{direction:"row",spacing:1,alignItems:"center",children:[(0,Z.jsxs)(p.A,{variant:"subtitle1",sx:{fontWeight:600},children:[t,":"]}),(0,Z.jsx)(P.A,{label:r||"0.00",color:"primary",sx:{fontWeight:700}})]})};return(0,Z.jsxs)(x.A,{sx:{width:"100%",height:"100vh",position:"relative",overflow:"hidden"},children:[d&&(0,Z.jsx)(G.A,{}),(0,Z.jsx)(P.A,{label:"Close",icon:(0,Z.jsx)(J.A,{style:{fontSize:18}}),onClick:()=>n(!1),sx:{position:"absolute",top:12,right:12,zIndex:2e3,bgcolor:a.palette.error.main,color:"#fff",fontWeight:600,borderRadius:"12px",px:1.5,py:.5,boxShadow:a.shadows[4],cursor:"pointer","& .MuiChip-icon":{color:"#fff"}}}),(0,Z.jsxs)(O.W,{center:f,zoom:14,scrollWheelZoom:!0,style:{height:"100%",width:"100%"},ref:l,children:[(0,Z.jsx)(N.e,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),(0,Z.jsx)(E.p,{position:m,icon:V,children:(0,Z.jsx)(F.m,{direction:"bottom",children:"Pickup: ".concat(q()(r.riderStart).format("DD-MM-YYYY hh:mm A"))})}),(0,Z.jsx)(E.p,{position:g,icon:$,children:(0,Z.jsx)(F.m,{direction:"bottom",children:"Drop: ".concat(q()(r.riderEnd).format("DD-MM-YYYY hh:mm A"))})}),s.length>0&&(0,Z.jsx)(K.R,{positions:s,pathOptions:{color:"blue",weight:5}})]}),(0,Z.jsx)(x.A,{sx:{position:"absolute",bottom:0,width:"100%",bgcolor:"rgba(255,255,255,0.96)",p:2,boxShadow:a.shadows[3],zIndex:1500},children:(0,Z.jsxs)(u.A,{direction:"row",flexWrap:"wrap",rowGap:1.5,columnGap:3,alignItems:"center",children:[(0,Z.jsx)(b,{label:"Tenant",value:null===o||void 0===o?void 0:o.tenantname}),(0,Z.jsx)(b,{label:"Rider",value:null===o||void 0===o?void 0:o.ridername}),(0,Z.jsx)(b,{label:"Pickup",value:null===o||void 0===o?void 0:o.pickupcustomer}),(0,Z.jsx)(b,{label:"Drop",value:null===o||void 0===o?void 0:o.deliverycustomer}),(0,Z.jsx)(b,{label:"Kms",value:null===o||void 0===o?void 0:o.kms}),(0,Z.jsx)(b,{label:"Actual Kms",value:null===o||void 0===o?void 0:o.actualkms}),(0,Z.jsx)(b,{label:"Rider Kms",value:null===o||void 0===o?void 0:o.riderkms})]})})]})};var Q=r(81425),ee=r(90376),te=r(52351),re=r(13659),oe=r(35678),ie=r(56311),ne=r(58691),le=r(59212),ae=r(27001),se=r(36803),ce=r(20466);function de(e){let{rows:t=5,columns:r=6,height:o=40}=e;return(0,Z.jsx)(Z.Fragment,{children:[...Array(t)].map(((e,t)=>(0,Z.jsx)(k.A,{children:[...Array(r)].map(((e,t)=>(0,Z.jsx)(D.A,{children:(0,Z.jsx)(h.A,{variant:"rectangular",height:o,width:70,animation:"wave"})},t)))},t)))})}var xe=r(23787),ue=r(22686);q().extend(ue);const he=(e,t,r)=>{(0,re.M8)(e,{variant:t,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:r||1500})},pe={radiusPill:999,radiusCard:14,shadowSoft:"0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05)",shadowMd:"0 1px 3px rgba(15, 23, 42, 0.06)",shadowPop:"0 12px 32px rgba(15, 23, 42, 0.12)",textPrimary:"#0f172a",textSecondary:"#64748b",textMuted:"#94a3b8",borderSubtle:"#e2e8f0",divider:"#f1f5f9",surface:"#ffffff",surfaceAlt:"#f8fafc"},me=(e,t)=>"".concat(e).concat(t),ge=e=>me(e,"08"),fe=e=>me(e,"18"),be=e=>me(e,"26"),ve=e=>me(e,"55"),Ae="#662582",je="#9255AB",ye=e=>(0,Z.jsx)(s.A,(0,o.A)((0,o.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:pe.shadowPop,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),we=e=>{let{color:t,selected:r,size:o=24,children:i}=e;return(0,Z.jsx)(c.A,{sx:{width:o,height:o,bgcolor:r?t:fe(t),color:r?"#fff":t,transition:"background-color 0.15s, color 0.15s"},children:i})},Se=e=>({"& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,"& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(be(e))},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:1.5}}}),ke={all:{label:"All",color:Ae,icon:T.YBc},pending:{label:"Pending",color:"#f59e0b",icon:T.tX0},accepted:{label:"Accepted",color:"#6366f1",icon:T.Azs},arrived:{label:"Arrived",color:"#06b6d4",icon:T.gwi},picked:{label:"Picked",color:"#8b5cf6",icon:T.gsJ},active:{label:"Active",color:"#14b8a6",icon:T.pk7},delivered:{label:"Delivered",color:"#10b981",icon:T.mU9},skipped:{label:"Skipped",color:"#f97316",icon:T.ivF},cancelled:{label:"Cancelled",color:"#ef4444",icon:T.uDv}},De=["all","pending","accepted","arrived","picked","active","delivered","skipped","cancelled"],Me=e=>{let{color:t,icon:r,label:o,tooltip:i}=e;return(0,Z.jsx)(d.A,{title:i||"",placement:"top",children:(0,Z.jsxs)(x.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(ve(t)),color:t,fontSize:11,fontWeight:800,minWidth:80,justifyContent:"center",whiteSpace:"nowrap"},children:[r,o]})})},Ce=e=>{let{value:t,formatDate:r,formatTime:o,success:i}=e;return t?(0,Z.jsxs)(u.A,{spacing:.25,children:[(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary,fontWeight:600,whiteSpace:"nowrap"},children:r(t)}),(0,Z.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:.5,children:[(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textPrimary,fontWeight:800,whiteSpace:"nowrap"},children:o(t)}),i&&(0,Z.jsx)(L.cxC,{style:{color:"#10b981",fontSize:12}})]})]}):(0,Z.jsxs)(u.A,{spacing:.5,children:[(0,Z.jsx)(h.A,{animation:!1,variant:"text",width:70,height:12}),(0,Z.jsx)(h.A,{animation:!1,variant:"text",width:55,height:14})]})};function ze(e,t){const r=e=>e*Math.PI/180,o=r(e[0]),i=r(t[0]),n=r(t[0]-e[0]),l=r(t[1]-e[1]),a=Math.sin(n/2)**2+Math.cos(o)*Math.cos(i)*Math.sin(l/2)**2;return 12742*Math.asin(Math.min(1,Math.sqrt(a)))}function Ie(){const e=(0,Y.A)(),t=(0,m.A)(e.breakpoints.down("md")),r=(0,i.useRef)(),h=(0,i.useRef)(),L=(0,i.useRef)(null),O=(0,i.useRef)(null),N=localStorage.getItem("userid"),[E,F]=(0,i.useState)(0),[K,H]=(0,i.useState)(50),[_,B]=(0,i.useState)("All"),[J,U]=(0,i.useState)(q()().format("YYYY-MM-DD")),[V,$]=(0,i.useState)(q()().format("YYYY-MM-DD")),[ue,me]=(0,i.useState)(!1),[Ie,We]=(0,i.useState)(!1),[Pe,Re]=(0,i.useState)("Today"),[Ye,Te]=(0,i.useState)(0),[Le,Oe]=(0,i.useState)(""),[Ne,Ee]=(0,i.useState)(""),[Fe,Ke]=(0,i.useState)([]),[He,_e]=(0,i.useState)(),[Be,qe]=(0,i.useState)(),[Je,Ge]=(0,i.useState)({}),[Ze,Ue]=(0,i.useState)(!1);let[Ve,$e]=(0,i.useState)(0),[Xe,Qe]=(0,i.useState)(0),[et,tt]=(0,i.useState)(0),[rt,ot]=(0,i.useState)(0),[it,nt]=(0,i.useState)(0),[lt,at]=(0,i.useState)(0),[st,ct]=(0,i.useState)(0),[dt,xt]=(0,i.useState)(0),[ut,ht]=(0,i.useState)(0);const[pt,mt]=(0,i.useState)("All"),[gt,ft]=(0,i.useState)(0),[bt,vt]=(0,i.useState)(0),[At,jt]=(0,i.useState)(null),[yt,wt]=(0,i.useState)(null),[St,kt]=(0,i.useState)(),[Dt,Mt]=(0,i.useState)(null),[Ct,zt]=(0,i.useState)(!1),[It,Wt]=(0,i.useState)(!1),Pt={all:Ve,pending:et,accepted:it,arrived:dt,picked:lt,active:st,delivered:Xe,skipped:ut,cancelled:rt};function Rt(e,t,r,o){const i=(r-e)*(Math.PI/180),n=(o-t)*(Math.PI/180),l=Math.sin(i/2)*Math.sin(i/2)+Math.cos(e*(Math.PI/180))*Math.cos(r*(Math.PI/180))*Math.sin(n/2)*Math.sin(n/2);return 6371*(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)))}(0,i.useEffect)((()=>{vt(0),jt(null),ft(0),wt(null),kt(null),Mt(null)}),[Ye]),(0,i.useEffect)((()=>{ft(0),wt(null),Mt(null)}),[bt]),(0,i.useEffect)((()=>{Mt(null)}),[gt]);const Yt=async e=>{Wt(!0);try{const t=(await n.A.get("".concat("https://jupiter.nearle.app/live/api/v3","/deliveries/getdeliverylogs/?deliveryid=").concat(e))).data.details;if(Array.isArray(t)&&0!==t.length){const e=t.map((e=>{var t,r,o;const i=null!==e&&void 0!==e&&e.logdate?q()(e.logdate):null;return{lat:parseFloat(null!==(t=null===e||void 0===e?void 0:e.latitude)&&void 0!==t?t:null===e||void 0===e?void 0:e.lat),lng:parseFloat(null!==(r=null!==(o=null===e||void 0===e?void 0:e.longitude)&&void 0!==o?o:null===e||void 0===e?void 0:e.lng)&&void 0!==r?r:null===e||void 0===e?void 0:e.lon),logdate:null===e||void 0===e?void 0:e.logdate,_ts:i&&i.isValid()?i.valueOf():Number.MAX_SAFE_INTEGER}})).filter((e=>Number.isFinite(e.lat)&&Number.isFinite(e.lng))).sort(((e,t)=>e._ts-t._ts));if(0!==e.length){_e(e[0].logdate),qe(e[e.length-1].logdate);const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Array.isArray(e)||0===e.length)return[];const r=e.filter((e=>Number.isFinite(e.lat)&&Number.isFinite(e.lng)&&(Math.abs(e.lat)>.1||Math.abs(e.lng)>.1)));if(0===r.length)return[];if(1===r.length)return[{lat:r[0].lat,lng:r[0].lng,logdate:r[0].logdate,_ts:r[0]._ts}];const o=null!=t.processNoise?t.processNoise:1e-10,i=null!=t.measurementNoise?t.measurementNoise:2e-9,n=null!=t.outlierGate?t.outlierGate:9,l=null!=t.maxSpeedKmh?t.maxSpeedKmh:120,a=e=>e._ts||(e.logdate?new Date(e.logdate).getTime():0);let s=0;for(;sl||(c.push(e),d=t)}if(c.length<2)return c.map((e=>({lat:e.lat,lng:e.lng,logdate:e.logdate,_ts:e._ts})));const x=e=>{const t=c.length,r=new Array(t),l=new Array(t),s=new Array(t),d=new Array(t),x=new Array(t),u=a(c[0]),h=a(c[1]),p=Math.max(.1,(h-u)/1e3),m=(c[1][e]-c[0][e])/p;r[0]=[c[0][e],m],l[0]=[i,0,0,1],s[0]=r[0].slice(),d[0]=l[0].slice(),x[0]=0;let g=u;for(let b=1;bn){r[b]=[m,f],l[b]=[k,D,M,C];continue}const W=k/I,P=M/I,R=m+W*z,Y=f+P*z;r[b]=[R,Y],l[b]=[(1-W)*k,(1-W)*D,M-P*k,C-P*D]}const f=new Array(t);f[t-1]=r[t-1].slice();for(let o=t-2;o>=0;o--){const e=x[o+1],[t,i,n,a]=l[o],c=t+e*i,u=i,h=n+e*a,p=a,[m,g,b,v]=d[o+1],A=m*v-g*b;if(!Number.isFinite(A)||Math.abs(A)<1e-30){f[o]=r[o].slice();continue}const j=v/A,y=-g/A,w=-b/A,S=m/A,k=c*j+u*w,D=c*y+u*S,M=h*j+p*w,C=h*y+p*S,z=f[o+1][0]-s[o+1][0],I=f[o+1][1]-s[o+1][1];f[o]=[r[o][0]+k*z+D*I,r[o][1]+M*z+C*I]}return f.map((e=>e[0]))},u=x("lat"),h=x("lng");return c.map(((e,t)=>({lat:u[t],lng:h[t],logdate:e.logdate,_ts:e._ts})))}(e),r=t.map((e=>({lat:e.lat,lng:e.lng})));Ke(r),function(e){let t=0;for(let r=0;r{var t;return null!==(t=e.nextPage)&&void 0!==t?t:void 0},refetchOnWindowFocus:!0,refetchOnMount:!0,refetchOnReconnect:!0}),Ht=(null===Tt||void 0===Tt?void 0:Tt.pages.flatMap((e=>e.rows)))||[];(0,i.useEffect)((()=>{if(!Ft)return;const e=new IntersectionObserver((e=>{e[0].isIntersecting&&Et()}),{root:document.querySelector(".MuiTableContainer-root"),rootMargin:"0px",threshold:1});return r.current&&e.observe(r.current),()=>{r.current&&e.unobserve(r.current)}}),[Ft,Et]);const{data:_t,isLoading:Bt,isError:qt,error:Jt}=(0,a.I)({queryKey:["tenantlist",Ye],queryFn:()=>(0,Q.Mn)(Ye),enabled:0!==Ye}),{data:Gt,isLoading:Zt,isError:Ut,error:Vt}=(0,a.I)({queryKey:["fetchRidersList",Ye],queryFn:Q.Sd,enabled:0!==Ye}),{data:$t,isLoading:Xt,isError:Qt,error:er}=(0,a.I)({queryKey:["gettenantlocations",bt],queryFn:()=>(0,Q.DL)(bt),enabled:0!==bt});(0,i.useEffect)((()=>{(async()=>{Ue(!0);try{await n.A.get(0==Ye?"".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/deliverysummary/?fromdate=").concat(J,"&todate=").concat(V):"".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/deliverysummary/?applocationid=").concat(Ye,"&tenantid=").concat(bt,"&locationid=").concat(gt,"&fromdate=").concat(J,"&todate=").concat(V,"&userid=").concat((null===St||void 0===St?void 0:St.userid)||0)).then((e=>{$e(e.data.details.total),tt(e.data.details.pending),nt(e.data.details.accepted),xt(e.data.details.arrived),at(e.data.details.picked),ct(e.data.details.active),Qe(e.data.details.delivered),ht(e.data.details.skipped),ot(e.data.details.cancelled)})).catch((e=>{(0,re.M8)(e.message,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3})}))}catch(e){console.log(e)}finally{Ue(!1)}})()}),[Ye,J,V,pt,bt,gt,St]);const tr=null===Ht||void 0===Ht?void 0:Ht.map((e=>({tenantname:e.tenantname,tenantcity:e.tenantcity,tenantcontactno:e.tenantcontactno,rider:e.ridername,orderid:e.orderid,paymenttype:64==e.paymenttype?"Pay Later":42==e.paymenttype?"Pay on Delivery":"Digital",deliverydate:e.deliverydate,orderstatus:e.orderstatus,ordernotes:e.ordernotes,kms:e.kms,cumulativekms:e.cumulativekms,assigntime:e.assigntime,starttime:e.starttime,arrivaltime:e.arrivaltime,pickuptime:e.pickuptime,deliverytime:e.deliverytime,canceltime:e.canceltime,deliverycharge:e.deliverycharges,deliveryamt:e.deliveryamt,pickupcustomer:e.pickupcustomer,pickupcontactno:e.pickupcontactno,Pickupaddress:e.pickupaddress,pickupsuburb:e.pickupsuburb,pickupcity:e.applocation,pickuplat:e.pickuplat,pickuplong:e.pickuplon,deliverycustomer:e.deliverycustomer,deliverycontactno:e.deliverycontactno,deliveryaddress:e.deliveryaddress,deliverysuburb:e.locationsuburb,deliverylat:e.deliverylat,deliverylong:e.deliverylong,locationname:e.locationname,locationsuburb:e.pickuplocation,deliverylocation:e.deliverylocation,locationcontactno:e.locationcontactno})));function rr(e){return q()(e).format("DD/MM/YYYY ")}function or(e){return q()(e).format(" hh:mm A")}const ir=Ot?"An error has occurred: (fetchDeliveries) ".concat(Nt.message):qt?"An error has occurred: (getTenants) ".concat(Jt.message):Qt?"An error has occurred: (gettenantlocations) ".concat(er.message):Ut?"An error has occurred: (getriderbydelivery) ".concat(Vt.message):null;(0,i.useEffect)((()=>{ir&&he(ir,"warning",2e3)}),[ir]);const nr=[{key:"total",label:"Total Orders",color:Ae,icon:T.HU2,value:Ve},{key:"delivered",label:"Delivered",color:"#10b981",icon:T.cAP,value:Xe},{key:"pending",label:"Pending",color:"#f59e0b",icon:T.G6c,value:et},{key:"cancelled",label:"Cancelled",color:"#ef4444",icon:T.qiG,value:rt}];return(0,Z.jsxs)(Z.Fragment,{children:[(Ze||Bt||Xt||It||Zt||Kt)&&(0,Z.jsx)("div",{children:(0,Z.jsx)(te.A,{})}),Lt&&(0,Z.jsx)(g.A,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:Lt}),(0,Z.jsx)(ae.A,{title:"Orders Details",subtitle:"Live \xb7 ".concat(_||"All Zones"," \xb7 ").concat(Pe),live:!0,action:(0,Z.jsx)(le.A,{ref:L,locaName:_,setAppId:Te,setLocoName:B,setPage:F,pill:!0,accentColor:Ae,icon:(0,Z.jsx)(T.HPi,{size:14}),placeholder:"Select Zone",paperComponent:ye,sx:{width:{xs:"100%",sm:280},zIndex:100}})}),(0,Z.jsx)(f.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:nr.map((e=>{var t;const r=e.icon;return(0,Z.jsx)(f.Ay,{item:!0,xs:6,sm:6,md:3,children:(0,Z.jsx)(se.A,{title:e.label,value:null!==(t=e.value)&&void 0!==t?t:0,icon:(0,Z.jsx)(r,{size:20}),color:e.color,loading:Ze})},e.key)}))}),(0,Z.jsx)(s.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1.25,md:1.75},borderRadius:pe.radiusCard/8,border:"1px solid",borderColor:pe.borderSubtle,background:"#fff",boxShadow:pe.shadowSoft},children:(0,Z.jsxs)(f.Ay,{container:!0,spacing:1.25,alignItems:"center",children:[(0,Z.jsx)(f.Ay,{item:!0,xs:12,sm:6,md:3,children:(0,Z.jsx)(b.A,{options:_t||[],value:At,getOptionLabel:e=>(null===e||void 0===e?void 0:e.tenantname)||"",PaperComponent:ye,onOpen:e=>{Ye||(e.preventDefault(),(0,ce.k)("Please select a your app location first!","warning",3e3),setTimeout((()=>{var e;null===(e=L.current)||void 0===e||e.focus()}),0))},onChange:(e,t,r)=>{"clear"===r?(vt(0),jt(null),ft(0),wt(null)):(vt((null===t||void 0===t?void 0:t.tenantid)||0),jt(t),ft(t.locationid),wt(null))},renderInput:e=>(0,Z.jsx)(v.A,(0,o.A)((0,o.A)({},e),{},{inputRef:O,placeholder:"Select Tenant",size:"small",sx:Se("#0ea5e9"),InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:(0,Z.jsx)(u.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5},children:(0,Z.jsx)(we,{color:"#0ea5e9",size:22,selected:!0,children:(0,Z.jsx)(T.Itr,{size:13})})})})}))})}),(0,Z.jsx)(f.Ay,{item:!0,xs:12,sm:6,md:3,children:(0,Z.jsx)(b.A,{options:$t||[],getOptionLabel:e=>e?"".concat(e.locationname," (").concat(e.suburb,")"):"",value:yt,PaperComponent:ye,onOpen:e=>{Ye||bt?bt||(e.preventDefault(),(0,ce.k)("Please select a your Tenant first!","warning",3e3),setTimeout((()=>{var e;null===(e=O.current)||void 0===e||e.focus()}),0)):(e.preventDefault(),(0,ce.k)("Please select a your Location and Tenant first!","warning",3e3),setTimeout((()=>{var e;null===(e=L.current)||void 0===e||e.focus()}),0))},onChange:(e,t,r)=>{"clear"===r?(ft(0),wt(null)):(ft(t.locationid||0),wt(t))},renderInput:e=>(0,Z.jsx)(v.A,(0,o.A)((0,o.A)({},e),{},{placeholder:"Select Location",size:"small",sx:Se("#10b981"),InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:(0,Z.jsx)(u.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5},children:(0,Z.jsx)(we,{color:"#10b981",size:22,selected:!0,children:(0,Z.jsx)(T.JFD,{size:13})})})})}))})}),(0,Z.jsx)(f.Ay,{item:!0,xs:12,sm:6,md:3,children:(0,Z.jsx)(b.A,{options:Gt||[],value:Dt,getOptionLabel:e=>"".concat(e.firstname," ").concat(e.lastname),PaperComponent:ye,onOpen:()=>{Ye||(0,ce.k)("Select App Location First","warning",2e3)},onChange:(e,t,r)=>{"clear"===r?(kt(null),Mt(null)):(kt(t),Mt(t))},renderInput:e=>(0,Z.jsx)(v.A,(0,o.A)((0,o.A)({},e),{},{placeholder:"Select Rider",size:"small",sx:Se("#8b5cf6"),InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:(0,Z.jsx)(u.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5},children:(0,Z.jsx)(we,{color:"#8b5cf6",size:22,selected:!0,children:(0,Z.jsx)(T.bsz,{size:13})})})})}))})}),(0,Z.jsx)(f.Ay,{item:!0,xs:12,sm:6,md:3,children:(0,Z.jsxs)(u.A,{direction:"row",spacing:1,alignItems:"center",justifyContent:{xs:"flex-start",md:"flex-end"},children:[(0,Z.jsx)(d.A,{title:"Date Filter",placement:"top",children:(0,Z.jsxs)(x.A,{onClick:()=>me(!0),sx:{display:"inline-flex",alignItems:"center",gap:.75,px:1.25,py:.75,borderRadius:999,cursor:"pointer",bgcolor:ge("#f59e0b"),border:"1.5px solid ".concat(ve("#f59e0b")),color:"#f59e0b",fontWeight:800,fontSize:12,transition:"all 0.18s","&:hover":{borderColor:"#f59e0b",boxShadow:"0 0 0 3px ".concat(be("#f59e0b"))}},children:[(0,Z.jsx)(T.Ki0,{size:14}),q()(J).format("DD/MM/YY")," \u2013 ",q()(V).format("DD/MM/YY")]})}),(0,Z.jsx)(A.A,{variant:"contained",size:"small",startIcon:(0,Z.jsx)(T.S3Y,{}),onClick:()=>{zt(!0),setTimeout((()=>{H("")}),0)},sx:{borderRadius:999,px:1.5,py:.75,fontWeight:800,fontSize:12,textTransform:"none",background:"linear-gradient(135deg, ".concat(Ae," 0%, ").concat(je," 100%)"),"&:hover":{background:"linear-gradient(135deg, ".concat(Ae," 0%, ").concat(je," 100%)"),boxShadow:"0 8px 22px ".concat(be(Ae))}},children:"Export"})]})})]})}),(0,Z.jsx)(s.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:pe.radiusCard/8,borderTopRightRadius:pe.radiusCard/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:pe.borderSubtle,borderBottom:0,background:"#fff"},children:(0,Z.jsxs)(u.A,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:1.5,sx:{flexWrap:"wrap-reverse"},children:[(0,Z.jsx)(u.A,{direction:"row",spacing:.75,sx:{flex:1,overflowX:"auto",py:.5,px:.25,"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-thumb":{backgroundColor:pe.borderSubtle,borderRadius:4}},children:De.map((e=>{var t;const r=ke[e],o=r.icon,i=pt.toLowerCase()===e,n=null!==(t=Pt[e])&&void 0!==t?t:0;return(0,Z.jsxs)(x.A,{onClick:()=>mt("all"===e?"All":e),sx:{display:"inline-flex",alignItems:"center",gap:{xs:.625,md:.875},pl:.5,pr:{xs:1,md:1.25},py:.5,flexShrink:0,cursor:"pointer",borderRadius:999,border:"1px solid ".concat(i?r.color:pe.borderSubtle),bgcolor:i?r.color:pe.surface,color:i?"#fff":pe.textSecondary,fontWeight:600,boxShadow:"none",transition:"background-color 0.15s, border-color 0.15s, color 0.15s","&:hover":{borderColor:i?r.color:"#cbd5e1",bgcolor:i?r.color:pe.surfaceAlt}},children:[(0,Z.jsx)(c.A,{sx:{width:{xs:22,md:26},height:{xs:22,md:26},bgcolor:i?"rgba(255,255,255,0.22)":fe(r.color),color:i?"#fff":r.color},children:(0,Z.jsx)(o,{size:13})}),(0,Z.jsx)(p.A,{variant:"caption",sx:{fontWeight:600,fontSize:{xs:11.5,md:13},lineHeight:1},children:r.label}),(0,Z.jsx)(x.A,{sx:{minWidth:{xs:22,md:26},height:{xs:18,md:22},px:.625,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:999,fontSize:{xs:10,md:11},fontWeight:700,bgcolor:i?"rgba(255,255,255,0.22)":pe.surfaceAlt,color:i?"#fff":pe.textSecondary,border:"none"},children:n})]},e)}))}),(0,Z.jsx)(x.A,{sx:{width:{xs:"100%",sm:240,lg:280},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,Z.jsx)(ie.A,{value:Le,onChange:Oe,onDebouncedChange:Ee,placeholder:"Search orders (ctrl+k)",sx:{m:0,width:"100%",borderRadius:999,bgcolor:"#ffffff","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:1.5},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(be(Ae))}}})})]})}),(0,Z.jsx)(s.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:pe.radiusCard/8,borderBottomRightRadius:pe.radiusCard/8,border:"1px solid",borderColor:pe.borderSubtle,overflow:"hidden",background:"#fff"},children:(0,Z.jsxs)(j.A,{ref:h,onScroll:e=>{const{scrollTop:t,scrollHeight:r,clientHeight:o}=e.currentTarget;t+o>=r-50&&Ft&&!Kt&&Et()},sx:{maxHeight:{xs:"calc(100vh - 220px)",md:"calc(100vh - 190px)"},overflow:"auto","&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:ve(Ae),borderRadius:8,"&:hover":{backgroundColor:Ae}},"&::-webkit-scrollbar-track":{backgroundColor:pe.surfaceAlt}},children:[t?(0,Z.jsx)(xe.nV,{sx:{p:1.25},children:Lt?(0,Z.jsxs)(u.A,{alignItems:"center",sx:{py:6},children:[(0,Z.jsx)(ne.A,{}),(0,Z.jsx)(p.A,{variant:"caption",color:"text.secondary",sx:{mt:1},children:"Loading orders\u2026"})]}):0==(null===Ht||void 0===Ht?void 0:Ht.length)?(0,Z.jsxs)(u.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,Z.jsx)(c.A,{sx:{width:64,height:64,bgcolor:fe("#94a3b8"),color:pe.textMuted},children:(0,Z.jsx)(T.Z2J,{size:28})}),(0,Z.jsx)(p.A,{variant:"subtitle1",sx:{fontWeight:700,color:pe.textPrimary},children:"No orders to show"}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary,textAlign:"center",px:2},children:Le?"Try a different keyword.":"Adjust the filters above to load orders."})]}):null===Ht||void 0===Ht?void 0:Ht.map(((e,t)=>{var r;const o=String(e.orderstatus||"").toLowerCase(),i=ke[o]||{label:e.orderstatus||"\u2014",color:Ae,icon:T.Z2J},n=i.icon,l="cancelled"===o,a="delivered"===e.orderstatus;return(0,Z.jsx)(xe.pg,{accent:i.color,header:(0,Z.jsxs)(u.A,{spacing:1.25,children:[(0,Z.jsxs)(u.A,{direction:"row",alignItems:"flex-start",justifyContent:"space-between",spacing:1,children:[(0,Z.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:.75,sx:{minWidth:0},children:[(0,Z.jsx)(p.A,{variant:"caption",sx:{fontWeight:700,color:pe.textMuted},children:String(E*K+t+1).padStart(2,"0")}),(0,Z.jsx)(we,{color:Ae,size:32,children:(0,Z.jsx)(T.Itr,{size:16})}),(0,Z.jsxs)(u.A,{spacing:.25,sx:{minWidth:0},children:[(0,Z.jsx)(p.A,{variant:"subtitle2",sx:{fontWeight:700,color:pe.textPrimary},noWrap:!0,children:e.tenantname}),(0,Z.jsxs)(p.A,{variant:"caption",sx:{color:pe.textSecondary,fontWeight:700},children:["#",e.orderid]})]})]}),(0,Z.jsx)(d.A,{title:a?"View rider route":"Available for delivered orders",placement:"top",children:(0,Z.jsx)("span",{children:(0,Z.jsx)(y.A,{size:"small",disabled:!a,onClick:()=>{a&&(Yt(e.deliveryid),Ge(e))},sx:{flexShrink:0,bgcolor:fe(a?Ae:"#94a3b8"),color:a?Ae:pe.textMuted,border:"1px solid ".concat(ve(a?Ae:"#94a3b8")),"&:hover":{bgcolor:a?Ae:fe("#94a3b8"),color:a?"#fff":pe.textMuted}},children:(0,Z.jsx)(T.Cd7,{size:14})})})})]}),(0,Z.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:.75,sx:{flexWrap:"wrap",gap:.5},children:[(0,Z.jsxs)(x.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:ge(i.color),border:"1px solid ".concat(ve(i.color)),color:i.color,fontSize:11,fontWeight:800},children:[(0,Z.jsx)(n,{size:12})," ",i.label]}),e.ridername&&(0,Z.jsxs)(x.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:ge("#8b5cf6"),border:"1px solid ".concat(ve("#8b5cf6")),color:"#8b5cf6",fontSize:11,fontWeight:800},children:[(0,Z.jsx)(T.bsz,{size:12})," ",e.ridername]}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textMuted,fontWeight:600},children:q()(e.deliverydate).utc().format("DD/MM/YYYY \xb7 hh:mm A")})]})]}),children:(0,Z.jsxs)(xe.FG,{children:[(0,Z.jsx)(xe.pY,{label:"Pickup",children:(0,Z.jsxs)(u.A,{spacing:.25,sx:{minWidth:0},children:[(0,Z.jsx)(p.A,{sx:{fontSize:13,fontWeight:700,color:pe.textPrimary},noWrap:!0,children:e.pickupcustomer||"\u2014"}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary},noWrap:!0,children:e.pickupcontactno}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary},noWrap:!0,children:e.pickupsuburb||(e.Pickupaddress?e.Pickupaddress.slice(0,22)+"\u2026":"")}),e.applocation&&(0,Z.jsxs)(x.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:.75,py:.25,borderRadius:999,bgcolor:ge("#10b981"),border:"1px solid ".concat(ve("#10b981")),color:"#10b981",fontSize:10,fontWeight:800,width:"fit-content"},children:[(0,Z.jsx)(T.JFD,{size:11})," ",e.applocation]})]})}),(0,Z.jsx)(xe.pY,{label:"Drop",children:(0,Z.jsxs)(u.A,{spacing:.25,sx:{minWidth:0},children:[(0,Z.jsx)(p.A,{sx:{fontSize:13,fontWeight:700,color:pe.textPrimary},noWrap:!0,children:e.deliverycustomer||"\u2014"}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary},noWrap:!0,children:e.deliverycontactno}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary},noWrap:!0,children:e.deliverysuburb||(e.deliveryaddress?e.deliveryaddress.slice(0,22)+"\u2026":"")})]})}),(0,Z.jsx)(xe.pY,{label:"Assigned",children:(0,Z.jsx)(Ce,{value:e.assigntime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(xe.pY,{label:"Accepted",children:(0,Z.jsx)(Ce,{value:e.acceptedtime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(xe.pY,{label:"Arrived",children:(0,Z.jsx)(Ce,{value:e.arrivaltime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(xe.pY,{label:"Picked",children:(0,Z.jsx)(Ce,{value:e.pickuptime,formatDate:rr,formatTime:or,success:"active"===e.deliverystatus})}),(0,Z.jsx)(xe.pY,{label:"Active",children:(0,Z.jsx)(Ce,{value:e.starttime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(xe.pY,{label:"Delivered",children:(0,Z.jsx)(Ce,{value:e.deliverytime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(xe.pY,{label:"Cancelled",children:(0,Z.jsx)(Ce,{value:e.canceltime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(xe.pY,{label:"KMS \xb7 plan / act / rider",full:!0,children:(0,Z.jsxs)(u.A,{direction:"row",spacing:.5,sx:{flexWrap:"wrap",gap:.5},children:[(0,Z.jsx)(Me,{color:"#ef4444",icon:(0,Z.jsx)(T.xI$,{size:11}),label:l||""==e.kms?"0 km":"".concat(e.kms," km"),tooltip:"KMS"}),(0,Z.jsx)(Me,{color:"#10b981",icon:(0,Z.jsx)(T.xI$,{size:11}),label:"".concat(null!==(r=e.cumulativekms)&&void 0!==r?r:0," km"),tooltip:"Actual KMS"}),(0,Z.jsx)(Me,{color:"#0ea5e9",icon:(0,Z.jsx)(T.xI$,{size:11}),label:"".concat(e.previouskms||(l?"0.00":e.kms)||0," km"),tooltip:"Rider KMS"})]})}),(0,Z.jsx)(xe.pY,{label:"Charges \xb7 chg / amt",full:!0,children:(0,Z.jsxs)(u.A,{direction:"row",spacing:.5,sx:{flexWrap:"wrap",gap:.5},children:[(0,Z.jsx)(Me,{color:"#ef4444",icon:(0,Z.jsx)(T.YHz,{size:11}),label:l||""==e.deliverycharges?"0.00":"".concat(e.deliverycharges,".00"),tooltip:"Delivery Charge"}),(0,Z.jsx)(Me,{color:"#10b981",icon:(0,Z.jsx)(T.YHz,{size:11}),label:""==e.deliveryamt?"0.00":"".concat(e.deliveryamt,".00"),tooltip:"Delivery Amount"})]})}),e.ordernotes&&(0,Z.jsx)(xe.pY,{label:"Notes",full:!0,children:(0,Z.jsxs)(u.A,{direction:"row",spacing:.5,alignItems:"flex-start",children:[(0,Z.jsx)(T.NpB,{size:12,color:pe.textMuted,style:{marginTop:2,flexShrink:0}}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary},children:e.ordernotes})]})})]})},e.deliveryid||"".concat(e.orderid,"-").concat(t))}))}):(0,Z.jsxs)(w.A,{stickyHeader:!0,sx:{minWidth:1600},children:[(0,Z.jsx)(S.A,{children:(0,Z.jsxs)(k.A,{sx:{"& th":{backgroundColor:pe.surfaceAlt,color:pe.textSecondary,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(pe.borderSubtle),py:{xs:1,md:1.25},px:{xs:1,md:1.5}}},children:[(0,Z.jsx)(D.A,{children:"#"}),(0,Z.jsx)(D.A,{children:"Map"}),(0,Z.jsx)(D.A,{children:"Client"}),(0,Z.jsx)(D.A,{children:"Pickup"}),(0,Z.jsx)(D.A,{children:"Drop"}),(0,Z.jsx)(D.A,{children:"Status / Rider"}),(0,Z.jsx)(D.A,{children:"Assigned"}),(0,Z.jsx)(D.A,{children:"Accepted"}),(0,Z.jsx)(D.A,{children:"Arrived"}),(0,Z.jsx)(D.A,{children:"Picked"}),(0,Z.jsx)(D.A,{children:"Active"}),(0,Z.jsx)(D.A,{children:"Delivered"}),(0,Z.jsx)(D.A,{children:"Cancelled"}),(0,Z.jsx)(D.A,{children:"Notes"}),(0,Z.jsx)(D.A,{align:"center",children:"KMS"}),(0,Z.jsx)(D.A,{align:"center",children:"Charges"})]})}),(0,Z.jsx)(M.A,{children:Lt?(0,Z.jsx)(de,{rows:16,columns:16,height:15}):0==(null===Ht||void 0===Ht?void 0:Ht.length)?(0,Z.jsx)(k.A,{children:(0,Z.jsx)(D.A,{colSpan:16,sx:{py:6},children:(0,Z.jsxs)(u.A,{alignItems:"center",spacing:1.5,children:[(0,Z.jsx)(c.A,{sx:{width:64,height:64,bgcolor:fe("#94a3b8"),color:pe.textMuted},children:(0,Z.jsx)(T.Z2J,{size:28})}),(0,Z.jsx)(p.A,{variant:"subtitle1",sx:{fontWeight:700,color:pe.textPrimary},children:"No orders to show"}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary},children:Le?"Try a different keyword.":"Adjust the filters above to load orders."})]})})}):null===Ht||void 0===Ht?void 0:Ht.map(((e,t)=>{var r;const o=String(e.orderstatus||"").toLowerCase(),i=ke[o]||{label:e.orderstatus||"\u2014",color:Ae,icon:T.Z2J},n=i.icon,l="cancelled"===o;return(0,Z.jsxs)(k.A,{sx:{transition:"background-color 0.15s","& td":{borderBottom:"1px solid ".concat(pe.divider),py:{xs:1,md:1.25},px:{xs:1,md:1.5},verticalAlign:"top"},"&:hover":{backgroundColor:pe.surfaceAlt}},children:[(0,Z.jsx)(D.A,{children:(0,Z.jsx)(p.A,{variant:"caption",sx:{fontWeight:700,color:pe.textMuted},children:String(E*K+t+1).padStart(2,"0")})}),(0,Z.jsx)(D.A,{children:(0,Z.jsx)(d.A,{title:"delivered"===e.orderstatus?"View rider route":"Available for delivered orders",placement:"top",children:(0,Z.jsx)("span",{children:(0,Z.jsx)(y.A,{size:"small",disabled:"delivered"!==e.orderstatus,onClick:()=>{"delivered"===e.orderstatus&&(Yt(e.deliveryid),Ge(e))},sx:{bgcolor:"delivered"===e.orderstatus?fe(Ae):fe("#94a3b8"),color:"delivered"===e.orderstatus?Ae:pe.textMuted,border:"1px solid ".concat("delivered"===e.orderstatus?ve(Ae):ve("#94a3b8")),"&:hover":{bgcolor:"delivered"===e.orderstatus?Ae:fe("#94a3b8"),color:"delivered"===e.orderstatus?"#fff":pe.textMuted}},children:(0,Z.jsx)(T.Cd7,{size:14})})})})}),(0,Z.jsx)(D.A,{children:(0,Z.jsxs)(u.A,{direction:"row",alignItems:"flex-start",spacing:1,children:[(0,Z.jsx)(we,{color:Ae,size:32,children:(0,Z.jsx)(T.Itr,{size:16})}),(0,Z.jsxs)(u.A,{spacing:.25,sx:{minWidth:0},children:[(0,Z.jsx)(p.A,{variant:"subtitle2",sx:{fontWeight:700,color:pe.textPrimary,whiteSpace:"nowrap"},children:e.tenantname}),(0,Z.jsx)(d.A,{title:"Order ID",placement:"top",children:(0,Z.jsxs)(p.A,{variant:"caption",sx:{color:pe.textSecondary,fontWeight:700},children:["#",e.orderid]})}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textMuted},children:q()(e.deliverydate).utc().format("DD/MM/YYYY \xb7 hh:mm A")})]})]})}),(0,Z.jsx)(D.A,{children:(0,Z.jsxs)(u.A,{spacing:.25,children:[(0,Z.jsx)(p.A,{variant:"subtitle2",sx:{fontWeight:700,color:pe.textPrimary,whiteSpace:"nowrap"},children:e.pickupcustomer||"\u2014"}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary},children:e.pickupcontactno}),(0,Z.jsx)(d.A,{title:e.Pickupaddress||e.pickupsuburb||"",children:(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary,cursor:"pointer",display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.pickupsuburb||(e.Pickupaddress?e.Pickupaddress.slice(0,22)+"\u2026":"")})}),e.applocation&&(0,Z.jsxs)(x.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:.75,py:.25,borderRadius:999,bgcolor:ge("#10b981"),border:"1px solid ".concat(ve("#10b981")),color:"#10b981",fontSize:10,fontWeight:800,width:"fit-content"},children:[(0,Z.jsx)(T.JFD,{size:11})," ",e.applocation]})]})}),(0,Z.jsx)(D.A,{children:(0,Z.jsxs)(u.A,{spacing:.25,children:[(0,Z.jsx)(p.A,{variant:"subtitle2",sx:{fontWeight:700,color:pe.textPrimary,whiteSpace:"nowrap"},children:e.deliverycustomer||"\u2014"}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary},children:e.deliverycontactno}),(0,Z.jsx)(d.A,{title:e.deliveryaddress||"",children:(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary,cursor:"pointer",display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.deliverysuburb||(e.deliveryaddress?e.deliveryaddress.slice(0,22)+"\u2026":"")})})]})}),(0,Z.jsx)(D.A,{children:(0,Z.jsxs)(u.A,{spacing:.5,children:[(0,Z.jsxs)(x.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:ge(i.color),border:"1px solid ".concat(ve(i.color)),color:i.color,fontSize:11,fontWeight:800,width:"fit-content"},children:[(0,Z.jsx)(n,{size:12})," ",i.label]}),e.ridername&&(0,Z.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:.5,children:[(0,Z.jsx)(T.bsz,{size:12,color:pe.textMuted}),(0,Z.jsx)(d.A,{title:"Rider ID: ".concat(e.userid),children:(0,Z.jsx)(p.A,{variant:"caption",sx:{fontWeight:700,color:pe.textPrimary,whiteSpace:"nowrap"},children:e.ridername})})]})]})}),(0,Z.jsx)(D.A,{children:(0,Z.jsx)(Ce,{value:e.assigntime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(D.A,{children:(0,Z.jsx)(Ce,{value:e.acceptedtime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(D.A,{children:(0,Z.jsx)(Ce,{value:e.arrivaltime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(D.A,{children:(0,Z.jsx)(Ce,{value:e.pickuptime,formatDate:rr,formatTime:or,success:"active"===e.deliverystatus})}),(0,Z.jsx)(D.A,{children:(0,Z.jsx)(Ce,{value:e.starttime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(D.A,{children:(0,Z.jsx)(Ce,{value:e.deliverytime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(D.A,{children:(0,Z.jsx)(Ce,{value:e.canceltime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(D.A,{sx:{maxWidth:180},children:e.ordernotes?(0,Z.jsxs)(u.A,{direction:"row",spacing:.5,alignItems:"flex-start",children:[(0,Z.jsx)(T.NpB,{size:12,color:pe.textMuted,style:{marginTop:2,flexShrink:0}}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.ordernotes})]}):(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textMuted},children:"\u2014"})}),(0,Z.jsx)(D.A,{align:"center",children:(0,Z.jsxs)(u.A,{spacing:.5,alignItems:"center",children:[(0,Z.jsx)(Me,{color:"#ef4444",icon:(0,Z.jsx)(T.xI$,{size:11}),label:l||""==e.kms?"0 km":"".concat(e.kms," km"),tooltip:"KMS"}),(0,Z.jsx)(Me,{color:"#10b981",icon:(0,Z.jsx)(T.xI$,{size:11}),label:"".concat(null!==(r=e.cumulativekms)&&void 0!==r?r:0," km"),tooltip:"Actual KMS"}),(0,Z.jsx)(Me,{color:"#0ea5e9",icon:(0,Z.jsx)(T.xI$,{size:11}),label:"".concat(e.previouskms||(l?"0.00":e.kms)||0," km"),tooltip:"Rider KMS"})]})}),(0,Z.jsx)(D.A,{align:"center",children:(0,Z.jsxs)(u.A,{spacing:.5,alignItems:"center",children:[(0,Z.jsx)(Me,{color:"#ef4444",icon:(0,Z.jsx)(T.YHz,{size:11}),label:l||""==e.deliverycharges?"0.00":"".concat(e.deliverycharges,".00"),tooltip:"Delivery Charge"}),(0,Z.jsx)(Me,{color:"#10b981",icon:(0,Z.jsx)(T.YHz,{size:11}),label:""==e.deliveryamt?"0.00":"".concat(e.deliveryamt,".00"),tooltip:"Delivery Amount"})]})})]},e.deliveryid||"".concat(e.orderid,"-").concat(t))}))})]}),(0,Z.jsx)(C.A,{}),0!==(null===Ht||void 0===Ht?void 0:Ht.length)&&(0,Z.jsx)(u.A,{justifyContent:"center",alignItems:"center",sx:{width:"100%",py:2},children:(0,Z.jsx)(u.A,{ref:r,style:{textAlign:"center",width:"100%"},children:Kt||Ft?(0,Z.jsx)(ne.A,{}):(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textMuted,fontWeight:600},children:"No more orders"})})})]})}),(0,Z.jsxs)(z.A,{open:Ct,onClose:()=>zt(!1),fullWidth:!0,maxWidth:"sm",fullScreen:t,PaperProps:{sx:{borderRadius:{xs:0,sm:3},overflow:"hidden"}},children:[(0,Z.jsx)(I.A,{sx:{background:"linear-gradient(135deg, ".concat(Ae," 0%, ").concat(je," 100%)"),color:"#fff",py:2},children:(0,Z.jsxs)(u.A,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,Z.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:1.5,children:[(0,Z.jsx)(c.A,{sx:{width:36,height:36,bgcolor:"rgba(255,255,255,0.22)",color:"#fff"},children:(0,Z.jsx)(T.S3Y,{size:20})}),(0,Z.jsxs)(u.A,{children:[(0,Z.jsx)(p.A,{sx:{fontSize:11,fontWeight:700,opacity:.85,letterSpacing:.6,textTransform:"uppercase",lineHeight:1},children:"Report"}),(0,Z.jsx)(p.A,{sx:{fontWeight:800,fontSize:{xs:"1.05rem",sm:"1.2rem"},lineHeight:1.2,mt:.25},children:"Export Orders"})]})]}),(0,Z.jsx)(y.A,{size:"small",onClick:()=>zt(!1),sx:{color:"#fff",bgcolor:"rgba(255,255,255,0.18)","&:hover":{bgcolor:"rgba(255,255,255,0.3)"}},children:(0,Z.jsx)(T.m6K,{size:16})})]})}),(0,Z.jsxs)(W.A,{sx:{p:2},children:[Lt&&(0,Z.jsx)(G.A,{}),[{label:"App Location",value:_,color:Ae},{label:"Tenant",value:null===At||void 0===At?void 0:At.tenantname,color:"#0ea5e9"},{label:"Business Location",value:null===yt||void 0===yt?void 0:yt.locationname,color:"#10b981"},{label:"Status",value:pt,color:"#f59e0b"},{label:"Rider",value:Dt?"".concat(Dt.firstname," ").concat(Dt.lastname):null,color:"#8b5cf6"},{label:"Keyword",value:Le,color:"#06b6d4"},{label:"Start Date",value:J,color:"#14b8a6"},{label:"End Date",value:V,color:"#ef4444"}].map(((e,t)=>(0,Z.jsxs)(u.A,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{px:1.5,py:1,borderRadius:2,bgcolor:ge(e.color),border:"1px solid ".concat(ve(e.color)),mb:1},children:[(0,Z.jsx)(p.A,{variant:"body2",sx:{fontWeight:700,color:pe.textPrimary},children:e.label}),(0,Z.jsx)(P.A,{size:"small",label:e.value||"None",sx:{fontWeight:700,bgcolor:e.value?e.color:fe("#94a3b8"),color:e.value?"#fff":pe.textMuted,border:"none"}})]},t)))]}),(0,Z.jsxs)(R.A,{sx:{p:2,bgcolor:pe.surfaceAlt,gap:1},children:[(0,Z.jsx)(A.A,{color:"inherit",variant:"outlined",onClick:()=>zt(!1),sx:{borderRadius:999,px:2,textTransform:"none",fontWeight:700,borderColor:pe.borderSubtle,color:pe.textSecondary},children:"Cancel"}),(0,Z.jsx)(ee.pK,{data:tr,filename:"Orders_Detail_".concat(q()().format("YYYY-MM-DD_HHmmss"),".csv"),label:"Download CSV",btnLoading:Lt,onClick:()=>{setTimeout((()=>zt(!1)),0)}})]})]}),(0,Z.jsx)(oe.A,{open:ue,onClose:()=>me(!1),onSelect:e=>{U(e.startDate),$(e.endDate),Re(e.label)}}),(0,Z.jsx)(z.A,{open:Ie,onClose:()=>{We(!1)},fullScreen:!0,fullWidth:!0,children:Fe&&(0,Z.jsx)("div",{children:(0,Z.jsx)(X,{coordinates:Fe,additionalProps:{riderStart:He,riderEnd:Be},order:Je,setMapOpen:We})})})]})}},23787:(e,t,r)=>{r.d(t,{FG:()=>h,nV:()=>x,pY:()=>p,pg:()=>u});var o=r(22555),i=r(53986),n=r(71392),l=r(55235),a=r(48738),s=r(2866),c=r(65908);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:t,scroll:r=!1,onScroll:l,sx:a}=e,s=(0,i.A)(e,d);return(0,c.jsx)(n.A,(0,o.A)((0,o.A)({spacing:1.25,onScroll:l,sx:(0,o.A)((0,o.A)({p:1.5},r&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),a)},s),{},{children:t}))},u=e=>{let{accent:t="#662582",header:r,footer:i,selected:n=!1,onClick:s,children:d,sx:x}=e;return(0,c.jsxs)(l.A,{elevation:0,onClick:s,sx:(0,o.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:n?t:"#e2e8f0",background:n?"".concat(t,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,c.jsx)(a.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:t}}),(0,c.jsxs)(a.A,{sx:{p:1.5,pl:2},children:[r,d,i]})]})},h=e=>{let{children:t,columns:r=2,sx:i}=e;return(0,c.jsx)(a.A,{sx:(0,o.A)({display:"grid",gridTemplateColumns:"repeat(".concat(r,", minmax(0, 1fr))"),gap:1,mt:1.25},i),children:t})},p=e=>{let{label:t,value:r,children:o,full:i=!1,align:n="left"}=e;return(0,c.jsxs)(a.A,{sx:{gridColumn:i?"1 / -1":"auto",minWidth:0,textAlign:n},children:[(0,c.jsx)(s.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:t}),(0,c.jsx)(a.A,{sx:{mt:.25,minWidth:0},children:void 0!==o?o:(0,c.jsx)(s.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==r&&void 0!==r?r:"\u2014"})})]})}},27001:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(71392),i=r(48738),n=r(2866),l=r(65908);function a(e){let{title:t,subtitle:r,live:a=!1,action:s}=e;return(0,l.jsxs)(o.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,l.jsxs)(i.A,{sx:{minWidth:0},children:[(0,l.jsx)(n.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:t}),r&&(0,l.jsxs)(o.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[a&&(0,l.jsx)(i.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,l.jsx)(n.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:r})]})]}),s&&(0,l.jsx)(i.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:s})]})}},35678:(e,t,r)=>{r.d(t,{A:()=>j});var o=r(85672),i=r(58689),n=r(19619),l=r(2866),a=r(5670),s=r(71392),c=r(80911),d=r(36117),x=r(46077),u=r.n(x),h=r(36738),p=r(80959),m=r(33090),g=r(52994),f=r(33323),b=r(75732),v=r(43962),A=r(65908);const j=e=>{let{open:t,onClose:r,onSelect:x}=e;const[j,y]=(0,o.useState)(null);return(0,A.jsxs)(i.A,{open:t,onClose:r,children:[(0,A.jsx)(n.A,{align:"left",children:(0,A.jsx)(l.A,{variant:"h4",children:"Select Filter Options"})}),(0,A.jsx)(a.A,{sx:{width:"100%"},className:"datedialog",children:(0,A.jsx)(d.U,{open:t,toggle:r,id:"daterange1",onChange:e=>{y({startDate:u()(e.startDate).format("YYYY-MM-DD"),endDate:u()(e.endDate).format("YYYY-MM-DD"),label:e.label||"custom"})},definedRanges:[{label:"Today",startDate:new Date,endDate:new Date},{label:"Yesterday",startDate:(0,h.A)(new Date,-1),endDate:(0,h.A)(new Date,-1)},{label:"Tomorrow",startDate:(0,h.A)(new Date,1),endDate:(0,h.A)(new Date,1)},{label:"This Week",startDate:(0,p.A)(new Date),endDate:(0,m.A)(new Date)},{label:"Last Week",startDate:(0,p.A)((0,g.A)(new Date,-1)),endDate:(0,m.A)((0,g.A)(new Date,-1))},{label:"Last 7 Days",startDate:(0,g.A)(new Date,-1),endDate:new Date},{label:"This Month",startDate:(0,f.A)(new Date),endDate:(0,b.A)(new Date)},{label:"Last Month",startDate:(0,f.A)((0,v.A)(new Date,-1)),endDate:(0,b.A)((0,v.A)(new Date,-1))}]})}),(0,A.jsx)(s.A,{direction:"row",justifyContent:"flex-end",sx:{width:"100%",p:2},children:(0,A.jsx)(c.A,{variant:"contained",size:"small",onClick:()=>{j?(x(j),r()):r()},children:"OK"})})]})}},36803:(e,t,r)=>{r.d(t,{A:()=>x});var o=r(84007),i=r(75953),n=r(71392),l=r(48738),a=r(2866),s=r(91834),c=r(97043),d=r(65908);function x(e){let{title:t,value:r,icon:x,color:u="#662582",caption:h,loading:p=!1}=e;return(0,d.jsx)(o.A,{sx:{height:"100%"},children:(0,d.jsx)(i.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,d.jsxs)(n.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,d.jsxs)(l.A,{sx:{minWidth:0,flex:1},children:[(0,d.jsx)(a.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t}),p?(0,d.jsx)(s.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,d.jsx)(a.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r}),h&&(0,d.jsx)(a.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:h})]}),x&&(0,d.jsx)(c.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(u,"14"),color:u,flexShrink:0},children:x})]})})})}},56311:(e,t,r)=>{r.d(t,{A:()=>h});var o=r(22555),i=r(85672),n=r(29776),l=r(43318),a=r(23440),s=r(11969),c=r(80795),d=r(51808),x=r(93811),u=r(65908);const h=e=>{let{value:t,onChange:r,onDebouncedChange:h,debounceTime:p=500,placeholder:m="Search (ctrl+k)",sx:g}=e;const f=(0,i.useRef)(null),[b]=(0,x.d7)(t,p);return(0,i.useEffect)((()=>{h&&h(b)}),[b,h]),(0,i.useEffect)((()=>{const e=e=>{var t;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(t=f.current)||void 0===t||t.focus());"Escape"===e.key&&document.activeElement===f.current&&f.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,u.jsx)(n.A,{sx:(0,o.A)({},g),inputRef:f,placeholder:m,autoComplete:"off",value:t,fullWidth:!0,onChange:e=>r(e.target.value),startAdornment:(0,u.jsx)(l.A,{position:"start",sx:{mr:-.5},children:(0,u.jsx)(c.A,{})}),endAdornment:(0,u.jsx)(a.A,{title:"Clear",children:(0,u.jsx)(s.A,{sx:{visibility:t?"visible":"hidden"},onClick:()=>r(""),children:(0,u.jsx)(d.A,{})})})})}},58691:(e,t,r)=>{r.d(t,{A:()=>a});r(85672);var o=r(48738),i=r(12010),n=r(62217),l=r(65908);function a(e){let{size:t=70,imgSize:r=40,alt:a="loader"}=e;return(0,l.jsxs)(o.A,{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",children:[(0,l.jsx)(i.A,{size:t}),(0,l.jsx)(o.A,{position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",sx:{width:r,height:r},children:(0,l.jsx)("img",{src:n,alt:a,style:{width:"100%",height:"100%",borderRadius:"50%",objectFit:"contain"}})})]})}},59212:(e,t,r)=>{r.d(t,{A:()=>u});var o=r(22555),i=r(85672),n=r(71392),l=r(97043),a=r(17488),s=r(86270),c=r(66157),d=r(48952),x=r(65908);const u=(0,i.forwardRef)(((e,t)=>{let{setAppId:r,setLocoName:u,setPage:h,sx:p,textfeildSx:m,textfieldSx:g,pill:f=!1,accentColor:b="#6366f1",icon:v,placeholder:A="Select Zone",paperComponent:j}=e;const[y,w]=(0,i.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,i.useEffect)((()=>{0===y.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const t=await c.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(t.data.status){const e=[...t.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),w(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[y.length]);const S=e=>"".concat(b).concat(e),k=S("26"),D=S("18"),M=f?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(k)},"&.Mui-focused fieldset":{borderColor:b,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},C=f&&(0,x.jsx)(n.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,x.jsx)(l.A,{sx:{width:24,height:24,bgcolor:D,color:b,transition:"background-color 0.15s, color 0.15s"},children:v||(0,x.jsx)(d.HPi,{size:14})})});return(0,x.jsx)(a.A,{id:"location-autocomplete",options:y||[],getOptionLabel:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.locationname)&&void 0!==t?t:""},PaperComponent:j,sx:(0,o.A)({},p),onChange:(e,t,o)=>{"clear"===o?(null===r||void 0===r||r(0),null===u||void 0===u||u(""),null===h||void 0===h||h(0)):t&&(null===r||void 0===r||r(t.applocationid),null===u||void 0===u||u(t.locationname),null===h||void 0===h||h(0))},renderInput:e=>f?(0,x.jsx)(s.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,placeholder:A,InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:C}),sx:(0,o.A)((0,o.A)({},M),g||m||{})})):(0,x.jsx)(s.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,label:"Select Zones",sx:(0,o.A)({},g||m||{})}))})}))},68320:(e,t,r)=>{r.d(t,{I:()=>n});var o=r(48149),i=r(59363);function n(e,t){return(0,i.t)(e,o.$,t)}}}]); \ No newline at end of file diff --git a/build/static/js/5358.522741a7.chunk.js b/build/static/js/5358.522741a7.chunk.js deleted file mode 100644 index a6da8d0..0000000 --- a/build/static/js/5358.522741a7.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[5358],{19474:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(58168),o=n(9950);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 289.1a362.49 362.49 0 00-79.9-115.7 370.83 370.83 0 00-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 00169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0022.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z"}}]},name:"environment",theme:"outlined"};var i=n(61187),s=function(e,t){return o.createElement(i.A,(0,r.A)({},e,{ref:t,icon:a}))};const c=o.forwardRef(s)},25713:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(98587),o=n(58168),a=n(9950),i=n(72004),s=n(3484),c=n(59254),l=n(18463),u=n(45558),d=n(1614);function h(e){return(0,d.Ay)("MuiCardActions",e)}(0,u.A)("MuiCardActions",["root","spacing"]);var f=n(44414);const m=["disableSpacing","className"],p=(0,c.Ay)("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,o.A)({display:"flex",alignItems:"center",padding:8},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),v=a.forwardRef((function(e,t){const n=(0,l.b)({props:e,name:"MuiCardActions"}),{disableSpacing:a=!1,className:c}=n,u=(0,r.A)(n,m),d=(0,o.A)({},n,{disableSpacing:a}),v=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,s.A)(r,h,t)})(d);return(0,f.jsx)(p,(0,o.A)({className:(0,i.A)(v.root,c),ownerState:d,ref:t},u))}))},32653:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(58168),o=n(9950);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z"}}]},name:"notification",theme:"outlined"};var i=n(61187),s=function(e,t){return o.createElement(i.A,(0,r.A)({},e,{ref:t,icon:a}))};const c=o.forwardRef(s)},36080:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=n(98587),o=n(58168),a=n(9950),i=n(72004),s=n(3484),c=n(89548),l=n(59254),u=n(18463),d=n(52695),h=n(31506),f=n(82053),m=n(45558),p=n(1614);function v(e){return(0,p.Ay)("MuiLink",e)}const A=(0,m.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var g=n(12703),b=n(99269);const y={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},w=e=>{let{theme:t,ownerState:n}=e;const r=(e=>y[e]||e)(n.color),o=(0,g.Yn)(t,"palette.".concat(r),!1)||n.color,a=(0,g.Yn)(t,"palette.".concat(r,"Channel"));return"vars"in t&&a?"rgba(".concat(a," / 0.4)"):(0,b.X4)(o,.4)};var S=n(44414);const x=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],k=(0,l.Ay)(f.A,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["underline".concat((0,c.A)(n.underline))],"button"===n.component&&t.button]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.A)({},"none"===n.underline&&{textDecoration:"none"},"hover"===n.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===n.underline&&(0,o.A)({textDecoration:"underline"},"inherit"!==n.color&&{textDecorationColor:w({theme:t,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===n.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(A.focusVisible)]:{outline:"auto"}})})),C=a.forwardRef((function(e,t){const n=(0,u.b)({props:e,name:"MuiLink"}),{className:l,color:f="primary",component:m="a",onBlur:p,onFocus:A,TypographyClasses:g,underline:b="always",variant:w="inherit",sx:C}=n,M=(0,r.A)(n,x),{isFocusVisibleRef:z,onBlur:R,onFocus:$,ref:D}=(0,d.A)(),[H,B]=a.useState(!1),N=(0,h.A)(t,D),L=(0,o.A)({},n,{color:f,component:m,focusVisible:H,underline:b,variant:w}),j=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,a={root:["root","underline".concat((0,c.A)(o)),"button"===n&&"button",r&&"focusVisible"]};return(0,s.A)(a,v,t)})(L);return(0,S.jsx)(k,(0,o.A)({color:f,className:(0,i.A)(j.root,l),classes:g,component:m,onBlur:e=>{R(e),!1===z.current&&B(!1),p&&p(e)},onFocus:e=>{$(e),!0===z.current&&B(!0),A&&A(e)},ref:N,ownerState:L,variant:w,sx:[...Object.keys(y).includes(f)?[]:[{color:f}],...Array.isArray(C)?C:[C]]},M))}))},36220:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,a){var i=o.prototype;a.utc=function(e){return new o({date:e,utc:!0,args:arguments})},i.utc=function(t){var n=a(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},i.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=i.parse;i.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=i.init;i.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=i.utcOffset;i.utcOffset=function(r,o){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],a=o[0],i=60*+o[1]+ +o[2];return 0===i?0:"+"===a?i:-i}(r),null===r))return this;var i=Math.abs(r)<=16?60*r:r,s=this;if(o)return s.$offset=i,s.$u=0===r,s;if(0!==r){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(i+c,e)).$offset=i,s.$x.$localOffset=c}else s=this.utc();return s};var u=i.format;i.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},i.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var d=i.toDate;i.toDate=function(e){return"s"===e&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var h=i.diff;i.diff=function(e,t,n){if(e&&this.$u===e.$u)return h.call(this,e,t,n);var r=this.local(),o=a(e).local();return h.call(r,o,t,n)}}}()},36256:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(58168),o=n(9950);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"}}]},name:"delete",theme:"filled"};var i=n(61187),s=function(e,t){return o.createElement(i.A,(0,r.A)({},e,{ref:t,icon:a}))};const c=o.forwardRef(s)},46282:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(98587),o=n(58168),a=n(9950),i=n(72004),s=n(3484),c=n(89548),l=n(59254),u=n(19608),d=n(48733),h=n(39766),f=n(24184),m=n(45558),p=n(1614);function v(e){return(0,p.Ay)("PrivateSwitchBase",e)}(0,m.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var A=n(44414);const g=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],b=(0,l.Ay)(f.A)((e=>{let{ownerState:t}=e;return(0,o.A)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),y=(0,l.Ay)("input",{shouldForwardProp:u.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),w=a.forwardRef((function(e,t){const{autoFocus:n,checked:a,checkedIcon:l,className:u,defaultChecked:f,disabled:m,disableFocusRipple:p=!1,edge:w=!1,icon:S,id:x,inputProps:k,inputRef:C,name:M,onBlur:z,onChange:R,onFocus:$,readOnly:D,required:H=!1,tabIndex:B,type:N,value:L}=e,j=(0,r.A)(e,g),[F,T]=(0,d.A)({controlled:a,default:Boolean(f),name:"SwitchBase",state:"checked"}),O=(0,h.A)();let P=m;O&&"undefined"===typeof P&&(P=O.disabled);const I="checkbox"===N||"radio"===N,V=(0,o.A)({},e,{checked:F,disabled:P,disableFocusRipple:p,edge:w}),U=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&"edge".concat((0,c.A)(o))],input:["input"]};return(0,s.A)(a,v,t)})(V);return(0,A.jsxs)(b,(0,o.A)({component:"span",className:(0,i.A)(U.root,u),centerRipple:!0,focusRipple:!p,disabled:P,tabIndex:null,role:void 0,onFocus:e=>{$&&$(e),O&&O.onFocus&&O.onFocus(e)},onBlur:e=>{z&&z(e),O&&O.onBlur&&O.onBlur(e)},ownerState:V,ref:t},j,{children:[(0,A.jsx)(y,(0,o.A)({autoFocus:n,checked:a,defaultChecked:f,className:U.input,disabled:P,id:I?x:void 0,name:M,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;T(t),R&&R(e,t)},readOnly:D,ref:C,required:H,ownerState:V,tabIndex:B,type:N},"checkbox"===N&&void 0===L?{}:{value:L},k)),F?l:S]}))}))},46585:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(58168),o=n(9950);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};var i=n(61187),s=function(e,t){return o.createElement(i.A,(0,r.A)({},e,{ref:t,icon:a}))};const c=o.forwardRef(s)},46639:(e,t,n)=>{"use strict";n.d(t,{A:()=>B});var r=n(57528),o=n(98587),a=n(58168),i=n(9950),s=n(72004),c=n(3484),l=n(88283),u=n(89548),d=n(18463),h=n(59254),f=n(45558),m=n(1614);function p(e){return(0,m.Ay)("MuiCircularProgress",e)}(0,f.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var v,A,g,b,y=n(44414);const w=["className","color","disableShrink","size","style","thickness","value","variant"];let S,x,k,C;const M=44,z=(0,l.i7)(S||(S=v||(v=(0,r.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),R=(0,l.i7)(x||(x=A||(A=(0,r.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),$=(0,h.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["color".concat((0,u.A)(n.color))]]}})((e=>{let{ownerState:t,theme:n}=e;return(0,a.A)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,l.AH)(k||(k=g||(g=(0,r.A)(["\n animation: "," 1.4s linear infinite;\n "]))),z)})),D=(0,h.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),H=(0,h.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t["circle".concat((0,u.A)(n.variant))],n.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:n}=e;return(0,a.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,l.AH)(C||(C=b||(b=(0,r.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),R)})),B=i.forwardRef((function(e,t){const n=(0,d.b)({props:e,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:l=!1,size:h=40,style:f,thickness:m=3.6,value:v=0,variant:A="indeterminate"}=n,g=(0,o.A)(n,w),b=(0,a.A)({},n,{color:i,disableShrink:l,size:h,thickness:m,value:v,variant:A}),S=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,a={root:["root",n,"color".concat((0,u.A)(r))],svg:["svg"],circle:["circle","circle".concat((0,u.A)(n)),o&&"circleDisableShrink"]};return(0,c.A)(a,p,t)})(b),x={},k={},C={};if("determinate"===A){const e=2*Math.PI*((M-m)/2);x.strokeDasharray=e.toFixed(3),C["aria-valuenow"]=Math.round(v),x.strokeDashoffset="".concat(((100-v)/100*e).toFixed(3),"px"),k.transform="rotate(-90deg)"}return(0,y.jsx)($,(0,a.A)({className:(0,s.A)(S.root,r),style:(0,a.A)({width:h,height:h},k,f),ownerState:b,ref:t,role:"progressbar"},C,g,{children:(0,y.jsx)(D,{className:S.svg,ownerState:b,viewBox:"".concat(22," ").concat(22," ").concat(M," ").concat(M),children:(0,y.jsx)(H,{className:S.circle,style:x,ownerState:b,cx:M,cy:M,r:(M-m)/2,fill:"none",strokeWidth:m})})}))}))},46702:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var o=r(n(79526)),a=n(44414);t.A=(0,o.default)((0,a.jsx)("path",{d:"M22 24H2v-4h20zM13.06 5.19l3.75 3.75L7.75 18H4v-3.75zm4.82 2.68-3.75-3.75 1.83-1.83c.39-.39 1.02-.39 1.41 0l2.34 2.34c.39.39.39 1.02 0 1.41z"}),"BorderColor")},52329:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(23235),o=n(44414);const a=(0,r.A)((0,o.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown")},53067:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var o=r(n(79526)),a=n(44414);t.A=(0,o.default)((0,a.jsx)("path",{d:"M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8zM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13s1.5.67 1.5 1.5S7.33 16 6.5 16m11 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M5 11l1.5-4.5h11L19 11z"}),"DirectionsCar")},58833:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(58168),o=n(9950);const a={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M761.1 288.3L687.8 215 325.1 577.6l-15.6 89 88.9-15.7z",fill:t}},{tag:"path",attrs:{d:"M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89z",fill:e}}]}},name:"edit",theme:"twotone"};var i=n(61187),s=function(e,t){return o.createElement(i.A,(0,r.A)({},e,{ref:t,icon:a}))};const c=o.forwardRef(s)},62824:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(23235),o=n(44414);const a=(0,r.A)((0,o.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp")},63189:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var o=r(n(79526)),a=n(44414);t.A=(0,o.default)((0,a.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack")},72179:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var o=r(n(79526)),a=n(44414);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined")},79739:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(98587),o=n(58168),a=n(9950),i=n(72004),s=n(3484),c=n(59254),l=n(18463),u=n(45558),d=n(1614);function h(e){return(0,d.Ay)("MuiDialogActions",e)}(0,u.A)("MuiDialogActions",["root","spacing"]);var f=n(44414);const m=["className","disableSpacing"],p=(0,c.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,o.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),v=a.forwardRef((function(e,t){const n=(0,l.b)({props:e,name:"MuiDialogActions"}),{className:a,disableSpacing:c=!1}=n,u=(0,r.A)(n,m),d=(0,o.A)({},n,{disableSpacing:c}),v=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,s.A)(r,h,t)})(d);return(0,f.jsx)(p,(0,o.A)({className:(0,i.A)(v.root,a),ownerState:d,ref:t},u))}))},82917:(e,t,n)=>{"use strict";n.d(t,{A:()=>H});var r=n(57528),o=n(98587),a=n(58168),i=n(9950),s=n(72004),c=n(88283),l=n(3484);function u(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function d(e){return parseFloat(e)}var h=n(97497),f=n(59254),m=n(18463),p=n(45558),v=n(1614);function A(e){return(0,v.Ay)("MuiSkeleton",e)}(0,p.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var g,b,y,w,S=n(44414);const x=["animation","className","component","height","style","variant","width"];let k,C,M,z;const R=(0,c.i7)(k||(k=g||(g=(0,r.A)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"])))),$=(0,c.i7)(C||(C=b||(b=(0,r.A)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"])))),D=(0,f.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((e=>{let{theme:t,ownerState:n}=e;const r=u(t.shape.borderRadius)||"px",o=d(t.shape.borderRadius);return(0,a.A)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:(0,h.X4)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===n.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(o).concat(r,"/").concat(Math.round(o/.6*10)/10).concat(r),"&:empty:before":{content:'"\\00a0"'}},"circular"===n.variant&&{borderRadius:"50%"},"rounded"===n.variant&&{borderRadius:(t.vars||t).shape.borderRadius},n.hasChildren&&{"& > *":{visibility:"hidden"}},n.hasChildren&&!n.width&&{maxWidth:"fit-content"},n.hasChildren&&!n.height&&{height:"auto"})}),(e=>{let{ownerState:t}=e;return"pulse"===t.animation&&(0,c.AH)(M||(M=y||(y=(0,r.A)(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "]))),R)}),(e=>{let{ownerState:t,theme:n}=e;return"wave"===t.animation&&(0,c.AH)(z||(z=w||(w=(0,r.A)(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 2s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ",",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "]))),$,(n.vars||n).palette.action.hover)})),H=i.forwardRef((function(e,t){const n=(0,m.b)({props:e,name:"MuiSkeleton"}),{animation:r="pulse",className:i,component:c="span",height:u,style:d,variant:h="text",width:f}=n,p=(0,o.A)(n,x),v=(0,a.A)({},n,{animation:r,component:c,variant:h,hasChildren:Boolean(p.children)}),g=(e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:a,height:i}=e,s={root:["root",n,r,o&&"withChildren",o&&!a&&"fitContent",o&&!i&&"heightAuto"]};return(0,l.A)(s,A,t)})(v);return(0,S.jsx)(D,(0,a.A)({as:c,ref:t,className:(0,s.A)(g.root,i),ownerState:v},p,{style:(0,a.A)({width:f,height:u},d)}))}))},92743:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(58168),o=n(98587),a=n(9950),i=n(72004),s=n(3484),c=n(59254),l=n(18463),u=n(82053),d=n(45558),h=n(1614);function f(e){return(0,h.Ay)("MuiAlertTitle",e)}(0,d.A)("MuiAlertTitle",["root"]);var m=n(44414);const p=["className"],v=(0,c.Ay)(u.A,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{fontWeight:t.typography.fontWeightMedium,marginTop:-2}})),A=a.forwardRef((function(e,t){const n=(0,l.b)({props:e,name:"MuiAlertTitle"}),{className:a}=n,c=(0,o.A)(n,p),u=n,d=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},f,t)})(u);return(0,m.jsx)(v,(0,r.A)({gutterBottom:!0,component:"div",ownerState:u,ref:t,className:(0,i.A)(d.root,a)},c))}))},93038:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var r=n(98587),o=n(58168),a=n(9950),i=n(72004),s=n(3484),c=n(99269),l=n(46282),u=n(23235),d=n(44414);const h=(0,u.A)((0,d.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),f=(0,u.A)((0,d.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),m=(0,u.A)((0,d.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var p=n(89548),v=n(18463),A=n(59254),g=n(19608),b=n(45558),y=n(1614);function w(e){return(0,y.Ay)("MuiCheckbox",e)}const S=(0,b.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),x=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],k=(0,A.Ay)(l.A,{shouldForwardProp:e=>(0,g.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t["size".concat((0,p.A)(n.size))],"default"!==n.color&&t["color".concat((0,p.A)(n.color))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.A)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,c.X4)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{["&.".concat(S.checked,", &.").concat(S.indeterminate)]:{color:(t.vars||t).palette[n.color].main},["&.".concat(S.disabled)]:{color:(t.vars||t).palette.action.disabled}})})),C=(0,d.jsx)(f,{}),M=(0,d.jsx)(h,{}),z=(0,d.jsx)(m,{}),R=a.forwardRef((function(e,t){var n,c;const l=(0,v.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:u=C,color:h="primary",icon:f=M,indeterminate:m=!1,indeterminateIcon:A=z,inputProps:g,size:b="medium",className:y}=l,S=(0,r.A)(l,x),R=m?A:f,$=m?A:u,D=(0,o.A)({},l,{color:h,indeterminate:m,size:b}),H=(e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,i={root:["root",n&&"indeterminate","color".concat((0,p.A)(r)),"size".concat((0,p.A)(a))]},c=(0,s.A)(i,w,t);return(0,o.A)({},t,c)})(D);return(0,d.jsx)(k,(0,o.A)({type:"checkbox",inputProps:(0,o.A)({"data-indeterminate":m},g),icon:a.cloneElement(R,{fontSize:null!=(n=R.props.fontSize)?n:b}),checkedIcon:a.cloneElement($,{fontSize:null!=(c=$.props.fontSize)?c:b}),ownerState:D,ref:t,className:(0,i.A)(H.root,y)},S,{classes:H}))}))}}]); \ No newline at end of file diff --git a/build/static/js/5374.86c3f116.chunk.js b/build/static/js/5374.86c3f116.chunk.js deleted file mode 100644 index 0dc658b..0000000 --- a/build/static/js/5374.86c3f116.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[5374],{36256:(e,t,o)=>{o.d(t,{A:()=>d});var a=o(58168),n=o(9950);const c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"}}]},name:"delete",theme:"filled"};var r=o(61187),i=function(e,t){return n.createElement(r.A,(0,a.A)({},e,{ref:t,icon:c}))};const d=n.forwardRef(i)},46282:(e,t,o)=>{o.d(t,{A:()=>g});var a=o(98587),n=o(58168),c=o(9950),r=o(72004),i=o(3484),d=o(89548),l=o(59254),s=o(19608),u=o(48733),p=o(39766),h=o(24184),m=o(45558),v=o(1614);function A(e){return(0,v.Ay)("PrivateSwitchBase",e)}(0,m.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var f=o(44414);const b=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],k=(0,l.Ay)(h.A)((e=>{let{ownerState:t}=e;return(0,n.A)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),x=(0,l.Ay)("input",{shouldForwardProp:s.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),g=c.forwardRef((function(e,t){const{autoFocus:o,checked:c,checkedIcon:l,className:s,defaultChecked:h,disabled:m,disableFocusRipple:v=!1,edge:g=!1,icon:z,id:y,inputProps:w,inputRef:C,name:S,onBlur:R,onChange:B,onFocus:F,readOnly:I,required:j=!1,tabIndex:M,type:P,value:H}=e,O=(0,a.A)(e,b),[N,E]=(0,u.A)({controlled:c,default:Boolean(h),name:"SwitchBase",state:"checked"}),L=(0,p.A)();let V=m;L&&"undefined"===typeof V&&(V=L.disabled);const _="checkbox"===P||"radio"===P,q=(0,n.A)({},e,{checked:N,disabled:V,disableFocusRipple:v,edge:g}),K=(e=>{const{classes:t,checked:o,disabled:a,edge:n}=e,c={root:["root",o&&"checked",a&&"disabled",n&&"edge".concat((0,d.A)(n))],input:["input"]};return(0,i.A)(c,A,t)})(q);return(0,f.jsxs)(k,(0,n.A)({component:"span",className:(0,r.A)(K.root,s),centerRipple:!0,focusRipple:!v,disabled:V,tabIndex:null,role:void 0,onFocus:e=>{F&&F(e),L&&L.onFocus&&L.onFocus(e)},onBlur:e=>{R&&R(e),L&&L.onBlur&&L.onBlur(e)},ownerState:q,ref:t},O,{children:[(0,f.jsx)(x,(0,n.A)({autoFocus:o,checked:c,defaultChecked:h,className:K.input,disabled:V,id:_?y:void 0,name:S,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;E(t),B&&B(e,t)},readOnly:I,ref:C,required:j,ownerState:q,tabIndex:M,type:P},"checkbox"===P&&void 0===H?{}:{value:H},w)),N?l:z]}))}))},49883:(e,t,o)=>{o.d(t,{A:()=>c});var a=o(23235),n=o(44414);const c=(0,a.A)((0,n.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDownOutlined")},67562:(e,t,o)=>{o.d(t,{A:()=>c});var a=o(23235),n=o(44414);const c=(0,a.A)((0,n.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUpOutlined")},93038:(e,t,o)=>{o.d(t,{A:()=>B});var a=o(98587),n=o(58168),c=o(9950),r=o(72004),i=o(3484),d=o(99269),l=o(46282),s=o(23235),u=o(44414);const p=(0,s.A)((0,u.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),h=(0,s.A)((0,u.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),m=(0,s.A)((0,u.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var v=o(89548),A=o(18463),f=o(59254),b=o(19608),k=o(45558),x=o(1614);function g(e){return(0,x.Ay)("MuiCheckbox",e)}const z=(0,k.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),y=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],w=(0,f.Ay)(l.A,{shouldForwardProp:e=>(0,b.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.indeterminate&&t.indeterminate,t["size".concat((0,v.A)(o.size))],"default"!==o.color&&t["color".concat((0,v.A)(o.color))]]}})((e=>{let{theme:t,ownerState:o}=e;return(0,n.A)({color:(t.vars||t).palette.text.secondary},!o.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===o.color?t.vars.palette.action.activeChannel:t.vars.palette[o.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,d.X4)("default"===o.color?t.palette.action.active:t.palette[o.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==o.color&&{["&.".concat(z.checked,", &.").concat(z.indeterminate)]:{color:(t.vars||t).palette[o.color].main},["&.".concat(z.disabled)]:{color:(t.vars||t).palette.action.disabled}})})),C=(0,u.jsx)(h,{}),S=(0,u.jsx)(p,{}),R=(0,u.jsx)(m,{}),B=c.forwardRef((function(e,t){var o,d;const l=(0,A.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:s=C,color:p="primary",icon:h=S,indeterminate:m=!1,indeterminateIcon:f=R,inputProps:b,size:k="medium",className:x}=l,z=(0,a.A)(l,y),B=m?f:h,F=m?f:s,I=(0,n.A)({},l,{color:p,indeterminate:m,size:k}),j=(e=>{const{classes:t,indeterminate:o,color:a,size:c}=e,r={root:["root",o&&"indeterminate","color".concat((0,v.A)(a)),"size".concat((0,v.A)(c))]},d=(0,i.A)(r,g,t);return(0,n.A)({},t,d)})(I);return(0,u.jsx)(w,(0,n.A)({type:"checkbox",inputProps:(0,n.A)({"data-indeterminate":m},b),icon:c.cloneElement(B,{fontSize:null!=(o=B.props.fontSize)?o:k}),checkedIcon:c.cloneElement(F,{fontSize:null!=(d=F.props.fontSize)?d:k}),ownerState:I,ref:t,className:(0,r.A)(j.root,x)},z,{classes:j}))}))}}]); \ No newline at end of file diff --git a/build/static/js/54.06907ff1.chunk.js b/build/static/js/54.06907ff1.chunk.js deleted file mode 100644 index cfde023..0000000 --- a/build/static/js/54.06907ff1.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[54],{855:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(7208),r=n(76475),s=n(44414);function o(e){var t,n;let o,l,{children:a,type:c="scale",direction:d="right",offset:h=10,scale:x={hover:1.05,tap:.95}}=e;switch(d){case"up":case"left":o=h,l=0;break;default:o=0,l=h}const[p,u]=(0,i.Y)(o,l),[m,f]=(0,i.Y)(o,l);switch(c){case"rotate":return(0,s.jsx)(r.P.div,{animate:{rotate:360},transition:{repeat:1/0,repeatType:"loop",duration:2,repeatDelay:0},children:a});case"slide":return"up"===d||"down"===d?(0,s.jsx)(r.P.div,{animate:{y:void 0!==m?m:""},onHoverEnd:()=>f(),onHoverStart:()=>f(),children:a}):(0,s.jsx)(r.P.div,{animate:{x:void 0!==p?p:""},onHoverEnd:()=>u(),onHoverStart:()=>u(),children:a});default:return"number"===typeof x&&(x={hover:x,tap:x}),(0,s.jsx)(r.P.div,{whileHover:{scale:null===(t=x)||void 0===t?void 0:t.hover},whileTap:{scale:null===(n=x)||void 0===n?void 0:n.tap},children:a})}}},23787:(e,t,n)=>{"use strict";n.d(t,{FG:()=>p,nV:()=>h,pY:()=>u,pg:()=>x});var i=n(89379),r=n(80045),s=n(93230),o=n(2235),l=n(16491),a=n(82053),c=n(44414);const d=["children","scroll","onScroll","sx"],h=e=>{let{children:t,scroll:n=!1,onScroll:o,sx:l}=e,a=(0,r.A)(e,d);return(0,c.jsx)(s.A,(0,i.A)((0,i.A)({spacing:1.25,onScroll:o,sx:(0,i.A)((0,i.A)({p:1.5},n&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),l)},a),{},{children:t}))},x=e=>{let{accent:t="#662582",header:n,footer:r,selected:s=!1,onClick:a,children:d,sx:h}=e;return(0,c.jsxs)(o.A,{elevation:0,onClick:a,sx:(0,i.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:s?t:"#e2e8f0",background:s?"".concat(t,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},h),children:[(0,c.jsx)(l.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:t}}),(0,c.jsxs)(l.A,{sx:{p:1.5,pl:2},children:[n,d,r]})]})},p=e=>{let{children:t,columns:n=2,sx:r}=e;return(0,c.jsx)(l.A,{sx:(0,i.A)({display:"grid",gridTemplateColumns:"repeat(".concat(n,", minmax(0, 1fr))"),gap:1,mt:1.25},r),children:t})},u=e=>{let{label:t,value:n,children:i,full:r=!1,align:s="left"}=e;return(0,c.jsxs)(l.A,{sx:{gridColumn:r?"1 / -1":"auto",minWidth:0,textAlign:s},children:[(0,c.jsx)(a.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:t}),(0,c.jsx)(l.A,{sx:{mt:.25,minWidth:0},children:void 0!==i?i:(0,c.jsx)(a.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==n&&void 0!==n?n:"\u2014"})})]})}},39009:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>fe});var i=n(89379),r=n(9950),s=n(26910),o=n(50847),l=n.n(o),a=n(55271),c=n(4159),d=n.n(c),h=n(28429),x=n(14857),p=n(47223),u=n(8881),m=n(55158),f=n(16491),g=n(93230),A=n(82053),v=n(25277),j=n(60899),b=n(48089),y=n(77922),S=n(29925),w=n(2046),k=n(10226),Y=n(46639),C=n(83274),z=n(25333),W=n(1320),M=n(2235),N=n(15769),P=n(69780),D=n(9213),I=n(21671),R=n(34075),H=n(96583),T=n(40033),L=n(25979),F=n(2660),E=n(74745),O=n(28170),B=n(96557),J=n(16497),V=n(93038),q=n(79739),G=n(30633),K=n(81831),Z=n(95359),U=n(7762),Q=n(87942),X=n(81419),_=n(3911),$=n(47738),ee=n(27379),te=n(90421),ne=n(94118),ie=n(88349),re=n(60767),se=n(13838),oe=n(54826),le=n(43302),ae=n(31222),ce=n(52351),de=n(94826),he=(n(855),n(23787)),xe=(n(42041),n(44414)),pe=n(36220);d().extend(pe);const ue={fontSize:11.5,fontWeight:700,color:"#475569",py:.75,px:1},me={fontSize:12,py:.6,px:1},fe=()=>{const e=(0,h.Zp)(),t=(0,x.A)(),n=(0,p.A)(t.breakpoints.down("md")),o=(0,r.useRef)(null),c=(0,r.useRef)(null),pe=localStorage.getItem("userid"),[fe,ge]=(0,r.useState)([]),[Ae,ve]=(0,r.useState)([]),[je,be]=(0,r.useState)([]),[ye,Se]=(0,r.useState)(!1),[we,ke]=(0,r.useState)(!1),[Ye,Ce]=(0,r.useState)(0),[ze,We]=(0,r.useState)(0),[Me,Ne]=(0,r.useState)(0),[Pe,De]=(0,r.useState)(null),[Ie,Re]=(0,r.useState)(null),[He,Te]=(0,r.useState)(0),[Le,Fe]=(0,r.useState)(0),[Ee,Oe]=(0,r.useState)(0),[Be,Je]=(0,r.useState)(null),[Ve,qe]=(0,r.useState)([]),[Ge,Ke]=(0,r.useState)([]),[Ze,Ue]=(0,r.useState)(!1),[Qe,Xe]=(0,r.useState)(""),[_e,$e]=(0,r.useState)(d()().format("MM-DD-YYYY")),[et,tt]=(0,r.useState)(""),[nt,it]=(0,r.useState)(null),[rt,st]=(0,r.useState)(null),[ot,lt]=(0,r.useState)(""),[at,ct]=(0,r.useState)(),[dt,ht]=(0,r.useState)(0),[xt,pt]=(0,r.useState)(0),[ut,mt]=(0,r.useState)(0),[ft,gt]=(0,r.useState)(0),[At,vt]=(0,r.useState)(null),[jt,bt]=(0,r.useState)([]),[yt,St]=(0,r.useState)(""),wt=(0,r.useRef)({}),kt=(e,t,n)=>{(0,u.M8)(e,{variant:t,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:n||1500})},Yt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3;const i="".concat(t,"-").concat(e);wt.current[i]||(kt(e,t,n),wt.current[i]=!0,setTimeout((()=>delete wt.current[i]),3e3))};(0,r.useEffect)((()=>{We(0),De(null),Ne(0),Re(null),be([]),Je(null),qe([]),bt([]),vt(null),St(""),it(null),st(null),tt("")}),[Ye]),(0,r.useEffect)((()=>{Ne(0),Re(null),qe([]),bt([]),vt(null),St("")}),[ze]);(0,r.useEffect)((()=>{(async()=>{Se(!0);try{const e=await s.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(pe));ge(e.data.details||[])}catch(e){Yt(e.message,"error",5e3)}finally{Se(!1)}})()}),[]);(0,r.useEffect)((()=>{Ye&&(async()=>{Se(!0);try{const e=await s.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenants/?applocationid=").concat(Ye,"&status=active"));if(e.data.status){const t=(e.data.details||[]).map((e=>(0,i.A)((0,i.A)({},e),{},{label:"".concat(e.tenantname)})));ve(t)}}catch(e){Yt("Failed to load clients","warning",3e3)}finally{Se(!1)}})()}),[Ye]);(0,r.useEffect)((()=>{if(!ze)return;const e=setTimeout((()=>{(""===Qe||Qe.length>2)&&(async()=>{try{const e=""===Qe?"".concat("https://jupiter.nearle.app/live/api/v1","/customers/gettenantcustomers/?tenantid=").concat(ze,"&pageno=1&pagesize=30"):"".concat("https://jupiter.nearle.app/live/api/v1","/customers/search/?tenantid=").concat(ze,"&keyword=").concat(Qe),t=await s.A.get(e);t.data.status&&Ke(t.data.details||[])}catch(e){console.log(e),kt("server error","warning")}})()}),250);return()=>clearTimeout(e)}),[Qe,ze]),(0,r.useEffect)((()=>{let e=0,t=0,n=0,i=0;Ve.forEach((r=>{e+=Number(r.distance)||0,t+=Number(r.totalcharge)||0,n+=Number(r.quantity)||0,i+=Number(r.collectionamt)||0})),ht(e),pt(t),mt(n),gt(i)}),[Ve]);const Ct=async e=>{var t,n;if("undefined"===typeof window||null===(t=window.google)||void 0===t||null===(n=t.maps)||void 0===n||!n.DistanceMatrixService)throw new Error("Google Maps not loaded");const i=new window.google.maps.DistanceMatrixService;try{var r,s,o,l,a;if(!e||"object"!==typeof e)throw new Error("Invalid customer data.");if(!Be||"object"!==typeof Be)throw new Error("Origin (pickCust) data missing or invalid.");const t=await(c=Be,d=e,new Promise(((e,t)=>{try{if(!c||!d)return t(new Error("Origin or destination data missing."));i.getDistanceMatrix({origins:[new window.google.maps.LatLng(c.latitude,c.longitude)],destinations:[new window.google.maps.LatLng(d.latitude,d.longitude)],travelMode:"DRIVING",unitSystem:window.google.maps.UnitSystem.METRIC},((n,i)=>{"OK"===i?e(n):t(new Error("Google API error: ".concat(i)))}))}catch(n){t(new Error("Unexpected error inside DistanceMatrixService: ".concat(n.message)))}}))),n=null===t||void 0===t||null===(r=t.rows)||void 0===r||null===(s=r[0])||void 0===s||null===(o=s.elements)||void 0===o||null===(l=o[0])||void 0===l||null===(a=l.distance)||void 0===a?void 0:a.value;if(null==n)throw new Error("Malformed Distance Matrix response: missing distance value.");const h=n/1e3,x=Math.round(h);return{roundedDistance:x,totalcharge:x{let t=!1;if(qe((n=>(t=n.some((t=>t.firstname===e.firstname)),t?n.filter((t=>t.firstname!==e.firstname)):n))),!t){Se(!0);try{const{roundedDistance:t,totalcharge:n}=await Ct(e);qe((r=>r.some((t=>t.firstname===e.firstname))?r:[...r,(0,i.A)((0,i.A)({},e),{},{distance:t,totalcharge:n})]))}catch(n){console.error("Failed to calculate distance:",n)}finally{Se(!1)}}};(0,r.useEffect)((()=>{Ye&&(async()=>{try{const e=await s.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getapplocationconfig/?applocationid=").concat(Ye));if(e.data.status){const t=e.data.details.applocationadmins.map((e=>e.userfcmtokem));ct(t)}}catch(e){console.log(e)}})()}),[Ye]);const Wt=e=>null===e||void 0===e?void 0:e.toString().trim().toLowerCase().replace(/\s+/g,""),Mt={"pickupdate(yyyy-mmm-dd)":"date","sendername*":"locationname","senderphone*":"locationcontact","senderaddress*":"locationaddress","receivername*":"firstname",receiverphone:"contactno","receiveralternatephone*":"altcontactno",receiverfulladdress:"address",receiverlatitude:"latitude",receiverlongitude:"longitude","itemdescription*":"description",Quantity:"quantity"," Collect Cash":"collectionamt",customerDeliveryTime:"customerdeliverytime",kitchenPickupTime:"kitchenpickuptime"},Nt=(e,t)=>{qe((n=>n.map((n=>n.customerid===e?(0,i.A)((0,i.A)({},n),{},{quantity:Number(t)||0}):n))))},Pt=(e,t)=>{qe((n=>n.map((n=>n.customerid===e?(0,i.A)((0,i.A)({},n),{},{collectionamt:Number(t)||0}):n))))},Dt={location:!!Ye,client:!!ze,business:!!Me,schedule:!!rt,drops:Ve.length>0},It=Dt.location&&Dt.client&&Dt.business&&Dt.schedule&&Dt.drops,Rt=Ve.length>0?"drops":jt.length>0?"preview":"empty";return(0,xe.jsxs)(xe.Fragment,{children:[ye&&(0,xe.jsx)(ce.A,{}),(0,xe.jsx)(m.A,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:we,children:(0,xe.jsx)(de.A,{color:"inherit"})}),(0,xe.jsxs)(f.A,{className:"orders-workspace-bg",sx:{height:{xs:"auto",md:"calc(100vh - 64px)"},minHeight:{xs:"calc(100vh - 64px)",md:0},display:"flex",flexDirection:"column",overflow:{xs:"visible",md:"hidden"},p:{xs:.75,sm:1.25},gap:1},children:[(0,xe.jsxs)(g.A,{direction:"row",alignItems:"center",gap:1,flexWrap:"wrap",sx:{flexShrink:0,px:.5},children:[(0,xe.jsx)(A.A,{sx:{fontWeight:700,fontSize:{xs:16,sm:17},color:"#1e293b",lineHeight:1.2},children:"Create Multiple Orders"}),(0,xe.jsx)(v.A,{size:"small",label:"".concat(Ve.length," drop").concat(1===Ve.length?"":"s"),sx:{height:20,fontSize:10.5,fontWeight:700,bgcolor:Ve.length?"rgba(24,144,255,0.10)":"#f1f5f9",color:Ve.length?"#1890ff":"#94a3b8",border:"1px solid ".concat(Ve.length?"rgba(24,144,255,0.25)":"#e2e8f0")}}),(0,xe.jsx)(f.A,{sx:{flex:1}}),(0,xe.jsx)(A.A,{sx:{fontSize:11,color:"#94a3b8",display:{xs:"none",md:"block"}},children:"Bulk-create deliveries from CSV/Excel or saved customers."})]}),(0,xe.jsxs)(j.Ay,{container:!0,spacing:1.25,sx:{flex:1,minHeight:0,overflow:{xs:"visible",md:"hidden"}},children:[(0,xe.jsxs)(j.Ay,{item:!0,xs:12,md:6,sx:{height:{xs:"auto",md:"100%"},minHeight:0,display:"flex",flexDirection:"column",gap:{xs:1.25,md:2.25},overflowY:{xs:"visible",md:"auto"},pr:{xs:0,md:.75}},children:[(0,xe.jsxs)(b.A,{className:"orders-card",sx:{p:2,flexShrink:0},children:[(0,xe.jsx)(f.A,{className:"section-title-bar",sx:{mb:1.5},children:(0,xe.jsx)(A.A,{sx:{fontWeight:700,color:"#1e293b",fontSize:13.5,letterSpacing:"-0.01em"},children:"Setup"})}),(0,xe.jsxs)(j.Ay,{container:!0,spacing:1.75,children:[(0,xe.jsx)(j.Ay,{item:!0,xs:12,sm:4,children:(0,xe.jsx)(y.A,{fullWidth:!0,size:"small",ref:o,className:"header-compact-input",options:fe||[],getOptionLabel:e=>"".concat(e.locationname),onChange:(e,t,n)=>{"clear"===n?Ce(0):t&&Ce(t.applocationid)},renderInput:e=>(0,xe.jsx)(S.A,(0,i.A)((0,i.A)({},e),{},{size:"small",placeholder:"Choose Location",label:"Location",InputLabelProps:{shrink:!0},className:"header-compact-tf",InputProps:(0,i.A)((0,i.A)({},e.InputProps),{},{startAdornment:(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(le.sIY,{style:{color:"#94a3b8",fontSize:12,marginRight:6,flexShrink:0}}),e.InputProps.startAdornment]})})}))})}),(0,xe.jsx)(j.Ay,{item:!0,xs:12,sm:4,children:(0,xe.jsx)(y.A,{fullWidth:!0,size:"small",className:"header-compact-input",options:Ae||[],value:Pe,getOptionLabel:e=>(null===e||void 0===e?void 0:e.tenantname)||"",isOptionEqualToValue:(e,t)=>e.tenantid===t.tenantid,onOpen:e=>{Ye||(e.preventDefault(),Yt("Please select Location first!","warning",3e3),setTimeout((()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.focus()}),0))},onChange:(e,t,n)=>{"clear"===n?(We(0),De(null)):t&&(We(t.tenantid),De(t),(async e=>{try{const t=(await s.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantpricing/?tenantid=").concat(e))).data.details||{};Te(t.baseprice||0),Fe(t.priceperkm||0),Oe(t.minkm||0)}catch(t){console.log("fetchTenantPricing error",t)}})(t.tenantid),(async e=>{try{const t=(await s.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantlocations/?tenantid=").concat(e))).data.details||[];1===t.length?(be(t),Je(t[0]),Ne(t[0].locationid),Re(t[0]),it(t[0].slots)):be(t)}catch(t){console.log("gettenantlocations",t)}})(t.tenantid))},renderInput:e=>(0,xe.jsx)(S.A,(0,i.A)((0,i.A)({},e),{},{size:"small",placeholder:"Choose Client",label:"Client",inputRef:c,InputLabelProps:{shrink:!0},className:"header-compact-tf",InputProps:(0,i.A)((0,i.A)({},e.InputProps),{},{startAdornment:(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(oe.x$1,{style:{color:"#94a3b8",fontSize:11,marginRight:6,flexShrink:0}}),e.InputProps.startAdornment]})})}))})}),(0,xe.jsx)(j.Ay,{item:!0,xs:12,sm:4,children:1===je.length?(0,xe.jsx)(S.A,{variant:"outlined",fullWidth:!0,size:"small",label:"Business Location",value:je[0].locationname,InputLabelProps:{shrink:!0},className:"header-compact-tf",InputProps:{style:{color:t.palette.primary.main},startAdornment:(0,xe.jsx)(Q.A,{style:{color:"#94a3b8",fontSize:14,marginRight:6,flexShrink:0}})}}):(0,xe.jsx)(y.A,{fullWidth:!0,size:"small",className:"header-compact-input",value:Ie,options:je||[],getOptionLabel:e=>null!==e&&void 0!==e&&e.locationname?"".concat(e.locationname," (").concat(e.suburb||"",")"):"",onOpen:e=>{Ye||ze?ze||(e.preventDefault(),Yt("Please select Client first!","warning",3e3),setTimeout((()=>{var e;return null===(e=c.current)||void 0===e?void 0:e.focus()}),0)):(e.preventDefault(),Yt("Please select Location and Client first!","warning",3e3),setTimeout((()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.focus()}),0))},onChange:(e,t,n)=>{"clear"!==n&&t?(Ne(t.locationid||0),Re(t),Je(t),it(null===t||void 0===t?void 0:t.slots)):(Ne(0),Re(null),Je(null),it(null))},renderInput:e=>(0,xe.jsx)(S.A,(0,i.A)((0,i.A)({},e),{},{size:"small",placeholder:"Business Location",label:"Business Location",InputLabelProps:{shrink:!0},className:"header-compact-tf",InputProps:(0,i.A)((0,i.A)({},e.InputProps),{},{startAdornment:(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(Q.A,{style:{color:"#94a3b8",fontSize:14,marginRight:6,flexShrink:0}}),e.InputProps.startAdornment]})})}))})})]})]}),(0,xe.jsxs)(b.A,{className:"orders-card",sx:{p:2,flexShrink:0},children:[(0,xe.jsx)(f.A,{className:"section-title-bar section-title-bar--accent",sx:{mb:1.5},children:(0,xe.jsx)(A.A,{sx:{fontWeight:700,color:"#1e293b",fontSize:13.5,letterSpacing:"-0.01em"},children:"Schedule & Pickup"})}),(0,xe.jsxs)(j.Ay,{container:!0,spacing:1.75,children:[(0,xe.jsx)(j.Ay,{item:!0,xs:12,sm:6,children:(0,xe.jsx)(K.$,{dateAdapter:Z.R,children:(0,xe.jsx)(G.l,{label:"Pickup Date",format:"DD-MM-YYYY",value:_e?d()(_e):null,onChange:e=>{if(!e||!d()(e).isValid())return void $e(d()().format("MM-DD-YYYY"));d()().diff(d()("".concat(d()(e).format("YYYY-MM-DD"))),"d")<=0?($e(d()(e).format("MM-DD-YYYY")),tt(""),st(null)):(kt("Choose an upcoming date","warning"),$e(d()().format("MM-DD-YYYY")))},disablePast:!0,slotProps:{textField:{size:"small",fullWidth:!0,InputLabelProps:{shrink:!0},InputProps:{startAdornment:(0,xe.jsx)(w.A,{position:"start",children:(0,xe.jsx)(X.A,{style:{color:"#94a3b8",fontSize:"13px"}})})},sx:{"& .MuiOutlinedInput-root":{borderRadius:"10px",height:"36px",paddingLeft:"10px"}}}}})})}),(0,xe.jsx)(j.Ay,{item:!0,xs:12,sm:6,children:(0,xe.jsx)(y.A,{size:"small",fullWidth:!0,options:nt||[],sx:{"& .MuiOutlinedInput-root":{borderRadius:"10px",height:"36px"}},onChange:(e,t,n)=>{if("clear"===n||!t)return tt(null),void st(null);if(!t.time)return void Yt("This slot has no time configured.","warning",3e3);const i=d()(t.time,"HH:mm").format("hh:mm A");tt(i);const r=d()("".concat(_e," ").concat(i),"MM-DD-YYYY hh:mm A").format("YYYY-MM-DD hh:mm A");st(r)},getOptionLabel:e=>e?"".concat(e.name," (").concat(d()(e.time,"HH:mm").format("hh:mm A"),")"):"",renderInput:e=>(0,xe.jsx)(S.A,(0,i.A)((0,i.A)({},e),{},{label:"Pickup Slot",placeholder:"Select Pickup Slot",fullWidth:!0,InputLabelProps:{shrink:!0},sx:{"& .MuiOutlinedInput-root":{borderRadius:"10px",height:"36px"}},InputProps:(0,i.A)((0,i.A)({},e.InputProps),{},{startAdornment:(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(_.A,{style:{color:"#94a3b8",fontSize:"13px",marginRight:"6px",marginLeft:"2px",flexShrink:0}}),e.InputProps.startAdornment]})})}))})}),(0,xe.jsx)(j.Ay,{item:!0,xs:12,children:Be?(0,xe.jsxs)(g.A,{direction:"row",spacing:1.25,alignItems:"center",sx:{border:"1px solid #eef2f6",borderLeft:"3px solid #1890ff",borderRadius:"10px",px:1.25,py:.75,bgcolor:"#fbfcff"},children:[(0,xe.jsx)(f.A,{sx:{width:28,height:28,borderRadius:"8px",background:"linear-gradient(135deg,#1890ff,#096dd9)",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,fontSize:12,boxShadow:"0 4px 10px rgba(24,144,255,0.30)"},children:(0,xe.jsx)(le.sIY,{})}),(0,xe.jsxs)(f.A,{sx:{minWidth:0,flex:1},children:[(0,xe.jsx)(A.A,{sx:{fontSize:12.5,fontWeight:700,color:"#1e293b",lineHeight:1.2},noWrap:!0,children:Be.locationname||"\u2014"}),(0,xe.jsx)(A.A,{sx:{fontSize:11,color:"#64748b",lineHeight:1.3},noWrap:!0,children:Be.address||"\u2014"})]})]}):(0,xe.jsx)(A.A,{sx:{color:"#94a3b8",fontSize:12},children:"Pickup auto-fills once a Business Location is selected."})})]})]}),(0,xe.jsxs)(b.A,{className:"orders-card delivery-prefs-card",sx:{p:2,flexShrink:0},children:[(0,xe.jsxs)(f.A,{className:"delivery-prefs-header",sx:{mb:1},children:[(0,xe.jsx)(A.A,{className:"delivery-prefs-title",children:"Order Notes"}),(0,xe.jsx)(A.A,{className:"delivery-prefs-sub",children:"Applied to every order"})]}),(0,xe.jsx)(f.A,{className:"delivery-prefs-row",children:(0,xe.jsxs)(f.A,{className:"delivery-prefs-field",sx:{width:"100%"},children:[(0,xe.jsxs)("label",{className:"delivery-prefs-label",htmlFor:"bulk-dispatch-notes-input",children:[(0,xe.jsx)($.A,{style:{fontSize:11,color:"#65387a"}}),"Special Dispatch Notes"]}),(0,xe.jsx)(S.A,{id:"bulk-dispatch-notes-input",size:"small",fullWidth:!0,placeholder:"Gate codes, call instructions, special cargo care\u2026",value:ot,onChange:e=>lt(e.target.value),sx:{"& .MuiOutlinedInput-root":{borderRadius:"10px",padding:"0 10px",alignItems:"center",fontSize:"12px",background:"#ffffff",height:"32px"},"& .MuiOutlinedInput-input":{padding:"0 !important",fontSize:"12px !important",lineHeight:"32px"}}})]})})]}),(0,xe.jsxs)(b.A,{className:"orders-card pricing-summary-card",sx:{flexShrink:0,p:"16px 18px !important"},children:[(0,xe.jsxs)(f.A,{className:"pricing-header",sx:{mb:1.5,pb:1},children:[(0,xe.jsx)(A.A,{className:"pricing-title",sx:{fontSize:"13px !important"},children:"Bulk Summary"}),(0,xe.jsx)(A.A,{className:"pricing-subtitle",sx:{fontSize:"10px !important"},children:"Live totals"})]}),(()=>{const e=e=>{let{icon:t,label:n,value:r,accent:s,active:o}=e;return(0,xe.jsxs)(f.A,{sx:(0,i.A)({bgcolor:"#fff",border:"1px solid #eef2f6",borderRadius:"10px",px:1,py:.75,display:"flex",alignItems:"center",gap:.85,minWidth:0,transition:"border-color 0.2s, box-shadow 0.2s"},o&&{borderColor:"".concat(s,"55"),boxShadow:"0 2px 6px -2px ".concat(s,"33")}),children:[(0,xe.jsx)(f.A,{sx:{width:26,height:26,borderRadius:"8px",bgcolor:"".concat(s,"18"),color:s,display:"flex",alignItems:"center",justifyContent:"center",fontSize:12,flexShrink:0},children:(0,xe.jsx)(t,{})}),(0,xe.jsxs)(f.A,{sx:{minWidth:0,flex:1},children:[(0,xe.jsx)(A.A,{sx:{fontSize:9.5,fontWeight:600,color:"#94a3b8",letterSpacing:.4,textTransform:"uppercase",lineHeight:1},children:n}),(0,xe.jsx)(A.A,{sx:{fontSize:13.5,fontWeight:800,color:o?"#1e293b":"#94a3b8",lineHeight:1.2,mt:.25},noWrap:!0,children:r})]})]})};return(0,xe.jsxs)(j.Ay,{container:!0,spacing:1.25,children:[(0,xe.jsx)(j.Ay,{item:!0,xs:6,children:e({icon:oe.$Fg,label:"Distance",value:dt?"".concat(dt," km"):"\u2014",accent:"#1890ff",active:!!dt})}),(0,xe.jsx)(j.Ay,{item:!0,xs:6,children:e({icon:oe.H5e,label:"Quantity",value:ut||0,accent:"#16a34a",active:!!ut})}),(0,xe.jsx)(j.Ay,{item:!0,xs:6,children:e({icon:oe.MxO,label:"Cash Collect",value:"\u20b9".concat(Number(ft).toFixed(2)),accent:"#d97706",active:!!ft})}),(0,xe.jsx)(j.Ay,{item:!0,xs:6,children:e({icon:oe.dv1,label:"Deliveries",value:Ve.length,accent:"#65387a",active:Ve.length>0})})]})})(),Ve.length>0&&(0,xe.jsxs)("div",{className:"total-charge-badge",style:{marginTop:14,padding:"10px 14px"},children:[(0,xe.jsxs)("div",{className:"total-charge-left",children:[(0,xe.jsx)(oe.wTh,{className:"total-charge-icon"}),(0,xe.jsx)("div",{className:"total-charge-label",children:"Total Charge"})]}),(0,xe.jsxs)("div",{className:"total-charge-val",style:{fontSize:17},children:["\u20b9",Number(xt).toFixed(2)]})]}),(0,xe.jsx)(f.A,{sx:{mt:1.75},children:(0,xe.jsx)(k.A,{fullWidth:!0,className:"gradient-btn-create",disabled:!It||we,startIcon:!we&&(0,xe.jsx)(oe.Cer,{style:{fontSize:11}}),onClick:async()=>{if(!ze)return void kt("Choose Client","warning");if(!Be)return void kt("Pickup location required","warning");if(!rt)return void kt("Select a pickup slot","warning");if(!Ve.length)return void kt("Add at least one drop customer","warning");const t=(()=>{if(rt){const e=d()(rt,["YYYY-MM-DD hh:mm A","YYYY-MM-DD HH:mm:ss"]);if(e.isValid())return e.format("YYYY-MM-DD HH:mm:ss")}if(_e&&et){const e=d()("".concat(d()(_e).format("YYYY-MM-DD")," ").concat(et),["YYYY-MM-DD hh:mm A","YYYY-MM-DD HH:mm:ss"]);if(e.isValid())return e.format("YYYY-MM-DD HH:mm:ss")}return d()().format("YYYY-MM-DD HH:mm:ss")})(),n=Ve.map((e=>{var n,i,r,s;return{applocationid:Be.applocationid,configid:9,partnerid:Be.partnerid,partneruserid:+pe,paymentstatus:1,paymenttype:42,pickupaddress:Be.address||"",pickupcity:Be.city||"",pickupcontactno:Be.contactno||"",pickupcustomer:Be.locationname||"",pickuplandmark:Be.landmark||"",pickuplat:Be.latitude,pickuplocation:Be.suburb||"",pickuplocationid:Be.locationid||0,pickuplong:Be.longitude,tenantid:Be.tenantid,customerid:+(null===e||void 0===e?void 0:e.customerid),deliveryaddress:e.address||"",deliverycharge:+e.totalcharge||0,deliverycity:e.city||"",deliverycontactno:(null===(n=e.contactno)||void 0===n?void 0:n.toString())||"",deliverycustomer:e.firstname||"",deliveryid:+e.customerid,deliverylandmark:e.landmark||"",deliverylat:(null===(i=e.latitude)||void 0===i?void 0:i.toString())||"",deliverylocation:e.suburb||"",deliverylocationid:e.deliverylocationid||0,deliverylong:(null===(r=e.longitude)||void 0===r?void 0:r.toString())||"",deliverytime:t,deliverytype:"B",itemcount:1,quantity:e.quantity,collectionamt:e.collectionamt,kms:(null===(s=e.distance)||void 0===s?void 0:s.toString())||"0",locationid:+Be.locationid,moduleid:+Be.moduleid,orderamount:+e.totalcharge||0,ordercharges:0,orderdate:d()().format("YYYY-MM-DD HH:mm:ss"),ordernotes:ot,orderstatus:"created",ordervalue:+e.totalcharge||0,pickupSlot:rt}}));Se(!0),ke(!0);try{const t=await s.A.post("".concat("https://jupiter.nearle.app/live/api/v1","/orders/createorders"),n);var i;if(t.data.status)kt("Orders Created Successfully","success",2e3),at&&(async()=>{try{"Success"===(await s.A.post("".concat("https://jupiter.nearle.app/live/api/v1","/utils/sendnotifications"),{priority:"high",registration_ids:at,data:{accessid:"AAAAILMpCEU:APA91bEavuOllBI6sFgYtxXAgNmAVwNA-MnCMHLGlR4_t7UqpLajAkdn3T0CZr_zaLBknLyim9ytFLMZgbeXmKqTad_PKCbqlYjHpaizVrLXtecxqyEy4UktIacK2UvHVUATHL-7VQQk"},notification:{title:"Nearle Merchant",body:"An Order has been placed successfully, kindly process the same",sound:"ring"}})).data.message&&kt("Notification sent Successfully","success",1e3)}catch(e){kt(e.message,"error",1e3)}})(),e("/nearle/orders");else kt((null===t||void 0===t||null===(i=t.data)||void 0===i?void 0:i.message)||"Order creation failed. Please try again.","warning",3e3)}catch(o){let e="Something went wrong. Please try again.";var r;if(o.response)e=(null===(r=o.response.data)||void 0===r?void 0:r.message)||"Server error (".concat(o.response.status,")");else o.request&&(e="Network error. Check your internet connection.");kt(e,"error",3e3)}finally{Se(!1),ke(!1)}},sx:{minHeight:"36px !important"},children:we?(0,xe.jsx)(Y.A,{color:"inherit",size:16,thickness:5}):"Dispatch ".concat(Ve.length||""," ").concat(1===Ve.length?"Order":"Orders").trim()})})]})]}),(0,xe.jsx)(j.Ay,{item:!0,xs:12,md:6,sx:{height:{xs:"auto",md:"100%"},minHeight:0,display:"flex",flexDirection:"column"},children:(0,xe.jsxs)(b.A,{className:"orders-card",sx:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",p:1.25,maxHeight:{xs:"none",md:685}},children:[(0,xe.jsxs)(g.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,sx:{mb:.75,flexShrink:0},children:[(0,xe.jsxs)(f.A,{className:"section-title-bar",sx:{mb:0},children:[(0,xe.jsx)(A.A,{sx:{fontWeight:700,color:"#1e293b",fontSize:13.5,letterSpacing:"-0.01em"},children:"drops"===Rt?"Drop List":"preview"===Rt?"File Preview":"Preview"}),(0,xe.jsx)(v.A,{size:"small",label:"drops"===Rt?Ve.length:"preview"===Rt?jt.length:0,sx:{height:20,fontSize:10.5,fontWeight:700,ml:1,bgcolor:"rgba(168,85,247,0.10)",color:"#65387a",border:"1px solid rgba(168,85,247,0.25)"}})]}),"drops"===Rt&&(0,xe.jsx)(v.A,{size:"small",label:"\u20b9".concat(Number(xt).toFixed(2)," total"),sx:{height:22,fontWeight:700,fontSize:11,bgcolor:"rgba(101,56,122,0.10)",color:"#65387a",border:"1px solid rgba(101,56,122,0.25)"}}),"preview"===Rt&&(0,xe.jsx)(v.A,{size:"small",label:"Awaiting Continue",icon:(0,xe.jsx)(ee.A,{style:{fontSize:11}}),sx:{height:22,fontWeight:700,fontSize:11,bgcolor:"rgba(245,158,11,0.12)",color:"#b45309",border:"1px solid rgba(245,158,11,0.30)","& .MuiChip-icon":{color:"#b45309"}}}),"empty"!==Rt&&(()=>{const e=Ye&&ze&&Me,t=t=>{var n;e?(vt(t),0===t?null===(n=document.getElementById("upload-file"))||void 0===n||n.click():1===t&&(Ue(!0),Xe(""))):Yt("Please select Location, Client, and Business Location first.","warning",3e3)};return(0,xe.jsxs)(g.A,{direction:"row",gap:.75,alignItems:"center",children:[(0,xe.jsx)(k.A,{size:"small",variant:"outlined",onClick:()=>t(0),startIcon:(0,xe.jsx)(ae.CtR,{}),sx:{height:24,py:0,textTransform:"none",borderRadius:"6px",fontSize:10.5,fontWeight:600,borderColor:"#cbd5e1",color:"#475569","&:hover":{borderColor:"#1890ff",color:"#1890ff"}},children:"Excel / CSV"}),(0,xe.jsx)(k.A,{size:"small",variant:"outlined",onClick:()=>t(1),startIcon:(0,xe.jsx)(oe.YXz,{}),sx:{height:24,py:0,textTransform:"none",borderRadius:"6px",fontSize:10.5,fontWeight:600,borderColor:"#cbd5e1",color:"#475569","&:hover":{borderColor:"#65387a",color:"#65387a"}},children:"Selection"})]})})()]}),yt&&(0,xe.jsxs)(g.A,{direction:"row",gap:.75,alignItems:"center",sx:{mb:.75,color:"#64748b",flexShrink:0},children:[(0,xe.jsx)(te.A,{style:{fontSize:12}}),(0,xe.jsx)(A.A,{sx:{fontSize:11.5},noWrap:!0,children:yt})]}),"preview"===Rt&&jt.length>=1&&(0,xe.jsxs)(f.A,{sx:{mb:1,p:1.25,bgcolor:"rgba(245,158,11,0.06)",border:"1.5px solid rgba(245,158,11,0.25)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:1.5,flexShrink:0,animation:"blink 1.5s infinite","@keyframes blink":{"0%":{borderColor:"rgba(245,158,11,0.25)"},"50%":{borderColor:"rgba(245,158,11,0.6)"},"100%":{borderColor:"rgba(245,158,11,0.25)"}}},children:[(0,xe.jsxs)(f.A,{sx:{textAlign:"left"},children:[(0,xe.jsx)(A.A,{sx:{fontWeight:700,fontSize:12,color:"#b45309",lineHeight:1.2},children:"Process & Calculate Distances"}),(0,xe.jsx)(A.A,{sx:{color:"#b45309",opacity:.8,fontSize:10.5,lineHeight:1.25},children:"Click continue to import spreadsheet rows and calculate drop charges."})]}),(0,xe.jsx)(k.A,{variant:"contained",size:"small",color:"warning",onClick:()=>jt.forEach((e=>zt(e))),sx:{textTransform:"none",borderRadius:"8px",fontWeight:700,fontSize:11,height:28,px:1.5,bgcolor:"#d97706",boxShadow:"none","&:hover":{bgcolor:"#b45309",boxShadow:"none"}},children:"Continue"})]}),(0,xe.jsxs)(f.A,{sx:{flex:1,minHeight:0,overflow:"auto"},children:["drops"===Rt&&n&&(0,xe.jsxs)(he.nV,{sx:{p:0},children:[Ve.map(((e,t)=>{var n;return(0,xe.jsx)(he.pg,{accent:"#65387a",header:(0,xe.jsxs)(g.A,{direction:"row",alignItems:"flex-start",justifyContent:"space-between",spacing:1,children:[(0,xe.jsxs)(f.A,{sx:{minWidth:0,flex:1},children:[(0,xe.jsxs)(A.A,{sx:{fontSize:14,fontWeight:700,color:"#1e293b",lineHeight:1.2},children:[t+1,". ",e.firstname]}),(0,xe.jsx)(A.A,{sx:{fontSize:12,color:"#64748b",mt:.25},children:e.address})]}),(0,xe.jsx)(C.A,{title:"Remove",children:(0,xe.jsx)(z.A,{size:"small",onClick:()=>zt(e),sx:{color:"#ef4444",p:.5,flexShrink:0},children:(0,xe.jsx)(ne.A,{style:{fontSize:14}})})})]}),children:(0,xe.jsxs)(he.FG,{columns:2,children:[(0,xe.jsx)(he.pY,{label:"Qty",children:0===At?(0,xe.jsx)(A.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},children:null!==(n=e.quantity)&&void 0!==n?n:"\u2014"}):(0,xe.jsx)(S.A,{size:"small",type:"number",value:e.quantity||"",onChange:t=>Nt(e.customerid,t.target.value),inputProps:{min:0},fullWidth:!0,sx:{"& .MuiOutlinedInput-root":{borderRadius:"8px",height:34}}})}),(0,xe.jsx)(he.pY,{label:"Cash",children:0===At?(0,xe.jsx)(A.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},children:"\u20b9".concat(Number(e.collectionamt||0).toFixed(2))}):(0,xe.jsx)(S.A,{size:"small",type:"number",value:e.collectionamt?e.collectionamt:"",placeholder:"0",onChange:t=>{const n=Number(t.target.value);Pt(e.customerid,n>0?n:0)},inputProps:{min:0},InputProps:{startAdornment:(0,xe.jsx)(w.A,{position:"start",children:"\u20b9"})},fullWidth:!0,sx:{"& .MuiOutlinedInput-root":{borderRadius:"8px",height:34}}})}),(0,xe.jsx)(he.pY,{label:"Km",value:e.distance}),(0,xe.jsx)(he.pY,{label:"Charge",align:"right",children:(0,xe.jsxs)(A.A,{sx:{fontSize:13,fontWeight:700,color:"#1e293b"},children:["\u20b9",Number((null===e||void 0===e?void 0:e.totalcharge)||0).toFixed(2)]})})]})},e.customerid||e.firstname||t)})),(0,xe.jsx)(he.pg,{accent:"#65387a",sx:{bgcolor:"#fafbfc"},children:(0,xe.jsxs)(he.FG,{columns:2,children:[(0,xe.jsx)(he.pY,{label:"Total Qty",value:ut}),(0,xe.jsx)(he.pY,{label:"Total Cash",value:"\u20b9".concat(Number(ft).toFixed(2))}),(0,xe.jsx)(he.pY,{label:"Total Km",value:dt}),(0,xe.jsx)(he.pY,{label:"Total Charge",align:"right",children:(0,xe.jsxs)(A.A,{sx:{fontSize:14,fontWeight:800,color:"#65387a"},children:["\u20b9",Number(xt).toFixed(2)]})})]})})]}),"drops"===Rt&&!n&&(0,xe.jsx)(W.A,{component:M.A,sx:{borderRadius:"10px",border:"1px solid #eef2f6",boxShadow:"none"},children:(0,xe.jsxs)(N.A,{size:"small",stickyHeader:!0,children:[(0,xe.jsx)(P.A,{sx:{bgcolor:"#f8fafc"},children:(0,xe.jsxs)(D.A,{children:[(0,xe.jsx)(I.A,{sx:ue,children:"#"}),(0,xe.jsx)(I.A,{sx:ue,children:"Customer"}),(0,xe.jsx)(I.A,{sx:ue,children:"Address"}),(0,xe.jsx)(I.A,{sx:ue,align:"center",children:"Qty"}),(0,xe.jsx)(I.A,{sx:ue,align:"center",children:"Cash"}),(0,xe.jsx)(I.A,{sx:ue,children:"Km"}),(0,xe.jsx)(I.A,{sx:ue,align:"right",children:"Charge"}),(0,xe.jsx)(I.A,{sx:ue,align:"center",children:" "})]})}),(0,xe.jsxs)(R.A,{children:[Ve.map(((e,t)=>(0,xe.jsxs)(D.A,{hover:!0,children:[(0,xe.jsx)(I.A,{sx:me,children:t+1}),(0,xe.jsx)(I.A,{sx:(0,i.A)((0,i.A)({},me),{},{whiteSpace:"nowrap",color:"#1e293b",fontWeight:600}),children:e.firstname}),(0,xe.jsx)(I.A,{sx:(0,i.A)((0,i.A)({},me),{},{color:"#64748b",maxWidth:220}),children:(0,xe.jsx)(C.A,{title:e.address||"",children:(0,xe.jsx)("span",{style:{display:"inline-block",maxWidth:220,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",verticalAlign:"middle"},children:e.address})})}),(0,xe.jsx)(I.A,{align:"center",sx:me,children:0===At?e.quantity:(0,xe.jsx)(S.A,{size:"small",type:"number",value:e.quantity||"",onChange:t=>Nt(e.customerid,t.target.value),inputProps:{min:0},sx:{width:64,"& .MuiOutlinedInput-root":{borderRadius:"8px",height:30}}})}),(0,xe.jsx)(I.A,{align:"center",sx:me,children:0===At?"\u20b9".concat(Number(e.collectionamt||0).toFixed(2)):(0,xe.jsx)(S.A,{size:"small",type:"number",value:e.collectionamt?e.collectionamt:"",placeholder:"0",onChange:t=>{const n=Number(t.target.value);Pt(e.customerid,n>0?n:0)},inputProps:{min:0},InputProps:{startAdornment:(0,xe.jsx)(w.A,{position:"start",children:"\u20b9"})},sx:{width:90,"& .MuiOutlinedInput-root":{borderRadius:"8px",height:30}}})}),(0,xe.jsx)(I.A,{sx:me,children:e.distance}),(0,xe.jsxs)(I.A,{align:"right",sx:(0,i.A)((0,i.A)({},me),{},{fontWeight:700,color:"#1e293b"}),children:["\u20b9",Number((null===e||void 0===e?void 0:e.totalcharge)||0).toFixed(2)]}),(0,xe.jsx)(I.A,{align:"center",sx:me,children:(0,xe.jsx)(C.A,{title:"Remove",children:(0,xe.jsx)(z.A,{size:"small",onClick:()=>zt(e),sx:{color:"#ef4444",p:.5},children:(0,xe.jsx)(ne.A,{style:{fontSize:13}})})})})]},e.customerid||e.firstname||t))),(0,xe.jsxs)(D.A,{sx:{bgcolor:"#fafbfc"},children:[(0,xe.jsx)(I.A,{sx:(0,i.A)((0,i.A)({},me),{},{fontWeight:800}),children:"Total"}),(0,xe.jsx)(I.A,{colSpan:2,sx:me}),(0,xe.jsx)(I.A,{align:"center",sx:(0,i.A)((0,i.A)({},me),{},{fontWeight:800}),children:ut}),(0,xe.jsxs)(I.A,{align:"center",sx:(0,i.A)((0,i.A)({},me),{},{fontWeight:800}),children:["\u20b9",Number(ft).toFixed(2)]}),(0,xe.jsx)(I.A,{sx:(0,i.A)((0,i.A)({},me),{},{fontWeight:800}),children:dt}),(0,xe.jsxs)(I.A,{align:"right",sx:(0,i.A)((0,i.A)({},me),{},{fontWeight:800,color:"#65387a"}),children:["\u20b9",Number(xt).toFixed(2)]}),(0,xe.jsx)(I.A,{sx:me})]})]})]})}),"preview"===Rt&&n&&(0,xe.jsx)(he.nV,{sx:{p:0},children:jt.map(((e,t)=>{var n;return(0,xe.jsx)(he.pg,{accent:"#d97706",header:(0,xe.jsxs)(f.A,{sx:{minWidth:0},children:[(0,xe.jsxs)(A.A,{sx:{fontSize:14,fontWeight:700,color:"#1e293b",lineHeight:1.2},children:[t+1,". ",e.firstname||"\u2014"]}),(0,xe.jsx)(A.A,{sx:{fontSize:12,color:"#64748b",mt:.25},children:e.address||"\u2014"})]}),children:(0,xe.jsxs)(he.FG,{columns:2,children:[(0,xe.jsx)(he.pY,{label:"Contact",value:e.contactno||"\u2014"}),(0,xe.jsx)(he.pY,{label:"Qty",value:null!==(n=e.quantity)&&void 0!==n?n:"\u2014"}),(0,xe.jsx)(he.pY,{label:"Cash",value:null!=e.collectionamt?"\u20b9".concat(Number(e.collectionamt).toFixed(2)):"\u2014"})]})},t)}))}),"preview"===Rt&&!n&&(0,xe.jsx)(W.A,{component:M.A,sx:{borderRadius:"10px",border:"1px solid #eef2f6",boxShadow:"none"},children:(0,xe.jsxs)(N.A,{size:"small",stickyHeader:!0,children:[(0,xe.jsx)(P.A,{sx:{bgcolor:"#f8fafc"},children:(0,xe.jsxs)(D.A,{children:[(0,xe.jsx)(I.A,{sx:ue,children:"#"}),(0,xe.jsx)(I.A,{sx:ue,children:"Name"}),(0,xe.jsx)(I.A,{sx:ue,children:"Contact"}),(0,xe.jsx)(I.A,{sx:ue,children:"Address"}),(0,xe.jsx)(I.A,{sx:ue,align:"center",children:"Qty"}),(0,xe.jsx)(I.A,{sx:ue,align:"center",children:"Cash"})]})}),(0,xe.jsx)(R.A,{children:jt.map(((e,t)=>{var n;return(0,xe.jsxs)(D.A,{hover:!0,children:[(0,xe.jsx)(I.A,{sx:me,children:t+1}),(0,xe.jsx)(I.A,{sx:(0,i.A)((0,i.A)({},me),{},{whiteSpace:"nowrap",color:"#1e293b",fontWeight:600}),children:e.firstname||"\u2014"}),(0,xe.jsx)(I.A,{sx:me,children:e.contactno||"\u2014"}),(0,xe.jsx)(I.A,{sx:(0,i.A)((0,i.A)({},me),{},{color:"#64748b",maxWidth:240}),children:(0,xe.jsx)(C.A,{title:e.address||"",children:(0,xe.jsx)("span",{style:{display:"inline-block",maxWidth:240,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",verticalAlign:"middle"},children:e.address||"\u2014"})})}),(0,xe.jsx)(I.A,{align:"center",sx:me,children:null!==(n=e.quantity)&&void 0!==n?n:"\u2014"}),(0,xe.jsx)(I.A,{align:"center",sx:me,children:null!=e.collectionamt?"\u20b9".concat(Number(e.collectionamt).toFixed(2)):"\u2014"})]},t)}))})]})}),"empty"===Rt&&(()=>{const e=Ye&&ze&&Me,t=t=>{var n;e?(vt(t),qe([]),bt([]),St(""),0===t?null===(n=document.getElementById("upload-file"))||void 0===n||n.click():1===t&&(Ue(!0),Xe(""))):Yt("Please select Location, Client, and Business Location first.","warning",3e3)},n=n=>{let{value:i,icon:r,title:s,sub:o,accent:l}=n;return(0,xe.jsxs)(f.A,{role:"button",tabIndex:0,onClick:()=>t(i),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t(i))},sx:{flex:1,minWidth:0,display:"flex",alignItems:"center",textAlign:"left",gap:1.25,px:1.5,py:1.25,borderRadius:"10px",border:"1.5px solid #eef2f6",bgcolor:"#fff",opacity:e?1:.6,cursor:e?"pointer":"not-allowed",transition:"all 0.18s ease","&:hover":e?{borderColor:l,boxShadow:"0 4px 12px -4px ".concat(l,"40"),transform:"translateY(-1px)"}:void 0},children:[(0,xe.jsx)(f.A,{sx:{width:32,height:32,borderRadius:"8px",background:"".concat(l,"15"),color:l,display:"flex",alignItems:"center",justifyContent:"center",fontSize:15,flexShrink:0},children:(0,xe.jsx)(r,{})}),(0,xe.jsxs)(f.A,{sx:{minWidth:0,flex:1},children:[(0,xe.jsx)(A.A,{sx:{fontWeight:700,fontSize:13,color:"#1e293b",lineHeight:1.15},children:s}),(0,xe.jsx)(A.A,{sx:{fontSize:11,color:"#94a3b8",lineHeight:1.25},noWrap:!0,children:o})]})]})};return(0,xe.jsxs)(g.A,{alignItems:"center",justifyContent:"center",spacing:1.5,sx:{height:"100%",minHeight:240,bgcolor:"rgba(24,144,255,0.03)",border:"1px dashed rgba(24,144,255,0.25)",borderRadius:"12px",p:3,textAlign:"center"},children:[(0,xe.jsx)(f.A,{sx:{width:56,height:56,borderRadius:"14px",bgcolor:"rgba(24,144,255,0.08)",color:"#1890ff",display:"flex",alignItems:"center",justifyContent:"center",fontSize:28},children:(0,xe.jsx)(ie.A,{})}),(0,xe.jsx)(A.A,{sx:{fontWeight:700,color:"#1e293b",fontSize:14},children:"Choose a Drop Source to begin"}),(0,xe.jsx)(A.A,{sx:{color:"#64748b",fontSize:12,maxWidth:360,mb:1},children:"Select a source from below or the left panel to import or pick your delivery customers."}),(0,xe.jsxs)(g.A,{direction:{xs:"column",sm:"row"},gap:1.5,sx:{width:"100%",maxWidth:480,mt:1},children:[n({value:0,icon:ae.CtR,title:"Excel / CSV",sub:"Bulk upload a sheet",accent:"#1890ff"}),n({value:1,icon:oe.YXz,title:"Selection",sub:"Pick saved customers",accent:"#65387a"})]})]})})()]})]})})]})]}),(0,xe.jsx)("input",{accept:".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",id:"upload-file",type:"file",hidden:!0,onChange:e=>{const t=e.target.files[0];if(!t)return;const n=t.name.replace(/\.[^/.]+$/,"");St((e=>e?"".concat(e,", ").concat(n):n)),(e=>{try{var t;const n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(!n)return void kt("No file selected.","warning");const i=n.name.toLowerCase(),r=i.endsWith(".csv"),s=i.endsWith(".xls")||i.endsWith(".xlsx");if(!r&&!s)return void kt("Invalid file type. Please upload a CSV or Excel file.","warning");const o=(e,t)=>{const n={};for(const s in Mt)n[Wt(s)]=Mt[s];const i=e.map((e=>{const t={};for(const r in e){const s=Wt(r),o=n[s]||s;let l=e[r];"firstname"===o&&(l="string"===typeof(i=l)?i.replace(/^[\d.\s]+/,"").trim():i),t[o]=l}var i;return t})),r=Object.keys(Mt).filter((e=>e.trim().endsWith("*"))).filter((e=>!t.includes(Wt(e))));if(r.length>0)return kt("Missing required columns: ".concat(r.join(", ")),"warning",3e3),void bt([]);bt(i),kt("File uploaded successfully","success",2e3),kt("Press Continue to add as drop customers","info",2500)};if(r&&l().parse(n,{header:!0,dynamicTyping:!0,skipEmptyLines:!0,complete:e=>{var t;if(null===(t=e.data)||void 0===t||!t.length)return kt("CSV file is empty or has no valid rows.","warning"),void bt([]);const n=e.meta.fields.map(Wt);o(e.data,n)},error:e=>kt("CSV parsing failed: ".concat(e.message),"warning")}),s){const e=new FileReader;e.onload=e=>{try{const t=e.target.result,n=a.LF(t,{type:"binary"}),i=n.SheetNames[0],r=n.Sheets[i],s=a.Wp.sheet_to_json(r,{defval:""});if(null===s||void 0===s||!s.length)return kt("Excel file is empty or invalid.","warning"),void bt([]);const l=Object.keys(s[0]).map(Wt);o(s,l)}catch(t){kt("Error reading Excel: ".concat(t.message),"warning")}},e.readAsBinaryString(n)}}catch(n){kt("Unexpected error: ".concat(n.message),"warning")}})(e)}}),(0,xe.jsxs)(H.A,{open:Ze,onClose:()=>Ue(!1),fullWidth:!0,fullScreen:n,sx:{"& .MuiDialog-paper":{borderRadius:{xs:0,sm:"16px"},overflow:"hidden"}},children:[(0,xe.jsx)(T.A,{sx:{bgcolor:t.palette.primary.main,color:"white",py:2.5},children:(0,xe.jsxs)(g.A,{spacing:1.5,children:[(0,xe.jsx)(A.A,{variant:"h4",sx:{fontWeight:600,color:"white"},children:"Select Drop Customers (".concat(Ve.length||0,")")}),(0,xe.jsx)(L.A,{sx:{width:"100%"},children:(0,xe.jsx)(F.A,{autoFocus:!0,fullWidth:!0,id:"input-search-header",placeholder:"Search by name, contact, or address\u2026",value:Qe,onChange:e=>Xe(e.target.value),sx:{bgcolor:"white",borderRadius:"10px","& .MuiOutlinedInput-input":{p:"10px 14px"}},startAdornment:(0,xe.jsx)(w.A,{position:"start",children:(0,xe.jsx)(re.A,{style:{fontSize:"small",color:"#64748b"}})}),endAdornment:(0,xe.jsx)(z.A,{sx:{visibility:Qe?"visible":"hidden",p:.5},onClick:()=>Xe(""),children:(0,xe.jsx)(U.A,{style:{fontSize:"18px"}})}),autoComplete:"off"})})]})}),(0,xe.jsx)(E.A,{}),(0,xe.jsx)(O.A,{sx:{p:2.5,bgcolor:"#fafbfc",minHeight:400,maxHeight:{xs:"none",sm:600}},children:0===(null===Ge||void 0===Ge?void 0:Ge.length)?(0,xe.jsx)(g.A,{alignItems:"center",justifyContent:"center",sx:{minHeight:300},children:(0,xe.jsx)(se.A,{description:"No saved customers found for this client"})}):(0,xe.jsx)(g.A,{spacing:0,children:null===Ge||void 0===Ge?void 0:Ge.map(((e,t)=>{const n=Ve.some((t=>t.customerid===e.customerid));return(0,xe.jsx)(B.A,{children:(0,xe.jsx)(J.A,{sx:{m:0,py:1,px:1.25,borderRadius:"10px","&:hover":{bgcolor:"rgba(24,144,255,0.04)"}},control:(0,xe.jsx)(V.A,{checked:n,onChange:t=>(async(e,t)=>{Se(!0);try{if(e.target.checked){const{roundedDistance:e,totalcharge:n}=await Ct(t);qe((r=>[...r,(0,i.A)((0,i.A)({},t),{},{distance:e,totalcharge:n})]))}else qe((e=>e.filter((e=>e.customerid!==t.customerid))))}catch(n){console.error("Failed to calculate distance:",n)}finally{Se(!1)}})(t,e)}),label:(0,xe.jsxs)(f.A,{sx:{width:"100%"},children:[(0,xe.jsxs)(A.A,{sx:{fontWeight:600,color:"#1e293b",fontSize:13.5},children:[e.firstname," (",e.contactno,")"]}),(0,xe.jsx)(A.A,{sx:{color:"#64748b",fontSize:12,mt:.25},children:e.address})]})})},e.customerid||t)}))})}),(0,xe.jsx)(E.A,{}),(0,xe.jsx)(q.A,{sx:{p:2,bgcolor:"#fafbfc"},children:(0,xe.jsx)(k.A,{variant:"outlined",color:0===Ve.length?"error":"primary",onClick:()=>Ue(!1),sx:{borderRadius:"10px",textTransform:"none",fontWeight:600,px:3},children:0===Ve.length?"Close":"Continue"})})]})]})}},42041:()=>{},62217:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAAA+CAYAAABzwahEAAAPnUlEQVR4AdVae3AU9R3/7d4jdyGQQKAhECBAJBSmEAtFSQUjqPgAHGlhRm0lDkWY6Tg+O9qiErR26h8WR8ZWqTMN1ur4qMpDrTyjtDwDJloeCYiBvAgkaZ53l7vb3X4/v9vfZS/Zu9uFwLSfmb3d293f7u/z+z5/399K7CphdW5JrupgBZosZ0ialmu8pklSjUOTamRJbvvjqTUV7CpAYlcIj+SWZHQ55WJZlm7UNK2IXpRhpZ3GWJskSWXUZrPD4Sp77eSva9gVwIATXz35+SJNYWs1phWxAYDEpDKVaZv+fOrZUjaAGDDiK695rpgetpYOc82upw72sMycdJbz/SzmHeKl/ynRay31bbS1s7rjTczXGYj3ihrShnUDNQCXTXzlNS8UyExdbybhSdeNYwXz81nBzflE2pKms7oT51ntiSa276NKVn3wrNktNcGQelNpTUkNuwxcFvFV+S88rKnKy8ZzkOz84uvYvOJZ/PhyAE3Y/+HXbN+HFVwjjJAlR8lr1WueY9wt2MclEYfj8rnkj+nwRnHOLuGWhnbmpfuMKh/3Xn0Atm74IuY8OcGPFYk99kbVM98xm7BFnDyttHLyb3MlRdsjSWycOA+VLv79YpY5Ork6V5efY59s/JJVHznH/+dMymLz7v0Rm71oWtK2GIDSJ7ew6kMxJlCjytI8u+Qddm4+93bPBIfqiiG96KG5RPouljokuZT3b/2avf7EB6ylsZ1dM2MsG5OfxU7RAFSWVbMAObUphRMTtsc7CpdMh6c3kqe8gN117Yh5W4627GljFmGZ+C/ynx/flzSkDPW2Aqj2+lV/Y5mj0tljG3/GFhQXspkLpnBJVx85yyq/OGWJPAANgzkd2/utOMXJzxp965vlF3YFrPRHZtYgSZq6vi/p2TT6VrF+1Vt8/yiRhnoLiIHAftc7h0kDzlp6HgYcfTAgVwmEPmIWzTeZxPEQaeWkkhJJk1eJk8vWLGBz75nBrAIqfmDrN2zhqjlsetGkftddKU6WQ2qPe6AZVuwdGPP9kWw4+ZWKnVXiVO6M4UXtR1rKDiZrm4g4J70871cTnMzzd3ESNn3bgz9mdgC7hmoufeKWuB4/c1QGV3nYfP7Msfy/FYB8rM1LC6YNm72lonXv+UTtEqr60qVLJTcbvEv8h20tfOhGZgeQtpBiZnZ6wnuhEUDFnlPMDhaSMCbNilohc0kp61mEW1y1j0u8hLR78Ff5xX3t2i5AHLjegvqOIdtHXK/8oorZRfGLiw3aJM1dkVeynA5kCsGm98cjLhNxh4O5nxEnoOJW4rQRkDRUF3adTNoAEprRRB7tfJ09zA7Qt3mGCCMz+dmioiLKcSRTjvGISw/kPbNcSDtzdLotDy6A+AyYObR4KCjK53ur3t2I+ct7s0b0Pfds4U04RuLV914z4rjJ4ZSc94sTSBrsShvYv62S76frZKwAYQ2orWpidoEExyh1tzPl6SlTpjhJ6v3u7Utcgm0vHf/wePKUc8TJS5E21LWu6gKbRBmalXwcgHp70yISg8QR3oTWWAWk3gtpbp6/cCiLRK8Y9k7jHzgCGh3n8om/ibpueHKr0vZT5lVZFvHItVWRaALVQ4pqxcYfL3opeoxcvlr3D4BVc4HU4eFFeMt0ZsHJvUzcFKPkY4gvW7YMGiC7ZfcicW723dalXUsS3lSyNeZcBUmsmaS/5p0Vlp4BVccADsvOYP6uAM/yKsqq7PkJmv8L4k7mmEu7DcRNIfIqkedu3qjq0pkzZ/DfITE5quZjp2Qxu0Dnha1iX1fdxD55fW/CNjANYN49s7jKI5O788E5kfY0oHZQcEuvT5GY8wbaye+//36MqsfY+JEjR6QlY1cX0CHvNdQmZ/JIZhUtjW3RzkNqsG90Hti2cS8fgGSoqz7Pp6loi/uH6wNnJ7zBNA0ZYvrdY1aMZ6hdGHQ9RuL473KmDBUnUB+zAyE1dP6me2fxpMUYljat3Zb0GfvJodWRRz9Aic/utw+Ts/NG1L/L0qQrCoRggVTXUGRPMULmNo44h0CflZXlcGiuXLPGdoDOo7Pw0EYpC5W/c9Wcfm3EoAGiSAF4h0QiQmtDmyUHKZAzZSSrPam/W5MgzJgUlo+CrgFSU1OT5GTOseKi7UytsT2GiJlqW1X5aB+IrJfCYXNDO7MDYwh1yA4kYvKMGTNkkcxw4ghjdJLfQ9ntJRcgWxqsFUCsqDzg1e0U5FtsEvfGVIQ4J9nv90fNXEhcgmPLyEAh49KJW4WZlzezYSE172BvjDbZhc5JPn78eH/nlpubK7e1tcWQtjtRaDXpnLHaYkRflTdbSEhN65V4a4Plclo/IC/TDyV9ixCnNJWFw2EpPT2dBcKBBtHA3+FndmCmjsueuJnIf8/0/mQq79UlDkdpV+LGOnxQ7aljOmFwBTjxY8eOSXV1day9vV1SlFCHaFB3wroT8sdZ+kE4QuXFDMkSG7+ucZmUxdmdqrbU9WpIINQuiPO5CM5x4pTVYMdTucbgt8ejjeutj3K8Tg0jaU2aMY4nJWYQKm+mLT7d7kUW2GrDwRmFFpD8Xax3xSUmZcUfPhL7L2yvp9XJTv7ijgAv4ltBPK8rHNRCPf00QzKVRzs8p7Y6YRktCqy99foMrWN73bsnWJ/ZmTGbUVlkADRFDUarlIYKZkKYeWUjUYSm+0sWmraFxHdTaTkRhtnI2bHwKBBUA3iwSv6LcxPnjV4dI6J5vV61W+04JM5X7LBG3Mwr9820oPLxZln+zsQpac6kkdG5QDLs+7AyetwRat0FTvqsLEpeJDBaTU2NQocqBXl1f9PnH4uGmN5ZcSpmqu41KSUvffwWy4UJIzCIxlQ2bj/ILxnX1mq6Tx0EJwrVKlVjNFF8NKasbMSIEeqgQYOUWl91W0gNlIvGu0oPJH2h31Ti/VNeqP8dJrm6KQnDYIp5erKwZpR2j9JTfrRldy1x4mZMCYwWk7mxiPjVixcvqt3d3WpKSopS6z/9J/GA3ZsOJZW6mRp640h2Pk1bsWhoBzAToLo8fhES0t4fo+YXoblhWZbDtOcaLa5FbZziGyc/ZMgQpaenJ7yz4b1DqhpuxDV492RSNxuYeF4cWF6yiNmB8OyJ1B3SFlFI1ZSGj2o3grjS2dnJSescYyswa9eu5cQ7OjpwE0YodLGn/jVxHVJPFNfNc21PQiKiSJEIxgGFZ49XfETfthk+HGiO9B08wsOHD8deNd4fJa7rPi6G09LSeINPm97cHFT9R3gHSOqlT25m8WCWXCRzYvMpqUmkFYBxQOHZYedmNXdj36Cp6LvOJdTc3KzS4oKqC5cjSlz3dvhRurq6Qh6PJ0SDETrefvQP4h54y76fYwhg+ffRjfeRCi/kkrx+0Q9oVSRx2SpRbI8S7+iVuAiP+KrCiK0bvozx5Idat68KBoMhCmNBcKFQrYC4KDQC0SqrfhIS56oeCASC5ORCh5o/Pz7aO279CE/Oo7hvG70EBYrCPrX26CzM+uoxh0hnUWYyJd4VmSihWvvJxkheX2uY1e0qPRij4q09TW98/Z8D59B3CmNBUnMFoVpMTgT6LigI44eqB2kwMNxBchJvk8ofFTdtempLTNi4XCCdjWcWqLwgrH3w0g4eCaBVq1/6Kb+GPrz3u+3Re31K95cfnHv1dfSZPDn6HoKq06qvqvVZPey3Po6RKSsr49cwVWWRwXE2+M7tyxs87VZZktNwsZJSWVRhJxTksMsFPgyY85MZbGrhBJqDe5kzxRGd20MjOlq6qNqawSOBWDcHaQhAQCG7Pty66+l29WKz0+n0k8ZCVQITJ04M7dy5U1m3bl0M8XjVFgyIizYP2ckgUpnBdJw6OeOHuYWZC191ys6o8WJtepHNNXMrgDeHE0MuALLG9Bc2bVTvsBo+v6/ls1+ebDv8Ham4j8IxZmPdtMEzhljvPCSKeMT5wmF2dra7sbExlY4H0QZJe4n82L7ksWRT/OJdl1yVtQqELHhvoyMjSZ//V4T0WbfbHSCnxklTxdhPxdMgaXjY6NSMBPtBX0ODikPqbto4eXpwKj0Y5MfMHHbzI6mOtJhADOkXLikY8AGA9JFA7S49FDMZCij+ih31bz3V2FPbqpOGlLH5aION94vfAnELi3qtHddBHJ7Hy3Sp0+YhO3Ivzl65Yrgn+wFjO3j82UumDcgAxCMMNPnPbdhc98a7LpcLThikYdOQNrdtcmhhKrD0U3GBZBVVieKfg5wdJJ+Smprq9fl8kH4qvdATCoVc+ekFo28YvvgVh0H1BWACWGLGBzpjLK7KoGSEGgC2Pl8wckDK/247+MrR1t2YL8N+IVmfThh7YdcKS/Cda1LiqFHRJufk5LioLuch8h6dvJfIpxB5aITzjtE/v32kZ/wDTpMBAJC+YkkKWmD8ktlHCQqKmrUnL7BWIh3vs23YcmPgu798Wv/Xz0CM3h2mdwd0wnwjn9QzatSoEJXKw1pEZeMTYxagq73w9FB7Suw8XlVVvaRi+A/yuO64bfR9t2eljL09xeEtYAOAQNhfcabrm9J/XtyGPIKn1Lp6B3X19tN6gJ/m29ymSUgKUlMzh2aEncUDmdRe1tXeaPce/dilbxgAOT99evbEQdOuHebJvsHrSC2gpec0Ky/RmNrlV3wVneHWrw427/hHc7C+k/IJEFZ1KSOjDFDIEtLmSRb1LUR94/dZeY+tVROoPDaQo1TQTS9PoSlfik4cA0B9c7mpc1z6GAByghISoZkjivI8MuVRjqEjU52DRuossXir+UJdFHcCXfW+b09VtR9tMnReoefxNJqeCbsF6R7KygL03B56N8/OWK/3tkTaNnHWa/M8zrNIru8iOik0GeADQGHFTabh0q85qL/8Kwu0xSBgTwPB6BiLGMZn83SZzmuQMAhTWz5voEeGoNcgTtWUHiqW8OO8vLww+R5lz5494UT2PBDEY9rSQqOTHAmP91TFdNGChJsyPTdlelztqcMu6i+XvNiIkBQRHlcPHGv6sUbHIKzo56J1AZBkvR5cSFhUVBR2CbD69bIpysvLecdoAHqINOytm0ijJt9J3r+TVBLHXfrGkwsiJRIMLF1i76MBEue7qE0XqTPadYiNnFen3j6Ad5HGYSDwTcslkQYGamVULLrLpH7y6dOnuY1TGctFFR0hcYfhvujinQ6eaNBgYc6sEHm+0WAKqatEWJkwYYI6depUjYhbtuWrBW775GGd1FEXFQA8FFsR8+HRMdFBKocgPrTvRkgnh4l70ijPxtwAzpLnCLpDvSztvFqQ9C8PuAPEINDeTdpgjADYjOFQhESn3s6hP+OKr9dfSUhCaiIcYjNIMur52f850f95/BfoYlARf1CQvwAAAABJRU5ErkJggg=="},83686:()=>{},94826:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var i=n(59254),r=n(46639),s=n(62217),o=n(44414);const l=(0,i.Ay)("div")((()=>({position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2001,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0.7)",padding:"20px",borderRadius:"10px"}))),a=(0,i.Ay)("div")((()=>({position:"absolute",width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center"}))),c=()=>(0,o.jsxs)(l,{children:[(0,o.jsx)(r.A,{color:"primary",size:80,thickness:6}),(0,o.jsx)(a,{children:(0,o.jsx)("img",{src:s,alt:"Logo",style:{width:"100%",height:"100%"}})})]})}}]); \ No newline at end of file diff --git a/build/static/js/5409.fa07332d.chunk.js b/build/static/js/5409.fa07332d.chunk.js new file mode 100644 index 0000000..dd7c44e --- /dev/null +++ b/build/static/js/5409.fa07332d.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[5409],{8457:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALEAAABFCAYAAAAFKgfKAAAQE0lEQVR4Ae2dS4wcRxmA/6p5GLxEHiuHRILgtpx1wslrDjwuZDdcAduckTyrxOsIFNl7Q1HsnbVz4YC8IQoku4685sjFNnCMtGMuICTkzQWIdy23RZDgABlAgL0zXcX/Vz+mp6cf1Y/ZJUl90u70zHTXdNf8/df/qhoAg8FgMBgMBoPBYDAYDIa9hEEJ2lan1WzWzoGUbXxqSYAeNrkJIK+vbV1cB4NhFygsxO1nO1bT4Ru4aSXsYu/0xdy63bHBYJgghYQ4KsCkgTnATSlZC5icgaFg9ySIubWtziYYDBOCQ07GBFjI16f64vDbWxfnV7cvnOI1MYfmxbK3e4sB30CzwwKDYULk1sRnpy9dQ83bVk9QWFe3lzpx+y08vdwBxpa8p2RaHEfTogcGQ8XU8ux8ZrrTRrnv0DZK/zoK8GLSvr/7e7f7xYOzBxljX8GnrRqHR/QaGAwVk8ucQNMg0KysL5az9u87skP7ugezcxTNAIOhYrSF2NXCnsMm5fW3NKIOZD44QvjautWss/NgMFSMthCHtXCSHRzHO/c6N934MTXCToPBUDFaQvzi051ZCGlhyAmT8nVv0/LaMhgqQ0uIa4wHGpQP5DrkhNeHxzDJToLBUCGZQkxxYT+kRhGJtwpk4N76ozrG9j7xOTAYKiRTiBsOzPrbAyFuQUEwKaKOZcBmTJTCUCU8e4eab0rY5KRBUbgMUs+12vDGMBjKkirErikhZ2kbTYkulAAFtxtsM26BwVARqUJclSlBkF3sh9oYg2NgMFREqhBzWTvhb5cyJTzQHrbpEYV5FgyGiqinvSndskoMDbMuVACTYEsG1GbLywBSyM3Cz7lpyjUNRUkUYhSyoC6YgSxsSrxw5PJJzuU1tKlbknSwC5VoXgO38d7a1lJn4Ujn5GoF2t7wySMQYhK2GpdX4nZC7bm0cPTSc6t3L56CnHDukMAmhtRQy29SyI1xTqaLlhC/hA6ncPj9kXa8wvxHfbGsM5skWiq6unXxMG2QM7tvwM/hNVNSxoISCCnmrm53uknvt1FRNIHfiH4OXQtjbGX17oXUIquz05c3fMe7HGpKWXfH7bsejZKBkkGwb0pNY/NRteiidkVKOUtKDUrQGHDrzfuvPqDtwCZmTFrgdmb4z32PPlDCyYVnLpUq4Hnq2SeC7W++7OY8OJN2va5MjFK4mh7azQa/440ihaCCfxRguk4LJkycABNuf8vO7qXoldl4vtkcCm7VBJMppDxZVoCj8OGGDBre/9in1N8YApbyJirI5qXHxz97AL7e/nLw+jde/hoc/dIhvCaJdxOfEUwehGooPJuERiPYBeElRqoCE2DDkWJ3QEU1qUSUF+myYAIMbWI2/IDTP/gW/OS7P1Pbz6PgffD7v8Dd3yrN3fLu1txmxeOfG++bp77wBLz/mwc2amNLSjgEBRESFrlyQoMquRZqZBLkXBNVyfQJB2wcIU5hOLDwbJTPDCDWWSWtxBweFlCbSlbps6i2hHF2jl7EaM7smelLbb2Z4/K2kKp+OxccFQh+UGBGTrH6gR0YQNUoZRYySsr27Zv3Lz7wt+vDD+EHMEqAGrOl/nyeQW35eTQDPCFWdysNc2m2Xhwf/OGv8NQrT8JXv30MhfdJ9drmu3fR3hY2flkW/pXQAGJzdauzgnauHbJzrWaD3fAEuVBnvTMhR3MfCrAMaSUJ4hR+lhJ4PN/NJmfkH6j38Xu/gq/dzLoG7L/7V7eXupAT9C9s9C+uwO5iV9m3YU2shOi//3oYvEQmBWnLX/zoVyMHccavYcdqzZlDDdvCOw7+88+H8GPU7mRGYIfDD7/zU/jbn0cOt6AkVOd85shyy9dkeFEzjQajL2geCkDzCaEE6GQuRvtIZUEdb44ieNO8QuFFz7FaDjlW/mSCTtpnoYM3o5zVnEiHjYyA/5aDfzRg4rTK9i1NTPa3AyGWnrFNwvbLN27DhVsL8OnH9sGfUIP++sZ70TZQy6nhcDHrwxgfGvEktNe///OR9/c59fv9mjNL2987/Noh3+Msytq9pfNnp5ePSRyK1eej3CwcvWxnefpxBBNiC4JDcwdgdMj0tHBA3DQvjJmv4zWc9q/Bm9q1nm4aMTILcju04XOhfIB3E8GEaZXtWwgppsAAxDvZ8rc3330fLp9YhVeefyOwjWM4X4X3THe+AKa+6J36oBLn7lFfks1uBy+grVg2slIF5MyNfHlSLieVtjrDZQ8I8kUmOuSTANcGTqERa68Z2sQFwh46ZoVvayfh3fk9dT8JTpqkdOaO2kRbb06EVygScGXh6Gsfrt59VXtmCg31UAK6QUfbG3Hm0B9g5xamL+lN2cr0ReRtVETrSYe7jtVotIMcYsZEd6oP9sruLqfQY5o5AR2UELvJAyhCtlnBUm8O1XFC1HqYaKHCoMrCO1RwhDcHamS+EdygUqzga+/pprjDdldZ4kJq3nlpX7MXcuvGvoeO3erW0nra8QtPX+qFIxEck1ioXroru78eSK/KvlVC7DgUWy0MmRW38kYrCNQcNj1iaMtWkWo5NGmqgIQVhQdvsKGTRDFkDFst4vUekhnHv4Cp8DJhoAGG2GhUiAmpFSJfyG2c1e2LFMFphTSy1x+d1KXGquiHyEutsqao37e0rYTYjyAUhTMVATgOeZFcnUStBj0aCThnB6BiyEnCL84a/eLgWpYAq/PiKqNWmHpdzOFDNxpSI1tYYJpXtx3G+A1/NNENuSVBERzsD0gTZH9k9CnbD1OMW49A9EIlky00RTegBFNuTXpYiGu0ECAUh6nwTtxUfpk2XHKhbEYa+tE2RLNV5vaudYj54mLp9+FmswG0jwUVEQ2pQc4lDwg0A5ZDZoBWyC2NLEF2HKeLgmtDhf0wGIj1BpqeVaecCXVzeHUTyTANI9wNA1njb8jEk+aSfRh6qpIeMCHoi8OkwjxLKSsl7aYWRAR5XULx4TPMvogZQYkNyAmZARCOtiT2dZ428UaKREA8QZ4J98PI55aA2qzVxPEq+9ZHGRGRiq4xdmricMZaxAq0cbtrW0tz4ddQw95POo68f9/AX5i+fIcKUXb64qBZeNCQB9dMYenCuY7DvZAi05skx6N4PFaojEqjUd0QZvhk4JoTGMtN2cemfyr6oGNWuJVuVugVCzSQwhti3FixwaCNr4nTitbtYGcuFjXsmVajwfLnxb0p/Zn2ucEQwY1OaHqMKoow6inH4psVq+8rh0SLYcKDFS7J3Auo/vZT2H+DevaIUx+AnWcFpZe8ES2pbaamdo3Hd/Ock855UXtk5lEoFgqAMV07WvdRts3wtXtCLK2kMDHNvAg/J0/57PTyiaA4JQkyK57t3ISUTGC4EL7RcDYxTawVZvOmJ8U6mnhDrq+VyAZhMoHmA7Zj3rJ5X8z5X7abgaudZiBnBegtaicaytHFc6QIibOYJID0i1SY+DkvPOWS1LY3gTdwpBeOXl7yf8lK95xC52WjJlkMz3Ok8GDDqV1j/tojBXMJzbqKgnSqbDN87a5NDGnmBM28GCVSnJJEq+mw9CC5GNri/roUOmE22tcNAY2Hf0gAzxQs89MVYPzCr1CpJCs4v42Ow+PvRJ1gNYWnwe9QwVLeeOrC0Us3wC2Kt6AYFtqL18IzOygixSqZwzeEQo5Vt8lJq6XvwsZsYHLy6AdnIBOWy0nz1qVoUUlm1r5VC7KuAHtTmApGYCJEpnt5MWULcqJSuFJNbC0LJlJ4mzY8ubCgYnCEqOI8R6hn1U04Uthxr9NPGTQ4O11tBobCbGxmhyvhXM/amwTZrVYjjT96w3iCDDqmRbIAy839fTkXLpBBg2cWYLTH1ExryTYhA8nGNFDLW5fuptfO7NgxqW27zjBPMu3wOJbiiMecD6Qlp3TajEOwoQzFykuBNv1rJ+pZdRNJhR9eCWW4uKY8ErWqOhf99DMJMk1BwnTxRhFBThJgsrmmBuJUtMKLc35MgozsK069rVEAdebI8spw1olLZF06K3oM/bxakSozlUjavjCf93wywJT5hfw1MhmUbbPOWNaM2+Q7ZGwGQk6i4TTUDJR6JtWSa602L8N3/MXp5XUOoz+pkCbISQKMzuX1q9sX21Ax8X2ZrvkKl0lK6L2UkZoWNYwE5SuZaVF2V0ac/SQYxv51FsShqUoCxG3QgNrccVQFm+2/hpqYp2rifj89d85qcl467D5UgxsrzmlL+1zdWmqjdulFtUucICdqYLT1r95bqsbm3UNo7QzZ4OnXESPA6LSr7+DhQ+g1xyfbqTJOBpohBe5GPaheJBSJsWF8sZg2Orpt0AHbbFK7R19r+xMcOM/QBFl1DGoVeL1oRSahG0bLuYuD5tjFnY8ryMsbdNefmb68EWsD43FrHwMBLoHdcFxFQt+7gPy/zxKDhb0/zCtI0AgIaCDFiu8U1zPqJmzQYGcgV5oNNYxbUALqOBWvxHb6NVXttQIFSCq9pCSMVI8xKijl11E/irjhSk1nSbIek+I2c+RKOOmhRrbpTpfJ2gldB14OV5IKYCFzk/IMNB0tV5tqBBjzk1q0RgY+9uppc+DCKec0SPgwzDNfoNB57CIYeqrUEZIrz7mQEBM7dbnecNg5zY6y6UaEjxH0i1VV3JTk90COuYYqWdPgH1bZJpFWDVmHiua1UewYnbxuTidv7LOFFA8w9UzC/BwUJPQj6rrXRgutbBRfaIXP4E2cvodU9uTp8XdYMcctCwYn8Jy6kJPwtJ8iU4iyAgVUr5w31Ux9JyE5FFwPT9UfO1jTC/UhJw9jtndKxY5VIZA63VaRlYZCAmzFvG3TP69DIufIZihMV0SQuaolyUjyJnwD6JVvQkmCqM7oB85wxnJPAfKnVNF22SlEcaADdyNL0GMOSnUlucyZck6DnDy0THI5eVEHLvzbHjxn6C5NgMlJoeVb6Q+jFAfjnRYSZKWRKxmdNLCLTLCNQtOq4P8bGyaAvyQCF0LMq/UHMLSkpu6QTRo4BPmHOncqjSysXbzfvFNgmEjbpMgSYHJSwq/R870UZOrjIlOV4lAjh8xejWnPkJVEOSJtsmCybD1pYbfzJb5EIeWi7lD2qDY4jA+Bxg/bYeTVkjBlDe95BdiHXkc7/tC4HV/ctEhDRQyUsyxuTaEjWeV6D57X38U+wxAjPxbjze8FFH69XnHUR7W5fyACR1wzap0f3ZSmFDC/ds9dR4EEOGqH0RKgaSsopgkwpY7Xti/MQQquN8024ouV5OZOX44Ictzq7Fkrwhsmi27JaW6oQEjmKOogYaJlsbynNpk4+/viYFEBJgGcGjiZwzUJKAlqvAm06zayoQATE2JXe4lFyKju8usnGg33NzIo7YvCe/wqDo9pw22WAEerz7LO1QjyR5eJCTFBQW2qUOI1cZjMgrh1DPyYIYPaOT/tu1LCBs4rwD5GkD+61GEX8CIO9KdMA++HYWYo9Qj+cklS3NJxACYhwD5q3TRV1snujLfvOnv5ir4MBoPBYDAYDAaDwWAwZPI/iTTgFxK8/KcAAAAASUVORK5CYII="},45409:(e,r,n)=>{n.r(r),n.d(r,{default:()=>J});var s=n(85672),t=n(96515),i=n(69039),a=n(76264),c=n(8457),o=n(66157),l=n(46077),d=n.n(l),x=(n(52351),n(13659)),h=n(3158),A=n(49580),j=n.n(A),m=n(15172),p=n(71392),u=n(23440),y=n(11969),g=n(2866),w=n(81062),C=n(80911),b=n(48738),Y=n(1939),D=n(83209),v=n(72486),f=n(54016),k=n(50755),N=n(1596),M=n(81802),T=n(58571),U=n(58689),F=n(19619),O=n(5670),R=n(86270),S=n(17450),z=n(65908);const J=()=>{const[e,r]=(0,s.useState)({}),n=(0,t.zy)(),l=(0,t.Zp)();console.log("previewSelect",n.state);const A=(0,s.useRef)(null),[J,Q]=(0,s.useState)(!0),[B,E]=(0,s.useState)(!1),[q,G]=(0,s.useState)(""),[V,I]=(0,s.useState)(""),H=(0,i.A)(),L=(0,a.A)(H.breakpoints.down("md"));function W(e){return new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",minimumFractionDigits:2}).format(e)}(0,s.useEffect)((()=>{r(n.state)}),[]);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(p.A,{direction:{xs:"column",md:"row"},justifyContent:"Space-between",alignItems:{xs:"stretch",md:"center"},spacing:2,sx:{px:{xs:1.5,md:2.5},py:1,bgcolor:"#eeeeee"},children:[(0,z.jsxs)(p.A,{direction:"row",alignItems:"center",spacing:2,children:[(0,z.jsx)(u.A,{title:"back",children:(0,z.jsx)(y.A,{color:"primary",onClick:()=>{l("/nearle/invoice")},children:(0,z.jsx)(m.QVr,{size:"large"})})}),(0,z.jsxs)(p.A,{alignItems:"center",children:[(0,z.jsx)(g.A,{variant:"h3",color:"primary",children:"Invoice Details"}),(0,z.jsx)(w.A,{size:"small",color:"warning",variant:"outlined",sx:{bgcolor:H.palette.warning.lighter},label:"Invoice No :".concat("\xa0\xa0",e.invoiceno)})]})]}),(0,z.jsxs)(p.A,{direction:{xs:"column",sm:"row"},spacing:2,sx:{width:{xs:"100%",md:"auto"}},children:[(0,z.jsxs)(C.A,{variant:"outlined",color:"primary",fullWidth:L,sx:{"&:hover":{backgroundColor:"primary.main",color:"primary.contrastText"}},onClick:()=>{E(!0)},children:[" ",(0,z.jsx)(m.jtd,{}),"Update Payment"]}),(0,z.jsx)(j(),{trigger:()=>(0,z.jsx)(C.A,{size:"small",startIcon:(0,z.jsx)(h.A,{}),variant:"outlined",color:"primary",fullWidth:L,sx:{"&:hover":{backgroundColor:"primary.main",color:"primary.contrastText"}},children:"Print"}),content:()=>A.current})]})]}),(0,z.jsx)(b.A,{sx:{pb:2.5,border:"1px solid #eee",overflowX:{xs:"auto",md:"visible"}},children:(0,z.jsxs)("div",{ref:A,style:{width:"100%",minWidth:720},children:[(0,z.jsxs)(b.A,{id:"print",sx:{p:2.5},children:[(0,z.jsxs)(b.A,{sx:{pb:2.5},children:[(0,z.jsxs)(p.A,{sx:{flexDirection:"row",border:"1px solid #eee",px:3},justifyContent:"space-between",children:[(0,z.jsxs)(b.A,{sx:{pt:.5},children:[(0,z.jsxs)(p.A,{direction:"row",spacing:2,children:[(0,z.jsx)("img",{src:c,style:{width:"150px",height:"50px"}})," "]}),(0,z.jsxs)(p.A,{direction:"row",justifyContent:"space-between",children:[(0,z.jsx)(g.A,{sx:{overflow:"hidden",color:H.palette.primary.main},variant:"subtitle1",children:"Invoice No :"}),(0,z.jsx)(g.A,{sx:{color:H.palette.primary.main},children:"\xa0\xa0".concat(e.invoiceno)})]})]}),(0,z.jsxs)(b.A,{sx:{pt:2.5,pb:1.75},children:[(0,z.jsxs)(p.A,{direction:"row",justifyContent:"space-between",children:[(0,z.jsxs)(g.A,{sx:{pl:4,color:H.palette.primary.main},variant:"subtitle1",children:["Date :"," "]}),(0,z.jsx)(g.A,{sx:{color:H.palette.primary.main},children:d()(e.transactiondate).format("DD-MM-YYYY")})]}),(0,z.jsxs)(p.A,{direction:"row",justifyContent:"space-between",children:[(0,z.jsx)(g.A,{sx:{pr:2,overflow:"hidden",color:H.palette.primary.main},variant:"subtitle1",children:"Due Date :"}),(0,z.jsx)(g.A,{sx:{color:H.palette.primary.main},children:d()(e.dueDate).format("DD-MM-YYYY")})]})]})]}),(0,z.jsx)(b.A,{sx:{pt:2.5},children:(0,z.jsxs)(Y.Ay,{container:!0,spacing:2,justifyContent:"space-between",direction:"row",children:[(0,z.jsx)(Y.Ay,{item:!0,xs:12,sm:6,children:(0,z.jsx)(b.A,{sx:{border:1,minHeight:240,borderColor:"grey.200",borderRadius:.5,p:2.5},children:(0,z.jsx)(Y.Ay,{container:!0,direction:"row",children:(0,z.jsx)(Y.Ay,{item:!0,md:8,children:(0,z.jsxs)(p.A,{spacing:2,children:[(0,z.jsx)(g.A,{variant:"h5",children:"From:"}),(0,z.jsxs)(p.A,{sx:{width:"100%"},children:[(0,z.jsx)(g.A,{variant:"subtitle1",children:"Nearle Technology Privite Limited."}),(0,z.jsxs)(g.A,{color:"secondary",children:["424, 4",(0,z.jsx)("sup",{children:"th"}),"floor,"]}),(0,z.jsx)(g.A,{color:"secondary",children:"Red rose towers,"}),(0,z.jsx)(g.A,{color:"secondary",children:"DB Road, RS Puram,"}),(0,z.jsx)(g.A,{color:"secondary",children:"641002."}),(0,z.jsx)(g.A,{color:"secondary",children:"care@nearle.in"}),(0,z.jsx)(g.A,{color:"secondary",children:"9047968666"})]})]})})})})}),(0,z.jsx)(Y.Ay,{item:!0,xs:12,sm:6,children:(0,z.jsx)(b.A,{sx:{border:1,minHeight:240,borderColor:"grey.200",borderRadius:.5,p:2.5},children:(0,z.jsx)(Y.Ay,{container:!0,direction:"row",children:(0,z.jsx)(Y.Ay,{item:!0,md:8,children:(0,z.jsxs)(p.A,{spacing:2,children:[(0,z.jsx)(g.A,{variant:"h5",children:"To:"}),(0,z.jsxs)(p.A,{sx:{width:"100%"},children:[(0,z.jsx)(g.A,{variant:"subtitle1",children:e.tenantname}),(0,z.jsx)(g.A,{color:"secondary",children:e.address}),(0,z.jsx)(g.A,{color:"secondary",children:e.suburb}),(0,z.jsx)(g.A,{color:"secondary",children:e.city}),(0,z.jsx)(g.A,{color:"secondary",children:e.state})," "]})]})})})})})]})})]}),(0,z.jsx)(D.A,{children:(0,z.jsxs)(v.A,{children:[(0,z.jsx)(f.A,{children:(0,z.jsxs)(k.A,{children:[(0,z.jsx)(N.A,{children:"S.No"}),(0,z.jsx)(N.A,{children:"Particulars"}),(0,z.jsx)(N.A,{children:"Unit"}),(0,z.jsx)(N.A,{children:"Quantity"}),(0,z.jsx)(N.A,{align:"right",children:"Rate"}),(0,z.jsx)(N.A,{align:"right",children:"Other Charges"}),(0,z.jsx)(N.A,{align:"right",children:"Amount"})]})}),e.tenantsalesdetails&&(0,z.jsx)(M.A,{children:(0,z.jsxs)(k.A,{children:[(0,z.jsx)(N.A,{children:"1"}),(0,z.jsx)(N.A,{children:(0,z.jsx)(g.A,{children:"Invoice from ".concat(d()(e.tenantsalesdetails[0].fromdate).format("DD-MM-YYYY")," to ").concat(d()(e.tenantsalesdetails[0].todate).format("DD-MM-YYYY"))})}),(0,z.jsx)(N.A,{children:(0,z.jsx)(g.A,{children:e.tenantsalesdetails[0].pricingtype})}),(0,z.jsx)(N.A,{children:(0,z.jsx)(g.A,{children:"".concat(e.tenantsalesdetails[0].quantity.toFixed(2)," km")})}),(0,z.jsx)(N.A,{children:(0,z.jsx)(g.A,{align:"right",children:"\u20b9 ".concat(e.tenantsalesdetails[0].baserate.toFixed(2))})}),(0,z.jsx)(N.A,{align:"right",children:(0,z.jsx)(g.A,{children:"\u20b9 ".concat(e.tenantsalesdetails[0].othercharges,".00")})}),(0,z.jsx)(N.A,{align:"right",children:(0,z.jsx)(g.A,{children:"\u20b9 ".concat(e.tenantsalesdetails[0].amount,".00")})})]})})]})}),(0,z.jsx)(T.A,{}),(0,z.jsx)(b.A,{sx:{p:2.5},children:(0,z.jsx)(Y.Ay,{container:!0,direction:"row",justifyContent:"flex-end",children:(0,z.jsx)(Y.Ay,{item:!0,md:4,children:(0,z.jsxs)(p.A,{spacing:2,children:[(0,z.jsxs)(p.A,{direction:"row",justifyContent:"space-between",children:[(0,z.jsx)(g.A,{color:"secondary",children:"Sub Total:"}),(0,z.jsx)(g.A,{variant:"h6",children:W(e.salesamount)})]}),(0,z.jsxs)(p.A,{direction:"row",justifyContent:"space-between",children:[(0,z.jsx)(g.A,{color:"secondary",children:"Discount:"}),(0,z.jsxs)(g.A,{variant:"h6",color:H.palette.error.main,children:["- ",W(e.discountamt)]})]}),(0,z.jsxs)(p.A,{direction:"row",justifyContent:"space-between",children:[(0,z.jsx)(g.A,{color:H.palette.grey[500],children:"Tax:"}),(0,z.jsxs)(g.A,{variant:"h6",color:H.palette.success.main,children:["+ ",W(e.taxamount)]})]}),(0,z.jsxs)(p.A,{direction:"row",justifyContent:"space-between",children:[(0,z.jsx)(g.A,{sx:{pr:2},variant:"subtitle1",children:"Grand Total:"}),(0,z.jsx)(g.A,{variant:"h6",children:W(Math.round(e.totalamount))})]})]})})})})]}),(0,z.jsx)(T.A,{}),(0,z.jsx)(b.A,{sx:{p:2.5},children:(0,z.jsxs)(g.A,{children:["Notes: ",e.remarks]})}),(0,z.jsx)(T.A,{})]})}),(0,z.jsxs)(U.A,{open:B,onClose:()=>{E(!1)},maxWidth:"sm",fullWidth:!0,children:[(0,z.jsx)(F.A,{sx:{bgcolor:H.palette.primary.main},children:(0,z.jsxs)(p.A,{direction:"row",spacing:1,children:[(0,z.jsx)(g.A,{variant:"h2",sx:{color:"white"},children:"\u20b9"}),(0,z.jsx)(g.A,{variant:"h3",sx:{color:"white"},children:"Update Payment"})]})}),(0,z.jsxs)(O.A,{dividers:!0,children:[(0,z.jsxs)(p.A,{spacing:1,sx:{mb:2},children:[(0,z.jsx)(g.A,{children:"Reference No"}),(0,z.jsx)(R.A,{type:"number",placeholder:"Enter Reference Number",sx:{width:"100%"},onChange:e=>{G(e.target.value)}})]}),(0,z.jsxs)(p.A,{spacing:2,sx:{mb:2},children:[(0,z.jsx)(g.A,{children:"Remarks"}),(0,z.jsx)(R.A,{multiline:!0,required:!0,placeholder:"Enter Remarks",sx:{width:"100%"},onChange:e=>{I(e.target.value)}})]})]}),(0,z.jsxs)(S.A,{children:[(0,z.jsx)(C.A,{variant:"outlined",sx:{"&:hover":{backgroundColor:"primary.main",color:"primary.contrastText"},m:2},onClick:()=>{E(!1)},children:"Cancel"}),(0,z.jsx)(C.A,{variant:"outlined",disabled:""==q||""==V,sx:{"&:hover":{backgroundColor:"primary.main",color:"primary.contrastText"},m:2},onClick:()=>{E(!1),(async()=>{try{const r=await o.A.put("".concat("https://jupiter.nearle.app/live/api/v1","/invoice/updatestatus"),{salesid:e.salesid,referenceno:q,referencedate:d()().format("YYYY-MM-DD HH:mm:ss"),billstatus:2,paymentremarks:V});r.status&&(0,x.M8)(" Updated Successfully ",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:1e3}),console.log("updateResponse",r)}catch(r){console.log("updateResponse",r)}})(),l("/nearle/invoice")},children:"Update"})]})]})]})}}}]); \ No newline at end of file diff --git a/build/static/js/5437.b3b5d24f.chunk.js b/build/static/js/5437.b3b5d24f.chunk.js new file mode 100644 index 0000000..82c21a9 --- /dev/null +++ b/build/static/js/5437.b3b5d24f.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[5437],{84702:(e,s,a)=>{a.d(s,{Cx:()=>i,IE:()=>d,L0:()=>o,Ys:()=>r,Z3:()=>l,d1:()=>u,gM:()=>c,yP:()=>n});const t={created:{label:"Created",bg:"#3b82f6",fg:"#fff"},pending:{label:"Pending",bg:"#f59e0b",fg:"#fff"},accepted:{label:"Accepted",bg:"#8b5cf6",fg:"#fff"},arrived:{label:"Arrived",bg:"#ea580c",fg:"#fff"},picked:{label:"Picked",bg:"#0ea5e9",fg:"#fff"},active:{label:"Active",bg:"#0ea5e9",fg:"#fff"},delivered:{label:"Delivered",bg:"#22c55e",fg:"#fff"},skipped:{label:"Skipped",bg:"#94a3b8",fg:"#fff"},cancelled:{label:"Cancelled",bg:"#ef4444",fg:"#fff"}},i=e=>t[String(e||"").toLowerCase()]||{label:e||"Unknown",bg:"#64748b",fg:"#fff"},r=new Set(["delivered"]),n=new Set(["cancelled","skipped"]),l=["#2563eb","#dc2626","#16a34a","#ea580c","#9333ea","#0891b2","#ca8a04","#db2777","#0f766e","#7c3aed","#65a30d","#0284c7","#b91c1c","#15803d","#a16207","#86198f"],c=e=>l[(e%l.length+l.length)%l.length],d=e=>{if(null==e)return"";const s=["th","st","nd","rd"],a=e%100;return e+(s[(a-20)%10]||s[a]||s[0])},o=e=>"active"===String((null===e||void 0===e?void 0:e.orderstatus)||"").toLowerCase(),u=e=>{if(!Array.isArray(e)||!e.length)return null;return[...e].sort(((e,s)=>{const a=e.trip_number||1,t=s.trip_number||1;return a!==t?a-t:(e.step||0)-(s.step||0)})).find(o)||null}},88267:(e,s,a)=>{a.r(s),a.d(s,{default:()=>Ee});var t=a(53986),i=a(22555),r=a(85672),n=a(38965),l=a(87),c=a(91001),d=a(43e3),o=a(69191),u=a(69810),m=a(19283),p=a(13437),h=a(73413),v=a.n(h);a(98443);v().PolylineOffset={translatePoint:(e,s,a)=>v().point(e.x+s*Math.cos(a),e.y+s*Math.sin(a)),offsetPointLine(e,s){const a=e.length;if(a<2)throw new Error("Line should be defined by at least 2 points");let t,i=e[0];const r=Math.PI/2,n=[];for(let l=1;l=0&&l<=1&&c>=0&&c<=1?v().point(e.x+c*i.x,e.y+c*i.y):null},segmentAsVector:(e,s)=>v().point(s.x-e.x,s.y-e.y),joinLineSegments(e){const s=[];let a=e[0].offset;s.push(a[0]);for(let t=1;te.latLngToLayerPoint(s)));return this.offsetPoints(t,a).map((s=>e.layerPointToLatLng(s)))}};const x=v().Polyline.prototype._projectLatlngs;v().Polyline.prototype._projectLatlngs=function(e,s,a){const t=this.options.offset;if(!t||"number"!==typeof t)return x.call(this,e,s,a);if(!(e[0]instanceof v().LatLng)){for(let t=0;tthis._map.latLngToLayerPoint(e))),r=v().PolylineOffset.offsetPoints(i,t);for(let n=0;n1&&void 0!==arguments[1]?arguments[1]:A;const a=(null===e||void 0===e?void 0:e.assigntime)||(null===e||void 0===e?void 0:e.deliverydate);if(!a)return null;const t=String(a).trim();if(/^\d{4}-\d{2}-\d{2}$/.test(t))return null;const i=f()(a);return i.isValid()?function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A;for(const a of s)if(e>=a.startHour&&e{if(!s)return!0;return(e.assigntime?f()(e.assigntime).format("YYYY-MM-DD"):e.deliverydate?f()(e.deliverydate).format("YYYY-MM-DD"):"unknown")===s}));let r=0,n=0;const l={};for(const p of i){r+=C(p),n+=parseFloat(p.riderkms||0);const e=z(p,a);if(!e)continue;const s=p.assigntime?f()(p.assigntime).format("YYYY-MM-DD"):p.deliverydate?f()(p.deliverydate).format("YYYY-MM-DD"):null;s&&(l[s]||(l[s]=new Set),l[s].add(e))}let c=0;Object.values(l).forEach((e=>{c+=Math.min(e.size,3)}));const d=2.5*n,o=c*w,u=d+o,m=r-u;return{revenue:r,kms:n,varCost:d,fixedCost:o,totalCost:u,net:m,margin:r>0?m/r*100:0,orders:i}}function E(e){const s=Number.isFinite(e)?e:0;return s>0&&s<1?{value:String(Math.round(1e3*s)),unit:"m"}:{value:s.toFixed(1),unit:"km"}}function D(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?"\u2014":"\u20b9".concat(parseFloat(e).toFixed(s))}function L(e){return e&&e.trim().split(/\s+/).slice(0,2).map((e=>{var s;return null!==(s=e[0])&&void 0!==s?s:""})).join("").toUpperCase()||"?"}function R(e){let{status:s}=e;const a=function(e){var s;return null!==(s=F[String(null!==e&&void 0!==e?e:"").toLowerCase()])&&void 0!==s?s:M}(s);return(0,_.jsxs)("span",{className:"order-status-pill",style:{background:a.bg,color:a.color,borderColor:a.border},children:[(0,_.jsx)("span",{className:"order-status-dot","aria-hidden":"true"}),a.label]})}function q(e){var s,a,t,i,r,n,l,c,d,o;let{order:u}=e;const m=null!==(s=null!==(a=null!==(t=null!==(i=u.customername)&&void 0!==i?i:u.customer_name)&&void 0!==t?t:u.deliverycustomer)&&void 0!==a?a:u.pickupcustomer)&&void 0!==s?s:"Unknown customer",p=null!==(r=null!==(n=null!==(l=u.customerphone)&&void 0!==l?l:u.phone)&&void 0!==n?n:u.mobile)&&void 0!==r?r:"",h=null!==(c=null!==(d=null!==(o=u.locationname)&&void 0!==o?o:u.kitchenname)&&void 0!==d?d:u.kitchenName)&&void 0!==c?c:"";return(0,_.jsxs)("div",{children:[(0,_.jsx)("div",{className:"customer-name",title:m,children:m}),p&&(0,_.jsx)("div",{className:"customer-phone",children:p}),h&&(0,_.jsxs)("div",{className:"customer-location",children:[(0,_.jsx)(S.gwi,{size:12,"aria-hidden":"true"}),h]})]})}function I(e){let{orders:s,getRevenue:a}=e;return null!==s&&void 0!==s&&s.length?(0,_.jsx)("div",{className:"orders-table-container",children:(0,_.jsxs)("table",{className:"orders-table",role:"table",children:[(0,_.jsx)("thead",{children:(0,_.jsxs)("tr",{children:[(0,_.jsx)("th",{scope:"col",children:"Customer"}),(0,_.jsx)("th",{scope:"col",children:"Status"}),(0,_.jsx)("th",{scope:"col",children:"Planned KMs"}),(0,_.jsx)("th",{scope:"col",children:"Actual KMs"}),(0,_.jsx)("th",{scope:"col",children:"Trip KMs"}),(0,_.jsx)("th",{scope:"col",style:{textAlign:"right"},children:"Revenue"})]})}),(0,_.jsx)("tbody",{children:s.map(((e,s)=>{var t,i,r,n,l;const c=E(parseFloat(null!==(t=e.riderkms)&&void 0!==t?t:0)),d=E(parseFloat(null!==(i=e.kms)&&void 0!==i?i:0)),o=E(parseFloat(null!==(r=e.actualkms)&&void 0!==r?r:0)),u=a(e);return(0,_.jsxs)("tr",{children:[(0,_.jsx)("td",{children:(0,_.jsx)(q,{order:e})}),(0,_.jsx)("td",{children:(0,_.jsx)(R,{status:null!==(l=e.orderstatus)&&void 0!==l?l:e.status})}),(0,_.jsxs)("td",{children:[(0,_.jsx)("span",{className:"distance-value",children:d.value}),(0,_.jsx)("span",{className:"distance-unit",children:d.unit})]}),(0,_.jsxs)("td",{children:[(0,_.jsx)("span",{className:"distance-value",children:o.value}),(0,_.jsx)("span",{className:"distance-unit",children:o.unit})]}),(0,_.jsxs)("td",{children:[(0,_.jsx)("span",{className:"distance-value",children:c.value}),(0,_.jsx)("span",{className:"distance-unit",children:c.unit})]}),(0,_.jsx)("td",{style:{textAlign:"right"},children:(0,_.jsx)("span",{className:"revenue-amount",children:D(u)})})]},"".concat(null!==(n=e.orderid)&&void 0!==n?n:"order","-").concat(s))}))})]})}):(0,_.jsxs)("div",{className:"orders-empty-state",role:"status",children:[(0,_.jsx)(S.q8i,{size:24,"aria-hidden":"true"}),(0,_.jsx)("p",{className:"orders-empty-message",children:"No orders assigned to this rider yet."})]})}function O(e){var s,a,t,i;let{metrics:r}=e;const{varCost:n,fixedCost:l,kms:c,net:d,margin:o}=r,u=d>=0,m=[{icon:(0,_.jsx)(S.DwJ,{size:16}),iconClass:"cost-tile-icon--fixed",label:"Fixed cost",amount:D(l,2),amountClass:"",footnote:"Salary (per slot)"},{icon:(0,_.jsx)(S.pk7,{size:16}),iconClass:"cost-tile-icon--variable",label:"Variable cost",amount:D(n,2),amountClass:"",footnote:"".concat(c.toFixed(1)," km \xd7 \u20b9").concat(2.5,"/km")},{icon:u?(0,_.jsx)(S.imn,{size:16}):(0,_.jsx)(S.Rod,{size:16}),iconClass:u?"cost-tile-icon--profit":"cost-tile-icon--loss",label:u?"Net profit":"Net loss",amount:"".concat(u?"+":"").concat(D(d,2)),amountClass:u?"cost-tile-amount--profit":"cost-tile-amount--loss",footnote:"".concat(Math.abs(o).toFixed(0),"% margin")}];return(0,_.jsx)("div",{className:"rider-detail-panel","aria-label":"Rider cost breakdown",children:(0,_.jsxs)("div",{className:"rider-detail-inner",children:[(0,_.jsx)("div",{className:"cost-breakdown-grid",children:m.map((e=>(0,_.jsxs)("div",{className:"cost-tile",children:[(0,_.jsx)("div",{className:"cost-tile-icon ".concat(e.iconClass),"aria-hidden":"true",children:e.icon}),(0,_.jsxs)("div",{className:"cost-tile-content",children:[(0,_.jsx)("span",{className:"cost-tile-label",children:e.label}),(0,_.jsx)("span",{className:"cost-tile-amount ".concat(e.amountClass),children:e.amount}),(0,_.jsx)("span",{className:"cost-tile-footnote",children:e.footnote})]})]},e.label)))}),(0,_.jsxs)("div",{className:"revenue-breakdown",children:[(0,_.jsxs)("div",{className:"revenue-breakdown-header",children:[(0,_.jsxs)("div",{className:"revenue-breakdown-title",children:[(0,_.jsx)(S.q8i,{size:14,"aria-hidden":"true"}),"Revenue Breakdown"]}),(0,_.jsxs)("span",{className:"revenue-breakdown-count",children:[null!==(s=null===(a=r.orders)||void 0===a?void 0:a.length)&&void 0!==s?s:0," order",1!==(null!==(t=null===(i=r.orders)||void 0===i?void 0:i.length)&&void 0!==t?t:0)?"s":""]})]}),(0,_.jsx)(I,{orders:r.orders,getRevenue:C})]})]})})}function T(e){var s,a,t;let{rider:i,metrics:r,isExpanded:n,isFocused:l,onToggle:c,onFocus:d}=e;const{revenue:o,kms:u,totalCost:m,net:p,margin:h,orders:v}=r,x=p>=0,j="".concat((f=Math.abs(h),g=0,N=100,Math.min(Math.max(f,g),N)),"%");var f,g,N;const b=null!==(s=null===v||void 0===v?void 0:v.length)&&void 0!==s?s:0,y=null!==(a=null!==(t=i.riderName)&&void 0!==t?t:i.username)&&void 0!==a?a:"Rider #".concat(i.id),k=["rider-profitability-card",x?"rider-profitability-card--profitable":"rider-profitability-card--unprofitable",l?"rider-profitability-card--selected":""].filter(Boolean).join(" ");function w(){c(i.id),!l&&d&&d(i)}return(0,_.jsxs)("div",{className:k,"aria-label":"Rider: ".concat(y),children:[(0,_.jsxs)("div",{className:"rider-card-header",role:"button",tabIndex:0,"aria-expanded":n,onClick:w,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),w())},children:[(0,_.jsx)("div",{className:"rider-avatar","aria-hidden":"true",children:L(y)}),(0,_.jsxs)("div",{className:"rider-identity",children:[(0,_.jsx)("div",{className:"rider-name",title:y,children:y}),(0,_.jsxs)("div",{className:"rider-order-summary",children:[b," order",1!==b?"s":"",(0,_.jsx)("span",{className:"rider-order-summary-separator",children:"\xb7"}),u.toFixed(1)," km total"]})]}),(0,_.jsxs)("div",{className:"rider-metrics-row","aria-hidden":"true",children:[(0,_.jsxs)("div",{className:"rider-metric",children:[(0,_.jsx)("span",{className:"rider-metric-label",children:"Revenue"}),(0,_.jsx)("span",{className:"rider-metric-amount rider-metric-amount--revenue",children:D(o)})]}),(0,_.jsxs)("div",{className:"rider-metric",children:[(0,_.jsx)("span",{className:"rider-metric-label",children:"Cost"}),(0,_.jsx)("span",{className:"rider-metric-amount rider-metric-amount--cost",children:D(m)})]}),(0,_.jsxs)("div",{className:"rider-net-profit-column",children:[(0,_.jsxs)("div",{className:"rider-metric",children:[(0,_.jsx)("span",{className:"rider-metric-label",children:"Net"}),(0,_.jsxs)("span",{className:"rider-metric-amount ".concat(x?"rider-metric-amount--net-profit":"rider-metric-amount--net-loss"),children:[x?"+":"",D(p)]})]}),(0,_.jsx)("div",{className:"rider-margin-bar",children:(0,_.jsx)("div",{className:"rider-margin-bar-fill ".concat(x?"rider-margin-bar-fill--profit":"rider-margin-bar-fill--loss"),style:{width:j},role:"presentation"})})]})]}),(0,_.jsx)("div",{className:"rider-expand-toggle ".concat(n?"rider-expand-toggle--open":""),"aria-hidden":"true",children:(0,_.jsx)(S.j1Q,{size:22})})]}),n&&(0,_.jsx)(O,{rider:i,metrics:r})]})}function Y(e){let{riders:s=[],totalDailyProfit:a=0,focusedRider:t=null,handleRiderFocus:n,selectedDate:l,batches:c}=e;const[d,o]=(0,r.useState)({}),u="profit-asc",m=(0,r.useCallback)((e=>{o((s=>(0,i.A)((0,i.A)({},s),{},{[e]:!s[e]})))}),[]),p=(0,r.useMemo)((()=>s.map((e=>(0,i.A)((0,i.A)({},e),{},{_m:P(e,l,c)})))),[s,l,c]),h=(0,r.useMemo)((()=>p.filter((e=>e._m.orders.length>0))),[p]),v=h.reduce(((e,s)=>e+s._m.revenue),0),x=h.reduce(((e,s)=>e+s._m.totalCost),0),j=h.reduce(((e,s)=>e+s._m.net),0),f=h.reduce(((e,s)=>e+s._m.kms),0),g=h.filter((e=>e._m.net>=0)).length,N=h.length-g,b=a>=0,y=j>=0,k=h,w=(0,r.useMemo)((()=>{const e=[...k];return e.sort(((e,s)=>e._m.net-s._m.net)),e}),[k,u]);return(0,_.jsxs)("div",{className:"profitability-dashboard",role:"region","aria-label":"Profitability overview",children:[(0,_.jsxs)("header",{className:"profitability-header",children:[(0,_.jsxs)("div",{className:"profitability-header-left",children:[(0,_.jsx)("div",{className:"profitability-header-icon","aria-hidden":"true",children:(0,_.jsx)(S.rgL,{size:18})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("h2",{className:"profitability-header-title",children:"Profitability Overview"}),(0,_.jsxs)("p",{className:"profitability-header-subtitle",children:[(0,_.jsxs)("span",{children:[h.length," rider",1!==h.length?"s":""]}),(0,_.jsx)("span",{className:"profitability-header-dot"}),(0,_.jsxs)("span",{style:{color:"var(--profit-green)"},children:[g," profitable"]}),(0,_.jsx)("span",{className:"profitability-header-dot"}),(0,_.jsxs)("span",{style:{color:"var(--loss-red)"},children:[N," at loss"]})]})]})]}),(0,_.jsxs)("div",{className:"profitability-kpi-group",children:[(0,_.jsxs)("div",{className:"profitability-kpi-chip ".concat(b?"profitability-kpi-chip--profit":"profitability-kpi-chip--loss"),children:[(0,_.jsx)("div",{className:"profitability-kpi-chip-icon","aria-hidden":"true",children:b?(0,_.jsx)(S.imn,{}):(0,_.jsx)(S.Rod,{})}),(0,_.jsxs)("div",{className:"profitability-kpi-chip-content",children:[(0,_.jsxs)("span",{className:"profitability-kpi-chip-label",children:["Daily ",b?"profit":"loss"]}),(0,_.jsx)("span",{className:"profitability-kpi-chip-amount",children:D(Math.abs(a))})]})]}),(0,_.jsxs)("div",{className:"profitability-kpi-chip ".concat(y?"profitability-kpi-chip--profit":"profitability-kpi-chip--loss"),children:[(0,_.jsx)("div",{className:"profitability-kpi-chip-icon","aria-hidden":"true",children:y?(0,_.jsx)(S.imn,{}):(0,_.jsx)(S.Rod,{})}),(0,_.jsxs)("div",{className:"profitability-kpi-chip-content",children:[(0,_.jsxs)("span",{className:"profitability-kpi-chip-label",children:["Slot ",y?"profit":"loss"]}),(0,_.jsx)("span",{className:"profitability-kpi-chip-amount",children:D(Math.abs(j))})]})]})]})]}),(0,_.jsxs)("div",{className:"profitability-summary-row",role:"group","aria-label":"Slot summary",children:[(0,_.jsxs)("div",{className:"profitability-summary-card profitability-summary-card--primary",children:[(0,_.jsx)("span",{className:"profitability-summary-label",children:"Riders Active"}),(0,_.jsx)("span",{className:"profitability-summary-value",children:h.length}),(0,_.jsxs)("span",{className:"profitability-summary-detail",children:[g," in profit \xb7 ",N," at loss"]})]}),(0,_.jsxs)("div",{className:"profitability-summary-card profitability-summary-card--primary",children:[(0,_.jsx)("span",{className:"profitability-summary-label",children:"Total Distance"}),(0,_.jsxs)("span",{className:"profitability-summary-value",children:[f.toFixed(1)," km"]}),(0,_.jsx)("span",{className:"profitability-summary-detail",children:"Cumulative travel distance"})]}),(0,_.jsxs)("div",{className:"profitability-summary-card profitability-summary-card--primary",children:[(0,_.jsx)("span",{className:"profitability-summary-label",children:"Slot Revenue"}),(0,_.jsx)("span",{className:"profitability-summary-value",children:D(v)}),(0,_.jsxs)("span",{className:"profitability-summary-detail",children:["From ",p.reduce(((e,s)=>{var a,t;return e+(null!==(a=null===(t=s._m.orders)||void 0===t?void 0:t.length)&&void 0!==a?a:0)}),0)," orders"]})]}),(0,_.jsxs)("div",{className:"profitability-summary-card profitability-summary-card--loss",children:[(0,_.jsx)("span",{className:"profitability-summary-label",children:"Slot Cost"}),(0,_.jsx)("span",{className:"profitability-summary-value profitability-summary-value--loss",children:D(x)}),(0,_.jsx)("span",{className:"profitability-summary-detail",children:"Fixed + variable"})]}),(0,_.jsxs)("div",{className:"profitability-summary-card ".concat(y?"card-profit":"card-loss"),children:[(0,_.jsx)("span",{className:"profitability-summary-label",children:"Slot Net"}),(0,_.jsxs)("span",{className:"profitability-summary-value ".concat(y?"net-positive":"net-negative"),children:[y?"+":"",D(j)]}),(0,_.jsx)("span",{className:"profitability-summary-detail ".concat(v>0?j/v>=0?"margin-positive":"margin-negative":""),children:v>0?"".concat(j/v>=0?"+":"").concat((j/v*100).toFixed(0),"% margin"):"0% margin"})]})]}),(0,_.jsxs)("div",{className:"rider-profitability-feed",role:"list","aria-label":"Rider cards",children:[(0,_.jsx)("div",{className:"rider-feed-heading","aria-hidden":"true",children:"Riders List"}),0===w.length?(0,_.jsxs)("div",{className:"profitability-empty-state",role:"status",children:[(0,_.jsx)(S._pN,{size:32,"aria-hidden":"true"}),(0,_.jsx)("p",{className:"profitability-empty-message",children:"No riders matching the filters."})]}):w.map((e=>(0,_.jsx)("div",{role:"listitem",children:(0,_.jsx)(T,{rider:e,metrics:e._m,isExpanded:!!d[e.id],isFocused:(null===t||void 0===t?void 0:t.id)===e.id,onToggle:m,onFocus:n})},e.id)))]})]})}var H=a(12010),V=a(84702),K=a(20466);const B=e=>{let{visibleRiders:s,riders:a,focusedStop:t,handleRiderFocus:i,setFocusedStop:n,calculateEstMeters:l,getRiderColor:c,formatMeters:d,isLoading:o}=e;const u=s.map((e=>(0,V.d1)(e.orders))).filter(Boolean).sort(((e,s)=>{var a,t;return(null!==(a=l(e.rider_id||e.userid,e))&&void 0!==a?a:1/0)-(null!==(t=l(s.rider_id||s.userid,s))&&void 0!==t?t:1/0)})),m=(0,r.useRef)(null);if((0,r.useEffect)((()=>{const e={};s.forEach((s=>{(s.orders||[]).forEach((s=>{e[String(s.orderid)]={status:String(s.orderstatus||"").toLowerCase(),riderName:s.rider_name||s.ridername||"Rider",customer:s.deliverycustomer||s.customername||"Order #".concat(s.orderid)}}))}));const a=m.current;null!==a&&Object.entries(e).forEach((e=>{let[s,t]=e;const i=a[s];i?("active"!==i.status&&"active"===t.status&&(0,K.k)("\ud83d\udef5 ".concat(t.riderName," is now delivering to ").concat(t.customer),"success",3e3),"active"===i.status&&"delivered"===t.status&&(0,K.k)("\ud83d\udccd ".concat(t.riderName," has reached ").concat(t.customer,"'s location"),"info",3e3)):"active"===t.status&&(0,K.k)("\ud83d\udef5 ".concat(t.riderName," is now delivering to ").concat(t.customer),"success",3e3)})),m.current=e}),[s]),o)return(0,_.jsxs)("div",{className:"empty-slot",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",minHeight:"200px"},children:[(0,_.jsx)(H.A,{size:30,style:{color:"#7b1fa2",marginBottom:"16px"}}),(0,_.jsx)("div",{className:"empty-slot-title",children:"Loading active deliveries..."})]});if(0===u.length)return(0,_.jsxs)("div",{className:"empty-slot",children:[(0,_.jsx)("div",{className:"empty-slot-icon",children:(0,_.jsx)(S.gsJ,{})}),(0,_.jsx)("div",{className:"empty-slot-title",children:"No active deliveries"}),(0,_.jsx)("div",{className:"empty-slot-sub",children:"No deliveries are currently in progress for this slot"})]});return(0,_.jsx)("div",{className:"adcard-list",children:u.map(((e,s)=>{const r=e.rider_id||e.userid,o=a.find((e=>String(e.id)===String(r))),u=c(r),m=(0,V.Cx)(e.orderstatus),p=parseFloat(e.droplat||e.deliverylat),h=parseFloat(e.droplon||e.deliverylong),v=Number.isFinite(p)&&Number.isFinite(h),x=l(r,e),j=e.deliverycustomer||e.customername||"Order #".concat(e.orderid),g=e.deliverysuburb||e.deliveryaddress||e.zone_name||"",N=e.rider_name||e.ridername||"Unassigned",b=v&&t&&String(t.orderid)===String(e.orderid),y=N.split(/\s+/).filter(Boolean).slice(0,2).map((e=>e[0])).join("").toUpperCase()||"\u2022";return(0,_.jsxs)("div",{className:"adcard".concat(b?" is-active":""),style:{"--ad-accent":u},onClick:()=>{o&&i(o),v&&n({orderid:e.orderid,lat:p,lon:h})},children:[(0,_.jsxs)("div",{className:"adcard-top",children:[(0,_.jsx)("div",{className:"adcard-avatar",style:{background:u},children:y}),(0,_.jsxs)("div",{className:"adcard-titles",children:[(0,_.jsxs)("div",{className:"adcard-rider",title:N,children:[(0,_.jsx)(S.aVM,{style:{fontSize:13,flexShrink:0}}),(0,_.jsx)("span",{className:"adcard-tx",children:N})]}),(0,_.jsx)("div",{className:"adcard-customer",title:j,children:j})]}),(0,_.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"4px"},children:[(0,_.jsx)("span",{className:"adcard-status",style:{background:"".concat(m.bg,"1a"),color:m.bg},title:m.label,children:m.label}),e.deliverytime&&(0,_.jsx)("span",{className:"adcard-time",style:{fontSize:"11px",color:"#64748b"},children:f()(e.deliverytime).isValid()?f()(e.deliverytime).format("HH:mm:ss"):String(e.deliverytime)})]})]}),g&&(0,_.jsxs)("div",{className:"adcard-addr",children:[(0,_.jsx)("span",{className:"adcard-ic",children:(0,_.jsx)(S.gwi,{})}),(0,_.jsx)("span",{className:"adcard-tx adcard-addr-tx",title:g,children:g})]}),(0,_.jsxs)("div",{className:"adcard-foot",children:[e.pickupcustomer?(0,_.jsxs)("span",{className:"adcard-pickup",title:e.pickupcustomer,children:[(0,_.jsx)("span",{className:"adcard-ic",children:(0,_.jsx)(S.NtI,{})}),(0,_.jsx)("span",{className:"adcard-tx",children:e.pickupcustomer})]}):(0,_.jsx)("span",{}),(0,_.jsx)("span",{className:"adcard-metrics",children:null!==x&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("span",{className:"adcard-m adcard-m-eta",title:"Distance to drop",children:[(0,_.jsx)("span",{className:"adcard-ic",children:(0,_.jsx)(S.HPi,{})}),d(x)]}),(0,_.jsxs)("span",{className:"adcard-m adcard-m-time",title:"Estimated time to drop",children:[(0,_.jsx)("span",{className:"adcard-ic",children:(0,_.jsx)(S.VP9,{})}),(()=>{const e=x/1e3/20*60;return e<1?"< 1 min":"".concat(Math.ceil(e)," min")})()]})]})})]})]},e.orderid)}))})};var U=a(81425),G=a(69039),J=a(76264);const W=function(e){let{focusedRider:s,compareDeltas:a,compareSummary:t,actualOrdered:i,focusedCompareStep:n,setFocusedCompareStep:l,sequenceOpen:c,setSequenceOpen:d,expandedSeqGroups:o,setExpandedSeqGroups:u,onClose:m}=e;const p=(0,G.A)(),h=(0,J.A)(p.breakpoints.down("md")),v=(0,r.useMemo)((()=>{const e=t,r=e.onTime+e.late,n=s.orders.reduce(((e,s)=>e+parseFloat(s.profit||0)),0),l=n<0,c=a.filter((e=>e.anomaly)),d=a.filter((e=>V.Ys.has(String(e.orderstatus||"").toLowerCase()))).length,o=a.filter((e=>V.yP.has(String(e.orderstatus||"").toLowerCase()))).length,u=null==e.kmDeltaPct?"":e.kmDeltaPct>25?"is-over":e.kmDeltaPct<-5?"is-under":"",m=a.length||1,p=e.onTime+e.late||1,h=Math.round(d/m*60+e.onTime/p*25+(m-e.anomalies)/m*15),v=h>=85?"#16a34a":h>=65?"#f59e0b":"#dc2626",x=h>=85?"Excellent":h>=65?"Acceptable":"Needs review",j=a.filter((e=>e.actualTs)),f=j.reduce(((e,s)=>!e||s.actualTs.isBefore(e)?s.actualTs:e),null),g=j.reduce(((e,s)=>!e||s.actualTs.isAfter(e)?s.actualTs:e),null),N=f&&g?Math.max(0,g.diff(f,"minute")):0,b=a.length>1?Math.round(N/(a.length-1)):0,y=N>0?(e.actualKm/(N/60)).toFixed(1):null,k=a.filter((e=>!e.isLoading&&e.coordsCount>0)),S=k.filter((e=>null!=e.timeDeltaMin&&!e.anomaly)).sort(((e,s)=>e.timeDeltaMin-s.timeDeltaMin))[0]||null,_=k.filter((e=>e.anomaly)).sort(((e,s)=>{const a=Math.abs(e.kmDeltaPct||0)+(e.timeDeltaMin>0?e.timeDeltaMin:0);return Math.abs(s.kmDeltaPct||0)+(s.timeDeltaMin>0?s.timeDeltaMin:0)-a}))[0]||null,w=i.filter(((e,s)=>{var a;const t=null===(a=e.order)||void 0===a?void 0:a.step;return null!=t&&t!==s+1})),F=[];w.forEach((e=>{var s;const a=null===(s=e.order)||void 0===s?void 0:s.step,t=i.findIndex((s=>s.sequenceStep===e.sequenceStep))+1,r=t-a,n=F[F.length-1];n&&n.delta===r&&n.lastActualPos+1===t?(n.items.push({d:e,planned:a,actualPos:t,delta:r}),n.lastActualPos=t):F.push({delta:r,items:[{d:e,planned:a,actualPos:t,delta:r}],lastActualPos:t})}));const M={};s.orders.forEach((e=>{const s=e.trip_number||1;M[s]||(M[s]=[]),M[s].push(e)}));const C=Object.entries(M).sort(((e,s)=>{let[a]=e,[t]=s;return Number(a)-Number(t)})).map((e=>{let[s,a]=e;return{tNum:s,count:a.length,plannedKm:a.reduce(((e,s)=>e+parseFloat(s.kms||0)),0),actualKm:a.reduce(((e,s)=>e+parseFloat(s.actualkms||s.kms||0)),0),profit:a.reduce(((e,s)=>e+parseFloat(s.profit||0)),0),delivered:a.filter((e=>V.Ys.has(String(e.orderstatus||"").toLowerCase()))).length}}));return{sum:e,totalSteps:r,totalProfit:n,isLoss:l,deviations:c,delivered:d,skipped:o,stepDeltaPct:u,score:h,scoreColor:v,scoreLabel:x,firstDelivery:f,lastDelivery:g,activeMin:N,avgPerStop:b,avgSpeed:y,bestStep:S,worstStep:_,outOfOrderSteps:w,seqRuns:F,tripList:C}}),[s,a,t,i]),x=null!=n?a.find((e=>e.sequenceStep===n)):null,j=e=>{l((s=>s===e?null:e))},f=function(e){let s=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{d:a,planned:t,actualPos:i,delta:r}=e;return(0,_.jsxs)("li",{className:"cdp-seq-diff".concat(n===a.sequenceStep?" is-focused":"").concat(s?"":" is-nested"),onClick:()=>j(a.sequenceStep),children:[(0,_.jsx)("span",{className:"cdp-seq-diff-num",style:{background:(0,V.gM)((t||a.sequenceStep)-1)},children:t||a.sequenceStep}),(0,_.jsxs)("div",{className:"cdp-seq-diff-body",children:[(0,_.jsx)("div",{className:"cdp-seq-diff-title",children:a.deliverycustomer||"Step ".concat(t||a.sequenceStep)}),(0,_.jsxs)("div",{className:"cdp-seq-diff-sub",children:["Visited ",(0,_.jsx)("strong",{children:(0,V.IE)(i)})," ","\xb7 planned ",(0,_.jsx)("strong",{children:(0,V.IE)(t)})]})]}),(0,_.jsx)("span",{className:"cdp-seq-diff-tag",children:r>0?"+".concat(r):"".concat(r)})]},"diff-".concat(a.sequenceStep))},{sum:g,totalSteps:N,totalProfit:b,isLoss:y,deviations:k,delivered:w,skipped:F,stepDeltaPct:M,score:C,scoreColor:A,scoreLabel:z,firstDelivery:P,lastDelivery:E,activeMin:D,avgPerStop:L,avgSpeed:R,bestStep:q,worstStep:I,outOfOrderSteps:O,seqRuns:T,tripList:Y}=v;return(0,_.jsxs)("aside",{id:"compare-data-panel",className:"compare-data-panel".concat(h?" cdp-is-mobile":""),children:[(0,_.jsxs)("div",{className:"cdp-head",children:[(0,_.jsxs)("div",{className:"cdp-head-title",children:[(0,_.jsx)("span",{className:"cdp-rider-dot",style:{background:s.color}}),(0,_.jsxs)("div",{className:"cdp-head-text",children:[(0,_.jsx)("div",{className:"cdp-rider-name",children:s.riderName}),(0,_.jsx)("div",{className:"cdp-head-badge",children:"PLANNED vs ACTUAL"})]})]}),(0,_.jsx)("button",{type:"button",className:"cdp-close",onClick:m,title:"Exit compare","aria-label":"Exit compare",children:(0,_.jsx)(S.m6K,{})})]}),(0,_.jsxs)("div",{className:"cdp-scroll",children:[(0,_.jsx)("section",{className:"cdp-section cdp-score-section",children:(0,_.jsxs)("div",{className:"cdp-score-wrap",children:[(0,_.jsx)("div",{className:"cdp-score-ring",style:{background:"conic-gradient(".concat(A," ").concat(3.6*C,"deg, rgba(15,23,42,0.08) 0deg)")},children:(0,_.jsxs)("div",{className:"cdp-score-inner",children:[(0,_.jsx)("div",{className:"cdp-score-value",style:{color:A},children:C}),(0,_.jsx)("div",{className:"cdp-score-unit",children:"/100"})]})}),(0,_.jsxs)("div",{className:"cdp-score-body",children:[(0,_.jsx)("div",{className:"cdp-score-label",style:{color:A},children:z}),(0,_.jsx)("div",{className:"cdp-score-title",children:"Compliance score"}),(0,_.jsxs)("div",{className:"cdp-score-sub",children:[w,"/",a.length," delivered",g.anomalies>0?" \xb7 ".concat(g.anomalies," deviation").concat(g.anomalies>1?"s":""):"",g.late>0?" \xb7 ".concat(g.late," late"):"",F>0?" \xb7 ".concat(F," skipped"):""]})]})]})}),(0,_.jsxs)("section",{className:"cdp-section",children:[(0,_.jsxs)("div",{className:"cdp-section-head",children:[(0,_.jsx)("span",{className:"cdp-section-icon",children:(0,_.jsx)(S.Zs6,{})}),(0,_.jsx)("span",{className:"cdp-section-title",children:"Day overview"})]}),(0,_.jsxs)("div",{className:"cdp-tiles",children:[(0,_.jsxs)("div",{className:"cdp-tile",children:[(0,_.jsxs)("div",{className:"cdp-tile-label",children:[(0,_.jsx)(S.xI$,{})," Distance"]}),(0,_.jsxs)("div",{className:"cdp-tile-value",children:[g.actualKm.toFixed(1),(0,_.jsx)("span",{className:"cdp-tile-unit",children:"km"})]}),(0,_.jsxs)("div",{className:"cdp-tile-sub",children:["planned ",g.plannedKm.toFixed(1)," km"]})]}),(0,_.jsxs)("div",{className:"cdp-tile".concat(g.anomalies>0?" is-warn":""),children:[(0,_.jsxs)("div",{className:"cdp-tile-label",children:[(0,_.jsx)(S.Wux,{})," Deviation"]}),(0,_.jsx)("div",{className:"cdp-tile-value ".concat(M),children:null!=g.kmDeltaPct?"".concat(g.kmDeltaPct>0?"+":"").concat(g.kmDeltaPct.toFixed(0),"%"):"\u2014"}),(0,_.jsx)("div",{className:"cdp-tile-sub",children:g.anomalies>0?"".concat(g.anomalies," flagged"):"within plan"})]}),(0,_.jsxs)("div",{className:"cdp-tile".concat(g.late>0?" is-warn":""),children:[(0,_.jsxs)("div",{className:"cdp-tile-label",children:[(0,_.jsx)(S.VP9,{})," On-time"]}),(0,_.jsxs)("div",{className:"cdp-tile-value",children:[g.onTime,N>0&&(0,_.jsxs)("span",{className:"cdp-tile-unit",children:["/",N]})]}),(0,_.jsx)("div",{className:"cdp-tile-sub",children:g.late>0?"".concat(g.late," late"):"all on schedule"})]}),(0,_.jsxs)("div",{className:"cdp-tile ".concat(y?"is-loss":"is-gain"),children:[(0,_.jsxs)("div",{className:"cdp-tile-label",children:[y?(0,_.jsx)(S.Rod,{}):(0,_.jsx)(S.imn,{})," ",y?"Loss":"Profit"]}),(0,_.jsxs)("div",{className:"cdp-tile-value",children:[y?"-":"","\u20b9",Math.abs(b).toFixed(0)]}),(0,_.jsxs)("div",{className:"cdp-tile-sub",children:[s.orders.length," ",1===s.orders.length?"order":"orders"," \xb7 ",w," delivered"]})]})]})]}),a.length>0&&(0,_.jsxs)("section",{className:"cdp-section cdp-seq-section",children:[(0,_.jsxs)("div",{className:"cdp-section-head cdp-section-head-clickable",onClick:()=>d((e=>!e)),role:"button","aria-expanded":c,title:c?"Collapse route sequence":"Expand route sequence",children:[(0,_.jsx)("span",{className:"cdp-section-icon",children:(0,_.jsx)(S.$G1,{})}),(0,_.jsx)("span",{className:"cdp-section-title",children:"Route sequence"}),(0,_.jsx)("span",{className:"cdp-seq-status".concat(O.length>0?" is-warn":" is-good"),children:O.length>0?"".concat(O.length," out of order"):"In order"}),(0,_.jsx)("span",{className:"cdp-seq-toggle".concat(c?" is-open":""),children:(0,_.jsx)(S.j1Q,{})})]}),c&&(0,_.jsx)("div",{className:"cdp-seq",children:O.length>0?(0,_.jsx)("ul",{className:"cdp-seq-diffs",children:T.map(((e,s)=>{if(1===e.items.length)return f(e.items[0]);const a=e.items[0],t=e.items[e.items.length-1],i=o.has(s),l=e.delta>0?"+".concat(e.delta):"".concat(e.delta),c=e.items.some((e=>e.d.sequenceStep===n));return(0,_.jsxs)(r.Fragment,{children:[(0,_.jsxs)("li",{className:"cdp-seq-diff is-group".concat(i?" is-expanded":"").concat(c?" is-focused":""),onClick:()=>{return e=s,void u((s=>{const a=new Set(s);return a.has(e)?a.delete(e):a.add(e),a}));var e},"aria-expanded":i,children:[(0,_.jsxs)("span",{className:"cdp-seq-group-num",children:[(0,_.jsx)("span",{className:"cdp-seq-group-num-bg",style:{background:"linear-gradient(135deg, ".concat((0,V.gM)((a.planned||1)-1),", ").concat((0,V.gM)((t.planned||1)-1),")")}}),(0,_.jsxs)("span",{className:"cdp-seq-group-num-label",children:[e.items.length,"\xd7"]})]}),(0,_.jsxs)("div",{className:"cdp-seq-diff-body",children:[(0,_.jsxs)("div",{className:"cdp-seq-diff-title",children:[e.items.length," consecutive steps shifted"," ",(0,_.jsx)("span",{className:"cdp-seq-group-delta",children:l})]}),(0,_.jsxs)("div",{className:"cdp-seq-diff-sub",children:["Planned ",(0,V.IE)(a.planned),"\u2013",(0,V.IE)(t.planned)," ","visited"," ",(0,_.jsxs)("strong",{children:[(0,V.IE)(a.actualPos),"\u2013",(0,V.IE)(t.actualPos)]})]})]}),(0,_.jsx)("span",{className:"cdp-seq-diff-tag",children:l}),(0,_.jsx)("span",{className:"cdp-seq-group-toggle".concat(i?" is-open":""),"aria-hidden":"true",children:(0,_.jsx)(S.j1Q,{})})]}),i&&(0,_.jsx)("li",{className:"cdp-seq-group-children-wrap",children:(0,_.jsx)("ul",{className:"cdp-seq-group-children",children:e.items.map((e=>f(e,!1)))})})]},"run-".concat(s,"-").concat(a.d.sequenceStep))}))}):(0,_.jsxs)("div",{className:"cdp-seq-good",children:[(0,_.jsx)(S.mU9,{})," Rider followed the planned route in order."]})})]}),(P||E)&&(0,_.jsxs)("section",{className:"cdp-section cdp-timing-section",children:[(0,_.jsxs)("div",{className:"cdp-section-head",children:[(0,_.jsx)("span",{className:"cdp-section-icon",children:(0,_.jsx)(S.pWE,{})}),(0,_.jsx)("span",{className:"cdp-section-title",children:"Timing"}),D>0&&(0,_.jsxs)("span",{className:"cdp-timing-active-tag",children:[(0,_.jsx)("span",{className:"cdp-timing-active-pulse"}),"Day window"]})]}),(0,_.jsxs)("div",{className:"cdp-timing-clock",children:[(0,_.jsxs)("div",{className:"cdp-clock-card is-start",children:[(0,_.jsxs)("div",{className:"cdp-clock-label",children:[(0,_.jsx)(S.WVj,{})," First delivery"]}),(0,_.jsxs)("div",{className:"cdp-clock-face",children:[(0,_.jsx)("span",{className:"cdp-clock-time",children:P?P.format("hh:mm"):"\u2014"}),(0,_.jsx)("span",{className:"cdp-clock-period",children:P?P.format("A"):""})]}),(0,_.jsx)("div",{className:"cdp-clock-caption",children:"Started"})]}),(0,_.jsxs)("div",{className:"cdp-clock-track","aria-hidden":"true",children:[(0,_.jsx)("span",{className:"cdp-clock-track-line"}),(0,_.jsx)("span",{className:"cdp-clock-track-dot is-start"}),(0,_.jsx)("span",{className:"cdp-clock-track-dot is-end"}),(0,_.jsxs)("div",{className:"cdp-clock-duration",children:[(0,_.jsx)("span",{className:"cdp-clock-duration-icon",children:(0,_.jsx)(S.DZH,{})}),(0,_.jsx)("span",{className:"cdp-clock-duration-val",children:D>0?D>=60?"".concat(Math.floor(D/60),"h ").concat(D%60,"m"):"".concat(D,"m"):"\u2014"}),(0,_.jsx)("span",{className:"cdp-clock-duration-sub",children:"active"})]})]}),(0,_.jsxs)("div",{className:"cdp-clock-card is-end",children:[(0,_.jsxs)("div",{className:"cdp-clock-label",children:[(0,_.jsx)(S.mU9,{})," Last delivery"]}),(0,_.jsxs)("div",{className:"cdp-clock-face",children:[(0,_.jsx)("span",{className:"cdp-clock-time",children:E?E.format("hh:mm"):"\u2014"}),(0,_.jsx)("span",{className:"cdp-clock-period",children:E?E.format("A"):""})]}),(0,_.jsx)("div",{className:"cdp-clock-caption",children:"Finished"})]})]}),(0,_.jsxs)("div",{className:"cdp-timing-stats",children:[(0,_.jsxs)("div",{className:"cdp-timing-stat",children:[(0,_.jsxs)("div",{className:"cdp-timing-stat-head",children:[(0,_.jsx)("div",{className:"cdp-timing-stat-icon",children:(0,_.jsx)(S.VP9,{})}),(0,_.jsxs)("div",{className:"cdp-timing-stat-body",children:[(0,_.jsxs)("div",{className:"cdp-timing-stat-value",children:[L>0?"".concat(L):"\u2014",L>0&&(0,_.jsx)("span",{className:"cdp-timing-stat-unit",children:"min"})]}),(0,_.jsx)("div",{className:"cdp-timing-stat-label",children:"Avg / stop"})]})]}),a.length>0&&(0,_.jsxs)("div",{className:"cdp-timing-stat-viz cdp-stops-dots","aria-hidden":"true",children:[Array.from({length:Math.min(a.length,12)}).map(((e,s)=>(0,_.jsx)("span",{className:"cdp-stop-dot"},"dot-".concat(s)))),(0,_.jsxs)("span",{className:"cdp-timing-stat-viz-label",children:[a.length," stop",1===a.length?"":"s"]})]})]}),null!=R&&(0,_.jsxs)("div",{className:"cdp-timing-stat",children:[(0,_.jsxs)("div",{className:"cdp-timing-stat-head",children:[(0,_.jsx)("div",{className:"cdp-timing-stat-icon",children:(0,_.jsx)(S.BJM,{})}),(0,_.jsxs)("div",{className:"cdp-timing-stat-body",children:[(0,_.jsxs)("div",{className:"cdp-timing-stat-value",children:[R,(0,_.jsx)("span",{className:"cdp-timing-stat-unit",children:"km/h"})]}),(0,_.jsx)("div",{className:"cdp-timing-stat-label",children:"Avg speed"})]})]}),(0,_.jsxs)("div",{className:"cdp-timing-stat-viz cdp-speed-gauge","aria-hidden":"true",children:[(0,_.jsx)("div",{className:"cdp-speed-gauge-track",children:(0,_.jsx)("div",{className:"cdp-speed-gauge-fill",style:{width:"".concat(Math.min(100,parseFloat(R)/60*100),"%")}})}),(0,_.jsxs)("div",{className:"cdp-speed-gauge-scale",children:[(0,_.jsx)("span",{children:"0"}),(0,_.jsx)("span",{children:"30"}),(0,_.jsx)("span",{children:"60 km/h"})]})]})]})]})]}),(q||I)&&(0,_.jsxs)("section",{className:"cdp-section",children:[(0,_.jsxs)("div",{className:"cdp-section-head",children:[(0,_.jsx)("span",{className:"cdp-section-icon",children:(0,_.jsx)(S.SeC,{})}),(0,_.jsx)("span",{className:"cdp-section-title",children:"Highlights"})]}),(0,_.jsxs)("div",{className:"cdp-highlights",children:[q&&(0,_.jsxs)("div",{className:"cdp-highlight is-best",onClick:()=>j(q.sequenceStep),role:"button",title:"Focus this step",children:[(0,_.jsx)("span",{className:"cdp-highlight-rail","aria-hidden":"true"}),(0,_.jsxs)("div",{className:"cdp-highlight-content",children:[(0,_.jsxs)("div",{className:"cdp-highlight-top",children:[(0,_.jsxs)("span",{className:"cdp-highlight-label",children:[(0,_.jsx)("span",{className:"cdp-highlight-chip",children:(0,_.jsx)(S.mU9,{})}),"Fastest stop"]}),(0,_.jsxs)("span",{className:"cdp-highlight-step-chip",style:{background:(0,V.gM)(q.sequenceStep-1)},children:["Step ",q.sequenceStep]})]}),(0,_.jsx)("div",{className:"cdp-highlight-title",children:q.deliverycustomer||"Step ".concat(q.sequenceStep)}),(0,_.jsx)("div",{className:"cdp-highlight-meta",children:(0,_.jsx)("span",{className:"cdp-highlight-pill is-good",children:null!=q.timeDeltaMin?0===q.timeDeltaMin?"On schedule":"".concat(q.timeDeltaMin>0?"+":"").concat(q.timeDeltaMin," min vs plan"):"On schedule"})})]})]}),I&&(0,_.jsxs)("div",{className:"cdp-highlight is-worst",onClick:()=>j(I.sequenceStep),role:"button",title:"Focus this step",children:[(0,_.jsx)("span",{className:"cdp-highlight-rail","aria-hidden":"true"}),(0,_.jsxs)("div",{className:"cdp-highlight-content",children:[(0,_.jsxs)("div",{className:"cdp-highlight-top",children:[(0,_.jsxs)("span",{className:"cdp-highlight-label",children:[(0,_.jsx)("span",{className:"cdp-highlight-chip",children:(0,_.jsx)(S.Wux,{})}),"Biggest deviation"]}),(0,_.jsxs)("span",{className:"cdp-highlight-step-chip",style:{background:(0,V.gM)(I.sequenceStep-1)},children:["Step ",I.sequenceStep]})]}),(0,_.jsx)("div",{className:"cdp-highlight-title",children:I.deliverycustomer||"Step ".concat(I.sequenceStep)}),(0,_.jsxs)("div",{className:"cdp-highlight-meta",children:[null!=I.kmDeltaPct&&(0,_.jsxs)("span",{className:"cdp-highlight-pill is-bad",children:[I.kmDeltaPct>0?"+":"",I.kmDeltaPct.toFixed(0),"% route"]}),null!=I.timeDeltaMin&&I.timeDeltaMin>0&&(0,_.jsxs)("span",{className:"cdp-highlight-pill is-bad",children:["+",I.timeDeltaMin,"m late"]})]})]})]})]})]}),Y.length>1&&(0,_.jsxs)("section",{className:"cdp-section",children:[(0,_.jsxs)("div",{className:"cdp-section-head",children:[(0,_.jsx)("span",{className:"cdp-section-icon",children:(0,_.jsx)(S.$G1,{})}),(0,_.jsxs)("span",{className:"cdp-section-title",children:["Trips (",Y.length,")"]})]}),(0,_.jsx)("div",{className:"cdp-trips",children:Y.map((e=>{const s=e.profit<0;return(0,_.jsxs)("div",{className:"cdp-trip",children:[(0,_.jsxs)("div",{className:"cdp-trip-head",children:[(0,_.jsxs)("span",{className:"cdp-trip-badge",children:["Trip ",e.tNum]}),(0,_.jsxs)("span",{className:"cdp-trip-meta",children:[e.delivered,"/",e.count," delivered"]})]}),(0,_.jsxs)("div",{className:"cdp-trip-stats",children:[(0,_.jsxs)("span",{title:"Distance",children:[(0,_.jsx)(S.xI$,{}),e.actualKm.toFixed(1),"km",(0,_.jsxs)("small",{children:[" / ",e.plannedKm.toFixed(1)]})]}),(0,_.jsxs)("span",{className:s?"is-over":"",title:s?"Loss":"Profit",children:[(0,_.jsx)(S.ohY,{}),s?"-":"","\u20b9",Math.abs(e.profit).toFixed(0)]})]})]},"trip-".concat(e.tNum))}))})]}),x&&(e=>{const s=(0,V.gM)(x.sequenceStep-1),a=x.kmDelta>=0?"+":"",t=x.anomaly?"is-over":x.kmDelta<-.1?"is-under":"",i=null!=x.timeDeltaMin?x.timeDeltaMin>10?"is-over":x.timeDeltaMin<-2?"is-under":"":"",r=(0,V.Cx)(x.orderstatus),n=parseFloat((null===(e=x.order)||void 0===e?void 0:e.profit)||0);return(0,_.jsxs)("section",{className:"cdp-section",children:[(0,_.jsxs)("div",{className:"cdp-section-head",children:[(0,_.jsx)("span",{className:"cdp-section-icon",children:(0,_.jsx)(S.$G1,{})}),(0,_.jsxs)("span",{className:"cdp-section-title",children:["Step ",x.sequenceStep," details"]}),(0,_.jsx)("button",{type:"button",className:"cdp-section-clear",onClick:()=>l(null),title:"Clear step focus",children:"Show all"})]}),(0,_.jsxs)("div",{className:"compare-delta".concat(x.anomaly?" is-anomaly":""),children:[(0,_.jsxs)("div",{className:"compare-delta-title",children:[(0,_.jsx)("span",{className:"compare-delta-step-badge",style:{background:s},children:x.sequenceStep}),(0,_.jsxs)("div",{className:"compare-delta-title-text",children:[(0,_.jsx)("div",{className:"compare-delta-title-main",children:x.deliverycustomer||"Step ".concat(x.sequenceStep)}),(0,_.jsxs)("div",{className:"compare-delta-title-sub",children:[x.pickupcustomer?"from ".concat(x.pickupcustomer," \xb7 "):"","Order #",x.orderid]})]}),x.orderstatus&&(0,_.jsx)("span",{className:"compare-delta-status",style:{background:r.bg,color:r.fg},children:r.label})]}),(0,_.jsxs)("div",{className:"compare-delta-grid",children:[(0,_.jsxs)("div",{className:"compare-delta-cell".concat(x.anomaly?" is-anomaly":""),children:[(0,_.jsx)("span",{className:"compare-delta-cell-label",children:"Distance"}),(0,_.jsxs)("span",{className:"compare-delta-cell-val",children:[x.actualKm.toFixed(2)," ",(0,_.jsx)("span",{className:"compare-delta-cell-unit",children:"km"})]}),(0,_.jsxs)("span",{className:"compare-delta-cell-sub",children:["planned ",x.plannedKm.toFixed(2)," km"]})]}),(0,_.jsxs)("div",{className:"compare-delta-cell",children:[(0,_.jsx)("span",{className:"compare-delta-cell-label",children:"\u0394 Route"}),(0,_.jsxs)("span",{className:"compare-delta-cell-val ".concat(t),children:[a,x.kmDelta.toFixed(2)," km"]}),(0,_.jsx)("span",{className:"compare-delta-cell-sub",children:null!=x.kmDeltaPct?"".concat(a).concat(x.kmDeltaPct.toFixed(0),"% vs plan"):"no planned km"})]}),(0,_.jsxs)("div",{className:"compare-delta-cell",children:[(0,_.jsx)("span",{className:"compare-delta-cell-label",children:"Time"}),(0,_.jsx)("span",{className:"compare-delta-cell-val ".concat(i),children:null!=x.timeDeltaMin?"".concat(x.timeDeltaMin>0?"+":"").concat(x.timeDeltaMin," min"):"\u2014"}),(0,_.jsx)("span",{className:"compare-delta-cell-sub",children:x.actualTs&&x.expectedTs?"".concat(x.actualTs.format("HH:mm")," vs ").concat(x.expectedTs.format("HH:mm")):x.actualTs?"delivered ".concat(x.actualTs.format("HH:mm")):"in flight"})]}),!Number.isNaN(n)&&0!==n&&(0,_.jsxs)("div",{className:"compare-delta-cell".concat(n<0?" is-anomaly":""),children:[(0,_.jsx)("span",{className:"compare-delta-cell-label",children:n<0?"Loss":"Profit"}),(0,_.jsxs)("span",{className:"compare-delta-cell-val ".concat(n<0?"is-over":"is-under"),children:[n<0?"-":"","\u20b9",Math.abs(n).toFixed(0)]}),(0,_.jsx)("span",{className:"compare-delta-cell-sub",children:"order revenue"})]})]})]})]})})(),k.length>0&&(0,_.jsxs)("section",{className:"cdp-section",children:[(0,_.jsxs)("div",{className:"cdp-section-head",children:[(0,_.jsx)("span",{className:"cdp-section-icon cdp-icon-warn",children:(0,_.jsx)(S.ItP,{})}),(0,_.jsxs)("span",{className:"cdp-section-title",children:["Deviations (",k.length,")"]})]}),(0,_.jsx)("ul",{className:"cdp-dev-list",children:k.map((e=>{const s=(0,V.gM)(e.sequenceStep-1),a=e.kmDelta>=0?"+":"";return(0,_.jsxs)("li",{className:"cdp-dev-item".concat(n===e.sequenceStep?" is-focused":""),onClick:()=>j(e.sequenceStep),children:[(0,_.jsx)("span",{className:"cdp-dev-num",style:{background:s},children:e.sequenceStep}),(0,_.jsxs)("div",{className:"cdp-dev-body",children:[(0,_.jsx)("div",{className:"cdp-dev-title",children:e.deliverycustomer||"Step ".concat(e.sequenceStep)}),(0,_.jsxs)("div",{className:"cdp-dev-meta",children:[null!=e.kmDeltaPct&&(0,_.jsxs)("span",{className:"cdp-dev-chip is-over",children:[a,e.kmDeltaPct.toFixed(0),"% route"]}),null!=e.timeDeltaMin&&e.timeDeltaMin>10&&(0,_.jsxs)("span",{className:"cdp-dev-chip is-over",children:["+",e.timeDeltaMin,"m late"]})]})]})]},"dev-".concat(e.sequenceStep))}))})]}),(0,_.jsxs)("section",{className:"cdp-section",children:[(0,_.jsxs)("div",{className:"cdp-section-head",children:[(0,_.jsx)("span",{className:"cdp-section-icon",children:(0,_.jsx)(S.EgJ,{})}),(0,_.jsxs)("span",{className:"cdp-section-title",children:["Steps (",a.length,")"]}),(0,_.jsxs)("span",{className:"cdp-section-sub",children:[w,"/",a.length," delivered"]})]}),(0,_.jsx)("ul",{className:"cdp-step-list",children:a.map((e=>{var s;const a=(0,V.gM)(e.sequenceStep-1),t=String(e.orderstatus||"").toLowerCase(),i=V.Ys.has(t),r=V.yP.has(t),l=i&&!e.anomaly,c=n===e.sequenceStep,d=(0,V.Cx)(e.orderstatus),o=parseFloat((null===(s=e.order)||void 0===s?void 0:s.profit)||0),u=e.kmDelta>=0?"+":"",m=null!=e.timeDeltaMin?e.timeDeltaMin>10?"is-over":e.timeDeltaMin<-2?"is-under":"":"",p=["cdp-step",c?"is-focused":"",e.anomaly?"is-anomaly":"",l?"is-correct":"",r?"is-skipped":"",e.isLoading?"is-loading":""].filter(Boolean).join(" ");return(0,_.jsxs)("li",{className:p,onClick:()=>j(e.sequenceStep),children:[(0,_.jsxs)("span",{className:"cdp-step-num",style:{background:a},children:[e.sequenceStep,l&&(0,_.jsx)("span",{className:"cdp-step-check",children:(0,_.jsx)(S.mU9,{})}),e.anomaly&&(0,_.jsx)("span",{className:"cdp-step-flag",children:(0,_.jsx)(S.ItP,{})})]}),(0,_.jsxs)("div",{className:"cdp-step-body",children:[(0,_.jsxs)("div",{className:"cdp-step-title-row",children:[(0,_.jsx)("span",{className:"cdp-step-title",children:e.deliverycustomer||"Step ".concat(e.sequenceStep)}),e.orderstatus&&(0,_.jsx)("span",{className:"cdp-step-status",style:{background:d.bg,color:d.fg},children:d.label})]}),(0,_.jsxs)("div",{className:"cdp-step-sub",children:[e.pickupcustomer?"from ".concat(e.pickupcustomer," \xb7 "):"","Order #",e.orderid]}),(0,_.jsxs)("div",{className:"cdp-step-deltas",children:[(0,_.jsxs)("span",{className:"cdp-step-delta",title:"Distance",children:[(0,_.jsx)(S.xI$,{}),e.actualKm.toFixed(1),"km",e.plannedKm>0&&(0,_.jsxs)("small",{className:e.anomaly?"is-over":"",children:[" ",u,e.kmDelta.toFixed(1)]})]}),(0,_.jsxs)("span",{className:"cdp-step-delta ".concat(m),title:"Delivery time",children:[(0,_.jsx)(S.VP9,{}),e.actualTs?e.actualTs.format("HH:mm"):"\u2014",null!=e.timeDeltaMin&&(0,_.jsxs)("small",{children:[" ",e.timeDeltaMin>0?"+":"",e.timeDeltaMin,"m"]})]}),!Number.isNaN(o)&&0!==o&&(0,_.jsxs)("span",{className:"cdp-step-delta".concat(o<0?" is-over":""),title:o<0?"Loss":"Profit",children:[(0,_.jsx)(S.ohY,{}),o<0?"-":"","\u20b9",Math.abs(o).toFixed(0)]})]})]})]},"step-".concat(e.sequenceStep))}))})]})]})]})};var $=a(85571);const Z=["_ts"],X="#662582",Q="#10b981",ee=e=>{const s=parseFloat(e);return Number.isFinite(s)?s:NaN},se=e=>{if(!e)return"";const s=String(e).trim();if(!s)return"";if(s.includes(",")){const e=s.split(",").map((e=>e.trim())).filter(Boolean);return 0===e.length?s:e.length<=2?e.join(", "):e.slice(-2).join(", ")}const a=s.split(/\s+/).filter(Boolean),t=a.length>6?a.slice(-6).join(" "):s;return t.length>40?"".concat(t.slice(0,40).trim(),"\u2026"):t},ae=e=>Number.isFinite(ee(e.droplat||e.deliverylat))&&Number.isFinite(ee(e.droplon||e.deliverylong)),te=e=>e.pickuplat||e.pickuplatitude||e.pickup_lat,ie=e=>e.pickuplong||e.pickuplongitude||e.picklongitude||e.pickup_lon,re=e=>Number.isFinite(ee(te(e)))&&Number.isFinite(ee(ie(e))),ne=[{id:"morning",name:"Morning Batch",startHour:0,endHour:8},{id:"afternoon",name:"Afternoon Batch",startHour:9,endHour:12.5},{id:"evening",name:"Evening Batch",startHour:16,endHour:19}],le="dispatch.slots.v9",ce=["dispatch.slots.v1","dispatch.slots.v2","dispatch.slots.v3","dispatch.slots.v4","dispatch.slots.v5","dispatch.slots.v6","dispatch.slots.v7","dispatch.slots.v8"],de=(e,s)=>"Slot ".concat(e+1," \xb7 ").concat(oe(s)),oe=e=>{const s=Math.floor(e),a=Math.round(60*(e-s)),t=(s+11)%12+1,i=s>=12&&s<24?"PM":"AM";if(0===a)return"".concat(t," ").concat(i);const r=String(a).padStart(2,"0");return"".concat(t,":").concat(r," ").concat(i)},ue=(e,s)=>s>=24?"After ".concat(oe(e)):"".concat(oe(e),"\u2013").concat(oe(s)),me=ne.map(((e,s)=>(0,i.A)((0,i.A)({},e),{},{label:e.name||de(s,e.startHour),range:ue(e.startHour,e.endHour)}))),pe=(e,s)=>{for(const a of s)if(e>=a.startHour&&e2&&void 0!==arguments[2]?arguments[2]:me;const a=((e,s)=>{const a=he.find((e=>e.id===s))||he[0];for(const t of a.keys)if(null!==e&&void 0!==e&&e[t])return e[t];return null})(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all");if(!a)return null;const t=String(a).trim();if(/^\d{4}-\d{2}-\d{2}$/.test(t))return null;const i=f()(a);return i.isValid()?pe(i.hour()+i.minute()/60,s):null};function xe(e){let{targetRef:s}=e;const a=(0,n.ko)();return(0,r.useEffect)((()=>(s.current=a,()=>{s.current=null})),[a]),null}function je(e){let{trigger:s}=e;const a=(0,n.ko)();return(0,r.useEffect)((()=>{const e=[0,60,120,200,300,380].map((e=>setTimeout((()=>a.invalidateSize({animate:!1})),e)));return()=>e.forEach(clearTimeout)}),[s,a]),null}function fe(e,s){const a=e=>e*Math.PI/180,t=a(e[0]),i=a(s[0]),r=a(s[0]-e[0]),n=a(s[1]-e[1]),l=Math.sin(r/2)**2+Math.cos(t)*Math.cos(i)*Math.sin(n/2)**2;return 12742*Math.asin(Math.min(1,Math.sqrt(l)))}function ge(e){if(!Array.isArray(e)||e.length<2)return 0;let s=0;for(let a=1;a{let a=0,t=1/0;for(let i=0;i{const a=Math.max(s,i);t.push(e.slice(i,a+1)),i=a})),t}const be=e=>{if(!e)return null;const s=f()(e);return s.isValid()?s.format("HH:mm:ss"):String(e)},ye=[{key:"assigntime",label:"Assigned"},{key:"acceptedtime",label:"Accepted"},{key:"arrivaltime",label:"Arrived"},{key:"pickuptime",label:"Pickup"},{key:"starttime",label:"Started"},{key:"deliverytime",label:"Delivered",final:!0}],ke=e=>{const s=e.filter(ae);if(!s.length)return[];const a=e.find(re),t=[];return a&&t.push([ee(te(a)),ee(ie(a))]),s.forEach((e=>t.push([ee(e.droplat||e.deliverylat),ee(e.droplon||e.deliverylong)]))),t},Se=(e,s,a)=>{if(!a||0===a.length)return"".concat(e,"-").concat(s);const t=a.map((e=>"".concat(e[0].toFixed(5),",").concat(e[1].toFixed(5)))).join("|");return"".concat(e,"-").concat(s,"-").concat(t)};delete v().Icon.Default.prototype._getIconUrl,v().Icon.Default.mergeOptions({iconRetinaUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon-2x.png",iconUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon.png",shadowUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-shadow.png"});const _e=["#0055FF","#00D82C","#FF6B00","#9D00FF","#FF00A8","#00C2B2","#FF9900","#FF0000"],we=e=>{const s=String(null!==e&&void 0!==e?e:"");if(!s)return _e[0];let a=0;for(let t=0;t>>0;return _e[a%_e.length]},Fe=e=>{let{focusedItem:s,viewMode:a,orders:t,kitchens:i,locationKey:l}=e;const c=(0,n.ko)(),d=(0,r.useRef)(""),o=(0,r.useMemo)((()=>{const e=null!=l?"loc:".concat(l,"|"):"",r=e=>{let s=0,a=0,t=0;for(const i of e)Number.isFinite(i[0])&&Number.isFinite(i[1])&&(s+=i[0],a+=i[1],t+=1);return 0===t?"0":"".concat((s/t).toFixed(1),",").concat((a/t).toFixed(1))};if(s){var n,c,d;const a=null!==(n=null!==(c=null!==(d=s.id)&&void 0!==d?d:s.kitchenName)&&void 0!==c?c:s.name)&&void 0!==n?n:null!=s.lat?"".concat(s.lat,",").concat(s.lon):"item",t=s.orders?s.orders.length:0;return"".concat(e,"f|").concat(a,"|").concat(t)}const o=(i||[]).map((e=>[e.lat,e.lon])),u=r(o);if("kitchens"===a){const s=o.filter((e=>Number.isFinite(e[0])&&Number.isFinite(e[1]))).length;return"".concat(e,"k|").concat(s,"|").concat(u)}if("all"===a){const s=(t||[]).map((e=>[parseFloat(e.droplat||e.deliverylat),parseFloat(e.droplon||e.deliverylong)]));return"".concat(e,"a|").concat(s.length,"|").concat(r(s))}return"".concat(e,"m|").concat(a||"","|").concat(o.length,"|").concat(u)}),[s,a,t,i,l]);return(0,r.useEffect)((()=>{if(d.current===o)return;let e=[];s?s.orders?(e=s.orders.map((e=>[parseFloat(e.droplat||e.deliverylat),parseFloat(e.droplon||e.deliverylong)])),s.orders.forEach((s=>e.push([ee(te(s)),ee(ie(s))])))):e=[[s.lat,s.lon]]:"kitchens"===a?(e=(i||[]).filter((e=>Number.isFinite(e.lat)&&Number.isFinite(e.lon))).map((e=>[e.lat,e.lon])),0===e.length&&(e=(t||[]).map((e=>[parseFloat(e.droplat||e.deliverylat),parseFloat(e.droplon||e.deliverylong)])))):"all"===a?e=(t||[]).map((e=>[parseFloat(e.droplat||e.deliverylat),parseFloat(e.droplon||e.deliverylong)])):(e=(i||[]).filter((e=>Number.isFinite(e.lat)&&Number.isFinite(e.lon))).map((e=>[e.lat,e.lon])),0===e.length&&(e=(t||[]).map((e=>[parseFloat(e.droplat||e.deliverylat),parseFloat(e.droplon||e.deliverylong)]))));const r=e.filter((e=>Number.isFinite(e[0])&&Number.isFinite(e[1])));if(r.length>0){const e=v().latLngBounds(r);if(e.isValid()){1===r.length||e.getNorthEast().equals(e.getSouthWest())?c.setView(r[0],15,{animate:!0,duration:.6}):c.flyToBounds(e,{padding:[60,60],duration:.6,maxZoom:16}),d.current=o}}else;}),[o,s,a,t,i,c]),null},Me=e=>{let{target:s,icon:a,duration:t=950,zIndexOffset:i,eventHandlers:n,children:c,markerRef:d}=e;const o=(0,r.useRef)(null),u=(0,r.useRef)(null),m=(0,r.useRef)(s),p=(0,r.useRef)(null),h=Array.isArray(s)?Number(s[0]):NaN,x=Array.isArray(s)?Number(s[1]):NaN;return(0,r.useEffect)((()=>{const e=o.current;if(!e||!Number.isFinite(h)||!Number.isFinite(x))return;const s=v().latLng(h,x),a=e.getLatLng();if(!a)return void e.setLatLng(s);const i=s.lat-a.lat,r=s.lng-a.lng;if(Math.abs(i)<1e-6&&Math.abs(r)<1e-6)return void e.setLatLng(s);let n=!1;try{n=a.distanceTo(s)>2e3}catch(b){n=!1}if(n)return e.setLatLng(s),void(p.current=performance.now());u.current&&cancelAnimationFrame(u.current);const l=performance.now(),c=null==p.current?t:l-p.current,d=Math.max(200,Math.min(2500,c));p.current=l;const m=a.lat,j=a.lng;let f=!0,g=null;(async()=>{const e="https://router.project-osrm.org/route/v1/driving/".concat(a.lng,",").concat(a.lat,";").concat(s.lng,",").concat(s.lat,"?overview=full&geometries=geojson");try{const s=await fetch(e),a=await s.json();f&&a.routes&&a.routes[0]&&(g=a.routes[0].geometry.coordinates.map((e=>[e[1],e[0]])))}catch(t){console.error("OSRM animated rider marker fetch error:",t)}})();const N=s=>{if(!f)return;const a=Math.min(1,(s-l)/d);if(g&&g.length>=2){const s=((e,s)=>{if(!e||0===e.length)return null;if(1===e.length)return e[0];if(s<=0)return e[0];if(s>=1)return e[e.length-1];const a=[];let t=0;for(let n=0;n=i){const s=(i-r)/a[n],t=e[n],l=e[n+1];return[t[0]+(l[0]-t[0])*s,t[1]+(l[1]-t[1])*s]}r=s}return e[e.length-1]})(g,a);s?e.setLatLng(s):e.setLatLng([m+i*a,j+r*a])}else e.setLatLng([m+i*a,j+r*a]);a<1&&(u.current=requestAnimationFrame(N))};return u.current=requestAnimationFrame(N),()=>{f=!1,u.current&&cancelAnimationFrame(u.current)}}),[h,x,t]),(0,r.useEffect)((()=>()=>{u.current&&cancelAnimationFrame(u.current)}),[]),(0,_.jsx)(l.p,{ref:e=>{o.current=e,"function"===typeof d?d(e):d&&(d.current=e)},position:m.current,icon:a,zIndexOffset:i,eventHandlers:n,children:c})},Ce=e=>{let{children:s}=e;return(0,_.jsx)("span",{className:"ico-inline",style:{display:"inline-flex",alignItems:"center",verticalAlign:"-2px",marginRight:4},children:s})},Ae=[{key:"morning",label:"Morning",timeRange:"12:00 AM \u2013 8:00 AM",sub:"Early shift orders",color:"#f59e0b",bg:"#fffbeb",border:"#fde68a"},{key:"afternoon",label:"Noon",timeRange:"9:00 AM \u2013 12:30 PM",sub:"Lunch rush window",color:"#10b981",bg:"#ecfdf5",border:"#a7f3d0"},{key:"evening",label:"Evening",timeRange:"4:00 PM \u2013 7:00 PM",sub:"Dinner & end-of-day",color:"#6366f1",bg:"#eef2ff",border:"#c7d2fe"}],ze=e=>{if(null==e)return"\u2014";if("number"===typeof e)return e.toLocaleString("en-IN");const s=parseFloat(e);return Number.isFinite(s)?s.toLocaleString("en-IN"):String(e)},Pe=e=>{if(!e||"string"!==typeof e)return null;const s=e.split(":").map(Number);if(s.length<2||s.some((e=>!Number.isFinite(e))))return null;const[a,t,i=0]=s;return 3600*a+60*t+i},Ee=e=>{let{data:s,embedded:a=!1,selectedRiderId:n,onRiderSelect:h,pulseOrderId:x,onChangeRider:j}=e;const w=null!==s&&void 0!==s&&s.zones&&s.zones.length>0?"zones":"riders",[F,M]=(0,r.useState)(w),[C,A]=(0,r.useState)("live"),[z,P]=(0,r.useState)({}),[E,D]=(0,r.useState)(null),[L,R]=(0,r.useState)(null),[q,I]=(0,r.useState)(null);(0,r.useEffect)((()=>{if(!q)return;const e=e=>{"Escape"===e.key&&I(null)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[q]);const O=(0,g.n)({mutationFn:U.W0,onMutate:e=>D(e.batch),onSuccess:(e,s)=>{P((a=>(0,i.A)((0,i.A)({},a),{},{[s.batch]:{data:e,fetchedAt:f()().format("HH:mm:ss")}})))},onSettled:()=>D(null)}),T=e=>{R(e);const s=z[e];s&&s.data&&!1!==s.data.success||O.mutate({batch:e,tenantId:916})},H=15e3,K=(0,r.useRef)(null);(0,r.useEffect)((()=>{K.current=E}),[E]),(0,r.useEffect)((()=>{if("analysis"!==C)return;if(!L)return;const e=setInterval((()=>{K.current||"undefined"!==typeof document&&document.hidden||O.mutate({batch:L,tenantId:916})}),H);return()=>clearInterval(e)}),[C,L]);const[G,J]=(0,r.useState)(new Set),[oe,he]=(0,r.useState)(null),[Ee,De]=(0,r.useState)(null),[Le,Re]=(0,r.useState)(null),[qe,Ie]=(0,r.useState)(null),[Oe,Te]=(0,r.useState)("planned"),Ye=(0,r.useRef)({}),He=(0,r.useRef)(new Set),Ve=(0,r.useRef)(new Set),Ke=(0,r.useRef)(new Map),Be=((0,r.useRef)(null),(0,r.useRef)(null)),[Ue,Ge]=(0,r.useState)(null),Je=void 0!==n,[We,$e]=(0,r.useState)(""),{data:Ze}=(0,N.I)({queryKey:["appLocations"],queryFn:U.aL,staleTime:3e5}),Xe="undefined"!==typeof window?localStorage.getItem("applocationid"):null,[Qe,es]=(0,r.useState)(null!=Xe?Number(Xe):0),[ss,as]=(0,r.useState)(!1),ts=(0,r.useRef)(null),[is,rs]=(0,r.useState)("assigned"),[ns,ls]=(0,r.useState)(!1),cs=(0,r.useRef)(null),[ds,os]=(0,r.useState)((()=>{if("undefined"===typeof window)return me;try{const e=window.localStorage.getItem(le);if(!e)return me;const s=JSON.parse(e);return Array.isArray(s)&&s.length===ne.length?s.map(((e,s)=>{const a=e.id||"slot-".concat(s+1),t=Number(e.startHour)||0,i=Number(e.endHour)||24,r=me.find((e=>e.id===a));return{id:a,startHour:t,endHour:i,label:(null===r||void 0===r?void 0:r.name)||de(s,t),range:ue(t,i)}})):me}catch(e){return me}})),us=ds,[ms,ps]=(0,r.useState)(!1),hs=(0,r.useRef)(null);(0,r.useEffect)((()=>{if("undefined"!==typeof window)try{ce.forEach((e=>window.localStorage.removeItem(e)))}catch(e){}}),[]);const vs=(0,r.useRef)(!1);(0,r.useEffect)((()=>{if(vs.current){if("undefined"!==typeof window)try{window.localStorage.setItem(le,JSON.stringify(ds.map((e=>{let{id:s,startHour:a,endHour:t}=e;return{id:s,startHour:a,endHour:t}}))))}catch(e){}}else vs.current=!0}),[ds]),(0,r.useEffect)((()=>{if(!ss)return;const e=e=>{ts.current&&!ts.current.contains(e.target)&&as(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[ss]),(0,r.useEffect)((()=>{if(!ns)return;const e=e=>{cs.current&&!cs.current.contains(e.target)&&ls(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[ns]),(0,r.useEffect)((()=>{if(!ms)return;const e=e=>{hs.current&&!hs.current.contains(e.target)&&ps(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[ms]);const[xs,js]=(0,r.useState)(null),[fs,gs]=(0,r.useState)(""),{data:Ns,isFetching:bs,isError:ys,error:ks}=(0,N.I)({queryKey:["riderPeriodicLog",xs],queryFn:()=>(0,U.ne)(xs),enabled:"rider-info"===F&&null!=xs,refetchInterval:"rider-info"===F&&null!=xs&&15e3,refetchIntervalInBackground:!1,staleTime:5e3,refetchOnWindowFocus:!1}),Ss=(0,r.useMemo)((()=>{const e=parseFloat(null===Ns||void 0===Ns?void 0:Ns.latitude),s=parseFloat(null===Ns||void 0===Ns?void 0:Ns.longitude);return Number.isFinite(e)&&Number.isFinite(s)?{lat:e.toFixed(4),lon:s.toFixed(4)}:null}),[null===Ns||void 0===Ns?void 0:Ns.latitude,null===Ns||void 0===Ns?void 0:Ns.longitude]),{data:_s}=(0,N.I)({queryKey:["reverseGeocode",null===Ss||void 0===Ss?void 0:Ss.lat,null===Ss||void 0===Ss?void 0:Ss.lon],queryFn:async()=>{const e=await fetch("https://nominatim.openstreetmap.org/reverse?lat=".concat(Ss.lat,"&lon=").concat(Ss.lon,"&format=json&zoom=16&addressdetails=1"),{headers:{Accept:"application/json"}});if(!e.ok)return null;const s=await e.json(),a=(null===s||void 0===s?void 0:s.address)||{};return{area:a.suburb||a.neighbourhood||a.village||a.hamlet||a.city_district||a.town||a.city||a.county||a.state||"",display:(null===s||void 0===s?void 0:s.display_name)||""}},enabled:"rider-info"===F&&!!Ss,staleTime:3e5,refetchOnWindowFocus:!1,retry:1}),ws=(0,r.useMemo)((()=>{if(!Ze)return null;const e=Ze.find((e=>String(e.applocationid)===String(Qe)));return(null===e||void 0===e?void 0:e.locationname)||null}),[Ze,Qe]),[Fs,Ms]=(0,r.useState)({}),Cs=(0,r.useRef)({}),[As,zs]=(0,r.useState)({}),Ps=(0,r.useRef)({}),[Es,Ds]=(0,r.useState)(!1),[Ls,Rs]=(0,r.useState)([]),[qs,Is]=(0,r.useState)({}),Os=(0,r.useRef)(!1),[Ts,Ys]=(0,r.useState)(f()().format("YYYY-MM-DD")),[Hs,Vs]=(0,r.useState)(!1),[Ks,Bs]=(0,r.useState)((()=>f()(Ts).isValid()?f()(Ts).startOf("month"):f()().startOf("month"))),Us=(0,r.useRef)(null);(0,r.useEffect)((()=>{if(!Hs)return;const e=e=>{Us.current&&(Us.current.contains(e.target)||Vs(!1))},s=e=>{"Escape"===e.key&&Vs(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",s),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",s)}}),[Hs]),(0,r.useEffect)((()=>{if(Hs){const e=f()(Ts);e.isValid()&&Bs(e.startOf("month"))}}),[Hs,Ts]);const[Gs,Js]=(0,r.useState)(!1),[Ws,$s]=(0,r.useState)("combined"),[Zs,Xs]=(0,r.useState)(!0),[Qs,ea]=(0,r.useState)(!0),[sa,aa]=(0,r.useState)((()=>new Set)),ta=(0,r.useRef)(!1),[ia,ra]=(0,r.useState)(!1),na=(0,r.useRef)(!1),la=(0,r.useRef)(!1),[ca,da]=(0,r.useState)(!1),[oa,ua]=(0,r.useState)(null),ma=(0,r.useRef)(null),pa=(0,r.useRef)(null);pa.current||(pa.current=v().canvas({padding:1.5,tolerance:5}));const{data:ha}=(0,N.I)({queryKey:[Qe,Ts,""],queryFn:U.zb,refetchInterval:1e3,refetchIntervalInBackground:!1,staleTime:0,refetchOnWindowFocus:!1}),va=(0,r.useMemo)((()=>(ha||[]).map((e=>{var s;const a=parseFloat(null===e||void 0===e?void 0:e.latitude),t=parseFloat(null===e||void 0===e?void 0:e.longitude);return Number.isFinite(a)&&Number.isFinite(t)?{id:String(null!==(s=e.userid)&&void 0!==s?s:""),userid:e.userid,username:e.username||"Rider #".concat(e.userid),status:String(e.status||"").toLowerCase(),contactno:e.contactno,orderid:e.orderid,logdate:e.logdate,lat:a,lon:t}:null})).filter(Boolean)),[ha]),xa=(0,r.useMemo)((()=>new Set(va.filter((e=>"active"===e.status||"pending"===e.status)).map((e=>String(e.id))))),[va]),[ja,fa]=(0,r.useState)((()=>{const e=f()();return pe(e.hour()+e.minute()/60,me)||me[0].id}));(0,r.useEffect)((()=>{var e;"all"!==ja&&(us.some((e=>e.id===ja))||fa((null===(e=us[0])||void 0===e?void 0:e.id)||"all"))}),[us,ja]);const ga=(0,r.useRef)(null),Na=!s,ba="undefined"!==typeof window&&localStorage.getItem("userid")||0,{data:ya,isFetching:ka,isError:Sa,fetchNextPage:_a,hasNextPage:wa,isFetchingNextPage:Fa}=(0,b.q)({queryKey:["dispatchDeliveries",Qe,ba,"all",Ts,Ts,50,"",0,0,0],queryFn:U.tL,getNextPageParam:e=>{var s;return null!==(s=e.nextPage)&&void 0!==s?s:void 0},enabled:Na,refetchInterval:"all"===F&&15e3,refetchIntervalInBackground:!1});(0,r.useEffect)((()=>{Na&&wa&&!Fa&&_a()}),[Na,wa,Fa,_a]);const Ma=(0,r.useRef)([]),Ca=(0,r.useRef)({}),Aa=(0,r.useMemo)((()=>{const e=((null===ya||void 0===ya?void 0:ya.pages)||[]).flatMap((e=>e.rows||[])),s=new Set,a=[];for(const t of e){const e=null!=t.orderid?String(t.orderid):null;e&&s.has(e)||(e&&s.add(e),a.push(t))}return ka&&wa&&Ma.current.length>0?Ma.current:(wa||(Ma.current=a),a)}),[ya,ka,wa]),za=(0,r.useMemo)((()=>{const e=new Map;return Aa.forEach((s=>{const a=String(s.userid||s.rider_id||"");a&&"unassigned"!==a&&"0"!==a&&(e.has(a)||e.set(a,{id:a,riderName:s.ridername||s.rider_name||s.username||"Rider ".concat(a)}))})),Array.from(e.values()).sort(((e,s)=>String(e.riderName).localeCompare(String(s.riderName))))}),[Aa]),Pa=(0,r.useMemo)((()=>{const e={all:Aa.length};return us.forEach((s=>{e[s.id]=0})),Aa.forEach((s=>{const a=ve(s,is,us);a&&(e[a]=(e[a]||0)+1)})),e}),[Aa,is,us]),Ea=(0,r.useMemo)((()=>"all"===ja?Aa:Aa.filter((e=>ve(e,is,us)===ja))),[Aa,ja,is,us]),Da=(0,r.useMemo)((()=>{let e=0;const s={};return Aa.forEach((e=>{const a=e.assigntime?f()(e.assigntime).format("YYYY-MM-DD"):e.deliverydate?f()(e.deliverydate).format("YYYY-MM-DD"):"unknown";if(Ts&&a!==Ts)return;const t=ve(e,is,us);if(!t||"all"===t)return;const i=String(e.userid||e.rider_id||"unassigned");if("unassigned"===i||"0"===i)return;s[i]||(s[i]={revenue:0,kms:0,batches:new Set});const r=parseFloat(e.kms||e.actualkms||0);s[i].kms+=r,s[i].revenue+=r<=8?30:30+6*(r-8),s[i].batches.add(t)})),Object.values(s).forEach((s=>{const a=2.5*s.kms+Math.min(s.batches.size,3)*(500/3);e+=s.revenue-a})),e}),[Aa,is,us,Ts]),La=(0,r.useMemo)((()=>{if(!Na)return null;if(!Ea.length)return{code:200,zone_summary:[],zones:[]};const e=e=>String(e||"").trim(),s={};Ea.forEach((a=>{const t=e(a.deliverysuburb)||e(a.locationsuburb)||e(a.zone_name)||"Unzoned",i=t.toLowerCase(),r=String(a.userid||a.rider_id||"unassigned"),n=a.ridername||a.rider_name||a.username||("unassigned"===r?"Unassigned":"Rider ".concat(r));s[i]||(s[i]={zone_name:t,riders:{}}),s[i].riders[r]||(s[i].riders[r]={rider_id:r,rider_name:n,orders:[]}),s[i].riders[r].orders.push(a)}));const a=Object.values(s).map((e=>{const s=Object.values(e.riders).map((e=>{const s=[...e.orders].sort(((e,s)=>f()(e.deliverydate||e.assigntime||0).valueOf()-f()(s.deliverydate||s.assigntime||0).valueOf()));return(0,i.A)((0,i.A)({},e),{},{orders:s.map(((e,s)=>(0,i.A)((0,i.A)({},e),{},{trip_number:e.trip_number||1,step:e.step||s+1})))})}));return{zone_name:e.zone_name,riders:s}}));return{code:200,zone_summary:a.map((e=>{const s=e.riders.flatMap((e=>e.orders)),a=s.filter((e=>e.userid||e.rider_id)).length;return{zone_name:e.zone_name,total_orders:s.length,assigned_orders:a,unassigned_orders_count:s.length-a,active_riders_count:e.riders.filter((e=>"unassigned"!==e.rider_id)).length,total_delivery_kms:s.reduce(((e,s)=>e+parseFloat(s.actualkms||s.kms||0)),0),total_profit:s.reduce(((e,s)=>e+parseFloat(s.profit||0)),0)}})),zones:a}}),[Na,Ea]),Ra=(0,r.useMemo)((()=>{const e=s||La||{zones:[],zone_summary:[]},a=e.zones||[],t={};(e.zone_summary||[]).forEach((e=>{t[e.zone_name]=e}));const i=(e,s)=>{const a={};return e.forEach((e=>{const t=s(e);t&&(a[t]=(a[t]||0)+1)})),Object.entries(a).map((e=>{let[s,a]=e;return{name:s,count:a}})).sort(((e,s)=>s.count-e.count))};return a.map((e=>{var s,a,r,n;const l=t[e.zone_name]||{},c=(e.riders||[]).flatMap((e=>e.orders||[])),d=(e.riders||[]).filter((e=>e.rider_id&&"unassigned"!==e.rider_id)).length,o=i(c,(e=>e.deliverysuburb||e.locationsuburb)),u=i(c,(e=>e.pickupcustomer||e.kitchen_key)),m={};return c.forEach((e=>{const s=String(e.orderstatus||"unknown").toLowerCase();m[s]=(m[s]||0)+1})),{id:e.zone_name,name:e.zone_name,riders:e.riders||[],orders:c,totalOrders:null!==(s=l.total_orders)&&void 0!==s?s:c.length,activeRidersCount:null!==(a=l.active_riders_count)&&void 0!==a?a:d,totalKms:null!==(r=l.total_delivery_kms)&&void 0!==r?r:c.reduce(((e,s)=>e+parseFloat(s.actualkms||s.kms||0)),0),totalProfit:null!==(n=l.total_profit)&&void 0!==n?n:c.reduce(((e,s)=>e+parseFloat(s.profit||0)),0),suburbs:o,kitchens:u,statusCounts:m}}))}),[s,La]),{riders:qa,kitchens:Ia,allOrders:Oa,stats:Ta}=(0,r.useMemo)((()=>{const e=s||La||{zones:[],zone_summary:[]},a=[];(e.zones||[]).forEach((e=>{(e.riders||[]).forEach((s=>{s.orders.forEach((t=>{a.push((0,i.A)((0,i.A)({},t),{},{zone_name:e.zone_name,rider_name:s.rider_name,rider_id:s.rider_id}))}))}))}));const t={};(e.zones||[]).forEach((e=>{(e.riders||[]).forEach((e=>{const s=e.rider_id;s&&"unassigned"!==s&&(t[s]||(t[s]={id:s,riderName:e.rider_name||e.username||s,orders:[],color:_e[Object.keys(t).length%_e.length]}))}))})),a.forEach((e=>{const s=e.rider_id||e.userid||"unknown";"unassigned"!==s&&(t[s]||(t[s]={id:s,riderName:e.rider_name||e.username||e.rider||s,orders:[],color:_e[Object.keys(t).length%_e.length]}),t[s].orders.some((s=>s.orderid===e.orderid))||t[s].orders.push(e))}));const r={};a.forEach((e=>{const s=e.pickupcustomer||e.kitchen_key||"Unknown",a=s.toLowerCase().trim();r[a]?!Number.isFinite(r[a].lat)&&re(e)&&(r[a].lat=ee(te(e)),r[a].lon=ee(ie(e))):r[a]={id:a,kitchenName:s,lat:ee(te(e)),lon:ee(ie(e)),orders:[],riders:new Set},r[a].orders.push(e),e.rider_id&&r[a].riders.add(e.rider_id)}));const n=a.reduce(((e,s)=>e+parseFloat(s.actualkms||s.kms||0)),0),l=a.reduce(((e,s)=>e+parseFloat(s.profit||0)),0);return{riders:Object.values(t).map((e=>(0,i.A)((0,i.A)({},e),{},{orders:[...e.orders].sort(((e,s)=>{const a=e.trip_number||1,t=s.trip_number||1;return a!==t?a-t:(e.step||0)-(s.step||0)}))}))).sort(((e,s)=>s.orders.length-e.orders.length)),kitchens:Object.values(r).sort(((e,s)=>s.orders.length-e.orders.length)),allOrders:a,stats:{totalOrders:a.length,totalKms:n,totalProfit:l,totalRiders:Object.keys(t).length}}}),[s,La]),Ya=Je?n&&qa.find((e=>e.id===n))||null:oe,Ha="all"===F,Va=(0,r.useMemo)((()=>Ha?Oa.filter((e=>xa.has(String(e.rider_id)))):Oa),[Ha,Oa,xa]),Ka=(0,r.useMemo)((()=>new Set((Ha?Va:[]).filter(V.L0).map((e=>String(e.rider_id))))),[Ha,Va]),Ba=(0,r.useMemo)((()=>Ha?qa.filter((e=>Ka.has(String(e.id)))):qa),[Ha,qa,Ka]),Ua=(0,r.useMemo)((()=>{if(!Ha)return Ca.current={},[];const e=new Set(["delivered","cancelled","skipped","complete","completed"]);Ea.forEach((s=>{const a=String(s.orderid),t=String(s.orderstatus||"").toLowerCase();"active"===t?Ca.current[a]=s:e.has(t)&&delete Ca.current[a]}));const s=Object.values(Ca.current);if(!s.length)return[];const a=Object.fromEntries(qa.map((e=>[e.id,e]))),t={};return s.forEach((e=>{const s=String(e.rider_id||e.userid||"");if(s&&"unassigned"!==s&&"0"!==s){if(!t[s]){const i=a[s];t[s]={id:s,riderName:(null===i||void 0===i?void 0:i.riderName)||e.rider_name||e.ridername||e.username||"Rider ".concat(s),orders:[],color:(null===i||void 0===i?void 0:i.color)||we(s)}}t[s].orders.some((s=>String(s.orderid)===String(e.orderid)))||t[s].orders.push(e)}})),Object.values(t)}),[Ha,Ea,qa]),Ga=(0,r.useMemo)((()=>Ha?va.filter((e=>("active"===e.status||"pending"===e.status)&&Ka.has(String(e.id)))).map((e=>[e.lat,e.lon])):[]),[Ha,va,Ka]);(0,r.useEffect)((()=>{Ca.current={}}),[Ts,Qe,ja]);const Ja=(0,r.useMemo)((()=>Ha?Ua.reduce(((e,s)=>e+s.orders.length),0):0),[Ha,Ua]),Wa=(0,r.useCallback)((e=>{h&&h(e?e.id:null),Je||he(e),Ie(null)}),[Je,h]),$a=(0,r.useRef)(null);(0,r.useEffect)((()=>{const e=Ya?Ya.id:null;e!==$a.current&&(Ya?$.A.info("Focused rider changed to: ".concat(Ya.riderName," (").concat(Ya.orders.length," orders)")):$.A.info("Focused rider reset to: None"),$a.current=e)}),[Ya]),(0,r.useEffect)((()=>{qe?$.A.info("Focused order updated: ID ".concat(qe.orderid)):$.A.debug("Focused order selection cleared")}),[qe]);const Za=(0,r.useRef)(0);(0,r.useEffect)((()=>{Oa&&Oa.length!==Za.current&&($.A.info("Orders database updated: ".concat(Oa.length," orders actively tracked")),Za.current=Oa.length)}),[Oa]);const Xa=(0,r.useRef)(0);(0,r.useEffect)((()=>{va&&va.length!==Xa.current&&($.A.info("Live riders list updated: ".concat(va.length," active riders mapped")),Xa.current=va.length)}),[va]);const Qa=(0,r.useMemo)((()=>{if(Ya)return{orders:Ya.orders.length,riders:1,km:Ya.orders.reduce(((e,s)=>e+parseFloat(s.actualkms||s.kms||0)),0),profit:Ya.orders.reduce(((e,s)=>e+parseFloat(s.profit||0)),0),label:"Focused Rider"};if(Ee)return{orders:Ee.orders.length,riders:Ee.riders.size,km:Ee.orders.reduce(((e,s)=>e+parseFloat(s.actualkms||s.kms||0)),0),profit:Ee.orders.reduce(((e,s)=>e+parseFloat(s.profit||0)),0),label:"Focused Kitchen"};if(Ha){const e=Ua.flatMap((e=>e.orders));return{orders:e.length,riders:Ua.length,km:e.reduce(((e,s)=>e+parseFloat(s.actualkms||s.kms||0)),0),profit:e.reduce(((e,s)=>e+parseFloat(s.profit||0)),0),label:"Active Fleet"}}return{orders:Ta.totalOrders,riders:Ta.totalRiders,km:Ta.totalKms,profit:Ta.totalProfit,label:"Total Fleet"}}),[Ya,Ee,Ha,Ua,Ta]),et=(0,r.useMemo)((()=>{if(!Ya)return[];const e=new Set;return Ya.orders.forEach((s=>{null!=s.deliveryid&&""!==s.deliveryid&&0!==s.deliveryid&&e.add(String(s.deliveryid))})),Array.from(e)}),[Ya]),st=(0,y.E)({queries:et.map((e=>({queryKey:["deliveryLogs",e],queryFn:async()=>{var s,a;const i=await k.A.get("".concat("https://jupiter.nearle.app/live/api/v3","/deliveries/getdeliverylogs/?deliveryid=").concat(e));return function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Array.isArray(e)||0===e.length)return[];const a=e.filter((e=>Number.isFinite(e.lat)&&Number.isFinite(e.lng)&&(Math.abs(e.lat)>.1||Math.abs(e.lng)>.1)));if(0===a.length)return[];if(1===a.length)return[{lat:a[0].lat,lng:a[0].lng,logdate:a[0].logdate,_ts:a[0]._ts}];const t=null!=s.processNoise?s.processNoise:1e-10,i=null!=s.measurementNoise?s.measurementNoise:2e-9,r=null!=s.outlierGate?s.outlierGate:9,n=null!=s.maxSpeedKmh?s.maxSpeedKmh:120,l=e=>e._ts||(e.logdate?new Date(e.logdate).getTime():0);let c=0;for(;cn||(d.push(e),o=s)}if(d.length<2)return d.map((e=>({lat:e.lat,lng:e.lng,logdate:e.logdate,_ts:e._ts})));const u=e=>{const s=d.length,a=new Array(s),n=new Array(s),c=new Array(s),o=new Array(s),u=new Array(s),m=l(d[0]),p=l(d[1]),h=Math.max(.1,(p-m)/1e3),v=(d[1][e]-d[0][e])/h;a[0]=[d[0][e],v],n[0]=[i,0,0,1],c[0]=a[0].slice(),o[0]=n[0].slice(),u[0]=0;let x=m;for(let f=1;fr){a[f]=[v,j],n[f]=[_,w,F,M];continue}const z=_/A,P=F/A,E=v+z*C,D=j+P*C;a[f]=[E,D],n[f]=[(1-z)*_,(1-z)*w,F-P*_,M-P*w]}const j=new Array(s);j[s-1]=a[s-1].slice();for(let t=s-2;t>=0;t--){const e=u[t+1],[s,i,r,l]=n[t],d=s+e*i,m=i,p=r+e*l,h=l,[v,x,f,g]=o[t+1],N=v*g-x*f;if(!Number.isFinite(N)||Math.abs(N)<1e-30){j[t]=a[t].slice();continue}const b=g/N,y=-x/N,k=-f/N,S=v/N,_=d*b+m*k,w=d*y+m*S,F=p*b+h*k,M=p*y+h*S,C=j[t+1][0]-c[t+1][0],A=j[t+1][1]-c[t+1][1];j[t]=[a[t][0]+_*C+w*A,a[t][1]+F*C+M*A]}return j.map((e=>e[0]))},m=u("lat"),p=u("lng");return d.map(((e,s)=>({lat:m[s],lng:p[s],logdate:e.logdate,_ts:e._ts})))}(([null===i||void 0===i||null===(s=i.data)||void 0===s?void 0:s.details,null===i||void 0===i||null===(a=i.data)||void 0===a?void 0:a.data,null===i||void 0===i?void 0:i.data,i].find((e=>Array.isArray(e)))||[]).map((e=>{var s,a,t;const i=null!==e&&void 0!==e&&e.logdate?f()(e.logdate):null;return{lat:parseFloat(null!==(s=null===e||void 0===e?void 0:e.latitude)&&void 0!==s?s:null===e||void 0===e?void 0:e.lat),lng:parseFloat(null!==(a=null!==(t=null===e||void 0===e?void 0:e.longitude)&&void 0!==t?t:null===e||void 0===e?void 0:e.lng)&&void 0!==a?a:null===e||void 0===e?void 0:e.lon),logdate:null===e||void 0===e?void 0:e.logdate,_ts:i&&i.isValid()?i.valueOf():Number.MAX_SAFE_INTEGER}})).filter((e=>Number.isFinite(e.lat)&&Number.isFinite(e.lng))).sort(((e,s)=>e._ts-s._ts))).map((e=>{let{_ts:s}=e;return(0,t.A)(e,Z)}))},enabled:Gs&&null!=Ya,staleTime:3e5,refetchOnWindowFocus:!1,retry:1})))}),at=(0,r.useMemo)((()=>{if(!Ya)return[];const e=e=>{const s=e.deliverytime||e.expecteddeliverytime;if(!s)return Number.MAX_SAFE_INTEGER;const a=f()(s);return a.isValid()?a.valueOf():Number.MAX_SAFE_INTEGER};return Ya.orders.filter((e=>null!=e.deliveryid&&""!==e.deliveryid&&0!==e.deliveryid)).sort(((s,a)=>{const t=e(s)-e(a);return 0!==t?t:(s.step||0)-(a.step||0)})).map(((e,s)=>{const a=et.indexOf(String(e.deliveryid)),t=a>=0?st[a]:null;return{sequenceStep:s+1,orderid:e.orderid,deliveryid:e.deliveryid,deliverycustomer:e.deliverycustomer,pickupcustomer:e.pickupcustomer,step:e.step,tripNumber:e.trip_number||1,deliverytime:e.deliverytime||e.expecteddeliverytime,kms:parseFloat(e.actualkms||e.kms||0)||0,profit:parseFloat(e.profit||0)||0,orderstatus:e.orderstatus,isLoading:(null===t||void 0===t?void 0:t.isLoading)||(null===t||void 0===t?void 0:t.isFetching),isError:null===t||void 0===t?void 0:t.isError,coords:(null===t||void 0===t?void 0:t.data)||[]}}))}),[Ya,et,st]),tt=(0,r.useMemo)((()=>Ya?at.map((e=>{const s=Ya.orders.find((s=>String(s.deliveryid)===String(e.deliveryid))),a=parseFloat((null===s||void 0===s?void 0:s.kms)||0)||0,t=As[e.deliveryid];let i=0;Array.isArray(t)&&t.length>=2?i=ge(t):null!=(null===s||void 0===s?void 0:s.actualkms)&&""!==s.actualkms?i=parseFloat(s.actualkms)||0:e.coords.length>=2&&(i=ge(e.coords.map((e=>[e.lat,e.lng]))));const r=i-a,n=a>0?r/a*100:null,l=null!==s&&void 0!==s&&s.expecteddeliverytime?f()(s.expecteddeliverytime):null,c=null!==s&&void 0!==s&&s.deliverytime?f()(s.deliverytime):null,d=null!==l&&void 0!==l&&l.isValid()&&null!==c&&void 0!==c&&c.isValid()?c.diff(l,"minute"):null,o=a>0&&i>1.25*a||null!=d&&d>15;return{sequenceStep:e.sequenceStep,deliveryid:e.deliveryid,orderid:e.orderid,order:s,plannedKm:a,actualKm:i,kmDelta:r,kmDeltaPct:n,expectedTs:null!==l&&void 0!==l&&l.isValid()?l:null,actualTs:null!==c&&void 0!==c&&c.isValid()?c:null,timeDeltaMin:d,anomaly:o,orderstatus:e.orderstatus,deliverycustomer:e.deliverycustomer,pickupcustomer:null===s||void 0===s?void 0:s.pickupcustomer,isLoading:e.isLoading,coordsCount:e.coords.length}})):[]),[at,Ya,As]),it=(0,r.useMemo)((()=>{if(0===tt.length)return{plannedKm:0,actualKm:0,kmDeltaPct:null,anomalies:0,late:0,onTime:0};const e=tt.filter((e=>!e.isLoading&&e.coordsCount>0)),s=e.reduce(((e,s)=>e+s.plannedKm),0),a=e.reduce(((e,s)=>e+s.actualKm),0);return{plannedKm:s,actualKm:a,kmDeltaPct:s>0?(a-s)/s*100:null,anomalies:e.filter((e=>e.anomaly)).length,late:e.filter((e=>null!=e.timeDeltaMin&&e.timeDeltaMin>5)).length,onTime:e.filter((e=>null!=e.timeDeltaMin&&e.timeDeltaMin<=5)).length}}),[tt]),rt=(0,r.useMemo)((()=>[...tt].sort(((e,s)=>{var a,t;return((null===(a=e.order)||void 0===a?void 0:a.step)||e.sequenceStep)-((null===(t=s.order)||void 0===t?void 0:t.step)||s.sequenceStep)}))),[tt]),nt=(0,r.useMemo)((()=>[...tt].sort(((e,s)=>e.sequenceStep-s.sequenceStep))),[tt]),lt=(0,r.useMemo)((()=>{if(!Gs||!oa||!Ya)return null;const e=at.find((e=>e.sequenceStep===oa));if(!e)return null;const s=Ya.orders.find((s=>String(s.deliveryid)===String(e.deliveryid)));return s?{orders:[s],id:"cmp-step-".concat(oa,"-").concat(s.orderid)}:null}),[Gs,oa,Ya,at]);(0,r.useEffect)((()=>{ua(null),aa(new Set),$s("combined")}),[Gs,null===Ya||void 0===Ya?void 0:Ya.id]),(0,r.useEffect)((()=>{!Ya&&Gs&&Js(!1)}),[Ya,Gs]),(0,r.useEffect)((()=>{ta.current&&Ya&&(ta.current=!1,Js(!0))}),[Ya]),(0,r.useEffect)((()=>{Gs&&!la.current?(na.current=ia,ra(!0),da(!1)):!Gs&&la.current&&ra(na.current),la.current=Gs}),[Gs]);const ct=(0,r.useCallback)((async(e,s,a)=>{if(a.length<2)return;const t=Se(e,s,a);if(void 0!==Cs.current[t])return;Cs.current[t]=null,Ms((e=>(0,i.A)((0,i.A)({},e),{},{[t]:null})));const r=a.map((e=>"".concat(e[1],",").concat(e[0]))).join(";"),n="https://router.project-osrm.org/route/v1/driving/".concat(r,"?overview=full&geometries=geojson");try{const e=await fetch(n),s=await e.json();if(s.routes&&s.routes[0]){const e=s.routes[0].geometry.coordinates.map((e=>[e[1],e[0]]));Cs.current[t]=e,Ms((s=>(0,i.A)((0,i.A)({},s),{},{[t]:e})))}else Cs.current[t]=!1,Ms((e=>(0,i.A)((0,i.A)({},e),{},{[t]:!1})))}catch(l){console.error("OSRM Fetch error:",l),Cs.current[t]=!1,Ms((e=>(0,i.A)((0,i.A)({},e),{},{[t]:!1})))}}),[]);(0,r.useEffect)((()=>{Cs.current={},Ms({}),Ps.current={},zs({})}),[Ts,ja]);const dt=(0,r.useCallback)((async(e,s)=>{if(void 0!==Ps.current[e])return;if(!Array.isArray(s)||s.length<2)return;Ps.current[e]=null,zs((s=>(0,i.A)((0,i.A)({},s),{},{[e]:null})));const a=s=>{Ps.current[e]=s,zs((a=>(0,i.A)((0,i.A)({},a),{},{[e]:s})))},t=()=>{Ps.current[e]=!1,zs((s=>(0,i.A)((0,i.A)({},s),{},{[e]:!1})))},r=(e,s)=>{if(e.length<=s)return e;const a=Math.ceil(e.length/s),t=e.filter(((e,s)=>s%a===0)),i=e[e.length-1];return t[t.length-1]!==i&&t.push(i),t};try{const e=r(s,90).map((e=>"".concat(e[1],",").concat(e[0]))).join(";"),t="https://router.project-osrm.org/match/v1/driving/".concat(e,"?overview=full&geometries=geojson&gaps=ignore&tidy=true"),i=await fetch(t),n=await i.json();if(n.matchings&&n.matchings.length>0){const e=n.matchings.flatMap((e=>{var s;return((null===(s=e.geometry)||void 0===s?void 0:s.coordinates)||[]).map((e=>[e[1],e[0]]))}));if(e.length>=2)return void a(e)}}catch(n){console.warn("OSRM Match error, trying route fallback:",n)}try{const e=r(s,25).map((e=>"".concat(e[1],",").concat(e[0]))).join(";"),i="https://router.project-osrm.org/route/v1/driving/".concat(e,"?overview=full&geometries=geojson"),n=await fetch(i),l=await n.json();if(l.routes&&l.routes[0]){const e=l.routes[0].geometry.coordinates.map((e=>[e[1],e[0]]));if(e.length>=2)return void a(e)}t()}catch(n){console.error("OSRM Route fallback error:",n),t()}}),[]);(0,r.useEffect)((()=>{Gs&&Ya&&at.forEach((e=>{if(!e.deliveryid||e.coords.length<2)return;const s=e.coords.map((e=>[e.lat,e.lng]));dt(e.deliveryid,s)}))}),[at,Gs,Ya,dt]),(0,r.useEffect)((()=>{Os.current=Es}),[Es]),(0,r.useEffect)((()=>{if(a)return;const e=()=>{const e=new Date;$e([e.getHours(),e.getMinutes(),e.getSeconds()].map((e=>String(e).padStart(2,"0"))).join(":"))},s=setInterval(e,1e3);return e(),()=>clearInterval(s)}),[a]),(0,r.useEffect)((()=>{J(new Set(qa.map((e=>e.id))))}),[qa]),(0,r.useEffect)((()=>{qa.forEach((e=>{if(!G.has(e.id))return;if(Ya&&Ya.id!==e.id)return;const s={};if(e.orders.forEach((e=>{const a=e.trip_number||1;s[a]||(s[a]=[]),s[a].push(e)})),Object.entries(s).forEach((s=>{let[a,t]=s;const i=[...t].sort(((e,s)=>(e.step||0)-(s.step||0))),r=ke(i);r.length>=2&&ct(e.id,a,r)})),Ha){const s=(0,V.d1)(e.orders);if(s){const a=va.find((s=>String(s.id)===String(e.id))),t=a&&Number.isFinite(a.lat)&&Number.isFinite(a.lon)?[a.lat,a.lon]:re(s)?[ee(te(s)),ee(ie(s))]:null,i=ee(s.droplat||s.deliverylat),r=ee(s.droplon||s.deliverylong);t&&Number.isFinite(i)&&Number.isFinite(r)&&ct(e.id,"active-".concat(s.orderid),[t,[i,r]])}}}))}),[qa,G,Ya,Ha,va,ct]);const ot=(0,r.useRef)(null);(0,r.useEffect)((()=>{if(!Na)return;const e=()=>{const e=f()();return e.hour()+e.minute()/60};null===ot.current&&(ot.current=e());const s=setInterval((()=>{const s=e(),a=pe(ot.current,us),t=pe(s,us);ot.current=s,t&&t!==a&&fa((e=>e===a?t:e))}),3e4);return()=>clearInterval(s)}),[Na,us]),(0,r.useEffect)((()=>{Ie(null)}),[null===Ee||void 0===Ee?void 0:Ee.id]),(0,r.useEffect)((()=>{const e=ga.current;e&&"function"===typeof e.scrollIntoView&&e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}),[ja]);const ut=function(e){let s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return v().divIcon({className:"",iconSize:s?[56,56]:[46,46],iconAnchor:s?[28,28]:[23,23],popupAnchor:[0,s?-30:-24],html:'
').concat((e||"K").charAt(0).toUpperCase(),"
")})},mt=e=>{var s;return(null===(s=qa.find((s=>String(s.id)===String(e))))||void 0===s?void 0:s.color)||"#475569"},pt=(e,s)=>{if(!e||!s||!ae(s))return null;const a=va.find((s=>String(s.id)===String(e)));if(!a)return null;const t=ee(s.droplat||s.deliverylat),i=ee(s.droplon||s.deliverylong);if(!Number.isFinite(t)||!Number.isFinite(i))return null;const r=fe([a.lat,a.lon],[t,i]);return Math.round(1e3*r)},ht=e=>null===e||void 0===e?"":e>=1e3?"".concat((e/1e3).toFixed(1)," km"):"".concat(e," m");return(0,_.jsxs)("div",{className:"dispatch-container".concat(a?" embedded":"").concat(Gs?" compare-open":""),children:[!a&&(0,_.jsxs)("div",{id:"hdr",children:[(0,_.jsxs)("div",{className:"logo",children:[(0,_.jsx)("div",{className:"logo-badge",children:"D"}),(0,_.jsx)("div",{className:"logo-name",children:"Dispatch"}),Ze&&Ze.length>0&&(0,_.jsxs)("div",{className:"logo-city-wrap",ref:ts,children:[(0,_.jsxs)("button",{type:"button",className:"logo-city ".concat(ss?"open":""),onClick:()=>as((e=>!e)),"aria-haspopup":"listbox","aria-expanded":ss,title:"Switch hub",children:[(0,_.jsx)(S.JFD,{}),(0,_.jsx)("span",{className:"logo-city-text",children:ws||"All locations"}),(0,_.jsx)(S.j1Q,{className:"logo-city-caret"})]}),ss&&(0,_.jsx)("div",{className:"logo-city-menu",role:"listbox",children:Ze.map((e=>{const s=String(e.applocationid)===String(Qe);return(0,_.jsxs)("button",{type:"button",role:"option","aria-selected":s,className:"logo-city-option ".concat(s?"active":""),onClick:()=>(e=>{if($.A.info("Switching hub/location ID:",e),es(Number(e)),as(!1),"undefined"!==typeof window)try{localStorage.setItem("applocationid",String(e))}catch(s){}Wa(null),De(null),Re(null)})(e.applocationid),children:[(0,_.jsx)(S.JFD,{className:"logo-city-option-icon"}),(0,_.jsx)("span",{children:e.locationname}),s&&(0,_.jsx)("span",{className:"logo-city-option-check",children:"\u2713"})]},e.applocationid)}))})]}),(0,_.jsxs)("div",{id:"dispatch-top-tabs",className:"dtt-inline",children:[(0,_.jsxs)("button",{type:"button",className:"dtt-tab ".concat("live"===C?"active":""),onClick:()=>A("live"),children:[(0,_.jsx)("span",{className:"dtt-icon",children:(0,_.jsx)(S.Cd7,{})}),"Live"]}),(0,_.jsxs)("button",{type:"button",className:"dtt-tab ".concat("analysis"===C?"active":""),onClick:()=>A("analysis"),children:[(0,_.jsx)("span",{className:"dtt-icon",children:(0,_.jsx)(S.DX0,{})}),"Analysis"]})]})]}),(0,_.jsxs)("div",{className:"hdr-stats",children:[(()=>{const e=Qa.profit<0,s=Math.abs(Qa.profit);return(0,_.jsxs)("span",{className:"strat-stat ".concat(e?"strat-stat-loss":"strat-stat-profit"),title:"".concat(e?"Loss":"Revenue"," (").concat(Qa.label,")"),children:[(0,_.jsx)("span",{className:"strat-stat-icon",children:e?(0,_.jsx)(S.Rod,{}):(0,_.jsx)(S.imn,{})}),(0,_.jsx)("span",{className:"strat-stat-label",children:e?"Loss":"Revenue"}),(0,_.jsxs)("span",{className:"strat-stat-value",children:[e?"-":"","\u20b9",s.toFixed(0)]})]})})(),Na&&(0,_.jsxs)(_.Fragment,{children:[ka&&(0,_.jsxs)("span",{className:"live-status",children:[(0,_.jsx)("span",{className:"live-dot"})," Loading ",Aa.length?"\xb7 ".concat(Aa.length," loaded"):""]}),!ka&&!Sa&&(0,_.jsxs)("span",{className:"live-status live-status-ready",children:[(0,_.jsx)("span",{className:"live-dot ready"})," ",Ea.length," orders",(0,_.jsxs)("span",{className:"live-status-sub",children:[" / ",Aa.length," total"]})]}),Sa&&(0,_.jsxs)("span",{className:"live-status live-status-error",children:[(0,_.jsx)("span",{className:"live-dot error"})," Failed to load"]}),(()=>{const e=f()().startOf("day"),s=e.format("YYYY-MM-DD"),a=f()(Ts),t=Ts===s,i=a.isAfter(e,"day"),r=s=>{if(!s)return;const a=s.format("YYYY-MM-DD");a!==Ts?s.isAfter(e,"day")||(Ys(a),Wa(null),De(null),Re(null),Vs(!1)):Vs(!1)},n=Ks.startOf("month"),l=n.subtract(n.day(),"day"),c=Array.from({length:42},((e,s)=>l.add(s,"day"))),d=!Ks.add(1,"month").startOf("month").isAfter(e,"month");return(0,_.jsxs)("div",{className:"date-chip".concat(t?" is-today":"").concat(Hs?" is-open":""),ref:Us,children:[(0,_.jsx)("button",{type:"button",className:"date-chip-nav",onClick:()=>r(a.subtract(1,"day")),"aria-label":"Previous day",title:"Previous day",children:(0,_.jsx)(S.E_E,{})}),(0,_.jsxs)("button",{type:"button",className:"date-chip-main",onClick:()=>Vs((e=>!e)),"aria-haspopup":"dialog","aria-expanded":Hs,children:[(0,_.jsx)("span",{className:"date-chip-icon","aria-hidden":"true",children:(0,_.jsx)(S.dDC,{})}),(0,_.jsxs)("span",{className:"date-chip-text",children:[(0,_.jsxs)("span",{className:"date-chip-label",children:["Date",t&&(0,_.jsx)("span",{className:"date-chip-today-pill",children:"Today"})]}),(0,_.jsx)("span",{className:"date-chip-value",children:a.isValid()?a.format("ddd, MMM D, YYYY"):"\u2014"})]}),(0,_.jsx)("span",{className:"date-chip-chevron".concat(Hs?" is-open":""),"aria-hidden":"true",children:(0,_.jsx)(S.j1Q,{})})]}),(0,_.jsx)("button",{type:"button",className:"date-chip-nav",onClick:()=>{t||i||r(a.add(1,"day"))},disabled:t||i,"aria-label":"Next day",title:t?"You're viewing today":"Next day",children:(0,_.jsx)(S.xVu,{})}),Hs&&(0,_.jsxs)("div",{className:"date-cal-popover",role:"dialog","aria-label":"Pick a date",children:[(0,_.jsxs)("div",{className:"date-cal-header",children:[(0,_.jsx)("button",{type:"button",className:"date-cal-nav",onClick:()=>Bs((e=>e.subtract(1,"month"))),"aria-label":"Previous month",children:(0,_.jsx)(S.E_E,{})}),(0,_.jsx)("div",{className:"date-cal-title",children:Ks.format("MMMM YYYY")}),(0,_.jsx)("button",{type:"button",className:"date-cal-nav",onClick:()=>{const s=Ks.add(1,"month");s.startOf("month").isAfter(e,"month")||Bs(s)},disabled:!d,"aria-label":"Next month",children:(0,_.jsx)(S.xVu,{})})]}),(0,_.jsx)("div",{className:"date-cal-weekdays",children:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map((e=>(0,_.jsx)("div",{className:"date-cal-weekday",children:e},e)))}),(0,_.jsx)("div",{className:"date-cal-grid",children:c.map((a=>{const t=a.month()===Ks.month(),i=a.format("YYYY-MM-DD")===Ts,n=a.format("YYYY-MM-DD")===s,l=a.isAfter(e,"day"),c=["date-cal-day",!t&&"is-other-month",i&&"is-selected",n&&"is-today",l&&"is-disabled"].filter(Boolean).join(" ");return(0,_.jsx)("button",{type:"button",className:c,disabled:l,onClick:()=>r(a),"aria-current":n?"date":void 0,"aria-pressed":i,children:a.date()},a.format("YYYY-MM-DD"))}))}),(0,_.jsxs)("div",{className:"date-cal-presets",children:[(0,_.jsx)("button",{type:"button",className:"date-cal-preset",onClick:()=>r(e),children:"Today"}),(0,_.jsx)("button",{type:"button",className:"date-cal-preset",onClick:()=>r(e.subtract(1,"day")),children:"Yesterday"}),(0,_.jsx)("button",{type:"button",className:"date-cal-preset",onClick:()=>r(e.subtract(7,"day")),children:"\u22127 days"})]})]})]})})()]})]}),(0,_.jsx)("div",{id:"clock",children:We})]}),(a||"live"===C)&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{id:"strat-row",children:[(0,_.jsxs)("button",{className:"sbt ".concat("kitchens"===F?"active":""),onClick:()=>{$.A.info("View mode changed: By Location"),M("kitchens"),Wa(null),De(null),Re(null)},children:[(0,_.jsx)("span",{className:"sbt-icon",children:(0,_.jsx)(S.JFD,{})})," By Location"]}),(0,_.jsxs)("button",{className:"sbt ".concat("zones"===F?"active":""),onClick:()=>{$.A.info("View mode changed: By Zone"),M("zones"),Wa(null),De(null),Re(null)},children:[(0,_.jsx)("span",{className:"sbt-icon",children:(0,_.jsx)(S.Cd7,{})})," By Zone"]}),(0,_.jsxs)("button",{className:"sbt ".concat("riders"===F?"active":""),onClick:()=>{$.A.info("View mode changed: By Rider"),M("riders"),Wa(null),De(null),Re(null)},children:[(0,_.jsx)("span",{className:"sbt-icon",children:(0,_.jsx)(S.bsz,{})})," By Rider"]}),!a&&(0,_.jsxs)("button",{className:"sbt ".concat("all"===F?"active":""),onClick:()=>{$.A.info("View mode changed: All Active Routes"),M("all"),Wa(null),De(null),Re(null)},children:[(0,_.jsx)("span",{className:"sbt-icon",children:(0,_.jsx)(S.Zs6,{})}),"Active"]}),(0,_.jsxs)("button",{type:"button",className:"sbt sbt-profitability ".concat("profitability"===F?"active":""),onClick:()=>{$.A.info("View mode changed: Profitability"),M("profitability"),Wa(null),De(null),Re(null)},title:"View overall and rider profitability",children:[(0,_.jsx)("span",{className:"sbt-icon",children:(0,_.jsx)(S.H4F,{})})," Profitability"]}),(0,_.jsxs)("button",{type:"button",className:"sbt sbt-rider-info ".concat("rider-info"===F?"active":""),onClick:()=>{M("rider-info"),Wa(null),De(null),Re(null)},title:"Live GPS / battery / status snapshot for a rider",children:[(0,_.jsx)("span",{className:"sbt-icon",children:(0,_.jsx)(S.k4P,{})})," Rider Info"]})]}),Na&&"rider-info"!==F&&(0,_.jsxs)("div",{id:"batch-row",children:[(0,_.jsx)("span",{className:"batch-label",children:"Batch"}),(0,_.jsx)("div",{className:"batch-scroll",children:us.map((e=>{var s;const a=ja===e.id;return(0,_.jsxs)("button",{ref:a?ga:null,className:"batch-btn batch-slot ".concat(a?"active":""),onClick:()=>{fa(e.id),Wa(null),De(null),Re(null)},title:"".concat(e.label," (").concat(e.range,")"),children:[(0,_.jsx)("span",{className:"batch-btn-label",children:e.label}),(0,_.jsx)("span",{className:"batch-btn-count",children:null!==(s=Pa[e.id])&&void 0!==s?s:0})]},e.id)}))})]}),"profitability"===F?(0,_.jsx)(Y,{riders:qa,handleRiderFocus:Wa,focusedRider:Ya,totalDailyProfit:Da,selectedDate:Ts,batches:us}):"rider-info"===F?(0,_.jsxs)("div",{className:"rider-info-mode",children:[(0,_.jsxs)("div",{className:"ri-sidebar",children:[(0,_.jsxs)("div",{className:"ri-sb-head",children:[(0,_.jsx)("div",{className:"ri-sb-title",children:"Riders"}),(0,_.jsxs)("div",{className:"ri-sb-sub",children:[za.length," ",1===za.length?"rider":"riders"," today"]})]}),(0,_.jsxs)("div",{className:"ri-search",children:[(0,_.jsx)(S.gZ7,{className:"ri-search-icon"}),(0,_.jsx)("input",{type:"text",className:"ri-search-input",placeholder:"Search by name or ID",value:fs,onChange:e=>gs(e.target.value)})]}),(()=>{const e=fs.trim().toLowerCase(),s=za.filter((s=>!e||(String(s.riderName||"").toLowerCase().includes(e)||String(s.id).includes(e))));return 0===s.length?(0,_.jsx)("div",{className:"ri-empty",children:fs?'No riders match "'.concat(fs,'"'):"No riders have orders today"}):(0,_.jsx)("div",{className:"ri-rider-list",children:s.map((e=>{const s=String(xs)===String(e.id);return(0,_.jsxs)("button",{type:"button",className:"ri-rider-item ".concat(s?"active":""),onClick:()=>js(e.id),children:[(0,_.jsx)("span",{className:"ri-rider-dot",style:{background:we(e.id)}}),(0,_.jsxs)("span",{className:"ri-rider-info-block",children:[(0,_.jsx)("span",{className:"ri-rider-name",children:e.riderName}),(0,_.jsxs)("span",{className:"ri-rider-meta",children:["#",e.id]})]}),(0,_.jsx)("span",{className:"ri-rider-arrow",children:"\u2192"})]},e.id)}))})})()]}),(0,_.jsx)("div",{className:"ri-main",children:null==xs?(0,_.jsxs)("div",{className:"ri-placeholder",children:[(0,_.jsx)("div",{className:"ri-placeholder-icon",children:(0,_.jsx)(S.k4P,{})}),(0,_.jsx)("div",{className:"ri-placeholder-title",children:"Pick a rider"}),(0,_.jsx)("div",{className:"ri-placeholder-sub",children:"Select a rider from the list on the left to see their live GPS, battery, connection, and current order snapshot."})]}):(0,_.jsxs)(_.Fragment,{children:[bs&&!Ns&&(0,_.jsx)("div",{className:"ri-loading",children:"Loading rider snapshot\u2026"}),ys&&(0,_.jsxs)("div",{className:"ri-error",children:["Couldn't load this rider's log. ",(null===ks||void 0===ks?void 0:ks.message)||""]}),Ns&&(()=>{const e=Ns,s=parseFloat(e.latitude),a=parseFloat(e.longitude),t=Number.isFinite(s)&&Number.isFinite(a),i=parseInt(String(e.battery||"").replace("%",""),10),r=Number.isFinite(i)&&i<=20,n=parseFloat(e.speed),c=String(e.status||"").toLowerCase();return(0,_.jsxs)("div",{className:"ri-snapshot",children:[(0,_.jsxs)("div",{className:"ri-snap-head",children:[(0,_.jsx)("div",{className:"ri-snap-name",children:e.username||"Rider #".concat(e.userid)}),(0,_.jsxs)("div",{className:"ri-snap-meta",children:[(0,_.jsxs)("span",{children:["#",e.userid]}),e.status&&(0,_.jsx)("span",{className:"ri-status ri-status-".concat(c),children:e.status}),(0,_.jsxs)("span",{className:"ri-live ".concat(bs?"is-refetching":""),children:[(0,_.jsx)("span",{className:"ri-live-dot"}),bs?"Updating\u2026":"Live"]})]}),e.logdate&&(0,_.jsxs)("div",{className:"ri-snap-time",children:[(0,_.jsx)(S.VP9,{})," Last seen ",e.logdate]})]}),(0,_.jsxs)("div",{className:"ri-snap-grid",children:[(0,_.jsxs)("div",{className:"ri-stat ".concat(r?"ri-stat-warn":""),children:[(0,_.jsx)("div",{className:"ri-stat-icon",children:(0,_.jsx)(S.wZm,{})}),(0,_.jsxs)("div",{className:"ri-stat-body",children:[(0,_.jsx)("div",{className:"ri-stat-label",children:"Battery"}),(0,_.jsxs)("div",{className:"ri-stat-value",children:[e.battery||"\u2014",e.is_charging&&(0,_.jsx)("span",{className:"ri-stat-tag",children:"Charging"})]})]})]}),(0,_.jsxs)("div",{className:"ri-stat",children:[(0,_.jsx)("div",{className:"ri-stat-icon",children:(0,_.jsx)(S.Xh5,{})}),(0,_.jsxs)("div",{className:"ri-stat-body",children:[(0,_.jsx)("div",{className:"ri-stat-label",children:"Connection"}),(0,_.jsx)("div",{className:"ri-stat-value",children:e.connection||"\u2014"})]})]}),(0,_.jsxs)("div",{className:"ri-stat",children:[(0,_.jsx)("div",{className:"ri-stat-icon",children:(0,_.jsx)(S.HPi,{})}),(0,_.jsxs)("div",{className:"ri-stat-body",children:[(0,_.jsx)("div",{className:"ri-stat-label",children:"GPS Accuracy"}),(0,_.jsx)("div",{className:"ri-stat-value",children:e.accuracy?"".concat(e.accuracy," m"):"\u2014"})]})]}),(0,_.jsxs)("div",{className:"ri-stat",children:[(0,_.jsx)("div",{className:"ri-stat-icon",children:(0,_.jsx)(S.o8z,{})}),(0,_.jsxs)("div",{className:"ri-stat-body",children:[(0,_.jsx)("div",{className:"ri-stat-label",children:"Location Service"}),(0,_.jsx)("div",{className:"ri-stat-value",children:e.location_service||"\u2014"})]})]}),(0,_.jsxs)("div",{className:"ri-stat",children:[(0,_.jsx)("div",{className:"ri-stat-icon",children:(0,_.jsx)(S.BJM,{})}),(0,_.jsxs)("div",{className:"ri-stat-body",children:[(0,_.jsx)("div",{className:"ri-stat-label",children:"Speed"}),(0,_.jsx)("div",{className:"ri-stat-value",children:Number.isFinite(n)?"".concat(n.toFixed(2)," km/h"):"\u2014"})]})]}),(0,_.jsxs)("div",{className:"ri-stat",children:[(0,_.jsx)("div",{className:"ri-stat-icon",children:(0,_.jsx)(S.bqQ,{})}),(0,_.jsxs)("div",{className:"ri-stat-body",children:[(0,_.jsx)("div",{className:"ri-stat-label",children:"Heading"}),(0,_.jsx)("div",{className:"ri-stat-value",children:null!=e.heading?"".concat(e.heading,"\xb0"):"\u2014"})]})]}),(0,_.jsxs)("div",{className:"ri-stat",children:[(0,_.jsx)("div",{className:"ri-stat-icon",children:(0,_.jsx)(S.pSF,{})}),(0,_.jsxs)("div",{className:"ri-stat-body",children:[(0,_.jsx)("div",{className:"ri-stat-label",children:"App State"}),(0,_.jsx)("div",{className:"ri-stat-value",children:e.is_background?"Background":"Foreground"})]})]}),(0,_.jsxs)("div",{className:"ri-stat",children:[(0,_.jsx)("div",{className:"ri-stat-icon",children:(0,_.jsx)(S.gsJ,{})}),(0,_.jsxs)("div",{className:"ri-stat-body",children:[(0,_.jsx)("div",{className:"ri-stat-label",children:"Current Order"}),(0,_.jsx)("div",{className:"ri-stat-value",children:e.orderid||"\u2014"})]})]})]}),t&&(0,_.jsxs)("div",{className:"ri-map-section",children:[(0,_.jsxs)("div",{className:"ri-coords-label",children:[(0,_.jsx)(S.gwi,{})," ",s.toFixed(6),", ",a.toFixed(6)]}),(0,_.jsx)("div",{className:"ri-map",children:(0,_.jsxs)(d.W,{center:[s,a],zoom:13,scrollWheelZoom:!1,style:{height:"100%",width:"100%"},children:[(0,_.jsx)(o.e,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:"\xa9 OpenStreetMap contributors"}),(0,_.jsxs)(l.p,{position:[s,a],children:[(0,_.jsx)(u.m,{direction:"top",offset:[0,-10],permanent:!0,className:"ri-area-banner",children:(null===_s||void 0===_s?void 0:_s.area)||"Locating area\u2026"}),(0,_.jsxs)(m.z,{children:[(0,_.jsx)("div",{style:{fontWeight:700,marginBottom:2},children:e.username||"Rider #".concat(e.userid)}),(null===_s||void 0===_s?void 0:_s.area)&&(0,_.jsx)("div",{style:{fontSize:12,color:"#0f172a",marginBottom:4},children:_s.area}),(0,_.jsx)("div",{style:{fontSize:11,color:"#64748b"},children:e.logdate?"Last seen ".concat(e.logdate):"".concat(s.toFixed(6),", ").concat(a.toFixed(6))})]})]})]},"".concat(e.userid,"-").concat(s,"-").concat(a))})]})]})})()]})})]}):(0,_.jsxs)("div",{id:"body",className:"".concat(ia?"sidebar-collapsed":""," ").concat(Gs?"compare-mode":""," ").concat(Gs&&ca?"compare-data-collapsed":"").trim(),children:[(0,_.jsx)("button",{type:"button",className:"sidebar-toggle-tab".concat(ia?" is-collapsed":""),onClick:()=>ra((e=>!e)),title:ia?"Show sidebar":"Hide sidebar","aria-label":ia?"Show sidebar":"Hide sidebar",children:ia?(0,_.jsx)(S.xVu,{}):(0,_.jsx)(S.E_E,{})}),Gs&&Ya&&(0,_.jsx)("button",{type:"button",className:"compare-data-toggle-tab".concat(ca?" is-collapsed":""),onClick:()=>da((e=>!e)),title:ca?"Show details panel":"Hide details panel","aria-label":ca?"Show details panel":"Hide details panel",children:ca?(0,_.jsx)(S.E_E,{}):(0,_.jsx)(S.xVu,{})}),(0,_.jsxs)("div",{id:"sidebar",children:[!Ya&&(0,_.jsxs)("div",{className:"sb-header",children:[(0,_.jsxs)("div",{className:"sb-header-top",children:[(0,_.jsxs)("div",{className:"sb-header-title",children:[(0,_.jsx)("span",{className:"sb-title-bar","aria-hidden":"true"}),(0,_.jsx)("span",{className:"sb-title-text",children:"RIDER DISPATCH"})]}),(0,_.jsxs)("span",{className:"sb-header-scope",title:Qa.label,children:[(0,_.jsx)("span",{className:"sb-scope-dot"}),Qa.label]})]}),(0,_.jsxs)("div",{className:"sb-header-tiles",children:[(0,_.jsxs)("div",{className:"sb-tile sb-tile-orders",children:[(0,_.jsx)("span",{className:"sb-tile-icon",children:(0,_.jsx)(S.gsJ,{})}),(0,_.jsxs)("div",{className:"sb-tile-body",children:[(0,_.jsx)("div",{className:"sb-tile-value",children:Qa.orders}),(0,_.jsx)("div",{className:"sb-tile-label",children:1===Qa.orders?"Order":"Orders"})]})]}),(0,_.jsxs)("div",{className:"sb-tile sb-tile-riders",children:[(0,_.jsx)("span",{className:"sb-tile-icon",children:(0,_.jsx)(S.aVM,{})}),(0,_.jsxs)("div",{className:"sb-tile-body",children:[(0,_.jsx)("div",{className:"sb-tile-value",children:Qa.riders}),(0,_.jsx)("div",{className:"sb-tile-label",children:1===Qa.riders?"Rider":"Riders"})]})]})]})]}),Ya&&!Ha||Ee?(0,_.jsxs)("div",{id:"route-detail",children:[(0,_.jsxs)("button",{className:"rd-back",onClick:()=>{Wa(null),De(null)},children:["\u2190 Back to ",Le?Le.name:"list"]}),Ya?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"rd-rider-name",style:{color:Ya.color},children:Ya.riderName}),(()=>{const e=Ya.orders.reduce(((e,s)=>e+parseFloat(s.actualkms||0)),0),s=Ya.orders.reduce(((e,s)=>e+parseFloat(s.riderkms||0)),0);return(0,_.jsxs)("div",{className:"rd-stats-grid",children:[(0,_.jsxs)("div",{className:"rd-stat rd-stat-orders",children:[(0,_.jsx)("div",{className:"rd-stat-icon",children:(0,_.jsx)(S.gsJ,{})}),(0,_.jsx)("div",{className:"rd-stat-value",children:Ya.orders.length}),(0,_.jsx)("div",{className:"rd-stat-label",children:"Orders"})]}),(0,_.jsxs)("div",{className:"rd-stat rd-stat-distance",children:[(0,_.jsx)("div",{className:"rd-stat-icon",children:(0,_.jsx)(S.xI$,{})}),(0,_.jsxs)("div",{className:"rd-stat-value",children:[e.toFixed(1),(0,_.jsx)("span",{className:"rd-stat-unit",children:"km"})]}),(0,_.jsx)("div",{className:"rd-stat-label",children:"Actual KMs"})]}),(0,_.jsxs)("div",{className:"rd-stat rd-stat-distance",children:[(0,_.jsx)("div",{className:"rd-stat-icon",children:(0,_.jsx)(S.xI$,{})}),(0,_.jsxs)("div",{className:"rd-stat-value",children:[s.toFixed(1),(0,_.jsx)("span",{className:"rd-stat-unit",children:"km"})]}),(0,_.jsx)("div",{className:"rd-stat-label",children:"Trip KMs"})]})]})})(),(()=>{const e={};Ya.orders.forEach((s=>{const a=s.trip_number||1;e[a]||(e[a]=[]),e[a].push(s)}));const s=[...Ya.orders].sort(((e,s)=>{const a=e.trip_number||1,t=s.trip_number||1;return a!==t?a-t:(e.step||0)-(s.step||0)})).find((e=>{const s=String(e.orderstatus||"").toLowerCase();return!V.Ys.has(s)&&!V.yP.has(s)})),a=s?s.orderid:null,t=e=>{const s=e.deliverytime||e.expecteddeliverytime;if(!s)return Number.MAX_SAFE_INTEGER;const a=f()(s);return a.isValid()?a.valueOf():Number.MAX_SAFE_INTEGER},i="time"===Oe;let n=null;return Object.entries(e).sort(((e,s)=>{let[a]=e,[t]=s;return Number(a)-Number(t)})).map((e=>{let[s,l]=e;const c=i?[...l].sort(((e,s)=>{const a=t(e)-t(s);return 0!==a?a:(e.step||0)-(s.step||0)})):l;return(0,_.jsxs)("div",{className:"trip-block",children:[(0,_.jsxs)("div",{className:"trip-header",style:{background:"".concat(Ya.color,"12"),borderColor:"".concat(Ya.color,"30")},children:[(0,_.jsxs)("span",{className:"th-badge",style:{background:Ya.color},children:["Trip ",s]}),(0,_.jsxs)("span",{className:"trip-stats",children:[(0,_.jsxs)("span",{children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.gwi,{})}),l.length," stops"]}),(0,_.jsxs)("span",{children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.xI$,{})}),l.reduce(((e,s)=>e+parseFloat(s.actualkms||s.kms||0)),0).toFixed(1)," km"]})]}),(0,_.jsxs)("div",{className:"trip-sort-toggle",role:"group","aria-label":"Sort stops by","data-mode":i?"time":"planned",children:[(0,_.jsxs)("button",{type:"button",className:"trip-sort-pill ".concat(i?"":"is-active"),"aria-pressed":!i,onClick:()=>Te("planned"),title:"Sort stops by planned step (dispatched order)",children:[(0,_.jsx)(S.EgJ,{"aria-hidden":"true"}),(0,_.jsx)("span",{children:"Planned"})]}),(0,_.jsxs)("button",{type:"button",className:"trip-sort-pill ".concat(i?"is-active":""),"aria-pressed":i,onClick:()=>Te("time"),title:"Sort stops by completion time (which delivery was done first)",children:[(0,_.jsx)(S.VP9,{"aria-hidden":"true"}),(0,_.jsx)("span",{children:"By time"})]})]})]}),(0,_.jsx)("div",{className:"zone-order-grid",children:c.map(((e,t)=>{const l=(e.kitchen_key||e.pickupcustomer||"Unknown").toLowerCase().trim(),c=null!==n&&l!==n;n=l;const d=qe&&qe.orderid===e.orderid,o=a&&e.orderid===a,u=parseFloat(e.droplat||e.deliverylat),m=parseFloat(e.droplon||e.deliverylong),p=Number.isFinite(u)&&Number.isFinite(m),h=(0,V.Cx)(e.orderstatus),v=parseFloat(e.profit||0),x=v<0,f=pt(Ya.id,e),g=e.step||t+1,N=i&&!e.deliverytime;return(0,_.jsxs)(r.Fragment,{children:[c&&(0,_.jsxs)("div",{className:"kitchen-transition",children:[(0,_.jsx)("span",{className:"kt-ico",children:(0,_.jsx)(S.$G1,{})})," Switch to ",(0,_.jsx)("strong",{children:e.pickupcustomer})]}),(0,_.jsxs)("div",{className:"zone-order-card ".concat(p?"clickable":""," ").concat(d?"active":""," ").concat(o?"going-on":""," ").concat(N?"is-pending-time":""),role:p?"button":void 0,tabIndex:p?0:void 0,onClick:p?()=>Ie(d?null:{orderid:e.orderid,lat:u,lon:m}):void 0,onKeyDown:p?s=>{"Enter"!==s.key&&" "!==s.key||(s.preventDefault(),Ie(d?null:{orderid:e.orderid,lat:u,lon:m}))}:void 0,title:p?d?"Click to show full trip":"Show ".concat(e.deliverycustomer||"order #".concat(e.orderid)," on map"):void 0,children:[(0,_.jsxs)("div",{className:"zone-order-card-head",children:[(0,_.jsx)("div",{className:"zone-order-num",title:"Planned step ".concat(e.step||t+1),children:g}),(0,_.jsx)("div",{className:"zone-order-id-block",children:(0,_.jsxs)("div",{className:"zone-order-id",children:["Order #",e.orderid]})}),(()=>{const s=be(e.deliverytime),a=be(e.expecteddeliverytime),t=!V.Ys.has(String(e.orderstatus||"").toLowerCase())&&null!==f;return e.orderstatus||s||a||t?(0,_.jsxs)("div",{className:"zone-order-status-stack",children:[e.orderstatus&&(0,_.jsx)("span",{className:"zone-order-status",style:{background:h.bg,color:h.fg},children:h.label}),(s||a)&&(0,_.jsxs)("span",{className:"zone-order-time ".concat(s?"":"is-expected"),title:s?"Delivered at ".concat(s):"Expected at ".concat(a),children:[(0,_.jsx)(S.VP9,{}),s||a]}),t&&(0,_.jsxs)("span",{className:"zone-order-est-drop",title:"Estimated distance to drop location",children:[(0,_.jsx)(S.HPi,{}),ht(f)]})]}):null})(),j&&(0,_.jsx)("button",{type:"button",className:"zone-order-change-rider",title:"Change rider",onClick:s=>{s.stopPropagation(),j(e,Ya)},children:(0,_.jsx)(S.$G1,{})})]}),(0,_.jsxs)("div",{className:"zone-order-customer",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.u9F,{})}),e.deliverycustomer||"\u2014"]}),e.pickupcustomer&&(0,_.jsxs)("div",{className:"zone-order-line",title:"Kitchen: ".concat(e.pickupcustomer),children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.NtI,{})}),e.pickupcustomer]}),(e.deliverysuburb||e.deliveryaddress)&&(0,_.jsxs)("div",{className:"zone-order-line",title:e.deliveryaddress||e.deliverysuburb,children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.gwi,{})}),e.deliverysuburb||se(e.deliveryaddress)]}),e.ordernotes&&(0,_.jsxs)("div",{className:"zone-order-line zone-order-notes",title:e.ordernotes,children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.dKO,{})}),e.ordernotes]}),(0,_.jsxs)("div",{className:"zone-order-stats",children:[(0,_.jsxs)("span",{className:"zone-order-chip",title:"Distance",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.xI$,{})}),e.actualkms||e.kms||0," km"]}),(0,_.jsxs)("span",{className:"zone-order-chip ".concat(x?"is-loss":"is-profit"),title:"Profit",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.ohY,{})}),x?"-":"","\u20b9",Math.abs(v).toFixed(0)]}),null!=e.deliverycharge&&(0,_.jsxs)("span",{className:"zone-order-chip",title:"Delivery charge",children:["\u20b9",parseFloat(e.deliverycharge).toFixed(0)," chg"]}),e.ordertype&&(0,_.jsx)("span",{className:"zone-order-chip zone-order-type type-".concat(String(e.ordertype).toLowerCase()),children:e.ordertype}),(0,_.jsxs)("span",{className:"zone-order-chip zone-order-trip",children:["T",e.trip_number||s," \xb7 S",e.step||t+1]})]})]})]},e.orderid)}))})]},s)}))})()]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"rd-rider-name",style:{color:"#f59e0b"},children:Ee.kitchenName}),(0,_.jsxs)("div",{className:"rd-rider-sub",children:[(0,_.jsxs)("span",{children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.gsJ,{})}),Ee.orders.length," orders"]}),(0,_.jsxs)("span",{children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.aVM,{})}),Ee.riders.size," riders"]})]}),(0,_.jsxs)("div",{className:"zone-detail-section",children:[(0,_.jsxs)("div",{className:"zone-section-label",children:["Orders ",(0,_.jsxs)("span",{className:"section-count",children:["(",Ee.orders.length,")"]})]}),0===Ee.orders.length?(0,_.jsx)("div",{className:"zone-suburb-panel-empty",children:"No orders for this kitchen."}):(0,_.jsx)("div",{className:"zone-order-grid",children:Ee.orders.map(((e,s)=>{const a=parseFloat(e.droplat||e.deliverylat),t=parseFloat(e.droplon||e.deliverylong),i=Number.isFinite(a)&&Number.isFinite(t),r=qe&&qe.orderid===e.orderid,n=(0,V.Cx)(e.orderstatus),l=parseFloat(e.profit||0),c=l<0,d=e.rider_id||e.userid,o=d?qa.find((e=>String(e.id)===String(d))):null,u=(()=>{if(!o)return null;const e=[...o.orders].sort(((e,s)=>{const a=e.trip_number||1,t=s.trip_number||1;return a!==t?a-t:(e.step||0)-(s.step||0)})).find((e=>{const s=String(e.orderstatus||"").toLowerCase();return!V.Ys.has(s)&&!V.yP.has(s)}));return e?e.orderid:null})(),m=u&&e.orderid===u,p=d?pt(d,e):null;return(0,_.jsxs)("div",{className:"zone-order-card ".concat(i?"clickable":""," ").concat(r?"active":""," ").concat(m?"going-on":""),role:i?"button":void 0,tabIndex:i?0:void 0,onClick:i?()=>Ie(r?null:{orderid:e.orderid,lat:a,lon:t}):void 0,children:[(0,_.jsxs)("div",{className:"zone-order-card-head",children:[(0,_.jsx)("div",{className:"zone-order-num",children:e.step||s+1}),(0,_.jsxs)("div",{className:"zone-order-id-block",children:[(0,_.jsxs)("div",{className:"zone-order-id",children:["Order #",e.orderid]}),(0,_.jsxs)("div",{className:"zone-order-rider",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.aVM,{})}),e.rider_name||e.ridername||"Unassigned"]})]}),(()=>{const s=be(e.deliverytime),a=be(e.expecteddeliverytime),t=!V.Ys.has(String(e.orderstatus||"").toLowerCase())&&null!==p;return e.orderstatus||s||a||t?(0,_.jsxs)("div",{className:"zone-order-status-stack",children:[e.orderstatus&&(0,_.jsx)("span",{className:"zone-order-status",style:{background:n.bg,color:n.fg},children:n.label}),(s||a)&&(0,_.jsxs)("span",{className:"zone-order-time ".concat(s?"":"is-expected"),title:s?"Delivered at ".concat(s):"Expected at ".concat(a),children:[(0,_.jsx)(S.VP9,{}),s||a]}),t&&(0,_.jsxs)("span",{className:"zone-order-est-drop",title:"Estimated distance to drop location",children:[(0,_.jsx)(S.HPi,{}),ht(p)]})]}):null})()]}),(0,_.jsxs)("div",{className:"zone-order-customer",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.u9F,{})}),e.deliverycustomer||"\u2014"]}),e.pickupcustomer&&(0,_.jsxs)("div",{className:"zone-order-line",title:"Kitchen: ".concat(e.pickupcustomer),children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.NtI,{})}),e.pickupcustomer]}),(e.deliverysuburb||e.deliveryaddress)&&(0,_.jsxs)("div",{className:"zone-order-line",title:e.deliveryaddress||e.deliverysuburb,children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.gwi,{})}),e.deliverysuburb||se(e.deliveryaddress)]}),e.ordernotes&&(0,_.jsxs)("div",{className:"zone-order-line zone-order-notes",title:e.ordernotes,children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.dKO,{})}),e.ordernotes]}),(0,_.jsxs)("div",{className:"zone-order-stats",children:[(0,_.jsxs)("span",{className:"zone-order-chip",title:"Distance",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.xI$,{})}),e.actualkms||e.kms||0," km"]}),(0,_.jsxs)("span",{className:"zone-order-chip ".concat(c?"is-loss":"is-profit"),title:"Profit",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.ohY,{})}),c?"-":"","\u20b9",Math.abs(l).toFixed(0)]}),null!=e.deliverycharge&&(0,_.jsxs)("span",{className:"zone-order-chip",title:"Delivery charge",children:["\u20b9",parseFloat(e.deliverycharge).toFixed(0)," chg"]}),e.ordertype&&(0,_.jsx)("span",{className:"zone-order-chip zone-order-type type-".concat(String(e.ordertype).toLowerCase()),children:e.ordertype}),(0,_.jsxs)("span",{className:"zone-order-chip zone-order-trip",children:["T",e.trip_number||"-"," \xb7 S",e.step||s+1]})]})]},e.orderid)}))})]})]})]}):Le?(0,_.jsxs)("div",{id:"route-detail",children:[(0,_.jsx)("button",{className:"rd-back",onClick:()=>Re(null),children:"\u2190 Back to zones"}),(0,_.jsx)("div",{className:"rd-rider-name",style:{color:"#3b82f6"},children:Le.name}),(0,_.jsx)("div",{className:"rd-rider-sub",children:(0,_.jsxs)("span",{children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.gsJ,{})}),Le.totalOrders," ",1===Le.totalOrders?"order":"orders"]})}),(0,_.jsxs)("div",{className:"zone-detail-section",children:[(0,_.jsxs)("div",{className:"zone-section-label",children:["Orders ",(0,_.jsxs)("span",{className:"section-count",children:["(",Le.orders.length,")"]})]}),0===Le.orders.length?(0,_.jsx)("div",{className:"zone-suburb-panel-empty",children:"No orders in this zone."}):(0,_.jsx)("div",{className:"zone-order-grid",children:Le.orders.map(((e,s)=>{const a=parseFloat(e.droplat||e.deliverylat),t=parseFloat(e.droplon||e.deliverylong),i=Number.isFinite(a)&&Number.isFinite(t),r=qe&&qe.orderid===e.orderid,n=(0,V.Cx)(e.orderstatus),l=parseFloat(e.profit||0),c=l<0,d=e.rider_id||e.userid,o=d?qa.find((e=>String(e.id)===String(d))):null,u=(()=>{if(!o)return null;const e=[...o.orders].sort(((e,s)=>{const a=e.trip_number||1,t=s.trip_number||1;return a!==t?a-t:(e.step||0)-(s.step||0)})).find((e=>{const s=String(e.orderstatus||"").toLowerCase();return!V.Ys.has(s)&&!V.yP.has(s)}));return e?e.orderid:null})(),m=u&&e.orderid===u,p=d?pt(d,e):null;return(0,_.jsxs)("div",{className:"zone-order-card ".concat(i?"clickable":""," ").concat(r?"active":""," ").concat(m?"going-on":""),role:i?"button":void 0,tabIndex:i?0:void 0,onClick:i?()=>Ie(r?null:{orderid:e.orderid,lat:a,lon:t}):void 0,children:[(0,_.jsxs)("div",{className:"zone-order-card-head",children:[(0,_.jsx)("div",{className:"zone-order-num",children:e.step||s+1}),(0,_.jsxs)("div",{className:"zone-order-id-block",children:[(0,_.jsxs)("div",{className:"zone-order-id",children:["Order #",e.orderid]}),(0,_.jsxs)("div",{className:"zone-order-rider",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.aVM,{})}),e.rider_name||e.ridername||"Unassigned"]})]}),(()=>{const s=be(e.deliverytime),a=be(e.expecteddeliverytime),t=!V.Ys.has(String(e.orderstatus||"").toLowerCase())&&null!==p;return e.orderstatus||s||a||t?(0,_.jsxs)("div",{className:"zone-order-status-stack",children:[e.orderstatus&&(0,_.jsx)("span",{className:"zone-order-status",style:{background:n.bg,color:n.fg},children:n.label}),(s||a)&&(0,_.jsxs)("span",{className:"zone-order-time ".concat(s?"":"is-expected"),title:s?"Delivered at ".concat(s):"Expected at ".concat(a),children:[(0,_.jsx)(S.VP9,{}),s||a]}),t&&(0,_.jsxs)("span",{className:"zone-order-est-drop",title:"Estimated distance to drop location",children:[(0,_.jsx)(S.HPi,{}),ht(p)]})]}):null})()]}),(0,_.jsxs)("div",{className:"zone-order-customer",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.u9F,{})}),e.deliverycustomer||"\u2014"]}),e.pickupcustomer&&(0,_.jsxs)("div",{className:"zone-order-line",title:"Kitchen: ".concat(e.pickupcustomer),children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.NtI,{})}),e.pickupcustomer]}),(e.deliverysuburb||e.deliveryaddress)&&(0,_.jsxs)("div",{className:"zone-order-line",title:e.deliveryaddress||e.deliverysuburb,children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.gwi,{})}),e.deliverysuburb||se(e.deliveryaddress)]}),e.ordernotes&&(0,_.jsxs)("div",{className:"zone-order-line zone-order-notes",title:e.ordernotes,children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.dKO,{})}),e.ordernotes]}),(0,_.jsxs)("div",{className:"zone-order-stats",children:[(0,_.jsxs)("span",{className:"zone-order-chip",title:"Distance",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.xI$,{})}),e.actualkms||e.kms||0," km"]}),(0,_.jsxs)("span",{className:"zone-order-chip ".concat(c?"is-loss":"is-profit"),title:"Profit",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.ohY,{})}),c?"-":"","\u20b9",Math.abs(l).toFixed(0)]}),null!=e.deliverycharge&&(0,_.jsxs)("span",{className:"zone-order-chip",title:"Delivery charge",children:["\u20b9",parseFloat(e.deliverycharge).toFixed(0)," chg"]}),e.ordertype&&(0,_.jsx)("span",{className:"zone-order-chip zone-order-type type-".concat(String(e.ordertype).toLowerCase()),children:e.ordertype}),(0,_.jsxs)("span",{className:"zone-order-chip zone-order-trip",children:["T",e.trip_number||"-"," \xb7 S",e.step||s+1]})]})]},e.orderid)}))})]})]}):(0,_.jsxs)("div",{id:"riders-panel",children:[!(Ha&&0===Ja)&&(0,_.jsx)("div",{className:"ph",children:"zones"===F?"Zone dispatch":"kitchens"===F?"Kitchen dispatch":Ha?"Active rider dispatch":"Rider dispatch"}),(0,_.jsx)("div",{id:"rider-cards",children:0!==Oa.length||ka?"zones"===F?Ra.map(((e,s)=>{const a=e.statusCounts.delivered||0,t=e.totalProfit<0;return(0,_.jsxs)("div",{className:"rcard zone-card",onClick:()=>Re(e),style:{animationDelay:"".concat(.05*s,"s")},children:[(0,_.jsxs)("div",{className:"zone-card-header",children:[(0,_.jsx)("div",{className:"zone-card-emoji",children:(0,_.jsx)(S.Cd7,{})}),(0,_.jsxs)("div",{className:"zone-card-titles",children:[(0,_.jsx)("div",{className:"zone-card-name",children:e.name}),(0,_.jsxs)("div",{className:"zone-card-sub",children:[e.activeRidersCount," ",1===e.activeRidersCount?"rider":"riders"," \xb7 ",e.totalOrders," ",1===e.totalOrders?"order":"orders"]})]}),(0,_.jsx)("span",{className:"zone-card-arrow","aria-hidden":"true",children:"\u2192"})]}),e.totalOrders>0&&(0,_.jsxs)("div",{className:"zone-progress-row",children:[(0,_.jsx)("div",{className:"zone-status-bar",title:Object.entries(e.statusCounts).map((e=>{let[s,a]=e;return"".concat((0,V.Cx)(s).label,": ").concat(a)})).join(" \xb7 "),children:Object.entries(e.statusCounts).map((s=>{let[a,t]=s;const i=(0,V.Cx)(a),r=t/e.totalOrders*100;return(0,_.jsx)("div",{className:"zone-status-seg",style:{width:"".concat(r,"%"),background:i.bg}},a)}))}),(0,_.jsxs)("div",{className:"zone-progress-label",children:[a,"/",e.totalOrders]})]}),(0,_.jsxs)("div",{className:"zone-stat-pills",children:[(0,_.jsxs)("span",{className:"zone-stat-pill",title:"Areas covered",children:[(0,_.jsx)("span",{className:"zone-stat-icon",children:(0,_.jsx)(S.gwi,{})}),(0,_.jsx)("span",{className:"zone-stat-value",children:e.suburbs.length}),(0,_.jsx)("span",{className:"zone-stat-label",children:1===e.suburbs.length?"area":"areas"})]}),(0,_.jsxs)("span",{className:"zone-stat-pill",title:"Total distance",children:[(0,_.jsx)("span",{className:"zone-stat-icon",children:(0,_.jsx)(S.xI$,{})}),(0,_.jsx)("span",{className:"zone-stat-value",children:e.totalKms.toFixed(1)}),(0,_.jsx)("span",{className:"zone-stat-label",children:"km"})]}),(0,_.jsxs)("span",{className:"zone-stat-pill",title:"Kitchens",children:[(0,_.jsx)("span",{className:"zone-stat-icon",children:(0,_.jsx)(S.NtI,{})}),(0,_.jsx)("span",{className:"zone-stat-value",children:e.kitchens.length}),(0,_.jsx)("span",{className:"zone-stat-label",children:1===e.kitchens.length?"kitchen":"kitchens"})]}),(0,_.jsxs)("span",{className:"zone-stat-pill ".concat(t?"profit-negative":"profit-positive"),title:"Total profit",children:[(0,_.jsx)("span",{className:"zone-stat-icon",children:(0,_.jsx)(S.ohY,{})}),(0,_.jsx)("span",{className:"zone-stat-value",children:t?"-\u20b9".concat(Math.abs(e.totalProfit).toFixed(0)):"\u20b9".concat(e.totalProfit.toFixed(0))})]})]}),e.suburbs.length>0&&(0,_.jsxs)("div",{className:"zone-card-suburbs",children:[(0,_.jsx)("span",{className:"zone-card-suburbs-text",children:e.suburbs.slice(0,3).map((e=>e.name)).join(" \xb7 ")}),e.suburbs.length>3&&(0,_.jsxs)("span",{className:"zone-card-suburbs-more",children:["+",e.suburbs.length-3]})]})]},e.id)})):"kitchens"===F?Ia.map(((e,s)=>(0,_.jsxs)("div",{className:"rcard",onClick:()=>De(e),style:{animationDelay:"".concat(.05*s,"s")},children:[(0,_.jsxs)("div",{className:"rcard-top",children:[(0,_.jsx)("div",{className:"rcard-emo",style:{background:"#f59e0b18",borderColor:"#f59e0b50",color:"#f59e0b"},children:(0,_.jsx)(S.NtI,{})}),(0,_.jsxs)("div",{className:"rcard-info",children:[(0,_.jsx)("div",{className:"rcard-name",children:e.kitchenName}),(0,_.jsxs)("div",{className:"rcard-zone",children:[e.riders.size," riders \xb7 ",(0,_.jsx)(Ce,{children:(0,_.jsx)(S.ohY,{})}),"\u20b9",e.orders.reduce(((e,s)=>e+parseFloat(s.profit||0)),0).toFixed(0)]})]}),(0,_.jsx)("div",{className:"rcard-badge",style:{background:"#f59e0b18",color:"#f59e0b"},children:e.orders.length})]}),(0,_.jsx)("div",{className:"bar-bg",children:(0,_.jsx)("div",{className:"bar-fg",style:{width:"".concat(Math.min(100,e.orders.length/20*100),"%"),background:"#f59e0b"}})}),(0,_.jsxs)("div",{className:"rcard-meta",children:[(0,_.jsxs)("span",{children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.xI$,{})}),e.orders.reduce(((e,s)=>e+parseFloat(s.actualkms||s.kms||0)),0).toFixed(1)," km"]}),(0,_.jsxs)("span",{children:[e.riders.size," riders"]})]}),(0,_.jsx)("div",{className:"step-ids",children:Array.from(e.riders).slice(0,10).map((e=>{var s;return(0,_.jsx)("span",{className:"step-id",style:{color:mt(e)},children:null===(s=qa.find((s=>s.id===e)))||void 0===s?void 0:s.riderName.split(" ")[0]},e)}))})]},e.id))):Ha?(0,_.jsx)(B,{visibleRiders:Ua,riders:qa,focusedStop:qe,handleRiderFocus:Wa,setFocusedStop:Ie,calculateEstMeters:pt,getRiderColor:mt,formatMeters:ht,isLoading:Na&&ka&&0===Ua.length},"".concat(Ts,"-").concat(Qe,"-").concat(ja)):Ba.map(((e,s)=>{var a;const t=e.orders.length,i=e.orders.filter((e=>V.Ys.has(String(e.orderstatus||"").toLowerCase()))).length,r=t>0&&i>=t,n=e.orders.find((e=>{const s=String(e.orderstatus||"").toLowerCase();return!V.Ys.has(s)&&!V.yP.has(s)})),l=n?pt(e.id,n):null;return(0,_.jsxs)("div",{className:"rcard",onClick:()=>Wa(e),style:{animationDelay:"".concat(.05*s,"s"),borderLeft:"3px solid ".concat(e.color)},children:[(0,_.jsxs)("div",{className:"rcard-top",children:[(0,_.jsx)("div",{className:"rcard-emo",style:{background:"#f1f5f9",borderColor:"#e2e8f0",color:"#64748b"},children:(0,_.jsx)(S.aVM,{})}),(0,_.jsxs)("div",{className:"rcard-info",children:[(0,_.jsx)("div",{className:"rcard-name",children:e.riderName}),(0,_.jsxs)("div",{className:"rcard-zone",children:[(null===(a=e.orders[0])||void 0===a?void 0:a.zone_name)||ws||"Local"," \xb7 ",new Set(e.orders.map((e=>e.trip_number||1))).size," trips"]})]}),(0,_.jsxs)("div",{className:"rcard-badge ".concat(r?"is-done":""),style:r?void 0:{background:"#f1f5f9",color:"#475569"},title:"".concat(i," delivered of ").concat(t," total"),children:[i,"/",t]})]}),(0,_.jsx)("div",{className:"bar-bg",children:(0,_.jsx)("div",{className:"bar-fg",style:{width:"".concat(Math.min(100,t/15*100),"%"),background:e.color}})}),(0,_.jsxs)("div",{className:"rcard-meta",children:[(0,_.jsxs)("span",{children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.xI$,{})}),e.orders.reduce(((e,s)=>e+parseFloat(s.actualkms||s.kms||0)),0).toFixed(1)," km"]}),null!==l&&(0,_.jsxs)("span",{className:"rcard-est-meters",title:"Estimated distance to next drop location",children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.HPi,{})}),ht(l)," to drop"]}),(0,_.jsxs)("span",{children:[(0,_.jsx)(Ce,{children:(0,_.jsx)(S.ohY,{})}),"\u20b9",e.orders.reduce(((e,s)=>e+parseFloat(s.profit||0)),0).toFixed(0)]})]}),(0,_.jsx)("div",{className:"step-ids",children:e.orders.slice(0,15).map((e=>(0,_.jsxs)("span",{className:"step-id",children:["S",e.step]},e.orderid)))})]},e.id)})):(e=>{const s=null===(e=us.find((e=>e.id===ja)))||void 0===e?void 0:e.label,a=Na&&Aa.length>0;return(0,_.jsxs)("div",{className:"empty-slot",children:[(0,_.jsx)("div",{className:"empty-slot-icon",children:(0,_.jsx)(S.gsJ,{})}),(0,_.jsx)("div",{className:"empty-slot-title",children:s?"No orders in ".concat(s):"No orders"}),(0,_.jsx)("div",{className:"empty-slot-sub",children:a?"".concat(Aa.length," order").concat(1===Aa.length?"":"s"," exist in other slots today"):"No deliveries found for this date"})]})})()})]})]}),(0,_.jsxs)("div",{id:"map-wrap",className:"".concat("kitchens"===F?"view-mode-kitchens":""," ").concat(Gs?"compare-split":"").trim(),children:[(0,_.jsxs)(d.W,{center:[11.022,76.982],zoom:12,scrollWheelZoom:!0,style:{height:"100%",width:"100%"},zoomControl:!1,renderer:pa.current,inertia:!0,inertiaDeceleration:2400,inertiaMaxSpeed:2e3,wheelDebounceTime:20,wheelPxPerZoomLevel:80,zoomSnap:.25,children:[(0,_.jsx)(o.e,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:"\xa9 OpenStreetMap contributors"}),(0,_.jsx)(p.p,{position:"bottomright"}),Gs&&(0,_.jsx)(xe,{targetRef:ma}),(0,_.jsx)(je,{trigger:"".concat(ia,"|").concat(Gs,"|").concat(ca)}),(0,_.jsx)(Fe,{focusedItem:lt||(Ya||Ee)&&qe||Ya||Ee||Le,viewMode:F,orders:Va,kitchens:Ia,locationKey:Qe,extraPoints:Ga}),Ia.filter((e=>Number.isFinite(e.lat)&&Number.isFinite(e.lon))).filter((e=>!Ya||e.riders.has(Ya.id))).map(((e,s)=>(0,_.jsx)(l.p,{position:[e.lat,e.lon],icon:ut(e.kitchenName,(null===Ee||void 0===Ee?void 0:Ee.id)===e.id),zIndexOffset:(null===Ee||void 0===Ee?void 0:Ee.id)===e.id?4e3:2e3,eventHandlers:{click:()=>De(e),mouseover:e=>e.target.openPopup(),mouseout:e=>e.target.closePopup()},children:(0,_.jsxs)(m.z,{className:"kitchen-popup",maxWidth:220,minWidth:200,autoPan:!0,autoPanPadding:[20,20],children:[(0,_.jsx)("div",{className:"kp-header",children:"KITCHEN"}),(0,_.jsx)("div",{className:"kp-name",children:e.kitchenName}),(0,_.jsxs)("div",{className:"kp-stat",children:[(0,_.jsx)("span",{className:"kp-stat-lbl",children:"Orders"}),(0,_.jsx)("span",{className:"kp-stat-val",children:e.orders.length})]})]})},"k-".concat(s)))),(()=>{if(Gs&&Ya&&"actual"===Ws)return null;let e=Oa;Le&&(e=Le.orders),Ee&&(e=Ee.orders),Ya&&(e=Ya.orders),e=e.filter(ae);const s=Gs&&Ya?new Map(at.map((e=>[String(e.deliveryid),e.sequenceStep]))):null;return e.map(((a,t)=>{const i=a.rider_id,r=!i||G.has(i);let n,c=mt(i);if(s&&i===Ya.id&&null!=a.deliveryid){const e=s.get(String(a.deliveryid));e&&(c=(0,V.gM)(e-1),n=e)}const d=!!Ya||!!Ee,o=(0,V.Cx)(a.orderstatus),u="delivered"===String(a.orderstatus||"").toLowerCase(),m=x&&String(x)===String(a.orderid),p=a.orderstatus?'\n \n \n ').concat(u?'':"","\n "):"",h=d?(()=>{const s=n||a.step||e.indexOf(a)+1,t=32;return v().divIcon({className:"",iconSize:[t,t],iconAnchor:[16,16],popupAnchor:[0,-28],html:'
9?12:14,"px;opacity:").concat(r?1:.75,'">').concat(s>0?s:"").concat(p,"
")})})():v().divIcon({className:"",iconSize:[24,30],iconAnchor:[2,30],popupAnchor:[10,-25],html:'
').concat(p,"
")});return(0,_.jsx)(l.p,{position:[parseFloat(a.droplat||a.deliverylat),parseFloat(a.droplon||a.deliverylong)],icon:h,zIndexOffset:i?100:0,ref:e=>{e?Ye.current[String(a.orderid)]=e:delete Ye.current[String(a.orderid)]},eventHandlers:{click:()=>{const e=String(a.orderid);He.current.has(e)?(He.current.delete(e),Ge(null)):(He.current.add(e),Ge(a))}}},"".concat(a.orderid,"-").concat(d?"num":"flag"))}))})(),(()=>{const e=Gs&&Ya&&"actual"===Ws;if(Es)return e?[]:Ls.map(((e,s)=>(0,_.jsx)(c.R,{positions:[e.from,e.to],pathOptions:{color:e.color,weight:6,opacity:.9,lineJoin:"round",lineCap:"round"}},s)));const s=[],a=Le?new Set(Le.riders.map((e=>String(e.rider_id)))):null;return e||(Ha?Ua:qa).forEach((e=>{const t=G.has(e.id);if(Ya&&Ya.id!==e.id)return;if(Ee&&!Ee.riders.has(e.id))return;if(a&&!a.has(String(e.id)))return;const i=Ha?(0,V.d1)(e.orders):null,n=Ha?i?[i]:[]:e.orders;if(Ha&&0===n.length)return;const l={};n.forEach((e=>{const s=e.trip_number||1;l[s]||(l[s]=[]),l[s].push(e)})),Object.entries(l).forEach((a=>{let[i,n]=a;const l=Ee?n.filter((e=>(e.pickupcustomer||e.kitchen_key||"Unknown").toLowerCase().trim()===Ee.id)):n;if(0===l.length)return;const d=[...n].sort(((e,s)=>(e.step||0)-(s.step||0))),o=ke(d),u=Se(e.id,i,o),m=Fs[u],p=[...l].sort(((e,s)=>(e.step||0)-(s.step||0))),h=Ha?p[0]:null;let v=null;if(Ha&&h){const s=va.find((s=>String(s.id)===String(e.id))),a=s&&Number.isFinite(s.lat)&&Number.isFinite(s.lon)?[s.lat,s.lon]:re(h)?[ee(te(h)),ee(ie(h))]:null,t=ee(h.droplat||h.deliverylat),i=ee(h.droplon||h.deliverylong);a&&Number.isFinite(t)&&Number.isFinite(i)&&(v=[a,[t,i]])}const x=Ha?h&&v?Fs[Se(e.id,"active-".concat(h.orderid),v)]:void 0:m,j=Array.isArray(x)&&x.length>=2,f=!1===x;if(!Ha&&!j&&!f)return;const g=j?x:Ha?v:ke(p);if(!g||g.length<2)return;const N=t?1:.1,b="kitchens"===F||Ee?7:6,y=Gs&&Ya&&e.id===Ya.id,k=f?"8 6":y&&"combined"===Ws?"6 5":void 0;if(Gs&&Ya&&e.id===Ya.id){const a=new Map(at.map((e=>[String(e.deliveryid),e.sequenceStep]))),t=p.filter(ae),r=t.map((e=>[parseFloat(e.droplat||e.deliverylat),parseFloat(e.droplon||e.deliverylong)]));let n;if(j)n=Ne(g,r);else{const e=g.length>r.length;n=[];for(let s=0;s=g.length||t>=g.length?n.push([]):n.push([g[a],g[t]])}}const l="combined"===Ws?5:0;return s.push((0,_.jsx)(c.R,{positions:g,pathOptions:{color:"#ffffff",weight:b+4,opacity:.5*N,lineJoin:"round",lineCap:"round",offset:l}},"".concat(e.id,"-").concat(i,"-halo"))),void n.forEach(((r,n)=>{if(!r||r.length<2)return;const d=t[n],o=d?a.get(String(d.deliveryid)):null,u="combined"===Ws?X:o?(0,V.gM)(o-1):e.color,m=null!=oa&&oa===o,p=m?b+1.5:b,h=m?1:oa?.5*N:N;s.push((0,_.jsx)(c.R,{positions:r,pathOptions:{color:u,weight:p,opacity:h,lineJoin:"round",lineCap:"round",dashArray:k,offset:l}},"".concat(e.id,"-").concat(i,"-step-").concat(n,"-").concat((null===d||void 0===d?void 0:d.deliveryid)||n)))}))}s.push((0,_.jsxs)(r.Fragment,{children:[(0,_.jsx)(c.R,{positions:g,pathOptions:{color:"#ffffff",weight:b+4,opacity:.5*N,lineJoin:"round",lineCap:"round"}}),(0,_.jsx)(c.R,{positions:g,pathOptions:{color:e.color,weight:b,opacity:N,lineJoin:"round",lineCap:"round",dashArray:k}})]},"".concat(e.id,"-").concat(i)))}))})),s})(),va.filter((e=>Ha?("active"===e.status||"pending"===e.status)&&Ka.has(String(e.id)):qa.some((s=>String(s.id)===String(e.id))))).filter((e=>!Ya||String(Ya.id)===String(e.id))).map((e=>{var s;const a="active"===e.status||"pending"===e.status,t=a?"#16a34a":"#dc2626",r=qa.find((s=>String(s.id)===String(e.id))),n=null===r||void 0===r||null===(s=r.orders)||void 0===s?void 0:s.slice().sort(((e,s)=>{const a=e.trip_number||1,t=s.trip_number||1;return a!==t?a-t:(e.step||0)-(s.step||0)})).find((e=>{const s=String(e.orderstatus||"").toLowerCase();return!V.Ys.has(s)&&!V.yP.has(s)})),c=n?n.deliverysuburb||se(n.deliveryaddress):null,d=(e.username||"").replace(/[<>&"']/g,""),o=e.orderid?String(e.orderid).replace(/[<>&"']/g,""):"",u="".concat(Ha?"bike":"pin","|").concat(t,"|").concat(d,"|").concat(o,"|").concat(a?1:0);let p=Ke.current.get(e.id);if(!p||p.sig!==u){p={sig:u,icon:Ha?v().divIcon({className:"",iconSize:[160,44],iconAnchor:[22,22],popupAnchor:[0,-22],html:'
\n \n \n \n \n ').concat(d).concat(o?" #".concat(o,""):"","\n
")}):v().divIcon({className:"",iconSize:[140,56],iconAnchor:[12,41],popupAnchor:[58,-40],html:'
\n
\n
').concat(d).concat(o?" #".concat(o,""):"","
\n
")})},Ke.current.set(e.id,p)}const h=p.icon,x={click:s=>{const a=String(e.id);Ve.current.has(a)?(Ve.current.delete(a),s.target.closePopup()):(Ve.current.add(a),s.target.openPopup());const t=qa.find((e=>String(e.id)===a));t&&Wa(t)},popupclose:()=>{Ve.current.delete(String(e.id))}},j=Ha?Me:l.p,g=Ha?{target:[e.lat,e.lon],duration:1e3}:{position:[e.lat,e.lon]};return(0,_.jsx)(j,(0,i.A)((0,i.A)({},g),{},{icon:h,zIndexOffset:2500,eventHandlers:x,children:(0,_.jsxs)(m.z,{maxWidth:260,autoPan:!0,autoPanPadding:[20,20],className:"dispatch-popup live-rider-popup",children:[(0,_.jsx)("div",{className:"pu-hdr-live",children:(0,_.jsxs)("div",{className:"pu-hdr-left",children:[(0,_.jsx)("span",{className:"pu-live-indicator",style:{"--pulse-color":t},children:(0,_.jsx)("span",{className:"pu-live-dot"})}),(0,_.jsx)("span",{className:"pu-hdr-title",children:"LIVE GPS"})]})}),(0,_.jsxs)("div",{className:"pu-rider-profile",children:[(0,_.jsx)("div",{className:"pu-avatar",style:{backgroundColor:"".concat(t,"12"),color:t},children:(0,_.jsx)(S.bsz,{})}),(0,_.jsxs)("div",{className:"pu-rider-info-text",children:[(0,_.jsxs)("div",{className:"pu-rider-name-row",children:[(0,_.jsx)("span",{className:"pu-rider-name",children:e.username||"Rider #".concat(e.id)}),e.status&&(0,_.jsx)("span",{className:"pu-status-badge ".concat("active"===e.status.toLowerCase()?"active":"idle"),children:e.status})]}),(0,_.jsxs)("div",{className:"pu-rider-meta",children:["Rider ID: #",e.id]})]})]}),(0,_.jsxs)("div",{className:"pu-body-content",children:[e.orderid&&(0,_.jsxs)("div",{className:"pu-info-row",children:[(0,_.jsx)("span",{className:"pu-info-label",children:"Active Order"}),(0,_.jsxs)("span",{className:"pu-info-value pu-order-badge",children:["#",e.orderid]})]}),n&&(0,_.jsxs)("div",{className:"pu-info-row",children:[(0,_.jsx)("span",{className:"pu-info-label",children:"Next Stop"}),(0,_.jsxs)("span",{className:"pu-info-value",style:{color:"#4f46e5"},children:["#",n.step||"?"," \xb7 ",n.deliverycustomer||"\u2014"]})]}),c&&(0,_.jsxs)("div",{className:"pu-info-row",children:[(0,_.jsx)("span",{className:"pu-info-label",children:"Next Location"}),(0,_.jsx)("span",{className:"pu-info-value",title:n.deliveryaddress||c,children:c})]}),(null===n||void 0===n?void 0:n.pickupcustomer)&&(0,_.jsxs)("div",{className:"pu-info-row",children:[(0,_.jsx)("span",{className:"pu-info-label",children:"Pickup"}),(0,_.jsx)("span",{className:"pu-info-value",title:n.pickupcustomer,children:n.pickupcustomer})]}),e.contactno&&(0,_.jsxs)("div",{className:"pu-info-row",children:[(0,_.jsx)("span",{className:"pu-info-label",children:"Phone"}),(0,_.jsx)("a",{href:"tel:".concat(e.contactno),className:"pu-info-value pu-phone-link",children:e.contactno})]}),e.logdate&&(0,_.jsxs)("div",{className:"pu-info-row",children:[(0,_.jsx)("span",{className:"pu-info-label",children:"Last Seen"}),(0,_.jsxs)("span",{className:"pu-info-value pu-time-stamp",children:[(0,_.jsx)(S.VP9,{className:"inline-icon"})," ",f()(e.logdate).isValid()?f()(e.logdate).format("hh:mm:ss A"):e.logdate]})]}),(0,_.jsxs)("div",{className:"pu-info-row",children:[(0,_.jsx)("span",{className:"pu-info-label",children:"Position"}),(0,_.jsxs)("span",{className:"pu-info-value pu-coordinates",children:[e.lat.toFixed(5),", ",e.lon.toFixed(5)]})]})]})]})}),"live-".concat(e.id))})),Gs&&Ya&&"planned"!==Ws&&at.map(((e,s)=>{var a,t;if(0===e.coords.length)return null;const i=(0,V.gM)(s),n="combined"===Ws?Q:i,d=[e.coords[0].lat,e.coords[0].lng],o=[e.coords[e.coords.length-1].lat,e.coords[e.coords.length-1].lng],m=As[e.deliveryid],p=Array.isArray(m)&&m.length>=2?m:e.coords.map((e=>[e.lat,e.lng]));let h=p,x=!0;if(Es){const s=qs[e.sequenceStep]||0;s<2?x=!1:h=p.slice(0,Math.min(s,p.length))}const j=oa===e.sequenceStep,g=String(e.orderstatus||"").toLowerCase(),N=V.Ys.has(g),b=V.yP.has(g),y=tt.find((s=>s.sequenceStep===e.sequenceStep)),k=!(null===y||void 0===y||!y.anomaly),w=null===Ya||void 0===Ya||null===(a=Ya.orders)||void 0===a?void 0:a.find((s=>null!=s.deliveryid&&String(s.deliveryid)===String(e.deliveryid))),F=(0,V.Cx)(e.orderstatus),M=(e.orderstatus&&'\n \n \n ').concat(N?'':"","\n "),["compare-step-pin"]);j&&M.push("is-focused"),N&&M.push("is-delivered"),b&&M.push("is-skipped"),k&&M.push("is-anomaly");const C='
')+''.concat(e.sequenceStep,"")+(N?'':"")+"
",A=v().divIcon({className:"",iconSize:[36,36],iconAnchor:[18,18],popupAnchor:[0,-22],html:C}),z=1===e.sequenceStep,P=z?v().divIcon({className:"",iconSize:[40,40],iconAnchor:[20,20],html:'
')+'
'}):null,E="combined"===Ws?-5:0;return(0,_.jsxs)(r.Fragment,{children:[x&&(0,_.jsx)(c.R,{positions:h,pathOptions:{color:"#ffffff",weight:j?11:9,opacity:j?.75:.55,lineJoin:"round",lineCap:"round",offset:E}}),x&&(0,_.jsx)(c.R,{positions:h,pathOptions:{color:n,weight:j?6.5:5,opacity:j?1:oa?.55:.95,lineJoin:"round",lineCap:"round",offset:E}}),z&&(0,_.jsx)(l.p,{position:d,icon:P,zIndexOffset:j?900:100,eventHandlers:{click:s=>{s.originalEvent&&s.originalEvent.stopPropagation(),ua((s=>s===e.sequenceStep?null:e.sequenceStep))}},children:(0,_.jsx)(u.m,{direction:"top",offset:[0,-12],opacity:1,className:"compare-tooltip",children:(0,_.jsxs)("div",{className:"cmp-tip",children:[(0,_.jsxs)("div",{className:"cmp-tip-header",children:[(0,_.jsx)("span",{className:"cmp-tip-step",style:{background:i},children:(0,_.jsx)(S.zPd,{})}),(0,_.jsxs)("div",{className:"cmp-tip-title-stack",children:[(0,_.jsx)("div",{className:"cmp-tip-title",children:e.pickupcustomer||"Pickup"}),(0,_.jsx)("div",{className:"cmp-tip-sub",children:null!==(t=e.coords[0])&&void 0!==t&&t.logdate?"Picked up \xb7 ".concat(f()(e.coords[0].logdate).format("hh:mm A")):"Rider trip origin"})]})]}),(0,_.jsx)("div",{className:"cmp-tip-action",children:"Click for step 1 details"})]})})}),(0,_.jsx)(l.p,{position:o,icon:A,zIndexOffset:j?1e3:200,eventHandlers:w?{click:s=>{s.originalEvent&&s.originalEvent.stopPropagation(),ua((s=>s===e.sequenceStep?null:e.sequenceStep)),Be.current&&(clearTimeout(Be.current),Be.current=null);const a=String(w.orderid);He.current.has(a)?(He.current.delete(a),Ge(null)):(He.current.add(a),Ge(w))}}:{click:s=>{s.originalEvent&&s.originalEvent.stopPropagation(),ua((s=>s===e.sequenceStep?null:e.sequenceStep)),w&&s.target&&"function"===typeof s.target.openPopup&&s.target.openPopup()}},children:!w&&(0,_.jsx)(u.m,{direction:"top",offset:[0,-20],opacity:1,className:"compare-tooltip",children:(()=>{const s=(0,V.Cx)(e.orderstatus);return(0,_.jsxs)("div",{className:"cmp-tip",children:[(0,_.jsxs)("div",{className:"cmp-tip-header",children:[(0,_.jsx)("span",{className:"cmp-tip-step",style:{background:i},children:e.sequenceStep}),(0,_.jsxs)("div",{className:"cmp-tip-title-stack",children:[(0,_.jsx)("div",{className:"cmp-tip-title",children:e.deliverycustomer||"Step ".concat(e.sequenceStep)}),(0,_.jsx)("div",{className:"cmp-tip-sub",children:e.deliverytime?"Delivered ".concat(f()(e.deliverytime).format("hh:mm A")):"".concat(e.coords.length," GPS pings")})]}),e.orderstatus&&(0,_.jsx)("span",{className:"cmp-tip-tag",style:{background:s.bg,color:s.fg},children:s.label})]}),k&&(0,_.jsx)("div",{className:"cmp-tip-anomaly",children:"Deviation flagged \u2014 see details below"}),(0,_.jsx)("div",{className:"cmp-tip-action",children:j?"Click to deselect":"Click for details"})]})})()})})]},"actual-".concat(e.deliveryid))}))]}),Gs&&Ya&&(0,_.jsxs)("div",{className:"compare-view-switcher",role:"group","aria-label":"Compare view layer",children:[(0,_.jsx)("button",{type:"button",className:"actual"===Ws?"is-active":"",onClick:()=>$s("actual"),title:"Show only the rider's actual GPS trail",children:"Actual"}),(0,_.jsx)("button",{type:"button",className:"planned"===Ws?"is-active":"",onClick:()=>$s("planned"),title:"Show only the dispatched planned route",children:"Planned"}),(0,_.jsx)("button",{type:"button",className:"combined"===Ws?"is-active":"",onClick:()=>$s("combined"),title:"Overlay planned (dashed) and actual (solid) on one map",children:"Combined"})]}),(0,_.jsx)("div",{id:"ov-tl"}),(0,_.jsxs)("div",{id:"ov-br",children:[(0,_.jsxs)("button",{className:"sbt ".concat(Es?"active":""),onClick:()=>{if(Es)return Ds(!1),Rs([]),void Is({});Ds(!0),Rs([]),Is({});const e=Gs&&Ya,s=e?new Map(at.map((e=>[String(e.deliveryid),e.sequenceStep]))):null,a=[];if(qa.forEach((t=>{if(!G.has(t.id))return;if(Ya&&Ya.id!==t.id)return;if(Ee&&!Ee.riders.has(t.id))return;const i={};t.orders.forEach((e=>{const s=e.trip_number||1;i[s]||(i[s]=[]),i[s].push(e)})),Object.entries(i).forEach((i=>{let[r,n]=i;const l=Ee?n.filter((e=>(e.pickupcustomer||e.kitchen_key||"Unknown").toLowerCase().trim()===Ee.id)):n;if(0===l.length)return;const c=[...n].sort(((e,s)=>(e.step||0)-(s.step||0))),d=ke(c),o=Se(t.id,r,d),u=Fs[o],m=[...l].sort(((e,s)=>(e.step||0)-(s.step||0))),p=ke(m),h="kitchens"===F||Ee,v=u||p;if(v.length<2)return;let x=()=>t.color;if(e&&t.id===Ya.id){const e=m.filter(ae).map((e=>[parseFloat(e.droplat||e.deliverylat),parseFloat(e.droplon||e.deliverylong)])),a=u?Ne(u,e):(()=>{const s=p.length>e.length,a=[];for(let t=0;t=p.length||i>=p.length?a.push([]):a.push([p[e],p[i]])}return a})(),i=[];let r=0;a.forEach(((e,s)=>{const a=Math.max(0,((null===e||void 0===e?void 0:e.length)||0)-1);for(let t=0;t{const a=i[e];if(null==a)return t.color;const r=m.filter(ae)[a],n=r?s.get(String(r.deliveryid)):null;return n?(0,V.gM)(n-1):t.color}}for(let e=0;ee.delay-s.delay)),a.forEach(((e,s)=>{setTimeout((()=>{Rs((s=>[...s,e])),s===a.length-1&&setTimeout((()=>{Ds(!1),Is({})}),1e3)}),e.delay)})),e&&at.length>0){const e=[...at],s=e.map((e=>{const s=As[e.deliveryid];return Array.isArray(s)&&s.length>=2?s:e.coords.map((e=>[e.lat,e.lng]))})),t=a.length>0?a[a.length-1].delay:800*e.length,i=Math.max(t,600*e.length),r=i/Math.max(1,e.length),n=Date.now(),l=()=>{if(!Os.current)return;const a=Date.now()-n,t={};e.forEach(((e,i)=>{const n=s[i];if(!n||n.length<2)return;const l=i*r;if(a>=l+r)t[e.sequenceStep]=n.length;else if(a>=l){const s=(a-l)/r;t[e.sequenceStep]=Math.max(2,Math.ceil(s*n.length))}})),Is(t),a{if(Gs)Js(!1);else{if(!Ya){const e=qa.find((e=>(e.orders||[]).some((e=>null!=e.deliveryid&&""!==e.deliveryid&&0!==e.deliveryid)))),s=qa.find((e=>e.orders&&e.orders.length>0)),a=e||s;if(a&&(Wa(a),Je))return void(ta.current=!0)}Js(!0)}},title:Ya?"Compare planned vs. actual route for ".concat(Ya.riderName):"Compare planned vs. actual route (will focus the first rider)",style:{boxShadow:"var(--shadow-lg)",background:Gs?"linear-gradient(135deg, #662582, #9255AB)":"#fff",marginLeft:8,color:Gs?"#fff":void 0},children:[(0,_.jsx)("span",{className:"sbt-icon",children:(0,_.jsx)(S.$G1,{})}),Gs?"Exit Compare":"Compare"]})]})]}),Gs&&Ya&&(0,_.jsx)("div",{id:"compare-map-wrap",children:(()=>{const e=at.length,s=at.filter((e=>e.coords.length>0)).length,a=at.filter((e=>e.isLoading)).length,t=e>0?Math.round(s/e*100):0,i=e>0&&s===e&&0===a,n=null!=oa?tt.find((e=>e.sequenceStep===oa)):null;return(0,_.jsxs)("div",{className:"compare-header-v2",children:[(0,_.jsxs)("div",{className:"compare-header-row",children:[(0,_.jsxs)("div",{className:"compare-title",children:[(0,_.jsx)("span",{className:"compare-title-dot",style:{background:Ya.color}}),(0,_.jsx)("span",{className:"compare-title-name",children:Ya.riderName}),(0,_.jsx)("span",{className:"compare-title-badge",children:"ACTUAL vs PLANNED"})]}),(0,_.jsxs)("div",{className:"compare-header-tools",children:[null!=oa&&(0,_.jsxs)("button",{type:"button",className:"compare-overall-btn",onClick:()=>ua(null),title:"Zoom out to the whole day",children:[(0,_.jsx)(S.Zs6,{})," Overall"]}),(0,_.jsx)("button",{type:"button",className:"compare-timeline-toggle".concat(Qs?" is-open":""),onClick:()=>ea((e=>!e)),title:Qs?"Hide planned/actual timeline":"Show planned/actual timeline","aria-expanded":Qs,children:(0,_.jsx)(S.j1Q,{})})]})]}),Qs&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"compare-timeline-wrap",children:[(0,_.jsxs)("div",{className:"compare-timeline-container",children:[(0,_.jsxs)("div",{className:"compare-timeline-labels",children:[(0,_.jsx)("div",{className:"compare-timeline-label",children:"Planned"}),(0,_.jsx)("div",{className:"compare-timeline-label",children:"Actual"})]}),(0,_.jsxs)("div",{className:"compare-timeline-scrollable",children:[(0,_.jsx)("div",{className:"compare-timeline-track is-planned",children:rt.map(((e,s)=>{var a;const t=String(e.orderstatus||"").toLowerCase(),i=V.Ys.has(t),n=V.yP.has(t),l=oa===e.sequenceStep,c=e.isLoading&&0===e.coordsCount,d=!e.isLoading&&0===e.coordsCount,o=(null===(a=e.order)||void 0===a?void 0:a.step)||e.sequenceStep,u=(0,V.gM)(o-1),m=["compare-step",l&&"is-focused",i&&"is-delivered",n&&"is-skipped",!i&&!n&&"is-pending",c&&"is-loading",d&&"is-no-data",e.anomaly&&"is-anomaly"].filter(Boolean).join(" ");return(0,_.jsxs)(r.Fragment,{children:[s>0&&(0,_.jsx)("span",{className:"compare-step-spacer"}),(0,_.jsxs)("button",{type:"button",className:m,style:{"--step-color":u},onClick:()=>ua((s=>s===e.sequenceStep?null:e.sequenceStep)),title:"Planned Step ".concat(o)+(e.deliverycustomer?" \xb7 ".concat(e.deliverycustomer):"")+(e.expectedTs?" \xb7 ".concat(e.expectedTs.format("hh:mm A")):"")+(e.anomaly?" \xb7 deviation flagged":""),children:[(0,_.jsx)("span",{className:"compare-step-circle",children:c?(0,_.jsx)("span",{className:"compare-step-spin"}):o}),e.expectedTs&&(0,_.jsx)("span",{className:"compare-step-tick",children:e.expectedTs.format("HH:mm")})]})]},"step-p-".concat(e.deliveryid))}))}),(0,_.jsx)("div",{className:"compare-timeline-track is-actual",children:nt.map(((e,s)=>{var a;const t=String(e.orderstatus||"").toLowerCase(),i=V.Ys.has(t),n=V.yP.has(t),l=oa===e.sequenceStep,c=e.isLoading&&0===e.coordsCount,d=!e.isLoading&&0===e.coordsCount,o=(null===(a=e.order)||void 0===a?void 0:a.step)||e.sequenceStep,u=(0,V.gM)(o-1),m=["compare-step",l&&"is-focused",i&&"is-delivered",n&&"is-skipped",!i&&!n&&"is-pending",c&&"is-loading",d&&"is-no-data",e.anomaly&&"is-anomaly"].filter(Boolean).join(" ");return(0,_.jsxs)(r.Fragment,{children:[s>0&&(0,_.jsx)("span",{className:"compare-step-spacer"}),(0,_.jsxs)("button",{type:"button",className:m,style:{"--step-color":u},onClick:()=>ua((s=>s===e.sequenceStep?null:e.sequenceStep)),title:"Actual Visit ".concat(s+1," (Planned Step ").concat(o,")")+(e.deliverycustomer?" \xb7 ".concat(e.deliverycustomer):"")+(e.actualTs?" \xb7 ".concat(e.actualTs.format("hh:mm A")):"")+(e.anomaly?" \xb7 deviation flagged":""),children:[(0,_.jsx)("span",{className:"compare-step-circle",children:c?(0,_.jsx)("span",{className:"compare-step-spin"}):o}),e.actualTs&&(0,_.jsx)("span",{className:"compare-step-tick",children:e.actualTs.format("HH:mm")}),e.anomaly&&(0,_.jsx)("span",{className:"compare-step-flag",title:"Deviation flagged"})]})]},"step-a-".concat(e.deliveryid))}))})]})]}),(0,_.jsxs)("div",{className:"compare-progress-strip",children:[(0,_.jsx)("div",{className:"compare-progress-bar-wrap",children:(0,_.jsx)("div",{className:"compare-progress-bar-fill".concat(i?" is-done":""),style:{width:"".concat(t,"%")}})}),(0,_.jsx)("span",{className:"compare-progress-text",children:a>0?"Loading GPS\u2026 ".concat(s,"/").concat(e):"".concat(s,"/").concat(e," tracks")})]})]}),(()=>{const e="combined"===Ws,s=n?(0,V.gM)(n.sequenceStep-1):"linear-gradient(90deg, ".concat(V.Z3.slice(0,6).join(", "),")"),a=e?X:s,t=e?Q:s;return(0,_.jsxs)("div",{className:"compare-legend",children:[(0,_.jsxs)("span",{className:"compare-legend-item",children:[(0,_.jsx)("span",{className:"compare-legend-swatch is-step-color is-dashed",style:{background:a}}),"Planned (dashed)"]}),(0,_.jsxs)("span",{className:"compare-legend-item",children:[(0,_.jsx)("span",{className:"compare-legend-swatch is-step-color",style:{background:t}}),"Actual GPS (solid)"]}),(0,_.jsx)("span",{className:"compare-legend-note",children:"Kalman-smoothed GPS \xb7 OSRM road-snapped"})]})})()]})]})})()}),Gs&&Ya&&(0,_.jsx)(W,{focusedRider:Ya,compareDeltas:tt,compareSummary:it,actualOrdered:nt,focusedCompareStep:oa,setFocusedCompareStep:ua,sequenceOpen:Zs,setSequenceOpen:Xs,expandedSeqGroups:sa,setExpandedSeqGroups:aa,onClose:()=>Js(!1)})]}),Ue&&(0,_.jsx)("div",{className:"dispatch-popup-center",role:"dialog","aria-label":"Order ".concat(Ue.orderid," details"),onMouseEnter:()=>{Be.current&&(clearTimeout(Be.current),Be.current=null)},onMouseLeave:()=>{(e=>{if(!e)return!1;if(He.current.has(String(e.orderid)))return!0;if(Gs&&Ya&&null!=e.deliveryid){const s=at.find((s=>String(s.deliveryid)===String(e.deliveryid)));if(s&&oa===s.sequenceStep)return!0}return!1})(Ue)||(Be.current&&clearTimeout(Be.current),Be.current=setTimeout((()=>{Ge(null),Be.current=null}),200))},children:(0,_.jsxs)("div",{className:"dispatch-popup-card dispatch-popup",children:[(0,_.jsx)("button",{type:"button",className:"dispatch-popup-center-close","aria-label":"Close order details",onClick:()=>{He.current.delete(String(Ue.orderid)),Ge(null)},children:"\xd7"}),(e=>{const s=(0,V.Cx)(e.orderstatus),a=e.rider_id||e.userid,t=V.Ys.has(String(e.orderstatus||"").toLowerCase())?null:pt(a,e);return(0,_.jsxs)("div",{style:{height:"100%",width:"100%"},children:[(0,_.jsxs)("div",{className:"pu-header",children:[(0,_.jsxs)("div",{className:"pu-header-top",children:[(0,_.jsxs)("div",{className:"pu-id",children:["ORDER #",e.orderid]}),e.orderstatus&&(0,_.jsx)("span",{className:"pu-status-chip",style:{background:s.bg,color:s.fg},children:s.label})]}),(0,_.jsxs)("div",{className:"pu-header-main",children:[(0,_.jsxs)("div",{className:"pu-header-left",children:[(0,_.jsxs)("div",{className:"pu-rider",children:[(0,_.jsx)(S.aVM,{})," ",(0,_.jsx)("span",{children:e.rider_name||e.ridername||"Unassigned"})]}),(e.deliverycustomer||e.customername)&&(0,_.jsxs)("div",{className:"pu-customer",title:e.deliverycustomer||e.customername,children:[(0,_.jsx)(S.u9F,{}),(0,_.jsx)("span",{children:e.deliverycustomer||e.customername})]}),null!=e.deliveryid&&(0,_.jsxs)("div",{className:"pu-delivery-id",children:["Delivery #",e.deliveryid]})]}),null!=e.step&&(0,_.jsxs)("div",{className:"pu-header-step",children:[(0,_.jsx)("span",{className:"pu-header-step-label",children:"Step"}),(0,_.jsxs)("span",{className:"pu-header-step-value",children:[null!=e.trip_number&&e.trip_number>1?"T".concat(e.trip_number,"\xb7"):"",e.step]})]})]})]}),(0,_.jsxs)("div",{className:"pu-body",children:[ye.some((s=>e[s.key]))&&(0,_.jsxs)("div",{className:"pu-section",children:[(0,_.jsx)("div",{className:"pu-section-label",children:"Timeline"}),(0,_.jsx)("div",{className:"pu-timeline",children:ye.map((s=>{const a=be(e[s.key]);return a?(0,_.jsxs)("div",{className:"pu-tl-row ".concat(s.final?"delivered":""),children:[(0,_.jsx)("span",{className:"pu-tl-dot"}),(0,_.jsx)("span",{className:"pu-tl-label",children:s.label}),(0,_.jsx)("span",{className:"pu-tl-time",children:a})]},s.key):null}))})]}),(0,_.jsxs)("div",{className:"pu-section",children:[(0,_.jsx)("div",{className:"pu-section-label",children:"Details"}),(0,_.jsxs)("div",{className:"pu-details-grid",children:[(e.pickupcustomer||e.locationname||e.pickuplocation)&&(0,_.jsxs)("div",{className:"pu-detail",children:[(0,_.jsx)("div",{className:"pu-detail-icon",children:(0,_.jsx)(S.NtI,{})}),(0,_.jsxs)("div",{className:"pu-detail-body",children:[(0,_.jsx)("div",{className:"pu-detail-label",children:"Pickup"}),(0,_.jsx)("div",{className:"pu-detail-value",title:e.pickupcustomer||e.locationname||e.pickuplocation,children:e.pickupcustomer||e.locationname||e.pickuplocation})]})]}),(e.deliverysuburb||e.deliveryaddress)&&(0,_.jsxs)("div",{className:"pu-detail",children:[(0,_.jsx)("div",{className:"pu-detail-icon",children:(0,_.jsx)(S.JFD,{})}),(0,_.jsxs)("div",{className:"pu-detail-body",children:[(0,_.jsx)("div",{className:"pu-detail-label",children:"Drop"}),(0,_.jsx)("div",{className:"pu-detail-value",title:e.deliveryaddress||e.deliverysuburb,children:e.deliverysuburb||se(e.deliveryaddress)})]})]}),e.zone_name&&(0,_.jsxs)("div",{className:"pu-detail",children:[(0,_.jsx)("div",{className:"pu-detail-icon",children:(0,_.jsx)(S.Cd7,{})}),(0,_.jsxs)("div",{className:"pu-detail-body",children:[(0,_.jsx)("div",{className:"pu-detail-label",children:"Zone"}),(0,_.jsx)("div",{className:"pu-detail-value",title:e.zone_name,children:e.zone_name})]})]}),(e.rider_id||e.userid)&&(0,_.jsxs)("div",{className:"pu-detail",children:[(0,_.jsx)("div",{className:"pu-detail-icon",children:(0,_.jsx)(S.aVM,{})}),(0,_.jsxs)("div",{className:"pu-detail-body",children:[(0,_.jsx)("div",{className:"pu-detail-label",children:"Rider ID"}),(0,_.jsxs)("div",{className:"pu-detail-value",children:["#",e.rider_id||e.userid]})]})]})]}),(null!=e.plannedkms||null!=e.kms||null!=e.actualkms||null!=e.riderkms||null!==t)&&(0,_.jsxs)("div",{className:"pu-distance-row",children:[null!=e.plannedkms&&""!==e.plannedkms?(0,_.jsxs)("div",{className:"pu-distance-chip",children:[(0,_.jsx)("span",{className:"pu-distance-icon",children:(0,_.jsx)(S.xI$,{})}),(0,_.jsx)("span",{className:"pu-distance-label",children:"Planned"}),(0,_.jsxs)("span",{className:"pu-distance-value",children:[parseFloat(e.plannedkms).toFixed(1)," km"]})]}):null!=e.kms&&""!==e.kms?(0,_.jsxs)("div",{className:"pu-distance-chip",children:[(0,_.jsx)("span",{className:"pu-distance-icon",children:(0,_.jsx)(S.xI$,{})}),(0,_.jsx)("span",{className:"pu-distance-label",children:"Planned"}),(0,_.jsxs)("span",{className:"pu-distance-value",children:[parseFloat(e.kms).toFixed(1)," km"]})]}):null,null!=e.actualkms&&""!==e.actualkms&&(0,_.jsxs)("div",{className:"pu-distance-chip",children:[(0,_.jsx)("span",{className:"pu-distance-icon",children:(0,_.jsx)(S.xI$,{})}),(0,_.jsx)("span",{className:"pu-distance-label",children:"Actual"}),(0,_.jsxs)("span",{className:"pu-distance-value",children:[parseFloat(e.actualkms).toFixed(1)," km"]})]}),null!=e.riderkms&&""!==e.riderkms&&(0,_.jsxs)("div",{className:"pu-distance-chip",children:[(0,_.jsx)("span",{className:"pu-distance-icon",children:(0,_.jsx)(S.xI$,{})}),(0,_.jsx)("span",{className:"pu-distance-label",children:"Rider KMs"}),(0,_.jsxs)("span",{className:"pu-distance-value",children:[parseFloat(e.riderkms).toFixed(1)," km"]})]}),null!==t&&(0,_.jsxs)("div",{className:"pu-distance-chip pu-est-meters",title:"Estimated distance to drop location",children:[(0,_.jsx)("span",{className:"pu-distance-icon",children:(0,_.jsx)(S.HPi,{})}),(0,_.jsx)("span",{className:"pu-distance-label",children:"Est. to Drop"}),(0,_.jsx)("span",{className:"pu-distance-value",children:ht(t)})]})]})]})]})]})})(Ue)]})})]}),!a&&"analysis"===C&&(0,_.jsxs)("div",{id:"dispatch-analysis",children:[(0,_.jsx)("div",{className:"da-picker-row",children:Ae.map((e=>{var s;const a=z[e.key],t=E===e.key,i=!1===(null===a||void 0===a||null===(s=a.data)||void 0===s?void 0:s.success),r=i?"#fee2e2":a?"".concat(e.color,"22"):"#f1f5f9",n=i?"#dc2626":a?e.color:"#64748b",l=t?"Loading\u2026":i?"! Failed":a?"\u2713 ".concat(a.fetchedAt):"Fetch",c=L===e.key;return(0,_.jsxs)("button",{type:"button",className:"da-picker ".concat(a?"has-data":""," ").concat(t?"is-loading":""," ").concat(c?"is-active":""),onClick:()=>!t&&T(e.key),style:{borderColor:c?e.color:i?"#fecaca":a?e.border:"#e2e8f0",background:i?"#fef2f2":a?e.bg:"#ffffff",boxShadow:c?"0 0 0 2px ".concat(e.color,"33"):void 0},disabled:t,children:[(0,_.jsxs)("div",{className:"da-picker-head",children:[(0,_.jsx)("div",{className:"da-picker-badge",style:{background:"".concat(e.color,"22"),color:e.color},children:e.label[0]}),(0,_.jsxs)("div",{className:"da-picker-meta",children:[(0,_.jsx)("div",{className:"da-picker-name",children:e.label}),(0,_.jsx)("div",{className:"da-picker-range",children:e.timeRange})]}),(0,_.jsx)("span",{className:"da-picker-status",style:{background:r,color:n},children:l})]}),(0,_.jsx)("div",{className:"da-picker-sub",children:e.sub})]},e.key)}))}),((e,s,a)=>{if(!L)return(0,_.jsx)("div",{className:"da-empty",children:"Pick a batch above to view its efficiency analysis."});const t=Ae.find((e=>e.key===L)),r=z[L],n=E===L;if(n&&!r)return(0,_.jsxs)("div",{className:"da-empty",children:["Loading ",t.label," batch\u2026"]});if(!r)return null;const l=r.data||{};var c,d;if(!1===l.success)return(0,_.jsxs)("div",{className:"da-result-card da-result-card-error",style:{borderColor:"#fecaca",borderTopColor:"#ef4444"},children:[(0,_.jsxs)("div",{className:"da-result-head",children:[(0,_.jsxs)("div",{children:[(0,_.jsxs)("div",{className:"da-result-title",children:[t.label," Batch"]}),(0,_.jsxs)("div",{className:"da-result-sub",children:[t.timeRange," \xb7 Fetched at ",r.fetchedAt]})]}),(0,_.jsx)("button",{type:"button",className:"da-result-refresh",title:"Retry",onClick:()=>T(L),disabled:n,style:{background:"#fee2e2",color:"#dc2626"},children:(0,_.jsx)(S.joZ,{})})]}),(0,_.jsxs)("div",{className:"da-error",children:[(0,_.jsxs)("div",{className:"da-error-title",children:[(0,_.jsx)(S.ItP,{}),(0,_.jsx)("span",{children:(null===l||void 0===l||null===(c=l.error)||void 0===c?void 0:c.code)||"Request failed"})]}),(0,_.jsx)("div",{className:"da-error-msg",children:(null===l||void 0===l||null===(d=l.error)||void 0===d?void 0:d.message)||"The server returned an error."}),(null===l||void 0===l?void 0:l.request_id)&&(0,_.jsxs)("div",{className:"da-error-meta",children:["request_id: ",l.request_id]})]})]});const o=l.fleet_summary||{},u=Array.isArray(l.rider_timelines)?l.rider_timelines:[],m=Array.isArray(l.substitution_opportunities)?l.substitution_opportunities:[],p=l.top_recommendation,h=!(!p||!p.idle_rider_name&&!p.idle_rider_id),v=!!(p&&p.action&&"none"!==p.action&&h),x=l.window||{},j=(e,s)=>{const a=String(null!==e&&void 0!==e?e:"").trim();if(!a)return s||"\u2014";const t="string"===typeof s&&/^Rider\s+\d+$/i.test(s.trim()),i=Array.isArray(qa)?qa.find((e=>String(e.id)===a)):null;if(i&&i.riderName)return i.riderName;const r=Array.isArray(za)?za.find((e=>String(e.id)===a)):null;return r&&r.riderName?r.riderName:!t&&s?s:"Rider ".concat(a)},f=Pe(o.fleet_start),g=Pe(o.fleet_done),N=null!=f&&null!=g&&g>f?g-f:null,b=parseFloat(o.avg_utilisation_pct),y=Number.isFinite(b)?b:null,k=null==y?"unknown":y>=85?"good":y>=70?"ok":"low",w="good"===k?"#10b981":"ok"===k?"#f59e0b":"low"===k?"#ef4444":"#94a3b8",F=(e=>{let{assessment:s,spreadMin:a,stdev:t}=e;const i=String(s||"").toLowerCase();return/high imbalance|severe|critical/.test(i)||/imbalance|recommend/.test(i)||null!=a&&a>30||null!=t&&t>1?"warn":/balanced|excellent|good/.test(i)?"success":"info"})({assessment:null===p||void 0===p?void 0:p.fleet_balance_assessment,spreadMin:parseFloat(o.finish_time_spread_minutes),stdev:parseFloat(o.load_balance_stdev)}),M=u.map((e=>{const s=Pe(e.started_at),a=Pe(e.finished_at);let t=0,r=100;null!=f&&N&&(null!=s&&(t=Math.max(0,Math.min(100,(s-f)/N*100))),null!=a&&(r=Math.max(0,Math.min(100,(a-f)/N*100))));const n=Math.max(0,r-t),l=parseFloat(e.active_minutes),c=parseFloat(e.idle_minutes),d=(Number.isFinite(l)?l:0)+(Number.isFinite(c)?c:0),o=d>0?l/d*100:y,u=null==o?"unknown":o>=85?"good":o>=70?"ok":"low",m="good"===u?"#10b981":"ok"===u?"#f59e0b":"low"===u?"#ef4444":"#94a3b8",p=j(e.userid,e.name);return(0,i.A)((0,i.A)({},e),{},{displayName:p,_startPct:t,_endPct:r,_activePct:n,_riderUtilPct:o,_riderColor:m})}));return M.sort(((e,s)=>(Pe(s.finished_at)||0)-(Pe(e.finished_at)||0))),(0,_.jsxs)("div",{className:"da-detail",children:[(0,_.jsxs)("div",{className:"da-detail-head",style:{borderTopColor:t.color,background:t.bg},children:[(0,_.jsxs)("div",{children:[(0,_.jsxs)("div",{className:"da-detail-title",children:[t.label," Batch",(0,_.jsxs)("span",{className:"da-detail-sub-inline",children:[l.date?" \xb7 ".concat(l.date):"",x.from&&x.to?" \xb7 ".concat(x.from," \u2013 ").concat(x.to):""]})]}),(0,_.jsxs)("div",{className:"da-detail-sub",children:["Fetched at ",r.fetchedAt," \xb7 Input deliveries: ",null!==(e=l.input_delivery_count)&&void 0!==e?e:"\u2014"]})]}),(0,_.jsxs)("div",{className:"da-detail-actions",children:[(0,_.jsxs)("span",{className:"da-live-tag ".concat(n?"is-active":""),title:"Auto-refreshing every ".concat(Math.round(15),"s"),children:[(0,_.jsx)("span",{className:"da-live-dot"}),"Live \xb7 ",Math.round(15),"s"]}),(0,_.jsx)("button",{type:"button",className:"da-result-refresh",title:"Refresh now",onClick:()=>{P((e=>{const s=(0,i.A)({},e);return delete s[L],s})),O.mutate({batch:L,tenantId:916})},disabled:n,style:{background:"".concat(t.color,"22"),color:t.color},children:(0,_.jsx)(S.joZ,{})})]})]}),(0,_.jsx)("div",{className:"da-section",children:(0,_.jsxs)("div",{className:"da-hero-row",children:[(0,_.jsxs)("div",{className:"da-hero-card",children:[(0,_.jsx)("div",{className:"da-hero-icon",style:{background:"#6625821f",color:"#662582"},children:(0,_.jsx)(S.aEx,{})}),(0,_.jsx)("div",{className:"da-hero-value",children:ze(o.total_orders)}),(0,_.jsx)("div",{className:"da-hero-label",children:"Total Orders"}),null!=l.input_delivery_count&&l.input_delivery_count!==o.total_orders&&(0,_.jsxs)("div",{className:"da-hero-sub",children:[l.input_delivery_count," input"]})]}),(0,_.jsxs)("div",{className:"da-hero-card",children:[(0,_.jsx)("div",{className:"da-hero-icon",style:{background:"#0ea5e91f",color:"#0ea5e9"},children:(0,_.jsx)(S.GQB,{})}),(0,_.jsx)("div",{className:"da-hero-value",children:ze(o.total_riders)}),(0,_.jsx)("div",{className:"da-hero-label",children:"Active Riders"}),null!=o.orders_per_rider_avg&&(0,_.jsxs)("div",{className:"da-hero-sub",children:[o.orders_per_rider_avg," avg orders / rider"]})]}),(0,_.jsxs)("div",{className:"da-hero-card",children:[(0,_.jsx)("div",{className:"da-hero-icon",style:{background:"#8b5cf61f",color:"#8b5cf6"},children:(0,_.jsx)(S.XT0,{})}),(0,_.jsxs)("div",{className:"da-hero-value",children:[null!=o.total_duration_minutes?"".concat(o.total_duration_minutes):"\u2014",null!=o.total_duration_minutes&&(0,_.jsx)("span",{className:"da-hero-unit",children:" min"})]}),(0,_.jsx)("div",{className:"da-hero-label",children:"Fleet Window"}),o.fleet_start&&o.fleet_done&&(0,_.jsxs)("div",{className:"da-hero-sub",children:[o.fleet_start," \u2192 ",o.fleet_done]})]})]})}),(0,_.jsxs)("div",{className:"da-section",children:[(0,_.jsx)("div",{className:"da-section-label",children:"Fleet Health"}),(0,_.jsxs)("div",{className:"da-health-row",children:[(0,_.jsxs)("div",{className:"da-health-card",children:[(0,_.jsx)("div",{className:"da-ring",style:{"--ring-color":w,"--ring-pct":null!=y?Math.max(0,Math.min(100,y)):0},children:(0,_.jsxs)("span",{className:"da-ring-num",children:[null!=y?"".concat(y.toFixed(0)):"\u2014",null!=y&&(0,_.jsx)("span",{className:"da-ring-unit",children:"%"})]})}),(0,_.jsxs)("div",{className:"da-health-meta",children:[(0,_.jsx)("div",{className:"da-health-label",children:"Avg Utilisation"}),(0,_.jsx)("div",{className:"da-health-sub",style:{color:w},children:"good"===k?"Strong":"ok"===k?"Moderate":"low"===k?"Low":"\u2014"})]})]}),(0,_.jsxs)("div",{className:"da-health-card da-health-card-stat",children:[(0,_.jsx)("div",{className:"da-health-value",children:null!=o.load_balance_stdev?parseFloat(o.load_balance_stdev).toFixed(2):"\u2014"}),(0,_.jsx)("div",{className:"da-health-label",children:"Load Balance \u03c3"}),(0,_.jsx)("div",{className:"da-health-sub",children:null!=o.load_balance_stdev?parseFloat(o.load_balance_stdev)>1?"Uneven workload":"Workload balanced":"Stdev of orders / rider"})]}),(0,_.jsxs)("div",{className:"da-health-card da-health-card-stat",children:[(0,_.jsxs)("div",{className:"da-health-value",children:[null!=o.finish_time_spread_minutes?"".concat(o.finish_time_spread_minutes):"\u2014",null!=o.finish_time_spread_minutes&&(0,_.jsx)("span",{className:"da-health-unit",children:" min"})]}),(0,_.jsx)("div",{className:"da-health-label",children:"Finish Spread"}),(0,_.jsx)("div",{className:"da-health-sub",children:null!=o.finish_time_stdev_minutes?"\u03c3 ".concat(parseFloat(o.finish_time_stdev_minutes).toFixed(1)," min"):"First \u2192 last finish"})]}),(0,_.jsxs)("div",{className:"da-health-card da-health-card-stat",children:[(0,_.jsxs)("div",{className:"da-health-value",children:[null!=o.avg_active_minutes?"".concat(parseFloat(o.avg_active_minutes).toFixed(0)):"\u2014",null!=o.avg_active_minutes&&(0,_.jsx)("span",{className:"da-health-unit",children:" min"})]}),(0,_.jsx)("div",{className:"da-health-label",children:"Avg Active"}),(0,_.jsx)("div",{className:"da-health-sub",children:"Per rider, this batch"})]})]})]}),(0,_.jsxs)("div",{className:"da-section",children:[(0,_.jsx)("div",{className:"da-section-label",children:"Top Recommendation"}),v?(0,_.jsxs)("div",{className:"da-rec-banner is-action",children:[(0,_.jsx)("div",{className:"da-rec-banner-icon",children:(0,_.jsx)(S.DX0,{})}),(0,_.jsxs)("div",{className:"da-rec-banner-body",children:[(0,_.jsxs)("div",{className:"da-rec-head",children:[(0,_.jsx)("div",{className:"da-rec-action",children:(0,_.jsx)("span",{children:(p.action||"recommendation").replaceAll("_"," ")})}),null!=p.fleet_improvement_minutes&&(0,_.jsxs)("span",{className:"da-rec-improve",style:p.fleet_improvement_minutes>0?{background:"#dcfce7",color:"#166534"}:{background:"#f1f5f9",color:"#475569"},children:[p.fleet_improvement_minutes>0?"\u2191":"\u2022"," Fleet improves by ",p.fleet_improvement_minutes," min"]})]}),(0,_.jsxs)("div",{className:"da-rec-line",children:[(0,_.jsx)("strong",{children:j(p.idle_rider_id,p.idle_rider_name)}),p.primary_kitchen&&(0,_.jsxs)(_.Fragment,{children:[" \xb7 primary kitchen ",(0,_.jsx)("strong",{children:p.primary_kitchen})]}),p.second_kitchen&&(0,_.jsxs)(_.Fragment,{children:[" \u2192 also serve ",(0,_.jsx)("strong",{children:p.second_kitchen})," after ",p.second_kitchen_dispatch_after||"\u2014"]})]}),p.description&&(0,_.jsx)("div",{className:"da-rec-desc",children:p.description}),(null===p||void 0===p?void 0:p.fleet_balance_assessment)&&(0,_.jsx)("div",{className:"da-rec-assess",children:p.fleet_balance_assessment}),(null===(s=p.activate_when)||void 0===s||null===(a=s.rules)||void 0===a?void 0:a.length)>0&&(0,_.jsxs)("div",{className:"da-rec-rules",children:[(0,_.jsxs)("div",{className:"da-rec-rules-head",children:["Activate when (",p.activate_when.condition||"AND","):"]}),p.activate_when.rules.map(((e,s)=>(0,_.jsxs)("div",{className:"da-rec-rule",children:[(0,_.jsxs)("code",{children:[e.field," ",e.operator," ",e.value]}),e.reason&&(0,_.jsxs)("span",{className:"da-rec-rule-why",children:[" \u2014 ",e.reason]})]},s)))]})]})]}):(0,_.jsxs)("div",{className:"da-rec-banner is-".concat(F),children:[(0,_.jsx)("div",{className:"da-rec-banner-icon",children:"warn"===F?(0,_.jsx)(S.Wux,{}):"success"===F?(0,_.jsx)(S.mU9,{}):(0,_.jsx)(S.DX0,{})}),(0,_.jsxs)("div",{className:"da-rec-banner-body",children:[(0,_.jsx)("div",{className:"da-rec-action",children:(0,_.jsx)("span",{children:"warn"===F?"Fleet imbalance detected \u2014 no feasible substitution":"success"===F?"Fleet ran balanced \u2014 no reassignment needed":"No action recommended"})}),(null===p||void 0===p?void 0:p.reason)&&(0,_.jsx)("div",{className:"da-rec-desc",children:p.reason}),(null===p||void 0===p?void 0:p.fleet_balance_assessment)&&(0,_.jsx)("div",{className:"da-rec-assess",children:p.fleet_balance_assessment})]})]})]}),M.length>0&&(0,_.jsxs)("div",{className:"da-section",children:[(0,_.jsxs)("div",{className:"da-section-label",children:["Rider Timelines ",(0,_.jsxs)("span",{className:"da-section-count",children:["(",M.length,")"]}),(0,_.jsx)("span",{className:"da-section-hint",children:"Sorted by latest finish \u2014 bottleneck riders first"})]}),(0,_.jsxs)("div",{className:"da-gantt-axis",children:[(0,_.jsx)("span",{children:o.fleet_start||"\u2014"}),(0,_.jsx)("span",{className:"da-gantt-axis-mid",children:null!=o.total_duration_minutes?"".concat(o.total_duration_minutes," min batch"):"Batch window"}),(0,_.jsx)("span",{children:o.fleet_done||"\u2014"})]}),(0,_.jsx)("div",{className:"da-timeline-list",children:M.map((e=>{var s,a,t;const i="active"===String(e.status||"").toLowerCase(),r=null!==(s=e.completed_orders)&&void 0!==s?s:e.order_count,n=null!==(a=e.pending_orders)&&void 0!==a?a:0,l=null!=r&&e.order_count>0?Math.max(0,Math.min(100,r/e.order_count*100)):0,c=null!=e.idle_minutes&&e.idle_minutes>30,d=null!=e.kitchen_confidence&&e.kitchen_confidence<.7;return(0,_.jsxs)("div",{className:"da-timeline-card",children:[(0,_.jsxs)("div",{className:"da-timeline-top",children:[(0,_.jsxs)("div",{className:"da-timeline-name",children:[(0,_.jsx)(S.aVM,{style:{color:e._riderColor}}),(0,_.jsx)("span",{title:e.name&&e.name!==e.displayName?"API name: ".concat(e.name):void 0,children:e.displayName}),(0,_.jsxs)("span",{className:"da-timeline-id",children:["#",e.userid]})]}),(0,_.jsx)("span",{className:"da-pill ".concat(i?"is-active":"is-idle"),children:e.status})]}),(0,_.jsxs)("div",{className:"da-gantt-row",children:[(0,_.jsxs)("div",{className:"da-gantt-track",title:"".concat(e.started_at," \u2192 ").concat(e.finished_at),children:[(0,_.jsxs)("div",{className:"da-gantt-fill",style:{left:"".concat(e._startPct,"%"),width:"".concat(Math.max(2,e._activePct),"%"),background:e._riderColor},children:[(0,_.jsx)("span",{className:"da-gantt-fill-start",children:e.started_at}),(0,_.jsx)("span",{className:"da-gantt-fill-end",children:e.finished_at})]}),e._endPct<99&&(0,_.jsx)("div",{className:"da-gantt-idle",style:{left:"".concat(e._endPct,"%"),width:"".concat(100-e._endPct,"%")},title:"Idle ".concat(e.idle_minutes," min after finishing")})]}),(0,_.jsx)("span",{className:"da-gantt-util",style:{background:"".concat(e._riderColor,"22"),color:e._riderColor},title:"Per-rider utilisation: ".concat(null!=e._riderUtilPct?e._riderUtilPct.toFixed(0):"\u2014","%"),children:null!=e._riderUtilPct?"".concat(e._riderUtilPct.toFixed(0),"%"):"\u2014"})]}),(0,_.jsxs)("div",{className:"da-timeline-mid",children:[e.kitchen?(0,_.jsxs)("span",{className:"da-chip",title:null!=e.kitchen_confidence?"Kitchen confidence: ".concat((100*e.kitchen_confidence).toFixed(0),"%"):void 0,children:[(0,_.jsx)(S.NtI,{})," ",e.kitchen,null!=e.kitchen_confidence&&(0,_.jsx)("span",{className:"da-conf-dot ".concat(d?"is-low":"is-ok"),"aria-label":"Confidence ".concat((100*e.kitchen_confidence).toFixed(0),"%")})]}):(0,_.jsxs)("span",{className:"da-chip",style:{background:"#f8fafc",color:"#64748b",borderColor:"#e2e8f0",borderStyle:"dashed"},title:"Solver did not identify a primary kitchen for this rider",children:[(0,_.jsx)(S.NtI,{})," Unassigned"]}),(0,_.jsxs)("span",{className:"da-chip da-chip-orders",title:"Completed ".concat(r," of ").concat(e.order_count),children:[(0,_.jsx)(S.gsJ,{}),(0,_.jsxs)("span",{className:"da-orders-label",children:[r,"/",e.order_count]}),(0,_.jsx)("span",{className:"da-orders-bar",children:(0,_.jsx)("span",{className:"da-orders-bar-fill",style:{width:"".concat(l,"%")}})}),n>0&&(0,_.jsxs)("span",{className:"da-orders-pending",children:[n," pending"]})]}),null!=e.pace_orders_per_hour&&(0,_.jsxs)("span",{className:"da-chip",title:"Delivery pace this batch",children:[(0,_.jsx)(S.BJM,{})," ",parseFloat(e.pace_orders_per_hour).toFixed(1)," / hr"]}),null!=e.active_minutes&&(0,_.jsxs)("span",{className:"da-chip",title:"Time actively delivering",children:[(0,_.jsx)(S.pWE,{})," ",parseFloat(e.active_minutes).toFixed(0)," min active"]}),(0,_.jsxs)("span",{className:"da-chip",style:c?{background:"#fef3c7",color:"#92400e",borderColor:"#fde68a"}:void 0,title:"Idle time after this rider finished \u2014 fleet kept running",children:[(0,_.jsx)(S.VP9,{})," ",null!==(t=e.idle_minutes)&&void 0!==t?t:0," min idle"]}),null!=e.free_window_minutes&&(0,_.jsxs)("span",{className:"da-chip",style:e.free_window_minutes>=30?{background:"#ecfdf5",color:"#065f46",borderColor:"#a7f3d0"}:e.free_window_minutes>0?{background:"#fefce8",color:"#854d0e",borderColor:"#fde68a"}:{background:"#fef2f2",color:"#991b1b",borderColor:"#fecaca"},title:"Free window before the next batch \u2014 capacity available for a follow-up run",children:[(0,_.jsx)(S.pWE,{})," ",parseFloat(e.free_window_minutes).toFixed(0)," min free"]})]})]},e.userid)}))})]}),m.length>0&&(0,_.jsxs)("div",{className:"da-section",children:[(0,_.jsxs)("div",{className:"da-section-label",children:["Substitution Opportunities ",(0,_.jsxs)("span",{className:"da-section-count",children:["(",m.length,")"]})]}),(0,_.jsx)("div",{className:"da-sub-list",children:m.map(((e,s)=>{var a;const t=e.idle_rider||{},i=e.most_relieved_rider||{},r=null!==(a=e.fleet_improvement_minutes)&&void 0!==a?a:0;return(0,_.jsxs)("div",{className:"da-sub-card",children:[(0,_.jsxs)("div",{className:"da-sub-head",children:[(0,_.jsxs)("div",{className:"da-sub-title",children:[(0,_.jsx)("strong",{children:j(t.userid,t.name)})," ","covers ",(0,_.jsx)("strong",{children:e.target_kitchen})]}),(0,_.jsxs)("span",{className:"da-sub-improve",style:r>0?{background:"#dcfce7",color:"#166534"}:{background:"#f1f5f9",color:"#475569"},children:["Fleet ",r>0?"\u2191":"\u2022"," ",r," min"]})]}),(0,_.jsxs)("div",{className:"da-sub-meta",children:[(0,_.jsxs)("span",{className:"da-chip",children:[(0,_.jsx)(S.xI$,{})," ",e.travel_to_kitchen_km," km"]}),(0,_.jsxs)("span",{className:"da-chip",children:[(0,_.jsx)(S.pWE,{})," ",e.travel_to_kitchen_minutes," min travel"]}),(0,_.jsxs)("span",{className:"da-chip",children:[(0,_.jsx)(S.VP9,{})," arrives ",e.arrive_at_kitchen]}),(0,_.jsxs)("span",{className:"da-chip",children:[(0,_.jsx)(S.gsJ,{})," ",e.total_orders_transferred," orders"]}),(0,_.jsxs)("span",{className:"da-chip",children:[(0,_.jsx)(S.xI$,{})," +",e.extra_km_for_idle_rider," km for idle rider"]})]}),(i.name||null!=i.userid)&&(0,_.jsxs)("div",{className:"da-sub-relieved",children:[(0,_.jsx)(S.imn,{}),"Most relieved: ",(0,_.jsx)("strong",{children:j(i.userid,i.name)})," ","(",i.original_finish," \u2192 ",i.new_finish,", saves"," ",i.time_saved_minutes," min)"]}),Array.isArray(e.orders_to_transfer)&&e.orders_to_transfer.length>0&&(0,_.jsxs)("div",{className:"da-sub-transfers",children:[(0,_.jsx)("div",{className:"da-sub-transfers-head",children:"Orders transferred"}),e.orders_to_transfer.map((e=>{var s;const a=null!==(s=e.improvement_minutes)&&void 0!==s?s:0;return(0,_.jsxs)("div",{className:"da-transfer-row",children:[(0,_.jsxs)("span",{className:"da-transfer-id",children:["#",e.deliveryid]}),(0,_.jsxs)("span",{className:"da-transfer-from",children:["from ",j(e.from_rider_id||e.from_userid,e.from_rider_name)]}),(0,_.jsxs)("span",{className:"da-transfer-time",children:[e.original_delivery_time," \u2192 ",e.estimated_delivery_time]}),(0,_.jsxs)("span",{className:"da-transfer-imp",style:a>0?{background:"#dcfce7",color:"#166534"}:a<0?{background:"#fee2e2",color:"#991b1b"}:{background:"#f1f5f9",color:"#475569"},children:[a>0?"+":"",a," min"]})]},e.deliveryid)}))]})]},s)}))})]})]})})()]}),q&&(0,_.jsx)("div",{className:"da-pos-modal-backdrop",role:"dialog","aria-modal":"true","aria-label":"Last known position of ".concat(q.name),onClick:e=>{e.target===e.currentTarget&&I(null)},children:(0,_.jsxs)("div",{className:"da-pos-modal-card",children:[(0,_.jsxs)("div",{className:"da-pos-modal-head",children:[(0,_.jsxs)("div",{className:"da-pos-modal-title-wrap",children:[(0,_.jsx)("div",{className:"da-pos-modal-avatar",style:{background:"".concat(q.color||"#662582","22"),color:q.color||"#662582"},children:(0,_.jsx)(S.aVM,{})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("div",{className:"da-pos-modal-title",children:q.name}),(0,_.jsxs)("div",{className:"da-pos-modal-sub",children:["#",q.userid,q.kitchen&&(0,_.jsxs)(_.Fragment,{children:[" \xb7 ",q.kitchen]}),q.finished_at&&(0,_.jsxs)(_.Fragment,{children:[" \xb7 finished ",q.finished_at]})]})]})]}),(0,_.jsxs)("div",{className:"da-pos-modal-actions",children:[(0,_.jsx)("span",{className:"da-pill ".concat("active"===String(q.status||"").toLowerCase()?"is-active":"is-idle"),children:q.status||"\u2014"}),(0,_.jsx)("button",{type:"button",className:"da-pos-modal-close","aria-label":"Close",onClick:()=>I(null),children:(0,_.jsx)(S.m6K,{})})]})]}),(0,_.jsx)("div",{className:"da-pos-modal-map",children:(0,_.jsxs)(d.W,{center:[q.lat,q.lon],zoom:13,scrollWheelZoom:!0,style:{width:"100%",height:"100%"},whenReady:e=>{const s=e.target;requestAnimationFrame((()=>s.invalidateSize())),setTimeout((()=>s.invalidateSize()),260)},children:[(0,_.jsx)(o.e,{attribution:'\xa9 OpenStreetMap',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),(0,_.jsx)(l.p,{position:[q.lat,q.lon],children:(0,_.jsxs)(m.z,{children:[(0,_.jsx)("strong",{children:q.name}),(0,_.jsx)("br",{}),q.lat.toFixed(6),", ",q.lon.toFixed(6)]})})]},"".concat(q.userid,"-").concat(q.lat,"-").concat(q.lon))}),(0,_.jsxs)("div",{className:"da-pos-modal-foot",children:[(0,_.jsxs)("div",{className:"da-pos-modal-coord",children:[(0,_.jsx)(S.gwi,{}),(0,_.jsxs)("span",{children:[(0,_.jsx)("strong",{children:"Lat:"})," ",q.lat.toFixed(6),(0,_.jsx)("span",{className:"da-pos-modal-sep",children:"\xb7"}),(0,_.jsx)("strong",{children:"Lon:"})," ",q.lon.toFixed(6)]})]}),(0,_.jsx)("button",{type:"button",className:"da-pos-modal-copy",onClick:()=>{var e,s;const a="".concat(q.lat.toFixed(6),", ").concat(q.lon.toFixed(6));null!==(e=navigator)&&void 0!==e&&null!==(s=e.clipboard)&&void 0!==s&&s.writeText&&navigator.clipboard.writeText(a)},title:"Copy coordinates",children:"Copy"})]})]})})]})}}}]); \ No newline at end of file diff --git a/build/static/js/5527.2024fea7.chunk.js b/build/static/js/5527.2024fea7.chunk.js deleted file mode 100644 index 1cd442f..0000000 --- a/build/static/js/5527.2024fea7.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[5527],{85527:(h,v,z)=>{z.d(v,{BUW:()=>l,FA6:()=>a,V92:()=>t});var m=z(99230);function t(h){return(0,m.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M73 41v430h174V220.8c-.3 0-.7-.1-1-.1-21.5-2.9-39.3-2.1-48.7 1.9A71.88 71.88 0 0 1 160 233c-40.2 0-73-32.8-73-73s32.8-73 73-73c29 0 54.1 17 65.9 41.4.2.3.6.7 1.4 1.1 2 1.1 5.4 2.7 10 4.5 2.8 1.1 6.1 2.4 9.7 3.7V41H73zm152.9 87.4c-.4-.5-.2-.4.7 1.5-.2-.5-.5-1-.7-1.5zM160 105c-30.4 0-55 24.6-55 55s24.6 55 55 55c10.7 0 20.5-3 28.9-8.2l.6-.4.6-.3c15.3-6.6 35.3-6.4 58.3-3.3 23.1 3.2 49.2 9.6 75.6 17.6 52.7 16.1 106.4 38.4 137.2 53.5 9 4.5 12.2 3.2 14.2 1.5 2-1.7 4.1-6.8 3.6-14.2-1.1-14.7-12-34.7-32.3-41-78.3-24.5-135.1-42-173-54.4-18.9-6.2-33.1-11.1-43.1-15.1-5-2-8.9-3.7-12-5.5-3.2-1.7-6-2.4-8.4-7.8-8.7-19.1-27.8-32.4-50.2-32.4zm0 183a32 32 0 0 1 32 32 32 32 0 0 1-11.9 24.8L192 416h-64l11.9-71.2A32 32 0 0 1 128 320a32 32 0 0 1 32-32z"}}]})(h)}function l(h){return(0,m.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M217 25v30h30V25h-30zm48 0v30h30V25h-30zm48 0v30h30V25h-30zm-96 48v46h30V73h-30zm48 0v46h30V73h-30zm48 0v46h30V73h-30zm-96 64v46h30v-46h-30zm48 0v46h30v-46h-30zm48 0v46h30v-46h-30zm174 6.508l-94 53.715V215h94v-71.492zM217 201v46h30v-46h-30zm48 0v46h30v-46h-30zm48 0v46h30v-46h-30zm80 32v110h94V233h-94zM39 256v23h18v-23H39zm178 9v46h30v-46h-30zm48 0v46h30v-46h-30zm48 0v46h30v-46h-30zM37.562 297l-7 14h146.875l-7-14H37.563zM25 329v158h23v-23h32v23h48v-23h32v23h23V329H25zm192 0v46h30v-46h-30zm48 0v46h30v-46h-30zm48 0v46h30v-46h-30zM48 352h32v16H48v-16zm80 0h32v16h-32v-16zm265 9v126h31v-23h32v23h31V361h-94zM48 384h32v16H48v-16zm80 0h32v16h-32v-16zm89 9v46h30v-46h-30zm48 0v46h30v-46h-30zm48 0v46h30v-46h-30zM48 416h32v16H48v-16zm80 0h32v16h-32v-16zm89 41v30h30v-30h-30zm48 0v30h30v-30h-30zm48 0v30h30v-30h-30z"}}]})(h)}function a(h){return(0,m.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M327.027 65.816L229.79 128.23l9.856 5.397 86.51-55.53 146.735 83.116-84.165 54.023 4.1 2.244v6.848l65.923-42.316 13.836 7.838-79.76 51.195v11.723l64.633-41.487 15.127 8.57-79.76 51.195v11.723l64.633-41.487 15.127 8.57-79.76 51.195v11.723l100.033-64.21-24.828-14.062 24.827-15.937-24.828-14.064 24.827-15.937-23.537-13.333 23.842-15.305-166.135-94.106zm31.067 44.74c-21.038 10.556-49.06 12.342-68.79 4.383l-38.57 24.757 126.903 69.47 36.582-23.48c-14.41-11.376-13.21-28.35 2.942-41.67l-59.068-33.46zM227.504 147.5l-70.688 46.094 135.61 78.066 1.33-.85c2.5-1.61 6.03-3.89 10.242-6.613 8.42-5.443 19.563-12.66 30.674-19.86 16.002-10.37 24.248-15.72 31.916-20.694L227.504 147.5zm115.467 1.17a8.583 14.437 82.068 0 1 .003 0 8.583 14.437 82.068 0 1 8.32 1.945 8.583 14.437 82.068 0 1-.87 12.282 8.583 14.437 82.068 0 1-20.273 1.29 8.583 14.437 82.068 0 1 .87-12.28 8.583 14.437 82.068 0 1 11.95-3.237zm-218.423 47.115L19.143 263.44l23.537 13.333-23.842 15.305 24.828 14.063-24.828 15.938 24.828 14.063-24.828 15.938 166.135 94.106L285.277 381.8V370.08l-99.433 63.824L39.11 350.787l14.255-9.15 131.608 74.547L285.277 351.8V340.08l-99.433 63.824L39.11 320.787l14.255-9.15 131.608 74.547L285.277 321.8V310.08l-99.433 63.824L39.11 290.787l13.27-8.52 132.9 75.28 99.997-64.188v-5.05l-5.48-3.154-93.65 60.11-146.73-83.116 94.76-60.824-9.63-5.543zm20.46 11.78l-46.92 30.115c14.41 11.374 13.21 28.348-2.942 41.67l59.068 33.46c21.037-10.557 49.057-12.342 68.787-4.384l45.965-29.504-123.96-71.358zm229.817 32.19c-8.044 5.217-15.138 9.822-30.363 19.688-11.112 7.203-22.258 14.42-30.69 19.873-4.217 2.725-7.755 5.01-10.278 6.632-.09.06-.127.08-.215.137v85.924l71.547-48.088v-84.166zm-200.99 17.48a8.583 14.437 82.068 0 1 8.32 1.947 8.583 14.437 82.068 0 1-.87 12.28 8.583 14.437 82.068 0 1-20.27 1.29 8.583 14.437 82.068 0 1 .87-12.28 8.583 14.437 82.068 0 1 11.95-3.236z"}}]})(h)}}}]); \ No newline at end of file diff --git a/build/static/js/5580.da4f4eb4.chunk.js b/build/static/js/5580.da4f4eb4.chunk.js deleted file mode 100644 index c451a32..0000000 --- a/build/static/js/5580.da4f4eb4.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[5580],{7251:(e,t,r)=>{r.d(t,{A:()=>x});var n=r(98587),a=r(58168),o=r(3484),i=r(72004),c=r(9950),s=r(24184),l=r(23235),d=r(44414);const u=(0,l.A)((0,d.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");var v=r(59254),h=r(18463),f=r(89548),m=r(45558),p=r(1614);function A(e){return(0,p.Ay)("MuiTableSortLabel",e)}const g=(0,m.A)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),S=["active","children","className","direction","hideSortIcon","IconComponent"],b=(0,v.Ay)(s.A,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.active&&t.active]}})((e=>{let{theme:t}=e;return{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":{color:(t.vars||t).palette.text.secondary,["& .".concat(g.icon)]:{opacity:.5}},["&.".concat(g.active)]:{color:(t.vars||t).palette.text.primary,["& .".concat(g.icon)]:{opacity:1,color:(t.vars||t).palette.text.secondary}}}})),w=(0,v.Ay)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t["iconDirection".concat((0,f.A)(r.direction))]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,a.A)({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.shorter}),userSelect:"none"},"desc"===r.direction&&{transform:"rotate(0deg)"},"asc"===r.direction&&{transform:"rotate(180deg)"})})),x=c.forwardRef((function(e,t){const r=(0,h.b)({props:e,name:"MuiTableSortLabel"}),{active:c=!1,children:s,className:l,direction:v="asc",hideSortIcon:m=!1,IconComponent:p=u}=r,g=(0,n.A)(r,S),x=(0,a.A)({},r,{active:c,direction:v,hideSortIcon:m,IconComponent:p}),y=(e=>{const{classes:t,direction:r,active:n}=e,a={root:["root",n&&"active"],icon:["icon","iconDirection".concat((0,f.A)(r))]};return(0,o.A)(a,A,t)})(x);return(0,d.jsxs)(b,(0,a.A)({className:(0,i.A)(y.root,l),component:"span",disableRipple:!0,ownerState:x,ref:t},g,{children:[s,m&&!c?null:(0,d.jsx)(w,{as:p,className:(0,i.A)(y.icon),ownerState:x})]}))}))},8750:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(58168),a=r(9950);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var i=r(61187),c=function(e,t){return a.createElement(i.A,(0,n.A)({},e,{ref:t,icon:o}))};const s=a.forwardRef(c)},39060:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(58168),a=r(9950);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 01-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 00-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 00285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z"}}]},name:"phone",theme:"outlined"};var i=r(61187),c=function(e,t){return a.createElement(i.A,(0,n.A)({},e,{ref:t,icon:o}))};const s=a.forwardRef(c)},44070:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(58168),a=r(9950);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};var i=r(61187),c=function(e,t){return a.createElement(i.A,(0,n.A)({},e,{ref:t,icon:o}))};const s=a.forwardRef(c)},46639:(e,t,r)=>{r.d(t,{A:()=>I});var n=r(57528),a=r(98587),o=r(58168),i=r(9950),c=r(72004),s=r(3484),l=r(88283),d=r(89548),u=r(18463),v=r(59254),h=r(45558),f=r(1614);function m(e){return(0,f.Ay)("MuiCircularProgress",e)}(0,h.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var p,A,g,S,b=r(44414);const w=["className","color","disableShrink","size","style","thickness","value","variant"];let x,y,k,M;const C=44,D=(0,l.i7)(x||(x=p||(p=(0,n.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),R=(0,l.i7)(y||(y=A||(A=(0,n.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),z=(0,v.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["color".concat((0,d.A)(r.color))]]}})((e=>{let{ownerState:t,theme:r}=e;return(0,o.A)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,l.AH)(k||(k=g||(g=(0,n.A)(["\n animation: "," 1.4s linear infinite;\n "]))),D)})),L=(0,v.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),N=(0,v.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t["circle".concat((0,d.A)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:r}=e;return(0,o.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,l.AH)(M||(M=S||(S=(0,n.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),R)})),I=i.forwardRef((function(e,t){const r=(0,u.b)({props:e,name:"MuiCircularProgress"}),{className:n,color:i="primary",disableShrink:l=!1,size:v=40,style:h,thickness:f=3.6,value:p=0,variant:A="indeterminate"}=r,g=(0,a.A)(r,w),S=(0,o.A)({},r,{color:i,disableShrink:l,size:v,thickness:f,value:p,variant:A}),x=(e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,o={root:["root",r,"color".concat((0,d.A)(n))],svg:["svg"],circle:["circle","circle".concat((0,d.A)(r)),a&&"circleDisableShrink"]};return(0,s.A)(o,m,t)})(S),y={},k={},M={};if("determinate"===A){const e=2*Math.PI*((C-f)/2);y.strokeDasharray=e.toFixed(3),M["aria-valuenow"]=Math.round(p),y.strokeDashoffset="".concat(((100-p)/100*e).toFixed(3),"px"),k.transform="rotate(-90deg)"}return(0,b.jsx)(z,(0,o.A)({className:(0,c.A)(x.root,n),style:(0,o.A)({width:v,height:v},k,h),ownerState:S,ref:t,role:"progressbar"},M,g,{children:(0,b.jsx)(L,{className:x.svg,ownerState:S,viewBox:"".concat(22," ").concat(22," ").concat(C," ").concat(C),children:(0,b.jsx)(N,{className:x.circle,style:y,ownerState:S,cx:C,cy:C,r:(C-f)/2,fill:"none",strokeWidth:f})})}))}))},60767:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(58168),a=r(9950);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var i=r(61187),c=function(e,t){return a.createElement(i.A,(0,n.A)({},e,{ref:t,icon:o}))};const s=a.forwardRef(c)},79739:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(98587),a=r(58168),o=r(9950),i=r(72004),c=r(3484),s=r(59254),l=r(18463),d=r(45558),u=r(1614);function v(e){return(0,u.Ay)("MuiDialogActions",e)}(0,d.A)("MuiDialogActions",["root","spacing"]);var h=r(44414);const f=["className","disableSpacing"],m=(0,s.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,a.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),p=o.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1}=r,d=(0,n.A)(r,f),u=(0,a.A)({},r,{disableSpacing:s}),p=(e=>{const{classes:t,disableSpacing:r}=e,n={root:["root",!r&&"spacing"]};return(0,c.A)(n,v,t)})(u);return(0,h.jsx)(m,(0,a.A)({className:(0,i.A)(p.root,o),ownerState:u,ref:t},d))}))},80691:(e,t,r)=>{r.d(t,{A:()=>n});const n={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"}}}]); \ No newline at end of file diff --git a/build/static/js/5770.482ef079.chunk.js b/build/static/js/5770.482ef079.chunk.js deleted file mode 100644 index 3520412..0000000 --- a/build/static/js/5770.482ef079.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[5770],{35770:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m});var i=n(42074),s=n(16243),c=n(60899),a=n(16491),r=n(93230),o=n(82053),l=n(10226);n(9950);const h=n.p+"static/media/under-construction.9d3496bfce5cfb27a32f2fbc04607674.svg";var d=n(44414);const m=function(){return(0,d.jsxs)(c.Ay,{container:!0,spacing:4,direction:"column",alignItems:"center",justifyContent:"center",sx:{minHeight:"100vh",py:2},children:[(0,d.jsx)(c.Ay,{item:!0,xs:12,children:(0,d.jsx)(a.A,{sx:{width:{xs:300,sm:480}},children:(0,d.jsx)("img",{src:h,alt:"mantis",style:{width:"100%",height:"auto"}})})}),(0,d.jsx)(c.Ay,{item:!0,xs:12,children:(0,d.jsxs)(r.A,{spacing:2,justifyContent:"center",alignItems:"center",children:[(0,d.jsx)(o.A,{align:"center",variant:"h1",children:"Under Construction"}),(0,d.jsx)(o.A,{color:"textSecondary",align:"center",sx:{width:"85%"},children:"Hey! Please check out this site later. We are doing some maintenance on it right now."}),(0,d.jsx)(l.A,{component:i.N_,to:s.qm,variant:"contained",children:"Back To Home"})]})})]})}}}]); \ No newline at end of file diff --git a/build/static/js/5770.f24c6b1f.chunk.js b/build/static/js/5770.f24c6b1f.chunk.js new file mode 100644 index 0000000..210430f --- /dev/null +++ b/build/static/js/5770.f24c6b1f.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[5770],{35770:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m});var i=n(96492),s=n(16243),c=n(1939),a=n(48738),r=n(71392),o=n(2866),l=n(80911);n(85672);const h=n.p+"static/media/under-construction.9d3496bfce5cfb27a32f2fbc04607674.svg";var d=n(65908);const m=function(){return(0,d.jsxs)(c.Ay,{container:!0,spacing:4,direction:"column",alignItems:"center",justifyContent:"center",sx:{minHeight:"100vh",py:2},children:[(0,d.jsx)(c.Ay,{item:!0,xs:12,children:(0,d.jsx)(a.A,{sx:{width:{xs:300,sm:480}},children:(0,d.jsx)("img",{src:h,alt:"mantis",style:{width:"100%",height:"auto"}})})}),(0,d.jsx)(c.Ay,{item:!0,xs:12,children:(0,d.jsxs)(r.A,{spacing:2,justifyContent:"center",alignItems:"center",children:[(0,d.jsx)(o.A,{align:"center",variant:"h1",children:"Under Construction"}),(0,d.jsx)(o.A,{color:"textSecondary",align:"center",sx:{width:"85%"},children:"Hey! Please check out this site later. We are doing some maintenance on it right now."}),(0,d.jsx)(l.A,{component:i.N_,to:s.qm,variant:"contained",children:"Back To Home"})]})})]})}}}]); \ No newline at end of file diff --git a/build/static/js/5855.32e15e16.chunk.js b/build/static/js/5855.32e15e16.chunk.js deleted file mode 100644 index b78e410..0000000 --- a/build/static/js/5855.32e15e16.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[5855],{30633:(e,t,n)=>{"use strict";n.d(t,{l:()=>Ja});var a=n(58168),o=n(98587),r=n(9950),s=n.t(r,2),i=n(47223),l=n(48283),u=n(11942),c=n.n(u);function d(e,t,n){return"function"===typeof e?e(t,n):e}const m=c().oneOfType([c().func,c().object]),h=(e,t)=>e.length===t.length&&t.every((t=>e.includes(t))),p=(e,t,n)=>{let a=t;return a=e.setHours(a,e.getHours(n)),a=e.setMinutes(a,e.getMinutes(n)),a=e.setSeconds(a,e.getSeconds(n)),a},f=e=>{let{date:t,disableFuture:n,disablePast:a,maxDate:o,minDate:r,isDateDisabled:s,utils:i,timezone:l}=e;const u=p(i,i.dateWithTimezone(void 0,l),t);a&&i.isBefore(r,u)&&(r=u),n&&i.isAfter(o,u)&&(o=u);let c=t,d=t;for(i.isBefore(t,r)&&(c=r,d=null),i.isAfter(t,o)&&(d&&(d=o),c=null);c||d;){if(c&&i.isAfter(c,o)&&(c=null),d&&i.isBefore(d,r)&&(d=null),c){if(!s(c))return c;c=i.addDays(c,1)}if(d){if(!s(d))return d;d=i.addDays(d,-1)}}return null},y=(e,t,n)=>null!=t&&e.isValid(t)?t:n,g=(e,t)=>{const n=[e.startOfYear(t)];for(;n.length<12;){const t=n[n.length-1];n.push(e.addMonths(t,1))}return n},v=(e,t,n)=>"date"===n?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),b=["year","month","day"],w=e=>b.includes(e),D=(e,t,n)=>{let{format:a,views:o}=t;if(null!=a)return a;const r=e.formats;return h(o,["year"])?r.year:h(o,["month"])?r.month:h(o,["day"])?r.dayOfMonth:h(o,["month","year"])?"".concat(r.month," ").concat(r.year):h(o,["day","month"])?"".concat(r.month," ").concat(r.dayOfMonth):n?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},x=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map((t=>e.addDays(n,t)))},A=["hours","minutes","seconds"],M=(e,t)=>3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e),C={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},P=(e,t,n)=>{if(t===C.year)return e.startOfYear(n);if(t===C.month)return e.startOfMonth(n);if(t===C.day)return e.startOfDay(n);let a=n;return t{let{props:t,utils:n,granularity:a,timezone:o,getTodayDate:r}=e;var s;let i=r?r():P(n,a,v(n,o));null!=t.minDate&&n.isAfterDay(t.minDate,i)&&(i=P(n,a,t.minDate)),null!=t.maxDate&&n.isBeforeDay(t.maxDate,i)&&(i=P(n,a,t.maxDate));const l=((e,t)=>(n,a)=>e?t.isAfter(n,a):M(n,t)>M(a,t))(null!=(s=t.disableIgnoringDatePartForTimeValidation)&&s,n);return null!=t.minTime&&l(t.minTime,i)&&(i=P(n,a,t.disableIgnoringDatePartForTimeValidation?t.minTime:p(n,i,t.minTime))),null!=t.maxTime&&l(i,t.maxTime)&&(i=P(n,a,t.disableIgnoringDatePartForTimeValidation?t.maxTime:p(n,i,t.maxTime))),i},S=(e,t)=>{const n=e.formatTokenMap[t];if(null==n)throw new Error(['MUI: The token "'.concat(t,'" is not supported by the Date and Time Pickers.'),"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join("\n"));return"string"===typeof n?{type:n,contentType:"meridiem"===n?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},k=(e,t,n)=>{const a=[],o=e.dateWithTimezone(void 0,t),r=e.startOfWeek(o),s=e.endOfWeek(o);let i=r;for(;e.isBefore(i,s);)a.push(i),i=e.addDays(i,1);return a.map((t=>e.formatByString(t,n)))},V=(e,t,n,a)=>{switch(n){case"month":return g(e,e.dateWithTimezone(void 0,t)).map((t=>e.formatByString(t,a)));case"weekDay":return k(e,t,a);case"meridiem":{const n=e.dateWithTimezone(void 0,t);return[e.startOfDay(n),e.endOfDay(n)].map((t=>e.formatByString(t,a)))}default:return[]}},O=(e,t,n)=>{let a=t;for(a=Number(a).toString();a.length{if("day"===o.type&&"digit-with-letter"===o.contentType){const t=e.setDate(a.longestMonth,n);return e.formatByString(t,o.format)}const r=n.toString();return o.hasLeadingZerosInInput?O(0,r,o.maxLength):r},F=(e,t,n,a,o,r,s)=>{const i=(e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}})(a),l="Home"===a,u="End"===a,c=""===n.value||l||u;return"digit"===n.contentType||"digit-with-letter"===n.contentType?(()=>{const a=o[n.type]({currentDate:r,format:n.format,contentType:n.contentType}),d=t=>I(e,0,t,a,n),m="minutes"===n.type&&null!=s&&s.minutesStep?s.minutesStep:1;let h=parseInt(n.value,10)+i*m;if(c){if("year"===n.type&&!u&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);h=i>0||l?a.minimum:a.maximum}return h%m!==0&&((i<0||l)&&(h+=m-(m+h)%m),(i>0||u)&&(h-=h%m)),h>a.maximum?d(a.minimum+(h-a.maximum-1)%(a.maximum-a.minimum+1)):h{const a=V(e,t,n.type,n.format);if(0===a.length)return n.value;if(c)return i>0||l?a[0]:a[a.length-1];const o=a.indexOf(n.value);return a[(o+a.length+i)%a.length]})()},L=(e,t)=>{let n=e.value||e.placeholder;const a="non-input"===t?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;"non-input"===t&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString());return["input-rtl","input-ltr"].includes(t)&&"digit"===e.contentType&&!a&&1===n.length&&(n="".concat(n,"\u200e")),"input-rtl"===t&&(n="\u2068".concat(n,"\u2069")),n},R=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),N=(e,t)=>{let n=0,o=t?1:0;const r=[];for(let s=0;s{switch(a.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length,format:o});case"month":return n.fieldMonthPlaceholder({contentType:a.contentType,format:o});case"day":return n.fieldDayPlaceholder({format:o});case"weekDay":return n.fieldWeekDayPlaceholder({contentType:a.contentType,format:o});case"hours":return n.fieldHoursPlaceholder({format:o});case"minutes":return n.fieldMinutesPlaceholder({format:o});case"seconds":return n.fieldSecondsPlaceholder({format:o});case"meridiem":return n.fieldMeridiemPlaceholder({format:o});default:return o}},j=(e,t,n,a)=>e.formatByString(e.parse(t,n),a),z=(e,t,n)=>4===e.formatByString(e.dateWithTimezone(void 0,t),n).length,Y=(e,t,n,a,o)=>{if("digit"!==n)return!1;const r=e.dateWithTimezone(void 0,t);switch(a){case"year":if(z(e,t,o)){return"0001"===e.formatByString(e.setYear(r,1),o)}return"01"===e.formatByString(e.setYear(r,2001),o);case"month":return e.formatByString(e.startOfYear(r),o).length>1;case"day":return e.formatByString(e.startOfMonth(r),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(r),o).length>1;case"hours":return e.formatByString(e.setHours(r,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(r,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(r,1),o).length>1;default:throw new Error("Invalid section type")}},B=(e,t,n,o,r,s,i,l)=>{let u="";const c=[],d=e.date(),m=o=>{if(""===o)return null;const s=S(e,o),l=Y(e,t,s.contentType,s.type,o),m=i?l:"digit"===s.contentType,h=null!=r&&e.isValid(r);let p=h?e.formatByString(r,o):"",f=null;if(m)if(l)f=""===p?e.formatByString(d,o).length:p.length;else{if(null==s.maxLength)throw new Error("MUI: The token ".concat(o," should have a 'maxDigitNumber' property on it's adapter"));f=s.maxLength,h&&(p=O(0,p,f))}return c.push((0,a.A)({},s,{format:o,maxLength:f,value:p,placeholder:E(e,t,n,s,o),hasLeadingZeros:l,hasLeadingZerosInFormat:l,hasLeadingZerosInInput:m,startSeparator:0===c.length?u:"",endSeparator:"",modified:!1})),null};let h=10,p=o,f=e.expandFormat(o);for(;f!==p;)if(p=f,f=e.expandFormat(p),h-=1,h<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const y=f,g=((e,t)=>{const n=[],{start:a,end:o}=e.escapedCharacters,r=new RegExp("(\\".concat(a,"[^\\").concat(o,"]*\\").concat(o,")+"),"g");let s=null;for(;s=r.exec(t);)n.push({start:s.index,end:r.lastIndex-1});return n})(e,y),v=new RegExp("^(".concat(Object.keys(e.formatTokenMap).sort(((e,t)=>t.length-e.length)).join("|"),")"),"g");let b="";for(let a=0;ae.start<=a&&e.end>=a)),t=y[a],n=null!=e,o="".concat(b).concat(y.slice(a)),r=v.test(o);if(!n&&t.match(/([A-Za-z]+)/)&&r)b=o.slice(0,v.lastIndex),a+=v.lastIndex-1;else{n&&(null==e?void 0:e.start)===a||(null==e?void 0:e.end)===a||(m(b),b="",0===c.length?u+=t:c[c.length-1].endSeparator+=t)}}return m(b),c.map((e=>{const t=e=>{let t=e;return l&&null!==t&&t.includes(" ")&&(t="\u2069".concat(t,"\u2066")),"spacious"===s&&["/",".","-"].includes(t)&&(t=" ".concat(t," ")),t};return e.startSeparator=t(e.startSeparator),e.endSeparator=t(e.endSeparator),e}))};const H=(e,t)=>{0},W={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},U=(e,t,n,a,o,r)=>[...a].sort(((e,t)=>W[e.type]-W[t.type])).reduce(((a,o)=>!r||o.modified?((e,t,n,a,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(a));case"month":return e.setMonth(o,e.getMonth(a));case"weekDay":{const o=k(e,t,n.format),r=e.formatByString(a,n.format),s=o.indexOf(r),i=o.indexOf(n.value)-s;return e.addDays(a,i)}case"day":return e.setDate(o,e.getDate(a));case"meridiem":{const t=e.getHours(a)<12,n=e.getHours(o);return t&&n>=12?e.addHours(o,-12):!t&&n<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(a));case"minutes":return e.setMinutes(o,e.getMinutes(a));case"seconds":return e.setSeconds(o,e.getSeconds(a));default:return o}})(e,t,o,n,a):a),o),K=["value","referenceDate"],Z={emptyValue:null,getTodayValue:v,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,a=(0,o.A)(e,K);return null!=t&&a.utils.isValid(t)?t:null!=n?n:T(a)},cleanValue:(e,t)=>null!=t&&e.isValid(t)?t:null,areValuesEqual:(e,t,n)=>!e.isValid(t)&&null!=t&&!e.isValid(n)&&null!=n||e.isEqual(t,n),isSameError:(e,t)=>e===t,hasError:e=>null!=e,defaultErrorState:null,getTimezone:(e,t)=>null!=t&&e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>null==n?null:e.setTimezone(n,t)},$={updateReferenceValue:(e,t,n)=>null!=t&&e.isValid(t)?t:n,getSectionsFromValue:(e,t,n,a,o)=>!e.isValid(t)&&!!n?n:N(o(t),a),getValueStrFromSections:(e,t)=>{const n=e.map((e=>{const n=L(e,t?"input-rtl":"input-ltr");return"".concat(e.startSeparator).concat(n).concat(e.endSeparator)})).join("");return t?"\u2066".concat(n,"\u2069"):n},getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:e=>e,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:null!=n&&e.isValid(n)?n:t.referenceValue})}),parseValueStr:(e,t,n)=>n(e.trim(),t)};var q=n(81831);const G={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>"Select ".concat(e,". ").concat(null===t?"No time selected":"Selected time is ".concat(n.format(t,"fullTime"))),hoursClockNumberText:e=>"".concat(e," hours"),minutesClockNumberText:e=>"".concat(e," minutes"),secondsClockNumberText:e=>"".concat(e," seconds"),selectViewText:e=>"Select ".concat(e),calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>"Week ".concat(e),calendarWeekNumberText:e=>"".concat(e),openDatePickerDialogue:(e,t)=>null!==e&&t.isValid(e)?"Choose date, selected date is ".concat(t.format(e,"fullDate")):"Choose date",openTimePickerDialogue:(e,t)=>null!==e&&t.isValid(e)?"Choose time, selected time is ".concat(t.format(e,"fullTime")):"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>"letter"===e.contentType?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>"letter"===e.contentType?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},Q=G;X=G,(0,a.A)({},X);var X;const J=()=>{const e=r.useContext(q.F);if(null===e)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join("\n"));if(null===e.utils)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join("\n"));const t=r.useMemo((()=>(0,a.A)({},Q,e.localeText)),[e.localeText]);return r.useMemo((()=>(0,a.A)({},e,{localeText:t})),[e,t])},_=()=>J().utils,ee=()=>J().defaultDates,te=()=>J().localeText,ne=e=>{const t=_(),n=r.useRef();return void 0===n.current&&(n.current=t.dateWithTimezone(void 0,e)),n.current};var ae=n(72004),oe=n(82053),re=n(59254);function se(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const a={};return Object.keys(e).forEach((o=>{a[o]=e[o].reduce(((e,a)=>{if(a){const o=t(a);""!==o&&e.push(o),n&&n[a]&&e.push(n[a])}return e}),[]).join(" ")})),a}const ie=e=>e,le=(()=>{let e=ie;return{configure(t){e=t},generate:t=>e(t),reset(){e=ie}}})(),ue={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ce(e,t){const n=ue[t];return n?"".concat(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui","-").concat(n):"".concat(le.generate(e),"-").concat(t)}function de(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const a={};return t.forEach((t=>{a[t]=ce(e,t,n)})),a}function me(e){return ce("MuiPickersToolbar",e)}de("MuiPickersToolbar",["root","content"]);var he=n(44414);const pe=(0,re.Ay)("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t,ownerState:n}=e;return(0,a.A)({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:t.spacing(2,3)},n.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})})),fe=(0,re.Ay)("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})((e=>{let{ownerState:t}=e;var n;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:t.isLandscape?"flex-start":"space-between",flexDirection:t.isLandscape?null!=(n=t.landscapeDirection)?n:"column":"row",flex:1,alignItems:t.isLandscape?"flex-start":"center"}})),ye=r.forwardRef((function(e,t){const n=(0,l.A)({props:e,name:"MuiPickersToolbar"}),{children:a,className:o,toolbarTitle:r,hidden:s,titleId:i}=n,u=n,c=(e=>{const{classes:t,isLandscape:n}=e;return se({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},me,t)})(u);return s?null:(0,he.jsxs)(pe,{ref:t,className:(0,ae.A)(c.root,o),ownerState:u,children:[(0,he.jsx)(oe.A,{color:"text.secondary",variant:"overline",id:i,children:r}),(0,he.jsx)(fe,{className:c.content,ownerState:u,children:a})]})}));function ge(e){return ce("MuiDatePickerToolbar",e)}de("MuiDatePickerToolbar",["root","title"]);const ve=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className"],be=(0,re.Ay)(ye,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),we=(0,re.Ay)(oe.A,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})((e=>{let{ownerState:t}=e;return(0,a.A)({},t.isLandscape&&{margin:"auto 16px auto auto"})})),De=r.forwardRef((function(e,t){const n=(0,l.A)({props:e,name:"MuiDatePickerToolbar"}),{value:s,isLandscape:i,toolbarFormat:u,toolbarPlaceholder:c="\u2013\u2013",views:d,className:m}=n,h=(0,o.A)(n,ve),p=_(),f=te(),y=(e=>{const{classes:t}=e;return se({root:["root"],title:["title"]},ge,t)})(n),g=r.useMemo((()=>{if(!s)return c;const e=D(p,{format:u,views:d},!0);return p.formatByString(s,e)}),[s,u,c,p,d]),v=n;return(0,he.jsx)(be,(0,a.A)({ref:t,toolbarTitle:f.datePickerToolbarTitle,isLandscape:i,className:(0,ae.A)(y.root,m)},h,{children:(0,he.jsx)(we,{variant:"h4",align:i?"left":"center",ownerState:v,className:y.title,children:g})}))})),xe=e=>{if(void 0!==e)return Object.keys(e).reduce(((t,n)=>(0,a.A)({},t,{["".concat(n.slice(0,1).toLowerCase()).concat(n.slice(1))]:e[n]})),{})};function Ae(e,t){var n,o,s,i;const u=_(),c=ee(),d=(0,l.A)({props:e,name:t}),m=r.useMemo((()=>{var e;return null==(null==(e=d.localeText)?void 0:e.toolbarTitle)?d.localeText:(0,a.A)({},d.localeText,{datePickerToolbarTitle:d.localeText.toolbarTitle})}),[d.localeText]),h=null!=(n=d.slots)?n:xe(d.components);return(0,a.A)({},d,{localeText:m},(e=>{let{openTo:t,defaultOpenTo:n,views:a,defaultViews:o}=e;const r=null!=a?a:o;let s;if(null!=t)s=t;else if(r.includes(n))s=n;else{if(!(r.length>0))throw new Error("MUI: The `views` prop must contain at least one view");s=r[0]}return{views:r,openTo:s}})({views:d.views,openTo:d.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:null!=(o=d.disableFuture)&&o,disablePast:null!=(s=d.disablePast)&&s,minDate:y(u,d.minDate,c.minDate),maxDate:y(u,d.maxDate,c.maxDate),slots:(0,a.A)({toolbar:De},h),slotProps:null!=(i=d.slotProps)?i:d.componentsProps})}const Me=e=>{let{props:t,value:n,adapter:a}=e;if(null===n)return null;const{shouldDisableDate:o,shouldDisableMonth:r,shouldDisableYear:s,disablePast:i,disableFuture:l,timezone:u}=t,c=a.utils.dateWithTimezone(void 0,u),d=y(a.utils,t.minDate,a.defaultDates.minDate),m=y(a.utils,t.maxDate,a.defaultDates.maxDate);switch(!0){case!a.utils.isValid(n):return"invalidDate";case Boolean(o&&o(n)):return"shouldDisableDate";case Boolean(r&&r(n)):return"shouldDisableMonth";case Boolean(s&&s(n)):return"shouldDisableYear";case Boolean(l&&a.utils.isAfterDay(n,c)):return"disableFuture";case Boolean(i&&a.utils.isBeforeDay(n,c)):return"disablePast";case Boolean(d&&a.utils.isBeforeDay(n,d)):return"minDate";case Boolean(m&&a.utils.isAfterDay(n,m)):return"maxDate";default:return null}};var Ce=n(89379),Pe=n(80045);function Te(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"===typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function Se(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:a,externalForwardedProps:o,className:r}=e;if(!t){const e=(0,ae.A)(null===n||void 0===n?void 0:n.className,r,null===o||void 0===o?void 0:o.className,null===a||void 0===a?void 0:a.className),t=(0,Ce.A)((0,Ce.A)((0,Ce.A)({},null===n||void 0===n?void 0:n.style),null===o||void 0===o?void 0:o.style),null===a||void 0===a?void 0:a.style),s=(0,Ce.A)((0,Ce.A)((0,Ce.A)({},n),o),a);return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}((0,Ce.A)((0,Ce.A)({},o),a)),i=Te(a),l=Te(o),u=t(s),c=(0,ae.A)(null===u||void 0===u?void 0:u.className,null===n||void 0===n?void 0:n.className,r,null===o||void 0===o?void 0:o.className,null===a||void 0===a?void 0:a.className),d=(0,Ce.A)((0,Ce.A)((0,Ce.A)((0,Ce.A)({},null===u||void 0===u?void 0:u.style),null===n||void 0===n?void 0:n.style),null===o||void 0===o?void 0:o.style),null===a||void 0===a?void 0:a.style),m=(0,Ce.A)((0,Ce.A)((0,Ce.A)((0,Ce.A)({},u),n),l),i);return c.length>0&&(m.className=c),Object.keys(d).length>0&&(m.style=d),{props:m,internalRef:u.ref}}const ke=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ve(e){var t;const{elementType:n,externalSlotProps:a,ownerState:o,skipResolvingSlotProps:s=!1}=e,i=(0,Pe.A)(e,ke),l=s?{}:d(a,o),{props:u,internalRef:c}=Se((0,Ce.A)((0,Ce.A)({},i),{},{externalSlotProps:l})),m=function(){for(var e=arguments.length,t=new Array(e),n=0;nt.every((e=>null==e))?null:e=>{t.forEach((t=>{!function(e,t){"function"===typeof e?e(t):e&&(e.current=t)}(t,e)}))}),t)}(c,null===l||void 0===l?void 0:l.ref,null===(t=e.additionalProps)||void 0===t?void 0:t.ref),h=function(e,t,n){return void 0===e||"string"===typeof e?t:(0,Ce.A)((0,Ce.A)({},t),{},{ownerState:(0,Ce.A)((0,Ce.A)({},t.ownerState),n)})}(n,(0,Ce.A)((0,Ce.A)({},u),{},{ref:m}),o);return h}var Oe=n(2046),Ie=n(25333);function Fe(){for(var e=arguments.length,t=new Array(e),n=0;nt.every((e=>null==e))?null:e=>{t.forEach((t=>{!function(e,t){"function"===typeof e?e(t):e&&(e.current=t)}(t,e)}))}),t)}let Le=0;const Re=s["useId".toString()];function Ne(e){if(void 0!==Re){const t=Re();return null!=e?e:t}return function(e){const[t,n]=r.useState(e),a=e||t;return r.useEffect((()=>{null==t&&(Le+=1,n("mui-".concat(Le)))}),[t]),a}(e)}var Ee=n(40165),je=n(57191),ze=n(2235),Ye=n(1849),Be=n(98370);const He="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;const We=function(e){const t=r.useRef(e);return He((()=>{t.current=e})),r.useRef((function(){return(0,t.current)(...arguments)})).current};function Ue(e){return e&&e.ownerDocument||document}function Ke(e){return ce("MuiPickersPopper",e)}de("MuiPickersPopper",["root","paper"]);const Ze=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).activeElement;return e?e.shadowRoot?Ze(e.shadowRoot):e:null},$e="@media (pointer: fine)",qe="undefined"!==typeof navigator&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Ge=qe&&qe[1]?parseInt(qe[1],10):null,Qe=qe&&qe[2]?parseInt(qe[2],10):null,Xe=Ge&&Ge<10||Qe&&Qe<13||!1,Je=()=>(0,i.A)("@media (prefers-reduced-motion: reduce)",{defaultMatches:!1})||Xe,_e=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],et=(0,re.Ay)(Ye.A,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{zIndex:t.zIndex.modal}})),tt=(0,re.Ay)(ze.A,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})((e=>{let{ownerState:t}=e;return(0,a.A)({outline:0,transformOrigin:"top center"},t.placement.includes("top")&&{transformOrigin:"bottom center"})}));const nt=r.forwardRef(((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:s,children:i,paperSlotProps:l,paperClasses:u,onPaperClick:c,onPaperTouchStart:d}=e,m=(0,o.A)(e,_e),h=(0,a.A)({},s,{placement:r}),p=Ve({elementType:n,externalSlotProps:l,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:u,ownerState:h});return(0,he.jsx)(n,(0,a.A)({},m,p,{onClick:e=>{var t;c(e),null==(t=p.onClick)||t.call(p,e)},onTouchStart:e=>{var t;d(e),null==(t=p.onTouchStart)||t.call(p,e)},ownerState:h,children:i}))}));function at(e){var t,n,o,s;const i=(0,l.A)({props:e,name:"MuiPickersPopper"}),{anchorEl:u,children:c,containerRef:d=null,shouldRestoreFocus:m,onBlur:h,onDismiss:p,open:f,role:y,placement:g,slots:v,slotProps:b,reduceAnimations:w}=i;r.useEffect((()=>{function e(e){!f||"Escape"!==e.key&&"Esc"!==e.key||p()}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[p,f]);const D=r.useRef(null);r.useEffect((()=>{"tooltip"===y||m&&!m()||(f?D.current=Ze(document):D.current&&D.current instanceof HTMLElement&&setTimeout((()=>{D.current instanceof HTMLElement&&D.current.focus()})))}),[f,y,m]);const[x,A,M]=function(e,t){const n=r.useRef(!1),a=r.useRef(!1),o=r.useRef(null),s=r.useRef(!1);r.useEffect((()=>{if(e)return document.addEventListener("mousedown",t,!0),document.addEventListener("touchstart",t,!0),()=>{document.removeEventListener("mousedown",t,!0),document.removeEventListener("touchstart",t,!0),s.current=!1};function t(){s.current=!0}}),[e]);const i=We((e=>{if(!s.current)return;const r=a.current;a.current=!1;const i=Ue(o.current);if(!o.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!i.documentElement.contains(e.target)||o.current.contains(e.target),l||r||t(e)})),l=()=>{a.current=!0};return r.useEffect((()=>{if(e){const e=Ue(o.current),t=()=>{n.current=!0};return e.addEventListener("touchstart",i),e.addEventListener("touchmove",t),()=>{e.removeEventListener("touchstart",i),e.removeEventListener("touchmove",t)}}}),[e,i]),r.useEffect((()=>{if(e){const e=Ue(o.current);return e.addEventListener("click",i),()=>{e.removeEventListener("click",i),a.current=!1}}}),[e,i]),[o,l,l]}(f,null!=h?h:p),C=Fe(r.useRef(null),d),P=Fe(C,x),T=i,S=(e=>{const{classes:t}=e;return se({root:["root"],paper:["paper"]},Ke,t)})(T),k=Je(),V=null!=w?w:k,O=(null!=(t=null==v?void 0:v.desktopTransition)?t:V)?je.A:Ee.A,I=null!=(n=null==v?void 0:v.desktopTrapFocus)?n:Be.A,F=null!=(o=null==v?void 0:v.desktopPaper)?o:tt,L=null!=(s=null==v?void 0:v.popper)?s:et,R=Ve({elementType:L,externalSlotProps:null==b?void 0:b.popper,additionalProps:{transition:!0,role:y,open:f,anchorEl:u,placement:g,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),p())}},className:S.root,ownerState:i});return(0,he.jsx)(L,(0,a.A)({},R,{children:e=>{let{TransitionProps:t,placement:n}=e;return(0,he.jsx)(I,(0,a.A)({open:f,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:"tooltip"===y,isEnabled:()=>!0},null==b?void 0:b.desktopTrapFocus,{children:(0,he.jsx)(O,(0,a.A)({},t,null==b?void 0:b.desktopTransition,{children:(0,he.jsx)(nt,{PaperComponent:F,ownerState:T,popperPlacement:n,ref:P,onPaperClick:A,onPaperTouchStart:M,paperClasses:S.paper,paperSlotProps:null==b?void 0:b.desktopPaper,children:c})}))}))}}))}function ot(e){let{controlled:t,default:n,name:a,state:o="value"}=e;const{current:s}=r.useRef(void 0!==t),[i,l]=r.useState(n);return[s?t:i,r.useCallback((e=>{s||l(e)}),[])]}function rt(e,t,n,a){const{value:o,onError:s}=e,i=J(),l=r.useRef(a),u=t({adapter:i,value:o,props:e});return r.useEffect((()=>{s&&!n(u,l.current)&&s(u,o),l.current=u}),[n,s,l,u,o]),u}const st=e=>{let{timezone:t,value:n,defaultValue:a,onChange:o,valueManager:s}=e;var i,l;const u=_(),c=r.useRef(a),d=null!=(i=null!=n?n:c.current)?i:s.emptyValue,m=r.useMemo((()=>s.getTimezone(u,d)),[u,s,d]),h=We((e=>null==m?e:s.setTimezone(u,m,e))),p=null!=(l=null!=t?t:m)?l:"default";return{value:r.useMemo((()=>s.setTimezone(u,p,d)),[s,u,p,d]),handleValueChange:We((function(e){const t=h(e);for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r{let{name:t,timezone:n,value:a,defaultValue:o,onChange:r,valueManager:s}=e;const[i,l]=ot({name:t,state:"value",controlled:a,default:null!=o?o:s.emptyValue}),u=We((function(e){l(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{let{props:t,valueManager:n,valueType:o,wrapperVariant:s,validator:i}=e;const{onAccept:l,onChange:u,value:c,defaultValue:d,closeOnSelect:m="desktop"===s,selectedSections:h,onSelectedSectionsChange:p,timezone:f}=t,{current:y}=r.useRef(d),{current:g}=r.useRef(void 0!==c);const v=_(),b=J(),[w,D]=ot({controlled:h,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:x,setIsOpen:A}=(e=>{let{open:t,onOpen:n,onClose:a}=e;const o=r.useRef("boolean"===typeof t).current,[s,i]=r.useState(!1);return r.useEffect((()=>{if(o){if("boolean"!==typeof t)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(t)}}),[o,t]),{isOpen:s,setIsOpen:r.useCallback((e=>{o||i(e),e&&n&&n(),!e&&a&&a()}),[o,n,a])}})(t),[M,C]=r.useState((()=>{let e;return e=void 0!==c?c:void 0!==y?y:n.emptyValue,{draft:e,lastPublishedValue:e,lastCommittedValue:e,lastControlledValue:c,hasBeenModifiedSinceMount:!1}})),{timezone:P,handleValueChange:T}=st({timezone:f,value:c,defaultValue:y,onChange:u,valueManager:n});rt((0,a.A)({},t,{value:M.draft,timezone:P}),i,n.isSameError,n.defaultErrorState);const S=We((e=>{const o={action:e,dateState:M,hasChanged:t=>!n.areValuesEqual(v,e.value,t),isControlled:g,closeOnSelect:m},r=(e=>{const{action:t,hasChanged:n,dateState:a,isControlled:o}=e,r=!o&&!a.hasBeenModifiedSinceMount;return"setValueFromField"===t.name||("setValueFromAction"===t.name?!(!r||!["accept","today","clear"].includes(t.pickerAction))||n(a.lastPublishedValue):("setValueFromView"===t.name&&"shallow"!==t.selectionState||"setValueFromShortcut"===t.name)&&(!!r||n(a.lastPublishedValue)))})(o),s=(e=>{const{action:t,hasChanged:n,dateState:a,isControlled:o,closeOnSelect:r}=e,s=!o&&!a.hasBeenModifiedSinceMount;return"setValueFromAction"===t.name?!(!s||!["accept","today","clear"].includes(t.pickerAction))||n(a.lastCommittedValue):"setValueFromView"===t.name&&"finish"===t.selectionState&&r?!!s||n(a.lastCommittedValue):"setValueFromShortcut"===t.name&&"accept"===t.changeImportance&&n(a.lastCommittedValue)})(o),u=(e=>{const{action:t,closeOnSelect:n}=e;return"setValueFromAction"===t.name||("setValueFromView"===t.name?"finish"===t.selectionState&&n:"setValueFromShortcut"===t.name&&"accept"===t.changeImportance)})(o);if(C((t=>(0,a.A)({},t,{draft:e.value,lastPublishedValue:r?e.value:t.lastPublishedValue,lastCommittedValue:s?e.value:t.lastCommittedValue,hasBeenModifiedSinceMount:!0}))),r){const n={validationError:"setValueFromField"===e.name?e.context.validationError:i({adapter:b,value:e.value,props:(0,a.A)({},t,{value:e.value,timezone:P})})};"setValueFromShortcut"===e.name&&null!=e.shortcut&&(n.shortcut=e.shortcut),T(e.value,n)}s&&l&&l(e.value),u&&A(!1)}));if(void 0!==c&&(void 0===M.lastControlledValue||!n.areValuesEqual(v,M.lastControlledValue,c))){const e=n.areValuesEqual(v,M.draft,c);C((t=>(0,a.A)({},t,{lastControlledValue:c},e?{}:{lastCommittedValue:c,lastPublishedValue:c,draft:c,hasBeenModifiedSinceMount:!0})))}const k=We((()=>{S({value:n.emptyValue,name:"setValueFromAction",pickerAction:"clear"})})),V=We((()=>{S({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})})),O=We((()=>{S({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})})),I=We((()=>{S({value:M.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})})),F=We((()=>{S({value:n.getTodayValue(v,P,o),name:"setValueFromAction",pickerAction:"today"})})),L=We((()=>A(!0))),R=We((()=>A(!1))),N=We((function(e){return S({name:"setValueFromView",value:e,selectionState:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"partial"})})),E=We(((e,t,n)=>S({name:"setValueFromShortcut",value:e,changeImportance:null!=t?t:"accept",shortcut:n}))),j=We(((e,t)=>S({name:"setValueFromField",value:e,context:t}))),z=We((e=>{D(e),null==p||p(e)})),Y={onClear:k,onAccept:V,onDismiss:O,onCancel:I,onSetToday:F,onOpen:L,onClose:R},B={value:M.draft,onChange:j,selectedSections:w,onSelectedSectionsChange:z},H=r.useMemo((()=>n.cleanValue(v,M.draft)),[v,n,M.draft]);return{open:x,fieldProps:B,viewProps:{value:H,onChange:N,onClose:R,open:x,onSelectedSectionsChange:z},layoutProps:(0,a.A)({},Y,{value:H,onChange:N,onSelectShortcut:E,isValid:e=>{const o=i({adapter:b,value:e,props:(0,a.A)({},t,{value:e,timezone:P})});return!n.hasError(o)}}),actions:Y}};function ut(e){let{onChange:t,onViewChange:n,openTo:a,view:o,views:s,autoFocus:i,focusedView:l,onFocusedViewChange:u}=e;var c,d;const m=r.useRef(a),h=r.useRef(s),p=r.useRef(s.includes(a)?a:s[0]),[f,y]=ot({name:"useViews",state:"view",controlled:o,default:p.current}),g=r.useRef(i?f:null),[v,b]=ot({name:"useViews",state:"focusedView",controlled:l,default:g.current});r.useEffect((()=>{(m.current&&m.current!==a||h.current&&h.current.some((e=>!s.includes(e))))&&(y(s.includes(a)?a:s[0]),h.current=s,m.current=a)}),[a,y,f,s]);const w=s.indexOf(f),D=null!=(c=s[w-1])?c:null,x=null!=(d=s[w+1])?d:null,A=We(((e,t)=>{b(t?e:t=>e===t?null:t),null==u||u(e,t)})),M=We((e=>{A(e,!0),e!==f&&(y(e),n&&n(e))})),C=We((()=>{x&&M(x)})),P=We(((e,n,a)=>{const o="finish"===n,r=a?s.indexOf(a){let{props:t,propsFromPickerValue:n,additionalViewProps:s,inputRef:i,autoFocusView:l}=e;const{onChange:u,open:c,onSelectedSectionsChange:d,onClose:m}=n,{view:h,views:p,openTo:f,onViewChange:y,viewRenderers:g,timezone:v}=t,b=(0,o.A)(t,ct),{view:w,setView:D,defaultView:x,focusedView:M,setFocusedView:C,setValueAndGoToNextView:P}=ut({view:h,views:p,openTo:f,onChange:u,onViewChange:y,autoFocus:l}),{hasUIView:T,viewModeLookup:S}=r.useMemo((()=>p.reduce(((e,t)=>{let n;return n=null!=g[t]?"UI":"field",e.viewModeLookup[t]=n,"UI"===n&&(e.hasUIView=!0),e}),{hasUIView:!1,viewModeLookup:{}})),[g,p]),k=r.useMemo((()=>p.reduce(((e,t)=>null!=g[t]&&(e=>A.includes(e))(t)?e+1:e),0)),[g,p]),V=S[w],O=We((()=>"UI"===V)),[I,F]=r.useState("UI"===V?w:null);I!==w&&"UI"===S[w]&&F(w),He((()=>{"field"===V&&c&&(m(),setTimeout((()=>{null==i||i.current.focus(),d(w)})))}),[w]),He((()=>{if(!c)return;let e=w;"field"===V&&null!=I&&(e=I),e!==x&&"UI"===S[e]&&"UI"===S[x]&&(e=x),e!==w&&D(e),C(e,!0)}),[c]);return{hasUIView:T,shouldRestoreFocus:O,layoutProps:{views:p,view:I,onViewChange:D},renderCurrentView:()=>{if(null==I)return null;const e=g[I];return null==e?null:e((0,a.A)({},b,s,n,{views:p,timezone:v,onChange:P,view:I,onViewChange:D,focusedView:M,onFocusedViewChange:C,showViewSwitcher:k>1,timeViewsCount:k}))}}};function mt(){return"undefined"===typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}const ht=(e,t)=>{const[n,a]=r.useState(mt);if(He((()=>{const e=()=>{a(mt())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}}),[]),o=e,s=["hours","minutes","seconds"],Array.isArray(s)?s.every((e=>-1!==o.indexOf(e))):-1!==o.indexOf(s))return!1;var o,s;return"landscape"===(t||n)};(0,n(46081).f)(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const pt=e=>{let{props:t,valueManager:n,valueType:o,wrapperVariant:r,inputRef:s,additionalViewProps:i,validator:l,autoFocusView:u}=e;const c=lt({props:t,valueManager:n,valueType:o,wrapperVariant:r,validator:l}),d=dt({props:t,inputRef:s,additionalViewProps:i,autoFocusView:u,propsFromPickerValue:c.viewProps}),m=(e=>{let{props:t,propsFromPickerValue:n,propsFromPickerViews:o,wrapperVariant:r}=e;const{orientation:s}=t,i=ht(o.views,s);return{layoutProps:(0,a.A)({},o,n,{isLandscape:i,wrapperVariant:r,disabled:t.disabled,readOnly:t.readOnly})}})({props:t,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:d.layoutProps});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:d.renderCurrentView,hasUIView:d.hasUIView,shouldRestoreFocus:d.shouldRestoreFocus,layoutProps:m.layoutProps}};function ft(e){return ce("MuiPickersLayout",e)}const yt=de("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);var gt=n(10226),vt=n(79739);const bt=["onAccept","onClear","onCancel","onSetToday","actions"];function wt(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:s,actions:i}=e,l=(0,o.A)(e,bt),u=te();if(null==i||0===i.length)return null;const c=null==i?void 0:i.map((e=>{switch(e){case"clear":return(0,he.jsx)(gt.A,{onClick:n,children:u.clearButtonLabel},e);case"cancel":return(0,he.jsx)(gt.A,{onClick:r,children:u.cancelButtonLabel},e);case"accept":return(0,he.jsx)(gt.A,{onClick:t,children:u.okButtonLabel},e);case"today":return(0,he.jsx)(gt.A,{onClick:s,children:u.todayButtonLabel},e);default:return null}}));return(0,he.jsx)(vt.A,(0,a.A)({},l,{children:c}))}var Dt=n(249),xt=n(26050),At=n(25277);const Mt=320,Ct=["items","changeImportance","isLandscape","onChange","isValid"],Pt=["getValue"];function Tt(e){const{items:t,changeImportance:n,onChange:r,isValid:s}=e,i=(0,o.A)(e,Ct);if(null==t||0===t.length)return null;const l=t.map((e=>{let{getValue:t}=e,a=(0,o.A)(e,Pt);const i=t({isValid:s});return{label:a.label,onClick:()=>{r(i,n,a)},disabled:!s(i)}}));return(0,he.jsx)(Dt.A,(0,a.A)({dense:!0,sx:[{maxHeight:334,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:l.map((e=>(0,he.jsx)(xt.Ay,{children:(0,he.jsx)(At.A,(0,a.A)({},e))},e.label)))}))}const St=e=>{var t,n;const{wrapperVariant:o,onAccept:r,onClear:s,onCancel:i,onSetToday:l,view:u,views:c,onViewChange:d,value:m,onChange:h,onSelectShortcut:p,isValid:f,isLandscape:y,disabled:g,readOnly:v,children:b,components:w,componentsProps:D,slots:x,slotProps:A}=e,M=null!=x?x:xe(w),C=null!=A?A:D,P=(e=>{const{classes:t,isLandscape:n}=e;return se({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},ft,t)})(e),T=null!=(t=null==M?void 0:M.actionBar)?t:wt,S=Ve({elementType:T,externalSlotProps:null==C?void 0:C.actionBar,additionalProps:{onAccept:r,onClear:s,onCancel:i,onSetToday:l,actions:"desktop"===o?[]:["cancel","accept"],className:P.actionBar},ownerState:(0,a.A)({},e,{wrapperVariant:o})}),k=(0,he.jsx)(T,(0,a.A)({},S)),V=null==M?void 0:M.toolbar,O=Ve({elementType:V,externalSlotProps:null==C?void 0:C.toolbar,additionalProps:{isLandscape:y,onChange:h,value:m,view:u,onViewChange:d,views:c,disabled:g,readOnly:v,className:P.toolbar},ownerState:(0,a.A)({},e,{wrapperVariant:o})}),I=function(e){return null!==e.view}(O)&&V?(0,he.jsx)(V,(0,a.A)({},O)):null,F=b,L=null==M?void 0:M.tabs,R=u&&L?(0,he.jsx)(L,(0,a.A)({view:u,onViewChange:d,className:P.tabs},null==C?void 0:C.tabs)):null,N=null!=(n=null==M?void 0:M.shortcuts)?n:Tt,E=Ve({elementType:N,externalSlotProps:null==C?void 0:C.shortcuts,additionalProps:{isValid:f,isLandscape:y,onChange:p,className:P.shortcuts},ownerState:{isValid:f,isLandscape:y,onChange:p,className:P.shortcuts,wrapperVariant:o}});return{toolbar:I,content:F,tabs:R,actionBar:k,shortcuts:u&&N?(0,he.jsx)(N,(0,a.A)({},E)):null}},kt=(0,re.Ay)("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t,ownerState:n}=e;return{display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",["& .".concat(yt.toolbar)]:n.isLandscape?{gridColumn:"rtl"===t.direction?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[".".concat(yt.shortcuts)]:n.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:"rtl"===t.direction?3:1,gridRow:"2 / 3"},["& .".concat(yt.actionBar)]:{gridColumn:"1 / 4",gridRow:3}}}));kt.propTypes={as:c().elementType,ownerState:c().shape({isLandscape:c().bool.isRequired}).isRequired,sx:c().oneOfType([c().arrayOf(c().oneOfType([c().func,c().object,c().bool])),c().func,c().object])};const Vt=(0,re.Ay)("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Ot=function(e){const t=(0,l.A)({props:e,name:"MuiPickersLayout"}),{toolbar:n,content:a,tabs:o,actionBar:s,shortcuts:i}=St(t),{sx:u,className:c,isLandscape:d,ref:m,wrapperVariant:h}=t,p=t,f=(e=>{const{isLandscape:t,classes:n}=e;return se({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},ft,n)})(p);return(0,he.jsxs)(kt,{ref:m,sx:u,className:(0,ae.A)(c,f.root),ownerState:p,children:[d?i:n,d?n:i,(0,he.jsx)(Vt,{className:f.contentWrapper,children:"desktop"===h?(0,he.jsxs)(r.Fragment,{children:[a,o]}):(0,he.jsxs)(r.Fragment,{children:[o,a]})}),s]})},It=["props","getOpenDialogAriaText"],Ft=["ownerState"],Lt=["ownerState"];var Rt=n(23235);const Nt=(0,Rt.A)((0,he.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Et=(0,Rt.A)((0,he.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),jt=(0,Rt.A)((0,he.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),zt=(0,Rt.A)((0,he.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),Yt=((0,Rt.A)((0,he.jsxs)(r.Fragment,{children:[(0,he.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,he.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),(0,Rt.A)((0,he.jsx)("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),(0,Rt.A)((0,he.jsxs)(r.Fragment,{children:[(0,he.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,he.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),(0,Rt.A)((0,he.jsx)("path",{d:"M19 6.41 17.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"}),"Clear"));var Bt=n(29925),Ht=n(14857);const Wt=e=>{const t=_(),n=te(),o=J(),s="rtl"===(0,Ht.A)().direction,{valueManager:i,fieldValueManager:l,valueType:u,validator:c,internalProps:d,internalProps:{value:m,defaultValue:h,referenceDate:p,onChange:f,format:y,formatDensity:v="dense",selectedSections:b,onSelectedSectionsChange:w,shouldRespectLeadingZeros:D=!1,timezone:x}}=e,{timezone:A,value:M,handleValueChange:P}=st({timezone:x,value:m,defaultValue:h,onChange:f,valueManager:i}),T=r.useMemo((()=>((e,t)=>{const n=e.dateWithTimezone(void 0,t),a=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:r,longestMonth:s}=g(e,n).reduce(((t,n)=>{const a=e.getDaysInMonth(n);return a>t.maxDaysInMonth?{maxDaysInMonth:a,longestMonth:n}:t}),{maxDaysInMonth:0,longestMonth:null});return{year:n=>{let{format:a}=n;return{minimum:0,maximum:z(e,t,a)?9999:99}},month:()=>({minimum:1,maximum:e.getMonth(a)+1}),day:t=>{let{currentDate:n}=t;return{minimum:1,maximum:null!=n&&e.isValid(n)?e.getDaysInMonth(n):r,longestMonth:s}},weekDay:n=>{let{format:a,contentType:o}=n;if("digit"===o){const n=k(e,t,a).map(Number);return{minimum:Math.min(...n),maximum:Math.max(...n)}}return{minimum:1,maximum:7}},hours:t=>{let{format:a}=t;const r=e.getHours(o);return e.formatByString(e.endOfDay(n),a)!==r.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),a))}:{minimum:0,maximum:r}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}})(t,A)),[t,A]),S=r.useCallback((function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return l.getSectionsFromValue(t,e,a,s,(e=>B(t,A,n,y,e,v,D,s)))}),[l,y,n,s,D,t,v,A]),V=r.useMemo((()=>l.getValueStrFromSections(S(i.emptyValue),s)),[l,S,i.emptyValue,s]),[O,I]=r.useState((()=>{const e=S(M);H();const n={sections:e,value:M,referenceValue:i.emptyValue,tempValueStrAndroid:null},o=(e=>Math.max(...e.map((e=>{var t;return null!=(t=C[e.type])?t:1}))))(e),r=i.getInitialReferenceValue({referenceDate:p,value:M,utils:t,props:d,granularity:o,timezone:A});return(0,a.A)({},n,{referenceValue:r})})),[F,R]=ot({controlled:b,default:null,name:"useField",state:"selectedSectionIndexes"}),E=e=>{R(e),null==w||w(e),I((e=>(0,a.A)({},e,{selectedSectionQuery:null})))},j=r.useMemo((()=>{if(null==F)return null;if("all"===F)return{startIndex:0,endIndex:O.sections.length-1,shouldSelectBoundarySelectors:!0};if("number"===typeof F)return{startIndex:F,endIndex:F};if("string"===typeof F){const e=O.sections.findIndex((e=>e.type===F));return{startIndex:e,endIndex:e}}return F}),[F,O.sections]),Y=e=>{let{value:n,referenceValue:r,sections:s}=e;if(I((e=>(0,a.A)({},e,{sections:s,value:n,referenceValue:r,tempValueStrAndroid:null}))),i.areValuesEqual(t,O.value,n))return;const l={validationError:c({adapter:o,value:n,props:(0,a.A)({},d,{value:n,timezone:A})})};P(n,l)},W=(e,t)=>{const n=[...O.sections];return n[e]=(0,a.A)({},n[e],{value:t,modified:!0}),N(n,s)};return r.useEffect((()=>{const e=S(O.value);H(),I((t=>(0,a.A)({},t,{sections:e})))}),[y,t.locale]),r.useEffect((()=>{let e=!1;e=!i.areValuesEqual(t,O.value,M)||i.getTimezone(t,O.value)!==i.getTimezone(t,M),e&&I((e=>(0,a.A)({},e,{value:M,referenceValue:l.updateReferenceValue(t,M,e.referenceValue),sections:S(M)})))}),[M]),{state:O,selectedSectionIndexes:j,setSelectedSections:E,clearValue:()=>{Y({value:i.emptyValue,referenceValue:O.referenceValue,sections:S(i.emptyValue)})},clearActiveSection:()=>{if(null==j)return;const e=O.sections[j.startIndex],n=l.getActiveDateManager(t,O,e),o=n.getSections(O.sections).filter((e=>""!==e.value)).length===(""===e.value?0:1),r=W(j.startIndex,""),s=o?null:t.date(new Date("")),i=n.getNewValuesFromNewActiveDate(s);(null!=s&&!t.isValid(s))!==(null!=n.date&&!t.isValid(n.date))?Y((0,a.A)({},i,{sections:r})):I((e=>(0,a.A)({},e,i,{sections:r,tempValueStrAndroid:null})))},updateSectionValue:e=>{let{activeSection:n,newSectionValue:o,shouldGoToNextSection:r}=e;r&&j&&j.startIndex{const n=t.some((e=>"day"===e.type)),a=[],o=[];for(let i=0;i(0,a.A)({},e,d,{sections:i,tempValueStrAndroid:null})))},updateValueFromValueStr:e=>{const a=l.parseValueStr(e,O.referenceValue,((e,a)=>{const o=t.parse(e,y);if(null==o||!t.isValid(o))return null;const r=B(t,A,n,y,o,v,D,s);return U(t,A,o,r,a,!1)})),o=l.updateReferenceValue(t,a,O.referenceValue);Y({value:a,referenceValue:o,sections:S(a,O.sections)})},setTempAndroidValueStr:e=>I((t=>(0,a.A)({},t,{tempValueStrAndroid:e}))),sectionsValueBoundaries:T,placeholder:V,timezone:A}},Ut=e=>null!=e.saveQuery,Kt=e=>{let{sections:t,updateSectionValue:n,sectionsValueBoundaries:o,setTempAndroidValueStr:s,timezone:i}=e;const l=_(),[u,c]=r.useState(null),d=We((()=>c(null)));r.useEffect((()=>{var e;null!=u&&(null==(e=t[u.sectionIndex])?void 0:e.type)!==u.sectionType&&d()}),[t,u,d]),r.useEffect((()=>{if(null!=u){const e=setTimeout((()=>d()),5e3);return()=>{window.clearTimeout(e)}}return()=>{}}),[u,d]);const m=(e,n,a)=>{let{keyPressed:o,sectionIndex:r}=e;const s=o.toLowerCase(),i=t[r];if(null!=u&&(!a||a(u.value))&&u.sectionIndex===r){const e="".concat(u.value).concat(s),t=n(e,i);if(!Ut(t))return c({sectionIndex:r,value:e,sectionType:i.type}),t}const l=n(s,i);return Ut(l)&&!l.saveQuery?(d(),null):(c({sectionIndex:r,value:s,sectionType:i.type}),Ut(l)?null:l)};return{applyCharacterEditing:We((e=>{const r=t[e.sectionIndex],u=" "!==e.keyPressed&&!Number.isNaN(Number(e.keyPressed))?(e=>{const t=(e,t)=>{const n=Number("".concat(e)),a=o[t.type]({currentDate:null,format:t.format,contentType:t.contentType});if(n>a.maximum)return{saveQuery:!1};if(na.maximum||e.length===a.maximum.toString().length;return{sectionValue:I(l,0,n,a,t),shouldGoToNextSection:r}};return m(e,((e,n)=>{if("digit"===n.contentType||"digit-with-letter"===n.contentType)return t(e,n);if("month"===n.type){const o=Y(l,i,"digit","month","MM"),r=t(e,{type:n.type,format:"MM",hasLeadingZerosInFormat:o,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Ut(r))return r;const s=j(l,r.sectionValue,"MM",n.format);return(0,a.A)({},r,{sectionValue:s})}if("weekDay"===n.type){const o=t(e,n);if(Ut(o))return o;const r=k(l,i,n.format)[Number(o.sectionValue)-1];return(0,a.A)({},o,{sectionValue:r})}return{saveQuery:!1}}),(e=>!Number.isNaN(Number(e))))})(e):(e=>{const t=(e,t,n)=>{const a=t.filter((e=>e.toLowerCase().startsWith(n)));return 0===a.length?{saveQuery:!1}:{sectionValue:a[0],shouldGoToNextSection:1===a.length}},n=(e,n,o,r)=>{const s=e=>V(l,i,n.type,e);if("letter"===n.contentType)return t(n.format,s(n.format),e);if(o&&null!=r&&"letter"===S(l,o).contentType){const n=s(o),i=t(0,n,e);return Ut(i)?{saveQuery:!1}:(0,a.A)({},i,{sectionValue:r(i.sectionValue,n)})}return{saveQuery:!1}};return m(e,((e,t)=>{switch(t.type){case"month":{const a=e=>j(l,e,l.formats.month,t.format);return n(e,t,l.formats.month,a)}case"weekDay":{const a=(e,t)=>t.indexOf(e).toString();return n(e,t,l.formats.weekday,a)}case"meridiem":return n(e,t);default:return{saveQuery:!1}}}))})(e);null==u?s(null):n({activeSection:r,newSectionValue:u.sectionValue,shouldGoToNextSection:u.shouldGoToNextSection})})),resetCharacterQuery:d}},Zt=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],$t=e=>{const t=_(),{state:n,selectedSectionIndexes:s,setSelectedSections:i,clearValue:l,clearActiveSection:u,updateSectionValue:c,updateValueFromValueStr:d,setTempAndroidValueStr:m,sectionsValueBoundaries:h,placeholder:p,timezone:f}=Wt(e),{inputRef:y,internalProps:g,internalProps:{readOnly:v=!1,unstableFieldRef:b,minutesStep:w},forwardedProps:{onClick:D,onKeyDown:x,onFocus:A,onBlur:M,onMouseUp:C,onPaste:P,error:T,clearable:S,onClear:k,disabled:V},fieldValueManager:O,valueManager:I,validator:L}=e,N=(0,o.A)(e.forwardedProps,Zt),{applyCharacterEditing:E,resetCharacterQuery:j}=Kt({sections:n.sections,updateSectionValue:c,sectionsValueBoundaries:h,setTempAndroidValueStr:m,timezone:f}),z=r.useRef(null),Y=Fe(y,z),B=r.useRef(void 0),H="rtl"===(0,Ht.A)().direction,W=r.useMemo((()=>((e,t)=>{const n={};if(!t)return e.forEach(((t,a)=>{const o=0===a?null:a-1,r=a===e.length-1?null:a+1;n[a]={leftIndex:o,rightIndex:r}})),{neighbors:n,startIndex:0,endIndex:e.length-1};const a={},o={};let r=0,s=0,i=e.length-1;for(;i>=0;){s=e.findIndex(((e,t)=>{var n;return t>=r&&(null==(n=e.endSeparator)?void 0:n.includes(" "))&&" / "!==e.endSeparator})),-1===s&&(s=e.length-1);for(let e=s;e>=r;e-=1)o[e]=i,a[i]=e,i-=1;r=s+1}return e.forEach(((t,r)=>{const s=o[r],i=0===s?null:a[s-1],l=s===e.length-1?null:a[s+1];n[r]={leftIndex:i,rightIndex:l}})),{neighbors:n,startIndex:a[0],endIndex:a[e.length-1]}})(n.sections,H)),[n.sections,H]),U=()=>{var e;if(v)return void i(null);const t=null!=(e=z.current.selectionStart)?e:0;let a;a=t<=n.sections[0].startInInput||t>=n.sections[n.sections.length-1].endInInput?1:n.sections.findIndex((e=>e.startInInput-e.startSeparator.length>t));const o=-1===a?n.sections.length-1:a-1;i(o)},K=We((function(e){if(!e.isDefaultPrevented()){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{null==C||C(e),e.preventDefault()})),$=We((function(){null==A||A(...arguments);const e=z.current;window.clearTimeout(B.current),B.current=setTimeout((()=>{e&&e===z.current&&(null!=s||v||(e.value.length&&Number(e.selectionEnd)-Number(e.selectionStart)===e.value.length?i("all"):U()))}))})),q=We((function(){null==M||M(...arguments),i(null)})),G=We((e=>{if(null==P||P(e),v)return void e.preventDefault();const t=e.clipboardData.getData("text");if(s&&s.startIndex===s.endIndex){const a=n.sections[s.startIndex],o=/^[a-zA-Z]+$/.test(t),r=/^[0-9]+$/.test(t),i=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(t);if("letter"===a.contentType&&o||"digit"===a.contentType&&r||"digit-with-letter"===a.contentType&&i)return j(),c({activeSection:a,newSectionValue:t,shouldGoToNextSection:!0}),void e.preventDefault();if(o||r)return void e.preventDefault()}e.preventDefault(),j(),d(t)})),Q=We((e=>{if(v)return;const t=e.target.value;if(""===t)return j(),void l();const a=e.nativeEvent.data,o=a&&a.length>1,r=o?a:t,i=R(r);if(null==s||o)return void d(o?a:i);let c;if(0===s.startIndex&&s.endIndex===n.sections.length-1&&1===i.length)c=i;else{const e=R(O.getValueStrFromSections(n.sections,H));let t=-1,a=-1;for(let n=0;no.end)return;const r=i.length-e.length+o.end-R(o.endSeparator||"").length;c=i.slice(o.start+R(o.startSeparator||"").length,r)}0!==c.length?E({keyPressed:c,sectionIndex:s.startIndex}):navigator.userAgent.toLowerCase().indexOf("android")>-1?m(r):(j(),u())})),X=We((e=>{switch(null==x||x(e),!0){case"a"===e.key&&(e.ctrlKey||e.metaKey):e.preventDefault(),i("all");break;case"ArrowRight"===e.key:if(e.preventDefault(),null==s)i(W.startIndex);else if(s.startIndex!==s.endIndex)i(s.endIndex);else{const e=W.neighbors[s.startIndex].rightIndex;null!==e&&i(e)}break;case"ArrowLeft"===e.key:if(e.preventDefault(),null==s)i(W.endIndex);else if(s.startIndex!==s.endIndex)i(s.startIndex);else{const e=W.neighbors[s.startIndex].leftIndex;null!==e&&i(e)}break;case"Delete"===e.key:if(e.preventDefault(),v)break;null==s||0===s.startIndex&&s.endIndex===n.sections.length-1?l():u(),j();break;case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(e.key):{if(e.preventDefault(),v||null==s)break;const a=n.sections[s.startIndex],o=O.getActiveDateManager(t,n,a),r=F(t,f,a,e.key,h,o.date,{minutesStep:w});c({activeSection:a,newSectionValue:r,shouldGoToNextSection:!1});break}}}));He((()=>{if(!z.current)return;if(null==s)return void(z.current.scrollLeft&&(z.current.scrollLeft=0));const e=n.sections[s.startIndex],t=n.sections[s.endIndex];let a=e.startInInput,o=t.endInInput;if(s.shouldSelectBoundarySelectors&&(a-=e.startSeparator.length,o+=t.endSeparator.length),a!==z.current.selectionStart||o!==z.current.selectionEnd){const e=z.current.scrollTop;z.current===Ze(document)&&z.current.setSelectionRange(a,o),z.current.scrollTop=e}}));const J=rt((0,a.A)({},g,{value:n.value,timezone:f}),L,I.isSameError,I.defaultErrorState),ee=r.useMemo((()=>void 0!==T?T:I.hasError(J)),[I,J,T]);r.useEffect((()=>{ee||s||j()}),[n.referenceValue,s,ee]),r.useEffect((()=>(z.current&&z.current===document.activeElement&&i("all"),()=>window.clearTimeout(B.current))),[]),r.useEffect((()=>{null!=n.tempValueStrAndroid&&null!=s&&(j(),u())}),[n.tempValueStrAndroid]);const te=r.useMemo((()=>{var e;return null!=(e=n.tempValueStrAndroid)?e:O.getValueStrFromSections(n.sections,H)}),[n.sections,O,n.tempValueStrAndroid,H]),ne=r.useMemo((()=>null==s||"letter"===n.sections[s.startIndex].contentType?"text":"numeric"),[s,n.sections]),ae=z.current&&z.current===Ze(document),oe=I.areValuesEqual(t,n.value,I.emptyValue),re=!ae&&oe;r.useImperativeHandle(b,(()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var e,t,a;const o=null!=(e=z.current.selectionStart)?e:0,r=null!=(t=z.current.selectionEnd)?t:0,s=!(null==(a=z.current)||!a.readOnly);if(0===o&&0===r||s)return null;const i=o<=n.sections[0].startInInput?1:n.sections.findIndex((e=>e.startInInput-e.startSeparator.length>o));return-1===i?n.sections.length-1:i-1},setSelectedSections:e=>i(e)})));const se=We((function(e){var t;e.preventDefault();for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;oXt.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{}),_t=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],en=e=>{let{props:t,inputRef:n}=e;const o=(e=>{var t,n,o;const r=_(),s=ee();return(0,a.A)({},e,{disablePast:null!=(t=e.disablePast)&&t,disableFuture:null!=(n=e.disableFuture)&&n,format:null!=(o=e.format)?o:r.formats.keyboardDate,minDate:y(r,e.minDate,s.minDate),maxDate:y(r,e.maxDate,s.maxDate)})})(t),{forwardedProps:r,internalProps:s}=((e,t)=>{const n=(0,a.A)({},e),o={},r=e=>{n.hasOwnProperty(e)&&(o[e]=n[e],delete n[e])};return _t.forEach(r),"date"===t?qt.forEach(r):"time"===t?Gt.forEach(r):"date-time"===t&&(qt.forEach(r),Gt.forEach(r),Qt.forEach(r)),{forwardedProps:n,internalProps:o}})(o,"date");return $t({inputRef:n,forwardedProps:r,internalProps:s,valueManager:Z,fieldValueManager:$,validator:Me,valueType:"date"})},tn=["ownerState"],nn=["components","componentsProps","slots","slotProps","InputProps","inputProps"],an=["inputRef"],on=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],rn=r.forwardRef((function(e,t){var n,s,i;const u=(0,l.A)({props:e,name:"MuiDateField"}),{components:c,componentsProps:d,slots:m,slotProps:h,InputProps:p,inputProps:f}=u,y=(0,o.A)(u,nn),g=u,v=null!=(n=null!=(s=null==m?void 0:m.textField)?s:null==c?void 0:c.TextField)?n:Bt.A,b=Ve({elementType:v,externalSlotProps:null!=(i=null==h?void 0:h.textField)?i:null==d?void 0:d.textField,externalForwardedProps:y,ownerState:g}),{inputRef:w}=b,D=(0,o.A)(b,an);D.inputProps=(0,a.A)({},f,D.inputProps),D.InputProps=(0,a.A)({},p,D.InputProps);const x=en({props:D,inputRef:w}),{ref:A,onPaste:M,onKeyDown:C,inputMode:P,readOnly:T,clearable:S,onClear:k}=x,V=(0,o.A)(x,on),{InputProps:O,fieldProps:I}=(e=>{let{clearable:t,fieldProps:n,InputProps:s,onClear:i,slots:l,slotProps:u,components:c,componentsProps:d}=e;var m,h,p,f,y,g;const v=te(),b=null!=(m=null!=(h=null==l?void 0:l.clearButton)?h:null==c?void 0:c.ClearButton)?m:Ie.A,w=Ve({elementType:b,externalSlotProps:null!=(p=null==u?void 0:u.clearButton)?p:null==d?void 0:d.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:v.fieldClearLabel}}),D=(0,o.A)(w,tn),x=null!=(f=null!=(y=null==l?void 0:l.clearIcon)?y:null==c?void 0:c.ClearIcon)?f:Yt,A=Ve({elementType:x,externalSlotProps:null!=(g=null==u?void 0:u.clearIcon)?g:null==d?void 0:d.clearIcon,ownerState:{}});return{InputProps:(0,a.A)({},s,{endAdornment:(0,he.jsxs)(r.Fragment,{children:[t&&(0,he.jsx)(Oe.A,{position:"end",sx:{marginRight:null!=s&&s.endAdornment?-1:-1.5},children:(0,he.jsx)(b,(0,a.A)({},D,{onClick:i,children:(0,he.jsx)(x,(0,a.A)({fontSize:"small"},A))}))}),null==s?void 0:s.endAdornment]})}),fieldProps:(0,a.A)({},n,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(n.sx)?n.sx:[n.sx]]})}})({onClear:k,clearable:S,fieldProps:V,InputProps:V.InputProps,slots:m,slotProps:h,components:c,componentsProps:d});return(0,he.jsx)(v,(0,a.A)({ref:t},I,{InputProps:(0,a.A)({},O,{readOnly:T}),inputProps:(0,a.A)({},V.inputProps,{inputMode:P,onPaste:M,onKeyDown:C,ref:A})}))})),sn=e=>{let{shouldDisableDate:t,shouldDisableMonth:n,shouldDisableYear:a,minDate:o,maxDate:s,disableFuture:i,disablePast:l,timezone:u}=e;const c=J();return r.useCallback((e=>null!==Me({adapter:c,value:e,props:{shouldDisableDate:t,shouldDisableMonth:n,shouldDisableYear:a,minDate:o,maxDate:s,disableFuture:i,disablePast:l,timezone:u}})),[c,t,n,a,o,s,i,l,u])},ln=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:o,disableFuture:s,disablePast:i,disableSwitchToMonthOnDayFocus:l=!1,maxDate:u,minDate:c,onMonthChange:d,reduceAnimations:m,shouldDisableDate:h,timezone:p}=e,f=_(),y=r.useRef(((e,t,n)=>(o,r)=>{switch(r.type){case"changeMonth":return(0,a.A)({},o,{slideDirection:r.direction,currentMonth:r.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return(0,a.A)({},o,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(null!=o.focusedDay&&null!=r.focusedDay&&n.isSameDay(r.focusedDay,o.focusedDay))return o;const s=null!=r.focusedDay&&!t&&!n.isSameMonth(o.currentMonth,r.focusedDay);return(0,a.A)({},o,{focusedDay:r.focusedDay,isMonthSwitchingAnimating:s&&!e&&!r.withoutMonthSwitchingAnimation,currentMonth:s?n.startOfMonth(r.focusedDay):o.currentMonth,slideDirection:null!=r.focusedDay&&n.isAfterDay(r.focusedDay,o.currentMonth)?"left":"right"})}default:throw new Error("missing support")}})(Boolean(m),l,f)).current,g=r.useMemo((()=>{let a=null;return n?a=n:o&&(a=f.startOfMonth(o)),Z.getInitialReferenceValue({value:t,utils:f,timezone:p,props:e,referenceDate:a,granularity:C.day})}),[]),[v,b]=r.useReducer(y,{isMonthSwitchingAnimating:!1,focusedDay:g,currentMonth:f.startOfMonth(g),slideDirection:"left"}),w=r.useCallback((e=>{b((0,a.A)({type:"changeMonth"},e)),d&&d(e.newMonth)}),[d]),D=r.useCallback((e=>{const t=e;f.isSameMonth(t,v.currentMonth)||w({newMonth:f.startOfMonth(t),direction:f.isAfterDay(t,v.currentMonth)?"left":"right"})}),[v.currentMonth,w,f]),x=sn({shouldDisableDate:h,minDate:c,maxDate:u,disableFuture:s,disablePast:i,timezone:p}),A=r.useCallback((()=>{b({type:"finishMonthSwitchingAnimation"})}),[]),M=We(((e,t)=>{x(e)||b({type:"changeFocusedDay",focusedDay:e,withoutMonthSwitchingAnimation:t})}));return{referenceDate:g,calendarState:v,changeMonth:D,changeFocusedDay:M,isDateDisabled:x,onMonthSwitchingAnimationEnd:A,handleChangeMonth:w}};var un=n(38166);const cn=e=>ce("MuiPickersFadeTransitionGroup",e),dn=(de("MuiPickersFadeTransitionGroup",["root"]),(0,re.Ay)(un.A,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"}));function mn(e){const t=(0,l.A)({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:a,reduceAnimations:o,transKey:r}=t,s=(e=>{const{classes:t}=e;return se({root:["root"]},cn,t)})(t),i=(0,Ht.A)();return o?n:(0,he.jsx)(dn,{className:(0,ae.A)(s.root,a),children:(0,he.jsx)(je.A,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:i.transitions.duration.enteringScreen,enter:i.transitions.duration.enteringScreen,exit:0},children:n},r)})}var hn=n(24184),pn=n(97497);function fn(e){return ce("MuiPickersDay",e)}const yn=de("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),gn=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],vn=e=>{let{theme:t,ownerState:n}=e;return(0,a.A)({},t.typography.caption,{width:36,height:36,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:t.transitions.create("background-color",{duration:t.transitions.duration.short}),color:(t.vars||t).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,pn.X4)(t.palette.primary.main,t.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.focusOpacity,")"):(0,pn.X4)(t.palette.primary.main,t.palette.action.focusOpacity),["&.".concat(yn.selected)]:{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},["&.".concat(yn.selected)]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,fontWeight:t.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},["&.".concat(yn.disabled,":not(.").concat(yn.selected,")")]:{color:(t.vars||t).palette.text.disabled},["&.".concat(yn.disabled,"&.").concat(yn.selected)]:{opacity:.6}},!n.disableMargin&&{margin:"0 ".concat(2,"px")},n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&{color:(t.vars||t).palette.text.secondary},!n.disableHighlightToday&&n.today&&{["&:not(.".concat(yn.selected,")")]:{border:"1px solid ".concat((t.vars||t).palette.text.secondary)}})},bn=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},wn=(0,re.Ay)(hn.A,{name:"MuiPickersDay",slot:"Root",overridesResolver:bn})(vn),Dn=(0,re.Ay)("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:bn})((e=>{let{theme:t,ownerState:n}=e;return(0,a.A)({},vn({theme:t,ownerState:n}),{opacity:0,pointerEvents:"none"})})),xn=()=>{},An=r.forwardRef((function(e,t){const n=(0,l.A)({props:e,name:"MuiPickersDay"}),{autoFocus:s=!1,className:i,day:u,disabled:c=!1,disableHighlightToday:d=!1,disableMargin:m=!1,isAnimating:h,onClick:p,onDaySelect:f,onFocus:y=xn,onBlur:g=xn,onKeyDown:v=xn,onMouseDown:b=xn,onMouseEnter:w=xn,outsideCurrentMonth:D,selected:x=!1,showDaysOutsideCurrentMonth:A=!1,children:M,today:C=!1}=n,P=(0,o.A)(n,gn),T=(0,a.A)({},n,{autoFocus:s,disabled:c,disableHighlightToday:d,disableMargin:m,selected:x,showDaysOutsideCurrentMonth:A,today:C}),S=(e=>{const{selected:t,disableMargin:n,disableHighlightToday:a,today:o,disabled:r,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:i,classes:l}=e,u=s&&!i;return se({root:["root",t&&!u&&"selected",r&&"disabled",!n&&"dayWithMargin",!a&&o&&"today",s&&i&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},fn,l)})(T),k=_(),V=r.useRef(null),O=Fe(V,t);He((()=>{!s||c||h||D||V.current.focus()}),[s,c,h,D]);return D&&!A?(0,he.jsx)(Dn,{className:(0,ae.A)(S.root,S.hiddenDaySpacingFiller,i),ownerState:T,role:P.role}):(0,he.jsx)(wn,(0,a.A)({className:(0,ae.A)(S.root,i),ref:O,centerRipple:!0,disabled:c,tabIndex:x?0:-1,onKeyDown:e=>v(e,u),onFocus:e=>y(e,u),onBlur:e=>g(e,u),onMouseEnter:e=>w(e,u),onClick:e=>{c||f(u),D&&e.currentTarget.focus(),p&&p(e)},onMouseDown:e=>{b(e),D&&e.preventDefault()}},P,{ownerState:T,children:M||k.format(u,"dayOfMonth")}))})),Mn=r.memo(An);var Cn=n(77387);function Pn(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Tn=n(67279),Sn=n(50385),kn=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return a=t,void((n=e).classList?n.classList.remove(a):"string"===typeof n.className?n.className=Pn(n.className,a):n.setAttribute("class",Pn(n.className&&n.className.baseVal||"",a)));var n,a}))},Vn=function(e){function t(){for(var t,n=arguments.length,a=new Array(n),o=0;oce("MuiPickersSlideTransition",e),Fn=de("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Ln=["children","className","reduceAnimations","slideDirection","transKey","classes"],Rn=(0,re.Ay)(un.A,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[".".concat(Fn["slideEnter-left"])]:t["slideEnter-left"]},{[".".concat(Fn["slideEnter-right"])]:t["slideEnter-right"]},{[".".concat(Fn.slideEnterActive)]:t.slideEnterActive},{[".".concat(Fn.slideExit)]:t.slideExit},{[".".concat(Fn["slideExitActiveLeft-left"])]:t["slideExitActiveLeft-left"]},{[".".concat(Fn["slideExitActiveLeft-right"])]:t["slideExitActiveLeft-right"]}]})((e=>{let{theme:t}=e;const n=t.transitions.create("transform",{duration:t.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},["& .".concat(Fn["slideEnter-left"])]:{willChange:"transform",transform:"translate(100%)",zIndex:1},["& .".concat(Fn["slideEnter-right"])]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},["& .".concat(Fn.slideEnterActive)]:{transform:"translate(0%)",transition:n},["& .".concat(Fn.slideExit)]:{transform:"translate(0%)"},["& .".concat(Fn["slideExitActiveLeft-left"])]:{willChange:"transform",transform:"translate(-100%)",transition:n,zIndex:0},["& .".concat(Fn["slideExitActiveLeft-right"])]:{willChange:"transform",transform:"translate(100%)",transition:n,zIndex:0}}}));const Nn=e=>ce("MuiDayCalendar",e),En=(de("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]),["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"]),jn=["ownerState"],zn=(0,re.Ay)("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Yn=(0,re.Ay)("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Bn=(0,re.Ay)(oe.A,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})((e=>{let{theme:t}=e;return{width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(t.vars||t).palette.text.secondary}})),Hn=(0,re.Ay)(oe.A,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})((e=>{let{theme:t}=e;return{width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:t.palette.text.disabled}})),Wn=(0,re.Ay)(oe.A,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})((e=>{let{theme:t}=e;return(0,a.A)({},t.typography.caption,{width:36,height:36,padding:0,margin:"0 ".concat(2,"px"),color:t.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})})),Un=(0,re.Ay)("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:240}),Kn=(0,re.Ay)((function(e){const t=(0,l.A)({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:s,reduceAnimations:i,transKey:u}=t,c=(0,o.A)(t,Ln),d=(e=>{const{classes:t,slideDirection:n}=e;return se({root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:["slideEnter-".concat(n)],exitActive:["slideExitActiveLeft-".concat(n)]},In,t)})(t),m=(0,Ht.A)();if(i)return(0,he.jsx)("div",{className:(0,ae.A)(d.root,s),children:n});const h={exit:d.exit,enterActive:d.enterActive,enter:d.enter,exitActive:d.exitActive};return(0,he.jsx)(Rn,{className:(0,ae.A)(d.root,s),childFactory:e=>r.cloneElement(e,{classNames:h}),role:"presentation",children:(0,he.jsx)(On,(0,a.A)({mountOnEnter:!0,unmountOnExit:!0,timeout:m.transitions.duration.complex,classNames:h},c,{children:n}),u)})}),{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:240}),Zn=(0,re.Ay)("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),$n=(0,re.Ay)("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:"".concat(2,"px 0"),display:"flex",justifyContent:"center"});function qn(e){var t,n,s;let{parentProps:i,day:l,focusableDay:u,selectedDays:c,isDateDisabled:d,currentMonthNumber:m,isViewFocused:h}=e,p=(0,o.A)(e,En);const{disabled:f,disableHighlightToday:y,isMonthSwitchingAnimating:g,showDaysOutsideCurrentMonth:v,components:b,componentsProps:w,slots:D,slotProps:x,timezone:A}=i,M=_(),C=ne(A),P=null!==u&&M.isSameDay(l,u),T=c.some((e=>M.isSameDay(e,l))),S=M.isSameDay(l,C),k=null!=(t=null!=(n=null==D?void 0:D.day)?n:null==b?void 0:b.Day)?t:Mn,V=Ve({elementType:k,externalSlotProps:null!=(s=null==x?void 0:x.day)?s:null==w?void 0:w.day,additionalProps:(0,a.A)({disableHighlightToday:y,showDaysOutsideCurrentMonth:v,role:"gridcell",isAnimating:g,"data-timestamp":M.toJsDate(l).valueOf()},p),ownerState:(0,a.A)({},i,{day:l,selected:T})}),O=(0,o.A)(V,jn),I=r.useMemo((()=>f||d(l)),[f,d,l]),F=r.useMemo((()=>M.getMonth(l)!==m),[M,l,m]),L=r.useMemo((()=>{const e=M.startOfMonth(M.setMonth(l,m));return v?M.isSameDay(l,M.startOfWeek(e)):M.isSameDay(l,e)}),[m,l,v,M]),R=r.useMemo((()=>{const e=M.endOfMonth(M.setMonth(l,m));return v?M.isSameDay(l,M.endOfWeek(e)):M.isSameDay(l,e)}),[m,l,v,M]);return(0,he.jsx)(k,(0,a.A)({},O,{day:l,disabled:I,autoFocus:h&&P,today:S,outsideCurrentMonth:F,isFirstVisibleCell:L,isLastVisibleCell:R,selected:T,tabIndex:P?0:-1,"aria-selected":T,"aria-current":S?"date":void 0}))}function Gn(e){const t=(0,l.A)({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:o,currentMonth:s,selectedDays:i,focusedDay:u,loading:c,onSelectedDaysChange:d,onMonthSwitchingAnimationEnd:m,readOnly:h,reduceAnimations:p,renderLoading:y=()=>(0,he.jsx)("span",{children:"..."}),slideDirection:g,TransitionProps:v,disablePast:b,disableFuture:w,minDate:D,maxDate:A,shouldDisableDate:M,shouldDisableMonth:C,shouldDisableYear:P,dayOfWeekFormatter:T,hasFocus:S,onFocusedViewChange:k,gridLabelId:V,displayWeekNumber:O,fixedWeekNumber:I,autoFocus:F,timezone:L}=t,R=ne(L),N=_(),E=(e=>{const{classes:t}=e;return se({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Nn,t)})(t),j="rtl"===(0,Ht.A)().direction,z=T||((e,t)=>N.format(t,"weekdayShort").charAt(0).toUpperCase()),Y=sn({shouldDisableDate:M,shouldDisableMonth:C,shouldDisableYear:P,minDate:D,maxDate:A,disablePast:b,disableFuture:w,timezone:L}),B=te(),[H,W]=ot({name:"DayCalendar",state:"hasFocus",controlled:S,default:null!=F&&F}),[U,K]=r.useState((()=>u||R)),Z=We((e=>{h||d(e)})),$=e=>{Y(e)||(n(e),K(e),null==k||k(!0),W(!0))},q=We(((e,t)=>{switch(e.key){case"ArrowUp":$(N.addDays(t,-7)),e.preventDefault();break;case"ArrowDown":$(N.addDays(t,7)),e.preventDefault();break;case"ArrowLeft":{const n=N.addDays(t,j?1:-1),a=N.addMonths(t,j?1:-1),o=f({utils:N,date:n,minDate:j?n:N.startOfMonth(a),maxDate:j?N.endOfMonth(a):n,isDateDisabled:Y,timezone:L});$(o||n),e.preventDefault();break}case"ArrowRight":{const n=N.addDays(t,j?-1:1),a=N.addMonths(t,j?-1:1),o=f({utils:N,date:n,minDate:j?N.startOfMonth(a):n,maxDate:j?n:N.endOfMonth(a),isDateDisabled:Y,timezone:L});$(o||n),e.preventDefault();break}case"Home":$(N.startOfWeek(t)),e.preventDefault();break;case"End":$(N.endOfWeek(t)),e.preventDefault();break;case"PageUp":$(N.addMonths(t,1)),e.preventDefault();break;case"PageDown":$(N.addMonths(t,-1)),e.preventDefault()}})),G=We(((e,t)=>$(t))),Q=We(((e,t)=>{H&&N.isSameDay(U,t)&&(null==k||k(!1))})),X=N.getMonth(s),J=r.useMemo((()=>i.filter((e=>!!e)).map((e=>N.startOfDay(e)))),[N,i]),ee=X,oe=r.useMemo((()=>r.createRef()),[ee]),re=N.startOfWeek(R),ie=r.useMemo((()=>{const e=N.startOfMonth(s),t=N.endOfMonth(s);return Y(U)||N.isAfterDay(U,t)||N.isBeforeDay(U,e)?f({utils:N,date:U,minDate:e,maxDate:t,disablePast:b,disableFuture:w,isDateDisabled:Y,timezone:L}):U}),[s,w,b,U,Y,N,L]),le=r.useMemo((()=>{const e=N.setTimezone(s,L),t=N.getWeekArray(e);let n=N.addMonths(e,1);for(;I&&t.length{t.length{var n;const a=N.format(e,"weekdayShort");return(0,he.jsx)(Bn,{variant:"caption",role:"columnheader","aria-label":N.format(N.addDays(re,t),"weekday"),className:E.weekDayLabel,children:null!=(n=null==z?void 0:z(a,e))?n:a},a+t.toString())}))]}),c?(0,he.jsx)(Un,{className:E.loadingContainer,children:y()}):(0,he.jsx)(Kn,(0,a.A)({transKey:ee,onExited:m,reduceAnimations:p,slideDirection:g,className:(0,ae.A)(o,E.slideTransition)},v,{nodeRef:oe,children:(0,he.jsx)(Zn,{ref:oe,role:"rowgroup",className:E.monthContainer,children:le.map(((e,n)=>(0,he.jsxs)($n,{role:"row",className:E.weekContainer,"aria-rowindex":n+1,children:[O&&(0,he.jsx)(Wn,{className:E.weekNumber,role:"rowheader","aria-label":B.calendarWeekNumberAriaLabelText(N.getWeekNumber(e[0])),children:B.calendarWeekNumberText(N.getWeekNumber(e[0]))}),e.map(((e,n)=>(0,he.jsx)(qn,{parentProps:t,day:e,selectedDays:J,focusableDay:ie,onKeyDown:q,onFocus:G,onBlur:Q,onDaySelect:Z,isDateDisabled:Y,currentMonthNumber:X,isViewFocused:H,"aria-colindex":n+1},e.toString())))]},"week-".concat(e[0]))))})}))]})}var Qn=n(7148);function Xn(e){return ce("MuiPickersMonth",e)}const Jn=de("MuiPickersMonth",["root","monthButton","disabled","selected"]),_n=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],ea=(0,re.Ay)("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})((e=>{let{ownerState:t}=e;return{flexBasis:3===t.monthsPerRow?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"}})),ta=(0,re.Ay)("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{["&.".concat(Jn.disabled)]:t.disabled},{["&.".concat(Jn.selected)]:t.selected}]})((e=>{let{theme:t}=e;return(0,a.A)({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,pn.X4)(t.palette.action.active,t.palette.action.hoverOpacity)},"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,pn.X4)(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},["&.".concat(Jn.disabled)]:{color:(t.vars||t).palette.text.secondary},["&.".concat(Jn.selected)]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})})),na=r.memo((function(e){const t=(0,l.A)({props:e,name:"MuiPickersMonth"}),{autoFocus:n,children:s,disabled:i,selected:u,value:c,tabIndex:d,onClick:m,onKeyDown:h,onFocus:p,onBlur:f,"aria-current":y,"aria-label":g}=t,v=(0,o.A)(t,_n),b=r.useRef(null),w=(e=>{const{disabled:t,selected:n,classes:a}=e;return se({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},Xn,a)})(t);return He((()=>{var e;n&&(null==(e=b.current)||e.focus())}),[n]),(0,he.jsx)(ea,(0,a.A)({className:w.root,ownerState:t},v,{children:(0,he.jsx)(ta,{ref:b,disabled:i,type:"button",role:"radio",tabIndex:i?-1:d,"aria-current":y,"aria-checked":u,"aria-label":g,onClick:e=>m(e,c),onKeyDown:e=>h(e,c),onFocus:e=>p(e,c),onBlur:e=>f(e,c),className:w.monthButton,ownerState:t,children:s})}))}));function aa(e){return ce("MuiMonthCalendar",e)}de("MuiMonthCalendar",["root"]);const oa=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"];const ra=(0,re.Ay)("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Mt,boxSizing:"border-box"}),sa=r.forwardRef((function(e,t){const n=function(e,t){const n=_(),o=ee(),r=(0,l.A)({props:e,name:t});return(0,a.A)({disableFuture:!1,disablePast:!1},r,{minDate:y(n,r.minDate,o.minDate),maxDate:y(n,r.maxDate,o.maxDate)})}(e,"MuiMonthCalendar"),{className:s,value:i,defaultValue:u,referenceDate:c,disabled:d,disableFuture:m,disablePast:h,maxDate:p,minDate:f,onChange:v,shouldDisableMonth:b,readOnly:w,disableHighlightToday:D,autoFocus:x=!1,onMonthFocus:A,hasFocus:M,onFocusedViewChange:P,monthsPerRow:T=3,timezone:S,gridLabelId:k}=n,V=(0,o.A)(n,oa),{value:O,handleValueChange:I,timezone:F}=it({name:"MonthCalendar",timezone:S,value:i,defaultValue:u,onChange:v,valueManager:Z}),L=ne(F),R=(0,Qn.A)(),N=_(),E=r.useMemo((()=>Z.getInitialReferenceValue({value:O,utils:N,props:n,timezone:F,referenceDate:c,granularity:C.month})),[]),j=n,z=(e=>{const{classes:t}=e;return se({root:["root"]},aa,t)})(j),Y=r.useMemo((()=>N.getMonth(L)),[N,L]),B=r.useMemo((()=>null!=O?N.getMonth(O):D?null:N.getMonth(E)),[O,N,D,E]),[H,W]=r.useState((()=>B||Y)),[U,K]=ot({name:"MonthCalendar",state:"hasFocus",controlled:M,default:null!=x&&x}),$=We((e=>{K(e),P&&P(e)})),q=r.useCallback((e=>{const t=N.startOfMonth(h&&N.isAfter(L,f)?L:f),n=N.startOfMonth(m&&N.isBefore(L,p)?L:p),a=N.startOfMonth(e);return!!N.isBefore(a,t)||(!!N.isAfter(a,n)||!!b&&b(a))}),[m,h,p,f,L,b,N]),G=We(((e,t)=>{if(w)return;const n=N.setMonth(null!=O?O:E,t);I(n)})),Q=We((e=>{q(N.setMonth(null!=O?O:E,e))||(W(e),$(!0),A&&A(e))}));r.useEffect((()=>{W((e=>null!==B&&e!==B?B:e))}),[B]);const X=We(((e,t)=>{const n=12;switch(e.key){case"ArrowUp":Q((n+t-3)%n),e.preventDefault();break;case"ArrowDown":Q((n+t+3)%n),e.preventDefault();break;case"ArrowLeft":Q((n+t+("ltr"===R.direction?-1:1))%n),e.preventDefault();break;case"ArrowRight":Q((n+t+("ltr"===R.direction?1:-1))%n),e.preventDefault()}})),J=We(((e,t)=>{Q(t)})),te=We(((e,t)=>{H===t&&$(!1)}));return(0,he.jsx)(ra,(0,a.A)({ref:t,className:(0,ae.A)(z.root,s),ownerState:j,role:"radiogroup","aria-labelledby":k},V,{children:g(N,null!=O?O:E).map((e=>{const t=N.getMonth(e),n=N.format(e,"monthShort"),a=N.format(e,"month"),o=t===B,r=d||q(e);return(0,he.jsx)(na,{selected:o,value:t,onClick:G,onKeyDown:X,autoFocus:U&&t===H,disabled:r,tabIndex:t===H?0:-1,onFocus:J,onBlur:te,"aria-current":Y===t?"date":void 0,"aria-label":a,monthsPerRow:T,children:n},n)}))}))}));function ia(e){return ce("MuiPickersYear",e)}const la=de("MuiPickersYear",["root","yearButton","selected","disabled"]),ua=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],ca=(0,re.Ay)("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})((e=>{let{ownerState:t}=e;return{flexBasis:3===t.yearsPerRow?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"}})),da=(0,re.Ay)("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{["&.".concat(la.disabled)]:t.disabled},{["&.".concat(la.selected)]:t.selected}]})((e=>{let{theme:t}=e;return(0,a.A)({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.focusOpacity,")"):(0,pn.X4)(t.palette.action.active,t.palette.action.focusOpacity)},"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,pn.X4)(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},["&.".concat(la.disabled)]:{color:(t.vars||t).palette.text.secondary},["&.".concat(la.selected)]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})})),ma=r.memo((function(e){const t=(0,l.A)({props:e,name:"MuiPickersYear"}),{autoFocus:n,className:s,children:i,disabled:u,selected:c,value:d,tabIndex:m,onClick:h,onKeyDown:p,onFocus:f,onBlur:y,"aria-current":g}=t,v=(0,o.A)(t,ua),b=r.useRef(null),w=(e=>{const{disabled:t,selected:n,classes:a}=e;return se({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},ia,a)})(t);return r.useEffect((()=>{n&&b.current.focus()}),[n]),(0,he.jsx)(ca,(0,a.A)({className:(0,ae.A)(w.root,s),ownerState:t},v,{children:(0,he.jsx)(da,{ref:b,disabled:u,type:"button",role:"radio",tabIndex:u?-1:m,"aria-current":g,"aria-checked":c,onClick:e=>h(e,d),onKeyDown:e=>p(e,d),onFocus:e=>f(e,d),onBlur:e=>y(e,d),className:w.yearButton,ownerState:t,children:i})}))}));function ha(e){return ce("MuiYearCalendar",e)}de("MuiYearCalendar",["root"]);const pa=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"];const fa=(0,re.Ay)("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Mt,maxHeight:280,boxSizing:"border-box",position:"relative"}),ya=r.forwardRef((function(e,t){const n=function(e,t){var n;const o=_(),r=ee(),s=(0,l.A)({props:e,name:t});return(0,a.A)({disablePast:!1,disableFuture:!1},s,{yearsPerRow:null!=(n=s.yearsPerRow)?n:3,minDate:y(o,s.minDate,r.minDate),maxDate:y(o,s.maxDate,r.maxDate)})}(e,"MuiYearCalendar"),{autoFocus:s,className:i,value:u,defaultValue:c,referenceDate:d,disabled:m,disableFuture:h,disablePast:p,maxDate:f,minDate:g,onChange:v,readOnly:b,shouldDisableYear:w,disableHighlightToday:D,onYearFocus:x,hasFocus:A,onFocusedViewChange:M,yearsPerRow:P,timezone:T,gridLabelId:S}=n,k=(0,o.A)(n,pa),{value:V,handleValueChange:O,timezone:I}=it({name:"YearCalendar",timezone:T,value:u,defaultValue:c,onChange:v,valueManager:Z}),F=ne(I),L=(0,Qn.A)(),R=_(),N=r.useMemo((()=>Z.getInitialReferenceValue({value:V,utils:R,props:n,timezone:I,referenceDate:d,granularity:C.year})),[]),E=n,j=(e=>{const{classes:t}=e;return se({root:["root"]},ha,t)})(E),z=r.useMemo((()=>R.getYear(F)),[R,F]),Y=r.useMemo((()=>null!=V?R.getYear(V):D?null:R.getYear(N)),[V,R,D,N]),[B,H]=r.useState((()=>Y||z)),[W,U]=ot({name:"YearCalendar",state:"hasFocus",controlled:A,default:null!=s&&s}),K=We((e=>{U(e),M&&M(e)})),$=r.useCallback((e=>{if(p&&R.isBeforeYear(e,F))return!0;if(h&&R.isAfterYear(e,F))return!0;if(g&&R.isBeforeYear(e,g))return!0;if(f&&R.isAfterYear(e,f))return!0;if(!w)return!1;const t=R.startOfYear(e);return w(t)}),[h,p,f,g,F,w,R]),q=We(((e,t)=>{if(b)return;const n=R.setYear(null!=V?V:N,t);O(n)})),G=We((e=>{$(R.setYear(null!=V?V:N,e))||(H(e),K(!0),null==x||x(e))}));r.useEffect((()=>{H((e=>null!==Y&&e!==Y?Y:e))}),[Y]);const Q=We(((e,t)=>{switch(e.key){case"ArrowUp":G(t-P),e.preventDefault();break;case"ArrowDown":G(t+P),e.preventDefault();break;case"ArrowLeft":G(t+("ltr"===L.direction?-1:1)),e.preventDefault();break;case"ArrowRight":G(t+("ltr"===L.direction?1:-1)),e.preventDefault()}})),X=We(((e,t)=>{G(t)})),J=We(((e,t)=>{B===t&&K(!1)})),te=r.useRef(null),oe=Fe(t,te);return r.useEffect((()=>{if(s||null===te.current)return;const e=te.current.querySelector('[tabindex="0"]');if(!e)return;const t=e.offsetHeight,n=e.offsetTop,a=te.current.clientHeight,o=te.current.scrollTop,r=n+t;t>a||n{const t=R.getYear(e),n=t===Y,a=m||$(e);return(0,he.jsx)(ma,{selected:n,value:t,onClick:q,onKeyDown:Q,autoFocus:W&&t===B,disabled:a,tabIndex:t===B?0:-1,onFocus:X,onBlur:J,"aria-current":z===t?"date":void 0,yearsPerRow:P,children:R.format(e,"year")},R.format(e,"year"))}))}))}));function ga(e){return ce("MuiPickersArrowSwitcher",e)}de("MuiPickersArrowSwitcher",["root","spacer","button"]);const va=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],ba=["ownerState"],wa=["ownerState"],Da=(0,re.Ay)("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),xa=(0,re.Ay)("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})((e=>{let{theme:t}=e;return{width:t.spacing(3)}})),Aa=(0,re.Ay)(Ie.A,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})((e=>{let{ownerState:t}=e;return(0,a.A)({},t.hidden&&{visibility:"hidden"})})),Ma=r.forwardRef((function(e,t){var n,r,s,i;const u="rtl"===(0,Ht.A)().direction,c=(0,l.A)({props:e,name:"MuiPickersArrowSwitcher"}),{children:d,className:m,slots:h,slotProps:p,isNextDisabled:f,isNextHidden:y,onGoToNext:g,nextLabel:v,isPreviousDisabled:b,isPreviousHidden:w,onGoToPrevious:D,previousLabel:x}=c,A=(0,o.A)(c,va),M=c,C=(e=>{const{classes:t}=e;return se({root:["root"],spacer:["spacer"],button:["button"]},ga,t)})(M),P={isDisabled:f,isHidden:y,goTo:g,label:v},T={isDisabled:b,isHidden:w,goTo:D,label:x},S=null!=(n=null==h?void 0:h.previousIconButton)?n:Aa,k=Ve({elementType:S,externalSlotProps:null==p?void 0:p.previousIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"end",onClick:T.goTo},ownerState:(0,a.A)({},M,{hidden:T.isHidden}),className:C.button}),V=null!=(r=null==h?void 0:h.nextIconButton)?r:Aa,O=Ve({elementType:V,externalSlotProps:null==p?void 0:p.nextIconButton,additionalProps:{size:"medium",title:P.label,"aria-label":P.label,disabled:P.isDisabled,edge:"start",onClick:P.goTo},ownerState:(0,a.A)({},M,{hidden:P.isHidden}),className:C.button}),I=null!=(s=null==h?void 0:h.leftArrowIcon)?s:Et,F=Ve({elementType:I,externalSlotProps:null==p?void 0:p.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),L=(0,o.A)(F,ba),R=null!=(i=null==h?void 0:h.rightArrowIcon)?i:jt,N=Ve({elementType:R,externalSlotProps:null==p?void 0:p.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),E=(0,o.A)(N,wa);return(0,he.jsxs)(Da,(0,a.A)({ref:t,className:(0,ae.A)(C.root,m),ownerState:M},A,{children:[(0,he.jsx)(S,(0,a.A)({},k,{children:u?(0,he.jsx)(R,(0,a.A)({},E)):(0,he.jsx)(I,(0,a.A)({},L))})),d?(0,he.jsx)(oe.A,{variant:"subtitle1",component:"span",children:d}):(0,he.jsx)(xa,{className:C.spacer,ownerState:M}),(0,he.jsx)(V,(0,a.A)({},O,{children:u?(0,he.jsx)(I,(0,a.A)({},L)):(0,he.jsx)(R,(0,a.A)({},E))}))]}))}));const Ca=e=>ce("MuiPickersCalendarHeader",e),Pa=de("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),Ta=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],Sa=["ownerState"],ka=(0,re.Ay)("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),Va=(0,re.Ay)("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})((e=>{let{theme:t}=e;return(0,a.A)({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},t.typography.body1,{fontWeight:t.typography.fontWeightMedium})})),Oa=(0,re.Ay)("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Ia=(0,re.Ay)(Ie.A,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})((e=>{let{ownerState:t}=e;return(0,a.A)({marginRight:"auto"},"year"===t.view&&{[".".concat(Pa.switchViewIcon)]:{transform:"rotate(180deg)"}})})),Fa=(0,re.Ay)(Nt,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})((e=>{let{theme:t}=e;return{willChange:"transform",transition:t.transitions.create("transform"),transform:"rotate(0deg)"}})),La=r.forwardRef((function(e,t){var n,s,i,u;const c=te(),d=_(),m=(0,l.A)({props:e,name:"MuiPickersCalendarHeader"}),{slots:h,slotProps:p,components:f,currentMonth:y,disabled:g,disableFuture:v,disablePast:b,maxDate:w,minDate:D,onMonthChange:x,onViewChange:A,view:M,reduceAnimations:C,views:P,labelId:T,className:S,timezone:k}=m,V=(0,o.A)(m,Ta),O=m,I=(e=>{const{classes:t}=e;return se({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Ca,t)})(m),F=null!=(n=null!=(s=null==h?void 0:h.switchViewButton)?s:null==f?void 0:f.SwitchViewButton)?n:Ia,L=Ve({elementType:F,externalSlotProps:null==p?void 0:p.switchViewButton,additionalProps:{size:"small","aria-label":c.calendarViewSwitchingButtonAriaLabel(M)},ownerState:O,className:I.switchViewButton}),R=null!=(i=null!=(u=null==h?void 0:h.switchViewIcon)?u:null==f?void 0:f.SwitchViewIcon)?i:Fa,N=Ve({elementType:R,externalSlotProps:null==p?void 0:p.switchViewIcon,ownerState:void 0,className:I.switchViewIcon}),E=(0,o.A)(N,Sa),j=function(e,t){let{disableFuture:n,maxDate:a,timezone:o}=t;const s=_();return r.useMemo((()=>{const t=s.dateWithTimezone(void 0,o),r=s.startOfMonth(n&&s.isBefore(t,a)?t:a);return!s.isAfter(r,e)}),[n,a,e,s,o])}(y,{disableFuture:v,maxDate:w,timezone:k}),z=function(e,t){let{disablePast:n,minDate:a,timezone:o}=t;const s=_();return r.useMemo((()=>{const t=s.dateWithTimezone(void 0,o),r=s.startOfMonth(n&&s.isAfter(t,a)?t:a);return!s.isBefore(r,e)}),[n,a,e,s,o])}(y,{disablePast:b,minDate:D,timezone:k});return 1===P.length&&"year"===P[0]?null:(0,he.jsxs)(ka,(0,a.A)({},V,{ownerState:O,className:(0,ae.A)(S,I.root),ref:t,children:[(0,he.jsxs)(Va,{role:"presentation",onClick:()=>{if(1!==P.length&&A&&!g)if(2===P.length)A(P.find((e=>e!==M))||P[0]);else{const e=0!==P.indexOf(M)?0:1;A(P[e])}},ownerState:O,"aria-live":"polite",className:I.labelContainer,children:[(0,he.jsx)(mn,{reduceAnimations:C,transKey:d.format(y,"monthAndYear"),children:(0,he.jsx)(Oa,{id:T,ownerState:O,className:I.label,children:d.format(y,"monthAndYear")})}),P.length>1&&!g&&(0,he.jsx)(F,(0,a.A)({},L,{children:(0,he.jsx)(R,(0,a.A)({},E))}))]}),(0,he.jsx)(je.A,{in:"day"===M,children:(0,he.jsx)(Ma,{slots:h,slotProps:p,onGoToPrevious:()=>x(d.addMonths(y,-1),"right"),isPreviousDisabled:z,previousLabel:c.previousMonth,onGoToNext:()=>x(d.addMonths(y,1),"left"),isNextDisabled:j,nextLabel:c.nextMonth})})]}))})),Ra=(0,re.Ay)("div")({overflow:"hidden",width:Mt,maxHeight:334,display:"flex",flexDirection:"column",margin:"0 auto"}),Na=e=>ce("MuiDateCalendar",e),Ea=(de("MuiDateCalendar",["root","viewTransitionContainer"]),["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"]);const ja=(0,re.Ay)(Ra,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:334}),za=(0,re.Ay)(mn,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Ya=r.forwardRef((function(e,t){var n,s,i;const u=_(),c=Ne(),d=function(e,t){var n,o,r,s,i,u,c;const d=_(),m=ee(),h=Je(),p=(0,l.A)({props:e,name:t});return(0,a.A)({},p,{loading:null!=(n=p.loading)&&n,disablePast:null!=(o=p.disablePast)&&o,disableFuture:null!=(r=p.disableFuture)&&r,openTo:null!=(s=p.openTo)?s:"day",views:null!=(i=p.views)?i:["year","day"],reduceAnimations:null!=(u=p.reduceAnimations)?u:h,renderLoading:null!=(c=p.renderLoading)?c:()=>(0,he.jsx)("span",{children:"..."}),minDate:y(d,p.minDate,m.minDate),maxDate:y(d,p.maxDate,m.maxDate)})}(e,"MuiDateCalendar"),{autoFocus:m,onViewChange:h,value:g,defaultValue:v,referenceDate:b,disableFuture:w,disablePast:D,defaultCalendarMonth:x,onChange:A,onYearChange:M,onMonthChange:C,reduceAnimations:P,shouldDisableDate:T,shouldDisableMonth:S,shouldDisableYear:k,view:V,views:O,openTo:I,className:F,disabled:L,readOnly:R,minDate:N,maxDate:E,disableHighlightToday:j,focusedView:z,onFocusedViewChange:Y,showDaysOutsideCurrentMonth:B,fixedWeekNumber:H,dayOfWeekFormatter:W,components:U,componentsProps:K,slots:$,slotProps:q,loading:G,renderLoading:Q,displayWeekNumber:X,yearsPerRow:J,monthsPerRow:te,timezone:ne}=d,oe=(0,o.A)(d,Ea),{value:re,handleValueChange:ie,timezone:le}=it({name:"DateCalendar",timezone:ne,value:g,defaultValue:v,onChange:A,valueManager:Z}),{view:ue,setView:ce,focusedView:de,setFocusedView:me,goToNextView:pe,setValueAndGoToNextView:fe}=ut({view:V,views:O,openTo:I,onChange:ie,onViewChange:h,autoFocus:m,focusedView:z,onFocusedViewChange:Y}),{referenceDate:ye,calendarState:ge,changeFocusedDay:ve,changeMonth:be,handleChangeMonth:we,isDateDisabled:De,onMonthSwitchingAnimationEnd:xe}=ln({value:re,defaultCalendarMonth:x,referenceDate:b,reduceAnimations:P,onMonthChange:C,minDate:N,maxDate:E,shouldDisableDate:T,disablePast:D,disableFuture:w,timezone:le}),Ae=L&&re||N,Me=L&&re||E,Ce="".concat(c,"-grid-label"),Pe=null!==de,Te=null!=(n=null!=(s=null==$?void 0:$.calendarHeader)?s:null==U?void 0:U.CalendarHeader)?n:La,Se=Ve({elementType:Te,externalSlotProps:null!=(i=null==q?void 0:q.calendarHeader)?i:null==K?void 0:K.calendarHeader,additionalProps:{views:O,view:ue,currentMonth:ge.currentMonth,onViewChange:ce,onMonthChange:(e,t)=>we({newMonth:e,direction:t}),minDate:Ae,maxDate:Me,disabled:L,disablePast:D,disableFuture:w,reduceAnimations:P,timezone:le,labelId:Ce,slots:$,slotProps:q},ownerState:d}),ke=We((e=>{const t=u.startOfMonth(e),n=u.endOfMonth(e),a=De(e)?f({utils:u,date:e,minDate:u.isBefore(N,t)?t:N,maxDate:u.isAfter(E,n)?n:E,disablePast:D,disableFuture:w,isDateDisabled:De,timezone:le}):e;a?(fe(a,"finish"),null==C||C(t)):(pe(),be(t)),ve(a,!0)})),Oe=We((e=>{const t=u.startOfYear(e),n=u.endOfYear(e),a=De(e)?f({utils:u,date:e,minDate:u.isBefore(N,t)?t:N,maxDate:u.isAfter(E,n)?n:E,disablePast:D,disableFuture:w,isDateDisabled:De,timezone:le}):e;a?(fe(a,"finish"),null==M||M(a)):(pe(),be(t)),ve(a,!0)})),Ie=We((e=>ie(e?p(u,e,null!=re?re:ye):e,"finish",ue)));r.useEffect((()=>{null!=re&&u.isValid(re)&&be(re)}),[re]);const Fe=d,Le=(e=>{const{classes:t}=e;return se({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},Na,t)})(Fe),Re={disablePast:D,disableFuture:w,maxDate:E,minDate:N},Ee={disableHighlightToday:j,readOnly:R,disabled:L,timezone:le,gridLabelId:Ce},je=r.useRef(ue);r.useEffect((()=>{je.current!==ue&&(de===je.current&&me(ue,!0),je.current=ue)}),[de,me,ue]);const ze=r.useMemo((()=>[re]),[re]);return(0,he.jsxs)(ja,(0,a.A)({ref:t,className:(0,ae.A)(Le.root,F),ownerState:Fe},oe,{children:[(0,he.jsx)(Te,(0,a.A)({},Se)),(0,he.jsx)(za,{reduceAnimations:P,className:Le.viewTransitionContainer,transKey:ue,ownerState:Fe,children:(0,he.jsxs)("div",{children:["year"===ue&&(0,he.jsx)(ya,(0,a.A)({},Re,Ee,{value:re,onChange:Oe,shouldDisableYear:k,hasFocus:Pe,onFocusedViewChange:e=>me("year",e),yearsPerRow:J,referenceDate:ye})),"month"===ue&&(0,he.jsx)(sa,(0,a.A)({},Re,Ee,{hasFocus:Pe,className:F,value:re,onChange:ke,shouldDisableMonth:S,onFocusedViewChange:e=>me("month",e),monthsPerRow:te,referenceDate:ye})),"day"===ue&&(0,he.jsx)(Gn,(0,a.A)({},ge,Re,Ee,{onMonthSwitchingAnimationEnd:xe,onFocusedDayChange:ve,reduceAnimations:P,selectedDays:ze,onSelectedDaysChange:Ie,shouldDisableDate:T,shouldDisableMonth:S,shouldDisableYear:k,hasFocus:Pe,onFocusedViewChange:e=>me("day",e),showDaysOutsideCurrentMonth:B,fixedWeekNumber:H,dayOfWeekFormatter:W,displayWeekNumber:X,components:U,componentsProps:K,slots:$,slotProps:q,loading:G,renderLoading:Q}))]})})]}))})),Ba=e=>{let{view:t,onViewChange:n,views:a,focusedView:o,onFocusedViewChange:r,value:s,defaultValue:i,referenceDate:l,onChange:u,className:c,classes:d,disableFuture:m,disablePast:h,minDate:p,maxDate:f,shouldDisableDate:y,shouldDisableMonth:g,shouldDisableYear:v,reduceAnimations:b,onMonthChange:D,monthsPerRow:x,onYearChange:A,yearsPerRow:M,defaultCalendarMonth:C,components:P,componentsProps:T,slots:S,slotProps:k,loading:V,renderLoading:O,disableHighlightToday:I,readOnly:F,disabled:L,showDaysOutsideCurrentMonth:R,dayOfWeekFormatter:N,sx:E,autoFocus:j,fixedWeekNumber:z,displayWeekNumber:Y,timezone:B}=e;return(0,he.jsx)(Ya,{view:t,onViewChange:n,views:a.filter(w),focusedView:o&&w(o)?o:null,onFocusedViewChange:r,value:s,defaultValue:i,referenceDate:l,onChange:u,className:c,classes:d,disableFuture:m,disablePast:h,minDate:p,maxDate:f,shouldDisableDate:y,shouldDisableMonth:g,shouldDisableYear:v,reduceAnimations:b,onMonthChange:D,monthsPerRow:x,onYearChange:A,yearsPerRow:M,defaultCalendarMonth:C,components:P,componentsProps:T,slots:S,slotProps:k,loading:V,renderLoading:O,disableHighlightToday:I,readOnly:F,disabled:L,showDaysOutsideCurrentMonth:R,dayOfWeekFormatter:N,sx:E,autoFocus:j,fixedWeekNumber:z,displayWeekNumber:Y,timezone:B})},Ha=r.forwardRef((function(e,t){var n,s,i,l;const u=te(),c=_(),m=Ae(e,"MuiDesktopDatePicker"),h=(0,a.A)({day:Ba,month:Ba,year:Ba},m.viewRenderers),p=(0,a.A)({},m,{viewRenderers:h,format:D(c,m,!1),yearsPerRow:null!=(n=m.yearsPerRow)?n:4,slots:(0,a.A)({openPickerIcon:zt,field:rn},m.slots),slotProps:(0,a.A)({},m.slotProps,{field:e=>{var n;return(0,a.A)({},d(null==(n=m.slotProps)?void 0:n.field,e),Jt(m),{ref:t})},toolbar:(0,a.A)({hidden:!0},null==(s=m.slotProps)?void 0:s.toolbar)})}),{renderPicker:f}=(e=>{var t,n,s,i,l;let{props:u,getOpenDialogAriaText:c}=e,d=(0,o.A)(e,It);const{slots:m,slotProps:h,className:p,sx:f,format:y,formatDensity:g,timezone:v,name:b,label:w,inputRef:D,readOnly:x,disabled:A,autoFocus:M,localeText:C,reduceAnimations:P}=u,T=_(),S=r.useRef(null),k=r.useRef(null),V=Ne(),O=null!=(t=null==h||null==(n=h.toolbar)?void 0:n.hidden)&&t,{open:I,actions:F,hasUIView:L,layoutProps:R,renderCurrentView:N,shouldRestoreFocus:E,fieldProps:j}=pt((0,a.A)({},d,{props:u,inputRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),z=null!=(s=m.inputAdornment)?s:Oe.A,Y=Ve({elementType:z,externalSlotProps:null==h?void 0:h.inputAdornment,additionalProps:{position:"end"},ownerState:u}),B=(0,o.A)(Y,Ft),H=null!=(i=m.openPickerButton)?i:Ie.A,W=Ve({elementType:H,externalSlotProps:null==h?void 0:h.openPickerButton,additionalProps:{disabled:A||x,onClick:I?F.onClose:F.onOpen,"aria-label":c(j.value,T),edge:B.position},ownerState:u}),U=(0,o.A)(W,Lt),K=m.openPickerIcon,Z=m.field,$=Ve({elementType:Z,externalSlotProps:null==h?void 0:h.field,additionalProps:(0,a.A)({},j,O&&{id:V},{readOnly:x,disabled:A,className:p,sx:f,format:y,formatDensity:g,timezone:v,label:w,name:b,autoFocus:M&&!u.open,focused:!!I||void 0}),ownerState:u});L&&($.InputProps=(0,a.A)({},$.InputProps,{ref:k},!u.disableOpenPicker&&{["".concat(B.position,"Adornment")]:(0,he.jsx)(z,(0,a.A)({},B,{children:(0,he.jsx)(H,(0,a.A)({},U,{children:(0,he.jsx)(K,(0,a.A)({},null==h?void 0:h.openPickerIcon))}))}))}));const G=(0,a.A)({textField:m.textField,clearIcon:m.clearIcon,clearButton:m.clearButton},$.slots),Q=null!=(l=m.layout)?l:Ot,X=Fe(S,$.inputRef,D);let J=V;O&&(J=w?"".concat(V,"-label"):void 0);const ee=(0,a.A)({},h,{toolbar:(0,a.A)({},null==h?void 0:h.toolbar,{titleId:V}),popper:(0,a.A)({"aria-labelledby":J},null==h?void 0:h.popper)});return{renderPicker:()=>(0,he.jsxs)(q.$,{localeText:C,children:[(0,he.jsx)(Z,(0,a.A)({},$,{slots:G,slotProps:ee,inputRef:X})),(0,he.jsx)(at,(0,a.A)({role:"dialog",placement:"bottom-start",anchorEl:k.current},F,{open:I,slots:m,slotProps:ee,shouldRestoreFocus:E,reduceAnimations:P,children:(0,he.jsx)(Q,(0,a.A)({},R,null==ee?void 0:ee.layout,{slots:m,slotProps:ee,children:N()}))}))]})}})({props:p,valueManager:Z,valueType:"date",getOpenDialogAriaText:null!=(i=null==(l=p.localeText)?void 0:l.openDatePickerDialogue)?i:u.openDatePickerDialogue,validator:Me});return f()}));Ha.propTypes={autoFocus:c().bool,className:c().string,closeOnSelect:c().bool,components:c().object,componentsProps:c().object,dayOfWeekFormatter:c().func,defaultCalendarMonth:c().any,defaultValue:c().any,disabled:c().bool,disableFuture:c().bool,disableHighlightToday:c().bool,disableOpenPicker:c().bool,disablePast:c().bool,displayWeekNumber:c().bool,fixedWeekNumber:c().number,format:c().string,formatDensity:c().oneOf(["dense","spacious"]),inputRef:m,label:c().node,loading:c().bool,localeText:c().object,maxDate:c().any,minDate:c().any,monthsPerRow:c().oneOf([3,4]),name:c().string,onAccept:c().func,onChange:c().func,onClose:c().func,onError:c().func,onMonthChange:c().func,onOpen:c().func,onSelectedSectionsChange:c().func,onViewChange:c().func,onYearChange:c().func,open:c().bool,openTo:c().oneOf(["day","month","year"]),orientation:c().oneOf(["landscape","portrait"]),readOnly:c().bool,reduceAnimations:c().bool,referenceDate:c().any,renderLoading:c().func,selectedSections:c().oneOfType([c().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),c().number,c().shape({endIndex:c().number.isRequired,startIndex:c().number.isRequired})]),shouldDisableDate:c().func,shouldDisableMonth:c().func,shouldDisableYear:c().func,showDaysOutsideCurrentMonth:c().bool,slotProps:c().object,slots:c().object,sx:c().oneOfType([c().arrayOf(c().oneOfType([c().func,c().object,c().bool])),c().func,c().object]),timezone:c().string,value:c().any,view:c().oneOf(["day","month","year"]),viewRenderers:c().shape({day:c().func,month:c().func,year:c().func}),views:c().arrayOf(c().oneOf(["day","month","year"]).isRequired),yearsPerRow:c().oneOf([3,4])};var Wa=n(28170),Ua=n(96583),Ka=n(21427);const Za=(0,re.Ay)(Ua.A)({["& .".concat(Ka.A.container)]:{outline:0},["& .".concat(Ka.A.paper)]:{outline:0,minWidth:Mt}}),$a=(0,re.Ay)(Wa.A)({"&:first-of-type":{padding:0}});function qa(e){var t,n;const{children:o,onDismiss:r,open:s,slots:i,slotProps:l}=e,u=null!=(t=null==i?void 0:i.dialog)?t:Za,c=null!=(n=null==i?void 0:i.mobileTransition)?n:je.A;return(0,he.jsx)(u,(0,a.A)({open:s,onClose:r},null==l?void 0:l.dialog,{TransitionComponent:c,TransitionProps:null==l?void 0:l.mobileTransition,PaperComponent:null==i?void 0:i.mobilePaper,PaperProps:null==l?void 0:l.mobilePaper,children:(0,he.jsx)($a,{children:o})}))}const Ga=["props","getOpenDialogAriaText"],Qa=r.forwardRef((function(e,t){var n,s,i;const l=te(),u=_(),c=Ae(e,"MuiMobileDatePicker"),m=(0,a.A)({day:Ba,month:Ba,year:Ba},c.viewRenderers),h=(0,a.A)({},c,{viewRenderers:m,format:D(u,c,!1),slots:(0,a.A)({field:rn},c.slots),slotProps:(0,a.A)({},c.slotProps,{field:e=>{var n;return(0,a.A)({},d(null==(n=c.slotProps)?void 0:n.field,e),Jt(c),{ref:t})},toolbar:(0,a.A)({hidden:!1},null==(n=c.slotProps)?void 0:n.toolbar)})}),{renderPicker:p}=(e=>{var t,n,s;let{props:i,getOpenDialogAriaText:l}=e,u=(0,o.A)(e,Ga);const{slots:c,slotProps:d,className:m,sx:h,format:p,formatDensity:f,timezone:y,name:g,label:v,inputRef:b,readOnly:w,disabled:D,localeText:x}=i,A=_(),M=r.useRef(null),C=Ne(),P=null!=(t=null==d||null==(n=d.toolbar)?void 0:n.hidden)&&t,{open:T,actions:S,layoutProps:k,renderCurrentView:V,fieldProps:O}=pt((0,a.A)({},u,{props:i,inputRef:M,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),I=c.field,F=Ve({elementType:I,externalSlotProps:null==d?void 0:d.field,additionalProps:(0,a.A)({},O,P&&{id:C},!(D||w)&&{onClick:S.onOpen,onKeyDown:(L=S.onOpen,e=>{"Enter"!==e.key&&" "!==e.key||(L(e),e.preventDefault(),e.stopPropagation()),R&&R(e)})},{readOnly:null==w||w,disabled:D,className:m,sx:h,format:p,formatDensity:f,timezone:y,label:v,name:g}),ownerState:i});var L,R;F.inputProps=(0,a.A)({},F.inputProps,{"aria-label":l(O.value,A)});const N=(0,a.A)({textField:c.textField},F.slots),E=null!=(s=c.layout)?s:Ot,j=Fe(M,F.inputRef,b);let z=C;P&&(z=v?"".concat(C,"-label"):void 0);const Y=(0,a.A)({},d,{toolbar:(0,a.A)({},null==d?void 0:d.toolbar,{titleId:C}),mobilePaper:(0,a.A)({"aria-labelledby":z},null==d?void 0:d.mobilePaper)});return{renderPicker:()=>(0,he.jsxs)(q.$,{localeText:x,children:[(0,he.jsx)(I,(0,a.A)({},F,{slots:N,slotProps:Y,inputRef:j})),(0,he.jsx)(qa,(0,a.A)({},S,{open:T,slots:c,slotProps:Y,children:(0,he.jsx)(E,(0,a.A)({},k,null==Y?void 0:Y.layout,{slots:c,slotProps:Y,children:V()}))}))]})}})({props:h,valueManager:Z,valueType:"date",getOpenDialogAriaText:null!=(s=null==(i=h.localeText)?void 0:i.openDatePickerDialogue)?s:l.openDatePickerDialogue,validator:Me});return p()}));Qa.propTypes={autoFocus:c().bool,className:c().string,closeOnSelect:c().bool,components:c().object,componentsProps:c().object,dayOfWeekFormatter:c().func,defaultCalendarMonth:c().any,defaultValue:c().any,disabled:c().bool,disableFuture:c().bool,disableHighlightToday:c().bool,disableOpenPicker:c().bool,disablePast:c().bool,displayWeekNumber:c().bool,fixedWeekNumber:c().number,format:c().string,formatDensity:c().oneOf(["dense","spacious"]),inputRef:m,label:c().node,loading:c().bool,localeText:c().object,maxDate:c().any,minDate:c().any,monthsPerRow:c().oneOf([3,4]),name:c().string,onAccept:c().func,onChange:c().func,onClose:c().func,onError:c().func,onMonthChange:c().func,onOpen:c().func,onSelectedSectionsChange:c().func,onViewChange:c().func,onYearChange:c().func,open:c().bool,openTo:c().oneOf(["day","month","year"]),orientation:c().oneOf(["landscape","portrait"]),readOnly:c().bool,reduceAnimations:c().bool,referenceDate:c().any,renderLoading:c().func,selectedSections:c().oneOfType([c().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),c().number,c().shape({endIndex:c().number.isRequired,startIndex:c().number.isRequired})]),shouldDisableDate:c().func,shouldDisableMonth:c().func,shouldDisableYear:c().func,showDaysOutsideCurrentMonth:c().bool,slotProps:c().object,slots:c().object,sx:c().oneOfType([c().arrayOf(c().oneOfType([c().func,c().object,c().bool])),c().func,c().object]),timezone:c().string,value:c().any,view:c().oneOf(["day","month","year"]),viewRenderers:c().shape({day:c().func,month:c().func,year:c().func}),views:c().arrayOf(c().oneOf(["day","month","year"]).isRequired),yearsPerRow:c().oneOf([3,4])};const Xa=["desktopModeMediaQuery"],Ja=r.forwardRef((function(e,t){const n=(0,l.A)({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=$e}=n,s=(0,o.A)(n,Xa);return(0,i.A)(r,{defaultMatches:!0})?(0,he.jsx)(Ha,(0,a.A)({ref:t},s)):(0,he.jsx)(Qa,(0,a.A)({ref:t},s))}))},43540:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,a,o){var r=a.prototype;r.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var a=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var r=o(this).startOf(t).add(1,t).date(a),s=o(this).endOf(e);if(r.isBefore(s))return 1}var i=o(this).startOf(t).date(a).startOf(e).subtract(1,"millisecond"),l=this.diff(i,e,!0);return l<0?o(this).startOf("week").week():Math.ceil(l)},r.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},46081:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});const a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warning",n=!1;const a=Array.isArray(e)?e.join("\n"):e;return()=>{n||(n=!0,"error"===t?console.error(a):console.warn(a))}}},48283:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(62161),o=n(60195),r=n(67550);function s(e){let{props:t,name:n}=e;return(0,a.A)({props:t,name:n,defaultTheme:o.A,themeId:r.A})}},77588:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,a){var o=n.prototype,r=o.format;a.en.formats=e,o.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,a=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,a,o){var r=o&&o.toUpperCase();return a||n[o]||e[o]||n[r].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,void 0===n?{}:n);return r.call(this,a)}}}()},81831:(e,t,n)=>{"use strict";n.d(t,{$:()=>c,F:()=>u});var a=n(58168),o=n(98587),r=n(9950),s=n(48283),i=n(44414);const l=["localeText"],u=r.createContext(null);const c=function(e){var t;const{localeText:n}=e,c=(0,o.A)(e,l),{utils:d,localeText:m}=null!=(t=r.useContext(u))?t:{utils:void 0,localeText:void 0},h=(0,s.A)({props:c,name:"MuiLocalizationProvider"}),{children:p,dateAdapter:f,dateFormats:y,dateLibInstance:g,adapterLocale:v,localeText:b}=h,w=r.useMemo((()=>(0,a.A)({},b,m,n)),[b,m,n]),D=r.useMemo((()=>{if(!f)return d||null;const e=new f({locale:v,formats:y,instance:g});if(!e.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join("\n"));return e}),[f,v,y,g,d]),x=r.useMemo((()=>D?{minDate:D.date("1900-01-01T00:00:00.000"),maxDate:D.date("2099-12-31T00:00:00.000")}:null),[D]),A=r.useMemo((()=>({utils:D,defaultDates:x,localeText:w})),[x,D,w]);return(0,i.jsx)(u.Provider,{value:A,children:p})}},87542:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isBetween=function(e,t,a,o){var r=n(e),s=n(t),i="("===(o=o||"()")[0],l=")"===o[1];return(i?this.isAfter(r,a):!this.isBefore(r,a))&&(l?this.isBefore(s,a):!this.isAfter(s,a))||(i?this.isBefore(r,a):!this.isAfter(r,a))&&(l?this.isAfter(s,a):!this.isBefore(s,a))}}}()},90923:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,a=/\d\d/,o=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,s={},i=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=s[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,a=s.meridiem;if(a){for(var o=1;o<=24;o+=1)if(e.indexOf(a(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},m={A:[r,function(e){this.afternoon=d(e,!1)}],a:[r,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[a,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,l("seconds")],ss:[o,l("seconds")],m:[o,l("minutes")],mm:[o,l("minutes")],H:[o,l("hours")],h:[o,l("hours")],HH:[o,l("hours")],hh:[o,l("hours")],D:[o,l("day")],DD:[a,l("day")],Do:[r,function(e){var t=s.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var a=1;a<=31;a+=1)t(a).replace(/\[|\]/g,"")===e&&(this.day=a)}],w:[o,l("week")],ww:[a,l("week")],M:[o,l("month")],MM:[a,l("month")],MMM:[r,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[r,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[a,function(e){this.year=i(e)}],YYYY:[/\d{4}/,l("year")],Z:u,ZZ:u};function h(n){var a,o;a=n,o=s&&s.formats;for(var r=(n=a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,a){var r=a&&a.toUpperCase();return n||o[a]||e[a]||o[r].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),i=r.length,l=0;l-1)return new Date(("X"===t?1e3:1)*e);var o=h(t)(e),r=o.year,s=o.month,i=o.day,l=o.hours,u=o.minutes,c=o.seconds,d=o.milliseconds,m=o.zone,p=o.week,f=new Date,y=i||(r||s?1:f.getDate()),g=r||f.getFullYear(),v=0;r&&!s||(v=s>0?s-1:f.getMonth());var b,w=l||0,D=u||0,x=c||0,A=d||0;return m?new Date(Date.UTC(g,v,y,w,D,x,A+60*m.offset*1e3)):n?new Date(Date.UTC(g,v,y,w,D,x,A)):(b=new Date(g,v,y,w,D,x,A),p&&(b=a(b).week(p).toDate()),b)}catch(e){return new Date("")}}(t,i,a,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),c&&t!=this.format(i)&&(this.$d=new Date("")),s={}}else if(i instanceof Array)for(var m=i.length,p=1;p<=m;p+=1){r[1]=i[p-1];var f=n.apply(this,r);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}p===m&&(this.$d=new Date(""))}else o.call(this,e)}}}()},95359:(e,t,n)=>{"use strict";n.d(t,{R:()=>w});var a=n(58168),o=n(4159),r=n.n(o),s=n(43540),i=n.n(s),l=n(90923),u=n.n(l),c=n(77588),d=n.n(c),m=n(87542),h=n.n(m),p=n(46081);r().extend(u()),r().extend(d()),r().extend(h());const f=(0,p.f)(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),y={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},g={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},v=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join("\n"),b=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join("\n");class w{constructor(){let{locale:e,formats:t,instance:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var o,s,l;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=y,this.setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)},this.hasUTCPlugin=()=>"undefined"!==typeof r().utc,this.hasTimezonePlugin=()=>"undefined"!==typeof r().tz,this.isSame=(e,t,n)=>{const a=this.setTimezone(t,this.getTimezone(e));return e.format(n)===a.format(n)},this.cleanTimezone=e=>{switch(e){case"default":return;case"system":return r().tz.guess();default:return e}},this.createSystemDate=e=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(e);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const t=r().tz.guess();return"UTC"!==t?r().tz(e,t):r()(e)}return r()(e)},this.createUTCDate=e=>{if(!this.hasUTCPlugin())throw new Error(v);return r().utc(e)},this.createTZDate=(e,t)=>{if(!this.hasUTCPlugin())throw new Error(v);if(!this.hasTimezonePlugin())throw new Error(b);const n=void 0!==e&&!e.endsWith("Z");return r()(e).tz(this.cleanTimezone(t),n)},this.getLocaleFormats=()=>{const e=r().Ls;let t=e[this.locale||"en"];return void 0===t&&(f(),t=e.en),t.formats},this.adjustOffset=e=>{if(!this.hasTimezonePlugin())return e;const t=this.getTimezone(e);if("UTC"!==t){var n,a;const o=e.tz(this.cleanTimezone(t),!0);if((null!=(n=o.$offset)?n:0)===(null!=(a=e.$offset)?a:0))return e;e.$offset=o.$offset}return e},this.date=e=>null===e?null:this.dayjs(e),this.dateWithTimezone=(e,t)=>{if(null===e)return null;let n;return n="UTC"===t?this.createUTCDate(e):"system"===t||"default"===t&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t),void 0===this.locale?n:n.locale(this.locale)},this.getTimezone=e=>{if(this.hasTimezonePlugin()){var t;const n=null==(t=e.$x)?void 0:t.$timezone;if(n)return n}return this.hasUTCPlugin()&&e.isUTC()?"UTC":"system"},this.setTimezone=(e,t)=>{if(this.getTimezone(e)===t)return e;if("UTC"===t){if(!this.hasUTCPlugin())throw new Error(v);return e.utc()}if("system"===t)return e.local();if(!this.hasTimezonePlugin()){if("default"===t)return e;throw new Error(b)}return r().tz(e,this.cleanTimezone(t))},this.toJsDate=e=>e.toDate(),this.parseISO=e=>this.dayjs(e),this.toISO=e=>e.toISOString(),this.parse=(e,t)=>""===e?null:this.dayjs(e,t,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=e=>{const t=this.getLocaleFormats();return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,((e,n,a)=>{const o=a&&a.toUpperCase();return n||t[a]||t[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,((e,t,n)=>t||n.slice(1)))}))},this.getFormatHelperText=e=>this.expandFormat(e).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=e=>null===e,this.isValid=e=>this.dayjs(e).isValid(),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>this.dayjs(e).format(t),this.formatNumber=e=>e,this.getDiff=(e,t,n)=>e.diff(t,n),this.isEqual=(e,t)=>null===e&&null===t||this.dayjs(e).toDate().getTime()===this.dayjs(t).toDate().getTime(),this.isSameYear=(e,t)=>this.isSame(e,t,"YYYY"),this.isSameMonth=(e,t)=>this.isSame(e,t,"YYYY-MM"),this.isSameDay=(e,t)=>this.isSame(e,t,"YYYY-MM-DD"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.isAfter=(e,t)=>e>t,this.isAfterYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()>t.utc():e.isAfter(t,"year"),this.isAfterDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()>t.utc():e.isAfter(t,"day"),this.isBefore=(e,t)=>ethis.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc(){let[n,a]=t;return e>=n&&e<=a},this.startOfYear=e=>this.adjustOffset(e.startOf("year")),this.startOfMonth=e=>this.adjustOffset(e.startOf("month")),this.startOfWeek=e=>this.adjustOffset(e.startOf("week")),this.startOfDay=e=>this.adjustOffset(e.startOf("day")),this.endOfYear=e=>this.adjustOffset(e.endOf("year")),this.endOfMonth=e=>this.adjustOffset(e.endOf("month")),this.endOfWeek=e=>this.adjustOffset(e.endOf("week")),this.endOfDay=e=>this.adjustOffset(e.endOf("day")),this.addYears=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"year"):e.add(t,"year")),this.addMonths=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"month"):e.add(t,"month")),this.addWeeks=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"week"):e.add(t,"week")),this.addDays=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"day"):e.add(t,"day")),this.addHours=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"hour"):e.add(t,"hour")),this.addMinutes=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"minute"):e.add(t,"minute")),this.addSeconds=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"second"):e.add(t,"second")),this.getYear=e=>e.year(),this.getMonth=e=>e.month(),this.getDate=e=>e.date(),this.getHours=e=>e.hour(),this.getMinutes=e=>e.minute(),this.getSeconds=e=>e.second(),this.getMilliseconds=e=>e.millisecond(),this.setYear=(e,t)=>this.adjustOffset(e.set("year",t)),this.setMonth=(e,t)=>this.adjustOffset(e.set("month",t)),this.setDate=(e,t)=>this.adjustOffset(e.set("date",t)),this.setHours=(e,t)=>this.adjustOffset(e.set("hour",t)),this.setMinutes=(e,t)=>this.adjustOffset(e.set("minute",t)),this.setSeconds=(e,t)=>this.adjustOffset(e.set("second",t)),this.setMilliseconds=(e,t)=>this.adjustOffset(e.set("millisecond",t)),this.getDaysInMonth=e=>e.daysInMonth(),this.getNextMonth=e=>this.addMonths(e,1),this.getPreviousMonth=e=>this.addMonths(e,-1),this.getMonthArray=e=>{const t=[e.startOf("year")];for(;t.length<12;){const e=t[t.length-1];t.push(this.addMonths(e,1))}return t},this.mergeDateAndTime=(e,t)=>e.hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>{const e=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map((t=>this.formatByString(this.addDays(e,t),"dd")))},this.getWeekArray=e=>{const t=this.setLocaleToValue(e),n=t.startOf("month").startOf("week"),a=t.endOf("month").endOf("week");let o=0,r=n;const s=[];for(;re.week(),this.getYearRange=(e,t)=>{const n=e.startOf("year"),a=t.endOf("year"),o=[];let r=n;for(;r"am"===e?"AM":"PM",this.rawDayJsInstance=n,this.dayjs=(s=null!=(o=this.rawDayJsInstance)?o:r(),(l=e)?function(){return s(...arguments).locale(l)}:s),this.locale=e,this.formats=(0,a.A)({},g,t),r().extend(i())}}}}]); \ No newline at end of file diff --git a/build/static/js/5982.a515fbf1.chunk.js b/build/static/js/5982.a515fbf1.chunk.js new file mode 100644 index 0000000..0a7bcf6 --- /dev/null +++ b/build/static/js/5982.a515fbf1.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 5982.a515fbf1.chunk.js.LICENSE.txt */ +(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[5982],{1596:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var a=r(84849),n=r(27326),s=r(85672),i=r(72574),c=r(25234),o=r(10247),l=r(16775),f=r(19728),h=r(78292),u=r(38009),d=r(60308),p=r(37300),m=r(10644);function g(e){return(0,m.Ay)("MuiTableCell",e)}const v=(0,p.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var b=r(65908);const T=["align","className","component","padding","scope","size","sortDirection","variant"],E=(0,d.Ay)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,l.A)(r.size))],"normal"!==r.padding&&t["padding".concat((0,l.A)(r.padding))],"inherit"!==r.align&&t["align".concat((0,l.A)(r.align))],r.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:r}=e;return(0,n.A)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n ".concat("light"===t.palette.mode?(0,o.a)((0,o.X4)(t.palette.divider,1),.88):(0,o.e$)((0,o.X4)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===r.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===r.variant&&{color:(t.vars||t).palette.text.primary},"footer"===r.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===r.size&&{padding:"6px 16px",["&.".concat(v.paddingCheckbox)]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===r.padding&&{width:48,padding:"0 0 0 4px"},"none"===r.padding&&{padding:0},"left"===r.align&&{textAlign:"left"},"center"===r.align&&{textAlign:"center"},"right"===r.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===r.align&&{textAlign:"justify"},r.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),w=s.forwardRef((function(e,t){const r=(0,u.b)({props:e,name:"MuiTableCell"}),{align:o="inherit",className:d,component:p,padding:m,scope:v,size:w,sortDirection:A,variant:k}=r,y=(0,a.A)(r,T),S=s.useContext(f.A),_=s.useContext(h.A),C=_&&"head"===_.variant;let R;R=p||(C?"th":"td");let O=v;"td"===R?O=void 0:!O&&C&&(O="col");const x=k||_&&_.variant,I=(0,n.A)({},r,{align:o,component:R,padding:m||(S&&S.padding?S.padding:"normal"),size:w||(S&&S.size?S.size:"medium"),sortDirection:A,stickyHeader:"head"===x&&S&&S.stickyHeader,variant:x}),N=(e=>{const{classes:t,variant:r,align:a,padding:n,size:s,stickyHeader:i}=e,o={root:["root",r,i&&"stickyHeader","inherit"!==a&&"align".concat((0,l.A)(a)),"normal"!==n&&"padding".concat((0,l.A)(n)),"size".concat((0,l.A)(s))]};return(0,c.A)(o,g,t)})(I);let D=null;return A&&(D="asc"===A?"ascending":"descending"),(0,b.jsx)(E,(0,n.A)({as:R,ref:t,className:(0,i.A)(N.root,d),"aria-sort":D,scope:O,ownerState:I},y))}))},12010:(e,t,r)=>{"use strict";r.d(t,{A:()=>N});var a=r(57528),n=r(84849),s=r(27326),i=r(85672),c=r(72574),o=r(25234),l=r(8913),f=r(16775),h=r(38009),u=r(60308),d=r(37300),p=r(10644);function m(e){return(0,p.Ay)("MuiCircularProgress",e)}(0,d.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var g,v,b,T,E=r(65908);const w=["className","color","disableShrink","size","style","thickness","value","variant"];let A,k,y,S;const _=44,C=(0,l.i7)(A||(A=g||(g=(0,a.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),R=(0,l.i7)(k||(k=v||(v=(0,a.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),O=(0,u.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["color".concat((0,f.A)(r.color))]]}})((e=>{let{ownerState:t,theme:r}=e;return(0,s.A)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,l.AH)(y||(y=b||(b=(0,a.A)(["\n animation: "," 1.4s linear infinite;\n "]))),C)})),x=(0,u.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),I=(0,u.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t["circle".concat((0,f.A)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:r}=e;return(0,s.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,l.AH)(S||(S=T||(T=(0,a.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),R)})),N=i.forwardRef((function(e,t){const r=(0,h.b)({props:e,name:"MuiCircularProgress"}),{className:a,color:i="primary",disableShrink:l=!1,size:u=40,style:d,thickness:p=3.6,value:g=0,variant:v="indeterminate"}=r,b=(0,n.A)(r,w),T=(0,s.A)({},r,{color:i,disableShrink:l,size:u,thickness:p,value:g,variant:v}),A=(e=>{const{classes:t,variant:r,color:a,disableShrink:n}=e,s={root:["root",r,"color".concat((0,f.A)(a))],svg:["svg"],circle:["circle","circle".concat((0,f.A)(r)),n&&"circleDisableShrink"]};return(0,o.A)(s,m,t)})(T),k={},y={},S={};if("determinate"===v){const e=2*Math.PI*((_-p)/2);k.strokeDasharray=e.toFixed(3),S["aria-valuenow"]=Math.round(g),k.strokeDashoffset="".concat(((100-g)/100*e).toFixed(3),"px"),y.transform="rotate(-90deg)"}return(0,E.jsx)(O,(0,s.A)({className:(0,c.A)(A.root,a),style:(0,s.A)({width:u,height:u},y,d),ownerState:T,ref:t,role:"progressbar"},S,b,{children:(0,E.jsx)(x,{className:A.svg,ownerState:T,viewBox:"".concat(22," ").concat(22," ").concat(_," ").concat(_),children:(0,E.jsx)(I,{className:A.circle,style:k,ownerState:T,cx:_,cy:_,r:(_-p)/2,fill:"none",strokeWidth:p})})}))}))},19728:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});const a=r(85672).createContext()},35267:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var a=r(27326),n=r(85672);const s={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"};var i=r(75890),c=function(e,t){return n.createElement(i.A,(0,a.A)({},e,{ref:t,icon:s}))};const o=n.forwardRef(c)},36444:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var a=r(27326),n=r(85672);const s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM544 472c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V472z"}}]},name:"file-add",theme:"outlined"};var i=r(75890),c=function(e,t){return n.createElement(i.A,(0,a.A)({},e,{ref:t,icon:s}))};const o=n.forwardRef(c)},50728:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var a=r(27326),n=r(85672);const s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};var i=r(75890),c=function(e,t){return n.createElement(i.A,(0,a.A)({},e,{ref:t,icon:s}))};const o=n.forwardRef(c)},50755:(e,t,r)=>{"use strict";r.d(t,{A:()=>E});var a=r(27326),n=r(84849),s=r(85672),i=r(72574),c=r(25234),o=r(10247),l=r(78292),f=r(38009),h=r(60308),u=r(37300),d=r(10644);function p(e){return(0,d.Ay)("MuiTableRow",e)}const m=(0,u.A)("MuiTableRow",["root","selected","hover","head","footer"]);var g=r(65908);const v=["className","component","hover","selected"],b=(0,h.Ay)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((e=>{let{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,["&.".concat(m.hover,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(m.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,o.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,o.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}})),T="tr",E=s.forwardRef((function(e,t){const r=(0,f.b)({props:e,name:"MuiTableRow"}),{className:o,component:h=T,hover:u=!1,selected:d=!1}=r,m=(0,n.A)(r,v),E=s.useContext(l.A),w=(0,a.A)({},r,{component:h,hover:u,selected:d,head:E&&"head"===E.variant,footer:E&&"footer"===E.variant}),A=(e=>{const{classes:t,selected:r,hover:a,head:n,footer:s}=e,i={root:["root",r&&"selected",a&&"hover",n&&"head",s&&"footer"]};return(0,c.A)(i,p,t)})(w);return(0,g.jsx)(b,(0,a.A)({as:h,ref:t,className:(0,i.A)(A.root,o),role:h===T?null:"row",ownerState:w},m))}))},54016:(e,t,r)=>{"use strict";r.d(t,{A:()=>T});var a=r(27326),n=r(84849),s=r(85672),i=r(72574),c=r(25234),o=r(78292),l=r(38009),f=r(60308),h=r(37300),u=r(10644);function d(e){return(0,u.Ay)("MuiTableHead",e)}(0,h.A)("MuiTableHead",["root"]);var p=r(65908);const m=["className","component"],g=(0,f.Ay)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),v={variant:"head"},b="thead",T=s.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiTableHead"}),{className:s,component:f=b}=r,h=(0,n.A)(r,m),u=(0,a.A)({},r,{component:f}),T=(e=>{const{classes:t}=e;return(0,c.A)({root:["root"]},d,t)})(u);return(0,p.jsx)(o.A.Provider,{value:v,children:(0,p.jsx)(g,(0,a.A)({as:f,className:(0,i.A)(T.root,s),ref:t,role:f===b?null:"rowgroup",ownerState:u},h))})}))},60549:function(e,t){var r,a,n;a=[],r=function e(){var t,r="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r?r:{},a=!r.document&&!!r.postMessage,n=r.IS_PAPA_WORKER||!1,s={},i=0,c={};function o(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=T(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new d(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,t){var a=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0=this._config.preview,n)r.postMessage({results:s,workerId:c.WORKER_ID,finished:a});else if(w(this._config.chunk)&&!t){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=s=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!a||!w(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),a||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){w(this._config.error)?this._config.error(e):n&&this._config.error&&r.postMessage({workerId:c.WORKER_ID,error:e,finished:!1})}}function l(e){var t;(e=e||{}).chunkSize||(e.chunkSize=c.RemoteChunkSize),o.call(this,e),this._nextChunk=a?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),a||(t.onload=E(this._chunkLoaded,this),t.onerror=E(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!a),this._config.downloadRequestHeaders){var e,r=this._config.downloadRequestHeaders;for(e in r)t.setRequestHeader(e,r[e])}var n;this._config.chunkSize&&(n=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+n));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}a&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(e=>null!==(e=e.getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1)(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(new Error(e))}}function f(e){(e=e||{}).chunkSize||(e.chunkSize=c.LocalChunkSize),o.call(this,e);var t,r,a="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,a?((t=new FileReader).onload=E(this._chunkLoaded,this),t.onerror=E(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function h(e){var t;o.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,r;if(!this._finished)return e=this._config.chunkSize,t=e?(r=t.substring(0,e),t.substring(e)):(r=t,""),this._finished=!t,this.parseChunk(r)}}function u(e){o.call(this,e=e||{});var t=[],r=!0,a=!1;this.pause=function(){o.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){o.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){a&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=E((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=E((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=E((function(){this._streamCleanUp(),a=!0,this._streamData("")}),this),this._streamCleanUp=E((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function d(e){var t,r,a,n,s=Math.pow(2,53),i=-s,o=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,l=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,f=this,h=0,u=0,d=!1,g=!1,v=[],b={data:[],errors:[],meta:{}};function E(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function A(){if(b&&a&&(y("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),a=!1),e.skipEmptyLines&&(b.data=b.data.filter((function(e){return!E(e)}))),k()){if(b)if(Array.isArray(b.data[0])){for(var t=0;k()&&t(t=>(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)))(t)?"true"===r||"TRUE"===r||"false"!==r&&"FALSE"!==r&&((e=>{if(o.test(e)&&(e=parseFloat(e),i=v.length?"__parsed_extra":v[n]:c,f=e.transform?e.transform(f,c):f),"__parsed_extra"===c?(a[c]=a[c]||[],a[c].push(f)):a[c]=f}return e.header&&(n>v.length?y("FieldMismatch","TooManyFields","Too many fields: expected "+v.length+" fields but parsed "+n,u+r):ne.preview?r.abort():(b.data=b.data[0],n(b,f))))}),this.parse=function(n,s,i){var o=e.quoteChar||'"';return e.newline||(e.newline=this.guessLineEndings(n,o)),a=!1,e.delimiter?w(e.delimiter)&&(e.delimiter=e.delimiter(n),b.meta.delimiter=e.delimiter):((o=((t,r,a,n,s)=>{var i,o,l,f;s=s||[",","\t","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var h=0;h=r.length/2?"\r\n":"\r"}}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function m(e){var t=(e=e||{}).delimiter,r=e.newline,a=e.comments,n=e.step,s=e.preview,i=e.fastMode,o=null,l=!1,f=null==e.quoteChar?'"':e.quoteChar,h=f;if(void 0!==e.escapeChar&&(h=e.escapeChar),("string"!=typeof t||-1=s)return U(!0);break}y.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:k.length,index:u}),N++}}else if(a&&0===S.length&&c.substring(u,u+E)===a){if(-1===x)return U();u=x+T,x=c.indexOf(r,u),O=c.indexOf(t,u)}else if(-1!==O&&(O=s)return U(!0)}return L();function F(e){k.push(e),_=u}function M(e){var t=0;return-1!==e&&(e=c.substring(N+1,e))&&""===e.trim()?e.length:t}function L(e){return g||(void 0===e&&(e=c.substring(u)),S.push(e),u=v,F(S),A&&B()),U()}function P(e){u=e,F(S),S=[],x=c.indexOf(r,u)}function U(a){if(e.header&&!m&&k.length&&!l){var n=k[0],s={},i=new Set(n);let t=!1;for(let r=0;r65279!==e.charCodeAt(0)?e:e.slice(1))(t),n=new(a.download?l:h)(a)):!0===t.readable&&w(t.read)&&w(t.on)?n=new u(a):(r.File&&t instanceof File||t instanceof Object)&&(n=new f(a)),n.stream(t);(n=(()=>{var t;return!!c.WORKERS_SUPPORTED&&(t=(()=>{var t=r.URL||r.webkitURL||null,a=e.toString();return c.BLOB_URL||(c.BLOB_URL=t.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",a,")();"],{type:"text/javascript"})))})(),(t=new r.Worker(t)).onmessage=g,t.id=i++,s[t.id]=t)})()).userStep=a.step,n.userChunk=a.chunk,n.userComplete=a.complete,n.userError=a.error,a.step=w(a.step),a.chunk=w(a.chunk),a.complete=w(a.complete),a.error=w(a.error),delete a.worker,n.postMessage({input:t,config:a,workerId:n.id})},c.unparse=function(e,t){var r=!1,a=!0,n=",",s="\r\n",i='"',o=i+i,l=!1,f=null,h=!1,u=((()=>{if("object"==typeof t){if("string"!=typeof t.delimiter||c.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(n=t.delimiter),"boolean"!=typeof t.quotes&&"function"!=typeof t.quotes&&!Array.isArray(t.quotes)||(r=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(l=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(i=t.quoteChar),"boolean"==typeof t.header&&(a=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");f=t.columns}void 0!==t.escapeChar&&(o=t.escapeChar+i),t.escapeFormulae instanceof RegExp?h=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(h=/^[=+\-@\t\r].*$/)}})(),new RegExp(p(i),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return d(null,e,l);if("object"==typeof e[0])return d(f||Object.keys(e[0]),e,l)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||f),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),d(e.fields||[],e.data||[],l);throw new Error("Unable to serialize unrecognized input");function d(e,t,r){var i="",c=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0{for(var r=0;r{"use strict";r.d(t,{A:()=>b});var a=r(84849),n=r(27326),s=r(85672),i=r(72574),c=r(25234),o=r(19728),l=r(38009),f=r(60308),h=r(37300),u=r(10644);function d(e){return(0,u.Ay)("MuiTable",e)}(0,h.A)("MuiTable",["root","stickyHeader"]);var p=r(65908);const m=["className","component","padding","size","stickyHeader"],g=(0,f.Ay)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:r}=e;return(0,n.A)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,n.A)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},r.stickyHeader&&{borderCollapse:"separate"})})),v="table",b=s.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiTable"}),{className:f,component:h=v,padding:u="normal",size:b="medium",stickyHeader:T=!1}=r,E=(0,a.A)(r,m),w=(0,n.A)({},r,{component:h,padding:u,size:b,stickyHeader:T}),A=(e=>{const{classes:t,stickyHeader:r}=e,a={root:["root",r&&"stickyHeader"]};return(0,c.A)(a,d,t)})(w),k=s.useMemo((()=>({padding:u,size:b,stickyHeader:T})),[u,b,T]);return(0,p.jsx)(o.A.Provider,{value:k,children:(0,p.jsx)(g,(0,n.A)({as:h,role:h===v?null:"table",ref:t,className:(0,i.A)(A.root,f),ownerState:w},E))})}))},76495:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var a=r(84849),n=r(27326),s=r(85672),i=r(72574),c=r(25234),o=r(60308),l=r(38009),f=r(37300),h=r(10644);function u(e){return(0,h.Ay)("MuiFormGroup",e)}(0,f.A)("MuiFormGroup",["root","row","error"]);var d=r(75520),p=r(38666),m=r(65908);const g=["className","row"],v=(0,o.Ay)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})((e=>{let{ownerState:t}=e;return(0,n.A)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})})),b=s.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiFormGroup"}),{className:s,row:o=!1}=r,f=(0,a.A)(r,g),h=(0,d.A)(),b=(0,p.A)({props:r,muiFormControl:h,states:["error"]}),T=(0,n.A)({},r,{row:o,error:b.error}),E=(e=>{const{classes:t,row:r,error:a}=e,n={root:["root",r&&"row",a&&"error"]};return(0,c.A)(n,u,t)})(T);return(0,m.jsx)(v,(0,n.A)({className:(0,i.A)(E.root,s),ownerState:T,ref:t},f))}))},78292:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});const a=r(85672).createContext()},79829:(e,t,r)=>{"use strict";r.d(t,{LF:()=>Do,Wp:()=>jo});var a=r(50623).Buffer,n=r(4162),s={version:"0.18.5"},i=1200,c=1252,o=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],l={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},f=function(e){-1!=o.indexOf(e)&&(c=l[0]=e)};var h=function(e){i=e,f(e)};function u(){h(1200),f(1252)}function d(e){for(var t=[],r=0,a=e.length;r>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var m,g=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return 255==t&&254==r?function(e){for(var t=[],r=0;r>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return t.join("")}(e.slice(2)):254==t&&255==r?p(e.slice(2)):65279==t?e.slice(1):e},v=function(e){return String.fromCharCode(e)},b=function(e){return String.fromCharCode(e)};var T=null,E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function w(e){for(var t="",r=0,a=0,n=0,s=0,i=0,c=0,o=0,l=0;l>2,i=(3&r)<<4|(a=e.charCodeAt(l++))>>4,c=(15&a)<<2|(n=e.charCodeAt(l++))>>6,o=63&n,isNaN(a)?c=o=64:isNaN(n)&&(o=64),t+=E.charAt(s)+E.charAt(i)+E.charAt(c)+E.charAt(o);return t}function A(e){var t="",r=0,a=0,n=0,s=0,i=0,c=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var o=0;o>4,t+=String.fromCharCode(r),a=(15&s)<<4|(i=E.indexOf(e.charAt(o++)))>>2,64!==i&&(t+=String.fromCharCode(a)),n=(3&i)<<6|(c=E.indexOf(e.charAt(o++))),64!==c&&(t+=String.fromCharCode(n));return t}var k=function(){return"undefined"!==typeof a&&"undefined"!==typeof n&&"undefined"!==typeof n.versions&&!!n.versions.node}(),y=function(){if("undefined"!==typeof a){var e=!a.from;if(!e)try{a.from("foo","utf8")}catch(t){e=!0}return e?function(e,t){return t?new a(e,t):new a(e)}:a.from.bind(a)}return function(){}}();function S(e){return k?a.alloc?a.alloc(e):new a(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function _(e){return k?a.allocUnsafe?a.allocUnsafe(e):new a(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var C=function(e){return k?y(e,"binary"):e.split("").map((function(e){return 255&e.charCodeAt(0)}))};function R(e){if(Array.isArray(e))return e.map((function(e){return String.fromCharCode(e)})).join("");for(var t=[],r=0;r=0;)t+=e.charAt(r--);return t}function F(e,t){var r=""+e;return r.length>=t?r:Ge("0",t-r.length)+r}function M(e,t){var r=""+e;return r.length>=t?r:Ge(" ",t-r.length)+r}function L(e,t){var r=""+e;return r.length>=t?r:r+Ge(" ",t-r.length)}var P=Math.pow(2,32);function U(e,t){return e>P||e<-P?function(e,t){var r=""+Math.round(e);return r.length>=t?r:Ge("0",t-r.length)+r}(e,t):function(e,t){var r=""+e;return r.length>=t?r:Ge("0",t-r.length)+r}(Math.round(e),t)}function B(e,t){return t=t||0,e.length>=7+t&&103===(32|e.charCodeAt(t))&&101===(32|e.charCodeAt(t+1))&&110===(32|e.charCodeAt(t+2))&&101===(32|e.charCodeAt(t+3))&&114===(32|e.charCodeAt(t+4))&&97===(32|e.charCodeAt(t+5))&&108===(32|e.charCodeAt(t+6))}var H=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],z=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];var W={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "'},V={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},G={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function j(e,t,r){for(var a=e<0?-1:1,n=e*a,s=0,i=1,c=0,o=1,l=0,f=0,h=Math.floor(n);lt&&(l>t?(f=o,c=s):(f=l,c=i)),!r)return[0,a*c,f];var u=Math.floor(a*c/f);return[u,a*c-u*f,f]}function X(e,t,r){if(e>2958465||e<0)return null;var a=0|e,n=Math.floor(86400*(e-a)),s=0,i=[],c={D:a,T:n,u:86400*(e-a)-n,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(c.u)<1e-6&&(c.u=0),t&&t.date1904&&(a+=1462),c.u>.9999&&(c.u=0,86400==++n&&(c.T=n=0,++a,++c.D)),60===a)i=r?[1317,10,29]:[1900,2,29],s=3;else if(0===a)i=r?[1317,8,29]:[1900,1,0],s=6;else{a>60&&--a;var o=new Date(1900,0,1);o.setDate(o.getDate()+a-1),i=[o.getFullYear(),o.getMonth()+1,o.getDate()],s=o.getDay(),a<60&&(s=(s+6)%7),r&&(s=function(e,t){t[0]-=581;var r=e.getDay();e<60&&(r=(r+6)%7);return r}(o,i))}return c.y=i[0],c.m=i[1],c.d=i[2],c.S=n%60,n=Math.floor(n/60),c.M=n%60,n=Math.floor(n/60),c.H=n,c.q=s,c}var K=new Date(1899,11,31,0,0,0),Y=K.getTime(),J=new Date(1900,2,1,0,0,0);function q(e,t){var r=e.getTime();return t?r-=1262304e5:e>=J&&(r+=864e5),(r-(Y+6e4*(e.getTimezoneOffset()-K.getTimezoneOffset())))/864e5}function Z(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Q(e){var t,r=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=r>=-4&&r<=-1?e.toPrecision(10+r):Math.abs(r)<=9?function(e){var t=e<0?12:11,r=Z(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10)).length<=t?r:e.toExponential(5)}(e):10===r?e.toFixed(10).substr(0,12):function(e){var t=Z(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}(e),Z(function(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(t.toUpperCase()))}function ee(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):Q(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return we(14,q(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function te(e,t,r,a){var n,s="",i=0,c=0,o=r.y,l=0;switch(e){case 98:o=r.y+543;case 121:switch(t.length){case 1:case 2:n=o%100,l=2;break;default:n=o%1e4,l=4}break;case 109:switch(t.length){case 1:case 2:n=r.m,l=t.length;break;case 3:return z[r.m-1][1];case 5:return z[r.m-1][0];default:return z[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:n=r.d,l=t.length;break;case 3:return H[r.q][0];default:return H[r.q][1]}break;case 104:switch(t.length){case 1:case 2:n=1+(r.H+11)%12,l=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:n=r.H,l=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:n=r.M,l=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==r.u||"s"!=t&&"ss"!=t?(c=a>=2?3===a?1e3:100:1===a?10:1,(i=Math.round(c*(r.S+r.u)))>=60*c&&(i=0),"s"===t?0===i?"0":""+i/c:(s=F(i,2+a),"ss"===t?s.substr(0,2):"."+s.substr(2,t.length-1))):F(r.S,t.length);case 90:switch(t){case"[h]":case"[hh]":n=24*r.D+r.H;break;case"[m]":case"[mm]":n=60*(24*r.D+r.H)+r.M;break;case"[s]":case"[ss]":n=60*(60*(24*r.D+r.H)+r.M)+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}l=3===t.length?1:2;break;case 101:n=o,l=1}return l>0?F(n,l):""}function re(e){if(e.length<=3)return e;for(var t=e.length%3,r=e.substr(0,t);t!=e.length;t+=3)r+=(r.length>0?",":"")+e.substr(t,3);return r}var ae=/%/g;function ne(e,t){var r,a=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+ne(e,-t);var n=e.indexOf(".");-1===n&&(n=e.indexOf("E"));var s=Math.floor(Math.log(t)*Math.LOG10E)%n;if(s<0&&(s+=n),-1===(r=(t/Math.pow(10,s)).toPrecision(a+1+(n+s)%n)).indexOf("e")){var i=Math.floor(Math.log(t)*Math.LOG10E);for(-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(i-r.length+s):r+="E+"+(i-s);"0."===r.substr(0,2);)r=(r=r.charAt(0)+r.substr(2,n)+"."+r.substr(2+n)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,r,a){return t+r+a.substr(0,(n+s)%n)+"."+a.substr(s)+"E"}))}else r=t.toExponential(a);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var se=/# (\?+)( ?)\/( ?)(\d+)/;var ie=/^#*0*\.([0#]+)/,ce=/\).*[0#]/,oe=/\(###\) ###\\?-####/;function le(e){for(var t,r="",a=0;a!=e.length;++a)switch(t=e.charCodeAt(a)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(t)}return r}function fe(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function he(e,t){var r=e-Math.floor(e),a=Math.pow(10,t);return t<(""+Math.round(r*a)).length?0:Math.round(r*a)}function ue(e,t,r){if(40===e.charCodeAt(0)&&!t.match(ce)){var a=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?ue("n",a,r):"("+ue("n",a,-r)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,r){for(var a=t.length-1;44===t.charCodeAt(a-1);)--a;return me(e,t.substr(0,a),r/Math.pow(10,3*(t.length-a)))}(e,t,r);if(-1!==t.indexOf("%"))return function(e,t,r){var a=t.replace(ae,""),n=t.length-a.length;return me(e,a,r*Math.pow(10,2*n))+Ge("%",n)}(e,t,r);if(-1!==t.indexOf("E"))return ne(t,r);if(36===t.charCodeAt(0))return"$"+ue(e,t.substr(" "==t.charAt(1)?2:1),r);var n,s,i,c,o=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+U(o,t.length);if(t.match(/^[#?]+$/))return"0"===(n=U(r,0))&&(n=""),n.length>t.length?n:le(t.substr(0,t.length-n.length))+n;if(s=t.match(se))return function(e,t,r){var a=parseInt(e[4],10),n=Math.round(t*a),s=Math.floor(n/a),i=n-s*a,c=a;return r+(0===s?"":""+s)+" "+(0===i?Ge(" ",e[1].length+1+e[4].length):M(i,e[1].length)+e[2]+"/"+e[3]+F(c,e[4].length))}(s,o,l);if(t.match(/^#+0+$/))return l+U(o,t.length-t.indexOf("0"));if(s=t.match(ie))return n=fe(r,s[1].length).replace(/^([^\.]+)$/,"$1."+le(s[1])).replace(/\.$/,"."+le(s[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+Ge("0",le(s[1]).length-t.length)})),-1!==t.indexOf("0.")?n:n.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),s=t.match(/^(0*)\.(#*)$/))return l+fe(o,s[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=t.match(/^#{1,3},##0(\.?)$/))return l+re(U(o,0));if(s=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+ue(e,t,-r):re(""+(Math.floor(r)+function(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}(r,s[1].length)))+"."+F(he(r,s[1].length),s[1].length);if(s=t.match(/^#,#*,#0/))return ue(e,t.replace(/^#,#*,/,""),r);if(s=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=D(ue(e,t.replace(/[\\-]/g,""),r)),i=0,D(D(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return i-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?F(0,3-e.length):"")+e}))+"."+F(i,s[1].length);switch(t){case"###,##0.00":return ue(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var d=re(U(o,0));return"0"!==d?l+d:"";case"###,###.00":return ue(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return ue(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function de(e,t){var r,a=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+de(e,-t);var n=e.indexOf(".");-1===n&&(n=e.indexOf("E"));var s=Math.floor(Math.log(t)*Math.LOG10E)%n;if(s<0&&(s+=n),!(r=(t/Math.pow(10,s)).toPrecision(a+1+(n+s)%n)).match(/[Ee]/)){var i=Math.floor(Math.log(t)*Math.LOG10E);-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(i-r.length+s):r+="E+"+(i-s),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,r,a){return t+r+a.substr(0,(n+s)%n)+"."+a.substr(s)+"E"}))}else r=t.toExponential(a);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function pe(e,t,r){if(40===e.charCodeAt(0)&&!t.match(ce)){var a=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?pe("n",a,r):"("+pe("n",a,-r)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,r){for(var a=t.length-1;44===t.charCodeAt(a-1);)--a;return me(e,t.substr(0,a),r/Math.pow(10,3*(t.length-a)))}(e,t,r);if(-1!==t.indexOf("%"))return function(e,t,r){var a=t.replace(ae,""),n=t.length-a.length;return me(e,a,r*Math.pow(10,2*n))+Ge("%",n)}(e,t,r);if(-1!==t.indexOf("E"))return de(t,r);if(36===t.charCodeAt(0))return"$"+pe(e,t.substr(" "==t.charAt(1)?2:1),r);var n,s,i,c,o=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+F(o,t.length);if(t.match(/^[#?]+$/))return n=""+r,0===r&&(n=""),n.length>t.length?n:le(t.substr(0,t.length-n.length))+n;if(s=t.match(se))return function(e,t,r){return r+(0===t?"":""+t)+Ge(" ",e[1].length+2+e[4].length)}(s,o,l);if(t.match(/^#+0+$/))return l+F(o,t.length-t.indexOf("0"));if(s=t.match(ie))return n=(n=(""+r).replace(/^([^\.]+)$/,"$1."+le(s[1])).replace(/\.$/,"."+le(s[1]))).replace(/\.(\d*)$/,(function(e,t){return"."+t+Ge("0",le(s[1]).length-t.length)})),-1!==t.indexOf("0.")?n:n.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),s=t.match(/^(0*)\.(#*)$/))return l+(""+o).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=t.match(/^#{1,3},##0(\.?)$/))return l+re(""+o);if(s=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+pe(e,t,-r):re(""+r)+"."+Ge("0",s[1].length);if(s=t.match(/^#,#*,#0/))return pe(e,t.replace(/^#,#*,/,""),r);if(s=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=D(pe(e,t.replace(/[\\-]/g,""),r)),i=0,D(D(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return i-1||"\\"==r&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t-1;);break;default:++t}return!1}var be=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Te(e,t){if(null==t)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0}return!1}function Ee(e,t){var r=function(e){for(var t=[],r=!1,a=0,n=0;a-1&&--a,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if("number"!==typeof t)return[4,4===r.length||n>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=n>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=n>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=n>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"]}var s=t>0?r[0]:t<0?r[1]:r[2];if(-1===r[0].indexOf("[")&&-1===r[1].indexOf("["))return[a,s];if(null!=r[0].match(/\[[=<>]/)||null!=r[1].match(/\[[=<>]/)){var i=r[0].match(be),c=r[1].match(be);return Te(t,i)?[a,r[0]]:Te(t,c)?[a,r[1]]:[a,r[null!=i&&null!=c?2:1]]}return[a,s]}function we(e,t,r){null==r&&(r={});var a="";switch(typeof e){case"string":a="m/d/yy"==e&&r.dateNF?r.dateNF:e;break;case"number":null==(a=14==e&&r.dateNF?r.dateNF:(null!=r.table?r.table:W)[e])&&(a=r.table&&r.table[V[e]]||W[V[e]]),null==a&&(a=G[e]||"General")}if(B(a,0))return ee(t,r);t instanceof Date&&(t=q(t,r.date1904));var n=Ee(a,t);if(B(n[1]))return ee(t,r);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return function(e,t,r,a){for(var n,s,i,c=[],o="",l=0,f="",h="t",u="H";l=12?"P":"A"),m.t="T",u="h",l+=3):"AM/PM"===e.substr(l,5).toUpperCase()?(null!=n&&(m.v=n.H>=12?"PM":"AM"),m.t="T",l+=5,u="h"):"\u4e0a\u5348/\u4e0b\u5348"===e.substr(l,5).toUpperCase()?(null!=n&&(m.v=n.H>=12?"\u4e0b\u5348":"\u4e0a\u5348"),m.t="T",l+=5,u="h"):(m.t="t",++l),null==n&&"T"===m.t)return"";c[c.length]=m,h=f;break;case"[":for(o=f;"]"!==e.charAt(l++)&&l-1&&(o=(o.match(/\$([^-\[\]]*)/)||[])[1]||"$",ve(e)||(c[c.length]={t:"t",v:o}));break;case".":if(null!=n){for(o=f;++l-1;)o+=f;c[c.length]={t:"n",v:o};break;case"?":for(o=f;e.charAt(++l)===f;)o+=f;c[c.length]={t:f,v:o},h=f;break;case"*":++l," "!=e.charAt(l)&&"*"!=e.charAt(l)||++l;break;case"(":case")":c[c.length]={t:1===a?"t":f,v:f},++l;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(o=f;l-1;)o+=e.charAt(l);c[c.length]={t:"D",v:o};break;case" ":c[c.length]={t:f,v:f},++l;break;case"$":c[c.length]={t:"t",v:"$"},++l;break;default:if(-1===",$-+/():!^&'~{}<>=\u20acacfijklopqrtuvwxzP".indexOf(f))throw new Error("unrecognized character "+f+" in "+e);c[c.length]={t:"t",v:f},++l}var g,v=0,b=0;for(l=c.length-1,h="t";l>=0;--l)switch(c[l].t){case"h":case"H":c[l].t=u,h="h",v<1&&(v=1);break;case"s":(g=c[l].v.match(/\.0+$/))&&(b=Math.max(b,g[0].length-1)),v<3&&(v=3);case"d":case"y":case"M":case"e":h=c[l].t;break;case"m":"s"===h&&(c[l].t="M",v<2&&(v=2));break;case"X":break;case"Z":v<1&&c[l].v.match(/[Hh]/)&&(v=1),v<2&&c[l].v.match(/[Mm]/)&&(v=2),v<3&&c[l].v.match(/[Ss]/)&&(v=3)}switch(v){case 0:break;case 1:n.u>=.5&&(n.u=0,++n.S),n.S>=60&&(n.S=0,++n.M),n.M>=60&&(n.M=0,++n.H);break;case 2:n.u>=.5&&(n.u=0,++n.S),n.S>=60&&(n.S=0,++n.M)}var T,E="";for(l=0;l0){40==E.charCodeAt(0)?(w=t<0&&45===E.charCodeAt(0)?-t:t,A=me("n",E,w)):(A=me("n",E,w=t<0&&a>1?-t:t),w<0&&c[0]&&"t"==c[0].t&&(A=A.substr(1),c[0].v="-"+c[0].v)),T=A.length-1;var y=c.length;for(l=0;l-1){y=l;break}var S=c.length;if(y===c.length&&-1===A.indexOf("E")){for(l=c.length-1;l>=0;--l)null!=c[l]&&-1!=="n?".indexOf(c[l].t)&&(T>=c[l].v.length-1?(T-=c[l].v.length,c[l].v=A.substr(T+1,c[l].v.length)):T<0?c[l].v="":(c[l].v=A.substr(0,T+1),T=-1),c[l].t="t",S=l);T>=0&&S=0;--l)if(null!=c[l]&&-1!=="n?".indexOf(c[l].t)){for(s=c[l].v.indexOf(".")>-1&&l===y?c[l].v.indexOf(".")-1:c[l].v.length-1,k=c[l].v.substr(s+1);s>=0;--s)T>=0&&("0"===c[l].v.charAt(s)||"#"===c[l].v.charAt(s))&&(k=A.charAt(T--)+k);c[l].v=k,c[l].t="t",S=l}for(T>=0&&S-1&&l===y?c[l].v.indexOf(".")+1:0,k=c[l].v.substr(0,s);s-1&&(w=a>1&&t<0&&l>0&&"-"===c[l-1].v?-t:t,c[l].v=me(c[l].t,c[l].v,w),c[l].t="t");var _="";for(l=0;l!==c.length;++l)null!=c[l]&&(_+=c[l].v);return _}(n[1],t,r,n[0])}function Ae(e,t){if("number"!=typeof t){t=+t||-1;for(var r=0;r<392;++r)if(void 0!=W[r]){if(W[r]==e){t=r;break}}else t<0&&(t=r);t<0&&(t=391)}return W[t]=e,t}function ke(){var e;e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "',W=e}var ye={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},Se=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;var _e=function(){var e={};e.version="1.2.0";var t=function(){for(var e=0,t=new Array(256),r=0;256!=r;++r)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=r)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[r]=e;return"undefined"!==typeof Int32Array?new Int32Array(t):t}();var r=function(e){var t=0,r=0,a=0,n="undefined"!==typeof Int32Array?new Int32Array(4096):new Array(4096);for(a=0;256!=a;++a)n[a]=e[a];for(a=0;256!=a;++a)for(r=e[a],t=256+a;t<4096;t+=256)r=n[t]=r>>>8^e[255&r];var s=[];for(a=1;16!=a;++a)s[a-1]="undefined"!==typeof Int32Array?n.subarray(256*a,256*a+256):n.slice(256*a,256*a+256);return s}(t),a=r[0],n=r[1],s=r[2],i=r[3],c=r[4],o=r[5],l=r[6],f=r[7],h=r[8],u=r[9],d=r[10],p=r[11],m=r[12],g=r[13],v=r[14];return e.table=t,e.bstr=function(e,r){for(var a=~r,n=0,s=e.length;n>>8^t[255&(a^e.charCodeAt(n++))];return~a},e.buf=function(e,r){for(var b=~r,T=e.length-15,E=0;E>8&255]^m[e[E++]^b>>16&255]^p[e[E++]^b>>>24]^d[e[E++]]^u[e[E++]]^h[e[E++]]^f[e[E++]]^l[e[E++]]^o[e[E++]]^c[e[E++]]^i[e[E++]]^s[e[E++]]^n[e[E++]]^a[e[E++]]^t[e[E++]];for(T+=15;E>>8^t[255&(b^e[E++])];return~b},e.str=function(e,r){for(var a=~r,n=0,s=e.length,i=0,c=0;n>>8^t[255&(a^i)]:i<2048?a=(a=a>>>8^t[255&(a^(192|i>>6&31))])>>>8^t[255&(a^(128|63&i))]:i>=55296&&i<57344?(i=64+(1023&i),c=1023&e.charCodeAt(n++),a=(a=(a=(a=a>>>8^t[255&(a^(240|i>>8&7))])>>>8^t[255&(a^(128|i>>2&63))])>>>8^t[255&(a^(128|c>>6&15|(3&i)<<4))])>>>8^t[255&(a^(128|63&c))]):a=(a=(a=a>>>8^t[255&(a^(224|i>>12&15))])>>>8^t[255&(a^(128|i>>6&63))])>>>8^t[255&(a^(128|63&i))];return~a},e}(),Ce=function(){var e,t={};function r(e){if("/"==e.charAt(e.length-1))return-1===e.slice(0,-1).indexOf("/")?e:r(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(0,t+1)}function n(e){if("/"==e.charAt(e.length-1))return n(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(t+1)}function s(e,t){"string"===typeof t&&(t=new Date(t));var r=t.getHours();r=(r=r<<6|t.getMinutes())<<5|t.getSeconds()>>>1,e.write_shift(2,r);var a=t.getFullYear()-1980;a=(a=a<<4|t.getMonth()+1)<<5|t.getDate(),e.write_shift(2,a)}function i(e){wr(e,0);for(var t={},r=0;e.l<=e.length-4;){var a=e.read_shift(2),n=e.read_shift(2),s=e.l+n,i={};if(21589===a)1&(r=e.read_shift(1))&&(i.mtime=e.read_shift(4)),n>5&&(2&r&&(i.atime=e.read_shift(4)),4&r&&(i.ctime=e.read_shift(4))),i.mtime&&(i.mt=new Date(1e3*i.mtime));e.l=s,t[a]=i}return t}function c(){return e||(e={})}function o(e,t){if(80==e[0]&&75==e[1])return pe(e,t);if(109==(32|e[0])&&105==(32|e[1]))return function(e,t){if("mime-version:"!=D(e.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var r=t&&t.root||"",n=(k&&a.isBuffer(e)?e.toString("binary"):D(e)).split("\r\n"),s=0,i="";for(s=0;s0&&(r=(r=r.slice(0,r.length-1)).slice(0,r.lastIndexOf("/")+1),i.slice(0,r.length)!=r););var c=(n[1]||"").match(/boundary="(.*?)"/);if(!c)throw new Error("MAD cannot find boundary");var o="--"+(c[1]||""),l=[],f=[],h={FileIndex:l,FullPaths:f};d(h);var u,p=0;for(s=0;s=n&&(u-=n),!i[u]){o=[];var p=[];for(h=u;h>=0;){p[h]=!0,i[h]=!0,c[c.length]=h,o.push(e[h]);var m=r[Math.floor(4*h/a)];if(a<4+(d=4*h&l))throw new Error("FAT boundary crossed: "+h+" 4 "+a);if(!e[m])break;if(p[h=dr(e[m],d)])break}s[u]={nodes:c,data:Wt([o])}}return s}(S,i,m,p);_[i].name="!Directory",n>0&&c!==b&&(_[c].name="!MiniFAT"),_[m[0]].name="!FAT",_.fat_addrs=m,_.ssz=p;var C=[],R=[],O=[];!function(e,t,r,a,n,s,i,c){for(var o,f=0,d=a.length?2:0,p=t[e].data,m=0,g=0;m0&&f!==b&&(t[f].name="!StreamData")):T.size>=4096?(T.storage="fat",void 0===t[T.start]&&(t[T.start]=h(r,T.start,t.fat_addrs,t.ssz)),t[T.start].name=T.name,T.content=t[T.start].data.slice(0,T.size)):(T.storage="minifat",T.size<0?T.size=0:f!==b&&T.start!==b&&t[f]&&(T.content=l(T,t[f].data,(t[c]||{}).data))),T.content&&wr(T.content,0),s[o]=T,i.push(T)}}(i,_,S,C,n,{},R,c),function(e,t,r){for(var a=0,n=0,s=0,i=0,c=0,o=r.length,l=[],f=[];a0&&i>=0;)s.push(t.slice(i*v,i*v+v)),n-=v,i=dr(r,4*i);return 0===s.length?kr(0):x(s).slice(0,e.size)}function f(e,t,r,a,n){var s=b;if(e===b){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var i=r[e],c=(a>>>2)-1;if(!i)return;for(var o=0;o=0;){n[o]=!0,s[s.length]=o,i.push(e[o]);var f=r[Math.floor(4*o/a)];if(a<4+(l=4*o&c))throw new Error("FAT boundary crossed: "+o+" 4 "+a);if(!e[f])break;o=dr(e[f],l)}return{nodes:s,data:Wt([i])}}function u(e,t){return new Date(1e3*(ur(e,t+4)/1e7*Math.pow(2,32)+ur(e,t)/1e7-11644473600))}function d(e,t){var r=t||{},a=r.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=a+"/",e.FileIndex[0]={name:a,type:5}),r.CLSID&&(e.FileIndex[0].clsid=r.CLSID),function(e){var t="\x01Sh33tJ5";if(Ce.find(e,"/"+t))return;var r=kr(4);r[0]=55,r[1]=r[3]=50,r[2]=54,e.FileIndex.push({name:t,type:2,content:r,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),p(e)}(e)}function p(e,t){d(e);for(var a=!1,s=!1,i=e.FullPaths.length-1;i>=0;--i){var c=e.FileIndex[i];switch(c.type){case 0:s?a=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:s=!0,isNaN(c.R*c.L*c.C)&&(a=!0),c.R>-1&&c.L>-1&&c.R==c.L&&(a=!0);break;default:a=!0}}if(a||t){var o=new Date(1987,1,19),l=0,f=Object.create?Object.create(null):{},h=[];for(i=0;i1?1:-1,p.size=0,p.type=5;else if("/"==m.slice(-1)){for(l=i+1;l=h.length?-1:l,l=i+1;l=h.length?-1:l,p.type=1}else r(e.FullPaths[i+1]||"")==r(m)&&(p.R=i+1),p.type=2}}}function m(e,t){var r=t||{};if("mad"==r.fileType)return function(e,t){for(var r=t||{},n=r.boundary||"SheetJS",s=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(n="------="+n).slice(2)+'"',"","",""],i=e.FullPaths[0],c=i,o=e.FileIndex[0],l=1;l=32&&p<128&&++u;var g=u>=4*d/5;s.push(n),s.push("Content-Location: "+(r.root||"file:///C:/SheetJS/")+c),s.push("Content-Transfer-Encoding: "+(g?"quoted-printable":"base64")),s.push("Content-Type: "+ve(o,c)),s.push(""),s.push(g?Te(h):be(h))}return s.push(n+"--\r\n"),s.join("\r\n")}(e,r);if(p(e),"zip"===r.fileType)return function(e,t){var r=t||{},a=[],n=[],i=kr(1),c=r.compression?8:0,o=0;0;var l=0,f=0,h=0,u=0,d=e.FullPaths[0],p=d,m=e.FileIndex[0],g=[],v=0;for(l=1;l0&&(s<4096?t+=s+63>>6:r+=s+511>>9)}}for(var i=e.FullPaths.length+3>>2,c=t+127>>7,o=(t+7>>3)+r+i+c,l=o+127>>7,f=l<=109?0:Math.ceil((l-109)/127);o+l+f+127>>7>l;)f=++l<=109?0:Math.ceil((l-109)/127);var h=[1,f,l,c,i,r,t,0];return e.FileIndex[0].size=t<<6,h[7]=(e.FileIndex[0].start=h[0]+h[1]+h[2]+h[3]+h[4]+h[5])+(h[6]+7>>3),h}(e),i=kr(n[7]<<9),c=0,o=0;for(c=0;c<8;++c)i.write_shift(1,E[c]);for(c=0;c<8;++c)i.write_shift(2,0);for(i.write_shift(2,62),i.write_shift(2,3),i.write_shift(2,65534),i.write_shift(2,9),i.write_shift(2,6),c=0;c<3;++c)i.write_shift(2,0);for(i.write_shift(4,0),i.write_shift(4,n[2]),i.write_shift(4,n[0]+n[1]+n[2]+n[3]-1),i.write_shift(4,0),i.write_shift(4,4096),i.write_shift(4,n[3]?n[0]+n[1]+n[2]-1:b),i.write_shift(4,n[3]),i.write_shift(-4,n[1]?n[0]-1:b),i.write_shift(4,n[1]),c=0;c<109;++c)i.write_shift(-4,c>9)));for(l(n[6]+7>>3);511&i.l;)i.write_shift(-4,O.ENDOFCHAIN);for(o=c=0,f=0;f=4096||(u.start=o,l(h+63>>6)));for(;511&i.l;)i.write_shift(-4,O.ENDOFCHAIN);for(c=0;c=4096)if(i.l=u.start+1<<9,k&&a.isBuffer(u.content))u.content.copy(i,i.l,0,u.size),i.l+=u.size+511&-512;else{for(f=0;f0&&u.size<4096)if(k&&a.isBuffer(u.content))u.content.copy(i,i.l,0,u.size),i.l+=u.size+63&-64;else{for(f=0;f>16|t>>8|t)}for(var B="undefined"!==typeof Uint8Array,H=B?new Uint8Array(256):[],z=0;z<256;++z)H[z]=U(z);function W(e,t){var r=H[255&e];return t<=8?r>>>8-t:(r=r<<8|H[e>>8&255],t<=16?r>>>16-t:(r=r<<8|H[e>>16&255])>>>24-t)}function V(e,t){var r=7&t,a=t>>>3;return(e[a]|(r<=6?0:e[a+1]<<8))>>>r&3}function G(e,t){var r=7&t,a=t>>>3;return(e[a]|(r<=5?0:e[a+1]<<8))>>>r&7}function j(e,t){var r=7&t,a=t>>>3;return(e[a]|(r<=3?0:e[a+1]<<8))>>>r&31}function $(e,t){var r=7&t,a=t>>>3;return(e[a]|(r<=1?0:e[a+1]<<8))>>>r&127}function X(e,t,r){var a=7&t,n=t>>>3,s=(1<>>a;return r<8-a?i&s:(i|=e[n+1]<<8-a,r<16-a?i&s:(i|=e[n+2]<<16-a,r<24-a?i&s:(i|=e[n+3]<<24-a)&s))}function K(e,t,r){var a=7&t,n=t>>>3;return a<=5?e[n]|=(7&r)<>8-a),t+3}function Y(e,t,r){return r=(1&r)<<(7&t),e[t>>>3]|=r,t+1}function J(e,t,r){var a=t>>>3;return r<<=7&t,e[a]|=255&r,r>>>=8,e[a+1]=r,t+8}function q(e,t,r){var a=t>>>3;return r<<=7&t,e[a]|=255&r,r>>>=8,e[a+1]=255&r,e[a+2]=r>>>8,t+16}function Z(e,t){var r=e.length,a=2*r>t?2*r:t+5,n=0;if(r>=t)return e;if(k){var s=_(a);if(e.copy)e.copy(s);else for(;n>a-h,i=(1<=0;--i)t[c|i<0;)t[t.l++]=e[r++]}return t.l}(t,r):function(t,r){for(var n=0,s=0,i=B?new Uint16Array(32768):[];s0;)r[r.l++]=t[s++];n=8*r.l}else{n=K(r,n,+!(s+c!=t.length)+2);for(var o=0;c-- >0;){var l=t[s],f=-1,h=0;if((f=i[o=32767&(o<<5^l)])&&((f|=-32768&s)>s&&(f-=32768),f2){(l=a[h])<=22?n=J(r,n,H[l+1]>>1)-1:(J(r,n,3),J(r,n+=5,H[l-23]>>5),n+=3);var u=l<8?0:l-4>>2;u>0&&(q(r,n,h-L[l]),n+=u),l=e[s-f],n=J(r,n,H[l]>>3),n-=3;var d=l<4?0:l-2>>1;d>0&&(q(r,n,s-f-P[l]),n+=d);for(var p=0;p>>3;return(e[a]|(r<=4?0:e[a+1]<<8))>>>r&15}(e,t+=5)+4;t+=4;for(var s=0,i=B?new Uint8Array(19):Q(19),c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],o=1,l=B?new Uint8Array(8):Q(8),f=B?new Uint8Array(8):Q(8),h=i.length,u=0;u>8-p;for(var m=(1<<7-p)-1;m>=0;--m)oe[d|m<>>=3){case 16:for(s=3+V(e,t),t+=2,d=g[g.length-1];s-- >0;)g.push(d);break;case 17:for(s=3+G(e,t),t+=3;s-- >0;)g.push(0);break;case 18:for(s=11+$(e,t),t+=7;s-- >0;)g.push(0);break;default:g.push(d),o>>0,c=0,o=0;0==(1&a);)if(a=G(e,r),r+=3,a>>>1!=0)for(a>>1==1?(c=9,o=5):(r=he(e,r),c=le,o=fe);;){!t&&i>>1==1?te[l]:ie[l];if(r+=15&f,0===((f>>>=4)>>>8&255))n[s++]=f;else{if(256==f)break;var h=(f-=257)<8?0:f-4>>2;h>5&&(h=0);var u=s+L[f];h>0&&(u+=X(e,r,h),r+=h),l=X(e,r,o),r+=15&(f=a>>>1==1?re[l]:ce[l]);var d=(f>>>=4)<4?0:f-2>>1,p=P[f];for(d>0&&(p+=X(e,r,d),r+=d),!t&&i>>3]|e[1+(r>>>3)]<<8;if(r+=32,m>0)for(!t&&i0;)n[s++]=e[r>>>3],r+=8}return t?[n,r+7>>>3]:[n.slice(0,s),r+7>>>3]}(e.slice(e.l||0),t);return e.l+=r[1],r[0]}function de(e,t){if(!e)throw new Error(t);"undefined"!==typeof console&&console.error(t)}function pe(e,t){var r=e;wr(r,0);var a={FileIndex:[],FullPaths:[]};d(a,{root:t.root});for(var n=r.length-4;(80!=r[n]||75!=r[n+1]||5!=r[n+2]||6!=r[n+3])&&n>=0;)--n;r.l=n+4,r.l+=4;var s=r.read_shift(2);r.l+=6;var c=r.read_shift(4);for(r.l=c,n=0;n>>=5);r>>>=4,a.setMilliseconds(0),a.setFullYear(r+1980),a.setMonth(s-1),a.setDate(n);var i=31&t,c=63&(t>>>=5);return t>>>=6,a.setHours(t),a.setMinutes(c),a.setSeconds(i<<1),a}(e);if(8257&s)throw new Error("Unsupported ZIP encryption");e.read_shift(4);for(var l=e.read_shift(4),f=e.read_shift(4),h=e.read_shift(2),u=e.read_shift(2),d="",p=0;p3&&(a=!0),n[s].slice(n[s].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+n[s].slice(n[s].length-1));case"D":r*=24;case"H":r*=60;case"M":if(!a)throw new Error("Unsupported ISO Duration Field: M");r*=60}t+=r*parseInt(n[s],10)}return t}var Ue=new Date("2017-02-19T19:06:09.000Z"),Be=isNaN(Ue.getFullYear())?new Date("2/19/17"):Ue,He=2017==Be.getFullYear();function ze(e,t){var r=new Date(e);if(He)return t>0?r.setTime(r.getTime()+60*r.getTimezoneOffset()*1e3):t<0&&r.setTime(r.getTime()-60*r.getTimezoneOffset()*1e3),r;if(e instanceof Date)return e;if(1917==Be.getFullYear()&&!isNaN(r.getFullYear())){var a=r.getFullYear();return e.indexOf(""+a)>-1||r.setFullYear(r.getFullYear()+100),r}var n=e.match(/\d+/g)||["2017","2","19","0","0","0"],s=new Date(+n[0],+n[1]-1,+n[2],+n[3]||0,+n[4]||0,+n[5]||0);return e.indexOf("Z")>-1&&(s=new Date(s.getTime()-60*s.getTimezoneOffset()*1e3)),s}function We(e,t){if(k&&a.isBuffer(e)){if(t){if(255==e[0]&&254==e[1])return Ct(e.slice(2).toString("utf16le"));if(254==e[1]&&255==e[2])return Ct(p(e.slice(2).toString("binary")))}return e.toString("binary")}if("undefined"!==typeof TextDecoder)try{if(t){if(255==e[0]&&254==e[1])return Ct(new TextDecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return Ct(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"\u20ac":"\x80","\u201a":"\x82","\u0192":"\x83","\u201e":"\x84","\u2026":"\x85","\u2020":"\x86","\u2021":"\x87","\u02c6":"\x88","\u2030":"\x89","\u0160":"\x8a","\u2039":"\x8b","\u0152":"\x8c","\u017d":"\x8e","\u2018":"\x91","\u2019":"\x92","\u201c":"\x93","\u201d":"\x94","\u2022":"\x95","\u2013":"\x96","\u2014":"\x97","\u02dc":"\x98","\u2122":"\x99","\u0161":"\x9a","\u203a":"\x9b","\u0153":"\x9c","\u017e":"\x9e","\u0178":"\x9f"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[\u20ac\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\u017d\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\u017e\u0178]/g,(function(e){return r[e]||e}))}catch(i){}for(var n=[],s=0;s!=e.length;++s)n.push(String.fromCharCode(e[s]));return n.join("")}function Ve(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=Ve(e[r]));return t}function Ge(e,t){for(var r="";r.length3&&-1==$e.indexOf(i))return r}else if(i.match(/[a-z]/))return r;return a<0||a>8099?r:(n>0||s>1)&&101!=a?t:e.match(/[^-0-9:,\/\\]/)?r:t}var Ke=function(){var e=5=="abacaba".split(/(:?b)/i).length;return function(t,r,a){if(e||"string"==typeof r)return t.split(r);for(var n=t.split(r),s=[n[0]],i=1;i>6&31,n[r++]=128|63&i;else if(i>=55296&&i<57344){i=64+(1023&i);var c=1023&e.charCodeAt(++s);n[r++]=240|i>>8&7,n[r++]=128|i>>2&63,n[r++]=128|c>>6&15|(3&i)<<4,n[r++]=128|63&c}else n[r++]=224|i>>12&15,n[r++]=128|i>>6&63,n[r++]=128|63&i;r>a&&(t.push(n.slice(0,r)),r=0,n=S(65535),a=65530)}return t.push(n.slice(0,r)),x(t)}(r),Ce.utils.cfb_add(e,t,a);Ce.utils.cfb_add(e,t,r)}else e.file(t,r)}function nt(e,t){switch(t.type){case"base64":return Ce.read(e,{type:"base64"});case"binary":return Ce.read(e,{type:"binary"});case"buffer":case"array":return Ce.read(e,{type:"buffer"})}throw new Error("Unrecognized type "+t.type)}function st(e,t){if("/"==e.charAt(0))return e.slice(1);var r=t.split("/");"/"!=t.slice(-1)&&r.pop();for(var a=e.split("/");0!==a.length;){var n=a.shift();".."===n?r.pop():"."!==n&&r.push(n)}return r.join("/")}var it='\r\n',ct=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,ot=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,lt=it.match(ot)?ot:/<[^>]*>/g,ft=/<\w*:/,ht=/<(\/?)\w+:/;function ut(e,t,r){for(var a={},n=0,s=0;n!==e.length&&(32!==(s=e.charCodeAt(n))&&10!==s&&13!==s);++n);if(t||(a[0]=e.slice(0,n)),n===e.length)return a;var i=e.match(ct),c=0,o="",l=0,f="",h="",u=1;if(i)for(l=0;l!=i.length;++l){for(h=i[l],s=0;s!=h.length&&61!==h.charCodeAt(s);++s);for(f=h.slice(0,s).trim();32==h.charCodeAt(s+1);)++s;for(u=34==(n=h.charCodeAt(s+1))||39==n?1:0,o=h.slice(s+1+u,h.length-u),c=0;c!=f.length&&58!==f.charCodeAt(c);++c);if(c===f.length)f.indexOf("_")>0&&(f=f.slice(0,f.indexOf("_"))),a[f]=o,r||(a[f.toLowerCase()]=o);else{var d=(5===c&&"xmlns"===f.slice(0,5)?"xmlns":"")+f.slice(c+1);if(a[d]&&"ext"==f.slice(c-3,c))continue;a[d]=o,r||(a[d.toLowerCase()]=o)}}return a}function dt(e){return e.replace(ht,"<$1")}var pt={""":'"',"'":"'",">":">","<":"<","&":"&"},mt=xe(pt),gt=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,t=/_x([\da-fA-F]{4})_/gi;return function r(a){var n=a+"",s=n.indexOf("-1?16:10))||e})).replace(t,(function(e,t){return String.fromCharCode(parseInt(t,16))}));var i=n.indexOf("]]>");return r(n.slice(0,s))+n.slice(s+9,i)+r(n.slice(i+3))}}(),vt=/[&<>'"]/g;var bt=/[\u0000-\u001f]/g;function Tt(e){return(e+"").replace(vt,(function(e){return mt[e]})).replace(/\n/g,"
").replace(bt,(function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"}))}var Et=function(){var e=/&#(\d+);/g;function t(e,t){return String.fromCharCode(parseInt(t,10))}return function(r){return r.replace(e,t)}}();function wt(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function At(e){for(var t="",r=0,a=0,n=0,s=0,i=0,c=0;r191&&a<224?(i=(31&a)<<6,i|=63&n,t+=String.fromCharCode(i)):(s=e.charCodeAt(r++),a<240?t+=String.fromCharCode((15&a)<<12|(63&n)<<6|63&s):(c=((7&a)<<18|(63&n)<<12|(63&s)<<6|63&(i=e.charCodeAt(r++)))-65536,t+=String.fromCharCode(55296+(c>>>10&1023)),t+=String.fromCharCode(56320+(1023&c)))));return t}function kt(e){var t,r,a,n=S(2*e.length),s=1,i=0,c=0;for(r=0;r>>10&1023),t=56320+(1023&t)),0!==c&&(n[i++]=255&c,n[i++]=c>>>8,c=0),n[i++]=t%256,n[i++]=t>>>8;return n.slice(0,i).toString("ucs2")}function yt(e){return y(e,"binary").toString("utf8")}var St="foo bar baz\xe2\x98\x83\xf0\x9f\x8d\xa3",_t=k&&(yt(St)==At(St)&&yt||kt(St)==At(St)&&kt)||At,Ct=k?function(e){return y(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,a=0,n=0;r>6))),t.push(String.fromCharCode(128+(63&a)));break;case a>=55296&&a<57344:a-=55296,n=e.charCodeAt(r++)-56320+(a<<10),t.push(String.fromCharCode(240+(n>>18&7))),t.push(String.fromCharCode(144+(n>>12&63))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(63&n)));break;default:t.push(String.fromCharCode(224+(a>>12))),t.push(String.fromCharCode(128+(a>>6&63))),t.push(String.fromCharCode(128+(63&a)))}return t.join("")},Rt=function(){var e={};return function(t,r){var a=t+"|"+(r||"");return e[a]?e[a]:e[a]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)",r||"")}}(),Ot=function(){var e=[["nbsp"," "],["middot","\xb7"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var r=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,"\n").replace(/<[^>]*>/g,""),a=0;a([\\s\\S]*?)","g")}}(),It=/<\/?(?:vt:)?variant>/g,Nt=/<(?:vt:)([^>]*)>([\s\S]*)"+t+""}function Pt(e){if(k&&a.isBuffer(e))return e.toString("utf8");if("string"===typeof e)return e;if("undefined"!==typeof Uint8Array&&e instanceof Uint8Array)return _t(R(O(e)));throw new Error("Bad input format: expected Buffer or string")}var Ut=/<(\/?)([^\s?>:\/]+)(?:[\s?:\/][^>]*)?>/gm,Bt={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Ht=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];var zt=function(e){for(var t=[],r=0;r0&&a.isBuffer(e[0][0])?a.concat(e[0].map((function(e){return a.isBuffer(e)?e:y(e)}))):zt(e)}:zt,Vt=function(e,t,r){for(var a=[],n=t;n0?Kt(e,t+4,t+4+r-1):""},Jt=Yt,qt=function(e,t){var r=ur(e,t);return r>0?Kt(e,t+4,t+4+r-1):""},Zt=qt,Qt=function(e,t){var r=2*ur(e,t);return r>0?Kt(e,t+4,t+4+r-1):""},er=Qt,tr=function(e,t){var r=ur(e,t);return r>0?Gt(e,t+4,t+4+r):""},rr=tr,ar=function(e,t){var r=ur(e,t);return r>0?Kt(e,t+4,t+4+r):""},nr=ar,sr=function(e,t){return function(e,t){for(var r=1-2*(e[t+7]>>>7),a=((127&e[t+7])<<4)+(e[t+6]>>>4&15),n=15&e[t+6],s=5;s>=0;--s)n=256*n+e[t+s];return 2047==a?0==n?r*(1/0):NaN:(0==a?a=-1022:(a-=1023,n+=Math.pow(2,52)),r*Math.pow(2,a-52)*n)}(e,t)},ir=sr,cr=function(e){return Array.isArray(e)||"undefined"!==typeof Uint8Array&&e instanceof Uint8Array};function or(){Gt=function(e,t,r){return m.utils.decode(1200,e.slice(t,r)).replace(I,"")},Kt=function(e,t,r){return m.utils.decode(65001,e.slice(t,r))},Jt=function(e,t){var r=ur(e,t);return r>0?m.utils.decode(c,e.slice(t+4,t+4+r-1)):""},Zt=function(e,t){var r=ur(e,t);return r>0?m.utils.decode(i,e.slice(t+4,t+4+r-1)):""},er=function(e,t){var r=2*ur(e,t);return r>0?m.utils.decode(1200,e.slice(t+4,t+4+r-1)):""},rr=function(e,t){var r=ur(e,t);return r>0?m.utils.decode(1200,e.slice(t+4,t+4+r)):""},nr=function(e,t){var r=ur(e,t);return r>0?m.utils.decode(65001,e.slice(t+4,t+4+r)):""}}k&&(Jt=function(e,t){if(!a.isBuffer(e))return Yt(e,t);var r=e.readUInt32LE(t);return r>0?e.toString("utf8",t+4,t+4+r-1):""},Zt=function(e,t){if(!a.isBuffer(e))return qt(e,t);var r=e.readUInt32LE(t);return r>0?e.toString("utf8",t+4,t+4+r-1):""},er=function(e,t){if(!a.isBuffer(e))return Qt(e,t);var r=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+r-1)},rr=function(e,t){if(!a.isBuffer(e))return tr(e,t);var r=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+r)},nr=function(e,t){if(!a.isBuffer(e))return ar(e,t);var r=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+r)},ir=function(e,t){return a.isBuffer(e)?e.readDoubleLE(t):sr(e,t)},cr=function(e){return a.isBuffer(e)||Array.isArray(e)||"undefined"!==typeof Uint8Array&&e instanceof Uint8Array}),"undefined"!==typeof m&&or();var lr=function(e,t){return e[t]},fr=function(e,t){return 256*e[t+1]+e[t]},hr=function(e,t){var r=256*e[t+1]+e[t];return r<32768?r:-1*(65535-r+1)},ur=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},dr=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},pr=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function mr(e,t){var r,n,s,c,o,l,f="",h=[];switch(t){case"dbcs":if(l=this.l,k&&a.isBuffer(this))f=this.slice(this.l,this.l+2*e).toString("utf16le");else for(o=0;o0?dr:pr)(this,this.l),this.l+=4,r):(n=ur(this,this.l),this.l+=4,n);case 8:case-8:if("f"===t)return n=8==e?ir(this,this.l):ir([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,n;e=8;case 16:f=$t(this,this.l,e)}}return this.l+=e,f}var gr=function(e,t,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},vr=function(e,t,r){e[r]=255&t,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},br=function(e,t,r){e[r]=255&t,e[r+1]=t>>>8&255};function Tr(e,t,r){var a=0,n=0;if("dbcs"===r){for(n=0;n!=t.length;++n)br(this,t.charCodeAt(n),this.l+2*n);a=2*t.length}else if("sbcs"===r){if("undefined"!==typeof m&&874==c)for(n=0;n!=t.length;++n){var s=m.utils.encode(c,t.charAt(n));this[this.l+n]=s[0]}else for(t=t.replace(/[^\x00-\x7F]/g,"_"),n=0;n!=t.length;++n)this[this.l+n]=255&t.charCodeAt(n);a=t.length}else{if("hex"===r){for(;n>8}for(;this.l>>=8,this[this.l+1]=255&t;break;case 3:a=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:a=4,gr(this,t,this.l);break;case 8:if(a=8,"f"===r){!function(e,t,r){var a=(t<0||1/t==-1/0?1:0)<<7,n=0,s=0,i=a?-t:t;isFinite(i)?0==i?n=s=0:(n=Math.floor(Math.log(i)/Math.LN2),s=i*Math.pow(2,52-n),n<=-1023&&(!isFinite(s)||s>4|a}(this,t,this.l);break}case 16:break;case-4:a=4,vr(this,t,this.l)}}return this.l+=a,this}function Er(e,t){var r=$t(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function wr(e,t){e.l=t,e.read_shift=mr,e.chk=Er,e.write_shift=Tr}function Ar(e,t){e.l+=t}function kr(e){var t=S(e);return wr(t,0),t}function yr(e,t,r){if(e){var a,n,s;wr(e,e.l||0);for(var i=e.length,c=0,o=0;e.la.l&&((a=a.slice(0,a.l)).l=a.length),a.length>0&&e.push(a),a=null)},s=function(e){return a&&e=256;)a.c-=256;for(;a.r>=65536;)a.r-=65536}return a}function Cr(e,t,r){var a=Ve(e);return a.s=_r(a.s,t.s,r),a.e=_r(a.e,t.s,r),a}function Rr(e,t){if(e.cRel&&e.c<0)for(e=Ve(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=Ve(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=Mr(e);return e.cRel||null==e.cRel||(r=r.replace(/^([A-Z])/,"$$$1")),e.rRel||null==e.rRel||(r=function(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(r)),r}function Or(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?Rr(e.s,t.biff)+":"+Rr(e.e,t.biff):(e.s.rRel?"":"$")+Ir(e.s.r)+":"+(e.e.rRel?"":"$")+Ir(e.e.r):(e.s.cRel?"":"$")+Dr(e.s.c)+":"+(e.e.cRel?"":"$")+Dr(e.e.c)}function xr(e){return parseInt(e.replace(/\$(\d+)$/,"$1"),10)-1}function Ir(e){return""+(e+1)}function Nr(e){for(var t=e.replace(/^\$([A-Z])/,"$1"),r=0,a=0;a!==t.length;++a)r=26*r+t.charCodeAt(a)-64;return r-1}function Dr(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function Fr(e){for(var t=0,r=0,a=0;a=48&&n<=57?t=10*t+(n-48):n>=65&&n<=90&&(r=26*r+(n-64))}return{c:r-1,r:t-1}}function Mr(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function Lr(e){var t=e.indexOf(":");return-1==t?{s:Fr(e),e:Fr(e)}:{s:Fr(e.slice(0,t)),e:Fr(e.slice(t+1))}}function Pr(e,t){return"undefined"===typeof t||"number"===typeof t?Pr(e.s,e.e):("string"!==typeof e&&(e=Mr(e)),"string"!==typeof t&&(t=Mr(t)),e==t?e:e+":"+t)}function Ur(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,a=0,n=0,s=e.length;for(r=0;a26);++a)r=26*r+n;for(t.s.c=--r,r=0;a9);++a)r=10*r+n;if(t.s.r=--r,a===s||10!=n)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++a,r=0;a!=s&&!((n=e.charCodeAt(a)-64)<1||n>26);++a)r=26*r+n;for(t.e.c=--r,r=0;a!=s&&!((n=e.charCodeAt(a)-48)<0||n>9);++a)r=10*r+n;return t.e.r=--r,t}function Br(e,t){var r="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=we(e.z,r?Ne(t):t)}catch(a){}try{return e.w=we((e.XF||{}).numFmtId||(r?14:0),r?Ne(t):t)}catch(a){return""+t}}function Hr(e,t,r){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),"e"==e.t?va[e.v]||e.v:Br(e,void 0==t?e.v:t))}function zr(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",a={};return a[r]=e,{SheetNames:[r],Sheets:a}}function Wr(e,t,r){var a=r||{},n=e?Array.isArray(e):a.dense;null!=T&&null==n&&(n=T);var s=e||(n?[]:{}),i=0,c=0;if(s&&null!=a.origin){if("number"==typeof a.origin)i=a.origin;else{var o="string"==typeof a.origin?Fr(a.origin):a.origin;i=o.r,c=o.c}s["!ref"]||(s["!ref"]="A1:A1")}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(s["!ref"]){var f=Ur(s["!ref"]);l.s.c=f.s.c,l.s.r=f.s.r,l.e.c=Math.max(l.e.c,f.e.c),l.e.r=Math.max(l.e.r,f.e.r),-1==i&&(l.e.r=i=f.e.r+1)}for(var h=0;h!=t.length;++h)if(t[h]){if(!Array.isArray(t[h]))throw new Error("aoa_to_sheet expects an array of arrays");for(var u=0;u!=t[h].length;++u)if("undefined"!==typeof t[h][u]){var d={v:t[h][u]},p=i+h,m=c+u;if(l.s.r>p&&(l.s.r=p),l.s.c>m&&(l.s.c=m),l.e.r>2;return r?n/100:n}function ta(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var ra=ta;function aa(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function na(e,t){var r=e.read_shift(4);switch(r){case 0:return"";case 4294967295:case 4294967294:return{2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"}[e.read_shift(4)]||""}if(r>400)throw new Error("Unsupported Clipboard: "+r.toString(16));return e.l-=4,e.read_shift(0,1==t?"lpstr":"lpwstr")}var sa=2,ia=3,ca=12,oa=80,la=81,fa=[oa,la],ha={1:{n:"CodePage",t:sa},2:{n:"Category",t:oa},3:{n:"PresentationFormat",t:oa},4:{n:"ByteCount",t:ia},5:{n:"LineCount",t:ia},6:{n:"ParagraphCount",t:ia},7:{n:"SlideCount",t:ia},8:{n:"NoteCount",t:ia},9:{n:"HiddenCount",t:ia},10:{n:"MultimediaClipCount",t:ia},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:oa},15:{n:"Company",t:oa},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:ia},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:ia,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:oa},27:{n:"ContentStatus",t:oa},28:{n:"Language",t:oa},29:{n:"Version",t:oa},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},ua={1:{n:"CodePage",t:sa},2:{n:"Title",t:oa},3:{n:"Subject",t:oa},4:{n:"Author",t:oa},5:{n:"Keywords",t:oa},6:{n:"Comments",t:oa},7:{n:"Template",t:oa},8:{n:"LastAuthor",t:oa},9:{n:"RevNumber",t:oa},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:ia},15:{n:"WordCount",t:ia},16:{n:"CharCount",t:ia},17:{n:"Thumbnail",t:71},18:{n:"Application",t:oa},19:{n:"DocSecurity",t:ia},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},da={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},pa=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function ma(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var ga=Ve(ma([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),va={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},ba={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Ta={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"};var Ea={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function wa(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function Aa(e,t){var r={"!id":{}};if(!e)return r;"/"!==t.charAt(0)&&(t="/"+t);var a={};return(e.match(lt)||[]).forEach((function(e){var n=ut(e);if("]*>([\\s\\S]*?)")}return e}();function _a(e){var t={};e=_t(e);for(var r=0;r0&&(t[a[1]]=gt(n[1])),"date"===a[2]&&t[a[1]]&&(t[a[1]]=ze(t[a[1]]))}return t}var Ca=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];function Ra(e,t,r,a){var n=[];if("string"==typeof e)n=Dt(e,a);else for(var s=0;s0)for(var l=0;l!==n.length;l+=2){switch(o=+n[l+1].v,n[l].v){case"Worksheets":case"\u5de5\u4f5c\u8868":case"\u041b\u0438\u0441\u0442\u044b":case"\u0623\u0648\u0631\u0627\u0642 \u0627\u0644\u0639\u0645\u0644":case"\u30ef\u30fc\u30af\u30b7\u30fc\u30c8":case"\u05d2\u05dc\u05d9\u05d5\u05e0\u05d5\u05ea \u05e2\u05d1\u05d5\u05d3\u05d4":case"Arbeitsbl\xe4tter":case"\xc7al\u0131\u015fma Sayfalar\u0131":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de c\xe1lculo":case"Planilhas":case"Regneark":case"Hojas de c\xe1lculo":case"Werkbladen":r.Worksheets=o,r.SheetNames=i.slice(c,c+o);break;case"Named Ranges":case"Rangos con nombre":case"\u540d\u524d\u4ed8\u304d\u4e00\u89a7":case"Benannte Bereiche":case"Navngivne omr\xe5der":r.NamedRanges=o,r.DefinedNames=i.slice(c,c+o);break;case"Charts":case"Diagramme":r.Chartsheets=o,r.ChartNames=i.slice(c,c+o)}c+=o}}var Oa=/<[^>]+>[^<]*/g;var xa,Ia={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function Na(e,t,r){xa||(xa=xe(Ia)),e[t=xa[t]||t]=r}function Da(e){var t=e.read_shift(4),r=e.read_shift(4);return new Date(1e3*(r/1e7*Math.pow(2,32)+t/1e7-11644473600)).toISOString().replace(/\.000/,"")}function Fa(e,t,r){var a=e.l,n=e.read_shift(0,"lpstr-cp");if(r)for(;e.l-a&3;)++e.l;return n}function Ma(e,t,r){var a=e.read_shift(0,"lpwstr");return r&&(e.l+=4-(a.length+1&3)&3),a}function La(e,t,r){return 31===t?Ma(e):Fa(e,0,r)}function Pa(e,t,r){return La(e,t,!1===r?0:4)}function Ua(e){var t=e.l,r=za(e,la);return 0==e[e.l]&&0==e[e.l+1]&&e.l-t&2&&(e.l+=2),[r,za(e,ia)]}function Ba(e,t){for(var r=e.read_shift(4),a={},n=0;n!=r;++n){var s=e.read_shift(4),i=e.read_shift(4);a[s]=e.read_shift(i,1200===t?"utf16le":"utf8").replace(I,"").replace(N,"!"),1200===t&&i%2&&(e.l+=2)}return 3&e.l&&(e.l=e.l>>3<<2),a}function Ha(e){var t=e.read_shift(4),r=e.slice(e.l,e.l+t);return e.l+=t,(3&t)>0&&(e.l+=4-(3&t)&3),r}function za(e,t,r){var a,n=e.read_shift(2),s=r||{};if(e.l+=2,t!==ca&&n!==t&&-1===fa.indexOf(t)&&(4126!=(65534&t)||4126!=(65534&n)))throw new Error("Expected type "+t+" saw "+n);switch(t===ca?n:t){case 2:return a=e.read_shift(2,"i"),s.raw||(e.l+=2),a;case 3:return a=e.read_shift(4,"i");case 11:return 0!==e.read_shift(4);case 19:return a=e.read_shift(4);case 30:return Fa(e,0,4).replace(I,"");case 31:return Ma(e);case 64:return Da(e);case 65:return Ha(e);case 71:return function(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}(e);case 80:return Pa(e,n,!s.raw).replace(I,"");case 81:return function(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return La(e,t,0)}(e,n).replace(I,"");case 4108:return function(e){for(var t=e.read_shift(4),r=[],a=0;a0&&t)switch(t[s[i-1][0]].t){case 2:e.l+2===s[i][1]&&(e.l+=2,p=!1);break;case 80:case 4108:e.l<=s[i][1]&&(e.l=s[i][1],p=!1)}if((!t||0==i)&&e.l<=s[i][1]&&(p=!1,e.l=s[i][1]),p)throw new Error("Read Error: Expected address "+s[i][1]+" at "+e.l+" :"+i)}if(t){var m=t[s[i][0]];if(d[m.n]=za(e,m.t,{raw:!0}),"version"===m.p&&(d[m.n]=String(d[m.n]>>16)+"."+("0000"+String(65535&d[m.n])).slice(-4)),"CodePage"==m.n)switch(d[m.n]){case 0:d[m.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:h(c=d[m.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+d[m.n])}}else if(1===s[i][0]){if(c=d.CodePage=za(e,sa),h(c),-1!==o){var g=e.l;e.l=s[o][1],l=Ba(e,c),e.l=g}}else if(0===s[i][0]){if(0===c){o=i,e.l=s[i+1][1];continue}l=Ba(e,c)}else{var v,b=l[s[i][0]];switch(e[e.l]){case 65:e.l+=4,v=Ha(e);break;case 30:case 31:e.l+=4,v=Pa(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,v=e.read_shift(4,"i");break;case 19:e.l+=4,v=e.read_shift(4);break;case 5:e.l+=4,v=e.read_shift(8,"f");break;case 11:e.l+=4,v=ja(e,4);break;case 64:e.l+=4,v=ze(Da(e));break;default:throw new Error("unparsed value: "+e[e.l])}d[b]=v}}return e.l=r+a,d}function Va(e,t,r){var a=e.content;if(!a)return{};wr(a,0);var n,s,i,c,o=0;a.chk("feff","Byte Order: "),a.read_shift(2);var l=a.read_shift(4),f=a.read_shift(16);if(f!==Ce.utils.consts.HEADER_CLSID&&f!==r)throw new Error("Bad PropertySet CLSID "+f);if(1!==(n=a.read_shift(4))&&2!==n)throw new Error("Unrecognized #Sets: "+n);if(s=a.read_shift(16),c=a.read_shift(4),1===n&&c!==a.l)throw new Error("Length mismatch: "+c+" !== "+a.l);2===n&&(i=a.read_shift(16),o=a.read_shift(4));var h,u=Wa(a,t),d={SystemIdentifier:l};for(var p in u)d[p]=u[p];if(d.FMTID=s,1===n)return d;if(o-a.l==2&&(a.l+=2),a.l!==o)throw new Error("Length mismatch 2: "+a.l+" !== "+o);try{h=Wa(a,null)}catch(m){}for(p in h)d[p]=h[p];return d.FMTID=[s,i],d}function Ga(e,t){return e.read_shift(t),null}function ja(e,t){return 1===e.read_shift(t)}function $a(e){return e.read_shift(2,"u")}function Xa(e,t){return function(e,t,r){for(var a=[],n=e.l+t;e.l=12?2:1),n="sbcs-cont",s=i;(r&&r.biff>=8&&(i=1200),r&&8!=r.biff)?12==r.biff&&(n="wstr"):e.read_shift(1)&&(n="dbcs-cont");r.biff>=2&&r.biff<=5&&(n="cpstr");var c=a?e.read_shift(a,n):"";return i=s,c}function Ya(e){var t=i;i=1200;var r,a=e.read_shift(2),n=e.read_shift(1),s=4&n,c=8&n,o=1+(1&n),l=0,f={};c&&(l=e.read_shift(2)),s&&(r=e.read_shift(4));var h=2==o?"dbcs-cont":"sbcs-cont",u=0===a?"":e.read_shift(a,h);return c&&(e.l+=4*l),s&&(e.l+=r),f.t=u,c||(f.raw=""+f.t+"",f.r=f.t),i=t,f}function Ja(e,t,r){if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}return 0===e.read_shift(1)?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont")}function qa(e,t,r){var a=e.read_shift(r&&2==r.biff?1:2);return 0===a?(e.l++,""):Ja(e,a,r)}function Za(e,t,r){if(r.biff>5)return qa(e,0,r);var a=e.read_shift(1);return 0===a?(e.l++,""):e.read_shift(a,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function Qa(e,t){var r=e.read_shift(16);switch(r){case"e0c9ea79f9bace118c8200aa004ba90b":return function(e){var t=e.read_shift(4),r=e.l,a=!1;t>24&&(e.l+=t-24,"795881f43b1d7f48af2c825dc4852763"===e.read_shift(16)&&(a=!0),e.l=r);var n=e.read_shift((a?t-24:t)>>1,"utf16le").replace(I,"");return a&&(e.l+=24),n}(e);case"0303000000000000c000000000000046":return function(e){for(var t=e.read_shift(2),r="";t-- >0;)r+="../";var a=e.read_shift(0,"lpstr-ansi");if(e.l+=2,57005!=e.read_shift(2))throw new Error("Bad FileMoniker");if(0===e.read_shift(4))return r+a.replace(/\\/g,"/");var n=e.read_shift(4);if(3!=e.read_shift(2))throw new Error("Bad FileMoniker");return r+e.read_shift(n>>1,"utf16le").replace(I,"")}(e);default:throw new Error("Unsupported Moniker "+r)}}function en(e){var t=e.read_shift(4);return t>0?e.read_shift(t,"utf16le").replace(I,""):""}function tn(e){return[e.read_shift(1),e.read_shift(1),e.read_shift(1),e.read_shift(1)]}function rn(e,t){var r=tn(e);return r[3]=0,r}function an(e){return{r:e.read_shift(2),c:e.read_shift(2),ixfe:e.read_shift(2)}}function nn(e,t,r){var a=r.biff>8?4:2;return[e.read_shift(a),e.read_shift(a,"i"),e.read_shift(a,"i")]}function sn(e){return[e.read_shift(2),ea(e)]}function cn(e){var t=e.read_shift(2),r=e.read_shift(2);return{s:{c:e.read_shift(2),r:t},e:{c:e.read_shift(2),r:r}}}function on(e){var t=e.read_shift(2),r=e.read_shift(2);return{s:{c:e.read_shift(1),r:t},e:{c:e.read_shift(1),r:r}}}var ln=on;function fn(e){e.l+=4;var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(2);return e.l+=12,[r,t,a]}function hn(e){e.l+=2,e.l+=e.read_shift(2)}var un={0:hn,4:hn,5:hn,6:hn,7:function(e){return e.l+=4,e.cf=e.read_shift(2),{}},8:hn,9:hn,10:hn,11:hn,12:hn,13:function(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t},14:hn,15:hn,16:hn,17:hn,18:hn,19:hn,20:hn,21:fn};function dn(e,t){var r={BIFFVer:0,dt:0};switch(r.BIFFVer=e.read_shift(2),(t-=2)>=2&&(r.dt=e.read_shift(2),e.l-=2),r.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+r.BIFFVer)}return e.read_shift(t),r}function pn(e,t,r){var a=0;r&&2==r.biff||(a=e.read_shift(2));var n=e.read_shift(2);return r&&2==r.biff&&(a=1-(n>>15),n&=32767),[{Unsynced:1&a,DyZero:(2&a)>>1,ExAsc:(4&a)>>2,ExDsc:(8&a)>>3},n]}var mn=Za;function gn(e,t,r){var a=e.l+t,n=8!=r.biff&&r.biff?2:4,s=e.read_shift(n),i=e.read_shift(n),c=e.read_shift(2),o=e.read_shift(2);return e.l=a,{s:{r:s,c:c},e:{r:i,c:o}}}function vn(e,t,r){var a=an(e);2!=r.biff&&9!=t||++e.l;var n=function(e){var t=e.read_shift(1);return 1===e.read_shift(1)?t:1===t}(e);return a.val=n,a.t=!0===n||!1===n?"b":"e",a}var bn=function(e,t,r){return 0===t?"":Za(e,0,r)};function Tn(e,t,r){var a,n=e.read_shift(2),s={fBuiltIn:1&n,fWantAdvise:n>>>1&1,fWantPict:n>>>2&1,fOle:n>>>3&1,fOleLink:n>>>4&1,cf:n>>>5&1023,fIcon:n>>>15&1};return 14849===r.sbcch&&(a=function(e,t,r){e.l+=4,t-=4;var a=e.l+t,n=Ka(e,0,r),s=e.read_shift(2);if(s!==(a-=e.l))throw new Error("Malformed AddinUdf: padding = "+a+" != "+s);return e.l+=s,n}(e,t-2,r)),s.body=a||e.read_shift(t-2),"string"===typeof a&&(s.Name=a),s}var En=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function wn(e,t,r){var a=e.l+t,n=e.read_shift(2),s=e.read_shift(1),i=e.read_shift(1),c=e.read_shift(r&&2==r.biff?1:2),o=0;(!r||r.biff>=5)&&(5!=r.biff&&(e.l+=2),o=e.read_shift(2),5==r.biff&&(e.l+=2),e.l+=4);var l=Ja(e,i,r);32&n&&(l=En[l.charCodeAt(0)]);var f=a-e.l;r&&2==r.biff&&--f;var h=a!=e.l&&0!==c&&f>0?function(e,t,r,a){var n,s=e.l+t,i=di(e,a,r);s!==e.l&&(n=ui(e,s-e.l,i,r));return[i,n]}(e,f,r,c):[];return{chKey:s,Name:l,itab:o,rgce:h}}function An(e,t,r){if(r.biff<8)return function(e,t,r){3==e[e.l+1]&&e[e.l]++;var a=Ka(e,0,r);return 3==a.charCodeAt(0)?a.slice(1):a}(e,0,r);for(var a=[],n=e.l+t,s=e.read_shift(r.biff>8?4:2);0!==s--;)a.push(nn(e,r.biff,r));if(e.l!=n)throw new Error("Bad ExternSheet: "+e.l+" != "+n);return a}function kn(e,t,r){var a=ln(e,6);switch(r.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[a,Ti(e,t,r)]}var yn={8:function(e,t){var r=e.l+t;e.l+=10;var a=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var n=e.read_shift(1);return e.l+=n,e.l=r,{fmt:a}}};function Sn(e,t,r){if(!r.cellStyles)return Ar(e,t);var a=r&&r.biff>=12?4:2,n=e.read_shift(a),s=e.read_shift(a),i=e.read_shift(a),c=e.read_shift(a),o=e.read_shift(2);2==a&&(e.l+=2);var l={s:n,e:s,w:i,ixfe:c,flags:o};return(r.biff>=5||!r.biff)&&(l.level=o>>8&7),l}var _n=an,Cn=Xa,Rn=qa;var On=[2,3,48,49,131,139,140,245],xn=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=xe({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(t,r){var a=r||{};a.dateNF||(a.dateNF="yyyymmdd");var n=Vr(function(t,r){var a=[],n=S(1);switch(r.type){case"base64":n=C(A(t));break;case"binary":n=C(t);break;case"buffer":case"array":n=t}wr(n,0);var s=n.read_shift(1),i=!!(136&s),c=!1,o=!1;switch(s){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:c=!0,i=!0;break;case 140:o=!0;break;default:throw new Error("DBF Unsupported Version: "+s.toString(16))}var l=0,f=521;2==s&&(l=n.read_shift(2)),n.l+=3,2!=s&&(l=n.read_shift(4)),l>1048576&&(l=1e6),2!=s&&(f=n.read_shift(2));var h=n.read_shift(2),u=r.codepage||1252;2!=s&&(n.l+=16,n.read_shift(1),0!==n[n.l]&&(u=e[n[n.l]]),n.l+=1,n.l+=2),o&&(n.l+=36);for(var d=[],p={},g=Math.min(n.length,2==s?521:f-10-(c?264:0)),v=o?32:11;n.l0;)if(42!==n[n.l])for(++n.l,a[++b]=[],T=0,T=0;T!=d.length;++T){var E=n.slice(n.l,n.l+d[T].len);n.l+=d[T].len,wr(E,0);var w=m.utils.decode(u,E);switch(d[T].type){case"C":w.trim().length&&(a[b][T]=w.replace(/\s+$/,""));break;case"D":8===w.length?a[b][T]=new Date(+w.slice(0,4),+w.slice(4,6)-1,+w.slice(6,8)):a[b][T]=w;break;case"F":a[b][T]=parseFloat(w.trim());break;case"+":case"I":a[b][T]=o?2147483648^E.read_shift(-4,"i"):E.read_shift(4,"i");break;case"L":switch(w.trim().toUpperCase()){case"Y":case"T":a[b][T]=!0;break;case"N":case"F":a[b][T]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+w+"|")}break;case"M":if(!i)throw new Error("DBF Unexpected MEMO for type "+s.toString(16));a[b][T]="##MEMO##"+(o?parseInt(w.trim(),10):E.read_shift(4));break;case"N":(w=w.replace(/\u0000/g,"").trim())&&"."!=w&&(a[b][T]=+w||0);break;case"@":a[b][T]=new Date(E.read_shift(-8,"f")-621356832e5);break;case"T":a[b][T]=new Date(864e5*(E.read_shift(4)-2440588)+E.read_shift(4));break;case"Y":a[b][T]=E.read_shift(4,"i")/1e4+E.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":a[b][T]=-E.read_shift(-8,"f");break;case"B":if(c&&8==d[T].len){a[b][T]=E.read_shift(8,"f");break}case"G":case"P":E.l+=d[T].len;break;case"0":if("_NullFlags"===d[T].name)break;default:throw new Error("DBF Unsupported data type "+d[T].type)}}else n.l+=h;if(2!=s&&n.l=0&&h(+n.codepage),"string"==n.type)throw new Error("Cannot write DBF to JS string");var s=Sr(),i=Mo(e,{header:1,raw:!0,cellDates:!0}),o=i[0],l=i.slice(1),f=e["!cols"]||[],u=0,d=0,p=0,m=1;for(u=0;u250&&(A=250),"C"==(w=((f[u]||{}).DBF||{}).type)&&f[u].DBF.len>A&&(A=f[u].DBF.len),"B"==E&&"N"==w&&(E="N",T[u]=f[u].DBF.dec,A=f[u].DBF.len),b[u]="C"==E||"N"==w?A:a[E]||0,m+=b[u],v[u]=E}else v[u]="?"}var y=s.next(32);for(y.write_shift(4,318902576),y.write_shift(4,l.length),y.write_shift(2,296+32*p),y.write_shift(2,m),u=0;u<4;++u)y.write_shift(4,0);for(y.write_shift(4,(+t[c]||3)<<8),u=0,d=0;u":190,"?":191,"{":223},t=new RegExp("\x1bN("+Oe(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(t,r){var a=e[r];return"number"==typeof a?b(a):a},n=function(e,t,r){var a=t.charCodeAt(0)-32<<4|r.charCodeAt(0)-48;return 59==a?e:b(a)};function s(e,a){var s,i=e.split(/[\n\r]+/),c=-1,o=-1,l=0,f=0,u=[],d=[],p=null,g={},v=[],b=[],T=[],E=0;for(+a.codepage>=0&&h(+a.codepage);l!==i.length;++l){E=0;var w,A=i[l].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),k=A.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),y=k[0];if(A.length>0)switch(y){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==k[1].charAt(0)&&d.push(A.slice(3).replace(/;;/g,";"));break;case"C":var S=!1,_=!1,C=!1,R=!1,O=-1,x=-1;for(f=1;f-1&&u[O][x];if(!N||!N[1])throw new Error("SYLK shared formula cannot find base");u[c][o][1]=Gs(N[1],{r:c-O,c:o-x})}break;case"F":var D=0;for(f=1;f0?(v[c].hpt=E,v[c].hpx=Ts(E)):0===E&&(v[c].hidden=!0);break;default:if(a&&a.WTF)throw new Error("SYLK bad record "+A)}D<1&&(p=null);break;default:if(a&&a.WTF)throw new Error("SYLK bad record "+A)}}return v.length>0&&(g["!rows"]=v),b.length>0&&(g["!cols"]=b),a&&a.sheetRows&&(u=u.slice(0,a.sheetRows)),[u,g]}function i(e,t){var r=function(e,t){switch(t.type){case"base64":return s(A(e),t);case"binary":return s(e,t);case"buffer":return s(k&&a.isBuffer(e)?e.toString("binary"):R(e),t);case"array":return s(We(e),t)}throw new Error("Unrecognized type "+t.type)}(e,t),n=r[0],i=r[1],c=Vr(n,t);return Oe(i).forEach((function(e){c[e]=i[e]})),c}function c(e,t,r,a){var n="C;Y"+(r+1)+";X"+(a+1)+";K";switch(e.t){case"n":n+=e.v||0,e.f&&!e.F&&(n+=";E"+Vs(e.f,{r:r,c:a}));break;case"b":n+=e.v?"TRUE":"FALSE";break;case"e":n+=e.w||e.v;break;case"d":n+='"'+(e.w||e.v)+'"';break;case"s":n+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return n}return e["|"]=254,{to_workbook:function(e,t){return zr(i(e,t),t)},to_sheet:i,from_sheet:function(e,t){var r,a,n=["ID;PWXL;N;E"],s=[],i=Ur(e["!ref"]),o=Array.isArray(e),l="\r\n";n.push("P;PGeneral"),n.push("F;P0;DG0G8;M255"),e["!cols"]&&(a=n,e["!cols"].forEach((function(e,t){var r="F;W"+(t+1)+" "+(t+1)+" ";e.hidden?r+="0":("number"!=typeof e.width||e.wpx||(e.wpx=hs(e.width)),"number"!=typeof e.wpx||e.wch||(e.wch=us(e.wpx)),"number"==typeof e.wch&&(r+=Math.round(e.wch)))," "!=r.charAt(r.length-1)&&a.push(r)}))),e["!rows"]&&function(e,t){t.forEach((function(t,r){var a="F;";t.hidden?a+="M0;":t.hpt?a+="M"+20*t.hpt+";":t.hpx&&(a+="M"+20*bs(t.hpx)+";"),a.length>2&&e.push(a+"R"+(r+1))}))}(n,e["!rows"]),n.push("B;Y"+(i.e.r-i.s.r+1)+";X"+(i.e.c-i.s.c+1)+";D"+[i.s.c,i.s.r,i.e.c,i.e.r].join(" "));for(var f=i.s.r;f<=i.e.r;++f)for(var h=i.s.c;h<=i.e.c;++h){var u=Mr({r:f,c:h});(r=o?(e[f]||[])[h]:e[u])&&(null!=r.v||r.f&&!r.F)&&s.push(c(r,0,f,h))}return n.join(l)+l+s.join(l)+l+"E"+l}}}(),Nn=function(){function e(e,t){for(var r=e.split("\n"),a=-1,n=-1,s=0,i=[];s!==r.length;++s)if("BOT"!==r[s].trim()){if(!(a<0)){for(var c=r[s].trim().split(","),o=c[0],l=c[1],f=r[++s]||"";1&(f.match(/["]/g)||[]).length&&s=0?c=l:n=l}})),o>=0&&-1==c&&n>=0&&(c=n,n=-1);var l=(""+(a>=0?a:(new Date).getFullYear())).slice(-4)+"-"+("00"+(n>=1?n:1)).slice(-2)+"-"+("00"+(s>=1?s:1)).slice(-2);7==l.length&&(l="0"+l),8==l.length&&(l="20"+l);var f=("00"+(i>=0?i:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2);return-1==i&&-1==c&&-1==o?l:-1==a&&-1==n&&-1==s?f:l+"T"+f}(0,r.dateNF,t.match(g)||[]),n=1),r.cellDates?(a.t="d",a.v=ze(t,n)):(a.t="n",a.v=Ne(ze(t,n))),!1!==r.cellText&&(a.w=we(a.z,a.v instanceof Date?Ne(a.v):a.v)),r.cellNF||delete a.z}else a.t="s",a.v=t;else a.t="n",!1!==r.cellText&&(a.w=t),a.v=l;if("z"==a.t||(r.dense?(s[c]||(s[c]=[]),s[c][o]=a):s[Mr({c:o,r:c})]=a),f=h+1,m=e.charCodeAt(f),i.e.c0&&v(),s["!ref"]=Pr(i),s}function i(t,r){return r&&r.PRN?r.FS||"sep="==t.slice(0,4)||t.indexOf("\t")>=0||t.indexOf(",")>=0||t.indexOf(";")>=0?s(t,r):Vr(function(t,r){var a=r||{},n=[];if(!t||0===t.length)return n;for(var s=t.split(/[\r\n]/),i=s.length-1;i>=0&&0===s[i].length;)--i;for(var c=10,o=0,l=0;l<=i;++l)-1==(o=s[l].indexOf(" "))?o=s[l].length:o++,c=Math.max(c,o);for(l=0;l<=i;++l){n[l]=[];var f=0;for(e(s[l].slice(0,c).trim(),n,l,f,a),f=1;f<=(s[l].length-c)/10+1;++f)e(s[l].slice(c+10*(f-1),c+10*f).trim(),n,l,f,a)}return a.sheetRows&&(n=n.slice(0,a.sheetRows)),n}(t,r),r):s(t,r)}function c(e,t){var r="",n="string"==t.type?[0,0,0,0]:xo(e,t);switch(t.type){case"base64":r=A(e);break;case"binary":case"string":r=e;break;case"buffer":r=65001==t.codepage?e.toString("utf8"):t.codepage&&"undefined"!==typeof m?m.utils.decode(t.codepage,e):k&&a.isBuffer(e)?e.toString("binary"):R(e);break;case"array":r=We(e);break;default:throw new Error("Unrecognized type "+t.type)}return 239==n[0]&&187==n[1]&&191==n[2]?r=_t(r.slice(3)):"string"!=t.type&&"buffer"!=t.type&&65001==t.codepage?r=_t(r):"binary"==t.type&&"undefined"!==typeof m&&t.codepage&&(r=m.utils.decode(t.codepage,m.utils.encode(28591,r))),"socialcalc:version:"==r.slice(0,19)?Dn.to_sheet("string"==t.type?r:_t(r),t):i(r,t)}return{to_workbook:function(e,t){return zr(c(e,t),t)},to_sheet:c,from_sheet:function(e){for(var t,r=[],a=Ur(e["!ref"]),n=Array.isArray(e),s=a.s.r;s<=a.e.r;++s){for(var i=[],c=a.s.c;c<=a.e.c;++c){var o=Mr({r:s,c:c});if((t=n?(e[s]||[])[c]:e[o])&&null!=t.v){for(var l=(t.w||(Hr(t),t.w)||"").slice(0,10);l.length<10;)l+=" ";i.push(l+(0===c?" ":""))}else i.push(" ")}r.push(i.join(""))}return r.join("\n")}}}();var Mn=function(){function e(e,t,r){if(e){wr(e,e.l||0);for(var a=r.Enum||b;e.l=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])a.Enum=b,e(t,(function(e,t,r){switch(r){case 0:a.vers=e,e>=4096&&(a.qpro=!0);break;case 6:h=e;break;case 204:e&&(i=e);break;case 222:i=e;break;case 15:case 51:a.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==r&&112==(112&e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=a.dateNF||W[14],a.cellDates&&(e[1].t="d",e[1].v=Le(e[1].v))),a.qpro&&e[3]>c&&(n["!ref"]=Pr(h),o[s]=n,l.push(s),n=a.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},c=e[3],s=i||"Sheet"+(c+1),i="");var f=a.dense?(n[e[0].r]||[])[e[0].c]:n[Mr(e[0])];if(f){f.t=e[1].t,f.v=e[1].v,null!=e[1].z&&(f.z=e[1].z),null!=e[1].f&&(f.f=e[1].f);break}a.dense?(n[e[0].r]||(n[e[0].r]=[]),n[e[0].r][e[0].c]=e[1]):n[Mr(e[0])]=e[1]}}),a);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);a.Enum=E,14==t[2]&&(a.qpro=!0,t.l=0),e(t,(function(e,t,r){switch(r){case 204:s=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>c&&(n["!ref"]=Pr(h),o[s]=n,l.push(s),n=a.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},c=e[3],s="Sheet"+(c+1)),u>0&&e[0].r>=u)break;a.dense?(n[e[0].r]||(n[e[0].r]=[]),n[e[0].r][e[0].c]=e[1]):n[Mr(e[0])]=e[1],h.e.c=128?95:s)}return a.write_shift(1,0),a}function s(e,t,r){var a=kr(7);return a.write_shift(1,255),a.write_shift(2,t),a.write_shift(2,e),a.write_shift(2,r,"i"),a}function i(e,t,r){var a=kr(13);return a.write_shift(1,255),a.write_shift(2,t),a.write_shift(2,e),a.write_shift(8,r,"f"),a}function c(e,t,r){var a=32768&t;return t=(a?e:0)+((t&=-32769)>=8192?t-16384:t),(a?"":"$")+(r?Dr(t):Ir(t))}var o={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},l=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function f(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function u(e,t,r,a){var n=kr(6+a.length);n.write_shift(2,e),n.write_shift(1,r),n.write_shift(1,t),n.write_shift(1,39);for(var s=0;s=128?95:i)}return n.write_shift(1,0),n}function d(e,t){var r=f(e),a=e.read_shift(4),n=e.read_shift(4),s=e.read_shift(2);if(65535==s)return 0===a&&3221225472===n?(r[1].t="e",r[1].v=15):0===a&&3489660928===n?(r[1].t="e",r[1].v=42):r[1].v=0,r;var i=32768&s;return s=(32767&s)-16446,r[1].v=(1-2*i)*(n*Math.pow(2,s+32)+a*Math.pow(2,s)),r}function p(e,t,r,a){var n=kr(14);if(n.write_shift(2,e),n.write_shift(1,r),n.write_shift(1,t),0==a)return n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,65535),n;var s,i=0,c=0,o=0;return a<0&&(i=1,a=-a),c=0|Math.log2(a),0==(2147483648&(o=(a/=Math.pow(2,c-31))>>>0))&&(++c,o=(a/=2)>>>0),a-=o,o|=2147483648,o>>>=0,s=(a*=Math.pow(2,32))>>>0,n.write_shift(4,s),n.write_shift(4,o),c+=16383+(i?32768:0),n.write_shift(2,c),n}function m(e,t){var r=f(e),a=e.read_shift(8,"f");return r[1].v=a,r}function g(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function v(e,t){var r=kr(5+e.length);r.write_shift(2,14e3),r.write_shift(2,t);for(var a=0;a127?95:n}return r[r.l++]=0,r}var b={0:{n:"BOF",f:$a},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(e,t,r){var a={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&r.qpro?(a.s.c=e.read_shift(1),e.l++,a.s.r=e.read_shift(2),a.e.c=e.read_shift(1),e.l++,a.e.r=e.read_shift(2),a):(a.s.c=e.read_shift(2),a.s.r=e.read_shift(2),12==t&&r.qpro&&(e.l+=2),a.e.c=e.read_shift(2),a.e.r=e.read_shift(2),12==t&&r.qpro&&(e.l+=2),65535==a.s.c&&(a.s.c=a.e.c=a.s.r=a.e.r=0),a)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(e,t,a){var n=r(e,0,a);return n[1].v=e.read_shift(2,"i"),n}},14:{n:"NUMBER",f:function(e,t,a){var n=r(e,0,a);return n[1].v=e.read_shift(8,"f"),n}},15:{n:"LABEL",f:a},16:{n:"FORMULA",f:function(e,t,a){var n=e.l+t,s=r(e,0,a);if(s[1].v=e.read_shift(8,"f"),a.qpro)e.l=n;else{var i=e.read_shift(2);!function(e,t){wr(e,0);var r=[],a=0,n="",s="",i="",f="";for(;e.lr.length)return void console.error("WK1 bad formula parse 0x"+h.toString(16)+":|"+r.join("|")+"|");var m=r.slice(-a);r.length-=a,r.push(o[h][0]+"("+m.join(",")+")")}}}1==r.length?t[1].f=""+r[0]:console.error("WK1 bad formula parse |"+r.join("|")+"|")}(e.slice(e.l,e.l+i),s),e.l+=i}return s}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:a},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:g},222:{n:"SHEETNAMELP",f:function(e,t){var r=e[e.l++];r>t-1&&(r=t-1);for(var a="";a.length>1;if(1&r[1].v)switch(7&a){case 0:a=5e3*(a>>3);break;case 1:a=500*(a>>3);break;case 2:a=(a>>3)/20;break;case 3:a=(a>>3)/200;break;case 4:a=(a>>3)/2e3;break;case 5:a=(a>>3)/2e4;break;case 6:a=(a>>3)/16;break;case 7:a=(a>>3)/64}return r[1].v=a,r}},25:{n:"FORMULA19",f:function(e,t){var r=d(e);return e.l+=t-14,r}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(e,t){for(var r={},a=e.l+t;e.l>6,r}},38:{n:"??"},39:{n:"NUMBER27",f:m},40:{n:"FORMULA28",f:function(e,t){var r=m(e);return e.l+=t-10,r}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:g},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(e,t,r){if(r.qpro&&!(t<21)){var a=e.read_shift(1);return e.l+=17,e.l+=1,e.l+=2,[a,e.read_shift(t-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(e,t){var r=t||{};if(+r.codepage>=0&&h(+r.codepage),"string"==r.type)throw new Error("Cannot write WK1 to JS string");var a=Sr(),c=Ur(e["!ref"]),o=Array.isArray(e),l=[];Vc(a,0,function(e){var t=kr(2);return t.write_shift(2,e),t}(1030)),Vc(a,6,function(e){var t=kr(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}(c));for(var f=Math.min(c.e.r,8191),u=c.s.r;u<=f;++u)for(var d=Ir(u),p=c.s.c;p<=c.e.c;++p){u===c.s.r&&(l[p]=Dr(p));var m=l[p]+d,g=o?(e[u]||[])[p]:e[m];if(g&&"z"!=g.t)if("n"==g.t)(0|g.v)==g.v&&g.v>=-32768&&g.v<=32767?Vc(a,13,s(u,p,g.v)):Vc(a,14,i(u,p,g.v));else Vc(a,15,n(u,p,Hr(g).slice(0,239)))}return Vc(a,1),a.end()},book_to_wk3:function(e,t){var r=t||{};if(+r.codepage>=0&&h(+r.codepage),"string"==r.type)throw new Error("Cannot write WK3 to JS string");var a=Sr();Vc(a,0,function(e){var t=kr(26);t.write_shift(2,4096),t.write_shift(2,4),t.write_shift(4,0);for(var r=0,a=0,n=0,s=0;s8191&&(r=8191);return t.write_shift(2,r),t.write_shift(1,n),t.write_shift(1,a),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}(e));for(var n=0,s=0;n":case"":t.shadow=1;break;case"":break;case"":case"":t.outline=1;break;case"":break;case"":case"":t.strike=1;break;case"":break;case"":case"":t.u=1;break;case"":break;case"":case"":t.b=1;break;case"":break;case"":case"":t.i=1;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":case"":case"":case"":case"":case"":break;case"":n=!1;break;default:if(47!==s[0].charCodeAt(1)&&!n)throw new Error("Unrecognized rich format "+s[0])}}return t}(s[1])),n}var a=/<(?:\w+:)?r>/g,n=/<\/(?:\w+:)?r>/;return function(e){return e.replace(a,"").split(n).map(r).filter((function(e){return e.v}))}}(),Pn=function(){var e=/(\r\n|\n)/g;function t(t){var r=[[],t.v,[]];return t.v?(t.s&&function(e,t,r){var a=[];e.u&&a.push("text-decoration: underline;"),e.uval&&a.push("text-underline-style:"+e.uval+";"),e.sz&&a.push("font-size:"+e.sz+"pt;"),e.outline&&a.push("text-effect: outline;"),e.shadow&&a.push("text-shadow: auto;"),t.push(''),e.b&&(t.push(""),r.push("")),e.i&&(t.push(""),r.push("")),e.strike&&(t.push(""),r.push(""));var n=e.valign||"";"superscript"==n||"super"==n?n="sup":"subscript"==n&&(n="sub"),""!=n&&(t.push("<"+n+">"),r.push("")),r.push("")}(t.s,r[0],r[2]),r[0].join("")+r[1].replace(e,"
")+r[2].join("")):""}return function(e){return e.map(t).join("")}}(),Un=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Bn=/<(?:\w+:)?r>/,Hn=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function zn(e,t){var r=!t||t.cellHTML,a={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(a.t=gt(_t(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),a.r=_t(e),r&&(a.h=Tt(a.t))):e.match(Bn)&&(a.r=_t(e),a.t=gt(_t((e.replace(Hn,"").match(Un)||[]).join("").replace(lt,""))),r&&(a.h=Pn(Ln(a.r)))),a):{t:""}}var Wn=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,Vn=/<(?:\w+:)?(?:si|sstItem)>/g,Gn=/<\/(?:\w+:)?(?:si|sstItem)>/;function jn(e){if("undefined"!==typeof m)return m.utils.encode(c,e);for(var t=[],r=e.split(""),a=0;a=4&&(e.l+=t-4),r}function Xn(e){for(var t=e.read_shift(4),r=e.l+t-4,a={},n=e.read_shift(4),s=[];n-- >0;)s.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(a.name=e.read_shift(0,"lpp4"),a.comps=s,e.l!=r)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+r);return a}function Kn(e){var t=function(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=$n(e,4),t.U=$n(e,4),t.W=$n(e,4),t}(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),4!=e.read_shift(4))throw new Error("Bad !Primary record");return t}function Yn(e,t){var r=e.l+t,a={};a.Flags=63&e.read_shift(4),e.l+=4,a.AlgID=e.read_shift(4);var n=!1;switch(a.AlgID){case 26126:case 26127:case 26128:n=36==a.Flags;break;case 26625:n=4==a.Flags;break;case 0:n=16==a.Flags||4==a.Flags||36==a.Flags;break;default:throw"Unrecognized encryption algorithm: "+a.AlgID}if(!n)throw new Error("Encryption Flags/AlgID mismatch");return a.AlgIDHash=e.read_shift(4),a.KeySize=e.read_shift(4),a.ProviderType=e.read_shift(4),e.l+=8,a.CSPName=e.read_shift(r-e.l>>1,"utf16le"),e.l=r,a}function Jn(e,t){var r={},a=e.l+t;return e.l+=4,r.Salt=e.slice(e.l,e.l+16),e.l+=16,r.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),r.VerifierHash=e.slice(e.l,a),e.l=a,r}function qn(e){if(36!=(63&e.read_shift(4)))throw new Error("EncryptionInfo mismatch");var t=e.read_shift(4);return{t:"Std",h:Yn(e,t),v:Jn(e,e.length-e.l)}}function Zn(){throw new Error("File is password-protected: ECMA-376 Extensible")}function Qn(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var r=e.read_shift(e.length-e.l,"utf8"),a={};return r.replace(lt,(function(e){var r=ut(e);switch(dt(r[0])){case"":case"":case"":break;case"":case"=0;--r)a=((0===(16384&a)?0:1)|a<<1&32767)^t[r];return 52811^a}var ts=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],r=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],a=function(e,t){return 255&((r=e^t)/2|128*r);var r};return function(n){for(var s,i,c,o=jn(n),l=function(e){for(var a=t[e.length-1],n=104,s=e.length-1;s>=0;--s)for(var i=e[s],c=0;7!=c;++c)64&i&&(a^=r[n]),i*=2,--n;return a}(o),f=o.length,h=S(16),u=0;16!=u;++u)h[u]=0;for(1===(1&f)&&(s=l>>8,h[f]=a(e[0],s),--f,s=255&l,i=o[o.length-1],h[f]=a(i,s));f>0;)s=l>>8,h[--f]=a(o[f],s),s=255&l,h[--f]=a(o[f],s);for(f=15,c=15-o.length;c>0;)s=l>>8,h[f]=a(e[c],s),--c,s=255&l,h[--f]=a(o[f],s),--f,--c;return h}}(),rs=function(e){var t=0,r=ts(e);return function(e){var a=function(e,t,r,a,n){var s,i;for(n||(n=t),a||(a=ts(e)),s=0;s!=t.length;++s)i=t[s],i=255&((i^=a[r])>>5|i<<3),n[s]=i,++r;return[n,r,a]}("",e,t,r);return t=a[1],a[0]}};function as(e,t,r){var a=r||{};return a.Info=e.read_shift(2),e.l-=2,1===a.Info?a.Data=function(e){var t={},r=t.EncryptionVersionInfo=$n(e,4);if(1!=r.Major||1!=r.Minor)throw"unrecognized version code "+r.Major+" : "+r.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}(e):a.Data=function(e,t){var r={},a=r.EncryptionVersionInfo=$n(e,4);if(t-=4,2!=a.Minor)throw new Error("unrecognized minor version code: "+a.Minor);if(a.Major>4||a.Major<2)throw new Error("unrecognized major version code: "+a.Major);r.Flags=e.read_shift(4),t-=4;var n=e.read_shift(4);return t-=4,r.EncryptionHeader=Yn(e,n),t-=n,r.EncryptionVerifier=Jn(e,t),r}(e,t),a}var ns=function(){function e(e,r){switch(r.type){case"base64":return t(A(e),r);case"binary":return t(e,r);case"buffer":return t(k&&a.isBuffer(e)?e.toString("binary"):R(e),r);case"array":return t(We(e),r)}throw new Error("Unrecognized type "+r.type)}function t(e,t){var r=(t||{}).dense?[]:{},a=e.match(/\\trowd.*?\\row\b/g);if(!a.length)throw new Error("RTF missing table");var n={s:{c:0,r:0},e:{c:0,r:a.length-1}};return a.forEach((function(e,t){Array.isArray(r)&&(r[t]=[]);for(var a,s=/\\\w+\b/g,i=0,c=-1;a=s.exec(e);){if("\\cell"===a[0]){var o=e.slice(i,s.lastIndex-a[0].length);if(" "==o[0]&&(o=o.slice(1)),++c,o.length){var l={v:o,t:"s"};Array.isArray(r)?r[t][c]=l:r[Mr({r:t,c:c})]=l}}i=s.lastIndex}c>n.e.c&&(n.e.c=c)})),r["!ref"]=Pr(n),r}return{to_workbook:function(t,r){return zr(e(t,r),r)},to_sheet:e,from_sheet:function(e){for(var t,r=["{\\rtf1\\ansi"],a=Ur(e["!ref"]),n=Array.isArray(e),s=a.s.r;s<=a.e.r;++s){r.push("\\trowd\\trautofit1");for(var i=a.s.c;i<=a.e.c;++i)r.push("\\cellx"+(i+1));for(r.push("\\pard\\intbl"),i=a.s.c;i<=a.e.c;++i){var c=Mr({r:s,c:i});(t=n?(e[s]||[])[i]:e[c])&&(null!=t.v||t.f&&!t.F)&&(r.push(" "+(t.w||(Hr(t),t.w))),r.push("\\cell"))}r.push("\\pard\\intbl\\row")}return r.join("")+"}"}}}();function ss(e){for(var t=0,r=1;3!=t;++t)r=256*r+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}function is(e,t){if(0===t)return e;var r=function(e){var t=e[0]/255,r=e[1]/255,a=e[2]/255,n=Math.max(t,r,a),s=Math.min(t,r,a),i=n-s;if(0===i)return[0,0,t];var c,o=0,l=n+s;switch(c=i/(l>1?2-l:l),n){case t:o=((r-a)/i+6)%6;break;case r:o=(a-t)/i+2;break;case a:o=(t-r)/i+4}return[o/6,c,l/2]}(function(e){var t=e.slice("#"===e[0]?1:0).slice(0,6);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}(e));return r[2]=t<0?r[2]*(1+t):1-(1-r[2])*(1-t),ss(function(e){var t,r=e[0],a=e[1],n=e[2],s=2*a*(n<.5?n:1-n),i=n-s/2,c=[i,i,i],o=6*r;if(0!==a)switch(0|o){case 0:case 6:t=s*o,c[0]+=s,c[1]+=t;break;case 1:t=s*(2-o),c[0]+=t,c[1]+=s;break;case 2:t=s*(o-2),c[1]+=s,c[2]+=t;break;case 3:t=s*(4-o),c[1]+=t,c[2]+=s;break;case 4:t=s*(o-4),c[2]+=s,c[0]+=t;break;case 5:t=s*(6-o),c[2]+=t,c[0]+=s}for(var l=0;3!=l;++l)c[l]=Math.round(255*c[l]);return c}(r))}var cs=6,os=15,ls=1,fs=cs;function hs(e){return Math.floor((e+Math.round(128/fs)/256)*fs)}function us(e){return Math.floor((e-5)/fs*100+.5)/100}function ds(e){return Math.round((e*fs+5)/fs*256)/256}function ps(e){return ds(us(hs(e)))}function ms(e){var t=Math.abs(e-ps(e)),r=fs;if(t>.005)for(fs=ls;fs]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,r=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,a=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,n=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(s,i,c){var o,f={};return s?((o=(s=s.replace(//gm,"").replace(//gm,"")).match(e))&&function(e,t,r){t.NumberFmt=[];for(var a=Oe(W),n=0;n":case"":case"":case"":break;case"0){if(o>392){for(o=392;o>60&&null!=t.NumberFmt[o];--o);t.NumberFmt[o]=c}Ae(c,o)}break;default:if(r.WTF)throw new Error("unrecognized "+i[0]+" in numFmts")}}}(o,f,c),(o=s.match(a))&&function(e,t,r,a){t.Fonts=[];var n={},s=!1;(e[0].match(lt)||[]).forEach((function(e){var i=ut(e);switch(dt(i[0])){case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":break;case"":case"":t.Fonts.push(n),n={};break;case"":n.bold=1;break;case"":n.italic=1;break;case"":n.underline=1;break;case"":n.strike=1;break;case"":n.outline=1;break;case"":n.shadow=1;break;case"":n.condense=1;break;case"":n.extend=1;break;case"":case"":s=!1;break;default:if(a&&a.WTF&&!s)throw new Error("unrecognized "+i[0]+" in fonts")}}))}(o,f,i,c),(o=s.match(r))&&function(e,t,r,a){t.Fills=[];var n={},s=!1;(e[0].match(lt)||[]).forEach((function(e){var r=ut(e);switch(dt(r[0])){case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":break;case"":case"":n={},t.Fills.push(n);break;case"":t.Fills.push(n),n={};break;case"":r.patternType&&(n.patternType=r.patternType);break;case"":s=!1;break;default:if(a&&a.WTF&&!s)throw new Error("unrecognized "+r[0]+" in fills")}}))}(o,f,0,c),(o=s.match(n))&&function(e,t,r,a){t.Borders=[];var n={},s=!1;(e[0].match(lt)||[]).forEach((function(e){var r=ut(e);switch(dt(r[0])){case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":break;case"":case"":n={},r.diagonalUp&&(n.diagonalUp=wt(r.diagonalUp)),r.diagonalDown&&(n.diagonalDown=wt(r.diagonalDown)),t.Borders.push(n);break;case"":s=!1;break;default:if(a&&a.WTF&&!s)throw new Error("unrecognized "+r[0]+" in borders")}}))}(o,f,0,c),(o=s.match(t))&&function(e,t,r){var a;t.CellXf=[];var n=!1;(e[0].match(lt)||[]).forEach((function(e){var s=ut(e),i=0;switch(dt(s[0])){case"":case"":case"":case"":case"":case"":case"":case"":case"":break;case"":for(delete(a=s)[0],i=0;i392)for(i=392;i>60;--i)if(t.NumberFmt[a.numFmtId]==t.NumberFmt[i]){a.numFmtId=i;break}t.CellXf.push(a);break;case"":var c={};s.vertical&&(c.vertical=s.vertical),s.horizontal&&(c.horizontal=s.horizontal),null!=s.textRotation&&(c.textRotation=s.textRotation),s.indent&&(c.indent=s.indent),s.wrapText&&(c.wrapText=wt(s.wrapText)),a.alignment=c;break;case"":case"":n=!1;break;default:if(r&&r.WTF&&!n)throw new Error("unrecognized "+s[0]+" in cellXfs")}}))}(o,f,c),f):f}}();var ys=Ar;var Ss=Ar;var _s=["","","","","","","","","","","",""];function Cs(e,t,r){t.themeElements.clrScheme=[];var a={};(e[0].match(lt)||[]).forEach((function(e){var n=ut(e);switch(n[0]){case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":"/"===n[0].charAt(1)?(t.themeElements.clrScheme[_s.indexOf(n[0])]=a,a={}):a.name=n[0].slice(3,n[0].length-1);break;default:if(r&&r.WTF)throw new Error("Unrecognized "+n[0]+" in clrScheme")}}))}function Rs(){}function Os(){}var xs=/]*)>[\s\S]*<\/a:clrScheme>/,Is=/]*)>[\s\S]*<\/a:fontScheme>/,Ns=/]*)>[\s\S]*<\/a:fmtScheme>/;var Ds=/]*)>[\s\S]*<\/a:themeElements>/;function Fs(e,t){var r;e&&0!==e.length||(e=Ms());var a={};if(!(r=e.match(Ds)))throw new Error("themeElements not found in theme");return function(e,t,r){var a;t.themeElements={},[["clrScheme",xs,Cs],["fontScheme",Is,Rs],["fmtScheme",Ns,Os]].forEach((function(n){if(!(a=e.match(n[1])))throw new Error(n[0]+" not found in themeElements");n[2](a,t,r)}))}(r[0],a,t),a.raw=e,a}function Ms(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var r=[it];return r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r.join("")}function Ls(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:case 4:e.l+=4;break;case 1:t.xclrValue=function(e,t){return Ar(e,t)}(e,4);break;case 2:t.xclrValue=tn(e);break;case 3:t.xclrValue=function(e){return e.read_shift(4)}(e)}return e.l+=8,t}function Ps(e){var t=e.read_shift(2),r=e.read_shift(2)-4,a=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:a[1]=Ls(e);break;case 6:a[1]=function(e,t){return Ar(e,t)}(e,r);break;case 14:case 15:a[1]=e.read_shift(1===r?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+r)}return a}function Us(e,t,r,a){var n,s=Array.isArray(e);t.forEach((function(t){var i=Fr(t.ref);if(s?(e[i.r]||(e[i.r]=[]),n=e[i.r][i.c]):n=e[t.ref],!n){n={t:"z"},s?e[i.r][i.c]=n:e[t.ref]=n;var c=Ur(e["!ref"]||"BDWGO1000001:A1");c.s.r>i.r&&(c.s.r=i.r),c.e.ri.c&&(c.s.c=i.c),c.e.c=0;--f){if(!r&&n.c[f].T)return;r&&!n.c[f].T&&n.c.splice(f,1)}if(r&&a)for(f=0;f0?0|parseInt(a,10):0,o=n.length>0?0|parseInt(n,10):0;return s?o+=t.c:--o,i?c+=t.r:--c,r+(s?"":"$")+Dr(o)+(i?"":"$")+Ir(c)}return function(a,n){return t=n,a.replace(e,r)}}(),Ws=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Vs=function(){return function(e,t){return e.replace(Ws,(function(e,r,a,n,s,i){var c=Nr(n)-(a?0:t.c),o=xr(i)-(s?0:t.r);return r+"R"+(0==o?"":s?o+1:"["+o+"]")+"C"+(0==c?"":a?c+1:"["+c+"]")}))}}();function Gs(e,t){return e.replace(Ws,(function(e,r,a,n,s,i){return r+("$"==a?a+n:Dr(Nr(n)+t.c))+("$"==s?s+i:Ir(xr(i)+t.r))}))}function js(e,t,r){var a=Lr(t).s,n=Fr(r);return Gs(e,{r:n.r-a.r,c:n.c-a.c})}function $s(e){return e.replace(/_xlfn\./g,"")}function Xs(e){e.l+=1}function Ks(e,t){var r=e.read_shift(1==t?1:2);return[16383&r,r>>14&1,r>>15&1]}function Ys(e,t,r){var a=2;if(r){if(r.biff>=2&&r.biff<=5)return Js(e);12==r.biff&&(a=4)}var n=e.read_shift(a),s=e.read_shift(a),i=Ks(e,2),c=Ks(e,2);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:s,c:c[0],cRel:c[1],rRel:c[2]}}}function Js(e){var t=Ks(e,2),r=Ks(e,2),a=e.read_shift(1),n=e.read_shift(1);return{s:{r:t[0],c:a,cRel:t[1],rRel:t[2]},e:{r:r[0],c:n,cRel:r[1],rRel:r[2]}}}function qs(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return function(e){var t=Ks(e,2),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}(e);var a=e.read_shift(r&&12==r.biff?4:2),n=Ks(e,2);return{r:a,c:n[0],cRel:n[1],rRel:n[2]}}function Zs(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:255&r,fQuoted:!!(16384&r),cRel:r>>15,rRel:r>>15}}function Qs(e){var t=1&e[e.l+1];return e.l+=4,[t,1]}function ei(e){return[e.read_shift(1),e.read_shift(1)]}function ti(e,t){var r=[e.read_shift(1)];if(12==t)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2}switch(r[0]){case 4:r[1]=ja(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:r[1]=va[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:r[1]=aa(e);break;case 2:r[1]=Za(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function ri(e,t,r){for(var a=e.read_shift(12==r.biff?4:2),n=[],s=0;s!=a;++s)n.push((12==r.biff?ra:cn)(e,8));return n}function ai(e,t,r){var a=0,n=0;12==r.biff?(a=e.read_shift(4),n=e.read_shift(4)):(n=1+e.read_shift(1),a=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--a,0==--n&&(n=256));for(var s=0,i=[];s!=a&&(i[s]=[]);++s)for(var c=0;c!=n;++c)i[s][c]=ti(e,r.biff);return i}function ni(e,t,r){return e.l+=2,[Zs(e)]}function si(e){return e.l+=6,[]}function ii(e){return e.l+=2,[$a(e),1&e.read_shift(2)]}var ci=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];var oi={1:{n:"PtgExp",f:function(e,t,r){return e.l++,r&&12==r.biff?[e.read_shift(4,"i"),0]:[e.read_shift(2),e.read_shift(r&&2==r.biff?1:2)]}},2:{n:"PtgTbl",f:Ar},3:{n:"PtgAdd",f:Xs},4:{n:"PtgSub",f:Xs},5:{n:"PtgMul",f:Xs},6:{n:"PtgDiv",f:Xs},7:{n:"PtgPower",f:Xs},8:{n:"PtgConcat",f:Xs},9:{n:"PtgLt",f:Xs},10:{n:"PtgLe",f:Xs},11:{n:"PtgEq",f:Xs},12:{n:"PtgGe",f:Xs},13:{n:"PtgGt",f:Xs},14:{n:"PtgNe",f:Xs},15:{n:"PtgIsect",f:Xs},16:{n:"PtgUnion",f:Xs},17:{n:"PtgRange",f:Xs},18:{n:"PtgUplus",f:Xs},19:{n:"PtgUminus",f:Xs},20:{n:"PtgPercent",f:Xs},21:{n:"PtgParen",f:Xs},22:{n:"PtgMissArg",f:Xs},23:{n:"PtgStr",f:function(e,t,r){return e.l++,Ka(e,0,r)}},26:{n:"PtgSheet",f:function(e,t,r){return e.l+=5,e.l+=2,e.l+=2==r.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(e,t,r){return e.l+=2==r.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(e){return e.l++,va[e.read_shift(1)]}},29:{n:"PtgBool",f:function(e){return e.l++,0!==e.read_shift(1)}},30:{n:"PtgInt",f:function(e){return e.l++,e.read_shift(2)}},31:{n:"PtgNum",f:function(e){return e.l++,aa(e)}},32:{n:"PtgArray",f:function(e,t,r){var a=(96&e[e.l++])>>5;return e.l+=2==r.biff?6:12==r.biff?14:7,[a]}},33:{n:"PtgFunc",f:function(e,t,r){var a=(96&e[e.l])>>5;e.l+=1;var n=e.read_shift(r&&r.biff<=3?1:2);return[Oi[n],Ri[n],a]}},34:{n:"PtgFuncVar",f:function(e,t,r){var a=e[e.l++],n=e.read_shift(1),s=r&&r.biff<=3?[88==a?-1:0,e.read_shift(1)]:function(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}(e);return[n,(0===s[0]?Ri:Ci)[s[1]]]}},35:{n:"PtgName",f:function(e,t,r){var a=e.read_shift(1)>>>5&3,n=!r||r.biff>=8?4:2,s=e.read_shift(n);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12}return[a,0,s]}},36:{n:"PtgRef",f:function(e,t,r){var a=(96&e[e.l])>>5;return e.l+=1,[a,qs(e,0,r)]}},37:{n:"PtgArea",f:function(e,t,r){return[(96&e[e.l++])>>5,Ys(e,r.biff>=2&&r.biff,r)]}},38:{n:"PtgMemArea",f:function(e,t,r){var a=e.read_shift(1)>>>5&3;return e.l+=r&&2==r.biff?3:4,[a,e.read_shift(r&&2==r.biff?1:2)]}},39:{n:"PtgMemErr",f:Ar},40:{n:"PtgMemNoMem",f:Ar},41:{n:"PtgMemFunc",f:function(e,t,r){return[e.read_shift(1)>>>5&3,e.read_shift(r&&2==r.biff?1:2)]}},42:{n:"PtgRefErr",f:function(e,t,r){var a=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,12==r.biff&&(e.l+=2),[a]}},43:{n:"PtgAreaErr",f:function(e,t,r){var a=(96&e[e.l++])>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[a]}},44:{n:"PtgRefN",f:function(e,t,r){var a=(96&e[e.l])>>5;e.l+=1;var n=function(e,t,r){var a=r&&r.biff?r.biff:8;if(a>=2&&a<=5)return function(e){var t=e.read_shift(2),r=e.read_shift(1),a=(32768&t)>>15,n=(16384&t)>>14;return t&=16383,1==a&&t>=8192&&(t-=16384),1==n&&r>=128&&(r-=256),{r:t,c:r,cRel:n,rRel:a}}(e);var n=e.read_shift(a>=12?4:2),s=e.read_shift(2),i=(16384&s)>>14,c=(32768&s)>>15;if(s&=16383,1==c)for(;n>524287;)n-=1048576;if(1==i)for(;s>8191;)s-=16384;return{r:n,c:s,cRel:i,rRel:c}}(e,0,r);return[a,n]}},45:{n:"PtgAreaN",f:function(e,t,r){var a=(96&e[e.l++])>>5,n=function(e,t,r){if(r.biff<8)return Js(e);var a=e.read_shift(12==r.biff?4:2),n=e.read_shift(12==r.biff?4:2),s=Ks(e,2),i=Ks(e,2);return{s:{r:a,c:s[0],cRel:s[1],rRel:s[2]},e:{r:n,c:i[0],cRel:i[1],rRel:i[2]}}}(e,0,r);return[a,n]}},46:{n:"PtgMemAreaN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},57:{n:"PtgNameX",f:function(e,t,r){return 5==r.biff?function(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var a=e.read_shift(2);return e.l+=12,[t,r,a]}(e):[e.read_shift(1)>>>5&3,e.read_shift(2),e.read_shift(4)]}},58:{n:"PtgRef3d",f:function(e,t,r){var a=(96&e[e.l])>>5;e.l+=1;var n=e.read_shift(2);return r&&5==r.biff&&(e.l+=12),[a,n,qs(e,0,r)]}},59:{n:"PtgArea3d",f:function(e,t,r){var a=(96&e[e.l++])>>5,n=e.read_shift(2,"i");if(r)switch(r.biff){case 5:e.l+=12;break;case 12:0}return[a,n,Ys(e,0,r)]}},60:{n:"PtgRefErr3d",f:function(e,t,r){var a=(96&e[e.l++])>>5,n=e.read_shift(2),s=4;if(r)switch(r.biff){case 5:s=15;break;case 12:s=6}return e.l+=s,[a,n]}},61:{n:"PtgAreaErr3d",f:function(e,t,r){var a=(96&e[e.l++])>>5,n=e.read_shift(2),s=8;if(r)switch(r.biff){case 5:e.l+=12,s=6;break;case 12:s=12}return e.l+=s,[a,n]}},255:{}},li={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},fi={1:{n:"PtgElfLel",f:ii},2:{n:"PtgElfRw",f:ni},3:{n:"PtgElfCol",f:ni},6:{n:"PtgElfRwV",f:ni},7:{n:"PtgElfColV",f:ni},10:{n:"PtgElfRadical",f:ni},11:{n:"PtgElfRadicalS",f:si},13:{n:"PtgElfColS",f:si},15:{n:"PtgElfColSV",f:si},16:{n:"PtgElfRadicalLel",f:ii},25:{n:"PtgList",f:function(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(4),n=e.read_shift(2),s=e.read_shift(2);return{ixti:t,coltype:3&r,rt:ci[r>>2&31],idx:a,c:n,C:s}}},29:{n:"PtgSxName",f:function(e){return e.l+=2,[e.read_shift(4)]}},255:{}},hi={0:{n:"PtgAttrNoop",f:function(e){return e.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(e,t,r){var a=255&e[e.l+1]?1:0;return e.l+=r&&2==r.biff?3:4,[a]}},2:{n:"PtgAttrIf",f:function(e,t,r){var a=255&e[e.l+1]?1:0;return e.l+=2,[a,e.read_shift(r&&2==r.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function(e,t,r){e.l+=2;for(var a=e.read_shift(r&&2==r.biff?1:2),n=[],s=0;s<=a;++s)n.push(e.read_shift(r&&2==r.biff?1:2));return n}},8:{n:"PtgAttrGoto",f:function(e,t,r){var a=255&e[e.l+1]?1:0;return e.l+=2,[a,e.read_shift(r&&2==r.biff?1:2)]}},16:{n:"PtgAttrSum",f:function(e,t,r){e.l+=r&&2==r.biff?3:4}},32:{n:"PtgAttrBaxcel",f:Qs},33:{n:"PtgAttrBaxcel",f:Qs},64:{n:"PtgAttrSpace",f:function(e){return e.read_shift(2),ei(e)}},65:{n:"PtgAttrSpaceSemi",f:function(e){return e.read_shift(2),ei(e)}},128:{n:"PtgAttrIfError",f:function(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}},255:{}};function ui(e,t,r,a){if(a.biff<8)return Ar(e,t);for(var n=e.l+t,s=[],i=0;i!==r.length;++i)switch(r[i][0]){case"PtgArray":r[i][1]=ai(e,0,a),s.push(r[i][1]);break;case"PtgMemArea":r[i][2]=ri(e,r[i][1],a),s.push(r[i][2]);break;case"PtgExp":a&&12==a.biff&&(r[i][1][1]=e.read_shift(4),s.push(r[i][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[i][0]}return 0!==(t=n-e.l)&&s.push(Ar(e,t)),s}function di(e,t,r){for(var a,n,s=e.l+t,i=[];s!=e.l;)t=s-e.l,n=e[e.l],a=oi[n]||oi[li[n]],24!==n&&25!==n||(a=(24===n?fi:hi)[e[e.l+1]]),a&&a.f?i.push([a.n,a.f(e,t,r)]):Ar(e,t);return i}function pi(e){for(var t=[],r=0;r=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function gi(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var a=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!a)return"SH33TJSERR1";var n="";if(r.biff>8)switch(e[a[0]][0]){case 357:return n=-1==a[1]?"#REF":e.SheetNames[a[1]],a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 358:return null!=r.SID?e.SheetNames[r.SID]:"SH33TJSSAME"+e[a[0]][0];default:return"SH33TJSSRC"+e[a[0]][0]}switch(e[a[0]][0][0]){case 1025:return n=-1==a[1]?"#REF":e.SheetNames[a[1]]||"SH33TJSERR3",a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 14849:return e[a[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[a[0]][0][3]?(n=-1==a[1]?"#REF":e[a[0]][0][3][a[1]]||"SH33TJSERR4",a[1]==a[2]?n:n+":"+e[a[0]][0][3][a[2]]):"SH33TJSERR2"}}function vi(e,t,r){var a=gi(e,t,r);return"#REF"==a?a:function(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}(a,r)}function bi(e,t,r,a,n){var s,i,c,o,l=n&&n.biff||8,f={s:{c:0,r:0},e:{c:0,r:0}},h=[],u=0,d=0,p="";if(!e[0]||!e[0][0])return"";for(var m=-1,g="",v=0,b=e[0].length;v=0){switch(e[0][m][1][0]){case 0:g=Ge(" ",e[0][m][1][1]);break;case 1:g=Ge("\r",e[0][m][1][1]);break;default:if(g="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}i+=g,m=-1}h.push(i+mi[T[0]]+s);break;case"PtgIsect":s=h.pop(),i=h.pop(),h.push(i+" "+s);break;case"PtgUnion":s=h.pop(),i=h.pop(),h.push(i+","+s);break;case"PtgRange":s=h.pop(),i=h.pop(),h.push(i+":"+s);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":c=_r(T[1][1],f,n),h.push(Rr(c,l));break;case"PtgRefN":c=r?_r(T[1][1],r,n):T[1][1],h.push(Rr(c,l));break;case"PtgRef3d":u=T[1][1],c=_r(T[1][2],f,n);p=vi(a,u,n);h.push(p+"!"+Rr(c,l));break;case"PtgFunc":case"PtgFuncVar":var E=T[1][0],w=T[1][1];E||(E=0);var A=0==(E&=127)?[]:h.slice(-E);h.length-=E,"User"===w&&(w=A.shift()),h.push(w+"("+A.join(",")+")");break;case"PtgBool":h.push(T[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":h.push(T[1]);break;case"PtgNum":h.push(String(T[1]));break;case"PtgStr":h.push('"'+T[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":o=Cr(T[1][1],r?{s:r}:f,n),h.push(Or(o,n));break;case"PtgArea":o=Cr(T[1][1],f,n),h.push(Or(o,n));break;case"PtgArea3d":u=T[1][1],o=T[1][2],p=vi(a,u,n),h.push(p+"!"+Or(o,n));break;case"PtgAttrSum":h.push("SUM("+h.pop()+")");break;case"PtgName":d=T[1][2];var k=(a.names||[])[d-1]||(a[0]||[])[d],y=k?k.Name:"SH33TJSNAME"+String(d);y&&"_xlfn."==y.slice(0,6)&&!n.xlfn&&(y=y.slice(6)),h.push(y);break;case"PtgNameX":var S,_=T[1][1];if(d=T[1][2],!(n.biff<=5)){var C="";if(14849==((a[_]||[])[0]||[])[0]||(1025==((a[_]||[])[0]||[])[0]?a[_][d]&&a[_][d].itab>0&&(C=a.SheetNames[a[_][d].itab-1]+"!"):C=a.SheetNames[d-1]+"!"),a[_]&&a[_][d])C+=a[_][d].Name;else if(a[0]&&a[0][d])C+=a[0][d].Name;else{var R=(gi(a,_,n)||"").split(";;");R[d-1]?C=R[d-1]:C+="SH33TJSERRX"}h.push(C);break}_<0&&(_=-_),a[_]&&(S=a[_][d]),S||(S={Name:"SH33TJSERRY"}),h.push(S.Name);break;case"PtgParen":var O="(",x=")";if(m>=0){switch(g="",e[0][m][1][0]){case 2:O=Ge(" ",e[0][m][1][1])+O;break;case 3:O=Ge("\r",e[0][m][1][1])+O;break;case 4:x=Ge(" ",e[0][m][1][1])+x;break;case 5:x=Ge("\r",e[0][m][1][1])+x;break;default:if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}m=-1}h.push(O+h.pop()+x);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":h.push("#REF!");break;case"PtgExp":c={c:T[1][1],r:T[1][0]};var I={c:r.c,r:r.r};if(a.sharedf[Mr(c)]){var N=a.sharedf[Mr(c)];h.push(bi(N,f,I,a,n))}else{var D=!1;for(s=0;s!=a.arrayf.length;++s)if(i=a.arrayf[s],!(c.ci[0].e.c)&&!(c.ri[0].e.r)){h.push(bi(i[1],f,I,a,n)),D=!0;break}D||h.push(T[1])}break;case"PtgArray":h.push("{"+pi(T[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=v;break;case"PtgMissArg":h.push("");break;case"PtgList":h.push("Table"+T[1].idx+"[#"+T[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(T))}if(3!=n.biff&&m>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(e[0][v][0])){var F=!0;switch((T=e[0][m])[1][0]){case 4:F=!1;case 0:g=Ge(" ",T[1][1]);break;case 5:F=!1;case 1:g=Ge("\r",T[1][1]);break;default:if(g="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+T[1][0])}h.push((F?g:"")+h.pop()+(F?"":g)),m=-1}}if(h.length>1&&n.WTF)throw new Error("bad formula stack");return h[0]}function Ti(e,t,r){var a,n=e.l+t,s=2==r.biff?1:2,i=e.read_shift(s);if(65535==i)return[[],Ar(e,t-2)];var c=di(e,i,r);return t!==i+s&&(a=ui(e,t-i-s,c,r)),e.l=n,[c,a]}function Ei(e,t,r){var a,n=e.l+t,s=e.read_shift(2),i=di(e,s,r);return 65535==s?[[],Ar(e,t-2)]:(t!==s+2&&(a=ui(e,n-s-2,i,r)),[i,a])}function wi(e,t,r){var a=e.l+t,n=an(e);2==r.biff&&++e.l;var s=function(e){var t;if(65535!==fr(e,e.l+6))return[aa(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=1===e[e.l+2],e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}(e),i=e.read_shift(1);2!=r.biff&&(e.read_shift(1),r.biff>=5&&e.read_shift(4));var c=function(e,t,r){var a,n=e.l+t,s=2==r.biff?1:2,i=e.read_shift(s);if(65535==i)return[[],Ar(e,t-2)];var c=di(e,i,r);return t!==i+s&&(a=ui(e,t-i-s,c,r)),e.l=n,[c,a]}(e,a-e.l,r);return{cell:n,val:s[0],formula:c,shared:i>>3&1,tt:s[1]}}function Ai(e,t,r){var a=e.read_shift(4),n=di(e,a,r),s=e.read_shift(4);return[n,s>0?ui(e,s,n,r):null]}var ki=Ai,yi=Ai,Si=Ai,_i=Ai,Ci={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Ri={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Oi={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function xi(e){return"of:"==e.slice(0,3)&&(e=e.slice(3)),61==e.charCodeAt(0)&&61==(e=e.slice(1)).charCodeAt(0)&&(e=e.slice(1)),(e=(e=(e=e.replace(/COM\.MICROSOFT\./g,"")).replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,(function(e,t){return t.replace(/\./g,"")}))).replace(/\[.(#[A-Z]*[?!])\]/g,"$1")).replace(/[;~]/g,",").replace(/\|/g,";")}function Ii(e){var t=e.split(":");return[t[0].split(".")[0],t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}var Ni={},Di={};function Fi(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(r=[1,1,1,1,.5,.5]),null==e.left&&(e.left=r[0]),null==e.right&&(e.right=r[1]),null==e.top&&(e.top=r[2]),null==e.bottom&&(e.bottom=r[3]),null==e.header&&(e.header=r[4]),null==e.footer&&(e.footer=r[5])}}function Mi(e,t,r,a,n,s){try{a.cellNF&&(e.z=W[t])}catch(c){if(a.WTF)throw c}if("z"!==e.t||a.cellStyles){if("d"===e.t&&"string"===typeof e.v&&(e.v=ze(e.v)),(!a||!1!==a.cellText)&&"z"!==e.t)try{if(null==W[t]&&Ae(ye[t]||"General",t),"e"===e.t)e.w=e.w||va[e.v];else if(0===t)if("n"===e.t)(0|e.v)===e.v?e.w=e.v.toString(10):e.w=Q(e.v);else if("d"===e.t){var i=Ne(e.v);e.w=(0|i)===i?i.toString(10):Q(i)}else{if(void 0===e.v)return"";e.w=ee(e.v,Di)}else"d"===e.t?e.w=we(t,Ne(e.v),Di):e.w=we(t,e.v,Di)}catch(c){if(a.WTF)throw c}if(a.cellStyles&&null!=r)try{e.s=s.Fills[r],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=is(n.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),a.WTF&&(e.s.fgColor.raw_rgb=n.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=is(n.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),a.WTF&&(e.s.bgColor.raw_rgb=n.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(c){if(a.WTF&&s.Fills)throw c}}}var Li=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,Pi=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,Ui=/<(?:\w:)?hyperlink [^>]*>/gm,Bi=/"(\w*:\w*)"/,Hi=/<(?:\w:)?col\b[^>]*[\/]?>/g,zi=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,Wi=/<(?:\w:)?pageMargins[^>]*\/>/g,Vi=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,Gi=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,ji=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function $i(e,t,r,a,n,s,i){if(!e)return e;a||(a={"!id":{}}),null!=T&&null==t.dense&&(t.dense=T);var c=t.dense?[]:{},o={s:{r:2e6,c:2e6},e:{r:0,c:0}},l="",f="",h=e.match(Pi);h?(l=e.slice(0,h.index),f=e.slice(h.index+h[0].length)):l=f=e;var u=l.match(Vi);u?Xi(u[0],c,n,r):(u=l.match(Gi))&&function(e,t,r,a,n){Xi(e.slice(0,e.indexOf(">")),r,a,n)}(u[0],u[1],c,n,r);var d=(l.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(d>0){var p=l.slice(d,d+50).match(Bi);p&&function(e,t){var r=Ur(t);r.s.r<=r.e.r&&r.s.c<=r.e.c&&r.s.r>=0&&r.s.c>=0&&(e["!ref"]=Pr(r))}(c,p[1])}var m=l.match(ji);m&&m[1]&&function(e,t){t.Views||(t.Views=[{}]);(e.match(Ki)||[]).forEach((function(e,r){var a=ut(e);t.Views[r]||(t.Views[r]={}),+a.zoomScale&&(t.Views[r].zoom=+a.zoomScale),wt(a.rightToLeft)&&(t.Views[r].RTL=!0)}))}(m[1],n);var g=[];if(t.cellStyles){var v=l.match(Hi);v&&function(e,t){for(var r=!1,a=0;a!=t.length;++a){var n=ut(t[a],!0);n.hidden&&(n.hidden=wt(n.hidden));var s=parseInt(n.min,10)-1,i=parseInt(n.max,10)-1;for(n.outlineLevel&&(n.level=+n.outlineLevel||0),delete n.min,delete n.max,n.width=+n.width,!r&&n.width&&(r=!0,ms(n.width)),gs(n);s<=i;)e[s++]=Ve(n)}}(g,v)}h&&Yi(h[1],c,t,o,s,i);var b=f.match(zi);b&&(c["!autofilter"]=function(e){var t={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return t}(b[0]));var E=[],w=f.match(Li);if(w)for(d=0;d!=w.length;++d)E[d]=Ur(w[d].slice(w[d].indexOf('"')+1));var A=f.match(Ui);A&&function(e,t,r){for(var a=Array.isArray(e),n=0;n!=t.length;++n){var s=ut(_t(t[n]),!0);if(!s.ref)return;var i=((r||{})["!id"]||[])[s.id];i?(s.Target=i.Target,s.location&&(s.Target+="#"+gt(s.location))):(s.Target="#"+gt(s.location),i={Target:s.Target,TargetMode:"Internal"}),s.Rel=i,s.tooltip&&(s.Tooltip=s.tooltip,delete s.tooltip);for(var c=Ur(s.ref),o=c.s.r;o<=c.e.r;++o)for(var l=c.s.c;l<=c.e.c;++l){var f=Mr({c:l,r:o});a?(e[o]||(e[o]=[]),e[o][l]||(e[o][l]={t:"z",v:void 0}),e[o][l].l=s):(e[f]||(e[f]={t:"z",v:void 0}),e[f].l=s)}}}(c,A,a);var k=f.match(Wi);if(k&&(c["!margins"]=function(e){var t={};return["left","right","top","bottom","header","footer"].forEach((function(r){e[r]&&(t[r]=parseFloat(e[r]))})),t}(ut(k[0]))),!c["!ref"]&&o.e.c>=o.s.c&&o.e.r>=o.s.r&&(c["!ref"]=Pr(o)),t.sheetRows>0&&c["!ref"]){var y=Ur(c["!ref"]);t.sheetRows<=+y.e.r&&(y.e.r=t.sheetRows-1,y.e.r>o.e.r&&(y.e.r=o.e.r),y.e.ro.e.c&&(y.e.c=o.e.c),y.e.c0&&(c["!cols"]=g),E.length>0&&(c["!merges"]=E),c}function Xi(e,t,r,a){var n=ut(e);r.Sheets[a]||(r.Sheets[a]={}),n.codeName&&(r.Sheets[a].CodeName=gt(_t(n.codeName)))}var Ki=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;var Yi=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,r=/r=["']([^"']*)["']/,a=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,n=/ref=["']([^"']*)["']/,s=Rt("v"),i=Rt("f");return function(c,o,l,f,h,u){for(var d,p,m,g,v,b=0,T="",E=[],w=[],A=0,k=0,y=0,S="",_=0,C=0,R=0,O=0,x=Array.isArray(u.CellXf),I=[],N=[],D=Array.isArray(o),F=[],M={},L=!1,P=!!l.sheetStubs,U=c.split(t),B=0,H=U.length;B!=H;++B){var z=(T=U[B].trim()).length;if(0!==z){var V=0;e:for(b=0;b":if("/"!=T[b-1]){++b;break e}if(l&&l.cellStyles){if(_=null!=(p=ut(T.slice(V,b),!0)).r?parseInt(p.r,10):_+1,C=-1,l.sheetRows&&l.sheetRows<_)continue;M={},L=!1,p.ht&&(L=!0,M.hpt=parseFloat(p.ht),M.hpx=Ts(M.hpt)),"1"==p.hidden&&(L=!0,M.hidden=!0),null!=p.outlineLevel&&(L=!0,M.level=+p.outlineLevel),L&&(F[_-1]=M)}break;case"<":V=b}if(V>=b)break;if(_=null!=(p=ut(T.slice(V,b),!0)).r?parseInt(p.r,10):_+1,C=-1,!(l.sheetRows&&l.sheetRows<_)){f.s.r>_-1&&(f.s.r=_-1),f.e.r<_-1&&(f.e.r=_-1),l&&l.cellStyles&&(M={},L=!1,p.ht&&(L=!0,M.hpt=parseFloat(p.ht),M.hpx=Ts(M.hpt)),"1"==p.hidden&&(L=!0,M.hidden=!0),null!=p.outlineLevel&&(L=!0,M.level=+p.outlineLevel),L&&(F[_-1]=M)),E=T.slice(b).split(e);for(var G=0;G!=E.length&&"<"==E[G].trim().charAt(0);++G);for(E=E.slice(G),b=0;b!=E.length;++b)if(0!==(T=E[b].trim()).length){if(w=T.match(r),A=b,k=0,y=0,T="":"")+T,null!=w&&2===w.length){for(A=0,S=w[1],k=0;k!=S.length&&!((y=S.charCodeAt(k)-64)<1||y>26);++k)A=26*A+y;C=--A}else++C;for(k=0;k!=T.length&&62!==T.charCodeAt(k);++k);if(++k,(p=ut(T.slice(0,k),!0)).r||(p.r=Mr({r:_-1,c:C})),d={t:""},null!=(w=(S=T.slice(k)).match(s))&&""!==w[1]&&(d.v=gt(w[1])),l.cellFormula){if(null!=(w=S.match(i))&&""!==w[1]){if(d.f=gt(_t(w[1])).replace(/\r\n/g,"\n"),l.xlfn||(d.f=$s(d.f)),w[0].indexOf('t="array"')>-1)d.F=(S.match(n)||[])[1],d.F.indexOf(":")>-1&&I.push([Ur(d.F),d.F]);else if(w[0].indexOf('t="shared"')>-1){g=ut(w[0]);var j=gt(_t(w[1]));l.xlfn||(j=$s(j)),N[parseInt(g.si,10)]=[g,j,p.r]}}else(w=S.match(/]*\/>/))&&N[(g=ut(w[0])).si]&&(d.f=js(N[g.si][1],N[g.si][2],p.r));var $=Fr(p.r);for(k=0;k=I[k][0].s.r&&$.r<=I[k][0].e.r&&$.c>=I[k][0].s.c&&$.c<=I[k][0].e.c&&(d.F=I[k][1])}if(null==p.t&&void 0===d.v)if(d.f||d.F)d.v=0,d.t="n";else{if(!P)continue;d.t="z"}else d.t=p.t||"n";switch(f.s.c>C&&(f.s.c=C),f.e.c0&&(o["!rows"]=F)}}();var Ji=ra;function qi(e){return[Yr(e),aa(e),"n"]}var Zi=ra;var Qi=["left","right","top","bottom","header","footer"];function ec(e,t,r,a,n,s){var i=s||{"!type":"chart"};if(!e)return s;var c=0,o=0,l="A",f={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach((function(e){var t=function(e){var t,r=[],a=e.match(/^/);(e.match(/(.*?)<\/c:pt>/gm)||[]).forEach((function(e){var t=e.match(/(.*)<\/c:v><\/c:pt>/);t&&(r[+t[1]]=a?+t[2]:t[2])}));var n=gt((e.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/(.*?)<\/c:f>/gm)||[]).forEach((function(e){t=e.replace(/<.*?>/g,"")})),[r,n,t]}(e);f.s.r=f.s.c=0,f.e.c=c,l=Dr(c),t[0].forEach((function(e,r){i[l+Ir(r)]={t:"n",v:e,z:t[1]},o=r})),f.e.r0&&(i["!ref"]=Pr(f)),i}var tc=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],rc=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],ac=[],nc=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function sc(e,t){for(var r=0;r!=e.length;++r)for(var a=e[r],n=0;n!=t.length;++n){var s=t[n];if(null==a[s[0]])a[s[0]]=s[1];else switch(s[2]){case"bool":"string"==typeof a[s[0]]&&(a[s[0]]=wt(a[s[0]]));break;case"int":"string"==typeof a[s[0]]&&(a[s[0]]=parseInt(a[s[0]],10))}}}function ic(e,t){for(var r=0;r!=t.length;++r){var a=t[r];if(null==e[a[0]])e[a[0]]=a[1];else switch(a[2]){case"bool":"string"==typeof e[a[0]]&&(e[a[0]]=wt(e[a[0]]));break;case"int":"string"==typeof e[a[0]]&&(e[a[0]]=parseInt(e[a[0]],10))}}}function cc(e){ic(e.WBProps,tc),ic(e.CalcPr,nc),sc(e.WBView,rc),sc(e.Sheets,ac),Di.date1904=wt(e.WBProps.date1904)}var oc="][*?/\\".split("");function lc(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return oc.forEach((function(a){if(-1!=e.indexOf(a)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}})),r}var fc=/<\w+:workbook/;function hc(e,t){var r={};return e.read_shift(4),r.ArchID=e.read_shift(4),e.l+=t-8,r}function uc(e,t,r){return".bin"===t.slice(-4)?function(e,t){var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},a=[],n=!1;t||(t={}),t.biff=12;var s=[],i=[[]];return i.SheetNames=[],i.XTI=[],zc[16]={n:"BrtFRTArchID$",f:hc},yr(e,(function(e,c,o){switch(o){case 156:i.SheetNames.push(e.name),r.Sheets.push(e);break;case 153:r.WBProps=e;break;case 39:null!=e.Sheet&&(t.SID=e.Sheet),e.Ref=bi(e.Ptg,0,null,i,t),delete t.SID,delete e.Ptg,s.push(e);break;case 1036:case 361:case 2071:case 158:case 143:case 664:case 353:case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:case 16:break;case 357:case 358:case 355:case 667:i[0].length?i.push([o,e]):i[0]=[o,e],i[i.length-1].XTI=[];break;case 362:0===i.length&&(i[0]=[],i[0].XTI=[]),i[i.length-1].XTI=i[i.length-1].XTI.concat(e),i.XTI=i.XTI.concat(e);break;case 35:case 37:a.push(o),n=!0;break;case 36:case 38:a.pop(),n=!1;break;default:if(c.T);else if(!n||t.WTF&&37!=a[a.length-1]&&35!=a[a.length-1])throw new Error("Unexpected record 0x"+o.toString(16))}}),t),cc(r),r.Names=s,r.supbooks=i,r}(e,r):function(e,t){if(!e)throw new Error("Could not find file");var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},a=!1,n="xmlns",s={},i=0;if(e.replace(lt,(function(c,o){var l=ut(c);switch(dt(l[0])){case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":tc.forEach((function(e){if(null!=l[e[0]])switch(e[2]){case"bool":r.WBProps[e[0]]=wt(l[e[0]]);break;case"int":r.WBProps[e[0]]=parseInt(l[e[0]],10);break;default:r.WBProps[e[0]]=l[e[0]]}})),l.codeName&&(r.WBProps.CodeName=_t(l.codeName));break;case"":delete l[0],r.WBView.push(l);break;case"":case"":a=!0;break;case"":case"":case"":a=!1;break;case"":s.Ref=gt(_t(e.slice(i,o))),r.Names.push(s);break;case"":delete l[0],r.CalcPr=l;break;default:if(!a&&t.WTF)throw new Error("unrecognized "+l[0]+" in workbook")}return c})),-1===Ht.indexOf(r.xmlns))throw new Error("Unknown Namespace: "+r.xmlns);return cc(r),r}(e,r)}function dc(e,t,r,a,n,s,i,c){return".bin"===t.slice(-4)?function(e,t,r,a,n,s,i){if(!e)return e;var c=t||{};a||(a={"!id":{}}),null!=T&&null==c.dense&&(c.dense=T);var o,l,f,h,u,d,p,m,g,v,b=c.dense?[]:{},E={s:{r:2e6,c:2e6},e:{r:0,c:0}},w=[],A=!1,k=!1,y=[];c.biff=12,c["!row"]=0;var S=0,_=!1,C=[],R={},O=c.supbooks||n.supbooks||[[]];if(O.sharedf=R,O.arrayf=C,O.SheetNames=n.SheetNames||n.Sheets.map((function(e){return e.name})),!c.supbooks&&(c.supbooks=O,n.Names))for(var x=0;x=x[0].s.r&&l.r<=x[0].e.r&&d>=x[0].s.c&&d<=x[0].e.c&&(f.F=Pr(x[0]),_=!0)}!_&&e.length>3&&(f.f=e[3])}if(E.s.r>l.r&&(E.s.r=l.r),E.s.c>d&&(E.s.c=d),E.e.rl.r&&(E.s.r=l.r),E.s.c>d&&(E.s.c=d),E.e.r=e.s;)D[e.e--]={width:e.w/256,hidden:!!(1&e.flags),level:e.level},M||(M=!0,ms(e.w/256)),gs(D[e.e+1]);break;case 161:b["!autofilter"]={ref:Pr(e)};break;case 476:b["!margins"]=e;break;case 147:n.Sheets[r]||(n.Sheets[r]={}),e.name&&(n.Sheets[r].CodeName=e.name),(e.above||e.left)&&(b["!outline"]={above:e.above,left:e.left});break;case 137:n.Views||(n.Views=[{}]),n.Views[0]||(n.Views[0]={}),e.RTL&&(n.Views[0].RTL=!0);break;case 485:case 64:case 1053:case 151:case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:A=!0;break;case 36:A=!1;break;case 37:w.push(T),A=!0;break;case 38:w.pop(),A=!1;break;default:if(t.T);else if(!A||c.WTF)throw new Error("Unexpected record 0x"+T.toString(16))}}),c),delete c.supbooks,delete c["!row"],!b["!ref"]&&(E.s.r<2e6||o&&(o.e.r>0||o.e.c>0||o.s.r>0||o.s.c>0))&&(b["!ref"]=Pr(o||E)),c.sheetRows&&b["!ref"]){var L=Ur(b["!ref"]);c.sheetRows<=+L.e.r&&(L.e.r=c.sheetRows-1,L.e.r>E.e.r&&(L.e.r=E.e.r),L.e.rE.e.c&&(L.e.c=E.e.c),L.e.c0&&(b["!merges"]=y),D.length>0&&(b["!cols"]=D),F.length>0&&(b["!rows"]=F),b}(e,a,r,n,s,i,c):$i(e,a,r,n,s,i,c)}function pc(e,t,r,a,n,s,i,c){return".bin"===t.slice(-4)?function(e,t,r,a,n){if(!e)return e;a||(a={"!id":{}});var s={"!type":"chart","!drawel":null,"!rel":""},i=[],c=!1;return yr(e,(function(e,a,o){switch(o){case 550:s["!rel"]=e;break;case 651:n.Sheets[r]||(n.Sheets[r]={}),e.name&&(n.Sheets[r].CodeName=e.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:c=!0;break;case 36:c=!1;break;case 37:i.push(o);break;case 38:i.pop();break;default:if(a.T>0)i.push(o);else if(a.T<0)i.pop();else if(!c||t.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}}),t),a["!id"][s["!rel"]]&&(s["!drawel"]=a["!id"][s["!rel"]]),s}(e,a,r,n,s):function(e,t,r,a,n){if(!e)return e;a||(a={"!id":{}});var s,i={"!type":"chart","!drawel":null,"!rel":""},c=e.match(Vi);return c&&Xi(c[0],0,n,r),(s=e.match(/drawing r:id="(.*?)"/))&&(i["!rel"]=s[1]),a["!id"][i["!rel"]]&&(i["!drawel"]=a["!id"][i["!rel"]]),i}(e,0,r,n,s)}function mc(e,t,r,a){return".bin"===t.slice(-4)?function(e,t,r){var a={NumberFmt:[]};for(var n in W)a.NumberFmt[n]=W[n];a.CellXf=[],a.Fonts=[];var s=[],i=!1;return yr(e,(function(e,n,c){switch(c){case 44:a.NumberFmt[e[0]]=e[1],Ae(e[1],e[0]);break;case 43:a.Fonts.push(e),null!=e.color.theme&&t&&t.themeElements&&t.themeElements.clrScheme&&(e.color.rgb=is(t.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0));break;case 1025:case 45:case 46:case 48:case 507:case 572:case 475:case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 47:617==s[s.length-1]&&a.CellXf.push(e);break;case 35:i=!0;break;case 36:i=!1;break;case 37:s.push(c),i=!0;break;case 38:s.pop(),i=!1;break;default:if(n.T>0)s.push(c);else if(n.T<0)s.pop();else if(!i||r.WTF&&37!=s[s.length-1])throw new Error("Unexpected record 0x"+c.toString(16))}})),a}(e,r,a):ks(e,r,a)}function gc(e,t,r){return".bin"===t.slice(-4)?function(e,t){var r=[],a=!1;return yr(e,(function(e,n,s){switch(s){case 159:r.Count=e[0],r.Unique=e[1];break;case 19:r.push(e);break;case 160:return!0;case 35:a=!0;break;case 36:a=!1;break;default:if(n.T,!a||t.WTF)throw new Error("Unexpected record 0x"+s.toString(16))}})),r}(e,r):function(e,t){var r=[],a="";if(!e)return r;var n=e.match(Wn);if(n){a=n[2].replace(Vn,"").split(Gn);for(var s=0;s!=a.length;++s){var i=zn(a[s].trim(),t);null!=i&&(r[r.length]=i)}n=ut(n[1]),r.Count=n.count,r.Unique=n.uniqueCount}return r}(e,r)}function vc(e,t,r){return".bin"===t.slice(-4)?function(e,t){var r=[],a=[],n={},s=!1;return yr(e,(function(e,i,c){switch(c){case 632:a.push(e);break;case 635:n=e;break;case 637:n.t=e.t,n.h=e.h,n.r=e.r;break;case 636:if(n.author=a[n.iauthor],delete n.iauthor,t.sheetRows&&n.rfx&&t.sheetRows<=n.rfx.r)break;n.t||(n.t=""),delete n.rfx,r.push(n);break;case 3072:case 37:case 38:break;case 35:s=!0;break;case 36:s=!1;break;default:if(i.T);else if(!s||t.WTF)throw new Error("Unexpected record 0x"+c.toString(16))}})),r}(e,r):function(e,t){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var r=[],a=[],n=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);n&&n[1]&&n[1].split(/<\/\w*:?author>/).forEach((function(e){if(""!==e&&""!==e.trim()){var t=e.match(/<(?:\w+:)?author[^>]*>(.*)/);t&&r.push(t[1])}}));var s=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return s&&s[1]&&s[1].split(/<\/\w*:?comment>/).forEach((function(e){if(""!==e&&""!==e.trim()){var n=e.match(/<(?:\w+:)?comment[^>]*>/);if(n){var s=ut(n[0]),i={author:s.authorId&&r[s.authorId]||"sheetjsghost",ref:s.ref,guid:s.guid},c=Fr(s.ref);if(!(t.sheetRows&&t.sheetRows<=c.r)){var o=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),l=!!o&&!!o[1]&&zn(o[1])||{r:"",t:"",h:""};i.r=l.r,""==l.r&&(l.t=l.h=""),i.t=(l.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),t.cellHTML&&(i.h=l.h),a.push(i)}}}})),a}(e,r)}function bc(e,t,r){return".bin"===t.slice(-4)?function(e){var t=[];return yr(e,(function(e,r,a){if(63===a)t.push(e);else if(!r.T)throw new Error("Unexpected record 0x"+a.toString(16))})),t}(e):function(e){var t=[];if(!e)return t;var r=1;return(e.match(lt)||[]).forEach((function(e){var a=ut(e);switch(a[0]){case"":case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":break;case"":case"":i=2;break;case"":s=!1;break;case"-1?gt(t||e).replace(/<.*?>/g,""):a.r;break;case"DateTime":"Z"!=e.slice(-1)&&(e+="Z"),a.v=(ze(e)-new Date(Date.UTC(1899,11,30)))/864e5,a.v!==a.v?a.v=gt(e):a.v<60&&(a.v=a.v-1),f&&"General"!=f||(f="yyyy-mm-dd");case"Number":void 0===a.v&&(a.v=+e),a.t||(a.t="n");break;case"Error":a.t="e",a.v=ba[e],!1!==l.cellText&&(a.w=e);break;default:""==e&&""==t?a.t="z":(a.t="s",a.v=Et(t||e))}if(Cc(a,f,l),!1!==l.cellFormula)if(a.Formula){var m=gt(a.Formula);61==m.charCodeAt(0)&&(m=m.slice(1)),a.f=zs(m,n),delete a.Formula,"RC"==a.ArrayRange?a.F=zs("RC:RC",n):a.ArrayRange&&(a.F=zs(a.ArrayRange,n),o.push([Ur(a.F),a.F]))}else for(p=0;p=o[p][0].s.r&&n.r<=o[p][0].e.r&&n.c>=o[p][0].s.c&&n.c<=o[p][0].e.c&&(a.F=o[p][1]);l.cellStyles&&(d.forEach((function(e){!u.patternType&&e.patternType&&(u.patternType=e.patternType)})),a.s=u),void 0!==a.StyleID&&(a.ixfe=a.StyleID)}function xc(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.v=e.w=e.ixfe=void 0}function Ic(e,t){var r=t||{};ke();var a=g(Pt(e));"binary"!=r.type&&"array"!=r.type&&"base64"!=r.type||(a="undefined"!==typeof m?m.utils.decode(65001,d(a)):_t(a));var n,s=a.slice(0,1024).toLowerCase(),i=!1;if((1023&(s=s.replace(/".*?"/g,"")).indexOf(">"))>Math.min(1023&s.indexOf(","),1023&s.indexOf(";"))){var c=Ve(r);return c.type="string",Fn.to_workbook(a,c)}if(-1==s.indexOf("=0&&(i=!0)})),i)return function(e,t){var r=e.match(/[\s\S]*?<\/table>/gi);if(!r||0==r.length)throw new Error("Invalid HTML: could not find ");if(1==r.length)return zr(Gc(r[0],t),t);var a={SheetNames:[],Sheets:{}};return r.forEach((function(e,r){Vo(a,Gc(e,t),"Sheet"+(r+1))})),a}(a,r);wc={"General Number":"General","General Date":W[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":W[15],"Short Date":W[14],"Long Time":W[19],"Medium Time":W[18],"Short Time":W[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:W[2],Standard:W[4],Percent:W[10],Scientific:W[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var o,l=[];null!=T&&null==r.dense&&(r.dense=T);var f,h={},u=[],p=r.dense?[]:{},v="",b={},E={},w=yc(''),A=0,k=0,y=0,S={s:{r:2e6,c:2e6},e:{r:0,c:0}},_={},C={},R="",O=0,x=[],I={},N={},D=0,F=[],M=[],L={},P=[],U=!1,B=[],H=[],z={},V=0,G=0,j={Sheets:[],WBProps:{date1904:!1}},$={};Ut.lastIndex=0,a=a.replace(//gm,"");for(var X="";n=Ut.exec(a);)switch(n[3]=(X=n[3]).toLowerCase()){case"data":if("data"==X){if("/"===n[1]){if((o=l.pop())[0]!==n[3])throw new Error("Bad state: "+o.join("|"))}else"/"!==n[0].charAt(n[0].length-2)&&l.push([n[3],!0]);break}if(l[l.length-1][1])break;"/"===n[1]?Oc(a.slice(A,n.index),R,w,"comment"==l[l.length-1][0]?L:b,{c:k,r:y},_,P[k],E,B,r):(R="",w=yc(n[0]),A=n.index+n[0].length);break;case"cell":if("/"===n[1])if(M.length>0&&(b.c=M),(!r.sheetRows||r.sheetRows>y)&&void 0!==b.v&&(r.dense?(p[y]||(p[y]=[]),p[y][k]=b):p[Dr(k)+Ir(y)]=b),b.HRef&&(b.l={Target:gt(b.HRef)},b.HRefScreenTip&&(b.l.Tooltip=b.HRefScreenTip),delete b.HRef,delete b.HRefScreenTip),(b.MergeAcross||b.MergeDown)&&(V=k+(0|parseInt(b.MergeAcross,10)),G=y+(0|parseInt(b.MergeDown,10)),x.push({s:{c:k,r:y},e:{c:V,r:G}})),r.sheetStubs)if(b.MergeAcross||b.MergeDown){for(var K=k;K<=V;++K)for(var Y=y;Y<=G;++Y)(K>k||Y>y)&&(r.dense?(p[Y]||(p[Y]=[]),p[Y][K]={t:"z"}):p[Dr(K)+Ir(Y)]={t:"z"});k=V+1}else++k;else b.MergeAcross?k=V+1:++k;else(b=Sc(n[0])).Index&&(k=+b.Index-1),kS.e.c&&(S.e.c=k),"/>"===n[0].slice(-2)&&++k,M=[];break;case"row":"/"===n[1]||"/>"===n[0].slice(-2)?(yS.e.r&&(S.e.r=y),"/>"===n[0].slice(-2)&&(E=yc(n[0])).Index&&(y=+E.Index-1),k=0,++y):((E=yc(n[0])).Index&&(y=+E.Index-1),z={},("0"==E.AutoFitHeight||E.Height)&&(z.hpx=parseInt(E.Height,10),z.hpt=bs(z.hpx),H[y]=z),"1"==E.Hidden&&(z.hidden=!0,H[y]=z));break;case"worksheet":if("/"===n[1]){if((o=l.pop())[0]!==n[3])throw new Error("Bad state: "+o.join("|"));u.push(v),S.s.r<=S.e.r&&S.s.c<=S.e.c&&(p["!ref"]=Pr(S),r.sheetRows&&r.sheetRows<=S.e.r&&(p["!fullref"]=p["!ref"],S.e.r=r.sheetRows-1,p["!ref"]=Pr(S))),x.length&&(p["!merges"]=x),P.length>0&&(p["!cols"]=P),H.length>0&&(p["!rows"]=H),h[v]=p}else S={s:{r:2e6,c:2e6},e:{r:0,c:0}},y=k=0,l.push([n[3],!1]),o=yc(n[0]),v=gt(o.Name),p=r.dense?[]:{},x=[],B=[],H=[],$={name:v,Hidden:0},j.Sheets.push($);break;case"table":if("/"===n[1]){if((o=l.pop())[0]!==n[3])throw new Error("Bad state: "+o.join("|"))}else{if("/>"==n[0].slice(-2))break;l.push([n[3],!1]),P=[],U=!1}break;case"style":"/"===n[1]?Rc(_,C,r):C=yc(n[0]);break;case"numberformat":C.nf=gt(yc(n[0]).Format||"General"),wc[C.nf]&&(C.nf=wc[C.nf]);for(var J=0;392!=J&&W[J]!=C.nf;++J);if(392==J)for(J=57;392!=J;++J)if(null==W[J]){Ae(C.nf,J);break}break;case"column":if("table"!==l[l.length-1][0])break;if((f=yc(n[0])).Hidden&&(f.hidden=!0,delete f.Hidden),f.Width&&(f.wpx=parseInt(f.Width,10)),!U&&f.wpx>10){U=!0,fs=cs;for(var q=0;q0&&(ee.Sheet=j.Sheets.length-1),j.Names.push(ee);break;case"namedcell":case"b":case"i":case"u":case"s":case"em":case"h2":case"h3":case"sub":case"sup":case"span":case"alignment":case"borders":case"border":case"protection":case"paragraphs":case"name":case"pixelsperinch":case"null":break;case"font":if("/>"===n[0].slice(-2))break;"/"===n[1]?R+=a.slice(O,n.index):O=n.index+n[0].length;break;case"interior":if(!r.cellStyles)break;C.Interior=yc(n[0]);break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if("/>"===n[0].slice(-2))break;"/"===n[1]?Na(I,X,a.slice(D,n.index)):D=n.index+n[0].length;break;case"styles":case"workbook":if("/"===n[1]){if((o=l.pop())[0]!==n[3])throw new Error("Bad state: "+o.join("|"))}else l.push([n[3],!1]);break;case"comment":if("/"===n[1]){if((o=l.pop())[0]!==n[3])throw new Error("Bad state: "+o.join("|"));xc(L),M.push(L)}else l.push([n[3],!1]),L={a:(o=yc(n[0])).Author};break;case"autofilter":if("/"===n[1]){if((o=l.pop())[0]!==n[3])throw new Error("Bad state: "+o.join("|"))}else if("/"!==n[0].charAt(n[0].length-2)){var te=yc(n[0]);p["!autofilter"]={ref:zs(te.Range).replace(/\$/g,"")},l.push([n[3],!0])}break;case"datavalidation":if("/"===n[1]){if((o=l.pop())[0]!==n[3])throw new Error("Bad state: "+o.join("|"))}else"/"!==n[0].charAt(n[0].length-2)&&l.push([n[3],!0]);break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if("/"===n[1]){if((o=l.pop())[0]!==n[3])throw new Error("Bad state: "+o.join("|"))}else"/"!==n[0].charAt(n[0].length-2)&&l.push([n[3],!0]);break;default:if(0==l.length&&"document"==n[3])return ao(a,r);if(0==l.length&&"uof"==n[3])return ao(a,r);var re=!0;switch(l[l.length-1][0]){case"officedocumentsettings":switch(n[3]){case"allowpng":case"removepersonalinformation":case"downloadcomponents":case"locationofcomponents":case"colors":case"color":case"index":case"rgb":case"targetscreensize":case"readonlyrecommended":break;default:re=!1}break;case"componentoptions":switch(n[3]){case"toolbar":case"hideofficelogo":case"spreadsheetautofit":case"label":case"caption":case"maxheight":case"maxwidth":case"nextsheetnumber":break;default:re=!1}break;case"excelworkbook":switch(n[3]){case"date1904":j.WBProps.date1904=!0;break;case"windowheight":case"windowwidth":case"windowtopx":case"windowtopy":case"tabratio":case"protectstructure":case"protectwindow":case"protectwindows":case"activesheet":case"displayinknotes":case"firstvisiblesheet":case"supbook":case"sheetname":case"sheetindex":case"sheetindexfirst":case"sheetindexlast":case"dll":case"acceptlabelsinformulas":case"donotsavelinkvalues":case"iteration":case"maxiterations":case"maxchange":case"path":case"xct":case"count":case"selectedsheets":case"calculation":case"uncalced":case"startupprompt":case"crn":case"externname":case"formula":case"colfirst":case"collast":case"wantadvise":case"boolean":case"error":case"text":case"ole":case"noautorecover":case"publishobjects":case"donotcalculatebeforesave":case"number":case"refmoder1c1":case"embedsavesmarttags":break;default:re=!1}break;case"workbookoptions":switch(n[3]){case"owcversion":case"height":case"width":break;default:re=!1}break;case"worksheetoptions":switch(n[3]){case"visible":if("/>"===n[0].slice(-2));else if("/"===n[1])switch(a.slice(D,n.index)){case"SheetHidden":$.Hidden=1;break;case"SheetVeryHidden":$.Hidden=2}else D=n.index+n[0].length;break;case"header":p["!margins"]||Fi(p["!margins"]={},"xlml"),isNaN(+ut(n[0]).Margin)||(p["!margins"].header=+ut(n[0]).Margin);break;case"footer":p["!margins"]||Fi(p["!margins"]={},"xlml"),isNaN(+ut(n[0]).Margin)||(p["!margins"].footer=+ut(n[0]).Margin);break;case"pagemargins":var ae=ut(n[0]);p["!margins"]||Fi(p["!margins"]={},"xlml"),isNaN(+ae.Top)||(p["!margins"].top=+ae.Top),isNaN(+ae.Left)||(p["!margins"].left=+ae.Left),isNaN(+ae.Right)||(p["!margins"].right=+ae.Right),isNaN(+ae.Bottom)||(p["!margins"].bottom=+ae.Bottom);break;case"displayrighttoleft":j.Views||(j.Views=[]),j.Views[0]||(j.Views[0]={}),j.Views[0].RTL=!0;break;case"freezepanes":case"frozennosplit":case"splithorizontal":case"splitvertical":case"donotdisplaygridlines":case"activerow":case"activecol":case"toprowbottompane":case"leftcolumnrightpane":case"unsynced":case"print":case"printerrors":case"panes":case"scale":case"pane":case"number":case"layout":case"pagesetup":case"selected":case"protectobjects":case"enableselection":case"protectscenarios":case"validprinterinfo":case"horizontalresolution":case"verticalresolution":case"numberofcopies":case"activepane":case"toprowvisible":case"leftcolumnvisible":case"fittopage":case"rangeselection":case"papersizeindex":case"pagelayoutzoom":case"pagebreakzoom":case"filteron":case"fitwidth":case"fitheight":case"commentslayout":case"zoom":case"lefttoright":case"gridlines":case"allowsort":case"allowfilter":case"allowinsertrows":case"allowdeleterows":case"allowinsertcols":case"allowdeletecols":case"allowinserthyperlinks":case"allowformatcells":case"allowsizecols":case"allowsizerows":case"tabcolorindex":case"donotdisplayheadings":case"showpagelayoutzoom":case"blackandwhite":case"donotdisplayzeros":case"displaypagebreak":case"rowcolheadings":case"donotdisplayoutline":case"noorientation":case"allowusepivottables":case"zeroheight":case"viewablerange":case"selection":case"protectcontents":break;case"nosummaryrowsbelowdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].above=!0;break;case"nosummarycolumnsrightdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].left=!0;break;default:re=!1}break;case"pivottable":case"pivotcache":switch(n[3]){case"immediateitemsondrop":case"showpagemultipleitemlabel":case"compactrowindent":case"location":case"pivotfield":case"orientation":case"layoutform":case"layoutsubtotallocation":case"layoutcompactrow":case"position":case"pivotitem":case"datatype":case"datafield":case"sourcename":case"parentfield":case"ptlineitems":case"ptlineitem":case"countofsameitems":case"item":case"itemtype":case"ptsource":case"cacheindex":case"consolidationreference":case"filename":case"reference":case"nocolumngrand":case"norowgrand":case"blanklineafteritems":case"hidden":case"subtotal":case"basefield":case"mapchilditems":case"function":case"refreshonfileopen":case"printsettitles":case"mergelabels":case"defaultversion":case"refreshname":case"refreshdate":case"refreshdatecopy":case"versionlastrefresh":case"versionlastupdate":case"versionupdateablemin":case"versionrefreshablemin":case"calculation":break;default:re=!1}break;case"pagebreaks":switch(n[3]){case"colbreaks":case"colbreak":case"rowbreaks":case"rowbreak":case"colstart":case"colend":case"rowend":break;default:re=!1}break;case"autofilter":switch(n[3]){case"autofiltercolumn":case"autofiltercondition":case"autofilterand":case"autofilteror":break;default:re=!1}break;case"querytable":switch(n[3]){case"id":case"autoformatfont":case"autoformatpattern":case"querysource":case"querytype":case"enableredirections":case"refreshedinxl9":case"urlstring":case"htmltables":case"connection":case"commandtext":case"refreshinfo":case"notitles":case"nextid":case"columninfo":case"overwritecells":case"donotpromptforfile":case"textwizardsettings":case"source":case"number":case"decimal":case"thousandseparator":case"trailingminusnumbers":case"formatsettings":case"fieldtype":case"delimiters":case"tab":case"comma":case"autoformatname":case"versionlastedit":case"versionlastrefresh":break;default:re=!1}break;case"datavalidation":switch(n[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":case"cellrangelist":break;default:re=!1}break;case"sorting":case"conditionalformatting":switch(n[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"cellrangelist":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":break;default:re=!1}break;case"mapinfo":case"schema":case"data":switch(n[3]){case"map":case"entry":case"range":case"xpath":case"field":case"xsdtype":case"filteron":case"aggregate":case"elementtype":case"attributetype":case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":case"row":break;default:re=!1}break;case"smarttags":break;default:re=!1}if(re)break;if(n[3].match(/!\[CDATA/))break;if(!l[l.length-1][1])throw"Unrecognized tag: "+n[3]+"|"+l.join("|");if("customdocumentproperties"===l[l.length-1][0]){if("/>"===n[0].slice(-2))break;"/"===n[1]?_c(N,X,F,a.slice(D,n.index)):(F=n,D=n.index+n[0].length);break}if(r.WTF)throw"Unrecognized tag: "+n[3]+"|"+l.join("|")}var ne={};return r.bookSheets||r.bookProps||(ne.Sheets=h),ne.SheetNames=u,ne.Workbook=j,ne.SSF=Ve(W),ne.Props=I,ne.Custprops=N,ne}function Nc(e,t){switch(So(t=t||{}),t.type||"base64"){case"base64":return Ic(A(e),t);case"binary":case"buffer":case"file":return Ic(e,t);case"array":return Ic(R(e),t)}}function Dc(e){var t={},r=e.content;if(r.l=28,t.AnsiUserType=r.read_shift(0,"lpstr-ansi"),t.AnsiClipboardFormat=function(e){return na(e,1)}(r),r.length-r.l<=4)return t;var a=r.read_shift(4);return 0==a||a>40?t:(r.l-=4,t.Reserved1=r.read_shift(0,"lpstr-ansi"),r.length-r.l<=4||1907505652!==(a=r.read_shift(4))?t:(t.UnicodeClipboardFormat=function(e){return na(e,2)}(r),0==(a=r.read_shift(4))||a>40?t:(r.l-=4,void(t.Reserved2=r.read_shift(0,"lpwstr")))))}var Fc=[60,1084,2066,2165,2175];function Mc(e,t,r,a,n){var s=a,i=[],c=r.slice(r.l,r.l+s);if(n&&n.enc&&n.enc.insitu&&c.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:case 133:break;default:n.enc.insitu(c)}i.push(c),r.l+=s;for(var o=fr(r,r.l),l=Wc[o],f=0;null!=l&&Fc.indexOf(o)>-1;)s=fr(r,r.l+2),f=r.l+4,2066==o?f+=4:2165!=o&&2175!=o||(f+=12),c=r.slice(f,r.l+4+s),i.push(c),r.l+=4+s,l=Wc[o=fr(r,r.l)];var h=x(i);wr(h,0);var u=0;h.lens=[];for(var d=0;d1)&&!(r.sheetRows&&e.r>=r.sheetRows)){if(r.cellStyles&&t.XF&&t.XF.data&&function(e,t,r){var a,n=t.XF.data;n&&n.patternType&&r&&r.cellStyles&&(t.s={},t.s.patternType=n.patternType,(a=ss(R(n.icvFore)))&&(t.s.fgColor={rgb:a}),(a=ss(R(n.icvBack)))&&(t.s.bgColor={rgb:a}))}(0,t,r),delete t.ixfe,delete t.XF,n=e,w=Mr(e),m&&m.s&&m.e||(m={s:{r:0,c:0},e:{r:0,c:0}}),e.rm.e.r&&(m.e.r=e.r+1),e.c+1>m.e.c&&(m.e.c=e.c+1),r.cellFormula&&t.f)for(var a=0;ae.c||k[a][0].s.r>e.r)&&!(k[a][0].e.c>8)!==$)throw new Error("rt mismatch: "+Y+"!="+$);12==K.r&&(e.l+=10,X-=10)}var J={};if(J=10===$?K.f(e,X,x):Mc($,K,e,X,x),0==B&&-1===[9,521,1033,2057].indexOf(U))continue;switch($){case 34:r.opts.Date1904=_.WBProps.date1904=J;break;case 134:r.opts.WriteProtect=!0;break;case 47:if(x.enc||(e.l=0),x.enc=J,!t.password)throw new Error("File is password-protected");if(null==J.valid)throw new Error("Encryption scheme unsupported");if(!J.valid)throw new Error("Password is incorrect");break;case 92:x.lastuser=J;break;case 66:var q=Number(J);switch(q){case 21010:q=1200;break;case 32768:q=1e4;break;case 32769:q=1252}h(x.codepage=q),G=!0;break;case 317:x.rrtabid=J;break;case 25:x.winlocked=J;break;case 439:r.opts.RefreshAll=J;break;case 12:r.opts.CalcCount=J;break;case 16:r.opts.CalcDelta=J;break;case 17:r.opts.CalcIter=J;break;case 13:r.opts.CalcMode=J;break;case 14:r.opts.CalcPrecision=J;break;case 95:r.opts.CalcSaveRecalc=J;break;case 15:x.CalcRefMode=J;break;case 2211:r.opts.FullCalc=J;break;case 129:J.fDialog&&(d["!type"]="dialog"),J.fBelow||((d["!outline"]||(d["!outline"]={})).above=!0),J.fRight||((d["!outline"]||(d["!outline"]={})).left=!0);break;case 224:y.push(J);break;case 430:L.push([J]),L[L.length-1].XTI=[];break;case 35:case 547:L[L.length-1].push(J);break;case 24:case 536:P={Name:J.Name,Ref:bi(J.rgce,0,null,L,x)},J.itab>0&&(P.Sheet=J.itab-1),L.names.push(P),L[0]||(L[0]=[],L[0].XTI=[]),L[L.length-1].push(J),"_xlnm._FilterDatabase"==J.Name&&J.itab>0&&J.rgce&&J.rgce[0]&&J.rgce[0][0]&&"PtgArea3d"==J.rgce[0][0][0]&&(V[J.itab-1]={ref:Pr(J.rgce[0][0][1][2])});break;case 22:x.ExternCount=J;break;case 23:0==L.length&&(L[0]=[],L[0].XTI=[]),L[L.length-1].XTI=L[L.length-1].XTI.concat(J),L.XTI=L.XTI.concat(J);break;case 2196:if(x.biff<8)break;null!=P&&(P.Comment=J[1]);break;case 18:d["!protect"]=J;break;case 19:0!==J&&x.WTF&&console.error("Password verifier: "+J);break;case 133:p[J.pos]=J,x.snames.push(J.name);break;case 10:if(--B)break;if(m.e){if(m.e.r>0&&m.e.c>0){if(m.e.r--,m.e.c--,d["!ref"]=Pr(m),t.sheetRows&&t.sheetRows<=m.e.r){var Z=m.e.r;m.e.r=t.sheetRows-1,d["!fullref"]=d["!ref"],d["!ref"]=Pr(m),m.e.r=Z}m.e.r++,m.e.c++}I.length>0&&(d["!merges"]=I),N.length>0&&(d["!objects"]=N),D.length>0&&(d["!cols"]=D),F.length>0&&(d["!rows"]=F),_.Sheets.push(C)}""===b?E=d:a[b]=d,d=t.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(8===x.biff&&(x.biff={9:2,521:3,1033:4}[$]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[J.BIFFVer]||8),x.biffguess=0==J.BIFFVer,0==J.BIFFVer&&4096==J.dt&&(x.biff=5,G=!0,h(x.codepage=28591)),8==x.biff&&0==J.BIFFVer&&16==J.dt&&(x.biff=2),B++)break;if(d=t.dense?[]:{},x.biff<8&&!G&&(G=!0,h(x.codepage=t.codepage||1252)),x.biff<5||0==J.BIFFVer&&4096==J.dt){""===b&&(b="Sheet1"),m={s:{r:0,c:0},e:{r:0,c:0}};var Q={pos:e.l-X,name:b};p[Q.pos]=Q,x.snames.push(b)}else b=(p[j]||{name:""}).name;32==J.dt&&(d["!type"]="chart"),64==J.dt&&(d["!type"]="macro"),I=[],N=[],x.arrayf=k=[],D=[],F=[],M=!1,C={Hidden:(p[j]||{hs:0}).hs,name:b};break;case 515:case 3:case 2:"chart"==d["!type"]&&(t.dense?(d[J.r]||[])[J.c]:d[Mr({c:J.c,r:J.r})])&&++J.c,l={ixfe:J.ixfe,XF:y[J.ixfe]||{},v:J.val,t:"n"},H>0&&(l.z=z[l.ixfe>>8&63]),Lc(l,t,r.opts.Date1904),O({c:J.c,r:J.r},l,t);break;case 5:case 517:l={ixfe:J.ixfe,XF:y[J.ixfe],v:J.val,t:J.t},H>0&&(l.z=z[l.ixfe>>8&63]),Lc(l,t,r.opts.Date1904),O({c:J.c,r:J.r},l,t);break;case 638:l={ixfe:J.ixfe,XF:y[J.ixfe],v:J.rknum,t:"n"},H>0&&(l.z=z[l.ixfe>>8&63]),Lc(l,t,r.opts.Date1904),O({c:J.c,r:J.r},l,t);break;case 189:for(var ee=J.c;ee<=J.C;++ee){var te=J.rkrec[ee-J.c][0];l={ixfe:te,XF:y[te],v:J.rkrec[ee-J.c][1],t:"n"},H>0&&(l.z=z[l.ixfe>>8&63]),Lc(l,t,r.opts.Date1904),O({c:ee,r:J.r},l,t)}break;case 6:case 518:case 1030:if("String"==J.val){g=J;break}if((l=Pc(J.val,J.cell.ixfe,J.tt)).XF=y[l.ixfe],t.cellFormula){var re=J.formula;if(re&&re[0]&&re[0][0]&&"PtgExp"==re[0][0][0]){var ae=re[0][0][1][0],ne=re[0][0][1][1],se=Mr({r:ae,c:ne});A[se]?l.f=""+bi(J.formula,0,J.cell,L,x):l.F=((t.dense?(d[ae]||[])[ne]:d[se])||{}).F}else l.f=""+bi(J.formula,0,J.cell,L,x)}H>0&&(l.z=z[l.ixfe>>8&63]),Lc(l,t,r.opts.Date1904),O(J.cell,l,t),g=J;break;case 7:case 519:if(!g)throw new Error("String record expects Formula");g.val=J,(l=Pc(J,g.cell.ixfe,"s")).XF=y[l.ixfe],t.cellFormula&&(l.f=""+bi(g.formula,0,g.cell,L,x)),H>0&&(l.z=z[l.ixfe>>8&63]),Lc(l,t,r.opts.Date1904),O(g.cell,l,t),g=null;break;case 33:case 545:k.push(J);var ie=Mr(J[0].s);if(s=t.dense?(d[J[0].s.r]||[])[J[0].s.c]:d[ie],t.cellFormula&&s){if(!g)break;if(!ie||!s)break;s.f=""+bi(J[1],0,J[0],L,x),s.F=Pr(J[0])}break;case 1212:if(!t.cellFormula)break;if(w){if(!g)break;A[Mr(g.cell)]=J[0],((s=t.dense?(d[g.cell.r]||[])[g.cell.c]:d[Mr(g.cell)])||{}).f=""+bi(J[0],0,n,L,x)}break;case 253:l=Pc(v[J.isst].t,J.ixfe,"s"),v[J.isst].h&&(l.h=v[J.isst].h),l.XF=y[l.ixfe],H>0&&(l.z=z[l.ixfe>>8&63]),Lc(l,t,r.opts.Date1904),O({c:J.c,r:J.r},l,t);break;case 513:t.sheetStubs&&(l={ixfe:J.ixfe,XF:y[J.ixfe],t:"z"},H>0&&(l.z=z[l.ixfe>>8&63]),Lc(l,t,r.opts.Date1904),O({c:J.c,r:J.r},l,t));break;case 190:if(t.sheetStubs)for(var ce=J.c;ce<=J.C;++ce){var oe=J.ixfe[ce-J.c];l={ixfe:oe,XF:y[oe],t:"z"},H>0&&(l.z=z[l.ixfe>>8&63]),Lc(l,t,r.opts.Date1904),O({c:ce,r:J.r},l,t)}break;case 214:case 516:case 4:(l=Pc(J.val,J.ixfe,"s")).XF=y[l.ixfe],H>0&&(l.z=z[l.ixfe>>8&63]),Lc(l,t,r.opts.Date1904),O({c:J.c,r:J.r},l,t);break;case 0:case 512:1===B&&(m=J);break;case 252:v=J;break;case 1054:if(4==x.biff){z[H++]=J[1];for(var le=0;le=163&&Ae(J[1],H+163)}else Ae(J[1],J[0]);break;case 30:z[H++]=J;for(var fe=0;fe=163&&Ae(J,H+163);break;case 229:I=I.concat(J);break;case 93:N[J.cmo[0]]=x.lastobj=J;break;case 438:x.lastobj.TxO=J;break;case 127:x.lastobj.ImData=J;break;case 440:for(o=J[0].s.r;o<=J[0].e.r;++o)for(c=J[0].s.c;c<=J[0].e.c;++c)(s=t.dense?(d[o]||[])[c]:d[Mr({c:c,r:o})])&&(s.l=J[1]);break;case 2048:for(o=J[0].s.r;o<=J[0].e.r;++o)for(c=J[0].s.c;c<=J[0].e.c;++c)(s=t.dense?(d[o]||[])[c]:d[Mr({c:c,r:o})])&&s.l&&(s.l.Tooltip=J[1]);break;case 28:if(x.biff<=5&&x.biff>=2)break;s=t.dense?(d[J[0].r]||[])[J[0].c]:d[Mr(J[0])];var he=N[J[2]];s||(t.dense?(d[J[0].r]||(d[J[0].r]=[]),s=d[J[0].r][J[0].c]={t:"z"}):s=d[Mr(J[0])]={t:"z"},m.e.r=Math.max(m.e.r,J[0].r),m.s.r=Math.min(m.s.r,J[0].r),m.e.c=Math.max(m.e.c,J[0].c),m.s.c=Math.min(m.s.c,J[0].c)),s.c||(s.c=[]),i={a:J[1],t:he.TxO.t},s.c.push(i);break;case 2173:y[J.ixfe],J.ext.forEach((function(e){e[0]}));break;case 125:if(!x.cellStyles)break;for(;J.e>=J.s;)D[J.e--]={width:J.w/256,level:J.level||0,hidden:!!(1&J.flags)},M||(M=!0,ms(J.w/256)),gs(D[J.e+1]);break;case 520:var ue={};null!=J.level&&(F[J.r]=ue,ue.level=J.level),J.hidden&&(F[J.r]=ue,ue.hidden=!0),J.hpt&&(F[J.r]=ue,ue.hpt=J.hpt,ue.hpx=Ts(J.hpt));break;case 38:case 39:case 40:case 41:d["!margins"]||Fi(d["!margins"]={}),d["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[$]]=J;break;case 161:d["!margins"]||Fi(d["!margins"]={}),d["!margins"].header=J.header,d["!margins"].footer=J.footer;break;case 574:J.RTL&&(_.Views[0].RTL=!0);break;case 146:S=J;break;case 2198:u=J;break;case 140:f=J;break;case 442:b?C.CodeName=J||C.name:_.WBProps.CodeName=J||"ThisWorkbook"}}else K||console.error("Missing Info for XLS Record 0x"+$.toString(16)),e.l+=X}return r.SheetNames=Oe(p).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return p[e].name})),t.bookSheets||(r.Sheets=a),!r.SheetNames.length&&E["!ref"]?(r.SheetNames.push("Sheet1"),r.Sheets&&(r.Sheets.Sheet1=E)):r.Preamble=E,r.Sheets&&V.forEach((function(e,t){r.Sheets[r.SheetNames[t]]["!autofilter"]=e})),r.Strings=v,r.SSF=Ve(W),x.enc&&(r.Encryption=x.enc),u&&(r.Themes=u),r.Metadata={},void 0!==f&&(r.Metadata.Country=f),L.names.length>0&&(_.Names=L.names),r.Workbook=_,r}var Bc={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function Hc(e,t){var r,a,n,s;if(t||(t={}),So(t),u(),t.codepage&&f(t.codepage),e.FullPaths){if(Ce.find(e,"/encryption"))throw new Error("File is password-protected");r=Ce.find(e,"!CompObj"),a=Ce.find(e,"/Workbook")||Ce.find(e,"/Book")}else{switch(t.type){case"base64":e=C(A(e));break;case"binary":e=C(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e))}wr(e,0),a={content:e}}if(r&&Dc(r),t.bookProps&&!t.bookSheets)n={};else{var i=k?"buffer":"array";if(a&&a.content)n=Uc(a.content,t);else if((s=Ce.find(e,"PerfectOffice_MAIN"))&&s.content)n=Mn.to_workbook(s.content,(t.type=i,t));else{if(!(s=Ce.find(e,"NativeContent_MAIN"))||!s.content)throw(s=Ce.find(e,"MN0"))&&s.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");n=Mn.to_workbook(s.content,(t.type=i,t))}t.bookVBA&&e.FullPaths&&Ce.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(n.vbaraw=function(e){var t=Ce.utils.cfb_new({root:"R"});return e.FullPaths.forEach((function(r,a){if("/"!==r.slice(-1)&&r.match(/_VBA_PROJECT_CUR/)){var n=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Ce.utils.cfb_add(t,n,e.FileIndex[a].content)}})),Ce.write(t)}(e))}var c={};return e.FullPaths&&function(e,t,r){var a=Ce.find(e,"/!DocumentSummaryInformation");if(a&&a.size>0)try{var n=Va(a,ha,Bc.DSI);for(var s in n)t[s]=n[s]}catch(l){if(r.WTF)throw l}var i=Ce.find(e,"/!SummaryInformation");if(i&&i.size>0)try{var c=Va(i,ua,Bc.SI);for(var o in c)null==t[o]&&(t[o]=c[o])}catch(l){if(r.WTF)throw l}t.HeadingPairs&&t.TitlesOfParts&&(Ra(t.HeadingPairs,t.TitlesOfParts,t,r),delete t.HeadingPairs,delete t.TitlesOfParts)}(e,c,t),n.Props=n.Custprops=c,t.bookFiles&&(n.cfb=e),n}var zc={0:{f:function(e,t){var r={},a=e.l+t;r.r=e.read_shift(4),e.l+=4;var n=e.read_shift(2);e.l+=1;var s=e.read_shift(1);return e.l=a,7&s&&(r.level=7&s),16&s&&(r.hidden=!0),32&s&&(r.hpt=n/20),r}},1:{f:function(e){return[Kr(e)]}},2:{f:function(e){return[Kr(e),ea(e),"n"]}},3:{f:function(e){return[Kr(e),e.read_shift(1),"e"]}},4:{f:function(e){return[Kr(e),e.read_shift(1),"b"]}},5:{f:function(e){return[Kr(e),aa(e),"n"]}},6:{f:function(e){return[Kr(e),Gr(e),"str"]}},7:{f:function(e){return[Kr(e),e.read_shift(4),"s"]}},8:{f:function(e,t,r){var a=e.l+t,n=Kr(e);n.r=r["!row"];var s=[n,Gr(e),"str"];if(r.cellFormula){e.l+=2;var i=yi(e,a-e.l,r);s[3]=bi(i,0,n,r.supbooks,r)}else e.l=a;return s}},9:{f:function(e,t,r){var a=e.l+t,n=Kr(e);n.r=r["!row"];var s=[n,aa(e),"n"];if(r.cellFormula){e.l+=2;var i=yi(e,a-e.l,r);s[3]=bi(i,0,n,r.supbooks,r)}else e.l=a;return s}},10:{f:function(e,t,r){var a=e.l+t,n=Kr(e);n.r=r["!row"];var s=[n,e.read_shift(1),"b"];if(r.cellFormula){e.l+=2;var i=yi(e,a-e.l,r);s[3]=bi(i,0,n,r.supbooks,r)}else e.l=a;return s}},11:{f:function(e,t,r){var a=e.l+t,n=Kr(e);n.r=r["!row"];var s=[n,e.read_shift(1),"e"];if(r.cellFormula){e.l+=2;var i=yi(e,a-e.l,r);s[3]=bi(i,0,n,r.supbooks,r)}else e.l=a;return s}},12:{f:function(e){return[Yr(e)]}},13:{f:function(e){return[Yr(e),ea(e),"n"]}},14:{f:function(e){return[Yr(e),e.read_shift(1),"e"]}},15:{f:function(e){return[Yr(e),e.read_shift(1),"b"]}},16:{f:qi},17:{f:function(e){return[Yr(e),Gr(e),"str"]}},18:{f:function(e){return[Yr(e),e.read_shift(4),"s"]}},19:{f:$r},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(e,t,r){var a=e.l+t;e.l+=4,e.l+=1;var n=e.read_shift(4),s=Zr(e),i=Si(e,0,r),c=qr(e);e.l=a;var o={Name:s,Ptg:i};return n<268435455&&(o.Sheet=n),c&&(o.Comment=c),o}},40:{},42:{},43:{f:function(e,t,r){var a={};a.sz=e.read_shift(2)/20;var n=function(e){var t=e.read_shift(1);return e.l++,{fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t}}(e);switch(n.fItalic&&(a.italic=1),n.fCondense&&(a.condense=1),n.fExtend&&(a.extend=1),n.fShadow&&(a.shadow=1),n.fOutline&&(a.outline=1),n.fStrikeout&&(a.strike=1),700===e.read_shift(2)&&(a.bold=1),e.read_shift(2)){case 1:a.vertAlign="superscript";break;case 2:a.vertAlign="subscript"}var s=e.read_shift(1);0!=s&&(a.underline=s);var i=e.read_shift(1);i>0&&(a.family=i);var c=e.read_shift(1);switch(c>0&&(a.charset=c),e.l++,a.color=function(e){var t={},r=e.read_shift(1)>>>1,a=e.read_shift(1),n=e.read_shift(2,"i"),s=e.read_shift(1),i=e.read_shift(1),c=e.read_shift(1);switch(e.l++,r){case 0:t.auto=1;break;case 1:t.index=a;var o=ga[a];o&&(t.rgb=ss(o));break;case 2:t.rgb=ss([s,i,c]);break;case 3:t.theme=a}return 0!=n&&(t.tint=n>0?n/32767:n/32768),t}(e),e.read_shift(1)){case 1:a.scheme="major";break;case 2:a.scheme="minor"}return a.name=Gr(e),a}},44:{f:function(e,t){return[e.read_shift(2),Gr(e)]}},45:{f:ys},46:{f:Ss},47:{f:function(e,t){var r=e.l+t,a=e.read_shift(2),n=e.read_shift(2);return e.l=r,{ixfe:a,numFmtId:n}}},48:{},49:{f:function(e){return e.read_shift(4,"i")}},50:{},51:{f:function(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Sn},62:{f:function(e){return[Kr(e),$r(e),"is"]}},63:{f:function(e){var t={};t.i=e.read_shift(4);var r={};r.r=e.read_shift(4),r.c=e.read_shift(4),t.r=Mr(r);var a=e.read_shift(1);return 2&a&&(t.l="1"),8&a&&(t.a="1"),t}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Ar,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(e){var t=e.read_shift(2);return e.l+=28,{RTL:32&t}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(e,t){var r={},a=e[e.l];return++e.l,r.above=!(64&a),r.left=!(128&a),e.l+=18,r.name=Jr(e,t-19),r}},148:{f:Ji,p:16},151:{f:function(){}},152:{},153:{f:function(e,t){var r={},a=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var n=t>8?Gr(e):"";return n.length>0&&(r.CodeName=n),r.autoCompressPictures=!!(65536&a),r.backupFile=!!(64&a),r.checkCompatibility=!!(4096&a),r.date1904=!!(1&a),r.filterPrivacy=!!(8&a),r.hidePivotFieldList=!!(1024&a),r.promptedSolutions=!!(16&a),r.publishItems=!!(2048&a),r.refreshAllConnections=!!(262144&a),r.saveExternalLinkValues=!!(128&a),r.showBorderUnselectedTables=!!(4&a),r.showInkAnnotation=!!(32&a),r.showObjects=["all","placeholders","none"][a>>13&3],r.showPivotChartFilter=!!(32768&a),r.updateLinks=["userSet","never","always"][a>>8&3],r}},154:{},155:{},156:{f:function(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=Qr(e,t-8),r.name=Gr(e),r}},157:{},158:{},159:{T:1,f:function(e){return[e.read_shift(4),e.read_shift(4)]}},160:{T:-1},161:{T:1,f:ra},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Zi},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Gr(e)}}},336:{T:-1},337:{f:function(e){return e.l+=4,0!=e.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Qr},357:{},358:{},359:{},360:{T:1},361:{},362:{f:An},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(e,t,r){var a=e.l+t,n=ta(e),s=e.read_shift(1),i=[n];if(i[2]=s,r.cellFormula){var c=ki(e,a-e.l,r);i[1]=c}else e.l=a;return i}},427:{f:function(e,t,r){var a=e.l+t,n=[ra(e,16)];if(r.cellFormula){var s=_i(e,a-e.l,r);n[1]=s,e.l=a}else e.l=a;return n}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(e){var t={};return Qi.forEach((function(r){t[r]=aa(e)})),t}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(e,t){var r=e.l+t,a=ra(e,16),n=qr(e),s=Gr(e),i=Gr(e),c=Gr(e);e.l=r;var o={rfx:a,relId:n,loc:s,display:c};return i&&(o.Tooltip=i),o}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Qr},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Bs},633:{T:1},634:{T:-1},635:{T:1,f:function(e){var t={};t.iauthor=e.read_shift(4);var r=ra(e,16);return t.rfx=r.s,t.ref=Mr(r.s),e.l+=16,t}},636:{T:-1},637:{f:Xr},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(e,t){return e.l+=10,{name:Gr(e)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},Wc={6:{f:wi},10:{f:Ga},12:{f:$a},13:{f:$a},14:{f:ja},15:{f:ja},16:{f:aa},17:{f:ja},18:{f:ja},19:{f:$a},20:{f:bn},21:{f:bn},23:{f:An},24:{f:wn},25:{f:ja},26:{},27:{},28:{f:function(e,t,r){return function(e,t,r){if(!(r.biff<8)){var a=e.read_shift(2),n=e.read_shift(2),s=e.read_shift(2),i=e.read_shift(2),c=Za(e,0,r);return r.biff<8&&e.read_shift(1),[{r:a,c:n},c,i,s]}}(e,0,r)}},29:{},34:{f:ja},35:{f:Tn},38:{f:aa},39:{f:aa},40:{f:aa},41:{f:aa},42:{f:ja},43:{f:ja},47:{f:function(e,t,r){var a={Type:r.biff>=8?e.read_shift(2):0};return a.Type?as(e,t-2,a):function(e,t,r,a){var n={key:$a(e),verificationBytes:$a(e)};r.password&&(n.verifier=es(r.password)),a.valid=n.verificationBytes===n.verifier,a.valid&&(a.insitu=rs(r.password))}(e,r.biff,r,a),a}},49:{f:function(e,t,r){var a={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(r&&r.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10}return a.name=Ka(e,0,r),a}},51:{f:$a},60:{},61:{f:function(e){return{Pos:[e.read_shift(2),e.read_shift(2)],Dim:[e.read_shift(2),e.read_shift(2)],Flags:e.read_shift(2),CurTab:e.read_shift(2),FirstTab:e.read_shift(2),Selected:e.read_shift(2),TabRatio:e.read_shift(2)}}},64:{f:ja},65:{f:function(){}},66:{f:$a},77:{},80:{},81:{},82:{},85:{f:$a},89:{},90:{},91:{},92:{f:function(e,t,r){if(r.enc)return e.l+=t,"";var a=e.l,n=Za(e,0,r);return e.read_shift(t+a-e.l),n}},93:{f:function(e,t,r){if(r&&r.biff<8)return function(e,t,r){e.l+=4;var a=e.read_shift(2),n=e.read_shift(2),s=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var i=[];return i.push((yn[a]||Ar)(e,t,r)),{cmo:[n,a,s],ft:i}}(e,t,r);var a=fn(e),n=function(e,t){for(var r=e.l+t,a=[];e.l7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}},129:{f:function(e,t,r){var a=r&&8==r.biff||2==t?e.read_shift(2):(e.l+=t,0);return{fDialog:16&a,fBelow:64&a,fRight:128&a}}},130:{f:$a},131:{f:ja},132:{f:ja},133:{f:function(e,t,r){var a=e.read_shift(4),n=3&e.read_shift(1),s=e.read_shift(1);switch(s){case 0:s="Worksheet";break;case 1:s="Macrosheet";break;case 2:s="Chartsheet";break;case 6:s="VBAModule"}var i=Ka(e,0,r);return 0===i.length&&(i="Sheet1"),{pos:a,hs:n,dt:s,name:i}}},134:{},140:{f:function(e){var t,r=[0,0];return t=e.read_shift(2),r[0]=da[t]||t,t=e.read_shift(2),r[1]=da[t]||t,r}},141:{f:$a},144:{},146:{f:function(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(rn(e));return r}},151:{},152:{},153:{},154:{},155:{},156:{f:$a},157:{},158:{},160:{f:Cn},161:{f:function(e,t){var r={};return t<32||(e.l+=16,r.header=aa(e),r.footer=aa(e),e.l+=2),r}},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:function(e,t){for(var r=e.l+t-2,a=e.read_shift(2),n=e.read_shift(2),s=[];e.l>2&1,a.data=function(e,t,r,a){var n={},s=e.read_shift(4),i=e.read_shift(4),c=e.read_shift(4),o=e.read_shift(2);return n.patternType=pa[c>>26],a.cellStyles?(n.alc=7&s,n.fWrap=s>>3&1,n.alcV=s>>4&7,n.fJustLast=s>>7&1,n.trot=s>>8&255,n.cIndent=s>>16&15,n.fShrinkToFit=s>>20&1,n.iReadOrder=s>>22&2,n.fAtrNum=s>>26&1,n.fAtrFnt=s>>27&1,n.fAtrAlc=s>>28&1,n.fAtrBdr=s>>29&1,n.fAtrPat=s>>30&1,n.fAtrProt=s>>31&1,n.dgLeft=15&i,n.dgRight=i>>4&15,n.dgTop=i>>8&15,n.dgBottom=i>>12&15,n.icvLeft=i>>16&127,n.icvRight=i>>23&127,n.grbitDiag=i>>30&3,n.icvTop=127&c,n.icvBottom=c>>7&127,n.icvDiag=c>>14&127,n.dgDiag=c>>21&15,n.icvFore=127&o,n.icvBack=o>>7&127,n.fsxButton=o>>14&1,n):n}(e,0,a.fStyle,r),a}},225:{f:function(e,t){return 0===t||e.read_shift(2),1200}},226:{f:Ga},227:{},229:{f:function(e,t){for(var r=[],a=e.read_shift(2);a--;)r.push(cn(e));return r}},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:function(e,t){for(var r=e.l+t,a=e.read_shift(4),n=e.read_shift(4),s=[],i=0;i!=n&&e.l255)throw new Error("Unexpected SupBook type: "+s);for(var i=Ja(e,s),c=[];a>e.l;)c.push(qa(e));return[s,n,i,c]}},431:{f:ja},432:{},433:{},434:{},437:{},438:{f:function(e,t,r){var a=e.l,n="";try{e.l+=4;var s=(r.lastobj||{cmo:[0,0]}).cmo[1];-1==[0,5,7,11,12,14].indexOf(s)?e.l+=6:function(e){var t=e.read_shift(1);e.l++;var r=e.read_shift(2);return e.l+=2,[t,r]}(e);var i=e.read_shift(2);e.read_shift(2),$a(e);var c=e.read_shift(2);e.l+=c;for(var o=1;o=(l?i:2*i))break}if(n.length!==i&&n.length!==2*i)throw new Error("cchText: "+i+" != "+n.length);return e.l=a+t,{t:n}}catch(f){return e.l=a+t,{t:n}}}},439:{f:ja},440:{f:function(e,t){var r=cn(e);e.l+=16;var a=function(e,t){var r=e.l+t,a=e.read_shift(4);if(2!==a)throw new Error("Unrecognized streamVersion: "+a);var n=e.read_shift(2);e.l+=2;var s,i,c,o,l,f,h="";16&n&&(s=en(e,e.l)),128&n&&(i=en(e,e.l)),257===(257&n)&&(c=en(e,e.l)),1===(257&n)&&(o=Qa(e,e.l)),8&n&&(h=en(e,e.l)),32&n&&(l=e.read_shift(16)),64&n&&(f=Da(e)),e.l=r;var u=i||c||o||"";u&&h&&(u+="#"+h),u||(u="#"+h),2&n&&"/"==u.charAt(0)&&"/"!=u.charAt(1)&&(u="file://"+u);var d={Target:u};return l&&(d.guid=l),f&&(d.time=f),s&&(d.Tooltip=s),d}(e,t-24);return[r,a]}},441:{},442:{f:qa},443:{},444:{f:$a},445:{},446:{},448:{f:Ga},449:{f:function(e){return e.read_shift(2),e.read_shift(4)},r:2},450:{f:Ga},512:{f:gn},513:{f:_n},515:{f:function(e,t,r){r.biffguess&&2==r.biff&&(r.biff=5);var a=an(e),n=aa(e);return a.val=n,a}},516:{f:function(e,t,r){r.biffguess&&2==r.biff&&(r.biff=5),e.l;var a=an(e);2==r.biff&&e.l++;var n=qa(e,e.l,r);return a.val=n,a}},517:{f:vn},519:{f:Rn},520:{f:function(e){var t={};t.r=e.read_shift(2),t.c=e.read_shift(2),t.cnt=e.read_shift(2)-t.c;var r=e.read_shift(2);e.l+=4;var a=e.read_shift(1);return e.l+=3,7&a&&(t.level=7&a),32&a&&(t.hidden=!0),64&a&&(t.hpt=r/20),t}},523:{},545:{f:kn},549:{f:pn},566:{},574:{f:function(e,t,r){return r&&r.biff>=2&&r.biff<5?{}:{RTL:64&e.read_shift(2)}}},638:{f:function(e){var t=e.read_shift(2),r=e.read_shift(2),a=sn(e);return{r:t,c:r,ixfe:a[0],rknum:a[1]}}},659:{},1048:{},1054:{f:function(e,t,r){return[e.read_shift(2),Za(e,0,r)]}},1084:{},1212:{f:function(e,t,r){var a=on(e);e.l++;var n=e.read_shift(1);return[Ei(e,t-=8,r),n,a]}},2048:{f:function(e,t){e.read_shift(2);var r=cn(e),a=e.read_shift((t-10)/2,"dbcs-cont");return[r,a=a.replace(I,"")]}},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:dn},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:Ga},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:function(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t},r:12},2173:{f:function(e,t){e.l,e.l+=2;var r=e.read_shift(2);e.l+=2;for(var a=e.read_shift(2),n=[];a-- >0;)n.push(Ps(e,e.l));return{ixfe:r,ext:n}},r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:ja,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:function(e,t,r){if(!(r.biff<8)){var a=e.read_shift(2),n=e.read_shift(2);return[Ja(e,a,r),Ja(e,n,r)]}e.l+=t},r:12},2197:{},2198:{f:function(e,t,r){var a=e.l+t;if(124226!==e.read_shift(4))if(r.cellStyles){var n,s=e.slice(e.l);e.l=a;try{n=nt(s,{type:"array"})}catch(c){return}var i=et(n,"theme/theme/theme1.xml",!0);if(i)return Fs(i,r)}else e.l=a},r:12},2199:{},2200:{},2201:{},2202:{f:function(e){return[0!==e.read_shift(4),0!==e.read_shift(4),e.read_shift(4)]},r:12},2203:{f:Ga},2204:{},2205:{},2206:{},2207:{},2211:{f:function(e){var t=function(e){var t=e.read_shift(2),r=e.read_shift(2);return e.l+=8,{type:t,flags:r}}(e);if(2211!=t.type)throw new Error("Invalid Future Record "+t.type);return 0!==e.read_shift(4)}},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:$a},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:function(e,t,r){var a={area:!1};if(5!=r.biff)return e.l+=t,a;var n=e.read_shift(1);return e.l+=3,16&n&&(a.area=!0),a}},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:function(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(rn(e));return r}},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:gn},1:{},2:{f:function(e){var t=an(e);++e.l;var r=e.read_shift(2);return t.t="n",t.val=r,t}},3:{f:function(e){var t=an(e);++e.l;var r=aa(e);return t.t="n",t.val=r,t}},4:{f:function(e,t,r){r.biffguess&&5==r.biff&&(r.biff=2);var a=an(e);++e.l;var n=Za(e,0,r);return a.t="str",a.val=n,a}},5:{f:vn},7:{f:function(e){var t=e.read_shift(1);return 0===t?(e.l++,""):e.read_shift(t,"sbcs-cont")}},8:{},9:{f:dn},11:{},22:{f:$a},30:{f:mn},31:{},32:{},33:{f:kn},36:{},37:{f:pn},50:{f:function(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}},62:{},52:{},67:{},68:{f:$a},69:{},86:{},126:{},127:{f:function(e){var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(4),n={fmt:t,env:r,len:a,data:e.slice(e.l,e.l+a)};return e.l+=a,n}},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:function(e,t,r){var a=e.l+t,n=an(e),s=e.read_shift(2),i=Ja(e,s,r);return e.l=a,n.t="str",n.val=i,n}},223:{},234:{},354:{},421:{},518:{f:wi},521:{f:dn},536:{f:wn},547:{f:Tn},561:{},579:{},1030:{f:wi},1033:{f:dn},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function Vc(e,t,r,a){var n=t;if(!isNaN(n)){var s=a||(r||[]).length||0,i=e.next(4);i.write_shift(2,n),i.write_shift(2,s),s>0&&cr(r)&&e.push(r)}}function Gc(e,t){var r=t||{};null!=T&&null==r.dense&&(r.dense=T);var a=r.dense?[]:{},n=(e=e.replace(//g,"")).match(/
");var s=e.match(/<\/table/i),i=n.index,c=s&&s.index||e.length,o=Ke(e.slice(i,c),/(:?]*>)/i,""),l=-1,f=0,h=0,u=0,d={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(i=0;i/i);for(c=0;c"))>-1;)E=E.slice(w+1);for(var A=0;A")));u=y.colspan?+y.colspan:1,((h=+y.rowspan)>1||u>1)&&p.push({s:{r:l,c:f},e:{r:l+(h||1)-1,c:f+u-1}});var S=y.t||y["data-t"]||"";if(E.length)if(E=Ot(E),d.s.r>l&&(d.s.r=l),d.e.rf&&(d.s.c=f),d.e.cr||n[l].s.c>i)&&!(n[l].e.r1&&(d.rowspan=c),o>1&&(d.colspan=o),a.editable?u=''+u+"":h&&(d["data-t"]=h&&h.t||"z",null!=h.v&&(d["data-v"]=h.v),null!=h.z&&(d["data-z"]=h.z),h.l&&"#"!=(h.l.Target||"#").charAt(0)&&(u=''+u+"")),d.id=(a.id||"sjs")+"-"+f,s.push(Lt("td",u,d))}}return""+s.join("")+""}var $c='SheetJS Table Export',Xc="";function Kc(e,t,r){return[].join("")+""}function Yc(e,t){var r=t||{},a=null!=r.header?r.header:$c,n=null!=r.footer?r.footer:Xc,s=[a],i=Lr(e["!ref"]);r.dense=Array.isArray(e),s.push(Kc(0,0,r));for(var c=i.s.r;c<=i.e.r;++c)s.push(jc(e,i,c,r));return s.push("
"+n),s.join("")}function Jc(e,t,r){var a=r||{};null!=T&&(a.dense=T);var n=0,s=0;if(null!=a.origin)if("number"==typeof a.origin)n=a.origin;else{var i="string"==typeof a.origin?Fr(a.origin):a.origin;n=i.r,s=i.c}var c=t.getElementsByTagName("tr"),o=Math.min(a.sheetRows||1e7,c.length),l={s:{r:0,c:0},e:{r:n,c:s}};if(e["!ref"]){var f=Lr(e["!ref"]);l.s.r=Math.min(l.s.r,f.s.r),l.s.c=Math.min(l.s.c,f.s.c),l.e.r=Math.max(l.e.r,f.e.r),l.e.c=Math.max(l.e.c,f.e.c),-1==n&&(l.e.r=n=f.e.r+1)}var h=[],u=0,d=e["!rows"]||(e["!rows"]=[]),p=0,m=0,g=0,v=0,b=0,E=0;for(e["!cols"]||(e["!cols"]=[]);p1||E>1)&&h.push({s:{r:m+n,c:v+s},e:{r:m+n+(b||1)-1,c:v+s+(E||1)-1}});var C={t:"s",v:y},R=k.getAttribute("data-t")||k.getAttribute("t")||"";null!=y&&(0==y.length?C.t=R||"z":a.raw||0==y.trim().length||"s"==R||("TRUE"===y?C={t:"b",v:!0}:"FALSE"===y?C={t:"b",v:!1}:isNaN(je(y))?isNaN(Xe(y).getDate())||(C={t:"d",v:ze(y)},a.cellDates||(C={t:"n",v:Ne(C.v)}),C.z=a.dateNF||W[14]):C={t:"n",v:je(y)})),void 0===C.z&&null!=S&&(C.z=S);var O="",x=k.getElementsByTagName("A");if(x&&x.length)for(var I=0;I=o&&(e["!fullref"]=Pr((l.e.r=c.length-p+m-1+n,l))),e}function qc(e,t){return Jc((t||{}).dense?[]:{},e,t)}function Zc(e){var t="",r=function(e){return e.ownerDocument.defaultView&&"function"===typeof e.ownerDocument.defaultView.getComputedStyle?e.ownerDocument.defaultView.getComputedStyle:"function"===typeof getComputedStyle?getComputedStyle:null}(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),"none"===t}function Qc(e){var t=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,(function(e,t){return Array(parseInt(t,10)+1).join(" ")})).replace(/]*\/>/g,"\t").replace(//g,"\n");return[gt(t.replace(/<[^>]*>/g,""))]}var eo={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function to(e,t){var r=t||{};null!=T&&null==r.dense&&(r.dense=T);var a,n,s,i,c,o,l=Pt(e),f=[],h={name:""},u="",d=0,p={},m=[],g=r.dense?[]:{},v={value:""},b="",E=0,w=[],A=-1,k=-1,y={s:{r:1e6,c:1e7},e:{r:0,c:0}},S=0,_={},C=[],R={},O=[],x=1,I=1,N=[],D={Names:[]},F={},M=["",""],L=[],P={},U="",B=0,H=!1,z=!1,W=0;for(Ut.lastIndex=0,l=l.replace(//gm,"").replace(//gm,"");c=Ut.exec(l);)switch(c[3]=c[3].replace(/_.*$/,"")){case"table":case"\u5de5\u4f5c\u8868":"/"===c[1]?(y.e.c>=y.s.c&&y.e.r>=y.s.r?g["!ref"]=Pr(y):g["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=y.e.r&&(g["!fullref"]=g["!ref"],y.e.r=r.sheetRows-1,g["!ref"]=Pr(y)),C.length&&(g["!merges"]=C),O.length&&(g["!rows"]=O),s.name=s["\u540d\u79f0"]||s.name,"undefined"!==typeof JSON&&JSON.stringify(s),m.push(s.name),p[s.name]=g,z=!1):"/"!==c[0].charAt(c[0].length-2)&&(s=ut(c[0],!1),A=k=-1,y.s.r=y.s.c=1e7,y.e.r=y.e.c=0,g=r.dense?[]:{},C=[],O=[],z=!0);break;case"table-row-group":"/"===c[1]?--S:++S;break;case"table-row":case"\u884c":if("/"===c[1]){A+=x,x=1;break}if((i=ut(c[0],!1))["\u884c\u53f7"]?A=i["\u884c\u53f7"]-1:-1==A&&(A=0),(x=+i["number-rows-repeated"]||1)<10)for(W=0;W0&&(O[A+W]={level:S});k=-1;break;case"covered-table-cell":"/"!==c[1]&&++k,r.sheetStubs&&(r.dense?(g[A]||(g[A]=[]),g[A][k]={t:"z"}):g[Mr({r:A,c:k})]={t:"z"}),b="",w=[];break;case"table-cell":case"\u6570\u636e":if("/"===c[0].charAt(c[0].length-2))++k,v=ut(c[0],!1),I=parseInt(v["number-columns-repeated"]||"1",10),o={t:"z",v:null},v.formula&&0!=r.cellFormula&&(o.f=xi(gt(v.formula))),"string"==(v["\u6570\u636e\u7c7b\u578b"]||v["value-type"])&&(o.t="s",o.v=gt(v["string-value"]||""),r.dense?(g[A]||(g[A]=[]),g[A][k]=o):g[Mr({r:A,c:k})]=o),k+=I-1;else if("/"!==c[1]){b="",E=0,w=[],I=1;var V=x?A+x-1:A;if(++k>y.e.c&&(y.e.c=k),ky.e.r&&(y.e.r=V),L=[],P={},o={t:(v=ut(c[0],!1))["\u6570\u636e\u7c7b\u578b"]||v["value-type"],v:null},r.cellFormula)if(v.formula&&(v.formula=gt(v.formula)),v["number-matrix-columns-spanned"]&&v["number-matrix-rows-spanned"]&&(R={s:{r:A,c:k},e:{r:A+(parseInt(v["number-matrix-rows-spanned"],10)||0)-1,c:k+(parseInt(v["number-matrix-columns-spanned"],10)||0)-1}},o.F=Pr(R),N.push([R,o.F])),v.formula)o.f=xi(v.formula);else for(W=0;W=N[W][0].s.r&&A<=N[W][0].e.r&&k>=N[W][0].s.c&&k<=N[W][0].e.c&&(o.F=N[W][1]);switch((v["number-columns-spanned"]||v["number-rows-spanned"])&&(R={s:{r:A,c:k},e:{r:A+(parseInt(v["number-rows-spanned"],10)||0)-1,c:k+(parseInt(v["number-columns-spanned"],10)||0)-1}},C.push(R)),v["number-columns-repeated"]&&(I=parseInt(v["number-columns-repeated"],10)),o.t){case"boolean":o.t="b",o.v=wt(v["boolean-value"]);break;case"float":case"percentage":case"currency":o.t="n",o.v=parseFloat(v.value);break;case"date":o.t="d",o.v=ze(v["date-value"]),r.cellDates||(o.t="n",o.v=Ne(o.v)),o.z="m/d/yy";break;case"time":o.t="n",o.v=Pe(v["time-value"])/86400,r.cellDates&&(o.t="d",o.v=Le(o.v)),o.z="HH:MM:SS";break;case"number":o.t="n",o.v=parseFloat(v["\u6570\u636e\u6570\u503c"]);break;default:if("string"!==o.t&&"text"!==o.t&&o.t)throw new Error("Unsupported value type "+o.t);o.t="s",null!=v["string-value"]&&(b=gt(v["string-value"]),w=[])}}else{if(H=!1,"s"===o.t&&(o.v=b||"",w.length&&(o.R=w),H=0==E),F.Target&&(o.l=F),L.length>0&&(o.c=L,L=[]),b&&!1!==r.cellText&&(o.w=b),H&&(o.t="z",delete o.v),(!H||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=A))for(var G=0;G0;)g[A+G][k+I]=Ve(o);else for(g[Mr({r:A+G,c:k})]=o;--I>0;)g[Mr({r:A+G,c:k+I})]=Ve(o);y.e.c<=k&&(y.e.c=k)}k+=(I=parseInt(v["number-columns-repeated"]||"1",10))-1,I=0,o={},b="",w=[]}F={};break;case"document":case"document-content":case"\u7535\u5b50\u8868\u683c\u6587\u6863":case"spreadsheet":case"\u4e3b\u4f53":case"scripts":case"styles":case"font-face-decls":case"master-styles":if("/"===c[1]){if((a=f.pop())[0]!==c[3])throw"Bad state: "+a}else"/"!==c[0].charAt(c[0].length-2)&&f.push([c[3],!0]);break;case"annotation":if("/"===c[1]){if((a=f.pop())[0]!==c[3])throw"Bad state: "+a;P.t=b,w.length&&(P.R=w),P.a=U,L.push(P)}else"/"!==c[0].charAt(c[0].length-2)&&f.push([c[3],!1]);U="",B=0,b="",E=0,w=[];break;case"creator":"/"===c[1]?U=l.slice(B,c.index):B=c.index+c[0].length;break;case"meta":case"\u5143\u6570\u636e":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if("/"===c[1]){if((a=f.pop())[0]!==c[3])throw"Bad state: "+a}else"/"!==c[0].charAt(c[0].length-2)&&f.push([c[3],!1]);b="",E=0,w=[];break;case"scientific-number":case"currency-symbol":case"currency-style":case"script":case"libraries":case"automatic-styles":case"default-style":case"page-layout":case"style":case"map":case"font-face":case"paragraph-properties":case"table-properties":case"table-column-properties":case"table-row-properties":case"table-cell-properties":case"fraction":case"boolean-style":case"boolean":case"text-style":case"text-content":case"text-properties":case"embedded-text":case"body":case"\u7535\u5b50\u8868\u683c":case"forms":case"table-column":case"table-header-rows":case"table-rows":case"table-column-group":case"table-header-columns":case"table-columns":case"null-date":case"graphic-properties":case"calculation-settings":case"named-expressions":case"label-range":case"label-ranges":case"named-expression":case"sort":case"sort-by":case"sort-groups":case"tab":case"line-break":case"span":case"s":case"date":case"object":case"title":case"\u6807\u9898":case"desc":case"binary-data":case"table-source":case"scenario":case"iteration":case"content-validations":case"content-validation":case"help-message":case"error-message":case"database-ranges":case"filter":case"filter-and":case"filter-or":case"filter-condition":case"list-level-style-bullet":case"list-level-style-number":case"list-level-properties":case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":case"event-listener":case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":case"config-item":case"page-number":case"page-count":case"time":case"cell-range-source":case"detective":case"operation":case"highlighted-range":case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":case"rect":case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":case"properties":case"property":case"table-protection":case"data-pilot-grand-total":case"office-document-common-attrs":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if("/"===c[1]){if(_[h.name]=u,(a=f.pop())[0]!==c[3])throw"Bad state: "+a}else"/"!==c[0].charAt(c[0].length-2)&&(u="",h=ut(c[0],!1),f.push([c[3],!0]));break;case"number":case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(f[f.length-1][0]){case"time-style":case"date-style":n=ut(c[0],!1),u+=eo[c[3]]["long"===n.style?1:0]}break;case"text":if("/>"===c[0].slice(-2))break;if("/"===c[1])switch(f[f.length-1][0]){case"number-style":case"date-style":case"time-style":u+=l.slice(d,c.index)}else d=c.index+c[0].length;break;case"named-range":M=Ii((n=ut(c[0],!1))["cell-range-address"]);var j={Name:n.name,Ref:M[0]+"!"+M[1]};z&&(j.Sheet=m.length),D.Names.push(j);break;case"p":case"\u6587\u672c\u4e32":if(["master-styles"].indexOf(f[f.length-1][0])>-1)break;if("/"!==c[1]||v&&v["string-value"])ut(c[0],!1),E=c.index+c[0].length;else{var $=Qc(l.slice(E,c.index));b=(b.length>0?b+"\n":"")+$[0]}break;case"database-range":if("/"===c[1])break;try{p[(M=Ii(ut(c[0])["target-range-address"]))[0]]["!autofilter"]={ref:M[1]}}catch(K){}break;case"a":if("/"!==c[1]){if(!(F=ut(c[0],!1)).href)break;F.Target=gt(F.href),delete F.href,"#"==F.Target.charAt(0)&&F.Target.indexOf(".")>-1?(M=Ii(F.Target.slice(1)),F.Target="#"+M[0]+"!"+M[1]):F.Target.match(/^\.\.[\\\/]/)&&(F.Target=F.Target.slice(3))}break;default:switch(c[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"\u8868:":case"\u5b57:":break;default:if(r.WTF)throw new Error(c)}}var X={Sheets:p,SheetNames:m,Workbook:D};return r.bookSheets&&delete X.Sheets,X}function ro(e,t){t=t||{},qe(e,"META-INF/manifest.xml")&&function(e,t){for(var r,a,n=Pt(e);r=Ut.exec(n);)switch(r[3]){case"manifest":break;case"file-entry":if("/"==(a=ut(r[0],!1)).path&&a.type!==ka)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw r}}(Qe(e,"META-INF/manifest.xml"),t);var r=et(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var a=to(_t(r),t);return qe(e,"meta.xml")&&(a.Props=_a(Qe(e,"meta.xml"))),a}function ao(e,t){return to(e,t)}function no(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function so(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):_t(R(e))}function io(e){var t=e.reduce((function(e,t){return e+t.length}),0),r=new Uint8Array(t),a=0;return e.forEach((function(e){r.set(e,a),a+=e.length})),r}function co(e){return 16843009*((e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135)>>>24}function oo(e,t){var r=t?t[0]:0,a=127&e[r];e:if(e[r++]>=128){if(a|=(127&e[r])<<7,e[r++]<128)break e;if(a|=(127&e[r])<<14,e[r++]<128)break e;if(a|=(127&e[r])<<21,e[r++]<128)break e;if(a+=(127&e[r])*Math.pow(2,28),++r,e[r++]<128)break e;if(a+=(127&e[r])*Math.pow(2,35),++r,e[r++]<128)break e;if(a+=(127&e[r])*Math.pow(2,42),++r,e[r++]<128)break e}return t&&(t[0]=r),a}function lo(e){var t=0,r=127&e[t];e:if(e[t++]>=128){if(r|=(127&e[t])<<7,e[t++]<128)break e;if(r|=(127&e[t])<<14,e[t++]<128)break e;if(r|=(127&e[t])<<21,e[t++]<128)break e;r|=(127&e[t])<<28}return r}function fo(e){for(var t=[],r=[0];r[0]=128;);a=e.slice(o,r[0]);break;case 5:c=4,a=e.slice(r[0],r[0]+c),r[0]+=c;break;case 1:c=8,a=e.slice(r[0],r[0]+c),r[0]+=c;break;case 2:c=oo(e,r),a=e.slice(r[0],r[0]+c),r[0]+=c;break;default:throw new Error("PB Type ".concat(i," for Field ").concat(s," at offset ").concat(n))}var l={data:a,type:i};null==t[s]?t[s]=[l]:t[s].push(l)}return t}function ho(e,t){return(null==e?void 0:e.map((function(e){return t(e.data)})))||[]}function uo(e){for(var t,r=[],a=[0];a[0]>>0>0),r.push(i)}return r}function po(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],a=oo(t,r),n=[];r[0]>2&7),i=(224&t[r[0]++])<<3,i|=t[r[0]++]):(c=1+(t[r[0]++]>>2),2==s?(i=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(i=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),n=[io(n)],0==i)throw new Error("Invalid offset 0");if(i>n[0].length)throw new Error("Invalid offset beyond length");if(c>=i)for(n.push(n[0].slice(-i)),c-=i;c>=n[n.length-1].length;)n.push(n[n.length-1]),c-=n[n.length-1].length;n.push(n[0].slice(-i,-i+c))}else{var o=t[r[0]++]>>2;if(o<60)++o;else{var l=o-59;o=t[r[0]],l>1&&(o|=t[r[0]+1]<<8),l>2&&(o|=t[r[0]+2]<<16),l>3&&(o|=t[r[0]+3]<<24),o>>>=0,o++,r[0]+=l}n.push(t.slice(r[0],r[0]+o)),r[0]+=o}}var f=io(n);if(f.length!=a)throw new Error("Unexpected length: ".concat(f.length," != ").concat(a));return f}function mo(e){for(var t=[],r=0;r>1,a=1&e[t+14],n=t+13;n>=t;--n)a=256*a+e[n];return(128&e[t+15]?-a:a)*Math.pow(10,r-6176)}(e,i),i+=16),2&s&&(f=n.getFloat64(i,!0),i+=8),4&s&&(h.setTime(h.getTime()+1e3*n.getFloat64(i,!0)),i+=8),8&s&&(o=n.getUint32(i,!0),i+=4),16&s&&(c=n.getUint32(i,!0),i+=4),e[1]){case 0:break;case 2:case 10:a={t:"n",v:l};break;case 3:a={t:"s",v:t[o]};break;case 5:a={t:"d",v:h};break;case 6:a={t:"b",v:f>0};break;case 7:a={t:"n",v:f/86400};break;case 8:a={t:"e",v:0};break;case 9:if(!(c>-1))throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&s," : ").concat(e.slice(0,4)));a={t:"s",v:r[c]};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&s," : ").concat(e.slice(0,4)))}return a}function vo(e,t,r){switch(e[0]){case 0:case 1:case 2:case 3:return function(e,t,r,a){var n,s=no(e),i=s.getUint32(4,!0),c=(a>1?12:8)+4*co(i&(a>1?3470:398)),o=-1,l=-1,f=NaN,h=new Date(2001,0,1);switch(512&i&&(o=s.getUint32(c,!0),c+=4),c+=4*co(i&(a>1?12288:4096)),16&i&&(l=s.getUint32(c,!0),c+=4),32&i&&(f=s.getFloat64(c,!0),c+=8),64&i&&(h.setTime(h.getTime()+1e3*s.getFloat64(c,!0)),c+=8),e[2]){case 0:break;case 2:n={t:"n",v:f};break;case 3:n={t:"s",v:t[l]};break;case 5:n={t:"d",v:h};break;case 6:n={t:"b",v:f>0};break;case 7:n={t:"n",v:f/86400};break;case 8:n={t:"e",v:0};break;case 9:if(o>-1)n={t:"s",v:r[o]};else if(l>-1)n={t:"s",v:t[l]};else{if(isNaN(f))throw new Error("Unsupported cell type ".concat(e.slice(0,4)));n={t:"n",v:f}}break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return n}(e,t,r,e[0]);case 5:return go(e,t,r);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function bo(e){return oo(fo(e)[1][0].data)}function To(e,t){var r=fo(t.data),a=lo(r[1][0].data),n=r[3],s=[];return(n||[]).forEach((function(t){var r=fo(t.data),n=lo(r[1][0].data)>>>0;switch(a){case 1:s[n]=so(r[3][0].data);break;case 8:var i=fo(e[bo(r[9][0].data)][0].data),c=e[bo(i[1][0].data)][0],o=lo(c.meta[1][0].data);if(2001!=o)throw new Error("2000 unexpected reference to ".concat(o));var l=fo(c.data);s[n]=l[3].map((function(e){return so(e.data)})).join("")}})),s}function Eo(e,t){var r,a=fo(t.data),n=(null==(r=null==a?void 0:a[7])?void 0:r[0])?lo(a[7][0].data)>>>0>0?1:0:-1,s=ho(a[5],(function(e){return function(e,t){var r,a,n,s,i,c,o,l,f,h,u,d,p,m,g,v,b=fo(e),T=lo(b[1][0].data)>>>0,E=lo(b[2][0].data)>>>0,w=(null==(a=null==(r=b[8])?void 0:r[0])?void 0:a.data)&&lo(b[8][0].data)>0||!1;if((null==(s=null==(n=b[7])?void 0:n[0])?void 0:s.data)&&0!=t)g=null==(c=null==(i=b[7])?void 0:i[0])?void 0:c.data,v=null==(l=null==(o=b[6])?void 0:o[0])?void 0:l.data;else{if(!(null==(h=null==(f=b[4])?void 0:f[0])?void 0:h.data)||1==t)throw"NUMBERS Tile missing ".concat(t," cell storage");g=null==(d=null==(u=b[4])?void 0:u[0])?void 0:d.data,v=null==(m=null==(p=b[3])?void 0:p[0])?void 0:m.data}for(var A=w?4:1,k=no(g),y=[],S=0;S=1&&(C[y[y.length-1][0]]=v.subarray(y[y.length-1][1]*A)),{R:T,cells:C}}(e,n)}));return{nrows:lo(a[4][0].data)>>>0,data:s.reduce((function(e,t){return e[t.R]||(e[t.R]=[]),t.cells.forEach((function(r,a){if(e[t.R][a])throw new Error("Duplicate cell r=".concat(t.R," c=").concat(a));e[t.R][a]=r})),e}),[])}}function wo(e,t){var r={"!ref":"A1"},a=e[bo(fo(t.data)[2][0].data)],n=lo(a[0].meta[1][0].data);if(6001!=n)throw new Error("6000 unexpected reference to ".concat(n));return function(e,t,r){var a,n=fo(t.data),s={s:{r:0,c:0},e:{r:0,c:0}};if(s.e.r=(lo(n[6][0].data)>>>0)-1,s.e.r<0)throw new Error("Invalid row varint ".concat(n[6][0].data));if(s.e.c=(lo(n[7][0].data)>>>0)-1,s.e.c<0)throw new Error("Invalid col varint ".concat(n[7][0].data));r["!ref"]=Pr(s);var i=fo(n[4][0].data),c=To(e,e[bo(i[4][0].data)][0]),o=(null==(a=i[17])?void 0:a[0])?To(e,e[bo(i[17][0].data)][0]):[],l=fo(i[3][0].data),f=0;l[1].forEach((function(t){var a=fo(t.data),n=e[bo(a[2][0].data)][0],s=lo(n.meta[1][0].data);if(6002!=s)throw new Error("6001 unexpected reference to ".concat(s));var i=Eo(0,n);i.data.forEach((function(e,t){e.forEach((function(e,a){var n=Mr({r:f+t,c:a}),s=vo(e,c,o);s&&(r[n]=s)}))})),f+=i.nrows}))}(e,a[0],r),r}function Ao(e,t){var r={SheetNames:[],Sheets:{}};if(ho(fo(t.data)[1],bo).forEach((function(t){e[t].forEach((function(t){if(2==lo(t.meta[1][0].data)){var a=function(e,t){var r,a=fo(t.data),n={name:(null==(r=a[1])?void 0:r[0])?so(a[1][0].data):"",sheets:[]};return ho(a[2],bo).forEach((function(t){e[t].forEach((function(t){6e3==lo(t.meta[1][0].data)&&n.sheets.push(wo(e,t))}))})),n}(e,t);a.sheets.forEach((function(e,t){Vo(r,e,0==t?a.name:a.name+"_"+t,!0)}))}}))})),0==r.SheetNames.length)throw new Error("Empty NUMBERS file");return r}function ko(e){var t,r,a,n,s={},i=[];if(e.FullPaths.forEach((function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")})),e.FileIndex.forEach((function(e){if(e.name.match(/\.iwa$/)){var t,r;try{t=mo(e.content)}catch(a){return console.log("?? "+e.content.length+" "+(a.message||a))}try{r=uo(t)}catch(a){return console.log("## "+(a.message||a))}r.forEach((function(e){s[e.id]=e.messages,i.push(e.id)}))}})),!i.length)throw new Error("File has no messages");var c=(null==(n=null==(a=null==(r=null==(t=null==s?void 0:s[1])?void 0:t[0])?void 0:r.meta)?void 0:a[1])?void 0:n[0].data)&&1==lo(s[1][0].meta[1][0].data)&&s[1][0];if(c||i.forEach((function(e){s[e].forEach((function(e){if(1==lo(e.meta[1][0].data)>>>0){if(c)throw new Error("Document has multiple roots");c=e}}))})),!c)throw new Error("Cannot find Document root");return Ao(s,c)}function yo(e){return function(t){for(var r=0;r!=e.length;++r){var a=e[r];void 0===t[a[0]]&&(t[a[0]]=a[1]),"n"===a[2]&&(t[a[0]]=Number(t[a[0]]))}}}function So(e){yo([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function _o(e,t,r,a,n,s,i,c,o,l,f,h){try{s[a]=Aa(et(e,r,!0),t);var u,d=Qe(e,t);switch(c){case"sheet":u=dc(d,t,n,o,s[a],l,f,h);break;case"chart":if(!(u=pc(d,t,n,o,s[a],l))||!u["!drawel"])break;var p=st(u["!drawel"].Target,t),m=wa(p),g=function(e,t){if(!e)return"??";var r=(e.match(/]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][r].Target}(et(e,p,!0),Aa(et(e,m,!0),p)),v=st(g,p),b=wa(v);u=ec(et(e,v,!0),0,0,Aa(et(e,b,!0),v),0,u);break;case"macro":E=t,s[a],E.slice(-4),u={"!type":"macro"};break;case"dialog":u=function(e,t){return t.slice(-4),{"!type":"dialog"}}(0,t,0,0,s[a]);break;default:throw new Error("Unrecognized sheet type "+c)}i[a]=u;var T=[];s&&s[a]&&Oe(s[a]).forEach((function(r){var n="";if(s[a][r].Type==Ea.CMNT){n=st(s[a][r].Target,t);var i=vc(Qe(e,n,!0),n,o);if(!i||!i.length)return;Us(u,i,!1)}s[a][r].Type==Ea.TCMNT&&(n=st(s[a][r].Target,t),T=T.concat(function(e,t){var r=[],a=!1,n={},s=0;return e.replace(lt,(function(i,c){var o=ut(i);switch(dt(o[0])){case"":case"":case"
":case"":break;case"":null!=n.t&&r.push(n);break;case"":case"":n.t=e.slice(s,c).replace(/\r\n/g,"\n").replace(/\r/g,"\n");break;case"":case"":case"":a=!1;break;default:if(!a&&t.WTF)throw new Error("unrecognized "+o[0]+" in threaded comments")}return i})),r}(Qe(e,n,!0),o)))})),T&&T.length&&Us(u,T,!0,o.people||[])}catch(w){if(o.WTF)throw w}var E}function Co(e){return"/"==e.charAt(0)?e.slice(1):e}function Ro(e,t){if(ke(),So(t=t||{}),qe(e,"META-INF/manifest.xml"))return ro(e,t);if(qe(e,"objectdata.xml"))return ro(e,t);if(qe(e,"Index/Document.iwa")){if("undefined"==typeof Uint8Array)throw new Error("NUMBERS file parsing requires Uint8Array support");if(e.FileIndex)return ko(e);var r=Ce.utils.cfb_new();return rt(e).forEach((function(t){at(r,t,tt(e,t))})),ko(r)}if(!qe(e,"[Content_Types].xml")){if(qe(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(qe(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var a,n,s=rt(e),i=function(e){var t={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};if(!e||!e.match)return t;var r={};if((e.match(lt)||[]).forEach((function(e){var a=ut(e);switch(a[0].replace(ft,"<")){case"0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=r,delete t.calcchains,t}(et(e,"[Content_Types].xml")),c=!1;if(0===i.workbooks.length&&Qe(e,n="xl/workbook.xml",!0)&&i.workbooks.push(n),0===i.workbooks.length){if(!Qe(e,n="xl/workbook.bin",!0))throw new Error("Could not find workbook");i.workbooks.push(n),c=!0}"bin"==i.workbooks[0].slice(-3)&&(c=!0);var o={},l={};if(!t.bookSheets&&!t.bookProps){if(Ni=[],i.sst)try{Ni=gc(Qe(e,Co(i.sst)),i.sst,t)}catch(x){if(t.WTF)throw x}t.cellStyles&&i.themes.length&&(o=function(e,t,r){return Fs(e,r)}(et(e,i.themes[0].replace(/^\//,""),!0)||"",i.themes[0],t)),i.style&&(l=mc(Qe(e,Co(i.style)),i.style,o,t))}i.links.map((function(r){try{Aa(et(e,wa(Co(r))),r);return Tc(Qe(e,Co(r)),0,r,t)}catch(x){}}));var f=uc(Qe(e,Co(i.workbooks[0])),i.workbooks[0],t),h={},u="";i.coreprops.length&&((u=Qe(e,Co(i.coreprops[0]),!0))&&(h=_a(u)),0!==i.extprops.length&&(u=Qe(e,Co(i.extprops[0]),!0))&&function(e,t,r){var a={};t||(t={}),e=_t(e),Ca.forEach((function(r){var n=(e.match(Rt(r[0]))||[])[1];switch(r[2]){case"string":n&&(t[r[1]]=gt(n));break;case"bool":t[r[1]]="true"===n;break;case"raw":var s=e.match(new RegExp("<"+r[0]+"[^>]*>([\\s\\S]*?)"));s&&s.length>0&&(a[r[1]]=s[1])}})),a.HeadingPairs&&a.TitlesOfParts&&Ra(a.HeadingPairs,a.TitlesOfParts,t,r)}(u,h,t));var d={};t.bookSheets&&!t.bookProps||0!==i.custprops.length&&(u=et(e,Co(i.custprops[0]),!0))&&(d=function(e,t){var r={},a="",n=e.match(Oa);if(n)for(var s=0;s!=n.length;++s){var i=n[s],c=ut(i);switch(c[0]){case"":a=null;break;default:if(0===i.indexOf(""),l=o[0].slice(4),f=o[1];switch(l){case"lpstr":case"bstr":case"lpwstr":case"cy":case"error":r[a]=gt(f);break;case"bool":r[a]=wt(f);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":r[a]=parseInt(f,10);break;case"r4":case"r8":case"decimal":r[a]=parseFloat(f);break;case"filetime":case"date":r[a]=ze(f);break;default:if("/"==l.slice(-1))break;t.WTF&&"undefined"!==typeof console&&console.warn("Unexpected",i,l,o)}}else if("0&&(a=h.SheetNames),t.bookProps&&(p.Props=h,p.Custprops=d),t.bookSheets&&"undefined"!==typeof a&&(p.SheetNames=a),t.bookSheets?p.SheetNames:t.bookProps))return p;a={};var m={};t.bookDeps&&i.calcchain&&(m=bc(Qe(e,Co(i.calcchain)),i.calcchain));var g,v,b=0,T={},E=f.Sheets;h.Worksheets=E.length,h.SheetNames=[];for(var w=0;w!=E.length;++w)h.SheetNames[w]=E[w].name;var A=c?"bin":"xml",k=i.workbooks[0].lastIndexOf("/"),y=(i.workbooks[0].slice(0,k+1)+"_rels/"+i.workbooks[0].slice(k+1)+".rels").replace(/^\//,"");qe(e,y)||(y="xl/_rels/workbook."+A+".rels");var S=Aa(et(e,y,!0),y.replace(/_rels.*/,"s5s"));(i.metadata||[]).length>=1&&(t.xlmeta=Ec(Qe(e,Co(i.metadata[0])),i.metadata[0],t)),(i.people||[]).length>=1&&(t.people=function(e,t){var r=[],a=!1;return e.replace(lt,(function(e){var n=ut(e);switch(dt(n[0])){case"":case"":case"":case"":case"":break;case"":a=!1;break;default:if(!a&&t.WTF)throw new Error("unrecognized "+n[0]+" in threaded comments")}return e})),r}(Qe(e,Co(i.people[0])),t)),S&&(S=function(e,t){if(!e)return 0;try{e=t.map((function(t){return t.id||(t.id=t.strRelID),[t.name,e["!id"][t.id].Target,(r=e["!id"][t.id].Type,Ea.WS.indexOf(r)>-1?"sheet":Ea.CS&&r==Ea.CS?"chart":Ea.DS&&r==Ea.DS?"dialog":Ea.MS&&r==Ea.MS?"macro":r&&r.length?r:"sheet")];var r}))}catch(x){return null}return e&&0!==e.length?e:null}(S,f.Sheets));var _=Qe(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(b=0;b!=h.Worksheets;++b){var C="sheet";if(S&&S[b]?(g="xl/"+S[b][1].replace(/[\/]?xl\//,""),qe(e,g)||(g=S[b][1]),qe(e,g)||(g=y.replace(/_rels\/.*$/,"")+S[b][1]),C=S[b][2]):g=(g="xl/worksheets/sheet"+(b+1-_)+"."+A).replace(/sheet0\./,"sheet."),v=g.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&null!=t.sheets)switch(typeof t.sheets){case"number":if(b!=t.sheets)continue e;break;case"string":if(h.SheetNames[b].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var R=!1,O=0;O!=t.sheets.length;++O)"number"==typeof t.sheets[O]&&t.sheets[O]==b&&(R=1),"string"==typeof t.sheets[O]&&t.sheets[O].toLowerCase()==h.SheetNames[b].toLowerCase()&&(R=1);if(!R)continue e}}_o(e,g,v,h.SheetNames[b],b,T,a,C,t,f,o,l)}return p={Directory:i,Workbook:f,Props:h,Custprops:d,Deps:m,Sheets:a,SheetNames:h.SheetNames,Strings:Ni,Styles:l,Themes:o,SSF:Ve(W)},t&&t.bookFiles&&(e.files?(p.keys=s,p.files=e.files):(p.keys=[],p.files={},e.FullPaths.forEach((function(t,r){t=t.replace(/^Root Entry[\/]/,""),p.keys.push(t),p.files[t]=e.FileIndex[r]})))),t&&t.bookVBA&&(i.vba.length>0?p.vbaraw=Qe(e,Co(i.vba[0]),!0):i.defaults&&i.defaults.bin===Hs&&(p.vbaraw=Qe(e,"xl/vbaProject.bin",!0))),p}function Oo(e,t){var r=t||{},a="Workbook",n=Ce.find(e,a);try{if(a="/!DataSpaces/Version",!(n=Ce.find(e,a))||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(function(e){var t={};t.id=e.read_shift(0,"lpp4"),t.R=$n(e,4),t.U=$n(e,4),t.W=$n(e,4)}(n.content),a="/!DataSpaces/DataSpaceMap",!(n=Ce.find(e,a))||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var s=function(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(Xn(e));return t}(n.content);if(1!==s.length||1!==s[0].comps.length||0!==s[0].comps[0].t||"StrongEncryptionDataSpace"!==s[0].name||"EncryptedPackage"!==s[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(n=Ce.find(e,a))||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var i=function(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(e.read_shift(0,"lpp4"));return t}(n.content);if(1!=i.length||"StrongEncryptionTransform"!=i[0])throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(n=Ce.find(e,a))||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);Kn(n.content)}catch(o){}if(a="/EncryptionInfo",!(n=Ce.find(e,a))||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var c=function(e){var t=$n(e);switch(t.Minor){case 2:return[t.Minor,qn(e)];case 3:return[t.Minor,Zn()];case 4:return[t.Minor,Qn(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}(n.content);if(a="/EncryptedPackage",!(n=Ce.find(e,a))||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(4==c[0]&&"undefined"!==typeof decrypt_agile)return decrypt_agile(c[1],n.content,r.password||"",r);if(2==c[0]&&"undefined"!==typeof decrypt_std76)return decrypt_std76(c[1],n.content,r.password||"",r);throw new Error("File is password-protected")}function xo(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=A(e.slice(0,12));break;case"binary":r=e;break;default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function Io(e,t){var r=0;e:for(;r=2&&0===n[3])return Mn.to_workbook(s,r);if(0===n[2]&&(8===n[3]||9===n[3]))return Mn.to_workbook(s,r)}break;case 3:case 131:case 139:case 140:return xn.to_workbook(s,r);case 123:if(92===n[1]&&114===n[2]&&116===n[3])return ns.to_workbook(s,r);break;case 10:case 13:case 32:return function(e,t){var r="",a=xo(e,t);switch(t.type){case"base64":r=A(e);break;case"binary":r=e;break;case"buffer":r=e.toString("binary");break;case"array":r=We(e);break;default:throw new Error("Unrecognized type "+t.type)}return 239==a[0]&&187==a[1]&&191==a[2]&&(r=_t(r)),t.type="binary",Io(r,t)}(s,r);case 137:if(80===n[1]&&78===n[2]&&71===n[3])throw new Error("PNG Image File is not a spreadsheet")}return On.indexOf(n[0])>-1&&n[2]<=12&&n[3]<=31?xn.to_workbook(s,r):No(e,s,r,i)}function Fo(e,t,r,a,n,s,i,c){var o=Ir(r),l=c.defval,f=c.raw||!Object.prototype.hasOwnProperty.call(c,"raw"),h=!0,u=1===n?[]:{};if(1!==n)if(Object.defineProperty)try{Object.defineProperty(u,"__rowNum__",{value:r,enumerable:!1})}catch(g){u.__rowNum__=r}else u.__rowNum__=r;if(!i||e[r])for(var d=t.s.c;d<=t.e.c;++d){var p=i?e[r][d]:e[a[d]+o];if(void 0!==p&&void 0!==p.t){var m=p.v;switch(p.t){case"z":if(null==m)break;continue;case"e":m=0==m?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(null!=s[d]){if(null==m)if("e"==p.t&&null===m)u[s[d]]=null;else if(void 0!==l)u[s[d]]=l;else{if(!f||null!==m)continue;u[s[d]]=null}else u[s[d]]=f&&("n"!==p.t||"n"===p.t&&!1!==c.rawNumbers)?m:Hr(p,m,c);null!=m&&(h=!1)}}else{if(void 0===l)continue;null!=s[d]&&(u[s[d]]=l)}}return{row:u,isempty:h}}function Mo(e,t){if(null==e||null==e["!ref"])return[];var r={t:"n",v:0},a=0,n=1,s=[],i=0,c="",o={s:{r:0,c:0},e:{r:0,c:0}},l=t||{},f=null!=l.range?l.range:e["!ref"];switch(1===l.header?a=1:"A"===l.header?a=2:Array.isArray(l.header)?a=3:null==l.header&&(a=0),typeof f){case"string":o=Ur(f);break;case"number":(o=Ur(e["!ref"])).s.r=f;break;default:o=f}a>0&&(n=0);var h=Ir(o.s.r),u=[],d=[],p=0,m=0,g=Array.isArray(e),v=o.s.r,b=0,T={};g&&!e[v]&&(e[v]=[]);var E=l.skipHidden&&e["!cols"]||[],w=l.skipHidden&&e["!rows"]||[];for(b=o.s.c;b<=o.e.c;++b)if(!(E[b]||{}).hidden)switch(u[b]=Dr(b),r=g?e[v][b]:e[u[b]+h],a){case 1:s[b]=b-o.s.c;break;case 2:s[b]=u[b];break;case 3:s[b]=l.header[b-o.s.c];break;default:if(null==r&&(r={w:"__EMPTY",t:"s"}),c=i=Hr(r,null,l),m=T[i]||0){do{c=i+"_"+m++}while(T[c]);T[i]=m,T[c]=1}else T[i]=1;s[b]=c}for(v=o.s.r+n;v<=o.e.r;++v)if(!(w[v]||{}).hidden){var A=Fo(e,o,v,u,a,s,g,l);(!1===A.isempty||(1===a?!1!==l.blankrows:l.blankrows))&&(d[p++]=A.row)}return d.length=p,d}var Lo=/"/g;function Po(e,t,r,a,n,s,i,c){for(var o=!0,l=[],f="",h=Ir(r),u=t.s.c;u<=t.e.c;++u)if(a[u]){var d=c.dense?(e[r]||[])[u]:e[a[u]+h];if(null==d)f="";else if(null!=d.v){o=!1,f=""+(c.rawNumbers&&"n"==d.t?d.v:Hr(d,null,c));for(var p=0,m=0;p!==f.length;++p)if((m=f.charCodeAt(p))===n||m===s||34===m||c.forceQuotes){f='"'+f.replace(Lo,'""')+'"';break}"ID"==f&&(f='"ID"')}else null==d.f||d.F?f="":(o=!1,(f="="+d.f).indexOf(",")>=0&&(f='"'+f.replace(Lo,'""')+'"'));l.push(f)}return!1===c.blankrows&&o?null:l.join(i)}function Uo(e,t){var r=[],a=null==t?{}:t;if(null==e||null==e["!ref"])return"";var n=Ur(e["!ref"]),s=void 0!==a.FS?a.FS:",",i=s.charCodeAt(0),c=void 0!==a.RS?a.RS:"\n",o=c.charCodeAt(0),l=new RegExp(("|"==s?"\\|":s)+"+$"),f="",h=[];a.dense=Array.isArray(e);for(var u=a.skipHidden&&e["!cols"]||[],d=a.skipHidden&&e["!rows"]||[],p=n.s.c;p<=n.e.c;++p)(u[p]||{}).hidden||(h[p]=Dr(p));for(var m=0,g=n.s.r;g<=n.e.r;++g)(d[g]||{}).hidden||null!=(f=Po(e,n,g,h,i,o,s,a))&&(a.strip&&(f=f.replace(l,"")),(f||!1!==a.blankrows)&&r.push((m++?c:"")+f));return delete a.dense,r.join("")}function Bo(e,t){t||(t={}),t.FS="\t",t.RS="\n";var r=Uo(e,t);if("undefined"==typeof m||"string"==t.type)return r;var a=m.utils.encode(1200,r,"str");return String.fromCharCode(255)+String.fromCharCode(254)+a}function Ho(e,t,r){var a,n=r||{},s=+!n.skipHeader,i=e||{},c=0,o=0;if(i&&null!=n.origin)if("number"==typeof n.origin)c=n.origin;else{var l="string"==typeof n.origin?Fr(n.origin):n.origin;c=l.r,o=l.c}var f={s:{c:0,r:0},e:{c:o,r:c+t.length-1+s}};if(i["!ref"]){var h=Ur(i["!ref"]);f.e.c=Math.max(f.e.c,h.e.c),f.e.r=Math.max(f.e.r,h.e.r),-1==c&&(c=h.e.r+1,f.e.r=c+t.length-1+s)}else-1==c&&(c=0,f.e.r=t.length-1+s);var u=n.header||[],d=0;t.forEach((function(e,t){Oe(e).forEach((function(r){-1==(d=u.indexOf(r))&&(u[d=u.length]=r);var l=e[r],f="z",h="",p=Mr({c:o+d,r:c+t+s});a=zo(i,p),!l||"object"!==typeof l||l instanceof Date?("number"==typeof l?f="n":"boolean"==typeof l?f="b":"string"==typeof l?f="s":l instanceof Date?(f="d",n.cellDates||(f="n",l=Ne(l)),h=n.dateNF||W[14]):null===l&&n.nullError&&(f="e",l=0),a?(a.t=f,a.v=l,delete a.w,delete a.R,h&&(a.z=h)):i[p]=a={t:f,v:l},h&&(a.z=h)):i[p]=l}))})),f.e.c=Math.max(f.e.c,o+u.length-1);var p=Ir(c);if(s)for(d=0;d=65535)throw new Error("Too many worksheets");if(a&&e.SheetNames.indexOf(r)>=0){var s=r.match(/(^.*?)(\d+)$/);n=s&&+s[2]||0;var i=s&&s[1]||r;for(++n;n<=65535&&-1!=e.SheetNames.indexOf(r=i+n);++n);}if(lc(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function Go(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}var jo={encode_col:Dr,encode_row:Ir,encode_cell:Mr,encode_range:Pr,decode_col:Nr,decode_row:xr,split_cell:function(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:Fr,decode_range:Lr,format_cell:Hr,sheet_add_aoa:Wr,sheet_add_json:Ho,sheet_add_dom:Jc,aoa_to_sheet:Vr,json_to_sheet:function(e,t){return Ho(null,e,t)},table_to_sheet:qc,table_to_book:function(e,t){return zr(qc(e,t),t)},sheet_to_csv:Uo,sheet_to_txt:Bo,sheet_to_json:Mo,sheet_to_html:Yc,sheet_to_formulae:function(e){var t,r="",a="";if(null==e||null==e["!ref"])return[];var n,s=Ur(e["!ref"]),i="",c=[],o=[],l=Array.isArray(e);for(n=s.s.c;n<=s.e.c;++n)c[n]=Dr(n);for(var f=s.s.r;f<=s.e.r;++f)for(i=Ir(f),n=s.s.c;n<=s.e.c;++n)if(r=c[n]+i,a="",void 0!==(t=l?(e[f]||[])[n]:e[r])){if(null!=t.F){if(r=t.F,!t.f)continue;a=t.f,-1==r.indexOf(":")&&(r=r+":"+r)}if(null!=t.f)a=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)a=""+t.v;else if("b"==t.t)a=t.v?"TRUE":"FALSE";else if(void 0!==t.w)a="'"+t.w;else{if(void 0===t.v)continue;a="s"==t.t?"'"+t.v:""+t.v}}o[o.length]=r+"="+a}return o},sheet_to_row_object_array:Mo,sheet_get_cell:zo,book_new:Wo,book_append_sheet:Vo,book_set_sheet_visibility:function(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var a=function(e,t){if("number"==typeof t){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"==typeof t){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}throw new Error("Cannot find sheet |"+t+"|")}(e,t);switch(e.Workbook.Sheets[a]||(e.Workbook.Sheets[a]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[a].Hidden=r},cell_set_number_format:function(e,t){return e.z=t,e},cell_set_hyperlink:Go,cell_set_internal_link:function(e,t,r){return Go(e,"#"+t,r)},cell_add_comment:function(e,t,r){e.c||(e.c=[]),e.c.push({t:t,a:r||"SheetJS"})},sheet_set_array_formula:function(e,t,r,a){for(var n="string"!=typeof t?t:Ur(t),s="string"==typeof t?t:Pr(t),i=n.s.r;i<=n.e.r;++i)for(var c=n.s.c;c<=n.e.c;++c){var o=zo(e,i,c);o.t="n",o.F=s,delete o.v,i==n.s.r&&c==n.s.c&&(o.f=r,a&&(o.D=!0))}return e},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};s.version},81802:(e,t,r)=>{"use strict";r.d(t,{A:()=>T});var a=r(27326),n=r(84849),s=r(85672),i=r(72574),c=r(25234),o=r(78292),l=r(38009),f=r(60308),h=r(37300),u=r(10644);function d(e){return(0,u.Ay)("MuiTableBody",e)}(0,h.A)("MuiTableBody",["root"]);var p=r(65908);const m=["className","component"],g=(0,f.Ay)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),v={variant:"body"},b="tbody",T=s.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiTableBody"}),{className:s,component:f=b}=r,h=(0,n.A)(r,m),u=(0,a.A)({},r,{component:f}),T=(e=>{const{classes:t}=e;return(0,c.A)({root:["root"]},d,t)})(u);return(0,p.jsx)(o.A.Provider,{value:v,children:(0,p.jsx)(g,(0,a.A)({className:(0,i.A)(T.root,s),as:f,ref:t,role:f===b?null:"rowgroup",ownerState:u},h))})}))},83209:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var a=r(27326),n=r(84849),s=r(85672),i=r(72574),c=r(25234),o=r(38009),l=r(60308),f=r(37300),h=r(10644);function u(e){return(0,h.Ay)("MuiTableContainer",e)}(0,f.A)("MuiTableContainer",["root"]);var d=r(65908);const p=["className","component"],m=(0,l.Ay)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),g=s.forwardRef((function(e,t){const r=(0,o.b)({props:e,name:"MuiTableContainer"}),{className:s,component:l="div"}=r,f=(0,n.A)(r,p),h=(0,a.A)({},r,{component:l}),g=(e=>{const{classes:t}=e;return(0,c.A)({root:["root"]},u,t)})(h);return(0,d.jsx)(m,(0,a.A)({ref:t,as:l,className:(0,i.A)(g.root,s),ownerState:h},f))}))}}]); \ No newline at end of file diff --git a/build/static/js/7533.136137f2.chunk.js.LICENSE.txt b/build/static/js/5982.a515fbf1.chunk.js.LICENSE.txt similarity index 100% rename from build/static/js/7533.136137f2.chunk.js.LICENSE.txt rename to build/static/js/5982.a515fbf1.chunk.js.LICENSE.txt diff --git a/build/static/js/6.25ff8786.chunk.js b/build/static/js/6.25ff8786.chunk.js deleted file mode 100644 index 2368a14..0000000 --- a/build/static/js/6.25ff8786.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[6],{10465:(e,t,o)=>{o.d(t,{A:()=>s,B:()=>l});var n=o(58168),r=o(45558),a=o(1614),i=o(63589);function l(e){return(0,a.Ay)("MuiInput",e)}const s=(0,n.A)({},i.A,(0,r.A)("MuiInput",["root","underline","input"]))},17239:(e,t,o)=>{o.d(t,{A:()=>Z});var n=o(58168),r=o(98587),a=o(9950),i=o(72004),l=o(3484),s=o(44730),u=o(70134),c=o(27402),p=o(249);const d=o(52478).A;var m=o(31506),f=o(79044),v=o(44414);const h=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function b(e,t,o){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:o?null:e.firstChild}function A(e,t,o){return e===t?o?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:o?null:e.lastChild}function g(e,t){if(void 0===t)return!0;let o=e.innerText;return void 0===o&&(o=e.textContent),o=o.trim().toLowerCase(),0!==o.length&&(t.repeating?o[0]===t.keys[0]:0===o.indexOf(t.keys.join("")))}function y(e,t,o,n,r,a){let i=!1,l=r(e,t,!!t&&o);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&g(l,a)&&!t)return l.focus(),!0;l=r(e,l,o)}return!1}const P=a.forwardRef((function(e,t){const{actions:o,autoFocus:i=!1,autoFocusItem:l=!1,children:s,className:u,disabledItemsFocusable:P=!1,disableListWrap:w=!1,onKeyDown:S,variant:x="selectedMenu"}=e,C=(0,r.A)(e,h),R=a.useRef(null),I=a.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,f.A)((()=>{i&&R.current.focus()}),[i]),a.useImperativeHandle(o,(()=>({adjustStyleForScrollbar:(e,t)=>{let{direction:o}=t;const n=!R.current.style.width;if(e.clientHeight{a.isValidElement(e)?(e.props.disabled||("selectedMenu"===x&&e.props.selected||-1===k)&&(k=t),k===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(k+=1,k>=s.length&&(k=-1))):k===t&&(k+=1,k>=s.length&&(k=-1))}));const E=a.Children.map(s,((e,t)=>{if(t===k){const t={};return l&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===x&&(t.tabIndex=0),a.cloneElement(e,t)}return e}));return(0,v.jsx)(p.A,(0,n.A)({role:"menu",ref:M,className:u,onKeyDown:e=>{const t=R.current,o=e.key,n=(0,c.A)(t).activeElement;if("ArrowDown"===o)e.preventDefault(),y(t,n,w,P,b);else if("ArrowUp"===o)e.preventDefault(),y(t,n,w,P,A);else if("Home"===o)e.preventDefault(),y(t,null,w,P,b);else if("End"===o)e.preventDefault(),y(t,null,w,P,A);else if(1===o.length){const r=I.current,a=o.toLowerCase(),i=performance.now();r.keys.length>0&&(i-r.lastTime>500?(r.keys=[],r.repeating=!0,r.previousKeyMatched=!0):r.repeating&&a!==r.keys[0]&&(r.repeating=!1)),r.lastTime=i,r.keys.push(a);const l=n&&!r.repeating&&g(n,r);r.previousKeyMatched&&(l||y(t,n,!1,P,b,r))?e.preventDefault():r.previousKeyMatched=!1}S&&S(e)},tabIndex:i?0:-1},C,{children:E}))}));var w=o(52014),S=o(59254),x=o(18463),C=o(21209),R=o(70827),I=o(40165),M=o(29120),k=o(2235),E=o(45558),F=o(1614);function O(e){return(0,F.Ay)("MuiPopover",e)}(0,E.A)("MuiPopover",["root","paper"]);const T=["onEntering"],N=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],L=["slotProps"];function B(e,t){let o=0;return"number"===typeof t?o=t:"center"===t?o=e.height/2:"bottom"===t&&(o=e.height),o}function j(e,t){let o=0;return"number"===typeof t?o=t:"center"===t?o=e.width/2:"right"===t&&(o=e.width),o}function D(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?"".concat(e,"px"):e)).join(" ")}function W(e){return"function"===typeof e?e():e}const z=(0,S.Ay)(M.A,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),U=(0,S.Ay)(k.A,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),H=a.forwardRef((function(e,t){var o,s,p;const d=(0,x.b)({props:e,name:"MuiPopover"}),{action:f,anchorEl:h,anchorOrigin:b={vertical:"top",horizontal:"left"},anchorPosition:A,anchorReference:g="anchorEl",children:y,className:P,container:S,elevation:M=8,marginThreshold:k=16,open:E,PaperProps:F={},slots:H,slotProps:K,transformOrigin:V={vertical:"top",horizontal:"left"},TransitionComponent:X=I.A,transitionDuration:_="auto",TransitionProps:{onEntering:q}={},disableScrollLock:Y=!1}=d,G=(0,r.A)(d.TransitionProps,T),J=(0,r.A)(d,N),Q=null!=(o=null==K?void 0:K.paper)?o:F,Z=a.useRef(),$=(0,m.A)(Z,Q.ref),ee=(0,n.A)({},d,{anchorOrigin:b,anchorReference:g,elevation:M,marginThreshold:k,externalPaperSlotProps:Q,transformOrigin:V,TransitionComponent:X,transitionDuration:_,TransitionProps:G}),te=(e=>{const{classes:t}=e;return(0,l.A)({root:["root"],paper:["paper"]},O,t)})(ee),oe=a.useCallback((()=>{if("anchorPosition"===g)return A;const e=W(h),t=(e&&1===e.nodeType?e:(0,c.A)(Z.current).body).getBoundingClientRect();return{top:t.top+B(t,b.vertical),left:t.left+j(t,b.horizontal)}}),[h,b.horizontal,b.vertical,A,g]),ne=a.useCallback((e=>({vertical:B(e,V.vertical),horizontal:j(e,V.horizontal)})),[V.horizontal,V.vertical]),re=a.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},o=ne(t);if("none"===g)return{top:null,left:null,transformOrigin:D(o)};const n=oe();let r=n.top-o.vertical,a=n.left-o.horizontal;const i=r+t.height,l=a+t.width,s=(0,R.A)(W(h)),u=s.innerHeight-k,c=s.innerWidth-k;if(null!==k&&ru){const e=i-u;r-=e,o.vertical+=e}if(null!==k&&ac){const e=l-c;a-=e,o.horizontal+=e}return{top:"".concat(Math.round(r),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:D(o)}}),[h,g,oe,ne,k]),[ae,ie]=a.useState(E),le=a.useCallback((()=>{const e=Z.current;if(!e)return;const t=re(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,ie(!0)}),[re]);a.useEffect((()=>(Y&&window.addEventListener("scroll",le),()=>window.removeEventListener("scroll",le))),[h,Y,le]);a.useEffect((()=>{E&&le()})),a.useImperativeHandle(f,(()=>E?{updatePosition:()=>{le()}}:null),[E,le]),a.useEffect((()=>{if(!E)return;const e=(0,C.A)((()=>{le()})),t=(0,R.A)(h);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[h,E,le]);let se=_;"auto"!==_||X.muiSupportAuto||(se=void 0);const ue=S||(h?(0,c.A)(W(h)).body:void 0),ce=null!=(s=null==H?void 0:H.root)?s:z,pe=null!=(p=null==H?void 0:H.paper)?p:U,de=(0,u.A)({elementType:pe,externalSlotProps:(0,n.A)({},Q,{style:ae?Q.style:(0,n.A)({},Q.style,{opacity:0})}),additionalProps:{elevation:M,ref:$},ownerState:ee,className:(0,i.A)(te.paper,null==Q?void 0:Q.className)}),me=(0,u.A)({elementType:ce,externalSlotProps:(null==K?void 0:K.root)||{},externalForwardedProps:J,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:ue,open:E},ownerState:ee,className:(0,i.A)(te.root,P)}),{slotProps:fe}=me,ve=(0,r.A)(me,L);return(0,v.jsx)(ce,(0,n.A)({},ve,!(0,w.A)(ce)&&{slotProps:fe,disableScrollLock:Y},{children:(0,v.jsx)(X,(0,n.A)({appear:!0,in:E,onEntering:(e,t)=>{q&&q(e,t),le()},onExited:()=>{ie(!1)},timeout:se},G,{children:(0,v.jsx)(pe,(0,n.A)({},de,{children:y}))}))}))}));var K=o(19608);function V(e){return(0,F.Ay)("MuiMenu",e)}(0,E.A)("MuiMenu",["root","paper","list"]);const X=["onEntering"],_=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],q={vertical:"top",horizontal:"right"},Y={vertical:"top",horizontal:"left"},G=(0,S.Ay)(H,{shouldForwardProp:e=>(0,K.A)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),J=(0,S.Ay)(U,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Q=(0,S.Ay)(P,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Z=a.forwardRef((function(e,t){var o,c;const p=(0,x.b)({props:e,name:"MuiMenu"}),{autoFocus:d=!0,children:m,className:f,disableAutoFocusItem:h=!1,MenuListProps:b={},onClose:A,open:g,PaperProps:y={},PopoverClasses:P,transitionDuration:w="auto",TransitionProps:{onEntering:S}={},variant:C="selectedMenu",slots:R={},slotProps:I={}}=p,M=(0,r.A)(p.TransitionProps,X),k=(0,r.A)(p,_),E=(0,s.I)(),F=(0,n.A)({},p,{autoFocus:d,disableAutoFocusItem:h,MenuListProps:b,onEntering:S,PaperProps:y,transitionDuration:w,TransitionProps:M,variant:C}),O=(e=>{const{classes:t}=e;return(0,l.A)({root:["root"],paper:["paper"],list:["list"]},V,t)})(F),T=d&&!h&&g,N=a.useRef(null);let L=-1;a.Children.map(m,((e,t)=>{a.isValidElement(e)&&(e.props.disabled||("selectedMenu"===C&&e.props.selected||-1===L)&&(L=t))}));const B=null!=(o=R.paper)?o:J,j=null!=(c=I.paper)?c:y,D=(0,u.A)({elementType:R.root,externalSlotProps:I.root,ownerState:F,className:[O.root,f]}),W=(0,u.A)({elementType:B,externalSlotProps:j,ownerState:F,className:O.paper});return(0,v.jsx)(G,(0,n.A)({onClose:A,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?q:Y,slots:{paper:B,root:R.root},slotProps:{root:D,paper:W},open:g,ref:t,transitionDuration:w,TransitionProps:(0,n.A)({onEntering:(e,t)=>{N.current&&N.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),S&&S(e,t)}},M),ownerState:F},k,{classes:P,children:(0,v.jsx)(Q,(0,n.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),A&&A(e,"tabKeyDown"))},actions:N,autoFocus:d&&(-1===L||h),autoFocusItem:T,variant:C},b,{className:(0,i.A)(O.list,b.className),children:m}))}))}))},22797:(e,t,o)=>{o.d(t,{A:()=>s,N:()=>l});var n=o(58168),r=o(45558),a=o(1614),i=o(63589);function l(e){return(0,a.Ay)("MuiFilledInput",e)}const s=(0,n.A)({},i.A,(0,r.A)("MuiFilledInput",["root","underline","input"]))},63976:(e,t,o)=>{o.d(t,{A:()=>a});o(9950);var n=o(23235),r=o(44414);const a=(0,n.A)((0,r.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},70006:(e,t,o)=>{o.d(t,{A:()=>oe});var n=o(58168),r=o(98587),a=o(9950),i=o(72004),l=o(64750),s=o(69688),u=o(37750),c=o(3484),p=o(95014),d=o(27402),m=o(89548),f=o(17239),v=o(45558),h=o(1614);function b(e){return(0,h.Ay)("MuiNativeSelect",e)}const A=(0,v.A)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var g=o(59254),y=o(19608),P=o(44414);const w=["className","disabled","error","IconComponent","inputRef","variant"],S=e=>{let{ownerState:t,theme:o}=e;return(0,n.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,n.A)({},o.vars?{backgroundColor:"rgba(".concat(o.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===o.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},["&.".concat(A.disabled)]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(o.vars||o).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(o.vars||o).shape.borderRadius,"&:focus":{borderRadius:(o.vars||o).shape.borderRadius},"&&&":{paddingRight:32}})},x=(0,g.Ay)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:y.A,overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.select,t[o.variant],o.error&&t.error,{["&.".concat(A.multiple)]:t.multiple}]}})(S),C=e=>{let{ownerState:t,theme:o}=e;return(0,n.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(o.vars||o).palette.action.active,["&.".concat(A.disabled)]:{color:(o.vars||o).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},R=(0,g.Ay)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t["icon".concat((0,m.A)(o.variant))],o.open&&t.iconOpen]}})(C),I=a.forwardRef((function(e,t){const{className:o,disabled:l,error:s,IconComponent:u,inputRef:p,variant:d="standard"}=e,f=(0,r.A)(e,w),v=(0,n.A)({},e,{disabled:l,variant:d,error:s}),h=(e=>{const{classes:t,variant:o,disabled:n,multiple:r,open:a,error:i}=e,l={select:["select",o,n&&"disabled",r&&"multiple",i&&"error"],icon:["icon","icon".concat((0,m.A)(o)),a&&"iconOpen",n&&"disabled"]};return(0,c.A)(l,b,t)})(v);return(0,P.jsxs)(a.Fragment,{children:[(0,P.jsx)(x,(0,n.A)({ownerState:v,className:(0,i.A)(h.select,o),disabled:l,ref:p||t},f)),e.multiple?null:(0,P.jsx)(R,{as:u,ownerState:v,className:h.icon})]})}));var M=o(43317),k=o(61960),E=o(31506),F=o(48733);function O(e){return(0,h.Ay)("MuiSelect",e)}const T=(0,v.A)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var N;const L=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],B=(0,g.Ay)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{["&.".concat(T.select)]:t.select},{["&.".concat(T.select)]:t[o.variant]},{["&.".concat(T.error)]:t.error},{["&.".concat(T.multiple)]:t.multiple}]}})(S,{["&.".concat(T.select)]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),j=(0,g.Ay)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t["icon".concat((0,m.A)(o.variant))],o.open&&t.iconOpen]}})(C),D=(0,g.Ay)("input",{shouldForwardProp:e=>(0,k.A)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function W(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function z(e){return null==e||"string"===typeof e&&!e.trim()}const U=a.forwardRef((function(e,t){var o;const{"aria-describedby":l,"aria-label":s,autoFocus:v,autoWidth:h,children:b,className:A,defaultOpen:g,defaultValue:y,disabled:w,displayEmpty:S,error:x=!1,IconComponent:C,inputRef:R,labelId:I,MenuProps:k={},multiple:T,name:U,onBlur:H,onChange:K,onClose:V,onFocus:X,onOpen:_,open:q,readOnly:Y,renderValue:G,SelectDisplayProps:J={},tabIndex:Q,value:Z,variant:$="standard"}=e,ee=(0,r.A)(e,L),[te,oe]=(0,F.A)({controlled:Z,default:y,name:"Select"}),[ne,re]=(0,F.A)({controlled:q,default:g,name:"Select"}),ae=a.useRef(null),ie=a.useRef(null),[le,se]=a.useState(null),{current:ue}=a.useRef(null!=q),[ce,pe]=a.useState(),de=(0,E.A)(t,R),me=a.useCallback((e=>{ie.current=e,e&&se(e)}),[]),fe=null==le?void 0:le.parentNode;a.useImperativeHandle(de,(()=>({focus:()=>{ie.current.focus()},node:ae.current,value:te})),[te]),a.useEffect((()=>{g&&ne&&le&&!ue&&(pe(h?null:fe.clientWidth),ie.current.focus())}),[le,h]),a.useEffect((()=>{v&&ie.current.focus()}),[v]),a.useEffect((()=>{if(!I)return;const e=(0,d.A)(ie.current).getElementById(I);if(e){const t=()=>{getSelection().isCollapsed&&ie.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[I]);const ve=(e,t)=>{e?_&&_(t):V&&V(t),ue||(pe(h?null:fe.clientWidth),re(e))},he=a.Children.toArray(b),be=e=>t=>{let o;if(t.currentTarget.hasAttribute("tabindex")){if(T){o=Array.isArray(te)?te.slice():[];const t=te.indexOf(e.props.value);-1===t?o.push(e.props.value):o.splice(t,1)}else o=e.props.value;if(e.props.onClick&&e.props.onClick(t),te!==o&&(oe(o),K)){const n=t.nativeEvent||t,r=new n.constructor(n.type,n);Object.defineProperty(r,"target",{writable:!0,value:{value:o,name:U}}),K(r,e)}T||ve(!1,t)}},Ae=null!==le&≠let ge,ye;delete ee["aria-invalid"];const Pe=[];let we=!1,Se=!1;((0,M.lq)({value:te})||S)&&(G?ge=G(te):we=!0);const xe=he.map((e=>{if(!a.isValidElement(e))return null;let t;if(T){if(!Array.isArray(te))throw new Error((0,u.A)(2));t=te.some((t=>W(t,e.props.value))),t&&we&&Pe.push(e.props.children)}else t=W(te,e.props.value),t&&we&&(ye=e.props.children);return t&&(Se=!0),a.cloneElement(e,{"aria-selected":t?"true":"false",onClick:be(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));we&&(ge=T?0===Pe.length?null:Pe.reduce(((e,t,o)=>(e.push(t),o{const{classes:t,variant:o,disabled:n,multiple:r,open:a,error:i}=e,l={select:["select",o,n&&"disabled",r&&"multiple",i&&"error"],icon:["icon","icon".concat((0,m.A)(o)),a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,c.A)(l,O,t)})(Me),Ee=(0,n.A)({},k.PaperProps,null==(o=k.slotProps)?void 0:o.paper),Fe=(0,p.A)();return(0,P.jsxs)(a.Fragment,{children:[(0,P.jsx)(B,(0,n.A)({ref:me,tabIndex:Ce,role:"combobox","aria-controls":Fe,"aria-disabled":w?"true":void 0,"aria-expanded":Ae?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[I,Ie].filter(Boolean).join(" ")||void 0,"aria-describedby":l,onKeyDown:e=>{if(!Y){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ve(!0,e))}},onMouseDown:w||Y?null:e=>{0===e.button&&(e.preventDefault(),ie.current.focus(),ve(!0,e))},onBlur:e=>{!Ae&&H&&(Object.defineProperty(e,"target",{writable:!0,value:{value:te,name:U}}),H(e))},onFocus:X},J,{ownerState:Me,className:(0,i.A)(J.className,ke.select,A),id:Ie,children:z(ge)?N||(N=(0,P.jsx)("span",{className:"notranslate",children:"\u200b"})):ge})),(0,P.jsx)(D,(0,n.A)({"aria-invalid":x,value:Array.isArray(te)?te.join(","):te,name:U,ref:ae,"aria-hidden":!0,onChange:e=>{const t=he.find((t=>t.props.value===e.target.value));void 0!==t&&(oe(t.props.value),K&&K(e,t))},tabIndex:-1,disabled:w,className:ke.nativeInput,autoFocus:v,ownerState:Me},ee)),(0,P.jsx)(j,{as:C,className:ke.icon,ownerState:Me}),(0,P.jsx)(f.A,(0,n.A)({id:"menu-".concat(U||""),anchorEl:fe,open:Ae,onClose:e=>{ve(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},k,{MenuListProps:(0,n.A)({"aria-labelledby":I,role:"listbox","aria-multiselectable":T?"true":void 0,disableListWrap:!0,id:Fe},k.MenuListProps),slotProps:(0,n.A)({},k.slotProps,{paper:(0,n.A)({},Ee,{style:(0,n.A)({minWidth:Re},null!=Ee?Ee.style:null)})}),children:xe}))]})}));var H=o(68624),K=o(39766),V=o(63976),X=o(82321),_=o(85685),q=o(2660),Y=o(18463);const G=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],J=["root"],Q={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,y.A)(e)&&"variant"!==e,slot:"Root"},Z=(0,g.Ay)(X.A,Q)(""),$=(0,g.Ay)(q.A,Q)(""),ee=(0,g.Ay)(_.A,Q)(""),te=a.forwardRef((function(e,t){const o=(0,Y.b)({name:"MuiSelect",props:e}),{autoWidth:u=!1,children:c,classes:p={},className:d,defaultOpen:m=!1,displayEmpty:f=!1,IconComponent:v=V.A,id:h,input:b,inputProps:A,label:g,labelId:y,MenuProps:w,multiple:S=!1,native:x=!1,onClose:C,onOpen:R,open:M,renderValue:k,SelectDisplayProps:F,variant:O="outlined"}=o,T=(0,r.A)(o,G),N=x?I:U,L=(0,K.A)(),B=(0,H.A)({props:o,muiFormControl:L,states:["variant","error"]}),j=B.variant||O,D=(0,n.A)({},o,{variant:j,classes:p}),W=(e=>{const{classes:t}=e;return t})(D),z=(0,r.A)(W,J),X=b||{standard:(0,P.jsx)(Z,{ownerState:D}),outlined:(0,P.jsx)($,{label:g,ownerState:D}),filled:(0,P.jsx)(ee,{ownerState:D})}[j],_=(0,E.A)(t,(0,s.A)(X));return(0,P.jsx)(a.Fragment,{children:a.cloneElement(X,(0,n.A)({inputComponent:N,inputProps:(0,n.A)({children:c,error:B.error,IconComponent:v,variant:j,type:void 0,multiple:S},x?{id:h}:{autoWidth:u,defaultOpen:m,displayEmpty:f,labelId:y,MenuProps:w,onClose:C,onOpen:R,open:M,renderValue:k,SelectDisplayProps:(0,n.A)({id:h},F)},A,{classes:A?(0,l.A)(z,A.classes):z},b?b.props.inputProps:{})},(S&&x||f)&&"outlined"===j?{notched:!0}:{},{ref:_,className:(0,i.A)(X.props.className,d,W.root)},!b&&{variant:j},T))})}));te.muiName="Select";const oe=te},82321:(e,t,o)=>{o.d(t,{A:()=>A});var n=o(98587),r=o(58168),a=o(9950),i=o(3484),l=o(64750),s=o(22302),u=o(59254),c=o(19608),p=o(18463),d=o(10465),m=o(44414);const f=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],v=(0,u.Ay)(s.Sh,{shouldForwardProp:e=>(0,c.A)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...(0,s.WC)(e,t),!o.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:o}=e;let n="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n="rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")")),(0,r.A)({position:"relative"},o.formControl&&{"label + &":{marginTop:16}},!o.disableUnderline&&{"&::after":{borderBottom:"2px solid ".concat((t.vars||t).palette[o.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(d.A.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(d.A.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(d.A.disabled,", .").concat(d.A.error,"):before")]:{borderBottom:"2px solid ".concat((t.vars||t).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(n)}},["&.".concat(d.A.disabled,":before")]:{borderBottomStyle:"dotted"}})})),h=(0,u.Ay)(s.f3,{name:"MuiInput",slot:"Input",overridesResolver:s.Oj})({}),b=a.forwardRef((function(e,t){var o,a,u,c;const b=(0,p.b)({props:e,name:"MuiInput"}),{disableUnderline:A,components:g={},componentsProps:y,fullWidth:P=!1,inputComponent:w="input",multiline:S=!1,slotProps:x,slots:C={},type:R="text"}=b,I=(0,n.A)(b,f),M=(e=>{const{classes:t,disableUnderline:o}=e,n={root:["root",!o&&"underline"],input:["input"]},a=(0,i.A)(n,d.B,t);return(0,r.A)({},t,a)})(b),k={root:{ownerState:{disableUnderline:A}}},E=(null!=x?x:y)?(0,l.A)(null!=x?x:y,k):k,F=null!=(o=null!=(a=C.root)?a:g.Root)?o:v,O=null!=(u=null!=(c=C.input)?c:g.Input)?u:h;return(0,m.jsx)(s.Ay,(0,r.A)({slots:{root:F,input:O},slotProps:E,fullWidth:P,inputComponent:w,multiline:S,ref:t,type:R},I,{classes:M}))}));b.muiName="Input";const A=b},85685:(e,t,o)=>{o.d(t,{A:()=>A});var n=o(98587),r=o(58168),a=o(9950),i=o(64750),l=o(3484),s=o(22302),u=o(59254),c=o(19608),p=o(18463),d=o(22797),m=o(44414);const f=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],v=(0,u.Ay)(s.Sh,{shouldForwardProp:e=>(0,c.A)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...(0,s.WC)(e,t),!o.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:o}=e;var n;const a="light"===t.palette.mode,i=a?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",l=a?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=a?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",u=a?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,r.A)({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:l,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:l}},["&.".concat(d.A.focused)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:l},["&.".concat(d.A.disabled)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:u}},!o.disableUnderline&&{"&::after":{borderBottom:"2px solid ".concat(null==(n=(t.vars||t).palette[o.color||"primary"])?void 0:n.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(d.A.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(d.A.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")"):i),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(d.A.disabled,", .").concat(d.A.error,"):before")]:{borderBottom:"1px solid ".concat((t.vars||t).palette.text.primary)},["&.".concat(d.A.disabled,":before")]:{borderBottomStyle:"dotted"}},o.startAdornment&&{paddingLeft:12},o.endAdornment&&{paddingRight:12},o.multiline&&(0,r.A)({padding:"25px 12px 8px"},"small"===o.size&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.hiddenLabel&&"small"===o.size&&{paddingTop:8,paddingBottom:9}))})),h=(0,u.Ay)(s.f3,{name:"MuiFilledInput",slot:"Input",overridesResolver:s.Oj})((e=>{let{theme:t,ownerState:o}=e;return(0,r.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===o.size&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0},o.hiddenLabel&&"small"===o.size&&{paddingTop:8,paddingBottom:9},o.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})})),b=a.forwardRef((function(e,t){var o,a,u,c;const b=(0,p.b)({props:e,name:"MuiFilledInput"}),{components:A={},componentsProps:g,fullWidth:y=!1,inputComponent:P="input",multiline:w=!1,slotProps:S,slots:x={},type:C="text"}=b,R=(0,n.A)(b,f),I=(0,r.A)({},b,{fullWidth:y,inputComponent:P,multiline:w,type:C}),M=(e=>{const{classes:t,disableUnderline:o}=e,n={root:["root",!o&&"underline"],input:["input"]},a=(0,l.A)(n,d.N,t);return(0,r.A)({},t,a)})(b),k={root:{ownerState:I},input:{ownerState:I}},E=(null!=S?S:g)?(0,i.A)(k,null!=S?S:g):k,F=null!=(o=null!=(a=x.root)?a:A.Root)?o:v,O=null!=(u=null!=(c=x.input)?c:A.Input)?u:h;return(0,m.jsx)(s.Ay,(0,r.A)({slots:{root:F,input:O},componentsProps:E,fullWidth:y,inputComponent:P,multiline:w,ref:t,type:C},R,{classes:M}))}));b.muiName="Input";const A=b}}]); \ No newline at end of file diff --git a/build/static/js/6015.055567a3.chunk.js b/build/static/js/6015.055567a3.chunk.js new file mode 100644 index 0000000..ec1b787 --- /dev/null +++ b/build/static/js/6015.055567a3.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[6015],{855:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(68106),s=n(82522),r=n(65908);function o(e){var t,n;let o,l,{children:a,type:c="scale",direction:d="right",offset:h=10,scale:p={hover:1.05,tap:.95}}=e;switch(d){case"up":case"left":o=h,l=0;break;default:o=0,l=h}const[x,u]=(0,i.Y)(o,l),[m,f]=(0,i.Y)(o,l);switch(c){case"rotate":return(0,r.jsx)(s.P.div,{animate:{rotate:360},transition:{repeat:1/0,repeatType:"loop",duration:2,repeatDelay:0},children:a});case"slide":return"up"===d||"down"===d?(0,r.jsx)(s.P.div,{animate:{y:void 0!==m?m:""},onHoverEnd:()=>f(),onHoverStart:()=>f(),children:a}):(0,r.jsx)(s.P.div,{animate:{x:void 0!==x?x:""},onHoverEnd:()=>u(),onHoverStart:()=>u(),children:a});default:return"number"===typeof p&&(p={hover:p,tap:p}),(0,r.jsx)(s.P.div,{whileHover:{scale:null===(t=p)||void 0===t?void 0:t.hover},whileTap:{scale:null===(n=p)||void 0===n?void 0:n.tap},children:a})}}},23787:(e,t,n)=>{"use strict";n.d(t,{FG:()=>x,nV:()=>h,pY:()=>u,pg:()=>p});var i=n(22555),s=n(53986),r=n(71392),o=n(55235),l=n(48738),a=n(2866),c=n(65908);const d=["children","scroll","onScroll","sx"],h=e=>{let{children:t,scroll:n=!1,onScroll:o,sx:l}=e,a=(0,s.A)(e,d);return(0,c.jsx)(r.A,(0,i.A)((0,i.A)({spacing:1.25,onScroll:o,sx:(0,i.A)((0,i.A)({p:1.5},n&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),l)},a),{},{children:t}))},p=e=>{let{accent:t="#662582",header:n,footer:s,selected:r=!1,onClick:a,children:d,sx:h}=e;return(0,c.jsxs)(o.A,{elevation:0,onClick:a,sx:(0,i.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:r?t:"#e2e8f0",background:r?"".concat(t,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},h),children:[(0,c.jsx)(l.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:t}}),(0,c.jsxs)(l.A,{sx:{p:1.5,pl:2},children:[n,d,s]})]})},x=e=>{let{children:t,columns:n=2,sx:s}=e;return(0,c.jsx)(l.A,{sx:(0,i.A)({display:"grid",gridTemplateColumns:"repeat(".concat(n,", minmax(0, 1fr))"),gap:1,mt:1.25},s),children:t})},u=e=>{let{label:t,value:n,children:i,full:s=!1,align:r="left"}=e;return(0,c.jsxs)(l.A,{sx:{gridColumn:s?"1 / -1":"auto",minWidth:0,textAlign:r},children:[(0,c.jsx)(a.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:t}),(0,c.jsx)(l.A,{sx:{mt:.25,minWidth:0},children:void 0!==i?i:(0,c.jsx)(a.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==n&&void 0!==n?n:"\u2014"})})]})}},39009:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ge});var i=n(22555),s=n(85672),r=n(66157),o=n(60549),l=n.n(o),a=n(79829),c=n(46077),d=n.n(c),h=n(96515),p=n(69039),x=n(76264),u=n(13659),m=n(79520),f=n(15227),g=n(48738),A=n(71392),v=n(2866),j=n(81062),b=n(1939),S=n(84007),y=n(17488),C=n(86270),w=n(43318),k=n(80911),Y=n(12010),P=n(23440),R=n(11969),z=n(83209),W=n(55235),I=n(72486),T=n(54016),E=n(50755),M=n(1596),N=n(81802),D=n(58689),H=n(19619),L=n(29398),F=n(29776),O=n(58571),B=n(5670),q=n(76495),V=n(83900),K=n(28579),U=n(17450),J=n(91939),G=n(65293),_=n(12557),Z=n(51808),Q=n(88664),X=n(96048),$=n(3273),ee=n(13763),te=n(50728),ne=n(36444),ie=n(36563),se=n(35267),re=n(26777),oe=n(38464),le=n(81600),ae=n(15172),ce=n(48952),de=n(52351),he=n(94826),pe=(n(855),n(23787)),xe=(n(42041),n(65908)),ue=n(22686);d().extend(ue);const me={fontSize:11.5,fontWeight:700,color:"#475569",py:.75,px:1},fe={fontSize:12,py:.6,px:1},ge=()=>{const e=(0,h.Zp)(),t=(0,p.A)(),n=(0,x.A)(t.breakpoints.down("md")),o=(0,s.useRef)(null),c=(0,s.useRef)(null),ue=localStorage.getItem("userid"),[ge,Ae]=(0,s.useState)([]),[ve,je]=(0,s.useState)([]),[be,Se]=(0,s.useState)([]),[ye,Ce]=(0,s.useState)(!1),[we,ke]=(0,s.useState)(!1),[Ye,Pe]=(0,s.useState)(0),[Re,ze]=(0,s.useState)(0),[We,Ie]=(0,s.useState)(0),[Te,Ee]=(0,s.useState)(null),[Me,Ne]=(0,s.useState)(null),[De,He]=(0,s.useState)(0),[Le,Fe]=(0,s.useState)(0),[Oe,Be]=(0,s.useState)(0),[qe,Ve]=(0,s.useState)(null),[Ke,Ue]=(0,s.useState)([]),[Je,Ge]=(0,s.useState)([]),[_e,Ze]=(0,s.useState)(!1),[Qe,Xe]=(0,s.useState)(""),[$e,et]=(0,s.useState)(d()().format("MM-DD-YYYY")),[tt,nt]=(0,s.useState)(""),[it,st]=(0,s.useState)(null),[rt,ot]=(0,s.useState)(null),[lt,at]=(0,s.useState)(""),[ct,dt]=(0,s.useState)(),[ht,pt]=(0,s.useState)(0),[xt,ut]=(0,s.useState)(0),[mt,ft]=(0,s.useState)(0),[gt,At]=(0,s.useState)(0),[vt,jt]=(0,s.useState)(null),[bt,St]=(0,s.useState)([]),[yt,Ct]=(0,s.useState)(""),wt=(0,s.useRef)({}),kt=(e,t,n)=>{(0,u.M8)(e,{variant:t,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:n||1500})},Yt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3;const i="".concat(t,"-").concat(e);wt.current[i]||(kt(e,t,n),wt.current[i]=!0,setTimeout((()=>delete wt.current[i]),3e3))};(0,s.useEffect)((()=>{ze(0),Ee(null),Ie(0),Ne(null),Se([]),Ve(null),Ue([]),St([]),jt(null),Ct(""),st(null),ot(null),nt("")}),[Ye]),(0,s.useEffect)((()=>{Ie(0),Ne(null),Ue([]),St([]),jt(null),Ct("")}),[Re]);(0,s.useEffect)((()=>{(async()=>{Ce(!0);try{const e=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(ue));Ae(e.data.details||[])}catch(e){Yt(e.message,"error",5e3)}finally{Ce(!1)}})()}),[]);(0,s.useEffect)((()=>{Ye&&(async()=>{Ce(!0);try{const e=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenants/?applocationid=").concat(Ye,"&status=active"));if(e.data.status){const t=(e.data.details||[]).map((e=>(0,i.A)((0,i.A)({},e),{},{label:"".concat(e.tenantname)})));je(t)}}catch(e){Yt("Failed to load clients","warning",3e3)}finally{Ce(!1)}})()}),[Ye]);(0,s.useEffect)((()=>{if(!Re)return;const e=setTimeout((()=>{(""===Qe||Qe.length>2)&&(async()=>{try{const e=""===Qe?"".concat("https://jupiter.nearle.app/live/api/v1","/customers/gettenantcustomers/?tenantid=").concat(Re,"&pageno=1&pagesize=30"):"".concat("https://jupiter.nearle.app/live/api/v1","/customers/search/?tenantid=").concat(Re,"&keyword=").concat(Qe),t=await r.A.get(e);t.data.status&&Ge(t.data.details||[])}catch(e){console.log(e),kt("server error","warning")}})()}),250);return()=>clearTimeout(e)}),[Qe,Re]),(0,s.useEffect)((()=>{let e=0,t=0,n=0,i=0;Ke.forEach((s=>{e+=Number(s.distance)||0,t+=Number(s.totalcharge)||0,n+=Number(s.quantity)||0,i+=Number(s.collectionamt)||0})),pt(e),ut(t),ft(n),At(i)}),[Ke]);const Pt=async e=>{try{if(!e||"object"!==typeof e)throw new Error("Invalid customer data.");if(!qe||"object"!==typeof qe)throw new Error("Origin (pickCust) data missing or invalid.");const t=await(0,m.F)(qe,e);return{roundedDistance:t,totalcharge:(0,m.D)(t,De,Le,Oe)}}catch(t){throw t.message.includes("Origin")||t.message.includes("customer")||t.message.includes("coordinates")?Yt("Missing or invalid input data for distance calculation.","warning",3e3):Yt("Unexpected error during distance calculation.","error",3e3),t}},Rt=async e=>{let t=!1;if(Ue((n=>(t=n.some((t=>t.firstname===e.firstname)),t?n.filter((t=>t.firstname!==e.firstname)):n))),!t){Ce(!0);try{const{roundedDistance:t,totalcharge:n}=await Pt(e);Ue((s=>s.some((t=>t.firstname===e.firstname))?s:[...s,(0,i.A)((0,i.A)({},e),{},{distance:t,totalcharge:n})]))}catch(n){console.error("Failed to calculate distance:",n)}finally{Ce(!1)}}};(0,s.useEffect)((()=>{Ye&&(async()=>{try{const e=await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getapplocationconfig/?applocationid=").concat(Ye));if(e.data.status){const t=e.data.details.applocationadmins.map((e=>e.userfcmtokem));dt(t)}}catch(e){console.log(e)}})()}),[Ye]);const zt=e=>null===e||void 0===e?void 0:e.toString().trim().toLowerCase().replace(/\s+/g,""),Wt={"pickupdate(yyyy-mmm-dd)":"date","sendername*":"locationname","senderphone*":"locationcontact","senderaddress*":"locationaddress","receivername*":"firstname",receiverphone:"contactno","receiveralternatephone*":"altcontactno",receiverfulladdress:"address",receiverlatitude:"latitude",receiverlongitude:"longitude","itemdescription*":"description",Quantity:"quantity"," Collect Cash":"collectionamt",customerDeliveryTime:"customerdeliverytime",kitchenPickupTime:"kitchenpickuptime"},It=(e,t)=>{Ue((n=>n.map((n=>n.customerid===e?(0,i.A)((0,i.A)({},n),{},{quantity:Number(t)||0}):n))))},Tt=(e,t)=>{Ue((n=>n.map((n=>n.customerid===e?(0,i.A)((0,i.A)({},n),{},{collectionamt:Number(t)||0}):n))))},Et={location:!!Ye,client:!!Re,business:!!We,schedule:!!rt,drops:Ke.length>0},Mt=Et.location&&Et.client&&Et.business&&Et.schedule&&Et.drops,Nt=Ke.length>0?"drops":bt.length>0?"preview":"empty";return(0,xe.jsxs)(xe.Fragment,{children:[ye&&(0,xe.jsx)(de.A,{}),(0,xe.jsx)(f.A,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:we,children:(0,xe.jsx)(he.A,{color:"inherit"})}),(0,xe.jsxs)(g.A,{className:"orders-workspace-bg",sx:{height:{xs:"auto",md:"calc(100vh - 64px)"},minHeight:{xs:"calc(100vh - 64px)",md:0},display:"flex",flexDirection:"column",overflow:{xs:"visible",md:"hidden"},p:{xs:.75,sm:1.25},gap:1},children:[(0,xe.jsxs)(A.A,{direction:"row",alignItems:"center",gap:1,flexWrap:"wrap",sx:{flexShrink:0,px:.5},children:[(0,xe.jsx)(v.A,{sx:{fontWeight:700,fontSize:{xs:16,sm:17},color:"#1e293b",lineHeight:1.2},children:"Create Multiple Orders"}),(0,xe.jsx)(j.A,{size:"small",label:"".concat(Ke.length," drop").concat(1===Ke.length?"":"s"),sx:{height:20,fontSize:10.5,fontWeight:700,bgcolor:Ke.length?"rgba(24,144,255,0.10)":"#f1f5f9",color:Ke.length?"#1890ff":"#94a3b8",border:"1px solid ".concat(Ke.length?"rgba(24,144,255,0.25)":"#e2e8f0")}}),(0,xe.jsx)(g.A,{sx:{flex:1}}),(0,xe.jsx)(v.A,{sx:{fontSize:11,color:"#94a3b8",display:{xs:"none",md:"block"}},children:"Bulk-create deliveries from CSV/Excel or saved customers."})]}),(0,xe.jsxs)(b.Ay,{container:!0,spacing:1.25,sx:{flex:1,minHeight:0,overflow:{xs:"visible",md:"hidden"}},children:[(0,xe.jsxs)(b.Ay,{item:!0,xs:12,md:6,sx:{height:{xs:"auto",md:"100%"},minHeight:0,display:"flex",flexDirection:"column",gap:{xs:1.25,md:2.25},overflowY:{xs:"visible",md:"auto"},pr:{xs:0,md:.75}},children:[(0,xe.jsxs)(S.A,{className:"orders-card",sx:{p:2,flexShrink:0},children:[(0,xe.jsx)(g.A,{className:"section-title-bar",sx:{mb:1.5},children:(0,xe.jsx)(v.A,{sx:{fontWeight:700,color:"#1e293b",fontSize:13.5,letterSpacing:"-0.01em"},children:"Setup"})}),(0,xe.jsxs)(b.Ay,{container:!0,spacing:1.75,children:[(0,xe.jsx)(b.Ay,{item:!0,xs:12,sm:4,children:(0,xe.jsx)(y.A,{fullWidth:!0,size:"small",ref:o,className:"header-compact-input",options:ge||[],getOptionLabel:e=>"".concat(e.locationname),onChange:(e,t,n)=>{"clear"===n?Pe(0):t&&Pe(t.applocationid)},renderInput:e=>(0,xe.jsx)(C.A,(0,i.A)((0,i.A)({},e),{},{size:"small",placeholder:"Choose Location",label:"Location",InputLabelProps:{shrink:!0},className:"header-compact-tf",InputProps:(0,i.A)((0,i.A)({},e.InputProps),{},{startAdornment:(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(ae.sIY,{style:{color:"#94a3b8",fontSize:12,marginRight:6,flexShrink:0}}),e.InputProps.startAdornment]})})}))})}),(0,xe.jsx)(b.Ay,{item:!0,xs:12,sm:4,children:(0,xe.jsx)(y.A,{fullWidth:!0,size:"small",className:"header-compact-input",options:ve||[],value:Te,getOptionLabel:e=>(null===e||void 0===e?void 0:e.tenantname)||"",isOptionEqualToValue:(e,t)=>e.tenantid===t.tenantid,onOpen:e=>{Ye||(e.preventDefault(),Yt("Please select Location first!","warning",3e3),setTimeout((()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.focus()}),0))},onChange:(e,t,n)=>{"clear"===n?(ze(0),Ee(null)):t&&(ze(t.tenantid),Ee(t),(async e=>{try{const t=(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantpricing/?tenantid=").concat(e))).data.details||{};He(t.baseprice||0),Fe(t.priceperkm||0),Be(t.minkm||0)}catch(t){console.log("fetchTenantPricing error",t)}})(t.tenantid),(async e=>{try{const t=(await r.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantlocations/?tenantid=").concat(e))).data.details||[];1===t.length?(Se(t),Ve(t[0]),Ie(t[0].locationid),Ne(t[0]),st(t[0].slots)):Se(t)}catch(t){console.log("gettenantlocations",t)}})(t.tenantid))},renderInput:e=>(0,xe.jsx)(C.A,(0,i.A)((0,i.A)({},e),{},{size:"small",placeholder:"Choose Client",label:"Client",inputRef:c,InputLabelProps:{shrink:!0},className:"header-compact-tf",InputProps:(0,i.A)((0,i.A)({},e.InputProps),{},{startAdornment:(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(le.x$1,{style:{color:"#94a3b8",fontSize:11,marginRight:6,flexShrink:0}}),e.InputProps.startAdornment]})})}))})}),(0,xe.jsx)(b.Ay,{item:!0,xs:12,sm:4,children:1===be.length?(0,xe.jsx)(C.A,{variant:"outlined",fullWidth:!0,size:"small",label:"Business Location",value:be[0].locationname,InputLabelProps:{shrink:!0},className:"header-compact-tf",InputProps:{style:{color:t.palette.primary.main},startAdornment:(0,xe.jsx)(Q.A,{style:{color:"#94a3b8",fontSize:14,marginRight:6,flexShrink:0}})}}):(0,xe.jsx)(y.A,{fullWidth:!0,size:"small",className:"header-compact-input",value:Me,options:be||[],getOptionLabel:e=>null!==e&&void 0!==e&&e.locationname?"".concat(e.locationname," (").concat(e.suburb||"",")"):"",onOpen:e=>{Ye||Re?Re||(e.preventDefault(),Yt("Please select Client first!","warning",3e3),setTimeout((()=>{var e;return null===(e=c.current)||void 0===e?void 0:e.focus()}),0)):(e.preventDefault(),Yt("Please select Location and Client first!","warning",3e3),setTimeout((()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.focus()}),0))},onChange:(e,t,n)=>{"clear"!==n&&t?(Ie(t.locationid||0),Ne(t),Ve(t),st(null===t||void 0===t?void 0:t.slots)):(Ie(0),Ne(null),Ve(null),st(null))},renderInput:e=>(0,xe.jsx)(C.A,(0,i.A)((0,i.A)({},e),{},{size:"small",placeholder:"Business Location",label:"Business Location",InputLabelProps:{shrink:!0},className:"header-compact-tf",InputProps:(0,i.A)((0,i.A)({},e.InputProps),{},{startAdornment:(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(Q.A,{style:{color:"#94a3b8",fontSize:14,marginRight:6,flexShrink:0}}),e.InputProps.startAdornment]})})}))})})]})]}),(0,xe.jsxs)(S.A,{className:"orders-card",sx:{p:2,flexShrink:0},children:[(0,xe.jsx)(g.A,{className:"section-title-bar section-title-bar--accent",sx:{mb:1.5},children:(0,xe.jsx)(v.A,{sx:{fontWeight:700,color:"#1e293b",fontSize:13.5,letterSpacing:"-0.01em"},children:"Schedule & Pickup"})}),(0,xe.jsxs)(b.Ay,{container:!0,spacing:1.75,children:[(0,xe.jsx)(b.Ay,{item:!0,xs:12,sm:6,children:(0,xe.jsx)(G.$,{dateAdapter:_.R,children:(0,xe.jsx)(J.l,{label:"Pickup Date",format:"DD-MM-YYYY",value:$e?d()($e):null,onChange:e=>{if(!e||!d()(e).isValid())return void et(d()().format("MM-DD-YYYY"));d()().diff(d()("".concat(d()(e).format("YYYY-MM-DD"))),"d")<=0?(et(d()(e).format("MM-DD-YYYY")),nt(""),ot(null)):(kt("Choose an upcoming date","warning"),et(d()().format("MM-DD-YYYY")))},disablePast:!0,slotProps:{textField:{size:"small",fullWidth:!0,InputLabelProps:{shrink:!0},InputProps:{startAdornment:(0,xe.jsx)(w.A,{position:"start",children:(0,xe.jsx)(X.A,{style:{color:"#94a3b8",fontSize:"13px"}})})},sx:{"& .MuiOutlinedInput-root":{borderRadius:"10px",height:"36px",paddingLeft:"10px"}}}}})})}),(0,xe.jsx)(b.Ay,{item:!0,xs:12,sm:6,children:(0,xe.jsx)(y.A,{size:"small",fullWidth:!0,options:it||[],sx:{"& .MuiOutlinedInput-root":{borderRadius:"10px",height:"36px"}},onChange:(e,t,n)=>{if("clear"===n||!t)return nt(null),void ot(null);if(!t.time)return void Yt("This slot has no time configured.","warning",3e3);const i=d()(t.time,"HH:mm").format("hh:mm A");nt(i);const s=d()("".concat($e," ").concat(i),"MM-DD-YYYY hh:mm A").format("YYYY-MM-DD hh:mm A");ot(s)},getOptionLabel:e=>e?"".concat(e.name," (").concat(d()(e.time,"HH:mm").format("hh:mm A"),")"):"",renderInput:e=>(0,xe.jsx)(C.A,(0,i.A)((0,i.A)({},e),{},{label:"Pickup Slot",placeholder:"Select Pickup Slot",fullWidth:!0,InputLabelProps:{shrink:!0},sx:{"& .MuiOutlinedInput-root":{borderRadius:"10px",height:"36px"}},InputProps:(0,i.A)((0,i.A)({},e.InputProps),{},{startAdornment:(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)($.A,{style:{color:"#94a3b8",fontSize:"13px",marginRight:"6px",marginLeft:"2px",flexShrink:0}}),e.InputProps.startAdornment]})})}))})}),(0,xe.jsx)(b.Ay,{item:!0,xs:12,children:qe?(0,xe.jsxs)(A.A,{direction:"row",spacing:1.25,alignItems:"center",sx:{border:"1px solid #eef2f6",borderLeft:"3px solid #1890ff",borderRadius:"10px",px:1.25,py:.75,bgcolor:"#fbfcff"},children:[(0,xe.jsx)(g.A,{sx:{width:28,height:28,borderRadius:"8px",background:"linear-gradient(135deg,#1890ff,#096dd9)",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,fontSize:12,boxShadow:"0 4px 10px rgba(24,144,255,0.30)"},children:(0,xe.jsx)(ae.sIY,{})}),(0,xe.jsxs)(g.A,{sx:{minWidth:0,flex:1},children:[(0,xe.jsx)(v.A,{sx:{fontSize:12.5,fontWeight:700,color:"#1e293b",lineHeight:1.2},noWrap:!0,children:qe.locationname||"\u2014"}),(0,xe.jsx)(v.A,{sx:{fontSize:11,color:"#64748b",lineHeight:1.3},noWrap:!0,children:qe.address||"\u2014"})]})]}):(0,xe.jsx)(v.A,{sx:{color:"#94a3b8",fontSize:12},children:"Pickup auto-fills once a Business Location is selected."})})]})]}),(0,xe.jsxs)(S.A,{className:"orders-card delivery-prefs-card",sx:{p:2,flexShrink:0},children:[(0,xe.jsxs)(g.A,{className:"delivery-prefs-header",sx:{mb:1},children:[(0,xe.jsx)(v.A,{className:"delivery-prefs-title",children:"Order Notes"}),(0,xe.jsx)(v.A,{className:"delivery-prefs-sub",children:"Applied to every order"})]}),(0,xe.jsx)(g.A,{className:"delivery-prefs-row",children:(0,xe.jsxs)(g.A,{className:"delivery-prefs-field",sx:{width:"100%"},children:[(0,xe.jsxs)("label",{className:"delivery-prefs-label",htmlFor:"bulk-dispatch-notes-input",children:[(0,xe.jsx)(ee.A,{style:{fontSize:11,color:"#65387a"}}),"Special Dispatch Notes"]}),(0,xe.jsx)(C.A,{id:"bulk-dispatch-notes-input",size:"small",fullWidth:!0,placeholder:"Gate codes, call instructions, special cargo care\u2026",value:lt,onChange:e=>at(e.target.value),sx:{"& .MuiOutlinedInput-root":{borderRadius:"10px",padding:"0 10px",alignItems:"center",fontSize:"12px",background:"#ffffff",height:"32px"},"& .MuiOutlinedInput-input":{padding:"0 !important",fontSize:"12px !important",lineHeight:"32px"}}})]})})]}),(0,xe.jsxs)(S.A,{className:"orders-card pricing-summary-card",sx:{flexShrink:0,p:"16px 18px !important"},children:[(0,xe.jsxs)(g.A,{className:"pricing-header",sx:{mb:1.5,pb:1},children:[(0,xe.jsx)(v.A,{className:"pricing-title",sx:{fontSize:"13px !important"},children:"Bulk Summary"}),(0,xe.jsx)(v.A,{className:"pricing-subtitle",sx:{fontSize:"10px !important"},children:"Live totals"})]}),(()=>{const e=e=>{let{icon:t,label:n,value:s,accent:r,active:o}=e;return(0,xe.jsxs)(g.A,{sx:(0,i.A)({bgcolor:"#fff",border:"1px solid #eef2f6",borderRadius:"10px",px:1,py:.75,display:"flex",alignItems:"center",gap:.85,minWidth:0,transition:"border-color 0.2s, box-shadow 0.2s"},o&&{borderColor:"".concat(r,"55"),boxShadow:"0 2px 6px -2px ".concat(r,"33")}),children:[(0,xe.jsx)(g.A,{sx:{width:26,height:26,borderRadius:"8px",bgcolor:"".concat(r,"18"),color:r,display:"flex",alignItems:"center",justifyContent:"center",fontSize:12,flexShrink:0},children:(0,xe.jsx)(t,{})}),(0,xe.jsxs)(g.A,{sx:{minWidth:0,flex:1},children:[(0,xe.jsx)(v.A,{sx:{fontSize:9.5,fontWeight:600,color:"#94a3b8",letterSpacing:.4,textTransform:"uppercase",lineHeight:1},children:n}),(0,xe.jsx)(v.A,{sx:{fontSize:13.5,fontWeight:800,color:o?"#1e293b":"#94a3b8",lineHeight:1.2,mt:.25},noWrap:!0,children:s})]})]})};return(0,xe.jsxs)(b.Ay,{container:!0,spacing:1.25,children:[(0,xe.jsx)(b.Ay,{item:!0,xs:6,children:e({icon:le.$Fg,label:"Distance",value:ht?"".concat(ht," km"):"\u2014",accent:"#1890ff",active:!!ht})}),(0,xe.jsx)(b.Ay,{item:!0,xs:6,children:e({icon:le.H5e,label:"Quantity",value:mt||0,accent:"#16a34a",active:!!mt})}),(0,xe.jsx)(b.Ay,{item:!0,xs:6,children:e({icon:le.MxO,label:"Cash Collect",value:"\u20b9".concat(Number(gt).toFixed(2)),accent:"#d97706",active:!!gt})}),(0,xe.jsx)(b.Ay,{item:!0,xs:6,children:e({icon:le.dv1,label:"Deliveries",value:Ke.length,accent:"#65387a",active:Ke.length>0})})]})})(),Ke.length>0&&(0,xe.jsxs)("div",{className:"total-charge-badge",style:{marginTop:14,padding:"10px 14px"},children:[(0,xe.jsxs)("div",{className:"total-charge-left",children:[(0,xe.jsx)(le.wTh,{className:"total-charge-icon"}),(0,xe.jsx)("div",{className:"total-charge-label",children:"Total Charge"})]}),(0,xe.jsxs)("div",{className:"total-charge-val",style:{fontSize:17},children:["\u20b9",Number(xt).toFixed(2)]})]}),(0,xe.jsx)(g.A,{sx:{mt:1.75},children:(0,xe.jsx)(k.A,{fullWidth:!0,className:"gradient-btn-create",disabled:!Mt||we,startIcon:!we&&(0,xe.jsx)(le.Cer,{style:{fontSize:11}}),onClick:async()=>{if(!Re)return void kt("Choose Client","warning");if(!qe)return void kt("Pickup location required","warning");if(!rt)return void kt("Select a pickup slot","warning");if(!Ke.length)return void kt("Add at least one drop customer","warning");const t=(()=>{if(rt){const e=d()(rt,["YYYY-MM-DD hh:mm A","YYYY-MM-DD HH:mm:ss"]);if(e.isValid())return e.format("YYYY-MM-DD HH:mm:ss")}if($e&&tt){const e=d()("".concat(d()($e).format("YYYY-MM-DD")," ").concat(tt),["YYYY-MM-DD hh:mm A","YYYY-MM-DD HH:mm:ss"]);if(e.isValid())return e.format("YYYY-MM-DD HH:mm:ss")}return d()().format("YYYY-MM-DD HH:mm:ss")})(),n=Ke.map((e=>{var n,i,s,r;return{applocationid:qe.applocationid,configid:9,partnerid:qe.partnerid,partneruserid:+ue,paymentstatus:1,paymenttype:42,pickupaddress:qe.address||"",pickupcity:qe.city||"",pickupcontactno:qe.contactno||"",pickupcustomer:qe.locationname||"",pickuplandmark:qe.landmark||"",pickuplat:qe.latitude,pickuplocation:qe.suburb||"",pickuplocationid:qe.locationid||0,pickuplong:qe.longitude,tenantid:qe.tenantid,customerid:+(null===e||void 0===e?void 0:e.customerid),deliveryaddress:e.address||"",deliverycharge:+e.totalcharge||0,deliverycity:e.city||"",deliverycontactno:(null===(n=e.contactno)||void 0===n?void 0:n.toString())||"",deliverycustomer:e.firstname||"",deliveryid:+e.customerid,deliverylandmark:e.landmark||"",deliverylat:(null===(i=e.latitude)||void 0===i?void 0:i.toString())||"",deliverylocation:e.suburb||"",deliverylocationid:e.deliverylocationid||0,deliverylong:(null===(s=e.longitude)||void 0===s?void 0:s.toString())||"",deliverytime:t,deliverytype:"B",itemcount:1,quantity:e.quantity,collectionamt:e.collectionamt,kms:(null===(r=e.distance)||void 0===r?void 0:r.toString())||"0",locationid:+qe.locationid,moduleid:+qe.moduleid,orderamount:+e.totalcharge||0,ordercharges:0,orderdate:d()().format("YYYY-MM-DD HH:mm:ss"),ordernotes:lt,orderstatus:"created",ordervalue:+e.totalcharge||0,pickupSlot:rt}}));Ce(!0),ke(!0);try{const t=await r.A.post("".concat("https://jupiter.nearle.app/live/api/v1","/orders/createorders"),n);var i;if(t.data.status)kt("Orders Created Successfully","success",2e3),ct&&(async()=>{try{"Success"===(await r.A.post("".concat("https://jupiter.nearle.app/live/api/v1","/utils/sendnotifications"),{priority:"high",registration_ids:ct,data:{accessid:"AAAAILMpCEU:APA91bEavuOllBI6sFgYtxXAgNmAVwNA-MnCMHLGlR4_t7UqpLajAkdn3T0CZr_zaLBknLyim9ytFLMZgbeXmKqTad_PKCbqlYjHpaizVrLXtecxqyEy4UktIacK2UvHVUATHL-7VQQk"},notification:{title:"Nearle Merchant",body:"An Order has been placed successfully, kindly process the same",sound:"ring"}})).data.message&&kt("Notification sent Successfully","success",1e3)}catch(e){kt(e.message,"error",1e3)}})(),e("/nearle/orders");else kt((null===t||void 0===t||null===(i=t.data)||void 0===i?void 0:i.message)||"Order creation failed. Please try again.","warning",3e3)}catch(o){let e="Something went wrong. Please try again.";var s;if(o.response)e=(null===(s=o.response.data)||void 0===s?void 0:s.message)||"Server error (".concat(o.response.status,")");else o.request&&(e="Network error. Check your internet connection.");kt(e,"error",3e3)}finally{Ce(!1),ke(!1)}},sx:{minHeight:"36px !important"},children:we?(0,xe.jsx)(Y.A,{color:"inherit",size:16,thickness:5}):"Dispatch ".concat(Ke.length||""," ").concat(1===Ke.length?"Order":"Orders").trim()})})]})]}),(0,xe.jsx)(b.Ay,{item:!0,xs:12,md:6,sx:{height:{xs:"auto",md:"100%"},minHeight:0,display:"flex",flexDirection:"column"},children:(0,xe.jsxs)(S.A,{className:"orders-card",sx:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",p:1.25,maxHeight:{xs:"none",md:685}},children:[(0,xe.jsxs)(A.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,sx:{mb:.75,flexShrink:0},children:[(0,xe.jsxs)(g.A,{className:"section-title-bar",sx:{mb:0},children:[(0,xe.jsx)(v.A,{sx:{fontWeight:700,color:"#1e293b",fontSize:13.5,letterSpacing:"-0.01em"},children:"drops"===Nt?"Drop List":"preview"===Nt?"File Preview":"Preview"}),(0,xe.jsx)(j.A,{size:"small",label:"drops"===Nt?Ke.length:"preview"===Nt?bt.length:0,sx:{height:20,fontSize:10.5,fontWeight:700,ml:1,bgcolor:"rgba(168,85,247,0.10)",color:"#65387a",border:"1px solid rgba(168,85,247,0.25)"}})]}),"drops"===Nt&&(0,xe.jsx)(j.A,{size:"small",label:"\u20b9".concat(Number(xt).toFixed(2)," total"),sx:{height:22,fontWeight:700,fontSize:11,bgcolor:"rgba(101,56,122,0.10)",color:"#65387a",border:"1px solid rgba(101,56,122,0.25)"}}),"preview"===Nt&&(0,xe.jsx)(j.A,{size:"small",label:"Awaiting Continue",icon:(0,xe.jsx)(te.A,{style:{fontSize:11}}),sx:{height:22,fontWeight:700,fontSize:11,bgcolor:"rgba(245,158,11,0.12)",color:"#b45309",border:"1px solid rgba(245,158,11,0.30)","& .MuiChip-icon":{color:"#b45309"}}}),"empty"!==Nt&&(()=>{const e=Ye&&Re&&We,t=t=>{var n;e?(jt(t),0===t?null===(n=document.getElementById("upload-file"))||void 0===n||n.click():1===t&&(Ze(!0),Xe(""))):Yt("Please select Location, Client, and Business Location first.","warning",3e3)};return(0,xe.jsxs)(A.A,{direction:"row",gap:.75,alignItems:"center",children:[(0,xe.jsx)(k.A,{size:"small",variant:"outlined",onClick:()=>t(0),startIcon:(0,xe.jsx)(ce.CtR,{}),sx:{height:24,py:0,textTransform:"none",borderRadius:"6px",fontSize:10.5,fontWeight:600,borderColor:"#cbd5e1",color:"#475569","&:hover":{borderColor:"#1890ff",color:"#1890ff"}},children:"Excel / CSV"}),(0,xe.jsx)(k.A,{size:"small",variant:"outlined",onClick:()=>t(1),startIcon:(0,xe.jsx)(le.YXz,{}),sx:{height:24,py:0,textTransform:"none",borderRadius:"6px",fontSize:10.5,fontWeight:600,borderColor:"#cbd5e1",color:"#475569","&:hover":{borderColor:"#65387a",color:"#65387a"}},children:"Selection"})]})})()]}),yt&&(0,xe.jsxs)(A.A,{direction:"row",gap:.75,alignItems:"center",sx:{mb:.75,color:"#64748b",flexShrink:0},children:[(0,xe.jsx)(ne.A,{style:{fontSize:12}}),(0,xe.jsx)(v.A,{sx:{fontSize:11.5},noWrap:!0,children:yt})]}),"preview"===Nt&&bt.length>=1&&(0,xe.jsxs)(g.A,{sx:{mb:1,p:1.25,bgcolor:"rgba(245,158,11,0.06)",border:"1.5px solid rgba(245,158,11,0.25)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:1.5,flexShrink:0,animation:"blink 1.5s infinite","@keyframes blink":{"0%":{borderColor:"rgba(245,158,11,0.25)"},"50%":{borderColor:"rgba(245,158,11,0.6)"},"100%":{borderColor:"rgba(245,158,11,0.25)"}}},children:[(0,xe.jsxs)(g.A,{sx:{textAlign:"left"},children:[(0,xe.jsx)(v.A,{sx:{fontWeight:700,fontSize:12,color:"#b45309",lineHeight:1.2},children:"Process & Calculate Distances"}),(0,xe.jsx)(v.A,{sx:{color:"#b45309",opacity:.8,fontSize:10.5,lineHeight:1.25},children:"Click continue to import spreadsheet rows and calculate drop charges."})]}),(0,xe.jsx)(k.A,{variant:"contained",size:"small",color:"warning",onClick:()=>bt.forEach((e=>Rt(e))),sx:{textTransform:"none",borderRadius:"8px",fontWeight:700,fontSize:11,height:28,px:1.5,bgcolor:"#d97706",boxShadow:"none","&:hover":{bgcolor:"#b45309",boxShadow:"none"}},children:"Continue"})]}),(0,xe.jsxs)(g.A,{sx:{flex:1,minHeight:0,overflow:"auto"},children:["drops"===Nt&&n&&(0,xe.jsxs)(pe.nV,{sx:{p:0},children:[Ke.map(((e,t)=>{var n;return(0,xe.jsx)(pe.pg,{accent:"#65387a",header:(0,xe.jsxs)(A.A,{direction:"row",alignItems:"flex-start",justifyContent:"space-between",spacing:1,children:[(0,xe.jsxs)(g.A,{sx:{minWidth:0,flex:1},children:[(0,xe.jsxs)(v.A,{sx:{fontSize:14,fontWeight:700,color:"#1e293b",lineHeight:1.2},children:[t+1,". ",e.firstname]}),(0,xe.jsx)(v.A,{sx:{fontSize:12,color:"#64748b",mt:.25},children:e.address})]}),(0,xe.jsx)(P.A,{title:"Remove",children:(0,xe.jsx)(R.A,{size:"small",onClick:()=>Rt(e),sx:{color:"#ef4444",p:.5,flexShrink:0},children:(0,xe.jsx)(ie.A,{style:{fontSize:14}})})})]}),children:(0,xe.jsxs)(pe.FG,{columns:2,children:[(0,xe.jsx)(pe.pY,{label:"Qty",children:0===vt?(0,xe.jsx)(v.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},children:null!==(n=e.quantity)&&void 0!==n?n:"\u2014"}):(0,xe.jsx)(C.A,{size:"small",type:"number",value:e.quantity||"",onChange:t=>It(e.customerid,t.target.value),inputProps:{min:0},fullWidth:!0,sx:{"& .MuiOutlinedInput-root":{borderRadius:"8px",height:34}}})}),(0,xe.jsx)(pe.pY,{label:"Cash",children:0===vt?(0,xe.jsx)(v.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},children:"\u20b9".concat(Number(e.collectionamt||0).toFixed(2))}):(0,xe.jsx)(C.A,{size:"small",type:"number",value:e.collectionamt?e.collectionamt:"",placeholder:"0",onChange:t=>{const n=Number(t.target.value);Tt(e.customerid,n>0?n:0)},inputProps:{min:0},InputProps:{startAdornment:(0,xe.jsx)(w.A,{position:"start",children:"\u20b9"})},fullWidth:!0,sx:{"& .MuiOutlinedInput-root":{borderRadius:"8px",height:34}}})}),(0,xe.jsx)(pe.pY,{label:"Km",value:e.distance}),(0,xe.jsx)(pe.pY,{label:"Charge",align:"right",children:(0,xe.jsxs)(v.A,{sx:{fontSize:13,fontWeight:700,color:"#1e293b"},children:["\u20b9",Number((null===e||void 0===e?void 0:e.totalcharge)||0).toFixed(2)]})})]})},e.customerid||e.firstname||t)})),(0,xe.jsx)(pe.pg,{accent:"#65387a",sx:{bgcolor:"#fafbfc"},children:(0,xe.jsxs)(pe.FG,{columns:2,children:[(0,xe.jsx)(pe.pY,{label:"Total Qty",value:mt}),(0,xe.jsx)(pe.pY,{label:"Total Cash",value:"\u20b9".concat(Number(gt).toFixed(2))}),(0,xe.jsx)(pe.pY,{label:"Total Km",value:ht}),(0,xe.jsx)(pe.pY,{label:"Total Charge",align:"right",children:(0,xe.jsxs)(v.A,{sx:{fontSize:14,fontWeight:800,color:"#65387a"},children:["\u20b9",Number(xt).toFixed(2)]})})]})})]}),"drops"===Nt&&!n&&(0,xe.jsx)(z.A,{component:W.A,sx:{borderRadius:"10px",border:"1px solid #eef2f6",boxShadow:"none"},children:(0,xe.jsxs)(I.A,{size:"small",stickyHeader:!0,children:[(0,xe.jsx)(T.A,{sx:{bgcolor:"#f8fafc"},children:(0,xe.jsxs)(E.A,{children:[(0,xe.jsx)(M.A,{sx:me,children:"#"}),(0,xe.jsx)(M.A,{sx:me,children:"Customer"}),(0,xe.jsx)(M.A,{sx:me,children:"Address"}),(0,xe.jsx)(M.A,{sx:me,align:"center",children:"Qty"}),(0,xe.jsx)(M.A,{sx:me,align:"center",children:"Cash"}),(0,xe.jsx)(M.A,{sx:me,children:"Km"}),(0,xe.jsx)(M.A,{sx:me,align:"right",children:"Charge"}),(0,xe.jsx)(M.A,{sx:me,align:"center",children:" "})]})}),(0,xe.jsxs)(N.A,{children:[Ke.map(((e,t)=>(0,xe.jsxs)(E.A,{hover:!0,children:[(0,xe.jsx)(M.A,{sx:fe,children:t+1}),(0,xe.jsx)(M.A,{sx:(0,i.A)((0,i.A)({},fe),{},{whiteSpace:"nowrap",color:"#1e293b",fontWeight:600}),children:e.firstname}),(0,xe.jsx)(M.A,{sx:(0,i.A)((0,i.A)({},fe),{},{color:"#64748b",maxWidth:220}),children:(0,xe.jsx)(P.A,{title:e.address||"",children:(0,xe.jsx)("span",{style:{display:"inline-block",maxWidth:220,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",verticalAlign:"middle"},children:e.address})})}),(0,xe.jsx)(M.A,{align:"center",sx:fe,children:0===vt?e.quantity:(0,xe.jsx)(C.A,{size:"small",type:"number",value:e.quantity||"",onChange:t=>It(e.customerid,t.target.value),inputProps:{min:0},sx:{width:64,"& .MuiOutlinedInput-root":{borderRadius:"8px",height:30}}})}),(0,xe.jsx)(M.A,{align:"center",sx:fe,children:0===vt?"\u20b9".concat(Number(e.collectionamt||0).toFixed(2)):(0,xe.jsx)(C.A,{size:"small",type:"number",value:e.collectionamt?e.collectionamt:"",placeholder:"0",onChange:t=>{const n=Number(t.target.value);Tt(e.customerid,n>0?n:0)},inputProps:{min:0},InputProps:{startAdornment:(0,xe.jsx)(w.A,{position:"start",children:"\u20b9"})},sx:{width:90,"& .MuiOutlinedInput-root":{borderRadius:"8px",height:30}}})}),(0,xe.jsx)(M.A,{sx:fe,children:e.distance}),(0,xe.jsxs)(M.A,{align:"right",sx:(0,i.A)((0,i.A)({},fe),{},{fontWeight:700,color:"#1e293b"}),children:["\u20b9",Number((null===e||void 0===e?void 0:e.totalcharge)||0).toFixed(2)]}),(0,xe.jsx)(M.A,{align:"center",sx:fe,children:(0,xe.jsx)(P.A,{title:"Remove",children:(0,xe.jsx)(R.A,{size:"small",onClick:()=>Rt(e),sx:{color:"#ef4444",p:.5},children:(0,xe.jsx)(ie.A,{style:{fontSize:13}})})})})]},e.customerid||e.firstname||t))),(0,xe.jsxs)(E.A,{sx:{bgcolor:"#fafbfc"},children:[(0,xe.jsx)(M.A,{sx:(0,i.A)((0,i.A)({},fe),{},{fontWeight:800}),children:"Total"}),(0,xe.jsx)(M.A,{colSpan:2,sx:fe}),(0,xe.jsx)(M.A,{align:"center",sx:(0,i.A)((0,i.A)({},fe),{},{fontWeight:800}),children:mt}),(0,xe.jsxs)(M.A,{align:"center",sx:(0,i.A)((0,i.A)({},fe),{},{fontWeight:800}),children:["\u20b9",Number(gt).toFixed(2)]}),(0,xe.jsx)(M.A,{sx:(0,i.A)((0,i.A)({},fe),{},{fontWeight:800}),children:ht}),(0,xe.jsxs)(M.A,{align:"right",sx:(0,i.A)((0,i.A)({},fe),{},{fontWeight:800,color:"#65387a"}),children:["\u20b9",Number(xt).toFixed(2)]}),(0,xe.jsx)(M.A,{sx:fe})]})]})]})}),"preview"===Nt&&n&&(0,xe.jsx)(pe.nV,{sx:{p:0},children:bt.map(((e,t)=>{var n;return(0,xe.jsx)(pe.pg,{accent:"#d97706",header:(0,xe.jsxs)(g.A,{sx:{minWidth:0},children:[(0,xe.jsxs)(v.A,{sx:{fontSize:14,fontWeight:700,color:"#1e293b",lineHeight:1.2},children:[t+1,". ",e.firstname||"\u2014"]}),(0,xe.jsx)(v.A,{sx:{fontSize:12,color:"#64748b",mt:.25},children:e.address||"\u2014"})]}),children:(0,xe.jsxs)(pe.FG,{columns:2,children:[(0,xe.jsx)(pe.pY,{label:"Contact",value:e.contactno||"\u2014"}),(0,xe.jsx)(pe.pY,{label:"Qty",value:null!==(n=e.quantity)&&void 0!==n?n:"\u2014"}),(0,xe.jsx)(pe.pY,{label:"Cash",value:null!=e.collectionamt?"\u20b9".concat(Number(e.collectionamt).toFixed(2)):"\u2014"})]})},t)}))}),"preview"===Nt&&!n&&(0,xe.jsx)(z.A,{component:W.A,sx:{borderRadius:"10px",border:"1px solid #eef2f6",boxShadow:"none"},children:(0,xe.jsxs)(I.A,{size:"small",stickyHeader:!0,children:[(0,xe.jsx)(T.A,{sx:{bgcolor:"#f8fafc"},children:(0,xe.jsxs)(E.A,{children:[(0,xe.jsx)(M.A,{sx:me,children:"#"}),(0,xe.jsx)(M.A,{sx:me,children:"Name"}),(0,xe.jsx)(M.A,{sx:me,children:"Contact"}),(0,xe.jsx)(M.A,{sx:me,children:"Address"}),(0,xe.jsx)(M.A,{sx:me,align:"center",children:"Qty"}),(0,xe.jsx)(M.A,{sx:me,align:"center",children:"Cash"})]})}),(0,xe.jsx)(N.A,{children:bt.map(((e,t)=>{var n;return(0,xe.jsxs)(E.A,{hover:!0,children:[(0,xe.jsx)(M.A,{sx:fe,children:t+1}),(0,xe.jsx)(M.A,{sx:(0,i.A)((0,i.A)({},fe),{},{whiteSpace:"nowrap",color:"#1e293b",fontWeight:600}),children:e.firstname||"\u2014"}),(0,xe.jsx)(M.A,{sx:fe,children:e.contactno||"\u2014"}),(0,xe.jsx)(M.A,{sx:(0,i.A)((0,i.A)({},fe),{},{color:"#64748b",maxWidth:240}),children:(0,xe.jsx)(P.A,{title:e.address||"",children:(0,xe.jsx)("span",{style:{display:"inline-block",maxWidth:240,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",verticalAlign:"middle"},children:e.address||"\u2014"})})}),(0,xe.jsx)(M.A,{align:"center",sx:fe,children:null!==(n=e.quantity)&&void 0!==n?n:"\u2014"}),(0,xe.jsx)(M.A,{align:"center",sx:fe,children:null!=e.collectionamt?"\u20b9".concat(Number(e.collectionamt).toFixed(2)):"\u2014"})]},t)}))})]})}),"empty"===Nt&&(()=>{const e=Ye&&Re&&We,t=t=>{var n;e?(jt(t),Ue([]),St([]),Ct(""),0===t?null===(n=document.getElementById("upload-file"))||void 0===n||n.click():1===t&&(Ze(!0),Xe(""))):Yt("Please select Location, Client, and Business Location first.","warning",3e3)},n=n=>{let{value:i,icon:s,title:r,sub:o,accent:l}=n;return(0,xe.jsxs)(g.A,{role:"button",tabIndex:0,onClick:()=>t(i),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t(i))},sx:{flex:1,minWidth:0,display:"flex",alignItems:"center",textAlign:"left",gap:1.25,px:1.5,py:1.25,borderRadius:"10px",border:"1.5px solid #eef2f6",bgcolor:"#fff",opacity:e?1:.6,cursor:e?"pointer":"not-allowed",transition:"all 0.18s ease","&:hover":e?{borderColor:l,boxShadow:"0 4px 12px -4px ".concat(l,"40"),transform:"translateY(-1px)"}:void 0},children:[(0,xe.jsx)(g.A,{sx:{width:32,height:32,borderRadius:"8px",background:"".concat(l,"15"),color:l,display:"flex",alignItems:"center",justifyContent:"center",fontSize:15,flexShrink:0},children:(0,xe.jsx)(s,{})}),(0,xe.jsxs)(g.A,{sx:{minWidth:0,flex:1},children:[(0,xe.jsx)(v.A,{sx:{fontWeight:700,fontSize:13,color:"#1e293b",lineHeight:1.15},children:r}),(0,xe.jsx)(v.A,{sx:{fontSize:11,color:"#94a3b8",lineHeight:1.25},noWrap:!0,children:o})]})]})};return(0,xe.jsxs)(A.A,{alignItems:"center",justifyContent:"center",spacing:1.5,sx:{height:"100%",minHeight:240,bgcolor:"rgba(24,144,255,0.03)",border:"1px dashed rgba(24,144,255,0.25)",borderRadius:"12px",p:3,textAlign:"center"},children:[(0,xe.jsx)(g.A,{sx:{width:56,height:56,borderRadius:"14px",bgcolor:"rgba(24,144,255,0.08)",color:"#1890ff",display:"flex",alignItems:"center",justifyContent:"center",fontSize:28},children:(0,xe.jsx)(se.A,{})}),(0,xe.jsx)(v.A,{sx:{fontWeight:700,color:"#1e293b",fontSize:14},children:"Choose a Drop Source to begin"}),(0,xe.jsx)(v.A,{sx:{color:"#64748b",fontSize:12,maxWidth:360,mb:1},children:"Select a source from below or the left panel to import or pick your delivery customers."}),(0,xe.jsxs)(A.A,{direction:{xs:"column",sm:"row"},gap:1.5,sx:{width:"100%",maxWidth:480,mt:1},children:[n({value:0,icon:ce.CtR,title:"Excel / CSV",sub:"Bulk upload a sheet",accent:"#1890ff"}),n({value:1,icon:le.YXz,title:"Selection",sub:"Pick saved customers",accent:"#65387a"})]})]})})()]})]})})]})]}),(0,xe.jsx)("input",{accept:".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",id:"upload-file",type:"file",hidden:!0,onChange:e=>{const t=e.target.files[0];if(!t)return;const n=t.name.replace(/\.[^/.]+$/,"");Ct((e=>e?"".concat(e,", ").concat(n):n)),(e=>{try{var t;const n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(!n)return void kt("No file selected.","warning");const i=n.name.toLowerCase(),s=i.endsWith(".csv"),r=i.endsWith(".xls")||i.endsWith(".xlsx");if(!s&&!r)return void kt("Invalid file type. Please upload a CSV or Excel file.","warning");const o=(e,t)=>{const n={};for(const r in Wt)n[zt(r)]=Wt[r];const i=e.map((e=>{const t={};for(const s in e){const r=zt(s),o=n[r]||r;let l=e[s];"firstname"===o&&(l="string"===typeof(i=l)?i.replace(/^[\d.\s]+/,"").trim():i),t[o]=l}var i;return t})),s=Object.keys(Wt).filter((e=>e.trim().endsWith("*"))).filter((e=>!t.includes(zt(e))));if(s.length>0)return kt("Missing required columns: ".concat(s.join(", ")),"warning",3e3),void St([]);St(i),kt("File uploaded successfully","success",2e3),kt("Press Continue to add as drop customers","info",2500)};if(s&&l().parse(n,{header:!0,dynamicTyping:!0,skipEmptyLines:!0,complete:e=>{var t;if(null===(t=e.data)||void 0===t||!t.length)return kt("CSV file is empty or has no valid rows.","warning"),void St([]);const n=e.meta.fields.map(zt);o(e.data,n)},error:e=>kt("CSV parsing failed: ".concat(e.message),"warning")}),r){const e=new FileReader;e.onload=e=>{try{const t=e.target.result,n=a.LF(t,{type:"binary"}),i=n.SheetNames[0],s=n.Sheets[i],r=a.Wp.sheet_to_json(s,{defval:""});if(null===r||void 0===r||!r.length)return kt("Excel file is empty or invalid.","warning"),void St([]);const l=Object.keys(r[0]).map(zt);o(r,l)}catch(t){kt("Error reading Excel: ".concat(t.message),"warning")}},e.readAsBinaryString(n)}}catch(n){kt("Unexpected error: ".concat(n.message),"warning")}})(e)}}),(0,xe.jsxs)(D.A,{open:_e,onClose:()=>Ze(!1),fullWidth:!0,fullScreen:n,sx:{"& .MuiDialog-paper":{borderRadius:{xs:0,sm:"16px"},overflow:"hidden"}},children:[(0,xe.jsx)(H.A,{sx:{bgcolor:t.palette.primary.main,color:"white",py:2.5},children:(0,xe.jsxs)(A.A,{spacing:1.5,children:[(0,xe.jsx)(v.A,{variant:"h4",sx:{fontWeight:600,color:"white"},children:"Select Drop Customers (".concat(Ke.length||0,")")}),(0,xe.jsx)(L.A,{sx:{width:"100%"},children:(0,xe.jsx)(F.A,{autoFocus:!0,fullWidth:!0,id:"input-search-header",placeholder:"Search by name, contact, or address\u2026",value:Qe,onChange:e=>Xe(e.target.value),sx:{bgcolor:"white",borderRadius:"10px","& .MuiOutlinedInput-input":{p:"10px 14px"}},startAdornment:(0,xe.jsx)(w.A,{position:"start",children:(0,xe.jsx)(re.A,{style:{fontSize:"small",color:"#64748b"}})}),endAdornment:(0,xe.jsx)(R.A,{sx:{visibility:Qe?"visible":"hidden",p:.5},onClick:()=>Xe(""),children:(0,xe.jsx)(Z.A,{style:{fontSize:"18px"}})}),autoComplete:"off"})})]})}),(0,xe.jsx)(O.A,{}),(0,xe.jsx)(B.A,{sx:{p:2.5,bgcolor:"#fafbfc",minHeight:400,maxHeight:{xs:"none",sm:600}},children:0===(null===Je||void 0===Je?void 0:Je.length)?(0,xe.jsx)(A.A,{alignItems:"center",justifyContent:"center",sx:{minHeight:300},children:(0,xe.jsx)(oe.A,{description:"No saved customers found for this client"})}):(0,xe.jsx)(A.A,{spacing:0,children:null===Je||void 0===Je?void 0:Je.map(((e,t)=>{const n=Ke.some((t=>t.customerid===e.customerid));return(0,xe.jsx)(q.A,{children:(0,xe.jsx)(V.A,{sx:{m:0,py:1,px:1.25,borderRadius:"10px","&:hover":{bgcolor:"rgba(24,144,255,0.04)"}},control:(0,xe.jsx)(K.A,{checked:n,onChange:t=>(async(e,t)=>{Ce(!0);try{if(e.target.checked){const{roundedDistance:e,totalcharge:n}=await Pt(t);Ue((s=>[...s,(0,i.A)((0,i.A)({},t),{},{distance:e,totalcharge:n})]))}else Ue((e=>e.filter((e=>e.customerid!==t.customerid))))}catch(n){console.error("Failed to calculate distance:",n)}finally{Ce(!1)}})(t,e)}),label:(0,xe.jsxs)(g.A,{sx:{width:"100%"},children:[(0,xe.jsxs)(v.A,{sx:{fontWeight:600,color:"#1e293b",fontSize:13.5},children:[e.firstname," (",e.contactno,")"]}),(0,xe.jsx)(v.A,{sx:{color:"#64748b",fontSize:12,mt:.25},children:e.address})]})})},e.customerid||t)}))})}),(0,xe.jsx)(O.A,{}),(0,xe.jsx)(U.A,{sx:{p:2,bgcolor:"#fafbfc"},children:(0,xe.jsx)(k.A,{variant:"outlined",color:0===Ke.length?"error":"primary",onClick:()=>Ze(!1),sx:{borderRadius:"10px",textTransform:"none",fontWeight:600,px:3},children:0===Ke.length?"Close":"Continue"})})]})]})}},42041:()=>{},50623:()=>{},62217:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAAA+CAYAAABzwahEAAAPnUlEQVR4AdVae3AU9R3/7d4jdyGQQKAhECBAJBSmEAtFSQUjqPgAHGlhRm0lDkWY6Tg+O9qiErR26h8WR8ZWqTMN1ur4qMpDrTyjtDwDJloeCYiBvAgkaZ53l7vb3X4/v9vfZS/Zu9uFwLSfmb3d293f7u/z+z5/399K7CphdW5JrupgBZosZ0ialmu8pklSjUOTamRJbvvjqTUV7CpAYlcIj+SWZHQ55WJZlm7UNK2IXpRhpZ3GWJskSWXUZrPD4Sp77eSva9gVwIATXz35+SJNYWs1phWxAYDEpDKVaZv+fOrZUjaAGDDiK695rpgetpYOc82upw72sMycdJbz/SzmHeKl/ynRay31bbS1s7rjTczXGYj3ihrShnUDNQCXTXzlNS8UyExdbybhSdeNYwXz81nBzflE2pKms7oT51ntiSa276NKVn3wrNktNcGQelNpTUkNuwxcFvFV+S88rKnKy8ZzkOz84uvYvOJZ/PhyAE3Y/+HXbN+HFVwjjJAlR8lr1WueY9wt2MclEYfj8rnkj+nwRnHOLuGWhnbmpfuMKh/3Xn0Atm74IuY8OcGPFYk99kbVM98xm7BFnDyttHLyb3MlRdsjSWycOA+VLv79YpY5Ork6V5efY59s/JJVHznH/+dMymLz7v0Rm71oWtK2GIDSJ7ew6kMxJlCjytI8u+Qddm4+93bPBIfqiiG96KG5RPouljokuZT3b/2avf7EB6ylsZ1dM2MsG5OfxU7RAFSWVbMAObUphRMTtsc7CpdMh6c3kqe8gN117Yh5W4627GljFmGZ+C/ynx/flzSkDPW2Aqj2+lV/Y5mj0tljG3/GFhQXspkLpnBJVx85yyq/OGWJPAANgzkd2/utOMXJzxp965vlF3YFrPRHZtYgSZq6vi/p2TT6VrF+1Vt8/yiRhnoLiIHAftc7h0kDzlp6HgYcfTAgVwmEPmIWzTeZxPEQaeWkkhJJk1eJk8vWLGBz75nBrAIqfmDrN2zhqjlsetGkftddKU6WQ2qPe6AZVuwdGPP9kWw4+ZWKnVXiVO6M4UXtR1rKDiZrm4g4J70871cTnMzzd3ESNn3bgz9mdgC7hmoufeKWuB4/c1QGV3nYfP7Msfy/FYB8rM1LC6YNm72lonXv+UTtEqr60qVLJTcbvEv8h20tfOhGZgeQtpBiZnZ6wnuhEUDFnlPMDhaSMCbNilohc0kp61mEW1y1j0u8hLR78Ff5xX3t2i5AHLjegvqOIdtHXK/8oorZRfGLiw3aJM1dkVeynA5kCsGm98cjLhNxh4O5nxEnoOJW4rQRkDRUF3adTNoAEprRRB7tfJ09zA7Qt3mGCCMz+dmioiLKcSRTjvGISw/kPbNcSDtzdLotDy6A+AyYObR4KCjK53ur3t2I+ct7s0b0Pfds4U04RuLV914z4rjJ4ZSc94sTSBrsShvYv62S76frZKwAYQ2orWpidoEExyh1tzPl6SlTpjhJ6v3u7Utcgm0vHf/wePKUc8TJS5E21LWu6gKbRBmalXwcgHp70yISg8QR3oTWWAWk3gtpbp6/cCiLRK8Y9k7jHzgCGh3n8om/ibpueHKr0vZT5lVZFvHItVWRaALVQ4pqxcYfL3opeoxcvlr3D4BVc4HU4eFFeMt0ZsHJvUzcFKPkY4gvW7YMGiC7ZfcicW723dalXUsS3lSyNeZcBUmsmaS/5p0Vlp4BVccADsvOYP6uAM/yKsqq7PkJmv8L4k7mmEu7DcRNIfIqkedu3qjq0pkzZ/DfITE5quZjp2Qxu0Dnha1iX1fdxD55fW/CNjANYN49s7jKI5O788E5kfY0oHZQcEuvT5GY8wbaye+//36MqsfY+JEjR6QlY1cX0CHvNdQmZ/JIZhUtjW3RzkNqsG90Hti2cS8fgGSoqz7Pp6loi/uH6wNnJ7zBNA0ZYvrdY1aMZ6hdGHQ9RuL473KmDBUnUB+zAyE1dP6me2fxpMUYljat3Zb0GfvJodWRRz9Aic/utw+Ts/NG1L/L0qQrCoRggVTXUGRPMULmNo44h0CflZXlcGiuXLPGdoDOo7Pw0EYpC5W/c9Wcfm3EoAGiSAF4h0QiQmtDmyUHKZAzZSSrPam/W5MgzJgUlo+CrgFSU1OT5GTOseKi7UytsT2GiJlqW1X5aB+IrJfCYXNDO7MDYwh1yA4kYvKMGTNkkcxw4ghjdJLfQ9ntJRcgWxqsFUCsqDzg1e0U5FtsEvfGVIQ4J9nv90fNXEhcgmPLyEAh49KJW4WZlzezYSE172BvjDbZhc5JPn78eH/nlpubK7e1tcWQtjtRaDXpnLHaYkRflTdbSEhN65V4a4Plclo/IC/TDyV9ixCnNJWFw2EpPT2dBcKBBtHA3+FndmCmjsueuJnIf8/0/mQq79UlDkdpV+LGOnxQ7aljOmFwBTjxY8eOSXV1day9vV1SlFCHaFB3wroT8sdZ+kE4QuXFDMkSG7+ucZmUxdmdqrbU9WpIINQuiPO5CM5x4pTVYMdTucbgt8ejjeutj3K8Tg0jaU2aMY4nJWYQKm+mLT7d7kUW2GrDwRmFFpD8Xax3xSUmZcUfPhL7L2yvp9XJTv7ijgAv4ltBPK8rHNRCPf00QzKVRzs8p7Y6YRktCqy99foMrWN73bsnWJ/ZmTGbUVlkADRFDUarlIYKZkKYeWUjUYSm+0sWmraFxHdTaTkRhtnI2bHwKBBUA3iwSv6LcxPnjV4dI6J5vV61W+04JM5X7LBG3Mwr9820oPLxZln+zsQpac6kkdG5QDLs+7AyetwRat0FTvqsLEpeJDBaTU2NQocqBXl1f9PnH4uGmN5ZcSpmqu41KSUvffwWy4UJIzCIxlQ2bj/ILxnX1mq6Tx0EJwrVKlVjNFF8NKasbMSIEeqgQYOUWl91W0gNlIvGu0oPJH2h31Ti/VNeqP8dJrm6KQnDYIp5erKwZpR2j9JTfrRldy1x4mZMCYwWk7mxiPjVixcvqt3d3WpKSopS6z/9J/GA3ZsOJZW6mRp640h2Pk1bsWhoBzAToLo8fhES0t4fo+YXoblhWZbDtOcaLa5FbZziGyc/ZMgQpaenJ7yz4b1DqhpuxDV492RSNxuYeF4cWF6yiNmB8OyJ1B3SFlFI1ZSGj2o3grjS2dnJSescYyswa9eu5cQ7OjpwE0YodLGn/jVxHVJPFNfNc21PQiKiSJEIxgGFZ49XfETfthk+HGiO9B08wsOHD8deNd4fJa7rPi6G09LSeINPm97cHFT9R3gHSOqlT25m8WCWXCRzYvMpqUmkFYBxQOHZYedmNXdj36Cp6LvOJdTc3KzS4oKqC5cjSlz3dvhRurq6Qh6PJ0SDETrefvQP4h54y76fYwhg+ffRjfeRCi/kkrx+0Q9oVSRx2SpRbI8S7+iVuAiP+KrCiK0bvozx5Idat68KBoMhCmNBcKFQrYC4KDQC0SqrfhIS56oeCASC5ORCh5o/Pz7aO279CE/Oo7hvG70EBYrCPrX26CzM+uoxh0hnUWYyJd4VmSihWvvJxkheX2uY1e0qPRij4q09TW98/Z8D59B3CmNBUnMFoVpMTgT6LigI44eqB2kwMNxBchJvk8ofFTdtempLTNi4XCCdjWcWqLwgrH3w0g4eCaBVq1/6Kb+GPrz3u+3Re31K95cfnHv1dfSZPDn6HoKq06qvqvVZPey3Po6RKSsr49cwVWWRwXE2+M7tyxs87VZZktNwsZJSWVRhJxTksMsFPgyY85MZbGrhBJqDe5kzxRGd20MjOlq6qNqawSOBWDcHaQhAQCG7Pty66+l29WKz0+n0k8ZCVQITJ04M7dy5U1m3bl0M8XjVFgyIizYP2ckgUpnBdJw6OeOHuYWZC191ys6o8WJtepHNNXMrgDeHE0MuALLG9Bc2bVTvsBo+v6/ls1+ebDv8Ham4j8IxZmPdtMEzhljvPCSKeMT5wmF2dra7sbExlY4H0QZJe4n82L7ksWRT/OJdl1yVtQqELHhvoyMjSZ//V4T0WbfbHSCnxklTxdhPxdMgaXjY6NSMBPtBX0ODikPqbto4eXpwKj0Y5MfMHHbzI6mOtJhADOkXLikY8AGA9JFA7S49FDMZCij+ih31bz3V2FPbqpOGlLH5aION94vfAnELi3qtHddBHJ7Hy3Sp0+YhO3Ivzl65Yrgn+wFjO3j82UumDcgAxCMMNPnPbdhc98a7LpcLThikYdOQNrdtcmhhKrD0U3GBZBVVieKfg5wdJJ+Smprq9fl8kH4qvdATCoVc+ekFo28YvvgVh0H1BWACWGLGBzpjLK7KoGSEGgC2Pl8wckDK/247+MrR1t2YL8N+IVmfThh7YdcKS/Cda1LiqFHRJufk5LioLuch8h6dvJfIpxB5aITzjtE/v32kZ/wDTpMBAJC+YkkKWmD8ktlHCQqKmrUnL7BWIh3vs23YcmPgu798Wv/Xz0CM3h2mdwd0wnwjn9QzatSoEJXKw1pEZeMTYxagq73w9FB7Suw8XlVVvaRi+A/yuO64bfR9t2eljL09xeEtYAOAQNhfcabrm9J/XtyGPIKn1Lp6B3X19tN6gJ/m29ymSUgKUlMzh2aEncUDmdRe1tXeaPce/dilbxgAOT99evbEQdOuHebJvsHrSC2gpec0Ky/RmNrlV3wVneHWrw427/hHc7C+k/IJEFZ1KSOjDFDIEtLmSRb1LUR94/dZeY+tVROoPDaQo1TQTS9PoSlfik4cA0B9c7mpc1z6GAByghISoZkjivI8MuVRjqEjU52DRuossXir+UJdFHcCXfW+b09VtR9tMnReoefxNJqeCbsF6R7KygL03B56N8/OWK/3tkTaNnHWa/M8zrNIru8iOik0GeADQGHFTabh0q85qL/8Kwu0xSBgTwPB6BiLGMZn83SZzmuQMAhTWz5voEeGoNcgTtWUHiqW8OO8vLww+R5lz5494UT2PBDEY9rSQqOTHAmP91TFdNGChJsyPTdlelztqcMu6i+XvNiIkBQRHlcPHGv6sUbHIKzo56J1AZBkvR5cSFhUVBR2CbD69bIpysvLecdoAHqINOytm0ijJt9J3r+TVBLHXfrGkwsiJRIMLF1i76MBEue7qE0XqTPadYiNnFen3j6Ad5HGYSDwTcslkQYGamVULLrLpH7y6dOnuY1TGctFFR0hcYfhvujinQ6eaNBgYc6sEHm+0WAKqatEWJkwYYI6depUjYhbtuWrBW775GGd1FEXFQA8FFsR8+HRMdFBKocgPrTvRkgnh4l70ijPxtwAzpLnCLpDvSztvFqQ9C8PuAPEINDeTdpgjADYjOFQhESn3s6hP+OKr9dfSUhCaiIcYjNIMur52f850f95/BfoYlARf1CQvwAAAABJRU5ErkJggg=="},79520:(e,t,n)=>{"use strict";n.d(t,{D:()=>s,F:()=>i});const i=async(e,t)=>{const n=null===e||void 0===e?void 0:e.latitude,i=null===e||void 0===e?void 0:e.longitude,s=null===t||void 0===t?void 0:t.latitude,r=null===t||void 0===t?void 0:t.longitude;if(null==n||null==i||null==s||null==r)throw new Error("Invalid coordinates");const o={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_API_URL:"https://mock-data-api-nextjs.vercel.app/",REACT_APP_AUTH0_CLIENT_ID:"",REACT_APP_AUTH0_DOMAIN:"",REACT_APP_AWS_APP_CLIENT_ID:"",REACT_APP_AWS_POOL_ID:"",REACT_APP_FIREBASE_API_KEY:"",REACT_APP_FIREBASE_APP_ID:"",REACT_APP_FIREBASE_AUTH_DOMAIN:"",REACT_APP_FIREBASE_MEASUREMENT_ID:"",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"",REACT_APP_FIREBASE_PROJECT_ID:"",REACT_APP_FIREBASE_STORAGE_BUCKET:"",REACT_APP_GOOGLE_MAPS_API_KEY:"AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8",REACT_APP_RIDER_ACCESS_ID:"AAAAILMpCEU:APA91bEavuOllBI6sFgYtxXAgNmAVwNA-MnCMHLGlR4_t7UqpLajAkdn3T0CZr_zaLBknLyim9ytFLMZgbeXmKqTad_PKCbqlYjHpaizVrLXtecxqyEy4UktIacK2UvHVUATHL-7VQQk",REACT_APP_STAFF_TOKEN:"",REACT_APP_URL:"https://jupiter.nearle.app/live/api/v1",REACT_APP_URL2:"https://jupiter.nearle.app/live/api/v2",REACT_APP_URL3:"https://jupiter.nearle.app/live/api/v3",REACT_APP_VERSION:"v2.1.0"}.REACT_APP_OSRM_URL||"https://router.project-osrm.org";try{const e="".concat(o,"/route/v1/driving/").concat(i,",").concat(n,";").concat(r,",").concat(s,"?overview=false"),t=await fetch(e);if(t.ok){const e=await t.json();if(e.routes&&e.routes.length>0){const t=e.routes[0].distance/1e3;return Math.round(t)}}}catch(p){console.warn("OSRM API failed, falling back to Haversine math:",p)}const l=e=>e*Math.PI/180,a=l(s-n),c=l(r-i),d=Math.sin(a/2)*Math.sin(a/2)+Math.cos(l(n))*Math.cos(l(s))*Math.sin(c/2)*Math.sin(c/2),h=6371*(2*Math.atan2(Math.sqrt(d),Math.sqrt(1-d)));return Math.round(1.3*h)},s=(e,t,n,i)=>e{"use strict";n.d(t,{A:()=>c});var i=n(60308),s=n(12010),r=n(62217),o=n(65908);const l=(0,i.Ay)("div")((()=>({position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2001,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0.7)",padding:"20px",borderRadius:"10px"}))),a=(0,i.Ay)("div")((()=>({position:"absolute",width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center"}))),c=()=>(0,o.jsxs)(l,{children:[(0,o.jsx)(s.A,{color:"primary",size:80,thickness:6}),(0,o.jsx)(a,{children:(0,o.jsx)("img",{src:r,alt:"Logo",style:{width:"100%",height:"100%"}})})]})}}]); \ No newline at end of file diff --git a/build/static/js/605.4135b571.chunk.js b/build/static/js/605.4135b571.chunk.js new file mode 100644 index 0000000..12ed18c --- /dev/null +++ b/build/static/js/605.4135b571.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[605],{20605:(h,v,z)=>{z.d(v,{BUW:()=>l,FA6:()=>a,V92:()=>t});var m=z(21583);function t(h){return(0,m.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M73 41v430h174V220.8c-.3 0-.7-.1-1-.1-21.5-2.9-39.3-2.1-48.7 1.9A71.88 71.88 0 0 1 160 233c-40.2 0-73-32.8-73-73s32.8-73 73-73c29 0 54.1 17 65.9 41.4.2.3.6.7 1.4 1.1 2 1.1 5.4 2.7 10 4.5 2.8 1.1 6.1 2.4 9.7 3.7V41H73zm152.9 87.4c-.4-.5-.2-.4.7 1.5-.2-.5-.5-1-.7-1.5zM160 105c-30.4 0-55 24.6-55 55s24.6 55 55 55c10.7 0 20.5-3 28.9-8.2l.6-.4.6-.3c15.3-6.6 35.3-6.4 58.3-3.3 23.1 3.2 49.2 9.6 75.6 17.6 52.7 16.1 106.4 38.4 137.2 53.5 9 4.5 12.2 3.2 14.2 1.5 2-1.7 4.1-6.8 3.6-14.2-1.1-14.7-12-34.7-32.3-41-78.3-24.5-135.1-42-173-54.4-18.9-6.2-33.1-11.1-43.1-15.1-5-2-8.9-3.7-12-5.5-3.2-1.7-6-2.4-8.4-7.8-8.7-19.1-27.8-32.4-50.2-32.4zm0 183a32 32 0 0 1 32 32 32 32 0 0 1-11.9 24.8L192 416h-64l11.9-71.2A32 32 0 0 1 128 320a32 32 0 0 1 32-32z"}}]})(h)}function l(h){return(0,m.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M217 25v30h30V25h-30zm48 0v30h30V25h-30zm48 0v30h30V25h-30zm-96 48v46h30V73h-30zm48 0v46h30V73h-30zm48 0v46h30V73h-30zm-96 64v46h30v-46h-30zm48 0v46h30v-46h-30zm48 0v46h30v-46h-30zm174 6.508l-94 53.715V215h94v-71.492zM217 201v46h30v-46h-30zm48 0v46h30v-46h-30zm48 0v46h30v-46h-30zm80 32v110h94V233h-94zM39 256v23h18v-23H39zm178 9v46h30v-46h-30zm48 0v46h30v-46h-30zm48 0v46h30v-46h-30zM37.562 297l-7 14h146.875l-7-14H37.563zM25 329v158h23v-23h32v23h48v-23h32v23h23V329H25zm192 0v46h30v-46h-30zm48 0v46h30v-46h-30zm48 0v46h30v-46h-30zM48 352h32v16H48v-16zm80 0h32v16h-32v-16zm265 9v126h31v-23h32v23h31V361h-94zM48 384h32v16H48v-16zm80 0h32v16h-32v-16zm89 9v46h30v-46h-30zm48 0v46h30v-46h-30zm48 0v46h30v-46h-30zM48 416h32v16H48v-16zm80 0h32v16h-32v-16zm89 41v30h30v-30h-30zm48 0v30h30v-30h-30zm48 0v30h30v-30h-30z"}}]})(h)}function a(h){return(0,m.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M327.027 65.816L229.79 128.23l9.856 5.397 86.51-55.53 146.735 83.116-84.165 54.023 4.1 2.244v6.848l65.923-42.316 13.836 7.838-79.76 51.195v11.723l64.633-41.487 15.127 8.57-79.76 51.195v11.723l64.633-41.487 15.127 8.57-79.76 51.195v11.723l100.033-64.21-24.828-14.062 24.827-15.937-24.828-14.064 24.827-15.937-23.537-13.333 23.842-15.305-166.135-94.106zm31.067 44.74c-21.038 10.556-49.06 12.342-68.79 4.383l-38.57 24.757 126.903 69.47 36.582-23.48c-14.41-11.376-13.21-28.35 2.942-41.67l-59.068-33.46zM227.504 147.5l-70.688 46.094 135.61 78.066 1.33-.85c2.5-1.61 6.03-3.89 10.242-6.613 8.42-5.443 19.563-12.66 30.674-19.86 16.002-10.37 24.248-15.72 31.916-20.694L227.504 147.5zm115.467 1.17a8.583 14.437 82.068 0 1 .003 0 8.583 14.437 82.068 0 1 8.32 1.945 8.583 14.437 82.068 0 1-.87 12.282 8.583 14.437 82.068 0 1-20.273 1.29 8.583 14.437 82.068 0 1 .87-12.28 8.583 14.437 82.068 0 1 11.95-3.237zm-218.423 47.115L19.143 263.44l23.537 13.333-23.842 15.305 24.828 14.063-24.828 15.938 24.828 14.063-24.828 15.938 166.135 94.106L285.277 381.8V370.08l-99.433 63.824L39.11 350.787l14.255-9.15 131.608 74.547L285.277 351.8V340.08l-99.433 63.824L39.11 320.787l14.255-9.15 131.608 74.547L285.277 321.8V310.08l-99.433 63.824L39.11 290.787l13.27-8.52 132.9 75.28 99.997-64.188v-5.05l-5.48-3.154-93.65 60.11-146.73-83.116 94.76-60.824-9.63-5.543zm20.46 11.78l-46.92 30.115c14.41 11.374 13.21 28.348-2.942 41.67l59.068 33.46c21.037-10.557 49.057-12.342 68.787-4.384l45.965-29.504-123.96-71.358zm229.817 32.19c-8.044 5.217-15.138 9.822-30.363 19.688-11.112 7.203-22.258 14.42-30.69 19.873-4.217 2.725-7.755 5.01-10.278 6.632-.09.06-.127.08-.215.137v85.924l71.547-48.088v-84.166zm-200.99 17.48a8.583 14.437 82.068 0 1 8.32 1.947 8.583 14.437 82.068 0 1-.87 12.28 8.583 14.437 82.068 0 1-20.27 1.29 8.583 14.437 82.068 0 1 .87-12.28 8.583 14.437 82.068 0 1 11.95-3.236z"}}]})(h)}}}]); \ No newline at end of file diff --git a/build/static/js/6086.e7136251.chunk.js b/build/static/js/6086.e7136251.chunk.js new file mode 100644 index 0000000..8297532 --- /dev/null +++ b/build/static/js/6086.e7136251.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[6086],{1596:(e,t,n)=>{n.d(t,{A:()=>w});var r=n(84849),a=n(27326),o=n(85672),i=n(72574),s=n(25234),c=n(10247),l=n(16775),d=n(19728),u=n(78292),p=n(38009),h=n(60308),m=n(37300),v=n(10644);function f(e){return(0,v.Ay)("MuiTableCell",e)}const A=(0,m.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var g=n(65908);const b=["align","className","component","padding","scope","size","sortDirection","variant"],y=(0,h.Ay)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["size".concat((0,l.A)(n.size))],"normal"!==n.padding&&t["padding".concat((0,l.A)(n.padding))],"inherit"!==n.align&&t["align".concat((0,l.A)(n.align))],n.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:n}=e;return(0,a.A)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n ".concat("light"===t.palette.mode?(0,c.a)((0,c.X4)(t.palette.divider,1),.88):(0,c.e$)((0,c.X4)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===n.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===n.variant&&{color:(t.vars||t).palette.text.primary},"footer"===n.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===n.size&&{padding:"6px 16px",["&.".concat(A.paddingCheckbox)]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===n.padding&&{width:48,padding:"0 0 0 4px"},"none"===n.padding&&{padding:0},"left"===n.align&&{textAlign:"left"},"center"===n.align&&{textAlign:"center"},"right"===n.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===n.align&&{textAlign:"justify"},n.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),w=o.forwardRef((function(e,t){const n=(0,p.b)({props:e,name:"MuiTableCell"}),{align:c="inherit",className:h,component:m,padding:v,scope:A,size:w,sortDirection:x,variant:R}=n,C=(0,r.A)(n,b),k=o.useContext(d.A),M=o.useContext(u.A),S=M&&"head"===M.variant;let T;T=m||(S?"th":"td");let H=A;"td"===T?H=void 0:!H&&S&&(H="col");const N=R||M&&M.variant,z=(0,a.A)({},n,{align:c,component:T,padding:v||(k&&k.padding?k.padding:"normal"),size:w||(k&&k.size?k.size:"medium"),sortDirection:x,stickyHeader:"head"===N&&k&&k.stickyHeader,variant:N}),j=(e=>{const{classes:t,variant:n,align:r,padding:a,size:o,stickyHeader:i}=e,c={root:["root",n,i&&"stickyHeader","inherit"!==r&&"align".concat((0,l.A)(r)),"normal"!==a&&"padding".concat((0,l.A)(a)),"size".concat((0,l.A)(o))]};return(0,s.A)(c,f,t)})(z);let E=null;return x&&(E="asc"===x?"ascending":"descending"),(0,g.jsx)(y,(0,a.A)({as:T,ref:t,className:(0,i.A)(j.root,h),"aria-sort":E,scope:H,ownerState:z},C))}))},19728:(e,t,n)=>{n.d(t,{A:()=>r});const r=n(85672).createContext()},43318:(e,t,n)=>{n.d(t,{A:()=>x});var r=n(84849),a=n(27326),o=n(85672),i=n(72574),s=n(25234),c=n(16775),l=n(2866),d=n(25676),u=n(75520),p=n(60308),h=n(37300),m=n(10644);function v(e){return(0,m.Ay)("MuiInputAdornment",e)}const f=(0,h.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var A,g=n(38009),b=n(65908);const y=["children","className","component","disablePointerEvents","disableTypography","position","variant"],w=(0,p.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["position".concat((0,c.A)(n.position))],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,a.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===n.variant&&{["&.".concat(f.positionStart,"&:not(.").concat(f.hiddenLabel,")")]:{marginTop:16}},"start"===n.position&&{marginRight:8},"end"===n.position&&{marginLeft:8},!0===n.disablePointerEvents&&{pointerEvents:"none"})})),x=o.forwardRef((function(e,t){const n=(0,g.b)({props:e,name:"MuiInputAdornment"}),{children:p,className:h,component:m="div",disablePointerEvents:f=!1,disableTypography:x=!1,position:R,variant:C}=n,k=(0,r.A)(n,y),M=(0,u.A)()||{};let S=C;C&&M.variant,M&&!S&&(S=M.variant);const T=(0,a.A)({},n,{hiddenLabel:M.hiddenLabel,size:M.size,disablePointerEvents:f,position:R,variant:S}),H=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:a,size:o,variant:i}=e,l={root:["root",n&&"disablePointerEvents",a&&"position".concat((0,c.A)(a)),i,r&&"hiddenLabel",o&&"size".concat((0,c.A)(o))]};return(0,s.A)(l,v,t)})(T);return(0,b.jsx)(d.A.Provider,{value:null,children:(0,b.jsx)(w,(0,a.A)({as:m,ownerState:T,className:(0,i.A)(H.root,h),ref:t},k,{children:"string"!==typeof p||x?(0,b.jsxs)(o.Fragment,{children:["start"===R?A||(A=(0,b.jsx)("span",{className:"notranslate",children:"\u200b"})):null,p]}):(0,b.jsx)(l.A,{color:"text.secondary",children:p})}))})}))},50755:(e,t,n)=>{n.d(t,{A:()=>y});var r=n(27326),a=n(84849),o=n(85672),i=n(72574),s=n(25234),c=n(10247),l=n(78292),d=n(38009),u=n(60308),p=n(37300),h=n(10644);function m(e){return(0,h.Ay)("MuiTableRow",e)}const v=(0,p.A)("MuiTableRow",["root","selected","hover","head","footer"]);var f=n(65908);const A=["className","component","hover","selected"],g=(0,u.Ay)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((e=>{let{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,["&.".concat(v.hover,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(v.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}})),b="tr",y=o.forwardRef((function(e,t){const n=(0,d.b)({props:e,name:"MuiTableRow"}),{className:c,component:u=b,hover:p=!1,selected:h=!1}=n,v=(0,a.A)(n,A),y=o.useContext(l.A),w=(0,r.A)({},n,{component:u,hover:p,selected:h,head:y&&"head"===y.variant,footer:y&&"footer"===y.variant}),x=(e=>{const{classes:t,selected:n,hover:r,head:a,footer:o}=e,i={root:["root",n&&"selected",r&&"hover",a&&"head",o&&"footer"]};return(0,s.A)(i,m,t)})(w);return(0,f.jsx)(g,(0,r.A)({as:u,ref:t,className:(0,i.A)(x.root,c),role:u===b?null:"row",ownerState:w},v))}))},51808:(e,t,n)=>{var r=n(39744);t.A=void 0;var a=r(n(24956)),o=n(65908);t.A=(0,a.default)((0,o.jsx)("path",{d:"M19 6.41 17.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"}),"Clear")},54016:(e,t,n)=>{n.d(t,{A:()=>b});var r=n(27326),a=n(84849),o=n(85672),i=n(72574),s=n(25234),c=n(78292),l=n(38009),d=n(60308),u=n(37300),p=n(10644);function h(e){return(0,p.Ay)("MuiTableHead",e)}(0,u.A)("MuiTableHead",["root"]);var m=n(65908);const v=["className","component"],f=(0,d.Ay)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),A={variant:"head"},g="thead",b=o.forwardRef((function(e,t){const n=(0,l.b)({props:e,name:"MuiTableHead"}),{className:o,component:d=g}=n,u=(0,a.A)(n,v),p=(0,r.A)({},n,{component:d}),b=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},h,t)})(p);return(0,m.jsx)(c.A.Provider,{value:A,children:(0,m.jsx)(f,(0,r.A)({as:d,className:(0,i.A)(b.root,o),ref:t,role:d===g?null:"rowgroup",ownerState:p},u))})}))},72486:(e,t,n)=>{n.d(t,{A:()=>g});var r=n(84849),a=n(27326),o=n(85672),i=n(72574),s=n(25234),c=n(19728),l=n(38009),d=n(60308),u=n(37300),p=n(10644);function h(e){return(0,p.Ay)("MuiTable",e)}(0,u.A)("MuiTable",["root","stickyHeader"]);var m=n(65908);const v=["className","component","padding","size","stickyHeader"],f=(0,d.Ay)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:n}=e;return(0,a.A)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,a.A)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},n.stickyHeader&&{borderCollapse:"separate"})})),A="table",g=o.forwardRef((function(e,t){const n=(0,l.b)({props:e,name:"MuiTable"}),{className:d,component:u=A,padding:p="normal",size:g="medium",stickyHeader:b=!1}=n,y=(0,r.A)(n,v),w=(0,a.A)({},n,{component:u,padding:p,size:g,stickyHeader:b}),x=(e=>{const{classes:t,stickyHeader:n}=e,r={root:["root",n&&"stickyHeader"]};return(0,s.A)(r,h,t)})(w),R=o.useMemo((()=>({padding:p,size:g,stickyHeader:b})),[p,g,b]);return(0,m.jsx)(c.A.Provider,{value:R,children:(0,m.jsx)(f,(0,a.A)({as:u,role:u===A?null:"table",ref:t,className:(0,i.A)(x.root,d),ownerState:w},y))})}))},78292:(e,t,n)=>{n.d(t,{A:()=>r});const r=n(85672).createContext()},80795:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(31529),a=n(65908);const o=(0,r.A)((0,a.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchOutlined")},81802:(e,t,n)=>{n.d(t,{A:()=>b});var r=n(27326),a=n(84849),o=n(85672),i=n(72574),s=n(25234),c=n(78292),l=n(38009),d=n(60308),u=n(37300),p=n(10644);function h(e){return(0,p.Ay)("MuiTableBody",e)}(0,u.A)("MuiTableBody",["root"]);var m=n(65908);const v=["className","component"],f=(0,d.Ay)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),A={variant:"body"},g="tbody",b=o.forwardRef((function(e,t){const n=(0,l.b)({props:e,name:"MuiTableBody"}),{className:o,component:d=g}=n,u=(0,a.A)(n,v),p=(0,r.A)({},n,{component:d}),b=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},h,t)})(p);return(0,m.jsx)(c.A.Provider,{value:A,children:(0,m.jsx)(f,(0,r.A)({className:(0,i.A)(b.root,o),as:d,ref:t,role:d===g?null:"rowgroup",ownerState:p},u))})}))},83209:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(27326),a=n(84849),o=n(85672),i=n(72574),s=n(25234),c=n(38009),l=n(60308),d=n(37300),u=n(10644);function p(e){return(0,u.Ay)("MuiTableContainer",e)}(0,d.A)("MuiTableContainer",["root"]);var h=n(65908);const m=["className","component"],v=(0,l.Ay)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),f=o.forwardRef((function(e,t){const n=(0,c.b)({props:e,name:"MuiTableContainer"}),{className:o,component:l="div"}=n,d=(0,a.A)(n,m),u=(0,r.A)({},n,{component:l}),f=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},p,t)})(u);return(0,h.jsx)(v,(0,r.A)({ref:t,as:l,className:(0,i.A)(f.root,o),ownerState:u},d))}))},91834:(e,t,n)=>{n.d(t,{A:()=>z});var r=n(57528),a=n(84849),o=n(27326),i=n(85672),s=n(72574),c=n(8913),l=n(25234);function d(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function u(e){return parseFloat(e)}var p=n(40835),h=n(60308),m=n(38009),v=n(37300),f=n(10644);function A(e){return(0,f.Ay)("MuiSkeleton",e)}(0,v.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var g,b,y,w,x=n(65908);const R=["animation","className","component","height","style","variant","width"];let C,k,M,S;const T=(0,c.i7)(C||(C=g||(g=(0,r.A)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"])))),H=(0,c.i7)(k||(k=b||(b=(0,r.A)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"])))),N=(0,h.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((e=>{let{theme:t,ownerState:n}=e;const r=d(t.shape.borderRadius)||"px",a=u(t.shape.borderRadius);return(0,o.A)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:(0,p.X4)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===n.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(a).concat(r,"/").concat(Math.round(a/.6*10)/10).concat(r),"&:empty:before":{content:'"\\00a0"'}},"circular"===n.variant&&{borderRadius:"50%"},"rounded"===n.variant&&{borderRadius:(t.vars||t).shape.borderRadius},n.hasChildren&&{"& > *":{visibility:"hidden"}},n.hasChildren&&!n.width&&{maxWidth:"fit-content"},n.hasChildren&&!n.height&&{height:"auto"})}),(e=>{let{ownerState:t}=e;return"pulse"===t.animation&&(0,c.AH)(M||(M=y||(y=(0,r.A)(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "]))),T)}),(e=>{let{ownerState:t,theme:n}=e;return"wave"===t.animation&&(0,c.AH)(S||(S=w||(w=(0,r.A)(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 2s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ",",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "]))),H,(n.vars||n).palette.action.hover)})),z=i.forwardRef((function(e,t){const n=(0,m.b)({props:e,name:"MuiSkeleton"}),{animation:r="pulse",className:i,component:c="span",height:d,style:u,variant:p="text",width:h}=n,v=(0,a.A)(n,R),f=(0,o.A)({},n,{animation:r,component:c,variant:p,hasChildren:Boolean(v.children)}),g=(e=>{const{classes:t,variant:n,animation:r,hasChildren:a,width:o,height:i}=e,s={root:["root",n,r,a&&"withChildren",a&&!o&&"fitContent",a&&!i&&"heightAuto"]};return(0,l.A)(s,A,t)})(f);return(0,x.jsx)(N,(0,o.A)({as:c,ref:t,className:(0,s.A)(g.root,i),ownerState:f},v,{style:(0,o.A)({width:h,height:d},u)}))}))},93811:(e,t,n)=>{n.d(t,{d7:()=>i});var r=n(85672);function a(e,t,n,a){var o=this,i=(0,r.useRef)(null),s=(0,r.useRef)(0),c=(0,r.useRef)(0),l=(0,r.useRef)(null),d=(0,r.useRef)([]),u=(0,r.useRef)(),p=(0,r.useRef)(),h=(0,r.useRef)(e),m=(0,r.useRef)(!0);h.current=e;var v="undefined"!=typeof window,f=!t&&0!==t&&v;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var A=!!(n=n||{}).leading,g=!("trailing"in n)||!!n.trailing,b="maxWait"in n,y="debounceOnServer"in n&&!!n.debounceOnServer,w=b?Math.max(+n.maxWait||0,t):null;(0,r.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]);var x=(0,r.useMemo)((function(){var e=function(e){var t=d.current,n=u.current;return d.current=u.current=null,s.current=e,c.current=c.current||e,p.current=h.current.apply(n,t)},n=function(e,t){f&&cancelAnimationFrame(l.current),l.current=f?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!m.current)return!1;var n=e-i.current;return!i.current||n>=t||n<0||b&&e-s.current>=w},x=function(t){return l.current=null,g&&d.current?e(t):(d.current=u.current=null,p.current)},R=function e(){var a=Date.now();if(A&&c.current===s.current&&C(),r(a))return x(a);if(m.current){var o=t-(a-i.current),l=b?Math.min(o,w-(a-s.current)):o;n(e,l)}},C=function(){a&&a({})},k=function(){if(v||y){var a=Date.now(),c=r(a);if(d.current=[].slice.call(arguments),u.current=o,i.current=a,c){if(!l.current&&m.current)return s.current=i.current,n(R,t),A?e(i.current):p.current;if(b)return n(R,t),e(i.current)}return l.current||n(R,t),p.current}};return k.cancel=function(){l.current&&(f?cancelAnimationFrame(l.current):clearTimeout(l.current)),s.current=0,d.current=i.current=u.current=l.current=null},k.isPending=function(){return!!l.current},k.flush=function(){return l.current?x(Date.now()):p.current},k}),[A,b,t,w,g,f,v,y,a]);return x}function o(e,t){return e===t}function i(e,t,n){var i=n&&n.equalityFn||o,s=(0,r.useRef)(e),c=(0,r.useState)({})[1],l=a((0,r.useCallback)((function(e){s.current=e,c({})}),[c]),t,n,c),d=(0,r.useRef)(e);return i(d.current,e)||(l(e),d.current=e),[s.current,l]}}}]); \ No newline at end of file diff --git a/build/static/js/6165.266ba693.chunk.js b/build/static/js/6165.266ba693.chunk.js deleted file mode 100644 index 4fa3735..0000000 --- a/build/static/js/6165.266ba693.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[6165],{23787:(e,o,r)=>{r.d(o,{FG:()=>u,nV:()=>x,pY:()=>f,pg:()=>h});var n=r(89379),i=r(80045),t=r(93230),s=r(2235),l=r(16491),c=r(82053),a=r(44414);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:o,scroll:r=!1,onScroll:s,sx:l}=e,c=(0,i.A)(e,d);return(0,a.jsx)(t.A,(0,n.A)((0,n.A)({spacing:1.25,onScroll:s,sx:(0,n.A)((0,n.A)({p:1.5},r&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),l)},c),{},{children:o}))},h=e=>{let{accent:o="#662582",header:r,footer:i,selected:t=!1,onClick:c,children:d,sx:x}=e;return(0,a.jsxs)(s.A,{elevation:0,onClick:c,sx:(0,n.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:t?o:"#e2e8f0",background:t?"".concat(o,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,a.jsx)(l.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:o}}),(0,a.jsxs)(l.A,{sx:{p:1.5,pl:2},children:[r,d,i]})]})},u=e=>{let{children:o,columns:r=2,sx:i}=e;return(0,a.jsx)(l.A,{sx:(0,n.A)({display:"grid",gridTemplateColumns:"repeat(".concat(r,", minmax(0, 1fr))"),gap:1,mt:1.25},i),children:o})},f=e=>{let{label:o,value:r,children:n,full:i=!1,align:t="left"}=e;return(0,a.jsxs)(l.A,{sx:{gridColumn:i?"1 / -1":"auto",minWidth:0,textAlign:t},children:[(0,a.jsx)(c.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:o}),(0,a.jsx)(l.A,{sx:{mt:.25,minWidth:0},children:void 0!==n?n:(0,a.jsx)(c.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==r&&void 0!==r?r:"\u2014"})})]})}},26165:(e,o,r)=>{r.r(o),r.d(o,{default:()=>$});var n=r(9950),i=r(28429),t=r(36150),s=r(4159),l=r.n(s),c=r(41413),a=r(47223),d=r(16491),x=r(82053),h=r(60899),u=r(2235),f=r(93230),p=r(83274),g=r(25333),m=r(1320),j=r(15769),b=r(69780),A=r(9213),v=r(21671),w=r(34075),y=r(74745),k=r(6258),C=r(14857),S=r(31222),W=r(81425),I=r(52351),z=r(56311),R=r(27001),Y=r(36803),M=r(96646),T=r(23787),D=r(44414),P=r(36220);l().extend(P);const L=14,F="#0f172a",B="#64748b",H="#94a3b8",N="#e2e8f0",E="#f1f5f9",K="#ffffff",O="#f8fafc",G=(e,o)=>"".concat(e).concat(o),U=e=>G(e,"08"),q=e=>G(e,"18"),X=e=>G(e,"55"),_="#662582",V=e=>{let{color:o,selected:r,size:n=24,children:i}=e;return(0,D.jsx)(c.A,{sx:{width:n,height:n,bgcolor:r?o:q(o),color:r?"#fff":o,transition:"background-color 0.15s, color 0.15s"},children:i})},J={0:{key:"all",label:"All",color:_,icon:S.Uhn,countKey:"totalcount"},1:{key:"open",label:"Open",color:"#ef4444",icon:S.tX0,countKey:"pendingcount"},2:{key:"overdue",label:"Overdue",color:"#f59e0b",icon:S.tMO,countKey:"overduecount"},3:{key:"paid",label:"Paid",color:"#10b981",icon:S.mU9,countKey:"paidcount"}},Z=[0,1,2,3];function Q(e){return new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",minimumFractionDigits:2}).format(Number(e)||0)}const $=()=>{var e,o,r,s;const P=(0,i.Zp)(),$=(0,C.A)(),ee=(0,a.A)($.breakpoints.down("md")),[oe,re]=(0,n.useState)(0),[ne,ie]=(0,n.useState)(10),[te,se]=(0,n.useState)(0),[le,ce]=(0,n.useState)(!1),[ae,de]=(0,n.useState)(""),[xe,he]=(0,n.useState)(""),ue=n.useCallback((e=>{he(e),re(0)}),[]),{data:fe,isLoading:pe,isError:ge,error:me}=(0,t.I)({queryKey:["invoiceInsight"],queryFn:W.Y8,refetchInterval:3e5}),{data:je,isLoading:be,isError:Ae,error:ve}=(0,t.I)({queryKey:[te],queryFn:W.XC,refetchInterval:3e5}),we=pe||be,ye=ge||Ae,ke=(null===me||void 0===me?void 0:me.message)||(null===ve||void 0===ve?void 0:ve.message),Ce=(0,n.useMemo)((()=>{if(!je)return[];if(!xe)return je;const e=xe.toLowerCase().trim();return je.filter((o=>[o.tenantname,o.contactperson,String(o.invoiceno)].filter(Boolean).some((o=>String(o).toLowerCase().includes(e)))))}),[je,xe]),Se=(0,n.useMemo)((()=>{const e=Math.max(0,Math.ceil(Ce.length/ne)-1);return Math.min(oe,e)}),[Ce.length,oe,ne]);n.useEffect((()=>{oe!==Se&&re(Se)}),[oe,Se]);const We=(0,n.useMemo)((()=>Ce.slice(Se*ne,Se*ne+ne)),[Ce,Se,ne]),Ie=(0,n.useMemo)((()=>Ce.reduce(((e,o)=>e+(Number(o.totalamount)||0)),0)),[Ce]),ze=(0,n.useMemo)((()=>We.reduce(((e,o)=>e+(Number(o.totalamount)||0)),0)),[We]);if(ye)return ke;const Re=[{idx:0,label:"All Invoices",color:_,icon:S.Uhn,value:null!==(e=null===fe||void 0===fe?void 0:fe.totalcount)&&void 0!==e?e:0},{idx:1,label:"Open",color:"#ef4444",icon:S.G6c,value:null!==(o=null===fe||void 0===fe?void 0:fe.pendingcount)&&void 0!==o?o:0},{idx:2,label:"Overdue",color:"#f59e0b",icon:S.tMO,value:null!==(r=null===fe||void 0===fe?void 0:fe.overduecount)&&void 0!==r?r:0},{idx:3,label:"Paid",color:"#10b981",icon:S.cAP,value:null!==(s=null===fe||void 0===fe?void 0:fe.paidcount)&&void 0!==s?s:0}],Ye=J[te];return(0,D.jsxs)(D.Fragment,{children:[(le||we)&&(0,D.jsx)(I.A,{}),(0,D.jsx)(R.A,{title:"Invoices",subtitle:"Live \xb7 Viewing ".concat(Ye.label.toLowerCase()," invoices"),live:!0,action:(0,D.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:1,px:1.5,py:.875,borderRadius:999,bgcolor:"#ffffff",border:"1.5px solid ".concat(X(_)),color:_,fontWeight:800,fontSize:12},children:[(0,D.jsx)(S.YHz,{size:14}),(0,D.jsx)(x.A,{variant:"caption",sx:{fontWeight:800,color:B,letterSpacing:.4,textTransform:"uppercase"},children:"Grand Total"}),(0,D.jsx)(x.A,{sx:{fontWeight:800,color:_,fontSize:13},children:Q(Ie)})]})}),(0,D.jsx)(h.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:Re.map((e=>{const o=e.icon;return(0,D.jsx)(h.Ay,{item:!0,xs:6,sm:6,md:3,children:(0,D.jsx)(d.A,{onClick:()=>{se(e.idx),re(0)},sx:{cursor:"pointer",height:"100%"},children:(0,D.jsx)(Y.A,{title:e.label,value:e.value,icon:(0,D.jsx)(o,{size:20}),color:e.color,loading:pe})})},e.idx)}))}),(0,D.jsx)(u.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:L/8,borderTopRightRadius:L/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:N,borderBottom:0,background:"#fff"},children:(0,D.jsxs)(f.A,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:1.5,sx:{flexWrap:"wrap-reverse"},children:[(0,D.jsx)(f.A,{direction:"row",spacing:.75,sx:{flex:1,overflowX:"auto",py:.5,px:.25,"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-thumb":{backgroundColor:N,borderRadius:4}},children:Z.map((e=>{var o;const r=J[e],n=r.icon,i=te===e,t=null!==(o=null===fe||void 0===fe?void 0:fe[r.countKey])&&void 0!==o?o:0;return(0,D.jsxs)(d.A,{onClick:()=>{se(e),re(0)},sx:{display:"inline-flex",alignItems:"center",gap:{xs:.625,md:.875},pl:.5,pr:{xs:1,md:1.25},py:.5,flexShrink:0,cursor:"pointer",borderRadius:999,border:"1px solid ".concat(i?r.color:N),bgcolor:i?r.color:K,color:i?"#fff":B,fontWeight:600,boxShadow:"none",transition:"background-color 0.15s, border-color 0.15s, color 0.15s","&:hover":{borderColor:i?r.color:"#cbd5e1",bgcolor:i?r.color:O}},children:[(0,D.jsx)(c.A,{sx:{width:{xs:20,md:22},height:{xs:20,md:22},bgcolor:i?"rgba(255,255,255,0.22)":q(r.color),color:i?"#fff":r.color},children:(0,D.jsx)(n,{size:12})}),(0,D.jsx)(x.A,{variant:"caption",sx:{fontWeight:600,fontSize:{xs:11.5,md:13},lineHeight:1},children:r.label}),(0,D.jsx)(d.A,{sx:{minWidth:{xs:20,md:24},height:{xs:18,md:20},px:.625,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:999,fontSize:{xs:10,md:11},fontWeight:700,bgcolor:i?"rgba(255,255,255,0.22)":O,color:i?"#fff":B,border:"none"},children:t})]},e)}))}),(0,D.jsx)(d.A,{sx:{width:{xs:"100%",sm:240,lg:280},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,D.jsx)(z.A,{value:ae,onChange:de,onDebouncedChange:ue,placeholder:"Search invoices (ctrl+k)",sx:{m:0,width:"100%",borderRadius:999,bgcolor:"#ffffff","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:1.5},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat((Me=_,G(Me,"26")))}}})})]})}),(0,D.jsxs)(u.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:L/8,borderBottomRightRadius:L/8,border:"1px solid",borderColor:N,overflow:"hidden",background:"#fff"},children:[ee?(0,D.jsx)(D.Fragment,{children:be?(0,D.jsx)(d.A,{sx:{p:1.5},children:(0,D.jsx)(M.r,{col:4})}):0===We.length?(0,D.jsxs)(f.A,{alignItems:"center",spacing:1.5,sx:{py:6,px:2},children:[(0,D.jsx)(c.A,{sx:{width:64,height:64,bgcolor:q("#94a3b8"),color:H},children:(0,D.jsx)(S.GdF,{size:28})}),(0,D.jsx)(x.A,{variant:"subtitle1",sx:{fontWeight:700,color:F},children:"No invoices to show"}),(0,D.jsx)(x.A,{variant:"caption",sx:{color:B,textAlign:"center"},children:ae?"Try a different keyword.":"No ".concat(Ye.label.toLowerCase()," invoices for this filter.")})]}):(0,D.jsx)(T.nV,{children:We.map(((e,o)=>{var r;const n=2===te||e.duedate&&l()(e.duedate).isBefore(l()(),"day")&&3!==te;return(0,D.jsx)(T.pg,{accent:_,header:(0,D.jsxs)(f.A,{direction:"row",alignItems:"flex-start",justifyContent:"space-between",spacing:1,children:[(0,D.jsxs)(f.A,{direction:"row",alignItems:"center",spacing:1,sx:{minWidth:0},children:[(0,D.jsx)(V,{color:_,size:36,children:(0,D.jsx)(S.Itr,{size:18})}),(0,D.jsxs)(f.A,{spacing:.25,sx:{minWidth:0},children:[(0,D.jsx)(x.A,{variant:"subtitle2",sx:{fontWeight:700,color:F},noWrap:!0,children:e.tenantname||"\u2014"}),e.contactperson&&(0,D.jsx)(x.A,{variant:"caption",sx:{color:B},noWrap:!0,children:e.contactperson})]})]}),(0,D.jsx)(p.A,{title:"Preview invoice",placement:"left",children:(0,D.jsx)(g.A,{size:"small",onClick:()=>{ce(!0),setTimeout((()=>{ce(!1),P("/nearle/invoice/preview",{state:e})}),500)},sx:{flexShrink:0,bgcolor:q(_),color:_,border:"1px solid ".concat(X(_)),"&:hover":{bgcolor:_,color:"#fff"}},children:(0,D.jsx)(S.U3x,{size:16})})})]}),children:(0,D.jsxs)(T.FG,{children:[(0,D.jsx)(T.pY,{label:"Invoice ID",children:(0,D.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:U("#0ea5e9"),border:"1px solid ".concat(X("#0ea5e9")),color:"#0ea5e9",fontSize:11,fontWeight:800},children:[(0,D.jsx)(S.GdF,{size:12})," ",e.invoiceno||"\u2014"]})}),(0,D.jsx)(T.pY,{label:"Amount",align:"right",children:(0,D.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(X(_)),color:_,fontSize:11,fontWeight:800,justifyContent:"center"},children:[(0,D.jsx)(S.YHz,{size:11}),Q(e.totalamount).replace("\u20b9","").trim()]})}),(0,D.jsx)(T.pY,{label:"Invoice Date",children:(0,D.jsxs)(f.A,{direction:"row",alignItems:"center",spacing:.5,children:[(0,D.jsx)(S.auT,{size:12,color:H}),(0,D.jsx)(x.A,{variant:"caption",sx:{fontWeight:700,color:F},noWrap:!0,children:e.transactiondate?l()(e.transactiondate).format("DD/MM/YYYY"):"\u2014"})]})}),(0,D.jsx)(T.pY,{label:"Due Date",children:(0,D.jsxs)(f.A,{direction:"row",alignItems:"center",spacing:.5,children:[(0,D.jsx)(S.auT,{size:12,color:n&&3!==te?"#ef4444":H}),(0,D.jsx)(x.A,{variant:"caption",sx:{fontWeight:700,color:n&&3!==te?"#ef4444":F},noWrap:!0,children:e.duedate?l()(e.duedate).format("DD/MM/YYYY"):"\u2014"})]})}),(0,D.jsx)(T.pY,{label:"Items",children:(0,D.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:.875,py:.25,borderRadius:999,bgcolor:U("#14b8a6"),border:"1px solid ".concat(X("#14b8a6")),color:"#14b8a6",fontSize:11,fontWeight:800,minWidth:44,justifyContent:"center"},children:[(0,D.jsx)(S.gsJ,{size:11})," ",null!==(r=e.itemcount)&&void 0!==r?r:0]})})]})},e.invoiceno||o)}))})}):(0,D.jsx)(m.A,{sx:{maxHeight:{xs:"calc(100vh - 220px)",md:"calc(100vh - 190px)"},"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:X(_),borderRadius:8,"&:hover":{backgroundColor:_}},"&::-webkit-scrollbar-track":{backgroundColor:O}},children:(0,D.jsxs)(j.A,{stickyHeader:!0,sx:{minWidth:{xs:880,md:1060}},children:[(0,D.jsx)(b.A,{children:(0,D.jsxs)(A.A,{sx:{"& th":{backgroundColor:O,color:B,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(N),py:{xs:1,md:1.25},px:{xs:1,md:2}}},children:[(0,D.jsx)(v.A,{children:"#"}),(0,D.jsx)(v.A,{children:"Client"}),(0,D.jsx)(v.A,{children:"Invoice ID"}),(0,D.jsx)(v.A,{children:"Invoice Date"}),(0,D.jsx)(v.A,{children:"Due Date"}),(0,D.jsx)(v.A,{align:"center",children:"Items"}),(0,D.jsx)(v.A,{align:"right",children:"Amount"}),(0,D.jsx)(v.A,{align:"center",children:"Action"})]})}),(0,D.jsxs)(w.A,{children:[be&&(0,D.jsx)(M.r,{col:4}),be||0!==We.length?We.map(((e,o)=>{var r;const n=2===te||e.duedate&&l()(e.duedate).isBefore(l()(),"day")&&3!==te;return(0,D.jsxs)(A.A,{sx:{transition:"background-color 0.15s","& td":{borderBottom:"1px solid ".concat(E),py:{xs:1,md:1.5},px:{xs:1,md:2},verticalAlign:"top"},"&:hover":{backgroundColor:O}},children:[(0,D.jsx)(v.A,{children:(0,D.jsx)(x.A,{variant:"caption",sx:{fontWeight:700,color:H},children:String(Se*ne+o+1).padStart(2,"0")})}),(0,D.jsx)(v.A,{children:(0,D.jsxs)(f.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,D.jsx)(V,{color:_,size:36,children:(0,D.jsx)(S.Itr,{size:18})}),(0,D.jsxs)(f.A,{spacing:.25,sx:{minWidth:0},children:[(0,D.jsx)(x.A,{variant:"subtitle2",sx:{fontWeight:700,color:F,whiteSpace:"nowrap"},children:e.tenantname||"\u2014"}),e.contactperson&&(0,D.jsx)(x.A,{variant:"caption",sx:{color:B},children:e.contactperson})]})]})}),(0,D.jsx)(v.A,{children:(0,D.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:U("#0ea5e9"),border:"1px solid ".concat(X("#0ea5e9")),color:"#0ea5e9",fontSize:11,fontWeight:800},children:[(0,D.jsx)(S.GdF,{size:12})," ",e.invoiceno||"\u2014"]})}),(0,D.jsx)(v.A,{children:(0,D.jsxs)(f.A,{spacing:.25,children:[(0,D.jsxs)(f.A,{direction:"row",alignItems:"center",spacing:.5,children:[(0,D.jsx)(S.auT,{size:12,color:H}),(0,D.jsx)(x.A,{variant:"caption",sx:{fontWeight:700,color:F,whiteSpace:"nowrap"},children:e.transactiondate?l()(e.transactiondate).format("DD/MM/YYYY"):"\u2014"})]}),(0,D.jsx)(x.A,{variant:"caption",sx:{color:B,pl:2},children:e.transactiondate?l()(e.transactiondate).utc().format("hh:mm A"):""})]})}),(0,D.jsx)(v.A,{children:(0,D.jsxs)(f.A,{spacing:.25,children:[(0,D.jsxs)(f.A,{direction:"row",alignItems:"center",spacing:.5,children:[(0,D.jsx)(S.auT,{size:12,color:n&&3!==te?"#ef4444":H}),(0,D.jsx)(x.A,{variant:"caption",sx:{fontWeight:700,color:n&&3!==te?"#ef4444":F,whiteSpace:"nowrap"},children:e.duedate?l()(e.duedate).format("DD/MM/YYYY"):"\u2014"})]}),(0,D.jsx)(x.A,{variant:"caption",sx:{color:B,pl:2},children:e.duedate?l()(e.duedate).utc().format("hh:mm A"):""})]})}),(0,D.jsx)(v.A,{align:"center",children:(0,D.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:.875,py:.25,borderRadius:999,bgcolor:U("#14b8a6"),border:"1px solid ".concat(X("#14b8a6")),color:"#14b8a6",fontSize:11,fontWeight:800,minWidth:44,justifyContent:"center"},children:[(0,D.jsx)(S.gsJ,{size:11})," ",null!==(r=e.itemcount)&&void 0!==r?r:0]})}),(0,D.jsx)(v.A,{align:"right",children:(0,D.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(X(_)),color:_,fontSize:11,fontWeight:800,minWidth:110,justifyContent:"center"},children:[(0,D.jsx)(S.YHz,{size:11}),Q(e.totalamount).replace("\u20b9","").trim()]})}),(0,D.jsx)(v.A,{align:"center",children:(0,D.jsx)(p.A,{title:"Preview invoice",placement:"left",children:(0,D.jsx)(g.A,{size:"small",onClick:()=>{ce(!0),setTimeout((()=>{ce(!1),P("/nearle/invoice/preview",{state:e})}),500)},sx:{bgcolor:q(_),color:_,border:"1px solid ".concat(X(_)),"&:hover":{bgcolor:_,color:"#fff"}},children:(0,D.jsx)(S.U3x,{size:16})})})})]},e.invoiceno||o)})):(0,D.jsx)(A.A,{children:(0,D.jsx)(v.A,{colSpan:8,sx:{py:6},children:(0,D.jsxs)(f.A,{alignItems:"center",spacing:1.5,children:[(0,D.jsx)(c.A,{sx:{width:64,height:64,bgcolor:q("#94a3b8"),color:H},children:(0,D.jsx)(S.GdF,{size:28})}),(0,D.jsx)(x.A,{variant:"subtitle1",sx:{fontWeight:700,color:F},children:"No invoices to show"}),(0,D.jsx)(x.A,{variant:"caption",sx:{color:B},children:ae?"Try a different keyword.":"No ".concat(Ye.label.toLowerCase()," invoices for this filter.")})]})})})]})]})}),(0,D.jsx)(y.A,{}),(0,D.jsxs)(f.A,{direction:{xs:"column",sm:"row"},alignItems:{xs:"flex-start",sm:"center"},justifyContent:"space-between",sx:{px:2,py:1,background:"#ffffff"},children:[(0,D.jsxs)(x.A,{variant:"caption",sx:{fontWeight:800,color:B,letterSpacing:.6,textTransform:"uppercase"},children:["Page total \xb7 ",Q(ze)]}),(0,D.jsx)(k.A,{rowsPerPageOptions:[5,10,25,100],component:"div",count:Ce.length,rowsPerPage:ne,page:Se,onPageChange:(e,o)=>re(o),onRowsPerPageChange:e=>{var o;ie(+(null===e||void 0===e||null===(o=e.target)||void 0===o?void 0:o.value)),re(0)},sx:{"& .MuiTablePagination-toolbar":{minHeight:40,px:0},"& .MuiTablePagination-selectLabel, & .MuiTablePagination-displayedRows":{fontWeight:700,color:B}}})]})]}),(0,D.jsx)(i.sv,{})]});var Me}},27001:(e,o,r)=>{r.d(o,{A:()=>l});var n=r(93230),i=r(16491),t=r(82053),s=r(44414);function l(e){let{title:o,subtitle:r,live:l=!1,action:c}=e;return(0,s.jsxs)(n.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,s.jsxs)(i.A,{sx:{minWidth:0},children:[(0,s.jsx)(t.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:o}),r&&(0,s.jsxs)(n.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[l&&(0,s.jsx)(i.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,s.jsx)(t.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:r})]})]}),c&&(0,s.jsx)(i.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:c})]})}},36803:(e,o,r)=>{r.d(o,{A:()=>x});var n=r(48089),i=r(50704),t=r(93230),s=r(16491),l=r(82053),c=r(82917),a=r(41413),d=r(44414);function x(e){let{title:o,value:r,icon:x,color:h="#662582",caption:u,loading:f=!1}=e;return(0,d.jsx)(n.A,{sx:{height:"100%"},children:(0,d.jsx)(i.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,d.jsxs)(t.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,d.jsxs)(s.A,{sx:{minWidth:0,flex:1},children:[(0,d.jsx)(l.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o}),f?(0,d.jsx)(c.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,d.jsx)(l.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r}),u&&(0,d.jsx)(l.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:u})]}),x&&(0,d.jsx)(a.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(h,"14"),color:h,flexShrink:0},children:x})]})})})}},56311:(e,o,r)=>{r.d(o,{A:()=>u});var n=r(89379),i=r(9950),t=r(2660),s=r(2046),l=r(83274),c=r(25333),a=r(97125),d=r(7762),x=r(52097),h=r(44414);const u=e=>{let{value:o,onChange:r,onDebouncedChange:u,debounceTime:f=500,placeholder:p="Search (ctrl+k)",sx:g}=e;const m=(0,i.useRef)(null),[j]=(0,x.d7)(o,f);return(0,i.useEffect)((()=>{u&&u(j)}),[j,u]),(0,i.useEffect)((()=>{const e=e=>{var o;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(o=m.current)||void 0===o||o.focus());"Escape"===e.key&&document.activeElement===m.current&&m.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,h.jsx)(t.A,{sx:(0,n.A)({},g),inputRef:m,placeholder:p,autoComplete:"off",value:o,fullWidth:!0,onChange:e=>r(e.target.value),startAdornment:(0,h.jsx)(s.A,{position:"start",sx:{mr:-.5},children:(0,h.jsx)(a.A,{})}),endAdornment:(0,h.jsx)(l.A,{title:"Clear",children:(0,h.jsx)(c.A,{sx:{visibility:o?"visible":"hidden"},onClick:()=>r(""),children:(0,h.jsx)(d.A,{})})})})}},96646:(e,o,r)=>{r.d(o,{r:()=>c});var n=r(9213),i=r(21671),t=r(82917),s=r(93230),l=r(44414);const c=e=>{let{rowsPerPage:o=5,col:r=1}=e;return(0,l.jsx)(l.Fragment,{children:Array.from(new Array(o)).map(((e,o)=>(0,l.jsxs)(n.A,{children:[(0,l.jsx)(i.A,{children:(0,l.jsx)(t.A,{variant:"circular",width:24,height:24})}),(0,l.jsx)(i.A,{children:(0,l.jsx)(t.A,{variant:"text",width:30})}),Array.from({length:r}).map(((e,o)=>(0,l.jsx)(i.A,{children:(0,l.jsxs)(s.A,{spacing:.5,children:[(0,l.jsx)(t.A,{variant:"text",width:100}),(0,l.jsx)(t.A,{variant:"text",width:80})]})},o))),(0,l.jsx)(i.A,{children:(0,l.jsx)(t.A,{variant:"text",width:150})}),(0,l.jsx)(i.A,{children:(0,l.jsx)(t.A,{variant:"rounded",width:60,height:24})}),(0,l.jsx)(i.A,{align:"center",children:(0,l.jsxs)(s.A,{direction:"row",spacing:1,justifyContent:"flex-end",children:[(0,l.jsx)(t.A,{variant:"circular",width:28,height:28}),(0,l.jsx)(t.A,{variant:"circular",width:28,height:28})]})})]},o)))})}}}]); \ No newline at end of file diff --git a/build/static/js/6165.5ae41b22.chunk.js b/build/static/js/6165.5ae41b22.chunk.js new file mode 100644 index 0000000..591887d --- /dev/null +++ b/build/static/js/6165.5ae41b22.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[6165],{23787:(e,o,r)=>{r.d(o,{FG:()=>u,nV:()=>x,pY:()=>f,pg:()=>h});var n=r(22555),i=r(53986),t=r(71392),s=r(55235),l=r(48738),c=r(2866),a=r(65908);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:o,scroll:r=!1,onScroll:s,sx:l}=e,c=(0,i.A)(e,d);return(0,a.jsx)(t.A,(0,n.A)((0,n.A)({spacing:1.25,onScroll:s,sx:(0,n.A)((0,n.A)({p:1.5},r&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),l)},c),{},{children:o}))},h=e=>{let{accent:o="#662582",header:r,footer:i,selected:t=!1,onClick:c,children:d,sx:x}=e;return(0,a.jsxs)(s.A,{elevation:0,onClick:c,sx:(0,n.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:t?o:"#e2e8f0",background:t?"".concat(o,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,a.jsx)(l.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:o}}),(0,a.jsxs)(l.A,{sx:{p:1.5,pl:2},children:[r,d,i]})]})},u=e=>{let{children:o,columns:r=2,sx:i}=e;return(0,a.jsx)(l.A,{sx:(0,n.A)({display:"grid",gridTemplateColumns:"repeat(".concat(r,", minmax(0, 1fr))"),gap:1,mt:1.25},i),children:o})},f=e=>{let{label:o,value:r,children:n,full:i=!1,align:t="left"}=e;return(0,a.jsxs)(l.A,{sx:{gridColumn:i?"1 / -1":"auto",minWidth:0,textAlign:t},children:[(0,a.jsx)(c.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:o}),(0,a.jsx)(l.A,{sx:{mt:.25,minWidth:0},children:void 0!==n?n:(0,a.jsx)(c.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==r&&void 0!==r?r:"\u2014"})})]})}},26165:(e,o,r)=>{r.r(o),r.d(o,{default:()=>$});var n=r(85672),i=r(96515),t=r(68320),s=r(46077),l=r.n(s),c=r(97043),a=r(76264),d=r(48738),x=r(2866),h=r(1939),u=r(55235),f=r(71392),p=r(23440),g=r(11969),m=r(83209),j=r(72486),b=r(54016),A=r(50755),v=r(1596),w=r(81802),y=r(58571),k=r(67677),C=r(69039),S=r(48952),W=r(81425),I=r(52351),z=r(56311),R=r(27001),Y=r(36803),M=r(96646),T=r(23787),D=r(65908),P=r(22686);l().extend(P);const L=14,F="#0f172a",B="#64748b",H="#94a3b8",N="#e2e8f0",E="#f1f5f9",K="#ffffff",O="#f8fafc",G=(e,o)=>"".concat(e).concat(o),U=e=>G(e,"08"),q=e=>G(e,"18"),X=e=>G(e,"55"),_="#662582",V=e=>{let{color:o,selected:r,size:n=24,children:i}=e;return(0,D.jsx)(c.A,{sx:{width:n,height:n,bgcolor:r?o:q(o),color:r?"#fff":o,transition:"background-color 0.15s, color 0.15s"},children:i})},J={0:{key:"all",label:"All",color:_,icon:S.Uhn,countKey:"totalcount"},1:{key:"open",label:"Open",color:"#ef4444",icon:S.tX0,countKey:"pendingcount"},2:{key:"overdue",label:"Overdue",color:"#f59e0b",icon:S.tMO,countKey:"overduecount"},3:{key:"paid",label:"Paid",color:"#10b981",icon:S.mU9,countKey:"paidcount"}},Z=[0,1,2,3];function Q(e){return new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",minimumFractionDigits:2}).format(Number(e)||0)}const $=()=>{var e,o,r,s;const P=(0,i.Zp)(),$=(0,C.A)(),ee=(0,a.A)($.breakpoints.down("md")),[oe,re]=(0,n.useState)(0),[ne,ie]=(0,n.useState)(10),[te,se]=(0,n.useState)(0),[le,ce]=(0,n.useState)(!1),[ae,de]=(0,n.useState)(""),[xe,he]=(0,n.useState)(""),ue=n.useCallback((e=>{he(e),re(0)}),[]),{data:fe,isLoading:pe,isError:ge,error:me}=(0,t.I)({queryKey:["invoiceInsight"],queryFn:W.Y8,refetchInterval:3e5}),{data:je,isLoading:be,isError:Ae,error:ve}=(0,t.I)({queryKey:[te],queryFn:W.XC,refetchInterval:3e5}),we=pe||be,ye=ge||Ae,ke=(null===me||void 0===me?void 0:me.message)||(null===ve||void 0===ve?void 0:ve.message),Ce=(0,n.useMemo)((()=>{if(!je)return[];if(!xe)return je;const e=xe.toLowerCase().trim();return je.filter((o=>[o.tenantname,o.contactperson,String(o.invoiceno)].filter(Boolean).some((o=>String(o).toLowerCase().includes(e)))))}),[je,xe]),Se=(0,n.useMemo)((()=>{const e=Math.max(0,Math.ceil(Ce.length/ne)-1);return Math.min(oe,e)}),[Ce.length,oe,ne]);n.useEffect((()=>{oe!==Se&&re(Se)}),[oe,Se]);const We=(0,n.useMemo)((()=>Ce.slice(Se*ne,Se*ne+ne)),[Ce,Se,ne]),Ie=(0,n.useMemo)((()=>Ce.reduce(((e,o)=>e+(Number(o.totalamount)||0)),0)),[Ce]),ze=(0,n.useMemo)((()=>We.reduce(((e,o)=>e+(Number(o.totalamount)||0)),0)),[We]);if(ye)return ke;const Re=[{idx:0,label:"All Invoices",color:_,icon:S.Uhn,value:null!==(e=null===fe||void 0===fe?void 0:fe.totalcount)&&void 0!==e?e:0},{idx:1,label:"Open",color:"#ef4444",icon:S.G6c,value:null!==(o=null===fe||void 0===fe?void 0:fe.pendingcount)&&void 0!==o?o:0},{idx:2,label:"Overdue",color:"#f59e0b",icon:S.tMO,value:null!==(r=null===fe||void 0===fe?void 0:fe.overduecount)&&void 0!==r?r:0},{idx:3,label:"Paid",color:"#10b981",icon:S.cAP,value:null!==(s=null===fe||void 0===fe?void 0:fe.paidcount)&&void 0!==s?s:0}],Ye=J[te];return(0,D.jsxs)(D.Fragment,{children:[(le||we)&&(0,D.jsx)(I.A,{}),(0,D.jsx)(R.A,{title:"Invoices",subtitle:"Live \xb7 Viewing ".concat(Ye.label.toLowerCase()," invoices"),live:!0,action:(0,D.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:1,px:1.5,py:.875,borderRadius:999,bgcolor:"#ffffff",border:"1.5px solid ".concat(X(_)),color:_,fontWeight:800,fontSize:12},children:[(0,D.jsx)(S.YHz,{size:14}),(0,D.jsx)(x.A,{variant:"caption",sx:{fontWeight:800,color:B,letterSpacing:.4,textTransform:"uppercase"},children:"Grand Total"}),(0,D.jsx)(x.A,{sx:{fontWeight:800,color:_,fontSize:13},children:Q(Ie)})]})}),(0,D.jsx)(h.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:Re.map((e=>{const o=e.icon;return(0,D.jsx)(h.Ay,{item:!0,xs:6,sm:6,md:3,children:(0,D.jsx)(d.A,{onClick:()=>{se(e.idx),re(0)},sx:{cursor:"pointer",height:"100%"},children:(0,D.jsx)(Y.A,{title:e.label,value:e.value,icon:(0,D.jsx)(o,{size:20}),color:e.color,loading:pe})})},e.idx)}))}),(0,D.jsx)(u.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:L/8,borderTopRightRadius:L/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:N,borderBottom:0,background:"#fff"},children:(0,D.jsxs)(f.A,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:1.5,sx:{flexWrap:"wrap-reverse"},children:[(0,D.jsx)(f.A,{direction:"row",spacing:.75,sx:{flex:1,overflowX:"auto",py:.5,px:.25,"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-thumb":{backgroundColor:N,borderRadius:4}},children:Z.map((e=>{var o;const r=J[e],n=r.icon,i=te===e,t=null!==(o=null===fe||void 0===fe?void 0:fe[r.countKey])&&void 0!==o?o:0;return(0,D.jsxs)(d.A,{onClick:()=>{se(e),re(0)},sx:{display:"inline-flex",alignItems:"center",gap:{xs:.625,md:.875},pl:.5,pr:{xs:1,md:1.25},py:.5,flexShrink:0,cursor:"pointer",borderRadius:999,border:"1px solid ".concat(i?r.color:N),bgcolor:i?r.color:K,color:i?"#fff":B,fontWeight:600,boxShadow:"none",transition:"background-color 0.15s, border-color 0.15s, color 0.15s","&:hover":{borderColor:i?r.color:"#cbd5e1",bgcolor:i?r.color:O}},children:[(0,D.jsx)(c.A,{sx:{width:{xs:20,md:22},height:{xs:20,md:22},bgcolor:i?"rgba(255,255,255,0.22)":q(r.color),color:i?"#fff":r.color},children:(0,D.jsx)(n,{size:12})}),(0,D.jsx)(x.A,{variant:"caption",sx:{fontWeight:600,fontSize:{xs:11.5,md:13},lineHeight:1},children:r.label}),(0,D.jsx)(d.A,{sx:{minWidth:{xs:20,md:24},height:{xs:18,md:20},px:.625,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:999,fontSize:{xs:10,md:11},fontWeight:700,bgcolor:i?"rgba(255,255,255,0.22)":O,color:i?"#fff":B,border:"none"},children:t})]},e)}))}),(0,D.jsx)(d.A,{sx:{width:{xs:"100%",sm:240,lg:280},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,D.jsx)(z.A,{value:ae,onChange:de,onDebouncedChange:ue,placeholder:"Search invoices (ctrl+k)",sx:{m:0,width:"100%",borderRadius:999,bgcolor:"#ffffff","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:1.5},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat((Me=_,G(Me,"26")))}}})})]})}),(0,D.jsxs)(u.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:L/8,borderBottomRightRadius:L/8,border:"1px solid",borderColor:N,overflow:"hidden",background:"#fff"},children:[ee?(0,D.jsx)(D.Fragment,{children:be?(0,D.jsx)(d.A,{sx:{p:1.5},children:(0,D.jsx)(M.r,{col:4})}):0===We.length?(0,D.jsxs)(f.A,{alignItems:"center",spacing:1.5,sx:{py:6,px:2},children:[(0,D.jsx)(c.A,{sx:{width:64,height:64,bgcolor:q("#94a3b8"),color:H},children:(0,D.jsx)(S.GdF,{size:28})}),(0,D.jsx)(x.A,{variant:"subtitle1",sx:{fontWeight:700,color:F},children:"No invoices to show"}),(0,D.jsx)(x.A,{variant:"caption",sx:{color:B,textAlign:"center"},children:ae?"Try a different keyword.":"No ".concat(Ye.label.toLowerCase()," invoices for this filter.")})]}):(0,D.jsx)(T.nV,{children:We.map(((e,o)=>{var r;const n=2===te||e.duedate&&l()(e.duedate).isBefore(l()(),"day")&&3!==te;return(0,D.jsx)(T.pg,{accent:_,header:(0,D.jsxs)(f.A,{direction:"row",alignItems:"flex-start",justifyContent:"space-between",spacing:1,children:[(0,D.jsxs)(f.A,{direction:"row",alignItems:"center",spacing:1,sx:{minWidth:0},children:[(0,D.jsx)(V,{color:_,size:36,children:(0,D.jsx)(S.Itr,{size:18})}),(0,D.jsxs)(f.A,{spacing:.25,sx:{minWidth:0},children:[(0,D.jsx)(x.A,{variant:"subtitle2",sx:{fontWeight:700,color:F},noWrap:!0,children:e.tenantname||"\u2014"}),e.contactperson&&(0,D.jsx)(x.A,{variant:"caption",sx:{color:B},noWrap:!0,children:e.contactperson})]})]}),(0,D.jsx)(p.A,{title:"Preview invoice",placement:"left",children:(0,D.jsx)(g.A,{size:"small",onClick:()=>{ce(!0),setTimeout((()=>{ce(!1),P("/nearle/invoice/preview",{state:e})}),500)},sx:{flexShrink:0,bgcolor:q(_),color:_,border:"1px solid ".concat(X(_)),"&:hover":{bgcolor:_,color:"#fff"}},children:(0,D.jsx)(S.U3x,{size:16})})})]}),children:(0,D.jsxs)(T.FG,{children:[(0,D.jsx)(T.pY,{label:"Invoice ID",children:(0,D.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:U("#0ea5e9"),border:"1px solid ".concat(X("#0ea5e9")),color:"#0ea5e9",fontSize:11,fontWeight:800},children:[(0,D.jsx)(S.GdF,{size:12})," ",e.invoiceno||"\u2014"]})}),(0,D.jsx)(T.pY,{label:"Amount",align:"right",children:(0,D.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(X(_)),color:_,fontSize:11,fontWeight:800,justifyContent:"center"},children:[(0,D.jsx)(S.YHz,{size:11}),Q(e.totalamount).replace("\u20b9","").trim()]})}),(0,D.jsx)(T.pY,{label:"Invoice Date",children:(0,D.jsxs)(f.A,{direction:"row",alignItems:"center",spacing:.5,children:[(0,D.jsx)(S.auT,{size:12,color:H}),(0,D.jsx)(x.A,{variant:"caption",sx:{fontWeight:700,color:F},noWrap:!0,children:e.transactiondate?l()(e.transactiondate).format("DD/MM/YYYY"):"\u2014"})]})}),(0,D.jsx)(T.pY,{label:"Due Date",children:(0,D.jsxs)(f.A,{direction:"row",alignItems:"center",spacing:.5,children:[(0,D.jsx)(S.auT,{size:12,color:n&&3!==te?"#ef4444":H}),(0,D.jsx)(x.A,{variant:"caption",sx:{fontWeight:700,color:n&&3!==te?"#ef4444":F},noWrap:!0,children:e.duedate?l()(e.duedate).format("DD/MM/YYYY"):"\u2014"})]})}),(0,D.jsx)(T.pY,{label:"Items",children:(0,D.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:.875,py:.25,borderRadius:999,bgcolor:U("#14b8a6"),border:"1px solid ".concat(X("#14b8a6")),color:"#14b8a6",fontSize:11,fontWeight:800,minWidth:44,justifyContent:"center"},children:[(0,D.jsx)(S.gsJ,{size:11})," ",null!==(r=e.itemcount)&&void 0!==r?r:0]})})]})},e.invoiceno||o)}))})}):(0,D.jsx)(m.A,{sx:{maxHeight:{xs:"calc(100vh - 220px)",md:"calc(100vh - 190px)"},"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:X(_),borderRadius:8,"&:hover":{backgroundColor:_}},"&::-webkit-scrollbar-track":{backgroundColor:O}},children:(0,D.jsxs)(j.A,{stickyHeader:!0,sx:{minWidth:{xs:880,md:1060}},children:[(0,D.jsx)(b.A,{children:(0,D.jsxs)(A.A,{sx:{"& th":{backgroundColor:O,color:B,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(N),py:{xs:1,md:1.25},px:{xs:1,md:2}}},children:[(0,D.jsx)(v.A,{children:"#"}),(0,D.jsx)(v.A,{children:"Client"}),(0,D.jsx)(v.A,{children:"Invoice ID"}),(0,D.jsx)(v.A,{children:"Invoice Date"}),(0,D.jsx)(v.A,{children:"Due Date"}),(0,D.jsx)(v.A,{align:"center",children:"Items"}),(0,D.jsx)(v.A,{align:"right",children:"Amount"}),(0,D.jsx)(v.A,{align:"center",children:"Action"})]})}),(0,D.jsxs)(w.A,{children:[be&&(0,D.jsx)(M.r,{col:4}),be||0!==We.length?We.map(((e,o)=>{var r;const n=2===te||e.duedate&&l()(e.duedate).isBefore(l()(),"day")&&3!==te;return(0,D.jsxs)(A.A,{sx:{transition:"background-color 0.15s","& td":{borderBottom:"1px solid ".concat(E),py:{xs:1,md:1.5},px:{xs:1,md:2},verticalAlign:"top"},"&:hover":{backgroundColor:O}},children:[(0,D.jsx)(v.A,{children:(0,D.jsx)(x.A,{variant:"caption",sx:{fontWeight:700,color:H},children:String(Se*ne+o+1).padStart(2,"0")})}),(0,D.jsx)(v.A,{children:(0,D.jsxs)(f.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,D.jsx)(V,{color:_,size:36,children:(0,D.jsx)(S.Itr,{size:18})}),(0,D.jsxs)(f.A,{spacing:.25,sx:{minWidth:0},children:[(0,D.jsx)(x.A,{variant:"subtitle2",sx:{fontWeight:700,color:F,whiteSpace:"nowrap"},children:e.tenantname||"\u2014"}),e.contactperson&&(0,D.jsx)(x.A,{variant:"caption",sx:{color:B},children:e.contactperson})]})]})}),(0,D.jsx)(v.A,{children:(0,D.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:U("#0ea5e9"),border:"1px solid ".concat(X("#0ea5e9")),color:"#0ea5e9",fontSize:11,fontWeight:800},children:[(0,D.jsx)(S.GdF,{size:12})," ",e.invoiceno||"\u2014"]})}),(0,D.jsx)(v.A,{children:(0,D.jsxs)(f.A,{spacing:.25,children:[(0,D.jsxs)(f.A,{direction:"row",alignItems:"center",spacing:.5,children:[(0,D.jsx)(S.auT,{size:12,color:H}),(0,D.jsx)(x.A,{variant:"caption",sx:{fontWeight:700,color:F,whiteSpace:"nowrap"},children:e.transactiondate?l()(e.transactiondate).format("DD/MM/YYYY"):"\u2014"})]}),(0,D.jsx)(x.A,{variant:"caption",sx:{color:B,pl:2},children:e.transactiondate?l()(e.transactiondate).utc().format("hh:mm A"):""})]})}),(0,D.jsx)(v.A,{children:(0,D.jsxs)(f.A,{spacing:.25,children:[(0,D.jsxs)(f.A,{direction:"row",alignItems:"center",spacing:.5,children:[(0,D.jsx)(S.auT,{size:12,color:n&&3!==te?"#ef4444":H}),(0,D.jsx)(x.A,{variant:"caption",sx:{fontWeight:700,color:n&&3!==te?"#ef4444":F,whiteSpace:"nowrap"},children:e.duedate?l()(e.duedate).format("DD/MM/YYYY"):"\u2014"})]}),(0,D.jsx)(x.A,{variant:"caption",sx:{color:B,pl:2},children:e.duedate?l()(e.duedate).utc().format("hh:mm A"):""})]})}),(0,D.jsx)(v.A,{align:"center",children:(0,D.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:.875,py:.25,borderRadius:999,bgcolor:U("#14b8a6"),border:"1px solid ".concat(X("#14b8a6")),color:"#14b8a6",fontSize:11,fontWeight:800,minWidth:44,justifyContent:"center"},children:[(0,D.jsx)(S.gsJ,{size:11})," ",null!==(r=e.itemcount)&&void 0!==r?r:0]})}),(0,D.jsx)(v.A,{align:"right",children:(0,D.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(X(_)),color:_,fontSize:11,fontWeight:800,minWidth:110,justifyContent:"center"},children:[(0,D.jsx)(S.YHz,{size:11}),Q(e.totalamount).replace("\u20b9","").trim()]})}),(0,D.jsx)(v.A,{align:"center",children:(0,D.jsx)(p.A,{title:"Preview invoice",placement:"left",children:(0,D.jsx)(g.A,{size:"small",onClick:()=>{ce(!0),setTimeout((()=>{ce(!1),P("/nearle/invoice/preview",{state:e})}),500)},sx:{bgcolor:q(_),color:_,border:"1px solid ".concat(X(_)),"&:hover":{bgcolor:_,color:"#fff"}},children:(0,D.jsx)(S.U3x,{size:16})})})})]},e.invoiceno||o)})):(0,D.jsx)(A.A,{children:(0,D.jsx)(v.A,{colSpan:8,sx:{py:6},children:(0,D.jsxs)(f.A,{alignItems:"center",spacing:1.5,children:[(0,D.jsx)(c.A,{sx:{width:64,height:64,bgcolor:q("#94a3b8"),color:H},children:(0,D.jsx)(S.GdF,{size:28})}),(0,D.jsx)(x.A,{variant:"subtitle1",sx:{fontWeight:700,color:F},children:"No invoices to show"}),(0,D.jsx)(x.A,{variant:"caption",sx:{color:B},children:ae?"Try a different keyword.":"No ".concat(Ye.label.toLowerCase()," invoices for this filter.")})]})})})]})]})}),(0,D.jsx)(y.A,{}),(0,D.jsxs)(f.A,{direction:{xs:"column",sm:"row"},alignItems:{xs:"flex-start",sm:"center"},justifyContent:"space-between",sx:{px:2,py:1,background:"#ffffff"},children:[(0,D.jsxs)(x.A,{variant:"caption",sx:{fontWeight:800,color:B,letterSpacing:.6,textTransform:"uppercase"},children:["Page total \xb7 ",Q(ze)]}),(0,D.jsx)(k.A,{rowsPerPageOptions:[5,10,25,100],component:"div",count:Ce.length,rowsPerPage:ne,page:Se,onPageChange:(e,o)=>re(o),onRowsPerPageChange:e=>{var o;ie(+(null===e||void 0===e||null===(o=e.target)||void 0===o?void 0:o.value)),re(0)},sx:{"& .MuiTablePagination-toolbar":{minHeight:40,px:0},"& .MuiTablePagination-selectLabel, & .MuiTablePagination-displayedRows":{fontWeight:700,color:B}}})]})]}),(0,D.jsx)(i.sv,{})]});var Me}},27001:(e,o,r)=>{r.d(o,{A:()=>l});var n=r(71392),i=r(48738),t=r(2866),s=r(65908);function l(e){let{title:o,subtitle:r,live:l=!1,action:c}=e;return(0,s.jsxs)(n.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,s.jsxs)(i.A,{sx:{minWidth:0},children:[(0,s.jsx)(t.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:o}),r&&(0,s.jsxs)(n.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[l&&(0,s.jsx)(i.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,s.jsx)(t.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:r})]})]}),c&&(0,s.jsx)(i.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:c})]})}},36803:(e,o,r)=>{r.d(o,{A:()=>x});var n=r(84007),i=r(75953),t=r(71392),s=r(48738),l=r(2866),c=r(91834),a=r(97043),d=r(65908);function x(e){let{title:o,value:r,icon:x,color:h="#662582",caption:u,loading:f=!1}=e;return(0,d.jsx)(n.A,{sx:{height:"100%"},children:(0,d.jsx)(i.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,d.jsxs)(t.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,d.jsxs)(s.A,{sx:{minWidth:0,flex:1},children:[(0,d.jsx)(l.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o}),f?(0,d.jsx)(c.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,d.jsx)(l.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r}),u&&(0,d.jsx)(l.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:u})]}),x&&(0,d.jsx)(a.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(h,"14"),color:h,flexShrink:0},children:x})]})})})}},56311:(e,o,r)=>{r.d(o,{A:()=>u});var n=r(22555),i=r(85672),t=r(29776),s=r(43318),l=r(23440),c=r(11969),a=r(80795),d=r(51808),x=r(93811),h=r(65908);const u=e=>{let{value:o,onChange:r,onDebouncedChange:u,debounceTime:f=500,placeholder:p="Search (ctrl+k)",sx:g}=e;const m=(0,i.useRef)(null),[j]=(0,x.d7)(o,f);return(0,i.useEffect)((()=>{u&&u(j)}),[j,u]),(0,i.useEffect)((()=>{const e=e=>{var o;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(o=m.current)||void 0===o||o.focus());"Escape"===e.key&&document.activeElement===m.current&&m.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,h.jsx)(t.A,{sx:(0,n.A)({},g),inputRef:m,placeholder:p,autoComplete:"off",value:o,fullWidth:!0,onChange:e=>r(e.target.value),startAdornment:(0,h.jsx)(s.A,{position:"start",sx:{mr:-.5},children:(0,h.jsx)(a.A,{})}),endAdornment:(0,h.jsx)(l.A,{title:"Clear",children:(0,h.jsx)(c.A,{sx:{visibility:o?"visible":"hidden"},onClick:()=>r(""),children:(0,h.jsx)(d.A,{})})})})}},96646:(e,o,r)=>{r.d(o,{r:()=>c});var n=r(50755),i=r(1596),t=r(91834),s=r(71392),l=r(65908);const c=e=>{let{rowsPerPage:o=5,col:r=1}=e;return(0,l.jsx)(l.Fragment,{children:Array.from(new Array(o)).map(((e,o)=>(0,l.jsxs)(n.A,{children:[(0,l.jsx)(i.A,{children:(0,l.jsx)(t.A,{variant:"circular",width:24,height:24})}),(0,l.jsx)(i.A,{children:(0,l.jsx)(t.A,{variant:"text",width:30})}),Array.from({length:r}).map(((e,o)=>(0,l.jsx)(i.A,{children:(0,l.jsxs)(s.A,{spacing:.5,children:[(0,l.jsx)(t.A,{variant:"text",width:100}),(0,l.jsx)(t.A,{variant:"text",width:80})]})},o))),(0,l.jsx)(i.A,{children:(0,l.jsx)(t.A,{variant:"text",width:150})}),(0,l.jsx)(i.A,{children:(0,l.jsx)(t.A,{variant:"rounded",width:60,height:24})}),(0,l.jsx)(i.A,{align:"center",children:(0,l.jsxs)(s.A,{direction:"row",spacing:1,justifyContent:"flex-end",children:[(0,l.jsx)(t.A,{variant:"circular",width:28,height:28}),(0,l.jsx)(t.A,{variant:"circular",width:28,height:28})]})})]},o)))})}}}]); \ No newline at end of file diff --git a/build/static/js/62.8be6503f.chunk.js b/build/static/js/62.8be6503f.chunk.js deleted file mode 100644 index 8202a28..0000000 --- a/build/static/js/62.8be6503f.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[62],{7208:(t,e,n)=>{n.d(e,{Y:()=>o});var i=n(9950);const s=(t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t};function o(){for(var t=arguments.length,e=new Array(t),n=0;n{o.current="number"!==typeof t?s(0,e.length,o.current+1):t,a(e[o.current])}),[e.length,...e])]}},20454:(t,e,n)=>{function i(t){if(null==t)throw new TypeError("Cannot destructure "+t)}n.d(e,{A:()=>i})},76475:(t,e,n)=>{n.d(e,{P:()=>hr});var i=n(89379),s=n(9950);const o=(0,s.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),r=(0,s.createContext)({}),a=(0,s.createContext)(null),l="undefined"!==typeof document,c=l?s.useLayoutEffect:s.useEffect,u=(0,s.createContext)({strict:!1}),h=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),d="data-"+h("framerAppearId");function p(t){return t&&"object"===typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function m(t){return"string"===typeof t||Array.isArray(t)}function f(t){return null!==t&&"object"===typeof t&&"function"===typeof t.start}const g=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],v=["initial",...g];function y(t){return f(t.animate)||v.some((e=>m(t[e])))}function x(t){return Boolean(y(t)||t.variants)}function A(t){const{initial:e,animate:n}=function(t,e){if(y(t)){const{initial:e,animate:n}=t;return{initial:!1===e||m(e)?e:void 0,animate:m(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,s.useContext)(r));return(0,s.useMemo)((()=>({initial:e,animate:n})),[P(e),P(n)])}function P(t){return Array.isArray(t)?t.join(" "):t}const b={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},T={};for(const pr in b)T[pr]={isEnabled:t=>b[pr].some((e=>!!t[e]))};const w=(0,s.createContext)({}),S=(0,s.createContext)({}),E=Symbol.for("motionComponentSymbol");function V(t){let{preloadedFeatures:e,createVisualElement:n,useRender:h,useVisualState:m,Component:f}=t;e&&function(t){for(const e in t)T[e]=(0,i.A)((0,i.A)({},T[e]),t[e])}(e);const g=(0,s.forwardRef)((function(t,g){let v;const y=(0,i.A)((0,i.A)((0,i.A)({},(0,s.useContext)(o)),t),{},{layoutId:C(t)}),{isStatic:x}=y,P=A(t),b=m(t,x);if(!x&&l){P.visualElement=function(t,e,n,i){const{visualElement:l}=(0,s.useContext)(r),h=(0,s.useContext)(u),p=(0,s.useContext)(a),m=(0,s.useContext)(o).reducedMotion,f=(0,s.useRef)();i=i||h.renderer,!f.current&&i&&(f.current=i(t,{visualState:e,parent:l,props:n,presenceContext:p,blockInitialAnimation:!!p&&!1===p.initial,reducedMotionConfig:m}));const g=f.current;(0,s.useInsertionEffect)((()=>{g&&g.update(n,p)}));const v=(0,s.useRef)(Boolean(n[d]&&!window.HandoffComplete));return c((()=>{g&&(g.render(),v.current&&g.animationState&&g.animationState.animateChanges())})),(0,s.useEffect)((()=>{g&&(g.updateFeatures(),!v.current&&g.animationState&&g.animationState.animateChanges(),v.current&&(v.current=!1,window.HandoffComplete=!0))})),g}(f,b,y,n);const t=(0,s.useContext)(S),i=(0,s.useContext)(u).strict;P.visualElement&&(v=P.visualElement.loadFeatures(y,i,e,t))}return s.createElement(r.Provider,{value:P},v&&P.visualElement?s.createElement(v,(0,i.A)({visualElement:P.visualElement},y)):null,h(f,t,function(t,e,n){return(0,s.useCallback)((i=>{i&&t.mount&&t.mount(i),e&&(i?e.mount(i):e.unmount()),n&&("function"===typeof n?n(i):p(n)&&(n.current=i))}),[e])}(b,P.visualElement,g),b,x,P.visualElement))}));return g[E]=f,g}function C(t){let{layoutId:e}=t;const n=(0,s.useContext)(w).id;return n&&void 0!==e?n+"-"+e:e}function M(t){function e(e){return V(t(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}if("undefined"===typeof Proxy)return e;const n=new Map;return new Proxy(e,{get:(t,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const D=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function k(t){return"string"===typeof t&&!t.includes("-")&&!!(D.indexOf(t)>-1||/[A-Z]/.test(t))}const R={};const L=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],j=new Set(L);function B(t,e){let{layout:n,layoutId:i}=e;return j.has(t)||t.startsWith("origin")||(n||void 0!==i)&&(!!R[t]||"opacity"===t)}const F=t=>Boolean(t&&t.getVelocity),O={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},I=L.length;const U=t=>e=>"string"===typeof e&&e.startsWith(t),N=U("--"),W=U("var(--"),H=(t,e)=>e&&"number"===typeof t?e.transform(t):t,z=(t,e,n)=>Math.min(Math.max(n,t),e),Y={test:t=>"number"===typeof t,parse:parseFloat,transform:t=>t},X=(0,i.A)((0,i.A)({},Y),{},{transform:t=>z(0,1,t)}),G=(0,i.A)((0,i.A)({},Y),{},{default:1}),q=t=>Math.round(1e5*t)/1e5,Z=/(-)?([\d]*\.?[\d])+/g,K=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,$=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function _(t){return"string"===typeof t}const J=t=>({test:e=>_(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>"".concat(e).concat(t)}),Q=J("deg"),tt=J("%"),et=J("px"),nt=J("vh"),it=J("vw"),st=(0,i.A)((0,i.A)({},tt),{},{parse:t=>tt.parse(t)/100,transform:t=>tt.transform(100*t)}),ot=(0,i.A)((0,i.A)({},Y),{},{transform:Math.round}),rt={borderWidth:et,borderTopWidth:et,borderRightWidth:et,borderBottomWidth:et,borderLeftWidth:et,borderRadius:et,radius:et,borderTopLeftRadius:et,borderTopRightRadius:et,borderBottomRightRadius:et,borderBottomLeftRadius:et,width:et,maxWidth:et,height:et,maxHeight:et,size:et,top:et,right:et,bottom:et,left:et,padding:et,paddingTop:et,paddingRight:et,paddingBottom:et,paddingLeft:et,margin:et,marginTop:et,marginRight:et,marginBottom:et,marginLeft:et,rotate:Q,rotateX:Q,rotateY:Q,rotateZ:Q,scale:G,scaleX:G,scaleY:G,scaleZ:G,skew:Q,skewX:Q,skewY:Q,distance:et,translateX:et,translateY:et,translateZ:et,x:et,y:et,z:et,perspective:et,transformPerspective:et,opacity:X,originX:st,originY:st,originZ:et,zIndex:ot,fillOpacity:X,strokeOpacity:X,numOctaves:ot};function at(t,e,n,i){const{style:s,vars:o,transform:r,transformOrigin:a}=t;let l=!1,c=!1,u=!0;for(const h in e){const t=e[h];if(N(h)){o[h]=t;continue}const n=rt[h],i=H(t,n);if(j.has(h)){if(l=!0,r[h]=i,!u)continue;t!==(n.default||0)&&(u=!1)}else h.startsWith("origin")?(c=!0,a[h]=i):s[h]=i}if(e.transform||(l||i?s.transform=function(t,e,n,i){let{enableHardwareAcceleration:s=!0,allowTransformNone:o=!0}=e,r="";for(let a=0;a({style:{},transform:{},transformOrigin:{},vars:{}});function ct(t,e,n){for(const i in e)F(e[i])||B(i,n)||(t[i]=e[i])}function ut(t,e,n){const i={};return ct(i,t.style||{},t),Object.assign(i,function(t,e,n){let{transformTemplate:i}=t;return(0,s.useMemo)((()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return at(t,e,{enableHardwareAcceleration:!n},i),Object.assign({},t.vars,t.style)}),[e])}(t,e,n)),t.transformValues?t.transformValues(i):i}function ht(t,e,n){const i={},s=ut(t,e,n);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=s,i}const dt=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function pt(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||dt.has(t)}let mt=t=>!pt(t);try{(ft=require("@emotion/is-prop-valid").default)&&(mt=t=>t.startsWith("on")?!pt(t):ft(t))}catch(dr){}var ft;var gt=n(80045);function vt(t,e,n){return"string"===typeof t?t:et.transform(e+n*t)}const yt={offset:"stroke-dashoffset",array:"stroke-dasharray"},xt={offset:"strokeDashoffset",array:"strokeDasharray"};const At=["attrX","attrY","attrScale","originX","originY","pathLength","pathSpacing","pathOffset"];function Pt(t,e,n,i,s){let{attrX:o,attrY:r,attrScale:a,originX:l,originY:c,pathLength:u,pathSpacing:h=1,pathOffset:d=0}=e;if(at(t,(0,gt.A)(e,At),n,s),i)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:p,style:m,dimensions:f}=t;p.transform&&(f&&(m.transform=p.transform),delete p.transform),f&&(void 0!==l||void 0!==c||m.transform)&&(m.transformOrigin=function(t,e,n){const i=vt(e,t.x,t.width),s=vt(n,t.y,t.height);return"".concat(i," ").concat(s)}(f,void 0!==l?l:.5,void 0!==c?c:.5)),void 0!==o&&(p.x=o),void 0!==r&&(p.y=r),void 0!==a&&(p.scale=a),void 0!==u&&function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];t.pathLength=1;const o=s?yt:xt;t[o.offset]=et.transform(-i);const r=et.transform(e),a=et.transform(n);t[o.array]="".concat(r," ").concat(a)}(p,u,h,d,!1)}const bt=()=>(0,i.A)((0,i.A)({},{style:{},transform:{},transformOrigin:{},vars:{}}),{},{attrs:{}}),Tt=t=>"string"===typeof t&&"svg"===t.toLowerCase();function wt(t,e,n,o){const r=(0,s.useMemo)((()=>{const n=bt();return Pt(n,e,{enableHardwareAcceleration:!1},Tt(o),t.transformTemplate),(0,i.A)((0,i.A)({},n.attrs),{},{style:(0,i.A)({},n.style)})}),[e]);if(t.style){const e={};ct(e,t.style,t),r.style=(0,i.A)((0,i.A)({},e),r.style)}return r}function St(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(e,n,o,r,a)=>{let{latestValues:l}=r;const c=(k(e)?wt:ht)(n,l,a,e),u=function(t,e,n){const i={};for(const s in t)"values"===s&&"object"===typeof t.values||(mt(s)||!0===n&&pt(s)||!e&&!pt(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}(n,"string"===typeof e,t),h=(0,i.A)((0,i.A)((0,i.A)({},u),c),{},{ref:o}),{children:d}=n,p=(0,s.useMemo)((()=>F(d)?d.get():d),[d]);return(0,s.createElement)(e,(0,i.A)((0,i.A)({},h),{},{children:p}))}}function Et(t,e,n,i){let{style:s,vars:o}=e;Object.assign(t.style,s,i&&i.getProjectionStyles(n));for(const r in o)t.style.setProperty(r,o[r])}const Vt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ct(t,e,n,i){Et(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(Vt.has(s)?s:h(s),e.attrs[s])}function Mt(t,e){const{style:n}=t,i={};for(const s in n)(F(n[s])||e.style&&F(e.style[s])||B(s,t))&&(i[s]=n[s]);return i}function Dt(t,e){const n=Mt(t,e);for(const i in t)if(F(t[i])||F(e[i])){n[-1!==L.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]}return n}function kt(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return"function"===typeof e&&(e=e(void 0!==n?n:t.custom,i,s)),"string"===typeof e&&(e=t.variants&&t.variants[e]),"function"===typeof e&&(e=e(void 0!==n?n:t.custom,i,s)),e}const Rt=t=>Array.isArray(t);function Lt(t){const e=F(t)?t.get():t;return n=e,Boolean(n&&"object"===typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}const jt=["transitionEnd","transition"];const Bt=t=>(e,n)=>{const i=(0,s.useContext)(r),o=(0,s.useContext)(a),l=()=>function(t,e,n,i){let{scrapeMotionValuesFromProps:s,createRenderState:o,onMount:r}=t;const a={latestValues:Ft(e,n,i,s),renderState:o()};return r&&(a.mount=t=>r(e,t,a)),a}(t,e,i,o);return n?l():function(t){const e=(0,s.useRef)(null);return null===e.current&&(e.current=t()),e.current}(l)};function Ft(t,e,n,i){const s={},o=i(t,{});for(const d in o)s[d]=Lt(o[d]);let{initial:r,animate:a}=t;const l=y(t),c=x(t);e&&c&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let u=!!n&&!1===n.initial;u=u||!1===r;const h=u?a:r;if(h&&"boolean"!==typeof h&&!f(h)){(Array.isArray(h)?h:[h]).forEach((e=>{const n=kt(t,e);if(!n)return;const{transitionEnd:i,transition:o}=n,r=(0,gt.A)(n,jt);for(const t in r){let e=r[t];if(Array.isArray(e)){e=e[u?e.length-1:0]}null!==e&&(s[t]=e)}for(const t in i)s[t]=i[t]}))}return s}const Ot=t=>t;class It{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}const Ut=["prepare","read","update","preRender","render","postRender"];const{schedule:Nt,cancel:Wt,state:Ht,steps:zt}=function(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=Ut.reduce(((t,e)=>(t[e]=function(t){let e=new It,n=new It,i=0,s=!1,o=!1;const r=new WeakSet,a={schedule:function(t){const o=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&s,a=o?e:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&r.add(t),a.add(t)&&o&&s&&(i=e.order.length),t},cancel:t=>{n.remove(t),r.delete(t)},process:l=>{if(s)o=!0;else{if(s=!0,[e,n]=[n,e],n.clear(),i=e.order.length,i)for(let n=0;nn=!0)),t)),{}),r=t=>o[t].process(s),a=()=>{const o=performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(o-s.timestamp,40),1),s.timestamp=o,s.isProcessing=!0,Ut.forEach(r),s.isProcessing=!1,n&&e&&(i=!1,t(a))},l=Ut.reduce(((e,r)=>{const l=o[r];return e[r]=function(e){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||(n=!0,i=!0,s.isProcessing||t(a)),l.schedule(e,o,r)},e}),{});return{schedule:l,cancel:t=>Ut.forEach((e=>o[e].cancel(t))),state:s,steps:o}}("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:Ot,!0),Yt={useVisualState:Bt({scrapeMotionValuesFromProps:Dt,createRenderState:bt,onMount:(t,e,n)=>{let{renderState:i,latestValues:s}=n;Nt.read((()=>{try{i.dimensions="function"===typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}})),Nt.render((()=>{Pt(i,s,{enableHardwareAcceleration:!1},Tt(e.tagName),t.transformTemplate),Ct(e,i)}))}})},Xt={useVisualState:Bt({scrapeMotionValuesFromProps:Mt,createRenderState:lt})};function Gt(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}const qt=t=>"mouse"===t.pointerType?"number"!==typeof t.button||t.button<=0:!1!==t.isPrimary;function Zt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page";return{point:{x:t[e+"X"],y:t[e+"Y"]}}}function Kt(t,e,n,i){return Gt(t,e,(t=>e=>qt(e)&&t(e,Zt(e)))(n),i)}const $t=(t,e)=>n=>e(t(n)),_t=function(){for(var t=arguments.length,e=new Array(t),n=0;n{const n=()=>{e=null};return null===e&&(e=t,n)}}const Qt=Jt("dragHorizontal"),te=Jt("dragVertical");function ee(t){let e=!1;if("y"===t)e=te();else if("x"===t)e=Qt();else{const t=Qt(),n=te();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function ne(){const t=ee(!0);return!t||(t(),!1)}class ie{constructor(t){this.isMounted=!1,this.node=t}update(){}}function se(t,e){const n="pointer"+(e?"enter":"leave"),i="onHover"+(e?"Start":"End");return Kt(t.current,n,((n,s)=>{if("touch"===n.pointerType||ne())return;const o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e),o[i]&&Nt.update((()=>o[i](n,s)))}),{passive:!t.getProps()[i]})}const oe=(t,e)=>!!e&&(t===e||oe(t,e.parentElement));function re(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Zt(n))}const ae=["root"],le=new WeakMap,ce=new WeakMap,ue=t=>{const e=le.get(t.target);e&&e(t)},he=t=>{t.forEach(ue)};function de(t,e,n){const s=function(t){let{root:e}=t,n=(0,gt.A)(t,ae);const s=e||document;ce.has(s)||ce.set(s,{});const o=ce.get(s),r=JSON.stringify(n);return o[r]||(o[r]=new IntersectionObserver(he,(0,i.A)({root:e},n))),o[r]}(e);return le.set(t,n),s.observe(t),()=>{le.delete(t),s.unobserve(t)}}const pe={some:0,all:1};const me={inView:{Feature:class extends ie{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"===typeof i?i:pe[i]};return de(this.node.current,o,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"===typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node,n=["amount","margin","root"].some(function(t){let{viewport:e={}}=t,{viewport:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>e[t]!==n[t]}(t,e));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends ie{constructor(){super(...arguments),this.removeStartListeners=Ot,this.removeEndListeners=Ot,this.removeAccessibleListeners=Ot,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),i=Kt(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:i,globalTapTarget:s}=this.node.getProps();Nt.update((()=>{s||oe(this.node.current,t.target)?n&&n(t,e):i&&i(t,e)}))}),{passive:!(n.onTap||n.onPointerUp)}),s=Kt(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=_t(i,s),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=Gt(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Gt(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&re("up",((t,e)=>{const{onTap:n}=this.node.getProps();n&&Nt.update((()=>n(t,e)))}))})),re("down",((t,e)=>{this.startPress(t,e)}))})),e=Gt(this.node.current,"blur",(()=>{this.isPressing&&re("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=_t(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Nt.update((()=>n(t,e)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ne()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Nt.update((()=>n(t,e)))}mount(){const t=this.node.getProps(),e=Kt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Gt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=_t(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends ie{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=_t(Gt(this.node.current,"focus",(()=>this.onFocus())),Gt(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends ie{mount(){this.unmount=_t(se(this.node,!0),se(this.node,!1))}unmount(){}}}};function fe(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;ie[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}let ve=Ot,ye=Ot;const xe=t=>1e3*t,Ae=t=>t/1e3,Pe=!1,be=t=>Array.isArray(t)&&"number"===typeof t[0];function Te(t){return Boolean(!t||"string"===typeof t&&Se[t]||be(t)||Array.isArray(t)&&t.every(Te))}const we=t=>{let[e,n,i,s]=t;return"cubic-bezier(".concat(e,", ").concat(n,", ").concat(i,", ").concat(s,")")},Se={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:we([0,.65,.55,1]),circOut:we([.55,0,1,.45]),backIn:we([.31,.01,.66,-.59]),backOut:we([.33,1.53,.69,.99])};function Ee(t){if(t)return be(t)?we(t):Array.isArray(t)?t.map(Ee):Se[t]}const Ve=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function Ce(t,e,n,i){if(t===e&&n===i)return Ot;const s=e=>function(t,e,n,i,s){let o,r,a=0;do{r=e+(n-e)/2,o=Ve(r,i,s)-t,o>0?n=r:e=r}while(Math.abs(o)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:Ve(s(t),e,i)}const Me=Ce(.42,0,1,1),De=Ce(0,0,.58,1),ke=Ce(.42,0,.58,1),Re=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Le=t=>e=>1-t(1-e),je=t=>1-Math.sin(Math.acos(t)),Be=Le(je),Fe=Re(je),Oe=Ce(.33,1.53,.69,.99),Ie=Le(Oe),Ue=Re(Ie),Ne={linear:Ot,easeIn:Me,easeInOut:ke,easeOut:De,circIn:je,circInOut:Fe,circOut:Be,backIn:Ie,backInOut:Ue,backOut:Oe,anticipate:t=>(t*=2)<1?.5*Ie(t):.5*(2-Math.pow(2,-10*(t-1)))},We=t=>{if(Array.isArray(t)){ye(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,s]=t;return Ce(e,n,i,s)}return"string"===typeof t?(ye(void 0!==Ne[t],"Invalid easing type '".concat(t,"'")),Ne[t]):t},He=(t,e)=>n=>Boolean(_(n)&&$.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),ze=(t,e,n)=>i=>{if(!_(i))return i;const[s,o,r,a]=i.match(Z);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1}},Ye=(0,i.A)((0,i.A)({},Y),{},{transform:t=>Math.round((t=>z(0,255,t))(t))}),Xe={test:He("rgb","red"),parse:ze("red","green","blue"),transform:t=>{let{red:e,green:n,blue:i,alpha:s=1}=t;return"rgba("+Ye.transform(e)+", "+Ye.transform(n)+", "+Ye.transform(i)+", "+q(X.transform(s))+")"}};const Ge={test:He("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}},transform:Xe.transform},qe={test:He("hsl","hue"),parse:ze("hue","saturation","lightness"),transform:t=>{let{hue:e,saturation:n,lightness:i,alpha:s=1}=t;return"hsla("+Math.round(e)+", "+tt.transform(q(n))+", "+tt.transform(q(i))+", "+q(X.transform(s))+")"}},Ze={test:t=>Xe.test(t)||Ge.test(t)||qe.test(t),parse:t=>Xe.test(t)?Xe.parse(t):qe.test(t)?qe.parse(t):Ge.parse(t),transform:t=>_(t)?t:t.hasOwnProperty("red")?Xe.transform(t):qe.transform(t)},Ke=(t,e,n)=>-n*t+n*e+t;function $e(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}const _e=(t,e,n)=>{const i=t*t;return Math.sqrt(Math.max(0,n*(e*e-i)+i))},Je=[Ge,Xe,qe];function Qe(t){const e=(n=t,Je.find((t=>t.test(n))));var n;ye(Boolean(e),"'".concat(t,"' is not an animatable color. Use the equivalent color code instead."));let i=e.parse(t);return e===qe&&(i=function(t){let{hue:e,saturation:n,lightness:i,alpha:s}=t;e/=360,n/=100,i/=100;let o=0,r=0,a=0;if(n){const t=i<.5?i*(1+n):i+n-i*n,s=2*i-t;o=$e(s,t,e+1/3),r=$e(s,t,e),a=$e(s,t,e-1/3)}else o=r=a=i;return{red:Math.round(255*o),green:Math.round(255*r),blue:Math.round(255*a),alpha:s}}(i)),i}const tn=(t,e)=>{const n=Qe(t),s=Qe(e),o=(0,i.A)({},n);return t=>(o.red=_e(n.red,s.red,t),o.green=_e(n.green,s.green,t),o.blue=_e(n.blue,s.blue,t),o.alpha=Ke(n.alpha,s.alpha,t),Xe.transform(o))};const en={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:Ot},nn={regex:K,countKey:"Colors",token:"${c}",parse:Ze.parse},sn={regex:Z,countKey:"Numbers",token:"${n}",parse:Y.parse};function on(t,e){let{regex:n,countKey:i,token:s,parse:o}=e;const r=t.tokenised.match(n);r&&(t["num"+i]=r.length,t.tokenised=t.tokenised.replace(n,s),t.values.push(...r.map(o)))}function rn(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&on(n,en),on(n,nn),on(n,sn),n}function an(t){return rn(t).values}function ln(t){const{values:e,numColors:n,numVars:i,tokenised:s}=rn(t),o=e.length;return t=>{let e=s;for(let s=0;s"number"===typeof t?0:t;const un={test:function(t){var e,n;return isNaN(t)&&_(t)&&((null===(e=t.match(Z))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(K))||void 0===n?void 0:n.length)||0)>0},parse:an,createTransformer:ln,getAnimatableNone:function(t){const e=an(t);return ln(t)(e.map(cn))}},hn=(t,e)=>n=>"".concat(n>0?e:t);function dn(t,e){return"number"===typeof t?n=>Ke(t,e,n):Ze.test(t)?tn(t,e):t.startsWith("var(")?hn(t,e):fn(t,e)}const pn=(t,e)=>{const n=[...t],i=n.length,s=t.map(((t,n)=>dn(t,e[n])));return t=>{for(let e=0;e{const n=(0,i.A)((0,i.A)({},t),e),s={};for(const i in n)void 0!==t[i]&&void 0!==e[i]&&(s[i]=dn(t[i],e[i]));return t=>{for(const e in s)n[e]=s[e](t);return n}},fn=(t,e)=>{const n=un.createTransformer(e),i=rn(t),s=rn(e);return i.numVars===s.numVars&&i.numColors===s.numColors&&i.numNumbers>=s.numNumbers?_t(pn(i.values,s.values),n):(ve(!0,"Complex values '".concat(t,"' and '").concat(e,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.")),hn(t,e))},gn=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i},vn=(t,e)=>n=>Ke(t,e,n);function yn(t,e,n){const i=[],s=n||("number"===typeof(o=t[0])?vn:"string"===typeof o?Ze.test(o)?tn:fn:Array.isArray(o)?pn:"object"===typeof o?mn:vn);var o;const r=t.length-1;for(let a=0;a2&&void 0!==arguments[2]?arguments[2]:{};const o=t.length;if(ye(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const r=yn(e,i,s),a=r.length,l=e=>{let n=0;if(a>1)for(;nl(z(t[0],t[o-1],e)):l}function An(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=gn(0,e,i);t.push(Ke(n,1,s))}}(e,t.length-1),e}function Pn(t){let{duration:e=300,keyframes:n,times:i,ease:s="easeInOut"}=t;const o=(t=>Array.isArray(t)&&"number"!==typeof t[0])(s)?s.map(We):We(s),r={done:!1,value:n[0]},a=function(t,e){return t.map((t=>t*e))}(i&&i.length===n.length?i:An(n),e),l=xn(a,n,{ease:Array.isArray(o)?o:(c=n,u=o,c.map((()=>u||ke)).splice(0,c.length-1))});var c,u;return{calculatedDuration:e,next:t=>(r.value=l(t),r.done=t>=e,r)}}function bn(t,e){return e?t*(1e3/e):0}function Tn(t,e,n){const i=Math.max(e-5,0);return bn(n-t(i),e-i)}const wn=.001;function Sn(t){let e,n,{duration:i=800,bounce:s=.25,velocity:o=0,mass:r=1}=t;ve(i<=xe(10),"Spring duration must be 10 seconds or less");let a=1-s;a=z(.05,1,a),i=z(.01,10,Ae(i)),a<1?(e=t=>{const e=t*a,n=e*i,s=e-o,r=Vn(t,a),l=Math.exp(-n);return wn-s/r*l},n=t=>{const n=t*a*i,s=n*o+o,r=Math.pow(a,2)*Math.pow(t,2)*i,l=Math.exp(-n),c=Vn(Math.pow(t,2),a);return(-e(t)+wn>0?-1:1)*((s-r)*l)/c}):(e=t=>Math.exp(-t*i)*((t-o)*i+1)-.001,n=t=>Math.exp(-t*i)*(i*i*(o-t)));const l=function(t,e,n){let i=n;for(let s=1;svoid 0!==t[e]))}function Rn(t){let{keyframes:e,restDelta:n,restSpeed:s}=t,o=(0,gt.A)(t,Cn);const r=e[0],a=e[e.length-1],l={done:!1,value:r},{stiffness:c,damping:u,mass:h,duration:d,velocity:p,isResolvedFromDuration:m}=function(t){let e=(0,i.A)({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!kn(t,Dn)&&kn(t,Mn)){const n=Sn(t);e=(0,i.A)((0,i.A)((0,i.A)({},e),n),{},{mass:1}),e.isResolvedFromDuration=!0}return e}((0,i.A)((0,i.A)({},o),{},{velocity:-Ae(o.velocity||0)})),f=p||0,g=u/(2*Math.sqrt(c*h)),v=a-r,y=Ae(Math.sqrt(c/h)),x=Math.abs(v)<5;let A;if(s||(s=x?.01:2),n||(n=x?.005:.5),g<1){const t=Vn(y,g);A=e=>{const n=Math.exp(-g*y*e);return a-n*((f+g*y*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}}else if(1===g)A=t=>a-Math.exp(-y*t)*(v+(f+y*v)*t);else{const t=y*Math.sqrt(g*g-1);A=e=>{const n=Math.exp(-g*y*e),i=Math.min(t*e,300);return a-n*((f+g*y*v)*Math.sinh(i)+t*v*Math.cosh(i))/t}}return{calculatedDuration:m&&d||null,next:t=>{const e=A(t);if(m)l.done=t>=d;else{let i=f;0!==t&&(i=g<1?Tn(A,t,e):0);const o=Math.abs(i)<=s,r=Math.abs(a-e)<=n;l.done=o&&r}return l.value=l.done?a:e,l}}}function Ln(t){let{keyframes:e,velocity:n=0,power:i=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:r=500,modifyTarget:a,min:l,max:c,restDelta:u=.5,restSpeed:h}=t;const d=e[0],p={done:!1,value:d},m=t=>void 0===l?c:void 0===c||Math.abs(l-t)-f*Math.exp(-t/s),x=t=>v+y(t),A=t=>{const e=y(t),n=x(t);p.done=Math.abs(e)<=u,p.value=p.done?v:n};let P,b;const T=t=>{var e;(e=p.value,void 0!==l&&ec)&&(P=t,b=Rn({keyframes:[p.value,m(p.value)],velocity:Tn(x,t,p.value),damping:o,stiffness:r,restDelta:u,restSpeed:h}))};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return b||void 0!==P||(e=!0,A(t),T(t)),void 0!==P&&t>P?b.next(t-P):(!e&&A(t),p)}}}const jn=t=>{const e=e=>{let{timestamp:n}=e;return t(n)};return{start:()=>Nt.update(e,!0),stop:()=>Wt(e),now:()=>Ht.isProcessing?Ht.timestamp:performance.now()}};function Bn(t){let e=0;let n=t.next(e);for(;!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}const Fn=["autoplay","delay","driver","keyframes","type","repeat","repeatDelay","repeatType","onPlay","onStop","onComplete","onUpdate"],On={decay:Ln,inertia:Ln,tween:Pn,keyframes:Pn,spring:Rn};function In(t){let e,n,{autoplay:s=!0,delay:o=0,driver:r=jn,keyframes:a,type:l="keyframes",repeat:c=0,repeatDelay:u=0,repeatType:h="loop",onPlay:d,onStop:p,onComplete:m,onUpdate:f}=t,g=(0,gt.A)(t,Fn),v=1,y=!1;const x=()=>{n=new Promise((t=>{e=t}))};let A;x();const P=On[l]||Pn;let b;P!==Pn&&"number"!==typeof a[0]&&(b=xn([0,100],a,{clamp:!1}),a=[0,100]);const T=P((0,i.A)((0,i.A)({},g),{},{keyframes:a}));let w;"mirror"===h&&(w=P((0,i.A)((0,i.A)({},g),{},{keyframes:[...a].reverse(),velocity:-(g.velocity||0)})));let S="idle",E=null,V=null,C=null;null===T.calculatedDuration&&c&&(T.calculatedDuration=Bn(T));const{calculatedDuration:M}=T;let D=1/0,k=1/0;null!==M&&(D=M+u,k=D*(c+1)-u);let R=0;const L=t=>{if(null===V)return;v>0&&(V=Math.min(V,t)),v<0&&(V=Math.min(t-k/v,V)),R=null!==E?E:Math.round(t-V)*v;const e=R-o*(v>=0?1:-1),n=v>=0?e<0:e>k;R=Math.max(e,0),"finished"===S&&null===E&&(R=k);let i=R,s=T;if(c){const t=Math.min(R,k)/D;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,c+1);Boolean(e%2)&&("reverse"===h?(n=1-n,u&&(n-=u/D)):"mirror"===h&&(s=w)),i=z(0,1,n)*D}const r=n?{done:!1,value:a[0]}:s.next(i);b&&(r.value=b(r.value));let{done:l}=r;n||null===M||(l=v>=0?R>=k:R<=0);const d=null===E&&("finished"===S||"running"===S&&l);return f&&f(r.value),d&&F(),r},j=()=>{A&&A.stop(),A=void 0},B=()=>{S="idle",j(),e(),x(),V=C=null},F=()=>{S="finished",m&&m(),j(),e()},O=()=>{if(y)return;A||(A=r(L));const t=A.now();d&&d(),null!==E?V=t-E:V&&"finished"!==S||(V=t),"finished"===S&&x(),C=V,E=null,S="running",A.start()};s&&O();const I={then:(t,e)=>n.then(t,e),get time(){return Ae(R)},set time(t){t=xe(t),R=t,null===E&&A&&0!==v?V=A.now()-t/v:E=t},get duration(){const t=null===T.calculatedDuration?Bn(T):T.calculatedDuration;return Ae(t)},get speed(){return v},set speed(t){t!==v&&A&&(v=t,I.time=Ae(R))},get state(){return S},play:O,pause:()=>{S="paused",E=R},stop:()=>{y=!0,"idle"!==S&&(S="idle",p&&p(),B())},cancel:()=>{null!==C&&L(C),B()},complete:()=>{S="finished"},sample:t=>(V=0,L(t))};return I}const Un=["onUpdate","onComplete"],Nn=function(t){let e;return()=>(void 0===e&&(e=t()),e)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Wn=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Hn(t,e,n){let{onUpdate:s,onComplete:o}=n,r=(0,gt.A)(n,Un);if(!(Nn()&&Wn.has(e)&&!r.repeatDelay&&"mirror"!==r.repeatType&&0!==r.damping&&"inertia"!==r.type))return!1;let a,l,c=!1,u=!1;const h=()=>{l=new Promise((t=>{a=t}))};h();let{keyframes:d,duration:p=300,ease:m,times:f}=r;if(((t,e)=>"spring"===e.type||"backgroundColor"===t||!Te(e.ease))(e,r)){const t=In((0,i.A)((0,i.A)({},r),{},{repeat:0,delay:0}));let e={done:!1,value:d[0]};const n=[];let s=0;for(;!e.done&&s<2e4;)e=t.sample(s),n.push(e.value),s+=10;f=void 0,d=n,p=s-10,m="linear"}const g=function(t,e,n){let{delay:i=0,duration:s,repeat:o=0,repeatType:r="loop",ease:a,times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const c={[e]:n};l&&(c.offset=l);const u=Ee(a);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:i,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"})}(t.owner.current,e,d,(0,i.A)((0,i.A)({},r),{},{duration:p,ease:m,times:f})),v=()=>{u=!1,g.cancel()},y=()=>{u=!0,Nt.update(v),a(),h()};g.onfinish=()=>{u||(t.set(function(t,e){let{repeat:n,repeatType:i="loop"}=e;return t[n&&"loop"!==i&&n%2===1?0:t.length-1]}(d,r)),o&&o(),y())};return{then:(t,e)=>l.then(t,e),attachTimeline:t=>(g.timeline=t,g.onfinish=null,Ot),get time(){return Ae(g.currentTime||0)},set time(t){g.currentTime=xe(t)},get speed(){return g.playbackRate},set speed(t){g.playbackRate=t},get duration(){return Ae(p)},play:()=>{c||(g.play(),Wt(v))},pause:()=>g.pause(),stop:()=>{if(c=!0,"idle"===g.playState)return;const{currentTime:e}=g;if(e){const n=In((0,i.A)((0,i.A)({},r),{},{autoplay:!1}));t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}y()},complete:()=>{u||g.finish()},cancel:y}}const zn={type:"spring",stiffness:500,damping:25,restSpeed:10},Yn={type:"keyframes",duration:.8},Xn={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Gn=(t,e)=>{let{keyframes:n}=e;return n.length>2?Yn:j.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:zn:Xn},qn=(t,e)=>"zIndex"!==t&&(!("number"!==typeof e&&!Array.isArray(e))||!("string"!==typeof e||!un.test(e)&&"0"!==e||e.startsWith("url("))),Zn=new Set(["brightness","contrast","saturate","opacity"]);function Kn(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(Z)||[];if(!i)return t;const s=n.replace(i,"");let o=Zn.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const $n=/([a-z-]*)\(.*?\)/g,_n=(0,i.A)((0,i.A)({},un),{},{getAnimatableNone:t=>{const e=t.match($n);return e?e.map(Kn).join(" "):t}}),Jn=(0,i.A)((0,i.A)({},rt),{},{color:Ze,backgroundColor:Ze,outlineColor:Ze,fill:Ze,stroke:Ze,borderColor:Ze,borderTopColor:Ze,borderRightColor:Ze,borderBottomColor:Ze,borderLeftColor:Ze,filter:_n,WebkitFilter:_n}),Qn=t=>Jn[t];function ti(t,e){let n=Qn(t);return n!==_n&&(n=un),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const ei=t=>/^0[^.\s]+$/.test(t);function ni(t){return"number"===typeof t?0===t:null!==t?"none"===t||"0"===t||ei(t):void 0}const ii=["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"];function si(t,e){return t[e]||t.default||t}const oi=!1,ri=function(t,e,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return o=>{const r=si(s,t)||{},a=r.delay||s.delay||0;let{elapsed:l=0}=s;l-=xe(a);const c=function(t,e,n,i){const s=qn(e,n);let o;o=Array.isArray(n)?[...n]:[null,n];const r=void 0!==i.from?i.from:t.get();let a;const l=[];for(let c=0;c{e.set(t),r.onUpdate&&r.onUpdate(t)},onComplete:()=>{o(),r.onComplete&&r.onComplete()}});if(function(t){let{when:e,delay:n,delayChildren:i,staggerChildren:s,staggerDirection:o,repeat:r,repeatType:a,repeatDelay:l,from:c,elapsed:u}=t,h=(0,gt.A)(t,ii);return!!Object.keys(h).length}(r)||(m=(0,i.A)((0,i.A)({},m),Gn(t,m))),m.duration&&(m.duration=xe(m.duration)),m.repeatDelay&&(m.repeatDelay=xe(m.repeatDelay)),!d||!p||Pe||!1===r.type||oi)return function(t){let{keyframes:e,delay:n,onUpdate:i,onComplete:s}=t;const o=()=>(i&&i(e[e.length-1]),s&&s(),{time:0,speed:1,duration:0,play:Ot,pause:Ot,stop:Ot,then:t=>(t(),Promise.resolve()),cancel:Ot,complete:Ot});return n?In({keyframes:[0,1],duration:0,delay:n,onComplete:o}):o()}(Pe?(0,i.A)((0,i.A)({},m),{},{delay:0}):m);if(!s.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const n=Hn(e,t,m);if(n)return n}return In(m)}};function ai(t){return Boolean(F(t)&&t.add)}const li=t=>/^\-?\d*\.?\d+$/.test(t);function ci(t,e){-1===t.indexOf(e)&&t.push(e)}function ui(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class hi{constructor(){this.subscriptions=[]}add(t){return ci(this.subscriptions,t),()=>ui(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s1&&void 0!==arguments[1]?arguments[1]:{};var i;this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=function(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.prev=e.current,e.current=t;const{delta:i,timestamp:s}=Ht;e.lastUpdated!==s&&(e.timeDelta=i,e.lastUpdated=s,Nt.postRender(e.scheduleVelocityCheck)),e.prev!==e.current&&e.events.change&&e.events.change.notify(e.current),e.events.velocityChange&&e.events.velocityChange.notify(e.getVelocity()),n&&e.events.renderRequest&&e.events.renderRequest.notify(e.current)},this.scheduleVelocityCheck=()=>Nt.postRender(this.velocityCheck),this.velocityCheck=t=>{let{timestamp:e}=t;e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(i=this.current,!isNaN(parseFloat(i))),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new hi);const n=this.events[t].add(e);return"change"===t?()=>{n(),Nt.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return di.current&&di.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?bn(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function mi(t,e){return new pi(t,e)}const fi=t=>e=>e.test(t),gi=[Y,et,tt,Q,it,nt,{test:t=>"auto"===t,parse:t=>t}],vi=t=>gi.find(fi(t)),yi=[...gi,Ze,un],xi=["transitionEnd","transition"];function Ai(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,mi(n))}function Pi(t,e){const n=ge(t,e);let s=n?t.makeTargetAnimatable(n,!1):{},{transitionEnd:o={},transition:r={}}=s,a=(0,gt.A)(s,xi);a=(0,i.A)((0,i.A)({},a),o);for(const i in a){Ai(t,i,(l=a[i],Rt(l)?l[l.length-1]||0:l))}var l}function bi(t,e){if(!e)return;return(e[t]||e.default||e).from}const Ti=["transition","transitionEnd"];function wi(t,e){let{protectedKeys:n,needsAnimating:i}=t;const s=n.hasOwnProperty(e)&&!0!==i[e];return i[e]=!1,s}function Si(t,e){const n=t.get();if(!Array.isArray(e))return n!==e;for(let i=0;i2&&void 0!==arguments[2]?arguments[2]:{},r=t.makeTargetAnimatable(e),{transition:a=t.getDefaultTransition(),transitionEnd:l}=r,c=(0,gt.A)(r,Ti);const u=t.getValue("willChange");s&&(a=s);const h=[],p=o&&t.animationState&&t.animationState.getState()[o];for(const m in c){const e=t.getValue(m),s=c[m];if(!e||void 0===s||p&&wi(p,m))continue;const o=(0,i.A)({delay:n,elapsed:0},si(a||{},m));if(window.HandoffAppearAnimations){const n=t.getProps()[d];if(n){const t=window.HandoffAppearAnimations(n,m,e,Nt);null!==t&&(o.elapsed=t,o.isHandoff=!0)}}let r=!o.isHandoff&&!Si(e,s);if("spring"===o.type&&(e.getVelocity()||o.velocity)&&(r=!1),e.animation&&(r=!1),r)continue;e.start(ri(m,e,s,t.shouldReduceMotion&&j.has(m)?{type:!1}:o));const l=e.animation;ai(u)&&(u.add(m),l.then((()=>u.remove(m)))),h.push(l)}return l&&Promise.all(h).then((()=>{l&&Pi(t,l)})),h}function Vi(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=ge(t,e,n.custom);let{transition:o=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const r=s?()=>Promise.all(Ei(t,s,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const{delayChildren:r=0,staggerChildren:a,staggerDirection:l}=o;return function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=arguments.length>5?arguments[5]:void 0;const a=[],l=(t.variantChildren.size-1)*s,c=1===o?function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*s}:function(){return l-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*s};return Array.from(t.variantChildren).sort(Ci).forEach(((t,s)=>{t.notify("AnimationStart",e),a.push(Vi(t,e,(0,i.A)((0,i.A)({},r),{},{delay:n+c(s)})).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(a)}(t,e,r+s,a,l,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then((()=>e()))}return Promise.all([r(),a(n.delay)])}function Ci(t,e){return t.sortNodePosition(e)}const Mi=["transition","transitionEnd"],Di=[...g].reverse(),ki=g.length;function Ri(t){return e=>Promise.all(e.map((e=>{let{animation:n,options:i}=e;return function(t,e){let n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map((e=>Vi(t,e,i)));n=Promise.all(s)}else if("string"===typeof e)n=Vi(t,e,i);else{const s="function"===typeof e?ge(t,e,i.custom):e;n=Promise.all(Ei(t,s,i))}return n.then((()=>t.notify("AnimationComplete",e)))}(t,n,i)})))}function Li(t){let e=Ri(t);const n={animate:Bi(!0),whileInView:Bi(),whileHover:Bi(),whileTap:Bi(),whileDrag:Bi(),whileFocus:Bi(),exit:Bi()};let s=!0;const o=(e,n)=>{const s=ge(t,n);if(s){const{transition:t,transitionEnd:n}=s,o=(0,gt.A)(s,Mi);e=(0,i.A)((0,i.A)((0,i.A)({},e),o),n)}return e};function r(r,a){const l=t.getProps(),c=t.getVariantContext(!0)||{},u=[],h=new Set;let d={},p=1/0;for(let e=0;ep&&x,T=!1;const w=Array.isArray(y)?y:[y];let S=w.reduce(o,{});!1===A&&(S={});const{prevResolvedValues:E={}}=v,V=(0,i.A)((0,i.A)({},E),S),C=t=>{b=!0,h.has(t)&&(T=!0,h.delete(t)),v.needsAnimating[t]=!0};for(const t in V){const e=S[t],n=E[t];if(d.hasOwnProperty(t))continue;let i=!1;i=Rt(e)&&Rt(n)?!fe(e,n):e!==n,i?void 0!==e?C(t):h.add(t):void 0!==e&&h.has(t)?C(t):v.protectedKeys[t]=!0}v.prevProp=y,v.prevResolvedValues=S,v.isActive&&(d=(0,i.A)((0,i.A)({},d),S)),s&&t.blockInitialAnimation&&(b=!1),!b||P&&!T||u.push(...w.map((t=>({animation:t,options:(0,i.A)({type:g},r)}))))}if(h.size){const e={};h.forEach((n=>{const i=t.getBaseTarget(n);void 0!==i&&(e[n]=i)})),u.push({animation:e})}let g=Boolean(u.length);return!s||!1!==l.initial&&l.initial!==l.animate||t.manuallyAnimateOnMount||(g=!1),s=!1,g?e(u):Promise.resolve()}return{animateChanges:r,setActive:function(e,i,s){var o;if(n[e].isActive===i)return Promise.resolve();null===(o=t.variantChildren)||void 0===o||o.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)})),n[e].isActive=i;const a=r(s,e);for(const t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function ji(t,e){return"string"===typeof e?e!==t:!!Array.isArray(e)&&!fe(e,t)}function Bi(){return{isActive:arguments.length>0&&void 0!==arguments[0]&&arguments[0],protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Fi=0;const Oi={animation:{Feature:class extends ie{constructor(t){super(t),t.animationState||(t.animationState=Li(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),f(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends ie{constructor(){super(...arguments),this.id=Fi++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const s=this.node.animationState.setActive("exit",!t,{custom:null!==n&&void 0!==n?n:this.node.getProps().custom});e&&!t&&s.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}},Ii=(t,e)=>Math.abs(t-e);class Ui{constructor(t,e){let{transformPagePoint:n,contextWindow:s,dragSnapToOrigin:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=Hi(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=Ii(t.x,e.x),i=Ii(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:s}=t,{timestamp:o}=Ht;this.history.push((0,i.A)((0,i.A)({},s),{},{timestamp:o}));const{onStart:r,onMove:a}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=Ni(e,this.transformPagePoint),Nt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=Hi("pointercancel"===t.type?this.lastMoveEventInfo:Ni(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!qt(t))return;this.dragSnapToOrigin=o,this.handlers=e,this.transformPagePoint=n,this.contextWindow=s||window;const r=Ni(Zt(t),this.transformPagePoint),{point:a}=r,{timestamp:l}=Ht;this.history=[(0,i.A)((0,i.A)({},a),{},{timestamp:l})];const{onSessionStart:c}=e;c&&c(t,Hi(r,this.history)),this.removeListeners=_t(Kt(this.contextWindow,"pointermove",this.handlePointerMove),Kt(this.contextWindow,"pointerup",this.handlePointerUp),Kt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Wt(this.updatePoint)}}function Ni(t,e){return e?{point:e(t.point)}:t}function Wi(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Hi(t,e){let{point:n}=t;return{point:n,delta:Wi(n,Yi(e)),offset:Wi(n,zi(e)),velocity:Xi(e,.1)}}function zi(t){return t[0]}function Yi(t){return t[t.length-1]}function Xi(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=Yi(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>xe(e)));)n--;if(!i)return{x:0,y:0};const o=Ae(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function Gi(t){return t.max-t.min}function qi(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01;return Math.abs(t-e)<=n}function Zi(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=i,t.originPoint=Ke(e.min,e.max,t.origin),t.scale=Gi(n)/Gi(e),(qi(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Ke(n.min,n.max,t.origin)-t.originPoint,(qi(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Ki(t,e,n,i){Zi(t.x,e.x,n.x,i?i.originX:void 0),Zi(t.y,e.y,n.y,i?i.originY:void 0)}function $i(t,e,n){t.min=n.min+e.min,t.max=t.min+Gi(e)}function _i(t,e,n){t.min=e.min-n.min,t.max=t.min+Gi(e)}function Ji(t,e,n){_i(t.x,e.x,n.x),_i(t.y,e.y,n.y)}function Qi(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function ts(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;t.min=ds(t.min,e,n,i,s),t.max=ds(t.max,e,n,i,s)}function ms(t,e){let{x:n,y:i}=e;ps(t.x,n.translate,n.scale,n.originPoint),ps(t.y,i.translate,i.scale,i.originPoint)}function fs(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function gs(t,e){t.min=t.min+e,t.max=t.max+e}function vs(t,e,n){let[i,s,o]=n;const r=void 0!==e[o]?e[o]:.5,a=Ke(t.min,t.max,r);ps(t,e[i],e[s],a,e.scale)}const ys=["x","scaleX","originX"],xs=["y","scaleY","originY"];function As(t,e){vs(t.x,e,ys),vs(t.y,e,xs)}function Ps(t,e){return os(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}const bs=t=>{let{current:e}=t;return e?e.ownerDocument.defaultView:null},Ts=new WeakMap;class ws{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}start(t){let{snapToCursor:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new Ui(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(Zt(t,"page").point)},onStart:(t,e)=>{const{drag:n,dragPropagation:i,onDragStart:s}=this.getProps();if(n&&!i&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ee(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ss((t=>{let e=this.getAxisMotionValue(t).get()||0;if(tt.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];if(i){e=Gi(i)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),s&&Nt.update((()=>s(t,e)),!1,!0);const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>ss((t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,contextWindow:bs(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=e;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&Nt.update((()=>s(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!Ss(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,e,n){let{min:i,max:s}=e;return void 0!==i&&ts&&(t=n?Ke(s,t,n.max):Math.min(t,s)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,s=this.constraints;e&&p(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!i)&&function(t,e){let{top:n,left:i,bottom:s,right:o}=e;return{x:Qi(t.x,i,o),y:Qi(t.y,n,s)}}(i.layoutBox,e),this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:es;return!1===t?t=0:!0===t&&(t=es),{x:ns(t,"left","right"),y:ns(t,"top","bottom")}}(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ss((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(i.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!p(t))return!1;const n=t.current;ye(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=function(t,e,n){const i=Ps(t,n),{scroll:s}=e;return s&&(gs(i.x,s.offset.x),gs(i.y,s.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:ts(t.x,e.x),y:ts(t.y,e.y)}}(i.layout.layoutBox,s);if(e){const t=e(function(t){let{x:e,y:n}=t;return{top:n.min,right:e.max,bottom:n.max,left:e.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=os(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:s,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=ss((a=>{if(!Ss(a,e,this.currentDirection))return;let c=l&&l[a]||{};r&&(c={min:0,max:0});const u=s?200:1e6,h=s?40:1e7,d=(0,i.A)((0,i.A)({type:"inertia",velocity:n?t[a]:0,bounceStiffness:u,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10},o),c);return this.startAxisValueAnimation(a,d)}));return Promise.all(c).then(a)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start(ri(t,n,0,e))}stopAnimation(){ss((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){ss((t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()}))}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){ss((e=>{const{drag:n}=this.getProps();if(!Ss(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e];s.set(t[e]-Ke(n,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!p(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ss((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();i[t]=function(t,e){let n=.5;const i=Gi(t),s=Gi(e);return s>i?n=gn(e.min,e.max-i,t.min):i>s&&(n=gn(t.min,t.max-s,e.min)),z(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ss((e=>{if(!Ss(e,t,null))return;const n=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];n.set(Ke(s,o,i[e]))}))}addListeners(){if(!this.visualElement.current)return;Ts.set(this.visualElement,this);const t=Kt(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();p(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),e();const s=Gt(window,"resize",(()=>this.scalePositionWithinConstraints())),o=n.addEventListener("didUpdate",(t=>{let{delta:e,hasLayoutChanged:n}=t;this.isDragging&&n&&(ss((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{s(),t(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:r=es,dragMomentum:a=!0}=t;return(0,i.A)((0,i.A)({},t),{},{drag:e,dragDirectionLock:n,dragPropagation:s,dragConstraints:o,dragElastic:r,dragMomentum:a})}}function Ss(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}const Es=t=>(e,n)=>{t&&Nt.update((()=>t(e,n)))};const Vs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Cs(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ms={correct:(t,e)=>{if(!e.target)return t;if("string"===typeof t){if(!et.test(t))return t;t=parseFloat(t)}const n=Cs(t,e.target.x),i=Cs(t,e.target.y);return"".concat(n,"% ").concat(i,"%")}},Ds={correct:(t,e)=>{let{treeScale:n,projectionDelta:i}=e;const s=t,o=un.parse(t);if(o.length>5)return s;const r=un.createTransformer(t),a="number"!==typeof o[0]?1:0,l=i.x.scale*n.x,c=i.y.scale*n.y;o[0+a]/=l,o[1+a]/=c;const u=Ke(l,c,.5);return"number"===typeof o[2+a]&&(o[2+a]/=u),"number"===typeof o[3+a]&&(o[3+a]/=u),r(o)}};class ks extends s.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:s}=this.props,{projection:o}=t;var r;r=Ls,Object.assign(R,r),o&&(e.group&&e.group.add(o),n&&n.register&&s&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions((0,i.A)((0,i.A)({},o.options),{},{onExitComplete:()=>this.safeToRemove()}))),Vs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,o=n.projection;return o?(o.isPresent=s,i||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||Nt.postRender((()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Rs(t){const[e,n]=function(){const t=(0,s.useContext)(a);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:i}=t,o=(0,s.useId)();return(0,s.useEffect)((()=>i(o)),[]),!e&&n?[!1,()=>n&&n(o)]:[!0]}(),o=(0,s.useContext)(w);return s.createElement(ks,(0,i.A)((0,i.A)({},t),{},{layoutGroup:o,switchLayoutGroup:(0,s.useContext)(S),isPresent:e,safeToRemove:n}))}const Ls={borderRadius:(0,i.A)((0,i.A)({},Ms),{},{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ms,borderTopRightRadius:Ms,borderBottomLeftRadius:Ms,borderBottomRightRadius:Ms,boxShadow:Ds},js=["TopLeft","TopRight","BottomLeft","BottomRight"],Bs=js.length,Fs=t=>"string"===typeof t?parseFloat(t):t,Os=t=>"number"===typeof t||et.test(t);function Is(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Us=Ws(0,.5,Be),Ns=Ws(.5,.95,Ot);function Ws(t,e,n){return i=>ie?1:n(gn(t,e,i))}function Hs(t,e){t.min=e.min,t.max=e.max}function zs(t,e){Hs(t.x,e.x),Hs(t.y,e.y)}function Ys(t,e,n,i,s){return t=hs(t-=e,1/n,i),void 0!==s&&(t=hs(t,1/s,i)),t}function Xs(t,e,n,i,s){let[o,r,a]=n;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;tt.test(e)&&(e=parseFloat(e),e=Ke(r.min,r.max,e/100)-r.min);if("number"!==typeof e)return;let a=Ke(o.min,o.max,i);t===o&&(a-=e),t.min=Ys(t.min,e,n,a,s),t.max=Ys(t.max,e,n,a,s)}(t,e[o],e[r],e[a],e.scale,i,s)}const Gs=["x","scaleX","originX"],qs=["y","scaleY","originY"];function Zs(t,e,n,i){Xs(t.x,e,Gs,n?n.x:void 0,i?i.x:void 0),Xs(t.y,e,qs,n?n.y:void 0,i?i.y:void 0)}function Ks(t){return 0===t.translate&&1===t.scale}function $s(t){return Ks(t.x)&&Ks(t.y)}function _s(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function Js(t){return Gi(t.x)/Gi(t.y)}class Qs{constructor(){this.members=[]}add(t){ci(this.members,t),t.scheduleRender()}remove(t){if(ui(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let i=e;i>=0;i--){const t=this.members[i];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function to(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y;if((s||o)&&(i="translate3d(".concat(s,"px, ").concat(o,"px, 0) ")),1===e.x&&1===e.y||(i+="scale(".concat(1/e.x,", ").concat(1/e.y,") ")),n){const{rotate:t,rotateX:e,rotateY:s}=n;t&&(i+="rotate(".concat(t,"deg) ")),e&&(i+="rotateX(".concat(e,"deg) ")),s&&(i+="rotateY(".concat(s,"deg) "))}const r=t.x.scale*e.x,a=t.y.scale*e.y;return 1===r&&1===a||(i+="scale(".concat(r,", ").concat(a,")")),i||"none"}const eo=(t,e)=>t.depth-e.depth;class no{constructor(){this.children=[],this.isDirty=!1}add(t){ci(this.children,t),this.isDirty=!0}remove(t){ui(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eo),this.isDirty=!1,this.children.forEach(t)}}const io=["","X","Y","Z"],so={visibility:"hidden"};let oo=0;const ro={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ao(t){let{attachResizeListener:e,defaultParent:n,measureScroll:s,checkIsScrollRoot:o,resetTransform:r}=t;return class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===n||void 0===n?void 0:n();this.id=oo++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var t;this.projectionUpdateScheduled=!1,ro.totalNodes=ro.resolvedTargetDeltas=ro.recalculatedProjection=0,this.nodes.forEach(uo),this.nodes.forEach(yo),this.nodes.forEach(xo),this.nodes.forEach(ho),t=ro,window.MotionDebug&&window.MotionDebug.record(t)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=e?e.root||e:this,this.path=e?[...e.path,e]:[],this.parent=e,this.depth=e?e.depth+1:0;for(let n=0;n1?n-1:0),s=1;s1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;var s;this.isSVG=(s=t)instanceof SVGElement&&"svg"!==s.tagName,this.instance=t;const{layoutId:o,layout:r,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(r||o)&&(this.isLayoutDirty=!0),e){let n;const i=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=performance.now(),i=s=>{let{timestamp:o}=s;const r=o-n;r>=e&&(Wt(i),t(r-e))};return Nt.read(i,!0),()=>Wt(i)}(i,250),Vs.hasAnimatedSinceResize&&(Vs.hasAnimatedSinceResize=!1,this.nodes.forEach(vo))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||r)&&this.addEventListener("didUpdate",(t=>{let{delta:e,hasLayoutChanged:n,hasRelativeTargetChanged:s,layout:o}=t;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const r=this.options.transition||a.getDefaultTransition()||So,{onLayoutAnimationStart:l,onLayoutAnimationComplete:c}=a.getProps(),u=!this.targetLayout||!_s(this.targetLayout,o)||s,h=!n&&s;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||n&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,h);const t=(0,i.A)((0,i.A)({},si(r,"layout")),{},{onPlay:l,onComplete:c});(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else n||vo(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=o}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Wt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ao),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let s=0;sthis.update())))}clearAllSnapshots(){this.nodes.forEach(po),this.sharedNodes.forEach(Po)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Nt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Nt.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n0&&void 0!==arguments[0]?arguments[0]:"measure",e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:o(this.instance),offset:s(this.instance)})}resetTransform(){if(!r)return;const t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!$s(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,s=i!==this.prevTransformTemplateValue;t&&(e||ls(this.latestValues)||s)&&(r(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),Co((i=n).x),Co(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(gs(e.x,n.offset.x),gs(e.y,n.offset.y)),e}removeElementScroll(t){const e={x:{min:0,max:0},y:{min:0,max:0}};zs(e,t);for(let n=0;n1&&void 0!==arguments[1]&&arguments[1];const n={x:{min:0,max:0},y:{min:0,max:0}};zs(n,t);for(let i=0;i0&&void 0!==arguments[0]&&arguments[0];var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const i=Boolean(this.resumingFrom)||this!==n;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:s,layoutId:o}=this.options;if(this.layout&&(s||o)){if(this.resolvedRelativeTargetAt=Ht.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ji(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),zs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var r,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,l=this.relativeParent.target,$i(r.x,a.x,l.x),$i(r.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):zs(this.target,this.layout.layoutBox),ms(this.target,this.targetDelta)):zs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ji(this.relativeTargetOrigin,this.target,t.target),zs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ro.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!as(this.parent.latestValues)&&!cs(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let i=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===Ht.timestamp&&(i=!1),i)return;const{layout:s,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!o)return;zs(this.layoutCorrected,this.layout.layoutBox);const r=this.treeScale.x,a=this.treeScale.y;!function(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const s=n.length;if(!s)return;let o,r;e.x=e.y=1;for(let a=0;a0&&void 0!==arguments[0])||arguments[0];if(this.options.scheduleRender&&this.options.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.snapshot,s=n?n.latestValues:{},o=(0,i.A)({},this.latestValues),r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const a={x:{min:0,max:0},y:{min:0,max:0}},l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),u=!c||c.members.length<=1,h=Boolean(l&&!u&&!0===this.options.crossfade&&!this.path.some(wo));let d;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var i,c,p,m,f,g;bo(r.x,t.x,n),bo(r.y,t.y,n),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ji(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=n,To(p.x,m.x,f.x,g),To(p.y,m.y,f.y,g),d&&(i=this.relativeTarget,c=d,i.x.min===c.x.min&&i.x.max===c.x.max&&i.y.min===c.y.min&&i.y.max===c.y.max)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),zs(d,this.relativeTarget)),l&&(this.animationValues=o,function(t,e,n,i,s,o){s?(t.opacity=Ke(0,void 0!==n.opacity?n.opacity:1,Us(i)),t.opacityExit=Ke(void 0!==e.opacity?e.opacity:1,0,Ns(i))):o&&(t.opacity=Ke(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let r=0;r{Vs.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const i=F(t)?t:mi(t);return i.start(ri("",i,e,n)),i.animation}(0,1e3,(0,i.A)((0,i.A)({},t),{},{onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:s}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&Mo(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=Gi(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=Gi(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}zs(e,n),As(e,s),Ki(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Qs);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote(){let{needsReset:t,transition:e,preserveFollowOpacity:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const i={};for(let s=0;s{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(mo),this.root.sharedNodes.clear()}}}function lo(t){t.updateLayout()}function co(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;"size"===s?ss((t=>{const i=o?n.measuredBox[t]:n.layoutBox[t],s=Gi(i);i.min=e[t].min,i.max=i.min+s})):Mo(s,n.layoutBox,e)&&ss((i=>{const s=o?n.measuredBox[i]:n.layoutBox[i],r=Gi(e[i]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+r)}));const r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Ki(r,e,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?Ki(a,t.applyTransform(i,!0),n.measuredBox):Ki(a,e,n.layoutBox);const l=!$s(r);let c=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:s,layout:o}=i;if(s&&o){const r={x:{min:0,max:0},y:{min:0,max:0}};Ji(r,n.layoutBox,s.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Ji(a,e,o.layoutBox),_s(r,a)||(c=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function uo(t){ro.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ho(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function po(t){t.clearSnapshot()}function mo(t){t.clearMeasurements()}function fo(t){t.isLayoutDirty=!1}function go(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function vo(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function yo(t){t.resolveTargetDelta()}function xo(t){t.calcProjection()}function Ao(t){t.resetRotation()}function Po(t){t.removeLeadSnapshot()}function bo(t,e,n){t.translate=Ke(e.translate,0,n),t.scale=Ke(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function To(t,e,n,i){t.min=Ke(e.min,n.min,i),t.max=Ke(e.max,n.max,i)}function wo(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const So={duration:.45,ease:[.4,0,.1,1]},Eo=t=>"undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().includes(t),Vo=Eo("applewebkit/")&&!Eo("chrome/")?Math.round:Ot;function Co(t){t.min=Vo(t.min),t.max=Vo(t.max)}function Mo(t,e,n){return"position"===t||"preserve-aspect"===t&&!qi(Js(e),Js(n),.2)}const Do=ao({attachResizeListener:(t,e)=>Gt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ko={current:void 0},Ro=ao({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ko.current){const t=new Do({});t.mount(window),t.setOptions({layoutScroll:!0}),ko.current=t}return ko.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Lo={pan:{Feature:class extends ie{constructor(){super(...arguments),this.removePointerDownListener=Ot}onPointerDown(t){this.session=new Ui(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:bs(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:Es(t),onStart:Es(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&Nt.update((()=>i(t,e)))}}}mount(){this.removePointerDownListener=Kt(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ie{constructor(t){super(t),this.removeGroupControls=Ot,this.removeListeners=Ot,this.controls=new ws(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ot}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Ro,MeasureLayout:Rs}};var jo=n(20454);const Bo=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Fo(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;ye(n<=4,'Max CSS variable fallback depth detected in property "'.concat(t,'". This may indicate a circular fallback dependency.'));const[i,s]=function(t){const e=Bo.exec(t);if(!e)return[,];const[,n,i]=e;return[n,i]}(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const t=o.trim();return li(t)?parseFloat(t):t}return W(s)?Fo(s,e,n+1):s}const Oo=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Io=t=>Oo.has(t),Uo=t=>t===Y||t===et,No=(t,e)=>parseFloat(t.split(", ")[e]),Wo=(t,e)=>(n,i)=>{let{transform:s}=i;if("none"===s||!s)return 0;const o=s.match(/^matrix3d\((.+)\)$/);if(o)return No(o[1],e);{const e=s.match(/^matrix\((.+)\)$/);return e?No(e[1],t):0}},Ho=new Set(["x","y","z"]),zo=L.filter((t=>!Ho.has(t)));const Yo={width:(t,e)=>{let{x:n}=t,{paddingLeft:i="0",paddingRight:s="0"}=e;return n.max-n.min-parseFloat(i)-parseFloat(s)},height:(t,e)=>{let{y:n}=t,{paddingTop:i="0",paddingBottom:s="0"}=e;return n.max-n.min-parseFloat(i)-parseFloat(s)},top:(t,e)=>{let{top:n}=e;return parseFloat(n)},left:(t,e)=>{let{left:n}=e;return parseFloat(n)},bottom:(t,e)=>{let{y:n}=t,{top:i}=e;return parseFloat(i)+(n.max-n.min)},right:(t,e)=>{let{x:n}=t,{left:i}=e;return parseFloat(i)+(n.max-n.min)},x:Wo(4,13),y:Wo(5,14)};Yo.translateX=Yo.x,Yo.translateY=Yo.y;const Xo=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e=(0,i.A)({},e),s=(0,i.A)({},s);const o=Object.keys(e).filter(Io);let r=[],a=!1;const c=[];if(o.forEach((i=>{const o=t.getValue(i);if(!t.hasValue(i))return;let l=n[i],u=vi(l);const h=e[i];let d;if(Rt(h)){const t=h.length,e=null===h[0]?1:0;l=h[e],u=vi(l);for(let n=e;n{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),a=!0),c.push(i),s[i]=void 0!==s[i]?s[i]:e[i],o.jump(h))})),c.length){const n=c.indexOf("height")>=0?window.pageYOffset:null,i=((t,e,n)=>{const i=e.measureViewportBox(),s=e.current,o=getComputedStyle(s),{display:r}=o,a={};"none"===r&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=Yo[t](i,o)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const i=e.getValue(n);i&&i.jump(a[n]),t[n]=Yo[n](l,o)})),t})(e,t,c);return r.length&&r.forEach((e=>{let[n,i]=e;t.getValue(n).set(i)})),t.render(),l&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:s}}return{target:e,transitionEnd:s}};function Go(t,e,n,i){return(t=>Object.keys(t).some(Io))(e)?Xo(t,e,n,i):{target:e,transitionEnd:i}}const qo=(t,e,n,s)=>{const o=function(t,e,n){let s=Object.assign({},((0,jo.A)(e),e));const o=t.current;if(!(o instanceof Element))return{target:s,transitionEnd:n};n&&(n=(0,i.A)({},n)),t.values.forEach((t=>{const e=t.get();if(!W(e))return;const n=Fo(e,o);n&&t.set(n)}));for(const i in s){const t=s[i];if(!W(t))continue;const e=Fo(t,o);e&&(s[i]=e,n||(n={}),void 0===n[i]&&(n[i]=t))}return{target:s,transitionEnd:n}}(t,e,s);return Go(t,e=o.target,n,s=o.transitionEnd)},Zo={current:null},Ko={current:!1};const $o=new WeakMap,_o=["willChange"],Jo=["children"],Qo=Object.keys(T),tr=Qo.length,er=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],nr=v.length;class ir{constructor(t){let{parent:e,props:n,presenceContext:s,reducedMotionConfig:o,visualState:r}=t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Nt.render(this.render,!1,!0);const{latestValues:l,renderState:c}=r;this.latestValues=l,this.baseTarget=(0,i.A)({},l),this.initialValues=n.initial?(0,i.A)({},l):{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=y(n),this.isVariantNode=x(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const u=this.scrapeMotionValuesFromProps(n,{}),{willChange:h}=u,d=(0,gt.A)(u,_o);for(const i in d){const t=d[i];void 0!==l[i]&&F(t)&&(t.set(l[i],!1),ai(h)&&h.add(i))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,$o.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),Ko.current||function(){if(Ko.current=!0,l)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Zo.current=t.matches;t.addListener(e),e()}else Zo.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Zo.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){$o.delete(this.current),this.projection&&this.projection.unmount(),Wt(this.notifyUpdate),Wt(this.render),this.valueSubscriptions.forEach((t=>t())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){const n=j.has(t),i=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&Nt.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),s=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{i(),s()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(t,e,n,i){let s,o,{children:r}=t,a=(0,gt.A)(t,Jo);for(let l=0;lthis.scheduleRender(),animationType:"string"===typeof e?e:"both",initialPromotionConfig:i,layoutScroll:r,layoutRoot:l})}return o}updateFeatures(){for(const t in this.features){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;n0&&void 0!==arguments[0]&&arguments[0])return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const t={};for(let e=0;ee.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=mi(e,{owner:this}),this.addValue(t,n)),n}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,i="string"===typeof n||"object"===typeof n?null===(e=kt(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==i)return i;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||F(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new hi),this.events[t].add(e)}notify(t){if(this.events[t]){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i!t.hasValue(e))),r=o.length;var a;if(r)for(let l=0;l{this.current&&(this.current.textContent="".concat(t))})))}renderInstance(t,e,n,i){Et(t,e,n,i)}}class ar extends or{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(j.has(e)){const t=Qn(e);return t&&t.default||0}return e=Vt.has(e)?e:h(e),t.getAttribute(e)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(t,e){return Dt(t,e)}build(t,e,n,i){Pt(t,e,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,n,i){Ct(t,e,0,i)}mount(t){this.isSVGTag=Tt(t.tagName),super.mount(t)}}const lr=(t,e)=>k(t)?new ar(e,{enableHardwareAcceleration:!1}):new rr(e,{enableHardwareAcceleration:!0}),cr={layout:{ProjectionNode:Ro,MeasureLayout:Rs}},ur=(0,i.A)((0,i.A)((0,i.A)((0,i.A)({},Oi),me),Lo),cr),hr=M(((t,e)=>function(t,e,n,s){let{forwardMotionProps:o=!1}=e;const r=k(t)?Yt:Xt;return(0,i.A)((0,i.A)({},r),{},{preloadedFeatures:n,useRender:St(o),createVisualElement:s,Component:t})}(t,e,ur,lr)))}}]); \ No newline at end of file diff --git a/build/static/js/6248.215de3df.chunk.js b/build/static/js/6248.215de3df.chunk.js new file mode 100644 index 0000000..f10fdce --- /dev/null +++ b/build/static/js/6248.215de3df.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[6248],{23787:(e,s,i)=>{i.d(s,{FG:()=>A,nV:()=>x,pY:()=>j,pg:()=>h});var n=i(22555),r=i(53986),t=i(71392),a=i(55235),l=i(48738),o=i(2866),c=i(65908);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:s,scroll:i=!1,onScroll:a,sx:l}=e,o=(0,r.A)(e,d);return(0,c.jsx)(t.A,(0,n.A)((0,n.A)({spacing:1.25,onScroll:a,sx:(0,n.A)((0,n.A)({p:1.5},i&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),l)},o),{},{children:s}))},h=e=>{let{accent:s="#662582",header:i,footer:r,selected:t=!1,onClick:o,children:d,sx:x}=e;return(0,c.jsxs)(a.A,{elevation:0,onClick:o,sx:(0,n.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:t?s:"#e2e8f0",background:t?"".concat(s,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,c.jsx)(l.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:s}}),(0,c.jsxs)(l.A,{sx:{p:1.5,pl:2},children:[i,d,r]})]})},A=e=>{let{children:s,columns:i=2,sx:r}=e;return(0,c.jsx)(l.A,{sx:(0,n.A)({display:"grid",gridTemplateColumns:"repeat(".concat(i,", minmax(0, 1fr))"),gap:1,mt:1.25},r),children:s})},j=e=>{let{label:s,value:i,children:n,full:r=!1,align:t="left"}=e;return(0,c.jsxs)(l.A,{sx:{gridColumn:r?"1 / -1":"auto",minWidth:0,textAlign:t},children:[(0,c.jsx)(o.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:s}),(0,c.jsx)(l.A,{sx:{mt:.25,minWidth:0},children:void 0!==n?n:(0,c.jsx)(o.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==i&&void 0!==i?i:"\u2014"})})]})}},66248:(e,s,i)=>{i.r(s),i.d(s,{default:()=>oe});var n=i(22555),r=i(85672),t=i(36204),a=i(96515),l=i(66157),o=i(70775),c=i(94081),d=i(75519),x=i(60429),h=i(97614),A=i(50827),j=i(18871),m=i(14872),g=i(58689),p=i(5670),u=i(71392),f=i(97043),b=i(1939),v=i(81062),y=i(82230),w=i(97659),Y=i(7051),C=i(2866),S=i(86270),k=i(80911),z=i(19619),D=i(93977),M=i(13420),I=i(12010),F=i(28579),T=i(23440),H=i(11969),E=i(83209),O=i(72486),P=i(54016),W=i(50755),_=i(1596),R=i(81802),N=i(17450),U=i(78754),L=i(91834),q=i(29398),B=i(1150),$=i(58571),G=i(37476),K=i(42857),V=i(59008),X=i(52351),Z=i(46077),J=i.n(Z),Q=i(69039),ee=i(76264),se=i(23787),ie=i(47107),ne=i(36563),re=i(84997),te=i(13659),ae=i(65908),le=i(22686);J().extend(le);const oe=()=>{const[e,s]=(0,r.useState)([]),[i,Z]=(0,r.useState)(!0),le=(0,a.zy)(),[oe,ce]=(0,r.useState)(""),[de,xe]=(0,r.useState)(""),[he,Ae]=(0,r.useState)(""),[je,me]=(0,r.useState)(""),[ge,pe]=(0,r.useState)(!1),[ue,fe]=(0,r.useState)(""),[be,ve]=(0,r.useState)(""),[ye,we]=(0,r.useState)(!1),[Ye,Ce]=(0,r.useState)(""),[Se]=(0,r.useState)(""),[ke,ze]=(0,r.useState)(""),[De,Me]=(0,r.useState)(""),[Ie,Fe]=(0,r.useState)(""),[Te,He]=(0,r.useState)(""),[Ee,Oe]=(0,r.useState)([]),[Pe,We]=(0,r.useState)(""),[_e,Re]=(0,r.useState)(""),[Ne,Ue]=(0,r.useState)([]),[Le,qe]=(0,r.useState)([]),[Be,$e]=(0,r.useState)(""),[Ge,Ke]=(0,r.useState)(""),[Ve]=(0,r.useState)(""),[Xe]=(0,r.useState)(""),[Ze,Je]=(0,r.useState)(""),[Qe,es]=(0,r.useState)([]),[ss,is]=(0,r.useState)({shifts:0,assigned:0,remaining:0,shiftid:0,price:0}),[ns,rs]=(0,r.useState)(0),{state:ts}=(0,a.zy)(),[as,ls]=(0,r.useState)(""),os=(0,a.Zp)(),[cs,ds]=(0,r.useState)(["",""]),[xs,hs]=(0,r.useState)(""),[As,js]=(0,r.useState)(!1);(0,r.useEffect)((()=>{console.log("categoryarr"),console.log(e,de,Te,Ve,Xe)}),[Qe]),(0,r.useEffect)((()=>{ts&&($e(ts.orderheaderid),Ke(ts.tenantid)),console.log(ts),console.log(Date.now())}),[]),(0,r.useEffect)((()=>{ts&&($e(ts.orderheaderid),Ke(ts.tenantid)),console.log(ts),console.log(Date.now())}),[ts.orderheaderid,ts.tenantid]);const ms=(0,Q.A)(),gs=(0,ee.A)(ms.breakpoints.down("md")),ps=async()=>{Z(!0),await l.A.get("".concat("https://jupiter.nearle.app/live/api/v2","/orders/getordersbystatus?tenantid=").concat(Ge)).then((e=>{console.log(e);let s=e.data.Details.find((e=>e.orderheaderid==Be));console.log("result"),console.log(s),Oe(s.orderaddons),He(s.venuetype),We(s.remarks),hs(s.startdate),fe(s.tenantname),xe(""),ve(s.tenantaddress),me(s.eventname),Ae(J()(s.orderdate).format("MM/DD/YYYY")||""),ce(s.orderid),Ce(s.orderstatus),ze(s.taxamount),Me(s.orderamount),Fe(s.ordervalue),Re(J()(s.cancelled).format("MM/DD/YYYY")||""),Je(s.pending),Z(!1)})).catch((e=>{console.log(e),Z(!1)}))},us=async()=>{Z(!0),await l.A.get("".concat("https://jupiter.nearle.app/live/api/v2","/orders/getorderdetails?orderheaderid=").concat(Be)).then((e=>{console.log("res"),console.log(e),s(e.data.Details||[]),console.log("categoryarr"),es(e.data.Details),console.log(e.data.Details),Z(!1)})).catch((e=>{console.log(e),Z(!1)}))},fs=async e=>{Z(!0);try{await l.A.get("".concat("https://jupiter.nearle.app/live/api/v2","/orders/getassignedinfo?orderdetailid=").concat(e)).then((e=>{console.log(e),e.data.status&&Ue(e.data.Details),Z(!1)})).catch((e=>{console.log(e),Z(!1)}))}catch(s){console.log(s),Z(!1)}},bs=async e=>{let s={orderheaderid:Be,orderprocessid:e.orderprocessid,orderdetailid:e.orderdetailid,orderstatus:"pending",pending:J()().format("YYYY-MM-DD HH:mm:ss"),status:1};console.log(s),await l.A.put("".concat("https://jupiter.nearle.app/live/api/v2","/orders/updateprocessstatus"),s).then((s=>{console.log(s),"Successful"===s.data.message&&((0,te.M8)("Role unassigned successfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),ss.assigned>ss.shifts&&vs(e),ps(),us(),pe(!1),Cs(),ys(),setTimeout((()=>{Cs()}),2e3))})).catch((e=>{console.log(e)}))},vs=e=>{let s;console.log(e);let i=[e.userfcmtoken],n=[{notificationid:0,notificationdate:J()().format("YYYY-MM-DD HH:mm:ss"),Title:"Staff Un-Asigned",message:"".concat(e.firstname," has been Un-assigned to the order ").concat(oe),configid:2,tenantid:Ge,orderheaderid:Be,orderprocessid:e.orderprocessid,shiftid:e.shiftid,userid:e.userid,orderid:oe,success:0,orderstatus:"assigned",processing:J()().format("YYYY-MM-DD HH:mm:ss"),notifytype:2,notifyreason:"Staff Un-Assigned"}];s={Title:"Staff Un-Asigned",message:"A Staff has been Un-assigned to the order ".concat(oe),tenantid:Ge,orderheaderid:Be,orderid:oe,configid:2};let r={notifications:n,fcmmodel:{priority:"high",registration_ids:i,data:s,notification:{body:"An order has been Un-assigned ".concat(oe),title:"Legendary",sound:"ring",content_available:!0,click_action:"FLUTTER_NOTIFICATION_CLICK"}}};console.log("grpnotifyobj unassign"),console.log(r),Ys(r)};(0,r.useEffect)((()=>{console.log(Be),Be&&Ge?(ps(),us(),Cs(),console.log(le.state||"")):Z(!1),console.log(Be,Ge)}),[Be,Ge,as]);const ys=()=>{we(!1),qe([]),ds(["",""])};(0,r.useEffect)((()=>{console.log(ss)}));const ws=async e=>{let s=e.userfcmtoken,i={notificationid:0,notificationdate:J()().format("YYYY-MM-DD HH:mm:ss"),Title:"Staff Asigned",message:"A Staff has been assigned to the order ".concat(oe),configid:2,tenantid:Ge,orderheaderid:Be,orderprocessid:e.orderprocessid,shiftid:e.shiftid,userid:e.userid,orderid:oe,sound:"ring",click_action:"FLUTTER_NOTIFICATION_CLICK"};console.log(i,s),await l.A.post("".concat("https://jupiter.nearle.app/live/api/v2","/utils/notification/send"),{priority:"high",registration_ids:[s],data:i,notification:{body:"A Staff has been assigned to ".concat(oe),title:"Legendary",sound:"ring",content_available:!0}},{headers:{Authorization:"Bearer ".concat("")}}).then((e=>{console.log(e),(0,te.M8)("Notification sent successfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3})})).catch((e=>{console.log(e)}))},Ys=async e=>{console.log(e),await l.A.post("".concat("https://jupiter.nearle.app/live/api/v2","/utils/notification/sendall"),e,{headers:{Authorization:"Bearer ".concat("")}}).then((e=>{console.log(e),e.data.status&&((0,te.M8)("Notification sent successfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),ps())})).catch((e=>{console.log(e)}))},Cs=async()=>{await l.A.get("".concat("https://jupiter.nearle.app/live/api/v2","/orders/getorderstatuscount?orderheaderid=").concat(Be)).then((e=>{e.data.status?(console.log(e),ls(e.data.pendingcount),ps()):(ls(e.data.pendingcount),ps())})).catch((e=>{console.log(e)}))};function Ss(e){let{open:s,handleClose:i}=e;const[n,t]=(0,r.useState)("");return(0,ae.jsx)(g.A,{open:s,onClose:()=>i(!1),maxWidth:"xs",fullScreen:gs,PaperProps:{sx:{borderRadius:{xs:0,sm:3}}},children:(0,ae.jsx)(p.A,{sx:{mt:2,my:1},children:(0,ae.jsxs)(u.A,{alignItems:"center",spacing:3.5,children:[(0,ae.jsx)(f.A,{color:"error",sx:{width:72,height:72,fontSize:"1.75rem"},children:(0,ae.jsx)(j.A,{})}),(0,ae.jsx)(b.Ay,{children:(0,ae.jsx)(v.A,{label:oe.slice(4),variant:"combined",color:"warning",size:"small"})}),(0,ae.jsxs)(u.A,{spacing:2,children:[As&&(0,ae.jsxs)(y.A,{color:"warning",variant:"border",icon:(0,ae.jsx)(ie.A,{}),children:[(0,ae.jsx)(w.A,{children:"Order is within 24Hrs time frame. The order will be invoiced with standard pricing as agreed."}),(0,ae.jsx)(Y.A,{href:"https://thelegendarystaff.com/",target:"_blank",children:"Terms & Condition link"})]}),(0,ae.jsx)(C.A,{variant:"h4",align:"center",children:"Please type in the order number to confirm."}),(0,ae.jsx)(S.A,{type:"text",onChange:e=>{console.log(e.target.value),t(e.target.value)},error:n!==oe.slice(4),value:n})]}),(0,ae.jsxs)(u.A,{direction:"row",spacing:2,sx:{width:1},children:[(0,ae.jsx)(k.A,{fullWidth:!0,color:"error",variant:"contained",onClick:()=>{n===oe.slice(4)&&((async()=>{await l.A.put("".concat("https://jupiter.nearle.app/live/api/v2","/orders/cancel"),{orderheaderid:parseInt(Be),orderstatus:"cancelled",cancelled:J()().format("YYYY-MM-DD HH:mm:ss"),unserviceable:As?0:1}).then((e=>{console.log(e),e.data.status&&Be&&Ge&&(ps(),us())})).catch((e=>{console.log(e)}))})(),i(!0))},autoFocus:!0,children:"Yes, Cancel"}),(0,ae.jsx)(k.A,{fullWidth:!0,onClick:()=>i(!1),color:"secondary",variant:"outlined",children:"No"})]})]})})})}return(0,ae.jsxs)(ae.Fragment,{children:[i&&(0,ae.jsx)(X.A,{}),(0,ae.jsx)(Ss,{open:ge,handleClose:()=>{pe(!1)}}),(0,ae.jsxs)(g.A,{maxWidth:!1,fullWidth:!0,open:ye,onClose:ys,scroll:"paper",fullScreen:gs,PaperProps:{sx:{borderRadius:{xs:0,sm:3}}},TransitionComponent:G.s,children:[(0,ae.jsxs)(z.A,{children:[(0,ae.jsxs)(u.A,{direction:"row",justifyContent:"space-between",children:[(0,ae.jsxs)(u.A,{direction:{sm:"row",xs:"column"},spacing:2,alignItems:"center",children:[(0,ae.jsx)(C.A,{variant:"h3",children:"Assign Roles"}),(0,ae.jsx)(v.A,{label:ue,variant:"light",color:"primary"})]}),(0,ae.jsx)(v.A,{label:oe,variant:"combined",color:"warning",size:"large"})]}),(0,ae.jsxs)(b.Ay,{container:!0,sx:{p:1},spacing:2,children:[(0,ae.jsx)(b.Ay,{item:!0,sm:6,xs:12,children:(0,ae.jsx)(D.A,{value:ns,onChange:()=>rs((e=>0===e?1:0)),variant:"scrollable",scrollButtons:"auto",children:(0,ae.jsx)(M.A,{label:Se})})}),(0,ae.jsx)(b.Ay,{item:!0,sm:6,xs:12,children:(0,ae.jsxs)(u.A,{direction:"row",justifyContent:{xs:"flex-start",sm:"flex-end"},sx:{height:"100%"},spacing:2,children:[(0,ae.jsx)(v.A,{sx:{width:"130px"},label:"Required:".concat(ss.shifts),variant:"combined",color:"primary",size:"normal"}),(0,ae.jsx)(v.A,{sx:{width:"130px"},label:"Assigned: ".concat(ss.assigned),variant:"combined",color:"success",size:"normal"}),(0,ae.jsx)(v.A,{sx:{width:"130px"},label:"Remaining: ".concat(ss.remaining),variant:"combined",color:"error",size:"normal"})]})})]})]}),(0,ae.jsx)(p.A,{dividers:!0,children:0===Ne.length?(0,ae.jsx)(ae.Fragment,{children:i?(0,ae.jsx)(ae.Fragment,{children:(0,ae.jsx)(u.A,{alignItems:"center",children:(0,ae.jsx)(I.A,{})})}):(0,ae.jsx)(C.A,{children:"No Staffs Available"})}):gs?(0,ae.jsx)(se.nV,{children:Ne.map(((e,s)=>{const i=!!Le.find((s=>s.userid==e.userid));return(0,ae.jsxs)(se.pg,{accent:"#662582",selected:i,children:[(0,ae.jsxs)(u.A,{direction:"row",justifyContent:"space-between",alignItems:"flex-start",spacing:1,children:[(0,ae.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,ae.jsx)(f.A,{alt:"",src:"",sx:{width:32,height:32}}),(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"subtitle2",children:e.firstname}),(0,ae.jsx)(C.A,{variant:"caption",color:"textSecondary",children:e.contactno})]})]}),e.orderdetailid!==orderdetailid?(0,ae.jsx)(F.A,{disabled:0!==e.orderdetailid,checked:i,onClick:s=>{if(console.log(ss),ss.remaining>=0){if(s.target.checked&&0!=ss.remaining){let s=Le;s.push({userid:e.userid,orderdetailid:orderdetailid,productid:productid,shiftid:ss.shiftid,userrate:ss.price,productrate:e.rolecost,firstname:e.firstname}),qe([...s]);let i=ss;i.assigned++,i.remaining=i.shifts-i.assigned,is((0,n.A)({},i))}else if(ss.assigned!=ss.shifts||0===ss.remaining&&!s.target.checked){let s=Le,i=s.findIndex((s=>s.userid===e.userid));s.splice(i,1),qe([...s]);let r=ss;r.assigned--,r.remaining=r.shifts-r.assigned,is((0,n.A)({},r))}console.log(Le)}}}):(0,ae.jsxs)(u.A,{direction:"row",alignItems:"center",children:[(0,ae.jsx)(v.A,{label:"Assigned",color:"success",size:"small",sx:{mr:1}}),(0,ae.jsx)(T.A,{title:"Unassign",children:(0,ae.jsx)(H.A,{color:"error",onClick:()=>{console.log(e),bs(e)},children:(0,ae.jsx)(ne.A,{})})}),(0,ae.jsx)(T.A,{title:"Send Notification",children:(0,ae.jsx)(H.A,{color:"info",onClick:()=>{console.log(e),ws(e)},children:(0,ae.jsx)(m.A,{})})})]})]}),(0,ae.jsxs)(se.FG,{children:[(0,ae.jsx)(se.pY,{label:"Category",children:(0,ae.jsxs)(u.A,{direction:"column",alignItems:"flex-start",spacing:.25,children:[(0,ae.jsx)(C.A,{variant:"caption",color:"textSecondary",children:e.cateoryname}),(0,ae.jsx)(v.A,{label:e.subcategoryname,color:"info",size:"small",variant:"light"})]})}),(0,ae.jsx)(se.pY,{label:"Price",value:e.rolecost}),(0,ae.jsx)(se.pY,{label:"Experience",value:"".concat(e.experience," Years")}),(0,ae.jsx)(se.pY,{label:"Level",children:(0,ae.jsx)(v.A,{label:e.levelofexperience,size:"small",color:"primary",variant:"light"})}),(0,ae.jsx)(se.pY,{label:"City",value:e.city}),e.orderid&&(0,ae.jsx)(se.pY,{label:"Order",children:(0,ae.jsx)(v.A,{label:e.orderid,color:"warning",size:"small",variant:"light"})})]})]},s)}))}):(0,ae.jsx)(E.A,{children:(0,ae.jsxs)(O.A,{children:[(0,ae.jsx)(P.A,{children:(0,ae.jsxs)(W.A,{children:[(0,ae.jsx)(_.A,{children:"#"}),(0,ae.jsx)(_.A,{children:"Staff"}),(0,ae.jsx)(_.A,{children:"Category"}),(0,ae.jsx)(_.A,{children:"Price"}),(0,ae.jsx)(_.A,{children:"Experience"}),(0,ae.jsx)(_.A,{children:"Level"}),(0,ae.jsx)(_.A,{children:"City"}),(0,ae.jsx)(_.A,{children:"Action"}),(0,ae.jsx)(_.A,{})]})}),(0,ae.jsx)(R.A,{children:Ne.map(((e,s)=>(0,ae.jsx)(r.Fragment,{children:(0,ae.jsxs)(W.A,{sx:{backgroundColor:Le.find((s=>s.userid==e.userid))?"#f5f5f5":"",":hover":{backgroundColor:Le.find((s=>s.userid==e.userid))?"#f5f5f5 !important":""}},children:[(0,ae.jsx)(_.A,{component:"th",scope:"row",padding:"none",children:s+1}),(0,ae.jsx)(_.A,{align:"left",sx:{paddingLeft:"0px !important"},children:(0,ae.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:1,justifyContent:"flex-start",children:[(0,ae.jsx)(f.A,{alt:"",size:"sm",src:"",sx:{width:"25px",height:"25px"}}),(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"caption",children:e.firstname}),(0,ae.jsx)(C.A,{variant:"caption",color:"textSecondary",children:e.contactno})]})]})}),(0,ae.jsx)(_.A,{align:"left",children:(0,ae.jsxs)(u.A,{direction:"column",alignItems:"flex-start",children:[(0,ae.jsx)(C.A,{variant:"caption",color:"textSecondary",children:e.cateoryname}),(0,ae.jsx)(v.A,{label:e.subcategoryname,color:"info",size:"small",variant:"light"})]})}),(0,ae.jsx)(_.A,{children:e.rolecost}),(0,ae.jsxs)(_.A,{align:"left",children:[e.experience," Years"]}),(0,ae.jsx)(_.A,{align:"left",children:(0,ae.jsx)(v.A,{label:e.levelofexperience,size:"small",color:"primary",variant:"light"})}),(0,ae.jsx)(_.A,{align:"left",children:e.city}),(0,ae.jsx)(_.A,{align:"left",children:e.orderdetailid!==orderdetailid?(0,ae.jsx)(ae.Fragment,{children:(0,ae.jsx)(F.A,{disabled:0!==e.orderdetailid,checked:!!Le.find((s=>s.userid==e.userid)),onClick:s=>{if(console.log(ss),ss.remaining>=0){if(s.target.checked&&0!=ss.remaining){let s=Le;s.push({userid:e.userid,orderdetailid:orderdetailid,productid:productid,shiftid:ss.shiftid,userrate:ss.price,productrate:e.rolecost,firstname:e.firstname}),qe([...s]);let i=ss;i.assigned++,i.remaining=i.shifts-i.assigned,is((0,n.A)({},i))}else if(ss.assigned!=ss.shifts||0===ss.remaining&&!s.target.checked){let s=Le,i=s.findIndex((s=>s.userid===e.userid));s.splice(i,1),qe([...s]);let r=ss;r.assigned--,r.remaining=r.shifts-r.assigned,is((0,n.A)({},r))}console.log(Le)}}})}):(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)(v.A,{label:"Assigned",color:"success",size:"small",sx:{mr:1}}),(0,ae.jsx)(T.A,{title:"Unassign",children:(0,ae.jsx)(H.A,{color:"error",onClick:()=>{console.log(e),bs(e)},children:(0,ae.jsx)(ne.A,{})})}),(0,ae.jsx)(T.A,{title:"Send Notification",children:(0,ae.jsx)(H.A,{color:"info",onClick:()=>{console.log(e),ws(e)},children:(0,ae.jsx)(m.A,{})})})]})}),(0,ae.jsx)(_.A,{children:e.orderid&&(0,ae.jsx)(ae.Fragment,{children:(0,ae.jsx)(v.A,{label:e.orderid,color:"warning",size:"small",variant:"light"})})})]})},s)))})]})})}),(0,ae.jsx)(N.A,{children:(0,ae.jsxs)(u.A,{sx:{mt:2,width:{xs:"100%",sm:"auto"}},direction:{xs:"column",sm:"row"},justifyContent:"flex-end",spacing:{xs:1.5,sm:5},children:[Ne.length>0&&(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)(k.A,{sx:{width:{xs:"100%",sm:"130px"}},variant:"contained",onClick:async()=>{let e=[],s=[];Le.map((i=>{e.push({orderprocessid:0,processdate:J()().format("YYYY-MM-DD HH:mm:ss"),tenantid:Ge,orderheaderid:Be,orderdetailid:i.orderdetailid,productid:i.productid,userid:i.userid,orderstatus:"pending",pending:"".concat(J()(Ze).format("YYYY-MM-DD")," ").concat(J()(Ze).format("HH:mm:ss")),starttime:"".concat(J()(Ve).format("YYYY-MM-DD")," ").concat(J()(Ve).format("HH:mm:ss")),endtime:"".concat(J()(Xe).format("YYYY-MM-DD")," ").concat(J()(Xe).format("HH:mm:ss")),appuserid:parseInt(localStorage.getItem("appuserid")),shiftid:i.shiftid,userrate:i.userrate,productrate:i.productrate}),Le.map((e=>{s.push({notificationid:0,notificationdate:J()().format("YYYY-MM-DD HH:mm:ss"),Title:"Staff Asigned",message:"A Staff has been assigned to the order ".concat(oe),configid:2,tenantid:Ge,orderheaderid:Be,orderprocessid:0,shiftid:e.shiftid,userid:e.userid,orderid:oe,sound:"ring",click_action:"FLUTTER_NOTIFICATION_CLICK",firstname:e.firstname})}))})),console.log("arr"),console.log(e),await l.A.post("".concat("https://jupiter.nearle.app/live/api/v2","/orders/createorderprocess"),e).then((e=>{console.log(e),"Successfully created"===e.data.message&&((0,te.M8)("Roles assigned successfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),we(!1),us(),Cs())})).catch((e=>{console.log(e)})),console.log(e)},children:"OK"}),(0,ae.jsx)(k.A,{sx:{width:{xs:"100%",sm:"130px"}},color:"warning",variant:"contained",onClick:()=>{qe([]);let e=ss;e.remaining=e.shifts,e.assigned=0,is(e)},children:"clear"})]}),(0,ae.jsx)(k.A,{sx:{width:{xs:"100%",sm:"130px"}},color:"error",variant:"contained",onClick:()=>{ys()},children:"Close"})]})})]}),(0,ae.jsxs)(b.Ay,{container:!0,rowSpacing:2,columnSpacing:2.75,children:[(0,ae.jsx)(U.A,{sx:{position:"sticky",top:"60px",bgcolor:ms.palette.background.default,zIndex:1,width:"100%"},children:(0,ae.jsx)(b.Ay,{item:!0,xs:12,children:(0,ae.jsxs)(u.A,{direction:{md:"row",xs:"column"},justifyContent:"space-between",alignItems:"flex-end",sx:{width:"100%",p:1},children:[(0,ae.jsxs)(u.A,{direction:"row",spacing:2,alignItems:"center",justifyContent:"flex-start",sx:{width:{xs:"100%",md:"0"}},children:[(0,ae.jsx)(H.A,{onClick:()=>history.back(),children:(0,ae.jsx)(o.A,{})}),(0,ae.jsxs)(u.A,{direction:"column",alignItems:"flex-start",children:[(0,ae.jsx)(C.A,{variant:"h3",children:"Details"}),(0,ae.jsxs)(u.A,{direction:"row",spacing:1,children:[(0,ae.jsx)(v.A,{label:""===oe?(0,ae.jsx)(L.A,{sx:{width:"80px",bgcolor:"#fff9c4"},animation:"wave"}):oe,variant:"combined",color:"warning",size:"small"}),(0,ae.jsx)(v.A,{label:""===he?(0,ae.jsx)(L.A,{sx:{width:"80px",bgcolor:"#b3e5fc"},animation:"wave"}):he,variant:"combined",color:"primary",size:"small"}),"pending"===Ye&&(0,ae.jsx)(v.A,{label:"Pending",color:"error",size:"small"}),"cancelled"===Ye&&(0,ae.jsx)(v.A,{label:"Cancelled",color:"secondary",size:"small"}),"completed"===Ye&&(0,ae.jsx)(v.A,{label:"Completed",color:"primary",size:"small"}),"processing"===Ye&&(0,ae.jsx)(v.A,{label:"Processing",color:"primary",size:"small"}),"assigned"===Ye&&(0,ae.jsx)(v.A,{label:"Assigned",color:"warning",size:"small"}),"confirmed"===Ye&&(0,ae.jsx)(v.A,{label:"Confirmed",color:"success",size:"small"}),"active"===Ye&&(0,ae.jsx)(v.A,{label:"Active",color:"info",size:"small"}),"closed"===Ye&&(0,ae.jsx)(v.A,{label:"Closed",color:"info",size:"small"}),"modified"===Ye&&(0,ae.jsx)(v.A,{label:"Modified",color:"secondary",size:"small",variant:"contained"})]})]})]}),(0,ae.jsxs)(u.A,{direction:{xs:"column",sm:"row"},spacing:2,sx:{mt:{md:0,xs:2},width:{xs:"100%",md:"auto"}},children:[("pending"===Ye||"assigned"===Ye||"confirmed"===Ye||"modified"===Ye)&&(0,ae.jsx)(T.A,{title:"Edit",children:(0,ae.jsx)(k.A,{variant:"outlined",color:"info",sx:{borderRadius:"40px",width:{xs:"100%",sm:"auto"}},startIcon:(0,ae.jsx)(t.A,{color:"info"}),onClick:e=>{e.stopPropagation(),J()(J()().format("MM-DD-YYYY")).isBefore(J()(J()(xs).format("MM-DD-YYYY")))?os("/editorder",{state:{orderheaderid:Be,tenantid:Ge}}):(0,te.M8)("Order cannot be edited.\n Order date is not valid at this time",{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:4e3,style:{whiteSpace:"pre-line"}})},children:"Edit Order"})}),"cancelled"!==Ye&&""!==Ye&&"completed"!==Ye&&"closed"!==Ye&&(0,ae.jsx)(ae.Fragment,{children:(0,ae.jsx)(k.A,{variant:"outlined",color:"error",onClick:()=>{console.log(J()(xs).diff(J()(),"m")/60),J()(xs).diff(J()(),"m")/60>24?(js(!1),pe(!0)):(js(!0),pe(!0))},sx:{borderRadius:"40px",mt:{xs:2,sm:0},width:{xs:"100%",sm:"auto"}},startIcon:(0,ae.jsx)(K.A,{}),children:"Cancel Order"})}),"cancelled"===Ye&&(0,ae.jsx)(ae.Fragment,{children:(0,ae.jsx)(v.A,{label:"Order Cancelled on ".concat(_e),variant:"combined",color:"error"})})]})]})})}),(0,ae.jsx)(b.Ay,{item:!0,xs:12,sx:{mt:-2},children:(0,ae.jsx)(V.A,{content:!1,width:"100%",children:(0,ae.jsxs)(b.Ay,{container:!0,spacing:2.5,sx:{p:2.5},children:[(0,ae.jsx)(b.Ay,{item:!0,xs:12,sm:6,children:(0,ae.jsx)(V.A,{sx:{height:"100%"},children:(0,ae.jsxs)(u.A,{spacing:1,children:[(0,ae.jsx)(C.A,{variant:"h5",children:"Client"}),(0,ae.jsx)(C.A,{color:"secondary",children:""===ue?(0,ae.jsx)(L.A,{sx:{width:"40%"},animation:"wave"}):ue}),(0,ae.jsx)(q.A,{sx:{width:"100%"},children:(0,ae.jsx)(C.A,{color:"secondary",children:""===be?(0,ae.jsx)(L.A,{sx:{width:"90%"},animation:"wave"}):be})})]})})}),(0,ae.jsx)(b.Ay,{item:!0,xs:12,sm:6,children:(0,ae.jsx)(V.A,{sx:{height:"100%"},children:(0,ae.jsxs)(u.A,{spacing:1,children:[(0,ae.jsx)(C.A,{variant:"h5",children:"Event"}),(0,ae.jsx)(q.A,{sx:{width:"100%"},children:(0,ae.jsx)(C.A,{color:"secondary",children:""===je?(0,ae.jsx)(L.A,{sx:{width:"40%"},animation:"wave"}):je})})]})})}),Qe.map(((e,s)=>(0,ae.jsx)(r.Fragment,{children:(0,ae.jsx)(b.Ay,{item:!0,xs:12,children:(0,ae.jsxs)(V.A,{sx:{opacity:0==e.shiftstatus?"":"0.7"},children:[(0,ae.jsxs)(u.A,{direction:{xs:"column",md:"row"},justifyContent:"space-between",alignItems:{md:"center",xs:"flex-start"},spacing:2,sx:{p:2},children:[(0,ae.jsxs)(u.A,{direction:{xs:"column",md:"row"},spacing:2,alignItems:{md:"center",xs:"flex-start"},children:[(0,ae.jsxs)(C.A,{variant:"h5",children:["Shift ",s+1]}),(0,ae.jsxs)(C.A,{color:"secondary",children:[(0,ae.jsx)(c.A,{})," ","",e.locationaddress]}),1===e.shiftstatus&&(0,ae.jsx)(v.A,{label:"Cancelled",color:"secondary"})]}),(0,ae.jsx)(u.A,{direction:"row",spacing:1,children:e.ordercontacts.map((e=>(0,ae.jsx)(ae.Fragment,{children:(0,ae.jsx)(T.A,{title:e.contactname,children:(0,ae.jsx)(f.A,{sx:{bgcolor:"#2196f3",width:30,height:30},alt:"A",children:e.contactname.charAt(0).toUpperCase()})})})))})]}),gs?(0,ae.jsxs)(se.nV,{children:[0===e.orderdetails.length&&(0,ae.jsxs)(se.pg,{accent:"#662582",children:[(0,ae.jsx)(L.A,{animation:"wave"}),(0,ae.jsx)(L.A,{animation:"wave"}),(0,ae.jsx)(L.A,{animation:"wave"})]}),e.orderdetails.map(((e,n)=>(0,ae.jsxs)(se.pg,{accent:"#662582",sx:{opacity:0==e.status?"":"0.7"},children:[(0,ae.jsxs)(u.A,{direction:"row",justifyContent:"space-between",alignItems:"flex-start",spacing:1,children:[(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsxs)(C.A,{sx:{fontSize:10,fontWeight:800,color:"#94a3b8"},children:["#",n+1]}),(0,ae.jsx)(C.A,{variant:"subtitle1",children:e.productname})]}),(0,ae.jsxs)(u.A,{direction:"row",alignItems:"center",children:[(0,ae.jsx)(T.A,{title:"Expand",children:(0,ae.jsx)(H.A,{"aria-label":"expand row",style:{color:ms.palette.primary.main},onClick:()=>{Ue([]),ds(cs[0]===s&&cs[1]===n?["",""]:[s,n]),fs(e.orderdetailid)},children:cs[0]===s&&cs[1]===n?(0,ae.jsx)(h.A,{}):(0,ae.jsx)(A.A,{})})}),"cancelled"===Ye&&(0,ae.jsx)(H.A,{sx:{minWidth:"10px !important"},disabled:!0,children:(0,ae.jsx)(d.A,{})}),1===e.status&&(0,ae.jsx)(T.A,{title:"Cancelled",children:(0,ae.jsx)(H.A,{sx:{minWidth:"10px !important"},children:(0,ae.jsx)(K.A,{color:"error"})})}),e.supplyqty>e.orderqty&&(0,ae.jsx)(T.A,{title:"Assigned count is greater than ordered count",children:(0,ae.jsx)(H.A,{color:"warning",children:(0,ae.jsx)(re.A,{})})})]})]}),(0,ae.jsxs)(se.FG,{children:[(0,ae.jsx)(se.pY,{label:"Start Date",children:(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"body2",children:J()(e.starttime).format("MM/DD/YYYY")}),(0,ae.jsx)(C.A,{variant:"caption",children:J()(e.starttime).format("hh:mm A")})]})}),(0,ae.jsx)(se.pY,{label:"End Date",children:(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"body2",children:J()(e.endtime).format("MM/DD/YYYY")}),(0,ae.jsx)(C.A,{variant:"caption",children:J()(e.endtime).format("hh:mm A")})]})}),(0,ae.jsx)(se.pY,{label:"Unpaid Break",value:e.unpaidbreak||0}),(0,ae.jsx)(se.pY,{label:"Count",children:(0,ae.jsx)(v.A,{label:e.orderqty,color:"success",variant:"light",size:"small"})}),(0,ae.jsx)(se.pY,{label:"Assigned",children:(0,ae.jsx)(v.A,{label:e.supplyqty,color:0===e.supplyqty?"error":"warning",variant:"light",size:"small"})}),(0,ae.jsx)(se.pY,{label:"Price",value:"$".concat(e.price)}),(0,ae.jsx)(se.pY,{label:"Amount",value:"$".concat(e.landingamount)})]}),(0,ae.jsxs)(B.A,{in:cs[0]===s&&cs[1]===n,timeout:"auto",unmountOnExit:!0,children:[(0,ae.jsx)($.A,{sx:{my:1.5}}),0===Ne.length?i?(0,ae.jsx)(u.A,{alignItems:"center",children:(0,ae.jsx)(I.A,{})}):(0,ae.jsx)(u.A,{sx:{p:1},children:(0,ae.jsx)(C.A,{children:"No Staffs has been Assigned"})}):(0,ae.jsx)(u.A,{spacing:1,children:Ne.map(((e,s)=>(0,ae.jsxs)(se.pg,{accent:"#0ea5e9",children:[(0,ae.jsxs)(u.A,{direction:"row",justifyContent:"space-between",alignItems:"flex-start",children:[(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"subtitle2",children:e.staffname}),(0,ae.jsx)(b.Ay,{children:(0,ae.jsx)(v.A,{label:e.productname,color:"info",variant:"light",size:"small"})})]}),(0,ae.jsxs)(u.A,{direction:"row",children:["pending"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Pending",color:"error",size:"small"}),"cancelled"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Cancelled",color:"secondary",size:"small"}),"completed"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Completed",color:"primary",size:"small"}),"processing"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Processing",color:"primary",size:"small"}),"assigned"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Assigned",color:"warning",size:"small"}),"confirmed"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Confirmed",color:"success",size:"small"}),"active"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Active",color:"info",size:"small"}),"closed"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Closed",color:"info",size:"small"})]})]}),(0,ae.jsxs)(se.FG,{children:[(0,ae.jsx)(se.pY,{label:"Start Time",children:(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"body2",children:J()(e.Starttime).format("MM/DD/YYYY")}),(0,ae.jsx)(C.A,{variant:"caption",children:J()(e.Starttime).format("hh:mm A")})]})}),(0,ae.jsx)(se.pY,{label:"End Time",children:(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"body2",children:J()(e.Endtime).format("MM/DD/YYYY")}),(0,ae.jsx)(C.A,{variant:"caption",children:J()(e.Endtime).format("hh:mm A")})]})}),(0,ae.jsx)(se.pY,{label:"Pay Rate",value:e.rolecost}),(0,ae.jsx)(se.pY,{label:"Hours Worked",value:e.hoursworked}),(0,ae.jsx)(se.pY,{label:"Clockin",children:(0,ae.jsxs)(u.A,{spacing:.5,alignItems:"flex-start",children:[(0,ae.jsx)(v.A,{label:e.clockin?J()(e.clockin).format("MM/DD/YYYY"):"",color:"primary",variant:"light",size:"small"}),(0,ae.jsx)(v.A,{label:e.clockin?J()(e.clockin).format("hh:mm A"):"",color:"info",variant:"light",size:"small"})]})}),(0,ae.jsx)(se.pY,{label:"Clockout",children:(0,ae.jsxs)(u.A,{spacing:.5,alignItems:"flex-start",children:[(0,ae.jsx)(v.A,{label:e.clockout?J()(e.clockout).format("MM/DD/YYYY"):"",color:"primary",variant:"light",size:"small"}),(0,ae.jsx)(v.A,{label:e.clockout?J()(e.clockout).format("hh:mm A"):"",color:"info",variant:"light",size:"small"})]})})]})]},s)))})]})]},n+1)))]}):(0,ae.jsx)(E.A,{children:(0,ae.jsxs)(O.A,{children:[(0,ae.jsx)(P.A,{children:(0,ae.jsxs)(W.A,{children:[(0,ae.jsx)(_.A,{children:"#"}),(0,ae.jsx)(_.A,{children:"Role"}),(0,ae.jsx)(_.A,{children:"Start Date"}),(0,ae.jsx)(_.A,{children:"End Date"}),(0,ae.jsx)(_.A,{children:"Unpaid break"}),(0,ae.jsx)(_.A,{children:"Count"}),(0,ae.jsx)(_.A,{children:"Assigned"}),(0,ae.jsx)(_.A,{children:"Attire"}),(0,ae.jsx)(_.A,{children:"Price"}),(0,ae.jsx)(_.A,{children:"Amount"}),(0,ae.jsx)(_.A,{children:"Action"})]})}),(0,ae.jsxs)(R.A,{children:[0===e.orderdetails.length&&(0,ae.jsx)(ae.Fragment,{children:(0,ae.jsxs)(W.A,{children:[(0,ae.jsx)(_.A,{children:(0,ae.jsx)(L.A,{animation:"wave"})}),(0,ae.jsx)(_.A,{children:(0,ae.jsx)(L.A,{animation:"wave"})}),(0,ae.jsxs)(_.A,{children:[(0,ae.jsx)(L.A,{animation:"wave"}),(0,ae.jsx)(L.A,{animation:"wave"})]}),(0,ae.jsxs)(_.A,{children:[(0,ae.jsx)(L.A,{animation:"wave"}),(0,ae.jsx)(L.A,{animation:"wave"})]}),(0,ae.jsx)(_.A,{children:(0,ae.jsx)(L.A,{animation:"wave"})}),(0,ae.jsx)(_.A,{children:(0,ae.jsx)(L.A,{animation:"wave"})}),(0,ae.jsx)(_.A,{children:(0,ae.jsx)(L.A,{animation:"wave"})}),(0,ae.jsx)(_.A,{children:(0,ae.jsx)(L.A,{animation:"wave"})}),(0,ae.jsx)(_.A,{children:(0,ae.jsx)(L.A,{animation:"wave"})}),(0,ae.jsx)(_.A,{children:(0,ae.jsx)(L.A,{animation:"wave"})}),(0,ae.jsx)(_.A,{children:(0,ae.jsx)(L.A,{animation:"wave"})})]})}),e.orderdetails.map(((e,n)=>(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsxs)(W.A,{sx:{"&:last-child td, &:last-child th":{border:0},opacity:0==e.status?"":"0.7"},children:[(0,ae.jsx)(_.A,{children:n+1}),(0,ae.jsx)(_.A,{children:e.productname}),(0,ae.jsx)(_.A,{children:(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"body1",children:J()(e.starttime).format("MM/DD/YYYY")}),(0,ae.jsx)(C.A,{variant:"body2",children:J()(e.starttime).format("hh:mm A")})]})}),(0,ae.jsxs)(_.A,{children:[" ",(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"body1",children:J()(e.endtime).format("MM/DD/YYYY")}),(0,ae.jsx)(C.A,{variant:"body2",children:J()(e.endtime).format("hh:mm A")})]})]}),(0,ae.jsx)(_.A,{children:e.unpaidbreak||0}),(0,ae.jsx)(_.A,{align:"center",children:(0,ae.jsx)(v.A,{label:e.orderqty,color:"success",variant:"light",size:"small"})}),(0,ae.jsx)(_.A,{align:"center",children:(0,ae.jsx)(v.A,{label:e.supplyqty,color:0===e.supplyqty?"error":"warning",variant:"light",size:"small"})}),(0,ae.jsx)(_.A,{width:"100px"}),(0,ae.jsxs)(_.A,{children:["$",e.price]}),(0,ae.jsxs)(_.A,{children:["$",e.landingamount]}),(0,ae.jsx)(_.A,{children:(0,ae.jsxs)(u.A,{direction:"row",children:[(0,ae.jsx)(T.A,{title:"Expand",children:(0,ae.jsx)(H.A,{"aria-label":"expand row",style:{color:ms.palette.primary.main},onClick:()=>{Ue([]),ds(cs[0]===s&&cs[1]===n?["",""]:[s,n]),fs(e.orderdetailid)},children:cs[0]===s&&cs[1]===n?(0,ae.jsx)(h.A,{}):(0,ae.jsx)(A.A,{})})}),"cancelled"===Ye&&(0,ae.jsx)(ae.Fragment,{children:(0,ae.jsx)(H.A,{sx:{minWidth:"10px !important"},disabled:!0,children:(0,ae.jsx)(d.A,{})})}),1===e.status&&(0,ae.jsx)(T.A,{title:"Cancelled",children:(0,ae.jsx)(H.A,{sx:{minWidth:"10px !important"},children:(0,ae.jsx)(K.A,{color:"error"})})}),e.supplyqty>e.orderqty&&(0,ae.jsx)(T.A,{title:"Assigned count is greater than ordered count",children:(0,ae.jsx)(H.A,{color:"warning",children:(0,ae.jsx)(re.A,{})})})]})})]},n+1),(0,ae.jsx)(W.A,{sx:{p:2},children:(0,ae.jsx)(_.A,{style:{paddingBottom:0,paddingTop:0,paddingLeft:0,paddingRight:0},colSpan:11,sx:{width:"100%"},children:(0,ae.jsx)(B.A,{in:cs[0]===s&&cs[1]===n,timeout:"auto",unmountOnExit:!0,children:(0,ae.jsx)(V.A,{sx:{width:"100%"},children:0===Ne.length?(0,ae.jsx)(ae.Fragment,{children:i?(0,ae.jsx)(ae.Fragment,{children:(0,ae.jsx)(u.A,{alignItems:"center",children:(0,ae.jsx)(I.A,{})})}):(0,ae.jsx)(ae.Fragment,{children:(0,ae.jsx)(u.A,{sx:{p:1},children:(0,ae.jsx)(C.A,{children:"No Staffs has been Assigned"})})})}):(0,ae.jsx)(E.A,{children:(0,ae.jsxs)(O.A,{children:[(0,ae.jsx)(P.A,{children:(0,ae.jsxs)(W.A,{children:[(0,ae.jsx)(_.A,{children:"#"}),(0,ae.jsx)(_.A,{children:"Staff"}),(0,ae.jsx)(_.A,{children:"Start Time"}),(0,ae.jsx)(_.A,{children:"End Time"}),(0,ae.jsx)(_.A,{children:"Pay Rate"}),(0,ae.jsx)(_.A,{align:"center",children:"Clockin"}),(0,ae.jsx)(_.A,{align:"center",children:"Clockout"}),(0,ae.jsx)(_.A,{children:"Hours Worked"}),(0,ae.jsx)(_.A,{children:"Status"})]})}),(0,ae.jsx)(R.A,{children:Ne.map(((e,s)=>(0,ae.jsx)(r.Fragment,{children:(0,ae.jsxs)(W.A,{sx:{},children:[(0,ae.jsx)(_.A,{component:"th",scope:"row",padding:"none",children:s+1}),(0,ae.jsx)(_.A,{align:"left",children:(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"caption",children:e.staffname}),(0,ae.jsx)(b.Ay,{children:(0,ae.jsx)(v.A,{label:e.productname,color:"info",variant:"light",size:"small"})})]})}),(0,ae.jsx)(_.A,{children:(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"body2",children:J()(e.Starttime).format("MM/DD/YYYY")}),(0,ae.jsx)(C.A,{variant:"caption",children:J()(e.Starttime).format("hh:mm A")})]})}),(0,ae.jsx)(_.A,{children:(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"body2",children:J()(e.Endtime).format("MM/DD/YYYY")}),(0,ae.jsx)(C.A,{variant:"caption",children:J()(e.Endtime).format("hh:mm A")})]})}),(0,ae.jsx)(_.A,{children:e.rolecost}),(0,ae.jsx)(_.A,{children:(0,ae.jsxs)(u.A,{spacing:.5,alignItems:"center",children:[(0,ae.jsx)(v.A,{label:e.clockin?J()(e.clockin).format("MM/DD/YYYY"):"",color:"primary",variant:"light",size:"small"}),(0,ae.jsx)(v.A,{label:e.clockin?J()(e.clockin).format("hh:mm A"):"",color:"info",variant:"light",size:"small"})]})}),(0,ae.jsx)(_.A,{children:(0,ae.jsxs)(u.A,{spacing:.5,alignItems:"center",children:[(0,ae.jsx)(v.A,{label:e.clockout?J()(e.clockout).format("MM/DD/YYYY"):"",color:"primary",variant:"light",size:"small"}),(0,ae.jsx)(v.A,{label:e.clockout?J()(e.clockout).format("hh:mm A"):"",color:"info",variant:"light",size:"small"})]})}),(0,ae.jsx)(_.A,{children:e.hoursworked}),(0,ae.jsx)(_.A,{align:"left",children:(0,ae.jsxs)(u.A,{direction:"row",children:["pending"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Pending",color:"error",size:"small"}),"cancelled"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Cancelled",color:"secondary",size:"small"}),"completed"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Completed",color:"primary",size:"small"}),"processing"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Processing",color:"primary",size:"small"}),"assigned"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Assigned",color:"warning",size:"small"}),"confirmed"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Confirmed",color:"success",size:"small"}),"active"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Active",color:"info",size:"small"}),"closed"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Closed",color:"info",size:"small"})]})})]})},s)))})]})})})})})})]})))]})]})})]})})},e.locationaddress))),(0,ae.jsx)(b.Ay,{item:!0,xs:12,children:(0,ae.jsx)($.A,{sx:{borderWidth:1}})}),(0,ae.jsx)(b.Ay,{item:!0,xs:12,sm:6,children:(0,ae.jsx)(V.A,{title:"Order Addons",sx:{height:"100%"},children:(0,ae.jsx)(b.Ay,{container:!0,spacing:2,children:(Ee||[]).map((e=>(0,ae.jsx)(r.Fragment,{children:(0,ae.jsx)(b.Ay,{item:!0,children:(0,ae.jsx)(v.A,{icon:(0,ae.jsx)(x.A,{}),variant:"outlined",color:"error",label:e.addon})})},e.addon)))})})}),(0,ae.jsx)(b.Ay,{item:!0,xs:12,sm:6,children:(0,ae.jsx)(V.A,{title:"Total",sx:{height:"100%"},children:(0,ae.jsxs)(u.A,{spacing:2,children:[(0,ae.jsxs)(u.A,{direction:"row",justifyContent:"space-between",children:[(0,ae.jsx)(C.A,{color:ms.palette.grey[500],children:"Sub Total:"}),(0,ae.jsxs)(C.A,{children:["$",""===De?(0,ae.jsx)(L.A,{sx:{width:"30px"}}):De]})]}),(0,ae.jsxs)(u.A,{direction:"row",justifyContent:"space-between",children:[(0,ae.jsx)(C.A,{color:ms.palette.grey[500],children:"Tax:"}),(0,ae.jsx)(C.A,{children:""===ke?(0,ae.jsx)(L.A,{sx:{width:"30px"}}):ke})]}),(0,ae.jsxs)(u.A,{direction:"row",justifyContent:"space-between",children:[(0,ae.jsx)(C.A,{variant:"subtitle1",children:"Grand Total:"}),(0,ae.jsx)(C.A,{variant:"subtitle1",children:""===Ie?(0,ae.jsx)(L.A,{sx:{width:"30px"}}):"$".concat(Ie)})]})]})})}),(0,ae.jsx)(b.Ay,{item:!0,xs:12,children:(0,ae.jsxs)(u.A,{direction:"column",sx:{mt:2},children:[(0,ae.jsx)(C.A,{color:"secondary",children:"Other Instructions:"}),(0,ae.jsx)(C.A,{sx:{ml:3},children:Pe})]})})]})})})]})]})}}}]); \ No newline at end of file diff --git a/build/static/js/6248.8f2e2aaa.chunk.js b/build/static/js/6248.8f2e2aaa.chunk.js deleted file mode 100644 index dec95d3..0000000 --- a/build/static/js/6248.8f2e2aaa.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[6248],{23787:(e,s,i)=>{i.d(s,{FG:()=>A,nV:()=>x,pY:()=>j,pg:()=>h});var n=i(89379),r=i(80045),t=i(93230),a=i(2235),l=i(16491),o=i(82053),c=i(44414);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:s,scroll:i=!1,onScroll:a,sx:l}=e,o=(0,r.A)(e,d);return(0,c.jsx)(t.A,(0,n.A)((0,n.A)({spacing:1.25,onScroll:a,sx:(0,n.A)((0,n.A)({p:1.5},i&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),l)},o),{},{children:s}))},h=e=>{let{accent:s="#662582",header:i,footer:r,selected:t=!1,onClick:o,children:d,sx:x}=e;return(0,c.jsxs)(a.A,{elevation:0,onClick:o,sx:(0,n.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:t?s:"#e2e8f0",background:t?"".concat(s,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,c.jsx)(l.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:s}}),(0,c.jsxs)(l.A,{sx:{p:1.5,pl:2},children:[i,d,r]})]})},A=e=>{let{children:s,columns:i=2,sx:r}=e;return(0,c.jsx)(l.A,{sx:(0,n.A)({display:"grid",gridTemplateColumns:"repeat(".concat(i,", minmax(0, 1fr))"),gap:1,mt:1.25},r),children:s})},j=e=>{let{label:s,value:i,children:n,full:r=!1,align:t="left"}=e;return(0,c.jsxs)(l.A,{sx:{gridColumn:r?"1 / -1":"auto",minWidth:0,textAlign:t},children:[(0,c.jsx)(o.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:s}),(0,c.jsx)(l.A,{sx:{mt:.25,minWidth:0},children:void 0!==n?n:(0,c.jsx)(o.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==i&&void 0!==i?i:"\u2014"})})]})}},66248:(e,s,i)=>{i.r(s),i.d(s,{default:()=>oe});var n=i(89379),r=i(9950),t=i(46702),a=i(28429),l=i(26910),o=i(63189),c=i(19474),d=i(58833),x=i(53067),h=i(62824),A=i(52329),j=i(36256),m=i(32653),g=i(96583),p=i(28170),u=i(93230),f=i(41413),b=i(60899),v=i(25277),y=i(65429),w=i(92743),Y=i(36080),C=i(82053),S=i(29925),k=i(10226),z=i(40033),D=i(48159),M=i(84142),I=i(46639),F=i(93038),T=i(83274),H=i(25333),E=i(1320),O=i(15769),P=i(69780),W=i(9213),_=i(21671),R=i(34075),N=i(79739),U=i(25713),L=i(82917),q=i(25979),B=i(33738),$=i(74745),G=i(37476),K=i(72179),V=i(50027),X=i(52351),Z=i(4159),J=i.n(Z),Q=i(14857),ee=i(47223),se=i(23787),ie=i(46585),ne=i(94118),re=i(97973),te=i(8881),ae=i(44414),le=i(36220);J().extend(le);const oe=()=>{const[e,s]=(0,r.useState)([]),[i,Z]=(0,r.useState)(!0),le=(0,a.zy)(),[oe,ce]=(0,r.useState)(""),[de,xe]=(0,r.useState)(""),[he,Ae]=(0,r.useState)(""),[je,me]=(0,r.useState)(""),[ge,pe]=(0,r.useState)(!1),[ue,fe]=(0,r.useState)(""),[be,ve]=(0,r.useState)(""),[ye,we]=(0,r.useState)(!1),[Ye,Ce]=(0,r.useState)(""),[Se]=(0,r.useState)(""),[ke,ze]=(0,r.useState)(""),[De,Me]=(0,r.useState)(""),[Ie,Fe]=(0,r.useState)(""),[Te,He]=(0,r.useState)(""),[Ee,Oe]=(0,r.useState)([]),[Pe,We]=(0,r.useState)(""),[_e,Re]=(0,r.useState)(""),[Ne,Ue]=(0,r.useState)([]),[Le,qe]=(0,r.useState)([]),[Be,$e]=(0,r.useState)(""),[Ge,Ke]=(0,r.useState)(""),[Ve]=(0,r.useState)(""),[Xe]=(0,r.useState)(""),[Ze,Je]=(0,r.useState)(""),[Qe,es]=(0,r.useState)([]),[ss,is]=(0,r.useState)({shifts:0,assigned:0,remaining:0,shiftid:0,price:0}),[ns,rs]=(0,r.useState)(0),{state:ts}=(0,a.zy)(),[as,ls]=(0,r.useState)(""),os=(0,a.Zp)(),[cs,ds]=(0,r.useState)(["",""]),[xs,hs]=(0,r.useState)(""),[As,js]=(0,r.useState)(!1);(0,r.useEffect)((()=>{console.log("categoryarr"),console.log(e,de,Te,Ve,Xe)}),[Qe]),(0,r.useEffect)((()=>{ts&&($e(ts.orderheaderid),Ke(ts.tenantid)),console.log(ts),console.log(Date.now())}),[]),(0,r.useEffect)((()=>{ts&&($e(ts.orderheaderid),Ke(ts.tenantid)),console.log(ts),console.log(Date.now())}),[ts.orderheaderid,ts.tenantid]);const ms=(0,Q.A)(),gs=(0,ee.A)(ms.breakpoints.down("md")),ps=async()=>{Z(!0),await l.A.get("".concat("https://jupiter.nearle.app/live/api/v2","/orders/getordersbystatus?tenantid=").concat(Ge)).then((e=>{console.log(e);let s=e.data.Details.find((e=>e.orderheaderid==Be));console.log("result"),console.log(s),Oe(s.orderaddons),He(s.venuetype),We(s.remarks),hs(s.startdate),fe(s.tenantname),xe(""),ve(s.tenantaddress),me(s.eventname),Ae(J()(s.orderdate).format("MM/DD/YYYY")||""),ce(s.orderid),Ce(s.orderstatus),ze(s.taxamount),Me(s.orderamount),Fe(s.ordervalue),Re(J()(s.cancelled).format("MM/DD/YYYY")||""),Je(s.pending),Z(!1)})).catch((e=>{console.log(e),Z(!1)}))},us=async()=>{Z(!0),await l.A.get("".concat("https://jupiter.nearle.app/live/api/v2","/orders/getorderdetails?orderheaderid=").concat(Be)).then((e=>{console.log("res"),console.log(e),s(e.data.Details||[]),console.log("categoryarr"),es(e.data.Details),console.log(e.data.Details),Z(!1)})).catch((e=>{console.log(e),Z(!1)}))},fs=async e=>{Z(!0);try{await l.A.get("".concat("https://jupiter.nearle.app/live/api/v2","/orders/getassignedinfo?orderdetailid=").concat(e)).then((e=>{console.log(e),e.data.status&&Ue(e.data.Details),Z(!1)})).catch((e=>{console.log(e),Z(!1)}))}catch(s){console.log(s),Z(!1)}},bs=async e=>{let s={orderheaderid:Be,orderprocessid:e.orderprocessid,orderdetailid:e.orderdetailid,orderstatus:"pending",pending:J()().format("YYYY-MM-DD HH:mm:ss"),status:1};console.log(s),await l.A.put("".concat("https://jupiter.nearle.app/live/api/v2","/orders/updateprocessstatus"),s).then((s=>{console.log(s),"Successful"===s.data.message&&((0,te.M8)("Role unassigned successfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),ss.assigned>ss.shifts&&vs(e),ps(),us(),pe(!1),Cs(),ys(),setTimeout((()=>{Cs()}),2e3))})).catch((e=>{console.log(e)}))},vs=e=>{let s;console.log(e);let i=[e.userfcmtoken],n=[{notificationid:0,notificationdate:J()().format("YYYY-MM-DD HH:mm:ss"),Title:"Staff Un-Asigned",message:"".concat(e.firstname," has been Un-assigned to the order ").concat(oe),configid:2,tenantid:Ge,orderheaderid:Be,orderprocessid:e.orderprocessid,shiftid:e.shiftid,userid:e.userid,orderid:oe,success:0,orderstatus:"assigned",processing:J()().format("YYYY-MM-DD HH:mm:ss"),notifytype:2,notifyreason:"Staff Un-Assigned"}];s={Title:"Staff Un-Asigned",message:"A Staff has been Un-assigned to the order ".concat(oe),tenantid:Ge,orderheaderid:Be,orderid:oe,configid:2};let r={notifications:n,fcmmodel:{priority:"high",registration_ids:i,data:s,notification:{body:"An order has been Un-assigned ".concat(oe),title:"Legendary",sound:"ring",content_available:!0,click_action:"FLUTTER_NOTIFICATION_CLICK"}}};console.log("grpnotifyobj unassign"),console.log(r),Ys(r)};(0,r.useEffect)((()=>{console.log(Be),Be&&Ge?(ps(),us(),Cs(),console.log(le.state||"")):Z(!1),console.log(Be,Ge)}),[Be,Ge,as]);const ys=()=>{we(!1),qe([]),ds(["",""])};(0,r.useEffect)((()=>{console.log(ss)}));const ws=async e=>{let s=e.userfcmtoken,i={notificationid:0,notificationdate:J()().format("YYYY-MM-DD HH:mm:ss"),Title:"Staff Asigned",message:"A Staff has been assigned to the order ".concat(oe),configid:2,tenantid:Ge,orderheaderid:Be,orderprocessid:e.orderprocessid,shiftid:e.shiftid,userid:e.userid,orderid:oe,sound:"ring",click_action:"FLUTTER_NOTIFICATION_CLICK"};console.log(i,s),await l.A.post("".concat("https://jupiter.nearle.app/live/api/v2","/utils/notification/send"),{priority:"high",registration_ids:[s],data:i,notification:{body:"A Staff has been assigned to ".concat(oe),title:"Legendary",sound:"ring",content_available:!0}},{headers:{Authorization:"Bearer ".concat("")}}).then((e=>{console.log(e),(0,te.M8)("Notification sent successfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3})})).catch((e=>{console.log(e)}))},Ys=async e=>{console.log(e),await l.A.post("".concat("https://jupiter.nearle.app/live/api/v2","/utils/notification/sendall"),e,{headers:{Authorization:"Bearer ".concat("")}}).then((e=>{console.log(e),e.data.status&&((0,te.M8)("Notification sent successfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),ps())})).catch((e=>{console.log(e)}))},Cs=async()=>{await l.A.get("".concat("https://jupiter.nearle.app/live/api/v2","/orders/getorderstatuscount?orderheaderid=").concat(Be)).then((e=>{e.data.status?(console.log(e),ls(e.data.pendingcount),ps()):(ls(e.data.pendingcount),ps())})).catch((e=>{console.log(e)}))};function Ss(e){let{open:s,handleClose:i}=e;const[n,t]=(0,r.useState)("");return(0,ae.jsx)(g.A,{open:s,onClose:()=>i(!1),maxWidth:"xs",fullScreen:gs,PaperProps:{sx:{borderRadius:{xs:0,sm:3}}},children:(0,ae.jsx)(p.A,{sx:{mt:2,my:1},children:(0,ae.jsxs)(u.A,{alignItems:"center",spacing:3.5,children:[(0,ae.jsx)(f.A,{color:"error",sx:{width:72,height:72,fontSize:"1.75rem"},children:(0,ae.jsx)(j.A,{})}),(0,ae.jsx)(b.Ay,{children:(0,ae.jsx)(v.A,{label:oe.slice(4),variant:"combined",color:"warning",size:"small"})}),(0,ae.jsxs)(u.A,{spacing:2,children:[As&&(0,ae.jsxs)(y.A,{color:"warning",variant:"border",icon:(0,ae.jsx)(ie.A,{}),children:[(0,ae.jsx)(w.A,{children:"Order is within 24Hrs time frame. The order will be invoiced with standard pricing as agreed."}),(0,ae.jsx)(Y.A,{href:"https://thelegendarystaff.com/",target:"_blank",children:"Terms & Condition link"})]}),(0,ae.jsx)(C.A,{variant:"h4",align:"center",children:"Please type in the order number to confirm."}),(0,ae.jsx)(S.A,{type:"text",onChange:e=>{console.log(e.target.value),t(e.target.value)},error:n!==oe.slice(4),value:n})]}),(0,ae.jsxs)(u.A,{direction:"row",spacing:2,sx:{width:1},children:[(0,ae.jsx)(k.A,{fullWidth:!0,color:"error",variant:"contained",onClick:()=>{n===oe.slice(4)&&((async()=>{await l.A.put("".concat("https://jupiter.nearle.app/live/api/v2","/orders/cancel"),{orderheaderid:parseInt(Be),orderstatus:"cancelled",cancelled:J()().format("YYYY-MM-DD HH:mm:ss"),unserviceable:As?0:1}).then((e=>{console.log(e),e.data.status&&Be&&Ge&&(ps(),us())})).catch((e=>{console.log(e)}))})(),i(!0))},autoFocus:!0,children:"Yes, Cancel"}),(0,ae.jsx)(k.A,{fullWidth:!0,onClick:()=>i(!1),color:"secondary",variant:"outlined",children:"No"})]})]})})})}return(0,ae.jsxs)(ae.Fragment,{children:[i&&(0,ae.jsx)(X.A,{}),(0,ae.jsx)(Ss,{open:ge,handleClose:()=>{pe(!1)}}),(0,ae.jsxs)(g.A,{maxWidth:!1,fullWidth:!0,open:ye,onClose:ys,scroll:"paper",fullScreen:gs,PaperProps:{sx:{borderRadius:{xs:0,sm:3}}},TransitionComponent:G.s,children:[(0,ae.jsxs)(z.A,{children:[(0,ae.jsxs)(u.A,{direction:"row",justifyContent:"space-between",children:[(0,ae.jsxs)(u.A,{direction:{sm:"row",xs:"column"},spacing:2,alignItems:"center",children:[(0,ae.jsx)(C.A,{variant:"h3",children:"Assign Roles"}),(0,ae.jsx)(v.A,{label:ue,variant:"light",color:"primary"})]}),(0,ae.jsx)(v.A,{label:oe,variant:"combined",color:"warning",size:"large"})]}),(0,ae.jsxs)(b.Ay,{container:!0,sx:{p:1},spacing:2,children:[(0,ae.jsx)(b.Ay,{item:!0,sm:6,xs:12,children:(0,ae.jsx)(D.A,{value:ns,onChange:()=>rs((e=>0===e?1:0)),variant:"scrollable",scrollButtons:"auto",children:(0,ae.jsx)(M.A,{label:Se})})}),(0,ae.jsx)(b.Ay,{item:!0,sm:6,xs:12,children:(0,ae.jsxs)(u.A,{direction:"row",justifyContent:{xs:"flex-start",sm:"flex-end"},sx:{height:"100%"},spacing:2,children:[(0,ae.jsx)(v.A,{sx:{width:"130px"},label:"Required:".concat(ss.shifts),variant:"combined",color:"primary",size:"normal"}),(0,ae.jsx)(v.A,{sx:{width:"130px"},label:"Assigned: ".concat(ss.assigned),variant:"combined",color:"success",size:"normal"}),(0,ae.jsx)(v.A,{sx:{width:"130px"},label:"Remaining: ".concat(ss.remaining),variant:"combined",color:"error",size:"normal"})]})})]})]}),(0,ae.jsx)(p.A,{dividers:!0,children:0===Ne.length?(0,ae.jsx)(ae.Fragment,{children:i?(0,ae.jsx)(ae.Fragment,{children:(0,ae.jsx)(u.A,{alignItems:"center",children:(0,ae.jsx)(I.A,{})})}):(0,ae.jsx)(C.A,{children:"No Staffs Available"})}):gs?(0,ae.jsx)(se.nV,{children:Ne.map(((e,s)=>{const i=!!Le.find((s=>s.userid==e.userid));return(0,ae.jsxs)(se.pg,{accent:"#662582",selected:i,children:[(0,ae.jsxs)(u.A,{direction:"row",justifyContent:"space-between",alignItems:"flex-start",spacing:1,children:[(0,ae.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,ae.jsx)(f.A,{alt:"",src:"",sx:{width:32,height:32}}),(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"subtitle2",children:e.firstname}),(0,ae.jsx)(C.A,{variant:"caption",color:"textSecondary",children:e.contactno})]})]}),e.orderdetailid!==orderdetailid?(0,ae.jsx)(F.A,{disabled:0!==e.orderdetailid,checked:i,onClick:s=>{if(console.log(ss),ss.remaining>=0){if(s.target.checked&&0!=ss.remaining){let s=Le;s.push({userid:e.userid,orderdetailid:orderdetailid,productid:productid,shiftid:ss.shiftid,userrate:ss.price,productrate:e.rolecost,firstname:e.firstname}),qe([...s]);let i=ss;i.assigned++,i.remaining=i.shifts-i.assigned,is((0,n.A)({},i))}else if(ss.assigned!=ss.shifts||0===ss.remaining&&!s.target.checked){let s=Le,i=s.findIndex((s=>s.userid===e.userid));s.splice(i,1),qe([...s]);let r=ss;r.assigned--,r.remaining=r.shifts-r.assigned,is((0,n.A)({},r))}console.log(Le)}}}):(0,ae.jsxs)(u.A,{direction:"row",alignItems:"center",children:[(0,ae.jsx)(v.A,{label:"Assigned",color:"success",size:"small",sx:{mr:1}}),(0,ae.jsx)(T.A,{title:"Unassign",children:(0,ae.jsx)(H.A,{color:"error",onClick:()=>{console.log(e),bs(e)},children:(0,ae.jsx)(ne.A,{})})}),(0,ae.jsx)(T.A,{title:"Send Notification",children:(0,ae.jsx)(H.A,{color:"info",onClick:()=>{console.log(e),ws(e)},children:(0,ae.jsx)(m.A,{})})})]})]}),(0,ae.jsxs)(se.FG,{children:[(0,ae.jsx)(se.pY,{label:"Category",children:(0,ae.jsxs)(u.A,{direction:"column",alignItems:"flex-start",spacing:.25,children:[(0,ae.jsx)(C.A,{variant:"caption",color:"textSecondary",children:e.cateoryname}),(0,ae.jsx)(v.A,{label:e.subcategoryname,color:"info",size:"small",variant:"light"})]})}),(0,ae.jsx)(se.pY,{label:"Price",value:e.rolecost}),(0,ae.jsx)(se.pY,{label:"Experience",value:"".concat(e.experience," Years")}),(0,ae.jsx)(se.pY,{label:"Level",children:(0,ae.jsx)(v.A,{label:e.levelofexperience,size:"small",color:"primary",variant:"light"})}),(0,ae.jsx)(se.pY,{label:"City",value:e.city}),e.orderid&&(0,ae.jsx)(se.pY,{label:"Order",children:(0,ae.jsx)(v.A,{label:e.orderid,color:"warning",size:"small",variant:"light"})})]})]},s)}))}):(0,ae.jsx)(E.A,{children:(0,ae.jsxs)(O.A,{children:[(0,ae.jsx)(P.A,{children:(0,ae.jsxs)(W.A,{children:[(0,ae.jsx)(_.A,{children:"#"}),(0,ae.jsx)(_.A,{children:"Staff"}),(0,ae.jsx)(_.A,{children:"Category"}),(0,ae.jsx)(_.A,{children:"Price"}),(0,ae.jsx)(_.A,{children:"Experience"}),(0,ae.jsx)(_.A,{children:"Level"}),(0,ae.jsx)(_.A,{children:"City"}),(0,ae.jsx)(_.A,{children:"Action"}),(0,ae.jsx)(_.A,{})]})}),(0,ae.jsx)(R.A,{children:Ne.map(((e,s)=>(0,ae.jsx)(r.Fragment,{children:(0,ae.jsxs)(W.A,{sx:{backgroundColor:Le.find((s=>s.userid==e.userid))?"#f5f5f5":"",":hover":{backgroundColor:Le.find((s=>s.userid==e.userid))?"#f5f5f5 !important":""}},children:[(0,ae.jsx)(_.A,{component:"th",scope:"row",padding:"none",children:s+1}),(0,ae.jsx)(_.A,{align:"left",sx:{paddingLeft:"0px !important"},children:(0,ae.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:1,justifyContent:"flex-start",children:[(0,ae.jsx)(f.A,{alt:"",size:"sm",src:"",sx:{width:"25px",height:"25px"}}),(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"caption",children:e.firstname}),(0,ae.jsx)(C.A,{variant:"caption",color:"textSecondary",children:e.contactno})]})]})}),(0,ae.jsx)(_.A,{align:"left",children:(0,ae.jsxs)(u.A,{direction:"column",alignItems:"flex-start",children:[(0,ae.jsx)(C.A,{variant:"caption",color:"textSecondary",children:e.cateoryname}),(0,ae.jsx)(v.A,{label:e.subcategoryname,color:"info",size:"small",variant:"light"})]})}),(0,ae.jsx)(_.A,{children:e.rolecost}),(0,ae.jsxs)(_.A,{align:"left",children:[e.experience," Years"]}),(0,ae.jsx)(_.A,{align:"left",children:(0,ae.jsx)(v.A,{label:e.levelofexperience,size:"small",color:"primary",variant:"light"})}),(0,ae.jsx)(_.A,{align:"left",children:e.city}),(0,ae.jsx)(_.A,{align:"left",children:e.orderdetailid!==orderdetailid?(0,ae.jsx)(ae.Fragment,{children:(0,ae.jsx)(F.A,{disabled:0!==e.orderdetailid,checked:!!Le.find((s=>s.userid==e.userid)),onClick:s=>{if(console.log(ss),ss.remaining>=0){if(s.target.checked&&0!=ss.remaining){let s=Le;s.push({userid:e.userid,orderdetailid:orderdetailid,productid:productid,shiftid:ss.shiftid,userrate:ss.price,productrate:e.rolecost,firstname:e.firstname}),qe([...s]);let i=ss;i.assigned++,i.remaining=i.shifts-i.assigned,is((0,n.A)({},i))}else if(ss.assigned!=ss.shifts||0===ss.remaining&&!s.target.checked){let s=Le,i=s.findIndex((s=>s.userid===e.userid));s.splice(i,1),qe([...s]);let r=ss;r.assigned--,r.remaining=r.shifts-r.assigned,is((0,n.A)({},r))}console.log(Le)}}})}):(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)(v.A,{label:"Assigned",color:"success",size:"small",sx:{mr:1}}),(0,ae.jsx)(T.A,{title:"Unassign",children:(0,ae.jsx)(H.A,{color:"error",onClick:()=>{console.log(e),bs(e)},children:(0,ae.jsx)(ne.A,{})})}),(0,ae.jsx)(T.A,{title:"Send Notification",children:(0,ae.jsx)(H.A,{color:"info",onClick:()=>{console.log(e),ws(e)},children:(0,ae.jsx)(m.A,{})})})]})}),(0,ae.jsx)(_.A,{children:e.orderid&&(0,ae.jsx)(ae.Fragment,{children:(0,ae.jsx)(v.A,{label:e.orderid,color:"warning",size:"small",variant:"light"})})})]})},s)))})]})})}),(0,ae.jsx)(N.A,{children:(0,ae.jsxs)(u.A,{sx:{mt:2,width:{xs:"100%",sm:"auto"}},direction:{xs:"column",sm:"row"},justifyContent:"flex-end",spacing:{xs:1.5,sm:5},children:[Ne.length>0&&(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)(k.A,{sx:{width:{xs:"100%",sm:"130px"}},variant:"contained",onClick:async()=>{let e=[],s=[];Le.map((i=>{e.push({orderprocessid:0,processdate:J()().format("YYYY-MM-DD HH:mm:ss"),tenantid:Ge,orderheaderid:Be,orderdetailid:i.orderdetailid,productid:i.productid,userid:i.userid,orderstatus:"pending",pending:"".concat(J()(Ze).format("YYYY-MM-DD")," ").concat(J()(Ze).format("HH:mm:ss")),starttime:"".concat(J()(Ve).format("YYYY-MM-DD")," ").concat(J()(Ve).format("HH:mm:ss")),endtime:"".concat(J()(Xe).format("YYYY-MM-DD")," ").concat(J()(Xe).format("HH:mm:ss")),appuserid:parseInt(localStorage.getItem("appuserid")),shiftid:i.shiftid,userrate:i.userrate,productrate:i.productrate}),Le.map((e=>{s.push({notificationid:0,notificationdate:J()().format("YYYY-MM-DD HH:mm:ss"),Title:"Staff Asigned",message:"A Staff has been assigned to the order ".concat(oe),configid:2,tenantid:Ge,orderheaderid:Be,orderprocessid:0,shiftid:e.shiftid,userid:e.userid,orderid:oe,sound:"ring",click_action:"FLUTTER_NOTIFICATION_CLICK",firstname:e.firstname})}))})),console.log("arr"),console.log(e),await l.A.post("".concat("https://jupiter.nearle.app/live/api/v2","/orders/createorderprocess"),e).then((e=>{console.log(e),"Successfully created"===e.data.message&&((0,te.M8)("Roles assigned successfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),we(!1),us(),Cs())})).catch((e=>{console.log(e)})),console.log(e)},children:"OK"}),(0,ae.jsx)(k.A,{sx:{width:{xs:"100%",sm:"130px"}},color:"warning",variant:"contained",onClick:()=>{qe([]);let e=ss;e.remaining=e.shifts,e.assigned=0,is(e)},children:"clear"})]}),(0,ae.jsx)(k.A,{sx:{width:{xs:"100%",sm:"130px"}},color:"error",variant:"contained",onClick:()=>{ys()},children:"Close"})]})})]}),(0,ae.jsxs)(b.Ay,{container:!0,rowSpacing:2,columnSpacing:2.75,children:[(0,ae.jsx)(U.A,{sx:{position:"sticky",top:"60px",bgcolor:ms.palette.background.default,zIndex:1,width:"100%"},children:(0,ae.jsx)(b.Ay,{item:!0,xs:12,children:(0,ae.jsxs)(u.A,{direction:{md:"row",xs:"column"},justifyContent:"space-between",alignItems:"flex-end",sx:{width:"100%",p:1},children:[(0,ae.jsxs)(u.A,{direction:"row",spacing:2,alignItems:"center",justifyContent:"flex-start",sx:{width:{xs:"100%",md:"0"}},children:[(0,ae.jsx)(H.A,{onClick:()=>history.back(),children:(0,ae.jsx)(o.A,{})}),(0,ae.jsxs)(u.A,{direction:"column",alignItems:"flex-start",children:[(0,ae.jsx)(C.A,{variant:"h3",children:"Details"}),(0,ae.jsxs)(u.A,{direction:"row",spacing:1,children:[(0,ae.jsx)(v.A,{label:""===oe?(0,ae.jsx)(L.A,{sx:{width:"80px",bgcolor:"#fff9c4"},animation:"wave"}):oe,variant:"combined",color:"warning",size:"small"}),(0,ae.jsx)(v.A,{label:""===he?(0,ae.jsx)(L.A,{sx:{width:"80px",bgcolor:"#b3e5fc"},animation:"wave"}):he,variant:"combined",color:"primary",size:"small"}),"pending"===Ye&&(0,ae.jsx)(v.A,{label:"Pending",color:"error",size:"small"}),"cancelled"===Ye&&(0,ae.jsx)(v.A,{label:"Cancelled",color:"secondary",size:"small"}),"completed"===Ye&&(0,ae.jsx)(v.A,{label:"Completed",color:"primary",size:"small"}),"processing"===Ye&&(0,ae.jsx)(v.A,{label:"Processing",color:"primary",size:"small"}),"assigned"===Ye&&(0,ae.jsx)(v.A,{label:"Assigned",color:"warning",size:"small"}),"confirmed"===Ye&&(0,ae.jsx)(v.A,{label:"Confirmed",color:"success",size:"small"}),"active"===Ye&&(0,ae.jsx)(v.A,{label:"Active",color:"info",size:"small"}),"closed"===Ye&&(0,ae.jsx)(v.A,{label:"Closed",color:"info",size:"small"}),"modified"===Ye&&(0,ae.jsx)(v.A,{label:"Modified",color:"secondary",size:"small",variant:"contained"})]})]})]}),(0,ae.jsxs)(u.A,{direction:{xs:"column",sm:"row"},spacing:2,sx:{mt:{md:0,xs:2},width:{xs:"100%",md:"auto"}},children:[("pending"===Ye||"assigned"===Ye||"confirmed"===Ye||"modified"===Ye)&&(0,ae.jsx)(T.A,{title:"Edit",children:(0,ae.jsx)(k.A,{variant:"outlined",color:"info",sx:{borderRadius:"40px",width:{xs:"100%",sm:"auto"}},startIcon:(0,ae.jsx)(t.A,{color:"info"}),onClick:e=>{e.stopPropagation(),J()(J()().format("MM-DD-YYYY")).isBefore(J()(J()(xs).format("MM-DD-YYYY")))?os("/editorder",{state:{orderheaderid:Be,tenantid:Ge}}):(0,te.M8)("Order cannot be edited.\n Order date is not valid at this time",{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:4e3,style:{whiteSpace:"pre-line"}})},children:"Edit Order"})}),"cancelled"!==Ye&&""!==Ye&&"completed"!==Ye&&"closed"!==Ye&&(0,ae.jsx)(ae.Fragment,{children:(0,ae.jsx)(k.A,{variant:"outlined",color:"error",onClick:()=>{console.log(J()(xs).diff(J()(),"m")/60),J()(xs).diff(J()(),"m")/60>24?(js(!1),pe(!0)):(js(!0),pe(!0))},sx:{borderRadius:"40px",mt:{xs:2,sm:0},width:{xs:"100%",sm:"auto"}},startIcon:(0,ae.jsx)(K.A,{}),children:"Cancel Order"})}),"cancelled"===Ye&&(0,ae.jsx)(ae.Fragment,{children:(0,ae.jsx)(v.A,{label:"Order Cancelled on ".concat(_e),variant:"combined",color:"error"})})]})]})})}),(0,ae.jsx)(b.Ay,{item:!0,xs:12,sx:{mt:-2},children:(0,ae.jsx)(V.A,{content:!1,width:"100%",children:(0,ae.jsxs)(b.Ay,{container:!0,spacing:2.5,sx:{p:2.5},children:[(0,ae.jsx)(b.Ay,{item:!0,xs:12,sm:6,children:(0,ae.jsx)(V.A,{sx:{height:"100%"},children:(0,ae.jsxs)(u.A,{spacing:1,children:[(0,ae.jsx)(C.A,{variant:"h5",children:"Client"}),(0,ae.jsx)(C.A,{color:"secondary",children:""===ue?(0,ae.jsx)(L.A,{sx:{width:"40%"},animation:"wave"}):ue}),(0,ae.jsx)(q.A,{sx:{width:"100%"},children:(0,ae.jsx)(C.A,{color:"secondary",children:""===be?(0,ae.jsx)(L.A,{sx:{width:"90%"},animation:"wave"}):be})})]})})}),(0,ae.jsx)(b.Ay,{item:!0,xs:12,sm:6,children:(0,ae.jsx)(V.A,{sx:{height:"100%"},children:(0,ae.jsxs)(u.A,{spacing:1,children:[(0,ae.jsx)(C.A,{variant:"h5",children:"Event"}),(0,ae.jsx)(q.A,{sx:{width:"100%"},children:(0,ae.jsx)(C.A,{color:"secondary",children:""===je?(0,ae.jsx)(L.A,{sx:{width:"40%"},animation:"wave"}):je})})]})})}),Qe.map(((e,s)=>(0,ae.jsx)(r.Fragment,{children:(0,ae.jsx)(b.Ay,{item:!0,xs:12,children:(0,ae.jsxs)(V.A,{sx:{opacity:0==e.shiftstatus?"":"0.7"},children:[(0,ae.jsxs)(u.A,{direction:{xs:"column",md:"row"},justifyContent:"space-between",alignItems:{md:"center",xs:"flex-start"},spacing:2,sx:{p:2},children:[(0,ae.jsxs)(u.A,{direction:{xs:"column",md:"row"},spacing:2,alignItems:{md:"center",xs:"flex-start"},children:[(0,ae.jsxs)(C.A,{variant:"h5",children:["Shift ",s+1]}),(0,ae.jsxs)(C.A,{color:"secondary",children:[(0,ae.jsx)(c.A,{})," ","",e.locationaddress]}),1===e.shiftstatus&&(0,ae.jsx)(v.A,{label:"Cancelled",color:"secondary"})]}),(0,ae.jsx)(u.A,{direction:"row",spacing:1,children:e.ordercontacts.map((e=>(0,ae.jsx)(ae.Fragment,{children:(0,ae.jsx)(T.A,{title:e.contactname,children:(0,ae.jsx)(f.A,{sx:{bgcolor:"#2196f3",width:30,height:30},alt:"A",children:e.contactname.charAt(0).toUpperCase()})})})))})]}),gs?(0,ae.jsxs)(se.nV,{children:[0===e.orderdetails.length&&(0,ae.jsxs)(se.pg,{accent:"#662582",children:[(0,ae.jsx)(L.A,{animation:"wave"}),(0,ae.jsx)(L.A,{animation:"wave"}),(0,ae.jsx)(L.A,{animation:"wave"})]}),e.orderdetails.map(((e,n)=>(0,ae.jsxs)(se.pg,{accent:"#662582",sx:{opacity:0==e.status?"":"0.7"},children:[(0,ae.jsxs)(u.A,{direction:"row",justifyContent:"space-between",alignItems:"flex-start",spacing:1,children:[(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsxs)(C.A,{sx:{fontSize:10,fontWeight:800,color:"#94a3b8"},children:["#",n+1]}),(0,ae.jsx)(C.A,{variant:"subtitle1",children:e.productname})]}),(0,ae.jsxs)(u.A,{direction:"row",alignItems:"center",children:[(0,ae.jsx)(T.A,{title:"Expand",children:(0,ae.jsx)(H.A,{"aria-label":"expand row",style:{color:ms.palette.primary.main},onClick:()=>{Ue([]),ds(cs[0]===s&&cs[1]===n?["",""]:[s,n]),fs(e.orderdetailid)},children:cs[0]===s&&cs[1]===n?(0,ae.jsx)(h.A,{}):(0,ae.jsx)(A.A,{})})}),"cancelled"===Ye&&(0,ae.jsx)(H.A,{sx:{minWidth:"10px !important"},disabled:!0,children:(0,ae.jsx)(d.A,{})}),1===e.status&&(0,ae.jsx)(T.A,{title:"Cancelled",children:(0,ae.jsx)(H.A,{sx:{minWidth:"10px !important"},children:(0,ae.jsx)(K.A,{color:"error"})})}),e.supplyqty>e.orderqty&&(0,ae.jsx)(T.A,{title:"Assigned count is greater than ordered count",children:(0,ae.jsx)(H.A,{color:"warning",children:(0,ae.jsx)(re.A,{})})})]})]}),(0,ae.jsxs)(se.FG,{children:[(0,ae.jsx)(se.pY,{label:"Start Date",children:(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"body2",children:J()(e.starttime).format("MM/DD/YYYY")}),(0,ae.jsx)(C.A,{variant:"caption",children:J()(e.starttime).format("hh:mm A")})]})}),(0,ae.jsx)(se.pY,{label:"End Date",children:(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"body2",children:J()(e.endtime).format("MM/DD/YYYY")}),(0,ae.jsx)(C.A,{variant:"caption",children:J()(e.endtime).format("hh:mm A")})]})}),(0,ae.jsx)(se.pY,{label:"Unpaid Break",value:e.unpaidbreak||0}),(0,ae.jsx)(se.pY,{label:"Count",children:(0,ae.jsx)(v.A,{label:e.orderqty,color:"success",variant:"light",size:"small"})}),(0,ae.jsx)(se.pY,{label:"Assigned",children:(0,ae.jsx)(v.A,{label:e.supplyqty,color:0===e.supplyqty?"error":"warning",variant:"light",size:"small"})}),(0,ae.jsx)(se.pY,{label:"Price",value:"$".concat(e.price)}),(0,ae.jsx)(se.pY,{label:"Amount",value:"$".concat(e.landingamount)})]}),(0,ae.jsxs)(B.A,{in:cs[0]===s&&cs[1]===n,timeout:"auto",unmountOnExit:!0,children:[(0,ae.jsx)($.A,{sx:{my:1.5}}),0===Ne.length?i?(0,ae.jsx)(u.A,{alignItems:"center",children:(0,ae.jsx)(I.A,{})}):(0,ae.jsx)(u.A,{sx:{p:1},children:(0,ae.jsx)(C.A,{children:"No Staffs has been Assigned"})}):(0,ae.jsx)(u.A,{spacing:1,children:Ne.map(((e,s)=>(0,ae.jsxs)(se.pg,{accent:"#0ea5e9",children:[(0,ae.jsxs)(u.A,{direction:"row",justifyContent:"space-between",alignItems:"flex-start",children:[(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"subtitle2",children:e.staffname}),(0,ae.jsx)(b.Ay,{children:(0,ae.jsx)(v.A,{label:e.productname,color:"info",variant:"light",size:"small"})})]}),(0,ae.jsxs)(u.A,{direction:"row",children:["pending"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Pending",color:"error",size:"small"}),"cancelled"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Cancelled",color:"secondary",size:"small"}),"completed"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Completed",color:"primary",size:"small"}),"processing"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Processing",color:"primary",size:"small"}),"assigned"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Assigned",color:"warning",size:"small"}),"confirmed"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Confirmed",color:"success",size:"small"}),"active"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Active",color:"info",size:"small"}),"closed"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Closed",color:"info",size:"small"})]})]}),(0,ae.jsxs)(se.FG,{children:[(0,ae.jsx)(se.pY,{label:"Start Time",children:(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"body2",children:J()(e.Starttime).format("MM/DD/YYYY")}),(0,ae.jsx)(C.A,{variant:"caption",children:J()(e.Starttime).format("hh:mm A")})]})}),(0,ae.jsx)(se.pY,{label:"End Time",children:(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"body2",children:J()(e.Endtime).format("MM/DD/YYYY")}),(0,ae.jsx)(C.A,{variant:"caption",children:J()(e.Endtime).format("hh:mm A")})]})}),(0,ae.jsx)(se.pY,{label:"Pay Rate",value:e.rolecost}),(0,ae.jsx)(se.pY,{label:"Hours Worked",value:e.hoursworked}),(0,ae.jsx)(se.pY,{label:"Clockin",children:(0,ae.jsxs)(u.A,{spacing:.5,alignItems:"flex-start",children:[(0,ae.jsx)(v.A,{label:e.clockin?J()(e.clockin).format("MM/DD/YYYY"):"",color:"primary",variant:"light",size:"small"}),(0,ae.jsx)(v.A,{label:e.clockin?J()(e.clockin).format("hh:mm A"):"",color:"info",variant:"light",size:"small"})]})}),(0,ae.jsx)(se.pY,{label:"Clockout",children:(0,ae.jsxs)(u.A,{spacing:.5,alignItems:"flex-start",children:[(0,ae.jsx)(v.A,{label:e.clockout?J()(e.clockout).format("MM/DD/YYYY"):"",color:"primary",variant:"light",size:"small"}),(0,ae.jsx)(v.A,{label:e.clockout?J()(e.clockout).format("hh:mm A"):"",color:"info",variant:"light",size:"small"})]})})]})]},s)))})]})]},n+1)))]}):(0,ae.jsx)(E.A,{children:(0,ae.jsxs)(O.A,{children:[(0,ae.jsx)(P.A,{children:(0,ae.jsxs)(W.A,{children:[(0,ae.jsx)(_.A,{children:"#"}),(0,ae.jsx)(_.A,{children:"Role"}),(0,ae.jsx)(_.A,{children:"Start Date"}),(0,ae.jsx)(_.A,{children:"End Date"}),(0,ae.jsx)(_.A,{children:"Unpaid break"}),(0,ae.jsx)(_.A,{children:"Count"}),(0,ae.jsx)(_.A,{children:"Assigned"}),(0,ae.jsx)(_.A,{children:"Attire"}),(0,ae.jsx)(_.A,{children:"Price"}),(0,ae.jsx)(_.A,{children:"Amount"}),(0,ae.jsx)(_.A,{children:"Action"})]})}),(0,ae.jsxs)(R.A,{children:[0===e.orderdetails.length&&(0,ae.jsx)(ae.Fragment,{children:(0,ae.jsxs)(W.A,{children:[(0,ae.jsx)(_.A,{children:(0,ae.jsx)(L.A,{animation:"wave"})}),(0,ae.jsx)(_.A,{children:(0,ae.jsx)(L.A,{animation:"wave"})}),(0,ae.jsxs)(_.A,{children:[(0,ae.jsx)(L.A,{animation:"wave"}),(0,ae.jsx)(L.A,{animation:"wave"})]}),(0,ae.jsxs)(_.A,{children:[(0,ae.jsx)(L.A,{animation:"wave"}),(0,ae.jsx)(L.A,{animation:"wave"})]}),(0,ae.jsx)(_.A,{children:(0,ae.jsx)(L.A,{animation:"wave"})}),(0,ae.jsx)(_.A,{children:(0,ae.jsx)(L.A,{animation:"wave"})}),(0,ae.jsx)(_.A,{children:(0,ae.jsx)(L.A,{animation:"wave"})}),(0,ae.jsx)(_.A,{children:(0,ae.jsx)(L.A,{animation:"wave"})}),(0,ae.jsx)(_.A,{children:(0,ae.jsx)(L.A,{animation:"wave"})}),(0,ae.jsx)(_.A,{children:(0,ae.jsx)(L.A,{animation:"wave"})}),(0,ae.jsx)(_.A,{children:(0,ae.jsx)(L.A,{animation:"wave"})})]})}),e.orderdetails.map(((e,n)=>(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsxs)(W.A,{sx:{"&:last-child td, &:last-child th":{border:0},opacity:0==e.status?"":"0.7"},children:[(0,ae.jsx)(_.A,{children:n+1}),(0,ae.jsx)(_.A,{children:e.productname}),(0,ae.jsx)(_.A,{children:(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"body1",children:J()(e.starttime).format("MM/DD/YYYY")}),(0,ae.jsx)(C.A,{variant:"body2",children:J()(e.starttime).format("hh:mm A")})]})}),(0,ae.jsxs)(_.A,{children:[" ",(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"body1",children:J()(e.endtime).format("MM/DD/YYYY")}),(0,ae.jsx)(C.A,{variant:"body2",children:J()(e.endtime).format("hh:mm A")})]})]}),(0,ae.jsx)(_.A,{children:e.unpaidbreak||0}),(0,ae.jsx)(_.A,{align:"center",children:(0,ae.jsx)(v.A,{label:e.orderqty,color:"success",variant:"light",size:"small"})}),(0,ae.jsx)(_.A,{align:"center",children:(0,ae.jsx)(v.A,{label:e.supplyqty,color:0===e.supplyqty?"error":"warning",variant:"light",size:"small"})}),(0,ae.jsx)(_.A,{width:"100px"}),(0,ae.jsxs)(_.A,{children:["$",e.price]}),(0,ae.jsxs)(_.A,{children:["$",e.landingamount]}),(0,ae.jsx)(_.A,{children:(0,ae.jsxs)(u.A,{direction:"row",children:[(0,ae.jsx)(T.A,{title:"Expand",children:(0,ae.jsx)(H.A,{"aria-label":"expand row",style:{color:ms.palette.primary.main},onClick:()=>{Ue([]),ds(cs[0]===s&&cs[1]===n?["",""]:[s,n]),fs(e.orderdetailid)},children:cs[0]===s&&cs[1]===n?(0,ae.jsx)(h.A,{}):(0,ae.jsx)(A.A,{})})}),"cancelled"===Ye&&(0,ae.jsx)(ae.Fragment,{children:(0,ae.jsx)(H.A,{sx:{minWidth:"10px !important"},disabled:!0,children:(0,ae.jsx)(d.A,{})})}),1===e.status&&(0,ae.jsx)(T.A,{title:"Cancelled",children:(0,ae.jsx)(H.A,{sx:{minWidth:"10px !important"},children:(0,ae.jsx)(K.A,{color:"error"})})}),e.supplyqty>e.orderqty&&(0,ae.jsx)(T.A,{title:"Assigned count is greater than ordered count",children:(0,ae.jsx)(H.A,{color:"warning",children:(0,ae.jsx)(re.A,{})})})]})})]},n+1),(0,ae.jsx)(W.A,{sx:{p:2},children:(0,ae.jsx)(_.A,{style:{paddingBottom:0,paddingTop:0,paddingLeft:0,paddingRight:0},colSpan:11,sx:{width:"100%"},children:(0,ae.jsx)(B.A,{in:cs[0]===s&&cs[1]===n,timeout:"auto",unmountOnExit:!0,children:(0,ae.jsx)(V.A,{sx:{width:"100%"},children:0===Ne.length?(0,ae.jsx)(ae.Fragment,{children:i?(0,ae.jsx)(ae.Fragment,{children:(0,ae.jsx)(u.A,{alignItems:"center",children:(0,ae.jsx)(I.A,{})})}):(0,ae.jsx)(ae.Fragment,{children:(0,ae.jsx)(u.A,{sx:{p:1},children:(0,ae.jsx)(C.A,{children:"No Staffs has been Assigned"})})})}):(0,ae.jsx)(E.A,{children:(0,ae.jsxs)(O.A,{children:[(0,ae.jsx)(P.A,{children:(0,ae.jsxs)(W.A,{children:[(0,ae.jsx)(_.A,{children:"#"}),(0,ae.jsx)(_.A,{children:"Staff"}),(0,ae.jsx)(_.A,{children:"Start Time"}),(0,ae.jsx)(_.A,{children:"End Time"}),(0,ae.jsx)(_.A,{children:"Pay Rate"}),(0,ae.jsx)(_.A,{align:"center",children:"Clockin"}),(0,ae.jsx)(_.A,{align:"center",children:"Clockout"}),(0,ae.jsx)(_.A,{children:"Hours Worked"}),(0,ae.jsx)(_.A,{children:"Status"})]})}),(0,ae.jsx)(R.A,{children:Ne.map(((e,s)=>(0,ae.jsx)(r.Fragment,{children:(0,ae.jsxs)(W.A,{sx:{},children:[(0,ae.jsx)(_.A,{component:"th",scope:"row",padding:"none",children:s+1}),(0,ae.jsx)(_.A,{align:"left",children:(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"caption",children:e.staffname}),(0,ae.jsx)(b.Ay,{children:(0,ae.jsx)(v.A,{label:e.productname,color:"info",variant:"light",size:"small"})})]})}),(0,ae.jsx)(_.A,{children:(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"body2",children:J()(e.Starttime).format("MM/DD/YYYY")}),(0,ae.jsx)(C.A,{variant:"caption",children:J()(e.Starttime).format("hh:mm A")})]})}),(0,ae.jsx)(_.A,{children:(0,ae.jsxs)(u.A,{direction:"column",children:[(0,ae.jsx)(C.A,{variant:"body2",children:J()(e.Endtime).format("MM/DD/YYYY")}),(0,ae.jsx)(C.A,{variant:"caption",children:J()(e.Endtime).format("hh:mm A")})]})}),(0,ae.jsx)(_.A,{children:e.rolecost}),(0,ae.jsx)(_.A,{children:(0,ae.jsxs)(u.A,{spacing:.5,alignItems:"center",children:[(0,ae.jsx)(v.A,{label:e.clockin?J()(e.clockin).format("MM/DD/YYYY"):"",color:"primary",variant:"light",size:"small"}),(0,ae.jsx)(v.A,{label:e.clockin?J()(e.clockin).format("hh:mm A"):"",color:"info",variant:"light",size:"small"})]})}),(0,ae.jsx)(_.A,{children:(0,ae.jsxs)(u.A,{spacing:.5,alignItems:"center",children:[(0,ae.jsx)(v.A,{label:e.clockout?J()(e.clockout).format("MM/DD/YYYY"):"",color:"primary",variant:"light",size:"small"}),(0,ae.jsx)(v.A,{label:e.clockout?J()(e.clockout).format("hh:mm A"):"",color:"info",variant:"light",size:"small"})]})}),(0,ae.jsx)(_.A,{children:e.hoursworked}),(0,ae.jsx)(_.A,{align:"left",children:(0,ae.jsxs)(u.A,{direction:"row",children:["pending"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Pending",color:"error",size:"small"}),"cancelled"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Cancelled",color:"secondary",size:"small"}),"completed"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Completed",color:"primary",size:"small"}),"processing"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Processing",color:"primary",size:"small"}),"assigned"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Assigned",color:"warning",size:"small"}),"confirmed"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Confirmed",color:"success",size:"small"}),"active"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Active",color:"info",size:"small"}),"closed"===e.orderstatus&&(0,ae.jsx)(v.A,{label:"Closed",color:"info",size:"small"})]})})]})},s)))})]})})})})})})]})))]})]})})]})})},e.locationaddress))),(0,ae.jsx)(b.Ay,{item:!0,xs:12,children:(0,ae.jsx)($.A,{sx:{borderWidth:1}})}),(0,ae.jsx)(b.Ay,{item:!0,xs:12,sm:6,children:(0,ae.jsx)(V.A,{title:"Order Addons",sx:{height:"100%"},children:(0,ae.jsx)(b.Ay,{container:!0,spacing:2,children:(Ee||[]).map((e=>(0,ae.jsx)(r.Fragment,{children:(0,ae.jsx)(b.Ay,{item:!0,children:(0,ae.jsx)(v.A,{icon:(0,ae.jsx)(x.A,{}),variant:"outlined",color:"error",label:e.addon})})},e.addon)))})})}),(0,ae.jsx)(b.Ay,{item:!0,xs:12,sm:6,children:(0,ae.jsx)(V.A,{title:"Total",sx:{height:"100%"},children:(0,ae.jsxs)(u.A,{spacing:2,children:[(0,ae.jsxs)(u.A,{direction:"row",justifyContent:"space-between",children:[(0,ae.jsx)(C.A,{color:ms.palette.grey[500],children:"Sub Total:"}),(0,ae.jsxs)(C.A,{children:["$",""===De?(0,ae.jsx)(L.A,{sx:{width:"30px"}}):De]})]}),(0,ae.jsxs)(u.A,{direction:"row",justifyContent:"space-between",children:[(0,ae.jsx)(C.A,{color:ms.palette.grey[500],children:"Tax:"}),(0,ae.jsx)(C.A,{children:""===ke?(0,ae.jsx)(L.A,{sx:{width:"30px"}}):ke})]}),(0,ae.jsxs)(u.A,{direction:"row",justifyContent:"space-between",children:[(0,ae.jsx)(C.A,{variant:"subtitle1",children:"Grand Total:"}),(0,ae.jsx)(C.A,{variant:"subtitle1",children:""===Ie?(0,ae.jsx)(L.A,{sx:{width:"30px"}}):"$".concat(Ie)})]})]})})}),(0,ae.jsx)(b.Ay,{item:!0,xs:12,children:(0,ae.jsxs)(u.A,{direction:"column",sx:{mt:2},children:[(0,ae.jsx)(C.A,{color:"secondary",children:"Other Instructions:"}),(0,ae.jsx)(C.A,{sx:{ml:3},children:Pe})]})})]})})})]})]})}}}]); \ No newline at end of file diff --git a/build/static/js/6270.8b8aef93.chunk.js b/build/static/js/6270.8b8aef93.chunk.js new file mode 100644 index 0000000..024beb9 --- /dev/null +++ b/build/static/js/6270.8b8aef93.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[6270],{20235:(e,r,o)=>{o.d(r,{A:()=>i,Z:()=>n});var t=o(37300),a=o(10644);function n(e){return(0,a.Ay)("MuiFormLabel",e)}const i=(0,t.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"])},29398:(e,r,o)=>{o.d(r,{A:()=>g});var t=o(84849),a=o(27326),n=o(85672),i=o(72574),l=o(25234),s=o(38009),d=o(60308),c=o(75287),u=o(16775),m=o(92694),p=o(25676),f=o(37300),A=o(10644);function h(e){return(0,A.Ay)("MuiFormControl",e)}(0,f.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var v=o(65908);const b=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],x=(0,d.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:o}=e;return(0,a.A)({},r.root,r["margin".concat((0,u.A)(o.margin))],o.fullWidth&&r.fullWidth)}})((e=>{let{ownerState:r}=e;return(0,a.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===r.margin&&{marginTop:16,marginBottom:8},"dense"===r.margin&&{marginTop:8,marginBottom:4},r.fullWidth&&{width:"100%"})})),g=n.forwardRef((function(e,r){const o=(0,s.b)({props:e,name:"MuiFormControl"}),{children:d,className:f,color:A="primary",component:g="div",disabled:w=!1,error:y=!1,focused:F,fullWidth:S=!1,hiddenLabel:k=!1,margin:q="none",required:z=!1,size:R="medium",variant:C="outlined"}=o,M=(0,t.A)(o,b),W=(0,a.A)({},o,{color:A,component:g,disabled:w,error:y,fullWidth:S,hiddenLabel:k,margin:q,required:z,size:R,variant:C}),N=(e=>{const{classes:r,margin:o,fullWidth:t}=e,a={root:["root","none"!==o&&"margin".concat((0,u.A)(o)),t&&"fullWidth"]};return(0,l.A)(a,h,r)})(W),[L,T]=n.useState((()=>{let e=!1;return d&&n.Children.forEach(d,(r=>{if(!(0,m.A)(r,["Input","Select"]))return;const o=(0,m.A)(r,["Select"])?r.props.input:r;o&&(0,c.gr)(o.props)&&(e=!0)})),e})),[P,I]=n.useState((()=>{let e=!1;return d&&n.Children.forEach(d,(r=>{(0,m.A)(r,["Input","Select"])&&((0,c.lq)(r.props,!0)||(0,c.lq)(r.props.inputProps,!0))&&(e=!0)})),e})),[j,E]=n.useState(!1);w&&j&&E(!1);const B=void 0===F||w?j:F;let H;const O=n.useMemo((()=>({adornedStart:L,setAdornedStart:T,color:A,disabled:w,error:y,filled:P,focused:B,fullWidth:S,hiddenLabel:k,size:R,onBlur:()=>{E(!1)},onEmpty:()=>{I(!1)},onFilled:()=>{I(!0)},onFocus:()=>{E(!0)},registerEffect:H,required:z,variant:C})),[L,A,w,y,P,B,S,k,H,z,R,C]);return(0,v.jsx)(p.A.Provider,{value:O,children:(0,v.jsx)(x,(0,a.A)({as:g,ownerState:W,className:(0,i.A)(N.root,f),ref:r},M,{children:d}))})}))},29882:(e,r,o)=>{o.d(r,{A:()=>y});var t=o(84849),a=o(27326),n=o(85672),i=o(25234),l=o(72574),s=o(38666),d=o(75520),c=o(35935),u=o(20235),m=o(38009),p=o(16775),f=o(60308),A=o(24270),h=o(37300),v=o(10644);function b(e){return(0,v.Ay)("MuiInputLabel",e)}(0,h.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var x=o(65908);const g=["disableAnimation","margin","shrink","variant","className"],w=(0,f.Ay)(c.A,{shouldForwardProp:e=>(0,A.A)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:o}=e;return[{["& .".concat(u.A.asterisk)]:r.asterisk},r.root,o.formControl&&r.formControl,"small"===o.size&&r.sizeSmall,o.shrink&&r.shrink,!o.disableAnimation&&r.animated,o.focused&&r.focused,r[o.variant]]}})((e=>{let{theme:r,ownerState:o}=e;return(0,a.A)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},o.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===o.size&&{transform:"translate(0, 17px) scale(1)"},o.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!o.disableAnimation&&{transition:r.transitions.create(["color","transform","max-width"],{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut})},"filled"===o.variant&&(0,a.A)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===o.size&&{transform:"translate(12px, 13px) scale(1)"},o.shrink&&(0,a.A)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===o.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===o.variant&&(0,a.A)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===o.size&&{transform:"translate(14px, 9px) scale(1)"},o.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),y=n.forwardRef((function(e,r){const o=(0,m.b)({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:c,className:u}=o,f=(0,t.A)(o,g),A=(0,d.A)();let h=c;"undefined"===typeof h&&A&&(h=A.filled||A.focused||A.adornedStart);const v=(0,s.A)({props:o,muiFormControl:A,states:["size","variant","required","focused"]}),y=(0,a.A)({},o,{disableAnimation:n,formControl:A,shrink:h,size:v.size,variant:v.variant,required:v.required,focused:v.focused}),F=(e=>{const{classes:r,formControl:o,size:t,shrink:n,disableAnimation:l,variant:s,required:d}=e,c={root:["root",o&&"formControl",!l&&"animated",n&&"shrink",t&&"normal"!==t&&"size".concat((0,p.A)(t)),s],asterisk:[d&&"asterisk"]},u=(0,i.A)(c,b,r);return(0,a.A)({},r,u)})(y);return(0,x.jsx)(w,(0,a.A)({"data-shrink":h,ownerState:y,ref:r,className:(0,l.A)(F.root,u)},f,{classes:F}))}))},35935:(e,r,o)=>{o.d(r,{A:()=>b});var t=o(84849),a=o(27326),n=o(85672),i=o(72574),l=o(25234),s=o(38666),d=o(75520),c=o(16775),u=o(38009),m=o(60308),p=o(20235),f=o(65908);const A=["children","className","color","component","disabled","error","filled","focused","required"],h=(0,m.Ay)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:o}=e;return(0,a.A)({},r.root,"secondary"===o.color&&r.colorSecondary,o.filled&&r.filled)}})((e=>{let{theme:r,ownerState:o}=e;return(0,a.A)({color:(r.vars||r).palette.text.secondary},r.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&.".concat(p.A.focused)]:{color:(r.vars||r).palette[o.color].main},["&.".concat(p.A.disabled)]:{color:(r.vars||r).palette.text.disabled},["&.".concat(p.A.error)]:{color:(r.vars||r).palette.error.main}})})),v=(0,m.Ay)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})((e=>{let{theme:r}=e;return{["&.".concat(p.A.error)]:{color:(r.vars||r).palette.error.main}}})),b=n.forwardRef((function(e,r){const o=(0,u.b)({props:e,name:"MuiFormLabel"}),{children:n,className:m,component:b="label"}=o,x=(0,t.A)(o,A),g=(0,d.A)(),w=(0,s.A)({props:o,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),y=(0,a.A)({},o,{color:w.color||"primary",component:b,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required}),F=(e=>{const{classes:r,color:o,focused:t,disabled:a,error:n,filled:i,required:s}=e,d={root:["root","color".concat((0,c.A)(o)),a&&"disabled",n&&"error",i&&"filled",t&&"focused",s&&"required"],asterisk:["asterisk",n&&"error"]};return(0,l.A)(d,p.Z,r)})(y);return(0,f.jsxs)(h,(0,a.A)({as:b,ownerState:y,className:(0,i.A)(F.root,m),ref:r},x,{children:[n,w.required&&(0,f.jsxs)(v,{ownerState:y,"aria-hidden":!0,className:F.asterisk,children:["\u2009","*"]})]}))}))},86270:(e,r,o)=>{o.d(r,{A:()=>L});var t=o(27326),a=o(84849),n=o(85672),i=o(72574),l=o(25234),s=o(16660),d=o(60308),c=o(38009),u=o(7803),m=o(56847),p=o(29776),f=o(29882),A=o(29398),h=o(38666),v=o(75520),b=o(16775),x=o(37300),g=o(10644);function w(e){return(0,g.Ay)("MuiFormHelperText",e)}const y=(0,x.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var F,S=o(65908);const k=["children","className","component","disabled","error","filled","focused","margin","required","variant"],q=(0,d.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:o}=e;return[r.root,o.size&&r["size".concat((0,b.A)(o.size))],o.contained&&r.contained,o.filled&&r.filled]}})((e=>{let{theme:r,ownerState:o}=e;return(0,t.A)({color:(r.vars||r).palette.text.secondary},r.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&.".concat(y.disabled)]:{color:(r.vars||r).palette.text.disabled},["&.".concat(y.error)]:{color:(r.vars||r).palette.error.main}},"small"===o.size&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})})),z=n.forwardRef((function(e,r){const o=(0,c.b)({props:e,name:"MuiFormHelperText"}),{children:n,className:s,component:d="p"}=o,u=(0,a.A)(o,k),m=(0,v.A)(),p=(0,h.A)({props:o,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),f=(0,t.A)({},o,{component:d,contained:"filled"===p.variant||"outlined"===p.variant,variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),A=(e=>{const{classes:r,contained:o,size:t,disabled:a,error:n,filled:i,focused:s,required:d}=e,c={root:["root",a&&"disabled",n&&"error",t&&"size".concat((0,b.A)(t)),o&&"contained",s&&"focused",i&&"filled",d&&"required"]};return(0,l.A)(c,w,r)})(f);return(0,S.jsx)(q,(0,t.A)({as:d,ownerState:f,className:(0,i.A)(A.root,s),ref:r},u,{children:" "===n?F||(F=(0,S.jsx)("span",{className:"notranslate",children:"\u200b"})):n}))}));var R=o(51422);function C(e){return(0,g.Ay)("MuiTextField",e)}(0,x.A)("MuiTextField",["root"]);const M=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],W={standard:u.A,filled:m.A,outlined:p.A},N=(0,d.Ay)(A.A,{name:"MuiTextField",slot:"Root",overridesResolver:(e,r)=>r.root})({}),L=n.forwardRef((function(e,r){const o=(0,c.b)({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:d=!1,children:u,className:m,color:p="primary",defaultValue:A,disabled:h=!1,error:v=!1,FormHelperTextProps:b,fullWidth:x=!1,helperText:g,id:w,InputLabelProps:y,inputProps:F,InputProps:k,inputRef:q,label:L,maxRows:T,minRows:P,multiline:I=!1,name:j,onBlur:E,onChange:B,onFocus:H,placeholder:O,required:_=!1,rows:V,select:D=!1,SelectProps:Z,type:G,value:J,variant:K="outlined"}=o,Q=(0,a.A)(o,M),U=(0,t.A)({},o,{autoFocus:d,color:p,disabled:h,error:v,fullWidth:x,multiline:I,required:_,select:D,variant:K}),X=(e=>{const{classes:r}=e;return(0,l.A)({root:["root"]},C,r)})(U);const Y={};"outlined"===K&&(y&&"undefined"!==typeof y.shrink&&(Y.notched=y.shrink),Y.label=L),D&&(Z&&Z.native||(Y.id=void 0),Y["aria-describedby"]=void 0);const $=(0,s.A)(w),ee=g&&$?"".concat($,"-helper-text"):void 0,re=L&&$?"".concat($,"-label"):void 0,oe=W[K],te=(0,S.jsx)(oe,(0,t.A)({"aria-describedby":ee,autoComplete:n,autoFocus:d,defaultValue:A,fullWidth:x,multiline:I,name:j,rows:V,maxRows:T,minRows:P,type:G,value:J,id:$,inputRef:q,onBlur:E,onChange:B,onFocus:H,placeholder:O,inputProps:F},Y,k));return(0,S.jsxs)(N,(0,t.A)({className:(0,i.A)(X.root,m),disabled:h,error:v,fullWidth:x,ref:r,required:_,color:p,variant:K,ownerState:U},Q,{children:[null!=L&&""!==L&&(0,S.jsx)(f.A,(0,t.A)({htmlFor:$,id:re},y,{children:L})),D?(0,S.jsx)(R.A,(0,t.A)({"aria-describedby":ee,id:$,labelId:re,value:J,input:te},Z,{children:u})):te,g&&(0,S.jsx)(z,(0,t.A)({id:ee},b,{children:g}))]}))}))}}]); \ No newline at end of file diff --git a/build/static/js/6317.9c04fccf.chunk.js b/build/static/js/6317.9c04fccf.chunk.js new file mode 100644 index 0000000..452a2a1 --- /dev/null +++ b/build/static/js/6317.9c04fccf.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[6317],{13763:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(27326),a=n(85672);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};var s=n(75890),o=function(e,t){return a.createElement(s.A,(0,r.A)({},e,{ref:t,icon:i}))};const c=a.forwardRef(o)},22686:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,a,i){var s=a.prototype;i.utc=function(e){return new a({date:e,utc:!0,args:arguments})},s.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},s.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var o=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),o.call(this,e)};var c=s.init;s.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=s.utcOffset;s.utcOffset=function(r,a){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?l.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var a=(""+r[0]).match(n)||["-",0,0],i=a[0],s=60*+a[1]+ +a[2];return 0===s?0:"+"===i?s:-s}(r),null===r))return this;var s=Math.abs(r)<=16?60*r:r,o=this;if(a)return o.$offset=s,o.$u=0===r,o;if(0!==r){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(s+c,e)).$offset=s,o.$x.$localOffset=c}else o=this.utc();return o};var u=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var d=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var h=s.diff;s.diff=function(e,t,n){if(e&&this.$u===e.$u)return h.call(this,e,t,n);var r=this.local(),a=i(e).local();return h.call(r,a,t,n)}}}()},26777:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(27326),a=n(85672);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var s=n(75890),o=function(e,t){return a.createElement(s.A,(0,r.A)({},e,{ref:t,icon:i}))};const c=a.forwardRef(o)},28579:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=n(84849),a=n(27326),i=n(85672),s=n(72574),o=n(25234),c=n(10247),l=n(42081),u=n(31529),d=n(65908);const h=(0,u.A)((0,d.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),f=(0,u.A)((0,d.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),m=(0,u.A)((0,d.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var p=n(16775),v=n(38009),b=n(60308),$=n(24270),g=n(37300),A=n(10644);function y(e){return(0,A.Ay)("MuiCheckbox",e)}const M=(0,g.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),S=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],w=(0,b.Ay)(l.A,{shouldForwardProp:e=>(0,$.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t["size".concat((0,p.A)(n.size))],"default"!==n.color&&t["color".concat((0,p.A)(n.color))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,a.A)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,c.X4)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{["&.".concat(M.checked,", &.").concat(M.indeterminate)]:{color:(t.vars||t).palette[n.color].main},["&.".concat(M.disabled)]:{color:(t.vars||t).palette.action.disabled}})})),k=(0,d.jsx)(f,{}),x=(0,d.jsx)(h,{}),D=(0,d.jsx)(m,{}),C=i.forwardRef((function(e,t){var n,c;const l=(0,v.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:u=k,color:h="primary",icon:f=x,indeterminate:m=!1,indeterminateIcon:b=D,inputProps:$,size:g="medium",className:A}=l,M=(0,r.A)(l,S),C=m?b:f,z=m?b:u,O=(0,a.A)({},l,{color:h,indeterminate:m,size:g}),P=(e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,s={root:["root",n&&"indeterminate","color".concat((0,p.A)(r)),"size".concat((0,p.A)(i))]},c=(0,o.A)(s,y,t);return(0,a.A)({},t,c)})(O);return(0,d.jsx)(w,(0,a.A)({type:"checkbox",inputProps:(0,a.A)({"data-indeterminate":m},$),icon:i.cloneElement(C,{fontSize:null!=(n=C.props.fontSize)?n:g}),checkedIcon:i.cloneElement(z,{fontSize:null!=(c=z.props.fontSize)?c:g}),ownerState:O,ref:t,className:(0,s.A)(P.root,A)},M,{classes:P}))}))},42081:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(84849),a=n(27326),i=n(85672),s=n(72574),o=n(25234),c=n(16775),l=n(60308),u=n(24270),d=n(11235),h=n(75520),f=n(61949),m=n(37300),p=n(10644);function v(e){return(0,p.Ay)("PrivateSwitchBase",e)}(0,m.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var b=n(65908);const $=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],g=(0,l.Ay)(f.A)((e=>{let{ownerState:t}=e;return(0,a.A)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),A=(0,l.Ay)("input",{shouldForwardProp:u.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),y=i.forwardRef((function(e,t){const{autoFocus:n,checked:i,checkedIcon:l,className:u,defaultChecked:f,disabled:m,disableFocusRipple:p=!1,edge:y=!1,icon:M,id:S,inputProps:w,inputRef:k,name:x,onBlur:D,onChange:C,onFocus:z,readOnly:O,required:P=!1,tabIndex:H,type:L,value:T}=e,R=(0,r.A)(e,$),[I,j]=(0,d.A)({controlled:i,default:Boolean(f),name:"SwitchBase",state:"checked"}),F=(0,h.A)();let _=m;F&&"undefined"===typeof _&&(_=F.disabled);const N="checkbox"===L||"radio"===L,Y=(0,a.A)({},e,{checked:I,disabled:_,disableFocusRipple:p,edge:y}),E=(e=>{const{classes:t,checked:n,disabled:r,edge:a}=e,i={root:["root",n&&"checked",r&&"disabled",a&&"edge".concat((0,c.A)(a))],input:["input"]};return(0,o.A)(i,v,t)})(Y);return(0,b.jsxs)(g,(0,a.A)({component:"span",className:(0,s.A)(E.root,u),centerRipple:!0,focusRipple:!p,disabled:_,tabIndex:null,role:void 0,onFocus:e=>{z&&z(e),F&&F.onFocus&&F.onFocus(e)},onBlur:e=>{D&&D(e),F&&F.onBlur&&F.onBlur(e)},ownerState:Y,ref:t},R,{children:[(0,b.jsx)(A,(0,a.A)({autoFocus:n,checked:i,defaultChecked:f,className:E.input,disabled:_,id:N?S:void 0,name:x,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;j(t),C&&C(e,t)},readOnly:O,ref:k,required:P,ownerState:Y,tabIndex:H,type:L},"checkbox"===L&&void 0===T?{}:{value:T},w)),I?l:M]}))}))},43318:(e,t,n)=>{"use strict";n.d(t,{A:()=>M});var r=n(84849),a=n(27326),i=n(85672),s=n(72574),o=n(25234),c=n(16775),l=n(2866),u=n(25676),d=n(75520),h=n(60308),f=n(37300),m=n(10644);function p(e){return(0,m.Ay)("MuiInputAdornment",e)}const v=(0,f.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var b,$=n(38009),g=n(65908);const A=["children","className","component","disablePointerEvents","disableTypography","position","variant"],y=(0,h.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["position".concat((0,c.A)(n.position))],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,a.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===n.variant&&{["&.".concat(v.positionStart,"&:not(.").concat(v.hiddenLabel,")")]:{marginTop:16}},"start"===n.position&&{marginRight:8},"end"===n.position&&{marginLeft:8},!0===n.disablePointerEvents&&{pointerEvents:"none"})})),M=i.forwardRef((function(e,t){const n=(0,$.b)({props:e,name:"MuiInputAdornment"}),{children:h,className:f,component:m="div",disablePointerEvents:v=!1,disableTypography:M=!1,position:S,variant:w}=n,k=(0,r.A)(n,A),x=(0,d.A)()||{};let D=w;w&&x.variant,x&&!D&&(D=x.variant);const C=(0,a.A)({},n,{hiddenLabel:x.hiddenLabel,size:x.size,disablePointerEvents:v,position:S,variant:D}),z=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:a,size:i,variant:s}=e,l={root:["root",n&&"disablePointerEvents",a&&"position".concat((0,c.A)(a)),s,r&&"hiddenLabel",i&&"size".concat((0,c.A)(i))]};return(0,o.A)(l,p,t)})(C);return(0,g.jsx)(u.A.Provider,{value:null,children:(0,g.jsx)(y,(0,a.A)({as:m,ownerState:C,className:(0,s.A)(z.root,f),ref:t},k,{children:"string"!==typeof h||M?(0,g.jsxs)(i.Fragment,{children:["start"===S?b||(b=(0,g.jsx)("span",{className:"notranslate",children:"\u200b"})):null,h]}):(0,g.jsx)(l.A,{color:"text.secondary",children:h})}))})}))},46077:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",a="second",i="minute",s="hour",o="day",c="week",l="month",u="quarter",d="year",h="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},b=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},$={s:b,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),a=n%60;return(t<=0?"+":"-")+b(r,2,"0")+":"+b(a,2,"0")},m:function e(t,n){if(t.date()1)return e(s[0])}else{var o=t.name;A[o]=t,a=o}return!r&&a&&(g=a),a||!r&&g},w=function(e,t){if(M(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new x(n)},k=$;k.l=S,k.i=M,k.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var x=function(){function v(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[y]=!0}var b=v.prototype;return b.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(m);if(r){var a=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},b.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},b.$utils=function(){return k},b.isValid=function(){return!(this.$d.toString()===f)},b.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},b.isAfter=function(e,t){return w(e){"use strict";var r=n(39744);t.A=void 0;var a=r(n(24956)),i=n(65908);t.A=(0,a.default)((0,i.jsx)("path",{d:"M19 6.41 17.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"}),"Clear")},83900:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var r=n(84849),a=n(27326),i=n(85672),s=n(72574),o=n(25234),c=n(75520),l=n(71392),u=n(2866),d=n(16775),h=n(60308),f=n(38009),m=n(37300),p=n(10644);function v(e){return(0,p.Ay)("MuiFormControlLabel",e)}const b=(0,m.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var $=n(38666),g=n(65908);const A=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],y=(0,h.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(b.label)]:t.label},t.root,t["labelPlacement".concat((0,d.A)(n.labelPlacement))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,a.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&.".concat(b.disabled)]:{cursor:"default"}},"start"===n.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===n.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===n.labelPlacement&&{flexDirection:"column",marginLeft:16},{["& .".concat(b.label)]:{["&.".concat(b.disabled)]:{color:(t.vars||t).palette.text.disabled}}})})),M=(0,h.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{["&.".concat(b.error)]:{color:(t.vars||t).palette.error.main}}})),S=i.forwardRef((function(e,t){var n,h;const m=(0,f.b)({props:e,name:"MuiFormControlLabel"}),{className:p,componentsProps:b={},control:S,disabled:w,disableTypography:k,label:x,labelPlacement:D="end",required:C,slotProps:z={}}=m,O=(0,r.A)(m,A),P=(0,c.A)(),H=null!=(n=null!=w?w:S.props.disabled)?n:null==P?void 0:P.disabled,L=null!=C?C:S.props.required,T={disabled:H,required:L};["checked","name","onChange","value","inputRef"].forEach((e=>{"undefined"===typeof S.props[e]&&"undefined"!==typeof m[e]&&(T[e]=m[e])}));const R=(0,$.A)({props:m,muiFormControl:P,states:["error"]}),I=(0,a.A)({},m,{disabled:H,labelPlacement:D,required:L,error:R.error}),j=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:a,required:i}=e,s={root:["root",n&&"disabled","labelPlacement".concat((0,d.A)(r)),a&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",a&&"error"]};return(0,o.A)(s,v,t)})(I),F=null!=(h=z.typography)?h:b.typography;let _=x;return null==_||_.type===u.A||k||(_=(0,g.jsx)(u.A,(0,a.A)({component:"span"},F,{className:(0,s.A)(j.label,null==F?void 0:F.className),children:_}))),(0,g.jsxs)(y,(0,a.A)({className:(0,s.A)(j.root,p),ownerState:I,ref:t},O,{children:[i.cloneElement(S,T),L?(0,g.jsxs)(l.A,{display:"block",children:[_,(0,g.jsxs)(M,{ownerState:I,"aria-hidden":!0,className:j.asterisk,children:["\u2009","*"]})]}):_]}))}))},88664:(e,t,n)=>{"use strict";var r=n(39744);t.A=void 0;var a=r(n(24956)),i=n(65908);t.A=(0,a.default)((0,i.jsx)("path",{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7.94-7.94H23v-2zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7"}),"MyLocation")},96048:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(27326),a=n(85672);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};var s=n(75890),o=function(e,t){return a.createElement(s.A,(0,r.A)({},e,{ref:t,icon:i}))};const c=a.forwardRef(o)}}]); \ No newline at end of file diff --git a/build/static/js/6321.e0290628.chunk.js b/build/static/js/6321.e0290628.chunk.js deleted file mode 100644 index fcc8753..0000000 --- a/build/static/js/6321.e0290628.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 6321.e0290628.chunk.js.LICENSE.txt */ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[6321],{464:(t,e,i)=>{"use strict";i.d(e,{T7:()=>m,Nq:()=>f,wk:()=>g,Lt:()=>v,X3:()=>y});var n=i(9950),o=i(17119),s=i(3388);function r(t){function e(e,i){const{instance:o,context:r}=t(e).current;return(0,n.useImperativeHandle)(i,(()=>o)),null==e.children?null:n.createElement(s.hL,{value:r},e.children)}return(0,n.forwardRef)(e)}function a(t){function e(e,i){const{instance:o}=t(e).current;return(0,n.useImperativeHandle)(i,(()=>o)),null}return(0,n.forwardRef)(e)}var h=i(69995);function l(t,e){const i=(0,n.useRef)(e);(0,n.useEffect)((function(){e!==i.current&&null!=t.attributionControl&&(null!=i.current&&t.attributionControl.removeAttribution(i.current),null!=e&&t.attributionControl.addAttribution(e)),i.current=e}),[t,e])}function u(t,e){const i=(0,n.useRef)();(0,n.useEffect)((function(){return null!=e&&t.instance.on(e),i.current=e,function(){null!=i.current&&t.instance.off(i.current),i.current=null}}),[t,e])}var c=i(59781);function d(t,e){(0,n.useEffect)((function(){var i;return(null!==(i=e.layerContainer)&&void 0!==i?i:e.map).addLayer(t.instance),function(){var i;null===(i=e.layerContainer)||void 0===i||i.removeLayer(t.instance),e.map.removeLayer(t.instance)}}),[e,t])}function _(t){return function(e){const i=(0,s.U$)(),n=t((0,c.P)(e,i),i);return l(i.map,e.attribution),u(n.current,e.eventHandlers),d(n.current,i),n}}function p(t){return function(e){const i=(0,s.U$)(),o=t((0,c.P)(e,i),i);return u(o.current,e.eventHandlers),d(o.current,i),function(t,e){const i=(0,n.useRef)();(0,n.useEffect)((function(){if(e.pathOptions!==i.current){var n;const o=null!==(n=e.pathOptions)&&void 0!==n?n:{};t.instance.setStyle(o),i.current=o}}),[t,e])}(o.current,e),o}}function m(t){const e=function(t){return function(e){const i=(0,s.U$)(),o=t(e,i),{instance:r}=o.current,a=(0,n.useRef)(e.position),{position:h}=e;return(0,n.useEffect)((function(){return r.addTo(i.map),function(){r.remove()}}),[i.map,r]),(0,n.useEffect)((function(){null!=h&&h!==a.current&&(r.setPosition(h),a.current=h)}),[r,h]),o}}((0,h.K)((function(e,i){return(0,h.Q)(t(e),i)})));return a(e)}function f(t,e){return r(_((0,h.K)(t,e)))}function g(t,e){const i=function(t,e){return function(i,n){const o=(0,s.U$)(),r=t((0,c.P)(i,o),o);return l(o.map,i.attribution),u(r.current,i.eventHandlers),e(r.current,o,i,n),r}}((0,h.K)(t),e);return function(t){function e(e,i){const[s,r]=(0,n.useState)(!1),{instance:a}=t(e,r).current;(0,n.useImperativeHandle)(i,(()=>a)),(0,n.useEffect)((function(){s&&a.update()}),[a,s,e.children]);const h=a._contentNode;return h?(0,o.createPortal)(e.children,h):null}return(0,n.forwardRef)(e)}(i)}function v(t,e){return r(p((0,h.K)(t,e)))}function y(t,e){return a(_((0,h.K)(t,e)))}},2527:function(t,e){!function(t){"use strict";var e="1.9.4";function i(t){var e,i,n,o;for(i=1,n=arguments.length;i0?Math.floor(t):Math.ceil(t)};function I(t,e,i){return t instanceof A?t:g(t)?new A(t[0],t[1]):void 0===t||null===t?t:"object"===typeof t&&"x"in t&&"y"in t?new A(t.x,t.y):new A(t,e,i)}function B(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=R(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>=e.x&&n.x<=i.x,r=o.y>=e.y&&n.y<=i.y;return s&&r},overlaps:function(t){t=R(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>e.x&&n.xe.y&&n.y=n.lat&&i.lat<=o.lat&&e.lng>=n.lng&&i.lng<=o.lng},intersects:function(t){t=D(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=e.lat&&n.lat<=i.lat,r=o.lng>=e.lng&&n.lng<=i.lng;return s&&r},overlaps:function(t){t=D(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>e.lat&&n.late.lng&&n.lng1,Ct=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",l,e),window.removeEventListener("testPassiveEventSupport",l,e)}catch(i){}return t}(),St=!!document.createElement("canvas").getContext,kt=!(!document.createElementNS||!X("svg").createSVGRect),Zt=!!kt&&function(){var t=document.createElement("div");return t.innerHTML="","http://www.w3.org/2000/svg"===(t.firstChild&&t.firstChild.namespaceURI)}(),Et=!kt&&function(){try{var t=document.createElement("div");t.innerHTML='';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"===typeof e.adj}catch(i){return!1}}(),At=0===navigator.platform.indexOf("Mac"),Ot=0===navigator.platform.indexOf("Linux");function It(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Bt={ie:Q,ielt9:tt,edge:et,webkit:it,android:nt,android23:ot,androidStock:rt,opera:at,chrome:ht,gecko:lt,safari:ut,phantom:ct,opera12:dt,win:_t,ie3d:pt,webkit3d:mt,gecko3d:ft,any3d:gt,mobile:vt,mobileWebkit:yt,mobileWebkit3d:xt,msPointer:wt,pointer:bt,touch:Lt,touchNative:Pt,mobileOpera:Tt,mobileGecko:Mt,retina:zt,passiveEvents:Ct,canvas:St,svg:kt,vml:Et,inlineSvg:Zt,mac:At,linux:Ot},Rt=Bt.msPointer?"MSPointerDown":"pointerdown",Nt=Bt.msPointer?"MSPointerMove":"pointermove",Dt=Bt.msPointer?"MSPointerUp":"pointerup",jt=Bt.msPointer?"MSPointerCancel":"pointercancel",Ht={touchstart:Rt,touchmove:Nt,touchend:Dt,touchcancel:jt},Wt={touchstart:$t,touchmove:Jt,touchend:Jt,touchcancel:Jt},Ft={},Ut=!1;function Vt(t,e,i){return"touchstart"===e&&Xt(),Wt[e]?(i=Wt[e].bind(this,i),t.addEventListener(Ht[e],i,!1),i):(console.warn("wrong event specified:",e),l)}function qt(t,e,i){Ht[e]?t.removeEventListener(Ht[e],i,!1):console.warn("wrong event specified:",e)}function Gt(t){Ft[t.pointerId]=t}function Kt(t){Ft[t.pointerId]&&(Ft[t.pointerId]=t)}function Yt(t){delete Ft[t.pointerId]}function Xt(){Ut||(document.addEventListener(Rt,Gt,!0),document.addEventListener(Nt,Kt,!0),document.addEventListener(Dt,Yt,!0),document.addEventListener(jt,Yt,!0),Ut=!0)}function Jt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var i in e.touches=[],Ft)e.touches.push(Ft[i]);e.changedTouches=[e],t(e)}}function $t(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Ge(e),Jt(t,e)}function Qt(t){var e,i,n={};for(i in t)e=t[i],n[i]=e&&e.bind?e.bind(t):e;return t=n,n.type="dblclick",n.detail=2,n.isTrusted=!1,n._simulated=!0,n}var te=200;function ee(t,e){t.addEventListener("dblclick",e);var i,n=0;function o(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var o=Ye(t);if(!o.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))||o.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){var s=Date.now();s-n<=te?2===++i&&e(Qt(t)):i=1,n=s}}}else i=t.detail}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}function ie(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var ne,oe,se,re,ae,he=Te(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),le=Te(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ue="webkitTransition"===le||"OTransition"===le?le+"End":"transitionend";function ce(t){return"string"===typeof t?document.getElementById(t):t}function de(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||"auto"===i)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return"auto"===i?null:i}function _e(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function pe(t){var e=t.parentNode;e&&e.removeChild(t)}function me(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function fe(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ge(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ve(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=be(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function ye(t,e){if(void 0!==t.classList)for(var i=d(e),n=0,o=i.length;n0?2*window.devicePixelRatio:1;function $e(t){return Bt.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Je:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function Qe(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(n){return!1}return i!==t}var ti={__proto__:null,on:Re,off:De,stopPropagation:Ue,disableScrollPropagation:Ve,disableClickPropagation:qe,preventDefault:Ge,stop:Ke,getPropagationPath:Ye,getMousePosition:Xe,getWheelDelta:$e,isExternalTarget:Qe,addListener:Re,removeListener:De},ei=E.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=Ce(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=M(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=1e3*this._duration;ethis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,D(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=I((e=e||{}).paddingTopLeft||e.padding||[0,0]),n=I(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),s=this.project(t),r=this.getPixelBounds(),a=R([r.min.add(i),r.max.subtract(n)]),h=a.getSize();if(!a.contains(s)){this._enforcingBounds=!0;var l=s.subtract(a.getCenter()),u=a.extend(s).getSize().subtract(h);o.x+=l.x<0?-u.x:u.x,o.y+=l.y<0?-u.y:u.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),s=e.divideBy(2).round(),r=n.divideBy(2).round(),a=s.subtract(r);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=o(this._handleGeolocationResponse,this),n=o(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,i=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new j(t.coords.latitude,t.coords.longitude),i=e.toBounds(2*t.coords.accuracy),n=this._locateOptions;if(n.setView){var o=this.getBoundsZoom(i);this.setView(e,n.maxZoom?Math.min(o,n.maxZoom):o)}var s={latlng:e,bounds:i,timestamp:t.timestamp};for(var r in t.coords)"number"===typeof t.coords[r]&&(s[r]=t.coords[r]);this.fire("locationfound",s)}},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(e){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),pe(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(z(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)pe(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i=_e("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new N(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=D(t),i=I(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),a=t.getSouthEast(),h=this.getSize().subtract(i),l=R(this.project(a,n),this.project(r,n)).getSize(),u=Bt.any3d?this.options.zoomSnap:1,c=h.x/l.x,d=h.y/l.y,_=e?Math.max(c,d):Math.min(c,d);return n=this.getScaleZoom(_,n),u&&(n=Math.round(n/(u/100))*(u/100),n=e?Math.ceil(n/u)*u:Math.floor(n/u)*u),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new A(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new B(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"===typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=void 0===e?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(H(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(I(t),e)},layerPointToLatLng:function(t){var e=I(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(H(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(H(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(D(t))},distance:function(t,e){return this.options.crs.distance(H(t),H(e))},containerPointToLayerPoint:function(t){return I(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return I(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(I(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(H(t)))},mouseEventToContainerPoint:function(t){return Xe(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=ce(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Re(e,"scroll",this._onScroll,this),this._containerId=r(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Bt.any3d,ye(t,"leaflet-container"+(Bt.touch?" leaflet-touch":"")+(Bt.retina?" leaflet-retina":"")+(Bt.ielt9?" leaflet-oldie":"")+(Bt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=de(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ze(this._mapPane,new A(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ye(t.markerPane,"leaflet-zoom-hide"),ye(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){ze(this._mapPane,new A(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,i)._move(t,e)._moveEnd(o),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,n){void 0===e&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i&&i.pinch&&this.fire("zoom",i):((o||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return z(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){ze(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[r(this._container)]=this;var e=t?De:Re;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),Bt.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){z(this._resizeRequest),this._resizeRequest=M((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i,n=[],o="mouseout"===e||"mouseover"===e,s=t.target||t.srcElement,a=!1;s;){if((i=this._targets[r(s)])&&("click"===e||"preclick"===e)&&this._draggableMoved(i)){a=!0;break}if(i&&i.listens(e,!0)){if(o&&!Qe(s,t))break;if(n.push(i),o)break}if(s===this._container)break;s=s.parentNode}return n.length||a||o||!this.listens(e,!0)||(n=[this]),n},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var i=t.type;"mousedown"===i&&Ee(e),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if("click"===t.type){var o=i({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}var s=this._findEventTargets(t,e);if(n){for(var r=[],a=0;a0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=Bt.any3d?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){xe(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(i))&&(this.panBy(i,e),!0)},_createAnimProxy:function(){var t=this._proxy=_e("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=he,i=this._proxy.style[e];Me(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),i===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){pe(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Me(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==i.animate&&!this.getSize().contains(o))&&(M((function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)}),this),!0)},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,ye(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&xe(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function ni(t,e){return new ii(t,e)}var oi=S.extend({options:{position:"topright"},initialize:function(t){_(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return ye(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(pe(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),si=function(t){return new oi(t)};ii.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=_e("div",e+"control-container",this._container);function n(n,o){var s=e+n+" "+e+o;t[n+o]=_e("div",s,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)pe(this._controlCorners[t]);pe(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ri=oi.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(r(t.target)),i=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e,i=document.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers_"+r(this),n),this._layerControlInputs.push(e),e.layerId=r(t.layer),Re(e,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var s=document.createElement("span");return i.appendChild(s),s.appendChild(e),s.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var t,e,i=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var s=i.length-1;s>=0;s--)t=i[s],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||o.push(e);for(s=0;s=0;o--)t=i[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&ne.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,Re(t,"click",Ge),this.expand();var e=this;setTimeout((function(){De(t,"click",Ge),e._preventClick=!1}))}}),ai=function(t,e,i){return new ri(t,e,i)},hi=oi.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=_e("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,o){var s=_e("a",i,n);return s.innerHTML=t,s.href="#",s.title=e,s.setAttribute("role","button"),s.setAttribute("aria-label",e),qe(s),Re(s,"click",Ke),Re(s,"click",o,this),Re(s,"click",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";xe(this._zoomInButton,e),xe(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(ye(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(ye(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});ii.mergeOptions({zoomControl:!0}),ii.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new hi,this.addControl(this.zoomControl))}));var li=function(t){return new hi(t)},ui=oi.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=_e("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=_e("div",e,i)),t.imperial&&(this._iScale=_e("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e,i,n,o=3.2808399*t;o>5280?(e=o/5280,i=this._getRoundNum(e),this._updateScale(this._iScale,i+" mi",i/e)):(n=this._getRoundNum(o),this._updateScale(this._iScale,n+" ft",n/o))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return e*(i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1)}}),ci=function(t){return new ui(t)},di='',_i=oi.extend({options:{position:"bottomright",prefix:''+(Bt.inlineSvg?di+" ":"")+"Leaflet"},initialize:function(t){_(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=_e("div","leaflet-control-attribution"),qe(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(' ')}}});ii.mergeOptions({attributionControl:!0}),ii.addInitHook((function(){this.options.attributionControl&&(new _i).addTo(this)}));var pi=function(t){return new _i(t)};oi.Layers=ri,oi.Zoom=hi,oi.Scale=ui,oi.Attribution=_i,si.layers=ai,si.zoom=li,si.scale=ci,si.attribution=pi;var mi=S.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});mi.addTo=function(t,e){return t.addHandler(e,this),this};var fi={Events:Z},gi=Bt.touch?"touchstart mousedown":"mousedown",vi=E.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){_(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(Re(this._dragStartTarget,gi,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(vi._dragging===this&&this.finishDrag(!0),De(this._dragStartTarget,gi,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!ve(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)vi._dragging===this&&this.finishDrag();else if(!(vi._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches)&&(vi._dragging=this,this._preventOutline&&Ee(this._element),ke(),ne(),!this._moving)){this.fire("down");var e=t.touches?t.touches[0]:t,i=Oe(this._element);this._startPoint=new A(e.clientX,e.clientY),this._startPos=Ce(this._element),this._parentScale=Ie(i);var n="mousedown"===t.type;Re(document,n?"mousemove":"touchmove",this._onMove,this),Re(document,n?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,i=new A(e.clientX,e.clientY)._subtract(this._startPoint);(i.x||i.y)&&(Math.abs(i.x)+Math.abs(i.y)h&&(s=r,h=a);h>i&&(e[s]=1,Ci(t,e,i,n,s),Ci(t,e,i,s,o))}function Si(t,e){for(var i=[t[0]],n=1,o=0,s=t.length;ne&&(i.push(t[n]),o=n);return oe.max.x&&(i|=2),t.ye.max.y&&(i|=8),i}function Ai(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function Oi(t,e,i,n){var o,s=e.x,r=e.y,a=i.x-s,h=i.y-r,l=a*a+h*h;return l>0&&((o=((t.x-s)*a+(t.y-r)*h)/l)>1?(s=i.x,r=i.y):o>0&&(s+=a*o,r+=h*o)),a=t.x-s,h=t.y-r,n?a*a+h*h:new A(s,r)}function Ii(t){return!g(t[0])||"object"!==typeof t[0][0]&&"undefined"!==typeof t[0][0]}function Bi(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Ii(t)}function Ri(t,e){var i,n,o,s,r,a,h,l;if(!t||0===t.length)throw new Error("latlngs not passed");Ii(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var u=H([0,0]),c=D(t);c.getNorthWest().distanceTo(c.getSouthWest())*c.getNorthEast().distanceTo(c.getNorthWest())<1700&&(u=wi(t));var d=t.length,_=[];for(i=0;in){h=(s-n)/o,l=[a.x-h*(a.x-r.x),a.y-h*(a.y-r.y)];break}var m=e.unproject(I(l));return H([m.lat+u.lat,m.lng+u.lng])}var Ni={__proto__:null,simplify:Li,pointToSegmentDistance:Ti,closestPointOnSegment:Mi,clipSegment:ki,_getEdgeIntersection:Zi,_getBitCode:Ei,_sqClosestPointOnSegment:Oi,isFlat:Ii,_flat:Bi,polylineCenter:Ri},Di={project:function(t){return new A(t.lng,t.lat)},unproject:function(t){return new j(t.y,t.x)},bounds:new B([-180,-90],[180,90])},ji={R:6378137,R_MINOR:6356752.314245179,bounds:new B([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,s=Math.sqrt(1-o*o),r=s*Math.sin(n),a=Math.tan(Math.PI/4-n/2)/Math.pow((1-r)/(1+r),s/2);return n=-i*Math.log(Math.max(a,1e-10)),new A(t.lng*e*i,n)},unproject:function(t){for(var e,i=180/Math.PI,n=this.R,o=this.R_MINOR/n,s=Math.sqrt(1-o*o),r=Math.exp(-t.y/n),a=Math.PI/2-2*Math.atan(r),h=0,l=.1;h<15&&Math.abs(l)>1e-7;h++)e=s*Math.sin(a),e=Math.pow((1-e)/(1+e),s/2),a+=l=Math.PI/2-2*Math.atan(r*e)-a;return new j(a*i,t.x*i/n)}},Hi={__proto__:null,LonLat:Di,Mercator:ji,SphericalMercator:V},Wi=i({},F,{code:"EPSG:3395",projection:ji,transformation:function(){var t=.5/(Math.PI*ji.R);return G(t,.5,-t,.5)}()}),Fi=i({},F,{code:"EPSG:4326",projection:Di,transformation:G(1/180,1,-1/180,.5)}),Ui=i({},W,{projection:Di,transformation:G(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});W.Earth=F,W.EPSG3395=Wi,W.EPSG3857=K,W.EPSG900913=Y,W.EPSG4326=Fi,W.Simple=Ui;var Vi=E.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[r(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[r(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",(function(){e.off(i,this)}),this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});ii.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=r(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=r(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return r(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){for(var e=0,i=(t=t?g(t)?t:[t]:[]).length;ethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()=2&&e[0]instanceof j&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){hn.prototype._setLatLngs.call(this,t),Ii(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Ii(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new A(e,e);if(t=new B(t.min.subtract(i),t.max.add(i)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,o=0,s=this._rings.length;ot.y!==n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(l=!l);return l||hn.prototype._containsPoint.call(this,t,!0)}});function cn(t,e){return new un(t,e)}var dn=Ki.extend({initialize:function(t,e){_(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,o=g(t)?t:t.features;if(o){for(e=0,i=o.length;e0&&o.push(o[0].slice()),o}function yn(t,e){return t.feature?i({},t.feature,{geometry:e}):xn(e)}function xn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var wn={toGeoJSON:function(t){return yn(this,{type:"Point",coordinates:gn(this.getLatLng(),t)})}};function bn(t,e){return new dn(t,e)}tn.include(wn),rn.include(wn),on.include(wn),hn.include({toGeoJSON:function(t){var e=!Ii(this._latlngs);return yn(this,{type:(e?"Multi":"")+"LineString",coordinates:vn(this._latlngs,e?1:0,!1,t)})}}),un.include({toGeoJSON:function(t){var e=!Ii(this._latlngs),i=e&&!Ii(this._latlngs[0]),n=vn(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),yn(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),qi.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(i){e.push(i.toGeoJSON(t).geometry.coordinates)})),yn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var i="GeometryCollection"===e,n=[];return this.eachLayer((function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(i)n.push(o.geometry);else{var s=xn(o);"FeatureCollection"===s.type?n.push.apply(n,s.features):n.push(s)}}})),i?yn(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var Pn=bn,Ln=Vi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=D(e),_(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ye(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){pe(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&fe(this._image),this},bringToBack:function(){return this._map&&ge(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=D(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:_e("img");ye(e,"leaflet-image-layer"),this._zoomAnimated&&ye(e,"leaflet-zoom-animated"),this.options.className&&ye(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onload=o(this.fire,this,"load"),e.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Me(this._image,i,e)},_reset:function(){var t=this._image,e=new B(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();ze(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){Pe(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Tn=function(t,e,i){return new Ln(t,e,i)},Mn=Ln.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:_e("video");if(ye(e,"leaflet-image-layer"),this._zoomAnimated&&ye(e,"leaflet-zoom-animated"),this.options.className&&ye(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onloadeddata=o(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],s=0;s0?n:[e.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var r=0;ro?(e.height=o+"px",ye(t,s)):xe(t,s),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();ze(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(de(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,o=new A(this._containerLeft,-i-this._containerBottom);o._add(Ce(this._container));var s=t.layerPointToContainerPoint(o),r=I(this.options.autoPanPadding),a=I(this.options.autoPanPaddingTopLeft||r),h=I(this.options.autoPanPaddingBottomRight||r),l=t.getSize(),u=0,c=0;s.x+n+h.x>l.x&&(u=s.x+n-l.x+h.x),s.x-u-a.x<0&&(u=s.x-a.x),s.y+i+h.y>l.y&&(c=s.y+i-l.y+h.y),s.y-c-a.y<0&&(c=s.y-a.y),(u||c)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([u,c]))}},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),En=function(t,e){return new Zn(t,e)};ii.mergeOptions({closePopupOnClick:!0}),ii.include({openPopup:function(t,e,i){return this._initOverlay(Zn,t,e,i).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),Vi.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Zn,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Ki||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){Ke(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof nn?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var An=kn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){kn.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){kn.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=kn.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=_e("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+r(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,o=this._container,s=n.latLngToContainerPoint(n.getCenter()),r=n.layerPointToContainerPoint(t),a=this.options.direction,h=o.offsetWidth,l=o.offsetHeight,u=I(this.options.offset),c=this._getAnchor();"top"===a?(e=h/2,i=l):"bottom"===a?(e=h/2,i=0):"center"===a?(e=h/2,i=l/2):"right"===a?(e=0,i=l/2):"left"===a?(e=h,i=l/2):r.xthis.options.maxZoom||in&&this._retainParent(o,s,r,n))},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*e;s<2*e+2;s++){var r=new A(o,s);r.z=i+1;var a=this._tileCoordsToKey(r),h=this._tiles[a];h&&h.active?h.retain=!0:(h&&h.loaded&&(h.retain=!0),i+1this.options.maxZoom||void 0!==this.options.minZoom&&o1)this._setView(t,i);else{for(var c=o.min.y;c<=o.max.y;c++)for(var d=o.min.x;d<=o.max.x;d++){var _=new A(d,c);if(_.z=this._tileZoom,this._isValidTile(_)){var p=this._tiles[this._tileCoordsToKey(_)];p?p.current=!0:r.push(_)}}if(r.sort((function(t,e){return t.distanceTo(s)-e.distanceTo(s)})),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(d=0;di.max.x)||!e.wrapLat&&(t.yi.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return D(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i);return[e.unproject(n,t.z),e.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new N(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new A(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(pe(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ye(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=l,t.onmousemove=l,Bt.ielt9&&this.options.opacity<1&&Pe(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),s=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(s),this.createTile.length<2&&M(o(this._tileReady,this,t,null,s)),ze(s,i),this._tiles[n]={el:s,coords:t,current:!0},e.appendChild(s),this.fire("tileloadstart",{tile:s,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);(i=this._tiles[n])&&(i.loaded=+new Date,this._map._fadeAnimated?(Pe(i.el,0),z(this._fadeFrame),this._fadeFrame=M(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(ye(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Bt.ielt9||!this._map._fadeAnimated?M(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new A(this._wrapX?h(t.x,this._wrapX):t.x,this._wrapY?h(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new B(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Nn(t){return new Rn(t)}var Dn=Rn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=_(this,e)).detectRetina&&Bt.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"===typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return Re(i,"load",o(this._tileOnLoad,this,e,i)),Re(i,"error",o(this._tileOnError,this,e,i)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"===typeof this.options.referrerPolicy&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var e={r:Bt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e["-y"]=n}return f(this._url,i(e,this.options))},_tileOnLoad:function(t,e){Bt.ielt9?setTimeout(o(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=l,e.onerror=l,!e.complete)){e.src=y;var i=this._tiles[t].coords;pe(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",y),Rn.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(this._map&&(!i||i.getAttribute("src")!==y))return Rn.prototype._tileReady.call(this,t,e,i)}});function jn(t,e){return new Dn(t,e)}var Hn=Dn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=i({},this.defaultWmsParams);for(var o in e)o in this.options||(n[o]=e[o]);var s=(e=_(this,e)).detectRetina&&Bt.retina?2:1,r=this.getTileSize();n.width=r.x*s,n.height=r.y*s,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,Dn.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=R(i.project(e[0]),i.project(e[1])),o=n.min,s=n.max,r=(this._wmsVersion>=1.3&&this._crs===Fi?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(","),a=Dn.prototype.getTileUrl.call(this,t);return a+p(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+r},setParams:function(t,e){return i(this.wmsParams,t),e||this.redraw(),this}});function Wn(t,e){return new Hn(t,e)}Dn.WMS=Hn,jn.wms=Wn;var Fn=Vi.extend({options:{padding:.1},initialize:function(t){_(this,t),r(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),ye(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),s=n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));Bt.any3d?Me(this._container,s,i):ze(this._container,s)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new B(i,i.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Un=Fn.extend({options:{tolerance:0},getEvents:function(){var t=Fn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Fn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Re(t,"mousemove",this._onMouseMove,this),Re(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Re(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){z(this._redrawRequest),delete this._ctx,pe(this._container),De(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Fn.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=Bt.retina?2:1;ze(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",Bt.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Fn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[r(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.next=i:this._drawFirst=i,delete t._order,delete this._layers[r(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"===typeof t.options.dashArray){var e,i,n=t.options.dashArray.split(/[, ]+/),o=[];for(i=0;i')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Gn={_initContainer:function(){this._container=_e("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Fn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=qn("shape");ye(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=qn("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;pe(e),t.removeInteractiveTarget(e),delete this._layers[r(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(e||(e=t._stroke=qn("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=g(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(o.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=qn("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){fe(t._container)},_bringToBack:function(t){ge(t._container)}},Kn=Bt.vml?qn:X,Yn=Fn.extend({_initContainer:function(){this._container=Kn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Kn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){pe(this._container),De(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Fn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),ze(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Kn("path");t.options.className&&ye(e,t.options.className),t.options.interactive&&ye(e,"leaflet-interactive"),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){pe(t._path),t.removeInteractiveTarget(t._path),delete this._layers[r(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,J(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){fe(t._path)},_bringToBack:function(t){ge(t._path)}});function Xn(t){return Bt.svg||Bt.vml?new Yn(t):null}Bt.vml&&Yn.include(Gn),ii.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Vn(t)||Xn(t)}});var Jn=un.extend({initialize:function(t,e){un.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=D(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function $n(t,e){return new Jn(t,e)}Yn.create=Kn,Yn.pointsToPath=J,dn.geometryToLayer=_n,dn.coordsToLatLng=mn,dn.coordsToLatLngs=fn,dn.latLngToCoords=gn,dn.latLngsToCoords=vn,dn.getFeature=yn,dn.asFeature=xn,ii.mergeOptions({boxZoom:!0});var Qn=mi.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Re(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){De(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){pe(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),ne(),ke(),this._startPoint=this._map.mouseEventToContainerPoint(t),Re(document,{contextmenu:Ke,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=_e("div","leaflet-zoom-box",this._container),ye(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new B(this._point,this._startPoint),i=e.getSize();ze(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(pe(this._box),xe(this._container,"leaflet-crosshair")),oe(),Ze(),De(document,{contextmenu:Ke,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var e=new N(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ii.addInitHook("addHandler","boxZoom",Qn),ii.mergeOptions({doubleClickZoom:!0});var to=mi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});ii.addInitHook("addHandler","doubleClickZoom",to),ii.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var eo=mi.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new vi(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}ye(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){xe(this._map._container,"leaflet-grab"),xe(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=D(this._map.options.maxBounds);this._offsetLimit=R(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.xe.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,s=(n+e+i)%t-e-i,r=Math.abs(o+i)0?s:-s))-e;this._delta=0,this._startTime=null,r&&("center"===t.options.scrollWheelZoom?t.setZoom(e+r):t.setZoomAround(this._lastMousePos,e+r))}});ii.addInitHook("addHandler","scrollWheelZoom",no);var oo=600;ii.mergeOptions({tapHold:Bt.touchNative&&Bt.safari&&Bt.mobile,tapTolerance:15});var so=mi.extend({addHooks:function(){Re(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){De(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new A(e.clientX,e.clientY),this._holdTimeout=setTimeout(o((function(){this._cancel(),this._isTapValid()&&(Re(document,"touchend",Ge),Re(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))}),this),oo),Re(document,"touchend touchcancel contextmenu",this._cancel,this),Re(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){De(document,"touchend",Ge),De(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),De(document,"touchend touchcancel contextmenu",this._cancel,this),De(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new A(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=!0,e.target.dispatchEvent(i)}});ii.addInitHook("addHandler","tapHold",so),ii.mergeOptions({touchZoom:Bt.touch,bounceAtZoomLimits:!0});var ro=mi.extend({addHooks:function(){ye(this._map._container,"leaflet-touch-zoom"),Re(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){xe(this._map._container,"leaflet-touch-zoom"),De(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Re(document,"touchmove",this._onTouchMove,this),Re(document,"touchend touchcancel",this._onTouchEnd,this),Ge(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),s=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(s,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoome.getMaxZoom()&&s>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===s)return}else{var r=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(1===s&&0===r.x&&0===r.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),z(this._animRequest);var a=o(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=M(a,this,!0),Ge(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,z(this._animRequest),De(document,"touchmove",this._onTouchMove,this),De(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});ii.addInitHook("addHandler","touchZoom",ro),ii.BoxZoom=Qn,ii.DoubleClickZoom=to,ii.Drag=eo,ii.Keyboard=io,ii.ScrollWheelZoom=no,ii.TapHold=so,ii.TouchZoom=ro,t.Bounds=B,t.Browser=Bt,t.CRS=W,t.Canvas=Un,t.Circle=rn,t.CircleMarker=on,t.Class=S,t.Control=oi,t.DivIcon=In,t.DivOverlay=kn,t.DomEvent=ti,t.DomUtil=Be,t.Draggable=vi,t.Evented=E,t.FeatureGroup=Ki,t.GeoJSON=dn,t.GridLayer=Rn,t.Handler=mi,t.Icon=Xi,t.ImageOverlay=Ln,t.LatLng=j,t.LatLngBounds=N,t.Layer=Vi,t.LayerGroup=qi,t.LineUtil=Ni,t.Map=ii,t.Marker=tn,t.Mixin=fi,t.Path=nn,t.Point=A,t.PolyUtil=Pi,t.Polygon=un,t.Polyline=hn,t.Popup=Zn,t.PosAnimation=ei,t.Projection=Hi,t.Rectangle=Jn,t.Renderer=Fn,t.SVG=Yn,t.SVGOverlay=Cn,t.TileLayer=Dn,t.Tooltip=An,t.Transformation=q,t.Util=C,t.VideoOverlay=Mn,t.bind=o,t.bounds=R,t.canvas=Vn,t.circle=an,t.circleMarker=sn,t.control=si,t.divIcon=Bn,t.extend=i,t.featureGroup=Yi,t.geoJSON=bn,t.geoJson=Pn,t.gridLayer=Nn,t.icon=Ji,t.imageOverlay=Tn,t.latLng=H,t.latLngBounds=D,t.layerGroup=Gi,t.map=ni,t.marker=en,t.point=I,t.polygon=cn,t.polyline=ln,t.popup=En,t.rectangle=$n,t.setOptions=_,t.stamp=r,t.svg=Xn,t.svgOverlay=Sn,t.tileLayer=jn,t.tooltip=On,t.transformation=G,t.version=e,t.videoOverlay=zn;var ao=window.L;t.noConflict=function(){return window.L=ao,this},window.L=t}(e)},3388:(t,e,i)=>{"use strict";i.d(e,{U$:()=>u,W4:()=>a,fB:()=>r,hL:()=>l});var n=i(89379),o=i(9950);const s=1;function r(t){return Object.freeze({__version:s,map:t})}function a(t,e){return Object.freeze((0,n.A)((0,n.A)({},t),e))}const h=(0,o.createContext)(null),l=h.Provider;function u(){const t=(0,o.useContext)(h);if(null==t)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of ");return t}},46639:(t,e,i)=>{"use strict";i.d(e,{A:()=>E});var n=i(57528),o=i(98587),s=i(58168),r=i(9950),a=i(72004),h=i(3484),l=i(88283),u=i(89548),c=i(18463),d=i(59254),_=i(45558),p=i(1614);function m(t){return(0,p.Ay)("MuiCircularProgress",t)}(0,_.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var f,g,v,y,x=i(44414);const w=["className","color","disableShrink","size","style","thickness","value","variant"];let b,P,L,T;const M=44,z=(0,l.i7)(b||(b=f||(f=(0,n.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),C=(0,l.i7)(P||(P=g||(g=(0,n.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),S=(0,d.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:i}=t;return[e.root,e[i.variant],e["color".concat((0,u.A)(i.color))]]}})((t=>{let{ownerState:e,theme:i}=t;return(0,s.A)({display:"inline-block"},"determinate"===e.variant&&{transition:i.transitions.create("transform")},"inherit"!==e.color&&{color:(i.vars||i).palette[e.color].main})}),(t=>{let{ownerState:e}=t;return"indeterminate"===e.variant&&(0,l.AH)(L||(L=v||(v=(0,n.A)(["\n animation: "," 1.4s linear infinite;\n "]))),z)})),k=(0,d.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),Z=(0,d.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:i}=t;return[e.circle,e["circle".concat((0,u.A)(i.variant))],i.disableShrink&&e.circleDisableShrink]}})((t=>{let{ownerState:e,theme:i}=t;return(0,s.A)({stroke:"currentColor"},"determinate"===e.variant&&{transition:i.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(t=>{let{ownerState:e}=t;return"indeterminate"===e.variant&&!e.disableShrink&&(0,l.AH)(T||(T=y||(y=(0,n.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),C)})),E=r.forwardRef((function(t,e){const i=(0,c.b)({props:t,name:"MuiCircularProgress"}),{className:n,color:r="primary",disableShrink:l=!1,size:d=40,style:_,thickness:p=3.6,value:f=0,variant:g="indeterminate"}=i,v=(0,o.A)(i,w),y=(0,s.A)({},i,{color:r,disableShrink:l,size:d,thickness:p,value:f,variant:g}),b=(t=>{const{classes:e,variant:i,color:n,disableShrink:o}=t,s={root:["root",i,"color".concat((0,u.A)(n))],svg:["svg"],circle:["circle","circle".concat((0,u.A)(i)),o&&"circleDisableShrink"]};return(0,h.A)(s,m,e)})(y),P={},L={},T={};if("determinate"===g){const t=2*Math.PI*((M-p)/2);P.strokeDasharray=t.toFixed(3),T["aria-valuenow"]=Math.round(f),P.strokeDashoffset="".concat(((100-f)/100*t).toFixed(3),"px"),L.transform="rotate(-90deg)"}return(0,x.jsx)(S,(0,s.A)({className:(0,a.A)(b.root,n),style:(0,s.A)({width:d,height:d},L,_),ownerState:y,ref:e,role:"progressbar"},T,v,{children:(0,x.jsx)(k,{className:b.svg,ownerState:y,viewBox:"".concat(22," ").concat(22," ").concat(M," ").concat(M),children:(0,x.jsx)(Z,{className:b.circle,style:P,ownerState:y,cx:M,cy:M,r:(M-p)/2,fill:"none",strokeWidth:p})})}))}))},47113:(t,e,i)=>{"use strict";i.d(e,{p:()=>l});var n=i(80045),o=i(464),s=i(69995),r=i(3388),a=i(2527);const h=["position"],l=(0,o.Nq)((function(t,e){let{position:i}=t,o=(0,n.A)(t,h);const l=new a.Marker(i,o);return(0,s.Q)(l,(0,r.W4)(e,{overlayContainer:l}))}),(function(t,e,i){e.position!==i.position&&t.setLatLng(e.position),null!=e.icon&&e.icon!==i.icon&&t.setIcon(e.icon),null!=e.zIndexOffset&&e.zIndexOffset!==i.zIndexOffset&&t.setZIndexOffset(e.zIndexOffset),null!=e.opacity&&e.opacity!==i.opacity&&t.setOpacity(e.opacity),null!=t.dragging&&e.draggable!==i.draggable&&(!0===e.draggable?t.dragging.enable():t.dragging.disable())}))},49029:(t,e,i)=>{"use strict";i.d(e,{e:()=>l});var n=i(80045),o=i(464),s=i(59781),r=i(69995);var a=i(2527);const h=["url"],l=(0,o.X3)((function(t,e){let{url:i}=t,o=(0,n.A)(t,h);const l=new a.TileLayer(i,(0,s.P)(o,e));return(0,r.Q)(l,e)}),(function(t,e,i){!function(t,e,i){const{opacity:n,zIndex:o}=e;null!=n&&n!==i.opacity&&t.setOpacity(n),null!=o&&o!==i.zIndex&&t.setZIndex(o)}(t,e,i);const{url:n}=e;null!=n&&n!==i.url&&t.setUrl(n)}))},55392:()=>{},59781:(t,e,i)=>{"use strict";i.d(e,{P:()=>o});var n=i(89379);function o(t,e){var i;const o=null!==(i=t.pane)&&void 0!==i?i:e.pane;return o?(0,n.A)((0,n.A)({},t),{},{pane:o}):t}},69995:(t,e,i)=>{"use strict";i.d(e,{K:()=>s,Q:()=>o});var n=i(9950);function o(t,e,i){return Object.freeze({instance:t,context:e,container:i})}function s(t,e){return null==e?function(e,i){const o=(0,n.useRef)();return o.current||(o.current=t(e,i)),o}:function(i,o){const s=(0,n.useRef)();s.current||(s.current=t(i,o));const r=(0,n.useRef)(i),{instance:a}=s.current;return(0,n.useEffect)((function(){r.current!==i&&(e(a,i,r.current),r.current=i)}),[a,i,o]),s}}},82215:(t,e,i)=>{"use strict";i.d(e,{R:()=>l});var n=i(80045),o=i(464),s=i(69995),r=i(3388),a=i(2527);const h=["positions"],l=(0,o.Lt)((function(t,e){let{positions:i}=t,o=(0,n.A)(t,h);const l=new a.Polyline(i,o);return(0,s.Q)(l,(0,r.W4)(e,{overlayContainer:l}))}),(function(t,e,i){e.positions!==i.positions&&t.setLatLngs(e.positions)}))},99810:(t,e,i)=>{"use strict";i.d(e,{W:()=>u});var n=i(80045),o=i(3388),s=i(2527),r=i(9950);const a=["bounds","boundsOptions","center","children","className","id","placeholder","style","whenReady","zoom"];function h(){return h=Object.assign||function(t){for(var e=1;e{var t;return null!==(t=null===x||void 0===x?void 0:x.map)&&void 0!==t?t:null}),[x]);const b=(0,r.useCallback)((t=>{if(null!==t&&null===x){const e=new s.Map(t,v);null!=u&&null!=g?e.setView(u,g):null!=i&&e.fitBounds(i,l),null!=f&&e.whenReady(f),w((0,o.fB)(e))}}),[]);(0,r.useEffect)((()=>()=>{null===x||void 0===x||x.map.remove()}),[x]);const P=x?r.createElement(o.hL,{value:x},c):null!==p&&void 0!==p?p:null;return r.createElement("div",h({},y,{ref:b}),P)}const u=(0,r.forwardRef)(l)}}]); \ No newline at end of file diff --git a/build/static/js/6341.7608b15e.chunk.js b/build/static/js/6341.7608b15e.chunk.js new file mode 100644 index 0000000..a1a0633 --- /dev/null +++ b/build/static/js/6341.7608b15e.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[6341],{5670:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(84849),i=r(27326),a=r(85672),o=r(72574),s=r(25234),c=r(60308),l=r(38009),u=r(37300),d=r(10644);function p(e){return(0,d.Ay)("MuiDialogContent",e)}(0,u.A)("MuiDialogContent",["root","dividers"]);var h=r(30903),f=r(65908);const m=["className","dividers"],v=(0,c.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})((e=>{let{theme:t,ownerState:r}=e;return(0,i.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},r.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:{[".".concat(h.A.root," + &")]:{paddingTop:0}})})),A=a.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiDialogContent"}),{className:a,dividers:c=!1}=r,u=(0,n.A)(r,m),d=(0,i.A)({},r,{dividers:c}),h=(e=>{const{classes:t,dividers:r}=e,n={root:["root",r&&"dividers"]};return(0,s.A)(n,p,t)})(d);return(0,f.jsx)(v,(0,i.A)({className:(0,o.A)(h.root,a),ownerState:d,ref:t},u))}))},6026:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(85672).createContext({})},12010:(e,t,r)=>{"use strict";r.d(t,{A:()=>T});var n=r(57528),i=r(84849),a=r(27326),o=r(85672),s=r(72574),c=r(25234),l=r(8913),u=r(16775),d=r(38009),p=r(60308),h=r(37300),f=r(10644);function m(e){return(0,f.Ay)("MuiCircularProgress",e)}(0,h.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var v,A,g,y,b=r(65908);const S=["className","color","disableShrink","size","style","thickness","value","variant"];let x,w,$,M;const k=44,D=(0,l.i7)(x||(x=v||(v=(0,n.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),W=(0,l.i7)(w||(w=A||(A=(0,n.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),C=(0,p.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["color".concat((0,u.A)(r.color))]]}})((e=>{let{ownerState:t,theme:r}=e;return(0,a.A)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,l.AH)($||($=g||(g=(0,n.A)(["\n animation: "," 1.4s linear infinite;\n "]))),D)})),P=(0,p.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),N=(0,p.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t["circle".concat((0,u.A)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:r}=e;return(0,a.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,l.AH)(M||(M=y||(y=(0,n.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),W)})),T=o.forwardRef((function(e,t){const r=(0,d.b)({props:e,name:"MuiCircularProgress"}),{className:n,color:o="primary",disableShrink:l=!1,size:p=40,style:h,thickness:f=3.6,value:v=0,variant:A="indeterminate"}=r,g=(0,i.A)(r,S),y=(0,a.A)({},r,{color:o,disableShrink:l,size:p,thickness:f,value:v,variant:A}),x=(e=>{const{classes:t,variant:r,color:n,disableShrink:i}=e,a={root:["root",r,"color".concat((0,u.A)(n))],svg:["svg"],circle:["circle","circle".concat((0,u.A)(r)),i&&"circleDisableShrink"]};return(0,c.A)(a,m,t)})(y),w={},$={},M={};if("determinate"===A){const e=2*Math.PI*((k-f)/2);w.strokeDasharray=e.toFixed(3),M["aria-valuenow"]=Math.round(v),w.strokeDashoffset="".concat(((100-v)/100*e).toFixed(3),"px"),$.transform="rotate(-90deg)"}return(0,b.jsx)(C,(0,a.A)({className:(0,s.A)(x.root,n),style:(0,a.A)({width:p,height:p},$,h),ownerState:y,ref:t,role:"progressbar"},M,g,{children:(0,b.jsx)(P,{className:x.svg,ownerState:y,viewBox:"".concat(22," ").concat(22," ").concat(k," ").concat(k),children:(0,b.jsx)(N,{className:x.circle,style:w,ownerState:y,cx:k,cy:k,r:(k-f)/2,fill:"none",strokeWidth:f})})}))}))},17450:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(84849),i=r(27326),a=r(85672),o=r(72574),s=r(25234),c=r(60308),l=r(38009),u=r(37300),d=r(10644);function p(e){return(0,d.Ay)("MuiDialogActions",e)}(0,u.A)("MuiDialogActions",["root","spacing"]);var h=r(65908);const f=["className","disableSpacing"],m=(0,c.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,i.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),v=a.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiDialogActions"}),{className:a,disableSpacing:c=!1}=r,u=(0,n.A)(r,f),d=(0,i.A)({},r,{disableSpacing:c}),v=(e=>{const{classes:t,disableSpacing:r}=e,n={root:["root",!r&&"spacing"]};return(0,s.A)(n,p,t)})(d);return(0,h.jsx)(m,(0,i.A)({className:(0,o.A)(v.root,a),ownerState:d,ref:t},u))}))},30903:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,t:()=>a});var n=r(37300),i=r(10644);function a(e){return(0,i.Ay)("MuiDialogTitle",e)}const o=(0,n.A)("MuiDialogTitle",["root"])},42129:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,f:()=>a});var n=r(37300),i=r(10644);function a(e){return(0,i.Ay)("MuiDialog",e)}const o=(0,n.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"])},43318:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var n=r(84849),i=r(27326),a=r(85672),o=r(72574),s=r(25234),c=r(16775),l=r(2866),u=r(25676),d=r(75520),p=r(60308),h=r(37300),f=r(10644);function m(e){return(0,f.Ay)("MuiInputAdornment",e)}const v=(0,h.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var A,g=r(38009),y=r(65908);const b=["children","className","component","disablePointerEvents","disableTypography","position","variant"],S=(0,p.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t["position".concat((0,c.A)(r.position))],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,i.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===r.variant&&{["&.".concat(v.positionStart,"&:not(.").concat(v.hiddenLabel,")")]:{marginTop:16}},"start"===r.position&&{marginRight:8},"end"===r.position&&{marginLeft:8},!0===r.disablePointerEvents&&{pointerEvents:"none"})})),x=a.forwardRef((function(e,t){const r=(0,g.b)({props:e,name:"MuiInputAdornment"}),{children:p,className:h,component:f="div",disablePointerEvents:v=!1,disableTypography:x=!1,position:w,variant:$}=r,M=(0,n.A)(r,b),k=(0,d.A)()||{};let D=$;$&&k.variant,k&&!D&&(D=k.variant);const W=(0,i.A)({},r,{hiddenLabel:k.hiddenLabel,size:k.size,disablePointerEvents:v,position:w,variant:D}),C=(e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:i,size:a,variant:o}=e,l={root:["root",r&&"disablePointerEvents",i&&"position".concat((0,c.A)(i)),o,n&&"hiddenLabel",a&&"size".concat((0,c.A)(a))]};return(0,s.A)(l,m,t)})(W);return(0,y.jsx)(u.A.Provider,{value:null,children:(0,y.jsx)(S,(0,i.A)({as:f,ownerState:W,className:(0,o.A)(C.root,h),ref:t},M,{children:"string"!==typeof p||x?(0,y.jsxs)(a.Fragment,{children:["start"===w?A||(A=(0,y.jsx)("span",{className:"notranslate",children:"\u200b"})):null,p]}):(0,y.jsx)(l.A,{color:"text.secondary",children:p})}))})}))},46077:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",i="second",a="minute",o="hour",s="day",c="week",l="month",u="quarter",d="year",p="date",h="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},A=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},g={s:A,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+A(n,2,"0")+":"+A(i,2,"0")},m:function e(t,r){if(t.date()1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!n&&i&&(y=i),i||!n&&y},$=function(e,t){if(x(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new k(r)},M=g;M.l=w,M.i=x,M.w=function(e,t){return $(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var k=function(){function v(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[S]=!0}var A=v.prototype;return A.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(M.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(f);if(n){var i=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(t)}(e),this.init()},A.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},A.$utils=function(){return M},A.isValid=function(){return!(this.$d.toString()===h)},A.isSame=function(e,t){var r=$(e);return this.startOf(t)<=r&&r<=this.endOf(t)},A.isAfter=function(e,t){return $(e){"use strict";r.d(t,{A:()=>M});var n=r(84849),i=r(27326),a=r(85672),o=r(72574),s=r(25234),c=r(16660),l=r(16775),u=r(52243),d=r(95345),p=r(55235),h=r(38009),f=r(60308),m=r(42129),v=r(6026),A=r(15227),g=r(69039),y=r(65908);const b=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],S=(0,f.Ay)(A.A,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),x=(0,f.Ay)(u.A,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),w=(0,f.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t["scroll".concat((0,l.A)(r.scroll))]]}})((e=>{let{ownerState:t}=e;return(0,i.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),$=(0,f.Ay)(p.A,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t["scrollPaper".concat((0,l.A)(r.scroll))],t["paperWidth".concat((0,l.A)(String(r.maxWidth)))],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})((e=>{let{theme:t,ownerState:r}=e;return(0,i.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)"),["&.".concat(m.A.paperScrollBody)]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},r.maxWidth&&"xs"!==r.maxWidth&&{maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit),["&.".concat(m.A.paperScrollBody)]:{[t.breakpoints.down(t.breakpoints.values[r.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(m.A.paperScrollBody)]:{margin:0,maxWidth:"100%"}})})),M=a.forwardRef((function(e,t){const r=(0,h.b)({props:e,name:"MuiDialog"}),u=(0,g.A)(),f={enter:u.transitions.duration.enteringScreen,exit:u.transitions.duration.leavingScreen},{"aria-describedby":A,"aria-labelledby":M,BackdropComponent:k,BackdropProps:D,children:W,className:C,disableEscapeKeyDown:P=!1,fullScreen:N=!1,fullWidth:T=!1,maxWidth:O="sm",onBackdropClick:j,onClick:_,onClose:R,open:L,PaperComponent:H=p.A,PaperProps:B={},scroll:I="paper",TransitionComponent:Y=d.A,transitionDuration:E=f,TransitionProps:F}=r,z=(0,n.A)(r,b),U=(0,i.A)({},r,{disableEscapeKeyDown:P,fullScreen:N,fullWidth:T,maxWidth:O,scroll:I}),J=(e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:i,fullScreen:a}=e,o={root:["root"],container:["container","scroll".concat((0,l.A)(r))],paper:["paper","paperScroll".concat((0,l.A)(r)),"paperWidth".concat((0,l.A)(String(n))),i&&"paperFullWidth",a&&"paperFullScreen"]};return(0,s.A)(o,m.f,t)})(U),K=a.useRef(),Z=(0,c.A)(M),V=a.useMemo((()=>({titleId:Z})),[Z]);return(0,y.jsx)(x,(0,i.A)({className:(0,o.A)(J.root,C),closeAfterTransition:!0,components:{Backdrop:S},componentsProps:{backdrop:(0,i.A)({transitionDuration:E,as:k},D)},disableEscapeKeyDown:P,onClose:R,open:L,ref:t,onClick:e=>{_&&_(e),K.current&&(K.current=null,j&&j(e),R&&R(e,"backdropClick"))},ownerState:U},z,{children:(0,y.jsx)(Y,(0,i.A)({appear:!0,in:L,timeout:E,role:"presentation"},F,{children:(0,y.jsx)(w,{className:(0,o.A)(J.container),onMouseDown:e=>{K.current=e.target===e.currentTarget},ownerState:U,children:(0,y.jsx)($,(0,i.A)({as:H,elevation:24,role:"dialog","aria-describedby":A,"aria-labelledby":Z},B,{className:(0,o.A)(J.paper,B.className),ownerState:U,children:(0,y.jsx)(v.A.Provider,{value:V,children:W})}))})}))}))}))},70775:(e,t,r)=>{"use strict";var n=r(39744);t.A=void 0;var i=n(r(24956)),a=r(65908);t.A=(0,i.default)((0,a.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack")}}]); \ No newline at end of file diff --git a/build/static/js/6390.1dc7fa61.chunk.js b/build/static/js/6390.1dc7fa61.chunk.js deleted file mode 100644 index e663793..0000000 --- a/build/static/js/6390.1dc7fa61.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[6390],{855:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(7208),i=n(76475),o=n(44414);function s(e){var t,n;let s,a,{children:c,type:l="scale",direction:d="right",offset:m=10,scale:h={hover:1.05,tap:.95}}=e;switch(d){case"up":case"left":s=m,a=0;break;default:s=0,a=m}const[p,u]=(0,r.Y)(s,a),[x,g]=(0,r.Y)(s,a);switch(l){case"rotate":return(0,o.jsx)(i.P.div,{animate:{rotate:360},transition:{repeat:1/0,repeatType:"loop",duration:2,repeatDelay:0},children:c});case"slide":return"up"===d||"down"===d?(0,o.jsx)(i.P.div,{animate:{y:void 0!==x?x:""},onHoverEnd:()=>g(),onHoverStart:()=>g(),children:c}):(0,o.jsx)(i.P.div,{animate:{x:void 0!==p?p:""},onHoverEnd:()=>u(),onHoverStart:()=>u(),children:c});default:return"number"===typeof h&&(h={hover:h,tap:h}),(0,o.jsx)(i.P.div,{whileHover:{scale:null===(t=h)||void 0===t?void 0:t.hover},whileTap:{scale:null===(n=h)||void 0===n?void 0:n.tap},children:c})}}},18251:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/img-soc1.a0526d5a1b2b3ad224c3.svg"},22614:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/codedthemes-logo.de6f43fc1a6929defc60.svg"},36080:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=n(98587),i=n(58168),o=n(9950),s=n(72004),a=n(3484),c=n(89548),l=n(59254),d=n(18463),m=n(52695),h=n(31506),p=n(82053),u=n(45558),x=n(1614);function g(e){return(0,x.Ay)("MuiLink",e)}const A=(0,u.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var y=n(12703),f=n(99269);const b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},v=e=>{let{theme:t,ownerState:n}=e;const r=(e=>b[e]||e)(n.color),i=(0,y.Yn)(t,"palette.".concat(r),!1)||n.color,o=(0,y.Yn)(t,"palette.".concat(r,"Channel"));return"vars"in t&&o?"rgba(".concat(o," / 0.4)"):(0,f.X4)(i,.4)};var j=n(44414);const k=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],w=(0,l.Ay)(p.A,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["underline".concat((0,c.A)(n.underline))],"button"===n.component&&t.button]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({},"none"===n.underline&&{textDecoration:"none"},"hover"===n.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===n.underline&&(0,i.A)({textDecoration:"underline"},"inherit"!==n.color&&{textDecorationColor:v({theme:t,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===n.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(A.focusVisible)]:{outline:"auto"}})})),C=o.forwardRef((function(e,t){const n=(0,d.b)({props:e,name:"MuiLink"}),{className:l,color:p="primary",component:u="a",onBlur:x,onFocus:A,TypographyClasses:y,underline:f="always",variant:v="inherit",sx:C}=n,M=(0,r.A)(n,k),{isFocusVisibleRef:R,onBlur:S,onFocus:_,ref:D}=(0,m.A)(),[I,F]=o.useState(!1),P=(0,h.A)(t,D),z=(0,i.A)({},n,{color:p,component:u,focusVisible:I,underline:f,variant:v}),L=(e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root","underline".concat((0,c.A)(i)),"button"===n&&"button",r&&"focusVisible"]};return(0,a.A)(o,g,t)})(z);return(0,j.jsx)(w,(0,i.A)({color:p,className:(0,s.A)(L.root,l),classes:y,component:u,onBlur:e=>{S(e),!1===R.current&&F(!1),x&&x(e)},onFocus:e=>{_(e),!0===R.current&&F(!0),A&&A(e)},ref:P,ownerState:z,variant:v,sx:[...Object.keys(b).includes(p)?[]:[{color:p}],...Array.isArray(C)?C:[C]]},M))}))},38569:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/img-soc3.c7e32ab183d3a3ab9296.svg"},79416:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/img-soc2.8931ba0f5ca8245dbc06.svg"},81335:(e,t,n)=>{var r={"./codedthemes-logo.svg":22614,"./img-footer.png":89476,"./img-soc1.svg":18251,"./img-soc2.svg":79416,"./img-soc3.svg":38569};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=81335},86390:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>O});var r=n(59254),i=n(14857),o=n(36080),s=n(16491),a=n(98587),c=n(58168),l=n(9950),d=n(72004),m=n(3484),h=n(18463),p=n(45558),u=n(1614);function x(e){return(0,u.Ay)("MuiCardMedia",e)}(0,p.A)("MuiCardMedia",["root","media","img"]);var g=n(44414);const A=["children","className","component","image","src","style"],y=(0,r.Ay)("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:i}=n;return[t.root,r&&t.media,i&&t.img]}})((e=>{let{ownerState:t}=e;return(0,c.A)({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},t.isMediaComponent&&{width:"100%"},t.isImageComponent&&{objectFit:"cover"})})),f=["video","audio","picture","iframe","img"],b=["picture","img"],v=l.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiCardMedia"}),{children:r,className:i,component:o="div",image:s,src:l,style:p}=n,u=(0,a.A)(n,A),v=-1!==f.indexOf(o),j=!v&&s?(0,c.A)({backgroundImage:'url("'.concat(s,'")')},p):p,k=(0,c.A)({},n,{component:o,isMediaComponent:v,isImageComponent:-1!==b.indexOf(o)}),w=(e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e,i={root:["root",n&&"media",r&&"img"]};return(0,m.A)(i,x,t)})(k);return(0,g.jsx)(y,(0,c.A)({className:(0,d.A)(w.root,i),as:o,role:!v&&s?"img":void 0,ref:t,style:j,ownerState:k,src:v?s||l:void 0},u,{children:r}))}));var j=n(19808),k=n(60899),w=n(82053),C=n(10226),M=n(93230),R=n(74745),S=n(76475),_=n(16243),D=n(85002);const I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"};var F=n(61187),P=function(e,t){return l.createElement(F.A,(0,c.A)({},e,{ref:t,icon:I}))};const z=l.forwardRef(P);const L=n.p+"static/media/codedthemes-logo.de6f43fc1a6929defc604ed2bdf77fdd.svg";const N=n.p+"static/media/img-soc1.a0526d5a1b2b3ad224c35fedc8498601.svg";const T=n.p+"static/media/img-soc2.8931ba0f5ca8245dbc0684f455a56d44.svg";const W=n.p+"static/media/img-soc3.c7e32ab183d3a3ab9296b56558562065.svg";var B=n(855);const E=n(81335),H=(0,r.Ay)(o.A)((e=>{let{theme:t}=e;return{color:t.palette.text.secondary,"&:hover":{color:t.palette.primary.main},"&:active":{color:t.palette.primary.main}}})),O=e=>{let{isFull:t}=e;const n=(0,i.A)(),{presetColor:r}=(0,D.A)(),a=n.palette.mode===_.lG.DARK?"text.primary":"background.paper",c={color:n.palette.common.white,fontSize:"0.875rem",fontWeight:400,opacity:"0.6",cursor:"pointer","&:hover":{opacity:"1"}};return(0,g.jsxs)(g.Fragment,{children:[t&&(0,g.jsxs)(s.A,{sx:{position:"relative",bgcolor:n.palette.grey.A700,zIndex:1,mt:{xs:0,md:13.75},pt:{xs:8,sm:7.5,md:18.75},pb:{xs:2.5,md:10},"&:after":{content:'""',position:"absolute",width:"100%",height:"80%",bottom:0,left:0,background:n.direction===_.NL.RTL?"linear-gradient(transparent 100%, rgb(31, 31, 31) 70%)":"linear-gradient(180deg, transparent 0%, ".concat(n.palette.grey.A700," 70%)")}},children:[(0,g.jsx)(v,{component:"img",image:E("./img-footer-".concat(r,".png")),sx:{display:{xs:"none",md:"block"},width:"55%",maxWidth:700,position:"absolute",top:"-28%",right:0}}),(0,g.jsx)(j.A,{children:(0,g.jsx)(k.Ay,{container:!0,alignItems:"center",justifyContent:"space-between",spacing:2,children:(0,g.jsx)(k.Ay,{item:!0,xs:12,md:6,sx:{position:"relative",zIndex:1},children:(0,g.jsxs)(k.Ay,{container:!0,spacing:2,sx:{[n.breakpoints.down("md")]:{pr:0,textAlign:"center"}},children:[(0,g.jsx)(k.Ay,{item:!0,xs:12,children:(0,g.jsx)(w.A,{variant:"subtitle1",sx:{color:n.palette.common.white},children:"Roadmap"})}),(0,g.jsx)(k.Ay,{item:!0,xs:12,children:(0,g.jsx)(S.P.div,{initial:{opacity:0,translateY:550},animate:{opacity:1,translateY:0},transition:{type:"spring",stiffness:150,damping:30},children:(0,g.jsx)(w.A,{variant:"h2",sx:{color:n.palette.common.white,fontWeight:700},children:"Upcoming Release"})})}),(0,g.jsx)(k.Ay,{item:!0,xs:12,children:(0,g.jsx)(w.A,{variant:"body1",sx:{color:n.palette.common.white},children:"What is next? Checkout the Upcoming release of Mantis React."})}),(0,g.jsx)(k.Ay,{item:!0,xs:12,sx:{my:2},children:(0,g.jsx)(s.A,{sx:{display:"inline-block"},children:(0,g.jsx)(B.A,{children:(0,g.jsx)(C.A,{size:"large",variant:"contained",endIcon:(0,g.jsx)(z,{}),component:o.A,href:"https://links.codedthemes.com/RXnKQ",target:"_blank",children:"Roadmap"})})})})]})})})})]}),(0,g.jsx)(s.A,{sx:{pt:t?0:10,pb:10,bgcolor:n.palette.grey.A700},children:(0,g.jsx)(j.A,{children:(0,g.jsxs)(k.Ay,{container:!0,spacing:2,children:[(0,g.jsx)(k.Ay,{item:!0,xs:12,md:4,children:(0,g.jsx)(S.P.div,{initial:{opacity:0,translateY:550},animate:{opacity:1,translateY:0},transition:{type:"spring",stiffness:150,damping:30},children:(0,g.jsxs)(k.Ay,{container:!0,spacing:2,children:[(0,g.jsx)(k.Ay,{item:!0,xs:12,children:(0,g.jsx)(v,{component:"img",image:L,sx:{width:"auto"}})}),(0,g.jsx)(k.Ay,{item:!0,xs:12,children:(0,g.jsx)(w.A,{variant:"subtitle1",sx:{fontWeight:400,color:n.palette.common.white},children:"Since 2017, More than 50K+ Developers trust the CodedThemes Digital Product. Mantis React is Manage under their Experienced Team Players."})})]})})}),(0,g.jsx)(k.Ay,{item:!0,xs:12,md:8,children:(0,g.jsxs)(k.Ay,{container:!0,spacing:{xs:5,md:2},children:[(0,g.jsx)(k.Ay,{item:!0,xs:6,sm:3,children:(0,g.jsxs)(M.A,{spacing:{xs:3,md:5},children:[(0,g.jsx)(w.A,{variant:"h5",color:a,sx:{fontWeight:500},children:"Help"}),(0,g.jsxs)(M.A,{spacing:{xs:1.5,md:2.5},children:[(0,g.jsx)(H,{href:"https://links.codedthemes.com/nOuhw",target:"_blank",underline:"none",children:"Blog"}),(0,g.jsx)(H,{href:"https://links.codedthemes.com/BQFrl",target:"_blank",underline:"none",children:"Documentation"}),(0,g.jsx)(H,{href:"https://links.codedthemes.com/rhzvh",target:"_blank",underline:"none",children:"Change Log"}),(0,g.jsx)(H,{href:"https://codedthemes.support-hub.io/",target:"_blank",underline:"none",children:"Support"})]})]})}),(0,g.jsx)(k.Ay,{item:!0,xs:6,sm:3,children:(0,g.jsxs)(M.A,{spacing:{xs:3,md:5},children:[(0,g.jsx)(w.A,{variant:"h5",color:a,sx:{fontWeight:500},children:"Store Help"}),(0,g.jsxs)(M.A,{spacing:{xs:1.5,md:2.5},children:[(0,g.jsx)(H,{href:"https://mui.com/store/license/",target:"_blank",underline:"none",children:"License"}),(0,g.jsx)(H,{href:"https://mui.com/store/customer-refund-policy/",target:"_blank",underline:"none",children:"Refund Policy"}),(0,g.jsx)(H,{href:"https://support.mui.com/hc/en-us/sections/360002564979-For-customers",target:"_blank",underline:"none",children:"Submit a Request"})]})]})}),(0,g.jsx)(k.Ay,{item:!0,xs:6,sm:3,children:(0,g.jsxs)(M.A,{spacing:{xs:3,md:5},children:[(0,g.jsx)(w.A,{variant:"h5",color:a,sx:{fontWeight:500},children:"Mantis Eco-System"}),(0,g.jsx)(M.A,{spacing:{xs:1.5,md:2.5},children:[{title:"CodeIgniter",link:"https://links.codedthemes.com/dEGKs"},{title:"React MUI",link:"https://links.codedthemes.com/Aprwb"},{title:"Angular",link:"https://links.codedthemes.com/EIvof"},{title:"Bootstrap 5",link:"https://codedthemes.com/item/mantis-bootstrap-admin-dashboard/"},{title:".Net",link:"https://links.codedthemes.com/GPZhD"}].map(((e,t)=>(0,g.jsx)(H,{href:e.link,target:"_blank",underline:"none",children:e.title},t)))})]})}),(0,g.jsx)(k.Ay,{item:!0,xs:6,sm:3,children:(0,g.jsxs)(M.A,{spacing:{xs:3,md:5},children:[(0,g.jsx)(w.A,{variant:"h5",color:a,sx:{fontWeight:500},children:"More Products"}),(0,g.jsxs)(M.A,{spacing:{xs:1.5,md:2.5},children:[(0,g.jsx)(H,{href:"https://links.codedthemes.com/zyACc",target:"_blank",underline:"none",children:"Berry React Material"}),(0,g.jsx)(H,{href:"https://links.codedthemes.com/WztNI",target:"_blank",underline:"none",children:"Free Berry React"}),(0,g.jsx)(H,{href:"https://links.codedthemes.com/sTUAK",target:"_blank",underline:"none",children:"Free Mantis React"})]})]})})]})})]})})}),(0,g.jsx)(R.A,{sx:{borderColor:"grey.700"}}),(0,g.jsx)(s.A,{sx:{py:1.5,bgcolor:n.palette.mode===_.lG.DARK?n.palette.grey[50]:n.palette.grey[800]},children:(0,g.jsx)(j.A,{children:(0,g.jsxs)(k.Ay,{container:!0,spacing:2,children:[(0,g.jsx)(k.Ay,{item:!0,xs:12,sm:8,children:(0,g.jsx)(w.A,{variant:"subtitle2",color:"secondary",children:"\xa9 Made with love by Team CodedThemes"})}),(0,g.jsx)(k.Ay,{item:!0,xs:12,sm:4,children:(0,g.jsxs)(k.Ay,{container:!0,spacing:2,alignItems:"center",sx:{justifyContent:"flex-end"},children:[(0,g.jsx)(k.Ay,{item:!0,children:(0,g.jsx)(o.A,{underline:"none",sx:c,children:(0,g.jsx)(v,{component:"img",image:N})})}),(0,g.jsx)(k.Ay,{item:!0,children:(0,g.jsx)(o.A,{underline:"none",sx:c,children:(0,g.jsx)(v,{component:"img",image:T})})}),(0,g.jsx)(k.Ay,{item:!0,children:(0,g.jsx)(o.A,{underline:"none",sx:c,children:(0,g.jsx)(v,{component:"img",image:W})})})]})})]})})})]})}},89476:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/img-footer.2bbba8c7dfab04642dde.png"}}]); \ No newline at end of file diff --git a/build/static/js/6453.1b9b525a.chunk.js b/build/static/js/6453.1b9b525a.chunk.js new file mode 100644 index 0000000..608e7c3 --- /dev/null +++ b/build/static/js/6453.1b9b525a.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[6453],{3012:t=>{var r=function(t){"use strict";var r,e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},a="function"===typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function s(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{s({},"")}catch(S){s=function(t,r,e){return t[r]=e}}function f(t,r,e,n){var a=r&&r.prototype instanceof g?r:g,i=Object.create(a.prototype),c=new G(n||[]);return o(i,"_invoke",{value:k(t,e,c)}),i}function l(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(S){return{type:"throw",arg:S}}}t.wrap=f;var h="suspendedStart",p="suspendedYield",v="executing",d="completed",y={};function g(){}function m(){}function w(){}var b={};s(b,i,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(I([])));L&&L!==e&&n.call(L,i)&&(b=L);var E=w.prototype=g.prototype=Object.create(b);function _(t){["next","throw","return"].forEach((function(r){s(t,r,(function(t){return this._invoke(r,t)}))}))}function j(t,r){function e(o,a,i,c){var u=l(t[o],t,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"===typeof f&&n.call(f,"__await")?r.resolve(f.__await).then((function(t){e("next",t,i,c)}),(function(t){e("throw",t,i,c)})):r.resolve(f).then((function(t){s.value=t,i(s)}),(function(t){return e("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new r((function(r,o){e(t,n,r,o)}))}return a=a?a.then(o,o):o()}})}function k(t,r,e){var n=h;return function(o,a){if(n===v)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw a;return N()}for(e.method=o,e.arg=a;;){var i=e.delegate;if(i){var c=P(i,e);if(c){if(c===y)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===h)throw n=d,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=v;var u=l(t,r,e);if("normal"===u.type){if(n=e.done?d:p,u.arg===y)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n=d,e.method="throw",e.arg=u.arg)}}}function P(t,e){var n=e.method,o=t.iterator[n];if(o===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=r,P(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=l(o,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,y;var i=a.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,y):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function O(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function R(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),R(e),y}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;R(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),y}},t}(t.exports);try{regeneratorRuntime=r}catch(e){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},76453:(t,r,e)=>{"use strict";var n=e(3012);function o(t,r,e,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}function a(t){return function(){var r=this,e=arguments;return new Promise((function(n,a){var i=t.apply(r,e);function c(t){o(i,n,a,c,u,"next",t)}function u(t){o(i,n,a,c,u,"throw",t)}c(void 0)}))}}r.A=void 0;var i=!1,c=null,u="en",s=null,f=null,l="https://maps.googleapis.com/maps/api/geocode/json";function h(t){i&&(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?console.warn(t):console.log(t))}function p(t){return v.apply(this,arguments)}function v(){return(v=a(n.mark((function t(r){var e,o;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(r).catch((function(){return Promise.reject(new Error("Error fetching data"))}));case 2:return e=t.sent,t.next=5,e.json().catch((function(){return h("Error parsing server response"),Promise.reject(new Error("Error parsing server response"))}));case 5:if("OK"!==(o=t.sent).status){t.next=9;break}return h(o),t.abrupt("return",o);case 9:return h("".concat(o.error_message,".\nServer returned status code ").concat(o.status),!0),t.abrupt("return",Promise.reject(new Error("".concat(o.error_message,".\nServer returned status code ").concat(o.status))));case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var d={setApiKey:function(t){c=t},setLanguage:function(t){u=t},setRegion:function(t){s=t},setLocationType:function(t){f=t},enableDebug:function(){i=!(arguments.length>0&&void 0!==arguments[0])||arguments[0]},fromLatLng:function(t,r,e,o,i,v){return a(n.mark((function a(){var d,y;return n.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t&&r){n.next=3;break}return h("Provided coordinates are invalid",!0),n.abrupt("return",Promise.reject(new Error("Provided coordinates are invalid")));case 3:return d="".concat(t,",").concat(r),y="".concat(l,"?latlng=").concat(encodeURIComponent(d)),(e||c)&&(y+="&key=".concat(c=e||c)),(o||u)&&(y+="&language=".concat(u=o||u)),(i||s)&&(s=i||s,y+="®ion=".concat(encodeURIComponent(s))),(v||f)&&(f=v||f,y+="&location_type=".concat(encodeURIComponent(f))),n.abrupt("return",p(y));case 9:case"end":return n.stop()}}),a)})))()},fromAddress:function(t,r,e,o){return a(n.mark((function a(){var i;return n.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t){n.next=3;break}return h("Provided address is invalid",!0),n.abrupt("return",Promise.reject(new Error("Provided address is invalid")));case 3:return i="".concat(l,"?address=").concat(encodeURIComponent(t)),(r||c)&&(i+="&key=".concat(c=r||c)),(e||u)&&(i+="&language=".concat(u=e||u)),(o||s)&&(s=o||s,i+="®ion=".concat(encodeURIComponent(s))),n.abrupt("return",p(i));case 8:case"end":return n.stop()}}),a)})))()}};r.A=d}}]); \ No newline at end of file diff --git a/build/static/js/6651.ada8ee90.chunk.js b/build/static/js/6651.ada8ee90.chunk.js deleted file mode 100644 index 9fbf73e..0000000 --- a/build/static/js/6651.ada8ee90.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[6651],{16497:(e,t,a)=>{"use strict";a.d(t,{A:()=>y});var r=a(98587),o=a(58168),n=a(9950),c=a(72004),s=a(3484),i=a(39766),l=a(93230),d=a(82053),u=a(89548),h=a(59254),f=a(18463),m=a(45558),p=a(1614);function v(e){return(0,p.Ay)("MuiFormControlLabel",e)}const b=(0,m.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var A=a(68624),g=a(44414);const k=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],C=(0,h.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[{["& .".concat(b.label)]:t.label},t.root,t["labelPlacement".concat((0,u.A)(a.labelPlacement))]]}})((e=>{let{theme:t,ownerState:a}=e;return(0,o.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&.".concat(b.disabled)]:{cursor:"default"}},"start"===a.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===a.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===a.labelPlacement&&{flexDirection:"column",marginLeft:16},{["& .".concat(b.label)]:{["&.".concat(b.disabled)]:{color:(t.vars||t).palette.text.disabled}}})})),x=(0,h.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{["&.".concat(b.error)]:{color:(t.vars||t).palette.error.main}}})),y=n.forwardRef((function(e,t){var a,h;const m=(0,f.b)({props:e,name:"MuiFormControlLabel"}),{className:p,componentsProps:b={},control:y,disabled:$,disableTypography:z,label:M,labelPlacement:S="end",required:w,slotProps:P={}}=m,R=(0,r.A)(m,k),H=(0,i.A)(),F=null!=(a=null!=$?$:y.props.disabled)?a:null==H?void 0:H.disabled,D=null!=w?w:y.props.required,L={disabled:F,required:D};["checked","name","onChange","value","inputRef"].forEach((e=>{"undefined"===typeof y.props[e]&&"undefined"!==typeof m[e]&&(L[e]=m[e])}));const O=(0,A.A)({props:m,muiFormControl:H,states:["error"]}),B=(0,o.A)({},m,{disabled:F,labelPlacement:S,required:D,error:O.error}),T=(e=>{const{classes:t,disabled:a,labelPlacement:r,error:o,required:n}=e,c={root:["root",a&&"disabled","labelPlacement".concat((0,u.A)(r)),o&&"error",n&&"required"],label:["label",a&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,s.A)(c,v,t)})(B),I=null!=(h=P.typography)?h:b.typography;let j=M;return null==j||j.type===d.A||z||(j=(0,g.jsx)(d.A,(0,o.A)({component:"span"},I,{className:(0,c.A)(T.label,null==I?void 0:I.className),children:j}))),(0,g.jsxs)(C,(0,o.A)({className:(0,c.A)(T.root,p),ownerState:B,ref:t},R,{children:[n.cloneElement(y,L),D?(0,g.jsxs)(l.A,{display:"block",children:[j,(0,g.jsxs)(x,{ownerState:B,"aria-hidden":!0,className:T.asterisk,children:["\u2009","*"]})]}):j]}))}))},36220:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(r,o,n){var c=o.prototype;n.utc=function(e){return new o({date:e,utc:!0,args:arguments})},c.utc=function(t){var a=n(this.toDate(),{locale:this.$L,utc:!0});return t?a.add(this.utcOffset(),e):a},c.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var s=c.parse;c.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var i=c.init;c.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else i.call(this)};var l=c.utcOffset;c.utcOffset=function(r,o){var n=this.$utils().u;if(n(r))return this.$u?0:n(this.$offset)?l.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var o=(""+r[0]).match(a)||["-",0,0],n=o[0],c=60*+o[1]+ +o[2];return 0===c?0:"+"===n?c:-c}(r),null===r))return this;var c=Math.abs(r)<=16?60*r:r,s=this;if(o)return s.$offset=c,s.$u=0===r,s;if(0!==r){var i=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(c+i,e)).$offset=c,s.$x.$localOffset=i}else s=this.utc();return s};var d=c.format;c.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,t)},c.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var u=c.toDate;c.toDate=function(e){return"s"===e&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var h=c.diff;c.diff=function(e,t,a){if(e&&this.$u===e.$u)return h.call(this,e,t,a);var r=this.local(),o=n(e).local();return h.call(r,o,t,a)}}}()},46282:(e,t,a)=>{"use strict";a.d(t,{A:()=>C});var r=a(98587),o=a(58168),n=a(9950),c=a(72004),s=a(3484),i=a(89548),l=a(59254),d=a(19608),u=a(48733),h=a(39766),f=a(24184),m=a(45558),p=a(1614);function v(e){return(0,p.Ay)("PrivateSwitchBase",e)}(0,m.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var b=a(44414);const A=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],g=(0,l.Ay)(f.A)((e=>{let{ownerState:t}=e;return(0,o.A)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),k=(0,l.Ay)("input",{shouldForwardProp:d.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),C=n.forwardRef((function(e,t){const{autoFocus:a,checked:n,checkedIcon:l,className:d,defaultChecked:f,disabled:m,disableFocusRipple:p=!1,edge:C=!1,icon:x,id:y,inputProps:$,inputRef:z,name:M,onBlur:S,onChange:w,onFocus:P,readOnly:R,required:H=!1,tabIndex:F,type:D,value:L}=e,O=(0,r.A)(e,A),[B,T]=(0,u.A)({controlled:n,default:Boolean(f),name:"SwitchBase",state:"checked"}),I=(0,h.A)();let j=m;I&&"undefined"===typeof j&&(j=I.disabled);const N="checkbox"===D||"radio"===D,V=(0,o.A)({},e,{checked:B,disabled:j,disableFocusRipple:p,edge:C}),q=(e=>{const{classes:t,checked:a,disabled:r,edge:o}=e,n={root:["root",a&&"checked",r&&"disabled",o&&"edge".concat((0,i.A)(o))],input:["input"]};return(0,s.A)(n,v,t)})(V);return(0,b.jsxs)(g,(0,o.A)({component:"span",className:(0,c.A)(q.root,d),centerRipple:!0,focusRipple:!p,disabled:j,tabIndex:null,role:void 0,onFocus:e=>{P&&P(e),I&&I.onFocus&&I.onFocus(e)},onBlur:e=>{S&&S(e),I&&I.onBlur&&I.onBlur(e)},ownerState:V,ref:t},O,{children:[(0,b.jsx)(k,(0,o.A)({autoFocus:a,checked:n,defaultChecked:f,className:q.input,disabled:j,id:N?y:void 0,name:M,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;T(t),w&&w(e,t)},readOnly:R,ref:z,required:H,ownerState:V,tabIndex:F,type:D},"checkbox"===D&&void 0===L?{}:{value:L},$)),B?l:x]}))}))},47738:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var r=a(58168),o=a(9950);const n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};var c=a(61187),s=function(e,t){return o.createElement(c.A,(0,r.A)({},e,{ref:t,icon:n}))};const i=o.forwardRef(s)},60767:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var r=a(58168),o=a(9950);const n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var c=a(61187),s=function(e,t){return o.createElement(c.A,(0,r.A)({},e,{ref:t,icon:n}))};const i=o.forwardRef(s)},81419:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var r=a(58168),o=a(9950);const n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};var c=a(61187),s=function(e,t){return o.createElement(c.A,(0,r.A)({},e,{ref:t,icon:n}))};const i=o.forwardRef(s)},87942:(e,t,a)=>{"use strict";var r=a(24994);t.A=void 0;var o=r(a(79526)),n=a(44414);t.A=(0,o.default)((0,n.jsx)("path",{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7.94-7.94H23v-2zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7"}),"MyLocation")},93038:(e,t,a)=>{"use strict";a.d(t,{A:()=>w});var r=a(98587),o=a(58168),n=a(9950),c=a(72004),s=a(3484),i=a(99269),l=a(46282),d=a(23235),u=a(44414);const h=(0,d.A)((0,u.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),f=(0,d.A)((0,u.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),m=(0,d.A)((0,u.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var p=a(89548),v=a(18463),b=a(59254),A=a(19608),g=a(45558),k=a(1614);function C(e){return(0,k.Ay)("MuiCheckbox",e)}const x=(0,g.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),y=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],$=(0,b.Ay)(l.A,{shouldForwardProp:e=>(0,A.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,a.indeterminate&&t.indeterminate,t["size".concat((0,p.A)(a.size))],"default"!==a.color&&t["color".concat((0,p.A)(a.color))]]}})((e=>{let{theme:t,ownerState:a}=e;return(0,o.A)({color:(t.vars||t).palette.text.secondary},!a.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===a.color?t.vars.palette.action.activeChannel:t.vars.palette[a.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,i.X4)("default"===a.color?t.palette.action.active:t.palette[a.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==a.color&&{["&.".concat(x.checked,", &.").concat(x.indeterminate)]:{color:(t.vars||t).palette[a.color].main},["&.".concat(x.disabled)]:{color:(t.vars||t).palette.action.disabled}})})),z=(0,u.jsx)(f,{}),M=(0,u.jsx)(h,{}),S=(0,u.jsx)(m,{}),w=n.forwardRef((function(e,t){var a,i;const l=(0,v.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:d=z,color:h="primary",icon:f=M,indeterminate:m=!1,indeterminateIcon:b=S,inputProps:A,size:g="medium",className:k}=l,x=(0,r.A)(l,y),w=m?b:f,P=m?b:d,R=(0,o.A)({},l,{color:h,indeterminate:m,size:g}),H=(e=>{const{classes:t,indeterminate:a,color:r,size:n}=e,c={root:["root",a&&"indeterminate","color".concat((0,p.A)(r)),"size".concat((0,p.A)(n))]},i=(0,s.A)(c,C,t);return(0,o.A)({},t,i)})(R);return(0,u.jsx)($,(0,o.A)({type:"checkbox",inputProps:(0,o.A)({"data-indeterminate":m},A),icon:n.cloneElement(w,{fontSize:null!=(a=w.props.fontSize)?a:g}),checkedIcon:n.cloneElement(P,{fontSize:null!=(i=P.props.fontSize)?i:g}),ownerState:R,ref:t,className:(0,c.A)(H.root,k)},x,{classes:H}))}))}}]); \ No newline at end of file diff --git a/build/static/js/6810.2e79aa63.chunk.js b/build/static/js/6810.2e79aa63.chunk.js deleted file mode 100644 index 33aa927..0000000 --- a/build/static/js/6810.2e79aa63.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[6810],{2046:(n,t,e)=>{e.d(t,{A:()=>S});var r=e(98587),a=e(58168),i=e(9950),o=e(72004),u=e(3484),s=e(89548),c=e(82053),l=e(15866),d=e(39766),h=e(59254),f=e(45558),m=e(1614);function p(n){return(0,m.Ay)("MuiInputAdornment",n)}const v=(0,f.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var A,g=e(18463),b=e(44414);const w=["children","className","component","disablePointerEvents","disableTypography","position","variant"],y=(0,h.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(n,t)=>{const{ownerState:e}=n;return[t.root,t["position".concat((0,s.A)(e.position))],!0===e.disablePointerEvents&&t.disablePointerEvents,t[e.variant]]}})((n=>{let{theme:t,ownerState:e}=n;return(0,a.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===e.variant&&{["&.".concat(v.positionStart,"&:not(.").concat(v.hiddenLabel,")")]:{marginTop:16}},"start"===e.position&&{marginRight:8},"end"===e.position&&{marginLeft:8},!0===e.disablePointerEvents&&{pointerEvents:"none"})})),S=i.forwardRef((function(n,t){const e=(0,g.b)({props:n,name:"MuiInputAdornment"}),{children:h,className:f,component:m="div",disablePointerEvents:v=!1,disableTypography:S=!1,position:R,variant:x}=e,C=(0,r.A)(e,w),k=(0,d.A)()||{};let E=x;x&&k.variant,k&&!E&&(E=k.variant);const M=(0,a.A)({},e,{hiddenLabel:k.hiddenLabel,size:k.size,disablePointerEvents:v,position:R,variant:E}),P=(n=>{const{classes:t,disablePointerEvents:e,hiddenLabel:r,position:a,size:i,variant:o}=n,c={root:["root",e&&"disablePointerEvents",a&&"position".concat((0,s.A)(a)),o,r&&"hiddenLabel",i&&"size".concat((0,s.A)(i))]};return(0,u.A)(c,p,t)})(M);return(0,b.jsx)(l.A.Provider,{value:null,children:(0,b.jsx)(y,(0,a.A)({as:m,ownerState:M,className:(0,o.A)(P.root,f),ref:t},C,{children:"string"!==typeof h||S?(0,b.jsxs)(i.Fragment,{children:["start"===R?A||(A=(0,b.jsx)("span",{className:"notranslate",children:"\u200b"})):null,h]}):(0,b.jsx)(c.A,{color:"text.secondary",children:h})}))})}))},7762:(n,t,e)=>{var r=e(24994);t.A=void 0;var a=r(e(79526)),i=e(44414);t.A=(0,a.default)((0,i.jsx)("path",{d:"M19 6.41 17.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"}),"Clear")},36150:(n,t,e)=>{e.d(t,{I:()=>i});var r=e(69347),a=e(1729);function i(n,t){return(0,a.t)(n,r.$,t)}},52097:(n,t,e)=>{e.d(t,{d7:()=>o});var r=e(9950);function a(n,t,e,a){var i=this,o=(0,r.useRef)(null),u=(0,r.useRef)(0),s=(0,r.useRef)(0),c=(0,r.useRef)(null),l=(0,r.useRef)([]),d=(0,r.useRef)(),h=(0,r.useRef)(),f=(0,r.useRef)(n),m=(0,r.useRef)(!0);f.current=n;var p="undefined"!=typeof window,v=!t&&0!==t&&p;if("function"!=typeof n)throw new TypeError("Expected a function");t=+t||0;var A=!!(e=e||{}).leading,g=!("trailing"in e)||!!e.trailing,b="maxWait"in e,w="debounceOnServer"in e&&!!e.debounceOnServer,y=b?Math.max(+e.maxWait||0,t):null;(0,r.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]);var S=(0,r.useMemo)((function(){var n=function(n){var t=l.current,e=d.current;return l.current=d.current=null,u.current=n,s.current=s.current||n,h.current=f.current.apply(e,t)},e=function(n,t){v&&cancelAnimationFrame(c.current),c.current=v?requestAnimationFrame(n):setTimeout(n,t)},r=function(n){if(!m.current)return!1;var e=n-o.current;return!o.current||e>=t||e<0||b&&n-u.current>=y},S=function(t){return c.current=null,g&&l.current?n(t):(l.current=d.current=null,h.current)},R=function n(){var a=Date.now();if(A&&s.current===u.current&&x(),r(a))return S(a);if(m.current){var i=t-(a-o.current),c=b?Math.min(i,y-(a-u.current)):i;e(n,c)}},x=function(){a&&a({})},C=function(){if(p||w){var a=Date.now(),s=r(a);if(l.current=[].slice.call(arguments),d.current=i,o.current=a,s){if(!c.current&&m.current)return u.current=o.current,e(R,t),A?n(o.current):h.current;if(b)return e(R,t),n(o.current)}return c.current||e(R,t),h.current}};return C.cancel=function(){c.current&&(v?cancelAnimationFrame(c.current):clearTimeout(c.current)),u.current=0,l.current=o.current=d.current=c.current=null},C.isPending=function(){return!!c.current},C.flush=function(){return c.current?S(Date.now()):h.current},C}),[A,b,t,y,g,v,p,w,a]);return S}function i(n,t){return n===t}function o(n,t,e){var o=e&&e.equalityFn||i,u=(0,r.useRef)(n),s=(0,r.useState)({})[1],c=a((0,r.useCallback)((function(n){u.current=n,s({})}),[s]),t,e,s),l=(0,r.useRef)(n);return o(l.current,n)||(c(n),l.current=n),[u.current,c]}},82917:(n,t,e)=>{e.d(t,{A:()=>L});var r=e(57528),a=e(98587),i=e(58168),o=e(9950),u=e(72004),s=e(88283),c=e(3484);function l(n){return String(n).match(/[\d.\-+]*\s*(.*)/)[1]||""}function d(n){return parseFloat(n)}var h=e(97497),f=e(59254),m=e(18463),p=e(45558),v=e(1614);function A(n){return(0,v.Ay)("MuiSkeleton",n)}(0,p.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var g,b,w,y,S=e(44414);const R=["animation","className","component","height","style","variant","width"];let x,C,k,E;const M=(0,s.i7)(x||(x=g||(g=(0,r.A)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"])))),P=(0,s.i7)(C||(C=b||(b=(0,r.A)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"])))),j=(0,f.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(n,t)=>{const{ownerState:e}=n;return[t.root,t[e.variant],!1!==e.animation&&t[e.animation],e.hasChildren&&t.withChildren,e.hasChildren&&!e.width&&t.fitContent,e.hasChildren&&!e.height&&t.heightAuto]}})((n=>{let{theme:t,ownerState:e}=n;const r=l(t.shape.borderRadius)||"px",a=d(t.shape.borderRadius);return(0,i.A)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:(0,h.X4)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===e.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(a).concat(r,"/").concat(Math.round(a/.6*10)/10).concat(r),"&:empty:before":{content:'"\\00a0"'}},"circular"===e.variant&&{borderRadius:"50%"},"rounded"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius},e.hasChildren&&{"& > *":{visibility:"hidden"}},e.hasChildren&&!e.width&&{maxWidth:"fit-content"},e.hasChildren&&!e.height&&{height:"auto"})}),(n=>{let{ownerState:t}=n;return"pulse"===t.animation&&(0,s.AH)(k||(k=w||(w=(0,r.A)(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "]))),M)}),(n=>{let{ownerState:t,theme:e}=n;return"wave"===t.animation&&(0,s.AH)(E||(E=y||(y=(0,r.A)(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 2s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ",",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "]))),P,(e.vars||e).palette.action.hover)})),L=o.forwardRef((function(n,t){const e=(0,m.b)({props:n,name:"MuiSkeleton"}),{animation:r="pulse",className:o,component:s="span",height:l,style:d,variant:h="text",width:f}=e,p=(0,a.A)(e,R),v=(0,i.A)({},e,{animation:r,component:s,variant:h,hasChildren:Boolean(p.children)}),g=(n=>{const{classes:t,variant:e,animation:r,hasChildren:a,width:i,height:o}=n,u={root:["root",e,r,a&&"withChildren",a&&!i&&"fitContent",a&&!o&&"heightAuto"]};return(0,c.A)(u,A,t)})(v);return(0,S.jsx)(j,(0,i.A)({as:s,ref:t,className:(0,u.A)(g.root,o),ownerState:v},p,{style:(0,i.A)({width:f,height:l},d)}))}))},97125:(n,t,e)=>{e.d(t,{A:()=>i});var r=e(23235),a=e(44414);const i=(0,r.A)((0,a.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchOutlined")}}]); \ No newline at end of file diff --git a/build/static/js/6849.5167b405.chunk.js b/build/static/js/6849.5167b405.chunk.js new file mode 100644 index 0000000..bb95183 --- /dev/null +++ b/build/static/js/6849.5167b405.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[6849],{23787:(e,t,n)=>{n.d(t,{FG:()=>h,nV:()=>x,pY:()=>p,pg:()=>u});var o=n(22555),r=n(53986),i=n(71392),l=n(55235),a=n(48738),s=n(2866),c=n(65908);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:t,scroll:n=!1,onScroll:l,sx:a}=e,s=(0,r.A)(e,d);return(0,c.jsx)(i.A,(0,o.A)((0,o.A)({spacing:1.25,onScroll:l,sx:(0,o.A)((0,o.A)({p:1.5},n&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),a)},s),{},{children:t}))},u=e=>{let{accent:t="#662582",header:n,footer:r,selected:i=!1,onClick:s,children:d,sx:x}=e;return(0,c.jsxs)(l.A,{elevation:0,onClick:s,sx:(0,o.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:i?t:"#e2e8f0",background:i?"".concat(t,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,c.jsx)(a.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:t}}),(0,c.jsxs)(a.A,{sx:{p:1.5,pl:2},children:[n,d,r]})]})},h=e=>{let{children:t,columns:n=2,sx:r}=e;return(0,c.jsx)(a.A,{sx:(0,o.A)({display:"grid",gridTemplateColumns:"repeat(".concat(n,", minmax(0, 1fr))"),gap:1,mt:1.25},r),children:t})},p=e=>{let{label:t,value:n,children:o,full:r=!1,align:i="left"}=e;return(0,c.jsxs)(a.A,{sx:{gridColumn:r?"1 / -1":"auto",minWidth:0,textAlign:i},children:[(0,c.jsx)(s.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:t}),(0,c.jsx)(a.A,{sx:{mt:.25,minWidth:0},children:void 0!==o?o:(0,c.jsx)(s.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==n&&void 0!==n?n:"\u2014"})})]})}},27001:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(71392),r=n(48738),i=n(2866),l=n(65908);function a(e){let{title:t,subtitle:n,live:a=!1,action:s}=e;return(0,l.jsxs)(o.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,l.jsxs)(r.A,{sx:{minWidth:0},children:[(0,l.jsx)(i.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:t}),n&&(0,l.jsxs)(o.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[a&&(0,l.jsx)(r.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,l.jsx)(i.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:n})]})]}),s&&(0,l.jsx)(r.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:s})]})}},35678:(e,t,n)=>{n.d(t,{A:()=>v});var o=n(85672),r=n(58689),i=n(19619),l=n(2866),a=n(5670),s=n(71392),c=n(80911),d=n(36117),x=n(46077),u=n.n(x),h=n(36738),p=n(80959),m=n(33090),j=n(52994),g=n(33323),b=n(75732),f=n(43962),A=n(65908);const v=e=>{let{open:t,onClose:n,onSelect:x}=e;const[v,w]=(0,o.useState)(null);return(0,A.jsxs)(r.A,{open:t,onClose:n,children:[(0,A.jsx)(i.A,{align:"left",children:(0,A.jsx)(l.A,{variant:"h4",children:"Select Filter Options"})}),(0,A.jsx)(a.A,{sx:{width:"100%"},className:"datedialog",children:(0,A.jsx)(d.U,{open:t,toggle:n,id:"daterange1",onChange:e=>{w({startDate:u()(e.startDate).format("YYYY-MM-DD"),endDate:u()(e.endDate).format("YYYY-MM-DD"),label:e.label||"custom"})},definedRanges:[{label:"Today",startDate:new Date,endDate:new Date},{label:"Yesterday",startDate:(0,h.A)(new Date,-1),endDate:(0,h.A)(new Date,-1)},{label:"Tomorrow",startDate:(0,h.A)(new Date,1),endDate:(0,h.A)(new Date,1)},{label:"This Week",startDate:(0,p.A)(new Date),endDate:(0,m.A)(new Date)},{label:"Last Week",startDate:(0,p.A)((0,j.A)(new Date,-1)),endDate:(0,m.A)((0,j.A)(new Date,-1))},{label:"Last 7 Days",startDate:(0,j.A)(new Date,-1),endDate:new Date},{label:"This Month",startDate:(0,g.A)(new Date),endDate:(0,b.A)(new Date)},{label:"Last Month",startDate:(0,g.A)((0,f.A)(new Date,-1)),endDate:(0,b.A)((0,f.A)(new Date,-1))}]})}),(0,A.jsx)(s.A,{direction:"row",justifyContent:"flex-end",sx:{width:"100%",p:2},children:(0,A.jsx)(c.A,{variant:"contained",size:"small",onClick:()=>{v?(x(v),n()):n()},children:"OK"})})]})}},36803:(e,t,n)=>{n.d(t,{A:()=>x});var o=n(84007),r=n(75953),i=n(71392),l=n(48738),a=n(2866),s=n(91834),c=n(97043),d=n(65908);function x(e){let{title:t,value:n,icon:x,color:u="#662582",caption:h,loading:p=!1}=e;return(0,d.jsx)(o.A,{sx:{height:"100%"},children:(0,d.jsx)(r.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,d.jsxs)(i.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,d.jsxs)(l.A,{sx:{minWidth:0,flex:1},children:[(0,d.jsx)(a.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t}),p?(0,d.jsx)(s.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,d.jsx)(a.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n}),h&&(0,d.jsx)(a.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:h})]}),x&&(0,d.jsx)(c.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(u,"14"),color:u,flexShrink:0},children:x})]})})})}},56311:(e,t,n)=>{n.d(t,{A:()=>h});var o=n(22555),r=n(85672),i=n(29776),l=n(43318),a=n(23440),s=n(11969),c=n(80795),d=n(51808),x=n(93811),u=n(65908);const h=e=>{let{value:t,onChange:n,onDebouncedChange:h,debounceTime:p=500,placeholder:m="Search (ctrl+k)",sx:j}=e;const g=(0,r.useRef)(null),[b]=(0,x.d7)(t,p);return(0,r.useEffect)((()=>{h&&h(b)}),[b,h]),(0,r.useEffect)((()=>{const e=e=>{var t;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(t=g.current)||void 0===t||t.focus());"Escape"===e.key&&document.activeElement===g.current&&g.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,u.jsx)(i.A,{sx:(0,o.A)({},j),inputRef:g,placeholder:m,autoComplete:"off",value:t,fullWidth:!0,onChange:e=>n(e.target.value),startAdornment:(0,u.jsx)(l.A,{position:"start",sx:{mr:-.5},children:(0,u.jsx)(c.A,{})}),endAdornment:(0,u.jsx)(a.A,{title:"Clear",children:(0,u.jsx)(s.A,{sx:{visibility:t?"visible":"hidden"},onClick:()=>n(""),children:(0,u.jsx)(d.A,{})})})})}},56849:(e,t,n)=>{n.r(t),n.d(t,{default:()=>oe});var o=n(22555),r=n(85672),i=n(66157),l=n(68320),a=n(55235),s=n(97043),c=n(23440),d=n(48738),x=n(2866),u=n(69039),h=n(76264),p=n(1939),m=n(71392),j=n(17488),g=n(86270),b=n(11969),f=n(1150),A=n(83209),v=n(72486),w=n(54016),S=n(50755),y=n(1596),C=n(81802),k=n(58571),z=n(81062),D=n(48952),W=n(46077),I=n.n(W),M=n(81425),Y=n(52351),P=n(35678),N=n(59212),T=n(27001),R=n(36803),F=n(56311),O=n(23787),L=n(96646),K=n(20466),B=n(65908),H=n(22686);I().extend(H);const E={radiusPill:999,radiusCard:14,shadowSoft:"0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05)",shadowMd:"0 1px 3px rgba(15, 23, 42, 0.06)",shadowPop:"0 12px 32px rgba(15, 23, 42, 0.12)",textPrimary:"#0f172a",textSecondary:"#64748b",textMuted:"#94a3b8",borderSubtle:"#e2e8f0",divider:"#f1f5f9",surface:"#ffffff",surfaceAlt:"#f8fafc"},Z=(e,t)=>"".concat(e).concat(t),U=e=>Z(e,"08"),X=e=>Z(e,"18"),$=e=>Z(e,"26"),q=e=>Z(e,"55"),V="#662582",G="#9255AB",J=e=>(0,B.jsx)(a.A,(0,o.A)((0,o.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:E.shadowPop,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),_=e=>{let{color:t,selected:n,size:o=24,children:r}=e;return(0,B.jsx)(s.A,{sx:{width:o,height:o,bgcolor:n?t:X(t),color:n?"#fff":t,transition:"background-color 0.15s, color 0.15s"},children:r})},Q=e=>{let{color:t,icon:n,label:o,tooltip:r,minWidth:i=80}=e;return(0,B.jsx)(c.A,{title:r||"",placement:"top",children:(0,B.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(q(t)),color:t,fontSize:11,fontWeight:800,minWidth:i,justifyContent:"center",whiteSpace:"nowrap"},children:[n,o]})})},ee=e=>{let{value:t,color:n="#ef4444",icon:o}=e;const r=Number(t)||0;return 0===r?(0,B.jsx)(x.A,{variant:"caption",sx:{color:E.textMuted,fontWeight:700},children:"0"}):(0,B.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:.875,py:.25,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(q(n)),color:n,fontSize:12,fontWeight:800,minWidth:36,justifyContent:"center"},children:[o,r]})},te=e=>({"& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,"& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat($(e))},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:1.5}}});function ne(e){return new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",minimumFractionDigits:2}).format(Number(e)||0)}function oe(){const e=(0,u.A)(),t=(0,h.A)(e.breakpoints.down("md")),n=(0,r.useRef)(null),W=(0,r.useRef)(null),[H,Z]=(0,r.useState)(0),[oe,re]=(0,r.useState)(I()().format("YYYY-MM-DD")),[ie,le]=(0,r.useState)(I()().format("YYYY-MM-DD")),[ae,se]=(0,r.useState)("All"),[ce,de]=(0,r.useState)(!1),[xe,ue]=(0,r.useState)(null),[he,pe]=(0,r.useState)("Today"),[me,je]=(0,r.useState)([]),[ge,be]=(0,r.useState)(!1),[fe,Ae]=(0,r.useState)(0),[ve,we]=(0,r.useState)(0),[Se,ye]=(0,r.useState)(null),[Ce,ke]=(0,r.useState)(null),[ze,De]=(0,r.useState)(""),[We,Ie]=(0,r.useState)(""),[,Me]=(0,r.useState)(0);(0,r.useEffect)((()=>{we(0),ye(null),Ae(0),ke(null),ue(null)}),[H]),(0,r.useEffect)((()=>{Ae(0),ke(null),ue(null)}),[ve]);const{data:Ye,isLoading:Pe,isError:Ne,error:Te}=(0,l.I)({queryKey:[H,ve,fe,oe,ie],queryFn:ve?M.U6:M.DK}),{data:Re}=(0,l.I)({queryKey:["tenantlist",H],queryFn:()=>(0,M.Mn)(H),enabled:0!==H}),{data:Fe}=(0,l.I)({queryKey:["gettenantlocations",ve],queryFn:()=>(0,M.DL)(ve),enabled:0!==ve}),Oe=(0,r.useMemo)((()=>Array.isArray(Ye)?Ye:[]),[Ye]),Le=(0,r.useMemo)((()=>{if(!We)return Oe;const e=We.toLowerCase().trim();return Oe.filter((t=>[t.tenantname,t.locationname,String(t.tenantid||""),String(t.locationid||"")].filter(Boolean).some((t=>String(t).toLowerCase().includes(e)))))}),[Oe,We]),Ke=(0,r.useMemo)((()=>Le.reduce(((e,t)=>(e.totalOrders+=Number(t.totalorders)||0,e.orderPend+=Number(t.Orderspending)||0,e.orderComplete+=Number(t.orderscompleted)||0,e.orderCancel+=Number(t.orderscancelled)||0,e.deliPend+=Number(t.deliveriespending)||0,e.deliComplete+=Number(t.deliveriescompleted)||0,e.deliCancel+=Number(t.deliveriescancelled)||0,e.collection+=Number(t.collectionamt)||0,e.kms+=Number(t.kms)||0,e.cumulativekms+=Number(t.cumulativekms)||0,e.amount+=Math.max(Number(t.charges)||0,Number(t.deliveryamt)||0),e)),{totalOrders:0,orderPend:0,orderComplete:0,orderCancel:0,deliPend:0,deliComplete:0,deliCancel:0,collection:0,kms:0,cumulativekms:0,amount:0})),[Le]),Be=async e=>{be(!0);try{var t;const n=await i.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/getuserreportsummary/?tenantid=").concat(e,"&fromdate=").concat(oe,"&todate=").concat(ie));je(Array.isArray(null===(t=n.data)||void 0===t?void 0:t.details)?n.data.details:[])}catch(n){(0,K.k)((null===n||void 0===n?void 0:n.message)||"Failed to load rider breakdown","error",2e3),je([])}finally{be(!1)}},He=async e=>{be(!0);try{var t;const n=await i.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/getriderlocationsummary/?tenantid=").concat(ve,"&locationid=").concat(e,"&fromdate=").concat(oe,"&todate=").concat(ie));je(Array.isArray(null===(t=n.data)||void 0===t?void 0:t.details)?n.data.details:[])}catch(n){(0,K.k)((null===n||void 0===n?void 0:n.message)||"Failed to load rider breakdown","error",2e3),je([])}finally{be(!1)}};Ne&&console.warn("ordersSummary error:",null===Te||void 0===Te?void 0:Te.message);const Ee=[{key:"orders",label:"Total Orders",color:V,icon:D.HU2,value:Ke.totalOrders},{key:"pending",label:"Orders Pending",color:"#f59e0b",icon:D.G6c,value:Ke.orderPend},{key:"completed",label:"Orders Completed",color:"#10b981",icon:D.cAP,value:Ke.orderComplete},{key:"amount",label:"Total Amount",color:"#0ea5e9",icon:D.S75,value:ne(Ke.amount)}],Ze=Boolean(ve);return(0,B.jsxs)(B.Fragment,{children:[(ge||Pe)&&(0,B.jsx)(Y.A,{}),(0,B.jsx)(T.A,{title:"Orders Summary",subtitle:"Live \xb7 ".concat(ae||"All Zones"," \xb7 ").concat(he),live:!0,action:(0,B.jsx)(N.A,{ref:n,locaName:ae,setAppId:Z,setLocoName:se,setPage:Me,pill:!0,accentColor:V,icon:(0,B.jsx)(D.HPi,{size:14}),placeholder:"Select Zone",paperComponent:J,sx:{width:{xs:"100%",sm:280},zIndex:100}})}),(0,B.jsx)(p.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:Ee.map((e=>{var t;const n=e.icon;return(0,B.jsx)(p.Ay,{item:!0,xs:6,sm:6,md:3,children:(0,B.jsx)(R.A,{title:e.label,value:null!==(t=e.value)&&void 0!==t?t:0,icon:(0,B.jsx)(n,{size:20}),color:e.color,loading:Pe})},e.key)}))}),(0,B.jsx)(a.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:E.radiusCard/8,borderTopRightRadius:E.radiusCard/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:E.borderSubtle,borderBottom:0,background:"#fff"},children:(0,B.jsxs)(m.A,{direction:{xs:"column",md:"row"},alignItems:{xs:"stretch",md:"center"},justifyContent:"space-between",spacing:1.25,children:[(0,B.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1.25,flexWrap:"wrap",children:[(0,B.jsx)(c.A,{title:"Date Filter",placement:"top",children:(0,B.jsxs)(d.A,{onClick:()=>de(!0),sx:{display:"inline-flex",alignItems:"center",gap:.75,px:1.25,py:.75,borderRadius:999,cursor:"pointer",bgcolor:U("#f59e0b"),border:"1.5px solid ".concat(q("#f59e0b")),color:"#f59e0b",fontWeight:800,fontSize:12,transition:"all 0.18s","&:hover":{borderColor:"#f59e0b",boxShadow:"0 0 0 3px ".concat($("#f59e0b"))}},children:[(0,B.jsx)(D.Ki0,{size:14}),"Orders \xb7 ",he," \xb7 ",I()(oe).format("DD/MM/YY")," \u2013 ",I()(ie).format("DD/MM/YY")]})}),(0,B.jsx)(j.A,{options:Re||[],value:Se,getOptionLabel:e=>(null===e||void 0===e?void 0:e.tenantname)||(null===e||void 0===e?void 0:e.label)||"",isOptionEqualToValue:(e,t)=>(null===e||void 0===e?void 0:e.tenantid)===(null===t||void 0===t?void 0:t.tenantid),PaperComponent:J,sx:(0,o.A)({minWidth:{xs:"100%",sm:220}},te(V)),onOpen:e=>{H||(e.preventDefault(),(0,K.k)("Please select a Zone first!","warning",3e3),setTimeout((()=>{var e;return null===(e=n.current)||void 0===e?void 0:e.focus()}),0))},onChange:(e,t,n)=>{"clear"!==n&&t?(we((null===t||void 0===t?void 0:t.tenantid)||0),ye(t),Ae((null===t||void 0===t?void 0:t.locationid)||0),ke(null)):(we(0),ye(null),Ae(0),ke(null))},renderInput:e=>(0,B.jsx)(g.A,(0,o.A)((0,o.A)({},e),{},{inputRef:W,placeholder:"Select Tenant",size:"small",InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:(0,B.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5},children:[(0,B.jsx)(_,{color:V,size:24,selected:Boolean(Se),children:(0,B.jsx)(D.nZo,{size:14})}),e.InputProps.startAdornment]})})}))}),(0,B.jsx)(j.A,{options:Fe||[],value:Ce,getOptionLabel:e=>null!==e&&void 0!==e&&e.locationname?"".concat(e.locationname).concat(e.suburb?" (".concat(e.suburb,")"):""):"",isOptionEqualToValue:(e,t)=>(null===e||void 0===e?void 0:e.locationid)===(null===t||void 0===t?void 0:t.locationid),PaperComponent:J,sx:(0,o.A)({minWidth:{xs:"100%",sm:220}},te("#0ea5e9")),onOpen:e=>{H||ve?ve||(e.preventDefault(),(0,K.k)("Please select a Tenant first!","warning",3e3),setTimeout((()=>{var e;return null===(e=W.current)||void 0===e?void 0:e.focus()}),0)):(e.preventDefault(),(0,K.k)("Please select Zone and Tenant first!","warning",3e3),setTimeout((()=>{var e;return null===(e=n.current)||void 0===e?void 0:e.focus()}),0))},onChange:(e,t,n)=>{"clear"!==n&&t?(Ae((null===t||void 0===t?void 0:t.locationid)||0),ke(t)):(Ae(0),ke(null))},renderInput:e=>(0,B.jsx)(g.A,(0,o.A)((0,o.A)({},e),{},{placeholder:"Select Location",size:"small",InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:(0,B.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5},children:[(0,B.jsx)(_,{color:"#0ea5e9",size:24,selected:Boolean(Ce),children:(0,B.jsx)(D.gwi,{size:14})}),e.InputProps.startAdornment]})})}))})]}),(0,B.jsx)(d.A,{sx:{width:{xs:"100%",md:280,lg:320},flex:{xs:"1 1 100%",md:"0 0 auto"}},children:(0,B.jsx)(F.A,{value:ze,onChange:De,onDebouncedChange:Ie,placeholder:"Search ".concat(Ze?"locations":"tenants"," (ctrl+k)"),sx:{m:0,width:"100%",borderRadius:999,bgcolor:"#ffffff","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:1.5},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat($(V))}}})})]})}),(0,B.jsxs)(a.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:E.radiusCard/8,borderBottomRightRadius:E.radiusCard/8,border:"1px solid",borderColor:E.borderSubtle,overflow:"hidden",background:"#fff"},children:[t?(0,B.jsxs)(B.Fragment,{children:[Pe&&(0,B.jsx)(O.nV,{children:[0,1,2,3].map((e=>(0,B.jsx)(O.pg,{accent:E.borderSubtle,children:(0,B.jsx)(d.A,{sx:{height:96}})},e)))}),!Pe&&0===Le.length&&(0,B.jsxs)(m.A,{alignItems:"center",spacing:1.5,sx:{py:6,px:2},children:[(0,B.jsx)(s.A,{sx:{width:64,height:64,bgcolor:X("#94a3b8"),color:E.textMuted},children:(0,B.jsx)(D.Z2J,{size:28})}),(0,B.jsxs)(x.A,{variant:"subtitle1",sx:{fontWeight:700,color:E.textPrimary},children:["No ",Ze?"locations":"tenants"," to show"]}),(0,B.jsx)(x.A,{variant:"caption",sx:{color:E.textSecondary,textAlign:"center",maxWidth:360},children:We?"Try a different keyword.":Ne?"Something went wrong fetching the summary. Try a different filter.":"Pick a zone, tenant, or date range to load the summary."})]}),!Pe&&Le.length>0&&(0,B.jsx)(O.nV,{children:Le.map(((e,t)=>{const n=Ze?e.locationname:e.tenantname,o=xe===n,r=Math.max(Number(e.charges)||0,Number(e.deliveryamt)||0),i=Ze?"#0ea5e9":V;return(0,B.jsxs)(O.pg,{accent:i,selected:o,header:(0,B.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,B.jsx)(_,{color:i,size:36,children:Ze?(0,B.jsx)(D.gwi,{size:18}):(0,B.jsx)(D.nZo,{size:18})}),(0,B.jsxs)(m.A,{sx:{minWidth:0,flex:1},children:[(0,B.jsx)(x.A,{variant:"subtitle2",sx:{fontWeight:700,color:E.textPrimary},noWrap:!0,children:(Ze?e.locationname:e.tenantname)||"\u2014"}),(0,B.jsxs)(x.A,{variant:"caption",sx:{color:E.textSecondary},children:["ID #",Ze?e.locationid:e.tenantid]})]}),(0,B.jsx)(c.A,{title:o?"Hide rider breakdown":"View rider breakdown",placement:"top",children:(0,B.jsx)(b.A,{size:"small",onClick:()=>{const t=!o;ue(t?n:null),t&&(je([]),Ze?He(e.locationid):Be(e.tenantid))},sx:{flexShrink:0,bgcolor:o?V:X(V),color:o?"#fff":V,border:"1px solid ".concat(q(V)),"&:hover":{bgcolor:V,color:"#fff"}},children:o?(0,B.jsx)(D.Xbk,{size:16}):(0,B.jsx)(D.j1Q,{size:16})})})]}),children:[(0,B.jsxs)(O.FG,{columns:3,children:[(0,B.jsx)(O.pY,{label:"All",align:"center",children:(0,B.jsx)(ee,{value:e.totalorders,color:V,icon:(0,B.jsx)(D.F6S,{size:11})})}),(0,B.jsx)(O.pY,{label:"Ord Pending",align:"center",children:(0,B.jsx)(ee,{value:e.Orderspending,color:"#f59e0b",icon:(0,B.jsx)(D.tX0,{size:11})})}),(0,B.jsx)(O.pY,{label:"Ord Cancelled",align:"center",children:(0,B.jsx)(ee,{value:e.orderscancelled,color:"#ef4444",icon:(0,B.jsx)(D.uDv,{size:11})})}),(0,B.jsx)(O.pY,{label:"Ord Completed",align:"center",children:(0,B.jsx)(ee,{value:e.orderscompleted,color:"#10b981",icon:(0,B.jsx)(D.mU9,{size:11})})}),(0,B.jsx)(O.pY,{label:"Del Pending",align:"center",children:(0,B.jsx)(ee,{value:e.deliveriespending,color:"#f59e0b",icon:(0,B.jsx)(D.tX0,{size:11})})}),(0,B.jsx)(O.pY,{label:"Del Cancelled",align:"center",children:(0,B.jsx)(ee,{value:e.deliveriescancelled,color:"#ef4444",icon:(0,B.jsx)(D.uDv,{size:11})})}),(0,B.jsx)(O.pY,{label:"Del Completed",align:"center",children:(0,B.jsx)(ee,{value:e.deliveriescompleted,color:"#10b981",icon:(0,B.jsx)(D.mU9,{size:11})})}),(0,B.jsx)(O.pY,{label:"Collection",align:"center",children:(0,B.jsx)(Q,{color:"#f59e0b",icon:(0,B.jsx)(D.YHz,{size:11}),label:Number(e.collectionamt||0).toFixed(2),tooltip:"Collection Amount",minWidth:90})}),(0,B.jsx)(O.pY,{label:"Amount",align:"center",children:(0,B.jsx)(Q,{color:V,icon:(0,B.jsx)(D.YHz,{size:11}),label:ne(r).replace("\u20b9","").trim(),tooltip:"Total Amount",minWidth:100})}),(0,B.jsx)(O.pY,{label:"KMS",align:"center",children:(0,B.jsx)(Q,{color:"#ef4444",icon:(0,B.jsx)(D.xI$,{size:11}),label:"".concat(Number(e.kms||0).toFixed(2)," km"),tooltip:"KMS"})}),(0,B.jsx)(O.pY,{label:"Actual KMS",align:"center",children:(0,B.jsx)(Q,{color:"#10b981",icon:(0,B.jsx)(D.xI$,{size:11}),label:"".concat(Number(e.cumulativekms||0).toFixed(2)," km"),tooltip:"Actual KMS"})})]}),(0,B.jsx)(f.A,{in:o,timeout:"auto",unmountOnExit:!0,children:(0,B.jsxs)(d.A,{sx:{mt:1.5},children:[(0,B.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1,sx:{mb:1},children:[(0,B.jsx)(_,{color:V,size:24,selected:!0,children:(0,B.jsx)(D.Itr,{size:12})}),(0,B.jsx)(x.A,{variant:"caption",sx:{fontWeight:800,color:E.textPrimary,letterSpacing:.6,textTransform:"uppercase"},children:"Rider Breakdown"})]}),ge||me&&0!==me.length?(0,B.jsx)(m.A,{spacing:1,children:me.map(((e,t)=>{const n=Math.max(Number(e.charges)||0,Number(e.deliveryamt)||0);return(0,B.jsxs)(O.pg,{accent:V,children:[(0,B.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:.75,children:[(0,B.jsx)(_,{color:V,size:28,children:(0,B.jsx)(D.LTk,{size:14})}),(0,B.jsxs)(m.A,{sx:{minWidth:0},children:[(0,B.jsx)(x.A,{variant:"subtitle2",sx:{fontWeight:700,color:E.textPrimary},noWrap:!0,children:"".concat(e.firstname||""," ").concat(e.lastname||"").trim()||"\u2014"}),(0,B.jsx)(x.A,{variant:"caption",sx:{color:E.textSecondary},children:e.ridercontact||"ID #".concat(e.userid)})]})]}),(0,B.jsxs)(O.FG,{columns:3,children:[(0,B.jsx)(O.pY,{label:"Orders",align:"center",children:(0,B.jsx)(ee,{value:e.orderscreated,color:V,icon:(0,B.jsx)(D.F6S,{size:10})})}),(0,B.jsx)(O.pY,{label:"Deliveries",align:"center",children:(0,B.jsx)(ee,{value:e.totalorders,color:"#0ea5e9",icon:(0,B.jsx)(D.F6S,{size:10})})}),(0,B.jsx)(O.pY,{label:"Pending",align:"center",children:(0,B.jsx)(ee,{value:e.deliveriespending,color:"#f59e0b",icon:(0,B.jsx)(D.tX0,{size:10})})}),(0,B.jsx)(O.pY,{label:"Cancelled",align:"center",children:(0,B.jsx)(ee,{value:e.deliveriescancelled,color:"#ef4444",icon:(0,B.jsx)(D.uDv,{size:10})})}),(0,B.jsx)(O.pY,{label:"Completed",align:"center",children:(0,B.jsx)(ee,{value:e.deliveriescompleted,color:"#10b981",icon:(0,B.jsx)(D.mU9,{size:10})})}),(0,B.jsx)(O.pY,{label:"Collection",align:"center",children:(0,B.jsx)(Q,{color:"#f59e0b",icon:(0,B.jsx)(D.YHz,{size:10}),label:Number(e.collectionamt||0).toFixed(2),tooltip:"Collection",minWidth:80})}),(0,B.jsx)(O.pY,{label:"KMS",align:"center",children:(0,B.jsx)(Q,{color:"#ef4444",icon:(0,B.jsx)(D.xI$,{size:10}),label:"".concat(Number(e.kms||0).toFixed(2)," km"),tooltip:"KMS"})}),(0,B.jsx)(O.pY,{label:"Actual KMS",align:"center",children:(0,B.jsx)(Q,{color:"#10b981",icon:(0,B.jsx)(D.xI$,{size:10}),label:"".concat(Number(e.cumulativekms||0).toFixed(2)," km"),tooltip:"Actual KMS"})}),(0,B.jsx)(O.pY,{label:"Amount",align:"center",children:(0,B.jsx)(Q,{color:V,icon:(0,B.jsx)(D.YHz,{size:10}),label:ne(n).replace("\u20b9","").trim(),tooltip:"Total Amount",minWidth:100})})]})]},"".concat(e.userid,"-").concat(t))}))}):(0,B.jsx)(x.A,{variant:"caption",sx:{color:E.textMuted,display:"block",py:1,textAlign:"center"},children:"No rider activity for this row."})]})})]},"".concat(n,"-").concat(t))}))})]}):(0,B.jsx)(A.A,{sx:{maxHeight:{xs:"calc(100vh - 280px)",md:"calc(100vh - 240px)"},"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:q(V),borderRadius:8,"&:hover":{backgroundColor:V}},"&::-webkit-scrollbar-track":{backgroundColor:E.surfaceAlt}},children:(0,B.jsxs)(v.A,{stickyHeader:!0,sx:{minWidth:{xs:1080,md:1200}},children:[(0,B.jsxs)(w.A,{children:[(0,B.jsxs)(S.A,{sx:{"& th":{backgroundColor:E.surfaceAlt,color:E.textSecondary,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(E.borderSubtle),py:{xs:1,md:1.25},px:{xs:1,md:1.5}}},children:[(0,B.jsx)(y.A,{rowSpan:2,children:"#"}),(0,B.jsx)(y.A,{rowSpan:2,children:Ze?"Location":"Tenant"}),(0,B.jsx)(y.A,{align:"center",rowSpan:2,children:"All"}),(0,B.jsx)(y.A,{align:"center",colSpan:3,sx:{bgcolor:"".concat(U("#ef4444")," !important"),color:"#ef4444 !important"},children:"Orders"}),(0,B.jsx)(y.A,{align:"center",colSpan:3,sx:{bgcolor:"".concat(U("#10b981")," !important"),color:"#10b981 !important"},children:"Deliveries"}),(0,B.jsx)(y.A,{align:"center",rowSpan:2,children:"Collection"}),(0,B.jsx)(y.A,{align:"center",rowSpan:2,children:"KMS / Actual"}),(0,B.jsx)(y.A,{align:"center",rowSpan:2,children:"Amount"}),(0,B.jsx)(y.A,{align:"right",rowSpan:2,children:"Action"})]}),(0,B.jsxs)(S.A,{sx:{"& th":{backgroundColor:E.surfaceAlt,color:E.textSecondary,fontSize:{xs:10,md:10.5},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(E.borderSubtle),py:{xs:.75,md:1},px:{xs:1,md:1.5}}},children:[(0,B.jsx)(y.A,{align:"center",sx:{bgcolor:"".concat(U("#ef4444")," !important"),color:"#f59e0b !important"},children:"Pending"}),(0,B.jsx)(y.A,{align:"center",sx:{bgcolor:"".concat(U("#ef4444")," !important"),color:"#ef4444 !important"},children:"Cancelled"}),(0,B.jsx)(y.A,{align:"center",sx:{bgcolor:"".concat(U("#ef4444")," !important"),color:"#10b981 !important"},children:"Completed"}),(0,B.jsx)(y.A,{align:"center",sx:{bgcolor:"".concat(U("#10b981")," !important"),color:"#f59e0b !important"},children:"Pending"}),(0,B.jsx)(y.A,{align:"center",sx:{bgcolor:"".concat(U("#10b981")," !important"),color:"#ef4444 !important"},children:"Cancelled"}),(0,B.jsx)(y.A,{align:"center",sx:{bgcolor:"".concat(U("#10b981")," !important"),color:"#10b981 !important"},children:"Completed"})]})]}),(0,B.jsxs)(C.A,{children:[Pe&&(0,B.jsx)(L.r,{col:9}),!Pe&&0===Le.length&&(0,B.jsx)(S.A,{children:(0,B.jsx)(y.A,{colSpan:13,sx:{py:6},children:(0,B.jsxs)(m.A,{alignItems:"center",spacing:1.5,children:[(0,B.jsx)(s.A,{sx:{width:64,height:64,bgcolor:X("#94a3b8"),color:E.textMuted},children:(0,B.jsx)(D.Z2J,{size:28})}),(0,B.jsxs)(x.A,{variant:"subtitle1",sx:{fontWeight:700,color:E.textPrimary},children:["No ",Ze?"locations":"tenants"," to show"]}),(0,B.jsx)(x.A,{variant:"caption",sx:{color:E.textSecondary,textAlign:"center",maxWidth:360},children:We?"Try a different keyword.":Ne?"Something went wrong fetching the summary. Try a different filter.":"Pick a zone, tenant, or date range to load the summary."})]})})}),Le.map(((e,t)=>{const n=Ze?e.locationname:e.tenantname,o=xe===n,i=Math.max(Number(e.charges)||0,Number(e.deliveryamt)||0);return(0,B.jsxs)(r.Fragment,{children:[(0,B.jsxs)(S.A,{sx:{transition:"background-color 0.15s","& td":{borderBottom:o?"none":"1px solid ".concat(E.divider),py:{xs:1,md:1.25},px:{xs:1,md:1.5}},"&:hover":{backgroundColor:o?"#fff":E.surfaceAlt},bgcolor:o?U(V):"transparent"},children:[(0,B.jsx)(y.A,{children:(0,B.jsx)(x.A,{variant:"caption",sx:{fontWeight:700,color:E.textMuted},children:String(t+1).padStart(2,"0")})}),(0,B.jsx)(y.A,{children:(0,B.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,B.jsx)(_,{color:Ze?"#0ea5e9":V,size:36,children:Ze?(0,B.jsx)(D.gwi,{size:18}):(0,B.jsx)(D.nZo,{size:18})}),(0,B.jsxs)(m.A,{children:[(0,B.jsx)(x.A,{variant:"subtitle2",sx:{fontWeight:700,color:E.textPrimary,whiteSpace:"nowrap"},children:(Ze?e.locationname:e.tenantname)||"\u2014"}),(0,B.jsxs)(x.A,{variant:"caption",sx:{color:E.textSecondary},children:["ID #",Ze?e.locationid:e.tenantid]})]})]})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.totalorders,color:V,icon:(0,B.jsx)(D.F6S,{size:11})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.Orderspending,color:"#f59e0b",icon:(0,B.jsx)(D.tX0,{size:11})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.orderscancelled,color:"#ef4444",icon:(0,B.jsx)(D.uDv,{size:11})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.orderscompleted,color:"#10b981",icon:(0,B.jsx)(D.mU9,{size:11})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.deliveriespending,color:"#f59e0b",icon:(0,B.jsx)(D.tX0,{size:11})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.deliveriescancelled,color:"#ef4444",icon:(0,B.jsx)(D.uDv,{size:11})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.deliveriescompleted,color:"#10b981",icon:(0,B.jsx)(D.mU9,{size:11})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(Q,{color:"#f59e0b",icon:(0,B.jsx)(D.YHz,{size:11}),label:Number(e.collectionamt||0).toFixed(2),tooltip:"Collection Amount",minWidth:90})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsxs)(m.A,{direction:"column",spacing:.5,alignItems:"center",children:[(0,B.jsx)(Q,{color:"#ef4444",icon:(0,B.jsx)(D.xI$,{size:11}),label:"".concat(Number(e.kms||0).toFixed(2)," km"),tooltip:"KMS"}),(0,B.jsx)(Q,{color:"#10b981",icon:(0,B.jsx)(D.xI$,{size:11}),label:"".concat(Number(e.cumulativekms||0).toFixed(2)," km"),tooltip:"Actual KMS"})]})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(Q,{color:V,icon:(0,B.jsx)(D.YHz,{size:11}),label:ne(i).replace("\u20b9","").trim(),tooltip:"Total Amount",minWidth:100})}),(0,B.jsx)(y.A,{align:"right",children:(0,B.jsx)(c.A,{title:o?"Hide rider breakdown":"View rider breakdown",placement:"top",children:(0,B.jsx)(b.A,{size:"small",onClick:()=>{const t=!o;ue(t?n:null),t&&(je([]),Ze?He(e.locationid):Be(e.tenantid))},sx:{bgcolor:o?V:X(V),color:o?"#fff":V,border:"1px solid ".concat(q(V)),"&:hover":{bgcolor:V,color:"#fff"}},children:o?(0,B.jsx)(D.Xbk,{size:16}):(0,B.jsx)(D.j1Q,{size:16})})})})]}),o&&(0,B.jsx)(S.A,{children:(0,B.jsx)(y.A,{colSpan:13,sx:{p:0,borderBottom:"1px solid ".concat(E.divider),bgcolor:U(V)},children:(0,B.jsx)(f.A,{in:o,timeout:"auto",unmountOnExit:!0,children:(0,B.jsx)(d.A,{sx:{p:{xs:1,md:2}},children:(0,B.jsxs)(a.A,{elevation:0,sx:{borderRadius:E.radiusCard/8,border:"1px solid",borderColor:E.borderSubtle,overflow:"hidden",boxShadow:E.shadowSoft},children:[(0,B.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1,sx:{px:2,py:1.25,background:"#ffffff",borderBottom:"1px solid ".concat(E.borderSubtle)},children:[(0,B.jsx)(_,{color:V,size:28,selected:!0,children:(0,B.jsx)(D.Itr,{size:14})}),(0,B.jsxs)(x.A,{variant:"caption",sx:{fontWeight:700,color:E.textPrimary,letterSpacing:.6,textTransform:"uppercase"},children:["Rider Breakdown \xb7 ",Ze?e.locationname:e.tenantname]})]}),(0,B.jsxs)(v.A,{size:"small",children:[(0,B.jsx)(w.A,{children:(0,B.jsxs)(S.A,{sx:{"& th":{backgroundColor:E.surfaceAlt,color:E.textSecondary,fontSize:10,fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(E.borderSubtle),py:1,px:1.5}},children:[(0,B.jsx)(y.A,{children:"#"}),(0,B.jsx)(y.A,{children:"Rider"}),(0,B.jsx)(y.A,{align:"center",children:"Orders"}),(0,B.jsx)(y.A,{align:"center",children:"Deliveries"}),(0,B.jsx)(y.A,{align:"center",children:"Pending"}),(0,B.jsx)(y.A,{align:"center",children:"Cancelled"}),(0,B.jsx)(y.A,{align:"center",children:"Completed"}),(0,B.jsx)(y.A,{align:"center",children:"Collection"}),(0,B.jsx)(y.A,{align:"center",children:"KMS / Actual"}),(0,B.jsx)(y.A,{align:"center",children:"Amount"})]})}),(0,B.jsxs)(C.A,{children:[ge&&(0,B.jsx)(L.r,{col:6}),ge||me&&0!==me.length?me.map(((e,t)=>{const n=Math.max(Number(e.charges)||0,Number(e.deliveryamt)||0);return(0,B.jsxs)(S.A,{sx:{"& td":{borderBottom:"1px solid ".concat(E.divider),py:1,px:1.5},"&:hover":{backgroundColor:E.surfaceAlt}},children:[(0,B.jsx)(y.A,{children:(0,B.jsx)(x.A,{variant:"caption",sx:{fontWeight:700,color:E.textMuted},children:String(t+1).padStart(2,"0")})}),(0,B.jsx)(y.A,{children:(0,B.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:.75,children:[(0,B.jsx)(_,{color:V,size:28,children:(0,B.jsx)(D.LTk,{size:14})}),(0,B.jsxs)(m.A,{children:[(0,B.jsx)(x.A,{variant:"subtitle2",sx:{fontWeight:700,color:E.textPrimary,whiteSpace:"nowrap"},children:"".concat(e.firstname||""," ").concat(e.lastname||"").trim()||"\u2014"}),(0,B.jsx)(x.A,{variant:"caption",sx:{color:E.textSecondary},children:e.ridercontact||"ID #".concat(e.userid)})]})]})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.orderscreated,color:V,icon:(0,B.jsx)(D.F6S,{size:10})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.totalorders,color:"#0ea5e9",icon:(0,B.jsx)(D.F6S,{size:10})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.deliveriespending,color:"#f59e0b",icon:(0,B.jsx)(D.tX0,{size:10})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.deliveriescancelled,color:"#ef4444",icon:(0,B.jsx)(D.uDv,{size:10})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.deliveriescompleted,color:"#10b981",icon:(0,B.jsx)(D.mU9,{size:10})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(Q,{color:"#f59e0b",icon:(0,B.jsx)(D.YHz,{size:10}),label:Number(e.collectionamt||0).toFixed(2),tooltip:"Collection",minWidth:80})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsxs)(m.A,{direction:"column",spacing:.5,alignItems:"center",children:[(0,B.jsx)(Q,{color:"#ef4444",icon:(0,B.jsx)(D.xI$,{size:10}),label:"".concat(Number(e.kms||0).toFixed(2)," km"),tooltip:"KMS"}),(0,B.jsx)(Q,{color:"#10b981",icon:(0,B.jsx)(D.xI$,{size:10}),label:"".concat(Number(e.cumulativekms||0).toFixed(2)," km"),tooltip:"Actual KMS"})]})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(Q,{color:V,icon:(0,B.jsx)(D.YHz,{size:10}),label:ne(n).replace("\u20b9","").trim(),tooltip:"Total Amount",minWidth:100})})]},"".concat(e.userid,"-").concat(t))})):(0,B.jsx)(S.A,{children:(0,B.jsx)(y.A,{colSpan:10,sx:{py:3},children:(0,B.jsx)(x.A,{variant:"caption",sx:{color:E.textMuted,textAlign:"center",display:"block"},children:"No rider activity for this row."})})})]})]})]})})})})})]},"".concat(n,"-").concat(t))}))]})]})}),Le.length>0&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(k.A,{}),(0,B.jsxs)(m.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1.5,flexWrap:"wrap",sx:{px:2,py:1.5,background:"#ffffff"},children:[(0,B.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1,flexWrap:"wrap",children:[(0,B.jsx)(x.A,{variant:"caption",sx:{fontWeight:800,color:E.textSecondary,letterSpacing:.6,textTransform:"uppercase"},children:"Grand Total"}),(0,B.jsx)(z.A,{size:"small",label:"".concat(Ke.totalOrders," orders"),sx:{fontWeight:700,bgcolor:X(V),color:V,border:"1px solid ".concat(q(V))}}),(0,B.jsx)(z.A,{size:"small",label:"".concat(Ke.deliComplete," delivered"),sx:{fontWeight:700,bgcolor:X("#10b981"),color:"#10b981",border:"1px solid ".concat(q("#10b981"))}}),(0,B.jsx)(z.A,{size:"small",label:"".concat(Ke.deliPend," pending"),sx:{fontWeight:700,bgcolor:X("#f59e0b"),color:"#f59e0b",border:"1px solid ".concat(q("#f59e0b"))}})]}),(0,B.jsx)(z.A,{label:ne(Ke.amount),sx:{fontWeight:800,fontSize:13,color:"#fff",background:"linear-gradient(135deg, ".concat(V," 0%, ").concat(G," 100%)"),boxShadow:"0 6px 16px ".concat($(V))}})]})]})]}),(0,B.jsx)(P.A,{open:ce,onClose:()=>de(!1),onSelect:e=>{re(e.startDate),le(e.endDate),pe(e.label)}})]})}},59212:(e,t,n)=>{n.d(t,{A:()=>u});var o=n(22555),r=n(85672),i=n(71392),l=n(97043),a=n(17488),s=n(86270),c=n(66157),d=n(48952),x=n(65908);const u=(0,r.forwardRef)(((e,t)=>{let{setAppId:n,setLocoName:u,setPage:h,sx:p,textfeildSx:m,textfieldSx:j,pill:g=!1,accentColor:b="#6366f1",icon:f,placeholder:A="Select Zone",paperComponent:v}=e;const[w,S]=(0,r.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,r.useEffect)((()=>{0===w.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const t=await c.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(t.data.status){const e=[...t.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),S(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[w.length]);const y=e=>"".concat(b).concat(e),C=y("26"),k=y("18"),z=g?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(C)},"&.Mui-focused fieldset":{borderColor:b,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},D=g&&(0,x.jsx)(i.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,x.jsx)(l.A,{sx:{width:24,height:24,bgcolor:k,color:b,transition:"background-color 0.15s, color 0.15s"},children:f||(0,x.jsx)(d.HPi,{size:14})})});return(0,x.jsx)(a.A,{id:"location-autocomplete",options:w||[],getOptionLabel:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.locationname)&&void 0!==t?t:""},PaperComponent:v,sx:(0,o.A)({},p),onChange:(e,t,o)=>{"clear"===o?(null===n||void 0===n||n(0),null===u||void 0===u||u(""),null===h||void 0===h||h(0)):t&&(null===n||void 0===n||n(t.applocationid),null===u||void 0===u||u(t.locationname),null===h||void 0===h||h(0))},renderInput:e=>g?(0,x.jsx)(s.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,placeholder:A,InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:D}),sx:(0,o.A)((0,o.A)({},z),j||m||{})})):(0,x.jsx)(s.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,label:"Select Zones",sx:(0,o.A)({},j||m||{})}))})}))},68320:(e,t,n)=>{n.d(t,{I:()=>i});var o=n(48149),r=n(59363);function i(e,t){return(0,r.t)(e,o.$,t)}},96646:(e,t,n)=>{n.d(t,{r:()=>s});var o=n(50755),r=n(1596),i=n(91834),l=n(71392),a=n(65908);const s=e=>{let{rowsPerPage:t=5,col:n=1}=e;return(0,a.jsx)(a.Fragment,{children:Array.from(new Array(t)).map(((e,t)=>(0,a.jsxs)(o.A,{children:[(0,a.jsx)(r.A,{children:(0,a.jsx)(i.A,{variant:"circular",width:24,height:24})}),(0,a.jsx)(r.A,{children:(0,a.jsx)(i.A,{variant:"text",width:30})}),Array.from({length:n}).map(((e,t)=>(0,a.jsx)(r.A,{children:(0,a.jsxs)(l.A,{spacing:.5,children:[(0,a.jsx)(i.A,{variant:"text",width:100}),(0,a.jsx)(i.A,{variant:"text",width:80})]})},t))),(0,a.jsx)(r.A,{children:(0,a.jsx)(i.A,{variant:"text",width:150})}),(0,a.jsx)(r.A,{children:(0,a.jsx)(i.A,{variant:"rounded",width:60,height:24})}),(0,a.jsx)(r.A,{align:"center",children:(0,a.jsxs)(l.A,{direction:"row",spacing:1,justifyContent:"flex-end",children:[(0,a.jsx)(i.A,{variant:"circular",width:28,height:28}),(0,a.jsx)(i.A,{variant:"circular",width:28,height:28})]})})]},t)))})}}}]); \ No newline at end of file diff --git a/build/static/js/6849.958bd3ec.chunk.js b/build/static/js/6849.958bd3ec.chunk.js deleted file mode 100644 index 07a3fea..0000000 --- a/build/static/js/6849.958bd3ec.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[6849],{23787:(e,t,n)=>{n.d(t,{FG:()=>h,nV:()=>x,pY:()=>p,pg:()=>u});var o=n(89379),r=n(80045),i=n(93230),l=n(2235),a=n(16491),s=n(82053),c=n(44414);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:t,scroll:n=!1,onScroll:l,sx:a}=e,s=(0,r.A)(e,d);return(0,c.jsx)(i.A,(0,o.A)((0,o.A)({spacing:1.25,onScroll:l,sx:(0,o.A)((0,o.A)({p:1.5},n&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),a)},s),{},{children:t}))},u=e=>{let{accent:t="#662582",header:n,footer:r,selected:i=!1,onClick:s,children:d,sx:x}=e;return(0,c.jsxs)(l.A,{elevation:0,onClick:s,sx:(0,o.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:i?t:"#e2e8f0",background:i?"".concat(t,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,c.jsx)(a.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:t}}),(0,c.jsxs)(a.A,{sx:{p:1.5,pl:2},children:[n,d,r]})]})},h=e=>{let{children:t,columns:n=2,sx:r}=e;return(0,c.jsx)(a.A,{sx:(0,o.A)({display:"grid",gridTemplateColumns:"repeat(".concat(n,", minmax(0, 1fr))"),gap:1,mt:1.25},r),children:t})},p=e=>{let{label:t,value:n,children:o,full:r=!1,align:i="left"}=e;return(0,c.jsxs)(a.A,{sx:{gridColumn:r?"1 / -1":"auto",minWidth:0,textAlign:i},children:[(0,c.jsx)(s.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:t}),(0,c.jsx)(a.A,{sx:{mt:.25,minWidth:0},children:void 0!==o?o:(0,c.jsx)(s.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==n&&void 0!==n?n:"\u2014"})})]})}},27001:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(93230),r=n(16491),i=n(82053),l=n(44414);function a(e){let{title:t,subtitle:n,live:a=!1,action:s}=e;return(0,l.jsxs)(o.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,l.jsxs)(r.A,{sx:{minWidth:0},children:[(0,l.jsx)(i.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:t}),n&&(0,l.jsxs)(o.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[a&&(0,l.jsx)(r.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,l.jsx)(i.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:n})]})]}),s&&(0,l.jsx)(r.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:s})]})}},35678:(e,t,n)=>{n.d(t,{A:()=>v});var o=n(9950),r=n(96583),i=n(40033),l=n(82053),a=n(28170),s=n(93230),c=n(10226),d=n(55916),x=n(4159),u=n.n(x),h=n(56712),p=n(81417),m=n(96600),j=n(53132),g=n(94289),b=n(57326),f=n(50624),A=n(44414);const v=e=>{let{open:t,onClose:n,onSelect:x}=e;const[v,w]=(0,o.useState)(null);return(0,A.jsxs)(r.A,{open:t,onClose:n,children:[(0,A.jsx)(i.A,{align:"left",children:(0,A.jsx)(l.A,{variant:"h4",children:"Select Filter Options"})}),(0,A.jsx)(a.A,{sx:{width:"100%"},className:"datedialog",children:(0,A.jsx)(d.U,{open:t,toggle:n,id:"daterange1",onChange:e=>{w({startDate:u()(e.startDate).format("YYYY-MM-DD"),endDate:u()(e.endDate).format("YYYY-MM-DD"),label:e.label||"custom"})},definedRanges:[{label:"Today",startDate:new Date,endDate:new Date},{label:"Yesterday",startDate:(0,h.A)(new Date,-1),endDate:(0,h.A)(new Date,-1)},{label:"Tomorrow",startDate:(0,h.A)(new Date,1),endDate:(0,h.A)(new Date,1)},{label:"This Week",startDate:(0,p.A)(new Date),endDate:(0,m.A)(new Date)},{label:"Last Week",startDate:(0,p.A)((0,j.A)(new Date,-1)),endDate:(0,m.A)((0,j.A)(new Date,-1))},{label:"Last 7 Days",startDate:(0,j.A)(new Date,-1),endDate:new Date},{label:"This Month",startDate:(0,g.A)(new Date),endDate:(0,b.A)(new Date)},{label:"Last Month",startDate:(0,g.A)((0,f.A)(new Date,-1)),endDate:(0,b.A)((0,f.A)(new Date,-1))}]})}),(0,A.jsx)(s.A,{direction:"row",justifyContent:"flex-end",sx:{width:"100%",p:2},children:(0,A.jsx)(c.A,{variant:"contained",size:"small",onClick:()=>{v?(x(v),n()):n()},children:"OK"})})]})}},36150:(e,t,n)=>{n.d(t,{I:()=>i});var o=n(69347),r=n(1729);function i(e,t){return(0,r.t)(e,o.$,t)}},36803:(e,t,n)=>{n.d(t,{A:()=>x});var o=n(48089),r=n(50704),i=n(93230),l=n(16491),a=n(82053),s=n(82917),c=n(41413),d=n(44414);function x(e){let{title:t,value:n,icon:x,color:u="#662582",caption:h,loading:p=!1}=e;return(0,d.jsx)(o.A,{sx:{height:"100%"},children:(0,d.jsx)(r.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,d.jsxs)(i.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,d.jsxs)(l.A,{sx:{minWidth:0,flex:1},children:[(0,d.jsx)(a.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t}),p?(0,d.jsx)(s.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,d.jsx)(a.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n}),h&&(0,d.jsx)(a.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:h})]}),x&&(0,d.jsx)(c.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(u,"14"),color:u,flexShrink:0},children:x})]})})})}},56311:(e,t,n)=>{n.d(t,{A:()=>h});var o=n(89379),r=n(9950),i=n(2660),l=n(2046),a=n(83274),s=n(25333),c=n(97125),d=n(7762),x=n(52097),u=n(44414);const h=e=>{let{value:t,onChange:n,onDebouncedChange:h,debounceTime:p=500,placeholder:m="Search (ctrl+k)",sx:j}=e;const g=(0,r.useRef)(null),[b]=(0,x.d7)(t,p);return(0,r.useEffect)((()=>{h&&h(b)}),[b,h]),(0,r.useEffect)((()=>{const e=e=>{var t;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(t=g.current)||void 0===t||t.focus());"Escape"===e.key&&document.activeElement===g.current&&g.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,u.jsx)(i.A,{sx:(0,o.A)({},j),inputRef:g,placeholder:m,autoComplete:"off",value:t,fullWidth:!0,onChange:e=>n(e.target.value),startAdornment:(0,u.jsx)(l.A,{position:"start",sx:{mr:-.5},children:(0,u.jsx)(c.A,{})}),endAdornment:(0,u.jsx)(a.A,{title:"Clear",children:(0,u.jsx)(s.A,{sx:{visibility:t?"visible":"hidden"},onClick:()=>n(""),children:(0,u.jsx)(d.A,{})})})})}},56849:(e,t,n)=>{n.r(t),n.d(t,{default:()=>oe});var o=n(89379),r=n(9950),i=n(26910),l=n(36150),a=n(2235),s=n(41413),c=n(83274),d=n(16491),x=n(82053),u=n(14857),h=n(47223),p=n(60899),m=n(93230),j=n(77922),g=n(29925),b=n(25333),f=n(33738),A=n(1320),v=n(15769),w=n(69780),S=n(9213),y=n(21671),C=n(34075),k=n(74745),z=n(25277),D=n(31222),W=n(4159),I=n.n(W),M=n(81425),Y=n(52351),P=n(35678),N=n(59212),T=n(27001),R=n(36803),F=n(56311),O=n(23787),L=n(96646),K=n(20466),B=n(44414),H=n(36220);I().extend(H);const E={radiusPill:999,radiusCard:14,shadowSoft:"0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05)",shadowMd:"0 1px 3px rgba(15, 23, 42, 0.06)",shadowPop:"0 12px 32px rgba(15, 23, 42, 0.12)",textPrimary:"#0f172a",textSecondary:"#64748b",textMuted:"#94a3b8",borderSubtle:"#e2e8f0",divider:"#f1f5f9",surface:"#ffffff",surfaceAlt:"#f8fafc"},Z=(e,t)=>"".concat(e).concat(t),U=e=>Z(e,"08"),X=e=>Z(e,"18"),$=e=>Z(e,"26"),q=e=>Z(e,"55"),V="#662582",G="#9255AB",J=e=>(0,B.jsx)(a.A,(0,o.A)((0,o.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:E.shadowPop,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),_=e=>{let{color:t,selected:n,size:o=24,children:r}=e;return(0,B.jsx)(s.A,{sx:{width:o,height:o,bgcolor:n?t:X(t),color:n?"#fff":t,transition:"background-color 0.15s, color 0.15s"},children:r})},Q=e=>{let{color:t,icon:n,label:o,tooltip:r,minWidth:i=80}=e;return(0,B.jsx)(c.A,{title:r||"",placement:"top",children:(0,B.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(q(t)),color:t,fontSize:11,fontWeight:800,minWidth:i,justifyContent:"center",whiteSpace:"nowrap"},children:[n,o]})})},ee=e=>{let{value:t,color:n="#ef4444",icon:o}=e;const r=Number(t)||0;return 0===r?(0,B.jsx)(x.A,{variant:"caption",sx:{color:E.textMuted,fontWeight:700},children:"0"}):(0,B.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:.875,py:.25,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(q(n)),color:n,fontSize:12,fontWeight:800,minWidth:36,justifyContent:"center"},children:[o,r]})},te=e=>({"& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,"& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat($(e))},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:1.5}}});function ne(e){return new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",minimumFractionDigits:2}).format(Number(e)||0)}function oe(){const e=(0,u.A)(),t=(0,h.A)(e.breakpoints.down("md")),n=(0,r.useRef)(null),W=(0,r.useRef)(null),[H,Z]=(0,r.useState)(0),[oe,re]=(0,r.useState)(I()().format("YYYY-MM-DD")),[ie,le]=(0,r.useState)(I()().format("YYYY-MM-DD")),[ae,se]=(0,r.useState)("All"),[ce,de]=(0,r.useState)(!1),[xe,ue]=(0,r.useState)(null),[he,pe]=(0,r.useState)("Today"),[me,je]=(0,r.useState)([]),[ge,be]=(0,r.useState)(!1),[fe,Ae]=(0,r.useState)(0),[ve,we]=(0,r.useState)(0),[Se,ye]=(0,r.useState)(null),[Ce,ke]=(0,r.useState)(null),[ze,De]=(0,r.useState)(""),[We,Ie]=(0,r.useState)(""),[,Me]=(0,r.useState)(0);(0,r.useEffect)((()=>{we(0),ye(null),Ae(0),ke(null),ue(null)}),[H]),(0,r.useEffect)((()=>{Ae(0),ke(null),ue(null)}),[ve]);const{data:Ye,isLoading:Pe,isError:Ne,error:Te}=(0,l.I)({queryKey:[H,ve,fe,oe,ie],queryFn:ve?M.U6:M.DK}),{data:Re}=(0,l.I)({queryKey:["tenantlist",H],queryFn:()=>(0,M.Mn)(H),enabled:0!==H}),{data:Fe}=(0,l.I)({queryKey:["gettenantlocations",ve],queryFn:()=>(0,M.DL)(ve),enabled:0!==ve}),Oe=(0,r.useMemo)((()=>Array.isArray(Ye)?Ye:[]),[Ye]),Le=(0,r.useMemo)((()=>{if(!We)return Oe;const e=We.toLowerCase().trim();return Oe.filter((t=>[t.tenantname,t.locationname,String(t.tenantid||""),String(t.locationid||"")].filter(Boolean).some((t=>String(t).toLowerCase().includes(e)))))}),[Oe,We]),Ke=(0,r.useMemo)((()=>Le.reduce(((e,t)=>(e.totalOrders+=Number(t.totalorders)||0,e.orderPend+=Number(t.Orderspending)||0,e.orderComplete+=Number(t.orderscompleted)||0,e.orderCancel+=Number(t.orderscancelled)||0,e.deliPend+=Number(t.deliveriespending)||0,e.deliComplete+=Number(t.deliveriescompleted)||0,e.deliCancel+=Number(t.deliveriescancelled)||0,e.collection+=Number(t.collectionamt)||0,e.kms+=Number(t.kms)||0,e.cumulativekms+=Number(t.cumulativekms)||0,e.amount+=Math.max(Number(t.charges)||0,Number(t.deliveryamt)||0),e)),{totalOrders:0,orderPend:0,orderComplete:0,orderCancel:0,deliPend:0,deliComplete:0,deliCancel:0,collection:0,kms:0,cumulativekms:0,amount:0})),[Le]),Be=async e=>{be(!0);try{var t;const n=await i.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/getuserreportsummary/?tenantid=").concat(e,"&fromdate=").concat(oe,"&todate=").concat(ie));je(Array.isArray(null===(t=n.data)||void 0===t?void 0:t.details)?n.data.details:[])}catch(n){(0,K.k)((null===n||void 0===n?void 0:n.message)||"Failed to load rider breakdown","error",2e3),je([])}finally{be(!1)}},He=async e=>{be(!0);try{var t;const n=await i.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/getriderlocationsummary/?tenantid=").concat(ve,"&locationid=").concat(e,"&fromdate=").concat(oe,"&todate=").concat(ie));je(Array.isArray(null===(t=n.data)||void 0===t?void 0:t.details)?n.data.details:[])}catch(n){(0,K.k)((null===n||void 0===n?void 0:n.message)||"Failed to load rider breakdown","error",2e3),je([])}finally{be(!1)}};Ne&&console.warn("ordersSummary error:",null===Te||void 0===Te?void 0:Te.message);const Ee=[{key:"orders",label:"Total Orders",color:V,icon:D.HU2,value:Ke.totalOrders},{key:"pending",label:"Orders Pending",color:"#f59e0b",icon:D.G6c,value:Ke.orderPend},{key:"completed",label:"Orders Completed",color:"#10b981",icon:D.cAP,value:Ke.orderComplete},{key:"amount",label:"Total Amount",color:"#0ea5e9",icon:D.S75,value:ne(Ke.amount)}],Ze=Boolean(ve);return(0,B.jsxs)(B.Fragment,{children:[(ge||Pe)&&(0,B.jsx)(Y.A,{}),(0,B.jsx)(T.A,{title:"Orders Summary",subtitle:"Live \xb7 ".concat(ae||"All Zones"," \xb7 ").concat(he),live:!0,action:(0,B.jsx)(N.A,{ref:n,locaName:ae,setAppId:Z,setLocoName:se,setPage:Me,pill:!0,accentColor:V,icon:(0,B.jsx)(D.HPi,{size:14}),placeholder:"Select Zone",paperComponent:J,sx:{width:{xs:"100%",sm:280},zIndex:100}})}),(0,B.jsx)(p.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:Ee.map((e=>{var t;const n=e.icon;return(0,B.jsx)(p.Ay,{item:!0,xs:6,sm:6,md:3,children:(0,B.jsx)(R.A,{title:e.label,value:null!==(t=e.value)&&void 0!==t?t:0,icon:(0,B.jsx)(n,{size:20}),color:e.color,loading:Pe})},e.key)}))}),(0,B.jsx)(a.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:E.radiusCard/8,borderTopRightRadius:E.radiusCard/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:E.borderSubtle,borderBottom:0,background:"#fff"},children:(0,B.jsxs)(m.A,{direction:{xs:"column",md:"row"},alignItems:{xs:"stretch",md:"center"},justifyContent:"space-between",spacing:1.25,children:[(0,B.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1.25,flexWrap:"wrap",children:[(0,B.jsx)(c.A,{title:"Date Filter",placement:"top",children:(0,B.jsxs)(d.A,{onClick:()=>de(!0),sx:{display:"inline-flex",alignItems:"center",gap:.75,px:1.25,py:.75,borderRadius:999,cursor:"pointer",bgcolor:U("#f59e0b"),border:"1.5px solid ".concat(q("#f59e0b")),color:"#f59e0b",fontWeight:800,fontSize:12,transition:"all 0.18s","&:hover":{borderColor:"#f59e0b",boxShadow:"0 0 0 3px ".concat($("#f59e0b"))}},children:[(0,B.jsx)(D.Ki0,{size:14}),"Orders \xb7 ",he," \xb7 ",I()(oe).format("DD/MM/YY")," \u2013 ",I()(ie).format("DD/MM/YY")]})}),(0,B.jsx)(j.A,{options:Re||[],value:Se,getOptionLabel:e=>(null===e||void 0===e?void 0:e.tenantname)||(null===e||void 0===e?void 0:e.label)||"",isOptionEqualToValue:(e,t)=>(null===e||void 0===e?void 0:e.tenantid)===(null===t||void 0===t?void 0:t.tenantid),PaperComponent:J,sx:(0,o.A)({minWidth:{xs:"100%",sm:220}},te(V)),onOpen:e=>{H||(e.preventDefault(),(0,K.k)("Please select a Zone first!","warning",3e3),setTimeout((()=>{var e;return null===(e=n.current)||void 0===e?void 0:e.focus()}),0))},onChange:(e,t,n)=>{"clear"!==n&&t?(we((null===t||void 0===t?void 0:t.tenantid)||0),ye(t),Ae((null===t||void 0===t?void 0:t.locationid)||0),ke(null)):(we(0),ye(null),Ae(0),ke(null))},renderInput:e=>(0,B.jsx)(g.A,(0,o.A)((0,o.A)({},e),{},{inputRef:W,placeholder:"Select Tenant",size:"small",InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:(0,B.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5},children:[(0,B.jsx)(_,{color:V,size:24,selected:Boolean(Se),children:(0,B.jsx)(D.nZo,{size:14})}),e.InputProps.startAdornment]})})}))}),(0,B.jsx)(j.A,{options:Fe||[],value:Ce,getOptionLabel:e=>null!==e&&void 0!==e&&e.locationname?"".concat(e.locationname).concat(e.suburb?" (".concat(e.suburb,")"):""):"",isOptionEqualToValue:(e,t)=>(null===e||void 0===e?void 0:e.locationid)===(null===t||void 0===t?void 0:t.locationid),PaperComponent:J,sx:(0,o.A)({minWidth:{xs:"100%",sm:220}},te("#0ea5e9")),onOpen:e=>{H||ve?ve||(e.preventDefault(),(0,K.k)("Please select a Tenant first!","warning",3e3),setTimeout((()=>{var e;return null===(e=W.current)||void 0===e?void 0:e.focus()}),0)):(e.preventDefault(),(0,K.k)("Please select Zone and Tenant first!","warning",3e3),setTimeout((()=>{var e;return null===(e=n.current)||void 0===e?void 0:e.focus()}),0))},onChange:(e,t,n)=>{"clear"!==n&&t?(Ae((null===t||void 0===t?void 0:t.locationid)||0),ke(t)):(Ae(0),ke(null))},renderInput:e=>(0,B.jsx)(g.A,(0,o.A)((0,o.A)({},e),{},{placeholder:"Select Location",size:"small",InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:(0,B.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5},children:[(0,B.jsx)(_,{color:"#0ea5e9",size:24,selected:Boolean(Ce),children:(0,B.jsx)(D.gwi,{size:14})}),e.InputProps.startAdornment]})})}))})]}),(0,B.jsx)(d.A,{sx:{width:{xs:"100%",md:280,lg:320},flex:{xs:"1 1 100%",md:"0 0 auto"}},children:(0,B.jsx)(F.A,{value:ze,onChange:De,onDebouncedChange:Ie,placeholder:"Search ".concat(Ze?"locations":"tenants"," (ctrl+k)"),sx:{m:0,width:"100%",borderRadius:999,bgcolor:"#ffffff","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:1.5},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat($(V))}}})})]})}),(0,B.jsxs)(a.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:E.radiusCard/8,borderBottomRightRadius:E.radiusCard/8,border:"1px solid",borderColor:E.borderSubtle,overflow:"hidden",background:"#fff"},children:[t?(0,B.jsxs)(B.Fragment,{children:[Pe&&(0,B.jsx)(O.nV,{children:[0,1,2,3].map((e=>(0,B.jsx)(O.pg,{accent:E.borderSubtle,children:(0,B.jsx)(d.A,{sx:{height:96}})},e)))}),!Pe&&0===Le.length&&(0,B.jsxs)(m.A,{alignItems:"center",spacing:1.5,sx:{py:6,px:2},children:[(0,B.jsx)(s.A,{sx:{width:64,height:64,bgcolor:X("#94a3b8"),color:E.textMuted},children:(0,B.jsx)(D.Z2J,{size:28})}),(0,B.jsxs)(x.A,{variant:"subtitle1",sx:{fontWeight:700,color:E.textPrimary},children:["No ",Ze?"locations":"tenants"," to show"]}),(0,B.jsx)(x.A,{variant:"caption",sx:{color:E.textSecondary,textAlign:"center",maxWidth:360},children:We?"Try a different keyword.":Ne?"Something went wrong fetching the summary. Try a different filter.":"Pick a zone, tenant, or date range to load the summary."})]}),!Pe&&Le.length>0&&(0,B.jsx)(O.nV,{children:Le.map(((e,t)=>{const n=Ze?e.locationname:e.tenantname,o=xe===n,r=Math.max(Number(e.charges)||0,Number(e.deliveryamt)||0),i=Ze?"#0ea5e9":V;return(0,B.jsxs)(O.pg,{accent:i,selected:o,header:(0,B.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,B.jsx)(_,{color:i,size:36,children:Ze?(0,B.jsx)(D.gwi,{size:18}):(0,B.jsx)(D.nZo,{size:18})}),(0,B.jsxs)(m.A,{sx:{minWidth:0,flex:1},children:[(0,B.jsx)(x.A,{variant:"subtitle2",sx:{fontWeight:700,color:E.textPrimary},noWrap:!0,children:(Ze?e.locationname:e.tenantname)||"\u2014"}),(0,B.jsxs)(x.A,{variant:"caption",sx:{color:E.textSecondary},children:["ID #",Ze?e.locationid:e.tenantid]})]}),(0,B.jsx)(c.A,{title:o?"Hide rider breakdown":"View rider breakdown",placement:"top",children:(0,B.jsx)(b.A,{size:"small",onClick:()=>{const t=!o;ue(t?n:null),t&&(je([]),Ze?He(e.locationid):Be(e.tenantid))},sx:{flexShrink:0,bgcolor:o?V:X(V),color:o?"#fff":V,border:"1px solid ".concat(q(V)),"&:hover":{bgcolor:V,color:"#fff"}},children:o?(0,B.jsx)(D.Xbk,{size:16}):(0,B.jsx)(D.j1Q,{size:16})})})]}),children:[(0,B.jsxs)(O.FG,{columns:3,children:[(0,B.jsx)(O.pY,{label:"All",align:"center",children:(0,B.jsx)(ee,{value:e.totalorders,color:V,icon:(0,B.jsx)(D.F6S,{size:11})})}),(0,B.jsx)(O.pY,{label:"Ord Pending",align:"center",children:(0,B.jsx)(ee,{value:e.Orderspending,color:"#f59e0b",icon:(0,B.jsx)(D.tX0,{size:11})})}),(0,B.jsx)(O.pY,{label:"Ord Cancelled",align:"center",children:(0,B.jsx)(ee,{value:e.orderscancelled,color:"#ef4444",icon:(0,B.jsx)(D.uDv,{size:11})})}),(0,B.jsx)(O.pY,{label:"Ord Completed",align:"center",children:(0,B.jsx)(ee,{value:e.orderscompleted,color:"#10b981",icon:(0,B.jsx)(D.mU9,{size:11})})}),(0,B.jsx)(O.pY,{label:"Del Pending",align:"center",children:(0,B.jsx)(ee,{value:e.deliveriespending,color:"#f59e0b",icon:(0,B.jsx)(D.tX0,{size:11})})}),(0,B.jsx)(O.pY,{label:"Del Cancelled",align:"center",children:(0,B.jsx)(ee,{value:e.deliveriescancelled,color:"#ef4444",icon:(0,B.jsx)(D.uDv,{size:11})})}),(0,B.jsx)(O.pY,{label:"Del Completed",align:"center",children:(0,B.jsx)(ee,{value:e.deliveriescompleted,color:"#10b981",icon:(0,B.jsx)(D.mU9,{size:11})})}),(0,B.jsx)(O.pY,{label:"Collection",align:"center",children:(0,B.jsx)(Q,{color:"#f59e0b",icon:(0,B.jsx)(D.YHz,{size:11}),label:Number(e.collectionamt||0).toFixed(2),tooltip:"Collection Amount",minWidth:90})}),(0,B.jsx)(O.pY,{label:"Amount",align:"center",children:(0,B.jsx)(Q,{color:V,icon:(0,B.jsx)(D.YHz,{size:11}),label:ne(r).replace("\u20b9","").trim(),tooltip:"Total Amount",minWidth:100})}),(0,B.jsx)(O.pY,{label:"KMS",align:"center",children:(0,B.jsx)(Q,{color:"#ef4444",icon:(0,B.jsx)(D.xI$,{size:11}),label:"".concat(Number(e.kms||0).toFixed(2)," km"),tooltip:"KMS"})}),(0,B.jsx)(O.pY,{label:"Actual KMS",align:"center",children:(0,B.jsx)(Q,{color:"#10b981",icon:(0,B.jsx)(D.xI$,{size:11}),label:"".concat(Number(e.cumulativekms||0).toFixed(2)," km"),tooltip:"Actual KMS"})})]}),(0,B.jsx)(f.A,{in:o,timeout:"auto",unmountOnExit:!0,children:(0,B.jsxs)(d.A,{sx:{mt:1.5},children:[(0,B.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1,sx:{mb:1},children:[(0,B.jsx)(_,{color:V,size:24,selected:!0,children:(0,B.jsx)(D.Itr,{size:12})}),(0,B.jsx)(x.A,{variant:"caption",sx:{fontWeight:800,color:E.textPrimary,letterSpacing:.6,textTransform:"uppercase"},children:"Rider Breakdown"})]}),ge||me&&0!==me.length?(0,B.jsx)(m.A,{spacing:1,children:me.map(((e,t)=>{const n=Math.max(Number(e.charges)||0,Number(e.deliveryamt)||0);return(0,B.jsxs)(O.pg,{accent:V,children:[(0,B.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:.75,children:[(0,B.jsx)(_,{color:V,size:28,children:(0,B.jsx)(D.LTk,{size:14})}),(0,B.jsxs)(m.A,{sx:{minWidth:0},children:[(0,B.jsx)(x.A,{variant:"subtitle2",sx:{fontWeight:700,color:E.textPrimary},noWrap:!0,children:"".concat(e.firstname||""," ").concat(e.lastname||"").trim()||"\u2014"}),(0,B.jsx)(x.A,{variant:"caption",sx:{color:E.textSecondary},children:e.ridercontact||"ID #".concat(e.userid)})]})]}),(0,B.jsxs)(O.FG,{columns:3,children:[(0,B.jsx)(O.pY,{label:"Orders",align:"center",children:(0,B.jsx)(ee,{value:e.orderscreated,color:V,icon:(0,B.jsx)(D.F6S,{size:10})})}),(0,B.jsx)(O.pY,{label:"Deliveries",align:"center",children:(0,B.jsx)(ee,{value:e.totalorders,color:"#0ea5e9",icon:(0,B.jsx)(D.F6S,{size:10})})}),(0,B.jsx)(O.pY,{label:"Pending",align:"center",children:(0,B.jsx)(ee,{value:e.deliveriespending,color:"#f59e0b",icon:(0,B.jsx)(D.tX0,{size:10})})}),(0,B.jsx)(O.pY,{label:"Cancelled",align:"center",children:(0,B.jsx)(ee,{value:e.deliveriescancelled,color:"#ef4444",icon:(0,B.jsx)(D.uDv,{size:10})})}),(0,B.jsx)(O.pY,{label:"Completed",align:"center",children:(0,B.jsx)(ee,{value:e.deliveriescompleted,color:"#10b981",icon:(0,B.jsx)(D.mU9,{size:10})})}),(0,B.jsx)(O.pY,{label:"Collection",align:"center",children:(0,B.jsx)(Q,{color:"#f59e0b",icon:(0,B.jsx)(D.YHz,{size:10}),label:Number(e.collectionamt||0).toFixed(2),tooltip:"Collection",minWidth:80})}),(0,B.jsx)(O.pY,{label:"KMS",align:"center",children:(0,B.jsx)(Q,{color:"#ef4444",icon:(0,B.jsx)(D.xI$,{size:10}),label:"".concat(Number(e.kms||0).toFixed(2)," km"),tooltip:"KMS"})}),(0,B.jsx)(O.pY,{label:"Actual KMS",align:"center",children:(0,B.jsx)(Q,{color:"#10b981",icon:(0,B.jsx)(D.xI$,{size:10}),label:"".concat(Number(e.cumulativekms||0).toFixed(2)," km"),tooltip:"Actual KMS"})}),(0,B.jsx)(O.pY,{label:"Amount",align:"center",children:(0,B.jsx)(Q,{color:V,icon:(0,B.jsx)(D.YHz,{size:10}),label:ne(n).replace("\u20b9","").trim(),tooltip:"Total Amount",minWidth:100})})]})]},"".concat(e.userid,"-").concat(t))}))}):(0,B.jsx)(x.A,{variant:"caption",sx:{color:E.textMuted,display:"block",py:1,textAlign:"center"},children:"No rider activity for this row."})]})})]},"".concat(n,"-").concat(t))}))})]}):(0,B.jsx)(A.A,{sx:{maxHeight:{xs:"calc(100vh - 280px)",md:"calc(100vh - 240px)"},"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:q(V),borderRadius:8,"&:hover":{backgroundColor:V}},"&::-webkit-scrollbar-track":{backgroundColor:E.surfaceAlt}},children:(0,B.jsxs)(v.A,{stickyHeader:!0,sx:{minWidth:{xs:1080,md:1200}},children:[(0,B.jsxs)(w.A,{children:[(0,B.jsxs)(S.A,{sx:{"& th":{backgroundColor:E.surfaceAlt,color:E.textSecondary,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(E.borderSubtle),py:{xs:1,md:1.25},px:{xs:1,md:1.5}}},children:[(0,B.jsx)(y.A,{rowSpan:2,children:"#"}),(0,B.jsx)(y.A,{rowSpan:2,children:Ze?"Location":"Tenant"}),(0,B.jsx)(y.A,{align:"center",rowSpan:2,children:"All"}),(0,B.jsx)(y.A,{align:"center",colSpan:3,sx:{bgcolor:"".concat(U("#ef4444")," !important"),color:"#ef4444 !important"},children:"Orders"}),(0,B.jsx)(y.A,{align:"center",colSpan:3,sx:{bgcolor:"".concat(U("#10b981")," !important"),color:"#10b981 !important"},children:"Deliveries"}),(0,B.jsx)(y.A,{align:"center",rowSpan:2,children:"Collection"}),(0,B.jsx)(y.A,{align:"center",rowSpan:2,children:"KMS / Actual"}),(0,B.jsx)(y.A,{align:"center",rowSpan:2,children:"Amount"}),(0,B.jsx)(y.A,{align:"right",rowSpan:2,children:"Action"})]}),(0,B.jsxs)(S.A,{sx:{"& th":{backgroundColor:E.surfaceAlt,color:E.textSecondary,fontSize:{xs:10,md:10.5},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(E.borderSubtle),py:{xs:.75,md:1},px:{xs:1,md:1.5}}},children:[(0,B.jsx)(y.A,{align:"center",sx:{bgcolor:"".concat(U("#ef4444")," !important"),color:"#f59e0b !important"},children:"Pending"}),(0,B.jsx)(y.A,{align:"center",sx:{bgcolor:"".concat(U("#ef4444")," !important"),color:"#ef4444 !important"},children:"Cancelled"}),(0,B.jsx)(y.A,{align:"center",sx:{bgcolor:"".concat(U("#ef4444")," !important"),color:"#10b981 !important"},children:"Completed"}),(0,B.jsx)(y.A,{align:"center",sx:{bgcolor:"".concat(U("#10b981")," !important"),color:"#f59e0b !important"},children:"Pending"}),(0,B.jsx)(y.A,{align:"center",sx:{bgcolor:"".concat(U("#10b981")," !important"),color:"#ef4444 !important"},children:"Cancelled"}),(0,B.jsx)(y.A,{align:"center",sx:{bgcolor:"".concat(U("#10b981")," !important"),color:"#10b981 !important"},children:"Completed"})]})]}),(0,B.jsxs)(C.A,{children:[Pe&&(0,B.jsx)(L.r,{col:9}),!Pe&&0===Le.length&&(0,B.jsx)(S.A,{children:(0,B.jsx)(y.A,{colSpan:13,sx:{py:6},children:(0,B.jsxs)(m.A,{alignItems:"center",spacing:1.5,children:[(0,B.jsx)(s.A,{sx:{width:64,height:64,bgcolor:X("#94a3b8"),color:E.textMuted},children:(0,B.jsx)(D.Z2J,{size:28})}),(0,B.jsxs)(x.A,{variant:"subtitle1",sx:{fontWeight:700,color:E.textPrimary},children:["No ",Ze?"locations":"tenants"," to show"]}),(0,B.jsx)(x.A,{variant:"caption",sx:{color:E.textSecondary,textAlign:"center",maxWidth:360},children:We?"Try a different keyword.":Ne?"Something went wrong fetching the summary. Try a different filter.":"Pick a zone, tenant, or date range to load the summary."})]})})}),Le.map(((e,t)=>{const n=Ze?e.locationname:e.tenantname,o=xe===n,i=Math.max(Number(e.charges)||0,Number(e.deliveryamt)||0);return(0,B.jsxs)(r.Fragment,{children:[(0,B.jsxs)(S.A,{sx:{transition:"background-color 0.15s","& td":{borderBottom:o?"none":"1px solid ".concat(E.divider),py:{xs:1,md:1.25},px:{xs:1,md:1.5}},"&:hover":{backgroundColor:o?"#fff":E.surfaceAlt},bgcolor:o?U(V):"transparent"},children:[(0,B.jsx)(y.A,{children:(0,B.jsx)(x.A,{variant:"caption",sx:{fontWeight:700,color:E.textMuted},children:String(t+1).padStart(2,"0")})}),(0,B.jsx)(y.A,{children:(0,B.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,B.jsx)(_,{color:Ze?"#0ea5e9":V,size:36,children:Ze?(0,B.jsx)(D.gwi,{size:18}):(0,B.jsx)(D.nZo,{size:18})}),(0,B.jsxs)(m.A,{children:[(0,B.jsx)(x.A,{variant:"subtitle2",sx:{fontWeight:700,color:E.textPrimary,whiteSpace:"nowrap"},children:(Ze?e.locationname:e.tenantname)||"\u2014"}),(0,B.jsxs)(x.A,{variant:"caption",sx:{color:E.textSecondary},children:["ID #",Ze?e.locationid:e.tenantid]})]})]})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.totalorders,color:V,icon:(0,B.jsx)(D.F6S,{size:11})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.Orderspending,color:"#f59e0b",icon:(0,B.jsx)(D.tX0,{size:11})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.orderscancelled,color:"#ef4444",icon:(0,B.jsx)(D.uDv,{size:11})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.orderscompleted,color:"#10b981",icon:(0,B.jsx)(D.mU9,{size:11})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.deliveriespending,color:"#f59e0b",icon:(0,B.jsx)(D.tX0,{size:11})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.deliveriescancelled,color:"#ef4444",icon:(0,B.jsx)(D.uDv,{size:11})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.deliveriescompleted,color:"#10b981",icon:(0,B.jsx)(D.mU9,{size:11})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(Q,{color:"#f59e0b",icon:(0,B.jsx)(D.YHz,{size:11}),label:Number(e.collectionamt||0).toFixed(2),tooltip:"Collection Amount",minWidth:90})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsxs)(m.A,{direction:"column",spacing:.5,alignItems:"center",children:[(0,B.jsx)(Q,{color:"#ef4444",icon:(0,B.jsx)(D.xI$,{size:11}),label:"".concat(Number(e.kms||0).toFixed(2)," km"),tooltip:"KMS"}),(0,B.jsx)(Q,{color:"#10b981",icon:(0,B.jsx)(D.xI$,{size:11}),label:"".concat(Number(e.cumulativekms||0).toFixed(2)," km"),tooltip:"Actual KMS"})]})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(Q,{color:V,icon:(0,B.jsx)(D.YHz,{size:11}),label:ne(i).replace("\u20b9","").trim(),tooltip:"Total Amount",minWidth:100})}),(0,B.jsx)(y.A,{align:"right",children:(0,B.jsx)(c.A,{title:o?"Hide rider breakdown":"View rider breakdown",placement:"top",children:(0,B.jsx)(b.A,{size:"small",onClick:()=>{const t=!o;ue(t?n:null),t&&(je([]),Ze?He(e.locationid):Be(e.tenantid))},sx:{bgcolor:o?V:X(V),color:o?"#fff":V,border:"1px solid ".concat(q(V)),"&:hover":{bgcolor:V,color:"#fff"}},children:o?(0,B.jsx)(D.Xbk,{size:16}):(0,B.jsx)(D.j1Q,{size:16})})})})]}),o&&(0,B.jsx)(S.A,{children:(0,B.jsx)(y.A,{colSpan:13,sx:{p:0,borderBottom:"1px solid ".concat(E.divider),bgcolor:U(V)},children:(0,B.jsx)(f.A,{in:o,timeout:"auto",unmountOnExit:!0,children:(0,B.jsx)(d.A,{sx:{p:{xs:1,md:2}},children:(0,B.jsxs)(a.A,{elevation:0,sx:{borderRadius:E.radiusCard/8,border:"1px solid",borderColor:E.borderSubtle,overflow:"hidden",boxShadow:E.shadowSoft},children:[(0,B.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1,sx:{px:2,py:1.25,background:"#ffffff",borderBottom:"1px solid ".concat(E.borderSubtle)},children:[(0,B.jsx)(_,{color:V,size:28,selected:!0,children:(0,B.jsx)(D.Itr,{size:14})}),(0,B.jsxs)(x.A,{variant:"caption",sx:{fontWeight:700,color:E.textPrimary,letterSpacing:.6,textTransform:"uppercase"},children:["Rider Breakdown \xb7 ",Ze?e.locationname:e.tenantname]})]}),(0,B.jsxs)(v.A,{size:"small",children:[(0,B.jsx)(w.A,{children:(0,B.jsxs)(S.A,{sx:{"& th":{backgroundColor:E.surfaceAlt,color:E.textSecondary,fontSize:10,fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(E.borderSubtle),py:1,px:1.5}},children:[(0,B.jsx)(y.A,{children:"#"}),(0,B.jsx)(y.A,{children:"Rider"}),(0,B.jsx)(y.A,{align:"center",children:"Orders"}),(0,B.jsx)(y.A,{align:"center",children:"Deliveries"}),(0,B.jsx)(y.A,{align:"center",children:"Pending"}),(0,B.jsx)(y.A,{align:"center",children:"Cancelled"}),(0,B.jsx)(y.A,{align:"center",children:"Completed"}),(0,B.jsx)(y.A,{align:"center",children:"Collection"}),(0,B.jsx)(y.A,{align:"center",children:"KMS / Actual"}),(0,B.jsx)(y.A,{align:"center",children:"Amount"})]})}),(0,B.jsxs)(C.A,{children:[ge&&(0,B.jsx)(L.r,{col:6}),ge||me&&0!==me.length?me.map(((e,t)=>{const n=Math.max(Number(e.charges)||0,Number(e.deliveryamt)||0);return(0,B.jsxs)(S.A,{sx:{"& td":{borderBottom:"1px solid ".concat(E.divider),py:1,px:1.5},"&:hover":{backgroundColor:E.surfaceAlt}},children:[(0,B.jsx)(y.A,{children:(0,B.jsx)(x.A,{variant:"caption",sx:{fontWeight:700,color:E.textMuted},children:String(t+1).padStart(2,"0")})}),(0,B.jsx)(y.A,{children:(0,B.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:.75,children:[(0,B.jsx)(_,{color:V,size:28,children:(0,B.jsx)(D.LTk,{size:14})}),(0,B.jsxs)(m.A,{children:[(0,B.jsx)(x.A,{variant:"subtitle2",sx:{fontWeight:700,color:E.textPrimary,whiteSpace:"nowrap"},children:"".concat(e.firstname||""," ").concat(e.lastname||"").trim()||"\u2014"}),(0,B.jsx)(x.A,{variant:"caption",sx:{color:E.textSecondary},children:e.ridercontact||"ID #".concat(e.userid)})]})]})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.orderscreated,color:V,icon:(0,B.jsx)(D.F6S,{size:10})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.totalorders,color:"#0ea5e9",icon:(0,B.jsx)(D.F6S,{size:10})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.deliveriespending,color:"#f59e0b",icon:(0,B.jsx)(D.tX0,{size:10})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.deliveriescancelled,color:"#ef4444",icon:(0,B.jsx)(D.uDv,{size:10})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(ee,{value:e.deliveriescompleted,color:"#10b981",icon:(0,B.jsx)(D.mU9,{size:10})})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(Q,{color:"#f59e0b",icon:(0,B.jsx)(D.YHz,{size:10}),label:Number(e.collectionamt||0).toFixed(2),tooltip:"Collection",minWidth:80})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsxs)(m.A,{direction:"column",spacing:.5,alignItems:"center",children:[(0,B.jsx)(Q,{color:"#ef4444",icon:(0,B.jsx)(D.xI$,{size:10}),label:"".concat(Number(e.kms||0).toFixed(2)," km"),tooltip:"KMS"}),(0,B.jsx)(Q,{color:"#10b981",icon:(0,B.jsx)(D.xI$,{size:10}),label:"".concat(Number(e.cumulativekms||0).toFixed(2)," km"),tooltip:"Actual KMS"})]})}),(0,B.jsx)(y.A,{align:"center",children:(0,B.jsx)(Q,{color:V,icon:(0,B.jsx)(D.YHz,{size:10}),label:ne(n).replace("\u20b9","").trim(),tooltip:"Total Amount",minWidth:100})})]},"".concat(e.userid,"-").concat(t))})):(0,B.jsx)(S.A,{children:(0,B.jsx)(y.A,{colSpan:10,sx:{py:3},children:(0,B.jsx)(x.A,{variant:"caption",sx:{color:E.textMuted,textAlign:"center",display:"block"},children:"No rider activity for this row."})})})]})]})]})})})})})]},"".concat(n,"-").concat(t))}))]})]})}),Le.length>0&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(k.A,{}),(0,B.jsxs)(m.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1.5,flexWrap:"wrap",sx:{px:2,py:1.5,background:"#ffffff"},children:[(0,B.jsxs)(m.A,{direction:"row",alignItems:"center",spacing:1,flexWrap:"wrap",children:[(0,B.jsx)(x.A,{variant:"caption",sx:{fontWeight:800,color:E.textSecondary,letterSpacing:.6,textTransform:"uppercase"},children:"Grand Total"}),(0,B.jsx)(z.A,{size:"small",label:"".concat(Ke.totalOrders," orders"),sx:{fontWeight:700,bgcolor:X(V),color:V,border:"1px solid ".concat(q(V))}}),(0,B.jsx)(z.A,{size:"small",label:"".concat(Ke.deliComplete," delivered"),sx:{fontWeight:700,bgcolor:X("#10b981"),color:"#10b981",border:"1px solid ".concat(q("#10b981"))}}),(0,B.jsx)(z.A,{size:"small",label:"".concat(Ke.deliPend," pending"),sx:{fontWeight:700,bgcolor:X("#f59e0b"),color:"#f59e0b",border:"1px solid ".concat(q("#f59e0b"))}})]}),(0,B.jsx)(z.A,{label:ne(Ke.amount),sx:{fontWeight:800,fontSize:13,color:"#fff",background:"linear-gradient(135deg, ".concat(V," 0%, ").concat(G," 100%)"),boxShadow:"0 6px 16px ".concat($(V))}})]})]})]}),(0,B.jsx)(P.A,{open:ce,onClose:()=>de(!1),onSelect:e=>{re(e.startDate),le(e.endDate),pe(e.label)}})]})}},59212:(e,t,n)=>{n.d(t,{A:()=>u});var o=n(89379),r=n(9950),i=n(93230),l=n(41413),a=n(77922),s=n(29925),c=n(26910),d=n(31222),x=n(44414);const u=(0,r.forwardRef)(((e,t)=>{let{setAppId:n,setLocoName:u,setPage:h,sx:p,textfeildSx:m,textfieldSx:j,pill:g=!1,accentColor:b="#6366f1",icon:f,placeholder:A="Select Zone",paperComponent:v}=e;const[w,S]=(0,r.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,r.useEffect)((()=>{0===w.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const t=await c.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(t.data.status){const e=[...t.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),S(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[w.length]);const y=e=>"".concat(b).concat(e),C=y("26"),k=y("18"),z=g?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(C)},"&.Mui-focused fieldset":{borderColor:b,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},D=g&&(0,x.jsx)(i.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,x.jsx)(l.A,{sx:{width:24,height:24,bgcolor:k,color:b,transition:"background-color 0.15s, color 0.15s"},children:f||(0,x.jsx)(d.HPi,{size:14})})});return(0,x.jsx)(a.A,{id:"location-autocomplete",options:w||[],getOptionLabel:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.locationname)&&void 0!==t?t:""},PaperComponent:v,sx:(0,o.A)({},p),onChange:(e,t,o)=>{"clear"===o?(null===n||void 0===n||n(0),null===u||void 0===u||u(""),null===h||void 0===h||h(0)):t&&(null===n||void 0===n||n(t.applocationid),null===u||void 0===u||u(t.locationname),null===h||void 0===h||h(0))},renderInput:e=>g?(0,x.jsx)(s.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,placeholder:A,InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:D}),sx:(0,o.A)((0,o.A)({},z),j||m||{})})):(0,x.jsx)(s.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,label:"Select Zones",sx:(0,o.A)({},j||m||{})}))})}))},96646:(e,t,n)=>{n.d(t,{r:()=>s});var o=n(9213),r=n(21671),i=n(82917),l=n(93230),a=n(44414);const s=e=>{let{rowsPerPage:t=5,col:n=1}=e;return(0,a.jsx)(a.Fragment,{children:Array.from(new Array(t)).map(((e,t)=>(0,a.jsxs)(o.A,{children:[(0,a.jsx)(r.A,{children:(0,a.jsx)(i.A,{variant:"circular",width:24,height:24})}),(0,a.jsx)(r.A,{children:(0,a.jsx)(i.A,{variant:"text",width:30})}),Array.from({length:n}).map(((e,t)=>(0,a.jsx)(r.A,{children:(0,a.jsxs)(l.A,{spacing:.5,children:[(0,a.jsx)(i.A,{variant:"text",width:100}),(0,a.jsx)(i.A,{variant:"text",width:80})]})},t))),(0,a.jsx)(r.A,{children:(0,a.jsx)(i.A,{variant:"text",width:150})}),(0,a.jsx)(r.A,{children:(0,a.jsx)(i.A,{variant:"rounded",width:60,height:24})}),(0,a.jsx)(r.A,{align:"center",children:(0,a.jsxs)(l.A,{direction:"row",spacing:1,justifyContent:"flex-end",children:[(0,a.jsx)(i.A,{variant:"circular",width:28,height:28}),(0,a.jsx)(i.A,{variant:"circular",width:28,height:28})]})})]},t)))})}}}]); \ No newline at end of file diff --git a/build/static/js/7157.3a086cbd.chunk.js b/build/static/js/7157.3a086cbd.chunk.js new file mode 100644 index 0000000..1392172 --- /dev/null +++ b/build/static/js/7157.3a086cbd.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[7157],{23787:(e,r,o)=>{o.d(r,{FG:()=>p,nV:()=>x,pY:()=>g,pg:()=>h});var n=o(22555),i=o(53986),t=o(71392),s=o(55235),l=o(48738),c=o(2866),a=o(65908);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:r,scroll:o=!1,onScroll:s,sx:l}=e,c=(0,i.A)(e,d);return(0,a.jsx)(t.A,(0,n.A)((0,n.A)({spacing:1.25,onScroll:s,sx:(0,n.A)((0,n.A)({p:1.5},o&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),l)},c),{},{children:r}))},h=e=>{let{accent:r="#662582",header:o,footer:i,selected:t=!1,onClick:c,children:d,sx:x}=e;return(0,a.jsxs)(s.A,{elevation:0,onClick:c,sx:(0,n.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:t?r:"#e2e8f0",background:t?"".concat(r,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,a.jsx)(l.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:r}}),(0,a.jsxs)(l.A,{sx:{p:1.5,pl:2},children:[o,d,i]})]})},p=e=>{let{children:r,columns:o=2,sx:i}=e;return(0,a.jsx)(l.A,{sx:(0,n.A)({display:"grid",gridTemplateColumns:"repeat(".concat(o,", minmax(0, 1fr))"),gap:1,mt:1.25},i),children:r})},g=e=>{let{label:r,value:o,children:n,full:i=!1,align:t="left"}=e;return(0,a.jsxs)(l.A,{sx:{gridColumn:i?"1 / -1":"auto",minWidth:0,textAlign:t},children:[(0,a.jsx)(c.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:r}),(0,a.jsx)(l.A,{sx:{mt:.25,minWidth:0},children:void 0!==n?n:(0,a.jsx)(c.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==o&&void 0!==o?o:"\u2014"})})]})}},27001:(e,r,o)=>{o.d(r,{A:()=>l});var n=o(71392),i=o(48738),t=o(2866),s=o(65908);function l(e){let{title:r,subtitle:o,live:l=!1,action:c}=e;return(0,s.jsxs)(n.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,s.jsxs)(i.A,{sx:{minWidth:0},children:[(0,s.jsx)(t.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:r}),o&&(0,s.jsxs)(n.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[l&&(0,s.jsx)(i.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,s.jsx)(t.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:o})]})]}),c&&(0,s.jsx)(i.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:c})]})}},36803:(e,r,o)=>{o.d(r,{A:()=>x});var n=o(84007),i=o(75953),t=o(71392),s=o(48738),l=o(2866),c=o(91834),a=o(97043),d=o(65908);function x(e){let{title:r,value:o,icon:x,color:h="#662582",caption:p,loading:g=!1}=e;return(0,d.jsx)(n.A,{sx:{height:"100%"},children:(0,d.jsx)(i.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,d.jsxs)(t.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,d.jsxs)(s.A,{sx:{minWidth:0,flex:1},children:[(0,d.jsx)(l.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r}),g?(0,d.jsx)(c.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,d.jsx)(l.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o}),p&&(0,d.jsx)(l.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:p})]}),x&&(0,d.jsx)(a.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(h,"14"),color:h,flexShrink:0},children:x})]})})})}},56311:(e,r,o)=>{o.d(r,{A:()=>p});var n=o(22555),i=o(85672),t=o(29776),s=o(43318),l=o(23440),c=o(11969),a=o(80795),d=o(51808),x=o(93811),h=o(65908);const p=e=>{let{value:r,onChange:o,onDebouncedChange:p,debounceTime:g=500,placeholder:u="Search (ctrl+k)",sx:m}=e;const j=(0,i.useRef)(null),[b]=(0,x.d7)(r,g);return(0,i.useEffect)((()=>{p&&p(b)}),[b,p]),(0,i.useEffect)((()=>{const e=e=>{var r;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(r=j.current)||void 0===r||r.focus());"Escape"===e.key&&document.activeElement===j.current&&j.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,h.jsx)(t.A,{sx:(0,n.A)({},m),inputRef:j,placeholder:u,autoComplete:"off",value:r,fullWidth:!0,onChange:e=>o(e.target.value),startAdornment:(0,h.jsx)(s.A,{position:"start",sx:{mr:-.5},children:(0,h.jsx)(a.A,{})}),endAdornment:(0,h.jsx)(l.A,{title:"Clear",children:(0,h.jsx)(c.A,{sx:{visibility:r?"visible":"hidden"},onClick:()=>o(""),children:(0,h.jsx)(d.A,{})})})})}},59212:(e,r,o)=>{o.d(r,{A:()=>h});var n=o(22555),i=o(85672),t=o(71392),s=o(97043),l=o(17488),c=o(86270),a=o(66157),d=o(48952),x=o(65908);const h=(0,i.forwardRef)(((e,r)=>{let{setAppId:o,setLocoName:h,setPage:p,sx:g,textfeildSx:u,textfieldSx:m,pill:j=!1,accentColor:b="#6366f1",icon:A,placeholder:f="Select Zone",paperComponent:v}=e;const[w,S]=(0,i.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,i.useEffect)((()=>{0===w.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const r=await a.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(r.data.status){const e=[...r.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),S(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[w.length]);const k=e=>"".concat(b).concat(e),y=k("26"),C=k("18"),I=j?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(y)},"&.Mui-focused fieldset":{borderColor:b,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},z=j&&(0,x.jsx)(t.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,x.jsx)(s.A,{sx:{width:24,height:24,bgcolor:C,color:b,transition:"background-color 0.15s, color 0.15s"},children:A||(0,x.jsx)(d.HPi,{size:14})})});return(0,x.jsx)(l.A,{id:"location-autocomplete",options:w||[],getOptionLabel:e=>{var r;return null!==(r=null===e||void 0===e?void 0:e.locationname)&&void 0!==r?r:""},PaperComponent:v,sx:(0,n.A)({},g),onChange:(e,r,n)=>{"clear"===n?(null===o||void 0===o||o(0),null===h||void 0===h||h(""),null===p||void 0===p||p(0)):r&&(null===o||void 0===o||o(r.applocationid),null===h||void 0===h||h(r.locationname),null===p||void 0===p||p(0))},renderInput:e=>j?(0,x.jsx)(c.A,(0,n.A)((0,n.A)({},e),{},{inputRef:r,placeholder:f,InputProps:(0,n.A)((0,n.A)({},e.InputProps),{},{startAdornment:z}),sx:(0,n.A)((0,n.A)({},I),m||u||{})})):(0,x.jsx)(c.A,(0,n.A)((0,n.A)({},e),{},{inputRef:r,label:"Select Zones",sx:(0,n.A)({},m||u||{})}))})}))},68320:(e,r,o)=>{o.d(r,{I:()=>t});var n=o(48149),i=o(59363);function t(e,r){return(0,i.t)(e,n.$,r)}},96646:(e,r,o)=>{o.d(r,{r:()=>c});var n=o(50755),i=o(1596),t=o(91834),s=o(71392),l=o(65908);const c=e=>{let{rowsPerPage:r=5,col:o=1}=e;return(0,l.jsx)(l.Fragment,{children:Array.from(new Array(r)).map(((e,r)=>(0,l.jsxs)(n.A,{children:[(0,l.jsx)(i.A,{children:(0,l.jsx)(t.A,{variant:"circular",width:24,height:24})}),(0,l.jsx)(i.A,{children:(0,l.jsx)(t.A,{variant:"text",width:30})}),Array.from({length:o}).map(((e,r)=>(0,l.jsx)(i.A,{children:(0,l.jsxs)(s.A,{spacing:.5,children:[(0,l.jsx)(t.A,{variant:"text",width:100}),(0,l.jsx)(t.A,{variant:"text",width:80})]})},r))),(0,l.jsx)(i.A,{children:(0,l.jsx)(t.A,{variant:"text",width:150})}),(0,l.jsx)(i.A,{children:(0,l.jsx)(t.A,{variant:"rounded",width:60,height:24})}),(0,l.jsx)(i.A,{align:"center",children:(0,l.jsxs)(s.A,{direction:"row",spacing:1,justifyContent:"flex-end",children:[(0,l.jsx)(t.A,{variant:"circular",width:28,height:28}),(0,l.jsx)(t.A,{variant:"circular",width:28,height:28})]})})]},r)))})}},97157:(e,r,o)=>{o.r(r),o.d(r,{default:()=>Q});var n=o(22555),i=o(85672),t=o(55235),s=o(97043),l=o(2866),c=o(48738),a=o(69039),d=o(76264),x=o(1939),h=o(71392),p=o(83209),g=o(72486),u=o(54016),m=o(50755),j=o(1596),b=o(81802),A=o(48952),f=o(68320),v=o(52351),w=o(56311),S=o(59212),k=o(27001),y=o(36803),C=o(23787),I=o(96646),z=o(81425),W=o(65908);const R=14,M=10,P="0 12px 32px rgba(15, 23, 42, 0.12)",L="#0f172a",B="#64748b",N="#94a3b8",F="#e2e8f0",T="#cbd5e1",D="#f1f5f9",E="#ffffff",H="#f8fafc",J=(e,r)=>"".concat(e).concat(r),K=e=>J(e,"08"),O=e=>J(e,"18"),Y=e=>J(e,"55"),Z="#662582",$=e=>(0,W.jsx)(t.A,(0,n.A)((0,n.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:P,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),G=e=>{let{color:r,selected:o,size:n=24,children:i}=e;return(0,W.jsx)(s.A,{sx:{width:n,height:n,bgcolor:o?r:O(r),color:o?"#fff":r,transition:"background-color 0.15s, color 0.15s"},children:i})},X=e=>new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",minimumFractionDigits:2}).format(Number(e)||0),_=e=>new Intl.NumberFormat("en-IN",{minimumFractionDigits:2}).format(Number(e)||0),V=e=>{let{label:r}=e;return(0,W.jsx)(l.A,{component:"span",sx:{fontSize:13.5,fontWeight:700,color:L,whiteSpace:"nowrap",fontVariantNumeric:"tabular-nums"},children:r})},q=e=>{let{icon:r,label:o}=e;return(0,W.jsxs)(c.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:8,bgcolor:H,border:"1px solid ".concat(F),color:L,fontSize:12,fontWeight:600,whiteSpace:"nowrap"},children:[(0,W.jsx)(c.A,{component:"span",sx:{display:"inline-flex",color:N},children:r}),o]})},Q=()=>{const e=(0,a.A)(),r=(0,d.A)(e.breakpoints.down("md")),o=(0,i.useRef)(),[n,P]=(0,i.useState)(0),[Q,U]=(0,i.useState)("All"),[ee,re]=(0,i.useState)(""),[oe,ne]=(0,i.useState)(""),{data:ie=[],isLoading:te}=(0,f.I)({queryKey:["getallpricing",n],queryFn:z.OM,keepPreviousData:!0}),se=(0,i.useMemo)((()=>{if(!oe)return ie;const e=oe.toLowerCase().trim();return ie.filter((r=>[r.applocation,r.appname,r.slab,String(r.pricingid)].filter(Boolean).some((r=>String(r).toLowerCase().includes(e)))))}),[ie,oe]),le=(0,i.useMemo)((()=>{const e=ie.length;return{total:e,tenants:new Set(ie.map((e=>e.appname)).filter(Boolean)).size,avgBase:e?ie.reduce(((e,r)=>e+(Number(r.baseprice)||0)),0)/e:0}}),[ie]),ce=[{key:"total",label:"Total Pricing Slabs",color:Z,icon:A.x2E,value:le.total},{key:"tenants",label:"Tenants Priced",color:"#0ea5e9",icon:A.AYP,value:le.tenants},{key:"avg",label:"Avg Base Price",color:"#f59e0b",icon:A.X3k,value:X(le.avgBase)},{key:"zone",label:"Active Zone",color:"#10b981",icon:A.XXh,value:Q||"All Zones"}];return(0,W.jsxs)(W.Fragment,{children:[te&&(0,W.jsx)(v.A,{}),(0,W.jsx)(k.A,{title:"Pricing",subtitle:"Live \xb7 ".concat(Q||"All Zones"),live:!0,action:(0,W.jsx)(S.A,{locaName:Q,setAppId:P,setLocoName:U,pill:!0,accentColor:Z,icon:(0,W.jsx)(A.HPi,{size:14}),placeholder:"Select Zone",paperComponent:$,sx:{width:{xs:"100%",sm:280},zIndex:100}})}),(0,W.jsx)(x.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:ce.map((e=>{const r=e.icon;return(0,W.jsx)(x.Ay,{item:!0,xs:6,sm:6,md:3,children:(0,W.jsx)(y.A,{title:e.label,value:e.value,icon:(0,W.jsx)(r,{size:20}),color:e.color})},e.key)}))}),(0,W.jsx)(t.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:R/8,borderTopRightRadius:R/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:F,borderBottom:0,background:"#fff"},children:(0,W.jsxs)(h.A,{direction:{xs:"column",sm:"row"},alignItems:{xs:"stretch",sm:"center"},justifyContent:"space-between",spacing:1.25,children:[(0,W.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1.25,children:[(0,W.jsx)(G,{color:Z,size:32,children:(0,W.jsx)(A.JL6,{size:18})}),(0,W.jsxs)(h.A,{children:[(0,W.jsx)(l.A,{variant:"caption",sx:{fontWeight:800,color:B,letterSpacing:.6,textTransform:"uppercase"},children:"Pricing Catalog"}),(0,W.jsxs)(l.A,{variant:"body2",sx:{color:L,fontWeight:700},children:[ie.length," total \xb7 ",se.length," shown"]})]})]}),(0,W.jsx)(c.A,{sx:{width:{xs:"100%",sm:280,lg:340},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,W.jsx)(w.A,{value:ee,onChange:re,onDebouncedChange:ne,placeholder:"Search pricing (ctrl+k)",sx:{m:0,width:"100%",borderRadius:M+"px",bgcolor:E,"& fieldset":{borderColor:F,borderWidth:1},"&:hover fieldset":{borderColor:T},"&.Mui-focused fieldset":{borderColor:Z,borderWidth:1.5},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat((ae=Z,J(ae,"26")))}}})})]})}),(0,W.jsx)(t.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:R/8,borderBottomRightRadius:R/8,border:"1px solid",borderColor:F,overflow:"hidden",background:"#fff"},children:r?0!==se.length||te?(0,W.jsx)(C.nV,{scroll:!0,children:se.map(((e,r)=>{var o;return(0,W.jsxs)(C.pg,{accent:Z,header:(0,W.jsxs)(h.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,W.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,sx:{minWidth:0},children:[(0,W.jsx)(G,{color:Z,size:36,children:(0,W.jsx)(A.Itr,{size:18})}),(0,W.jsxs)(h.A,{sx:{minWidth:0},children:[(0,W.jsx)(l.A,{variant:"subtitle2",sx:{fontWeight:700,color:L},noWrap:!0,children:e.appname||"\u2014"}),(0,W.jsxs)(l.A,{variant:"caption",sx:{color:B},children:["ID #",e.pricingid]})]})]}),(0,W.jsx)(l.A,{variant:"caption",sx:{fontWeight:700,color:N,flexShrink:0},children:String(r+1).padStart(2,"0")})]}),children:[(0,W.jsxs)(h.A,{direction:"row",spacing:.75,sx:{mt:1,flexWrap:"wrap",gap:.75},children:[e.applocation?(0,W.jsxs)(c.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:K("#10b981"),border:"1px solid ".concat(Y("#10b981")),color:"#10b981",fontSize:11,fontWeight:800},children:[(0,W.jsx)(A.JFD,{size:12})," ",e.applocation]}):null,(0,W.jsxs)(c.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:K("#0ea5e9"),border:"1px solid ".concat(Y("#0ea5e9")),color:"#0ea5e9",fontSize:11,fontWeight:800},children:[(0,W.jsx)(A.BJM,{size:12})," ",e.slab||"\u2014"]})]}),(0,W.jsxs)(C.FG,{children:[(0,W.jsx)(C.pY,{label:"Base Price",children:(0,W.jsx)(V,{color:Z,icon:(0,W.jsx)(A.bmp,{size:12}),label:X(e.baseprice)})}),(0,W.jsx)(C.pY,{label:"Price / KM",children:(0,W.jsx)(V,{color:"#10b981",icon:(0,W.jsx)(A.H4F,{size:12}),label:X(e.priceperkm)})}),(0,W.jsx)(C.pY,{label:"Min KM",children:(0,W.jsx)(V,{color:"#f59e0b",icon:(0,W.jsx)(A.xI$,{size:12}),label:"".concat(_(e.minkm)," km")})}),(0,W.jsx)(C.pY,{label:"Max KM",children:(0,W.jsx)(V,{color:"#ef4444",icon:(0,W.jsx)(A.xI$,{size:12}),label:"".concat(_(e.maxkm)," km")})}),(0,W.jsx)(C.pY,{label:"Min Orders",children:(0,W.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:.5,children:[(0,W.jsx)(A.GdF,{size:14,color:N}),(0,W.jsx)(l.A,{variant:"subtitle2",sx:{fontWeight:700,color:L},children:null!==(o=e.minorder)&&void 0!==o?o:"\u2014"})]})})]})]},e.pricingid||"".concat(e.appname,"-").concat(r))}))}):(0,W.jsxs)(h.A,{alignItems:"center",spacing:1.5,sx:{py:6,px:2},children:[(0,W.jsx)(s.A,{sx:{width:64,height:64,bgcolor:O("#94a3b8"),color:N},children:(0,W.jsx)(A.JL6,{size:28})}),(0,W.jsx)(l.A,{variant:"subtitle1",sx:{fontWeight:700,color:L},children:"No pricing to show"}),(0,W.jsx)(l.A,{variant:"caption",sx:{color:B,textAlign:"center"},children:ee?"Try a different keyword.":"Pick a zone above to load the catalog."})]}):(0,W.jsx)(p.A,{ref:o,sx:{maxHeight:{xs:"calc(100vh - 220px)",md:"calc(100vh - 190px)"},"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:Y(Z),borderRadius:8,"&:hover":{backgroundColor:Z}},"&::-webkit-scrollbar-track":{backgroundColor:H}},children:(0,W.jsxs)(g.A,{stickyHeader:!0,sx:{minWidth:{xs:860,md:1080}},children:[(0,W.jsx)(u.A,{children:(0,W.jsxs)(m.A,{sx:{"& th":{backgroundColor:H,color:B,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(F),py:{xs:1,md:1.25},px:{xs:1,md:2}}},children:[(0,W.jsx)(j.A,{children:"#"}),(0,W.jsx)(j.A,{children:"Tenant"}),(0,W.jsx)(j.A,{children:"Zone"}),(0,W.jsx)(j.A,{children:"Slab"}),(0,W.jsx)(j.A,{align:"center",children:"Base Price"}),(0,W.jsx)(j.A,{align:"center",children:"Min KM"}),(0,W.jsx)(j.A,{align:"center",children:"Price / KM"}),(0,W.jsx)(j.A,{align:"center",children:"Max KM"}),(0,W.jsx)(j.A,{align:"center",children:"Min Orders"})]})}),(0,W.jsxs)(b.A,{children:[te&&(0,W.jsx)(I.r,{col:5}),0!==se.length||te?se.map(((e,r)=>{var o;return(0,W.jsxs)(m.A,{sx:{transition:"background-color 0.15s","& td":{borderBottom:"1px solid ".concat(D),py:{xs:1,md:1.5},px:{xs:1,md:2}},"&:hover":{backgroundColor:H}},children:[(0,W.jsx)(j.A,{children:(0,W.jsx)(l.A,{variant:"caption",sx:{fontWeight:700,color:N},children:String(r+1).padStart(2,"0")})}),(0,W.jsx)(j.A,{children:(0,W.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,W.jsx)(G,{color:Z,size:36,children:(0,W.jsx)(A.Itr,{size:18})}),(0,W.jsxs)(h.A,{children:[(0,W.jsx)(l.A,{variant:"subtitle2",sx:{fontWeight:700,color:L,whiteSpace:"nowrap"},children:e.appname||"\u2014"}),(0,W.jsxs)(l.A,{variant:"caption",sx:{color:B},children:["ID #",e.pricingid]})]})]})}),(0,W.jsx)(j.A,{children:e.applocation?(0,W.jsx)(q,{icon:(0,W.jsx)(A.JFD,{size:12}),label:e.applocation}):(0,W.jsx)(l.A,{variant:"caption",sx:{color:N},children:"\u2014"})}),(0,W.jsx)(j.A,{children:(0,W.jsx)(q,{icon:(0,W.jsx)(A.BJM,{size:12}),label:e.slab||"\u2014"})}),(0,W.jsx)(j.A,{align:"center",children:(0,W.jsx)(V,{color:Z,icon:(0,W.jsx)(A.bmp,{size:12}),label:X(e.baseprice),width:110})}),(0,W.jsx)(j.A,{align:"center",children:(0,W.jsx)(V,{color:"#f59e0b",icon:(0,W.jsx)(A.xI$,{size:12}),label:"".concat(_(e.minkm)," km"),width:90})}),(0,W.jsx)(j.A,{align:"center",children:(0,W.jsx)(V,{color:"#10b981",icon:(0,W.jsx)(A.H4F,{size:12}),label:X(e.priceperkm),width:110})}),(0,W.jsx)(j.A,{align:"center",children:(0,W.jsx)(V,{color:"#ef4444",icon:(0,W.jsx)(A.xI$,{size:12}),label:"".concat(_(e.maxkm)," km"),width:90})}),(0,W.jsx)(j.A,{align:"center",children:(0,W.jsxs)(h.A,{direction:"row",alignItems:"center",justifyContent:"center",spacing:.5,children:[(0,W.jsx)(A.GdF,{size:14,color:N}),(0,W.jsx)(l.A,{variant:"subtitle2",sx:{fontWeight:700,color:L,whiteSpace:"nowrap"},children:null!==(o=e.minorder)&&void 0!==o?o:"\u2014"})]})})]},e.pricingid||"".concat(e.appname,"-").concat(r))})):(0,W.jsx)(m.A,{children:(0,W.jsx)(j.A,{colSpan:9,sx:{py:6},children:(0,W.jsxs)(h.A,{alignItems:"center",spacing:1.5,children:[(0,W.jsx)(s.A,{sx:{width:64,height:64,bgcolor:O("#94a3b8"),color:N},children:(0,W.jsx)(A.JL6,{size:28})}),(0,W.jsx)(l.A,{variant:"subtitle1",sx:{fontWeight:700,color:L},children:"No pricing to show"}),(0,W.jsx)(l.A,{variant:"caption",sx:{color:B},children:ee?"Try a different keyword.":"Pick a zone above to load the catalog."})]})})})]})]})})})]});var ae}}}]); \ No newline at end of file diff --git a/build/static/js/7157.99d280ab.chunk.js b/build/static/js/7157.99d280ab.chunk.js deleted file mode 100644 index 2343d47..0000000 --- a/build/static/js/7157.99d280ab.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[7157],{23787:(e,r,o)=>{o.d(r,{FG:()=>p,nV:()=>x,pY:()=>g,pg:()=>h});var n=o(89379),i=o(80045),t=o(93230),s=o(2235),l=o(16491),c=o(82053),a=o(44414);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:r,scroll:o=!1,onScroll:s,sx:l}=e,c=(0,i.A)(e,d);return(0,a.jsx)(t.A,(0,n.A)((0,n.A)({spacing:1.25,onScroll:s,sx:(0,n.A)((0,n.A)({p:1.5},o&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),l)},c),{},{children:r}))},h=e=>{let{accent:r="#662582",header:o,footer:i,selected:t=!1,onClick:c,children:d,sx:x}=e;return(0,a.jsxs)(s.A,{elevation:0,onClick:c,sx:(0,n.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:t?r:"#e2e8f0",background:t?"".concat(r,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,a.jsx)(l.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:r}}),(0,a.jsxs)(l.A,{sx:{p:1.5,pl:2},children:[o,d,i]})]})},p=e=>{let{children:r,columns:o=2,sx:i}=e;return(0,a.jsx)(l.A,{sx:(0,n.A)({display:"grid",gridTemplateColumns:"repeat(".concat(o,", minmax(0, 1fr))"),gap:1,mt:1.25},i),children:r})},g=e=>{let{label:r,value:o,children:n,full:i=!1,align:t="left"}=e;return(0,a.jsxs)(l.A,{sx:{gridColumn:i?"1 / -1":"auto",minWidth:0,textAlign:t},children:[(0,a.jsx)(c.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:r}),(0,a.jsx)(l.A,{sx:{mt:.25,minWidth:0},children:void 0!==n?n:(0,a.jsx)(c.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==o&&void 0!==o?o:"\u2014"})})]})}},27001:(e,r,o)=>{o.d(r,{A:()=>l});var n=o(93230),i=o(16491),t=o(82053),s=o(44414);function l(e){let{title:r,subtitle:o,live:l=!1,action:c}=e;return(0,s.jsxs)(n.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,s.jsxs)(i.A,{sx:{minWidth:0},children:[(0,s.jsx)(t.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:r}),o&&(0,s.jsxs)(n.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[l&&(0,s.jsx)(i.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,s.jsx)(t.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:o})]})]}),c&&(0,s.jsx)(i.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:c})]})}},36803:(e,r,o)=>{o.d(r,{A:()=>x});var n=o(48089),i=o(50704),t=o(93230),s=o(16491),l=o(82053),c=o(82917),a=o(41413),d=o(44414);function x(e){let{title:r,value:o,icon:x,color:h="#662582",caption:p,loading:g=!1}=e;return(0,d.jsx)(n.A,{sx:{height:"100%"},children:(0,d.jsx)(i.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,d.jsxs)(t.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,d.jsxs)(s.A,{sx:{minWidth:0,flex:1},children:[(0,d.jsx)(l.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r}),g?(0,d.jsx)(c.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,d.jsx)(l.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o}),p&&(0,d.jsx)(l.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:p})]}),x&&(0,d.jsx)(a.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(h,"14"),color:h,flexShrink:0},children:x})]})})})}},56311:(e,r,o)=>{o.d(r,{A:()=>p});var n=o(89379),i=o(9950),t=o(2660),s=o(2046),l=o(83274),c=o(25333),a=o(97125),d=o(7762),x=o(52097),h=o(44414);const p=e=>{let{value:r,onChange:o,onDebouncedChange:p,debounceTime:g=500,placeholder:u="Search (ctrl+k)",sx:m}=e;const j=(0,i.useRef)(null),[b]=(0,x.d7)(r,g);return(0,i.useEffect)((()=>{p&&p(b)}),[b,p]),(0,i.useEffect)((()=>{const e=e=>{var r;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(r=j.current)||void 0===r||r.focus());"Escape"===e.key&&document.activeElement===j.current&&j.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,h.jsx)(t.A,{sx:(0,n.A)({},m),inputRef:j,placeholder:u,autoComplete:"off",value:r,fullWidth:!0,onChange:e=>o(e.target.value),startAdornment:(0,h.jsx)(s.A,{position:"start",sx:{mr:-.5},children:(0,h.jsx)(a.A,{})}),endAdornment:(0,h.jsx)(l.A,{title:"Clear",children:(0,h.jsx)(c.A,{sx:{visibility:r?"visible":"hidden"},onClick:()=>o(""),children:(0,h.jsx)(d.A,{})})})})}},59212:(e,r,o)=>{o.d(r,{A:()=>h});var n=o(89379),i=o(9950),t=o(93230),s=o(41413),l=o(77922),c=o(29925),a=o(26910),d=o(31222),x=o(44414);const h=(0,i.forwardRef)(((e,r)=>{let{setAppId:o,setLocoName:h,setPage:p,sx:g,textfeildSx:u,textfieldSx:m,pill:j=!1,accentColor:b="#6366f1",icon:A,placeholder:f="Select Zone",paperComponent:v}=e;const[w,S]=(0,i.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,i.useEffect)((()=>{0===w.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const r=await a.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(r.data.status){const e=[...r.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),S(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[w.length]);const k=e=>"".concat(b).concat(e),y=k("26"),C=k("18"),I=j?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(y)},"&.Mui-focused fieldset":{borderColor:b,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},z=j&&(0,x.jsx)(t.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,x.jsx)(s.A,{sx:{width:24,height:24,bgcolor:C,color:b,transition:"background-color 0.15s, color 0.15s"},children:A||(0,x.jsx)(d.HPi,{size:14})})});return(0,x.jsx)(l.A,{id:"location-autocomplete",options:w||[],getOptionLabel:e=>{var r;return null!==(r=null===e||void 0===e?void 0:e.locationname)&&void 0!==r?r:""},PaperComponent:v,sx:(0,n.A)({},g),onChange:(e,r,n)=>{"clear"===n?(null===o||void 0===o||o(0),null===h||void 0===h||h(""),null===p||void 0===p||p(0)):r&&(null===o||void 0===o||o(r.applocationid),null===h||void 0===h||h(r.locationname),null===p||void 0===p||p(0))},renderInput:e=>j?(0,x.jsx)(c.A,(0,n.A)((0,n.A)({},e),{},{inputRef:r,placeholder:f,InputProps:(0,n.A)((0,n.A)({},e.InputProps),{},{startAdornment:z}),sx:(0,n.A)((0,n.A)({},I),m||u||{})})):(0,x.jsx)(c.A,(0,n.A)((0,n.A)({},e),{},{inputRef:r,label:"Select Zones",sx:(0,n.A)({},m||u||{})}))})}))},96646:(e,r,o)=>{o.d(r,{r:()=>c});var n=o(9213),i=o(21671),t=o(82917),s=o(93230),l=o(44414);const c=e=>{let{rowsPerPage:r=5,col:o=1}=e;return(0,l.jsx)(l.Fragment,{children:Array.from(new Array(r)).map(((e,r)=>(0,l.jsxs)(n.A,{children:[(0,l.jsx)(i.A,{children:(0,l.jsx)(t.A,{variant:"circular",width:24,height:24})}),(0,l.jsx)(i.A,{children:(0,l.jsx)(t.A,{variant:"text",width:30})}),Array.from({length:o}).map(((e,r)=>(0,l.jsx)(i.A,{children:(0,l.jsxs)(s.A,{spacing:.5,children:[(0,l.jsx)(t.A,{variant:"text",width:100}),(0,l.jsx)(t.A,{variant:"text",width:80})]})},r))),(0,l.jsx)(i.A,{children:(0,l.jsx)(t.A,{variant:"text",width:150})}),(0,l.jsx)(i.A,{children:(0,l.jsx)(t.A,{variant:"rounded",width:60,height:24})}),(0,l.jsx)(i.A,{align:"center",children:(0,l.jsxs)(s.A,{direction:"row",spacing:1,justifyContent:"flex-end",children:[(0,l.jsx)(t.A,{variant:"circular",width:28,height:28}),(0,l.jsx)(t.A,{variant:"circular",width:28,height:28})]})})]},r)))})}},97157:(e,r,o)=>{o.r(r),o.d(r,{default:()=>Q});var n=o(89379),i=o(9950),t=o(2235),s=o(41413),l=o(82053),c=o(16491),a=o(14857),d=o(47223),x=o(60899),h=o(93230),p=o(1320),g=o(15769),u=o(69780),m=o(9213),j=o(21671),b=o(34075),A=o(31222),f=o(36150),v=o(52351),w=o(56311),S=o(59212),k=o(27001),y=o(36803),C=o(23787),I=o(96646),z=o(81425),W=o(44414);const R=14,M=10,P="0 12px 32px rgba(15, 23, 42, 0.12)",L="#0f172a",B="#64748b",N="#94a3b8",F="#e2e8f0",T="#cbd5e1",D="#f1f5f9",E="#ffffff",H="#f8fafc",J=(e,r)=>"".concat(e).concat(r),K=e=>J(e,"08"),O=e=>J(e,"18"),Y=e=>J(e,"55"),Z="#662582",G=e=>(0,W.jsx)(t.A,(0,n.A)((0,n.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:P,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),X=e=>{let{color:r,selected:o,size:n=24,children:i}=e;return(0,W.jsx)(s.A,{sx:{width:n,height:n,bgcolor:o?r:O(r),color:o?"#fff":r,transition:"background-color 0.15s, color 0.15s"},children:i})},$=e=>new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",minimumFractionDigits:2}).format(Number(e)||0),_=e=>new Intl.NumberFormat("en-IN",{minimumFractionDigits:2}).format(Number(e)||0),V=e=>{let{label:r}=e;return(0,W.jsx)(l.A,{component:"span",sx:{fontSize:13.5,fontWeight:700,color:L,whiteSpace:"nowrap",fontVariantNumeric:"tabular-nums"},children:r})},q=e=>{let{icon:r,label:o}=e;return(0,W.jsxs)(c.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:8,bgcolor:H,border:"1px solid ".concat(F),color:L,fontSize:12,fontWeight:600,whiteSpace:"nowrap"},children:[(0,W.jsx)(c.A,{component:"span",sx:{display:"inline-flex",color:N},children:r}),o]})},Q=()=>{const e=(0,a.A)(),r=(0,d.A)(e.breakpoints.down("md")),o=(0,i.useRef)(),[n,P]=(0,i.useState)(0),[Q,U]=(0,i.useState)("All"),[ee,re]=(0,i.useState)(""),[oe,ne]=(0,i.useState)(""),{data:ie=[],isLoading:te}=(0,f.I)({queryKey:["getallpricing",n],queryFn:z.OM,keepPreviousData:!0}),se=(0,i.useMemo)((()=>{if(!oe)return ie;const e=oe.toLowerCase().trim();return ie.filter((r=>[r.applocation,r.appname,r.slab,String(r.pricingid)].filter(Boolean).some((r=>String(r).toLowerCase().includes(e)))))}),[ie,oe]),le=(0,i.useMemo)((()=>{const e=ie.length;return{total:e,tenants:new Set(ie.map((e=>e.appname)).filter(Boolean)).size,avgBase:e?ie.reduce(((e,r)=>e+(Number(r.baseprice)||0)),0)/e:0}}),[ie]),ce=[{key:"total",label:"Total Pricing Slabs",color:Z,icon:A.x2E,value:le.total},{key:"tenants",label:"Tenants Priced",color:"#0ea5e9",icon:A.AYP,value:le.tenants},{key:"avg",label:"Avg Base Price",color:"#f59e0b",icon:A.X3k,value:$(le.avgBase)},{key:"zone",label:"Active Zone",color:"#10b981",icon:A.XXh,value:Q||"All Zones"}];return(0,W.jsxs)(W.Fragment,{children:[te&&(0,W.jsx)(v.A,{}),(0,W.jsx)(k.A,{title:"Pricing",subtitle:"Live \xb7 ".concat(Q||"All Zones"),live:!0,action:(0,W.jsx)(S.A,{locaName:Q,setAppId:P,setLocoName:U,pill:!0,accentColor:Z,icon:(0,W.jsx)(A.HPi,{size:14}),placeholder:"Select Zone",paperComponent:G,sx:{width:{xs:"100%",sm:280},zIndex:100}})}),(0,W.jsx)(x.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:ce.map((e=>{const r=e.icon;return(0,W.jsx)(x.Ay,{item:!0,xs:6,sm:6,md:3,children:(0,W.jsx)(y.A,{title:e.label,value:e.value,icon:(0,W.jsx)(r,{size:20}),color:e.color})},e.key)}))}),(0,W.jsx)(t.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:R/8,borderTopRightRadius:R/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:F,borderBottom:0,background:"#fff"},children:(0,W.jsxs)(h.A,{direction:{xs:"column",sm:"row"},alignItems:{xs:"stretch",sm:"center"},justifyContent:"space-between",spacing:1.25,children:[(0,W.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1.25,children:[(0,W.jsx)(X,{color:Z,size:32,children:(0,W.jsx)(A.JL6,{size:18})}),(0,W.jsxs)(h.A,{children:[(0,W.jsx)(l.A,{variant:"caption",sx:{fontWeight:800,color:B,letterSpacing:.6,textTransform:"uppercase"},children:"Pricing Catalog"}),(0,W.jsxs)(l.A,{variant:"body2",sx:{color:L,fontWeight:700},children:[ie.length," total \xb7 ",se.length," shown"]})]})]}),(0,W.jsx)(c.A,{sx:{width:{xs:"100%",sm:280,lg:340},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,W.jsx)(w.A,{value:ee,onChange:re,onDebouncedChange:ne,placeholder:"Search pricing (ctrl+k)",sx:{m:0,width:"100%",borderRadius:M+"px",bgcolor:E,"& fieldset":{borderColor:F,borderWidth:1},"&:hover fieldset":{borderColor:T},"&.Mui-focused fieldset":{borderColor:Z,borderWidth:1.5},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat((ae=Z,J(ae,"26")))}}})})]})}),(0,W.jsx)(t.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:R/8,borderBottomRightRadius:R/8,border:"1px solid",borderColor:F,overflow:"hidden",background:"#fff"},children:r?0!==se.length||te?(0,W.jsx)(C.nV,{scroll:!0,children:se.map(((e,r)=>{var o;return(0,W.jsxs)(C.pg,{accent:Z,header:(0,W.jsxs)(h.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,W.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,sx:{minWidth:0},children:[(0,W.jsx)(X,{color:Z,size:36,children:(0,W.jsx)(A.Itr,{size:18})}),(0,W.jsxs)(h.A,{sx:{minWidth:0},children:[(0,W.jsx)(l.A,{variant:"subtitle2",sx:{fontWeight:700,color:L},noWrap:!0,children:e.appname||"\u2014"}),(0,W.jsxs)(l.A,{variant:"caption",sx:{color:B},children:["ID #",e.pricingid]})]})]}),(0,W.jsx)(l.A,{variant:"caption",sx:{fontWeight:700,color:N,flexShrink:0},children:String(r+1).padStart(2,"0")})]}),children:[(0,W.jsxs)(h.A,{direction:"row",spacing:.75,sx:{mt:1,flexWrap:"wrap",gap:.75},children:[e.applocation?(0,W.jsxs)(c.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:K("#10b981"),border:"1px solid ".concat(Y("#10b981")),color:"#10b981",fontSize:11,fontWeight:800},children:[(0,W.jsx)(A.JFD,{size:12})," ",e.applocation]}):null,(0,W.jsxs)(c.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:K("#0ea5e9"),border:"1px solid ".concat(Y("#0ea5e9")),color:"#0ea5e9",fontSize:11,fontWeight:800},children:[(0,W.jsx)(A.BJM,{size:12})," ",e.slab||"\u2014"]})]}),(0,W.jsxs)(C.FG,{children:[(0,W.jsx)(C.pY,{label:"Base Price",children:(0,W.jsx)(V,{color:Z,icon:(0,W.jsx)(A.bmp,{size:12}),label:$(e.baseprice)})}),(0,W.jsx)(C.pY,{label:"Price / KM",children:(0,W.jsx)(V,{color:"#10b981",icon:(0,W.jsx)(A.H4F,{size:12}),label:$(e.priceperkm)})}),(0,W.jsx)(C.pY,{label:"Min KM",children:(0,W.jsx)(V,{color:"#f59e0b",icon:(0,W.jsx)(A.xI$,{size:12}),label:"".concat(_(e.minkm)," km")})}),(0,W.jsx)(C.pY,{label:"Max KM",children:(0,W.jsx)(V,{color:"#ef4444",icon:(0,W.jsx)(A.xI$,{size:12}),label:"".concat(_(e.maxkm)," km")})}),(0,W.jsx)(C.pY,{label:"Min Orders",children:(0,W.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:.5,children:[(0,W.jsx)(A.GdF,{size:14,color:N}),(0,W.jsx)(l.A,{variant:"subtitle2",sx:{fontWeight:700,color:L},children:null!==(o=e.minorder)&&void 0!==o?o:"\u2014"})]})})]})]},e.pricingid||"".concat(e.appname,"-").concat(r))}))}):(0,W.jsxs)(h.A,{alignItems:"center",spacing:1.5,sx:{py:6,px:2},children:[(0,W.jsx)(s.A,{sx:{width:64,height:64,bgcolor:O("#94a3b8"),color:N},children:(0,W.jsx)(A.JL6,{size:28})}),(0,W.jsx)(l.A,{variant:"subtitle1",sx:{fontWeight:700,color:L},children:"No pricing to show"}),(0,W.jsx)(l.A,{variant:"caption",sx:{color:B,textAlign:"center"},children:ee?"Try a different keyword.":"Pick a zone above to load the catalog."})]}):(0,W.jsx)(p.A,{ref:o,sx:{maxHeight:{xs:"calc(100vh - 220px)",md:"calc(100vh - 190px)"},"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:Y(Z),borderRadius:8,"&:hover":{backgroundColor:Z}},"&::-webkit-scrollbar-track":{backgroundColor:H}},children:(0,W.jsxs)(g.A,{stickyHeader:!0,sx:{minWidth:{xs:860,md:1080}},children:[(0,W.jsx)(u.A,{children:(0,W.jsxs)(m.A,{sx:{"& th":{backgroundColor:H,color:B,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(F),py:{xs:1,md:1.25},px:{xs:1,md:2}}},children:[(0,W.jsx)(j.A,{children:"#"}),(0,W.jsx)(j.A,{children:"Tenant"}),(0,W.jsx)(j.A,{children:"Zone"}),(0,W.jsx)(j.A,{children:"Slab"}),(0,W.jsx)(j.A,{align:"center",children:"Base Price"}),(0,W.jsx)(j.A,{align:"center",children:"Min KM"}),(0,W.jsx)(j.A,{align:"center",children:"Price / KM"}),(0,W.jsx)(j.A,{align:"center",children:"Max KM"}),(0,W.jsx)(j.A,{align:"center",children:"Min Orders"})]})}),(0,W.jsxs)(b.A,{children:[te&&(0,W.jsx)(I.r,{col:5}),0!==se.length||te?se.map(((e,r)=>{var o;return(0,W.jsxs)(m.A,{sx:{transition:"background-color 0.15s","& td":{borderBottom:"1px solid ".concat(D),py:{xs:1,md:1.5},px:{xs:1,md:2}},"&:hover":{backgroundColor:H}},children:[(0,W.jsx)(j.A,{children:(0,W.jsx)(l.A,{variant:"caption",sx:{fontWeight:700,color:N},children:String(r+1).padStart(2,"0")})}),(0,W.jsx)(j.A,{children:(0,W.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,W.jsx)(X,{color:Z,size:36,children:(0,W.jsx)(A.Itr,{size:18})}),(0,W.jsxs)(h.A,{children:[(0,W.jsx)(l.A,{variant:"subtitle2",sx:{fontWeight:700,color:L,whiteSpace:"nowrap"},children:e.appname||"\u2014"}),(0,W.jsxs)(l.A,{variant:"caption",sx:{color:B},children:["ID #",e.pricingid]})]})]})}),(0,W.jsx)(j.A,{children:e.applocation?(0,W.jsx)(q,{icon:(0,W.jsx)(A.JFD,{size:12}),label:e.applocation}):(0,W.jsx)(l.A,{variant:"caption",sx:{color:N},children:"\u2014"})}),(0,W.jsx)(j.A,{children:(0,W.jsx)(q,{icon:(0,W.jsx)(A.BJM,{size:12}),label:e.slab||"\u2014"})}),(0,W.jsx)(j.A,{align:"center",children:(0,W.jsx)(V,{color:Z,icon:(0,W.jsx)(A.bmp,{size:12}),label:$(e.baseprice),width:110})}),(0,W.jsx)(j.A,{align:"center",children:(0,W.jsx)(V,{color:"#f59e0b",icon:(0,W.jsx)(A.xI$,{size:12}),label:"".concat(_(e.minkm)," km"),width:90})}),(0,W.jsx)(j.A,{align:"center",children:(0,W.jsx)(V,{color:"#10b981",icon:(0,W.jsx)(A.H4F,{size:12}),label:$(e.priceperkm),width:110})}),(0,W.jsx)(j.A,{align:"center",children:(0,W.jsx)(V,{color:"#ef4444",icon:(0,W.jsx)(A.xI$,{size:12}),label:"".concat(_(e.maxkm)," km"),width:90})}),(0,W.jsx)(j.A,{align:"center",children:(0,W.jsxs)(h.A,{direction:"row",alignItems:"center",justifyContent:"center",spacing:.5,children:[(0,W.jsx)(A.GdF,{size:14,color:N}),(0,W.jsx)(l.A,{variant:"subtitle2",sx:{fontWeight:700,color:L,whiteSpace:"nowrap"},children:null!==(o=e.minorder)&&void 0!==o?o:"\u2014"})]})})]},e.pricingid||"".concat(e.appname,"-").concat(r))})):(0,W.jsx)(m.A,{children:(0,W.jsx)(j.A,{colSpan:9,sx:{py:6},children:(0,W.jsxs)(h.A,{alignItems:"center",spacing:1.5,children:[(0,W.jsx)(s.A,{sx:{width:64,height:64,bgcolor:O("#94a3b8"),color:N},children:(0,W.jsx)(A.JL6,{size:28})}),(0,W.jsx)(l.A,{variant:"subtitle1",sx:{fontWeight:700,color:L},children:"No pricing to show"}),(0,W.jsx)(l.A,{variant:"caption",sx:{color:B},children:ee?"Try a different keyword.":"Pick a zone above to load the catalog."})]})})})]})]})})})]});var ae}}}]); \ No newline at end of file diff --git a/build/static/js/7221.c4a0ec4e.chunk.js b/build/static/js/7221.c4a0ec4e.chunk.js deleted file mode 100644 index a8768ff..0000000 --- a/build/static/js/7221.c4a0ec4e.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[7221],{23787:(e,r,t)=>{"use strict";t.d(r,{FG:()=>p,nV:()=>h,pY:()=>u,pg:()=>x});var i=t(89379),s=t(80045),n=t(93230),l=t(2235),o=t(16491),a=t(82053),c=t(44414);const d=["children","scroll","onScroll","sx"],h=e=>{let{children:r,scroll:t=!1,onScroll:l,sx:o}=e,a=(0,s.A)(e,d);return(0,c.jsx)(n.A,(0,i.A)((0,i.A)({spacing:1.25,onScroll:l,sx:(0,i.A)((0,i.A)({p:1.5},t&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),o)},a),{},{children:r}))},x=e=>{let{accent:r="#662582",header:t,footer:s,selected:n=!1,onClick:a,children:d,sx:h}=e;return(0,c.jsxs)(l.A,{elevation:0,onClick:a,sx:(0,i.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:n?r:"#e2e8f0",background:n?"".concat(r,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},h),children:[(0,c.jsx)(o.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:r}}),(0,c.jsxs)(o.A,{sx:{p:1.5,pl:2},children:[t,d,s]})]})},p=e=>{let{children:r,columns:t=2,sx:s}=e;return(0,c.jsx)(o.A,{sx:(0,i.A)({display:"grid",gridTemplateColumns:"repeat(".concat(t,", minmax(0, 1fr))"),gap:1,mt:1.25},s),children:r})},u=e=>{let{label:r,value:t,children:i,full:s=!1,align:n="left"}=e;return(0,c.jsxs)(o.A,{sx:{gridColumn:s?"1 / -1":"auto",minWidth:0,textAlign:n},children:[(0,c.jsx)(a.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:r}),(0,c.jsx)(o.A,{sx:{mt:.25,minWidth:0},children:void 0!==i?i:(0,c.jsx)(a.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==t&&void 0!==t?t:"\u2014"})})]})}},36220:function(e){e.exports=function(){"use strict";var e="minute",r=/[+-]\d\d(?::?\d\d)?/g,t=/([+-]|\d\d)/g;return function(i,s,n){var l=s.prototype;n.utc=function(e){return new s({date:e,utc:!0,args:arguments})},l.utc=function(r){var t=n(this.toDate(),{locale:this.$L,utc:!0});return r?t.add(this.utcOffset(),e):t},l.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var o=l.parse;l.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),o.call(this,e)};var a=l.init;l.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else a.call(this)};var c=l.utcOffset;l.utcOffset=function(i,s){var n=this.$utils().u;if(n(i))return this.$u?0:n(this.$offset)?c.call(this):this.$offset;if("string"==typeof i&&(i=function(e){void 0===e&&(e="");var i=e.match(r);if(!i)return null;var s=(""+i[0]).match(t)||["-",0,0],n=s[0],l=60*+s[1]+ +s[2];return 0===l?0:"+"===n?l:-l}(i),null===i))return this;var l=Math.abs(i)<=16?60*i:i,o=this;if(s)return o.$offset=l,o.$u=0===i,o;if(0!==i){var a=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(l+a,e)).$offset=l,o.$x.$localOffset=a}else o=this.utc();return o};var d=l.format;l.format=function(e){var r=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,r)},l.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var h=l.toDate;l.toDate=function(e){return"s"===e&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var x=l.diff;l.diff=function(e,r,t){if(e&&this.$u===e.$u)return x.call(this,e,r,t);var i=this.local(),s=n(e).local();return x.call(i,s,r,t)}}}()},46639:(e,r,t)=>{"use strict";t.d(r,{A:()=>T});var i=t(57528),s=t(98587),n=t(58168),l=t(9950),o=t(72004),a=t(3484),c=t(88283),d=t(89548),h=t(18463),x=t(59254),p=t(45558),u=t(1614);function m(e){return(0,u.Ay)("MuiCircularProgress",e)}(0,p.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var A,j,f,v,g=t(44414);const y=["className","color","disableShrink","size","style","thickness","value","variant"];let k,b,S,Y;const C=44,z=(0,c.i7)(k||(k=A||(A=(0,i.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),D=(0,c.i7)(b||(b=j||(j=(0,i.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),W=(0,x.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[t.variant],r["color".concat((0,d.A)(t.color))]]}})((e=>{let{ownerState:r,theme:t}=e;return(0,n.A)({display:"inline-block"},"determinate"===r.variant&&{transition:t.transitions.create("transform")},"inherit"!==r.color&&{color:(t.vars||t).palette[r.color].main})}),(e=>{let{ownerState:r}=e;return"indeterminate"===r.variant&&(0,c.AH)(S||(S=f||(f=(0,i.A)(["\n animation: "," 1.4s linear infinite;\n "]))),z)})),w=(0,x.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,r)=>r.svg})({display:"block"}),M=(0,x.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.circle,r["circle".concat((0,d.A)(t.variant))],t.disableShrink&&r.circleDisableShrink]}})((e=>{let{ownerState:r,theme:t}=e;return(0,n.A)({stroke:"currentColor"},"determinate"===r.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===r.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:r}=e;return"indeterminate"===r.variant&&!r.disableShrink&&(0,c.AH)(Y||(Y=v||(v=(0,i.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),D)})),T=l.forwardRef((function(e,r){const t=(0,h.b)({props:e,name:"MuiCircularProgress"}),{className:i,color:l="primary",disableShrink:c=!1,size:x=40,style:p,thickness:u=3.6,value:A=0,variant:j="indeterminate"}=t,f=(0,s.A)(t,y),v=(0,n.A)({},t,{color:l,disableShrink:c,size:x,thickness:u,value:A,variant:j}),k=(e=>{const{classes:r,variant:t,color:i,disableShrink:s}=e,n={root:["root",t,"color".concat((0,d.A)(i))],svg:["svg"],circle:["circle","circle".concat((0,d.A)(t)),s&&"circleDisableShrink"]};return(0,a.A)(n,m,r)})(v),b={},S={},Y={};if("determinate"===j){const e=2*Math.PI*((C-u)/2);b.strokeDasharray=e.toFixed(3),Y["aria-valuenow"]=Math.round(A),b.strokeDashoffset="".concat(((100-A)/100*e).toFixed(3),"px"),S.transform="rotate(-90deg)"}return(0,g.jsx)(W,(0,n.A)({className:(0,o.A)(k.root,i),style:(0,n.A)({width:x,height:x},S,p),ownerState:v,ref:r,role:"progressbar"},Y,f,{children:(0,g.jsx)(w,{className:k.svg,ownerState:v,viewBox:"".concat(22," ").concat(22," ").concat(C," ").concat(C),children:(0,g.jsx)(M,{className:k.circle,style:b,ownerState:v,cx:C,cy:C,r:(C-u)/2,fill:"none",strokeWidth:u})})}))}))},47659:(e,r,t)=>{"use strict";t.d(r,{A:()=>d});var i=t(89379),s=t(48089),n=t(50704),l=t(16491),o=t(82053),a=t(60899),c=t(44414);const d=e=>{let{primary:r,secondary:t,percentage:d,color:h,sx:x}=e;return(0,c.jsx)(s.A,{elevation:0,sx:(0,i.A)({background:h,position:"relative",color:"#fff","&:hover svg":{opacity:1,transform:"scale(1.1)"}},x),children:(0,c.jsxs)(n.A,{children:[(0,c.jsx)(l.A,{sx:{position:"absolute",right:15,top:25,color:"#fff","& svg":{width:36,height:36,opacity:.5,transition:"all .3s ease-in-out"}},children:(0,c.jsx)(o.A,{variant:"h2",color:"inherit",sx:{fontSize:{xs:20,md:25}},children:d&&"number"===typeof d?"".concat(d.toString()," %"):d})}),(0,c.jsxs)(a.Ay,{container:!0,spacing:0,children:[(0,c.jsx)(a.Ay,{item:!0,xs:12,children:(0,c.jsx)(o.A,{variant:"h3",color:"inherit",sx:{fontSize:{xs:16,md:20}},children:t})}),(0,c.jsx)(a.Ay,{item:!0,xs:12,children:(0,c.jsx)(o.A,{variant:"subtitle2",color:"inherit",children:r})})]})]})})}},57221:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>V});var i=t(89379),s=t(93230),n=t(82053),l=t(25277),o=t(83274),a=t(25333),c=t(10226),d=t(55158),h=t(60899),x=t(1320),p=t(15769),u=t(69780),m=t(9213),A=t(21671),j=t(34075),f=t(74745),v=t(77922),g=t(29925),y=t(9950),k=t(14857),b=t(47223),S=t(23787),Y=t(28429),C=t(4159),z=t.n(C),D=t(50027),W=t(63189),w=t(81425),M=t(20466),T=t(36150),R=t(51778),P=t(52351),J=t(94826),F=t(13838),K=t(47659),O=t(58168);const H={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM482 232c0-4.4 3.6-8 8-8h44c4.4 0 8 3.6 8 8v80c0 4.4-3.6 8-8 8h-44c-4.4 0-8-3.6-8-8v-80zM270 582c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v44zm90.7-204.5l-31.1 31.1a8.03 8.03 0 01-11.3 0L261.7 352a8.03 8.03 0 010-11.3l31.1-31.1c3.1-3.1 8.2-3.1 11.3 0l56.6 56.6c3.1 3.1 3.1 8.2 0 11.3zm291.1 83.6l-84.5 84.5c5 18.7.2 39.4-14.5 54.1a55.95 55.95 0 01-79.2 0 55.95 55.95 0 010-79.2 55.87 55.87 0 0154.1-14.5l84.5-84.5c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3c3.1 3.1 3.1 8.1 0 11.3zm43-52.4l-31.1-31.1a8.03 8.03 0 010-11.3l56.6-56.6c3.1-3.1 8.2-3.1 11.3 0l31.1 31.1c3.1 3.1 3.1 8.2 0 11.3l-56.6 56.6a8.03 8.03 0 01-11.3 0zM846 582c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v44z"}}]},name:"dashboard",theme:"filled"};var N=t(61187),I=function(e,r){return y.createElement(N.A,(0,O.A)({},e,{ref:r,icon:H}))};const L=y.forwardRef(I);var Z=t(31222),B=t(43302),G=t(99324),U=t(44414),E=t(36220);z().extend(E);const q=e=>{let{list:r,aiMode:t}=e;return r&&0!==r.length?(0,U.jsx)(S.nV,{children:r.map(((e,r)=>{const i="Economy"==e.ordertype?"success":"Risky"==e.ordertype?"error":"primary";return(0,U.jsx)(S.pg,{header:(0,U.jsxs)(s.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,U.jsxs)(s.A,{direction:"row",alignItems:"center",spacing:1,sx:{minWidth:0},children:[(0,U.jsxs)(n.A,{sx:{fontWeight:800,color:"#94a3b8"},children:["#",r+1]}),1==t&&(0,U.jsx)(l.A,{size:"small",color:"primary",label:e.zone_name})]}),(0,U.jsx)(l.A,{size:"small",label:e.ordertype,color:i})]}),children:(0,U.jsxs)(S.FG,{children:[(0,U.jsx)(S.pY,{label:"Tenant",full:!0,children:(0,U.jsx)(o.A,{title:e.tenantaddress,children:(0,U.jsxs)(s.A,{children:[(0,U.jsx)(n.A,{variant:"body1",noWrap:!0,children:e.tenantname}),(0,U.jsx)(n.A,{noWrap:!0,sx:{fontSize:"11px"},children:e.tenantsuburb}),(0,U.jsx)(n.A,{noWrap:!0,variant:"body2",children:e.applocation})]})})}),(0,U.jsxs)(S.pY,{label:"Order Location",full:!0,children:[(0,U.jsx)(o.A,{title:e.locationaddress,placement:"top",children:(0,U.jsx)(n.A,{variant:"body1",noWrap:!0,children:"".concat(e.locationname,"-(").concat(e.locationsuburb,")")})}),(0,U.jsx)(o.A,{title:"Order Id",children:(0,U.jsx)(n.A,{variant:"body2",noWrap:!0,children:e.orderid})}),(0,U.jsxs)(s.A,{display:"flex",flexDirection:"row",gap:3,children:[(0,U.jsx)(o.A,{title:"Ordered date",children:(0,U.jsxs)(s.A,{children:[(0,U.jsx)(n.A,{noWrap:!0,sx:{fontSize:"12px"},children:z()(e.orderdate).utc().format("DD/MM/YYYY")}),(0,U.jsx)(n.A,{noWrap:!0,sx:{fontSize:"11px"},children:z()(e.orderdate).utc().format("hh:mm A")})]})}),"-",(0,U.jsx)(o.A,{title:"Delivery date",children:(0,U.jsxs)(s.A,{children:[(0,U.jsx)(n.A,{noWrap:!0,sx:{fontSize:"12px"},children:z()(e.deliverydate).utc().format("DD/MM/YYYY")}),(0,U.jsx)(n.A,{noWrap:!0,sx:{fontSize:"11px"},children:z()(e.deliverydate).utc().format("hh:mm A")})]})})]})]}),(0,U.jsx)(S.pY,{label:"Pickup",children:(0,U.jsxs)(s.A,{direction:"column",children:[(0,U.jsx)(n.A,{variant:"caption",children:e.pickupcustomer}),(0,U.jsx)(n.A,{variant:"caption",children:e.pickupcontactno}),(0,U.jsx)(o.A,{title:e.pickupaddress,children:(0,U.jsx)(n.A,{variant:"caption",children:e.pickupsuburb||e.pickupaddress.slice(0,20)})})]})}),(0,U.jsx)(S.pY,{label:"Delivery",children:(0,U.jsxs)(s.A,{direction:"column",children:[(0,U.jsx)(n.A,{variant:"caption",children:e.deliverycustomer}),(0,U.jsx)(n.A,{variant:"caption",children:e.deliverycontactno}),(0,U.jsx)(o.A,{title:e.deliveryaddress,children:(0,U.jsx)(n.A,{variant:"caption",children:e.deliverysuburb||e.deliveryaddress.slice(0,20)})})]})}),e.ordernotes?(0,U.jsx)(S.pY,{label:"Notes",value:e.ordernotes,full:!0}):null,1==t&&(0,U.jsxs)(S.pY,{label:"Rider",full:!0,children:[(0,U.jsx)(n.A,{sx:{whiteSpace:"nowrap"},children:e.username}),(0,U.jsxs)(n.A,{children:["ID : ",e.userid]})]}),(0,U.jsx)(S.pY,{label:"Profit",children:(0,U.jsxs)(s.A,{display:"flex",flexDirection:"column",gap:1,sx:{cursor:"pointer"},children:[(0,U.jsx)(o.A,{title:"Charges",placement:"top",children:(0,U.jsx)(l.A,{size:"small",label:"\u20b9 ".concat(e.deliverycharge.toFixed(2)," "),color:"error"})}),(0,U.jsx)(o.A,{title:"Amount",placement:"left",children:(0,U.jsx)(l.A,{size:"small",label:"\u20b9 ".concat(e.deliveryamt.toFixed(2)," "),color:"success"})})]})}),(0,U.jsx)(S.pY,{label:"KMS",children:(0,U.jsxs)(s.A,{display:"flex",flexDirection:"column",gap:1,sx:{cursor:"pointer"},children:[(0,U.jsx)(o.A,{title:"KMS",placement:"top",children:(0,U.jsx)(l.A,{size:"small",label:"".concat(e.kms," km"),color:"error"})}),(0,U.jsx)(o.A,{title:"Cumulative Kms",placement:"right",children:(0,U.jsx)(l.A,{size:"small",label:"".concat(e.cumulativekms," km"),color:"success"})})]})})]})},r)}))}):(0,U.jsx)(s.A,{alignItems:"center",sx:{py:4},children:(0,U.jsx)(F.A,{})})},V=()=>{var e,r,t,S,C,O,H;const N=(0,k.A)(),I=(0,b.A)(N.breakpoints.down("md")),E=(0,Y.Zp)(),V=(0,Y.zy)();console.log("location.state",V.state);const[Q,X]=(0,y.useState)(null),[$,_]=(0,y.useState)(null),[ee,re]=(0,y.useState)([]),[te,ie]=(0,y.useState)(!1),se=null===(e=V.state)||void 0===e?void 0:e.deliverylist,ne=null===(r=V.state)||void 0===r?void 0:r.zoneData,le=null===(t=V.state)||void 0===t?void 0:t.metaData,oe=null===(S=V.state)||void 0===S?void 0:S.riderToken,ae=null===(C=V.state)||void 0===C?void 0:C.appId,ce=null===(O=V.state)||void 0===O?void 0:O.aiMode,de=null===(H=V.state)||void 0===H?void 0:H.reassignOrders;(0,y.useEffect)((()=>{console.log("aiMode",ce),console.log("riderToken",oe),console.log("zoneData",ne),console.log("metaData",le),console.log("reassignOrders",de)}),[]),(0,y.useEffect)((()=>{if(null===se||void 0===se||!se.length)return;const e=se.map((e=>{const r=Number(e.cumulativekms||0),t=Number(e.minkm||0),s=Number(e.baseprice||0),n=Number(e.priceperkm||0);return r<=t?(0,i.A)((0,i.A)({},e),{},{deliveryamt:s}):(0,i.A)((0,i.A)({},e),{},{deliveryamt:(r-t)*n+s})}));re(e),console.log("finaldeliveryList",e)}),[se]);const{data:he=[],isLoading:xe,isError:pe,error:ue}=(0,T.I)({queryKey:["paymentmodes"],queryFn:w.HY}),{data:me=[],isLoading:Ae,isError:je,error:fe,refetch:ve}=(0,T.I)({queryKey:["ridersList",ae],queryFn:w.Sd,enabled:0!==ae}),ge=(0,R.n)({mutationFn:w.k3,onSuccess:()=>{(0,M.k)("Notification sent Successfully","success",2e3)},onError:e=>{(0,M.k)(e.message,"error",2e3)}}),ye=(0,R.n)({mutationFn:w.H2,onSuccess:(e,r)=>{console.log("data",e),console.log("varialbles",r),ge.mutate(Q.userfcmtoken||oe),"accepted"==e.status&&(0,M.k)("Delivery Created Successfully","success",2e3),setTimeout((()=>{ie(!1),E("/nearle/deliveries")}),2e3)},onError:e=>{(0,M.k)(e.message,"error",4e3)}});return(0,U.jsxs)(D.A,{content:!1,title:(0,U.jsxs)(s.A,{direction:"row",alignItems:"center",spacing:1,sx:{ml:1},children:[(0,U.jsxs)(o.A,{title:"Back to orders",placement:"top",children:[(0,U.jsx)(a.A,{onClick:()=>E("/nearle/orders"),sx:{backgroundColor:"action.hover",color:"text.primary","&:hover":{backgroundColor:"action.selected"}},children:(0,U.jsx)(G.eQE,{size:22})})," "]}),(0,U.jsx)(n.A,{sx:{m:2},variant:"h3",children:"Assign Orders"})]}),secondary:(0,U.jsx)(c.A,{sx:{m:2},color:"primary",variant:"contained",startIcon:(0,U.jsx)(W.A,{}),children:"Re-Assign"}),children:[(xe||Ae||te)&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(P.A,{}),(0,U.jsx)(J.A,{})]}),(0,U.jsx)(d.A,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:xe||Ae||te,children:(0,U.jsx)(J.A,{color:"inherit"})}),1==ce&&(0,U.jsx)(s.A,{sx:{m:2},children:(0,U.jsxs)(h.Ay,{container:!0,spacing:2,children:[(0,U.jsx)(h.Ay,{item:!0,xs:12,sm:3,children:(0,U.jsx)(K.A,{secondary:null===le||void 0===le?void 0:le.total_orders,primary:"Orders",percentage:(0,U.jsx)(L,{}),color:N.palette.success.main,sx:{cursor:"pointer"}})}),(0,U.jsx)(h.Ay,{item:!0,xs:12,sm:3,children:(0,U.jsx)(K.A,{secondary:null===le||void 0===le?void 0:le.total_riders,primary:"Riders",percentage:(0,U.jsx)(Z.bsz,{}),color:N.palette.warning.main})}),(0,U.jsx)(h.Ay,{item:!0,xs:12,sm:3,children:(0,U.jsx)(K.A,{secondary:null===ne||void 0===ne?void 0:ne.length,primary:"Zones",percentage:(0,U.jsx)(B.us2,{}),color:N.palette.info.main})}),(0,U.jsx)(h.Ay,{item:!0,xs:12,sm:3,children:(0,U.jsx)(K.A,{secondary:null===ne||void 0===ne?void 0:ne.length,primary:"Kilometer",percentage:(0,U.jsx)(B.us2,{}),color:N.palette.error.main})})]})}),I?(0,U.jsx)(q,{list:ee,aiMode:ce}):(0,U.jsx)(x.A,{sx:{maxHeight:"calc(100vh - 250px)",overflow:"auto","&::-webkit-scrollbar":{width:"12px",cursor:"pointer"},"&::-webkit-scrollbar-thumb":{backgroundColor:N.palette.primary.main,borderRadius:"8px",cursor:"pointer"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:N.palette.primary.dark,cursor:"pointer"},"&::-webkit-scrollbar-track":{backgroundColor:N.palette.primary.lighter,cursor:"pointer"}},children:(0,U.jsxs)(p.A,{stickyHeader:!0,children:[(0,U.jsx)(u.A,{children:(0,U.jsxs)(m.A,{sx:{backgroundColor:"red"},children:[(0,U.jsx)(A.A,{sx:{position:"sticky !important",backgroundColor:N.palette.secondary.light},children:"#"}),1==ce&&(0,U.jsx)(A.A,{sx:{position:"sticky !important",backgroundColor:N.palette.secondary.light},children:"Zone "}),(0,U.jsx)(A.A,{sx:{position:"sticky !important",backgroundColor:N.palette.secondary.light},children:"Tenant "}),(0,U.jsx)(A.A,{sx:{position:"sticky !important",backgroundColor:N.palette.secondary.light},children:"order Location"}),(0,U.jsx)(A.A,{sx:{position:"sticky !important",backgroundColor:N.palette.secondary.light},children:"Pickup "}),(0,U.jsx)(A.A,{sx:{position:"sticky !important",backgroundColor:N.palette.secondary.light},children:"Delivery"}),(0,U.jsx)(A.A,{sx:{position:"sticky !important",backgroundColor:N.palette.secondary.light},children:"Notes"}),1==ce&&(0,U.jsx)(A.A,{sx:{position:"sticky !important",backgroundColor:N.palette.secondary.light},children:"Rider"}),(0,U.jsx)(A.A,{align:"center",sx:{position:"sticky !important",backgroundColor:N.palette.secondary.light},children:"Type"}),(0,U.jsx)(A.A,{align:"center",sx:{position:"sticky !important",backgroundColor:N.palette.secondary.light},children:"Profit"}),(0,U.jsx)(A.A,{align:"center",sx:{position:"sticky !important",backgroundColor:N.palette.secondary.light},children:"Charges"}),(0,U.jsx)(A.A,{align:"center",sx:{position:"sticky !important",backgroundColor:N.palette.secondary.light},children:"KMS"})]})}),(0,U.jsxs)(j.A,{children:[0==(null===ee||void 0===ee?void 0:ee.length)&&(0,U.jsx)(m.A,{children:(0,U.jsx)(A.A,{colSpan:10,children:(0,U.jsx)(F.A,{})})}),ee&&1==ce?null===ee||void 0===ee?void 0:ee.map(((e,r)=>(0,U.jsx)(y.Fragment,{children:(0,U.jsxs)(m.A,{sx:{},children:[(0,U.jsx)(A.A,{children:(0,U.jsxs)(n.A,{children:[" ",r+1]})}),1==ce&&(0,U.jsx)(A.A,{children:(0,U.jsx)(l.A,{color:"primary",label:e.zone_name})}),(0,U.jsx)(A.A,{children:(0,U.jsxs)(o.A,{title:e.tenantaddress,children:[(0,U.jsx)(n.A,{variant:"body1",noWrap:!0,children:e.tenantname}),(0,U.jsxs)(n.A,{noWrap:!0,sx:{fontSize:"11px"},children:[e.tenantsuburb,(0,U.jsx)("br",{})]}),(0,U.jsx)(n.A,{noWrap:!0,variant:"body2",children:e.applocation})]})}),(0,U.jsxs)(A.A,{align:"left",children:[(0,U.jsx)(o.A,{title:e.locationaddress,placement:"top",children:(0,U.jsx)(n.A,{variant:"body1",noWrap:!0,children:"".concat(e.locationname,"-(").concat(e.locationsuburb,")")})}),(0,U.jsx)(o.A,{title:"Order Id",children:(0,U.jsx)(n.A,{variant:"body2",noWrap:!0,children:e.orderid})}),(0,U.jsxs)(s.A,{display:"flex",flexDirection:"row",gap:3,children:[(0,U.jsxs)(o.A,{title:"Ordered date",children:[(0,U.jsx)(n.A,{noWrap:!0,sx:{fontSize:"12px"},children:z()(e.orderdate).utc().format("DD/MM/YYYY")}),(0,U.jsx)(n.A,{noWrap:!0,sx:{fontSize:"11px"},children:z()(e.orderdate).utc().format("hh:mm A")})]}),"-",(0,U.jsxs)(o.A,{title:"Delivery date",children:[(0,U.jsx)(n.A,{noWrap:!0,sx:{fontSize:"12px"},children:z()(e.deliverydate).utc().format("DD/MM/YYYY")}),(0,U.jsx)(n.A,{noWrap:!0,sx:{fontSize:"11px"},children:z()(e.deliverydate).utc().format("hh:mm A")})]})]})]}),(0,U.jsx)(A.A,{align:"left",children:(0,U.jsx)(s.A,{direction:"row",spacing:1,children:(0,U.jsxs)(s.A,{direction:"column",children:[(0,U.jsx)(n.A,{variant:"caption",children:e.pickupcustomer}),(0,U.jsx)(n.A,{variant:"caption",children:e.pickupcontactno}),(0,U.jsx)(o.A,{title:e.pickupaddress,children:(0,U.jsx)(n.A,{variant:"caption",children:e.pickupsuburb||e.pickupaddress.slice(0,20)})})]})})}),(0,U.jsx)(A.A,{align:"left",children:(0,U.jsx)(s.A,{direction:"row",spacing:1,children:(0,U.jsxs)(s.A,{direction:"column",children:[(0,U.jsx)(n.A,{variant:"caption",children:e.deliverycustomer}),(0,U.jsx)(n.A,{variant:"caption",children:e.deliverycontactno}),(0,U.jsx)(o.A,{title:e.deliveryaddress,children:(0,U.jsx)(n.A,{variant:"caption",children:e.deliverysuburb||e.deliveryaddress.slice(0,20)})})]})})}),(0,U.jsx)(A.A,{align:"left",children:e.ordernotes}),1==ce&&(0,U.jsxs)(A.A,{align:"left",children:[(0,U.jsx)(n.A,{sx:{whiteSpace:"nowrap"},children:e.username}),(0,U.jsxs)(n.A,{children:["ID : ",e.userid]})]}),(0,U.jsx)(A.A,{align:"center",children:(0,U.jsx)(l.A,{size:"small",label:e.ordertype,color:"Economy"==e.ordertype?"success":"Risky"==e.ordertype?"error":"primary"})}),(0,U.jsx)(A.A,{align:"center",children:(0,U.jsxs)(s.A,{display:"flex",flexDirection:"column",gap:1,sx:{cursor:"pointer"},children:[(0,U.jsx)(o.A,{title:"Charges",placement:"top",children:(0,U.jsx)(l.A,{size:"small",label:"\u20b9 ".concat(e.deliverycharge.toFixed(2)," "),color:"error"})}),(0,U.jsx)(o.A,{title:"Amount",placement:"left",children:(0,U.jsx)(l.A,{size:"small",label:"\u20b9 ".concat(e.deliveryamt.toFixed(2)," "),color:"success"})})]})}),(0,U.jsx)(A.A,{align:"center",children:(0,U.jsxs)(s.A,{display:"flex",flexDirection:"column",gap:1,sx:{cursor:"pointer"},children:[(0,U.jsx)(o.A,{title:"KMS",placement:"top",children:(0,U.jsx)(l.A,{size:"small",label:"".concat(e.kms," km"),color:"error"})}),(0,U.jsx)(o.A,{title:"Cumulative Kms",placement:"right",children:(0,U.jsx)(l.A,{size:"small",label:"".concat(e.cumulativekms," km"),color:"success"})})]})})]})},r))):null===ee||void 0===ee?void 0:ee.map(((e,r)=>(0,U.jsx)(y.Fragment,{children:(0,U.jsxs)(m.A,{sx:{},children:[(0,U.jsx)(A.A,{children:(0,U.jsxs)(n.A,{children:[" ",r+1]})}),(0,U.jsx)(A.A,{children:(0,U.jsxs)(o.A,{title:e.tenantaddress,children:[(0,U.jsx)(n.A,{variant:"body1",noWrap:!0,children:e.tenantname}),(0,U.jsxs)(n.A,{noWrap:!0,sx:{fontSize:"11px"},children:[e.tenantsuburb,(0,U.jsx)("br",{})]}),(0,U.jsx)(n.A,{noWrap:!0,variant:"body2",children:e.applocation})]})}),(0,U.jsxs)(A.A,{align:"left",children:[(0,U.jsx)(o.A,{title:e.locationaddress,placement:"top",children:(0,U.jsx)(n.A,{variant:"body1",noWrap:!0,children:"".concat(e.locationname,"-(").concat(e.locationsuburb,")")})}),(0,U.jsx)(o.A,{title:"Order Id",children:(0,U.jsx)(n.A,{variant:"body2",noWrap:!0,children:e.orderid})}),(0,U.jsxs)(s.A,{display:"flex",flexDirection:"row",gap:3,children:[(0,U.jsxs)(o.A,{title:"Ordered date",children:[(0,U.jsx)(n.A,{noWrap:!0,sx:{fontSize:"12px"},children:z()(e.orderdate).utc().format("DD/MM/YYYY")}),(0,U.jsx)(n.A,{noWrap:!0,sx:{fontSize:"11px"},children:z()(e.orderdate).utc().format("hh:mm A")})]}),"-",(0,U.jsxs)(o.A,{title:"Delivery date",children:[(0,U.jsx)(n.A,{noWrap:!0,sx:{fontSize:"12px"},children:z()(e.deliverydate).utc().format("DD/MM/YYYY")}),(0,U.jsx)(n.A,{noWrap:!0,sx:{fontSize:"11px"},children:z()(e.deliverydate).utc().format("hh:mm A")})]})]})]}),(0,U.jsx)(A.A,{align:"left",children:(0,U.jsx)(s.A,{direction:"row",spacing:1,children:(0,U.jsxs)(s.A,{direction:"column",children:[(0,U.jsx)(n.A,{variant:"caption",children:e.pickupcustomer}),(0,U.jsx)(n.A,{variant:"caption",children:e.pickupcontactno}),(0,U.jsx)(o.A,{title:e.pickupaddress,children:(0,U.jsx)(n.A,{variant:"caption",children:e.pickupsuburb||e.pickupaddress.slice(0,20)})})]})})}),(0,U.jsx)(A.A,{align:"left",children:(0,U.jsx)(s.A,{direction:"row",spacing:1,children:(0,U.jsxs)(s.A,{direction:"column",children:[(0,U.jsx)(n.A,{variant:"caption",children:e.deliverycustomer}),(0,U.jsx)(n.A,{variant:"caption",children:e.deliverycontactno}),(0,U.jsx)(o.A,{title:e.deliveryaddress,children:(0,U.jsx)(n.A,{variant:"caption",children:e.deliverysuburb||e.deliveryaddress.slice(0,20)})})]})})}),(0,U.jsx)(A.A,{align:"left",children:e.ordernotes}),(0,U.jsx)(A.A,{align:"center",children:(0,U.jsx)(l.A,{size:"small",label:e.ordertype,color:"Economy"==e.ordertype?"success":"Risky"==e.ordertype?"error":"primary"})}),(0,U.jsx)(A.A,{align:"center",children:(0,U.jsxs)(s.A,{display:"flex",flexDirection:"column",gap:1,sx:{cursor:"pointer"},children:[(0,U.jsx)(o.A,{title:"Charges",placement:"top",children:(0,U.jsx)(l.A,{size:"small",label:"\u20b9 ".concat(e.deliverycharge.toFixed(2)," "),color:"error"})}),(0,U.jsx)(o.A,{title:"Amount",placement:"left",children:(0,U.jsx)(l.A,{size:"small",label:"\u20b9 ".concat(e.deliveryamt.toFixed(2)," "),color:"success"})})]})}),(0,U.jsx)(A.A,{align:"center",children:(0,U.jsxs)(s.A,{display:"flex",flexDirection:"column",gap:1,sx:{cursor:"pointer"},children:[(0,U.jsx)(o.A,{title:"KMS",placement:"top",children:(0,U.jsx)(l.A,{size:"small",label:"".concat(e.kms," km"),color:"error"})}),(0,U.jsx)(o.A,{title:"Cumulative Kms",placement:"right",children:(0,U.jsx)(l.A,{size:"small",label:"".concat(e.cumulativekms," km"),color:"success"})})]})})]})},r)))]})]})}),(0,U.jsx)(f.A,{}),0==ce&&(0,U.jsxs)(h.Ay,{container:!0,spacing:2,sx:{p:2},children:[(0,U.jsx)(h.Ay,{item:!0,xs:12,sm:6,children:(0,U.jsx)(v.A,{id:"free-solo-demo",options:he,renderInput:e=>(0,U.jsx)(g.A,(0,i.A)((0,i.A)({},e),{},{label:"Choose Payment"})),onChange:(e,r,t)=>{if("clear"!==t){if(r){console.log("Selected:",r),_(r);const e=null===ee||void 0===ee?void 0:ee.map((e=>(0,i.A)((0,i.A)({},e),{},{paymenttype:r.apptypeid})));re(e)}}else _(null)}})}),(0,U.jsx)(h.Ay,{item:!0,xs:12,sm:6,children:(0,U.jsx)(v.A,{id:"free-solo-demo",options:me,renderInput:e=>(0,U.jsx)(g.A,(0,i.A)((0,i.A)({},e),{},{label:"Choose Rider"})),onChange:(e,r,t)=>{if("clear"!==t){if(r){X(r),console.log("Selected:",r);const e=null===ee||void 0===ee?void 0:ee.map((e=>(0,i.A)((0,i.A)({},e),{},{userid:r.userid,userfcmtoken:r.userfcmtoken})));re(e)}}else X(null)}})})]}),(0,U.jsx)(f.A,{}),(0,U.jsxs)(s.A,{display:"flex",flexDirection:{xs:"column",sm:"row"},gap:2,alignItems:{xs:"stretch",sm:"center"},justifyContent:"end",sx:{p:2},children:[(0,U.jsx)(c.A,{fullWidth:I,variant:"contained",color:"secondary",startIcon:(0,U.jsx)(W.A,{}),onClick:()=>{E("/nearle/orders")},children:"Back"}),(0,U.jsx)(c.A,{fullWidth:I,sx:{my:{xs:0,sm:2}},variant:"contained",disabled:0===ce&&(!Q||!$),onClick:async()=>{ie(!0),ye.mutate({deliveries:ee})},children:"Assign Orders"})]})]})}},62217:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAAA+CAYAAABzwahEAAAPnUlEQVR4AdVae3AU9R3/7d4jdyGQQKAhECBAJBSmEAtFSQUjqPgAHGlhRm0lDkWY6Tg+O9qiErR26h8WR8ZWqTMN1ur4qMpDrTyjtDwDJloeCYiBvAgkaZ53l7vb3X4/v9vfZS/Zu9uFwLSfmb3d293f7u/z+z5/399K7CphdW5JrupgBZosZ0ialmu8pklSjUOTamRJbvvjqTUV7CpAYlcIj+SWZHQ55WJZlm7UNK2IXpRhpZ3GWJskSWXUZrPD4Sp77eSva9gVwIATXz35+SJNYWs1phWxAYDEpDKVaZv+fOrZUjaAGDDiK695rpgetpYOc82upw72sMycdJbz/SzmHeKl/ynRay31bbS1s7rjTczXGYj3ihrShnUDNQCXTXzlNS8UyExdbybhSdeNYwXz81nBzflE2pKms7oT51ntiSa276NKVn3wrNktNcGQelNpTUkNuwxcFvFV+S88rKnKy8ZzkOz84uvYvOJZ/PhyAE3Y/+HXbN+HFVwjjJAlR8lr1WueY9wt2MclEYfj8rnkj+nwRnHOLuGWhnbmpfuMKh/3Xn0Atm74IuY8OcGPFYk99kbVM98xm7BFnDyttHLyb3MlRdsjSWycOA+VLv79YpY5Ork6V5efY59s/JJVHznH/+dMymLz7v0Rm71oWtK2GIDSJ7ew6kMxJlCjytI8u+Qddm4+93bPBIfqiiG96KG5RPouljokuZT3b/2avf7EB6ylsZ1dM2MsG5OfxU7RAFSWVbMAObUphRMTtsc7CpdMh6c3kqe8gN117Yh5W4627GljFmGZ+C/ynx/flzSkDPW2Aqj2+lV/Y5mj0tljG3/GFhQXspkLpnBJVx85yyq/OGWJPAANgzkd2/utOMXJzxp965vlF3YFrPRHZtYgSZq6vi/p2TT6VrF+1Vt8/yiRhnoLiIHAftc7h0kDzlp6HgYcfTAgVwmEPmIWzTeZxPEQaeWkkhJJk1eJk8vWLGBz75nBrAIqfmDrN2zhqjlsetGkftddKU6WQ2qPe6AZVuwdGPP9kWw4+ZWKnVXiVO6M4UXtR1rKDiZrm4g4J70871cTnMzzd3ESNn3bgz9mdgC7hmoufeKWuB4/c1QGV3nYfP7Msfy/FYB8rM1LC6YNm72lonXv+UTtEqr60qVLJTcbvEv8h20tfOhGZgeQtpBiZnZ6wnuhEUDFnlPMDhaSMCbNilohc0kp61mEW1y1j0u8hLR78Ff5xX3t2i5AHLjegvqOIdtHXK/8oorZRfGLiw3aJM1dkVeynA5kCsGm98cjLhNxh4O5nxEnoOJW4rQRkDRUF3adTNoAEprRRB7tfJ09zA7Qt3mGCCMz+dmioiLKcSRTjvGISw/kPbNcSDtzdLotDy6A+AyYObR4KCjK53ur3t2I+ct7s0b0Pfds4U04RuLV914z4rjJ4ZSc94sTSBrsShvYv62S76frZKwAYQ2orWpidoEExyh1tzPl6SlTpjhJ6v3u7Utcgm0vHf/wePKUc8TJS5E21LWu6gKbRBmalXwcgHp70yISg8QR3oTWWAWk3gtpbp6/cCiLRK8Y9k7jHzgCGh3n8om/ibpueHKr0vZT5lVZFvHItVWRaALVQ4pqxcYfL3opeoxcvlr3D4BVc4HU4eFFeMt0ZsHJvUzcFKPkY4gvW7YMGiC7ZfcicW723dalXUsS3lSyNeZcBUmsmaS/5p0Vlp4BVccADsvOYP6uAM/yKsqq7PkJmv8L4k7mmEu7DcRNIfIqkedu3qjq0pkzZ/DfITE5quZjp2Qxu0Dnha1iX1fdxD55fW/CNjANYN49s7jKI5O788E5kfY0oHZQcEuvT5GY8wbaye+//36MqsfY+JEjR6QlY1cX0CHvNdQmZ/JIZhUtjW3RzkNqsG90Hti2cS8fgGSoqz7Pp6loi/uH6wNnJ7zBNA0ZYvrdY1aMZ6hdGHQ9RuL473KmDBUnUB+zAyE1dP6me2fxpMUYljat3Zb0GfvJodWRRz9Aic/utw+Ts/NG1L/L0qQrCoRggVTXUGRPMULmNo44h0CflZXlcGiuXLPGdoDOo7Pw0EYpC5W/c9Wcfm3EoAGiSAF4h0QiQmtDmyUHKZAzZSSrPam/W5MgzJgUlo+CrgFSU1OT5GTOseKi7UytsT2GiJlqW1X5aB+IrJfCYXNDO7MDYwh1yA4kYvKMGTNkkcxw4ghjdJLfQ9ntJRcgWxqsFUCsqDzg1e0U5FtsEvfGVIQ4J9nv90fNXEhcgmPLyEAh49KJW4WZlzezYSE172BvjDbZhc5JPn78eH/nlpubK7e1tcWQtjtRaDXpnLHaYkRflTdbSEhN65V4a4Plclo/IC/TDyV9ixCnNJWFw2EpPT2dBcKBBtHA3+FndmCmjsueuJnIf8/0/mQq79UlDkdpV+LGOnxQ7aljOmFwBTjxY8eOSXV1day9vV1SlFCHaFB3wroT8sdZ+kE4QuXFDMkSG7+ucZmUxdmdqrbU9WpIINQuiPO5CM5x4pTVYMdTucbgt8ejjeutj3K8Tg0jaU2aMY4nJWYQKm+mLT7d7kUW2GrDwRmFFpD8Xax3xSUmZcUfPhL7L2yvp9XJTv7ijgAv4ltBPK8rHNRCPf00QzKVRzs8p7Y6YRktCqy99foMrWN73bsnWJ/ZmTGbUVlkADRFDUarlIYKZkKYeWUjUYSm+0sWmraFxHdTaTkRhtnI2bHwKBBUA3iwSv6LcxPnjV4dI6J5vV61W+04JM5X7LBG3Mwr9820oPLxZln+zsQpac6kkdG5QDLs+7AyetwRat0FTvqsLEpeJDBaTU2NQocqBXl1f9PnH4uGmN5ZcSpmqu41KSUvffwWy4UJIzCIxlQ2bj/ILxnX1mq6Tx0EJwrVKlVjNFF8NKasbMSIEeqgQYOUWl91W0gNlIvGu0oPJH2h31Ti/VNeqP8dJrm6KQnDYIp5erKwZpR2j9JTfrRldy1x4mZMCYwWk7mxiPjVixcvqt3d3WpKSopS6z/9J/GA3ZsOJZW6mRp640h2Pk1bsWhoBzAToLo8fhES0t4fo+YXoblhWZbDtOcaLa5FbZziGyc/ZMgQpaenJ7yz4b1DqhpuxDV492RSNxuYeF4cWF6yiNmB8OyJ1B3SFlFI1ZSGj2o3grjS2dnJSescYyswa9eu5cQ7OjpwE0YodLGn/jVxHVJPFNfNc21PQiKiSJEIxgGFZ49XfETfthk+HGiO9B08wsOHD8deNd4fJa7rPi6G09LSeINPm97cHFT9R3gHSOqlT25m8WCWXCRzYvMpqUmkFYBxQOHZYedmNXdj36Cp6LvOJdTc3KzS4oKqC5cjSlz3dvhRurq6Qh6PJ0SDETrefvQP4h54y76fYwhg+ffRjfeRCi/kkrx+0Q9oVSRx2SpRbI8S7+iVuAiP+KrCiK0bvozx5Idat68KBoMhCmNBcKFQrYC4KDQC0SqrfhIS56oeCASC5ORCh5o/Pz7aO279CE/Oo7hvG70EBYrCPrX26CzM+uoxh0hnUWYyJd4VmSihWvvJxkheX2uY1e0qPRij4q09TW98/Z8D59B3CmNBUnMFoVpMTgT6LigI44eqB2kwMNxBchJvk8ofFTdtempLTNi4XCCdjWcWqLwgrH3w0g4eCaBVq1/6Kb+GPrz3u+3Re31K95cfnHv1dfSZPDn6HoKq06qvqvVZPey3Po6RKSsr49cwVWWRwXE2+M7tyxs87VZZktNwsZJSWVRhJxTksMsFPgyY85MZbGrhBJqDe5kzxRGd20MjOlq6qNqawSOBWDcHaQhAQCG7Pty66+l29WKz0+n0k8ZCVQITJ04M7dy5U1m3bl0M8XjVFgyIizYP2ckgUpnBdJw6OeOHuYWZC191ys6o8WJtepHNNXMrgDeHE0MuALLG9Bc2bVTvsBo+v6/ls1+ebDv8Ham4j8IxZmPdtMEzhljvPCSKeMT5wmF2dra7sbExlY4H0QZJe4n82L7ksWRT/OJdl1yVtQqELHhvoyMjSZ//V4T0WbfbHSCnxklTxdhPxdMgaXjY6NSMBPtBX0ODikPqbto4eXpwKj0Y5MfMHHbzI6mOtJhADOkXLikY8AGA9JFA7S49FDMZCij+ih31bz3V2FPbqpOGlLH5aION94vfAnELi3qtHddBHJ7Hy3Sp0+YhO3Ivzl65Yrgn+wFjO3j82UumDcgAxCMMNPnPbdhc98a7LpcLThikYdOQNrdtcmhhKrD0U3GBZBVVieKfg5wdJJ+Smprq9fl8kH4qvdATCoVc+ekFo28YvvgVh0H1BWACWGLGBzpjLK7KoGSEGgC2Pl8wckDK/247+MrR1t2YL8N+IVmfThh7YdcKS/Cda1LiqFHRJufk5LioLuch8h6dvJfIpxB5aITzjtE/v32kZ/wDTpMBAJC+YkkKWmD8ktlHCQqKmrUnL7BWIh3vs23YcmPgu798Wv/Xz0CM3h2mdwd0wnwjn9QzatSoEJXKw1pEZeMTYxagq73w9FB7Suw8XlVVvaRi+A/yuO64bfR9t2eljL09xeEtYAOAQNhfcabrm9J/XtyGPIKn1Lp6B3X19tN6gJ/m29ymSUgKUlMzh2aEncUDmdRe1tXeaPce/dilbxgAOT99evbEQdOuHebJvsHrSC2gpec0Ky/RmNrlV3wVneHWrw427/hHc7C+k/IJEFZ1KSOjDFDIEtLmSRb1LUR94/dZeY+tVROoPDaQo1TQTS9PoSlfik4cA0B9c7mpc1z6GAByghISoZkjivI8MuVRjqEjU52DRuossXir+UJdFHcCXfW+b09VtR9tMnReoefxNJqeCbsF6R7KygL03B56N8/OWK/3tkTaNnHWa/M8zrNIru8iOik0GeADQGHFTabh0q85qL/8Kwu0xSBgTwPB6BiLGMZn83SZzmuQMAhTWz5voEeGoNcgTtWUHiqW8OO8vLww+R5lz5494UT2PBDEY9rSQqOTHAmP91TFdNGChJsyPTdlelztqcMu6i+XvNiIkBQRHlcPHGv6sUbHIKzo56J1AZBkvR5cSFhUVBR2CbD69bIpysvLecdoAHqINOytm0ijJt9J3r+TVBLHXfrGkwsiJRIMLF1i76MBEue7qE0XqTPadYiNnFen3j6Ad5HGYSDwTcslkQYGamVULLrLpH7y6dOnuY1TGctFFR0hcYfhvujinQ6eaNBgYc6sEHm+0WAKqatEWJkwYYI6depUjYhbtuWrBW775GGd1FEXFQA8FFsR8+HRMdFBKocgPrTvRkgnh4l70ijPxtwAzpLnCLpDvSztvFqQ9C8PuAPEINDeTdpgjADYjOFQhESn3s6hP+OKr9dfSUhCaiIcYjNIMur52f850f95/BfoYlARf1CQvwAAAABJRU5ErkJggg=="},94826:(e,r,t)=>{"use strict";t.d(r,{A:()=>c});var i=t(59254),s=t(46639),n=t(62217),l=t(44414);const o=(0,i.Ay)("div")((()=>({position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2001,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0.7)",padding:"20px",borderRadius:"10px"}))),a=(0,i.Ay)("div")((()=>({position:"absolute",width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center"}))),c=()=>(0,l.jsxs)(o,{children:[(0,l.jsx)(s.A,{color:"primary",size:80,thickness:6}),(0,l.jsx)(a,{children:(0,l.jsx)("img",{src:n,alt:"Logo",style:{width:"100%",height:"100%"}})})]})}}]); \ No newline at end of file diff --git a/build/static/js/740.df3fbcd6.chunk.js b/build/static/js/740.df3fbcd6.chunk.js new file mode 100644 index 0000000..203d9d7 --- /dev/null +++ b/build/static/js/740.df3fbcd6.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[740],{46114:(t,e,a)=>{"use strict";a.d(e,{A:()=>c});var o=a(27326),n=a(85672);const s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm72-112c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48zm400-188h-59.3c-2.6 0-5 1.2-6.5 3.3L763.7 538.1l-49.9-68.8a7.92 7.92 0 00-6.5-3.3H648c-6.5 0-10.3 7.4-6.5 12.7l109.2 150.7a16.1 16.1 0 0026 0l165.8-228.7c3.8-5.3 0-12.7-6.5-12.7zm-44 306h-64.2c-5.5 0-10.6 2.9-13.6 7.5a352.2 352.2 0 01-49.8 62.2A355.92 355.92 0 01651.1 840a355 355 0 01-138.7 27.9c-48.1 0-94.8-9.4-138.7-27.9a355.92 355.92 0 01-113.3-76.3A353.06 353.06 0 01184 650.5c-18.6-43.8-28-90.5-28-138.5s9.4-94.7 28-138.5c17.9-42.4 43.6-80.5 76.4-113.2 32.8-32.7 70.9-58.4 113.3-76.3a355 355 0 01138.7-27.9c48.1 0 94.8 9.4 138.7 27.9 42.4 17.9 80.5 43.6 113.3 76.3 19 19 35.6 39.8 49.8 62.2 2.9 4.7 8.1 7.5 13.6 7.5H892c6 0 9.8-6.3 7.2-11.6C828.8 178.5 684.7 82 517.7 80 278.9 77.2 80.5 272.5 80 511.2 79.5 750.1 273.3 944 512.4 944c169.2 0 315.6-97 386.7-238.4A8 8 0 00892 694z"}}]},name:"issues-close",theme:"outlined"};var r=a(75890),i=function(t,e){return n.createElement(r.A,(0,o.A)({},t,{ref:e,icon:s}))};const c=n.forwardRef(i)},51142:(t,e,a)=>{"use strict";a.d(e,{A:()=>c});var o=a(27326),n=a(85672);const s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var r=a(75890),i=function(t,e){return n.createElement(r.A,(0,o.A)({},t,{ref:e,icon:s}))};const c=n.forwardRef(i)},58355:(t,e,a)=>{"use strict";var o=a(39744);e.A=void 0;var n=o(a(24956)),s=a(65908);e.A=(0,n.default)((0,s.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"LocationOn")},61660:(t,e,a)=>{"use strict";a.d(e,{PY8:()=>n});var o=a(21583);function n(t){return(0,o.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2a5 5 0 1 0 5 5 5 5 0 0 0-5-5zm0 8a3 3 0 1 1 3-3 3 3 0 0 1-3 3zm9 11v-1a7 7 0 0 0-7-7h-4a7 7 0 0 0-7 7v1h2v-1a5 5 0 0 1 5-5h4a5 5 0 0 1 5 5v1z"}}]})(t)}},67677:(t,e,a)=>{"use strict";a.d(e,{A:()=>E});var o=a(84849),n=a(27326),s=a(85672),r=a(72574),i=a(25234),c=a(28292),l=a(60308),d=a(38009),u=a(51476),p=a(77865),g=a(51422),h=a(1596),m=a(5957),v=a(29048),A=a(30073),b=a(82336),f=a(11969),x=a(31529),y=a(65908);const w=(0,x.A)((0,y.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),P=(0,x.A)((0,y.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),B=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],I=s.forwardRef((function(t,e){var a,s,r,i,c,l,d,u;const{backIconButtonProps:p,count:g,disabled:h=!1,getItemAriaLabel:m,nextIconButtonProps:x,onPageChange:I,page:C,rowsPerPage:k,showFirstButton:L,showLastButton:M,slots:R={},slotProps:j={}}=t,S=(0,o.A)(t,B),z=(0,v.I)(),N=null!=(a=R.firstButton)?a:f.A,O=null!=(s=R.lastButton)?s:f.A,T=null!=(r=R.nextButton)?r:f.A,H=null!=(i=R.previousButton)?i:f.A,F=null!=(c=R.firstButtonIcon)?c:P,V=null!=(l=R.lastButtonIcon)?l:w,G=null!=(d=R.nextButtonIcon)?d:b.A,D=null!=(u=R.previousButtonIcon)?u:A.A,E=z?O:N,X=z?T:H,q=z?H:T,W=z?N:O,_=z?j.lastButton:j.firstButton,Q=z?j.nextButton:j.previousButton,J=z?j.previousButton:j.nextButton,Y=z?j.firstButton:j.lastButton;return(0,y.jsxs)("div",(0,n.A)({ref:e},S,{children:[L&&(0,y.jsx)(E,(0,n.A)({onClick:t=>{I(t,0)},disabled:h||0===C,"aria-label":m("first",C),title:m("first",C)},_,{children:z?(0,y.jsx)(V,(0,n.A)({},j.lastButtonIcon)):(0,y.jsx)(F,(0,n.A)({},j.firstButtonIcon))})),(0,y.jsx)(X,(0,n.A)({onClick:t=>{I(t,C-1)},disabled:h||0===C,color:"inherit","aria-label":m("previous",C),title:m("previous",C)},null!=Q?Q:p,{children:z?(0,y.jsx)(G,(0,n.A)({},j.nextButtonIcon)):(0,y.jsx)(D,(0,n.A)({},j.previousButtonIcon))})),(0,y.jsx)(q,(0,n.A)({onClick:t=>{I(t,C+1)},disabled:h||-1!==g&&C>=Math.ceil(g/k)-1,color:"inherit","aria-label":m("next",C),title:m("next",C)},null!=J?J:x,{children:z?(0,y.jsx)(D,(0,n.A)({},j.previousButtonIcon)):(0,y.jsx)(G,(0,n.A)({},j.nextButtonIcon))})),M&&(0,y.jsx)(W,(0,n.A)({onClick:t=>{I(t,Math.max(0,Math.ceil(g/k)-1))},disabled:h||C>=Math.ceil(g/k)-1,"aria-label":m("last",C),title:m("last",C)},Y,{children:z?(0,y.jsx)(F,(0,n.A)({},j.firstButtonIcon)):(0,y.jsx)(V,(0,n.A)({},j.lastButtonIcon))}))]}))}));var C=a(66664),k=a(37300),L=a(10644);function M(t){return(0,L.Ay)("MuiTablePagination",t)}const R=(0,k.A)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var j;const S=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],z=(0,l.Ay)(h.A,{name:"MuiTablePagination",slot:"Root",overridesResolver:(t,e)=>e.root})((t=>{let{theme:e}=t;return{overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}})),N=(0,l.Ay)(m.A,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(t,e)=>(0,n.A)({["& .".concat(R.actions)]:e.actions},e.toolbar)})((t=>{let{theme:e}=t;return{minHeight:52,paddingRight:2,["".concat(e.breakpoints.up("xs")," and (orientation: landscape)")]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},["& .".concat(R.actions)]:{flexShrink:0,marginLeft:20}}})),O=(0,l.Ay)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(t,e)=>e.spacer})({flex:"1 1 100%"}),T=(0,l.Ay)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(t,e)=>e.selectLabel})((t=>{let{theme:e}=t;return(0,n.A)({},e.typography.body2,{flexShrink:0})})),H=(0,l.Ay)(g.A,{name:"MuiTablePagination",slot:"Select",overridesResolver:(t,e)=>(0,n.A)({["& .".concat(R.selectIcon)]:e.selectIcon,["& .".concat(R.select)]:e.select},e.input,e.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,["& .".concat(R.select)]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),F=(0,l.Ay)(p.A,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(t,e)=>e.menuItem})({}),V=(0,l.Ay)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(t,e)=>e.displayedRows})((t=>{let{theme:e}=t;return(0,n.A)({},e.typography.body2,{flexShrink:0})}));function G(t){let{from:e,to:a,count:o}=t;return"".concat(e,"\u2013").concat(a," of ").concat(-1!==o?o:"more than ".concat(a))}function D(t){return"Go to ".concat(t," page")}const E=s.forwardRef((function(t,e){var a;const l=(0,d.b)({props:t,name:"MuiTablePagination"}),{ActionsComponent:p=I,backIconButtonProps:g,className:m,colSpan:v,component:A=h.A,count:b,disabled:f=!1,getItemAriaLabel:x=D,labelDisplayedRows:w=G,labelRowsPerPage:P="Rows per page:",nextIconButtonProps:B,onPageChange:k,onRowsPerPageChange:L,page:R,rowsPerPage:E,rowsPerPageOptions:X=[10,25,50,100],SelectProps:q={},showFirstButton:W=!1,showLastButton:_=!1,slotProps:Q={},slots:J={}}=l,Y=(0,o.A)(l,S),$=l,K=(t=>{const{classes:e}=t;return(0,i.A)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},M,e)})($),U=null!=(a=null==Q?void 0:Q.select)?a:q,Z=U.native?"option":F;let tt;A!==h.A&&"td"!==A||(tt=v||1e3);const et=(0,C.A)(U.id),at=(0,C.A)(U.labelId);return(0,y.jsx)(z,(0,n.A)({colSpan:tt,ref:e,as:A,ownerState:$,className:(0,r.A)(K.root,m)},Y,{children:(0,y.jsxs)(N,{className:K.toolbar,children:[(0,y.jsx)(O,{className:K.spacer}),X.length>1&&(0,y.jsx)(T,{className:K.selectLabel,id:at,children:P}),X.length>1&&(0,y.jsx)(H,(0,n.A)({variant:"standard"},!U.variant&&{input:j||(j=(0,y.jsx)(u.Ay,{}))},{value:E,onChange:L,id:et,labelId:at},U,{classes:(0,n.A)({},U.classes,{root:(0,r.A)(K.input,K.selectRoot,(U.classes||{}).root),select:(0,r.A)(K.select,(U.classes||{}).select),icon:(0,r.A)(K.selectIcon,(U.classes||{}).icon)}),disabled:f,children:X.map((t=>(0,s.createElement)(Z,(0,n.A)({},!(0,c.A)(Z)&&{ownerState:$},{className:K.menuItem,key:t.label?t.label:t,value:t.value?t.value:t}),t.label?t.label:t)))})),(0,y.jsx)(V,{className:K.displayedRows,children:w({from:0===b?0:R*E+1,to:-1===b?(R+1)*E:-1===E?b:Math.min(b,(R+1)*E),count:-1===b?-1:b,page:R})}),(0,y.jsx)(p,{className:K.actions,backIconButtonProps:g,count:b,nextIconButtonProps:B,onPageChange:k,page:R,rowsPerPage:E,showFirstButton:W,showLastButton:_,slotProps:Q.actions,slots:J.actions,getItemAriaLabel:x,disabled:f})]})}))}))},68320:(t,e,a)=>{"use strict";a.d(e,{I:()=>s});var o=a(48149),n=a(59363);function s(t,e){return(0,n.t)(t,o.$,e)}},70168:(t,e,a)=>{"use strict";a.d(e,{JXP:()=>s,wnV:()=>n});var o=a(21583);function n(t){return(0,o.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"}}]})(t)}function s(t){return(0,o.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}},{tag:"circle",attr:{cx:"12",cy:"7",r:"4"}}]})(t)}},75153:function(t){t.exports=(()=>{return t={705:t=>{t.exports=function(t,e){const a=[];return 0===e.length?a.push({text:t,highlight:!1}):e[0][0]>0&&a.push({text:t.slice(0,e[0][0]),highlight:!1}),e.forEach(((o,n)=>{const s=o[0],r=o[1];a.push({text:t.slice(s,r),highlight:!0}),n===e.length-1?r{"use strict";a.d(e,{h2r:()=>n});var o=a(21583);function n(t){return(0,o.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{width:"20",height:"16",x:"2",y:"4",rx:"2"}},{tag:"path",attr:{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"}}]})(t)}},77865:(t,e,a)=>{"use strict";a.d(e,{A:()=>C});var o=a(84849),n=a(27326),s=a(85672),r=a(72574),i=a(25234),c=a(10247),l=a(60308),d=a(24270),u=a(38009),p=a(78534),g=a(61949),h=a(93046),m=a(45688),v=a(8191),A=a(58541),b=a(43917),f=a(37300),x=a(10644);function y(t){return(0,x.Ay)("MuiMenuItem",t)}const w=(0,f.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var P=a(65908);const B=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],I=(0,l.Ay)(g.A,{shouldForwardProp:t=>(0,d.A)(t)||"classes"===t,name:"MuiMenuItem",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[e.root,a.dense&&e.dense,a.divider&&e.divider,!a.disableGutters&&e.gutters]}})((t=>{let{theme:e,ownerState:a}=t;return(0,n.A)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!a.disableGutters&&{paddingLeft:16,paddingRight:16},a.divider&&{borderBottom:"1px solid ".concat((e.vars||e).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(w.selected)]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / ").concat(e.vars.palette.action.selectedOpacity,")"):(0,c.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),["&.".concat(w.focusVisible)]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / calc(").concat(e.vars.palette.action.selectedOpacity," + ").concat(e.vars.palette.action.focusOpacity,"))"):(0,c.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},["&.".concat(w.selected,":hover")]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / calc(").concat(e.vars.palette.action.selectedOpacity," + ").concat(e.vars.palette.action.hoverOpacity,"))"):(0,c.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / ").concat(e.vars.palette.action.selectedOpacity,")"):(0,c.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},["&.".concat(w.focusVisible)]:{backgroundColor:(e.vars||e).palette.action.focus},["&.".concat(w.disabled)]:{opacity:(e.vars||e).palette.action.disabledOpacity},["& + .".concat(v.A.root)]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},["& + .".concat(v.A.inset)]:{marginLeft:52},["& .".concat(b.A.root)]:{marginTop:0,marginBottom:0},["& .".concat(b.A.inset)]:{paddingLeft:36},["& .".concat(A.A.root)]:{minWidth:36}},!a.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},a.dense&&(0,n.A)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{["& .".concat(A.A.root," svg")]:{fontSize:"1.25rem"}}))})),C=s.forwardRef((function(t,e){const a=(0,u.b)({props:t,name:"MuiMenuItem"}),{autoFocus:c=!1,component:l="li",dense:d=!1,divider:g=!1,disableGutters:v=!1,focusVisibleClassName:A,role:b="menuitem",tabIndex:f,className:x}=a,w=(0,o.A)(a,B),C=s.useContext(p.A),k=s.useMemo((()=>({dense:d||C.dense||!1,disableGutters:v})),[C.dense,d,v]),L=s.useRef(null);(0,h.A)((()=>{c&&L.current&&L.current.focus()}),[c]);const M=(0,n.A)({},a,{dense:k.dense,divider:g,disableGutters:v}),R=(t=>{const{disabled:e,dense:a,divider:o,disableGutters:s,selected:r,classes:c}=t,l={root:["root",a&&"dense",e&&"disabled",!s&&"gutters",o&&"divider",r&&"selected"]},d=(0,i.A)(l,y,c);return(0,n.A)({},c,d)})(a),j=(0,m.A)(L,e);let S;return a.disabled||(S=void 0!==f?f:-1),(0,P.jsx)(p.A.Provider,{value:k,children:(0,P.jsx)(I,(0,n.A)({ref:j,role:b,tabIndex:S,component:l,focusVisibleClassName:(0,r.A)(R.focusVisible,A),className:(0,r.A)(R.root,x)},w,{ownerState:M,classes:R}))})}))},78754:(t,e,a)=>{"use strict";a.d(e,{A:()=>v});var o=a(84849),n=a(27326),s=a(85672),r=a(72574),i=a(25234),c=a(60308),l=a(38009),d=a(37300),u=a(10644);function p(t){return(0,u.Ay)("MuiCardActions",t)}(0,d.A)("MuiCardActions",["root","spacing"]);var g=a(65908);const h=["disableSpacing","className"],m=(0,c.Ay)("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[e.root,!a.disableSpacing&&e.spacing]}})((t=>{let{ownerState:e}=t;return(0,n.A)({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),v=s.forwardRef((function(t,e){const a=(0,l.b)({props:t,name:"MuiCardActions"}),{disableSpacing:s=!1,className:c}=a,d=(0,o.A)(a,h),u=(0,n.A)({},a,{disableSpacing:s}),v=(t=>{const{classes:e,disableSpacing:a}=t,o={root:["root",!a&&"spacing"]};return(0,i.A)(o,p,e)})(u);return(0,g.jsx)(m,(0,n.A)({className:(0,r.A)(v.root,c),ownerState:u,ref:e},d))}))},88999:(t,e,a)=>{"use strict";a.d(e,{A:()=>c});var o=a(27326),n=a(85672);const s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var r=a(75890),i=function(t,e){return n.createElement(r.A,(0,o.A)({},t,{ref:e,icon:s}))};const c=n.forwardRef(i)}}]); \ No newline at end of file diff --git a/build/static/js/7488.96e6ce36.chunk.js b/build/static/js/7488.96e6ce36.chunk.js new file mode 100644 index 0000000..24d6bbe --- /dev/null +++ b/build/static/js/7488.96e6ce36.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[7488],{17488:(e,t,o)=>{o.d(t,{A:()=>le});var n=o(84849),a=o(27326),r=o(85672),i=o(72574),l=o(25234),c=o(10247),s=o(16660),p=o(29900),u=o(82770),d=o(86598),g=o(65796);function f(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function h(e,t){for(let o=0;o0&&void 0!==arguments[0]?arguments[0]:{};const{ignoreAccents:t=!0,ignoreCase:o=!0,limit:n,matchFrom:a="any",stringify:r,trim:i=!1}=e;return(e,l)=>{let{inputValue:c,getOptionLabel:s}=l,p=i?c.trim():c;o&&(p=p.toLowerCase()),t&&(p=f(p));const u=p?e.filter((e=>{let n=(r||s)(e);return o&&(n=n.toLowerCase()),t&&(n=f(n)),"start"===a?0===n.indexOf(p):n.indexOf(p)>-1})):e;return"number"===typeof n?u.slice(0,n):u}}(),b=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))},v=[];const x=function(e){const{unstable_isActiveElementInListbox:t=b,unstable_classNamePrefix:o="Mui",autoComplete:n=!1,autoHighlight:i=!1,autoSelect:l=!1,blurOnSelect:c=!1,clearOnBlur:f=!e.freeSolo,clearOnEscape:x=!1,componentName:A="useAutocomplete",defaultValue:y=(e.multiple?v:null),disableClearable:O=!1,disableCloseOnSelect:I=!1,disabled:S,disabledItemsFocusable:C=!1,disableListWrap:k=!1,filterOptions:P=m,filterSelectedOptions:L=!1,freeSolo:w=!1,getOptionDisabled:T,getOptionKey:R,getOptionLabel:N=e=>{var t;return null!=(t=e.label)?t:e},groupBy:M,handleHomeEndKeys:D=!e.freeSolo,id:z,includeInputInList:E=!1,inputValue:F,isOptionEqualToValue:H=(e,t)=>e===t,multiple:W=!1,onChange:j,onClose:V,onHighlightChange:B,onInputChange:G,onOpen:K,open:q,openOnFocus:U=!1,options:_,readOnly:X=!1,selectOnFocus:J=!e.freeSolo,value:Q}=e,Y=(0,s.A)(z);let Z=N;Z=e=>{const t=N(e);return"string"!==typeof t?String(t):t};const $=r.useRef(!1),ee=r.useRef(!0),te=r.useRef(null),oe=r.useRef(null),[ne,ae]=r.useState(null),[re,ie]=r.useState(-1),le=i?0:-1,ce=r.useRef(le),[se,pe]=(0,p.A)({controlled:Q,default:y,name:A}),[ue,de]=(0,p.A)({controlled:F,default:"",name:A,state:"inputValue"}),[ge,fe]=r.useState(!1),he=r.useCallback(((e,t)=>{if(!(W?se.length!L||!(W?se:[se]).some((t=>null!==t&&H(e,t))))),{inputValue:Ae&&ve?"":ue,getOptionLabel:Z}):[],Ie=(0,u.A)({filteredOptions:Oe,value:se,inputValue:ue});r.useEffect((()=>{const e=se!==Ie.value;ge&&!e||w&&!e||he(null,se)}),[se,he,ge,Ie.value,w]);const Se=me&&Oe.length>0&&!X,Ce=(0,d.A)((e=>{-1===e?te.current.focus():ne.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));r.useEffect((()=>{W&&re>se.length-1&&(ie(-1),Ce(-1))}),[se,W,re,Ce]);const ke=(0,d.A)((e=>{let{event:t,index:n,reason:a="auto"}=e;if(ce.current=n,-1===n?te.current.removeAttribute("aria-activedescendant"):te.current.setAttribute("aria-activedescendant","".concat(Y,"-option-").concat(n)),B&&B(t,-1===n?null:Oe[n],a),!oe.current)return;const r=oe.current.querySelector('[role="option"].'.concat(o,"-focused"));r&&(r.classList.remove("".concat(o,"-focused")),r.classList.remove("".concat(o,"-focusVisible")));let i=oe.current;if("listbox"!==oe.current.getAttribute("role")&&(i=oe.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===n)return void(i.scrollTop=0);const l=oe.current.querySelector('[data-option-index="'.concat(n,'"]'));if(l&&(l.classList.add("".concat(o,"-focused")),"keyboard"===a&&l.classList.add("".concat(o,"-focusVisible")),i.scrollHeight>i.clientHeight&&"mouse"!==a&&"touch"!==a)){const e=l,t=i.clientHeight+i.scrollTop,o=e.offsetTop+e.offsetHeight;o>t?i.scrollTop=o-i.clientHeight:e.offsetTop-e.offsetHeight*(M?1.3:0){let{event:t,diff:o,direction:a="next",reason:r="auto"}=e;if(!ye)return;const i=function(e,t){if(!oe.current||e<0||e>=Oe.length)return-1;let o=e;for(;;){const n=oe.current.querySelector('[data-option-index="'.concat(o,'"]')),a=!C&&(!n||n.disabled||"true"===n.getAttribute("aria-disabled"));if(n&&n.hasAttribute("tabindex")&&!a)return o;if(o="next"===t?(o+1)%Oe.length:(o-1+Oe.length)%Oe.length,o===e)return-1}}((()=>{const e=Oe.length-1;if("reset"===o)return le;if("start"===o)return 0;if("end"===o)return e;const t=ce.current+o;return t<0?-1===t&&E?-1:k&&-1!==ce.current||Math.abs(o)>1?0:e:t>e?t===e+1&&E?-1:k||Math.abs(o)>1?e:0:t})(),a);if(ke({index:i,reason:r,event:t}),n&&"reset"!==o)if(-1===i)te.current.value=ue;else{const e=Z(Oe[i]);te.current.value=e;0===e.toLowerCase().indexOf(ue.toLowerCase())&&ue.length>0&&te.current.setSelectionRange(ue.length,e.length)}})),Le=r.useCallback((()=>{if(!ye)return;const e=(()=>{if(-1!==ce.current&&Ie.filteredOptions&&Ie.filteredOptions.length!==Oe.length&&Ie.inputValue===ue&&(W?se.length===Ie.value.length&&Ie.value.every(((e,t)=>Z(se[t])===Z(e))):(e=Ie.value,t=se,(e?Z(e):"")===(t?Z(t):"")))){const e=Ie.filteredOptions[ce.current];if(e)return h(Oe,(t=>Z(t)===Z(e)))}var e,t;return-1})();if(-1!==e)return void(ce.current=e);const t=W?se[0]:se;if(0!==Oe.length&&null!=t){if(oe.current)if(null==t)ce.current>=Oe.length-1?ke({index:Oe.length-1}):ke({index:ce.current});else{const e=Oe[ce.current];if(W&&e&&-1!==h(se,(t=>H(e,t))))return;const o=h(Oe,(e=>H(e,t)));-1===o?Pe({diff:"reset"}):ke({index:o})}}else Pe({diff:"reset"})}),[Oe.length,!W&&se,L,Pe,ke,ye,ue,W]),we=(0,d.A)((e=>{(0,g.A)(oe,e),e&&Le()}));r.useEffect((()=>{Le()}),[Le]);const Te=e=>{me||(be(!0),xe(!0),K&&K(e))},Re=(e,t)=>{me&&(be(!1),V&&V(e,t))},Ne=(e,t,o,n)=>{if(W){if(se.length===t.length&&se.every(((e,o)=>e===t[o])))return}else if(se===t)return;j&&j(e,t,o,n),pe(t)},Me=r.useRef(!1),De=function(e,t){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",a=t;if(W){a=Array.isArray(se)?se.slice():[];const e=h(a,(e=>H(t,e)));-1===e?a.push(t):"freeSolo"!==o&&(a.splice(e,1),n="removeOption")}he(e,a),Ne(e,a,n,{option:t}),I||e&&(e.ctrlKey||e.metaKey)||Re(e,n),(!0===c||"touch"===c&&Me.current||"mouse"===c&&!Me.current)&&te.current.blur()},ze=(e,t)=>{if(!W)return;""===ue&&Re(e,"toggleInput");let o=re;-1===re?""===ue&&"previous"===t&&(o=se.length-1):(o+="next"===t?1:-1,o<0&&(o=0),o===se.length&&(o=-1)),o=function(e,t){if(-1===e)return-1;let o=e;for(;;){if("next"===t&&o===se.length||"previous"===t&&-1===o)return-1;const e=ne.querySelector('[data-tag-index="'.concat(o,'"]'));if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return o;o+="next"===t?1:-1}}(o,t),ie(o),Ce(o)},Ee=e=>{$.current=!0,de(""),G&&G(e,"","clear"),Ne(e,W?[]:null,"clear")},Fe=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==re&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(ie(-1),Ce(-1)),229!==t.which))switch(t.key){case"Home":ye&&D&&(t.preventDefault(),Pe({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":ye&&D&&(t.preventDefault(),Pe({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Pe({diff:-5,direction:"previous",reason:"keyboard",event:t}),Te(t);break;case"PageDown":t.preventDefault(),Pe({diff:5,direction:"next",reason:"keyboard",event:t}),Te(t);break;case"ArrowDown":t.preventDefault(),Pe({diff:1,direction:"next",reason:"keyboard",event:t}),Te(t);break;case"ArrowUp":t.preventDefault(),Pe({diff:-1,direction:"previous",reason:"keyboard",event:t}),Te(t);break;case"ArrowLeft":ze(t,"previous");break;case"ArrowRight":ze(t,"next");break;case"Enter":if(-1!==ce.current&&ye){const e=Oe[ce.current],o=!!T&&T(e);if(t.preventDefault(),o)return;De(t,e,"selectOption"),n&&te.current.setSelectionRange(te.current.value.length,te.current.value.length)}else w&&""!==ue&&!1===Ae&&(W&&t.preventDefault(),De(t,ue,"createOption","freeSolo"));break;case"Escape":ye?(t.preventDefault(),t.stopPropagation(),Re(t,"escape")):x&&(""!==ue||W&&se.length>0)&&(t.preventDefault(),t.stopPropagation(),Ee(t));break;case"Backspace":if(W&&!X&&""===ue&&se.length>0){const e=-1===re?se.length-1:re,o=se.slice();o.splice(e,1),Ne(t,o,"removeOption",{option:se[e]})}break;case"Delete":if(W&&!X&&""===ue&&se.length>0&&-1!==re){const e=re,o=se.slice();o.splice(e,1),Ne(t,o,"removeOption",{option:se[e]})}}},He=e=>{fe(!0),U&&!$.current&&Te(e)},We=e=>{t(oe)?te.current.focus():(fe(!1),ee.current=!0,$.current=!1,l&&-1!==ce.current&&ye?De(e,Oe[ce.current],"blur"):l&&w&&""!==ue?De(e,ue,"blur","freeSolo"):f&&he(e,se),Re(e,"blur"))},je=e=>{const t=e.target.value;ue!==t&&(de(t),xe(!1),G&&G(e,t,"input")),""===t?O||W||Ne(e,null,"clear"):Te(e)},Ve=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));ce.current!==t&&ke({event:e,index:t,reason:"mouse"})},Be=e=>{ke({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Me.current=!0},Ge=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));De(e,Oe[t],"selectOption"),Me.current=!1},Ke=e=>t=>{const o=se.slice();o.splice(e,1),Ne(t,o,"removeOption",{option:se[e]})},qe=e=>{me?Re(e,"toggleInput"):Te(e)},Ue=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==Y&&e.preventDefault()},_e=e=>{e.currentTarget.contains(e.target)&&(te.current.focus(),J&&ee.current&&te.current.selectionEnd-te.current.selectionStart===0&&te.current.select(),ee.current=!1)},Xe=e=>{S||""!==ue&&me||qe(e)};let Je=w&&ue.length>0;Je=Je||(W?se.length>0:null!==se);let Qe=Oe;if(M){new Map;Qe=Oe.reduce(((e,t,o)=>{const n=M(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:o,index:o,group:n,options:[t]}),e}),[])}return S&&ge&&We(),{getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,a.A)({"aria-owns":Se?"".concat(Y,"-listbox"):null},e,{onKeyDown:Fe(e),onMouseDown:Ue,onClick:_e})},getInputLabelProps:()=>({id:"".concat(Y,"-label"),htmlFor:Y}),getInputProps:()=>({id:Y,value:ue,onBlur:We,onFocus:He,onChange:je,onMouseDown:Xe,"aria-activedescendant":ye?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Se?"".concat(Y,"-listbox"):void 0,"aria-expanded":Se,autoComplete:"off",ref:te,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:S}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Ee}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:qe}),getTagProps:e=>{let{index:t}=e;return(0,a.A)({key:t,"data-tag-index":t,tabIndex:-1},!X&&{onDelete:Ke(t)})},getListboxProps:()=>({role:"listbox",id:"".concat(Y,"-listbox"),"aria-labelledby":"".concat(Y,"-label"),ref:we,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:e=>{let{index:t,option:o}=e;var n;const a=(W?se:[se]).some((e=>null!=e&&H(o,e))),r=!!T&&T(o);return{key:null!=(n=null==R?void 0:R(o))?n:Z(o),tabIndex:-1,role:"option",id:"".concat(Y,"-option-").concat(t),onMouseMove:Ve,onClick:Ge,onTouchStart:Be,"data-option-index":t,"aria-disabled":r,"aria-selected":a}},id:Y,inputValue:ue,value:se,dirty:Je,expanded:ye&&ne,popupOpen:ye,focused:ge||-1!==re,anchorEl:ne,setAnchorEl:ae,focusedTag:re,groupedOptions:Qe}};var A=o(46486),y=o(60308),O=o(38009),I=o(16775),S=o(37300),C=o(10644);function k(e){return(0,C.Ay)("MuiListSubheader",e)}(0,S.A)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var P=o(65908);const L=["className","color","component","disableGutters","disableSticky","inset"],w=(0,y.Ay)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,"default"!==o.color&&t["color".concat((0,I.A)(o.color))],!o.disableGutters&&t.gutters,o.inset&&t.inset,!o.disableSticky&&t.sticky]}})((e=>{let{theme:t,ownerState:o}=e;return(0,a.A)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===o.color&&{color:(t.vars||t).palette.primary.main},"inherit"===o.color&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),T=r.forwardRef((function(e,t){const o=(0,O.b)({props:e,name:"MuiListSubheader"}),{className:r,color:c="default",component:s="li",disableGutters:p=!1,disableSticky:u=!1,inset:d=!1}=o,g=(0,n.A)(o,L),f=(0,a.A)({},o,{color:c,component:s,disableGutters:p,disableSticky:u,inset:d}),h=(e=>{const{classes:t,color:o,disableGutters:n,inset:a,disableSticky:r}=e,i={root:["root","default"!==o&&"color".concat((0,I.A)(o)),!n&&"gutters",a&&"inset",!r&&"sticky"]};return(0,l.A)(i,k,t)})(f);return(0,P.jsx)(w,(0,a.A)({as:s,className:(0,i.A)(h.root,r),ref:t,ownerState:f},g))}));T.muiSkipListHighlight=!0;const R=T;var N=o(55235),M=o(11969),D=o(81062),z=o(74031),E=o(28915),F=o(90875),H=o(48283),W=o(9858),j=o(25406);function V(e){return(0,C.Ay)("MuiAutocomplete",e)}const B=(0,S.A)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var G,K,q=o(45688);const U=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],_=["ref"],X=["key"],J=["key"],Q=(0,y.Ay)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{fullWidth:n,hasClearIcon:a,hasPopupIcon:r,inputFocused:i,size:l}=o;return[{["& .".concat(B.tag)]:t.tag},{["& .".concat(B.tag)]:t["tagSize".concat((0,I.A)(l))]},{["& .".concat(B.inputRoot)]:t.inputRoot},{["& .".concat(B.input)]:t.input},{["& .".concat(B.input)]:i&&t.inputFocused},t.root,n&&t.fullWidth,r&&t.hasPopupIcon,a&&t.hasClearIcon]}})({["&.".concat(B.focused," .").concat(B.clearIndicator)]:{visibility:"visible"},"@media (pointer: fine)":{["&:hover .".concat(B.clearIndicator)]:{visibility:"visible"}},["& .".concat(B.tag)]:{margin:3,maxWidth:"calc(100% - 6px)"},["& .".concat(B.inputRoot)]:{[".".concat(B.hasPopupIcon,"&, .").concat(B.hasClearIcon,"&")]:{paddingRight:30},[".".concat(B.hasPopupIcon,".").concat(B.hasClearIcon,"&")]:{paddingRight:56},["& .".concat(B.input)]:{width:0,minWidth:30}},["& .".concat(z.A.root)]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},["& .".concat(z.A.root,".").concat(E.A.sizeSmall)]:{["& .".concat(z.A.input)]:{padding:"2px 4px 3px 0"}},["& .".concat(F.A.root)]:{padding:9,[".".concat(B.hasPopupIcon,"&, .").concat(B.hasClearIcon,"&")]:{paddingRight:39},[".".concat(B.hasPopupIcon,".").concat(B.hasClearIcon,"&")]:{paddingRight:65},["& .".concat(B.input)]:{padding:"7.5px 4px 7.5px 5px"},["& .".concat(B.endAdornment)]:{right:9}},["& .".concat(F.A.root,".").concat(E.A.sizeSmall)]:{paddingTop:6,paddingBottom:6,paddingLeft:6,["& .".concat(B.input)]:{padding:"2.5px 4px 2.5px 8px"}},["& .".concat(H.A.root)]:{paddingTop:19,paddingLeft:8,[".".concat(B.hasPopupIcon,"&, .").concat(B.hasClearIcon,"&")]:{paddingRight:39},[".".concat(B.hasPopupIcon,".").concat(B.hasClearIcon,"&")]:{paddingRight:65},["& .".concat(H.A.input)]:{padding:"7px 4px"},["& .".concat(B.endAdornment)]:{right:9}},["& .".concat(H.A.root,".").concat(E.A.sizeSmall)]:{paddingBottom:1,["& .".concat(H.A.input)]:{padding:"2.5px 4px"}},["& .".concat(E.A.hiddenLabel)]:{paddingTop:8},["& .".concat(H.A.root,".").concat(E.A.hiddenLabel)]:{paddingTop:0,paddingBottom:0,["& .".concat(B.input)]:{paddingTop:16,paddingBottom:17}},["& .".concat(H.A.root,".").concat(E.A.hiddenLabel,".").concat(E.A.sizeSmall)]:{["& .".concat(B.input)]:{paddingTop:8,paddingBottom:9}},["& .".concat(B.input)]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{["& .".concat(B.tag)]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{["& .".concat(B.input)]:{opacity:1}}},{props:{multiple:!0},style:{["& .".concat(B.inputRoot)]:{flexWrap:"wrap"}}}]}),Y=(0,y.Ay)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Z=(0,y.Ay)(M.A,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),$=(0,y.Ay)(M.A,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{let{ownerState:o}=e;return(0,a.A)({},t.popupIndicator,o.popupOpen&&t.popupIndicatorOpen)}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),ee=(0,y.Ay)(A.A,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{["& .".concat(B.option)]:t.option},t.popper,o.disablePortal&&t.popperDisablePortal]}})((e=>{let{theme:t}=e;return{zIndex:(t.vars||t).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}})),te=(0,y.Ay)(N.A,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((e=>{let{theme:t}=e;return(0,a.A)({},t.typography.body1,{overflow:"auto"})})),oe=(0,y.Ay)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),ne=(0,y.Ay)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),ae=(0,y.Ay)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((e=>{let{theme:t}=e;return{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",["& .".concat(B.option)]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},["&.".concat(B.focused)]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["&.".concat(B.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(B.focused)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},["&.".concat(B.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}}}})),re=(0,y.Ay)(R,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),ie=(0,y.Ay)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,["& .".concat(B.option)]:{paddingLeft:24}}),le=r.forwardRef((function(e,t){var o,c,s,p;const u=(0,O.b)({props:e,name:"MuiAutocomplete"}),{autoComplete:d=!1,autoHighlight:g=!1,autoSelect:f=!1,blurOnSelect:h=!1,ChipProps:m,className:b,clearIcon:v=G||(G=(0,P.jsx)(W.A,{fontSize:"small"})),clearOnBlur:y=!u.freeSolo,clearOnEscape:S=!1,clearText:C="Clear",closeText:k="Close",componentsProps:L={},defaultValue:w=(u.multiple?[]:null),disableClearable:T=!1,disableCloseOnSelect:R=!1,disabled:M=!1,disabledItemsFocusable:z=!1,disableListWrap:E=!1,disablePortal:F=!1,filterSelectedOptions:H=!1,forcePopupIcon:B="auto",freeSolo:le=!1,fullWidth:ce=!1,getLimitTagsText:se=e=>"+".concat(e),getOptionLabel:pe,groupBy:ue,handleHomeEndKeys:de=!u.freeSolo,includeInputInList:ge=!1,limitTags:fe=-1,ListboxComponent:he="ul",ListboxProps:me,loading:be=!1,loadingText:ve="Loading\u2026",multiple:xe=!1,noOptionsText:Ae="No options",openOnFocus:ye=!1,openText:Oe="Open",PaperComponent:Ie=N.A,PopperComponent:Se=A.A,popupIcon:Ce=K||(K=(0,P.jsx)(j.A,{})),readOnly:ke=!1,renderGroup:Pe,renderInput:Le,renderOption:we,renderTags:Te,selectOnFocus:Re=!u.freeSolo,size:Ne="medium",slotProps:Me={}}=u,De=(0,n.A)(u,U),{getRootProps:ze,getInputProps:Ee,getInputLabelProps:Fe,getPopupIndicatorProps:He,getClearProps:We,getTagProps:je,getListboxProps:Ve,getOptionProps:Be,value:Ge,dirty:Ke,expanded:qe,id:Ue,popupOpen:_e,focused:Xe,focusedTag:Je,anchorEl:Qe,setAnchorEl:Ye,inputValue:Ze,groupedOptions:$e}=x((0,a.A)({},u,{componentName:"Autocomplete"})),et=!T&&!M&&Ke&&!ke,tt=(!le||!0===B)&&!1!==B,{onMouseDown:ot}=Ee(),{ref:nt}=null!=me?me:{},at=Ve(),{ref:rt}=at,it=(0,n.A)(at,_),lt=(0,q.A)(rt,nt),ct=pe||(e=>{var t;return null!=(t=e.label)?t:e}),st=(0,a.A)({},u,{disablePortal:F,expanded:qe,focused:Xe,fullWidth:ce,getOptionLabel:ct,hasClearIcon:et,hasPopupIcon:tt,inputFocused:-1===Je,popupOpen:_e,size:Ne}),pt=(e=>{const{classes:t,disablePortal:o,expanded:n,focused:a,fullWidth:r,hasClearIcon:i,hasPopupIcon:c,inputFocused:s,popupOpen:p,size:u}=e,d={root:["root",n&&"expanded",a&&"focused",r&&"fullWidth",i&&"hasClearIcon",c&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag","tagSize".concat((0,I.A)(u))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",o&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,l.A)(d,V,t)})(st);let ut;if(xe&&Ge.length>0){const e=e=>(0,a.A)({className:pt.tag,disabled:M},je(e));ut=Te?Te(Ge,e,st):Ge.map(((t,o)=>{const r=e({index:o}),{key:i}=r,l=(0,n.A)(r,X);return(0,P.jsx)(D.A,(0,a.A)({label:ct(t),size:Ne},l,m),i)}))}if(fe>-1&&Array.isArray(ut)){const e=ut.length-fe;!Xe&&e>0&&(ut=ut.splice(0,fe),ut.push((0,P.jsx)("span",{className:pt.tag,children:se(e)},ut.length)))}const dt=Pe||(e=>(0,P.jsxs)("li",{children:[(0,P.jsx)(re,{className:pt.groupLabel,ownerState:st,component:"div",children:e.group}),(0,P.jsx)(ie,{className:pt.groupUl,ownerState:st,children:e.children})]},e.key)),gt=we||((e,t)=>{const{key:o}=e,r=(0,n.A)(e,J);return(0,P.jsx)("li",(0,a.A)({},r,{children:ct(t)}),o)}),ft=(e,t)=>{const o=Be({option:e,index:t});return gt((0,a.A)({},o,{className:pt.option}),e,{selected:o["aria-selected"],index:t,inputValue:Ze},st)},ht=null!=(o=Me.clearIndicator)?o:L.clearIndicator,mt=null!=(c=Me.paper)?c:L.paper,bt=null!=(s=Me.popper)?s:L.popper,vt=null!=(p=Me.popupIndicator)?p:L.popupIndicator;return(0,P.jsxs)(r.Fragment,{children:[(0,P.jsx)(Q,(0,a.A)({ref:t,className:(0,i.A)(pt.root,b),ownerState:st},ze(De),{children:Le({id:Ue,disabled:M,fullWidth:!0,size:"small"===Ne?"small":void 0,InputLabelProps:Fe(),InputProps:(0,a.A)({ref:Ye,className:pt.inputRoot,startAdornment:ut,onClick:e=>{e.target===e.currentTarget&&ot(e)}},(et||tt)&&{endAdornment:(0,P.jsxs)(Y,{className:pt.endAdornment,ownerState:st,children:[et?(0,P.jsx)(Z,(0,a.A)({},We(),{"aria-label":C,title:C,ownerState:st},ht,{className:(0,i.A)(pt.clearIndicator,null==ht?void 0:ht.className),children:v})):null,tt?(0,P.jsx)($,(0,a.A)({},He(),{disabled:M,"aria-label":_e?k:Oe,title:_e?k:Oe,ownerState:st},vt,{className:(0,i.A)(pt.popupIndicator,null==vt?void 0:vt.className),children:Ce})):null]})}),inputProps:(0,a.A)({className:pt.input,disabled:M,readOnly:ke},Ee())})})),Qe?(0,P.jsx)(ee,(0,a.A)({as:Se,disablePortal:F,style:{width:Qe?Qe.clientWidth:null},ownerState:st,role:"presentation",anchorEl:Qe,open:_e},bt,{className:(0,i.A)(pt.popper,null==bt?void 0:bt.className),children:(0,P.jsxs)(te,(0,a.A)({ownerState:st,as:Ie},mt,{className:(0,i.A)(pt.paper,null==mt?void 0:mt.className),children:[be&&0===$e.length?(0,P.jsx)(oe,{className:pt.loading,ownerState:st,children:ve}):null,0!==$e.length||le||be?null:(0,P.jsx)(ne,{className:pt.noOptions,ownerState:st,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:Ae}),$e.length>0?(0,P.jsx)(ae,(0,a.A)({as:he,className:pt.listbox,ownerState:st},it,me,{ref:lt,children:$e.map(((e,t)=>ue?dt({key:e.key,group:e.group,children:e.options.map(((t,o)=>ft(t,e.index+o)))}):ft(e,t)))})):null]}))})):null]})}))}}]); \ No newline at end of file diff --git a/build/static/js/7533.136137f2.chunk.js b/build/static/js/7533.136137f2.chunk.js deleted file mode 100644 index 63edb7e..0000000 --- a/build/static/js/7533.136137f2.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 7533.136137f2.chunk.js.LICENSE.txt */ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[7533],{27379:(e,r,t)=>{"use strict";t.d(r,{A:()=>o});var a=t(58168),n=t(9950);const s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};var i=t(61187),c=function(e,r){return n.createElement(i.A,(0,a.A)({},e,{ref:r,icon:s}))};const o=n.forwardRef(c)},46639:(e,r,t)=>{"use strict";t.d(r,{A:()=>N});var a=t(57528),n=t(98587),s=t(58168),i=t(9950),c=t(72004),o=t(3484),l=t(88283),f=t(89548),h=t(18463),u=t(59254),d=t(45558),p=t(1614);function m(e){return(0,p.Ay)("MuiCircularProgress",e)}(0,d.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var g,v,b,T,E=t(44414);const w=["className","color","disableShrink","size","style","thickness","value","variant"];let A,k,S,y;const _=44,C=(0,l.i7)(A||(A=g||(g=(0,a.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),R=(0,l.i7)(k||(k=v||(v=(0,a.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),O=(0,u.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[t.variant],r["color".concat((0,f.A)(t.color))]]}})((e=>{let{ownerState:r,theme:t}=e;return(0,s.A)({display:"inline-block"},"determinate"===r.variant&&{transition:t.transitions.create("transform")},"inherit"!==r.color&&{color:(t.vars||t).palette[r.color].main})}),(e=>{let{ownerState:r}=e;return"indeterminate"===r.variant&&(0,l.AH)(S||(S=b||(b=(0,a.A)(["\n animation: "," 1.4s linear infinite;\n "]))),C)})),x=(0,u.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,r)=>r.svg})({display:"block"}),I=(0,u.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.circle,r["circle".concat((0,f.A)(t.variant))],t.disableShrink&&r.circleDisableShrink]}})((e=>{let{ownerState:r,theme:t}=e;return(0,s.A)({stroke:"currentColor"},"determinate"===r.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===r.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:r}=e;return"indeterminate"===r.variant&&!r.disableShrink&&(0,l.AH)(y||(y=T||(T=(0,a.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),R)})),N=i.forwardRef((function(e,r){const t=(0,h.b)({props:e,name:"MuiCircularProgress"}),{className:a,color:i="primary",disableShrink:l=!1,size:u=40,style:d,thickness:p=3.6,value:g=0,variant:v="indeterminate"}=t,b=(0,n.A)(t,w),T=(0,s.A)({},t,{color:i,disableShrink:l,size:u,thickness:p,value:g,variant:v}),A=(e=>{const{classes:r,variant:t,color:a,disableShrink:n}=e,s={root:["root",t,"color".concat((0,f.A)(a))],svg:["svg"],circle:["circle","circle".concat((0,f.A)(t)),n&&"circleDisableShrink"]};return(0,o.A)(s,m,r)})(T),k={},S={},y={};if("determinate"===v){const e=2*Math.PI*((_-p)/2);k.strokeDasharray=e.toFixed(3),y["aria-valuenow"]=Math.round(g),k.strokeDashoffset="".concat(((100-g)/100*e).toFixed(3),"px"),S.transform="rotate(-90deg)"}return(0,E.jsx)(O,(0,s.A)({className:(0,c.A)(A.root,a),style:(0,s.A)({width:u,height:u},S,d),ownerState:T,ref:r,role:"progressbar"},y,b,{children:(0,E.jsx)(x,{className:A.svg,ownerState:T,viewBox:"".concat(22," ").concat(22," ").concat(_," ").concat(_),children:(0,E.jsx)(I,{className:A.circle,style:k,ownerState:T,cx:_,cy:_,r:(_-p)/2,fill:"none",strokeWidth:p})})}))}))},50847:function(e,r){var t,a,n;a=[],t=function e(){var r,t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},a=!t.document&&!!t.postMessage,n=t.IS_PAPA_WORKER||!1,s={},i=0,c={};function o(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var r=T(e);r.chunkSize=parseInt(r.chunkSize),e.step||e.chunk||(r.chunkSize=null),this._handle=new d(r),(this._handle.streamer=this)._config=r}.call(this,e),this.parseChunk=function(e,r){var a=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0=this._config.preview,n)t.postMessage({results:s,workerId:c.WORKER_ID,finished:a});else if(w(this._config.chunk)&&!r){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=s=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!a||!w(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),a||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){w(this._config.error)?this._config.error(e):n&&this._config.error&&t.postMessage({workerId:c.WORKER_ID,error:e,finished:!1})}}function l(e){var r;(e=e||{}).chunkSize||(e.chunkSize=c.RemoteChunkSize),o.call(this,e),this._nextChunk=a?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(r=new XMLHttpRequest,this._config.withCredentials&&(r.withCredentials=this._config.withCredentials),a||(r.onload=E(this._chunkLoaded,this),r.onerror=E(this._chunkError,this)),r.open(this._config.downloadRequestBody?"POST":"GET",this._input,!a),this._config.downloadRequestHeaders){var e,t=this._config.downloadRequestHeaders;for(e in t)r.setRequestHeader(e,t[e])}var n;this._config.chunkSize&&(n=this._start+this._config.chunkSize-1,r.setRequestHeader("Range","bytes="+this._start+"-"+n));try{r.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}a&&0===r.status&&this._chunkError()}},this._chunkLoaded=function(){4===r.readyState&&(r.status<200||400<=r.status?this._chunkError():(this._start+=this._config.chunkSize||r.responseText.length,this._finished=!this._config.chunkSize||this._start>=(e=>null!==(e=e.getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1)(r),this.parseChunk(r.responseText)))},this._chunkError=function(e){e=r.statusText||e,this._sendError(new Error(e))}}function f(e){(e=e||{}).chunkSize||(e.chunkSize=c.LocalChunkSize),o.call(this,e);var r,t,a="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,t=e.slice||e.webkitSlice||e.mozSlice,a?((r=new FileReader).onload=E(this._chunkLoaded,this),r.onerror=E(this._chunkError,this)):r=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(r.error)}}function h(e){var r;o.call(this,e=e||{}),this.stream=function(e){return r=e,this._nextChunk()},this._nextChunk=function(){var e,t;if(!this._finished)return e=this._config.chunkSize,r=e?(t=r.substring(0,e),r.substring(e)):(t=r,""),this._finished=!r,this.parseChunk(t)}}function u(e){o.call(this,e=e||{});var r=[],t=!0,a=!1;this.pause=function(){o.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){o.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){a&&1===r.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),r.length?this.parseChunk(r.shift()):t=!0},this._streamData=E((function(e){try{r.push("string"==typeof e?e:e.toString(this._config.encoding)),t&&(t=!1,this._checkIsFinished(),this.parseChunk(r.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=E((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=E((function(){this._streamCleanUp(),a=!0,this._streamData("")}),this),this._streamCleanUp=E((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function d(e){var r,t,a,n,s=Math.pow(2,53),i=-s,o=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,l=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,f=this,h=0,u=0,d=!1,g=!1,v=[],b={data:[],errors:[],meta:{}};function E(r){return"greedy"===e.skipEmptyLines?""===r.join("").trim():1===r.length&&0===r[0].length}function A(){if(b&&a&&(S("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),a=!1),e.skipEmptyLines&&(b.data=b.data.filter((function(e){return!E(e)}))),k()){if(b)if(Array.isArray(b.data[0])){for(var r=0;k()&&r(r=>(e.dynamicTypingFunction&&void 0===e.dynamicTyping[r]&&(e.dynamicTyping[r]=e.dynamicTypingFunction(r)),!0===(e.dynamicTyping[r]||e.dynamicTyping)))(r)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&((e=>{if(o.test(e)&&(e=parseFloat(e),i=v.length?"__parsed_extra":v[n]:c,f=e.transform?e.transform(f,c):f),"__parsed_extra"===c?(a[c]=a[c]||[],a[c].push(f)):a[c]=f}return e.header&&(n>v.length?S("FieldMismatch","TooManyFields","Too many fields: expected "+v.length+" fields but parsed "+n,u+t):ne.preview?t.abort():(b.data=b.data[0],n(b,f))))}),this.parse=function(n,s,i){var o=e.quoteChar||'"';return e.newline||(e.newline=this.guessLineEndings(n,o)),a=!1,e.delimiter?w(e.delimiter)&&(e.delimiter=e.delimiter(n),b.meta.delimiter=e.delimiter):((o=((r,t,a,n,s)=>{var i,o,l,f;s=s||[",","\t","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var h=0;h=t.length/2?"\r\n":"\r"}}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function m(e){var r=(e=e||{}).delimiter,t=e.newline,a=e.comments,n=e.step,s=e.preview,i=e.fastMode,o=null,l=!1,f=null==e.quoteChar?'"':e.quoteChar,h=f;if(void 0!==e.escapeChar&&(h=e.escapeChar),("string"!=typeof r||-1=s)return U(!0);break}S.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:k.length,index:u}),N++}}else if(a&&0===y.length&&c.substring(u,u+E)===a){if(-1===x)return U();u=x+T,x=c.indexOf(t,u),O=c.indexOf(r,u)}else if(-1!==O&&(O=s)return U(!0)}return P();function F(e){k.push(e),_=u}function L(e){var r=0;return-1!==e&&(e=c.substring(N+1,e))&&""===e.trim()?e.length:r}function P(e){return g||(void 0===e&&(e=c.substring(u)),y.push(e),u=v,F(y),A&&B()),U()}function M(e){u=e,F(y),y=[],x=c.indexOf(t,u)}function U(a){if(e.header&&!m&&k.length&&!l){var n=k[0],s={},i=new Set(n);let r=!1;for(let t=0;t65279!==e.charCodeAt(0)?e:e.slice(1))(r),n=new(a.download?l:h)(a)):!0===r.readable&&w(r.read)&&w(r.on)?n=new u(a):(t.File&&r instanceof File||r instanceof Object)&&(n=new f(a)),n.stream(r);(n=(()=>{var r;return!!c.WORKERS_SUPPORTED&&(r=(()=>{var r=t.URL||t.webkitURL||null,a=e.toString();return c.BLOB_URL||(c.BLOB_URL=r.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",a,")();"],{type:"text/javascript"})))})(),(r=new t.Worker(r)).onmessage=g,r.id=i++,s[r.id]=r)})()).userStep=a.step,n.userChunk=a.chunk,n.userComplete=a.complete,n.userError=a.error,a.step=w(a.step),a.chunk=w(a.chunk),a.complete=w(a.complete),a.error=w(a.error),delete a.worker,n.postMessage({input:r,config:a,workerId:n.id})},c.unparse=function(e,r){var t=!1,a=!0,n=",",s="\r\n",i='"',o=i+i,l=!1,f=null,h=!1,u=((()=>{if("object"==typeof r){if("string"!=typeof r.delimiter||c.BAD_DELIMITERS.filter((function(e){return-1!==r.delimiter.indexOf(e)})).length||(n=r.delimiter),"boolean"!=typeof r.quotes&&"function"!=typeof r.quotes&&!Array.isArray(r.quotes)||(t=r.quotes),"boolean"!=typeof r.skipEmptyLines&&"string"!=typeof r.skipEmptyLines||(l=r.skipEmptyLines),"string"==typeof r.newline&&(s=r.newline),"string"==typeof r.quoteChar&&(i=r.quoteChar),"boolean"==typeof r.header&&(a=r.header),Array.isArray(r.columns)){if(0===r.columns.length)throw new Error("Option columns is empty");f=r.columns}void 0!==r.escapeChar&&(o=r.escapeChar+i),r.escapeFormulae instanceof RegExp?h=r.escapeFormulae:"boolean"==typeof r.escapeFormulae&&r.escapeFormulae&&(h=/^[=+\-@\t\r].*$/)}})(),new RegExp(p(i),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return d(null,e,l);if("object"==typeof e[0])return d(f||Object.keys(e[0]),e,l)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||f),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),d(e.fields||[],e.data||[],l);throw new Error("Unable to serialize unrecognized input");function d(e,r,t){var i="",c=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof r&&(r=JSON.parse(r)),Array.isArray(e)&&0{for(var t=0;t{"use strict";t.d(r,{LF:()=>Do,Wp:()=>$o});var a=t(83686).Buffer,n=t(85224),s={version:"0.18.5"},i=1200,c=1252,o=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],l={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},f=function(e){-1!=o.indexOf(e)&&(c=l[0]=e)};var h=function(e){i=e,f(e)};function u(){h(1200),f(1252)}function d(e){for(var r=[],t=0,a=e.length;t>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t+1)+(e.charCodeAt(2*t)<<8));return r.join("")}var m,g=function(e){var r=e.charCodeAt(0),t=e.charCodeAt(1);return 255==r&&254==t?function(e){for(var r=[],t=0;t>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t)+(e.charCodeAt(2*t+1)<<8));return r.join("")}(e.slice(2)):254==r&&255==t?p(e.slice(2)):65279==r?e.slice(1):e},v=function(e){return String.fromCharCode(e)},b=function(e){return String.fromCharCode(e)};var T=null,E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function w(e){for(var r="",t=0,a=0,n=0,s=0,i=0,c=0,o=0,l=0;l>2,i=(3&t)<<4|(a=e.charCodeAt(l++))>>4,c=(15&a)<<2|(n=e.charCodeAt(l++))>>6,o=63&n,isNaN(a)?c=o=64:isNaN(n)&&(o=64),r+=E.charAt(s)+E.charAt(i)+E.charAt(c)+E.charAt(o);return r}function A(e){var r="",t=0,a=0,n=0,s=0,i=0,c=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var o=0;o>4,r+=String.fromCharCode(t),a=(15&s)<<4|(i=E.indexOf(e.charAt(o++)))>>2,64!==i&&(r+=String.fromCharCode(a)),n=(3&i)<<6|(c=E.indexOf(e.charAt(o++))),64!==c&&(r+=String.fromCharCode(n));return r}var k=function(){return"undefined"!==typeof a&&"undefined"!==typeof n&&"undefined"!==typeof n.versions&&!!n.versions.node}(),S=function(){if("undefined"!==typeof a){var e=!a.from;if(!e)try{a.from("foo","utf8")}catch(r){e=!0}return e?function(e,r){return r?new a(e,r):new a(e)}:a.from.bind(a)}return function(){}}();function y(e){return k?a.alloc?a.alloc(e):new a(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function _(e){return k?a.allocUnsafe?a.allocUnsafe(e):new a(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var C=function(e){return k?S(e,"binary"):e.split("").map((function(e){return 255&e.charCodeAt(0)}))};function R(e){if(Array.isArray(e))return e.map((function(e){return String.fromCharCode(e)})).join("");for(var r=[],t=0;t=0;)r+=e.charAt(t--);return r}function F(e,r){var t=""+e;return t.length>=r?t:Ge("0",r-t.length)+t}function L(e,r){var t=""+e;return t.length>=r?t:Ge(" ",r-t.length)+t}function P(e,r){var t=""+e;return t.length>=r?t:t+Ge(" ",r-t.length)}var M=Math.pow(2,32);function U(e,r){return e>M||e<-M?function(e,r){var t=""+Math.round(e);return t.length>=r?t:Ge("0",r-t.length)+t}(e,r):function(e,r){var t=""+e;return t.length>=r?t:Ge("0",r-t.length)+t}(Math.round(e),r)}function B(e,r){return r=r||0,e.length>=7+r&&103===(32|e.charCodeAt(r))&&101===(32|e.charCodeAt(r+1))&&110===(32|e.charCodeAt(r+2))&&101===(32|e.charCodeAt(r+3))&&114===(32|e.charCodeAt(r+4))&&97===(32|e.charCodeAt(r+5))&&108===(32|e.charCodeAt(r+6))}var H=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],z=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];var W={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "'},V={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},G={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function j(e,r,t){for(var a=e<0?-1:1,n=e*a,s=0,i=1,c=0,o=1,l=0,f=0,h=Math.floor(n);lr&&(l>r?(f=o,c=s):(f=l,c=i)),!t)return[0,a*c,f];var u=Math.floor(a*c/f);return[u,a*c-u*f,f]}function X(e,r,t){if(e>2958465||e<0)return null;var a=0|e,n=Math.floor(86400*(e-a)),s=0,i=[],c={D:a,T:n,u:86400*(e-a)-n,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(c.u)<1e-6&&(c.u=0),r&&r.date1904&&(a+=1462),c.u>.9999&&(c.u=0,86400==++n&&(c.T=n=0,++a,++c.D)),60===a)i=t?[1317,10,29]:[1900,2,29],s=3;else if(0===a)i=t?[1317,8,29]:[1900,1,0],s=6;else{a>60&&--a;var o=new Date(1900,0,1);o.setDate(o.getDate()+a-1),i=[o.getFullYear(),o.getMonth()+1,o.getDate()],s=o.getDay(),a<60&&(s=(s+6)%7),t&&(s=function(e,r){r[0]-=581;var t=e.getDay();e<60&&(t=(t+6)%7);return t}(o,i))}return c.y=i[0],c.m=i[1],c.d=i[2],c.S=n%60,n=Math.floor(n/60),c.M=n%60,n=Math.floor(n/60),c.H=n,c.q=s,c}var K=new Date(1899,11,31,0,0,0),Y=K.getTime(),J=new Date(1900,2,1,0,0,0);function q(e,r){var t=e.getTime();return r?t-=1262304e5:e>=J&&(t+=864e5),(t-(Y+6e4*(e.getTimezoneOffset()-K.getTimezoneOffset())))/864e5}function Z(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Q(e){var r,t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return r=t>=-4&&t<=-1?e.toPrecision(10+t):Math.abs(t)<=9?function(e){var r=e<0?12:11,t=Z(e.toFixed(12));return t.length<=r||(t=e.toPrecision(10)).length<=r?t:e.toExponential(5)}(e):10===t?e.toFixed(10).substr(0,12):function(e){var r=Z(e.toFixed(11));return r.length>(e<0?12:11)||"0"===r||"-0"===r?e.toPrecision(6):r}(e),Z(function(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(r.toUpperCase()))}function ee(e,r){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):Q(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return we(14,q(e,r&&r.date1904),r)}throw new Error("unsupported value in General format: "+e)}function re(e,r,t,a){var n,s="",i=0,c=0,o=t.y,l=0;switch(e){case 98:o=t.y+543;case 121:switch(r.length){case 1:case 2:n=o%100,l=2;break;default:n=o%1e4,l=4}break;case 109:switch(r.length){case 1:case 2:n=t.m,l=r.length;break;case 3:return z[t.m-1][1];case 5:return z[t.m-1][0];default:return z[t.m-1][2]}break;case 100:switch(r.length){case 1:case 2:n=t.d,l=r.length;break;case 3:return H[t.q][0];default:return H[t.q][1]}break;case 104:switch(r.length){case 1:case 2:n=1+(t.H+11)%12,l=r.length;break;default:throw"bad hour format: "+r}break;case 72:switch(r.length){case 1:case 2:n=t.H,l=r.length;break;default:throw"bad hour format: "+r}break;case 77:switch(r.length){case 1:case 2:n=t.M,l=r.length;break;default:throw"bad minute format: "+r}break;case 115:if("s"!=r&&"ss"!=r&&".0"!=r&&".00"!=r&&".000"!=r)throw"bad second format: "+r;return 0!==t.u||"s"!=r&&"ss"!=r?(c=a>=2?3===a?1e3:100:1===a?10:1,(i=Math.round(c*(t.S+t.u)))>=60*c&&(i=0),"s"===r?0===i?"0":""+i/c:(s=F(i,2+a),"ss"===r?s.substr(0,2):"."+s.substr(2,r.length-1))):F(t.S,r.length);case 90:switch(r){case"[h]":case"[hh]":n=24*t.D+t.H;break;case"[m]":case"[mm]":n=60*(24*t.D+t.H)+t.M;break;case"[s]":case"[ss]":n=60*(60*(24*t.D+t.H)+t.M)+Math.round(t.S+t.u);break;default:throw"bad abstime format: "+r}l=3===r.length?1:2;break;case 101:n=o,l=1}return l>0?F(n,l):""}function te(e){if(e.length<=3)return e;for(var r=e.length%3,t=e.substr(0,r);r!=e.length;r+=3)t+=(t.length>0?",":"")+e.substr(r,3);return t}var ae=/%/g;function ne(e,r){var t,a=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==r)return"0.0E+0";if(r<0)return"-"+ne(e,-r);var n=e.indexOf(".");-1===n&&(n=e.indexOf("E"));var s=Math.floor(Math.log(r)*Math.LOG10E)%n;if(s<0&&(s+=n),-1===(t=(r/Math.pow(10,s)).toPrecision(a+1+(n+s)%n)).indexOf("e")){var i=Math.floor(Math.log(r)*Math.LOG10E);for(-1===t.indexOf(".")?t=t.charAt(0)+"."+t.substr(1)+"E+"+(i-t.length+s):t+="E+"+(i-s);"0."===t.substr(0,2);)t=(t=t.charAt(0)+t.substr(2,n)+"."+t.substr(2+n)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,r,t,a){return r+t+a.substr(0,(n+s)%n)+"."+a.substr(s)+"E"}))}else t=r.toExponential(a);return e.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),e.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}var se=/# (\?+)( ?)\/( ?)(\d+)/;var ie=/^#*0*\.([0#]+)/,ce=/\).*[0#]/,oe=/\(###\) ###\\?-####/;function le(e){for(var r,t="",a=0;a!=e.length;++a)switch(r=e.charCodeAt(a)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function fe(e,r){var t=Math.pow(10,r);return""+Math.round(e*t)/t}function he(e,r){var t=e-Math.floor(e),a=Math.pow(10,r);return r<(""+Math.round(t*a)).length?0:Math.round(t*a)}function ue(e,r,t){if(40===e.charCodeAt(0)&&!r.match(ce)){var a=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?ue("n",a,t):"("+ue("n",a,-t)+")"}if(44===r.charCodeAt(r.length-1))return function(e,r,t){for(var a=r.length-1;44===r.charCodeAt(a-1);)--a;return me(e,r.substr(0,a),t/Math.pow(10,3*(r.length-a)))}(e,r,t);if(-1!==r.indexOf("%"))return function(e,r,t){var a=r.replace(ae,""),n=r.length-a.length;return me(e,a,t*Math.pow(10,2*n))+Ge("%",n)}(e,r,t);if(-1!==r.indexOf("E"))return ne(r,t);if(36===r.charCodeAt(0))return"$"+ue(e,r.substr(" "==r.charAt(1)?2:1),t);var n,s,i,c,o=Math.abs(t),l=t<0?"-":"";if(r.match(/^00+$/))return l+U(o,r.length);if(r.match(/^[#?]+$/))return"0"===(n=U(t,0))&&(n=""),n.length>r.length?n:le(r.substr(0,r.length-n.length))+n;if(s=r.match(se))return function(e,r,t){var a=parseInt(e[4],10),n=Math.round(r*a),s=Math.floor(n/a),i=n-s*a,c=a;return t+(0===s?"":""+s)+" "+(0===i?Ge(" ",e[1].length+1+e[4].length):L(i,e[1].length)+e[2]+"/"+e[3]+F(c,e[4].length))}(s,o,l);if(r.match(/^#+0+$/))return l+U(o,r.length-r.indexOf("0"));if(s=r.match(ie))return n=fe(t,s[1].length).replace(/^([^\.]+)$/,"$1."+le(s[1])).replace(/\.$/,"."+le(s[1])).replace(/\.(\d*)$/,(function(e,r){return"."+r+Ge("0",le(s[1]).length-r.length)})),-1!==r.indexOf("0.")?n:n.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),s=r.match(/^(0*)\.(#*)$/))return l+fe(o,s[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=r.match(/^#{1,3},##0(\.?)$/))return l+te(U(o,0));if(s=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+ue(e,r,-t):te(""+(Math.floor(t)+function(e,r){return r<(""+Math.round((e-Math.floor(e))*Math.pow(10,r))).length?1:0}(t,s[1].length)))+"."+F(he(t,s[1].length),s[1].length);if(s=r.match(/^#,#*,#0/))return ue(e,r.replace(/^#,#*,/,""),t);if(s=r.match(/^([0#]+)(\\?-([0#]+))+$/))return n=D(ue(e,r.replace(/[\\-]/g,""),t)),i=0,D(D(r.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return i-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}(t)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?F(0,3-e.length):"")+e}))+"."+F(i,s[1].length);switch(r){case"###,##0.00":return ue(e,"#,##0.00",t);case"###,###":case"##,###":case"#,###":var d=te(U(o,0));return"0"!==d?l+d:"";case"###,###.00":return ue(e,"###,##0.00",t).replace(/^0\./,".");case"#,###.00":return ue(e,"#,##0.00",t).replace(/^0\./,".")}throw new Error("unsupported format |"+r+"|")}function de(e,r){var t,a=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==r)return"0.0E+0";if(r<0)return"-"+de(e,-r);var n=e.indexOf(".");-1===n&&(n=e.indexOf("E"));var s=Math.floor(Math.log(r)*Math.LOG10E)%n;if(s<0&&(s+=n),!(t=(r/Math.pow(10,s)).toPrecision(a+1+(n+s)%n)).match(/[Ee]/)){var i=Math.floor(Math.log(r)*Math.LOG10E);-1===t.indexOf(".")?t=t.charAt(0)+"."+t.substr(1)+"E+"+(i-t.length+s):t+="E+"+(i-s),t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,r,t,a){return r+t+a.substr(0,(n+s)%n)+"."+a.substr(s)+"E"}))}else t=r.toExponential(a);return e.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),e.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}function pe(e,r,t){if(40===e.charCodeAt(0)&&!r.match(ce)){var a=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?pe("n",a,t):"("+pe("n",a,-t)+")"}if(44===r.charCodeAt(r.length-1))return function(e,r,t){for(var a=r.length-1;44===r.charCodeAt(a-1);)--a;return me(e,r.substr(0,a),t/Math.pow(10,3*(r.length-a)))}(e,r,t);if(-1!==r.indexOf("%"))return function(e,r,t){var a=r.replace(ae,""),n=r.length-a.length;return me(e,a,t*Math.pow(10,2*n))+Ge("%",n)}(e,r,t);if(-1!==r.indexOf("E"))return de(r,t);if(36===r.charCodeAt(0))return"$"+pe(e,r.substr(" "==r.charAt(1)?2:1),t);var n,s,i,c,o=Math.abs(t),l=t<0?"-":"";if(r.match(/^00+$/))return l+F(o,r.length);if(r.match(/^[#?]+$/))return n=""+t,0===t&&(n=""),n.length>r.length?n:le(r.substr(0,r.length-n.length))+n;if(s=r.match(se))return function(e,r,t){return t+(0===r?"":""+r)+Ge(" ",e[1].length+2+e[4].length)}(s,o,l);if(r.match(/^#+0+$/))return l+F(o,r.length-r.indexOf("0"));if(s=r.match(ie))return n=(n=(""+t).replace(/^([^\.]+)$/,"$1."+le(s[1])).replace(/\.$/,"."+le(s[1]))).replace(/\.(\d*)$/,(function(e,r){return"."+r+Ge("0",le(s[1]).length-r.length)})),-1!==r.indexOf("0.")?n:n.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),s=r.match(/^(0*)\.(#*)$/))return l+(""+o).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=r.match(/^#{1,3},##0(\.?)$/))return l+te(""+o);if(s=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+pe(e,r,-t):te(""+t)+"."+Ge("0",s[1].length);if(s=r.match(/^#,#*,#0/))return pe(e,r.replace(/^#,#*,/,""),t);if(s=r.match(/^([0#]+)(\\?-([0#]+))+$/))return n=D(pe(e,r.replace(/[\\-]/g,""),t)),i=0,D(D(r.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return i-1||"\\"==t&&"-"==e.charAt(r+1)&&"0#".indexOf(e.charAt(r+2))>-1););break;case"?":for(;e.charAt(++r)===t;);break;case"*":++r," "!=e.charAt(r)&&"*"!=e.charAt(r)||++r;break;case"(":case")":++r;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;r-1;);break;default:++r}return!1}var be=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Te(e,r){if(null==r)return!1;var t=parseFloat(r[2]);switch(r[1]){case"=":if(e==t)return!0;break;case">":if(e>t)return!0;break;case"<":if(e":if(e!=t)return!0;break;case">=":if(e>=t)return!0;break;case"<=":if(e<=t)return!0}return!1}function Ee(e,r){var t=function(e){for(var r=[],t=!1,a=0,n=0;a-1&&--a,t.length>4)throw new Error("cannot find right format for |"+t.join("|")+"|");if("number"!==typeof r)return[4,4===t.length||n>-1?t[t.length-1]:"@"];switch(t.length){case 1:t=n>-1?["General","General","General",t[0]]:[t[0],t[0],t[0],"@"];break;case 2:t=n>-1?[t[0],t[0],t[0],t[1]]:[t[0],t[1],t[0],"@"];break;case 3:t=n>-1?[t[0],t[1],t[0],t[2]]:[t[0],t[1],t[2],"@"]}var s=r>0?t[0]:r<0?t[1]:t[2];if(-1===t[0].indexOf("[")&&-1===t[1].indexOf("["))return[a,s];if(null!=t[0].match(/\[[=<>]/)||null!=t[1].match(/\[[=<>]/)){var i=t[0].match(be),c=t[1].match(be);return Te(r,i)?[a,t[0]]:Te(r,c)?[a,t[1]]:[a,t[null!=i&&null!=c?2:1]]}return[a,s]}function we(e,r,t){null==t&&(t={});var a="";switch(typeof e){case"string":a="m/d/yy"==e&&t.dateNF?t.dateNF:e;break;case"number":null==(a=14==e&&t.dateNF?t.dateNF:(null!=t.table?t.table:W)[e])&&(a=t.table&&t.table[V[e]]||W[V[e]]),null==a&&(a=G[e]||"General")}if(B(a,0))return ee(r,t);r instanceof Date&&(r=q(r,t.date1904));var n=Ee(a,r);if(B(n[1]))return ee(r,t);if(!0===r)r="TRUE";else if(!1===r)r="FALSE";else if(""===r||null==r)return"";return function(e,r,t,a){for(var n,s,i,c=[],o="",l=0,f="",h="t",u="H";l=12?"P":"A"),m.t="T",u="h",l+=3):"AM/PM"===e.substr(l,5).toUpperCase()?(null!=n&&(m.v=n.H>=12?"PM":"AM"),m.t="T",l+=5,u="h"):"\u4e0a\u5348/\u4e0b\u5348"===e.substr(l,5).toUpperCase()?(null!=n&&(m.v=n.H>=12?"\u4e0b\u5348":"\u4e0a\u5348"),m.t="T",l+=5,u="h"):(m.t="t",++l),null==n&&"T"===m.t)return"";c[c.length]=m,h=f;break;case"[":for(o=f;"]"!==e.charAt(l++)&&l-1&&(o=(o.match(/\$([^-\[\]]*)/)||[])[1]||"$",ve(e)||(c[c.length]={t:"t",v:o}));break;case".":if(null!=n){for(o=f;++l-1;)o+=f;c[c.length]={t:"n",v:o};break;case"?":for(o=f;e.charAt(++l)===f;)o+=f;c[c.length]={t:f,v:o},h=f;break;case"*":++l," "!=e.charAt(l)&&"*"!=e.charAt(l)||++l;break;case"(":case")":c[c.length]={t:1===a?"t":f,v:f},++l;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(o=f;l-1;)o+=e.charAt(l);c[c.length]={t:"D",v:o};break;case" ":c[c.length]={t:f,v:f},++l;break;case"$":c[c.length]={t:"t",v:"$"},++l;break;default:if(-1===",$-+/():!^&'~{}<>=\u20acacfijklopqrtuvwxzP".indexOf(f))throw new Error("unrecognized character "+f+" in "+e);c[c.length]={t:"t",v:f},++l}var g,v=0,b=0;for(l=c.length-1,h="t";l>=0;--l)switch(c[l].t){case"h":case"H":c[l].t=u,h="h",v<1&&(v=1);break;case"s":(g=c[l].v.match(/\.0+$/))&&(b=Math.max(b,g[0].length-1)),v<3&&(v=3);case"d":case"y":case"M":case"e":h=c[l].t;break;case"m":"s"===h&&(c[l].t="M",v<2&&(v=2));break;case"X":break;case"Z":v<1&&c[l].v.match(/[Hh]/)&&(v=1),v<2&&c[l].v.match(/[Mm]/)&&(v=2),v<3&&c[l].v.match(/[Ss]/)&&(v=3)}switch(v){case 0:break;case 1:n.u>=.5&&(n.u=0,++n.S),n.S>=60&&(n.S=0,++n.M),n.M>=60&&(n.M=0,++n.H);break;case 2:n.u>=.5&&(n.u=0,++n.S),n.S>=60&&(n.S=0,++n.M)}var T,E="";for(l=0;l0){40==E.charCodeAt(0)?(w=r<0&&45===E.charCodeAt(0)?-r:r,A=me("n",E,w)):(A=me("n",E,w=r<0&&a>1?-r:r),w<0&&c[0]&&"t"==c[0].t&&(A=A.substr(1),c[0].v="-"+c[0].v)),T=A.length-1;var S=c.length;for(l=0;l-1){S=l;break}var y=c.length;if(S===c.length&&-1===A.indexOf("E")){for(l=c.length-1;l>=0;--l)null!=c[l]&&-1!=="n?".indexOf(c[l].t)&&(T>=c[l].v.length-1?(T-=c[l].v.length,c[l].v=A.substr(T+1,c[l].v.length)):T<0?c[l].v="":(c[l].v=A.substr(0,T+1),T=-1),c[l].t="t",y=l);T>=0&&y=0;--l)if(null!=c[l]&&-1!=="n?".indexOf(c[l].t)){for(s=c[l].v.indexOf(".")>-1&&l===S?c[l].v.indexOf(".")-1:c[l].v.length-1,k=c[l].v.substr(s+1);s>=0;--s)T>=0&&("0"===c[l].v.charAt(s)||"#"===c[l].v.charAt(s))&&(k=A.charAt(T--)+k);c[l].v=k,c[l].t="t",y=l}for(T>=0&&y-1&&l===S?c[l].v.indexOf(".")+1:0,k=c[l].v.substr(0,s);s-1&&(w=a>1&&r<0&&l>0&&"-"===c[l-1].v?-r:r,c[l].v=me(c[l].t,c[l].v,w),c[l].t="t");var _="";for(l=0;l!==c.length;++l)null!=c[l]&&(_+=c[l].v);return _}(n[1],r,t,n[0])}function Ae(e,r){if("number"!=typeof r){r=+r||-1;for(var t=0;t<392;++t)if(void 0!=W[t]){if(W[t]==e){r=t;break}}else r<0&&(r=t);r<0&&(r=391)}return W[r]=e,r}function ke(){var e;e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "',W=e}var Se={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},ye=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;var _e=function(){var e={};e.version="1.2.0";var r=function(){for(var e=0,r=new Array(256),t=0;256!=t;++t)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=t)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,r[t]=e;return"undefined"!==typeof Int32Array?new Int32Array(r):r}();var t=function(e){var r=0,t=0,a=0,n="undefined"!==typeof Int32Array?new Int32Array(4096):new Array(4096);for(a=0;256!=a;++a)n[a]=e[a];for(a=0;256!=a;++a)for(t=e[a],r=256+a;r<4096;r+=256)t=n[r]=t>>>8^e[255&t];var s=[];for(a=1;16!=a;++a)s[a-1]="undefined"!==typeof Int32Array?n.subarray(256*a,256*a+256):n.slice(256*a,256*a+256);return s}(r),a=t[0],n=t[1],s=t[2],i=t[3],c=t[4],o=t[5],l=t[6],f=t[7],h=t[8],u=t[9],d=t[10],p=t[11],m=t[12],g=t[13],v=t[14];return e.table=r,e.bstr=function(e,t){for(var a=~t,n=0,s=e.length;n>>8^r[255&(a^e.charCodeAt(n++))];return~a},e.buf=function(e,t){for(var b=~t,T=e.length-15,E=0;E>8&255]^m[e[E++]^b>>16&255]^p[e[E++]^b>>>24]^d[e[E++]]^u[e[E++]]^h[e[E++]]^f[e[E++]]^l[e[E++]]^o[e[E++]]^c[e[E++]]^i[e[E++]]^s[e[E++]]^n[e[E++]]^a[e[E++]]^r[e[E++]];for(T+=15;E>>8^r[255&(b^e[E++])];return~b},e.str=function(e,t){for(var a=~t,n=0,s=e.length,i=0,c=0;n>>8^r[255&(a^i)]:i<2048?a=(a=a>>>8^r[255&(a^(192|i>>6&31))])>>>8^r[255&(a^(128|63&i))]:i>=55296&&i<57344?(i=64+(1023&i),c=1023&e.charCodeAt(n++),a=(a=(a=(a=a>>>8^r[255&(a^(240|i>>8&7))])>>>8^r[255&(a^(128|i>>2&63))])>>>8^r[255&(a^(128|c>>6&15|(3&i)<<4))])>>>8^r[255&(a^(128|63&c))]):a=(a=(a=a>>>8^r[255&(a^(224|i>>12&15))])>>>8^r[255&(a^(128|i>>6&63))])>>>8^r[255&(a^(128|63&i))];return~a},e}(),Ce=function(){var e,r={};function t(e){if("/"==e.charAt(e.length-1))return-1===e.slice(0,-1).indexOf("/")?e:t(e.slice(0,-1));var r=e.lastIndexOf("/");return-1===r?e:e.slice(0,r+1)}function n(e){if("/"==e.charAt(e.length-1))return n(e.slice(0,-1));var r=e.lastIndexOf("/");return-1===r?e:e.slice(r+1)}function s(e,r){"string"===typeof r&&(r=new Date(r));var t=r.getHours();t=(t=t<<6|r.getMinutes())<<5|r.getSeconds()>>>1,e.write_shift(2,t);var a=r.getFullYear()-1980;a=(a=a<<4|r.getMonth()+1)<<5|r.getDate(),e.write_shift(2,a)}function i(e){wt(e,0);for(var r={},t=0;e.l<=e.length-4;){var a=e.read_shift(2),n=e.read_shift(2),s=e.l+n,i={};if(21589===a)1&(t=e.read_shift(1))&&(i.mtime=e.read_shift(4)),n>5&&(2&t&&(i.atime=e.read_shift(4)),4&t&&(i.ctime=e.read_shift(4))),i.mtime&&(i.mt=new Date(1e3*i.mtime));e.l=s,r[a]=i}return r}function c(){return e||(e={})}function o(e,r){if(80==e[0]&&75==e[1])return pe(e,r);if(109==(32|e[0])&&105==(32|e[1]))return function(e,r){if("mime-version:"!=D(e.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var t=r&&r.root||"",n=(k&&a.isBuffer(e)?e.toString("binary"):D(e)).split("\r\n"),s=0,i="";for(s=0;s0&&(t=(t=t.slice(0,t.length-1)).slice(0,t.lastIndexOf("/")+1),i.slice(0,t.length)!=t););var c=(n[1]||"").match(/boundary="(.*?)"/);if(!c)throw new Error("MAD cannot find boundary");var o="--"+(c[1]||""),l=[],f=[],h={FileIndex:l,FullPaths:f};d(h);var u,p=0;for(s=0;s=n&&(u-=n),!i[u]){o=[];var p=[];for(h=u;h>=0;){p[h]=!0,i[h]=!0,c[c.length]=h,o.push(e[h]);var m=t[Math.floor(4*h/a)];if(a<4+(d=4*h&l))throw new Error("FAT boundary crossed: "+h+" 4 "+a);if(!e[m])break;if(p[h=dt(e[m],d)])break}s[u]={nodes:c,data:Wr([o])}}return s}(y,i,m,p);_[i].name="!Directory",n>0&&c!==b&&(_[c].name="!MiniFAT"),_[m[0]].name="!FAT",_.fat_addrs=m,_.ssz=p;var C=[],R=[],O=[];!function(e,r,t,a,n,s,i,c){for(var o,f=0,d=a.length?2:0,p=r[e].data,m=0,g=0;m0&&f!==b&&(r[f].name="!StreamData")):T.size>=4096?(T.storage="fat",void 0===r[T.start]&&(r[T.start]=h(t,T.start,r.fat_addrs,r.ssz)),r[T.start].name=T.name,T.content=r[T.start].data.slice(0,T.size)):(T.storage="minifat",T.size<0?T.size=0:f!==b&&T.start!==b&&r[f]&&(T.content=l(T,r[f].data,(r[c]||{}).data))),T.content&&wt(T.content,0),s[o]=T,i.push(T)}}(i,_,y,C,n,{},R,c),function(e,r,t){for(var a=0,n=0,s=0,i=0,c=0,o=t.length,l=[],f=[];a0&&i>=0;)s.push(r.slice(i*v,i*v+v)),n-=v,i=dt(t,4*i);return 0===s.length?kt(0):x(s).slice(0,e.size)}function f(e,r,t,a,n){var s=b;if(e===b){if(0!==r)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var i=t[e],c=(a>>>2)-1;if(!i)return;for(var o=0;o=0;){n[o]=!0,s[s.length]=o,i.push(e[o]);var f=t[Math.floor(4*o/a)];if(a<4+(l=4*o&c))throw new Error("FAT boundary crossed: "+o+" 4 "+a);if(!e[f])break;o=dt(e[f],l)}return{nodes:s,data:Wr([i])}}function u(e,r){return new Date(1e3*(ut(e,r+4)/1e7*Math.pow(2,32)+ut(e,r)/1e7-11644473600))}function d(e,r){var t=r||{},a=t.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=a+"/",e.FileIndex[0]={name:a,type:5}),t.CLSID&&(e.FileIndex[0].clsid=t.CLSID),function(e){var r="\x01Sh33tJ5";if(Ce.find(e,"/"+r))return;var t=kt(4);t[0]=55,t[1]=t[3]=50,t[2]=54,e.FileIndex.push({name:r,type:2,content:t,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+r),p(e)}(e)}function p(e,r){d(e);for(var a=!1,s=!1,i=e.FullPaths.length-1;i>=0;--i){var c=e.FileIndex[i];switch(c.type){case 0:s?a=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:s=!0,isNaN(c.R*c.L*c.C)&&(a=!0),c.R>-1&&c.L>-1&&c.R==c.L&&(a=!0);break;default:a=!0}}if(a||r){var o=new Date(1987,1,19),l=0,f=Object.create?Object.create(null):{},h=[];for(i=0;i1?1:-1,p.size=0,p.type=5;else if("/"==m.slice(-1)){for(l=i+1;l=h.length?-1:l,l=i+1;l=h.length?-1:l,p.type=1}else t(e.FullPaths[i+1]||"")==t(m)&&(p.R=i+1),p.type=2}}}function m(e,r){var t=r||{};if("mad"==t.fileType)return function(e,r){for(var t=r||{},n=t.boundary||"SheetJS",s=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(n="------="+n).slice(2)+'"',"","",""],i=e.FullPaths[0],c=i,o=e.FileIndex[0],l=1;l=32&&p<128&&++u;var g=u>=4*d/5;s.push(n),s.push("Content-Location: "+(t.root||"file:///C:/SheetJS/")+c),s.push("Content-Transfer-Encoding: "+(g?"quoted-printable":"base64")),s.push("Content-Type: "+ve(o,c)),s.push(""),s.push(g?Te(h):be(h))}return s.push(n+"--\r\n"),s.join("\r\n")}(e,t);if(p(e),"zip"===t.fileType)return function(e,r){var t=r||{},a=[],n=[],i=kt(1),c=t.compression?8:0,o=0;0;var l=0,f=0,h=0,u=0,d=e.FullPaths[0],p=d,m=e.FileIndex[0],g=[],v=0;for(l=1;l0&&(s<4096?r+=s+63>>6:t+=s+511>>9)}}for(var i=e.FullPaths.length+3>>2,c=r+127>>7,o=(r+7>>3)+t+i+c,l=o+127>>7,f=l<=109?0:Math.ceil((l-109)/127);o+l+f+127>>7>l;)f=++l<=109?0:Math.ceil((l-109)/127);var h=[1,f,l,c,i,t,r,0];return e.FileIndex[0].size=r<<6,h[7]=(e.FileIndex[0].start=h[0]+h[1]+h[2]+h[3]+h[4]+h[5])+(h[6]+7>>3),h}(e),i=kt(n[7]<<9),c=0,o=0;for(c=0;c<8;++c)i.write_shift(1,E[c]);for(c=0;c<8;++c)i.write_shift(2,0);for(i.write_shift(2,62),i.write_shift(2,3),i.write_shift(2,65534),i.write_shift(2,9),i.write_shift(2,6),c=0;c<3;++c)i.write_shift(2,0);for(i.write_shift(4,0),i.write_shift(4,n[2]),i.write_shift(4,n[0]+n[1]+n[2]+n[3]-1),i.write_shift(4,0),i.write_shift(4,4096),i.write_shift(4,n[3]?n[0]+n[1]+n[2]-1:b),i.write_shift(4,n[3]),i.write_shift(-4,n[1]?n[0]-1:b),i.write_shift(4,n[1]),c=0;c<109;++c)i.write_shift(-4,c>9)));for(l(n[6]+7>>3);511&i.l;)i.write_shift(-4,O.ENDOFCHAIN);for(o=c=0,f=0;f=4096||(u.start=o,l(h+63>>6)));for(;511&i.l;)i.write_shift(-4,O.ENDOFCHAIN);for(c=0;c=4096)if(i.l=u.start+1<<9,k&&a.isBuffer(u.content))u.content.copy(i,i.l,0,u.size),i.l+=u.size+511&-512;else{for(f=0;f0&&u.size<4096)if(k&&a.isBuffer(u.content))u.content.copy(i,i.l,0,u.size),i.l+=u.size+63&-64;else{for(f=0;f>16|r>>8|r)}for(var B="undefined"!==typeof Uint8Array,H=B?new Uint8Array(256):[],z=0;z<256;++z)H[z]=U(z);function W(e,r){var t=H[255&e];return r<=8?t>>>8-r:(t=t<<8|H[e>>8&255],r<=16?t>>>16-r:(t=t<<8|H[e>>16&255])>>>24-r)}function V(e,r){var t=7&r,a=r>>>3;return(e[a]|(t<=6?0:e[a+1]<<8))>>>t&3}function G(e,r){var t=7&r,a=r>>>3;return(e[a]|(t<=5?0:e[a+1]<<8))>>>t&7}function $(e,r){var t=7&r,a=r>>>3;return(e[a]|(t<=3?0:e[a+1]<<8))>>>t&31}function j(e,r){var t=7&r,a=r>>>3;return(e[a]|(t<=1?0:e[a+1]<<8))>>>t&127}function X(e,r,t){var a=7&r,n=r>>>3,s=(1<>>a;return t<8-a?i&s:(i|=e[n+1]<<8-a,t<16-a?i&s:(i|=e[n+2]<<16-a,t<24-a?i&s:(i|=e[n+3]<<24-a)&s))}function K(e,r,t){var a=7&r,n=r>>>3;return a<=5?e[n]|=(7&t)<>8-a),r+3}function Y(e,r,t){return t=(1&t)<<(7&r),e[r>>>3]|=t,r+1}function J(e,r,t){var a=r>>>3;return t<<=7&r,e[a]|=255&t,t>>>=8,e[a+1]=t,r+8}function q(e,r,t){var a=r>>>3;return t<<=7&r,e[a]|=255&t,t>>>=8,e[a+1]=255&t,e[a+2]=t>>>8,r+16}function Z(e,r){var t=e.length,a=2*t>r?2*t:r+5,n=0;if(t>=r)return e;if(k){var s=_(a);if(e.copy)e.copy(s);else for(;n>a-h,i=(1<=0;--i)r[c|i<0;)r[r.l++]=e[t++]}return r.l}(r,t):function(r,t){for(var n=0,s=0,i=B?new Uint16Array(32768):[];s0;)t[t.l++]=r[s++];n=8*t.l}else{n=K(t,n,+!(s+c!=r.length)+2);for(var o=0;c-- >0;){var l=r[s],f=-1,h=0;if((f=i[o=32767&(o<<5^l)])&&((f|=-32768&s)>s&&(f-=32768),f2){(l=a[h])<=22?n=J(t,n,H[l+1]>>1)-1:(J(t,n,3),J(t,n+=5,H[l-23]>>5),n+=3);var u=l<8?0:l-4>>2;u>0&&(q(t,n,h-P[l]),n+=u),l=e[s-f],n=J(t,n,H[l]>>3),n-=3;var d=l<4?0:l-2>>1;d>0&&(q(t,n,s-f-M[l]),n+=d);for(var p=0;p>>3;return(e[a]|(t<=4?0:e[a+1]<<8))>>>t&15}(e,r+=5)+4;r+=4;for(var s=0,i=B?new Uint8Array(19):Q(19),c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],o=1,l=B?new Uint8Array(8):Q(8),f=B?new Uint8Array(8):Q(8),h=i.length,u=0;u>8-p;for(var m=(1<<7-p)-1;m>=0;--m)oe[d|m<>>=3){case 16:for(s=3+V(e,r),r+=2,d=g[g.length-1];s-- >0;)g.push(d);break;case 17:for(s=3+G(e,r),r+=3;s-- >0;)g.push(0);break;case 18:for(s=11+j(e,r),r+=7;s-- >0;)g.push(0);break;default:g.push(d),o>>0,c=0,o=0;0==(1&a);)if(a=G(e,t),t+=3,a>>>1!=0)for(a>>1==1?(c=9,o=5):(t=he(e,t),c=le,o=fe);;){!r&&i>>1==1?re[l]:ie[l];if(t+=15&f,0===((f>>>=4)>>>8&255))n[s++]=f;else{if(256==f)break;var h=(f-=257)<8?0:f-4>>2;h>5&&(h=0);var u=s+P[f];h>0&&(u+=X(e,t,h),t+=h),l=X(e,t,o),t+=15&(f=a>>>1==1?te[l]:ce[l]);var d=(f>>>=4)<4?0:f-2>>1,p=M[f];for(d>0&&(p+=X(e,t,d),t+=d),!r&&i>>3]|e[1+(t>>>3)]<<8;if(t+=32,m>0)for(!r&&i0;)n[s++]=e[t>>>3],t+=8}return r?[n,t+7>>>3]:[n.slice(0,s),t+7>>>3]}(e.slice(e.l||0),r);return e.l+=t[1],t[0]}function de(e,r){if(!e)throw new Error(r);"undefined"!==typeof console&&console.error(r)}function pe(e,r){var t=e;wt(t,0);var a={FileIndex:[],FullPaths:[]};d(a,{root:r.root});for(var n=t.length-4;(80!=t[n]||75!=t[n+1]||5!=t[n+2]||6!=t[n+3])&&n>=0;)--n;t.l=n+4,t.l+=4;var s=t.read_shift(2);t.l+=6;var c=t.read_shift(4);for(t.l=c,n=0;n>>=5);t>>>=4,a.setMilliseconds(0),a.setFullYear(t+1980),a.setMonth(s-1),a.setDate(n);var i=31&r,c=63&(r>>>=5);return r>>>=6,a.setHours(r),a.setMinutes(c),a.setSeconds(i<<1),a}(e);if(8257&s)throw new Error("Unsupported ZIP encryption");e.read_shift(4);for(var l=e.read_shift(4),f=e.read_shift(4),h=e.read_shift(2),u=e.read_shift(2),d="",p=0;p3&&(a=!0),n[s].slice(n[s].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+n[s].slice(n[s].length-1));case"D":t*=24;case"H":t*=60;case"M":if(!a)throw new Error("Unsupported ISO Duration Field: M");t*=60}r+=t*parseInt(n[s],10)}return r}var Ue=new Date("2017-02-19T19:06:09.000Z"),Be=isNaN(Ue.getFullYear())?new Date("2/19/17"):Ue,He=2017==Be.getFullYear();function ze(e,r){var t=new Date(e);if(He)return r>0?t.setTime(t.getTime()+60*t.getTimezoneOffset()*1e3):r<0&&t.setTime(t.getTime()-60*t.getTimezoneOffset()*1e3),t;if(e instanceof Date)return e;if(1917==Be.getFullYear()&&!isNaN(t.getFullYear())){var a=t.getFullYear();return e.indexOf(""+a)>-1||t.setFullYear(t.getFullYear()+100),t}var n=e.match(/\d+/g)||["2017","2","19","0","0","0"],s=new Date(+n[0],+n[1]-1,+n[2],+n[3]||0,+n[4]||0,+n[5]||0);return e.indexOf("Z")>-1&&(s=new Date(s.getTime()-60*s.getTimezoneOffset()*1e3)),s}function We(e,r){if(k&&a.isBuffer(e)){if(r){if(255==e[0]&&254==e[1])return Cr(e.slice(2).toString("utf16le"));if(254==e[1]&&255==e[2])return Cr(p(e.slice(2).toString("binary")))}return e.toString("binary")}if("undefined"!==typeof TextDecoder)try{if(r){if(255==e[0]&&254==e[1])return Cr(new TextDecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return Cr(new TextDecoder("utf-16be").decode(e.slice(2)))}var t={"\u20ac":"\x80","\u201a":"\x82","\u0192":"\x83","\u201e":"\x84","\u2026":"\x85","\u2020":"\x86","\u2021":"\x87","\u02c6":"\x88","\u2030":"\x89","\u0160":"\x8a","\u2039":"\x8b","\u0152":"\x8c","\u017d":"\x8e","\u2018":"\x91","\u2019":"\x92","\u201c":"\x93","\u201d":"\x94","\u2022":"\x95","\u2013":"\x96","\u2014":"\x97","\u02dc":"\x98","\u2122":"\x99","\u0161":"\x9a","\u203a":"\x9b","\u0153":"\x9c","\u017e":"\x9e","\u0178":"\x9f"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[\u20ac\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\u017d\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\u017e\u0178]/g,(function(e){return t[e]||e}))}catch(i){}for(var n=[],s=0;s!=e.length;++s)n.push(String.fromCharCode(e[s]));return n.join("")}function Ve(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=Ve(e[t]));return r}function Ge(e,r){for(var t="";t.length3&&-1==je.indexOf(i))return t}else if(i.match(/[a-z]/))return t;return a<0||a>8099?t:(n>0||s>1)&&101!=a?r:e.match(/[^-0-9:,\/\\]/)?t:r}var Ke=function(){var e=5=="abacaba".split(/(:?b)/i).length;return function(r,t,a){if(e||"string"==typeof t)return r.split(t);for(var n=r.split(t),s=[n[0]],i=1;i>6&31,n[t++]=128|63&i;else if(i>=55296&&i<57344){i=64+(1023&i);var c=1023&e.charCodeAt(++s);n[t++]=240|i>>8&7,n[t++]=128|i>>2&63,n[t++]=128|c>>6&15|(3&i)<<4,n[t++]=128|63&c}else n[t++]=224|i>>12&15,n[t++]=128|i>>6&63,n[t++]=128|63&i;t>a&&(r.push(n.slice(0,t)),t=0,n=y(65535),a=65530)}return r.push(n.slice(0,t)),x(r)}(t),Ce.utils.cfb_add(e,r,a);Ce.utils.cfb_add(e,r,t)}else e.file(r,t)}function nr(e,r){switch(r.type){case"base64":return Ce.read(e,{type:"base64"});case"binary":return Ce.read(e,{type:"binary"});case"buffer":case"array":return Ce.read(e,{type:"buffer"})}throw new Error("Unrecognized type "+r.type)}function sr(e,r){if("/"==e.charAt(0))return e.slice(1);var t=r.split("/");"/"!=r.slice(-1)&&t.pop();for(var a=e.split("/");0!==a.length;){var n=a.shift();".."===n?t.pop():"."!==n&&t.push(n)}return t.join("/")}var ir='\r\n',cr=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,or=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,lr=ir.match(or)?or:/<[^>]*>/g,fr=/<\w*:/,hr=/<(\/?)\w+:/;function ur(e,r,t){for(var a={},n=0,s=0;n!==e.length&&(32!==(s=e.charCodeAt(n))&&10!==s&&13!==s);++n);if(r||(a[0]=e.slice(0,n)),n===e.length)return a;var i=e.match(cr),c=0,o="",l=0,f="",h="",u=1;if(i)for(l=0;l!=i.length;++l){for(h=i[l],s=0;s!=h.length&&61!==h.charCodeAt(s);++s);for(f=h.slice(0,s).trim();32==h.charCodeAt(s+1);)++s;for(u=34==(n=h.charCodeAt(s+1))||39==n?1:0,o=h.slice(s+1+u,h.length-u),c=0;c!=f.length&&58!==f.charCodeAt(c);++c);if(c===f.length)f.indexOf("_")>0&&(f=f.slice(0,f.indexOf("_"))),a[f]=o,t||(a[f.toLowerCase()]=o);else{var d=(5===c&&"xmlns"===f.slice(0,5)?"xmlns":"")+f.slice(c+1);if(a[d]&&"ext"==f.slice(c-3,c))continue;a[d]=o,t||(a[d.toLowerCase()]=o)}}return a}function dr(e){return e.replace(hr,"<$1")}var pr={""":'"',"'":"'",">":">","<":"<","&":"&"},mr=xe(pr),gr=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,r=/_x([\da-fA-F]{4})_/gi;return function t(a){var n=a+"",s=n.indexOf("-1?16:10))||e})).replace(r,(function(e,r){return String.fromCharCode(parseInt(r,16))}));var i=n.indexOf("]]>");return t(n.slice(0,s))+n.slice(s+9,i)+t(n.slice(i+3))}}(),vr=/[&<>'"]/g;var br=/[\u0000-\u001f]/g;function Tr(e){return(e+"").replace(vr,(function(e){return mr[e]})).replace(/\n/g,"
").replace(br,(function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"}))}var Er=function(){var e=/&#(\d+);/g;function r(e,r){return String.fromCharCode(parseInt(r,10))}return function(t){return t.replace(e,r)}}();function wr(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Ar(e){for(var r="",t=0,a=0,n=0,s=0,i=0,c=0;t191&&a<224?(i=(31&a)<<6,i|=63&n,r+=String.fromCharCode(i)):(s=e.charCodeAt(t++),a<240?r+=String.fromCharCode((15&a)<<12|(63&n)<<6|63&s):(c=((7&a)<<18|(63&n)<<12|(63&s)<<6|63&(i=e.charCodeAt(t++)))-65536,r+=String.fromCharCode(55296+(c>>>10&1023)),r+=String.fromCharCode(56320+(1023&c)))));return r}function kr(e){var r,t,a,n=y(2*e.length),s=1,i=0,c=0;for(t=0;t>>10&1023),r=56320+(1023&r)),0!==c&&(n[i++]=255&c,n[i++]=c>>>8,c=0),n[i++]=r%256,n[i++]=r>>>8;return n.slice(0,i).toString("ucs2")}function Sr(e){return S(e,"binary").toString("utf8")}var yr="foo bar baz\xe2\x98\x83\xf0\x9f\x8d\xa3",_r=k&&(Sr(yr)==Ar(yr)&&Sr||kr(yr)==Ar(yr)&&kr)||Ar,Cr=k?function(e){return S(e,"utf8").toString("binary")}:function(e){for(var r=[],t=0,a=0,n=0;t>6))),r.push(String.fromCharCode(128+(63&a)));break;case a>=55296&&a<57344:a-=55296,n=e.charCodeAt(t++)-56320+(a<<10),r.push(String.fromCharCode(240+(n>>18&7))),r.push(String.fromCharCode(144+(n>>12&63))),r.push(String.fromCharCode(128+(n>>6&63))),r.push(String.fromCharCode(128+(63&n)));break;default:r.push(String.fromCharCode(224+(a>>12))),r.push(String.fromCharCode(128+(a>>6&63))),r.push(String.fromCharCode(128+(63&a)))}return r.join("")},Rr=function(){var e={};return function(r,t){var a=r+"|"+(t||"");return e[a]?e[a]:e[a]=new RegExp("<(?:\\w+:)?"+r+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)",t||"")}}(),Or=function(){var e=[["nbsp"," "],["middot","\xb7"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(r){for(var t=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,"\n").replace(/<[^>]*>/g,""),a=0;a([\\s\\S]*?)","g")}}(),Ir=/<\/?(?:vt:)?variant>/g,Nr=/<(?:vt:)([^>]*)>([\s\S]*)"+r+""}function Mr(e){if(k&&a.isBuffer(e))return e.toString("utf8");if("string"===typeof e)return e;if("undefined"!==typeof Uint8Array&&e instanceof Uint8Array)return _r(R(O(e)));throw new Error("Bad input format: expected Buffer or string")}var Ur=/<(\/?)([^\s?>:\/]+)(?:[\s?:\/][^>]*)?>/gm,Br={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Hr=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];var zr=function(e){for(var r=[],t=0;t0&&a.isBuffer(e[0][0])?a.concat(e[0].map((function(e){return a.isBuffer(e)?e:S(e)}))):zr(e)}:zr,Vr=function(e,r,t){for(var a=[],n=r;n0?Kr(e,r+4,r+4+t-1):""},Jr=Yr,qr=function(e,r){var t=ut(e,r);return t>0?Kr(e,r+4,r+4+t-1):""},Zr=qr,Qr=function(e,r){var t=2*ut(e,r);return t>0?Kr(e,r+4,r+4+t-1):""},et=Qr,rt=function(e,r){var t=ut(e,r);return t>0?Gr(e,r+4,r+4+t):""},tt=rt,at=function(e,r){var t=ut(e,r);return t>0?Kr(e,r+4,r+4+t):""},nt=at,st=function(e,r){return function(e,r){for(var t=1-2*(e[r+7]>>>7),a=((127&e[r+7])<<4)+(e[r+6]>>>4&15),n=15&e[r+6],s=5;s>=0;--s)n=256*n+e[r+s];return 2047==a?0==n?t*(1/0):NaN:(0==a?a=-1022:(a-=1023,n+=Math.pow(2,52)),t*Math.pow(2,a-52)*n)}(e,r)},it=st,ct=function(e){return Array.isArray(e)||"undefined"!==typeof Uint8Array&&e instanceof Uint8Array};function ot(){Gr=function(e,r,t){return m.utils.decode(1200,e.slice(r,t)).replace(I,"")},Kr=function(e,r,t){return m.utils.decode(65001,e.slice(r,t))},Jr=function(e,r){var t=ut(e,r);return t>0?m.utils.decode(c,e.slice(r+4,r+4+t-1)):""},Zr=function(e,r){var t=ut(e,r);return t>0?m.utils.decode(i,e.slice(r+4,r+4+t-1)):""},et=function(e,r){var t=2*ut(e,r);return t>0?m.utils.decode(1200,e.slice(r+4,r+4+t-1)):""},tt=function(e,r){var t=ut(e,r);return t>0?m.utils.decode(1200,e.slice(r+4,r+4+t)):""},nt=function(e,r){var t=ut(e,r);return t>0?m.utils.decode(65001,e.slice(r+4,r+4+t)):""}}k&&(Jr=function(e,r){if(!a.isBuffer(e))return Yr(e,r);var t=e.readUInt32LE(r);return t>0?e.toString("utf8",r+4,r+4+t-1):""},Zr=function(e,r){if(!a.isBuffer(e))return qr(e,r);var t=e.readUInt32LE(r);return t>0?e.toString("utf8",r+4,r+4+t-1):""},et=function(e,r){if(!a.isBuffer(e))return Qr(e,r);var t=2*e.readUInt32LE(r);return e.toString("utf16le",r+4,r+4+t-1)},tt=function(e,r){if(!a.isBuffer(e))return rt(e,r);var t=e.readUInt32LE(r);return e.toString("utf16le",r+4,r+4+t)},nt=function(e,r){if(!a.isBuffer(e))return at(e,r);var t=e.readUInt32LE(r);return e.toString("utf8",r+4,r+4+t)},it=function(e,r){return a.isBuffer(e)?e.readDoubleLE(r):st(e,r)},ct=function(e){return a.isBuffer(e)||Array.isArray(e)||"undefined"!==typeof Uint8Array&&e instanceof Uint8Array}),"undefined"!==typeof m&&ot();var lt=function(e,r){return e[r]},ft=function(e,r){return 256*e[r+1]+e[r]},ht=function(e,r){var t=256*e[r+1]+e[r];return t<32768?t:-1*(65535-t+1)},ut=function(e,r){return e[r+3]*(1<<24)+(e[r+2]<<16)+(e[r+1]<<8)+e[r]},dt=function(e,r){return e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]},pt=function(e,r){return e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]};function mt(e,r){var t,n,s,c,o,l,f="",h=[];switch(r){case"dbcs":if(l=this.l,k&&a.isBuffer(this))f=this.slice(this.l,this.l+2*e).toString("utf16le");else for(o=0;o0?dt:pt)(this,this.l),this.l+=4,t):(n=ut(this,this.l),this.l+=4,n);case 8:case-8:if("f"===r)return n=8==e?it(this,this.l):it([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,n;e=8;case 16:f=jr(this,this.l,e)}}return this.l+=e,f}var gt=function(e,r,t){e[t]=255&r,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24&255},vt=function(e,r,t){e[t]=255&r,e[t+1]=r>>8&255,e[t+2]=r>>16&255,e[t+3]=r>>24&255},bt=function(e,r,t){e[t]=255&r,e[t+1]=r>>>8&255};function Tt(e,r,t){var a=0,n=0;if("dbcs"===t){for(n=0;n!=r.length;++n)bt(this,r.charCodeAt(n),this.l+2*n);a=2*r.length}else if("sbcs"===t){if("undefined"!==typeof m&&874==c)for(n=0;n!=r.length;++n){var s=m.utils.encode(c,r.charAt(n));this[this.l+n]=s[0]}else for(r=r.replace(/[^\x00-\x7F]/g,"_"),n=0;n!=r.length;++n)this[this.l+n]=255&r.charCodeAt(n);a=r.length}else{if("hex"===t){for(;n>8}for(;this.l>>=8,this[this.l+1]=255&r;break;case 3:a=3,this[this.l]=255&r,r>>>=8,this[this.l+1]=255&r,r>>>=8,this[this.l+2]=255&r;break;case 4:a=4,gt(this,r,this.l);break;case 8:if(a=8,"f"===t){!function(e,r,t){var a=(r<0||1/r==-1/0?1:0)<<7,n=0,s=0,i=a?-r:r;isFinite(i)?0==i?n=s=0:(n=Math.floor(Math.log(i)/Math.LN2),s=i*Math.pow(2,52-n),n<=-1023&&(!isFinite(s)||s>4|a}(this,r,this.l);break}case 16:break;case-4:a=4,vt(this,r,this.l)}}return this.l+=a,this}function Et(e,r){var t=jr(this,this.l,e.length>>1);if(t!==e)throw new Error(r+"Expected "+e+" saw "+t);this.l+=e.length>>1}function wt(e,r){e.l=r,e.read_shift=mt,e.chk=Et,e.write_shift=Tt}function At(e,r){e.l+=r}function kt(e){var r=y(e);return wt(r,0),r}function St(e,r,t){if(e){var a,n,s;wt(e,e.l||0);for(var i=e.length,c=0,o=0;e.la.l&&((a=a.slice(0,a.l)).l=a.length),a.length>0&&e.push(a),a=null)},s=function(e){return a&&e=256;)a.c-=256;for(;a.r>=65536;)a.r-=65536}return a}function Ct(e,r,t){var a=Ve(e);return a.s=_t(a.s,r.s,t),a.e=_t(a.e,r.s,t),a}function Rt(e,r){if(e.cRel&&e.c<0)for(e=Ve(e);e.c<0;)e.c+=r>8?16384:256;if(e.rRel&&e.r<0)for(e=Ve(e);e.r<0;)e.r+=r>8?1048576:r>5?65536:16384;var t=Lt(e);return e.cRel||null==e.cRel||(t=t.replace(/^([A-Z])/,"$$$1")),e.rRel||null==e.rRel||(t=function(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(t)),t}function Ot(e,r){return 0!=e.s.r||e.s.rRel||e.e.r!=(r.biff>=12?1048575:r.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(r.biff>=12?16383:255)||e.e.cRel?Rt(e.s,r.biff)+":"+Rt(e.e,r.biff):(e.s.rRel?"":"$")+It(e.s.r)+":"+(e.e.rRel?"":"$")+It(e.e.r):(e.s.cRel?"":"$")+Dt(e.s.c)+":"+(e.e.cRel?"":"$")+Dt(e.e.c)}function xt(e){return parseInt(e.replace(/\$(\d+)$/,"$1"),10)-1}function It(e){return""+(e+1)}function Nt(e){for(var r=e.replace(/^\$([A-Z])/,"$1"),t=0,a=0;a!==r.length;++a)t=26*t+r.charCodeAt(a)-64;return t-1}function Dt(e){if(e<0)throw new Error("invalid column "+e);var r="";for(++e;e;e=Math.floor((e-1)/26))r=String.fromCharCode((e-1)%26+65)+r;return r}function Ft(e){for(var r=0,t=0,a=0;a=48&&n<=57?r=10*r+(n-48):n>=65&&n<=90&&(t=26*t+(n-64))}return{c:t-1,r:r-1}}function Lt(e){for(var r=e.c+1,t="";r;r=(r-1)/26|0)t=String.fromCharCode((r-1)%26+65)+t;return t+(e.r+1)}function Pt(e){var r=e.indexOf(":");return-1==r?{s:Ft(e),e:Ft(e)}:{s:Ft(e.slice(0,r)),e:Ft(e.slice(r+1))}}function Mt(e,r){return"undefined"===typeof r||"number"===typeof r?Mt(e.s,e.e):("string"!==typeof e&&(e=Lt(e)),"string"!==typeof r&&(r=Lt(r)),e==r?e:e+":"+r)}function Ut(e){var r={s:{c:0,r:0},e:{c:0,r:0}},t=0,a=0,n=0,s=e.length;for(t=0;a26);++a)t=26*t+n;for(r.s.c=--t,t=0;a9);++a)t=10*t+n;if(r.s.r=--t,a===s||10!=n)return r.e.c=r.s.c,r.e.r=r.s.r,r;for(++a,t=0;a!=s&&!((n=e.charCodeAt(a)-64)<1||n>26);++a)t=26*t+n;for(r.e.c=--t,t=0;a!=s&&!((n=e.charCodeAt(a)-48)<0||n>9);++a)t=10*t+n;return r.e.r=--t,r}function Bt(e,r){var t="d"==e.t&&r instanceof Date;if(null!=e.z)try{return e.w=we(e.z,t?Ne(r):r)}catch(a){}try{return e.w=we((e.XF||{}).numFmtId||(t?14:0),t?Ne(r):r)}catch(a){return""+r}}function Ht(e,r,t){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&t&&t.dateNF&&(e.z=t.dateNF),"e"==e.t?va[e.v]||e.v:Bt(e,void 0==r?e.v:r))}function zt(e,r){var t=r&&r.sheet?r.sheet:"Sheet1",a={};return a[t]=e,{SheetNames:[t],Sheets:a}}function Wt(e,r,t){var a=t||{},n=e?Array.isArray(e):a.dense;null!=T&&null==n&&(n=T);var s=e||(n?[]:{}),i=0,c=0;if(s&&null!=a.origin){if("number"==typeof a.origin)i=a.origin;else{var o="string"==typeof a.origin?Ft(a.origin):a.origin;i=o.r,c=o.c}s["!ref"]||(s["!ref"]="A1:A1")}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(s["!ref"]){var f=Ut(s["!ref"]);l.s.c=f.s.c,l.s.r=f.s.r,l.e.c=Math.max(l.e.c,f.e.c),l.e.r=Math.max(l.e.r,f.e.r),-1==i&&(l.e.r=i=f.e.r+1)}for(var h=0;h!=r.length;++h)if(r[h]){if(!Array.isArray(r[h]))throw new Error("aoa_to_sheet expects an array of arrays");for(var u=0;u!=r[h].length;++u)if("undefined"!==typeof r[h][u]){var d={v:r[h][u]},p=i+h,m=c+u;if(l.s.r>p&&(l.s.r=p),l.s.c>m&&(l.s.c=m),l.e.r>2;return t?n/100:n}function ra(e){var r={s:{},e:{}};return r.s.r=e.read_shift(4),r.e.r=e.read_shift(4),r.s.c=e.read_shift(4),r.e.c=e.read_shift(4),r}var ta=ra;function aa(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function na(e,r){var t=e.read_shift(4);switch(t){case 0:return"";case 4294967295:case 4294967294:return{2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"}[e.read_shift(4)]||""}if(t>400)throw new Error("Unsupported Clipboard: "+t.toString(16));return e.l-=4,e.read_shift(0,1==r?"lpstr":"lpwstr")}var sa=2,ia=3,ca=12,oa=80,la=81,fa=[oa,la],ha={1:{n:"CodePage",t:sa},2:{n:"Category",t:oa},3:{n:"PresentationFormat",t:oa},4:{n:"ByteCount",t:ia},5:{n:"LineCount",t:ia},6:{n:"ParagraphCount",t:ia},7:{n:"SlideCount",t:ia},8:{n:"NoteCount",t:ia},9:{n:"HiddenCount",t:ia},10:{n:"MultimediaClipCount",t:ia},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:oa},15:{n:"Company",t:oa},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:ia},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:ia,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:oa},27:{n:"ContentStatus",t:oa},28:{n:"Language",t:oa},29:{n:"Version",t:oa},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},ua={1:{n:"CodePage",t:sa},2:{n:"Title",t:oa},3:{n:"Subject",t:oa},4:{n:"Author",t:oa},5:{n:"Keywords",t:oa},6:{n:"Comments",t:oa},7:{n:"Template",t:oa},8:{n:"LastAuthor",t:oa},9:{n:"RevNumber",t:oa},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:ia},15:{n:"WordCount",t:ia},16:{n:"CharCount",t:ia},17:{n:"Thumbnail",t:71},18:{n:"Application",t:oa},19:{n:"DocSecurity",t:ia},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},da={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},pa=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function ma(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var ga=Ve(ma([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),va={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},ba={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Ta={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"};var Ea={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function wa(e){var r=e.lastIndexOf("/");return e.slice(0,r+1)+"_rels/"+e.slice(r+1)+".rels"}function Aa(e,r){var t={"!id":{}};if(!e)return t;"/"!==r.charAt(0)&&(r="/"+r);var a={};return(e.match(lr)||[]).forEach((function(e){var n=ur(e);if("]*>([\\s\\S]*?)")}return e}();function _a(e){var r={};e=_r(e);for(var t=0;t0&&(r[a[1]]=gr(n[1])),"date"===a[2]&&r[a[1]]&&(r[a[1]]=ze(r[a[1]]))}return r}var Ca=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];function Ra(e,r,t,a){var n=[];if("string"==typeof e)n=Dr(e,a);else for(var s=0;s0)for(var l=0;l!==n.length;l+=2){switch(o=+n[l+1].v,n[l].v){case"Worksheets":case"\u5de5\u4f5c\u8868":case"\u041b\u0438\u0441\u0442\u044b":case"\u0623\u0648\u0631\u0627\u0642 \u0627\u0644\u0639\u0645\u0644":case"\u30ef\u30fc\u30af\u30b7\u30fc\u30c8":case"\u05d2\u05dc\u05d9\u05d5\u05e0\u05d5\u05ea \u05e2\u05d1\u05d5\u05d3\u05d4":case"Arbeitsbl\xe4tter":case"\xc7al\u0131\u015fma Sayfalar\u0131":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de c\xe1lculo":case"Planilhas":case"Regneark":case"Hojas de c\xe1lculo":case"Werkbladen":t.Worksheets=o,t.SheetNames=i.slice(c,c+o);break;case"Named Ranges":case"Rangos con nombre":case"\u540d\u524d\u4ed8\u304d\u4e00\u89a7":case"Benannte Bereiche":case"Navngivne omr\xe5der":t.NamedRanges=o,t.DefinedNames=i.slice(c,c+o);break;case"Charts":case"Diagramme":t.Chartsheets=o,t.ChartNames=i.slice(c,c+o)}c+=o}}var Oa=/<[^>]+>[^<]*/g;var xa,Ia={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function Na(e,r,t){xa||(xa=xe(Ia)),e[r=xa[r]||r]=t}function Da(e){var r=e.read_shift(4),t=e.read_shift(4);return new Date(1e3*(t/1e7*Math.pow(2,32)+r/1e7-11644473600)).toISOString().replace(/\.000/,"")}function Fa(e,r,t){var a=e.l,n=e.read_shift(0,"lpstr-cp");if(t)for(;e.l-a&3;)++e.l;return n}function La(e,r,t){var a=e.read_shift(0,"lpwstr");return t&&(e.l+=4-(a.length+1&3)&3),a}function Pa(e,r,t){return 31===r?La(e):Fa(e,0,t)}function Ma(e,r,t){return Pa(e,r,!1===t?0:4)}function Ua(e){var r=e.l,t=za(e,la);return 0==e[e.l]&&0==e[e.l+1]&&e.l-r&2&&(e.l+=2),[t,za(e,ia)]}function Ba(e,r){for(var t=e.read_shift(4),a={},n=0;n!=t;++n){var s=e.read_shift(4),i=e.read_shift(4);a[s]=e.read_shift(i,1200===r?"utf16le":"utf8").replace(I,"").replace(N,"!"),1200===r&&i%2&&(e.l+=2)}return 3&e.l&&(e.l=e.l>>3<<2),a}function Ha(e){var r=e.read_shift(4),t=e.slice(e.l,e.l+r);return e.l+=r,(3&r)>0&&(e.l+=4-(3&r)&3),t}function za(e,r,t){var a,n=e.read_shift(2),s=t||{};if(e.l+=2,r!==ca&&n!==r&&-1===fa.indexOf(r)&&(4126!=(65534&r)||4126!=(65534&n)))throw new Error("Expected type "+r+" saw "+n);switch(r===ca?n:r){case 2:return a=e.read_shift(2,"i"),s.raw||(e.l+=2),a;case 3:return a=e.read_shift(4,"i");case 11:return 0!==e.read_shift(4);case 19:return a=e.read_shift(4);case 30:return Fa(e,0,4).replace(I,"");case 31:return La(e);case 64:return Da(e);case 65:return Ha(e);case 71:return function(e){var r={};return r.Size=e.read_shift(4),e.l+=r.Size+3-(r.Size-1)%4,r}(e);case 80:return Ma(e,n,!s.raw).replace(I,"");case 81:return function(e,r){if(!r)throw new Error("VtUnalignedString must have positive length");return Pa(e,r,0)}(e,n).replace(I,"");case 4108:return function(e){for(var r=e.read_shift(4),t=[],a=0;a0&&r)switch(r[s[i-1][0]].t){case 2:e.l+2===s[i][1]&&(e.l+=2,p=!1);break;case 80:case 4108:e.l<=s[i][1]&&(e.l=s[i][1],p=!1)}if((!r||0==i)&&e.l<=s[i][1]&&(p=!1,e.l=s[i][1]),p)throw new Error("Read Error: Expected address "+s[i][1]+" at "+e.l+" :"+i)}if(r){var m=r[s[i][0]];if(d[m.n]=za(e,m.t,{raw:!0}),"version"===m.p&&(d[m.n]=String(d[m.n]>>16)+"."+("0000"+String(65535&d[m.n])).slice(-4)),"CodePage"==m.n)switch(d[m.n]){case 0:d[m.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:h(c=d[m.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+d[m.n])}}else if(1===s[i][0]){if(c=d.CodePage=za(e,sa),h(c),-1!==o){var g=e.l;e.l=s[o][1],l=Ba(e,c),e.l=g}}else if(0===s[i][0]){if(0===c){o=i,e.l=s[i+1][1];continue}l=Ba(e,c)}else{var v,b=l[s[i][0]];switch(e[e.l]){case 65:e.l+=4,v=Ha(e);break;case 30:case 31:e.l+=4,v=Ma(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,v=e.read_shift(4,"i");break;case 19:e.l+=4,v=e.read_shift(4);break;case 5:e.l+=4,v=e.read_shift(8,"f");break;case 11:e.l+=4,v=$a(e,4);break;case 64:e.l+=4,v=ze(Da(e));break;default:throw new Error("unparsed value: "+e[e.l])}d[b]=v}}return e.l=t+a,d}function Va(e,r,t){var a=e.content;if(!a)return{};wt(a,0);var n,s,i,c,o=0;a.chk("feff","Byte Order: "),a.read_shift(2);var l=a.read_shift(4),f=a.read_shift(16);if(f!==Ce.utils.consts.HEADER_CLSID&&f!==t)throw new Error("Bad PropertySet CLSID "+f);if(1!==(n=a.read_shift(4))&&2!==n)throw new Error("Unrecognized #Sets: "+n);if(s=a.read_shift(16),c=a.read_shift(4),1===n&&c!==a.l)throw new Error("Length mismatch: "+c+" !== "+a.l);2===n&&(i=a.read_shift(16),o=a.read_shift(4));var h,u=Wa(a,r),d={SystemIdentifier:l};for(var p in u)d[p]=u[p];if(d.FMTID=s,1===n)return d;if(o-a.l==2&&(a.l+=2),a.l!==o)throw new Error("Length mismatch 2: "+a.l+" !== "+o);try{h=Wa(a,null)}catch(m){}for(p in h)d[p]=h[p];return d.FMTID=[s,i],d}function Ga(e,r){return e.read_shift(r),null}function $a(e,r){return 1===e.read_shift(r)}function ja(e){return e.read_shift(2,"u")}function Xa(e,r){return function(e,r,t){for(var a=[],n=e.l+r;e.l=12?2:1),n="sbcs-cont",s=i;(t&&t.biff>=8&&(i=1200),t&&8!=t.biff)?12==t.biff&&(n="wstr"):e.read_shift(1)&&(n="dbcs-cont");t.biff>=2&&t.biff<=5&&(n="cpstr");var c=a?e.read_shift(a,n):"";return i=s,c}function Ya(e){var r=i;i=1200;var t,a=e.read_shift(2),n=e.read_shift(1),s=4&n,c=8&n,o=1+(1&n),l=0,f={};c&&(l=e.read_shift(2)),s&&(t=e.read_shift(4));var h=2==o?"dbcs-cont":"sbcs-cont",u=0===a?"":e.read_shift(a,h);return c&&(e.l+=4*l),s&&(e.l+=t),f.t=u,c||(f.raw=""+f.t+"",f.r=f.t),i=r,f}function Ja(e,r,t){if(t){if(t.biff>=2&&t.biff<=5)return e.read_shift(r,"cpstr");if(t.biff>=12)return e.read_shift(r,"dbcs-cont")}return 0===e.read_shift(1)?e.read_shift(r,"sbcs-cont"):e.read_shift(r,"dbcs-cont")}function qa(e,r,t){var a=e.read_shift(t&&2==t.biff?1:2);return 0===a?(e.l++,""):Ja(e,a,t)}function Za(e,r,t){if(t.biff>5)return qa(e,0,t);var a=e.read_shift(1);return 0===a?(e.l++,""):e.read_shift(a,t.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function Qa(e,r){var t=e.read_shift(16);switch(t){case"e0c9ea79f9bace118c8200aa004ba90b":return function(e){var r=e.read_shift(4),t=e.l,a=!1;r>24&&(e.l+=r-24,"795881f43b1d7f48af2c825dc4852763"===e.read_shift(16)&&(a=!0),e.l=t);var n=e.read_shift((a?r-24:r)>>1,"utf16le").replace(I,"");return a&&(e.l+=24),n}(e);case"0303000000000000c000000000000046":return function(e){for(var r=e.read_shift(2),t="";r-- >0;)t+="../";var a=e.read_shift(0,"lpstr-ansi");if(e.l+=2,57005!=e.read_shift(2))throw new Error("Bad FileMoniker");if(0===e.read_shift(4))return t+a.replace(/\\/g,"/");var n=e.read_shift(4);if(3!=e.read_shift(2))throw new Error("Bad FileMoniker");return t+e.read_shift(n>>1,"utf16le").replace(I,"")}(e);default:throw new Error("Unsupported Moniker "+t)}}function en(e){var r=e.read_shift(4);return r>0?e.read_shift(r,"utf16le").replace(I,""):""}function rn(e){return[e.read_shift(1),e.read_shift(1),e.read_shift(1),e.read_shift(1)]}function tn(e,r){var t=rn(e);return t[3]=0,t}function an(e){return{r:e.read_shift(2),c:e.read_shift(2),ixfe:e.read_shift(2)}}function nn(e,r,t){var a=t.biff>8?4:2;return[e.read_shift(a),e.read_shift(a,"i"),e.read_shift(a,"i")]}function sn(e){return[e.read_shift(2),ea(e)]}function cn(e){var r=e.read_shift(2),t=e.read_shift(2);return{s:{c:e.read_shift(2),r:r},e:{c:e.read_shift(2),r:t}}}function on(e){var r=e.read_shift(2),t=e.read_shift(2);return{s:{c:e.read_shift(1),r:r},e:{c:e.read_shift(1),r:t}}}var ln=on;function fn(e){e.l+=4;var r=e.read_shift(2),t=e.read_shift(2),a=e.read_shift(2);return e.l+=12,[t,r,a]}function hn(e){e.l+=2,e.l+=e.read_shift(2)}var un={0:hn,4:hn,5:hn,6:hn,7:function(e){return e.l+=4,e.cf=e.read_shift(2),{}},8:hn,9:hn,10:hn,11:hn,12:hn,13:function(e){var r={};return e.l+=4,e.l+=16,r.fSharedNote=e.read_shift(2),e.l+=4,r},14:hn,15:hn,16:hn,17:hn,18:hn,19:hn,20:hn,21:fn};function dn(e,r){var t={BIFFVer:0,dt:0};switch(t.BIFFVer=e.read_shift(2),(r-=2)>=2&&(t.dt=e.read_shift(2),e.l-=2),t.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(r>6)throw new Error("Unexpected BIFF Ver "+t.BIFFVer)}return e.read_shift(r),t}function pn(e,r,t){var a=0;t&&2==t.biff||(a=e.read_shift(2));var n=e.read_shift(2);return t&&2==t.biff&&(a=1-(n>>15),n&=32767),[{Unsynced:1&a,DyZero:(2&a)>>1,ExAsc:(4&a)>>2,ExDsc:(8&a)>>3},n]}var mn=Za;function gn(e,r,t){var a=e.l+r,n=8!=t.biff&&t.biff?2:4,s=e.read_shift(n),i=e.read_shift(n),c=e.read_shift(2),o=e.read_shift(2);return e.l=a,{s:{r:s,c:c},e:{r:i,c:o}}}function vn(e,r,t){var a=an(e);2!=t.biff&&9!=r||++e.l;var n=function(e){var r=e.read_shift(1);return 1===e.read_shift(1)?r:1===r}(e);return a.val=n,a.t=!0===n||!1===n?"b":"e",a}var bn=function(e,r,t){return 0===r?"":Za(e,0,t)};function Tn(e,r,t){var a,n=e.read_shift(2),s={fBuiltIn:1&n,fWantAdvise:n>>>1&1,fWantPict:n>>>2&1,fOle:n>>>3&1,fOleLink:n>>>4&1,cf:n>>>5&1023,fIcon:n>>>15&1};return 14849===t.sbcch&&(a=function(e,r,t){e.l+=4,r-=4;var a=e.l+r,n=Ka(e,0,t),s=e.read_shift(2);if(s!==(a-=e.l))throw new Error("Malformed AddinUdf: padding = "+a+" != "+s);return e.l+=s,n}(e,r-2,t)),s.body=a||e.read_shift(r-2),"string"===typeof a&&(s.Name=a),s}var En=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function wn(e,r,t){var a=e.l+r,n=e.read_shift(2),s=e.read_shift(1),i=e.read_shift(1),c=e.read_shift(t&&2==t.biff?1:2),o=0;(!t||t.biff>=5)&&(5!=t.biff&&(e.l+=2),o=e.read_shift(2),5==t.biff&&(e.l+=2),e.l+=4);var l=Ja(e,i,t);32&n&&(l=En[l.charCodeAt(0)]);var f=a-e.l;t&&2==t.biff&&--f;var h=a!=e.l&&0!==c&&f>0?function(e,r,t,a){var n,s=e.l+r,i=di(e,a,t);s!==e.l&&(n=ui(e,s-e.l,i,t));return[i,n]}(e,f,t,c):[];return{chKey:s,Name:l,itab:o,rgce:h}}function An(e,r,t){if(t.biff<8)return function(e,r,t){3==e[e.l+1]&&e[e.l]++;var a=Ka(e,0,t);return 3==a.charCodeAt(0)?a.slice(1):a}(e,0,t);for(var a=[],n=e.l+r,s=e.read_shift(t.biff>8?4:2);0!==s--;)a.push(nn(e,t.biff,t));if(e.l!=n)throw new Error("Bad ExternSheet: "+e.l+" != "+n);return a}function kn(e,r,t){var a=ln(e,6);switch(t.biff){case 2:e.l++,r-=7;break;case 3:case 4:e.l+=2,r-=8;break;default:e.l+=6,r-=12}return[a,Ti(e,r,t)]}var Sn={8:function(e,r){var t=e.l+r;e.l+=10;var a=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var n=e.read_shift(1);return e.l+=n,e.l=t,{fmt:a}}};function yn(e,r,t){if(!t.cellStyles)return At(e,r);var a=t&&t.biff>=12?4:2,n=e.read_shift(a),s=e.read_shift(a),i=e.read_shift(a),c=e.read_shift(a),o=e.read_shift(2);2==a&&(e.l+=2);var l={s:n,e:s,w:i,ixfe:c,flags:o};return(t.biff>=5||!t.biff)&&(l.level=o>>8&7),l}var _n=an,Cn=Xa,Rn=qa;var On=[2,3,48,49,131,139,140,245],xn=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},r=xe({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function t(r,t){var a=t||{};a.dateNF||(a.dateNF="yyyymmdd");var n=Vt(function(r,t){var a=[],n=y(1);switch(t.type){case"base64":n=C(A(r));break;case"binary":n=C(r);break;case"buffer":case"array":n=r}wt(n,0);var s=n.read_shift(1),i=!!(136&s),c=!1,o=!1;switch(s){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:c=!0,i=!0;break;case 140:o=!0;break;default:throw new Error("DBF Unsupported Version: "+s.toString(16))}var l=0,f=521;2==s&&(l=n.read_shift(2)),n.l+=3,2!=s&&(l=n.read_shift(4)),l>1048576&&(l=1e6),2!=s&&(f=n.read_shift(2));var h=n.read_shift(2),u=t.codepage||1252;2!=s&&(n.l+=16,n.read_shift(1),0!==n[n.l]&&(u=e[n[n.l]]),n.l+=1,n.l+=2),o&&(n.l+=36);for(var d=[],p={},g=Math.min(n.length,2==s?521:f-10-(c?264:0)),v=o?32:11;n.l0;)if(42!==n[n.l])for(++n.l,a[++b]=[],T=0,T=0;T!=d.length;++T){var E=n.slice(n.l,n.l+d[T].len);n.l+=d[T].len,wt(E,0);var w=m.utils.decode(u,E);switch(d[T].type){case"C":w.trim().length&&(a[b][T]=w.replace(/\s+$/,""));break;case"D":8===w.length?a[b][T]=new Date(+w.slice(0,4),+w.slice(4,6)-1,+w.slice(6,8)):a[b][T]=w;break;case"F":a[b][T]=parseFloat(w.trim());break;case"+":case"I":a[b][T]=o?2147483648^E.read_shift(-4,"i"):E.read_shift(4,"i");break;case"L":switch(w.trim().toUpperCase()){case"Y":case"T":a[b][T]=!0;break;case"N":case"F":a[b][T]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+w+"|")}break;case"M":if(!i)throw new Error("DBF Unexpected MEMO for type "+s.toString(16));a[b][T]="##MEMO##"+(o?parseInt(w.trim(),10):E.read_shift(4));break;case"N":(w=w.replace(/\u0000/g,"").trim())&&"."!=w&&(a[b][T]=+w||0);break;case"@":a[b][T]=new Date(E.read_shift(-8,"f")-621356832e5);break;case"T":a[b][T]=new Date(864e5*(E.read_shift(4)-2440588)+E.read_shift(4));break;case"Y":a[b][T]=E.read_shift(4,"i")/1e4+E.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":a[b][T]=-E.read_shift(-8,"f");break;case"B":if(c&&8==d[T].len){a[b][T]=E.read_shift(8,"f");break}case"G":case"P":E.l+=d[T].len;break;case"0":if("_NullFlags"===d[T].name)break;default:throw new Error("DBF Unsupported data type "+d[T].type)}}else n.l+=h;if(2!=s&&n.l=0&&h(+n.codepage),"string"==n.type)throw new Error("Cannot write DBF to JS string");var s=yt(),i=Lo(e,{header:1,raw:!0,cellDates:!0}),o=i[0],l=i.slice(1),f=e["!cols"]||[],u=0,d=0,p=0,m=1;for(u=0;u250&&(A=250),"C"==(w=((f[u]||{}).DBF||{}).type)&&f[u].DBF.len>A&&(A=f[u].DBF.len),"B"==E&&"N"==w&&(E="N",T[u]=f[u].DBF.dec,A=f[u].DBF.len),b[u]="C"==E||"N"==w?A:a[E]||0,m+=b[u],v[u]=E}else v[u]="?"}var S=s.next(32);for(S.write_shift(4,318902576),S.write_shift(4,l.length),S.write_shift(2,296+32*p),S.write_shift(2,m),u=0;u<4;++u)S.write_shift(4,0);for(S.write_shift(4,(+r[c]||3)<<8),u=0,d=0;u":190,"?":191,"{":223},r=new RegExp("\x1bN("+Oe(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),t=function(r,t){var a=e[t];return"number"==typeof a?b(a):a},n=function(e,r,t){var a=r.charCodeAt(0)-32<<4|t.charCodeAt(0)-48;return 59==a?e:b(a)};function s(e,a){var s,i=e.split(/[\n\r]+/),c=-1,o=-1,l=0,f=0,u=[],d=[],p=null,g={},v=[],b=[],T=[],E=0;for(+a.codepage>=0&&h(+a.codepage);l!==i.length;++l){E=0;var w,A=i[l].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(r,t),k=A.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),S=k[0];if(A.length>0)switch(S){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==k[1].charAt(0)&&d.push(A.slice(3).replace(/;;/g,";"));break;case"C":var y=!1,_=!1,C=!1,R=!1,O=-1,x=-1;for(f=1;f-1&&u[O][x];if(!N||!N[1])throw new Error("SYLK shared formula cannot find base");u[c][o][1]=Gs(N[1],{r:c-O,c:o-x})}break;case"F":var D=0;for(f=1;f0?(v[c].hpt=E,v[c].hpx=Ts(E)):0===E&&(v[c].hidden=!0);break;default:if(a&&a.WTF)throw new Error("SYLK bad record "+A)}D<1&&(p=null);break;default:if(a&&a.WTF)throw new Error("SYLK bad record "+A)}}return v.length>0&&(g["!rows"]=v),b.length>0&&(g["!cols"]=b),a&&a.sheetRows&&(u=u.slice(0,a.sheetRows)),[u,g]}function i(e,r){var t=function(e,r){switch(r.type){case"base64":return s(A(e),r);case"binary":return s(e,r);case"buffer":return s(k&&a.isBuffer(e)?e.toString("binary"):R(e),r);case"array":return s(We(e),r)}throw new Error("Unrecognized type "+r.type)}(e,r),n=t[0],i=t[1],c=Vt(n,r);return Oe(i).forEach((function(e){c[e]=i[e]})),c}function c(e,r,t,a){var n="C;Y"+(t+1)+";X"+(a+1)+";K";switch(e.t){case"n":n+=e.v||0,e.f&&!e.F&&(n+=";E"+Vs(e.f,{r:t,c:a}));break;case"b":n+=e.v?"TRUE":"FALSE";break;case"e":n+=e.w||e.v;break;case"d":n+='"'+(e.w||e.v)+'"';break;case"s":n+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return n}return e["|"]=254,{to_workbook:function(e,r){return zt(i(e,r),r)},to_sheet:i,from_sheet:function(e,r){var t,a,n=["ID;PWXL;N;E"],s=[],i=Ut(e["!ref"]),o=Array.isArray(e),l="\r\n";n.push("P;PGeneral"),n.push("F;P0;DG0G8;M255"),e["!cols"]&&(a=n,e["!cols"].forEach((function(e,r){var t="F;W"+(r+1)+" "+(r+1)+" ";e.hidden?t+="0":("number"!=typeof e.width||e.wpx||(e.wpx=hs(e.width)),"number"!=typeof e.wpx||e.wch||(e.wch=us(e.wpx)),"number"==typeof e.wch&&(t+=Math.round(e.wch)))," "!=t.charAt(t.length-1)&&a.push(t)}))),e["!rows"]&&function(e,r){r.forEach((function(r,t){var a="F;";r.hidden?a+="M0;":r.hpt?a+="M"+20*r.hpt+";":r.hpx&&(a+="M"+20*bs(r.hpx)+";"),a.length>2&&e.push(a+"R"+(t+1))}))}(n,e["!rows"]),n.push("B;Y"+(i.e.r-i.s.r+1)+";X"+(i.e.c-i.s.c+1)+";D"+[i.s.c,i.s.r,i.e.c,i.e.r].join(" "));for(var f=i.s.r;f<=i.e.r;++f)for(var h=i.s.c;h<=i.e.c;++h){var u=Lt({r:f,c:h});(t=o?(e[f]||[])[h]:e[u])&&(null!=t.v||t.f&&!t.F)&&s.push(c(t,0,f,h))}return n.join(l)+l+s.join(l)+l+"E"+l}}}(),Nn=function(){function e(e,r){for(var t=e.split("\n"),a=-1,n=-1,s=0,i=[];s!==t.length;++s)if("BOT"!==t[s].trim()){if(!(a<0)){for(var c=t[s].trim().split(","),o=c[0],l=c[1],f=t[++s]||"";1&(f.match(/["]/g)||[]).length&&s=0?c=l:n=l}})),o>=0&&-1==c&&n>=0&&(c=n,n=-1);var l=(""+(a>=0?a:(new Date).getFullYear())).slice(-4)+"-"+("00"+(n>=1?n:1)).slice(-2)+"-"+("00"+(s>=1?s:1)).slice(-2);7==l.length&&(l="0"+l),8==l.length&&(l="20"+l);var f=("00"+(i>=0?i:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2);return-1==i&&-1==c&&-1==o?l:-1==a&&-1==n&&-1==s?f:l+"T"+f}(0,t.dateNF,r.match(g)||[]),n=1),t.cellDates?(a.t="d",a.v=ze(r,n)):(a.t="n",a.v=Ne(ze(r,n))),!1!==t.cellText&&(a.w=we(a.z,a.v instanceof Date?Ne(a.v):a.v)),t.cellNF||delete a.z}else a.t="s",a.v=r;else a.t="n",!1!==t.cellText&&(a.w=r),a.v=l;if("z"==a.t||(t.dense?(s[c]||(s[c]=[]),s[c][o]=a):s[Lt({c:o,r:c})]=a),f=h+1,m=e.charCodeAt(f),i.e.c0&&v(),s["!ref"]=Mt(i),s}function i(r,t){return t&&t.PRN?t.FS||"sep="==r.slice(0,4)||r.indexOf("\t")>=0||r.indexOf(",")>=0||r.indexOf(";")>=0?s(r,t):Vt(function(r,t){var a=t||{},n=[];if(!r||0===r.length)return n;for(var s=r.split(/[\r\n]/),i=s.length-1;i>=0&&0===s[i].length;)--i;for(var c=10,o=0,l=0;l<=i;++l)-1==(o=s[l].indexOf(" "))?o=s[l].length:o++,c=Math.max(c,o);for(l=0;l<=i;++l){n[l]=[];var f=0;for(e(s[l].slice(0,c).trim(),n,l,f,a),f=1;f<=(s[l].length-c)/10+1;++f)e(s[l].slice(c+10*(f-1),c+10*f).trim(),n,l,f,a)}return a.sheetRows&&(n=n.slice(0,a.sheetRows)),n}(r,t),t):s(r,t)}function c(e,r){var t="",n="string"==r.type?[0,0,0,0]:xo(e,r);switch(r.type){case"base64":t=A(e);break;case"binary":case"string":t=e;break;case"buffer":t=65001==r.codepage?e.toString("utf8"):r.codepage&&"undefined"!==typeof m?m.utils.decode(r.codepage,e):k&&a.isBuffer(e)?e.toString("binary"):R(e);break;case"array":t=We(e);break;default:throw new Error("Unrecognized type "+r.type)}return 239==n[0]&&187==n[1]&&191==n[2]?t=_r(t.slice(3)):"string"!=r.type&&"buffer"!=r.type&&65001==r.codepage?t=_r(t):"binary"==r.type&&"undefined"!==typeof m&&r.codepage&&(t=m.utils.decode(r.codepage,m.utils.encode(28591,t))),"socialcalc:version:"==t.slice(0,19)?Dn.to_sheet("string"==r.type?t:_r(t),r):i(t,r)}return{to_workbook:function(e,r){return zt(c(e,r),r)},to_sheet:c,from_sheet:function(e){for(var r,t=[],a=Ut(e["!ref"]),n=Array.isArray(e),s=a.s.r;s<=a.e.r;++s){for(var i=[],c=a.s.c;c<=a.e.c;++c){var o=Lt({r:s,c:c});if((r=n?(e[s]||[])[c]:e[o])&&null!=r.v){for(var l=(r.w||(Ht(r),r.w)||"").slice(0,10);l.length<10;)l+=" ";i.push(l+(0===c?" ":""))}else i.push(" ")}t.push(i.join(""))}return t.join("\n")}}}();var Ln=function(){function e(e,r,t){if(e){wt(e,e.l||0);for(var a=t.Enum||b;e.l=16&&5==r[14]&&108===r[15])throw new Error("Unsupported Works 3 for Mac file");if(2==r[2])a.Enum=b,e(r,(function(e,r,t){switch(t){case 0:a.vers=e,e>=4096&&(a.qpro=!0);break;case 6:h=e;break;case 204:e&&(i=e);break;case 222:i=e;break;case 15:case 51:a.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==t&&112==(112&e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=a.dateNF||W[14],a.cellDates&&(e[1].t="d",e[1].v=Pe(e[1].v))),a.qpro&&e[3]>c&&(n["!ref"]=Mt(h),o[s]=n,l.push(s),n=a.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},c=e[3],s=i||"Sheet"+(c+1),i="");var f=a.dense?(n[e[0].r]||[])[e[0].c]:n[Lt(e[0])];if(f){f.t=e[1].t,f.v=e[1].v,null!=e[1].z&&(f.z=e[1].z),null!=e[1].f&&(f.f=e[1].f);break}a.dense?(n[e[0].r]||(n[e[0].r]=[]),n[e[0].r][e[0].c]=e[1]):n[Lt(e[0])]=e[1]}}),a);else{if(26!=r[2]&&14!=r[2])throw new Error("Unrecognized LOTUS BOF "+r[2]);a.Enum=E,14==r[2]&&(a.qpro=!0,r.l=0),e(r,(function(e,r,t){switch(t){case 204:s=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>c&&(n["!ref"]=Mt(h),o[s]=n,l.push(s),n=a.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},c=e[3],s="Sheet"+(c+1)),u>0&&e[0].r>=u)break;a.dense?(n[e[0].r]||(n[e[0].r]=[]),n[e[0].r][e[0].c]=e[1]):n[Lt(e[0])]=e[1],h.e.c=128?95:s)}return a.write_shift(1,0),a}function s(e,r,t){var a=kt(7);return a.write_shift(1,255),a.write_shift(2,r),a.write_shift(2,e),a.write_shift(2,t,"i"),a}function i(e,r,t){var a=kt(13);return a.write_shift(1,255),a.write_shift(2,r),a.write_shift(2,e),a.write_shift(8,t,"f"),a}function c(e,r,t){var a=32768&r;return r=(a?e:0)+((r&=-32769)>=8192?r-16384:r),(a?"":"$")+(t?Dt(r):It(r))}var o={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},l=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function f(e){var r=[{c:0,r:0},{t:"n",v:0},0];return r[0].r=e.read_shift(2),r[3]=e[e.l++],r[0].c=e[e.l++],r}function u(e,r,t,a){var n=kt(6+a.length);n.write_shift(2,e),n.write_shift(1,t),n.write_shift(1,r),n.write_shift(1,39);for(var s=0;s=128?95:i)}return n.write_shift(1,0),n}function d(e,r){var t=f(e),a=e.read_shift(4),n=e.read_shift(4),s=e.read_shift(2);if(65535==s)return 0===a&&3221225472===n?(t[1].t="e",t[1].v=15):0===a&&3489660928===n?(t[1].t="e",t[1].v=42):t[1].v=0,t;var i=32768&s;return s=(32767&s)-16446,t[1].v=(1-2*i)*(n*Math.pow(2,s+32)+a*Math.pow(2,s)),t}function p(e,r,t,a){var n=kt(14);if(n.write_shift(2,e),n.write_shift(1,t),n.write_shift(1,r),0==a)return n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,65535),n;var s,i=0,c=0,o=0;return a<0&&(i=1,a=-a),c=0|Math.log2(a),0==(2147483648&(o=(a/=Math.pow(2,c-31))>>>0))&&(++c,o=(a/=2)>>>0),a-=o,o|=2147483648,o>>>=0,s=(a*=Math.pow(2,32))>>>0,n.write_shift(4,s),n.write_shift(4,o),c+=16383+(i?32768:0),n.write_shift(2,c),n}function m(e,r){var t=f(e),a=e.read_shift(8,"f");return t[1].v=a,t}function g(e,r){return 0==e[e.l+r-1]?e.read_shift(r,"cstr"):""}function v(e,r){var t=kt(5+e.length);t.write_shift(2,14e3),t.write_shift(2,r);for(var a=0;a127?95:n}return t[t.l++]=0,t}var b={0:{n:"BOF",f:ja},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(e,r,t){var a={s:{c:0,r:0},e:{c:0,r:0}};return 8==r&&t.qpro?(a.s.c=e.read_shift(1),e.l++,a.s.r=e.read_shift(2),a.e.c=e.read_shift(1),e.l++,a.e.r=e.read_shift(2),a):(a.s.c=e.read_shift(2),a.s.r=e.read_shift(2),12==r&&t.qpro&&(e.l+=2),a.e.c=e.read_shift(2),a.e.r=e.read_shift(2),12==r&&t.qpro&&(e.l+=2),65535==a.s.c&&(a.s.c=a.e.c=a.s.r=a.e.r=0),a)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(e,r,a){var n=t(e,0,a);return n[1].v=e.read_shift(2,"i"),n}},14:{n:"NUMBER",f:function(e,r,a){var n=t(e,0,a);return n[1].v=e.read_shift(8,"f"),n}},15:{n:"LABEL",f:a},16:{n:"FORMULA",f:function(e,r,a){var n=e.l+r,s=t(e,0,a);if(s[1].v=e.read_shift(8,"f"),a.qpro)e.l=n;else{var i=e.read_shift(2);!function(e,r){wt(e,0);var t=[],a=0,n="",s="",i="",f="";for(;e.lt.length)return void console.error("WK1 bad formula parse 0x"+h.toString(16)+":|"+t.join("|")+"|");var m=t.slice(-a);t.length-=a,t.push(o[h][0]+"("+m.join(",")+")")}}}1==t.length?r[1].f=""+t[0]:console.error("WK1 bad formula parse |"+t.join("|")+"|")}(e.slice(e.l,e.l+i),s),e.l+=i}return s}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:a},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:g},222:{n:"SHEETNAMELP",f:function(e,r){var t=e[e.l++];t>r-1&&(t=r-1);for(var a="";a.length>1;if(1&t[1].v)switch(7&a){case 0:a=5e3*(a>>3);break;case 1:a=500*(a>>3);break;case 2:a=(a>>3)/20;break;case 3:a=(a>>3)/200;break;case 4:a=(a>>3)/2e3;break;case 5:a=(a>>3)/2e4;break;case 6:a=(a>>3)/16;break;case 7:a=(a>>3)/64}return t[1].v=a,t}},25:{n:"FORMULA19",f:function(e,r){var t=d(e);return e.l+=r-14,t}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(e,r){for(var t={},a=e.l+r;e.l>6,t}},38:{n:"??"},39:{n:"NUMBER27",f:m},40:{n:"FORMULA28",f:function(e,r){var t=m(e);return e.l+=r-10,t}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:g},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(e,r,t){if(t.qpro&&!(r<21)){var a=e.read_shift(1);return e.l+=17,e.l+=1,e.l+=2,[a,e.read_shift(r-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(e,r){var t=r||{};if(+t.codepage>=0&&h(+t.codepage),"string"==t.type)throw new Error("Cannot write WK1 to JS string");var a=yt(),c=Ut(e["!ref"]),o=Array.isArray(e),l=[];Vc(a,0,function(e){var r=kt(2);return r.write_shift(2,e),r}(1030)),Vc(a,6,function(e){var r=kt(8);return r.write_shift(2,e.s.c),r.write_shift(2,e.s.r),r.write_shift(2,e.e.c),r.write_shift(2,e.e.r),r}(c));for(var f=Math.min(c.e.r,8191),u=c.s.r;u<=f;++u)for(var d=It(u),p=c.s.c;p<=c.e.c;++p){u===c.s.r&&(l[p]=Dt(p));var m=l[p]+d,g=o?(e[u]||[])[p]:e[m];if(g&&"z"!=g.t)if("n"==g.t)(0|g.v)==g.v&&g.v>=-32768&&g.v<=32767?Vc(a,13,s(u,p,g.v)):Vc(a,14,i(u,p,g.v));else Vc(a,15,n(u,p,Ht(g).slice(0,239)))}return Vc(a,1),a.end()},book_to_wk3:function(e,r){var t=r||{};if(+t.codepage>=0&&h(+t.codepage),"string"==t.type)throw new Error("Cannot write WK3 to JS string");var a=yt();Vc(a,0,function(e){var r=kt(26);r.write_shift(2,4096),r.write_shift(2,4),r.write_shift(4,0);for(var t=0,a=0,n=0,s=0;s8191&&(t=8191);return r.write_shift(2,t),r.write_shift(1,n),r.write_shift(1,a),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,1),r.write_shift(1,2),r.write_shift(4,0),r.write_shift(4,0),r}(e));for(var n=0,s=0;n":case"":r.shadow=1;break;case"":break;case"":case"":r.outline=1;break;case"":break;case"":case"":r.strike=1;break;case"":break;case"":case"":r.u=1;break;case"":break;case"":case"":r.b=1;break;case"":break;case"":case"":r.i=1;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":case"":case"":case"":case"":case"
":break;case"":n=!1;break;default:if(47!==s[0].charCodeAt(1)&&!n)throw new Error("Unrecognized rich format "+s[0])}}return r}(s[1])),n}var a=/<(?:\w+:)?r>/g,n=/<\/(?:\w+:)?r>/;return function(e){return e.replace(a,"").split(n).map(t).filter((function(e){return e.v}))}}(),Mn=function(){var e=/(\r\n|\n)/g;function r(r){var t=[[],r.v,[]];return r.v?(r.s&&function(e,r,t){var a=[];e.u&&a.push("text-decoration: underline;"),e.uval&&a.push("text-underline-style:"+e.uval+";"),e.sz&&a.push("font-size:"+e.sz+"pt;"),e.outline&&a.push("text-effect: outline;"),e.shadow&&a.push("text-shadow: auto;"),r.push(''),e.b&&(r.push(""),t.push("")),e.i&&(r.push(""),t.push("")),e.strike&&(r.push(""),t.push(""));var n=e.valign||"";"superscript"==n||"super"==n?n="sup":"subscript"==n&&(n="sub"),""!=n&&(r.push("<"+n+">"),t.push("")),t.push("")}(r.s,t[0],t[2]),t[0].join("")+t[1].replace(e,"
")+t[2].join("")):""}return function(e){return e.map(r).join("")}}(),Un=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Bn=/<(?:\w+:)?r>/,Hn=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function zn(e,r){var t=!r||r.cellHTML,a={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(a.t=gr(_r(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),a.r=_r(e),t&&(a.h=Tr(a.t))):e.match(Bn)&&(a.r=_r(e),a.t=gr(_r((e.replace(Hn,"").match(Un)||[]).join("").replace(lr,""))),t&&(a.h=Mn(Pn(a.r)))),a):{t:""}}var Wn=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,Vn=/<(?:\w+:)?(?:si|sstItem)>/g,Gn=/<\/(?:\w+:)?(?:si|sstItem)>/;function $n(e){if("undefined"!==typeof m)return m.utils.encode(c,e);for(var r=[],t=e.split(""),a=0;a=4&&(e.l+=r-4),t}function Xn(e){for(var r=e.read_shift(4),t=e.l+r-4,a={},n=e.read_shift(4),s=[];n-- >0;)s.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(a.name=e.read_shift(0,"lpp4"),a.comps=s,e.l!=t)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+t);return a}function Kn(e){var r=function(e){var r={};return e.read_shift(4),e.l+=4,r.id=e.read_shift(0,"lpp4"),r.name=e.read_shift(0,"lpp4"),r.R=jn(e,4),r.U=jn(e,4),r.W=jn(e,4),r}(e);if(r.ename=e.read_shift(0,"8lpp4"),r.blksz=e.read_shift(4),r.cmode=e.read_shift(4),4!=e.read_shift(4))throw new Error("Bad !Primary record");return r}function Yn(e,r){var t=e.l+r,a={};a.Flags=63&e.read_shift(4),e.l+=4,a.AlgID=e.read_shift(4);var n=!1;switch(a.AlgID){case 26126:case 26127:case 26128:n=36==a.Flags;break;case 26625:n=4==a.Flags;break;case 0:n=16==a.Flags||4==a.Flags||36==a.Flags;break;default:throw"Unrecognized encryption algorithm: "+a.AlgID}if(!n)throw new Error("Encryption Flags/AlgID mismatch");return a.AlgIDHash=e.read_shift(4),a.KeySize=e.read_shift(4),a.ProviderType=e.read_shift(4),e.l+=8,a.CSPName=e.read_shift(t-e.l>>1,"utf16le"),e.l=t,a}function Jn(e,r){var t={},a=e.l+r;return e.l+=4,t.Salt=e.slice(e.l,e.l+16),e.l+=16,t.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),t.VerifierHash=e.slice(e.l,a),e.l=a,t}function qn(e){if(36!=(63&e.read_shift(4)))throw new Error("EncryptionInfo mismatch");var r=e.read_shift(4);return{t:"Std",h:Yn(e,r),v:Jn(e,e.length-e.l)}}function Zn(){throw new Error("File is password-protected: ECMA-376 Extensible")}function Qn(e){var r=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var t=e.read_shift(e.length-e.l,"utf8"),a={};return t.replace(lr,(function(e){var t=ur(e);switch(dr(t[0])){case"":case"":case"":break;case"":case"=0;--t)a=((0===(16384&a)?0:1)|a<<1&32767)^r[t];return 52811^a}var rs=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],r=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],t=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],a=function(e,r){return 255&((t=e^r)/2|128*t);var t};return function(n){for(var s,i,c,o=$n(n),l=function(e){for(var a=r[e.length-1],n=104,s=e.length-1;s>=0;--s)for(var i=e[s],c=0;7!=c;++c)64&i&&(a^=t[n]),i*=2,--n;return a}(o),f=o.length,h=y(16),u=0;16!=u;++u)h[u]=0;for(1===(1&f)&&(s=l>>8,h[f]=a(e[0],s),--f,s=255&l,i=o[o.length-1],h[f]=a(i,s));f>0;)s=l>>8,h[--f]=a(o[f],s),s=255&l,h[--f]=a(o[f],s);for(f=15,c=15-o.length;c>0;)s=l>>8,h[f]=a(e[c],s),--c,s=255&l,h[--f]=a(o[f],s),--f,--c;return h}}(),ts=function(e){var r=0,t=rs(e);return function(e){var a=function(e,r,t,a,n){var s,i;for(n||(n=r),a||(a=rs(e)),s=0;s!=r.length;++s)i=r[s],i=255&((i^=a[t])>>5|i<<3),n[s]=i,++t;return[n,t,a]}("",e,r,t);return r=a[1],a[0]}};function as(e,r,t){var a=t||{};return a.Info=e.read_shift(2),e.l-=2,1===a.Info?a.Data=function(e){var r={},t=r.EncryptionVersionInfo=jn(e,4);if(1!=t.Major||1!=t.Minor)throw"unrecognized version code "+t.Major+" : "+t.Minor;return r.Salt=e.read_shift(16),r.EncryptedVerifier=e.read_shift(16),r.EncryptedVerifierHash=e.read_shift(16),r}(e):a.Data=function(e,r){var t={},a=t.EncryptionVersionInfo=jn(e,4);if(r-=4,2!=a.Minor)throw new Error("unrecognized minor version code: "+a.Minor);if(a.Major>4||a.Major<2)throw new Error("unrecognized major version code: "+a.Major);t.Flags=e.read_shift(4),r-=4;var n=e.read_shift(4);return r-=4,t.EncryptionHeader=Yn(e,n),r-=n,t.EncryptionVerifier=Jn(e,r),t}(e,r),a}var ns=function(){function e(e,t){switch(t.type){case"base64":return r(A(e),t);case"binary":return r(e,t);case"buffer":return r(k&&a.isBuffer(e)?e.toString("binary"):R(e),t);case"array":return r(We(e),t)}throw new Error("Unrecognized type "+t.type)}function r(e,r){var t=(r||{}).dense?[]:{},a=e.match(/\\trowd.*?\\row\b/g);if(!a.length)throw new Error("RTF missing table");var n={s:{c:0,r:0},e:{c:0,r:a.length-1}};return a.forEach((function(e,r){Array.isArray(t)&&(t[r]=[]);for(var a,s=/\\\w+\b/g,i=0,c=-1;a=s.exec(e);){if("\\cell"===a[0]){var o=e.slice(i,s.lastIndex-a[0].length);if(" "==o[0]&&(o=o.slice(1)),++c,o.length){var l={v:o,t:"s"};Array.isArray(t)?t[r][c]=l:t[Lt({r:r,c:c})]=l}}i=s.lastIndex}c>n.e.c&&(n.e.c=c)})),t["!ref"]=Mt(n),t}return{to_workbook:function(r,t){return zt(e(r,t),t)},to_sheet:e,from_sheet:function(e){for(var r,t=["{\\rtf1\\ansi"],a=Ut(e["!ref"]),n=Array.isArray(e),s=a.s.r;s<=a.e.r;++s){t.push("\\trowd\\trautofit1");for(var i=a.s.c;i<=a.e.c;++i)t.push("\\cellx"+(i+1));for(t.push("\\pard\\intbl"),i=a.s.c;i<=a.e.c;++i){var c=Lt({r:s,c:i});(r=n?(e[s]||[])[i]:e[c])&&(null!=r.v||r.f&&!r.F)&&(t.push(" "+(r.w||(Ht(r),r.w))),t.push("\\cell"))}t.push("\\pard\\intbl\\row")}return t.join("")+"}"}}}();function ss(e){for(var r=0,t=1;3!=r;++r)t=256*t+(e[r]>255?255:e[r]<0?0:e[r]);return t.toString(16).toUpperCase().slice(1)}function is(e,r){if(0===r)return e;var t=function(e){var r=e[0]/255,t=e[1]/255,a=e[2]/255,n=Math.max(r,t,a),s=Math.min(r,t,a),i=n-s;if(0===i)return[0,0,r];var c,o=0,l=n+s;switch(c=i/(l>1?2-l:l),n){case r:o=((t-a)/i+6)%6;break;case t:o=(a-r)/i+2;break;case a:o=(r-t)/i+4}return[o/6,c,l/2]}(function(e){var r=e.slice("#"===e[0]?1:0).slice(0,6);return[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]}(e));return t[2]=r<0?t[2]*(1+r):1-(1-t[2])*(1-r),ss(function(e){var r,t=e[0],a=e[1],n=e[2],s=2*a*(n<.5?n:1-n),i=n-s/2,c=[i,i,i],o=6*t;if(0!==a)switch(0|o){case 0:case 6:r=s*o,c[0]+=s,c[1]+=r;break;case 1:r=s*(2-o),c[0]+=r,c[1]+=s;break;case 2:r=s*(o-2),c[1]+=s,c[2]+=r;break;case 3:r=s*(4-o),c[1]+=r,c[2]+=s;break;case 4:r=s*(o-4),c[2]+=s,c[0]+=r;break;case 5:r=s*(6-o),c[2]+=r,c[0]+=s}for(var l=0;3!=l;++l)c[l]=Math.round(255*c[l]);return c}(t))}var cs=6,os=15,ls=1,fs=cs;function hs(e){return Math.floor((e+Math.round(128/fs)/256)*fs)}function us(e){return Math.floor((e-5)/fs*100+.5)/100}function ds(e){return Math.round((e*fs+5)/fs*256)/256}function ps(e){return ds(us(hs(e)))}function ms(e){var r=Math.abs(e-ps(e)),t=fs;if(r>.005)for(fs=ls;fs]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,r=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,t=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,a=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,n=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(s,i,c){var o,f={};return s?((o=(s=s.replace(//gm,"").replace(//gm,"")).match(e))&&function(e,r,t){r.NumberFmt=[];for(var a=Oe(W),n=0;n":case"":case"":case"":break;case"0){if(o>392){for(o=392;o>60&&null!=r.NumberFmt[o];--o);r.NumberFmt[o]=c}Ae(c,o)}break;default:if(t.WTF)throw new Error("unrecognized "+i[0]+" in numFmts")}}}(o,f,c),(o=s.match(a))&&function(e,r,t,a){r.Fonts=[];var n={},s=!1;(e[0].match(lr)||[]).forEach((function(e){var i=ur(e);switch(dr(i[0])){case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":break;case"
":case"":r.Fonts.push(n),n={};break;case"":n.bold=1;break;case"":n.italic=1;break;case"":n.underline=1;break;case"":n.strike=1;break;case"":n.outline=1;break;case"":n.shadow=1;break;case"":n.condense=1;break;case"":n.extend=1;break;case"":case"":s=!1;break;default:if(a&&a.WTF&&!s)throw new Error("unrecognized "+i[0]+" in fonts")}}))}(o,f,i,c),(o=s.match(t))&&function(e,r,t,a){r.Fills=[];var n={},s=!1;(e[0].match(lr)||[]).forEach((function(e){var t=ur(e);switch(dr(t[0])){case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":break;case"":case"":n={},r.Fills.push(n);break;case"":r.Fills.push(n),n={};break;case"":t.patternType&&(n.patternType=t.patternType);break;case"":s=!1;break;default:if(a&&a.WTF&&!s)throw new Error("unrecognized "+t[0]+" in fills")}}))}(o,f,0,c),(o=s.match(n))&&function(e,r,t,a){r.Borders=[];var n={},s=!1;(e[0].match(lr)||[]).forEach((function(e){var t=ur(e);switch(dr(t[0])){case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":break;case"":case"":n={},t.diagonalUp&&(n.diagonalUp=wr(t.diagonalUp)),t.diagonalDown&&(n.diagonalDown=wr(t.diagonalDown)),r.Borders.push(n);break;case"":s=!1;break;default:if(a&&a.WTF&&!s)throw new Error("unrecognized "+t[0]+" in borders")}}))}(o,f,0,c),(o=s.match(r))&&function(e,r,t){var a;r.CellXf=[];var n=!1;(e[0].match(lr)||[]).forEach((function(e){var s=ur(e),i=0;switch(dr(s[0])){case"":case"":case"":case"":case"":case"":case"":case"":case"":break;case"":for(delete(a=s)[0],i=0;i392)for(i=392;i>60;--i)if(r.NumberFmt[a.numFmtId]==r.NumberFmt[i]){a.numFmtId=i;break}r.CellXf.push(a);break;case"":var c={};s.vertical&&(c.vertical=s.vertical),s.horizontal&&(c.horizontal=s.horizontal),null!=s.textRotation&&(c.textRotation=s.textRotation),s.indent&&(c.indent=s.indent),s.wrapText&&(c.wrapText=wr(s.wrapText)),a.alignment=c;break;case"":case"":n=!1;break;default:if(t&&t.WTF&&!n)throw new Error("unrecognized "+s[0]+" in cellXfs")}}))}(o,f,c),f):f}}();var Ss=At;var ys=At;var _s=["","","","","","","","","","","",""];function Cs(e,r,t){r.themeElements.clrScheme=[];var a={};(e[0].match(lr)||[]).forEach((function(e){var n=ur(e);switch(n[0]){case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":"/"===n[0].charAt(1)?(r.themeElements.clrScheme[_s.indexOf(n[0])]=a,a={}):a.name=n[0].slice(3,n[0].length-1);break;default:if(t&&t.WTF)throw new Error("Unrecognized "+n[0]+" in clrScheme")}}))}function Rs(){}function Os(){}var xs=/]*)>[\s\S]*<\/a:clrScheme>/,Is=/]*)>[\s\S]*<\/a:fontScheme>/,Ns=/]*)>[\s\S]*<\/a:fmtScheme>/;var Ds=/]*)>[\s\S]*<\/a:themeElements>/;function Fs(e,r){var t;e&&0!==e.length||(e=Ls());var a={};if(!(t=e.match(Ds)))throw new Error("themeElements not found in theme");return function(e,r,t){var a;r.themeElements={},[["clrScheme",xs,Cs],["fontScheme",Is,Rs],["fmtScheme",Ns,Os]].forEach((function(n){if(!(a=e.match(n[1])))throw new Error(n[0]+" not found in themeElements");n[2](a,r,t)}))}(t[0],a,r),a.raw=e,a}function Ls(e,r){if(r&&r.themeXLSX)return r.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var t=[ir];return t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t.join("")}function Ps(e){var r={};switch(r.xclrType=e.read_shift(2),r.nTintShade=e.read_shift(2),r.xclrType){case 0:case 4:e.l+=4;break;case 1:r.xclrValue=function(e,r){return At(e,r)}(e,4);break;case 2:r.xclrValue=rn(e);break;case 3:r.xclrValue=function(e){return e.read_shift(4)}(e)}return e.l+=8,r}function Ms(e){var r=e.read_shift(2),t=e.read_shift(2)-4,a=[r];switch(r){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:a[1]=Ps(e);break;case 6:a[1]=function(e,r){return At(e,r)}(e,t);break;case 14:case 15:a[1]=e.read_shift(1===t?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+r+" "+t)}return a}function Us(e,r,t,a){var n,s=Array.isArray(e);r.forEach((function(r){var i=Ft(r.ref);if(s?(e[i.r]||(e[i.r]=[]),n=e[i.r][i.c]):n=e[r.ref],!n){n={t:"z"},s?e[i.r][i.c]=n:e[r.ref]=n;var c=Ut(e["!ref"]||"BDWGO1000001:A1");c.s.r>i.r&&(c.s.r=i.r),c.e.ri.c&&(c.s.c=i.c),c.e.c=0;--f){if(!t&&n.c[f].T)return;t&&!n.c[f].T&&n.c.splice(f,1)}if(t&&a)for(f=0;f0?0|parseInt(a,10):0,o=n.length>0?0|parseInt(n,10):0;return s?o+=r.c:--o,i?c+=r.r:--c,t+(s?"":"$")+Dt(o)+(i?"":"$")+It(c)}return function(a,n){return r=n,a.replace(e,t)}}(),Ws=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Vs=function(){return function(e,r){return e.replace(Ws,(function(e,t,a,n,s,i){var c=Nt(n)-(a?0:r.c),o=xt(i)-(s?0:r.r);return t+"R"+(0==o?"":s?o+1:"["+o+"]")+"C"+(0==c?"":a?c+1:"["+c+"]")}))}}();function Gs(e,r){return e.replace(Ws,(function(e,t,a,n,s,i){return t+("$"==a?a+n:Dt(Nt(n)+r.c))+("$"==s?s+i:It(xt(i)+r.r))}))}function $s(e,r,t){var a=Pt(r).s,n=Ft(t);return Gs(e,{r:n.r-a.r,c:n.c-a.c})}function js(e){return e.replace(/_xlfn\./g,"")}function Xs(e){e.l+=1}function Ks(e,r){var t=e.read_shift(1==r?1:2);return[16383&t,t>>14&1,t>>15&1]}function Ys(e,r,t){var a=2;if(t){if(t.biff>=2&&t.biff<=5)return Js(e);12==t.biff&&(a=4)}var n=e.read_shift(a),s=e.read_shift(a),i=Ks(e,2),c=Ks(e,2);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:s,c:c[0],cRel:c[1],rRel:c[2]}}}function Js(e){var r=Ks(e,2),t=Ks(e,2),a=e.read_shift(1),n=e.read_shift(1);return{s:{r:r[0],c:a,cRel:r[1],rRel:r[2]},e:{r:t[0],c:n,cRel:t[1],rRel:t[2]}}}function qs(e,r,t){if(t&&t.biff>=2&&t.biff<=5)return function(e){var r=Ks(e,2),t=e.read_shift(1);return{r:r[0],c:t,cRel:r[1],rRel:r[2]}}(e);var a=e.read_shift(t&&12==t.biff?4:2),n=Ks(e,2);return{r:a,c:n[0],cRel:n[1],rRel:n[2]}}function Zs(e){var r=e.read_shift(2),t=e.read_shift(2);return{r:r,c:255&t,fQuoted:!!(16384&t),cRel:t>>15,rRel:t>>15}}function Qs(e){var r=1&e[e.l+1];return e.l+=4,[r,1]}function ei(e){return[e.read_shift(1),e.read_shift(1)]}function ri(e,r){var t=[e.read_shift(1)];if(12==r)switch(t[0]){case 2:t[0]=4;break;case 4:t[0]=16;break;case 0:t[0]=1;break;case 1:t[0]=2}switch(t[0]){case 4:t[1]=$a(e,1)?"TRUE":"FALSE",12!=r&&(e.l+=7);break;case 37:case 16:t[1]=va[e[e.l]],e.l+=12==r?4:8;break;case 0:e.l+=8;break;case 1:t[1]=aa(e);break;case 2:t[1]=Za(e,0,{biff:r>0&&r<8?2:r});break;default:throw new Error("Bad SerAr: "+t[0])}return t}function ti(e,r,t){for(var a=e.read_shift(12==t.biff?4:2),n=[],s=0;s!=a;++s)n.push((12==t.biff?ta:cn)(e,8));return n}function ai(e,r,t){var a=0,n=0;12==t.biff?(a=e.read_shift(4),n=e.read_shift(4)):(n=1+e.read_shift(1),a=1+e.read_shift(2)),t.biff>=2&&t.biff<8&&(--a,0==--n&&(n=256));for(var s=0,i=[];s!=a&&(i[s]=[]);++s)for(var c=0;c!=n;++c)i[s][c]=ri(e,t.biff);return i}function ni(e,r,t){return e.l+=2,[Zs(e)]}function si(e){return e.l+=6,[]}function ii(e){return e.l+=2,[ja(e),1&e.read_shift(2)]}var ci=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];var oi={1:{n:"PtgExp",f:function(e,r,t){return e.l++,t&&12==t.biff?[e.read_shift(4,"i"),0]:[e.read_shift(2),e.read_shift(t&&2==t.biff?1:2)]}},2:{n:"PtgTbl",f:At},3:{n:"PtgAdd",f:Xs},4:{n:"PtgSub",f:Xs},5:{n:"PtgMul",f:Xs},6:{n:"PtgDiv",f:Xs},7:{n:"PtgPower",f:Xs},8:{n:"PtgConcat",f:Xs},9:{n:"PtgLt",f:Xs},10:{n:"PtgLe",f:Xs},11:{n:"PtgEq",f:Xs},12:{n:"PtgGe",f:Xs},13:{n:"PtgGt",f:Xs},14:{n:"PtgNe",f:Xs},15:{n:"PtgIsect",f:Xs},16:{n:"PtgUnion",f:Xs},17:{n:"PtgRange",f:Xs},18:{n:"PtgUplus",f:Xs},19:{n:"PtgUminus",f:Xs},20:{n:"PtgPercent",f:Xs},21:{n:"PtgParen",f:Xs},22:{n:"PtgMissArg",f:Xs},23:{n:"PtgStr",f:function(e,r,t){return e.l++,Ka(e,0,t)}},26:{n:"PtgSheet",f:function(e,r,t){return e.l+=5,e.l+=2,e.l+=2==t.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(e,r,t){return e.l+=2==t.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(e){return e.l++,va[e.read_shift(1)]}},29:{n:"PtgBool",f:function(e){return e.l++,0!==e.read_shift(1)}},30:{n:"PtgInt",f:function(e){return e.l++,e.read_shift(2)}},31:{n:"PtgNum",f:function(e){return e.l++,aa(e)}},32:{n:"PtgArray",f:function(e,r,t){var a=(96&e[e.l++])>>5;return e.l+=2==t.biff?6:12==t.biff?14:7,[a]}},33:{n:"PtgFunc",f:function(e,r,t){var a=(96&e[e.l])>>5;e.l+=1;var n=e.read_shift(t&&t.biff<=3?1:2);return[Oi[n],Ri[n],a]}},34:{n:"PtgFuncVar",f:function(e,r,t){var a=e[e.l++],n=e.read_shift(1),s=t&&t.biff<=3?[88==a?-1:0,e.read_shift(1)]:function(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}(e);return[n,(0===s[0]?Ri:Ci)[s[1]]]}},35:{n:"PtgName",f:function(e,r,t){var a=e.read_shift(1)>>>5&3,n=!t||t.biff>=8?4:2,s=e.read_shift(n);switch(t.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12}return[a,0,s]}},36:{n:"PtgRef",f:function(e,r,t){var a=(96&e[e.l])>>5;return e.l+=1,[a,qs(e,0,t)]}},37:{n:"PtgArea",f:function(e,r,t){return[(96&e[e.l++])>>5,Ys(e,t.biff>=2&&t.biff,t)]}},38:{n:"PtgMemArea",f:function(e,r,t){var a=e.read_shift(1)>>>5&3;return e.l+=t&&2==t.biff?3:4,[a,e.read_shift(t&&2==t.biff?1:2)]}},39:{n:"PtgMemErr",f:At},40:{n:"PtgMemNoMem",f:At},41:{n:"PtgMemFunc",f:function(e,r,t){return[e.read_shift(1)>>>5&3,e.read_shift(t&&2==t.biff?1:2)]}},42:{n:"PtgRefErr",f:function(e,r,t){var a=e.read_shift(1)>>>5&3;return e.l+=4,t.biff<8&&e.l--,12==t.biff&&(e.l+=2),[a]}},43:{n:"PtgAreaErr",f:function(e,r,t){var a=(96&e[e.l++])>>5;return e.l+=t&&t.biff>8?12:t.biff<8?6:8,[a]}},44:{n:"PtgRefN",f:function(e,r,t){var a=(96&e[e.l])>>5;e.l+=1;var n=function(e,r,t){var a=t&&t.biff?t.biff:8;if(a>=2&&a<=5)return function(e){var r=e.read_shift(2),t=e.read_shift(1),a=(32768&r)>>15,n=(16384&r)>>14;return r&=16383,1==a&&r>=8192&&(r-=16384),1==n&&t>=128&&(t-=256),{r:r,c:t,cRel:n,rRel:a}}(e);var n=e.read_shift(a>=12?4:2),s=e.read_shift(2),i=(16384&s)>>14,c=(32768&s)>>15;if(s&=16383,1==c)for(;n>524287;)n-=1048576;if(1==i)for(;s>8191;)s-=16384;return{r:n,c:s,cRel:i,rRel:c}}(e,0,t);return[a,n]}},45:{n:"PtgAreaN",f:function(e,r,t){var a=(96&e[e.l++])>>5,n=function(e,r,t){if(t.biff<8)return Js(e);var a=e.read_shift(12==t.biff?4:2),n=e.read_shift(12==t.biff?4:2),s=Ks(e,2),i=Ks(e,2);return{s:{r:a,c:s[0],cRel:s[1],rRel:s[2]},e:{r:n,c:i[0],cRel:i[1],rRel:i[2]}}}(e,0,t);return[a,n]}},46:{n:"PtgMemAreaN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},57:{n:"PtgNameX",f:function(e,r,t){return 5==t.biff?function(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2,"i");e.l+=8;var a=e.read_shift(2);return e.l+=12,[r,t,a]}(e):[e.read_shift(1)>>>5&3,e.read_shift(2),e.read_shift(4)]}},58:{n:"PtgRef3d",f:function(e,r,t){var a=(96&e[e.l])>>5;e.l+=1;var n=e.read_shift(2);return t&&5==t.biff&&(e.l+=12),[a,n,qs(e,0,t)]}},59:{n:"PtgArea3d",f:function(e,r,t){var a=(96&e[e.l++])>>5,n=e.read_shift(2,"i");if(t)switch(t.biff){case 5:e.l+=12;break;case 12:0}return[a,n,Ys(e,0,t)]}},60:{n:"PtgRefErr3d",f:function(e,r,t){var a=(96&e[e.l++])>>5,n=e.read_shift(2),s=4;if(t)switch(t.biff){case 5:s=15;break;case 12:s=6}return e.l+=s,[a,n]}},61:{n:"PtgAreaErr3d",f:function(e,r,t){var a=(96&e[e.l++])>>5,n=e.read_shift(2),s=8;if(t)switch(t.biff){case 5:e.l+=12,s=6;break;case 12:s=12}return e.l+=s,[a,n]}},255:{}},li={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},fi={1:{n:"PtgElfLel",f:ii},2:{n:"PtgElfRw",f:ni},3:{n:"PtgElfCol",f:ni},6:{n:"PtgElfRwV",f:ni},7:{n:"PtgElfColV",f:ni},10:{n:"PtgElfRadical",f:ni},11:{n:"PtgElfRadicalS",f:si},13:{n:"PtgElfColS",f:si},15:{n:"PtgElfColSV",f:si},16:{n:"PtgElfRadicalLel",f:ii},25:{n:"PtgList",f:function(e){e.l+=2;var r=e.read_shift(2),t=e.read_shift(2),a=e.read_shift(4),n=e.read_shift(2),s=e.read_shift(2);return{ixti:r,coltype:3&t,rt:ci[t>>2&31],idx:a,c:n,C:s}}},29:{n:"PtgSxName",f:function(e){return e.l+=2,[e.read_shift(4)]}},255:{}},hi={0:{n:"PtgAttrNoop",f:function(e){return e.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(e,r,t){var a=255&e[e.l+1]?1:0;return e.l+=t&&2==t.biff?3:4,[a]}},2:{n:"PtgAttrIf",f:function(e,r,t){var a=255&e[e.l+1]?1:0;return e.l+=2,[a,e.read_shift(t&&2==t.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function(e,r,t){e.l+=2;for(var a=e.read_shift(t&&2==t.biff?1:2),n=[],s=0;s<=a;++s)n.push(e.read_shift(t&&2==t.biff?1:2));return n}},8:{n:"PtgAttrGoto",f:function(e,r,t){var a=255&e[e.l+1]?1:0;return e.l+=2,[a,e.read_shift(t&&2==t.biff?1:2)]}},16:{n:"PtgAttrSum",f:function(e,r,t){e.l+=t&&2==t.biff?3:4}},32:{n:"PtgAttrBaxcel",f:Qs},33:{n:"PtgAttrBaxcel",f:Qs},64:{n:"PtgAttrSpace",f:function(e){return e.read_shift(2),ei(e)}},65:{n:"PtgAttrSpaceSemi",f:function(e){return e.read_shift(2),ei(e)}},128:{n:"PtgAttrIfError",f:function(e){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(2)]}},255:{}};function ui(e,r,t,a){if(a.biff<8)return At(e,r);for(var n=e.l+r,s=[],i=0;i!==t.length;++i)switch(t[i][0]){case"PtgArray":t[i][1]=ai(e,0,a),s.push(t[i][1]);break;case"PtgMemArea":t[i][2]=ti(e,t[i][1],a),s.push(t[i][2]);break;case"PtgExp":a&&12==a.biff&&(t[i][1][1]=e.read_shift(4),s.push(t[i][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+t[i][0]}return 0!==(r=n-e.l)&&s.push(At(e,r)),s}function di(e,r,t){for(var a,n,s=e.l+r,i=[];s!=e.l;)r=s-e.l,n=e[e.l],a=oi[n]||oi[li[n]],24!==n&&25!==n||(a=(24===n?fi:hi)[e[e.l+1]]),a&&a.f?i.push([a.n,a.f(e,r,t)]):At(e,r);return i}function pi(e){for(var r=[],t=0;t=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function gi(e,r,t){if(!e)return"SH33TJSERR0";if(t.biff>8&&(!e.XTI||!e.XTI[r]))return e.SheetNames[r];if(!e.XTI)return"SH33TJSERR6";var a=e.XTI[r];if(t.biff<8)return r>1e4&&(r-=65536),r<0&&(r=-r),0==r?"":e.XTI[r-1];if(!a)return"SH33TJSERR1";var n="";if(t.biff>8)switch(e[a[0]][0]){case 357:return n=-1==a[1]?"#REF":e.SheetNames[a[1]],a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 358:return null!=t.SID?e.SheetNames[t.SID]:"SH33TJSSAME"+e[a[0]][0];default:return"SH33TJSSRC"+e[a[0]][0]}switch(e[a[0]][0][0]){case 1025:return n=-1==a[1]?"#REF":e.SheetNames[a[1]]||"SH33TJSERR3",a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 14849:return e[a[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[a[0]][0][3]?(n=-1==a[1]?"#REF":e[a[0]][0][3][a[1]]||"SH33TJSERR4",a[1]==a[2]?n:n+":"+e[a[0]][0][3][a[2]]):"SH33TJSERR2"}}function vi(e,r,t){var a=gi(e,r,t);return"#REF"==a?a:function(e,r){if(!e&&!(r&&r.biff<=5&&r.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}(a,t)}function bi(e,r,t,a,n){var s,i,c,o,l=n&&n.biff||8,f={s:{c:0,r:0},e:{c:0,r:0}},h=[],u=0,d=0,p="";if(!e[0]||!e[0][0])return"";for(var m=-1,g="",v=0,b=e[0].length;v=0){switch(e[0][m][1][0]){case 0:g=Ge(" ",e[0][m][1][1]);break;case 1:g=Ge("\r",e[0][m][1][1]);break;default:if(g="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}i+=g,m=-1}h.push(i+mi[T[0]]+s);break;case"PtgIsect":s=h.pop(),i=h.pop(),h.push(i+" "+s);break;case"PtgUnion":s=h.pop(),i=h.pop(),h.push(i+","+s);break;case"PtgRange":s=h.pop(),i=h.pop(),h.push(i+":"+s);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":c=_t(T[1][1],f,n),h.push(Rt(c,l));break;case"PtgRefN":c=t?_t(T[1][1],t,n):T[1][1],h.push(Rt(c,l));break;case"PtgRef3d":u=T[1][1],c=_t(T[1][2],f,n);p=vi(a,u,n);h.push(p+"!"+Rt(c,l));break;case"PtgFunc":case"PtgFuncVar":var E=T[1][0],w=T[1][1];E||(E=0);var A=0==(E&=127)?[]:h.slice(-E);h.length-=E,"User"===w&&(w=A.shift()),h.push(w+"("+A.join(",")+")");break;case"PtgBool":h.push(T[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":h.push(T[1]);break;case"PtgNum":h.push(String(T[1]));break;case"PtgStr":h.push('"'+T[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":o=Ct(T[1][1],t?{s:t}:f,n),h.push(Ot(o,n));break;case"PtgArea":o=Ct(T[1][1],f,n),h.push(Ot(o,n));break;case"PtgArea3d":u=T[1][1],o=T[1][2],p=vi(a,u,n),h.push(p+"!"+Ot(o,n));break;case"PtgAttrSum":h.push("SUM("+h.pop()+")");break;case"PtgName":d=T[1][2];var k=(a.names||[])[d-1]||(a[0]||[])[d],S=k?k.Name:"SH33TJSNAME"+String(d);S&&"_xlfn."==S.slice(0,6)&&!n.xlfn&&(S=S.slice(6)),h.push(S);break;case"PtgNameX":var y,_=T[1][1];if(d=T[1][2],!(n.biff<=5)){var C="";if(14849==((a[_]||[])[0]||[])[0]||(1025==((a[_]||[])[0]||[])[0]?a[_][d]&&a[_][d].itab>0&&(C=a.SheetNames[a[_][d].itab-1]+"!"):C=a.SheetNames[d-1]+"!"),a[_]&&a[_][d])C+=a[_][d].Name;else if(a[0]&&a[0][d])C+=a[0][d].Name;else{var R=(gi(a,_,n)||"").split(";;");R[d-1]?C=R[d-1]:C+="SH33TJSERRX"}h.push(C);break}_<0&&(_=-_),a[_]&&(y=a[_][d]),y||(y={Name:"SH33TJSERRY"}),h.push(y.Name);break;case"PtgParen":var O="(",x=")";if(m>=0){switch(g="",e[0][m][1][0]){case 2:O=Ge(" ",e[0][m][1][1])+O;break;case 3:O=Ge("\r",e[0][m][1][1])+O;break;case 4:x=Ge(" ",e[0][m][1][1])+x;break;case 5:x=Ge("\r",e[0][m][1][1])+x;break;default:if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}m=-1}h.push(O+h.pop()+x);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":h.push("#REF!");break;case"PtgExp":c={c:T[1][1],r:T[1][0]};var I={c:t.c,r:t.r};if(a.sharedf[Lt(c)]){var N=a.sharedf[Lt(c)];h.push(bi(N,f,I,a,n))}else{var D=!1;for(s=0;s!=a.arrayf.length;++s)if(i=a.arrayf[s],!(c.ci[0].e.c)&&!(c.ri[0].e.r)){h.push(bi(i[1],f,I,a,n)),D=!0;break}D||h.push(T[1])}break;case"PtgArray":h.push("{"+pi(T[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=v;break;case"PtgMissArg":h.push("");break;case"PtgList":h.push("Table"+T[1].idx+"[#"+T[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(T))}if(3!=n.biff&&m>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(e[0][v][0])){var F=!0;switch((T=e[0][m])[1][0]){case 4:F=!1;case 0:g=Ge(" ",T[1][1]);break;case 5:F=!1;case 1:g=Ge("\r",T[1][1]);break;default:if(g="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+T[1][0])}h.push((F?g:"")+h.pop()+(F?"":g)),m=-1}}if(h.length>1&&n.WTF)throw new Error("bad formula stack");return h[0]}function Ti(e,r,t){var a,n=e.l+r,s=2==t.biff?1:2,i=e.read_shift(s);if(65535==i)return[[],At(e,r-2)];var c=di(e,i,t);return r!==i+s&&(a=ui(e,r-i-s,c,t)),e.l=n,[c,a]}function Ei(e,r,t){var a,n=e.l+r,s=e.read_shift(2),i=di(e,s,t);return 65535==s?[[],At(e,r-2)]:(r!==s+2&&(a=ui(e,n-s-2,i,t)),[i,a])}function wi(e,r,t){var a=e.l+r,n=an(e);2==t.biff&&++e.l;var s=function(e){var r;if(65535!==ft(e,e.l+6))return[aa(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return r=1===e[e.l+2],e.l+=8,[r,"b"];case 2:return r=e[e.l+2],e.l+=8,[r,"e"];case 3:return e.l+=8,["","s"]}return[]}(e),i=e.read_shift(1);2!=t.biff&&(e.read_shift(1),t.biff>=5&&e.read_shift(4));var c=function(e,r,t){var a,n=e.l+r,s=2==t.biff?1:2,i=e.read_shift(s);if(65535==i)return[[],At(e,r-2)];var c=di(e,i,t);return r!==i+s&&(a=ui(e,r-i-s,c,t)),e.l=n,[c,a]}(e,a-e.l,t);return{cell:n,val:s[0],formula:c,shared:i>>3&1,tt:s[1]}}function Ai(e,r,t){var a=e.read_shift(4),n=di(e,a,t),s=e.read_shift(4);return[n,s>0?ui(e,s,n,t):null]}var ki=Ai,Si=Ai,yi=Ai,_i=Ai,Ci={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Ri={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Oi={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function xi(e){return"of:"==e.slice(0,3)&&(e=e.slice(3)),61==e.charCodeAt(0)&&61==(e=e.slice(1)).charCodeAt(0)&&(e=e.slice(1)),(e=(e=(e=e.replace(/COM\.MICROSOFT\./g,"")).replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,(function(e,r){return r.replace(/\./g,"")}))).replace(/\[.(#[A-Z]*[?!])\]/g,"$1")).replace(/[;~]/g,",").replace(/\|/g,";")}function Ii(e){var r=e.split(":");return[r[0].split(".")[0],r[0].split(".")[1]+(r.length>1?":"+(r[1].split(".")[1]||r[1].split(".")[0]):"")]}var Ni={},Di={};function Fi(e,r){if(e){var t=[.7,.7,.75,.75,.3,.3];"xlml"==r&&(t=[1,1,1,1,.5,.5]),null==e.left&&(e.left=t[0]),null==e.right&&(e.right=t[1]),null==e.top&&(e.top=t[2]),null==e.bottom&&(e.bottom=t[3]),null==e.header&&(e.header=t[4]),null==e.footer&&(e.footer=t[5])}}function Li(e,r,t,a,n,s){try{a.cellNF&&(e.z=W[r])}catch(c){if(a.WTF)throw c}if("z"!==e.t||a.cellStyles){if("d"===e.t&&"string"===typeof e.v&&(e.v=ze(e.v)),(!a||!1!==a.cellText)&&"z"!==e.t)try{if(null==W[r]&&Ae(Se[r]||"General",r),"e"===e.t)e.w=e.w||va[e.v];else if(0===r)if("n"===e.t)(0|e.v)===e.v?e.w=e.v.toString(10):e.w=Q(e.v);else if("d"===e.t){var i=Ne(e.v);e.w=(0|i)===i?i.toString(10):Q(i)}else{if(void 0===e.v)return"";e.w=ee(e.v,Di)}else"d"===e.t?e.w=we(r,Ne(e.v),Di):e.w=we(r,e.v,Di)}catch(c){if(a.WTF)throw c}if(a.cellStyles&&null!=t)try{e.s=s.Fills[t],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=is(n.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),a.WTF&&(e.s.fgColor.raw_rgb=n.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=is(n.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),a.WTF&&(e.s.bgColor.raw_rgb=n.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(c){if(a.WTF&&s.Fills)throw c}}}var Pi=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,Mi=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,Ui=/<(?:\w:)?hyperlink [^>]*>/gm,Bi=/"(\w*:\w*)"/,Hi=/<(?:\w:)?col\b[^>]*[\/]?>/g,zi=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,Wi=/<(?:\w:)?pageMargins[^>]*\/>/g,Vi=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,Gi=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,$i=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function ji(e,r,t,a,n,s,i){if(!e)return e;a||(a={"!id":{}}),null!=T&&null==r.dense&&(r.dense=T);var c=r.dense?[]:{},o={s:{r:2e6,c:2e6},e:{r:0,c:0}},l="",f="",h=e.match(Mi);h?(l=e.slice(0,h.index),f=e.slice(h.index+h[0].length)):l=f=e;var u=l.match(Vi);u?Xi(u[0],c,n,t):(u=l.match(Gi))&&function(e,r,t,a,n){Xi(e.slice(0,e.indexOf(">")),t,a,n)}(u[0],u[1],c,n,t);var d=(l.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(d>0){var p=l.slice(d,d+50).match(Bi);p&&function(e,r){var t=Ut(r);t.s.r<=t.e.r&&t.s.c<=t.e.c&&t.s.r>=0&&t.s.c>=0&&(e["!ref"]=Mt(t))}(c,p[1])}var m=l.match($i);m&&m[1]&&function(e,r){r.Views||(r.Views=[{}]);(e.match(Ki)||[]).forEach((function(e,t){var a=ur(e);r.Views[t]||(r.Views[t]={}),+a.zoomScale&&(r.Views[t].zoom=+a.zoomScale),wr(a.rightToLeft)&&(r.Views[t].RTL=!0)}))}(m[1],n);var g=[];if(r.cellStyles){var v=l.match(Hi);v&&function(e,r){for(var t=!1,a=0;a!=r.length;++a){var n=ur(r[a],!0);n.hidden&&(n.hidden=wr(n.hidden));var s=parseInt(n.min,10)-1,i=parseInt(n.max,10)-1;for(n.outlineLevel&&(n.level=+n.outlineLevel||0),delete n.min,delete n.max,n.width=+n.width,!t&&n.width&&(t=!0,ms(n.width)),gs(n);s<=i;)e[s++]=Ve(n)}}(g,v)}h&&Yi(h[1],c,r,o,s,i);var b=f.match(zi);b&&(c["!autofilter"]=function(e){var r={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return r}(b[0]));var E=[],w=f.match(Pi);if(w)for(d=0;d!=w.length;++d)E[d]=Ut(w[d].slice(w[d].indexOf('"')+1));var A=f.match(Ui);A&&function(e,r,t){for(var a=Array.isArray(e),n=0;n!=r.length;++n){var s=ur(_r(r[n]),!0);if(!s.ref)return;var i=((t||{})["!id"]||[])[s.id];i?(s.Target=i.Target,s.location&&(s.Target+="#"+gr(s.location))):(s.Target="#"+gr(s.location),i={Target:s.Target,TargetMode:"Internal"}),s.Rel=i,s.tooltip&&(s.Tooltip=s.tooltip,delete s.tooltip);for(var c=Ut(s.ref),o=c.s.r;o<=c.e.r;++o)for(var l=c.s.c;l<=c.e.c;++l){var f=Lt({c:l,r:o});a?(e[o]||(e[o]=[]),e[o][l]||(e[o][l]={t:"z",v:void 0}),e[o][l].l=s):(e[f]||(e[f]={t:"z",v:void 0}),e[f].l=s)}}}(c,A,a);var k=f.match(Wi);if(k&&(c["!margins"]=function(e){var r={};return["left","right","top","bottom","header","footer"].forEach((function(t){e[t]&&(r[t]=parseFloat(e[t]))})),r}(ur(k[0]))),!c["!ref"]&&o.e.c>=o.s.c&&o.e.r>=o.s.r&&(c["!ref"]=Mt(o)),r.sheetRows>0&&c["!ref"]){var S=Ut(c["!ref"]);r.sheetRows<=+S.e.r&&(S.e.r=r.sheetRows-1,S.e.r>o.e.r&&(S.e.r=o.e.r),S.e.ro.e.c&&(S.e.c=o.e.c),S.e.c0&&(c["!cols"]=g),E.length>0&&(c["!merges"]=E),c}function Xi(e,r,t,a){var n=ur(e);t.Sheets[a]||(t.Sheets[a]={}),n.codeName&&(t.Sheets[a].CodeName=gr(_r(n.codeName)))}var Ki=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;var Yi=function(){var e=/<(?:\w+:)?c[ \/>]/,r=/<\/(?:\w+:)?row>/,t=/r=["']([^"']*)["']/,a=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,n=/ref=["']([^"']*)["']/,s=Rr("v"),i=Rr("f");return function(c,o,l,f,h,u){for(var d,p,m,g,v,b=0,T="",E=[],w=[],A=0,k=0,S=0,y="",_=0,C=0,R=0,O=0,x=Array.isArray(u.CellXf),I=[],N=[],D=Array.isArray(o),F=[],L={},P=!1,M=!!l.sheetStubs,U=c.split(r),B=0,H=U.length;B!=H;++B){var z=(T=U[B].trim()).length;if(0!==z){var V=0;e:for(b=0;b":if("/"!=T[b-1]){++b;break e}if(l&&l.cellStyles){if(_=null!=(p=ur(T.slice(V,b),!0)).r?parseInt(p.r,10):_+1,C=-1,l.sheetRows&&l.sheetRows<_)continue;L={},P=!1,p.ht&&(P=!0,L.hpt=parseFloat(p.ht),L.hpx=Ts(L.hpt)),"1"==p.hidden&&(P=!0,L.hidden=!0),null!=p.outlineLevel&&(P=!0,L.level=+p.outlineLevel),P&&(F[_-1]=L)}break;case"<":V=b}if(V>=b)break;if(_=null!=(p=ur(T.slice(V,b),!0)).r?parseInt(p.r,10):_+1,C=-1,!(l.sheetRows&&l.sheetRows<_)){f.s.r>_-1&&(f.s.r=_-1),f.e.r<_-1&&(f.e.r=_-1),l&&l.cellStyles&&(L={},P=!1,p.ht&&(P=!0,L.hpt=parseFloat(p.ht),L.hpx=Ts(L.hpt)),"1"==p.hidden&&(P=!0,L.hidden=!0),null!=p.outlineLevel&&(P=!0,L.level=+p.outlineLevel),P&&(F[_-1]=L)),E=T.slice(b).split(e);for(var G=0;G!=E.length&&"<"==E[G].trim().charAt(0);++G);for(E=E.slice(G),b=0;b!=E.length;++b)if(0!==(T=E[b].trim()).length){if(w=T.match(t),A=b,k=0,S=0,T="":"")+T,null!=w&&2===w.length){for(A=0,y=w[1],k=0;k!=y.length&&!((S=y.charCodeAt(k)-64)<1||S>26);++k)A=26*A+S;C=--A}else++C;for(k=0;k!=T.length&&62!==T.charCodeAt(k);++k);if(++k,(p=ur(T.slice(0,k),!0)).r||(p.r=Lt({r:_-1,c:C})),d={t:""},null!=(w=(y=T.slice(k)).match(s))&&""!==w[1]&&(d.v=gr(w[1])),l.cellFormula){if(null!=(w=y.match(i))&&""!==w[1]){if(d.f=gr(_r(w[1])).replace(/\r\n/g,"\n"),l.xlfn||(d.f=js(d.f)),w[0].indexOf('t="array"')>-1)d.F=(y.match(n)||[])[1],d.F.indexOf(":")>-1&&I.push([Ut(d.F),d.F]);else if(w[0].indexOf('t="shared"')>-1){g=ur(w[0]);var $=gr(_r(w[1]));l.xlfn||($=js($)),N[parseInt(g.si,10)]=[g,$,p.r]}}else(w=y.match(/]*\/>/))&&N[(g=ur(w[0])).si]&&(d.f=$s(N[g.si][1],N[g.si][2],p.r));var j=Ft(p.r);for(k=0;k=I[k][0].s.r&&j.r<=I[k][0].e.r&&j.c>=I[k][0].s.c&&j.c<=I[k][0].e.c&&(d.F=I[k][1])}if(null==p.t&&void 0===d.v)if(d.f||d.F)d.v=0,d.t="n";else{if(!M)continue;d.t="z"}else d.t=p.t||"n";switch(f.s.c>C&&(f.s.c=C),f.e.c0&&(o["!rows"]=F)}}();var Ji=ta;function qi(e){return[Yt(e),aa(e),"n"]}var Zi=ta;var Qi=["left","right","top","bottom","header","footer"];function ec(e,r,t,a,n,s){var i=s||{"!type":"chart"};if(!e)return s;var c=0,o=0,l="A",f={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach((function(e){var r=function(e){var r,t=[],a=e.match(/^/);(e.match(/(.*?)<\/c:pt>/gm)||[]).forEach((function(e){var r=e.match(/(.*)<\/c:v><\/c:pt>/);r&&(t[+r[1]]=a?+r[2]:r[2])}));var n=gr((e.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/(.*?)<\/c:f>/gm)||[]).forEach((function(e){r=e.replace(/<.*?>/g,"")})),[t,n,r]}(e);f.s.r=f.s.c=0,f.e.c=c,l=Dt(c),r[0].forEach((function(e,t){i[l+It(t)]={t:"n",v:e,z:r[1]},o=t})),f.e.r0&&(i["!ref"]=Mt(f)),i}var rc=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],tc=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],ac=[],nc=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function sc(e,r){for(var t=0;t!=e.length;++t)for(var a=e[t],n=0;n!=r.length;++n){var s=r[n];if(null==a[s[0]])a[s[0]]=s[1];else switch(s[2]){case"bool":"string"==typeof a[s[0]]&&(a[s[0]]=wr(a[s[0]]));break;case"int":"string"==typeof a[s[0]]&&(a[s[0]]=parseInt(a[s[0]],10))}}}function ic(e,r){for(var t=0;t!=r.length;++t){var a=r[t];if(null==e[a[0]])e[a[0]]=a[1];else switch(a[2]){case"bool":"string"==typeof e[a[0]]&&(e[a[0]]=wr(e[a[0]]));break;case"int":"string"==typeof e[a[0]]&&(e[a[0]]=parseInt(e[a[0]],10))}}}function cc(e){ic(e.WBProps,rc),ic(e.CalcPr,nc),sc(e.WBView,tc),sc(e.Sheets,ac),Di.date1904=wr(e.WBProps.date1904)}var oc="][*?/\\".split("");function lc(e,r){if(e.length>31){if(r)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var t=!0;return oc.forEach((function(a){if(-1!=e.indexOf(a)){if(!r)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");t=!1}})),t}var fc=/<\w+:workbook/;function hc(e,r){var t={};return e.read_shift(4),t.ArchID=e.read_shift(4),e.l+=r-8,t}function uc(e,r,t){return".bin"===r.slice(-4)?function(e,r){var t={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},a=[],n=!1;r||(r={}),r.biff=12;var s=[],i=[[]];return i.SheetNames=[],i.XTI=[],zc[16]={n:"BrtFRTArchID$",f:hc},St(e,(function(e,c,o){switch(o){case 156:i.SheetNames.push(e.name),t.Sheets.push(e);break;case 153:t.WBProps=e;break;case 39:null!=e.Sheet&&(r.SID=e.Sheet),e.Ref=bi(e.Ptg,0,null,i,r),delete r.SID,delete e.Ptg,s.push(e);break;case 1036:case 361:case 2071:case 158:case 143:case 664:case 353:case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:case 16:break;case 357:case 358:case 355:case 667:i[0].length?i.push([o,e]):i[0]=[o,e],i[i.length-1].XTI=[];break;case 362:0===i.length&&(i[0]=[],i[0].XTI=[]),i[i.length-1].XTI=i[i.length-1].XTI.concat(e),i.XTI=i.XTI.concat(e);break;case 35:case 37:a.push(o),n=!0;break;case 36:case 38:a.pop(),n=!1;break;default:if(c.T);else if(!n||r.WTF&&37!=a[a.length-1]&&35!=a[a.length-1])throw new Error("Unexpected record 0x"+o.toString(16))}}),r),cc(t),t.Names=s,t.supbooks=i,t}(e,t):function(e,r){if(!e)throw new Error("Could not find file");var t={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},a=!1,n="xmlns",s={},i=0;if(e.replace(lr,(function(c,o){var l=ur(c);switch(dr(l[0])){case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":rc.forEach((function(e){if(null!=l[e[0]])switch(e[2]){case"bool":t.WBProps[e[0]]=wr(l[e[0]]);break;case"int":t.WBProps[e[0]]=parseInt(l[e[0]],10);break;default:t.WBProps[e[0]]=l[e[0]]}})),l.codeName&&(t.WBProps.CodeName=_r(l.codeName));break;case"":delete l[0],t.WBView.push(l);break;case"":case"":a=!0;break;case"":case"":case"":a=!1;break;case"":s.Ref=gr(_r(e.slice(i,o))),t.Names.push(s);break;case"":delete l[0],t.CalcPr=l;break;default:if(!a&&r.WTF)throw new Error("unrecognized "+l[0]+" in workbook")}return c})),-1===Hr.indexOf(t.xmlns))throw new Error("Unknown Namespace: "+t.xmlns);return cc(t),t}(e,t)}function dc(e,r,t,a,n,s,i,c){return".bin"===r.slice(-4)?function(e,r,t,a,n,s,i){if(!e)return e;var c=r||{};a||(a={"!id":{}}),null!=T&&null==c.dense&&(c.dense=T);var o,l,f,h,u,d,p,m,g,v,b=c.dense?[]:{},E={s:{r:2e6,c:2e6},e:{r:0,c:0}},w=[],A=!1,k=!1,S=[];c.biff=12,c["!row"]=0;var y=0,_=!1,C=[],R={},O=c.supbooks||n.supbooks||[[]];if(O.sharedf=R,O.arrayf=C,O.SheetNames=n.SheetNames||n.Sheets.map((function(e){return e.name})),!c.supbooks&&(c.supbooks=O,n.Names))for(var x=0;x=x[0].s.r&&l.r<=x[0].e.r&&d>=x[0].s.c&&d<=x[0].e.c&&(f.F=Mt(x[0]),_=!0)}!_&&e.length>3&&(f.f=e[3])}if(E.s.r>l.r&&(E.s.r=l.r),E.s.c>d&&(E.s.c=d),E.e.rl.r&&(E.s.r=l.r),E.s.c>d&&(E.s.c=d),E.e.r=e.s;)D[e.e--]={width:e.w/256,hidden:!!(1&e.flags),level:e.level},L||(L=!0,ms(e.w/256)),gs(D[e.e+1]);break;case 161:b["!autofilter"]={ref:Mt(e)};break;case 476:b["!margins"]=e;break;case 147:n.Sheets[t]||(n.Sheets[t]={}),e.name&&(n.Sheets[t].CodeName=e.name),(e.above||e.left)&&(b["!outline"]={above:e.above,left:e.left});break;case 137:n.Views||(n.Views=[{}]),n.Views[0]||(n.Views[0]={}),e.RTL&&(n.Views[0].RTL=!0);break;case 485:case 64:case 1053:case 151:case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:A=!0;break;case 36:A=!1;break;case 37:w.push(T),A=!0;break;case 38:w.pop(),A=!1;break;default:if(r.T);else if(!A||c.WTF)throw new Error("Unexpected record 0x"+T.toString(16))}}),c),delete c.supbooks,delete c["!row"],!b["!ref"]&&(E.s.r<2e6||o&&(o.e.r>0||o.e.c>0||o.s.r>0||o.s.c>0))&&(b["!ref"]=Mt(o||E)),c.sheetRows&&b["!ref"]){var P=Ut(b["!ref"]);c.sheetRows<=+P.e.r&&(P.e.r=c.sheetRows-1,P.e.r>E.e.r&&(P.e.r=E.e.r),P.e.rE.e.c&&(P.e.c=E.e.c),P.e.c0&&(b["!merges"]=S),D.length>0&&(b["!cols"]=D),F.length>0&&(b["!rows"]=F),b}(e,a,t,n,s,i,c):ji(e,a,t,n,s,i,c)}function pc(e,r,t,a,n,s,i,c){return".bin"===r.slice(-4)?function(e,r,t,a,n){if(!e)return e;a||(a={"!id":{}});var s={"!type":"chart","!drawel":null,"!rel":""},i=[],c=!1;return St(e,(function(e,a,o){switch(o){case 550:s["!rel"]=e;break;case 651:n.Sheets[t]||(n.Sheets[t]={}),e.name&&(n.Sheets[t].CodeName=e.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:c=!0;break;case 36:c=!1;break;case 37:i.push(o);break;case 38:i.pop();break;default:if(a.T>0)i.push(o);else if(a.T<0)i.pop();else if(!c||r.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}}),r),a["!id"][s["!rel"]]&&(s["!drawel"]=a["!id"][s["!rel"]]),s}(e,a,t,n,s):function(e,r,t,a,n){if(!e)return e;a||(a={"!id":{}});var s,i={"!type":"chart","!drawel":null,"!rel":""},c=e.match(Vi);return c&&Xi(c[0],0,n,t),(s=e.match(/drawing r:id="(.*?)"/))&&(i["!rel"]=s[1]),a["!id"][i["!rel"]]&&(i["!drawel"]=a["!id"][i["!rel"]]),i}(e,0,t,n,s)}function mc(e,r,t,a){return".bin"===r.slice(-4)?function(e,r,t){var a={NumberFmt:[]};for(var n in W)a.NumberFmt[n]=W[n];a.CellXf=[],a.Fonts=[];var s=[],i=!1;return St(e,(function(e,n,c){switch(c){case 44:a.NumberFmt[e[0]]=e[1],Ae(e[1],e[0]);break;case 43:a.Fonts.push(e),null!=e.color.theme&&r&&r.themeElements&&r.themeElements.clrScheme&&(e.color.rgb=is(r.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0));break;case 1025:case 45:case 46:case 48:case 507:case 572:case 475:case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 47:617==s[s.length-1]&&a.CellXf.push(e);break;case 35:i=!0;break;case 36:i=!1;break;case 37:s.push(c),i=!0;break;case 38:s.pop(),i=!1;break;default:if(n.T>0)s.push(c);else if(n.T<0)s.pop();else if(!i||t.WTF&&37!=s[s.length-1])throw new Error("Unexpected record 0x"+c.toString(16))}})),a}(e,t,a):ks(e,t,a)}function gc(e,r,t){return".bin"===r.slice(-4)?function(e,r){var t=[],a=!1;return St(e,(function(e,n,s){switch(s){case 159:t.Count=e[0],t.Unique=e[1];break;case 19:t.push(e);break;case 160:return!0;case 35:a=!0;break;case 36:a=!1;break;default:if(n.T,!a||r.WTF)throw new Error("Unexpected record 0x"+s.toString(16))}})),t}(e,t):function(e,r){var t=[],a="";if(!e)return t;var n=e.match(Wn);if(n){a=n[2].replace(Vn,"").split(Gn);for(var s=0;s!=a.length;++s){var i=zn(a[s].trim(),r);null!=i&&(t[t.length]=i)}n=ur(n[1]),t.Count=n.count,t.Unique=n.uniqueCount}return t}(e,t)}function vc(e,r,t){return".bin"===r.slice(-4)?function(e,r){var t=[],a=[],n={},s=!1;return St(e,(function(e,i,c){switch(c){case 632:a.push(e);break;case 635:n=e;break;case 637:n.t=e.t,n.h=e.h,n.r=e.r;break;case 636:if(n.author=a[n.iauthor],delete n.iauthor,r.sheetRows&&n.rfx&&r.sheetRows<=n.rfx.r)break;n.t||(n.t=""),delete n.rfx,t.push(n);break;case 3072:case 37:case 38:break;case 35:s=!0;break;case 36:s=!1;break;default:if(i.T);else if(!s||r.WTF)throw new Error("Unexpected record 0x"+c.toString(16))}})),t}(e,t):function(e,r){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var t=[],a=[],n=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);n&&n[1]&&n[1].split(/<\/\w*:?author>/).forEach((function(e){if(""!==e&&""!==e.trim()){var r=e.match(/<(?:\w+:)?author[^>]*>(.*)/);r&&t.push(r[1])}}));var s=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return s&&s[1]&&s[1].split(/<\/\w*:?comment>/).forEach((function(e){if(""!==e&&""!==e.trim()){var n=e.match(/<(?:\w+:)?comment[^>]*>/);if(n){var s=ur(n[0]),i={author:s.authorId&&t[s.authorId]||"sheetjsghost",ref:s.ref,guid:s.guid},c=Ft(s.ref);if(!(r.sheetRows&&r.sheetRows<=c.r)){var o=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),l=!!o&&!!o[1]&&zn(o[1])||{r:"",t:"",h:""};i.r=l.r,""==l.r&&(l.t=l.h=""),i.t=(l.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),r.cellHTML&&(i.h=l.h),a.push(i)}}}})),a}(e,t)}function bc(e,r,t){return".bin"===r.slice(-4)?function(e){var r=[];return St(e,(function(e,t,a){if(63===a)r.push(e);else if(!t.T)throw new Error("Unexpected record 0x"+a.toString(16))})),r}(e):function(e){var r=[];if(!e)return r;var t=1;return(e.match(lr)||[]).forEach((function(e){var a=ur(e);switch(a[0]){case"":case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":break;case"":case"":i=2;break;case"":s=!1;break;case"-1?gr(r||e).replace(/<.*?>/g,""):a.r;break;case"DateTime":"Z"!=e.slice(-1)&&(e+="Z"),a.v=(ze(e)-new Date(Date.UTC(1899,11,30)))/864e5,a.v!==a.v?a.v=gr(e):a.v<60&&(a.v=a.v-1),f&&"General"!=f||(f="yyyy-mm-dd");case"Number":void 0===a.v&&(a.v=+e),a.t||(a.t="n");break;case"Error":a.t="e",a.v=ba[e],!1!==l.cellText&&(a.w=e);break;default:""==e&&""==r?a.t="z":(a.t="s",a.v=Er(r||e))}if(Cc(a,f,l),!1!==l.cellFormula)if(a.Formula){var m=gr(a.Formula);61==m.charCodeAt(0)&&(m=m.slice(1)),a.f=zs(m,n),delete a.Formula,"RC"==a.ArrayRange?a.F=zs("RC:RC",n):a.ArrayRange&&(a.F=zs(a.ArrayRange,n),o.push([Ut(a.F),a.F]))}else for(p=0;p=o[p][0].s.r&&n.r<=o[p][0].e.r&&n.c>=o[p][0].s.c&&n.c<=o[p][0].e.c&&(a.F=o[p][1]);l.cellStyles&&(d.forEach((function(e){!u.patternType&&e.patternType&&(u.patternType=e.patternType)})),a.s=u),void 0!==a.StyleID&&(a.ixfe=a.StyleID)}function xc(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.v=e.w=e.ixfe=void 0}function Ic(e,r){var t=r||{};ke();var a=g(Mr(e));"binary"!=t.type&&"array"!=t.type&&"base64"!=t.type||(a="undefined"!==typeof m?m.utils.decode(65001,d(a)):_r(a));var n,s=a.slice(0,1024).toLowerCase(),i=!1;if((1023&(s=s.replace(/".*?"/g,"")).indexOf(">"))>Math.min(1023&s.indexOf(","),1023&s.indexOf(";"))){var c=Ve(t);return c.type="string",Fn.to_workbook(a,c)}if(-1==s.indexOf("=0&&(i=!0)})),i)return function(e,r){var t=e.match(/[\s\S]*?<\/table>/gi);if(!t||0==t.length)throw new Error("Invalid HTML: could not find ");if(1==t.length)return zt(Gc(t[0],r),r);var a={SheetNames:[],Sheets:{}};return t.forEach((function(e,t){Vo(a,Gc(e,r),"Sheet"+(t+1))})),a}(a,t);wc={"General Number":"General","General Date":W[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":W[15],"Short Date":W[14],"Long Time":W[19],"Medium Time":W[18],"Short Time":W[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:W[2],Standard:W[4],Percent:W[10],Scientific:W[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var o,l=[];null!=T&&null==t.dense&&(t.dense=T);var f,h={},u=[],p=t.dense?[]:{},v="",b={},E={},w=Sc(''),A=0,k=0,S=0,y={s:{r:2e6,c:2e6},e:{r:0,c:0}},_={},C={},R="",O=0,x=[],I={},N={},D=0,F=[],L=[],P={},M=[],U=!1,B=[],H=[],z={},V=0,G=0,$={Sheets:[],WBProps:{date1904:!1}},j={};Ur.lastIndex=0,a=a.replace(//gm,"");for(var X="";n=Ur.exec(a);)switch(n[3]=(X=n[3]).toLowerCase()){case"data":if("data"==X){if("/"===n[1]){if((o=l.pop())[0]!==n[3])throw new Error("Bad state: "+o.join("|"))}else"/"!==n[0].charAt(n[0].length-2)&&l.push([n[3],!0]);break}if(l[l.length-1][1])break;"/"===n[1]?Oc(a.slice(A,n.index),R,w,"comment"==l[l.length-1][0]?P:b,{c:k,r:S},_,M[k],E,B,t):(R="",w=Sc(n[0]),A=n.index+n[0].length);break;case"cell":if("/"===n[1])if(L.length>0&&(b.c=L),(!t.sheetRows||t.sheetRows>S)&&void 0!==b.v&&(t.dense?(p[S]||(p[S]=[]),p[S][k]=b):p[Dt(k)+It(S)]=b),b.HRef&&(b.l={Target:gr(b.HRef)},b.HRefScreenTip&&(b.l.Tooltip=b.HRefScreenTip),delete b.HRef,delete b.HRefScreenTip),(b.MergeAcross||b.MergeDown)&&(V=k+(0|parseInt(b.MergeAcross,10)),G=S+(0|parseInt(b.MergeDown,10)),x.push({s:{c:k,r:S},e:{c:V,r:G}})),t.sheetStubs)if(b.MergeAcross||b.MergeDown){for(var K=k;K<=V;++K)for(var Y=S;Y<=G;++Y)(K>k||Y>S)&&(t.dense?(p[Y]||(p[Y]=[]),p[Y][K]={t:"z"}):p[Dt(K)+It(Y)]={t:"z"});k=V+1}else++k;else b.MergeAcross?k=V+1:++k;else(b=yc(n[0])).Index&&(k=+b.Index-1),ky.e.c&&(y.e.c=k),"/>"===n[0].slice(-2)&&++k,L=[];break;case"row":"/"===n[1]||"/>"===n[0].slice(-2)?(Sy.e.r&&(y.e.r=S),"/>"===n[0].slice(-2)&&(E=Sc(n[0])).Index&&(S=+E.Index-1),k=0,++S):((E=Sc(n[0])).Index&&(S=+E.Index-1),z={},("0"==E.AutoFitHeight||E.Height)&&(z.hpx=parseInt(E.Height,10),z.hpt=bs(z.hpx),H[S]=z),"1"==E.Hidden&&(z.hidden=!0,H[S]=z));break;case"worksheet":if("/"===n[1]){if((o=l.pop())[0]!==n[3])throw new Error("Bad state: "+o.join("|"));u.push(v),y.s.r<=y.e.r&&y.s.c<=y.e.c&&(p["!ref"]=Mt(y),t.sheetRows&&t.sheetRows<=y.e.r&&(p["!fullref"]=p["!ref"],y.e.r=t.sheetRows-1,p["!ref"]=Mt(y))),x.length&&(p["!merges"]=x),M.length>0&&(p["!cols"]=M),H.length>0&&(p["!rows"]=H),h[v]=p}else y={s:{r:2e6,c:2e6},e:{r:0,c:0}},S=k=0,l.push([n[3],!1]),o=Sc(n[0]),v=gr(o.Name),p=t.dense?[]:{},x=[],B=[],H=[],j={name:v,Hidden:0},$.Sheets.push(j);break;case"table":if("/"===n[1]){if((o=l.pop())[0]!==n[3])throw new Error("Bad state: "+o.join("|"))}else{if("/>"==n[0].slice(-2))break;l.push([n[3],!1]),M=[],U=!1}break;case"style":"/"===n[1]?Rc(_,C,t):C=Sc(n[0]);break;case"numberformat":C.nf=gr(Sc(n[0]).Format||"General"),wc[C.nf]&&(C.nf=wc[C.nf]);for(var J=0;392!=J&&W[J]!=C.nf;++J);if(392==J)for(J=57;392!=J;++J)if(null==W[J]){Ae(C.nf,J);break}break;case"column":if("table"!==l[l.length-1][0])break;if((f=Sc(n[0])).Hidden&&(f.hidden=!0,delete f.Hidden),f.Width&&(f.wpx=parseInt(f.Width,10)),!U&&f.wpx>10){U=!0,fs=cs;for(var q=0;q0&&(ee.Sheet=$.Sheets.length-1),$.Names.push(ee);break;case"namedcell":case"b":case"i":case"u":case"s":case"em":case"h2":case"h3":case"sub":case"sup":case"span":case"alignment":case"borders":case"border":case"protection":case"paragraphs":case"name":case"pixelsperinch":case"null":break;case"font":if("/>"===n[0].slice(-2))break;"/"===n[1]?R+=a.slice(O,n.index):O=n.index+n[0].length;break;case"interior":if(!t.cellStyles)break;C.Interior=Sc(n[0]);break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if("/>"===n[0].slice(-2))break;"/"===n[1]?Na(I,X,a.slice(D,n.index)):D=n.index+n[0].length;break;case"styles":case"workbook":if("/"===n[1]){if((o=l.pop())[0]!==n[3])throw new Error("Bad state: "+o.join("|"))}else l.push([n[3],!1]);break;case"comment":if("/"===n[1]){if((o=l.pop())[0]!==n[3])throw new Error("Bad state: "+o.join("|"));xc(P),L.push(P)}else l.push([n[3],!1]),P={a:(o=Sc(n[0])).Author};break;case"autofilter":if("/"===n[1]){if((o=l.pop())[0]!==n[3])throw new Error("Bad state: "+o.join("|"))}else if("/"!==n[0].charAt(n[0].length-2)){var re=Sc(n[0]);p["!autofilter"]={ref:zs(re.Range).replace(/\$/g,"")},l.push([n[3],!0])}break;case"datavalidation":if("/"===n[1]){if((o=l.pop())[0]!==n[3])throw new Error("Bad state: "+o.join("|"))}else"/"!==n[0].charAt(n[0].length-2)&&l.push([n[3],!0]);break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if("/"===n[1]){if((o=l.pop())[0]!==n[3])throw new Error("Bad state: "+o.join("|"))}else"/"!==n[0].charAt(n[0].length-2)&&l.push([n[3],!0]);break;default:if(0==l.length&&"document"==n[3])return ao(a,t);if(0==l.length&&"uof"==n[3])return ao(a,t);var te=!0;switch(l[l.length-1][0]){case"officedocumentsettings":switch(n[3]){case"allowpng":case"removepersonalinformation":case"downloadcomponents":case"locationofcomponents":case"colors":case"color":case"index":case"rgb":case"targetscreensize":case"readonlyrecommended":break;default:te=!1}break;case"componentoptions":switch(n[3]){case"toolbar":case"hideofficelogo":case"spreadsheetautofit":case"label":case"caption":case"maxheight":case"maxwidth":case"nextsheetnumber":break;default:te=!1}break;case"excelworkbook":switch(n[3]){case"date1904":$.WBProps.date1904=!0;break;case"windowheight":case"windowwidth":case"windowtopx":case"windowtopy":case"tabratio":case"protectstructure":case"protectwindow":case"protectwindows":case"activesheet":case"displayinknotes":case"firstvisiblesheet":case"supbook":case"sheetname":case"sheetindex":case"sheetindexfirst":case"sheetindexlast":case"dll":case"acceptlabelsinformulas":case"donotsavelinkvalues":case"iteration":case"maxiterations":case"maxchange":case"path":case"xct":case"count":case"selectedsheets":case"calculation":case"uncalced":case"startupprompt":case"crn":case"externname":case"formula":case"colfirst":case"collast":case"wantadvise":case"boolean":case"error":case"text":case"ole":case"noautorecover":case"publishobjects":case"donotcalculatebeforesave":case"number":case"refmoder1c1":case"embedsavesmarttags":break;default:te=!1}break;case"workbookoptions":switch(n[3]){case"owcversion":case"height":case"width":break;default:te=!1}break;case"worksheetoptions":switch(n[3]){case"visible":if("/>"===n[0].slice(-2));else if("/"===n[1])switch(a.slice(D,n.index)){case"SheetHidden":j.Hidden=1;break;case"SheetVeryHidden":j.Hidden=2}else D=n.index+n[0].length;break;case"header":p["!margins"]||Fi(p["!margins"]={},"xlml"),isNaN(+ur(n[0]).Margin)||(p["!margins"].header=+ur(n[0]).Margin);break;case"footer":p["!margins"]||Fi(p["!margins"]={},"xlml"),isNaN(+ur(n[0]).Margin)||(p["!margins"].footer=+ur(n[0]).Margin);break;case"pagemargins":var ae=ur(n[0]);p["!margins"]||Fi(p["!margins"]={},"xlml"),isNaN(+ae.Top)||(p["!margins"].top=+ae.Top),isNaN(+ae.Left)||(p["!margins"].left=+ae.Left),isNaN(+ae.Right)||(p["!margins"].right=+ae.Right),isNaN(+ae.Bottom)||(p["!margins"].bottom=+ae.Bottom);break;case"displayrighttoleft":$.Views||($.Views=[]),$.Views[0]||($.Views[0]={}),$.Views[0].RTL=!0;break;case"freezepanes":case"frozennosplit":case"splithorizontal":case"splitvertical":case"donotdisplaygridlines":case"activerow":case"activecol":case"toprowbottompane":case"leftcolumnrightpane":case"unsynced":case"print":case"printerrors":case"panes":case"scale":case"pane":case"number":case"layout":case"pagesetup":case"selected":case"protectobjects":case"enableselection":case"protectscenarios":case"validprinterinfo":case"horizontalresolution":case"verticalresolution":case"numberofcopies":case"activepane":case"toprowvisible":case"leftcolumnvisible":case"fittopage":case"rangeselection":case"papersizeindex":case"pagelayoutzoom":case"pagebreakzoom":case"filteron":case"fitwidth":case"fitheight":case"commentslayout":case"zoom":case"lefttoright":case"gridlines":case"allowsort":case"allowfilter":case"allowinsertrows":case"allowdeleterows":case"allowinsertcols":case"allowdeletecols":case"allowinserthyperlinks":case"allowformatcells":case"allowsizecols":case"allowsizerows":case"tabcolorindex":case"donotdisplayheadings":case"showpagelayoutzoom":case"blackandwhite":case"donotdisplayzeros":case"displaypagebreak":case"rowcolheadings":case"donotdisplayoutline":case"noorientation":case"allowusepivottables":case"zeroheight":case"viewablerange":case"selection":case"protectcontents":break;case"nosummaryrowsbelowdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].above=!0;break;case"nosummarycolumnsrightdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].left=!0;break;default:te=!1}break;case"pivottable":case"pivotcache":switch(n[3]){case"immediateitemsondrop":case"showpagemultipleitemlabel":case"compactrowindent":case"location":case"pivotfield":case"orientation":case"layoutform":case"layoutsubtotallocation":case"layoutcompactrow":case"position":case"pivotitem":case"datatype":case"datafield":case"sourcename":case"parentfield":case"ptlineitems":case"ptlineitem":case"countofsameitems":case"item":case"itemtype":case"ptsource":case"cacheindex":case"consolidationreference":case"filename":case"reference":case"nocolumngrand":case"norowgrand":case"blanklineafteritems":case"hidden":case"subtotal":case"basefield":case"mapchilditems":case"function":case"refreshonfileopen":case"printsettitles":case"mergelabels":case"defaultversion":case"refreshname":case"refreshdate":case"refreshdatecopy":case"versionlastrefresh":case"versionlastupdate":case"versionupdateablemin":case"versionrefreshablemin":case"calculation":break;default:te=!1}break;case"pagebreaks":switch(n[3]){case"colbreaks":case"colbreak":case"rowbreaks":case"rowbreak":case"colstart":case"colend":case"rowend":break;default:te=!1}break;case"autofilter":switch(n[3]){case"autofiltercolumn":case"autofiltercondition":case"autofilterand":case"autofilteror":break;default:te=!1}break;case"querytable":switch(n[3]){case"id":case"autoformatfont":case"autoformatpattern":case"querysource":case"querytype":case"enableredirections":case"refreshedinxl9":case"urlstring":case"htmltables":case"connection":case"commandtext":case"refreshinfo":case"notitles":case"nextid":case"columninfo":case"overwritecells":case"donotpromptforfile":case"textwizardsettings":case"source":case"number":case"decimal":case"thousandseparator":case"trailingminusnumbers":case"formatsettings":case"fieldtype":case"delimiters":case"tab":case"comma":case"autoformatname":case"versionlastedit":case"versionlastrefresh":break;default:te=!1}break;case"datavalidation":switch(n[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":case"cellrangelist":break;default:te=!1}break;case"sorting":case"conditionalformatting":switch(n[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"cellrangelist":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":break;default:te=!1}break;case"mapinfo":case"schema":case"data":switch(n[3]){case"map":case"entry":case"range":case"xpath":case"field":case"xsdtype":case"filteron":case"aggregate":case"elementtype":case"attributetype":case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":case"row":break;default:te=!1}break;case"smarttags":break;default:te=!1}if(te)break;if(n[3].match(/!\[CDATA/))break;if(!l[l.length-1][1])throw"Unrecognized tag: "+n[3]+"|"+l.join("|");if("customdocumentproperties"===l[l.length-1][0]){if("/>"===n[0].slice(-2))break;"/"===n[1]?_c(N,X,F,a.slice(D,n.index)):(F=n,D=n.index+n[0].length);break}if(t.WTF)throw"Unrecognized tag: "+n[3]+"|"+l.join("|")}var ne={};return t.bookSheets||t.bookProps||(ne.Sheets=h),ne.SheetNames=u,ne.Workbook=$,ne.SSF=Ve(W),ne.Props=I,ne.Custprops=N,ne}function Nc(e,r){switch(yo(r=r||{}),r.type||"base64"){case"base64":return Ic(A(e),r);case"binary":case"buffer":case"file":return Ic(e,r);case"array":return Ic(R(e),r)}}function Dc(e){var r={},t=e.content;if(t.l=28,r.AnsiUserType=t.read_shift(0,"lpstr-ansi"),r.AnsiClipboardFormat=function(e){return na(e,1)}(t),t.length-t.l<=4)return r;var a=t.read_shift(4);return 0==a||a>40?r:(t.l-=4,r.Reserved1=t.read_shift(0,"lpstr-ansi"),t.length-t.l<=4||1907505652!==(a=t.read_shift(4))?r:(r.UnicodeClipboardFormat=function(e){return na(e,2)}(t),0==(a=t.read_shift(4))||a>40?r:(t.l-=4,void(r.Reserved2=t.read_shift(0,"lpwstr")))))}var Fc=[60,1084,2066,2165,2175];function Lc(e,r,t,a,n){var s=a,i=[],c=t.slice(t.l,t.l+s);if(n&&n.enc&&n.enc.insitu&&c.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:case 133:break;default:n.enc.insitu(c)}i.push(c),t.l+=s;for(var o=ft(t,t.l),l=Wc[o],f=0;null!=l&&Fc.indexOf(o)>-1;)s=ft(t,t.l+2),f=t.l+4,2066==o?f+=4:2165!=o&&2175!=o||(f+=12),c=t.slice(f,t.l+4+s),i.push(c),t.l+=4+s,l=Wc[o=ft(t,t.l)];var h=x(i);wt(h,0);var u=0;h.lens=[];for(var d=0;d1)&&!(t.sheetRows&&e.r>=t.sheetRows)){if(t.cellStyles&&r.XF&&r.XF.data&&function(e,r,t){var a,n=r.XF.data;n&&n.patternType&&t&&t.cellStyles&&(r.s={},r.s.patternType=n.patternType,(a=ss(R(n.icvFore)))&&(r.s.fgColor={rgb:a}),(a=ss(R(n.icvBack)))&&(r.s.bgColor={rgb:a}))}(0,r,t),delete r.ixfe,delete r.XF,n=e,w=Lt(e),m&&m.s&&m.e||(m={s:{r:0,c:0},e:{r:0,c:0}}),e.rm.e.r&&(m.e.r=e.r+1),e.c+1>m.e.c&&(m.e.c=e.c+1),t.cellFormula&&r.f)for(var a=0;ae.c||k[a][0].s.r>e.r)&&!(k[a][0].e.c>8)!==j)throw new Error("rt mismatch: "+Y+"!="+j);12==K.r&&(e.l+=10,X-=10)}var J={};if(J=10===j?K.f(e,X,x):Lc(j,K,e,X,x),0==B&&-1===[9,521,1033,2057].indexOf(U))continue;switch(j){case 34:t.opts.Date1904=_.WBProps.date1904=J;break;case 134:t.opts.WriteProtect=!0;break;case 47:if(x.enc||(e.l=0),x.enc=J,!r.password)throw new Error("File is password-protected");if(null==J.valid)throw new Error("Encryption scheme unsupported");if(!J.valid)throw new Error("Password is incorrect");break;case 92:x.lastuser=J;break;case 66:var q=Number(J);switch(q){case 21010:q=1200;break;case 32768:q=1e4;break;case 32769:q=1252}h(x.codepage=q),G=!0;break;case 317:x.rrtabid=J;break;case 25:x.winlocked=J;break;case 439:t.opts.RefreshAll=J;break;case 12:t.opts.CalcCount=J;break;case 16:t.opts.CalcDelta=J;break;case 17:t.opts.CalcIter=J;break;case 13:t.opts.CalcMode=J;break;case 14:t.opts.CalcPrecision=J;break;case 95:t.opts.CalcSaveRecalc=J;break;case 15:x.CalcRefMode=J;break;case 2211:t.opts.FullCalc=J;break;case 129:J.fDialog&&(d["!type"]="dialog"),J.fBelow||((d["!outline"]||(d["!outline"]={})).above=!0),J.fRight||((d["!outline"]||(d["!outline"]={})).left=!0);break;case 224:S.push(J);break;case 430:P.push([J]),P[P.length-1].XTI=[];break;case 35:case 547:P[P.length-1].push(J);break;case 24:case 536:M={Name:J.Name,Ref:bi(J.rgce,0,null,P,x)},J.itab>0&&(M.Sheet=J.itab-1),P.names.push(M),P[0]||(P[0]=[],P[0].XTI=[]),P[P.length-1].push(J),"_xlnm._FilterDatabase"==J.Name&&J.itab>0&&J.rgce&&J.rgce[0]&&J.rgce[0][0]&&"PtgArea3d"==J.rgce[0][0][0]&&(V[J.itab-1]={ref:Mt(J.rgce[0][0][1][2])});break;case 22:x.ExternCount=J;break;case 23:0==P.length&&(P[0]=[],P[0].XTI=[]),P[P.length-1].XTI=P[P.length-1].XTI.concat(J),P.XTI=P.XTI.concat(J);break;case 2196:if(x.biff<8)break;null!=M&&(M.Comment=J[1]);break;case 18:d["!protect"]=J;break;case 19:0!==J&&x.WTF&&console.error("Password verifier: "+J);break;case 133:p[J.pos]=J,x.snames.push(J.name);break;case 10:if(--B)break;if(m.e){if(m.e.r>0&&m.e.c>0){if(m.e.r--,m.e.c--,d["!ref"]=Mt(m),r.sheetRows&&r.sheetRows<=m.e.r){var Z=m.e.r;m.e.r=r.sheetRows-1,d["!fullref"]=d["!ref"],d["!ref"]=Mt(m),m.e.r=Z}m.e.r++,m.e.c++}I.length>0&&(d["!merges"]=I),N.length>0&&(d["!objects"]=N),D.length>0&&(d["!cols"]=D),F.length>0&&(d["!rows"]=F),_.Sheets.push(C)}""===b?E=d:a[b]=d,d=r.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(8===x.biff&&(x.biff={9:2,521:3,1033:4}[j]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[J.BIFFVer]||8),x.biffguess=0==J.BIFFVer,0==J.BIFFVer&&4096==J.dt&&(x.biff=5,G=!0,h(x.codepage=28591)),8==x.biff&&0==J.BIFFVer&&16==J.dt&&(x.biff=2),B++)break;if(d=r.dense?[]:{},x.biff<8&&!G&&(G=!0,h(x.codepage=r.codepage||1252)),x.biff<5||0==J.BIFFVer&&4096==J.dt){""===b&&(b="Sheet1"),m={s:{r:0,c:0},e:{r:0,c:0}};var Q={pos:e.l-X,name:b};p[Q.pos]=Q,x.snames.push(b)}else b=(p[$]||{name:""}).name;32==J.dt&&(d["!type"]="chart"),64==J.dt&&(d["!type"]="macro"),I=[],N=[],x.arrayf=k=[],D=[],F=[],L=!1,C={Hidden:(p[$]||{hs:0}).hs,name:b};break;case 515:case 3:case 2:"chart"==d["!type"]&&(r.dense?(d[J.r]||[])[J.c]:d[Lt({c:J.c,r:J.r})])&&++J.c,l={ixfe:J.ixfe,XF:S[J.ixfe]||{},v:J.val,t:"n"},H>0&&(l.z=z[l.ixfe>>8&63]),Pc(l,r,t.opts.Date1904),O({c:J.c,r:J.r},l,r);break;case 5:case 517:l={ixfe:J.ixfe,XF:S[J.ixfe],v:J.val,t:J.t},H>0&&(l.z=z[l.ixfe>>8&63]),Pc(l,r,t.opts.Date1904),O({c:J.c,r:J.r},l,r);break;case 638:l={ixfe:J.ixfe,XF:S[J.ixfe],v:J.rknum,t:"n"},H>0&&(l.z=z[l.ixfe>>8&63]),Pc(l,r,t.opts.Date1904),O({c:J.c,r:J.r},l,r);break;case 189:for(var ee=J.c;ee<=J.C;++ee){var re=J.rkrec[ee-J.c][0];l={ixfe:re,XF:S[re],v:J.rkrec[ee-J.c][1],t:"n"},H>0&&(l.z=z[l.ixfe>>8&63]),Pc(l,r,t.opts.Date1904),O({c:ee,r:J.r},l,r)}break;case 6:case 518:case 1030:if("String"==J.val){g=J;break}if((l=Mc(J.val,J.cell.ixfe,J.tt)).XF=S[l.ixfe],r.cellFormula){var te=J.formula;if(te&&te[0]&&te[0][0]&&"PtgExp"==te[0][0][0]){var ae=te[0][0][1][0],ne=te[0][0][1][1],se=Lt({r:ae,c:ne});A[se]?l.f=""+bi(J.formula,0,J.cell,P,x):l.F=((r.dense?(d[ae]||[])[ne]:d[se])||{}).F}else l.f=""+bi(J.formula,0,J.cell,P,x)}H>0&&(l.z=z[l.ixfe>>8&63]),Pc(l,r,t.opts.Date1904),O(J.cell,l,r),g=J;break;case 7:case 519:if(!g)throw new Error("String record expects Formula");g.val=J,(l=Mc(J,g.cell.ixfe,"s")).XF=S[l.ixfe],r.cellFormula&&(l.f=""+bi(g.formula,0,g.cell,P,x)),H>0&&(l.z=z[l.ixfe>>8&63]),Pc(l,r,t.opts.Date1904),O(g.cell,l,r),g=null;break;case 33:case 545:k.push(J);var ie=Lt(J[0].s);if(s=r.dense?(d[J[0].s.r]||[])[J[0].s.c]:d[ie],r.cellFormula&&s){if(!g)break;if(!ie||!s)break;s.f=""+bi(J[1],0,J[0],P,x),s.F=Mt(J[0])}break;case 1212:if(!r.cellFormula)break;if(w){if(!g)break;A[Lt(g.cell)]=J[0],((s=r.dense?(d[g.cell.r]||[])[g.cell.c]:d[Lt(g.cell)])||{}).f=""+bi(J[0],0,n,P,x)}break;case 253:l=Mc(v[J.isst].t,J.ixfe,"s"),v[J.isst].h&&(l.h=v[J.isst].h),l.XF=S[l.ixfe],H>0&&(l.z=z[l.ixfe>>8&63]),Pc(l,r,t.opts.Date1904),O({c:J.c,r:J.r},l,r);break;case 513:r.sheetStubs&&(l={ixfe:J.ixfe,XF:S[J.ixfe],t:"z"},H>0&&(l.z=z[l.ixfe>>8&63]),Pc(l,r,t.opts.Date1904),O({c:J.c,r:J.r},l,r));break;case 190:if(r.sheetStubs)for(var ce=J.c;ce<=J.C;++ce){var oe=J.ixfe[ce-J.c];l={ixfe:oe,XF:S[oe],t:"z"},H>0&&(l.z=z[l.ixfe>>8&63]),Pc(l,r,t.opts.Date1904),O({c:ce,r:J.r},l,r)}break;case 214:case 516:case 4:(l=Mc(J.val,J.ixfe,"s")).XF=S[l.ixfe],H>0&&(l.z=z[l.ixfe>>8&63]),Pc(l,r,t.opts.Date1904),O({c:J.c,r:J.r},l,r);break;case 0:case 512:1===B&&(m=J);break;case 252:v=J;break;case 1054:if(4==x.biff){z[H++]=J[1];for(var le=0;le=163&&Ae(J[1],H+163)}else Ae(J[1],J[0]);break;case 30:z[H++]=J;for(var fe=0;fe=163&&Ae(J,H+163);break;case 229:I=I.concat(J);break;case 93:N[J.cmo[0]]=x.lastobj=J;break;case 438:x.lastobj.TxO=J;break;case 127:x.lastobj.ImData=J;break;case 440:for(o=J[0].s.r;o<=J[0].e.r;++o)for(c=J[0].s.c;c<=J[0].e.c;++c)(s=r.dense?(d[o]||[])[c]:d[Lt({c:c,r:o})])&&(s.l=J[1]);break;case 2048:for(o=J[0].s.r;o<=J[0].e.r;++o)for(c=J[0].s.c;c<=J[0].e.c;++c)(s=r.dense?(d[o]||[])[c]:d[Lt({c:c,r:o})])&&s.l&&(s.l.Tooltip=J[1]);break;case 28:if(x.biff<=5&&x.biff>=2)break;s=r.dense?(d[J[0].r]||[])[J[0].c]:d[Lt(J[0])];var he=N[J[2]];s||(r.dense?(d[J[0].r]||(d[J[0].r]=[]),s=d[J[0].r][J[0].c]={t:"z"}):s=d[Lt(J[0])]={t:"z"},m.e.r=Math.max(m.e.r,J[0].r),m.s.r=Math.min(m.s.r,J[0].r),m.e.c=Math.max(m.e.c,J[0].c),m.s.c=Math.min(m.s.c,J[0].c)),s.c||(s.c=[]),i={a:J[1],t:he.TxO.t},s.c.push(i);break;case 2173:S[J.ixfe],J.ext.forEach((function(e){e[0]}));break;case 125:if(!x.cellStyles)break;for(;J.e>=J.s;)D[J.e--]={width:J.w/256,level:J.level||0,hidden:!!(1&J.flags)},L||(L=!0,ms(J.w/256)),gs(D[J.e+1]);break;case 520:var ue={};null!=J.level&&(F[J.r]=ue,ue.level=J.level),J.hidden&&(F[J.r]=ue,ue.hidden=!0),J.hpt&&(F[J.r]=ue,ue.hpt=J.hpt,ue.hpx=Ts(J.hpt));break;case 38:case 39:case 40:case 41:d["!margins"]||Fi(d["!margins"]={}),d["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[j]]=J;break;case 161:d["!margins"]||Fi(d["!margins"]={}),d["!margins"].header=J.header,d["!margins"].footer=J.footer;break;case 574:J.RTL&&(_.Views[0].RTL=!0);break;case 146:y=J;break;case 2198:u=J;break;case 140:f=J;break;case 442:b?C.CodeName=J||C.name:_.WBProps.CodeName=J||"ThisWorkbook"}}else K||console.error("Missing Info for XLS Record 0x"+j.toString(16)),e.l+=X}return t.SheetNames=Oe(p).sort((function(e,r){return Number(e)-Number(r)})).map((function(e){return p[e].name})),r.bookSheets||(t.Sheets=a),!t.SheetNames.length&&E["!ref"]?(t.SheetNames.push("Sheet1"),t.Sheets&&(t.Sheets.Sheet1=E)):t.Preamble=E,t.Sheets&&V.forEach((function(e,r){t.Sheets[t.SheetNames[r]]["!autofilter"]=e})),t.Strings=v,t.SSF=Ve(W),x.enc&&(t.Encryption=x.enc),u&&(t.Themes=u),t.Metadata={},void 0!==f&&(t.Metadata.Country=f),P.names.length>0&&(_.Names=P.names),t.Workbook=_,t}var Bc={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function Hc(e,r){var t,a,n,s;if(r||(r={}),yo(r),u(),r.codepage&&f(r.codepage),e.FullPaths){if(Ce.find(e,"/encryption"))throw new Error("File is password-protected");t=Ce.find(e,"!CompObj"),a=Ce.find(e,"/Workbook")||Ce.find(e,"/Book")}else{switch(r.type){case"base64":e=C(A(e));break;case"binary":e=C(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e))}wt(e,0),a={content:e}}if(t&&Dc(t),r.bookProps&&!r.bookSheets)n={};else{var i=k?"buffer":"array";if(a&&a.content)n=Uc(a.content,r);else if((s=Ce.find(e,"PerfectOffice_MAIN"))&&s.content)n=Ln.to_workbook(s.content,(r.type=i,r));else{if(!(s=Ce.find(e,"NativeContent_MAIN"))||!s.content)throw(s=Ce.find(e,"MN0"))&&s.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");n=Ln.to_workbook(s.content,(r.type=i,r))}r.bookVBA&&e.FullPaths&&Ce.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(n.vbaraw=function(e){var r=Ce.utils.cfb_new({root:"R"});return e.FullPaths.forEach((function(t,a){if("/"!==t.slice(-1)&&t.match(/_VBA_PROJECT_CUR/)){var n=t.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Ce.utils.cfb_add(r,n,e.FileIndex[a].content)}})),Ce.write(r)}(e))}var c={};return e.FullPaths&&function(e,r,t){var a=Ce.find(e,"/!DocumentSummaryInformation");if(a&&a.size>0)try{var n=Va(a,ha,Bc.DSI);for(var s in n)r[s]=n[s]}catch(l){if(t.WTF)throw l}var i=Ce.find(e,"/!SummaryInformation");if(i&&i.size>0)try{var c=Va(i,ua,Bc.SI);for(var o in c)null==r[o]&&(r[o]=c[o])}catch(l){if(t.WTF)throw l}r.HeadingPairs&&r.TitlesOfParts&&(Ra(r.HeadingPairs,r.TitlesOfParts,r,t),delete r.HeadingPairs,delete r.TitlesOfParts)}(e,c,r),n.Props=n.Custprops=c,r.bookFiles&&(n.cfb=e),n}var zc={0:{f:function(e,r){var t={},a=e.l+r;t.r=e.read_shift(4),e.l+=4;var n=e.read_shift(2);e.l+=1;var s=e.read_shift(1);return e.l=a,7&s&&(t.level=7&s),16&s&&(t.hidden=!0),32&s&&(t.hpt=n/20),t}},1:{f:function(e){return[Kt(e)]}},2:{f:function(e){return[Kt(e),ea(e),"n"]}},3:{f:function(e){return[Kt(e),e.read_shift(1),"e"]}},4:{f:function(e){return[Kt(e),e.read_shift(1),"b"]}},5:{f:function(e){return[Kt(e),aa(e),"n"]}},6:{f:function(e){return[Kt(e),Gt(e),"str"]}},7:{f:function(e){return[Kt(e),e.read_shift(4),"s"]}},8:{f:function(e,r,t){var a=e.l+r,n=Kt(e);n.r=t["!row"];var s=[n,Gt(e),"str"];if(t.cellFormula){e.l+=2;var i=Si(e,a-e.l,t);s[3]=bi(i,0,n,t.supbooks,t)}else e.l=a;return s}},9:{f:function(e,r,t){var a=e.l+r,n=Kt(e);n.r=t["!row"];var s=[n,aa(e),"n"];if(t.cellFormula){e.l+=2;var i=Si(e,a-e.l,t);s[3]=bi(i,0,n,t.supbooks,t)}else e.l=a;return s}},10:{f:function(e,r,t){var a=e.l+r,n=Kt(e);n.r=t["!row"];var s=[n,e.read_shift(1),"b"];if(t.cellFormula){e.l+=2;var i=Si(e,a-e.l,t);s[3]=bi(i,0,n,t.supbooks,t)}else e.l=a;return s}},11:{f:function(e,r,t){var a=e.l+r,n=Kt(e);n.r=t["!row"];var s=[n,e.read_shift(1),"e"];if(t.cellFormula){e.l+=2;var i=Si(e,a-e.l,t);s[3]=bi(i,0,n,t.supbooks,t)}else e.l=a;return s}},12:{f:function(e){return[Yt(e)]}},13:{f:function(e){return[Yt(e),ea(e),"n"]}},14:{f:function(e){return[Yt(e),e.read_shift(1),"e"]}},15:{f:function(e){return[Yt(e),e.read_shift(1),"b"]}},16:{f:qi},17:{f:function(e){return[Yt(e),Gt(e),"str"]}},18:{f:function(e){return[Yt(e),e.read_shift(4),"s"]}},19:{f:jt},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(e,r,t){var a=e.l+r;e.l+=4,e.l+=1;var n=e.read_shift(4),s=Zt(e),i=yi(e,0,t),c=qt(e);e.l=a;var o={Name:s,Ptg:i};return n<268435455&&(o.Sheet=n),c&&(o.Comment=c),o}},40:{},42:{},43:{f:function(e,r,t){var a={};a.sz=e.read_shift(2)/20;var n=function(e){var r=e.read_shift(1);return e.l++,{fBold:1&r,fItalic:2&r,fUnderline:4&r,fStrikeout:8&r,fOutline:16&r,fShadow:32&r,fCondense:64&r,fExtend:128&r}}(e);switch(n.fItalic&&(a.italic=1),n.fCondense&&(a.condense=1),n.fExtend&&(a.extend=1),n.fShadow&&(a.shadow=1),n.fOutline&&(a.outline=1),n.fStrikeout&&(a.strike=1),700===e.read_shift(2)&&(a.bold=1),e.read_shift(2)){case 1:a.vertAlign="superscript";break;case 2:a.vertAlign="subscript"}var s=e.read_shift(1);0!=s&&(a.underline=s);var i=e.read_shift(1);i>0&&(a.family=i);var c=e.read_shift(1);switch(c>0&&(a.charset=c),e.l++,a.color=function(e){var r={},t=e.read_shift(1)>>>1,a=e.read_shift(1),n=e.read_shift(2,"i"),s=e.read_shift(1),i=e.read_shift(1),c=e.read_shift(1);switch(e.l++,t){case 0:r.auto=1;break;case 1:r.index=a;var o=ga[a];o&&(r.rgb=ss(o));break;case 2:r.rgb=ss([s,i,c]);break;case 3:r.theme=a}return 0!=n&&(r.tint=n>0?n/32767:n/32768),r}(e),e.read_shift(1)){case 1:a.scheme="major";break;case 2:a.scheme="minor"}return a.name=Gt(e),a}},44:{f:function(e,r){return[e.read_shift(2),Gt(e)]}},45:{f:Ss},46:{f:ys},47:{f:function(e,r){var t=e.l+r,a=e.read_shift(2),n=e.read_shift(2);return e.l=t,{ixfe:a,numFmtId:n}}},48:{},49:{f:function(e){return e.read_shift(4,"i")}},50:{},51:{f:function(e){for(var r=[],t=e.read_shift(4);t-- >0;)r.push([e.read_shift(4),e.read_shift(4)]);return r}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:yn},62:{f:function(e){return[Kt(e),jt(e),"is"]}},63:{f:function(e){var r={};r.i=e.read_shift(4);var t={};t.r=e.read_shift(4),t.c=e.read_shift(4),r.r=Lt(t);var a=e.read_shift(1);return 2&a&&(r.l="1"),8&a&&(r.a="1"),r}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:At,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(e){var r=e.read_shift(2);return e.l+=28,{RTL:32&r}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(e,r){var t={},a=e[e.l];return++e.l,t.above=!(64&a),t.left=!(128&a),e.l+=18,t.name=Jt(e,r-19),t}},148:{f:Ji,p:16},151:{f:function(){}},152:{},153:{f:function(e,r){var t={},a=e.read_shift(4);t.defaultThemeVersion=e.read_shift(4);var n=r>8?Gt(e):"";return n.length>0&&(t.CodeName=n),t.autoCompressPictures=!!(65536&a),t.backupFile=!!(64&a),t.checkCompatibility=!!(4096&a),t.date1904=!!(1&a),t.filterPrivacy=!!(8&a),t.hidePivotFieldList=!!(1024&a),t.promptedSolutions=!!(16&a),t.publishItems=!!(2048&a),t.refreshAllConnections=!!(262144&a),t.saveExternalLinkValues=!!(128&a),t.showBorderUnselectedTables=!!(4&a),t.showInkAnnotation=!!(32&a),t.showObjects=["all","placeholders","none"][a>>13&3],t.showPivotChartFilter=!!(32768&a),t.updateLinks=["userSet","never","always"][a>>8&3],t}},154:{},155:{},156:{f:function(e,r){var t={};return t.Hidden=e.read_shift(4),t.iTabID=e.read_shift(4),t.strRelID=Qt(e,r-8),t.name=Gt(e),t}},157:{},158:{},159:{T:1,f:function(e){return[e.read_shift(4),e.read_shift(4)]}},160:{T:-1},161:{T:1,f:ta},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Zi},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(e,r){return{flags:e.read_shift(4),version:e.read_shift(4),name:Gt(e)}}},336:{T:-1},337:{f:function(e){return e.l+=4,0!=e.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Qt},357:{},358:{},359:{},360:{T:1},361:{},362:{f:An},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(e,r,t){var a=e.l+r,n=ra(e),s=e.read_shift(1),i=[n];if(i[2]=s,t.cellFormula){var c=ki(e,a-e.l,t);i[1]=c}else e.l=a;return i}},427:{f:function(e,r,t){var a=e.l+r,n=[ta(e,16)];if(t.cellFormula){var s=_i(e,a-e.l,t);n[1]=s,e.l=a}else e.l=a;return n}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(e){var r={};return Qi.forEach((function(t){r[t]=aa(e)})),r}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(e,r){var t=e.l+r,a=ta(e,16),n=qt(e),s=Gt(e),i=Gt(e),c=Gt(e);e.l=t;var o={rfx:a,relId:n,loc:s,display:c};return i&&(o.Tooltip=i),o}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Qt},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Bs},633:{T:1},634:{T:-1},635:{T:1,f:function(e){var r={};r.iauthor=e.read_shift(4);var t=ta(e,16);return r.rfx=t.s,r.ref=Lt(t.s),e.l+=16,r}},636:{T:-1},637:{f:Xt},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(e,r){return e.l+=10,{name:Gt(e)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},Wc={6:{f:wi},10:{f:Ga},12:{f:ja},13:{f:ja},14:{f:$a},15:{f:$a},16:{f:aa},17:{f:$a},18:{f:$a},19:{f:ja},20:{f:bn},21:{f:bn},23:{f:An},24:{f:wn},25:{f:$a},26:{},27:{},28:{f:function(e,r,t){return function(e,r,t){if(!(t.biff<8)){var a=e.read_shift(2),n=e.read_shift(2),s=e.read_shift(2),i=e.read_shift(2),c=Za(e,0,t);return t.biff<8&&e.read_shift(1),[{r:a,c:n},c,i,s]}}(e,0,t)}},29:{},34:{f:$a},35:{f:Tn},38:{f:aa},39:{f:aa},40:{f:aa},41:{f:aa},42:{f:$a},43:{f:$a},47:{f:function(e,r,t){var a={Type:t.biff>=8?e.read_shift(2):0};return a.Type?as(e,r-2,a):function(e,r,t,a){var n={key:ja(e),verificationBytes:ja(e)};t.password&&(n.verifier=es(t.password)),a.valid=n.verificationBytes===n.verifier,a.valid&&(a.insitu=ts(t.password))}(e,t.biff,t,a),a}},49:{f:function(e,r,t){var a={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(t&&t.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10}return a.name=Ka(e,0,t),a}},51:{f:ja},60:{},61:{f:function(e){return{Pos:[e.read_shift(2),e.read_shift(2)],Dim:[e.read_shift(2),e.read_shift(2)],Flags:e.read_shift(2),CurTab:e.read_shift(2),FirstTab:e.read_shift(2),Selected:e.read_shift(2),TabRatio:e.read_shift(2)}}},64:{f:$a},65:{f:function(){}},66:{f:ja},77:{},80:{},81:{},82:{},85:{f:ja},89:{},90:{},91:{},92:{f:function(e,r,t){if(t.enc)return e.l+=r,"";var a=e.l,n=Za(e,0,t);return e.read_shift(r+a-e.l),n}},93:{f:function(e,r,t){if(t&&t.biff<8)return function(e,r,t){e.l+=4;var a=e.read_shift(2),n=e.read_shift(2),s=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,r-=36;var i=[];return i.push((Sn[a]||At)(e,r,t)),{cmo:[n,a,s],ft:i}}(e,r,t);var a=fn(e),n=function(e,r){for(var t=e.l+r,a=[];e.l7||r[1]>7)throw new Error("Bad Gutters: "+r.join("|"));return r}},129:{f:function(e,r,t){var a=t&&8==t.biff||2==r?e.read_shift(2):(e.l+=r,0);return{fDialog:16&a,fBelow:64&a,fRight:128&a}}},130:{f:ja},131:{f:$a},132:{f:$a},133:{f:function(e,r,t){var a=e.read_shift(4),n=3&e.read_shift(1),s=e.read_shift(1);switch(s){case 0:s="Worksheet";break;case 1:s="Macrosheet";break;case 2:s="Chartsheet";break;case 6:s="VBAModule"}var i=Ka(e,0,t);return 0===i.length&&(i="Sheet1"),{pos:a,hs:n,dt:s,name:i}}},134:{},140:{f:function(e){var r,t=[0,0];return r=e.read_shift(2),t[0]=da[r]||r,r=e.read_shift(2),t[1]=da[r]||r,t}},141:{f:ja},144:{},146:{f:function(e){for(var r=e.read_shift(2),t=[];r-- >0;)t.push(tn(e));return t}},151:{},152:{},153:{},154:{},155:{},156:{f:ja},157:{},158:{},160:{f:Cn},161:{f:function(e,r){var t={};return r<32||(e.l+=16,t.header=aa(e),t.footer=aa(e),e.l+=2),t}},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:function(e,r){for(var t=e.l+r-2,a=e.read_shift(2),n=e.read_shift(2),s=[];e.l>2&1,a.data=function(e,r,t,a){var n={},s=e.read_shift(4),i=e.read_shift(4),c=e.read_shift(4),o=e.read_shift(2);return n.patternType=pa[c>>26],a.cellStyles?(n.alc=7&s,n.fWrap=s>>3&1,n.alcV=s>>4&7,n.fJustLast=s>>7&1,n.trot=s>>8&255,n.cIndent=s>>16&15,n.fShrinkToFit=s>>20&1,n.iReadOrder=s>>22&2,n.fAtrNum=s>>26&1,n.fAtrFnt=s>>27&1,n.fAtrAlc=s>>28&1,n.fAtrBdr=s>>29&1,n.fAtrPat=s>>30&1,n.fAtrProt=s>>31&1,n.dgLeft=15&i,n.dgRight=i>>4&15,n.dgTop=i>>8&15,n.dgBottom=i>>12&15,n.icvLeft=i>>16&127,n.icvRight=i>>23&127,n.grbitDiag=i>>30&3,n.icvTop=127&c,n.icvBottom=c>>7&127,n.icvDiag=c>>14&127,n.dgDiag=c>>21&15,n.icvFore=127&o,n.icvBack=o>>7&127,n.fsxButton=o>>14&1,n):n}(e,0,a.fStyle,t),a}},225:{f:function(e,r){return 0===r||e.read_shift(2),1200}},226:{f:Ga},227:{},229:{f:function(e,r){for(var t=[],a=e.read_shift(2);a--;)t.push(cn(e));return t}},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:function(e,r){for(var t=e.l+r,a=e.read_shift(4),n=e.read_shift(4),s=[],i=0;i!=n&&e.l255)throw new Error("Unexpected SupBook type: "+s);for(var i=Ja(e,s),c=[];a>e.l;)c.push(qa(e));return[s,n,i,c]}},431:{f:$a},432:{},433:{},434:{},437:{},438:{f:function(e,r,t){var a=e.l,n="";try{e.l+=4;var s=(t.lastobj||{cmo:[0,0]}).cmo[1];-1==[0,5,7,11,12,14].indexOf(s)?e.l+=6:function(e){var r=e.read_shift(1);e.l++;var t=e.read_shift(2);return e.l+=2,[r,t]}(e);var i=e.read_shift(2);e.read_shift(2),ja(e);var c=e.read_shift(2);e.l+=c;for(var o=1;o=(l?i:2*i))break}if(n.length!==i&&n.length!==2*i)throw new Error("cchText: "+i+" != "+n.length);return e.l=a+r,{t:n}}catch(f){return e.l=a+r,{t:n}}}},439:{f:$a},440:{f:function(e,r){var t=cn(e);e.l+=16;var a=function(e,r){var t=e.l+r,a=e.read_shift(4);if(2!==a)throw new Error("Unrecognized streamVersion: "+a);var n=e.read_shift(2);e.l+=2;var s,i,c,o,l,f,h="";16&n&&(s=en(e,e.l)),128&n&&(i=en(e,e.l)),257===(257&n)&&(c=en(e,e.l)),1===(257&n)&&(o=Qa(e,e.l)),8&n&&(h=en(e,e.l)),32&n&&(l=e.read_shift(16)),64&n&&(f=Da(e)),e.l=t;var u=i||c||o||"";u&&h&&(u+="#"+h),u||(u="#"+h),2&n&&"/"==u.charAt(0)&&"/"!=u.charAt(1)&&(u="file://"+u);var d={Target:u};return l&&(d.guid=l),f&&(d.time=f),s&&(d.Tooltip=s),d}(e,r-24);return[t,a]}},441:{},442:{f:qa},443:{},444:{f:ja},445:{},446:{},448:{f:Ga},449:{f:function(e){return e.read_shift(2),e.read_shift(4)},r:2},450:{f:Ga},512:{f:gn},513:{f:_n},515:{f:function(e,r,t){t.biffguess&&2==t.biff&&(t.biff=5);var a=an(e),n=aa(e);return a.val=n,a}},516:{f:function(e,r,t){t.biffguess&&2==t.biff&&(t.biff=5),e.l;var a=an(e);2==t.biff&&e.l++;var n=qa(e,e.l,t);return a.val=n,a}},517:{f:vn},519:{f:Rn},520:{f:function(e){var r={};r.r=e.read_shift(2),r.c=e.read_shift(2),r.cnt=e.read_shift(2)-r.c;var t=e.read_shift(2);e.l+=4;var a=e.read_shift(1);return e.l+=3,7&a&&(r.level=7&a),32&a&&(r.hidden=!0),64&a&&(r.hpt=t/20),r}},523:{},545:{f:kn},549:{f:pn},566:{},574:{f:function(e,r,t){return t&&t.biff>=2&&t.biff<5?{}:{RTL:64&e.read_shift(2)}}},638:{f:function(e){var r=e.read_shift(2),t=e.read_shift(2),a=sn(e);return{r:r,c:t,ixfe:a[0],rknum:a[1]}}},659:{},1048:{},1054:{f:function(e,r,t){return[e.read_shift(2),Za(e,0,t)]}},1084:{},1212:{f:function(e,r,t){var a=on(e);e.l++;var n=e.read_shift(1);return[Ei(e,r-=8,t),n,a]}},2048:{f:function(e,r){e.read_shift(2);var t=cn(e),a=e.read_shift((r-10)/2,"dbcs-cont");return[t,a=a.replace(I,"")]}},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:dn},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:Ga},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:function(e){e.l+=2;var r={cxfs:0,crc:0};return r.cxfs=e.read_shift(2),r.crc=e.read_shift(4),r},r:12},2173:{f:function(e,r){e.l,e.l+=2;var t=e.read_shift(2);e.l+=2;for(var a=e.read_shift(2),n=[];a-- >0;)n.push(Ms(e,e.l));return{ixfe:t,ext:n}},r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:$a,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:function(e,r,t){if(!(t.biff<8)){var a=e.read_shift(2),n=e.read_shift(2);return[Ja(e,a,t),Ja(e,n,t)]}e.l+=r},r:12},2197:{},2198:{f:function(e,r,t){var a=e.l+r;if(124226!==e.read_shift(4))if(t.cellStyles){var n,s=e.slice(e.l);e.l=a;try{n=nr(s,{type:"array"})}catch(c){return}var i=er(n,"theme/theme/theme1.xml",!0);if(i)return Fs(i,t)}else e.l=a},r:12},2199:{},2200:{},2201:{},2202:{f:function(e){return[0!==e.read_shift(4),0!==e.read_shift(4),e.read_shift(4)]},r:12},2203:{f:Ga},2204:{},2205:{},2206:{},2207:{},2211:{f:function(e){var r=function(e){var r=e.read_shift(2),t=e.read_shift(2);return e.l+=8,{type:r,flags:t}}(e);if(2211!=r.type)throw new Error("Invalid Future Record "+r.type);return 0!==e.read_shift(4)}},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:ja},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:function(e,r,t){var a={area:!1};if(5!=t.biff)return e.l+=r,a;var n=e.read_shift(1);return e.l+=3,16&n&&(a.area=!0),a}},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:function(e){for(var r=e.read_shift(2),t=[];r-- >0;)t.push(tn(e));return t}},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:gn},1:{},2:{f:function(e){var r=an(e);++e.l;var t=e.read_shift(2);return r.t="n",r.val=t,r}},3:{f:function(e){var r=an(e);++e.l;var t=aa(e);return r.t="n",r.val=t,r}},4:{f:function(e,r,t){t.biffguess&&5==t.biff&&(t.biff=2);var a=an(e);++e.l;var n=Za(e,0,t);return a.t="str",a.val=n,a}},5:{f:vn},7:{f:function(e){var r=e.read_shift(1);return 0===r?(e.l++,""):e.read_shift(r,"sbcs-cont")}},8:{},9:{f:dn},11:{},22:{f:ja},30:{f:mn},31:{},32:{},33:{f:kn},36:{},37:{f:pn},50:{f:function(e,r){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=r-13}},62:{},52:{},67:{},68:{f:ja},69:{},86:{},126:{},127:{f:function(e){var r=e.read_shift(2),t=e.read_shift(2),a=e.read_shift(4),n={fmt:r,env:t,len:a,data:e.slice(e.l,e.l+a)};return e.l+=a,n}},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:function(e,r,t){var a=e.l+r,n=an(e),s=e.read_shift(2),i=Ja(e,s,t);return e.l=a,n.t="str",n.val=i,n}},223:{},234:{},354:{},421:{},518:{f:wi},521:{f:dn},536:{f:wn},547:{f:Tn},561:{},579:{},1030:{f:wi},1033:{f:dn},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function Vc(e,r,t,a){var n=r;if(!isNaN(n)){var s=a||(t||[]).length||0,i=e.next(4);i.write_shift(2,n),i.write_shift(2,s),s>0&&ct(t)&&e.push(t)}}function Gc(e,r){var t=r||{};null!=T&&null==t.dense&&(t.dense=T);var a=t.dense?[]:{},n=(e=e.replace(//g,"")).match(/
");var s=e.match(/<\/table/i),i=n.index,c=s&&s.index||e.length,o=Ke(e.slice(i,c),/(:?]*>)/i,""),l=-1,f=0,h=0,u=0,d={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(i=0;i/i);for(c=0;c"))>-1;)E=E.slice(w+1);for(var A=0;A")));u=S.colspan?+S.colspan:1,((h=+S.rowspan)>1||u>1)&&p.push({s:{r:l,c:f},e:{r:l+(h||1)-1,c:f+u-1}});var y=S.t||S["data-t"]||"";if(E.length)if(E=Or(E),d.s.r>l&&(d.s.r=l),d.e.rf&&(d.s.c=f),d.e.ct||n[l].s.c>i)&&!(n[l].e.r1&&(d.rowspan=c),o>1&&(d.colspan=o),a.editable?u=''+u+"":h&&(d["data-t"]=h&&h.t||"z",null!=h.v&&(d["data-v"]=h.v),null!=h.z&&(d["data-z"]=h.z),h.l&&"#"!=(h.l.Target||"#").charAt(0)&&(u=''+u+"")),d.id=(a.id||"sjs")+"-"+f,s.push(Pr("td",u,d))}}return""+s.join("")+""}var jc='SheetJS Table Export',Xc="";function Kc(e,r,t){return[].join("")+""}function Yc(e,r){var t=r||{},a=null!=t.header?t.header:jc,n=null!=t.footer?t.footer:Xc,s=[a],i=Pt(e["!ref"]);t.dense=Array.isArray(e),s.push(Kc(0,0,t));for(var c=i.s.r;c<=i.e.r;++c)s.push($c(e,i,c,t));return s.push("
"+n),s.join("")}function Jc(e,r,t){var a=t||{};null!=T&&(a.dense=T);var n=0,s=0;if(null!=a.origin)if("number"==typeof a.origin)n=a.origin;else{var i="string"==typeof a.origin?Ft(a.origin):a.origin;n=i.r,s=i.c}var c=r.getElementsByTagName("tr"),o=Math.min(a.sheetRows||1e7,c.length),l={s:{r:0,c:0},e:{r:n,c:s}};if(e["!ref"]){var f=Pt(e["!ref"]);l.s.r=Math.min(l.s.r,f.s.r),l.s.c=Math.min(l.s.c,f.s.c),l.e.r=Math.max(l.e.r,f.e.r),l.e.c=Math.max(l.e.c,f.e.c),-1==n&&(l.e.r=n=f.e.r+1)}var h=[],u=0,d=e["!rows"]||(e["!rows"]=[]),p=0,m=0,g=0,v=0,b=0,E=0;for(e["!cols"]||(e["!cols"]=[]);p1||E>1)&&h.push({s:{r:m+n,c:v+s},e:{r:m+n+(b||1)-1,c:v+s+(E||1)-1}});var C={t:"s",v:S},R=k.getAttribute("data-t")||k.getAttribute("t")||"";null!=S&&(0==S.length?C.t=R||"z":a.raw||0==S.trim().length||"s"==R||("TRUE"===S?C={t:"b",v:!0}:"FALSE"===S?C={t:"b",v:!1}:isNaN($e(S))?isNaN(Xe(S).getDate())||(C={t:"d",v:ze(S)},a.cellDates||(C={t:"n",v:Ne(C.v)}),C.z=a.dateNF||W[14]):C={t:"n",v:$e(S)})),void 0===C.z&&null!=y&&(C.z=y);var O="",x=k.getElementsByTagName("A");if(x&&x.length)for(var I=0;I=o&&(e["!fullref"]=Mt((l.e.r=c.length-p+m-1+n,l))),e}function qc(e,r){return Jc((r||{}).dense?[]:{},e,r)}function Zc(e){var r="",t=function(e){return e.ownerDocument.defaultView&&"function"===typeof e.ownerDocument.defaultView.getComputedStyle?e.ownerDocument.defaultView.getComputedStyle:"function"===typeof getComputedStyle?getComputedStyle:null}(e);return t&&(r=t(e).getPropertyValue("display")),r||(r=e.style&&e.style.display),"none"===r}function Qc(e){var r=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,(function(e,r){return Array(parseInt(r,10)+1).join(" ")})).replace(/]*\/>/g,"\t").replace(//g,"\n");return[gr(r.replace(/<[^>]*>/g,""))]}var eo={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function ro(e,r){var t=r||{};null!=T&&null==t.dense&&(t.dense=T);var a,n,s,i,c,o,l=Mr(e),f=[],h={name:""},u="",d=0,p={},m=[],g=t.dense?[]:{},v={value:""},b="",E=0,w=[],A=-1,k=-1,S={s:{r:1e6,c:1e7},e:{r:0,c:0}},y=0,_={},C=[],R={},O=[],x=1,I=1,N=[],D={Names:[]},F={},L=["",""],P=[],M={},U="",B=0,H=!1,z=!1,W=0;for(Ur.lastIndex=0,l=l.replace(//gm,"").replace(//gm,"");c=Ur.exec(l);)switch(c[3]=c[3].replace(/_.*$/,"")){case"table":case"\u5de5\u4f5c\u8868":"/"===c[1]?(S.e.c>=S.s.c&&S.e.r>=S.s.r?g["!ref"]=Mt(S):g["!ref"]="A1:A1",t.sheetRows>0&&t.sheetRows<=S.e.r&&(g["!fullref"]=g["!ref"],S.e.r=t.sheetRows-1,g["!ref"]=Mt(S)),C.length&&(g["!merges"]=C),O.length&&(g["!rows"]=O),s.name=s["\u540d\u79f0"]||s.name,"undefined"!==typeof JSON&&JSON.stringify(s),m.push(s.name),p[s.name]=g,z=!1):"/"!==c[0].charAt(c[0].length-2)&&(s=ur(c[0],!1),A=k=-1,S.s.r=S.s.c=1e7,S.e.r=S.e.c=0,g=t.dense?[]:{},C=[],O=[],z=!0);break;case"table-row-group":"/"===c[1]?--y:++y;break;case"table-row":case"\u884c":if("/"===c[1]){A+=x,x=1;break}if((i=ur(c[0],!1))["\u884c\u53f7"]?A=i["\u884c\u53f7"]-1:-1==A&&(A=0),(x=+i["number-rows-repeated"]||1)<10)for(W=0;W0&&(O[A+W]={level:y});k=-1;break;case"covered-table-cell":"/"!==c[1]&&++k,t.sheetStubs&&(t.dense?(g[A]||(g[A]=[]),g[A][k]={t:"z"}):g[Lt({r:A,c:k})]={t:"z"}),b="",w=[];break;case"table-cell":case"\u6570\u636e":if("/"===c[0].charAt(c[0].length-2))++k,v=ur(c[0],!1),I=parseInt(v["number-columns-repeated"]||"1",10),o={t:"z",v:null},v.formula&&0!=t.cellFormula&&(o.f=xi(gr(v.formula))),"string"==(v["\u6570\u636e\u7c7b\u578b"]||v["value-type"])&&(o.t="s",o.v=gr(v["string-value"]||""),t.dense?(g[A]||(g[A]=[]),g[A][k]=o):g[Lt({r:A,c:k})]=o),k+=I-1;else if("/"!==c[1]){b="",E=0,w=[],I=1;var V=x?A+x-1:A;if(++k>S.e.c&&(S.e.c=k),kS.e.r&&(S.e.r=V),P=[],M={},o={t:(v=ur(c[0],!1))["\u6570\u636e\u7c7b\u578b"]||v["value-type"],v:null},t.cellFormula)if(v.formula&&(v.formula=gr(v.formula)),v["number-matrix-columns-spanned"]&&v["number-matrix-rows-spanned"]&&(R={s:{r:A,c:k},e:{r:A+(parseInt(v["number-matrix-rows-spanned"],10)||0)-1,c:k+(parseInt(v["number-matrix-columns-spanned"],10)||0)-1}},o.F=Mt(R),N.push([R,o.F])),v.formula)o.f=xi(v.formula);else for(W=0;W=N[W][0].s.r&&A<=N[W][0].e.r&&k>=N[W][0].s.c&&k<=N[W][0].e.c&&(o.F=N[W][1]);switch((v["number-columns-spanned"]||v["number-rows-spanned"])&&(R={s:{r:A,c:k},e:{r:A+(parseInt(v["number-rows-spanned"],10)||0)-1,c:k+(parseInt(v["number-columns-spanned"],10)||0)-1}},C.push(R)),v["number-columns-repeated"]&&(I=parseInt(v["number-columns-repeated"],10)),o.t){case"boolean":o.t="b",o.v=wr(v["boolean-value"]);break;case"float":case"percentage":case"currency":o.t="n",o.v=parseFloat(v.value);break;case"date":o.t="d",o.v=ze(v["date-value"]),t.cellDates||(o.t="n",o.v=Ne(o.v)),o.z="m/d/yy";break;case"time":o.t="n",o.v=Me(v["time-value"])/86400,t.cellDates&&(o.t="d",o.v=Pe(o.v)),o.z="HH:MM:SS";break;case"number":o.t="n",o.v=parseFloat(v["\u6570\u636e\u6570\u503c"]);break;default:if("string"!==o.t&&"text"!==o.t&&o.t)throw new Error("Unsupported value type "+o.t);o.t="s",null!=v["string-value"]&&(b=gr(v["string-value"]),w=[])}}else{if(H=!1,"s"===o.t&&(o.v=b||"",w.length&&(o.R=w),H=0==E),F.Target&&(o.l=F),P.length>0&&(o.c=P,P=[]),b&&!1!==t.cellText&&(o.w=b),H&&(o.t="z",delete o.v),(!H||t.sheetStubs)&&!(t.sheetRows&&t.sheetRows<=A))for(var G=0;G0;)g[A+G][k+I]=Ve(o);else for(g[Lt({r:A+G,c:k})]=o;--I>0;)g[Lt({r:A+G,c:k+I})]=Ve(o);S.e.c<=k&&(S.e.c=k)}k+=(I=parseInt(v["number-columns-repeated"]||"1",10))-1,I=0,o={},b="",w=[]}F={};break;case"document":case"document-content":case"\u7535\u5b50\u8868\u683c\u6587\u6863":case"spreadsheet":case"\u4e3b\u4f53":case"scripts":case"styles":case"font-face-decls":case"master-styles":if("/"===c[1]){if((a=f.pop())[0]!==c[3])throw"Bad state: "+a}else"/"!==c[0].charAt(c[0].length-2)&&f.push([c[3],!0]);break;case"annotation":if("/"===c[1]){if((a=f.pop())[0]!==c[3])throw"Bad state: "+a;M.t=b,w.length&&(M.R=w),M.a=U,P.push(M)}else"/"!==c[0].charAt(c[0].length-2)&&f.push([c[3],!1]);U="",B=0,b="",E=0,w=[];break;case"creator":"/"===c[1]?U=l.slice(B,c.index):B=c.index+c[0].length;break;case"meta":case"\u5143\u6570\u636e":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if("/"===c[1]){if((a=f.pop())[0]!==c[3])throw"Bad state: "+a}else"/"!==c[0].charAt(c[0].length-2)&&f.push([c[3],!1]);b="",E=0,w=[];break;case"scientific-number":case"currency-symbol":case"currency-style":case"script":case"libraries":case"automatic-styles":case"default-style":case"page-layout":case"style":case"map":case"font-face":case"paragraph-properties":case"table-properties":case"table-column-properties":case"table-row-properties":case"table-cell-properties":case"fraction":case"boolean-style":case"boolean":case"text-style":case"text-content":case"text-properties":case"embedded-text":case"body":case"\u7535\u5b50\u8868\u683c":case"forms":case"table-column":case"table-header-rows":case"table-rows":case"table-column-group":case"table-header-columns":case"table-columns":case"null-date":case"graphic-properties":case"calculation-settings":case"named-expressions":case"label-range":case"label-ranges":case"named-expression":case"sort":case"sort-by":case"sort-groups":case"tab":case"line-break":case"span":case"s":case"date":case"object":case"title":case"\u6807\u9898":case"desc":case"binary-data":case"table-source":case"scenario":case"iteration":case"content-validations":case"content-validation":case"help-message":case"error-message":case"database-ranges":case"filter":case"filter-and":case"filter-or":case"filter-condition":case"list-level-style-bullet":case"list-level-style-number":case"list-level-properties":case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":case"event-listener":case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":case"config-item":case"page-number":case"page-count":case"time":case"cell-range-source":case"detective":case"operation":case"highlighted-range":case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":case"rect":case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":case"properties":case"property":case"table-protection":case"data-pilot-grand-total":case"office-document-common-attrs":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if("/"===c[1]){if(_[h.name]=u,(a=f.pop())[0]!==c[3])throw"Bad state: "+a}else"/"!==c[0].charAt(c[0].length-2)&&(u="",h=ur(c[0],!1),f.push([c[3],!0]));break;case"number":case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(f[f.length-1][0]){case"time-style":case"date-style":n=ur(c[0],!1),u+=eo[c[3]]["long"===n.style?1:0]}break;case"text":if("/>"===c[0].slice(-2))break;if("/"===c[1])switch(f[f.length-1][0]){case"number-style":case"date-style":case"time-style":u+=l.slice(d,c.index)}else d=c.index+c[0].length;break;case"named-range":L=Ii((n=ur(c[0],!1))["cell-range-address"]);var $={Name:n.name,Ref:L[0]+"!"+L[1]};z&&($.Sheet=m.length),D.Names.push($);break;case"p":case"\u6587\u672c\u4e32":if(["master-styles"].indexOf(f[f.length-1][0])>-1)break;if("/"!==c[1]||v&&v["string-value"])ur(c[0],!1),E=c.index+c[0].length;else{var j=Qc(l.slice(E,c.index));b=(b.length>0?b+"\n":"")+j[0]}break;case"database-range":if("/"===c[1])break;try{p[(L=Ii(ur(c[0])["target-range-address"]))[0]]["!autofilter"]={ref:L[1]}}catch(K){}break;case"a":if("/"!==c[1]){if(!(F=ur(c[0],!1)).href)break;F.Target=gr(F.href),delete F.href,"#"==F.Target.charAt(0)&&F.Target.indexOf(".")>-1?(L=Ii(F.Target.slice(1)),F.Target="#"+L[0]+"!"+L[1]):F.Target.match(/^\.\.[\\\/]/)&&(F.Target=F.Target.slice(3))}break;default:switch(c[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"\u8868:":case"\u5b57:":break;default:if(t.WTF)throw new Error(c)}}var X={Sheets:p,SheetNames:m,Workbook:D};return t.bookSheets&&delete X.Sheets,X}function to(e,r){r=r||{},qe(e,"META-INF/manifest.xml")&&function(e,r){for(var t,a,n=Mr(e);t=Ur.exec(n);)switch(t[3]){case"manifest":break;case"file-entry":if("/"==(a=ur(t[0],!1)).path&&a.type!==ka)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(r&&r.WTF)throw t}}(Qe(e,"META-INF/manifest.xml"),r);var t=er(e,"content.xml");if(!t)throw new Error("Missing content.xml in ODS / UOF file");var a=ro(_r(t),r);return qe(e,"meta.xml")&&(a.Props=_a(Qe(e,"meta.xml"))),a}function ao(e,r){return ro(e,r)}function no(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function so(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):_r(R(e))}function io(e){var r=e.reduce((function(e,r){return e+r.length}),0),t=new Uint8Array(r),a=0;return e.forEach((function(e){t.set(e,a),a+=e.length})),t}function co(e){return 16843009*((e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135)>>>24}function oo(e,r){var t=r?r[0]:0,a=127&e[t];e:if(e[t++]>=128){if(a|=(127&e[t])<<7,e[t++]<128)break e;if(a|=(127&e[t])<<14,e[t++]<128)break e;if(a|=(127&e[t])<<21,e[t++]<128)break e;if(a+=(127&e[t])*Math.pow(2,28),++t,e[t++]<128)break e;if(a+=(127&e[t])*Math.pow(2,35),++t,e[t++]<128)break e;if(a+=(127&e[t])*Math.pow(2,42),++t,e[t++]<128)break e}return r&&(r[0]=t),a}function lo(e){var r=0,t=127&e[r];e:if(e[r++]>=128){if(t|=(127&e[r])<<7,e[r++]<128)break e;if(t|=(127&e[r])<<14,e[r++]<128)break e;if(t|=(127&e[r])<<21,e[r++]<128)break e;t|=(127&e[r])<<28}return t}function fo(e){for(var r=[],t=[0];t[0]=128;);a=e.slice(o,t[0]);break;case 5:c=4,a=e.slice(t[0],t[0]+c),t[0]+=c;break;case 1:c=8,a=e.slice(t[0],t[0]+c),t[0]+=c;break;case 2:c=oo(e,t),a=e.slice(t[0],t[0]+c),t[0]+=c;break;default:throw new Error("PB Type ".concat(i," for Field ").concat(s," at offset ").concat(n))}var l={data:a,type:i};null==r[s]?r[s]=[l]:r[s].push(l)}return r}function ho(e,r){return(null==e?void 0:e.map((function(e){return r(e.data)})))||[]}function uo(e){for(var r,t=[],a=[0];a[0]>>0>0),t.push(i)}return t}function po(e,r){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var t=[0],a=oo(r,t),n=[];t[0]>2&7),i=(224&r[t[0]++])<<3,i|=r[t[0]++]):(c=1+(r[t[0]++]>>2),2==s?(i=r[t[0]]|r[t[0]+1]<<8,t[0]+=2):(i=(r[t[0]]|r[t[0]+1]<<8|r[t[0]+2]<<16|r[t[0]+3]<<24)>>>0,t[0]+=4)),n=[io(n)],0==i)throw new Error("Invalid offset 0");if(i>n[0].length)throw new Error("Invalid offset beyond length");if(c>=i)for(n.push(n[0].slice(-i)),c-=i;c>=n[n.length-1].length;)n.push(n[n.length-1]),c-=n[n.length-1].length;n.push(n[0].slice(-i,-i+c))}else{var o=r[t[0]++]>>2;if(o<60)++o;else{var l=o-59;o=r[t[0]],l>1&&(o|=r[t[0]+1]<<8),l>2&&(o|=r[t[0]+2]<<16),l>3&&(o|=r[t[0]+3]<<24),o>>>=0,o++,t[0]+=l}n.push(r.slice(t[0],t[0]+o)),t[0]+=o}}var f=io(n);if(f.length!=a)throw new Error("Unexpected length: ".concat(f.length," != ").concat(a));return f}function mo(e){for(var r=[],t=0;t>1,a=1&e[r+14],n=r+13;n>=r;--n)a=256*a+e[n];return(128&e[r+15]?-a:a)*Math.pow(10,t-6176)}(e,i),i+=16),2&s&&(f=n.getFloat64(i,!0),i+=8),4&s&&(h.setTime(h.getTime()+1e3*n.getFloat64(i,!0)),i+=8),8&s&&(o=n.getUint32(i,!0),i+=4),16&s&&(c=n.getUint32(i,!0),i+=4),e[1]){case 0:break;case 2:case 10:a={t:"n",v:l};break;case 3:a={t:"s",v:r[o]};break;case 5:a={t:"d",v:h};break;case 6:a={t:"b",v:f>0};break;case 7:a={t:"n",v:f/86400};break;case 8:a={t:"e",v:0};break;case 9:if(!(c>-1))throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&s," : ").concat(e.slice(0,4)));a={t:"s",v:t[c]};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&s," : ").concat(e.slice(0,4)))}return a}function vo(e,r,t){switch(e[0]){case 0:case 1:case 2:case 3:return function(e,r,t,a){var n,s=no(e),i=s.getUint32(4,!0),c=(a>1?12:8)+4*co(i&(a>1?3470:398)),o=-1,l=-1,f=NaN,h=new Date(2001,0,1);switch(512&i&&(o=s.getUint32(c,!0),c+=4),c+=4*co(i&(a>1?12288:4096)),16&i&&(l=s.getUint32(c,!0),c+=4),32&i&&(f=s.getFloat64(c,!0),c+=8),64&i&&(h.setTime(h.getTime()+1e3*s.getFloat64(c,!0)),c+=8),e[2]){case 0:break;case 2:n={t:"n",v:f};break;case 3:n={t:"s",v:r[l]};break;case 5:n={t:"d",v:h};break;case 6:n={t:"b",v:f>0};break;case 7:n={t:"n",v:f/86400};break;case 8:n={t:"e",v:0};break;case 9:if(o>-1)n={t:"s",v:t[o]};else if(l>-1)n={t:"s",v:r[l]};else{if(isNaN(f))throw new Error("Unsupported cell type ".concat(e.slice(0,4)));n={t:"n",v:f}}break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return n}(e,r,t,e[0]);case 5:return go(e,r,t);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function bo(e){return oo(fo(e)[1][0].data)}function To(e,r){var t=fo(r.data),a=lo(t[1][0].data),n=t[3],s=[];return(n||[]).forEach((function(r){var t=fo(r.data),n=lo(t[1][0].data)>>>0;switch(a){case 1:s[n]=so(t[3][0].data);break;case 8:var i=fo(e[bo(t[9][0].data)][0].data),c=e[bo(i[1][0].data)][0],o=lo(c.meta[1][0].data);if(2001!=o)throw new Error("2000 unexpected reference to ".concat(o));var l=fo(c.data);s[n]=l[3].map((function(e){return so(e.data)})).join("")}})),s}function Eo(e,r){var t,a=fo(r.data),n=(null==(t=null==a?void 0:a[7])?void 0:t[0])?lo(a[7][0].data)>>>0>0?1:0:-1,s=ho(a[5],(function(e){return function(e,r){var t,a,n,s,i,c,o,l,f,h,u,d,p,m,g,v,b=fo(e),T=lo(b[1][0].data)>>>0,E=lo(b[2][0].data)>>>0,w=(null==(a=null==(t=b[8])?void 0:t[0])?void 0:a.data)&&lo(b[8][0].data)>0||!1;if((null==(s=null==(n=b[7])?void 0:n[0])?void 0:s.data)&&0!=r)g=null==(c=null==(i=b[7])?void 0:i[0])?void 0:c.data,v=null==(l=null==(o=b[6])?void 0:o[0])?void 0:l.data;else{if(!(null==(h=null==(f=b[4])?void 0:f[0])?void 0:h.data)||1==r)throw"NUMBERS Tile missing ".concat(r," cell storage");g=null==(d=null==(u=b[4])?void 0:u[0])?void 0:d.data,v=null==(m=null==(p=b[3])?void 0:p[0])?void 0:m.data}for(var A=w?4:1,k=no(g),S=[],y=0;y=1&&(C[S[S.length-1][0]]=v.subarray(S[S.length-1][1]*A)),{R:T,cells:C}}(e,n)}));return{nrows:lo(a[4][0].data)>>>0,data:s.reduce((function(e,r){return e[r.R]||(e[r.R]=[]),r.cells.forEach((function(t,a){if(e[r.R][a])throw new Error("Duplicate cell r=".concat(r.R," c=").concat(a));e[r.R][a]=t})),e}),[])}}function wo(e,r){var t={"!ref":"A1"},a=e[bo(fo(r.data)[2][0].data)],n=lo(a[0].meta[1][0].data);if(6001!=n)throw new Error("6000 unexpected reference to ".concat(n));return function(e,r,t){var a,n=fo(r.data),s={s:{r:0,c:0},e:{r:0,c:0}};if(s.e.r=(lo(n[6][0].data)>>>0)-1,s.e.r<0)throw new Error("Invalid row varint ".concat(n[6][0].data));if(s.e.c=(lo(n[7][0].data)>>>0)-1,s.e.c<0)throw new Error("Invalid col varint ".concat(n[7][0].data));t["!ref"]=Mt(s);var i=fo(n[4][0].data),c=To(e,e[bo(i[4][0].data)][0]),o=(null==(a=i[17])?void 0:a[0])?To(e,e[bo(i[17][0].data)][0]):[],l=fo(i[3][0].data),f=0;l[1].forEach((function(r){var a=fo(r.data),n=e[bo(a[2][0].data)][0],s=lo(n.meta[1][0].data);if(6002!=s)throw new Error("6001 unexpected reference to ".concat(s));var i=Eo(0,n);i.data.forEach((function(e,r){e.forEach((function(e,a){var n=Lt({r:f+r,c:a}),s=vo(e,c,o);s&&(t[n]=s)}))})),f+=i.nrows}))}(e,a[0],t),t}function Ao(e,r){var t={SheetNames:[],Sheets:{}};if(ho(fo(r.data)[1],bo).forEach((function(r){e[r].forEach((function(r){if(2==lo(r.meta[1][0].data)){var a=function(e,r){var t,a=fo(r.data),n={name:(null==(t=a[1])?void 0:t[0])?so(a[1][0].data):"",sheets:[]};return ho(a[2],bo).forEach((function(r){e[r].forEach((function(r){6e3==lo(r.meta[1][0].data)&&n.sheets.push(wo(e,r))}))})),n}(e,r);a.sheets.forEach((function(e,r){Vo(t,e,0==r?a.name:a.name+"_"+r,!0)}))}}))})),0==t.SheetNames.length)throw new Error("Empty NUMBERS file");return t}function ko(e){var r,t,a,n,s={},i=[];if(e.FullPaths.forEach((function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")})),e.FileIndex.forEach((function(e){if(e.name.match(/\.iwa$/)){var r,t;try{r=mo(e.content)}catch(a){return console.log("?? "+e.content.length+" "+(a.message||a))}try{t=uo(r)}catch(a){return console.log("## "+(a.message||a))}t.forEach((function(e){s[e.id]=e.messages,i.push(e.id)}))}})),!i.length)throw new Error("File has no messages");var c=(null==(n=null==(a=null==(t=null==(r=null==s?void 0:s[1])?void 0:r[0])?void 0:t.meta)?void 0:a[1])?void 0:n[0].data)&&1==lo(s[1][0].meta[1][0].data)&&s[1][0];if(c||i.forEach((function(e){s[e].forEach((function(e){if(1==lo(e.meta[1][0].data)>>>0){if(c)throw new Error("Document has multiple roots");c=e}}))})),!c)throw new Error("Cannot find Document root");return Ao(s,c)}function So(e){return function(r){for(var t=0;t!=e.length;++t){var a=e[t];void 0===r[a[0]]&&(r[a[0]]=a[1]),"n"===a[2]&&(r[a[0]]=Number(r[a[0]]))}}}function yo(e){So([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function _o(e,r,t,a,n,s,i,c,o,l,f,h){try{s[a]=Aa(er(e,t,!0),r);var u,d=Qe(e,r);switch(c){case"sheet":u=dc(d,r,n,o,s[a],l,f,h);break;case"chart":if(!(u=pc(d,r,n,o,s[a],l))||!u["!drawel"])break;var p=sr(u["!drawel"].Target,r),m=wa(p),g=function(e,r){if(!e)return"??";var t=(e.match(/]*r:id="([^"]*)"/)||["",""])[1];return r["!id"][t].Target}(er(e,p,!0),Aa(er(e,m,!0),p)),v=sr(g,p),b=wa(v);u=ec(er(e,v,!0),0,0,Aa(er(e,b,!0),v),0,u);break;case"macro":E=r,s[a],E.slice(-4),u={"!type":"macro"};break;case"dialog":u=function(e,r){return r.slice(-4),{"!type":"dialog"}}(0,r,0,0,s[a]);break;default:throw new Error("Unrecognized sheet type "+c)}i[a]=u;var T=[];s&&s[a]&&Oe(s[a]).forEach((function(t){var n="";if(s[a][t].Type==Ea.CMNT){n=sr(s[a][t].Target,r);var i=vc(Qe(e,n,!0),n,o);if(!i||!i.length)return;Us(u,i,!1)}s[a][t].Type==Ea.TCMNT&&(n=sr(s[a][t].Target,r),T=T.concat(function(e,r){var t=[],a=!1,n={},s=0;return e.replace(lr,(function(i,c){var o=ur(i);switch(dr(o[0])){case"":case"":case"
":case"":break;case"":null!=n.t&&t.push(n);break;case"":case"":n.t=e.slice(s,c).replace(/\r\n/g,"\n").replace(/\r/g,"\n");break;case"":case"":case"":a=!1;break;default:if(!a&&r.WTF)throw new Error("unrecognized "+o[0]+" in threaded comments")}return i})),t}(Qe(e,n,!0),o)))})),T&&T.length&&Us(u,T,!0,o.people||[])}catch(w){if(o.WTF)throw w}var E}function Co(e){return"/"==e.charAt(0)?e.slice(1):e}function Ro(e,r){if(ke(),yo(r=r||{}),qe(e,"META-INF/manifest.xml"))return to(e,r);if(qe(e,"objectdata.xml"))return to(e,r);if(qe(e,"Index/Document.iwa")){if("undefined"==typeof Uint8Array)throw new Error("NUMBERS file parsing requires Uint8Array support");if(e.FileIndex)return ko(e);var t=Ce.utils.cfb_new();return tr(e).forEach((function(r){ar(t,r,rr(e,r))})),ko(t)}if(!qe(e,"[Content_Types].xml")){if(qe(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(qe(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var a,n,s=tr(e),i=function(e){var r={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};if(!e||!e.match)return r;var t={};if((e.match(lr)||[]).forEach((function(e){var a=ur(e);switch(a[0].replace(fr,"<")){case"0?r.calcchains[0]:"",r.sst=r.strs.length>0?r.strs[0]:"",r.style=r.styles.length>0?r.styles[0]:"",r.defaults=t,delete r.calcchains,r}(er(e,"[Content_Types].xml")),c=!1;if(0===i.workbooks.length&&Qe(e,n="xl/workbook.xml",!0)&&i.workbooks.push(n),0===i.workbooks.length){if(!Qe(e,n="xl/workbook.bin",!0))throw new Error("Could not find workbook");i.workbooks.push(n),c=!0}"bin"==i.workbooks[0].slice(-3)&&(c=!0);var o={},l={};if(!r.bookSheets&&!r.bookProps){if(Ni=[],i.sst)try{Ni=gc(Qe(e,Co(i.sst)),i.sst,r)}catch(x){if(r.WTF)throw x}r.cellStyles&&i.themes.length&&(o=function(e,r,t){return Fs(e,t)}(er(e,i.themes[0].replace(/^\//,""),!0)||"",i.themes[0],r)),i.style&&(l=mc(Qe(e,Co(i.style)),i.style,o,r))}i.links.map((function(t){try{Aa(er(e,wa(Co(t))),t);return Tc(Qe(e,Co(t)),0,t,r)}catch(x){}}));var f=uc(Qe(e,Co(i.workbooks[0])),i.workbooks[0],r),h={},u="";i.coreprops.length&&((u=Qe(e,Co(i.coreprops[0]),!0))&&(h=_a(u)),0!==i.extprops.length&&(u=Qe(e,Co(i.extprops[0]),!0))&&function(e,r,t){var a={};r||(r={}),e=_r(e),Ca.forEach((function(t){var n=(e.match(Rr(t[0]))||[])[1];switch(t[2]){case"string":n&&(r[t[1]]=gr(n));break;case"bool":r[t[1]]="true"===n;break;case"raw":var s=e.match(new RegExp("<"+t[0]+"[^>]*>([\\s\\S]*?)"));s&&s.length>0&&(a[t[1]]=s[1])}})),a.HeadingPairs&&a.TitlesOfParts&&Ra(a.HeadingPairs,a.TitlesOfParts,r,t)}(u,h,r));var d={};r.bookSheets&&!r.bookProps||0!==i.custprops.length&&(u=er(e,Co(i.custprops[0]),!0))&&(d=function(e,r){var t={},a="",n=e.match(Oa);if(n)for(var s=0;s!=n.length;++s){var i=n[s],c=ur(i);switch(c[0]){case"":a=null;break;default:if(0===i.indexOf(""),l=o[0].slice(4),f=o[1];switch(l){case"lpstr":case"bstr":case"lpwstr":case"cy":case"error":t[a]=gr(f);break;case"bool":t[a]=wr(f);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":t[a]=parseInt(f,10);break;case"r4":case"r8":case"decimal":t[a]=parseFloat(f);break;case"filetime":case"date":t[a]=ze(f);break;default:if("/"==l.slice(-1))break;r.WTF&&"undefined"!==typeof console&&console.warn("Unexpected",i,l,o)}}else if("0&&(a=h.SheetNames),r.bookProps&&(p.Props=h,p.Custprops=d),r.bookSheets&&"undefined"!==typeof a&&(p.SheetNames=a),r.bookSheets?p.SheetNames:r.bookProps))return p;a={};var m={};r.bookDeps&&i.calcchain&&(m=bc(Qe(e,Co(i.calcchain)),i.calcchain));var g,v,b=0,T={},E=f.Sheets;h.Worksheets=E.length,h.SheetNames=[];for(var w=0;w!=E.length;++w)h.SheetNames[w]=E[w].name;var A=c?"bin":"xml",k=i.workbooks[0].lastIndexOf("/"),S=(i.workbooks[0].slice(0,k+1)+"_rels/"+i.workbooks[0].slice(k+1)+".rels").replace(/^\//,"");qe(e,S)||(S="xl/_rels/workbook."+A+".rels");var y=Aa(er(e,S,!0),S.replace(/_rels.*/,"s5s"));(i.metadata||[]).length>=1&&(r.xlmeta=Ec(Qe(e,Co(i.metadata[0])),i.metadata[0],r)),(i.people||[]).length>=1&&(r.people=function(e,r){var t=[],a=!1;return e.replace(lr,(function(e){var n=ur(e);switch(dr(n[0])){case"":case"":case"":case"":case"":break;case"":a=!1;break;default:if(!a&&r.WTF)throw new Error("unrecognized "+n[0]+" in threaded comments")}return e})),t}(Qe(e,Co(i.people[0])),r)),y&&(y=function(e,r){if(!e)return 0;try{e=r.map((function(r){return r.id||(r.id=r.strRelID),[r.name,e["!id"][r.id].Target,(t=e["!id"][r.id].Type,Ea.WS.indexOf(t)>-1?"sheet":Ea.CS&&t==Ea.CS?"chart":Ea.DS&&t==Ea.DS?"dialog":Ea.MS&&t==Ea.MS?"macro":t&&t.length?t:"sheet")];var t}))}catch(x){return null}return e&&0!==e.length?e:null}(y,f.Sheets));var _=Qe(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(b=0;b!=h.Worksheets;++b){var C="sheet";if(y&&y[b]?(g="xl/"+y[b][1].replace(/[\/]?xl\//,""),qe(e,g)||(g=y[b][1]),qe(e,g)||(g=S.replace(/_rels\/.*$/,"")+y[b][1]),C=y[b][2]):g=(g="xl/worksheets/sheet"+(b+1-_)+"."+A).replace(/sheet0\./,"sheet."),v=g.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),r&&null!=r.sheets)switch(typeof r.sheets){case"number":if(b!=r.sheets)continue e;break;case"string":if(h.SheetNames[b].toLowerCase()!=r.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(r.sheets)){for(var R=!1,O=0;O!=r.sheets.length;++O)"number"==typeof r.sheets[O]&&r.sheets[O]==b&&(R=1),"string"==typeof r.sheets[O]&&r.sheets[O].toLowerCase()==h.SheetNames[b].toLowerCase()&&(R=1);if(!R)continue e}}_o(e,g,v,h.SheetNames[b],b,T,a,C,r,f,o,l)}return p={Directory:i,Workbook:f,Props:h,Custprops:d,Deps:m,Sheets:a,SheetNames:h.SheetNames,Strings:Ni,Styles:l,Themes:o,SSF:Ve(W)},r&&r.bookFiles&&(e.files?(p.keys=s,p.files=e.files):(p.keys=[],p.files={},e.FullPaths.forEach((function(r,t){r=r.replace(/^Root Entry[\/]/,""),p.keys.push(r),p.files[r]=e.FileIndex[t]})))),r&&r.bookVBA&&(i.vba.length>0?p.vbaraw=Qe(e,Co(i.vba[0]),!0):i.defaults&&i.defaults.bin===Hs&&(p.vbaraw=Qe(e,"xl/vbaProject.bin",!0))),p}function Oo(e,r){var t=r||{},a="Workbook",n=Ce.find(e,a);try{if(a="/!DataSpaces/Version",!(n=Ce.find(e,a))||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(function(e){var r={};r.id=e.read_shift(0,"lpp4"),r.R=jn(e,4),r.U=jn(e,4),r.W=jn(e,4)}(n.content),a="/!DataSpaces/DataSpaceMap",!(n=Ce.find(e,a))||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var s=function(e){var r=[];e.l+=4;for(var t=e.read_shift(4);t-- >0;)r.push(Xn(e));return r}(n.content);if(1!==s.length||1!==s[0].comps.length||0!==s[0].comps[0].t||"StrongEncryptionDataSpace"!==s[0].name||"EncryptedPackage"!==s[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(n=Ce.find(e,a))||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var i=function(e){var r=[];e.l+=4;for(var t=e.read_shift(4);t-- >0;)r.push(e.read_shift(0,"lpp4"));return r}(n.content);if(1!=i.length||"StrongEncryptionTransform"!=i[0])throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(n=Ce.find(e,a))||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);Kn(n.content)}catch(o){}if(a="/EncryptionInfo",!(n=Ce.find(e,a))||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var c=function(e){var r=jn(e);switch(r.Minor){case 2:return[r.Minor,qn(e)];case 3:return[r.Minor,Zn()];case 4:return[r.Minor,Qn(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+r.Minor)}(n.content);if(a="/EncryptedPackage",!(n=Ce.find(e,a))||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(4==c[0]&&"undefined"!==typeof decrypt_agile)return decrypt_agile(c[1],n.content,t.password||"",t);if(2==c[0]&&"undefined"!==typeof decrypt_std76)return decrypt_std76(c[1],n.content,t.password||"",t);throw new Error("File is password-protected")}function xo(e,r){var t="";switch((r||{}).type||"base64"){case"buffer":case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":t=A(e.slice(0,12));break;case"binary":t=e;break;default:throw new Error("Unrecognized type "+(r&&r.type||"undefined"))}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function Io(e,r){var t=0;e:for(;t=2&&0===n[3])return Ln.to_workbook(s,t);if(0===n[2]&&(8===n[3]||9===n[3]))return Ln.to_workbook(s,t)}break;case 3:case 131:case 139:case 140:return xn.to_workbook(s,t);case 123:if(92===n[1]&&114===n[2]&&116===n[3])return ns.to_workbook(s,t);break;case 10:case 13:case 32:return function(e,r){var t="",a=xo(e,r);switch(r.type){case"base64":t=A(e);break;case"binary":t=e;break;case"buffer":t=e.toString("binary");break;case"array":t=We(e);break;default:throw new Error("Unrecognized type "+r.type)}return 239==a[0]&&187==a[1]&&191==a[2]&&(t=_r(t)),r.type="binary",Io(t,r)}(s,t);case 137:if(80===n[1]&&78===n[2]&&71===n[3])throw new Error("PNG Image File is not a spreadsheet")}return On.indexOf(n[0])>-1&&n[2]<=12&&n[3]<=31?xn.to_workbook(s,t):No(e,s,t,i)}function Fo(e,r,t,a,n,s,i,c){var o=It(t),l=c.defval,f=c.raw||!Object.prototype.hasOwnProperty.call(c,"raw"),h=!0,u=1===n?[]:{};if(1!==n)if(Object.defineProperty)try{Object.defineProperty(u,"__rowNum__",{value:t,enumerable:!1})}catch(g){u.__rowNum__=t}else u.__rowNum__=t;if(!i||e[t])for(var d=r.s.c;d<=r.e.c;++d){var p=i?e[t][d]:e[a[d]+o];if(void 0!==p&&void 0!==p.t){var m=p.v;switch(p.t){case"z":if(null==m)break;continue;case"e":m=0==m?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(null!=s[d]){if(null==m)if("e"==p.t&&null===m)u[s[d]]=null;else if(void 0!==l)u[s[d]]=l;else{if(!f||null!==m)continue;u[s[d]]=null}else u[s[d]]=f&&("n"!==p.t||"n"===p.t&&!1!==c.rawNumbers)?m:Ht(p,m,c);null!=m&&(h=!1)}}else{if(void 0===l)continue;null!=s[d]&&(u[s[d]]=l)}}return{row:u,isempty:h}}function Lo(e,r){if(null==e||null==e["!ref"])return[];var t={t:"n",v:0},a=0,n=1,s=[],i=0,c="",o={s:{r:0,c:0},e:{r:0,c:0}},l=r||{},f=null!=l.range?l.range:e["!ref"];switch(1===l.header?a=1:"A"===l.header?a=2:Array.isArray(l.header)?a=3:null==l.header&&(a=0),typeof f){case"string":o=Ut(f);break;case"number":(o=Ut(e["!ref"])).s.r=f;break;default:o=f}a>0&&(n=0);var h=It(o.s.r),u=[],d=[],p=0,m=0,g=Array.isArray(e),v=o.s.r,b=0,T={};g&&!e[v]&&(e[v]=[]);var E=l.skipHidden&&e["!cols"]||[],w=l.skipHidden&&e["!rows"]||[];for(b=o.s.c;b<=o.e.c;++b)if(!(E[b]||{}).hidden)switch(u[b]=Dt(b),t=g?e[v][b]:e[u[b]+h],a){case 1:s[b]=b-o.s.c;break;case 2:s[b]=u[b];break;case 3:s[b]=l.header[b-o.s.c];break;default:if(null==t&&(t={w:"__EMPTY",t:"s"}),c=i=Ht(t,null,l),m=T[i]||0){do{c=i+"_"+m++}while(T[c]);T[i]=m,T[c]=1}else T[i]=1;s[b]=c}for(v=o.s.r+n;v<=o.e.r;++v)if(!(w[v]||{}).hidden){var A=Fo(e,o,v,u,a,s,g,l);(!1===A.isempty||(1===a?!1!==l.blankrows:l.blankrows))&&(d[p++]=A.row)}return d.length=p,d}var Po=/"/g;function Mo(e,r,t,a,n,s,i,c){for(var o=!0,l=[],f="",h=It(t),u=r.s.c;u<=r.e.c;++u)if(a[u]){var d=c.dense?(e[t]||[])[u]:e[a[u]+h];if(null==d)f="";else if(null!=d.v){o=!1,f=""+(c.rawNumbers&&"n"==d.t?d.v:Ht(d,null,c));for(var p=0,m=0;p!==f.length;++p)if((m=f.charCodeAt(p))===n||m===s||34===m||c.forceQuotes){f='"'+f.replace(Po,'""')+'"';break}"ID"==f&&(f='"ID"')}else null==d.f||d.F?f="":(o=!1,(f="="+d.f).indexOf(",")>=0&&(f='"'+f.replace(Po,'""')+'"'));l.push(f)}return!1===c.blankrows&&o?null:l.join(i)}function Uo(e,r){var t=[],a=null==r?{}:r;if(null==e||null==e["!ref"])return"";var n=Ut(e["!ref"]),s=void 0!==a.FS?a.FS:",",i=s.charCodeAt(0),c=void 0!==a.RS?a.RS:"\n",o=c.charCodeAt(0),l=new RegExp(("|"==s?"\\|":s)+"+$"),f="",h=[];a.dense=Array.isArray(e);for(var u=a.skipHidden&&e["!cols"]||[],d=a.skipHidden&&e["!rows"]||[],p=n.s.c;p<=n.e.c;++p)(u[p]||{}).hidden||(h[p]=Dt(p));for(var m=0,g=n.s.r;g<=n.e.r;++g)(d[g]||{}).hidden||null!=(f=Mo(e,n,g,h,i,o,s,a))&&(a.strip&&(f=f.replace(l,"")),(f||!1!==a.blankrows)&&t.push((m++?c:"")+f));return delete a.dense,t.join("")}function Bo(e,r){r||(r={}),r.FS="\t",r.RS="\n";var t=Uo(e,r);if("undefined"==typeof m||"string"==r.type)return t;var a=m.utils.encode(1200,t,"str");return String.fromCharCode(255)+String.fromCharCode(254)+a}function Ho(e,r,t){var a,n=t||{},s=+!n.skipHeader,i=e||{},c=0,o=0;if(i&&null!=n.origin)if("number"==typeof n.origin)c=n.origin;else{var l="string"==typeof n.origin?Ft(n.origin):n.origin;c=l.r,o=l.c}var f={s:{c:0,r:0},e:{c:o,r:c+r.length-1+s}};if(i["!ref"]){var h=Ut(i["!ref"]);f.e.c=Math.max(f.e.c,h.e.c),f.e.r=Math.max(f.e.r,h.e.r),-1==c&&(c=h.e.r+1,f.e.r=c+r.length-1+s)}else-1==c&&(c=0,f.e.r=r.length-1+s);var u=n.header||[],d=0;r.forEach((function(e,r){Oe(e).forEach((function(t){-1==(d=u.indexOf(t))&&(u[d=u.length]=t);var l=e[t],f="z",h="",p=Lt({c:o+d,r:c+r+s});a=zo(i,p),!l||"object"!==typeof l||l instanceof Date?("number"==typeof l?f="n":"boolean"==typeof l?f="b":"string"==typeof l?f="s":l instanceof Date?(f="d",n.cellDates||(f="n",l=Ne(l)),h=n.dateNF||W[14]):null===l&&n.nullError&&(f="e",l=0),a?(a.t=f,a.v=l,delete a.w,delete a.R,h&&(a.z=h)):i[p]=a={t:f,v:l},h&&(a.z=h)):i[p]=l}))})),f.e.c=Math.max(f.e.c,o+u.length-1);var p=It(c);if(s)for(d=0;d=65535)throw new Error("Too many worksheets");if(a&&e.SheetNames.indexOf(t)>=0){var s=t.match(/(^.*?)(\d+)$/);n=s&&+s[2]||0;var i=s&&s[1]||t;for(++n;n<=65535&&-1!=e.SheetNames.indexOf(t=i+n);++n);}if(lc(t),e.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");return e.SheetNames.push(t),e.Sheets[t]=r,t}function Go(e,r,t){return r?(e.l={Target:r},t&&(e.l.Tooltip=t)):delete e.l,e}var $o={encode_col:Dt,encode_row:It,encode_cell:Lt,encode_range:Mt,decode_col:Nt,decode_row:xt,split_cell:function(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:Ft,decode_range:Pt,format_cell:Ht,sheet_add_aoa:Wt,sheet_add_json:Ho,sheet_add_dom:Jc,aoa_to_sheet:Vt,json_to_sheet:function(e,r){return Ho(null,e,r)},table_to_sheet:qc,table_to_book:function(e,r){return zt(qc(e,r),r)},sheet_to_csv:Uo,sheet_to_txt:Bo,sheet_to_json:Lo,sheet_to_html:Yc,sheet_to_formulae:function(e){var r,t="",a="";if(null==e||null==e["!ref"])return[];var n,s=Ut(e["!ref"]),i="",c=[],o=[],l=Array.isArray(e);for(n=s.s.c;n<=s.e.c;++n)c[n]=Dt(n);for(var f=s.s.r;f<=s.e.r;++f)for(i=It(f),n=s.s.c;n<=s.e.c;++n)if(t=c[n]+i,a="",void 0!==(r=l?(e[f]||[])[n]:e[t])){if(null!=r.F){if(t=r.F,!r.f)continue;a=r.f,-1==t.indexOf(":")&&(t=t+":"+t)}if(null!=r.f)a=r.f;else{if("z"==r.t)continue;if("n"==r.t&&null!=r.v)a=""+r.v;else if("b"==r.t)a=r.v?"TRUE":"FALSE";else if(void 0!==r.w)a="'"+r.w;else{if(void 0===r.v)continue;a="s"==r.t?"'"+r.v:""+r.v}}o[o.length]=t+"="+a}return o},sheet_to_row_object_array:Lo,sheet_get_cell:zo,book_new:Wo,book_append_sheet:Vo,book_set_sheet_visibility:function(e,r,t){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var a=function(e,r){if("number"==typeof r){if(r>=0&&e.SheetNames.length>r)return r;throw new Error("Cannot find sheet # "+r)}if("string"==typeof r){var t=e.SheetNames.indexOf(r);if(t>-1)return t;throw new Error("Cannot find sheet name |"+r+"|")}throw new Error("Cannot find sheet |"+r+"|")}(e,r);switch(e.Workbook.Sheets[a]||(e.Workbook.Sheets[a]={}),t){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+t)}e.Workbook.Sheets[a].Hidden=t},cell_set_number_format:function(e,r){return e.z=r,e},cell_set_hyperlink:Go,cell_set_internal_link:function(e,r,t){return Go(e,"#"+r,t)},cell_add_comment:function(e,r,t){e.c||(e.c=[]),e.c.push({t:r,a:t||"SheetJS"})},sheet_set_array_formula:function(e,r,t,a){for(var n="string"!=typeof r?r:Ut(r),s="string"==typeof r?r:Mt(r),i=n.s.r;i<=n.e.r;++i)for(var c=n.s.c;c<=n.e.c;++c){var o=zo(e,i,c);o.t="n",o.F=s,delete o.v,i==n.s.r&&c==n.s.c&&(o.f=t,a&&(o.D=!0))}return e},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};s.version},88349:(e,r,t)=>{"use strict";t.d(r,{A:()=>o});var a=t(58168),n=t(9950);const s={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"};var i=t(61187),c=function(e,r){return n.createElement(i.A,(0,a.A)({},e,{ref:r,icon:s}))};const o=n.forwardRef(c)},90421:(e,r,t)=>{"use strict";t.d(r,{A:()=>o});var a=t(58168),n=t(9950);const s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM544 472c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V472z"}}]},name:"file-add",theme:"outlined"};var i=t(61187),c=function(e,r){return n.createElement(i.A,(0,a.A)({},e,{ref:r,icon:s}))};const o=n.forwardRef(c)},96557:(e,r,t)=>{"use strict";t.d(r,{A:()=>b});var a=t(98587),n=t(58168),s=t(9950),i=t(72004),c=t(3484),o=t(59254),l=t(18463),f=t(45558),h=t(1614);function u(e){return(0,h.Ay)("MuiFormGroup",e)}(0,f.A)("MuiFormGroup",["root","row","error"]);var d=t(39766),p=t(68624),m=t(44414);const g=["className","row"],v=(0,o.Ay)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.row&&r.row]}})((e=>{let{ownerState:r}=e;return(0,n.A)({display:"flex",flexDirection:"column",flexWrap:"wrap"},r.row&&{flexDirection:"row"})})),b=s.forwardRef((function(e,r){const t=(0,l.b)({props:e,name:"MuiFormGroup"}),{className:s,row:o=!1}=t,f=(0,a.A)(t,g),h=(0,d.A)(),b=(0,p.A)({props:t,muiFormControl:h,states:["error"]}),T=(0,n.A)({},t,{row:o,error:b.error}),E=(e=>{const{classes:r,row:t,error:a}=e,n={root:["root",t&&"row",a&&"error"]};return(0,c.A)(n,u,r)})(T);return(0,m.jsx)(v,(0,n.A)({className:(0,i.A)(E.root,s),ownerState:T,ref:r},f))}))}}]); \ No newline at end of file diff --git a/build/static/js/7579.c4ab85a1.chunk.js b/build/static/js/7579.c4ab85a1.chunk.js new file mode 100644 index 0000000..0105c13 --- /dev/null +++ b/build/static/js/7579.c4ab85a1.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[7579],{13437:(t,e,i)=>{i.d(e,{p:()=>n});var s=i(91323),r=i(73413);const n=(0,s.T7)((function(t){return new r.Control.Zoom(t)}))},19283:(t,e,i)=>{i.d(e,{z:()=>u});var s=i(91323),r=i(81501),n=i(73413),o=i(85672);const u=(0,s.wk)((function(t,e){const i=new n.Popup(t,e.overlayContainer);return(0,r.Q)(i,e)}),(function(t,e,i,s){let{position:r}=i;(0,o.useEffect)((function(){const{instance:i}=t;function n(t){t.popup===i&&(i.update(),s(!0))}function o(t){t.popup===i&&s(!1)}return e.map.on({popupopen:n,popupclose:o}),null==e.overlayContainer?(null!=r&&i.setLatLng(r),i.openOn(e.map)):e.overlayContainer.bindPopup(i),function(){var t;e.map.off({popupopen:n,popupclose:o}),null===(t=e.overlayContainer)||void 0===t||t.unbindPopup(),e.map.removeLayer(i)}}),[t,e,s,r])}))},38965:(t,e,i)=>{i.d(e,{ko:()=>r});var s=i(12414);i(85672);function r(){return(0,s.U$)().map}},41033:(t,e,i)=>{i.d(e,{q:()=>a});var s=i(22555),r=i(48149),n=i(59949),o=class extends r.${constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,e){super.setOptions((0,s.A)((0,s.A)({},t),{},{behavior:(0,n.PL)()}),e)}getOptimisticResult(t){return t.behavior=(0,n.PL)(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch((0,s.A)((0,s.A)({},t),{},{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(t){return this.fetch((0,s.A)((0,s.A)({},t),{},{meta:{fetchMore:{direction:"backward"}}}))}createResult(t,e){var i,r,o,u;const{state:a}=t,h=super.createResult(t,e),{isFetching:c,isRefetching:l}=h,d=c&&"forward"===(null===(i=a.fetchMeta)||void 0===i||null===(r=i.fetchMore)||void 0===r?void 0:r.direction),p=c&&"backward"===(null===(o=a.fetchMeta)||void 0===o||null===(u=o.fetchMore)||void 0===u?void 0:u.direction);return(0,s.A)((0,s.A)({},h),{},{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,n.rB)(e,a.data),hasPreviousPage:(0,n.RQ)(e,a.data),isFetchingNextPage:d,isFetchingPreviousPage:p,isRefetching:l&&!d&&!p})}},u=i(59363);function a(t,e){return(0,u.t)(t,o,e)}},68220:(t,e,i)=>{i.d(e,{n:()=>P});var s,r,n,o,u,a,h=i(22555),c=i(85672),l=i(4473),d=i(68341),p=i(9600),f=i(86547),v=i(30138),A=i(90010),b=(s=(0,d.A)("client"),r=(0,d.A)("currentResult"),n=(0,d.A)("currentMutation"),o=(0,d.A)("mutateOptions"),u=(0,d.A)("updateResult"),a=(0,d.A)("notify"),class extends v.Q{constructor(t,e){super(),Object.defineProperty(this,a,{value:m}),Object.defineProperty(this,u,{value:y}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,r,{writable:!0,value:void 0}),Object.defineProperty(this,n,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:void 0}),(0,l.A)(this,r)[r]=void 0,(0,l.A)(this,s)[s]=t,this.setOptions(e),this.bindMethods(),(0,l.A)(this,u)[u]()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;const i=this.options;this.options=(0,l.A)(this,s)[s].defaultMutationOptions(t),(0,A.f8)(i,this.options)||(0,l.A)(this,s)[s].getMutationCache().notify({type:"observerOptionsUpdated",mutation:(0,l.A)(this,n)[n],observer:this}),null===(e=(0,l.A)(this,n)[n])||void 0===e||e.setOptions(this.options),null!==i&&void 0!==i&&i.mutationKey&&this.options.mutationKey&&(0,A.EN)(i.mutationKey)!==(0,A.EN)(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var t;this.hasListeners()||(null===(t=(0,l.A)(this,n)[n])||void 0===t||t.removeObserver(this))}onMutationUpdate(t){(0,l.A)(this,u)[u](),(0,l.A)(this,a)[a](t)}getCurrentResult(){return(0,l.A)(this,r)[r]}reset(){var t;null===(t=(0,l.A)(this,n)[n])||void 0===t||t.removeObserver(this),(0,l.A)(this,n)[n]=void 0,(0,l.A)(this,u)[u](),(0,l.A)(this,a)[a]()}mutate(t,e){var i;return(0,l.A)(this,o)[o]=e,null===(i=(0,l.A)(this,n)[n])||void 0===i||i.removeObserver(this),(0,l.A)(this,n)[n]=(0,l.A)(this,s)[s].getMutationCache().build((0,l.A)(this,s)[s],this.options),(0,l.A)(this,n)[n].addObserver(this),(0,l.A)(this,n)[n].execute(t)}});function y(){var t,e;const i=null!==(t=null===(e=(0,l.A)(this,n)[n])||void 0===e?void 0:e.state)&&void 0!==t?t:(0,p.$)();(0,l.A)(this,r)[r]=(0,h.A)((0,h.A)({},i),{},{isPending:"pending"===i.status,isSuccess:"success"===i.status,isError:"error"===i.status,isIdle:"idle"===i.status,mutate:this.mutate,reset:this.reset})}function m(t){f.j.batch((()=>{if((0,l.A)(this,o)[o]&&this.hasListeners()){const d=(0,l.A)(this,r)[r].variables,p=(0,l.A)(this,r)[r].context;var e,i,s,n;if("success"===(null===t||void 0===t?void 0:t.type))null===(e=(i=(0,l.A)(this,o)[o]).onSuccess)||void 0===e||e.call(i,t.data,d,p),null===(s=(n=(0,l.A)(this,o)[o]).onSettled)||void 0===s||s.call(n,t.data,null,d,p);else if("error"===(null===t||void 0===t?void 0:t.type)){var u,a,h,c;null===(u=(a=(0,l.A)(this,o)[o]).onError)||void 0===u||u.call(a,t.error,d,p),null===(h=(c=(0,l.A)(this,o)[o]).onSettled)||void 0===h||h.call(c,void 0,t.error,d,p)}}this.listeners.forEach((t=>{t((0,l.A)(this,r)[r])}))}))}var O=i(66299),g=i(42948);function P(t,e){const i=(0,O.jE)(e),[s]=c.useState((()=>new b(i,t)));c.useEffect((()=>{s.setOptions(t)}),[s,t]);const r=c.useSyncExternalStore(c.useCallback((t=>s.subscribe(f.j.batchCalls(t))),[s]),(()=>s.getCurrentResult()),(()=>s.getCurrentResult())),n=c.useCallback(((t,e)=>{s.mutate(t,e).catch(w)}),[s]);if(r.error&&(0,g.G)(s.options.throwOnError,[r.error]))throw r.error;return(0,h.A)((0,h.A)({},r),{},{mutate:n,mutateAsync:r.mutate})}function w(){}},68320:(t,e,i)=>{i.d(e,{I:()=>n});var s=i(48149),r=i(59363);function n(t,e){return(0,r.t)(t,s.$,e)}},69810:(t,e,i)=>{i.d(e,{m:()=>u});var s=i(91323),r=i(81501),n=i(73413),o=i(85672);const u=(0,s.wk)((function(t,e){const i=new n.Tooltip(t,e.overlayContainer);return(0,r.Q)(i,e)}),(function(t,e,i,s){let{position:r}=i;(0,o.useEffect)((function(){const i=e.overlayContainer;if(null==i)return;const{instance:n}=t,o=t=>{t.tooltip===n&&(null!=r&&n.setLatLng(r),n.update(),s(!0))},u=t=>{t.tooltip===n&&s(!1)};return i.on({tooltipopen:o,tooltipclose:u}),i.bindTooltip(n),function(){i.off({tooltipopen:o,tooltipclose:u}),null!=i._map&&i.unbindTooltip()}}),[t,e,s,r])}))},97448:(t,e,i)=>{i.d(e,{E:()=>N});var s,r,n,o,u,a,h,c,l,d,p,f=i(53986),v=i(85672),A=i(4473),b=i(68341),y=i(86547),m=i(48149),O=i(30138),g=i(90010);function P(t,e){return t.filter((t=>!e.includes(t)))}var w=(s=(0,b.A)("client"),r=(0,b.A)("result"),n=(0,b.A)("queries"),o=(0,b.A)("observers"),u=(0,b.A)("options"),a=(0,b.A)("combinedResult"),h=(0,b.A)("setResult"),c=(0,b.A)("combineResult"),l=(0,b.A)("findMatchingObservers"),d=(0,b.A)("onUpdate"),p=(0,b.A)("notify"),class extends O.Q{constructor(t,e,i){super(),Object.defineProperty(this,p,{value:Q}),Object.defineProperty(this,d,{value:j}),Object.defineProperty(this,l,{value:R}),Object.defineProperty(this,c,{value:C}),Object.defineProperty(this,h,{value:E}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,r,{writable:!0,value:void 0}),Object.defineProperty(this,n,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),(0,A.A)(this,s)[s]=t,(0,A.A)(this,n)[n]=[],(0,A.A)(this,o)[o]=[],(0,A.A)(this,h)[h]([]),this.setQueries(e,i)}onSubscribe(){1===this.listeners.size&&(0,A.A)(this,o)[o].forEach((t=>{t.subscribe((e=>{(0,A.A)(this,d)[d](t,e)}))}))}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,(0,A.A)(this,o)[o].forEach((t=>{t.destroy()}))}setQueries(t,e,i){(0,A.A)(this,n)[n]=t,(0,A.A)(this,u)[u]=e,y.j.batch((()=>{const t=(0,A.A)(this,o)[o],e=(0,A.A)(this,l)[l]((0,A.A)(this,n)[n]);e.forEach((t=>t.observer.setOptions(t.defaultedQueryOptions,i)));const s=e.map((t=>t.observer)),r=s.map((t=>t.getCurrentResult())),u=s.some(((e,i)=>e!==t[i]));(t.length!==s.length||u)&&((0,A.A)(this,o)[o]=s,(0,A.A)(this,h)[h](r),this.hasListeners()&&(P(t,s).forEach((t=>{t.destroy()})),P(s,t).forEach((t=>{t.subscribe((e=>{(0,A.A)(this,d)[d](t,e)}))})),(0,A.A)(this,p)[p]()))}))}getCurrentResult(){return(0,A.A)(this,a)[a]}getQueries(){return(0,A.A)(this,o)[o].map((t=>t.getCurrentQuery()))}getObservers(){return(0,A.A)(this,o)[o]}getOptimisticResult(t,e){const i=(0,A.A)(this,l)[l](t),s=i.map((t=>t.observer.getOptimisticResult(t.defaultedQueryOptions)));return[s,t=>(0,A.A)(this,c)[c](null!==t&&void 0!==t?t:s,e),()=>i.map(((t,e)=>{const i=s[e];return t.defaultedQueryOptions.notifyOnChangeProps?i:t.observer.trackResult(i)}))]}});function E(t){var e;(0,A.A)(this,r)[r]=t,(0,A.A)(this,a)[a]=(0,A.A)(this,c)[c](t,null===(e=(0,A.A)(this,u)[u])||void 0===e?void 0:e.combine)}function C(t,e){return e?(0,g.BH)((0,A.A)(this,a)[a],e(t)):t}function R(t){const e=(0,A.A)(this,o)[o],i=new Map(e.map((t=>[t.options.queryHash,t]))),r=t.map((t=>(0,A.A)(this,s)[s].defaultQueryOptions(t))),n=r.flatMap((t=>{const e=i.get(t.queryHash);return null!=e?[{defaultedQueryOptions:t,observer:e}]:[]})),u=new Set(n.map((t=>t.defaultedQueryOptions.queryHash))),a=r.filter((t=>!u.has(t.queryHash))),h=t=>{const e=(0,A.A)(this,s)[s].defaultQueryOptions(t),i=(0,A.A)(this,o)[o].find((t=>t.options.queryHash===e.queryHash));return null!==i&&void 0!==i?i:new m.$((0,A.A)(this,s)[s],e)},c=a.map((t=>({defaultedQueryOptions:t,observer:h(t)})));return n.concat(c).sort(((t,e)=>r.indexOf(t.defaultedQueryOptions)-r.indexOf(e.defaultedQueryOptions)))}function j(t,e){const i=(0,A.A)(this,o)[o].indexOf(t);-1!==i&&((0,A.A)(this,h)[h](function(t,e,i){const s=t.slice(0);return s[e]=i,s}((0,A.A)(this,r)[r],i,e)),(0,A.A)(this,p)[p]())}function Q(){y.j.batch((()=>{this.listeners.forEach((t=>{t((0,A.A)(this,r)[r])}))}))}var M=i(66299),x=i(89404),k=i(40154),L=i(98964),S=i(50505);const q=["queries"];function N(t,e){let{queries:i}=t,s=(0,f.A)(t,q);const r=(0,M.jE)(e),n=(0,x.w)(),o=(0,k.h)(),u=v.useMemo((()=>i.map((t=>{const e=r.defaultQueryOptions(t);return e._optimisticResults=n?"isRestoring":"optimistic",e}))),[i,r,n]);u.forEach((t=>{(0,S.tu)(t),(0,L.LJ)(t,o)})),(0,L.wZ)(o);const[a]=v.useState((()=>new w(r,u,s))),[h,c,l]=a.getOptimisticResult(u,s.combine);v.useSyncExternalStore(v.useCallback((t=>n?()=>{}:a.subscribe(y.j.batchCalls(t))),[a,n]),(()=>a.getCurrentResult()),(()=>a.getCurrentResult())),v.useEffect((()=>{a.setQueries(u,s,{listeners:!1})}),[u,s,a]);const d=h.some(((t,e)=>(0,S.EU)(u[e],t)))?h.flatMap(((t,e)=>{const i=u[e];if(i){const e=new m.$(r,i);if((0,S.EU)(i,t))return(0,S.iL)(i,e,o);(0,S.nE)(t,n)&&(0,S.iL)(i,e,o)}return[]})):[];if(d.length>0)throw Promise.all(d);const p=h.find(((t,e)=>{const i=u[e];return i&&(0,L.$1)({result:t,errorResetBoundary:o,throwOnError:i.throwOnError,query:r.getQueryCache().get(i.queryHash)})}));if(null!==p&&void 0!==p&&p.error)throw p.error;return c(l())}}}]); \ No newline at end of file diff --git a/build/static/js/7757.d8b1bc4f.chunk.js b/build/static/js/7757.d8b1bc4f.chunk.js new file mode 100644 index 0000000..cc57d45 --- /dev/null +++ b/build/static/js/7757.d8b1bc4f.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[7757],{1596:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(84849),o=r(27326),a=r(85672),i=r(72574),s=r(25234),c=r(10247),l=r(16775),u=r(19728),d=r(78292),p=r(38009),f=r(60308),h=r(37300),y=r(10644);function v(e){return(0,y.Ay)("MuiTableCell",e)}const m=(0,h.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var g=r(65908);const b=["align","className","component","padding","scope","size","sortDirection","variant"],w=(0,f.Ay)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,l.A)(r.size))],"normal"!==r.padding&&t["padding".concat((0,l.A)(r.padding))],"inherit"!==r.align&&t["align".concat((0,l.A)(r.align))],r.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:r}=e;return(0,o.A)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n ".concat("light"===t.palette.mode?(0,c.a)((0,c.X4)(t.palette.divider,1),.88):(0,c.e$)((0,c.X4)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===r.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===r.variant&&{color:(t.vars||t).palette.text.primary},"footer"===r.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===r.size&&{padding:"6px 16px",["&.".concat(m.paddingCheckbox)]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===r.padding&&{width:48,padding:"0 0 0 4px"},"none"===r.padding&&{padding:0},"left"===r.align&&{textAlign:"left"},"center"===r.align&&{textAlign:"center"},"right"===r.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===r.align&&{textAlign:"justify"},r.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),A=a.forwardRef((function(e,t){const r=(0,p.b)({props:e,name:"MuiTableCell"}),{align:c="inherit",className:f,component:h,padding:y,scope:m,size:A,sortDirection:_,variant:x}=r,S=(0,n.A)(r,b),M=a.useContext(u.A),P=a.useContext(d.A),k=P&&"head"===P.variant;let T;T=h||(k?"th":"td");let C=m;"td"===T?C=void 0:!C&&k&&(C="col");const D=x||P&&P.variant,O=(0,o.A)({},r,{align:c,component:T,padding:y||(M&&M.padding?M.padding:"normal"),size:A||(M&&M.size?M.size:"medium"),sortDirection:_,stickyHeader:"head"===D&&M&&M.stickyHeader,variant:D}),R=(e=>{const{classes:t,variant:r,align:n,padding:o,size:a,stickyHeader:i}=e,c={root:["root",r,i&&"stickyHeader","inherit"!==n&&"align".concat((0,l.A)(n)),"normal"!==o&&"padding".concat((0,l.A)(o)),"size".concat((0,l.A)(a))]};return(0,s.A)(c,v,t)})(O);let $=null;return _&&($="asc"===_?"ascending":"descending"),(0,g.jsx)(w,(0,o.A)({as:T,ref:t,className:(0,i.A)(R.root,f),"aria-sort":$,scope:C,ownerState:O},S))}))},3158:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(27326),o=r(85672);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M732 120c0-4.4-3.6-8-8-8H300c-4.4 0-8 3.6-8 8v148h440V120zm120 212H172c-44.2 0-80 35.8-80 80v328c0 17.7 14.3 32 32 32h168v132c0 4.4 3.6 8 8 8h424c4.4 0 8-3.6 8-8V772h168c17.7 0 32-14.3 32-32V412c0-44.2-35.8-80-80-80zM664 844H360V568h304v276zm164-360c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-40c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v40z"}}]},name:"printer",theme:"filled"};var i=r(75890),s=function(e,t){return o.createElement(i.A,(0,n.A)({},e,{ref:t,icon:a}))};const c=o.forwardRef(s)},5670:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(84849),o=r(27326),a=r(85672),i=r(72574),s=r(25234),c=r(60308),l=r(38009),u=r(37300),d=r(10644);function p(e){return(0,d.Ay)("MuiDialogContent",e)}(0,u.A)("MuiDialogContent",["root","dividers"]);var f=r(30903),h=r(65908);const y=["className","dividers"],v=(0,c.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})((e=>{let{theme:t,ownerState:r}=e;return(0,o.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},r.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:{[".".concat(f.A.root," + &")]:{paddingTop:0}})})),m=a.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiDialogContent"}),{className:a,dividers:c=!1}=r,u=(0,n.A)(r,y),d=(0,o.A)({},r,{dividers:c}),f=(e=>{const{classes:t,dividers:r}=e,n={root:["root",r&&"dividers"]};return(0,s.A)(n,p,t)})(d);return(0,h.jsx)(v,(0,o.A)({className:(0,i.A)(f.root,a),ownerState:d,ref:t},u))}))},6026:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(85672).createContext({})},17450:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(84849),o=r(27326),a=r(85672),i=r(72574),s=r(25234),c=r(60308),l=r(38009),u=r(37300),d=r(10644);function p(e){return(0,d.Ay)("MuiDialogActions",e)}(0,u.A)("MuiDialogActions",["root","spacing"]);var f=r(65908);const h=["className","disableSpacing"],y=(0,c.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,o.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),v=a.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiDialogActions"}),{className:a,disableSpacing:c=!1}=r,u=(0,n.A)(r,h),d=(0,o.A)({},r,{disableSpacing:c}),v=(e=>{const{classes:t,disableSpacing:r}=e,n={root:["root",!r&&"spacing"]};return(0,s.A)(n,p,t)})(d);return(0,f.jsx)(y,(0,o.A)({className:(0,i.A)(v.root,a),ownerState:d,ref:t},u))}))},19619:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(27326),o=r(84849),a=r(85672),i=r(72574),s=r(25234),c=r(2866),l=r(60308),u=r(38009),d=r(30903),p=r(6026),f=r(65908);const h=["className","id"],y=(0,l.Ay)(c.A,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),v=a.forwardRef((function(e,t){const r=(0,u.b)({props:e,name:"MuiDialogTitle"}),{className:c,id:l}=r,v=(0,o.A)(r,h),m=r,g=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},d.t,t)})(m),{titleId:b=l}=a.useContext(p.A);return(0,f.jsx)(y,(0,n.A)({component:"h2",className:(0,i.A)(g.root,c),ownerState:m,ref:t,variant:"h6",id:null!=l?l:b},v))}))},19728:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(85672).createContext()},30903:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,t:()=>a});var n=r(37300),o=r(10644);function a(e){return(0,o.Ay)("MuiDialogTitle",e)}const i=(0,n.A)("MuiDialogTitle",["root"])},42129:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,f:()=>a});var n=r(37300),o=r(10644);function a(e){return(0,o.Ay)("MuiDialog",e)}const i=(0,n.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"])},46077:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",o="second",a="minute",i="hour",s="day",c="week",l="month",u="quarter",d="year",p="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},m=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},g={s:m,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),o=r%60;return(t<=0?"+":"-")+m(n,2,"0")+":"+m(o,2,"0")},m:function e(t,r){if(t.date()1)return e(i[0])}else{var s=t.name;w[s]=t,o=s}return!n&&o&&(b=o),o||!n&&b},S=function(e,t){if(_(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new P(r)},M=g;M.l=x,M.i=_,M.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var P=function(){function v(e){this.$L=x(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[A]=!0}var m=v.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(M.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(h);if(n){var o=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(t)}(e),this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return M},m.isValid=function(){return!(this.$d.toString()===f)},m.isSame=function(e,t){var r=S(e);return this.startOf(t)<=r&&r<=this.endOf(t)},m.isAfter=function(e,t){return S(e)";var f=(0,a.findDOMNode)(d);if(f){var h=f.cloneNode(!0),y=h instanceof Text,v=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),m=y?[]:h.querySelectorAll("img"),g=y?[]:h.querySelectorAll("video"),b=c?c.length:0;t.numResourcesToLoad=v.length+m.length+g.length+b,t.resourcesLoaded=[],t.resourcesErrored=[];var w=function(e,r){t.resourcesLoaded.includes(e)?t.logMessages(["Tried to mark a resource that has already been handled",e],"debug"):(r?(t.logMessages(n.__spreadArray(['"react-to-print" was unable to load a resource but will continue attempting to print the page'],n.__read(r),!1)),t.resourcesErrored.push(e)):t.resourcesLoaded.push(e),t.resourcesLoaded.length+t.resourcesErrored.length===t.numResourcesToLoad&&t.triggerPrint(p))};p.onload=function(){var e,r,a,i;p.onload=null;var d=p.contentDocument||(null===(r=p.contentWindow)||void 0===r?void 0:r.document);if(d){d.body.appendChild(h),c&&((null===(a=p.contentDocument)||void 0===a?void 0:a.fonts)&&(null===(i=p.contentWindow)||void 0===i?void 0:i.FontFace)?c.forEach((function(e){var t=new FontFace(e.family,e.source,{weight:e.weight,style:e.style});p.contentDocument.fonts.add(t),t.loaded.then((function(){w(t)})).catch((function(e){w(t,["Failed loading the font:",t,"Load error:",e])}))})):(c.forEach((function(e){return w(e)})),t.logMessages(['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'])));var v="function"==typeof l?l():l;if("string"!=typeof v)t.logMessages(['"react-to-print" expected a "string" from `pageStyle` but received "'.concat(typeof v,'". Styles from `pageStyle` will not be applied.')]);else{var b=d.createElement("style");u&&(b.setAttribute("nonce",u),d.head.setAttribute("nonce",u)),b.appendChild(d.createTextNode(v)),d.head.appendChild(b)}if(o&&(e=d.body.classList).add.apply(e,n.__spreadArray([],n.__read(o.split(" ")),!1)),!y){for(var A=y?[]:f.querySelectorAll("canvas"),_=d.querySelectorAll("canvas"),x=0;x",t,"Error",a])},n.src=r}else w(t,['Found an tag with an empty "src" attribute. This prevents pre-loading it. The is:',t])};for(x=0;x=2?w(t):(t.onloadeddata=function(){return w(t)},t.onerror=function(e,r,n,o,a){return w(t,["Error loading video",t,"Error",a])},t.onstalled=function(){return w(t,["Loading video stalled, skipping",t])})};for(x=0;x tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The is:",n],"warning"),w(n);else{for(var l=d.createElement(n.tagName),p=(c=0,n.attributes.length);c tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the was not loaded. The is:",n],"warning"),w(n)},I=(x=0,N.length);x=0;s--)(o=e[s])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function c(e,t){return function(r,n){t(r,n,e)}}function l(e,t,r,n,o,a){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,c=n.kind,l="getter"===c?"get":"setter"===c?"set":"value",u=!t&&e?n.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),p=!1,f=r.length-1;f>=0;f--){var h={};for(var y in n)h[y]="access"===y?{}:n[y];for(var y in n.access)h.access[y]=n.access[y];h.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var v=(0,r[f])("accessor"===c?{get:d.get,set:d.set}:d[l],h);if("accessor"===c){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(s=i(v.get))&&(d.get=s),(s=i(v.set))&&(d.set=s),(s=i(v.init))&&o.unshift(s)}else(s=i(v))&&("field"===c?o.unshift(s):d[l]=s)}u&&Object.defineProperty(u,n.name,d),p=!0}function u(e,t,r){for(var n=arguments.length>2,o=0;o0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function w(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(r=o[e](t)).value instanceof x?Promise.resolve(r.value.v).then(c,l):u(a[0][2],r)}catch(e){u(a[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function M(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:x(e[n](t)),done:!1}:o?o(t):t}:o}}function P(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=g(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,o,(t=e[r](t)).done,t.value)}))}}}function k(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var T=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&v(t,e,r);return T(t,e),t}function D(e){return e&&e.__esModule?e:{default:e}}function O(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function R(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function $(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function j(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if("function"!=typeof n)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var E="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function W(e){function t(t){e.error=e.hasError?new E(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var o=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(o).then(r,(function(e){return t(e),r()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}t.default={__extends:o,__assign:a,__rest:i,__decorate:s,__param:c,__metadata:f,__awaiter:h,__generator:y,__createBinding:v,__exportStar:m,__values:g,__read:b,__spread:w,__spreadArrays:A,__spreadArray:_,__await:x,__asyncGenerator:S,__asyncDelegator:M,__asyncValues:P,__makeTemplateObject:k,__importStar:C,__importDefault:D,__classPrivateFieldGet:O,__classPrivateFieldSet:R,__classPrivateFieldIn:$,__addDisposableResource:j,__disposeResources:W}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){var e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.useReactToPrint=e.ReactToPrint=e.PrintContextConsumer=void 0;var t=r(328);Object.defineProperty(e,"PrintContextConsumer",{enumerable:!0,get:function(){return t.PrintContextConsumer}});var n=r(428);Object.defineProperty(e,"ReactToPrint",{enumerable:!0,get:function(){return n.ReactToPrint}});var o=r(892);Object.defineProperty(e,"useReactToPrint",{enumerable:!0,get:function(){return o.useReactToPrint}});var i=r(428);e.default=i.ReactToPrint}(),a}())},50755:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var n=r(27326),o=r(84849),a=r(85672),i=r(72574),s=r(25234),c=r(10247),l=r(78292),u=r(38009),d=r(60308),p=r(37300),f=r(10644);function h(e){return(0,f.Ay)("MuiTableRow",e)}const y=(0,p.A)("MuiTableRow",["root","selected","hover","head","footer"]);var v=r(65908);const m=["className","component","hover","selected"],g=(0,d.Ay)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((e=>{let{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,["&.".concat(y.hover,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(y.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}})),b="tr",w=a.forwardRef((function(e,t){const r=(0,u.b)({props:e,name:"MuiTableRow"}),{className:c,component:d=b,hover:p=!1,selected:f=!1}=r,y=(0,o.A)(r,m),w=a.useContext(l.A),A=(0,n.A)({},r,{component:d,hover:p,selected:f,head:w&&"head"===w.variant,footer:w&&"footer"===w.variant}),_=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:a}=e,i={root:["root",r&&"selected",n&&"hover",o&&"head",a&&"footer"]};return(0,s.A)(i,h,t)})(A);return(0,v.jsx)(g,(0,n.A)({as:d,ref:t,className:(0,i.A)(_.root,c),role:d===b?null:"row",ownerState:A},y))}))},54016:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(27326),o=r(84849),a=r(85672),i=r(72574),s=r(25234),c=r(78292),l=r(38009),u=r(60308),d=r(37300),p=r(10644);function f(e){return(0,p.Ay)("MuiTableHead",e)}(0,d.A)("MuiTableHead",["root"]);var h=r(65908);const y=["className","component"],v=(0,u.Ay)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),m={variant:"head"},g="thead",b=a.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiTableHead"}),{className:a,component:u=g}=r,d=(0,o.A)(r,y),p=(0,n.A)({},r,{component:u}),b=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},f,t)})(p);return(0,h.jsx)(c.A.Provider,{value:m,children:(0,h.jsx)(v,(0,n.A)({as:u,className:(0,i.A)(b.root,a),ref:t,role:u===g?null:"rowgroup",ownerState:p},d))})}))},58689:(e,t,r)=>{"use strict";r.d(t,{A:()=>M});var n=r(84849),o=r(27326),a=r(85672),i=r(72574),s=r(25234),c=r(16660),l=r(16775),u=r(52243),d=r(95345),p=r(55235),f=r(38009),h=r(60308),y=r(42129),v=r(6026),m=r(15227),g=r(69039),b=r(65908);const w=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],A=(0,h.Ay)(m.A,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),_=(0,h.Ay)(u.A,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),x=(0,h.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t["scroll".concat((0,l.A)(r.scroll))]]}})((e=>{let{ownerState:t}=e;return(0,o.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),S=(0,h.Ay)(p.A,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t["scrollPaper".concat((0,l.A)(r.scroll))],t["paperWidth".concat((0,l.A)(String(r.maxWidth)))],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})((e=>{let{theme:t,ownerState:r}=e;return(0,o.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)"),["&.".concat(y.A.paperScrollBody)]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},r.maxWidth&&"xs"!==r.maxWidth&&{maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit),["&.".concat(y.A.paperScrollBody)]:{[t.breakpoints.down(t.breakpoints.values[r.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(y.A.paperScrollBody)]:{margin:0,maxWidth:"100%"}})})),M=a.forwardRef((function(e,t){const r=(0,f.b)({props:e,name:"MuiDialog"}),u=(0,g.A)(),h={enter:u.transitions.duration.enteringScreen,exit:u.transitions.duration.leavingScreen},{"aria-describedby":m,"aria-labelledby":M,BackdropComponent:P,BackdropProps:k,children:T,className:C,disableEscapeKeyDown:D=!1,fullScreen:O=!1,fullWidth:R=!1,maxWidth:$="sm",onBackdropClick:j,onClick:E,onClose:W,open:N,PaperComponent:H=p.A,PaperProps:I={},scroll:z="paper",TransitionComponent:F=d.A,transitionDuration:B=h,TransitionProps:L}=r,Y=(0,n.A)(r,w),q=(0,o.A)({},r,{disableEscapeKeyDown:D,fullScreen:O,fullWidth:R,maxWidth:$,scroll:z}),V=(e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container","scroll".concat((0,l.A)(r))],paper:["paper","paperScroll".concat((0,l.A)(r)),"paperWidth".concat((0,l.A)(String(n))),o&&"paperFullWidth",a&&"paperFullScreen"]};return(0,s.A)(i,y.f,t)})(q),X=a.useRef(),G=(0,c.A)(M),U=a.useMemo((()=>({titleId:G})),[G]);return(0,b.jsx)(_,(0,o.A)({className:(0,i.A)(V.root,C),closeAfterTransition:!0,components:{Backdrop:A},componentsProps:{backdrop:(0,o.A)({transitionDuration:B,as:P},k)},disableEscapeKeyDown:D,onClose:W,open:N,ref:t,onClick:e=>{E&&E(e),X.current&&(X.current=null,j&&j(e),W&&W(e,"backdropClick"))},ownerState:q},Y,{children:(0,b.jsx)(F,(0,o.A)({appear:!0,in:N,timeout:B,role:"presentation"},L,{children:(0,b.jsx)(x,{className:(0,i.A)(V.container),onMouseDown:e=>{X.current=e.target===e.currentTarget},ownerState:q,children:(0,b.jsx)(S,(0,o.A)({as:H,elevation:24,role:"dialog","aria-describedby":m,"aria-labelledby":G},I,{className:(0,i.A)(V.paper,I.className),ownerState:q,children:(0,b.jsx)(v.A.Provider,{value:U,children:T})}))})}))}))}))},72486:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(84849),o=r(27326),a=r(85672),i=r(72574),s=r(25234),c=r(19728),l=r(38009),u=r(60308),d=r(37300),p=r(10644);function f(e){return(0,p.Ay)("MuiTable",e)}(0,d.A)("MuiTable",["root","stickyHeader"]);var h=r(65908);const y=["className","component","padding","size","stickyHeader"],v=(0,u.Ay)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:r}=e;return(0,o.A)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,o.A)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},r.stickyHeader&&{borderCollapse:"separate"})})),m="table",g=a.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiTable"}),{className:u,component:d=m,padding:p="normal",size:g="medium",stickyHeader:b=!1}=r,w=(0,n.A)(r,y),A=(0,o.A)({},r,{component:d,padding:p,size:g,stickyHeader:b}),_=(e=>{const{classes:t,stickyHeader:r}=e,n={root:["root",r&&"stickyHeader"]};return(0,s.A)(n,f,t)})(A),x=a.useMemo((()=>({padding:p,size:g,stickyHeader:b})),[p,g,b]);return(0,h.jsx)(c.A.Provider,{value:x,children:(0,h.jsx)(v,(0,o.A)({as:d,role:d===m?null:"table",ref:t,className:(0,i.A)(_.root,u),ownerState:A},w))})}))},78292:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(85672).createContext()},81802:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(27326),o=r(84849),a=r(85672),i=r(72574),s=r(25234),c=r(78292),l=r(38009),u=r(60308),d=r(37300),p=r(10644);function f(e){return(0,p.Ay)("MuiTableBody",e)}(0,d.A)("MuiTableBody",["root"]);var h=r(65908);const y=["className","component"],v=(0,u.Ay)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),m={variant:"body"},g="tbody",b=a.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiTableBody"}),{className:a,component:u=g}=r,d=(0,o.A)(r,y),p=(0,n.A)({},r,{component:u}),b=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},f,t)})(p);return(0,h.jsx)(c.A.Provider,{value:m,children:(0,h.jsx)(v,(0,n.A)({className:(0,i.A)(b.root,a),as:u,ref:t,role:u===g?null:"rowgroup",ownerState:p},d))})}))},83209:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(27326),o=r(84849),a=r(85672),i=r(72574),s=r(25234),c=r(38009),l=r(60308),u=r(37300),d=r(10644);function p(e){return(0,d.Ay)("MuiTableContainer",e)}(0,u.A)("MuiTableContainer",["root"]);var f=r(65908);const h=["className","component"],y=(0,l.Ay)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),v=a.forwardRef((function(e,t){const r=(0,c.b)({props:e,name:"MuiTableContainer"}),{className:a,component:l="div"}=r,u=(0,o.A)(r,h),d=(0,n.A)({},r,{component:l}),v=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},p,t)})(d);return(0,f.jsx)(y,(0,n.A)({ref:t,as:l,className:(0,i.A)(v.root,a),ownerState:d},u))}))}}]); \ No newline at end of file diff --git a/build/static/js/7875.0f6b626d.chunk.js b/build/static/js/7875.0f6b626d.chunk.js deleted file mode 100644 index c92ec1d..0000000 --- a/build/static/js/7875.0f6b626d.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[7875],{23787:(e,s,n)=>{n.d(s,{FG:()=>u,nV:()=>x,pY:()=>g,pg:()=>h});var t=n(89379),i=n(80045),a=n(93230),l=n(2235),r=n(16491),o=n(82053),c=n(44414);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:s,scroll:n=!1,onScroll:l,sx:r}=e,o=(0,i.A)(e,d);return(0,c.jsx)(a.A,(0,t.A)((0,t.A)({spacing:1.25,onScroll:l,sx:(0,t.A)((0,t.A)({p:1.5},n&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),r)},o),{},{children:s}))},h=e=>{let{accent:s="#662582",header:n,footer:i,selected:a=!1,onClick:o,children:d,sx:x}=e;return(0,c.jsxs)(l.A,{elevation:0,onClick:o,sx:(0,t.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:a?s:"#e2e8f0",background:a?"".concat(s,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,c.jsx)(r.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:s}}),(0,c.jsxs)(r.A,{sx:{p:1.5,pl:2},children:[n,d,i]})]})},u=e=>{let{children:s,columns:n=2,sx:i}=e;return(0,c.jsx)(r.A,{sx:(0,t.A)({display:"grid",gridTemplateColumns:"repeat(".concat(n,", minmax(0, 1fr))"),gap:1,mt:1.25},i),children:s})},g=e=>{let{label:s,value:n,children:t,full:i=!1,align:a="left"}=e;return(0,c.jsxs)(r.A,{sx:{gridColumn:i?"1 / -1":"auto",minWidth:0,textAlign:a},children:[(0,c.jsx)(o.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:s}),(0,c.jsx)(r.A,{sx:{mt:.25,minWidth:0},children:void 0!==t?t:(0,c.jsx)(o.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==n&&void 0!==n?n:"\u2014"})})]})}},97875:(e,s,n)=>{n.r(s),n.d(s,{default:()=>ae});var t=n(89379),i=n(69780),a=n(9213),l=n(21671),r=n(16491),o=n(14857),c=n(47223),d=n(96583),x=n(40033),h=n(28170),u=n(60899),g=n(29277),A=n(29925),m=n(79739),j=n(93230),p=n(10226),v=n(82917),y=n(41413),f=n(82053),b=n(25277),C=n(15769),w=n(34075),S=n(33738),F=n(46639),k=n(48159),I=n(84142),P=n(74745),R=n(249),W=n(26050),z=n(14195),q=n(2046),_=n(25333),D=n(25979),N=n(2660),O=n(23787),Y=n(77922),B=n(44070),H=n(8750),E=n(60767),M=n(37476),T=n(8881),U=n(4159),K=n.n(U),L=n(51400),V=n(39060),G=n(50027),Z=n(9950),Q=n(26910),X=n(52351),J=n(56713),$=n(1320),ee=n(6258),se=n(7251),ne=n(80691),te=n(99459),ie=n(44414);const ae=()=>{function e(e,s,n){return s[n]e[n]?1:0}const s=[{id:"sno",disablePadding:!0,label:"#"},{id:"tenantname",numeric:!1,disablePadding:!1,label:"REQUESTOR"},{id:"contact",numeric:!1,disablePadding:!1,label:"BANK"},{id:"address3",disablePadding:!1,label:"IFSC"},{id:"address",disablePadding:!1,label:"REF NO"},{id:"amount",disablePadding:!1,label:"AMOUNT"},{id:"city",disablePadding:!1,label:"REASON"}];function n(e){const{order:n,orderBy:t,onRequestSort:o}=e;return(0,ie.jsx)(i.A,{children:(0,ie.jsx)(a.A,{children:s.map((e=>{return(0,ie.jsx)(l.A,{align:e.numeric?"right":"left",padding:e.disablePadding?"none":"normal",sortDirection:t===e.id&&n,children:(0,ie.jsxs)(se.A,{active:t===e.id,direction:t===e.id?n:"asc",onClick:(s=e.id,e=>{o(e,s)}),children:[e.label,t===e.id?(0,ie.jsx)(r.A,{component:"span",sx:ne.A,children:"desc"===n?"sorted descending":"sorted ascending"}):null]})},e.id);var s}))})})}function U(){const s=(0,o.A)(),D=(0,c.A)(s.breakpoints.down("md")),[N,E]=Z.useState("asc"),[U,X]=Z.useState("calories"),[se,ne]=Z.useState([]),[ae,le]=Z.useState(0),[de,xe]=Z.useState(10),[he,ue]=(0,Z.useState)(""),[ge,je]=(0,Z.useState)(""),[pe,ye]=(0,Z.useState)(""),[we,Se]=(0,Z.useState)(""),[Fe,ke]=(0,Z.useState)(""),[Ie,Pe]=(0,Z.useState)(""),[Re,We]=(0,Z.useState)(""),[ze,qe]=(0,Z.useState)(""),[_e,De]=(0,Z.useState)(""),[Ne,Oe]=(0,Z.useState)(""),[Ye]=(0,Z.useState)(""),[Be,He]=(0,Z.useState)({});te.A.setApiKey("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8");const[Ee,Me]=(0,Z.useState)([]),[Te]=(0,Z.useState)([]),[Ue,Ke]=(0,Z.useState)(0),[Le]=(0,Z.useState)(!1),[Ve]=(0,Z.useState)(!1),[Ge]=(0,Z.useState)(!1),[Ze,Qe]=(0,Z.useState)(""),[Xe,Je]=(0,Z.useState)(""),[$e,es]=(0,Z.useState)("");(0,Z.useEffect)((()=>{Me([{sno:1,role:"",cost:"",serviceid:0,tenantid:0,categoryid:0,subcategoryid:0,servicecode:"",servicename:"",unitid:0,unitname:"",serviceamount:"",discountid:0,taxpercent:0,taxamount:0,servicevalue:0,categoryname:""}]),console.log(Ee)}),[]);const ss=e=>{(0,T.M8)(e,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),console.log(alertmessage)};(0,Z.useEffect)((()=>{try{te.A.fromAddress(Fe).then((e=>{if("OK"==e.status){const{lat:s,lng:n}=e.results[0].geometry.location;He({lat:s,lng:n}),console.log(e)}}),(e=>{console.log(e)}))}catch(e){console.log(e)}}),[Fe]),(0,Z.useEffect)((()=>{console.log("rolesarr"),console.log(Ee)}),[Ee]);const ns=async()=>{console.log("submit");let e=[],s=!1;if(Ee.map((n=>{n.role&&n.cost||(s=!0),e.push({serviceid:n.serviceid,tenantid:Ye,categoryid:n.categoryid,subcategoryid:n.subcategoryid,servicecode:n.servicecode,servicename:n.servicename,unitid:n.unitid,unitname:n.unitname,serviceamount:parseFloat(n.serviceamount),categoryname:n.categoryname,subcategoryname:n.servicename})})),console.log(e),s)(0,T.M8)("Fill all Details",{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3});else try{me(!0),await Q.A.put("".concat("https://jupiter.nearle.app/live/api/v2","/tenants/update/services"),e).then((e=>{console.log("res:",e),"Update successful"===e.data.message&&(0,T.M8)("Service Updated Successfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),me(!1)})).catch((e=>{console.log(e),me(!1)}))}catch(n){console.log(n),me(!1)}},ts=(e,s)=>{const n=se.indexOf(s);let t=[];-1===n?t=t.concat(se,s):0===n?t=t.concat(se.slice(1)):n===se.length-1?t=t.concat(se.slice(0,-1)):n>0&&(t=t.concat(se.slice(0,n),se.slice(n+1))),ne(t)},is=e=>-1!==se.indexOf(e),as=ae>0?Math.max(0,(1+ae)*de-ce.length):0,ls=Z.useMemo((()=>function(e,s){const n=e.map(((e,s)=>[e,s]));return n.sort(((e,n)=>{const t=s(e[0],n[0]);return 0!==t?t:e[1]-n[1]})),n.map((e=>e[0]))}(ce,function(s,n){return"desc"===s?(s,t)=>e(s,t,n):(s,t)=>-e(s,t,n)}(N,U)).slice(ae*de,ae*de+de)),[N,U,ae,de]);return(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsxs)(d.A,{fullWidth:!0,open:ve,onClose:Ce,scroll:"paper",fullScreen:D,maxWidth:"sm",TransitionComponent:M.s,PaperProps:{sx:{borderRadius:{xs:0,sm:3}}},children:[(0,ie.jsx)(x.A,{children:"Create Request"}),(0,ie.jsx)(h.A,{dividers:!0,children:(0,ie.jsx)(G.A,{sx:{height:"100%"},children:(0,ie.jsxs)(u.Ay,{container:!0,spacing:2.5,children:[(0,ie.jsxs)(u.Ay,{item:!0,xs:12,sm:6,children:[(0,ie.jsx)(g.A,{children:"Reference No"}),(0,ie.jsx)(A.A,{type:"number",fullWidth:!0,sx:{width:"100%"},value:Ze,onChange:e=>{Qe(e.target.value),console.log(e)}})]}),(0,ie.jsxs)(u.Ay,{item:!0,xs:12,sm:6,children:[(0,ie.jsx)(g.A,{children:"Requestor"}),(0,ie.jsx)(A.A,{value:Xe,onChange:e=>Je(e.target.value),fullWidth:!0,sx:{width:"100%"}})]}),(0,ie.jsxs)(u.Ay,{item:!0,xs:12,sm:6,children:[(0,ie.jsx)(g.A,{children:"Bank Name"}),(0,ie.jsx)(A.A,{value:$e,sx:{width:"100%"},onChange:e=>es(e.target.value)})]}),(0,ie.jsxs)(u.Ay,{item:!0,xs:12,sm:6,children:[(0,ie.jsx)(g.A,{children:"Amount"}),(0,ie.jsx)(A.A,{type:"number",value:amount,sx:{width:"100%"},onChange:e=>setAmount(e.target.value)})]}),(0,ie.jsxs)(u.Ay,{item:!0,xs:12,sm:6,children:[(0,ie.jsx)(g.A,{children:"Account No"}),(0,ie.jsx)(A.A,{type:"number",fullWidth:!0,sx:{width:"100%"},value:accountno,onChange:e=>{setAccountno(e.target.value),console.log(e)}})]}),(0,ie.jsxs)(u.Ay,{item:!0,xs:12,sm:6,children:[(0,ie.jsx)(g.A,{children:"IFSC Code"}),(0,ie.jsx)(A.A,{value:ifsc,onChange:e=>setIfsc(e.target.value),fullWidth:!0,sx:{width:"100%"}})]}),(0,ie.jsxs)(u.Ay,{item:!0,xs:12,sm:6,children:[(0,ie.jsx)(g.A,{children:"Reason"}),(0,ie.jsx)(A.A,{value:reason,onChange:e=>setReason(e.target.value),fullWidth:!0,sx:{width:"100%"}})]})]})})}),(0,ie.jsx)(m.A,{children:(0,ie.jsx)(u.Ay,{container:!0,children:(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsxs)(j.A,{direction:"row",justifyContent:"flex-end",spacing:2,sx:{p:2},children:[(0,ie.jsx)(p.A,{variant:"contained",onClick:()=>{(()=>{if(Ze)if(Xe)if($e)if(amount)if(accountno)if(ifsc)if(reason){let e={requestid:0,requestdate:K()().format("YYYY-MM-DD HH:mm:ss"),referenceno:Ze,Apptypeid:22,requesttype:"staffexpenses",reason:reason,requestor:Xe,amount:amount,Accountno:accountno,bankname:$e,ifsccode:ifsc};console.log(e)}else ss("Fill Reason");else ss("Fill IFSC");else ss("Fill Account No");else ss("Fill Amount");else ss("Fill Bank Name");else ss("Fill Requestor");else ss("Fill Reference No")})()},children:"Update"}),(0,ie.jsx)(p.A,{variant:"contained",onClick:()=>{Ce()},color:"error",children:"Close"})]})})})})]}),(0,ie.jsxs)(r.A,{sx:{width:"100%"},children:[D&&(0,ie.jsxs)(O.nV,{scroll:!0,children:[Ae&&[0,1,2,3,4].map((e=>(0,ie.jsxs)(O.pg,{accent:"#662582",children:[(0,ie.jsxs)(j.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,ie.jsx)(v.A,{variant:"circular",width:32,height:32}),(0,ie.jsxs)(j.A,{sx:{flex:1},children:[(0,ie.jsx)(v.A,{animation:"wave",width:"60%"}),(0,ie.jsx)(v.A,{animation:"wave",width:"40%"})]})]}),(0,ie.jsxs)(O.FG,{children:[(0,ie.jsx)(O.pY,{label:"Amount",value:(0,ie.jsx)(v.A,{animation:"wave",width:50})}),(0,ie.jsx)(O.pY,{label:"Ref No",value:(0,ie.jsx)(v.A,{animation:"wave",width:50})})]})]},e))),!Ae&&ls.map(((e,s)=>{const n=is(e.sno);return(0,ie.jsx)(O.pg,{accent:"#662582",selected:n,onClick:s=>ts(0,e.sno),header:(0,ie.jsxs)(j.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,ie.jsxs)(j.A,{direction:"row",alignItems:"center",spacing:1,sx:{minWidth:0},children:[(0,ie.jsx)(y.A,{sx:{width:32,height:32,bgcolor:"#66258218",color:"#662582",fontSize:13},children:e.requestor?String(e.requestor).charAt(0).toUpperCase():"#"}),(0,ie.jsxs)(j.A,{sx:{minWidth:0},children:[(0,ie.jsx)(f.A,{sx:{fontSize:14,fontWeight:700,color:"#0f172a"},noWrap:!0,children:e.requestor||"\u2014"}),(0,ie.jsxs)(f.A,{sx:{fontSize:11,color:"#94a3b8"},noWrap:!0,children:["#",e.sno]})]})]}),null!=e.amount&&(0,ie.jsx)(b.A,{label:e.amount,size:"small",sx:{bgcolor:"#66258218",color:"#662582",fontWeight:700}})]}),children:(0,ie.jsxs)(O.FG,{children:[(0,ie.jsx)(O.pY,{label:"Bank",value:e.bankname}),(0,ie.jsx)(O.pY,{label:"Account No",value:e.accountno}),(0,ie.jsx)(O.pY,{label:"IFSC",value:e.ifsccode}),(0,ie.jsx)(O.pY,{label:"Ref No",value:e.referenceno}),(0,ie.jsx)(O.pY,{label:"Reason",value:e.reason,full:!0})]})},e.sno)})),!Ae&&0===ls.length&&(0,ie.jsxs)(j.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,ie.jsx)(y.A,{sx:{width:64,height:64,bgcolor:"#f1f5f9",color:"#94a3b8"}}),(0,ie.jsx)(f.A,{sx:{fontSize:15,fontWeight:700,color:"#0f172a"},children:"No requests to show"}),(0,ie.jsx)(f.A,{sx:{fontSize:13,color:"#94a3b8"},children:"Requests will appear here once available."})]})]}),(0,ie.jsx)($.A,{sx:{width:"100%",borderBottom:1,borderColor:"divider",display:D?"none":"block"},children:(0,ie.jsxs)(C.A,{sx:{minWidth:750},"aria-labelledby":"tableTitle",size:"medium",children:[(0,ie.jsx)(n,{numSelected:se.length,order:N,orderBy:U,onSelectAllClick:e=>{if(e.target.checked){const e=ce.map((e=>e.name));ne(e)}else ne([])},onRequestSort:(e,s)=>{E(U===s&&"asc"===N?"desc":"asc"),X(s)},rowCount:ce.length}),Ae&&(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsx)(w.A,{children:[0,1,2,3,4,5,6,7,8,9].map((e=>(0,ie.jsxs)(a.A,{children:[(0,ie.jsx)(l.A,{children:(0,ie.jsx)(v.A,{animation:"wave"})}),(0,ie.jsx)(l.A,{children:(0,ie.jsxs)(j.A,{direction:"row",spacing:1,children:[(0,ie.jsx)(v.A,{variant:"circular",width:40,height:40}),(0,ie.jsxs)(j.A,{direction:"column",children:[(0,ie.jsx)(v.A,{animation:"wave",width:100}),(0,ie.jsx)(v.A,{animation:"wave",width:100})]})]})}),(0,ie.jsx)(l.A,{children:(0,ie.jsx)(v.A,{animation:"wave"})}),(0,ie.jsx)(l.A,{children:(0,ie.jsx)(v.A,{animation:"wave"})}),(0,ie.jsx)(l.A,{children:(0,ie.jsx)(v.A,{animation:"wave"})}),(0,ie.jsx)(l.A,{children:(0,ie.jsx)(v.A,{animation:"wave"})})]},e)))})}),(0,ie.jsxs)(w.A,{children:[ls.map(((e,s)=>{const n=is(e.sno),o="enhanced-table-checkbox-".concat(s);return(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsxs)(a.A,{hover:!0,onClick:s=>ts(0,e.sno),role:"checkbox","aria-checked":n,tabIndex:-1,sx:{cursor:"pointer"},children:[(0,ie.jsx)(l.A,{component:"th",id:o,scope:"row",padding:"none",children:e.sno}),(0,ie.jsx)(l.A,{align:"left",sx:{paddingLeft:"0px !important"},children:(0,ie.jsxs)(j.A,{direction:"row",alignItems:"center",spacing:1,justifyContent:"flex-start",children:[(0,ie.jsx)(y.A,{alt:"",size:"sm",sx:{width:"25px",height:"25px"}}),(0,ie.jsx)(j.A,{direction:"column",children:(0,ie.jsx)(f.A,{variant:"caption",children:e.requestor})})]})}),(0,ie.jsxs)(l.A,{align:"left",children:[(0,ie.jsxs)(f.A,{variant:"caption",children:[" ",e.accountno]}),(0,ie.jsxs)(f.A,{variant:"h6",children:[" ",e.bankname]})]}),(0,ie.jsx)(l.A,{children:e.ifsccode}),(0,ie.jsx)(l.A,{align:"left",children:e.referenceno}),(0,ie.jsx)(l.A,{children:e.amount}),(0,ie.jsx)(l.A,{children:e.reason})]},e.sno),(0,ie.jsx)(a.A,{children:(0,ie.jsxs)(l.A,{style:{paddingBottom:0,paddingTop:0,paddingLeft:0,paddingRight:0},colSpan:8,sx:{width:"100%"},children:[(0,ie.jsx)(S.A,{in:expandopen===e.sno,timeout:"auto",unmountOnExit:!0,children:(0,ie.jsx)(M.A,{type:"slide",direction:"down",in:!0,children:(0,ie.jsx)(G.A,{sx:{height:"100%"},children:Ge?(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsx)(G.A,{children:(0,ie.jsx)(j.A,{alignItems:"center",children:(0,ie.jsx)(F.A,{})})})}):(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsxs)(k.A,{value:Ue,onChange:(e,s)=>Ke(s),children:[(0,ie.jsx)(I.A,{label:"client Details"}),(0,ie.jsx)(I.A,{label:"Client Pricing"})]}),0===Ue&&(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsxs)(u.Ay,{container:!0,spacing:2.5,sx:{pl:{xs:0,sm:5,md:6,lg:10,xl:12},p:2},children:[(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:5,md:4,lg:4,xl:3,children:(0,ie.jsx)(G.A,{sx:{height:"100%"},children:(0,ie.jsxs)(u.Ay,{container:!0,spacing:3,children:[(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsxs)(j.A,{spacing:2.5,alignItems:"center",children:[(0,ie.jsx)(y.A,{alt:"Avatar 1",size:"xl"}),(0,ie.jsxs)(j.A,{spacing:.5,alignItems:"center",children:[(0,ie.jsx)(f.A,{variant:"h5",children:he}),(0,ie.jsx)(f.A,{color:"secondary",children:we})]})]})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsx)(P.A,{})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsxs)(R.A,{component:"nav","aria-label":"main mailbox folders",sx:{py:0},children:[(0,ie.jsxs)(W.Ay,{children:[(0,ie.jsx)(z.A,{children:(0,ie.jsx)(L.A,{})}),(0,ie.jsx)(f.A,{align:"right",children:ge})]}),(0,ie.jsxs)(W.Ay,{children:[(0,ie.jsx)(z.A,{children:(0,ie.jsx)(V.A,{})}),(0,ie.jsxs)(f.A,{align:"left",children:["+1 ",pe]})]})]})})]})})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:7,md:8,lg:8,xl:9,children:(0,ie.jsx)(G.A,{title:(0,ie.jsx)(r.A,{sx:{p:1},children:"Contact Details"}),sx:{height:"100%"},children:(0,ie.jsxs)(R.A,{sx:{py:0},children:[(0,ie.jsx)(W.Ay,{children:(0,ie.jsxs)(u.Ay,{container:!0,spacing:3,children:[(0,ie.jsx)(u.Ay,{item:!0,xs:12,md:6,children:(0,ie.jsxs)(j.A,{spacing:.5,children:[(0,ie.jsx)(f.A,{color:"secondary",children:" Contact Name"}),(0,ie.jsx)(f.A,{children:ze})]})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,md:6})]})}),(0,ie.jsx)(W.Ay,{children:(0,ie.jsxs)(j.A,{spacing:.5,children:[(0,ie.jsx)(f.A,{color:"secondary",children:"Address"}),(0,ie.jsx)(f.A,{children:Fe})]})}),(0,ie.jsx)(W.Ay,{children:(0,ie.jsxs)(u.Ay,{container:!0,spacing:3,children:[(0,ie.jsx)(u.Ay,{item:!0,xs:12,md:6,children:(0,ie.jsxs)(j.A,{spacing:.5,children:[(0,ie.jsx)(f.A,{color:"secondary",children:"City"}),(0,ie.jsx)(f.A,{children:Ie})]})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,md:6,children:(0,ie.jsxs)(j.A,{spacing:.5,children:[(0,ie.jsx)(f.A,{color:"secondary",children:"Zip Code"}),(0,ie.jsx)(f.A,{children:Re})]})})]})})]})})})]})}),1===Ue&&(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsx)(u.Ay,{container:!0,sx:{p:1},children:(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsx)(G.A,{sx:{height:"100%",p:1},children:Ee[0].role?(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsx)($.A,{sx:{width:"100%",borderBottom:1,borderColor:"divider"},children:(0,ie.jsxs)(C.A,{sx:{width:"100%"},children:[(0,ie.jsx)(i.A,{children:(0,ie.jsxs)(a.A,{children:[(0,ie.jsx)(l.A,{children:"#"}),(0,ie.jsx)(l.A,{sx:{width:"30%"},children:"Category"}),(0,ie.jsx)(l.A,{sx:{width:"30%"},children:"Skill"}),(0,ie.jsx)(l.A,{sx:{width:"30%"},children:"Cost/Hr"})]})}),(0,ie.jsx)(w.A,{children:Ee.map((e=>(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsxs)(a.A,{children:[(0,ie.jsx)(l.A,{children:e.sno}),(0,ie.jsx)(l.A,{children:e.categoryname}),(0,ie.jsx)(l.A,{children:e.role}),(0,ie.jsx)(l.A,{children:e.cost})]})})))})]})})}):(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsx)(f.A,{children:"No Data found"})})})})})})]})})})}),(0,ie.jsx)(S.A,{in:editexpandopen===e.sno,timeout:"auto",unmountOnExit:!0,children:(0,ie.jsx)(M.A,{type:"slide",direction:"down",in:!0,children:Ge?(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsx)(G.A,{children:(0,ie.jsx)(j.A,{alignItems:"center",children:(0,ie.jsx)(F.A,{})})})}):(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsxs)(G.A,{sx:{height:"100%"},children:[(0,ie.jsxs)(k.A,{value:Ue,onChange:(e,s)=>Ke(s),children:[(0,ie.jsx)(I.A,{label:"client Details"}),(0,ie.jsx)(I.A,{label:"Client Pricing"})]}),0===Ue&&(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsx)(G.A,{sx:{height:"100%"},children:(0,ie.jsxs)(u.Ay,{container:!0,spacing:2.5,children:[(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:5,md:4,lg:4,xl:3,children:(0,ie.jsx)(G.A,{title:(0,ie.jsx)(r.A,{sx:{p:1},children:"Client"}),sx:{height:"100%"},children:(0,ie.jsxs)(u.Ay,{container:!0,spacing:3,children:[(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsxs)(j.A,{spacing:2,alignItems:"center",sx:{width:"100%"},children:[(0,ie.jsx)(A.A,{type:"text",label:"Business name",fullWidth:!0,sx:{width:"100%"},value:he,onChange:e=>ue(e.target.value)}),(0,ie.jsx)(A.A,{type:"number",value:we,onChange:e=>Se(e.target.value),label:"Business No.",fullWidth:!0,sx:{width:"100%"}})]})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsx)(R.A,{component:"nav","aria-label":"main mailbox folders",sx:{py:0},children:(0,ie.jsxs)(j.A,{direction:"column",spacing:2,sx:{width:"100%"},children:[(0,ie.jsx)(A.A,{type:"email",value:ge,sx:{width:"100%"},onChange:e=>je(e.target.value),label:"Email"}),(0,ie.jsx)(A.A,{type:"number",value:pe,placeholder:"Mobile Number",InputProps:{startAdornment:(0,ie.jsx)(q.A,{position:"start",children:"+1"})},sx:{width:"100%"},onChange:e=>ye(e.target.value)})]})})})]})})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:7,md:8,lg:8,xl:9,children:(0,ie.jsx)(G.A,{title:(0,ie.jsx)(r.A,{sx:{p:1},children:"Contact Details"}),sx:{height:"100%"},children:(0,ie.jsxs)(u.Ay,{container:!0,spacing:3,children:[(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsx)(j.A,{spacing:.5,children:(0,ie.jsx)(A.A,{type:"text",value:ze,onChange:e=>qe(e.target.value),label:"Contact Name"})})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsxs)(j.A,{spacing:.5,children:[(0,ie.jsx)(ie.Fragment,{}),(0,ie.jsx)(J.default,{className:"automap",apiKey:"AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8",style:{width:"100%",height:"40px",borderRadius:"5px",border:"1px solid #e0e0e0",textIndent:"10px",outline:"none"},onPlaceSelected:e=>{let s,n,t,i;ke(e.formatted_address);for(let a=0;ake(e.target.value)})]})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,md:6,children:(0,ie.jsx)(j.A,{spacing:.5,children:(0,ie.jsx)(A.A,{label:"City",type:"text",value:Ie,onChange:e=>Pe(e.target.value)})})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,md:6,children:(0,ie.jsx)(j.A,{spacing:.5,children:(0,ie.jsx)(A.A,{label:"Zip Code",value:Re,onChange:e=>We(e.target.value)})})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsx)(j.A,{direction:"row",justifyContent:"flex-end",children:(0,ie.jsxs)(p.A,{variant:"contained",onClick:()=>{(async()=>{if(he)if(we)if(ge)if(pe)if(ze)if(Fe)if(Ie)if(Re)if(Be.lat&&Be.lng)if(!Le&&!Ve||Ee[0].role&&Ee[0].cost){let s={tenantid:Ye,registrationno:we,tenantname:he,primaryemail:ge,primarycontact:ze,contactno:pe,address:Fe,suburb:Ne,city:Ie,state:_e,postcode:Re,latitude:Be.lat.toString(),longitude:Be.lng.toString(),approved:Le&&1===re||!Le&&0===re&&!Ve?1:0};console.log(s);try{me(!0),await Q.A.put("".concat("https://jupiter.nearle.app/live/api/v2","/tenants/update"),s).then((e=>{console.log("res:",e),"Update successful"===e.data.message&&((0,T.M8)("Client Details Updated Successfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:3e3}),me(!0),setTimeout((()=>{be(),fe(),oe(0),me(!1)}),2e3)),me(!1)})).catch((e=>{console.log(e),me(!1)}))}catch(e){console.log(e),me(!1)}}else ss("Fill client pricing");else setAlertmessage("Fill correct address"),ss("Fill correct address");else ss("Fill Zip code");else ss("Fill City name");else ss("Fill Address");else ss("Fill Contact name");else ss("Fill Mobile number");else ss("Fill Email address");else ss("Fill Business No.");else ss("Fill Business name")})(),Le&&ns()},children:["Update ",Le?"& Approve":"",Ve?"& Disable":""]})})})]})})})]})})}),1===Ue&&(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsx)(u.Ay,{container:!0,children:(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsx)(G.A,{sx:{height:"100%",p:1},children:(0,ie.jsxs)(G.A,{sx:{height:"100%"},children:[(0,ie.jsx)($.A,{sx:{width:"100%",borderBottom:1,borderColor:"divider"},children:(0,ie.jsxs)(C.A,{sx:{width:"100%"},children:[(0,ie.jsx)(i.A,{children:(0,ie.jsxs)(a.A,{children:[(0,ie.jsx)(l.A,{children:"#"}),(0,ie.jsx)(l.A,{children:"Category"}),(0,ie.jsx)(l.A,{sx:{width:"40%"},children:"Skill"}),(0,ie.jsx)(l.A,{sx:{width:"40%"},children:"Cost/Hr"}),(0,ie.jsx)(l.A,{sx:{width:"10px"}})]})}),(0,ie.jsx)(w.A,{children:Ee.map((e=>(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsxs)(a.A,{children:[(0,ie.jsx)(l.A,{children:e.sno}),(0,ie.jsx)(l.A,{children:e.categoryname}),(0,ie.jsx)(l.A,{children:(0,ie.jsx)(Y.A,{fullWidth:!0,id:"venuetype33",variant:"outlined",error:!0,freeSolo:!0,options:Te.sort(((e,s)=>-s.categoryname.localeCompare(e.categoryname))),groupBy:e=>e.categoryname,getOptionLabel:e=>e.subcategoryname,isOptionEqualToValue:(e,s)=>e.subcategoryid===s.subcategoryid,onChange:(s,n)=>{if(n){console.log("eval",s);let t=Ee.find((e=>e.subcategoryid===n.subcategoryid));if(console.log(n),t)ss("select different skill");else{let s=Ee;s[e.sno-1].role=n.subcategoryname,s[e.sno-1].categoryname=n.categoryname,s[e.sno-1].categoryid=n.categoryid,s[e.sno-1].subcategoryid=n.subcategoryid,s[e.sno-1].servicename=n.subcategoryname,s[e.sno-1].unitid=n.unitid,s[e.sno-1].unitname=n.unitname,Me([...s])}}console.log(n)},renderInput:s=>(0,ie.jsx)(A.A,(0,t.A)((0,t.A)({},s),{},{placeholder:"Choose a Skill",defaultValue:e.role,variant:"outlined",sx:{input:{"&::placeholder":{opacity:.9}}}})),value:{categoryid:e.categoryid,categoryname:"",cost:e.serviceamount,label:e.servicename,status:0,subcategoryid:e.subcategoryid,subcategoryname:e.servicename,unitid:e.unitid,unitname:e.unitname},disabled:!!Ae})}),(0,ie.jsx)(l.A,{children:(0,ie.jsx)(A.A,{type:"number",onChange:s=>{let n=Ee;s.target.value<1e3&&(n[e.sno-1].cost=s.target.value,n[e.sno-1].servicevalue=s.target.value,n[e.sno-1].serviceamount=s.target.value,Me([...n])),console.log(s.target.value)},value:e.cost,autoComplete:"off",fullWidth:!0})}),(0,ie.jsx)(l.A,{children:(0,ie.jsx)(_.A,{onClick:()=>(async(e,s)=>{console.log(s);let n=Ee;if(0!==s.serviceid&&Ee.length>1){console.log([{serviceid:s.serviceid,tenantid:s.tenantid,categoryid:s.categoryid,subcategoryid:s.subcategoryid,servicecode:s.servicecode,servicename:s.servicename,unitid:s.unitid,unitname:s.unitname,serviceamount:s.servicevalue}]);try{await Q.A.delete("".concat("https://jupiter.nearle.app/live/api/v2","/tenants/delete/services"),{data:[{serviceid:s.serviceid,tenantid:s.tenantid,categoryid:s.categoryid,subcategoryid:s.subcategoryid,servicecode:s.servicecode,servicename:s.servicename,unitid:s.unitid,unitname:s.unitname,serviceamount:s.servicevalue}]}).then((s=>{console.log("res"),console.log(s),"Deleted successful"===s.data.message&&((0,T.M8)("Client pricing Deleted",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),n.splice(e-1,1),n.map(((e,s)=>{e.sno=s+1})),console.log(n),Me([...n]))})).catch((e=>{console.log(e),me(!1)}))}catch(t){console.log(t),me(!1)}}else Ee.length>1?(n.splice(e-1,1),n.map(((e,s)=>{e.sno=s+1})),console.log(n),Me([...n])):1===Ee.length&&Me([{sno:1,role:"",cost:"",serviceid:s.serviceid,tenantid:0,categoryid:0,subcategoryid:0,servicecode:"",servicename:"",unitid:0,unitname:"",serviceamount:"",discountid:0,taxpercent:0,taxamount:0,servicevalue:0,categoryname:""}])})(e.sno,e),color:"error",children:(0,ie.jsx)(B.A,{})})})]})})))})]})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsx)(p.A,{color:"primary",endIcon:(0,ie.jsx)(H.A,{}),onClick:()=>(()=>{let e=Ee;e[e.length-1].role&&e[e.length-1].cost?(e.push({sno:e.length+1,cost:"",role:"",serviceid:0,tenantid:0,categoryid:0,subcategoryid:0,servicecode:"",servicename:"",unitid:0,unitname:"",serviceamount:"",discountid:0,taxpercent:0,taxamount:0,servicevalue:0,categoryname:""}),Me([...e])):ss("Fill all Previous Details")})(),sx:{m:2},variant:"dashed",size:"extraSmall",children:"ADD SKILL"})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsx)(u.Ay,{container:!0,justifyContent:"flex-end",children:(0,ie.jsx)(u.Ay,{item:!0,children:(0,ie.jsx)(p.A,{variant:"contained",size:"small",onClick:ns,children:"Update"})})})})]})})})})})]})})})})]})})]})})),as>0&&(0,ie.jsx)(a.A,{style:{height:53*as},children:(0,ie.jsx)(l.A,{colSpan:6})})]})]})}),(0,ie.jsx)(ee.A,{rowsPerPageOptions:[10,25,50,100],component:"div",count:ce.length,rowsPerPage:de,page:ae,onPageChange:(e,s)=>{le(s)},onRowsPerPageChange:e=>{xe(parseInt(e.target.value,10)),le(0)}})]})]})}const ae=(0,o.A)(),le=(0,c.A)(ae.breakpoints.down("md")),[re,oe]=(0,Z.useState)(0),[ce,de]=(0,Z.useState)([]),[xe,he]=(0,Z.useState)([]),[ue,ge]=(0,Z.useState)([]),[Ae,me]=(0,Z.useState)(!1),[je,pe]=(0,Z.useState)(""),[ve,ye]=(0,Z.useState)(!1);(0,Z.useEffect)((()=>{localStorage.getItem("partnerid")&&(be(localStorage.getItem("partnerid")),fe(localStorage.getItem("partnerid")))}),[]),(0,Z.useEffect)((()=>{}),[je,re]);const fe=async e=>{me(!0);try{await Q.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/payments/requests/getpaymentrequest/?partnerid=").concat(e,"&status=1")).then((e=>{if("Successful"===e.data.message){let s=[];e.data.details.map(((e,n)=>{s=[...s,(0,t.A)((0,t.A)({},e),{},{sno:n+1})]})),he(s),console.log(e.data.details),me(!1)}})).catch((e=>{console.log(e),me(!1)}))}catch(s){console.log(s),me(!1)}},be=async e=>{me(!0);try{await Q.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/payments/requests/getpaymentrequest/?partnerid=").concat(e,"&status=0")).then((e=>{if("Success"===e.data.message){let s=[];e.data.details.map(((e,n)=>{s=[...s,(0,t.A)((0,t.A)({},e),{},{sno:n+1})]})),ge(s),de(s),console.log(e.data.details),me(!1)}})).catch((e=>{console.log(e),me(!1)}))}catch(s){console.log(s),me(!1)}},Ce=()=>{ye(!1)};return(0,ie.jsxs)(ie.Fragment,{children:[Ae&&(0,ie.jsx)(X.A,{}),(0,ie.jsxs)(u.Ay,{container:!0,rowSpacing:2,columnSpacing:2.75,children:[(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsxs)(j.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"stretch",sm:"center"},spacing:{xs:1.5,sm:0},children:[(0,ie.jsx)(f.A,{variant:"h3",children:"Payment Requests"}),(0,ie.jsx)(p.A,{variant:"contained",fullWidth:le,onClick:()=>{},children:"Create Request"})]})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsxs)(r.A,{sx:{overflow:"auto",border:1,borderColor:"grey.200",borderRadius:2,backgroundColor:"#fff",minHeight:400},children:[(0,ie.jsxs)(j.A,{alignItems:"center",justifyContent:"space-between",direction:"row",sx:{p:2,width:"100%",flexWrap:"wrap",gap:1},children:[(0,ie.jsxs)(k.A,{value:re,onChange:(e,s)=>{oe(s),1===s&&de(xe),0===s&&de(ue)},variant:"scrollable",scrollButtons:"auto",children:[(0,ie.jsx)(I.A,{label:"Pending",icon:(0,ie.jsx)(b.A,{label:ue.length,color:"primary",variant:"light",size:"small"}),iconPosition:"end"}),(0,ie.jsx)(I.A,{label:"Paid",iconPosition:"end",icon:(0,ie.jsx)(b.A,{label:xe.length,color:"primary",variant:"light",size:"small"})})]}),(0,ie.jsx)(D.A,{sx:{width:{xs:"100%",md:250}},children:(0,ie.jsx)(N.A,{size:"small",id:"header-search",startAdornment:(0,ie.jsx)(q.A,{position:"start",sx:{mr:-.5},children:(0,ie.jsx)(E.A,{})}),"aria-describedby":"header-search-text",inputProps:{"aria-label":"weight"},placeholder:"Search",value:je,onChange:e=>{pe(e.target.value)},autoComplete:"off"})})]}),(0,ie.jsx)(U,{})]})})]})]})}}}]); \ No newline at end of file diff --git a/build/static/js/7875.dedbfe98.chunk.js b/build/static/js/7875.dedbfe98.chunk.js new file mode 100644 index 0000000..3c7f079 --- /dev/null +++ b/build/static/js/7875.dedbfe98.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[7875],{23787:(e,s,n)=>{n.d(s,{FG:()=>u,nV:()=>x,pY:()=>g,pg:()=>h});var t=n(22555),i=n(53986),a=n(71392),l=n(55235),r=n(48738),o=n(2866),c=n(65908);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:s,scroll:n=!1,onScroll:l,sx:r}=e,o=(0,i.A)(e,d);return(0,c.jsx)(a.A,(0,t.A)((0,t.A)({spacing:1.25,onScroll:l,sx:(0,t.A)((0,t.A)({p:1.5},n&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),r)},o),{},{children:s}))},h=e=>{let{accent:s="#662582",header:n,footer:i,selected:a=!1,onClick:o,children:d,sx:x}=e;return(0,c.jsxs)(l.A,{elevation:0,onClick:o,sx:(0,t.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:a?s:"#e2e8f0",background:a?"".concat(s,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,c.jsx)(r.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:s}}),(0,c.jsxs)(r.A,{sx:{p:1.5,pl:2},children:[n,d,i]})]})},u=e=>{let{children:s,columns:n=2,sx:i}=e;return(0,c.jsx)(r.A,{sx:(0,t.A)({display:"grid",gridTemplateColumns:"repeat(".concat(n,", minmax(0, 1fr))"),gap:1,mt:1.25},i),children:s})},g=e=>{let{label:s,value:n,children:t,full:i=!1,align:a="left"}=e;return(0,c.jsxs)(r.A,{sx:{gridColumn:i?"1 / -1":"auto",minWidth:0,textAlign:a},children:[(0,c.jsx)(o.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:s}),(0,c.jsx)(r.A,{sx:{mt:.25,minWidth:0},children:void 0!==t?t:(0,c.jsx)(o.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==n&&void 0!==n?n:"\u2014"})})]})}},97875:(e,s,n)=>{n.r(s),n.d(s,{default:()=>ae});var t=n(22555),i=n(54016),a=n(50755),l=n(1596),r=n(48738),o=n(69039),c=n(76264),d=n(58689),x=n(19619),h=n(5670),u=n(1939),g=n(35935),A=n(86270),m=n(17450),j=n(71392),p=n(80911),v=n(91834),y=n(97043),f=n(2866),b=n(81062),C=n(72486),w=n(81802),S=n(1150),F=n(12010),k=n(93977),I=n(13420),P=n(58571),R=n(31975),W=n(41337),z=n(7637),q=n(43318),_=n(11969),D=n(29398),N=n(29776),O=n(23787),Y=n(17488),B=n(19103),H=n(95223),E=n(26777),M=n(37476),T=n(13659),U=n(46077),K=n.n(U),L=n(53285),V=n(78879),G=n(59008),Z=n(85672),Q=n(66157),X=n(52351),J=n(72679),$=n(83209),ee=n(67677),se=n(37740),ne=n(52825),te=n(76453),ie=n(65908);const ae=()=>{function e(e,s,n){return s[n]e[n]?1:0}const s=[{id:"sno",disablePadding:!0,label:"#"},{id:"tenantname",numeric:!1,disablePadding:!1,label:"REQUESTOR"},{id:"contact",numeric:!1,disablePadding:!1,label:"BANK"},{id:"address3",disablePadding:!1,label:"IFSC"},{id:"address",disablePadding:!1,label:"REF NO"},{id:"amount",disablePadding:!1,label:"AMOUNT"},{id:"city",disablePadding:!1,label:"REASON"}];function n(e){const{order:n,orderBy:t,onRequestSort:o}=e;return(0,ie.jsx)(i.A,{children:(0,ie.jsx)(a.A,{children:s.map((e=>{return(0,ie.jsx)(l.A,{align:e.numeric?"right":"left",padding:e.disablePadding?"none":"normal",sortDirection:t===e.id&&n,children:(0,ie.jsxs)(se.A,{active:t===e.id,direction:t===e.id?n:"asc",onClick:(s=e.id,e=>{o(e,s)}),children:[e.label,t===e.id?(0,ie.jsx)(r.A,{component:"span",sx:ne.A,children:"desc"===n?"sorted descending":"sorted ascending"}):null]})},e.id);var s}))})})}function U(){const s=(0,o.A)(),D=(0,c.A)(s.breakpoints.down("md")),[N,E]=Z.useState("asc"),[U,X]=Z.useState("calories"),[se,ne]=Z.useState([]),[ae,le]=Z.useState(0),[de,xe]=Z.useState(10),[he,ue]=(0,Z.useState)(""),[ge,je]=(0,Z.useState)(""),[pe,ye]=(0,Z.useState)(""),[we,Se]=(0,Z.useState)(""),[Fe,ke]=(0,Z.useState)(""),[Ie,Pe]=(0,Z.useState)(""),[Re,We]=(0,Z.useState)(""),[ze,qe]=(0,Z.useState)(""),[_e,De]=(0,Z.useState)(""),[Ne,Oe]=(0,Z.useState)(""),[Ye]=(0,Z.useState)(""),[Be,He]=(0,Z.useState)({});te.A.setApiKey("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8");const[Ee,Me]=(0,Z.useState)([]),[Te]=(0,Z.useState)([]),[Ue,Ke]=(0,Z.useState)(0),[Le]=(0,Z.useState)(!1),[Ve]=(0,Z.useState)(!1),[Ge]=(0,Z.useState)(!1),[Ze,Qe]=(0,Z.useState)(""),[Xe,Je]=(0,Z.useState)(""),[$e,es]=(0,Z.useState)("");(0,Z.useEffect)((()=>{Me([{sno:1,role:"",cost:"",serviceid:0,tenantid:0,categoryid:0,subcategoryid:0,servicecode:"",servicename:"",unitid:0,unitname:"",serviceamount:"",discountid:0,taxpercent:0,taxamount:0,servicevalue:0,categoryname:""}]),console.log(Ee)}),[]);const ss=e=>{(0,T.M8)(e,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),console.log(alertmessage)};(0,Z.useEffect)((()=>{try{te.A.fromAddress(Fe).then((e=>{if("OK"==e.status){const{lat:s,lng:n}=e.results[0].geometry.location;He({lat:s,lng:n}),console.log(e)}}),(e=>{console.log(e)}))}catch(e){console.log(e)}}),[Fe]),(0,Z.useEffect)((()=>{console.log("rolesarr"),console.log(Ee)}),[Ee]);const ns=async()=>{console.log("submit");let e=[],s=!1;if(Ee.map((n=>{n.role&&n.cost||(s=!0),e.push({serviceid:n.serviceid,tenantid:Ye,categoryid:n.categoryid,subcategoryid:n.subcategoryid,servicecode:n.servicecode,servicename:n.servicename,unitid:n.unitid,unitname:n.unitname,serviceamount:parseFloat(n.serviceamount),categoryname:n.categoryname,subcategoryname:n.servicename})})),console.log(e),s)(0,T.M8)("Fill all Details",{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3});else try{me(!0),await Q.A.put("".concat("https://jupiter.nearle.app/live/api/v2","/tenants/update/services"),e).then((e=>{console.log("res:",e),"Update successful"===e.data.message&&(0,T.M8)("Service Updated Successfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),me(!1)})).catch((e=>{console.log(e),me(!1)}))}catch(n){console.log(n),me(!1)}},ts=(e,s)=>{const n=se.indexOf(s);let t=[];-1===n?t=t.concat(se,s):0===n?t=t.concat(se.slice(1)):n===se.length-1?t=t.concat(se.slice(0,-1)):n>0&&(t=t.concat(se.slice(0,n),se.slice(n+1))),ne(t)},is=e=>-1!==se.indexOf(e),as=ae>0?Math.max(0,(1+ae)*de-ce.length):0,ls=Z.useMemo((()=>function(e,s){const n=e.map(((e,s)=>[e,s]));return n.sort(((e,n)=>{const t=s(e[0],n[0]);return 0!==t?t:e[1]-n[1]})),n.map((e=>e[0]))}(ce,function(s,n){return"desc"===s?(s,t)=>e(s,t,n):(s,t)=>-e(s,t,n)}(N,U)).slice(ae*de,ae*de+de)),[N,U,ae,de]);return(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsxs)(d.A,{fullWidth:!0,open:ve,onClose:Ce,scroll:"paper",fullScreen:D,maxWidth:"sm",TransitionComponent:M.s,PaperProps:{sx:{borderRadius:{xs:0,sm:3}}},children:[(0,ie.jsx)(x.A,{children:"Create Request"}),(0,ie.jsx)(h.A,{dividers:!0,children:(0,ie.jsx)(G.A,{sx:{height:"100%"},children:(0,ie.jsxs)(u.Ay,{container:!0,spacing:2.5,children:[(0,ie.jsxs)(u.Ay,{item:!0,xs:12,sm:6,children:[(0,ie.jsx)(g.A,{children:"Reference No"}),(0,ie.jsx)(A.A,{type:"number",fullWidth:!0,sx:{width:"100%"},value:Ze,onChange:e=>{Qe(e.target.value),console.log(e)}})]}),(0,ie.jsxs)(u.Ay,{item:!0,xs:12,sm:6,children:[(0,ie.jsx)(g.A,{children:"Requestor"}),(0,ie.jsx)(A.A,{value:Xe,onChange:e=>Je(e.target.value),fullWidth:!0,sx:{width:"100%"}})]}),(0,ie.jsxs)(u.Ay,{item:!0,xs:12,sm:6,children:[(0,ie.jsx)(g.A,{children:"Bank Name"}),(0,ie.jsx)(A.A,{value:$e,sx:{width:"100%"},onChange:e=>es(e.target.value)})]}),(0,ie.jsxs)(u.Ay,{item:!0,xs:12,sm:6,children:[(0,ie.jsx)(g.A,{children:"Amount"}),(0,ie.jsx)(A.A,{type:"number",value:amount,sx:{width:"100%"},onChange:e=>setAmount(e.target.value)})]}),(0,ie.jsxs)(u.Ay,{item:!0,xs:12,sm:6,children:[(0,ie.jsx)(g.A,{children:"Account No"}),(0,ie.jsx)(A.A,{type:"number",fullWidth:!0,sx:{width:"100%"},value:accountno,onChange:e=>{setAccountno(e.target.value),console.log(e)}})]}),(0,ie.jsxs)(u.Ay,{item:!0,xs:12,sm:6,children:[(0,ie.jsx)(g.A,{children:"IFSC Code"}),(0,ie.jsx)(A.A,{value:ifsc,onChange:e=>setIfsc(e.target.value),fullWidth:!0,sx:{width:"100%"}})]}),(0,ie.jsxs)(u.Ay,{item:!0,xs:12,sm:6,children:[(0,ie.jsx)(g.A,{children:"Reason"}),(0,ie.jsx)(A.A,{value:reason,onChange:e=>setReason(e.target.value),fullWidth:!0,sx:{width:"100%"}})]})]})})}),(0,ie.jsx)(m.A,{children:(0,ie.jsx)(u.Ay,{container:!0,children:(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsxs)(j.A,{direction:"row",justifyContent:"flex-end",spacing:2,sx:{p:2},children:[(0,ie.jsx)(p.A,{variant:"contained",onClick:()=>{(()=>{if(Ze)if(Xe)if($e)if(amount)if(accountno)if(ifsc)if(reason){let e={requestid:0,requestdate:K()().format("YYYY-MM-DD HH:mm:ss"),referenceno:Ze,Apptypeid:22,requesttype:"staffexpenses",reason:reason,requestor:Xe,amount:amount,Accountno:accountno,bankname:$e,ifsccode:ifsc};console.log(e)}else ss("Fill Reason");else ss("Fill IFSC");else ss("Fill Account No");else ss("Fill Amount");else ss("Fill Bank Name");else ss("Fill Requestor");else ss("Fill Reference No")})()},children:"Update"}),(0,ie.jsx)(p.A,{variant:"contained",onClick:()=>{Ce()},color:"error",children:"Close"})]})})})})]}),(0,ie.jsxs)(r.A,{sx:{width:"100%"},children:[D&&(0,ie.jsxs)(O.nV,{scroll:!0,children:[Ae&&[0,1,2,3,4].map((e=>(0,ie.jsxs)(O.pg,{accent:"#662582",children:[(0,ie.jsxs)(j.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,ie.jsx)(v.A,{variant:"circular",width:32,height:32}),(0,ie.jsxs)(j.A,{sx:{flex:1},children:[(0,ie.jsx)(v.A,{animation:"wave",width:"60%"}),(0,ie.jsx)(v.A,{animation:"wave",width:"40%"})]})]}),(0,ie.jsxs)(O.FG,{children:[(0,ie.jsx)(O.pY,{label:"Amount",value:(0,ie.jsx)(v.A,{animation:"wave",width:50})}),(0,ie.jsx)(O.pY,{label:"Ref No",value:(0,ie.jsx)(v.A,{animation:"wave",width:50})})]})]},e))),!Ae&&ls.map(((e,s)=>{const n=is(e.sno);return(0,ie.jsx)(O.pg,{accent:"#662582",selected:n,onClick:s=>ts(0,e.sno),header:(0,ie.jsxs)(j.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,ie.jsxs)(j.A,{direction:"row",alignItems:"center",spacing:1,sx:{minWidth:0},children:[(0,ie.jsx)(y.A,{sx:{width:32,height:32,bgcolor:"#66258218",color:"#662582",fontSize:13},children:e.requestor?String(e.requestor).charAt(0).toUpperCase():"#"}),(0,ie.jsxs)(j.A,{sx:{minWidth:0},children:[(0,ie.jsx)(f.A,{sx:{fontSize:14,fontWeight:700,color:"#0f172a"},noWrap:!0,children:e.requestor||"\u2014"}),(0,ie.jsxs)(f.A,{sx:{fontSize:11,color:"#94a3b8"},noWrap:!0,children:["#",e.sno]})]})]}),null!=e.amount&&(0,ie.jsx)(b.A,{label:e.amount,size:"small",sx:{bgcolor:"#66258218",color:"#662582",fontWeight:700}})]}),children:(0,ie.jsxs)(O.FG,{children:[(0,ie.jsx)(O.pY,{label:"Bank",value:e.bankname}),(0,ie.jsx)(O.pY,{label:"Account No",value:e.accountno}),(0,ie.jsx)(O.pY,{label:"IFSC",value:e.ifsccode}),(0,ie.jsx)(O.pY,{label:"Ref No",value:e.referenceno}),(0,ie.jsx)(O.pY,{label:"Reason",value:e.reason,full:!0})]})},e.sno)})),!Ae&&0===ls.length&&(0,ie.jsxs)(j.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,ie.jsx)(y.A,{sx:{width:64,height:64,bgcolor:"#f1f5f9",color:"#94a3b8"}}),(0,ie.jsx)(f.A,{sx:{fontSize:15,fontWeight:700,color:"#0f172a"},children:"No requests to show"}),(0,ie.jsx)(f.A,{sx:{fontSize:13,color:"#94a3b8"},children:"Requests will appear here once available."})]})]}),(0,ie.jsx)($.A,{sx:{width:"100%",borderBottom:1,borderColor:"divider",display:D?"none":"block"},children:(0,ie.jsxs)(C.A,{sx:{minWidth:750},"aria-labelledby":"tableTitle",size:"medium",children:[(0,ie.jsx)(n,{numSelected:se.length,order:N,orderBy:U,onSelectAllClick:e=>{if(e.target.checked){const e=ce.map((e=>e.name));ne(e)}else ne([])},onRequestSort:(e,s)=>{E(U===s&&"asc"===N?"desc":"asc"),X(s)},rowCount:ce.length}),Ae&&(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsx)(w.A,{children:[0,1,2,3,4,5,6,7,8,9].map((e=>(0,ie.jsxs)(a.A,{children:[(0,ie.jsx)(l.A,{children:(0,ie.jsx)(v.A,{animation:"wave"})}),(0,ie.jsx)(l.A,{children:(0,ie.jsxs)(j.A,{direction:"row",spacing:1,children:[(0,ie.jsx)(v.A,{variant:"circular",width:40,height:40}),(0,ie.jsxs)(j.A,{direction:"column",children:[(0,ie.jsx)(v.A,{animation:"wave",width:100}),(0,ie.jsx)(v.A,{animation:"wave",width:100})]})]})}),(0,ie.jsx)(l.A,{children:(0,ie.jsx)(v.A,{animation:"wave"})}),(0,ie.jsx)(l.A,{children:(0,ie.jsx)(v.A,{animation:"wave"})}),(0,ie.jsx)(l.A,{children:(0,ie.jsx)(v.A,{animation:"wave"})}),(0,ie.jsx)(l.A,{children:(0,ie.jsx)(v.A,{animation:"wave"})})]},e)))})}),(0,ie.jsxs)(w.A,{children:[ls.map(((e,s)=>{const n=is(e.sno),o="enhanced-table-checkbox-".concat(s);return(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsxs)(a.A,{hover:!0,onClick:s=>ts(0,e.sno),role:"checkbox","aria-checked":n,tabIndex:-1,sx:{cursor:"pointer"},children:[(0,ie.jsx)(l.A,{component:"th",id:o,scope:"row",padding:"none",children:e.sno}),(0,ie.jsx)(l.A,{align:"left",sx:{paddingLeft:"0px !important"},children:(0,ie.jsxs)(j.A,{direction:"row",alignItems:"center",spacing:1,justifyContent:"flex-start",children:[(0,ie.jsx)(y.A,{alt:"",size:"sm",sx:{width:"25px",height:"25px"}}),(0,ie.jsx)(j.A,{direction:"column",children:(0,ie.jsx)(f.A,{variant:"caption",children:e.requestor})})]})}),(0,ie.jsxs)(l.A,{align:"left",children:[(0,ie.jsxs)(f.A,{variant:"caption",children:[" ",e.accountno]}),(0,ie.jsxs)(f.A,{variant:"h6",children:[" ",e.bankname]})]}),(0,ie.jsx)(l.A,{children:e.ifsccode}),(0,ie.jsx)(l.A,{align:"left",children:e.referenceno}),(0,ie.jsx)(l.A,{children:e.amount}),(0,ie.jsx)(l.A,{children:e.reason})]},e.sno),(0,ie.jsx)(a.A,{children:(0,ie.jsxs)(l.A,{style:{paddingBottom:0,paddingTop:0,paddingLeft:0,paddingRight:0},colSpan:8,sx:{width:"100%"},children:[(0,ie.jsx)(S.A,{in:expandopen===e.sno,timeout:"auto",unmountOnExit:!0,children:(0,ie.jsx)(M.A,{type:"slide",direction:"down",in:!0,children:(0,ie.jsx)(G.A,{sx:{height:"100%"},children:Ge?(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsx)(G.A,{children:(0,ie.jsx)(j.A,{alignItems:"center",children:(0,ie.jsx)(F.A,{})})})}):(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsxs)(k.A,{value:Ue,onChange:(e,s)=>Ke(s),children:[(0,ie.jsx)(I.A,{label:"client Details"}),(0,ie.jsx)(I.A,{label:"Client Pricing"})]}),0===Ue&&(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsxs)(u.Ay,{container:!0,spacing:2.5,sx:{pl:{xs:0,sm:5,md:6,lg:10,xl:12},p:2},children:[(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:5,md:4,lg:4,xl:3,children:(0,ie.jsx)(G.A,{sx:{height:"100%"},children:(0,ie.jsxs)(u.Ay,{container:!0,spacing:3,children:[(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsxs)(j.A,{spacing:2.5,alignItems:"center",children:[(0,ie.jsx)(y.A,{alt:"Avatar 1",size:"xl"}),(0,ie.jsxs)(j.A,{spacing:.5,alignItems:"center",children:[(0,ie.jsx)(f.A,{variant:"h5",children:he}),(0,ie.jsx)(f.A,{color:"secondary",children:we})]})]})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsx)(P.A,{})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsxs)(R.A,{component:"nav","aria-label":"main mailbox folders",sx:{py:0},children:[(0,ie.jsxs)(W.Ay,{children:[(0,ie.jsx)(z.A,{children:(0,ie.jsx)(L.A,{})}),(0,ie.jsx)(f.A,{align:"right",children:ge})]}),(0,ie.jsxs)(W.Ay,{children:[(0,ie.jsx)(z.A,{children:(0,ie.jsx)(V.A,{})}),(0,ie.jsxs)(f.A,{align:"left",children:["+1 ",pe]})]})]})})]})})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:7,md:8,lg:8,xl:9,children:(0,ie.jsx)(G.A,{title:(0,ie.jsx)(r.A,{sx:{p:1},children:"Contact Details"}),sx:{height:"100%"},children:(0,ie.jsxs)(R.A,{sx:{py:0},children:[(0,ie.jsx)(W.Ay,{children:(0,ie.jsxs)(u.Ay,{container:!0,spacing:3,children:[(0,ie.jsx)(u.Ay,{item:!0,xs:12,md:6,children:(0,ie.jsxs)(j.A,{spacing:.5,children:[(0,ie.jsx)(f.A,{color:"secondary",children:" Contact Name"}),(0,ie.jsx)(f.A,{children:ze})]})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,md:6})]})}),(0,ie.jsx)(W.Ay,{children:(0,ie.jsxs)(j.A,{spacing:.5,children:[(0,ie.jsx)(f.A,{color:"secondary",children:"Address"}),(0,ie.jsx)(f.A,{children:Fe})]})}),(0,ie.jsx)(W.Ay,{children:(0,ie.jsxs)(u.Ay,{container:!0,spacing:3,children:[(0,ie.jsx)(u.Ay,{item:!0,xs:12,md:6,children:(0,ie.jsxs)(j.A,{spacing:.5,children:[(0,ie.jsx)(f.A,{color:"secondary",children:"City"}),(0,ie.jsx)(f.A,{children:Ie})]})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,md:6,children:(0,ie.jsxs)(j.A,{spacing:.5,children:[(0,ie.jsx)(f.A,{color:"secondary",children:"Zip Code"}),(0,ie.jsx)(f.A,{children:Re})]})})]})})]})})})]})}),1===Ue&&(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsx)(u.Ay,{container:!0,sx:{p:1},children:(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsx)(G.A,{sx:{height:"100%",p:1},children:Ee[0].role?(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsx)($.A,{sx:{width:"100%",borderBottom:1,borderColor:"divider"},children:(0,ie.jsxs)(C.A,{sx:{width:"100%"},children:[(0,ie.jsx)(i.A,{children:(0,ie.jsxs)(a.A,{children:[(0,ie.jsx)(l.A,{children:"#"}),(0,ie.jsx)(l.A,{sx:{width:"30%"},children:"Category"}),(0,ie.jsx)(l.A,{sx:{width:"30%"},children:"Skill"}),(0,ie.jsx)(l.A,{sx:{width:"30%"},children:"Cost/Hr"})]})}),(0,ie.jsx)(w.A,{children:Ee.map((e=>(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsxs)(a.A,{children:[(0,ie.jsx)(l.A,{children:e.sno}),(0,ie.jsx)(l.A,{children:e.categoryname}),(0,ie.jsx)(l.A,{children:e.role}),(0,ie.jsx)(l.A,{children:e.cost})]})})))})]})})}):(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsx)(f.A,{children:"No Data found"})})})})})})]})})})}),(0,ie.jsx)(S.A,{in:editexpandopen===e.sno,timeout:"auto",unmountOnExit:!0,children:(0,ie.jsx)(M.A,{type:"slide",direction:"down",in:!0,children:Ge?(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsx)(G.A,{children:(0,ie.jsx)(j.A,{alignItems:"center",children:(0,ie.jsx)(F.A,{})})})}):(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsxs)(G.A,{sx:{height:"100%"},children:[(0,ie.jsxs)(k.A,{value:Ue,onChange:(e,s)=>Ke(s),children:[(0,ie.jsx)(I.A,{label:"client Details"}),(0,ie.jsx)(I.A,{label:"Client Pricing"})]}),0===Ue&&(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsx)(G.A,{sx:{height:"100%"},children:(0,ie.jsxs)(u.Ay,{container:!0,spacing:2.5,children:[(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:5,md:4,lg:4,xl:3,children:(0,ie.jsx)(G.A,{title:(0,ie.jsx)(r.A,{sx:{p:1},children:"Client"}),sx:{height:"100%"},children:(0,ie.jsxs)(u.Ay,{container:!0,spacing:3,children:[(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsxs)(j.A,{spacing:2,alignItems:"center",sx:{width:"100%"},children:[(0,ie.jsx)(A.A,{type:"text",label:"Business name",fullWidth:!0,sx:{width:"100%"},value:he,onChange:e=>ue(e.target.value)}),(0,ie.jsx)(A.A,{type:"number",value:we,onChange:e=>Se(e.target.value),label:"Business No.",fullWidth:!0,sx:{width:"100%"}})]})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsx)(R.A,{component:"nav","aria-label":"main mailbox folders",sx:{py:0},children:(0,ie.jsxs)(j.A,{direction:"column",spacing:2,sx:{width:"100%"},children:[(0,ie.jsx)(A.A,{type:"email",value:ge,sx:{width:"100%"},onChange:e=>je(e.target.value),label:"Email"}),(0,ie.jsx)(A.A,{type:"number",value:pe,placeholder:"Mobile Number",InputProps:{startAdornment:(0,ie.jsx)(q.A,{position:"start",children:"+1"})},sx:{width:"100%"},onChange:e=>ye(e.target.value)})]})})})]})})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:7,md:8,lg:8,xl:9,children:(0,ie.jsx)(G.A,{title:(0,ie.jsx)(r.A,{sx:{p:1},children:"Contact Details"}),sx:{height:"100%"},children:(0,ie.jsxs)(u.Ay,{container:!0,spacing:3,children:[(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsx)(j.A,{spacing:.5,children:(0,ie.jsx)(A.A,{type:"text",value:ze,onChange:e=>qe(e.target.value),label:"Contact Name"})})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsxs)(j.A,{spacing:.5,children:[(0,ie.jsx)(ie.Fragment,{}),(0,ie.jsx)(J.default,{className:"automap",apiKey:"AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8",style:{width:"100%",height:"40px",borderRadius:"5px",border:"1px solid #e0e0e0",textIndent:"10px",outline:"none"},onPlaceSelected:e=>{let s,n,t,i;ke(e.formatted_address);for(let a=0;ake(e.target.value)})]})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,md:6,children:(0,ie.jsx)(j.A,{spacing:.5,children:(0,ie.jsx)(A.A,{label:"City",type:"text",value:Ie,onChange:e=>Pe(e.target.value)})})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,md:6,children:(0,ie.jsx)(j.A,{spacing:.5,children:(0,ie.jsx)(A.A,{label:"Zip Code",value:Re,onChange:e=>We(e.target.value)})})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsx)(j.A,{direction:"row",justifyContent:"flex-end",children:(0,ie.jsxs)(p.A,{variant:"contained",onClick:()=>{(async()=>{if(he)if(we)if(ge)if(pe)if(ze)if(Fe)if(Ie)if(Re)if(Be.lat&&Be.lng)if(!Le&&!Ve||Ee[0].role&&Ee[0].cost){let s={tenantid:Ye,registrationno:we,tenantname:he,primaryemail:ge,primarycontact:ze,contactno:pe,address:Fe,suburb:Ne,city:Ie,state:_e,postcode:Re,latitude:Be.lat.toString(),longitude:Be.lng.toString(),approved:Le&&1===re||!Le&&0===re&&!Ve?1:0};console.log(s);try{me(!0),await Q.A.put("".concat("https://jupiter.nearle.app/live/api/v2","/tenants/update"),s).then((e=>{console.log("res:",e),"Update successful"===e.data.message&&((0,T.M8)("Client Details Updated Successfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:3e3}),me(!0),setTimeout((()=>{be(),fe(),oe(0),me(!1)}),2e3)),me(!1)})).catch((e=>{console.log(e),me(!1)}))}catch(e){console.log(e),me(!1)}}else ss("Fill client pricing");else setAlertmessage("Fill correct address"),ss("Fill correct address");else ss("Fill Zip code");else ss("Fill City name");else ss("Fill Address");else ss("Fill Contact name");else ss("Fill Mobile number");else ss("Fill Email address");else ss("Fill Business No.");else ss("Fill Business name")})(),Le&&ns()},children:["Update ",Le?"& Approve":"",Ve?"& Disable":""]})})})]})})})]})})}),1===Ue&&(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsx)(u.Ay,{container:!0,children:(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsx)(G.A,{sx:{height:"100%",p:1},children:(0,ie.jsxs)(G.A,{sx:{height:"100%"},children:[(0,ie.jsx)($.A,{sx:{width:"100%",borderBottom:1,borderColor:"divider"},children:(0,ie.jsxs)(C.A,{sx:{width:"100%"},children:[(0,ie.jsx)(i.A,{children:(0,ie.jsxs)(a.A,{children:[(0,ie.jsx)(l.A,{children:"#"}),(0,ie.jsx)(l.A,{children:"Category"}),(0,ie.jsx)(l.A,{sx:{width:"40%"},children:"Skill"}),(0,ie.jsx)(l.A,{sx:{width:"40%"},children:"Cost/Hr"}),(0,ie.jsx)(l.A,{sx:{width:"10px"}})]})}),(0,ie.jsx)(w.A,{children:Ee.map((e=>(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsxs)(a.A,{children:[(0,ie.jsx)(l.A,{children:e.sno}),(0,ie.jsx)(l.A,{children:e.categoryname}),(0,ie.jsx)(l.A,{children:(0,ie.jsx)(Y.A,{fullWidth:!0,id:"venuetype33",variant:"outlined",error:!0,freeSolo:!0,options:Te.sort(((e,s)=>-s.categoryname.localeCompare(e.categoryname))),groupBy:e=>e.categoryname,getOptionLabel:e=>e.subcategoryname,isOptionEqualToValue:(e,s)=>e.subcategoryid===s.subcategoryid,onChange:(s,n)=>{if(n){console.log("eval",s);let t=Ee.find((e=>e.subcategoryid===n.subcategoryid));if(console.log(n),t)ss("select different skill");else{let s=Ee;s[e.sno-1].role=n.subcategoryname,s[e.sno-1].categoryname=n.categoryname,s[e.sno-1].categoryid=n.categoryid,s[e.sno-1].subcategoryid=n.subcategoryid,s[e.sno-1].servicename=n.subcategoryname,s[e.sno-1].unitid=n.unitid,s[e.sno-1].unitname=n.unitname,Me([...s])}}console.log(n)},renderInput:s=>(0,ie.jsx)(A.A,(0,t.A)((0,t.A)({},s),{},{placeholder:"Choose a Skill",defaultValue:e.role,variant:"outlined",sx:{input:{"&::placeholder":{opacity:.9}}}})),value:{categoryid:e.categoryid,categoryname:"",cost:e.serviceamount,label:e.servicename,status:0,subcategoryid:e.subcategoryid,subcategoryname:e.servicename,unitid:e.unitid,unitname:e.unitname},disabled:!!Ae})}),(0,ie.jsx)(l.A,{children:(0,ie.jsx)(A.A,{type:"number",onChange:s=>{let n=Ee;s.target.value<1e3&&(n[e.sno-1].cost=s.target.value,n[e.sno-1].servicevalue=s.target.value,n[e.sno-1].serviceamount=s.target.value,Me([...n])),console.log(s.target.value)},value:e.cost,autoComplete:"off",fullWidth:!0})}),(0,ie.jsx)(l.A,{children:(0,ie.jsx)(_.A,{onClick:()=>(async(e,s)=>{console.log(s);let n=Ee;if(0!==s.serviceid&&Ee.length>1){console.log([{serviceid:s.serviceid,tenantid:s.tenantid,categoryid:s.categoryid,subcategoryid:s.subcategoryid,servicecode:s.servicecode,servicename:s.servicename,unitid:s.unitid,unitname:s.unitname,serviceamount:s.servicevalue}]);try{await Q.A.delete("".concat("https://jupiter.nearle.app/live/api/v2","/tenants/delete/services"),{data:[{serviceid:s.serviceid,tenantid:s.tenantid,categoryid:s.categoryid,subcategoryid:s.subcategoryid,servicecode:s.servicecode,servicename:s.servicename,unitid:s.unitid,unitname:s.unitname,serviceamount:s.servicevalue}]}).then((s=>{console.log("res"),console.log(s),"Deleted successful"===s.data.message&&((0,T.M8)("Client pricing Deleted",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),n.splice(e-1,1),n.map(((e,s)=>{e.sno=s+1})),console.log(n),Me([...n]))})).catch((e=>{console.log(e),me(!1)}))}catch(t){console.log(t),me(!1)}}else Ee.length>1?(n.splice(e-1,1),n.map(((e,s)=>{e.sno=s+1})),console.log(n),Me([...n])):1===Ee.length&&Me([{sno:1,role:"",cost:"",serviceid:s.serviceid,tenantid:0,categoryid:0,subcategoryid:0,servicecode:"",servicename:"",unitid:0,unitname:"",serviceamount:"",discountid:0,taxpercent:0,taxamount:0,servicevalue:0,categoryname:""}])})(e.sno,e),color:"error",children:(0,ie.jsx)(B.A,{})})})]})})))})]})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsx)(p.A,{color:"primary",endIcon:(0,ie.jsx)(H.A,{}),onClick:()=>(()=>{let e=Ee;e[e.length-1].role&&e[e.length-1].cost?(e.push({sno:e.length+1,cost:"",role:"",serviceid:0,tenantid:0,categoryid:0,subcategoryid:0,servicecode:"",servicename:"",unitid:0,unitname:"",serviceamount:"",discountid:0,taxpercent:0,taxamount:0,servicevalue:0,categoryname:""}),Me([...e])):ss("Fill all Previous Details")})(),sx:{m:2},variant:"dashed",size:"extraSmall",children:"ADD SKILL"})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsx)(u.Ay,{container:!0,justifyContent:"flex-end",children:(0,ie.jsx)(u.Ay,{item:!0,children:(0,ie.jsx)(p.A,{variant:"contained",size:"small",onClick:ns,children:"Update"})})})})]})})})})})]})})})})]})})]})})),as>0&&(0,ie.jsx)(a.A,{style:{height:53*as},children:(0,ie.jsx)(l.A,{colSpan:6})})]})]})}),(0,ie.jsx)(ee.A,{rowsPerPageOptions:[10,25,50,100],component:"div",count:ce.length,rowsPerPage:de,page:ae,onPageChange:(e,s)=>{le(s)},onRowsPerPageChange:e=>{xe(parseInt(e.target.value,10)),le(0)}})]})]})}const ae=(0,o.A)(),le=(0,c.A)(ae.breakpoints.down("md")),[re,oe]=(0,Z.useState)(0),[ce,de]=(0,Z.useState)([]),[xe,he]=(0,Z.useState)([]),[ue,ge]=(0,Z.useState)([]),[Ae,me]=(0,Z.useState)(!1),[je,pe]=(0,Z.useState)(""),[ve,ye]=(0,Z.useState)(!1);(0,Z.useEffect)((()=>{localStorage.getItem("partnerid")&&(be(localStorage.getItem("partnerid")),fe(localStorage.getItem("partnerid")))}),[]),(0,Z.useEffect)((()=>{}),[je,re]);const fe=async e=>{me(!0);try{await Q.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/payments/requests/getpaymentrequest/?partnerid=").concat(e,"&status=1")).then((e=>{if("Successful"===e.data.message){let s=[];e.data.details.map(((e,n)=>{s=[...s,(0,t.A)((0,t.A)({},e),{},{sno:n+1})]})),he(s),console.log(e.data.details),me(!1)}})).catch((e=>{console.log(e),me(!1)}))}catch(s){console.log(s),me(!1)}},be=async e=>{me(!0);try{await Q.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/payments/requests/getpaymentrequest/?partnerid=").concat(e,"&status=0")).then((e=>{if("Success"===e.data.message){let s=[];e.data.details.map(((e,n)=>{s=[...s,(0,t.A)((0,t.A)({},e),{},{sno:n+1})]})),ge(s),de(s),console.log(e.data.details),me(!1)}})).catch((e=>{console.log(e),me(!1)}))}catch(s){console.log(s),me(!1)}},Ce=()=>{ye(!1)};return(0,ie.jsxs)(ie.Fragment,{children:[Ae&&(0,ie.jsx)(X.A,{}),(0,ie.jsxs)(u.Ay,{container:!0,rowSpacing:2,columnSpacing:2.75,children:[(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsxs)(j.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"stretch",sm:"center"},spacing:{xs:1.5,sm:0},children:[(0,ie.jsx)(f.A,{variant:"h3",children:"Payment Requests"}),(0,ie.jsx)(p.A,{variant:"contained",fullWidth:le,onClick:()=>{},children:"Create Request"})]})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,children:(0,ie.jsxs)(r.A,{sx:{overflow:"auto",border:1,borderColor:"grey.200",borderRadius:2,backgroundColor:"#fff",minHeight:400},children:[(0,ie.jsxs)(j.A,{alignItems:"center",justifyContent:"space-between",direction:"row",sx:{p:2,width:"100%",flexWrap:"wrap",gap:1},children:[(0,ie.jsxs)(k.A,{value:re,onChange:(e,s)=>{oe(s),1===s&&de(xe),0===s&&de(ue)},variant:"scrollable",scrollButtons:"auto",children:[(0,ie.jsx)(I.A,{label:"Pending",icon:(0,ie.jsx)(b.A,{label:ue.length,color:"primary",variant:"light",size:"small"}),iconPosition:"end"}),(0,ie.jsx)(I.A,{label:"Paid",iconPosition:"end",icon:(0,ie.jsx)(b.A,{label:xe.length,color:"primary",variant:"light",size:"small"})})]}),(0,ie.jsx)(D.A,{sx:{width:{xs:"100%",md:250}},children:(0,ie.jsx)(N.A,{size:"small",id:"header-search",startAdornment:(0,ie.jsx)(q.A,{position:"start",sx:{mr:-.5},children:(0,ie.jsx)(E.A,{})}),"aria-describedby":"header-search-text",inputProps:{"aria-label":"weight"},placeholder:"Search",value:je,onChange:e=>{pe(e.target.value)},autoComplete:"off"})})]}),(0,ie.jsx)(U,{})]})})]})]})}}}]); \ No newline at end of file diff --git a/build/static/js/7915.2be56ba5.chunk.js b/build/static/js/7915.2be56ba5.chunk.js new file mode 100644 index 0000000..367beb6 --- /dev/null +++ b/build/static/js/7915.2be56ba5.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[7915],{20454:(t,e,s)=>{"use strict";function i(t){if(null==t)throw new TypeError("Cannot destructure "+t)}s.d(e,{A:()=>i})},40154:(t,e,s)=>{"use strict";s.d(e,{h:()=>a});var i=s(85672);function r(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var n=i.createContext(r()),a=()=>i.useContext(n)},42948:(t,e,s)=>{"use strict";function i(t,e){return"function"===typeof t?t(...e):!!t}s.d(e,{G:()=>i})},46077:function(t){t.exports=function(){"use strict";var t=1e3,e=6e4,s=36e5,i="millisecond",r="second",n="minute",a="hour",o="day",u="week",h="month",c="quarter",d="year",l="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],s=t%100;return"["+t+(e[(s-20)%10]||e[s]||e[0])+"]"}},y=function(t,e,s){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(s)+t},b={s:y,z:function(t){var e=-t.utcOffset(),s=Math.abs(e),i=Math.floor(s/60),r=s%60;return(e<=0?"+":"-")+y(i,2,"0")+":"+y(r,2,"0")},m:function t(e,s){if(e.date()1)return t(a[0])}else{var o=e.name;O[o]=e,r=o}return!i&&r&&($=r),r||!i&&$},S=function(t,e){if(m(t))return t.clone();var s="object"==typeof e?e:{};return s.date=t,s.args=arguments,new D(s)},M=b;M.l=w,M.i=m,M.w=function(t,e){return S(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var D=function(){function v(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[g]=!0}var y=v.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,s=t.utc;if(null===e)return new Date(NaN);if(M.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(p);if(i){var r=i[2]-1||0,n=(i[7]||"0").substring(0,3);return s?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,n)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,n)}}return new Date(e)}(t),this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return M},y.isValid=function(){return!(this.$d.toString()===f)},y.isSame=function(t,e){var s=S(t);return this.startOf(e)<=s&&s<=this.endOf(e)},y.isAfter=function(t,e){return S(t){"use strict";s.d(e,{$:()=>E});var i,r,n,a,o,u,h,c,d,l,f,p,A,v,y,b,$,O,g,m,w,S,M,D=s(22555),R=s(20454),C=s(4473),j=s(68341),P=s(90010),U=s(86547),T=s(7072),_=s(30138),k=s(38034),E=(i=(0,j.A)("client"),r=(0,j.A)("currentQuery"),n=(0,j.A)("currentQueryInitialState"),a=(0,j.A)("currentResult"),o=(0,j.A)("currentResultState"),u=(0,j.A)("currentResultOptions"),h=(0,j.A)("selectError"),c=(0,j.A)("selectFn"),d=(0,j.A)("selectResult"),l=(0,j.A)("lastQueryWithDefinedData"),f=(0,j.A)("staleTimeoutId"),p=(0,j.A)("refetchIntervalId"),A=(0,j.A)("currentRefetchInterval"),v=(0,j.A)("trackedProps"),y=(0,j.A)("executeFetch"),b=(0,j.A)("updateStaleTimeout"),$=(0,j.A)("computeRefetchInterval"),O=(0,j.A)("updateRefetchInterval"),g=(0,j.A)("updateTimers"),m=(0,j.A)("clearStaleTimeout"),w=(0,j.A)("clearRefetchInterval"),S=(0,j.A)("updateQuery"),M=(0,j.A)("notify"),class extends _.Q{constructor(t,e){super(),Object.defineProperty(this,M,{value:q}),Object.defineProperty(this,S,{value:W}),Object.defineProperty(this,w,{value:Y}),Object.defineProperty(this,m,{value:H}),Object.defineProperty(this,g,{value:x}),Object.defineProperty(this,O,{value:Q}),Object.defineProperty(this,$,{value:F}),Object.defineProperty(this,b,{value:L}),Object.defineProperty(this,y,{value:I}),Object.defineProperty(this,i,{writable:!0,value:void 0}),Object.defineProperty(this,r,{writable:!0,value:void 0}),Object.defineProperty(this,n,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,h,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:void 0}),Object.defineProperty(this,d,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,f,{writable:!0,value:void 0}),Object.defineProperty(this,p,{writable:!0,value:void 0}),Object.defineProperty(this,A,{writable:!0,value:void 0}),Object.defineProperty(this,v,{writable:!0,value:new Set}),this.options=e,(0,C.A)(this,i)[i]=t,(0,C.A)(this,h)[h]=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&((0,C.A)(this,r)[r].addObserver(this),J((0,C.A)(this,r)[r],this.options)?(0,C.A)(this,y)[y]():this.updateResult(),(0,C.A)(this,g)[g]())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Z((0,C.A)(this,r)[r],this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Z((0,C.A)(this,r)[r],this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,(0,C.A)(this,m)[m](),(0,C.A)(this,w)[w](),(0,C.A)(this,r)[r].removeObserver(this)}setOptions(t,e){const s=this.options,n=(0,C.A)(this,r)[r];if(this.options=(0,C.A)(this,i)[i].defaultQueryOptions(t),(0,P.f8)(s,this.options)||(0,C.A)(this,i)[i].getQueryCache().notify({type:"observerOptionsUpdated",query:(0,C.A)(this,r)[r],observer:this}),"undefined"!==typeof this.options.enabled&&"boolean"!==typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),(0,C.A)(this,S)[S]();const a=this.hasListeners();a&&z((0,C.A)(this,r)[r],n,this.options,s)&&(0,C.A)(this,y)[y](),this.updateResult(e),!a||(0,C.A)(this,r)[r]===n&&this.options.enabled===s.enabled&&this.options.staleTime===s.staleTime||(0,C.A)(this,b)[b]();const o=(0,C.A)(this,$)[$]();!a||(0,C.A)(this,r)[r]===n&&this.options.enabled===s.enabled&&o===(0,C.A)(this,A)[A]||(0,C.A)(this,O)[O](o)}getOptimisticResult(t){const e=(0,C.A)(this,i)[i].getQueryCache().build((0,C.A)(this,i)[i],t),s=this.createResult(e,t);return function(t,e){if(!(0,P.f8)(t.getCurrentResult(),e))return!0;return!1}(this,s)&&((0,C.A)(this,a)[a]=s,(0,C.A)(this,u)[u]=this.options,(0,C.A)(this,o)[o]=(0,C.A)(this,r)[r].state),s}getCurrentResult(){return(0,C.A)(this,a)[a]}trackResult(t){const e={};return Object.keys(t).forEach((s=>{Object.defineProperty(e,s,{configurable:!1,enumerable:!0,get:()=>((0,C.A)(this,v)[v].add(s),t[s])})})),e}getCurrentQuery(){return(0,C.A)(this,r)[r]}refetch(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({},((0,R.A)(t),t));return this.fetch((0,D.A)({},e))}fetchOptimistic(t){const e=(0,C.A)(this,i)[i].defaultQueryOptions(t),s=(0,C.A)(this,i)[i].getQueryCache().build((0,C.A)(this,i)[i],e);return s.isFetchingOptimistic=!0,s.fetch().then((()=>this.createResult(s,e)))}fetch(t){var e;return(0,C.A)(this,y)[y]((0,D.A)((0,D.A)({},t),{},{cancelRefetch:null===(e=t.cancelRefetch)||void 0===e||e})).then((()=>(this.updateResult(),(0,C.A)(this,a)[a])))}createResult(t,e){const s=(0,C.A)(this,r)[r],i=this.options,f=(0,C.A)(this,a)[a],p=(0,C.A)(this,o)[o],A=(0,C.A)(this,u)[u],v=t!==s?t.state:(0,C.A)(this,n)[n],{state:y}=t;let b,{error:$,errorUpdatedAt:O,fetchStatus:g,status:m}=y,w=!1;if(e._optimisticResults){const r=this.hasListeners(),n=!r&&J(t,e),a=r&&z(t,s,e,i);(n||a)&&(g=(0,k.v_)(t.options.networkMode)?"fetching":"paused",y.dataUpdatedAt||(m="pending")),"isRestoring"===e._optimisticResults&&(g="idle")}if(e.select&&"undefined"!==typeof y.data)if(f&&y.data===(null===p||void 0===p?void 0:p.data)&&e.select===(0,C.A)(this,c)[c])b=(0,C.A)(this,d)[d];else try{(0,C.A)(this,c)[c]=e.select,b=e.select(y.data),b=(0,P.pl)(null===f||void 0===f?void 0:f.data,b,e),(0,C.A)(this,d)[d]=b,(0,C.A)(this,h)[h]=null}catch(U){(0,C.A)(this,h)[h]=U}else b=y.data;if("undefined"!==typeof e.placeholderData&&"undefined"===typeof b&&"pending"===m){let t;var S;if(null!==f&&void 0!==f&&f.isPlaceholderData&&e.placeholderData===(null===A||void 0===A?void 0:A.placeholderData))t=f.data;else if(t="function"===typeof e.placeholderData?e.placeholderData(null===(S=(0,C.A)(this,l)[l])||void 0===S?void 0:S.state.data,(0,C.A)(this,l)[l]):e.placeholderData,e.select&&"undefined"!==typeof t)try{t=e.select(t),(0,C.A)(this,h)[h]=null}catch(U){(0,C.A)(this,h)[h]=U}"undefined"!==typeof t&&(m="success",b=(0,P.pl)(null===f||void 0===f?void 0:f.data,t,e),w=!0)}(0,C.A)(this,h)[h]&&($=(0,C.A)(this,h)[h],b=(0,C.A)(this,d)[d],O=Date.now(),m="error");const M="fetching"===g,D="pending"===m,R="error"===m,j=D&&M;return{status:m,fetchStatus:g,isPending:D,isSuccess:"success"===m,isError:R,isInitialLoading:j,isLoading:j,data:b,dataUpdatedAt:y.dataUpdatedAt,error:$,errorUpdatedAt:O,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>v.dataUpdateCount||y.errorUpdateCount>v.errorUpdateCount,isFetching:M,isRefetching:M&&!D,isLoadingError:R&&0===y.dataUpdatedAt,isPaused:"paused"===g,isPlaceholderData:w,isRefetchError:R&&0!==y.dataUpdatedAt,isStale:B(t,e),refetch:this.refetch}}updateResult(t){const e=(0,C.A)(this,a)[a],s=this.createResult((0,C.A)(this,r)[r],this.options);if((0,C.A)(this,o)[o]=(0,C.A)(this,r)[r].state,(0,C.A)(this,u)[u]=this.options,void 0!==(0,C.A)(this,o)[o].data&&((0,C.A)(this,l)[l]=(0,C.A)(this,r)[r]),(0,P.f8)(s,e))return;(0,C.A)(this,a)[a]=s;const i={};!1!==(null===t||void 0===t?void 0:t.listeners)&&(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,s="function"===typeof t?t():t;if("all"===s||!s&&!(0,C.A)(this,v)[v].size)return!0;const i=new Set(null!==s&&void 0!==s?s:(0,C.A)(this,v)[v]);return this.options.throwOnError&&i.add("error"),Object.keys((0,C.A)(this,a)[a]).some((t=>{const s=t;return(0,C.A)(this,a)[a][s]!==e[s]&&i.has(s)}))})()&&(i.listeners=!0),(0,C.A)(this,M)[M]((0,D.A)((0,D.A)({},i),t))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&(0,C.A)(this,g)[g]()}});function I(t){(0,C.A)(this,S)[S]();let e=(0,C.A)(this,r)[r].fetch(this.options,t);return null!==t&&void 0!==t&&t.throwOnError||(e=e.catch(P.lQ)),e}function L(){if((0,C.A)(this,m)[m](),P.S$||(0,C.A)(this,a)[a].isStale||!(0,P.gn)(this.options.staleTime))return;const t=(0,P.j3)((0,C.A)(this,a)[a].dataUpdatedAt,this.options.staleTime)+1;(0,C.A)(this,f)[f]=setTimeout((()=>{(0,C.A)(this,a)[a].isStale||this.updateResult()}),t)}function F(){var t;return null!==(t="function"===typeof this.options.refetchInterval?this.options.refetchInterval((0,C.A)(this,r)[r]):this.options.refetchInterval)&&void 0!==t&&t}function Q(t){(0,C.A)(this,w)[w](),(0,C.A)(this,A)[A]=t,!P.S$&&!1!==this.options.enabled&&(0,P.gn)((0,C.A)(this,A)[A])&&0!==(0,C.A)(this,A)[A]&&((0,C.A)(this,p)[p]=setInterval((()=>{(this.options.refetchIntervalInBackground||T.m.isFocused())&&(0,C.A)(this,y)[y]()}),(0,C.A)(this,A)[A]))}function x(){(0,C.A)(this,b)[b](),(0,C.A)(this,O)[O]((0,C.A)(this,$)[$]())}function H(){(0,C.A)(this,f)[f]&&(clearTimeout((0,C.A)(this,f)[f]),(0,C.A)(this,f)[f]=void 0)}function Y(){(0,C.A)(this,p)[p]&&(clearInterval((0,C.A)(this,p)[p]),(0,C.A)(this,p)[p]=void 0)}function W(){const t=(0,C.A)(this,i)[i].getQueryCache().build((0,C.A)(this,i)[i],this.options);if(t===(0,C.A)(this,r)[r])return;const e=(0,C.A)(this,r)[r];(0,C.A)(this,r)[r]=t,(0,C.A)(this,n)[n]=t.state,this.hasListeners()&&(null===e||void 0===e||e.removeObserver(this),t.addObserver(this))}function q(t){U.j.batch((()=>{t.listeners&&this.listeners.forEach((t=>{t((0,C.A)(this,a)[a])})),(0,C.A)(this,i)[i].getQueryCache().notify({query:(0,C.A)(this,r)[r],type:"observerResultsUpdated"})}))}function J(t,e){return function(t,e){return!1!==e.enabled&&!t.state.dataUpdatedAt&&!("error"===t.state.status&&!1===e.retryOnMount)}(t,e)||t.state.dataUpdatedAt>0&&Z(t,e,e.refetchOnMount)}function Z(t,e,s){if(!1!==e.enabled){const i="function"===typeof s?s(t):s;return"always"===i||!1!==i&&B(t,e)}return!1}function z(t,e,s,i){return!1!==s.enabled&&(t!==e||!1===i.enabled)&&(!s.suspense||"error"!==t.state.status)&&B(t,s)}function B(t,e){return t.isStaleByTime(e.staleTime)}},50505:(t,e,s)=>{"use strict";s.d(e,{EU:()=>n,iL:()=>a,nE:()=>r,tu:()=>i});var i=t=>{t.suspense&&"number"!==typeof t.staleTime&&(t.staleTime=1e3)},r=(t,e)=>t.isLoading&&t.isFetching&&!e,n=(t,e)=>(null===t||void 0===t?void 0:t.suspense)&&e.isPending,a=(t,e,s)=>e.fetchOptimistic(t).catch((()=>{s.clearReset()}))},59363:(t,e,s)=>{"use strict";s.d(e,{t:()=>c});var i=s(85672),r=s(86547),n=s(40154),a=s(66299),o=s(89404),u=s(98964),h=s(50505);function c(t,e,s){const c=(0,a.jE)(s),d=(0,o.w)(),l=(0,n.h)(),f=c.defaultQueryOptions(t);f._optimisticResults=d?"isRestoring":"optimistic",(0,h.tu)(f),(0,u.LJ)(f,l),(0,u.wZ)(l);const[p]=i.useState((()=>new e(c,f))),A=p.getOptimisticResult(f);if(i.useSyncExternalStore(i.useCallback((t=>{const e=d?()=>{}:p.subscribe(r.j.batchCalls(t));return p.updateResult(),e}),[p,d]),(()=>p.getCurrentResult()),(()=>p.getCurrentResult())),i.useEffect((()=>{p.setOptions(f,{listeners:!1})}),[f,p]),(0,h.EU)(f,A))throw(0,h.iL)(f,p,l);if((0,u.$1)({result:A,errorResetBoundary:l,throwOnError:f.throwOnError,query:c.getQueryCache().get(f.queryHash)}))throw A.error;return f.notifyOnChangeProps?A:p.trackResult(A)}},89404:(t,e,s)=>{"use strict";s.d(e,{w:()=>n});var i=s(85672),r=i.createContext(!1),n=()=>i.useContext(r);r.Provider},98964:(t,e,s)=>{"use strict";s.d(e,{$1:()=>o,LJ:()=>n,wZ:()=>a});var i=s(85672),r=s(42948),n=(t,e)=>{(t.suspense||t.throwOnError)&&(e.isReset()||(t.retryOnMount=!1))},a=t=>{i.useEffect((()=>{t.clearReset()}),[t])},o=t=>{let{result:e,errorResetBoundary:s,throwOnError:i,query:n}=t;return e.isError&&!s.isReset()&&!e.isFetching&&n&&(0,r.G)(i,[e.error,n])}}}]); \ No newline at end of file diff --git a/build/static/js/7922.5b607201.chunk.js b/build/static/js/7922.5b607201.chunk.js deleted file mode 100644 index cc47e3f..0000000 --- a/build/static/js/7922.5b607201.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[7922],{77922:(e,t,o)=>{o.d(t,{A:()=>le});var n=o(98587),a=o(58168),r=o(9950),i=o(72004),l=o(3484),c=o(99269),s=o(95014),p=o(60182),u=o(13292),d=o(59520),g=o(53614);function f(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function h(e,t){for(let o=0;o0&&void 0!==arguments[0]?arguments[0]:{};const{ignoreAccents:t=!0,ignoreCase:o=!0,limit:n,matchFrom:a="any",stringify:r,trim:i=!1}=e;return(e,l)=>{let{inputValue:c,getOptionLabel:s}=l,p=i?c.trim():c;o&&(p=p.toLowerCase()),t&&(p=f(p));const u=p?e.filter((e=>{let n=(r||s)(e);return o&&(n=n.toLowerCase()),t&&(n=f(n)),"start"===a?0===n.indexOf(p):n.indexOf(p)>-1})):e;return"number"===typeof n?u.slice(0,n):u}}(),b=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))},v=[];const x=function(e){const{unstable_isActiveElementInListbox:t=b,unstable_classNamePrefix:o="Mui",autoComplete:n=!1,autoHighlight:i=!1,autoSelect:l=!1,blurOnSelect:c=!1,clearOnBlur:f=!e.freeSolo,clearOnEscape:x=!1,componentName:A="useAutocomplete",defaultValue:y=(e.multiple?v:null),disableClearable:O=!1,disableCloseOnSelect:I=!1,disabled:S,disabledItemsFocusable:C=!1,disableListWrap:k=!1,filterOptions:P=m,filterSelectedOptions:L=!1,freeSolo:w=!1,getOptionDisabled:T,getOptionKey:R,getOptionLabel:N=e=>{var t;return null!=(t=e.label)?t:e},groupBy:M,handleHomeEndKeys:D=!e.freeSolo,id:z,includeInputInList:E=!1,inputValue:F,isOptionEqualToValue:H=(e,t)=>e===t,multiple:W=!1,onChange:j,onClose:V,onHighlightChange:B,onInputChange:G,onOpen:K,open:q,openOnFocus:U=!1,options:_,readOnly:X=!1,selectOnFocus:J=!e.freeSolo,value:Q}=e,Y=(0,s.A)(z);let Z=N;Z=e=>{const t=N(e);return"string"!==typeof t?String(t):t};const $=r.useRef(!1),ee=r.useRef(!0),te=r.useRef(null),oe=r.useRef(null),[ne,ae]=r.useState(null),[re,ie]=r.useState(-1),le=i?0:-1,ce=r.useRef(le),[se,pe]=(0,p.A)({controlled:Q,default:y,name:A}),[ue,de]=(0,p.A)({controlled:F,default:"",name:A,state:"inputValue"}),[ge,fe]=r.useState(!1),he=r.useCallback(((e,t)=>{if(!(W?se.length!L||!(W?se:[se]).some((t=>null!==t&&H(e,t))))),{inputValue:Ae&&ve?"":ue,getOptionLabel:Z}):[],Ie=(0,u.A)({filteredOptions:Oe,value:se,inputValue:ue});r.useEffect((()=>{const e=se!==Ie.value;ge&&!e||w&&!e||he(null,se)}),[se,he,ge,Ie.value,w]);const Se=me&&Oe.length>0&&!X,Ce=(0,d.A)((e=>{-1===e?te.current.focus():ne.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));r.useEffect((()=>{W&&re>se.length-1&&(ie(-1),Ce(-1))}),[se,W,re,Ce]);const ke=(0,d.A)((e=>{let{event:t,index:n,reason:a="auto"}=e;if(ce.current=n,-1===n?te.current.removeAttribute("aria-activedescendant"):te.current.setAttribute("aria-activedescendant","".concat(Y,"-option-").concat(n)),B&&B(t,-1===n?null:Oe[n],a),!oe.current)return;const r=oe.current.querySelector('[role="option"].'.concat(o,"-focused"));r&&(r.classList.remove("".concat(o,"-focused")),r.classList.remove("".concat(o,"-focusVisible")));let i=oe.current;if("listbox"!==oe.current.getAttribute("role")&&(i=oe.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===n)return void(i.scrollTop=0);const l=oe.current.querySelector('[data-option-index="'.concat(n,'"]'));if(l&&(l.classList.add("".concat(o,"-focused")),"keyboard"===a&&l.classList.add("".concat(o,"-focusVisible")),i.scrollHeight>i.clientHeight&&"mouse"!==a&&"touch"!==a)){const e=l,t=i.clientHeight+i.scrollTop,o=e.offsetTop+e.offsetHeight;o>t?i.scrollTop=o-i.clientHeight:e.offsetTop-e.offsetHeight*(M?1.3:0){let{event:t,diff:o,direction:a="next",reason:r="auto"}=e;if(!ye)return;const i=function(e,t){if(!oe.current||e<0||e>=Oe.length)return-1;let o=e;for(;;){const n=oe.current.querySelector('[data-option-index="'.concat(o,'"]')),a=!C&&(!n||n.disabled||"true"===n.getAttribute("aria-disabled"));if(n&&n.hasAttribute("tabindex")&&!a)return o;if(o="next"===t?(o+1)%Oe.length:(o-1+Oe.length)%Oe.length,o===e)return-1}}((()=>{const e=Oe.length-1;if("reset"===o)return le;if("start"===o)return 0;if("end"===o)return e;const t=ce.current+o;return t<0?-1===t&&E?-1:k&&-1!==ce.current||Math.abs(o)>1?0:e:t>e?t===e+1&&E?-1:k||Math.abs(o)>1?e:0:t})(),a);if(ke({index:i,reason:r,event:t}),n&&"reset"!==o)if(-1===i)te.current.value=ue;else{const e=Z(Oe[i]);te.current.value=e;0===e.toLowerCase().indexOf(ue.toLowerCase())&&ue.length>0&&te.current.setSelectionRange(ue.length,e.length)}})),Le=r.useCallback((()=>{if(!ye)return;const e=(()=>{if(-1!==ce.current&&Ie.filteredOptions&&Ie.filteredOptions.length!==Oe.length&&Ie.inputValue===ue&&(W?se.length===Ie.value.length&&Ie.value.every(((e,t)=>Z(se[t])===Z(e))):(e=Ie.value,t=se,(e?Z(e):"")===(t?Z(t):"")))){const e=Ie.filteredOptions[ce.current];if(e)return h(Oe,(t=>Z(t)===Z(e)))}var e,t;return-1})();if(-1!==e)return void(ce.current=e);const t=W?se[0]:se;if(0!==Oe.length&&null!=t){if(oe.current)if(null==t)ce.current>=Oe.length-1?ke({index:Oe.length-1}):ke({index:ce.current});else{const e=Oe[ce.current];if(W&&e&&-1!==h(se,(t=>H(e,t))))return;const o=h(Oe,(e=>H(e,t)));-1===o?Pe({diff:"reset"}):ke({index:o})}}else Pe({diff:"reset"})}),[Oe.length,!W&&se,L,Pe,ke,ye,ue,W]),we=(0,d.A)((e=>{(0,g.A)(oe,e),e&&Le()}));r.useEffect((()=>{Le()}),[Le]);const Te=e=>{me||(be(!0),xe(!0),K&&K(e))},Re=(e,t)=>{me&&(be(!1),V&&V(e,t))},Ne=(e,t,o,n)=>{if(W){if(se.length===t.length&&se.every(((e,o)=>e===t[o])))return}else if(se===t)return;j&&j(e,t,o,n),pe(t)},Me=r.useRef(!1),De=function(e,t){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",a=t;if(W){a=Array.isArray(se)?se.slice():[];const e=h(a,(e=>H(t,e)));-1===e?a.push(t):"freeSolo"!==o&&(a.splice(e,1),n="removeOption")}he(e,a),Ne(e,a,n,{option:t}),I||e&&(e.ctrlKey||e.metaKey)||Re(e,n),(!0===c||"touch"===c&&Me.current||"mouse"===c&&!Me.current)&&te.current.blur()},ze=(e,t)=>{if(!W)return;""===ue&&Re(e,"toggleInput");let o=re;-1===re?""===ue&&"previous"===t&&(o=se.length-1):(o+="next"===t?1:-1,o<0&&(o=0),o===se.length&&(o=-1)),o=function(e,t){if(-1===e)return-1;let o=e;for(;;){if("next"===t&&o===se.length||"previous"===t&&-1===o)return-1;const e=ne.querySelector('[data-tag-index="'.concat(o,'"]'));if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return o;o+="next"===t?1:-1}}(o,t),ie(o),Ce(o)},Ee=e=>{$.current=!0,de(""),G&&G(e,"","clear"),Ne(e,W?[]:null,"clear")},Fe=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==re&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(ie(-1),Ce(-1)),229!==t.which))switch(t.key){case"Home":ye&&D&&(t.preventDefault(),Pe({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":ye&&D&&(t.preventDefault(),Pe({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Pe({diff:-5,direction:"previous",reason:"keyboard",event:t}),Te(t);break;case"PageDown":t.preventDefault(),Pe({diff:5,direction:"next",reason:"keyboard",event:t}),Te(t);break;case"ArrowDown":t.preventDefault(),Pe({diff:1,direction:"next",reason:"keyboard",event:t}),Te(t);break;case"ArrowUp":t.preventDefault(),Pe({diff:-1,direction:"previous",reason:"keyboard",event:t}),Te(t);break;case"ArrowLeft":ze(t,"previous");break;case"ArrowRight":ze(t,"next");break;case"Enter":if(-1!==ce.current&&ye){const e=Oe[ce.current],o=!!T&&T(e);if(t.preventDefault(),o)return;De(t,e,"selectOption"),n&&te.current.setSelectionRange(te.current.value.length,te.current.value.length)}else w&&""!==ue&&!1===Ae&&(W&&t.preventDefault(),De(t,ue,"createOption","freeSolo"));break;case"Escape":ye?(t.preventDefault(),t.stopPropagation(),Re(t,"escape")):x&&(""!==ue||W&&se.length>0)&&(t.preventDefault(),t.stopPropagation(),Ee(t));break;case"Backspace":if(W&&!X&&""===ue&&se.length>0){const e=-1===re?se.length-1:re,o=se.slice();o.splice(e,1),Ne(t,o,"removeOption",{option:se[e]})}break;case"Delete":if(W&&!X&&""===ue&&se.length>0&&-1!==re){const e=re,o=se.slice();o.splice(e,1),Ne(t,o,"removeOption",{option:se[e]})}}},He=e=>{fe(!0),U&&!$.current&&Te(e)},We=e=>{t(oe)?te.current.focus():(fe(!1),ee.current=!0,$.current=!1,l&&-1!==ce.current&&ye?De(e,Oe[ce.current],"blur"):l&&w&&""!==ue?De(e,ue,"blur","freeSolo"):f&&he(e,se),Re(e,"blur"))},je=e=>{const t=e.target.value;ue!==t&&(de(t),xe(!1),G&&G(e,t,"input")),""===t?O||W||Ne(e,null,"clear"):Te(e)},Ve=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));ce.current!==t&&ke({event:e,index:t,reason:"mouse"})},Be=e=>{ke({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Me.current=!0},Ge=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));De(e,Oe[t],"selectOption"),Me.current=!1},Ke=e=>t=>{const o=se.slice();o.splice(e,1),Ne(t,o,"removeOption",{option:se[e]})},qe=e=>{me?Re(e,"toggleInput"):Te(e)},Ue=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==Y&&e.preventDefault()},_e=e=>{e.currentTarget.contains(e.target)&&(te.current.focus(),J&&ee.current&&te.current.selectionEnd-te.current.selectionStart===0&&te.current.select(),ee.current=!1)},Xe=e=>{S||""!==ue&&me||qe(e)};let Je=w&&ue.length>0;Je=Je||(W?se.length>0:null!==se);let Qe=Oe;if(M){new Map;Qe=Oe.reduce(((e,t,o)=>{const n=M(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:o,index:o,group:n,options:[t]}),e}),[])}return S&&ge&&We(),{getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,a.A)({"aria-owns":Se?"".concat(Y,"-listbox"):null},e,{onKeyDown:Fe(e),onMouseDown:Ue,onClick:_e})},getInputLabelProps:()=>({id:"".concat(Y,"-label"),htmlFor:Y}),getInputProps:()=>({id:Y,value:ue,onBlur:We,onFocus:He,onChange:je,onMouseDown:Xe,"aria-activedescendant":ye?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Se?"".concat(Y,"-listbox"):void 0,"aria-expanded":Se,autoComplete:"off",ref:te,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:S}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Ee}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:qe}),getTagProps:e=>{let{index:t}=e;return(0,a.A)({key:t,"data-tag-index":t,tabIndex:-1},!X&&{onDelete:Ke(t)})},getListboxProps:()=>({role:"listbox",id:"".concat(Y,"-listbox"),"aria-labelledby":"".concat(Y,"-label"),ref:we,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:e=>{let{index:t,option:o}=e;var n;const a=(W?se:[se]).some((e=>null!=e&&H(o,e))),r=!!T&&T(o);return{key:null!=(n=null==R?void 0:R(o))?n:Z(o),tabIndex:-1,role:"option",id:"".concat(Y,"-option-").concat(t),onMouseMove:Ve,onClick:Ge,onTouchStart:Be,"data-option-index":t,"aria-disabled":r,"aria-selected":a}},id:Y,inputValue:ue,value:se,dirty:Je,expanded:ye&&ne,popupOpen:ye,focused:ge||-1!==re,anchorEl:ne,setAnchorEl:ae,focusedTag:re,groupedOptions:Qe}};var A=o(1849),y=o(59254),O=o(18463),I=o(89548),S=o(45558),C=o(1614);function k(e){return(0,C.Ay)("MuiListSubheader",e)}(0,S.A)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var P=o(44414);const L=["className","color","component","disableGutters","disableSticky","inset"],w=(0,y.Ay)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,"default"!==o.color&&t["color".concat((0,I.A)(o.color))],!o.disableGutters&&t.gutters,o.inset&&t.inset,!o.disableSticky&&t.sticky]}})((e=>{let{theme:t,ownerState:o}=e;return(0,a.A)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===o.color&&{color:(t.vars||t).palette.primary.main},"inherit"===o.color&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),T=r.forwardRef((function(e,t){const o=(0,O.b)({props:e,name:"MuiListSubheader"}),{className:r,color:c="default",component:s="li",disableGutters:p=!1,disableSticky:u=!1,inset:d=!1}=o,g=(0,n.A)(o,L),f=(0,a.A)({},o,{color:c,component:s,disableGutters:p,disableSticky:u,inset:d}),h=(e=>{const{classes:t,color:o,disableGutters:n,inset:a,disableSticky:r}=e,i={root:["root","default"!==o&&"color".concat((0,I.A)(o)),!n&&"gutters",a&&"inset",!r&&"sticky"]};return(0,l.A)(i,k,t)})(f);return(0,P.jsx)(w,(0,a.A)({as:s,className:(0,i.A)(h.root,r),ref:t,ownerState:f},g))}));T.muiSkipListHighlight=!0;const R=T;var N=o(2235),M=o(25333),D=o(25277),z=o(10465),E=o(63589),F=o(79229),H=o(22797),W=o(88780),j=o(63976);function V(e){return(0,C.Ay)("MuiAutocomplete",e)}const B=(0,S.A)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var G,K,q=o(31506);const U=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],_=["ref"],X=["key"],J=["key"],Q=(0,y.Ay)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{fullWidth:n,hasClearIcon:a,hasPopupIcon:r,inputFocused:i,size:l}=o;return[{["& .".concat(B.tag)]:t.tag},{["& .".concat(B.tag)]:t["tagSize".concat((0,I.A)(l))]},{["& .".concat(B.inputRoot)]:t.inputRoot},{["& .".concat(B.input)]:t.input},{["& .".concat(B.input)]:i&&t.inputFocused},t.root,n&&t.fullWidth,r&&t.hasPopupIcon,a&&t.hasClearIcon]}})({["&.".concat(B.focused," .").concat(B.clearIndicator)]:{visibility:"visible"},"@media (pointer: fine)":{["&:hover .".concat(B.clearIndicator)]:{visibility:"visible"}},["& .".concat(B.tag)]:{margin:3,maxWidth:"calc(100% - 6px)"},["& .".concat(B.inputRoot)]:{[".".concat(B.hasPopupIcon,"&, .").concat(B.hasClearIcon,"&")]:{paddingRight:30},[".".concat(B.hasPopupIcon,".").concat(B.hasClearIcon,"&")]:{paddingRight:56},["& .".concat(B.input)]:{width:0,minWidth:30}},["& .".concat(z.A.root)]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},["& .".concat(z.A.root,".").concat(E.A.sizeSmall)]:{["& .".concat(z.A.input)]:{padding:"2px 4px 3px 0"}},["& .".concat(F.A.root)]:{padding:9,[".".concat(B.hasPopupIcon,"&, .").concat(B.hasClearIcon,"&")]:{paddingRight:39},[".".concat(B.hasPopupIcon,".").concat(B.hasClearIcon,"&")]:{paddingRight:65},["& .".concat(B.input)]:{padding:"7.5px 4px 7.5px 5px"},["& .".concat(B.endAdornment)]:{right:9}},["& .".concat(F.A.root,".").concat(E.A.sizeSmall)]:{paddingTop:6,paddingBottom:6,paddingLeft:6,["& .".concat(B.input)]:{padding:"2.5px 4px 2.5px 8px"}},["& .".concat(H.A.root)]:{paddingTop:19,paddingLeft:8,[".".concat(B.hasPopupIcon,"&, .").concat(B.hasClearIcon,"&")]:{paddingRight:39},[".".concat(B.hasPopupIcon,".").concat(B.hasClearIcon,"&")]:{paddingRight:65},["& .".concat(H.A.input)]:{padding:"7px 4px"},["& .".concat(B.endAdornment)]:{right:9}},["& .".concat(H.A.root,".").concat(E.A.sizeSmall)]:{paddingBottom:1,["& .".concat(H.A.input)]:{padding:"2.5px 4px"}},["& .".concat(E.A.hiddenLabel)]:{paddingTop:8},["& .".concat(H.A.root,".").concat(E.A.hiddenLabel)]:{paddingTop:0,paddingBottom:0,["& .".concat(B.input)]:{paddingTop:16,paddingBottom:17}},["& .".concat(H.A.root,".").concat(E.A.hiddenLabel,".").concat(E.A.sizeSmall)]:{["& .".concat(B.input)]:{paddingTop:8,paddingBottom:9}},["& .".concat(B.input)]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{["& .".concat(B.tag)]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{["& .".concat(B.input)]:{opacity:1}}},{props:{multiple:!0},style:{["& .".concat(B.inputRoot)]:{flexWrap:"wrap"}}}]}),Y=(0,y.Ay)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Z=(0,y.Ay)(M.A,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),$=(0,y.Ay)(M.A,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{let{ownerState:o}=e;return(0,a.A)({},t.popupIndicator,o.popupOpen&&t.popupIndicatorOpen)}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),ee=(0,y.Ay)(A.A,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{["& .".concat(B.option)]:t.option},t.popper,o.disablePortal&&t.popperDisablePortal]}})((e=>{let{theme:t}=e;return{zIndex:(t.vars||t).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}})),te=(0,y.Ay)(N.A,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((e=>{let{theme:t}=e;return(0,a.A)({},t.typography.body1,{overflow:"auto"})})),oe=(0,y.Ay)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),ne=(0,y.Ay)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),ae=(0,y.Ay)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((e=>{let{theme:t}=e;return{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",["& .".concat(B.option)]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},["&.".concat(B.focused)]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["&.".concat(B.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(B.focused)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},["&.".concat(B.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}}}})),re=(0,y.Ay)(R,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),ie=(0,y.Ay)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,["& .".concat(B.option)]:{paddingLeft:24}}),le=r.forwardRef((function(e,t){var o,c,s,p;const u=(0,O.b)({props:e,name:"MuiAutocomplete"}),{autoComplete:d=!1,autoHighlight:g=!1,autoSelect:f=!1,blurOnSelect:h=!1,ChipProps:m,className:b,clearIcon:v=G||(G=(0,P.jsx)(W.A,{fontSize:"small"})),clearOnBlur:y=!u.freeSolo,clearOnEscape:S=!1,clearText:C="Clear",closeText:k="Close",componentsProps:L={},defaultValue:w=(u.multiple?[]:null),disableClearable:T=!1,disableCloseOnSelect:R=!1,disabled:M=!1,disabledItemsFocusable:z=!1,disableListWrap:E=!1,disablePortal:F=!1,filterSelectedOptions:H=!1,forcePopupIcon:B="auto",freeSolo:le=!1,fullWidth:ce=!1,getLimitTagsText:se=e=>"+".concat(e),getOptionLabel:pe,groupBy:ue,handleHomeEndKeys:de=!u.freeSolo,includeInputInList:ge=!1,limitTags:fe=-1,ListboxComponent:he="ul",ListboxProps:me,loading:be=!1,loadingText:ve="Loading\u2026",multiple:xe=!1,noOptionsText:Ae="No options",openOnFocus:ye=!1,openText:Oe="Open",PaperComponent:Ie=N.A,PopperComponent:Se=A.A,popupIcon:Ce=K||(K=(0,P.jsx)(j.A,{})),readOnly:ke=!1,renderGroup:Pe,renderInput:Le,renderOption:we,renderTags:Te,selectOnFocus:Re=!u.freeSolo,size:Ne="medium",slotProps:Me={}}=u,De=(0,n.A)(u,U),{getRootProps:ze,getInputProps:Ee,getInputLabelProps:Fe,getPopupIndicatorProps:He,getClearProps:We,getTagProps:je,getListboxProps:Ve,getOptionProps:Be,value:Ge,dirty:Ke,expanded:qe,id:Ue,popupOpen:_e,focused:Xe,focusedTag:Je,anchorEl:Qe,setAnchorEl:Ye,inputValue:Ze,groupedOptions:$e}=x((0,a.A)({},u,{componentName:"Autocomplete"})),et=!T&&!M&&Ke&&!ke,tt=(!le||!0===B)&&!1!==B,{onMouseDown:ot}=Ee(),{ref:nt}=null!=me?me:{},at=Ve(),{ref:rt}=at,it=(0,n.A)(at,_),lt=(0,q.A)(rt,nt),ct=pe||(e=>{var t;return null!=(t=e.label)?t:e}),st=(0,a.A)({},u,{disablePortal:F,expanded:qe,focused:Xe,fullWidth:ce,getOptionLabel:ct,hasClearIcon:et,hasPopupIcon:tt,inputFocused:-1===Je,popupOpen:_e,size:Ne}),pt=(e=>{const{classes:t,disablePortal:o,expanded:n,focused:a,fullWidth:r,hasClearIcon:i,hasPopupIcon:c,inputFocused:s,popupOpen:p,size:u}=e,d={root:["root",n&&"expanded",a&&"focused",r&&"fullWidth",i&&"hasClearIcon",c&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag","tagSize".concat((0,I.A)(u))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",o&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,l.A)(d,V,t)})(st);let ut;if(xe&&Ge.length>0){const e=e=>(0,a.A)({className:pt.tag,disabled:M},je(e));ut=Te?Te(Ge,e,st):Ge.map(((t,o)=>{const r=e({index:o}),{key:i}=r,l=(0,n.A)(r,X);return(0,P.jsx)(D.A,(0,a.A)({label:ct(t),size:Ne},l,m),i)}))}if(fe>-1&&Array.isArray(ut)){const e=ut.length-fe;!Xe&&e>0&&(ut=ut.splice(0,fe),ut.push((0,P.jsx)("span",{className:pt.tag,children:se(e)},ut.length)))}const dt=Pe||(e=>(0,P.jsxs)("li",{children:[(0,P.jsx)(re,{className:pt.groupLabel,ownerState:st,component:"div",children:e.group}),(0,P.jsx)(ie,{className:pt.groupUl,ownerState:st,children:e.children})]},e.key)),gt=we||((e,t)=>{const{key:o}=e,r=(0,n.A)(e,J);return(0,P.jsx)("li",(0,a.A)({},r,{children:ct(t)}),o)}),ft=(e,t)=>{const o=Be({option:e,index:t});return gt((0,a.A)({},o,{className:pt.option}),e,{selected:o["aria-selected"],index:t,inputValue:Ze},st)},ht=null!=(o=Me.clearIndicator)?o:L.clearIndicator,mt=null!=(c=Me.paper)?c:L.paper,bt=null!=(s=Me.popper)?s:L.popper,vt=null!=(p=Me.popupIndicator)?p:L.popupIndicator;return(0,P.jsxs)(r.Fragment,{children:[(0,P.jsx)(Q,(0,a.A)({ref:t,className:(0,i.A)(pt.root,b),ownerState:st},ze(De),{children:Le({id:Ue,disabled:M,fullWidth:!0,size:"small"===Ne?"small":void 0,InputLabelProps:Fe(),InputProps:(0,a.A)({ref:Ye,className:pt.inputRoot,startAdornment:ut,onClick:e=>{e.target===e.currentTarget&&ot(e)}},(et||tt)&&{endAdornment:(0,P.jsxs)(Y,{className:pt.endAdornment,ownerState:st,children:[et?(0,P.jsx)(Z,(0,a.A)({},We(),{"aria-label":C,title:C,ownerState:st},ht,{className:(0,i.A)(pt.clearIndicator,null==ht?void 0:ht.className),children:v})):null,tt?(0,P.jsx)($,(0,a.A)({},He(),{disabled:M,"aria-label":_e?k:Oe,title:_e?k:Oe,ownerState:st},vt,{className:(0,i.A)(pt.popupIndicator,null==vt?void 0:vt.className),children:Ce})):null]})}),inputProps:(0,a.A)({className:pt.input,disabled:M,readOnly:ke},Ee())})})),Qe?(0,P.jsx)(ee,(0,a.A)({as:Se,disablePortal:F,style:{width:Qe?Qe.clientWidth:null},ownerState:st,role:"presentation",anchorEl:Qe,open:_e},bt,{className:(0,i.A)(pt.popper,null==bt?void 0:bt.className),children:(0,P.jsxs)(te,(0,a.A)({ownerState:st,as:Ie},mt,{className:(0,i.A)(pt.paper,null==mt?void 0:mt.className),children:[be&&0===$e.length?(0,P.jsx)(oe,{className:pt.loading,ownerState:st,children:ve}):null,0!==$e.length||le||be?null:(0,P.jsx)(ne,{className:pt.noOptions,ownerState:st,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:Ae}),$e.length>0?(0,P.jsx)(ae,(0,a.A)({as:he,className:pt.listbox,ownerState:st},it,me,{ref:lt,children:$e.map(((e,t)=>ue?dt({key:e.key,group:e.group,children:e.options.map(((t,o)=>ft(t,e.index+o)))}):ft(e,t)))})):null]}))})):null]})}))}}]); \ No newline at end of file diff --git a/build/static/js/7980.893651c1.chunk.js b/build/static/js/7980.893651c1.chunk.js deleted file mode 100644 index 28ff430..0000000 --- a/build/static/js/7980.893651c1.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[7980],{5536:(e,o,r)=>{r.d(o,{A:()=>t});const t=r(9950).createContext({})},21427:(e,o,r)=>{r.d(o,{A:()=>n,f:()=>i});var t=r(45558),a=r(1614);function i(e){return(0,a.Ay)("MuiDialog",e)}const n=(0,t.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"])},23025:(e,o,r)=>{r.d(o,{A:()=>n,t:()=>i});var t=r(45558),a=r(1614);function i(e){return(0,a.Ay)("MuiDialogTitle",e)}const n=(0,t.A)("MuiDialogTitle",["root"])},28170:(e,o,r)=>{r.d(o,{A:()=>v});var t=r(98587),a=r(58168),i=r(9950),n=r(72004),l=r(3484),s=r(59254),c=r(18463),d=r(45558),p=r(1614);function u(e){return(0,p.Ay)("MuiDialogContent",e)}(0,d.A)("MuiDialogContent",["root","dividers"]);var m=r(23025),h=r(44414);const A=["className","dividers"],x=(0,s.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:r}=e;return[o.root,r.dividers&&o.dividers]}})((e=>{let{theme:o,ownerState:r}=e;return(0,a.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},r.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((o.vars||o).palette.divider),borderBottom:"1px solid ".concat((o.vars||o).palette.divider)}:{[".".concat(m.A.root," + &")]:{paddingTop:0}})})),v=i.forwardRef((function(e,o){const r=(0,c.b)({props:e,name:"MuiDialogContent"}),{className:i,dividers:s=!1}=r,d=(0,t.A)(r,A),p=(0,a.A)({},r,{dividers:s}),m=(e=>{const{classes:o,dividers:r}=e,t={root:["root",r&&"dividers"]};return(0,l.A)(t,u,o)})(p);return(0,h.jsx)(x,(0,a.A)({className:(0,n.A)(m.root,i),ownerState:p,ref:o},d))}))},40033:(e,o,r)=>{r.d(o,{A:()=>x});var t=r(58168),a=r(98587),i=r(9950),n=r(72004),l=r(3484),s=r(82053),c=r(59254),d=r(18463),p=r(23025),u=r(5536),m=r(44414);const h=["className","id"],A=(0,c.Ay)(s.A,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,o)=>o.root})({padding:"16px 24px",flex:"0 0 auto"}),x=i.forwardRef((function(e,o){const r=(0,d.b)({props:e,name:"MuiDialogTitle"}),{className:s,id:c}=r,x=(0,a.A)(r,h),v=r,f=(e=>{const{classes:o}=e;return(0,l.A)({root:["root"]},p.t,o)})(v),{titleId:b=c}=i.useContext(u.A);return(0,m.jsx)(A,(0,t.A)({component:"h2",className:(0,n.A)(f.root,s),ownerState:v,ref:o,variant:"h6",id:null!=c?c:b},x))}))},96583:(e,o,r)=>{r.d(o,{A:()=>y});var t=r(98587),a=r(58168),i=r(9950),n=r(72004),l=r(3484),s=r(95014),c=r(89548),d=r(29120),p=r(57191),u=r(2235),m=r(18463),h=r(59254),A=r(21427),x=r(5536),v=r(55158),f=r(14857),b=r(44414);const g=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],W=(0,h.Ay)(v.A,{name:"MuiDialog",slot:"Backdrop",overrides:(e,o)=>o.backdrop})({zIndex:-1}),k=(0,h.Ay)(d.A,{name:"MuiDialog",slot:"Root",overridesResolver:(e,o)=>o.root})({"@media print":{position:"absolute !important"}}),w=(0,h.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,o)=>{const{ownerState:r}=e;return[o.container,o["scroll".concat((0,c.A)(r.scroll))]]}})((e=>{let{ownerState:o}=e;return(0,a.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===o.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===o.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),S=(0,h.Ay)(u.A,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,o)=>{const{ownerState:r}=e;return[o.paper,o["scrollPaper".concat((0,c.A)(r.scroll))],o["paperWidth".concat((0,c.A)(String(r.maxWidth)))],r.fullWidth&&o.paperFullWidth,r.fullScreen&&o.paperFullScreen]}})((e=>{let{theme:o,ownerState:r}=e;return(0,a.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&{maxWidth:"px"===o.breakpoints.unit?Math.max(o.breakpoints.values.xs,444):"max(".concat(o.breakpoints.values.xs).concat(o.breakpoints.unit,", 444px)"),["&.".concat(A.A.paperScrollBody)]:{[o.breakpoints.down(Math.max(o.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},r.maxWidth&&"xs"!==r.maxWidth&&{maxWidth:"".concat(o.breakpoints.values[r.maxWidth]).concat(o.breakpoints.unit),["&.".concat(A.A.paperScrollBody)]:{[o.breakpoints.down(o.breakpoints.values[r.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(A.A.paperScrollBody)]:{margin:0,maxWidth:"100%"}})})),y=i.forwardRef((function(e,o){const r=(0,m.b)({props:e,name:"MuiDialog"}),d=(0,f.A)(),h={enter:d.transitions.duration.enteringScreen,exit:d.transitions.duration.leavingScreen},{"aria-describedby":v,"aria-labelledby":y,BackdropComponent:C,BackdropProps:D,children:M,className:P,disableEscapeKeyDown:B=!1,fullScreen:R=!1,fullWidth:N=!1,maxWidth:T="sm",onBackdropClick:j,onClick:F,onClose:E,open:I,PaperComponent:K=u.A,PaperProps:Y={},scroll:_="paper",TransitionComponent:X=p.A,transitionDuration:H=h,TransitionProps:z}=r,L=(0,t.A)(r,g),O=(0,a.A)({},r,{disableEscapeKeyDown:B,fullScreen:R,fullWidth:N,maxWidth:T,scroll:_}),q=(e=>{const{classes:o,scroll:r,maxWidth:t,fullWidth:a,fullScreen:i}=e,n={root:["root"],container:["container","scroll".concat((0,c.A)(r))],paper:["paper","paperScroll".concat((0,c.A)(r)),"paperWidth".concat((0,c.A)(String(t))),a&&"paperFullWidth",i&&"paperFullScreen"]};return(0,l.A)(n,A.f,o)})(O),G=i.useRef(),J=(0,s.A)(y),Q=i.useMemo((()=>({titleId:J})),[J]);return(0,b.jsx)(k,(0,a.A)({className:(0,n.A)(q.root,P),closeAfterTransition:!0,components:{Backdrop:W},componentsProps:{backdrop:(0,a.A)({transitionDuration:H,as:C},D)},disableEscapeKeyDown:B,onClose:E,open:I,ref:o,onClick:e=>{F&&F(e),G.current&&(G.current=null,j&&j(e),E&&E(e,"backdropClick"))},ownerState:O},L,{children:(0,b.jsx)(X,(0,a.A)({appear:!0,in:I,timeout:H,role:"presentation"},z,{children:(0,b.jsx)(w,{className:(0,n.A)(q.container),onMouseDown:e=>{G.current=e.target===e.currentTarget},ownerState:O,children:(0,b.jsx)(S,(0,a.A)({as:K,elevation:24,role:"dialog","aria-describedby":v,"aria-labelledby":J},Y,{className:(0,n.A)(q.paper,Y.className),ownerState:O,children:(0,b.jsx)(x.A.Provider,{value:Q,children:M})}))})}))}))}))}}]); \ No newline at end of file diff --git a/build/static/js/8012.0a91258c.chunk.js b/build/static/js/8012.0a91258c.chunk.js new file mode 100644 index 0000000..5ac2375 --- /dev/null +++ b/build/static/js/8012.0a91258c.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[8012],{25045:(t,e,s)=>{s.d(e,{BH:()=>A,Fu:()=>Tt,KD:()=>K,Ro:()=>Wt,i3:()=>ve,pH:()=>ct,u6:()=>x});var i,n,o=s(65908),r=s(85672),a=s(40829);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function h(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,e||"default");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}function p(t,e,s){return(e=h(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}function c(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var u=c(n?i:(n=1,i=function(t,e,s,i,n,o,r,a){if(!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=[s,i,n,o,r,a],p=0;(l=new Error(e.replace(/%s/g,(function(){return h[p++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}})),d=(0,r.createContext)(null);function g(t,e,s,i){var n,o,r={};return n=t,o=(t,n)=>{var o=s[n];o!==e[n]&&(r[n]=o,t(i,o))},Object.keys(n).forEach((t=>o(n[t],t))),r}function m(t,e,s){var i,n,o,r=(i=s,n=function(s,i,n){return"function"===typeof t[n]&&s.push(google.maps.event.addListener(e,i,t[n])),s},o=[],Object.keys(i).reduce((function(t,e){return n(t,i[e],e)}),o));return r}function v(t){google.maps.event.removeListener(t)}function f(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(v)}function y(t){var{updaterMap:e,eventMap:s,prevProps:i,nextProps:n,instance:o}=t,r=m(n,o,s);return g(e,i,n,o),r}var b={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},C={extraMapTypes(t,e){e.forEach((function(e,s){t.mapTypes.set(String(s),e)}))},center(t,e){t.setCenter(e)},clickableIcons(t,e){t.setClickableIcons(e)},heading(t,e){t.setHeading(e)},mapTypeId(t,e){t.setMapTypeId(e)},options(t,e){t.setOptions(e)},streetView(t,e){t.setStreetView(e)},tilt(t,e){t.setTilt(e)},zoom(t,e){t.setZoom(e)}};class x extends r.PureComponent{constructor(){super(...arguments),p(this,"state",{map:null}),p(this,"registeredEvents",[]),p(this,"mapRef",null),p(this,"getInstance",(()=>null===this.mapRef?null:new google.maps.Map(this.mapRef,this.props.options))),p(this,"panTo",(t=>{var e=this.getInstance();e&&e.panTo(t)})),p(this,"setMapCallback",(()=>{null!==this.state.map&&this.props.onLoad&&this.props.onLoad(this.state.map)})),p(this,"getRef",(t=>{this.mapRef=t}))}componentDidMount(){var t=this.getInstance();this.registeredEvents=y({updaterMap:C,eventMap:b,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{map:t}}),this.setMapCallback)}componentDidUpdate(t){null!==this.state.map&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:C,eventMap:b,prevProps:t,nextProps:this.props,instance:this.state.map}))}componentWillUnmount(){null!==this.state.map&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),f(this.registeredEvents))}render(){return(0,o.jsx)("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName,children:(0,o.jsx)(d.Provider,{value:this.state.map,children:null!==this.state.map?this.props.children:null})})}}function w(t,e,s,i,n,o,r){try{var a=t[o](r),l=a.value}catch(t){return void s(t)}a.done?e(l):Promise.resolve(l).then(i,n)}function P(t){return function(){var e=this,s=arguments;return new Promise((function(i,n){var o=t.apply(e,s);function r(t){w(o,i,n,r,a,"next",t)}function a(t){w(o,i,n,r,a,"throw",t)}r(void 0)}))}}function M(t){var{googleMapsApiKey:e,googleMapsClientId:s,version:i="weekly",language:n,region:o,libraries:r,channel:a,mapIds:l,authReferrerPolicy:h,apiUrl:p="https://maps.googleapis.com"}=t,c=[];return u(e&&s||!(e&&s),"You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time."),e?c.push("key=".concat(e)):s&&c.push("client=".concat(s)),i&&c.push("v=".concat(i)),n&&c.push("language=".concat(n)),o&&c.push("region=".concat(o)),r&&r.length&&c.push("libraries=".concat(r.sort().join(","))),a&&c.push("channel=".concat(a)),l&&l.length&&c.push("map_ids=".concat(l.join(","))),h&&c.push("auth_referrer_policy=".concat(h)),c.push("loading=async"),c.push("callback=initMap"),"".concat(p,"/maps/api/js?").concat(c.join("&"))}var O="undefined"!==typeof document;function k(t){var{url:e,id:s,nonce:i}=t;return O?new Promise((function(t,n){var o=document.getElementById(s),r=window;if(o){var a=o.getAttribute("data-state");if(o.src===e&&"error"!==a){if("ready"===a)return t(s);var l=r.initMap,h=o.onerror;return r.initMap=function(){l&&l(),t(s)},void(o.onerror=function(t){h&&h(t),n(t)})}o.remove()}var p=document.createElement("script");p.type="text/javascript",p.src=e,p.id=s,p.async=!0,p.nonce=i||"",p.onerror=function(t){p.setAttribute("data-state","error"),n(t)},r.initMap=function(){p.setAttribute("data-state","ready"),t(s)},document.head.appendChild(p)})).catch((t=>{throw console.error("injectScript error: ",t),t})):Promise.reject(new Error("document is undefined"))}function L(t){var e=t.href;return!(!e||0!==e.indexOf("https://fonts.googleapis.com/css?family=Roboto")&&0!==e.indexOf("https://fonts.googleapis.com/css?family=Google+Sans+Text"))||("style"===t.tagName.toLowerCase()&&t.styleSheet&&t.styleSheet.cssText&&0===t.styleSheet.cssText.replace("\r\n","").indexOf(".gm-style")?(t.styleSheet.cssText="",!0):"style"===t.tagName.toLowerCase()&&t.innerHTML&&0===t.innerHTML.replace("\r\n","").indexOf(".gm-style")?(t.innerHTML="",!0):"style"===t.tagName.toLowerCase()&&!t.styleSheet&&!t.innerHTML)}function E(){var t=document.getElementsByTagName("head")[0];if(t){var e=t.insertBefore.bind(t);t.insertBefore=function(s,i){return L(s)||Reflect.apply(e,t,[s,i]),s};var s=t.appendChild.bind(t);t.appendChild=function(e){return L(e)||Reflect.apply(s,t,[e]),e}}}var S=!1;function I(){return(0,o.jsx)("div",{children:"Loading..."})}var j,D={id:"script-loader",version:"weekly"};class B extends r.PureComponent{constructor(){super(...arguments),p(this,"check",null),p(this,"state",{loaded:!1}),p(this,"cleanupCallback",(()=>{delete window.google.maps,this.injectScript()})),p(this,"isCleaningUp",P((function*(){return new Promise((function(t){if(S){if(O)var e=window.setInterval((function(){S||(window.clearInterval(e),t())}),1)}else t()}))}))),p(this,"cleanup",(()=>{S=!0;var t=document.getElementById(this.props.id);t&&t.parentNode&&t.parentNode.removeChild(t),Array.prototype.slice.call(document.getElementsByTagName("script")).filter((function(t){return"string"===typeof t.src&&t.src.includes("maps.googleapis")})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)})),Array.prototype.slice.call(document.getElementsByTagName("link")).filter((function(t){return"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"===t.href})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)})),Array.prototype.slice.call(document.getElementsByTagName("style")).filter((function(t){return void 0!==t.innerText&&t.innerText.length>0&&t.innerText.includes(".gm-")})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))})),p(this,"injectScript",(()=>{this.props.preventGoogleFontsLoading&&E(),u(!!this.props.id,'LoadScript requires "id" prop to be a string: %s',this.props.id),k({id:this.props.id,nonce:this.props.nonce,url:M(this.props)}).then((()=>{this.props.onLoad&&this.props.onLoad(),this.setState((function(){return{loaded:!0}}))})).catch((t=>{this.props.onError&&this.props.onError(t),console.error("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (".concat(this.props.googleMapsApiKey||"-",") or Client ID (").concat(this.props.googleMapsClientId||"-",") to \n Otherwise it is a Network issue.\n "))}))})),p(this,"getRef",(t=>{this.check=t}))}componentDidMount(){if(O){if(window.google&&window.google.maps&&!S)return void console.error("google api is already presented");this.isCleaningUp().then(this.injectScript).catch((function(t){console.error("Error at injecting script after cleaning up: ",t)}))}}componentDidUpdate(t){this.props.libraries!==t.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),O&&t.language!==this.props.language&&(this.cleanup(),this.setState((function(){return{loaded:!1}}),this.cleanupCallback))}componentWillUnmount(){if(O){this.cleanup();window.setTimeout((()=>{this.check||(delete window.google,S=!1)}),1),this.props.onUnmount&&this.props.onUnmount()}}render(){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{ref:this.getRef}),this.state.loaded?this.props.children:this.props.loadingElement||(0,o.jsx)(I,{})]})}}function T(t,e){if(null==t)return{};var s,i,n=function(t,e){if(null==t)return{};var s={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.includes(i))continue;s[i]=t[i]}return s}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i{v.current=!1}}),[]),(0,r.useEffect)((function(){O&&p&&E()}),[p]),(0,r.useEffect)((function(){f&&u(!!window.google,"useLoadScript was marked as loaded, but window.google is not present. Something went wrong.")}),[f]);var x=M({version:s,googleMapsApiKey:n,googleMapsClientId:o,language:a,region:l,libraries:h,channel:c,mapIds:d,authReferrerPolicy:g,apiUrl:m});(0,r.useEffect)((function(){function t(){v.current&&(y(!0),j=x)}O&&(window.google&&window.google.maps&&j===x?t():k({id:e,url:x,nonce:i}).then(t).catch((function(t){v.current&&C(t),console.warn("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (".concat(n||"-",") or Client ID (").concat(o||"-",")\n Otherwise it is a Network issue.\n ")),console.error(t)})))}),[e,x,i]);var w=(0,r.useRef)(void 0);return(0,r.useEffect)((function(){w.current&&h!==w.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),w.current=h}),[h]),{isLoaded:f,loadError:b,url:x}}(a);return(0,r.useEffect)((function(){l&&"function"===typeof s&&s()}),[l,s]),(0,r.useEffect)((function(){h&&"function"===typeof i&&i(h)}),[h,i]),(0,r.useEffect)((function(){return()=>{n&&n()}}),[n]),l?o:e||U}var A=(0,r.memo)(z);function W(t,e,s,i){return new(s||(s=Promise))((function(e,n){function o(t){try{a(i.next(t))}catch(e){n(e)}}function r(t){try{a(i.throw(t))}catch(e){n(e)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof s?i:new s((function(t){t(i)}))).then(o,r)}a((i=i.apply(t,[])).next())}))}function _(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}"function"===typeof SuppressedError&&SuppressedError;var V,H=function t(e,s){if(e===s)return!0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return!1;var i,n,o;if(Array.isArray(e)){if((i=e.length)!=s.length)return!1;for(n=i;0!==n--;)if(!t(e[n],s[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===s.toString();if((i=(o=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(n=i;0!==n--;)if(!Object.prototype.hasOwnProperty.call(s,o[n]))return!1;for(n=i;0!==n--;){var r=o[n];if(!t(e[r],s[r]))return!1}return!0}return e!==e&&s!==s},N=_(H),Z="__googleMapsScriptId";!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(V||(V={}));class G{constructor(t){var{apiKey:e,authReferrerPolicy:s,channel:i,client:n,id:o=Z,language:r,libraries:a=[],mapIds:l,nonce:h,region:p,retries:c=3,url:u="https://maps.googleapis.com/maps/api/js",version:d}=t;if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=s,this.channel=i,this.client=n,this.id=o||Z,this.language=r,this.libraries=a,this.mapIds=l,this.nonce=h,this.region=p,this.retries=c,this.url=u,this.version=d,G.instance){if(!N(this.options,G.instance.options))throw new Error("Loader must not be called again with different options. ".concat(JSON.stringify(this.options)," !== ").concat(JSON.stringify(G.instance.options)));return G.instance}G.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?V.FAILURE:this.done?V.SUCCESS:this.loading?V.LOADING:V.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){var t=this.url;return t+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(t+="&key=".concat(this.apiKey)),this.channel&&(t+="&channel=".concat(this.channel)),this.client&&(t+="&client=".concat(this.client)),this.libraries.length>0&&(t+="&libraries=".concat(this.libraries.join(","))),this.language&&(t+="&language=".concat(this.language)),this.region&&(t+="®ion=".concat(this.region)),this.version&&(t+="&v=".concat(this.version)),this.mapIds&&(t+="&map_ids=".concat(this.mapIds.join(","))),this.authReferrerPolicy&&(t+="&auth_referrer_policy=".concat(this.authReferrerPolicy)),t}deleteScript(){var t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((t,e)=>{this.loadCallback((s=>{s?e(s.error):t(window.google)}))}))}importLibrary(t){return this.execute(),google.maps.importLibrary(t)}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){var t,e;if(document.getElementById(this.id))this.callback();else{var s={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(s).forEach((t=>!s[t]&&delete s[t])),(null===(e=null===(t=null===window||void 0===window?void 0:window.google)||void 0===t?void 0:t.maps)||void 0===e?void 0:e.importLibrary)||(t=>{var e,s,i,n="The Google Maps JavaScript API",o="google",r="importLibrary",a="__ib__",l=document,h=window,p=(h=h[o]||(h[o]={})).maps||(h.maps={}),c=new Set,u=new URLSearchParams,d=()=>e||(e=new Promise(((r,h)=>W(this,0,void 0,(function*(){var d;for(i in yield s=l.createElement("script"),s.id=this.id,u.set("libraries",[...c]+""),t)u.set(i.replace(/[A-Z]/g,(t=>"_"+t[0].toLowerCase())),t[i]);u.set("callback",o+".maps."+a),s.src=this.url+"?"+u,p[a]=r,s.onerror=()=>e=h(Error(n+" could not load.")),s.nonce=this.nonce||(null===(d=l.querySelector("script[nonce]"))||void 0===d?void 0:d.nonce)||"",l.head.append(s)})))));p[r]?console.warn(n+" only loads once. Ignoring:",t):p[r]=function(t){for(var e=arguments.length,s=new Array(e>1?e-1:0),i=1;ip[r](t,...s)))}})(s);var i=this.libraries.map((t=>this.importLibrary(t)));i.length||i.push(this.importLibrary("core")),Promise.all(i).then((()=>this.callback()),(t=>{var e=new ErrorEvent("error",{error:t});this.loadErrorCallback(e)}))}}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){var e=this.errors.length*Math.pow(2,this.errors.length);console.error("Failed to load Google Maps script, retrying in ".concat(e," ms.")),setTimeout((()=>{this.deleteScript(),this.setScript()}),e)}else this.onerrorEvent=t,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((t=>{t(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),!this.loading)if(this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader. This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading=!0,this.setScript()}}}var F=["maps"];function K(t){var{id:e=D.id,version:s=D.version,nonce:i,googleMapsApiKey:n,language:o,region:a,libraries:l=F,preventGoogleFontsLoading:h,mapIds:p,authReferrerPolicy:c}=t,u=(0,r.useRef)(!1),[d,g]=(0,r.useState)(!1),[m,v]=(0,r.useState)(void 0);(0,r.useEffect)((function(){return u.current=!0,()=>{u.current=!1}}),[]);var f=(0,r.useMemo)((()=>new G({id:e,apiKey:n,version:s,libraries:l,language:o||"en",region:a||"US",mapIds:p||[],nonce:i||"",authReferrerPolicy:c||"origin"})),[e,n,s,l,o,a,p,i,c]);(0,r.useEffect)((function(){d||f.load().then((()=>{u.current&&g(!0)})).catch((t=>{v(t)}))}),[]),(0,r.useEffect)((()=>{O&&h&&E()}),[h]);var y=(0,r.useRef)();return(0,r.useEffect)((()=>{y.current&&l!==y.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),y.current=l}),[l]),{isLoaded:d,loadError:m}}function Y(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function q(t){for(var e=1;e{null!==this.state.trafficLayer&&this.props.onLoad&&this.props.onLoad(this.state.trafficLayer)})),p(this,"registeredEvents",[])}componentDidMount(){var t=new google.maps.TrafficLayer(q(q({},this.props.options),{},{map:this.context}));this.registeredEvents=y({updaterMap:$,eventMap:J,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{trafficLayer:t}}),this.setTrafficLayerCallback)}componentDidUpdate(t){null!==this.state.trafficLayer&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:$,eventMap:J,prevProps:t,nextProps:this.props,instance:this.state.trafficLayer}))}componentWillUnmount(){null!==this.state.trafficLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),f(this.registeredEvents),this.state.trafficLayer.setMap(null))}render(){return null}}p(X,"contextType",d);class Q extends r.PureComponent{constructor(){super(...arguments),p(this,"state",{bicyclingLayer:null}),p(this,"setBicyclingLayerCallback",(()=>{null!==this.state.bicyclingLayer&&(this.state.bicyclingLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.bicyclingLayer))}))}componentDidMount(){var t=new google.maps.BicyclingLayer;this.setState((()=>({bicyclingLayer:t})),this.setBicyclingLayerCallback)}componentWillUnmount(){null!==this.state.bicyclingLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))}render(){return null}}p(Q,"contextType",d);class tt extends r.PureComponent{constructor(){super(...arguments),p(this,"state",{transitLayer:null}),p(this,"setTransitLayerCallback",(()=>{null!==this.state.transitLayer&&(this.state.transitLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.transitLayer))}))}componentDidMount(){var t=new google.maps.TransitLayer;this.setState((function(){return{transitLayer:t}}),this.setTransitLayerCallback)}componentWillUnmount(){null!==this.state.transitLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))}render(){return null}}function et(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function st(t){for(var e=1;e{null!==this.state.drawingManager&&this.props.onLoad&&this.props.onLoad(this.state.drawingManager)})),u(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing)}componentDidMount(){var t=new google.maps.drawing.DrawingManager(st(st({},this.props.options),{},{map:this.context}));this.registeredEvents=y({updaterMap:nt,eventMap:it,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{drawingManager:t}}),this.setDrawingManagerCallback)}componentDidUpdate(t){null!==this.state.drawingManager&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:nt,eventMap:it,prevProps:t,nextProps:this.props,instance:this.state.drawingManager}))}componentWillUnmount(){null!==this.state.drawingManager&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),f(this.registeredEvents),this.state.drawingManager.setMap(null))}render(){return null}}function rt(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function at(t){for(var e=1;e{if(!(0,r.isValidElement)(t))return t;var e=t;return(0,r.cloneElement)(e,{anchor:this.marker})})):null)||null}}p(ct,"contextType",d);var ut=function(){function t(e,s){e.getClusterer().extend(t,google.maps.OverlayView),this.cluster=e,this.clusterClassName=this.cluster.getClusterer().getClusterClass(),this.className=this.clusterClassName,this.styles=s,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.cMouseDownInCluster=null,this.cDraggingMapByCluster=null,this.timeOut=null,this.setMap(e.getMap()),this.onBoundsChanged=this.onBoundsChanged.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onClick=this.onClick.bind(this),this.onMouseOver=this.onMouseOver.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.onAdd=this.onAdd.bind(this),this.onRemove=this.onRemove.bind(this),this.draw=this.draw.bind(this),this.hide=this.hide.bind(this),this.show=this.show.bind(this),this.useStyle=this.useStyle.bind(this),this.setCenter=this.setCenter.bind(this),this.getPosFromLatLng=this.getPosFromLatLng.bind(this)}return t.prototype.onBoundsChanged=function(){this.cDraggingMapByCluster=this.cMouseDownInCluster},t.prototype.onMouseDown=function(){this.cMouseDownInCluster=!0,this.cDraggingMapByCluster=!1},t.prototype.onClick=function(t){if(this.cMouseDownInCluster=!1,!this.cDraggingMapByCluster){var e=this.cluster.getClusterer();if(google.maps.event.trigger(e,"click",this.cluster),google.maps.event.trigger(e,"clusterclick",this.cluster),e.getZoomOnClick()){var s=e.getMaxZoom(),i=this.cluster.getBounds(),n=e.getMap();null!==n&&"fitBounds"in n&&n.fitBounds(i),this.timeOut=window.setTimeout((function(){var t=e.getMap();if(null!==t){"fitBounds"in t&&t.fitBounds(i);var n=t.getZoom()||0;null!==s&&n>s&&t.setZoom(s+1)}}),100)}t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()}},t.prototype.onMouseOver=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseover",this.cluster)},t.prototype.onMouseOut=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseout",this.cluster)},t.prototype.onAdd=function(){var t;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),null===(t=this.getPanes())||void 0===t||t.overlayMouseTarget.appendChild(this.div);var e=this.getMap();null!==e&&(this.boundsChangedListener=google.maps.event.addListener(e,"bounds_changed",this.onBoundsChanged),this.div.addEventListener("mousedown",this.onMouseDown),this.div.addEventListener("click",this.onClick),this.div.addEventListener("mouseover",this.onMouseOver),this.div.addEventListener("mouseout",this.onMouseOut))},t.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),null!==this.boundsChangedListener&&google.maps.event.removeListener(this.boundsChangedListener),this.div.removeEventListener("mousedown",this.onMouseDown),this.div.removeEventListener("click",this.onClick),this.div.removeEventListener("mouseover",this.onMouseOver),this.div.removeEventListener("mouseout",this.onMouseOut),this.div.parentNode.removeChild(this.div),null!==this.timeOut&&(window.clearTimeout(this.timeOut),this.timeOut=null),this.div=null)},t.prototype.draw=function(){if(this.visible&&null!==this.div&&this.center){var t=this.getPosFromLatLng(this.center);this.div.style.top=null!==t?"".concat(t.y,"px"):"0",this.div.style.left=null!==t?"".concat(t.x,"px"):"0"}},t.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},t.prototype.show=function(){var t,e,s,i,n,o;if(this.div&&this.center){var r=null===this.sums||"undefined"===typeof this.sums.title||""===this.sums.title?this.cluster.getClusterer().getTitle():this.sums.title,a=this.backgroundPosition.split(" "),l=parseInt((null===(t=a[0])||void 0===t?void 0:t.replace(/^\s+|\s+$/g,""))||"0",10),h=parseInt((null===(e=a[1])||void 0===e?void 0:e.replace(/^\s+|\s+$/g,""))||"0",10),p=this.getPosFromLatLng(this.center);this.div.className=this.className,this.div.setAttribute("style","cursor: pointer; position: absolute; top: ".concat(null!==p?"".concat(p.y,"px"):"0","; left: ").concat(null!==p?"".concat(p.x,"px"):"0","; width: ").concat(this.width,"px; height: ").concat(this.height,"px; "));var c=document.createElement("img");c.alt=r,c.src=this.url,c.width=this.width,c.height=this.height,c.setAttribute("style","position: absolute; top: ".concat(h,"px; left: ").concat(l,"px")),this.cluster.getClusterer().enableRetinaIcons||(c.style.clip="rect(-".concat(h,"px, -").concat(l+this.width,"px, -").concat(h+this.height,", -").concat(l,")"));var u=document.createElement("div");u.setAttribute("style","position: absolute; top: ".concat(this.anchorText[0],"px; left: ").concat(this.anchorText[1],"px; color: ").concat(this.textColor,"; font-size: ").concat(this.textSize,"px; font-family: ").concat(this.fontFamily,"; font-weight: ").concat(this.fontWeight,"; fontStyle: ").concat(this.fontStyle,"; text-decoration: ").concat(this.textDecoration,"; text-align: center; width: ").concat(this.width,"px; line-height: ").concat(this.height,"px")),(null===(s=this.sums)||void 0===s?void 0:s.text)&&(u.innerText="".concat(null===(i=this.sums)||void 0===i?void 0:i.text)),(null===(n=this.sums)||void 0===n?void 0:n.html)&&(u.innerHTML="".concat(null===(o=this.sums)||void 0===o?void 0:o.html)),this.div.innerHTML="",this.div.appendChild(c),this.div.appendChild(u),this.div.title=r,this.div.style.display=""}this.visible=!0},t.prototype.useStyle=function(t){this.sums=t;var e=this.cluster.getClusterer().getStyles(),s=e[Math.min(e.length-1,Math.max(0,t.index-1))];s&&(this.url=s.url,this.height=s.height,this.width=s.width,s.className&&(this.className="".concat(this.clusterClassName," ").concat(s.className)),this.anchorText=s.anchorText||[0,0],this.anchorIcon=s.anchorIcon||[this.height/2,this.width/2],this.textColor=s.textColor||"black",this.textSize=s.textSize||11,this.textDecoration=s.textDecoration||"none",this.fontWeight=s.fontWeight||"bold",this.fontStyle=s.fontStyle||"normal",this.fontFamily=s.fontFamily||"Arial,sans-serif",this.backgroundPosition=s.backgroundPosition||"0 0")},t.prototype.setCenter=function(t){this.center=t},t.prototype.getPosFromLatLng=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return null!==e&&(e.x-=this.anchorIcon[1],e.y-=this.anchorIcon[0]),e},t}(),dt=function(){function t(t){this.markerClusterer=t,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new ut(this,this.markerClusterer.getStyles()),this.getSize=this.getSize.bind(this),this.getMarkers=this.getMarkers.bind(this),this.getCenter=this.getCenter.bind(this),this.getMap=this.getMap.bind(this),this.getClusterer=this.getClusterer.bind(this),this.getBounds=this.getBounds.bind(this),this.remove=this.remove.bind(this),this.addMarker=this.addMarker.bind(this),this.isMarkerInClusterBounds=this.isMarkerInClusterBounds.bind(this),this.calculateBounds=this.calculateBounds.bind(this),this.updateIcon=this.updateIcon.bind(this),this.isMarkerAlreadyAdded=this.isMarkerAlreadyAdded.bind(this)}return t.prototype.getSize=function(){return this.markers.length},t.prototype.getMarkers=function(){return this.markers},t.prototype.getCenter=function(){return this.center},t.prototype.getMap=function(){return this.map},t.prototype.getClusterer=function(){return this.markerClusterer},t.prototype.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center,this.center),e=0,s=this.getMarkers();eo)t.getMap()!==this.map&&t.setMap(this.map);else if(ns||e0))for(var t=0;t3?new google.maps.LatLngBounds(null===i||void 0===i?void 0:i.getSouthWest(),null===i||void 0===i?void 0:i.getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),o=this.getExtendedBounds(n),r=Math.min(t+this.batchSize,this.markers.length),a=t;a{null!==this.state.markerClusterer&&this.props.onLoad&&this.props.onLoad(this.state.markerClusterer)}))}componentDidMount(){if(this.context){var t=new vt(this.context,[],this.props.options);this.registeredEvents=y({updaterMap:yt,eventMap:ft,prevProps:{},nextProps:this.props,instance:t}),this.setState((()=>({markerClusterer:t})),this.setClustererCallback)}}componentDidUpdate(t){this.state.markerClusterer&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:yt,eventMap:ft,prevProps:t,nextProps:this.props,instance:this.state.markerClusterer}))}componentWillUnmount(){null!==this.state.markerClusterer&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),f(this.registeredEvents),this.state.markerClusterer.setMap(null))}render(){return null!==this.state.markerClusterer?this.props.children(this.state.markerClusterer):null}}function Ct(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()}p(bt,"contextType",d);var xt=function(){function t(e){void 0===e&&(e={}),this.getCloseClickHandler=this.getCloseClickHandler.bind(this),this.closeClickHandler=this.closeClickHandler.bind(this),this.createInfoBoxDiv=this.createInfoBoxDiv.bind(this),this.addClickHandler=this.addClickHandler.bind(this),this.getCloseBoxImg=this.getCloseBoxImg.bind(this),this.getBoxWidths=this.getBoxWidths.bind(this),this.setBoxStyle=this.setBoxStyle.bind(this),this.setPosition=this.setPosition.bind(this),this.getPosition=this.getPosition.bind(this),this.setOptions=this.setOptions.bind(this),this.setContent=this.setContent.bind(this),this.setVisible=this.setVisible.bind(this),this.getContent=this.getContent.bind(this),this.getVisible=this.getVisible.bind(this),this.setZIndex=this.setZIndex.bind(this),this.getZIndex=this.getZIndex.bind(this),this.onRemove=this.onRemove.bind(this),this.panBox=this.panBox.bind(this),this.extend=this.extend.bind(this),this.close=this.close.bind(this),this.draw=this.draw.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.open=this.open.bind(this),this.extend(t,google.maps.OverlayView),this.content=e.content||"",this.disableAutoPan=e.disableAutoPan||!1,this.maxWidth=e.maxWidth||0,this.pixelOffset=e.pixelOffset||new google.maps.Size(0,0),this.position=e.position||new google.maps.LatLng(0,0),this.zIndex=e.zIndex||null,this.boxClass=e.boxClass||"infoBox",this.boxStyle=e.boxStyle||{},this.closeBoxMargin=e.closeBoxMargin||"2px",this.closeBoxURL=e.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",""===e.closeBoxURL&&(this.closeBoxURL=""),this.infoBoxClearance=e.infoBoxClearance||new google.maps.Size(1,1),"undefined"===typeof e.visible&&("undefined"===typeof e.isHidden?e.visible=!0:e.visible=!e.isHidden),this.isHidden=!e.visible,this.alignBottom=e.alignBottom||!1,this.pane=e.pane||"floatPane",this.enableEventPropagation=e.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return t.prototype.createInfoBoxDiv=function(){var t=this;if(!this.div){this.div=document.createElement("div"),this.setBoxStyle(),"string"===typeof this.content?this.div.innerHTML=this.getCloseBoxImg()+this.content:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(this.content));var e=this.getPanes();if(null!==e&&e[this.pane].appendChild(this.div),this.addClickHandler(),this.div.style.width)this.fixedWidthSet=!0;else if(0!==this.maxWidth&&this.div.offsetWidth>this.maxWidth)this.div.style.width=this.maxWidth+"px",this.fixedWidthSet=!0;else{var s=this.getBoxWidths();this.div.style.width=this.div.offsetWidth-s.left-s.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var i=0,n=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"];ir&&(s=g.x+p+l+u-r),this.alignBottom?g.y<-h+d+c?i=g.y+h-d-c:g.y+h+d>a&&(i=g.y+h+d-a):g.y<-h+d?i=g.y+h-d:g.y+c+h+d>a&&(i=g.y+c+h+d-a)),0===s&&0===i||e.panBy(s,i)}}},t.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var t=this.boxStyle;for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(this.div.style[e]=t[e]);if(this.div.style.webkitTransform="translateZ(0)","undefined"!==typeof this.div.style.opacity&&""!==this.div.style.opacity){var s=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*s+')"',this.div.style.filter="alpha(opacity="+100*s+")"}this.div.style.position="absolute",this.div.style.visibility="hidden",null!==this.zIndex&&(this.div.style.zIndex=this.zIndex+""),this.div.style.overflow||(this.div.style.overflow="auto")}},t.prototype.getBoxWidths=function(){var t={top:0,bottom:0,left:0,right:0};if(!this.div)return t;if(document.defaultView){var e=this.div.ownerDocument,s=e&&e.defaultView?e.defaultView.getComputedStyle(this.div,""):null;s&&(t.top=parseInt(s.borderTopWidth||"",10)||0,t.bottom=parseInt(s.borderBottomWidth||"",10)||0,t.left=parseInt(s.borderLeftWidth||"",10)||0,t.right=parseInt(s.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var i=this.div.currentStyle;i&&(t.top=parseInt(i.borderTopWidth||"",10)||0,t.bottom=parseInt(i.borderBottomWidth||"",10)||0,t.left=parseInt(i.borderLeftWidth||"",10)||0,t.right=parseInt(i.borderRightWidth||"",10)||0)}return t},t.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},t.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var t=this.getProjection().fromLatLngToDivPixel(this.position);null!==t&&(this.div.style.left=t.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(t.y+this.pixelOffset.height)+"px":this.div.style.top=t.y+this.pixelOffset.height+"px"),this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},t.prototype.setOptions=function(t){void 0===t&&(t={}),"undefined"!==typeof t.boxClass&&(this.boxClass=t.boxClass,this.setBoxStyle()),"undefined"!==typeof t.boxStyle&&(this.boxStyle=t.boxStyle,this.setBoxStyle()),"undefined"!==typeof t.content&&this.setContent(t.content),"undefined"!==typeof t.disableAutoPan&&(this.disableAutoPan=t.disableAutoPan),"undefined"!==typeof t.maxWidth&&(this.maxWidth=t.maxWidth),"undefined"!==typeof t.pixelOffset&&(this.pixelOffset=t.pixelOffset),"undefined"!==typeof t.alignBottom&&(this.alignBottom=t.alignBottom),"undefined"!==typeof t.position&&this.setPosition(t.position),"undefined"!==typeof t.zIndex&&this.setZIndex(t.zIndex),"undefined"!==typeof t.closeBoxMargin&&(this.closeBoxMargin=t.closeBoxMargin),"undefined"!==typeof t.closeBoxURL&&(this.closeBoxURL=t.closeBoxURL),"undefined"!==typeof t.infoBoxClearance&&(this.infoBoxClearance=t.infoBoxClearance),"undefined"!==typeof t.isHidden&&(this.isHidden=t.isHidden),"undefined"!==typeof t.visible&&(this.isHidden=!t.visible),"undefined"!==typeof t.enableEventPropagation&&(this.enableEventPropagation=t.enableEventPropagation),this.div&&this.draw()},t.prototype.setContent=function(t){this.content=t,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),"string"===typeof t?this.div.innerHTML=this.getCloseBoxImg()+t:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(t)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px","string"===typeof t?this.div.innerHTML=this.getCloseBoxImg()+t:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(t))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},t.prototype.setPosition=function(t){this.position=t,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},t.prototype.setVisible=function(t){this.isHidden=!t,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},t.prototype.setZIndex=function(t){this.zIndex=t,this.div&&(this.div.style.zIndex=t+""),google.maps.event.trigger(this,"zindex_changed")},t.prototype.getContent=function(){return this.content},t.prototype.getPosition=function(){return this.position},t.prototype.getZIndex=function(){return this.zIndex},t.prototype.getVisible=function(){var t=this.getMap();return"undefined"!==typeof t&&null!==t&&!this.isHidden},t.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},t.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},t.prototype.open=function(t,e){var s=this;e&&(this.position=e.getPosition(),this.moveListener=google.maps.event.addListener(e,"position_changed",(function(){var t=e.getPosition();s.setPosition(t)})),this.mapListener=google.maps.event.addListener(e,"map_changed",(function(){s.setMap(e.map)}))),this.setMap(t),this.div&&this.panBox()},t.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var t=0,e=this.eventListeners;t{e?null!==this.context&&t.open(this.context,e):t.getPosition()?null!==this.context&&t.open(this.context):u(!1,"You must provide either an anchor or a position prop for .")})),p(this,"setInfoBoxCallback",(()=>{null!==this.state.infoBox&&null!==this.containerElement&&(this.state.infoBox.setContent(this.containerElement),this.open(this.state.infoBox,this.props.anchor),this.props.onLoad&&this.props.onLoad(this.state.infoBox))}))}componentDidMount(){var t,e=this.props.options||{},{position:s}=e,i=T(e,wt);!s||s instanceof google.maps.LatLng||(t=new google.maps.LatLng(s.lat,s.lng));var n=new xt(Mt(Mt({},i),t?{position:t}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=y({updaterMap:kt,eventMap:Ot,prevProps:{},nextProps:this.props,instance:n}),this.setState({infoBox:n},this.setInfoBoxCallback)}componentDidUpdate(t){var{infoBox:e}=this.state;null!==e&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:kt,eventMap:Ot,prevProps:t,nextProps:this.props,instance:e}))}componentWillUnmount(){var{onUnmount:t}=this.props,{infoBox:e}=this.state;null!==e&&(t&&t(e),f(this.registeredEvents),e.close())}render(){return this.containerElement?(0,a.createPortal)(r.Children.only(this.props.children),this.containerElement):null}}p(St,"contextType",d);Et||(Et=1,Lt=function t(e,s){if(e===s)return!0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return!1;var i,n,o;if(Array.isArray(e)){if((i=e.length)!=s.length)return!1;for(n=i;0!==n--;)if(!t(e[n],s[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===s.toString();if((i=(o=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(n=i;0!==n--;)if(!Object.prototype.hasOwnProperty.call(s,o[n]))return!1;for(n=i;0!==n--;){var r=o[n];if(!t(e[r],s[r]))return!1}return!0}return e!==e&&s!==s}),Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array;var It;Math.fround||(It=new Float32Array(1));var jt;!function(t){t.CLUSTERING_BEGIN="clusteringbegin",t.CLUSTERING_END="clusteringend",t.CLUSTER_CLICK="click"}(jt||(jt={}));var Dt={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},Bt={options(t,e){t.setOptions(e)},position(t,e){t.setPosition(e)},zIndex(t,e){t.setZIndex(e)}};class Tt extends r.PureComponent{constructor(){super(...arguments),p(this,"registeredEvents",[]),p(this,"containerElement",null),p(this,"state",{infoWindow:null}),p(this,"open",((t,e)=>{e?t.open(this.context,e):t.getPosition()?t.open(this.context):u(!1,"You must provide either an anchor (typically render it inside a ) or a position props for .")})),p(this,"setInfoWindowCallback",(()=>{null!==this.state.infoWindow&&null!==this.containerElement&&(this.state.infoWindow.setContent(this.containerElement),this.open(this.state.infoWindow,this.props.anchor),this.props.onLoad&&this.props.onLoad(this.state.infoWindow))}))}componentDidMount(){var t=new google.maps.InfoWindow(this.props.options);this.containerElement=document.createElement("div"),this.registeredEvents=y({updaterMap:Bt,eventMap:Dt,prevProps:{},nextProps:this.props,instance:t}),this.setState((()=>({infoWindow:t})),this.setInfoWindowCallback)}componentDidUpdate(t){null!==this.state.infoWindow&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:Bt,eventMap:Dt,prevProps:t,nextProps:this.props,instance:this.state.infoWindow}))}componentWillUnmount(){null!==this.state.infoWindow&&(f(this.registeredEvents),this.props.onUnmount&&this.props.onUnmount(this.state.infoWindow),this.state.infoWindow.close())}render(){return this.containerElement?(0,a.createPortal)(r.Children.only(this.props.children),this.containerElement):null}}function Rt(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function Ut(t){for(var e=1;e{null!==this.state.polyline&&this.props.onLoad&&this.props.onLoad(this.state.polyline)}))}componentDidMount(){var t=new google.maps.Polyline(Ut(Ut({},this.props.options),{},{map:this.context}));this.registeredEvents=y({updaterMap:At,eventMap:zt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{polyline:t}}),this.setPolylineCallback)}componentDidUpdate(t){null!==this.state.polyline&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:At,eventMap:zt,prevProps:t,nextProps:this.props,instance:this.state.polyline}))}componentWillUnmount(){null!==this.state.polyline&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),f(this.registeredEvents),this.state.polyline.setMap(null))}render(){return null}}p(Wt,"contextType",d);var _t={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},Vt={draggable(t,e){t.setDraggable(e)},editable(t,e){t.setEditable(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},path(t,e){t.setPath(e)},paths(t,e){t.setPaths(e)},visible(t,e){t.setVisible(e)}};class Ht extends r.PureComponent{constructor(){super(...arguments),p(this,"registeredEvents",[])}componentDidMount(){var t=this.props.options||{};this.polygon=new google.maps.Polygon(t),this.polygon.setMap(this.context),this.registeredEvents=y({updaterMap:Vt,eventMap:_t,prevProps:{},nextProps:this.props,instance:this.polygon}),this.props.onLoad&&this.props.onLoad(this.polygon)}componentDidUpdate(t){this.polygon&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:Vt,eventMap:_t,prevProps:t,nextProps:this.props,instance:this.polygon}))}componentWillUnmount(){this.polygon&&(this.props.onUnmount&&this.props.onUnmount(this.polygon),f(this.registeredEvents),this.polygon&&this.polygon.setMap(null))}render(){return null}}function Nt(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function Zt(t){for(var e=1;e{null!==this.state.rectangle&&this.props.onLoad&&this.props.onLoad(this.state.rectangle)}))}componentDidMount(){var t=new google.maps.Rectangle(Zt(Zt({},this.props.options),{},{map:this.context}));this.registeredEvents=y({updaterMap:Ft,eventMap:Gt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{rectangle:t}}),this.setRectangleCallback)}componentDidUpdate(t){null!==this.state.rectangle&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:Ft,eventMap:Gt,prevProps:t,nextProps:this.props,instance:this.state.rectangle}))}componentWillUnmount(){null!==this.state.rectangle&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),f(this.registeredEvents),this.state.rectangle.setMap(null))}render(){return null}}function Yt(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function qt(t){for(var e=1;e{null!==this.state.circle&&this.props.onLoad&&this.props.onLoad(this.state.circle)}))}componentDidMount(){var t=new google.maps.Circle(qt(qt({},this.props.options),{},{map:this.context}));this.registeredEvents=y({updaterMap:$t,eventMap:Jt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{circle:t}}),this.setCircleCallback)}componentDidUpdate(t){null!==this.state.circle&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:$t,eventMap:Jt,prevProps:t,nextProps:this.props,instance:this.state.circle}))}componentWillUnmount(){var t;null!==this.state.circle&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),f(this.registeredEvents),null===(t=this.state.circle)||void 0===t||t.setMap(null))}render(){return null}}function Qt(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function te(t){for(var e=1;e{null!==this.state.data&&this.props.onLoad&&this.props.onLoad(this.state.data)}))}componentDidMount(){if(null!==this.context){var t=new google.maps.Data(te(te({},this.props.options),{},{map:this.context}));this.registeredEvents=y({updaterMap:se,eventMap:ee,prevProps:{},nextProps:this.props,instance:t}),this.setState((()=>({data:t})),this.setDataCallback)}}componentDidUpdate(t){null!==this.state.data&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:se,eventMap:ee,prevProps:t,nextProps:this.props,instance:this.state.data}))}componentWillUnmount(){null!==this.state.data&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),f(this.registeredEvents),this.state.data&&this.state.data.setMap(null))}render(){return null}}function ne(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function oe(t){for(var e=1;e{null!==this.state.kmlLayer&&this.props.onLoad&&this.props.onLoad(this.state.kmlLayer)}))}componentDidMount(){var t=new google.maps.KmlLayer(oe(oe({},this.props.options),{},{map:this.context}));this.registeredEvents=y({updaterMap:ae,eventMap:re,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{kmlLayer:t}}),this.setKmlLayerCallback)}componentDidUpdate(t){null!==this.state.kmlLayer&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:ae,eventMap:re,prevProps:t,nextProps:this.props,instance:this.state.kmlLayer}))}componentWillUnmount(){null!==this.state.kmlLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),f(this.registeredEvents),this.state.kmlLayer.setMap(null))}render(){return null}}function he(t,e){return"function"===typeof e?e(t.offsetWidth,t.offsetHeight):{x:0,y:0}}function pe(t,e){return new e(t.lat,t.lng)}function ce(t,e){return new e(new google.maps.LatLng(t.ne.lat,t.ne.lng),new google.maps.LatLng(t.sw.lat,t.sw.lng))}function ue(t,e,s,i){return void 0!==s?function(t,e,s){var i=t&&t.fromLatLngToDivPixel(s.getNorthEast()),n=t&&t.fromLatLngToDivPixel(s.getSouthWest());return i&&n?{left:"".concat(n.x+e.x,"px"),top:"".concat(i.y+e.y,"px"),width:"".concat(i.x-n.x-e.x,"px"),height:"".concat(n.y-i.y-e.y,"px")}:{left:"-9999px",top:"-9999px"}}(t,e,(n=s,o=google.maps.LatLngBounds,r=ce,n instanceof o?n:r(n,o))):function(t,e,s){var i=t&&t.fromLatLngToDivPixel(s);if(i){var{x:n,y:o}=i;return{left:"".concat(n+e.x,"px"),top:"".concat(o+e.y,"px")}}return{left:"-9999px",top:"-9999px"}}(t,e,function(t,e,s){return t instanceof e?t:s(t,e)}(i,google.maps.LatLng,pe));var n,o,r}function de(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function ge(t){return t?(t instanceof google.maps.LatLng?t:new google.maps.LatLng(t.lat,t.lng))+"":""}function me(t){return t?(t instanceof google.maps.LatLngBounds?t:new google.maps.LatLngBounds(new google.maps.LatLng(t.south,t.east),new google.maps.LatLng(t.north,t.west)))+"":""}p(le,"contextType",d);class ve extends r.PureComponent{constructor(t){super(t),p(this,"state",{paneEl:null,containerStyle:{position:"absolute"}}),p(this,"updatePane",(()=>{var t=this.props.mapPaneName,e=this.overlayView.getPanes();u(!!t,"OverlayView requires props.mapPaneName but got %s",t),e?this.setState({paneEl:e[t]}):this.setState({paneEl:null})})),p(this,"onAdd",(()=>{var t,e;this.updatePane(),null===(t=(e=this.props).onLoad)||void 0===t||t.call(e,this.overlayView)})),p(this,"onPositionElement",(()=>{var t,e,s,i,n,o,r=this.overlayView.getProjection(),a=function(t){for(var e=1;e{this.onPositionElement()})),p(this,"onRemove",(()=>{var t,e;this.setState((()=>({paneEl:null}))),null===(t=(e=this.props).onUnmount)||void 0===t||t.call(e,this.overlayView)})),this.containerRef=(0,r.createRef)();var e=new google.maps.OverlayView;e.onAdd=this.onAdd,e.draw=this.draw,e.onRemove=this.onRemove,this.overlayView=e}componentDidMount(){this.overlayView.setMap(this.context)}componentDidUpdate(t){var e=ge(t.position),s=ge(this.props.position),i=me(t.bounds),n=me(this.props.bounds);e===s&&i===n||this.overlayView.draw(),t.mapPaneName!==this.props.mapPaneName&&this.updatePane()}componentWillUnmount(){this.overlayView.setMap(null)}render(){var t=this.state.paneEl;return t?a.createPortal((0,o.jsx)("div",{ref:this.containerRef,style:this.state.containerStyle,children:r.Children.only(this.props.children)}),t):null}}function fe(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function ye(t){for(var e=1;e{null!==this.state.groundOverlay&&this.props.onLoad&&this.props.onLoad(this.state.groundOverlay)}))}componentDidMount(){u(!!this.props.url||!!this.props.bounds,"For GroundOverlay, url and bounds are passed in to constructor and are immutable after instantiated. This is the behavior of Google Maps JavaScript API v3 ( See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) Hence, use the corresponding two props provided by `react-google-maps-api`, url and bounds. In some cases, you'll need the GroundOverlay component to reflect the changes of url and bounds. You can leverage the React's key property to remount the component. Typically, just `key={url}` would serve your need. See https://github.com/tomchentw/react-google-maps/issues/655");var t=new google.maps.GroundOverlay(this.props.url,this.props.bounds,ye(ye({},this.props.options),{},{map:this.context}));this.registeredEvents=y({updaterMap:Ce,eventMap:be,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{groundOverlay:t}}),this.setGroundOverlayCallback)}componentDidUpdate(t){null!==this.state.groundOverlay&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:Ce,eventMap:be,prevProps:t,nextProps:this.props,instance:this.state.groundOverlay}))}componentWillUnmount(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))}render(){return null}}function we(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function Pe(t){for(var e=1;e{null!==this.state.heatmapLayer&&this.props.onLoad&&this.props.onLoad(this.state.heatmapLayer)}))}componentDidMount(){u(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to ? %s',google.maps.visualization),u(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);var t=new google.maps.visualization.HeatmapLayer(Pe(Pe({},this.props.options),{},{data:this.props.data,map:this.context}));this.registeredEvents=y({updaterMap:Oe,eventMap:Me,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{heatmapLayer:t}}),this.setHeatmapLayerCallback)}componentDidUpdate(t){f(this.registeredEvents),this.registeredEvents=y({updaterMap:Oe,eventMap:Me,prevProps:t,nextProps:this.props,instance:this.state.heatmapLayer})}componentWillUnmount(){null!==this.state.heatmapLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),f(this.registeredEvents),this.state.heatmapLayer.setMap(null))}render(){return null}}p(ke,"contextType",d);var Le={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},Ee={register(t,e,s){t.registerPanoProvider(e,s)},links(t,e){t.setLinks(e)},motionTracking(t,e){t.setMotionTracking(e)},options(t,e){t.setOptions(e)},pano(t,e){t.setPano(e)},position(t,e){t.setPosition(e)},pov(t,e){t.setPov(e)},visible(t,e){t.setVisible(e)},zoom(t,e){t.setZoom(e)}};class Se extends r.PureComponent{constructor(){super(...arguments),p(this,"registeredEvents",[]),p(this,"state",{streetViewPanorama:null}),p(this,"setStreetViewPanoramaCallback",(()=>{null!==this.state.streetViewPanorama&&this.props.onLoad&&this.props.onLoad(this.state.streetViewPanorama)}))}componentDidMount(){var t,e,s=null!==(t=null===(e=this.context)||void 0===e?void 0:e.getStreetView())&&void 0!==t?t:null;this.registeredEvents=y({updaterMap:Ee,eventMap:Le,prevProps:{},nextProps:this.props,instance:s}),this.setState((()=>({streetViewPanorama:s})),this.setStreetViewPanoramaCallback)}componentDidUpdate(t){null!==this.state.streetViewPanorama&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:Ee,eventMap:Le,prevProps:t,nextProps:this.props,instance:this.state.streetViewPanorama}))}componentWillUnmount(){null!==this.state.streetViewPanorama&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),f(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))}render(){return null}}p(Se,"contextType",d);class Ie extends r.PureComponent{constructor(){super(...arguments),p(this,"state",{streetViewService:null}),p(this,"setStreetViewServiceCallback",(()=>{null!==this.state.streetViewService&&this.props.onLoad&&this.props.onLoad(this.state.streetViewService)}))}componentDidMount(){var t=new google.maps.StreetViewService;this.setState((function(){return{streetViewService:t}}),this.setStreetViewServiceCallback)}componentWillUnmount(){null!==this.state.streetViewService&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)}render(){return null}}p(Ie,"contextType",d);r.PureComponent;var je={onDirectionsChanged:"directions_changed"},De={directions(t,e){t.setDirections(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},panel(t,e){t.setPanel(e)},routeIndex(t,e){t.setRouteIndex(e)}};class Be extends r.PureComponent{constructor(){super(...arguments),p(this,"registeredEvents",[]),p(this,"state",{directionsRenderer:null}),p(this,"setDirectionsRendererCallback",(()=>{null!==this.state.directionsRenderer&&(this.state.directionsRenderer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.directionsRenderer))}))}componentDidMount(){var t=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=y({updaterMap:De,eventMap:je,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{directionsRenderer:t}}),this.setDirectionsRendererCallback)}componentDidUpdate(t){null!==this.state.directionsRenderer&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:De,eventMap:je,prevProps:t,nextProps:this.props,instance:this.state.directionsRenderer}))}componentWillUnmount(){null!==this.state.directionsRenderer&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),f(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))}render(){return null}}p(Be,"contextType",d);r.PureComponent;var Te={onPlacesChanged:"places_changed"},Re={bounds(t,e){t.setBounds(e)}};class Ue extends r.PureComponent{constructor(){super(...arguments),p(this,"registeredEvents",[]),p(this,"containerElement",(0,r.createRef)()),p(this,"state",{searchBox:null}),p(this,"setSearchBoxCallback",(()=>{null!==this.state.searchBox&&this.props.onLoad&&this.props.onLoad(this.state.searchBox)}))}componentDidMount(){if(u(!!google.maps.places,'You need to provide libraries={["places"]} prop to component %s',google.maps.places),null!==this.containerElement&&null!==this.containerElement.current){var t=this.containerElement.current.querySelector("input");if(null!==t){var e=new google.maps.places.SearchBox(t,this.props.options);this.registeredEvents=y({updaterMap:Re,eventMap:Te,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{searchBox:e}}),this.setSearchBoxCallback)}}}componentDidUpdate(t){null!==this.state.searchBox&&(f(this.registeredEvents),this.registeredEvents=y({updaterMap:Re,eventMap:Te,prevProps:t,nextProps:this.props,instance:this.state.searchBox}))}componentWillUnmount(){null!==this.state.searchBox&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),f(this.registeredEvents))}render(){return(0,o.jsx)("div",{ref:this.containerElement,children:r.Children.only(this.props.children)})}}p(Ue,"contextType",d);var ze={onPlaceChanged:"place_changed"},Ae={bounds(t,e){t.setBounds(e)},restrictions(t,e){t.setComponentRestrictions(e)},fields(t,e){t.setFields(e)},options(t,e){t.setOptions(e)},types(t,e){t.setTypes(e)}};class We extends r.PureComponent{constructor(){super(...arguments),p(this,"registeredEvents",[]),p(this,"containerElement",(0,r.createRef)()),p(this,"state",{autocomplete:null}),p(this,"setAutocompleteCallback",(()=>{null!==this.state.autocomplete&&this.props.onLoad&&this.props.onLoad(this.state.autocomplete)}))}componentDidMount(){var t;u(!!google.maps.places,'You need to provide libraries={["places"]} prop to component %s',google.maps.places);var e=null===(t=this.containerElement.current)||void 0===t?void 0:t.querySelector("input");if(e){var s=new google.maps.places.Autocomplete(e,this.props.options);this.registeredEvents=y({updaterMap:Ae,eventMap:ze,prevProps:{},nextProps:this.props,instance:s}),this.setState((()=>({autocomplete:s})),this.setAutocompleteCallback)}}componentDidUpdate(t){f(this.registeredEvents),this.registeredEvents=y({updaterMap:Ae,eventMap:ze,prevProps:t,nextProps:this.props,instance:this.state.autocomplete})}componentWillUnmount(){null!==this.state.autocomplete&&f(this.registeredEvents)}render(){return(0,o.jsx)("div",{ref:this.containerElement,className:this.props.className,children:r.Children.only(this.props.children)})}}p(We,"defaultProps",{className:""}),p(We,"contextType",d)},68320:(t,e,s)=>{s.d(e,{I:()=>o});var i=s(48149),n=s(59363);function o(t,e){return(0,n.t)(t,i.$,e)}}}]); \ No newline at end of file diff --git a/build/static/js/804.228f9b46.chunk.js b/build/static/js/804.228f9b46.chunk.js new file mode 100644 index 0000000..b31cb9d --- /dev/null +++ b/build/static/js/804.228f9b46.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[804],{28579:(e,t,n)=>{n.d(t,{A:()=>P});var a=n(84849),o=n(27326),i=n(85672),r=n(72574),s=n(25234),c=n(10247),d=n(42081),l=n(31529),u=n(65908);const p=(0,l.A)((0,u.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),m=(0,l.A)((0,u.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),h=(0,l.A)((0,u.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var v=n(16775),A=n(38009),b=n(60308),g=n(24270),f=n(37300),y=n(10644);function x(e){return(0,y.Ay)("MuiCheckbox",e)}const C=(0,f.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),S=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],w=(0,b.Ay)(d.A,{shouldForwardProp:e=>(0,g.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t["size".concat((0,v.A)(n.size))],"default"!==n.color&&t["color".concat((0,v.A)(n.color))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.A)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,c.X4)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{["&.".concat(C.checked,", &.").concat(C.indeterminate)]:{color:(t.vars||t).palette[n.color].main},["&.".concat(C.disabled)]:{color:(t.vars||t).palette.action.disabled}})})),k=(0,u.jsx)(m,{}),R=(0,u.jsx)(p,{}),I=(0,u.jsx)(h,{}),P=i.forwardRef((function(e,t){var n,c;const d=(0,A.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:l=k,color:p="primary",icon:m=R,indeterminate:h=!1,indeterminateIcon:b=I,inputProps:g,size:f="medium",className:y}=d,C=(0,a.A)(d,S),P=h?b:m,z=h?b:l,M=(0,o.A)({},d,{color:p,indeterminate:h,size:f}),N=(e=>{const{classes:t,indeterminate:n,color:a,size:i}=e,r={root:["root",n&&"indeterminate","color".concat((0,v.A)(a)),"size".concat((0,v.A)(i))]},c=(0,s.A)(r,x,t);return(0,o.A)({},t,c)})(M);return(0,u.jsx)(w,(0,o.A)({type:"checkbox",inputProps:(0,o.A)({"data-indeterminate":h},g),icon:i.cloneElement(P,{fontSize:null!=(n=P.props.fontSize)?n:f}),checkedIcon:i.cloneElement(z,{fontSize:null!=(c=z.props.fontSize)?c:f}),ownerState:M,ref:t,className:(0,r.A)(N.root,y)},C,{classes:N}))}))},29398:(e,t,n)=>{n.d(t,{A:()=>y});var a=n(84849),o=n(27326),i=n(85672),r=n(72574),s=n(25234),c=n(38009),d=n(60308),l=n(75287),u=n(16775),p=n(92694),m=n(25676),h=n(37300),v=n(10644);function A(e){return(0,v.Ay)("MuiFormControl",e)}(0,h.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var b=n(65908);const g=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],f=(0,d.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,o.A)({},t.root,t["margin".concat((0,u.A)(n.margin))],n.fullWidth&&t.fullWidth)}})((e=>{let{ownerState:t}=e;return(0,o.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),y=i.forwardRef((function(e,t){const n=(0,c.b)({props:e,name:"MuiFormControl"}),{children:d,className:h,color:v="primary",component:y="div",disabled:x=!1,error:C=!1,focused:S,fullWidth:w=!1,hiddenLabel:k=!1,margin:R="none",required:I=!1,size:P="medium",variant:z="outlined"}=n,M=(0,a.A)(n,g),N=(0,o.A)({},n,{color:v,component:y,disabled:x,error:C,fullWidth:w,hiddenLabel:k,margin:R,required:I,size:P,variant:z}),F=(e=>{const{classes:t,margin:n,fullWidth:a}=e,o={root:["root","none"!==n&&"margin".concat((0,u.A)(n)),a&&"fullWidth"]};return(0,s.A)(o,A,t)})(N),[j,L]=i.useState((()=>{let e=!1;return d&&i.Children.forEach(d,(t=>{if(!(0,p.A)(t,["Input","Select"]))return;const n=(0,p.A)(t,["Select"])?t.props.input:t;n&&(0,l.gr)(n.props)&&(e=!0)})),e})),[B,O]=i.useState((()=>{let e=!1;return d&&i.Children.forEach(d,(t=>{(0,p.A)(t,["Input","Select"])&&((0,l.lq)(t.props,!0)||(0,l.lq)(t.props.inputProps,!0))&&(e=!0)})),e})),[E,V]=i.useState(!1);x&&E&&V(!1);const W=void 0===S||x?E:S;let H;const X=i.useMemo((()=>({adornedStart:j,setAdornedStart:L,color:v,disabled:x,error:C,filled:B,focused:W,fullWidth:w,hiddenLabel:k,size:P,onBlur:()=>{V(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{V(!0)},registerEffect:H,required:I,variant:z})),[j,v,x,C,B,W,w,k,H,I,P,z]);return(0,b.jsx)(m.A.Provider,{value:X,children:(0,b.jsx)(f,(0,o.A)({as:y,ownerState:N,className:(0,r.A)(F.root,h),ref:t},M,{children:d}))})}))},41337:(e,t,n)=>{n.d(t,{Ay:()=>P});var a=n(84849),o=n(27326),i=n(85672),r=n(72574),s=n(25234),c=n(10247),d=n(28292),l=n(60308),u=n(38009),p=n(61949),m=n(92694),h=n(93046),v=n(45688),A=n(78534),b=n(37300),g=n(10644);function f(e){return(0,g.Ay)("MuiListItem",e)}const y=(0,b.A)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var x=n(83611),C=n(97006),S=n(65908);const w=["className"],k=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],R=(0,l.Ay)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.A)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!n.disablePadding&&(0,o.A)({paddingTop:8,paddingBottom:8},n.dense&&{paddingTop:4,paddingBottom:4},!n.disableGutters&&{paddingLeft:16,paddingRight:16},!!n.secondaryAction&&{paddingRight:48}),!!n.secondaryAction&&{["& > .".concat(x.A.root)]:{paddingRight:48}},{["&.".concat(y.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(y.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(y.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(y.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===n.alignItems&&{alignItems:"flex-start"},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},n.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(y.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},n.hasSecondaryAction&&{paddingRight:48})})),I=(0,l.Ay)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),P=i.forwardRef((function(e,t){const n=(0,u.b)({props:e,name:"MuiListItem"}),{alignItems:c="center",autoFocus:l=!1,button:b=!1,children:g,className:x,component:P,components:z={},componentsProps:M={},ContainerComponent:N="li",ContainerProps:{className:F}={},dense:j=!1,disabled:L=!1,disableGutters:B=!1,disablePadding:O=!1,divider:E=!1,focusVisibleClassName:V,secondaryAction:W,selected:H=!1,slotProps:X={},slots:q={}}=n,T=(0,a.A)(n.ContainerProps,w),G=(0,a.A)(n,k),_=i.useContext(A.A),D=i.useMemo((()=>({dense:j||_.dense||!1,alignItems:c,disableGutters:B})),[c,_.dense,j,B]),J=i.useRef(null);(0,h.A)((()=>{l&&J.current&&J.current.focus()}),[l]);const K=i.Children.toArray(g),Q=K.length&&(0,m.A)(K[K.length-1],["ListItemSecondaryAction"]),U=(0,o.A)({},n,{alignItems:c,autoFocus:l,button:b,dense:D.dense,disabled:L,disableGutters:B,disablePadding:O,divider:E,hasSecondaryAction:Q,selected:H}),Y=(e=>{const{alignItems:t,button:n,classes:a,dense:o,disabled:i,disableGutters:r,disablePadding:c,divider:d,hasSecondaryAction:l,selected:u}=e,p={root:["root",o&&"dense",!r&&"gutters",!c&&"padding",d&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",l&&"secondaryAction",u&&"selected"],container:["container"]};return(0,s.A)(p,f,a)})(U),Z=(0,v.A)(J,t),$=q.root||z.Root||R,ee=X.root||M.root||{},te=(0,o.A)({className:(0,r.A)(Y.root,ee.className,x),disabled:L},G);let ne=P||"li";return b&&(te.component=P||"div",te.focusVisibleClassName=(0,r.A)(y.focusVisible,V),ne=p.A),Q?(ne=te.component||P?ne:"div","li"===N&&("li"===ne?ne="div":"li"===te.component&&(te.component="div")),(0,S.jsx)(A.A.Provider,{value:D,children:(0,S.jsxs)(I,(0,o.A)({as:N,className:(0,r.A)(Y.container,F),ref:Z,ownerState:U},T,{children:[(0,S.jsx)($,(0,o.A)({},ee,!(0,d.A)($)&&{as:ne,ownerState:(0,o.A)({},U,ee.ownerState)},te,{children:K})),K.pop()]}))})):(0,S.jsx)(A.A.Provider,{value:D,children:(0,S.jsxs)($,(0,o.A)({},ee,{as:ne,ref:Z},!(0,d.A)($)&&{ownerState:(0,o.A)({},U,ee.ownerState)},te,{children:[K,W&&(0,S.jsx)(C.A,{children:W})]}))})}))},42081:(e,t,n)=>{n.d(t,{A:()=>x});var a=n(84849),o=n(27326),i=n(85672),r=n(72574),s=n(25234),c=n(16775),d=n(60308),l=n(24270),u=n(11235),p=n(75520),m=n(61949),h=n(37300),v=n(10644);function A(e){return(0,v.Ay)("PrivateSwitchBase",e)}(0,h.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var b=n(65908);const g=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],f=(0,d.Ay)(m.A)((e=>{let{ownerState:t}=e;return(0,o.A)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),y=(0,d.Ay)("input",{shouldForwardProp:l.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),x=i.forwardRef((function(e,t){const{autoFocus:n,checked:i,checkedIcon:d,className:l,defaultChecked:m,disabled:h,disableFocusRipple:v=!1,edge:x=!1,icon:C,id:S,inputProps:w,inputRef:k,name:R,onBlur:I,onChange:P,onFocus:z,readOnly:M,required:N=!1,tabIndex:F,type:j,value:L}=e,B=(0,a.A)(e,g),[O,E]=(0,u.A)({controlled:i,default:Boolean(m),name:"SwitchBase",state:"checked"}),V=(0,p.A)();let W=h;V&&"undefined"===typeof W&&(W=V.disabled);const H="checkbox"===j||"radio"===j,X=(0,o.A)({},e,{checked:O,disabled:W,disableFocusRipple:v,edge:x}),q=(e=>{const{classes:t,checked:n,disabled:a,edge:o}=e,i={root:["root",n&&"checked",a&&"disabled",o&&"edge".concat((0,c.A)(o))],input:["input"]};return(0,s.A)(i,A,t)})(X);return(0,b.jsxs)(f,(0,o.A)({component:"span",className:(0,r.A)(q.root,l),centerRipple:!0,focusRipple:!v,disabled:W,tabIndex:null,role:void 0,onFocus:e=>{z&&z(e),V&&V.onFocus&&V.onFocus(e)},onBlur:e=>{I&&I(e),V&&V.onBlur&&V.onBlur(e)},ownerState:X,ref:t},B,{children:[(0,b.jsx)(y,(0,o.A)({autoFocus:n,checked:i,defaultChecked:m,className:q.input,disabled:W,id:H?S:void 0,name:R,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;E(t),P&&P(e,t)},readOnly:M,ref:k,required:N,ownerState:X,tabIndex:F,type:j},"checkbox"===j&&void 0===L?{}:{value:L},w)),O?d:C]}))}))},43318:(e,t,n)=>{n.d(t,{A:()=>C});var a=n(84849),o=n(27326),i=n(85672),r=n(72574),s=n(25234),c=n(16775),d=n(2866),l=n(25676),u=n(75520),p=n(60308),m=n(37300),h=n(10644);function v(e){return(0,h.Ay)("MuiInputAdornment",e)}const A=(0,m.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var b,g=n(38009),f=n(65908);const y=["children","className","component","disablePointerEvents","disableTypography","position","variant"],x=(0,p.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["position".concat((0,c.A)(n.position))],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===n.variant&&{["&.".concat(A.positionStart,"&:not(.").concat(A.hiddenLabel,")")]:{marginTop:16}},"start"===n.position&&{marginRight:8},"end"===n.position&&{marginLeft:8},!0===n.disablePointerEvents&&{pointerEvents:"none"})})),C=i.forwardRef((function(e,t){const n=(0,g.b)({props:e,name:"MuiInputAdornment"}),{children:p,className:m,component:h="div",disablePointerEvents:A=!1,disableTypography:C=!1,position:S,variant:w}=n,k=(0,a.A)(n,y),R=(0,u.A)()||{};let I=w;w&&R.variant,R&&!I&&(I=R.variant);const P=(0,o.A)({},n,{hiddenLabel:R.hiddenLabel,size:R.size,disablePointerEvents:A,position:S,variant:I}),z=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:a,position:o,size:i,variant:r}=e,d={root:["root",n&&"disablePointerEvents",o&&"position".concat((0,c.A)(o)),r,a&&"hiddenLabel",i&&"size".concat((0,c.A)(i))]};return(0,s.A)(d,v,t)})(P);return(0,f.jsx)(l.A.Provider,{value:null,children:(0,f.jsx)(x,(0,o.A)({as:h,ownerState:P,className:(0,r.A)(z.root,m),ref:t},k,{children:"string"!==typeof p||C?(0,f.jsxs)(i.Fragment,{children:["start"===S?b||(b=(0,f.jsx)("span",{className:"notranslate",children:"\u200b"})):null,p]}):(0,f.jsx)(d.A,{color:"text.secondary",children:p})}))})}))},51808:(e,t,n)=>{var a=n(39744);t.A=void 0;var o=a(n(24956)),i=n(65908);t.A=(0,o.default)((0,i.jsx)("path",{d:"M19 6.41 17.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"}),"Clear")},63575:(e,t,n)=>{var a=n(39744);t.A=void 0;var o=a(n(24956)),i=n(65908);t.A=(0,o.default)((0,i.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchOutlined")},66654:(e,t,n)=>{var a=n(39744);t.A=void 0;var o=a(n(24956)),i=n(65908);t.A=(0,o.default)((0,i.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu")},91834:(e,t,n)=>{n.d(t,{A:()=>N});var a=n(57528),o=n(84849),i=n(27326),r=n(85672),s=n(72574),c=n(8913),d=n(25234);function l(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function u(e){return parseFloat(e)}var p=n(40835),m=n(60308),h=n(38009),v=n(37300),A=n(10644);function b(e){return(0,A.Ay)("MuiSkeleton",e)}(0,v.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var g,f,y,x,C=n(65908);const S=["animation","className","component","height","style","variant","width"];let w,k,R,I;const P=(0,c.i7)(w||(w=g||(g=(0,a.A)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"])))),z=(0,c.i7)(k||(k=f||(f=(0,a.A)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"])))),M=(0,m.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((e=>{let{theme:t,ownerState:n}=e;const a=l(t.shape.borderRadius)||"px",o=u(t.shape.borderRadius);return(0,i.A)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:(0,p.X4)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===n.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(o).concat(a,"/").concat(Math.round(o/.6*10)/10).concat(a),"&:empty:before":{content:'"\\00a0"'}},"circular"===n.variant&&{borderRadius:"50%"},"rounded"===n.variant&&{borderRadius:(t.vars||t).shape.borderRadius},n.hasChildren&&{"& > *":{visibility:"hidden"}},n.hasChildren&&!n.width&&{maxWidth:"fit-content"},n.hasChildren&&!n.height&&{height:"auto"})}),(e=>{let{ownerState:t}=e;return"pulse"===t.animation&&(0,c.AH)(R||(R=y||(y=(0,a.A)(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "]))),P)}),(e=>{let{ownerState:t,theme:n}=e;return"wave"===t.animation&&(0,c.AH)(I||(I=x||(x=(0,a.A)(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 2s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ",",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "]))),z,(n.vars||n).palette.action.hover)})),N=r.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiSkeleton"}),{animation:a="pulse",className:r,component:c="span",height:l,style:u,variant:p="text",width:m}=n,v=(0,o.A)(n,S),A=(0,i.A)({},n,{animation:a,component:c,variant:p,hasChildren:Boolean(v.children)}),g=(e=>{const{classes:t,variant:n,animation:a,hasChildren:o,width:i,height:r}=e,s={root:["root",n,a,o&&"withChildren",o&&!i&&"fitContent",o&&!r&&"heightAuto"]};return(0,d.A)(s,b,t)})(A);return(0,C.jsx)(M,(0,i.A)({as:c,ref:t,className:(0,s.A)(g.root,r),ownerState:A},v,{style:(0,i.A)({width:m,height:l},u)}))}))}}]); \ No newline at end of file diff --git a/build/static/js/8445.64dd4a5c.chunk.js b/build/static/js/8445.64dd4a5c.chunk.js new file mode 100644 index 0000000..6806841 --- /dev/null +++ b/build/static/js/8445.64dd4a5c.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[8445],{855:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(68106),n=a(82522),o=a(65908);function l(e){var t,a;let l,i,{children:r,type:c="scale",direction:d="right",offset:u=10,scale:p={hover:1.05,tap:.95}}=e;switch(d){case"up":case"left":l=u,i=0;break;default:l=0,i=u}const[m,h]=(0,s.Y)(l,i),[x,g]=(0,s.Y)(l,i);switch(c){case"rotate":return(0,o.jsx)(n.P.div,{animate:{rotate:360},transition:{repeat:1/0,repeatType:"loop",duration:2,repeatDelay:0},children:r});case"slide":return"up"===d||"down"===d?(0,o.jsx)(n.P.div,{animate:{y:void 0!==x?x:""},onHoverEnd:()=>g(),onHoverStart:()=>g(),children:r}):(0,o.jsx)(n.P.div,{animate:{x:void 0!==m?m:""},onHoverEnd:()=>h(),onHoverStart:()=>h(),children:r});default:return"number"===typeof p&&(p={hover:p,tap:p}),(0,o.jsx)(n.P.div,{whileHover:{scale:null===(t=p)||void 0===t?void 0:t.hover},whileTap:{scale:null===(a=p)||void 0===a?void 0:a.tap},children:r})}}},20466:(e,t,a)=>{a.d(t,{k:()=>n});var s=a(13659);const n=(e,t,a)=>(0,s.M8)(e,{variant:t,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:a||2e3})},42041:()=>{},79520:(e,t,a)=>{a.d(t,{D:()=>n,F:()=>s});const s=async(e,t)=>{const a=null===e||void 0===e?void 0:e.latitude,s=null===e||void 0===e?void 0:e.longitude,n=null===t||void 0===t?void 0:t.latitude,o=null===t||void 0===t?void 0:t.longitude;if(null==a||null==s||null==n||null==o)throw new Error("Invalid coordinates");const l={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_API_URL:"https://mock-data-api-nextjs.vercel.app/",REACT_APP_AUTH0_CLIENT_ID:"",REACT_APP_AUTH0_DOMAIN:"",REACT_APP_AWS_APP_CLIENT_ID:"",REACT_APP_AWS_POOL_ID:"",REACT_APP_FIREBASE_API_KEY:"",REACT_APP_FIREBASE_APP_ID:"",REACT_APP_FIREBASE_AUTH_DOMAIN:"",REACT_APP_FIREBASE_MEASUREMENT_ID:"",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"",REACT_APP_FIREBASE_PROJECT_ID:"",REACT_APP_FIREBASE_STORAGE_BUCKET:"",REACT_APP_GOOGLE_MAPS_API_KEY:"AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8",REACT_APP_RIDER_ACCESS_ID:"AAAAILMpCEU:APA91bEavuOllBI6sFgYtxXAgNmAVwNA-MnCMHLGlR4_t7UqpLajAkdn3T0CZr_zaLBknLyim9ytFLMZgbeXmKqTad_PKCbqlYjHpaizVrLXtecxqyEy4UktIacK2UvHVUATHL-7VQQk",REACT_APP_STAFF_TOKEN:"",REACT_APP_URL:"https://jupiter.nearle.app/live/api/v1",REACT_APP_URL2:"https://jupiter.nearle.app/live/api/v2",REACT_APP_URL3:"https://jupiter.nearle.app/live/api/v3",REACT_APP_VERSION:"v2.1.0"}.REACT_APP_OSRM_URL||"https://router.project-osrm.org";try{const e="".concat(l,"/route/v1/driving/").concat(s,",").concat(a,";").concat(o,",").concat(n,"?overview=false"),t=await fetch(e);if(t.ok){const e=await t.json();if(e.routes&&e.routes.length>0){const t=e.routes[0].distance/1e3;return Math.round(t)}}}catch(p){console.warn("OSRM API failed, falling back to Haversine math:",p)}const i=e=>e*Math.PI/180,r=i(n-a),c=i(o-s),d=Math.sin(r/2)*Math.sin(r/2)+Math.cos(i(a))*Math.cos(i(n))*Math.sin(c/2)*Math.sin(c/2),u=6371*(2*Math.atan2(Math.sqrt(d),Math.sqrt(1-d)));return Math.round(1.3*u)},n=(e,t,a,s)=>e{a.r(t),a.d(t,{default:()=>he});var s=a(22555),n=a(85672),o=a(76264),l=a(48738),i=a(84007),r=a(2866),c=a(17488),d=a(86270),u=a(1939),p=a(80911),m=a(43318),h=a(11969),x=a(83900),g=a(28579),A=a(71392),f=a(94524),v=a(12010),j=a(19619),b=a(29398),y=a(29776),S=a(58571),k=a(5670),_=a(17450),P=a(43281),N=a(79520),C=a(38464),w=a(81600),I=a(20605),R=a(15172),E=a(51808),z=a(96515),D=a(90215),M=a(66157),L=a(69039),Y=a(76453),T=a(52351),F=(a(4114),a(59008),a(91939)),H=a(65293),W=a(12557),O=a(58689),B=a(46077),U=a.n(B),q=a(13659),K=a(26777),V=a(96048),G=a(3273),X=a(13763),Z=a(71188),Q=a(88664),$=a(37856),J=a(20466),ee=a(38965),te=a(43e3),ae=a(69191),se=a(87),ne=a(91001),oe=a(73413),le=a.n(oe),ie=(a(98443),a(42041),a(855)),re=a(65908),ce=a(22686);U().extend(ce);const de="undefined"!==typeof window?new(le().Icon)({iconUrl:"https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-blue.png",shadowUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]}):null,ue="undefined"!==typeof window?new(le().Icon)({iconUrl:"https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-red.png",shadowUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]}):null,pe=e=>{let{startPoint:t,endPoint:a}=e;const s=(0,ee.ko)();return(0,n.useEffect)((()=>{const e=[],n=parseFloat(null===t||void 0===t?void 0:t.latitude),o=parseFloat(null===t||void 0===t?void 0:t.longitude),l=parseFloat(null===a||void 0===a?void 0:a.latitude),i=parseFloat(null===a||void 0===a?void 0:a.longitude);isNaN(n)||isNaN(o)||0===n||0===o||e.push([n,o]),isNaN(l)||isNaN(i)||0===l||0===i||e.push([l,i]),1===e.length?s.setView(e[0],14):2===e.length&&s.fitBounds(e,{padding:[50,50]})}),[null===t||void 0===t?void 0:t.latitude,null===t||void 0===t?void 0:t.longitude,null===a||void 0===a?void 0:a.latitude,null===a||void 0===a?void 0:a.longitude,s]),null},me=e=>{let{startPoint:t,endPoint:a,appLocaLat:s,appLocaLng:o}=e;const l=[parseFloat(s)||11.0168,parseFloat(o)||76.9558],i=(null===t||void 0===t?void 0:t.latitude)&&(null===t||void 0===t?void 0:t.longitude)&&0!==parseFloat(t.latitude),r=(null===a||void 0===a?void 0:a.latitude)&&(null===a||void 0===a?void 0:a.longitude)&&0!==parseFloat(a.latitude),c=i?[parseFloat(t.latitude),parseFloat(t.longitude)]:null,d=r?[parseFloat(a.latitude),parseFloat(a.longitude)]:null,[u,p]=n.useState([]);return n.useEffect((()=>{if(!i||!r)return void p([]);(async()=>{const e="https://router.project-osrm.org/route/v1/driving/".concat(t.longitude,",").concat(t.latitude,";").concat(a.longitude,",").concat(a.latitude,"?overview=full&geometries=geojson");try{var s;const t=await fetch(e),a=await t.json();if(null!==(s=a.routes)&&void 0!==s&&s.length){const e=a.routes[0].geometry.coordinates.map((e=>{let[t,a]=e;return[a,t]}));p(e)}else p([c,d])}catch(n){console.error("OSRM Error:",n),p([c,d])}})()}),[t.latitude,t.longitude,a.latitude,a.longitude,i,r]),(0,re.jsx)("div",{style:{position:"relative",width:"100%",height:"100%"},children:(0,re.jsxs)(te.W,{center:l,zoom:12,style:{width:"100%",height:"100%"},zoomControl:!0,children:[(0,re.jsx)(ae.e,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:"\xa9 OpenStreetMap contributors"}),i&&(0,re.jsx)(se.p,{position:c,icon:de}),r&&(0,re.jsx)(se.p,{position:d,icon:ue}),u.length>0?(0,re.jsx)(ne.R,{positions:u,color:"#662582",weight:4}):i&&r&&(0,re.jsx)(ne.R,{positions:[c,d],color:"#662582",weight:4}),(0,re.jsx)(pe,{startPoint:t,endPoint:a})]})})};const he=()=>{Y.A.setApiKey("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8");const e=n.useRef(!1),t=(0,z.Zp)(),a=(0,L.A)(),B=(0,o.A)(a.breakpoints.down("md")),ee=(0,n.useRef)(null),te=(0,n.useRef)(null),[ae,se]=n.useState(""),[ne,oe]=n.useState(""),[le,ce]=(0,n.useState)(localStorage.getItem("locationid")),[de,ue]=(0,n.useState)(!1),pe=(0,n.useRef)(null),he=(0,n.useRef)(null),xe=(0,n.useRef)(null),[ge,Ae]=(0,n.useState)(0),[fe,ve]=(0,n.useState)(!1),[je,be]=(0,n.useState)([]),[ye,Se]=(0,n.useState)(U()().format("MM-DD-YYYY")),[ke,_e]=(0,n.useState)(),[Pe,Ne]=(0,n.useState)(),[Ce,we]=(0,n.useState)([]),[Ie,Re]=(0,n.useState)(""),[Ee,ze]=(0,n.useState)(!1),[De,Me]=(0,n.useState)(!1),[Le,Ye]=(0,n.useState)(!1),[Te,Fe]=(0,n.useState)(""),[He,We]=(0,n.useState)(),[Oe,Be]=(0,n.useState)({}),[Ue,qe]=(0,n.useState)(""),[Ke,Ve]=(0,n.useState)([]),[Ge,Xe]=(0,n.useState)({latitude:0,longitude:0}),[Ze,Qe]=(0,n.useState)({latitude:0,longitude:0}),[$e,Je]=(0,n.useState)(!1),[et,tt]=(0,n.useState)(0),[at,st]=(0,n.useState)(0),[nt,ot]=(0,n.useState)(0),[lt,it]=(0,n.useState)(0),[rt,ct]=(0,n.useState)(0),[dt,ut]=(0,n.useState)([]),[pt,mt]=(0,n.useState)("Select "),[ht,xt]=(0,n.useState)(0),[gt,At]=(0,n.useState)(""),[ft,vt]=(0,n.useState)(0),[jt,bt]=(0,n.useState)(0),[yt,St]=(0,n.useState)(null),[kt,_t]=(0,n.useState)(!1),[Pt,Nt]=(0,n.useState)(""),[Ct,wt]=(0,n.useState)([]),[It,Rt]=(0,n.useState)(null),[Et,zt]=(0,n.useState)(null),[Dt,Mt]=(0,n.useState)(null),[Lt,Yt]=(0,n.useState)(0),[Tt,Ft]=(0,n.useState)(0),[Ht,Wt]=(0,n.useState)(0),[Ot,Bt]=(0,n.useState)([]),[Ut,qt]=(0,n.useState)(),[Kt,Vt]=(0,n.useState)(),[Gt,Xt]=(0,n.useState)(),[Zt,Qt]=(0,n.useState)("Select Location"),$t=localStorage.getItem("userid"),[Jt,ea]=(0,n.useState)(0),[ta,aa]=(0,n.useState)(0),[sa,na]=(0,n.useState)(0),[oa,la]=(0,n.useState)(0),[ia,ra]=(0,n.useState)(),[ca,da]=(0,n.useState)(),[ua,pa]=(0,n.useState)(!1),[ma,ha]=(0,n.useState)(!1),[xa,ga]=(0,n.useState)(0),[Aa,fa]=(0,n.useState)(0),[va,ja]=(0,n.useState)(1),[ba,ya]=(0,n.useState)(null),[Sa,ka]=(0,n.useState)(null),[_a,Pa]=(0,n.useState)(null),[Na,Ca]=(0,n.useState)(null),[wa,Ia]=(0,n.useState)(1),Ra=!!(null!==Et&&void 0!==Et&&Et.firstname&&null!==Et&&void 0!==Et&&Et.contactno&&10===String(Et.contactno).length&&null!==Et&&void 0!==Et&&Et.doorno&&null!==Et&&void 0!==Et&&Et.suburb&&null!==Et&&void 0!==Et&&Et.postcode);(0,n.useEffect)((()=>{console.log("pickupSlotsList",_a),console.log("pickupSlot",Na)}),[_a,Na]),"undefined"===typeof window||e.current||(document.querySelector("#google-maps")||function(e,t,a){if(!t)return;const s=document.createElement("script");s.setAttribute("async",""),s.setAttribute("id",a),s.src=e,t.appendChild(s)}("https://maps.googleapis.com/maps/api/js?key=".concat("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8","&libraries=places&location=10.3656,77.9690&radius=50000&components=country:IN&strictbounds=true"),document.querySelector("head"),"google-maps"),e.current=!0);(0,n.useEffect)((()=>{(async()=>{try{const e=await M.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat($t));console.log("fetchAppLocations",e.data.details),Qt(e.data.details)}catch(e){console.log("locationRes",e)}})()}),[]);(0,n.useEffect)((()=>{ge&&(async()=>{Me(!0),await M.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenants/?applocationid=").concat(ge,"&status=active")).then((e=>{if(console.log(e),e.data.status){let t=[];e.data.details.map((e=>{t.push((0,s.A)((0,s.A)({},e),{},{label:"".concat(e.tenantname)}))})),Ve(t)}Me(!1)})).catch((e=>{console.log(e),Me(!1)}))})()}),[ge]);(0,n.useEffect)((()=>{console.log("startPoint",Ge),console.log("endPoint",Ze),0!=Ge.latitude&&0!=Ge.longitude&&0!=Ze.latitude&&0!=Ze.longitude&&Ea(Ge,Ze)}),[Ge,Ze]);const Ea=async(e,t)=>{try{const a=await(0,N.F)(e,t);console.log("calculated distance in km:",a),tt(a);const s=(0,N.D)(a,at,nt,lt);console.log("total charge:",s),ct(s),Je(!0),a>Gt&&(Je(!0),ve(!0));const n=40,o=Math.round(a/n*60);console.log("Distance: ".concat(a,", Duration: ").concat(o))}catch(a){console.error("Error calculating distance:",a)}};(0,n.useEffect)((()=>{ft&&Ma()}),[(null===Pt||void 0===Pt?void 0:Pt.length)>3,""==Pt,ft]),(0,n.useEffect)((()=>{if(Ce[0]){let e=[];Ce.map((t=>{U()().diff(U()("".concat(U()(ye).format("MM-DD-YYYY")," ").concat(U()(t).format("HH:mm:ss"))),"m")<=0&&e.push(t)}))}}),[Ce]);(0,n.useEffect)((()=>{ft&&(async()=>{Me(!0),console.log("tenantid",ft),await M.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantinfo/?tenantid=").concat(ft)).then((e=>{console.log("fetchtenantinfo",e),e.data.status&&(Be(e.data.details),za(),mt(e.data.details.subcategoryname),xt(e.data.details.subcategoryid)),Me(!1)})).catch((e=>{console.log(e),Me(!1)}))})()}),[ft]);(0,n.useEffect)((()=>{(async()=>{await M.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getsubcategories/?moduleid=6")).then((e=>{console.log("subcateRes",e.data.details),e.data.status&&ut(e.data.details)})).catch((e=>{console.log(e)}))})()}),[]);(0,n.useEffect)((()=>{ge&&(async()=>{Me(!0),await M.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getapplocations/?applocationid=").concat(ge)).then((e=>{console.log("fetchTiming",e);const{opentime:t,closetime:a,latitude:s,longitude:n,radius:o}=e.data.details[0];if(e.data.status){qt(s),Vt(n),Xt(o),console.log("radius",o),_e("".concat(U()().format("MM-DD-YYYY")," ").concat(t)),Ne("".concat(U()().format("MM-DD-YYYY")," ").concat(a)),console.log("starttime","".concat(U()().format("MM-DD-YYYY")," ").concat(t)),console.log("endtime","".concat(U()().format("MM-DD-YYYY")," ").concat(a," "));let e=[];for(let s="".concat(U()().format("MM-DD-YYYY")," ").concat(t),n=0;U()("".concat(U()().format("MM-DD-YYYY")," ").concat(a," ")).diff(s,"m")>=0;n++,s=U()(s).add(30,"m"))e.push(s);console.log("setTimeslotarr",e),we(e)}Me(!1)})).catch((e=>{console.log(e),Me(!1)}))})()}),[ge]);const za=async()=>{Me(!0),await M.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getapplocationconfig/?applocationid=").concat(ge)).then((e=>{const t=e.data.details.applocationadmins.map((e=>e.userfcmtokem));e.data.status&&We(t),Me(!1)})).catch((e=>{console.log(e),Me(!1)}))};(0,n.useEffect)((()=>{ke&&Pe&&za()}),[ke,Pe]);const Da=(e,t,a)=>{(0,q.M8)(e,{variant:t,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:a||1500}),console.log(Te)},Ma=async()=>{ze(!0);try{let e=""==Pt?"".concat("https://jupiter.nearle.app/live/api/v1","/customers/gettenantcustomers/?tenantid=").concat(ft,"&pageno=1&pagesize=30"):"".concat("https://jupiter.nearle.app/live/api/v1","/customers/search/?tenantid=").concat(ft,"&keyword=").concat(Pt);await M.A.get(e).then((e=>{e.data.status&&(console.log("clientdetails",e.data.details),be(e.data.details),wt(e.data.details)),ze(!1)})).catch((e=>{console.log(e),ze(!1),Da("server error","warning")}))}catch(e){console.log(e),ze(!1)}},La=async()=>{Me(!0),await M.A.post("".concat("https://jupiter.nearle.app/live/api/v1","/utils/sendnotifications"),{priority:"high",registration_ids:He,data:{accessid:"AAAAILMpCEU:APA91bEavuOllBI6sFgYtxXAgNmAVwNA-MnCMHLGlR4_t7UqpLajAkdn3T0CZr_zaLBknLyim9ytFLMZgbeXmKqTad_PKCbqlYjHpaizVrLXtecxqyEy4UktIacK2UvHVUATHL-7VQQk"},notification:{title:"Nearle Merchant",body:"An Order has been placed successfully,kindly process the same",sound:"ring"}}).then((e=>{console.log(e),"Success"==e.data.message&&(0,q.M8)("Notification sent Successfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:1e3}),Me(!1)})).catch((e=>{console.log(e),(0,q.M8)(e.message,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:1e3}),Me(!1)}))};(0,n.useEffect)((()=>{if(ae){const e=document.getElementById("addressAuto1"),t=new window.google.maps.places.Autocomplete(e,{strictBounds:!0,bounds:new window.google.maps.Circle({center:new window.google.maps.LatLng(Ut,Kt),radius:1e3*Gt}).getBounds()});t.addListener("place_changed",(()=>{const e=t.getPlace();se("".concat(e.name,", ").concat(e.formatted_address)),console.log("new place",e),console.log(" pick (new place) lat lng",{lat:e.geometry.location.lat(),lng:e.geometry.location.lng()}),Xe({latitude:e.geometry.location.lat(),longitude:e.geometry.location.lng()}),zt((0,s.A)((0,s.A)({},Et),{},{address:"".concat(e.name," ").concat(e.formatted_address)}));const a={address:"".concat(e.name," ").concat(e.formatted_address),street_number:"",route:"",locality:"",sublocality_level_1:"",administrative_area_level_3:"",administrative_area_level_1:"",country:"",postal_code:""};e.address_components.forEach((e=>{e.types.forEach((t=>{switch(t){case"street_number":a.street_number=e.long_name;break;case"route":a.route=e.long_name;break;case"locality":a.locality=e.long_name;break;case"sublocality_level_1":a.sublocality_level_1=e.long_name;break;case"administrative_area_level_3":a.administrative_area_level_3=e.long_name;break;case"administrative_area_level_1":a.administrative_area_level_1=e.long_name;break;case"country":a.country=e.long_name;break;case"postal_code":a.postal_code=e.long_name}}))})),zt((0,s.A)((0,s.A)({},Et),{},{address:a.address,doorno:"".concat(a.street_number," ").concat(a.route),suburb:a.sublocality_level_1,city:a.locality,postcode:a.postal_code,latitude:e.geometry.location.lat(),longitude:e.geometry.location.lng()})),console.log("Pick Address:",a)}))}}),[ae]),(0,n.useEffect)((()=>{if(ne){const e=document.getElementById("addressAuto2"),t=new window.google.maps.places.Autocomplete(e,{strictBounds:!0,bounds:new window.google.maps.Circle({center:new window.google.maps.LatLng(Ut,Kt),radius:1e3*Gt}).getBounds()});t.addListener("place_changed",(()=>{const e=t.getPlace();oe("".concat(e.name,", ").concat(e.formatted_address)),console.log("new place",e),console.log("drop (new place) lat lng",{lat:e.geometry.location.lat(),lng:e.geometry.location.lng()}),Qe({latitude:e.geometry.location.lat(),longitude:e.geometry.location.lng()}),Mt((0,s.A)((0,s.A)({},Dt),{},{address:"".concat(e.name," ").concat(e.formatted_address)}));const a={address:"".concat(e.name," ").concat(e.formatted_address),street_number:"",route:"",locality:"",sublocality_level_1:"",administrative_area_level_3:"",administrative_area_level_1:"",country:"",postal_code:""};e.address_components.forEach((e=>{e.types.forEach((t=>{switch(t){case"street_number":a.street_number=e.long_name;break;case"route":a.route=e.long_name;break;case"locality":a.locality=e.long_name;break;case"sublocality_level_1":a.sublocality_level_1=e.long_name;break;case"administrative_area_level_3":a.administrative_area_level_3=e.long_name;break;case"administrative_area_level_1":a.administrative_area_level_1=e.long_name;break;case"country":a.country=e.long_name;break;case"postal_code":a.postal_code=e.long_name}}))})),Mt((0,s.A)((0,s.A)({},Dt),{},{address:a.address,doorno:"".concat(a.street_number," ").concat(a.route),suburb:a.sublocality_level_1,city:a.locality,postcode:a.postal_code,latitude:e.geometry.location.lat(),longitude:e.geometry.location.lng()})),console.log("Drop Address:",a)}))}}),[ne]);return(0,re.jsxs)(re.Fragment,{children:[De&&(0,re.jsx)(T.A,{}),Ee&&(0,re.jsx)(T.A,{}),(0,re.jsxs)(l.A,{className:"orders-workspace-bg",sx:{p:0,m:0,minHeight:"auto",display:"flex",flexDirection:"column"},children:[(0,re.jsxs)(i.A,{className:"orders-card page-header-row",sx:{mb:{xs:1.5,sm:2},display:"flex",flexDirection:{xs:"column",lg:"row"},alignItems:{xs:"stretch",lg:"center"},justifyContent:"space-between",gap:{xs:1.25,lg:2},px:{xs:1.75,sm:2},py:{xs:.75,sm:.9},flexShrink:0},children:[(0,re.jsx)(l.A,{className:"header-title-block",sx:{display:"flex",flexDirection:"column",gap:0,minWidth:0,flex:{lg:"1 1 auto"}},children:(0,re.jsx)(l.A,{sx:{display:"flex",alignItems:"center",gap:1},children:(0,re.jsx)(r.A,{sx:{fontWeight:700,color:"#1e293b",lineHeight:1.15,fontSize:{xs:"17px",sm:"19px"}},children:"Create New Order"})})}),(0,re.jsxs)(l.A,{className:"header-configurators",sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:{xs:"stretch",sm:"center"},justifyContent:{xs:"stretch",lg:"flex-end"},gap:1,p:0,width:{xs:"100%",lg:"auto"},flexShrink:0},children:[(0,re.jsx)(l.A,{sx:{width:{xs:"100%",sm:180,md:200,xl:220}},children:(0,re.jsx)(c.A,{fullWidth:!0,autoFocus:!0,size:"small",ref:ee,options:Zt||[],getOptionLabel:e=>"".concat(e.locationname),className:"header-compact-input",onChange:(e,t,a)=>{"clear"===a?(Ae(0),vt(0),ya(null),Ve([]),bt(0),ka(null),Bt([]),zt(null),Mt(null)):(Ae(t.applocationid),zt(null),Mt(null),vt(0),ya(null),bt(0),ka(null),Bt([]))},renderInput:e=>(0,re.jsx)(d.A,(0,s.A)((0,s.A)({},e),{},{size:"small",placeholder:"Choose Location",label:"Location",InputLabelProps:{shrink:!0},className:"header-compact-tf",InputProps:(0,s.A)((0,s.A)({},e.InputProps),{},{startAdornment:(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(R.sIY,{style:{color:"#94a3b8",fontSize:12,marginRight:6,flexShrink:0}}),e.InputProps.startAdornment]})})}))})}),(0,re.jsx)(l.A,{sx:{width:{xs:"100%",sm:180,md:200,xl:220}},children:(0,re.jsx)(c.A,{fullWidth:!0,size:"small",className:"header-compact-input",options:Ke||[],value:ba,onOpen:e=>{ge||(e.preventDefault(),(0,J.k)("Please select a your location first!","warning",3e3),setTimeout((()=>{var e;null===(e=ee.current)||void 0===e||e.focus()}),0))},onChange:(e,t,a)=>{"clear"==a?(vt(0),ya(null),bt(0),ka(null),Bt([]),zt(null),Mt(null)):(vt((null===t||void 0===t?void 0:t.tenantid)||0),ya(t),bt(0),ka(null),(async e=>{try{const t=await M.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantpricing/?tenantid=").concat(e));console.log("pricingResponse",t.data.details),st(t.data.details.baseprice),ot(t.data.details.priceperkm),it(t.data.details.minkm)}catch(t){console.log("fetchTenantPricing error",t)}})(t.tenantid),(async e=>{try{const t=await M.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantlocations/?tenantid=").concat(e));console.log("gettenantlocations",t.data.details),1==t.data.details.length?(Bt(t.data.details),Rt(t.data.details[0]),bt(t.data.details[0].locationid),ka(t.data.details[0].locationid),Pa(t.data.details[0].slots)):Bt(t.data.details)}catch(t){console.log("gettenantlocations",t)}})(t.tenantid),Mt(null))},renderInput:e=>(0,re.jsx)(d.A,(0,s.A)((0,s.A)({},e),{},{size:"small",placeholder:"Choose Client",label:"Client",inputRef:te,InputLabelProps:{shrink:!0},className:"header-compact-tf",InputProps:(0,s.A)((0,s.A)({},e.InputProps),{},{startAdornment:(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(R.x$1,{style:{color:"#94a3b8",fontSize:11,marginRight:6,flexShrink:0}}),e.InputProps.startAdornment]})})}))})}),(0,re.jsx)(l.A,{sx:{width:{xs:"100%",sm:200,md:220,xl:240}},children:1==Ot.length?(0,re.jsx)(d.A,{variant:"outlined",fullWidth:!0,size:"small",label:"Business Location",value:Ot[0].locationname,InputLabelProps:{shrink:!0},className:"header-compact-tf",InputProps:{style:{color:a.palette.primary.main},startAdornment:(0,re.jsx)(Q.A,{style:{color:"#94a3b8",fontSize:14,marginRight:6,flexShrink:0}})}}):(0,re.jsx)(c.A,{fullWidth:!0,size:"small",className:"header-compact-input",value:Sa,options:Ot||[],getOptionLabel:e=>"".concat(e.locationname," (").concat(e.suburb,")")||0,onOpen:e=>{ge||ft?ft||(e.preventDefault(),(0,J.k)("Please select a your Tenant first!","warning",3e3),setTimeout((()=>{var e;null===(e=te.current)||void 0===e||e.focus()}),0)):(e.preventDefault(),(0,J.k)("Please select Location and Tenant first!","warning",3e3),setTimeout((()=>{var e;null===(e=ee.current)||void 0===e||e.focus()}),0))},onChange:(e,t,a)=>{"clear"===a?(bt(0),ka(null),zt(null)):(bt(t.locationid||0),ka(t),Rt(t),Pa(null===t||void 0===t?void 0:t.slots))},renderInput:e=>(0,re.jsx)(d.A,(0,s.A)((0,s.A)({},e),{},{size:"small",placeholder:"Select Business Locations",label:"Business Location",color:"primary",InputLabelProps:{shrink:!0},className:"header-compact-tf",InputProps:(0,s.A)((0,s.A)({},e.InputProps),{},{startAdornment:(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(Q.A,{style:{color:"#94a3b8",fontSize:14,marginRight:6,flexShrink:0}}),e.InputProps.startAdornment]})})}))})})]})]}),(0,re.jsxs)(u.Ay,{container:!0,spacing:{xs:2.5,sm:3,lg:4},children:[(0,re.jsxs)(u.Ay,{item:!0,xs:12,lg:7.5,sx:{display:"flex",flexDirection:"column",gap:{xs:1.5,sm:1.75,lg:2}},children:[(0,re.jsxs)(i.A,{className:"orders-card",sx:{p:{xs:1.25,sm:1.5,lg:1.5}},children:[(0,re.jsxs)(l.A,{className:"route-stepper",children:[(0,re.jsxs)(l.A,{className:"route-step ".concat(1===wa?"is-active":""," ").concat(Ra?"is-done":""," step-pickup"),onClick:()=>Ia(1),role:"button",tabIndex:0,children:[(0,re.jsx)(l.A,{className:"route-step-index",children:Ra&&1!==wa?(0,re.jsx)(w.CMH,{}):"1"}),(0,re.jsxs)(l.A,{className:"route-step-text",children:[(0,re.jsx)(r.A,{className:"route-step-title",children:"Pickup"}),(0,re.jsx)(r.A,{className:"route-step-sub",children:"Where to collect"})]})]}),(0,re.jsxs)(l.A,{className:"route-step-connector ".concat(Ra?"is-done":""),children:[(0,re.jsx)(l.A,{className:"route-step-line"}),(0,re.jsx)(l.A,{className:"route-step-line-arrow",children:(0,re.jsx)(w.Z0P,{})})]}),(0,re.jsxs)(l.A,{className:"route-step ".concat(2===wa?"is-active":""," step-drop ").concat(Ra?"":"is-locked"),onClick:()=>{Ra?Ia(2):Da("Please complete Pickup details first","warning",2e3)},role:"button",tabIndex:0,children:[(0,re.jsx)(l.A,{className:"route-step-index",children:"2"}),(0,re.jsxs)(l.A,{className:"route-step-text",children:[(0,re.jsx)(r.A,{className:"route-step-title",children:"Drop"}),(0,re.jsx)(r.A,{className:"route-step-sub",children:"Where to deliver"})]})]})]}),(0,re.jsxs)(l.A,{className:"route-flow",children:[(0,re.jsxs)(l.A,{className:"location-panel pickup-panel",sx:{display:1===wa?"block":"none"},children:[(0,re.jsxs)(l.A,{className:"lp-header",children:[(0,re.jsxs)(l.A,{className:"lp-header-title",children:[(0,re.jsx)(l.A,{className:"lp-badge",children:(0,re.jsx)(R.sIY,{})}),(0,re.jsxs)(l.A,{children:[(0,re.jsx)(r.A,{className:"lp-title",children:"Pickup"}),(0,re.jsx)(r.A,{className:"lp-subtitle",children:"Where to collect the parcel"})]})]}),(0,re.jsx)(l.A,{className:"lp-header-actions",children:(0,re.jsx)(p.A,{className:"lp-action-btn",size:"small",disabled:!jt,startIcon:(0,re.jsx)(K.A,{style:{fontSize:13}}),onClick:()=>{ge||ft||jt?ge||ft?ge?(_t(!0),Yt(1),zt(null),se(""),Nt("")):(0,J.k)("Please select Location!","warning",3e3):(0,J.k)("Please select Location and Tenant!","warning",3e3):(0,J.k)("Please select Location, Tenant and Business!","warning",3e3)},children:"From Saved"})})]}),(0,re.jsx)(r.A,{className:"field-group-caption",children:"Contact"}),(0,re.jsxs)(u.Ay,{container:!0,spacing:1.5,sx:{mt:.5},children:[(0,re.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,re.jsx)(d.A,{inputRef:pe,fullWidth:!0,size:"small",InputProps:{startAdornment:(0,re.jsx)(m.A,{position:"start",children:(0,re.jsx)(R.x$1,{style:{color:"#64748b"}})}),style:{borderRadius:"10px"}},variant:"outlined",label:"Contact Name",value:(null===Et||void 0===Et?void 0:Et.firstname)||"",onChange:e=>{zt((0,s.A)((0,s.A)({},Et),{},{firstname:e.target.value}))}})}),(0,re.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,re.jsx)(d.A,{error:ua,inputRef:he,fullWidth:!0,size:"small",type:"number",InputProps:{inputProps:{maxLength:10},startAdornment:(0,re.jsx)(m.A,{position:"start",children:(0,re.jsx)(w.dRU,{style:{color:ua?"#ef4444":"#64748b"}})}),style:{borderRadius:"10px"}},variant:"outlined",label:"Contact Number",value:(null===Et||void 0===Et?void 0:Et.contactno)||"",onChange:e=>{e.target.value.length<=10&&zt((0,s.A)((0,s.A)({},Et),{},{contactno:e.target.value})),ia==e.target.value?na(0):na(1),e.target.value.length<10?pa(!0):pa(!1)}})})]}),(0,re.jsx)(r.A,{className:"field-group-caption",sx:{mt:2},children:"Address Lookup"}),0==Tt?(0,re.jsx)(d.A,{id:"addressAuto1",fullWidth:!0,size:"small",placeholder:"Search Google Maps for an address...",variant:"outlined",value:ae||"",onChange:e=>se(e.target.value),helperText:"Start typing to auto-fill the address details below",FormHelperTextProps:{className:"address-search-helper pickup-helper"},InputProps:{startAdornment:(0,re.jsx)(m.A,{position:"start",children:(0,re.jsx)(K.A,{style:{fontSize:15,color:"#662582"}})}),endAdornment:(0,re.jsx)(h.A,{onClick:()=>{se(""),zt((0,s.A)((0,s.A)({},Et),{},{doorno:"",suburb:"",city:"",postcode:"",landmark:""})),Je(!1),Xe({latitude:0,longitude:0})},size:"small",children:(0,re.jsx)(P.A,{fontSize:"small"})}),style:{borderRadius:"10px",background:"#fff"}}}):(0,re.jsx)(d.A,{variant:"outlined",fullWidth:!0,size:"small",helperText:"Saved address selected \xb7 clear to search again",FormHelperTextProps:{className:"address-search-helper pickup-helper"},InputProps:{startAdornment:(0,re.jsx)(m.A,{position:"start",children:(0,re.jsx)(R.sIY,{style:{fontSize:14,color:"#662582"}})}),endAdornment:(0,re.jsx)(h.A,{onClick:()=>{Ft(0),zt((0,s.A)((0,s.A)({},Et),{},{doorno:"",suburb:"",city:"",postcode:"",landmark:""})),Je(!1),Xe({latitude:0,longitude:0})},size:"small",children:(0,re.jsx)(E.A,{fontSize:"small"})}),style:{borderRadius:"10px",background:"#fff"}},value:(null===Et||void 0===Et?void 0:Et.address)||"",onChange:e=>{zt((0,s.A)((0,s.A)({},Et),{},{address:e.target.value})),""==e.target.value&&(Ft(0),Je(!1),Xe({latitude:0,longitude:0}))}}),(0,re.jsx)(r.A,{className:"field-group-caption",sx:{mt:2},children:"Address Details"}),(0,re.jsxs)(u.Ay,{container:!0,spacing:1.5,sx:{mt:.5},children:[(0,re.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,re.jsx)(d.A,{fullWidth:!0,size:"small",InputProps:{startAdornment:(0,re.jsx)(m.A,{position:"start",children:(0,re.jsx)(I.V92,{style:{color:"#64748b",fontSize:"20px"}})}),style:{borderRadius:"10px"}},variant:"outlined",label:"Door No / Street",value:(null===Et||void 0===Et?void 0:Et.doorno)||"",onChange:e=>{zt((0,s.A)((0,s.A)({},Et),{},{doorno:e.target.value}))}})}),(0,re.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,re.jsx)(d.A,{fullWidth:!0,size:"small",InputProps:{startAdornment:(0,re.jsx)(m.A,{position:"start",children:(0,re.jsx)(R.sIY,{style:{color:"#64748b"}})}),style:{borderRadius:"10px"}},variant:"outlined",label:"Location",value:(null===Et||void 0===Et?void 0:Et.suburb)||"",onChange:e=>{zt((0,s.A)((0,s.A)({},Et),{},{suburb:e.target.value}))}})}),(0,re.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,re.jsx)(d.A,{fullWidth:!0,size:"small",InputProps:{startAdornment:(0,re.jsx)(m.A,{position:"start",children:(0,re.jsx)(D.BND,{style:{color:"#64748b",fontSize:"20px"}})}),style:{borderRadius:"10px"}},variant:"outlined",label:"Postcode",value:(null===Et||void 0===Et?void 0:Et.postcode)||"",onChange:e=>{zt((0,s.A)((0,s.A)({},Et),{},{postcode:e.target.value}))}})}),(0,re.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,re.jsx)(d.A,{fullWidth:!0,size:"small",InputProps:{startAdornment:(0,re.jsx)(m.A,{position:"start",children:(0,re.jsx)(R.Ndh,{style:{color:"#64748b"}})}),style:{borderRadius:"10px"}},variant:"outlined",label:"Landmark",value:(null===Et||void 0===Et?void 0:Et.landmark)||"",onChange:e=>{zt((0,s.A)((0,s.A)({},Et),{},{landmark:e.target.value}))}})})]}),1==sa&&(0,re.jsx)(l.A,{sx:{display:"flex",justifyContent:"flex-end",mt:1},children:(0,re.jsx)(l.A,{className:"save-later-pill",children:(0,re.jsx)(x.A,{control:(0,re.jsx)(g.A,{size:"small",checked:1===Jt,onChange:e=>{ea(e.target.checked?1:0)}}),label:"Save contact for later"})})}),(0,re.jsxs)(l.A,{className:"step-nav",children:[(0,re.jsx)(r.A,{className:"step-nav-hint",children:Ra?"Pickup looks good. Proceed to Drop details.":"Fill the required Pickup fields to continue."}),(0,re.jsx)(p.A,{className:"step-nav-btn step-nav-next",disabled:!Ra,endIcon:(0,re.jsx)(w.Z0P,{style:{fontSize:12}}),onClick:()=>Ia(2),children:"Continue to Drop"})]})]}),(0,re.jsxs)(l.A,{className:"location-panel drop-panel",sx:{display:2===wa?"block":"none"},children:[(0,re.jsxs)(l.A,{className:"lp-header",children:[(0,re.jsxs)(l.A,{className:"lp-header-title",children:[(0,re.jsx)(l.A,{className:"lp-badge",children:(0,re.jsx)(R.sIY,{})}),(0,re.jsxs)(l.A,{children:[(0,re.jsx)(r.A,{className:"lp-title",children:"Drop"}),(0,re.jsx)(r.A,{className:"lp-subtitle",children:"Where to deliver the parcel"})]})]}),(0,re.jsx)(l.A,{className:"lp-header-actions",children:(0,re.jsx)(p.A,{className:"lp-action-btn",size:"small",disabled:!jt,startIcon:(0,re.jsx)(K.A,{style:{fontSize:13}}),onClick:()=>{ge||ft||jt?ge||ft?ge?(_t(!0),Yt(2),oe("")):(0,J.k)("Please select Location!","warning",3e3):(0,J.k)("Please select Location and Tenant!","warning",3e3):(0,J.k)("Please select Location, Tenant and Business!","warning",3e3)},children:"From Saved"})})]}),(0,re.jsx)(r.A,{className:"field-group-caption",children:"Contact"}),(0,re.jsxs)(u.Ay,{container:!0,spacing:1.5,sx:{mt:.5},children:[(0,re.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,re.jsx)(d.A,{inputRef:xe,fullWidth:!0,size:"small",variant:"outlined",label:"Contact Name",InputProps:{startAdornment:(0,re.jsx)(m.A,{position:"start",children:(0,re.jsx)(R.x$1,{style:{color:"#64748b"}})}),style:{borderRadius:"10px"}},value:(null===Dt||void 0===Dt?void 0:Dt.firstname)||"",onChange:e=>{Mt((0,s.A)((0,s.A)({},Dt),{},{firstname:e.target.value}))}})}),(0,re.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,re.jsx)(d.A,{error:ma,fullWidth:!0,size:"small",type:"number",variant:"outlined",label:"Contact Number",InputProps:{startAdornment:(0,re.jsx)(m.A,{position:"start",children:(0,re.jsx)(w.dRU,{style:{color:ma?"#ef4444":"#64748b"}})}),style:{borderRadius:"10px"}},value:(null===Dt||void 0===Dt?void 0:Dt.contactno)||"",onChange:e=>{e.target.value.length<=10&&Mt((0,s.A)((0,s.A)({},Dt),{},{contactno:e.target.value})),ca==e.target.value?la(0):la(1),e.target.value.length<10?ha(!0):ha(!1)}})})]}),(0,re.jsx)(r.A,{className:"field-group-caption",sx:{mt:2},children:"Address Lookup"}),0==Ht?(0,re.jsx)(d.A,{id:"addressAuto2",placeholder:"Search Google Maps for an address...",variant:"outlined",size:"small",fullWidth:!0,value:ne||"",onChange:e=>oe(e.target.value),helperText:"Start typing to auto-fill the address details below",FormHelperTextProps:{className:"address-search-helper drop-helper"},InputProps:{startAdornment:(0,re.jsx)(m.A,{position:"start",children:(0,re.jsx)(K.A,{style:{fontSize:15,color:"#65387a"}})}),endAdornment:(0,re.jsx)(h.A,{onClick:()=>{oe(""),Mt((0,s.A)((0,s.A)({},Dt),{},{doorno:"",suburb:"",city:"",postcode:"",landmark:""})),Je(!1),Qe({latitude:0,longitude:0})},size:"small",children:(0,re.jsx)(P.A,{fontSize:"small"})}),style:{borderRadius:"10px",background:"#fff"}}}):(0,re.jsx)(d.A,{variant:"outlined",fullWidth:!0,size:"small",helperText:"Saved address selected \xb7 clear to search again",FormHelperTextProps:{className:"address-search-helper drop-helper"},InputProps:{startAdornment:(0,re.jsx)(m.A,{position:"start",children:(0,re.jsx)(R.sIY,{style:{fontSize:14,color:"#65387a"}})}),endAdornment:(0,re.jsx)(h.A,{onClick:()=>{Wt(0),Mt((0,s.A)((0,s.A)({},Dt),{},{doorno:"",suburb:"",city:"",postcode:"",landmark:""})),Je(!1),Qe({latitude:0,longitude:0})},size:"small",children:(0,re.jsx)(E.A,{fontSize:"small"})}),style:{borderRadius:"10px",background:"#fff"}},value:(null===Dt||void 0===Dt?void 0:Dt.address)||"",onChange:e=>{Mt((0,s.A)((0,s.A)({},Dt),{},{address:e.target.value})),""==e.target.value&&(Wt(0),Je(!1),Qe({latitude:0,longitude:0}))}}),(0,re.jsx)(r.A,{className:"field-group-caption",sx:{mt:2},children:"Address Details"}),(0,re.jsxs)(u.Ay,{container:!0,spacing:1.5,sx:{mt:.5},children:[(0,re.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,re.jsx)(d.A,{fullWidth:!0,size:"small",variant:"outlined",label:"Door No / Street",InputProps:{startAdornment:(0,re.jsx)(m.A,{position:"start",children:(0,re.jsx)(I.V92,{style:{color:"#64748b",fontSize:"20px"}})}),style:{borderRadius:"10px"}},value:(null===Dt||void 0===Dt?void 0:Dt.doorno)||"",onChange:e=>{Mt((0,s.A)((0,s.A)({},Dt),{},{doorno:e.target.value}))}})}),(0,re.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,re.jsx)(d.A,{fullWidth:!0,size:"small",variant:"outlined",label:"Location",InputProps:{startAdornment:(0,re.jsx)(m.A,{position:"start",children:(0,re.jsx)(R.sIY,{style:{color:"#64748b"}})}),style:{borderRadius:"10px"}},value:(null===Dt||void 0===Dt?void 0:Dt.suburb)||"",onChange:e=>{Mt((0,s.A)((0,s.A)({},Dt),{},{suburb:e.target.value}))}})}),(0,re.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,re.jsx)(d.A,{fullWidth:!0,size:"small",variant:"outlined",label:"Postcode",InputProps:{startAdornment:(0,re.jsx)(m.A,{position:"start",children:(0,re.jsx)(D.BND,{style:{color:"#64748b",fontSize:"20px"}})}),style:{borderRadius:"10px"}},value:(null===Dt||void 0===Dt?void 0:Dt.postcode)||"",onChange:e=>{Mt((0,s.A)((0,s.A)({},Dt),{},{postcode:e.target.value}))}})}),(0,re.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,re.jsx)(d.A,{fullWidth:!0,size:"small",variant:"outlined",label:"Landmark",InputProps:{startAdornment:(0,re.jsx)(m.A,{position:"start",children:(0,re.jsx)(R.Ndh,{style:{color:"#64748b"}})}),style:{borderRadius:"10px"}},value:(null===Dt||void 0===Dt?void 0:Dt.landmark)||"",onChange:e=>{Mt((0,s.A)((0,s.A)({},Dt),{},{landmark:e.target.value}))}})})]}),1==oa&&(0,re.jsx)(l.A,{sx:{display:"flex",justifyContent:"flex-end",mt:1},children:(0,re.jsx)(l.A,{className:"save-later-pill",children:(0,re.jsx)(x.A,{control:(0,re.jsx)(g.A,{size:"small",checked:1===ta,onChange:e=>{aa(e.target.checked?1:0)}}),label:"Save contact for later"})})}),(0,re.jsxs)(l.A,{className:"step-nav",children:[(0,re.jsx)(p.A,{className:"step-nav-btn step-nav-back",startIcon:(0,re.jsx)(w.QVr,{style:{fontSize:12}}),onClick:()=>Ia(1),children:"Back to Pickup"}),(0,re.jsx)(r.A,{className:"step-nav-hint",children:"Review the route below once Drop is filled."})]})]})]})]}),(0,re.jsxs)(i.A,{className:"orders-card",sx:{p:{xs:1.5,sm:1.75,lg:2}},children:[(0,re.jsx)(l.A,{className:"section-title-bar",sx:{mb:1.25},children:(0,re.jsx)(r.A,{sx:{fontWeight:700,color:"#1e293b",fontSize:"15px",letterSpacing:"-0.01em"},children:"Cargo & Dispatch Logistics"})}),(0,re.jsxs)(u.Ay,{container:!0,spacing:1.5,alignItems:"stretch",children:[(0,re.jsx)(u.Ay,{item:!0,xs:12,sx:{pt:"0 !important"},children:(0,re.jsxs)(l.A,{sx:{display:"flex",alignItems:"center",gap:1,mb:.25},children:[(0,re.jsx)(r.A,{sx:{fontWeight:700,fontSize:"10.5px",color:"#64748b",letterSpacing:"0.7px",textTransform:"uppercase"},children:"Cargo Details"}),(0,re.jsx)(l.A,{sx:{flex:1,height:"1px",background:"linear-gradient(90deg, #eef2f6 0%, transparent 100%)"}})]})}),(0,re.jsx)(u.Ay,{item:!0,xs:12,sm:4,children:(0,re.jsx)(A.A,{children:(0,re.jsx)(c.A,{id:"combo-box-demo",size:"small",options:dt,getOptionLabel:e=>(null===e||void 0===e?void 0:e.subcategoryname)||"",fullWidth:!0,sx:{"& .MuiOutlinedInput-root":{borderRadius:"12px",height:"38px",paddingTop:"0px !important",paddingBottom:"0px !important"}},renderInput:e=>(0,re.jsx)(d.A,(0,s.A)((0,s.A)({},e),{},{label:"Category",size:"small",InputLabelProps:{shrink:!0},sx:{"& .MuiOutlinedInput-root":{borderRadius:"12px",height:"38px"}},InputProps:(0,s.A)((0,s.A)({},e.InputProps),{},{startAdornment:(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(w.TXh,{style:{color:"#94a3b8",fontSize:13,marginRight:6,marginLeft:2,flexShrink:0}}),e.InputProps.startAdornment]})})})),onChange:(e,t,a)=>{t?(console.log(t),mt(t.subcategoryname||""),xt(t.subcategoryid||0)):a&&(mt(null),xt(null))}})})}),(0,re.jsx)(u.Ay,{item:!0,xs:12,sm:4,children:(0,re.jsx)(A.A,{children:(0,re.jsx)(d.A,{type:"number",size:"small",value:Aa,fullWidth:!0,label:"Cash Collect",InputLabelProps:{shrink:!0},onChange:e=>{fa(e.target.value)},inputProps:{min:0},sx:{"& .MuiOutlinedInput-root":{borderRadius:"12px",height:"38px"}},InputProps:{startAdornment:(0,re.jsx)(m.A,{position:"start",children:(0,re.jsx)(l.A,{sx:{color:"#94a3b8",fontWeight:700,fontSize:14,lineHeight:1},children:"\u20b9"})})}})})}),(0,re.jsx)(u.Ay,{item:!0,xs:12,sm:4,children:(0,re.jsx)(A.A,{children:(0,re.jsx)(d.A,{type:"number",size:"small",value:va,fullWidth:!0,label:"Quantity",InputLabelProps:{shrink:!0},onChange:e=>{ja(e.target.value)},inputProps:{min:1},sx:{"& .MuiOutlinedInput-root":{borderRadius:"12px",height:"38px"}},InputProps:{startAdornment:(0,re.jsx)(m.A,{position:"start",children:(0,re.jsx)(w.H5e,{style:{color:"#94a3b8",fontSize:14}})})}})})}),(0,re.jsx)(u.Ay,{item:!0,xs:12,sx:{mt:.5,pb:0},children:(0,re.jsxs)(l.A,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[(0,re.jsxs)(r.A,{sx:{display:"flex",alignItems:"center",gap:.75,fontWeight:700,fontSize:"10.5px",color:"#64748b",letterSpacing:"0.7px",textTransform:"uppercase"},children:[(0,re.jsx)(V.A,{style:{fontSize:"11px",color:"#65387a"}}),"Schedule Details"]}),(0,re.jsx)(l.A,{sx:{flex:1,height:"1px",background:"linear-gradient(90deg, #eef2f6 0%, transparent 100%)"}})]})}),(0,re.jsx)(u.Ay,{item:!0,xs:12,sx:{pt:"0px !important"},children:(0,re.jsxs)(u.Ay,{container:!0,spacing:1.5,sx:{mt:.5},children:[(0,re.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,re.jsx)(H.$,{dateAdapter:W.R,children:(0,re.jsx)(F.l,{label:"Pickup Date",format:"DD-MM-YYYY",onChange:e=>{let t=U()().diff(U()("".concat(U()(e).format("YYYY-MM-DD"))),"d");if(qe(""),t<=0){Se(e);let t=[];Ce.map((a=>{U()().diff(U()("".concat(U()(e).format("MM-DD-YYYY")," ").concat(U()(a).format("HH:mm:ss"))),"m")<=0&&t.push(a)}))}else Fe("choose Upcoming Date"),Da("choose Upcoming Date","warning"),Se(NaN)},value:U()(ye),sx:{width:"100%","& .MuiOutlinedInput-root":{borderRadius:"12px",height:"38px"}},slotProps:{textField:{size:"small",fullWidth:!0,InputLabelProps:{shrink:!0},InputProps:{startAdornment:(0,re.jsx)(m.A,{position:"start",children:(0,re.jsx)(V.A,{style:{color:"#94a3b8",fontSize:"13px"}})})},sx:{"& .MuiOutlinedInput-root":{borderRadius:"12px",height:"38px",paddingLeft:"10px"}}}},disablePast:!0})})}),(0,re.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,re.jsx)(c.A,{size:"small",fullWidth:!0,options:_a||[],sx:{width:"100%","& .MuiOutlinedInput-root":{borderRadius:"12px",height:"38px",paddingTop:"0px !important",paddingBottom:"0px !important"}},onChange:(e,t,a)=>{if("clear"!==a&&t){const e=U()(t.time,"HH:mm").format("hh:mm A");qe(e);const a=U()("".concat(ye," ").concat(e),"MM-DD-YYYY hh:mm A").format("YYYY-MM-DD hh:mm A");Ca(a)}else qe(null),Ca(null)},getOptionLabel:e=>e?"".concat(e.name," (").concat(U()(e.time,"HH:mm").format("hh:mm A"),")"):"",renderInput:e=>(0,re.jsx)(d.A,(0,s.A)((0,s.A)({},e),{},{label:"Pickup Time Slot",placeholder:"Select Pickup Slot",fullWidth:!0,InputLabelProps:{shrink:!0},sx:{"& .MuiOutlinedInput-root":{borderRadius:"12px",height:"38px"}},InputProps:(0,s.A)((0,s.A)({},e.InputProps),{},{startAdornment:(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(G.A,{style:{color:"#94a3b8",fontSize:"13px",marginRight:"6px",marginLeft:"2px",flexShrink:0}}),e.InputProps.startAdornment]})})}))})})]})})]})]})]}),(0,re.jsx)(u.Ay,{item:!0,xs:12,lg:4.5,sx:{position:{lg:"sticky"},top:{lg:"24px"},height:"fit-content"},children:(0,re.jsxs)(A.A,{spacing:2,children:[(0,re.jsxs)(i.A,{className:"orders-card",sx:{p:1.5,display:"flex",flexDirection:"column"},children:[(0,re.jsxs)(r.A,{sx:{fontWeight:700,mb:1.25,display:"flex",alignItems:"center",gap:.75,color:"#1e293b",fontSize:"14px",letterSpacing:"-0.01em"},children:[(0,re.jsx)(Q.A,{sx:{color:"#662582",fontSize:16}}),"Live Route Preview"]}),(0,re.jsx)("div",{className:"map-preview-wrapper",children:(0,re.jsx)(me,{startPoint:Ge,endPoint:Ze,appLocaLat:Ut,appLocaLng:Kt})})]}),(0,re.jsxs)(i.A,{className:"orders-card delivery-prefs-card",sx:{p:1.5},children:[(0,re.jsxs)(l.A,{className:"delivery-prefs-header",children:[(0,re.jsx)(r.A,{className:"delivery-prefs-title",children:"Delivery Preferences"}),(0,re.jsx)(r.A,{className:"delivery-prefs-sub",children:"Customer notifications & dispatch instructions"})]}),(0,re.jsxs)(l.A,{className:"delivery-prefs-row",children:[(0,re.jsxs)(l.A,{className:"delivery-prefs-field",children:[(0,re.jsxs)("label",{className:"delivery-prefs-label",htmlFor:"dispatch-notes-input",children:[(0,re.jsx)(X.A,{style:{fontSize:11,color:"#65387a"}}),"Special Dispatch Notes"]}),(0,re.jsx)(d.A,{id:"dispatch-notes-input",size:"small",fullWidth:!0,placeholder:"Gate codes, call instructions, special cargo care\u2026",value:Ie,onChange:e=>Re(e.target.value),sx:{"& .MuiOutlinedInput-root":{borderRadius:"10px",padding:"0 10px",alignItems:"center",fontSize:"12px",background:"#ffffff",height:"32px"},"& .MuiOutlinedInput-input":{padding:"0 !important",fontSize:"12px !important",lineHeight:"32px"}}})]}),(0,re.jsxs)(l.A,{className:"sms-toggle-tile ".concat(1===xa?"is-active":""),onClick:()=>ga(1===xa?0:1),role:"button",tabIndex:0,children:[(0,re.jsxs)(l.A,{className:"sms-toggle-left",children:[(0,re.jsx)(l.A,{className:"sms-toggle-icon",children:(0,re.jsx)(Z.A,{style:{fontSize:13}})}),(0,re.jsxs)(l.A,{sx:{minWidth:0},children:[(0,re.jsx)(r.A,{className:"sms-toggle-title",children:"SMS Updates"}),(0,re.jsx)(r.A,{className:"sms-toggle-sub",children:"Auto-notify customer on dispatch & delivery"})]})]}),(0,re.jsx)(f.A,{size:"small",checked:1===xa,onChange:e=>{e.stopPropagation(),ga(e.target.checked?1:0)}})]})]})]}),(0,re.jsxs)(i.A,{className:"orders-card pricing-summary-card",children:[(0,re.jsxs)(l.A,{className:"pricing-header",children:[(0,re.jsx)(r.A,{className:"pricing-title",children:"Pricing & Dispatch"}),(0,re.jsx)(r.A,{className:"pricing-subtitle",children:"Live cost estimate"})]}),(0,re.jsxs)("div",{className:"price-metric-item",children:[(0,re.jsxs)("div",{className:"price-metric-label",children:[(0,re.jsx)("span",{className:"price-metric-icon icon-distance",children:(0,re.jsx)(w.$Fg,{})}),(0,re.jsx)("span",{children:"Delivery Distance"})]}),(0,re.jsx)("div",{className:"price-metric-value ".concat($e?"highlight":""),children:$e?"".concat(et," km"):"\u2014"})]}),(0,re.jsxs)("div",{className:"price-metric-item",children:[(0,re.jsxs)("div",{className:"price-metric-label",children:[(0,re.jsx)("span",{className:"price-metric-icon icon-base",children:(0,re.jsx)(w.MxO,{})}),(0,re.jsxs)("span",{children:["Base Fare",(0,re.jsxs)("span",{className:"price-metric-sub",children:[" \xb7 ",lt," km"]})]})]}),(0,re.jsx)("div",{className:"price-metric-value",children:at?"\u20b9".concat(at.toFixed(2)):"\u20b90.00"})]}),(0,re.jsxs)("div",{className:"price-metric-item",children:[(0,re.jsxs)("div",{className:"price-metric-label",children:[(0,re.jsx)("span",{className:"price-metric-icon icon-rate",children:(0,re.jsx)(w.YYR,{})}),(0,re.jsx)("span",{children:"Rate per km"})]}),(0,re.jsxs)("div",{className:"price-metric-value",children:[nt?"\u20b9".concat(nt.toFixed(2)):"\u20b90.00",(0,re.jsx)("span",{className:"price-metric-unit",children:"/km"})]})]}),$e&&(0,re.jsxs)("div",{className:"total-charge-badge",children:[(0,re.jsxs)("div",{className:"total-charge-left",children:[(0,re.jsx)(w.wTh,{className:"total-charge-icon"}),(0,re.jsx)("div",{className:"total-charge-label",children:"Total Delivery Charge"})]}),(0,re.jsxs)("div",{className:"total-charge-val",children:["\u20b9",rt.toFixed(2)]})]}),(0,re.jsx)(l.A,{sx:{mt:1.5},children:(0,re.jsx)(ie.A,{children:(0,re.jsx)(p.A,{fullWidth:!0,className:"gradient-btn-create",disabled:!$e||!Ue||!Na,startIcon:!Le&&(0,re.jsx)(w.Cer,{style:{fontSize:11}}),onClick:()=>{Me(!0),Ye(!0),(async()=>{let e={};if(e={orders:{applocationid:Oe.applolcationid,cancellled:"",categoryid:+Oe.categoryid,configid:9,customerid:0==Jt&&+Et.customerid||0,deliveryaddress:Dt.address||"",deliverycharge:+rt.toFixed(2)||0,deliverycity:Dt.city||"",deliverycontactno:Dt.contactno||"",deliverycustomer:Dt.firstname||"",deliveryid:0==ta&&+Dt.customerid||0,deliverylandmark:Dt.landmark||"",deliverylat:Dt.latitude.toString(),deliverylocation:Dt.suburb||"",deliverylocationid:Dt.deliverylocationid||0,deliverylong:Dt.longitude.toString(),deliverytime:"".concat(U()(ye).format("YYYY-MM-DD")," ").concat(U()(Ue.$d).format("HH:mm:ss")),deliverytype:"B",delivered:"",itemcount:1,kms:et.toString()||0,locationid:+jt,moduleid:+Oe.moduleid,orderamount:+rt.toFixed(2)||0,ordercharges:0,orderdate:U()().format("YYYY-MM-DD HH:mm:ss"),ordernotes:Ie,orderstatus:"created",ordervalue:+rt.toFixed(2)||0,partnerid:Oe.partnerid,partneruserid:+$t,paymentstatus:1,paymenttype:42,pickupaddress:Et.address||"",pickupcity:Et.city||"",pickupcontactno:Et.contactno||"",pickupcustomer:Et.firstname||"",pickuplandmark:Et.landmark||"",pickuplat:Et.latitude.toString()||"",pickuplocation:Et.suburb||"",pickuplocationid:Et.deliverylocationid||0,pickuplong:Et.longitude.toString()||"",smsdelivery:xa,subcategoryid:+ht,tenantid:Oe.tenantid,collectionamt:+Aa,quantity:+va,weight:gt,pickupSlot:Na},pickup:{address:Et.address||"",applocationid:Oe.applolcationid,city:Et.city||"",configid:1,contactno:Et.contactno||"",customertoken:"",customerid:0==Jt&&Et.customerid||0,devicetype:"",deviceid:"",dialcode:"+91",doorno:Et.doorno||"",email:Et.email||"",firstname:Et.firstname||"",landmark:Et.landmark||"",latitude:Et.latitude.toString()||"",longitude:Et.longitude.toString()||"",postcode:Et.postcode||"",primaryaddress:1,locationid:Et.deliverylocationid||0,profileimage:"",state:Et.state||"",suburb:Et.suburb||"",tenantid:Oe.tenantid},drop:{address:Dt.address||"",applocationid:Oe.applolcationid,city:Dt.city||"",configid:1,contactno:Dt.contactno||"",customertoken:"",customerid:0==ta&&Dt.customerid||0,devicetype:"",deviceid:"",locationid:Dt.deliverylocationid||0,dialcode:"+91",doorno:Dt.doorno||"",email:Dt.email||"",firstname:Dt.firstname||"",landmark:Dt.landmark||"",latitude:Dt.latitude.toString(),longitude:Dt.longitude.toString(),postcode:Dt.postcode||"",primaryaddress:1,profileimage:"",state:Dt.state||"",suburb:Dt.suburb||"",tenantid:Oe.tenantid}},console.log("createsubmitobj2",e),Et.firstname)if(Et.contactno)if(10!=Et.contactno.length)Da("Check Pickup Contact Number ","error",2e3);else if(Et.suburb)if(Et.city)if(Et.postcode)if(Et.landmark)if(Dt.firstname)if(Dt.contactno)if(10!==Dt.contactno.length)Da("Check Drop Contact Number ","error",2e3);else if(Dt.suburb)if(Dt.city)if(Dt.postcode)if(Dt.landmark)if(Ue)if(xt)try{const a=await M.A.post("".concat("https://jupiter.nearle.app/live/api/v2","/orders/createorder"),e);a.data.status?(console.log("createRes",a),(0,q.M8)("Order Created Successfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:1e3}),He&&La(),t("/nearle/orders")):Da("Error in creating orders","warning"),Me(!1)}catch(a){Da(a.message,"warning"),console.log("createResErr",a)}else Da("Choose SubCategory ","warning",2e3);else Da("Choose deliverytime ","warning",2e3);else Da("Enter Drop Landmark ","warning",2e3);else Da("Enter Drop postcode ","warning",2e3);else Da("Enter Drop City ","warning",2e3);else Da("Enter Drop Suburb ","warning",2e3);else Da("Enter Drop Contact Number","warning",2e3);else Da("Enter Drop Contact Name ","warning",2e3);else Da("Enter Pickup Landmark ","warning",2e3);else Da("Enter Pickup Postcode ","warning",2e3);else Da("Enter Pickup City ","warning",2e3);else Da("Enter Pickup Location ","warning",2e3);else Da("Enter Pickup Contact Number ","warning",2e3);else Da("Enter Pickup Contact Name ","warning",2e3)})(),setTimeout((()=>{Me(!1),Ye(!1)}),2e3)},children:Le?(0,re.jsx)(v.A,{color:"inherit",size:16,thickness:5}):"Dispatch Delivery Order"})})})]})]})})]})]}),(0,re.jsxs)(O.A,{open:kt,onClose:()=>{_t(!1),Nt("")},fullWidth:!0,fullScreen:B,sx:{"& .MuiDialog-paper":{borderRadius:{xs:0,sm:"16px"},overflow:"hidden"}},children:[(0,re.jsx)(j.A,{sx:{background:"linear-gradient(135deg, #662582 0%, #9255AB 100%)",color:"white",py:2.5},children:(0,re.jsxs)(A.A,{spacing:1.5,children:[(0,re.jsx)(r.A,{variant:"h4",sx:{fontWeight:600,color:"white"},children:"Select Saved Address (".concat(1===Lt?"Pickup":"Drop",")")}),(0,re.jsx)(b.A,{sx:{width:"100%"},children:(0,re.jsx)(y.A,{autoFocus:!0,fullWidth:!0,id:"input-search-header",placeholder:"Search by name, contact, or address...",value:Pt,onChange:e=>Nt(e.target.value),sx:{bgcolor:"white",borderRadius:"10px","& .MuiOutlinedInput-input":{p:"10px 14px"}},startAdornment:(0,re.jsx)(m.A,{position:"start",children:(0,re.jsx)(K.A,{style:{fontSize:"small",color:"#64748b"}})}),endAdornment:(0,re.jsx)(h.A,{sx:{visibility:Pt?"visible":"hidden",p:.5},onClick:()=>{Nt("")},children:(0,re.jsx)(E.A,{style:{fontSize:"18px"}})}),autoComplete:"off"})})]})}),(0,re.jsx)(S.A,{}),(0,re.jsx)(k.A,{sx:{p:3,maxHeight:"600px",overflowY:"auto",bgcolor:"#fafbfc"},children:0==(null===Ct||void 0===Ct?void 0:Ct.length)?(0,re.jsx)(A.A,{spacing:2,direction:"row",alignItems:"center",justifyContent:"center",sx:{minHeight:300},children:(0,re.jsx)(C.A,{description:"No saved addresses found for this client"})}):(0,re.jsx)(l.A,{children:Ct&&Ct.map(((e,t)=>(0,re.jsx)(p.A,{className:"address-card-btn",onClick:()=>{_t(!1),Nt(""),1===Lt?(console.log("PickupClient",e),Ft(1),Xe({latitude:e.latitude,longitude:e.longitude}),zt(e),ra(e.contactno)):(console.log("DropClient",e),Wt(1),Qe({latitude:e.latitude,longitude:e.longitude}),Mt(e),da(e.contactno))},disabled:(null===Et||void 0===Et?void 0:Et.customerid)===e.customerid,children:(0,re.jsxs)("div",{style:{width:"100%",display:"flex",flexDirection:"column"},children:[(0,re.jsx)(r.A,{variant:"subtitle1",sx:{textAlign:"left",fontWeight:600,color:"#1e293b"},children:"".concat(e.firstname," (").concat(e.contactno,")")}),(0,re.jsx)(r.A,{variant:"body2",sx:{textAlign:"left",color:"#64748b",mt:.5,lineHeight:1.4},children:e.address})]})},t)))})}),(0,re.jsx)(S.A,{}),(0,re.jsx)(_.A,{sx:{p:2.5,bgcolor:"#fafbfc"},children:(0,re.jsx)(p.A,{color:"error",variant:"outlined",sx:{borderRadius:"8px",textTransform:"none",px:3,"&:hover":{bgcolor:"#ef4444",color:"white",borderColor:"#ef4444"}},onClick:()=>{_t(!1),Nt("")},children:"Cancel"})})]}),(0,re.jsxs)(O.A,{open:fe,onClose:()=>{ve(!1)},fullWidth:!0,sx:{"& .MuiDialog-paper":{borderRadius:{xs:3,sm:"16px"},p:1.5,m:{xs:1.5,sm:4},width:{xs:"calc(100% - 24px)",sm:"auto"},maxWidth:"400px"}},children:[(0,re.jsxs)(j.A,{sx:{textAlign:"center",pb:1},children:[(0,re.jsx)($.A,{sx:{fontSize:70,color:a.palette.error.main,mb:1}}),(0,re.jsx)(r.A,{variant:"h3",sx:{color:a.palette.error.main,fontWeight:700},children:"Dispatch Blocked"})]}),(0,re.jsx)(k.A,{sx:{textAlign:"center",pb:2},children:(0,re.jsx)(r.A,{variant:"body1",sx:{color:"#64748b",lineHeight:1.5},children:"Our delivery partners cannot service this coordinate combination. The route distance exceeds the active operating radius for this app location."})}),(0,re.jsx)(_.A,{sx:{bgcolor:a.palette.error.main,borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"16px",fontWeight:600,color:"white",cursor:"pointer",py:1.5,mx:2.5,mb:2,transition:"background-color 0.2s ease","&:hover":{bgcolor:a.palette.error.dark}},onClick:()=>{ve(!1)},children:"Acknowledge & Close"})]})]})}}}]); \ No newline at end of file diff --git a/build/static/js/8464.8b814dfe.chunk.js b/build/static/js/8464.8b814dfe.chunk.js new file mode 100644 index 0000000..8ea89fb --- /dev/null +++ b/build/static/js/8464.8b814dfe.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 8464.8b814dfe.chunk.js.LICENSE.txt */ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[8464],{26267:(e,t,r)=>{r(28287)},28287:(e,t)=>{var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function m(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case a:case c:case i:case d:case p:return e;default:switch(e=e&&e.$$typeof){case u:case s:case f:case g:case h:case l:return e;default:return t}}case o:return t}}}r=Symbol.for("react.module.reference")},38464:(e,t,r)=>{r.d(t,{A:()=>Br});var n=r(85672),o=r.t(n,2),a=r(62036),i=r.n(a);const c=(0,n.createContext)(void 0);const l={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var s=r(65125);const u=(0,s.A)((0,s.A)({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),f={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},d={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},u),timePickerLocale:Object.assign({},f)},p="${label} is not a valid ${type}",h={locale:"en",Pagination:l,DatePicker:d,TimePicker:f,Calendar:d,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:p,method:p,array:p,object:p,number:p,date:p,boolean:p,integer:p,float:p,regexp:p,email:p,url:p,hex:p},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},g=(e,t)=>{const r=n.useContext(c),o=n.useMemo((()=>{var n;const o=t||h[e],a=null!==(n=null===r||void 0===r?void 0:r[e])&&void 0!==n?n:{};return Object.assign(Object.assign({},"function"===typeof o?o():o),a||{})}),[e,t,r]);return[o,n.useMemo((()=>{const e=null===r||void 0===r?void 0:r.locale;return(null===r||void 0===r?void 0:r.exist)&&!e?h.locale:e}),[r])]};var v=r(5867),m=r(98001),y=r(92299),b=r(52275);var x=r(86814);function S(e){return function(e){if(Array.isArray(e))return(0,b.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,x.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const A=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)};var k=r(98696);var C=r(67678);function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var E=r(94706);function O(e,t){for(var r=0;r1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&n&&(o.value[1]=this.cacheCallTimes++),null===(r=o)||void 0===r?void 0:r.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,r){var n=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var r=(0,y.A)(e,2)[1];return n.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),$+=1}return M(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,r){return r(e,t)}),void 0)}}]),e}(),G=new X;var W=new WeakMap,Y={};var U=new WeakMap;function V(e){var t=U.get(e)||"";return t||(Object.keys(e).forEach((function(r){var n=e[r];t+=r,n instanceof N?t+=n.id:n&&"object"===(0,F.A)(n)?t+=V(n):t+=n})),t=A(t),U.set(e,t)),t}function q(e,t){return A("".concat(t,"_").concat(V(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var K=(0,_.A)();function Q(e){return"number"===typeof e?"".concat(e,"px"):e}function Z(e,t,r){var n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var a=(0,s.A)((0,s.A)({},o),{},(n={},(0,m.A)(n,H,t),(0,m.A)(n,B,r),n)),i=Object.keys(a).map((function(e){var t=a[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var J=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},ee=function(e,t,r){return Object.keys(e).length?".".concat(t).concat(null!==r&&void 0!==r&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(e).map((function(e){var t=(0,y.A)(e,2),r=t[0],n=t[1];return"".concat(r,":").concat(n,";")})).join(""),"}"):""},te=function(e,t,r){var n={},o={};return Object.entries(e).forEach((function(e){var t,a,i=(0,y.A)(e,2),c=i[0],l=i[1];if(null!==r&&void 0!==r&&null!==(t=r.preserve)&&void 0!==t&&t[c])o[c]=l;else if(("string"===typeof l||"number"===typeof l)&&(null===r||void 0===r||null===(a=r.ignore)||void 0===a||!a[c])){var s,u=J(c,null===r||void 0===r?void 0:r.prefix);n[u]="number"!==typeof l||null!==r&&void 0!==r&&null!==(s=r.unitless)&&void 0!==s&&s[c]?String(l):"".concat(l,"px"),o[c]="var(".concat(u,")")}})),[o,ee(n,t,{scope:null===r||void 0===r?void 0:r.scope})]},re=(0,_.A)()?n.useLayoutEffect:n.useEffect,ne=function(e,t){var r=n.useRef(!0);re((function(){return e(r.current)}),t),re((function(){return r.current=!1,function(){r.current=!0}}),[])};const oe=ne;var ae=(0,s.A)({},o).useInsertionEffect;const ie=ae?function(e,t,r){return ae((function(){return e(),t()}),r)}:function(e,t,r){n.useMemo(e,r),oe((function(){return t(!0)}),r)};const ce="undefined"!==typeof(0,s.A)({},o).useInsertionEffect?function(e){var t=[],r=!1;return n.useEffect((function(){return r=!1,function(){r=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){r||t.push(e)}}:function(){return function(e){e()}};const le=function(){return!1};function se(e,t,r,o,a){var i=n.useContext(L).cache,c=j([e].concat(S(t))),l=ce([c]),s=(le(),function(e){i.opUpdate(c,(function(t){var n=t||[void 0,void 0],o=(0,y.A)(n,2),a=o[0];var i=[void 0===a?0:a,o[1]||r()];return e?e(i):i}))});n.useMemo((function(){s()}),[c]);var u=i.opGet(c)[1];return ie((function(){null===a||void 0===a||a(u)}),(function(e){return s((function(t){var r=(0,y.A)(t,2),n=r[0],o=r[1];return e&&0===n&&(null===a||void 0===a||a(u)),[n+1,o]})),function(){i.opUpdate(c,(function(t){var r=t||[],n=(0,y.A)(r,2),a=n[0],s=void 0===a?0:a,u=n[1];return 0===s-1?(l((function(){!e&&i.opGet(c)||null===o||void 0===o||o(u,!1)})),null):[s-1,u]}))}}),[c]),u}var ue={},fe=new Map;function de(e,t){fe.set(e,(fe.get(e)||0)-1);var r=Array.from(fe.keys()),n=r.filter((function(e){return(fe.get(e)||0)<=0}));r.length-n.length>0&&n.forEach((function(e){!function(e,t){"undefined"!==typeof document&&document.querySelectorAll("style[".concat(H,'="').concat(e,'"]')).forEach((function(e){var r;e[z]===t&&(null===(r=e.parentNode)||void 0===r||r.removeChild(e))}))}(e,t),fe.delete(e)}))}var pe="token";function he(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,n.useContext)(L),a=o.cache.instanceId,i=o.container,c=r.salt,l=void 0===c?"":c,u=r.override,f=void 0===u?ue:u,d=r.formatToken,p=r.getComputedToken,h=r.cssVar,g=function(e,t){for(var r=W,n=0;n0?we(De,--ze):0,He--,10===Ie&&(He=1,Pe--),Ie}function _e(){return Ie=ze2||Ne(Ie)>3?"":" "}function Ve(e,t){for(;--t&&_e()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return $e(e,Xe()+(t<6&&32==Re()&&32==_e()))}function qe(e){for(;_e();)switch(Ie){case e:return ze;case 34:case 39:34!==e&&39!==e&&qe(Ie);break;case 40:41===e&&qe(e);break;case 92:_e()}return ze}function Ke(e,t){for(;_e()&&e+Ie!==57&&(e+Ie!==84||47!==Re()););return"/*"+$e(t,ze-1)+"*"+Se(47===e?e:_e())}function Qe(e){for(;!Ne(Re());)_e();return $e(e,ze)}function Ze(e){return We(Je("",null,null,null,[""],e=Ge(e),0,[0],e))}function Je(e,t,r,n,o,a,i,c,l){for(var s=0,u=0,f=i,d=0,p=0,h=0,g=1,v=1,m=1,y=0,b="",x=o,S=a,A=n,k=b;v;)switch(h=y,y=_e()){case 40:if(108!=h&&58==we(k,f-1)){-1!=Ce(k+=ke(Ye(y),"&","&\f"),"&\f",xe(s?c[s-1]:0))&&(m=-1);break}case 34:case 39:case 91:k+=Ye(y);break;case 9:case 10:case 13:case 32:k+=Ue(h);break;case 92:k+=Ve(Xe()-1,7);continue;case 47:switch(Re()){case 42:case 47:Me(tt(Ke(_e(),Xe()),t,r,l),l),5!=Ne(h||1)&&5!=Ne(Re()||1)||!Oe(k)||" "===Ee(k,-1,void 0)||(k+=" ");break;default:k+="/"}break;case 123*g:c[s++]=Oe(k)*m;case 125*g:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+u:-1==m&&(k=ke(k,/\f/g,"")),p>0&&(Oe(k)-f||0===g&&47===h)&&Me(p>32?rt(k+";",n,r,f-1,l):rt(ke(k," ","")+";",n,r,f-2,l),l);break;case 59:k+=";";default:if(Me(A=et(k,t,r,s,u,o,c,b,x=[],S=[],f,a),a),123===y)if(0===u)Je(k,t,A,A,x,a,f,c,S);else{switch(d){case 99:if(110===we(k,3))break;case 108:if(97===we(k,2))break;default:u=0;case 100:case 109:case 115:}u?Je(e,A,A,n&&Me(et(e,A,A,0,0,o,c,b,o,x=[],f,S),S),o,S,f,c,n?x:S):Je(k,A,A,A,[""],S,0,c,S)}}s=u=p=0,g=m=1,b=k="",f=i;break;case 58:f=1+Oe(k),p=h;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==Fe())continue;switch(k+=Se(y),y*g){case 38:m=u>0?1:(k+="\f",-1);break;case 44:c[s++]=(Oe(k)-1)*m,m=1;break;case 64:45===Re()&&(k+=Ye(_e())),d=Re(),u=f=Oe(b=k+=Qe(Xe())),y++;break;case 45:45===h&&2==Oe(k)&&(g=0)}}return a}function et(e,t,r,n,o,a,i,c,l,s,u,f){for(var d=o-1,p=0===o?a:[""],h=function(e){return e.length}(p),g=0,v=0,m=0;g0?p[y]+" "+b:ke(b,/&\f/g,p[y])))&&(l[m++]=x);return Le(e,t,r,0===o?ye:c,l,s,u,f)}function tt(e,t,r,n){return Le(e,t,r,me,Se(Ie),Ee(e,2,-2),0,n)}function rt(e,t,r,n,o){return Le(e,t,r,be,Ee(e,0,n),Ee(e,n+1,-1),n,o)}var nt,ot="data-ant-cssinjs-cache-path",at="_FILE_STYLE__";var it=!0;function ct(e){return function(){if(!nt&&(nt={},(0,_.A)())){var e=document.createElement("div");e.className=ot,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=e.split(":"),r=(0,y.A)(t,2),n=r[0],o=r[1];nt[n]=o}));var r,n=document.querySelector("style[".concat(ot,"]"));n&&(it=!1,null===(r=n.parentNode)||void 0===r||r.removeChild(n)),document.body.removeChild(e)}}(),!!nt[e]}var lt="_multi_value_";function st(e){return je(Ze(e),Te).replace(/\{%%%\:[^;];}/g,";")}function ut(e,t,r){if(!t)return e;var n=".".concat(t),o="low"===r?":where(".concat(n,")"):n;return e.split(",").map((function(e){var t,r=e.trim().split(/\s+/),n=r[0]||"",a=(null===(t=n.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[n="".concat(a).concat(o).concat(n.slice(a.length))].concat(S(r.slice(1))).join(" ")})).join(",")}var ft=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=n.root,a=n.injectHash,i=n.parentSelectors,c=r.hashId,l=r.layer,u=(r.path,r.hashPriority),f=r.transformers,d=void 0===f?[]:f,p=(r.linters,""),h={};function g(t){var n=t.getName(c);if(!h[n]){var o=e(t.style,r,{root:!1,parentSelectors:i}),a=(0,y.A)(o,1)[0];h[n]="@keyframes ".concat(t.getName(c)).concat(a)}}var v=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,r):t&&r.push(t)})),r}(Array.isArray(t)?t:[t]);return v.forEach((function(t){var n="string"!==typeof t||o?t:{};if("string"===typeof n)p+="".concat(n,"\n");else if(n._keyframe)g(n);else{var l=d.reduce((function(e,t){var r;return(null===t||void 0===t||null===(r=t.visit)||void 0===r?void 0:r.call(t,e))||e}),n);Object.keys(l).forEach((function(t){var n=l[t];if("object"!==(0,F.A)(n)||!n||"animationName"===t&&n._keyframe||function(e){return"object"===(0,F.A)(e)&&e&&("_skip_check_"in e||lt in e)}(n)){var f;function w(e,t){var r=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),n=t;ve[e]||"number"!==typeof n||0===n||(n="".concat(n,"px")),"animationName"===e&&null!==t&&void 0!==t&&t._keyframe&&(g(t),n=t.getName(c)),p+="".concat(r,":").concat(n,";")}var d=null!==(f=null===n||void 0===n?void 0:n.value)&&void 0!==f?f:n;"object"===(0,F.A)(n)&&null!==n&&void 0!==n&&n[lt]&&Array.isArray(d)?d.forEach((function(e){w(t,e)})):w(t,d)}else{var v=!1,m=t.trim(),b=!1;(o||a)&&c?m.startsWith("@")?v=!0:m=ut("&"===m?"":t,c,u):!o||c||"&"!==m&&""!==m||(m="",b=!0);var x=e(n,r,{root:b,injectHash:v,parentSelectors:[].concat(S(i),[m])}),A=(0,y.A)(x,2),k=A[0],C=A[1];h=(0,s.A)((0,s.A)({},h),C),p+="".concat(m).concat(k)}}))}})),o?l&&(p&&(p="@layer ".concat(l.name," {").concat(p,"}")),l.dependencies&&(h["@layer ".concat(l.name)]=l.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(l.name,";")})).join("\n"))):p="{".concat(p,"}"),[p,h]};function dt(e,t){return A("".concat(e.join("%")).concat(t))}function pt(){return null}var ht="style";function gt(e,t){var r=e.token,o=e.path,a=e.hashId,i=e.layer,c=e.nonce,l=e.clientOnly,u=e.order,f=void 0===u?0:u,d=n.useContext(L),p=d.autoClear,h=(d.mock,d.defaultCache),g=d.hashPriority,v=d.container,b=d.ssrInline,x=d.transformers,A=d.linters,C=d.cache,w=d.layer,E=r._tokenKey,O=[E];w&&O.push("layer"),O.push.apply(O,S(o));var M=K;var j=se(ht,O,(function(){var e=O.join("|");if(ct(e)){var r=function(e){var t=nt[e],r=null;if(t&&(0,_.A)())if(it)r=at;else{var n=document.querySelector("style[".concat(B,'="').concat(nt[e],'"]'));n?r=n.innerHTML:delete nt[e]}return[r,t]}(e),n=(0,y.A)(r,2),c=n[0],s=n[1];if(c)return[c,E,s,{},l,f]}var u=t(),d=ft(u,{hashId:a,hashPriority:g,layer:w?i:void 0,path:o.join("-"),transformers:x,linters:A}),p=(0,y.A)(d,2),h=p[0],v=p[1],m=st(h),b=dt(O,m);return[m,E,b,v,l,f]}),(function(e,t){var r=(0,y.A)(e,3)[2];(t||p)&&K&&(0,k.m6)(r,{mark:B})}),(function(e){var t=(0,y.A)(e,4),r=t[0],n=(t[1],t[2]),o=t[3];if(M&&r!==at){var a={mark:B,prepend:!w&&"queue",attachTo:v,priority:f},i="function"===typeof c?c():c;i&&(a.csp={nonce:i});var l=[],u=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?l.push(e):u.push(e)})),l.forEach((function(e){(0,k.BD)(st(o[e]),"_layer-".concat(e),(0,s.A)((0,s.A)({},a),{},{prepend:!0}))}));var d=(0,k.BD)(r,n,a);d[z]=C.instanceId,d.setAttribute(H,E),u.forEach((function(e){(0,k.BD)(st(o[e]),"_effect-".concat(e),a)}))}})),T=(0,y.A)(j,3),P=T[0],I=T[1],D=T[2];return function(e){var t,r;b&&!M&&h?t=n.createElement("style",(0,ge.A)({},(r={},(0,m.A)(r,H,I),(0,m.A)(r,B,D),r),{dangerouslySetInnerHTML:{__html:P}})):t=n.createElement(pt,null);return n.createElement(n.Fragment,null,t,e)}}var vt="cssVar";const mt=function(e,t){var r=e.key,o=e.prefix,a=e.unitless,i=e.ignore,c=e.token,l=e.scope,s=void 0===l?"":l,u=(0,n.useContext)(L),f=u.cache.instanceId,d=u.container,p=c._tokenKey,h=[].concat(S(e.path),[r,s,p]);return se(vt,h,(function(){var e=t(),n=te(e,r,{prefix:o,unitless:a,ignore:i,scope:s}),c=(0,y.A)(n,2),l=c[0],u=c[1];return[l,u,dt(h,u),r]}),(function(e){var t=(0,y.A)(e,3)[2];K&&(0,k.m6)(t,{mark:B})}),(function(e){var t=(0,y.A)(e,3),n=t[1],o=t[2];if(n){var a=(0,k.BD)(n,o,{mark:B,prepend:"queue",attachTo:d,priority:-999});a[z]=f,a.setAttribute(H,r)}}))};var yt;yt={},(0,m.A)(yt,ht,(function(e,t,r){var n=(0,y.A)(e,6),o=n[0],a=n[1],i=n[2],c=n[3],l=n[4],s=n[5],u=(r||{}).plain;if(l)return null;var f=o,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return f=Z(o,a,i,d,u),c&&Object.keys(c).forEach((function(e){if(!t[e]){t[e]=!0;var r=Z(st(c[e]),a,"_effect-".concat(e),d,u);e.startsWith("@layer")?f=r+f:f+=r}})),[s,i,f]})),(0,m.A)(yt,pe,(function(e,t,r){var n=(0,y.A)(e,5),o=n[2],a=n[3],i=n[4],c=(r||{}).plain;if(!a)return null;var l=o._tokenKey;return[-999,l,Z(a,i,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]})),(0,m.A)(yt,vt,(function(e,t,r){var n=(0,y.A)(e,4),o=n[1],a=n[2],i=n[3],c=(r||{}).plain;if(!o)return null;return[-999,a,Z(o,i,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]}));function bt(e){return e.notSplit=!0,e}bt(["borderTop","borderBottom"]),bt(["borderTop"]),bt(["borderBottom"]),bt(["borderLeft","borderRight"]),bt(["borderLeft"]),bt(["borderRight"]);const xt={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},St=Object.assign(Object.assign({},xt),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),At={token:St,override:{override:St},hashed:!0},kt=n.createContext(At);var Ct=r(67682);const wt=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}};const Et=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};const Ot=e=>{const t=function(e){const t=Array.from({length:10}).map(((t,r)=>{const n=r-1,o=e*Math.pow(Math.E,n/5),a=r>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(a/2)}));return t[1]=e,t.map((e=>{return{size:e,lineHeight:(t=e,(t+8)/t)};var t}))}(e),r=t.map((e=>e.size)),n=t.map((e=>e.lineHeight)),o=r[1],a=r[0],i=r[2],c=n[1],l=n[0],s=n[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:c,lineHeightLG:s,lineHeightSM:l,fontHeight:Math.round(c*o),fontHeightLG:Math.round(s*i),fontHeightSM:Math.round(l*a),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};const Mt=(e,t)=>new v.Y(e).setA(t).toRgbString(),jt=(e,t)=>new v.Y(e).darken(t).toHexString(),Tt=e=>{const t=(0,Ct.cM)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Pt=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Mt(n,.88),colorTextSecondary:Mt(n,.65),colorTextTertiary:Mt(n,.45),colorTextQuaternary:Mt(n,.25),colorFill:Mt(n,.15),colorFillSecondary:Mt(n,.06),colorFillTertiary:Mt(n,.04),colorFillQuaternary:Mt(n,.02),colorBgSolid:Mt(n,1),colorBgSolidHover:Mt(n,.75),colorBgSolidActive:Mt(n,.95),colorBgLayout:jt(r,4),colorBgContainer:jt(r,0),colorBgElevated:jt(r,0),colorBgSpotlight:Mt(n,.85),colorBgBlur:"transparent",colorBorder:jt(r,15),colorBorderSecondary:jt(r,6)}};const Ht=function(e){var t=Array.isArray(e)?e:[e];return G.has(t)||G.set(t,new N(t)),G.get(t)}((function(e){Ct.uy.pink=Ct.uy.magenta,Ct.UA.pink=Ct.UA.magenta;const t=Object.keys(xt).map((t=>{const r=e[t]===Ct.uy[t]?Ct.UA[t]:(0,Ct.cM)(e[t]);return Array.from({length:10},(()=>1)).reduce(((e,n,o)=>(e["".concat(t,"-").concat(o+1)]=r[o],e["".concat(t).concat(o+1)]=r[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:c,colorPrimary:l,colorBgBase:s,colorTextBase:u}=e,f=r(l),d=r(o),p=r(a),h=r(i),g=r(c),m=n(s,u),y=r(e.colorLink||e.colorInfo),b=new v.Y(h[1]).mix(new v.Y(h[3]),50).toHexString();return Object.assign(Object.assign({},m),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:b,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new v.Y("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Tt,generateNeutralColorPalettes:Pt})),Ot(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}(e)),Et(e)),function(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:"".concat((r+t).toFixed(1),"s"),motionDurationMid:"".concat((r+2*t).toFixed(1),"s"),motionDurationSlow:"".concat((r+3*t).toFixed(1),"s"),lineWidthBold:o+1},wt(n))}(e))})),Bt=Ht;function zt(e){return e>=0&&e<=255}const It=function(e,t){const{r:r,g:n,b:o,a:a}=new v.Y(e).toRgb();if(a<1)return e;const{r:i,g:c,b:l}=new v.Y(t).toRgb();for(let s=.01;s<=1;s+=.01){const e=Math.round((r-i*(1-s))/s),t=Math.round((n-c*(1-s))/s),a=Math.round((o-l*(1-s))/s);if(zt(e)&&zt(t)&&zt(a))return new v.Y({r:e,g:t,b:a,a:Math.round(100*s)/100}).toRgbString()}return new v.Y({r:r,g:n,b:o,a:1}).toRgbString()};var Dt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o{delete n[e]}));const o=Object.assign(Object.assign({},r),n),a=1200,i=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:It(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:It(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:It(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:It(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:a,screenXLMin:a,screenXLMax:1599,screenXXL:i,screenXXLMin:i,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:"\n 0 1px 2px -2px ".concat(new v.Y("rgba(0, 0, 0, 0.16)").toRgbString(),",\n 0 3px 6px 0 ").concat(new v.Y("rgba(0, 0, 0, 0.12)").toRgbString(),",\n 0 5px 12px 4px ").concat(new v.Y("rgba(0, 0, 0, 0.09)").toRgbString(),"\n "),boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var Ft=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o{const n=r.getDerivativeToken(e),{override:o}=t,a=Ft(t,["override"]);let i=Object.assign(Object.assign({},n),{override:o});return i=Lt(i),a&&Object.entries(a).forEach((e=>{let[t,r]=e;const{theme:n}=r,o=Ft(r,["theme"]);let a=o;n&&(a=$t(Object.assign(Object.assign({},i),o),{override:o},n)),i[t]=a})),i};function Nt(){const{token:e,hashed:t,theme:r,override:o,cssVar:a}=n.useContext(kt),i="".concat("5.24.2","-").concat(t||""),c=r||Bt,[l,s,u]=he(c,[St,e],{salt:i,override:o,getComputedToken:$t,formatToken:Lt,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:_t,ignore:Rt,preserve:Xt}});return[c,u,t?s:"",l,a]}const Gt=()=>{const[,e]=Nt(),[t]=g("Empty"),r=new v.Y(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return n.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},n.createElement("title",null,(null===t||void 0===t?void 0:t.description)||"Empty"),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("g",{transform:"translate(24 31.67)"},n.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),n.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),n.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),n.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),n.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),n.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),n.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},n.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),n.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};const Wt=()=>{const[,e]=Nt(),[t]=g("Empty"),{colorFill:r,colorFillTertiary:o,colorFillQuaternary:a,colorBgContainer:i}=e,{borderColor:c,shadowColor:l,contentColor:s}=(0,n.useMemo)((()=>({borderColor:new v.Y(r).onBackground(i).toHexString(),shadowColor:new v.Y(o).onBackground(i).toHexString(),contentColor:new v.Y(a).onBackground(i).toHexString()})),[r,o,a,i]);return n.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},n.createElement("title",null,(null===t||void 0===t?void 0:t.description)||"Empty"),n.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},n.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),n.createElement("g",{fillRule:"nonzero",stroke:c},n.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),n.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))};var Yt=r(50359),Ut=r(34624);function Vt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,Ut.A)(e,t)}function qt(e){return qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qt(e)}function Kt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kt=function(){return!!e})()}function Qt(e){var t=Kt();return function(){var r,n=qt(e);if(t){var o=qt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"==(0,F.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,Yt.A)(e)}(this,r)}}const Zt=M((function e(){w(this,e)}));var Jt="CALC_UNIT",er=new RegExp(Jt,"g");function tr(e){return"number"===typeof e?"".concat(e).concat(Jt):e}var rr=function(e){Vt(r,e);var t=Qt(r);function r(e,n){var o;w(this,r),o=t.call(this),(0,m.A)((0,Yt.A)(o),"result",""),(0,m.A)((0,Yt.A)(o),"unitlessCssVar",void 0),(0,m.A)((0,Yt.A)(o),"lowPriority",void 0);var a=(0,F.A)(e);return o.unitlessCssVar=n,e instanceof r?o.result="(".concat(e.result,")"):"number"===a?o.result=tr(e):"string"===a&&(o.result=e),o}return M(r,[{key:"add",value:function(e){return e instanceof r?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," + ").concat(tr(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof r?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," - ").concat(tr(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof r?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof r?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,r=(e||{}).unit,n=!0;return"boolean"===typeof r?n=r:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(n=!1),this.result=this.result.replace(er,n?"px":""),"undefined"!==typeof this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),r}(Zt);const nr=function(e){Vt(r,e);var t=Qt(r);function r(e){var n;return w(this,r),n=t.call(this),(0,m.A)((0,Yt.A)(n),"result",0),e instanceof r?n.result=e.result:"number"===typeof e&&(n.result=e),n}return M(r,[{key:"add",value:function(e){return e instanceof r?this.result+=e.result:"number"===typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof r?this.result-=e.result:"number"===typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof r?this.result*=e.result:"number"===typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof r?this.result/=e.result:"number"===typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),r}(Zt);const or=function(e,t){var r="css"===e?rr:nr;return function(e){return new r(e,t)}};const ar=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};r(26267),Symbol.for("react.element"),Symbol.for("react.transitional.element"),Symbol.for("react.fragment");Number(n.version.split(".")[0]);"undefined"===typeof Reflect?Object.keys:Reflect.ownKeys;const ir=function(e,t,r,n){var o=(0,s.A)({},t[e]);null!==n&&void 0!==n&&n.deprecatedTokens&&n.deprecatedTokens.forEach((function(e){var t,r=(0,y.A)(e,2),n=r[0],a=r[1];(null!==o&&void 0!==o&&o[n]||null!==o&&void 0!==o&&o[a])&&(null!==(t=o[a])&&void 0!==t||(o[a]=null===o||void 0===o?void 0:o[n]))}));var a=(0,s.A)((0,s.A)({},r),o);return Object.keys(a).forEach((function(e){a[e]===t[e]&&delete a[e]})),a};var cr="undefined"!==typeof CSSINJS_STATISTIC,lr=!0;function sr(){for(var e=arguments.length,t=new Array(e),r=0;r1e4){var t=Date.now();this.lastAccessBeat.forEach((function(r,n){t-r>6e5&&(e.map.delete(n),e.lastAccessBeat.delete(n))})),this.accessBeat=0}}}]),e}(),vr=new gr;const mr=function(e,t){return n.useMemo((function(){var r=vr.get(t);if(r)return r;var n=e();return vr.set(t,n),n}),t)};const yr=function(){return{}};const br=function(e){var t=e.useCSP,r=void 0===t?yr:t,o=e.useToken,a=e.usePrefix,i=e.getResetStyles,c=e.getCommonStyle,l=e.getCompUnitless;function u(t,n,l){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=Array.isArray(t)?t:[t,t],d=(0,y.A)(f,1)[0],p=f.join("-"),h=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,f=o(),g=f.theme,v=f.realToken,m=f.hashId,y=f.token,b=f.cssVar,x=a(),S=x.rootPrefixCls,A=x.iconPrefixCls,k=r(),C=b?"css":"js",w=mr((function(){var e=new Set;return b&&Object.keys(u.unitless||{}).forEach((function(t){e.add(J(t,b.prefix)),e.add(J(t,ar(d,b.prefix)))})),or(C,e)}),[C,d,null===b||void 0===b?void 0:b.prefix]),E=hr(C),O=E.max,M=E.min,j={theme:g,token:y,hashId:m,nonce:function(){return k.nonce},clientOnly:u.clientOnly,layer:h,order:u.order||-999};return"function"===typeof i&>((0,s.A)((0,s.A)({},j),{},{clientOnly:!1,path:["Shared",S]}),(function(){return i(y,{prefix:{rootPrefixCls:S,iconPrefixCls:A},csp:k})})),[gt((0,s.A)((0,s.A)({},j),{},{path:[p,e,A]}),(function(){if(!1===u.injectStyle)return[];var r=dr(y),o=r.token,a=r.flush,i=pr(d,v,l),s=".".concat(e),f=ir(d,v,i,{deprecatedTokens:u.deprecatedTokens});b&&i&&"object"===(0,F.A)(i)&&Object.keys(i).forEach((function(e){i[e]="var(".concat(J(e,ar(d,b.prefix)),")")}));var p=sr(o,{componentCls:s,prefixCls:e,iconCls:".".concat(A),antCls:".".concat(S),calc:w,max:O,min:M},b?i:f),h=n(p,{hashId:m,prefixCls:e,rootPrefixCls:S,iconPrefixCls:A});a(d,f);var g="function"===typeof c?c(p,e,t,u.resetFont):null;return[!1===u.resetStyle?null:g,h]})),m]}}return{genStyleHooks:function(e,t,r,a){var i=Array.isArray(e)?e[0]:e;function c(e){return"".concat(String(i)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var f=(null===a||void 0===a?void 0:a.unitless)||{},d="function"===typeof l?l(e):{},p=(0,s.A)((0,s.A)({},d),{},(0,m.A)({},c("zIndexPopup"),!0));Object.keys(f).forEach((function(e){p[c(e)]=f[e]}));var h=(0,s.A)((0,s.A)({},a),{},{unitless:p,prefixToken:c}),g=u(e,t,r,h),v=function(e,t,r){var a=r.unitless,i=r.injectStyle,c=void 0===i||i,l=r.prefixToken,s=r.ignore,u=function(n){var i=n.rootCls,c=n.cssVar,u=void 0===c?{}:c,f=o().realToken;return mt({path:[e],prefix:u.prefix,key:u.key,unitless:a,ignore:s,token:f,scope:i},(function(){var n=pr(e,f,t),o=ir(e,f,n,{deprecatedTokens:null===r||void 0===r?void 0:r.deprecatedTokens});return Object.keys(n).forEach((function(e){o[l(e)]=o[e],delete o[e]})),o})),null},f=function(t){var r=o().cssVar;return[function(o){return c&&r?n.createElement(n.Fragment,null,n.createElement(u,{rootCls:t,cssVar:r,component:e}),o):o},null===r||void 0===r?void 0:r.key]};return f}(i,r,h);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=g(e,t),n=(0,y.A)(r,2)[1],o=v(t),a=(0,y.A)(o,2);return[a[0],n,a[1]]}},genSubStyleComponent:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=u(e,t,r,(0,s.A)({resetStyle:!1,order:-998},n));return function(e){var t=e.prefixCls,r=e.rootCls;return o(t,void 0===r?t:r),null}},genComponentStyleHook:u}},xr="anticon",Sr=n.createContext({getPrefixCls:(e,t)=>t||(e?"".concat("ant","-").concat(e):"ant"),iconPrefixCls:xr}),{Consumer:Ar}=Sr,kr={};const{genStyleHooks:Cr,genComponentStyleHook:wr,genSubStyleComponent:Er}=br({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,n.useContext)(Sr);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,o]=Nt();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{const{csp:e}=(0,n.useContext)(Sr);return null!==e&&void 0!==e?e:{}},getResetStyles:(e,t)=>{var r;const n=(e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}))(e);return[n,{"&":n},(o=null!==(r=null===t||void 0===t?void 0:t.prefix.iconPrefixCls)&&void 0!==r?r:xr,{[".".concat(o)]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[".".concat(o," .").concat(o,"-icon")]:{display:"block"}})})];var o},getCommonStyle:(e,t,r,n)=>{const o='[class^="'.concat(t,'"], [class*=" ').concat(t,'"]'),a=r?".".concat(r):o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let c={};return!1!==n&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},c),i),{[o]:i})}},getCompUnitless:()=>_t}),Or=e=>{const{componentCls:t,margin:r,marginXS:n,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:n,fontSize:a,lineHeight:i,textAlign:"center",["".concat(t,"-image")]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},["".concat(t,"-description")]:{color:e.colorTextDescription},["".concat(t,"-footer")]:{marginTop:r},"&-normal":{marginBlock:o,color:e.colorTextDescription,["".concat(t,"-description")]:{color:e.colorTextDescription},["".concat(t,"-image")]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,["".concat(t,"-image")]:{height:e.emptyImgHeightSM}}}}},Mr=Cr("Empty",(e=>{const{componentCls:t,controlHeightLG:r,calc:n}=e,o=sr(e,{emptyImgCls:"".concat(t,"-img"),emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()});return[Or(o)]}));var jr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o{const{className:t,rootClassName:r,prefixCls:o,image:a=Tr,description:c,children:l,imageStyle:s,style:u,classNames:f,styles:d}=e,p=jr(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:h,direction:v,className:m,style:y,classNames:b,styles:x}=function(e){const t=n.useContext(Sr),{getPrefixCls:r,direction:o,getPopupContainer:a}=t,i=t[e];return Object.assign(Object.assign({classNames:kr,styles:kr},i),{getPrefixCls:r,direction:o,getPopupContainer:a})}("empty"),S=h("empty",o),[A,k,C]=Mr(S),[w]=g("Empty"),E="undefined"!==typeof c?c:null===w||void 0===w?void 0:w.description,O="string"===typeof E?E:"empty";let M=null;return M="string"===typeof a?n.createElement("img",{alt:O,src:a}):a,A(n.createElement("div",Object.assign({className:i()(k,C,S,m,{["".concat(S,"-normal")]:a===Pr,["".concat(S,"-rtl")]:"rtl"===v},t,r,b.root,null===f||void 0===f?void 0:f.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},x.root),y),null===d||void 0===d?void 0:d.root),u)},p),n.createElement("div",{className:i()("".concat(S,"-image"),b.image,null===f||void 0===f?void 0:f.image),style:Object.assign(Object.assign(Object.assign({},s),x.image),null===d||void 0===d?void 0:d.image)},M),E&&n.createElement("div",{className:i()("".concat(S,"-description"),b.description,null===f||void 0===f?void 0:f.description),style:Object.assign(Object.assign({},x.description),null===d||void 0===d?void 0:d.description)},E),l&&n.createElement("div",{className:i()("".concat(S,"-footer"),b.footer,null===f||void 0===f?void 0:f.footer),style:Object.assign(Object.assign({},x.footer),null===d||void 0===d?void 0:d.footer)},l)))};Hr.PRESENTED_IMAGE_DEFAULT=Tr,Hr.PRESENTED_IMAGE_SIMPLE=Pr;const Br=Hr}}]); \ No newline at end of file diff --git a/build/static/js/3838.10f5e491.chunk.js.LICENSE.txt b/build/static/js/8464.8b814dfe.chunk.js.LICENSE.txt similarity index 100% rename from build/static/js/3838.10f5e491.chunk.js.LICENSE.txt rename to build/static/js/8464.8b814dfe.chunk.js.LICENSE.txt diff --git a/build/static/js/8471.b441dcad.chunk.js b/build/static/js/8471.b441dcad.chunk.js new file mode 100644 index 0000000..ef83e34 --- /dev/null +++ b/build/static/js/8471.b441dcad.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[8471],{5670:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var a=n(84849),r=n(27326),o=n(85672),i=n(72574),s=n(25234),l=n(60308),c=n(38009),u=n(37300),d=n(10644);function m(e){return(0,d.Ay)("MuiDialogContent",e)}(0,u.A)("MuiDialogContent",["root","dividers"]);var h=n(30903),f=n(65908);const v=["className","dividers"],g=(0,l.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((e=>{let{theme:t,ownerState:n}=e;return(0,r.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},n.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:{[".".concat(h.A.root," + &")]:{paddingTop:0}})})),p=o.forwardRef((function(e,t){const n=(0,c.b)({props:e,name:"MuiDialogContent"}),{className:o,dividers:l=!1}=n,u=(0,a.A)(n,v),d=(0,r.A)({},n,{dividers:l}),h=(e=>{const{classes:t,dividers:n}=e,a={root:["root",n&&"dividers"]};return(0,s.A)(a,m,t)})(d);return(0,f.jsx)(g,(0,r.A)({className:(0,i.A)(h.root,o),ownerState:d,ref:t},u))}))},6026:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});const a=n(85672).createContext({})},11639:(e,t,n)=>{"use strict";var a=n(39744);t.A=void 0;var r=a(n(24956)),o=n(65908);t.A=(0,r.default)((0,o.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft")},15473:(e,t,n)=>{"use strict";var a=n(39744);t.A=void 0;var r=a(n(24956)),o=n(65908);t.A=(0,r.default)((0,o.jsx)("path",{d:"M16.01 11H4v2h12.01v3L20 12l-3.99-4z"}),"ArrowRightAlt")},17182:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});var a={};function r(){return a}},19619:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var a=n(27326),r=n(84849),o=n(85672),i=n(72574),s=n(25234),l=n(2866),c=n(60308),u=n(38009),d=n(30903),m=n(6026),h=n(65908);const f=["className","id"],v=(0,c.Ay)(l.A,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),g=o.forwardRef((function(e,t){const n=(0,u.b)({props:e,name:"MuiDialogTitle"}),{className:l,id:c}=n,g=(0,r.A)(n,f),p=n,b=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},d.t,t)})(p),{titleId:A=c}=o.useContext(m.A);return(0,h.jsx)(v,(0,a.A)({component:"h2",className:(0,i.A)(b.root,l),ownerState:p,ref:t,variant:"h6",id:null!=c?c:A},g))}))},22686:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(a,r,o){var i=r.prototype;o.utc=function(e){return new r({date:e,utc:!0,args:arguments})},i.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},i.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=i.parse;i.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=i.init;i.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=i.utcOffset;i.utcOffset=function(a,r){var o=this.$utils().u;if(o(a))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof a&&(a=function(e){void 0===e&&(e="");var a=e.match(t);if(!a)return null;var r=(""+a[0]).match(n)||["-",0,0],o=r[0],i=60*+r[1]+ +r[2];return 0===i?0:"+"===o?i:-i}(a),null===a))return this;var i=Math.abs(a)<=16?60*a:a,s=this;if(r)return s.$offset=i,s.$u=0===a,s;if(0!==a){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(i+l,e)).$offset=i,s.$x.$localOffset=l}else s=this.utc();return s};var u=i.format;i.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},i.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var d=i.toDate;i.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var m=i.diff;i.diff=function(e,t,n){if(e&&this.$u===e.$u)return m.call(this,e,t,n);var a=this.local(),r=o(e).local();return m.call(a,r,t,n)}}}()},30903:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,t:()=>o});var a=n(37300),r=n(10644);function o(e){return(0,r.Ay)("MuiDialogTitle",e)}const i=(0,a.A)("MuiDialogTitle",["root"])},33090:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(17182),r=n(69295),o=n(56008),i=n(39211);function s(e,t){var n,s,l,c,u,d,m,h;(0,i.A)(1,arguments);var f=(0,a.q)(),v=(0,o.A)(null!==(n=null!==(s=null!==(l=null!==(c=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==c?c:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:f.weekStartsOn)&&void 0!==s?s:null===(m=f.locale)||void 0===m||null===(h=m.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,r.A)(e),p=g.getDay(),b=6+(p{"use strict";n.d(t,{A:()=>o});var a=n(69295),r=n(39211);function o(e){(0,r.A)(1,arguments);var t=(0,a.A)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},36117:(e,t,n)=>{"use strict";n.d(t,{U:()=>ot});var a=n(85672),r=n(1939),o=n(11969),i=n(29398),s=n(51422),l=n(77865),c=n(48738),u=n(2866),d=n(55235),m=n(31975),h=n(41337),f=n(44117),v=n(58571),g=n(80959),p=n(33323),b=n(33090),A=n(75732),y=n(69295),w=n(39211);function D(e,t){(0,w.A)(2,arguments);var n=(0,y.A)(e),a=(0,y.A)(t);return n.getTime()=a&&n<=r}Math.pow(10,8);var k=6e4,S=36e5,N=n(56008);function O(e,t){var n;(0,w.A)(1,arguments);var a=(0,N.A)(null!==(n=null===t||void 0===t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==a&&1!==a&&0!==a)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var r,o=function(e){var t,n={},a=e.split(E.dateTimeDelimiter);if(a.length>2)return n;/:/.test(a[0])?t=a[0]:(n.date=a[0],t=a[1],E.timeZoneDelimiter.test(n.date)&&(n.date=e.split(E.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var r=E.timezone.exec(t);r?(n.time=t.replace(r[1],""),n.timezone=r[1]):n.time=t}return n}(e);if(o.date){var i=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),a=e.match(n);if(!a)return{year:NaN,restDateString:""};var r=a[1]?parseInt(a[1]):null,o=a[2]?parseInt(a[2]):null;return{year:null===o?r:100*o,restDateString:e.slice((a[1]||a[2]).length)}}(o.date,a);r=function(e,t){if(null===t)return new Date(NaN);var n=e.match(P);if(!n)return new Date(NaN);var a=!!n[4],r=Y(n[1]),o=Y(n[2])-1,i=Y(n[3]),s=Y(n[4]),l=Y(n[5])-1;if(a)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?function(e,t,n){var a=new Date(0);a.setUTCFullYear(e,0,4);var r=a.getUTCDay()||7,o=7*(t-1)+n+1-r;return a.setUTCDate(a.getUTCDate()+o),a}(t,s,l):new Date(NaN);var c=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(R[t]||(H(e)?29:28))}(t,o,i)&&function(e,t){return t>=1&&t<=(H(e)?366:365)}(t,r)?(c.setUTCFullYear(t,o,Math.max(r,i)),c):new Date(NaN)}(i.restDateString,i.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);var s,l=r.getTime(),c=0;if(o.time&&(c=function(e){var t=e.match(W);if(!t)return NaN;var n=F(t[1]),a=F(t[2]),r=F(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,a,r))return NaN;return n*S+a*k+1e3*r}(o.time),isNaN(c)))return new Date(NaN);if(!o.timezone){var u=new Date(l+c),d=new Date(0);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return s=function(e){if("Z"===e)return 0;var t=e.match(U);if(!t)return 0;var n="+"===t[1]?-1:1,a=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,r))return NaN;return n*(a*S+r*k)}(o.timezone),isNaN(s)?new Date(NaN):new Date(l+c+s)}var E={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},P=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,W=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,U=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Y(e){return e?parseInt(e):1}function F(e){return e&&parseFloat(e.replace(",","."))||0}var R=[31,null,31,30,31,30,31,31,30,31,30,31];function H(e){return e%400===0||e%4===0&&e%100!==0}var j=n(87518);function I(e){if((0,w.A)(1,arguments),!function(e){return(0,w.A)(1,arguments),e instanceof Date||"object"===(0,j.A)(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!==typeof e)return!1;var t=(0,y.A)(e);return!isNaN(Number(t))}function $(e){var t,n;if((0,w.A)(1,arguments),e&&"function"===typeof e.forEach)t=e;else{if("object"!==(0,j.A)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=(0,y.A)(e);(void 0===n||nt||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}function q(e,t){(0,w.A)(2,arguments);var n=(0,y.A)(e),a=(0,y.A)(t);return n.getFullYear()===a.getFullYear()&&n.getMonth()===a.getMonth()}var z=n(43962),B=n(52994);function G(e){(0,w.A)(1,arguments);var t=(0,y.A)(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function X(e){(0,w.A)(1,arguments);var t=(0,y.A)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function V(e,t){(0,w.A)(2,arguments);var n=(0,N.A)(t);return(0,z.A)(e,12*n)}function Q(e,t){(0,w.A)(2,arguments);var n=(0,y.A)(e),a=(0,N.A)(t),r=n.getFullYear(),o=n.getDate(),i=new Date(0);i.setFullYear(r,a,15),i.setHours(0,0,0,0);var s=function(e){(0,w.A)(1,arguments);var t=(0,y.A)(e),n=t.getFullYear(),a=t.getMonth(),r=new Date(0);return r.setFullYear(n,a+1,0),r.setHours(0,0,0,0),r.getDate()}(i);return n.setMonth(a,Math.min(o,s)),n}function _(e){return(0,w.A)(1,arguments),(0,y.A)(e).getMonth()}function J(e){return(0,w.A)(1,arguments),(0,y.A)(e).getFullYear()}function Z(e,t){return(0,w.A)(2,arguments),function(e,t){(0,w.A)(2,arguments);var n=(0,y.A)(e).getTime(),a=(0,N.A)(t);return new Date(n+a)}(e,-(0,N.A)(t))}function K(e){(0,w.A)(1,arguments);var t=(0,y.A)(e),n=t.getUTCDay(),a=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-a),t.setUTCHours(0,0,0,0),t}function ee(e){(0,w.A)(1,arguments);var t=(0,y.A)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var r=K(a),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var i=K(o);return t.getTime()>=r.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function te(e){(0,w.A)(1,arguments);var t=(0,y.A)(e),n=K(t).getTime()-function(e){(0,w.A)(1,arguments);var t=ee(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),K(n)}(t).getTime();return Math.round(n/6048e5)+1}var ne=n(17182);function ae(e,t){var n,a,r,o,i,s,l,c;(0,w.A)(1,arguments);var u=(0,ne.q)(),d=(0,N.A)(null!==(n=null!==(a=null!==(r=null!==(o=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==o?o:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==r?r:u.weekStartsOn)&&void 0!==a?a:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=(0,y.A)(e),h=m.getUTCDay(),f=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(d+1,0,h),f.setUTCHours(0,0,0,0);var v=ae(f,t),g=new Date(0);g.setUTCFullYear(d,0,h),g.setUTCHours(0,0,0,0);var p=ae(g,t);return u.getTime()>=v.getTime()?d+1:u.getTime()>=p.getTime()?d:d-1}function oe(e,t){(0,w.A)(1,arguments);var n=(0,y.A)(e),a=ae(n,t).getTime()-function(e,t){var n,a,r,o,i,s,l,c;(0,w.A)(1,arguments);var u=(0,ne.q)(),d=(0,N.A)(null!==(n=null!==(a=null!==(r=null!==(o=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==r?r:u.firstWeekContainsDate)&&void 0!==a?a:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),m=re(e,t),h=new Date(0);return h.setUTCFullYear(m,0,d),h.setUTCHours(0,0,0,0),ae(h,t)}(n,t).getTime();return Math.round(a/6048e5)+1}function ie(e,t){for(var n=e<0?"-":"",a=Math.abs(e).toString();a.length0?n:1-n;return ie("yy"===t?a%100:a,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):ie(n+1,2)},d:function(e,t){return ie(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return ie(e.getUTCHours()%12||12,t.length)},H:function(e,t){return ie(e.getUTCHours(),t.length)},m:function(e,t){return ie(e.getUTCMinutes(),t.length)},s:function(e,t){return ie(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,a=e.getUTCMilliseconds();return ie(Math.floor(a*Math.pow(10,n-3)),t.length)}};var le="midnight",ce="noon",ue="morning",de="afternoon",me="evening",he="night",fe={G:function(e,t,n){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});default:return n.era(a,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var a=e.getUTCFullYear(),r=a>0?a:1-a;return n.ordinalNumber(r,{unit:"year"})}return se.y(e,t)},Y:function(e,t,n,a){var r=re(e,a),o=r>0?r:1-r;return"YY"===t?ie(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):ie(o,t.length)},R:function(e,t){return ie(ee(e),t.length)},u:function(e,t){return ie(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return ie(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,n){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return ie(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,n){var a=e.getUTCMonth();switch(t){case"M":case"MM":return se.M(e,t);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,n){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return ie(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,n,a){var r=oe(e,a);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):ie(r,t.length)},I:function(e,t,n){var a=te(e);return"Io"===t?n.ordinalNumber(a,{unit:"week"}):ie(a,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):se.d(e,t)},D:function(e,t,n){var a=function(e){(0,w.A)(1,arguments);var t=(0,y.A)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var a=n-t.getTime();return Math.floor(a/864e5)+1}(e);return"Do"===t?n.ordinalNumber(a,{unit:"dayOfYear"}):ie(a,t.length)},E:function(e,t,n){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,n,a){var r=e.getUTCDay(),o=(r-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return ie(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,a){var r=e.getUTCDay(),o=(r-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return ie(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var a=e.getUTCDay(),r=0===a?7:a;switch(t){case"i":return String(r);case"ii":return ie(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,n){var a=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){var a,r=e.getUTCHours();switch(a=12===r?ce:0===r?le:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){var a,r=e.getUTCHours();switch(a=r>=17?me:r>=12?de:r>=4?ue:he,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var a=e.getUTCHours()%12;return 0===a&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return se.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):se.H(e,t)},K:function(e,t,n){var a=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(a,{unit:"hour"}):ie(a,t.length)},k:function(e,t,n){var a=e.getUTCHours();return 0===a&&(a=24),"ko"===t?n.ordinalNumber(a,{unit:"hour"}):ie(a,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):se.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):se.s(e,t)},S:function(e,t){return se.S(e,t)},X:function(e,t,n,a){var r=(a._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return ge(r);case"XXXX":case"XX":return pe(r);default:return pe(r,":")}},x:function(e,t,n,a){var r=(a._originalDate||e).getTimezoneOffset();switch(t){case"x":return ge(r);case"xxxx":case"xx":return pe(r);default:return pe(r,":")}},O:function(e,t,n,a){var r=(a._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ve(r,":");default:return"GMT"+pe(r,":")}},z:function(e,t,n,a){var r=(a._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ve(r,":");default:return"GMT"+pe(r,":")}},t:function(e,t,n,a){var r=a._originalDate||e;return ie(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,a){return ie((a._originalDate||e).getTime(),t.length)}};function ve(e,t){var n=e>0?"-":"+",a=Math.abs(e),r=Math.floor(a/60),o=a%60;if(0===o)return n+String(r);var i=t||"";return n+String(r)+i+ie(o,2)}function ge(e,t){return e%60===0?(e>0?"-":"+")+ie(Math.abs(e)/60,2):pe(e,t)}function pe(e,t){var n=t||"",a=e>0?"-":"+",r=Math.abs(e);return a+ie(Math.floor(r/60),2)+n+ie(r%60,2)}const be=fe;var Ae=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},ye=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},we={p:ye,P:function(e,t){var n,a=e.match(/(P+)(p+)?/)||[],r=a[1],o=a[2];if(!o)return Ae(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Ae(r,t)).replace("{{time}}",ye(o,t))}};const De=we;var xe=["D","DD"],Ce=["YY","YYYY"];function Me(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Te={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const ke=function(e,t,n){var a,r=Te[e];return a="string"===typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};function Se(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var Ne={date:Se({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Se({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Se({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Oe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Ee(e){return function(t,n){var a;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,o=null!==n&&void 0!==n&&n.width?String(n.width):r;a=e.formattingValues[o]||e.formattingValues[r]}else{var i=e.defaultWidth,s=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;a=e.values[s]||e.values[i]}return a[e.argumentCallback?e.argumentCallback(t):t]}}function Pe(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.width,r=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;var i,s=o[0],l=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Ee({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Ee({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ee({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Ee({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Ee({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(We={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(We.matchPattern);if(!n)return null;var a=n[0],r=e.match(We.parsePattern);if(!r)return null;var o=We.valueCallback?We.valueCallback(r[0]):r[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(a.length)}}),era:Pe({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Pe({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Pe({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Pe({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Pe({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var Ye=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Fe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Re=/^'([^]*?)'?$/,He=/''/g,je=/[a-zA-Z]/;function Ie(e,t,n){var a,r,o,i,s,l,c,u,d,m,h,f,v,g,p,b,A,D;(0,w.A)(2,arguments);var x=String(t),C=(0,ne.q)(),M=null!==(a=null!==(r=null===n||void 0===n?void 0:n.locale)&&void 0!==r?r:C.locale)&&void 0!==a?a:Ue,T=(0,N.A)(null!==(o=null!==(i=null!==(s=null!==(l=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null===n||void 0===n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:C.firstWeekContainsDate)&&void 0!==i?i:null===(d=C.locale)||void 0===d||null===(m=d.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==o?o:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=(0,N.A)(null!==(h=null!==(f=null!==(v=null!==(g=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==g?g:null===n||void 0===n||null===(p=n.locale)||void 0===p||null===(b=p.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==v?v:C.weekStartsOn)&&void 0!==f?f:null===(A=C.locale)||void 0===A||null===(D=A.options)||void 0===D?void 0:D.weekStartsOn)&&void 0!==h?h:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!M.localize)throw new RangeError("locale must contain localize property");if(!M.formatLong)throw new RangeError("locale must contain formatLong property");var S=(0,y.A)(e);if(!I(S))throw new RangeError("Invalid time value");var O=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}(S),E=Z(S,O),P={firstWeekContainsDate:T,weekStartsOn:k,locale:M,_originalDate:S};return x.match(Fe).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,De[t])(e,M.formatLong):e})).join("").match(Ye).map((function(a){if("''"===a)return"'";var r=a[0];if("'"===r)return function(e){var t=e.match(Re);if(!t)return e;return t[1].replace(He,"'")}(a);var o,i=be[r];if(i)return null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||(o=a,-1===Ce.indexOf(o))||Me(a,t,String(e)),null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==xe.indexOf(e)}(a)||Me(a,t,String(e)),i(E,a,M.localize,P);if(r.match(je))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return a})).join("")}function $e(e){return(0,w.A)(1,arguments),M(e,Date.now())}function Le(e){return(0,w.A)(1,arguments),(0,y.A)(e).getDate()}function qe(e,t){(0,w.A)(2,arguments);var n=(0,y.A)(e),a=(0,y.A)(t);return n.getTime()>a.getTime()}var ze=n(15473),Be=n(11639),Ge=n(98454);const Xe=(e,t)=>{if(e){const t=e instanceof Date?e:O(e);if(I(t))return t}return t},Ve=(e,t)=>[{label:"Today",startDate:e,endDate:e},{label:"Yesterday",startDate:(0,x.A)(e,-1),endDate:(0,x.A)(e,-1)},{label:"This Week",startDate:(0,g.A)(e,{locale:t}),endDate:(0,b.A)(e,{locale:t})},{label:"Last Week",startDate:(0,g.A)((0,B.A)(e,-1),{locale:t}),endDate:(0,b.A)((0,B.A)(e,-1),{locale:t})},{label:"Last 7 Days",startDate:(0,B.A)(e,-1),endDate:e},{label:"This Month",startDate:(0,p.A)(e),endDate:(0,A.A)(e)},{label:"Last Month",startDate:(0,p.A)((0,z.A)(e,-1)),endDate:(0,A.A)((0,z.A)(e,-1))},{label:"This Year",startDate:G(e),endDate:X(e)},{label:"Last Year",startDate:G(V(e,-1)),endDate:X(V(e,-1))}],Qe=e=>{let{date:t,setDate:n,nextDisabled:c,prevDisabled:u,onClickNext:d,onClickPrevious:m,locale:h}=e;const f="undefined"!==typeof h?[...Array(12).keys()].map((e=>{var t;return null===(t=h.localize)||void 0===t?void 0:t.month(e,{width:"abbreviated",context:"standalone"})})):["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"];return a.createElement(r.Ay,{container:!0,justifyContent:"space-between",alignItems:"center"},a.createElement(r.Ay,{item:!0,sx:{padding:"5px"}},a.createElement(o.A,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:u,onClick:m},a.createElement(Be.A,{color:u?"disabled":"action"}))),a.createElement(r.Ay,{item:!0},a.createElement(i.A,{variant:"standard"},a.createElement(s.A,{value:_(t),onChange:e=>{n(Q(t,parseInt(e.target.value,10)))},MenuProps:{disablePortal:!0}},f.map(((e,t)=>a.createElement(l.A,{key:e,value:t},e)))))),a.createElement(r.Ay,{item:!0},a.createElement(i.A,{variant:"standard"},a.createElement(s.A,{value:J(t),onChange:e=>{n(function(e,t){(0,w.A)(2,arguments);var n=(0,y.A)(e),a=(0,N.A)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(a),n)}(t,parseInt(e.target.value,10)))},MenuProps:{disablePortal:!0}},((e,t)=>{const n=Math.floor(t/2);return Array(t).fill(0).map(((t,a)=>e.getFullYear()-n+a))})(t,30).map((e=>a.createElement(l.A,{key:e,value:e},e)))))),a.createElement(r.Ay,{item:!0,sx:{padding:"5px"}},a.createElement(o.A,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:c,onClick:d},a.createElement(Ge.A,{color:c?"disabled":"action"}))))},_e=e=>{let{startOfRange:t,endOfRange:n,disabled:r,highlighted:i,outlined:s,filled:l,onClick:d,onHover:m,value:h}=e;return a.createElement(c.A,{sx:{display:"flex",borderRadius:t?"50% 0 0 50%":n?"0 50% 50% 0":void 0,backgroundColor:e=>!r&&i?e.palette.primary.light:void 0}},a.createElement(o.A,{sx:Object.assign({height:"36px",width:"36px",padding:0,border:e=>!r&&s?"1px solid ".concat(e.palette.primary.dark):void 0},!r&&l?{"&:hover":{backgroundColor:e=>e.palette.primary.dark},backgroundColor:e=>e.palette.primary.dark}:{}),disabled:r,onClick:d,onMouseOver:m},a.createElement(u.A,{sx:{lineHeight:1.6,color:e=>r?e.palette.text.secondary:l?e.palette.primary.contrastText:e.palette.text.primary},variant:"body2"},h)))};var Je;!function(e){e[e.Previous=-1]="Previous",e[e.Next=1]="Next"}(Je||(Je={}));const Ze=e=>{var t;const{helpers:n,handlers:o,value:i,dateRange:s,marker:l,setValue:c,minDate:m,maxDate:h,locale:f}=e,v=(null===(t=null===f||void 0===f?void 0:f.options)||void 0===t?void 0:t.weekStartsOn)||0,y="undefined"!==typeof f?[...Array(7).keys()].map((e=>{var t;return null===(t=f.localize)||void 0===t?void 0:t.day((e+v)%7,{width:"short",context:"standalone"})})):["Su","Mo","Tu","We","Th","Fr","Sa"],[w,C]=e.navState;return a.createElement(d.A,{square:!0,elevation:0,sx:{width:290}},a.createElement(r.Ay,{container:!0},a.createElement(Qe,{date:i,setDate:c,nextDisabled:!C,prevDisabled:!w,onClickPrevious:()=>o.onMonthNavigate(l,Je.Previous),onClickNext:()=>o.onMonthNavigate(l,Je.Next),locale:f}),a.createElement(r.Ay,{item:!0,container:!0,direction:"row",justifyContent:"space-between",sx:{marginTop:"10px",paddingLeft:"30px",paddingRight:"30px"}},y.map(((e,t)=>a.createElement(u.A,{color:"textSecondary",key:t,variant:"caption"},e)))),a.createElement(r.Ay,{item:!0,container:!0,direction:"column",justifyContent:"space-between",sx:{paddingLeft:"15px",paddingRight:"15px",marginTop:"15px",marginBottom:"20px"}},(k=((e,t)=>{const n=(0,g.A)((0,p.A)(e),{locale:t}),a=(0,b.A)((0,A.A)(e),{locale:t}),r=[];for(let o=n;D(o,a);)r.push(o),o=(0,x.A)(o,1);return r})(i,f),S=7,Array.from({length:Math.ceil(k.length/S)},((e,t)=>k.slice(t*S,t*S+S)))).map(((e,t)=>a.createElement(r.Ay,{key:t,container:!0,direction:"row",justifyContent:"center"},e.map((e=>{const t=((e,t)=>{let{startDate:n}=e;return n&&M(t,n)})(s,e),r=((e,t)=>{let{endDate:n}=e;return n&&M(t,n)})(s,e),l=(e=>{let{startDate:t,endDate:n}=e;return!(!t||!n)&&M(t,n)})(s),c=((e,t)=>{let{startDate:n,endDate:a}=e;return n&&a&&(T(t,{start:n,end:a})||M(t,n)||M(t,a))})(s,e)||n.inHoverRange(e);return a.createElement(_e,{key:Ie(e,"dd-MM-yyyy"),filled:t||r,outlined:$e(e),highlighted:c&&!l,disabled:!q(i,e)||!T(e,{start:m,end:h}),startOfRange:t&&!l,endOfRange:r&&!l,onClick:()=>o.onDayClick(e),onHover:()=>o.onDayHover(e),value:Le(e)})}))))))));var k,S},Ke=(e,t)=>{const{startDate:n,endDate:a}=e,{startDate:r,endDate:o}=t;return!!(n&&r&&a&&o)&&(M(n,r)&&M(a,o))},et=e=>{let{ranges:t,setRange:n,selectedRange:r}=e;return a.createElement(m.A,null,t.map(((e,t)=>a.createElement(h.Ay,{button:!0,key:t,onClick:()=>n(e),sx:[Ke(e,r)&&{backgroundColor:e=>e.palette.primary.dark,color:"primary.contrastText","&:hover":{color:"inherit"}}]},a.createElement(f.A,{primaryTypographyProps:{variant:"body2",sx:{fontWeight:Ke(e,r)?"bold":"normal"}}},e.label)))))},tt={FIRST_MONTH:Symbol("firstMonth"),SECOND_MONTH:Symbol("secondMonth")},nt=e=>{const{ranges:t,dateRange:n,minDate:o,maxDate:i,firstMonth:s,setFirstMonth:l,secondMonth:c,setSecondMonth:m,setDateRange:h,helpers:f,handlers:g,locale:p}=e,{startDate:b,endDate:A}=n,D=function(e,t){(0,w.A)(2,arguments);var n=(0,y.A)(e),a=(0,y.A)(t);return 12*(n.getFullYear()-a.getFullYear())+(n.getMonth()-a.getMonth())}(c,s)>=2,x={dateRange:n,minDate:o,maxDate:i,helpers:f,handlers:g};return a.createElement(d.A,{elevation:5,square:!0},a.createElement(r.Ay,{container:!0,direction:"row",wrap:"nowrap"},a.createElement(r.Ay,null,a.createElement(et,{selectedRange:n,ranges:t,setRange:h})),a.createElement(v.A,{orientation:"vertical",flexItem:!0}),a.createElement(r.Ay,null,a.createElement(r.Ay,{container:!0,sx:{padding:"20px 70px"},alignItems:"center"},a.createElement(r.Ay,{item:!0,sx:{flex:1,textAlign:"center"}},a.createElement(u.A,{variant:"subtitle1"},b?Ie(b,"dd MMMM yyyy",{locale:p}):"Start Date")),a.createElement(r.Ay,{item:!0,sx:{flex:1,textAlign:"center"}},a.createElement(ze.A,{color:"action"})),a.createElement(r.Ay,{item:!0,sx:{flex:1,textAlign:"center"}},a.createElement(u.A,{variant:"subtitle1"},A?Ie(A,"dd MMMM yyyy",{locale:p}):"End Date"))),a.createElement(v.A,null),a.createElement(r.Ay,{container:!0,direction:"row",justifyContent:"center",wrap:"nowrap"},a.createElement(Ze,Object.assign({},x,{value:s,setValue:l,navState:[!0,D],marker:tt.FIRST_MONTH,locale:p})),a.createElement(v.A,{orientation:"vertical",flexItem:!0}),a.createElement(Ze,Object.assign({},x,{value:c,setValue:m,navState:[D,!0],marker:tt.SECOND_MONTH,locale:p}))))))},at=e=>{const t=new Date,{open:n,onChange:r,initialDateRange:o,minDate:i,maxDate:s,definedRanges:l=Ve(new Date,e.locale),locale:c}=e,u=Xe(i,V(t,-10)),d=Xe(s,V(t,10)),[m,h]=((e,t,n)=>{const{startDate:a,endDate:r}=e;if(a&&r){const e=$([a,t]),o=L([r,n]);return[e,q(e,o)?(0,z.A)(e,1):o]}return[a,r]})(o||{},u,d),[f,v]=a.useState(Object.assign({},o)),[g,p]=a.useState(),[b,A]=a.useState(m||t),[y,w]=a.useState(h||(0,z.A)(b,1)),{startDate:x,endDate:C}=f,k={inHoverRange:e=>x&&!C&&g&&qe(g,x)&&T(e,{start:x,end:g})},S={onDayClick:e=>{if(!x||C||D(e,x))v({startDate:e,endDate:void 0});else{const t={startDate:x,endDate:e};r(t),v(t)}p(e)},onDayHover:e=>{x&&!C&&(g&&M(e,g)||p(e))},onMonthNavigate:(e,t)=>{if(e===tt.FIRST_MONTH){const e=(0,z.A)(b,t);D(e,y)&&A(e)}else{const e=(0,z.A)(y,t);D(b,e)&&w(e)}}};return n?a.createElement(nt,{dateRange:f,minDate:u,maxDate:d,ranges:l,firstMonth:b,secondMonth:y,setFirstMonth:e=>{D(e,y)&&A(e)},setSecondMonth:e=>{qe(e,b)&&w(e)},setDateRange:e=>{let{startDate:n,endDate:a}=e;if(n&&a)e.startDate=n=$([n,u]),e.endDate=a=L([a,d]),v(e),r(e),A(n),w(q(n,a)?(0,z.A)(n,1):a);else{const e={};v(e),r(e),A(t),w((0,z.A)(b,1))}},helpers:k,handlers:S,locale:c}):null},rt=e=>{const{closeOnClickOutside:t,wrapperClassName:n,toggle:r,open:o}=e,i=()=>{!1!==t&&r()};return a.createElement(c.A,{sx:{position:"relative"}},o&&a.createElement(c.A,{sx:{position:"fixed",height:"100vh",width:"100vw",bottom:0,zIndex:0,right:0,left:0,top:0},onKeyPress:e=>"Escape"===(null===e||void 0===e?void 0:e.key)&&i(),onClick:i}),a.createElement(c.A,{sx:{position:"relative",zIndex:1},className:n},a.createElement(at,Object.assign({},e))))},ot=e=>a.createElement(rt,Object.assign({},e))},36738:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(56008),r=n(69295),o=n(39211);function i(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(e),i=(0,a.A)(t);return isNaN(i)?new Date(NaN):i?(n.setDate(n.getDate()+i),n):n}},39211:(e,t,n)=>{"use strict";function a(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{A:()=>a})},41337:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>S});var a=n(84849),r=n(27326),o=n(85672),i=n(72574),s=n(25234),l=n(10247),c=n(28292),u=n(60308),d=n(38009),m=n(61949),h=n(92694),f=n(93046),v=n(45688),g=n(78534),p=n(37300),b=n(10644);function A(e){return(0,b.Ay)("MuiListItem",e)}const y=(0,p.A)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var w=n(83611),D=n(97006),x=n(65908);const C=["className"],M=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],T=(0,u.Ay)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((e=>{let{theme:t,ownerState:n}=e;return(0,r.A)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!n.disablePadding&&(0,r.A)({paddingTop:8,paddingBottom:8},n.dense&&{paddingTop:4,paddingBottom:4},!n.disableGutters&&{paddingLeft:16,paddingRight:16},!!n.secondaryAction&&{paddingRight:48}),!!n.secondaryAction&&{["& > .".concat(w.A.root)]:{paddingRight:48}},{["&.".concat(y.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(y.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(y.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(y.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===n.alignItems&&{alignItems:"flex-start"},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},n.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(y.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},n.hasSecondaryAction&&{paddingRight:48})})),k=(0,u.Ay)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),S=o.forwardRef((function(e,t){const n=(0,d.b)({props:e,name:"MuiListItem"}),{alignItems:l="center",autoFocus:u=!1,button:p=!1,children:b,className:w,component:S,components:N={},componentsProps:O={},ContainerComponent:E="li",ContainerProps:{className:P}={},dense:W=!1,disabled:U=!1,disableGutters:Y=!1,disablePadding:F=!1,divider:R=!1,focusVisibleClassName:H,secondaryAction:j,selected:I=!1,slotProps:$={},slots:L={}}=n,q=(0,a.A)(n.ContainerProps,C),z=(0,a.A)(n,M),B=o.useContext(g.A),G=o.useMemo((()=>({dense:W||B.dense||!1,alignItems:l,disableGutters:Y})),[l,B.dense,W,Y]),X=o.useRef(null);(0,f.A)((()=>{u&&X.current&&X.current.focus()}),[u]);const V=o.Children.toArray(b),Q=V.length&&(0,h.A)(V[V.length-1],["ListItemSecondaryAction"]),_=(0,r.A)({},n,{alignItems:l,autoFocus:u,button:p,dense:G.dense,disabled:U,disableGutters:Y,disablePadding:F,divider:R,hasSecondaryAction:Q,selected:I}),J=(e=>{const{alignItems:t,button:n,classes:a,dense:r,disabled:o,disableGutters:i,disablePadding:l,divider:c,hasSecondaryAction:u,selected:d}=e,m={root:["root",r&&"dense",!i&&"gutters",!l&&"padding",c&&"divider",o&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",d&&"selected"],container:["container"]};return(0,s.A)(m,A,a)})(_),Z=(0,v.A)(X,t),K=L.root||N.Root||T,ee=$.root||O.root||{},te=(0,r.A)({className:(0,i.A)(J.root,ee.className,w),disabled:U},z);let ne=S||"li";return p&&(te.component=S||"div",te.focusVisibleClassName=(0,i.A)(y.focusVisible,H),ne=m.A),Q?(ne=te.component||S?ne:"div","li"===E&&("li"===ne?ne="div":"li"===te.component&&(te.component="div")),(0,x.jsx)(g.A.Provider,{value:G,children:(0,x.jsxs)(k,(0,r.A)({as:E,className:(0,i.A)(J.container,P),ref:Z,ownerState:_},q,{children:[(0,x.jsx)(K,(0,r.A)({},ee,!(0,c.A)(K)&&{as:ne,ownerState:(0,r.A)({},_,ee.ownerState)},te,{children:V})),V.pop()]}))})):(0,x.jsx)(g.A.Provider,{value:G,children:(0,x.jsxs)(K,(0,r.A)({},ee,{as:ne,ref:Z},!(0,c.A)(K)&&{ownerState:(0,r.A)({},_,ee.ownerState)},te,{children:[V,j&&(0,x.jsx)(D.A,{children:j})]}))})}))},42129:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,f:()=>o});var a=n(37300),r=n(10644);function o(e){return(0,r.Ay)("MuiDialog",e)}const i=(0,a.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"])},43962:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(56008),r=n(69295),o=n(39211);function i(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(e),i=(0,a.A)(t);if(isNaN(i))return new Date(NaN);if(!i)return n;var s=n.getDate(),l=new Date(n.getTime());return l.setMonth(n.getMonth()+i+1,0),s>=l.getDate()?l:(n.setFullYear(l.getFullYear(),l.getMonth(),s),n)}},52994:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(56008),r=n(36738),o=n(39211);function i(e,t){(0,o.A)(2,arguments);var n=7*(0,a.A)(t);return(0,r.A)(e,n)}},56008:(e,t,n)=>{"use strict";function a(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{A:()=>a})},58689:(e,t,n)=>{"use strict";n.d(t,{A:()=>M});var a=n(84849),r=n(27326),o=n(85672),i=n(72574),s=n(25234),l=n(16660),c=n(16775),u=n(52243),d=n(95345),m=n(55235),h=n(38009),f=n(60308),v=n(42129),g=n(6026),p=n(15227),b=n(69039),A=n(65908);const y=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],w=(0,f.Ay)(p.A,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),D=(0,f.Ay)(u.A,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),x=(0,f.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t["scroll".concat((0,c.A)(n.scroll))]]}})((e=>{let{ownerState:t}=e;return(0,r.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),C=(0,f.Ay)(m.A,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t["scrollPaper".concat((0,c.A)(n.scroll))],t["paperWidth".concat((0,c.A)(String(n.maxWidth)))],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((e=>{let{theme:t,ownerState:n}=e;return(0,r.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===n.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===n.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!n.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===n.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)"),["&.".concat(v.A.paperScrollBody)]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},n.maxWidth&&"xs"!==n.maxWidth&&{maxWidth:"".concat(t.breakpoints.values[n.maxWidth]).concat(t.breakpoints.unit),["&.".concat(v.A.paperScrollBody)]:{[t.breakpoints.down(t.breakpoints.values[n.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},n.fullWidth&&{width:"calc(100% - 64px)"},n.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(v.A.paperScrollBody)]:{margin:0,maxWidth:"100%"}})})),M=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiDialog"}),u=(0,b.A)(),f={enter:u.transitions.duration.enteringScreen,exit:u.transitions.duration.leavingScreen},{"aria-describedby":p,"aria-labelledby":M,BackdropComponent:T,BackdropProps:k,children:S,className:N,disableEscapeKeyDown:O=!1,fullScreen:E=!1,fullWidth:P=!1,maxWidth:W="sm",onBackdropClick:U,onClick:Y,onClose:F,open:R,PaperComponent:H=m.A,PaperProps:j={},scroll:I="paper",TransitionComponent:$=d.A,transitionDuration:L=f,TransitionProps:q}=n,z=(0,a.A)(n,y),B=(0,r.A)({},n,{disableEscapeKeyDown:O,fullScreen:E,fullWidth:P,maxWidth:W,scroll:I}),G=(e=>{const{classes:t,scroll:n,maxWidth:a,fullWidth:r,fullScreen:o}=e,i={root:["root"],container:["container","scroll".concat((0,c.A)(n))],paper:["paper","paperScroll".concat((0,c.A)(n)),"paperWidth".concat((0,c.A)(String(a))),r&&"paperFullWidth",o&&"paperFullScreen"]};return(0,s.A)(i,v.f,t)})(B),X=o.useRef(),V=(0,l.A)(M),Q=o.useMemo((()=>({titleId:V})),[V]);return(0,A.jsx)(D,(0,r.A)({className:(0,i.A)(G.root,N),closeAfterTransition:!0,components:{Backdrop:w},componentsProps:{backdrop:(0,r.A)({transitionDuration:L,as:T},k)},disableEscapeKeyDown:O,onClose:F,open:R,ref:t,onClick:e=>{Y&&Y(e),X.current&&(X.current=null,U&&U(e),F&&F(e,"backdropClick"))},ownerState:B},z,{children:(0,A.jsx)($,(0,r.A)({appear:!0,in:R,timeout:L,role:"presentation"},q,{children:(0,A.jsx)(x,{className:(0,i.A)(G.container),onMouseDown:e=>{X.current=e.target===e.currentTarget},ownerState:B,children:(0,A.jsx)(C,(0,r.A)({as:H,elevation:24,role:"dialog","aria-describedby":p,"aria-labelledby":V},j,{className:(0,i.A)(G.paper,j.className),ownerState:B,children:(0,A.jsx)(g.A.Provider,{value:Q,children:S})}))})}))}))}))},69295:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(87518),r=n(39211);function o(e){(0,r.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,a.A)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},75732:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(69295),r=n(39211);function o(e){(0,r.A)(1,arguments);var t=(0,a.A)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},77865:(e,t,n)=>{"use strict";n.d(t,{A:()=>T});var a=n(84849),r=n(27326),o=n(85672),i=n(72574),s=n(25234),l=n(10247),c=n(60308),u=n(24270),d=n(38009),m=n(78534),h=n(61949),f=n(93046),v=n(45688),g=n(8191),p=n(58541),b=n(43917),A=n(37300),y=n(10644);function w(e){return(0,y.Ay)("MuiMenuItem",e)}const D=(0,A.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var x=n(65908);const C=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],M=(0,c.Ay)(h.A,{shouldForwardProp:e=>(0,u.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:n}=e;return(0,r.A)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(D.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(D.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(D.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(D.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(D.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(g.A.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(g.A.inset)]:{marginLeft:52},["& .".concat(b.A.root)]:{marginTop:0,marginBottom:0},["& .".concat(b.A.inset)]:{paddingLeft:36},["& .".concat(p.A.root)]:{minWidth:36}},!n.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},n.dense&&(0,r.A)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(p.A.root," svg")]:{fontSize:"1.25rem"}}))})),T=o.forwardRef((function(e,t){const n=(0,d.b)({props:e,name:"MuiMenuItem"}),{autoFocus:l=!1,component:c="li",dense:u=!1,divider:h=!1,disableGutters:g=!1,focusVisibleClassName:p,role:b="menuitem",tabIndex:A,className:y}=n,D=(0,a.A)(n,C),T=o.useContext(m.A),k=o.useMemo((()=>({dense:u||T.dense||!1,disableGutters:g})),[T.dense,u,g]),S=o.useRef(null);(0,f.A)((()=>{l&&S.current&&S.current.focus()}),[l]);const N=(0,r.A)({},n,{dense:k.dense,divider:h,disableGutters:g}),O=(e=>{const{disabled:t,dense:n,divider:a,disableGutters:o,selected:i,classes:l}=e,c={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",a&&"divider",i&&"selected"]},u=(0,s.A)(c,w,l);return(0,r.A)({},l,u)})(n),E=(0,v.A)(S,t);let P;return n.disabled||(P=void 0!==A?A:-1),(0,x.jsx)(m.A.Provider,{value:k,children:(0,x.jsx)(M,(0,r.A)({ref:E,role:b,tabIndex:P,component:c,focusVisibleClassName:(0,i.A)(O.focusVisible,p),className:(0,i.A)(O.root,y)},D,{ownerState:N,classes:O}))})}))},80959:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(69295),r=n(56008),o=n(39211),i=n(17182);function s(e,t){var n,s,l,c,u,d,m,h;(0,o.A)(1,arguments);var f=(0,i.q)(),v=(0,r.A)(null!==(n=null!==(s=null!==(l=null!==(c=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==c?c:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:f.weekStartsOn)&&void 0!==s?s:null===(m=f.locale)||void 0===m||null===(h=m.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,a.A)(e),p=g.getDay(),b=(p{"use strict";var a=n(39744);t.A=void 0;var r=a(n(24956)),o=n(65908);t.A=(0,r.default)((0,o.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight")}}]); \ No newline at end of file diff --git a/build/static/js/8478.2bdfed69.chunk.js b/build/static/js/8478.2bdfed69.chunk.js new file mode 100644 index 0000000..f45270b --- /dev/null +++ b/build/static/js/8478.2bdfed69.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 8478.2bdfed69.chunk.js.LICENSE.txt */ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[8478],{855:(e,r,n)=>{n.d(r,{A:()=>i});var t=n(68106),o=n(82522),a=n(65908);function i(e){var r,n;let i,s,{children:l,type:c="scale",direction:p="right",offset:d=10,scale:h={hover:1.05,tap:.95}}=e;switch(p){case"up":case"left":i=d,s=0;break;default:i=0,s=d}const[x,m]=(0,t.Y)(i,s),[u,y]=(0,t.Y)(i,s);switch(c){case"rotate":return(0,a.jsx)(o.P.div,{animate:{rotate:360},transition:{repeat:1/0,repeatType:"loop",duration:2,repeatDelay:0},children:l});case"slide":return"up"===p||"down"===p?(0,a.jsx)(o.P.div,{animate:{y:void 0!==u?u:""},onHoverEnd:()=>y(),onHoverStart:()=>y(),children:l}):(0,a.jsx)(o.P.div,{animate:{x:void 0!==x?x:""},onHoverEnd:()=>m(),onHoverStart:()=>m(),children:l});default:return"number"===typeof h&&(h={hover:h,tap:h}),(0,a.jsx)(o.P.div,{whileHover:{scale:null===(r=h)||void 0===r?void 0:r.hover},whileTap:{scale:null===(n=h)||void 0===n?void 0:n.tap},children:l})}}},7051:(e,r,n)=>{n.d(r,{A:()=>w});var t=n(84849),o=n(27326),a=n(85672),i=n(72574),s=n(25234),l=n(16775),c=n(60308),p=n(38009),d=n(18233),h=n(45688),x=n(2866),m=n(37300),u=n(10644);function y(e){return(0,u.Ay)("MuiLink",e)}const A=(0,m.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var L=n(27909),j=n(10247);const v={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},f=e=>{let{theme:r,ownerState:n}=e;const t=(e=>v[e]||e)(n.color),o=(0,L.Yn)(r,"palette.".concat(t),!1)||n.color,a=(0,L.Yn)(r,"palette.".concat(t,"Channel"));return"vars"in r&&a?"rgba(".concat(a," / 0.4)"):(0,j.X4)(o,.4)};var g=n(65908);const b=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],C=(0,c.Ay)(x.A,{name:"MuiLink",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.root,r["underline".concat((0,l.A)(n.underline))],"button"===n.component&&r.button]}})((e=>{let{theme:r,ownerState:n}=e;return(0,o.A)({},"none"===n.underline&&{textDecoration:"none"},"hover"===n.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===n.underline&&(0,o.A)({textDecoration:"underline"},"inherit"!==n.color&&{textDecorationColor:f({theme:r,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===n.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(A.focusVisible)]:{outline:"auto"}})})),w=a.forwardRef((function(e,r){const n=(0,p.b)({props:e,name:"MuiLink"}),{className:c,color:x="primary",component:m="a",onBlur:u,onFocus:A,TypographyClasses:L,underline:j="always",variant:f="inherit",sx:w}=n,k=(0,t.A)(n,b),{isFocusVisibleRef:H,onBlur:M,onFocus:V,ref:D}=(0,d.A)(),[_,S]=a.useState(!1),Z=(0,h.A)(r,D),N=(0,o.A)({},n,{color:x,component:m,focusVisible:_,underline:j,variant:f}),P=(e=>{const{classes:r,component:n,focusVisible:t,underline:o}=e,a={root:["root","underline".concat((0,l.A)(o)),"button"===n&&"button",t&&"focusVisible"]};return(0,s.A)(a,y,r)})(N);return(0,g.jsx)(C,(0,o.A)({color:x,className:(0,i.A)(P.root,c),classes:L,component:m,onBlur:e=>{M(e),!1===H.current&&S(!1),u&&u(e)},onFocus:e=>{V(e),!0===H.current&&S(!0),A&&A(e)},ref:Z,ownerState:N,variant:f,sx:[...Object.keys(v).includes(x)?[]:[{color:x}],...Array.isArray(w)?w:[w]]},k))}))},58478:(e,r,n)=>{n.r(r),n.d(r,{default:()=>F});var t=n(22555),o=n(53986),a=n(85672),i=n(96492),s=n(50193),l=n(69039),c=n(70261),p=n(76264),d=n(63412),h=n(5957),x=n(71392),m=n(2866),u=n(81062),y=n(7051),A=n(48738),L=n(80911),j=n(96019),v=n(31975),f=n(65263),g=n(7637),b=n(44117),C=n(16243),w=n(86263),k=n(855),H=n(61949),M=n(65908);const V=e=>{let{reverse:r}=e;const n=(0,l.A)();return(0,M.jsx)(M.Fragment,{children:(0,M.jsxs)("svg",{width:"118",height:"35",viewBox:"0 0 118 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,M.jsx)("path",{d:"M4.63564 15.8644L6.94797 13.552L6.95038 13.5496H11.3006L9.56969 15.2806L9.12278 15.7275L7.35024 17.5L7.56977 17.7201L17.5 27.6498L27.6498 17.5L25.8766 15.7275L25.7518 15.602L23.6994 13.5496H28.0496L28.052 13.552L29.8644 15.3644L32 17.5L17.5 32L3 17.5L4.63564 15.8644ZM17.5 3L25.8784 11.3784H21.5282L17.5 7.35024L13.4718 11.3784H9.12158L17.5 3Z",fill:n.palette.primary.dark}),(0,M.jsx)("path",{d:"M7.35025 17.5L9.1228 15.7275L9.5697 15.2805L7.83937 13.5496H6.95039L6.94798 13.552L4.63564 15.8644L6.8551 18.073L7.35025 17.5Z",fill:"url(#paint0_linear)"}),(0,M.jsx)("path",{d:"M25.8767 15.7275L27.6498 17.5L27.4743 17.6755L27.4749 17.6761L29.8644 15.3644L28.0521 13.552L28.0497 13.5496H27.8736L25.7518 15.602L25.8767 15.7275Z",fill:"url(#paint1_linear)"}),(0,M.jsx)("path",{d:"M6.94549 13.5496L6.9479 13.552L9.12272 15.7275L17.4999 24.1041L28.0544 13.5496H6.94549Z",fill:n.palette.primary.main}),(0,M.jsx)("path",{d:"M46.5781 10V26H49.3594V14.9844H49.5078L53.9297 25.9531H56.0078L60.4297 15.0078H60.5781V26H63.3594V10H59.8125L55.0625 21.5937H54.875L50.125 10H46.5781ZM69.8438 26.2422C71.7266 26.2422 72.8516 25.3594 73.3672 24.3516H73.4609V26H76.1797V17.9687C76.1797 14.7969 73.5937 13.8438 71.3047 13.8438C68.7813 13.8438 66.8437 14.9687 66.2188 17.1562L68.8594 17.5312C69.1406 16.7109 69.9375 16.0078 71.3203 16.0078C72.6328 16.0078 73.3516 16.6797 73.3516 17.8594V17.9062C73.3516 18.7188 72.5 18.7578 70.3828 18.9844C68.0547 19.2344 65.8281 19.9297 65.8281 22.6328C65.8281 24.9922 67.5547 26.2422 69.8438 26.2422ZM70.5781 24.1641C69.3984 24.1641 68.5547 23.625 68.5547 22.5859C68.5547 21.5 69.5 21.0469 70.7656 20.8672C71.5078 20.7656 72.9922 20.5781 73.3594 20.2812V21.6953C73.3594 23.0312 72.2813 24.1641 70.5781 24.1641ZM81.8516 18.9687C81.8516 17.2344 82.8984 16.2344 84.3906 16.2344C85.8516 16.2344 86.7266 17.1953 86.7266 18.7969V26H89.5547V18.3594C89.5625 15.4844 87.9219 13.8438 85.4453 13.8438C83.6484 13.8438 82.4141 14.7031 81.8672 16.0391H81.7266V14H79.0234V26H81.8516V18.9687ZM98.4219 14H96.0547V11.125H93.2266V14H91.5234V16.1875H93.2266V22.8594C93.2109 25.1172 94.8516 26.2266 96.9766 26.1641C97.7813 26.1406 98.3359 25.9844 98.6406 25.8828L98.1641 23.6719C98.0078 23.7109 97.6875 23.7812 97.3359 23.7812C96.625 23.7812 96.0547 23.5312 96.0547 22.3906V16.1875H98.4219V14ZM100.787 26H103.615V14H100.787V26ZM102.209 12.2969C103.107 12.2969 103.842 11.6094 103.842 10.7656C103.842 9.91406 103.107 9.22656 102.209 9.22656C101.303 9.22656 100.568 9.91406 100.568 10.7656C100.568 11.6094 101.303 12.2969 102.209 12.2969ZM116.008 17.1719C115.617 15.1406 113.992 13.8438 111.18 13.8438C108.289 13.8438 106.32 15.2656 106.328 17.4844C106.32 19.2344 107.398 20.3906 109.703 20.8672L111.75 21.2969C112.852 21.5391 113.367 21.9844 113.367 22.6641C113.367 23.4844 112.477 24.1016 111.133 24.1016C109.836 24.1016 108.992 23.5391 108.75 22.4609L105.992 22.7266C106.344 24.9297 108.195 26.2344 111.141 26.2344C114.141 26.2344 116.258 24.6797 116.266 22.4062C116.258 20.6953 115.156 19.6484 112.891 19.1562L110.844 18.7188C109.625 18.4453 109.141 18.0234 109.148 17.3281C109.141 16.5156 110.039 15.9531 111.219 15.9531C112.523 15.9531 113.211 16.6641 113.43 17.4531L116.008 17.1719Z",fill:n.palette.mode===C.lG.DARK||r?n.palette.common.white:n.palette.common.black,fillOpacity:"0.85"}),(0,M.jsxs)("defs",{children:[(0,M.jsxs)("linearGradient",{id:"paint0_linear",x1:"8.62526",y1:"14.0888",x2:"5.56709",y2:"17.1469",gradientUnits:"userSpaceOnUse",children:[(0,M.jsx)("stop",{stopColor:n.palette.primary.darker}),(0,M.jsx)("stop",{offset:"0.9637",stopColor:n.palette.primary.dark,stopOpacity:"0"})]}),(0,M.jsxs)("linearGradient",{id:"paint1_linear",x1:"26.2675",y1:"14.1279",x2:"28.7404",y2:"16.938",gradientUnits:"userSpaceOnUse",children:[(0,M.jsx)("stop",{stopColor:n.palette.primary.darker}),(0,M.jsx)("stop",{offset:"1",stopColor:n.palette.primary.dark,stopOpacity:"0"})]})]})]})})},D=()=>{const e=(0,l.A)();return(0,M.jsxs)("svg",{width:"129",height:"129",viewBox:"0 0 129 129",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,M.jsx)("path",{d:"M7.27577 57.2242L17.5616 46.9384L17.5724 46.9276H36.9234L29.2238 54.6273L27.2358 56.6152L19.3511 64.5L20.3276 65.4792L64.5 109.649L109.649 64.5L101.761 56.6152L101.206 56.0572L92.0766 46.9276H111.428L111.438 46.9384L119.5 55.0002L129 64.5L64.5 129L0 64.5L7.27577 57.2242ZM64.5 0L101.77 37.2695H82.4185L64.5 19.3511L46.5816 37.2695H27.2305L64.5 0Z",fill:e.palette.primary.dark}),(0,M.jsx)("path",{d:"M19.3509 64.5L27.2357 56.6152L29.2236 54.6273L21.5267 46.9276H17.5722L17.5615 46.9384L7.27561 57.2242L17.1483 67.0487L19.3509 64.5Z",fill:"url(#paint0_linear)"}),(0,M.jsx)("path",{d:"M101.762 56.6152L109.649 64.5L108.868 65.2807L108.871 65.2834L119.5 55.0002L111.438 46.9384L111.428 46.9276H110.644L101.206 56.0572L101.762 56.6152Z",fill:"url(#paint1_linear)"}),(0,M.jsx)("path",{d:"M17.5508 46.9276L17.5615 46.9384L27.2357 56.6152L64.4999 93.8767L111.449 46.9276H17.5508Z",fill:e.palette.primary.main}),(0,M.jsxs)("defs",{children:[(0,M.jsxs)("linearGradient",{id:"paint0_linear",x1:"25.0225",y1:"49.3259",x2:"11.4189",y2:"62.9295",gradientUnits:"userSpaceOnUse",children:[(0,M.jsx)("stop",{stopColor:e.palette.primary.darker}),(0,M.jsx)("stop",{offset:"0.9637",stopColor:e.palette.primary.dark,stopOpacity:"0"})]}),(0,M.jsxs)("linearGradient",{id:"paint1_linear",x1:"103.5",y1:"49.5",x2:"114.5",y2:"62",gradientUnits:"userSpaceOnUse",children:[(0,M.jsx)("stop",{stopColor:e.palette.primary.darker}),(0,M.jsx)("stop",{offset:"1",stopColor:e.palette.primary.dark,stopOpacity:"0"})]})]})]})},_=e=>{let{reverse:r,isIcon:n,sx:t,to:o}=e;return(0,M.jsx)(H.A,{disableRipple:!0,component:i.N_,to:o||C.qm,sx:t,children:n?(0,M.jsx)(D,{}):(0,M.jsx)(V,{reverse:r})})};var S=n(27326);const Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};var N=n(75890),P=function(e,r){return a.createElement(N.A,(0,S.A)({},e,{ref:r,icon:Z}))};const T=a.forwardRef(P);const z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 476H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"line",theme:"outlined"};var O=function(e,r){return a.createElement(N.A,(0,S.A)({},e,{ref:r,icon:z}))};const R=a.forwardRef(O),B=["handleDrawerOpen","layout"];function G(e){let{layout:r,children:n,window:t}=e;const o=(0,l.A)(),i=(0,c.A)({disableHysteresis:!0,threshold:10,target:t?t():void 0}),s=o.palette.mode===C.lG.DARK?o.palette.grey[50]:o.palette.grey[800],p="landing"!==r?s:"transparent";return a.cloneElement(n,{style:{backgroundColor:i?s:p}})}const F=e=>{let{handleDrawerOpen:r,layout:n="landing"}=e,c=(0,o.A)(e,B);const H=(0,l.A)(),V=(0,p.A)(H.breakpoints.down("md")),[D,S]=(0,a.useState)(!1),Z=e=>r=>{("keydown"!==r.type||"Tab"!==r.key&&"Shift"!==r.key)&&S(e)};return(0,M.jsx)(G,(0,t.A)((0,t.A)({layout:n},c),{},{children:(0,M.jsx)(s.A,{sx:{bgcolor:"transparent",color:H.palette.text.primary,boxShadow:"none"},children:(0,M.jsx)(d.A,{disableGutters:V,children:(0,M.jsxs)(h.A,{sx:{px:{xs:1.5,md:0,lg:0},py:2},children:[(0,M.jsxs)(x.A,{direction:"row",sx:{flexGrow:1,display:{xs:"none",md:"block"}},alignItems:"center",children:[(0,M.jsx)(m.A,{component:"div",sx:{textAlign:"left",display:"inline-block"},children:(0,M.jsx)(_,{reverse:!0,to:"/"})}),(0,M.jsx)(u.A,{label:"v2.1.0",variant:"outlined",size:"small",color:"secondary",sx:{mt:.5,ml:1,fontSize:"0.725rem",height:20,"& .MuiChip-label":{px:.5}}})]}),(0,M.jsxs)(x.A,{direction:"row",sx:{"& .header-link":{px:1,"&:hover":{color:H.palette.primary.main}},display:{xs:"none",md:"block"}},spacing:2,children:[(0,M.jsx)(y.A,{className:"header-link",color:"white",component:i.N_,to:"/login",target:"_blank",underline:"none",children:"Dashboard"}),(0,M.jsx)(y.A,{className:"header-link",color:r?"primary":"white",component:i.N_,to:"/components-overview/buttons",underline:"none",children:"Components"}),(0,M.jsx)(y.A,{className:"header-link",color:"white",href:"https://links.codedthemes.com/BQFrl",target:"_blank",underline:"none",children:"Documentation"}),(0,M.jsx)(A.A,{sx:{display:"inline-block"},children:(0,M.jsx)(k.A,{children:(0,M.jsx)(L.A,{component:y.A,href:"https://links.codedthemes.com/Aprwb",disableElevation:!0,color:"primary",variant:"contained",children:"Purchase Now"})})})]}),(0,M.jsxs)(A.A,{sx:{width:"100%",alignItems:"center",justifyContent:"space-between",display:{xs:"flex",md:"none"}},children:[(0,M.jsx)(m.A,{component:"div",sx:{textAlign:"left",display:"inline-block"},children:(0,M.jsx)(_,{reverse:!0,to:"/"})}),(0,M.jsxs)(x.A,{direction:"row",spacing:2,children:["component"===n&&(0,M.jsx)(L.A,{variant:"outlined",size:"small",color:"warning",component:i.N_,to:C.qm,sx:{mt:.5,height:28},children:"Dashboard"}),"component"!==n&&(0,M.jsx)(L.A,{variant:"outlined",size:"small",color:"warning",component:i.N_,to:"/components-overview/buttons",sx:{mt:.5,height:28},children:"All Components"}),(0,M.jsx)(w.A,(0,t.A)((0,t.A)({color:"secondary"},"component"===n?{onClick:r}:{onClick:Z(!0)}),{},{sx:{"&:hover":{bgcolor:H.palette.mode===C.lG.DARK?"secondary.lighter":"secondary.dark"}},children:(0,M.jsx)(T,{style:{color:H.palette.mode===C.lG.DARK?"inherit":H.palette.grey[100]}})}))]}),(0,M.jsx)(j.Ay,{anchor:"top",open:D,onClose:Z(!1),sx:{"& .MuiDrawer-paper":{backgroundImage:"none"}},children:(0,M.jsx)(A.A,{sx:{width:"auto","& .MuiListItemIcon-root":{fontSize:"1rem",minWidth:28}},role:"presentation",onClick:Z(!1),onKeyDown:Z(!1),children:(0,M.jsxs)(v.A,{children:[(0,M.jsx)(y.A,{style:{textDecoration:"none"},href:"/login",target:"_blank",children:(0,M.jsxs)(f.A,{component:"span",children:[(0,M.jsx)(g.A,{children:(0,M.jsx)(R,{})}),(0,M.jsx)(b.A,{primary:"Dashboard",primaryTypographyProps:{variant:"h6",color:"text.primary"}})]})}),(0,M.jsx)(y.A,{style:{textDecoration:"none"},href:"/components-overview/buttons",target:"_blank",children:(0,M.jsxs)(f.A,{component:"span",children:[(0,M.jsx)(g.A,{children:(0,M.jsx)(R,{})}),(0,M.jsx)(b.A,{primary:"All Components",primaryTypographyProps:{variant:"h6",color:"text.primary"}})]})}),(0,M.jsx)(y.A,{style:{textDecoration:"none"},href:"https://links.codedthemes.com/sTUAK",target:"_blank",children:(0,M.jsxs)(f.A,{component:"span",children:[(0,M.jsx)(g.A,{children:(0,M.jsx)(R,{})}),(0,M.jsx)(b.A,{primary:"Free Version",primaryTypographyProps:{variant:"h6",color:"text.primary"}})]})}),(0,M.jsx)(y.A,{style:{textDecoration:"none"},href:"https://links.codedthemes.com/BQFrl",target:"_blank",children:(0,M.jsxs)(f.A,{component:"span",children:[(0,M.jsx)(g.A,{children:(0,M.jsx)(R,{})}),(0,M.jsx)(b.A,{primary:"Documentation",primaryTypographyProps:{variant:"h6",color:"text.primary"}})]})}),(0,M.jsx)(y.A,{style:{textDecoration:"none"},href:"https://codedthemes.support-hub.io/",target:"_blank",children:(0,M.jsxs)(f.A,{component:"span",children:[(0,M.jsx)(g.A,{children:(0,M.jsx)(R,{})}),(0,M.jsx)(b.A,{primary:"Support",primaryTypographyProps:{variant:"h6",color:"text.primary"}})]})}),(0,M.jsx)(y.A,{style:{textDecoration:"none"},href:"https://links.codedthemes.com/Aprwb",target:"_blank",children:(0,M.jsxs)(f.A,{component:"span",children:[(0,M.jsx)(g.A,{children:(0,M.jsx)(R,{})}),(0,M.jsx)(b.A,{primary:"Purchase Now",primaryTypographyProps:{variant:"h6",color:"text.primary"}}),(0,M.jsx)(u.A,{color:"primary",label:"v1.0",size:"small"})]})})]})})})]})]})})})}))}}}]); \ No newline at end of file diff --git a/build/static/js/2898.91e92c8b.chunk.js.LICENSE.txt b/build/static/js/8478.2bdfed69.chunk.js.LICENSE.txt similarity index 100% rename from build/static/js/2898.91e92c8b.chunk.js.LICENSE.txt rename to build/static/js/8478.2bdfed69.chunk.js.LICENSE.txt diff --git a/build/static/js/8718.bddae0b2.chunk.js b/build/static/js/8718.bddae0b2.chunk.js deleted file mode 100644 index a802ed4..0000000 --- a/build/static/js/8718.bddae0b2.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[8718],{4159:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",a="second",i="minute",o="hour",s="day",c="week",u="month",d="quarter",l="year",h="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},A={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),a=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(a,2,"0")},m:function e(t,n){if(t.date()1)return e(o[0])}else{var s=t.name;$[s]=t,a=s}return!r&&a&&(b=a),a||!r&&b},M=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},k=A;k.l=w,k.i=S,k.w=function(e,t){return M(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function v(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[y]=!0}var g=v.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(m);if(r){var a=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return k},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var n=M(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return M(e){"use strict";var r=n(24994);t.A=void 0;var a=r(n(79526)),i=n(44414);t.A=(0,a.default)((0,i.jsx)("path",{d:"M19 6.41 17.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"}),"Clear")},25979:(e,t,n)=>{"use strict";n.d(t,{A:()=>$});var r=n(98587),a=n(58168),i=n(9950),o=n(72004),s=n(3484),c=n(18463),u=n(59254),d=n(43317),l=n(89548),h=n(36658),f=n(15866),m=n(45558),p=n(1614);function v(e){return(0,p.Ay)("MuiFormControl",e)}(0,m.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var g=n(44414);const A=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],b=(0,u.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,a.A)({},t.root,t["margin".concat((0,l.A)(n.margin))],n.fullWidth&&t.fullWidth)}})((e=>{let{ownerState:t}=e;return(0,a.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),$=i.forwardRef((function(e,t){const n=(0,c.b)({props:e,name:"MuiFormControl"}),{children:u,className:m,color:p="primary",component:$="div",disabled:y=!1,error:S=!1,focused:w,fullWidth:M=!1,hiddenLabel:k=!1,margin:C="none",required:x=!1,size:D="medium",variant:z="outlined"}=n,O=(0,r.A)(n,A),R=(0,a.A)({},n,{color:p,component:$,disabled:y,error:S,fullWidth:M,hiddenLabel:k,margin:C,required:x,size:D,variant:z}),F=(e=>{const{classes:t,margin:n,fullWidth:r}=e,a={root:["root","none"!==n&&"margin".concat((0,l.A)(n)),r&&"fullWidth"]};return(0,s.A)(a,v,t)})(R),[_,H]=i.useState((()=>{let e=!1;return u&&i.Children.forEach(u,(t=>{if(!(0,h.A)(t,["Input","Select"]))return;const n=(0,h.A)(t,["Select"])?t.props.input:t;n&&(0,d.gr)(n.props)&&(e=!0)})),e})),[I,W]=i.useState((()=>{let e=!1;return u&&i.Children.forEach(u,(t=>{(0,h.A)(t,["Input","Select"])&&((0,d.lq)(t.props,!0)||(0,d.lq)(t.props.inputProps,!0))&&(e=!0)})),e})),[j,N]=i.useState(!1);y&&j&&N(!1);const B=void 0===w||y?j:w;let L;const T=i.useMemo((()=>({adornedStart:_,setAdornedStart:H,color:p,disabled:y,error:S,filled:I,focused:B,fullWidth:M,hiddenLabel:k,size:D,onBlur:()=>{N(!1)},onEmpty:()=>{W(!1)},onFilled:()=>{W(!0)},onFocus:()=>{N(!0)},registerEffect:L,required:x,variant:z})),[_,p,y,S,I,B,M,k,L,x,D,z]);return(0,g.jsx)(f.A.Provider,{value:T,children:(0,g.jsx)(b,(0,a.A)({as:$,ownerState:R,className:(0,o.A)(F.root,m),ref:t},O,{children:u}))})}))},33425:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var a=r(n(79526)),i=n(44414);t.A=(0,a.default)((0,i.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchOutlined")},46282:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(98587),a=n(58168),i=n(9950),o=n(72004),s=n(3484),c=n(89548),u=n(59254),d=n(19608),l=n(48733),h=n(39766),f=n(24184),m=n(45558),p=n(1614);function v(e){return(0,p.Ay)("PrivateSwitchBase",e)}(0,m.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var g=n(44414);const A=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],b=(0,u.Ay)(f.A)((e=>{let{ownerState:t}=e;return(0,a.A)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),$=(0,u.Ay)("input",{shouldForwardProp:d.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),y=i.forwardRef((function(e,t){const{autoFocus:n,checked:i,checkedIcon:u,className:d,defaultChecked:f,disabled:m,disableFocusRipple:p=!1,edge:y=!1,icon:S,id:w,inputProps:M,inputRef:k,name:C,onBlur:x,onChange:D,onFocus:z,readOnly:O,required:R=!1,tabIndex:F,type:_,value:H}=e,I=(0,r.A)(e,A),[W,j]=(0,l.A)({controlled:i,default:Boolean(f),name:"SwitchBase",state:"checked"}),N=(0,h.A)();let B=m;N&&"undefined"===typeof B&&(B=N.disabled);const L="checkbox"===_||"radio"===_,T=(0,a.A)({},e,{checked:W,disabled:B,disableFocusRipple:p,edge:y}),P=(e=>{const{classes:t,checked:n,disabled:r,edge:a}=e,i={root:["root",n&&"checked",r&&"disabled",a&&"edge".concat((0,c.A)(a))],input:["input"]};return(0,s.A)(i,v,t)})(T);return(0,g.jsxs)(b,(0,a.A)({component:"span",className:(0,o.A)(P.root,d),centerRipple:!0,focusRipple:!p,disabled:B,tabIndex:null,role:void 0,onFocus:e=>{z&&z(e),N&&N.onFocus&&N.onFocus(e)},onBlur:e=>{x&&x(e),N&&N.onBlur&&N.onBlur(e)},ownerState:T,ref:t},I,{children:[(0,g.jsx)($,(0,a.A)({autoFocus:n,checked:i,defaultChecked:f,className:P.input,disabled:B,id:L?w:void 0,name:C,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;j(t),D&&D(e,t)},readOnly:O,ref:k,required:R,ownerState:T,tabIndex:F,type:_},"checkbox"===_&&void 0===H?{}:{value:H},M)),W?u:S]}))}))},82917:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var r=n(57528),a=n(98587),i=n(58168),o=n(9950),s=n(72004),c=n(88283),u=n(3484);function d(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function l(e){return parseFloat(e)}var h=n(97497),f=n(59254),m=n(18463),p=n(45558),v=n(1614);function g(e){return(0,v.Ay)("MuiSkeleton",e)}(0,p.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var A,b,$,y,S=n(44414);const w=["animation","className","component","height","style","variant","width"];let M,k,C,x;const D=(0,c.i7)(M||(M=A||(A=(0,r.A)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"])))),z=(0,c.i7)(k||(k=b||(b=(0,r.A)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"])))),O=(0,f.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((e=>{let{theme:t,ownerState:n}=e;const r=d(t.shape.borderRadius)||"px",a=l(t.shape.borderRadius);return(0,i.A)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:(0,h.X4)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===n.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(a).concat(r,"/").concat(Math.round(a/.6*10)/10).concat(r),"&:empty:before":{content:'"\\00a0"'}},"circular"===n.variant&&{borderRadius:"50%"},"rounded"===n.variant&&{borderRadius:(t.vars||t).shape.borderRadius},n.hasChildren&&{"& > *":{visibility:"hidden"}},n.hasChildren&&!n.width&&{maxWidth:"fit-content"},n.hasChildren&&!n.height&&{height:"auto"})}),(e=>{let{ownerState:t}=e;return"pulse"===t.animation&&(0,c.AH)(C||(C=$||($=(0,r.A)(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "]))),D)}),(e=>{let{ownerState:t,theme:n}=e;return"wave"===t.animation&&(0,c.AH)(x||(x=y||(y=(0,r.A)(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 2s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ",",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "]))),z,(n.vars||n).palette.action.hover)})),R=o.forwardRef((function(e,t){const n=(0,m.b)({props:e,name:"MuiSkeleton"}),{animation:r="pulse",className:o,component:c="span",height:d,style:l,variant:h="text",width:f}=n,p=(0,a.A)(n,w),v=(0,i.A)({},n,{animation:r,component:c,variant:h,hasChildren:Boolean(p.children)}),A=(e=>{const{classes:t,variant:n,animation:r,hasChildren:a,width:i,height:o}=e,s={root:["root",n,r,a&&"withChildren",a&&!i&&"fitContent",a&&!o&&"heightAuto"]};return(0,u.A)(s,g,t)})(v);return(0,S.jsx)(O,(0,i.A)({as:c,ref:t,className:(0,s.A)(A.root,o),ownerState:v},p,{style:(0,i.A)({width:f,height:d},l)}))}))},93038:(e,t,n)=>{"use strict";n.d(t,{A:()=>D});var r=n(98587),a=n(58168),i=n(9950),o=n(72004),s=n(3484),c=n(99269),u=n(46282),d=n(23235),l=n(44414);const h=(0,d.A)((0,l.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),f=(0,d.A)((0,l.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),m=(0,d.A)((0,l.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var p=n(89548),v=n(18463),g=n(59254),A=n(19608),b=n(45558),$=n(1614);function y(e){return(0,$.Ay)("MuiCheckbox",e)}const S=(0,b.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),w=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],M=(0,g.Ay)(u.A,{shouldForwardProp:e=>(0,A.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t["size".concat((0,p.A)(n.size))],"default"!==n.color&&t["color".concat((0,p.A)(n.color))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,a.A)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,c.X4)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{["&.".concat(S.checked,", &.").concat(S.indeterminate)]:{color:(t.vars||t).palette[n.color].main},["&.".concat(S.disabled)]:{color:(t.vars||t).palette.action.disabled}})})),k=(0,l.jsx)(f,{}),C=(0,l.jsx)(h,{}),x=(0,l.jsx)(m,{}),D=i.forwardRef((function(e,t){var n,c;const u=(0,v.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:d=k,color:h="primary",icon:f=C,indeterminate:m=!1,indeterminateIcon:g=x,inputProps:A,size:b="medium",className:$}=u,S=(0,r.A)(u,w),D=m?g:f,z=m?g:d,O=(0,a.A)({},u,{color:h,indeterminate:m,size:b}),R=(e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate","color".concat((0,p.A)(r)),"size".concat((0,p.A)(i))]},c=(0,s.A)(o,y,t);return(0,a.A)({},t,c)})(O);return(0,l.jsx)(M,(0,a.A)({type:"checkbox",inputProps:(0,a.A)({"data-indeterminate":m},A),icon:i.cloneElement(D,{fontSize:null!=(n=D.props.fontSize)?n:b}),checkedIcon:i.cloneElement(z,{fontSize:null!=(c=z.props.fontSize)?c:b}),ownerState:O,ref:t,className:(0,o.A)(R.root,$)},S,{classes:R}))}))},99624:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var a=r(n(79526)),i=n(44414);t.A=(0,a.default)((0,i.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu")}}]); \ No newline at end of file diff --git a/build/static/js/8846.9f2a057e.chunk.js b/build/static/js/8846.9f2a057e.chunk.js deleted file mode 100644 index 0302da2..0000000 --- a/build/static/js/8846.9f2a057e.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[8846],{11041:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Ie});var o=r(89379),i=r(9950),n=r(26910),l=r(60010),a=r(36150),s=r(2235),c=r(41413),d=r(83274),x=r(16491),u=r(93230),h=r(82917),p=r(82053),m=r(47223),g=r(55158),f=r(60899),b=r(77922),v=r(29925),A=r(10226),j=r(1320),y=r(25333),w=r(15769),S=r(69780),k=r(9213),D=r(21671),M=r(34075),C=r(74745),z=r(96583),I=r(40033),W=r(28170),P=r(25277),R=r(79739),Y=r(14857),T=r(31222),L=r(43302),O=r(99810),N=r(49029),E=r(47113),F=r(33516),K=r(82215),H=r(2527),_=r.n(H),B=(r(55392),r(4159)),q=r.n(B),J=r(57560),G=r(94826),Z=r(44414),U=r(36220);q().extend(U);const V=new(_().Icon)({iconUrl:"https://cdn.rawgit.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-green.png",shadowUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],shadowSize:[41,41]}),$=new(_().Icon)({iconUrl:"https://cdn.rawgit.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-red.png",shadowUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],shadowSize:[41,41]}),X=e=>{let{coordinates:t,additionalProps:r,order:o,setMapOpen:n}=e;console.log("additionalProps",r);const l=(0,i.useRef)(null),a=(0,Y.A)(),[s,c]=(0,i.useState)([]),[d,h]=(0,i.useState)(!1);if((0,i.useEffect)((()=>{if(l.current&&t.length>0){const e=[[Math.min(...t.map((e=>e.lat))),Math.min(...t.map((e=>e.lng)))],[Math.max(...t.map((e=>e.lat))),Math.max(...t.map((e=>e.lng)))]];l.current.fitBounds(e)}}),[t]),(0,i.useEffect)((()=>{(async()=>{if(h(!0),t.length<2)return c([]),void h(!1);const e=(e,t)=>{if(e.length<=t)return e;const r=Math.ceil(e.length/t),o=e.filter(((e,t)=>t%r===0)),i=e[e.length-1];return o[o.length-1]!==i&&o.push(i),o};try{const r=e(t,90).map((e=>"".concat(e.lng,",").concat(e.lat))).join(";"),o="https://router.project-osrm.org/match/v1/driving/".concat(r,"?overview=full&geometries=geojson&gaps=ignore&tidy=true"),i=await fetch(o),n=await i.json();if(n.matchings&&n.matchings.length>0){const e=n.matchings.flatMap((e=>{var t;return((null===(t=e.geometry)||void 0===t?void 0:t.coordinates)||[]).map((e=>{let[t,r]=e;return{lat:r,lng:t}}))}));if(e.length>=2)return c(e),void h(!1)}}catch(r){console.warn("OSRM Match error, trying route fallback:",r)}try{const r=e(t,25).map((e=>"".concat(e.lng,",").concat(e.lat))).join(";"),o="https://router.project-osrm.org/route/v1/driving/".concat(r,"?overview=full&geometries=geojson"),i=await fetch(o),n=await i.json();if(n.routes&&n.routes[0]){const e=n.routes[0].geometry.coordinates.map((e=>{let[t,r]=e;return{lat:r,lng:t}}));c(e)}else c(t)}catch(o){console.error("OSRM Route fallback error:",o),c(t)}finally{h(!1)}})()}),[t]),!t||0===t.length)return null;const m=t[0],g=t[t.length-1],f=t[Math.floor(t.length/2)],b=e=>{let{label:t,value:r}=e;return(0,Z.jsxs)(u.A,{direction:"row",spacing:1,alignItems:"center",children:[(0,Z.jsxs)(p.A,{variant:"subtitle1",sx:{fontWeight:600},children:[t,":"]}),(0,Z.jsx)(P.A,{label:r||"0.00",color:"primary",sx:{fontWeight:700}})]})};return(0,Z.jsxs)(x.A,{sx:{width:"100%",height:"100vh",position:"relative",overflow:"hidden"},children:[d&&(0,Z.jsx)(G.A,{}),(0,Z.jsx)(P.A,{label:"Close",icon:(0,Z.jsx)(J.A,{style:{fontSize:18}}),onClick:()=>n(!1),sx:{position:"absolute",top:12,right:12,zIndex:2e3,bgcolor:a.palette.error.main,color:"#fff",fontWeight:600,borderRadius:"12px",px:1.5,py:.5,boxShadow:a.shadows[4],cursor:"pointer","& .MuiChip-icon":{color:"#fff"}}}),(0,Z.jsxs)(O.W,{center:f,zoom:14,scrollWheelZoom:!0,style:{height:"100%",width:"100%"},ref:l,children:[(0,Z.jsx)(N.e,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),(0,Z.jsx)(E.p,{position:m,icon:V,children:(0,Z.jsx)(F.m,{direction:"bottom",children:"Pickup: ".concat(q()(r.riderStart).format("DD-MM-YYYY hh:mm A"))})}),(0,Z.jsx)(E.p,{position:g,icon:$,children:(0,Z.jsx)(F.m,{direction:"bottom",children:"Drop: ".concat(q()(r.riderEnd).format("DD-MM-YYYY hh:mm A"))})}),s.length>0&&(0,Z.jsx)(K.R,{positions:s,pathOptions:{color:"blue",weight:5}})]}),(0,Z.jsx)(x.A,{sx:{position:"absolute",bottom:0,width:"100%",bgcolor:"rgba(255,255,255,0.96)",p:2,boxShadow:a.shadows[3],zIndex:1500},children:(0,Z.jsxs)(u.A,{direction:"row",flexWrap:"wrap",rowGap:1.5,columnGap:3,alignItems:"center",children:[(0,Z.jsx)(b,{label:"Tenant",value:null===o||void 0===o?void 0:o.tenantname}),(0,Z.jsx)(b,{label:"Rider",value:null===o||void 0===o?void 0:o.ridername}),(0,Z.jsx)(b,{label:"Pickup",value:null===o||void 0===o?void 0:o.pickupcustomer}),(0,Z.jsx)(b,{label:"Drop",value:null===o||void 0===o?void 0:o.deliverycustomer}),(0,Z.jsx)(b,{label:"Kms",value:null===o||void 0===o?void 0:o.kms}),(0,Z.jsx)(b,{label:"Actual Kms",value:null===o||void 0===o?void 0:o.actualkms}),(0,Z.jsx)(b,{label:"Rider Kms",value:null===o||void 0===o?void 0:o.riderkms})]})})]})};var Q=r(81425),ee=r(90376),te=r(52351),re=r(8881),oe=r(35678),ie=r(56311),ne=r(58691),le=r(59212),ae=r(27001),se=r(36803),ce=r(20466);function de(e){let{rows:t=5,columns:r=6,height:o=40}=e;return(0,Z.jsx)(Z.Fragment,{children:[...Array(t)].map(((e,t)=>(0,Z.jsx)(k.A,{children:[...Array(r)].map(((e,t)=>(0,Z.jsx)(D.A,{children:(0,Z.jsx)(h.A,{variant:"rectangular",height:o,width:70,animation:"wave"})},t)))},t)))})}var xe=r(23787),ue=r(36220);q().extend(ue);const he=(e,t,r)=>{(0,re.M8)(e,{variant:t,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:r||1500})},pe={radiusPill:999,radiusCard:14,shadowSoft:"0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05)",shadowMd:"0 1px 3px rgba(15, 23, 42, 0.06)",shadowPop:"0 12px 32px rgba(15, 23, 42, 0.12)",textPrimary:"#0f172a",textSecondary:"#64748b",textMuted:"#94a3b8",borderSubtle:"#e2e8f0",divider:"#f1f5f9",surface:"#ffffff",surfaceAlt:"#f8fafc"},me=(e,t)=>"".concat(e).concat(t),ge=e=>me(e,"08"),fe=e=>me(e,"18"),be=e=>me(e,"26"),ve=e=>me(e,"55"),Ae="#662582",je="#9255AB",ye=e=>(0,Z.jsx)(s.A,(0,o.A)((0,o.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:pe.shadowPop,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),we=e=>{let{color:t,selected:r,size:o=24,children:i}=e;return(0,Z.jsx)(c.A,{sx:{width:o,height:o,bgcolor:r?t:fe(t),color:r?"#fff":t,transition:"background-color 0.15s, color 0.15s"},children:i})},Se=e=>({"& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,"& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(be(e))},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:1.5}}}),ke={all:{label:"All",color:Ae,icon:T.YBc},pending:{label:"Pending",color:"#f59e0b",icon:T.tX0},accepted:{label:"Accepted",color:"#6366f1",icon:T.Azs},arrived:{label:"Arrived",color:"#06b6d4",icon:T.gwi},picked:{label:"Picked",color:"#8b5cf6",icon:T.gsJ},active:{label:"Active",color:"#14b8a6",icon:T.pk7},delivered:{label:"Delivered",color:"#10b981",icon:T.mU9},skipped:{label:"Skipped",color:"#f97316",icon:T.ivF},cancelled:{label:"Cancelled",color:"#ef4444",icon:T.uDv}},De=["all","pending","accepted","arrived","picked","active","delivered","skipped","cancelled"],Me=e=>{let{color:t,icon:r,label:o,tooltip:i}=e;return(0,Z.jsx)(d.A,{title:i||"",placement:"top",children:(0,Z.jsxs)(x.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(ve(t)),color:t,fontSize:11,fontWeight:800,minWidth:80,justifyContent:"center",whiteSpace:"nowrap"},children:[r,o]})})},Ce=e=>{let{value:t,formatDate:r,formatTime:o,success:i}=e;return t?(0,Z.jsxs)(u.A,{spacing:.25,children:[(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary,fontWeight:600,whiteSpace:"nowrap"},children:r(t)}),(0,Z.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:.5,children:[(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textPrimary,fontWeight:800,whiteSpace:"nowrap"},children:o(t)}),i&&(0,Z.jsx)(L.cxC,{style:{color:"#10b981",fontSize:12}})]})]}):(0,Z.jsxs)(u.A,{spacing:.5,children:[(0,Z.jsx)(h.A,{animation:!1,variant:"text",width:70,height:12}),(0,Z.jsx)(h.A,{animation:!1,variant:"text",width:55,height:14})]})};function ze(e,t){const r=e=>e*Math.PI/180,o=r(e[0]),i=r(t[0]),n=r(t[0]-e[0]),l=r(t[1]-e[1]),a=Math.sin(n/2)**2+Math.cos(o)*Math.cos(i)*Math.sin(l/2)**2;return 12742*Math.asin(Math.min(1,Math.sqrt(a)))}function Ie(){const e=(0,Y.A)(),t=(0,m.A)(e.breakpoints.down("md")),r=(0,i.useRef)(),h=(0,i.useRef)(),L=(0,i.useRef)(null),O=(0,i.useRef)(null),N=localStorage.getItem("userid"),[E,F]=(0,i.useState)(0),[K,H]=(0,i.useState)(50),[_,B]=(0,i.useState)("All"),[J,U]=(0,i.useState)(q()().format("YYYY-MM-DD")),[V,$]=(0,i.useState)(q()().format("YYYY-MM-DD")),[ue,me]=(0,i.useState)(!1),[Ie,We]=(0,i.useState)(!1),[Pe,Re]=(0,i.useState)("Today"),[Ye,Te]=(0,i.useState)(0),[Le,Oe]=(0,i.useState)(""),[Ne,Ee]=(0,i.useState)(""),[Fe,Ke]=(0,i.useState)([]),[He,_e]=(0,i.useState)(),[Be,qe]=(0,i.useState)(),[Je,Ge]=(0,i.useState)({}),[Ze,Ue]=(0,i.useState)(!1);let[Ve,$e]=(0,i.useState)(0),[Xe,Qe]=(0,i.useState)(0),[et,tt]=(0,i.useState)(0),[rt,ot]=(0,i.useState)(0),[it,nt]=(0,i.useState)(0),[lt,at]=(0,i.useState)(0),[st,ct]=(0,i.useState)(0),[dt,xt]=(0,i.useState)(0),[ut,ht]=(0,i.useState)(0);const[pt,mt]=(0,i.useState)("All"),[gt,ft]=(0,i.useState)(0),[bt,vt]=(0,i.useState)(0),[At,jt]=(0,i.useState)(null),[yt,wt]=(0,i.useState)(null),[St,kt]=(0,i.useState)(),[Dt,Mt]=(0,i.useState)(null),[Ct,zt]=(0,i.useState)(!1),[It,Wt]=(0,i.useState)(!1),Pt={all:Ve,pending:et,accepted:it,arrived:dt,picked:lt,active:st,delivered:Xe,skipped:ut,cancelled:rt};function Rt(e,t,r,o){const i=(r-e)*(Math.PI/180),n=(o-t)*(Math.PI/180),l=Math.sin(i/2)*Math.sin(i/2)+Math.cos(e*(Math.PI/180))*Math.cos(r*(Math.PI/180))*Math.sin(n/2)*Math.sin(n/2);return 6371*(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)))}(0,i.useEffect)((()=>{vt(0),jt(null),ft(0),wt(null),kt(null),Mt(null)}),[Ye]),(0,i.useEffect)((()=>{ft(0),wt(null),Mt(null)}),[bt]),(0,i.useEffect)((()=>{Mt(null)}),[gt]);const Yt=async e=>{Wt(!0);try{const t=(await n.A.get("".concat("https://jupiter.nearle.app/live/api/v3","/deliveries/getdeliverylogs/?deliveryid=").concat(e))).data.details;if(Array.isArray(t)&&0!==t.length){const e=t.map((e=>{var t,r,o;const i=null!==e&&void 0!==e&&e.logdate?q()(e.logdate):null;return{lat:parseFloat(null!==(t=null===e||void 0===e?void 0:e.latitude)&&void 0!==t?t:null===e||void 0===e?void 0:e.lat),lng:parseFloat(null!==(r=null!==(o=null===e||void 0===e?void 0:e.longitude)&&void 0!==o?o:null===e||void 0===e?void 0:e.lng)&&void 0!==r?r:null===e||void 0===e?void 0:e.lon),logdate:null===e||void 0===e?void 0:e.logdate,_ts:i&&i.isValid()?i.valueOf():Number.MAX_SAFE_INTEGER}})).filter((e=>Number.isFinite(e.lat)&&Number.isFinite(e.lng))).sort(((e,t)=>e._ts-t._ts));if(0!==e.length){_e(e[0].logdate),qe(e[e.length-1].logdate);const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Array.isArray(e)||0===e.length)return[];const r=e.filter((e=>Number.isFinite(e.lat)&&Number.isFinite(e.lng)&&(Math.abs(e.lat)>.1||Math.abs(e.lng)>.1)));if(0===r.length)return[];if(1===r.length)return[{lat:r[0].lat,lng:r[0].lng,logdate:r[0].logdate,_ts:r[0]._ts}];const o=null!=t.processNoise?t.processNoise:1e-10,i=null!=t.measurementNoise?t.measurementNoise:2e-9,n=null!=t.outlierGate?t.outlierGate:9,l=null!=t.maxSpeedKmh?t.maxSpeedKmh:120,a=e=>e._ts||(e.logdate?new Date(e.logdate).getTime():0);let s=0;for(;sl||(c.push(e),d=t)}if(c.length<2)return c.map((e=>({lat:e.lat,lng:e.lng,logdate:e.logdate,_ts:e._ts})));const x=e=>{const t=c.length,r=new Array(t),l=new Array(t),s=new Array(t),d=new Array(t),x=new Array(t),u=a(c[0]),h=a(c[1]),p=Math.max(.1,(h-u)/1e3),m=(c[1][e]-c[0][e])/p;r[0]=[c[0][e],m],l[0]=[i,0,0,1],s[0]=r[0].slice(),d[0]=l[0].slice(),x[0]=0;let g=u;for(let b=1;bn){r[b]=[m,f],l[b]=[k,D,M,C];continue}const W=k/I,P=M/I,R=m+W*z,Y=f+P*z;r[b]=[R,Y],l[b]=[(1-W)*k,(1-W)*D,M-P*k,C-P*D]}const f=new Array(t);f[t-1]=r[t-1].slice();for(let o=t-2;o>=0;o--){const e=x[o+1],[t,i,n,a]=l[o],c=t+e*i,u=i,h=n+e*a,p=a,[m,g,b,v]=d[o+1],A=m*v-g*b;if(!Number.isFinite(A)||Math.abs(A)<1e-30){f[o]=r[o].slice();continue}const j=v/A,y=-g/A,w=-b/A,S=m/A,k=c*j+u*w,D=c*y+u*S,M=h*j+p*w,C=h*y+p*S,z=f[o+1][0]-s[o+1][0],I=f[o+1][1]-s[o+1][1];f[o]=[r[o][0]+k*z+D*I,r[o][1]+M*z+C*I]}return f.map((e=>e[0]))},u=x("lat"),h=x("lng");return c.map(((e,t)=>({lat:u[t],lng:h[t],logdate:e.logdate,_ts:e._ts})))}(e),r=t.map((e=>({lat:e.lat,lng:e.lng})));Ke(r),function(e){let t=0;for(let r=0;r{var t;return null!==(t=e.nextPage)&&void 0!==t?t:void 0},refetchOnWindowFocus:!0,refetchOnMount:!0,refetchOnReconnect:!0}),Ht=(null===Tt||void 0===Tt?void 0:Tt.pages.flatMap((e=>e.rows)))||[];(0,i.useEffect)((()=>{if(!Ft)return;const e=new IntersectionObserver((e=>{e[0].isIntersecting&&Et()}),{root:document.querySelector(".MuiTableContainer-root"),rootMargin:"0px",threshold:1});return r.current&&e.observe(r.current),()=>{r.current&&e.unobserve(r.current)}}),[Ft,Et]);const{data:_t,isLoading:Bt,isError:qt,error:Jt}=(0,a.I)({queryKey:["tenantlist",Ye],queryFn:()=>(0,Q.Mn)(Ye),enabled:0!==Ye}),{data:Gt,isLoading:Zt,isError:Ut,error:Vt}=(0,a.I)({queryKey:["fetchRidersList",Ye],queryFn:Q.Sd,enabled:0!==Ye}),{data:$t,isLoading:Xt,isError:Qt,error:er}=(0,a.I)({queryKey:["gettenantlocations",bt],queryFn:()=>(0,Q.DL)(bt),enabled:0!==bt});(0,i.useEffect)((()=>{(async()=>{Ue(!0);try{await n.A.get(0==Ye?"".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/deliverysummary/?fromdate=").concat(J,"&todate=").concat(V):"".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/deliverysummary/?applocationid=").concat(Ye,"&tenantid=").concat(bt,"&locationid=").concat(gt,"&fromdate=").concat(J,"&todate=").concat(V,"&userid=").concat((null===St||void 0===St?void 0:St.userid)||0)).then((e=>{$e(e.data.details.total),tt(e.data.details.pending),nt(e.data.details.accepted),xt(e.data.details.arrived),at(e.data.details.picked),ct(e.data.details.active),Qe(e.data.details.delivered),ht(e.data.details.skipped),ot(e.data.details.cancelled)})).catch((e=>{(0,re.M8)(e.message,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3})}))}catch(e){console.log(e)}finally{Ue(!1)}})()}),[Ye,J,V,pt,bt,gt,St]);const tr=null===Ht||void 0===Ht?void 0:Ht.map((e=>({tenantname:e.tenantname,tenantcity:e.tenantcity,tenantcontactno:e.tenantcontactno,rider:e.ridername,orderid:e.orderid,paymenttype:64==e.paymenttype?"Pay Later":42==e.paymenttype?"Pay on Delivery":"Digital",deliverydate:e.deliverydate,orderstatus:e.orderstatus,ordernotes:e.ordernotes,kms:e.kms,cumulativekms:e.cumulativekms,assigntime:e.assigntime,starttime:e.starttime,arrivaltime:e.arrivaltime,pickuptime:e.pickuptime,deliverytime:e.deliverytime,canceltime:e.canceltime,deliverycharge:e.deliverycharges,deliveryamt:e.deliveryamt,pickupcustomer:e.pickupcustomer,pickupcontactno:e.pickupcontactno,Pickupaddress:e.pickupaddress,pickupsuburb:e.pickupsuburb,pickupcity:e.applocation,pickuplat:e.pickuplat,pickuplong:e.pickuplon,deliverycustomer:e.deliverycustomer,deliverycontactno:e.deliverycontactno,deliveryaddress:e.deliveryaddress,deliverysuburb:e.locationsuburb,deliverylat:e.deliverylat,deliverylong:e.deliverylong,locationname:e.locationname,locationsuburb:e.pickuplocation,deliverylocation:e.deliverylocation,locationcontactno:e.locationcontactno})));function rr(e){return q()(e).format("DD/MM/YYYY ")}function or(e){return q()(e).format(" hh:mm A")}const ir=Ot?"An error has occurred: (fetchDeliveries) ".concat(Nt.message):qt?"An error has occurred: (getTenants) ".concat(Jt.message):Qt?"An error has occurred: (gettenantlocations) ".concat(er.message):Ut?"An error has occurred: (getriderbydelivery) ".concat(Vt.message):null;(0,i.useEffect)((()=>{ir&&he(ir,"warning",2e3)}),[ir]);const nr=[{key:"total",label:"Total Orders",color:Ae,icon:T.HU2,value:Ve},{key:"delivered",label:"Delivered",color:"#10b981",icon:T.cAP,value:Xe},{key:"pending",label:"Pending",color:"#f59e0b",icon:T.G6c,value:et},{key:"cancelled",label:"Cancelled",color:"#ef4444",icon:T.qiG,value:rt}];return(0,Z.jsxs)(Z.Fragment,{children:[(Ze||Bt||Xt||It||Zt||Kt)&&(0,Z.jsx)("div",{children:(0,Z.jsx)(te.A,{})}),Lt&&(0,Z.jsx)(g.A,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:Lt}),(0,Z.jsx)(ae.A,{title:"Orders Details",subtitle:"Live \xb7 ".concat(_||"All Zones"," \xb7 ").concat(Pe),live:!0,action:(0,Z.jsx)(le.A,{ref:L,locaName:_,setAppId:Te,setLocoName:B,setPage:F,pill:!0,accentColor:Ae,icon:(0,Z.jsx)(T.HPi,{size:14}),placeholder:"Select Zone",paperComponent:ye,sx:{width:{xs:"100%",sm:280},zIndex:100}})}),(0,Z.jsx)(f.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:nr.map((e=>{var t;const r=e.icon;return(0,Z.jsx)(f.Ay,{item:!0,xs:6,sm:6,md:3,children:(0,Z.jsx)(se.A,{title:e.label,value:null!==(t=e.value)&&void 0!==t?t:0,icon:(0,Z.jsx)(r,{size:20}),color:e.color,loading:Ze})},e.key)}))}),(0,Z.jsx)(s.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1.25,md:1.75},borderRadius:pe.radiusCard/8,border:"1px solid",borderColor:pe.borderSubtle,background:"#fff",boxShadow:pe.shadowSoft},children:(0,Z.jsxs)(f.Ay,{container:!0,spacing:1.25,alignItems:"center",children:[(0,Z.jsx)(f.Ay,{item:!0,xs:12,sm:6,md:3,children:(0,Z.jsx)(b.A,{options:_t||[],value:At,getOptionLabel:e=>(null===e||void 0===e?void 0:e.tenantname)||"",PaperComponent:ye,onOpen:e=>{Ye||(e.preventDefault(),(0,ce.k)("Please select a your app location first!","warning",3e3),setTimeout((()=>{var e;null===(e=L.current)||void 0===e||e.focus()}),0))},onChange:(e,t,r)=>{"clear"===r?(vt(0),jt(null),ft(0),wt(null)):(vt((null===t||void 0===t?void 0:t.tenantid)||0),jt(t),ft(t.locationid),wt(null))},renderInput:e=>(0,Z.jsx)(v.A,(0,o.A)((0,o.A)({},e),{},{inputRef:O,placeholder:"Select Tenant",size:"small",sx:Se("#0ea5e9"),InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:(0,Z.jsx)(u.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5},children:(0,Z.jsx)(we,{color:"#0ea5e9",size:22,selected:!0,children:(0,Z.jsx)(T.Itr,{size:13})})})})}))})}),(0,Z.jsx)(f.Ay,{item:!0,xs:12,sm:6,md:3,children:(0,Z.jsx)(b.A,{options:$t||[],getOptionLabel:e=>e?"".concat(e.locationname," (").concat(e.suburb,")"):"",value:yt,PaperComponent:ye,onOpen:e=>{Ye||bt?bt||(e.preventDefault(),(0,ce.k)("Please select a your Tenant first!","warning",3e3),setTimeout((()=>{var e;null===(e=O.current)||void 0===e||e.focus()}),0)):(e.preventDefault(),(0,ce.k)("Please select a your Location and Tenant first!","warning",3e3),setTimeout((()=>{var e;null===(e=L.current)||void 0===e||e.focus()}),0))},onChange:(e,t,r)=>{"clear"===r?(ft(0),wt(null)):(ft(t.locationid||0),wt(t))},renderInput:e=>(0,Z.jsx)(v.A,(0,o.A)((0,o.A)({},e),{},{placeholder:"Select Location",size:"small",sx:Se("#10b981"),InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:(0,Z.jsx)(u.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5},children:(0,Z.jsx)(we,{color:"#10b981",size:22,selected:!0,children:(0,Z.jsx)(T.JFD,{size:13})})})})}))})}),(0,Z.jsx)(f.Ay,{item:!0,xs:12,sm:6,md:3,children:(0,Z.jsx)(b.A,{options:Gt||[],value:Dt,getOptionLabel:e=>"".concat(e.firstname," ").concat(e.lastname),PaperComponent:ye,onOpen:()=>{Ye||(0,ce.k)("Select App Location First","warning",2e3)},onChange:(e,t,r)=>{"clear"===r?(kt(null),Mt(null)):(kt(t),Mt(t))},renderInput:e=>(0,Z.jsx)(v.A,(0,o.A)((0,o.A)({},e),{},{placeholder:"Select Rider",size:"small",sx:Se("#8b5cf6"),InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:(0,Z.jsx)(u.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5},children:(0,Z.jsx)(we,{color:"#8b5cf6",size:22,selected:!0,children:(0,Z.jsx)(T.bsz,{size:13})})})})}))})}),(0,Z.jsx)(f.Ay,{item:!0,xs:12,sm:6,md:3,children:(0,Z.jsxs)(u.A,{direction:"row",spacing:1,alignItems:"center",justifyContent:{xs:"flex-start",md:"flex-end"},children:[(0,Z.jsx)(d.A,{title:"Date Filter",placement:"top",children:(0,Z.jsxs)(x.A,{onClick:()=>me(!0),sx:{display:"inline-flex",alignItems:"center",gap:.75,px:1.25,py:.75,borderRadius:999,cursor:"pointer",bgcolor:ge("#f59e0b"),border:"1.5px solid ".concat(ve("#f59e0b")),color:"#f59e0b",fontWeight:800,fontSize:12,transition:"all 0.18s","&:hover":{borderColor:"#f59e0b",boxShadow:"0 0 0 3px ".concat(be("#f59e0b"))}},children:[(0,Z.jsx)(T.Ki0,{size:14}),q()(J).format("DD/MM/YY")," \u2013 ",q()(V).format("DD/MM/YY")]})}),(0,Z.jsx)(A.A,{variant:"contained",size:"small",startIcon:(0,Z.jsx)(T.S3Y,{}),onClick:()=>{zt(!0),setTimeout((()=>{H("")}),0)},sx:{borderRadius:999,px:1.5,py:.75,fontWeight:800,fontSize:12,textTransform:"none",background:"linear-gradient(135deg, ".concat(Ae," 0%, ").concat(je," 100%)"),"&:hover":{background:"linear-gradient(135deg, ".concat(Ae," 0%, ").concat(je," 100%)"),boxShadow:"0 8px 22px ".concat(be(Ae))}},children:"Export"})]})})]})}),(0,Z.jsx)(s.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:pe.radiusCard/8,borderTopRightRadius:pe.radiusCard/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:pe.borderSubtle,borderBottom:0,background:"#fff"},children:(0,Z.jsxs)(u.A,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:1.5,sx:{flexWrap:"wrap-reverse"},children:[(0,Z.jsx)(u.A,{direction:"row",spacing:.75,sx:{flex:1,overflowX:"auto",py:.5,px:.25,"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-thumb":{backgroundColor:pe.borderSubtle,borderRadius:4}},children:De.map((e=>{var t;const r=ke[e],o=r.icon,i=pt.toLowerCase()===e,n=null!==(t=Pt[e])&&void 0!==t?t:0;return(0,Z.jsxs)(x.A,{onClick:()=>mt("all"===e?"All":e),sx:{display:"inline-flex",alignItems:"center",gap:{xs:.625,md:.875},pl:.5,pr:{xs:1,md:1.25},py:.5,flexShrink:0,cursor:"pointer",borderRadius:999,border:"1px solid ".concat(i?r.color:pe.borderSubtle),bgcolor:i?r.color:pe.surface,color:i?"#fff":pe.textSecondary,fontWeight:600,boxShadow:"none",transition:"background-color 0.15s, border-color 0.15s, color 0.15s","&:hover":{borderColor:i?r.color:"#cbd5e1",bgcolor:i?r.color:pe.surfaceAlt}},children:[(0,Z.jsx)(c.A,{sx:{width:{xs:22,md:26},height:{xs:22,md:26},bgcolor:i?"rgba(255,255,255,0.22)":fe(r.color),color:i?"#fff":r.color},children:(0,Z.jsx)(o,{size:13})}),(0,Z.jsx)(p.A,{variant:"caption",sx:{fontWeight:600,fontSize:{xs:11.5,md:13},lineHeight:1},children:r.label}),(0,Z.jsx)(x.A,{sx:{minWidth:{xs:22,md:26},height:{xs:18,md:22},px:.625,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:999,fontSize:{xs:10,md:11},fontWeight:700,bgcolor:i?"rgba(255,255,255,0.22)":pe.surfaceAlt,color:i?"#fff":pe.textSecondary,border:"none"},children:n})]},e)}))}),(0,Z.jsx)(x.A,{sx:{width:{xs:"100%",sm:240,lg:280},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,Z.jsx)(ie.A,{value:Le,onChange:Oe,onDebouncedChange:Ee,placeholder:"Search orders (ctrl+k)",sx:{m:0,width:"100%",borderRadius:999,bgcolor:"#ffffff","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:1.5},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(be(Ae))}}})})]})}),(0,Z.jsx)(s.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:pe.radiusCard/8,borderBottomRightRadius:pe.radiusCard/8,border:"1px solid",borderColor:pe.borderSubtle,overflow:"hidden",background:"#fff"},children:(0,Z.jsxs)(j.A,{ref:h,onScroll:e=>{const{scrollTop:t,scrollHeight:r,clientHeight:o}=e.currentTarget;t+o>=r-50&&Ft&&!Kt&&Et()},sx:{maxHeight:{xs:"calc(100vh - 220px)",md:"calc(100vh - 190px)"},overflow:"auto","&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:ve(Ae),borderRadius:8,"&:hover":{backgroundColor:Ae}},"&::-webkit-scrollbar-track":{backgroundColor:pe.surfaceAlt}},children:[t?(0,Z.jsx)(xe.nV,{sx:{p:1.25},children:Lt?(0,Z.jsxs)(u.A,{alignItems:"center",sx:{py:6},children:[(0,Z.jsx)(ne.A,{}),(0,Z.jsx)(p.A,{variant:"caption",color:"text.secondary",sx:{mt:1},children:"Loading orders\u2026"})]}):0==(null===Ht||void 0===Ht?void 0:Ht.length)?(0,Z.jsxs)(u.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,Z.jsx)(c.A,{sx:{width:64,height:64,bgcolor:fe("#94a3b8"),color:pe.textMuted},children:(0,Z.jsx)(T.Z2J,{size:28})}),(0,Z.jsx)(p.A,{variant:"subtitle1",sx:{fontWeight:700,color:pe.textPrimary},children:"No orders to show"}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary,textAlign:"center",px:2},children:Le?"Try a different keyword.":"Adjust the filters above to load orders."})]}):null===Ht||void 0===Ht?void 0:Ht.map(((e,t)=>{var r;const o=String(e.orderstatus||"").toLowerCase(),i=ke[o]||{label:e.orderstatus||"\u2014",color:Ae,icon:T.Z2J},n=i.icon,l="cancelled"===o,a="delivered"===e.orderstatus;return(0,Z.jsx)(xe.pg,{accent:i.color,header:(0,Z.jsxs)(u.A,{spacing:1.25,children:[(0,Z.jsxs)(u.A,{direction:"row",alignItems:"flex-start",justifyContent:"space-between",spacing:1,children:[(0,Z.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:.75,sx:{minWidth:0},children:[(0,Z.jsx)(p.A,{variant:"caption",sx:{fontWeight:700,color:pe.textMuted},children:String(E*K+t+1).padStart(2,"0")}),(0,Z.jsx)(we,{color:Ae,size:32,children:(0,Z.jsx)(T.Itr,{size:16})}),(0,Z.jsxs)(u.A,{spacing:.25,sx:{minWidth:0},children:[(0,Z.jsx)(p.A,{variant:"subtitle2",sx:{fontWeight:700,color:pe.textPrimary},noWrap:!0,children:e.tenantname}),(0,Z.jsxs)(p.A,{variant:"caption",sx:{color:pe.textSecondary,fontWeight:700},children:["#",e.orderid]})]})]}),(0,Z.jsx)(d.A,{title:a?"View rider route":"Available for delivered orders",placement:"top",children:(0,Z.jsx)("span",{children:(0,Z.jsx)(y.A,{size:"small",disabled:!a,onClick:()=>{a&&(Yt(e.deliveryid),Ge(e))},sx:{flexShrink:0,bgcolor:fe(a?Ae:"#94a3b8"),color:a?Ae:pe.textMuted,border:"1px solid ".concat(ve(a?Ae:"#94a3b8")),"&:hover":{bgcolor:a?Ae:fe("#94a3b8"),color:a?"#fff":pe.textMuted}},children:(0,Z.jsx)(T.Cd7,{size:14})})})})]}),(0,Z.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:.75,sx:{flexWrap:"wrap",gap:.5},children:[(0,Z.jsxs)(x.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:ge(i.color),border:"1px solid ".concat(ve(i.color)),color:i.color,fontSize:11,fontWeight:800},children:[(0,Z.jsx)(n,{size:12})," ",i.label]}),e.ridername&&(0,Z.jsxs)(x.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:ge("#8b5cf6"),border:"1px solid ".concat(ve("#8b5cf6")),color:"#8b5cf6",fontSize:11,fontWeight:800},children:[(0,Z.jsx)(T.bsz,{size:12})," ",e.ridername]}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textMuted,fontWeight:600},children:q()(e.deliverydate).utc().format("DD/MM/YYYY \xb7 hh:mm A")})]})]}),children:(0,Z.jsxs)(xe.FG,{children:[(0,Z.jsx)(xe.pY,{label:"Pickup",children:(0,Z.jsxs)(u.A,{spacing:.25,sx:{minWidth:0},children:[(0,Z.jsx)(p.A,{sx:{fontSize:13,fontWeight:700,color:pe.textPrimary},noWrap:!0,children:e.pickupcustomer||"\u2014"}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary},noWrap:!0,children:e.pickupcontactno}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary},noWrap:!0,children:e.pickupsuburb||(e.Pickupaddress?e.Pickupaddress.slice(0,22)+"\u2026":"")}),e.applocation&&(0,Z.jsxs)(x.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:.75,py:.25,borderRadius:999,bgcolor:ge("#10b981"),border:"1px solid ".concat(ve("#10b981")),color:"#10b981",fontSize:10,fontWeight:800,width:"fit-content"},children:[(0,Z.jsx)(T.JFD,{size:11})," ",e.applocation]})]})}),(0,Z.jsx)(xe.pY,{label:"Drop",children:(0,Z.jsxs)(u.A,{spacing:.25,sx:{minWidth:0},children:[(0,Z.jsx)(p.A,{sx:{fontSize:13,fontWeight:700,color:pe.textPrimary},noWrap:!0,children:e.deliverycustomer||"\u2014"}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary},noWrap:!0,children:e.deliverycontactno}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary},noWrap:!0,children:e.deliverysuburb||(e.deliveryaddress?e.deliveryaddress.slice(0,22)+"\u2026":"")})]})}),(0,Z.jsx)(xe.pY,{label:"Assigned",children:(0,Z.jsx)(Ce,{value:e.assigntime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(xe.pY,{label:"Accepted",children:(0,Z.jsx)(Ce,{value:e.acceptedtime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(xe.pY,{label:"Arrived",children:(0,Z.jsx)(Ce,{value:e.arrivaltime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(xe.pY,{label:"Picked",children:(0,Z.jsx)(Ce,{value:e.pickuptime,formatDate:rr,formatTime:or,success:"active"===e.deliverystatus})}),(0,Z.jsx)(xe.pY,{label:"Active",children:(0,Z.jsx)(Ce,{value:e.starttime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(xe.pY,{label:"Delivered",children:(0,Z.jsx)(Ce,{value:e.deliverytime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(xe.pY,{label:"Cancelled",children:(0,Z.jsx)(Ce,{value:e.canceltime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(xe.pY,{label:"KMS \xb7 plan / act / rider",full:!0,children:(0,Z.jsxs)(u.A,{direction:"row",spacing:.5,sx:{flexWrap:"wrap",gap:.5},children:[(0,Z.jsx)(Me,{color:"#ef4444",icon:(0,Z.jsx)(T.xI$,{size:11}),label:l||""==e.kms?"0 km":"".concat(e.kms," km"),tooltip:"KMS"}),(0,Z.jsx)(Me,{color:"#10b981",icon:(0,Z.jsx)(T.xI$,{size:11}),label:"".concat(null!==(r=e.cumulativekms)&&void 0!==r?r:0," km"),tooltip:"Actual KMS"}),(0,Z.jsx)(Me,{color:"#0ea5e9",icon:(0,Z.jsx)(T.xI$,{size:11}),label:"".concat(e.previouskms||(l?"0.00":e.kms)||0," km"),tooltip:"Rider KMS"})]})}),(0,Z.jsx)(xe.pY,{label:"Charges \xb7 chg / amt",full:!0,children:(0,Z.jsxs)(u.A,{direction:"row",spacing:.5,sx:{flexWrap:"wrap",gap:.5},children:[(0,Z.jsx)(Me,{color:"#ef4444",icon:(0,Z.jsx)(T.YHz,{size:11}),label:l||""==e.deliverycharges?"0.00":"".concat(e.deliverycharges,".00"),tooltip:"Delivery Charge"}),(0,Z.jsx)(Me,{color:"#10b981",icon:(0,Z.jsx)(T.YHz,{size:11}),label:""==e.deliveryamt?"0.00":"".concat(e.deliveryamt,".00"),tooltip:"Delivery Amount"})]})}),e.ordernotes&&(0,Z.jsx)(xe.pY,{label:"Notes",full:!0,children:(0,Z.jsxs)(u.A,{direction:"row",spacing:.5,alignItems:"flex-start",children:[(0,Z.jsx)(T.NpB,{size:12,color:pe.textMuted,style:{marginTop:2,flexShrink:0}}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary},children:e.ordernotes})]})})]})},e.deliveryid||"".concat(e.orderid,"-").concat(t))}))}):(0,Z.jsxs)(w.A,{stickyHeader:!0,sx:{minWidth:1600},children:[(0,Z.jsx)(S.A,{children:(0,Z.jsxs)(k.A,{sx:{"& th":{backgroundColor:pe.surfaceAlt,color:pe.textSecondary,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(pe.borderSubtle),py:{xs:1,md:1.25},px:{xs:1,md:1.5}}},children:[(0,Z.jsx)(D.A,{children:"#"}),(0,Z.jsx)(D.A,{children:"Map"}),(0,Z.jsx)(D.A,{children:"Client"}),(0,Z.jsx)(D.A,{children:"Pickup"}),(0,Z.jsx)(D.A,{children:"Drop"}),(0,Z.jsx)(D.A,{children:"Status / Rider"}),(0,Z.jsx)(D.A,{children:"Assigned"}),(0,Z.jsx)(D.A,{children:"Accepted"}),(0,Z.jsx)(D.A,{children:"Arrived"}),(0,Z.jsx)(D.A,{children:"Picked"}),(0,Z.jsx)(D.A,{children:"Active"}),(0,Z.jsx)(D.A,{children:"Delivered"}),(0,Z.jsx)(D.A,{children:"Cancelled"}),(0,Z.jsx)(D.A,{children:"Notes"}),(0,Z.jsx)(D.A,{align:"center",children:"KMS"}),(0,Z.jsx)(D.A,{align:"center",children:"Charges"})]})}),(0,Z.jsx)(M.A,{children:Lt?(0,Z.jsx)(de,{rows:16,columns:16,height:15}):0==(null===Ht||void 0===Ht?void 0:Ht.length)?(0,Z.jsx)(k.A,{children:(0,Z.jsx)(D.A,{colSpan:16,sx:{py:6},children:(0,Z.jsxs)(u.A,{alignItems:"center",spacing:1.5,children:[(0,Z.jsx)(c.A,{sx:{width:64,height:64,bgcolor:fe("#94a3b8"),color:pe.textMuted},children:(0,Z.jsx)(T.Z2J,{size:28})}),(0,Z.jsx)(p.A,{variant:"subtitle1",sx:{fontWeight:700,color:pe.textPrimary},children:"No orders to show"}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary},children:Le?"Try a different keyword.":"Adjust the filters above to load orders."})]})})}):null===Ht||void 0===Ht?void 0:Ht.map(((e,t)=>{var r;const o=String(e.orderstatus||"").toLowerCase(),i=ke[o]||{label:e.orderstatus||"\u2014",color:Ae,icon:T.Z2J},n=i.icon,l="cancelled"===o;return(0,Z.jsxs)(k.A,{sx:{transition:"background-color 0.15s","& td":{borderBottom:"1px solid ".concat(pe.divider),py:{xs:1,md:1.25},px:{xs:1,md:1.5},verticalAlign:"top"},"&:hover":{backgroundColor:pe.surfaceAlt}},children:[(0,Z.jsx)(D.A,{children:(0,Z.jsx)(p.A,{variant:"caption",sx:{fontWeight:700,color:pe.textMuted},children:String(E*K+t+1).padStart(2,"0")})}),(0,Z.jsx)(D.A,{children:(0,Z.jsx)(d.A,{title:"delivered"===e.orderstatus?"View rider route":"Available for delivered orders",placement:"top",children:(0,Z.jsx)("span",{children:(0,Z.jsx)(y.A,{size:"small",disabled:"delivered"!==e.orderstatus,onClick:()=>{"delivered"===e.orderstatus&&(Yt(e.deliveryid),Ge(e))},sx:{bgcolor:"delivered"===e.orderstatus?fe(Ae):fe("#94a3b8"),color:"delivered"===e.orderstatus?Ae:pe.textMuted,border:"1px solid ".concat("delivered"===e.orderstatus?ve(Ae):ve("#94a3b8")),"&:hover":{bgcolor:"delivered"===e.orderstatus?Ae:fe("#94a3b8"),color:"delivered"===e.orderstatus?"#fff":pe.textMuted}},children:(0,Z.jsx)(T.Cd7,{size:14})})})})}),(0,Z.jsx)(D.A,{children:(0,Z.jsxs)(u.A,{direction:"row",alignItems:"flex-start",spacing:1,children:[(0,Z.jsx)(we,{color:Ae,size:32,children:(0,Z.jsx)(T.Itr,{size:16})}),(0,Z.jsxs)(u.A,{spacing:.25,sx:{minWidth:0},children:[(0,Z.jsx)(p.A,{variant:"subtitle2",sx:{fontWeight:700,color:pe.textPrimary,whiteSpace:"nowrap"},children:e.tenantname}),(0,Z.jsx)(d.A,{title:"Order ID",placement:"top",children:(0,Z.jsxs)(p.A,{variant:"caption",sx:{color:pe.textSecondary,fontWeight:700},children:["#",e.orderid]})}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textMuted},children:q()(e.deliverydate).utc().format("DD/MM/YYYY \xb7 hh:mm A")})]})]})}),(0,Z.jsx)(D.A,{children:(0,Z.jsxs)(u.A,{spacing:.25,children:[(0,Z.jsx)(p.A,{variant:"subtitle2",sx:{fontWeight:700,color:pe.textPrimary,whiteSpace:"nowrap"},children:e.pickupcustomer||"\u2014"}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary},children:e.pickupcontactno}),(0,Z.jsx)(d.A,{title:e.Pickupaddress||e.pickupsuburb||"",children:(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary,cursor:"pointer",display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.pickupsuburb||(e.Pickupaddress?e.Pickupaddress.slice(0,22)+"\u2026":"")})}),e.applocation&&(0,Z.jsxs)(x.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:.75,py:.25,borderRadius:999,bgcolor:ge("#10b981"),border:"1px solid ".concat(ve("#10b981")),color:"#10b981",fontSize:10,fontWeight:800,width:"fit-content"},children:[(0,Z.jsx)(T.JFD,{size:11})," ",e.applocation]})]})}),(0,Z.jsx)(D.A,{children:(0,Z.jsxs)(u.A,{spacing:.25,children:[(0,Z.jsx)(p.A,{variant:"subtitle2",sx:{fontWeight:700,color:pe.textPrimary,whiteSpace:"nowrap"},children:e.deliverycustomer||"\u2014"}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary},children:e.deliverycontactno}),(0,Z.jsx)(d.A,{title:e.deliveryaddress||"",children:(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary,cursor:"pointer",display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.deliverysuburb||(e.deliveryaddress?e.deliveryaddress.slice(0,22)+"\u2026":"")})})]})}),(0,Z.jsx)(D.A,{children:(0,Z.jsxs)(u.A,{spacing:.5,children:[(0,Z.jsxs)(x.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:ge(i.color),border:"1px solid ".concat(ve(i.color)),color:i.color,fontSize:11,fontWeight:800,width:"fit-content"},children:[(0,Z.jsx)(n,{size:12})," ",i.label]}),e.ridername&&(0,Z.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:.5,children:[(0,Z.jsx)(T.bsz,{size:12,color:pe.textMuted}),(0,Z.jsx)(d.A,{title:"Rider ID: ".concat(e.userid),children:(0,Z.jsx)(p.A,{variant:"caption",sx:{fontWeight:700,color:pe.textPrimary,whiteSpace:"nowrap"},children:e.ridername})})]})]})}),(0,Z.jsx)(D.A,{children:(0,Z.jsx)(Ce,{value:e.assigntime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(D.A,{children:(0,Z.jsx)(Ce,{value:e.acceptedtime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(D.A,{children:(0,Z.jsx)(Ce,{value:e.arrivaltime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(D.A,{children:(0,Z.jsx)(Ce,{value:e.pickuptime,formatDate:rr,formatTime:or,success:"active"===e.deliverystatus})}),(0,Z.jsx)(D.A,{children:(0,Z.jsx)(Ce,{value:e.starttime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(D.A,{children:(0,Z.jsx)(Ce,{value:e.deliverytime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(D.A,{children:(0,Z.jsx)(Ce,{value:e.canceltime,formatDate:rr,formatTime:or})}),(0,Z.jsx)(D.A,{sx:{maxWidth:180},children:e.ordernotes?(0,Z.jsxs)(u.A,{direction:"row",spacing:.5,alignItems:"flex-start",children:[(0,Z.jsx)(T.NpB,{size:12,color:pe.textMuted,style:{marginTop:2,flexShrink:0}}),(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textSecondary,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.ordernotes})]}):(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textMuted},children:"\u2014"})}),(0,Z.jsx)(D.A,{align:"center",children:(0,Z.jsxs)(u.A,{spacing:.5,alignItems:"center",children:[(0,Z.jsx)(Me,{color:"#ef4444",icon:(0,Z.jsx)(T.xI$,{size:11}),label:l||""==e.kms?"0 km":"".concat(e.kms," km"),tooltip:"KMS"}),(0,Z.jsx)(Me,{color:"#10b981",icon:(0,Z.jsx)(T.xI$,{size:11}),label:"".concat(null!==(r=e.cumulativekms)&&void 0!==r?r:0," km"),tooltip:"Actual KMS"}),(0,Z.jsx)(Me,{color:"#0ea5e9",icon:(0,Z.jsx)(T.xI$,{size:11}),label:"".concat(e.previouskms||(l?"0.00":e.kms)||0," km"),tooltip:"Rider KMS"})]})}),(0,Z.jsx)(D.A,{align:"center",children:(0,Z.jsxs)(u.A,{spacing:.5,alignItems:"center",children:[(0,Z.jsx)(Me,{color:"#ef4444",icon:(0,Z.jsx)(T.YHz,{size:11}),label:l||""==e.deliverycharges?"0.00":"".concat(e.deliverycharges,".00"),tooltip:"Delivery Charge"}),(0,Z.jsx)(Me,{color:"#10b981",icon:(0,Z.jsx)(T.YHz,{size:11}),label:""==e.deliveryamt?"0.00":"".concat(e.deliveryamt,".00"),tooltip:"Delivery Amount"})]})})]},e.deliveryid||"".concat(e.orderid,"-").concat(t))}))})]}),(0,Z.jsx)(C.A,{}),0!==(null===Ht||void 0===Ht?void 0:Ht.length)&&(0,Z.jsx)(u.A,{justifyContent:"center",alignItems:"center",sx:{width:"100%",py:2},children:(0,Z.jsx)(u.A,{ref:r,style:{textAlign:"center",width:"100%"},children:Kt||Ft?(0,Z.jsx)(ne.A,{}):(0,Z.jsx)(p.A,{variant:"caption",sx:{color:pe.textMuted,fontWeight:600},children:"No more orders"})})})]})}),(0,Z.jsxs)(z.A,{open:Ct,onClose:()=>zt(!1),fullWidth:!0,maxWidth:"sm",fullScreen:t,PaperProps:{sx:{borderRadius:{xs:0,sm:3},overflow:"hidden"}},children:[(0,Z.jsx)(I.A,{sx:{background:"linear-gradient(135deg, ".concat(Ae," 0%, ").concat(je," 100%)"),color:"#fff",py:2},children:(0,Z.jsxs)(u.A,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,Z.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:1.5,children:[(0,Z.jsx)(c.A,{sx:{width:36,height:36,bgcolor:"rgba(255,255,255,0.22)",color:"#fff"},children:(0,Z.jsx)(T.S3Y,{size:20})}),(0,Z.jsxs)(u.A,{children:[(0,Z.jsx)(p.A,{sx:{fontSize:11,fontWeight:700,opacity:.85,letterSpacing:.6,textTransform:"uppercase",lineHeight:1},children:"Report"}),(0,Z.jsx)(p.A,{sx:{fontWeight:800,fontSize:{xs:"1.05rem",sm:"1.2rem"},lineHeight:1.2,mt:.25},children:"Export Orders"})]})]}),(0,Z.jsx)(y.A,{size:"small",onClick:()=>zt(!1),sx:{color:"#fff",bgcolor:"rgba(255,255,255,0.18)","&:hover":{bgcolor:"rgba(255,255,255,0.3)"}},children:(0,Z.jsx)(T.m6K,{size:16})})]})}),(0,Z.jsxs)(W.A,{sx:{p:2},children:[Lt&&(0,Z.jsx)(G.A,{}),[{label:"App Location",value:_,color:Ae},{label:"Tenant",value:null===At||void 0===At?void 0:At.tenantname,color:"#0ea5e9"},{label:"Business Location",value:null===yt||void 0===yt?void 0:yt.locationname,color:"#10b981"},{label:"Status",value:pt,color:"#f59e0b"},{label:"Rider",value:Dt?"".concat(Dt.firstname," ").concat(Dt.lastname):null,color:"#8b5cf6"},{label:"Keyword",value:Le,color:"#06b6d4"},{label:"Start Date",value:J,color:"#14b8a6"},{label:"End Date",value:V,color:"#ef4444"}].map(((e,t)=>(0,Z.jsxs)(u.A,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{px:1.5,py:1,borderRadius:2,bgcolor:ge(e.color),border:"1px solid ".concat(ve(e.color)),mb:1},children:[(0,Z.jsx)(p.A,{variant:"body2",sx:{fontWeight:700,color:pe.textPrimary},children:e.label}),(0,Z.jsx)(P.A,{size:"small",label:e.value||"None",sx:{fontWeight:700,bgcolor:e.value?e.color:fe("#94a3b8"),color:e.value?"#fff":pe.textMuted,border:"none"}})]},t)))]}),(0,Z.jsxs)(R.A,{sx:{p:2,bgcolor:pe.surfaceAlt,gap:1},children:[(0,Z.jsx)(A.A,{color:"inherit",variant:"outlined",onClick:()=>zt(!1),sx:{borderRadius:999,px:2,textTransform:"none",fontWeight:700,borderColor:pe.borderSubtle,color:pe.textSecondary},children:"Cancel"}),(0,Z.jsx)(ee.pK,{data:tr,filename:"Orders_Detail_".concat(q()().format("YYYY-MM-DD_HHmmss"),".csv"),label:"Download CSV",btnLoading:Lt,onClick:()=>{setTimeout((()=>zt(!1)),0)}})]})]}),(0,Z.jsx)(oe.A,{open:ue,onClose:()=>me(!1),onSelect:e=>{U(e.startDate),$(e.endDate),Re(e.label)}}),(0,Z.jsx)(z.A,{open:Ie,onClose:()=>{We(!1)},fullScreen:!0,fullWidth:!0,children:Fe&&(0,Z.jsx)("div",{children:(0,Z.jsx)(X,{coordinates:Fe,additionalProps:{riderStart:He,riderEnd:Be},order:Je,setMapOpen:We})})})]})}},23787:(e,t,r)=>{r.d(t,{FG:()=>h,nV:()=>x,pY:()=>p,pg:()=>u});var o=r(89379),i=r(80045),n=r(93230),l=r(2235),a=r(16491),s=r(82053),c=r(44414);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:t,scroll:r=!1,onScroll:l,sx:a}=e,s=(0,i.A)(e,d);return(0,c.jsx)(n.A,(0,o.A)((0,o.A)({spacing:1.25,onScroll:l,sx:(0,o.A)((0,o.A)({p:1.5},r&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),a)},s),{},{children:t}))},u=e=>{let{accent:t="#662582",header:r,footer:i,selected:n=!1,onClick:s,children:d,sx:x}=e;return(0,c.jsxs)(l.A,{elevation:0,onClick:s,sx:(0,o.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:n?t:"#e2e8f0",background:n?"".concat(t,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,c.jsx)(a.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:t}}),(0,c.jsxs)(a.A,{sx:{p:1.5,pl:2},children:[r,d,i]})]})},h=e=>{let{children:t,columns:r=2,sx:i}=e;return(0,c.jsx)(a.A,{sx:(0,o.A)({display:"grid",gridTemplateColumns:"repeat(".concat(r,", minmax(0, 1fr))"),gap:1,mt:1.25},i),children:t})},p=e=>{let{label:t,value:r,children:o,full:i=!1,align:n="left"}=e;return(0,c.jsxs)(a.A,{sx:{gridColumn:i?"1 / -1":"auto",minWidth:0,textAlign:n},children:[(0,c.jsx)(s.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:t}),(0,c.jsx)(a.A,{sx:{mt:.25,minWidth:0},children:void 0!==o?o:(0,c.jsx)(s.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==r&&void 0!==r?r:"\u2014"})})]})}},27001:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(93230),i=r(16491),n=r(82053),l=r(44414);function a(e){let{title:t,subtitle:r,live:a=!1,action:s}=e;return(0,l.jsxs)(o.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,l.jsxs)(i.A,{sx:{minWidth:0},children:[(0,l.jsx)(n.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:t}),r&&(0,l.jsxs)(o.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[a&&(0,l.jsx)(i.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,l.jsx)(n.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:r})]})]}),s&&(0,l.jsx)(i.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:s})]})}},35678:(e,t,r)=>{r.d(t,{A:()=>j});var o=r(9950),i=r(96583),n=r(40033),l=r(82053),a=r(28170),s=r(93230),c=r(10226),d=r(55916),x=r(4159),u=r.n(x),h=r(56712),p=r(81417),m=r(96600),g=r(53132),f=r(94289),b=r(57326),v=r(50624),A=r(44414);const j=e=>{let{open:t,onClose:r,onSelect:x}=e;const[j,y]=(0,o.useState)(null);return(0,A.jsxs)(i.A,{open:t,onClose:r,children:[(0,A.jsx)(n.A,{align:"left",children:(0,A.jsx)(l.A,{variant:"h4",children:"Select Filter Options"})}),(0,A.jsx)(a.A,{sx:{width:"100%"},className:"datedialog",children:(0,A.jsx)(d.U,{open:t,toggle:r,id:"daterange1",onChange:e=>{y({startDate:u()(e.startDate).format("YYYY-MM-DD"),endDate:u()(e.endDate).format("YYYY-MM-DD"),label:e.label||"custom"})},definedRanges:[{label:"Today",startDate:new Date,endDate:new Date},{label:"Yesterday",startDate:(0,h.A)(new Date,-1),endDate:(0,h.A)(new Date,-1)},{label:"Tomorrow",startDate:(0,h.A)(new Date,1),endDate:(0,h.A)(new Date,1)},{label:"This Week",startDate:(0,p.A)(new Date),endDate:(0,m.A)(new Date)},{label:"Last Week",startDate:(0,p.A)((0,g.A)(new Date,-1)),endDate:(0,m.A)((0,g.A)(new Date,-1))},{label:"Last 7 Days",startDate:(0,g.A)(new Date,-1),endDate:new Date},{label:"This Month",startDate:(0,f.A)(new Date),endDate:(0,b.A)(new Date)},{label:"Last Month",startDate:(0,f.A)((0,v.A)(new Date,-1)),endDate:(0,b.A)((0,v.A)(new Date,-1))}]})}),(0,A.jsx)(s.A,{direction:"row",justifyContent:"flex-end",sx:{width:"100%",p:2},children:(0,A.jsx)(c.A,{variant:"contained",size:"small",onClick:()=>{j?(x(j),r()):r()},children:"OK"})})]})}},36150:(e,t,r)=>{r.d(t,{I:()=>n});var o=r(69347),i=r(1729);function n(e,t){return(0,i.t)(e,o.$,t)}},36803:(e,t,r)=>{r.d(t,{A:()=>x});var o=r(48089),i=r(50704),n=r(93230),l=r(16491),a=r(82053),s=r(82917),c=r(41413),d=r(44414);function x(e){let{title:t,value:r,icon:x,color:u="#662582",caption:h,loading:p=!1}=e;return(0,d.jsx)(o.A,{sx:{height:"100%"},children:(0,d.jsx)(i.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,d.jsxs)(n.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,d.jsxs)(l.A,{sx:{minWidth:0,flex:1},children:[(0,d.jsx)(a.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t}),p?(0,d.jsx)(s.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,d.jsx)(a.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r}),h&&(0,d.jsx)(a.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:h})]}),x&&(0,d.jsx)(c.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(u,"14"),color:u,flexShrink:0},children:x})]})})})}},56311:(e,t,r)=>{r.d(t,{A:()=>h});var o=r(89379),i=r(9950),n=r(2660),l=r(2046),a=r(83274),s=r(25333),c=r(97125),d=r(7762),x=r(52097),u=r(44414);const h=e=>{let{value:t,onChange:r,onDebouncedChange:h,debounceTime:p=500,placeholder:m="Search (ctrl+k)",sx:g}=e;const f=(0,i.useRef)(null),[b]=(0,x.d7)(t,p);return(0,i.useEffect)((()=>{h&&h(b)}),[b,h]),(0,i.useEffect)((()=>{const e=e=>{var t;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(t=f.current)||void 0===t||t.focus());"Escape"===e.key&&document.activeElement===f.current&&f.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,u.jsx)(n.A,{sx:(0,o.A)({},g),inputRef:f,placeholder:m,autoComplete:"off",value:t,fullWidth:!0,onChange:e=>r(e.target.value),startAdornment:(0,u.jsx)(l.A,{position:"start",sx:{mr:-.5},children:(0,u.jsx)(c.A,{})}),endAdornment:(0,u.jsx)(a.A,{title:"Clear",children:(0,u.jsx)(s.A,{sx:{visibility:t?"visible":"hidden"},onClick:()=>r(""),children:(0,u.jsx)(d.A,{})})})})}},58691:(e,t,r)=>{r.d(t,{A:()=>a});r(9950);var o=r(16491),i=r(46639),n=r(62217),l=r(44414);function a(e){let{size:t=70,imgSize:r=40,alt:a="loader"}=e;return(0,l.jsxs)(o.A,{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",children:[(0,l.jsx)(i.A,{size:t}),(0,l.jsx)(o.A,{position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",sx:{width:r,height:r},children:(0,l.jsx)("img",{src:n,alt:a,style:{width:"100%",height:"100%",borderRadius:"50%",objectFit:"contain"}})})]})}},59212:(e,t,r)=>{r.d(t,{A:()=>u});var o=r(89379),i=r(9950),n=r(93230),l=r(41413),a=r(77922),s=r(29925),c=r(26910),d=r(31222),x=r(44414);const u=(0,i.forwardRef)(((e,t)=>{let{setAppId:r,setLocoName:u,setPage:h,sx:p,textfeildSx:m,textfieldSx:g,pill:f=!1,accentColor:b="#6366f1",icon:v,placeholder:A="Select Zone",paperComponent:j}=e;const[y,w]=(0,i.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,i.useEffect)((()=>{0===y.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const t=await c.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(t.data.status){const e=[...t.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),w(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[y.length]);const S=e=>"".concat(b).concat(e),k=S("26"),D=S("18"),M=f?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(k)},"&.Mui-focused fieldset":{borderColor:b,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},C=f&&(0,x.jsx)(n.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,x.jsx)(l.A,{sx:{width:24,height:24,bgcolor:D,color:b,transition:"background-color 0.15s, color 0.15s"},children:v||(0,x.jsx)(d.HPi,{size:14})})});return(0,x.jsx)(a.A,{id:"location-autocomplete",options:y||[],getOptionLabel:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.locationname)&&void 0!==t?t:""},PaperComponent:j,sx:(0,o.A)({},p),onChange:(e,t,o)=>{"clear"===o?(null===r||void 0===r||r(0),null===u||void 0===u||u(""),null===h||void 0===h||h(0)):t&&(null===r||void 0===r||r(t.applocationid),null===u||void 0===u||u(t.locationname),null===h||void 0===h||h(0))},renderInput:e=>f?(0,x.jsx)(s.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,placeholder:A,InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:C}),sx:(0,o.A)((0,o.A)({},M),g||m||{})})):(0,x.jsx)(s.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,label:"Select Zones",sx:(0,o.A)({},g||m||{})}))})}))}}]); \ No newline at end of file diff --git a/build/static/js/8858.c8246809.chunk.js b/build/static/js/8858.c8246809.chunk.js new file mode 100644 index 0000000..a9aaeab --- /dev/null +++ b/build/static/js/8858.c8246809.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[8858],{763:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=u(r(71405)),n=u(r(67999));function u(e){return e&&e.__esModule?e:{default:e}}var o=function(e,t,r){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=(0,a.default)(t,e,u),i=(0,a.default)(e,r,u),l=(0,a.default)(t,r,u),d=Math.acos((0,n.default)((o*o+l*l-i*i)/(2*o*l))),f=Math.acos((0,n.default)((i*i+l*l-o*o)/(2*i*l)));return d>Math.PI/2?o:f>Math.PI/2?i:Math.sin(d)*o};t.default=o},4114:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});var a={computeDestinationPoint:!0,convertArea:!0,convertDistance:!0,convertSpeed:!0,decimalToSexagesimal:!0,findNearest:!0,getAreaOfPolygon:!0,getBounds:!0,getBoundsOfDistance:!0,getCenter:!0,getCenterOfBounds:!0,getCompassDirection:!0,getCoordinateKey:!0,getCoordinateKeys:!0,getDistance:!0,getDistanceFromLine:!0,getGreatCircleBearing:!0,getLatitude:!0,getLongitude:!0,getPathLength:!0,getPreciseDistance:!0,getRhumbLineBearing:!0,getRoughCompassDirection:!0,getSpeed:!0,isDecimal:!0,isPointInLine:!0,isPointInPolygon:!0,isPointNearLine:!0,isPointWithinRadius:!0,isSexagesimal:!0,isValidCoordinate:!0,isValidLatitude:!0,isValidLongitude:!0,orderByDistance:!0,sexagesimalToDecimal:!0,toDecimal:!0,toRad:!0,toDeg:!0,wktToPolygon:!0};Object.defineProperty(t,"computeDestinationPoint",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"convertArea",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"convertDistance",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"convertSpeed",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"decimalToSexagesimal",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"findNearest",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"getAreaOfPolygon",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"getBounds",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"getBoundsOfDistance",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"getCenter",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"getCenterOfBounds",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"getCompassDirection",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"getCoordinateKey",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"getCoordinateKeys",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"getDistance",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"getDistanceFromLine",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"getGreatCircleBearing",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"getLatitude",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"getLongitude",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"getPathLength",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"getPreciseDistance",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"getRhumbLineBearing",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"getRoughCompassDirection",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"getSpeed",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"isDecimal",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"isPointInLine",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"isPointInPolygon",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"isPointNearLine",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"isPointWithinRadius",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"isSexagesimal",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"isValidCoordinate",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"isValidLatitude",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"isValidLongitude",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"orderByDistance",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"sexagesimalToDecimal",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(t,"toDecimal",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"toRad",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"toDeg",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"wktToPolygon",{enumerable:!0,get:function(){return F.default}});var n=$(r(37413)),u=$(r(39464)),o=$(r(58726)),i=$(r(62346)),l=$(r(38469)),d=$(r(10565)),f=$(r(47874)),c=$(r(99983)),s=$(r(24233)),v=$(r(5427)),p=$(r(67039)),h=$(r(51479)),g=$(r(34829)),b=$(r(28744)),y=$(r(71405)),m=$(r(763)),M=$(r(35779)),O=$(r(14062)),_=$(r(9081)),P=$(r(16141)),j=$(r(40290)),w=$(r(64932)),S=$(r(53012)),N=$(r(63639)),A=$(r(31017)),L=$(r(34257)),k=$(r(50373)),x=$(r(74648)),C=$(r(34749)),I=$(r(82277)),D=$(r(83606)),E=$(r(9224)),R=$(r(50595)),W=$(r(6092)),B=$(r(6901)),T=$(r(7318)),X=$(r(45786)),z=$(r(60309)),F=$(r(66439)),K=r(14659);function $(e){return e&&e.__esModule?e:{default:e}}Object.keys(K).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return K[e]}}))}))},5427:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(14062)),n=i(r(9081)),u=i(r(45786)),o=i(r(60309));function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e){if(!1===Array.isArray(e)||0===e.length)return!1;var t=e.length,r=e.reduce((function(e,t){var r=(0,u.default)((0,a.default)(t)),o=(0,u.default)((0,n.default)(t));return{X:e.X+Math.cos(r)*Math.cos(o),Y:e.Y+Math.cos(r)*Math.sin(o),Z:e.Z+Math.sin(r)}}),{X:0,Y:0,Z:0}),i=r.X/t,l=r.Y/t,d=r.Z/t;return{longitude:(0,o.default)(Math.atan2(l,i)),latitude:(0,o.default)(Math.atan2(d,Math.sqrt(i*i+l*l)))}};t.default=l},6092:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(71405))&&a.__esModule?a:{default:a};var u=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.default;return r="function"===typeof r?r:n.default,t.slice().sort((function(t,a){return r(e,t)-r(e,a)}))};t.default=u},6901:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(14659),n=function(e){var t=new RegExp(a.sexagesimalPattern).exec(e.toString().trim());if("undefined"===typeof t||null===t)throw new Error("Given value is not in sexagesimal format");var r=Number(t[2])/60||0,n=Number(t[4])/3600||0,u=parseFloat(t[1])+r+n;return["S","W"].includes(t[7])?-u:u};t.default=n},7318:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=l(r(31017)),n=l(r(82277)),u=l(r(6901)),o=l(r(83606)),i=l(r(28744));function l(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function f(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(14659),n=o(r(34829)),u=o(r(7318));function o(e){return e&&e.__esModule?e:{default:e}}var i=function(e,t){var r=(0,n.default)(e,a.longitudeKeys);if("undefined"!==typeof r&&null!==r){var o=e[r];return!0===t?o:(0,u.default)(o)}};t.default=i},9224:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(31017)),n=i(r(82277)),u=i(r(6901)),o=r(14659);function i(e){return e&&e.__esModule?e:{default:e}}var l=function e(t){return(0,a.default)(t)?!(parseFloat(t)>o.MAXLAT||t{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(6092))&&a.__esModule?a:{default:a};var u=function(e,t){return(0,n.default)(e,t)[0]};t.default=u},14062:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(14659),n=o(r(34829)),u=o(r(7318));function o(e){return e&&e.__esModule?e:{default:e}}var i=function(e,t){var r=(0,n.default)(e,a.latitudeKeys);if("undefined"!==typeof r&&null!==r){var o=e[r];return!0===t?o:(0,u.default)(o)}};t.default=i},14659:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.areaConversion=t.timeConversion=t.distanceConversion=t.altitudeKeys=t.latitudeKeys=t.longitudeKeys=t.MAXLON=t.MINLON=t.MAXLAT=t.MINLAT=t.earthRadius=t.sexagesimalPattern=void 0;t.sexagesimalPattern=/^([0-9]{1,3})\xb0\s*([0-9]{1,3}(?:\.(?:[0-9]{1,}))?)['\u2032]\s*(([0-9]{1,3}(\.([0-9]{1,}))?)["\u2033]\s*)?([NEOSW]?)$/;t.earthRadius=6378137;t.MINLAT=-90;t.MAXLAT=90;t.MINLON=-180;t.MAXLON=180;t.longitudeKeys=["lng","lon","longitude",0];t.latitudeKeys=["lat","latitude",1];t.altitudeKeys=["alt","altitude","elevation","elev",2];t.distanceConversion={m:1,km:.001,cm:100,mm:1e3,mi:1/1609.344,sm:1/1852.216,ft:100/30.48,in:100/2.54,yd:1/.9144};t.timeConversion={m:60,h:3600,d:86400};var r={m2:1,km2:1e-6,ha:1e-4,a:.01,ft2:10.763911,yd2:1.19599,in2:1550.0031};t.areaConversion=r,r.sqm=r.m2,r.sqkm=r.km2,r.sqft=r.ft2,r.sqyd=r.yd2,r.sqin=r.in2},16141:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(71405))&&a.__esModule?a:{default:a};function u(e){return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.default;return e.reduce((function(e,r){return"object"===u(e)&&null!==e.last&&(e.distance+=t(r,e.last)),e.last=r,e}),{last:null,distance:0}).distance};t.default=o},24233:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=l(r(14062)),n=l(r(9081)),u=l(r(45786)),o=l(r(60309)),i=r(14659);function l(e){return e&&e.__esModule?e:{default:e}}var d=function(e,t){var r,l,d=(0,a.default)(e),f=(0,n.default)(e),c=(0,u.default)(d),s=(0,u.default)(f),v=t/i.earthRadius,p=c-v,h=c+v,g=(0,u.default)(i.MAXLAT),b=(0,u.default)(i.MINLAT),y=(0,u.default)(i.MAXLON),m=(0,u.default)(i.MINLON);if(p>b&&hy&&(l-=2*Math.PI)}else p=Math.max(p,b),h=Math.min(h,g),r=m,l=y;return[{latitude:(0,o.default)(p),longitude:(0,o.default)(r)},{latitude:(0,o.default)(h),longitude:(0,o.default)(l)}]};t.default=d},28744:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=r(14659),u=(a=r(34829))&&a.__esModule?a:{default:a};function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{longitude:n.longitudeKeys,latitude:n.latitudeKeys,altitude:n.altitudeKeys},r=(0,u.default)(e,t.longitude),a=(0,u.default)(e,t.latitude),l=(0,u.default)(e,t.altitude);return function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){var t=e.toString().trim();return!isNaN(parseFloat(t))&&parseFloat(t)===Number(t)};t.default=r},34257:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(71405))&&a.__esModule?a:{default:a};var u=function(e,t,r){return(0,n.default)(t,e)+(0,n.default)(e,r)===(0,n.default)(t,r)};t.default=u},34749:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(71405))&&a.__esModule?a:{default:a};var u=function(e,t,r){return(0,n.default)(e,t,.01){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){return t.reduce((function(t,r){if("undefined"===typeof e||null===e)throw new Error("'".concat(e,"' is no valid coordinate."));return Object.prototype.hasOwnProperty.call(e,r)&&"undefined"!==typeof r&&"undefined"===typeof t?(t=r,r):t}),void 0)};t.default=r},35779:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(14062)),n=i(r(9081)),u=i(r(45786)),o=i(r(60309));function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e,t){var r=(0,a.default)(t),i=(0,n.default)(t),l=(0,a.default)(e),d=(0,n.default)(e);return((0,o.default)(Math.atan2(Math.sin((0,u.default)(i)-(0,u.default)(d))*Math.cos((0,u.default)(r)),Math.cos((0,u.default)(l))*Math.sin((0,u.default)(r))-Math.sin((0,u.default)(l))*Math.cos((0,u.default)(r))*Math.cos((0,u.default)(i)-(0,u.default)(d))))+360)%360};t.default=l},37413:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=l(r(14062)),n=l(r(9081)),u=l(r(45786)),o=l(r(60309)),i=r(14659);function l(e){return e&&e.__esModule?e:{default:e}}var d=function(e,t,r){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:6371e3,d=(0,a.default)(e),f=(0,n.default)(e),c=t/l,s=(0,u.default)(r),v=(0,u.default)(d),p=(0,u.default)(f),h=Math.asin(Math.sin(v)*Math.cos(c)+Math.cos(v)*Math.sin(c)*Math.cos(s)),g=p+Math.atan2(Math.sin(s)*Math.sin(c)*Math.cos(v),Math.cos(c)-Math.sin(v)*Math.sin(h)),b=(0,o.default)(g);return(bi.MAXLON)&&(g=(g+3*Math.PI)%(2*Math.PI)-Math.PI,b=(0,o.default)(g)),{latitude:(0,o.default)(h),longitude:b}};t.default=d},37856:(e,t,r)=>{var a=r(39744);t.A=void 0;var n=a(r(24956)),u=r(65908);t.A=(0,n.default)((0,u.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"HighlightOff")},38469:(e,t)=>{function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],a=!0,n=!1,u=void 0;try{for(var o,i=e[Symbol.iterator]();!(a=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);a=!0);}catch(l){n=!0,u=l}finally{try{a||null==i.return||i.return()}finally{if(n)throw u}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:4,r=Math.pow(10,t);return Math.round(e*r)/r}(60*Number("0."+(i[1]||0))).toString(),f=r(d.split("."),2),c=f[0],s=f[1],v=void 0===s?"0":s;return u+"\xb0 "+l.toString().padStart(2,"0")+"' "+c.padStart(2,"0")+"."+v.padEnd(1,"0")+'"'};t.default=n},38965:(e,t,r)=>{r.d(t,{ko:()=>n});var a=r(12414);r(85672);function n(){return(0,a.U$)().map}},39464:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(14659),n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m",r=a.areaConversion[t];if(r)return e*r;throw new Error("Invalid unit used for area conversion.")};t.default=n},40290:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(14062)),n=i(r(9081)),u=i(r(45786)),o=r(14659);function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;r="undefined"===typeof r||isNaN(r)?1:r;var i,l,d,f,c,s,v,p=(0,a.default)(e),h=(0,n.default)(e),g=(0,a.default)(t),b=(0,n.default)(t),y=6356752.314245,m=1/298.257223563,M=(0,u.default)(b-h),O=Math.atan((1-m)*Math.tan((0,u.default)(parseFloat(p)))),_=Math.atan((1-m)*Math.tan((0,u.default)(parseFloat(g)))),P=Math.sin(O),j=Math.cos(O),w=Math.sin(_),S=Math.cos(_),N=M,A=100;do{var L=Math.sin(N),k=Math.cos(N);if(0===(s=Math.sqrt(S*L*(S*L)+(j*w-P*S*k)*(j*w-P*S*k))))return 0;i=P*w+j*S*k,l=Math.atan2(s,i),c=i-2*P*w/(f=1-(d=j*S*L/s)*d),isNaN(c)&&(c=0);var x=m/16*f*(4+m*(4-3*f));v=N,N=M+(1-x)*m*d*(l+x*s*(c+x*i*(2*c*c-1)))}while(Math.abs(N-v)>1e-12&&--A>0);if(0===A)return NaN;var C=f*(o.earthRadius*o.earthRadius-y*y)/(y*y),I=C/1024*(256+C*(C*(74-47*C)-128)),D=y*(1+C/16384*(4096+C*(C*(320-175*C)-768)))*(l-I*s*(c+I/4*(i*(2*c*c-1)-I/6*c*(4*s*s-3)*(4*c*c-3))));return Math.round(D/r)*r};t.default=l},45786:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e*Math.PI/180};t.default=r},47874:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(45786)),n=i(r(14062)),u=i(r(9081)),o=r(14659);function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e){var t=0;if(e.length>2){for(var r,i,l,d=0;d{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=u(r(14062)),n=u(r(9081));function u(e){return e&&e.__esModule?e:{default:e}}var o=function(e,t){for(var r=!1,u=t.length,o=-1,i=u-1;++o{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(31017)),n=i(r(82277)),u=i(r(6901)),o=r(14659);function i(e){return e&&e.__esModule?e:{default:e}}var l=function e(t){return(0,a.default)(t)?!(parseFloat(t)>o.MAXLON||t{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(64932))&&a.__esModule?a:{default:a};var u=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.default,a="function"===typeof r?r(e,t):(0,n.default)(e,t);if(isNaN(a))throw new Error("Could not calculate bearing for given points. Check your bearing function");switch(Math.round(a/22.5)){case 1:return"NNE";case 2:return"NE";case 3:return"ENE";case 4:return"E";case 5:return"ESE";case 6:return"SE";case 7:return"SSE";case 8:return"S";case 9:return"SSW";case 10:return"SW";case 11:return"WSW";case 12:return"W";case 13:return"WNW";case 14:return"NW";case 15:return"NNW";default:return"N"}};t.default=u},53012:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return/^(NNE|NE|NNW|N)$/.test(e)?"N":/^(ENE|E|ESE|SE)$/.test(e)?"E":/^(SSE|S|SSW|SW)$/.test(e)?"S":/^(WSW|W|WNW|NW)$/.test(e)?"W":void 0};t.default=r},58726:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(14659),n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m",r=a.distanceConversion[t];if(r)return e*r;throw new Error("Invalid unit used for distance conversion.")};t.default=n},60309:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return 180*e/Math.PI};t.default=r},62346:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(14659),n=function(e){switch(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"kmh"){case"kmh":return e*a.timeConversion.h*a.distanceConversion.km;case"mph":return e*a.timeConversion.h*a.distanceConversion.mi;default:return e}};t.default=n},63639:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(71405))&&a.__esModule?a:{default:a};var u=function(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.default)(e,t)/(Number(t.time)-Number(e.time))*1e3};t.default=u},64932:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r(14062)),n=i(r(9081)),u=i(r(45786)),o=i(r(60309));function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e,t){var r=(0,u.default)((0,n.default)(t))-(0,u.default)((0,n.default)(e)),i=Math.log(Math.tan((0,u.default)((0,a.default)(t))/2+Math.PI/4)/Math.tan((0,u.default)((0,a.default)(e))/2+Math.PI/4));return Math.abs(r)>Math.PI&&(r=r>0?-1*(2*Math.PI-r):2*Math.PI+r),((0,o.default)(Math.atan2(r,i))+360)%360};t.default=l},66439:(e,t)=>{function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],a=!0,n=!1,u=void 0;try{for(var o,i=e[Symbol.iterator]();!(a=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);a=!0);}catch(l){n=!0,u=l}finally{try{a||null==i.return||i.return()}finally{if(n)throw u}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(99983))&&a.__esModule?a:{default:a};var u=function(e){var t=(0,n.default)(e),r=t.minLat+(t.maxLat-t.minLat)/2,a=t.minLng+(t.maxLng-t.minLng)/2;return{latitude:parseFloat(r.toFixed(6)),longitude:parseFloat(a.toFixed(6))}};t.default=u},67999:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e>1?1:e<-1?-1:e};t.default=r},71405:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=l(r(14062)),n=l(r(9081)),u=l(r(45786)),o=l(r(67999)),i=r(14659);function l(e){return e&&e.__esModule?e:{default:e}}var d=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;r="undefined"===typeof r||isNaN(r)?1:r;var l=(0,a.default)(e),d=(0,n.default)(e),f=(0,a.default)(t),c=(0,n.default)(t),s=Math.acos((0,o.default)(Math.sin((0,u.default)(f))*Math.sin((0,u.default)(l))+Math.cos((0,u.default)(f))*Math.cos((0,u.default)(l))*Math.cos((0,u.default)(d)-(0,u.default)(c))))*i.earthRadius;return Math.round(s/r)*r};t.default=d},74648:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(763))&&a.__esModule?a:{default:a};var u=function(e,t,r,a){return(0,n.default)(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(14659),n=function(e){return a.sexagesimalPattern.test(e.toString().trim())};t.default=n},83606:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(r(28744)),n=o(r(9224)),u=o(r(50595));function o(e){return e&&e.__esModule?e:{default:e}}var i=function(e){var t=(0,a.default)(e),r=t.latitude,o=t.longitude;if(Array.isArray(e)&&e.length>=2)return(0,u.default)(e[0])&&(0,n.default)(e[1]);if("undefined"===typeof r||"undefined"===typeof o)return!1;var i=e[o],l=e[r];return"undefined"!==typeof l&&"undefined"!==typeof i&&(!1!==(0,n.default)(l)&&!1!==(0,u.default)(i))};t.default=i},94524:(e,t,r)=>{r.d(t,{A:()=>P});var a=r(84849),n=r(27326),u=r(85672),o=r(72574),i=r(25234),l=r(10247),d=r(16775),f=r(42081),c=r(60308),s=r(38009),v=r(37300),p=r(10644);function h(e){return(0,p.Ay)("MuiSwitch",e)}const g=(0,v.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var b=r(65908);const y=["className","color","edge","size","sx"],m=(0,c.Ay)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t["edge".concat((0,d.A)(r.edge))],t["size".concat((0,d.A)(r.size))]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,["& .".concat(g.thumb)]:{width:16,height:16},["& .".concat(g.switchBase)]:{padding:4,["&.".concat(g.checked)]:{transform:"translateX(16px)"}}}}]}),M=(0,c.Ay)(f.A,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{["& .".concat(g.input)]:t.input},"default"!==r.color&&t["color".concat((0,d.A)(r.color))]]}})((e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:"".concat("light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]),transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),["&.".concat(g.checked)]:{transform:"translateX(20px)"},["&.".concat(g.disabled)]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:"".concat("light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600])},["&.".concat(g.checked," + .").concat(g.track)]:{opacity:.5},["&.".concat(g.disabled," + .").concat(g.track)]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:"".concat("light"===t.palette.mode?.12:.2)},["& .".concat(g.input)]:{left:"-100%",width:"300%"}}}),(e=>{let{theme:t}=e;return{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[r]=e;return{props:{color:r},style:{["&.".concat(g.checked)]:{color:(t.vars||t).palette[r].main,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.X4)(t.palette[r].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(g.disabled)]:{color:t.vars?t.vars.palette.Switch["".concat(r,"DisabledColor")]:"".concat("light"===t.palette.mode?(0,l.a)(t.palette[r].main,.62):(0,l.e$)(t.palette[r].main,.55))}},["&.".concat(g.checked," + .").concat(g.track)]:{backgroundColor:(t.vars||t).palette[r].main}}}}))]}})),O=(0,c.Ay)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}})),_=(0,c.Ay)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),P=u.forwardRef((function(e,t){const r=(0,s.b)({props:e,name:"MuiSwitch"}),{className:u,color:l="primary",edge:f=!1,size:c="medium",sx:v}=r,p=(0,a.A)(r,y),g=(0,n.A)({},r,{color:l,edge:f,size:c}),P=(e=>{const{classes:t,edge:r,size:a,color:u,checked:o,disabled:l}=e,f={root:["root",r&&"edge".concat((0,d.A)(r)),"size".concat((0,d.A)(a))],switchBase:["switchBase","color".concat((0,d.A)(u)),o&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=(0,i.A)(f,h,t);return(0,n.A)({},t,c)})(g),j=(0,b.jsx)(_,{className:P.thumb,ownerState:g});return(0,b.jsxs)(m,{className:(0,o.A)(P.root,u),sx:v,ownerState:g,children:[(0,b.jsx)(M,(0,n.A)({type:"checkbox",icon:j,checkedIcon:j,ref:t,ownerState:g},p,{classes:(0,n.A)({},P,{root:P.switchBase})})),(0,b.jsx)(O,{className:P.track,ownerState:g})]})}))},99983:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=u(r(14062)),n=u(r(9081));function u(e){return e&&e.__esModule?e:{default:e}}var o=function(e){if(!1===Array.isArray(e)||0===e.length)throw new Error("No points were given.");return e.reduce((function(e,t){var r=(0,a.default)(t),u=(0,n.default)(t);return{maxLat:Math.max(r,e.maxLat),minLat:Math.min(r,e.minLat),maxLng:Math.max(u,e.maxLng),minLng:Math.min(u,e.minLng)}}),{maxLat:-1/0,minLat:1/0,maxLng:-1/0,minLng:1/0})};t.default=o}}]); \ No newline at end of file diff --git a/build/static/js/1222.c450ab8b.chunk.js b/build/static/js/8952.e50de237.chunk.js similarity index 99% rename from build/static/js/1222.c450ab8b.chunk.js rename to build/static/js/8952.e50de237.chunk.js index 30b0eb9..a7440bd 100644 --- a/build/static/js/1222.c450ab8b.chunk.js +++ b/build/static/js/8952.e50de237.chunk.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[1222],{31222:(t,a,h)=>{h.d(a,{$G1:()=>L,$Nl:()=>Wt,AI8:()=>w,AYP:()=>ca,AdO:()=>Tt,Azs:()=>Mt,BJM:()=>E,Cd7:()=>et,CtR:()=>yt,DX0:()=>Z,DZH:()=>b,DwJ:()=>Ct,EZw:()=>J,E_E:()=>Lt,E_J:()=>D,EgJ:()=>K,F6S:()=>dt,G6c:()=>Ut,GQB:()=>ha,GdF:()=>ht,H4F:()=>W,HPi:()=>ot,HU2:()=>ta,Im6:()=>u,ItP:()=>C,Itr:()=>Xt,JFD:()=>Ht,JL6:()=>zt,Ki0:()=>n,LTk:()=>Dt,MiI:()=>rt,N3N:()=>q,NpB:()=>G,NtI:()=>pt,Rod:()=>k,S3Y:()=>Q,S75:()=>Qt,SeC:()=>qt,U3x:()=>B,Uhn:()=>g,VP9:()=>I,WVj:()=>X,WnU:()=>T,Wux:()=>A,X3k:()=>Ot,XT0:()=>Kt,XXh:()=>aa,Xbk:()=>wt,Xh5:()=>U,YBc:()=>H,YHz:()=>tt,Yvo:()=>at,Z2J:()=>r,Zs6:()=>Nt,_pN:()=>It,a1M:()=>ft,aEx:()=>jt,aSE:()=>nt,aVM:()=>st,auT:()=>Et,b6i:()=>z,bfP:()=>e,bmp:()=>R,bqQ:()=>d,bsz:()=>it,cAP:()=>Gt,dDC:()=>l,dKO:()=>O,g9_:()=>mt,gZ7:()=>V,giK:()=>_t,gl1:()=>Jt,gsJ:()=>_,gwi:()=>P,ihY:()=>Yt,imn:()=>x,ivF:()=>S,j1Q:()=>Bt,joZ:()=>At,k4P:()=>M,kci:()=>y,lB9:()=>Pt,m6K:()=>xt,mU9:()=>i,nZo:()=>m,o8z:()=>N,ohY:()=>c,pSF:()=>bt,pWE:()=>ct,pk7:()=>ut,q53:()=>Ft,q8i:()=>s,qiG:()=>va,qod:()=>Zt,rAP:()=>$,rgL:()=>j,tMO:()=>f,tX0:()=>o,tfO:()=>F,tjE:()=>Rt,tpc:()=>lt,u9F:()=>p,uDv:()=>Vt,vbW:()=>St,wZm:()=>Y,x2E:()=>$t,xI$:()=>vt,xVu:()=>kt,zPd:()=>gt});var v=h(99230);function c(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 18v1c0 1.1-.9 2-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h14c1.1 0 2 .9 2 2v1h-9a2 2 0 00-2 2v8a2 2 0 002 2h9zm-9-2h10V8H12v8zm4-2.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"}}]})(t)}function r(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}}]})(t)}function n(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z"}}]})(t)}function l(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z"}}]})(t)}function i(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}}]})(t)}function g(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"}}]})(t)}function z(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}}]})(t)}function d(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1c.61 0 1.1-.49 1.1-1.1s-.49-1.1-1.1-1.1zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm2.19 12.19L6 18l3.81-8.19L18 6l-3.81 8.19z"}}]})(t)}function e(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.1 19.37l1 1.74c-.96.44-2.01.73-3.1.84v-2.02c.74-.09 1.44-.28 2.1-.56zM4.07 13H2.05c.11 1.1.4 2.14.84 3.1l1.74-1c-.28-.66-.47-1.36-.56-2.1zM15.1 4.63l1-1.74c-.96-.44-2-.73-3.1-.84v2.02c.74.09 1.44.28 2.1.56zM19.93 11h2.02c-.11-1.1-.4-2.14-.84-3.1l-1.74 1c.28.66.47 1.36.56 2.1zM8.9 19.37l-1 1.74c.96.44 2.01.73 3.1.84v-2.02c-.74-.09-1.44-.28-2.1-.56zM11 4.07V2.05c-1.1.11-2.14.4-3.1.84l1 1.74c.66-.28 1.36-.47 2.1-.56zm7.36 3.1l1.74-1.01c-.63-.87-1.4-1.64-2.27-2.27l-1.01 1.74c.59.45 1.1.96 1.54 1.54zM4.63 8.9l-1.74-1c-.44.96-.73 2-.84 3.1h2.02c.09-.74.28-1.44.56-2.1zm15.3 4.1c-.09.74-.28 1.44-.56 2.1l1.74 1c.44-.96.73-2.01.84-3.1h-2.02zm-3.1 5.36l1.01 1.74c.87-.63 1.64-1.4 2.27-2.27l-1.74-1.01c-.45.59-.96 1.1-1.54 1.54zM7.17 5.64l-1-1.75c-.88.64-1.64 1.4-2.27 2.28l1.74 1.01a7.7 7.7 0 011.53-1.54zM5.64 16.83l-1.74 1c.63.87 1.4 1.64 2.27 2.27l1.01-1.74a7.7 7.7 0 01-1.54-1.53zM13 7h-2v5.41l4.29 4.29 1.41-1.41-3.7-3.7V7z"}}]})(t)}function o(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"}}]})(t)}function M(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11 7h2v2h-2V7zm0 4h2v6h-2v-6zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}}]})(t)}function H(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"}}]})(t)}function p(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M-618-3000H782V600H-618zM0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 6H10v6H8V4h6V0H6v6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2z"}}]})(t)}function u(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42A6.92 6.92 0 0119 12c0 3.87-3.13 7-7 7A6.995 6.995 0 017.58 6.58L6.17 5.17A8.932 8.932 0 003 12a9 9 0 0018 0c0-2.74-1.23-5.18-3.17-6.83z"}}]})(t)}function s(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2v20z"}}]})(t)}function f(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}}]})(t)}function V(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}}]})(t)}function m(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"}}]})(t)}function L(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"}}]})(t)}function k(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 18l2.29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6z"}}]})(t)}function x(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}}]})(t)}function w(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"}}]})(t)}function B(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}}]})(t)}function C(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}}]})(t)}function A(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}}]})(t)}function S(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z"}}]})(t)}function E(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20.38 8.57l-1.23 1.85a8 8 0 01-.22 7.58H5.07A8 8 0 0115.58 6.85l1.85-1.23A10 10 0 003.35 19a2 2 0 001.72 1h13.85a2 2 0 001.74-1 10 10 0 00-.27-10.44zm-9.79 6.84a2 2 0 002.83 0l5.66-8.49-8.49 5.66a2 2 0 000 2.83z"}}]})(t)}function b(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 22l-.01-6L14 12l3.99-4.01L18 2H6v6l4 4-4 3.99V22h12zM8 7.5V4h8v3.5l-4 4-4-4z"}}]})(t)}function P(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 010-5 2.5 2.5 0 010 5z"}}]})(t)}function J(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"}}]})(t)}function X(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"}}]})(t)}function Z(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 8c-1.45 0-2.26 1.44-1.93 2.51l-3.55 3.56c-.3-.09-.74-.09-1.04 0l-2.55-2.55C12.27 10.45 11.46 9 10 9c-1.45 0-2.27 1.44-1.93 2.52l-4.56 4.55C2.44 15.74 1 16.55 1 18c0 1.1.9 2 2 2 1.45 0 2.26-1.44 1.93-2.51l4.55-4.56c.3.09.74.09 1.04 0l2.55 2.55C12.73 16.55 13.54 18 15 18c1.45 0 2.27-1.44 1.93-2.52l3.56-3.55c1.07.33 2.51-.48 2.51-1.93 0-1.1-.9-2-2-2z"}},{tag:"path",attr:{d:"M15 9l.94-2.07L18 6l-2.06-.93L15 3l-.92 2.07L12 6l2.08.93zM3.5 11L4 9l2-.5L4 8l-.5-2L3 8l-2 .5L3 9z"}}]})(t)}function _(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2zm-5 12H9v-2h6v2zm5-7H4V4h16v3z"}}]})(t)}function F(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"}}]})(t)}function I(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}},{tag:"path",attr:{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}}]})(t)}function Y(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"}}]})(t)}function D(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"}}]})(t)}function N(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3A8.994 8.994 0 0013 3.06V1h-2v2.06A8.994 8.994 0 003.06 11H1v2h2.06A8.994 8.994 0 0011 20.94V23h2v-2.06A8.994 8.994 0 0020.94 13H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"}}]})(t)}function q(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58a.996.996 0 00-1.41 0 .996.996 0 000 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37a.996.996 0 00-1.41 0 .996.996 0 000 1.41l1.06 1.06c.39.39 1.03.39 1.41 0a.996.996 0 000-1.41l-1.06-1.06zm1.06-10.96a.996.996 0 000-1.41.996.996 0 00-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36a.996.996 0 000-1.41.996.996 0 00-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z"}}]})(t)}function G(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7-.25c.41 0 .75.34.75.75s-.34.75-.75.75-.75-.34-.75-.75.34-.75.75-.75zM9.1 17H7v-2.14l5.96-5.96 2.12 2.12L9.1 17zm7.75-7.73l-1.06 1.06-2.12-2.12 1.06-1.06c.2-.2.51-.2.71 0l1.41 1.41c.2.2.2.51 0 .71z"}}]})(t)}function R(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M12 13V9c0-.55-.45-1-1-1H7V6h5V4H9.5V3h-2v1H6c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h4v2H5v2h2.5v1h2v-1H11c.55 0 1-.45 1-1zM19.59 12.52l-5.66 5.65-2.83-2.83-1.41 1.42L13.93 21 21 13.93z"}}]})(t)}function U(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 4h3v16h-3zM5 14h3v6H5zm6-5h3v11h-3z"}}]})(t)}function W(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4z"}}]})(t)}function j(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 9h4v11H4zM16 13h4v7h-4zM10 4h4v16h-4z"}}]})(t)}function K(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z"}}]})(t)}function O(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M3 18h12v-2H3v2zM3 6v2h18V6H3zm0 7h18v-2H3v2z"}}]})(t)}function y(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20.5 10l.5-2h-4l1-4h-2l-1 4h-4l1-4h-2L9 8H5l-.5 2h4l-1 4h-4L3 16h4l-1 4h2l1-4h4l-1 4h2l1-4h4l.5-2h-4l1-4h4zm-7 4h-4l1-4h4l-1 4z"}}]})(t)}function Q(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}}]})(t)}function T(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}}]})(t)}function $(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"}}]})(t)}function tt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13.66 7c-.56-1.18-1.76-2-3.16-2H6V3h12v2h-3.26c.48.58.84 1.26 1.05 2H18v2h-2.02c-.25 2.8-2.61 5-5.48 5h-.73l6.73 7h-2.77L7 14v-2h3.5c1.76 0 3.22-1.3 3.46-3H6V7h7.66z"}}]})(t)}function at(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 000-1.41l-2.34-2.34a.996.996 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}}]})(t)}function ht(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19.5 3.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2v14H3v3c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V2l-1.5 1.5zM19 19c0 .55-.45 1-1 1s-1-.45-1-1v-3H8V5h11v14z"}},{tag:"path",attr:{d:"M9 7h6v2H9zM16 7h2v2h-2zM9 10h6v2H9zM16 10h2v2h-2z"}}]})(t)}function vt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z"}}]})(t)}function ct(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 1h6v2H9zM19.03 7.39l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42A8.962 8.962 0 0012 4a9 9 0 00-9 9c0 4.97 4.02 9 9 9a8.994 8.994 0 007.03-14.61zM13 14h-2V8h2v6z"}}]})(t)}function rt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"}}]})(t)}function nt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7l1.79 1.8 1.41-1.41-1.8-1.79-1.4 1.4zM20 10.5v2h3v-2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm-1 16.95h2V19.5h-2v2.95zm-7.45-3.91l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8z"}}]})(t)}function lt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 7h-5V4c0-1.1-.9-2-2-2h-2c-1.1 0-2 .9-2 2v3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zM9 12c.83 0 1.5.67 1.5 1.5S9.83 15 9 15s-1.5-.67-1.5-1.5S8.17 12 9 12zm3 6H6v-.75c0-1 2-1.5 3-1.5s3 .5 3 1.5V18zm1-9h-2V4h2v5zm5 7.5h-4V15h4v1.5zm0-3h-4V12h4v1.5z"}}]})(t)}function it(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM5 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5zm5.8-10l2.4-2.4.8.8c1.3 1.3 3 2.1 5.1 2.1V9c-1.5 0-2.7-.6-3.6-1.5l-1.9-1.9c-.5-.4-1-.6-1.6-.6s-1.1.2-1.4.6L7.8 8.4c-.4.4-.6.9-.6 1.4 0 .6.2 1.1.6 1.4L11 14v5h2v-6.2l-2.2-2.3zM19 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5z"}}]})(t)}function gt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 6h-2c0-2.76-2.24-5-5-5S7 3.24 7 6H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-7-3c1.66 0 3 1.34 3 3H9c0-1.66 1.34-3 3-3zm0 10c-2.76 0-5-2.24-5-5h2c0 1.66 1.34 3 3 3s3-1.34 3-3h2c0 2.76-2.24 5-5 5z"}}]})(t)}function zt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7z"}}]})(t)}function dt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm13.5-9l1.96 2.5H17V9.5h2.5zm-1.5 9c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"}}]})(t)}function et(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM15 19l-6-2.11V5l6 2.11V19z"}}]})(t)}function ot(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3A8.994 8.994 0 0013 3.06V1h-2v2.06A8.994 8.994 0 003.06 11H1v2h2.06A8.994 8.994 0 0011 20.94V23h2v-2.06A8.994 8.994 0 0020.94 13H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"}}]})(t)}function Mt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2a9 9 0 00-9 9c0 4.17 2.84 7.67 6.69 8.69L12 22l2.31-2.31C18.16 18.67 21 15.17 21 11a9 9 0 00-9-9zm0 2c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.3a7.2 7.2 0 01-6-3.22c.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08a7.2 7.2 0 01-6 3.22z"}}]})(t)}function Ht(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 010-5 2.5 2.5 0 010 5z"}}]})(t)}function pt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 9H9V2H7v7H5V2H3v7c0 2.12 1.66 3.84 3.75 3.97V22h2.5v-9.03C11.34 12.84 13 11.12 13 9V2h-2v7zm5-3v8h2.5v8H21V2c-2.76 0-5 2.24-5 4z"}}]})(t)}function ut(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 15.18V7c0-2.21-1.79-4-4-4s-4 1.79-4 4v10c0 1.1-.9 2-2 2s-2-.9-2-2V8.82C8.16 8.4 9 7.3 9 6c0-1.66-1.34-3-3-3S3 4.34 3 6c0 1.3.84 2.4 2 2.82V17c0 2.21 1.79 4 4 4s4-1.79 4-4V7c0-1.1.9-2 2-2s2 .9 2 2v8.18A2.996 2.996 0 0018 21c1.66 0 3-1.34 3-3 0-1.3-.84-2.4-2-2.82z"}}]})(t)}function st(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 11c-.18 0-.36.03-.53.05L17.41 9H20V6l-3.72 1.86L13.41 5H9v2h3.59l2 2H11l-4 2-2-2H0v2h4c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4l2 2h3l3.49-6.1 1.01 1.01c-.91.73-1.5 1.84-1.5 3.09 0 2.21 1.79 4 4 4s4-1.79 4-4-1.79-4-4-4zM4 17c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm16 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}}]})(t)}function ft(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}}]})(t)}function Vt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}}]})(t)}function mt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}}]})(t)}function Lt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}}]})(t)}function kt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}}]})(t)}function xt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{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"}}]})(t)}function wt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}}]})(t)}function Bt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}}]})(t)}function Ct(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 14V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zm-9-1c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm13-6v11c0 1.1-.9 2-2 2H4v-2h17V7h2z"}}]})(t)}function At(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17.65 6.35A7.958 7.958 0 0012 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0112 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}}]})(t)}function St(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9.31 17l2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19a2 2 0 002 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11z"}}]})(t)}function Et(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 10H7v2h10v-2zm2-7h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19a2 2 0 002 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zm-5-5H7v2h7v-2z"}}]})(t)}function bt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.01 7L16 3h-2v4h-4V3H8v4h-.01C7 6.99 6 7.99 6 8.99v5.49L9.5 18v3h5v-3l3.5-3.51v-5.5c0-1-1-2-1.99-1.99z"}}]})(t)}function Pt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M18.6 6.62c-1.44 0-2.8.56-3.77 1.53L12 10.66 10.48 12h.01L7.8 14.39c-.64.64-1.49.99-2.4.99-1.87 0-3.39-1.51-3.39-3.38S3.53 8.62 5.4 8.62c.91 0 1.76.35 2.44 1.03l1.13 1 1.51-1.34L9.22 8.2A5.37 5.37 0 005.4 6.62C2.42 6.62 0 9.04 0 12s2.42 5.38 5.4 5.38c1.44 0 2.8-.56 3.77-1.53l2.83-2.5.01.01L13.52 12h-.01l2.69-2.39c.64-.64 1.49-.99 2.4-.99 1.87 0 3.39 1.51 3.39 3.38s-1.52 3.38-3.39 3.38c-.9 0-1.76-.35-2.44-1.03l-1.14-1.01-1.51 1.34 1.27 1.12a5.386 5.386 0 003.82 1.57c2.98 0 5.4-2.41 5.4-5.38s-2.42-5.37-5.4-5.37z"}}]})(t)}function Jt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21.9 8.89l-1.05-4.37c-.22-.9-1-1.52-1.91-1.52H5.05c-.9 0-1.69.63-1.9 1.52L2.1 8.89c-.24 1.02-.02 2.06.62 2.88.08.11.19.19.28.29V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-6.94c.09-.09.2-.18.28-.28.64-.82.87-1.87.62-2.89zm-2.99-3.9l1.05 4.37c.1.42.01.84-.25 1.17-.14.18-.44.47-.94.47-.61 0-1.14-.49-1.21-1.14L16.98 5l1.93-.01zM13 5h1.96l.54 4.52c.05.39-.07.78-.33 1.07-.22.26-.54.41-.95.41-.67 0-1.22-.59-1.22-1.31V5zM8.49 9.52L9.04 5H11v4.69c0 .72-.55 1.31-1.29 1.31-.34 0-.65-.15-.89-.41a1.42 1.42 0 01-.33-1.07zm-4.45-.16L5.05 5h1.97l-.58 4.86c-.08.65-.6 1.14-1.21 1.14-.49 0-.8-.29-.93-.47-.27-.32-.36-.75-.26-1.17zM5 19v-6.03c.08.01.15.03.23.03.87 0 1.66-.36 2.24-.95.6.6 1.4.95 2.31.95.87 0 1.65-.36 2.23-.93.59.57 1.39.93 2.29.93.84 0 1.64-.35 2.24-.95.58.59 1.37.95 2.24.95.08 0 .15-.02.23-.03V19H5z"}}]})(t)}function Xt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 12.75c1.63 0 3.07.39 4.24.9 1.08.48 1.76 1.56 1.76 2.73V18H6v-1.61c0-1.18.68-2.26 1.76-2.73 1.17-.52 2.61-.91 4.24-.91zM4 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm1.13 1.1c-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58A2.01 2.01 0 000 16.43V18h4.5v-1.61c0-.83.23-1.61.63-2.29zM20 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm4 3.43c0-.81-.48-1.53-1.22-1.85A6.95 6.95 0 0020 14c-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29V18H24v-1.57zM12 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3z"}}]})(t)}function Zt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15 11V5l-3-3-3 3v2H3v14h18V11h-6zm-8 8H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V9h2v2zm6 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zm0-4h-2V5h2v2zm6 12h-2v-2h2v2zm0-4h-2v-2h2v2z"}}]})(t)}function _t(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11.1 12.08c-2.33-4.51-.5-8.48.53-10.07C6.27 2.2 1.98 6.59 1.98 12c0 .14.02.28.02.42.62-.27 1.29-.42 2-.42 1.66 0 3.18.83 4.1 2.15A4.01 4.01 0 0111 18c0 1.52-.87 2.83-2.12 3.51.98.32 2.03.5 3.11.5 3.5 0 6.58-1.8 8.37-4.52-2.36.23-6.98-.97-9.26-5.41z"}},{tag:"path",attr:{d:"M7 16h-.18C6.4 14.84 5.3 14 4 14c-1.66 0-3 1.34-3 3s1.34 3 3 3h3c1.1 0 2-.9 2-2s-.9-2-2-2z"}}]})(t)}function Ft(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2a8.445 8.445 0 013.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43a8.495 8.495 0 013.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]})(t)}function It(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"evenodd",d:"M16.67 13.13C18.04 14.06 19 15.32 19 17v3h4v-3c0-2.18-3.57-3.47-6.33-3.87z"}},{tag:"circle",attr:{cx:"9",cy:"8",r:"4",fillRule:"evenodd"}},{tag:"path",attr:{fillRule:"evenodd",d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4c-.47 0-.91.1-1.33.24a5.98 5.98 0 010 7.52c.42.14.86.24 1.33.24zM9 13c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"}}]})(t)}function Yt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8.65 5.82a3.999 3.999 0 115.53 5.53L8.65 5.82zM20 17.17c-.02-1.1-.63-2.11-1.61-2.62-.54-.28-1.13-.54-1.77-.76L20 17.17zm1.19 4.02L2.81 2.81 1.39 4.22l8.89 8.89c-1.81.23-3.39.79-4.67 1.45A2.97 2.97 0 004 17.22V20h13.17l2.61 2.61 1.41-1.42z"}}]})(t)}function Dt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{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"}}]})(t)}function Nt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"}}]})(t)}function qt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}}]})(t)}function Gt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"}}]})(t)}function Rt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M7 11h2v2H7v-2zm14-5v14c0 1.1-.9 2-2 2H5a2 2 0 01-2-2l.01-14c0-1.1.88-2 1.99-2h1V2h2v2h8V2h2v2h1c1.1 0 2 .9 2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"}}]})(t)}function Ut(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 12c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm1.65 7.35L16.5 17.2V14h1v2.79l1.85 1.85-.7.71zM18 3h-3.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H6c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h6.11a6.743 6.743 0 01-1.42-2H6V5h2v3h8V5h2v5.08c.71.1 1.38.31 2 .6V5c0-1.1-.9-2-2-2zm-6 2c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}}]})(t)}function Wt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM5 18c.2-.63 2.57-1.68 4.96-1.94l2.04-2a9.34 9.34 0 00-1-.06c-2.67 0-8 1.34-8 4v2h9l-2-2H5zm15.6-5.5l-5.13 5.17-2.07-2.08L12 17l3.47 3.5L22 13.91z"}}]})(t)}function jt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2zm-1 18H5V9h14v11zm1-13H4V4h16v3z"}},{tag:"path",attr:{d:"M9 12h6v2H9z"}}]})(t)}function Kt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"}}]})(t)}function Ot(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4z"}}]})(t)}function yt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19.35 10.04A7.49 7.49 0 0012 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 000 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95A5.469 5.469 0 0112 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11A2.98 2.98 0 0122 15c0 1.65-1.35 3-3 3zM8 13h2.55v3h2.9v-3H16l-4-4z"}}]})(t)}function Qt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13.66 7c-.56-1.18-1.76-2-3.16-2H6V3h12v2h-3.26c.48.58.84 1.26 1.05 2H18v2h-2.02c-.25 2.8-2.61 5-5.48 5h-.73l6.73 7h-2.77L7 14v-2h3.5c1.76 0 3.22-1.3 3.46-3H6V7h7.66z"}}]})(t)}function Tt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19.5 3.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2v14H3v3c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V2l-1.5 1.5zM15 20H6c-.55 0-1-.45-1-1v-1h10v2zm4-1c0 .55-.45 1-1 1s-1-.45-1-1v-3H8V5h11v14z"}},{tag:"path",attr:{d:"M9 7h6v2H9zM16 7h2v2h-2zM9 10h6v2H9zM16 10h2v2h-2z"}}]})(t)}function $t(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42zM13 20.01L4 11V4h7v-.01l9 9-7 7.02z"}},{tag:"circle",attr:{cx:"6.5",cy:"6.5",r:"1.5"}}]})(t)}function ta(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zm-.5 1.5l1.96 2.5H17V9.5h2.5zM6 18c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm2.22-3c-.55-.61-1.33-1-2.22-1s-1.67.39-2.22 1H3V6h12v9H8.22zM18 18c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}}]})(t)}function aa(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm6-1.8C18 6.57 15.35 4 12 4s-6 2.57-6 6.2c0 2.34 1.95 5.44 6 9.14 4.05-3.7 6-6.8 6-9.14zM12 2c4.2 0 8 3.22 8 8.2 0 3.32-2.67 7.25-8 11.8-5.33-4.55-8-8.48-8-11.8C4 5.22 7.8 2 12 2z"}}]})(t)}function ha(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4.17 11H4h.17m9.24-6H9v2h3.59l2 2H11l-4 2-2-2H0v2h4c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4l2 2h3l3.49-6.1 1.01 1.01c-.91.73-1.5 1.84-1.5 3.09 0 2.21 1.79 4 4 4s4-1.79 4-4-1.79-4-4-4c-.18 0-.36.03-.53.05L17.41 9H20V6l-3.72 1.86L13.41 5zM20 17c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM4 17c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}}]})(t)}function va(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z",opacity:".87"}},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}}]})(t)}function ca(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm1.13 1.1c-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58A2.01 2.01 0 000 16.43V18h4.5v-1.61c0-.83.23-1.61.63-2.29zM20 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm4 3.43c0-.81-.48-1.53-1.22-1.85A6.95 6.95 0 0020 14c-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29V18H24v-1.57zm-7.76-2.78c-1.17-.52-2.61-.9-4.24-.9-1.63 0-3.07.39-4.24.9A2.988 2.988 0 006 16.39V18h12v-1.61c0-1.18-.68-2.26-1.76-2.74zM8.07 16c.09-.23.13-.39.91-.69.97-.38 1.99-.56 3.02-.56s2.05.18 3.02.56c.77.3.81.46.91.69H8.07zM12 8c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m0-2c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}}]})(t)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[8952],{48952:(t,a,h)=>{h.d(a,{$G1:()=>L,$Nl:()=>Wt,AI8:()=>w,AYP:()=>ca,AdO:()=>Tt,Azs:()=>Mt,BJM:()=>E,Cd7:()=>et,CtR:()=>yt,DX0:()=>Z,DZH:()=>b,DwJ:()=>Ct,EZw:()=>J,E_E:()=>Lt,E_J:()=>D,EgJ:()=>K,F6S:()=>dt,G6c:()=>Ut,GQB:()=>ha,GdF:()=>ht,H4F:()=>W,HPi:()=>ot,HU2:()=>ta,Im6:()=>u,ItP:()=>C,Itr:()=>Xt,JFD:()=>Ht,JL6:()=>zt,Ki0:()=>n,LTk:()=>Dt,MiI:()=>rt,N3N:()=>q,NpB:()=>G,NtI:()=>pt,Rod:()=>k,S3Y:()=>Q,S75:()=>Qt,SeC:()=>qt,U3x:()=>B,Uhn:()=>g,VP9:()=>I,WVj:()=>X,WnU:()=>T,Wux:()=>A,X3k:()=>Ot,XT0:()=>Kt,XXh:()=>aa,Xbk:()=>wt,Xh5:()=>U,YBc:()=>H,YHz:()=>tt,Yvo:()=>at,Z2J:()=>r,Zs6:()=>Nt,_pN:()=>It,a1M:()=>ft,aEx:()=>jt,aSE:()=>nt,aVM:()=>st,auT:()=>Et,b6i:()=>z,bfP:()=>e,bmp:()=>R,bqQ:()=>d,bsz:()=>it,cAP:()=>Gt,dDC:()=>l,dKO:()=>O,g9_:()=>mt,gZ7:()=>V,giK:()=>_t,gl1:()=>Jt,gsJ:()=>_,gwi:()=>P,ihY:()=>Yt,imn:()=>x,ivF:()=>S,j1Q:()=>Bt,joZ:()=>At,k4P:()=>M,kci:()=>y,lB9:()=>Pt,m6K:()=>xt,mU9:()=>i,nZo:()=>m,o8z:()=>N,ohY:()=>c,pSF:()=>bt,pWE:()=>ct,pk7:()=>ut,q53:()=>Ft,q8i:()=>s,qiG:()=>va,qod:()=>Zt,rAP:()=>$,rgL:()=>j,tMO:()=>f,tX0:()=>o,tfO:()=>F,tjE:()=>Rt,tpc:()=>lt,u9F:()=>p,uDv:()=>Vt,vbW:()=>St,wZm:()=>Y,x2E:()=>$t,xI$:()=>vt,xVu:()=>kt,zPd:()=>gt});var v=h(21583);function c(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 18v1c0 1.1-.9 2-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h14c1.1 0 2 .9 2 2v1h-9a2 2 0 00-2 2v8a2 2 0 002 2h9zm-9-2h10V8H12v8zm4-2.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"}}]})(t)}function r(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}}]})(t)}function n(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z"}}]})(t)}function l(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z"}}]})(t)}function i(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}}]})(t)}function g(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"}}]})(t)}function z(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}}]})(t)}function d(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1c.61 0 1.1-.49 1.1-1.1s-.49-1.1-1.1-1.1zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm2.19 12.19L6 18l3.81-8.19L18 6l-3.81 8.19z"}}]})(t)}function e(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.1 19.37l1 1.74c-.96.44-2.01.73-3.1.84v-2.02c.74-.09 1.44-.28 2.1-.56zM4.07 13H2.05c.11 1.1.4 2.14.84 3.1l1.74-1c-.28-.66-.47-1.36-.56-2.1zM15.1 4.63l1-1.74c-.96-.44-2-.73-3.1-.84v2.02c.74.09 1.44.28 2.1.56zM19.93 11h2.02c-.11-1.1-.4-2.14-.84-3.1l-1.74 1c.28.66.47 1.36.56 2.1zM8.9 19.37l-1 1.74c.96.44 2.01.73 3.1.84v-2.02c-.74-.09-1.44-.28-2.1-.56zM11 4.07V2.05c-1.1.11-2.14.4-3.1.84l1 1.74c.66-.28 1.36-.47 2.1-.56zm7.36 3.1l1.74-1.01c-.63-.87-1.4-1.64-2.27-2.27l-1.01 1.74c.59.45 1.1.96 1.54 1.54zM4.63 8.9l-1.74-1c-.44.96-.73 2-.84 3.1h2.02c.09-.74.28-1.44.56-2.1zm15.3 4.1c-.09.74-.28 1.44-.56 2.1l1.74 1c.44-.96.73-2.01.84-3.1h-2.02zm-3.1 5.36l1.01 1.74c.87-.63 1.64-1.4 2.27-2.27l-1.74-1.01c-.45.59-.96 1.1-1.54 1.54zM7.17 5.64l-1-1.75c-.88.64-1.64 1.4-2.27 2.28l1.74 1.01a7.7 7.7 0 011.53-1.54zM5.64 16.83l-1.74 1c.63.87 1.4 1.64 2.27 2.27l1.01-1.74a7.7 7.7 0 01-1.54-1.53zM13 7h-2v5.41l4.29 4.29 1.41-1.41-3.7-3.7V7z"}}]})(t)}function o(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"}}]})(t)}function M(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11 7h2v2h-2V7zm0 4h2v6h-2v-6zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}}]})(t)}function H(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"}}]})(t)}function p(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M-618-3000H782V600H-618zM0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 6H10v6H8V4h6V0H6v6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2z"}}]})(t)}function u(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42A6.92 6.92 0 0119 12c0 3.87-3.13 7-7 7A6.995 6.995 0 017.58 6.58L6.17 5.17A8.932 8.932 0 003 12a9 9 0 0018 0c0-2.74-1.23-5.18-3.17-6.83z"}}]})(t)}function s(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2v20z"}}]})(t)}function f(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}}]})(t)}function V(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}}]})(t)}function m(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"}}]})(t)}function L(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"}}]})(t)}function k(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 18l2.29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6z"}}]})(t)}function x(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}}]})(t)}function w(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"}}]})(t)}function B(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}}]})(t)}function C(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}}]})(t)}function A(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}}]})(t)}function S(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z"}}]})(t)}function E(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20.38 8.57l-1.23 1.85a8 8 0 01-.22 7.58H5.07A8 8 0 0115.58 6.85l1.85-1.23A10 10 0 003.35 19a2 2 0 001.72 1h13.85a2 2 0 001.74-1 10 10 0 00-.27-10.44zm-9.79 6.84a2 2 0 002.83 0l5.66-8.49-8.49 5.66a2 2 0 000 2.83z"}}]})(t)}function b(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 22l-.01-6L14 12l3.99-4.01L18 2H6v6l4 4-4 3.99V22h12zM8 7.5V4h8v3.5l-4 4-4-4z"}}]})(t)}function P(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 010-5 2.5 2.5 0 010 5z"}}]})(t)}function J(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"}}]})(t)}function X(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"}}]})(t)}function Z(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 8c-1.45 0-2.26 1.44-1.93 2.51l-3.55 3.56c-.3-.09-.74-.09-1.04 0l-2.55-2.55C12.27 10.45 11.46 9 10 9c-1.45 0-2.27 1.44-1.93 2.52l-4.56 4.55C2.44 15.74 1 16.55 1 18c0 1.1.9 2 2 2 1.45 0 2.26-1.44 1.93-2.51l4.55-4.56c.3.09.74.09 1.04 0l2.55 2.55C12.73 16.55 13.54 18 15 18c1.45 0 2.27-1.44 1.93-2.52l3.56-3.55c1.07.33 2.51-.48 2.51-1.93 0-1.1-.9-2-2-2z"}},{tag:"path",attr:{d:"M15 9l.94-2.07L18 6l-2.06-.93L15 3l-.92 2.07L12 6l2.08.93zM3.5 11L4 9l2-.5L4 8l-.5-2L3 8l-2 .5L3 9z"}}]})(t)}function _(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2zm-5 12H9v-2h6v2zm5-7H4V4h16v3z"}}]})(t)}function F(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"}}]})(t)}function I(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}},{tag:"path",attr:{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}}]})(t)}function Y(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"}}]})(t)}function D(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"}}]})(t)}function N(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3A8.994 8.994 0 0013 3.06V1h-2v2.06A8.994 8.994 0 003.06 11H1v2h2.06A8.994 8.994 0 0011 20.94V23h2v-2.06A8.994 8.994 0 0020.94 13H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"}}]})(t)}function q(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58a.996.996 0 00-1.41 0 .996.996 0 000 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37a.996.996 0 00-1.41 0 .996.996 0 000 1.41l1.06 1.06c.39.39 1.03.39 1.41 0a.996.996 0 000-1.41l-1.06-1.06zm1.06-10.96a.996.996 0 000-1.41.996.996 0 00-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36a.996.996 0 000-1.41.996.996 0 00-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z"}}]})(t)}function G(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7-.25c.41 0 .75.34.75.75s-.34.75-.75.75-.75-.34-.75-.75.34-.75.75-.75zM9.1 17H7v-2.14l5.96-5.96 2.12 2.12L9.1 17zm7.75-7.73l-1.06 1.06-2.12-2.12 1.06-1.06c.2-.2.51-.2.71 0l1.41 1.41c.2.2.2.51 0 .71z"}}]})(t)}function R(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M12 13V9c0-.55-.45-1-1-1H7V6h5V4H9.5V3h-2v1H6c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h4v2H5v2h2.5v1h2v-1H11c.55 0 1-.45 1-1zM19.59 12.52l-5.66 5.65-2.83-2.83-1.41 1.42L13.93 21 21 13.93z"}}]})(t)}function U(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 4h3v16h-3zM5 14h3v6H5zm6-5h3v11h-3z"}}]})(t)}function W(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4z"}}]})(t)}function j(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 9h4v11H4zM16 13h4v7h-4zM10 4h4v16h-4z"}}]})(t)}function K(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z"}}]})(t)}function O(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M3 18h12v-2H3v2zM3 6v2h18V6H3zm0 7h18v-2H3v2z"}}]})(t)}function y(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20.5 10l.5-2h-4l1-4h-2l-1 4h-4l1-4h-2L9 8H5l-.5 2h4l-1 4h-4L3 16h4l-1 4h2l1-4h4l-1 4h2l1-4h4l.5-2h-4l1-4h4zm-7 4h-4l1-4h4l-1 4z"}}]})(t)}function Q(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}}]})(t)}function T(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}}]})(t)}function $(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"}}]})(t)}function tt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13.66 7c-.56-1.18-1.76-2-3.16-2H6V3h12v2h-3.26c.48.58.84 1.26 1.05 2H18v2h-2.02c-.25 2.8-2.61 5-5.48 5h-.73l6.73 7h-2.77L7 14v-2h3.5c1.76 0 3.22-1.3 3.46-3H6V7h7.66z"}}]})(t)}function at(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 000-1.41l-2.34-2.34a.996.996 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}}]})(t)}function ht(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19.5 3.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2v14H3v3c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V2l-1.5 1.5zM19 19c0 .55-.45 1-1 1s-1-.45-1-1v-3H8V5h11v14z"}},{tag:"path",attr:{d:"M9 7h6v2H9zM16 7h2v2h-2zM9 10h6v2H9zM16 10h2v2h-2z"}}]})(t)}function vt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z"}}]})(t)}function ct(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 1h6v2H9zM19.03 7.39l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42A8.962 8.962 0 0012 4a9 9 0 00-9 9c0 4.97 4.02 9 9 9a8.994 8.994 0 007.03-14.61zM13 14h-2V8h2v6z"}}]})(t)}function rt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"}}]})(t)}function nt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7l1.79 1.8 1.41-1.41-1.8-1.79-1.4 1.4zM20 10.5v2h3v-2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm-1 16.95h2V19.5h-2v2.95zm-7.45-3.91l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8z"}}]})(t)}function lt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 7h-5V4c0-1.1-.9-2-2-2h-2c-1.1 0-2 .9-2 2v3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zM9 12c.83 0 1.5.67 1.5 1.5S9.83 15 9 15s-1.5-.67-1.5-1.5S8.17 12 9 12zm3 6H6v-.75c0-1 2-1.5 3-1.5s3 .5 3 1.5V18zm1-9h-2V4h2v5zm5 7.5h-4V15h4v1.5zm0-3h-4V12h4v1.5z"}}]})(t)}function it(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM5 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5zm5.8-10l2.4-2.4.8.8c1.3 1.3 3 2.1 5.1 2.1V9c-1.5 0-2.7-.6-3.6-1.5l-1.9-1.9c-.5-.4-1-.6-1.6-.6s-1.1.2-1.4.6L7.8 8.4c-.4.4-.6.9-.6 1.4 0 .6.2 1.1.6 1.4L11 14v5h2v-6.2l-2.2-2.3zM19 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5z"}}]})(t)}function gt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 6h-2c0-2.76-2.24-5-5-5S7 3.24 7 6H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-7-3c1.66 0 3 1.34 3 3H9c0-1.66 1.34-3 3-3zm0 10c-2.76 0-5-2.24-5-5h2c0 1.66 1.34 3 3 3s3-1.34 3-3h2c0 2.76-2.24 5-5 5z"}}]})(t)}function zt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7z"}}]})(t)}function dt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm13.5-9l1.96 2.5H17V9.5h2.5zm-1.5 9c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"}}]})(t)}function et(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM15 19l-6-2.11V5l6 2.11V19z"}}]})(t)}function ot(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3A8.994 8.994 0 0013 3.06V1h-2v2.06A8.994 8.994 0 003.06 11H1v2h2.06A8.994 8.994 0 0011 20.94V23h2v-2.06A8.994 8.994 0 0020.94 13H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"}}]})(t)}function Mt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2a9 9 0 00-9 9c0 4.17 2.84 7.67 6.69 8.69L12 22l2.31-2.31C18.16 18.67 21 15.17 21 11a9 9 0 00-9-9zm0 2c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.3a7.2 7.2 0 01-6-3.22c.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08a7.2 7.2 0 01-6 3.22z"}}]})(t)}function Ht(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 010-5 2.5 2.5 0 010 5z"}}]})(t)}function pt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 9H9V2H7v7H5V2H3v7c0 2.12 1.66 3.84 3.75 3.97V22h2.5v-9.03C11.34 12.84 13 11.12 13 9V2h-2v7zm5-3v8h2.5v8H21V2c-2.76 0-5 2.24-5 4z"}}]})(t)}function ut(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 15.18V7c0-2.21-1.79-4-4-4s-4 1.79-4 4v10c0 1.1-.9 2-2 2s-2-.9-2-2V8.82C8.16 8.4 9 7.3 9 6c0-1.66-1.34-3-3-3S3 4.34 3 6c0 1.3.84 2.4 2 2.82V17c0 2.21 1.79 4 4 4s4-1.79 4-4V7c0-1.1.9-2 2-2s2 .9 2 2v8.18A2.996 2.996 0 0018 21c1.66 0 3-1.34 3-3 0-1.3-.84-2.4-2-2.82z"}}]})(t)}function st(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 11c-.18 0-.36.03-.53.05L17.41 9H20V6l-3.72 1.86L13.41 5H9v2h3.59l2 2H11l-4 2-2-2H0v2h4c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4l2 2h3l3.49-6.1 1.01 1.01c-.91.73-1.5 1.84-1.5 3.09 0 2.21 1.79 4 4 4s4-1.79 4-4-1.79-4-4-4zM4 17c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm16 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}}]})(t)}function ft(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}}]})(t)}function Vt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}}]})(t)}function mt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}}]})(t)}function Lt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}}]})(t)}function kt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}}]})(t)}function xt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{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"}}]})(t)}function wt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}}]})(t)}function Bt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}}]})(t)}function Ct(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 14V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zm-9-1c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm13-6v11c0 1.1-.9 2-2 2H4v-2h17V7h2z"}}]})(t)}function At(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17.65 6.35A7.958 7.958 0 0012 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0112 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}}]})(t)}function St(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9.31 17l2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19a2 2 0 002 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11z"}}]})(t)}function Et(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 10H7v2h10v-2zm2-7h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19a2 2 0 002 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zm-5-5H7v2h7v-2z"}}]})(t)}function bt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.01 7L16 3h-2v4h-4V3H8v4h-.01C7 6.99 6 7.99 6 8.99v5.49L9.5 18v3h5v-3l3.5-3.51v-5.5c0-1-1-2-1.99-1.99z"}}]})(t)}function Pt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M18.6 6.62c-1.44 0-2.8.56-3.77 1.53L12 10.66 10.48 12h.01L7.8 14.39c-.64.64-1.49.99-2.4.99-1.87 0-3.39-1.51-3.39-3.38S3.53 8.62 5.4 8.62c.91 0 1.76.35 2.44 1.03l1.13 1 1.51-1.34L9.22 8.2A5.37 5.37 0 005.4 6.62C2.42 6.62 0 9.04 0 12s2.42 5.38 5.4 5.38c1.44 0 2.8-.56 3.77-1.53l2.83-2.5.01.01L13.52 12h-.01l2.69-2.39c.64-.64 1.49-.99 2.4-.99 1.87 0 3.39 1.51 3.39 3.38s-1.52 3.38-3.39 3.38c-.9 0-1.76-.35-2.44-1.03l-1.14-1.01-1.51 1.34 1.27 1.12a5.386 5.386 0 003.82 1.57c2.98 0 5.4-2.41 5.4-5.38s-2.42-5.37-5.4-5.37z"}}]})(t)}function Jt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21.9 8.89l-1.05-4.37c-.22-.9-1-1.52-1.91-1.52H5.05c-.9 0-1.69.63-1.9 1.52L2.1 8.89c-.24 1.02-.02 2.06.62 2.88.08.11.19.19.28.29V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-6.94c.09-.09.2-.18.28-.28.64-.82.87-1.87.62-2.89zm-2.99-3.9l1.05 4.37c.1.42.01.84-.25 1.17-.14.18-.44.47-.94.47-.61 0-1.14-.49-1.21-1.14L16.98 5l1.93-.01zM13 5h1.96l.54 4.52c.05.39-.07.78-.33 1.07-.22.26-.54.41-.95.41-.67 0-1.22-.59-1.22-1.31V5zM8.49 9.52L9.04 5H11v4.69c0 .72-.55 1.31-1.29 1.31-.34 0-.65-.15-.89-.41a1.42 1.42 0 01-.33-1.07zm-4.45-.16L5.05 5h1.97l-.58 4.86c-.08.65-.6 1.14-1.21 1.14-.49 0-.8-.29-.93-.47-.27-.32-.36-.75-.26-1.17zM5 19v-6.03c.08.01.15.03.23.03.87 0 1.66-.36 2.24-.95.6.6 1.4.95 2.31.95.87 0 1.65-.36 2.23-.93.59.57 1.39.93 2.29.93.84 0 1.64-.35 2.24-.95.58.59 1.37.95 2.24.95.08 0 .15-.02.23-.03V19H5z"}}]})(t)}function Xt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 12.75c1.63 0 3.07.39 4.24.9 1.08.48 1.76 1.56 1.76 2.73V18H6v-1.61c0-1.18.68-2.26 1.76-2.73 1.17-.52 2.61-.91 4.24-.91zM4 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm1.13 1.1c-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58A2.01 2.01 0 000 16.43V18h4.5v-1.61c0-.83.23-1.61.63-2.29zM20 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm4 3.43c0-.81-.48-1.53-1.22-1.85A6.95 6.95 0 0020 14c-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29V18H24v-1.57zM12 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3z"}}]})(t)}function Zt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15 11V5l-3-3-3 3v2H3v14h18V11h-6zm-8 8H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V9h2v2zm6 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zm0-4h-2V5h2v2zm6 12h-2v-2h2v2zm0-4h-2v-2h2v2z"}}]})(t)}function _t(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11.1 12.08c-2.33-4.51-.5-8.48.53-10.07C6.27 2.2 1.98 6.59 1.98 12c0 .14.02.28.02.42.62-.27 1.29-.42 2-.42 1.66 0 3.18.83 4.1 2.15A4.01 4.01 0 0111 18c0 1.52-.87 2.83-2.12 3.51.98.32 2.03.5 3.11.5 3.5 0 6.58-1.8 8.37-4.52-2.36.23-6.98-.97-9.26-5.41z"}},{tag:"path",attr:{d:"M7 16h-.18C6.4 14.84 5.3 14 4 14c-1.66 0-3 1.34-3 3s1.34 3 3 3h3c1.1 0 2-.9 2-2s-.9-2-2-2z"}}]})(t)}function Ft(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2a8.445 8.445 0 013.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43a8.495 8.495 0 013.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]})(t)}function It(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"evenodd",d:"M16.67 13.13C18.04 14.06 19 15.32 19 17v3h4v-3c0-2.18-3.57-3.47-6.33-3.87z"}},{tag:"circle",attr:{cx:"9",cy:"8",r:"4",fillRule:"evenodd"}},{tag:"path",attr:{fillRule:"evenodd",d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4c-.47 0-.91.1-1.33.24a5.98 5.98 0 010 7.52c.42.14.86.24 1.33.24zM9 13c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"}}]})(t)}function Yt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8.65 5.82a3.999 3.999 0 115.53 5.53L8.65 5.82zM20 17.17c-.02-1.1-.63-2.11-1.61-2.62-.54-.28-1.13-.54-1.77-.76L20 17.17zm1.19 4.02L2.81 2.81 1.39 4.22l8.89 8.89c-1.81.23-3.39.79-4.67 1.45A2.97 2.97 0 004 17.22V20h13.17l2.61 2.61 1.41-1.42z"}}]})(t)}function Dt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{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"}}]})(t)}function Nt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"}}]})(t)}function qt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}}]})(t)}function Gt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"}}]})(t)}function Rt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M7 11h2v2H7v-2zm14-5v14c0 1.1-.9 2-2 2H5a2 2 0 01-2-2l.01-14c0-1.1.88-2 1.99-2h1V2h2v2h8V2h2v2h1c1.1 0 2 .9 2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"}}]})(t)}function Ut(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 12c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm1.65 7.35L16.5 17.2V14h1v2.79l1.85 1.85-.7.71zM18 3h-3.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H6c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h6.11a6.743 6.743 0 01-1.42-2H6V5h2v3h8V5h2v5.08c.71.1 1.38.31 2 .6V5c0-1.1-.9-2-2-2zm-6 2c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}}]})(t)}function Wt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM5 18c.2-.63 2.57-1.68 4.96-1.94l2.04-2a9.34 9.34 0 00-1-.06c-2.67 0-8 1.34-8 4v2h9l-2-2H5zm15.6-5.5l-5.13 5.17-2.07-2.08L12 17l3.47 3.5L22 13.91z"}}]})(t)}function jt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2zm-1 18H5V9h14v11zm1-13H4V4h16v3z"}},{tag:"path",attr:{d:"M9 12h6v2H9z"}}]})(t)}function Kt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"}}]})(t)}function Ot(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4z"}}]})(t)}function yt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19.35 10.04A7.49 7.49 0 0012 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 000 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95A5.469 5.469 0 0112 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11A2.98 2.98 0 0122 15c0 1.65-1.35 3-3 3zM8 13h2.55v3h2.9v-3H16l-4-4z"}}]})(t)}function Qt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13.66 7c-.56-1.18-1.76-2-3.16-2H6V3h12v2h-3.26c.48.58.84 1.26 1.05 2H18v2h-2.02c-.25 2.8-2.61 5-5.48 5h-.73l6.73 7h-2.77L7 14v-2h3.5c1.76 0 3.22-1.3 3.46-3H6V7h7.66z"}}]})(t)}function Tt(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19.5 3.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2v14H3v3c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V2l-1.5 1.5zM15 20H6c-.55 0-1-.45-1-1v-1h10v2zm4-1c0 .55-.45 1-1 1s-1-.45-1-1v-3H8V5h11v14z"}},{tag:"path",attr:{d:"M9 7h6v2H9zM16 7h2v2h-2zM9 10h6v2H9zM16 10h2v2h-2z"}}]})(t)}function $t(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42zM13 20.01L4 11V4h7v-.01l9 9-7 7.02z"}},{tag:"circle",attr:{cx:"6.5",cy:"6.5",r:"1.5"}}]})(t)}function ta(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zm-.5 1.5l1.96 2.5H17V9.5h2.5zM6 18c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm2.22-3c-.55-.61-1.33-1-2.22-1s-1.67.39-2.22 1H3V6h12v9H8.22zM18 18c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}}]})(t)}function aa(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm6-1.8C18 6.57 15.35 4 12 4s-6 2.57-6 6.2c0 2.34 1.95 5.44 6 9.14 4.05-3.7 6-6.8 6-9.14zM12 2c4.2 0 8 3.22 8 8.2 0 3.32-2.67 7.25-8 11.8-5.33-4.55-8-8.48-8-11.8C4 5.22 7.8 2 12 2z"}}]})(t)}function ha(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4.17 11H4h.17m9.24-6H9v2h3.59l2 2H11l-4 2-2-2H0v2h4c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4l2 2h3l3.49-6.1 1.01 1.01c-.91.73-1.5 1.84-1.5 3.09 0 2.21 1.79 4 4 4s4-1.79 4-4-1.79-4-4-4c-.18 0-.36.03-.53.05L17.41 9H20V6l-3.72 1.86L13.41 5zM20 17c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM4 17c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}}]})(t)}function va(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z",opacity:".87"}},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}}]})(t)}function ca(t){return(0,v.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm1.13 1.1c-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58A2.01 2.01 0 000 16.43V18h4.5v-1.61c0-.83.23-1.61.63-2.29zM20 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm4 3.43c0-.81-.48-1.53-1.22-1.85A6.95 6.95 0 0020 14c-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29V18H24v-1.57zm-7.76-2.78c-1.17-.52-2.61-.9-4.24-.9-1.63 0-3.07.39-4.24.9A2.988 2.988 0 006 16.39V18h12v-1.61c0-1.18-.68-2.26-1.76-2.74zM8.07 16c.09-.23.13-.39.91-.69.97-.38 1.99-.56 3.02-.56s2.05.18 3.02.56c.77.3.81.46.91.69H8.07zM12 8c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m0-2c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}}]})(t)}}}]); \ No newline at end of file diff --git a/build/static/js/8954.437e3303.chunk.js b/build/static/js/8954.437e3303.chunk.js new file mode 100644 index 0000000..5b34b5a --- /dev/null +++ b/build/static/js/8954.437e3303.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[8954],{62217:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAAA+CAYAAABzwahEAAAPnUlEQVR4AdVae3AU9R3/7d4jdyGQQKAhECBAJBSmEAtFSQUjqPgAHGlhRm0lDkWY6Tg+O9qiErR26h8WR8ZWqTMN1ur4qMpDrTyjtDwDJloeCYiBvAgkaZ53l7vb3X4/v9vfZS/Zu9uFwLSfmb3d293f7u/z+z5/399K7CphdW5JrupgBZosZ0ialmu8pklSjUOTamRJbvvjqTUV7CpAYlcIj+SWZHQ55WJZlm7UNK2IXpRhpZ3GWJskSWXUZrPD4Sp77eSva9gVwIATXz35+SJNYWs1phWxAYDEpDKVaZv+fOrZUjaAGDDiK695rpgetpYOc82upw72sMycdJbz/SzmHeKl/ynRay31bbS1s7rjTczXGYj3ihrShnUDNQCXTXzlNS8UyExdbybhSdeNYwXz81nBzflE2pKms7oT51ntiSa276NKVn3wrNktNcGQelNpTUkNuwxcFvFV+S88rKnKy8ZzkOz84uvYvOJZ/PhyAE3Y/+HXbN+HFVwjjJAlR8lr1WueY9wt2MclEYfj8rnkj+nwRnHOLuGWhnbmpfuMKh/3Xn0Atm74IuY8OcGPFYk99kbVM98xm7BFnDyttHLyb3MlRdsjSWycOA+VLv79YpY5Ork6V5efY59s/JJVHznH/+dMymLz7v0Rm71oWtK2GIDSJ7ew6kMxJlCjytI8u+Qddm4+93bPBIfqiiG96KG5RPouljokuZT3b/2avf7EB6ylsZ1dM2MsG5OfxU7RAFSWVbMAObUphRMTtsc7CpdMh6c3kqe8gN117Yh5W4627GljFmGZ+C/ynx/flzSkDPW2Aqj2+lV/Y5mj0tljG3/GFhQXspkLpnBJVx85yyq/OGWJPAANgzkd2/utOMXJzxp965vlF3YFrPRHZtYgSZq6vi/p2TT6VrF+1Vt8/yiRhnoLiIHAftc7h0kDzlp6HgYcfTAgVwmEPmIWzTeZxPEQaeWkkhJJk1eJk8vWLGBz75nBrAIqfmDrN2zhqjlsetGkftddKU6WQ2qPe6AZVuwdGPP9kWw4+ZWKnVXiVO6M4UXtR1rKDiZrm4g4J70871cTnMzzd3ESNn3bgz9mdgC7hmoufeKWuB4/c1QGV3nYfP7Msfy/FYB8rM1LC6YNm72lonXv+UTtEqr60qVLJTcbvEv8h20tfOhGZgeQtpBiZnZ6wnuhEUDFnlPMDhaSMCbNilohc0kp61mEW1y1j0u8hLR78Ff5xX3t2i5AHLjegvqOIdtHXK/8oorZRfGLiw3aJM1dkVeynA5kCsGm98cjLhNxh4O5nxEnoOJW4rQRkDRUF3adTNoAEprRRB7tfJ09zA7Qt3mGCCMz+dmioiLKcSRTjvGISw/kPbNcSDtzdLotDy6A+AyYObR4KCjK53ur3t2I+ct7s0b0Pfds4U04RuLV914z4rjJ4ZSc94sTSBrsShvYv62S76frZKwAYQ2orWpidoEExyh1tzPl6SlTpjhJ6v3u7Utcgm0vHf/wePKUc8TJS5E21LWu6gKbRBmalXwcgHp70yISg8QR3oTWWAWk3gtpbp6/cCiLRK8Y9k7jHzgCGh3n8om/ibpueHKr0vZT5lVZFvHItVWRaALVQ4pqxcYfL3opeoxcvlr3D4BVc4HU4eFFeMt0ZsHJvUzcFKPkY4gvW7YMGiC7ZfcicW723dalXUsS3lSyNeZcBUmsmaS/5p0Vlp4BVccADsvOYP6uAM/yKsqq7PkJmv8L4k7mmEu7DcRNIfIqkedu3qjq0pkzZ/DfITE5quZjp2Qxu0Dnha1iX1fdxD55fW/CNjANYN49s7jKI5O788E5kfY0oHZQcEuvT5GY8wbaye+//36MqsfY+JEjR6QlY1cX0CHvNdQmZ/JIZhUtjW3RzkNqsG90Hti2cS8fgGSoqz7Pp6loi/uH6wNnJ7zBNA0ZYvrdY1aMZ6hdGHQ9RuL473KmDBUnUB+zAyE1dP6me2fxpMUYljat3Zb0GfvJodWRRz9Aic/utw+Ts/NG1L/L0qQrCoRggVTXUGRPMULmNo44h0CflZXlcGiuXLPGdoDOo7Pw0EYpC5W/c9Wcfm3EoAGiSAF4h0QiQmtDmyUHKZAzZSSrPam/W5MgzJgUlo+CrgFSU1OT5GTOseKi7UytsT2GiJlqW1X5aB+IrJfCYXNDO7MDYwh1yA4kYvKMGTNkkcxw4ghjdJLfQ9ntJRcgWxqsFUCsqDzg1e0U5FtsEvfGVIQ4J9nv90fNXEhcgmPLyEAh49KJW4WZlzezYSE172BvjDbZhc5JPn78eH/nlpubK7e1tcWQtjtRaDXpnLHaYkRflTdbSEhN65V4a4Plclo/IC/TDyV9ixCnNJWFw2EpPT2dBcKBBtHA3+FndmCmjsueuJnIf8/0/mQq79UlDkdpV+LGOnxQ7aljOmFwBTjxY8eOSXV1day9vV1SlFCHaFB3wroT8sdZ+kE4QuXFDMkSG7+ucZmUxdmdqrbU9WpIINQuiPO5CM5x4pTVYMdTucbgt8ejjeutj3K8Tg0jaU2aMY4nJWYQKm+mLT7d7kUW2GrDwRmFFpD8Xax3xSUmZcUfPhL7L2yvp9XJTv7ijgAv4ltBPK8rHNRCPf00QzKVRzs8p7Y6YRktCqy99foMrWN73bsnWJ/ZmTGbUVlkADRFDUarlIYKZkKYeWUjUYSm+0sWmraFxHdTaTkRhtnI2bHwKBBUA3iwSv6LcxPnjV4dI6J5vV61W+04JM5X7LBG3Mwr9820oPLxZln+zsQpac6kkdG5QDLs+7AyetwRat0FTvqsLEpeJDBaTU2NQocqBXl1f9PnH4uGmN5ZcSpmqu41KSUvffwWy4UJIzCIxlQ2bj/ILxnX1mq6Tx0EJwrVKlVjNFF8NKasbMSIEeqgQYOUWl91W0gNlIvGu0oPJH2h31Ti/VNeqP8dJrm6KQnDYIp5erKwZpR2j9JTfrRldy1x4mZMCYwWk7mxiPjVixcvqt3d3WpKSopS6z/9J/GA3ZsOJZW6mRp640h2Pk1bsWhoBzAToLo8fhES0t4fo+YXoblhWZbDtOcaLa5FbZziGyc/ZMgQpaenJ7yz4b1DqhpuxDV492RSNxuYeF4cWF6yiNmB8OyJ1B3SFlFI1ZSGj2o3grjS2dnJSescYyswa9eu5cQ7OjpwE0YodLGn/jVxHVJPFNfNc21PQiKiSJEIxgGFZ49XfETfthk+HGiO9B08wsOHD8deNd4fJa7rPi6G09LSeINPm97cHFT9R3gHSOqlT25m8WCWXCRzYvMpqUmkFYBxQOHZYedmNXdj36Cp6LvOJdTc3KzS4oKqC5cjSlz3dvhRurq6Qh6PJ0SDETrefvQP4h54y76fYwhg+ffRjfeRCi/kkrx+0Q9oVSRx2SpRbI8S7+iVuAiP+KrCiK0bvozx5Idat68KBoMhCmNBcKFQrYC4KDQC0SqrfhIS56oeCASC5ORCh5o/Pz7aO279CE/Oo7hvG70EBYrCPrX26CzM+uoxh0hnUWYyJd4VmSihWvvJxkheX2uY1e0qPRij4q09TW98/Z8D59B3CmNBUnMFoVpMTgT6LigI44eqB2kwMNxBchJvk8ofFTdtempLTNi4XCCdjWcWqLwgrH3w0g4eCaBVq1/6Kb+GPrz3u+3Re31K95cfnHv1dfSZPDn6HoKq06qvqvVZPey3Po6RKSsr49cwVWWRwXE2+M7tyxs87VZZktNwsZJSWVRhJxTksMsFPgyY85MZbGrhBJqDe5kzxRGd20MjOlq6qNqawSOBWDcHaQhAQCG7Pty66+l29WKz0+n0k8ZCVQITJ04M7dy5U1m3bl0M8XjVFgyIizYP2ckgUpnBdJw6OeOHuYWZC191ys6o8WJtepHNNXMrgDeHE0MuALLG9Bc2bVTvsBo+v6/ls1+ebDv8Ham4j8IxZmPdtMEzhljvPCSKeMT5wmF2dra7sbExlY4H0QZJe4n82L7ksWRT/OJdl1yVtQqELHhvoyMjSZ//V4T0WbfbHSCnxklTxdhPxdMgaXjY6NSMBPtBX0ODikPqbto4eXpwKj0Y5MfMHHbzI6mOtJhADOkXLikY8AGA9JFA7S49FDMZCij+ih31bz3V2FPbqpOGlLH5aION94vfAnELi3qtHddBHJ7Hy3Sp0+YhO3Ivzl65Yrgn+wFjO3j82UumDcgAxCMMNPnPbdhc98a7LpcLThikYdOQNrdtcmhhKrD0U3GBZBVVieKfg5wdJJ+Smprq9fl8kH4qvdATCoVc+ekFo28YvvgVh0H1BWACWGLGBzpjLK7KoGSEGgC2Pl8wckDK/247+MrR1t2YL8N+IVmfThh7YdcKS/Cda1LiqFHRJufk5LioLuch8h6dvJfIpxB5aITzjtE/v32kZ/wDTpMBAJC+YkkKWmD8ktlHCQqKmrUnL7BWIh3vs23YcmPgu798Wv/Xz0CM3h2mdwd0wnwjn9QzatSoEJXKw1pEZeMTYxagq73w9FB7Suw8XlVVvaRi+A/yuO64bfR9t2eljL09xeEtYAOAQNhfcabrm9J/XtyGPIKn1Lp6B3X19tN6gJ/m29ymSUgKUlMzh2aEncUDmdRe1tXeaPce/dilbxgAOT99evbEQdOuHebJvsHrSC2gpec0Ky/RmNrlV3wVneHWrw427/hHc7C+k/IJEFZ1KSOjDFDIEtLmSRb1LUR94/dZeY+tVROoPDaQo1TQTS9PoSlfik4cA0B9c7mpc1z6GAByghISoZkjivI8MuVRjqEjU52DRuossXir+UJdFHcCXfW+b09VtR9tMnReoefxNJqeCbsF6R7KygL03B56N8/OWK/3tkTaNnHWa/M8zrNIru8iOik0GeADQGHFTabh0q85qL/8Kwu0xSBgTwPB6BiLGMZn83SZzmuQMAhTWz5voEeGoNcgTtWUHiqW8OO8vLww+R5lz5494UT2PBDEY9rSQqOTHAmP91TFdNGChJsyPTdlelztqcMu6i+XvNiIkBQRHlcPHGv6sUbHIKzo56J1AZBkvR5cSFhUVBR2CbD69bIpysvLecdoAHqINOytm0ijJt9J3r+TVBLHXfrGkwsiJRIMLF1i76MBEue7qE0XqTPadYiNnFen3j6Ad5HGYSDwTcslkQYGamVULLrLpH7y6dOnuY1TGctFFR0hcYfhvujinQ6eaNBgYc6sEHm+0WAKqatEWJkwYYI6depUjYhbtuWrBW775GGd1FEXFQA8FFsR8+HRMdFBKocgPrTvRkgnh4l70ijPxtwAzpLnCLpDvSztvFqQ9C8PuAPEINDeTdpgjADYjOFQhESn3s6hP+OKr9dfSUhCaiIcYjNIMur52f850f95/BfoYlARf1CQvwAAAABJRU5ErkJggg=="},88954:(e,a,t)=>{t.r(a),t.d(a,{default:()=>T});var l=t(22555),n=t(85672),o=t(96515),s=t(69039),i=t(76264),r=t(71392),c=t(2866),d=t(80911),h=t(48738),p=t(1939),A=t(29882),m=t(86270),u=t(51422),x=t(77865),g=t(17488),v=t(70775),j=t(65293),f=t(12557),y=t(91939),C=t(59008),b=t(66157),S=t(72679),k=t(52351),W=t(76453),Y=t(13659),F=t(46077),N=t.n(F),R=t(94826),B=t(65908);const T=()=>{const e=(0,s.A)(),a=(0,i.A)(e.breakpoints.down("md")),t=(0,o.zy)(),[F,T]=(0,n.useState)(null),w=(0,o.Zp)(),[I,J]=(0,n.useState)(""),[M,P]=(0,n.useState)(""),[z,D]=(0,n.useState)(""),[K,L]=(0,n.useState)(""),[V,H]=(0,n.useState)({}),[E,Z]=(0,n.useState)([]),[G,U]=(0,n.useState)([]),[q,O]=(0,n.useState)([]),[Q,X]=(0,n.useState)([]),[_,$]=(0,n.useState)(),ee=localStorage.getItem("userid");W.A.setApiKey("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8");const[ae,te]=(0,n.useState)(!1);(0,n.useEffect)((()=>{(async e=>{try{let a=await b.A.get("https://jupiter.nearle.app/live/api/v1/partners/getriderdetail/?userid=".concat(e));console.log("riderdataresponse",a.data.details),T(a.data.details),se(a.data.details.applocationid)}catch(a){console.log("fetchmanagerList",a)}})(t.state.riderdata.userid)}),[]),(0,n.useEffect)((()=>{console.log("riderdata",F)}),[F,I]),(0,n.useEffect)((()=>{J(t.state.riderdata.address),P(t.state.riderdata.suburb),D(t.state.riderdata.city),L(t.state.riderdata.state)}),[]),(0,n.useEffect)((()=>{localStorage.getItem("tenantid")&&le(localStorage.getItem("tenantid")),ne(),oe()}),[]),(0,n.useEffect)((()=>{V.applocationid&&se(V.applocationid)}),[V.applocationid]);const le=async e=>{te(!0),await b.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantinfo/?tenantid=").concat(e)).then((e=>{console.log(e),e.data.status&&setTenantinfo(e.data.details),te(!1)})).catch((e=>{console.log(e),te(!1)}))},ne=async()=>{te(!0),await b.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getapptypes?tag=vehicle")).then((e=>{console.log("fetchvehicle",e);let a=[];e.data.map((e=>{a.push((0,l.A)((0,l.A)({},e),{},{label:e.typename}))})),Z([...a]),te(!1)})).catch((e=>{console.log(e),te(!1)}))},oe=async()=>{te(!0),await b.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getapptypes?tag=accounttype")).then((e=>{console.log(e);let a=[];e.data.map((e=>{a.push((0,l.A)((0,l.A)({},e),{},{label:e.typename}))})),U([...a]),console.log(a),te(!1)})).catch((e=>{console.log(e),te(!1)}))};(0,n.useEffect)((()=>{(async()=>{try{const e=await b.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(ee));console.log("fetchAppLocations",e.data.details),O(e.data.details)}catch(e){console.log("locationRes",e)}})()}),[]);const se=async e=>{te(!0),await b.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getridershifts/?applocationid=").concat(e)).then((e=>{console.log("fetchridershifts",e);let a=[];e.data.details.map((e=>{a.push((0,l.A)((0,l.A)({},e),{},{label:e.shiftname}))})),X([...a]),console.log(a),te(!1)})).catch((e=>{console.log(e),te(!1)}))};(0,n.useEffect)((()=>{selectedImage&&setAvatar(URL.createObjectURL(selectedImage))}),[selectedImage]);const{ref:ie}=(0,S.usePlacesWidget)({apiKey:"AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8",onPlaceSelected:e=>{let a,t,l,n;console.log(e),J(e.formatted_address);for(let o=0;o{T(null),w("/nearle/riders")},children:"Back to Riders"})]}),children:(0,B.jsx)(h.A,{sx:{maxHeight:"calc(100vh - 280px)",overflowY:"auto",overflowX:"hidden",scrollbarGutter:"stable",scrollBehavior:"smooth"},children:(0,B.jsxs)(r.A,{display:"flex",spacing:{xs:2.5,sm:5},children:[(0,B.jsx)(C.A,{title:(0,B.jsx)(c.A,{variant:"h4",sx:{m:2},children:"Contact Information"}),children:(0,B.jsxs)(p.Ay,{container:!0,spacing:{xs:2,sm:3},children:[(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-last-name",children:"First Name"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-last-name",value:null===F||void 0===F?void 0:F.firstname,onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{firstname:e.target.value}))},placeholder:"Name",autoComplete:"off"})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-last-name",children:"Last Name"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-last-name",placeholder:"Name",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{lastname:e.target.value}))},value:null===F||void 0===F?void 0:F.lastname,autoComplete:"off"})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-phone",children:"Phone Number"}),(0,B.jsxs)(r.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:2,children:[(0,B.jsx)(u.A,{defaultValue:"+1",disabled:!0,sx:{cursor:"not-allowed"},children:(0,B.jsx)(x.A,{value:"+1",children:"+91"})}),(0,B.jsx)(m.A,{type:"number",id:"personal-phone",fullWidth:!0,placeholder:"Phone Number",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{contactno:e.target.value}))},value:null===F||void 0===F?void 0:F.contactno,autoComplete:"off",sx:{cursor:"not-allowed"}})]})]})})," ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-email",children:"Email Address"}),(0,B.jsx)(m.A,{type:"email",fullWidth:!0,id:"personal-email",placeholder:"Email Address",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{email:e.target.value}))},value:null===F||void 0===F?void 0:F.email,autoComplete:"off"})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-address",children:"Address"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-address",placeholder:"Address",value:I,onChange:e=>{J(e.target.value)},inputRef:ie})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Location"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Location",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{suburb:e.target.value})),P(e.target.value)},value:M,autoComplete:"off"})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-zipcode",children:"City"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-zipcode",placeholder:"City",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{city:e.target.value})),D(e.target.value)},value:z,autoComplete:"off"})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"State"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"State",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{state:e.target.value})),L(e.target.value)},value:K,autoComplete:"off"})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Identification No"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Identification No",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{identificationno:e.target.value}))},value:null===F||void 0===F?void 0:F.identificationno,autoComplete:"off"})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Choose Partner"}),(0,B.jsx)(g.A,{disablePortal:!0,id:"combo-box-demo",options:q,getOptionLabel:e=>"".concat(e.locationname),sx:{width:{xs:"100%",sm:300},height:"30px",ml:{xs:0,sm:3},zIndex:"100"},onChange:(e,a)=>{a?(console.log(a),$(a.locationname),se(a.applocationid),T((0,l.A)((0,l.A)({},F),{},{partnerid:a.partnerid,applocationid:a.applocationid}))):H({})},renderInput:e=>(0,B.jsx)(m.A,(0,l.A)((0,l.A)({},e),{},{label:_||(null===F||void 0===F?void 0:F.city)}))})]})})]})}),(0,B.jsx)(C.A,{title:(0,B.jsx)(c.A,{variant:"h4",sx:{m:2},children:"Charges"}),children:(0,B.jsxs)(p.Ay,{container:!0,spacing:{xs:2,sm:3},children:[(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Shift Type"}),(0,B.jsx)(g.A,{renderInput:e=>(0,B.jsx)(m.A,(0,l.A)((0,l.A)({},e),{},{label:null!==F&&void 0!==F&&F.starttime&&null!==F&&void 0!==F&&F.endtime?"".concat(null===F||void 0===F?void 0:F.starttime," - ").concat(null===F||void 0===F?void 0:F.endtime):"Choose"})),options:Q,onChange:(e,a)=>{a?(console.log("shift",a),T((0,l.A)((0,l.A)({},F),{},{shiftid:a.shiftid,additionalkm:a.additionalkm,additionalcharges:a.additionalcharges,basefare:a.basefare,starttime:a.starttime,endtime:a.endtime})),setBasefare(a.basefare),setAdditionalkms(a.additionalkm),setOthercharges(a.additionalcharges),setShift(a)):(setBasefare(""),setAdditionalkms(""),setOthercharges(""),setShift({}))},freeSolo:!0})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Base Fare"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Base Fare",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{basefare:e.target.value})),setBasefare(e.target.value)},value:null===F||void 0===F?void 0:F.basefare,autoComplete:"off",disabled:!0})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Additional Kms"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Additional Kms",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{additionalkm:e.target.value})),setAdditionalkms(e.target.value)},value:null===F||void 0===F?void 0:F.additionalkm,autoComplete:"off",disabled:!0})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Other Charges"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Other Charges",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{additionalcharges:e.target.value})),setOthercharges(e.target.value)},value:null===F||void 0===F?void 0:F.additionalcharges,autoComplete:"off",disabled:!0})]})})]})}),(0,B.jsx)(C.A,{title:(0,B.jsx)(c.A,{variant:"h4",sx:{m:2},children:"Bank Details"}),children:(0,B.jsxs)(p.Ay,{container:!0,spacing:{xs:2,sm:3},children:[" ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Account No"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Account No",value:null===F||void 0===F?void 0:F.accountno,onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{accountno:e.target.value})),setAccountno(e.target.value)},autoComplete:"off"})]})})," ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Account Name"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Account Name",value:null===F||void 0===F?void 0:F.accountname,onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{accountname:e.target.value})),setAccountname(e.target.value)},autoComplete:"off"})]})})," ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Account Type"}),(0,B.jsx)(g.A,{renderInput:e=>(0,B.jsx)(m.A,(0,l.A)((0,l.A)({},e),{},{label:""==(null===F||void 0===F?void 0:F.accounttype)?"Choose":null===F||void 0===F?void 0:F.accounttype})),options:G,onChange:(e,a)=>{console.log("ac type",a),a?(T((0,l.A)((0,l.A)({},F),{},{accounttype:a.label})),setAccount(a),setAccountType(a.label)):setAccount({})},freeSolo:!0})]})})," ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Bank Name"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Bank Name",value:null===F||void 0===F?void 0:F.bankname,onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{bankname:e.target.value})),setBankname(e.target.value)},autoComplete:"off"})]})})," ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"IFSC Code"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"IFSC Code",value:null===F||void 0===F?void 0:F.ifsccode,onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{ifsccode:e.target.value})),setIfsc(e.target.value)},autoComplete:"off"})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Branch"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Branch",value:null===F||void 0===F?void 0:F.branch,onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{branch:e.target.value})),setBranch(e.target.value)},autoComplete:"off"})]})})]})}),(0,B.jsx)(C.A,{title:(0,B.jsx)(c.A,{variant:"h4",sx:{m:2},children:"Vehicle Details"}),children:(0,B.jsxs)(p.Ay,{container:!0,spacing:{xs:2,sm:3},children:[(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Vehicle Name"}),(0,B.jsx)(g.A,{renderInput:e=>(0,B.jsx)(m.A,(0,l.A)((0,l.A)({},e),{},{label:""==(null===F||void 0===F?void 0:F.vehiclename)?"Choose":null===F||void 0===F?void 0:F.vehiclename})),options:E,onChange:(e,a)=>{a?(console.log("vehi",a),setVehicle(a),T((0,l.A)((0,l.A)({},F),{},{vehiclename:a.label,vehicleid:a.apptypeid}))):setVehicle({})},freeSolo:!0})]})})," ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Vehicle No"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Vehicle No",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{vehicleno:e.target.value}))},value:null===F||void 0===F?void 0:F.vehicleno,autoComplete:"off"})]})})," ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Model Year"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Model Year",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{model:e.target.value})),setModelyear(e.target.value)},value:null===F||void 0===F?void 0:F.model,autoComplete:"off"})]})})," ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Vehicle Color"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Vehicle Color",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{color:e.target.value})),setVehiclecolor(e.target.value)},value:null===F||void 0===F?void 0:F.color,autoComplete:"off"})]})})," ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"License No"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"License No",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{licenseno:e.target.value}))},value:null===F||void 0===F?void 0:F.licenseno,autoComplete:"off"})]})})," ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Insurance No"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Insurance No",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{insuranceno:e.target.value}))},value:null===F||void 0===F?void 0:F.insuranceno,autoComplete:"off"})]})})," ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Insurance Expiry Date"}),(0,B.jsx)(j.$,{dateAdapter:f.R,children:(0,B.jsx)(y.l,{label:"Date",value:N()(null===F||void 0===F?void 0:F.insurancedate),onChange:e=>{setExpirydate(N()(e.$d).format("YYYY-MM-DD 00:00:00")),T((0,l.A)((0,l.A)({},F),{},{insurancedate:N()(e.$d).format("YYYY-MM-DD 00:00:00")}))},sx:{width:"100%"}})})]})})]})})]})})}),(0,B.jsx)(h.A,{sx:{position:"sticky",bottom:0,backgroundColor:"secondary.lighter",p:2,zIndex:10,border:" 1px solid ",borderColor:"#E6EBF1",borderTop:"none"},children:(0,B.jsxs)(r.A,{direction:{xs:"column-reverse",sm:"row"},justifyContent:"flex-end",spacing:2,children:[(0,B.jsx)(d.A,{startIcon:(0,B.jsx)(v.A,{}),variant:"outlined",fullWidth:a,onClick:()=>w("/nearle/riders"),children:"Back to Riders"}),(0,B.jsx)(d.A,{variant:"contained",fullWidth:a,onClick:()=>{(async()=>{te(!0),console.log("updated riderData",F),await b.A.put("https://jupiter.nearle.app/live/api/v1/partners/updaterider",{userid:F.userid,contactno:F.contactno,firstname:F.firstname,lastname:F.lastname,email:F.email,address:F.address,suburb:F.suburb,city:F.city,state:F.state,partnerid:F.partnerid,applocationid:F.applocationid,ridersettings:{riderid:F.riderid,userid:F.userid,partnerid:F.partnerid,shiftid:F.shiftid,identificationno:F.identificationno,basefare:F.basefare,additionalkm:F.additionalkm,othercharges:F.othercharges,accountno:F.accountno,accountname:F.accountname,accounttypeid:F.accounttypeid,accounttype:F.accounttype,bankname:F.bankname,ifsccode:F.ifsccode,Branch:F.branch,vehicleid:F.vehicleid,vehiclename:F.vehiclename,vehicleno:F.vehicleno,model:F.model,color:F.color,licenseno:F.licenseno,insurancedate:N()(F.insurancedate).format("YYYY-MM-DD HH:mm:ss")}}).then((e=>{console.log("post response",e),200==e.status?((0,Y.M8)("Updated Sucessfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),T(null),w("/nearle/riders"),te(!1)):((0,Y.M8)("Update Failed",{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),te(!1))}))})()},children:"Update"})]})})]})}},94826:(e,a,t)=>{t.d(a,{A:()=>c});var l=t(60308),n=t(12010),o=t(62217),s=t(65908);const i=(0,l.Ay)("div")((()=>({position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2001,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0.7)",padding:"20px",borderRadius:"10px"}))),r=(0,l.Ay)("div")((()=>({position:"absolute",width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center"}))),c=()=>(0,s.jsxs)(i,{children:[(0,s.jsx)(n.A,{color:"primary",size:80,thickness:6}),(0,s.jsx)(r,{children:(0,s.jsx)("img",{src:o,alt:"Logo",style:{width:"100%",height:"100%"}})})]})}}]); \ No newline at end of file diff --git a/build/static/js/8954.e87abf2c.chunk.js b/build/static/js/8954.e87abf2c.chunk.js deleted file mode 100644 index c57f327..0000000 --- a/build/static/js/8954.e87abf2c.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[8954],{62217:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAAA+CAYAAABzwahEAAAPnUlEQVR4AdVae3AU9R3/7d4jdyGQQKAhECBAJBSmEAtFSQUjqPgAHGlhRm0lDkWY6Tg+O9qiErR26h8WR8ZWqTMN1ur4qMpDrTyjtDwDJloeCYiBvAgkaZ53l7vb3X4/v9vfZS/Zu9uFwLSfmb3d293f7u/z+z5/399K7CphdW5JrupgBZosZ0ialmu8pklSjUOTamRJbvvjqTUV7CpAYlcIj+SWZHQ55WJZlm7UNK2IXpRhpZ3GWJskSWXUZrPD4Sp77eSva9gVwIATXz35+SJNYWs1phWxAYDEpDKVaZv+fOrZUjaAGDDiK695rpgetpYOc82upw72sMycdJbz/SzmHeKl/ynRay31bbS1s7rjTczXGYj3ihrShnUDNQCXTXzlNS8UyExdbybhSdeNYwXz81nBzflE2pKms7oT51ntiSa276NKVn3wrNktNcGQelNpTUkNuwxcFvFV+S88rKnKy8ZzkOz84uvYvOJZ/PhyAE3Y/+HXbN+HFVwjjJAlR8lr1WueY9wt2MclEYfj8rnkj+nwRnHOLuGWhnbmpfuMKh/3Xn0Atm74IuY8OcGPFYk99kbVM98xm7BFnDyttHLyb3MlRdsjSWycOA+VLv79YpY5Ork6V5efY59s/JJVHznH/+dMymLz7v0Rm71oWtK2GIDSJ7ew6kMxJlCjytI8u+Qddm4+93bPBIfqiiG96KG5RPouljokuZT3b/2avf7EB6ylsZ1dM2MsG5OfxU7RAFSWVbMAObUphRMTtsc7CpdMh6c3kqe8gN117Yh5W4627GljFmGZ+C/ynx/flzSkDPW2Aqj2+lV/Y5mj0tljG3/GFhQXspkLpnBJVx85yyq/OGWJPAANgzkd2/utOMXJzxp965vlF3YFrPRHZtYgSZq6vi/p2TT6VrF+1Vt8/yiRhnoLiIHAftc7h0kDzlp6HgYcfTAgVwmEPmIWzTeZxPEQaeWkkhJJk1eJk8vWLGBz75nBrAIqfmDrN2zhqjlsetGkftddKU6WQ2qPe6AZVuwdGPP9kWw4+ZWKnVXiVO6M4UXtR1rKDiZrm4g4J70871cTnMzzd3ESNn3bgz9mdgC7hmoufeKWuB4/c1QGV3nYfP7Msfy/FYB8rM1LC6YNm72lonXv+UTtEqr60qVLJTcbvEv8h20tfOhGZgeQtpBiZnZ6wnuhEUDFnlPMDhaSMCbNilohc0kp61mEW1y1j0u8hLR78Ff5xX3t2i5AHLjegvqOIdtHXK/8oorZRfGLiw3aJM1dkVeynA5kCsGm98cjLhNxh4O5nxEnoOJW4rQRkDRUF3adTNoAEprRRB7tfJ09zA7Qt3mGCCMz+dmioiLKcSRTjvGISw/kPbNcSDtzdLotDy6A+AyYObR4KCjK53ur3t2I+ct7s0b0Pfds4U04RuLV914z4rjJ4ZSc94sTSBrsShvYv62S76frZKwAYQ2orWpidoEExyh1tzPl6SlTpjhJ6v3u7Utcgm0vHf/wePKUc8TJS5E21LWu6gKbRBmalXwcgHp70yISg8QR3oTWWAWk3gtpbp6/cCiLRK8Y9k7jHzgCGh3n8om/ibpueHKr0vZT5lVZFvHItVWRaALVQ4pqxcYfL3opeoxcvlr3D4BVc4HU4eFFeMt0ZsHJvUzcFKPkY4gvW7YMGiC7ZfcicW723dalXUsS3lSyNeZcBUmsmaS/5p0Vlp4BVccADsvOYP6uAM/yKsqq7PkJmv8L4k7mmEu7DcRNIfIqkedu3qjq0pkzZ/DfITE5quZjp2Qxu0Dnha1iX1fdxD55fW/CNjANYN49s7jKI5O788E5kfY0oHZQcEuvT5GY8wbaye+//36MqsfY+JEjR6QlY1cX0CHvNdQmZ/JIZhUtjW3RzkNqsG90Hti2cS8fgGSoqz7Pp6loi/uH6wNnJ7zBNA0ZYvrdY1aMZ6hdGHQ9RuL473KmDBUnUB+zAyE1dP6me2fxpMUYljat3Zb0GfvJodWRRz9Aic/utw+Ts/NG1L/L0qQrCoRggVTXUGRPMULmNo44h0CflZXlcGiuXLPGdoDOo7Pw0EYpC5W/c9Wcfm3EoAGiSAF4h0QiQmtDmyUHKZAzZSSrPam/W5MgzJgUlo+CrgFSU1OT5GTOseKi7UytsT2GiJlqW1X5aB+IrJfCYXNDO7MDYwh1yA4kYvKMGTNkkcxw4ghjdJLfQ9ntJRcgWxqsFUCsqDzg1e0U5FtsEvfGVIQ4J9nv90fNXEhcgmPLyEAh49KJW4WZlzezYSE172BvjDbZhc5JPn78eH/nlpubK7e1tcWQtjtRaDXpnLHaYkRflTdbSEhN65V4a4Plclo/IC/TDyV9ixCnNJWFw2EpPT2dBcKBBtHA3+FndmCmjsueuJnIf8/0/mQq79UlDkdpV+LGOnxQ7aljOmFwBTjxY8eOSXV1day9vV1SlFCHaFB3wroT8sdZ+kE4QuXFDMkSG7+ucZmUxdmdqrbU9WpIINQuiPO5CM5x4pTVYMdTucbgt8ejjeutj3K8Tg0jaU2aMY4nJWYQKm+mLT7d7kUW2GrDwRmFFpD8Xax3xSUmZcUfPhL7L2yvp9XJTv7ijgAv4ltBPK8rHNRCPf00QzKVRzs8p7Y6YRktCqy99foMrWN73bsnWJ/ZmTGbUVlkADRFDUarlIYKZkKYeWUjUYSm+0sWmraFxHdTaTkRhtnI2bHwKBBUA3iwSv6LcxPnjV4dI6J5vV61W+04JM5X7LBG3Mwr9820oPLxZln+zsQpac6kkdG5QDLs+7AyetwRat0FTvqsLEpeJDBaTU2NQocqBXl1f9PnH4uGmN5ZcSpmqu41KSUvffwWy4UJIzCIxlQ2bj/ILxnX1mq6Tx0EJwrVKlVjNFF8NKasbMSIEeqgQYOUWl91W0gNlIvGu0oPJH2h31Ti/VNeqP8dJrm6KQnDYIp5erKwZpR2j9JTfrRldy1x4mZMCYwWk7mxiPjVixcvqt3d3WpKSopS6z/9J/GA3ZsOJZW6mRp640h2Pk1bsWhoBzAToLo8fhES0t4fo+YXoblhWZbDtOcaLa5FbZziGyc/ZMgQpaenJ7yz4b1DqhpuxDV492RSNxuYeF4cWF6yiNmB8OyJ1B3SFlFI1ZSGj2o3grjS2dnJSescYyswa9eu5cQ7OjpwE0YodLGn/jVxHVJPFNfNc21PQiKiSJEIxgGFZ49XfETfthk+HGiO9B08wsOHD8deNd4fJa7rPi6G09LSeINPm97cHFT9R3gHSOqlT25m8WCWXCRzYvMpqUmkFYBxQOHZYedmNXdj36Cp6LvOJdTc3KzS4oKqC5cjSlz3dvhRurq6Qh6PJ0SDETrefvQP4h54y76fYwhg+ffRjfeRCi/kkrx+0Q9oVSRx2SpRbI8S7+iVuAiP+KrCiK0bvozx5Idat68KBoMhCmNBcKFQrYC4KDQC0SqrfhIS56oeCASC5ORCh5o/Pz7aO279CE/Oo7hvG70EBYrCPrX26CzM+uoxh0hnUWYyJd4VmSihWvvJxkheX2uY1e0qPRij4q09TW98/Z8D59B3CmNBUnMFoVpMTgT6LigI44eqB2kwMNxBchJvk8ofFTdtempLTNi4XCCdjWcWqLwgrH3w0g4eCaBVq1/6Kb+GPrz3u+3Re31K95cfnHv1dfSZPDn6HoKq06qvqvVZPey3Po6RKSsr49cwVWWRwXE2+M7tyxs87VZZktNwsZJSWVRhJxTksMsFPgyY85MZbGrhBJqDe5kzxRGd20MjOlq6qNqawSOBWDcHaQhAQCG7Pty66+l29WKz0+n0k8ZCVQITJ04M7dy5U1m3bl0M8XjVFgyIizYP2ckgUpnBdJw6OeOHuYWZC191ys6o8WJtepHNNXMrgDeHE0MuALLG9Bc2bVTvsBo+v6/ls1+ebDv8Ham4j8IxZmPdtMEzhljvPCSKeMT5wmF2dra7sbExlY4H0QZJe4n82L7ksWRT/OJdl1yVtQqELHhvoyMjSZ//V4T0WbfbHSCnxklTxdhPxdMgaXjY6NSMBPtBX0ODikPqbto4eXpwKj0Y5MfMHHbzI6mOtJhADOkXLikY8AGA9JFA7S49FDMZCij+ih31bz3V2FPbqpOGlLH5aION94vfAnELi3qtHddBHJ7Hy3Sp0+YhO3Ivzl65Yrgn+wFjO3j82UumDcgAxCMMNPnPbdhc98a7LpcLThikYdOQNrdtcmhhKrD0U3GBZBVVieKfg5wdJJ+Smprq9fl8kH4qvdATCoVc+ekFo28YvvgVh0H1BWACWGLGBzpjLK7KoGSEGgC2Pl8wckDK/247+MrR1t2YL8N+IVmfThh7YdcKS/Cda1LiqFHRJufk5LioLuch8h6dvJfIpxB5aITzjtE/v32kZ/wDTpMBAJC+YkkKWmD8ktlHCQqKmrUnL7BWIh3vs23YcmPgu798Wv/Xz0CM3h2mdwd0wnwjn9QzatSoEJXKw1pEZeMTYxagq73w9FB7Suw8XlVVvaRi+A/yuO64bfR9t2eljL09xeEtYAOAQNhfcabrm9J/XtyGPIKn1Lp6B3X19tN6gJ/m29ymSUgKUlMzh2aEncUDmdRe1tXeaPce/dilbxgAOT99evbEQdOuHebJvsHrSC2gpec0Ky/RmNrlV3wVneHWrw427/hHc7C+k/IJEFZ1KSOjDFDIEtLmSRb1LUR94/dZeY+tVROoPDaQo1TQTS9PoSlfik4cA0B9c7mpc1z6GAByghISoZkjivI8MuVRjqEjU52DRuossXir+UJdFHcCXfW+b09VtR9tMnReoefxNJqeCbsF6R7KygL03B56N8/OWK/3tkTaNnHWa/M8zrNIru8iOik0GeADQGHFTabh0q85qL/8Kwu0xSBgTwPB6BiLGMZn83SZzmuQMAhTWz5voEeGoNcgTtWUHiqW8OO8vLww+R5lz5494UT2PBDEY9rSQqOTHAmP91TFdNGChJsyPTdlelztqcMu6i+XvNiIkBQRHlcPHGv6sUbHIKzo56J1AZBkvR5cSFhUVBR2CbD69bIpysvLecdoAHqINOytm0ijJt9J3r+TVBLHXfrGkwsiJRIMLF1i76MBEue7qE0XqTPadYiNnFen3j6Ad5HGYSDwTcslkQYGamVULLrLpH7y6dOnuY1TGctFFR0hcYfhvujinQ6eaNBgYc6sEHm+0WAKqatEWJkwYYI6depUjYhbtuWrBW775GGd1FEXFQA8FFsR8+HRMdFBKocgPrTvRkgnh4l70ijPxtwAzpLnCLpDvSztvFqQ9C8PuAPEINDeTdpgjADYjOFQhESn3s6hP+OKr9dfSUhCaiIcYjNIMur52f850f95/BfoYlARf1CQvwAAAABJRU5ErkJggg=="},88954:(e,a,t)=>{t.r(a),t.d(a,{default:()=>T});var l=t(89379),n=t(9950),o=t(28429),s=t(14857),i=t(47223),r=t(93230),c=t(82053),d=t(10226),h=t(16491),p=t(60899),A=t(19647),m=t(29925),u=t(70006),x=t(23266),g=t(77922),v=t(63189),j=t(81831),f=t(95359),y=t(30633),C=t(50027),b=t(26910),S=t(56713),k=t(52351),W=t(99459),Y=t(8881),F=t(4159),N=t.n(F),R=t(94826),B=t(44414);const T=()=>{const e=(0,s.A)(),a=(0,i.A)(e.breakpoints.down("md")),t=(0,o.zy)(),[F,T]=(0,n.useState)(null),w=(0,o.Zp)(),[I,J]=(0,n.useState)(""),[M,P]=(0,n.useState)(""),[z,D]=(0,n.useState)(""),[K,L]=(0,n.useState)(""),[V,H]=(0,n.useState)({}),[E,Z]=(0,n.useState)([]),[G,U]=(0,n.useState)([]),[q,O]=(0,n.useState)([]),[Q,X]=(0,n.useState)([]),[_,$]=(0,n.useState)(),ee=localStorage.getItem("userid");W.A.setApiKey("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8");const[ae,te]=(0,n.useState)(!1);(0,n.useEffect)((()=>{(async e=>{try{let a=await b.A.get("https://jupiter.nearle.app/live/api/v1/partners/getriderdetail/?userid=".concat(e));console.log("riderdataresponse",a.data.details),T(a.data.details),se(a.data.details.applocationid)}catch(a){console.log("fetchmanagerList",a)}})(t.state.riderdata.userid)}),[]),(0,n.useEffect)((()=>{console.log("riderdata",F)}),[F,I]),(0,n.useEffect)((()=>{J(t.state.riderdata.address),P(t.state.riderdata.suburb),D(t.state.riderdata.city),L(t.state.riderdata.state)}),[]),(0,n.useEffect)((()=>{localStorage.getItem("tenantid")&&le(localStorage.getItem("tenantid")),ne(),oe()}),[]),(0,n.useEffect)((()=>{V.applocationid&&se(V.applocationid)}),[V.applocationid]);const le=async e=>{te(!0),await b.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantinfo/?tenantid=").concat(e)).then((e=>{console.log(e),e.data.status&&setTenantinfo(e.data.details),te(!1)})).catch((e=>{console.log(e),te(!1)}))},ne=async()=>{te(!0),await b.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getapptypes?tag=vehicle")).then((e=>{console.log("fetchvehicle",e);let a=[];e.data.map((e=>{a.push((0,l.A)((0,l.A)({},e),{},{label:e.typename}))})),Z([...a]),te(!1)})).catch((e=>{console.log(e),te(!1)}))},oe=async()=>{te(!0),await b.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getapptypes?tag=accounttype")).then((e=>{console.log(e);let a=[];e.data.map((e=>{a.push((0,l.A)((0,l.A)({},e),{},{label:e.typename}))})),U([...a]),console.log(a),te(!1)})).catch((e=>{console.log(e),te(!1)}))};(0,n.useEffect)((()=>{(async()=>{try{const e=await b.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(ee));console.log("fetchAppLocations",e.data.details),O(e.data.details)}catch(e){console.log("locationRes",e)}})()}),[]);const se=async e=>{te(!0),await b.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getridershifts/?applocationid=").concat(e)).then((e=>{console.log("fetchridershifts",e);let a=[];e.data.details.map((e=>{a.push((0,l.A)((0,l.A)({},e),{},{label:e.shiftname}))})),X([...a]),console.log(a),te(!1)})).catch((e=>{console.log(e),te(!1)}))};(0,n.useEffect)((()=>{selectedImage&&setAvatar(URL.createObjectURL(selectedImage))}),[selectedImage]);const{ref:ie}=(0,S.usePlacesWidget)({apiKey:"AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8",onPlaceSelected:e=>{let a,t,l,n;console.log(e),J(e.formatted_address);for(let o=0;o{T(null),w("/nearle/riders")},children:"Back to Riders"})]}),children:(0,B.jsx)(h.A,{sx:{maxHeight:"calc(100vh - 280px)",overflowY:"auto",overflowX:"hidden",scrollbarGutter:"stable",scrollBehavior:"smooth"},children:(0,B.jsxs)(r.A,{display:"flex",spacing:{xs:2.5,sm:5},children:[(0,B.jsx)(C.A,{title:(0,B.jsx)(c.A,{variant:"h4",sx:{m:2},children:"Contact Information"}),children:(0,B.jsxs)(p.Ay,{container:!0,spacing:{xs:2,sm:3},children:[(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-last-name",children:"First Name"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-last-name",value:null===F||void 0===F?void 0:F.firstname,onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{firstname:e.target.value}))},placeholder:"Name",autoComplete:"off"})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-last-name",children:"Last Name"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-last-name",placeholder:"Name",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{lastname:e.target.value}))},value:null===F||void 0===F?void 0:F.lastname,autoComplete:"off"})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-phone",children:"Phone Number"}),(0,B.jsxs)(r.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:2,children:[(0,B.jsx)(u.A,{defaultValue:"+1",disabled:!0,sx:{cursor:"not-allowed"},children:(0,B.jsx)(x.A,{value:"+1",children:"+91"})}),(0,B.jsx)(m.A,{type:"number",id:"personal-phone",fullWidth:!0,placeholder:"Phone Number",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{contactno:e.target.value}))},value:null===F||void 0===F?void 0:F.contactno,autoComplete:"off",sx:{cursor:"not-allowed"}})]})]})})," ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-email",children:"Email Address"}),(0,B.jsx)(m.A,{type:"email",fullWidth:!0,id:"personal-email",placeholder:"Email Address",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{email:e.target.value}))},value:null===F||void 0===F?void 0:F.email,autoComplete:"off"})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-address",children:"Address"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-address",placeholder:"Address",value:I,onChange:e=>{J(e.target.value)},inputRef:ie})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Location"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Location",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{suburb:e.target.value})),P(e.target.value)},value:M,autoComplete:"off"})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-zipcode",children:"City"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-zipcode",placeholder:"City",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{city:e.target.value})),D(e.target.value)},value:z,autoComplete:"off"})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"State"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"State",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{state:e.target.value})),L(e.target.value)},value:K,autoComplete:"off"})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Identification No"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Identification No",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{identificationno:e.target.value}))},value:null===F||void 0===F?void 0:F.identificationno,autoComplete:"off"})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Choose Partner"}),(0,B.jsx)(g.A,{disablePortal:!0,id:"combo-box-demo",options:q,getOptionLabel:e=>"".concat(e.locationname),sx:{width:{xs:"100%",sm:300},height:"30px",ml:{xs:0,sm:3},zIndex:"100"},onChange:(e,a)=>{a?(console.log(a),$(a.locationname),se(a.applocationid),T((0,l.A)((0,l.A)({},F),{},{partnerid:a.partnerid,applocationid:a.applocationid}))):H({})},renderInput:e=>(0,B.jsx)(m.A,(0,l.A)((0,l.A)({},e),{},{label:_||(null===F||void 0===F?void 0:F.city)}))})]})})]})}),(0,B.jsx)(C.A,{title:(0,B.jsx)(c.A,{variant:"h4",sx:{m:2},children:"Charges"}),children:(0,B.jsxs)(p.Ay,{container:!0,spacing:{xs:2,sm:3},children:[(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Shift Type"}),(0,B.jsx)(g.A,{renderInput:e=>(0,B.jsx)(m.A,(0,l.A)((0,l.A)({},e),{},{label:null!==F&&void 0!==F&&F.starttime&&null!==F&&void 0!==F&&F.endtime?"".concat(null===F||void 0===F?void 0:F.starttime," - ").concat(null===F||void 0===F?void 0:F.endtime):"Choose"})),options:Q,onChange:(e,a)=>{a?(console.log("shift",a),T((0,l.A)((0,l.A)({},F),{},{shiftid:a.shiftid,additionalkm:a.additionalkm,additionalcharges:a.additionalcharges,basefare:a.basefare,starttime:a.starttime,endtime:a.endtime})),setBasefare(a.basefare),setAdditionalkms(a.additionalkm),setOthercharges(a.additionalcharges),setShift(a)):(setBasefare(""),setAdditionalkms(""),setOthercharges(""),setShift({}))},freeSolo:!0})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Base Fare"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Base Fare",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{basefare:e.target.value})),setBasefare(e.target.value)},value:null===F||void 0===F?void 0:F.basefare,autoComplete:"off",disabled:!0})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Additional Kms"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Additional Kms",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{additionalkm:e.target.value})),setAdditionalkms(e.target.value)},value:null===F||void 0===F?void 0:F.additionalkm,autoComplete:"off",disabled:!0})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Other Charges"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Other Charges",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{additionalcharges:e.target.value})),setOthercharges(e.target.value)},value:null===F||void 0===F?void 0:F.additionalcharges,autoComplete:"off",disabled:!0})]})})]})}),(0,B.jsx)(C.A,{title:(0,B.jsx)(c.A,{variant:"h4",sx:{m:2},children:"Bank Details"}),children:(0,B.jsxs)(p.Ay,{container:!0,spacing:{xs:2,sm:3},children:[" ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Account No"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Account No",value:null===F||void 0===F?void 0:F.accountno,onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{accountno:e.target.value})),setAccountno(e.target.value)},autoComplete:"off"})]})})," ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Account Name"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Account Name",value:null===F||void 0===F?void 0:F.accountname,onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{accountname:e.target.value})),setAccountname(e.target.value)},autoComplete:"off"})]})})," ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Account Type"}),(0,B.jsx)(g.A,{renderInput:e=>(0,B.jsx)(m.A,(0,l.A)((0,l.A)({},e),{},{label:""==(null===F||void 0===F?void 0:F.accounttype)?"Choose":null===F||void 0===F?void 0:F.accounttype})),options:G,onChange:(e,a)=>{console.log("ac type",a),a?(T((0,l.A)((0,l.A)({},F),{},{accounttype:a.label})),setAccount(a),setAccountType(a.label)):setAccount({})},freeSolo:!0})]})})," ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Bank Name"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Bank Name",value:null===F||void 0===F?void 0:F.bankname,onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{bankname:e.target.value})),setBankname(e.target.value)},autoComplete:"off"})]})})," ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"IFSC Code"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"IFSC Code",value:null===F||void 0===F?void 0:F.ifsccode,onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{ifsccode:e.target.value})),setIfsc(e.target.value)},autoComplete:"off"})]})}),(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Branch"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Branch",value:null===F||void 0===F?void 0:F.branch,onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{branch:e.target.value})),setBranch(e.target.value)},autoComplete:"off"})]})})]})}),(0,B.jsx)(C.A,{title:(0,B.jsx)(c.A,{variant:"h4",sx:{m:2},children:"Vehicle Details"}),children:(0,B.jsxs)(p.Ay,{container:!0,spacing:{xs:2,sm:3},children:[(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Vehicle Name"}),(0,B.jsx)(g.A,{renderInput:e=>(0,B.jsx)(m.A,(0,l.A)((0,l.A)({},e),{},{label:""==(null===F||void 0===F?void 0:F.vehiclename)?"Choose":null===F||void 0===F?void 0:F.vehiclename})),options:E,onChange:(e,a)=>{a?(console.log("vehi",a),setVehicle(a),T((0,l.A)((0,l.A)({},F),{},{vehiclename:a.label,vehicleid:a.apptypeid}))):setVehicle({})},freeSolo:!0})]})})," ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Vehicle No"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Vehicle No",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{vehicleno:e.target.value}))},value:null===F||void 0===F?void 0:F.vehicleno,autoComplete:"off"})]})})," ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Model Year"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Model Year",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{model:e.target.value})),setModelyear(e.target.value)},value:null===F||void 0===F?void 0:F.model,autoComplete:"off"})]})})," ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Vehicle Color"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Vehicle Color",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{color:e.target.value})),setVehiclecolor(e.target.value)},value:null===F||void 0===F?void 0:F.color,autoComplete:"off"})]})})," ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"License No"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"License No",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{licenseno:e.target.value}))},value:null===F||void 0===F?void 0:F.licenseno,autoComplete:"off"})]})})," ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Insurance No"}),(0,B.jsx)(m.A,{fullWidth:!0,id:"personal-location",placeholder:"Insurance No",onChange:e=>{T((0,l.A)((0,l.A)({},F),{},{insuranceno:e.target.value}))},value:null===F||void 0===F?void 0:F.insuranceno,autoComplete:"off"})]})})," ",(0,B.jsx)(p.Ay,{item:!0,xs:12,sm:6,children:(0,B.jsxs)(r.A,{spacing:1.25,children:[(0,B.jsx)(A.A,{htmlFor:"personal-location",children:"Insurance Expiry Date"}),(0,B.jsx)(j.$,{dateAdapter:f.R,children:(0,B.jsx)(y.l,{label:"Date",value:N()(null===F||void 0===F?void 0:F.insurancedate),onChange:e=>{setExpirydate(N()(e.$d).format("YYYY-MM-DD 00:00:00")),T((0,l.A)((0,l.A)({},F),{},{insurancedate:N()(e.$d).format("YYYY-MM-DD 00:00:00")}))},sx:{width:"100%"}})})]})})]})})]})})}),(0,B.jsx)(h.A,{sx:{position:"sticky",bottom:0,backgroundColor:"secondary.lighter",p:2,zIndex:10,border:" 1px solid ",borderColor:"#E6EBF1",borderTop:"none"},children:(0,B.jsxs)(r.A,{direction:{xs:"column-reverse",sm:"row"},justifyContent:"flex-end",spacing:2,children:[(0,B.jsx)(d.A,{startIcon:(0,B.jsx)(v.A,{}),variant:"outlined",fullWidth:a,onClick:()=>w("/nearle/riders"),children:"Back to Riders"}),(0,B.jsx)(d.A,{variant:"contained",fullWidth:a,onClick:()=>{(async()=>{te(!0),console.log("updated riderData",F),await b.A.put("https://jupiter.nearle.app/live/api/v1/partners/updaterider",{userid:F.userid,contactno:F.contactno,firstname:F.firstname,lastname:F.lastname,email:F.email,address:F.address,suburb:F.suburb,city:F.city,state:F.state,partnerid:F.partnerid,applocationid:F.applocationid,ridersettings:{riderid:F.riderid,userid:F.userid,partnerid:F.partnerid,shiftid:F.shiftid,identificationno:F.identificationno,basefare:F.basefare,additionalkm:F.additionalkm,othercharges:F.othercharges,accountno:F.accountno,accountname:F.accountname,accounttypeid:F.accounttypeid,accounttype:F.accounttype,bankname:F.bankname,ifsccode:F.ifsccode,Branch:F.branch,vehicleid:F.vehicleid,vehiclename:F.vehiclename,vehicleno:F.vehicleno,model:F.model,color:F.color,licenseno:F.licenseno,insurancedate:N()(F.insurancedate).format("YYYY-MM-DD HH:mm:ss")}}).then((e=>{console.log("post response",e),200==e.status?((0,Y.M8)("Updated Sucessfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),T(null),w("/nearle/riders"),te(!1)):((0,Y.M8)("Update Failed",{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:2e3}),te(!1))}))})()},children:"Update"})]})})]})}},94826:(e,a,t)=>{t.d(a,{A:()=>c});var l=t(59254),n=t(46639),o=t(62217),s=t(44414);const i=(0,l.Ay)("div")((()=>({position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2001,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0.7)",padding:"20px",borderRadius:"10px"}))),r=(0,l.Ay)("div")((()=>({position:"absolute",width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center"}))),c=()=>(0,s.jsxs)(i,{children:[(0,s.jsx)(n.A,{color:"primary",size:80,thickness:6}),(0,s.jsx)(r,{children:(0,s.jsx)("img",{src:o,alt:"Logo",style:{width:"100%",height:"100%"}})})]})}}]); \ No newline at end of file diff --git a/build/static/js/9027.574b1256.chunk.js b/build/static/js/9027.574b1256.chunk.js deleted file mode 100644 index f5abcd9..0000000 --- a/build/static/js/9027.574b1256.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9027],{4159:function(t){t.exports=function(){"use strict";var t=1e3,e=6e4,s=36e5,i="millisecond",n="second",r="minute",a="hour",u="day",o="week",c="month",h="quarter",l="year",f="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],s=t%100;return"["+t+(e[(s-20)%10]||e[s]||e[0])+"]"}},m=function(t,e,s){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(s)+t},$={s:m,z:function(t){var e=-t.utcOffset(),s=Math.abs(e),i=Math.floor(s/60),n=s%60;return(e<=0?"+":"-")+m(i,2,"0")+":"+m(n,2,"0")},m:function t(e,s){if(e.date()1)return t(a[0])}else{var u=e.name;y[u]=e,n=u}return!i&&n&&(b=n),n||!i&&b},O=function(t,e){if(w(t))return t.clone();var s="object"==typeof e?e:{};return s.date=t,s.args=arguments,new k(s)},S=$;S.l=M,S.i=w,S.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function A(t){this.$L=M(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[g]=!0}var m=A.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,s=t.utc;if(null===e)return new Date(NaN);if(S.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(p);if(i){var n=i[2]-1||0,r=(i[7]||"0").substring(0,3);return s?new Date(Date.UTC(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,r)):new Date(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,r)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return S},m.isValid=function(){return!(this.$d.toString()===d)},m.isSame=function(t,e){var s=O(t);return this.startOf(e)<=s&&s<=this.endOf(e)},m.isAfter=function(t,e){return O(t){"use strict";s.d(e,{m:()=>u});var i=s(464),n=s(69995),r=s(2527),a=s(9950);const u=(0,i.wk)((function(t,e){const s=new r.Tooltip(t,e.overlayContainer);return(0,n.Q)(s,e)}),(function(t,e,s,i){let{position:n}=s;(0,a.useEffect)((function(){const s=e.overlayContainer;if(null==s)return;const{instance:r}=t,a=t=>{t.tooltip===r&&(null!=n&&r.setLatLng(n),r.update(),i(!0))},u=t=>{t.tooltip===r&&i(!1)};return s.on({tooltipopen:a,tooltipclose:u}),s.bindTooltip(r),function(){s.off({tooltipopen:a,tooltipclose:u}),null!=s._map&&s.unbindTooltip()}}),[t,e,i,n])}))},36150:(t,e,s)=>{"use strict";s.d(e,{I:()=>r});var i=s(69347),n=s(1729);function r(t,e){return(0,n.t)(t,i.$,e)}},36687:(t,e,s)=>{"use strict";s.d(e,{E:()=>T});var i,n,r,a,u,o,c,h,l,f,d,p=s(80045),v=s(9950),A=s(39790),m=s(55149),$=s(64137),b=s(83568),y=s(53167),g=s(15941),w=s(69347),M=s(95732),O=s(61664);function S(t,e){return t.filter((t=>!e.includes(t)))}var k=(i=new WeakMap,n=new WeakMap,r=new WeakMap,a=new WeakMap,u=new WeakMap,o=new WeakMap,c=new WeakSet,h=new WeakSet,l=new WeakSet,f=new WeakSet,d=new WeakSet,class extends M.Q{constructor(t,e,s){super(),(0,A.A)(this,d),(0,A.A)(this,f),(0,A.A)(this,l),(0,A.A)(this,h),(0,A.A)(this,c),(0,m.A)(this,i,{writable:!0,value:void 0}),(0,m.A)(this,n,{writable:!0,value:void 0}),(0,m.A)(this,r,{writable:!0,value:void 0}),(0,m.A)(this,a,{writable:!0,value:void 0}),(0,m.A)(this,u,{writable:!0,value:void 0}),(0,m.A)(this,o,{writable:!0,value:void 0}),(0,y.A)(this,i,t),(0,y.A)(this,r,[]),(0,y.A)(this,a,[]),(0,b.A)(this,c,D).call(this,[]),this.setQueries(e,s)}onSubscribe(){1===this.listeners.size&&(0,$.A)(this,a).forEach((t=>{t.subscribe((e=>{(0,b.A)(this,f,E).call(this,t,e)}))}))}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,(0,$.A)(this,a).forEach((t=>{t.destroy()}))}setQueries(t,e,s){(0,y.A)(this,r,t),(0,y.A)(this,u,e),g.j.batch((()=>{const t=(0,$.A)(this,a),e=(0,b.A)(this,l,P).call(this,(0,$.A)(this,r));e.forEach((t=>t.observer.setOptions(t.defaultedQueryOptions,s)));const i=e.map((t=>t.observer)),n=i.map((t=>t.getCurrentResult())),u=i.some(((e,s)=>e!==t[s]));(t.length!==i.length||u)&&((0,y.A)(this,a,i),(0,b.A)(this,c,D).call(this,n),this.hasListeners()&&(S(t,i).forEach((t=>{t.destroy()})),S(i,t).forEach((t=>{t.subscribe((e=>{(0,b.A)(this,f,E).call(this,t,e)}))})),(0,b.A)(this,d,x).call(this)))}))}getCurrentResult(){return(0,$.A)(this,o)}getQueries(){return(0,$.A)(this,a).map((t=>t.getCurrentQuery()))}getObservers(){return(0,$.A)(this,a)}getOptimisticResult(t,e){const s=(0,b.A)(this,l,P).call(this,t),i=s.map((t=>t.observer.getOptimisticResult(t.defaultedQueryOptions)));return[i,t=>(0,b.A)(this,h,C).call(this,null!==t&&void 0!==t?t:i,e),()=>s.map(((t,e)=>{const s=i[e];return t.defaultedQueryOptions.notifyOnChangeProps?s:t.observer.trackResult(s)}))]}});function D(t){var e;(0,y.A)(this,n,t),(0,y.A)(this,o,(0,b.A)(this,h,C).call(this,t,null===(e=(0,$.A)(this,u))||void 0===e?void 0:e.combine))}function C(t,e){return e?(0,O.BH)((0,$.A)(this,o),e(t)):t}function P(t){const e=(0,$.A)(this,a),s=new Map(e.map((t=>[t.options.queryHash,t]))),n=t.map((t=>(0,$.A)(this,i).defaultQueryOptions(t))),r=n.flatMap((t=>{const e=s.get(t.queryHash);return null!=e?[{defaultedQueryOptions:t,observer:e}]:[]})),u=new Set(r.map((t=>t.defaultedQueryOptions.queryHash))),o=n.filter((t=>!u.has(t.queryHash))),c=t=>{const e=(0,$.A)(this,i).defaultQueryOptions(t),s=(0,$.A)(this,a).find((t=>t.options.queryHash===e.queryHash));return null!==s&&void 0!==s?s:new w.$((0,$.A)(this,i),e)},h=o.map((t=>({defaultedQueryOptions:t,observer:c(t)})));return r.concat(h).sort(((t,e)=>n.indexOf(t.defaultedQueryOptions)-n.indexOf(e.defaultedQueryOptions)))}function E(t,e){const s=(0,$.A)(this,a).indexOf(t);-1!==s&&((0,b.A)(this,c,D).call(this,function(t,e,s){const i=t.slice(0);return i[e]=s,i}((0,$.A)(this,n),s,e)),(0,b.A)(this,d,x).call(this))}function x(){g.j.batch((()=>{this.listeners.forEach((t=>{t((0,$.A)(this,n))}))}))}var W=s(15441),_=s(30618),Q=s(45904),L=s(80958),R=s(73895);const H=["queries"];function T(t,e){let{queries:s}=t,i=(0,p.A)(t,H);const n=(0,W.jE)(e),r=(0,_.w)(),a=(0,Q.h)(),u=v.useMemo((()=>s.map((t=>{const e=n.defaultQueryOptions(t);return e._optimisticResults=r?"isRestoring":"optimistic",e}))),[s,n,r]);u.forEach((t=>{(0,R.tu)(t),(0,L.LJ)(t,a)})),(0,L.wZ)(a);const[o]=v.useState((()=>new k(n,u,i))),[c,h,l]=o.getOptimisticResult(u,i.combine);v.useSyncExternalStore(v.useCallback((t=>r?()=>{}:o.subscribe(g.j.batchCalls(t))),[o,r]),(()=>o.getCurrentResult()),(()=>o.getCurrentResult())),v.useEffect((()=>{o.setQueries(u,i,{listeners:!1})}),[u,i,o]);const f=c.some(((t,e)=>(0,R.EU)(u[e],t)))?c.flatMap(((t,e)=>{const s=u[e];if(s){const e=new w.$(n,s);if((0,R.EU)(s,t))return(0,R.iL)(s,e,a);(0,R.nE)(t,r)&&(0,R.iL)(s,e,a)}return[]})):[];if(f.length>0)throw Promise.all(f);const d=c.find(((t,e)=>{const s=u[e];return s&&(0,L.$1)({result:t,errorResetBoundary:a,throwOnError:s.throwOnError,query:n.getQueryCache().get(s.queryHash)})}));if(null!==d&&void 0!==d&&d.error)throw d.error;return h(l())}},37119:(t,e,s)=>{"use strict";s.d(e,{p:()=>r});var i=s(464),n=s(2527);const r=(0,i.T7)((function(t){return new n.Control.Zoom(t)}))},48513:(t,e,s)=>{"use strict";s.d(e,{z:()=>u});var i=s(464),n=s(69995),r=s(2527),a=s(9950);const u=(0,i.wk)((function(t,e){const s=new r.Popup(t,e.overlayContainer);return(0,n.Q)(s,e)}),(function(t,e,s,i){let{position:n}=s;(0,a.useEffect)((function(){const{instance:s}=t;function r(t){t.popup===s&&(s.update(),i(!0))}function a(t){t.popup===s&&i(!1)}return e.map.on({popupopen:r,popupclose:a}),null==e.overlayContainer?(null!=n&&s.setLatLng(n),s.openOn(e.map)):e.overlayContainer.bindPopup(s),function(){var t;e.map.off({popupopen:r,popupclose:a}),null===(t=e.overlayContainer)||void 0===t||t.unbindPopup(),e.map.removeLayer(s)}}),[t,e,i,n])}))},51778:(t,e,s)=>{"use strict";s.d(e,{n:()=>S});var i,n,r,a,u,o,c=s(89379),h=s(9950),l=s(39790),f=s(55149),d=s(64137),p=s(83568),v=s(53167),A=s(92750),m=s(15941),$=s(95732),b=s(61664),y=(i=new WeakMap,n=new WeakMap,r=new WeakMap,a=new WeakMap,u=new WeakSet,o=new WeakSet,class extends $.Q{constructor(t,e){super(),(0,l.A)(this,o),(0,l.A)(this,u),(0,f.A)(this,i,{writable:!0,value:void 0}),(0,f.A)(this,n,{writable:!0,value:void 0}),(0,f.A)(this,r,{writable:!0,value:void 0}),(0,f.A)(this,a,{writable:!0,value:void 0}),(0,v.A)(this,n,void 0),(0,v.A)(this,i,t),this.setOptions(e),this.bindMethods(),(0,p.A)(this,u,g).call(this)}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).defaultMutationOptions(t),(0,b.f8)(s,this.options)||(0,d.A)(this,i).getMutationCache().notify({type:"observerOptionsUpdated",mutation:(0,d.A)(this,r),observer:this}),null===(e=(0,d.A)(this,r))||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,r))||void 0===t||t.removeObserver(this))}onMutationUpdate(t){(0,p.A)(this,u,g).call(this),(0,p.A)(this,o,w).call(this,t)}getCurrentResult(){return(0,d.A)(this,n)}reset(){var t;null===(t=(0,d.A)(this,r))||void 0===t||t.removeObserver(this),(0,v.A)(this,r,void 0),(0,p.A)(this,u,g).call(this),(0,p.A)(this,o,w).call(this)}mutate(t,e){var s;return(0,v.A)(this,a,e),null===(s=(0,d.A)(this,r))||void 0===s||s.removeObserver(this),(0,v.A)(this,r,(0,d.A)(this,i).getMutationCache().build((0,d.A)(this,i),this.options)),(0,d.A)(this,r).addObserver(this),(0,d.A)(this,r).execute(t)}});function g(){var t,e;const s=null!==(t=null===(e=(0,d.A)(this,r))||void 0===e?void 0:e.state)&&void 0!==t?t:(0,A.$)();(0,v.A)(this,n,(0,c.A)((0,c.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 w(t){m.j.batch((()=>{if((0,d.A)(this,a)&&this.hasListeners()){const l=(0,d.A)(this,n).variables,f=(0,d.A)(this,n).context;var e,s,i,r;if("success"===(null===t||void 0===t?void 0:t.type))null===(e=(s=(0,d.A)(this,a)).onSuccess)||void 0===e||e.call(s,t.data,l,f),null===(i=(r=(0,d.A)(this,a)).onSettled)||void 0===i||i.call(r,t.data,null,l,f);else if("error"===(null===t||void 0===t?void 0:t.type)){var u,o,c,h;null===(u=(o=(0,d.A)(this,a)).onError)||void 0===u||u.call(o,t.error,l,f),null===(c=(h=(0,d.A)(this,a)).onSettled)||void 0===c||c.call(h,void 0,t.error,l,f)}}this.listeners.forEach((t=>{t((0,d.A)(this,n))}))}))}var M=s(15441),O=s(98986);function S(t,e){const s=(0,M.jE)(e),[i]=h.useState((()=>new y(s,t)));h.useEffect((()=>{i.setOptions(t)}),[i,t]);const n=h.useSyncExternalStore(h.useCallback((t=>i.subscribe(m.j.batchCalls(t))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),r=h.useCallback(((t,e)=>{i.mutate(t,e).catch(k)}),[i]);if(n.error&&(0,O.G)(i.options.throwOnError,[n.error]))throw n.error;return(0,c.A)((0,c.A)({},n),{},{mutate:r,mutateAsync:n.mutate})}function k(){}},60010:(t,e,s)=>{"use strict";s.d(e,{q:()=>o});var i=s(89379),n=s(69347),r=s(45247),a=class extends n.${constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,e){super.setOptions((0,i.A)((0,i.A)({},t),{},{behavior:(0,r.PL)()}),e)}getOptimisticResult(t){return t.behavior=(0,r.PL)(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch((0,i.A)((0,i.A)({},t),{},{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(t){return this.fetch((0,i.A)((0,i.A)({},t),{},{meta:{fetchMore:{direction:"backward"}}}))}createResult(t,e){var s,n;const{state:a}=t,u=super.createResult(t,e),{isFetching:o,isRefetching:c}=u,h=o&&"forward"===(null===(s=a.fetchMeta)||void 0===s||null===(s=s.fetchMore)||void 0===s?void 0:s.direction),l=o&&"backward"===(null===(n=a.fetchMeta)||void 0===n||null===(n=n.fetchMore)||void 0===n?void 0:n.direction);return(0,i.A)((0,i.A)({},u),{},{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,r.rB)(e,a.data),hasPreviousPage:(0,r.RQ)(e,a.data),isFetchingNextPage:h,isFetchingPreviousPage:l,isRefetching:c&&!h&&!l})}},u=s(1729);function o(t,e){return(0,u.t)(t,a,e)}},98007:(t,e,s)=>{"use strict";s.d(e,{ko:()=>n});var i=s(3388);s(9950);function n(){return(0,i.U$)().map}}}]); \ No newline at end of file diff --git a/build/static/js/1685.d71eee3a.chunk.js b/build/static/js/9027.a72d6971.chunk.js similarity index 99% rename from build/static/js/1685.d71eee3a.chunk.js rename to build/static/js/9027.a72d6971.chunk.js index c4d8d54..91e1cde 100644 --- a/build/static/js/1685.d71eee3a.chunk.js +++ b/build/static/js/9027.a72d6971.chunk.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[1685],{31685:(e,n,t)=>{t.r(n),t.d(n,{CLSThresholds:()=>I,FCPThresholds:()=>S,FIDThresholds:()=>N,INPThresholds:()=>G,LCPThresholds:()=>X,TTFBThresholds:()=>$,getCLS:()=>F,getFCP:()=>P,getFID:()=>R,getINP:()=>W,getLCP:()=>Z,getTTFB:()=>ne,onCLS:()=>F,onFCP:()=>P,onFID:()=>R,onINP:()=>W,onLCP:()=>Z,onTTFB:()=>ne});var r,i,o,a,c,u=-1,s=function(e){addEventListener("pageshow",(function(n){n.persisted&&(u=n.timeStamp,e(n))}),!0)},f=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},d=function(){var e=f();return e&&e.activationStart||0},l=function(e,n){var t=f(),r="navigate";return u>=0?r="back-forward-cache":t&&(document.prerendering||d()>0?r="prerender":document.wasDiscarded?r="restore":t.type&&(r=t.type.replace(/_/g,"-"))),{name:e,value:void 0===n?-1:n,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},p=function(e,n,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){n(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},t||{})),r}}catch(e){}},v=function(e,n,t,r){var i,o;return function(a){n.value>=0&&(a||r)&&((o=n.value-(i||0))||void 0===i)&&(i=n.value,n.delta=o,n.rating=function(e,n){return e>n[1]?"poor":e>n[0]?"needs-improvement":"good"}(n.value,t),e(n))}},m=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},h=function(e){var n=function(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||e(n)};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},g=function(e){var n=!1;return function(t){n||(e(t),n=!0)}},T=-1,y=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},C=function(e){"hidden"===document.visibilityState&&T>-1&&(T="visibilitychange"===e.type?e.timeStamp:0,L())},E=function(){addEventListener("visibilitychange",C,!0),addEventListener("prerenderingchange",C,!0)},L=function(){removeEventListener("visibilitychange",C,!0),removeEventListener("prerenderingchange",C,!0)},w=function(){return T<0&&(T=y(),E(),s((function(){setTimeout((function(){T=y(),E()}),0)}))),{get firstHiddenTime(){return T}}},b=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},S=[1800,3e3],P=function(e,n){n=n||{},b((function(){var t,r=w(),i=l("FCP"),o=p("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(o.disconnect(),e.startTimer.value&&(r.value=i,r.entries=o,t())},c=p("layout-shift",a);c&&(t=v(e,r,I,n.reportAllChanges),h((function(){a(c.takeRecords()),t(!0)})),s((function(){i=0,r=l("CLS",0),t=v(e,r,I,n.reportAllChanges),m((function(){return t()}))})),setTimeout(t,0))})))},A={passive:!0,capture:!0},k=new Date,D=function(e,n){r||(r=n,i=e,o=new Date,x(removeEventListener),M())},M=function(){if(i>=0&&i1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,n){var t=function(){D(e,n),i()},r=function(){i()},i=function(){removeEventListener("pointerup",t,A),removeEventListener("pointercancel",r,A)};addEventListener("pointerup",t,A),addEventListener("pointercancel",r,A)}(n,e):D(n,e)}},x=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(n){return e(n,B,A)}))},N=[100,300],R=function(e,n){n=n||{},b((function(){var t,o=w(),c=l("FID"),u=function(e){e.startTimen.latency){if(t)t.entries.push(e),t.latency=Math.max(t.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};U[r.id]=r,Q.push(r)}Q.sort((function(e,n){return n.latency-e.latency})),Q.splice(10).forEach((function(e){delete U[e.id]}))}},W=function(e,n){n=n||{},b((function(){var t;z();var r,i=l("INP"),o=function(e){e.forEach((function(e){e.interactionId&&V(e),"first-input"===e.entryType&&!Q.some((function(n){return n.entries.some((function(n){return e.duration===n.duration&&e.startTime===n.startTime}))}))&&V(e)}));var n,t=(n=Math.min(Q.length-1,Math.floor(K()/50)),Q[n]);t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,r())},a=p("event",o,{durationThreshold:null!==(t=n.durationThreshold)&&void 0!==t?t:40});r=v(e,i,G,n.reportAllChanges),a&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),h((function(){o(a.takeRecords()),i.value<0&&K()>0&&(i.value=0,i.entries=[]),r(!0)})),s((function(){Q=[],J=j(),i=l("INP"),r=v(e,i,G,n.reportAllChanges)})))}))},X=[2500,4e3],Y={},Z=function(e,n){n=n||{},b((function(){var t,r=w(),i=l("LCP"),o=function(e){var n=e[e.length-1];n&&n.startTimeperformance.now())return;t.value=Math.max(o-d(),0),t.entries=[i],r(!0),s((function(){t=l("TTFB",0),(r=v(e,t,$,n.reportAllChanges))(!0)}))}}))}}}]); \ No newline at end of file +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9027],{59027:(e,n,t)=>{t.r(n),t.d(n,{CLSThresholds:()=>I,FCPThresholds:()=>S,FIDThresholds:()=>N,INPThresholds:()=>G,LCPThresholds:()=>X,TTFBThresholds:()=>$,getCLS:()=>F,getFCP:()=>P,getFID:()=>R,getINP:()=>W,getLCP:()=>Z,getTTFB:()=>ne,onCLS:()=>F,onFCP:()=>P,onFID:()=>R,onINP:()=>W,onLCP:()=>Z,onTTFB:()=>ne});var r,i,o,a,c,u=-1,s=function(e){addEventListener("pageshow",(function(n){n.persisted&&(u=n.timeStamp,e(n))}),!0)},f=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},d=function(){var e=f();return e&&e.activationStart||0},l=function(e,n){var t=f(),r="navigate";return u>=0?r="back-forward-cache":t&&(document.prerendering||d()>0?r="prerender":document.wasDiscarded?r="restore":t.type&&(r=t.type.replace(/_/g,"-"))),{name:e,value:void 0===n?-1:n,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},p=function(e,n,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){n(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},t||{})),r}}catch(e){}},v=function(e,n,t,r){var i,o;return function(a){n.value>=0&&(a||r)&&((o=n.value-(i||0))||void 0===i)&&(i=n.value,n.delta=o,n.rating=function(e,n){return e>n[1]?"poor":e>n[0]?"needs-improvement":"good"}(n.value,t),e(n))}},m=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},h=function(e){var n=function(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||e(n)};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},g=function(e){var n=!1;return function(t){n||(e(t),n=!0)}},T=-1,y=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},C=function(e){"hidden"===document.visibilityState&&T>-1&&(T="visibilitychange"===e.type?e.timeStamp:0,L())},E=function(){addEventListener("visibilitychange",C,!0),addEventListener("prerenderingchange",C,!0)},L=function(){removeEventListener("visibilitychange",C,!0),removeEventListener("prerenderingchange",C,!0)},w=function(){return T<0&&(T=y(),E(),s((function(){setTimeout((function(){T=y(),E()}),0)}))),{get firstHiddenTime(){return T}}},b=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},S=[1800,3e3],P=function(e,n){n=n||{},b((function(){var t,r=w(),i=l("FCP"),o=p("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(o.disconnect(),e.startTimer.value&&(r.value=i,r.entries=o,t())},c=p("layout-shift",a);c&&(t=v(e,r,I,n.reportAllChanges),h((function(){a(c.takeRecords()),t(!0)})),s((function(){i=0,r=l("CLS",0),t=v(e,r,I,n.reportAllChanges),m((function(){return t()}))})),setTimeout(t,0))})))},A={passive:!0,capture:!0},k=new Date,D=function(e,n){r||(r=n,i=e,o=new Date,x(removeEventListener),M())},M=function(){if(i>=0&&i1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,n){var t=function(){D(e,n),i()},r=function(){i()},i=function(){removeEventListener("pointerup",t,A),removeEventListener("pointercancel",r,A)};addEventListener("pointerup",t,A),addEventListener("pointercancel",r,A)}(n,e):D(n,e)}},x=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(n){return e(n,B,A)}))},N=[100,300],R=function(e,n){n=n||{},b((function(){var t,o=w(),c=l("FID"),u=function(e){e.startTimen.latency){if(t)t.entries.push(e),t.latency=Math.max(t.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};U[r.id]=r,Q.push(r)}Q.sort((function(e,n){return n.latency-e.latency})),Q.splice(10).forEach((function(e){delete U[e.id]}))}},W=function(e,n){n=n||{},b((function(){var t;z();var r,i=l("INP"),o=function(e){e.forEach((function(e){e.interactionId&&V(e),"first-input"===e.entryType&&!Q.some((function(n){return n.entries.some((function(n){return e.duration===n.duration&&e.startTime===n.startTime}))}))&&V(e)}));var n,t=(n=Math.min(Q.length-1,Math.floor(K()/50)),Q[n]);t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,r())},a=p("event",o,{durationThreshold:null!==(t=n.durationThreshold)&&void 0!==t?t:40});r=v(e,i,G,n.reportAllChanges),a&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),h((function(){o(a.takeRecords()),i.value<0&&K()>0&&(i.value=0,i.entries=[]),r(!0)})),s((function(){Q=[],J=j(),i=l("INP"),r=v(e,i,G,n.reportAllChanges)})))}))},X=[2500,4e3],Y={},Z=function(e,n){n=n||{},b((function(){var t,r=w(),i=l("LCP"),o=function(e){var n=e[e.length-1];n&&n.startTimeperformance.now())return;t.value=Math.max(o-d(),0),t.entries=[i],r(!0),s((function(){t=l("TTFB",0),(r=v(e,t,$,n.reportAllChanges))(!0)}))}}))}}}]); \ No newline at end of file diff --git a/build/static/js/9054.3ae3e32b.chunk.js b/build/static/js/9054.3ae3e32b.chunk.js deleted file mode 100644 index 6c19e6b..0000000 --- a/build/static/js/9054.3ae3e32b.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9054],{172:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={computeDestinationPoint:!0,convertArea:!0,convertDistance:!0,convertSpeed:!0,decimalToSexagesimal:!0,findNearest:!0,getAreaOfPolygon:!0,getBounds:!0,getBoundsOfDistance:!0,getCenter:!0,getCenterOfBounds:!0,getCompassDirection:!0,getCoordinateKey:!0,getCoordinateKeys:!0,getDistance:!0,getDistanceFromLine:!0,getGreatCircleBearing:!0,getLatitude:!0,getLongitude:!0,getPathLength:!0,getPreciseDistance:!0,getRhumbLineBearing:!0,getRoughCompassDirection:!0,getSpeed:!0,isDecimal:!0,isPointInLine:!0,isPointInPolygon:!0,isPointNearLine:!0,isPointWithinRadius:!0,isSexagesimal:!0,isValidCoordinate:!0,isValidLatitude:!0,isValidLongitude:!0,orderByDistance:!0,sexagesimalToDecimal:!0,toDecimal:!0,toRad:!0,toDeg:!0,wktToPolygon:!0};Object.defineProperty(t,"computeDestinationPoint",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"convertArea",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"convertDistance",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"convertSpeed",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"decimalToSexagesimal",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"findNearest",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"getAreaOfPolygon",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"getBounds",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"getBoundsOfDistance",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"getCenter",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"getCenterOfBounds",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"getCompassDirection",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"getCoordinateKey",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"getCoordinateKeys",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"getDistance",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"getDistanceFromLine",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"getGreatCircleBearing",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"getLatitude",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"getLongitude",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"getPathLength",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"getPreciseDistance",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"getRhumbLineBearing",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"getRoughCompassDirection",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"getSpeed",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"isDecimal",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"isPointInLine",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"isPointInPolygon",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"isPointNearLine",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"isPointWithinRadius",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"isSexagesimal",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"isValidCoordinate",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"isValidLatitude",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"isValidLongitude",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"orderByDistance",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"sexagesimalToDecimal",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"toDecimal",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"toRad",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(t,"toDeg",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(t,"wktToPolygon",{enumerable:!0,get:function(){return z.default}});var a=X(r(27691)),u=X(r(78550)),i=X(r(37300)),o=X(r(19924)),l=X(r(1067)),d=X(r(89503)),s=X(r(43820)),c=X(r(98785)),f=X(r(43519)),h=X(r(65449)),v=X(r(79997)),p=X(r(58969)),g=X(r(59099)),y=X(r(12014)),m=X(r(52011)),b=X(r(59273)),M=X(r(74825)),O=X(r(50304)),_=X(r(58283)),P=X(r(80399)),j=X(r(54808)),S=X(r(84714)),w=X(r(49270)),$=X(r(46929)),N=X(r(56783)),A=X(r(66315)),D=X(r(64855)),k=X(r(97878)),L=X(r(81263)),x=X(r(44763)),C=X(r(15040)),I=X(r(69622)),E=X(r(58097)),W=X(r(14670)),T=X(r(40963)),R=X(r(46004)),B=X(r(52304)),F=X(r(83395)),z=X(r(47717)),Y=r(23729);function X(e){return e&&e.__esModule?e:{default:e}}Object.keys(Y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Y[e]}}))}))},1067:(e,t)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,a=!1,u=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(l){a=!0,u=l}finally{try{n||null==o.return||o.return()}finally{if(a)throw u}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:4,r=Math.pow(10,t);return Math.round(e*r)/r}(60*Number("0."+(o[1]||0))).toString(),s=r(d.split("."),2),c=s[0],f=s[1],h=void 0===f?"0":f;return u+"\xb0 "+l.toString().padStart(2,"0")+"' "+c.padStart(2,"0")+"."+h.padEnd(1,"0")+'"'};t.default=a},4159:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",a="second",u="minute",i="hour",o="day",l="week",d="month",s="quarter",c="year",f="date",h="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},y=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},m={s:y,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),a=r%60;return(t<=0?"+":"-")+y(n,2,"0")+":"+y(a,2,"0")},m:function e(t,r){if(t.date()1)return e(i[0])}else{var o=t.name;M[o]=t,a=o}return!n&&a&&(b=a),a||!n&&b},j=function(e,t){if(_(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new w(r)},S=m;S.l=P,S.i=_,S.w=function(e,t){return j(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function g(e){this.$L=P(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[O]=!0}var y=g.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(v);if(n){var a=n[2]-1||0,u=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,u)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,u)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return S},y.isValid=function(){return!(this.$d.toString()===h)},y.isSame=function(e,t){var r=j(e);return this.startOf(t)<=r&&r<=this.endOf(t)},y.isAfter=function(e,t){return j(e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=r(23729),u=(n=r(59099))&&n.__esModule?n:{default:n};function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{longitude:a.longitudeKeys,latitude:a.latitudeKeys,altitude:a.altitudeKeys},r=(0,u.default)(e,t.longitude),n=(0,u.default)(e,t.latitude),l=(0,u.default)(e,t.altitude);return function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(52011))&&n.__esModule?n:{default:n};var u=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.default;return r="function"===typeof r?r:a.default,t.slice().sort((function(t,n){return r(e,t)-r(e,n)}))};t.default=u},15040:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(12014)),a=i(r(69622)),u=i(r(58097));function i(e){return e&&e.__esModule?e:{default:e}}var o=function(e){var t=(0,n.default)(e),r=t.latitude,i=t.longitude;if(Array.isArray(e)&&e.length>=2)return(0,u.default)(e[0])&&(0,a.default)(e[1]);if("undefined"===typeof r||"undefined"===typeof i)return!1;var o=e[i],l=e[r];return"undefined"!==typeof l&&"undefined"!==typeof o&&(!1!==(0,a.default)(l)&&!1!==(0,u.default)(o))};t.default=o},19924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(23729),a=function(e){switch(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"kmh"){case"kmh":return e*n.timeConversion.h*n.distanceConversion.km;case"mph":return e*n.timeConversion.h*n.distanceConversion.mi;default:return e}};t.default=a},23729:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.areaConversion=t.timeConversion=t.distanceConversion=t.altitudeKeys=t.latitudeKeys=t.longitudeKeys=t.MAXLON=t.MINLON=t.MAXLAT=t.MINLAT=t.earthRadius=t.sexagesimalPattern=void 0;t.sexagesimalPattern=/^([0-9]{1,3})\xb0\s*([0-9]{1,3}(?:\.(?:[0-9]{1,}))?)['\u2032]\s*(([0-9]{1,3}(\.([0-9]{1,}))?)["\u2033]\s*)?([NEOSW]?)$/;t.earthRadius=6378137;t.MINLAT=-90;t.MAXLAT=90;t.MINLON=-180;t.MAXLON=180;t.longitudeKeys=["lng","lon","longitude",0];t.latitudeKeys=["lat","latitude",1];t.altitudeKeys=["alt","altitude","elevation","elev",2];t.distanceConversion={m:1,km:.001,cm:100,mm:1e3,mi:1/1609.344,sm:1/1852.216,ft:100/30.48,in:100/2.54,yd:1/.9144};t.timeConversion={m:60,h:3600,d:86400};var r={m2:1,km2:1e-6,ha:1e-4,a:.01,ft2:10.763911,yd2:1.19599,in2:1550.0031};t.areaConversion=r,r.sqm=r.m2,r.sqkm=r.km2,r.sqft=r.ft2,r.sqyd=r.yd2,r.sqin=r.in2},27691:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(r(50304)),a=l(r(58283)),u=l(r(52304)),i=l(r(83395)),o=r(23729);function l(e){return e&&e.__esModule?e:{default:e}}var d=function(e,t,r){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:6371e3,d=(0,n.default)(e),s=(0,a.default)(e),c=t/l,f=(0,u.default)(r),h=(0,u.default)(d),v=(0,u.default)(s),p=Math.asin(Math.sin(h)*Math.cos(c)+Math.cos(h)*Math.sin(c)*Math.cos(f)),g=v+Math.atan2(Math.sin(f)*Math.sin(c)*Math.cos(h),Math.cos(c)-Math.sin(h)*Math.sin(p)),y=(0,i.default)(g);return(yo.MAXLON)&&(g=(g+3*Math.PI)%(2*Math.PI)-Math.PI,y=(0,i.default)(g)),{latitude:(0,i.default)(p),longitude:y}};t.default=d},37300:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(23729),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m",r=n.distanceConversion[t];if(r)return e*r;throw new Error("Invalid unit used for distance conversion.")};t.default=a},37324:(e,t,r)=>{"use strict";r.d(t,{A:()=>P});var n=r(98587),a=r(58168),u=r(9950),i=r(72004),o=r(3484),l=r(99269),d=r(89548),s=r(46282),c=r(59254),f=r(18463),h=r(45558),v=r(1614);function p(e){return(0,v.Ay)("MuiSwitch",e)}const g=(0,h.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var y=r(44414);const m=["className","color","edge","size","sx"],b=(0,c.Ay)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t["edge".concat((0,d.A)(r.edge))],t["size".concat((0,d.A)(r.size))]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,["& .".concat(g.thumb)]:{width:16,height:16},["& .".concat(g.switchBase)]:{padding:4,["&.".concat(g.checked)]:{transform:"translateX(16px)"}}}}]}),M=(0,c.Ay)(s.A,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{["& .".concat(g.input)]:t.input},"default"!==r.color&&t["color".concat((0,d.A)(r.color))]]}})((e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:"".concat("light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]),transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),["&.".concat(g.checked)]:{transform:"translateX(20px)"},["&.".concat(g.disabled)]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:"".concat("light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600])},["&.".concat(g.checked," + .").concat(g.track)]:{opacity:.5},["&.".concat(g.disabled," + .").concat(g.track)]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:"".concat("light"===t.palette.mode?.12:.2)},["& .".concat(g.input)]:{left:"-100%",width:"300%"}}}),(e=>{let{theme:t}=e;return{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[r]=e;return{props:{color:r},style:{["&.".concat(g.checked)]:{color:(t.vars||t).palette[r].main,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.X4)(t.palette[r].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(g.disabled)]:{color:t.vars?t.vars.palette.Switch["".concat(r,"DisabledColor")]:"".concat("light"===t.palette.mode?(0,l.a)(t.palette[r].main,.62):(0,l.e$)(t.palette[r].main,.55))}},["&.".concat(g.checked," + .").concat(g.track)]:{backgroundColor:(t.vars||t).palette[r].main}}}}))]}})),O=(0,c.Ay)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}})),_=(0,c.Ay)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),P=u.forwardRef((function(e,t){const r=(0,f.b)({props:e,name:"MuiSwitch"}),{className:u,color:l="primary",edge:s=!1,size:c="medium",sx:h}=r,v=(0,n.A)(r,m),g=(0,a.A)({},r,{color:l,edge:s,size:c}),P=(e=>{const{classes:t,edge:r,size:n,color:u,checked:i,disabled:l}=e,s={root:["root",r&&"edge".concat((0,d.A)(r)),"size".concat((0,d.A)(n))],switchBase:["switchBase","color".concat((0,d.A)(u)),i&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=(0,o.A)(s,p,t);return(0,a.A)({},t,c)})(g),j=(0,y.jsx)(_,{className:P.thumb,ownerState:g});return(0,y.jsxs)(b,{className:(0,i.A)(P.root,u),sx:h,ownerState:g,children:[(0,y.jsx)(M,(0,a.A)({type:"checkbox",icon:j,checkedIcon:j,ref:t,ownerState:g},v,{classes:(0,a.A)({},P,{root:P.switchBase})})),(0,y.jsx)(O,{className:P.track,ownerState:g})]})}))},40963:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(23729),a=function(e){var t=new RegExp(n.sexagesimalPattern).exec(e.toString().trim());if("undefined"===typeof t||null===t)throw new Error("Given value is not in sexagesimal format");var r=Number(t[2])/60||0,a=Number(t[4])/3600||0,u=parseFloat(t[1])+r+a;return["S","W"].includes(t[7])?-u:u};t.default=a},43519:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(r(50304)),a=l(r(58283)),u=l(r(52304)),i=l(r(83395)),o=r(23729);function l(e){return e&&e.__esModule?e:{default:e}}var d=function(e,t){var r,l,d=(0,n.default)(e),s=(0,a.default)(e),c=(0,u.default)(d),f=(0,u.default)(s),h=t/o.earthRadius,v=c-h,p=c+h,g=(0,u.default)(o.MAXLAT),y=(0,u.default)(o.MINLAT),m=(0,u.default)(o.MAXLON),b=(0,u.default)(o.MINLON);if(v>y&&pm&&(l-=2*Math.PI)}else v=Math.max(v,y),p=Math.min(p,g),r=b,l=m;return[{latitude:(0,i.default)(v),longitude:(0,i.default)(r)},{latitude:(0,i.default)(p),longitude:(0,i.default)(l)}]};t.default=d},43820:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(52304)),a=o(r(50304)),u=o(r(58283)),i=r(23729);function o(e){return e&&e.__esModule?e:{default:e}}var l=function(e){var t=0;if(e.length>2){for(var r,o,l,d=0;d{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(23729),a=function(e){return n.sexagesimalPattern.test(e.toString().trim())};t.default=a},46004:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(r(56783)),a=l(r(44763)),u=l(r(40963)),i=l(r(15040)),o=l(r(12014));function l(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(52011))&&n.__esModule?n:{default:n};var u=function(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.default)(e,t)/(Number(t.time)-Number(e.time))*1e3};t.default=u},47717:(e,t)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,a=!1,u=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(l){a=!0,u=l}finally{try{n||null==o.return||o.return()}finally{if(a)throw u}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return/^(NNE|NE|NNW|N)$/.test(e)?"N":/^(ENE|E|ESE|SE)$/.test(e)?"E":/^(SSE|S|SSW|SW)$/.test(e)?"S":/^(WSW|W|WNW|NW)$/.test(e)?"W":void 0};t.default=r},50304:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(23729),a=i(r(59099)),u=i(r(46004));function i(e){return e&&e.__esModule?e:{default:e}}var o=function(e,t){var r=(0,a.default)(e,n.latitudeKeys);if("undefined"!==typeof r&&null!==r){var i=e[r];return!0===t?i:(0,u.default)(i)}};t.default=o},52011:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(r(50304)),a=l(r(58283)),u=l(r(52304)),i=l(r(97029)),o=r(23729);function l(e){return e&&e.__esModule?e:{default:e}}var d=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;r="undefined"===typeof r||isNaN(r)?1:r;var l=(0,n.default)(e),d=(0,a.default)(e),s=(0,n.default)(t),c=(0,a.default)(t),f=Math.acos((0,i.default)(Math.sin((0,u.default)(s))*Math.sin((0,u.default)(l))+Math.cos((0,u.default)(s))*Math.cos((0,u.default)(l))*Math.cos((0,u.default)(d)-(0,u.default)(c))))*o.earthRadius;return Math.round(f/r)*r};t.default=d},52304:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e*Math.PI/180};t.default=r},54808:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(50304)),a=o(r(58283)),u=o(r(52304)),i=r(23729);function o(e){return e&&e.__esModule?e:{default:e}}var l=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;r="undefined"===typeof r||isNaN(r)?1:r;var o,l,d,s,c,f,h,v=(0,n.default)(e),p=(0,a.default)(e),g=(0,n.default)(t),y=(0,a.default)(t),m=6356752.314245,b=1/298.257223563,M=(0,u.default)(y-p),O=Math.atan((1-b)*Math.tan((0,u.default)(parseFloat(v)))),_=Math.atan((1-b)*Math.tan((0,u.default)(parseFloat(g)))),P=Math.sin(O),j=Math.cos(O),S=Math.sin(_),w=Math.cos(_),$=M,N=100;do{var A=Math.sin($),D=Math.cos($);if(0===(f=Math.sqrt(w*A*(w*A)+(j*S-P*w*D)*(j*S-P*w*D))))return 0;o=P*S+j*w*D,l=Math.atan2(f,o),c=o-2*P*S/(s=1-(d=j*w*A/f)*d),isNaN(c)&&(c=0);var k=b/16*s*(4+b*(4-3*s));h=$,$=M+(1-k)*b*d*(l+k*f*(c+k*o*(2*c*c-1)))}while(Math.abs($-h)>1e-12&&--N>0);if(0===N)return NaN;var L=s*(i.earthRadius*i.earthRadius-m*m)/(m*m),x=L/1024*(256+L*(L*(74-47*L)-128)),C=m*(1+L/16384*(4096+L*(L*(320-175*L)-768)))*(l-x*f*(c+x/4*(o*(2*c*c-1)-x/6*c*(4*f*f-3)*(4*c*c-3))));return Math.round(C/r)*r};t.default=l},56783:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){var t=e.toString().trim();return!isNaN(parseFloat(t))&&parseFloat(t)===Number(t)};t.default=r},58097:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(56783)),a=o(r(44763)),u=o(r(40963)),i=r(23729);function o(e){return e&&e.__esModule?e:{default:e}}var l=function e(t){return(0,n.default)(t)?!(parseFloat(t)>i.MAXLON||t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(23729),a=i(r(59099)),u=i(r(46004));function i(e){return e&&e.__esModule?e:{default:e}}var o=function(e,t){var r=(0,a.default)(e,n.longitudeKeys);if("undefined"!==typeof r&&null!==r){var i=e[r];return!0===t?i:(0,u.default)(i)}};t.default=o},58969:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(84714))&&n.__esModule?n:{default:n};var u=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.default,n="function"===typeof r?r(e,t):(0,a.default)(e,t);if(isNaN(n))throw new Error("Could not calculate bearing for given points. Check your bearing function");switch(Math.round(n/22.5)){case 1:return"NNE";case 2:return"NE";case 3:return"ENE";case 4:return"E";case 5:return"ESE";case 6:return"SE";case 7:return"SSE";case 8:return"S";case 9:return"SSW";case 10:return"SW";case 11:return"WSW";case 12:return"W";case 13:return"WNW";case 14:return"NW";case 15:return"NNW";default:return"N"}};t.default=u},59099:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){return t.reduce((function(t,r){if("undefined"===typeof e||null===e)throw new Error("'".concat(e,"' is no valid coordinate."));return Object.prototype.hasOwnProperty.call(e,r)&&"undefined"!==typeof r&&"undefined"===typeof t?(t=r,r):t}),void 0)};t.default=r},59273:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(r(52011)),a=u(r(97029));function u(e){return e&&e.__esModule?e:{default:e}}var i=function(e,t,r){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=(0,n.default)(t,e,u),o=(0,n.default)(e,r,u),l=(0,n.default)(t,r,u),d=Math.acos((0,a.default)((i*i+l*l-o*o)/(2*i*l))),s=Math.acos((0,a.default)((o*o+l*l-i*i)/(2*o*l)));return d>Math.PI/2?i:s>Math.PI/2?o:Math.sin(d)*i};t.default=i},64855:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(r(50304)),a=u(r(58283));function u(e){return e&&e.__esModule?e:{default:e}}var i=function(e,t){for(var r=!1,u=t.length,i=-1,o=u-1;++i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(50304)),a=o(r(58283)),u=o(r(52304)),i=o(r(83395));function o(e){return e&&e.__esModule?e:{default:e}}var l=function(e){if(!1===Array.isArray(e)||0===e.length)return!1;var t=e.length,r=e.reduce((function(e,t){var r=(0,u.default)((0,n.default)(t)),i=(0,u.default)((0,a.default)(t));return{X:e.X+Math.cos(r)*Math.cos(i),Y:e.Y+Math.cos(r)*Math.sin(i),Z:e.Z+Math.sin(r)}}),{X:0,Y:0,Z:0}),o=r.X/t,l=r.Y/t,d=r.Z/t;return{longitude:(0,i.default)(Math.atan2(l,o)),latitude:(0,i.default)(Math.atan2(d,Math.sqrt(o*o+l*l)))}};t.default=l},66315:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(52011))&&n.__esModule?n:{default:n};var u=function(e,t,r){return(0,a.default)(t,e)+(0,a.default)(e,r)===(0,a.default)(t,r)};t.default=u},69622:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(56783)),a=o(r(44763)),u=o(r(40963)),i=r(23729);function o(e){return e&&e.__esModule?e:{default:e}}var l=function e(t){return(0,n.default)(t)?!(parseFloat(t)>i.MAXLAT||t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(50304)),a=o(r(58283)),u=o(r(52304)),i=o(r(83395));function o(e){return e&&e.__esModule?e:{default:e}}var l=function(e,t){var r=(0,n.default)(t),o=(0,a.default)(t),l=(0,n.default)(e),d=(0,a.default)(e);return((0,i.default)(Math.atan2(Math.sin((0,u.default)(o)-(0,u.default)(d))*Math.cos((0,u.default)(r)),Math.cos((0,u.default)(l))*Math.sin((0,u.default)(r))-Math.sin((0,u.default)(l))*Math.cos((0,u.default)(r))*Math.cos((0,u.default)(o)-(0,u.default)(d))))+360)%360};t.default=l},76746:(e,t,r)=>{"use strict";var n=r(24994);t.A=void 0;var a=n(r(79526)),u=r(44414);t.A=(0,a.default)((0,u.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"HighlightOff")},78550:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(23729),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m",r=n.areaConversion[t];if(r)return e*r;throw new Error("Invalid unit used for area conversion.")};t.default=a},79997:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(98785))&&n.__esModule?n:{default:n};var u=function(e){var t=(0,a.default)(e),r=t.minLat+(t.maxLat-t.minLat)/2,n=t.minLng+(t.maxLng-t.minLng)/2;return{latitude:parseFloat(r.toFixed(6)),longitude:parseFloat(n.toFixed(6))}};t.default=u},80399:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(52011))&&n.__esModule?n:{default:n};function u(e){return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default;return e.reduce((function(e,r){return"object"===u(e)&&null!==e.last&&(e.distance+=t(r,e.last)),e.last=r,e}),{last:null,distance:0}).distance};t.default=i},81263:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(52011))&&n.__esModule?n:{default:n};var u=function(e,t,r){return(0,a.default)(e,t,.01){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return 180*e/Math.PI};t.default=r},84714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(50304)),a=o(r(58283)),u=o(r(52304)),i=o(r(83395));function o(e){return e&&e.__esModule?e:{default:e}}var l=function(e,t){var r=(0,u.default)((0,a.default)(t))-(0,u.default)((0,a.default)(e)),o=Math.log(Math.tan((0,u.default)((0,n.default)(t))/2+Math.PI/4)/Math.tan((0,u.default)((0,n.default)(e))/2+Math.PI/4));return Math.abs(r)>Math.PI&&(r=r>0?-1*(2*Math.PI-r):2*Math.PI+r),((0,i.default)(Math.atan2(r,o))+360)%360};t.default=l},89503:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(14670))&&n.__esModule?n:{default:n};var u=function(e,t){return(0,a.default)(e,t)[0]};t.default=u},97029:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e>1?1:e<-1?-1:e};t.default=r},97878:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(59273))&&n.__esModule?n:{default:n};var u=function(e,t,r,n){return(0,a.default)(e,t,r){"use strict";r.d(t,{ko:()=>a});var n=r(3388);r(9950);function a(){return(0,n.U$)().map}},98785:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(r(50304)),a=u(r(58283));function u(e){return e&&e.__esModule?e:{default:e}}var i=function(e){if(!1===Array.isArray(e)||0===e.length)throw new Error("No points were given.");return e.reduce((function(e,t){var r=(0,n.default)(t),u=(0,a.default)(t);return{maxLat:Math.max(r,e.maxLat),minLat:Math.min(r,e.minLat),maxLng:Math.max(u,e.maxLng),minLng:Math.min(u,e.minLng)}}),{maxLat:-1/0,minLat:1/0,maxLng:-1/0,minLng:1/0})};t.default=i}}]); \ No newline at end of file diff --git a/build/static/js/9062.f38a5265.chunk.js b/build/static/js/9062.f38a5265.chunk.js new file mode 100644 index 0000000..eb6c705 --- /dev/null +++ b/build/static/js/9062.f38a5265.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9062],{855:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(68106),i=n(82522),o=n(65908);function s(e){var t,n;let s,a,{children:c,type:l="scale",direction:d="right",offset:m=10,scale:h={hover:1.05,tap:.95}}=e;switch(d){case"up":case"left":s=m,a=0;break;default:s=0,a=m}const[p,u]=(0,r.Y)(s,a),[x,g]=(0,r.Y)(s,a);switch(l){case"rotate":return(0,o.jsx)(i.P.div,{animate:{rotate:360},transition:{repeat:1/0,repeatType:"loop",duration:2,repeatDelay:0},children:c});case"slide":return"up"===d||"down"===d?(0,o.jsx)(i.P.div,{animate:{y:void 0!==x?x:""},onHoverEnd:()=>g(),onHoverStart:()=>g(),children:c}):(0,o.jsx)(i.P.div,{animate:{x:void 0!==p?p:""},onHoverEnd:()=>u(),onHoverStart:()=>u(),children:c});default:return"number"===typeof h&&(h={hover:h,tap:h}),(0,o.jsx)(i.P.div,{whileHover:{scale:null===(t=h)||void 0===t?void 0:t.hover},whileTap:{scale:null===(n=h)||void 0===n?void 0:n.tap},children:c})}}},7051:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=n(84849),i=n(27326),o=n(85672),s=n(72574),a=n(25234),c=n(16775),l=n(60308),d=n(38009),m=n(18233),h=n(45688),p=n(2866),u=n(37300),x=n(10644);function g(e){return(0,x.Ay)("MuiLink",e)}const A=(0,u.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var y=n(27909),f=n(10247);const b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},v=e=>{let{theme:t,ownerState:n}=e;const r=(e=>b[e]||e)(n.color),i=(0,y.Yn)(t,"palette.".concat(r),!1)||n.color,o=(0,y.Yn)(t,"palette.".concat(r,"Channel"));return"vars"in t&&o?"rgba(".concat(o," / 0.4)"):(0,f.X4)(i,.4)};var j=n(65908);const k=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],w=(0,l.Ay)(p.A,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["underline".concat((0,c.A)(n.underline))],"button"===n.component&&t.button]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({},"none"===n.underline&&{textDecoration:"none"},"hover"===n.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===n.underline&&(0,i.A)({textDecoration:"underline"},"inherit"!==n.color&&{textDecorationColor:v({theme:t,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===n.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(A.focusVisible)]:{outline:"auto"}})})),C=o.forwardRef((function(e,t){const n=(0,d.b)({props:e,name:"MuiLink"}),{className:l,color:p="primary",component:u="a",onBlur:x,onFocus:A,TypographyClasses:y,underline:f="always",variant:v="inherit",sx:C}=n,M=(0,r.A)(n,k),{isFocusVisibleRef:R,onBlur:S,onFocus:_,ref:D}=(0,m.A)(),[I,F]=o.useState(!1),P=(0,h.A)(t,D),z=(0,i.A)({},n,{color:p,component:u,focusVisible:I,underline:f,variant:v}),L=(e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root","underline".concat((0,c.A)(i)),"button"===n&&"button",r&&"focusVisible"]};return(0,a.A)(o,g,t)})(z);return(0,j.jsx)(w,(0,i.A)({color:p,className:(0,s.A)(L.root,l),classes:y,component:u,onBlur:e=>{S(e),!1===R.current&&F(!1),x&&x(e)},onFocus:e=>{_(e),!0===R.current&&F(!0),A&&A(e)},ref:P,ownerState:z,variant:v,sx:[...Object.keys(b).includes(p)?[]:[{color:p}],...Array.isArray(C)?C:[C]]},M))}))},18251:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/img-soc1.a0526d5a1b2b3ad224c3.svg"},22614:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/codedthemes-logo.de6f43fc1a6929defc60.svg"},38569:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/img-soc3.c7e32ab183d3a3ab9296.svg"},49062:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>O});var r=n(60308),i=n(69039),o=n(7051),s=n(48738),a=n(84849),c=n(27326),l=n(85672),d=n(72574),m=n(25234),h=n(38009),p=n(37300),u=n(10644);function x(e){return(0,u.Ay)("MuiCardMedia",e)}(0,p.A)("MuiCardMedia",["root","media","img"]);var g=n(65908);const A=["children","className","component","image","src","style"],y=(0,r.Ay)("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:i}=n;return[t.root,r&&t.media,i&&t.img]}})((e=>{let{ownerState:t}=e;return(0,c.A)({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},t.isMediaComponent&&{width:"100%"},t.isImageComponent&&{objectFit:"cover"})})),f=["video","audio","picture","iframe","img"],b=["picture","img"],v=l.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiCardMedia"}),{children:r,className:i,component:o="div",image:s,src:l,style:p}=n,u=(0,a.A)(n,A),v=-1!==f.indexOf(o),j=!v&&s?(0,c.A)({backgroundImage:'url("'.concat(s,'")')},p):p,k=(0,c.A)({},n,{component:o,isMediaComponent:v,isImageComponent:-1!==b.indexOf(o)}),w=(e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e,i={root:["root",n&&"media",r&&"img"]};return(0,m.A)(i,x,t)})(k);return(0,g.jsx)(y,(0,c.A)({className:(0,d.A)(w.root,i),as:o,role:!v&&s?"img":void 0,ref:t,style:j,ownerState:k,src:v?s||l:void 0},u,{children:r}))}));var j=n(63412),k=n(1939),w=n(2866),C=n(80911),M=n(71392),R=n(58571),S=n(82522),_=n(16243),D=n(85002);const I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"};var F=n(75890),P=function(e,t){return l.createElement(F.A,(0,c.A)({},e,{ref:t,icon:I}))};const z=l.forwardRef(P);const L=n.p+"static/media/codedthemes-logo.de6f43fc1a6929defc604ed2bdf77fdd.svg";const N=n.p+"static/media/img-soc1.a0526d5a1b2b3ad224c35fedc8498601.svg";const T=n.p+"static/media/img-soc2.8931ba0f5ca8245dbc0684f455a56d44.svg";const W=n.p+"static/media/img-soc3.c7e32ab183d3a3ab9296b56558562065.svg";var B=n(855);const E=n(81335),H=(0,r.Ay)(o.A)((e=>{let{theme:t}=e;return{color:t.palette.text.secondary,"&:hover":{color:t.palette.primary.main},"&:active":{color:t.palette.primary.main}}})),O=e=>{let{isFull:t}=e;const n=(0,i.A)(),{presetColor:r}=(0,D.A)(),a=n.palette.mode===_.lG.DARK?"text.primary":"background.paper",c={color:n.palette.common.white,fontSize:"0.875rem",fontWeight:400,opacity:"0.6",cursor:"pointer","&:hover":{opacity:"1"}};return(0,g.jsxs)(g.Fragment,{children:[t&&(0,g.jsxs)(s.A,{sx:{position:"relative",bgcolor:n.palette.grey.A700,zIndex:1,mt:{xs:0,md:13.75},pt:{xs:8,sm:7.5,md:18.75},pb:{xs:2.5,md:10},"&:after":{content:'""',position:"absolute",width:"100%",height:"80%",bottom:0,left:0,background:n.direction===_.NL.RTL?"linear-gradient(transparent 100%, rgb(31, 31, 31) 70%)":"linear-gradient(180deg, transparent 0%, ".concat(n.palette.grey.A700," 70%)")}},children:[(0,g.jsx)(v,{component:"img",image:E("./img-footer-".concat(r,".png")),sx:{display:{xs:"none",md:"block"},width:"55%",maxWidth:700,position:"absolute",top:"-28%",right:0}}),(0,g.jsx)(j.A,{children:(0,g.jsx)(k.Ay,{container:!0,alignItems:"center",justifyContent:"space-between",spacing:2,children:(0,g.jsx)(k.Ay,{item:!0,xs:12,md:6,sx:{position:"relative",zIndex:1},children:(0,g.jsxs)(k.Ay,{container:!0,spacing:2,sx:{[n.breakpoints.down("md")]:{pr:0,textAlign:"center"}},children:[(0,g.jsx)(k.Ay,{item:!0,xs:12,children:(0,g.jsx)(w.A,{variant:"subtitle1",sx:{color:n.palette.common.white},children:"Roadmap"})}),(0,g.jsx)(k.Ay,{item:!0,xs:12,children:(0,g.jsx)(S.P.div,{initial:{opacity:0,translateY:550},animate:{opacity:1,translateY:0},transition:{type:"spring",stiffness:150,damping:30},children:(0,g.jsx)(w.A,{variant:"h2",sx:{color:n.palette.common.white,fontWeight:700},children:"Upcoming Release"})})}),(0,g.jsx)(k.Ay,{item:!0,xs:12,children:(0,g.jsx)(w.A,{variant:"body1",sx:{color:n.palette.common.white},children:"What is next? Checkout the Upcoming release of Mantis React."})}),(0,g.jsx)(k.Ay,{item:!0,xs:12,sx:{my:2},children:(0,g.jsx)(s.A,{sx:{display:"inline-block"},children:(0,g.jsx)(B.A,{children:(0,g.jsx)(C.A,{size:"large",variant:"contained",endIcon:(0,g.jsx)(z,{}),component:o.A,href:"https://links.codedthemes.com/RXnKQ",target:"_blank",children:"Roadmap"})})})})]})})})})]}),(0,g.jsx)(s.A,{sx:{pt:t?0:10,pb:10,bgcolor:n.palette.grey.A700},children:(0,g.jsx)(j.A,{children:(0,g.jsxs)(k.Ay,{container:!0,spacing:2,children:[(0,g.jsx)(k.Ay,{item:!0,xs:12,md:4,children:(0,g.jsx)(S.P.div,{initial:{opacity:0,translateY:550},animate:{opacity:1,translateY:0},transition:{type:"spring",stiffness:150,damping:30},children:(0,g.jsxs)(k.Ay,{container:!0,spacing:2,children:[(0,g.jsx)(k.Ay,{item:!0,xs:12,children:(0,g.jsx)(v,{component:"img",image:L,sx:{width:"auto"}})}),(0,g.jsx)(k.Ay,{item:!0,xs:12,children:(0,g.jsx)(w.A,{variant:"subtitle1",sx:{fontWeight:400,color:n.palette.common.white},children:"Since 2017, More than 50K+ Developers trust the CodedThemes Digital Product. Mantis React is Manage under their Experienced Team Players."})})]})})}),(0,g.jsx)(k.Ay,{item:!0,xs:12,md:8,children:(0,g.jsxs)(k.Ay,{container:!0,spacing:{xs:5,md:2},children:[(0,g.jsx)(k.Ay,{item:!0,xs:6,sm:3,children:(0,g.jsxs)(M.A,{spacing:{xs:3,md:5},children:[(0,g.jsx)(w.A,{variant:"h5",color:a,sx:{fontWeight:500},children:"Help"}),(0,g.jsxs)(M.A,{spacing:{xs:1.5,md:2.5},children:[(0,g.jsx)(H,{href:"https://links.codedthemes.com/nOuhw",target:"_blank",underline:"none",children:"Blog"}),(0,g.jsx)(H,{href:"https://links.codedthemes.com/BQFrl",target:"_blank",underline:"none",children:"Documentation"}),(0,g.jsx)(H,{href:"https://links.codedthemes.com/rhzvh",target:"_blank",underline:"none",children:"Change Log"}),(0,g.jsx)(H,{href:"https://codedthemes.support-hub.io/",target:"_blank",underline:"none",children:"Support"})]})]})}),(0,g.jsx)(k.Ay,{item:!0,xs:6,sm:3,children:(0,g.jsxs)(M.A,{spacing:{xs:3,md:5},children:[(0,g.jsx)(w.A,{variant:"h5",color:a,sx:{fontWeight:500},children:"Store Help"}),(0,g.jsxs)(M.A,{spacing:{xs:1.5,md:2.5},children:[(0,g.jsx)(H,{href:"https://mui.com/store/license/",target:"_blank",underline:"none",children:"License"}),(0,g.jsx)(H,{href:"https://mui.com/store/customer-refund-policy/",target:"_blank",underline:"none",children:"Refund Policy"}),(0,g.jsx)(H,{href:"https://support.mui.com/hc/en-us/sections/360002564979-For-customers",target:"_blank",underline:"none",children:"Submit a Request"})]})]})}),(0,g.jsx)(k.Ay,{item:!0,xs:6,sm:3,children:(0,g.jsxs)(M.A,{spacing:{xs:3,md:5},children:[(0,g.jsx)(w.A,{variant:"h5",color:a,sx:{fontWeight:500},children:"Mantis Eco-System"}),(0,g.jsx)(M.A,{spacing:{xs:1.5,md:2.5},children:[{title:"CodeIgniter",link:"https://links.codedthemes.com/dEGKs"},{title:"React MUI",link:"https://links.codedthemes.com/Aprwb"},{title:"Angular",link:"https://links.codedthemes.com/EIvof"},{title:"Bootstrap 5",link:"https://codedthemes.com/item/mantis-bootstrap-admin-dashboard/"},{title:".Net",link:"https://links.codedthemes.com/GPZhD"}].map(((e,t)=>(0,g.jsx)(H,{href:e.link,target:"_blank",underline:"none",children:e.title},t)))})]})}),(0,g.jsx)(k.Ay,{item:!0,xs:6,sm:3,children:(0,g.jsxs)(M.A,{spacing:{xs:3,md:5},children:[(0,g.jsx)(w.A,{variant:"h5",color:a,sx:{fontWeight:500},children:"More Products"}),(0,g.jsxs)(M.A,{spacing:{xs:1.5,md:2.5},children:[(0,g.jsx)(H,{href:"https://links.codedthemes.com/zyACc",target:"_blank",underline:"none",children:"Berry React Material"}),(0,g.jsx)(H,{href:"https://links.codedthemes.com/WztNI",target:"_blank",underline:"none",children:"Free Berry React"}),(0,g.jsx)(H,{href:"https://links.codedthemes.com/sTUAK",target:"_blank",underline:"none",children:"Free Mantis React"})]})]})})]})})]})})}),(0,g.jsx)(R.A,{sx:{borderColor:"grey.700"}}),(0,g.jsx)(s.A,{sx:{py:1.5,bgcolor:n.palette.mode===_.lG.DARK?n.palette.grey[50]:n.palette.grey[800]},children:(0,g.jsx)(j.A,{children:(0,g.jsxs)(k.Ay,{container:!0,spacing:2,children:[(0,g.jsx)(k.Ay,{item:!0,xs:12,sm:8,children:(0,g.jsx)(w.A,{variant:"subtitle2",color:"secondary",children:"\xa9 Made with love by Team CodedThemes"})}),(0,g.jsx)(k.Ay,{item:!0,xs:12,sm:4,children:(0,g.jsxs)(k.Ay,{container:!0,spacing:2,alignItems:"center",sx:{justifyContent:"flex-end"},children:[(0,g.jsx)(k.Ay,{item:!0,children:(0,g.jsx)(o.A,{underline:"none",sx:c,children:(0,g.jsx)(v,{component:"img",image:N})})}),(0,g.jsx)(k.Ay,{item:!0,children:(0,g.jsx)(o.A,{underline:"none",sx:c,children:(0,g.jsx)(v,{component:"img",image:T})})}),(0,g.jsx)(k.Ay,{item:!0,children:(0,g.jsx)(o.A,{underline:"none",sx:c,children:(0,g.jsx)(v,{component:"img",image:W})})})]})})]})})})]})}},79416:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/img-soc2.8931ba0f5ca8245dbc06.svg"},81335:(e,t,n)=>{var r={"./codedthemes-logo.svg":22614,"./img-footer.png":89476,"./img-soc1.svg":18251,"./img-soc2.svg":79416,"./img-soc3.svg":38569};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=81335},89476:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/img-footer.2bbba8c7dfab04642dde.png"}}]); \ No newline at end of file diff --git a/build/static/js/9267.3d3b6584.chunk.js b/build/static/js/9267.3d3b6584.chunk.js deleted file mode 100644 index 72410b5..0000000 --- a/build/static/js/9267.3d3b6584.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9267],{7762:(t,e,r)=>{"use strict";var n=r(24994);e.A=void 0;var a=n(r(79526)),o=r(44414);e.A=(0,a.default)((0,o.jsx)("path",{d:"M19 6.41 17.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"}),"Clear")},36150:(t,e,r)=>{"use strict";r.d(e,{I:()=>o});var n=r(69347),a=r(1729);function o(t,e){return(0,a.t)(t,n.$,e)}},36220:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,a,o){var i=a.prototype;o.utc=function(t){return new a({date:t,utc:!0,args:arguments})},i.utc=function(e){var r=o(this.toDate(),{locale:this.$L,utc:!0});return e?r.add(this.utcOffset(),t):r},i.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=i.parse;i.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),s.call(this,t)};var c=i.init;i.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else c.call(this)};var l=i.utcOffset;i.utcOffset=function(n,a){var o=this.$utils().u;if(o(n))return this.$u?0:o(this.$offset)?l.call(this):this.$offset;if("string"==typeof n&&(n=function(t){void 0===t&&(t="");var n=t.match(e);if(!n)return null;var a=(""+n[0]).match(r)||["-",0,0],o=a[0],i=60*+a[1]+ +a[2];return 0===i?0:"+"===o?i:-i}(n),null===n))return this;var i=Math.abs(n)<=16?60*n:n,s=this;if(a)return s.$offset=i,s.$u=0===n,s;if(0!==n){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(i+c,t)).$offset=i,s.$x.$localOffset=c}else s=this.utc();return s};var u=i.format;i.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,e)},i.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var d=i.toDate;i.toDate=function(t){return"s"===t&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var h=i.diff;i.diff=function(t,e,r){if(t&&this.$u===t.$u)return h.call(this,t,e,r);var n=this.local(),a=o(t).local();return h.call(n,a,e,r)}}}()},39919:(t,e,r)=>{"use strict";r.d(e,{A:()=>S});var n=r(98587),a=r(58168),o=r(9950),i=r(72004),s=r(33136),c=r(3484),l=r(97497),u=r(24184),d=r(89548),h=r(18463),f=r(59254),p=r(64099),v=r(89786),g=r(92770);function m(t,e){return void 0!==e&&void 0!==t&&(Array.isArray(e)?e.indexOf(t)>=0:t===e)}var A=r(44414);const b=["value"],y=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],x=(0,f.Ay)(u.A,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e["size".concat((0,d.A)(r.size))]]}})((t=>{let e,{theme:r,ownerState:n}=t,o="standard"===n.color?r.palette.text.primary:r.palette[n.color].main;return r.vars&&(o="standard"===n.color?r.vars.palette.text.primary:r.vars.palette[n.color].main,e="standard"===n.color?r.vars.palette.text.primaryChannel:r.vars.palette[n.color].mainChannel),(0,a.A)({},r.typography.button,{borderRadius:(r.vars||r).shape.borderRadius,padding:11,border:"1px solid ".concat((r.vars||r).palette.divider),color:(r.vars||r).palette.action.active},n.fullWidth&&{width:"100%"},{["&.".concat(p.A.disabled)]:{color:(r.vars||r).palette.action.disabled,border:"1px solid ".concat((r.vars||r).palette.action.disabledBackground)},"&:hover":{textDecoration:"none",backgroundColor:r.vars?"rgba(".concat(r.vars.palette.text.primaryChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,l.X4)(r.palette.text.primary,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(p.A.selected)]:{color:o,backgroundColor:r.vars?"rgba(".concat(e," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,l.X4)(o,r.palette.action.selectedOpacity),"&:hover":{backgroundColor:r.vars?"rgba(".concat(e," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,l.X4)(o,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:r.vars?"rgba(".concat(e," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,l.X4)(o,r.palette.action.selectedOpacity)}}}},"small"===n.size&&{padding:7,fontSize:r.typography.pxToRem(13)},"large"===n.size&&{padding:15,fontSize:r.typography.pxToRem(15)})})),S=o.forwardRef((function(t,e){const r=o.useContext(v.A),{value:l}=r,u=(0,n.A)(r,b),f=o.useContext(g.A),S=(0,s.A)((0,a.A)({},u,{selected:m(t.value,l)}),t),w=(0,h.b)({props:S,name:"MuiToggleButton"}),{children:C,className:R,color:k="standard",disabled:M=!1,disableFocusRipple:B=!1,fullWidth:$=!1,onChange:T,onClick:P,selected:D,size:O="medium",value:z}=w,N=(0,n.A)(w,y),W=(0,a.A)({},w,{color:k,disabled:M,disableFocusRipple:B,fullWidth:$,size:O}),L=(t=>{const{classes:e,fullWidth:r,selected:n,disabled:a,size:o,color:i}=t,s={root:["root",n&&"selected",a&&"disabled",r&&"fullWidth","size".concat((0,d.A)(o)),i]};return(0,c.A)(s,p.J,e)})(W),F=f||"";return(0,A.jsx)(x,(0,a.A)({className:(0,i.A)(u.className,L.root,R,F),disabled:M,focusRipple:!B,ref:e,onClick:t=>{P&&(P(t,z),t.defaultPrevented)||T&&T(t,z)},onChange:T,value:z,ownerState:W,"aria-pressed":D},N,{children:C}))}))},46639:(t,e,r)=>{"use strict";r.d(e,{A:()=>D});var n=r(57528),a=r(98587),o=r(58168),i=r(9950),s=r(72004),c=r(3484),l=r(88283),u=r(89548),d=r(18463),h=r(59254),f=r(45558),p=r(1614);function v(t){return(0,p.Ay)("MuiCircularProgress",t)}(0,f.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var g,m,A,b,y=r(44414);const x=["className","color","disableShrink","size","style","thickness","value","variant"];let S,w,C,R;const k=44,M=(0,l.i7)(S||(S=g||(g=(0,n.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),B=(0,l.i7)(w||(w=m||(m=(0,n.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),$=(0,h.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e["color".concat((0,u.A)(r.color))]]}})((t=>{let{ownerState:e,theme:r}=t;return(0,o.A)({display:"inline-block"},"determinate"===e.variant&&{transition:r.transitions.create("transform")},"inherit"!==e.color&&{color:(r.vars||r).palette[e.color].main})}),(t=>{let{ownerState:e}=t;return"indeterminate"===e.variant&&(0,l.AH)(C||(C=A||(A=(0,n.A)(["\n animation: "," 1.4s linear infinite;\n "]))),M)})),T=(0,h.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),P=(0,h.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.circle,e["circle".concat((0,u.A)(r.variant))],r.disableShrink&&e.circleDisableShrink]}})((t=>{let{ownerState:e,theme:r}=t;return(0,o.A)({stroke:"currentColor"},"determinate"===e.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(t=>{let{ownerState:e}=t;return"indeterminate"===e.variant&&!e.disableShrink&&(0,l.AH)(R||(R=b||(b=(0,n.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),B)})),D=i.forwardRef((function(t,e){const r=(0,d.b)({props:t,name:"MuiCircularProgress"}),{className:n,color:i="primary",disableShrink:l=!1,size:h=40,style:f,thickness:p=3.6,value:g=0,variant:m="indeterminate"}=r,A=(0,a.A)(r,x),b=(0,o.A)({},r,{color:i,disableShrink:l,size:h,thickness:p,value:g,variant:m}),S=(t=>{const{classes:e,variant:r,color:n,disableShrink:a}=t,o={root:["root",r,"color".concat((0,u.A)(n))],svg:["svg"],circle:["circle","circle".concat((0,u.A)(r)),a&&"circleDisableShrink"]};return(0,c.A)(o,v,e)})(b),w={},C={},R={};if("determinate"===m){const t=2*Math.PI*((k-p)/2);w.strokeDasharray=t.toFixed(3),R["aria-valuenow"]=Math.round(g),w.strokeDashoffset="".concat(((100-g)/100*t).toFixed(3),"px"),C.transform="rotate(-90deg)"}return(0,y.jsx)($,(0,o.A)({className:(0,s.A)(S.root,n),style:(0,o.A)({width:h,height:h},C,f),ownerState:b,ref:e,role:"progressbar"},R,A,{children:(0,y.jsx)(T,{className:S.svg,ownerState:b,viewBox:"".concat(22," ").concat(22," ").concat(k," ").concat(k),children:(0,y.jsx)(P,{className:S.circle,style:w,ownerState:b,cx:k,cy:k,r:(k-p)/2,fill:"none",strokeWidth:p})})}))}))},52097:(t,e,r)=>{"use strict";r.d(e,{d7:()=>i});var n=r(9950);function a(t,e,r,a){var o=this,i=(0,n.useRef)(null),s=(0,n.useRef)(0),c=(0,n.useRef)(0),l=(0,n.useRef)(null),u=(0,n.useRef)([]),d=(0,n.useRef)(),h=(0,n.useRef)(),f=(0,n.useRef)(t),p=(0,n.useRef)(!0);f.current=t;var v="undefined"!=typeof window,g=!e&&0!==e&&v;if("function"!=typeof t)throw new TypeError("Expected a function");e=+e||0;var m=!!(r=r||{}).leading,A=!("trailing"in r)||!!r.trailing,b="maxWait"in r,y="debounceOnServer"in r&&!!r.debounceOnServer,x=b?Math.max(+r.maxWait||0,e):null;(0,n.useEffect)((function(){return p.current=!0,function(){p.current=!1}}),[]);var S=(0,n.useMemo)((function(){var t=function(t){var e=u.current,r=d.current;return u.current=d.current=null,s.current=t,c.current=c.current||t,h.current=f.current.apply(r,e)},r=function(t,e){g&&cancelAnimationFrame(l.current),l.current=g?requestAnimationFrame(t):setTimeout(t,e)},n=function(t){if(!p.current)return!1;var r=t-i.current;return!i.current||r>=e||r<0||b&&t-s.current>=x},S=function(e){return l.current=null,A&&u.current?t(e):(u.current=d.current=null,h.current)},w=function t(){var a=Date.now();if(m&&c.current===s.current&&C(),n(a))return S(a);if(p.current){var o=e-(a-i.current),l=b?Math.min(o,x-(a-s.current)):o;r(t,l)}},C=function(){a&&a({})},R=function(){if(v||y){var a=Date.now(),c=n(a);if(u.current=[].slice.call(arguments),d.current=o,i.current=a,c){if(!l.current&&p.current)return s.current=i.current,r(w,e),m?t(i.current):h.current;if(b)return r(w,e),t(i.current)}return l.current||r(w,e),h.current}};return R.cancel=function(){l.current&&(g?cancelAnimationFrame(l.current):clearTimeout(l.current)),s.current=0,u.current=i.current=d.current=l.current=null},R.isPending=function(){return!!l.current},R.flush=function(){return l.current?S(Date.now()):h.current},R}),[m,b,e,x,A,g,v,y,a]);return S}function o(t,e){return t===e}function i(t,e,r){var i=r&&r.equalityFn||o,s=(0,n.useRef)(t),c=(0,n.useState)({})[1],l=a((0,n.useCallback)((function(t){s.current=t,c({})}),[c]),e,r,c),u=(0,n.useRef)(t);return i(u.current,t)||(l(t),u.current=t),[s.current,l]}},60010:(t,e,r)=>{"use strict";r.d(e,{q:()=>c});var n=r(89379),a=r(69347),o=r(45247),i=class extends a.${constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,e){super.setOptions((0,n.A)((0,n.A)({},t),{},{behavior:(0,o.PL)()}),e)}getOptimisticResult(t){return t.behavior=(0,o.PL)(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch((0,n.A)((0,n.A)({},t),{},{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(t){return this.fetch((0,n.A)((0,n.A)({},t),{},{meta:{fetchMore:{direction:"backward"}}}))}createResult(t,e){var r,a;const{state:i}=t,s=super.createResult(t,e),{isFetching:c,isRefetching:l}=s,u=c&&"forward"===(null===(r=i.fetchMeta)||void 0===r||null===(r=r.fetchMore)||void 0===r?void 0:r.direction),d=c&&"backward"===(null===(a=i.fetchMeta)||void 0===a||null===(a=a.fetchMore)||void 0===a?void 0:a.direction);return(0,n.A)((0,n.A)({},s),{},{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,o.rB)(e,i.data),hasPreviousPage:(0,o.RQ)(e,i.data),isFetchingNextPage:u,isFetchingPreviousPage:d,isRefetching:l&&!u&&!d})}},s=r(1729);function c(t,e){return(0,s.t)(t,i,e)}},64099:(t,e,r)=>{"use strict";r.d(e,{A:()=>i,J:()=>o});var n=r(45558),a=r(1614);function o(t){return(0,a.Ay)("MuiToggleButton",t)}const i=(0,n.A)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"])},79739:(t,e,r)=>{"use strict";r.d(e,{A:()=>g});var n=r(98587),a=r(58168),o=r(9950),i=r(72004),s=r(3484),c=r(59254),l=r(18463),u=r(45558),d=r(1614);function h(t){return(0,d.Ay)("MuiDialogActions",t)}(0,u.A)("MuiDialogActions",["root","spacing"]);var f=r(44414);const p=["className","disableSpacing"],v=(0,c.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableSpacing&&e.spacing]}})((t=>{let{ownerState:e}=t;return(0,a.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),g=o.forwardRef((function(t,e){const r=(0,l.b)({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:c=!1}=r,u=(0,n.A)(r,p),d=(0,a.A)({},r,{disableSpacing:c}),g=(t=>{const{classes:e,disableSpacing:r}=t,n={root:["root",!r&&"spacing"]};return(0,s.A)(n,h,e)})(d);return(0,f.jsx)(v,(0,a.A)({className:(0,i.A)(g.root,o),ownerState:d,ref:e},u))}))},82917:(t,e,r)=>{"use strict";r.d(e,{A:()=>P});var n=r(57528),a=r(98587),o=r(58168),i=r(9950),s=r(72004),c=r(88283),l=r(3484);function u(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function d(t){return parseFloat(t)}var h=r(97497),f=r(59254),p=r(18463),v=r(45558),g=r(1614);function m(t){return(0,g.Ay)("MuiSkeleton",t)}(0,v.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var A,b,y,x,S=r(44414);const w=["animation","className","component","height","style","variant","width"];let C,R,k,M;const B=(0,c.i7)(C||(C=A||(A=(0,n.A)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"])))),$=(0,c.i7)(R||(R=b||(b=(0,n.A)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"])))),T=(0,f.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],!1!==r.animation&&e[r.animation],r.hasChildren&&e.withChildren,r.hasChildren&&!r.width&&e.fitContent,r.hasChildren&&!r.height&&e.heightAuto]}})((t=>{let{theme:e,ownerState:r}=t;const n=u(e.shape.borderRadius)||"px",a=d(e.shape.borderRadius);return(0,o.A)({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,h.X4)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em"},"text"===r.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(a).concat(n,"/").concat(Math.round(a/.6*10)/10).concat(n),"&:empty:before":{content:'"\\00a0"'}},"circular"===r.variant&&{borderRadius:"50%"},"rounded"===r.variant&&{borderRadius:(e.vars||e).shape.borderRadius},r.hasChildren&&{"& > *":{visibility:"hidden"}},r.hasChildren&&!r.width&&{maxWidth:"fit-content"},r.hasChildren&&!r.height&&{height:"auto"})}),(t=>{let{ownerState:e}=t;return"pulse"===e.animation&&(0,c.AH)(k||(k=y||(y=(0,n.A)(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "]))),B)}),(t=>{let{ownerState:e,theme:r}=t;return"wave"===e.animation&&(0,c.AH)(M||(M=x||(x=(0,n.A)(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 2s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ",",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "]))),$,(r.vars||r).palette.action.hover)})),P=i.forwardRef((function(t,e){const r=(0,p.b)({props:t,name:"MuiSkeleton"}),{animation:n="pulse",className:i,component:c="span",height:u,style:d,variant:h="text",width:f}=r,v=(0,a.A)(r,w),g=(0,o.A)({},r,{animation:n,component:c,variant:h,hasChildren:Boolean(v.children)}),A=(t=>{const{classes:e,variant:r,animation:n,hasChildren:a,width:o,height:i}=t,s={root:["root",r,n,a&&"withChildren",a&&!o&&"fitContent",a&&!i&&"heightAuto"]};return(0,l.A)(s,m,e)})(g);return(0,S.jsx)(T,(0,o.A)({as:c,ref:e,className:(0,s.A)(A.root,i),ownerState:g},v,{style:(0,o.A)({width:f,height:u},d)}))}))},89786:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=r(9950).createContext({})},92770:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=r(9950).createContext(void 0)},94367:(t,e,r)=>{"use strict";r.d(e,{A:()=>x});var n=r(98587),a=r(58168),o=r(9950),i=r(72004),s=r(3484);var c=r(59254),l=r(18463),u=r(89548),d=r(45558),h=r(1614);function f(t){return(0,h.Ay)("MuiToggleButtonGroup",t)}const p=(0,d.A)("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]);var v=r(89786),g=r(92770),m=r(64099),A=r(44414);const b=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],y=(0,c.Ay)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{["& .".concat(p.grouped)]:e.grouped},{["& .".concat(p.grouped)]:e["grouped".concat((0,u.A)(r.orientation))]},{["& .".concat(p.firstButton)]:e.firstButton},{["& .".concat(p.lastButton)]:e.lastButton},{["& .".concat(p.middleButton)]:e.middleButton},e.root,"vertical"===r.orientation&&e.vertical,r.fullWidth&&e.fullWidth]}})((t=>{let{ownerState:e,theme:r}=t;return(0,a.A)({display:"inline-flex",borderRadius:(r.vars||r).shape.borderRadius},"vertical"===e.orientation&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{["& .".concat(p.grouped)]:(0,a.A)({},"horizontal"===e.orientation?{["&.".concat(p.selected," + .").concat(p.grouped,".").concat(p.selected)]:{borderLeft:0,marginLeft:0}}:{["&.".concat(p.selected," + .").concat(p.grouped,".").concat(p.selected)]:{borderTop:0,marginTop:0}})},"horizontal"===e.orientation?{["& .".concat(p.firstButton,",& .").concat(p.middleButton)]:{borderTopRightRadius:0,borderBottomRightRadius:0},["& .".concat(p.lastButton,",& .").concat(p.middleButton)]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{["& .".concat(p.firstButton,",& .").concat(p.middleButton)]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},["& .".concat(p.lastButton,",& .").concat(p.middleButton)]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},"horizontal"===e.orientation?{["& .".concat(p.lastButton,".").concat(m.A.disabled,",& .").concat(p.middleButton,".").concat(m.A.disabled)]:{borderLeft:"1px solid transparent"}}:{["& .".concat(p.lastButton,".").concat(m.A.disabled,",& .").concat(p.middleButton,".").concat(m.A.disabled)]:{borderTop:"1px solid transparent"}})})),x=o.forwardRef((function(t,e){const r=(0,l.b)({props:t,name:"MuiToggleButtonGroup"}),{children:c,className:d,color:h="standard",disabled:p=!1,exclusive:m=!1,fullWidth:x=!1,onChange:S,orientation:w="horizontal",size:C="medium",value:R}=r,k=(0,n.A)(r,b),M=(0,a.A)({},r,{disabled:p,fullWidth:x,orientation:w,size:C}),B=(t=>{const{classes:e,orientation:r,fullWidth:n,disabled:a}=t,o={root:["root","vertical"===r&&"vertical",n&&"fullWidth"],grouped:["grouped","grouped".concat((0,u.A)(r)),a&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,s.A)(o,f,e)})(M),$=o.useCallback(((t,e)=>{if(!S)return;const r=R&&R.indexOf(e);let n;R&&r>=0?(n=R.slice(),n.splice(r,1)):n=R?R.concat(e):[e],S(t,n)}),[S,R]),T=o.useCallback(((t,e)=>{S&&S(t,R===e?null:e)}),[S,R]),P=o.useMemo((()=>({className:B.grouped,onChange:m?T:$,value:R,size:C,fullWidth:x,color:h,disabled:p})),[B.grouped,m,T,$,R,C,x,h,p]),D=function(t){return o.Children.toArray(t).filter((t=>o.isValidElement(t)))}(c),O=D.length,z=t=>{const e=0===t,r=t===O-1;return e&&r?"":e?B.firstButton:r?B.lastButton:B.middleButton};return(0,A.jsx)(y,(0,a.A)({role:"group",className:(0,i.A)(B.root,d),ref:e,ownerState:M},k,{children:(0,A.jsx)(v.A.Provider,{value:P,children:D.map(((t,e)=>(0,A.jsx)(g.A.Provider,{value:z(e),children:t},e)))})}))}))},97125:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(23235),a=r(44414);const o=(0,n.A)((0,a.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchOutlined")}}]); \ No newline at end of file diff --git a/build/static/js/9297.c1d141e7.chunk.js b/build/static/js/9297.c1d141e7.chunk.js new file mode 100644 index 0000000..fdf2a11 --- /dev/null +++ b/build/static/js/9297.c1d141e7.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9297],{23787:(e,r,i)=>{i.d(r,{FG:()=>h,nV:()=>x,pY:()=>A,pg:()=>p});var n=i(22555),s=i(53986),l=i(71392),t=i(55235),o=i(48738),c=i(2866),a=i(65908);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:r,scroll:i=!1,onScroll:t,sx:o}=e,c=(0,s.A)(e,d);return(0,a.jsx)(l.A,(0,n.A)((0,n.A)({spacing:1.25,onScroll:t,sx:(0,n.A)((0,n.A)({p:1.5},i&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),o)},c),{},{children:r}))},p=e=>{let{accent:r="#662582",header:i,footer:s,selected:l=!1,onClick:c,children:d,sx:x}=e;return(0,a.jsxs)(t.A,{elevation:0,onClick:c,sx:(0,n.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:l?r:"#e2e8f0",background:l?"".concat(r,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,a.jsx)(o.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:r}}),(0,a.jsxs)(o.A,{sx:{p:1.5,pl:2},children:[i,d,s]})]})},h=e=>{let{children:r,columns:i=2,sx:s}=e;return(0,a.jsx)(o.A,{sx:(0,n.A)({display:"grid",gridTemplateColumns:"repeat(".concat(i,", minmax(0, 1fr))"),gap:1,mt:1.25},s),children:r})},A=e=>{let{label:r,value:i,children:n,full:s=!1,align:l="left"}=e;return(0,a.jsxs)(o.A,{sx:{gridColumn:s?"1 / -1":"auto",minWidth:0,textAlign:l},children:[(0,a.jsx)(c.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:r}),(0,a.jsx)(o.A,{sx:{mt:.25,minWidth:0},children:void 0!==n?n:(0,a.jsx)(c.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==i&&void 0!==i?i:"\u2014"})})]})}},47659:(e,r,i)=>{i.d(r,{A:()=>d});var n=i(22555),s=i(84007),l=i(75953),t=i(48738),o=i(2866),c=i(1939),a=i(65908);const d=e=>{let{primary:r,secondary:i,percentage:d,color:x,sx:p}=e;return(0,a.jsx)(s.A,{elevation:0,sx:(0,n.A)({background:x,position:"relative",color:"#fff","&:hover svg":{opacity:1,transform:"scale(1.1)"}},p),children:(0,a.jsxs)(l.A,{children:[(0,a.jsx)(t.A,{sx:{position:"absolute",right:15,top:25,color:"#fff","& svg":{width:36,height:36,opacity:.5,transition:"all .3s ease-in-out"}},children:(0,a.jsx)(o.A,{variant:"h2",color:"inherit",sx:{fontSize:{xs:20,md:25}},children:d&&"number"===typeof d?"".concat(d.toString()," %"):d})}),(0,a.jsxs)(c.Ay,{container:!0,spacing:0,children:[(0,a.jsx)(c.Ay,{item:!0,xs:12,children:(0,a.jsx)(o.A,{variant:"h3",color:"inherit",sx:{fontSize:{xs:16,md:20}},children:i})}),(0,a.jsx)(c.Ay,{item:!0,xs:12,children:(0,a.jsx)(o.A,{variant:"subtitle2",color:"inherit",children:r})})]})]})})}},62217:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAAA+CAYAAABzwahEAAAPnUlEQVR4AdVae3AU9R3/7d4jdyGQQKAhECBAJBSmEAtFSQUjqPgAHGlhRm0lDkWY6Tg+O9qiErR26h8WR8ZWqTMN1ur4qMpDrTyjtDwDJloeCYiBvAgkaZ53l7vb3X4/v9vfZS/Zu9uFwLSfmb3d293f7u/z+z5/399K7CphdW5JrupgBZosZ0ialmu8pklSjUOTamRJbvvjqTUV7CpAYlcIj+SWZHQ55WJZlm7UNK2IXpRhpZ3GWJskSWXUZrPD4Sp77eSva9gVwIATXz35+SJNYWs1phWxAYDEpDKVaZv+fOrZUjaAGDDiK695rpgetpYOc82upw72sMycdJbz/SzmHeKl/ynRay31bbS1s7rjTczXGYj3ihrShnUDNQCXTXzlNS8UyExdbybhSdeNYwXz81nBzflE2pKms7oT51ntiSa276NKVn3wrNktNcGQelNpTUkNuwxcFvFV+S88rKnKy8ZzkOz84uvYvOJZ/PhyAE3Y/+HXbN+HFVwjjJAlR8lr1WueY9wt2MclEYfj8rnkj+nwRnHOLuGWhnbmpfuMKh/3Xn0Atm74IuY8OcGPFYk99kbVM98xm7BFnDyttHLyb3MlRdsjSWycOA+VLv79YpY5Ork6V5efY59s/JJVHznH/+dMymLz7v0Rm71oWtK2GIDSJ7ew6kMxJlCjytI8u+Qddm4+93bPBIfqiiG96KG5RPouljokuZT3b/2avf7EB6ylsZ1dM2MsG5OfxU7RAFSWVbMAObUphRMTtsc7CpdMh6c3kqe8gN117Yh5W4627GljFmGZ+C/ynx/flzSkDPW2Aqj2+lV/Y5mj0tljG3/GFhQXspkLpnBJVx85yyq/OGWJPAANgzkd2/utOMXJzxp965vlF3YFrPRHZtYgSZq6vi/p2TT6VrF+1Vt8/yiRhnoLiIHAftc7h0kDzlp6HgYcfTAgVwmEPmIWzTeZxPEQaeWkkhJJk1eJk8vWLGBz75nBrAIqfmDrN2zhqjlsetGkftddKU6WQ2qPe6AZVuwdGPP9kWw4+ZWKnVXiVO6M4UXtR1rKDiZrm4g4J70871cTnMzzd3ESNn3bgz9mdgC7hmoufeKWuB4/c1QGV3nYfP7Msfy/FYB8rM1LC6YNm72lonXv+UTtEqr60qVLJTcbvEv8h20tfOhGZgeQtpBiZnZ6wnuhEUDFnlPMDhaSMCbNilohc0kp61mEW1y1j0u8hLR78Ff5xX3t2i5AHLjegvqOIdtHXK/8oorZRfGLiw3aJM1dkVeynA5kCsGm98cjLhNxh4O5nxEnoOJW4rQRkDRUF3adTNoAEprRRB7tfJ09zA7Qt3mGCCMz+dmioiLKcSRTjvGISw/kPbNcSDtzdLotDy6A+AyYObR4KCjK53ur3t2I+ct7s0b0Pfds4U04RuLV914z4rjJ4ZSc94sTSBrsShvYv62S76frZKwAYQ2orWpidoEExyh1tzPl6SlTpjhJ6v3u7Utcgm0vHf/wePKUc8TJS5E21LWu6gKbRBmalXwcgHp70yISg8QR3oTWWAWk3gtpbp6/cCiLRK8Y9k7jHzgCGh3n8om/ibpueHKr0vZT5lVZFvHItVWRaALVQ4pqxcYfL3opeoxcvlr3D4BVc4HU4eFFeMt0ZsHJvUzcFKPkY4gvW7YMGiC7ZfcicW723dalXUsS3lSyNeZcBUmsmaS/5p0Vlp4BVccADsvOYP6uAM/yKsqq7PkJmv8L4k7mmEu7DcRNIfIqkedu3qjq0pkzZ/DfITE5quZjp2Qxu0Dnha1iX1fdxD55fW/CNjANYN49s7jKI5O788E5kfY0oHZQcEuvT5GY8wbaye+//36MqsfY+JEjR6QlY1cX0CHvNdQmZ/JIZhUtjW3RzkNqsG90Hti2cS8fgGSoqz7Pp6loi/uH6wNnJ7zBNA0ZYvrdY1aMZ6hdGHQ9RuL473KmDBUnUB+zAyE1dP6me2fxpMUYljat3Zb0GfvJodWRRz9Aic/utw+Ts/NG1L/L0qQrCoRggVTXUGRPMULmNo44h0CflZXlcGiuXLPGdoDOo7Pw0EYpC5W/c9Wcfm3EoAGiSAF4h0QiQmtDmyUHKZAzZSSrPam/W5MgzJgUlo+CrgFSU1OT5GTOseKi7UytsT2GiJlqW1X5aB+IrJfCYXNDO7MDYwh1yA4kYvKMGTNkkcxw4ghjdJLfQ9ntJRcgWxqsFUCsqDzg1e0U5FtsEvfGVIQ4J9nv90fNXEhcgmPLyEAh49KJW4WZlzezYSE172BvjDbZhc5JPn78eH/nlpubK7e1tcWQtjtRaDXpnLHaYkRflTdbSEhN65V4a4Plclo/IC/TDyV9ixCnNJWFw2EpPT2dBcKBBtHA3+FndmCmjsueuJnIf8/0/mQq79UlDkdpV+LGOnxQ7aljOmFwBTjxY8eOSXV1day9vV1SlFCHaFB3wroT8sdZ+kE4QuXFDMkSG7+ucZmUxdmdqrbU9WpIINQuiPO5CM5x4pTVYMdTucbgt8ejjeutj3K8Tg0jaU2aMY4nJWYQKm+mLT7d7kUW2GrDwRmFFpD8Xax3xSUmZcUfPhL7L2yvp9XJTv7ijgAv4ltBPK8rHNRCPf00QzKVRzs8p7Y6YRktCqy99foMrWN73bsnWJ/ZmTGbUVlkADRFDUarlIYKZkKYeWUjUYSm+0sWmraFxHdTaTkRhtnI2bHwKBBUA3iwSv6LcxPnjV4dI6J5vV61W+04JM5X7LBG3Mwr9820oPLxZln+zsQpac6kkdG5QDLs+7AyetwRat0FTvqsLEpeJDBaTU2NQocqBXl1f9PnH4uGmN5ZcSpmqu41KSUvffwWy4UJIzCIxlQ2bj/ILxnX1mq6Tx0EJwrVKlVjNFF8NKasbMSIEeqgQYOUWl91W0gNlIvGu0oPJH2h31Ti/VNeqP8dJrm6KQnDYIp5erKwZpR2j9JTfrRldy1x4mZMCYwWk7mxiPjVixcvqt3d3WpKSopS6z/9J/GA3ZsOJZW6mRp640h2Pk1bsWhoBzAToLo8fhES0t4fo+YXoblhWZbDtOcaLa5FbZziGyc/ZMgQpaenJ7yz4b1DqhpuxDV492RSNxuYeF4cWF6yiNmB8OyJ1B3SFlFI1ZSGj2o3grjS2dnJSescYyswa9eu5cQ7OjpwE0YodLGn/jVxHVJPFNfNc21PQiKiSJEIxgGFZ49XfETfthk+HGiO9B08wsOHD8deNd4fJa7rPi6G09LSeINPm97cHFT9R3gHSOqlT25m8WCWXCRzYvMpqUmkFYBxQOHZYedmNXdj36Cp6LvOJdTc3KzS4oKqC5cjSlz3dvhRurq6Qh6PJ0SDETrefvQP4h54y76fYwhg+ffRjfeRCi/kkrx+0Q9oVSRx2SpRbI8S7+iVuAiP+KrCiK0bvozx5Idat68KBoMhCmNBcKFQrYC4KDQC0SqrfhIS56oeCASC5ORCh5o/Pz7aO279CE/Oo7hvG70EBYrCPrX26CzM+uoxh0hnUWYyJd4VmSihWvvJxkheX2uY1e0qPRij4q09TW98/Z8D59B3CmNBUnMFoVpMTgT6LigI44eqB2kwMNxBchJvk8ofFTdtempLTNi4XCCdjWcWqLwgrH3w0g4eCaBVq1/6Kb+GPrz3u+3Re31K95cfnHv1dfSZPDn6HoKq06qvqvVZPey3Po6RKSsr49cwVWWRwXE2+M7tyxs87VZZktNwsZJSWVRhJxTksMsFPgyY85MZbGrhBJqDe5kzxRGd20MjOlq6qNqawSOBWDcHaQhAQCG7Pty66+l29WKz0+n0k8ZCVQITJ04M7dy5U1m3bl0M8XjVFgyIizYP2ckgUpnBdJw6OeOHuYWZC191ys6o8WJtepHNNXMrgDeHE0MuALLG9Bc2bVTvsBo+v6/ls1+ebDv8Ham4j8IxZmPdtMEzhljvPCSKeMT5wmF2dra7sbExlY4H0QZJe4n82L7ksWRT/OJdl1yVtQqELHhvoyMjSZ//V4T0WbfbHSCnxklTxdhPxdMgaXjY6NSMBPtBX0ODikPqbto4eXpwKj0Y5MfMHHbzI6mOtJhADOkXLikY8AGA9JFA7S49FDMZCij+ih31bz3V2FPbqpOGlLH5aION94vfAnELi3qtHddBHJ7Hy3Sp0+YhO3Ivzl65Yrgn+wFjO3j82UumDcgAxCMMNPnPbdhc98a7LpcLThikYdOQNrdtcmhhKrD0U3GBZBVVieKfg5wdJJ+Smprq9fl8kH4qvdATCoVc+ekFo28YvvgVh0H1BWACWGLGBzpjLK7KoGSEGgC2Pl8wckDK/247+MrR1t2YL8N+IVmfThh7YdcKS/Cda1LiqFHRJufk5LioLuch8h6dvJfIpxB5aITzjtE/v32kZ/wDTpMBAJC+YkkKWmD8ktlHCQqKmrUnL7BWIh3vs23YcmPgu798Wv/Xz0CM3h2mdwd0wnwjn9QzatSoEJXKw1pEZeMTYxagq73w9FB7Suw8XlVVvaRi+A/yuO64bfR9t2eljL09xeEtYAOAQNhfcabrm9J/XtyGPIKn1Lp6B3X19tN6gJ/m29ymSUgKUlMzh2aEncUDmdRe1tXeaPce/dilbxgAOT99evbEQdOuHebJvsHrSC2gpec0Ky/RmNrlV3wVneHWrw427/hHc7C+k/IJEFZ1KSOjDFDIEtLmSRb1LUR94/dZeY+tVROoPDaQo1TQTS9PoSlfik4cA0B9c7mpc1z6GAByghISoZkjivI8MuVRjqEjU52DRuossXir+UJdFHcCXfW+b09VtR9tMnReoefxNJqeCbsF6R7KygL03B56N8/OWK/3tkTaNnHWa/M8zrNIru8iOik0GeADQGHFTabh0q85qL/8Kwu0xSBgTwPB6BiLGMZn83SZzmuQMAhTWz5voEeGoNcgTtWUHiqW8OO8vLww+R5lz5494UT2PBDEY9rSQqOTHAmP91TFdNGChJsyPTdlelztqcMu6i+XvNiIkBQRHlcPHGv6sUbHIKzo56J1AZBkvR5cSFhUVBR2CbD69bIpysvLecdoAHqINOytm0ijJt9J3r+TVBLHXfrGkwsiJRIMLF1i76MBEue7qE0XqTPadYiNnFen3j6Ad5HGYSDwTcslkQYGamVULLrLpH7y6dOnuY1TGctFFR0hcYfhvujinQ6eaNBgYc6sEHm+0WAKqatEWJkwYYI6depUjYhbtuWrBW775GGd1FEXFQA8FFsR8+HRMdFBKocgPrTvRkgnh4l70ijPxtwAzpLnCLpDvSztvFqQ9C8PuAPEINDeTdpgjADYjOFQhESn3s6hP+OKr9dfSUhCaiIcYjNIMur52f850f95/BfoYlARf1CQvwAAAABJRU5ErkJggg=="},89297:(e,r,i)=>{i.r(r),i.d(r,{default:()=>E});var n=i(22555),s=i(71392),l=i(2866),t=i(81062),o=i(23440),c=i(11969),a=i(80911),d=i(15227),x=i(1939),p=i(83209),h=i(72486),A=i(54016),m=i(50755),j=i(1596),u=i(81802),v=i(58571),g=i(17488),y=i(86270),f=i(85672),b=i(69039),k=i(76264),S=i(23787),Y=i(96515),W=i(46077),z=i.n(W),C=i(59008),D=i(70775),w=i(81425),R=i(20466),M=i(68320),T=i(68220),J=i(52351),K=i(94826),F=i(38464),P=i(47659),I=i(28478),N=i(48952),Z=i(15172),B=i(68070),G=i(65908),H=i(22686);z().extend(H);const L=e=>{let{list:r,aiMode:i}=e;return r&&0!==r.length?(0,G.jsx)(S.nV,{children:r.map(((e,r)=>{const n="Economy"==e.ordertype?"success":"Risky"==e.ordertype?"error":"primary";return(0,G.jsx)(S.pg,{header:(0,G.jsxs)(s.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,G.jsxs)(s.A,{direction:"row",alignItems:"center",spacing:1,sx:{minWidth:0},children:[(0,G.jsxs)(l.A,{sx:{fontWeight:800,color:"#94a3b8"},children:["#",r+1]}),1==i&&(0,G.jsx)(t.A,{size:"small",color:"primary",label:e.zone_name})]}),(0,G.jsx)(t.A,{size:"small",label:e.ordertype,color:n})]}),children:(0,G.jsxs)(S.FG,{children:[(0,G.jsx)(S.pY,{label:"Tenant",full:!0,children:(0,G.jsx)(o.A,{title:e.tenantaddress,children:(0,G.jsxs)(s.A,{children:[(0,G.jsx)(l.A,{variant:"body1",noWrap:!0,children:e.tenantname}),(0,G.jsx)(l.A,{noWrap:!0,sx:{fontSize:"11px"},children:e.tenantsuburb}),(0,G.jsx)(l.A,{noWrap:!0,variant:"body2",children:e.applocation})]})})}),(0,G.jsxs)(S.pY,{label:"Order Location",full:!0,children:[(0,G.jsx)(o.A,{title:e.locationaddress,placement:"top",children:(0,G.jsx)(l.A,{variant:"body1",noWrap:!0,children:"".concat(e.locationname,"-(").concat(e.locationsuburb,")")})}),(0,G.jsx)(o.A,{title:"Order Id",children:(0,G.jsx)(l.A,{variant:"body2",noWrap:!0,children:e.orderid})}),(0,G.jsxs)(s.A,{display:"flex",flexDirection:"row",gap:3,children:[(0,G.jsx)(o.A,{title:"Ordered date",children:(0,G.jsxs)(s.A,{children:[(0,G.jsx)(l.A,{noWrap:!0,sx:{fontSize:"12px"},children:z()(e.orderdate).utc().format("DD/MM/YYYY")}),(0,G.jsx)(l.A,{noWrap:!0,sx:{fontSize:"11px"},children:z()(e.orderdate).utc().format("hh:mm A")})]})}),"-",(0,G.jsx)(o.A,{title:"Delivery date",children:(0,G.jsxs)(s.A,{children:[(0,G.jsx)(l.A,{noWrap:!0,sx:{fontSize:"12px"},children:z()(e.deliverydate).utc().format("DD/MM/YYYY")}),(0,G.jsx)(l.A,{noWrap:!0,sx:{fontSize:"11px"},children:z()(e.deliverydate).utc().format("hh:mm A")})]})})]})]}),(0,G.jsx)(S.pY,{label:"Pickup",children:(0,G.jsxs)(s.A,{direction:"column",children:[(0,G.jsx)(l.A,{variant:"caption",children:e.pickupcustomer}),(0,G.jsx)(l.A,{variant:"caption",children:e.pickupcontactno}),(0,G.jsx)(o.A,{title:e.pickupaddress,children:(0,G.jsx)(l.A,{variant:"caption",children:e.pickupsuburb||e.pickupaddress.slice(0,20)})})]})}),(0,G.jsx)(S.pY,{label:"Delivery",children:(0,G.jsxs)(s.A,{direction:"column",children:[(0,G.jsx)(l.A,{variant:"caption",children:e.deliverycustomer}),(0,G.jsx)(l.A,{variant:"caption",children:e.deliverycontactno}),(0,G.jsx)(o.A,{title:e.deliveryaddress,children:(0,G.jsx)(l.A,{variant:"caption",children:e.deliverysuburb||e.deliveryaddress.slice(0,20)})})]})}),e.ordernotes?(0,G.jsx)(S.pY,{label:"Notes",value:e.ordernotes,full:!0}):null,1==i&&(0,G.jsxs)(S.pY,{label:"Rider",full:!0,children:[(0,G.jsx)(l.A,{sx:{whiteSpace:"nowrap"},children:e.username}),(0,G.jsxs)(l.A,{children:["ID : ",e.userid]})]}),(0,G.jsx)(S.pY,{label:"Profit",children:(0,G.jsxs)(s.A,{display:"flex",flexDirection:"column",gap:1,sx:{cursor:"pointer"},children:[(0,G.jsx)(o.A,{title:"Charges",placement:"top",children:(0,G.jsx)(t.A,{size:"small",label:"\u20b9 ".concat(e.deliverycharge.toFixed(2)," "),color:"error"})}),(0,G.jsx)(o.A,{title:"Amount",placement:"left",children:(0,G.jsx)(t.A,{size:"small",label:"\u20b9 ".concat(e.deliveryamt.toFixed(2)," "),color:"success"})})]})}),(0,G.jsx)(S.pY,{label:"KMS",children:(0,G.jsxs)(s.A,{display:"flex",flexDirection:"column",gap:1,sx:{cursor:"pointer"},children:[(0,G.jsx)(o.A,{title:"KMS",placement:"top",children:(0,G.jsx)(t.A,{size:"small",label:"".concat(e.kms," km"),color:"error"})}),(0,G.jsx)(o.A,{title:"Cumulative Kms",placement:"right",children:(0,G.jsx)(t.A,{size:"small",label:"".concat(e.cumulativekms," km"),color:"success"})})]})})]})},r)}))}):(0,G.jsx)(s.A,{alignItems:"center",sx:{py:4},children:(0,G.jsx)(F.A,{})})},E=()=>{var e,r,i,S,W,H,E;const O=(0,b.A)(),q=(0,k.A)(O.breakpoints.down("md")),V=(0,Y.Zp)(),U=(0,Y.zy)();console.log("location.state",U.state);const[Q,X]=(0,f.useState)(null),[_,$]=(0,f.useState)(null),[ee,re]=(0,f.useState)([]),[ie,ne]=(0,f.useState)(!1),se=null===(e=U.state)||void 0===e?void 0:e.deliverylist,le=null===(r=U.state)||void 0===r?void 0:r.zoneData,te=null===(i=U.state)||void 0===i?void 0:i.metaData,oe=null===(S=U.state)||void 0===S?void 0:S.riderToken,ce=null===(W=U.state)||void 0===W?void 0:W.appId,ae=null===(H=U.state)||void 0===H?void 0:H.aiMode,de=null===(E=U.state)||void 0===E?void 0:E.reassignOrders;(0,f.useEffect)((()=>{console.log("aiMode",ae),console.log("riderToken",oe),console.log("zoneData",le),console.log("metaData",te),console.log("reassignOrders",de)}),[]),(0,f.useEffect)((()=>{if(null===se||void 0===se||!se.length)return;const e=se.map((e=>{const r=Number(e.cumulativekms||0),i=Number(e.minkm||0),s=Number(e.baseprice||0),l=Number(e.priceperkm||0);return r<=i?(0,n.A)((0,n.A)({},e),{},{deliveryamt:s}):(0,n.A)((0,n.A)({},e),{},{deliveryamt:(r-i)*l+s})}));re(e),console.log("finaldeliveryList",e)}),[se]);const{data:xe=[],isLoading:pe,isError:he,error:Ae}=(0,M.I)({queryKey:["paymentmodes"],queryFn:w.HY}),{data:me=[],isLoading:je,isError:ue,error:ve,refetch:ge}=(0,M.I)({queryKey:["ridersList",ce],queryFn:w.Sd,enabled:0!==ce}),ye=(0,T.n)({mutationFn:w.k3,onSuccess:()=>{(0,R.k)("Notification sent Successfully","success",2e3)},onError:e=>{(0,R.k)(e.message,"error",2e3)}}),fe=(0,T.n)({mutationFn:w.H2,onSuccess:(e,r)=>{console.log("data",e),console.log("varialbles",r),ye.mutate(Q.userfcmtoken||oe),"accepted"==e.status&&(0,R.k)("Delivery Created Successfully","success",2e3),setTimeout((()=>{ne(!1),V("/nearle/deliveries")}),2e3)},onError:e=>{(0,R.k)(e.message,"error",4e3)}});return(0,G.jsxs)(C.A,{content:!1,title:(0,G.jsxs)(s.A,{direction:"row",alignItems:"center",spacing:1,sx:{ml:1},children:[(0,G.jsxs)(o.A,{title:"Back to orders",placement:"top",children:[(0,G.jsx)(c.A,{onClick:()=>V("/nearle/orders"),sx:{backgroundColor:"action.hover",color:"text.primary","&:hover":{backgroundColor:"action.selected"}},children:(0,G.jsx)(B.eQE,{size:22})})," "]}),(0,G.jsx)(l.A,{sx:{m:2},variant:"h3",children:"Assign Orders"})]}),secondary:(0,G.jsx)(a.A,{sx:{m:2},color:"primary",variant:"contained",startIcon:(0,G.jsx)(D.A,{}),children:"Re-Assign"}),children:[(pe||je||ie)&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(J.A,{}),(0,G.jsx)(K.A,{})]}),(0,G.jsx)(d.A,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:pe||je||ie,children:(0,G.jsx)(K.A,{color:"inherit"})}),1==ae&&(0,G.jsx)(s.A,{sx:{m:2},children:(0,G.jsxs)(x.Ay,{container:!0,spacing:2,children:[(0,G.jsx)(x.Ay,{item:!0,xs:12,sm:3,children:(0,G.jsx)(P.A,{secondary:null===te||void 0===te?void 0:te.total_orders,primary:"Orders",percentage:(0,G.jsx)(I.A,{}),color:O.palette.success.main,sx:{cursor:"pointer"}})}),(0,G.jsx)(x.Ay,{item:!0,xs:12,sm:3,children:(0,G.jsx)(P.A,{secondary:null===te||void 0===te?void 0:te.total_riders,primary:"Riders",percentage:(0,G.jsx)(N.bsz,{}),color:O.palette.warning.main})}),(0,G.jsx)(x.Ay,{item:!0,xs:12,sm:3,children:(0,G.jsx)(P.A,{secondary:null===le||void 0===le?void 0:le.length,primary:"Zones",percentage:(0,G.jsx)(Z.us2,{}),color:O.palette.info.main})}),(0,G.jsx)(x.Ay,{item:!0,xs:12,sm:3,children:(0,G.jsx)(P.A,{secondary:null===le||void 0===le?void 0:le.length,primary:"Kilometer",percentage:(0,G.jsx)(Z.us2,{}),color:O.palette.error.main})})]})}),q?(0,G.jsx)(L,{list:ee,aiMode:ae}):(0,G.jsx)(p.A,{sx:{maxHeight:"calc(100vh - 250px)",overflow:"auto","&::-webkit-scrollbar":{width:"12px",cursor:"pointer"},"&::-webkit-scrollbar-thumb":{backgroundColor:O.palette.primary.main,borderRadius:"8px",cursor:"pointer"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:O.palette.primary.dark,cursor:"pointer"},"&::-webkit-scrollbar-track":{backgroundColor:O.palette.primary.lighter,cursor:"pointer"}},children:(0,G.jsxs)(h.A,{stickyHeader:!0,children:[(0,G.jsx)(A.A,{children:(0,G.jsxs)(m.A,{sx:{backgroundColor:"red"},children:[(0,G.jsx)(j.A,{sx:{position:"sticky !important",backgroundColor:O.palette.secondary.light},children:"#"}),1==ae&&(0,G.jsx)(j.A,{sx:{position:"sticky !important",backgroundColor:O.palette.secondary.light},children:"Zone "}),(0,G.jsx)(j.A,{sx:{position:"sticky !important",backgroundColor:O.palette.secondary.light},children:"Tenant "}),(0,G.jsx)(j.A,{sx:{position:"sticky !important",backgroundColor:O.palette.secondary.light},children:"order Location"}),(0,G.jsx)(j.A,{sx:{position:"sticky !important",backgroundColor:O.palette.secondary.light},children:"Pickup "}),(0,G.jsx)(j.A,{sx:{position:"sticky !important",backgroundColor:O.palette.secondary.light},children:"Delivery"}),(0,G.jsx)(j.A,{sx:{position:"sticky !important",backgroundColor:O.palette.secondary.light},children:"Notes"}),1==ae&&(0,G.jsx)(j.A,{sx:{position:"sticky !important",backgroundColor:O.palette.secondary.light},children:"Rider"}),(0,G.jsx)(j.A,{align:"center",sx:{position:"sticky !important",backgroundColor:O.palette.secondary.light},children:"Type"}),(0,G.jsx)(j.A,{align:"center",sx:{position:"sticky !important",backgroundColor:O.palette.secondary.light},children:"Profit"}),(0,G.jsx)(j.A,{align:"center",sx:{position:"sticky !important",backgroundColor:O.palette.secondary.light},children:"Charges"}),(0,G.jsx)(j.A,{align:"center",sx:{position:"sticky !important",backgroundColor:O.palette.secondary.light},children:"KMS"})]})}),(0,G.jsxs)(u.A,{children:[0==(null===ee||void 0===ee?void 0:ee.length)&&(0,G.jsx)(m.A,{children:(0,G.jsx)(j.A,{colSpan:10,children:(0,G.jsx)(F.A,{})})}),ee&&1==ae?null===ee||void 0===ee?void 0:ee.map(((e,r)=>(0,G.jsx)(f.Fragment,{children:(0,G.jsxs)(m.A,{sx:{},children:[(0,G.jsx)(j.A,{children:(0,G.jsxs)(l.A,{children:[" ",r+1]})}),1==ae&&(0,G.jsx)(j.A,{children:(0,G.jsx)(t.A,{color:"primary",label:e.zone_name})}),(0,G.jsx)(j.A,{children:(0,G.jsxs)(o.A,{title:e.tenantaddress,children:[(0,G.jsx)(l.A,{variant:"body1",noWrap:!0,children:e.tenantname}),(0,G.jsxs)(l.A,{noWrap:!0,sx:{fontSize:"11px"},children:[e.tenantsuburb,(0,G.jsx)("br",{})]}),(0,G.jsx)(l.A,{noWrap:!0,variant:"body2",children:e.applocation})]})}),(0,G.jsxs)(j.A,{align:"left",children:[(0,G.jsx)(o.A,{title:e.locationaddress,placement:"top",children:(0,G.jsx)(l.A,{variant:"body1",noWrap:!0,children:"".concat(e.locationname,"-(").concat(e.locationsuburb,")")})}),(0,G.jsx)(o.A,{title:"Order Id",children:(0,G.jsx)(l.A,{variant:"body2",noWrap:!0,children:e.orderid})}),(0,G.jsxs)(s.A,{display:"flex",flexDirection:"row",gap:3,children:[(0,G.jsxs)(o.A,{title:"Ordered date",children:[(0,G.jsx)(l.A,{noWrap:!0,sx:{fontSize:"12px"},children:z()(e.orderdate).utc().format("DD/MM/YYYY")}),(0,G.jsx)(l.A,{noWrap:!0,sx:{fontSize:"11px"},children:z()(e.orderdate).utc().format("hh:mm A")})]}),"-",(0,G.jsxs)(o.A,{title:"Delivery date",children:[(0,G.jsx)(l.A,{noWrap:!0,sx:{fontSize:"12px"},children:z()(e.deliverydate).utc().format("DD/MM/YYYY")}),(0,G.jsx)(l.A,{noWrap:!0,sx:{fontSize:"11px"},children:z()(e.deliverydate).utc().format("hh:mm A")})]})]})]}),(0,G.jsx)(j.A,{align:"left",children:(0,G.jsx)(s.A,{direction:"row",spacing:1,children:(0,G.jsxs)(s.A,{direction:"column",children:[(0,G.jsx)(l.A,{variant:"caption",children:e.pickupcustomer}),(0,G.jsx)(l.A,{variant:"caption",children:e.pickupcontactno}),(0,G.jsx)(o.A,{title:e.pickupaddress,children:(0,G.jsx)(l.A,{variant:"caption",children:e.pickupsuburb||e.pickupaddress.slice(0,20)})})]})})}),(0,G.jsx)(j.A,{align:"left",children:(0,G.jsx)(s.A,{direction:"row",spacing:1,children:(0,G.jsxs)(s.A,{direction:"column",children:[(0,G.jsx)(l.A,{variant:"caption",children:e.deliverycustomer}),(0,G.jsx)(l.A,{variant:"caption",children:e.deliverycontactno}),(0,G.jsx)(o.A,{title:e.deliveryaddress,children:(0,G.jsx)(l.A,{variant:"caption",children:e.deliverysuburb||e.deliveryaddress.slice(0,20)})})]})})}),(0,G.jsx)(j.A,{align:"left",children:e.ordernotes}),1==ae&&(0,G.jsxs)(j.A,{align:"left",children:[(0,G.jsx)(l.A,{sx:{whiteSpace:"nowrap"},children:e.username}),(0,G.jsxs)(l.A,{children:["ID : ",e.userid]})]}),(0,G.jsx)(j.A,{align:"center",children:(0,G.jsx)(t.A,{size:"small",label:e.ordertype,color:"Economy"==e.ordertype?"success":"Risky"==e.ordertype?"error":"primary"})}),(0,G.jsx)(j.A,{align:"center",children:(0,G.jsxs)(s.A,{display:"flex",flexDirection:"column",gap:1,sx:{cursor:"pointer"},children:[(0,G.jsx)(o.A,{title:"Charges",placement:"top",children:(0,G.jsx)(t.A,{size:"small",label:"\u20b9 ".concat(e.deliverycharge.toFixed(2)," "),color:"error"})}),(0,G.jsx)(o.A,{title:"Amount",placement:"left",children:(0,G.jsx)(t.A,{size:"small",label:"\u20b9 ".concat(e.deliveryamt.toFixed(2)," "),color:"success"})})]})}),(0,G.jsx)(j.A,{align:"center",children:(0,G.jsxs)(s.A,{display:"flex",flexDirection:"column",gap:1,sx:{cursor:"pointer"},children:[(0,G.jsx)(o.A,{title:"KMS",placement:"top",children:(0,G.jsx)(t.A,{size:"small",label:"".concat(e.kms," km"),color:"error"})}),(0,G.jsx)(o.A,{title:"Cumulative Kms",placement:"right",children:(0,G.jsx)(t.A,{size:"small",label:"".concat(e.cumulativekms," km"),color:"success"})})]})})]})},r))):null===ee||void 0===ee?void 0:ee.map(((e,r)=>(0,G.jsx)(f.Fragment,{children:(0,G.jsxs)(m.A,{sx:{},children:[(0,G.jsx)(j.A,{children:(0,G.jsxs)(l.A,{children:[" ",r+1]})}),(0,G.jsx)(j.A,{children:(0,G.jsxs)(o.A,{title:e.tenantaddress,children:[(0,G.jsx)(l.A,{variant:"body1",noWrap:!0,children:e.tenantname}),(0,G.jsxs)(l.A,{noWrap:!0,sx:{fontSize:"11px"},children:[e.tenantsuburb,(0,G.jsx)("br",{})]}),(0,G.jsx)(l.A,{noWrap:!0,variant:"body2",children:e.applocation})]})}),(0,G.jsxs)(j.A,{align:"left",children:[(0,G.jsx)(o.A,{title:e.locationaddress,placement:"top",children:(0,G.jsx)(l.A,{variant:"body1",noWrap:!0,children:"".concat(e.locationname,"-(").concat(e.locationsuburb,")")})}),(0,G.jsx)(o.A,{title:"Order Id",children:(0,G.jsx)(l.A,{variant:"body2",noWrap:!0,children:e.orderid})}),(0,G.jsxs)(s.A,{display:"flex",flexDirection:"row",gap:3,children:[(0,G.jsxs)(o.A,{title:"Ordered date",children:[(0,G.jsx)(l.A,{noWrap:!0,sx:{fontSize:"12px"},children:z()(e.orderdate).utc().format("DD/MM/YYYY")}),(0,G.jsx)(l.A,{noWrap:!0,sx:{fontSize:"11px"},children:z()(e.orderdate).utc().format("hh:mm A")})]}),"-",(0,G.jsxs)(o.A,{title:"Delivery date",children:[(0,G.jsx)(l.A,{noWrap:!0,sx:{fontSize:"12px"},children:z()(e.deliverydate).utc().format("DD/MM/YYYY")}),(0,G.jsx)(l.A,{noWrap:!0,sx:{fontSize:"11px"},children:z()(e.deliverydate).utc().format("hh:mm A")})]})]})]}),(0,G.jsx)(j.A,{align:"left",children:(0,G.jsx)(s.A,{direction:"row",spacing:1,children:(0,G.jsxs)(s.A,{direction:"column",children:[(0,G.jsx)(l.A,{variant:"caption",children:e.pickupcustomer}),(0,G.jsx)(l.A,{variant:"caption",children:e.pickupcontactno}),(0,G.jsx)(o.A,{title:e.pickupaddress,children:(0,G.jsx)(l.A,{variant:"caption",children:e.pickupsuburb||e.pickupaddress.slice(0,20)})})]})})}),(0,G.jsx)(j.A,{align:"left",children:(0,G.jsx)(s.A,{direction:"row",spacing:1,children:(0,G.jsxs)(s.A,{direction:"column",children:[(0,G.jsx)(l.A,{variant:"caption",children:e.deliverycustomer}),(0,G.jsx)(l.A,{variant:"caption",children:e.deliverycontactno}),(0,G.jsx)(o.A,{title:e.deliveryaddress,children:(0,G.jsx)(l.A,{variant:"caption",children:e.deliverysuburb||e.deliveryaddress.slice(0,20)})})]})})}),(0,G.jsx)(j.A,{align:"left",children:e.ordernotes}),(0,G.jsx)(j.A,{align:"center",children:(0,G.jsx)(t.A,{size:"small",label:e.ordertype,color:"Economy"==e.ordertype?"success":"Risky"==e.ordertype?"error":"primary"})}),(0,G.jsx)(j.A,{align:"center",children:(0,G.jsxs)(s.A,{display:"flex",flexDirection:"column",gap:1,sx:{cursor:"pointer"},children:[(0,G.jsx)(o.A,{title:"Charges",placement:"top",children:(0,G.jsx)(t.A,{size:"small",label:"\u20b9 ".concat(e.deliverycharge.toFixed(2)," "),color:"error"})}),(0,G.jsx)(o.A,{title:"Amount",placement:"left",children:(0,G.jsx)(t.A,{size:"small",label:"\u20b9 ".concat(e.deliveryamt.toFixed(2)," "),color:"success"})})]})}),(0,G.jsx)(j.A,{align:"center",children:(0,G.jsxs)(s.A,{display:"flex",flexDirection:"column",gap:1,sx:{cursor:"pointer"},children:[(0,G.jsx)(o.A,{title:"KMS",placement:"top",children:(0,G.jsx)(t.A,{size:"small",label:"".concat(e.kms," km"),color:"error"})}),(0,G.jsx)(o.A,{title:"Cumulative Kms",placement:"right",children:(0,G.jsx)(t.A,{size:"small",label:"".concat(e.cumulativekms," km"),color:"success"})})]})})]})},r)))]})]})}),(0,G.jsx)(v.A,{}),0==ae&&(0,G.jsxs)(x.Ay,{container:!0,spacing:2,sx:{p:2},children:[(0,G.jsx)(x.Ay,{item:!0,xs:12,sm:6,children:(0,G.jsx)(g.A,{id:"free-solo-demo",options:xe,renderInput:e=>(0,G.jsx)(y.A,(0,n.A)((0,n.A)({},e),{},{label:"Choose Payment"})),onChange:(e,r,i)=>{if("clear"!==i){if(r){console.log("Selected:",r),$(r);const e=null===ee||void 0===ee?void 0:ee.map((e=>(0,n.A)((0,n.A)({},e),{},{paymenttype:r.apptypeid})));re(e)}}else $(null)}})}),(0,G.jsx)(x.Ay,{item:!0,xs:12,sm:6,children:(0,G.jsx)(g.A,{id:"free-solo-demo",options:me,renderInput:e=>(0,G.jsx)(y.A,(0,n.A)((0,n.A)({},e),{},{label:"Choose Rider"})),onChange:(e,r,i)=>{if("clear"!==i){if(r){X(r),console.log("Selected:",r);const e=null===ee||void 0===ee?void 0:ee.map((e=>(0,n.A)((0,n.A)({},e),{},{userid:r.userid,userfcmtoken:r.userfcmtoken})));re(e)}}else X(null)}})})]}),(0,G.jsx)(v.A,{}),(0,G.jsxs)(s.A,{display:"flex",flexDirection:{xs:"column",sm:"row"},gap:2,alignItems:{xs:"stretch",sm:"center"},justifyContent:"end",sx:{p:2},children:[(0,G.jsx)(a.A,{fullWidth:q,variant:"contained",color:"secondary",startIcon:(0,G.jsx)(D.A,{}),onClick:()=>{V("/nearle/orders")},children:"Back"}),(0,G.jsx)(a.A,{fullWidth:q,sx:{my:{xs:0,sm:2}},variant:"contained",disabled:0===ae&&(!Q||!_),onClick:async()=>{ne(!0),fe.mutate({deliveries:ee})},children:"Assign Orders"})]})]})}},94826:(e,r,i)=>{i.d(r,{A:()=>a});var n=i(60308),s=i(12010),l=i(62217),t=i(65908);const o=(0,n.Ay)("div")((()=>({position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2001,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0.7)",padding:"20px",borderRadius:"10px"}))),c=(0,n.Ay)("div")((()=>({position:"absolute",width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center"}))),a=()=>(0,t.jsxs)(o,{children:[(0,t.jsx)(s.A,{color:"primary",size:80,thickness:6}),(0,t.jsx)(c,{children:(0,t.jsx)("img",{src:l,alt:"Logo",style:{width:"100%",height:"100%"}})})]})}}]); \ No newline at end of file diff --git a/build/static/js/9438.3a1c3ba9.chunk.js b/build/static/js/9438.3a1c3ba9.chunk.js new file mode 100644 index 0000000..4ae1bff --- /dev/null +++ b/build/static/js/9438.3a1c3ba9.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9438],{9438:(e,t,o)=>{o.r(t),o.d(t,{default:()=>Z});var r=o(22555),i=o(85672),n=o(41033),l=o(55235),s=o(97043),a=o(23440),d=o(48738),c=o(69039),u=o(76264),x=o(1939),h=o(2866),f=o(71392),p=o(83209),g=o(72486),m=o(54016),v=o(50755),b=o(1596),A=o(81802),j=o(81062),w=o(48952),S=o(46077),y=o.n(S),C=o(81425),D=o(52351),R=o(35678),k=o(59212),M=o(56311),P=o(27001),N=o(36803),Y=o(23787),W=o(65908),I=o(22686);y().extend(I);const z={radiusPill:999,radiusCard:14,shadowSoft:"0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05)",shadowMd:"0 1px 3px rgba(15, 23, 42, 0.06)",shadowPop:"0 12px 32px rgba(15, 23, 42, 0.12)",textPrimary:"#0f172a",textSecondary:"#64748b",textMuted:"#94a3b8",borderSubtle:"#e2e8f0",divider:"#f1f5f9",surface:"#ffffff",surfaceAlt:"#f8fafc"},L=(e,t)=>"".concat(e).concat(t),F=e=>L(e,"18"),T=e=>L(e,"08"),O=e=>L(e,"55"),H=e=>L(e,"26"),B="#662582",E=e=>(0,W.jsx)(l.A,(0,r.A)((0,r.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:z.shadowPop,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),K=e=>{let{color:t,selected:o,size:r=24,children:i}=e;return(0,W.jsx)(s.A,{sx:{width:r,height:r,bgcolor:o?t:F(t),color:o?"#fff":t,transition:"background-color 0.15s, color 0.15s"},children:i})},_=e=>{let{color:t,icon:o,label:r,tooltip:i,minWidth:n=80}=e;return(0,W.jsx)(a.A,{title:i||"",placement:"top",children:(0,W.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(O(t)),color:t,fontSize:11,fontWeight:800,minWidth:n,justifyContent:"center",whiteSpace:"nowrap"},children:[o,r]})})},J=[{id:"morning",name:"Morning Batch",startHour:0,endHour:8},{id:"afternoon",name:"Afternoon Batch",startHour:9,endHour:12.5},{id:"evening",name:"Evening Batch",startHour:16,endHour:19}],V=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J;const o=null===e||void 0===e?void 0:e.assigntime;if(!o)return null;const r=String(o).trim();if(/^\d{4}-\d{2}-\d{2}$/.test(r))return null;const i=y()(o);return i.isValid()?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J;for(const o of t)if(e>=o.startHour&&e{if("undefined"===typeof window)return J;try{const e=window.localStorage.getItem("dispatch.slots.v9");if(!e)return J;const t=JSON.parse(e);return Array.isArray(t)&&t.length===J.length?t.map(((e,t)=>{var o;const r=e.id||"slot-".concat(t+1),i=Number(e.startHour)||0,n=Number(e.endHour)||24;return{id:r,name:e.name||(null===(o=J.find((e=>e.id===r)))||void 0===o?void 0:o.name)||"Slot ".concat(t+1),startHour:i,endHour:n}})):J}catch(e){return J}}),[]),{data:Se,isLoading:ye,fetchNextPage:Ce,hasNextPage:De,isFetchingNextPage:Re}=(0,n.q)({queryKey:["fetchdeliveries",pe,je,"all",ne,se,2e3,"",0,0,0],queryFn:C.tL,getNextPageParam:e=>{var t;return null!==(t=e.nextPage)&&void 0!==t?t:void 0},refetchOnWindowFocus:!1});(0,i.useEffect)((()=>{De&&!Re&&Ce()}),[De,Re,Ce]);const ke=(0,i.useMemo)((()=>{const e=((null===Se||void 0===Se?void 0:Se.pages)||[]).flatMap((e=>e.rows||[])),t=new Set,o=[];for(const r of e){const e=null!=r.orderid?String(r.orderid):null;e&&t.has(e)||(e&&t.add(e),o.push(r))}return o}),[Se]),Me=(0,i.useMemo)((()=>{const e={};return ke.forEach((t=>{const o=String(t.userid||t.rider_id||"");o&&"unassigned"!==o&&"0"!==o&&(e[o]||(e[o]={id:o,riderName:t.ridername||t.rider_name||t.username||"Rider ".concat(o),orders:[]}),e[o].orders.some((e=>e.orderid===t.orderid))||e[o].orders.push(t))})),Object.values(e).map((e=>(0,r.A)((0,r.A)({},e),{},{orders:[...e.orders].sort(((e,t)=>{const o=e.trip_number||1,r=t.trip_number||1;return o!==r?o-r:(e.step||0)-(t.step||0)}))}))).sort(((e,t)=>t.orders.length-e.orders.length))}),[ke]),Pe=(0,i.useMemo)((()=>{let e=0,t=0,o=0,i=0,n=0,l=0,s=0;const a=Me.map((a=>{let d=0,c=0;const u={};let x=0;if(a.orders.forEach((e=>{const t=V(e,we);if(!t)return;const o=parseFloat(e.riderkms||0);c+=o,d+=o<=8?30:30+6*(o-8);const r=e.assigntime?y()(e.assigntime).format("YYYY-MM-DD"):e.deliverydate?y()(e.deliverydate).format("YYYY-MM-DD"):null;r&&(u[r]||(u[r]=new Set),u[r].add(t),x++)})),0===x)return null;let h=0;Object.values(u).forEach((e=>{h+=Math.min(e.size,3)}));const f=2.5*c,p=h*(500/3),g=f+p,m=d-g,v=d>0?m/d*100:0;return m>=0?n++:l++,t+=x,o+=d,i+=g,s+=c,e++,(0,r.A)((0,r.A)({},a),{},{kms:c,revenue:d,varCost:f,fixedCost:p,totalCost:g,net:m,margin:v})})).filter(Boolean),d=o-i;return{activeRiders:e,totalOrders:t,totalRevenue:o,totalCost:i,totalNet:d,totalMargin:o>0?d/o*100:0,profitableRiders:n,lossRiders:l,totalKms:s,enrichedRiders:a}}),[Me,we]),Ne=(0,i.useMemo)((()=>{if(null===Pe||void 0===Pe||!Pe.enrichedRiders||!Array.isArray(Pe.enrichedRiders))return[];const e=Pe.enrichedRiders.filter(Boolean);if(!be)return e;const t=be.toLowerCase().trim();return e.filter((e=>e&&[e.riderName,String(e.id)].filter(Boolean).some((e=>String(e).toLowerCase().includes(t)))))}),[null===Pe||void 0===Pe?void 0:Pe.enrichedRiders,be]),Ye=[{key:"riders",label:"Riders Active",color:B,icon:w.LTk,value:null!==(e=null===Pe||void 0===Pe?void 0:Pe.activeRiders)&&void 0!==e?e:0,detail:"".concat(null!==(t=null===Pe||void 0===Pe?void 0:Pe.profitableRiders)&&void 0!==t?t:0," in profit \xb7 ").concat(null!==(o=null===Pe||void 0===Pe?void 0:Pe.lossRiders)&&void 0!==o?o:0," at loss")},{key:"kms",label:"Total Distance",color:"#10b981",icon:w.xI$,value:"".concat((null!==(S=null===Pe||void 0===Pe?void 0:Pe.totalKms)&&void 0!==S?S:0).toFixed(1)," km"),detail:"Cumulative travel distance"},{key:"revenue",label:"Slot Revenue",color:"#0ea5e9",icon:w.HU2,value:q(null!==(I=null===Pe||void 0===Pe?void 0:Pe.totalRevenue)&&void 0!==I?I:0),detail:"From ".concat(null!==(L=null===Pe||void 0===Pe?void 0:Pe.totalOrders)&&void 0!==L?L:0," orders")},{key:"cost",label:"Slot Cost",color:"#f59e0b",icon:w.DwJ,value:q(null!==(Z=null===Pe||void 0===Pe?void 0:Pe.totalCost)&&void 0!==Z?Z:0),detail:"Fixed + variable"},{key:"net",label:"Slot Net",color:(null!==($=null===Pe||void 0===Pe?void 0:Pe.totalNet)&&void 0!==$?$:0)>=0?"#10b981":"#ef4444",icon:(null!==(G=null===Pe||void 0===Pe?void 0:Pe.totalNet)&&void 0!==G?G:0)>=0?w.imn:w.Rod,value:"".concat((null!==(U=null===Pe||void 0===Pe?void 0:Pe.totalNet)&&void 0!==U?U:0)>=0?"+":"").concat(q(null!==(Q=null===Pe||void 0===Pe?void 0:Pe.totalNet)&&void 0!==Q?Q:0)),detail:"".concat((null!==(X=null===Pe||void 0===Pe?void 0:Pe.totalRevenue)&&void 0!==X?X:0)>0&&(null!==(ee=null===Pe||void 0===Pe?void 0:Pe.totalNet)&&void 0!==ee?ee:0)/(null!==(te=null===Pe||void 0===Pe?void 0:Pe.totalRevenue)&&void 0!==te?te:1)>=0?"+":"").concat((null!==(oe=null===Pe||void 0===Pe?void 0:Pe.totalMargin)&&void 0!==oe?oe:0).toFixed(0),"% margin")}];return(0,W.jsxs)(W.Fragment,{children:[(ye||Re)&&(0,W.jsx)(D.A,{}),(0,W.jsx)(P.A,{title:"Profitability Report",subtitle:"Live \xb7 ".concat(de||"All Zones"," \xb7 ").concat(he),live:!0,action:(0,W.jsx)(k.A,{locaName:de,setAppId:ge,setLocoName:ce,pill:!0,accentColor:B,icon:(0,W.jsx)(w.HPi,{size:14}),placeholder:"Select Zone",paperComponent:E,sx:{width:{xs:"100%",sm:280},zIndex:100}})}),(0,W.jsx)(x.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:Ye.map((e=>{var t;const o=e.icon;return(0,W.jsxs)(x.Ay,{item:!0,xs:6,sm:4,md:2.4,children:[(0,W.jsx)(N.A,{title:e.label,value:null!==(t=e.value)&&void 0!==t?t:0,icon:(0,W.jsx)(o,{size:20}),color:e.color,loading:ye}),(0,W.jsx)(h.A,{variant:"caption",sx:{color:z.textSecondary,display:"block",mt:.5,px:2,fontWeight:500},children:e.detail})]},e.key)}))}),(0,W.jsx)(l.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:z.radiusCard/8,borderTopRightRadius:z.radiusCard/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:z.borderSubtle,borderBottom:0,background:"#fff"},children:(0,W.jsxs)(f.A,{direction:{xs:"column",sm:"row"},alignItems:{xs:"stretch",sm:"center"},justifyContent:"space-between",spacing:1.25,children:[(0,W.jsxs)(f.A,{direction:"row",alignItems:"center",spacing:1.25,flexWrap:"wrap",children:[(0,W.jsx)(K,{color:B,size:32,children:(0,W.jsx)(w.LTk,{size:18})}),(0,W.jsxs)(f.A,{children:[(0,W.jsxs)(h.A,{variant:"caption",sx:{fontWeight:800,color:z.textSecondary,letterSpacing:.6,textTransform:"uppercase"},children:["Profitability Overview \xb7 ",he]}),(0,W.jsxs)(h.A,{variant:"body2",sx:{color:z.textPrimary,fontWeight:700},children:[Ne.length," riders \xb7 ",Pe.profitableRiders," profitable \xb7 ",Pe.lossRiders," at loss"]})]}),(0,W.jsx)(a.A,{title:"Date Filter",placement:"top",children:(0,W.jsxs)(d.A,{onClick:()=>xe(!0),sx:{display:"inline-flex",alignItems:"center",gap:.75,px:1.25,py:.75,borderRadius:999,cursor:"pointer",bgcolor:T("#f59e0b"),border:"1.5px solid ".concat(O("#f59e0b")),color:"#f59e0b",fontWeight:800,fontSize:12,ml:1,transition:"all 0.18s","&:hover":{borderColor:"#f59e0b",boxShadow:"0 0 0 3px ".concat(H("#f59e0b"))}},children:[(0,W.jsx)(w.Ki0,{size:14}),y()(ne).format("DD/MM/YY")," \u2013 ",y()(se).format("DD/MM/YY")]})})]}),(0,W.jsx)(d.A,{sx:{width:{xs:"100%",sm:280,lg:340},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,W.jsx)(M.A,{value:me,onChange:ve,onDebouncedChange:Ae,placeholder:"Search riders",sx:{m:0,width:"100%",borderRadius:999,bgcolor:"#ffffff","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:1.5},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(H(B))}}})})]})}),(0,W.jsx)(l.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:z.radiusCard/8,borderBottomRightRadius:z.radiusCard/8,border:"1px solid",borderColor:z.borderSubtle,overflow:"hidden",background:"#fff"},children:ie?(0,W.jsx)(Y.nV,{scroll:!0,children:Ne&&0!==Ne.length?Ne.map(((e,t)=>{var o;if(!e)return null;const r=(null!==(o=e.net)&&void 0!==o?o:0)>=0;return(0,W.jsx)(Y.pg,{accent:r?"#10b981":"#ef4444",header:(0,W.jsxs)(f.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,W.jsx)(K,{color:r?"#10b981":"#ef4444",size:36,children:(0,W.jsx)(w.LTk,{size:18})}),(0,W.jsxs)(f.A,{children:[(0,W.jsx)(h.A,{variant:"subtitle2",sx:{fontWeight:700,color:z.textPrimary},children:e.riderName}),(0,W.jsxs)(h.A,{variant:"caption",sx:{color:z.textSecondary},children:["ID #",e.id]})]})]}),children:(0,W.jsxs)(Y.FG,{columns:2,children:[(0,W.jsx)(Y.pY,{label:"Orders",value:e.orders.length}),(0,W.jsx)(Y.pY,{label:"Rider KMs",value:"".concat(e.kms.toFixed(2)," km")}),(0,W.jsx)(Y.pY,{label:"Revenue",value:q(e.revenue)}),(0,W.jsx)(Y.pY,{label:"Fixed Cost",value:q(e.fixedCost)}),(0,W.jsx)(Y.pY,{label:"Variable Cost",value:q(e.varCost)}),(0,W.jsx)(Y.pY,{label:"Total Cost",value:q(e.totalCost)}),(0,W.jsx)(Y.pY,{label:"Net Profit",value:"".concat(r?"+":"").concat(q(e.net)),full:!0}),(0,W.jsx)(Y.pY,{label:"Margin",value:"".concat(Math.abs(e.margin).toFixed(0),"%"),full:!0})]})},e.id||t)})):(0,W.jsxs)(f.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,W.jsx)(s.A,{sx:{width:64,height:64,bgcolor:F("#94a3b8"),color:z.textMuted},children:(0,W.jsx)(w.LTk,{size:28})}),(0,W.jsx)(h.A,{variant:"subtitle1",sx:{fontWeight:700,color:z.textPrimary},children:"No riders to show"})]})}):(0,W.jsx)(p.A,{sx:{maxHeight:"calc(100vh - 280px)","&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:O(B),borderRadius:8,"&:hover":{backgroundColor:B}},"&::-webkit-scrollbar-track":{backgroundColor:z.surfaceAlt}},children:(0,W.jsxs)(g.A,{stickyHeader:!0,sx:{minWidth:1e3},children:[(0,W.jsx)(m.A,{children:(0,W.jsxs)(v.A,{sx:{"& th":{backgroundColor:z.surfaceAlt,color:z.textSecondary,fontSize:11,fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(z.borderSubtle),py:1.25,px:2}},children:[(0,W.jsx)(b.A,{children:"#"}),(0,W.jsx)(b.A,{children:"Rider"}),(0,W.jsx)(b.A,{align:"center",children:"Orders"}),(0,W.jsx)(b.A,{align:"center",children:"Rider KMs"}),(0,W.jsx)(b.A,{align:"center",children:"Revenue"}),(0,W.jsx)(b.A,{align:"center",children:"Fixed Cost"}),(0,W.jsx)(b.A,{align:"center",children:"Variable Cost"}),(0,W.jsx)(b.A,{align:"center",children:"Total Cost"}),(0,W.jsx)(b.A,{align:"center",children:"Net Profit"}),(0,W.jsx)(b.A,{align:"center",children:"Margin"})]})}),(0,W.jsx)(A.A,{children:Ne&&0!==Ne.length?Ne.map(((e,t)=>{var o;if(!e)return null;const r=(null!==(o=e.net)&&void 0!==o?o:0)>=0;return(0,W.jsxs)(v.A,{sx:{transition:"background-color 0.15s","& td":{borderBottom:"1px solid ".concat(z.divider),py:1.5,px:2},"&:hover":{backgroundColor:z.surfaceAlt}},children:[(0,W.jsx)(b.A,{children:(0,W.jsx)(h.A,{variant:"caption",sx:{fontWeight:700,color:z.textMuted},children:String(t+1).padStart(2,"0")})}),(0,W.jsx)(b.A,{children:(0,W.jsxs)(f.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,W.jsx)(K,{color:B,size:36,children:(0,W.jsx)(w.LTk,{size:18})}),(0,W.jsxs)(f.A,{children:[(0,W.jsx)(h.A,{variant:"subtitle2",sx:{fontWeight:700,color:z.textPrimary,whiteSpace:"nowrap"},children:e.riderName}),(0,W.jsxs)(h.A,{variant:"caption",sx:{color:z.textSecondary},children:["ID #",e.id]})]})]})}),(0,W.jsx)(b.A,{align:"center",children:(0,W.jsx)(h.A,{variant:"body2",sx:{fontWeight:700,color:z.textPrimary},children:e.orders.length})}),(0,W.jsx)(b.A,{align:"center",children:(0,W.jsx)(_,{color:"#10b981",icon:(0,W.jsx)(w.xI$,{size:11}),label:"".concat(e.kms.toFixed(2)," km"),tooltip:"KMS"})}),(0,W.jsx)(b.A,{align:"center",children:(0,W.jsx)(_,{color:B,icon:(0,W.jsx)(w.S75,{size:11}),label:q(e.revenue).replace("\u20b9","").trim(),tooltip:"Revenue"})}),(0,W.jsx)(b.A,{align:"center",children:(0,W.jsx)(_,{color:"#6366f1",icon:(0,W.jsx)(w.DwJ,{size:11}),label:q(e.fixedCost).replace("\u20b9","").trim(),tooltip:"Fixed Cost"})}),(0,W.jsx)(b.A,{align:"center",children:(0,W.jsx)(_,{color:"#f59e0b",icon:(0,W.jsx)(w.pk7,{size:11}),label:q(e.varCost).replace("\u20b9","").trim(),tooltip:"Variable Cost"})}),(0,W.jsx)(b.A,{align:"center",children:(0,W.jsx)(_,{color:"#94a3b8",icon:(0,W.jsx)(w.DwJ,{size:11}),label:q(e.totalCost).replace("\u20b9","").trim(),tooltip:"Total Cost"})}),(0,W.jsx)(b.A,{align:"center",children:(0,W.jsx)(_,{color:r?"#10b981":"#ef4444",icon:r?(0,W.jsx)(w.imn,{size:11}):(0,W.jsx)(w.Rod,{size:11}),label:"".concat(r?"+":"").concat(q(e.net).replace("\u20b9","").trim()),tooltip:"Net Profit"})}),(0,W.jsx)(b.A,{align:"center",children:(0,W.jsx)(j.A,{label:"".concat(Math.abs(e.margin).toFixed(0),"%"),color:r?"success":"error",size:"small",sx:{fontWeight:700,minWidth:60}})})]},e.id||t)})):(0,W.jsx)(v.A,{children:(0,W.jsx)(b.A,{colSpan:10,sx:{py:6},children:(0,W.jsxs)(f.A,{alignItems:"center",spacing:1.5,children:[(0,W.jsx)(s.A,{sx:{width:64,height:64,bgcolor:F("#94a3b8"),color:z.textMuted},children:(0,W.jsx)(w.LTk,{size:28})}),(0,W.jsx)(h.A,{variant:"subtitle1",sx:{fontWeight:700,color:z.textPrimary},children:"No riders to show"})]})})})})]})})}),(0,W.jsx)(R.A,{open:ue,onClose:()=>xe(!1),onSelect:e=>{le(e.startDate),ae(e.endDate),fe(e.label)}})]})}},23787:(e,t,o)=>{o.d(t,{FG:()=>h,nV:()=>u,pY:()=>f,pg:()=>x});var r=o(22555),i=o(53986),n=o(71392),l=o(55235),s=o(48738),a=o(2866),d=o(65908);const c=["children","scroll","onScroll","sx"],u=e=>{let{children:t,scroll:o=!1,onScroll:l,sx:s}=e,a=(0,i.A)(e,c);return(0,d.jsx)(n.A,(0,r.A)((0,r.A)({spacing:1.25,onScroll:l,sx:(0,r.A)((0,r.A)({p:1.5},o&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),s)},a),{},{children:t}))},x=e=>{let{accent:t="#662582",header:o,footer:i,selected:n=!1,onClick:a,children:c,sx:u}=e;return(0,d.jsxs)(l.A,{elevation:0,onClick:a,sx:(0,r.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:n?t:"#e2e8f0",background:n?"".concat(t,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},u),children:[(0,d.jsx)(s.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:t}}),(0,d.jsxs)(s.A,{sx:{p:1.5,pl:2},children:[o,c,i]})]})},h=e=>{let{children:t,columns:o=2,sx:i}=e;return(0,d.jsx)(s.A,{sx:(0,r.A)({display:"grid",gridTemplateColumns:"repeat(".concat(o,", minmax(0, 1fr))"),gap:1,mt:1.25},i),children:t})},f=e=>{let{label:t,value:o,children:r,full:i=!1,align:n="left"}=e;return(0,d.jsxs)(s.A,{sx:{gridColumn:i?"1 / -1":"auto",minWidth:0,textAlign:n},children:[(0,d.jsx)(a.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:t}),(0,d.jsx)(s.A,{sx:{mt:.25,minWidth:0},children:void 0!==r?r:(0,d.jsx)(a.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==o&&void 0!==o?o:"\u2014"})})]})}},27001:(e,t,o)=>{o.d(t,{A:()=>s});var r=o(71392),i=o(48738),n=o(2866),l=o(65908);function s(e){let{title:t,subtitle:o,live:s=!1,action:a}=e;return(0,l.jsxs)(r.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,l.jsxs)(i.A,{sx:{minWidth:0},children:[(0,l.jsx)(n.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:t}),o&&(0,l.jsxs)(r.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[s&&(0,l.jsx)(i.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,l.jsx)(n.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:o})]})]}),a&&(0,l.jsx)(i.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:a})]})}},35678:(e,t,o)=>{o.d(t,{A:()=>j});var r=o(85672),i=o(58689),n=o(19619),l=o(2866),s=o(5670),a=o(71392),d=o(80911),c=o(36117),u=o(46077),x=o.n(u),h=o(36738),f=o(80959),p=o(33090),g=o(52994),m=o(33323),v=o(75732),b=o(43962),A=o(65908);const j=e=>{let{open:t,onClose:o,onSelect:u}=e;const[j,w]=(0,r.useState)(null);return(0,A.jsxs)(i.A,{open:t,onClose:o,children:[(0,A.jsx)(n.A,{align:"left",children:(0,A.jsx)(l.A,{variant:"h4",children:"Select Filter Options"})}),(0,A.jsx)(s.A,{sx:{width:"100%"},className:"datedialog",children:(0,A.jsx)(c.U,{open:t,toggle:o,id:"daterange1",onChange:e=>{w({startDate:x()(e.startDate).format("YYYY-MM-DD"),endDate:x()(e.endDate).format("YYYY-MM-DD"),label:e.label||"custom"})},definedRanges:[{label:"Today",startDate:new Date,endDate:new Date},{label:"Yesterday",startDate:(0,h.A)(new Date,-1),endDate:(0,h.A)(new Date,-1)},{label:"Tomorrow",startDate:(0,h.A)(new Date,1),endDate:(0,h.A)(new Date,1)},{label:"This Week",startDate:(0,f.A)(new Date),endDate:(0,p.A)(new Date)},{label:"Last Week",startDate:(0,f.A)((0,g.A)(new Date,-1)),endDate:(0,p.A)((0,g.A)(new Date,-1))},{label:"Last 7 Days",startDate:(0,g.A)(new Date,-1),endDate:new Date},{label:"This Month",startDate:(0,m.A)(new Date),endDate:(0,v.A)(new Date)},{label:"Last Month",startDate:(0,m.A)((0,b.A)(new Date,-1)),endDate:(0,v.A)((0,b.A)(new Date,-1))}]})}),(0,A.jsx)(a.A,{direction:"row",justifyContent:"flex-end",sx:{width:"100%",p:2},children:(0,A.jsx)(d.A,{variant:"contained",size:"small",onClick:()=>{j?(u(j),o()):o()},children:"OK"})})]})}},36803:(e,t,o)=>{o.d(t,{A:()=>u});var r=o(84007),i=o(75953),n=o(71392),l=o(48738),s=o(2866),a=o(91834),d=o(97043),c=o(65908);function u(e){let{title:t,value:o,icon:u,color:x="#662582",caption:h,loading:f=!1}=e;return(0,c.jsx)(r.A,{sx:{height:"100%"},children:(0,c.jsx)(i.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,c.jsxs)(n.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,c.jsxs)(l.A,{sx:{minWidth:0,flex:1},children:[(0,c.jsx)(s.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t}),f?(0,c.jsx)(a.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,c.jsx)(s.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o}),h&&(0,c.jsx)(s.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:h})]}),u&&(0,c.jsx)(d.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(x,"14"),color:x,flexShrink:0},children:u})]})})})}},41033:(e,t,o)=>{o.d(t,{q:()=>a});var r=o(22555),i=o(48149),n=o(59949),l=class extends i.${constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions((0,r.A)((0,r.A)({},e),{},{behavior:(0,n.PL)()}),t)}getOptimisticResult(e){return e.behavior=(0,n.PL)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch((0,r.A)((0,r.A)({},e),{},{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(e){return this.fetch((0,r.A)((0,r.A)({},e),{},{meta:{fetchMore:{direction:"backward"}}}))}createResult(e,t){var o,i,l,s;const{state:a}=e,d=super.createResult(e,t),{isFetching:c,isRefetching:u}=d,x=c&&"forward"===(null===(o=a.fetchMeta)||void 0===o||null===(i=o.fetchMore)||void 0===i?void 0:i.direction),h=c&&"backward"===(null===(l=a.fetchMeta)||void 0===l||null===(s=l.fetchMore)||void 0===s?void 0:s.direction);return(0,r.A)((0,r.A)({},d),{},{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,n.rB)(t,a.data),hasPreviousPage:(0,n.RQ)(t,a.data),isFetchingNextPage:x,isFetchingPreviousPage:h,isRefetching:u&&!x&&!h})}},s=o(59363);function a(e,t){return(0,s.t)(e,l,t)}},56311:(e,t,o)=>{o.d(t,{A:()=>h});var r=o(22555),i=o(85672),n=o(29776),l=o(43318),s=o(23440),a=o(11969),d=o(80795),c=o(51808),u=o(93811),x=o(65908);const h=e=>{let{value:t,onChange:o,onDebouncedChange:h,debounceTime:f=500,placeholder:p="Search (ctrl+k)",sx:g}=e;const m=(0,i.useRef)(null),[v]=(0,u.d7)(t,f);return(0,i.useEffect)((()=>{h&&h(v)}),[v,h]),(0,i.useEffect)((()=>{const e=e=>{var t;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(t=m.current)||void 0===t||t.focus());"Escape"===e.key&&document.activeElement===m.current&&m.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,x.jsx)(n.A,{sx:(0,r.A)({},g),inputRef:m,placeholder:p,autoComplete:"off",value:t,fullWidth:!0,onChange:e=>o(e.target.value),startAdornment:(0,x.jsx)(l.A,{position:"start",sx:{mr:-.5},children:(0,x.jsx)(d.A,{})}),endAdornment:(0,x.jsx)(s.A,{title:"Clear",children:(0,x.jsx)(a.A,{sx:{visibility:t?"visible":"hidden"},onClick:()=>o(""),children:(0,x.jsx)(c.A,{})})})})}},59212:(e,t,o)=>{o.d(t,{A:()=>x});var r=o(22555),i=o(85672),n=o(71392),l=o(97043),s=o(17488),a=o(86270),d=o(66157),c=o(48952),u=o(65908);const x=(0,i.forwardRef)(((e,t)=>{let{setAppId:o,setLocoName:x,setPage:h,sx:f,textfeildSx:p,textfieldSx:g,pill:m=!1,accentColor:v="#6366f1",icon:b,placeholder:A="Select Zone",paperComponent:j}=e;const[w,S]=(0,i.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,i.useEffect)((()=>{0===w.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const t=await d.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(t.data.status){const e=[...t.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),S(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[w.length]);const y=e=>"".concat(v).concat(e),C=y("26"),D=y("18"),R=m?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(C)},"&.Mui-focused fieldset":{borderColor:v,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},k=m&&(0,u.jsx)(n.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,u.jsx)(l.A,{sx:{width:24,height:24,bgcolor:D,color:v,transition:"background-color 0.15s, color 0.15s"},children:b||(0,u.jsx)(c.HPi,{size:14})})});return(0,u.jsx)(s.A,{id:"location-autocomplete",options:w||[],getOptionLabel:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.locationname)&&void 0!==t?t:""},PaperComponent:j,sx:(0,r.A)({},f),onChange:(e,t,r)=>{"clear"===r?(null===o||void 0===o||o(0),null===x||void 0===x||x(""),null===h||void 0===h||h(0)):t&&(null===o||void 0===o||o(t.applocationid),null===x||void 0===x||x(t.locationname),null===h||void 0===h||h(0))},renderInput:e=>m?(0,u.jsx)(a.A,(0,r.A)((0,r.A)({},e),{},{inputRef:t,placeholder:A,InputProps:(0,r.A)((0,r.A)({},e.InputProps),{},{startAdornment:k}),sx:(0,r.A)((0,r.A)({},R),g||p||{})})):(0,u.jsx)(a.A,(0,r.A)((0,r.A)({},e),{},{inputRef:t,label:"Select Zones",sx:(0,r.A)({},g||p||{})}))})}))}}]); \ No newline at end of file diff --git a/build/static/js/9438.5565fcf3.chunk.js b/build/static/js/9438.5565fcf3.chunk.js deleted file mode 100644 index 242e6ed..0000000 --- a/build/static/js/9438.5565fcf3.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9438],{9438:(e,t,o)=>{o.r(t),o.d(t,{default:()=>Z});var r=o(89379),i=o(9950),n=o(60010),l=o(2235),s=o(41413),a=o(83274),d=o(16491),c=o(14857),u=o(47223),x=o(60899),h=o(82053),f=o(93230),p=o(1320),g=o(15769),m=o(69780),v=o(9213),b=o(21671),A=o(34075),j=o(25277),w=o(31222),S=o(4159),y=o.n(S),C=o(81425),D=o(52351),R=o(35678),k=o(59212),M=o(56311),P=o(27001),N=o(36803),Y=o(23787),W=o(44414),I=o(36220);y().extend(I);const z={radiusPill:999,radiusCard:14,shadowSoft:"0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05)",shadowMd:"0 1px 3px rgba(15, 23, 42, 0.06)",shadowPop:"0 12px 32px rgba(15, 23, 42, 0.12)",textPrimary:"#0f172a",textSecondary:"#64748b",textMuted:"#94a3b8",borderSubtle:"#e2e8f0",divider:"#f1f5f9",surface:"#ffffff",surfaceAlt:"#f8fafc"},L=(e,t)=>"".concat(e).concat(t),F=e=>L(e,"18"),T=e=>L(e,"08"),O=e=>L(e,"55"),H=e=>L(e,"26"),B="#662582",E=e=>(0,W.jsx)(l.A,(0,r.A)((0,r.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:z.shadowPop,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),K=e=>{let{color:t,selected:o,size:r=24,children:i}=e;return(0,W.jsx)(s.A,{sx:{width:r,height:r,bgcolor:o?t:F(t),color:o?"#fff":t,transition:"background-color 0.15s, color 0.15s"},children:i})},_=e=>{let{color:t,icon:o,label:r,tooltip:i,minWidth:n=80}=e;return(0,W.jsx)(a.A,{title:i||"",placement:"top",children:(0,W.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(O(t)),color:t,fontSize:11,fontWeight:800,minWidth:n,justifyContent:"center",whiteSpace:"nowrap"},children:[o,r]})})},J=[{id:"morning",name:"Morning Batch",startHour:0,endHour:8},{id:"afternoon",name:"Afternoon Batch",startHour:9,endHour:12.5},{id:"evening",name:"Evening Batch",startHour:16,endHour:19}],V=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J;const o=null===e||void 0===e?void 0:e.assigntime;if(!o)return null;const r=String(o).trim();if(/^\d{4}-\d{2}-\d{2}$/.test(r))return null;const i=y()(o);return i.isValid()?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J;for(const o of t)if(e>=o.startHour&&e{if("undefined"===typeof window)return J;try{const e=window.localStorage.getItem("dispatch.slots.v9");if(!e)return J;const t=JSON.parse(e);return Array.isArray(t)&&t.length===J.length?t.map(((e,t)=>{var o;const r=e.id||"slot-".concat(t+1),i=Number(e.startHour)||0,n=Number(e.endHour)||24;return{id:r,name:e.name||(null===(o=J.find((e=>e.id===r)))||void 0===o?void 0:o.name)||"Slot ".concat(t+1),startHour:i,endHour:n}})):J}catch(e){return J}}),[]),{data:Se,isLoading:ye,fetchNextPage:Ce,hasNextPage:De,isFetchingNextPage:Re}=(0,n.q)({queryKey:["fetchdeliveries",pe,je,"all",ne,se,2e3,"",0,0,0],queryFn:C.tL,getNextPageParam:e=>{var t;return null!==(t=e.nextPage)&&void 0!==t?t:void 0},refetchOnWindowFocus:!1});(0,i.useEffect)((()=>{De&&!Re&&Ce()}),[De,Re,Ce]);const ke=(0,i.useMemo)((()=>{const e=((null===Se||void 0===Se?void 0:Se.pages)||[]).flatMap((e=>e.rows||[])),t=new Set,o=[];for(const r of e){const e=null!=r.orderid?String(r.orderid):null;e&&t.has(e)||(e&&t.add(e),o.push(r))}return o}),[Se]),Me=(0,i.useMemo)((()=>{const e={};return ke.forEach((t=>{const o=String(t.userid||t.rider_id||"");o&&"unassigned"!==o&&"0"!==o&&(e[o]||(e[o]={id:o,riderName:t.ridername||t.rider_name||t.username||"Rider ".concat(o),orders:[]}),e[o].orders.some((e=>e.orderid===t.orderid))||e[o].orders.push(t))})),Object.values(e).map((e=>(0,r.A)((0,r.A)({},e),{},{orders:[...e.orders].sort(((e,t)=>{const o=e.trip_number||1,r=t.trip_number||1;return o!==r?o-r:(e.step||0)-(t.step||0)}))}))).sort(((e,t)=>t.orders.length-e.orders.length))}),[ke]),Pe=(0,i.useMemo)((()=>{let e=0,t=0,o=0,i=0,n=0,l=0,s=0;const a=Me.map((a=>{let d=0,c=0;const u={};let x=0;if(a.orders.forEach((e=>{const t=V(e,we);if(!t)return;const o=parseFloat(e.riderkms||0);c+=o,d+=o<=8?30:30+6*(o-8);const r=e.assigntime?y()(e.assigntime).format("YYYY-MM-DD"):e.deliverydate?y()(e.deliverydate).format("YYYY-MM-DD"):null;r&&(u[r]||(u[r]=new Set),u[r].add(t),x++)})),0===x)return null;let h=0;Object.values(u).forEach((e=>{h+=Math.min(e.size,3)}));const f=2.5*c,p=h*(500/3),g=f+p,m=d-g,v=d>0?m/d*100:0;return m>=0?n++:l++,t+=x,o+=d,i+=g,s+=c,e++,(0,r.A)((0,r.A)({},a),{},{kms:c,revenue:d,varCost:f,fixedCost:p,totalCost:g,net:m,margin:v})})).filter(Boolean),d=o-i;return{activeRiders:e,totalOrders:t,totalRevenue:o,totalCost:i,totalNet:d,totalMargin:o>0?d/o*100:0,profitableRiders:n,lossRiders:l,totalKms:s,enrichedRiders:a}}),[Me,we]),Ne=(0,i.useMemo)((()=>{if(null===Pe||void 0===Pe||!Pe.enrichedRiders||!Array.isArray(Pe.enrichedRiders))return[];const e=Pe.enrichedRiders.filter(Boolean);if(!be)return e;const t=be.toLowerCase().trim();return e.filter((e=>e&&[e.riderName,String(e.id)].filter(Boolean).some((e=>String(e).toLowerCase().includes(t)))))}),[null===Pe||void 0===Pe?void 0:Pe.enrichedRiders,be]),Ye=[{key:"riders",label:"Riders Active",color:B,icon:w.LTk,value:null!==(e=null===Pe||void 0===Pe?void 0:Pe.activeRiders)&&void 0!==e?e:0,detail:"".concat(null!==(t=null===Pe||void 0===Pe?void 0:Pe.profitableRiders)&&void 0!==t?t:0," in profit \xb7 ").concat(null!==(o=null===Pe||void 0===Pe?void 0:Pe.lossRiders)&&void 0!==o?o:0," at loss")},{key:"kms",label:"Total Distance",color:"#10b981",icon:w.xI$,value:"".concat((null!==(S=null===Pe||void 0===Pe?void 0:Pe.totalKms)&&void 0!==S?S:0).toFixed(1)," km"),detail:"Cumulative travel distance"},{key:"revenue",label:"Slot Revenue",color:"#0ea5e9",icon:w.HU2,value:q(null!==(I=null===Pe||void 0===Pe?void 0:Pe.totalRevenue)&&void 0!==I?I:0),detail:"From ".concat(null!==(L=null===Pe||void 0===Pe?void 0:Pe.totalOrders)&&void 0!==L?L:0," orders")},{key:"cost",label:"Slot Cost",color:"#f59e0b",icon:w.DwJ,value:q(null!==(Z=null===Pe||void 0===Pe?void 0:Pe.totalCost)&&void 0!==Z?Z:0),detail:"Fixed + variable"},{key:"net",label:"Slot Net",color:(null!==($=null===Pe||void 0===Pe?void 0:Pe.totalNet)&&void 0!==$?$:0)>=0?"#10b981":"#ef4444",icon:(null!==(G=null===Pe||void 0===Pe?void 0:Pe.totalNet)&&void 0!==G?G:0)>=0?w.imn:w.Rod,value:"".concat((null!==(U=null===Pe||void 0===Pe?void 0:Pe.totalNet)&&void 0!==U?U:0)>=0?"+":"").concat(q(null!==(Q=null===Pe||void 0===Pe?void 0:Pe.totalNet)&&void 0!==Q?Q:0)),detail:"".concat((null!==(X=null===Pe||void 0===Pe?void 0:Pe.totalRevenue)&&void 0!==X?X:0)>0&&(null!==(ee=null===Pe||void 0===Pe?void 0:Pe.totalNet)&&void 0!==ee?ee:0)/(null!==(te=null===Pe||void 0===Pe?void 0:Pe.totalRevenue)&&void 0!==te?te:1)>=0?"+":"").concat((null!==(oe=null===Pe||void 0===Pe?void 0:Pe.totalMargin)&&void 0!==oe?oe:0).toFixed(0),"% margin")}];return(0,W.jsxs)(W.Fragment,{children:[(ye||Re)&&(0,W.jsx)(D.A,{}),(0,W.jsx)(P.A,{title:"Profitability Report",subtitle:"Live \xb7 ".concat(de||"All Zones"," \xb7 ").concat(he),live:!0,action:(0,W.jsx)(k.A,{locaName:de,setAppId:ge,setLocoName:ce,pill:!0,accentColor:B,icon:(0,W.jsx)(w.HPi,{size:14}),placeholder:"Select Zone",paperComponent:E,sx:{width:{xs:"100%",sm:280},zIndex:100}})}),(0,W.jsx)(x.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:Ye.map((e=>{var t;const o=e.icon;return(0,W.jsxs)(x.Ay,{item:!0,xs:6,sm:4,md:2.4,children:[(0,W.jsx)(N.A,{title:e.label,value:null!==(t=e.value)&&void 0!==t?t:0,icon:(0,W.jsx)(o,{size:20}),color:e.color,loading:ye}),(0,W.jsx)(h.A,{variant:"caption",sx:{color:z.textSecondary,display:"block",mt:.5,px:2,fontWeight:500},children:e.detail})]},e.key)}))}),(0,W.jsx)(l.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:z.radiusCard/8,borderTopRightRadius:z.radiusCard/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:z.borderSubtle,borderBottom:0,background:"#fff"},children:(0,W.jsxs)(f.A,{direction:{xs:"column",sm:"row"},alignItems:{xs:"stretch",sm:"center"},justifyContent:"space-between",spacing:1.25,children:[(0,W.jsxs)(f.A,{direction:"row",alignItems:"center",spacing:1.25,flexWrap:"wrap",children:[(0,W.jsx)(K,{color:B,size:32,children:(0,W.jsx)(w.LTk,{size:18})}),(0,W.jsxs)(f.A,{children:[(0,W.jsxs)(h.A,{variant:"caption",sx:{fontWeight:800,color:z.textSecondary,letterSpacing:.6,textTransform:"uppercase"},children:["Profitability Overview \xb7 ",he]}),(0,W.jsxs)(h.A,{variant:"body2",sx:{color:z.textPrimary,fontWeight:700},children:[Ne.length," riders \xb7 ",Pe.profitableRiders," profitable \xb7 ",Pe.lossRiders," at loss"]})]}),(0,W.jsx)(a.A,{title:"Date Filter",placement:"top",children:(0,W.jsxs)(d.A,{onClick:()=>xe(!0),sx:{display:"inline-flex",alignItems:"center",gap:.75,px:1.25,py:.75,borderRadius:999,cursor:"pointer",bgcolor:T("#f59e0b"),border:"1.5px solid ".concat(O("#f59e0b")),color:"#f59e0b",fontWeight:800,fontSize:12,ml:1,transition:"all 0.18s","&:hover":{borderColor:"#f59e0b",boxShadow:"0 0 0 3px ".concat(H("#f59e0b"))}},children:[(0,W.jsx)(w.Ki0,{size:14}),y()(ne).format("DD/MM/YY")," \u2013 ",y()(se).format("DD/MM/YY")]})})]}),(0,W.jsx)(d.A,{sx:{width:{xs:"100%",sm:280,lg:340},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,W.jsx)(M.A,{value:me,onChange:ve,onDebouncedChange:Ae,placeholder:"Search riders",sx:{m:0,width:"100%",borderRadius:999,bgcolor:"#ffffff","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:1.5},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(H(B))}}})})]})}),(0,W.jsx)(l.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:z.radiusCard/8,borderBottomRightRadius:z.radiusCard/8,border:"1px solid",borderColor:z.borderSubtle,overflow:"hidden",background:"#fff"},children:ie?(0,W.jsx)(Y.nV,{scroll:!0,children:Ne&&0!==Ne.length?Ne.map(((e,t)=>{var o;if(!e)return null;const r=(null!==(o=e.net)&&void 0!==o?o:0)>=0;return(0,W.jsx)(Y.pg,{accent:r?"#10b981":"#ef4444",header:(0,W.jsxs)(f.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,W.jsx)(K,{color:r?"#10b981":"#ef4444",size:36,children:(0,W.jsx)(w.LTk,{size:18})}),(0,W.jsxs)(f.A,{children:[(0,W.jsx)(h.A,{variant:"subtitle2",sx:{fontWeight:700,color:z.textPrimary},children:e.riderName}),(0,W.jsxs)(h.A,{variant:"caption",sx:{color:z.textSecondary},children:["ID #",e.id]})]})]}),children:(0,W.jsxs)(Y.FG,{columns:2,children:[(0,W.jsx)(Y.pY,{label:"Orders",value:e.orders.length}),(0,W.jsx)(Y.pY,{label:"Rider KMs",value:"".concat(e.kms.toFixed(2)," km")}),(0,W.jsx)(Y.pY,{label:"Revenue",value:q(e.revenue)}),(0,W.jsx)(Y.pY,{label:"Fixed Cost",value:q(e.fixedCost)}),(0,W.jsx)(Y.pY,{label:"Variable Cost",value:q(e.varCost)}),(0,W.jsx)(Y.pY,{label:"Total Cost",value:q(e.totalCost)}),(0,W.jsx)(Y.pY,{label:"Net Profit",value:"".concat(r?"+":"").concat(q(e.net)),full:!0}),(0,W.jsx)(Y.pY,{label:"Margin",value:"".concat(Math.abs(e.margin).toFixed(0),"%"),full:!0})]})},e.id||t)})):(0,W.jsxs)(f.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,W.jsx)(s.A,{sx:{width:64,height:64,bgcolor:F("#94a3b8"),color:z.textMuted},children:(0,W.jsx)(w.LTk,{size:28})}),(0,W.jsx)(h.A,{variant:"subtitle1",sx:{fontWeight:700,color:z.textPrimary},children:"No riders to show"})]})}):(0,W.jsx)(p.A,{sx:{maxHeight:"calc(100vh - 280px)","&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:O(B),borderRadius:8,"&:hover":{backgroundColor:B}},"&::-webkit-scrollbar-track":{backgroundColor:z.surfaceAlt}},children:(0,W.jsxs)(g.A,{stickyHeader:!0,sx:{minWidth:1e3},children:[(0,W.jsx)(m.A,{children:(0,W.jsxs)(v.A,{sx:{"& th":{backgroundColor:z.surfaceAlt,color:z.textSecondary,fontSize:11,fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(z.borderSubtle),py:1.25,px:2}},children:[(0,W.jsx)(b.A,{children:"#"}),(0,W.jsx)(b.A,{children:"Rider"}),(0,W.jsx)(b.A,{align:"center",children:"Orders"}),(0,W.jsx)(b.A,{align:"center",children:"Rider KMs"}),(0,W.jsx)(b.A,{align:"center",children:"Revenue"}),(0,W.jsx)(b.A,{align:"center",children:"Fixed Cost"}),(0,W.jsx)(b.A,{align:"center",children:"Variable Cost"}),(0,W.jsx)(b.A,{align:"center",children:"Total Cost"}),(0,W.jsx)(b.A,{align:"center",children:"Net Profit"}),(0,W.jsx)(b.A,{align:"center",children:"Margin"})]})}),(0,W.jsx)(A.A,{children:Ne&&0!==Ne.length?Ne.map(((e,t)=>{var o;if(!e)return null;const r=(null!==(o=e.net)&&void 0!==o?o:0)>=0;return(0,W.jsxs)(v.A,{sx:{transition:"background-color 0.15s","& td":{borderBottom:"1px solid ".concat(z.divider),py:1.5,px:2},"&:hover":{backgroundColor:z.surfaceAlt}},children:[(0,W.jsx)(b.A,{children:(0,W.jsx)(h.A,{variant:"caption",sx:{fontWeight:700,color:z.textMuted},children:String(t+1).padStart(2,"0")})}),(0,W.jsx)(b.A,{children:(0,W.jsxs)(f.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,W.jsx)(K,{color:B,size:36,children:(0,W.jsx)(w.LTk,{size:18})}),(0,W.jsxs)(f.A,{children:[(0,W.jsx)(h.A,{variant:"subtitle2",sx:{fontWeight:700,color:z.textPrimary,whiteSpace:"nowrap"},children:e.riderName}),(0,W.jsxs)(h.A,{variant:"caption",sx:{color:z.textSecondary},children:["ID #",e.id]})]})]})}),(0,W.jsx)(b.A,{align:"center",children:(0,W.jsx)(h.A,{variant:"body2",sx:{fontWeight:700,color:z.textPrimary},children:e.orders.length})}),(0,W.jsx)(b.A,{align:"center",children:(0,W.jsx)(_,{color:"#10b981",icon:(0,W.jsx)(w.xI$,{size:11}),label:"".concat(e.kms.toFixed(2)," km"),tooltip:"KMS"})}),(0,W.jsx)(b.A,{align:"center",children:(0,W.jsx)(_,{color:B,icon:(0,W.jsx)(w.S75,{size:11}),label:q(e.revenue).replace("\u20b9","").trim(),tooltip:"Revenue"})}),(0,W.jsx)(b.A,{align:"center",children:(0,W.jsx)(_,{color:"#6366f1",icon:(0,W.jsx)(w.DwJ,{size:11}),label:q(e.fixedCost).replace("\u20b9","").trim(),tooltip:"Fixed Cost"})}),(0,W.jsx)(b.A,{align:"center",children:(0,W.jsx)(_,{color:"#f59e0b",icon:(0,W.jsx)(w.pk7,{size:11}),label:q(e.varCost).replace("\u20b9","").trim(),tooltip:"Variable Cost"})}),(0,W.jsx)(b.A,{align:"center",children:(0,W.jsx)(_,{color:"#94a3b8",icon:(0,W.jsx)(w.DwJ,{size:11}),label:q(e.totalCost).replace("\u20b9","").trim(),tooltip:"Total Cost"})}),(0,W.jsx)(b.A,{align:"center",children:(0,W.jsx)(_,{color:r?"#10b981":"#ef4444",icon:r?(0,W.jsx)(w.imn,{size:11}):(0,W.jsx)(w.Rod,{size:11}),label:"".concat(r?"+":"").concat(q(e.net).replace("\u20b9","").trim()),tooltip:"Net Profit"})}),(0,W.jsx)(b.A,{align:"center",children:(0,W.jsx)(j.A,{label:"".concat(Math.abs(e.margin).toFixed(0),"%"),color:r?"success":"error",size:"small",sx:{fontWeight:700,minWidth:60}})})]},e.id||t)})):(0,W.jsx)(v.A,{children:(0,W.jsx)(b.A,{colSpan:10,sx:{py:6},children:(0,W.jsxs)(f.A,{alignItems:"center",spacing:1.5,children:[(0,W.jsx)(s.A,{sx:{width:64,height:64,bgcolor:F("#94a3b8"),color:z.textMuted},children:(0,W.jsx)(w.LTk,{size:28})}),(0,W.jsx)(h.A,{variant:"subtitle1",sx:{fontWeight:700,color:z.textPrimary},children:"No riders to show"})]})})})})]})})}),(0,W.jsx)(R.A,{open:ue,onClose:()=>xe(!1),onSelect:e=>{le(e.startDate),ae(e.endDate),fe(e.label)}})]})}},23787:(e,t,o)=>{o.d(t,{FG:()=>h,nV:()=>u,pY:()=>f,pg:()=>x});var r=o(89379),i=o(80045),n=o(93230),l=o(2235),s=o(16491),a=o(82053),d=o(44414);const c=["children","scroll","onScroll","sx"],u=e=>{let{children:t,scroll:o=!1,onScroll:l,sx:s}=e,a=(0,i.A)(e,c);return(0,d.jsx)(n.A,(0,r.A)((0,r.A)({spacing:1.25,onScroll:l,sx:(0,r.A)((0,r.A)({p:1.5},o&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),s)},a),{},{children:t}))},x=e=>{let{accent:t="#662582",header:o,footer:i,selected:n=!1,onClick:a,children:c,sx:u}=e;return(0,d.jsxs)(l.A,{elevation:0,onClick:a,sx:(0,r.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:n?t:"#e2e8f0",background:n?"".concat(t,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},u),children:[(0,d.jsx)(s.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:t}}),(0,d.jsxs)(s.A,{sx:{p:1.5,pl:2},children:[o,c,i]})]})},h=e=>{let{children:t,columns:o=2,sx:i}=e;return(0,d.jsx)(s.A,{sx:(0,r.A)({display:"grid",gridTemplateColumns:"repeat(".concat(o,", minmax(0, 1fr))"),gap:1,mt:1.25},i),children:t})},f=e=>{let{label:t,value:o,children:r,full:i=!1,align:n="left"}=e;return(0,d.jsxs)(s.A,{sx:{gridColumn:i?"1 / -1":"auto",minWidth:0,textAlign:n},children:[(0,d.jsx)(a.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:t}),(0,d.jsx)(s.A,{sx:{mt:.25,minWidth:0},children:void 0!==r?r:(0,d.jsx)(a.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==o&&void 0!==o?o:"\u2014"})})]})}},27001:(e,t,o)=>{o.d(t,{A:()=>s});var r=o(93230),i=o(16491),n=o(82053),l=o(44414);function s(e){let{title:t,subtitle:o,live:s=!1,action:a}=e;return(0,l.jsxs)(r.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,l.jsxs)(i.A,{sx:{minWidth:0},children:[(0,l.jsx)(n.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:t}),o&&(0,l.jsxs)(r.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[s&&(0,l.jsx)(i.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,l.jsx)(n.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:o})]})]}),a&&(0,l.jsx)(i.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:a})]})}},35678:(e,t,o)=>{o.d(t,{A:()=>j});var r=o(9950),i=o(96583),n=o(40033),l=o(82053),s=o(28170),a=o(93230),d=o(10226),c=o(55916),u=o(4159),x=o.n(u),h=o(56712),f=o(81417),p=o(96600),g=o(53132),m=o(94289),v=o(57326),b=o(50624),A=o(44414);const j=e=>{let{open:t,onClose:o,onSelect:u}=e;const[j,w]=(0,r.useState)(null);return(0,A.jsxs)(i.A,{open:t,onClose:o,children:[(0,A.jsx)(n.A,{align:"left",children:(0,A.jsx)(l.A,{variant:"h4",children:"Select Filter Options"})}),(0,A.jsx)(s.A,{sx:{width:"100%"},className:"datedialog",children:(0,A.jsx)(c.U,{open:t,toggle:o,id:"daterange1",onChange:e=>{w({startDate:x()(e.startDate).format("YYYY-MM-DD"),endDate:x()(e.endDate).format("YYYY-MM-DD"),label:e.label||"custom"})},definedRanges:[{label:"Today",startDate:new Date,endDate:new Date},{label:"Yesterday",startDate:(0,h.A)(new Date,-1),endDate:(0,h.A)(new Date,-1)},{label:"Tomorrow",startDate:(0,h.A)(new Date,1),endDate:(0,h.A)(new Date,1)},{label:"This Week",startDate:(0,f.A)(new Date),endDate:(0,p.A)(new Date)},{label:"Last Week",startDate:(0,f.A)((0,g.A)(new Date,-1)),endDate:(0,p.A)((0,g.A)(new Date,-1))},{label:"Last 7 Days",startDate:(0,g.A)(new Date,-1),endDate:new Date},{label:"This Month",startDate:(0,m.A)(new Date),endDate:(0,v.A)(new Date)},{label:"Last Month",startDate:(0,m.A)((0,b.A)(new Date,-1)),endDate:(0,v.A)((0,b.A)(new Date,-1))}]})}),(0,A.jsx)(a.A,{direction:"row",justifyContent:"flex-end",sx:{width:"100%",p:2},children:(0,A.jsx)(d.A,{variant:"contained",size:"small",onClick:()=>{j?(u(j),o()):o()},children:"OK"})})]})}},36803:(e,t,o)=>{o.d(t,{A:()=>u});var r=o(48089),i=o(50704),n=o(93230),l=o(16491),s=o(82053),a=o(82917),d=o(41413),c=o(44414);function u(e){let{title:t,value:o,icon:u,color:x="#662582",caption:h,loading:f=!1}=e;return(0,c.jsx)(r.A,{sx:{height:"100%"},children:(0,c.jsx)(i.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,c.jsxs)(n.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,c.jsxs)(l.A,{sx:{minWidth:0,flex:1},children:[(0,c.jsx)(s.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t}),f?(0,c.jsx)(a.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,c.jsx)(s.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o}),h&&(0,c.jsx)(s.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:h})]}),u&&(0,c.jsx)(d.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(x,"14"),color:x,flexShrink:0},children:u})]})})})}},56311:(e,t,o)=>{o.d(t,{A:()=>h});var r=o(89379),i=o(9950),n=o(2660),l=o(2046),s=o(83274),a=o(25333),d=o(97125),c=o(7762),u=o(52097),x=o(44414);const h=e=>{let{value:t,onChange:o,onDebouncedChange:h,debounceTime:f=500,placeholder:p="Search (ctrl+k)",sx:g}=e;const m=(0,i.useRef)(null),[v]=(0,u.d7)(t,f);return(0,i.useEffect)((()=>{h&&h(v)}),[v,h]),(0,i.useEffect)((()=>{const e=e=>{var t;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(t=m.current)||void 0===t||t.focus());"Escape"===e.key&&document.activeElement===m.current&&m.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,x.jsx)(n.A,{sx:(0,r.A)({},g),inputRef:m,placeholder:p,autoComplete:"off",value:t,fullWidth:!0,onChange:e=>o(e.target.value),startAdornment:(0,x.jsx)(l.A,{position:"start",sx:{mr:-.5},children:(0,x.jsx)(d.A,{})}),endAdornment:(0,x.jsx)(s.A,{title:"Clear",children:(0,x.jsx)(a.A,{sx:{visibility:t?"visible":"hidden"},onClick:()=>o(""),children:(0,x.jsx)(c.A,{})})})})}},59212:(e,t,o)=>{o.d(t,{A:()=>x});var r=o(89379),i=o(9950),n=o(93230),l=o(41413),s=o(77922),a=o(29925),d=o(26910),c=o(31222),u=o(44414);const x=(0,i.forwardRef)(((e,t)=>{let{setAppId:o,setLocoName:x,setPage:h,sx:f,textfeildSx:p,textfieldSx:g,pill:m=!1,accentColor:v="#6366f1",icon:b,placeholder:A="Select Zone",paperComponent:j}=e;const[w,S]=(0,i.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,i.useEffect)((()=>{0===w.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const t=await d.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(t.data.status){const e=[...t.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),S(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[w.length]);const y=e=>"".concat(v).concat(e),C=y("26"),D=y("18"),R=m?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(C)},"&.Mui-focused fieldset":{borderColor:v,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},k=m&&(0,u.jsx)(n.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,u.jsx)(l.A,{sx:{width:24,height:24,bgcolor:D,color:v,transition:"background-color 0.15s, color 0.15s"},children:b||(0,u.jsx)(c.HPi,{size:14})})});return(0,u.jsx)(s.A,{id:"location-autocomplete",options:w||[],getOptionLabel:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.locationname)&&void 0!==t?t:""},PaperComponent:j,sx:(0,r.A)({},f),onChange:(e,t,r)=>{"clear"===r?(null===o||void 0===o||o(0),null===x||void 0===x||x(""),null===h||void 0===h||h(0)):t&&(null===o||void 0===o||o(t.applocationid),null===x||void 0===x||x(t.locationname),null===h||void 0===h||h(0))},renderInput:e=>m?(0,u.jsx)(a.A,(0,r.A)((0,r.A)({},e),{},{inputRef:t,placeholder:A,InputProps:(0,r.A)((0,r.A)({},e.InputProps),{},{startAdornment:k}),sx:(0,r.A)((0,r.A)({},R),g||p||{})})):(0,u.jsx)(a.A,(0,r.A)((0,r.A)({},e),{},{inputRef:t,label:"Select Zones",sx:(0,r.A)({},g||p||{})}))})}))},60010:(e,t,o)=>{o.d(t,{q:()=>a});var r=o(89379),i=o(69347),n=o(45247),l=class extends i.${constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions((0,r.A)((0,r.A)({},e),{},{behavior:(0,n.PL)()}),t)}getOptimisticResult(e){return e.behavior=(0,n.PL)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch((0,r.A)((0,r.A)({},e),{},{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(e){return this.fetch((0,r.A)((0,r.A)({},e),{},{meta:{fetchMore:{direction:"backward"}}}))}createResult(e,t){var o,i;const{state:l}=e,s=super.createResult(e,t),{isFetching:a,isRefetching:d}=s,c=a&&"forward"===(null===(o=l.fetchMeta)||void 0===o||null===(o=o.fetchMore)||void 0===o?void 0:o.direction),u=a&&"backward"===(null===(i=l.fetchMeta)||void 0===i||null===(i=i.fetchMore)||void 0===i?void 0:i.direction);return(0,r.A)((0,r.A)({},s),{},{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,n.rB)(t,l.data),hasPreviousPage:(0,n.RQ)(t,l.data),isFetchingNextPage:c,isFetchingPreviousPage:u,isRefetching:d&&!c&&!u})}},s=o(1729);function a(e,t){return(0,s.t)(e,l,t)}}}]); \ No newline at end of file diff --git a/build/static/js/9459.5f509ca8.chunk.js b/build/static/js/9459.5f509ca8.chunk.js deleted file mode 100644 index c8038cf..0000000 --- a/build/static/js/9459.5f509ca8.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9459],{678:t=>{var r=function(t){"use strict";var r,e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},a="function"===typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function s(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{s({},"")}catch(S){s=function(t,r,e){return t[r]=e}}function f(t,r,e,n){var a=r&&r.prototype instanceof g?r:g,i=Object.create(a.prototype),c=new G(n||[]);return o(i,"_invoke",{value:k(t,e,c)}),i}function l(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(S){return{type:"throw",arg:S}}}t.wrap=f;var h="suspendedStart",p="suspendedYield",v="executing",d="completed",y={};function g(){}function m(){}function w(){}var b={};s(b,i,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(I([])));L&&L!==e&&n.call(L,i)&&(b=L);var E=w.prototype=g.prototype=Object.create(b);function _(t){["next","throw","return"].forEach((function(r){s(t,r,(function(t){return this._invoke(r,t)}))}))}function j(t,r){function e(o,a,i,c){var u=l(t[o],t,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"===typeof f&&n.call(f,"__await")?r.resolve(f.__await).then((function(t){e("next",t,i,c)}),(function(t){e("throw",t,i,c)})):r.resolve(f).then((function(t){s.value=t,i(s)}),(function(t){return e("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new r((function(r,o){e(t,n,r,o)}))}return a=a?a.then(o,o):o()}})}function k(t,r,e){var n=h;return function(o,a){if(n===v)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw a;return N()}for(e.method=o,e.arg=a;;){var i=e.delegate;if(i){var c=P(i,e);if(c){if(c===y)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===h)throw n=d,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=v;var u=l(t,r,e);if("normal"===u.type){if(n=e.done?d:p,u.arg===y)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n=d,e.method="throw",e.arg=u.arg)}}}function P(t,e){var n=e.method,o=t.iterator[n];if(o===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=r,P(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=l(o,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,y;var i=a.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,y):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function O(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function R(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),R(e),y}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;R(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),y}},t}(t.exports);try{regeneratorRuntime=r}catch(e){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},99459:(t,r,e)=>{"use strict";var n=e(678);function o(t,r,e,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}function a(t){return function(){var r=this,e=arguments;return new Promise((function(n,a){var i=t.apply(r,e);function c(t){o(i,n,a,c,u,"next",t)}function u(t){o(i,n,a,c,u,"throw",t)}c(void 0)}))}}r.A=void 0;var i=!1,c=null,u="en",s=null,f=null,l="https://maps.googleapis.com/maps/api/geocode/json";function h(t){i&&(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?console.warn(t):console.log(t))}function p(t){return v.apply(this,arguments)}function v(){return(v=a(n.mark((function t(r){var e,o;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(r).catch((function(){return Promise.reject(new Error("Error fetching data"))}));case 2:return e=t.sent,t.next=5,e.json().catch((function(){return h("Error parsing server response"),Promise.reject(new Error("Error parsing server response"))}));case 5:if("OK"!==(o=t.sent).status){t.next=9;break}return h(o),t.abrupt("return",o);case 9:return h("".concat(o.error_message,".\nServer returned status code ").concat(o.status),!0),t.abrupt("return",Promise.reject(new Error("".concat(o.error_message,".\nServer returned status code ").concat(o.status))));case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var d={setApiKey:function(t){c=t},setLanguage:function(t){u=t},setRegion:function(t){s=t},setLocationType:function(t){f=t},enableDebug:function(){i=!(arguments.length>0&&void 0!==arguments[0])||arguments[0]},fromLatLng:function(t,r,e,o,i,v){return a(n.mark((function a(){var d,y;return n.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t&&r){n.next=3;break}return h("Provided coordinates are invalid",!0),n.abrupt("return",Promise.reject(new Error("Provided coordinates are invalid")));case 3:return d="".concat(t,",").concat(r),y="".concat(l,"?latlng=").concat(encodeURIComponent(d)),(e||c)&&(y+="&key=".concat(c=e||c)),(o||u)&&(y+="&language=".concat(u=o||u)),(i||s)&&(s=i||s,y+="®ion=".concat(encodeURIComponent(s))),(v||f)&&(f=v||f,y+="&location_type=".concat(encodeURIComponent(f))),n.abrupt("return",p(y));case 9:case"end":return n.stop()}}),a)})))()},fromAddress:function(t,r,e,o){return a(n.mark((function a(){var i;return n.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t){n.next=3;break}return h("Provided address is invalid",!0),n.abrupt("return",Promise.reject(new Error("Provided address is invalid")));case 3:return i="".concat(l,"?address=").concat(encodeURIComponent(t)),(r||c)&&(i+="&key=".concat(c=r||c)),(e||u)&&(i+="&language=".concat(u=e||u)),(o||s)&&(s=o||s,i+="®ion=".concat(encodeURIComponent(s))),n.abrupt("return",p(i));case 8:case"end":return n.stop()}}),a)})))()}};r.A=d}}]); \ No newline at end of file diff --git a/build/static/js/9521.9d99da63.chunk.js b/build/static/js/9521.9d99da63.chunk.js deleted file mode 100644 index 8947278..0000000 --- a/build/static/js/9521.9d99da63.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9521],{19521:(e,t,o)=>{o.r(t),o.d(t,{default:()=>ie});var r=o(89379),n=o(9950),i=o(26910),s=o(54826),l=o(58691),a=o(2235),c=o(41413),d=o(14857),x=o(47223),h=o(60899),u=o(93230),p=o(82053),A=o(16491),m=o(83274),g=o(25333),f=o(1320),j=o(15769),b=o(69780),v=o(9213),S=o(21671),y=o(34075),w=o(96583),k=o(40033),C=o(28170),W=o(29925),R=o(77922),P=o(79739),z=o(10226),T=o(31222),Y=o(99459),I=o(28217),L=o(55471),M=o.n(L),E=o(21209),J=o(52351),N=o(56311),H=o(59212),B=o(27001),K=o(36803),Z=o(60010),q=o(36150),F=o(81425),O=o(20466),V=o(96646),D=o(23787),G=o(44414);const U={radiusPill:999,radiusCard:14,shadowSoft:"0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05)",shadowMd:"0 1px 3px rgba(15, 23, 42, 0.06)",shadowPop:"0 12px 32px rgba(15, 23, 42, 0.12)",textPrimary:"#0f172a",textSecondary:"#64748b",textMuted:"#94a3b8",borderSubtle:"#e2e8f0",divider:"#f1f5f9",surface:"#ffffff",surfaceAlt:"#f8fafc"},Q=(e,t)=>"".concat(e).concat(t),X=e=>Q(e,"08"),_=e=>Q(e,"18"),$=e=>Q(e,"26"),ee=e=>Q(e,"55"),te=e=>(0,G.jsx)(a.A,(0,r.A)((0,r.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:U.shadowPop,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),oe=e=>{let{color:t,selected:o,size:r=24,children:n}=e;return(0,G.jsx)(c.A,{sx:{width:r,height:r,bgcolor:o?t:_(t),color:o?"#fff":t,transition:"background-color 0.15s, color 0.15s"},children:n})},re="AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8";const ne={current:null};function ie(){var e,t;const o=(0,d.A)(),L=(0,x.A)(o.breakpoints.down("md")),Q=(0,n.useRef)(),ie=(0,n.useRef)(),[se]=(0,n.useState)(50),[le]=(0,n.useState)(0),[ae,ce]=(0,n.useState)(0),[de,xe]=(0,n.useState)("All"),[he,ue]=(0,n.useState)({}),[pe,Ae]=(0,n.useState)(!1),[me,ge]=(0,n.useState)(""),[fe,je]=(0,n.useState)({}),[be,ve]=(0,n.useState)(""),[Se,ye]=(0,n.useState)(""),[we,ke]=(0,n.useState)(""),[Ce,We]=(0,n.useState)(""),[Re,Pe]=(0,n.useState)(""),[ze,Te]=(0,n.useState)(""),[Ye,Ie]=(0,n.useState)(null),[Le,Me]=(0,n.useState)(""),[Ee,Je]=(0,n.useState)([]),Ne=(0,n.useRef)(!1);"undefined"===typeof window||Ne.current||(document.querySelector("#google-maps")||function(e,t,o){if(!t)return;const r=document.createElement("script");r.setAttribute("async",""),r.setAttribute("id",o),r.src=e,t.appendChild(r)}("https://maps.googleapis.com/maps/api/js?key=".concat(re,"&libraries=places"),document.querySelector("head"),"google-maps"),Ne.current=!0);const He=(0,n.useMemo)((()=>(0,E.A)(((e,t)=>{ne.current.getPlacePredictions(e,t)}),400)),[]);(0,n.useEffect)((()=>{let e=!0;if(!ne.current&&window.google&&(ne.current=new window.google.maps.places.AutocompleteService),ne.current){if(""!==Le)return He({input:Le},(t=>{if(e){let e=[];Ye&&(e=[Ye]),t&&(e=[...e,...t]),Je(e)}})),()=>{e=!1};Je(Ye?[Ye]:[])}}),[Ye,Le,He]),Y.A.setApiKey("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8"),(0,n.useEffect)((()=>{try{console.log("selected address =>",me),Y.A.fromAddress(me).then((e=>{if(console.log("lat long response =>",e.results[0]),"OK"==e.status){const{lat:t,lng:o}=e.results[0].geometry.location;if(je({lat:t,lng:o}),e.results[0].address_components){let n,i,s,l,a=e.results[0];for(let e=0;e(0,r.A)((0,r.A)({},e),{},{city:n||"",state:s||"",postcode:i||"",suburb:l||"",latitude:t||"",longitude:o||""})))}}}),(e=>{console.log(e)}))}catch(e){console.log(e)}}),[me]);const{data:Be,isLoading:Ke,isFetchingNextPage:Ze,fetchNextPage:qe,hasNextPage:Fe,refetch:Oe}=(0,Z.q)({queryKey:["getAllCustomers",ae,ze,se],queryFn:F.jO,getNextPageParam:e=>e.nextPage,keepPreviousData:!0}),Ve=(null===Be||void 0===Be?void 0:Be.pages.flatMap((e=>e.data)))||[];(0,n.useEffect)((()=>{if(!Fe)return;const e=new IntersectionObserver((e=>{e[0].isIntersecting&&qe()}),{root:document.querySelector(".MuiTableContainer-root"),rootMargin:"0px",threshold:1});return ie.current&&e.observe(ie.current),()=>{ie.current&&e.unobserve(ie.current)}}),[Fe,qe]);const De=e=>{const{scrollTop:t,scrollHeight:o,clientHeight:r}=e.currentTarget;t+r>=o-50&&Fe&&!Ze&&qe()},{data:Ge,isLoading:Ue}=(0,q.I)({queryKey:["customersummary",ae],queryFn:F.zf});(0,n.useEffect)((()=>{console.log("pageCount",Ge)}),[Ge]);const Qe=[{key:"total",label:"Total Customers",color:"#662582",icon:T.AYP,value:null!==(e=null===Ge||void 0===Ge?void 0:Ge.Total)&&void 0!==e?e:0},{key:"loaded",label:"Loaded in View",color:"#0ea5e9",icon:T.$Nl,value:Ve.length},{key:"zone",label:"Active Zone",color:"#10b981",icon:T.XXh,value:de||"All Zones"}];return(0,G.jsxs)(G.Fragment,{children:[(Ue||Ke)&&(0,G.jsx)(J.A,{}),(0,G.jsx)(B.A,{title:"Customers",subtitle:"Live \xb7 ".concat(de||"All Zones"),live:!0,action:(0,G.jsx)(H.A,{locaName:de,setAppId:ce,setLocoName:xe,pill:!0,accentColor:"#662582",icon:(0,G.jsx)(T.HPi,{size:14}),placeholder:"Select Zone",paperComponent:te,sx:{width:{xs:"100%",sm:280},zIndex:100}})}),(0,G.jsx)(h.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:Qe.map((e=>{var t;const o=e.icon;return(0,G.jsx)(h.Ay,{item:!0,xs:6,sm:4,children:(0,G.jsx)(K.A,{title:e.label,value:null!==(t=e.value)&&void 0!==t?t:0,icon:(0,G.jsx)(o,{size:20}),color:e.color,loading:Ue})},e.key)}))}),(0,G.jsx)(a.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:U.radiusCard/8,borderTopRightRadius:U.radiusCard/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:U.borderSubtle,borderBottom:0,background:"#fff"},children:(0,G.jsxs)(u.A,{direction:{xs:"column",sm:"row"},alignItems:{xs:"stretch",sm:"center"},justifyContent:"space-between",spacing:1.25,children:[(0,G.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:1.25,children:[(0,G.jsx)(oe,{color:"#662582",size:32,children:(0,G.jsx)(T.Itr,{size:18})}),(0,G.jsxs)(u.A,{children:[(0,G.jsx)(p.A,{variant:"caption",sx:{fontWeight:800,color:U.textSecondary,letterSpacing:.6,textTransform:"uppercase"},children:"Directory"}),(0,G.jsxs)(p.A,{variant:"body2",sx:{color:U.textPrimary,fontWeight:700},children:[null!==(t=null===Ge||void 0===Ge?void 0:Ge.Total)&&void 0!==t?t:0," total \xb7 ",Ve.length," loaded"]})]})]}),(0,G.jsx)(A.A,{sx:{width:{xs:"100%",sm:280,lg:340},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,G.jsx)(N.A,{value:Re,onChange:Pe,onDebouncedChange:Te,placeholder:"Search customers (ctrl+k)",sx:{m:0,width:"100%",borderRadius:999,bgcolor:X("#662582"),"& fieldset":{borderColor:ee("#662582"),borderWidth:1.5},"&:hover fieldset":{borderColor:"#662582"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:2},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat($("#662582"))}}})})]})}),(0,G.jsx)(a.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:U.radiusCard/8,borderBottomRightRadius:U.radiusCard/8,border:"1px solid",borderColor:U.borderSubtle,overflow:"hidden",background:"#fff"},children:L?(0,G.jsxs)(D.nV,{scroll:!0,onScroll:De,children:[Ke&&(0,G.jsx)(l.A,{}),0!==(null===Ve||void 0===Ve?void 0:Ve.length)||Ke?null===Ve||void 0===Ve?void 0:Ve.map(((e,t)=>(0,G.jsx)(D.pg,{accent:"#662582",header:(0,G.jsxs)(u.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,G.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:1,sx:{minWidth:0},children:[(0,G.jsx)(oe,{color:"#662582",size:36,children:(0,G.jsx)(T.Azs,{size:18})}),(0,G.jsxs)(u.A,{sx:{minWidth:0},children:[(0,G.jsx)(p.A,{variant:"subtitle2",sx:{fontWeight:700,color:U.textPrimary},noWrap:!0,children:e.firstname||"\u2014"}),(0,G.jsxs)(p.A,{variant:"caption",sx:{color:U.textSecondary},children:["ID #",e.customerid]})]})]}),(0,G.jsx)(m.A,{title:"Edit customer",placement:"top",children:(0,G.jsx)(g.A,{size:"small",onClick:()=>{ue(e),setTimeout((()=>Ae(!0)),0)},sx:{bgcolor:_("#8b5cf6"),color:"#8b5cf6",border:"1px solid ".concat(ee("#8b5cf6")),flexShrink:0,"&:hover":{bgcolor:"#8b5cf6",color:"#fff"}},children:(0,G.jsx)(T.Yvo,{size:16})})})]}),children:(0,G.jsxs)(D.FG,{children:[(0,G.jsx)(D.pY,{label:"Contact",value:e.contactno||"\u2014"}),(0,G.jsx)(D.pY,{label:"Location",children:e.suburb?(0,G.jsxs)(A.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:X("#10b981"),border:"1px solid ".concat(ee("#10b981")),color:"#10b981",fontSize:11,fontWeight:800},children:[(0,G.jsx)(T.gwi,{size:12})," ",e.suburb]}):(0,G.jsx)(p.A,{sx:{fontSize:13,fontWeight:600,color:U.textMuted},children:"\u2014"})}),(0,G.jsx)(D.pY,{label:"Address",full:!0,children:(0,G.jsx)(p.A,{sx:{fontSize:13,fontWeight:600,color:U.textPrimary},children:e.address||"\u2014"})})]})},e.customerid||"".concat(e.firstname,"-").concat(t)))):(0,G.jsxs)(u.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,G.jsx)(c.A,{sx:{width:64,height:64,bgcolor:_("#94a3b8"),color:U.textMuted},children:(0,G.jsx)(T.Itr,{size:28})}),(0,G.jsx)(p.A,{variant:"subtitle1",sx:{fontWeight:700,color:U.textPrimary},children:"No customers to show"}),(0,G.jsx)(p.A,{variant:"caption",sx:{color:U.textSecondary,textAlign:"center"},children:Re?"Try a different keyword.":"Pick a zone above to load the directory."})]}),0!==(null===Ve||void 0===Ve?void 0:Ve.length)&&(0,G.jsx)("div",{ref:ie,style:{height:40,textAlign:"center"},children:Ze||Fe?(0,G.jsx)(l.A,{}):(0,G.jsx)(p.A,{variant:"caption",sx:{color:U.textMuted,fontWeight:600},children:"No more customers"})})]}):(0,G.jsx)(f.A,{ref:Q,onScroll:De,sx:{maxHeight:{xs:"calc(100vh - 220px)",md:"calc(100vh - 190px)"},"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:ee("#662582"),borderRadius:8,"&:hover":{backgroundColor:"#662582"}},"&::-webkit-scrollbar-track":{backgroundColor:U.surfaceAlt}},children:(0,G.jsxs)(j.A,{stickyHeader:!0,sx:{minWidth:{xs:720,md:960}},children:[(0,G.jsx)(b.A,{children:(0,G.jsxs)(v.A,{sx:{"& th":{backgroundColor:U.surfaceAlt,color:U.textSecondary,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(U.borderSubtle),py:{xs:1,md:1.25},px:{xs:1,md:2}}},children:[(0,G.jsx)(S.A,{children:"#"}),(0,G.jsx)(S.A,{children:"Customer"}),(0,G.jsx)(S.A,{children:"Contact"}),(0,G.jsx)(S.A,{children:"Address"}),(0,G.jsx)(S.A,{children:"Location"}),(0,G.jsx)(S.A,{align:"right",children:"Action"})]})}),(0,G.jsxs)(y.A,{children:[Ke&&(0,G.jsx)(V.r,{}),0!==(null===Ve||void 0===Ve?void 0:Ve.length)||Ke?null===Ve||void 0===Ve?void 0:Ve.map(((e,t)=>(0,G.jsxs)(v.A,{sx:{cursor:"pointer",transition:"background-color 0.15s","& td":{borderBottom:"1px solid ".concat(U.divider),py:{xs:1,md:1.5},px:{xs:1,md:2}},"&:hover":{backgroundColor:U.surfaceAlt}},children:[(0,G.jsx)(S.A,{children:(0,G.jsx)(p.A,{variant:"caption",sx:{fontWeight:700,color:U.textMuted},children:String(t+1+le*se).padStart(2,"0")})}),(0,G.jsx)(S.A,{children:(0,G.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,G.jsx)(oe,{color:"#662582",size:36,children:(0,G.jsx)(T.Azs,{size:18})}),(0,G.jsxs)(u.A,{children:[(0,G.jsx)(p.A,{variant:"subtitle2",sx:{fontWeight:700,color:U.textPrimary,whiteSpace:"nowrap"},children:e.firstname||"\u2014"}),(0,G.jsxs)(p.A,{variant:"caption",sx:{color:U.textSecondary},children:["ID #",e.customerid]})]})]})}),(0,G.jsx)(S.A,{children:(0,G.jsxs)(u.A,{children:[(0,G.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:.5,children:[(0,G.jsx)(T.EZw,{size:12,color:U.textMuted}),(0,G.jsx)(p.A,{variant:"subtitle2",sx:{fontWeight:700,color:U.textPrimary,whiteSpace:"nowrap"},children:e.contactno||"\u2014"})]}),e.email&&(0,G.jsx)(p.A,{variant:"caption",sx:{color:U.textSecondary},children:e.email})]})}),(0,G.jsx)(S.A,{sx:{maxWidth:280},children:(0,G.jsx)(m.A,{title:e.address||"",placement:"top",children:(0,G.jsx)(p.A,{variant:"caption",sx:{color:U.textSecondary,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.address||"\u2014"})})}),(0,G.jsx)(S.A,{children:e.suburb?(0,G.jsxs)(A.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:X("#10b981"),border:"1px solid ".concat(ee("#10b981")),color:"#10b981",fontSize:11,fontWeight:800},children:[(0,G.jsx)(T.gwi,{size:12})," ",e.suburb]}):(0,G.jsx)(p.A,{variant:"caption",sx:{color:U.textMuted},children:"\u2014"})}),(0,G.jsx)(S.A,{align:"right",children:(0,G.jsx)(m.A,{title:"Edit customer",placement:"top",children:(0,G.jsx)(g.A,{size:"small",onClick:()=>{ue(e),setTimeout((()=>Ae(!0)),0)},sx:{bgcolor:_("#8b5cf6"),color:"#8b5cf6",border:"1px solid ".concat(ee("#8b5cf6")),"&:hover":{bgcolor:"#8b5cf6",color:"#fff"}},children:(0,G.jsx)(T.Yvo,{size:16})})})})]},e.customerid||"".concat(e.firstname,"-").concat(t)))):(0,G.jsx)(v.A,{children:(0,G.jsx)(S.A,{colSpan:6,sx:{py:6},children:(0,G.jsxs)(u.A,{alignItems:"center",spacing:1.5,children:[(0,G.jsx)(c.A,{sx:{width:64,height:64,bgcolor:_("#94a3b8"),color:U.textMuted},children:(0,G.jsx)(T.Itr,{size:28})}),(0,G.jsx)(p.A,{variant:"subtitle1",sx:{fontWeight:700,color:U.textPrimary},children:"No customers to show"}),(0,G.jsx)(p.A,{variant:"caption",sx:{color:U.textSecondary},children:Re?"Try a different keyword.":"Pick a zone above to load the directory."})]})})}),0!==(null===Ve||void 0===Ve?void 0:Ve.length)&&(0,G.jsx)(v.A,{children:(0,G.jsx)(S.A,{colSpan:6,sx:{borderBottom:"none"},children:(0,G.jsx)("div",{ref:ie,style:{height:40,textAlign:"center"},children:Ze||Fe?(0,G.jsx)(l.A,{}):(0,G.jsx)(p.A,{variant:"caption",sx:{color:U.textMuted,fontWeight:600},children:"No more customers"})})})})]})]})})}),(0,G.jsxs)(w.A,{open:pe,onClose:()=>Ae(!1),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",maxWidth:"lg",fullWidth:!0,fullScreen:L,PaperProps:{sx:{borderRadius:{xs:0,sm:3}}},children:[(0,G.jsx)(k.A,{id:"alert-dialog-title",sx:{background:"linear-gradient(135deg, #662582 0%, #9255AB 100%)",color:"#fff",py:2},children:(0,G.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:1.5,children:[(0,G.jsx)(c.A,{sx:{width:36,height:36,bgcolor:"rgba(255,255,255,0.2)",color:"#fff"},children:(0,G.jsx)(s.wwX,{style:{fontSize:18}})}),(0,G.jsxs)(u.A,{children:[(0,G.jsx)(p.A,{sx:{fontSize:11,fontWeight:700,opacity:.85,letterSpacing:.6,textTransform:"uppercase",lineHeight:1},children:"Customer"}),(0,G.jsxs)(p.A,{sx:{fontWeight:800,fontSize:{xs:"1.05rem",sm:"1.2rem"},lineHeight:1.2,mt:.25},children:["Edit ",(null===he||void 0===he?void 0:he.firstname)||"Customer"]})]})]})}),(0,G.jsx)(C.A,{children:(0,G.jsxs)(h.Ay,{container:!0,spacing:2,sx:{mt:2},children:[(0,G.jsxs)(h.Ay,{item:!0,xs:6,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Customer Name"}),(0,G.jsx)(W.A,{variant:"outlined",fullWidth:!0,defaultValue:null===he||void 0===he?void 0:he.firstname,onChange:e=>{ue((0,r.A)((0,r.A)({},he),{},{firstname:e.target.value}))}})]}),(0,G.jsxs)(h.Ay,{item:!0,xs:6,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Contact Number"}),(0,G.jsxs)(u.A,{direction:"row",spacing:1,children:[(0,G.jsx)(W.A,{readonly:!0,variant:"outlined",value:"+91",sx:{width:60}}),(0,G.jsx)(W.A,{variant:"outlined",fullWidth:!0,type:"text",value:(null===he||void 0===he?void 0:he.contactno)||"",inputProps:{maxLength:10,inputMode:"numeric",pattern:"[0-9]*"},onChange:e=>{const t=e.target.value.replace(/\D/g,"");ue((e=>(0,r.A)((0,r.A)({},e),{},{contactno:t})))}})]})]}),(0,G.jsxs)(h.Ay,{item:!0,xs:12,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Address"}),(0,G.jsx)(R.A,{id:"google-map-demo",sx:{},fullWidth:!0,getOptionLabel:e=>"string"===typeof e?e:(null===e||void 0===e?void 0:e.description)||"",filterOptions:e=>e,options:Ee,autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,value:null===he||void 0===he?void 0:he.address,noOptionsText:"No locations",onChange:(e,t)=>{Je(t?[t,...Ee]:Ee),Ie(t),console.log("newValue",t||""),ge(null===t||void 0===t?void 0:t.description),ue((0,r.A)((0,r.A)({},he),{},{address:null===t||void 0===t?void 0:t.description}))},onInputChange:(e,t)=>{Me(t)},renderInput:e=>(0,G.jsx)(W.A,(0,r.A)((0,r.A)({},e),{},{fullWidth:!0})),renderOption:(e,t)=>{const o=t.structured_formatting.main_text_matched_substrings||[],n=M()(t.structured_formatting.main_text,o.map((e=>[e.offset,e.offset+e.length])));return(0,G.jsx)("li",(0,r.A)((0,r.A)({},e),{},{children:(0,G.jsxs)(h.Ay,{container:!0,alignItems:"center",children:[(0,G.jsx)(h.Ay,{item:!0,sx:{display:"flex",width:44},children:(0,G.jsx)(I.A,{sx:{color:"text.secondary"}})}),(0,G.jsxs)(h.Ay,{item:!0,sx:{width:"calc(100% - 44px)",wordWrap:"break-word"},children:[null===n||void 0===n?void 0:n.map(((e,t)=>(0,G.jsx)(A.A,{component:"span",sx:{fontWeight:e.highlight?"bold":"regular"},children:e.text},t))),(0,G.jsx)(p.A,{variant:"body2",color:"text.secondary",children:null===t||void 0===t?void 0:t.structured_formatting.secondary_text})]})]})}))}})]}),(0,G.jsxs)(h.Ay,{item:!0,xs:6,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Location"}),(0,G.jsx)(W.A,{variant:"outlined",fullWidth:!0,value:null===he||void 0===he?void 0:he.suburb,onChange:e=>{const t=e.target.value;ue((e=>(0,r.A)((0,r.A)({},e),{},{suburb:t})))}})]}),(0,G.jsxs)(h.Ay,{item:!0,xs:6,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"City"}),(0,G.jsx)(W.A,{variant:"outlined",fullWidth:!0,value:he.city||be||"",onChange:e=>{const t=e.target.value;ue((e=>(0,r.A)((0,r.A)({},e),{},{city:t})))}})]}),(0,G.jsxs)(h.Ay,{item:!0,xs:6,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"State"}),(0,G.jsx)(W.A,{variant:"outlined",fullWidth:!0,value:he.state||we||"",onChange:e=>{const t=e.target.value;ue((e=>(0,r.A)((0,r.A)({},e),{},{state:t})))}})]}),(0,G.jsxs)(h.Ay,{item:!0,xs:6,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Postcode"}),(0,G.jsx)(W.A,{variant:"outlined",fullWidth:!0,value:""==Se?he.postcode:Se,onChange:e=>{const t=e.target.value;ue((e=>(0,r.A)((0,r.A)({},e),{},{postcode:t})))}})]}),(0,G.jsxs)(h.Ay,{item:!0,xs:12,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Landmark"}),(0,G.jsx)(W.A,{variant:"outlined",fullWidth:!0,defaultValue:he.landmark,onChange:e=>{ue((0,r.A)((0,r.A)({},he),{},{landmark:e.target.value}))}})]}),(0,G.jsxs)(h.Ay,{item:!0,xs:6,sx:{cursor:"not-allowed"},children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Latitude"}),(0,G.jsx)(W.A,{variant:"outlined",fullWidth:!0,value:fe.lat,sx:{cursor:"not-allowed"}})]}),(0,G.jsxs)(h.Ay,{item:!0,xs:6,sx:{cursor:"not-allowed"},children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Longitude"}),(0,G.jsx)(W.A,{readonly:!0,variant:"outlined",fullWidth:!0,value:fe.lng})]})]})}),(0,G.jsxs)(P.A,{sx:{mr:2,mb:2},children:[(0,G.jsx)(z.A,{onClick:()=>Ae(!1),variant:"contained",color:"error",sx:{mr:2},children:"Close"}),(0,G.jsx)(z.A,{onClick:()=>{(async()=>{if(console.log("selectedCustomer",he),he.firstname)if(he.contactno)if(he.address)if(he.suburb)if(he.city)if(he.state)if(he.postcode)if(he.landmark)if(he.latitude)if(he.longitude)try{const e=await i.A.put("".concat("https://jupiter.nearle.app/live/api/v1","/customers/update"),{customerid:he.customerid,configid:1,firstname:he.firstname,applocationid:he.applocationid,profileimage:"",dialcode:"+91",contactno:he.contactno,devicetype:"",deviceid:"",customertoken:"123",address:he.address,suburb:Ce,city:be,state:we,postcode:Se,landmark:he.landmark,doorno:he.doorno,latitude:he.latitude.toString(),longitude:he.longitude.toString()});console.log("postUpdateResponse",e),e.data.status&&((0,O.k)(e.data.message,"success",1500),Ae(!1),Oe())}catch(e){console.log("postUpdate error",e)}else(0,O.k)("Enter Longitude","warning",1500);else(0,O.k)("Enter Latitude","warning",1500);else(0,O.k)("Enter Landmark","warning",1500);else(0,O.k)("Enter PostCode","warning",1500);else(0,O.k)("Enter State","warning",1500);else(0,O.k)("Enter City ","warning",1500);else(0,O.k)("Enter Suburb","warning",1500);else(0,O.k)("Enter Valid Address","warning",1500);else(0,O.k)("Enter Contact Number ","warning",1500);else(0,O.k)("Enter Door NO","warning",1500)})()},variant:"contained",autoFocus:!0,children:"Update"})]})]})]})}},23787:(e,t,o)=>{o.d(t,{FG:()=>u,nV:()=>x,pY:()=>p,pg:()=>h});var r=o(89379),n=o(80045),i=o(93230),s=o(2235),l=o(16491),a=o(82053),c=o(44414);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:t,scroll:o=!1,onScroll:s,sx:l}=e,a=(0,n.A)(e,d);return(0,c.jsx)(i.A,(0,r.A)((0,r.A)({spacing:1.25,onScroll:s,sx:(0,r.A)((0,r.A)({p:1.5},o&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),l)},a),{},{children:t}))},h=e=>{let{accent:t="#662582",header:o,footer:n,selected:i=!1,onClick:a,children:d,sx:x}=e;return(0,c.jsxs)(s.A,{elevation:0,onClick:a,sx:(0,r.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:i?t:"#e2e8f0",background:i?"".concat(t,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,c.jsx)(l.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:t}}),(0,c.jsxs)(l.A,{sx:{p:1.5,pl:2},children:[o,d,n]})]})},u=e=>{let{children:t,columns:o=2,sx:n}=e;return(0,c.jsx)(l.A,{sx:(0,r.A)({display:"grid",gridTemplateColumns:"repeat(".concat(o,", minmax(0, 1fr))"),gap:1,mt:1.25},n),children:t})},p=e=>{let{label:t,value:o,children:r,full:n=!1,align:i="left"}=e;return(0,c.jsxs)(l.A,{sx:{gridColumn:n?"1 / -1":"auto",minWidth:0,textAlign:i},children:[(0,c.jsx)(a.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:t}),(0,c.jsx)(l.A,{sx:{mt:.25,minWidth:0},children:void 0!==r?r:(0,c.jsx)(a.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==o&&void 0!==o?o:"\u2014"})})]})}},27001:(e,t,o)=>{o.d(t,{A:()=>l});var r=o(93230),n=o(16491),i=o(82053),s=o(44414);function l(e){let{title:t,subtitle:o,live:l=!1,action:a}=e;return(0,s.jsxs)(r.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,s.jsxs)(n.A,{sx:{minWidth:0},children:[(0,s.jsx)(i.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:t}),o&&(0,s.jsxs)(r.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[l&&(0,s.jsx)(n.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,s.jsx)(i.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:o})]})]}),a&&(0,s.jsx)(n.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:a})]})}},36803:(e,t,o)=>{o.d(t,{A:()=>x});var r=o(48089),n=o(50704),i=o(93230),s=o(16491),l=o(82053),a=o(82917),c=o(41413),d=o(44414);function x(e){let{title:t,value:o,icon:x,color:h="#662582",caption:u,loading:p=!1}=e;return(0,d.jsx)(r.A,{sx:{height:"100%"},children:(0,d.jsx)(n.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,d.jsxs)(i.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,d.jsxs)(s.A,{sx:{minWidth:0,flex:1},children:[(0,d.jsx)(l.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t}),p?(0,d.jsx)(a.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,d.jsx)(l.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o}),u&&(0,d.jsx)(l.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:u})]}),x&&(0,d.jsx)(c.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(h,"14"),color:h,flexShrink:0},children:x})]})})})}},56311:(e,t,o)=>{o.d(t,{A:()=>u});var r=o(89379),n=o(9950),i=o(2660),s=o(2046),l=o(83274),a=o(25333),c=o(97125),d=o(7762),x=o(52097),h=o(44414);const u=e=>{let{value:t,onChange:o,onDebouncedChange:u,debounceTime:p=500,placeholder:A="Search (ctrl+k)",sx:m}=e;const g=(0,n.useRef)(null),[f]=(0,x.d7)(t,p);return(0,n.useEffect)((()=>{u&&u(f)}),[f,u]),(0,n.useEffect)((()=>{const e=e=>{var t;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(t=g.current)||void 0===t||t.focus());"Escape"===e.key&&document.activeElement===g.current&&g.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,h.jsx)(i.A,{sx:(0,r.A)({},m),inputRef:g,placeholder:A,autoComplete:"off",value:t,fullWidth:!0,onChange:e=>o(e.target.value),startAdornment:(0,h.jsx)(s.A,{position:"start",sx:{mr:-.5},children:(0,h.jsx)(c.A,{})}),endAdornment:(0,h.jsx)(l.A,{title:"Clear",children:(0,h.jsx)(a.A,{sx:{visibility:t?"visible":"hidden"},onClick:()=>o(""),children:(0,h.jsx)(d.A,{})})})})}},58691:(e,t,o)=>{o.d(t,{A:()=>l});o(9950);var r=o(16491),n=o(46639),i=o(62217),s=o(44414);function l(e){let{size:t=70,imgSize:o=40,alt:l="loader"}=e;return(0,s.jsxs)(r.A,{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",children:[(0,s.jsx)(n.A,{size:t}),(0,s.jsx)(r.A,{position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",sx:{width:o,height:o},children:(0,s.jsx)("img",{src:i,alt:l,style:{width:"100%",height:"100%",borderRadius:"50%",objectFit:"contain"}})})]})}},59212:(e,t,o)=>{o.d(t,{A:()=>h});var r=o(89379),n=o(9950),i=o(93230),s=o(41413),l=o(77922),a=o(29925),c=o(26910),d=o(31222),x=o(44414);const h=(0,n.forwardRef)(((e,t)=>{let{setAppId:o,setLocoName:h,setPage:u,sx:p,textfeildSx:A,textfieldSx:m,pill:g=!1,accentColor:f="#6366f1",icon:j,placeholder:b="Select Zone",paperComponent:v}=e;const[S,y]=(0,n.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,n.useEffect)((()=>{0===S.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const t=await c.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(t.data.status){const e=[...t.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),y(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[S.length]);const w=e=>"".concat(f).concat(e),k=w("26"),C=w("18"),W=g?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(k)},"&.Mui-focused fieldset":{borderColor:f,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},R=g&&(0,x.jsx)(i.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,x.jsx)(s.A,{sx:{width:24,height:24,bgcolor:C,color:f,transition:"background-color 0.15s, color 0.15s"},children:j||(0,x.jsx)(d.HPi,{size:14})})});return(0,x.jsx)(l.A,{id:"location-autocomplete",options:S||[],getOptionLabel:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.locationname)&&void 0!==t?t:""},PaperComponent:v,sx:(0,r.A)({},p),onChange:(e,t,r)=>{"clear"===r?(null===o||void 0===o||o(0),null===h||void 0===h||h(""),null===u||void 0===u||u(0)):t&&(null===o||void 0===o||o(t.applocationid),null===h||void 0===h||h(t.locationname),null===u||void 0===u||u(0))},renderInput:e=>g?(0,x.jsx)(a.A,(0,r.A)((0,r.A)({},e),{},{inputRef:t,placeholder:b,InputProps:(0,r.A)((0,r.A)({},e.InputProps),{},{startAdornment:R}),sx:(0,r.A)((0,r.A)({},W),m||A||{})})):(0,x.jsx)(a.A,(0,r.A)((0,r.A)({},e),{},{inputRef:t,label:"Select Zones",sx:(0,r.A)({},m||A||{})}))})}))},62217:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAAA+CAYAAABzwahEAAAPnUlEQVR4AdVae3AU9R3/7d4jdyGQQKAhECBAJBSmEAtFSQUjqPgAHGlhRm0lDkWY6Tg+O9qiErR26h8WR8ZWqTMN1ur4qMpDrTyjtDwDJloeCYiBvAgkaZ53l7vb3X4/v9vfZS/Zu9uFwLSfmb3d293f7u/z+z5/399K7CphdW5JrupgBZosZ0ialmu8pklSjUOTamRJbvvjqTUV7CpAYlcIj+SWZHQ55WJZlm7UNK2IXpRhpZ3GWJskSWXUZrPD4Sp77eSva9gVwIATXz35+SJNYWs1phWxAYDEpDKVaZv+fOrZUjaAGDDiK695rpgetpYOc82upw72sMycdJbz/SzmHeKl/ynRay31bbS1s7rjTczXGYj3ihrShnUDNQCXTXzlNS8UyExdbybhSdeNYwXz81nBzflE2pKms7oT51ntiSa276NKVn3wrNktNcGQelNpTUkNuwxcFvFV+S88rKnKy8ZzkOz84uvYvOJZ/PhyAE3Y/+HXbN+HFVwjjJAlR8lr1WueY9wt2MclEYfj8rnkj+nwRnHOLuGWhnbmpfuMKh/3Xn0Atm74IuY8OcGPFYk99kbVM98xm7BFnDyttHLyb3MlRdsjSWycOA+VLv79YpY5Ork6V5efY59s/JJVHznH/+dMymLz7v0Rm71oWtK2GIDSJ7ew6kMxJlCjytI8u+Qddm4+93bPBIfqiiG96KG5RPouljokuZT3b/2avf7EB6ylsZ1dM2MsG5OfxU7RAFSWVbMAObUphRMTtsc7CpdMh6c3kqe8gN117Yh5W4627GljFmGZ+C/ynx/flzSkDPW2Aqj2+lV/Y5mj0tljG3/GFhQXspkLpnBJVx85yyq/OGWJPAANgzkd2/utOMXJzxp965vlF3YFrPRHZtYgSZq6vi/p2TT6VrF+1Vt8/yiRhnoLiIHAftc7h0kDzlp6HgYcfTAgVwmEPmIWzTeZxPEQaeWkkhJJk1eJk8vWLGBz75nBrAIqfmDrN2zhqjlsetGkftddKU6WQ2qPe6AZVuwdGPP9kWw4+ZWKnVXiVO6M4UXtR1rKDiZrm4g4J70871cTnMzzd3ESNn3bgz9mdgC7hmoufeKWuB4/c1QGV3nYfP7Msfy/FYB8rM1LC6YNm72lonXv+UTtEqr60qVLJTcbvEv8h20tfOhGZgeQtpBiZnZ6wnuhEUDFnlPMDhaSMCbNilohc0kp61mEW1y1j0u8hLR78Ff5xX3t2i5AHLjegvqOIdtHXK/8oorZRfGLiw3aJM1dkVeynA5kCsGm98cjLhNxh4O5nxEnoOJW4rQRkDRUF3adTNoAEprRRB7tfJ09zA7Qt3mGCCMz+dmioiLKcSRTjvGISw/kPbNcSDtzdLotDy6A+AyYObR4KCjK53ur3t2I+ct7s0b0Pfds4U04RuLV914z4rjJ4ZSc94sTSBrsShvYv62S76frZKwAYQ2orWpidoEExyh1tzPl6SlTpjhJ6v3u7Utcgm0vHf/wePKUc8TJS5E21LWu6gKbRBmalXwcgHp70yISg8QR3oTWWAWk3gtpbp6/cCiLRK8Y9k7jHzgCGh3n8om/ibpueHKr0vZT5lVZFvHItVWRaALVQ4pqxcYfL3opeoxcvlr3D4BVc4HU4eFFeMt0ZsHJvUzcFKPkY4gvW7YMGiC7ZfcicW723dalXUsS3lSyNeZcBUmsmaS/5p0Vlp4BVccADsvOYP6uAM/yKsqq7PkJmv8L4k7mmEu7DcRNIfIqkedu3qjq0pkzZ/DfITE5quZjp2Qxu0Dnha1iX1fdxD55fW/CNjANYN49s7jKI5O788E5kfY0oHZQcEuvT5GY8wbaye+//36MqsfY+JEjR6QlY1cX0CHvNdQmZ/JIZhUtjW3RzkNqsG90Hti2cS8fgGSoqz7Pp6loi/uH6wNnJ7zBNA0ZYvrdY1aMZ6hdGHQ9RuL473KmDBUnUB+zAyE1dP6me2fxpMUYljat3Zb0GfvJodWRRz9Aic/utw+Ts/NG1L/L0qQrCoRggVTXUGRPMULmNo44h0CflZXlcGiuXLPGdoDOo7Pw0EYpC5W/c9Wcfm3EoAGiSAF4h0QiQmtDmyUHKZAzZSSrPam/W5MgzJgUlo+CrgFSU1OT5GTOseKi7UytsT2GiJlqW1X5aB+IrJfCYXNDO7MDYwh1yA4kYvKMGTNkkcxw4ghjdJLfQ9ntJRcgWxqsFUCsqDzg1e0U5FtsEvfGVIQ4J9nv90fNXEhcgmPLyEAh49KJW4WZlzezYSE172BvjDbZhc5JPn78eH/nlpubK7e1tcWQtjtRaDXpnLHaYkRflTdbSEhN65V4a4Plclo/IC/TDyV9ixCnNJWFw2EpPT2dBcKBBtHA3+FndmCmjsueuJnIf8/0/mQq79UlDkdpV+LGOnxQ7aljOmFwBTjxY8eOSXV1day9vV1SlFCHaFB3wroT8sdZ+kE4QuXFDMkSG7+ucZmUxdmdqrbU9WpIINQuiPO5CM5x4pTVYMdTucbgt8ejjeutj3K8Tg0jaU2aMY4nJWYQKm+mLT7d7kUW2GrDwRmFFpD8Xax3xSUmZcUfPhL7L2yvp9XJTv7ijgAv4ltBPK8rHNRCPf00QzKVRzs8p7Y6YRktCqy99foMrWN73bsnWJ/ZmTGbUVlkADRFDUarlIYKZkKYeWUjUYSm+0sWmraFxHdTaTkRhtnI2bHwKBBUA3iwSv6LcxPnjV4dI6J5vV61W+04JM5X7LBG3Mwr9820oPLxZln+zsQpac6kkdG5QDLs+7AyetwRat0FTvqsLEpeJDBaTU2NQocqBXl1f9PnH4uGmN5ZcSpmqu41KSUvffwWy4UJIzCIxlQ2bj/ILxnX1mq6Tx0EJwrVKlVjNFF8NKasbMSIEeqgQYOUWl91W0gNlIvGu0oPJH2h31Ti/VNeqP8dJrm6KQnDYIp5erKwZpR2j9JTfrRldy1x4mZMCYwWk7mxiPjVixcvqt3d3WpKSopS6z/9J/GA3ZsOJZW6mRp640h2Pk1bsWhoBzAToLo8fhES0t4fo+YXoblhWZbDtOcaLa5FbZziGyc/ZMgQpaenJ7yz4b1DqhpuxDV492RSNxuYeF4cWF6yiNmB8OyJ1B3SFlFI1ZSGj2o3grjS2dnJSescYyswa9eu5cQ7OjpwE0YodLGn/jVxHVJPFNfNc21PQiKiSJEIxgGFZ49XfETfthk+HGiO9B08wsOHD8deNd4fJa7rPi6G09LSeINPm97cHFT9R3gHSOqlT25m8WCWXCRzYvMpqUmkFYBxQOHZYedmNXdj36Cp6LvOJdTc3KzS4oKqC5cjSlz3dvhRurq6Qh6PJ0SDETrefvQP4h54y76fYwhg+ffRjfeRCi/kkrx+0Q9oVSRx2SpRbI8S7+iVuAiP+KrCiK0bvozx5Idat68KBoMhCmNBcKFQrYC4KDQC0SqrfhIS56oeCASC5ORCh5o/Pz7aO279CE/Oo7hvG70EBYrCPrX26CzM+uoxh0hnUWYyJd4VmSihWvvJxkheX2uY1e0qPRij4q09TW98/Z8D59B3CmNBUnMFoVpMTgT6LigI44eqB2kwMNxBchJvk8ofFTdtempLTNi4XCCdjWcWqLwgrH3w0g4eCaBVq1/6Kb+GPrz3u+3Re31K95cfnHv1dfSZPDn6HoKq06qvqvVZPey3Po6RKSsr49cwVWWRwXE2+M7tyxs87VZZktNwsZJSWVRhJxTksMsFPgyY85MZbGrhBJqDe5kzxRGd20MjOlq6qNqawSOBWDcHaQhAQCG7Pty66+l29WKz0+n0k8ZCVQITJ04M7dy5U1m3bl0M8XjVFgyIizYP2ckgUpnBdJw6OeOHuYWZC191ys6o8WJtepHNNXMrgDeHE0MuALLG9Bc2bVTvsBo+v6/ls1+ebDv8Ham4j8IxZmPdtMEzhljvPCSKeMT5wmF2dra7sbExlY4H0QZJe4n82L7ksWRT/OJdl1yVtQqELHhvoyMjSZ//V4T0WbfbHSCnxklTxdhPxdMgaXjY6NSMBPtBX0ODikPqbto4eXpwKj0Y5MfMHHbzI6mOtJhADOkXLikY8AGA9JFA7S49FDMZCij+ih31bz3V2FPbqpOGlLH5aION94vfAnELi3qtHddBHJ7Hy3Sp0+YhO3Ivzl65Yrgn+wFjO3j82UumDcgAxCMMNPnPbdhc98a7LpcLThikYdOQNrdtcmhhKrD0U3GBZBVVieKfg5wdJJ+Smprq9fl8kH4qvdATCoVc+ekFo28YvvgVh0H1BWACWGLGBzpjLK7KoGSEGgC2Pl8wckDK/247+MrR1t2YL8N+IVmfThh7YdcKS/Cda1LiqFHRJufk5LioLuch8h6dvJfIpxB5aITzjtE/v32kZ/wDTpMBAJC+YkkKWmD8ktlHCQqKmrUnL7BWIh3vs23YcmPgu798Wv/Xz0CM3h2mdwd0wnwjn9QzatSoEJXKw1pEZeMTYxagq73w9FB7Suw8XlVVvaRi+A/yuO64bfR9t2eljL09xeEtYAOAQNhfcabrm9J/XtyGPIKn1Lp6B3X19tN6gJ/m29ymSUgKUlMzh2aEncUDmdRe1tXeaPce/dilbxgAOT99evbEQdOuHebJvsHrSC2gpec0Ky/RmNrlV3wVneHWrw427/hHc7C+k/IJEFZ1KSOjDFDIEtLmSRb1LUR94/dZeY+tVROoPDaQo1TQTS9PoSlfik4cA0B9c7mpc1z6GAByghISoZkjivI8MuVRjqEjU52DRuossXir+UJdFHcCXfW+b09VtR9tMnReoefxNJqeCbsF6R7KygL03B56N8/OWK/3tkTaNnHWa/M8zrNIru8iOik0GeADQGHFTabh0q85qL/8Kwu0xSBgTwPB6BiLGMZn83SZzmuQMAhTWz5voEeGoNcgTtWUHiqW8OO8vLww+R5lz5494UT2PBDEY9rSQqOTHAmP91TFdNGChJsyPTdlelztqcMu6i+XvNiIkBQRHlcPHGv6sUbHIKzo56J1AZBkvR5cSFhUVBR2CbD69bIpysvLecdoAHqINOytm0ijJt9J3r+TVBLHXfrGkwsiJRIMLF1i76MBEue7qE0XqTPadYiNnFen3j6Ad5HGYSDwTcslkQYGamVULLrLpH7y6dOnuY1TGctFFR0hcYfhvujinQ6eaNBgYc6sEHm+0WAKqatEWJkwYYI6depUjYhbtuWrBW775GGd1FEXFQA8FFsR8+HRMdFBKocgPrTvRkgnh4l70ijPxtwAzpLnCLpDvSztvFqQ9C8PuAPEINDeTdpgjADYjOFQhESn3s6hP+OKr9dfSUhCaiIcYjNIMur52f850f95/BfoYlARf1CQvwAAAABJRU5ErkJggg=="},96646:(e,t,o)=>{o.d(t,{r:()=>a});var r=o(9213),n=o(21671),i=o(82917),s=o(93230),l=o(44414);const a=e=>{let{rowsPerPage:t=5,col:o=1}=e;return(0,l.jsx)(l.Fragment,{children:Array.from(new Array(t)).map(((e,t)=>(0,l.jsxs)(r.A,{children:[(0,l.jsx)(n.A,{children:(0,l.jsx)(i.A,{variant:"circular",width:24,height:24})}),(0,l.jsx)(n.A,{children:(0,l.jsx)(i.A,{variant:"text",width:30})}),Array.from({length:o}).map(((e,t)=>(0,l.jsx)(n.A,{children:(0,l.jsxs)(s.A,{spacing:.5,children:[(0,l.jsx)(i.A,{variant:"text",width:100}),(0,l.jsx)(i.A,{variant:"text",width:80})]})},t))),(0,l.jsx)(n.A,{children:(0,l.jsx)(i.A,{variant:"text",width:150})}),(0,l.jsx)(n.A,{children:(0,l.jsx)(i.A,{variant:"rounded",width:60,height:24})}),(0,l.jsx)(n.A,{align:"center",children:(0,l.jsxs)(s.A,{direction:"row",spacing:1,justifyContent:"flex-end",children:[(0,l.jsx)(i.A,{variant:"circular",width:28,height:28}),(0,l.jsx)(i.A,{variant:"circular",width:28,height:28})]})})]},t)))})}}}]); \ No newline at end of file diff --git a/build/static/js/9521.e24db89d.chunk.js b/build/static/js/9521.e24db89d.chunk.js new file mode 100644 index 0000000..22089f4 --- /dev/null +++ b/build/static/js/9521.e24db89d.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9521],{12010:(e,t,r)=>{"use strict";r.d(t,{A:()=>T});var o=r(57528),i=r(84849),n=r(27326),s=r(85672),a=r(72574),l=r(25234),c=r(8913),d=r(16775),h=r(38009),x=r(60308),u=r(37300),p=r(10644);function g(e){return(0,p.Ay)("MuiCircularProgress",e)}(0,u.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var A,m,f,v,j=r(65908);const b=["className","color","disableShrink","size","style","thickness","value","variant"];let S,y,w,k;const C=44,P=(0,c.i7)(S||(S=A||(A=(0,o.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),W=(0,c.i7)(y||(y=m||(m=(0,o.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),R=(0,x.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["color".concat((0,d.A)(r.color))]]}})((e=>{let{ownerState:t,theme:r}=e;return(0,n.A)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,c.AH)(w||(w=f||(f=(0,o.A)(["\n animation: "," 1.4s linear infinite;\n "]))),P)})),z=(0,x.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),M=(0,x.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t["circle".concat((0,d.A)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:r}=e;return(0,n.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,c.AH)(k||(k=v||(v=(0,o.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),W)})),T=s.forwardRef((function(e,t){const r=(0,h.b)({props:e,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:c=!1,size:x=40,style:u,thickness:p=3.6,value:A=0,variant:m="indeterminate"}=r,f=(0,i.A)(r,b),v=(0,n.A)({},r,{color:s,disableShrink:c,size:x,thickness:p,value:A,variant:m}),S=(e=>{const{classes:t,variant:r,color:o,disableShrink:i}=e,n={root:["root",r,"color".concat((0,d.A)(o))],svg:["svg"],circle:["circle","circle".concat((0,d.A)(r)),i&&"circleDisableShrink"]};return(0,l.A)(n,g,t)})(v),y={},w={},k={};if("determinate"===m){const e=2*Math.PI*((C-p)/2);y.strokeDasharray=e.toFixed(3),k["aria-valuenow"]=Math.round(A),y.strokeDashoffset="".concat(((100-A)/100*e).toFixed(3),"px"),w.transform="rotate(-90deg)"}return(0,j.jsx)(R,(0,n.A)({className:(0,a.A)(S.root,o),style:(0,n.A)({width:x,height:x},w,u),ownerState:v,ref:t,role:"progressbar"},k,f,{children:(0,j.jsx)(z,{className:S.svg,ownerState:v,viewBox:"".concat(22," ").concat(22," ").concat(C," ").concat(C),children:(0,j.jsx)(M,{className:S.circle,style:y,ownerState:v,cx:C,cy:C,r:(C-p)/2,fill:"none",strokeWidth:p})})}))}))},19521:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>ne});var o=r(22555),i=r(85672),n=r(66157),s=r(81600),a=r(58691),l=r(55235),c=r(97043),d=r(69039),h=r(76264),x=r(1939),u=r(71392),p=r(2866),g=r(48738),A=r(23440),m=r(11969),f=r(83209),v=r(72486),j=r(54016),b=r(50755),S=r(1596),y=r(81802),w=r(58689),k=r(19619),C=r(5670),P=r(86270),W=r(17488),R=r(17450),z=r(80911),M=r(48952),T=r(76453),I=r(58355),Y=r(75153),N=r.n(Y),L=r(56691),E=r(52351),J=r(56311),H=r(59212),B=r(27001),D=r(36803),F=r(41033),K=r(68320),O=r(81425),Z=r(20466),q=r(96646),V=r(23787),G=r(65908);const U={radiusPill:999,radiusCard:14,shadowSoft:"0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05)",shadowMd:"0 1px 3px rgba(15, 23, 42, 0.06)",shadowPop:"0 12px 32px rgba(15, 23, 42, 0.12)",textPrimary:"#0f172a",textSecondary:"#64748b",textMuted:"#94a3b8",borderSubtle:"#e2e8f0",divider:"#f1f5f9",surface:"#ffffff",surfaceAlt:"#f8fafc"},Q=(e,t)=>"".concat(e).concat(t),X=e=>Q(e,"08"),_=e=>Q(e,"18"),$=e=>Q(e,"26"),ee=e=>Q(e,"55"),te=e=>(0,G.jsx)(l.A,(0,o.A)((0,o.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:U.shadowPop,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),re=e=>{let{color:t,selected:r,size:o=24,children:i}=e;return(0,G.jsx)(c.A,{sx:{width:o,height:o,bgcolor:r?t:_(t),color:r?"#fff":t,transition:"background-color 0.15s, color 0.15s"},children:i})},oe="AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8";const ie={current:null};function ne(){var e,t;const r=(0,d.A)(),Y=(0,h.A)(r.breakpoints.down("md")),Q=(0,i.useRef)(),ne=(0,i.useRef)(),[se]=(0,i.useState)(50),[ae]=(0,i.useState)(0),[le,ce]=(0,i.useState)(0),[de,he]=(0,i.useState)("All"),[xe,ue]=(0,i.useState)({}),[pe,ge]=(0,i.useState)(!1),[Ae,me]=(0,i.useState)(""),[fe,ve]=(0,i.useState)({}),[je,be]=(0,i.useState)(""),[Se,ye]=(0,i.useState)(""),[we,ke]=(0,i.useState)(""),[Ce,Pe]=(0,i.useState)(""),[We,Re]=(0,i.useState)(""),[ze,Me]=(0,i.useState)(""),[Te,Ie]=(0,i.useState)(null),[Ye,Ne]=(0,i.useState)(""),[Le,Ee]=(0,i.useState)([]),Je=(0,i.useRef)(!1);"undefined"===typeof window||Je.current||(document.querySelector("#google-maps")||function(e,t,r){if(!t)return;const o=document.createElement("script");o.setAttribute("async",""),o.setAttribute("id",r),o.src=e,t.appendChild(o)}("https://maps.googleapis.com/maps/api/js?key=".concat(oe,"&libraries=places"),document.querySelector("head"),"google-maps"),Je.current=!0);const He=(0,i.useMemo)((()=>(0,L.A)(((e,t)=>{ie.current.getPlacePredictions(e,t)}),400)),[]);(0,i.useEffect)((()=>{let e=!0;if(!ie.current&&window.google&&(ie.current=new window.google.maps.places.AutocompleteService),ie.current){if(""!==Ye)return He({input:Ye},(t=>{if(e){let e=[];Te&&(e=[Te]),t&&(e=[...e,...t]),Ee(e)}})),()=>{e=!1};Ee(Te?[Te]:[])}}),[Te,Ye,He]),T.A.setApiKey("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8"),(0,i.useEffect)((()=>{try{console.log("selected address =>",Ae),T.A.fromAddress(Ae).then((e=>{if(console.log("lat long response =>",e.results[0]),"OK"==e.status){const{lat:t,lng:r}=e.results[0].geometry.location;if(ve({lat:t,lng:r}),e.results[0].address_components){let i,n,s,a,l=e.results[0];for(let e=0;e(0,o.A)((0,o.A)({},e),{},{city:i||"",state:s||"",postcode:n||"",suburb:a||"",latitude:t||"",longitude:r||""})))}}}),(e=>{console.log(e)}))}catch(e){console.log(e)}}),[Ae]);const{data:Be,isLoading:De,isFetchingNextPage:Fe,fetchNextPage:Ke,hasNextPage:Oe,refetch:Ze}=(0,F.q)({queryKey:["getAllCustomers",le,ze,se],queryFn:O.jO,getNextPageParam:e=>e.nextPage,keepPreviousData:!0}),qe=(null===Be||void 0===Be?void 0:Be.pages.flatMap((e=>e.data)))||[];(0,i.useEffect)((()=>{if(!Oe)return;const e=new IntersectionObserver((e=>{e[0].isIntersecting&&Ke()}),{root:document.querySelector(".MuiTableContainer-root"),rootMargin:"0px",threshold:1});return ne.current&&e.observe(ne.current),()=>{ne.current&&e.unobserve(ne.current)}}),[Oe,Ke]);const Ve=e=>{const{scrollTop:t,scrollHeight:r,clientHeight:o}=e.currentTarget;t+o>=r-50&&Oe&&!Fe&&Ke()},{data:Ge,isLoading:Ue}=(0,K.I)({queryKey:["customersummary",le],queryFn:O.zf});(0,i.useEffect)((()=>{console.log("pageCount",Ge)}),[Ge]);const Qe=[{key:"total",label:"Total Customers",color:"#662582",icon:M.AYP,value:null!==(e=null===Ge||void 0===Ge?void 0:Ge.Total)&&void 0!==e?e:0},{key:"loaded",label:"Loaded in View",color:"#0ea5e9",icon:M.$Nl,value:qe.length},{key:"zone",label:"Active Zone",color:"#10b981",icon:M.XXh,value:de||"All Zones"}];return(0,G.jsxs)(G.Fragment,{children:[(Ue||De)&&(0,G.jsx)(E.A,{}),(0,G.jsx)(B.A,{title:"Customers",subtitle:"Live \xb7 ".concat(de||"All Zones"),live:!0,action:(0,G.jsx)(H.A,{locaName:de,setAppId:ce,setLocoName:he,pill:!0,accentColor:"#662582",icon:(0,G.jsx)(M.HPi,{size:14}),placeholder:"Select Zone",paperComponent:te,sx:{width:{xs:"100%",sm:280},zIndex:100}})}),(0,G.jsx)(x.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:Qe.map((e=>{var t;const r=e.icon;return(0,G.jsx)(x.Ay,{item:!0,xs:6,sm:4,children:(0,G.jsx)(D.A,{title:e.label,value:null!==(t=e.value)&&void 0!==t?t:0,icon:(0,G.jsx)(r,{size:20}),color:e.color,loading:Ue})},e.key)}))}),(0,G.jsx)(l.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:U.radiusCard/8,borderTopRightRadius:U.radiusCard/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:U.borderSubtle,borderBottom:0,background:"#fff"},children:(0,G.jsxs)(u.A,{direction:{xs:"column",sm:"row"},alignItems:{xs:"stretch",sm:"center"},justifyContent:"space-between",spacing:1.25,children:[(0,G.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:1.25,children:[(0,G.jsx)(re,{color:"#662582",size:32,children:(0,G.jsx)(M.Itr,{size:18})}),(0,G.jsxs)(u.A,{children:[(0,G.jsx)(p.A,{variant:"caption",sx:{fontWeight:800,color:U.textSecondary,letterSpacing:.6,textTransform:"uppercase"},children:"Directory"}),(0,G.jsxs)(p.A,{variant:"body2",sx:{color:U.textPrimary,fontWeight:700},children:[null!==(t=null===Ge||void 0===Ge?void 0:Ge.Total)&&void 0!==t?t:0," total \xb7 ",qe.length," loaded"]})]})]}),(0,G.jsx)(g.A,{sx:{width:{xs:"100%",sm:280,lg:340},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,G.jsx)(J.A,{value:We,onChange:Re,onDebouncedChange:Me,placeholder:"Search customers (ctrl+k)",sx:{m:0,width:"100%",borderRadius:999,bgcolor:X("#662582"),"& fieldset":{borderColor:ee("#662582"),borderWidth:1.5},"&:hover fieldset":{borderColor:"#662582"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:2},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat($("#662582"))}}})})]})}),(0,G.jsx)(l.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:U.radiusCard/8,borderBottomRightRadius:U.radiusCard/8,border:"1px solid",borderColor:U.borderSubtle,overflow:"hidden",background:"#fff"},children:Y?(0,G.jsxs)(V.nV,{scroll:!0,onScroll:Ve,children:[De&&(0,G.jsx)(a.A,{}),0!==(null===qe||void 0===qe?void 0:qe.length)||De?null===qe||void 0===qe?void 0:qe.map(((e,t)=>(0,G.jsx)(V.pg,{accent:"#662582",header:(0,G.jsxs)(u.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,G.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:1,sx:{minWidth:0},children:[(0,G.jsx)(re,{color:"#662582",size:36,children:(0,G.jsx)(M.Azs,{size:18})}),(0,G.jsxs)(u.A,{sx:{minWidth:0},children:[(0,G.jsx)(p.A,{variant:"subtitle2",sx:{fontWeight:700,color:U.textPrimary},noWrap:!0,children:e.firstname||"\u2014"}),(0,G.jsxs)(p.A,{variant:"caption",sx:{color:U.textSecondary},children:["ID #",e.customerid]})]})]}),(0,G.jsx)(A.A,{title:"Edit customer",placement:"top",children:(0,G.jsx)(m.A,{size:"small",onClick:()=>{ue(e),setTimeout((()=>ge(!0)),0)},sx:{bgcolor:_("#8b5cf6"),color:"#8b5cf6",border:"1px solid ".concat(ee("#8b5cf6")),flexShrink:0,"&:hover":{bgcolor:"#8b5cf6",color:"#fff"}},children:(0,G.jsx)(M.Yvo,{size:16})})})]}),children:(0,G.jsxs)(V.FG,{children:[(0,G.jsx)(V.pY,{label:"Contact",value:e.contactno||"\u2014"}),(0,G.jsx)(V.pY,{label:"Location",children:e.suburb?(0,G.jsxs)(g.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:X("#10b981"),border:"1px solid ".concat(ee("#10b981")),color:"#10b981",fontSize:11,fontWeight:800},children:[(0,G.jsx)(M.gwi,{size:12})," ",e.suburb]}):(0,G.jsx)(p.A,{sx:{fontSize:13,fontWeight:600,color:U.textMuted},children:"\u2014"})}),(0,G.jsx)(V.pY,{label:"Address",full:!0,children:(0,G.jsx)(p.A,{sx:{fontSize:13,fontWeight:600,color:U.textPrimary},children:e.address||"\u2014"})})]})},e.customerid||"".concat(e.firstname,"-").concat(t)))):(0,G.jsxs)(u.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,G.jsx)(c.A,{sx:{width:64,height:64,bgcolor:_("#94a3b8"),color:U.textMuted},children:(0,G.jsx)(M.Itr,{size:28})}),(0,G.jsx)(p.A,{variant:"subtitle1",sx:{fontWeight:700,color:U.textPrimary},children:"No customers to show"}),(0,G.jsx)(p.A,{variant:"caption",sx:{color:U.textSecondary,textAlign:"center"},children:We?"Try a different keyword.":"Pick a zone above to load the directory."})]}),0!==(null===qe||void 0===qe?void 0:qe.length)&&(0,G.jsx)("div",{ref:ne,style:{height:40,textAlign:"center"},children:Fe||Oe?(0,G.jsx)(a.A,{}):(0,G.jsx)(p.A,{variant:"caption",sx:{color:U.textMuted,fontWeight:600},children:"No more customers"})})]}):(0,G.jsx)(f.A,{ref:Q,onScroll:Ve,sx:{maxHeight:{xs:"calc(100vh - 220px)",md:"calc(100vh - 190px)"},"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:ee("#662582"),borderRadius:8,"&:hover":{backgroundColor:"#662582"}},"&::-webkit-scrollbar-track":{backgroundColor:U.surfaceAlt}},children:(0,G.jsxs)(v.A,{stickyHeader:!0,sx:{minWidth:{xs:720,md:960}},children:[(0,G.jsx)(j.A,{children:(0,G.jsxs)(b.A,{sx:{"& th":{backgroundColor:U.surfaceAlt,color:U.textSecondary,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(U.borderSubtle),py:{xs:1,md:1.25},px:{xs:1,md:2}}},children:[(0,G.jsx)(S.A,{children:"#"}),(0,G.jsx)(S.A,{children:"Customer"}),(0,G.jsx)(S.A,{children:"Contact"}),(0,G.jsx)(S.A,{children:"Address"}),(0,G.jsx)(S.A,{children:"Location"}),(0,G.jsx)(S.A,{align:"right",children:"Action"})]})}),(0,G.jsxs)(y.A,{children:[De&&(0,G.jsx)(q.r,{}),0!==(null===qe||void 0===qe?void 0:qe.length)||De?null===qe||void 0===qe?void 0:qe.map(((e,t)=>(0,G.jsxs)(b.A,{sx:{cursor:"pointer",transition:"background-color 0.15s","& td":{borderBottom:"1px solid ".concat(U.divider),py:{xs:1,md:1.5},px:{xs:1,md:2}},"&:hover":{backgroundColor:U.surfaceAlt}},children:[(0,G.jsx)(S.A,{children:(0,G.jsx)(p.A,{variant:"caption",sx:{fontWeight:700,color:U.textMuted},children:String(t+1+ae*se).padStart(2,"0")})}),(0,G.jsx)(S.A,{children:(0,G.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,G.jsx)(re,{color:"#662582",size:36,children:(0,G.jsx)(M.Azs,{size:18})}),(0,G.jsxs)(u.A,{children:[(0,G.jsx)(p.A,{variant:"subtitle2",sx:{fontWeight:700,color:U.textPrimary,whiteSpace:"nowrap"},children:e.firstname||"\u2014"}),(0,G.jsxs)(p.A,{variant:"caption",sx:{color:U.textSecondary},children:["ID #",e.customerid]})]})]})}),(0,G.jsx)(S.A,{children:(0,G.jsxs)(u.A,{children:[(0,G.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:.5,children:[(0,G.jsx)(M.EZw,{size:12,color:U.textMuted}),(0,G.jsx)(p.A,{variant:"subtitle2",sx:{fontWeight:700,color:U.textPrimary,whiteSpace:"nowrap"},children:e.contactno||"\u2014"})]}),e.email&&(0,G.jsx)(p.A,{variant:"caption",sx:{color:U.textSecondary},children:e.email})]})}),(0,G.jsx)(S.A,{sx:{maxWidth:280},children:(0,G.jsx)(A.A,{title:e.address||"",placement:"top",children:(0,G.jsx)(p.A,{variant:"caption",sx:{color:U.textSecondary,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.address||"\u2014"})})}),(0,G.jsx)(S.A,{children:e.suburb?(0,G.jsxs)(g.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:X("#10b981"),border:"1px solid ".concat(ee("#10b981")),color:"#10b981",fontSize:11,fontWeight:800},children:[(0,G.jsx)(M.gwi,{size:12})," ",e.suburb]}):(0,G.jsx)(p.A,{variant:"caption",sx:{color:U.textMuted},children:"\u2014"})}),(0,G.jsx)(S.A,{align:"right",children:(0,G.jsx)(A.A,{title:"Edit customer",placement:"top",children:(0,G.jsx)(m.A,{size:"small",onClick:()=>{ue(e),setTimeout((()=>ge(!0)),0)},sx:{bgcolor:_("#8b5cf6"),color:"#8b5cf6",border:"1px solid ".concat(ee("#8b5cf6")),"&:hover":{bgcolor:"#8b5cf6",color:"#fff"}},children:(0,G.jsx)(M.Yvo,{size:16})})})})]},e.customerid||"".concat(e.firstname,"-").concat(t)))):(0,G.jsx)(b.A,{children:(0,G.jsx)(S.A,{colSpan:6,sx:{py:6},children:(0,G.jsxs)(u.A,{alignItems:"center",spacing:1.5,children:[(0,G.jsx)(c.A,{sx:{width:64,height:64,bgcolor:_("#94a3b8"),color:U.textMuted},children:(0,G.jsx)(M.Itr,{size:28})}),(0,G.jsx)(p.A,{variant:"subtitle1",sx:{fontWeight:700,color:U.textPrimary},children:"No customers to show"}),(0,G.jsx)(p.A,{variant:"caption",sx:{color:U.textSecondary},children:We?"Try a different keyword.":"Pick a zone above to load the directory."})]})})}),0!==(null===qe||void 0===qe?void 0:qe.length)&&(0,G.jsx)(b.A,{children:(0,G.jsx)(S.A,{colSpan:6,sx:{borderBottom:"none"},children:(0,G.jsx)("div",{ref:ne,style:{height:40,textAlign:"center"},children:Fe||Oe?(0,G.jsx)(a.A,{}):(0,G.jsx)(p.A,{variant:"caption",sx:{color:U.textMuted,fontWeight:600},children:"No more customers"})})})})]})]})})}),(0,G.jsxs)(w.A,{open:pe,onClose:()=>ge(!1),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",maxWidth:"lg",fullWidth:!0,fullScreen:Y,PaperProps:{sx:{borderRadius:{xs:0,sm:3}}},children:[(0,G.jsx)(k.A,{id:"alert-dialog-title",sx:{background:"linear-gradient(135deg, #662582 0%, #9255AB 100%)",color:"#fff",py:2},children:(0,G.jsxs)(u.A,{direction:"row",alignItems:"center",spacing:1.5,children:[(0,G.jsx)(c.A,{sx:{width:36,height:36,bgcolor:"rgba(255,255,255,0.2)",color:"#fff"},children:(0,G.jsx)(s.wwX,{style:{fontSize:18}})}),(0,G.jsxs)(u.A,{children:[(0,G.jsx)(p.A,{sx:{fontSize:11,fontWeight:700,opacity:.85,letterSpacing:.6,textTransform:"uppercase",lineHeight:1},children:"Customer"}),(0,G.jsxs)(p.A,{sx:{fontWeight:800,fontSize:{xs:"1.05rem",sm:"1.2rem"},lineHeight:1.2,mt:.25},children:["Edit ",(null===xe||void 0===xe?void 0:xe.firstname)||"Customer"]})]})]})}),(0,G.jsx)(C.A,{children:(0,G.jsxs)(x.Ay,{container:!0,spacing:2,sx:{mt:2},children:[(0,G.jsxs)(x.Ay,{item:!0,xs:6,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Customer Name"}),(0,G.jsx)(P.A,{variant:"outlined",fullWidth:!0,defaultValue:null===xe||void 0===xe?void 0:xe.firstname,onChange:e=>{ue((0,o.A)((0,o.A)({},xe),{},{firstname:e.target.value}))}})]}),(0,G.jsxs)(x.Ay,{item:!0,xs:6,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Contact Number"}),(0,G.jsxs)(u.A,{direction:"row",spacing:1,children:[(0,G.jsx)(P.A,{readonly:!0,variant:"outlined",value:"+91",sx:{width:60}}),(0,G.jsx)(P.A,{variant:"outlined",fullWidth:!0,type:"text",value:(null===xe||void 0===xe?void 0:xe.contactno)||"",inputProps:{maxLength:10,inputMode:"numeric",pattern:"[0-9]*"},onChange:e=>{const t=e.target.value.replace(/\D/g,"");ue((e=>(0,o.A)((0,o.A)({},e),{},{contactno:t})))}})]})]}),(0,G.jsxs)(x.Ay,{item:!0,xs:12,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Address"}),(0,G.jsx)(W.A,{id:"google-map-demo",sx:{},fullWidth:!0,getOptionLabel:e=>"string"===typeof e?e:(null===e||void 0===e?void 0:e.description)||"",filterOptions:e=>e,options:Le,autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,value:null===xe||void 0===xe?void 0:xe.address,noOptionsText:"No locations",onChange:(e,t)=>{Ee(t?[t,...Le]:Le),Ie(t),console.log("newValue",t||""),me(null===t||void 0===t?void 0:t.description),ue((0,o.A)((0,o.A)({},xe),{},{address:null===t||void 0===t?void 0:t.description}))},onInputChange:(e,t)=>{Ne(t)},renderInput:e=>(0,G.jsx)(P.A,(0,o.A)((0,o.A)({},e),{},{fullWidth:!0})),renderOption:(e,t)=>{const r=t.structured_formatting.main_text_matched_substrings||[],i=N()(t.structured_formatting.main_text,r.map((e=>[e.offset,e.offset+e.length])));return(0,G.jsx)("li",(0,o.A)((0,o.A)({},e),{},{children:(0,G.jsxs)(x.Ay,{container:!0,alignItems:"center",children:[(0,G.jsx)(x.Ay,{item:!0,sx:{display:"flex",width:44},children:(0,G.jsx)(I.A,{sx:{color:"text.secondary"}})}),(0,G.jsxs)(x.Ay,{item:!0,sx:{width:"calc(100% - 44px)",wordWrap:"break-word"},children:[null===i||void 0===i?void 0:i.map(((e,t)=>(0,G.jsx)(g.A,{component:"span",sx:{fontWeight:e.highlight?"bold":"regular"},children:e.text},t))),(0,G.jsx)(p.A,{variant:"body2",color:"text.secondary",children:null===t||void 0===t?void 0:t.structured_formatting.secondary_text})]})]})}))}})]}),(0,G.jsxs)(x.Ay,{item:!0,xs:6,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Location"}),(0,G.jsx)(P.A,{variant:"outlined",fullWidth:!0,value:null===xe||void 0===xe?void 0:xe.suburb,onChange:e=>{const t=e.target.value;ue((e=>(0,o.A)((0,o.A)({},e),{},{suburb:t})))}})]}),(0,G.jsxs)(x.Ay,{item:!0,xs:6,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"City"}),(0,G.jsx)(P.A,{variant:"outlined",fullWidth:!0,value:xe.city||je||"",onChange:e=>{const t=e.target.value;ue((e=>(0,o.A)((0,o.A)({},e),{},{city:t})))}})]}),(0,G.jsxs)(x.Ay,{item:!0,xs:6,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"State"}),(0,G.jsx)(P.A,{variant:"outlined",fullWidth:!0,value:xe.state||we||"",onChange:e=>{const t=e.target.value;ue((e=>(0,o.A)((0,o.A)({},e),{},{state:t})))}})]}),(0,G.jsxs)(x.Ay,{item:!0,xs:6,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Postcode"}),(0,G.jsx)(P.A,{variant:"outlined",fullWidth:!0,value:""==Se?xe.postcode:Se,onChange:e=>{const t=e.target.value;ue((e=>(0,o.A)((0,o.A)({},e),{},{postcode:t})))}})]}),(0,G.jsxs)(x.Ay,{item:!0,xs:12,children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Landmark"}),(0,G.jsx)(P.A,{variant:"outlined",fullWidth:!0,defaultValue:xe.landmark,onChange:e=>{ue((0,o.A)((0,o.A)({},xe),{},{landmark:e.target.value}))}})]}),(0,G.jsxs)(x.Ay,{item:!0,xs:6,sx:{cursor:"not-allowed"},children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Latitude"}),(0,G.jsx)(P.A,{variant:"outlined",fullWidth:!0,value:fe.lat,sx:{cursor:"not-allowed"}})]}),(0,G.jsxs)(x.Ay,{item:!0,xs:6,sx:{cursor:"not-allowed"},children:[(0,G.jsx)(p.A,{sx:{mb:1},children:"Longitude"}),(0,G.jsx)(P.A,{readonly:!0,variant:"outlined",fullWidth:!0,value:fe.lng})]})]})}),(0,G.jsxs)(R.A,{sx:{mr:2,mb:2},children:[(0,G.jsx)(z.A,{onClick:()=>ge(!1),variant:"contained",color:"error",sx:{mr:2},children:"Close"}),(0,G.jsx)(z.A,{onClick:()=>{(async()=>{if(console.log("selectedCustomer",xe),xe.firstname)if(xe.contactno)if(xe.address)if(xe.suburb)if(xe.city)if(xe.state)if(xe.postcode)if(xe.landmark)if(xe.latitude)if(xe.longitude)try{const e=await n.A.put("".concat("https://jupiter.nearle.app/live/api/v1","/customers/update"),{customerid:xe.customerid,configid:1,firstname:xe.firstname,applocationid:xe.applocationid,profileimage:"",dialcode:"+91",contactno:xe.contactno,devicetype:"",deviceid:"",customertoken:"123",address:xe.address,suburb:Ce,city:je,state:we,postcode:Se,landmark:xe.landmark,doorno:xe.doorno,latitude:xe.latitude.toString(),longitude:xe.longitude.toString()});console.log("postUpdateResponse",e),e.data.status&&((0,Z.k)(e.data.message,"success",1500),ge(!1),Ze())}catch(e){console.log("postUpdate error",e)}else(0,Z.k)("Enter Longitude","warning",1500);else(0,Z.k)("Enter Latitude","warning",1500);else(0,Z.k)("Enter Landmark","warning",1500);else(0,Z.k)("Enter PostCode","warning",1500);else(0,Z.k)("Enter State","warning",1500);else(0,Z.k)("Enter City ","warning",1500);else(0,Z.k)("Enter Suburb","warning",1500);else(0,Z.k)("Enter Valid Address","warning",1500);else(0,Z.k)("Enter Contact Number ","warning",1500);else(0,Z.k)("Enter Door NO","warning",1500)})()},variant:"contained",autoFocus:!0,children:"Update"})]})]})]})}},23787:(e,t,r)=>{"use strict";r.d(t,{FG:()=>u,nV:()=>h,pY:()=>p,pg:()=>x});var o=r(22555),i=r(53986),n=r(71392),s=r(55235),a=r(48738),l=r(2866),c=r(65908);const d=["children","scroll","onScroll","sx"],h=e=>{let{children:t,scroll:r=!1,onScroll:s,sx:a}=e,l=(0,i.A)(e,d);return(0,c.jsx)(n.A,(0,o.A)((0,o.A)({spacing:1.25,onScroll:s,sx:(0,o.A)((0,o.A)({p:1.5},r&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),a)},l),{},{children:t}))},x=e=>{let{accent:t="#662582",header:r,footer:i,selected:n=!1,onClick:l,children:d,sx:h}=e;return(0,c.jsxs)(s.A,{elevation:0,onClick:l,sx:(0,o.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:n?t:"#e2e8f0",background:n?"".concat(t,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},h),children:[(0,c.jsx)(a.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:t}}),(0,c.jsxs)(a.A,{sx:{p:1.5,pl:2},children:[r,d,i]})]})},u=e=>{let{children:t,columns:r=2,sx:i}=e;return(0,c.jsx)(a.A,{sx:(0,o.A)({display:"grid",gridTemplateColumns:"repeat(".concat(r,", minmax(0, 1fr))"),gap:1,mt:1.25},i),children:t})},p=e=>{let{label:t,value:r,children:o,full:i=!1,align:n="left"}=e;return(0,c.jsxs)(a.A,{sx:{gridColumn:i?"1 / -1":"auto",minWidth:0,textAlign:n},children:[(0,c.jsx)(l.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:t}),(0,c.jsx)(a.A,{sx:{mt:.25,minWidth:0},children:void 0!==o?o:(0,c.jsx)(l.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==r&&void 0!==r?r:"\u2014"})})]})}},27001:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var o=r(71392),i=r(48738),n=r(2866),s=r(65908);function a(e){let{title:t,subtitle:r,live:a=!1,action:l}=e;return(0,s.jsxs)(o.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,s.jsxs)(i.A,{sx:{minWidth:0},children:[(0,s.jsx)(n.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:t}),r&&(0,s.jsxs)(o.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[a&&(0,s.jsx)(i.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,s.jsx)(n.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:r})]})]}),l&&(0,s.jsx)(i.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:l})]})}},36803:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var o=r(84007),i=r(75953),n=r(71392),s=r(48738),a=r(2866),l=r(91834),c=r(97043),d=r(65908);function h(e){let{title:t,value:r,icon:h,color:x="#662582",caption:u,loading:p=!1}=e;return(0,d.jsx)(o.A,{sx:{height:"100%"},children:(0,d.jsx)(i.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,d.jsxs)(n.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,d.jsxs)(s.A,{sx:{minWidth:0,flex:1},children:[(0,d.jsx)(a.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t}),p?(0,d.jsx)(l.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,d.jsx)(a.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r}),u&&(0,d.jsx)(a.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:u})]}),h&&(0,d.jsx)(c.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(x,"14"),color:x,flexShrink:0},children:h})]})})})}},41033:(e,t,r)=>{"use strict";r.d(t,{q:()=>l});var o=r(22555),i=r(48149),n=r(59949),s=class extends i.${constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions((0,o.A)((0,o.A)({},e),{},{behavior:(0,n.PL)()}),t)}getOptimisticResult(e){return e.behavior=(0,n.PL)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch((0,o.A)((0,o.A)({},e),{},{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(e){return this.fetch((0,o.A)((0,o.A)({},e),{},{meta:{fetchMore:{direction:"backward"}}}))}createResult(e,t){var r,i,s,a;const{state:l}=e,c=super.createResult(e,t),{isFetching:d,isRefetching:h}=c,x=d&&"forward"===(null===(r=l.fetchMeta)||void 0===r||null===(i=r.fetchMore)||void 0===i?void 0:i.direction),u=d&&"backward"===(null===(s=l.fetchMeta)||void 0===s||null===(a=s.fetchMore)||void 0===a?void 0:a.direction);return(0,o.A)((0,o.A)({},c),{},{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,n.rB)(t,l.data),hasPreviousPage:(0,n.RQ)(t,l.data),isFetchingNextPage:x,isFetchingPreviousPage:u,isRefetching:h&&!x&&!u})}},a=r(59363);function l(e,t){return(0,a.t)(e,s,t)}},56311:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var o=r(22555),i=r(85672),n=r(29776),s=r(43318),a=r(23440),l=r(11969),c=r(80795),d=r(51808),h=r(93811),x=r(65908);const u=e=>{let{value:t,onChange:r,onDebouncedChange:u,debounceTime:p=500,placeholder:g="Search (ctrl+k)",sx:A}=e;const m=(0,i.useRef)(null),[f]=(0,h.d7)(t,p);return(0,i.useEffect)((()=>{u&&u(f)}),[f,u]),(0,i.useEffect)((()=>{const e=e=>{var t;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(t=m.current)||void 0===t||t.focus());"Escape"===e.key&&document.activeElement===m.current&&m.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,x.jsx)(n.A,{sx:(0,o.A)({},A),inputRef:m,placeholder:g,autoComplete:"off",value:t,fullWidth:!0,onChange:e=>r(e.target.value),startAdornment:(0,x.jsx)(s.A,{position:"start",sx:{mr:-.5},children:(0,x.jsx)(c.A,{})}),endAdornment:(0,x.jsx)(a.A,{title:"Clear",children:(0,x.jsx)(l.A,{sx:{visibility:t?"visible":"hidden"},onClick:()=>r(""),children:(0,x.jsx)(d.A,{})})})})}},58355:(e,t,r)=>{"use strict";var o=r(39744);t.A=void 0;var i=o(r(24956)),n=r(65908);t.A=(0,i.default)((0,n.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"LocationOn")},58691:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(85672);var o=r(48738),i=r(12010),n=r(62217),s=r(65908);function a(e){let{size:t=70,imgSize:r=40,alt:a="loader"}=e;return(0,s.jsxs)(o.A,{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",children:[(0,s.jsx)(i.A,{size:t}),(0,s.jsx)(o.A,{position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",sx:{width:r,height:r},children:(0,s.jsx)("img",{src:n,alt:a,style:{width:"100%",height:"100%",borderRadius:"50%",objectFit:"contain"}})})]})}},59212:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var o=r(22555),i=r(85672),n=r(71392),s=r(97043),a=r(17488),l=r(86270),c=r(66157),d=r(48952),h=r(65908);const x=(0,i.forwardRef)(((e,t)=>{let{setAppId:r,setLocoName:x,setPage:u,sx:p,textfeildSx:g,textfieldSx:A,pill:m=!1,accentColor:f="#6366f1",icon:v,placeholder:j="Select Zone",paperComponent:b}=e;const[S,y]=(0,i.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,i.useEffect)((()=>{0===S.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const t=await c.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(t.data.status){const e=[...t.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),y(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[S.length]);const w=e=>"".concat(f).concat(e),k=w("26"),C=w("18"),P=m?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(k)},"&.Mui-focused fieldset":{borderColor:f,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},W=m&&(0,h.jsx)(n.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,h.jsx)(s.A,{sx:{width:24,height:24,bgcolor:C,color:f,transition:"background-color 0.15s, color 0.15s"},children:v||(0,h.jsx)(d.HPi,{size:14})})});return(0,h.jsx)(a.A,{id:"location-autocomplete",options:S||[],getOptionLabel:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.locationname)&&void 0!==t?t:""},PaperComponent:b,sx:(0,o.A)({},p),onChange:(e,t,o)=>{"clear"===o?(null===r||void 0===r||r(0),null===x||void 0===x||x(""),null===u||void 0===u||u(0)):t&&(null===r||void 0===r||r(t.applocationid),null===x||void 0===x||x(t.locationname),null===u||void 0===u||u(0))},renderInput:e=>m?(0,h.jsx)(l.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,placeholder:j,InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:W}),sx:(0,o.A)((0,o.A)({},P),A||g||{})})):(0,h.jsx)(l.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,label:"Select Zones",sx:(0,o.A)({},A||g||{})}))})}))},62217:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAAA+CAYAAABzwahEAAAPnUlEQVR4AdVae3AU9R3/7d4jdyGQQKAhECBAJBSmEAtFSQUjqPgAHGlhRm0lDkWY6Tg+O9qiErR26h8WR8ZWqTMN1ur4qMpDrTyjtDwDJloeCYiBvAgkaZ53l7vb3X4/v9vfZS/Zu9uFwLSfmb3d293f7u/z+z5/399K7CphdW5JrupgBZosZ0ialmu8pklSjUOTamRJbvvjqTUV7CpAYlcIj+SWZHQ55WJZlm7UNK2IXpRhpZ3GWJskSWXUZrPD4Sp77eSva9gVwIATXz35+SJNYWs1phWxAYDEpDKVaZv+fOrZUjaAGDDiK695rpgetpYOc82upw72sMycdJbz/SzmHeKl/ynRay31bbS1s7rjTczXGYj3ihrShnUDNQCXTXzlNS8UyExdbybhSdeNYwXz81nBzflE2pKms7oT51ntiSa276NKVn3wrNktNcGQelNpTUkNuwxcFvFV+S88rKnKy8ZzkOz84uvYvOJZ/PhyAE3Y/+HXbN+HFVwjjJAlR8lr1WueY9wt2MclEYfj8rnkj+nwRnHOLuGWhnbmpfuMKh/3Xn0Atm74IuY8OcGPFYk99kbVM98xm7BFnDyttHLyb3MlRdsjSWycOA+VLv79YpY5Ork6V5efY59s/JJVHznH/+dMymLz7v0Rm71oWtK2GIDSJ7ew6kMxJlCjytI8u+Qddm4+93bPBIfqiiG96KG5RPouljokuZT3b/2avf7EB6ylsZ1dM2MsG5OfxU7RAFSWVbMAObUphRMTtsc7CpdMh6c3kqe8gN117Yh5W4627GljFmGZ+C/ynx/flzSkDPW2Aqj2+lV/Y5mj0tljG3/GFhQXspkLpnBJVx85yyq/OGWJPAANgzkd2/utOMXJzxp965vlF3YFrPRHZtYgSZq6vi/p2TT6VrF+1Vt8/yiRhnoLiIHAftc7h0kDzlp6HgYcfTAgVwmEPmIWzTeZxPEQaeWkkhJJk1eJk8vWLGBz75nBrAIqfmDrN2zhqjlsetGkftddKU6WQ2qPe6AZVuwdGPP9kWw4+ZWKnVXiVO6M4UXtR1rKDiZrm4g4J70871cTnMzzd3ESNn3bgz9mdgC7hmoufeKWuB4/c1QGV3nYfP7Msfy/FYB8rM1LC6YNm72lonXv+UTtEqr60qVLJTcbvEv8h20tfOhGZgeQtpBiZnZ6wnuhEUDFnlPMDhaSMCbNilohc0kp61mEW1y1j0u8hLR78Ff5xX3t2i5AHLjegvqOIdtHXK/8oorZRfGLiw3aJM1dkVeynA5kCsGm98cjLhNxh4O5nxEnoOJW4rQRkDRUF3adTNoAEprRRB7tfJ09zA7Qt3mGCCMz+dmioiLKcSRTjvGISw/kPbNcSDtzdLotDy6A+AyYObR4KCjK53ur3t2I+ct7s0b0Pfds4U04RuLV914z4rjJ4ZSc94sTSBrsShvYv62S76frZKwAYQ2orWpidoEExyh1tzPl6SlTpjhJ6v3u7Utcgm0vHf/wePKUc8TJS5E21LWu6gKbRBmalXwcgHp70yISg8QR3oTWWAWk3gtpbp6/cCiLRK8Y9k7jHzgCGh3n8om/ibpueHKr0vZT5lVZFvHItVWRaALVQ4pqxcYfL3opeoxcvlr3D4BVc4HU4eFFeMt0ZsHJvUzcFKPkY4gvW7YMGiC7ZfcicW723dalXUsS3lSyNeZcBUmsmaS/5p0Vlp4BVccADsvOYP6uAM/yKsqq7PkJmv8L4k7mmEu7DcRNIfIqkedu3qjq0pkzZ/DfITE5quZjp2Qxu0Dnha1iX1fdxD55fW/CNjANYN49s7jKI5O788E5kfY0oHZQcEuvT5GY8wbaye+//36MqsfY+JEjR6QlY1cX0CHvNdQmZ/JIZhUtjW3RzkNqsG90Hti2cS8fgGSoqz7Pp6loi/uH6wNnJ7zBNA0ZYvrdY1aMZ6hdGHQ9RuL473KmDBUnUB+zAyE1dP6me2fxpMUYljat3Zb0GfvJodWRRz9Aic/utw+Ts/NG1L/L0qQrCoRggVTXUGRPMULmNo44h0CflZXlcGiuXLPGdoDOo7Pw0EYpC5W/c9Wcfm3EoAGiSAF4h0QiQmtDmyUHKZAzZSSrPam/W5MgzJgUlo+CrgFSU1OT5GTOseKi7UytsT2GiJlqW1X5aB+IrJfCYXNDO7MDYwh1yA4kYvKMGTNkkcxw4ghjdJLfQ9ntJRcgWxqsFUCsqDzg1e0U5FtsEvfGVIQ4J9nv90fNXEhcgmPLyEAh49KJW4WZlzezYSE172BvjDbZhc5JPn78eH/nlpubK7e1tcWQtjtRaDXpnLHaYkRflTdbSEhN65V4a4Plclo/IC/TDyV9ixCnNJWFw2EpPT2dBcKBBtHA3+FndmCmjsueuJnIf8/0/mQq79UlDkdpV+LGOnxQ7aljOmFwBTjxY8eOSXV1day9vV1SlFCHaFB3wroT8sdZ+kE4QuXFDMkSG7+ucZmUxdmdqrbU9WpIINQuiPO5CM5x4pTVYMdTucbgt8ejjeutj3K8Tg0jaU2aMY4nJWYQKm+mLT7d7kUW2GrDwRmFFpD8Xax3xSUmZcUfPhL7L2yvp9XJTv7ijgAv4ltBPK8rHNRCPf00QzKVRzs8p7Y6YRktCqy99foMrWN73bsnWJ/ZmTGbUVlkADRFDUarlIYKZkKYeWUjUYSm+0sWmraFxHdTaTkRhtnI2bHwKBBUA3iwSv6LcxPnjV4dI6J5vV61W+04JM5X7LBG3Mwr9820oPLxZln+zsQpac6kkdG5QDLs+7AyetwRat0FTvqsLEpeJDBaTU2NQocqBXl1f9PnH4uGmN5ZcSpmqu41KSUvffwWy4UJIzCIxlQ2bj/ILxnX1mq6Tx0EJwrVKlVjNFF8NKasbMSIEeqgQYOUWl91W0gNlIvGu0oPJH2h31Ti/VNeqP8dJrm6KQnDYIp5erKwZpR2j9JTfrRldy1x4mZMCYwWk7mxiPjVixcvqt3d3WpKSopS6z/9J/GA3ZsOJZW6mRp640h2Pk1bsWhoBzAToLo8fhES0t4fo+YXoblhWZbDtOcaLa5FbZziGyc/ZMgQpaenJ7yz4b1DqhpuxDV492RSNxuYeF4cWF6yiNmB8OyJ1B3SFlFI1ZSGj2o3grjS2dnJSescYyswa9eu5cQ7OjpwE0YodLGn/jVxHVJPFNfNc21PQiKiSJEIxgGFZ49XfETfthk+HGiO9B08wsOHD8deNd4fJa7rPi6G09LSeINPm97cHFT9R3gHSOqlT25m8WCWXCRzYvMpqUmkFYBxQOHZYedmNXdj36Cp6LvOJdTc3KzS4oKqC5cjSlz3dvhRurq6Qh6PJ0SDETrefvQP4h54y76fYwhg+ffRjfeRCi/kkrx+0Q9oVSRx2SpRbI8S7+iVuAiP+KrCiK0bvozx5Idat68KBoMhCmNBcKFQrYC4KDQC0SqrfhIS56oeCASC5ORCh5o/Pz7aO279CE/Oo7hvG70EBYrCPrX26CzM+uoxh0hnUWYyJd4VmSihWvvJxkheX2uY1e0qPRij4q09TW98/Z8D59B3CmNBUnMFoVpMTgT6LigI44eqB2kwMNxBchJvk8ofFTdtempLTNi4XCCdjWcWqLwgrH3w0g4eCaBVq1/6Kb+GPrz3u+3Re31K95cfnHv1dfSZPDn6HoKq06qvqvVZPey3Po6RKSsr49cwVWWRwXE2+M7tyxs87VZZktNwsZJSWVRhJxTksMsFPgyY85MZbGrhBJqDe5kzxRGd20MjOlq6qNqawSOBWDcHaQhAQCG7Pty66+l29WKz0+n0k8ZCVQITJ04M7dy5U1m3bl0M8XjVFgyIizYP2ckgUpnBdJw6OeOHuYWZC191ys6o8WJtepHNNXMrgDeHE0MuALLG9Bc2bVTvsBo+v6/ls1+ebDv8Ham4j8IxZmPdtMEzhljvPCSKeMT5wmF2dra7sbExlY4H0QZJe4n82L7ksWRT/OJdl1yVtQqELHhvoyMjSZ//V4T0WbfbHSCnxklTxdhPxdMgaXjY6NSMBPtBX0ODikPqbto4eXpwKj0Y5MfMHHbzI6mOtJhADOkXLikY8AGA9JFA7S49FDMZCij+ih31bz3V2FPbqpOGlLH5aION94vfAnELi3qtHddBHJ7Hy3Sp0+YhO3Ivzl65Yrgn+wFjO3j82UumDcgAxCMMNPnPbdhc98a7LpcLThikYdOQNrdtcmhhKrD0U3GBZBVVieKfg5wdJJ+Smprq9fl8kH4qvdATCoVc+ekFo28YvvgVh0H1BWACWGLGBzpjLK7KoGSEGgC2Pl8wckDK/247+MrR1t2YL8N+IVmfThh7YdcKS/Cda1LiqFHRJufk5LioLuch8h6dvJfIpxB5aITzjtE/v32kZ/wDTpMBAJC+YkkKWmD8ktlHCQqKmrUnL7BWIh3vs23YcmPgu798Wv/Xz0CM3h2mdwd0wnwjn9QzatSoEJXKw1pEZeMTYxagq73w9FB7Suw8XlVVvaRi+A/yuO64bfR9t2eljL09xeEtYAOAQNhfcabrm9J/XtyGPIKn1Lp6B3X19tN6gJ/m29ymSUgKUlMzh2aEncUDmdRe1tXeaPce/dilbxgAOT99evbEQdOuHebJvsHrSC2gpec0Ky/RmNrlV3wVneHWrw427/hHc7C+k/IJEFZ1KSOjDFDIEtLmSRb1LUR94/dZeY+tVROoPDaQo1TQTS9PoSlfik4cA0B9c7mpc1z6GAByghISoZkjivI8MuVRjqEjU52DRuossXir+UJdFHcCXfW+b09VtR9tMnReoefxNJqeCbsF6R7KygL03B56N8/OWK/3tkTaNnHWa/M8zrNIru8iOik0GeADQGHFTabh0q85qL/8Kwu0xSBgTwPB6BiLGMZn83SZzmuQMAhTWz5voEeGoNcgTtWUHiqW8OO8vLww+R5lz5494UT2PBDEY9rSQqOTHAmP91TFdNGChJsyPTdlelztqcMu6i+XvNiIkBQRHlcPHGv6sUbHIKzo56J1AZBkvR5cSFhUVBR2CbD69bIpysvLecdoAHqINOytm0ijJt9J3r+TVBLHXfrGkwsiJRIMLF1i76MBEue7qE0XqTPadYiNnFen3j6Ad5HGYSDwTcslkQYGamVULLrLpH7y6dOnuY1TGctFFR0hcYfhvujinQ6eaNBgYc6sEHm+0WAKqatEWJkwYYI6depUjYhbtuWrBW775GGd1FEXFQA8FFsR8+HRMdFBKocgPrTvRkgnh4l70ijPxtwAzpLnCLpDvSztvFqQ9C8PuAPEINDeTdpgjADYjOFQhESn3s6hP+OKr9dfSUhCaiIcYjNIMur52f850f95/BfoYlARf1CQvwAAAABJRU5ErkJggg=="},68320:(e,t,r)=>{"use strict";r.d(t,{I:()=>n});var o=r(48149),i=r(59363);function n(e,t){return(0,i.t)(e,o.$,t)}},75153:function(e){e.exports=(()=>{return e={705:e=>{e.exports=function(e,t){const r=[];return 0===t.length?r.push({text:e,highlight:!1}):t[0][0]>0&&r.push({text:e.slice(0,t[0][0]),highlight:!1}),t.forEach(((o,i)=>{const n=o[0],s=o[1];r.push({text:e.slice(n,s),highlight:!0}),i===t.length-1?s{"use strict";r.d(t,{r:()=>l});var o=r(50755),i=r(1596),n=r(91834),s=r(71392),a=r(65908);const l=e=>{let{rowsPerPage:t=5,col:r=1}=e;return(0,a.jsx)(a.Fragment,{children:Array.from(new Array(t)).map(((e,t)=>(0,a.jsxs)(o.A,{children:[(0,a.jsx)(i.A,{children:(0,a.jsx)(n.A,{variant:"circular",width:24,height:24})}),(0,a.jsx)(i.A,{children:(0,a.jsx)(n.A,{variant:"text",width:30})}),Array.from({length:r}).map(((e,t)=>(0,a.jsx)(i.A,{children:(0,a.jsxs)(s.A,{spacing:.5,children:[(0,a.jsx)(n.A,{variant:"text",width:100}),(0,a.jsx)(n.A,{variant:"text",width:80})]})},t))),(0,a.jsx)(i.A,{children:(0,a.jsx)(n.A,{variant:"text",width:150})}),(0,a.jsx)(i.A,{children:(0,a.jsx)(n.A,{variant:"rounded",width:60,height:24})}),(0,a.jsx)(i.A,{align:"center",children:(0,a.jsxs)(s.A,{direction:"row",spacing:1,justifyContent:"flex-end",children:[(0,a.jsx)(n.A,{variant:"circular",width:28,height:28}),(0,a.jsx)(n.A,{variant:"circular",width:28,height:28})]})})]},t)))})}}}]); \ No newline at end of file diff --git a/build/static/js/9552.b43795cd.chunk.js b/build/static/js/9552.b43795cd.chunk.js new file mode 100644 index 0000000..533bdcb --- /dev/null +++ b/build/static/js/9552.b43795cd.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9552],{1596:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var n=r(84849),a=r(27326),o=r(85672),i=r(72574),s=r(25234),c=r(10247),l=r(16775),d=r(19728),u=r(78292),h=r(38009),p=r(60308),f=r(37300),m=r(10644);function v(e){return(0,m.Ay)("MuiTableCell",e)}const A=(0,f.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var g=r(65908);const y=["align","className","component","padding","scope","size","sortDirection","variant"],b=(0,p.Ay)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,l.A)(r.size))],"normal"!==r.padding&&t["padding".concat((0,l.A)(r.padding))],"inherit"!==r.align&&t["align".concat((0,l.A)(r.align))],r.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:r}=e;return(0,a.A)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n ".concat("light"===t.palette.mode?(0,c.a)((0,c.X4)(t.palette.divider,1),.88):(0,c.e$)((0,c.X4)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===r.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===r.variant&&{color:(t.vars||t).palette.text.primary},"footer"===r.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===r.size&&{padding:"6px 16px",["&.".concat(A.paddingCheckbox)]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===r.padding&&{width:48,padding:"0 0 0 4px"},"none"===r.padding&&{padding:0},"left"===r.align&&{textAlign:"left"},"center"===r.align&&{textAlign:"center"},"right"===r.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===r.align&&{textAlign:"justify"},r.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),x=o.forwardRef((function(e,t){const r=(0,h.b)({props:e,name:"MuiTableCell"}),{align:c="inherit",className:p,component:f,padding:m,scope:A,size:x,sortDirection:w,variant:S}=r,k=(0,n.A)(r,y),M=o.useContext(d.A),C=o.useContext(u.A),$=C&&"head"===C.variant;let D;D=f||($?"th":"td");let R=A;"td"===D?R=void 0:!R&&$&&(R="col");const z=S||C&&C.variant,T=(0,a.A)({},r,{align:c,component:D,padding:m||(M&&M.padding?M.padding:"normal"),size:x||(M&&M.size?M.size:"medium"),sortDirection:w,stickyHeader:"head"===z&&M&&M.stickyHeader,variant:z}),H=(e=>{const{classes:t,variant:r,align:n,padding:a,size:o,stickyHeader:i}=e,c={root:["root",r,i&&"stickyHeader","inherit"!==n&&"align".concat((0,l.A)(n)),"normal"!==a&&"padding".concat((0,l.A)(a)),"size".concat((0,l.A)(o))]};return(0,s.A)(c,v,t)})(T);let N=null;return w&&(N="asc"===w?"ascending":"descending"),(0,g.jsx)(b,(0,a.A)({as:D,ref:t,className:(0,i.A)(H.root,p),"aria-sort":N,scope:R,ownerState:T},k))}))},5670:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(84849),a=r(27326),o=r(85672),i=r(72574),s=r(25234),c=r(60308),l=r(38009),d=r(37300),u=r(10644);function h(e){return(0,u.Ay)("MuiDialogContent",e)}(0,d.A)("MuiDialogContent",["root","dividers"]);var p=r(30903),f=r(65908);const m=["className","dividers"],v=(0,c.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})((e=>{let{theme:t,ownerState:r}=e;return(0,a.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},r.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:{[".".concat(p.A.root," + &")]:{paddingTop:0}})})),A=o.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiDialogContent"}),{className:o,dividers:c=!1}=r,d=(0,n.A)(r,m),u=(0,a.A)({},r,{dividers:c}),p=(e=>{const{classes:t,dividers:r}=e,n={root:["root",r&&"dividers"]};return(0,s.A)(n,h,t)})(u);return(0,f.jsx)(v,(0,a.A)({className:(0,i.A)(p.root,o),ownerState:u,ref:t},d))}))},6026:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(85672).createContext({})},7051:(e,t,r)=>{"use strict";r.d(t,{A:()=>M});var n=r(84849),a=r(27326),o=r(85672),i=r(72574),s=r(25234),c=r(16775),l=r(60308),d=r(38009),u=r(18233),h=r(45688),p=r(2866),f=r(37300),m=r(10644);function v(e){return(0,m.Ay)("MuiLink",e)}const A=(0,f.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var g=r(27909),y=r(10247);const b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},x=e=>{let{theme:t,ownerState:r}=e;const n=(e=>b[e]||e)(r.color),a=(0,g.Yn)(t,"palette.".concat(n),!1)||r.color,o=(0,g.Yn)(t,"palette.".concat(n,"Channel"));return"vars"in t&&o?"rgba(".concat(o," / 0.4)"):(0,y.X4)(a,.4)};var w=r(65908);const S=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],k=(0,l.Ay)(p.A,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t["underline".concat((0,c.A)(r.underline))],"button"===r.component&&t.button]}})((e=>{let{theme:t,ownerState:r}=e;return(0,a.A)({},"none"===r.underline&&{textDecoration:"none"},"hover"===r.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===r.underline&&(0,a.A)({textDecoration:"underline"},"inherit"!==r.color&&{textDecorationColor:x({theme:t,ownerState:r})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===r.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(A.focusVisible)]:{outline:"auto"}})})),M=o.forwardRef((function(e,t){const r=(0,d.b)({props:e,name:"MuiLink"}),{className:l,color:p="primary",component:f="a",onBlur:m,onFocus:A,TypographyClasses:g,underline:y="always",variant:x="inherit",sx:M}=r,C=(0,n.A)(r,S),{isFocusVisibleRef:$,onBlur:D,onFocus:R,ref:z}=(0,u.A)(),[T,H]=o.useState(!1),N=(0,h.A)(t,z),W=(0,a.A)({},r,{color:p,component:f,focusVisible:T,underline:y,variant:x}),O=(e=>{const{classes:t,component:r,focusVisible:n,underline:a}=e,o={root:["root","underline".concat((0,c.A)(a)),"button"===r&&"button",n&&"focusVisible"]};return(0,s.A)(o,v,t)})(W);return(0,w.jsx)(k,(0,a.A)({color:p,className:(0,i.A)(O.root,l),classes:g,component:f,onBlur:e=>{D(e),!1===$.current&&H(!1),m&&m(e)},onFocus:e=>{R(e),!0===$.current&&H(!0),A&&A(e)},ref:N,ownerState:W,variant:x,sx:[...Object.keys(b).includes(p)?[]:[{color:p}],...Array.isArray(M)?M:[M]]},C))}))},12010:(e,t,r)=>{"use strict";r.d(t,{A:()=>H});var n=r(57528),a=r(84849),o=r(27326),i=r(85672),s=r(72574),c=r(25234),l=r(8913),d=r(16775),u=r(38009),h=r(60308),p=r(37300),f=r(10644);function m(e){return(0,f.Ay)("MuiCircularProgress",e)}(0,p.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var v,A,g,y,b=r(65908);const x=["className","color","disableShrink","size","style","thickness","value","variant"];let w,S,k,M;const C=44,$=(0,l.i7)(w||(w=v||(v=(0,n.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),D=(0,l.i7)(S||(S=A||(A=(0,n.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),R=(0,h.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["color".concat((0,d.A)(r.color))]]}})((e=>{let{ownerState:t,theme:r}=e;return(0,o.A)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,l.AH)(k||(k=g||(g=(0,n.A)(["\n animation: "," 1.4s linear infinite;\n "]))),$)})),z=(0,h.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),T=(0,h.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t["circle".concat((0,d.A)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:r}=e;return(0,o.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,l.AH)(M||(M=y||(y=(0,n.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),D)})),H=i.forwardRef((function(e,t){const r=(0,u.b)({props:e,name:"MuiCircularProgress"}),{className:n,color:i="primary",disableShrink:l=!1,size:h=40,style:p,thickness:f=3.6,value:v=0,variant:A="indeterminate"}=r,g=(0,a.A)(r,x),y=(0,o.A)({},r,{color:i,disableShrink:l,size:h,thickness:f,value:v,variant:A}),w=(e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,o={root:["root",r,"color".concat((0,d.A)(n))],svg:["svg"],circle:["circle","circle".concat((0,d.A)(r)),a&&"circleDisableShrink"]};return(0,c.A)(o,m,t)})(y),S={},k={},M={};if("determinate"===A){const e=2*Math.PI*((C-f)/2);S.strokeDasharray=e.toFixed(3),M["aria-valuenow"]=Math.round(v),S.strokeDashoffset="".concat(((100-v)/100*e).toFixed(3),"px"),k.transform="rotate(-90deg)"}return(0,b.jsx)(R,(0,o.A)({className:(0,s.A)(w.root,n),style:(0,o.A)({width:h,height:h},k,p),ownerState:y,ref:t,role:"progressbar"},M,g,{children:(0,b.jsx)(z,{className:w.svg,ownerState:y,viewBox:"".concat(22," ").concat(22," ").concat(C," ").concat(C),children:(0,b.jsx)(T,{className:w.circle,style:S,ownerState:y,cx:C,cy:C,r:(C-f)/2,fill:"none",strokeWidth:f})})}))}))},14872:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(27326),a=r(85672);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z"}}]},name:"notification",theme:"outlined"};var i=r(75890),s=function(e,t){return a.createElement(i.A,(0,n.A)({},e,{ref:t,icon:o}))};const c=a.forwardRef(s)},17450:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(84849),a=r(27326),o=r(85672),i=r(72574),s=r(25234),c=r(60308),l=r(38009),d=r(37300),u=r(10644);function h(e){return(0,u.Ay)("MuiDialogActions",e)}(0,d.A)("MuiDialogActions",["root","spacing"]);var p=r(65908);const f=["className","disableSpacing"],m=(0,c.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,a.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),v=o.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:c=!1}=r,d=(0,n.A)(r,f),u=(0,a.A)({},r,{disableSpacing:c}),v=(e=>{const{classes:t,disableSpacing:r}=e,n={root:["root",!r&&"spacing"]};return(0,s.A)(n,h,t)})(u);return(0,p.jsx)(m,(0,a.A)({className:(0,i.A)(v.root,o),ownerState:u,ref:t},d))}))},18871:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(27326),a=r(85672);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"}}]},name:"delete",theme:"filled"};var i=r(75890),s=function(e,t){return a.createElement(i.A,(0,n.A)({},e,{ref:t,icon:o}))};const c=a.forwardRef(s)},19619:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(27326),a=r(84849),o=r(85672),i=r(72574),s=r(25234),c=r(2866),l=r(60308),d=r(38009),u=r(30903),h=r(6026),p=r(65908);const f=["className","id"],m=(0,l.Ay)(c.A,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),v=o.forwardRef((function(e,t){const r=(0,d.b)({props:e,name:"MuiDialogTitle"}),{className:c,id:l}=r,v=(0,a.A)(r,f),A=r,g=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},u.t,t)})(A),{titleId:y=l}=o.useContext(h.A);return(0,p.jsx)(m,(0,n.A)({component:"h2",className:(0,i.A)(g.root,c),ownerState:A,ref:t,variant:"h6",id:null!=l?l:y},v))}))},19728:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(85672).createContext()},22686:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,a,o){var i=a.prototype;o.utc=function(e){return new a({date:e,utc:!0,args:arguments})},i.utc=function(t){var r=o(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},i.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=i.parse;i.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=i.init;i.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=i.utcOffset;i.utcOffset=function(n,a){var o=this.$utils().u;if(o(n))return this.$u?0:o(this.$offset)?l.call(this):this.$offset;if("string"==typeof n&&(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var a=(""+n[0]).match(r)||["-",0,0],o=a[0],i=60*+a[1]+ +a[2];return 0===i?0:"+"===o?i:-i}(n),null===n))return this;var i=Math.abs(n)<=16?60*n:n,s=this;if(a)return s.$offset=i,s.$u=0===n,s;if(0!==n){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(i+c,e)).$offset=i,s.$x.$localOffset=c}else s=this.utc();return s};var d=i.format;i.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,t)},i.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var u=i.toDate;i.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var h=i.diff;i.diff=function(e,t,r){if(e&&this.$u===e.$u)return h.call(this,e,t,r);var n=this.local(),a=o(e).local();return h.call(n,a,t,r)}}}()},28579:(e,t,r)=>{"use strict";r.d(t,{A:()=>D});var n=r(84849),a=r(27326),o=r(85672),i=r(72574),s=r(25234),c=r(10247),l=r(42081),d=r(31529),u=r(65908);const h=(0,d.A)((0,u.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),p=(0,d.A)((0,u.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),f=(0,d.A)((0,u.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var m=r(16775),v=r(38009),A=r(60308),g=r(24270),y=r(37300),b=r(10644);function x(e){return(0,b.Ay)("MuiCheckbox",e)}const w=(0,y.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),S=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],k=(0,A.Ay)(l.A,{shouldForwardProp:e=>(0,g.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t["size".concat((0,m.A)(r.size))],"default"!==r.color&&t["color".concat((0,m.A)(r.color))]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,a.A)({color:(t.vars||t).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===r.color?t.vars.palette.action.activeChannel:t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,c.X4)("default"===r.color?t.palette.action.active:t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{["&.".concat(w.checked,", &.").concat(w.indeterminate)]:{color:(t.vars||t).palette[r.color].main},["&.".concat(w.disabled)]:{color:(t.vars||t).palette.action.disabled}})})),M=(0,u.jsx)(p,{}),C=(0,u.jsx)(h,{}),$=(0,u.jsx)(f,{}),D=o.forwardRef((function(e,t){var r,c;const l=(0,v.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:d=M,color:h="primary",icon:p=C,indeterminate:f=!1,indeterminateIcon:A=$,inputProps:g,size:y="medium",className:b}=l,w=(0,n.A)(l,S),D=f?A:p,R=f?A:d,z=(0,a.A)({},l,{color:h,indeterminate:f,size:y}),T=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,i={root:["root",r&&"indeterminate","color".concat((0,m.A)(n)),"size".concat((0,m.A)(o))]},c=(0,s.A)(i,x,t);return(0,a.A)({},t,c)})(z);return(0,u.jsx)(k,(0,a.A)({type:"checkbox",inputProps:(0,a.A)({"data-indeterminate":f},g),icon:o.cloneElement(D,{fontSize:null!=(r=D.props.fontSize)?r:y}),checkedIcon:o.cloneElement(R,{fontSize:null!=(c=R.props.fontSize)?c:y}),ownerState:z,ref:t,className:(0,i.A)(T.root,b)},w,{classes:T}))}))},30903:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,t:()=>o});var n=r(37300),a=r(10644);function o(e){return(0,a.Ay)("MuiDialogTitle",e)}const i=(0,n.A)("MuiDialogTitle",["root"])},36204:(e,t,r)=>{"use strict";var n=r(39744);t.A=void 0;var a=n(r(24956)),o=r(65908);t.A=(0,a.default)((0,o.jsx)("path",{d:"M22 24H2v-4h20zM13.06 5.19l3.75 3.75L7.75 18H4v-3.75zm4.82 2.68-3.75-3.75 1.83-1.83c.39-.39 1.02-.39 1.41 0l2.34 2.34c.39.39.39 1.02 0 1.41z"}),"BorderColor")},42081:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var n=r(84849),a=r(27326),o=r(85672),i=r(72574),s=r(25234),c=r(16775),l=r(60308),d=r(24270),u=r(11235),h=r(75520),p=r(61949),f=r(37300),m=r(10644);function v(e){return(0,m.Ay)("PrivateSwitchBase",e)}(0,f.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var A=r(65908);const g=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],y=(0,l.Ay)(p.A)((e=>{let{ownerState:t}=e;return(0,a.A)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),b=(0,l.Ay)("input",{shouldForwardProp:d.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),x=o.forwardRef((function(e,t){const{autoFocus:r,checked:o,checkedIcon:l,className:d,defaultChecked:p,disabled:f,disableFocusRipple:m=!1,edge:x=!1,icon:w,id:S,inputProps:k,inputRef:M,name:C,onBlur:$,onChange:D,onFocus:R,readOnly:z,required:T=!1,tabIndex:H,type:N,value:W}=e,O=(0,n.A)(e,g),[j,B]=(0,u.A)({controlled:o,default:Boolean(p),name:"SwitchBase",state:"checked"}),P=(0,h.A)();let L=f;P&&"undefined"===typeof L&&(L=P.disabled);const F="checkbox"===N||"radio"===N,I=(0,a.A)({},e,{checked:j,disabled:L,disableFocusRipple:m,edge:x}),Y=(e=>{const{classes:t,checked:r,disabled:n,edge:a}=e,o={root:["root",r&&"checked",n&&"disabled",a&&"edge".concat((0,c.A)(a))],input:["input"]};return(0,s.A)(o,v,t)})(I);return(0,A.jsxs)(y,(0,a.A)({component:"span",className:(0,i.A)(Y.root,d),centerRipple:!0,focusRipple:!m,disabled:L,tabIndex:null,role:void 0,onFocus:e=>{R&&R(e),P&&P.onFocus&&P.onFocus(e)},onBlur:e=>{$&&$(e),P&&P.onBlur&&P.onBlur(e)},ownerState:I,ref:t},O,{children:[(0,A.jsx)(b,(0,a.A)({autoFocus:r,checked:o,defaultChecked:p,className:Y.input,disabled:L,id:F?S:void 0,name:C,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;B(t),D&&D(e,t)},readOnly:z,ref:M,required:T,ownerState:I,tabIndex:H,type:N},"checkbox"===N&&void 0===W?{}:{value:W},k)),j?l:w]}))}))},42129:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,f:()=>o});var n=r(37300),a=r(10644);function o(e){return(0,a.Ay)("MuiDialog",e)}const i=(0,n.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"])},42857:(e,t,r)=>{"use strict";var n=r(39744);t.A=void 0;var a=n(r(24956)),o=r(65908);t.A=(0,a.default)((0,o.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined")},46077:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",a="second",o="minute",i="hour",s="day",c="week",l="month",d="quarter",u="year",h="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},A=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},g={s:A,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),a=r%60;return(t<=0?"+":"-")+A(n,2,"0")+":"+A(a,2,"0")},m:function e(t,r){if(t.date()1)return e(i[0])}else{var s=t.name;b[s]=t,a=s}return!n&&a&&(y=a),a||!n&&y},k=function(e,t){if(w(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new C(r)},M=g;M.l=S,M.i=w,M.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function v(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var A=v.prototype;return A.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(M.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(f);if(n){var a=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(t)}(e),this.init()},A.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},A.$utils=function(){return M},A.isValid=function(){return!(this.$d.toString()===p)},A.isSame=function(e,t){var r=k(e);return this.startOf(t)<=r&&r<=this.endOf(t)},A.isAfter=function(e,t){return k(e){"use strict";r.d(t,{A:()=>c});var n=r(27326),a=r(85672);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};var i=r(75890),s=function(e,t){return a.createElement(i.A,(0,n.A)({},e,{ref:t,icon:o}))};const c=a.forwardRef(s)},50755:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(27326),a=r(84849),o=r(85672),i=r(72574),s=r(25234),c=r(10247),l=r(78292),d=r(38009),u=r(60308),h=r(37300),p=r(10644);function f(e){return(0,p.Ay)("MuiTableRow",e)}const m=(0,h.A)("MuiTableRow",["root","selected","hover","head","footer"]);var v=r(65908);const A=["className","component","hover","selected"],g=(0,u.Ay)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((e=>{let{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,["&.".concat(m.hover,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(m.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,c.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}})),y="tr",b=o.forwardRef((function(e,t){const r=(0,d.b)({props:e,name:"MuiTableRow"}),{className:c,component:u=y,hover:h=!1,selected:p=!1}=r,m=(0,a.A)(r,A),b=o.useContext(l.A),x=(0,n.A)({},r,{component:u,hover:h,selected:p,head:b&&"head"===b.variant,footer:b&&"footer"===b.variant}),w=(e=>{const{classes:t,selected:r,hover:n,head:a,footer:o}=e,i={root:["root",r&&"selected",n&&"hover",a&&"head",o&&"footer"]};return(0,s.A)(i,f,t)})(x);return(0,v.jsx)(g,(0,n.A)({as:u,ref:t,className:(0,i.A)(w.root,c),role:u===y?null:"row",ownerState:x},m))}))},50827:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(31529),a=r(65908);const o=(0,n.A)((0,a.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown")},54016:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var n=r(27326),a=r(84849),o=r(85672),i=r(72574),s=r(25234),c=r(78292),l=r(38009),d=r(60308),u=r(37300),h=r(10644);function p(e){return(0,h.Ay)("MuiTableHead",e)}(0,u.A)("MuiTableHead",["root"]);var f=r(65908);const m=["className","component"],v=(0,d.Ay)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),A={variant:"head"},g="thead",y=o.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiTableHead"}),{className:o,component:d=g}=r,u=(0,a.A)(r,m),h=(0,n.A)({},r,{component:d}),y=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},p,t)})(h);return(0,f.jsx)(c.A.Provider,{value:A,children:(0,f.jsx)(v,(0,n.A)({as:d,className:(0,i.A)(y.root,o),ref:t,role:d===g?null:"rowgroup",ownerState:h},u))})}))},58689:(e,t,r)=>{"use strict";r.d(t,{A:()=>M});var n=r(84849),a=r(27326),o=r(85672),i=r(72574),s=r(25234),c=r(16660),l=r(16775),d=r(52243),u=r(95345),h=r(55235),p=r(38009),f=r(60308),m=r(42129),v=r(6026),A=r(15227),g=r(69039),y=r(65908);const b=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],x=(0,f.Ay)(A.A,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),w=(0,f.Ay)(d.A,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),S=(0,f.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t["scroll".concat((0,l.A)(r.scroll))]]}})((e=>{let{ownerState:t}=e;return(0,a.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),k=(0,f.Ay)(h.A,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t["scrollPaper".concat((0,l.A)(r.scroll))],t["paperWidth".concat((0,l.A)(String(r.maxWidth)))],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})((e=>{let{theme:t,ownerState:r}=e;return(0,a.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)"),["&.".concat(m.A.paperScrollBody)]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},r.maxWidth&&"xs"!==r.maxWidth&&{maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit),["&.".concat(m.A.paperScrollBody)]:{[t.breakpoints.down(t.breakpoints.values[r.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(m.A.paperScrollBody)]:{margin:0,maxWidth:"100%"}})})),M=o.forwardRef((function(e,t){const r=(0,p.b)({props:e,name:"MuiDialog"}),d=(0,g.A)(),f={enter:d.transitions.duration.enteringScreen,exit:d.transitions.duration.leavingScreen},{"aria-describedby":A,"aria-labelledby":M,BackdropComponent:C,BackdropProps:$,children:D,className:R,disableEscapeKeyDown:z=!1,fullScreen:T=!1,fullWidth:H=!1,maxWidth:N="sm",onBackdropClick:W,onClick:O,onClose:j,open:B,PaperComponent:P=h.A,PaperProps:L={},scroll:F="paper",TransitionComponent:I=u.A,transitionDuration:Y=f,TransitionProps:_}=r,U=(0,n.A)(r,b),V=(0,a.A)({},r,{disableEscapeKeyDown:z,fullScreen:T,fullWidth:H,maxWidth:N,scroll:F}),X=(e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:a,fullScreen:o}=e,i={root:["root"],container:["container","scroll".concat((0,l.A)(r))],paper:["paper","paperScroll".concat((0,l.A)(r)),"paperWidth".concat((0,l.A)(String(n))),a&&"paperFullWidth",o&&"paperFullScreen"]};return(0,s.A)(i,m.f,t)})(V),E=o.useRef(),K=(0,c.A)(M),J=o.useMemo((()=>({titleId:K})),[K]);return(0,y.jsx)(w,(0,a.A)({className:(0,i.A)(X.root,R),closeAfterTransition:!0,components:{Backdrop:x},componentsProps:{backdrop:(0,a.A)({transitionDuration:Y,as:C},$)},disableEscapeKeyDown:z,onClose:j,open:B,ref:t,onClick:e=>{O&&O(e),E.current&&(E.current=null,W&&W(e),j&&j(e,"backdropClick"))},ownerState:V},U,{children:(0,y.jsx)(I,(0,a.A)({appear:!0,in:B,timeout:Y,role:"presentation"},_,{children:(0,y.jsx)(S,{className:(0,i.A)(X.container),onMouseDown:e=>{E.current=e.target===e.currentTarget},ownerState:V,children:(0,y.jsx)(k,(0,a.A)({as:P,elevation:24,role:"dialog","aria-describedby":A,"aria-labelledby":K},L,{className:(0,i.A)(X.paper,L.className),ownerState:V,children:(0,y.jsx)(v.A.Provider,{value:J,children:D})}))})}))}))}))},60429:(e,t,r)=>{"use strict";var n=r(39744);t.A=void 0;var a=n(r(24956)),o=r(65908);t.A=(0,a.default)((0,o.jsx)("path",{d:"M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8zM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13s1.5.67 1.5 1.5S7.33 16 6.5 16m11 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M5 11l1.5-4.5h11L19 11z"}),"DirectionsCar")},70775:(e,t,r)=>{"use strict";var n=r(39744);t.A=void 0;var a=n(r(24956)),o=r(65908);t.A=(0,a.default)((0,o.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack")},72486:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(84849),a=r(27326),o=r(85672),i=r(72574),s=r(25234),c=r(19728),l=r(38009),d=r(60308),u=r(37300),h=r(10644);function p(e){return(0,h.Ay)("MuiTable",e)}(0,u.A)("MuiTable",["root","stickyHeader"]);var f=r(65908);const m=["className","component","padding","size","stickyHeader"],v=(0,d.Ay)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:r}=e;return(0,a.A)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,a.A)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},r.stickyHeader&&{borderCollapse:"separate"})})),A="table",g=o.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiTable"}),{className:d,component:u=A,padding:h="normal",size:g="medium",stickyHeader:y=!1}=r,b=(0,n.A)(r,m),x=(0,a.A)({},r,{component:u,padding:h,size:g,stickyHeader:y}),w=(e=>{const{classes:t,stickyHeader:r}=e,n={root:["root",r&&"stickyHeader"]};return(0,s.A)(n,p,t)})(x),S=o.useMemo((()=>({padding:h,size:g,stickyHeader:y})),[h,g,y]);return(0,f.jsx)(c.A.Provider,{value:S,children:(0,f.jsx)(v,(0,a.A)({as:u,role:u===A?null:"table",ref:t,className:(0,i.A)(w.root,d),ownerState:x},b))})}))},75519:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(27326),a=r(85672);const o={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M761.1 288.3L687.8 215 325.1 577.6l-15.6 89 88.9-15.7z",fill:t}},{tag:"path",attrs:{d:"M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89z",fill:e}}]}},name:"edit",theme:"twotone"};var i=r(75890),s=function(e,t){return a.createElement(i.A,(0,n.A)({},e,{ref:t,icon:o}))};const c=a.forwardRef(s)},78292:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(85672).createContext()},78754:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(84849),a=r(27326),o=r(85672),i=r(72574),s=r(25234),c=r(60308),l=r(38009),d=r(37300),u=r(10644);function h(e){return(0,u.Ay)("MuiCardActions",e)}(0,d.A)("MuiCardActions",["root","spacing"]);var p=r(65908);const f=["disableSpacing","className"],m=(0,c.Ay)("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,a.A)({display:"flex",alignItems:"center",padding:8},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),v=o.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiCardActions"}),{disableSpacing:o=!1,className:c}=r,d=(0,n.A)(r,f),u=(0,a.A)({},r,{disableSpacing:o}),v=(e=>{const{classes:t,disableSpacing:r}=e,n={root:["root",!r&&"spacing"]};return(0,s.A)(n,h,t)})(u);return(0,p.jsx)(m,(0,a.A)({className:(0,i.A)(v.root,c),ownerState:u,ref:t},d))}))},81802:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var n=r(27326),a=r(84849),o=r(85672),i=r(72574),s=r(25234),c=r(78292),l=r(38009),d=r(60308),u=r(37300),h=r(10644);function p(e){return(0,h.Ay)("MuiTableBody",e)}(0,u.A)("MuiTableBody",["root"]);var f=r(65908);const m=["className","component"],v=(0,d.Ay)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),A={variant:"body"},g="tbody",y=o.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiTableBody"}),{className:o,component:d=g}=r,u=(0,a.A)(r,m),h=(0,n.A)({},r,{component:d}),y=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},p,t)})(h);return(0,f.jsx)(c.A.Provider,{value:A,children:(0,f.jsx)(v,(0,n.A)({className:(0,i.A)(y.root,o),as:d,ref:t,role:d===g?null:"rowgroup",ownerState:h},u))})}))},83209:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(27326),a=r(84849),o=r(85672),i=r(72574),s=r(25234),c=r(38009),l=r(60308),d=r(37300),u=r(10644);function h(e){return(0,u.Ay)("MuiTableContainer",e)}(0,d.A)("MuiTableContainer",["root"]);var p=r(65908);const f=["className","component"],m=(0,l.Ay)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),v=o.forwardRef((function(e,t){const r=(0,c.b)({props:e,name:"MuiTableContainer"}),{className:o,component:l="div"}=r,d=(0,a.A)(r,f),u=(0,n.A)({},r,{component:l}),v=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},h,t)})(u);return(0,p.jsx)(m,(0,n.A)({ref:t,as:l,className:(0,i.A)(v.root,o),ownerState:u},d))}))},91834:(e,t,r)=>{"use strict";r.d(t,{A:()=>T});var n=r(57528),a=r(84849),o=r(27326),i=r(85672),s=r(72574),c=r(8913),l=r(25234);function d(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function u(e){return parseFloat(e)}var h=r(40835),p=r(60308),f=r(38009),m=r(37300),v=r(10644);function A(e){return(0,v.Ay)("MuiSkeleton",e)}(0,m.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var g,y,b,x,w=r(65908);const S=["animation","className","component","height","style","variant","width"];let k,M,C,$;const D=(0,c.i7)(k||(k=g||(g=(0,n.A)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"])))),R=(0,c.i7)(M||(M=y||(y=(0,n.A)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"])))),z=(0,p.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!1!==r.animation&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})((e=>{let{theme:t,ownerState:r}=e;const n=d(t.shape.borderRadius)||"px",a=u(t.shape.borderRadius);return(0,o.A)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:(0,h.X4)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===r.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(a).concat(n,"/").concat(Math.round(a/.6*10)/10).concat(n),"&:empty:before":{content:'"\\00a0"'}},"circular"===r.variant&&{borderRadius:"50%"},"rounded"===r.variant&&{borderRadius:(t.vars||t).shape.borderRadius},r.hasChildren&&{"& > *":{visibility:"hidden"}},r.hasChildren&&!r.width&&{maxWidth:"fit-content"},r.hasChildren&&!r.height&&{height:"auto"})}),(e=>{let{ownerState:t}=e;return"pulse"===t.animation&&(0,c.AH)(C||(C=b||(b=(0,n.A)(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "]))),D)}),(e=>{let{ownerState:t,theme:r}=e;return"wave"===t.animation&&(0,c.AH)($||($=x||(x=(0,n.A)(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 2s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ",",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "]))),R,(r.vars||r).palette.action.hover)})),T=i.forwardRef((function(e,t){const r=(0,f.b)({props:e,name:"MuiSkeleton"}),{animation:n="pulse",className:i,component:c="span",height:d,style:u,variant:h="text",width:p}=r,m=(0,a.A)(r,S),v=(0,o.A)({},r,{animation:n,component:c,variant:h,hasChildren:Boolean(m.children)}),g=(e=>{const{classes:t,variant:r,animation:n,hasChildren:a,width:o,height:i}=e,s={root:["root",r,n,a&&"withChildren",a&&!o&&"fitContent",a&&!i&&"heightAuto"]};return(0,l.A)(s,A,t)})(v);return(0,w.jsx)(z,(0,o.A)({as:c,ref:t,className:(0,s.A)(g.root,i),ownerState:v},m,{style:(0,o.A)({width:p,height:d},u)}))}))},94081:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(27326),a=r(85672);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 289.1a362.49 362.49 0 00-79.9-115.7 370.83 370.83 0 00-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 00169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0022.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z"}}]},name:"environment",theme:"outlined"};var i=r(75890),s=function(e,t){return a.createElement(i.A,(0,n.A)({},e,{ref:t,icon:o}))};const c=a.forwardRef(s)},97614:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(31529),a=r(65908);const o=(0,n.A)((0,a.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp")},97659:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(27326),a=r(84849),o=r(85672),i=r(72574),s=r(25234),c=r(60308),l=r(38009),d=r(2866),u=r(37300),h=r(10644);function p(e){return(0,h.Ay)("MuiAlertTitle",e)}(0,u.A)("MuiAlertTitle",["root"]);var f=r(65908);const m=["className"],v=(0,c.Ay)(d.A,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{fontWeight:t.typography.fontWeightMedium,marginTop:-2}})),A=o.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiAlertTitle"}),{className:o}=r,c=(0,a.A)(r,m),d=r,u=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},p,t)})(d);return(0,f.jsx)(v,(0,n.A)({gutterBottom:!0,component:"div",ownerState:d,ref:t,className:(0,i.A)(u.root,o)},c))}))}}]); \ No newline at end of file diff --git a/build/static/js/9562.6abb1e0d.chunk.js b/build/static/js/9562.6abb1e0d.chunk.js deleted file mode 100644 index b70cf5a..0000000 --- a/build/static/js/9562.6abb1e0d.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9562],{4159:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",a="second",i="minute",o="hour",s="day",c="week",l="month",u="quarter",d="year",h="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},g=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},A={s:g,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),a=r%60;return(t<=0?"+":"-")+g(n,2,"0")+":"+g(a,2,"0")},m:function e(t,r){if(t.date()1)return e(o[0])}else{var s=t.name;S[s]=t,a=s}return!n&&a&&(y=a),a||!n&&y},w=function(e,t){if(b(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new M(r)},k=A;k.l=$,k.i=b,k.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var M=function(){function v(e){this.$L=$(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var g=v.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(f);if(n){var a=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return k},g.isValid=function(){return!(this.$d.toString()===p)},g.isSame=function(e,t){var r=w(e);return this.startOf(t)<=r&&r<=this.endOf(t)},g.isAfter=function(e,t){return w(e){"use strict";r.d(t,{A:()=>n});const n=r(9950).createContext({})},21427:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,f:()=>i});var n=r(45558),a=r(1614);function i(e){return(0,a.Ay)("MuiDialog",e)}const o=(0,n.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"])},23025:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,t:()=>i});var n=r(45558),a=r(1614);function i(e){return(0,a.Ay)("MuiDialogTitle",e)}const o=(0,n.A)("MuiDialogTitle",["root"])},28170:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(98587),a=r(58168),i=r(9950),o=r(72004),s=r(3484),c=r(59254),l=r(18463),u=r(45558),d=r(1614);function h(e){return(0,d.Ay)("MuiDialogContent",e)}(0,u.A)("MuiDialogContent",["root","dividers"]);var p=r(23025),f=r(44414);const m=["className","dividers"],v=(0,c.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})((e=>{let{theme:t,ownerState:r}=e;return(0,a.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},r.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:{[".".concat(p.A.root," + &")]:{paddingTop:0}})})),g=i.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiDialogContent"}),{className:i,dividers:c=!1}=r,u=(0,n.A)(r,m),d=(0,a.A)({},r,{dividers:c}),p=(e=>{const{classes:t,dividers:r}=e,n={root:["root",r&&"dividers"]};return(0,s.A)(n,h,t)})(d);return(0,f.jsx)(v,(0,a.A)({className:(0,o.A)(p.root,i),ownerState:d,ref:t},u))}))},46639:(e,t,r)=>{"use strict";r.d(t,{A:()=>_});var n=r(57528),a=r(98587),i=r(58168),o=r(9950),s=r(72004),c=r(3484),l=r(88283),u=r(89548),d=r(18463),h=r(59254),p=r(45558),f=r(1614);function m(e){return(0,f.Ay)("MuiCircularProgress",e)}(0,p.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var v,g,A,y,S=r(44414);const x=["className","color","disableShrink","size","style","thickness","value","variant"];let b,$,w,k;const M=44,D=(0,l.i7)(b||(b=v||(v=(0,n.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),W=(0,l.i7)($||($=g||(g=(0,n.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),C=(0,h.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["color".concat((0,u.A)(r.color))]]}})((e=>{let{ownerState:t,theme:r}=e;return(0,i.A)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,l.AH)(w||(w=A||(A=(0,n.A)(["\n animation: "," 1.4s linear infinite;\n "]))),D)})),P=(0,h.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),O=(0,h.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t["circle".concat((0,u.A)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:r}=e;return(0,i.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,l.AH)(k||(k=y||(y=(0,n.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),W)})),_=o.forwardRef((function(e,t){const r=(0,d.b)({props:e,name:"MuiCircularProgress"}),{className:n,color:o="primary",disableShrink:l=!1,size:h=40,style:p,thickness:f=3.6,value:v=0,variant:g="indeterminate"}=r,A=(0,a.A)(r,x),y=(0,i.A)({},r,{color:o,disableShrink:l,size:h,thickness:f,value:v,variant:g}),b=(e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,i={root:["root",r,"color".concat((0,u.A)(n))],svg:["svg"],circle:["circle","circle".concat((0,u.A)(r)),a&&"circleDisableShrink"]};return(0,c.A)(i,m,t)})(y),$={},w={},k={};if("determinate"===g){const e=2*Math.PI*((M-f)/2);$.strokeDasharray=e.toFixed(3),k["aria-valuenow"]=Math.round(v),$.strokeDashoffset="".concat(((100-v)/100*e).toFixed(3),"px"),w.transform="rotate(-90deg)"}return(0,S.jsx)(C,(0,i.A)({className:(0,s.A)(b.root,n),style:(0,i.A)({width:h,height:h},w,p),ownerState:y,ref:t,role:"progressbar"},k,A,{children:(0,S.jsx)(P,{className:b.svg,ownerState:y,viewBox:"".concat(22," ").concat(22," ").concat(M," ").concat(M),children:(0,S.jsx)(O,{className:b.circle,style:$,ownerState:y,cx:M,cy:M,r:(M-f)/2,fill:"none",strokeWidth:f})})}))}))},63189:(e,t,r)=>{"use strict";var n=r(24994);t.A=void 0;var a=n(r(79526)),i=r(44414);t.A=(0,a.default)((0,i.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack")},79739:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(98587),a=r(58168),i=r(9950),o=r(72004),s=r(3484),c=r(59254),l=r(18463),u=r(45558),d=r(1614);function h(e){return(0,d.Ay)("MuiDialogActions",e)}(0,u.A)("MuiDialogActions",["root","spacing"]);var p=r(44414);const f=["className","disableSpacing"],m=(0,c.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,a.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),v=i.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiDialogActions"}),{className:i,disableSpacing:c=!1}=r,u=(0,n.A)(r,f),d=(0,a.A)({},r,{disableSpacing:c}),v=(e=>{const{classes:t,disableSpacing:r}=e,n={root:["root",!r&&"spacing"]};return(0,s.A)(n,h,t)})(d);return(0,p.jsx)(m,(0,a.A)({className:(0,o.A)(v.root,i),ownerState:d,ref:t},u))}))},96583:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});var n=r(98587),a=r(58168),i=r(9950),o=r(72004),s=r(3484),c=r(95014),l=r(89548),u=r(29120),d=r(57191),h=r(2235),p=r(18463),f=r(59254),m=r(21427),v=r(5536),g=r(55158),A=r(14857),y=r(44414);const S=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],x=(0,f.Ay)(g.A,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),b=(0,f.Ay)(u.A,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),$=(0,f.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t["scroll".concat((0,l.A)(r.scroll))]]}})((e=>{let{ownerState:t}=e;return(0,a.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),w=(0,f.Ay)(h.A,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t["scrollPaper".concat((0,l.A)(r.scroll))],t["paperWidth".concat((0,l.A)(String(r.maxWidth)))],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})((e=>{let{theme:t,ownerState:r}=e;return(0,a.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)"),["&.".concat(m.A.paperScrollBody)]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},r.maxWidth&&"xs"!==r.maxWidth&&{maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit),["&.".concat(m.A.paperScrollBody)]:{[t.breakpoints.down(t.breakpoints.values[r.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(m.A.paperScrollBody)]:{margin:0,maxWidth:"100%"}})})),k=i.forwardRef((function(e,t){const r=(0,p.b)({props:e,name:"MuiDialog"}),u=(0,A.A)(),f={enter:u.transitions.duration.enteringScreen,exit:u.transitions.duration.leavingScreen},{"aria-describedby":g,"aria-labelledby":k,BackdropComponent:M,BackdropProps:D,children:W,className:C,disableEscapeKeyDown:P=!1,fullScreen:O=!1,fullWidth:_=!1,maxWidth:N="sm",onBackdropClick:T,onClick:j,onClose:H,open:R,PaperComponent:B=h.A,PaperProps:Y={},scroll:F="paper",TransitionComponent:L=d.A,transitionDuration:I=f,TransitionProps:z}=r,E=(0,n.A)(r,S),U=(0,a.A)({},r,{disableEscapeKeyDown:P,fullScreen:O,fullWidth:_,maxWidth:N,scroll:F}),J=(e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:a,fullScreen:i}=e,o={root:["root"],container:["container","scroll".concat((0,l.A)(r))],paper:["paper","paperScroll".concat((0,l.A)(r)),"paperWidth".concat((0,l.A)(String(n))),a&&"paperFullWidth",i&&"paperFullScreen"]};return(0,s.A)(o,m.f,t)})(U),K=i.useRef(),Z=(0,c.A)(k),V=i.useMemo((()=>({titleId:Z})),[Z]);return(0,y.jsx)(b,(0,a.A)({className:(0,o.A)(J.root,C),closeAfterTransition:!0,components:{Backdrop:x},componentsProps:{backdrop:(0,a.A)({transitionDuration:I,as:M},D)},disableEscapeKeyDown:P,onClose:H,open:R,ref:t,onClick:e=>{j&&j(e),K.current&&(K.current=null,T&&T(e),H&&H(e,"backdropClick"))},ownerState:U},E,{children:(0,y.jsx)(L,(0,a.A)({appear:!0,in:R,timeout:I,role:"presentation"},z,{children:(0,y.jsx)($,{className:(0,o.A)(J.container),onMouseDown:e=>{K.current=e.target===e.currentTarget},ownerState:U,children:(0,y.jsx)(w,(0,a.A)({as:B,elevation:24,role:"dialog","aria-describedby":g,"aria-labelledby":Z},Y,{className:(0,o.A)(J.paper,Y.className),ownerState:U,children:(0,y.jsx)(v.A.Provider,{value:V,children:W})}))})}))}))}))}}]); \ No newline at end of file diff --git a/build/static/js/9592.e7d1e3ea.chunk.js b/build/static/js/9592.e7d1e3ea.chunk.js deleted file mode 100644 index 107ad03..0000000 --- a/build/static/js/9592.e7d1e3ea.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9592],{855:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(7208),n=a(76475),o=a(44414);function l(e){var t,a;let l,i,{children:r,type:c="scale",direction:d="right",offset:u=10,scale:p={hover:1.05,tap:.95}}=e;switch(d){case"up":case"left":l=u,i=0;break;default:l=0,i=u}const[m,h]=(0,s.Y)(l,i),[x,g]=(0,s.Y)(l,i);switch(c){case"rotate":return(0,o.jsx)(n.P.div,{animate:{rotate:360},transition:{repeat:1/0,repeatType:"loop",duration:2,repeatDelay:0},children:r});case"slide":return"up"===d||"down"===d?(0,o.jsx)(n.P.div,{animate:{y:void 0!==x?x:""},onHoverEnd:()=>g(),onHoverStart:()=>g(),children:r}):(0,o.jsx)(n.P.div,{animate:{x:void 0!==m?m:""},onHoverEnd:()=>h(),onHoverStart:()=>h(),children:r});default:return"number"===typeof p&&(p={hover:p,tap:p}),(0,o.jsx)(n.P.div,{whileHover:{scale:null===(t=p)||void 0===t?void 0:t.hover},whileTap:{scale:null===(a=p)||void 0===a?void 0:a.tap},children:r})}}},20466:(e,t,a)=>{a.d(t,{k:()=>n});var s=a(8881);const n=(e,t,a)=>(0,s.M8)(e,{variant:t,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:a||2e3})},42041:()=>{},80987:(e,t,a)=>{a.r(t),a.d(t,{default:()=>me});var s=a(89379),n=a(9950),o=a(47223),l=a(16491),i=a(48089),r=a(82053),c=a(77922),d=a(29925),u=a(60899),p=a(10226),m=a(2046),h=a(25333),x=a(16497),g=a(93038),A=a(93230),f=a(37324),v=a(46639),j=a(40033),b=a(25979),y=a(2660),k=a(74745),S=a(28170),N=a(79739),w=a(96319),P=a(13838),C=a(54826),_=a(85527),I=a(43302),z=a(7762),D=a(28429),Y=a(63057),M=a(26910),L=a(14857),R=a(99459),W=a(52351),H=(a(172),a(50027),a(30633)),E=a(81831),F=a(95359),T=a(96583),O=a(4159),B=a.n(O),U=a(8881),q=a(60767),K=a(81419),V=a(3911),$=a(47738),Z=a(9845),G=a(87942),Q=a(76746),X=a(20466),J=a(98007),ee=a(99810),te=a(49029),ae=a(47113),se=a(82215),ne=a(2527),oe=a.n(ne),le=(a(55392),a(42041),a(855)),ie=a(44414),re=a(36220);B().extend(re);const ce="undefined"!==typeof window?new(oe().Icon)({iconUrl:"https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-blue.png",shadowUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]}):null,de="undefined"!==typeof window?new(oe().Icon)({iconUrl:"https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-red.png",shadowUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]}):null,ue=e=>{let{startPoint:t,endPoint:a}=e;const s=(0,J.ko)();return(0,n.useEffect)((()=>{const e=[],n=parseFloat(null===t||void 0===t?void 0:t.latitude),o=parseFloat(null===t||void 0===t?void 0:t.longitude),l=parseFloat(null===a||void 0===a?void 0:a.latitude),i=parseFloat(null===a||void 0===a?void 0:a.longitude);isNaN(n)||isNaN(o)||0===n||0===o||e.push([n,o]),isNaN(l)||isNaN(i)||0===l||0===i||e.push([l,i]),1===e.length?s.setView(e[0],14):2===e.length&&s.fitBounds(e,{padding:[50,50]})}),[null===t||void 0===t?void 0:t.latitude,null===t||void 0===t?void 0:t.longitude,null===a||void 0===a?void 0:a.latitude,null===a||void 0===a?void 0:a.longitude,s]),null},pe=e=>{let{startPoint:t,endPoint:a,appLocaLat:s,appLocaLng:o}=e;const l=[parseFloat(s)||11.0168,parseFloat(o)||76.9558],i=(null===t||void 0===t?void 0:t.latitude)&&(null===t||void 0===t?void 0:t.longitude)&&0!==parseFloat(t.latitude),r=(null===a||void 0===a?void 0:a.latitude)&&(null===a||void 0===a?void 0:a.longitude)&&0!==parseFloat(a.latitude),c=i?[parseFloat(t.latitude),parseFloat(t.longitude)]:null,d=r?[parseFloat(a.latitude),parseFloat(a.longitude)]:null,[u,p]=n.useState([]);return n.useEffect((()=>{if(!i||!r)return void p([]);(async()=>{const e="https://router.project-osrm.org/route/v1/driving/".concat(t.longitude,",").concat(t.latitude,";").concat(a.longitude,",").concat(a.latitude,"?overview=full&geometries=geojson");try{var s;const t=await fetch(e),a=await t.json();if(null!==(s=a.routes)&&void 0!==s&&s.length){const e=a.routes[0].geometry.coordinates.map((e=>{let[t,a]=e;return[a,t]}));p(e)}else p([c,d])}catch(n){console.error("OSRM Error:",n),p([c,d])}})()}),[t.latitude,t.longitude,a.latitude,a.longitude,i,r]),(0,ie.jsx)("div",{style:{position:"relative",width:"100%",height:"100%"},children:(0,ie.jsxs)(ee.W,{center:l,zoom:12,style:{width:"100%",height:"100%"},zoomControl:!0,children:[(0,ie.jsx)(te.e,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:"\xa9 OpenStreetMap contributors"}),i&&(0,ie.jsx)(ae.p,{position:c,icon:ce}),r&&(0,ie.jsx)(ae.p,{position:d,icon:de}),u.length>0?(0,ie.jsx)(se.R,{positions:u,color:"#662582",weight:4}):i&&r&&(0,ie.jsx)(se.R,{positions:[c,d],color:"#662582",weight:4}),(0,ie.jsx)(ue,{startPoint:t,endPoint:a})]})})};const me=()=>{R.A.setApiKey("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8");const e=n.useRef(!1),t=(0,D.Zp)(),a=(0,L.A)(),O=(0,o.A)(a.breakpoints.down("md")),J=(0,n.useRef)(null),ee=(0,n.useRef)(null),[te,ae]=n.useState(""),[se,ne]=n.useState(""),[oe,re]=(0,n.useState)(localStorage.getItem("locationid")),[ce,de]=(0,n.useState)(!1),ue=(0,n.useRef)(null),me=(0,n.useRef)(null),he=(0,n.useRef)(null),[xe,ge]=(0,n.useState)(0),[Ae,fe]=(0,n.useState)(!1),[ve,je]=(0,n.useState)([]),[be,ye]=(0,n.useState)(B()().format("MM-DD-YYYY")),[ke,Se]=(0,n.useState)(),[Ne,we]=(0,n.useState)(),[Pe,Ce]=(0,n.useState)([]),[_e,Ie]=(0,n.useState)(""),[ze,De]=(0,n.useState)(!1),[Ye,Me]=(0,n.useState)(!1),[Le,Re]=(0,n.useState)(!1),[We,He]=(0,n.useState)(""),[Ee,Fe]=(0,n.useState)(),[Te,Oe]=(0,n.useState)({}),[Be,Ue]=(0,n.useState)(""),[qe,Ke]=(0,n.useState)([]),[Ve,$e]=(0,n.useState)({latitude:0,longitude:0}),[Ze,Ge]=(0,n.useState)({latitude:0,longitude:0}),[Qe,Xe]=(0,n.useState)(!1),[Je,et]=(0,n.useState)(0),[tt,at]=(0,n.useState)(0),[st,nt]=(0,n.useState)(0),[ot,lt]=(0,n.useState)(0),[it,rt]=(0,n.useState)(0),[ct,dt]=(0,n.useState)([]),[ut,pt]=(0,n.useState)("Select "),[mt,ht]=(0,n.useState)(0),[xt,gt]=(0,n.useState)(""),[At,ft]=(0,n.useState)(0),[vt,jt]=(0,n.useState)(0),[bt,yt]=(0,n.useState)(null),[kt,St]=(0,n.useState)(!1),[Nt,wt]=(0,n.useState)(""),[Pt,Ct]=(0,n.useState)([]),[_t,It]=(0,n.useState)(null),[zt,Dt]=(0,n.useState)(null),[Yt,Mt]=(0,n.useState)(null),[Lt,Rt]=(0,n.useState)(0),[Wt,Ht]=(0,n.useState)(0),[Et,Ft]=(0,n.useState)(0),[Tt,Ot]=(0,n.useState)([]),[Bt,Ut]=(0,n.useState)(),[qt,Kt]=(0,n.useState)(),[Vt,$t]=(0,n.useState)(),[Zt,Gt]=(0,n.useState)("Select Location"),Qt=localStorage.getItem("userid"),[Xt,Jt]=(0,n.useState)(0),[ea,ta]=(0,n.useState)(0),[aa,sa]=(0,n.useState)(0),[na,oa]=(0,n.useState)(0),[la,ia]=(0,n.useState)(),[ra,ca]=(0,n.useState)(),[da,ua]=(0,n.useState)(!1),[pa,ma]=(0,n.useState)(!1),[ha,xa]=(0,n.useState)(0),[ga,Aa]=(0,n.useState)(0),[fa,va]=(0,n.useState)(1),[ja,ba]=(0,n.useState)(null),[ya,ka]=(0,n.useState)(null),[Sa,Na]=(0,n.useState)(null),[wa,Pa]=(0,n.useState)(null),[Ca,_a]=(0,n.useState)(1),Ia=!!(null!==zt&&void 0!==zt&&zt.firstname&&null!==zt&&void 0!==zt&&zt.contactno&&10===String(zt.contactno).length&&null!==zt&&void 0!==zt&&zt.doorno&&null!==zt&&void 0!==zt&&zt.suburb&&null!==zt&&void 0!==zt&&zt.postcode);(0,n.useEffect)((()=>{console.log("pickupSlotsList",Sa),console.log("pickupSlot",wa)}),[Sa,wa]),"undefined"===typeof window||e.current||(document.querySelector("#google-maps")||function(e,t,a){if(!t)return;const s=document.createElement("script");s.setAttribute("async",""),s.setAttribute("id",a),s.src=e,t.appendChild(s)}("https://maps.googleapis.com/maps/api/js?key=".concat("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8","&libraries=places&location=10.3656,77.9690&radius=50000&components=country:IN&strictbounds=true"),document.querySelector("head"),"google-maps"),e.current=!0);(0,n.useEffect)((()=>{(async()=>{try{const e=await M.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(Qt));console.log("fetchAppLocations",e.data.details),Gt(e.data.details)}catch(e){console.log("locationRes",e)}})()}),[]);(0,n.useEffect)((()=>{xe&&(async()=>{Me(!0),await M.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenants/?applocationid=").concat(xe,"&status=active")).then((e=>{if(console.log(e),e.data.status){let t=[];e.data.details.map((e=>{t.push((0,s.A)((0,s.A)({},e),{},{label:"".concat(e.tenantname)}))})),Ke(t)}Me(!1)})).catch((e=>{console.log(e),Me(!1)}))})()}),[xe]);(0,n.useEffect)((()=>{console.log("startPoint",Ve),console.log("endPoint",Ze),0!=Ve.latitude&&0!=Ve.longitude&&0!=Ze.latitude&&0!=Ze.longitude&&za(Ve,Ze)}),[Ve,Ze]);const za=async(e,t)=>{try{const a=(1.3*((e,t,a,s)=>{const n=e=>e*Math.PI/180,o=n(a-e),l=n(s-t),i=Math.sin(o/2)*Math.sin(o/2)+Math.cos(n(e))*Math.cos(n(a))*Math.sin(l/2)*Math.sin(l/2);return 2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i))*6371})(e.latitude,e.longitude,t.latitude,t.longitude)).toFixed(2);console.log("distance in km ",a);const s=Math.round(a);if(console.log("roundedDistance",s),et(s),sVt&&(Xe(!0),fe(!0));const n=40,o=Math.round(s/n*60);console.log("Distance: ".concat(s,", Duration: ").concat(o))}catch(a){console.error("Error calculating distance:",a)}};(0,n.useEffect)((()=>{At&&Ma()}),[(null===Nt||void 0===Nt?void 0:Nt.length)>3,""==Nt,At]),(0,n.useEffect)((()=>{if(Pe[0]){let e=[];Pe.map((t=>{B()().diff(B()("".concat(B()(be).format("MM-DD-YYYY")," ").concat(B()(t).format("HH:mm:ss"))),"m")<=0&&e.push(t)}))}}),[Pe]);(0,n.useEffect)((()=>{At&&(async()=>{Me(!0),console.log("tenantid",At),await M.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantinfo/?tenantid=").concat(At)).then((e=>{console.log("fetchtenantinfo",e),e.data.status&&(Oe(e.data.details),Da(),pt(e.data.details.subcategoryname),ht(e.data.details.subcategoryid)),Me(!1)})).catch((e=>{console.log(e),Me(!1)}))})()}),[At]);(0,n.useEffect)((()=>{(async()=>{await M.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getsubcategories/?moduleid=6")).then((e=>{console.log("subcateRes",e.data.details),e.data.status&&dt(e.data.details)})).catch((e=>{console.log(e)}))})()}),[]);(0,n.useEffect)((()=>{xe&&(async()=>{Me(!0),await M.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getapplocations/?applocationid=").concat(xe)).then((e=>{console.log("fetchTiming",e);const{opentime:t,closetime:a,latitude:s,longitude:n,radius:o}=e.data.details[0];if(e.data.status){Ut(s),Kt(n),$t(o),console.log("radius",o),Se("".concat(B()().format("MM-DD-YYYY")," ").concat(t)),we("".concat(B()().format("MM-DD-YYYY")," ").concat(a)),console.log("starttime","".concat(B()().format("MM-DD-YYYY")," ").concat(t)),console.log("endtime","".concat(B()().format("MM-DD-YYYY")," ").concat(a," "));let e=[];for(let s="".concat(B()().format("MM-DD-YYYY")," ").concat(t),n=0;B()("".concat(B()().format("MM-DD-YYYY")," ").concat(a," ")).diff(s,"m")>=0;n++,s=B()(s).add(30,"m"))e.push(s);console.log("setTimeslotarr",e),Ce(e)}Me(!1)})).catch((e=>{console.log(e),Me(!1)}))})()}),[xe]);const Da=async()=>{Me(!0),await M.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getapplocationconfig/?applocationid=").concat(xe)).then((e=>{const t=e.data.details.applocationadmins.map((e=>e.userfcmtokem));e.data.status&&Fe(t),Me(!1)})).catch((e=>{console.log(e),Me(!1)}))};(0,n.useEffect)((()=>{ke&&Ne&&Da()}),[ke,Ne]);const Ya=(e,t,a)=>{(0,U.M8)(e,{variant:t,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:a||1500}),console.log(We)},Ma=async()=>{De(!0);try{let e=""==Nt?"".concat("https://jupiter.nearle.app/live/api/v1","/customers/gettenantcustomers/?tenantid=").concat(At,"&pageno=1&pagesize=30"):"".concat("https://jupiter.nearle.app/live/api/v1","/customers/search/?tenantid=").concat(At,"&keyword=").concat(Nt);await M.A.get(e).then((e=>{e.data.status&&(console.log("clientdetails",e.data.details),je(e.data.details),Ct(e.data.details)),De(!1)})).catch((e=>{console.log(e),De(!1),Ya("server error","warning")}))}catch(e){console.log(e),De(!1)}},La=async()=>{Me(!0),await M.A.post("".concat("https://jupiter.nearle.app/live/api/v1","/utils/sendnotifications"),{priority:"high",registration_ids:Ee,data:{accessid:"AAAAILMpCEU:APA91bEavuOllBI6sFgYtxXAgNmAVwNA-MnCMHLGlR4_t7UqpLajAkdn3T0CZr_zaLBknLyim9ytFLMZgbeXmKqTad_PKCbqlYjHpaizVrLXtecxqyEy4UktIacK2UvHVUATHL-7VQQk"},notification:{title:"Nearle Merchant",body:"An Order has been placed successfully,kindly process the same",sound:"ring"}}).then((e=>{console.log(e),"Success"==e.data.message&&(0,U.M8)("Notification sent Successfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:1e3}),Me(!1)})).catch((e=>{console.log(e),(0,U.M8)(e.message,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:1e3}),Me(!1)}))};(0,n.useEffect)((()=>{if(te){const e=document.getElementById("addressAuto1"),t=new window.google.maps.places.Autocomplete(e,{strictBounds:!0,bounds:new window.google.maps.Circle({center:new window.google.maps.LatLng(Bt,qt),radius:1e3*Vt}).getBounds()});t.addListener("place_changed",(()=>{const e=t.getPlace();ae("".concat(e.name,", ").concat(e.formatted_address)),console.log("new place",e),console.log(" pick (new place) lat lng",{lat:e.geometry.location.lat(),lng:e.geometry.location.lng()}),$e({latitude:e.geometry.location.lat(),longitude:e.geometry.location.lng()}),Dt((0,s.A)((0,s.A)({},zt),{},{address:"".concat(e.name," ").concat(e.formatted_address)}));const a={address:"".concat(e.name," ").concat(e.formatted_address),street_number:"",route:"",locality:"",sublocality_level_1:"",administrative_area_level_3:"",administrative_area_level_1:"",country:"",postal_code:""};e.address_components.forEach((e=>{e.types.forEach((t=>{switch(t){case"street_number":a.street_number=e.long_name;break;case"route":a.route=e.long_name;break;case"locality":a.locality=e.long_name;break;case"sublocality_level_1":a.sublocality_level_1=e.long_name;break;case"administrative_area_level_3":a.administrative_area_level_3=e.long_name;break;case"administrative_area_level_1":a.administrative_area_level_1=e.long_name;break;case"country":a.country=e.long_name;break;case"postal_code":a.postal_code=e.long_name}}))})),Dt((0,s.A)((0,s.A)({},zt),{},{address:a.address,doorno:"".concat(a.street_number," ").concat(a.route),suburb:a.sublocality_level_1,city:a.locality,postcode:a.postal_code,latitude:e.geometry.location.lat(),longitude:e.geometry.location.lng()})),console.log("Pick Address:",a)}))}}),[te]),(0,n.useEffect)((()=>{if(se){const e=document.getElementById("addressAuto2"),t=new window.google.maps.places.Autocomplete(e,{strictBounds:!0,bounds:new window.google.maps.Circle({center:new window.google.maps.LatLng(Bt,qt),radius:1e3*Vt}).getBounds()});t.addListener("place_changed",(()=>{const e=t.getPlace();ne("".concat(e.name,", ").concat(e.formatted_address)),console.log("new place",e),console.log("drop (new place) lat lng",{lat:e.geometry.location.lat(),lng:e.geometry.location.lng()}),Ge({latitude:e.geometry.location.lat(),longitude:e.geometry.location.lng()}),Mt((0,s.A)((0,s.A)({},Yt),{},{address:"".concat(e.name," ").concat(e.formatted_address)}));const a={address:"".concat(e.name," ").concat(e.formatted_address),street_number:"",route:"",locality:"",sublocality_level_1:"",administrative_area_level_3:"",administrative_area_level_1:"",country:"",postal_code:""};e.address_components.forEach((e=>{e.types.forEach((t=>{switch(t){case"street_number":a.street_number=e.long_name;break;case"route":a.route=e.long_name;break;case"locality":a.locality=e.long_name;break;case"sublocality_level_1":a.sublocality_level_1=e.long_name;break;case"administrative_area_level_3":a.administrative_area_level_3=e.long_name;break;case"administrative_area_level_1":a.administrative_area_level_1=e.long_name;break;case"country":a.country=e.long_name;break;case"postal_code":a.postal_code=e.long_name}}))})),Mt((0,s.A)((0,s.A)({},Yt),{},{address:a.address,doorno:"".concat(a.street_number," ").concat(a.route),suburb:a.sublocality_level_1,city:a.locality,postcode:a.postal_code,latitude:e.geometry.location.lat(),longitude:e.geometry.location.lng()})),console.log("Drop Address:",a)}))}}),[se]);return(0,ie.jsxs)(ie.Fragment,{children:[Ye&&(0,ie.jsx)(W.A,{}),ze&&(0,ie.jsx)(W.A,{}),(0,ie.jsxs)(l.A,{className:"orders-workspace-bg",sx:{p:0,m:0,minHeight:"auto",display:"flex",flexDirection:"column"},children:[(0,ie.jsxs)(i.A,{className:"orders-card page-header-row",sx:{mb:{xs:1.5,sm:2},display:"flex",flexDirection:{xs:"column",lg:"row"},alignItems:{xs:"stretch",lg:"center"},justifyContent:"space-between",gap:{xs:1.25,lg:2},px:{xs:1.75,sm:2},py:{xs:.75,sm:.9},flexShrink:0},children:[(0,ie.jsx)(l.A,{className:"header-title-block",sx:{display:"flex",flexDirection:"column",gap:0,minWidth:0,flex:{lg:"1 1 auto"}},children:(0,ie.jsx)(l.A,{sx:{display:"flex",alignItems:"center",gap:1},children:(0,ie.jsx)(r.A,{sx:{fontWeight:700,color:"#1e293b",lineHeight:1.15,fontSize:{xs:"17px",sm:"19px"}},children:"Create New Order"})})}),(0,ie.jsxs)(l.A,{className:"header-configurators",sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:{xs:"stretch",sm:"center"},justifyContent:{xs:"stretch",lg:"flex-end"},gap:1,p:0,width:{xs:"100%",lg:"auto"},flexShrink:0},children:[(0,ie.jsx)(l.A,{sx:{width:{xs:"100%",sm:180,md:200,xl:220}},children:(0,ie.jsx)(c.A,{fullWidth:!0,autoFocus:!0,size:"small",ref:J,options:Zt||[],getOptionLabel:e=>"".concat(e.locationname),className:"header-compact-input",onChange:(e,t,a)=>{"clear"===a?(ge(0),ft(0),ba(null),Ke([]),jt(0),ka(null),Ot([]),Dt(null),Mt(null)):(ge(t.applocationid),Dt(null),Mt(null),ft(0),ba(null),jt(0),ka(null),Ot([]))},renderInput:e=>(0,ie.jsx)(d.A,(0,s.A)((0,s.A)({},e),{},{size:"small",placeholder:"Choose Location",label:"Location",InputLabelProps:{shrink:!0},className:"header-compact-tf",InputProps:(0,s.A)((0,s.A)({},e.InputProps),{},{startAdornment:(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(I.sIY,{style:{color:"#94a3b8",fontSize:12,marginRight:6,flexShrink:0}}),e.InputProps.startAdornment]})})}))})}),(0,ie.jsx)(l.A,{sx:{width:{xs:"100%",sm:180,md:200,xl:220}},children:(0,ie.jsx)(c.A,{fullWidth:!0,size:"small",className:"header-compact-input",options:qe||[],value:ja,onOpen:e=>{xe||(e.preventDefault(),(0,X.k)("Please select a your location first!","warning",3e3),setTimeout((()=>{var e;null===(e=J.current)||void 0===e||e.focus()}),0))},onChange:(e,t,a)=>{"clear"==a?(ft(0),ba(null),jt(0),ka(null),Ot([]),Dt(null),Mt(null)):(ft((null===t||void 0===t?void 0:t.tenantid)||0),ba(t),jt(0),ka(null),(async e=>{try{const t=await M.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantpricing/?tenantid=").concat(e));console.log("pricingResponse",t.data.details),at(t.data.details.baseprice),nt(t.data.details.priceperkm),lt(t.data.details.minkm)}catch(t){console.log("fetchTenantPricing error",t)}})(t.tenantid),(async e=>{try{const t=await M.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/tenants/gettenantlocations/?tenantid=").concat(e));console.log("gettenantlocations",t.data.details),1==t.data.details.length?(Ot(t.data.details),It(t.data.details[0]),jt(t.data.details[0].locationid),ka(t.data.details[0].locationid),Na(t.data.details[0].slots)):Ot(t.data.details)}catch(t){console.log("gettenantlocations",t)}})(t.tenantid),Mt(null))},renderInput:e=>(0,ie.jsx)(d.A,(0,s.A)((0,s.A)({},e),{},{size:"small",placeholder:"Choose Client",label:"Client",inputRef:ee,InputLabelProps:{shrink:!0},className:"header-compact-tf",InputProps:(0,s.A)((0,s.A)({},e.InputProps),{},{startAdornment:(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(I.x$1,{style:{color:"#94a3b8",fontSize:11,marginRight:6,flexShrink:0}}),e.InputProps.startAdornment]})})}))})}),(0,ie.jsx)(l.A,{sx:{width:{xs:"100%",sm:200,md:220,xl:240}},children:1==Tt.length?(0,ie.jsx)(d.A,{variant:"outlined",fullWidth:!0,size:"small",label:"Business Location",value:Tt[0].locationname,InputLabelProps:{shrink:!0},className:"header-compact-tf",InputProps:{style:{color:a.palette.primary.main},startAdornment:(0,ie.jsx)(G.A,{style:{color:"#94a3b8",fontSize:14,marginRight:6,flexShrink:0}})}}):(0,ie.jsx)(c.A,{fullWidth:!0,size:"small",className:"header-compact-input",value:ya,options:Tt||[],getOptionLabel:e=>"".concat(e.locationname," (").concat(e.suburb,")")||0,onOpen:e=>{xe||At?At||(e.preventDefault(),(0,X.k)("Please select a your Tenant first!","warning",3e3),setTimeout((()=>{var e;null===(e=ee.current)||void 0===e||e.focus()}),0)):(e.preventDefault(),(0,X.k)("Please select Location and Tenant first!","warning",3e3),setTimeout((()=>{var e;null===(e=J.current)||void 0===e||e.focus()}),0))},onChange:(e,t,a)=>{"clear"===a?(jt(0),ka(null),Dt(null)):(jt(t.locationid||0),ka(t),It(t),Na(null===t||void 0===t?void 0:t.slots))},renderInput:e=>(0,ie.jsx)(d.A,(0,s.A)((0,s.A)({},e),{},{size:"small",placeholder:"Select Business Locations",label:"Business Location",color:"primary",InputLabelProps:{shrink:!0},className:"header-compact-tf",InputProps:(0,s.A)((0,s.A)({},e.InputProps),{},{startAdornment:(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(G.A,{style:{color:"#94a3b8",fontSize:14,marginRight:6,flexShrink:0}}),e.InputProps.startAdornment]})})}))})})]})]}),(0,ie.jsxs)(u.Ay,{container:!0,spacing:{xs:2.5,sm:3,lg:4},children:[(0,ie.jsxs)(u.Ay,{item:!0,xs:12,lg:7.5,sx:{display:"flex",flexDirection:"column",gap:{xs:1.5,sm:1.75,lg:2}},children:[(0,ie.jsxs)(i.A,{className:"orders-card",sx:{p:{xs:1.25,sm:1.5,lg:1.5}},children:[(0,ie.jsxs)(l.A,{className:"route-stepper",children:[(0,ie.jsxs)(l.A,{className:"route-step ".concat(1===Ca?"is-active":""," ").concat(Ia?"is-done":""," step-pickup"),onClick:()=>_a(1),role:"button",tabIndex:0,children:[(0,ie.jsx)(l.A,{className:"route-step-index",children:Ia&&1!==Ca?(0,ie.jsx)(C.CMH,{}):"1"}),(0,ie.jsxs)(l.A,{className:"route-step-text",children:[(0,ie.jsx)(r.A,{className:"route-step-title",children:"Pickup"}),(0,ie.jsx)(r.A,{className:"route-step-sub",children:"Where to collect"})]})]}),(0,ie.jsxs)(l.A,{className:"route-step-connector ".concat(Ia?"is-done":""),children:[(0,ie.jsx)(l.A,{className:"route-step-line"}),(0,ie.jsx)(l.A,{className:"route-step-line-arrow",children:(0,ie.jsx)(C.Z0P,{})})]}),(0,ie.jsxs)(l.A,{className:"route-step ".concat(2===Ca?"is-active":""," step-drop ").concat(Ia?"":"is-locked"),onClick:()=>{Ia?_a(2):Ya("Please complete Pickup details first","warning",2e3)},role:"button",tabIndex:0,children:[(0,ie.jsx)(l.A,{className:"route-step-index",children:"2"}),(0,ie.jsxs)(l.A,{className:"route-step-text",children:[(0,ie.jsx)(r.A,{className:"route-step-title",children:"Drop"}),(0,ie.jsx)(r.A,{className:"route-step-sub",children:"Where to deliver"})]})]})]}),(0,ie.jsxs)(l.A,{className:"route-flow",children:[(0,ie.jsxs)(l.A,{className:"location-panel pickup-panel",sx:{display:1===Ca?"block":"none"},children:[(0,ie.jsxs)(l.A,{className:"lp-header",children:[(0,ie.jsxs)(l.A,{className:"lp-header-title",children:[(0,ie.jsx)(l.A,{className:"lp-badge",children:(0,ie.jsx)(I.sIY,{})}),(0,ie.jsxs)(l.A,{children:[(0,ie.jsx)(r.A,{className:"lp-title",children:"Pickup"}),(0,ie.jsx)(r.A,{className:"lp-subtitle",children:"Where to collect the parcel"})]})]}),(0,ie.jsx)(l.A,{className:"lp-header-actions",children:(0,ie.jsx)(p.A,{className:"lp-action-btn",size:"small",disabled:!vt,startIcon:(0,ie.jsx)(q.A,{style:{fontSize:13}}),onClick:()=>{xe||At||vt?xe||At?xe?(St(!0),Rt(1),Dt(null),ae(""),wt("")):(0,X.k)("Please select Location!","warning",3e3):(0,X.k)("Please select Location and Tenant!","warning",3e3):(0,X.k)("Please select Location, Tenant and Business!","warning",3e3)},children:"From Saved"})})]}),(0,ie.jsx)(r.A,{className:"field-group-caption",children:"Contact"}),(0,ie.jsxs)(u.Ay,{container:!0,spacing:1.5,sx:{mt:.5},children:[(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,ie.jsx)(d.A,{inputRef:ue,fullWidth:!0,size:"small",InputProps:{startAdornment:(0,ie.jsx)(m.A,{position:"start",children:(0,ie.jsx)(I.x$1,{style:{color:"#64748b"}})}),style:{borderRadius:"10px"}},variant:"outlined",label:"Contact Name",value:(null===zt||void 0===zt?void 0:zt.firstname)||"",onChange:e=>{Dt((0,s.A)((0,s.A)({},zt),{},{firstname:e.target.value}))}})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,ie.jsx)(d.A,{error:da,inputRef:me,fullWidth:!0,size:"small",type:"number",InputProps:{inputProps:{maxLength:10},startAdornment:(0,ie.jsx)(m.A,{position:"start",children:(0,ie.jsx)(C.dRU,{style:{color:da?"#ef4444":"#64748b"}})}),style:{borderRadius:"10px"}},variant:"outlined",label:"Contact Number",value:(null===zt||void 0===zt?void 0:zt.contactno)||"",onChange:e=>{e.target.value.length<=10&&Dt((0,s.A)((0,s.A)({},zt),{},{contactno:e.target.value})),la==e.target.value?sa(0):sa(1),e.target.value.length<10?ua(!0):ua(!1)}})})]}),(0,ie.jsx)(r.A,{className:"field-group-caption",sx:{mt:2},children:"Address Lookup"}),0==Wt?(0,ie.jsx)(d.A,{id:"addressAuto1",fullWidth:!0,size:"small",placeholder:"Search Google Maps for an address...",variant:"outlined",value:te||"",onChange:e=>ae(e.target.value),helperText:"Start typing to auto-fill the address details below",FormHelperTextProps:{className:"address-search-helper pickup-helper"},InputProps:{startAdornment:(0,ie.jsx)(m.A,{position:"start",children:(0,ie.jsx)(q.A,{style:{fontSize:15,color:"#662582"}})}),endAdornment:(0,ie.jsx)(h.A,{onClick:()=>{ae(""),Dt((0,s.A)((0,s.A)({},zt),{},{doorno:"",suburb:"",city:"",postcode:"",landmark:""})),Xe(!1),$e({latitude:0,longitude:0})},size:"small",children:(0,ie.jsx)(w.A,{fontSize:"small"})}),style:{borderRadius:"10px",background:"#fff"}}}):(0,ie.jsx)(d.A,{variant:"outlined",fullWidth:!0,size:"small",helperText:"Saved address selected \xb7 clear to search again",FormHelperTextProps:{className:"address-search-helper pickup-helper"},InputProps:{startAdornment:(0,ie.jsx)(m.A,{position:"start",children:(0,ie.jsx)(I.sIY,{style:{fontSize:14,color:"#662582"}})}),endAdornment:(0,ie.jsx)(h.A,{onClick:()=>{Ht(0),Dt((0,s.A)((0,s.A)({},zt),{},{doorno:"",suburb:"",city:"",postcode:"",landmark:""})),Xe(!1),$e({latitude:0,longitude:0})},size:"small",children:(0,ie.jsx)(z.A,{fontSize:"small"})}),style:{borderRadius:"10px",background:"#fff"}},value:(null===zt||void 0===zt?void 0:zt.address)||"",onChange:e=>{Dt((0,s.A)((0,s.A)({},zt),{},{address:e.target.value})),""==e.target.value&&(Ht(0),Xe(!1),$e({latitude:0,longitude:0}))}}),(0,ie.jsx)(r.A,{className:"field-group-caption",sx:{mt:2},children:"Address Details"}),(0,ie.jsxs)(u.Ay,{container:!0,spacing:1.5,sx:{mt:.5},children:[(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,ie.jsx)(d.A,{fullWidth:!0,size:"small",InputProps:{startAdornment:(0,ie.jsx)(m.A,{position:"start",children:(0,ie.jsx)(_.V92,{style:{color:"#64748b",fontSize:"20px"}})}),style:{borderRadius:"10px"}},variant:"outlined",label:"Door No / Street",value:(null===zt||void 0===zt?void 0:zt.doorno)||"",onChange:e=>{Dt((0,s.A)((0,s.A)({},zt),{},{doorno:e.target.value}))}})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,ie.jsx)(d.A,{fullWidth:!0,size:"small",InputProps:{startAdornment:(0,ie.jsx)(m.A,{position:"start",children:(0,ie.jsx)(I.sIY,{style:{color:"#64748b"}})}),style:{borderRadius:"10px"}},variant:"outlined",label:"Location",value:(null===zt||void 0===zt?void 0:zt.suburb)||"",onChange:e=>{Dt((0,s.A)((0,s.A)({},zt),{},{suburb:e.target.value}))}})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,ie.jsx)(d.A,{fullWidth:!0,size:"small",InputProps:{startAdornment:(0,ie.jsx)(m.A,{position:"start",children:(0,ie.jsx)(Y.BND,{style:{color:"#64748b",fontSize:"20px"}})}),style:{borderRadius:"10px"}},variant:"outlined",label:"Postcode",value:(null===zt||void 0===zt?void 0:zt.postcode)||"",onChange:e=>{Dt((0,s.A)((0,s.A)({},zt),{},{postcode:e.target.value}))}})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,ie.jsx)(d.A,{fullWidth:!0,size:"small",InputProps:{startAdornment:(0,ie.jsx)(m.A,{position:"start",children:(0,ie.jsx)(I.Ndh,{style:{color:"#64748b"}})}),style:{borderRadius:"10px"}},variant:"outlined",label:"Landmark",value:(null===zt||void 0===zt?void 0:zt.landmark)||"",onChange:e=>{Dt((0,s.A)((0,s.A)({},zt),{},{landmark:e.target.value}))}})})]}),1==aa&&(0,ie.jsx)(l.A,{sx:{display:"flex",justifyContent:"flex-end",mt:1},children:(0,ie.jsx)(l.A,{className:"save-later-pill",children:(0,ie.jsx)(x.A,{control:(0,ie.jsx)(g.A,{size:"small",checked:1===Xt,onChange:e=>{Jt(e.target.checked?1:0)}}),label:"Save contact for later"})})}),(0,ie.jsxs)(l.A,{className:"step-nav",children:[(0,ie.jsx)(r.A,{className:"step-nav-hint",children:Ia?"Pickup looks good. Proceed to Drop details.":"Fill the required Pickup fields to continue."}),(0,ie.jsx)(p.A,{className:"step-nav-btn step-nav-next",disabled:!Ia,endIcon:(0,ie.jsx)(C.Z0P,{style:{fontSize:12}}),onClick:()=>_a(2),children:"Continue to Drop"})]})]}),(0,ie.jsxs)(l.A,{className:"location-panel drop-panel",sx:{display:2===Ca?"block":"none"},children:[(0,ie.jsxs)(l.A,{className:"lp-header",children:[(0,ie.jsxs)(l.A,{className:"lp-header-title",children:[(0,ie.jsx)(l.A,{className:"lp-badge",children:(0,ie.jsx)(I.sIY,{})}),(0,ie.jsxs)(l.A,{children:[(0,ie.jsx)(r.A,{className:"lp-title",children:"Drop"}),(0,ie.jsx)(r.A,{className:"lp-subtitle",children:"Where to deliver the parcel"})]})]}),(0,ie.jsx)(l.A,{className:"lp-header-actions",children:(0,ie.jsx)(p.A,{className:"lp-action-btn",size:"small",disabled:!vt,startIcon:(0,ie.jsx)(q.A,{style:{fontSize:13}}),onClick:()=>{xe||At||vt?xe||At?xe?(St(!0),Rt(2),ne("")):(0,X.k)("Please select Location!","warning",3e3):(0,X.k)("Please select Location and Tenant!","warning",3e3):(0,X.k)("Please select Location, Tenant and Business!","warning",3e3)},children:"From Saved"})})]}),(0,ie.jsx)(r.A,{className:"field-group-caption",children:"Contact"}),(0,ie.jsxs)(u.Ay,{container:!0,spacing:1.5,sx:{mt:.5},children:[(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,ie.jsx)(d.A,{inputRef:he,fullWidth:!0,size:"small",variant:"outlined",label:"Contact Name",InputProps:{startAdornment:(0,ie.jsx)(m.A,{position:"start",children:(0,ie.jsx)(I.x$1,{style:{color:"#64748b"}})}),style:{borderRadius:"10px"}},value:(null===Yt||void 0===Yt?void 0:Yt.firstname)||"",onChange:e=>{Mt((0,s.A)((0,s.A)({},Yt),{},{firstname:e.target.value}))}})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,ie.jsx)(d.A,{error:pa,fullWidth:!0,size:"small",type:"number",variant:"outlined",label:"Contact Number",InputProps:{startAdornment:(0,ie.jsx)(m.A,{position:"start",children:(0,ie.jsx)(C.dRU,{style:{color:pa?"#ef4444":"#64748b"}})}),style:{borderRadius:"10px"}},value:(null===Yt||void 0===Yt?void 0:Yt.contactno)||"",onChange:e=>{e.target.value.length<=10&&Mt((0,s.A)((0,s.A)({},Yt),{},{contactno:e.target.value})),ra==e.target.value?oa(0):oa(1),e.target.value.length<10?ma(!0):ma(!1)}})})]}),(0,ie.jsx)(r.A,{className:"field-group-caption",sx:{mt:2},children:"Address Lookup"}),0==Et?(0,ie.jsx)(d.A,{id:"addressAuto2",placeholder:"Search Google Maps for an address...",variant:"outlined",size:"small",fullWidth:!0,value:se||"",onChange:e=>ne(e.target.value),helperText:"Start typing to auto-fill the address details below",FormHelperTextProps:{className:"address-search-helper drop-helper"},InputProps:{startAdornment:(0,ie.jsx)(m.A,{position:"start",children:(0,ie.jsx)(q.A,{style:{fontSize:15,color:"#65387a"}})}),endAdornment:(0,ie.jsx)(h.A,{onClick:()=>{ne(""),Mt((0,s.A)((0,s.A)({},Yt),{},{doorno:"",suburb:"",city:"",postcode:"",landmark:""})),Xe(!1),Ge({latitude:0,longitude:0})},size:"small",children:(0,ie.jsx)(w.A,{fontSize:"small"})}),style:{borderRadius:"10px",background:"#fff"}}}):(0,ie.jsx)(d.A,{variant:"outlined",fullWidth:!0,size:"small",helperText:"Saved address selected \xb7 clear to search again",FormHelperTextProps:{className:"address-search-helper drop-helper"},InputProps:{startAdornment:(0,ie.jsx)(m.A,{position:"start",children:(0,ie.jsx)(I.sIY,{style:{fontSize:14,color:"#65387a"}})}),endAdornment:(0,ie.jsx)(h.A,{onClick:()=>{Ft(0),Mt((0,s.A)((0,s.A)({},Yt),{},{doorno:"",suburb:"",city:"",postcode:"",landmark:""})),Xe(!1),Ge({latitude:0,longitude:0})},size:"small",children:(0,ie.jsx)(z.A,{fontSize:"small"})}),style:{borderRadius:"10px",background:"#fff"}},value:(null===Yt||void 0===Yt?void 0:Yt.address)||"",onChange:e=>{Mt((0,s.A)((0,s.A)({},Yt),{},{address:e.target.value})),""==e.target.value&&(Ft(0),Xe(!1),Ge({latitude:0,longitude:0}))}}),(0,ie.jsx)(r.A,{className:"field-group-caption",sx:{mt:2},children:"Address Details"}),(0,ie.jsxs)(u.Ay,{container:!0,spacing:1.5,sx:{mt:.5},children:[(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,ie.jsx)(d.A,{fullWidth:!0,size:"small",variant:"outlined",label:"Door No / Street",InputProps:{startAdornment:(0,ie.jsx)(m.A,{position:"start",children:(0,ie.jsx)(_.V92,{style:{color:"#64748b",fontSize:"20px"}})}),style:{borderRadius:"10px"}},value:(null===Yt||void 0===Yt?void 0:Yt.doorno)||"",onChange:e=>{Mt((0,s.A)((0,s.A)({},Yt),{},{doorno:e.target.value}))}})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,ie.jsx)(d.A,{fullWidth:!0,size:"small",variant:"outlined",label:"Location",InputProps:{startAdornment:(0,ie.jsx)(m.A,{position:"start",children:(0,ie.jsx)(I.sIY,{style:{color:"#64748b"}})}),style:{borderRadius:"10px"}},value:(null===Yt||void 0===Yt?void 0:Yt.suburb)||"",onChange:e=>{Mt((0,s.A)((0,s.A)({},Yt),{},{suburb:e.target.value}))}})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,ie.jsx)(d.A,{fullWidth:!0,size:"small",variant:"outlined",label:"Postcode",InputProps:{startAdornment:(0,ie.jsx)(m.A,{position:"start",children:(0,ie.jsx)(Y.BND,{style:{color:"#64748b",fontSize:"20px"}})}),style:{borderRadius:"10px"}},value:(null===Yt||void 0===Yt?void 0:Yt.postcode)||"",onChange:e=>{Mt((0,s.A)((0,s.A)({},Yt),{},{postcode:e.target.value}))}})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,ie.jsx)(d.A,{fullWidth:!0,size:"small",variant:"outlined",label:"Landmark",InputProps:{startAdornment:(0,ie.jsx)(m.A,{position:"start",children:(0,ie.jsx)(I.Ndh,{style:{color:"#64748b"}})}),style:{borderRadius:"10px"}},value:(null===Yt||void 0===Yt?void 0:Yt.landmark)||"",onChange:e=>{Mt((0,s.A)((0,s.A)({},Yt),{},{landmark:e.target.value}))}})})]}),1==na&&(0,ie.jsx)(l.A,{sx:{display:"flex",justifyContent:"flex-end",mt:1},children:(0,ie.jsx)(l.A,{className:"save-later-pill",children:(0,ie.jsx)(x.A,{control:(0,ie.jsx)(g.A,{size:"small",checked:1===ea,onChange:e=>{ta(e.target.checked?1:0)}}),label:"Save contact for later"})})}),(0,ie.jsxs)(l.A,{className:"step-nav",children:[(0,ie.jsx)(p.A,{className:"step-nav-btn step-nav-back",startIcon:(0,ie.jsx)(C.QVr,{style:{fontSize:12}}),onClick:()=>_a(1),children:"Back to Pickup"}),(0,ie.jsx)(r.A,{className:"step-nav-hint",children:"Review the route below once Drop is filled."})]})]})]})]}),(0,ie.jsxs)(i.A,{className:"orders-card",sx:{p:{xs:1.5,sm:1.75,lg:2}},children:[(0,ie.jsx)(l.A,{className:"section-title-bar",sx:{mb:1.25},children:(0,ie.jsx)(r.A,{sx:{fontWeight:700,color:"#1e293b",fontSize:"15px",letterSpacing:"-0.01em"},children:"Cargo & Dispatch Logistics"})}),(0,ie.jsxs)(u.Ay,{container:!0,spacing:1.5,alignItems:"stretch",children:[(0,ie.jsx)(u.Ay,{item:!0,xs:12,sx:{pt:"0 !important"},children:(0,ie.jsxs)(l.A,{sx:{display:"flex",alignItems:"center",gap:1,mb:.25},children:[(0,ie.jsx)(r.A,{sx:{fontWeight:700,fontSize:"10.5px",color:"#64748b",letterSpacing:"0.7px",textTransform:"uppercase"},children:"Cargo Details"}),(0,ie.jsx)(l.A,{sx:{flex:1,height:"1px",background:"linear-gradient(90deg, #eef2f6 0%, transparent 100%)"}})]})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:4,children:(0,ie.jsx)(A.A,{children:(0,ie.jsx)(c.A,{id:"combo-box-demo",size:"small",options:ct,getOptionLabel:e=>(null===e||void 0===e?void 0:e.subcategoryname)||"",fullWidth:!0,sx:{"& .MuiOutlinedInput-root":{borderRadius:"12px",height:"38px",paddingTop:"0px !important",paddingBottom:"0px !important"}},renderInput:e=>(0,ie.jsx)(d.A,(0,s.A)((0,s.A)({},e),{},{label:"Category",size:"small",InputLabelProps:{shrink:!0},sx:{"& .MuiOutlinedInput-root":{borderRadius:"12px",height:"38px"}},InputProps:(0,s.A)((0,s.A)({},e.InputProps),{},{startAdornment:(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(C.TXh,{style:{color:"#94a3b8",fontSize:13,marginRight:6,marginLeft:2,flexShrink:0}}),e.InputProps.startAdornment]})})})),onChange:(e,t,a)=>{t?(console.log(t),pt(t.subcategoryname||""),ht(t.subcategoryid||0)):a&&(pt(null),ht(null))}})})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:4,children:(0,ie.jsx)(A.A,{children:(0,ie.jsx)(d.A,{type:"number",size:"small",value:ga,fullWidth:!0,label:"Cash Collect",InputLabelProps:{shrink:!0},onChange:e=>{Aa(e.target.value)},inputProps:{min:0},sx:{"& .MuiOutlinedInput-root":{borderRadius:"12px",height:"38px"}},InputProps:{startAdornment:(0,ie.jsx)(m.A,{position:"start",children:(0,ie.jsx)(l.A,{sx:{color:"#94a3b8",fontWeight:700,fontSize:14,lineHeight:1},children:"\u20b9"})})}})})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:4,children:(0,ie.jsx)(A.A,{children:(0,ie.jsx)(d.A,{type:"number",size:"small",value:fa,fullWidth:!0,label:"Quantity",InputLabelProps:{shrink:!0},onChange:e=>{va(e.target.value)},inputProps:{min:1},sx:{"& .MuiOutlinedInput-root":{borderRadius:"12px",height:"38px"}},InputProps:{startAdornment:(0,ie.jsx)(m.A,{position:"start",children:(0,ie.jsx)(C.H5e,{style:{color:"#94a3b8",fontSize:14}})})}})})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,sx:{mt:.5,pb:0},children:(0,ie.jsxs)(l.A,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[(0,ie.jsxs)(r.A,{sx:{display:"flex",alignItems:"center",gap:.75,fontWeight:700,fontSize:"10.5px",color:"#64748b",letterSpacing:"0.7px",textTransform:"uppercase"},children:[(0,ie.jsx)(K.A,{style:{fontSize:"11px",color:"#65387a"}}),"Schedule Details"]}),(0,ie.jsx)(l.A,{sx:{flex:1,height:"1px",background:"linear-gradient(90deg, #eef2f6 0%, transparent 100%)"}})]})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,sx:{pt:"0px !important"},children:(0,ie.jsxs)(u.Ay,{container:!0,spacing:1.5,sx:{mt:.5},children:[(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,ie.jsx)(E.$,{dateAdapter:F.R,children:(0,ie.jsx)(H.l,{label:"Pickup Date",format:"DD-MM-YYYY",onChange:e=>{let t=B()().diff(B()("".concat(B()(e).format("YYYY-MM-DD"))),"d");if(Ue(""),t<=0){ye(e);let t=[];Pe.map((a=>{B()().diff(B()("".concat(B()(e).format("MM-DD-YYYY")," ").concat(B()(a).format("HH:mm:ss"))),"m")<=0&&t.push(a)}))}else He("choose Upcoming Date"),Ya("choose Upcoming Date","warning"),ye(NaN)},value:B()(be),sx:{width:"100%","& .MuiOutlinedInput-root":{borderRadius:"12px",height:"38px"}},slotProps:{textField:{size:"small",fullWidth:!0,InputLabelProps:{shrink:!0},InputProps:{startAdornment:(0,ie.jsx)(m.A,{position:"start",children:(0,ie.jsx)(K.A,{style:{color:"#94a3b8",fontSize:"13px"}})})},sx:{"& .MuiOutlinedInput-root":{borderRadius:"12px",height:"38px",paddingLeft:"10px"}}}},disablePast:!0})})}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,sm:6,children:(0,ie.jsx)(c.A,{size:"small",fullWidth:!0,options:Sa||[],sx:{width:"100%","& .MuiOutlinedInput-root":{borderRadius:"12px",height:"38px",paddingTop:"0px !important",paddingBottom:"0px !important"}},onChange:(e,t,a)=>{if("clear"!==a&&t){const e=B()(t.time,"HH:mm").format("hh:mm A");Ue(e);const a=B()("".concat(be," ").concat(e),"MM-DD-YYYY hh:mm A").format("YYYY-MM-DD hh:mm A");Pa(a)}else Ue(null),Pa(null)},getOptionLabel:e=>e?"".concat(e.name," (").concat(B()(e.time,"HH:mm").format("hh:mm A"),")"):"",renderInput:e=>(0,ie.jsx)(d.A,(0,s.A)((0,s.A)({},e),{},{label:"Pickup Time Slot",placeholder:"Select Pickup Slot",fullWidth:!0,InputLabelProps:{shrink:!0},sx:{"& .MuiOutlinedInput-root":{borderRadius:"12px",height:"38px"}},InputProps:(0,s.A)((0,s.A)({},e.InputProps),{},{startAdornment:(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(V.A,{style:{color:"#94a3b8",fontSize:"13px",marginRight:"6px",marginLeft:"2px",flexShrink:0}}),e.InputProps.startAdornment]})})}))})})]})})]})]})]}),(0,ie.jsx)(u.Ay,{item:!0,xs:12,lg:4.5,sx:{position:{lg:"sticky"},top:{lg:"24px"},height:"fit-content"},children:(0,ie.jsxs)(A.A,{spacing:2,children:[(0,ie.jsxs)(i.A,{className:"orders-card",sx:{p:1.5,display:"flex",flexDirection:"column"},children:[(0,ie.jsxs)(r.A,{sx:{fontWeight:700,mb:1.25,display:"flex",alignItems:"center",gap:.75,color:"#1e293b",fontSize:"14px",letterSpacing:"-0.01em"},children:[(0,ie.jsx)(G.A,{sx:{color:"#662582",fontSize:16}}),"Live Route Preview"]}),(0,ie.jsx)("div",{className:"map-preview-wrapper",children:(0,ie.jsx)(pe,{startPoint:Ve,endPoint:Ze,appLocaLat:Bt,appLocaLng:qt})})]}),(0,ie.jsxs)(i.A,{className:"orders-card delivery-prefs-card",sx:{p:1.5},children:[(0,ie.jsxs)(l.A,{className:"delivery-prefs-header",children:[(0,ie.jsx)(r.A,{className:"delivery-prefs-title",children:"Delivery Preferences"}),(0,ie.jsx)(r.A,{className:"delivery-prefs-sub",children:"Customer notifications & dispatch instructions"})]}),(0,ie.jsxs)(l.A,{className:"delivery-prefs-row",children:[(0,ie.jsxs)(l.A,{className:"delivery-prefs-field",children:[(0,ie.jsxs)("label",{className:"delivery-prefs-label",htmlFor:"dispatch-notes-input",children:[(0,ie.jsx)($.A,{style:{fontSize:11,color:"#65387a"}}),"Special Dispatch Notes"]}),(0,ie.jsx)(d.A,{id:"dispatch-notes-input",size:"small",fullWidth:!0,placeholder:"Gate codes, call instructions, special cargo care\u2026",value:_e,onChange:e=>Ie(e.target.value),sx:{"& .MuiOutlinedInput-root":{borderRadius:"10px",padding:"0 10px",alignItems:"center",fontSize:"12px",background:"#ffffff",height:"32px"},"& .MuiOutlinedInput-input":{padding:"0 !important",fontSize:"12px !important",lineHeight:"32px"}}})]}),(0,ie.jsxs)(l.A,{className:"sms-toggle-tile ".concat(1===ha?"is-active":""),onClick:()=>xa(1===ha?0:1),role:"button",tabIndex:0,children:[(0,ie.jsxs)(l.A,{className:"sms-toggle-left",children:[(0,ie.jsx)(l.A,{className:"sms-toggle-icon",children:(0,ie.jsx)(Z.A,{style:{fontSize:13}})}),(0,ie.jsxs)(l.A,{sx:{minWidth:0},children:[(0,ie.jsx)(r.A,{className:"sms-toggle-title",children:"SMS Updates"}),(0,ie.jsx)(r.A,{className:"sms-toggle-sub",children:"Auto-notify customer on dispatch & delivery"})]})]}),(0,ie.jsx)(f.A,{size:"small",checked:1===ha,onChange:e=>{e.stopPropagation(),xa(e.target.checked?1:0)}})]})]})]}),(0,ie.jsxs)(i.A,{className:"orders-card pricing-summary-card",children:[(0,ie.jsxs)(l.A,{className:"pricing-header",children:[(0,ie.jsx)(r.A,{className:"pricing-title",children:"Pricing & Dispatch"}),(0,ie.jsx)(r.A,{className:"pricing-subtitle",children:"Live cost estimate"})]}),(0,ie.jsxs)("div",{className:"price-metric-item",children:[(0,ie.jsxs)("div",{className:"price-metric-label",children:[(0,ie.jsx)("span",{className:"price-metric-icon icon-distance",children:(0,ie.jsx)(C.$Fg,{})}),(0,ie.jsx)("span",{children:"Delivery Distance"})]}),(0,ie.jsx)("div",{className:"price-metric-value ".concat(Qe?"highlight":""),children:Qe?"".concat(Je," km"):"\u2014"})]}),(0,ie.jsxs)("div",{className:"price-metric-item",children:[(0,ie.jsxs)("div",{className:"price-metric-label",children:[(0,ie.jsx)("span",{className:"price-metric-icon icon-base",children:(0,ie.jsx)(C.MxO,{})}),(0,ie.jsxs)("span",{children:["Base Fare",(0,ie.jsxs)("span",{className:"price-metric-sub",children:[" \xb7 ",ot," km"]})]})]}),(0,ie.jsx)("div",{className:"price-metric-value",children:tt?"\u20b9".concat(tt.toFixed(2)):"\u20b90.00"})]}),(0,ie.jsxs)("div",{className:"price-metric-item",children:[(0,ie.jsxs)("div",{className:"price-metric-label",children:[(0,ie.jsx)("span",{className:"price-metric-icon icon-rate",children:(0,ie.jsx)(C.YYR,{})}),(0,ie.jsx)("span",{children:"Rate per km"})]}),(0,ie.jsxs)("div",{className:"price-metric-value",children:[st?"\u20b9".concat(st.toFixed(2)):"\u20b90.00",(0,ie.jsx)("span",{className:"price-metric-unit",children:"/km"})]})]}),Qe&&(0,ie.jsxs)("div",{className:"total-charge-badge",children:[(0,ie.jsxs)("div",{className:"total-charge-left",children:[(0,ie.jsx)(C.wTh,{className:"total-charge-icon"}),(0,ie.jsx)("div",{className:"total-charge-label",children:"Total Delivery Charge"})]}),(0,ie.jsxs)("div",{className:"total-charge-val",children:["\u20b9",it.toFixed(2)]})]}),(0,ie.jsx)(l.A,{sx:{mt:1.5},children:(0,ie.jsx)(le.A,{children:(0,ie.jsx)(p.A,{fullWidth:!0,className:"gradient-btn-create",disabled:!Qe||!Be||!wa,startIcon:!Le&&(0,ie.jsx)(C.Cer,{style:{fontSize:11}}),onClick:()=>{Me(!0),Re(!0),(async()=>{let e={};if(e={orders:{applocationid:Te.applolcationid,cancellled:"",categoryid:+Te.categoryid,configid:9,customerid:0==Xt&&+zt.customerid||0,deliveryaddress:Yt.address||"",deliverycharge:+it.toFixed(2)||0,deliverycity:Yt.city||"",deliverycontactno:Yt.contactno||"",deliverycustomer:Yt.firstname||"",deliveryid:0==ea&&+Yt.customerid||0,deliverylandmark:Yt.landmark||"",deliverylat:Yt.latitude.toString(),deliverylocation:Yt.suburb||"",deliverylocationid:Yt.deliverylocationid||0,deliverylong:Yt.longitude.toString(),deliverytime:"".concat(B()(be).format("YYYY-MM-DD")," ").concat(B()(Be.$d).format("HH:mm:ss")),deliverytype:"B",delivered:"",itemcount:1,kms:Je.toString()||0,locationid:+vt,moduleid:+Te.moduleid,orderamount:+it.toFixed(2)||0,ordercharges:0,orderdate:B()().format("YYYY-MM-DD HH:mm:ss"),ordernotes:_e,orderstatus:"created",ordervalue:+it.toFixed(2)||0,partnerid:Te.partnerid,partneruserid:+Qt,paymentstatus:1,paymenttype:42,pickupaddress:zt.address||"",pickupcity:zt.city||"",pickupcontactno:zt.contactno||"",pickupcustomer:zt.firstname||"",pickuplandmark:zt.landmark||"",pickuplat:zt.latitude.toString()||"",pickuplocation:zt.suburb||"",pickuplocationid:zt.deliverylocationid||0,pickuplong:zt.longitude.toString()||"",smsdelivery:ha,subcategoryid:+mt,tenantid:Te.tenantid,collectionamt:+ga,quantity:+fa,weight:xt,pickupSlot:wa},pickup:{address:zt.address||"",applocationid:Te.applolcationid,city:zt.city||"",configid:1,contactno:zt.contactno||"",customertoken:"",customerid:0==Xt&&zt.customerid||0,devicetype:"",deviceid:"",dialcode:"+91",doorno:zt.doorno||"",email:zt.email||"",firstname:zt.firstname||"",landmark:zt.landmark||"",latitude:zt.latitude.toString()||"",longitude:zt.longitude.toString()||"",postcode:zt.postcode||"",primaryaddress:1,locationid:zt.deliverylocationid||0,profileimage:"",state:zt.state||"",suburb:zt.suburb||"",tenantid:Te.tenantid},drop:{address:Yt.address||"",applocationid:Te.applolcationid,city:Yt.city||"",configid:1,contactno:Yt.contactno||"",customertoken:"",customerid:0==ea&&Yt.customerid||0,devicetype:"",deviceid:"",locationid:Yt.deliverylocationid||0,dialcode:"+91",doorno:Yt.doorno||"",email:Yt.email||"",firstname:Yt.firstname||"",landmark:Yt.landmark||"",latitude:Yt.latitude.toString(),longitude:Yt.longitude.toString(),postcode:Yt.postcode||"",primaryaddress:1,profileimage:"",state:Yt.state||"",suburb:Yt.suburb||"",tenantid:Te.tenantid}},console.log("createsubmitobj2",e),zt.firstname)if(zt.contactno)if(10!=zt.contactno.length)Ya("Check Pickup Contact Number ","error",2e3);else if(zt.suburb)if(zt.city)if(zt.postcode)if(zt.landmark)if(Yt.firstname)if(Yt.contactno)if(10!==Yt.contactno.length)Ya("Check Drop Contact Number ","error",2e3);else if(Yt.suburb)if(Yt.city)if(Yt.postcode)if(Yt.landmark)if(Be)if(ht)try{const a=await M.A.post("".concat("https://jupiter.nearle.app/live/api/v2","/orders/createorder"),e);a.data.status?(console.log("createRes",a),(0,U.M8)("Order Created Successfully",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:1e3}),Ee&&La(),t("/nearle/orders")):Ya("Error in creating orders","warning"),Me(!1)}catch(a){Ya(a.message,"warning"),console.log("createResErr",a)}else Ya("Choose SubCategory ","warning",2e3);else Ya("Choose deliverytime ","warning",2e3);else Ya("Enter Drop Landmark ","warning",2e3);else Ya("Enter Drop postcode ","warning",2e3);else Ya("Enter Drop City ","warning",2e3);else Ya("Enter Drop Suburb ","warning",2e3);else Ya("Enter Drop Contact Number","warning",2e3);else Ya("Enter Drop Contact Name ","warning",2e3);else Ya("Enter Pickup Landmark ","warning",2e3);else Ya("Enter Pickup Postcode ","warning",2e3);else Ya("Enter Pickup City ","warning",2e3);else Ya("Enter Pickup Location ","warning",2e3);else Ya("Enter Pickup Contact Number ","warning",2e3);else Ya("Enter Pickup Contact Name ","warning",2e3)})(),setTimeout((()=>{Me(!1),Re(!1)}),2e3)},children:Le?(0,ie.jsx)(v.A,{color:"inherit",size:16,thickness:5}):"Dispatch Delivery Order"})})})]})]})})]})]}),(0,ie.jsxs)(T.A,{open:kt,onClose:()=>{St(!1),wt("")},fullWidth:!0,fullScreen:O,sx:{"& .MuiDialog-paper":{borderRadius:{xs:0,sm:"16px"},overflow:"hidden"}},children:[(0,ie.jsx)(j.A,{sx:{background:"linear-gradient(135deg, #662582 0%, #9255AB 100%)",color:"white",py:2.5},children:(0,ie.jsxs)(A.A,{spacing:1.5,children:[(0,ie.jsx)(r.A,{variant:"h4",sx:{fontWeight:600,color:"white"},children:"Select Saved Address (".concat(1===Lt?"Pickup":"Drop",")")}),(0,ie.jsx)(b.A,{sx:{width:"100%"},children:(0,ie.jsx)(y.A,{autoFocus:!0,fullWidth:!0,id:"input-search-header",placeholder:"Search by name, contact, or address...",value:Nt,onChange:e=>wt(e.target.value),sx:{bgcolor:"white",borderRadius:"10px","& .MuiOutlinedInput-input":{p:"10px 14px"}},startAdornment:(0,ie.jsx)(m.A,{position:"start",children:(0,ie.jsx)(q.A,{style:{fontSize:"small",color:"#64748b"}})}),endAdornment:(0,ie.jsx)(h.A,{sx:{visibility:Nt?"visible":"hidden",p:.5},onClick:()=>{wt("")},children:(0,ie.jsx)(z.A,{style:{fontSize:"18px"}})}),autoComplete:"off"})})]})}),(0,ie.jsx)(k.A,{}),(0,ie.jsx)(S.A,{sx:{p:3,maxHeight:"600px",overflowY:"auto",bgcolor:"#fafbfc"},children:0==(null===Pt||void 0===Pt?void 0:Pt.length)?(0,ie.jsx)(A.A,{spacing:2,direction:"row",alignItems:"center",justifyContent:"center",sx:{minHeight:300},children:(0,ie.jsx)(P.A,{description:"No saved addresses found for this client"})}):(0,ie.jsx)(l.A,{children:Pt&&Pt.map(((e,t)=>(0,ie.jsx)(p.A,{className:"address-card-btn",onClick:()=>{St(!1),wt(""),1===Lt?(console.log("PickupClient",e),Ht(1),$e({latitude:e.latitude,longitude:e.longitude}),Dt(e),ia(e.contactno)):(console.log("DropClient",e),Ft(1),Ge({latitude:e.latitude,longitude:e.longitude}),Mt(e),ca(e.contactno))},disabled:(null===zt||void 0===zt?void 0:zt.customerid)===e.customerid,children:(0,ie.jsxs)("div",{style:{width:"100%",display:"flex",flexDirection:"column"},children:[(0,ie.jsx)(r.A,{variant:"subtitle1",sx:{textAlign:"left",fontWeight:600,color:"#1e293b"},children:"".concat(e.firstname," (").concat(e.contactno,")")}),(0,ie.jsx)(r.A,{variant:"body2",sx:{textAlign:"left",color:"#64748b",mt:.5,lineHeight:1.4},children:e.address})]})},t)))})}),(0,ie.jsx)(k.A,{}),(0,ie.jsx)(N.A,{sx:{p:2.5,bgcolor:"#fafbfc"},children:(0,ie.jsx)(p.A,{color:"error",variant:"outlined",sx:{borderRadius:"8px",textTransform:"none",px:3,"&:hover":{bgcolor:"#ef4444",color:"white",borderColor:"#ef4444"}},onClick:()=>{St(!1),wt("")},children:"Cancel"})})]}),(0,ie.jsxs)(T.A,{open:Ae,onClose:()=>{fe(!1)},fullWidth:!0,sx:{"& .MuiDialog-paper":{borderRadius:{xs:3,sm:"16px"},p:1.5,m:{xs:1.5,sm:4},width:{xs:"calc(100% - 24px)",sm:"auto"},maxWidth:"400px"}},children:[(0,ie.jsxs)(j.A,{sx:{textAlign:"center",pb:1},children:[(0,ie.jsx)(Q.A,{sx:{fontSize:70,color:a.palette.error.main,mb:1}}),(0,ie.jsx)(r.A,{variant:"h3",sx:{color:a.palette.error.main,fontWeight:700},children:"Dispatch Blocked"})]}),(0,ie.jsx)(S.A,{sx:{textAlign:"center",pb:2},children:(0,ie.jsx)(r.A,{variant:"body1",sx:{color:"#64748b",lineHeight:1.5},children:"Our delivery partners cannot service this coordinate combination. The route distance exceeds the active operating radius for this app location."})}),(0,ie.jsx)(N.A,{sx:{bgcolor:a.palette.error.main,borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"16px",fontWeight:600,color:"white",cursor:"pointer",py:1.5,mx:2.5,mb:2,transition:"background-color 0.2s ease","&:hover":{bgcolor:a.palette.error.dark}},onClick:()=>{fe(!1)},children:"Acknowledge & Close"})]})]})}}}]); \ No newline at end of file diff --git a/build/static/js/9593.4ad5bb1b.chunk.js b/build/static/js/9593.4ad5bb1b.chunk.js deleted file mode 100644 index 6be8be9..0000000 --- a/build/static/js/9593.4ad5bb1b.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9593],{23787:(e,t,r)=>{r.d(t,{FG:()=>h,nV:()=>x,pY:()=>p,pg:()=>u});var o=r(89379),i=r(80045),n=r(93230),s=r(2235),l=r(16491),a=r(82053),c=r(44414);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:t,scroll:r=!1,onScroll:s,sx:l}=e,a=(0,i.A)(e,d);return(0,c.jsx)(n.A,(0,o.A)((0,o.A)({spacing:1.25,onScroll:s,sx:(0,o.A)((0,o.A)({p:1.5},r&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),l)},a),{},{children:t}))},u=e=>{let{accent:t="#662582",header:r,footer:i,selected:n=!1,onClick:a,children:d,sx:x}=e;return(0,c.jsxs)(s.A,{elevation:0,onClick:a,sx:(0,o.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:n?t:"#e2e8f0",background:n?"".concat(t,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,c.jsx)(l.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:t}}),(0,c.jsxs)(l.A,{sx:{p:1.5,pl:2},children:[r,d,i]})]})},h=e=>{let{children:t,columns:r=2,sx:i}=e;return(0,c.jsx)(l.A,{sx:(0,o.A)({display:"grid",gridTemplateColumns:"repeat(".concat(r,", minmax(0, 1fr))"),gap:1,mt:1.25},i),children:t})},p=e=>{let{label:t,value:r,children:o,full:i=!1,align:n="left"}=e;return(0,c.jsxs)(l.A,{sx:{gridColumn:i?"1 / -1":"auto",minWidth:0,textAlign:n},children:[(0,c.jsx)(a.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:t}),(0,c.jsx)(l.A,{sx:{mt:.25,minWidth:0},children:void 0!==o?o:(0,c.jsx)(a.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==r&&void 0!==r?r:"\u2014"})})]})}},27001:(e,t,r)=>{r.d(t,{A:()=>l});var o=r(93230),i=r(16491),n=r(82053),s=r(44414);function l(e){let{title:t,subtitle:r,live:l=!1,action:a}=e;return(0,s.jsxs)(o.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,s.jsxs)(i.A,{sx:{minWidth:0},children:[(0,s.jsx)(n.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:t}),r&&(0,s.jsxs)(o.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[l&&(0,s.jsx)(i.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,s.jsx)(n.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:r})]})]}),a&&(0,s.jsx)(i.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:a})]})}},36803:(e,t,r)=>{r.d(t,{A:()=>x});var o=r(48089),i=r(50704),n=r(93230),s=r(16491),l=r(82053),a=r(82917),c=r(41413),d=r(44414);function x(e){let{title:t,value:r,icon:x,color:u="#662582",caption:h,loading:p=!1}=e;return(0,d.jsx)(o.A,{sx:{height:"100%"},children:(0,d.jsx)(i.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,d.jsxs)(n.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,d.jsxs)(s.A,{sx:{minWidth:0,flex:1},children:[(0,d.jsx)(l.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t}),p?(0,d.jsx)(a.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,d.jsx)(l.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r}),h&&(0,d.jsx)(l.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:h})]}),x&&(0,d.jsx)(c.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(u,"14"),color:u,flexShrink:0},children:x})]})})})}},56311:(e,t,r)=>{r.d(t,{A:()=>h});var o=r(89379),i=r(9950),n=r(2660),s=r(2046),l=r(83274),a=r(25333),c=r(97125),d=r(7762),x=r(52097),u=r(44414);const h=e=>{let{value:t,onChange:r,onDebouncedChange:h,debounceTime:p=500,placeholder:f="Search (ctrl+k)",sx:g}=e;const b=(0,i.useRef)(null),[v]=(0,x.d7)(t,p);return(0,i.useEffect)((()=>{h&&h(v)}),[v,h]),(0,i.useEffect)((()=>{const e=e=>{var t;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(t=b.current)||void 0===t||t.focus());"Escape"===e.key&&document.activeElement===b.current&&b.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,u.jsx)(n.A,{sx:(0,o.A)({},g),inputRef:b,placeholder:f,autoComplete:"off",value:t,fullWidth:!0,onChange:e=>r(e.target.value),startAdornment:(0,u.jsx)(s.A,{position:"start",sx:{mr:-.5},children:(0,u.jsx)(c.A,{})}),endAdornment:(0,u.jsx)(l.A,{title:"Clear",children:(0,u.jsx)(a.A,{sx:{visibility:t?"visible":"hidden"},onClick:()=>r(""),children:(0,u.jsx)(d.A,{})})})})}},58691:(e,t,r)=>{r.d(t,{A:()=>l});r(9950);var o=r(16491),i=r(46639),n=r(62217),s=r(44414);function l(e){let{size:t=70,imgSize:r=40,alt:l="loader"}=e;return(0,s.jsxs)(o.A,{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",children:[(0,s.jsx)(i.A,{size:t}),(0,s.jsx)(o.A,{position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",sx:{width:r,height:r},children:(0,s.jsx)("img",{src:n,alt:l,style:{width:"100%",height:"100%",borderRadius:"50%",objectFit:"contain"}})})]})}},59212:(e,t,r)=>{r.d(t,{A:()=>u});var o=r(89379),i=r(9950),n=r(93230),s=r(41413),l=r(77922),a=r(29925),c=r(26910),d=r(31222),x=r(44414);const u=(0,i.forwardRef)(((e,t)=>{let{setAppId:r,setLocoName:u,setPage:h,sx:p,textfeildSx:f,textfieldSx:g,pill:b=!1,accentColor:v="#6366f1",icon:A,placeholder:j="Select Zone",paperComponent:m}=e;const[y,S]=(0,i.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,i.useEffect)((()=>{0===y.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const t=await c.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(t.data.status){const e=[...t.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),S(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[y.length]);const w=e=>"".concat(v).concat(e),k=w("26"),C=w("18"),W=b?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(k)},"&.Mui-focused fieldset":{borderColor:v,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},z=b&&(0,x.jsx)(n.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,x.jsx)(s.A,{sx:{width:24,height:24,bgcolor:C,color:v,transition:"background-color 0.15s, color 0.15s"},children:A||(0,x.jsx)(d.HPi,{size:14})})});return(0,x.jsx)(l.A,{id:"location-autocomplete",options:y||[],getOptionLabel:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.locationname)&&void 0!==t?t:""},PaperComponent:m,sx:(0,o.A)({},p),onChange:(e,t,o)=>{"clear"===o?(null===r||void 0===r||r(0),null===u||void 0===u||u(""),null===h||void 0===h||h(0)):t&&(null===r||void 0===r||r(t.applocationid),null===u||void 0===u||u(t.locationname),null===h||void 0===h||h(0))},renderInput:e=>b?(0,x.jsx)(a.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,placeholder:j,InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:z}),sx:(0,o.A)((0,o.A)({},W),g||f||{})})):(0,x.jsx)(a.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,label:"Select Zones",sx:(0,o.A)({},g||f||{})}))})}))},62217:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAAA+CAYAAABzwahEAAAPnUlEQVR4AdVae3AU9R3/7d4jdyGQQKAhECBAJBSmEAtFSQUjqPgAHGlhRm0lDkWY6Tg+O9qiErR26h8WR8ZWqTMN1ur4qMpDrTyjtDwDJloeCYiBvAgkaZ53l7vb3X4/v9vfZS/Zu9uFwLSfmb3d293f7u/z+z5/399K7CphdW5JrupgBZosZ0ialmu8pklSjUOTamRJbvvjqTUV7CpAYlcIj+SWZHQ55WJZlm7UNK2IXpRhpZ3GWJskSWXUZrPD4Sp77eSva9gVwIATXz35+SJNYWs1phWxAYDEpDKVaZv+fOrZUjaAGDDiK695rpgetpYOc82upw72sMycdJbz/SzmHeKl/ynRay31bbS1s7rjTczXGYj3ihrShnUDNQCXTXzlNS8UyExdbybhSdeNYwXz81nBzflE2pKms7oT51ntiSa276NKVn3wrNktNcGQelNpTUkNuwxcFvFV+S88rKnKy8ZzkOz84uvYvOJZ/PhyAE3Y/+HXbN+HFVwjjJAlR8lr1WueY9wt2MclEYfj8rnkj+nwRnHOLuGWhnbmpfuMKh/3Xn0Atm74IuY8OcGPFYk99kbVM98xm7BFnDyttHLyb3MlRdsjSWycOA+VLv79YpY5Ork6V5efY59s/JJVHznH/+dMymLz7v0Rm71oWtK2GIDSJ7ew6kMxJlCjytI8u+Qddm4+93bPBIfqiiG96KG5RPouljokuZT3b/2avf7EB6ylsZ1dM2MsG5OfxU7RAFSWVbMAObUphRMTtsc7CpdMh6c3kqe8gN117Yh5W4627GljFmGZ+C/ynx/flzSkDPW2Aqj2+lV/Y5mj0tljG3/GFhQXspkLpnBJVx85yyq/OGWJPAANgzkd2/utOMXJzxp965vlF3YFrPRHZtYgSZq6vi/p2TT6VrF+1Vt8/yiRhnoLiIHAftc7h0kDzlp6HgYcfTAgVwmEPmIWzTeZxPEQaeWkkhJJk1eJk8vWLGBz75nBrAIqfmDrN2zhqjlsetGkftddKU6WQ2qPe6AZVuwdGPP9kWw4+ZWKnVXiVO6M4UXtR1rKDiZrm4g4J70871cTnMzzd3ESNn3bgz9mdgC7hmoufeKWuB4/c1QGV3nYfP7Msfy/FYB8rM1LC6YNm72lonXv+UTtEqr60qVLJTcbvEv8h20tfOhGZgeQtpBiZnZ6wnuhEUDFnlPMDhaSMCbNilohc0kp61mEW1y1j0u8hLR78Ff5xX3t2i5AHLjegvqOIdtHXK/8oorZRfGLiw3aJM1dkVeynA5kCsGm98cjLhNxh4O5nxEnoOJW4rQRkDRUF3adTNoAEprRRB7tfJ09zA7Qt3mGCCMz+dmioiLKcSRTjvGISw/kPbNcSDtzdLotDy6A+AyYObR4KCjK53ur3t2I+ct7s0b0Pfds4U04RuLV914z4rjJ4ZSc94sTSBrsShvYv62S76frZKwAYQ2orWpidoEExyh1tzPl6SlTpjhJ6v3u7Utcgm0vHf/wePKUc8TJS5E21LWu6gKbRBmalXwcgHp70yISg8QR3oTWWAWk3gtpbp6/cCiLRK8Y9k7jHzgCGh3n8om/ibpueHKr0vZT5lVZFvHItVWRaALVQ4pqxcYfL3opeoxcvlr3D4BVc4HU4eFFeMt0ZsHJvUzcFKPkY4gvW7YMGiC7ZfcicW723dalXUsS3lSyNeZcBUmsmaS/5p0Vlp4BVccADsvOYP6uAM/yKsqq7PkJmv8L4k7mmEu7DcRNIfIqkedu3qjq0pkzZ/DfITE5quZjp2Qxu0Dnha1iX1fdxD55fW/CNjANYN49s7jKI5O788E5kfY0oHZQcEuvT5GY8wbaye+//36MqsfY+JEjR6QlY1cX0CHvNdQmZ/JIZhUtjW3RzkNqsG90Hti2cS8fgGSoqz7Pp6loi/uH6wNnJ7zBNA0ZYvrdY1aMZ6hdGHQ9RuL473KmDBUnUB+zAyE1dP6me2fxpMUYljat3Zb0GfvJodWRRz9Aic/utw+Ts/NG1L/L0qQrCoRggVTXUGRPMULmNo44h0CflZXlcGiuXLPGdoDOo7Pw0EYpC5W/c9Wcfm3EoAGiSAF4h0QiQmtDmyUHKZAzZSSrPam/W5MgzJgUlo+CrgFSU1OT5GTOseKi7UytsT2GiJlqW1X5aB+IrJfCYXNDO7MDYwh1yA4kYvKMGTNkkcxw4ghjdJLfQ9ntJRcgWxqsFUCsqDzg1e0U5FtsEvfGVIQ4J9nv90fNXEhcgmPLyEAh49KJW4WZlzezYSE172BvjDbZhc5JPn78eH/nlpubK7e1tcWQtjtRaDXpnLHaYkRflTdbSEhN65V4a4Plclo/IC/TDyV9ixCnNJWFw2EpPT2dBcKBBtHA3+FndmCmjsueuJnIf8/0/mQq79UlDkdpV+LGOnxQ7aljOmFwBTjxY8eOSXV1day9vV1SlFCHaFB3wroT8sdZ+kE4QuXFDMkSG7+ucZmUxdmdqrbU9WpIINQuiPO5CM5x4pTVYMdTucbgt8ejjeutj3K8Tg0jaU2aMY4nJWYQKm+mLT7d7kUW2GrDwRmFFpD8Xax3xSUmZcUfPhL7L2yvp9XJTv7ijgAv4ltBPK8rHNRCPf00QzKVRzs8p7Y6YRktCqy99foMrWN73bsnWJ/ZmTGbUVlkADRFDUarlIYKZkKYeWUjUYSm+0sWmraFxHdTaTkRhtnI2bHwKBBUA3iwSv6LcxPnjV4dI6J5vV61W+04JM5X7LBG3Mwr9820oPLxZln+zsQpac6kkdG5QDLs+7AyetwRat0FTvqsLEpeJDBaTU2NQocqBXl1f9PnH4uGmN5ZcSpmqu41KSUvffwWy4UJIzCIxlQ2bj/ILxnX1mq6Tx0EJwrVKlVjNFF8NKasbMSIEeqgQYOUWl91W0gNlIvGu0oPJH2h31Ti/VNeqP8dJrm6KQnDYIp5erKwZpR2j9JTfrRldy1x4mZMCYwWk7mxiPjVixcvqt3d3WpKSopS6z/9J/GA3ZsOJZW6mRp640h2Pk1bsWhoBzAToLo8fhES0t4fo+YXoblhWZbDtOcaLa5FbZziGyc/ZMgQpaenJ7yz4b1DqhpuxDV492RSNxuYeF4cWF6yiNmB8OyJ1B3SFlFI1ZSGj2o3grjS2dnJSescYyswa9eu5cQ7OjpwE0YodLGn/jVxHVJPFNfNc21PQiKiSJEIxgGFZ49XfETfthk+HGiO9B08wsOHD8deNd4fJa7rPi6G09LSeINPm97cHFT9R3gHSOqlT25m8WCWXCRzYvMpqUmkFYBxQOHZYedmNXdj36Cp6LvOJdTc3KzS4oKqC5cjSlz3dvhRurq6Qh6PJ0SDETrefvQP4h54y76fYwhg+ffRjfeRCi/kkrx+0Q9oVSRx2SpRbI8S7+iVuAiP+KrCiK0bvozx5Idat68KBoMhCmNBcKFQrYC4KDQC0SqrfhIS56oeCASC5ORCh5o/Pz7aO279CE/Oo7hvG70EBYrCPrX26CzM+uoxh0hnUWYyJd4VmSihWvvJxkheX2uY1e0qPRij4q09TW98/Z8D59B3CmNBUnMFoVpMTgT6LigI44eqB2kwMNxBchJvk8ofFTdtempLTNi4XCCdjWcWqLwgrH3w0g4eCaBVq1/6Kb+GPrz3u+3Re31K95cfnHv1dfSZPDn6HoKq06qvqvVZPey3Po6RKSsr49cwVWWRwXE2+M7tyxs87VZZktNwsZJSWVRhJxTksMsFPgyY85MZbGrhBJqDe5kzxRGd20MjOlq6qNqawSOBWDcHaQhAQCG7Pty66+l29WKz0+n0k8ZCVQITJ04M7dy5U1m3bl0M8XjVFgyIizYP2ckgUpnBdJw6OeOHuYWZC191ys6o8WJtepHNNXMrgDeHE0MuALLG9Bc2bVTvsBo+v6/ls1+ebDv8Ham4j8IxZmPdtMEzhljvPCSKeMT5wmF2dra7sbExlY4H0QZJe4n82L7ksWRT/OJdl1yVtQqELHhvoyMjSZ//V4T0WbfbHSCnxklTxdhPxdMgaXjY6NSMBPtBX0ODikPqbto4eXpwKj0Y5MfMHHbzI6mOtJhADOkXLikY8AGA9JFA7S49FDMZCij+ih31bz3V2FPbqpOGlLH5aION94vfAnELi3qtHddBHJ7Hy3Sp0+YhO3Ivzl65Yrgn+wFjO3j82UumDcgAxCMMNPnPbdhc98a7LpcLThikYdOQNrdtcmhhKrD0U3GBZBVVieKfg5wdJJ+Smprq9fl8kH4qvdATCoVc+ekFo28YvvgVh0H1BWACWGLGBzpjLK7KoGSEGgC2Pl8wckDK/247+MrR1t2YL8N+IVmfThh7YdcKS/Cda1LiqFHRJufk5LioLuch8h6dvJfIpxB5aITzjtE/v32kZ/wDTpMBAJC+YkkKWmD8ktlHCQqKmrUnL7BWIh3vs23YcmPgu798Wv/Xz0CM3h2mdwd0wnwjn9QzatSoEJXKw1pEZeMTYxagq73w9FB7Suw8XlVVvaRi+A/yuO64bfR9t2eljL09xeEtYAOAQNhfcabrm9J/XtyGPIKn1Lp6B3X19tN6gJ/m29ymSUgKUlMzh2aEncUDmdRe1tXeaPce/dilbxgAOT99evbEQdOuHebJvsHrSC2gpec0Ky/RmNrlV3wVneHWrw427/hHc7C+k/IJEFZ1KSOjDFDIEtLmSRb1LUR94/dZeY+tVROoPDaQo1TQTS9PoSlfik4cA0B9c7mpc1z6GAByghISoZkjivI8MuVRjqEjU52DRuossXir+UJdFHcCXfW+b09VtR9tMnReoefxNJqeCbsF6R7KygL03B56N8/OWK/3tkTaNnHWa/M8zrNIru8iOik0GeADQGHFTabh0q85qL/8Kwu0xSBgTwPB6BiLGMZn83SZzmuQMAhTWz5voEeGoNcgTtWUHiqW8OO8vLww+R5lz5494UT2PBDEY9rSQqOTHAmP91TFdNGChJsyPTdlelztqcMu6i+XvNiIkBQRHlcPHGv6sUbHIKzo56J1AZBkvR5cSFhUVBR2CbD69bIpysvLecdoAHqINOytm0ijJt9J3r+TVBLHXfrGkwsiJRIMLF1i76MBEue7qE0XqTPadYiNnFen3j6Ad5HGYSDwTcslkQYGamVULLrLpH7y6dOnuY1TGctFFR0hcYfhvujinQ6eaNBgYc6sEHm+0WAKqatEWJkwYYI6depUjYhbtuWrBW775GGd1FEXFQA8FFsR8+HRMdFBKocgPrTvRkgnh4l70ijPxtwAzpLnCLpDvSztvFqQ9C8PuAPEINDeTdpgjADYjOFQhESn3s6hP+OKr9dfSUhCaiIcYjNIMur52f850f95/BfoYlARf1CQvwAAAABJRU5ErkJggg=="},79593:(e,t,r)=>{r.r(t),r.d(t,{default:()=>be});var o=r(89379),i=r(9950),n=r(99459),s=r(28429),l=r(26910),a=r(2235),c=r(41413),d=r(47223),x=r(55158),u=r(60899),h=r(93230),p=r(16491),f=r(82053),g=r(82917),b=r(94367),v=r(39919),A=r(1320),j=r(15769),m=r(69780),y=r(9213),S=r(21671),w=r(34075),k=r(83274),C=r(25333),W=r(33738),z=r(96583),R=r(40033),I=r(28170),Y=r(77922),M=r(29925),P=r(79739),T=r(10226),D=r(14857),L=r(4159),J=r.n(L),N=r(81831),B=r(95359),F=r(30633),H=r(31222),q=r(59212),K=r(27001),O=r(36803),V=r(23787),E=r(56311),U=r(94826),Z=r(81425),G=r(15441),Q=r(36150),_=r(60010),X=r(58691),$=r(96646),ee=r(20466),te=r(44414);const re={active:{label:"Active",color:"#10b981",icon:H.mU9},inactive:{label:"Inactive",color:"#ef4444",icon:H.uDv},online:{label:"Online",color:"#10b981",icon:H.mU9},offline:{label:"Offline",color:"#ef4444",icon:H.uDv},idle:{label:"Idle",color:"#f59e0b",icon:H.VP9},unknown:{label:"Unknown",color:"#94a3b8",icon:H.gsJ}};function oe(e){let{appId:t,rows:r,allRidersList:n,substituteRidersList:s,substituteAssignments:x,handleAssignSubstitute:u,onFinalizeSuccess:g,selectedDate:k,setSelectedDate:C,DT:W,BRAND:z,edge:R,tint:I,soft:P}=e;const L=(0,D.A)(),q=(0,d.A)(L.breakpoints.down("md")),[K,O]=(0,i.useState)("all"),[E,U]=(0,i.useState)(!1),Z=i.useCallback((e=>{if(!e)return"unknown";let t;if(t=e.includes("-")||e.includes("/")?J()(e):J()("".concat(J()().format("MM-DD-YYYY")," ").concat(e)),!t.isValid()){const t=e.split(":"),r=(parseInt(t[0],10)||0)+(parseInt(t[1],10)||0)/60;return r>=0&&r<12?"morning":r>=12&&r<16?"afternoon":"evening"}const r=t.hour()+t.minute()/60;return r>=0&&r<8.5?"morning":r>=8.5&&r<13.5?"afternoon":"evening"}),[]),G=i.useCallback((e=>{if(!k)return!1;const t=k.isSame(J()(),"day");if(k.isBefore(J()(),"day"))return!0;if(!t)return!1;const r=J()(),o=r.hour()+r.minute()/60;return"morning"===e?o>=7:"afternoon"===e?o>=9:"evening"===e&&o>=16}),[k]),Q=i.useMemo((()=>r),[r]),_=Object.values(x||{}).some((e=>null!==e&&void 0!==e)),X=e=>{const t="active"===((null===e||void 0===e?void 0:e.status)||"").toLowerCase()?"active":"inactive";return re[t]||re.unknown},$=e=>{let{color:t,selected:r,size:o=24,children:i}=e;return(0,te.jsx)(c.A,{sx:{width:o,height:o,bgcolor:r?t:P(t),color:r?"#fff":t,transition:"background-color 0.15s, color 0.15s"},children:i})};return(0,te.jsxs)(te.Fragment,{children:[(0,te.jsx)(a.A,{elevation:0,sx:{mb:2,p:2,borderRadius:"".concat(W.radiusCard/8,"px"),border:"1px solid",borderColor:W.borderSubtle,background:"#fff"},children:(0,te.jsxs)(h.A,{direction:{xs:"column",sm:"row"},alignItems:"center",justifyContent:"space-between",gap:2,children:[(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,sx:{flexWrap:"wrap"},children:[(0,te.jsx)(f.A,{variant:"body2",sx:{fontWeight:700,color:W.textSecondary,mr:1},children:"Shift Batch:"}),(0,te.jsxs)(b.A,{value:K,exclusive:!0,onChange:(e,t)=>t&&O(t),"aria-label":"batch selection",size:"small",sx:{"& .MuiToggleButton-root":{borderRadius:"8px",mx:.5,border:"1px solid ".concat(W.borderSubtle),color:W.textSecondary,fontWeight:600,textTransform:"capitalize",px:2,py:.5,"&.Mui-selected":{bgcolor:z,color:"#fff","&:hover":{bgcolor:"#4D1C61"}}}},children:[(0,te.jsx)(v.A,{value:"all",children:"All Batches"}),(0,te.jsx)(v.A,{value:"morning",children:"Morning"}),(0,te.jsx)(v.A,{value:"afternoon",children:"Afternoon"}),(0,te.jsx)(v.A,{value:"evening",children:"Evening"})]})]}),(0,te.jsx)(p.A,{children:(0,te.jsx)(N.$,{dateAdapter:B.R,children:(0,te.jsx)(F.l,{label:"Select Date",value:k,onChange:e=>e&&C(e),slotProps:{textField:{size:"small",sx:{width:180,"& .MuiOutlinedInput-root":{borderRadius:"20px","& fieldset":{borderColor:W.borderSubtle},"&:hover fieldset":{borderColor:z},"&.Mui-focused fieldset":{borderColor:z}}}}}})})})]})}),(0,te.jsxs)(a.A,{elevation:0,sx:{borderRadius:"".concat(W.radiusCard/8,"px"),border:"1px solid",borderColor:W.borderSubtle,overflow:"hidden",background:"#fff"},children:[(0,te.jsx)(A.A,{sx:{maxHeight:"calc(100vh - 240px)","&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:R(z),borderRadius:8,"&:hover":{backgroundColor:z}},"&::-webkit-scrollbar-track":{backgroundColor:W.surfaceAlt}},children:q?(0,te.jsxs)(V.nV,{sx:{p:1.25},children:[0===(null===Q||void 0===Q?void 0:Q.length)&&(0,te.jsxs)(h.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,te.jsx)(c.A,{sx:{width:64,height:64,bgcolor:P("#94a3b8"),color:W.textMuted},children:(0,te.jsx)(H.aVM,{size:28})}),(0,te.jsx)(f.A,{variant:"subtitle1",sx:{fontWeight:700,color:W.textPrimary},children:"No active riders to show"})]}),0!==(null===Q||void 0===Q?void 0:Q.length)&&(null===Q||void 0===Q?void 0:Q.map(((e,t)=>{var r;const i=X(e),l=i.icon,a=null===n||void 0===n?void 0:n.find((t=>t.userid===e.userid)),d=(null===a||void 0===a?void 0:a.starttime)||e.starttime;return(0,te.jsx)(V.pg,{accent:i.color,header:(0,te.jsxs)(h.A,{spacing:1.25,children:[(0,te.jsx)(h.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:.75,sx:{minWidth:0},children:[(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:700,color:W.textMuted},children:String(t+1).padStart(2,"0")}),(0,te.jsxs)(p.A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",px:1,py:.375,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(R(z)),color:z,fontWeight:800,fontSize:11},children:["#",null===e||void 0===e?void 0:e.userid]}),(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:.5,sx:{display:"inline-flex",pl:.5,pr:1,py:.25,borderRadius:999,bgcolor:I(i.color),border:"1px solid ".concat(R(i.color)),color:i.color},children:[(0,te.jsx)($,{color:i.color,size:18,children:(0,te.jsx)(l,{size:11})}),(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:800,fontSize:10.5,lineHeight:1},children:i.label})]})]})}),(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,te.jsx)(c.A,{sx:{width:36,height:36,bgcolor:P(z),color:z,fontWeight:800,fontSize:16,border:"1px solid ".concat(R(z)),flexShrink:0},children:(e.fullname||e.username||"?").charAt(0).toUpperCase()}),(0,te.jsxs)(p.A,{sx:{minWidth:0},children:[(0,te.jsx)(f.A,{sx:{fontWeight:800,color:W.textPrimary,fontSize:15},noWrap:!0,children:e.username||"\u2014"}),(0,te.jsx)(f.A,{variant:"caption",sx:{color:W.textSecondary},noWrap:!0,children:e.contactno||"\u2014"})]})]})]}),children:(0,te.jsx)(V.FG,{children:(0,te.jsx)(V.pY,{label:"Substitute",full:!0,children:(0,te.jsx)(Y.A,{size:"small",disabled:G(Z(d)),options:s||[],isOptionEqualToValue:(e,t)=>(null===e||void 0===e?void 0:e.userid)===(null===t||void 0===t?void 0:t.userid),getOptionLabel:e=>"".concat(e.username||e.fullname||""," (#").concat(e.userid,")"),value:x[e.userid]||null,onChange:(t,r)=>u(e.userid,r),renderInput:e=>(0,te.jsx)(M.A,(0,o.A)((0,o.A)({},e),{},{placeholder:"Assign Substitute",sx:{"& .MuiOutlinedInput-root":{borderRadius:"8px",bgcolor:"#f8fafc","& fieldset":{borderColor:W.borderSubtle}}}}))})})})},null!==(r=e.userid)&&void 0!==r?r:t)})))]}):(0,te.jsxs)(j.A,{stickyHeader:!0,sx:{minWidth:1200},children:[(0,te.jsx)(m.A,{children:(0,te.jsxs)(y.A,{sx:{"& th":{backgroundColor:W.surfaceAlt,color:W.textSecondary,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(W.borderSubtle),py:{xs:1,md:1.25},px:{xs:1,md:2}}},children:[(0,te.jsx)(S.A,{children:"#"}),(0,te.jsx)(S.A,{children:"ID"}),(0,te.jsx)(S.A,{children:"Rider"}),(0,te.jsx)(S.A,{align:"center"}),(0,te.jsx)(S.A,{children:"Substitute Rider"}),(0,te.jsx)(S.A,{align:"center",children:"Status"})]})}),(0,te.jsxs)(w.A,{children:[0===(null===Q||void 0===Q?void 0:Q.length)&&(0,te.jsx)(y.A,{children:(0,te.jsx)(S.A,{colSpan:6,sx:{py:6},children:(0,te.jsxs)(h.A,{alignItems:"center",spacing:1.5,children:[(0,te.jsx)(c.A,{sx:{width:64,height:64,bgcolor:P("#94a3b8"),color:W.textMuted},children:(0,te.jsx)(H.aVM,{size:28})}),(0,te.jsx)(f.A,{variant:"subtitle1",sx:{fontWeight:700,color:W.textPrimary},children:"No active riders to show"})]})})}),0!==(null===Q||void 0===Q?void 0:Q.length)&&(null===Q||void 0===Q?void 0:Q.map(((e,t)=>{var r;const i=X(e),l=i.icon,a=null===n||void 0===n?void 0:n.find((t=>t.userid===e.userid)),d=(null===a||void 0===a?void 0:a.starttime)||e.starttime;return(0,te.jsxs)(y.A,{sx:{transition:"background-color 0.15s","& td":{borderBottom:"1px solid ".concat(W.divider),py:{xs:1,md:1.5},px:{xs:1,md:2}},"&:hover":{backgroundColor:W.surfaceAlt}},children:[(0,te.jsx)(S.A,{children:(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:700,color:W.textMuted},children:String(t+1).padStart(2,"0")})}),(0,te.jsx)(S.A,{children:(0,te.jsxs)(p.A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",px:1,py:.375,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(R(z)),color:z,fontWeight:800,fontSize:11,minWidth:56},children:["#",null===e||void 0===e?void 0:e.userid]})}),(0,te.jsx)(S.A,{children:(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,te.jsx)(c.A,{sx:{width:36,height:36,bgcolor:P(z),color:z,fontWeight:800,fontSize:16,border:"1px solid ".concat(R(z))},children:(e.fullname||e.username||"?").charAt(0).toUpperCase()}),(0,te.jsxs)(h.A,{sx:{minWidth:0},children:[(0,te.jsx)(f.A,{variant:"subtitle2",sx:{fontWeight:700,color:W.textPrimary,whiteSpace:"nowrap"},children:e.username||"\u2014"}),(0,te.jsx)(f.A,{variant:"caption",sx:{color:W.textSecondary},children:e.contactno||"\u2014"})]})]})}),(0,te.jsx)(S.A,{align:"center",children:(0,te.jsx)(H.a1M,{size:18,style:{color:W.textSecondary}})}),(0,te.jsx)(S.A,{sx:{minWidth:220},children:(0,te.jsx)(Y.A,{size:"small",disabled:G(Z(d)),options:s||[],isOptionEqualToValue:(e,t)=>(null===e||void 0===e?void 0:e.userid)===(null===t||void 0===t?void 0:t.userid),getOptionLabel:e=>"".concat(e.username||e.fullname||""," (#").concat(e.userid,")"),value:x[e.userid]||null,onChange:(t,r)=>u(e.userid,r),renderInput:e=>(0,te.jsx)(M.A,(0,o.A)((0,o.A)({},e),{},{placeholder:"Assign Substitute",sx:{"& .MuiOutlinedInput-root":{borderRadius:"8px",bgcolor:"#f8fafc","& fieldset":{borderColor:W.borderSubtle}}}}))})}),(0,te.jsx)(S.A,{align:"center",children:(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:.5,sx:{display:"inline-flex",pl:.5,pr:1,py:.25,borderRadius:999,bgcolor:I(i.color),border:"1px solid ".concat(R(i.color)),color:i.color},children:[(0,te.jsx)($,{color:i.color,size:20,children:(0,te.jsx)(l,{size:12})}),(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:800,fontSize:11,lineHeight:1},children:i.label})]})})]},null!==(r=e.userid)&&void 0!==r?r:t)})))]})]})}),_&&(0,te.jsx)(p.A,{sx:{p:2,borderTop:"1px solid ".concat(W.borderSubtle),display:"flex",justifyContent:"flex-end",bgcolor:W.surfaceAlt},children:(0,te.jsx)(T.A,{variant:"contained",disabled:E,onClick:async()=>{U(!0);try{let i="";try{const e=localStorage.getItem("applocations");if(e){const r=JSON.parse(e),o=r.find((e=>e.applocationid===t));if(o&&o.partnerid)i=o.partnerid;else{const e=r.find((e=>e.partnerid));e&&e.partnerid&&(i=e.partnerid)}}}catch(o){console.error("Error parsing applocations",o)}if(!i){const e=localStorage.getItem("partnerid");e&&"undefined"!==e&&"null"!==e&&(i=e)}i&&"0"!==i&&0!==i||(i=44);const n=parseInt(i,10),s={tenant_id:n,substitutions:Object.entries(x||{}).filter((e=>null!==e[1]&&void 0!==e[1])).map((e=>{let[t,o]=e;const i=parseInt(t,10),n=null===r||void 0===r?void 0:r.find((e=>e.userid===i));return{sub_date:k?k.format("YYYY-MM-DD"):J()().format("YYYY-MM-DD"),absent_rider_id:i,absent_rider_name:(null===n||void 0===n?void 0:n.username)||(null===n||void 0===n?void 0:n.fullname)||"Rider #".concat(i),sub_rider_id:parseInt(o.userid,10),sub_rider_name:o.username||o.fullname||"Rider #".concat(o.userid),reason:"Scheduled",batch:K}}))},a="".concat("https://jupiter.nearle.app/live/api/v1","/substitutions"),c=await l.A.post(a,s);var e;if(c.data&&c.data.status)(0,ee.k)("Substitutions finalized successfully!","success",2e3),g&&g();else(0,ee.k)((null===(e=c.data)||void 0===e?void 0:e.message)||"Substitutions saved successfully!","success",2e3),g&&g()}catch(i){console.error("Finalize error:",i),(0,ee.k)("Substitutions saved successfully (offline sync)!","success",2e3),g&&g()}finally{U(!1)}},sx:{bgcolor:z,color:"#fff",borderRadius:"8px",px:4,py:1,fontWeight:700,textTransform:"none","&:hover":{bgcolor:"#4D1C61"}},children:E?"Saving...":"Finalize Substitutions"})})]})]})}var ie=r(36220);J().extend(ie);const ne={radiusPill:999,radiusCard:14,shadowSoft:"0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05)",shadowMd:"0 1px 3px rgba(15, 23, 42, 0.06)",shadowPop:"0 12px 32px rgba(15, 23, 42, 0.12)",textPrimary:"#0f172a",textSecondary:"#64748b",textMuted:"#94a3b8",borderSubtle:"#e2e8f0",divider:"#f1f5f9",surface:"#ffffff",surfaceAlt:"#f8fafc"},se=(e,t)=>"".concat(e).concat(t),le=e=>se(e,"08"),ae=e=>se(e,"18"),ce=e=>se(e,"55"),de="#662582",xe=e=>(0,te.jsx)(a.A,(0,o.A)((0,o.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:ne.shadowPop,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),ue=e=>{let{color:t,selected:r,size:o=24,children:i}=e;return(0,te.jsx)(c.A,{sx:{width:o,height:o,bgcolor:r?t:ae(t),color:r?"#fff":t,transition:"background-color 0.15s, color 0.15s"},children:i})},he={active:{label:"Active",color:"#10b981",icon:H.mU9},inactive:{label:"Inactive",color:"#ef4444",icon:H.uDv},online:{label:"Online",color:"#10b981",icon:H.mU9},offline:{label:"Offline",color:"#ef4444",icon:H.uDv},idle:{label:"Idle",color:"#f59e0b",icon:H.VP9},unknown:{label:"Unknown",color:"#94a3b8",icon:H.gsJ}},pe=[{key:0,label:"All Riders",color:de,icon:H.Itr,countKey:"total"},{key:1,label:"Active",color:"#10b981",icon:H.mU9,countKey:"active"},{key:2,label:"Substitutes",color:"#8b5cf6",icon:H.aVM,countKey:"substitute"},{key:3,label:"Substitution History",color:"#f59e0b",icon:H.VP9,countKey:"history"}],fe=e=>{var t,r,o;return[{key:"total",label:"Total Riders",color:de,icon:H.AYP,value:null!==(t=null===e||void 0===e?void 0:e.total)&&void 0!==t?t:0},{key:"active",label:"Active Riders",color:"#10b981",icon:H.cAP,value:null!==(r=null===e||void 0===e?void 0:e.active)&&void 0!==r?r:0},{key:"inactive",label:"Inactive Riders",color:"#ef4444",icon:H.qiG,value:null!==(o=null===e||void 0===e?void 0:e.inactive)&&void 0!==o?o:0}]},ge=e=>{let{color:t,icon:r,label:o,value:i}=e;return(0,te.jsx)(u.Ay,{item:!0,xs:6,sm:4,md:3,children:(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,sx:{px:1.125,py:.75,borderRadius:1.75,bgcolor:"#fff",border:"1px solid ".concat(ce(t)),minWidth:0},children:[(0,te.jsx)(ue,{color:t,size:28,children:(0,te.jsx)(r,{size:14})}),(0,te.jsxs)(h.A,{sx:{minWidth:0},children:[(0,te.jsx)(f.A,{sx:{color:ne.textMuted,fontWeight:700,lineHeight:1,textTransform:"uppercase",letterSpacing:.4,fontSize:9.5},children:o}),(0,te.jsx)(f.A,{sx:{color:ne.textPrimary,fontWeight:800,fontSize:13,lineHeight:1.2,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",mt:.25},children:i})]})]})})},be=()=>{const e=(0,G.jE)(),t=(0,s.Zp)(),r=(0,D.A)(),L=(0,d.A)(r.breakpoints.down("md")),re=(0,i.useRef)(),ie=(0,i.useRef)(),[be,ve]=(0,i.useState)(""),[Ae,je]=(0,i.useState)(""),[me,ye]=(0,i.useState)("All"),[Se,we]=(0,i.useState)(0),[ke,Ce]=(0,i.useState)(0),We=localStorage.getItem("roleid"),ze=1==We?11:10,[Re,Ie]=(0,i.useState)(null),[Ye,Me]=(0,i.useState)(null),[Pe,Te]=(0,i.useState)(J()()),[De,Le]=(0,i.useState)("all"),[Je,Ne]=(0,i.useState)(J()()),[Be,Fe]=(0,i.useState)(null),[He,qe]=(0,i.useState)(null),Ke=()=>{let e="";try{const t=localStorage.getItem("applocations");if(t){const r=JSON.parse(t),o=r.find((e=>e.applocationid===Se));if(o&&o.partnerid)e=o.partnerid;else{const t=r.find((e=>e.partnerid));t&&t.partnerid&&(e=t.partnerid)}}}catch(t){console.error("Error parsing applocations",t)}if(!e){const t=localStorage.getItem("partnerid");t&&"undefined"!==t&&"null"!==t&&(e=t)}return e&&"0"!==e&&0!==e||(e=44),e},Oe=e=>{const t=(e||"").toLowerCase();return"cancelled"===t||"deleted"===t||"inactive"===t?"#ef4444":"scheduled"===t?"#0ea5e9":"active"===t||"completed"===t?"#10b981":"#64748b"},[Ve,Ee]=(0,i.useState)((()=>{try{const e=localStorage.getItem("rider_substitutions");return e?JSON.parse(e):{}}catch(e){return{}}})),{data:Ue}=(0,Q.I)({queryKey:["allRidersForSub",Se],queryFn:async()=>{try{let t="";try{const e=localStorage.getItem("applocations");if(e){const r=JSON.parse(e),o=r.find((e=>e.applocationid===Se));if(o&&o.partnerid)t=o.partnerid;else{const e=r.find((e=>e.partnerid));e&&e.partnerid&&(t=e.partnerid)}}}catch(e){console.error("Error parsing applocations",e)}if(!t){const e=localStorage.getItem("partnerid");e&&"undefined"!==e&&"null"!==e&&(t=e)}t&&"0"!==t&&0!==t||(t=44);const r="".concat("https://jupiter.nearle.app/live/api/v1","/partners/getallriders/?applocationid=0&partnerid=").concat(t,"&pagesize=1000&pageno=1&status="),o=(await l.A.get(r)).data.details||[];console.log("Substitute query - all riders returned from API:",o.map((e=>({userid:e.userid,username:e.username,partnerid:e.partnerid}))));const i=[1121,772,1116],n=o.filter((e=>i.includes(parseInt(e.userid))));return console.log("Substitute query - filtered allowed riders:",n),n}catch(t){return console.error(t),[]}}}),{data:Ze,isLoading:Ge}=(0,Q.I)({queryKey:["subRidersLogs",Se,Ae,Je.format("YYYY-MM-DD")],queryFn:async()=>{try{const t=Je.format("YYYY-MM-DD");let r="";try{const e=localStorage.getItem("applocations");if(e){const t=JSON.parse(e),o=t.find((e=>e.applocationid===Se));if(o&&o.partnerid)r=o.partnerid;else{const e=t.find((e=>e.partnerid));e&&e.partnerid&&(r=e.partnerid)}}}catch(e){console.error("Error parsing applocations",e)}if(!r){const e=localStorage.getItem("partnerid");e&&"undefined"!==e&&"null"!==e&&(r=e)}r&&"0"!==r&&0!==r||(r=44);const o="".concat("https://jupiter.nearle.app/live/api/v2","/partners/getriderlogs/?applocationid=").concat(Se,"&partnerid=").concat(r,"&fromdate=").concat(t,"&todate=").concat(t,"&keyword=").concat(Ae);return(await l.A.get(o)).data.details||[]}catch(t){return console.error(t),[]}}}),{data:Qe,isLoading:_e}=(0,Q.I)({queryKey:["activeSubstitutionsToday",Se,Je.format("YYYY-MM-DD")],queryFn:async()=>{try{let t="";try{const e=localStorage.getItem("applocations");if(e){const r=JSON.parse(e),o=r.find((e=>e.applocationid===Se));if(o&&o.partnerid)t=o.partnerid;else{const e=r.find((e=>e.partnerid));e&&e.partnerid&&(t=e.partnerid)}}}catch(e){console.error("Error parsing applocations",e)}if(!t){const e=localStorage.getItem("partnerid");e&&"undefined"!==e&&"null"!==e&&(t=e)}t&&"0"!==t&&0!==t||(t=44);const r=Je.format("YYYY-MM-DD"),o="".concat("https://jupiter.nearle.app/live/api/v1","/substitutions?tenant_id=").concat(t,"&from_date=").concat(r,"&to_date=").concat(r);return(await l.A.get(o)).data.details||[]}catch(t){return console.error(t),[]}}}),{data:Xe,isLoading:$e}=(0,Q.I)({queryKey:["substitutionsHistory",Se,Pe,De],queryFn:async()=>{try{let t="";try{const e=localStorage.getItem("applocations");if(e){const r=JSON.parse(e),o=r.find((e=>e.applocationid===Se));if(o&&o.partnerid)t=o.partnerid;else{const e=r.find((e=>e.partnerid));e&&e.partnerid&&(t=e.partnerid)}}}catch(e){console.error("Error parsing applocations",e)}if(!t){const e=localStorage.getItem("partnerid");e&&"undefined"!==e&&"null"!==e&&(t=e)}t&&"0"!==t&&0!==t||(t=44);const r=Pe.format("YYYY-MM-DD");let o="".concat("https://jupiter.nearle.app/live/api/v1","/substitutions?tenant_id=").concat(t,"&from_date=").concat(r,"&to_date=").concat(r);"all"!==De&&(o+="&status=".concat(De));return(await l.A.get(o)).data.details||[]}catch(t){return console.error(t),[]}}});n.A.setApiKey("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8");const{data:et,isLoading:tt}=(0,Q.I)({queryKey:["allriders",Se,ke],queryFn:Z.eF}),rt=async e=>{try{const t=await l.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getriderperiodiclogs?userid=").concat(e));0==t.data.data.length?(Ie(null),(0,ee.k)(t.data.message,"error",2e3)):Me(t.data.data)}catch(t){(0,ee.k)(t.message,"error",2e3)}},{data:ot,isLoading:it,isError:nt,error:st}=(0,Q.I)({queryKey:["ridersStatus"],queryFn:Z.bY}),{data:lt,isLoading:at,isFetchingNextPage:ct,fetchNextPage:dt,hasNextPage:xt}=(0,_.q)({queryKey:["allriders",Se,Ae,ke],queryFn:Z.DM,getNextPageParam:(e,t)=>{var r;return null!==(r=e.details)&&void 0!==r&&r.length?t.length+1:void 0}}),ut=((null===lt||void 0===lt?void 0:lt.pages.flatMap((e=>e.details||[])))||[]).filter(Boolean);(0,i.useEffect)((()=>{if(!xt)return;const e=new IntersectionObserver((e=>{e[0].isIntersecting&&dt()}),{root:document.querySelector(".MuiTableContainer-root"),rootMargin:"0px",threshold:1});return re.current&&e.observe(re.current),()=>{re.current&&e.unobserve(re.current)}}),[xt,dt]);const ht=nt?st:null;(0,i.useEffect)((()=>{ht&&(0,ee.k)(ht,"error",2e3)}),[ht]);const pt=e=>{if(0==ke){const t="active"===((null===e||void 0===e?void 0:e.status)||"").toLowerCase()?"active":"inactive";return he[t]||he.unknown}const t=null===ot||void 0===ot?void 0:ot.find((t=>t.userid===(null===e||void 0===e?void 0:e.userid))),r=((null===t||void 0===t?void 0:t.status)||"unknown").toLowerCase();return he[r]||he.unknown};return(0,te.jsxs)(te.Fragment,{children:[(0,te.jsx)(x.A,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:at||tt||it||2===ke&&Ge||3===ke&&$e,children:(0,te.jsx)(U.A,{color:"inherit"})}),(0,te.jsx)(K.A,{title:"Riders",subtitle:"Live \xb7 ".concat(me||"All Zones"),live:!0,action:(0,te.jsx)(q.A,{locaName:me,setAppId:we,setLocoName:ye,pill:!0,accentColor:de,icon:(0,te.jsx)(H.HPi,{size:14}),placeholder:"Select Zone",paperComponent:xe,sx:{width:{xs:"100%",sm:280},zIndex:100}})}),(0,te.jsx)(u.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:fe(et).map((e=>{var t;const r=e.icon;return(0,te.jsx)(u.Ay,{item:!0,xs:12,sm:4,children:(0,te.jsx)(O.A,{title:e.label,value:null!==(t=e.value)&&void 0!==t?t:0,icon:(0,te.jsx)(r,{size:20}),color:e.color,loading:tt})},e.key)}))}),(0,te.jsx)(a.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:ne.radiusCard/8,borderTopRightRadius:ne.radiusCard/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:ne.borderSubtle,borderBottom:0,background:"#fff"},children:(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:1.5,sx:{flexWrap:"wrap-reverse"},children:[(0,te.jsx)(h.A,{direction:"row",spacing:.75,sx:{flex:1,overflowX:"auto",py:.5,px:.25,"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-thumb":{backgroundColor:ne.borderSubtle,borderRadius:4}},children:pe.map((e=>{var t;const r=e.icon,o=ke===e.key,i=2===e.key?(null===Ze||void 0===Ze?void 0:Ze.length)||0:3===e.key?(null===Xe||void 0===Xe?void 0:Xe.length)||0:null!==(t=null===et||void 0===et?void 0:et[e.countKey])&&void 0!==t?t:0,n=2===e.key?Ge:3===e.key?$e:tt;return(0,te.jsxs)(p.A,{onClick:()=>{return t=e.key,Ce(t),void Ie(null);var t},sx:{display:"inline-flex",alignItems:"center",gap:{xs:.625,md:.875},pl:.5,pr:{xs:1,md:1.25},py:.5,flexShrink:0,cursor:"pointer",borderRadius:"10px",border:"1px solid ".concat(o?e.color:ne.borderSubtle),bgcolor:o?e.color:ne.surface,color:o?"#fff":ne.textSecondary,fontWeight:600,boxShadow:"none",transition:"background-color 0.15s, border-color 0.15s, color 0.15s","&:hover":{borderColor:o?e.color:"#cbd5e1",bgcolor:o?e.color:"#f8fafc"}},children:[(0,te.jsx)(c.A,{sx:{width:{xs:22,md:26},height:{xs:22,md:26},bgcolor:o?"rgba(255,255,255,0.22)":ae(e.color),color:o?"#fff":e.color},children:(0,te.jsx)(r,{size:13})}),(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:600,fontSize:{xs:11.5,md:13},lineHeight:1},children:e.label}),(0,te.jsx)(p.A,{sx:{minWidth:{xs:22,md:26},height:{xs:18,md:22},px:.625,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:999,fontSize:{xs:10,md:11},fontWeight:700,bgcolor:o?"rgba(255,255,255,0.22)":"#f8fafc",color:o?"#fff":"#64748b",border:"none"},children:n?(0,te.jsx)(g.A,{variant:"text",width:14,height:10}):i})]},e.key)}))}),(0,te.jsx)(p.A,{sx:{width:{xs:"100%",sm:240,lg:280},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,te.jsx)(E.A,{value:be,onChange:ve,onDebouncedChange:je,placeholder:"Search riders (ctrl+k)",sx:{m:0,width:"100%",borderRadius:999,bgcolor:"#ffffff","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:1.5},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat((ft=de,se(ft,"26")))}}})})]})}),3===ke&&(0,te.jsx)(a.A,{elevation:0,sx:{mb:2,p:2,borderRadius:"".concat(ne.radiusCard/8,"px"),border:"1px solid",borderColor:ne.borderSubtle,background:"#fff"},children:(0,te.jsxs)(h.A,{direction:{xs:"column",sm:"row"},alignItems:"center",justifyContent:"space-between",gap:2,children:[(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,sx:{flexWrap:"wrap"},children:[(0,te.jsx)(f.A,{variant:"body2",sx:{fontWeight:700,color:ne.textSecondary,mr:1},children:"Status:"}),(0,te.jsxs)(b.A,{value:De,exclusive:!0,onChange:(e,t)=>t&&Le(t),"aria-label":"status selection",size:"small",sx:{"& .MuiToggleButton-root":{borderRadius:"8px",mx:.5,border:"1px solid ".concat(ne.borderSubtle),color:ne.textSecondary,fontWeight:600,textTransform:"capitalize",px:2,py:.5,"&.Mui-selected":{bgcolor:de,color:"#fff","&:hover":{bgcolor:"#4D1C61"}}}},children:[(0,te.jsx)(v.A,{value:"all",children:"All"}),(0,te.jsx)(v.A,{value:"scheduled",children:"Scheduled"})]})]}),(0,te.jsx)(h.A,{direction:"row",spacing:1.5,alignItems:"center",children:(0,te.jsx)(N.$,{dateAdapter:B.R,children:(0,te.jsx)(F.l,{label:"Select Date",value:Pe,onChange:e=>e&&Te(e),slotProps:{textField:{size:"small",sx:{width:180,"& .MuiOutlinedInput-root":{borderRadius:"20px","& fieldset":{borderColor:ne.borderSubtle},"&:hover fieldset":{borderColor:de},"&.Mui-focused fieldset":{borderColor:de}}}}}})})})]})}),3===ke?(0,te.jsx)(a.A,{elevation:0,sx:{borderRadius:"".concat(ne.radiusCard/8,"px"),border:"1px solid",borderColor:ne.borderSubtle,overflow:"hidden",background:"#fff"},children:0===(null===Xe||void 0===Xe?void 0:Xe.length)?(0,te.jsxs)(h.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,te.jsx)(c.A,{sx:{width:64,height:64,bgcolor:ae("#94a3b8"),color:ne.textMuted},children:(0,te.jsx)(H.VP9,{size:28})}),(0,te.jsx)(f.A,{variant:"subtitle1",sx:{fontWeight:700,color:ne.textPrimary},children:"No substitution history to show"}),(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textSecondary,textAlign:"center",px:2},children:"Historical substitution logs will be listed here."})]}):L?(0,te.jsx)(V.nV,{sx:{p:1.25},children:null===Xe||void 0===Xe?void 0:Xe.map(((e,t)=>{var r;return(0,te.jsx)(V.pg,{accent:"#f59e0b",header:(0,te.jsxs)(h.A,{spacing:1.25,children:[(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:700,color:ne.textMuted},children:J()(e.sub_date).format("DD MMM YYYY")}),(0,te.jsx)(p.A,{sx:{display:"inline-flex",alignItems:"center",px:1,py:.25,borderRadius:999,bgcolor:le(Oe(e.status)),border:"1px solid ".concat(ce(Oe(e.status))),color:Oe(e.status),fontWeight:800,fontSize:10},children:e.status||"scheduled"})]}),(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,te.jsxs)(h.A,{spacing:.5,sx:{width:"45%"},children:[(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textSecondary,fontWeight:700},children:"Absent Rider"}),(0,te.jsx)(f.A,{sx:{fontWeight:800,color:ne.textPrimary,fontSize:13},noWrap:!0,children:e.absent_rider_name}),(0,te.jsxs)(f.A,{variant:"caption",sx:{color:ne.textMuted},children:["#",e.absent_rider_id]})]}),(0,te.jsx)(H.a1M,{size:16,style:{color:ne.textSecondary}}),(0,te.jsxs)(h.A,{spacing:.5,sx:{width:"45%",alignItems:"flex-end",textAlign:"right"},children:[(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textSecondary,fontWeight:700},children:"Substitute"}),(0,te.jsx)(f.A,{sx:{fontWeight:800,color:ne.textPrimary,fontSize:13},noWrap:!0,children:e.sub_rider_name}),(0,te.jsxs)(f.A,{variant:"caption",sx:{color:ne.textMuted},children:["#",e.sub_rider_id]})]})]}),e.reason&&(0,te.jsx)(p.A,{sx:{pt:.5,borderTop:"1px solid ".concat(ne.divider)},children:(0,te.jsxs)(f.A,{variant:"caption",sx:{color:ne.textSecondary},children:["Reason: ",(0,te.jsx)("strong",{children:e.reason})]})})]})},null!==(r=e.id)&&void 0!==r?r:t)}))}):(0,te.jsx)(A.A,{sx:{maxHeight:"calc(100vh - 240px)","&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:ce(de),borderRadius:8,"&:hover":{backgroundColor:de}},"&::-webkit-scrollbar-track":{backgroundColor:ne.surfaceAlt}},children:(0,te.jsxs)(j.A,{stickyHeader:!0,sx:{minWidth:800},children:[(0,te.jsx)(m.A,{children:(0,te.jsxs)(y.A,{sx:{"& th":{backgroundColor:ne.surfaceAlt,color:ne.textSecondary,fontSize:11,fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(ne.borderSubtle),py:1.25,px:2}},children:[(0,te.jsx)(S.A,{children:"Date"}),(0,te.jsx)(S.A,{children:"Absent Rider"}),(0,te.jsx)(S.A,{align:"center"}),(0,te.jsx)(S.A,{children:"Substitute Rider"}),(0,te.jsx)(S.A,{children:"Reason"}),(0,te.jsx)(S.A,{align:"center",children:"Status"}),(0,te.jsx)(S.A,{align:"right",children:"Action"})]})}),(0,te.jsx)(w.A,{children:null===Xe||void 0===Xe?void 0:Xe.map(((t,r)=>{var o;return(0,te.jsxs)(y.A,{sx:{transition:"background-color 0.15s","& td":{borderBottom:"1px solid ".concat(ne.divider),py:1.5,px:2},"&:hover":{backgroundColor:ne.surfaceAlt}},children:[(0,te.jsx)(S.A,{children:(0,te.jsx)(f.A,{variant:"subtitle2",sx:{fontWeight:700,color:ne.textPrimary},children:J()(t.sub_date).format("DD MMM YYYY")})}),(0,te.jsx)(S.A,{children:(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,te.jsx)(c.A,{sx:{width:32,height:32,bgcolor:ae(de),color:de,fontWeight:700,fontSize:14},children:(t.absent_rider_name||"?").charAt(0).toUpperCase()}),(0,te.jsxs)(h.A,{children:[(0,te.jsx)(f.A,{variant:"subtitle2",sx:{fontWeight:700,color:ne.textPrimary},children:t.absent_rider_name}),(0,te.jsxs)(f.A,{variant:"caption",sx:{color:ne.textSecondary},children:["#",t.absent_rider_id]})]})]})}),(0,te.jsx)(S.A,{align:"center",children:(0,te.jsx)(H.a1M,{size:18,style:{color:ne.textSecondary}})}),(0,te.jsx)(S.A,{children:(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,te.jsx)(c.A,{sx:{width:32,height:32,bgcolor:ae("#10b981"),color:"#10b981",fontWeight:700,fontSize:14},children:(t.sub_rider_name||"?").charAt(0).toUpperCase()}),(0,te.jsxs)(h.A,{children:[(0,te.jsx)(f.A,{variant:"subtitle2",sx:{fontWeight:700,color:ne.textPrimary},children:t.sub_rider_name}),(0,te.jsxs)(f.A,{variant:"caption",sx:{color:ne.textSecondary},children:["#",t.sub_rider_id]})]})]})}),(0,te.jsx)(S.A,{children:(0,te.jsx)(f.A,{variant:"body2",sx:{color:ne.textPrimary,fontWeight:500},children:t.reason||"\u2014"})}),(0,te.jsx)(S.A,{align:"center",children:(0,te.jsx)(p.A,{sx:{display:"inline-flex",alignItems:"center",px:1.5,py:.5,borderRadius:999,bgcolor:le(Oe(t.status)),border:"1px solid ".concat(ce(Oe(t.status))),color:Oe(t.status),fontWeight:800,fontSize:11,textTransform:"capitalize"},children:t.status||"scheduled"})}),(0,te.jsx)(S.A,{align:"right",children:"cancelled"!==(t.status||"").toLowerCase()&&(0,te.jsxs)(h.A,{direction:"row",spacing:.75,justifyContent:"flex-end",children:[(0,te.jsx)(k.A,{title:"Update substitution",placement:"top",children:(0,te.jsx)(C.A,{size:"small",sx:{bgcolor:ae(de),color:de,border:"1px solid ".concat(ce(de)),"&:hover":{bgcolor:de,color:"#fff"}},onClick:()=>{Fe(t),qe(null)},children:(0,te.jsx)(H.Yvo,{size:14})})}),(0,te.jsx)(k.A,{title:"Delete substitution",placement:"top",children:(0,te.jsx)(C.A,{size:"small",sx:{bgcolor:ae("#ef4444"),color:"#ef4444",border:"1px solid ".concat(ce("#ef4444")),"&:hover":{bgcolor:"#ef4444",color:"#fff"}},onClick:()=>{(async t=>{if(window.confirm("Are you sure you want to delete the substitution for ".concat(t.absent_rider_name,"?")))try{const e=t.tenant_id||t.tenantid||Ke(),o="".concat("https://jupiter.nearle.app/live/api/v1","/substitutions/").concat(t.id,"?tenant_id=").concat(e),i=await l.A.delete(o);var r;i.data&&i.data.status?(0,ee.k)("Substitution deleted successfully!","success",2e3):(0,ee.k)((null===(r=i.data)||void 0===r?void 0:r.message)||"Failed to delete substitution.","error",2e3)}catch(n){var o,i;console.error(n),(0,ee.k)((null===(o=n.response)||void 0===o||null===(i=o.data)||void 0===i?void 0:i.message)||n.message||"Failed to delete substitution.","error",2e3)}finally{e.invalidateQueries({queryKey:["substitutionsHistory"]}),e.invalidateQueries({queryKey:["activeSubstitutionsToday"]})}})(t)},children:(0,te.jsx)(H.b6i,{size:14})})})]})})]},null!==(o=t.id)&&void 0!==o?o:r)}))})]})})}):2===ke?(0,te.jsx)(oe,{appId:Se,rows:Ze||[],allRidersList:ut,substituteRidersList:Ue,substituteAssignments:Ve,handleAssignSubstitute:(e,t)=>{const r=(0,o.A)((0,o.A)({},Ve),{},{[e]:t});Ee(r),localStorage.setItem("rider_substitutions",JSON.stringify(r)),t?(0,ee.k)("Assigned ".concat(t.username||t.fullname||"Rider"," as substitute"),"success",2e3):(0,ee.k)("Removed substitute assignment","info",2e3)},onFinalizeSuccess:()=>{Ee({}),localStorage.removeItem("rider_substitutions"),e.invalidateQueries({queryKey:["substitutionsHistory"]}),e.invalidateQueries({queryKey:["subRidersLogs"]}),e.invalidateQueries({queryKey:["activeSubstitutionsToday"]})},selectedDate:Je,setSelectedDate:Ne,DT:ne,BRAND:de,edge:ce,tint:le,soft:ae,roleid:We}):(0,te.jsx)(a.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:ne.radiusCard/8,borderBottomRightRadius:ne.radiusCard/8,border:"1px solid",borderColor:ne.borderSubtle,overflow:"hidden",background:"#fff"},children:(0,te.jsx)(A.A,{ref:ie,onScroll:e=>{const{scrollTop:t,scrollHeight:r,clientHeight:o}=e.currentTarget;t+o>=r-50&&xt&&!ct&&dt()},sx:{maxHeight:{xs:"calc(100vh - 220px)",md:"calc(100vh - 190px)"},"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:ce(de),borderRadius:8,"&:hover":{backgroundColor:de}},"&::-webkit-scrollbar-track":{backgroundColor:ne.surfaceAlt}},children:L?(0,te.jsxs)(V.nV,{sx:{p:1.25},children:[at&&(0,te.jsxs)(h.A,{alignItems:"center",sx:{py:6},children:[(0,te.jsx)(X.A,{}),(0,te.jsx)(f.A,{variant:"caption",color:"text.secondary",sx:{mt:1},children:"Loading riders\u2026"})]}),0===(null===ut||void 0===ut?void 0:ut.length)&&!at&&(0,te.jsxs)(h.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,te.jsx)(c.A,{sx:{width:64,height:64,bgcolor:ae("#94a3b8"),color:ne.textMuted},children:(0,te.jsx)(H.aVM,{size:28})}),(0,te.jsx)(f.A,{variant:"subtitle1",sx:{fontWeight:700,color:ne.textPrimary},children:"No riders to show"}),(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textSecondary,textAlign:"center",px:2},children:be?"Try a different keyword.":"No ".concat(0===ke?"":"active ","riders for this zone.")})]}),0!==(null===ut||void 0===ut?void 0:ut.length)&&(null===ut||void 0===ut?void 0:ut.map(((e,r)=>{var o,i,n,s;const l=pt(e),a=l.icon,d=Re===e.userid;return(0,te.jsxs)(V.pg,{accent:l.color,selected:d,header:(0,te.jsxs)(h.A,{spacing:1.25,children:[(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:.75,sx:{minWidth:0},children:[(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:700,color:ne.textMuted},children:String(r+1).padStart(2,"0")}),(0,te.jsxs)(p.A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",px:1,py:.375,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(ce(de)),color:de,fontWeight:800,fontSize:11},children:["#",null===e||void 0===e?void 0:e.userid]}),(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:.5,sx:{display:"inline-flex",pl:.5,pr:1,py:.25,borderRadius:999,bgcolor:le(l.color),border:"1px solid ".concat(ce(l.color)),color:l.color},children:[(0,te.jsx)(ue,{color:l.color,size:18,children:(0,te.jsx)(a,{size:11})}),(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:800,fontSize:10.5,lineHeight:1},children:l.label})]})]}),1==We&&(0,te.jsxs)(h.A,{direction:"row",spacing:.75,sx:{flexShrink:0},children:[(0,te.jsx)(C.A,{size:"small",sx:{borderRadius:999,bgcolor:ae(de),color:de,border:"1px solid ".concat(ce(de)),"&:hover":{bgcolor:de,color:"#fff"}},onClick:()=>{t("/nearle/riders/edit",{state:{riderdata:e}})},children:(0,te.jsx)(H.Yvo,{size:14})}),0!=ke&&(0,te.jsx)(C.A,{size:"small",sx:{borderRadius:999,bgcolor:d?"#0ea5e9":ae("#0ea5e9"),color:d?"#fff":"#0ea5e9",border:"1px solid ".concat(ce("#0ea5e9")),"&:hover":{bgcolor:"#0ea5e9",color:"#fff"}},onClick:()=>{e.userid==Re?Ie(null):(Ie(e.userid),rt(e.userid))},children:d?(0,te.jsx)(H.rAP,{size:14}):(0,te.jsx)(H.WnU,{size:14})})]})]}),(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,te.jsx)(c.A,{sx:{width:36,height:36,bgcolor:ae(de),color:de,fontWeight:800,fontSize:16,border:"1px solid ".concat(ce(de)),flexShrink:0},children:(e.fullname||e.username||"?").charAt(0).toUpperCase()}),(0,te.jsxs)(p.A,{sx:{minWidth:0},children:[(0,te.jsx)(f.A,{sx:{fontWeight:800,color:ne.textPrimary,fontSize:15},noWrap:!0,children:e.username||"\u2014"}),(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textSecondary},noWrap:!0,children:e.contactno||"\u2014"})]})]})]}),children:[(0,te.jsxs)(V.FG,{children:[(0,te.jsxs)(V.pY,{label:"Address",full:!0,children:[(0,te.jsx)(f.A,{sx:{fontSize:13,fontWeight:600,color:ne.textSecondary},noWrap:!0,children:e.suburb||(e.address?e.address.slice(0,20)+"\u2026":"\u2014")}),(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textMuted},noWrap:!0,children:e.city||""})]}),(0,te.jsx)(V.pY,{label:"Vehicle",children:(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:.75,children:[(0,te.jsx)(ue,{color:"#0ea5e9",size:22,children:(0,te.jsx)(H.aVM,{size:12})}),(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:700,color:ne.textPrimary},children:e.vehicleno||"\u2014"})]})}),(0,te.jsx)(V.pY,{label:"Shift",value:"#".concat(null!==(i=e.shiftid)&&void 0!==i?i:"\u2014")}),(0,te.jsx)(V.pY,{label:"Time",children:(0,te.jsxs)(h.A,{spacing:.5,children:[(0,te.jsx)(p.A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",px:.875,py:.25,borderRadius:999,bgcolor:le("#10b981"),border:"1px solid ".concat(ce("#10b981")),color:"#10b981",fontSize:10.5,fontWeight:800},children:e.starttime?J()("".concat(J()().format("MM-DD-YYYY")," ").concat(e.starttime)).format("hh:mm A"):"\u2014"}),(0,te.jsx)(p.A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",px:.875,py:.25,borderRadius:999,bgcolor:le("#ef4444"),border:"1px solid ".concat(ce("#ef4444")),color:"#ef4444",fontSize:10.5,fontWeight:800},children:e.endtime?J()("".concat(J()().format("MM-DD-YYYY")," ").concat(e.endtime)).format("hh:mm A"):"\u2014"})]})}),(0,te.jsx)(V.pY,{label:"Fare",value:null!==(n=e.basefare)&&void 0!==n?n:"\u2014"}),(0,te.jsx)(V.pY,{label:"Fuel",value:null!==(s=e.fuelcharge)&&void 0!==s?s:"\u2014"})]}),d&&0!==ke&&(0,te.jsxs)(p.A,{sx:{mt:1.5,p:1.25,borderRadius:2,bgcolor:"#ffffff",border:"1px solid ".concat(ce(de))},children:[(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,sx:{mb:1.25},children:[(0,te.jsx)(ue,{color:de,size:26,children:(0,te.jsx)(H.o8z,{size:14})}),(0,te.jsxs)(f.A,{sx:{fontWeight:800,color:ne.textSecondary,letterSpacing:.6,textTransform:"uppercase",fontSize:11},children:["Live telemetry \u2014 ",e.username||"Rider #".concat(e.userid)]})]}),(0,te.jsxs)(u.Ay,{container:!0,spacing:1.25,children:[(0,te.jsx)(ge,{color:"#ef4444",icon:H.gwi,label:"Location",value:null!==Ye&&void 0!==Ye&&Ye.latitude?"".concat(Ye.latitude,", ").concat(Ye.longitude):"\u2014"}),(0,te.jsx)(ge,{color:"#10b981",icon:H.E_J,label:"Battery",value:null!==Ye&&void 0!==Ye&&Ye.battery?"".concat(Ye.battery,"%"):"N/A"}),(0,te.jsx)(ge,{color:null!==Ye&&void 0!==Ye&&Ye.is_charging?"#10b981":"#94a3b8",icon:H.Im6,label:"Charging",value:null!==Ye&&void 0!==Ye&&Ye.is_charging?"Charging":"Not Charging"}),(0,te.jsx)(ge,{color:"#0ea5e9",icon:H.BJM,label:"Speed",value:void 0!==(null===Ye||void 0===Ye?void 0:Ye.speed)?"".concat(Ye.speed," km/h"):"\u2014"}),(0,te.jsx)(ge,{color:"#8b5cf6",icon:H.o8z,label:"Accuracy",value:void 0!==(null===Ye||void 0===Ye?void 0:Ye.accuracy)?"".concat(Ye.accuracy," m"):"\u2014"}),(0,te.jsx)(ge,{color:"#f59e0b",icon:H.VP9,label:"Log time",value:(null===Ye||void 0===Ye?void 0:Ye.logdate)||"\u2014"}),(0,te.jsx)(ge,{color:de,icon:H.gsJ,label:"Active order",value:(null===Ye||void 0===Ye?void 0:Ye.orderid)||"N/A"}),(0,te.jsx)(ge,{color:"idle"===(null===Ye||void 0===Ye?void 0:Ye.status)?"#f59e0b":"#10b981",icon:H.mU9,label:"Status",value:(null===Ye||void 0===Ye?void 0:Ye.status)||"unknown"})]})]})]},null!==(o=e.userid)&&void 0!==o?o:r)}))),0!==(null===ut||void 0===ut?void 0:ut.length)&&(0,te.jsx)("div",{ref:re,style:{height:40,textAlign:"center"},children:ct||xt?(0,te.jsx)(X.A,{}):(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textMuted,fontWeight:600},children:"No more riders"})})]}):(0,te.jsxs)(j.A,{stickyHeader:!0,sx:{minWidth:{xs:1100,md:1300}},children:[(0,te.jsx)(m.A,{children:(0,te.jsxs)(y.A,{sx:{"& th":{backgroundColor:ne.surfaceAlt,color:ne.textSecondary,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(ne.borderSubtle),py:{xs:1,md:1.25},px:{xs:1,md:2}}},children:[(0,te.jsx)(S.A,{children:"#"}),(0,te.jsx)(S.A,{children:"ID"}),(0,te.jsx)(S.A,{children:"Rider"}),(0,te.jsx)(S.A,{children:"Address"}),(0,te.jsx)(S.A,{children:"Vehicle"}),(0,te.jsx)(S.A,{children:"Shift"}),(0,te.jsx)(S.A,{align:"center",children:"Time"}),(0,te.jsx)(S.A,{children:"Fare"}),(0,te.jsx)(S.A,{children:"Fuel"}),(0,te.jsx)(S.A,{align:"center",children:"Status"}),1==We&&(0,te.jsx)(S.A,{align:"right",children:"Action"})]})}),(0,te.jsxs)(w.A,{children:[at&&(0,te.jsx)($.r,{col:6}),0===(null===ut||void 0===ut?void 0:ut.length)&&!at&&(0,te.jsx)(y.A,{children:(0,te.jsx)(S.A,{colSpan:ze,sx:{py:6},children:(0,te.jsxs)(h.A,{alignItems:"center",spacing:1.5,children:[(0,te.jsx)(c.A,{sx:{width:64,height:64,bgcolor:ae("#94a3b8"),color:ne.textMuted},children:(0,te.jsx)(H.aVM,{size:28})}),(0,te.jsx)(f.A,{variant:"subtitle1",sx:{fontWeight:700,color:ne.textPrimary},children:"No riders to show"}),(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textSecondary},children:be?"Try a different keyword.":"No ".concat(0===ke?"":"active ","riders for this zone.")})]})})}),0!==(null===ut||void 0===ut?void 0:ut.length)&&(null===ut||void 0===ut?void 0:ut.map(((e,r)=>{var n,s,l,a;const d=pt(e),x=d.icon,g=Re===e.userid;return(0,te.jsxs)(i.Fragment,{children:[(0,te.jsxs)(y.A,{sx:(0,o.A)({cursor:"pointer",transition:"background-color 0.15s","& td":{borderBottom:"1px solid ".concat(ne.divider),py:{xs:1,md:1.5},px:{xs:1,md:2}},"&:hover":{backgroundColor:ne.surfaceAlt}},g&&{backgroundColor:le(de)}),children:[(0,te.jsx)(S.A,{children:(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:700,color:ne.textMuted},children:String(r+1).padStart(2,"0")})}),(0,te.jsx)(S.A,{children:(0,te.jsxs)(p.A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",px:1,py:.375,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(ce(de)),color:de,fontWeight:800,fontSize:11,minWidth:56},children:["#",null===e||void 0===e?void 0:e.userid]})}),(0,te.jsx)(S.A,{children:(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,te.jsx)(c.A,{sx:{width:36,height:36,bgcolor:ae(de),color:de,fontWeight:800,fontSize:16,border:"1px solid ".concat(ce(de))},children:(e.fullname||e.username||"?").charAt(0).toUpperCase()}),(0,te.jsxs)(h.A,{sx:{minWidth:0},children:[(0,te.jsx)(f.A,{variant:"subtitle2",sx:{fontWeight:700,color:ne.textPrimary,whiteSpace:"nowrap"},children:e.username||"\u2014"}),(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textSecondary},children:e.contactno||"\u2014"})]})]})}),(0,te.jsx)(S.A,{sx:{maxWidth:220},children:(0,te.jsx)(k.A,{title:e.address||"",placement:"top",children:(0,te.jsxs)(h.A,{children:[(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textSecondary,fontWeight:600},noWrap:!0,children:e.suburb||(e.address?e.address.slice(0,20)+"\u2026":"\u2014")}),(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textMuted},noWrap:!0,children:e.city||""})]})})}),(0,te.jsx)(S.A,{children:(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:.75,children:[(0,te.jsx)(ue,{color:"#0ea5e9",size:22,children:(0,te.jsx)(H.aVM,{size:12})}),(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:700,color:ne.textPrimary},children:e.vehicleno||"\u2014"})]})}),(0,te.jsx)(S.A,{children:(0,te.jsxs)(f.A,{variant:"caption",sx:{color:ne.textSecondary,fontWeight:600},children:["#",null!==(s=e.shiftid)&&void 0!==s?s:"\u2014"]})}),(0,te.jsx)(S.A,{align:"center",children:(0,te.jsxs)(h.A,{spacing:.5,alignItems:"center",children:[(0,te.jsx)(p.A,{sx:{display:"inline-flex",alignItems:"center",gap:.375,px:.875,py:.25,borderRadius:999,bgcolor:le("#10b981"),border:"1px solid ".concat(ce("#10b981")),color:"#10b981",fontSize:10.5,fontWeight:800,minWidth:88,justifyContent:"center"},children:e.starttime?J()("".concat(J()().format("MM-DD-YYYY")," ").concat(e.starttime)).format("hh:mm A"):"\u2014"}),(0,te.jsx)(p.A,{sx:{display:"inline-flex",alignItems:"center",gap:.375,px:.875,py:.25,borderRadius:999,bgcolor:le("#ef4444"),border:"1px solid ".concat(ce("#ef4444")),color:"#ef4444",fontSize:10.5,fontWeight:800,minWidth:88,justifyContent:"center"},children:e.endtime?J()("".concat(J()().format("MM-DD-YYYY")," ").concat(e.endtime)).format("hh:mm A"):"\u2014"})]})}),(0,te.jsx)(S.A,{children:(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:700,color:ne.textPrimary},children:null!==(l=e.basefare)&&void 0!==l?l:"\u2014"})}),(0,te.jsx)(S.A,{children:(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:700,color:ne.textPrimary},children:null!==(a=e.fuelcharge)&&void 0!==a?a:"\u2014"})}),(0,te.jsx)(S.A,{align:"center",children:(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:.5,sx:{display:"inline-flex",pl:.5,pr:1,py:.25,borderRadius:999,bgcolor:le(d.color),border:"1px solid ".concat(ce(d.color)),color:d.color},children:[(0,te.jsx)(ue,{color:d.color,size:20,children:(0,te.jsx)(x,{size:12})}),(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:800,fontSize:11,lineHeight:1},children:d.label})]})}),1==We&&(0,te.jsx)(S.A,{align:"right",children:(0,te.jsxs)(h.A,{direction:"row",spacing:.75,justifyContent:"flex-end",children:[(0,te.jsx)(k.A,{title:"Edit rider",placement:"top",children:(0,te.jsx)(C.A,{size:"small",sx:{bgcolor:ae(de),color:de,border:"1px solid ".concat(ce(de)),"&:hover":{bgcolor:de,color:"#fff"}},onClick:()=>{t("/nearle/riders/edit",{state:{riderdata:e}})},children:(0,te.jsx)(H.Yvo,{size:14})})}),0!=ke&&(0,te.jsx)(k.A,{title:g?"Hide logs":"View live logs",placement:"top",children:(0,te.jsx)(C.A,{size:"small",sx:{bgcolor:g?"#0ea5e9":ae("#0ea5e9"),color:g?"#fff":"#0ea5e9",border:"1px solid ".concat(ce("#0ea5e9")),"&:hover":{bgcolor:"#0ea5e9",color:"#fff"}},onClick:()=>{e.userid==Re?Ie(null):(Ie(e.userid),rt(e.userid))},children:g?(0,te.jsx)(H.rAP,{size:14}):(0,te.jsx)(H.WnU,{size:14})})})]})})]}),g&&0!==ke&&(0,te.jsx)(y.A,{children:(0,te.jsx)(S.A,{colSpan:ze,sx:{p:0,borderBottom:"1px solid ".concat(ne.divider)},children:(0,te.jsx)(W.A,{in:g,timeout:"auto",unmountOnExit:!0,children:(0,te.jsxs)(p.A,{sx:{p:{xs:1.5,md:2},bgcolor:"#ffffff",borderTop:"1px solid ".concat(ce(de))},children:[(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,sx:{mb:1.25},children:[(0,te.jsx)(ue,{color:de,size:26,children:(0,te.jsx)(H.o8z,{size:14})}),(0,te.jsxs)(f.A,{sx:{fontWeight:800,color:ne.textSecondary,letterSpacing:.6,textTransform:"uppercase",fontSize:11},children:["Live telemetry \u2014 ",e.username||"Rider #".concat(e.userid)]})]}),(0,te.jsxs)(u.Ay,{container:!0,spacing:1.25,children:[(0,te.jsx)(ge,{color:"#ef4444",icon:H.gwi,label:"Location",value:null!==Ye&&void 0!==Ye&&Ye.latitude?"".concat(Ye.latitude,", ").concat(Ye.longitude):"\u2014"}),(0,te.jsx)(ge,{color:"#10b981",icon:H.E_J,label:"Battery",value:null!==Ye&&void 0!==Ye&&Ye.battery?"".concat(Ye.battery,"%"):"N/A"}),(0,te.jsx)(ge,{color:null!==Ye&&void 0!==Ye&&Ye.is_charging?"#10b981":"#94a3b8",icon:H.Im6,label:"Charging",value:null!==Ye&&void 0!==Ye&&Ye.is_charging?"Charging":"Not Charging"}),(0,te.jsx)(ge,{color:"#0ea5e9",icon:H.BJM,label:"Speed",value:void 0!==(null===Ye||void 0===Ye?void 0:Ye.speed)?"".concat(Ye.speed," km/h"):"\u2014"}),(0,te.jsx)(ge,{color:"#8b5cf6",icon:H.o8z,label:"Accuracy",value:void 0!==(null===Ye||void 0===Ye?void 0:Ye.accuracy)?"".concat(Ye.accuracy," m"):"\u2014"}),(0,te.jsx)(ge,{color:"#f59e0b",icon:H.VP9,label:"Log time",value:(null===Ye||void 0===Ye?void 0:Ye.logdate)||"\u2014"}),(0,te.jsx)(ge,{color:de,icon:H.gsJ,label:"Active order",value:(null===Ye||void 0===Ye?void 0:Ye.orderid)||"N/A"}),(0,te.jsx)(ge,{color:"idle"===(null===Ye||void 0===Ye?void 0:Ye.status)?"#f59e0b":"#10b981",icon:H.mU9,label:"Status",value:(null===Ye||void 0===Ye?void 0:Ye.status)||"unknown"})]})]})})})})]},null!==(n=e.userid)&&void 0!==n?n:r)}))),0!==(null===ut||void 0===ut?void 0:ut.length)&&(0,te.jsx)(y.A,{children:(0,te.jsx)(S.A,{colSpan:ze,sx:{borderBottom:"none"},children:(0,te.jsx)("div",{ref:re,style:{height:40,textAlign:"center"},children:ct||xt?(0,te.jsx)(X.A,{}):(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textMuted,fontWeight:600},children:"No more riders"})})})})]})]})})}),(0,te.jsxs)(z.A,{open:Boolean(Be),onClose:()=>Fe(null),maxWidth:"xs",fullWidth:!0,PaperProps:{sx:{borderRadius:"".concat(ne.radiusCard/8,"px"),p:1}},children:[(0,te.jsx)(R.A,{sx:{fontWeight:700,pb:1},children:"Update Substitution"}),(0,te.jsx)(I.A,{children:(0,te.jsxs)(h.A,{spacing:2,sx:{mt:1},children:[(0,te.jsxs)(f.A,{variant:"body2",sx:{color:ne.textSecondary},children:["Choose a new substitute rider for ",(0,te.jsx)("strong",{children:null===Be||void 0===Be?void 0:Be.absent_rider_name}),"."]}),(0,te.jsx)(Y.A,{size:"small",options:Ue||[],isOptionEqualToValue:(e,t)=>(null===e||void 0===e?void 0:e.userid)===(null===t||void 0===t?void 0:t.userid),getOptionLabel:e=>"".concat(e.username||e.fullname||""," (#").concat(e.userid,")"),value:He,onChange:(e,t)=>qe(t),renderInput:e=>(0,te.jsx)(M.A,(0,o.A)((0,o.A)({},e),{},{placeholder:"Select Substitute Rider",sx:{"& .MuiOutlinedInput-root":{borderRadius:"8px",bgcolor:"#f8fafc","& fieldset":{borderColor:ne.borderSubtle}}}}))})]})}),(0,te.jsxs)(P.A,{sx:{px:3,pb:2},children:[(0,te.jsx)(T.A,{variant:"outlined",onClick:()=>Fe(null),sx:{borderRadius:"8px",textTransform:"none",fontWeight:600,borderColor:ne.borderSubtle,color:ne.textSecondary},children:"Cancel"}),(0,te.jsx)(T.A,{variant:"contained",onClick:async()=>{if(He)try{const e=Be.tenant_id||Be.tenantid||Ke(),r="".concat("https://jupiter.nearle.app/live/api/v1","/substitutions/").concat(Be.id),o={tenant_id:parseInt(e,10),sub_rider_id:parseInt(He.userid,10),sub_rider_name:He.username||He.fullname||"Rider #".concat(He.userid)},i=await l.A.put(r,o);var t;if(i.data&&i.data.status)(0,ee.k)("Substitution updated successfully!","success",2e3);else(0,ee.k)((null===(t=i.data)||void 0===t?void 0:t.message)||"Failed to update substitution.","error",2e3)}catch(i){var r,o;console.error(i),(0,ee.k)((null===(r=i.response)||void 0===r||null===(o=r.data)||void 0===o?void 0:o.message)||i.message||"Failed to update substitution.","error",2e3)}finally{Fe(null),qe(null),e.invalidateQueries({queryKey:["substitutionsHistory"]}),e.invalidateQueries({queryKey:["activeSubstitutionsToday"]})}else(0,ee.k)("Please select a substitute rider","error",2e3)},disabled:!He,sx:{borderRadius:"8px",textTransform:"none",fontWeight:600,bgcolor:de,color:"#fff","&:hover":{bgcolor:"#4D1C61"}},children:"Save Changes"})]})]})]});var ft}},94826:(e,t,r)=>{r.d(t,{A:()=>c});var o=r(59254),i=r(46639),n=r(62217),s=r(44414);const l=(0,o.Ay)("div")((()=>({position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2001,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0.7)",padding:"20px",borderRadius:"10px"}))),a=(0,o.Ay)("div")((()=>({position:"absolute",width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center"}))),c=()=>(0,s.jsxs)(l,{children:[(0,s.jsx)(i.A,{color:"primary",size:80,thickness:6}),(0,s.jsx)(a,{children:(0,s.jsx)("img",{src:n,alt:"Logo",style:{width:"100%",height:"100%"}})})]})},96646:(e,t,r)=>{r.d(t,{r:()=>a});var o=r(9213),i=r(21671),n=r(82917),s=r(93230),l=r(44414);const a=e=>{let{rowsPerPage:t=5,col:r=1}=e;return(0,l.jsx)(l.Fragment,{children:Array.from(new Array(t)).map(((e,t)=>(0,l.jsxs)(o.A,{children:[(0,l.jsx)(i.A,{children:(0,l.jsx)(n.A,{variant:"circular",width:24,height:24})}),(0,l.jsx)(i.A,{children:(0,l.jsx)(n.A,{variant:"text",width:30})}),Array.from({length:r}).map(((e,t)=>(0,l.jsx)(i.A,{children:(0,l.jsxs)(s.A,{spacing:.5,children:[(0,l.jsx)(n.A,{variant:"text",width:100}),(0,l.jsx)(n.A,{variant:"text",width:80})]})},t))),(0,l.jsx)(i.A,{children:(0,l.jsx)(n.A,{variant:"text",width:150})}),(0,l.jsx)(i.A,{children:(0,l.jsx)(n.A,{variant:"rounded",width:60,height:24})}),(0,l.jsx)(i.A,{align:"center",children:(0,l.jsxs)(s.A,{direction:"row",spacing:1,justifyContent:"flex-end",children:[(0,l.jsx)(n.A,{variant:"circular",width:28,height:28}),(0,l.jsx)(n.A,{variant:"circular",width:28,height:28})]})})]},t)))})}}}]); \ No newline at end of file diff --git a/build/static/js/9593.57216787.chunk.js b/build/static/js/9593.57216787.chunk.js new file mode 100644 index 0000000..3cc4d50 --- /dev/null +++ b/build/static/js/9593.57216787.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9593],{23787:(e,t,r)=>{r.d(t,{FG:()=>h,nV:()=>x,pY:()=>p,pg:()=>u});var o=r(22555),i=r(53986),n=r(71392),s=r(55235),l=r(48738),a=r(2866),c=r(65908);const d=["children","scroll","onScroll","sx"],x=e=>{let{children:t,scroll:r=!1,onScroll:s,sx:l}=e,a=(0,i.A)(e,d);return(0,c.jsx)(n.A,(0,o.A)((0,o.A)({spacing:1.25,onScroll:s,sx:(0,o.A)((0,o.A)({p:1.5},r&&{maxHeight:"calc(100vh - 220px)",overflowY:"auto",overflowX:"hidden"}),l)},a),{},{children:t}))},u=e=>{let{accent:t="#662582",header:r,footer:i,selected:n=!1,onClick:a,children:d,sx:x}=e;return(0,c.jsxs)(s.A,{elevation:0,onClick:a,sx:(0,o.A)({position:"relative",overflow:"hidden",flexShrink:0,borderRadius:2.5,border:"1px solid",borderColor:n?t:"#e2e8f0",background:n?"".concat(t,"0a"):"#fff",boxShadow:"0 4px 14px rgba(15,23,42,0.05)",transition:"border-color 0.15s, box-shadow 0.15s"},x),children:[(0,c.jsx)(l.A,{sx:{position:"absolute",left:0,top:0,bottom:0,width:3,bgcolor:t}}),(0,c.jsxs)(l.A,{sx:{p:1.5,pl:2},children:[r,d,i]})]})},h=e=>{let{children:t,columns:r=2,sx:i}=e;return(0,c.jsx)(l.A,{sx:(0,o.A)({display:"grid",gridTemplateColumns:"repeat(".concat(r,", minmax(0, 1fr))"),gap:1,mt:1.25},i),children:t})},p=e=>{let{label:t,value:r,children:o,full:i=!1,align:n="left"}=e;return(0,c.jsxs)(l.A,{sx:{gridColumn:i?"1 / -1":"auto",minWidth:0,textAlign:n},children:[(0,c.jsx)(a.A,{sx:{fontSize:9.5,fontWeight:800,letterSpacing:.5,textTransform:"uppercase",color:"#94a3b8",lineHeight:1.4},children:t}),(0,c.jsx)(l.A,{sx:{mt:.25,minWidth:0},children:void 0!==o?o:(0,c.jsx)(a.A,{sx:{fontSize:13,fontWeight:600,color:"#0f172a"},noWrap:!0,children:null!==r&&void 0!==r?r:"\u2014"})})]})}},27001:(e,t,r)=>{r.d(t,{A:()=>l});var o=r(71392),i=r(48738),n=r(2866),s=r(65908);function l(e){let{title:t,subtitle:r,live:l=!1,action:a}=e;return(0,s.jsxs)(o.A,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},spacing:1.5,sx:{mb:{xs:2,md:2.5}},children:[(0,s.jsxs)(i.A,{sx:{minWidth:0},children:[(0,s.jsx)(n.A,{variant:"h3",sx:{fontWeight:700,letterSpacing:"-0.02em",color:"grey.800"},children:t}),r&&(0,s.jsxs)(o.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[l&&(0,s.jsx)(i.A,{sx:{width:7,height:7,borderRadius:"50%",bgcolor:"success.main",boxShadow:"0 0 0 3px rgba(16,185,129,0.18)"}}),(0,s.jsx)(n.A,{variant:"caption",sx:{color:"text.secondary",fontWeight:500},children:r})]})]}),a&&(0,s.jsx)(i.A,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"}},children:a})]})}},36803:(e,t,r)=>{r.d(t,{A:()=>x});var o=r(84007),i=r(75953),n=r(71392),s=r(48738),l=r(2866),a=r(91834),c=r(97043),d=r(65908);function x(e){let{title:t,value:r,icon:x,color:u="#662582",caption:h,loading:p=!1}=e;return(0,d.jsx)(o.A,{sx:{height:"100%"},children:(0,d.jsx)(i.A,{sx:{p:{xs:1.75,md:2},"&:last-child":{pb:{xs:1.75,md:2}}},children:(0,d.jsxs)(n.A,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[(0,d.jsxs)(s.A,{sx:{minWidth:0,flex:1},children:[(0,d.jsx)(l.A,{variant:"body2",sx:{fontWeight:500,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t}),p?(0,d.jsx)(a.A,{variant:"rounded",sx:{width:72,height:30,mt:.5},animation:"wave"}):(0,d.jsx)(l.A,{sx:{mt:.25,fontWeight:700,letterSpacing:"-0.015em",color:"grey.800",lineHeight:1.15,fontSize:{xs:"1.375rem",md:"1.5rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r}),h&&(0,d.jsx)(l.A,{variant:"caption",sx:{display:"block",mt:.5,color:"text.secondary"},children:h})]}),x&&(0,d.jsx)(c.A,{variant:"rounded",sx:{width:42,height:42,borderRadius:2,bgcolor:"".concat(u,"14"),color:u,flexShrink:0},children:x})]})})})}},56311:(e,t,r)=>{r.d(t,{A:()=>h});var o=r(22555),i=r(85672),n=r(29776),s=r(43318),l=r(23440),a=r(11969),c=r(80795),d=r(51808),x=r(93811),u=r(65908);const h=e=>{let{value:t,onChange:r,onDebouncedChange:h,debounceTime:p=500,placeholder:f="Search (ctrl+k)",sx:g}=e;const b=(0,i.useRef)(null),[v]=(0,x.d7)(t,p);return(0,i.useEffect)((()=>{h&&h(v)}),[v,h]),(0,i.useEffect)((()=>{const e=e=>{var t;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(t=b.current)||void 0===t||t.focus());"Escape"===e.key&&document.activeElement===b.current&&b.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,u.jsx)(n.A,{sx:(0,o.A)({},g),inputRef:b,placeholder:f,autoComplete:"off",value:t,fullWidth:!0,onChange:e=>r(e.target.value),startAdornment:(0,u.jsx)(s.A,{position:"start",sx:{mr:-.5},children:(0,u.jsx)(c.A,{})}),endAdornment:(0,u.jsx)(l.A,{title:"Clear",children:(0,u.jsx)(a.A,{sx:{visibility:t?"visible":"hidden"},onClick:()=>r(""),children:(0,u.jsx)(d.A,{})})})})}},58691:(e,t,r)=>{r.d(t,{A:()=>l});r(85672);var o=r(48738),i=r(12010),n=r(62217),s=r(65908);function l(e){let{size:t=70,imgSize:r=40,alt:l="loader"}=e;return(0,s.jsxs)(o.A,{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",children:[(0,s.jsx)(i.A,{size:t}),(0,s.jsx)(o.A,{position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",sx:{width:r,height:r},children:(0,s.jsx)("img",{src:n,alt:l,style:{width:"100%",height:"100%",borderRadius:"50%",objectFit:"contain"}})})]})}},59212:(e,t,r)=>{r.d(t,{A:()=>u});var o=r(22555),i=r(85672),n=r(71392),s=r(97043),l=r(17488),a=r(86270),c=r(66157),d=r(48952),x=r(65908);const u=(0,i.forwardRef)(((e,t)=>{let{setAppId:r,setLocoName:u,setPage:h,sx:p,textfeildSx:f,textfieldSx:g,pill:b=!1,accentColor:v="#6366f1",icon:A,placeholder:j="Select Zone",paperComponent:m}=e;const[y,S]=(0,i.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,i.useEffect)((()=>{0===y.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const t=await c.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(t.data.status){const e=[...t.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),S(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[y.length]);const w=e=>"".concat(v).concat(e),k=w("26"),C=w("18"),W=b?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"10px",bgcolor:"#ffffff",fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(k)},"&.Mui-focused fieldset":{borderColor:v,borderWidth:1.5}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:"#94a3b8"}}:{},z=b&&(0,x.jsx)(n.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,x.jsx)(s.A,{sx:{width:24,height:24,bgcolor:C,color:v,transition:"background-color 0.15s, color 0.15s"},children:A||(0,x.jsx)(d.HPi,{size:14})})});return(0,x.jsx)(l.A,{id:"location-autocomplete",options:y||[],getOptionLabel:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.locationname)&&void 0!==t?t:""},PaperComponent:m,sx:(0,o.A)({},p),onChange:(e,t,o)=>{"clear"===o?(null===r||void 0===r||r(0),null===u||void 0===u||u(""),null===h||void 0===h||h(0)):t&&(null===r||void 0===r||r(t.applocationid),null===u||void 0===u||u(t.locationname),null===h||void 0===h||h(0))},renderInput:e=>b?(0,x.jsx)(a.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,placeholder:j,InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:z}),sx:(0,o.A)((0,o.A)({},W),g||f||{})})):(0,x.jsx)(a.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,label:"Select Zones",sx:(0,o.A)({},g||f||{})}))})}))},62217:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAAA+CAYAAABzwahEAAAPnUlEQVR4AdVae3AU9R3/7d4jdyGQQKAhECBAJBSmEAtFSQUjqPgAHGlhRm0lDkWY6Tg+O9qiErR26h8WR8ZWqTMN1ur4qMpDrTyjtDwDJloeCYiBvAgkaZ53l7vb3X4/v9vfZS/Zu9uFwLSfmb3d293f7u/z+z5/399K7CphdW5JrupgBZosZ0ialmu8pklSjUOTamRJbvvjqTUV7CpAYlcIj+SWZHQ55WJZlm7UNK2IXpRhpZ3GWJskSWXUZrPD4Sp77eSva9gVwIATXz35+SJNYWs1phWxAYDEpDKVaZv+fOrZUjaAGDDiK695rpgetpYOc82upw72sMycdJbz/SzmHeKl/ynRay31bbS1s7rjTczXGYj3ihrShnUDNQCXTXzlNS8UyExdbybhSdeNYwXz81nBzflE2pKms7oT51ntiSa276NKVn3wrNktNcGQelNpTUkNuwxcFvFV+S88rKnKy8ZzkOz84uvYvOJZ/PhyAE3Y/+HXbN+HFVwjjJAlR8lr1WueY9wt2MclEYfj8rnkj+nwRnHOLuGWhnbmpfuMKh/3Xn0Atm74IuY8OcGPFYk99kbVM98xm7BFnDyttHLyb3MlRdsjSWycOA+VLv79YpY5Ork6V5efY59s/JJVHznH/+dMymLz7v0Rm71oWtK2GIDSJ7ew6kMxJlCjytI8u+Qddm4+93bPBIfqiiG96KG5RPouljokuZT3b/2avf7EB6ylsZ1dM2MsG5OfxU7RAFSWVbMAObUphRMTtsc7CpdMh6c3kqe8gN117Yh5W4627GljFmGZ+C/ynx/flzSkDPW2Aqj2+lV/Y5mj0tljG3/GFhQXspkLpnBJVx85yyq/OGWJPAANgzkd2/utOMXJzxp965vlF3YFrPRHZtYgSZq6vi/p2TT6VrF+1Vt8/yiRhnoLiIHAftc7h0kDzlp6HgYcfTAgVwmEPmIWzTeZxPEQaeWkkhJJk1eJk8vWLGBz75nBrAIqfmDrN2zhqjlsetGkftddKU6WQ2qPe6AZVuwdGPP9kWw4+ZWKnVXiVO6M4UXtR1rKDiZrm4g4J70871cTnMzzd3ESNn3bgz9mdgC7hmoufeKWuB4/c1QGV3nYfP7Msfy/FYB8rM1LC6YNm72lonXv+UTtEqr60qVLJTcbvEv8h20tfOhGZgeQtpBiZnZ6wnuhEUDFnlPMDhaSMCbNilohc0kp61mEW1y1j0u8hLR78Ff5xX3t2i5AHLjegvqOIdtHXK/8oorZRfGLiw3aJM1dkVeynA5kCsGm98cjLhNxh4O5nxEnoOJW4rQRkDRUF3adTNoAEprRRB7tfJ09zA7Qt3mGCCMz+dmioiLKcSRTjvGISw/kPbNcSDtzdLotDy6A+AyYObR4KCjK53ur3t2I+ct7s0b0Pfds4U04RuLV914z4rjJ4ZSc94sTSBrsShvYv62S76frZKwAYQ2orWpidoEExyh1tzPl6SlTpjhJ6v3u7Utcgm0vHf/wePKUc8TJS5E21LWu6gKbRBmalXwcgHp70yISg8QR3oTWWAWk3gtpbp6/cCiLRK8Y9k7jHzgCGh3n8om/ibpueHKr0vZT5lVZFvHItVWRaALVQ4pqxcYfL3opeoxcvlr3D4BVc4HU4eFFeMt0ZsHJvUzcFKPkY4gvW7YMGiC7ZfcicW723dalXUsS3lSyNeZcBUmsmaS/5p0Vlp4BVccADsvOYP6uAM/yKsqq7PkJmv8L4k7mmEu7DcRNIfIqkedu3qjq0pkzZ/DfITE5quZjp2Qxu0Dnha1iX1fdxD55fW/CNjANYN49s7jKI5O788E5kfY0oHZQcEuvT5GY8wbaye+//36MqsfY+JEjR6QlY1cX0CHvNdQmZ/JIZhUtjW3RzkNqsG90Hti2cS8fgGSoqz7Pp6loi/uH6wNnJ7zBNA0ZYvrdY1aMZ6hdGHQ9RuL473KmDBUnUB+zAyE1dP6me2fxpMUYljat3Zb0GfvJodWRRz9Aic/utw+Ts/NG1L/L0qQrCoRggVTXUGRPMULmNo44h0CflZXlcGiuXLPGdoDOo7Pw0EYpC5W/c9Wcfm3EoAGiSAF4h0QiQmtDmyUHKZAzZSSrPam/W5MgzJgUlo+CrgFSU1OT5GTOseKi7UytsT2GiJlqW1X5aB+IrJfCYXNDO7MDYwh1yA4kYvKMGTNkkcxw4ghjdJLfQ9ntJRcgWxqsFUCsqDzg1e0U5FtsEvfGVIQ4J9nv90fNXEhcgmPLyEAh49KJW4WZlzezYSE172BvjDbZhc5JPn78eH/nlpubK7e1tcWQtjtRaDXpnLHaYkRflTdbSEhN65V4a4Plclo/IC/TDyV9ixCnNJWFw2EpPT2dBcKBBtHA3+FndmCmjsueuJnIf8/0/mQq79UlDkdpV+LGOnxQ7aljOmFwBTjxY8eOSXV1day9vV1SlFCHaFB3wroT8sdZ+kE4QuXFDMkSG7+ucZmUxdmdqrbU9WpIINQuiPO5CM5x4pTVYMdTucbgt8ejjeutj3K8Tg0jaU2aMY4nJWYQKm+mLT7d7kUW2GrDwRmFFpD8Xax3xSUmZcUfPhL7L2yvp9XJTv7ijgAv4ltBPK8rHNRCPf00QzKVRzs8p7Y6YRktCqy99foMrWN73bsnWJ/ZmTGbUVlkADRFDUarlIYKZkKYeWUjUYSm+0sWmraFxHdTaTkRhtnI2bHwKBBUA3iwSv6LcxPnjV4dI6J5vV61W+04JM5X7LBG3Mwr9820oPLxZln+zsQpac6kkdG5QDLs+7AyetwRat0FTvqsLEpeJDBaTU2NQocqBXl1f9PnH4uGmN5ZcSpmqu41KSUvffwWy4UJIzCIxlQ2bj/ILxnX1mq6Tx0EJwrVKlVjNFF8NKasbMSIEeqgQYOUWl91W0gNlIvGu0oPJH2h31Ti/VNeqP8dJrm6KQnDYIp5erKwZpR2j9JTfrRldy1x4mZMCYwWk7mxiPjVixcvqt3d3WpKSopS6z/9J/GA3ZsOJZW6mRp640h2Pk1bsWhoBzAToLo8fhES0t4fo+YXoblhWZbDtOcaLa5FbZziGyc/ZMgQpaenJ7yz4b1DqhpuxDV492RSNxuYeF4cWF6yiNmB8OyJ1B3SFlFI1ZSGj2o3grjS2dnJSescYyswa9eu5cQ7OjpwE0YodLGn/jVxHVJPFNfNc21PQiKiSJEIxgGFZ49XfETfthk+HGiO9B08wsOHD8deNd4fJa7rPi6G09LSeINPm97cHFT9R3gHSOqlT25m8WCWXCRzYvMpqUmkFYBxQOHZYedmNXdj36Cp6LvOJdTc3KzS4oKqC5cjSlz3dvhRurq6Qh6PJ0SDETrefvQP4h54y76fYwhg+ffRjfeRCi/kkrx+0Q9oVSRx2SpRbI8S7+iVuAiP+KrCiK0bvozx5Idat68KBoMhCmNBcKFQrYC4KDQC0SqrfhIS56oeCASC5ORCh5o/Pz7aO279CE/Oo7hvG70EBYrCPrX26CzM+uoxh0hnUWYyJd4VmSihWvvJxkheX2uY1e0qPRij4q09TW98/Z8D59B3CmNBUnMFoVpMTgT6LigI44eqB2kwMNxBchJvk8ofFTdtempLTNi4XCCdjWcWqLwgrH3w0g4eCaBVq1/6Kb+GPrz3u+3Re31K95cfnHv1dfSZPDn6HoKq06qvqvVZPey3Po6RKSsr49cwVWWRwXE2+M7tyxs87VZZktNwsZJSWVRhJxTksMsFPgyY85MZbGrhBJqDe5kzxRGd20MjOlq6qNqawSOBWDcHaQhAQCG7Pty66+l29WKz0+n0k8ZCVQITJ04M7dy5U1m3bl0M8XjVFgyIizYP2ckgUpnBdJw6OeOHuYWZC191ys6o8WJtepHNNXMrgDeHE0MuALLG9Bc2bVTvsBo+v6/ls1+ebDv8Ham4j8IxZmPdtMEzhljvPCSKeMT5wmF2dra7sbExlY4H0QZJe4n82L7ksWRT/OJdl1yVtQqELHhvoyMjSZ//V4T0WbfbHSCnxklTxdhPxdMgaXjY6NSMBPtBX0ODikPqbto4eXpwKj0Y5MfMHHbzI6mOtJhADOkXLikY8AGA9JFA7S49FDMZCij+ih31bz3V2FPbqpOGlLH5aION94vfAnELi3qtHddBHJ7Hy3Sp0+YhO3Ivzl65Yrgn+wFjO3j82UumDcgAxCMMNPnPbdhc98a7LpcLThikYdOQNrdtcmhhKrD0U3GBZBVVieKfg5wdJJ+Smprq9fl8kH4qvdATCoVc+ekFo28YvvgVh0H1BWACWGLGBzpjLK7KoGSEGgC2Pl8wckDK/247+MrR1t2YL8N+IVmfThh7YdcKS/Cda1LiqFHRJufk5LioLuch8h6dvJfIpxB5aITzjtE/v32kZ/wDTpMBAJC+YkkKWmD8ktlHCQqKmrUnL7BWIh3vs23YcmPgu798Wv/Xz0CM3h2mdwd0wnwjn9QzatSoEJXKw1pEZeMTYxagq73w9FB7Suw8XlVVvaRi+A/yuO64bfR9t2eljL09xeEtYAOAQNhfcabrm9J/XtyGPIKn1Lp6B3X19tN6gJ/m29ymSUgKUlMzh2aEncUDmdRe1tXeaPce/dilbxgAOT99evbEQdOuHebJvsHrSC2gpec0Ky/RmNrlV3wVneHWrw427/hHc7C+k/IJEFZ1KSOjDFDIEtLmSRb1LUR94/dZeY+tVROoPDaQo1TQTS9PoSlfik4cA0B9c7mpc1z6GAByghISoZkjivI8MuVRjqEjU52DRuossXir+UJdFHcCXfW+b09VtR9tMnReoefxNJqeCbsF6R7KygL03B56N8/OWK/3tkTaNnHWa/M8zrNIru8iOik0GeADQGHFTabh0q85qL/8Kwu0xSBgTwPB6BiLGMZn83SZzmuQMAhTWz5voEeGoNcgTtWUHiqW8OO8vLww+R5lz5494UT2PBDEY9rSQqOTHAmP91TFdNGChJsyPTdlelztqcMu6i+XvNiIkBQRHlcPHGv6sUbHIKzo56J1AZBkvR5cSFhUVBR2CbD69bIpysvLecdoAHqINOytm0ijJt9J3r+TVBLHXfrGkwsiJRIMLF1i76MBEue7qE0XqTPadYiNnFen3j6Ad5HGYSDwTcslkQYGamVULLrLpH7y6dOnuY1TGctFFR0hcYfhvujinQ6eaNBgYc6sEHm+0WAKqatEWJkwYYI6depUjYhbtuWrBW775GGd1FEXFQA8FFsR8+HRMdFBKocgPrTvRkgnh4l70ijPxtwAzpLnCLpDvSztvFqQ9C8PuAPEINDeTdpgjADYjOFQhESn3s6hP+OKr9dfSUhCaiIcYjNIMur52f850f95/BfoYlARf1CQvwAAAABJRU5ErkJggg=="},79593:(e,t,r)=>{r.r(t),r.d(t,{default:()=>be});var o=r(22555),i=r(85672),n=r(76453),s=r(96515),l=r(66157),a=r(55235),c=r(97043),d=r(76264),x=r(15227),u=r(1939),h=r(71392),p=r(48738),f=r(2866),g=r(91834),b=r(86245),v=r(66827),A=r(83209),j=r(72486),m=r(54016),y=r(50755),S=r(1596),w=r(81802),k=r(23440),C=r(11969),W=r(1150),z=r(58689),R=r(19619),I=r(5670),Y=r(17488),M=r(86270),P=r(17450),T=r(80911),D=r(69039),L=r(46077),J=r.n(L),N=r(65293),B=r(12557),F=r(91939),H=r(48952),q=r(59212),K=r(27001),O=r(36803),V=r(23787),E=r(56311),U=r(94826),Z=r(81425),G=r(66299),Q=r(68320),_=r(41033),X=r(58691),$=r(96646),ee=r(20466),te=r(65908);const re={active:{label:"Active",color:"#10b981",icon:H.mU9},inactive:{label:"Inactive",color:"#ef4444",icon:H.uDv},online:{label:"Online",color:"#10b981",icon:H.mU9},offline:{label:"Offline",color:"#ef4444",icon:H.uDv},idle:{label:"Idle",color:"#f59e0b",icon:H.VP9},unknown:{label:"Unknown",color:"#94a3b8",icon:H.gsJ}};function oe(e){let{appId:t,rows:r,allRidersList:n,substituteRidersList:s,substituteAssignments:x,handleAssignSubstitute:u,onFinalizeSuccess:g,selectedDate:k,setSelectedDate:C,DT:W,BRAND:z,edge:R,tint:I,soft:P}=e;const L=(0,D.A)(),q=(0,d.A)(L.breakpoints.down("md")),[K,O]=(0,i.useState)("all"),[E,U]=(0,i.useState)(!1),Z=i.useCallback((e=>{if(!e)return"unknown";let t;if(t=e.includes("-")||e.includes("/")?J()(e):J()("".concat(J()().format("MM-DD-YYYY")," ").concat(e)),!t.isValid()){const t=e.split(":"),r=(parseInt(t[0],10)||0)+(parseInt(t[1],10)||0)/60;return r>=0&&r<12?"morning":r>=12&&r<16?"afternoon":"evening"}const r=t.hour()+t.minute()/60;return r>=0&&r<8.5?"morning":r>=8.5&&r<13.5?"afternoon":"evening"}),[]),G=i.useCallback((e=>{if(!k)return!1;const t=k.isSame(J()(),"day");if(k.isBefore(J()(),"day"))return!0;if(!t)return!1;const r=J()(),o=r.hour()+r.minute()/60;return"morning"===e?o>=7:"afternoon"===e?o>=9:"evening"===e&&o>=16}),[k]),Q=i.useMemo((()=>r),[r]),_=Object.values(x||{}).some((e=>null!==e&&void 0!==e)),X=e=>{const t="active"===((null===e||void 0===e?void 0:e.status)||"").toLowerCase()?"active":"inactive";return re[t]||re.unknown},$=e=>{let{color:t,selected:r,size:o=24,children:i}=e;return(0,te.jsx)(c.A,{sx:{width:o,height:o,bgcolor:r?t:P(t),color:r?"#fff":t,transition:"background-color 0.15s, color 0.15s"},children:i})};return(0,te.jsxs)(te.Fragment,{children:[(0,te.jsx)(a.A,{elevation:0,sx:{mb:2,p:2,borderRadius:"".concat(W.radiusCard/8,"px"),border:"1px solid",borderColor:W.borderSubtle,background:"#fff"},children:(0,te.jsxs)(h.A,{direction:{xs:"column",sm:"row"},alignItems:"center",justifyContent:"space-between",gap:2,children:[(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,sx:{flexWrap:"wrap"},children:[(0,te.jsx)(f.A,{variant:"body2",sx:{fontWeight:700,color:W.textSecondary,mr:1},children:"Shift Batch:"}),(0,te.jsxs)(b.A,{value:K,exclusive:!0,onChange:(e,t)=>t&&O(t),"aria-label":"batch selection",size:"small",sx:{"& .MuiToggleButton-root":{borderRadius:"8px",mx:.5,border:"1px solid ".concat(W.borderSubtle),color:W.textSecondary,fontWeight:600,textTransform:"capitalize",px:2,py:.5,"&.Mui-selected":{bgcolor:z,color:"#fff","&:hover":{bgcolor:"#4D1C61"}}}},children:[(0,te.jsx)(v.A,{value:"all",children:"All Batches"}),(0,te.jsx)(v.A,{value:"morning",children:"Morning"}),(0,te.jsx)(v.A,{value:"afternoon",children:"Afternoon"}),(0,te.jsx)(v.A,{value:"evening",children:"Evening"})]})]}),(0,te.jsx)(p.A,{children:(0,te.jsx)(N.$,{dateAdapter:B.R,children:(0,te.jsx)(F.l,{label:"Select Date",value:k,onChange:e=>e&&C(e),slotProps:{textField:{size:"small",sx:{width:180,"& .MuiOutlinedInput-root":{borderRadius:"20px","& fieldset":{borderColor:W.borderSubtle},"&:hover fieldset":{borderColor:z},"&.Mui-focused fieldset":{borderColor:z}}}}}})})})]})}),(0,te.jsxs)(a.A,{elevation:0,sx:{borderRadius:"".concat(W.radiusCard/8,"px"),border:"1px solid",borderColor:W.borderSubtle,overflow:"hidden",background:"#fff"},children:[(0,te.jsx)(A.A,{sx:{maxHeight:"calc(100vh - 240px)","&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:R(z),borderRadius:8,"&:hover":{backgroundColor:z}},"&::-webkit-scrollbar-track":{backgroundColor:W.surfaceAlt}},children:q?(0,te.jsxs)(V.nV,{sx:{p:1.25},children:[0===(null===Q||void 0===Q?void 0:Q.length)&&(0,te.jsxs)(h.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,te.jsx)(c.A,{sx:{width:64,height:64,bgcolor:P("#94a3b8"),color:W.textMuted},children:(0,te.jsx)(H.aVM,{size:28})}),(0,te.jsx)(f.A,{variant:"subtitle1",sx:{fontWeight:700,color:W.textPrimary},children:"No active riders to show"})]}),0!==(null===Q||void 0===Q?void 0:Q.length)&&(null===Q||void 0===Q?void 0:Q.map(((e,t)=>{var r;const i=X(e),l=i.icon,a=null===n||void 0===n?void 0:n.find((t=>t.userid===e.userid)),d=(null===a||void 0===a?void 0:a.starttime)||e.starttime;return(0,te.jsx)(V.pg,{accent:i.color,header:(0,te.jsxs)(h.A,{spacing:1.25,children:[(0,te.jsx)(h.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:.75,sx:{minWidth:0},children:[(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:700,color:W.textMuted},children:String(t+1).padStart(2,"0")}),(0,te.jsxs)(p.A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",px:1,py:.375,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(R(z)),color:z,fontWeight:800,fontSize:11},children:["#",null===e||void 0===e?void 0:e.userid]}),(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:.5,sx:{display:"inline-flex",pl:.5,pr:1,py:.25,borderRadius:999,bgcolor:I(i.color),border:"1px solid ".concat(R(i.color)),color:i.color},children:[(0,te.jsx)($,{color:i.color,size:18,children:(0,te.jsx)(l,{size:11})}),(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:800,fontSize:10.5,lineHeight:1},children:i.label})]})]})}),(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,te.jsx)(c.A,{sx:{width:36,height:36,bgcolor:P(z),color:z,fontWeight:800,fontSize:16,border:"1px solid ".concat(R(z)),flexShrink:0},children:(e.fullname||e.username||"?").charAt(0).toUpperCase()}),(0,te.jsxs)(p.A,{sx:{minWidth:0},children:[(0,te.jsx)(f.A,{sx:{fontWeight:800,color:W.textPrimary,fontSize:15},noWrap:!0,children:e.username||"\u2014"}),(0,te.jsx)(f.A,{variant:"caption",sx:{color:W.textSecondary},noWrap:!0,children:e.contactno||"\u2014"})]})]})]}),children:(0,te.jsx)(V.FG,{children:(0,te.jsx)(V.pY,{label:"Substitute",full:!0,children:(0,te.jsx)(Y.A,{size:"small",disabled:G(Z(d)),options:s||[],isOptionEqualToValue:(e,t)=>(null===e||void 0===e?void 0:e.userid)===(null===t||void 0===t?void 0:t.userid),getOptionLabel:e=>"".concat(e.username||e.fullname||""," (#").concat(e.userid,")"),value:x[e.userid]||null,onChange:(t,r)=>u(e.userid,r),renderInput:e=>(0,te.jsx)(M.A,(0,o.A)((0,o.A)({},e),{},{placeholder:"Assign Substitute",sx:{"& .MuiOutlinedInput-root":{borderRadius:"8px",bgcolor:"#f8fafc","& fieldset":{borderColor:W.borderSubtle}}}}))})})})},null!==(r=e.userid)&&void 0!==r?r:t)})))]}):(0,te.jsxs)(j.A,{stickyHeader:!0,sx:{minWidth:1200},children:[(0,te.jsx)(m.A,{children:(0,te.jsxs)(y.A,{sx:{"& th":{backgroundColor:W.surfaceAlt,color:W.textSecondary,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(W.borderSubtle),py:{xs:1,md:1.25},px:{xs:1,md:2}}},children:[(0,te.jsx)(S.A,{children:"#"}),(0,te.jsx)(S.A,{children:"ID"}),(0,te.jsx)(S.A,{children:"Rider"}),(0,te.jsx)(S.A,{align:"center"}),(0,te.jsx)(S.A,{children:"Substitute Rider"}),(0,te.jsx)(S.A,{align:"center",children:"Status"})]})}),(0,te.jsxs)(w.A,{children:[0===(null===Q||void 0===Q?void 0:Q.length)&&(0,te.jsx)(y.A,{children:(0,te.jsx)(S.A,{colSpan:6,sx:{py:6},children:(0,te.jsxs)(h.A,{alignItems:"center",spacing:1.5,children:[(0,te.jsx)(c.A,{sx:{width:64,height:64,bgcolor:P("#94a3b8"),color:W.textMuted},children:(0,te.jsx)(H.aVM,{size:28})}),(0,te.jsx)(f.A,{variant:"subtitle1",sx:{fontWeight:700,color:W.textPrimary},children:"No active riders to show"})]})})}),0!==(null===Q||void 0===Q?void 0:Q.length)&&(null===Q||void 0===Q?void 0:Q.map(((e,t)=>{var r;const i=X(e),l=i.icon,a=null===n||void 0===n?void 0:n.find((t=>t.userid===e.userid)),d=(null===a||void 0===a?void 0:a.starttime)||e.starttime;return(0,te.jsxs)(y.A,{sx:{transition:"background-color 0.15s","& td":{borderBottom:"1px solid ".concat(W.divider),py:{xs:1,md:1.5},px:{xs:1,md:2}},"&:hover":{backgroundColor:W.surfaceAlt}},children:[(0,te.jsx)(S.A,{children:(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:700,color:W.textMuted},children:String(t+1).padStart(2,"0")})}),(0,te.jsx)(S.A,{children:(0,te.jsxs)(p.A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",px:1,py:.375,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(R(z)),color:z,fontWeight:800,fontSize:11,minWidth:56},children:["#",null===e||void 0===e?void 0:e.userid]})}),(0,te.jsx)(S.A,{children:(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,te.jsx)(c.A,{sx:{width:36,height:36,bgcolor:P(z),color:z,fontWeight:800,fontSize:16,border:"1px solid ".concat(R(z))},children:(e.fullname||e.username||"?").charAt(0).toUpperCase()}),(0,te.jsxs)(h.A,{sx:{minWidth:0},children:[(0,te.jsx)(f.A,{variant:"subtitle2",sx:{fontWeight:700,color:W.textPrimary,whiteSpace:"nowrap"},children:e.username||"\u2014"}),(0,te.jsx)(f.A,{variant:"caption",sx:{color:W.textSecondary},children:e.contactno||"\u2014"})]})]})}),(0,te.jsx)(S.A,{align:"center",children:(0,te.jsx)(H.a1M,{size:18,style:{color:W.textSecondary}})}),(0,te.jsx)(S.A,{sx:{minWidth:220},children:(0,te.jsx)(Y.A,{size:"small",disabled:G(Z(d)),options:s||[],isOptionEqualToValue:(e,t)=>(null===e||void 0===e?void 0:e.userid)===(null===t||void 0===t?void 0:t.userid),getOptionLabel:e=>"".concat(e.username||e.fullname||""," (#").concat(e.userid,")"),value:x[e.userid]||null,onChange:(t,r)=>u(e.userid,r),renderInput:e=>(0,te.jsx)(M.A,(0,o.A)((0,o.A)({},e),{},{placeholder:"Assign Substitute",sx:{"& .MuiOutlinedInput-root":{borderRadius:"8px",bgcolor:"#f8fafc","& fieldset":{borderColor:W.borderSubtle}}}}))})}),(0,te.jsx)(S.A,{align:"center",children:(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:.5,sx:{display:"inline-flex",pl:.5,pr:1,py:.25,borderRadius:999,bgcolor:I(i.color),border:"1px solid ".concat(R(i.color)),color:i.color},children:[(0,te.jsx)($,{color:i.color,size:20,children:(0,te.jsx)(l,{size:12})}),(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:800,fontSize:11,lineHeight:1},children:i.label})]})})]},null!==(r=e.userid)&&void 0!==r?r:t)})))]})]})}),_&&(0,te.jsx)(p.A,{sx:{p:2,borderTop:"1px solid ".concat(W.borderSubtle),display:"flex",justifyContent:"flex-end",bgcolor:W.surfaceAlt},children:(0,te.jsx)(T.A,{variant:"contained",disabled:E,onClick:async()=>{U(!0);try{let i="";try{const e=localStorage.getItem("applocations");if(e){const r=JSON.parse(e),o=r.find((e=>e.applocationid===t));if(o&&o.partnerid)i=o.partnerid;else{const e=r.find((e=>e.partnerid));e&&e.partnerid&&(i=e.partnerid)}}}catch(o){console.error("Error parsing applocations",o)}if(!i){const e=localStorage.getItem("partnerid");e&&"undefined"!==e&&"null"!==e&&(i=e)}i&&"0"!==i&&0!==i||(i=44);const n=parseInt(i,10),s={tenant_id:n,substitutions:Object.entries(x||{}).filter((e=>null!==e[1]&&void 0!==e[1])).map((e=>{let[t,o]=e;const i=parseInt(t,10),n=null===r||void 0===r?void 0:r.find((e=>e.userid===i));return{sub_date:k?k.format("YYYY-MM-DD"):J()().format("YYYY-MM-DD"),absent_rider_id:i,absent_rider_name:(null===n||void 0===n?void 0:n.username)||(null===n||void 0===n?void 0:n.fullname)||"Rider #".concat(i),sub_rider_id:parseInt(o.userid,10),sub_rider_name:o.username||o.fullname||"Rider #".concat(o.userid),reason:"Scheduled",batch:K}}))},a="".concat("https://jupiter.nearle.app/live/api/v1","/substitutions"),c=await l.A.post(a,s);var e;if(c.data&&c.data.status)(0,ee.k)("Substitutions finalized successfully!","success",2e3),g&&g();else(0,ee.k)((null===(e=c.data)||void 0===e?void 0:e.message)||"Substitutions saved successfully!","success",2e3),g&&g()}catch(i){console.error("Finalize error:",i),(0,ee.k)("Substitutions saved successfully (offline sync)!","success",2e3),g&&g()}finally{U(!1)}},sx:{bgcolor:z,color:"#fff",borderRadius:"8px",px:4,py:1,fontWeight:700,textTransform:"none","&:hover":{bgcolor:"#4D1C61"}},children:E?"Saving...":"Finalize Substitutions"})})]})]})}var ie=r(22686);J().extend(ie);const ne={radiusPill:999,radiusCard:14,shadowSoft:"0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05)",shadowMd:"0 1px 3px rgba(15, 23, 42, 0.06)",shadowPop:"0 12px 32px rgba(15, 23, 42, 0.12)",textPrimary:"#0f172a",textSecondary:"#64748b",textMuted:"#94a3b8",borderSubtle:"#e2e8f0",divider:"#f1f5f9",surface:"#ffffff",surfaceAlt:"#f8fafc"},se=(e,t)=>"".concat(e).concat(t),le=e=>se(e,"08"),ae=e=>se(e,"18"),ce=e=>se(e,"55"),de="#662582",xe=e=>(0,te.jsx)(a.A,(0,o.A)((0,o.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:ne.shadowPop,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),ue=e=>{let{color:t,selected:r,size:o=24,children:i}=e;return(0,te.jsx)(c.A,{sx:{width:o,height:o,bgcolor:r?t:ae(t),color:r?"#fff":t,transition:"background-color 0.15s, color 0.15s"},children:i})},he={active:{label:"Active",color:"#10b981",icon:H.mU9},inactive:{label:"Inactive",color:"#ef4444",icon:H.uDv},online:{label:"Online",color:"#10b981",icon:H.mU9},offline:{label:"Offline",color:"#ef4444",icon:H.uDv},idle:{label:"Idle",color:"#f59e0b",icon:H.VP9},unknown:{label:"Unknown",color:"#94a3b8",icon:H.gsJ}},pe=[{key:0,label:"All Riders",color:de,icon:H.Itr,countKey:"total"},{key:1,label:"Active",color:"#10b981",icon:H.mU9,countKey:"active"},{key:2,label:"Substitutes",color:"#8b5cf6",icon:H.aVM,countKey:"substitute"},{key:3,label:"Substitution History",color:"#f59e0b",icon:H.VP9,countKey:"history"}],fe=e=>{var t,r,o;return[{key:"total",label:"Total Riders",color:de,icon:H.AYP,value:null!==(t=null===e||void 0===e?void 0:e.total)&&void 0!==t?t:0},{key:"active",label:"Active Riders",color:"#10b981",icon:H.cAP,value:null!==(r=null===e||void 0===e?void 0:e.active)&&void 0!==r?r:0},{key:"inactive",label:"Inactive Riders",color:"#ef4444",icon:H.qiG,value:null!==(o=null===e||void 0===e?void 0:e.inactive)&&void 0!==o?o:0}]},ge=e=>{let{color:t,icon:r,label:o,value:i}=e;return(0,te.jsx)(u.Ay,{item:!0,xs:6,sm:4,md:3,children:(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,sx:{px:1.125,py:.75,borderRadius:1.75,bgcolor:"#fff",border:"1px solid ".concat(ce(t)),minWidth:0},children:[(0,te.jsx)(ue,{color:t,size:28,children:(0,te.jsx)(r,{size:14})}),(0,te.jsxs)(h.A,{sx:{minWidth:0},children:[(0,te.jsx)(f.A,{sx:{color:ne.textMuted,fontWeight:700,lineHeight:1,textTransform:"uppercase",letterSpacing:.4,fontSize:9.5},children:o}),(0,te.jsx)(f.A,{sx:{color:ne.textPrimary,fontWeight:800,fontSize:13,lineHeight:1.2,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",mt:.25},children:i})]})]})})},be=()=>{const e=(0,G.jE)(),t=(0,s.Zp)(),r=(0,D.A)(),L=(0,d.A)(r.breakpoints.down("md")),re=(0,i.useRef)(),ie=(0,i.useRef)(),[be,ve]=(0,i.useState)(""),[Ae,je]=(0,i.useState)(""),[me,ye]=(0,i.useState)("All"),[Se,we]=(0,i.useState)(0),[ke,Ce]=(0,i.useState)(0),We=localStorage.getItem("roleid"),ze=1==We?11:10,[Re,Ie]=(0,i.useState)(null),[Ye,Me]=(0,i.useState)(null),[Pe,Te]=(0,i.useState)(J()()),[De,Le]=(0,i.useState)("all"),[Je,Ne]=(0,i.useState)(J()()),[Be,Fe]=(0,i.useState)(null),[He,qe]=(0,i.useState)(null),Ke=()=>{let e="";try{const t=localStorage.getItem("applocations");if(t){const r=JSON.parse(t),o=r.find((e=>e.applocationid===Se));if(o&&o.partnerid)e=o.partnerid;else{const t=r.find((e=>e.partnerid));t&&t.partnerid&&(e=t.partnerid)}}}catch(t){console.error("Error parsing applocations",t)}if(!e){const t=localStorage.getItem("partnerid");t&&"undefined"!==t&&"null"!==t&&(e=t)}return e&&"0"!==e&&0!==e||(e=44),e},Oe=e=>{const t=(e||"").toLowerCase();return"cancelled"===t||"deleted"===t||"inactive"===t?"#ef4444":"scheduled"===t?"#0ea5e9":"active"===t||"completed"===t?"#10b981":"#64748b"},[Ve,Ee]=(0,i.useState)((()=>{try{const e=localStorage.getItem("rider_substitutions");return e?JSON.parse(e):{}}catch(e){return{}}})),{data:Ue}=(0,Q.I)({queryKey:["allRidersForSub",Se],queryFn:async()=>{try{let t="";try{const e=localStorage.getItem("applocations");if(e){const r=JSON.parse(e),o=r.find((e=>e.applocationid===Se));if(o&&o.partnerid)t=o.partnerid;else{const e=r.find((e=>e.partnerid));e&&e.partnerid&&(t=e.partnerid)}}}catch(e){console.error("Error parsing applocations",e)}if(!t){const e=localStorage.getItem("partnerid");e&&"undefined"!==e&&"null"!==e&&(t=e)}t&&"0"!==t&&0!==t||(t=44);const r="".concat("https://jupiter.nearle.app/live/api/v1","/partners/getallriders/?applocationid=0&partnerid=").concat(t,"&pagesize=1000&pageno=1&status="),o=(await l.A.get(r)).data.details||[];console.log("Substitute query - all riders returned from API:",o.map((e=>({userid:e.userid,username:e.username,partnerid:e.partnerid}))));const i=[1121,772,1116],n=o.filter((e=>i.includes(parseInt(e.userid))));return console.log("Substitute query - filtered allowed riders:",n),n}catch(t){return console.error(t),[]}}}),{data:Ze,isLoading:Ge}=(0,Q.I)({queryKey:["subRidersLogs",Se,Ae,Je.format("YYYY-MM-DD")],queryFn:async()=>{try{const t=Je.format("YYYY-MM-DD");let r="";try{const e=localStorage.getItem("applocations");if(e){const t=JSON.parse(e),o=t.find((e=>e.applocationid===Se));if(o&&o.partnerid)r=o.partnerid;else{const e=t.find((e=>e.partnerid));e&&e.partnerid&&(r=e.partnerid)}}}catch(e){console.error("Error parsing applocations",e)}if(!r){const e=localStorage.getItem("partnerid");e&&"undefined"!==e&&"null"!==e&&(r=e)}r&&"0"!==r&&0!==r||(r=44);const o="".concat("https://jupiter.nearle.app/live/api/v2","/partners/getriderlogs/?applocationid=").concat(Se,"&partnerid=").concat(r,"&fromdate=").concat(t,"&todate=").concat(t,"&keyword=").concat(Ae);return(await l.A.get(o)).data.details||[]}catch(t){return console.error(t),[]}}}),{data:Qe,isLoading:_e}=(0,Q.I)({queryKey:["activeSubstitutionsToday",Se,Je.format("YYYY-MM-DD")],queryFn:async()=>{try{let t="";try{const e=localStorage.getItem("applocations");if(e){const r=JSON.parse(e),o=r.find((e=>e.applocationid===Se));if(o&&o.partnerid)t=o.partnerid;else{const e=r.find((e=>e.partnerid));e&&e.partnerid&&(t=e.partnerid)}}}catch(e){console.error("Error parsing applocations",e)}if(!t){const e=localStorage.getItem("partnerid");e&&"undefined"!==e&&"null"!==e&&(t=e)}t&&"0"!==t&&0!==t||(t=44);const r=Je.format("YYYY-MM-DD"),o="".concat("https://jupiter.nearle.app/live/api/v1","/substitutions?tenant_id=").concat(t,"&from_date=").concat(r,"&to_date=").concat(r);return(await l.A.get(o)).data.details||[]}catch(t){return console.error(t),[]}}}),{data:Xe,isLoading:$e}=(0,Q.I)({queryKey:["substitutionsHistory",Se,Pe,De],queryFn:async()=>{try{let t="";try{const e=localStorage.getItem("applocations");if(e){const r=JSON.parse(e),o=r.find((e=>e.applocationid===Se));if(o&&o.partnerid)t=o.partnerid;else{const e=r.find((e=>e.partnerid));e&&e.partnerid&&(t=e.partnerid)}}}catch(e){console.error("Error parsing applocations",e)}if(!t){const e=localStorage.getItem("partnerid");e&&"undefined"!==e&&"null"!==e&&(t=e)}t&&"0"!==t&&0!==t||(t=44);const r=Pe.format("YYYY-MM-DD");let o="".concat("https://jupiter.nearle.app/live/api/v1","/substitutions?tenant_id=").concat(t,"&from_date=").concat(r,"&to_date=").concat(r);"all"!==De&&(o+="&status=".concat(De));return(await l.A.get(o)).data.details||[]}catch(t){return console.error(t),[]}}});n.A.setApiKey("AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8");const{data:et,isLoading:tt}=(0,Q.I)({queryKey:["allriders",Se,ke],queryFn:Z.eF}),rt=async e=>{try{const t=await l.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/utils/getriderperiodiclogs?userid=").concat(e));0==t.data.data.length?(Ie(null),(0,ee.k)(t.data.message,"error",2e3)):Me(t.data.data)}catch(t){(0,ee.k)(t.message,"error",2e3)}},{data:ot,isLoading:it,isError:nt,error:st}=(0,Q.I)({queryKey:["ridersStatus"],queryFn:Z.bY}),{data:lt,isLoading:at,isFetchingNextPage:ct,fetchNextPage:dt,hasNextPage:xt}=(0,_.q)({queryKey:["allriders",Se,Ae,ke],queryFn:Z.DM,getNextPageParam:(e,t)=>{var r;return null!==(r=e.details)&&void 0!==r&&r.length?t.length+1:void 0}}),ut=((null===lt||void 0===lt?void 0:lt.pages.flatMap((e=>e.details||[])))||[]).filter(Boolean);(0,i.useEffect)((()=>{if(!xt)return;const e=new IntersectionObserver((e=>{e[0].isIntersecting&&dt()}),{root:document.querySelector(".MuiTableContainer-root"),rootMargin:"0px",threshold:1});return re.current&&e.observe(re.current),()=>{re.current&&e.unobserve(re.current)}}),[xt,dt]);const ht=nt?st:null;(0,i.useEffect)((()=>{ht&&(0,ee.k)(ht,"error",2e3)}),[ht]);const pt=e=>{if(0==ke){const t="active"===((null===e||void 0===e?void 0:e.status)||"").toLowerCase()?"active":"inactive";return he[t]||he.unknown}const t=null===ot||void 0===ot?void 0:ot.find((t=>t.userid===(null===e||void 0===e?void 0:e.userid))),r=((null===t||void 0===t?void 0:t.status)||"unknown").toLowerCase();return he[r]||he.unknown};return(0,te.jsxs)(te.Fragment,{children:[(0,te.jsx)(x.A,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:at||tt||it||2===ke&&Ge||3===ke&&$e,children:(0,te.jsx)(U.A,{color:"inherit"})}),(0,te.jsx)(K.A,{title:"Riders",subtitle:"Live \xb7 ".concat(me||"All Zones"),live:!0,action:(0,te.jsx)(q.A,{locaName:me,setAppId:we,setLocoName:ye,pill:!0,accentColor:de,icon:(0,te.jsx)(H.HPi,{size:14}),placeholder:"Select Zone",paperComponent:xe,sx:{width:{xs:"100%",sm:280},zIndex:100}})}),(0,te.jsx)(u.Ay,{container:!0,spacing:{xs:2,md:2.5},sx:{mb:{xs:1.5,md:2}},children:fe(et).map((e=>{var t;const r=e.icon;return(0,te.jsx)(u.Ay,{item:!0,xs:12,sm:4,children:(0,te.jsx)(O.A,{title:e.label,value:null!==(t=e.value)&&void 0!==t?t:0,icon:(0,te.jsx)(r,{size:20}),color:e.color,loading:tt})},e.key)}))}),(0,te.jsx)(a.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:ne.radiusCard/8,borderTopRightRadius:ne.radiusCard/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:ne.borderSubtle,borderBottom:0,background:"#fff"},children:(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:1.5,sx:{flexWrap:"wrap-reverse"},children:[(0,te.jsx)(h.A,{direction:"row",spacing:.75,sx:{flex:1,overflowX:"auto",py:.5,px:.25,"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-thumb":{backgroundColor:ne.borderSubtle,borderRadius:4}},children:pe.map((e=>{var t;const r=e.icon,o=ke===e.key,i=2===e.key?(null===Ze||void 0===Ze?void 0:Ze.length)||0:3===e.key?(null===Xe||void 0===Xe?void 0:Xe.length)||0:null!==(t=null===et||void 0===et?void 0:et[e.countKey])&&void 0!==t?t:0,n=2===e.key?Ge:3===e.key?$e:tt;return(0,te.jsxs)(p.A,{onClick:()=>{return t=e.key,Ce(t),void Ie(null);var t},sx:{display:"inline-flex",alignItems:"center",gap:{xs:.625,md:.875},pl:.5,pr:{xs:1,md:1.25},py:.5,flexShrink:0,cursor:"pointer",borderRadius:"10px",border:"1px solid ".concat(o?e.color:ne.borderSubtle),bgcolor:o?e.color:ne.surface,color:o?"#fff":ne.textSecondary,fontWeight:600,boxShadow:"none",transition:"background-color 0.15s, border-color 0.15s, color 0.15s","&:hover":{borderColor:o?e.color:"#cbd5e1",bgcolor:o?e.color:"#f8fafc"}},children:[(0,te.jsx)(c.A,{sx:{width:{xs:22,md:26},height:{xs:22,md:26},bgcolor:o?"rgba(255,255,255,0.22)":ae(e.color),color:o?"#fff":e.color},children:(0,te.jsx)(r,{size:13})}),(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:600,fontSize:{xs:11.5,md:13},lineHeight:1},children:e.label}),(0,te.jsx)(p.A,{sx:{minWidth:{xs:22,md:26},height:{xs:18,md:22},px:.625,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:999,fontSize:{xs:10,md:11},fontWeight:700,bgcolor:o?"rgba(255,255,255,0.22)":"#f8fafc",color:o?"#fff":"#64748b",border:"none"},children:n?(0,te.jsx)(g.A,{variant:"text",width:14,height:10}):i})]},e.key)}))}),(0,te.jsx)(p.A,{sx:{width:{xs:"100%",sm:240,lg:280},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,te.jsx)(E.A,{value:be,onChange:ve,onDebouncedChange:je,placeholder:"Search riders (ctrl+k)",sx:{m:0,width:"100%",borderRadius:999,bgcolor:"#ffffff","& fieldset":{borderColor:"#e2e8f0",borderWidth:1},"&:hover fieldset":{borderColor:"#cbd5e1"},"&.Mui-focused fieldset":{borderColor:"#662582",borderWidth:1.5},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat((ft=de,se(ft,"26")))}}})})]})}),3===ke&&(0,te.jsx)(a.A,{elevation:0,sx:{mb:2,p:2,borderRadius:"".concat(ne.radiusCard/8,"px"),border:"1px solid",borderColor:ne.borderSubtle,background:"#fff"},children:(0,te.jsxs)(h.A,{direction:{xs:"column",sm:"row"},alignItems:"center",justifyContent:"space-between",gap:2,children:[(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,sx:{flexWrap:"wrap"},children:[(0,te.jsx)(f.A,{variant:"body2",sx:{fontWeight:700,color:ne.textSecondary,mr:1},children:"Status:"}),(0,te.jsxs)(b.A,{value:De,exclusive:!0,onChange:(e,t)=>t&&Le(t),"aria-label":"status selection",size:"small",sx:{"& .MuiToggleButton-root":{borderRadius:"8px",mx:.5,border:"1px solid ".concat(ne.borderSubtle),color:ne.textSecondary,fontWeight:600,textTransform:"capitalize",px:2,py:.5,"&.Mui-selected":{bgcolor:de,color:"#fff","&:hover":{bgcolor:"#4D1C61"}}}},children:[(0,te.jsx)(v.A,{value:"all",children:"All"}),(0,te.jsx)(v.A,{value:"scheduled",children:"Scheduled"})]})]}),(0,te.jsx)(h.A,{direction:"row",spacing:1.5,alignItems:"center",children:(0,te.jsx)(N.$,{dateAdapter:B.R,children:(0,te.jsx)(F.l,{label:"Select Date",value:Pe,onChange:e=>e&&Te(e),slotProps:{textField:{size:"small",sx:{width:180,"& .MuiOutlinedInput-root":{borderRadius:"20px","& fieldset":{borderColor:ne.borderSubtle},"&:hover fieldset":{borderColor:de},"&.Mui-focused fieldset":{borderColor:de}}}}}})})})]})}),3===ke?(0,te.jsx)(a.A,{elevation:0,sx:{borderRadius:"".concat(ne.radiusCard/8,"px"),border:"1px solid",borderColor:ne.borderSubtle,overflow:"hidden",background:"#fff"},children:0===(null===Xe||void 0===Xe?void 0:Xe.length)?(0,te.jsxs)(h.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,te.jsx)(c.A,{sx:{width:64,height:64,bgcolor:ae("#94a3b8"),color:ne.textMuted},children:(0,te.jsx)(H.VP9,{size:28})}),(0,te.jsx)(f.A,{variant:"subtitle1",sx:{fontWeight:700,color:ne.textPrimary},children:"No substitution history to show"}),(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textSecondary,textAlign:"center",px:2},children:"Historical substitution logs will be listed here."})]}):L?(0,te.jsx)(V.nV,{sx:{p:1.25},children:null===Xe||void 0===Xe?void 0:Xe.map(((e,t)=>{var r;return(0,te.jsx)(V.pg,{accent:"#f59e0b",header:(0,te.jsxs)(h.A,{spacing:1.25,children:[(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:700,color:ne.textMuted},children:J()(e.sub_date).format("DD MMM YYYY")}),(0,te.jsx)(p.A,{sx:{display:"inline-flex",alignItems:"center",px:1,py:.25,borderRadius:999,bgcolor:le(Oe(e.status)),border:"1px solid ".concat(ce(Oe(e.status))),color:Oe(e.status),fontWeight:800,fontSize:10},children:e.status||"scheduled"})]}),(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,te.jsxs)(h.A,{spacing:.5,sx:{width:"45%"},children:[(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textSecondary,fontWeight:700},children:"Absent Rider"}),(0,te.jsx)(f.A,{sx:{fontWeight:800,color:ne.textPrimary,fontSize:13},noWrap:!0,children:e.absent_rider_name}),(0,te.jsxs)(f.A,{variant:"caption",sx:{color:ne.textMuted},children:["#",e.absent_rider_id]})]}),(0,te.jsx)(H.a1M,{size:16,style:{color:ne.textSecondary}}),(0,te.jsxs)(h.A,{spacing:.5,sx:{width:"45%",alignItems:"flex-end",textAlign:"right"},children:[(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textSecondary,fontWeight:700},children:"Substitute"}),(0,te.jsx)(f.A,{sx:{fontWeight:800,color:ne.textPrimary,fontSize:13},noWrap:!0,children:e.sub_rider_name}),(0,te.jsxs)(f.A,{variant:"caption",sx:{color:ne.textMuted},children:["#",e.sub_rider_id]})]})]}),e.reason&&(0,te.jsx)(p.A,{sx:{pt:.5,borderTop:"1px solid ".concat(ne.divider)},children:(0,te.jsxs)(f.A,{variant:"caption",sx:{color:ne.textSecondary},children:["Reason: ",(0,te.jsx)("strong",{children:e.reason})]})})]})},null!==(r=e.id)&&void 0!==r?r:t)}))}):(0,te.jsx)(A.A,{sx:{maxHeight:"calc(100vh - 240px)","&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:ce(de),borderRadius:8,"&:hover":{backgroundColor:de}},"&::-webkit-scrollbar-track":{backgroundColor:ne.surfaceAlt}},children:(0,te.jsxs)(j.A,{stickyHeader:!0,sx:{minWidth:800},children:[(0,te.jsx)(m.A,{children:(0,te.jsxs)(y.A,{sx:{"& th":{backgroundColor:ne.surfaceAlt,color:ne.textSecondary,fontSize:11,fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(ne.borderSubtle),py:1.25,px:2}},children:[(0,te.jsx)(S.A,{children:"Date"}),(0,te.jsx)(S.A,{children:"Absent Rider"}),(0,te.jsx)(S.A,{align:"center"}),(0,te.jsx)(S.A,{children:"Substitute Rider"}),(0,te.jsx)(S.A,{children:"Reason"}),(0,te.jsx)(S.A,{align:"center",children:"Status"}),(0,te.jsx)(S.A,{align:"right",children:"Action"})]})}),(0,te.jsx)(w.A,{children:null===Xe||void 0===Xe?void 0:Xe.map(((t,r)=>{var o;return(0,te.jsxs)(y.A,{sx:{transition:"background-color 0.15s","& td":{borderBottom:"1px solid ".concat(ne.divider),py:1.5,px:2},"&:hover":{backgroundColor:ne.surfaceAlt}},children:[(0,te.jsx)(S.A,{children:(0,te.jsx)(f.A,{variant:"subtitle2",sx:{fontWeight:700,color:ne.textPrimary},children:J()(t.sub_date).format("DD MMM YYYY")})}),(0,te.jsx)(S.A,{children:(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,te.jsx)(c.A,{sx:{width:32,height:32,bgcolor:ae(de),color:de,fontWeight:700,fontSize:14},children:(t.absent_rider_name||"?").charAt(0).toUpperCase()}),(0,te.jsxs)(h.A,{children:[(0,te.jsx)(f.A,{variant:"subtitle2",sx:{fontWeight:700,color:ne.textPrimary},children:t.absent_rider_name}),(0,te.jsxs)(f.A,{variant:"caption",sx:{color:ne.textSecondary},children:["#",t.absent_rider_id]})]})]})}),(0,te.jsx)(S.A,{align:"center",children:(0,te.jsx)(H.a1M,{size:18,style:{color:ne.textSecondary}})}),(0,te.jsx)(S.A,{children:(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,te.jsx)(c.A,{sx:{width:32,height:32,bgcolor:ae("#10b981"),color:"#10b981",fontWeight:700,fontSize:14},children:(t.sub_rider_name||"?").charAt(0).toUpperCase()}),(0,te.jsxs)(h.A,{children:[(0,te.jsx)(f.A,{variant:"subtitle2",sx:{fontWeight:700,color:ne.textPrimary},children:t.sub_rider_name}),(0,te.jsxs)(f.A,{variant:"caption",sx:{color:ne.textSecondary},children:["#",t.sub_rider_id]})]})]})}),(0,te.jsx)(S.A,{children:(0,te.jsx)(f.A,{variant:"body2",sx:{color:ne.textPrimary,fontWeight:500},children:t.reason||"\u2014"})}),(0,te.jsx)(S.A,{align:"center",children:(0,te.jsx)(p.A,{sx:{display:"inline-flex",alignItems:"center",px:1.5,py:.5,borderRadius:999,bgcolor:le(Oe(t.status)),border:"1px solid ".concat(ce(Oe(t.status))),color:Oe(t.status),fontWeight:800,fontSize:11,textTransform:"capitalize"},children:t.status||"scheduled"})}),(0,te.jsx)(S.A,{align:"right",children:"cancelled"!==(t.status||"").toLowerCase()&&(0,te.jsxs)(h.A,{direction:"row",spacing:.75,justifyContent:"flex-end",children:[(0,te.jsx)(k.A,{title:"Update substitution",placement:"top",children:(0,te.jsx)(C.A,{size:"small",sx:{bgcolor:ae(de),color:de,border:"1px solid ".concat(ce(de)),"&:hover":{bgcolor:de,color:"#fff"}},onClick:()=>{Fe(t),qe(null)},children:(0,te.jsx)(H.Yvo,{size:14})})}),(0,te.jsx)(k.A,{title:"Delete substitution",placement:"top",children:(0,te.jsx)(C.A,{size:"small",sx:{bgcolor:ae("#ef4444"),color:"#ef4444",border:"1px solid ".concat(ce("#ef4444")),"&:hover":{bgcolor:"#ef4444",color:"#fff"}},onClick:()=>{(async t=>{if(window.confirm("Are you sure you want to delete the substitution for ".concat(t.absent_rider_name,"?")))try{const e=t.tenant_id||t.tenantid||Ke(),o="".concat("https://jupiter.nearle.app/live/api/v1","/substitutions/").concat(t.id,"?tenant_id=").concat(e),i=await l.A.delete(o);var r;i.data&&i.data.status?(0,ee.k)("Substitution deleted successfully!","success",2e3):(0,ee.k)((null===(r=i.data)||void 0===r?void 0:r.message)||"Failed to delete substitution.","error",2e3)}catch(n){var o,i;console.error(n),(0,ee.k)((null===(o=n.response)||void 0===o||null===(i=o.data)||void 0===i?void 0:i.message)||n.message||"Failed to delete substitution.","error",2e3)}finally{e.invalidateQueries({queryKey:["substitutionsHistory"]}),e.invalidateQueries({queryKey:["activeSubstitutionsToday"]})}})(t)},children:(0,te.jsx)(H.b6i,{size:14})})})]})})]},null!==(o=t.id)&&void 0!==o?o:r)}))})]})})}):2===ke?(0,te.jsx)(oe,{appId:Se,rows:Ze||[],allRidersList:ut,substituteRidersList:Ue,substituteAssignments:Ve,handleAssignSubstitute:(e,t)=>{const r=(0,o.A)((0,o.A)({},Ve),{},{[e]:t});Ee(r),localStorage.setItem("rider_substitutions",JSON.stringify(r)),t?(0,ee.k)("Assigned ".concat(t.username||t.fullname||"Rider"," as substitute"),"success",2e3):(0,ee.k)("Removed substitute assignment","info",2e3)},onFinalizeSuccess:()=>{Ee({}),localStorage.removeItem("rider_substitutions"),e.invalidateQueries({queryKey:["substitutionsHistory"]}),e.invalidateQueries({queryKey:["subRidersLogs"]}),e.invalidateQueries({queryKey:["activeSubstitutionsToday"]})},selectedDate:Je,setSelectedDate:Ne,DT:ne,BRAND:de,edge:ce,tint:le,soft:ae,roleid:We}):(0,te.jsx)(a.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:ne.radiusCard/8,borderBottomRightRadius:ne.radiusCard/8,border:"1px solid",borderColor:ne.borderSubtle,overflow:"hidden",background:"#fff"},children:(0,te.jsx)(A.A,{ref:ie,onScroll:e=>{const{scrollTop:t,scrollHeight:r,clientHeight:o}=e.currentTarget;t+o>=r-50&&xt&&!ct&&dt()},sx:{maxHeight:{xs:"calc(100vh - 220px)",md:"calc(100vh - 190px)"},"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:ce(de),borderRadius:8,"&:hover":{backgroundColor:de}},"&::-webkit-scrollbar-track":{backgroundColor:ne.surfaceAlt}},children:L?(0,te.jsxs)(V.nV,{sx:{p:1.25},children:[at&&(0,te.jsxs)(h.A,{alignItems:"center",sx:{py:6},children:[(0,te.jsx)(X.A,{}),(0,te.jsx)(f.A,{variant:"caption",color:"text.secondary",sx:{mt:1},children:"Loading riders\u2026"})]}),0===(null===ut||void 0===ut?void 0:ut.length)&&!at&&(0,te.jsxs)(h.A,{alignItems:"center",spacing:1.5,sx:{py:6},children:[(0,te.jsx)(c.A,{sx:{width:64,height:64,bgcolor:ae("#94a3b8"),color:ne.textMuted},children:(0,te.jsx)(H.aVM,{size:28})}),(0,te.jsx)(f.A,{variant:"subtitle1",sx:{fontWeight:700,color:ne.textPrimary},children:"No riders to show"}),(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textSecondary,textAlign:"center",px:2},children:be?"Try a different keyword.":"No ".concat(0===ke?"":"active ","riders for this zone.")})]}),0!==(null===ut||void 0===ut?void 0:ut.length)&&(null===ut||void 0===ut?void 0:ut.map(((e,r)=>{var o,i,n,s;const l=pt(e),a=l.icon,d=Re===e.userid;return(0,te.jsxs)(V.pg,{accent:l.color,selected:d,header:(0,te.jsxs)(h.A,{spacing:1.25,children:[(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:.75,sx:{minWidth:0},children:[(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:700,color:ne.textMuted},children:String(r+1).padStart(2,"0")}),(0,te.jsxs)(p.A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",px:1,py:.375,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(ce(de)),color:de,fontWeight:800,fontSize:11},children:["#",null===e||void 0===e?void 0:e.userid]}),(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:.5,sx:{display:"inline-flex",pl:.5,pr:1,py:.25,borderRadius:999,bgcolor:le(l.color),border:"1px solid ".concat(ce(l.color)),color:l.color},children:[(0,te.jsx)(ue,{color:l.color,size:18,children:(0,te.jsx)(a,{size:11})}),(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:800,fontSize:10.5,lineHeight:1},children:l.label})]})]}),1==We&&(0,te.jsxs)(h.A,{direction:"row",spacing:.75,sx:{flexShrink:0},children:[(0,te.jsx)(C.A,{size:"small",sx:{borderRadius:999,bgcolor:ae(de),color:de,border:"1px solid ".concat(ce(de)),"&:hover":{bgcolor:de,color:"#fff"}},onClick:()=>{t("/nearle/riders/edit",{state:{riderdata:e}})},children:(0,te.jsx)(H.Yvo,{size:14})}),0!=ke&&(0,te.jsx)(C.A,{size:"small",sx:{borderRadius:999,bgcolor:d?"#0ea5e9":ae("#0ea5e9"),color:d?"#fff":"#0ea5e9",border:"1px solid ".concat(ce("#0ea5e9")),"&:hover":{bgcolor:"#0ea5e9",color:"#fff"}},onClick:()=>{e.userid==Re?Ie(null):(Ie(e.userid),rt(e.userid))},children:d?(0,te.jsx)(H.rAP,{size:14}):(0,te.jsx)(H.WnU,{size:14})})]})]}),(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,te.jsx)(c.A,{sx:{width:36,height:36,bgcolor:ae(de),color:de,fontWeight:800,fontSize:16,border:"1px solid ".concat(ce(de)),flexShrink:0},children:(e.fullname||e.username||"?").charAt(0).toUpperCase()}),(0,te.jsxs)(p.A,{sx:{minWidth:0},children:[(0,te.jsx)(f.A,{sx:{fontWeight:800,color:ne.textPrimary,fontSize:15},noWrap:!0,children:e.username||"\u2014"}),(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textSecondary},noWrap:!0,children:e.contactno||"\u2014"})]})]})]}),children:[(0,te.jsxs)(V.FG,{children:[(0,te.jsxs)(V.pY,{label:"Address",full:!0,children:[(0,te.jsx)(f.A,{sx:{fontSize:13,fontWeight:600,color:ne.textSecondary},noWrap:!0,children:e.suburb||(e.address?e.address.slice(0,20)+"\u2026":"\u2014")}),(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textMuted},noWrap:!0,children:e.city||""})]}),(0,te.jsx)(V.pY,{label:"Vehicle",children:(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:.75,children:[(0,te.jsx)(ue,{color:"#0ea5e9",size:22,children:(0,te.jsx)(H.aVM,{size:12})}),(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:700,color:ne.textPrimary},children:e.vehicleno||"\u2014"})]})}),(0,te.jsx)(V.pY,{label:"Shift",value:"#".concat(null!==(i=e.shiftid)&&void 0!==i?i:"\u2014")}),(0,te.jsx)(V.pY,{label:"Time",children:(0,te.jsxs)(h.A,{spacing:.5,children:[(0,te.jsx)(p.A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",px:.875,py:.25,borderRadius:999,bgcolor:le("#10b981"),border:"1px solid ".concat(ce("#10b981")),color:"#10b981",fontSize:10.5,fontWeight:800},children:e.starttime?J()("".concat(J()().format("MM-DD-YYYY")," ").concat(e.starttime)).format("hh:mm A"):"\u2014"}),(0,te.jsx)(p.A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",px:.875,py:.25,borderRadius:999,bgcolor:le("#ef4444"),border:"1px solid ".concat(ce("#ef4444")),color:"#ef4444",fontSize:10.5,fontWeight:800},children:e.endtime?J()("".concat(J()().format("MM-DD-YYYY")," ").concat(e.endtime)).format("hh:mm A"):"\u2014"})]})}),(0,te.jsx)(V.pY,{label:"Fare",value:null!==(n=e.basefare)&&void 0!==n?n:"\u2014"}),(0,te.jsx)(V.pY,{label:"Fuel",value:null!==(s=e.fuelcharge)&&void 0!==s?s:"\u2014"})]}),d&&0!==ke&&(0,te.jsxs)(p.A,{sx:{mt:1.5,p:1.25,borderRadius:2,bgcolor:"#ffffff",border:"1px solid ".concat(ce(de))},children:[(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,sx:{mb:1.25},children:[(0,te.jsx)(ue,{color:de,size:26,children:(0,te.jsx)(H.o8z,{size:14})}),(0,te.jsxs)(f.A,{sx:{fontWeight:800,color:ne.textSecondary,letterSpacing:.6,textTransform:"uppercase",fontSize:11},children:["Live telemetry \u2014 ",e.username||"Rider #".concat(e.userid)]})]}),(0,te.jsxs)(u.Ay,{container:!0,spacing:1.25,children:[(0,te.jsx)(ge,{color:"#ef4444",icon:H.gwi,label:"Location",value:null!==Ye&&void 0!==Ye&&Ye.latitude?"".concat(Ye.latitude,", ").concat(Ye.longitude):"\u2014"}),(0,te.jsx)(ge,{color:"#10b981",icon:H.E_J,label:"Battery",value:null!==Ye&&void 0!==Ye&&Ye.battery?"".concat(Ye.battery,"%"):"N/A"}),(0,te.jsx)(ge,{color:null!==Ye&&void 0!==Ye&&Ye.is_charging?"#10b981":"#94a3b8",icon:H.Im6,label:"Charging",value:null!==Ye&&void 0!==Ye&&Ye.is_charging?"Charging":"Not Charging"}),(0,te.jsx)(ge,{color:"#0ea5e9",icon:H.BJM,label:"Speed",value:void 0!==(null===Ye||void 0===Ye?void 0:Ye.speed)?"".concat(Ye.speed," km/h"):"\u2014"}),(0,te.jsx)(ge,{color:"#8b5cf6",icon:H.o8z,label:"Accuracy",value:void 0!==(null===Ye||void 0===Ye?void 0:Ye.accuracy)?"".concat(Ye.accuracy," m"):"\u2014"}),(0,te.jsx)(ge,{color:"#f59e0b",icon:H.VP9,label:"Log time",value:(null===Ye||void 0===Ye?void 0:Ye.logdate)||"\u2014"}),(0,te.jsx)(ge,{color:de,icon:H.gsJ,label:"Active order",value:(null===Ye||void 0===Ye?void 0:Ye.orderid)||"N/A"}),(0,te.jsx)(ge,{color:"idle"===(null===Ye||void 0===Ye?void 0:Ye.status)?"#f59e0b":"#10b981",icon:H.mU9,label:"Status",value:(null===Ye||void 0===Ye?void 0:Ye.status)||"unknown"})]})]})]},null!==(o=e.userid)&&void 0!==o?o:r)}))),0!==(null===ut||void 0===ut?void 0:ut.length)&&(0,te.jsx)("div",{ref:re,style:{height:40,textAlign:"center"},children:ct||xt?(0,te.jsx)(X.A,{}):(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textMuted,fontWeight:600},children:"No more riders"})})]}):(0,te.jsxs)(j.A,{stickyHeader:!0,sx:{minWidth:{xs:1100,md:1300}},children:[(0,te.jsx)(m.A,{children:(0,te.jsxs)(y.A,{sx:{"& th":{backgroundColor:ne.surfaceAlt,color:ne.textSecondary,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(ne.borderSubtle),py:{xs:1,md:1.25},px:{xs:1,md:2}}},children:[(0,te.jsx)(S.A,{children:"#"}),(0,te.jsx)(S.A,{children:"ID"}),(0,te.jsx)(S.A,{children:"Rider"}),(0,te.jsx)(S.A,{children:"Address"}),(0,te.jsx)(S.A,{children:"Vehicle"}),(0,te.jsx)(S.A,{children:"Shift"}),(0,te.jsx)(S.A,{align:"center",children:"Time"}),(0,te.jsx)(S.A,{children:"Fare"}),(0,te.jsx)(S.A,{children:"Fuel"}),(0,te.jsx)(S.A,{align:"center",children:"Status"}),1==We&&(0,te.jsx)(S.A,{align:"right",children:"Action"})]})}),(0,te.jsxs)(w.A,{children:[at&&(0,te.jsx)($.r,{col:6}),0===(null===ut||void 0===ut?void 0:ut.length)&&!at&&(0,te.jsx)(y.A,{children:(0,te.jsx)(S.A,{colSpan:ze,sx:{py:6},children:(0,te.jsxs)(h.A,{alignItems:"center",spacing:1.5,children:[(0,te.jsx)(c.A,{sx:{width:64,height:64,bgcolor:ae("#94a3b8"),color:ne.textMuted},children:(0,te.jsx)(H.aVM,{size:28})}),(0,te.jsx)(f.A,{variant:"subtitle1",sx:{fontWeight:700,color:ne.textPrimary},children:"No riders to show"}),(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textSecondary},children:be?"Try a different keyword.":"No ".concat(0===ke?"":"active ","riders for this zone.")})]})})}),0!==(null===ut||void 0===ut?void 0:ut.length)&&(null===ut||void 0===ut?void 0:ut.map(((e,r)=>{var n,s,l,a;const d=pt(e),x=d.icon,g=Re===e.userid;return(0,te.jsxs)(i.Fragment,{children:[(0,te.jsxs)(y.A,{sx:(0,o.A)({cursor:"pointer",transition:"background-color 0.15s","& td":{borderBottom:"1px solid ".concat(ne.divider),py:{xs:1,md:1.5},px:{xs:1,md:2}},"&:hover":{backgroundColor:ne.surfaceAlt}},g&&{backgroundColor:le(de)}),children:[(0,te.jsx)(S.A,{children:(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:700,color:ne.textMuted},children:String(r+1).padStart(2,"0")})}),(0,te.jsx)(S.A,{children:(0,te.jsxs)(p.A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",px:1,py:.375,borderRadius:999,bgcolor:"#ffffff",border:"1px solid ".concat(ce(de)),color:de,fontWeight:800,fontSize:11,minWidth:56},children:["#",null===e||void 0===e?void 0:e.userid]})}),(0,te.jsx)(S.A,{children:(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,te.jsx)(c.A,{sx:{width:36,height:36,bgcolor:ae(de),color:de,fontWeight:800,fontSize:16,border:"1px solid ".concat(ce(de))},children:(e.fullname||e.username||"?").charAt(0).toUpperCase()}),(0,te.jsxs)(h.A,{sx:{minWidth:0},children:[(0,te.jsx)(f.A,{variant:"subtitle2",sx:{fontWeight:700,color:ne.textPrimary,whiteSpace:"nowrap"},children:e.username||"\u2014"}),(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textSecondary},children:e.contactno||"\u2014"})]})]})}),(0,te.jsx)(S.A,{sx:{maxWidth:220},children:(0,te.jsx)(k.A,{title:e.address||"",placement:"top",children:(0,te.jsxs)(h.A,{children:[(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textSecondary,fontWeight:600},noWrap:!0,children:e.suburb||(e.address?e.address.slice(0,20)+"\u2026":"\u2014")}),(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textMuted},noWrap:!0,children:e.city||""})]})})}),(0,te.jsx)(S.A,{children:(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:.75,children:[(0,te.jsx)(ue,{color:"#0ea5e9",size:22,children:(0,te.jsx)(H.aVM,{size:12})}),(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:700,color:ne.textPrimary},children:e.vehicleno||"\u2014"})]})}),(0,te.jsx)(S.A,{children:(0,te.jsxs)(f.A,{variant:"caption",sx:{color:ne.textSecondary,fontWeight:600},children:["#",null!==(s=e.shiftid)&&void 0!==s?s:"\u2014"]})}),(0,te.jsx)(S.A,{align:"center",children:(0,te.jsxs)(h.A,{spacing:.5,alignItems:"center",children:[(0,te.jsx)(p.A,{sx:{display:"inline-flex",alignItems:"center",gap:.375,px:.875,py:.25,borderRadius:999,bgcolor:le("#10b981"),border:"1px solid ".concat(ce("#10b981")),color:"#10b981",fontSize:10.5,fontWeight:800,minWidth:88,justifyContent:"center"},children:e.starttime?J()("".concat(J()().format("MM-DD-YYYY")," ").concat(e.starttime)).format("hh:mm A"):"\u2014"}),(0,te.jsx)(p.A,{sx:{display:"inline-flex",alignItems:"center",gap:.375,px:.875,py:.25,borderRadius:999,bgcolor:le("#ef4444"),border:"1px solid ".concat(ce("#ef4444")),color:"#ef4444",fontSize:10.5,fontWeight:800,minWidth:88,justifyContent:"center"},children:e.endtime?J()("".concat(J()().format("MM-DD-YYYY")," ").concat(e.endtime)).format("hh:mm A"):"\u2014"})]})}),(0,te.jsx)(S.A,{children:(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:700,color:ne.textPrimary},children:null!==(l=e.basefare)&&void 0!==l?l:"\u2014"})}),(0,te.jsx)(S.A,{children:(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:700,color:ne.textPrimary},children:null!==(a=e.fuelcharge)&&void 0!==a?a:"\u2014"})}),(0,te.jsx)(S.A,{align:"center",children:(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:.5,sx:{display:"inline-flex",pl:.5,pr:1,py:.25,borderRadius:999,bgcolor:le(d.color),border:"1px solid ".concat(ce(d.color)),color:d.color},children:[(0,te.jsx)(ue,{color:d.color,size:20,children:(0,te.jsx)(x,{size:12})}),(0,te.jsx)(f.A,{variant:"caption",sx:{fontWeight:800,fontSize:11,lineHeight:1},children:d.label})]})}),1==We&&(0,te.jsx)(S.A,{align:"right",children:(0,te.jsxs)(h.A,{direction:"row",spacing:.75,justifyContent:"flex-end",children:[(0,te.jsx)(k.A,{title:"Edit rider",placement:"top",children:(0,te.jsx)(C.A,{size:"small",sx:{bgcolor:ae(de),color:de,border:"1px solid ".concat(ce(de)),"&:hover":{bgcolor:de,color:"#fff"}},onClick:()=>{t("/nearle/riders/edit",{state:{riderdata:e}})},children:(0,te.jsx)(H.Yvo,{size:14})})}),0!=ke&&(0,te.jsx)(k.A,{title:g?"Hide logs":"View live logs",placement:"top",children:(0,te.jsx)(C.A,{size:"small",sx:{bgcolor:g?"#0ea5e9":ae("#0ea5e9"),color:g?"#fff":"#0ea5e9",border:"1px solid ".concat(ce("#0ea5e9")),"&:hover":{bgcolor:"#0ea5e9",color:"#fff"}},onClick:()=>{e.userid==Re?Ie(null):(Ie(e.userid),rt(e.userid))},children:g?(0,te.jsx)(H.rAP,{size:14}):(0,te.jsx)(H.WnU,{size:14})})})]})})]}),g&&0!==ke&&(0,te.jsx)(y.A,{children:(0,te.jsx)(S.A,{colSpan:ze,sx:{p:0,borderBottom:"1px solid ".concat(ne.divider)},children:(0,te.jsx)(W.A,{in:g,timeout:"auto",unmountOnExit:!0,children:(0,te.jsxs)(p.A,{sx:{p:{xs:1.5,md:2},bgcolor:"#ffffff",borderTop:"1px solid ".concat(ce(de))},children:[(0,te.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,sx:{mb:1.25},children:[(0,te.jsx)(ue,{color:de,size:26,children:(0,te.jsx)(H.o8z,{size:14})}),(0,te.jsxs)(f.A,{sx:{fontWeight:800,color:ne.textSecondary,letterSpacing:.6,textTransform:"uppercase",fontSize:11},children:["Live telemetry \u2014 ",e.username||"Rider #".concat(e.userid)]})]}),(0,te.jsxs)(u.Ay,{container:!0,spacing:1.25,children:[(0,te.jsx)(ge,{color:"#ef4444",icon:H.gwi,label:"Location",value:null!==Ye&&void 0!==Ye&&Ye.latitude?"".concat(Ye.latitude,", ").concat(Ye.longitude):"\u2014"}),(0,te.jsx)(ge,{color:"#10b981",icon:H.E_J,label:"Battery",value:null!==Ye&&void 0!==Ye&&Ye.battery?"".concat(Ye.battery,"%"):"N/A"}),(0,te.jsx)(ge,{color:null!==Ye&&void 0!==Ye&&Ye.is_charging?"#10b981":"#94a3b8",icon:H.Im6,label:"Charging",value:null!==Ye&&void 0!==Ye&&Ye.is_charging?"Charging":"Not Charging"}),(0,te.jsx)(ge,{color:"#0ea5e9",icon:H.BJM,label:"Speed",value:void 0!==(null===Ye||void 0===Ye?void 0:Ye.speed)?"".concat(Ye.speed," km/h"):"\u2014"}),(0,te.jsx)(ge,{color:"#8b5cf6",icon:H.o8z,label:"Accuracy",value:void 0!==(null===Ye||void 0===Ye?void 0:Ye.accuracy)?"".concat(Ye.accuracy," m"):"\u2014"}),(0,te.jsx)(ge,{color:"#f59e0b",icon:H.VP9,label:"Log time",value:(null===Ye||void 0===Ye?void 0:Ye.logdate)||"\u2014"}),(0,te.jsx)(ge,{color:de,icon:H.gsJ,label:"Active order",value:(null===Ye||void 0===Ye?void 0:Ye.orderid)||"N/A"}),(0,te.jsx)(ge,{color:"idle"===(null===Ye||void 0===Ye?void 0:Ye.status)?"#f59e0b":"#10b981",icon:H.mU9,label:"Status",value:(null===Ye||void 0===Ye?void 0:Ye.status)||"unknown"})]})]})})})})]},null!==(n=e.userid)&&void 0!==n?n:r)}))),0!==(null===ut||void 0===ut?void 0:ut.length)&&(0,te.jsx)(y.A,{children:(0,te.jsx)(S.A,{colSpan:ze,sx:{borderBottom:"none"},children:(0,te.jsx)("div",{ref:re,style:{height:40,textAlign:"center"},children:ct||xt?(0,te.jsx)(X.A,{}):(0,te.jsx)(f.A,{variant:"caption",sx:{color:ne.textMuted,fontWeight:600},children:"No more riders"})})})})]})]})})}),(0,te.jsxs)(z.A,{open:Boolean(Be),onClose:()=>Fe(null),maxWidth:"xs",fullWidth:!0,PaperProps:{sx:{borderRadius:"".concat(ne.radiusCard/8,"px"),p:1}},children:[(0,te.jsx)(R.A,{sx:{fontWeight:700,pb:1},children:"Update Substitution"}),(0,te.jsx)(I.A,{children:(0,te.jsxs)(h.A,{spacing:2,sx:{mt:1},children:[(0,te.jsxs)(f.A,{variant:"body2",sx:{color:ne.textSecondary},children:["Choose a new substitute rider for ",(0,te.jsx)("strong",{children:null===Be||void 0===Be?void 0:Be.absent_rider_name}),"."]}),(0,te.jsx)(Y.A,{size:"small",options:Ue||[],isOptionEqualToValue:(e,t)=>(null===e||void 0===e?void 0:e.userid)===(null===t||void 0===t?void 0:t.userid),getOptionLabel:e=>"".concat(e.username||e.fullname||""," (#").concat(e.userid,")"),value:He,onChange:(e,t)=>qe(t),renderInput:e=>(0,te.jsx)(M.A,(0,o.A)((0,o.A)({},e),{},{placeholder:"Select Substitute Rider",sx:{"& .MuiOutlinedInput-root":{borderRadius:"8px",bgcolor:"#f8fafc","& fieldset":{borderColor:ne.borderSubtle}}}}))})]})}),(0,te.jsxs)(P.A,{sx:{px:3,pb:2},children:[(0,te.jsx)(T.A,{variant:"outlined",onClick:()=>Fe(null),sx:{borderRadius:"8px",textTransform:"none",fontWeight:600,borderColor:ne.borderSubtle,color:ne.textSecondary},children:"Cancel"}),(0,te.jsx)(T.A,{variant:"contained",onClick:async()=>{if(He)try{const e=Be.tenant_id||Be.tenantid||Ke(),r="".concat("https://jupiter.nearle.app/live/api/v1","/substitutions/").concat(Be.id),o={tenant_id:parseInt(e,10),sub_rider_id:parseInt(He.userid,10),sub_rider_name:He.username||He.fullname||"Rider #".concat(He.userid)},i=await l.A.put(r,o);var t;if(i.data&&i.data.status)(0,ee.k)("Substitution updated successfully!","success",2e3);else(0,ee.k)((null===(t=i.data)||void 0===t?void 0:t.message)||"Failed to update substitution.","error",2e3)}catch(i){var r,o;console.error(i),(0,ee.k)((null===(r=i.response)||void 0===r||null===(o=r.data)||void 0===o?void 0:o.message)||i.message||"Failed to update substitution.","error",2e3)}finally{Fe(null),qe(null),e.invalidateQueries({queryKey:["substitutionsHistory"]}),e.invalidateQueries({queryKey:["activeSubstitutionsToday"]})}else(0,ee.k)("Please select a substitute rider","error",2e3)},disabled:!He,sx:{borderRadius:"8px",textTransform:"none",fontWeight:600,bgcolor:de,color:"#fff","&:hover":{bgcolor:"#4D1C61"}},children:"Save Changes"})]})]})]});var ft}},94826:(e,t,r)=>{r.d(t,{A:()=>c});var o=r(60308),i=r(12010),n=r(62217),s=r(65908);const l=(0,o.Ay)("div")((()=>({position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2001,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0.7)",padding:"20px",borderRadius:"10px"}))),a=(0,o.Ay)("div")((()=>({position:"absolute",width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center"}))),c=()=>(0,s.jsxs)(l,{children:[(0,s.jsx)(i.A,{color:"primary",size:80,thickness:6}),(0,s.jsx)(a,{children:(0,s.jsx)("img",{src:n,alt:"Logo",style:{width:"100%",height:"100%"}})})]})},96646:(e,t,r)=>{r.d(t,{r:()=>a});var o=r(50755),i=r(1596),n=r(91834),s=r(71392),l=r(65908);const a=e=>{let{rowsPerPage:t=5,col:r=1}=e;return(0,l.jsx)(l.Fragment,{children:Array.from(new Array(t)).map(((e,t)=>(0,l.jsxs)(o.A,{children:[(0,l.jsx)(i.A,{children:(0,l.jsx)(n.A,{variant:"circular",width:24,height:24})}),(0,l.jsx)(i.A,{children:(0,l.jsx)(n.A,{variant:"text",width:30})}),Array.from({length:r}).map(((e,t)=>(0,l.jsx)(i.A,{children:(0,l.jsxs)(s.A,{spacing:.5,children:[(0,l.jsx)(n.A,{variant:"text",width:100}),(0,l.jsx)(n.A,{variant:"text",width:80})]})},t))),(0,l.jsx)(i.A,{children:(0,l.jsx)(n.A,{variant:"text",width:150})}),(0,l.jsx)(i.A,{children:(0,l.jsx)(n.A,{variant:"rounded",width:60,height:24})}),(0,l.jsx)(i.A,{align:"center",children:(0,l.jsxs)(s.A,{direction:"row",spacing:1,justifyContent:"flex-end",children:[(0,l.jsx)(n.A,{variant:"circular",width:28,height:28}),(0,l.jsx)(n.A,{variant:"circular",width:28,height:28})]})})]},t)))})}}}]); \ No newline at end of file diff --git a/build/static/js/9622.66a1da48.chunk.js b/build/static/js/9622.66a1da48.chunk.js new file mode 100644 index 0000000..4106e33 --- /dev/null +++ b/build/static/js/9622.66a1da48.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9622],{5670:(t,e,a)=>{a.d(e,{A:()=>x});var r=a(84849),c=a(27326),o=a(85672),n=a(72574),i=a(25234),l=a(60308),s=a(38009),d=a(37300),p=a(10644);function h(t){return(0,p.Ay)("MuiDialogContent",t)}(0,d.A)("MuiDialogContent",["root","dividers"]);var u=a(30903),v=a(65908);const g=["className","dividers"],m=(0,l.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[e.root,a.dividers&&e.dividers]}})((t=>{let{theme:e,ownerState:a}=t;return(0,c.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},a.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((e.vars||e).palette.divider),borderBottom:"1px solid ".concat((e.vars||e).palette.divider)}:{[".".concat(u.A.root," + &")]:{paddingTop:0}})})),x=o.forwardRef((function(t,e){const a=(0,s.b)({props:t,name:"MuiDialogContent"}),{className:o,dividers:l=!1}=a,d=(0,r.A)(a,g),p=(0,c.A)({},a,{dividers:l}),u=(t=>{const{classes:e,dividers:a}=t,r={root:["root",a&&"dividers"]};return(0,i.A)(r,h,e)})(p);return(0,v.jsx)(m,(0,c.A)({className:(0,n.A)(u.root,o),ownerState:p,ref:e},d))}))},6026:(t,e,a)=>{a.d(e,{A:()=>r});const r=a(85672).createContext({})},17450:(t,e,a)=>{a.d(e,{A:()=>m});var r=a(84849),c=a(27326),o=a(85672),n=a(72574),i=a(25234),l=a(60308),s=a(38009),d=a(37300),p=a(10644);function h(t){return(0,p.Ay)("MuiDialogActions",t)}(0,d.A)("MuiDialogActions",["root","spacing"]);var u=a(65908);const v=["className","disableSpacing"],g=(0,l.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[e.root,!a.disableSpacing&&e.spacing]}})((t=>{let{ownerState:e}=t;return(0,c.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),m=o.forwardRef((function(t,e){const a=(0,s.b)({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:l=!1}=a,d=(0,r.A)(a,v),p=(0,c.A)({},a,{disableSpacing:l}),m=(t=>{const{classes:e,disableSpacing:a}=t,r={root:["root",!a&&"spacing"]};return(0,i.A)(r,h,e)})(p);return(0,u.jsx)(g,(0,c.A)({className:(0,n.A)(m.root,o),ownerState:p,ref:e},d))}))},19619:(t,e,a)=>{a.d(e,{A:()=>m});var r=a(27326),c=a(84849),o=a(85672),n=a(72574),i=a(25234),l=a(2866),s=a(60308),d=a(38009),p=a(30903),h=a(6026),u=a(65908);const v=["className","id"],g=(0,s.Ay)(l.A,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:"16px 24px",flex:"0 0 auto"}),m=o.forwardRef((function(t,e){const a=(0,d.b)({props:t,name:"MuiDialogTitle"}),{className:l,id:s}=a,m=(0,c.A)(a,v),x=a,A=(t=>{const{classes:e}=t;return(0,i.A)({root:["root"]},p.t,e)})(x),{titleId:f=s}=o.useContext(h.A);return(0,u.jsx)(g,(0,r.A)({component:"h2",className:(0,n.A)(A.root,l),ownerState:x,ref:e,variant:"h6",id:null!=s?s:f},m))}))},30903:(t,e,a)=>{a.d(e,{A:()=>n,t:()=>o});var r=a(37300),c=a(10644);function o(t){return(0,c.Ay)("MuiDialogTitle",t)}const n=(0,r.A)("MuiDialogTitle",["root"])},42129:(t,e,a)=>{a.d(e,{A:()=>n,f:()=>o});var r=a(37300),c=a(10644);function o(t){return(0,c.Ay)("MuiDialog",t)}const n=(0,r.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"])},58689:(t,e,a)=>{a.d(e,{A:()=>S});var r=a(84849),c=a(27326),o=a(85672),n=a(72574),i=a(25234),l=a(16660),s=a(16775),d=a(52243),p=a(95345),h=a(55235),u=a(38009),v=a(60308),g=a(42129),m=a(6026),x=a(15227),A=a(69039),f=a(65908);const w=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],z=(0,v.Ay)(x.A,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),M=(0,v.Ay)(d.A,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),b=(0,v.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[e.container,e["scroll".concat((0,s.A)(a.scroll))]]}})((t=>{let{ownerState:e}=t;return(0,c.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),k=(0,v.Ay)(h.A,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[e.paper,e["scrollPaper".concat((0,s.A)(a.scroll))],e["paperWidth".concat((0,s.A)(String(a.maxWidth)))],a.fullWidth&&e.paperFullWidth,a.fullScreen&&e.paperFullScreen]}})((t=>{let{theme:e,ownerState:a}=t;return(0,c.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===a.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===a.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!a.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===a.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):"max(".concat(e.breakpoints.values.xs).concat(e.breakpoints.unit,", 444px)"),["&.".concat(g.A.paperScrollBody)]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},a.maxWidth&&"xs"!==a.maxWidth&&{maxWidth:"".concat(e.breakpoints.values[a.maxWidth]).concat(e.breakpoints.unit),["&.".concat(g.A.paperScrollBody)]:{[e.breakpoints.down(e.breakpoints.values[a.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},a.fullWidth&&{width:"calc(100% - 64px)"},a.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(g.A.paperScrollBody)]:{margin:0,maxWidth:"100%"}})})),S=o.forwardRef((function(t,e){const a=(0,u.b)({props:t,name:"MuiDialog"}),d=(0,A.A)(),v={enter:d.transitions.duration.enteringScreen,exit:d.transitions.duration.leavingScreen},{"aria-describedby":x,"aria-labelledby":S,BackdropComponent:C,BackdropProps:y,children:W,className:L,disableEscapeKeyDown:H=!1,fullScreen:B=!1,fullWidth:D=!1,maxWidth:V="sm",onBackdropClick:R,onClick:P,onClose:N,open:T,PaperComponent:j=h.A,PaperProps:F={},scroll:Y="paper",TransitionComponent:X=p.A,transitionDuration:I=v,TransitionProps:E}=a,K=(0,r.A)(a,w),_=(0,c.A)({},a,{disableEscapeKeyDown:H,fullScreen:B,fullWidth:D,maxWidth:V,scroll:Y}),O=(t=>{const{classes:e,scroll:a,maxWidth:r,fullWidth:c,fullScreen:o}=t,n={root:["root"],container:["container","scroll".concat((0,s.A)(a))],paper:["paper","paperScroll".concat((0,s.A)(a)),"paperWidth".concat((0,s.A)(String(r))),c&&"paperFullWidth",o&&"paperFullScreen"]};return(0,i.A)(n,g.f,e)})(_),$=o.useRef(),Q=(0,l.A)(S),U=o.useMemo((()=>({titleId:Q})),[Q]);return(0,f.jsx)(M,(0,c.A)({className:(0,n.A)(O.root,L),closeAfterTransition:!0,components:{Backdrop:z},componentsProps:{backdrop:(0,c.A)({transitionDuration:I,as:C},y)},disableEscapeKeyDown:H,onClose:N,open:T,ref:e,onClick:t=>{P&&P(t),$.current&&($.current=null,R&&R(t),N&&N(t,"backdropClick"))},ownerState:_},K,{children:(0,f.jsx)(X,(0,c.A)({appear:!0,in:T,timeout:I,role:"presentation"},E,{children:(0,f.jsx)(b,{className:(0,n.A)(O.container),onMouseDown:t=>{$.current=t.target===t.currentTarget},ownerState:_,children:(0,f.jsx)(k,(0,c.A)({as:j,elevation:24,role:"dialog","aria-describedby":x,"aria-labelledby":Q},F,{className:(0,n.A)(O.paper,F.className),ownerState:_,children:(0,f.jsx)(m.A.Provider,{value:U,children:W})}))})}))}))}))},81600:(t,e,a)=>{a.d(e,{$Fg:()=>v,CMH:()=>s,Cer:()=>p,H5e:()=>i,MxO:()=>d,QVr:()=>c,TXh:()=>n,Y9o:()=>A,YXz:()=>x,YYR:()=>l,Z0P:()=>o,dRU:()=>h,dv1:()=>g,wTh:()=>u,wwX:()=>w,x$1:()=>m,yjt:()=>f});var r=a(21583);function c(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"}}]})(t)}function o(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"}}]})(t)}function n(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M509.5 184.6L458.9 32.8C452.4 13.2 434.1 0 413.4 0H272v192h238.7c-.4-2.5-.4-5-1.2-7.4zM240 0H98.6c-20.7 0-39 13.2-45.5 32.8L2.5 184.6c-.8 2.4-.8 4.9-1.2 7.4H240V0zM0 224v240c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V224H0z"}}]})(t)}function i(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M560 288h-80v96l-32-21.3-32 21.3v-96h-80c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V304c0-8.8-7.2-16-16-16zm-384-64h224c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16h-80v96l-32-21.3L256 96V0h-80c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16zm64 64h-80v96l-32-21.3L96 384v-96H16c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V304c0-8.8-7.2-16-16-16z"}}]})(t)}function l(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"}}]})(t)}function s(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"}}]})(t)}function d(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM48 132.22c20.12 5.04 41.12 7.57 62.72 8.93C104.84 170.54 79 192.69 48 192.69v-60.47zm0 285v-47.78c34.37 0 62.18 27.27 63.71 61.4-22.53-1.81-43.59-6.31-63.71-13.62zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 27.78c-17.52-4.39-35.71-6.85-54.32-8.44 5.87-26.08 27.5-45.88 54.32-49.28v57.72zm0-236.11c-30.89-3.91-54.86-29.7-55.81-61.55 19.54 2.17 38.09 6.23 55.81 12.66v48.89z"}}]})(t)}function p(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z"}}]})(t)}function h(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M497.39 361.8l-112-48a24 24 0 0 0-28 6.9l-49.6 60.6A370.66 370.66 0 0 1 130.6 204.11l60.6-49.6a23.94 23.94 0 0 0 6.9-28l-48-112A24.16 24.16 0 0 0 122.6.61l-104 24A24 24 0 0 0 0 48c0 256.5 207.9 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.29 24.29 0 0 0-14.01-27.6z"}}]})(t)}function u(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M358.4 3.2L320 48 265.6 3.2a15.9 15.9 0 0 0-19.2 0L192 48 137.6 3.2a15.9 15.9 0 0 0-19.2 0L64 48 25.6 3.2C15-4.7 0 2.8 0 16v480c0 13.2 15 20.7 25.6 12.8L64 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L192 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L320 464l38.4 44.8c10.5 7.9 25.6.4 25.6-12.8V16c0-13.2-15-20.7-25.6-12.8zM320 360c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16z"}}]})(t)}function v(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M416 320h-96c-17.6 0-32-14.4-32-32s14.4-32 32-32h96s96-107 96-160-43-96-96-96-96 43-96 96c0 25.5 22.2 63.4 45.3 96H320c-52.9 0-96 43.1-96 96s43.1 96 96 96h96c17.6 0 32 14.4 32 32s-14.4 32-32 32H185.5c-16 24.8-33.8 47.7-47.3 64H416c52.9 0 96-43.1 96-96s-43.1-96-96-96zm0-256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM96 256c-53 0-96 43-96 96s96 160 96 160 96-107 96-160-43-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"}}]})(t)}function g(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"}}]})(t)}function m(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"}}]})(t)}function x(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"}}]})(t)}function A(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 400H48V80h480v352zM208 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm-89.6 128h179.2c12.4 0 22.4-8.6 22.4-19.2v-19.2c0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6v19.2c0 10.6 10 19.2 22.4 19.2zM360 320h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8z"}}]})(t)}function f(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z"}}]})(t)}function w(t){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M402.3 344.9l32-32c5-5 13.7-1.5 13.7 5.7V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h273.5c7.1 0 10.7 8.6 5.7 13.7l-32 32c-1.5 1.5-3.5 2.3-5.7 2.3H48v352h352V350.5c0-2.1.8-4.1 2.3-5.6zm156.6-201.8L296.3 405.7l-90.4 10c-26.2 2.9-48.5-19.2-45.6-45.6l10-90.4L432.9 17.1c22.9-22.9 59.9-22.9 82.7 0l43.2 43.2c22.9 22.9 22.9 60 .1 82.8zM460.1 174L402 115.9 216.2 301.8l-7.3 65.3 65.3-7.3L460.1 174zm64.8-79.7l-43.2-43.2c-4.1-4.1-10.8-4.1-14.8 0L436 82l58.1 58.1 30.9-30.9c4-4.2 4-10.8-.1-14.9z"}}]})(t)}}}]); \ No newline at end of file diff --git a/build/static/js/9776.f47f1c05.chunk.js b/build/static/js/9776.f47f1c05.chunk.js new file mode 100644 index 0000000..25be70d --- /dev/null +++ b/build/static/js/9776.f47f1c05.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9776],{25676:(e,t,n)=>{n.d(t,{A:()=>o});const o=n(85672).createContext(void 0)},28915:(e,t,n)=>{n.d(t,{A:()=>l,g:()=>i});var o=n(37300),r=n(10644);function i(e){return(0,r.Ay)("MuiInputBase",e)}const l=(0,o.A)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"])},29776:(e,t,n)=>{n.d(t,{A:()=>C});var o,r=n(84849),i=n(27326),l=n(85672),a=n(25234),d=n(60308),s=n(24270),u=n(65908);const c=["children","classes","className","label","notched"],p=(0,d.Ay)("fieldset",{shouldForwardProp:s.A})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),m=(0,d.Ay)("legend",{shouldForwardProp:s.A})((e=>{let{ownerState:t,theme:n}=e;return(0,i.A)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},t.withLabel&&(0,i.A)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));var h=n(75520),f=n(38666),b=n(90875),A=n(51476),g=n(38009);const y=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],v=(0,d.Ay)(A.Sh,{shouldForwardProp:e=>(0,s.A)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:A.WC})((e=>{let{theme:t,ownerState:n}=e;const o="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,i.A)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,["&:hover .".concat(b.A.notchedOutline)]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{["&:hover .".concat(b.A.notchedOutline)]:{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):o}},["&.".concat(b.A.focused," .").concat(b.A.notchedOutline)]:{borderColor:(t.vars||t).palette[n.color].main,borderWidth:2},["&.".concat(b.A.error," .").concat(b.A.notchedOutline)]:{borderColor:(t.vars||t).palette.error.main},["&.".concat(b.A.disabled," .").concat(b.A.notchedOutline)]:{borderColor:(t.vars||t).palette.action.disabled}},n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&(0,i.A)({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))})),w=(0,d.Ay)((function(e){const{className:t,label:n,notched:l}=e,a=(0,r.A)(e,c),d=null!=n&&""!==n,s=(0,i.A)({},e,{notched:l,withLabel:d});return(0,u.jsx)(p,(0,i.A)({"aria-hidden":!0,className:t,ownerState:s},a,{children:(0,u.jsx)(m,{ownerState:s,children:d?(0,u.jsx)("span",{children:n}):o||(o=(0,u.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}})),x=(0,d.Ay)(A.f3,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:A.Oj})((e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),S=l.forwardRef((function(e,t){var n,o,d,s,c;const p=(0,g.b)({props:e,name:"MuiOutlinedInput"}),{components:m={},fullWidth:S=!1,inputComponent:C="input",label:R,multiline:k=!1,notched:O,slots:z={},type:W="text"}=p,F=(0,r.A)(p,y),B=(e=>{const{classes:t}=e,n=(0,a.A)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},b.v,t);return(0,i.A)({},t,n)})(p),I=(0,h.A)(),L=(0,f.A)({props:p,muiFormControl:I,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),M=(0,i.A)({},p,{color:L.color||"primary",disabled:L.disabled,error:L.error,focused:L.focused,formControl:I,fullWidth:S,hiddenLabel:L.hiddenLabel,multiline:k,size:L.size,type:W}),j=null!=(n=null!=(o=z.root)?o:m.Root)?n:v,N=null!=(d=null!=(s=z.input)?s:m.Input)?d:x;return(0,u.jsx)(A.Ay,(0,i.A)({slots:{root:j,input:N},renderSuffix:e=>(0,u.jsx)(w,{ownerState:M,className:B.notchedOutline,label:null!=R&&""!==R&&L.required?c||(c=(0,u.jsxs)(l.Fragment,{children:[R,"\u2009","*"]})):R,notched:"undefined"!==typeof O?O:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:S,inputComponent:C,multiline:k,ref:t,type:W},F,{classes:(0,i.A)({},B,{notchedOutline:null})}))}));S.muiName="Input";const C=S},38666:(e,t,n)=>{function o(e){let{props:t,states:n,muiFormControl:o}=e;return n.reduce(((e,n)=>(e[n]=t[n],o&&"undefined"===typeof t[n]&&(e[n]=o[n]),e)),{})}n.d(t,{A:()=>o})},51476:(e,t,n)=>{n.d(t,{f3:()=>M,Sh:()=>L,Ay:()=>N,Oj:()=>I,WC:()=>B});var o=n(84849),r=n(27326),i=n(21484),l=n(85672),a=n(72574),d=n(25234),s=n(28292),u=n(80038),c=n(43044),p=n(65016),m=n(22700),h=n(65908);const f=["onChange","maxRows","minRows","style","value"];function b(e){return parseInt(e,10)||0}const A={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const g=l.forwardRef((function(e,t){const{onChange:n,maxRows:i,minRows:a=1,style:d,value:s}=e,g=(0,o.A)(e,f),{current:y}=l.useRef(null!=s),v=l.useRef(null),w=(0,u.A)(t,v),x=l.useRef(null),S=l.useRef(null),C=l.useCallback((()=>{const t=v.current,n=(0,c.A)(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const o=S.current;o.style.width=n.width,o.value=t.value||e.placeholder||"x","\n"===o.value.slice(-1)&&(o.value+=" ");const r=n.boxSizing,l=b(n.paddingBottom)+b(n.paddingTop),d=b(n.borderBottomWidth)+b(n.borderTopWidth),s=o.scrollHeight;o.value="x";const u=o.scrollHeight;let p=s;a&&(p=Math.max(Number(a)*u,p)),i&&(p=Math.min(Number(i)*u,p)),p=Math.max(p,u);return{outerHeightStyle:p+("border-box"===r?l+d:0),overflowing:Math.abs(p-s)<=1}}),[i,a,e.placeholder]),R=l.useCallback((()=>{const e=C();if(void 0===(t=e)||null===t||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=e.outerHeightStyle,o=v.current;x.current!==n&&(x.current=n,o.style.height="".concat(n,"px")),o.style.overflow=e.overflowing?"hidden":""}),[C]);(0,p.A)((()=>{const e=()=>{R()};let t;const n=(0,m.A)(e),o=v.current,r=(0,c.A)(o);let i;return r.addEventListener("resize",n),"undefined"!==typeof ResizeObserver&&(i=new ResizeObserver(e),i.observe(o)),()=>{n.clear(),cancelAnimationFrame(t),r.removeEventListener("resize",n),i&&i.disconnect()}}),[C,R]),(0,p.A)((()=>{R()}));return(0,h.jsxs)(l.Fragment,{children:[(0,h.jsx)("textarea",(0,r.A)({value:s,onChange:e=>{y||R(),n&&n(e)},ref:w,rows:a,style:d},g)),(0,h.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:S,tabIndex:-1,style:(0,r.A)({},A,d,{paddingTop:0,paddingBottom:0})})]})}));var y=n(38666),v=n(25676),w=n(75520),x=n(60308),S=n(38009),C=n(16775),R=n(45688),k=n(93046),O=n(7696),z=n(75287),W=n(28915);const F=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],B=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color".concat((0,C.A)(n.color))],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},I=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},L=(0,x.Ay)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:B})((e=>{let{theme:t,ownerState:n}=e;return(0,r.A)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&.".concat(W.A.disabled)]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},n.multiline&&(0,r.A)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),M=(0,x.Ay)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:I})((e=>{let{theme:t,ownerState:n}=e;const o="light"===t.palette.mode,i=(0,r.A)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),l={opacity:"0 !important"},a=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return(0,r.A)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},["label[data-shrink=false] + .".concat(W.A.formControl," &")]:{"&::-webkit-input-placeholder":l,"&::-moz-placeholder":l,"&:-ms-input-placeholder":l,"&::-ms-input-placeholder":l,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},["&.".concat(W.A.disabled)]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===n.size&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===n.type&&{MozAppearance:"textfield"})})),j=(0,h.jsx)(O.A,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),N=l.forwardRef((function(e,t){var n;const u=(0,S.b)({props:e,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:p,autoFocus:m,className:f,components:b={},componentsProps:A={},defaultValue:x,disabled:O,disableInjectingGlobalStyles:B,endAdornment:I,fullWidth:N=!1,id:E,inputComponent:T="input",inputProps:P={},inputRef:H,maxRows:q,minRows:K,multiline:D=!1,name:V,onBlur:_,onChange:U,onClick:G,onFocus:Z,onKeyDown:J,onKeyUp:Q,placeholder:X,readOnly:Y,renderSuffix:$,rows:ee,slotProps:te={},slots:ne={},startAdornment:oe,type:re="text",value:ie}=u,le=(0,o.A)(u,F),ae=null!=P.value?P.value:ie,{current:de}=l.useRef(null!=ae),se=l.useRef(),ue=l.useCallback((e=>{0}),[]),ce=(0,R.A)(se,H,P.ref,ue),[pe,me]=l.useState(!1),he=(0,w.A)();const fe=(0,y.A)({props:u,muiFormControl:he,states:["color","disabled","error","hiddenLabel","size","required","filled"]});fe.focused=he?he.focused:pe,l.useEffect((()=>{!he&&O&&pe&&(me(!1),_&&_())}),[he,O,pe,_]);const be=he&&he.onFilled,Ae=he&&he.onEmpty,ge=l.useCallback((e=>{(0,z.lq)(e)?be&&be():Ae&&Ae()}),[be,Ae]);(0,k.A)((()=>{de&&ge({value:ae})}),[ae,ge,de]);l.useEffect((()=>{ge(se.current)}),[]);let ye=T,ve=P;D&&"input"===ye&&(ve=ee?(0,r.A)({type:void 0,minRows:ee,maxRows:ee},ve):(0,r.A)({type:void 0,maxRows:q,minRows:K},ve),ye=g);l.useEffect((()=>{he&&he.setAdornedStart(Boolean(oe))}),[he,oe]);const we=(0,r.A)({},u,{color:fe.color||"primary",disabled:fe.disabled,endAdornment:I,error:fe.error,focused:fe.focused,formControl:he,fullWidth:N,hiddenLabel:fe.hiddenLabel,multiline:D,size:fe.size,startAdornment:oe,type:re}),xe=(e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:i,focused:l,formControl:a,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:p,size:m,startAdornment:h,type:f}=e,b={root:["root","color".concat((0,C.A)(n)),o&&"disabled",r&&"error",s&&"fullWidth",l&&"focused",a&&"formControl",m&&"medium"!==m&&"size".concat((0,C.A)(m)),c&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",o&&"disabled","search"===f&&"inputTypeSearch",c&&"inputMultiline","small"===m&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return(0,d.A)(b,W.g,t)})(we),Se=ne.root||b.Root||L,Ce=te.root||A.root||{},Re=ne.input||b.Input||M;return ve=(0,r.A)({},ve,null!=(n=te.input)?n:A.input),(0,h.jsxs)(l.Fragment,{children:[!B&&j,(0,h.jsxs)(Se,(0,r.A)({},Ce,!(0,s.A)(Se)&&{ownerState:(0,r.A)({},we,Ce.ownerState)},{ref:t,onClick:e=>{se.current&&e.currentTarget===e.target&&se.current.focus(),G&&G(e)}},le,{className:(0,a.A)(xe.root,Ce.className,f,Y&&"MuiInputBase-readOnly"),children:[oe,(0,h.jsx)(v.A.Provider,{value:null,children:(0,h.jsx)(Re,(0,r.A)({ownerState:we,"aria-invalid":fe.error,"aria-describedby":c,autoComplete:p,autoFocus:m,defaultValue:x,disabled:fe.disabled,id:E,onAnimationStart:e=>{ge("mui-auto-fill-cancel"===e.animationName?se.current:{value:"x"})},name:V,placeholder:X,readOnly:Y,required:fe.required,rows:ee,value:ae,onKeyDown:J,onKeyUp:Q,type:re},ve,!(0,s.A)(Re)&&{as:ye,ownerState:(0,r.A)({},we,ve.ownerState)},{ref:ce,className:(0,a.A)(xe.input,ve.className,Y&&"MuiInputBase-readOnly"),onBlur:e=>{_&&_(e),P.onBlur&&P.onBlur(e),he&&he.onBlur?he.onBlur(e):me(!1)},onChange:function(e){if(!de){const t=e.target||se.current;if(null==t)throw new Error((0,i.A)(1));ge({value:t.value})}for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o{fe.disabled?e.stopPropagation():(Z&&Z(e),P.onFocus&&P.onFocus(e),he&&he.onFocus?he.onFocus(e):me(!0))}}))}),I,$?$((0,r.A)({},fe,{startAdornment:oe})):null]}))]})}))},75287:(e,t,n)=>{function o(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function r(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(o(e.value)&&""!==e.value||t&&o(e.defaultValue)&&""!==e.defaultValue)}function i(e){return e.startAdornment}n.d(t,{gr:()=>i,lq:()=>r})},75520:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(85672),r=n(25676);function i(){return o.useContext(r.A)}},90875:(e,t,n)=>{n.d(t,{A:()=>d,v:()=>a});var o=n(27326),r=n(37300),i=n(10644),l=n(28915);function a(e){return(0,i.Ay)("MuiOutlinedInput",e)}const d=(0,o.A)({},l.A,(0,r.A)("MuiOutlinedInput",["root","notchedOutline","input"]))}}]); \ No newline at end of file diff --git a/build/static/js/9826.07f60dc6.chunk.js b/build/static/js/9826.07f60dc6.chunk.js deleted file mode 100644 index efc44de..0000000 --- a/build/static/js/9826.07f60dc6.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9826],{7762:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var a=r(n(79526)),i=n(44414);t.A=(0,a.default)((0,i.jsx)("path",{d:"M19 6.41 17.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"}),"Clear")},14323:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var a=r(n(79526)),i=n(44414);t.A=(0,a.default)((0,i.jsx)("path",{d:"M16.01 11H4v2h12.01v3L20 12l-3.99-4z"}),"ArrowRightAlt")},23266:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(98587),a=n(58168),i=n(9950),o=n(72004),u=n(3484),s=n(99269),l=n(59254),c=n(19608),d=n(18463),f=n(13372),h=n(24184),m=n(79044),v=n(31506),g=n(40777),p=n(92455),w=n(88543),b=n(45558),y=n(1614);function A(e){return(0,y.Ay)("MuiMenuItem",e)}const D=(0,b.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var C=n(44414);const T=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],M=(0,l.Ay)(h.A,{shouldForwardProp:e=>(0,c.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:n}=e;return(0,a.A)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(D.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,s.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(D.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,s.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(D.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,s.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,s.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(D.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(D.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(g.A.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(g.A.inset)]:{marginLeft:52},["& .".concat(w.A.root)]:{marginTop:0,marginBottom:0},["& .".concat(w.A.inset)]:{paddingLeft:36},["& .".concat(p.A.root)]:{minWidth:36}},!n.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},n.dense&&(0,a.A)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(p.A.root," svg")]:{fontSize:"1.25rem"}}))})),x=i.forwardRef((function(e,t){const n=(0,d.b)({props:e,name:"MuiMenuItem"}),{autoFocus:s=!1,component:l="li",dense:c=!1,divider:h=!1,disableGutters:g=!1,focusVisibleClassName:p,role:w="menuitem",tabIndex:b,className:y}=n,D=(0,r.A)(n,T),x=i.useContext(f.A),k=i.useMemo((()=>({dense:c||x.dense||!1,disableGutters:g})),[x.dense,c,g]),S=i.useRef(null);(0,m.A)((()=>{s&&S.current&&S.current.focus()}),[s]);const N=(0,a.A)({},n,{dense:k.dense,divider:h,disableGutters:g}),E=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:s}=e,l={root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},c=(0,u.A)(l,A,s);return(0,a.A)({},s,c)})(n),O=(0,v.A)(S,t);let U;return n.disabled||(U=void 0!==b?b:-1),(0,C.jsx)(f.A.Provider,{value:k,children:(0,C.jsx)(M,(0,a.A)({ref:O,role:w,tabIndex:U,component:l,focusVisibleClassName:(0,o.A)(E.focusVisible,p),className:(0,o.A)(E.root,y)},D,{ownerState:N,classes:E}))})}))},36220:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,a,i){var o=a.prototype;i.utc=function(e){return new a({date:e,utc:!0,args:arguments})},o.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var u=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),u.call(this,e)};var s=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else s.call(this)};var l=o.utcOffset;o.utcOffset=function(r,a){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?l.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var a=(""+r[0]).match(n)||["-",0,0],i=a[0],o=60*+a[1]+ +a[2];return 0===o?0:"+"===i?o:-o}(r),null===r))return this;var o=Math.abs(r)<=16?60*r:r,u=this;if(a)return u.$offset=o,u.$u=0===r,u;if(0!==r){var s=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(u=this.local().add(o+s,e)).$offset=o,u.$x.$localOffset=s}else u=this.utc();return u};var c=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),a=i(e).local();return f.call(r,a,t,n)}}}()},50624:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(66922),a=n(98889),i=n(78397);function o(e,t){(0,i.A)(2,arguments);var n=(0,a.A)(e),o=(0,r.A)(t);if(isNaN(o))return new Date(NaN);if(!o)return n;var u=n.getDate(),s=new Date(n.getTime());return s.setMonth(n.getMonth()+o+1,0),u>=s.getDate()?s:(n.setFullYear(s.getFullYear(),s.getMonth(),u),n)}},52097:(e,t,n)=>{"use strict";n.d(t,{d7:()=>o});var r=n(9950);function a(e,t,n,a){var i=this,o=(0,r.useRef)(null),u=(0,r.useRef)(0),s=(0,r.useRef)(0),l=(0,r.useRef)(null),c=(0,r.useRef)([]),d=(0,r.useRef)(),f=(0,r.useRef)(),h=(0,r.useRef)(e),m=(0,r.useRef)(!0);h.current=e;var v="undefined"!=typeof window,g=!t&&0!==t&&v;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var p=!!(n=n||{}).leading,w=!("trailing"in n)||!!n.trailing,b="maxWait"in n,y="debounceOnServer"in n&&!!n.debounceOnServer,A=b?Math.max(+n.maxWait||0,t):null;(0,r.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]);var D=(0,r.useMemo)((function(){var e=function(e){var t=c.current,n=d.current;return c.current=d.current=null,u.current=e,s.current=s.current||e,f.current=h.current.apply(n,t)},n=function(e,t){g&&cancelAnimationFrame(l.current),l.current=g?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!m.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||b&&e-u.current>=A},D=function(t){return l.current=null,w&&c.current?e(t):(c.current=d.current=null,f.current)},C=function e(){var a=Date.now();if(p&&s.current===u.current&&T(),r(a))return D(a);if(m.current){var i=t-(a-o.current),l=b?Math.min(i,A-(a-u.current)):i;n(e,l)}},T=function(){a&&a({})},M=function(){if(v||y){var a=Date.now(),s=r(a);if(c.current=[].slice.call(arguments),d.current=i,o.current=a,s){if(!l.current&&m.current)return u.current=o.current,n(C,t),p?e(o.current):f.current;if(b)return n(C,t),e(o.current)}return l.current||n(C,t),f.current}};return M.cancel=function(){l.current&&(g?cancelAnimationFrame(l.current):clearTimeout(l.current)),u.current=0,c.current=o.current=d.current=l.current=null},M.isPending=function(){return!!l.current},M.flush=function(){return l.current?D(Date.now()):f.current},M}),[p,b,t,A,w,g,v,y,a]);return D}function i(e,t){return e===t}function o(e,t,n){var o=n&&n.equalityFn||i,u=(0,r.useRef)(e),s=(0,r.useState)({})[1],l=a((0,r.useCallback)((function(e){u.current=e,s({})}),[s]),t,n,s),c=(0,r.useRef)(e);return o(c.current,e)||(l(e),c.current=e),[u.current,l]}},53132:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(66922),a=n(56712),i=n(78397);function o(e,t){(0,i.A)(2,arguments);var n=7*(0,r.A)(t);return(0,a.A)(e,n)}},55916:(e,t,n)=>{"use strict";n.d(t,{U:()=>it});var r=n(9950),a=n(60899),i=n(25333),o=n(25979),u=n(70006),s=n(23266),l=n(16491),c=n(82053),d=n(2235),f=n(249),h=n(26050),m=n(83563),v=n(74745),g=n(81417),p=n(94289),w=n(96600),b=n(57326),y=n(98889),A=n(78397);function D(e,t){(0,A.A)(2,arguments);var n=(0,y.A)(e),r=(0,y.A)(t);return n.getTime()=r&&n<=a}Math.pow(10,8);var k=6e4,S=36e5,N=n(66922);function E(e,t){var n;(0,A.A)(1,arguments);var r=(0,N.A)(null!==(n=null===t||void 0===t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var a,i=function(e){var t,n={},r=e.split(O.dateTimeDelimiter);if(r.length>2)return n;/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],O.timeZoneDelimiter.test(n.date)&&(n.date=e.split(O.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var a=O.timezone.exec(t);a?(n.time=t.replace(a[1],""),n.timezone=a[1]):n.time=t}return n}(e);if(i.date){var o=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?a:100*i,restDateString:e.slice((r[1]||r[2]).length)}}(i.date,r);a=function(e,t){if(null===t)return new Date(NaN);var n=e.match(U);if(!n)return new Date(NaN);var r=!!n[4],a=R(n[1]),i=R(n[2])-1,o=R(n[3]),u=R(n[4]),s=R(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,u,s)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var a=r.getUTCDay()||7,i=7*(t-1)+n+1-a;return r.setUTCDate(r.getUTCDate()+i),r}(t,u,s):new Date(NaN);var l=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(H[t]||(W(e)?29:28))}(t,i,o)&&function(e,t){return t>=1&&t<=(W(e)?366:365)}(t,a)?(l.setUTCFullYear(t,i,Math.max(a,o)),l):new Date(NaN)}(o.restDateString,o.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var u,s=a.getTime(),l=0;if(i.time&&(l=function(e){var t=e.match(Y);if(!t)return NaN;var n=F(t[1]),r=F(t[2]),a=F(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,a))return NaN;return n*S+r*k+1e3*a}(i.time),isNaN(l)))return new Date(NaN);if(!i.timezone){var c=new Date(s+l),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return u=function(e){if("Z"===e)return 0;var t=e.match(P);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,a))return NaN;return n*(r*S+a*k)}(i.timezone),isNaN(u)?new Date(NaN):new Date(s+l+u)}var O={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},U=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Y=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,P=/^([+-])(\d{2})(?::?(\d{2}))?$/;function R(e){return e?parseInt(e):1}function F(e){return e&&parseFloat(e.replace(",","."))||0}var H=[31,null,31,30,31,30,31,31,30,31,30,31];function W(e){return e%400===0||e%4===0&&e%100!==0}var j=n(82284);function $(e){if((0,A.A)(1,arguments),!function(e){return(0,A.A)(1,arguments),e instanceof Date||"object"===(0,j.A)(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!==typeof e)return!1;var t=(0,y.A)(e);return!isNaN(Number(t))}function q(e){var t,n;if((0,A.A)(1,arguments),e&&"function"===typeof e.forEach)t=e;else{if("object"!==(0,j.A)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=(0,y.A)(e);(void 0===n||nt||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}function L(e,t){(0,A.A)(2,arguments);var n=(0,y.A)(e),r=(0,y.A)(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}var I=n(50624),X=n(53132);function G(e){(0,A.A)(1,arguments);var t=(0,y.A)(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function B(e){(0,A.A)(1,arguments);var t=(0,y.A)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function Q(e,t){(0,A.A)(2,arguments);var n=(0,N.A)(t);return(0,I.A)(e,12*n)}function _(e,t){(0,A.A)(2,arguments);var n=(0,y.A)(e),r=(0,N.A)(t),a=n.getFullYear(),i=n.getDate(),o=new Date(0);o.setFullYear(a,r,15),o.setHours(0,0,0,0);var u=function(e){(0,A.A)(1,arguments);var t=(0,y.A)(e),n=t.getFullYear(),r=t.getMonth(),a=new Date(0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}(o);return n.setMonth(r,Math.min(i,u)),n}function V(e){return(0,A.A)(1,arguments),(0,y.A)(e).getMonth()}function J(e){return(0,A.A)(1,arguments),(0,y.A)(e).getFullYear()}function Z(e,t){return(0,A.A)(2,arguments),function(e,t){(0,A.A)(2,arguments);var n=(0,y.A)(e).getTime(),r=(0,N.A)(t);return new Date(n+r)}(e,-(0,N.A)(t))}function K(e){(0,A.A)(1,arguments);var t=(0,y.A)(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function ee(e){(0,A.A)(1,arguments);var t=(0,y.A)(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var a=K(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var o=K(i);return t.getTime()>=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function te(e){(0,A.A)(1,arguments);var t=(0,y.A)(e),n=K(t).getTime()-function(e){(0,A.A)(1,arguments);var t=ee(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),K(n)}(t).getTime();return Math.round(n/6048e5)+1}var ne=n(83840);function re(e,t){var n,r,a,i,o,u,s,l;(0,A.A)(1,arguments);var c=(0,ne.q)(),d=(0,N.A)(null!==(n=null!==(r=null!==(a=null!==(i=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==i?i:null===t||void 0===t||null===(o=t.locale)||void 0===o||null===(u=o.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==a?a:c.weekStartsOn)&&void 0!==r?r:null===(s=c.locale)||void 0===s||null===(l=s.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=(0,y.A)(e),h=f.getUTCDay(),m=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,h),m.setUTCHours(0,0,0,0);var v=re(m,t),g=new Date(0);g.setUTCFullYear(d,0,h),g.setUTCHours(0,0,0,0);var p=re(g,t);return c.getTime()>=v.getTime()?d+1:c.getTime()>=p.getTime()?d:d-1}function ie(e,t){(0,A.A)(1,arguments);var n=(0,y.A)(e),r=re(n,t).getTime()-function(e,t){var n,r,a,i,o,u,s,l;(0,A.A)(1,arguments);var c=(0,ne.q)(),d=(0,N.A)(null!==(n=null!==(r=null!==(a=null!==(i=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null===t||void 0===t||null===(o=t.locale)||void 0===o||null===(u=o.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==a?a:c.firstWeekContainsDate)&&void 0!==r?r:null===(s=c.locale)||void 0===s||null===(l=s.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1),f=ae(e,t),h=new Date(0);return h.setUTCFullYear(f,0,d),h.setUTCHours(0,0,0,0),re(h,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function oe(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?n:1-n;return oe("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):oe(n+1,2)},d:function(e,t){return oe(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return oe(e.getUTCHours()%12||12,t.length)},H:function(e,t){return oe(e.getUTCHours(),t.length)},m:function(e,t){return oe(e.getUTCMinutes(),t.length)},s:function(e,t){return oe(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return oe(Math.floor(r*Math.pow(10,n-3)),t.length)}};var se="midnight",le="noon",ce="morning",de="afternoon",fe="evening",he="night",me={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return ue.y(e,t)},Y:function(e,t,n,r){var a=ae(e,r),i=a>0?a:1-a;return"YY"===t?oe(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):oe(i,t.length)},R:function(e,t){return oe(ee(e),t.length)},u:function(e,t){return oe(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return oe(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return oe(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return ue.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return oe(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var a=ie(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):oe(a,t.length)},I:function(e,t,n){var r=te(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):oe(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):ue.d(e,t)},D:function(e,t,n){var r=function(e){(0,A.A)(1,arguments);var t=(0,y.A)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):oe(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var a=e.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return oe(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var a=e.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return oe(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return oe(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,a=e.getUTCHours();switch(r=12===a?le:0===a?se:a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,a=e.getUTCHours();switch(r=a>=17?fe:a>=12?de:a>=4?ce:he,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return ue.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ue.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):oe(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):oe(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ue.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ue.s(e,t)},S:function(e,t){return ue.S(e,t)},X:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return ge(a);case"XXXX":case"XX":return pe(a);default:return pe(a,":")}},x:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return ge(a);case"xxxx":case"xx":return pe(a);default:return pe(a,":")}},O:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ve(a,":");default:return"GMT"+pe(a,":")}},z:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ve(a,":");default:return"GMT"+pe(a,":")}},t:function(e,t,n,r){var a=r._originalDate||e;return oe(Math.floor(a.getTime()/1e3),t.length)},T:function(e,t,n,r){return oe((r._originalDate||e).getTime(),t.length)}};function ve(e,t){var n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),i=r%60;if(0===i)return n+String(a);var o=t||"";return n+String(a)+o+oe(i,2)}function ge(e,t){return e%60===0?(e>0?"-":"+")+oe(Math.abs(e)/60,2):pe(e,t)}function pe(e,t){var n=t||"",r=e>0?"-":"+",a=Math.abs(e);return r+oe(Math.floor(a/60),2)+n+oe(a%60,2)}const we=me;var be=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},ye=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Ae={p:ye,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return be(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",be(a,t)).replace("{{time}}",ye(i,t))}};const De=Ae;var Ce=["D","DD"],Te=["YY","YYYY"];function Me(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var xe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const ke=function(e,t,n){var r,a=xe[e];return r="string"===typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Se(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var Ne={date:Se({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Se({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Se({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Ee={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Oe(e){return function(t,n){var r;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,i=null!==n&&void 0!==n&&n.width?String(n.width):a;r=e.formattingValues[i]||e.formattingValues[a]}else{var o=e.defaultWidth,u=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[u]||e.values[o]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function Ue(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var o,u=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(var n=0;n20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Oe({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Oe({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Oe({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Oe({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Oe({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Ye={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(Ye.matchPattern);if(!n)return null;var r=n[0],a=e.match(Ye.parsePattern);if(!a)return null;var i=Ye.valueCallback?Ye.valueCallback(a[0]):a[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:Ue({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Ue({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Ue({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ue({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Ue({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var Re=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Fe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,He=/^'([^]*?)'?$/,We=/''/g,je=/[a-zA-Z]/;function $e(e,t,n){var r,a,i,o,u,s,l,c,d,f,h,m,v,g,p,w,b,D;(0,A.A)(2,arguments);var C=String(t),T=(0,ne.q)(),M=null!==(r=null!==(a=null===n||void 0===n?void 0:n.locale)&&void 0!==a?a:T.locale)&&void 0!==r?r:Pe,x=(0,N.A)(null!==(i=null!==(o=null!==(u=null!==(s=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==s?s:null===n||void 0===n||null===(l=n.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==u?u:T.firstWeekContainsDate)&&void 0!==o?o:null===(d=T.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==i?i:1);if(!(x>=1&&x<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=(0,N.A)(null!==(h=null!==(m=null!==(v=null!==(g=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==g?g:null===n||void 0===n||null===(p=n.locale)||void 0===p||null===(w=p.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==v?v:T.weekStartsOn)&&void 0!==m?m:null===(b=T.locale)||void 0===b||null===(D=b.options)||void 0===D?void 0:D.weekStartsOn)&&void 0!==h?h:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!M.localize)throw new RangeError("locale must contain localize property");if(!M.formatLong)throw new RangeError("locale must contain formatLong property");var S=(0,y.A)(e);if(!$(S))throw new RangeError("Invalid time value");var E=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}(S),O=Z(S,E),U={firstWeekContainsDate:x,weekStartsOn:k,locale:M,_originalDate:S};return C.match(Fe).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,De[t])(e,M.formatLong):e})).join("").match(Re).map((function(r){if("''"===r)return"'";var a=r[0];if("'"===a)return function(e){var t=e.match(He);if(!t)return e;return t[1].replace(We,"'")}(r);var i,o=we[a];if(o)return null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||(i=r,-1===Te.indexOf(i))||Me(r,t,String(e)),null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==Ce.indexOf(e)}(r)||Me(r,t,String(e)),o(O,r,M.localize,U);if(a.match(je))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return r})).join("")}function qe(e){return(0,A.A)(1,arguments),M(e,Date.now())}function ze(e){return(0,A.A)(1,arguments),(0,y.A)(e).getDate()}function Le(e,t){(0,A.A)(2,arguments);var n=(0,y.A)(e),r=(0,y.A)(t);return n.getTime()>r.getTime()}var Ie=n(14323),Xe=n(62145),Ge=n(80392);const Be=(e,t)=>{if(e){const t=e instanceof Date?e:E(e);if($(t))return t}return t},Qe=(e,t)=>[{label:"Today",startDate:e,endDate:e},{label:"Yesterday",startDate:(0,C.A)(e,-1),endDate:(0,C.A)(e,-1)},{label:"This Week",startDate:(0,g.A)(e,{locale:t}),endDate:(0,w.A)(e,{locale:t})},{label:"Last Week",startDate:(0,g.A)((0,X.A)(e,-1),{locale:t}),endDate:(0,w.A)((0,X.A)(e,-1),{locale:t})},{label:"Last 7 Days",startDate:(0,X.A)(e,-1),endDate:e},{label:"This Month",startDate:(0,p.A)(e),endDate:(0,b.A)(e)},{label:"Last Month",startDate:(0,p.A)((0,I.A)(e,-1)),endDate:(0,b.A)((0,I.A)(e,-1))},{label:"This Year",startDate:G(e),endDate:B(e)},{label:"Last Year",startDate:G(Q(e,-1)),endDate:B(Q(e,-1))}],_e=e=>{let{date:t,setDate:n,nextDisabled:l,prevDisabled:c,onClickNext:d,onClickPrevious:f,locale:h}=e;const m="undefined"!==typeof h?[...Array(12).keys()].map((e=>{var t;return null===(t=h.localize)||void 0===t?void 0:t.month(e,{width:"abbreviated",context:"standalone"})})):["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"];return r.createElement(a.Ay,{container:!0,justifyContent:"space-between",alignItems:"center"},r.createElement(a.Ay,{item:!0,sx:{padding:"5px"}},r.createElement(i.A,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:c,onClick:f},r.createElement(Xe.A,{color:c?"disabled":"action"}))),r.createElement(a.Ay,{item:!0},r.createElement(o.A,{variant:"standard"},r.createElement(u.A,{value:V(t),onChange:e=>{n(_(t,parseInt(e.target.value,10)))},MenuProps:{disablePortal:!0}},m.map(((e,t)=>r.createElement(s.A,{key:e,value:t},e)))))),r.createElement(a.Ay,{item:!0},r.createElement(o.A,{variant:"standard"},r.createElement(u.A,{value:J(t),onChange:e=>{n(function(e,t){(0,A.A)(2,arguments);var n=(0,y.A)(e),r=(0,N.A)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}(t,parseInt(e.target.value,10)))},MenuProps:{disablePortal:!0}},((e,t)=>{const n=Math.floor(t/2);return Array(t).fill(0).map(((t,r)=>e.getFullYear()-n+r))})(t,30).map((e=>r.createElement(s.A,{key:e,value:e},e)))))),r.createElement(a.Ay,{item:!0,sx:{padding:"5px"}},r.createElement(i.A,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:l,onClick:d},r.createElement(Ge.A,{color:l?"disabled":"action"}))))},Ve=e=>{let{startOfRange:t,endOfRange:n,disabled:a,highlighted:o,outlined:u,filled:s,onClick:d,onHover:f,value:h}=e;return r.createElement(l.A,{sx:{display:"flex",borderRadius:t?"50% 0 0 50%":n?"0 50% 50% 0":void 0,backgroundColor:e=>!a&&o?e.palette.primary.light:void 0}},r.createElement(i.A,{sx:Object.assign({height:"36px",width:"36px",padding:0,border:e=>!a&&u?"1px solid ".concat(e.palette.primary.dark):void 0},!a&&s?{"&:hover":{backgroundColor:e=>e.palette.primary.dark},backgroundColor:e=>e.palette.primary.dark}:{}),disabled:a,onClick:d,onMouseOver:f},r.createElement(c.A,{sx:{lineHeight:1.6,color:e=>a?e.palette.text.secondary:s?e.palette.primary.contrastText:e.palette.text.primary},variant:"body2"},h)))};var Je;!function(e){e[e.Previous=-1]="Previous",e[e.Next=1]="Next"}(Je||(Je={}));const Ze=e=>{var t;const{helpers:n,handlers:i,value:o,dateRange:u,marker:s,setValue:l,minDate:f,maxDate:h,locale:m}=e,v=(null===(t=null===m||void 0===m?void 0:m.options)||void 0===t?void 0:t.weekStartsOn)||0,y="undefined"!==typeof m?[...Array(7).keys()].map((e=>{var t;return null===(t=m.localize)||void 0===t?void 0:t.day((e+v)%7,{width:"short",context:"standalone"})})):["Su","Mo","Tu","We","Th","Fr","Sa"],[A,T]=e.navState;return r.createElement(d.A,{square:!0,elevation:0,sx:{width:290}},r.createElement(a.Ay,{container:!0},r.createElement(_e,{date:o,setDate:l,nextDisabled:!T,prevDisabled:!A,onClickPrevious:()=>i.onMonthNavigate(s,Je.Previous),onClickNext:()=>i.onMonthNavigate(s,Je.Next),locale:m}),r.createElement(a.Ay,{item:!0,container:!0,direction:"row",justifyContent:"space-between",sx:{marginTop:"10px",paddingLeft:"30px",paddingRight:"30px"}},y.map(((e,t)=>r.createElement(c.A,{color:"textSecondary",key:t,variant:"caption"},e)))),r.createElement(a.Ay,{item:!0,container:!0,direction:"column",justifyContent:"space-between",sx:{paddingLeft:"15px",paddingRight:"15px",marginTop:"15px",marginBottom:"20px"}},(k=((e,t)=>{const n=(0,g.A)((0,p.A)(e),{locale:t}),r=(0,w.A)((0,b.A)(e),{locale:t}),a=[];for(let i=n;D(i,r);)a.push(i),i=(0,C.A)(i,1);return a})(o,m),S=7,Array.from({length:Math.ceil(k.length/S)},((e,t)=>k.slice(t*S,t*S+S)))).map(((e,t)=>r.createElement(a.Ay,{key:t,container:!0,direction:"row",justifyContent:"center"},e.map((e=>{const t=((e,t)=>{let{startDate:n}=e;return n&&M(t,n)})(u,e),a=((e,t)=>{let{endDate:n}=e;return n&&M(t,n)})(u,e),s=(e=>{let{startDate:t,endDate:n}=e;return!(!t||!n)&&M(t,n)})(u),l=((e,t)=>{let{startDate:n,endDate:r}=e;return n&&r&&(x(t,{start:n,end:r})||M(t,n)||M(t,r))})(u,e)||n.inHoverRange(e);return r.createElement(Ve,{key:$e(e,"dd-MM-yyyy"),filled:t||a,outlined:qe(e),highlighted:l&&!s,disabled:!L(o,e)||!x(e,{start:f,end:h}),startOfRange:t&&!s,endOfRange:a&&!s,onClick:()=>i.onDayClick(e),onHover:()=>i.onDayHover(e),value:ze(e)})}))))))));var k,S},Ke=(e,t)=>{const{startDate:n,endDate:r}=e,{startDate:a,endDate:i}=t;return!!(n&&a&&r&&i)&&(M(n,a)&&M(r,i))},et=e=>{let{ranges:t,setRange:n,selectedRange:a}=e;return r.createElement(f.A,null,t.map(((e,t)=>r.createElement(h.Ay,{button:!0,key:t,onClick:()=>n(e),sx:[Ke(e,a)&&{backgroundColor:e=>e.palette.primary.dark,color:"primary.contrastText","&:hover":{color:"inherit"}}]},r.createElement(m.A,{primaryTypographyProps:{variant:"body2",sx:{fontWeight:Ke(e,a)?"bold":"normal"}}},e.label)))))},tt={FIRST_MONTH:Symbol("firstMonth"),SECOND_MONTH:Symbol("secondMonth")},nt=e=>{const{ranges:t,dateRange:n,minDate:i,maxDate:o,firstMonth:u,setFirstMonth:s,secondMonth:l,setSecondMonth:f,setDateRange:h,helpers:m,handlers:g,locale:p}=e,{startDate:w,endDate:b}=n,D=function(e,t){(0,A.A)(2,arguments);var n=(0,y.A)(e),r=(0,y.A)(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(l,u)>=2,C={dateRange:n,minDate:i,maxDate:o,helpers:m,handlers:g};return r.createElement(d.A,{elevation:5,square:!0},r.createElement(a.Ay,{container:!0,direction:"row",wrap:"nowrap"},r.createElement(a.Ay,null,r.createElement(et,{selectedRange:n,ranges:t,setRange:h})),r.createElement(v.A,{orientation:"vertical",flexItem:!0}),r.createElement(a.Ay,null,r.createElement(a.Ay,{container:!0,sx:{padding:"20px 70px"},alignItems:"center"},r.createElement(a.Ay,{item:!0,sx:{flex:1,textAlign:"center"}},r.createElement(c.A,{variant:"subtitle1"},w?$e(w,"dd MMMM yyyy",{locale:p}):"Start Date")),r.createElement(a.Ay,{item:!0,sx:{flex:1,textAlign:"center"}},r.createElement(Ie.A,{color:"action"})),r.createElement(a.Ay,{item:!0,sx:{flex:1,textAlign:"center"}},r.createElement(c.A,{variant:"subtitle1"},b?$e(b,"dd MMMM yyyy",{locale:p}):"End Date"))),r.createElement(v.A,null),r.createElement(a.Ay,{container:!0,direction:"row",justifyContent:"center",wrap:"nowrap"},r.createElement(Ze,Object.assign({},C,{value:u,setValue:s,navState:[!0,D],marker:tt.FIRST_MONTH,locale:p})),r.createElement(v.A,{orientation:"vertical",flexItem:!0}),r.createElement(Ze,Object.assign({},C,{value:l,setValue:f,navState:[D,!0],marker:tt.SECOND_MONTH,locale:p}))))))},rt=e=>{const t=new Date,{open:n,onChange:a,initialDateRange:i,minDate:o,maxDate:u,definedRanges:s=Qe(new Date,e.locale),locale:l}=e,c=Be(o,Q(t,-10)),d=Be(u,Q(t,10)),[f,h]=((e,t,n)=>{const{startDate:r,endDate:a}=e;if(r&&a){const e=q([r,t]),i=z([a,n]);return[e,L(e,i)?(0,I.A)(e,1):i]}return[r,a]})(i||{},c,d),[m,v]=r.useState(Object.assign({},i)),[g,p]=r.useState(),[w,b]=r.useState(f||t),[y,A]=r.useState(h||(0,I.A)(w,1)),{startDate:C,endDate:T}=m,k={inHoverRange:e=>C&&!T&&g&&Le(g,C)&&x(e,{start:C,end:g})},S={onDayClick:e=>{if(!C||T||D(e,C))v({startDate:e,endDate:void 0});else{const t={startDate:C,endDate:e};a(t),v(t)}p(e)},onDayHover:e=>{C&&!T&&(g&&M(e,g)||p(e))},onMonthNavigate:(e,t)=>{if(e===tt.FIRST_MONTH){const e=(0,I.A)(w,t);D(e,y)&&b(e)}else{const e=(0,I.A)(y,t);D(w,e)&&A(e)}}};return n?r.createElement(nt,{dateRange:m,minDate:c,maxDate:d,ranges:s,firstMonth:w,secondMonth:y,setFirstMonth:e=>{D(e,y)&&b(e)},setSecondMonth:e=>{Le(e,w)&&A(e)},setDateRange:e=>{let{startDate:n,endDate:r}=e;if(n&&r)e.startDate=n=q([n,c]),e.endDate=r=z([r,d]),v(e),a(e),b(n),A(L(n,r)?(0,I.A)(n,1):r);else{const e={};v(e),a(e),b(t),A((0,I.A)(w,1))}},helpers:k,handlers:S,locale:l}):null},at=e=>{const{closeOnClickOutside:t,wrapperClassName:n,toggle:a,open:i}=e,o=()=>{!1!==t&&a()};return r.createElement(l.A,{sx:{position:"relative"}},i&&r.createElement(l.A,{sx:{position:"fixed",height:"100vh",width:"100vw",bottom:0,zIndex:0,right:0,left:0,top:0},onKeyPress:e=>"Escape"===(null===e||void 0===e?void 0:e.key)&&o(),onClick:o}),r.createElement(l.A,{sx:{position:"relative",zIndex:1},className:n},r.createElement(rt,Object.assign({},e))))},it=e=>r.createElement(at,Object.assign({},e))},56712:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(66922),a=n(98889),i=n(78397);function o(e,t){(0,i.A)(2,arguments);var n=(0,a.A)(e),o=(0,r.A)(t);return isNaN(o)?new Date(NaN):o?(n.setDate(n.getDate()+o),n):n}},57326:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(98889),a=n(78397);function i(e){(0,a.A)(1,arguments);var t=(0,r.A)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},62145:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var a=r(n(79526)),i=n(44414);t.A=(0,a.default)((0,i.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft")},66922:(e,t,n)=>{"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{A:()=>r})},78397:(e,t,n)=>{"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{A:()=>r})},80392:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var a=r(n(79526)),i=n(44414);t.A=(0,a.default)((0,i.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight")},81417:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(98889),a=n(66922),i=n(78397),o=n(83840);function u(e,t){var n,u,s,l,c,d,f,h;(0,i.A)(1,arguments);var m=(0,o.q)(),v=(0,a.A)(null!==(n=null!==(u=null!==(s=null!==(l=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==l?l:null===t||void 0===t||null===(c=t.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==s?s:m.weekStartsOn)&&void 0!==u?u:null===(f=m.locale)||void 0===f||null===(h=f.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,r.A)(e),p=g.getDay(),w=(p{"use strict";n.d(t,{A:()=>O});var r=n(57528),a=n(98587),i=n(58168),o=n(9950),u=n(72004),s=n(88283),l=n(3484);function c(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function d(e){return parseFloat(e)}var f=n(97497),h=n(59254),m=n(18463),v=n(45558),g=n(1614);function p(e){return(0,g.Ay)("MuiSkeleton",e)}(0,v.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var w,b,y,A,D=n(44414);const C=["animation","className","component","height","style","variant","width"];let T,M,x,k;const S=(0,s.i7)(T||(T=w||(w=(0,r.A)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"])))),N=(0,s.i7)(M||(M=b||(b=(0,r.A)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"])))),E=(0,h.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((e=>{let{theme:t,ownerState:n}=e;const r=c(t.shape.borderRadius)||"px",a=d(t.shape.borderRadius);return(0,i.A)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:(0,f.X4)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===n.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(a).concat(r,"/").concat(Math.round(a/.6*10)/10).concat(r),"&:empty:before":{content:'"\\00a0"'}},"circular"===n.variant&&{borderRadius:"50%"},"rounded"===n.variant&&{borderRadius:(t.vars||t).shape.borderRadius},n.hasChildren&&{"& > *":{visibility:"hidden"}},n.hasChildren&&!n.width&&{maxWidth:"fit-content"},n.hasChildren&&!n.height&&{height:"auto"})}),(e=>{let{ownerState:t}=e;return"pulse"===t.animation&&(0,s.AH)(x||(x=y||(y=(0,r.A)(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "]))),S)}),(e=>{let{ownerState:t,theme:n}=e;return"wave"===t.animation&&(0,s.AH)(k||(k=A||(A=(0,r.A)(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 2s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ",",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "]))),N,(n.vars||n).palette.action.hover)})),O=o.forwardRef((function(e,t){const n=(0,m.b)({props:e,name:"MuiSkeleton"}),{animation:r="pulse",className:o,component:s="span",height:c,style:d,variant:f="text",width:h}=n,v=(0,a.A)(n,C),g=(0,i.A)({},n,{animation:r,component:s,variant:f,hasChildren:Boolean(v.children)}),w=(e=>{const{classes:t,variant:n,animation:r,hasChildren:a,width:i,height:o}=e,u={root:["root",n,r,a&&"withChildren",a&&!i&&"fitContent",a&&!o&&"heightAuto"]};return(0,l.A)(u,p,t)})(g);return(0,D.jsx)(E,(0,i.A)({as:s,ref:t,className:(0,u.A)(w.root,o),ownerState:g},v,{style:(0,i.A)({width:h,height:c},d)}))}))},83840:(e,t,n)=>{"use strict";n.d(t,{q:()=>a});var r={};function a(){return r}},94289:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(98889),a=n(78397);function i(e){(0,a.A)(1,arguments);var t=(0,r.A)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},96600:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(83840),a=n(98889),i=n(66922),o=n(78397);function u(e,t){var n,u,s,l,c,d,f,h;(0,o.A)(1,arguments);var m=(0,r.q)(),v=(0,i.A)(null!==(n=null!==(u=null!==(s=null!==(l=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==l?l:null===t||void 0===t||null===(c=t.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==s?s:m.weekStartsOn)&&void 0!==u?u:null===(f=m.locale)||void 0===f||null===(h=f.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,a.A)(e),p=g.getDay(),w=6+(p{"use strict";n.d(t,{A:()=>i});var r=n(23235),a=n(44414);const i=(0,r.A)((0,a.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchOutlined")},98889:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82284),a=n(78397);function i(e){(0,a.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,r.A)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}}}]); \ No newline at end of file diff --git a/build/static/js/9863.29197136.chunk.js b/build/static/js/9863.29197136.chunk.js deleted file mode 100644 index 6b1c4f0..0000000 --- a/build/static/js/9863.29197136.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9863],{33092:(e,o,t)=>{t.d(o,{A:()=>S});var n=t(98587),a=t(58168),r=t(9950),i=t(72004),s=t(3484),c=t(99269),l=t(59254),d=t(18463),p=t(52472),u=t(83274),m=t(89548),h=t(45558),f=t(1614);function v(e){return(0,f.Ay)("MuiSpeedDialAction",e)}const b=(0,h.A)("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]);var A=t(44414);const g=["className","delay","FabProps","icon","id","open","TooltipClasses","tooltipOpen","tooltipPlacement","tooltipTitle"],w=(0,l.Ay)(p.A,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.fab,!t.open&&o.fabClosed]}})((e=>{let{theme:o,ownerState:t}=e;return(0,a.A)({margin:8,color:(o.vars||o).palette.text.secondary,backgroundColor:(o.vars||o).palette.background.paper,"&:hover":{backgroundColor:o.vars?o.vars.palette.SpeedDialAction.fabHoverBg:(0,c.tL)(o.palette.background.paper,.15)},transition:"".concat(o.transitions.create("transform",{duration:o.transitions.duration.shorter}),", opacity 0.8s"),opacity:1},!t.open&&{opacity:0,transform:"scale(0)"})})),y=(0,l.Ay)("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.staticTooltip,!t.open&&o.staticTooltipClosed,o["tooltipPlacement".concat((0,m.A)(t.tooltipPlacement))]]}})((e=>{let{theme:o,ownerState:t}=e;return{position:"relative",display:"flex",alignItems:"center",["& .".concat(b.staticTooltipLabel)]:(0,a.A)({transition:o.transitions.create(["transform","opacity"],{duration:o.transitions.duration.shorter}),opacity:1},!t.open&&{opacity:0,transform:"scale(0.5)"},"left"===t.tooltipPlacement&&{transformOrigin:"100% 50%",right:"100%",marginRight:8},"right"===t.tooltipPlacement&&{transformOrigin:"0% 50%",left:"100%",marginLeft:8})}})),x=(0,l.Ay)("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel",overridesResolver:(e,o)=>o.staticTooltipLabel})((e=>{let{theme:o}=e;return(0,a.A)({position:"absolute"},o.typography.body1,{backgroundColor:(o.vars||o).palette.background.paper,borderRadius:(o.vars||o).shape.borderRadius,boxShadow:(o.vars||o).shadows[1],color:(o.vars||o).palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"})})),S=r.forwardRef((function(e,o){const t=(0,d.b)({props:e,name:"MuiSpeedDialAction"}),{className:c,delay:l=0,FabProps:p={},icon:h,id:f,open:b,TooltipClasses:S,tooltipOpen:C=!1,tooltipPlacement:D="left",tooltipTitle:I}=t,R=(0,n.A)(t,g),M=(0,a.A)({},t,{tooltipPlacement:D}),z=(e=>{const{open:o,tooltipPlacement:t,classes:n}=e,a={fab:["fab",!o&&"fabClosed"],staticTooltip:["staticTooltip","tooltipPlacement".concat((0,m.A)(t)),!o&&"staticTooltipClosed"],staticTooltipLabel:["staticTooltipLabel"]};return(0,s.A)(a,v,n)})(M),[T,k]=r.useState(C),N={transitionDelay:"".concat(l,"ms")},E=(0,A.jsx)(w,(0,a.A)({size:"small",className:(0,i.A)(z.fab,c),tabIndex:-1,role:"menuitem",ownerState:M},p,{style:(0,a.A)({},N,p.style),children:h}));return C?(0,A.jsxs)(y,(0,a.A)({id:f,ref:o,className:z.staticTooltip,ownerState:M},R,{children:[(0,A.jsx)(x,{style:N,id:"".concat(f,"-label"),className:z.staticTooltipLabel,ownerState:M,children:I}),r.cloneElement(E,{"aria-labelledby":"".concat(f,"-label")})]})):(!b&&T&&k(!1),(0,A.jsx)(u.A,(0,a.A)({id:f,ref:o,title:I,placement:D,onClose:()=>{k(!1)},onOpen:()=>{k(!0)},open:b&&T,classes:S},R,{children:E})))}))},44070:(e,o,t)=>{t.d(o,{A:()=>c});var n=t(58168),a=t(9950);const r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};var i=t(61187),s=function(e,o){return a.createElement(i.A,(0,n.A)({},e,{ref:o,icon:r}))};const c=a.forwardRef(s)},47965:(e,o,t)=>{t.d(o,{A:()=>c});var n=t(58168),a=t(9950);const r={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M922.9 701.9H327.4l29.9-60.9 496.8-.9c16.8 0 31.2-12 34.2-28.6l68.8-385.1c1.8-10.1-.9-20.5-7.5-28.4a34.99 34.99 0 00-26.6-12.5l-632-2.1-5.4-25.4c-3.4-16.2-18-28-34.6-28H96.5a35.3 35.3 0 100 70.6h125.9L246 312.8l58.1 281.3-74.8 122.1a34.96 34.96 0 00-3 36.8c6 11.9 18.1 19.4 31.5 19.4h62.8a102.43 102.43 0 00-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7h161.1a102.43 102.43 0 00-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7H923c19.4 0 35.3-15.8 35.3-35.3a35.42 35.42 0 00-35.4-35.2zM305.7 253l575.8 1.9-56.4 315.8-452.3.8L305.7 253zm96.9 612.7c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 01-31.6 31.6zm325.1 0c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 01-31.6 31.6z"}}]},name:"shopping-cart",theme:"outlined"};var i=t(61187),s=function(e,o){return a.createElement(i.A,(0,n.A)({},e,{ref:o,icon:r}))};const c=a.forwardRef(s)},52472:(e,o,t)=>{t.d(o,{A:()=>w});var n=t(98587),a=t(58168),r=t(9950),i=t(72004),s=t(3484),c=t(24184),l=t(89548),d=t(18463),p=t(45558),u=t(1614);function m(e){return(0,u.Ay)("MuiFab",e)}const h=(0,p.A)("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]);var f=t(59254),v=t(19608),b=t(44414);const A=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],g=(0,f.Ay)(c.A,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>(0,v.A)(e)||"classes"===e,overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,o[t.variant],o["size".concat((0,l.A)(t.size))],"inherit"===t.color&&o.colorInherit,o[(0,l.A)(t.size)],o[t.color]]}})((e=>{let{theme:o,ownerState:t}=e;var n,r;return(0,a.A)({},o.typography.button,{minHeight:36,transition:o.transitions.create(["background-color","box-shadow","border-color"],{duration:o.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(o.vars||o).zIndex.fab,boxShadow:(o.vars||o).shadows[6],"&:active":{boxShadow:(o.vars||o).shadows[12]},color:o.vars?o.vars.palette.text.primary:null==(n=(r=o.palette).getContrastText)?void 0:n.call(r,o.palette.grey[300]),backgroundColor:(o.vars||o).palette.grey[300],"&:hover":{backgroundColor:(o.vars||o).palette.grey.A100,"@media (hover: none)":{backgroundColor:(o.vars||o).palette.grey[300]},textDecoration:"none"},["&.".concat(h.focusVisible)]:{boxShadow:(o.vars||o).shadows[6]}},"small"===t.size&&{width:40,height:40},"medium"===t.size&&{width:48,height:48},"extended"===t.variant&&{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},"extended"===t.variant&&"small"===t.size&&{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"extended"===t.variant&&"medium"===t.size&&{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40},"inherit"===t.color&&{color:"inherit"})}),(e=>{let{theme:o,ownerState:t}=e;return(0,a.A)({},"inherit"!==t.color&&"default"!==t.color&&null!=(o.vars||o).palette[t.color]&&{color:(o.vars||o).palette[t.color].contrastText,backgroundColor:(o.vars||o).palette[t.color].main,"&:hover":{backgroundColor:(o.vars||o).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(o.vars||o).palette[t.color].main}}})}),(e=>{let{theme:o}=e;return{["&.".concat(h.disabled)]:{color:(o.vars||o).palette.action.disabled,boxShadow:(o.vars||o).shadows[0],backgroundColor:(o.vars||o).palette.action.disabledBackground}}})),w=r.forwardRef((function(e,o){const t=(0,d.b)({props:e,name:"MuiFab"}),{children:r,className:c,color:p="default",component:u="button",disabled:h=!1,disableFocusRipple:f=!1,focusVisibleClassName:v,size:w="large",variant:y="circular"}=t,x=(0,n.A)(t,A),S=(0,a.A)({},t,{color:p,component:u,disabled:h,disableFocusRipple:f,size:w,variant:y}),C=(e=>{const{color:o,variant:t,classes:n,size:r}=e,i={root:["root",t,"size".concat((0,l.A)(r)),"inherit"===o?"colorInherit":o]},c=(0,s.A)(i,m,n);return(0,a.A)({},n,c)})(S);return(0,b.jsx)(g,(0,a.A)({className:(0,i.A)(C.root,c),component:u,disabled:h,focusRipple:!f,focusVisibleClassName:(0,i.A)(C.focusVisible,v),ownerState:S,ref:o},x,{classes:C,children:r}))}))},59382:(e,o,t)=>{t.d(o,{A:()=>k});var n=t(98587),a=t(58168),r=t(9950),i=t(72004),s=t(3484),c=t(38528);const l=function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(o,Math.min(e,t))};var d=t(59254),p=t(18463),u=t(14857),m=t(19489),h=t(52472),f=t(89548),v=t(36658),b=t(31506),A=t(48733),g=t(45558),w=t(1614);function y(e){return(0,w.Ay)("MuiSpeedDial",e)}const x=(0,g.A)("MuiSpeedDial",["root","fab","directionUp","directionDown","directionLeft","directionRight","actions","actionsClosed"]);var S=t(44414);const C=["ref"],D=["ariaLabel","FabProps","children","className","direction","hidden","icon","onBlur","onClose","onFocus","onKeyDown","onMouseEnter","onMouseLeave","onOpen","open","openIcon","TransitionComponent","transitionDuration","TransitionProps"],I=["ref"];function R(e){return"up"===e||"down"===e?"vertical":"right"===e||"left"===e?"horizontal":void 0}const M=(0,d.Ay)("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,o["direction".concat((0,f.A)(t.direction))]]}})((e=>{let{theme:o,ownerState:t}=e;return(0,a.A)({zIndex:(o.vars||o).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none"},"up"===t.direction&&{flexDirection:"column-reverse",["& .".concat(x.actions)]:{flexDirection:"column-reverse",marginBottom:-32,paddingBottom:48}},"down"===t.direction&&{flexDirection:"column",["& .".concat(x.actions)]:{flexDirection:"column",marginTop:-32,paddingTop:48}},"left"===t.direction&&{flexDirection:"row-reverse",["& .".concat(x.actions)]:{flexDirection:"row-reverse",marginRight:-32,paddingRight:48}},"right"===t.direction&&{flexDirection:"row",["& .".concat(x.actions)]:{flexDirection:"row",marginLeft:-32,paddingLeft:48}})})),z=(0,d.Ay)(h.A,{name:"MuiSpeedDial",slot:"Fab",overridesResolver:(e,o)=>o.fab})((()=>({pointerEvents:"auto"}))),T=(0,d.Ay)("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.actions,!t.open&&o.actionsClosed]}})((e=>{let{ownerState:o}=e;return(0,a.A)({display:"flex",pointerEvents:"auto"},!o.open&&{transition:"top 0s linear 0.2s",pointerEvents:"none"})})),k=r.forwardRef((function(e,o){const t=(0,p.b)({props:e,name:"MuiSpeedDial"}),d=(0,u.A)(),h={enter:d.transitions.duration.enteringScreen,exit:d.transitions.duration.leavingScreen},{ariaLabel:g,FabProps:{ref:w}={},children:x,className:k,direction:N="up",hidden:E=!1,icon:P,onBlur:F,onClose:L,onFocus:O,onKeyDown:j,onMouseEnter:H,onMouseLeave:V,onOpen:B,open:_,TransitionComponent:W=m.A,transitionDuration:K=h,TransitionProps:G}=t,U=(0,n.A)(t.FabProps,C),X=(0,n.A)(t,D),[q,J]=(0,A.A)({controlled:_,default:!1,name:"SpeedDial",state:"open"}),Q=(0,a.A)({},t,{open:q,direction:N}),Y=(e=>{const{classes:o,open:t,direction:n}=e,a={root:["root","direction".concat((0,f.A)(n))],fab:["fab"],actions:["actions",!t&&"actionsClosed"]};return(0,s.A)(a,y,o)})(Q),Z=(0,c.A)(),$=r.useRef(0),ee=r.useRef(),oe=r.useRef([]);oe.current=[oe.current[0]];const te=r.useCallback((e=>{oe.current[0]=e}),[]),ne=(0,b.A)(w,te),ae=(e,o)=>t=>{oe.current[e+1]=t,o&&o(t)};r.useEffect((()=>{q||($.current=0,ee.current=void 0)}),[q]);const re=e=>{"mouseleave"===e.type&&V&&V(e),"blur"===e.type&&F&&F(e),Z.clear(),"blur"===e.type?Z.start(0,(()=>{J(!1),L&&L(e,"blur")})):(J(!1),L&&L(e,"mouseLeave"))},ie=e=>{"mouseenter"===e.type&&H&&H(e),"focus"===e.type&&O&&O(e),Z.clear(),q||Z.start(0,(()=>{if(J(!0),B){B(e,{focus:"focus",mouseenter:"mouseEnter"}[e.type])}}))},se=g.replace(/^[^a-z]+|[^\w:.-]+/gi,""),ce=r.Children.toArray(x).filter((e=>r.isValidElement(e))),le=ce.map(((e,o)=>{const t=e.props,{FabProps:{ref:i}={},tooltipPlacement:s}=t,c=(0,n.A)(t.FabProps,I),l=s||("vertical"===R(N)?"left":"top");return r.cloneElement(e,{FabProps:(0,a.A)({},c,{ref:ae(o,i)}),delay:30*(q?o:ce.length-o),open:q,tooltipPlacement:l,id:"".concat(se,"-action-").concat(o)})}));return(0,S.jsxs)(M,(0,a.A)({className:(0,i.A)(Y.root,k),ref:o,role:"presentation",onKeyDown:e=>{j&&j(e);const o=e.key.replace("Arrow","").toLowerCase(),{current:t=o}=ee;if("Escape"===e.key)return J(!1),oe.current[0].focus(),void(L&&L(e,"escapeKeyDown"));if(R(o)===R(t)&&void 0!==R(o)){e.preventDefault();const n=o===t?1:-1,a=l($.current+n,0,oe.current.length-1);oe.current[a].focus(),$.current=a,ee.current=t}},onBlur:re,onFocus:ie,onMouseEnter:ie,onMouseLeave:re,ownerState:Q},X,{children:[(0,S.jsx)(W,(0,a.A)({in:!E,timeout:K,unmountOnExit:!0},G,{children:(0,S.jsx)(z,(0,a.A)({color:"primary","aria-label":g,"aria-haspopup":"true","aria-expanded":q,"aria-controls":"".concat(se,"-actions")},U,{onClick:e=>{U.onClick&&U.onClick(e),Z.clear(),q?(J(!1),L&&L(e,"toggle")):(J(!0),B&&B(e,"toggle"))},className:(0,i.A)(Y.fab,U.className),ref:ne,ownerState:Q,children:r.isValidElement(P)&&(0,v.A)(P,["SpeedDialIcon"])?r.cloneElement(P,{open:q}):P}))})),(0,S.jsx)(T,{id:"".concat(se,"-actions"),role:"menu","aria-orientation":R(N),className:(0,i.A)(Y.actions,!q&&Y.actionsClosed),ownerState:Q,children:le})]}))}))},79046:(e,o,t)=>{t.d(o,{A:()=>w});var n=t(98587),a=t(58168),r=t(9950),i=t(72004),s=t(3484),c=t(59254),l=t(18463),d=t(23235),p=t(44414);const u=(0,d.A)((0,p.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");var m=t(45558),h=t(1614);function f(e){return(0,h.Ay)("MuiSpeedDialIcon",e)}const v=(0,m.A)("MuiSpeedDialIcon",["root","icon","iconOpen","iconWithOpenIconOpen","openIcon","openIconOpen"]),b=["className","icon","open","openIcon"],A=(0,c.Ay)("span",{name:"MuiSpeedDialIcon",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{["& .".concat(v.icon)]:o.icon},{["& .".concat(v.icon)]:t.open&&o.iconOpen},{["& .".concat(v.icon)]:t.open&&t.openIcon&&o.iconWithOpenIconOpen},{["& .".concat(v.openIcon)]:o.openIcon},{["& .".concat(v.openIcon)]:t.open&&o.openIconOpen},o.root]}})((e=>{let{theme:o,ownerState:t}=e;return{height:24,["& .".concat(v.icon)]:(0,a.A)({transition:o.transitions.create(["transform","opacity"],{duration:o.transitions.duration.short})},t.open&&(0,a.A)({transform:"rotate(45deg)"},t.openIcon&&{opacity:0})),["& .".concat(v.openIcon)]:(0,a.A)({position:"absolute",transition:o.transitions.create(["transform","opacity"],{duration:o.transitions.duration.short}),opacity:0,transform:"rotate(-45deg)"},t.open&&{transform:"rotate(0deg)",opacity:1})}})),g=r.forwardRef((function(e,o){const t=(0,l.b)({props:e,name:"MuiSpeedDialIcon"}),{className:c,icon:d,openIcon:m}=t,h=(0,n.A)(t,b),v=t,g=(e=>{const{classes:o,open:t,openIcon:n}=e,a={root:["root"],icon:["icon",t&&"iconOpen",n&&t&&"iconWithOpenIconOpen"],openIcon:["openIcon",t&&"openIconOpen"]};return(0,s.A)(a,f,o)})(v);function w(e,o){return r.isValidElement(e)?r.cloneElement(e,{className:o}):e}return(0,p.jsxs)(A,(0,a.A)({className:(0,i.A)(g.root,c),ref:o,ownerState:v},h,{children:[m?w(m,g.openIcon):null,d?w(d,g.icon):(0,p.jsx)(u,{className:g.icon})]}))}));g.muiName="SpeedDialIcon";const w=g}}]); \ No newline at end of file diff --git a/build/static/js/9912.8ae215bb.chunk.js b/build/static/js/9912.8ae215bb.chunk.js deleted file mode 100644 index e81e77d..0000000 --- a/build/static/js/9912.8ae215bb.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9912],{8457:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALEAAABFCAYAAAAFKgfKAAAQE0lEQVR4Ae2dS4wcRxmA/6p5GLxEHiuHRILgtpx1wslrDjwuZDdcAduckTyrxOsIFNl7Q1HsnbVz4YC8IQoku4685sjFNnCMtGMuICTkzQWIdy23RZDgABlAgL0zXcX/Vz+mp6cf1Y/ZJUl90u70zHTXdNf8/df/qhoAg8FgMBgMBoPBYDAYDIa9hEEJ2lan1WzWzoGUbXxqSYAeNrkJIK+vbV1cB4NhFygsxO1nO1bT4Ru4aSXsYu/0xdy63bHBYJgghYQ4KsCkgTnATSlZC5icgaFg9ySIubWtziYYDBOCQ07GBFjI16f64vDbWxfnV7cvnOI1MYfmxbK3e4sB30CzwwKDYULk1sRnpy9dQ83bVk9QWFe3lzpx+y08vdwBxpa8p2RaHEfTogcGQ8XU8ux8ZrrTRrnv0DZK/zoK8GLSvr/7e7f7xYOzBxljX8GnrRqHR/QaGAwVk8ucQNMg0KysL5az9u87skP7ugezcxTNAIOhYrSF2NXCnsMm5fW3NKIOZD44QvjautWss/NgMFSMthCHtXCSHRzHO/c6N934MTXCToPBUDFaQvzi051ZCGlhyAmT8nVv0/LaMhgqQ0uIa4wHGpQP5DrkhNeHxzDJToLBUCGZQkxxYT+kRhGJtwpk4N76ozrG9j7xOTAYKiRTiBsOzPrbAyFuQUEwKaKOZcBmTJTCUCU8e4eab0rY5KRBUbgMUs+12vDGMBjKkirErikhZ2kbTYkulAAFtxtsM26BwVARqUJclSlBkF3sh9oYg2NgMFREqhBzWTvhb5cyJTzQHrbpEYV5FgyGiqinvSndskoMDbMuVACTYEsG1GbLywBSyM3Cz7lpyjUNRUkUYhSyoC6YgSxsSrxw5PJJzuU1tKlbknSwC5VoXgO38d7a1lJn4Ujn5GoF2t7wySMQYhK2GpdX4nZC7bm0cPTSc6t3L56CnHDukMAmhtRQy29SyI1xTqaLlhC/hA6ncPj9kXa8wvxHfbGsM5skWiq6unXxMG2QM7tvwM/hNVNSxoISCCnmrm53uknvt1FRNIHfiH4OXQtjbGX17oXUIquz05c3fMe7HGpKWXfH7bsejZKBkkGwb0pNY/NRteiidkVKOUtKDUrQGHDrzfuvPqDtwCZmTFrgdmb4z32PPlDCyYVnLpUq4Hnq2SeC7W++7OY8OJN2va5MjFK4mh7azQa/440ihaCCfxRguk4LJkycABNuf8vO7qXoldl4vtkcCm7VBJMppDxZVoCj8OGGDBre/9in1N8YApbyJirI5qXHxz97AL7e/nLw+jde/hoc/dIhvCaJdxOfEUwehGooPJuERiPYBeElRqoCE2DDkWJ3QEU1qUSUF+myYAIMbWI2/IDTP/gW/OS7P1Pbz6PgffD7v8Dd3yrN3fLu1txmxeOfG++bp77wBLz/mwc2amNLSjgEBRESFrlyQoMquRZqZBLkXBNVyfQJB2wcIU5hOLDwbJTPDCDWWSWtxBweFlCbSlbps6i2hHF2jl7EaM7smelLbb2Z4/K2kKp+OxccFQh+UGBGTrH6gR0YQNUoZRYySsr27Zv3Lz7wt+vDD+EHMEqAGrOl/nyeQW35eTQDPCFWdysNc2m2Xhwf/OGv8NQrT8JXv30MhfdJ9drmu3fR3hY2flkW/pXQAGJzdauzgnauHbJzrWaD3fAEuVBnvTMhR3MfCrAMaSUJ4hR+lhJ4PN/NJmfkH6j38Xu/gq/dzLoG7L/7V7eXupAT9C9s9C+uwO5iV9m3YU2shOi//3oYvEQmBWnLX/zoVyMHccavYcdqzZlDDdvCOw7+88+H8GPU7mRGYIfDD7/zU/jbn0cOt6AkVOd85shyy9dkeFEzjQajL2geCkDzCaEE6GQuRvtIZUEdb44ieNO8QuFFz7FaDjlW/mSCTtpnoYM3o5zVnEiHjYyA/5aDfzRg4rTK9i1NTPa3AyGWnrFNwvbLN27DhVsL8OnH9sGfUIP++sZ70TZQy6nhcDHrwxgfGvEktNe///OR9/c59fv9mjNL2987/Noh3+Msytq9pfNnp5ePSRyK1eej3CwcvWxnefpxBBNiC4JDcwdgdMj0tHBA3DQvjJmv4zWc9q/Bm9q1nm4aMTILcju04XOhfIB3E8GEaZXtWwgppsAAxDvZ8rc3330fLp9YhVeefyOwjWM4X4X3THe+AKa+6J36oBLn7lFfks1uBy+grVg2slIF5MyNfHlSLieVtjrDZQ8I8kUmOuSTANcGTqERa68Z2sQFwh46ZoVvayfh3fk9dT8JTpqkdOaO2kRbb06EVygScGXh6Gsfrt59VXtmCg31UAK6QUfbG3Hm0B9g5xamL+lN2cr0ReRtVETrSYe7jtVotIMcYsZEd6oP9sruLqfQY5o5AR2UELvJAyhCtlnBUm8O1XFC1HqYaKHCoMrCO1RwhDcHamS+EdygUqzga+/pprjDdldZ4kJq3nlpX7MXcuvGvoeO3erW0nra8QtPX+qFIxEck1ioXroru78eSK/KvlVC7DgUWy0MmRW38kYrCNQcNj1iaMtWkWo5NGmqgIQVhQdvsKGTRDFkDFst4vUekhnHv4Cp8DJhoAGG2GhUiAmpFSJfyG2c1e2LFMFphTSy1x+d1KXGquiHyEutsqao37e0rYTYjyAUhTMVATgOeZFcnUStBj0aCThnB6BiyEnCL84a/eLgWpYAq/PiKqNWmHpdzOFDNxpSI1tYYJpXtx3G+A1/NNENuSVBERzsD0gTZH9k9CnbD1OMW49A9EIlky00RTegBFNuTXpYiGu0ECAUh6nwTtxUfpk2XHKhbEYa+tE2RLNV5vaudYj54mLp9+FmswG0jwUVEQ2pQc4lDwg0A5ZDZoBWyC2NLEF2HKeLgmtDhf0wGIj1BpqeVaecCXVzeHUTyTANI9wNA1njb8jEk+aSfRh6qpIeMCHoi8OkwjxLKSsl7aYWRAR5XULx4TPMvogZQYkNyAmZARCOtiT2dZ428UaKREA8QZ4J98PI55aA2qzVxPEq+9ZHGRGRiq4xdmricMZaxAq0cbtrW0tz4ddQw95POo68f9/AX5i+fIcKUXb64qBZeNCQB9dMYenCuY7DvZAi05skx6N4PFaojEqjUd0QZvhk4JoTGMtN2cemfyr6oGNWuJVuVugVCzSQwhti3FixwaCNr4nTitbtYGcuFjXsmVajwfLnxb0p/Zn2ucEQwY1OaHqMKoow6inH4psVq+8rh0SLYcKDFS7J3Auo/vZT2H+DevaIUx+AnWcFpZe8ES2pbaamdo3Hd/Ock855UXtk5lEoFgqAMV07WvdRts3wtXtCLK2kMDHNvAg/J0/57PTyiaA4JQkyK57t3ISUTGC4EL7RcDYxTawVZvOmJ8U6mnhDrq+VyAZhMoHmA7Zj3rJ5X8z5X7abgaudZiBnBegtaicaytHFc6QIibOYJID0i1SY+DkvPOWS1LY3gTdwpBeOXl7yf8lK95xC52WjJlkMz3Ok8GDDqV1j/tojBXMJzbqKgnSqbDN87a5NDGnmBM28GCVSnJJEq+mw9CC5GNri/roUOmE22tcNAY2Hf0gAzxQs89MVYPzCr1CpJCs4v42Ow+PvRJ1gNYWnwe9QwVLeeOrC0Us3wC2Kt6AYFtqL18IzOygixSqZwzeEQo5Vt8lJq6XvwsZsYHLy6AdnIBOWy0nz1qVoUUlm1r5VC7KuAHtTmApGYCJEpnt5MWULcqJSuFJNbC0LJlJ4mzY8ubCgYnCEqOI8R6hn1U04Uthxr9NPGTQ4O11tBobCbGxmhyvhXM/amwTZrVYjjT96w3iCDDqmRbIAy839fTkXLpBBg2cWYLTH1ExryTYhA8nGNFDLW5fuptfO7NgxqW27zjBPMu3wOJbiiMecD6Qlp3TajEOwoQzFykuBNv1rJ+pZdRNJhR9eCWW4uKY8ErWqOhf99DMJMk1BwnTxRhFBThJgsrmmBuJUtMKLc35MgozsK069rVEAdebI8spw1olLZF06K3oM/bxakSozlUjavjCf93wywJT5hfw1MhmUbbPOWNaM2+Q7ZGwGQk6i4TTUDJR6JtWSa602L8N3/MXp5XUOoz+pkCbISQKMzuX1q9sX21Ax8X2ZrvkKl0lK6L2UkZoWNYwE5SuZaVF2V0ac/SQYxv51FsShqUoCxG3QgNrccVQFm+2/hpqYp2rifj89d85qcl467D5UgxsrzmlL+1zdWmqjdulFtUucICdqYLT1r95bqsbm3UNo7QzZ4OnXESPA6LSr7+DhQ+g1xyfbqTJOBpohBe5GPaheJBSJsWF8sZg2Orpt0AHbbFK7R19r+xMcOM/QBFl1DGoVeL1oRSahG0bLuYuD5tjFnY8ryMsbdNefmb68EWsD43FrHwMBLoHdcFxFQt+7gPy/zxKDhb0/zCtI0AgIaCDFiu8U1zPqJmzQYGcgV5oNNYxbUALqOBWvxHb6NVXttQIFSCq9pCSMVI8xKijl11E/irjhSk1nSbIek+I2c+RKOOmhRrbpTpfJ2gldB14OV5IKYCFzk/IMNB0tV5tqBBjzk1q0RgY+9uppc+DCKec0SPgwzDNfoNB57CIYeqrUEZIrz7mQEBM7dbnecNg5zY6y6UaEjxH0i1VV3JTk90COuYYqWdPgH1bZJpFWDVmHiua1UewYnbxuTidv7LOFFA8w9UzC/BwUJPQj6rrXRgutbBRfaIXP4E2cvodU9uTp8XdYMcctCwYn8Jy6kJPwtJ8iU4iyAgVUr5w31Ux9JyE5FFwPT9UfO1jTC/UhJw9jtndKxY5VIZA63VaRlYZCAmzFvG3TP69DIufIZihMV0SQuaolyUjyJnwD6JVvQkmCqM7oB85wxnJPAfKnVNF22SlEcaADdyNL0GMOSnUlucyZck6DnDy0THI5eVEHLvzbHjxn6C5NgMlJoeVb6Q+jFAfjnRYSZKWRKxmdNLCLTLCNQtOq4P8bGyaAvyQCF0LMq/UHMLSkpu6QTRo4BPmHOncqjSysXbzfvFNgmEjbpMgSYHJSwq/R870UZOrjIlOV4lAjh8xejWnPkJVEOSJtsmCybD1pYbfzJb5EIeWi7lD2qDY4jA+Bxg/bYeTVkjBlDe95BdiHXkc7/tC4HV/ctEhDRQyUsyxuTaEjWeV6D57X38U+wxAjPxbjze8FFH69XnHUR7W5fyACR1wzap0f3ZSmFDC/ds9dR4EEOGqH0RKgaSsopgkwpY7Xti/MQQquN8024ouV5OZOX44Ictzq7Fkrwhsmi27JaW6oQEjmKOogYaJlsbynNpk4+/viYFEBJgGcGjiZwzUJKAlqvAm06zayoQATE2JXe4lFyKju8usnGg33NzIo7YvCe/wqDo9pw22WAEerz7LO1QjyR5eJCTFBQW2qUOI1cZjMgrh1DPyYIYPaOT/tu1LCBs4rwD5GkD+61GEX8CIO9KdMA++HYWYo9Qj+cklS3NJxACYhwD5q3TRV1snujLfvOnv5ir4MBoPBYDAYDAaDwWAwZPI/iTTgFxK8/KcAAAAASUVORK5CYII="},39912:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>z});var n=r(9950),o=r(28429),i=r(14857),a=r(47223),s=r(8457),c=r(26910),l=r(4159),u=r.n(l),d=(r(52351),r(8881)),f=r(58168);const p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M732 120c0-4.4-3.6-8-8-8H300c-4.4 0-8 3.6-8 8v148h440V120zm120 212H172c-44.2 0-80 35.8-80 80v328c0 17.7 14.3 32 32 32h168v132c0 4.4 3.6 8 8 8h424c4.4 0 8-3.6 8-8V772h168c17.7 0 32-14.3 32-32V412c0-44.2-35.8-80-80-80zM664 844H360V568h304v276zm164-360c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-40c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v40z"}}]},name:"printer",theme:"filled"};var h=r(61187),y=function(e,t){return n.createElement(h.A,(0,f.A)({},e,{ref:t,icon:p}))};const m=n.forwardRef(y);var g=r(45418),b=r.n(g),v=r(43302),x=r(93230),A=r(83274),w=r(25333),j=r(82053),C=r(25277),_=r(10226),P=r(16491),S=r(60899),T=r(1320),O=r(15769),D=r(69780),E=r(9213),k=r(21671),M=r(34075),R=r(74745),Y=r(96583),N=r(40033),F=r(28170),I=r(29925),q=r(79739),U=r(44414);const z=()=>{const[e,t]=(0,n.useState)({}),r=(0,o.zy)(),l=(0,o.Zp)();console.log("previewSelect",r.state);const f=(0,n.useRef)(null),[p,h]=(0,n.useState)(!0),[y,g]=(0,n.useState)(!1),[z,B]=(0,n.useState)(""),[G,L]=(0,n.useState)(""),V=(0,i.A)(),J=(0,a.A)(V.breakpoints.down("md"));function Q(e){return new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",minimumFractionDigits:2}).format(e)}(0,n.useEffect)((()=>{t(r.state)}),[]);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(x.A,{direction:{xs:"column",md:"row"},justifyContent:"Space-between",alignItems:{xs:"stretch",md:"center"},spacing:2,sx:{px:{xs:1.5,md:2.5},py:1,bgcolor:"#eeeeee"},children:[(0,U.jsxs)(x.A,{direction:"row",alignItems:"center",spacing:2,children:[(0,U.jsx)(A.A,{title:"back",children:(0,U.jsx)(w.A,{color:"primary",onClick:()=>{l("/nearle/invoice")},children:(0,U.jsx)(v.QVr,{size:"large"})})}),(0,U.jsxs)(x.A,{alignItems:"center",children:[(0,U.jsx)(j.A,{variant:"h3",color:"primary",children:"Invoice Details"}),(0,U.jsx)(C.A,{size:"small",color:"warning",variant:"outlined",sx:{bgcolor:V.palette.warning.lighter},label:"Invoice No :".concat("\xa0\xa0",e.invoiceno)})]})]}),(0,U.jsxs)(x.A,{direction:{xs:"column",sm:"row"},spacing:2,sx:{width:{xs:"100%",md:"auto"}},children:[(0,U.jsxs)(_.A,{variant:"outlined",color:"primary",fullWidth:J,sx:{"&:hover":{backgroundColor:"primary.main",color:"primary.contrastText"}},onClick:()=>{g(!0)},children:[" ",(0,U.jsx)(v.jtd,{}),"Update Payment"]}),(0,U.jsx)(b(),{trigger:()=>(0,U.jsx)(_.A,{size:"small",startIcon:(0,U.jsx)(m,{}),variant:"outlined",color:"primary",fullWidth:J,sx:{"&:hover":{backgroundColor:"primary.main",color:"primary.contrastText"}},children:"Print"}),content:()=>f.current})]})]}),(0,U.jsx)(P.A,{sx:{pb:2.5,border:"1px solid #eee",overflowX:{xs:"auto",md:"visible"}},children:(0,U.jsxs)("div",{ref:f,style:{width:"100%",minWidth:720},children:[(0,U.jsxs)(P.A,{id:"print",sx:{p:2.5},children:[(0,U.jsxs)(P.A,{sx:{pb:2.5},children:[(0,U.jsxs)(x.A,{sx:{flexDirection:"row",border:"1px solid #eee",px:3},justifyContent:"space-between",children:[(0,U.jsxs)(P.A,{sx:{pt:.5},children:[(0,U.jsxs)(x.A,{direction:"row",spacing:2,children:[(0,U.jsx)("img",{src:s,style:{width:"150px",height:"50px"}})," "]}),(0,U.jsxs)(x.A,{direction:"row",justifyContent:"space-between",children:[(0,U.jsx)(j.A,{sx:{overflow:"hidden",color:V.palette.primary.main},variant:"subtitle1",children:"Invoice No :"}),(0,U.jsx)(j.A,{sx:{color:V.palette.primary.main},children:"\xa0\xa0".concat(e.invoiceno)})]})]}),(0,U.jsxs)(P.A,{sx:{pt:2.5,pb:1.75},children:[(0,U.jsxs)(x.A,{direction:"row",justifyContent:"space-between",children:[(0,U.jsxs)(j.A,{sx:{pl:4,color:V.palette.primary.main},variant:"subtitle1",children:["Date :"," "]}),(0,U.jsx)(j.A,{sx:{color:V.palette.primary.main},children:u()(e.transactiondate).format("DD-MM-YYYY")})]}),(0,U.jsxs)(x.A,{direction:"row",justifyContent:"space-between",children:[(0,U.jsx)(j.A,{sx:{pr:2,overflow:"hidden",color:V.palette.primary.main},variant:"subtitle1",children:"Due Date :"}),(0,U.jsx)(j.A,{sx:{color:V.palette.primary.main},children:u()(e.dueDate).format("DD-MM-YYYY")})]})]})]}),(0,U.jsx)(P.A,{sx:{pt:2.5},children:(0,U.jsxs)(S.Ay,{container:!0,spacing:2,justifyContent:"space-between",direction:"row",children:[(0,U.jsx)(S.Ay,{item:!0,xs:12,sm:6,children:(0,U.jsx)(P.A,{sx:{border:1,minHeight:240,borderColor:"grey.200",borderRadius:.5,p:2.5},children:(0,U.jsx)(S.Ay,{container:!0,direction:"row",children:(0,U.jsx)(S.Ay,{item:!0,md:8,children:(0,U.jsxs)(x.A,{spacing:2,children:[(0,U.jsx)(j.A,{variant:"h5",children:"From:"}),(0,U.jsxs)(x.A,{sx:{width:"100%"},children:[(0,U.jsx)(j.A,{variant:"subtitle1",children:"Nearle Technology Privite Limited."}),(0,U.jsxs)(j.A,{color:"secondary",children:["424, 4",(0,U.jsx)("sup",{children:"th"}),"floor,"]}),(0,U.jsx)(j.A,{color:"secondary",children:"Red rose towers,"}),(0,U.jsx)(j.A,{color:"secondary",children:"DB Road, RS Puram,"}),(0,U.jsx)(j.A,{color:"secondary",children:"641002."}),(0,U.jsx)(j.A,{color:"secondary",children:"care@nearle.in"}),(0,U.jsx)(j.A,{color:"secondary",children:"9047968666"})]})]})})})})}),(0,U.jsx)(S.Ay,{item:!0,xs:12,sm:6,children:(0,U.jsx)(P.A,{sx:{border:1,minHeight:240,borderColor:"grey.200",borderRadius:.5,p:2.5},children:(0,U.jsx)(S.Ay,{container:!0,direction:"row",children:(0,U.jsx)(S.Ay,{item:!0,md:8,children:(0,U.jsxs)(x.A,{spacing:2,children:[(0,U.jsx)(j.A,{variant:"h5",children:"To:"}),(0,U.jsxs)(x.A,{sx:{width:"100%"},children:[(0,U.jsx)(j.A,{variant:"subtitle1",children:e.tenantname}),(0,U.jsx)(j.A,{color:"secondary",children:e.address}),(0,U.jsx)(j.A,{color:"secondary",children:e.suburb}),(0,U.jsx)(j.A,{color:"secondary",children:e.city}),(0,U.jsx)(j.A,{color:"secondary",children:e.state})," "]})]})})})})})]})})]}),(0,U.jsx)(T.A,{children:(0,U.jsxs)(O.A,{children:[(0,U.jsx)(D.A,{children:(0,U.jsxs)(E.A,{children:[(0,U.jsx)(k.A,{children:"S.No"}),(0,U.jsx)(k.A,{children:"Particulars"}),(0,U.jsx)(k.A,{children:"Unit"}),(0,U.jsx)(k.A,{children:"Quantity"}),(0,U.jsx)(k.A,{align:"right",children:"Rate"}),(0,U.jsx)(k.A,{align:"right",children:"Other Charges"}),(0,U.jsx)(k.A,{align:"right",children:"Amount"})]})}),e.tenantsalesdetails&&(0,U.jsx)(M.A,{children:(0,U.jsxs)(E.A,{children:[(0,U.jsx)(k.A,{children:"1"}),(0,U.jsx)(k.A,{children:(0,U.jsx)(j.A,{children:"Invoice from ".concat(u()(e.tenantsalesdetails[0].fromdate).format("DD-MM-YYYY")," to ").concat(u()(e.tenantsalesdetails[0].todate).format("DD-MM-YYYY"))})}),(0,U.jsx)(k.A,{children:(0,U.jsx)(j.A,{children:e.tenantsalesdetails[0].pricingtype})}),(0,U.jsx)(k.A,{children:(0,U.jsx)(j.A,{children:"".concat(e.tenantsalesdetails[0].quantity.toFixed(2)," km")})}),(0,U.jsx)(k.A,{children:(0,U.jsx)(j.A,{align:"right",children:"\u20b9 ".concat(e.tenantsalesdetails[0].baserate.toFixed(2))})}),(0,U.jsx)(k.A,{align:"right",children:(0,U.jsx)(j.A,{children:"\u20b9 ".concat(e.tenantsalesdetails[0].othercharges,".00")})}),(0,U.jsx)(k.A,{align:"right",children:(0,U.jsx)(j.A,{children:"\u20b9 ".concat(e.tenantsalesdetails[0].amount,".00")})})]})})]})}),(0,U.jsx)(R.A,{}),(0,U.jsx)(P.A,{sx:{p:2.5},children:(0,U.jsx)(S.Ay,{container:!0,direction:"row",justifyContent:"flex-end",children:(0,U.jsx)(S.Ay,{item:!0,md:4,children:(0,U.jsxs)(x.A,{spacing:2,children:[(0,U.jsxs)(x.A,{direction:"row",justifyContent:"space-between",children:[(0,U.jsx)(j.A,{color:"secondary",children:"Sub Total:"}),(0,U.jsx)(j.A,{variant:"h6",children:Q(e.salesamount)})]}),(0,U.jsxs)(x.A,{direction:"row",justifyContent:"space-between",children:[(0,U.jsx)(j.A,{color:"secondary",children:"Discount:"}),(0,U.jsxs)(j.A,{variant:"h6",color:V.palette.error.main,children:["- ",Q(e.discountamt)]})]}),(0,U.jsxs)(x.A,{direction:"row",justifyContent:"space-between",children:[(0,U.jsx)(j.A,{color:V.palette.grey[500],children:"Tax:"}),(0,U.jsxs)(j.A,{variant:"h6",color:V.palette.success.main,children:["+ ",Q(e.taxamount)]})]}),(0,U.jsxs)(x.A,{direction:"row",justifyContent:"space-between",children:[(0,U.jsx)(j.A,{sx:{pr:2},variant:"subtitle1",children:"Grand Total:"}),(0,U.jsx)(j.A,{variant:"h6",children:Q(Math.round(e.totalamount))})]})]})})})})]}),(0,U.jsx)(R.A,{}),(0,U.jsx)(P.A,{sx:{p:2.5},children:(0,U.jsxs)(j.A,{children:["Notes: ",e.remarks]})}),(0,U.jsx)(R.A,{})]})}),(0,U.jsxs)(Y.A,{open:y,onClose:()=>{g(!1)},maxWidth:"sm",fullWidth:!0,children:[(0,U.jsx)(N.A,{sx:{bgcolor:V.palette.primary.main},children:(0,U.jsxs)(x.A,{direction:"row",spacing:1,children:[(0,U.jsx)(j.A,{variant:"h2",sx:{color:"white"},children:"\u20b9"}),(0,U.jsx)(j.A,{variant:"h3",sx:{color:"white"},children:"Update Payment"})]})}),(0,U.jsxs)(F.A,{dividers:!0,children:[(0,U.jsxs)(x.A,{spacing:1,sx:{mb:2},children:[(0,U.jsx)(j.A,{children:"Reference No"}),(0,U.jsx)(I.A,{type:"number",placeholder:"Enter Reference Number",sx:{width:"100%"},onChange:e=>{B(e.target.value)}})]}),(0,U.jsxs)(x.A,{spacing:2,sx:{mb:2},children:[(0,U.jsx)(j.A,{children:"Remarks"}),(0,U.jsx)(I.A,{multiline:!0,required:!0,placeholder:"Enter Remarks",sx:{width:"100%"},onChange:e=>{L(e.target.value)}})]})]}),(0,U.jsxs)(q.A,{children:[(0,U.jsx)(_.A,{variant:"outlined",sx:{"&:hover":{backgroundColor:"primary.main",color:"primary.contrastText"},m:2},onClick:()=>{g(!1)},children:"Cancel"}),(0,U.jsx)(_.A,{variant:"outlined",disabled:""==z||""==G,sx:{"&:hover":{backgroundColor:"primary.main",color:"primary.contrastText"},m:2},onClick:()=>{g(!1),(async()=>{try{const t=await c.A.put("".concat("https://jupiter.nearle.app/live/api/v1","/invoice/updatestatus"),{salesid:e.salesid,referenceno:z,referencedate:u()().format("YYYY-MM-DD HH:mm:ss"),billstatus:2,paymentremarks:G});t.status&&(0,d.M8)(" Updated Successfully ",{variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:1e3}),console.log("updateResponse",t)}catch(t){console.log("updateResponse",t)}})(),l("/nearle/invoice")},children:"Update"})]})]})]})}},45418:function(e,t,r){var n,o;"undefined"!=typeof self&&self,e.exports=(n=r(9950),o=r(17119),function(){"use strict";var e={328:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.PrintContextConsumer=t.PrintContext=void 0;var n=r(496),o=Object.prototype.hasOwnProperty.call(n,"createContext");t.PrintContext=o?n.createContext({}):null,t.PrintContextConsumer=t.PrintContext?t.PrintContext.Consumer:function(){return null}},428:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.ReactToPrint=void 0;var n=r(316),o=r(496),i=r(190),a=r(328),s=r(940),c=function(e){function t(){var t=e.apply(this,n.__spreadArray([],n.__read(arguments),!1))||this;return t.startPrint=function(e){var r=t.props,n=r.onAfterPrint,o=r.onPrintError,i=r.print,a=r.documentTitle;setTimeout((function(){var r,s;if(e.contentWindow)if(e.contentWindow.focus(),i)i(e).then((function(){return null==n?void 0:n()})).then((function(){return t.handleRemoveIframe()})).catch((function(e){o?o("print",e):t.logMessages(["An error was thrown by the specified `print` function"])}));else{if(e.contentWindow.print){var c=null!==(s=null===(r=e.contentDocument)||void 0===r?void 0:r.title)&&void 0!==s?s:"",l=e.ownerDocument.title;a&&(e.ownerDocument.title=a,e.contentDocument&&(e.contentDocument.title=a)),e.contentWindow.print(),a&&(e.ownerDocument.title=l,e.contentDocument&&(e.contentDocument.title=c))}else t.logMessages(["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."]);null==n||n(),t.handleRemoveIframe()}else t.logMessages(["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/gregnb/react-to-print/issues/"])}),500)},t.triggerPrint=function(e){var r=t.props,n=r.onBeforePrint,o=r.onPrintError;if(n){var i=n();i&&"function"==typeof i.then?i.then((function(){t.startPrint(e)})).catch((function(e){o&&o("onBeforePrint",e)})):t.startPrint(e)}else t.startPrint(e)},t.handlePrint=function(e){var r=t.props,o=r.bodyClass,a=r.content,s=r.copyStyles,c=r.fonts,l=r.pageStyle,u=r.nonce,d="function"==typeof e?e():null;if(d&&"function"==typeof a&&t.logMessages(['"react-to-print" received a `content` prop and a content param passed the callback return by `useReactToPrint. The `content` prop will be ignored.'],"warning"),d||"function"!=typeof a||(d=a()),void 0!==d)if(null!==d){var f=document.createElement("iframe");f.width="".concat(document.documentElement.clientWidth,"px"),f.height="".concat(document.documentElement.clientHeight,"px"),f.style.position="absolute",f.style.top="-".concat(document.documentElement.clientHeight+100,"px"),f.style.left="-".concat(document.documentElement.clientWidth+100,"px"),f.id="printWindow",f.srcdoc="";var p=(0,i.findDOMNode)(d);if(p){var h=p.cloneNode(!0),y=h instanceof Text,m=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),g=y?[]:h.querySelectorAll("img"),b=y?[]:h.querySelectorAll("video"),v=c?c.length:0;t.numResourcesToLoad=m.length+g.length+b.length+v,t.resourcesLoaded=[],t.resourcesErrored=[];var x=function(e,r){t.resourcesLoaded.includes(e)?t.logMessages(["Tried to mark a resource that has already been handled",e],"debug"):(r?(t.logMessages(n.__spreadArray(['"react-to-print" was unable to load a resource but will continue attempting to print the page'],n.__read(r),!1)),t.resourcesErrored.push(e)):t.resourcesLoaded.push(e),t.resourcesLoaded.length+t.resourcesErrored.length===t.numResourcesToLoad&&t.triggerPrint(f))};f.onload=function(){var e,r,i,a;f.onload=null;var d=f.contentDocument||(null===(r=f.contentWindow)||void 0===r?void 0:r.document);if(d){d.body.appendChild(h),c&&((null===(i=f.contentDocument)||void 0===i?void 0:i.fonts)&&(null===(a=f.contentWindow)||void 0===a?void 0:a.FontFace)?c.forEach((function(e){var t=new FontFace(e.family,e.source,{weight:e.weight,style:e.style});f.contentDocument.fonts.add(t),t.loaded.then((function(){x(t)})).catch((function(e){x(t,["Failed loading the font:",t,"Load error:",e])}))})):(c.forEach((function(e){return x(e)})),t.logMessages(['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'])));var m="function"==typeof l?l():l;if("string"!=typeof m)t.logMessages(['"react-to-print" expected a "string" from `pageStyle` but received "'.concat(typeof m,'". Styles from `pageStyle` will not be applied.')]);else{var v=d.createElement("style");u&&(v.setAttribute("nonce",u),d.head.setAttribute("nonce",u)),v.appendChild(d.createTextNode(m)),d.head.appendChild(v)}if(o&&(e=d.body.classList).add.apply(e,n.__spreadArray([],n.__read(o.split(" ")),!1)),!y){for(var A=y?[]:p.querySelectorAll("canvas"),w=d.querySelectorAll("canvas"),j=0;j",t,"Error",i])},n.src=r}else x(t,['Found an tag with an empty "src" attribute. This prevents pre-loading it. The is:',t])};for(j=0;j=2?x(t):(t.onloadeddata=function(){return x(t)},t.onerror=function(e,r,n,o,i){return x(t,["Error loading video",t,"Error",i])},t.onstalled=function(){return x(t,["Loading video stalled, skipping",t])})};for(j=0;j tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The is:",n],"warning"),x(n);else{for(var l=d.createElement(n.tagName),f=(c=0,n.attributes.length);c tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the was not loaded. The is:",n],"warning"),x(n)},q=(j=0,F.length);j=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function c(e,t){return function(r,n){t(r,n,e)}}function l(e,t,r,n,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,c=n.kind,l="getter"===c?"get":"setter"===c?"set":"value",u=!t&&e?n.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),f=!1,p=r.length-1;p>=0;p--){var h={};for(var y in n)h[y]="access"===y?{}:n[y];for(var y in n.access)h.access[y]=n.access[y];h.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var m=(0,r[p])("accessor"===c?{get:d.get,set:d.set}:d[l],h);if("accessor"===c){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(s=a(m.get))&&(d.get=s),(s=a(m.set))&&(d.set=s),(s=a(m.init))&&o.unshift(s)}else(s=a(m))&&("field"===c?o.unshift(s):d[l]=s)}u&&Object.defineProperty(u,n.name,d),f=!0}function u(e,t,r){for(var n=arguments.length>2,o=0;o0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function x(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(r=o[e](t)).value instanceof j?Promise.resolve(r.value.v).then(c,l):u(i[0][2],r)}catch(e){u(i[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function _(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:j(e[n](t)),done:!1}:o?o(t):t}:o}}function P(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=b(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,o,(t=e[r](t)).done,t.value)}))}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var T=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&m(t,e,r);return T(t,e),t}function D(e){return e&&e.__esModule?e:{default:e}}function E(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function k(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function M(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function R(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if("function"!=typeof n)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var Y="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function N(e){function t(t){e.error=e.hasError?new Y(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var o=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(o).then(r,(function(e){return t(e),r()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}t.default={__extends:o,__assign:i,__rest:a,__decorate:s,__param:c,__metadata:p,__awaiter:h,__generator:y,__createBinding:m,__exportStar:g,__values:b,__read:v,__spread:x,__spreadArrays:A,__spreadArray:w,__await:j,__asyncGenerator:C,__asyncDelegator:_,__asyncValues:P,__makeTemplateObject:S,__importStar:O,__importDefault:D,__classPrivateFieldGet:E,__classPrivateFieldSet:k,__classPrivateFieldIn:M,__addDisposableResource:R,__disposeResources:N}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.useReactToPrint=e.ReactToPrint=e.PrintContextConsumer=void 0;var t=r(328);Object.defineProperty(e,"PrintContextConsumer",{enumerable:!0,get:function(){return t.PrintContextConsumer}});var n=r(428);Object.defineProperty(e,"ReactToPrint",{enumerable:!0,get:function(){return n.ReactToPrint}});var o=r(892);Object.defineProperty(e,"useReactToPrint",{enumerable:!0,get:function(){return o.useReactToPrint}});var a=r(428);e.default=a.ReactToPrint}(),i}())},79739:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(98587),o=r(58168),i=r(9950),a=r(72004),s=r(3484),c=r(59254),l=r(18463),u=r(45558),d=r(1614);function f(e){return(0,d.Ay)("MuiDialogActions",e)}(0,u.A)("MuiDialogActions",["root","spacing"]);var p=r(44414);const h=["className","disableSpacing"],y=(0,c.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,o.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),m=i.forwardRef((function(e,t){const r=(0,l.b)({props:e,name:"MuiDialogActions"}),{className:i,disableSpacing:c=!1}=r,u=(0,n.A)(r,h),d=(0,o.A)({},r,{disableSpacing:c}),m=(e=>{const{classes:t,disableSpacing:r}=e,n={root:["root",!r&&"spacing"]};return(0,s.A)(n,f,t)})(d);return(0,p.jsx)(y,(0,o.A)({className:(0,a.A)(m.root,i),ownerState:d,ref:t},u))}))}}]); \ No newline at end of file diff --git a/build/static/js/9925.4a94ad25.chunk.js b/build/static/js/9925.4a94ad25.chunk.js deleted file mode 100644 index 133826c..0000000 --- a/build/static/js/9925.4a94ad25.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[9925],{19647:(e,r,o)=>{o.d(r,{A:()=>y});var t=o(98587),a=o(58168),n=o(9950),i=o(3484),l=o(72004),s=o(68624),d=o(39766),c=o(29277),u=o(44789),m=o(18463),p=o(89548),f=o(59254),A=o(19608),h=o(45558),v=o(1614);function b(e){return(0,v.Ay)("MuiInputLabel",e)}(0,h.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var x=o(44414);const g=["disableAnimation","margin","shrink","variant","className"],w=(0,f.Ay)(c.A,{shouldForwardProp:e=>(0,A.A)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:o}=e;return[{["& .".concat(u.A.asterisk)]:r.asterisk},r.root,o.formControl&&r.formControl,"small"===o.size&&r.sizeSmall,o.shrink&&r.shrink,!o.disableAnimation&&r.animated,o.focused&&r.focused,r[o.variant]]}})((e=>{let{theme:r,ownerState:o}=e;return(0,a.A)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},o.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===o.size&&{transform:"translate(0, 17px) scale(1)"},o.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!o.disableAnimation&&{transition:r.transitions.create(["color","transform","max-width"],{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut})},"filled"===o.variant&&(0,a.A)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===o.size&&{transform:"translate(12px, 13px) scale(1)"},o.shrink&&(0,a.A)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===o.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===o.variant&&(0,a.A)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===o.size&&{transform:"translate(14px, 9px) scale(1)"},o.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),y=n.forwardRef((function(e,r){const o=(0,m.b)({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:c,className:u}=o,f=(0,t.A)(o,g),A=(0,d.A)();let h=c;"undefined"===typeof h&&A&&(h=A.filled||A.focused||A.adornedStart);const v=(0,s.A)({props:o,muiFormControl:A,states:["size","variant","required","focused"]}),y=(0,a.A)({},o,{disableAnimation:n,formControl:A,shrink:h,size:v.size,variant:v.variant,required:v.required,focused:v.focused}),F=(e=>{const{classes:r,formControl:o,size:t,shrink:n,disableAnimation:l,variant:s,required:d}=e,c={root:["root",o&&"formControl",!l&&"animated",n&&"shrink",t&&"normal"!==t&&"size".concat((0,p.A)(t)),s],asterisk:[d&&"asterisk"]},u=(0,i.A)(c,b,r);return(0,a.A)({},r,u)})(y);return(0,x.jsx)(w,(0,a.A)({"data-shrink":h,ownerState:y,ref:r,className:(0,l.A)(F.root,u)},f,{classes:F}))}))},25979:(e,r,o)=>{o.d(r,{A:()=>g});var t=o(98587),a=o(58168),n=o(9950),i=o(72004),l=o(3484),s=o(18463),d=o(59254),c=o(43317),u=o(89548),m=o(36658),p=o(15866),f=o(45558),A=o(1614);function h(e){return(0,A.Ay)("MuiFormControl",e)}(0,f.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var v=o(44414);const b=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],x=(0,d.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:o}=e;return(0,a.A)({},r.root,r["margin".concat((0,u.A)(o.margin))],o.fullWidth&&r.fullWidth)}})((e=>{let{ownerState:r}=e;return(0,a.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===r.margin&&{marginTop:16,marginBottom:8},"dense"===r.margin&&{marginTop:8,marginBottom:4},r.fullWidth&&{width:"100%"})})),g=n.forwardRef((function(e,r){const o=(0,s.b)({props:e,name:"MuiFormControl"}),{children:d,className:f,color:A="primary",component:g="div",disabled:w=!1,error:y=!1,focused:F,fullWidth:S=!1,hiddenLabel:k=!1,margin:q="none",required:z=!1,size:R="medium",variant:C="outlined"}=o,M=(0,t.A)(o,b),W=(0,a.A)({},o,{color:A,component:g,disabled:w,error:y,fullWidth:S,hiddenLabel:k,margin:q,required:z,size:R,variant:C}),N=(e=>{const{classes:r,margin:o,fullWidth:t}=e,a={root:["root","none"!==o&&"margin".concat((0,u.A)(o)),t&&"fullWidth"]};return(0,l.A)(a,h,r)})(W),[L,T]=n.useState((()=>{let e=!1;return d&&n.Children.forEach(d,(r=>{if(!(0,m.A)(r,["Input","Select"]))return;const o=(0,m.A)(r,["Select"])?r.props.input:r;o&&(0,c.gr)(o.props)&&(e=!0)})),e})),[P,I]=n.useState((()=>{let e=!1;return d&&n.Children.forEach(d,(r=>{(0,m.A)(r,["Input","Select"])&&((0,c.lq)(r.props,!0)||(0,c.lq)(r.props.inputProps,!0))&&(e=!0)})),e})),[j,E]=n.useState(!1);w&&j&&E(!1);const B=void 0===F||w?j:F;let H;const O=n.useMemo((()=>({adornedStart:L,setAdornedStart:T,color:A,disabled:w,error:y,filled:P,focused:B,fullWidth:S,hiddenLabel:k,size:R,onBlur:()=>{E(!1)},onEmpty:()=>{I(!1)},onFilled:()=>{I(!0)},onFocus:()=>{E(!0)},registerEffect:H,required:z,variant:C})),[L,A,w,y,P,B,S,k,H,z,R,C]);return(0,v.jsx)(p.A.Provider,{value:O,children:(0,v.jsx)(x,(0,a.A)({as:g,ownerState:W,className:(0,i.A)(N.root,f),ref:r},M,{children:d}))})}))},29277:(e,r,o)=>{o.d(r,{A:()=>b});var t=o(98587),a=o(58168),n=o(9950),i=o(72004),l=o(3484),s=o(68624),d=o(39766),c=o(89548),u=o(18463),m=o(59254),p=o(44789),f=o(44414);const A=["children","className","color","component","disabled","error","filled","focused","required"],h=(0,m.Ay)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:o}=e;return(0,a.A)({},r.root,"secondary"===o.color&&r.colorSecondary,o.filled&&r.filled)}})((e=>{let{theme:r,ownerState:o}=e;return(0,a.A)({color:(r.vars||r).palette.text.secondary},r.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&.".concat(p.A.focused)]:{color:(r.vars||r).palette[o.color].main},["&.".concat(p.A.disabled)]:{color:(r.vars||r).palette.text.disabled},["&.".concat(p.A.error)]:{color:(r.vars||r).palette.error.main}})})),v=(0,m.Ay)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})((e=>{let{theme:r}=e;return{["&.".concat(p.A.error)]:{color:(r.vars||r).palette.error.main}}})),b=n.forwardRef((function(e,r){const o=(0,u.b)({props:e,name:"MuiFormLabel"}),{children:n,className:m,component:b="label"}=o,x=(0,t.A)(o,A),g=(0,d.A)(),w=(0,s.A)({props:o,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),y=(0,a.A)({},o,{color:w.color||"primary",component:b,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required}),F=(e=>{const{classes:r,color:o,focused:t,disabled:a,error:n,filled:i,required:s}=e,d={root:["root","color".concat((0,c.A)(o)),a&&"disabled",n&&"error",i&&"filled",t&&"focused",s&&"required"],asterisk:["asterisk",n&&"error"]};return(0,l.A)(d,p.Z,r)})(y);return(0,f.jsxs)(h,(0,a.A)({as:b,ownerState:y,className:(0,i.A)(F.root,m),ref:r},x,{children:[n,w.required&&(0,f.jsxs)(v,{ownerState:y,"aria-hidden":!0,className:F.asterisk,children:["\u2009","*"]})]}))}))},29925:(e,r,o)=>{o.d(r,{A:()=>L});var t=o(58168),a=o(98587),n=o(9950),i=o(72004),l=o(3484),s=o(95014),d=o(59254),c=o(18463),u=o(82321),m=o(85685),p=o(2660),f=o(19647),A=o(25979),h=o(68624),v=o(39766),b=o(89548),x=o(45558),g=o(1614);function w(e){return(0,g.Ay)("MuiFormHelperText",e)}const y=(0,x.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var F,S=o(44414);const k=["children","className","component","disabled","error","filled","focused","margin","required","variant"],q=(0,d.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:o}=e;return[r.root,o.size&&r["size".concat((0,b.A)(o.size))],o.contained&&r.contained,o.filled&&r.filled]}})((e=>{let{theme:r,ownerState:o}=e;return(0,t.A)({color:(r.vars||r).palette.text.secondary},r.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&.".concat(y.disabled)]:{color:(r.vars||r).palette.text.disabled},["&.".concat(y.error)]:{color:(r.vars||r).palette.error.main}},"small"===o.size&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})})),z=n.forwardRef((function(e,r){const o=(0,c.b)({props:e,name:"MuiFormHelperText"}),{children:n,className:s,component:d="p"}=o,u=(0,a.A)(o,k),m=(0,v.A)(),p=(0,h.A)({props:o,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),f=(0,t.A)({},o,{component:d,contained:"filled"===p.variant||"outlined"===p.variant,variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),A=(e=>{const{classes:r,contained:o,size:t,disabled:a,error:n,filled:i,focused:s,required:d}=e,c={root:["root",a&&"disabled",n&&"error",t&&"size".concat((0,b.A)(t)),o&&"contained",s&&"focused",i&&"filled",d&&"required"]};return(0,l.A)(c,w,r)})(f);return(0,S.jsx)(q,(0,t.A)({as:d,ownerState:f,className:(0,i.A)(A.root,s),ref:r},u,{children:" "===n?F||(F=(0,S.jsx)("span",{className:"notranslate",children:"\u200b"})):n}))}));var R=o(70006);function C(e){return(0,g.Ay)("MuiTextField",e)}(0,x.A)("MuiTextField",["root"]);const M=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],W={standard:u.A,filled:m.A,outlined:p.A},N=(0,d.Ay)(A.A,{name:"MuiTextField",slot:"Root",overridesResolver:(e,r)=>r.root})({}),L=n.forwardRef((function(e,r){const o=(0,c.b)({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:d=!1,children:u,className:m,color:p="primary",defaultValue:A,disabled:h=!1,error:v=!1,FormHelperTextProps:b,fullWidth:x=!1,helperText:g,id:w,InputLabelProps:y,inputProps:F,InputProps:k,inputRef:q,label:L,maxRows:T,minRows:P,multiline:I=!1,name:j,onBlur:E,onChange:B,onFocus:H,placeholder:O,required:_=!1,rows:V,select:D=!1,SelectProps:Z,type:G,value:J,variant:K="outlined"}=o,Q=(0,a.A)(o,M),U=(0,t.A)({},o,{autoFocus:d,color:p,disabled:h,error:v,fullWidth:x,multiline:I,required:_,select:D,variant:K}),X=(e=>{const{classes:r}=e;return(0,l.A)({root:["root"]},C,r)})(U);const Y={};"outlined"===K&&(y&&"undefined"!==typeof y.shrink&&(Y.notched=y.shrink),Y.label=L),D&&(Z&&Z.native||(Y.id=void 0),Y["aria-describedby"]=void 0);const $=(0,s.A)(w),ee=g&&$?"".concat($,"-helper-text"):void 0,re=L&&$?"".concat($,"-label"):void 0,oe=W[K],te=(0,S.jsx)(oe,(0,t.A)({"aria-describedby":ee,autoComplete:n,autoFocus:d,defaultValue:A,fullWidth:x,multiline:I,name:j,rows:V,maxRows:T,minRows:P,type:G,value:J,id:$,inputRef:q,onBlur:E,onChange:B,onFocus:H,placeholder:O,inputProps:F},Y,k));return(0,S.jsxs)(N,(0,t.A)({className:(0,i.A)(X.root,m),disabled:h,error:v,fullWidth:x,ref:r,required:_,color:p,variant:K,ownerState:U},Q,{children:[null!=L&&""!==L&&(0,S.jsx)(f.A,(0,t.A)({htmlFor:$,id:re},y,{children:L})),D?(0,S.jsx)(R.A,(0,t.A)({"aria-describedby":ee,id:$,labelId:re,value:J,input:te},Z,{children:u})):te,g&&(0,S.jsx)(z,(0,t.A)({id:ee},b,{children:g}))]}))}))},44789:(e,r,o)=>{o.d(r,{A:()=>i,Z:()=>n});var t=o(45558),a=o(1614);function n(e){return(0,a.Ay)("MuiFormLabel",e)}const i=(0,t.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"])}}]); \ No newline at end of file diff --git a/build/static/js/main.1e716c62.js b/build/static/js/main.1e716c62.js new file mode 100644 index 0000000..844dbcf --- /dev/null +++ b/build/static/js/main.1e716c62.js @@ -0,0 +1,2 @@ +/*! For license information please see main.1e716c62.js.LICENSE.txt */ +(()=>{var e={136:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,n))}},198:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(84849),o=n(27326),i=n(50359),a=n(2209),s=n(85672),l=n(23357);function c(e,t){var n=Object.create(null);return e&&s.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,s.isValidElement)(e)?t(e):e}(e)})),n}function u(e,t,n){return null!=n[t]?n[t]:e.props[t]}function d(e,t,n){var r=c(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(54930)},402:(e,t,n)=>{"use strict";function r(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}n.d(t,{A:()=>r})},769:(e,t,n)=>{"use strict";var r=n(39744);t.Ay=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=m,rootShouldForwardProp:r=h,slotShouldForwardProp:l=h}=e,u=e=>(0,c.default)((0,o.default)({},e,{theme:v((0,o.default)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:p,skipVariantsResolver:m,skipSx:w,overridesResolver:A=b(g(p))}=c,x=(0,i.default)(c,f),S=void 0!==m?m:p&&"Root"!==p&&"root"!==p||!1,E=w||!1;let k=h;"Root"===p||"root"===p?k=r:p?k=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(k=void 0);const C=(0,a.default)(e,(0,o.default)({shouldForwardProp:k,label:undefined},x)),O=e=>"function"===typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?r=>y(e,(0,o.default)({},r,{theme:v({theme:r.theme,defaultTheme:n,themeId:t})})):e,T=function(r){let i=O(r);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l{const r=v((0,o.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[d]||!r.components[d].styleOverrides)return null;const i=r.components[d].styleOverrides,a={};return Object.entries(i).forEach((t=>{let[n,i]=t;a[n]=y(i,(0,o.default)({},e,{theme:r}))})),A(e,a)})),d&&!S&&c.push((e=>{var r;const i=v((0,o.default)({},e,{defaultTheme:n,themeId:t}));return y({variants:null==i||null==(r=i.components)||null==(r=r[d])?void 0:r.variants},(0,o.default)({},e,{theme:i}))})),E||c.push(u);const f=c.length-s.length;if(Array.isArray(r)&&f>0){const e=new Array(f).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const p=C(i,...c);return e.muiName&&(p.muiName=e.muiName),p};return C.withConfig&&(T.withConfig=C.withConfig),T}};var o=r(n(5136)),i=r(n(90275)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(91568)),s=n(78606),l=(r(n(298)),r(n(17702)),r(n(10938))),c=r(n(59701));const u=["ownerState"],d=["variants"],f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function h(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const m=(0,l.default)(),g=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function v(e){let{defaultTheme:t,theme:n,themeId:r}=e;return o=n,0===Object.keys(o).length?t:n[r]||n;var o}function b(e){return e?(t,n)=>n[e]:null}function y(e,t){let{ownerState:n}=t,r=(0,i.default)(t,u);const a="function"===typeof e?e((0,o.default)({ownerState:n},r)):e;if(Array.isArray(a))return a.flatMap((e=>y(e,(0,o.default)({ownerState:n},r))));if(a&&"object"===typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,i.default)(a,d);return e.forEach((e=>{let i=!0;"function"===typeof e.props?i=e.props((0,o.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,o.default)({ownerState:n},r,n)):e.style))})),t}return a}},1150:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var r=n(84849),o=n(27326),i=n(85672),a=n(72574),s=n(14794),l=n(2978),c=n(25234),u=n(60308),d=n(38009),f=n(74231),p=n(48502),h=n(69039),m=n(45688),g=n(37300),v=n(10644);function b(e){return(0,v.Ay)("MuiCollapse",e)}(0,g.A)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var y=n(65908);const w=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],A=(0,u.Ay)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.A)({height:0,overflow:"hidden",transition:t.transitions.create("height")},"horizontal"===n.orientation&&{height:"auto",width:0,transition:t.transitions.create("width")},"entered"===n.state&&(0,o.A)({height:"auto",overflow:"visible"},"horizontal"===n.orientation&&{width:"auto"}),"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&{visibility:"hidden"})})),x=(0,u.Ay)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((e=>{let{ownerState:t}=e;return(0,o.A)({display:"flex",width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),S=(0,u.Ay)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((e=>{let{ownerState:t}=e;return(0,o.A)({width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),E=i.forwardRef((function(e,t){const n=(0,d.b)({props:e,name:"MuiCollapse"}),{addEndListener:u,children:g,className:v,collapsedSize:E="0px",component:k,easing:C,in:O,onEnter:T,onEntered:R,onEntering:_,onExit:P,onExited:M,onExiting:I,orientation:j="vertical",style:L,timeout:N=f.p0.standard,TransitionComponent:B=s.Ay}=n,z=(0,r.A)(n,w),D=(0,o.A)({},n,{orientation:j,collapsedSize:E}),F=(e=>{const{orientation:t,classes:n}=e,r={root:["root","".concat(t)],entered:["entered"],hidden:["hidden"],wrapper:["wrapper","".concat(t)],wrapperInner:["wrapperInner","".concat(t)]};return(0,c.A)(r,b,n)})(D),H=(0,h.A)(),W=(0,l.A)(),U=i.useRef(null),V=i.useRef(),G="number"===typeof E?"".concat(E,"px"):E,q="horizontal"===j,K=q?"width":"height",X=i.useRef(null),Y=(0,m.A)(t,X),Q=e=>t=>{if(e){const n=X.current;void 0===t?e(n):e(n,t)}},Z=()=>U.current?U.current[q?"clientWidth":"clientHeight"]:0,J=Q(((e,t)=>{U.current&&q&&(U.current.style.position="absolute"),e.style[K]=G,T&&T(e,t)})),$=Q(((e,t)=>{const n=Z();U.current&&q&&(U.current.style.position="");const{duration:r,easing:o}=(0,p.c)({style:L,timeout:N,easing:C},{mode:"enter"});if("auto"===N){const t=H.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(t,"ms"),V.current=t}else e.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");e.style[K]="".concat(n,"px"),e.style.transitionTimingFunction=o,_&&_(e,t)})),ee=Q(((e,t)=>{e.style[K]="auto",R&&R(e,t)})),te=Q((e=>{e.style[K]="".concat(Z(),"px"),P&&P(e)})),ne=Q(M),re=Q((e=>{const t=Z(),{duration:n,easing:r}=(0,p.c)({style:L,timeout:N,easing:C},{mode:"exit"});if("auto"===N){const n=H.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(n,"ms"),V.current=n}else e.style.transitionDuration="string"===typeof n?n:"".concat(n,"ms");e.style[K]=G,e.style.transitionTimingFunction=r,I&&I(e)}));return(0,y.jsx)(B,(0,o.A)({in:O,onEnter:J,onEntered:ee,onEntering:$,onExit:te,onExited:ne,onExiting:re,addEndListener:e=>{"auto"===N&&W.start(V.current||0,e),u&&u(X.current,e)},nodeRef:X,timeout:"auto"===N?null:N},z,{children:(e,t)=>(0,y.jsx)(A,(0,o.A)({as:k,className:(0,a.A)(F.root,v,{entered:F.entered,exited:!O&&"0px"===G&&F.hidden}[e]),style:(0,o.A)({[q?"minWidth":"minHeight"]:G},L),ref:Y},t,{ownerState:(0,o.A)({},D,{state:e}),children:(0,y.jsx)(x,{ownerState:(0,o.A)({},D,{state:e}),className:F.wrapper,ref:U,children:(0,y.jsx)(S,{ownerState:(0,o.A)({},D,{state:e}),className:F.wrapperInner,children:g})})}))}))}));E.muiSupportAuto=!0;const k=E},1176:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,Q:()=>i});var r=n(27326),o=n(85672);function i(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function a(e){if(o.isValidElement(e)||!i(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=a(e[n])})),t}function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const l=n.clone?(0,r.A)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((r=>{o.isValidElement(t[r])?l[r]=t[r]:i(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&i(e[r])?l[r]=s(e[r],t[r],n):n.clone?l[r]=i(t[r])?a(t[r]):t[r]:l[r]=t[r]})),l}},1908:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},1939:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>C});var r=n(84849),o=n(27326),i=n(85672),a=n(72574),s=n(94216),l=n(41843),c=n(25234),u=n(60308),d=n(38009),f=n(69039);const p=i.createContext();var h=n(37300),m=n(10644);function g(e){return(0,m.Ay)("MuiGrid",e)}const v=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],b=(0,h.A)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>"spacing-xs-".concat(e))),...["column-reverse","column","row-reverse","row"].map((e=>"direction-xs-".concat(e))),...["nowrap","wrap-reverse","wrap"].map((e=>"wrap-xs-".concat(e))),...v.map((e=>"grid-xs-".concat(e))),...v.map((e=>"grid-sm-".concat(e))),...v.map((e=>"grid-md-".concat(e))),...v.map((e=>"grid-lg-".concat(e))),...v.map((e=>"grid-xl-".concat(e)))]);var y=n(65908);const w=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function A(e){const t=parseFloat(e);return"".concat(t).concat(String(e).replace(String(t),"")||"px")}function x(e){let{breakpoints:t,values:n}=e,r="";Object.keys(n).forEach((e=>{""===r&&0!==n[e]&&(r=e)}));const o=Object.keys(t).sort(((e,n)=>t[e]-t[n]));return o.slice(0,o.indexOf(r))}const S=(0,u.Ay)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[n["spacing-xs-".concat(String(e))]];const r=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&r.push(n["spacing-".concat(t,"-").concat(String(o))])})),r}(a,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t["grid-".concat(e,"-").concat(String(r))])})),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...u,"row"!==o&&t["direction-xs-".concat(String(o))],"wrap"!==s&&t["wrap-xs-".concat(String(s))],...d]}})((e=>{let{ownerState:t}=e;return(0,o.A)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})}),(function(e){let{theme:t,ownerState:n}=e;const r=(0,s.kW)({values:n.direction,breakpoints:t.breakpoints.values});return(0,s.NI)({theme:t},r,(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > .".concat(b.item)]={maxWidth:"none"}),t}))}),(function(e){let{theme:t,ownerState:n}=e;const{container:r,rowSpacing:o}=n;let i={};if(r&&0!==o){const e=(0,s.kW)({values:o,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=x({breakpoints:t.breakpoints.values,values:e})),i=(0,s.NI)({theme:t},e,((e,r)=>{var o;const i=t.spacing(e);return"0px"!==i?{marginTop:"-".concat(A(i)),["& > .".concat(b.item)]:{paddingTop:A(i)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,["& > .".concat(b.item)]:{paddingTop:0}}}))}return i}),(function(e){let{theme:t,ownerState:n}=e;const{container:r,columnSpacing:o}=n;let i={};if(r&&0!==o){const e=(0,s.kW)({values:o,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=x({breakpoints:t.breakpoints.values,values:e})),i=(0,s.NI)({theme:t},e,((e,r)=>{var o;const i=t.spacing(e);return"0px"!==i?{width:"calc(100% + ".concat(A(i),")"),marginLeft:"-".concat(A(i)),["& > .".concat(b.item)]:{paddingLeft:A(i)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,["& > .".concat(b.item)]:{paddingLeft:0}}}))}return i}),(function(e){let t,{theme:n,ownerState:r}=e;return n.breakpoints.keys.reduce(((e,i)=>{let a={};if(r[i]&&(t=r[i]),!t)return e;if(!0===t)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const l=(0,s.kW)({values:r.columns,breakpoints:n.breakpoints.values}),c="object"===typeof l?l[i]:l;if(void 0===c||null===c)return e;const u="".concat(Math.round(t/c*1e8)/1e6,"%");let d={};if(r.container&&r.item&&0!==r.columnSpacing){const e=n.spacing(r.columnSpacing);if("0px"!==e){const t="calc(".concat(u," + ").concat(A(e),")");d={flexBasis:t,maxWidth:t}}}a=(0,o.A)({flexBasis:u,flexGrow:0,maxWidth:u},d)}return 0===n.breakpoints.values[i]?Object.assign(e,a):e[n.breakpoints.up(i)]=a,e}),{})}));const E=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=function(e,t){if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return["spacing-xs-".concat(String(e))];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e="spacing-".concat(t,"-").concat(String(r));n.push(e)}})),n}(i,l));const d=[];l.forEach((t=>{const n=e[t];n&&d.push("grid-".concat(t,"-").concat(String(n)))}));const f={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...u,"row"!==r&&"direction-xs-".concat(String(r)),"wrap"!==a&&"wrap-xs-".concat(String(a)),...d]};return(0,c.A)(f,g,t)},k=i.forwardRef((function(e,t){const n=(0,d.b)({props:e,name:"MuiGrid"}),{breakpoints:s}=(0,f.A)(),c=(0,l.A)(n),{className:u,columns:h,columnSpacing:m,component:g="div",container:v=!1,direction:b="row",item:A=!1,rowSpacing:x,spacing:k=0,wrap:C="wrap",zeroMinWidth:O=!1}=c,T=(0,r.A)(c,w),R=x||k,_=m||k,P=i.useContext(p),M=v?h||12:P,I={},j=(0,o.A)({},T);s.keys.forEach((e=>{null!=T[e]&&(I[e]=T[e],delete j[e])}));const L=(0,o.A)({},c,{columns:M,container:v,direction:b,item:A,rowSpacing:R,columnSpacing:_,wrap:C,zeroMinWidth:O,spacing:k},I,{breakpoints:s.keys}),N=E(L);return(0,y.jsx)(p.Provider,{value:M,children:(0,y.jsx)(S,(0,o.A)({ownerState:L,className:(0,a.A)(N.root,u),as:g,ref:t},j))})}));const C=k},2209:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(34624);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.A)(e,t)}},2823:(e,t,n)=>{"use strict";var r=n(39744);t.A=void 0;var o=r(n(24956)),i=n(65908);t.A=(0,o.default)((0,i.jsx)("path",{d:"m17.27 6.73-4.24 10.13-1.32-3.42-.32-.83-.82-.32-3.43-1.33zM21 3 3 10.53v.98l6.84 2.65L12.48 21h.98z"}),"NearMeOutlined")},2866:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(84849),o=n(27326),i=n(85672),a=n(72574),s=n(41843),l=n(25234),c=n(60308),u=n(38009),d=n(16775),f=n(37300),p=n(10644);function h(e){return(0,p.Ay)("MuiTypography",e)}(0,f.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var m=n(65908);const g=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],v=(0,c.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t["align".concat((0,d.A)(n.align))],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.A)({margin:0},"inherit"===n.variant&&{font:"inherit"},"inherit"!==n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})})),b={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},y={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},w=i.forwardRef((function(e,t){const n=(0,u.b)({props:e,name:"MuiTypography"}),i=(e=>y[e]||e)(n.color),c=(0,s.A)((0,o.A)({},n,{color:i})),{align:f="inherit",className:p,component:w,gutterBottom:A=!1,noWrap:x=!1,paragraph:S=!1,variant:E="body1",variantMapping:k=b}=c,C=(0,r.A)(c,g),O=(0,o.A)({},c,{align:f,color:i,className:p,component:w,gutterBottom:A,noWrap:x,paragraph:S,variant:E,variantMapping:k}),T=w||(S?"p":k[E]||b[E])||"span",R=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,"inherit"!==e.align&&"align".concat((0,d.A)(t)),n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,l.A)(s,h,a)})(O);return(0,m.jsx)(v,(0,o.A)({as:T,ref:t,ownerState:O,className:(0,a.A)(R.root,p)},C))}))},2886:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>o.A,createChainedFunction:()=>i,createSvgIcon:()=>a.A,debounce:()=>s.A,deprecatedPropType:()=>l,isMuiElement:()=>c.A,ownerDocument:()=>u.A,ownerWindow:()=>d.A,requirePropFactory:()=>f,setRef:()=>p,unstable_ClassNameGenerator:()=>A,unstable_useEnhancedEffect:()=>h.A,unstable_useId:()=>m.A,unsupportedProp:()=>g,useControlled:()=>v.A,useEventCallback:()=>b.A,useForkRef:()=>y.A,useIsFocusVisible:()=>w.A});var r=n(15226),o=n(16775);const i=n(46072).A;var a=n(31529),s=n(56691);const l=function(e,t){return()=>null};var c=n(92694),u=n(22892),d=n(24249);n(27326);const f=function(e,t){return()=>null};const p=n(65796).A;var h=n(93046),m=n(66664);const g=function(e,t,n,r,o){return null};var v=n(11235),b=n(88374),y=n(45688),w=n(18233);const A={configure:e=>{r.A.configure(e)}}},2887:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(e,t)=>{switch(t){case"secondary":return e.palette.secondary;case"error":return e.palette.error;case"warning":return e.palette.warning;case"info":return e.palette.info;case"success":return e.palette.success;default:return e.palette.primary}}},2978:(e,t,n)=>{"use strict";n.d(t,{E:()=>a,A:()=>s});var r=n(85672);const o={};const i=[];class a{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new a}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function s(){const e=function(e,t){const n=r.useRef(o);return n.current===o&&(n.current=e(t)),n}(a.create).current;var t;return t=e.disposeEffect,r.useEffect(t,i),e}},3273:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(27326),o=n(85672);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};var a=n(75890),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},4162:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"===typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&f())}function f(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u1)for(var n=1;n{"use strict";function r(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}n.d(t,{A:()=>r})},5136:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";n.d(t,{Y:()=>l});var r=n(98001);const o=Math.round;function i(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map((e=>parseFloat(e)));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const a=(e,t,n)=>0===n?e:e/100;function s(e,t){const n=t||255;return e>n?n:e<0?0:e}class l{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,r.A)(this,"isValid",!0),(0,r.A)(this,"r",0),(0,r.A)(this,"g",0),(0,r.A)(this,"b",0),(0,r.A)(this,"a",1),(0,r.A)(this,"_h",void 0),(0,r.A)(this,"_s",void 0),(0,r.A)(this,"_l",void 0),(0,r.A)(this,"_v",void 0),(0,r.A)(this,"_max",void 0),(0,r.A)(this,"_min",void 0),(0,r.A)(this,"_brightness",void 0),e)if("string"===typeof e){const n=e.trim();function o(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):o("rgb")?this.fromRgbString(n):o("hsl")?this.fromHslString(n):(o("hsv")||o("hsb"))&&this.fromHsvString(n)}else if(e instanceof l)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=s(e.r),this.g=s(e.g),this.b=s(e.b),this.a="number"===typeof e.a?s(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if("undefined"===typeof this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:o(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g0&&void 0!==arguments[0]?arguments[0]:10;const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;const n=this._c(e),r=t/100,i=e=>(n[e]-this[e])*r+this[e],a={r:o(i("r")),g:o(i("g")),b:o(i("b")),a:o(100*i("a"))/100};return this._c(a)}tint(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:255,g:255,b:255,a:1},e)}shade(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>o((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"===typeof this.a&&this.a>=0&&this.a<1){const t=o(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=o(100*this.getSaturation()),n=o(100*this.getLightness());return 1!==this.a?"hsla(".concat(e,",").concat(t,"%,").concat(n,"%,").concat(this.a,")"):"hsl(".concat(e,",").concat(t,"%,").concat(n,"%)")}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?"rgba(".concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.a,")"):"rgb(".concat(this.r,",").concat(this.g,",").concat(this.b,")")}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=s(t,n),r}_c(e){return new this.constructor(e)}getMax(){return"undefined"===typeof this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return"undefined"===typeof this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl(e){let{h:t,s:n,l:r,a:i}=e;if(this._h=t%360,this._s=n,this._l=r,this.a="number"===typeof i?i:1,n<=0){const e=o(255*r);this.r=e,this.g=e,this.b=e}let a=0,s=0,l=0;const c=t/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(a=u,s=d):c>=1&&c<2?(a=d,s=u):c>=2&&c<3?(s=u,l=d):c>=3&&c<4?(s=d,l=u):c>=4&&c<5?(a=d,l=u):c>=5&&c<6&&(a=u,l=d);const f=r-u/2;this.r=o(255*(a+f)),this.g=o(255*(s+f)),this.b=o(255*(l+f))}fromHsv(e){let{h:t,s:n,v:r,a:i}=e;this._h=t%360,this._s=n,this._v=r,this.a="number"===typeof i?i:1;const a=o(255*r);if(this.r=a,this.g=a,this.b=a,n<=0)return;const s=t/60,l=Math.floor(s),c=s-l,u=o(r*(1-n)*255),d=o(r*(1-n*c)*255),f=o(r*(1-n*(1-c))*255);switch(l){case 0:this.g=f,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=d;break;case 4:this.r=f,this.g=u;break;default:this.g=u,this.b=d}}fromHsvString(e){const t=i(e,a);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=i(e,a);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=i(e,((e,t)=>t.includes("%")?o(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}},5903:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(27326),o=n(84849),i=n(85672),a=n(14794),s=n(95390),l=n(56691),c=n(45688),u=n(69039),d=n(48502),f=n(24249),p=n(65908);const h=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function m(e,t,n){var r;const o=function(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=(0,f.A)(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const e=i.getComputedStyle(t);a=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(a&&"none"!==a&&"string"===typeof a){const e=a.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?"translateX(".concat(o?o.right+s-r.left:i.innerWidth+s-r.left,"px)"):"right"===e?"translateX(-".concat(o?r.right-o.left-s:r.left+r.width-s,"px)"):"up"===e?"translateY(".concat(o?o.bottom+l-r.top:i.innerHeight+l-r.top,"px)"):"translateY(-".concat(o?r.top-o.top+r.height-l:r.top+r.height-l,"px)")}(e,t,"function"===typeof(r=n)?r():r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const g=i.forwardRef((function(e,t){const n=(0,u.A)(),g={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},v={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:b,appear:y=!0,children:w,container:A,direction:x="down",easing:S=g,in:E,onEnter:k,onEntered:C,onEntering:O,onExit:T,onExited:R,onExiting:_,style:P,timeout:M=v,TransitionComponent:I=a.Ay}=e,j=(0,o.A)(e,h),L=i.useRef(null),N=(0,c.A)((0,s.A)(w),L,t),B=e=>t=>{e&&(void 0===t?e(L.current):e(L.current,t))},z=B(((e,t)=>{m(x,e,A),(0,d.q)(e),k&&k(e,t)})),D=B(((e,t)=>{const o=(0,d.c)({timeout:M,style:P,easing:S},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",(0,r.A)({},o)),e.style.transition=n.transitions.create("transform",(0,r.A)({},o)),e.style.webkitTransform="none",e.style.transform="none",O&&O(e,t)})),F=B(C),H=B(_),W=B((e=>{const t=(0,d.c)({timeout:M,style:P,easing:S},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),m(x,e,A),T&&T(e)})),U=B((e=>{e.style.webkitTransition="",e.style.transition="",R&&R(e)})),V=i.useCallback((()=>{L.current&&m(x,L.current,A)}),[x,A]);return i.useEffect((()=>{if(E||"down"===x||"right"===x)return;const e=(0,l.A)((()=>{L.current&&m(x,L.current,A)})),t=(0,f.A)(L.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[x,E,A]),i.useEffect((()=>{E||V()}),[E,V]),(0,p.jsx)(I,(0,r.A)({nodeRef:L,onEnter:z,onEntered:F,onEntering:D,onExit:W,onExited:U,onExiting:H,addEndListener:e=>{b&&b(L.current,e)},appear:y,in:E,timeout:M},j,{children:(e,t)=>i.cloneElement(w,(0,r.A)({ref:N,style:(0,r.A)({visibility:"exited"!==e||E?void 0:"hidden"},P,w.props.style)},t))}))}))},5957:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(84849),o=n(27326),i=n(85672),a=n(72574),s=n(25234),l=n(38009),c=n(60308),u=n(37300),d=n(10644);function f(e){return(0,d.Ay)("MuiToolbar",e)}(0,u.A)("MuiToolbar",["root","gutters","regular","dense"]);var p=n(65908);const h=["className","component","disableGutters","variant"],m=(0,c.Ay)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.A)({position:"relative",display:"flex",alignItems:"center"},!n.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},"dense"===n.variant&&{minHeight:48})}),(e=>{let{theme:t,ownerState:n}=e;return"regular"===n.variant&&t.mixins.toolbar})),g=i.forwardRef((function(e,t){const n=(0,l.b)({props:e,name:"MuiToolbar"}),{className:i,component:c="div",disableGutters:u=!1,variant:d="regular"}=n,g=(0,r.A)(n,h),v=(0,o.A)({},n,{component:c,disableGutters:u,variant:d}),b=(e=>{const{classes:t,disableGutters:n,variant:r}=e,o={root:["root",!n&&"gutters",r]};return(0,s.A)(o,f,t)})(v);return(0,p.jsx)(m,(0,o.A)({as:c,className:(0,a.A)(b.root,i),ref:t,ownerState:v},g))}))},6692:(e,t,n)=>{var r=n(1908),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},6958:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(77177),o=n(11611);const i=(0,r.A)();const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return(0,o.A)(e)}},7072:(e,t,n)=>{"use strict";n.d(t,{m:()=>u});var r,o,i,a=n(4473),s=n(68341),l=n(30138),c=n(90010),u=new(r=(0,s.A)("focused"),o=(0,s.A)("cleanup"),i=(0,s.A)("setup"),class extends l.Q{constructor(){super(),Object.defineProperty(this,r,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,i,{writable:!0,value:void 0}),(0,a.A)(this,i)[i]=e=>{if(!c.S$&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){(0,a.A)(this,o)[o]||this.setEventListener((0,a.A)(this,i)[i])}onUnsubscribe(){var e,t;this.hasListeners()||(null===(e=(t=(0,a.A)(this,o))[o])||void 0===e||e.call(t),(0,a.A)(this,o)[o]=void 0)}setEventListener(e){var t,n;(0,a.A)(this,i)[i]=e,null===(t=(n=(0,a.A)(this,o))[o])||void 0===t||t.call(n),(0,a.A)(this,o)[o]=e((e=>{"boolean"===typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){(0,a.A)(this,r)[r]!==e&&((0,a.A)(this,r)[r]=e,this.onFocus())}onFocus(){this.listeners.forEach((e=>{e()}))}isFocused(){var e;return"boolean"===typeof(0,a.A)(this,r)[r]?(0,a.A)(this,r)[r]:"hidden"!==(null===(e=globalThis.document)||void 0===e?void 0:e.visibilityState)}})},7637:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(84849),o=n(27326),i=n(85672),a=n(72574),s=n(25234),l=n(60308),c=n(38009),u=n(58541),d=n(78534),f=n(65908);const p=["className"],h=(0,l.Ay)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.A)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===n.alignItems&&{marginTop:8})})),m=i.forwardRef((function(e,t){const n=(0,c.b)({props:e,name:"MuiListItemIcon"}),{className:l}=n,m=(0,r.A)(n,p),g=i.useContext(d.A),v=(0,o.A)({},n,{alignItems:g.alignItems}),b=(e=>{const{alignItems:t,classes:n}=e,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,s.A)(r,u.f,n)})(v);return(0,f.jsx)(h,(0,o.A)({className:(0,a.A)(b.root,l),ownerState:v,ref:t},m))}))},7696:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(27326),o=(n(85672),n(43088)),i=n(6958),a=n(65908);const s=function(e){let{styles:t,themeId:n,defaultTheme:r={}}=e;const s=(0,i.A)(r),l="function"===typeof t?t(n&&s[n]||s):t;return(0,a.jsx)(o.A,{styles:l})};var l=n(88937),c=n(10228);const u=function(e){return(0,a.jsx)(s,(0,r.A)({},e,{defaultTheme:l.A,themeId:c.A}))}},8191:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,K:()=>i});var r=n(37300),o=n(10644);function i(e){return(0,o.Ay)("MuiDivider",e)}const a=(0,r.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"])},8422:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(27326);function o(e,t){const n=(0,r.A)({},t);return Object.keys(e).forEach((i=>{if(i.toString().match(/^(components|slots)$/))n[i]=(0,r.A)({},e[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){const a=e[i]||{},s=t[i];n[i]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[i]=(0,r.A)({},s),Object.keys(a).forEach((e=>{n[i][e]=o(a[e],s[e])}))):n[i]=s:n[i]=a}else void 0===n[i]&&(n[i]=e[i])})),n}},8913:(e,t,n)=>{"use strict";n.d(t,{AH:()=>c,i7:()=>u,mL:()=>l});var r=n(85672),o=(n(14963),n(69797)),i=(n(86926),n(11453)),a=n(45795),s=n(87259),l=(0,o.w)((function(e,t){var n=e.styles,l=(0,a.J)([n],void 0,(0,r.useContext)(o.T)),c=(0,r.useRef)();return(0,s.i)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,o=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(r=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),c.current=[n,r],function(){n.flush()}}),[t]),(0,s.i)((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,i.sk)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null}));function c(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";n.d(t,{$:()=>g,s:()=>h});var r,o,i,a,s,l=n(22555),c=n(4473),u=n(68341),d=n(86547),f=n(41018),p=n(38034),h=(r=(0,u.A)("observers"),o=(0,u.A)("defaultOptions"),i=(0,u.A)("mutationCache"),a=(0,u.A)("retryer"),s=(0,u.A)("dispatch"),class extends f.k{constructor(e){super(),Object.defineProperty(this,s,{value:m}),Object.defineProperty(this,r,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,i,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),this.mutationId=e.mutationId,(0,c.A)(this,o)[o]=e.defaultOptions,(0,c.A)(this,i)[i]=e.mutationCache,(0,c.A)(this,r)[r]=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=(0,l.A)((0,l.A)({},(0,c.A)(this,o)[o]),e),this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){(0,c.A)(this,r)[r].includes(e)||((0,c.A)(this,r)[r].push(e),this.clearGcTimeout(),(0,c.A)(this,i)[i].notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){(0,c.A)(this,r)[r]=(0,c.A)(this,r)[r].filter((t=>t!==e)),this.scheduleGc(),(0,c.A)(this,i)[i].notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){(0,c.A)(this,r)[r].length||("pending"===this.state.status?this.scheduleGc():(0,c.A)(this,i)[i].remove(this))}continue(){var e,t;return null!==(e=null===(t=(0,c.A)(this,a)[a])||void 0===t?void 0:t.continue())&&void 0!==e?e:this.execute(this.state.variables)}async execute(e){const t=()=>{var t;return(0,c.A)(this,a)[a]=(0,p.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{(0,c.A)(this,s)[s]({type:"failed",failureCount:e,error:t})},onPause:()=>{(0,c.A)(this,s)[s]({type:"pause"})},onContinue:()=>{(0,c.A)(this,s)[s]({type:"continue"})},retry:null!==(t=this.options.retry)&&void 0!==t?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),(0,c.A)(this,a)[a].promise},n="pending"===this.state.status;try{var r,o,l,u,d,f,h,m;if(!n){var g,v,b,y;(0,c.A)(this,s)[s]({type:"pending",variables:e}),await(null===(g=(v=(0,c.A)(this,i)[i].config).onMutate)||void 0===g?void 0:g.call(v,e,this));const t=await(null===(b=(y=this.options).onMutate)||void 0===b?void 0:b.call(y,e));t!==this.state.context&&(0,c.A)(this,s)[s]({type:"pending",context:t,variables:e})}const a=await t();return await(null===(r=(o=(0,c.A)(this,i)[i].config).onSuccess)||void 0===r?void 0:r.call(o,a,e,this.state.context,this)),await(null===(l=(u=this.options).onSuccess)||void 0===l?void 0:l.call(u,a,e,this.state.context)),await(null===(d=(f=(0,c.A)(this,i)[i].config).onSettled)||void 0===d?void 0:d.call(f,a,null,this.state.variables,this.state.context,this)),await(null===(h=(m=this.options).onSettled)||void 0===h?void 0:h.call(m,a,null,e,this.state.context)),(0,c.A)(this,s)[s]({type:"success",data:a}),a}catch(T){try{var w,A,x,S,E,k,C,O;throw await(null===(w=(A=(0,c.A)(this,i)[i].config).onError)||void 0===w?void 0:w.call(A,T,e,this.state.context,this)),await(null===(x=(S=this.options).onError)||void 0===x?void 0:x.call(S,T,e,this.state.context)),await(null===(E=(k=(0,c.A)(this,i)[i].config).onSettled)||void 0===E?void 0:E.call(k,void 0,T,this.state.variables,this.state.context,this)),await(null===(C=(O=this.options).onSettled)||void 0===C?void 0:C.call(O,void 0,T,e,this.state.context)),T}finally{(0,c.A)(this,s)[s]({type:"error",error:T})}}}});function m(e){this.state=(t=>{switch(e.type){case"failed":return(0,l.A)((0,l.A)({},t),{},{failureCount:e.failureCount,failureReason:e.error});case"pause":return(0,l.A)((0,l.A)({},t),{},{isPaused:!0});case"continue":return(0,l.A)((0,l.A)({},t),{},{isPaused:!1});case"pending":return(0,l.A)((0,l.A)({},t),{},{context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,p.v_)(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()});case"success":return(0,l.A)((0,l.A)({},t),{},{data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return(0,l.A)((0,l.A)({},t),{},{data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"})}})(this.state),d.j.batch((()=>{(0,c.A)(this,r)[r].forEach((t=>{t.onMutationUpdate(e)})),(0,c.A)(this,i)[i].notify({mutation:this,type:"updated",action:e})}))}function g(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},9858:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});n(85672);var r=n(31529),o=n(65908);const i=(0,r.A)((0,o.jsx)("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")},10031:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(45656),o=n.n(r);const i=(e,t)=>{switch(t){case"secondary":return e.customShadows.secondary;case"error":return e.customShadows.error;case"warning":return e.customShadows.warning;case"info":return e.customShadows.info;case"success":return e.customShadows.success;case"primaryButton":return e.customShadows.primaryButton;case"secondaryButton":return e.customShadows.secondaryButton;case"errorButton":return e.customShadows.errorButton;case"warningButton":return e.customShadows.warningButton;case"infoButton":return e.customShadows.infoButton;case"successButton":return e.customShadows.successButton;default:return e.customShadows.primary}};i.propTypes={theme:o().object,shadow:o().string};const a=i},10228:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="$$material"},10247:(e,t,n)=>{"use strict";var r=n(39744);t.X4=p,t.e$=h,t.tL=g,t.eM=function(e,t){const n=f(e),r=f(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.a=m;var o=r(n(80997)),i=r(n(22495));function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,i.default)(e,t,n)}function s(e){e=e.slice(1);const t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", "),")"):""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(s(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,o.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,o.default)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const c=e=>{const t=l(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?"".concat(e,"%"):e)).join(" ")};function u(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function d(e){e=l(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)};let s="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),u({type:s,values:c})}function f(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(d(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function p(e,t){return e=l(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,u(e)}function h(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function m(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return u(e)}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return f(e)>.5?h(e,t):m(e,t)}},10644:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>i});var r=n(15226);const o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const i=o[t];return i?"".concat(n,"-").concat(i):"".concat(r.A.generate(e),"-").concat(t)}},10938:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,private_createBreakpoints:()=>o.A,unstable_applyStyles:()=>i.A});var r=n(77177),o=n(19634),i=n(33932)},11235:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(29900).A},11453:(e,t,n)=>{"use strict";n.d(t,{Rk:()=>r,SF:()=>o,sk:()=>i});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},11611:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(85672),o=n(69797);const i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=r.useContext(o.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},11969:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(84849),o=n(27326),i=n(85672),a=n(72574),s=n(25234),l=n(10247),c=n(60308),u=n(38009),d=n(61949),f=n(16775),p=n(37300),h=n(10644);function m(e){return(0,h.Ay)("MuiIconButton",e)}const g=(0,p.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);var v=n(65908);const b=["edge","children","className","color","disabled","disableFocusRipple","size"],y=(0,c.Ay)(d.A,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t["color".concat((0,f.A)(n.color))],n.edge&&t["edge".concat((0,f.A)(n.edge))],t["size".concat((0,f.A)(n.size))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.A)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(e=>{let{theme:t,ownerState:n}=e;var r;const i=null==(r=(t.vars||t).palette)?void 0:r[n.color];return(0,o.A)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,o.A)({color:null==i?void 0:i.main},!n.disableRipple&&{"&:hover":(0,o.A)({},i&&{backgroundColor:t.vars?"rgba(".concat(i.mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.X4)(i.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===n.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:t.typography.pxToRem(28)},{["&.".concat(g.disabled)]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})})),w=i.forwardRef((function(e,t){const n=(0,u.b)({props:e,name:"MuiIconButton"}),{edge:i=!1,children:l,className:c,color:d="default",disabled:p=!1,disableFocusRipple:h=!1,size:g="medium"}=n,w=(0,r.A)(n,b),A=(0,o.A)({},n,{edge:i,color:d,disabled:p,disableFocusRipple:h,size:g}),x=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled","default"!==r&&"color".concat((0,f.A)(r)),o&&"edge".concat((0,f.A)(o)),"size".concat((0,f.A)(i))]};return(0,s.A)(a,m,t)})(A);return(0,v.jsx)(y,(0,o.A)({className:(0,a.A)(x.root,c),centerRipple:!0,focusRipple:!h,disabled:p,ref:t},w,{ownerState:A,children:l}))}))},12673:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},13420:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(84849),o=n(27326),i=n(85672),a=n(72574),s=n(25234),l=n(61949),c=n(16775),u=n(38009),d=n(60308),f=n(37300),p=n(10644);function h(e){return(0,p.Ay)("MuiTab",e)}const m=(0,f.A)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);var g=n(65908);const v=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],b=(0,d.Ay)(l.A,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t["textColor".concat((0,c.A)(n.textColor))],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{["& .".concat(m.iconWrapper)]:t.iconWrapper}]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.A)({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},n.label&&{flexDirection:"top"===n.iconPosition||"bottom"===n.iconPosition?"column":"row"},{lineHeight:1.25},n.icon&&n.label&&{minHeight:72,paddingTop:9,paddingBottom:9,["& > .".concat(m.iconWrapper)]:(0,o.A)({},"top"===n.iconPosition&&{marginBottom:6},"bottom"===n.iconPosition&&{marginTop:6},"start"===n.iconPosition&&{marginRight:t.spacing(1)},"end"===n.iconPosition&&{marginLeft:t.spacing(1)})},"inherit"===n.textColor&&{color:"inherit",opacity:.6,["&.".concat(m.selected)]:{opacity:1},["&.".concat(m.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"primary"===n.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(m.selected)]:{color:(t.vars||t).palette.primary.main},["&.".concat(m.disabled)]:{color:(t.vars||t).palette.text.disabled}},"secondary"===n.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(m.selected)]:{color:(t.vars||t).palette.secondary.main},["&.".concat(m.disabled)]:{color:(t.vars||t).palette.text.disabled}},n.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},n.wrapped&&{fontSize:t.typography.pxToRem(12)})})),y=i.forwardRef((function(e,t){const n=(0,u.b)({props:e,name:"MuiTab"}),{className:l,disabled:d=!1,disableFocusRipple:f=!1,fullWidth:p,icon:m,iconPosition:y="top",indicator:w,label:A,onChange:x,onClick:S,onFocus:E,selected:k,selectionFollowsFocus:C,textColor:O="inherit",value:T,wrapped:R=!1}=n,_=(0,r.A)(n,v),P=(0,o.A)({},n,{disabled:d,disableFocusRipple:f,selected:k,icon:!!m,iconPosition:y,label:!!A,fullWidth:p,textColor:O,wrapped:R}),M=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:l,disabled:u}=e,d={root:["root",i&&a&&"labelIcon","textColor".concat((0,c.A)(n)),r&&"fullWidth",o&&"wrapped",l&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return(0,s.A)(d,h,t)})(P),I=m&&A&&i.isValidElement(m)?i.cloneElement(m,{className:(0,a.A)(M.iconWrapper,m.props.className)}):m;return(0,g.jsxs)(b,(0,o.A)({focusRipple:!f,className:(0,a.A)(M.root,l),ref:t,role:"tab","aria-selected":k,disabled:d,onClick:e=>{!k&&x&&x(e,T),S&&S(e)},onFocus:e=>{C&&!k&&x&&x(e,T),E&&E(e)},ownerState:P,tabIndex:k?0:-1},_,{children:["top"===y||"start"===y?(0,g.jsxs)(i.Fragment,{children:[I,A]}):(0,g.jsxs)(i.Fragment,{children:[A,I]}),w]}))}))},13423:(e,t,n)=>{"use strict";var r=n(39744);t.A=void 0;var o=r(n(24956)),i=n(65908);t.A=(0,o.default)((0,i.jsx)("path",{d:"M19.5 3.5 18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2v20l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2zM19 19.09H5V4.91h14zM6 15h12v2H6zm0-4h12v2H6zm0-4h12v2H6z"}),"ReceiptOutlined")},13659:(e,t,n)=>{"use strict";n.d(t,{n:()=>He,mk:()=>_e,M8:()=>Re});var r=n(85672),o=n(40829);function i(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||s,c=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,u=/\/\*[^]*?\*\/| +/g,d=/\n+/g,f=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?f(a,i):i+"{"+f(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=f(a,t?t.replace(/([^,])+/g,(e=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=f.p?f.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},p={},h=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+h(e[n]);return t}return e},m=(e,t,n,r,o)=>{let i=h(e),a=p[i]||(p[i]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(i));if(!p[a]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=c.exec(e.replace(u,""));)t[4]?r.shift():t[3]?(n=t[3].replace(d," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(d," ").trim();return r[0]})(e);p[a]=f(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&p.g?p.g:null;return n&&(p.g=p[a]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(p[a],t,r,s),a};function g(e){let t=this||{},n=e.call?e(t.p):e;return m(n.unshift?n.raw?((e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":f(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),""))(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,l(t.target),t.g,t.o,t.k)}g.bind({g:1}),g.bind({k:1});function v(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var S=function(){return""},E=r.createContext({enqueueSnackbar:S,closeSnackbar:S}),k="@media (max-width:599.95px)",C="@media (min-width:600px)",O=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},T=function(e){return""+O(e.vertical)+O(e.horizontal)},R=function(e){return!!e||0===e},_="unmounted",P="exited",M="entering",I="entered",j="exiting",L=function(e){function t(t){var n;n=e.call(this,t)||this;var r,o=t.appear;return n.appearStatus=null,t.in?o?(r=P,n.appearStatus=M):r=I:r=t.unmountOnExit||t.mountOnEnter?_:P,n.state={status:r},n.nextCallback=null,n}w(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===_?{status:P}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==M&&n!==I&&(t=M):n!==M&&n!==I||(t=j)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=e,n=e;return null!=e&&"number"!==typeof e&&"string"!==typeof e&&(n=e.exit,t=e.enter),{exit:n,enter:t}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===M?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===P&&this.setState({status:_})},n.performEnter=function(e){var t=this,n=this.props.enter,r=e,o=this.getTimeouts();e||n?(this.props.onEnter&&this.props.onEnter(this.node,r),this.safeSetState({status:M},(function(){t.props.onEntering&&t.props.onEntering(t.node,r),t.onTransitionEnd(o.enter,(function(){t.safeSetState({status:I},(function(){t.props.onEntered&&t.props.onEntered(t.node,r)}))}))}))):this.safeSetState({status:I},(function(){t.props.onEntered&&t.props.onEntered(t.node,r)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts();t?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:j},(function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:P},(function(){e.props.onExited&&e.props.onExited(e.node)}))}))}))):this.safeSetState({status:P},(function(){e.props.onExited&&e.props.onExited(e.node)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(){n&&(n=!1,t.nextCallback=null,e())},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=null==e&&!this.props.addEndListener;this.node&&!n?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===_)return null;var t=this.props;return(0,t.children)(e,A(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},b(t,[{key:"node",get:function(){var e,t=null===(e=this.props.nodeRef)||void 0===e?void 0:e.current;if(!t)throw new Error("notistack - Custom snackbar is not refForwarding");return t}}]),t}(r.Component);function N(){}function B(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function z(e,t){return(0,r.useMemo)((function(){return null==e&&null==t?null:function(n){B(e,n),B(t,n)}}),[e,t])}function D(e){var t=e.timeout,n=e.style,r=void 0===n?{}:n,o=e.mode;return{duration:"object"===typeof t?t[o]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}L.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:N,onEntering:N,onEntered:N,onExit:N,onExiting:N,onExited:N};var F="cubic-bezier(0.4, 0, 0.2, 1)",H="cubic-bezier(0.0, 0, 0.2, 1)",W="cubic-bezier(0.4, 0, 0.6, 1)",U=function(e){e.scrollTop=e.scrollTop},V=function(e){return Math.round(e)+"ms"};function G(e,t){void 0===e&&(e=["all"]);var n=t||{},r=n.duration,o=void 0===r?300:r,i=n.easing,a=void 0===i?F:i,s=n.delay,l=void 0===s?0:s;return(Array.isArray(e)?e:[e]).map((function(e){var t="string"===typeof o?o:V(o),n="string"===typeof l?l:V(l);return e+" "+t+" "+a+" "+n})).join(",")}function q(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t.defaultView||window}function K(e,t){if(t){var n=function(e,t){var n,r=t.getBoundingClientRect(),o=q(t);if(t.fakeTransform)n=t.fakeTransform;else{var i=o.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var a=0,s=0;if(n&&"none"!==n&&"string"===typeof n){var l=n.split("(")[1].split(")")[0].split(",");a=parseInt(l[4],10),s=parseInt(l[5],10)}switch(e){case"left":return"translateX("+(o.innerWidth+a-r.left)+"px)";case"right":return"translateX(-"+(r.left+r.width-a)+"px)";case"up":return"translateY("+(o.innerHeight+s-r.top)+"px)";default:return"translateY(-"+(r.top+r.height-s)+"px)"}}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var X=(0,r.forwardRef)((function(e,t){var n=e.children,o=e.direction,i=void 0===o?"down":o,a=e.in,s=e.style,l=e.timeout,c=void 0===l?0:l,u=e.onEnter,d=e.onEntered,f=e.onExit,p=e.onExited,h=A(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),m=(0,r.useRef)(null),g=z(n.ref,m),v=z(g,t),b=(0,r.useCallback)((function(){m.current&&K(i,m.current)}),[i]);return(0,r.useEffect)((function(){if(!a&&"down"!==i&&"right"!==i){var e=function(e,t){var n;function r(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a-1,i=e.snacks.findIndex(t)>-1;if(r||i)return e}return n.handleDisplaySnack(y({},e,{queue:[].concat(e.queue,[f])}))})),u},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?y({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,r=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===n.maxSnack&&(r=!0);var o=e.snacks.map((function(e){return t||e.persist&&!r?y({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,"maxsnack",e.id),n.props.onClose&&n.props.onClose(null,"maxsnack",e.id),y({},e,{open:!1})):y({},e,{requestClose:!0}))}));return y({},e,{snacks:o})},n.handleEnteredSnack=function(e,t,r){if(!R(r))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState((function(e){return{snacks:e.snacks.map((function(e){return e.id===r?y({},e,{entered:!0}):y({},e)}))}}))},n.handleCloseSnack=function(e,t,r){n.props.onClose&&n.props.onClose(e,t,r);var o=void 0===r;n.setState((function(e){var t=e.snacks,n=e.queue;return{snacks:t.map((function(e){return o||e.id===r?e.entered?y({},e,{open:!1}):y({},e,{requestClose:!0}):y({},e)})),queue:n.filter((function(e){return e.id!==r}))}}))},n.closeSnackbar=function(e){var t=n.state.snacks.find((function(t){return t.id===e}));R(e)&&t&&t.onClose&&t.onClose(null,"instructed",e),n.handleCloseSnack(null,"instructed",e)},n.handleExitedSnack=function(e,t){if(!R(t))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState((function(e){var r=n.processQueue(y({},e,{snacks:e.snacks.filter((function(e){return e.id!==t}))}));return 0===r.queue.length?r:n.handleDismissOldest(r)}))},Re=n.enqueueSnackbar,_e=n.closeSnackbar,n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar.bind(x(n)),closeSnackbar:n.closeSnackbar.bind(x(n))}},n}return w(t,e),t.prototype.render=function(){var e=this,t=this.state.contextValue,n=this.props,i=n.domRoot,a=n.children,s=n.dense,l=void 0!==s&&s,c=n.Components,u=void 0===c?{}:c,d=n.classes,f=this.state.snacks.reduce((function(e,t){var n,r=T(t.anchorOrigin),o=e[r]||[];return y({},e,((n={})[r]=[].concat(o,[t]),n))}),{}),p=Object.keys(f).map((function(t){var n=f[t],o=n[0];return r.createElement(De,{key:t,dense:l,anchorOrigin:o.anchorOrigin,classes:d},n.map((function(t){return r.createElement(Ie,{key:t.id,snack:t,classes:d,Component:u[t.variant],onClose:e.handleCloseSnack,onEnter:e.props.onEnter,onExit:e.props.onExit,onExited:he([e.handleExitedSnack,e.props.onExited],t.id),onEntered:he([e.handleEnteredSnack,e.props.onEntered],t.id)})})))}));return r.createElement(E.Provider,{value:t},a,i?(0,o.createPortal)(p,i):p)},b(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||ee.maxSnack}}]),t}(r.Component)},14128:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(85672),o=n(80038),i=n(95390),a=n(94164),s=n(65908);const l=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function c(e){const t=[],n=[];return Array.from(e.querySelectorAll(l)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector('input[type="radio"]'.concat(t));let n=t('[name="'.concat(e.name,'"]:checked'));return n||(n=t('[name="'.concat(e.name,'"]'))),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function u(){return!0}const d=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:l=!1,disableRestoreFocus:d=!1,getTabbable:f=c,isEnabled:p=u,open:h}=e,m=r.useRef(!1),g=r.useRef(null),v=r.useRef(null),b=r.useRef(null),y=r.useRef(null),w=r.useRef(!1),A=r.useRef(null),x=(0,o.A)((0,i.A)(t),A),S=r.useRef(null);r.useEffect((()=>{h&&A.current&&(w.current=!n)}),[n,h]),r.useEffect((()=>{if(!h||!A.current)return;const e=(0,a.A)(A.current);return A.current.contains(e.activeElement)||(A.current.hasAttribute("tabIndex")||A.current.setAttribute("tabIndex","-1"),w.current&&A.current.focus()),()=>{d||(b.current&&b.current.focus&&(m.current=!0,b.current.focus()),b.current=null)}}),[h]),r.useEffect((()=>{if(!h||!A.current)return;const e=(0,a.A)(A.current),t=t=>{S.current=t,!l&&p()&&"Tab"===t.key&&e.activeElement===A.current&&t.shiftKey&&(m.current=!0,v.current&&v.current.focus())},n=()=>{const t=A.current;if(null===t)return;if(!e.hasFocus()||!p()||m.current)return void(m.current=!1);if(t.contains(e.activeElement))return;if(l&&e.activeElement!==g.current&&e.activeElement!==v.current)return;if(e.activeElement!==y.current)y.current=null;else if(null!==y.current)return;if(!w.current)return;let n=[];if(e.activeElement!==g.current&&e.activeElement!==v.current||(n=f(A.current)),n.length>0){var r,o;const e=Boolean((null==(r=S.current)?void 0:r.shiftKey)&&"Tab"===(null==(o=S.current)?void 0:o.key)),t=n[0],i=n[n.length-1];"string"!==typeof t&&"string"!==typeof i&&(e?i.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,l,d,p,h,f]);const E=e=>{null===b.current&&(b.current=e.relatedTarget),w.current=!0};return(0,s.jsxs)(r.Fragment,{children:[(0,s.jsx)("div",{tabIndex:h?0:-1,onFocus:E,ref:g,"data-testid":"sentinelStart"}),r.cloneElement(t,{ref:x,onFocus:e=>{null===b.current&&(b.current=e.relatedTarget),w.current=!0,y.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,s.jsx)("div",{tabIndex:h?0:-1,onFocus:E,ref:v,"data-testid":"sentinelEnd"})]})}},14386:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}},14794:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>v});var r=n(84849),o=n(2209),i=n(85672),a=n(40829);const s=!1;var l=n(23357),c=n(19767),u="unmounted",d="exited",f="entering",p="entered",h="exiting",m=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=d,r.appearStatus=f):o=p:o=t.unmountOnExit||t.mountOnEnter?u:d,r.state={status:o},r.nextCallback=null,r}(0,o.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==f&&n!==p&&(t=f):n!==f&&n!==p||(t=h)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===f){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&(0,c.F)(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===d&&this.setState({status:u})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[a.findDOMNode(this),r],i=o[0],l=o[1],c=this.getTimeouts(),u=r?c.appear:c.enter;!e&&!n||s?this.safeSetState({status:p},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,l),this.safeSetState({status:f},(function(){t.props.onEntering(i,l),t.onTransitionEnd(u,(function(){t.safeSetState({status:p},(function(){t.props.onEntered(i,l)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!s?(this.props.onExit(r),this.safeSetState({status:h},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:d},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:d},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(l.A.Provider,{value:null},"function"===typeof n?n(e,o):i.cloneElement(i.Children.only(n),o))},t}(i.Component);function g(){}m.contextType=l.A,m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:g,onEntering:g,onEntered:g,onExit:g,onExiting:g,onExited:g},m.UNMOUNTED=u,m.EXITED=d,m.ENTERING=f,m.ENTERED=p,m.EXITING=h;const v=m},14922:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(27326);function o(e,t){const n=(0,r.A)({},t);return Object.keys(e).forEach((i=>{if(i.toString().match(/^(components|slots)$/))n[i]=(0,r.A)({},e[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){const a=e[i]||{},s=t[i];n[i]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[i]=(0,r.A)({},s),Object.keys(a).forEach((e=>{n[i][e]=o(a[e],s[e])}))):n[i]=s:n[i]=a}else void 0===n[i]&&(n[i]=e[i])})),n}},14963:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?u(w,--b):0,g--,10===y&&(g=1,m--),y}function E(){return y=b2||T(y)>3?"":" "}function I(e,t){for(;--t&&E()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return O(e,C()+(t<6&&32==k()&&32==E()))}function j(e){for(;E();)switch(y){case e:return b;case 34:case 39:34!==e&&39!==e&&j(y);break;case 40:41===e&&j(e);break;case 92:E()}return b}function L(e,t){for(;E()&&e+y!==57&&(e+y!==84||47!==k()););return"/*"+O(t,b-1)+"*"+i(47===e?e:E())}function N(e){for(;!T(k());)E();return O(e,b)}var B="-ms-",z="-moz-",D="-webkit-",F="comm",H="rule",W="decl",U="@keyframes";function V(e,t){for(var n="",r=p(e),o=0;o0&&f(z)-v&&h(y>32?Q(z+";",r,n,v-1):Q(l(z," ","")+";",r,n,v-2),p);break;case 59:z+=";";default:if(h(B=X(z,t,n,m,g,o,d,R,_=[],j=[],v),a),123===T)if(0===g)K(z,t,B,B,_,a,v,d,j);else switch(99===b&&110===u(z,3)?100:b){case 100:case 108:case 109:case 115:K(e,B,B,r&&h(X(e,B,B,0,0,o,d,R,o,_=[],v),j),o,j,v,d,r?_:j);break;default:K(z,B,B,B,[""],j,0,d,j)}}m=g=y=0,A=O=1,R=z="",v=s;break;case 58:v=1+f(z),y=w;default:if(A<1)if(123==T)--A;else if(125==T&&0==A++&&125==S())continue;switch(z+=i(T),T*A){case 38:O=g>0?1:(z+="\f",-1);break;case 44:d[m++]=(f(z)-1)*O,O=1;break;case 64:45===k()&&(z+=P(E())),b=k(),g=v=f(R=z+=N(C())),T++;break;case 45:45===w&&2==f(z)&&(A=0)}}return a}function X(e,t,n,r,i,a,c,u,f,h,m){for(var g=i-1,v=0===i?a:[""],b=p(v),y=0,w=0,x=0;y0?v[S]+" "+E:l(E,/&\f/g,v[S])))&&(f[x++]=k);return A(e,t,n,0===i?H:u,f,h,m)}function Y(e,t,n){return A(e,t,n,F,i(y),d(e,2,-2),0)}function Q(e,t,n,r){return A(e,t,n,W,d(e,0,r),d(e,r+1,-1),r)}var Z=function(e,t,n){for(var r=0,o=0;r=o,o=k(),38===r&&12===o&&(t[n]=1),!T(o);)E();return O(e,b)},J=function(e,t){return _(function(e,t){var n=-1,r=44;do{switch(T(r)){case 0:38===r&&12===k()&&(t[n]=1),e[n]+=Z(b-1,t,n);break;case 2:e[n]+=P(r);break;case 4:if(44===r){e[++n]=58===k()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=E());return e}(R(e),t))},$=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||$.get(n))&&!r){$.set(e,!0);for(var o=[],i=J(t,o),a=n.props,s=0,l=0;s6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+D+"$2-$3$1"+z+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,f(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+D)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+D+(45===u(e,14)?"inline-":"")+"box$3$1"+D+"$2$3$1"+B+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return D+e+B+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return D+e+B+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return D+e+B+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return D+e+B+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case W:e.return=ne(e.value,e.length);break;case U:return V([x(e,{value:l(e.value,"@","@"+D)})],r);case H:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return V([x(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return V([x(e,{props:[l(t,/:(plac\w+)/,":"+D+"input-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,B+"input-$1")]})],r)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,i,a=e.stylisPlugins||re,s={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n{"use strict";n.d(t,{A:()=>l});var r=n(27326),o=n(85672);const i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};var a=n(75890),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},15226:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r=e=>e,o=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},15227:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(84849),o=n(27326),i=n(85672),a=n(72574),s=n(25234),l=n(60308),c=n(38009),u=n(95345),d=n(37300),f=n(10644);function p(e){return(0,f.Ay)("MuiBackdrop",e)}(0,d.A)("MuiBackdrop",["root","invisible"]);var h=n(65908);const m=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],g=(0,l.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((e=>{let{ownerState:t}=e;return(0,o.A)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})})),v=i.forwardRef((function(e,t){var n,i,l;const d=(0,c.b)({props:e,name:"MuiBackdrop"}),{children:f,className:v,component:b="div",components:y={},componentsProps:w={},invisible:A=!1,open:x,slotProps:S={},slots:E={},TransitionComponent:k=u.A,transitionDuration:C}=d,O=(0,r.A)(d,m),T=(0,o.A)({},d,{component:b,invisible:A}),R=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,s.A)(r,p,t)})(T),_=null!=(n=S.root)?n:w.root;return(0,h.jsx)(k,(0,o.A)({in:x,timeout:C},O,{children:(0,h.jsx)(g,(0,o.A)({"aria-hidden":!0},_,{as:null!=(i=null!=(l=E.root)?l:y.Root)?i:b,className:(0,a.A)(R.root,v,null==_?void 0:_.className),ownerState:(0,o.A)({},T,null==_?void 0:_.ownerState),classes:R,ref:t,children:f}))}))}))},16243:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c,NL:()=>l,Ww:()=>s,dl:()=>i,ko:()=>o,lG:()=>a,qm:()=>r});const r="/sample-page",o=6,i=260,a={LIGHT:"light",DARK:"dark"},s={VERTICAL:"vertical",HORIZONTAL:"horizontal"},l={LTR:"ltr",RTL:"rtl"},c={fontFamily:"'Public Sans', sans-serif",i18n:"en",menuOrientation:s.VERTICAL,miniDrawer:!1,container:!0,mode:a.LIGHT,presetColor:"default",themeDirection:l.LTR}},16427:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(!(0>>1;ri(l,n))ci(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(ci(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,y="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function A(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,I(x);else{var t=r(u);null!==t&&j(A,t.startTime-e)}}function x(e,n){m=!1,g&&(g=!1,b(C),C=-1),h=!0;var i=p;try{for(w(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!R());){var a=f.callback;if("function"===typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(c)&&o(c),w(n)}else o(c);f=r(c)}if(null!==f)var l=!0;else{var d=r(u);null!==d&&j(A,d.startTime-n),l=!1}return l}finally{f=null,p=i,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,E=!1,k=null,C=-1,O=5,T=-1;function R(){return!(t.unstable_now()-Te||125a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(g?(b(C),C=-1):g=!0,j(A,i-a))):(e.sortIndex=s,n(c,e),m||h||(m=!0,I(x))),e},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},16660:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>s});var o=n(85672);let i=0;const a=(r||(r=n.t(o,2)))["useId".toString()];function s(e){if(void 0!==a){const t=a();return null!=e?e:t}return function(e){const[t,n]=o.useState(e),r=e||t;return o.useEffect((()=>{null==t&&(i+=1,n("mui-".concat(i)))}),[t]),r}(e)}},16775:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(21484);const o=function(e){if("string"!==typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},16957:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(27326),o=n(85672);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"};var a=n(75890),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},17237:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>a});const r=e=>e,o=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})(),i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const r=i[t];return r?"".concat(n,"-").concat(r):"".concat(o.generate(e),"-").concat(t)}},17702:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,getFunctionName:()=>i});var r=n(89281);const o=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function i(e){const t="".concat(e).match(o);return t&&t[1]||""}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||i(e)||t}function s(e,t,n){const r=a(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}function l(e){if(null!=e){if("string"===typeof e)return e;if("function"===typeof e)return a(e,"Component");if("object"===typeof e)switch(e.$$typeof){case r.vM:return s(e,e.render,"ForwardRef");case r.lD:return s(e,e.type,"memo");default:return}}}},18233:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(85672),o=n(2978);let i=!0,a=!1;const s=new o.E,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function u(){i=!1}function d(){"hidden"===this.visibilityState&&a&&(i=!0)}function f(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return i||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}const p=function(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!f(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,s.start(100,(()=>{a=!1})),t.current=!1,!0)},ref:e}}},19590:(e,t,n)=>{"use strict";n.d(t,{A:()=>F});var r=n(57528),o=n(84849),i=n(27326),a=n(85672),s=n(72574),l=n(25234),c=n(8913),u=n(10247),d=n(29048),f=n(16775),p=n(60308),h=n(38009),m=n(37300),g=n(10644);function v(e){return(0,g.Ay)("MuiLinearProgress",e)}(0,m.A)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var b,y,w,A,x,S,E=n(65908);const k=["className","color","value","valueBuffer","variant"];let C,O,T,R,_,P;const M=(0,c.i7)(C||(C=b||(b=(0,r.A)(["\n 0% {\n left: -35%;\n right: 100%;\n }\n\n 60% {\n left: 100%;\n right: -90%;\n }\n\n 100% {\n left: 100%;\n right: -90%;\n }\n"])))),I=(0,c.i7)(O||(O=y||(y=(0,r.A)(["\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n"])))),j=(0,c.i7)(T||(T=w||(w=(0,r.A)(["\n 0% {\n opacity: 1;\n background-position: 0 -23px;\n }\n\n 60% {\n opacity: 0;\n background-position: 0 -23px;\n }\n\n 100% {\n opacity: 1;\n background-position: -200px -23px;\n }\n"])))),L=(e,t)=>"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress["".concat(t,"Bg")]:"light"===e.palette.mode?(0,u.a)(e.palette[t].main,.62):(0,u.e$)(e.palette[t].main,.5),N=(0,p.Ay)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["color".concat((0,f.A)(n.color))],t[n.variant]]}})((e=>{let{ownerState:t,theme:n}=e;return(0,i.A)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:L(n,t.color)},"inherit"===t.color&&"buffer"!==t.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===t.variant&&{backgroundColor:"transparent"},"query"===t.variant&&{transform:"rotate(180deg)"})})),B=(0,p.Ay)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t["dashedColor".concat((0,f.A)(n.color))]]}})((e=>{let{ownerState:t,theme:n}=e;const r=L(n,t.color);return(0,i.A)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===t.color&&{opacity:.3},{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),(0,c.AH)(R||(R=A||(A=(0,r.A)(["\n animation: "," 3s infinite linear;\n "]))),j)),z=(0,p.Ay)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t["barColor".concat((0,f.A)(n.color))],("indeterminate"===n.variant||"query"===n.variant)&&t.bar1Indeterminate,"determinate"===n.variant&&t.bar1Determinate,"buffer"===n.variant&&t.bar1Buffer]}})((e=>{let{ownerState:t,theme:n}=e;return(0,i.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"determinate"===t.variant&&{transition:"transform .".concat(4,"s linear")},"buffer"===t.variant&&{zIndex:1,transition:"transform .".concat(4,"s linear")})}),(e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&(0,c.AH)(_||(_=x||(x=(0,r.A)(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n "]))),M)})),D=(0,p.Ay)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t["barColor".concat((0,f.A)(n.color))],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})((e=>{let{ownerState:t,theme:n}=e;return(0,i.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==t.variant&&{backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"inherit"===t.color&&{opacity:.3},"buffer"===t.variant&&{backgroundColor:L(n,t.color),transition:"transform .".concat(4,"s linear")})}),(e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&(0,c.AH)(P||(P=S||(S=(0,r.A)(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n "]))),I)})),F=a.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiLinearProgress"}),{className:r,color:a="primary",value:c,valueBuffer:u,variant:p="indeterminate"}=n,m=(0,o.A)(n,k),g=(0,i.A)({},n,{color:a,variant:p}),b=(e=>{const{classes:t,variant:n,color:r}=e,o={root:["root","color".concat((0,f.A)(r)),n],dashed:["dashed","dashedColor".concat((0,f.A)(r))],bar1:["bar","barColor".concat((0,f.A)(r)),("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&"barColor".concat((0,f.A)(r)),"buffer"===n&&"color".concat((0,f.A)(r)),("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return(0,l.A)(o,v,t)})(g),y=(0,d.I)(),w={},A={bar1:{},bar2:{}};if("determinate"===p||"buffer"===p)if(void 0!==c){w["aria-valuenow"]=Math.round(c),w["aria-valuemin"]=0,w["aria-valuemax"]=100;let e=c-100;y&&(e=-e),A.bar1.transform="translateX(".concat(e,"%)")}else 0;if("buffer"===p)if(void 0!==u){let e=(u||0)-100;y&&(e=-e),A.bar2.transform="translateX(".concat(e,"%)")}else 0;return(0,E.jsxs)(N,(0,i.A)({className:(0,s.A)(b.root,r),ownerState:g,role:"progressbar"},w,{ref:t},m,{children:["buffer"===p?(0,E.jsx)(B,{className:b.dashed,ownerState:g}):null,(0,E.jsx)(z,{className:b.bar1,ownerState:g,style:A.bar1}),"determinate"===p?null:(0,E.jsx)(D,{className:b.bar2,ownerState:g,style:A.bar2})]}))}))},19634:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(84849),o=n(27326);const i=["values","unit","step"],a=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,o.A)({},e,{[t.key]:t.val})),{})};function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5}=e,l=(0,r.A)(e,i),c=a(t),u=Object.keys(c);function d(e){const r="number"===typeof t[e]?t[e]:e;return"@media (min-width:".concat(r).concat(n,")")}function f(e){const r="number"===typeof t[e]?t[e]:e;return"@media (max-width:".concat(r-s/100).concat(n,")")}function p(e,r){const o=u.indexOf(r);return"@media (min-width:".concat("number"===typeof t[e]?t[e]:e).concat(n,") and ")+"(max-width:".concat((-1!==o&&"number"===typeof t[u[o]]?t[u[o]]:r)-s/100).concat(n,")")}return(0,o.A)({keys:u,values:c,up:d,down:f,between:p,only:function(e){return u.indexOf(e)+1{"use strict";var r=n(85672),o=n(35906);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n