/*! For license information please see main.4c2983cfab1030b4cd11.js.LICENSE.txt */ (()=>{var e,t,n,r={2366(){},14141(){},15731(e,t,n){"use strict";e.exports=n.p+"fonts/montserrat-v31-latin-600.woff2"},19844(e,t,n){"use strict";e.exports=n.p+"fonts/montserrat-v31-latin-100italic.woff2"},23326(){},25509(){},29248(e,t,n){"use strict";e.exports=n.p+"fonts/montserrat-v31-latin-100.woff2"},30136(){},35358(e,t,n){var r={"./af":25177,"./af.js":25177,"./ar":61509,"./ar-dz":41488,"./ar-dz.js":41488,"./ar-kw":58676,"./ar-kw.js":58676,"./ar-ly":42353,"./ar-ly.js":42353,"./ar-ma":24496,"./ar-ma.js":24496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":82682,"./ar-sa.js":82682,"./ar-tn":89756,"./ar-tn.js":89756,"./ar.js":61509,"./az":95533,"./az.js":95533,"./be":28959,"./be.js":28959,"./bg":47777,"./bg.js":47777,"./bm":54903,"./bm.js":54903,"./bn":61290,"./bn-bd":17357,"./bn-bd.js":17357,"./bn.js":61290,"./bo":31545,"./bo.js":31545,"./br":11470,"./br.js":11470,"./bs":44429,"./bs.js":44429,"./ca":7306,"./ca.js":7306,"./cs":56464,"./cs.js":56464,"./cv":73635,"./cv.js":73635,"./cy":64226,"./cy.js":64226,"./da":93601,"./da.js":93601,"./de":77853,"./de-at":26111,"./de-at.js":26111,"./de-ch":54697,"./de-ch.js":54697,"./de.js":77853,"./dv":60708,"./dv.js":60708,"./el":54691,"./el.js":54691,"./en-au":53872,"./en-au.js":53872,"./en-ca":28298,"./en-ca.js":28298,"./en-gb":56195,"./en-gb.js":56195,"./en-ie":66584,"./en-ie.js":66584,"./en-il":65543,"./en-il.js":65543,"./en-in":9033,"./en-in.js":9033,"./en-nz":79402,"./en-nz.js":79402,"./en-sg":43004,"./en-sg.js":43004,"./eo":32934,"./eo.js":32934,"./es":97650,"./es-do":20838,"./es-do.js":20838,"./es-mx":17730,"./es-mx.js":17730,"./es-us":56575,"./es-us.js":56575,"./es.js":97650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":119,"./fa.js":119,"./fi":90527,"./fi.js":90527,"./fil":95995,"./fil.js":95995,"./fo":52477,"./fo.js":52477,"./fr":85498,"./fr-ca":26435,"./fr-ca.js":26435,"./fr-ch":37892,"./fr-ch.js":37892,"./fr.js":85498,"./fy":37071,"./fy.js":37071,"./ga":41734,"./ga.js":41734,"./gd":70217,"./gd.js":70217,"./gl":77329,"./gl.js":77329,"./gom-deva":32124,"./gom-deva.js":32124,"./gom-latn":93383,"./gom-latn.js":93383,"./gu":95050,"./gu.js":95050,"./he":11713,"./he.js":11713,"./hi":43861,"./hi.js":43861,"./hr":26308,"./hr.js":26308,"./hu":90609,"./hu.js":90609,"./hy-am":17160,"./hy-am.js":17160,"./id":74063,"./id.js":74063,"./is":89374,"./is.js":89374,"./it":88383,"./it-ch":21827,"./it-ch.js":21827,"./it.js":88383,"./ja":23827,"./ja.js":23827,"./jv":89722,"./jv.js":89722,"./ka":41794,"./ka.js":41794,"./kk":27088,"./kk.js":27088,"./km":96870,"./km.js":96870,"./kn":84451,"./kn.js":84451,"./ko":63164,"./ko.js":63164,"./ku":98174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":98174,"./ky":78474,"./ky.js":78474,"./lb":79680,"./lb.js":79680,"./lo":15867,"./lo.js":15867,"./lt":45766,"./lt.js":45766,"./lv":69532,"./lv.js":69532,"./me":58076,"./me.js":58076,"./mi":41848,"./mi.js":41848,"./mk":30306,"./mk.js":30306,"./ml":73739,"./ml.js":73739,"./mn":99053,"./mn.js":99053,"./mr":86169,"./mr.js":86169,"./ms":73386,"./ms-my":92297,"./ms-my.js":92297,"./ms.js":73386,"./mt":77075,"./mt.js":77075,"./my":72264,"./my.js":72264,"./nb":22274,"./nb.js":22274,"./ne":8235,"./ne.js":8235,"./nl":92572,"./nl-be":43784,"./nl-be.js":43784,"./nl.js":92572,"./nn":54566,"./nn.js":54566,"./oc-lnc":69330,"./oc-lnc.js":69330,"./pa-in":29849,"./pa-in.js":29849,"./pl":94418,"./pl.js":94418,"./pt":79834,"./pt-br":48303,"./pt-br.js":48303,"./pt.js":79834,"./ro":24457,"./ro.js":24457,"./ru":82271,"./ru.js":82271,"./sd":1221,"./sd.js":1221,"./se":33478,"./se.js":33478,"./si":17538,"./si.js":17538,"./sk":5784,"./sk.js":5784,"./sl":46637,"./sl.js":46637,"./sq":86794,"./sq.js":86794,"./sr":45719,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":45719,"./ss":56e3,"./ss.js":56e3,"./sv":41011,"./sv.js":41011,"./sw":40748,"./sw.js":40748,"./ta":11025,"./ta.js":11025,"./te":11885,"./te.js":11885,"./tet":28861,"./tet.js":28861,"./tg":86571,"./tg.js":86571,"./th":55802,"./th.js":55802,"./tk":59527,"./tk.js":59527,"./tl-ph":29231,"./tl-ph.js":29231,"./tlh":31052,"./tlh.js":31052,"./tr":85096,"./tr.js":85096,"./tzl":79846,"./tzl.js":79846,"./tzm":81765,"./tzm-latn":97711,"./tzm-latn.js":97711,"./tzm.js":81765,"./ug-cn":48414,"./ug-cn.js":48414,"./uk":16618,"./uk.js":16618,"./ur":57777,"./ur.js":57777,"./uz":57609,"./uz-latn":72475,"./uz-latn.js":72475,"./uz.js":57609,"./vi":21135,"./vi.js":21135,"./x-pseudo":64051,"./x-pseudo.js":64051,"./yo":82218,"./yo.js":82218,"./zh-cn":52648,"./zh-cn.js":52648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":31541,"./zh-mo.js":31541,"./zh-tw":50304,"./zh-tw.js":50304};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=35358},35825(){},40290(e,t,n){"use strict";e.exports=n.p+"fonts/montserrat-v31-latin-900italic.woff2"},41596(e,t,n){"use strict";e.exports=n.p+"fonts/montserrat-v31-latin-500.woff2"},42634(){},43331(){},43685(){},50477(){},51160(){},51318(e,t,n){"use strict";e.exports=n.p+"fonts/montserrat-v31-latin-300.woff2"},52492(){},53789(){},54308(){},54676(e,t,n){"use strict";n.d(t,{A:()=>H});var r=n(71354),o=n.n(r),i=n(76314),a=n.n(i),l=n(4417),c=n.n(l),u=new URL(n(29248),n.b),s=new URL(n(19844),n.b),d=new URL(n(82471),n.b),f=new URL(n(69915),n.b),p=new URL(n(51318),n.b),m=new URL(n(93974),n.b),y=new URL(n(97477),n.b),h=new URL(n(87171),n.b),v=new URL(n(41596),n.b),g=new URL(n(57376),n.b),b=new URL(n(15731),n.b),w=new URL(n(92583),n.b),E=new URL(n(77346),n.b),x=new URL(n(65090),n.b),S=new URL(n(93657),n.b),C=new URL(n(88817),n.b),O=new URL(n(55368),n.b),k=new URL(n(40290),n.b),_=a()(o()),A=c()(u),j=c()(s),T=c()(d),I=c()(f),P=c()(p),N=c()(m),D=c()(y),M=c()(h),F=c()(v),B=c()(g),L=c()(b),R=c()(w),G=c()(E),z=c()(x),W=c()(S),U=c()(C),V=c()(O),Z=c()(k);_.push([e.id,`/* montserrat-100 - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: normal;\n font-weight: 100;\n src: url(${A}) format('woff2');\n}\n/* montserrat-100italic - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: italic;\n font-weight: 100;\n src: url(${j}) format('woff2'); \n}\n/* montserrat-200 - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: normal;\n font-weight: 200;\n src: url(${T}) format('woff2'); \n}\n/* montserrat-200italic - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: italic;\n font-weight: 200;\n src: url(${I}) format('woff2'); \n}\n/* montserrat-300 - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: normal;\n font-weight: 300;\n src: url(${P}) format('woff2'); \n}\n/* montserrat-300italic - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: italic;\n font-weight: 300;\n src: url(${N}) format('woff2'); \n}\n/* montserrat-regular - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: normal;\n font-weight: 400;\n src: url(${D}) format('woff2'); \n}\n/* montserrat-italic - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: italic;\n font-weight: 400;\n src: url(${M}) format('woff2'); \n}\n/* montserrat-500 - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: normal;\n font-weight: 500;\n src: url(${F}) format('woff2'); \n}\n/* montserrat-500italic - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: italic;\n font-weight: 500;\n src: url(${B}) format('woff2'); \n}\n/* montserrat-600 - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: normal;\n font-weight: 600;\n src: url(${L}) format('woff2'); \n}\n/* montserrat-600italic - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: italic;\n font-weight: 600;\n src: url(${R}) format('woff2'); \n}\n/* montserrat-700 - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: normal;\n font-weight: 700;\n src: url(${G}) format('woff2'); \n}\n/* montserrat-700italic - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: italic;\n font-weight: 700;\n src: url(${z}) format('woff2'); \n}\n/* montserrat-800 - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: normal;\n font-weight: 800;\n src: url(${W}) format('woff2'); \n}\n/* montserrat-800italic - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: italic;\n font-weight: 800;\n src: url(${U}) format('woff2'); \n}\n/* montserrat-900 - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: normal;\n font-weight: 900;\n src: url(${V}) format('woff2'); \n}\n/* montserrat-900italic - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: italic;\n font-weight: 900;\n src: url(${Z}) format('woff2'); \n}\n`,"",{version:3,sources:["webpack://./src/css/fonts.css"],names:[],mappings:"AAAA,2BAA2B;AAC3B;EACE,kBAAkB;EAClB,yBAAyB;EACzB,kBAAkB;EAClB,gBAAgB;EAChB,4DAA+F;AACjG;AACA,iCAAiC;AACjC;EACE,kBAAkB;EAClB,yBAAyB;EACzB,kBAAkB;EAClB,gBAAgB;EAChB,4DAAqG;AACvG;AACA,2BAA2B;AAC3B;EACE,kBAAkB;EAClB,yBAAyB;EACzB,kBAAkB;EAClB,gBAAgB;EAChB,4DAA+F;AACjG;AACA,iCAAiC;AACjC;EACE,kBAAkB;EAClB,yBAAyB;EACzB,kBAAkB;EAClB,gBAAgB;EAChB,4DAAqG;AACvG;AACA,2BAA2B;AAC3B;EACE,kBAAkB;EAClB,yBAAyB;EACzB,kBAAkB;EAClB,gBAAgB;EAChB,4DAA+F;AACjG;AACA,iCAAiC;AACjC;EACE,kBAAkB;EAClB,yBAAyB;EACzB,kBAAkB;EAClB,gBAAgB;EAChB,4DAAqG;AACvG;AACA,+BAA+B;AAC/B;EACE,kBAAkB;EAClB,yBAAyB;EACzB,kBAAkB;EAClB,gBAAgB;EAChB,4DAAmG;AACrG;AACA,8BAA8B;AAC9B;EACE,kBAAkB;EAClB,yBAAyB;EACzB,kBAAkB;EAClB,gBAAgB;EAChB,4DAAkG;AACpG;AACA,2BAA2B;AAC3B;EACE,kBAAkB;EAClB,yBAAyB;EACzB,kBAAkB;EAClB,gBAAgB;EAChB,4DAA+F;AACjG;AACA,iCAAiC;AACjC;EACE,kBAAkB;EAClB,yBAAyB;EACzB,kBAAkB;EAClB,gBAAgB;EAChB,4DAAqG;AACvG;AACA,2BAA2B;AAC3B;EACE,kBAAkB;EAClB,yBAAyB;EACzB,kBAAkB;EAClB,gBAAgB;EAChB,6DAA+F;AACjG;AACA,iCAAiC;AACjC;EACE,kBAAkB;EAClB,yBAAyB;EACzB,kBAAkB;EAClB,gBAAgB;EAChB,6DAAqG;AACvG;AACA,2BAA2B;AAC3B;EACE,kBAAkB;EAClB,yBAAyB;EACzB,kBAAkB;EAClB,gBAAgB;EAChB,6DAA+F;AACjG;AACA,iCAAiC;AACjC;EACE,kBAAkB;EAClB,yBAAyB;EACzB,kBAAkB;EAClB,gBAAgB;EAChB,6DAAqG;AACvG;AACA,2BAA2B;AAC3B;EACE,kBAAkB;EAClB,yBAAyB;EACzB,kBAAkB;EAClB,gBAAgB;EAChB,6DAA+F;AACjG;AACA,iCAAiC;AACjC;EACE,kBAAkB;EAClB,yBAAyB;EACzB,kBAAkB;EAClB,gBAAgB;EAChB,6DAAqG;AACvG;AACA,2BAA2B;AAC3B;EACE,kBAAkB;EAClB,yBAAyB;EACzB,kBAAkB;EAClB,gBAAgB;EAChB,6DAA+F;AACjG;AACA,iCAAiC;AACjC;EACE,kBAAkB;EAClB,yBAAyB;EACzB,kBAAkB;EAClB,gBAAgB;EAChB,6DAAqG;AACvG",sourcesContent:["/* montserrat-100 - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: normal;\n font-weight: 100;\n src: url('../assets/fonts/montserrat-v31-latin/montserrat-v31-latin-100.woff2') format('woff2');\n}\n/* montserrat-100italic - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: italic;\n font-weight: 100;\n src: url('../assets/fonts/montserrat-v31-latin/montserrat-v31-latin-100italic.woff2') format('woff2'); \n}\n/* montserrat-200 - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: normal;\n font-weight: 200;\n src: url('../assets/fonts/montserrat-v31-latin/montserrat-v31-latin-200.woff2') format('woff2'); \n}\n/* montserrat-200italic - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: italic;\n font-weight: 200;\n src: url('../assets/fonts/montserrat-v31-latin/montserrat-v31-latin-200italic.woff2') format('woff2'); \n}\n/* montserrat-300 - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: normal;\n font-weight: 300;\n src: url('../assets/fonts/montserrat-v31-latin/montserrat-v31-latin-300.woff2') format('woff2'); \n}\n/* montserrat-300italic - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: italic;\n font-weight: 300;\n src: url('../assets/fonts/montserrat-v31-latin/montserrat-v31-latin-300italic.woff2') format('woff2'); \n}\n/* montserrat-regular - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: normal;\n font-weight: 400;\n src: url('../assets/fonts/montserrat-v31-latin/montserrat-v31-latin-regular.woff2') format('woff2'); \n}\n/* montserrat-italic - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: italic;\n font-weight: 400;\n src: url('../assets/fonts/montserrat-v31-latin/montserrat-v31-latin-italic.woff2') format('woff2'); \n}\n/* montserrat-500 - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: normal;\n font-weight: 500;\n src: url('../assets/fonts/montserrat-v31-latin/montserrat-v31-latin-500.woff2') format('woff2'); \n}\n/* montserrat-500italic - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: italic;\n font-weight: 500;\n src: url('../assets/fonts/montserrat-v31-latin/montserrat-v31-latin-500italic.woff2') format('woff2'); \n}\n/* montserrat-600 - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: normal;\n font-weight: 600;\n src: url('../assets/fonts/montserrat-v31-latin/montserrat-v31-latin-600.woff2') format('woff2'); \n}\n/* montserrat-600italic - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: italic;\n font-weight: 600;\n src: url('../assets/fonts/montserrat-v31-latin/montserrat-v31-latin-600italic.woff2') format('woff2'); \n}\n/* montserrat-700 - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: normal;\n font-weight: 700;\n src: url('../assets/fonts/montserrat-v31-latin/montserrat-v31-latin-700.woff2') format('woff2'); \n}\n/* montserrat-700italic - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: italic;\n font-weight: 700;\n src: url('../assets/fonts/montserrat-v31-latin/montserrat-v31-latin-700italic.woff2') format('woff2'); \n}\n/* montserrat-800 - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: normal;\n font-weight: 800;\n src: url('../assets/fonts/montserrat-v31-latin/montserrat-v31-latin-800.woff2') format('woff2'); \n}\n/* montserrat-800italic - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: italic;\n font-weight: 800;\n src: url('../assets/fonts/montserrat-v31-latin/montserrat-v31-latin-800italic.woff2') format('woff2'); \n}\n/* montserrat-900 - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: normal;\n font-weight: 900;\n src: url('../assets/fonts/montserrat-v31-latin/montserrat-v31-latin-900.woff2') format('woff2'); \n}\n/* montserrat-900italic - latin */\n@font-face {\n font-display: swap;\n font-family: 'Montserrat';\n font-style: italic;\n font-weight: 900;\n src: url('../assets/fonts/montserrat-v31-latin/montserrat-v31-latin-900italic.woff2') format('woff2'); \n}\n"],sourceRoot:""}]),_.locals={};const H=_},55368(e,t,n){"use strict";e.exports=n.p+"fonts/montserrat-v31-latin-900.woff2"},57376(e,t,n){"use strict";e.exports=n.p+"fonts/montserrat-v31-latin-500italic.woff2"},62663(){},64826(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(71354),o=n.n(r),i=n(76314),a=n.n(i),l=n(54676),c=a()(o());c.i(l.A),c.push([e.id,".VWQyKZr22FK6aNsLyNC3:after {\n /* Disclaimer: not needed to show 'powered by Google' if also a Google Map is shown */\n\n background-image: none !important;\n height: 0px;\n padding: 0;\n margin: 0;\n}","",{version:3,sources:["webpack://./src/css/main.css"],names:[],mappings:"AAEA;IACI,qFAAqF;;IAErF,iCAAiC;IACjC,WAAW;IACX,UAAU;IACV,SAAS;AACb",sourcesContent:["@import url('./fonts.css');\n\n.pac-container:after {\n /* Disclaimer: not needed to show 'powered by Google' if also a Google Map is shown */\n\n background-image: none !important;\n height: 0px;\n padding: 0;\n margin: 0;\n}"],sourceRoot:""}]),c.locals={"pac-container":"VWQyKZr22FK6aNsLyNC3"};const u=c},65090(e,t,n){"use strict";e.exports=n.p+"fonts/montserrat-v31-latin-700italic.woff2"},65217(){},65922(){},67857(){},69915(e,t,n){"use strict";e.exports=n.p+"fonts/montserrat-v31-latin-200italic.woff2"},76737(){},77346(e,t,n){"use strict";e.exports=n.p+"fonts/montserrat-v31-latin-700.woff2"},79070(e,t,n){"use strict";var r=n(96540),o=n(5338),i=n(84976),a=n(47767),l=n(78094),c="11px",u="12px",s="13px",d="14px",f="16px",p="18px",m="#1482fd",y="#6f6f6f",h="#cbcbcb",v="#F03A5F",g="#ffffff",b="#333333",w="#212229";const E=(0,l.createGlobalStyle)(["body{margin:0px;font-family:'Montserrat';width:100%;height:100%;overflow:hidden;}button{font-family:'Montserrat';}input{font-family:'Montserrat';color:",";}"],b);var x=n(72635),S=n(22022),C=n(65606);const O={GMAPS_API_KEY:C.env.NEXT_PUBLIC_GMAPS_API_KEY||"AIzaSyDAgEeI0DnlqcTSD0EdCHK4KG7b0gjIjyw",LANGUAGE:C.env.NEXT_PUBLIC_LANGUAGE,THEME_PRIMARY_COLOR:null,THEME_SECONDARY_COLOR:null},k=JSON.parse('{"admin":{"system-settings":{}},"reports":{"title":"Reports","options":{"rides":"Ride Operation","fieldServicing":"Field Servicing"}},"map":{"searchPlaceholder":"Search","topBanner":{"title":"Add stations using the pin tool or by searching for a specific address","searchPlaceholder":"Search location","addStationButton":"Add station"}},"upload":"Upload","new":"New","addressPlaceholder":"Loading full address","addVariationButton":"+ Add variation","deleteVariationButton":"Delete variation","deleteVariationText":"Delete this variation? This action cannot be undone.","deleteExperimentButton":"Delete experiment","deleteExperimentText":"Delete this experiment? This action cannot be undone.","addExperimentButton":"+ New Experiment","untitledExperimentName":"Untitled Experiment","genericBackButtonText":"Back","searchLocationPlaceholder":"Search by location","genericServerError":"Oops, something went wrong. Please wait a moment and try again","logout":"Log out","deleteVariationError":"Cannot delete a variation while it\'s running.","yesDeleteButtonText":"Yes, delete","variationType":{"fieldServicing":"Field servicing","rides":"Rides"},"cloneToAnotherExperiment":{"buttonLabel":"Clone to another experiment","title":"Clone to another experiment","description":"Select an experiment to clone this variation to","selectExperiment":"Select an experiment","selectVariation":"Select a variation","clone":"Clone","close":"Close"},"variationStatus":{"pending":"pending","initializing":"initializing","preparingData":"preparing data","failed":"failed","completed":"completed","running":"running","draft":"draft","awaitingApproval":"awaiting approval"},"inputLabels":{"name":"Name","details":"Description","tags":"Tags","simType":"Simulation Type"},"menu":{"experiments":"Experiments","reports":"Data Management","user":"User"},"general":{"days":{"monday":"Monday","tuesday":"Tuesday","wednesday":"Wednesday","thursday":"Thursday","friday":"Friday","saturday":"Saturday","sunday":"Sunday"},"required":"Required"},"fileUploader":{"fileErrorText":"This file does not have the required structure.","genericErrorText":"Something went wrong, Please wait a moment and try again.","timeLimitationValidation":{"invalidTime":"Invalid time \\"{{time}}\\" (expected HH:MM)","missingDay":"Missing day on time limitation {{start}}-{{end}}","invalidDay":"Invalid day \\"{{day}}\\" on time limitation {{start}}-{{end}}","invalidRange":"Invalid time range: {{start}}-{{end}} (end must be after start)","overnightRange":"Overnight range {{start}}-{{end}} is not supported. Split into two same-day entries instead.","overlappingHeader":"Station \\"{{address}}\\" has overlapping time limitations:","overlapDetail":"{{start1}}-{{end1}} overlaps with {{start2}}-{{end2}}","stationPrefix":"Station \\"{{address}}\\""},"successMessage":"Upload Successful","text":"Drag & drop file here or","browseText":"Browse files","requiredField":"Required: ","invalidField":"Invalid field: ","misStructuredField":"Incorrect format found in column: ","supported":{"csv":"Supported: CSV files","csvAndJson":"Supported: CSV, JSON files","geo":"Supported: GeoJSON files","json":"Supported: JSON files"}},"experimentsEmptyState":{"title":"Click New Experiment to get started","body":"You\'ll see your experiments and variations here"},"addExperimentWizard":{"saveAndExit":"Save and exit","title":"New Variation","wizardViewStates":{"readOnly":"Read Only"},"cloneTitle":"Copy of {{var_name}}","nextStep":"Next step","launchSimulation":"Create variation","backButton":"Back","untitledGroup":"Untitled group","tableHeader":{"edit":"Edit Name","delete":"Delete","reports":"Reports"},"tableRowEndButtons":{"view":"View","delete":"Delete","duplicate":"Duplicate","logs":"Logs","kepler":"Kepler"},"steps":{"details":{"title":"Details","description":"Provide background information and context for what is being tested in this variation.","placeHolders":{"name":"Add a descriptive name...","details":"Describe what is being tested...","tags":"Press enter to add a tag..."},"simulationTypes":{"rides":{"name":"Ride operation","description":"Any ride-based operation, such as ride hailing, delivery, logistic services and more"},"fieldServicing":{"name":"Field servicing","description":"Simulate operations of predetermined vehicle routes, such as field servicing or other mobile workforces"},"disabledText":"Variations in this experiment must be of type"}},"territory":{"title":"Territory","incompleteErrorText":"Please upload a GeoJSON file or draw a territory on the map","popupErrorTitle":"Error","popupErrorText":"There was an error uploading the file. Please verify the file is a valid GeoJSON and try again.","description":"At the start of the simulation, vehicles will be placed randomly throughout the territory. Note that rides and routes do not need to be contained within the territory."},"parkingStations":{"title":"Parking Stations","stations":"Stations","incompleteErrorText":"Please add at least one parking station","description":"Parking stations define where vehicles are routed at the end of their shifts. Vehicles are triggered to drive to a parking station at a specified time before the shift end (defined in the settings). The station nearest to the vehicle is selected. Vehicles also start upcoming shifts from their respective parking station."},"fillingStations":{"stationOptions":{"electric":"EV","ice":"ICE"},"stationTypeOptions":{"charging":"Filling","parking":"Parking","parking_and_charging":"Filling & Parking","maintenance":"Maintenance"},"stationType":"Station type:","stationDetails":"Station details:","stationLocation":"Station location:","title":"Stations","stationTypeLabel":"Type","stationRateLabel":"Fill rate","stationSlotsLabel":"Slots at location","parkingSpotsLabel":"Parking spots","maintenanceCapacityLabel":"Maintenance capacity","stationsLabel":"Stations","maintenanceLabel":"Maintenance","endOfShiftChargingLabel":"End of Simulation Charging","duringShiftChargingLabel":"During Simulation Charging","rateUnitIce":"min","rateUnitEV":"Kw","slots":"Slots","spots":"spots","incompleteErrorText":"Please add at least one filling station","description":"Define station locations. Filling Stations: Vehicles are routed here when they reach their Refuel Threshold (defined in settings) to refuel/recharge. Parking Stations: Vehicles are routed here at the end of their shifts. Maintenance Stations: Vehicles are routed here for scheduled maintenance tasks.","showPublicStationsLable":"Add public EV charging stations","importPublicChargingStations":"Import public charging stations","operators":"Operators","powerSupply":"Power supply","kW":"kW","loading":"Loading...","stationsFound":"Stations found:","import":"Import","removeAll":" Remove All","capabilitiesLabel":"Parking Type","capabilities":{"staging":"Staging","parking":"Parking","parking_and_staging":"Both"},"uploadSection":{"stationsUploadTitle":"Stations Upload:","maintenanceStationsUploadTitle":"Maintenance Stations Upload:","downloadExample":"Download example","downloadExampleFile":"Download example file"},"emptyState":{"noStationAdded":"No station added","addStationsInstruction":"Add stations using the pin tool or by searching for a specific address on the map"},"newStationConfiguration":{"title":"New station configurations","stationTypeLabel":"Station type","subTypeLabel":"Sub type","fillRateLabel":"Fill rate","slotsLabel":"Slots","chargersLabel":"Chargers","parkingSpotsLabel":"Parking spots","stationCapacityLabel":"Station capacity","availableTasksLabel":"Available tasks","taskTypeLabel":"Task type","taskDurationLabel":"Task duration","addTaskButton":"Add task","cancelButton":"Cancel","addStationButton":"Add Station","searchPlaceholder":"Search","addPlaceholder":"Add","requiredError":"Required","fillRateRequiredError":"Fill rate is required","fillRateRangeError":"Fill rate must be positive","slotsRequiredError":"Slots amount is required","slotsRangeError":"Slots amount must be Positive","chargersRequiredError":"Chargers amount is required","chargersRangeError":"Chargers amount must be positive","parkingSpotsRequiredError":"Parking spots is required","parkingSpotsRangeError":"Parking spots must be positive","stationCapacityRequiredError":"Station capacity is required","stationCapacityRangeError":"Station capacity must be 0 or more","durationRequiredError":"Duration is required","durationRangeError":"Invalid duration","invalidFormatError":"Invalid format","taskMissingError":"Add at least one task to continue","duplicateTaskError":"Value already in use. Try different one."}},"vehiclesAndRoutes":{"title":"Vehicles and Routes","description":"Define the properties and servicing routes that will be performed by each vehicle.","incompleteErrorText":"Please upload a vehicles and routes file"},"vehicles":{"options":{"bodyType":{"hatchback":"Hatchback","sedan":"Sedan","coupe":"Coupe","estate":"Estate","minivan":"Minivan","van":"Van","truck":"Truck","convertible":"Convertible","shuttle":"Shuttle","suv":"SUV","bike":"Bike","motorcycle":"Motorcycle"},"power":{"ice":"ICE","electric":"EV"},"model":{"other":"Other"}},"title":"Vehicles","description":"Define groups of vehicle models and their configurations.","incompleteErrorText":"Please add at least one vehicle group","addGroup":"+ Add vehicle group","tableColumns":{"amount":"NO.","modelName":"MODEL NAME","labels":"LABELS","bodyType":"BODY TYPE","capacity":"CAPACITY","powerTrain":"POWER TRAIN","cost":{"metric":"COST/KM","imperial":"COST/MI"},"range":{"metric":"GROSS RANGE (KM)","imperial":"GROSS RANGE (MI)"},"batteryCapacity":"BATTERY CAPACITY","chargeRateKWH":"CHARGE RATE (KW)","idleConsumption":"IDLE CONSUMPTION (KW)","chargingCurve":{"invalidFile":"Invalid file format","invalidNumber":"Invalid number","numberGreaterThanZero":"Value must be positive","errors":{"header":"File format error","monotonicallyIncrease":"State of charge must be monotonically increasing","lastEntryStateOfCharge":"Last entry of state of charge must be 100","invalidFileError":"Invalid file format","close":"Close"},"curve":"Curve","numberOption":{"title":"Constant","subtitle":"Fill in fixed value"},"curveOption":{"title":"Curve","subtitle":"Upload a CSV file with the charging curve"}}}},"shifts":{"initialLocation":{"title":"Start Location (Lat, Lng)","lat":"Latitude","lng":"Longitude"},"buttonMenu":{"edit":"Edit","delete":"Delete"},"title":"Shifts","addShift":"+ Add shift","save":"Save","cancel":"Cancel","time":"Shift time","name":"Shift name","location":"Start Location","requireErrorLabel":"Required","uniqueErrorLabel":"Name already exists","edit":"Edit","delete":"Delete","incompleteErrorText":"Please add driver shifts","description":"Define driver shifts, day and time"},"drivers":{"title":"Drivers","description":"Driver groups that are assigned shifts will be limited to working only in the specified hours. Driver groups with no shifts will be considered available 24/7.","incompleteErrorText":"Please add at least one driver group","addGroup":"+ Add driver group","tableColumns":{"amount":"AMOUNT","groupName":"GROUP NAME","driverShifts":"DRIVER SHIFTS","vehicleLabel":"VEHICLE LABEL"}},"demandData":{"title":"Demand Data","description":"Upload a CSV file of demand data. The file includes up to 24 hours of data that includes individual rides and defines pickup and dropoff locations, time windows, and more. Download the example file for more instructions.","demandPrediction":{"title":"Demand Prediction","description":"use demand prediction for placement (instead of 100% accurate prediction)"},"incompleteErrorText":"Please upload a demand data file","exampleDownload":"Download example file","downloadSuffixExample":"Download example {{suffix}}","failedUploadText":"File upload failed","errorTitle":"Error","uploadingMessage":"File uploading...","chooseFileFromListHeader":"Select from existing data sets","chooseFileFromListPlaceholder":"Select a saved demand file..."},"tasks":{"title":"Tasks","description":"Upload a CSV file of tasks data. The file includes individual tasks and defines order id, vehicle group, order time and task type.","incompleteErrorText":"Please upload a tasks data file","unsupportedTaskTypesError":"Some task types are not supported by any maintenance station","unsupportedVehicleGroupsError":"Some vehicle groups are not defined in vehicle labels","exampleDownload":"Download example file","downloadSuffixExample":"Download example {{suffix}}","failedUploadText":"File upload failed","errorTitle":"Error","uploadingMessage":"File uploading...","chooseFileFromListHeader":"Select from existing data sets","chooseFileFromListPlaceholder":"Select a saved tasks file..."},"settings":{"title":"Settings","description":"","unit":{"percentage":"%","number":"number","minutes":"minutes","currency":"$","vehicles":"vehicles","placementMoves":"Max moves","demandStagingMaxDistance":"Max distance","km":"km","meters":"Meters","demandChargingTimeWindow":"Demand window (minutes)"},"entries":{"nullOption":"None","placement":{"title":"Placement","description":"When Vehicles are idle, route them according to three available options: \\n 1. Staging: Vehicles are routed to the nearest staging station.\\n 2. Territory Wide: Vehicles are routed to high demand area. \\n 3. Demand Staging: Vehicles are routed to staging station located near or in high demand area","options":{"off":{"title":"Off"},"staging":{"title":"Staging"},"territoryWide":{"title":"Territory Wide"},"demandStaging":{"title":"Demand Staging"}},"active":{"false":"Off","true":"On"},"maxMoves":{"title":"Max moves per placement interval"}},"demandSensitiveCharging":{"title":"Demand Sensitive Charging","description":"Allow dynamic charging limit based on demand"},"idleType":{"title":"Idle Strategy","description":"Choose from two available idle strategies: \\"Idle In Place\\" and \\"Circling Idle\\"","descriptionList":{"inPlace":"Idle In Place (default selection): The vehicle will remain at the last active location, such as the dropoff point.","circling":"Circling Idle: The vehicle will continue driving idly."},"active":{"false":"Off","true":"On"},"options":{"inPlace":{"title":"Idle in place"},"circling":{"title":"Circling Idle"}},"circlingDistance":{"title":"Max moves per placement interval"}},"router":{"title":"Routing Engine","description":"Define the engine that will calculate vehicle routes. For OSRM or Google Maps, realtime ETAs are calculated based on the ride times and day of week.","options":{"osrm":{"title":"OSRM"},"gmaps":{"title":"Google Maps"},"linear":{"title":"Linear"}}},"secondaryRouter":{"title":"Adjust Trip Durations According to External Mapping Provider","description":"This mapping provider will be used to calculate a dynamic coefficient (based on time of day) that will be applied to the primary mapping provider.","options":{"null":{"title":"Off"},"gmaps":{"title":"Google Maps"}}},"pooling":{"title":"Ride Pooling","description":"Set whether rides will be pooled in Ride Operation simulations.","options":{"active":{"title":"Active"},"passive":{"title":"Passive"},"no":{"title":"No pooling"}}},"maxStopPointsOnVehicle":{"title":"Max Stop Points on Vehicle","description":"Set the maximum number of stop points that can be assigned to a vehicle at once. This setting does not limit adding non-ride stop points."},"refuelThreshold":{"title":"Filling Threshold","description":"Set the value that will determine when vehicles will be sent to refuel/charge."},"rideRefuelThreshold":{"title":"Ride Filling Threshold","description":"Set the minimum permitted fuel/charge level that a vehicle may reach after completing a ride."},"gmapsApiKey":{"title":"Gmaps API key","description":"desc"},"timeToParkVehicleBeforeShiftEnd":{"title":"Route to parking stations at shift end","description":"Set the amount of time before the end of the shift when vehicles need to start driving to the nearest parking station. Note that the simulator will enforce that all rides are completed before this time."},"driftFactor":{"title":"Max Drift From Direct Route - Percentage","description":"Set the maximum amount that a ride can be extended due to ride pooling as a percentage of the direct route distance."},"driftConstant":{"title":"Max Drift From Direct Route - minutes","description":"Set the maximum amount of time that a ride can be extended due to ride pooling relative to the duration of a direct route."},"durationCoefficient":{"title":"Travel time coefficient","description":"This coefficient will be used to increase/decrease the travel time returned from the mapping provider with every route calculation"},"distanceCoefficient":{"title":"Distance coefficient","description":"This coefficient will be used to increase/decrease the distance returned from the mapping provider with every route calculation"},"maxStationsToCheckForBestCharger":{"title":"Max Stations To Check For Best Charger","description":"The number of chargers that are “scored” when sending a vehicle to charge"},"indefleet":{"title":"Automated In/de-fleeting","description":"Automatically in-fleet and de-fleet vehicles from/to parking locations based on a predefined policy or actual demand levels.","active":{"false":"Off","true":"On"},"replaceChargingVehicles":{"title":"Replace charging vehicles","false":"Off","true":"On","description":"Activate a parked vehicle instead of another vehicle that gets routed to charge."},"indefleetDemandBased":{"title":"Demand Based"},"timeBasedVehicleAvailability":{"title":"Predefined policy"}},"chargeOnTheWay":{"title":"Opportunity-Based Charging","description":"Idle vehicles will be sent to charge","active":{"title":"Opportunity-Based Charging","false":"Off","true":"On"},"threshold":{"title":"Filling Threshold","description":"The maximum threshold for considering opportunistic charging"},"maxTimeInMinutes":{"title":"Max Driving Time (minutes)","description":"Maximum Driving Time to Charging Station"},"demandSensitive":{"title":"Demand Sensitive","false":"Off","true":"On","description":"Change the amount of vehicles that will be sent to charge based on the demand level"},"ridePerVehicleRatio":{"title":"Rides per Vehicle","description":"The relation between rides and vehicles that will be used to calculate the demand level"},"demandWindowEnd":{"title":"Demand Window","description":"The time window that will be used to calculate the demand level"}},"minInfleetedVehicles":{"label":"Minimum In-fleeted Vehicles","hover":"The minimum number of vehicles that should stay in-fleeted regardless of the ratio"},"scheduleInterval":{"label":"Execution Frequency","hover":"The amount of time between in/de fleeting events"},"demandWindowEnd":{"label":"Prediction Window","hover":"Length of Time Window For Demand Prediction"},"ridePerVehicleRatio":{"label":"Rides per Vehicle","hover":"The target ratio between rides (in the demand window) and in-fleeted vehicles. Vehicles will in-fleet or de-fleet to maintain this ratio."},"maxFuelRangeForRefuel":{"label":"Filing Threshold","hover":"If a de-fleeted vehicle fuel/charge level is below this threshold, the vehicle will charge before parking."},"evChargingRates":{"title":"kWh Cost","description":"Configure the cost of EV charging"},"defaultRate":{"label":"Rate"},"hourlyRates":{"label":"Hourly Rate","newLine":"+ Add hourly rate"},"gasPrice":{"title":"Gas Price","description":"Configure the cost for ICE refueling"},"maxChargeLevelSettings":{"title":"Max Charge Level","description":"Set the level to which EVs will be charged","options":{"fixed":{"title":"Fixed"},"demandSensitive":{"title":"Demand Sensitive"}}},"vehiclePostRefuelWaitTime":{"title":"Vehicle Unavailable Time After Charge (Seconds)","description":"Time each vehicle should be unavailable after charging"},"chargerPostRefuelWaitTime":{"title":"Charger Unavailable Time After Charge (Seconds)","description":"Time each charger should be unavailable after charging"},"matchToBestNVehicles":{"title":"Best N Vehicles to be Considered for Matching","description":"Out of the best matches sorted vehicles list, how many vehicles should be relevant for matching"},"retriesOnMatching":{"title":"Amount of Retries If Vehicle Not Found","description":"How many tries should the booking try to match to any of the N best vehicles. Leave empty for unlimited"},"demandFileUrl":{"title":"Custom url of demand file (skip file upload)","description":"Custom url of demand file (skip file upload)"},"snapshotFileUrl":{"title":"Custom url of vehicle snapshot file (skip file upload)","description":"Custom url of vehicle snapshot file (skip file upload)"},"DemandSensitiveCharging":{"title":"Demand Sensitive Charging","description":"Upload a settings-related CSV/JSON file and store its URL"},"osrmServer":{"title":"Mapping Layer","description":"Select which mapping layer will be used. Additional maps can be added based on needs.","options":{"osrm":{"title":"Standard"},"northCalifornia":{"title":"North California OSRM"},"noDriverNorthCalifornia":{"title":"SF without D.R.I.V.E.R"}}},"mapsMaxDeviation":{"title":"Distance Matrix max deviation","description":"Maximum distance allowed between actual points in the simulation to OSRM\'s matched location."},"startingChargeLevel":{"title":"Starting Charge Level","description":"Define the charge/fuel level for vehicles at the start of the simulation."},"min":{"label":"Min"},"max":{"label":"Max"},"minimalChargingLevelAtEndOfShift":{"title":"Minimal Charge Level At End of Simulation","description":"Define the minimal charge level that vehicles can have at the end of the simulation."},"routePlanConcurrency":{"title":"Matching Concurrency","description":"Set the maximum amount of parallel matching requests."},"critical":{"title":"Critical Simulation","description":"Allocate dedicated resources for this simulation","active":{"true":"On","false":"Off"}},"accelerated":{"title":"Accelerated Simulation","description":"Make the simulation run faster by using air distance (vs the actual route distance) during dispatching.","active":{"undefined":"Off","true":"On","false":"Off"}},"matchingEngine":{"title":"Matching Engine","description":"Determines how rides are matched to vehicles. Select “Traditional” to run more expedient simulations where rides are not pooled and where ride stacking is not required (ie, where rides can be assigned to vehicles that already have rides assigned). Select the “Autofleet” option to support ride pooling and ride stacking.","options":{"autofleet":{"title":"Autofleet"},"greedy":{"title":"Traditional"}}},"raasSimulatorBranch":{"title":"Simulator Branch","description":"Choose the raas-simulator job branch to dispatch."},"measurePerformance":{"title":"Measure Performance","description":"Measure the performance of the simulation","active":{"true":"On","false":"Off"}},"allowRemoteDebugging":{"title":"Allow Remote Debugging","description":"Allow remote debugging of the simulation","active":{"true":"On","false":"Off","undefined":"Off"}},"remoteDebugWaitForClient":{"title":"Wait for Debug Client","description":"Wait for the debug client to connect before starting the simulation","active":{"true":"On","false":"Off","undefined":"Off"}},"generalSeed":{"title":"General Seed","description":"Set the general seed for the simulation"},"logLevel":{"title":"Log Level","description":"Choose the minimal log level for this simulation\'s logs","options":{"debug":{"title":"Debug"},"info":{"title":"Info"},"warning":{"title":"Warning"},"error":{"title":"Error"},"critical":{"title":"Critical"}}},"logTypes":{"title":"Log Types","description":"Enter the types of debug logs to output as a comma separated list. Ex. general,charging"},"exportPath":{"title":"Export path for simulation raw artifacts","description":"Can be GCS (gs://) or S3 (s3://) path, if none provided the data would still be available on the UI"},"chargerSelectionStrategy":{"title":"Charger Selection Strategy","description":"Define how vehicles select charging stations when multiple options are available","descriptionList":{"firstToLeave":"First to Leave: Selects a charger based on driving time, queue wait time, and charging duration.","firstToArrive":"First to Arrive: Selects a charger based on driving time and queue wait time."},"options":{"first_to_leave":{"title":"First to Leave"},"first_to_arrive":{"title":"First to Arrive"}}},"advancedRouting":{"title":"Advanced Routing","description":"Enable advanced routing algorithem","active":{"true":"On","false":"Off","undefined":"Off"}}},"validationLabels":{"demandTimeWindow":"Must be an integer greater than 1","maxStopPointsOnVehicle":"Must be an integer between 2 and 50","refuelThreshold":"Must be an integer between 0 and 99","rideRefuelThreshold":"Must be an integer between 0 and 99","maxNumOfVehicles":"Must be greater than 1","maxMoves":"Must be an integer greater than 1","gmapsApiKey":"Must be longer than 5 characters","timeToParkVehicleBeforeShiftEnd":"Must be between 0 and 99","driftFactor":"Must be an integer greater than 1","driftConstant":"Must be an integer greater than 1","indefleet":"Must be greater than 1","defaultRate":"Must be greater than 0","hourlyRates":"Times from one hourly rate cannot overlap another hourly rate","hourlyRates_number":"Must be greater than 0","gasPrice":"Must be greater than 0","min":"Must be an integer between 0 and 100","max":"Must be an integer between 0 and 100","startingChargeLevel":"Min must be lower than max","required":"Required","minInfleetedVehicles":"Must be non-negative integer","scheduleInterval":"Must be an integer greater than 1","demandWindowEnd":"Must be an integer greater than 1","ridePerVehicleRatio":"Must be greater than 0","maxFuelRangeForRefuel":"Must be greater than 1","maxChargeLevel":"Must be an integer between 0 and 99","routePlanConcurrency":"Must be an integer greater than 0","minimalChargingLevelAtEndOfShift":"Must be an integer between 0 and 99","vehiclePostRefuelWaitTime":"Must be a positive integer","chargerPostRefuelWaitTime":"Must be an integer greater than 20","matchToBestNVehicles":"Must be a positive integer","retriesOnMatching":"Must be a positive integer or undefined","exportPath":"Must be a valid GCS or S3 path","mapsMaxDeviation":"Must be a positive integer","durationCoefficient":"Must be a positive number","distanceCoefficient":"Must be a positive number","FillingThresholdGreaterThanMaxChargeLevel":"Max refuel threshold must be greater than the refuel threshold","RideFillingThresholdGreaterThanFillingThreshold":"Filling threshold must be greater than the ride filling threshold","maxPlacementOverClosestKm":"Must be a positive number","maxTimeInMinutes":"Must be a positive number","threshold":"Must be between 0 and 99"}},"review":{"title":"Review","description":"Here is a summary of your simulation:","goToSection":"Go to section","details":{"title":"Details","simulationType":"Simulation Type","rideOperation":"Ride Operation","fieldServicing":"Field servicing","tags":"Tags"},"territory":{"title":"Territory","subtitle":"Km² area"},"fillingStations":{"title":"Stations","totalCount":"{{total}} Total ( {{charging}} Filling, {{parking}} Parking, {{parkingAndCharging}} Both)","parkingCount":"{{parking}} Parking spots","fillingCount":"{{charging}} Filling slots","maintenanceCount":"{{maintenance}} Maintenance stations","EV":"EV","ICE":"ICE","maintenance":"Maintenance","slots":"Slots","total":"Total","fiiling":"Filling","parking":"Parking","parkingAndCharging":"Parking & Filling","totalPower":"kWh total power","totalDefaultCapacity":"total default capacity"},"vehicles":{"title":"Vehicles","total":"Total","EV":"EV","ICE":"ICE","kmRange":"KM range"},"shifts":{"title":"Shifts","monday":"Mon","tuesday":"Tue","wednesday":"Wed","thursday":"Thu","friday":"Fri","saturday":"Sat","sunday":"Sun","totalAcross":"total across","days":"days"},"driverGroups":{"title":"Drivers","totalAcross":"total across","groups":"groups"},"demandData":{"title":"Demand Data","totalRidesAcross":"total rides across","subText":"Hourly statistics:","days":"days","min":"Min","max":"Max","avg":"Avg","median":"Median"},"tasks":{"title":"Tasks","totalTasksAcross":"total tasks across","days":"days"},"settings":{"title":"Settings","subtitle":"Changed from default"},"approveBanner":{"ApprovedMessage":"This simulation was approved","approveRequiredMessage":"This simulation is waiting for approval","approve":"Approve"}}}}}');x.Ay.use(S.r9).init({lng:O.LANGUAGE,fallbackLng:"en",resources:{en:{translation:k},ns:["translation"],defaultNS:"translation",interpolation:{escapeValue:!1},react:{wait:!0,bindI18n:"languageChanged loaded"}}});var _=new Set(["en"]),A=function(){return _.has(x.Ay.language)?x.Ay.language:"en"};const j=x.Ay;var T=n(76751),I="undefined"!=typeof window&&(window.location.origin.includes("simulator.autofleet.io")||window.location.origin.includes("simulator.jp.autofleet.io")),P="/advanced",N=function(){return window.location.href.includes("/extended-settings")||window.location.href.includes(P)},D=function(){return N()?P:""},M=n(65606);function F(e){return F="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},F(e)}function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function L(e){for(var t=1;t3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(z(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,z(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,z(d,"constructor",u),z(u,"constructor",c),c.displayName="GeneratorFunction",z(u,o,"GeneratorFunction"),z(d),z(d,o,"Generator"),z(d,r,function(){return this}),z(d,"toString",function(){return"[object Generator]"}),(G=function(){return{w:i,m:f}})()}function z(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}z=function(e,t,n,r){function i(t,n){z(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},z(e,t,n,r)}function W(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function U(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){W(i,r,o,a,l,"next",e)}function l(e){W(i,r,o,a,l,"throw",e)}a(void 0)})}}function V(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};q?T.A.track(e,t):K&&console.debug("Mixpanel event - ".concat(e),t)},this.trackPageView=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.track("Page View - ".concat(e),L({page_name:e,event_type:"page_view"},n))},this.trackEvent=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.track(e,L({event_name:e,event_type:"event"},n))},this.trackClickEvent=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.track("Click - ".concat(e),L({event_name:e,event_type:"click"},n))},this.trackRedirectEvent=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="Redirect - ".concat(e," to ").concat(n);t.track(o,L({event_name:o,event_type:"redirect"},r))},this.trackElementClick=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=function(e){return e["data-test-id"]||e.id}(n),i="".concat(e," '").concat(o,"'");o&&t.trackClickEvent(i,r)},q&&T.A.init($,{debug:K})});const J=new X;var Y={PENDING:"pending",DISPATCHING:"initializing",FAILED:"failed",COMPLETED:"completed",RUNNING:"running",DRAFT:"draft",PREPARING_DATA:"preparing data",AWAITING_APPROVAL:"awaitingApproval"},Q="metric",ee="imperial",te={HATCHBACK:"https://res.cloudinary.com/autofleet/image/upload/w_700,h_500,c_thumb,q_auto/vehicle-images/Hatchback/hatchback_white.png",SEDAN:"https://res.cloudinary.com/autofleet/image/upload/w_700,h_500,c_thumb,q_auto/vehicle-images/Sedan/sedan_white.png",COUPE:"https://res.cloudinary.com/autofleet/image/upload/w_700,h_500,c_thumb,q_auto/vehicle-images/Coupe/coupe_white.png",ESTATE:"https://res.cloudinary.com/autofleet/image/upload/w_700,h_500,c_thumb,q_auto/vehicle-images/Estate/estate_white.png",MINIVAN:"https://res.cloudinary.com/autofleet/image/upload/w_700,h_500,c_thumb,q_auto/vehicle-images/Minivan/minivan_white.png",VAN:"https://res.cloudinary.com/autofleet/image/upload/w_700,h_500,c_thumb,q_auto/vehicle-images/Van/van_white.png",TRUCK:"https://res.cloudinary.com/autofleet/image/upload/w_700,h_500,c_thumb,q_auto/vehicle-images/Truck/truck_white.png",CONVERTIBLE:"https://res.cloudinary.com/autofleet/image/upload/w_700,h_500,c_thumb,q_auto/vehicle-images/Convertible/convertible_white.png",SUV:"https://res.cloudinary.com/autofleet/image/upload/w_700,h_500,c_thumb,q_auto/vehicle-images/SUV/suv_white.png",SHUTTLE:"https://res.cloudinary.com/autofleet/image/upload/w_700,h_500,c_thumb,q_auto/vehicle-images/Shuttle/shuttle_white.png",MOTORCYCLE:"https://res.cloudinary.com/autofleet/image/upload/f_auto,q_auto/v1/vehicle-images/Motorcycle/Scooter_white.png",BIKE:"https://res.cloudinary.com/autofleet/image/upload/f_auto,q_auto/v1/vehicle-images/Bike/Bicycle_white.png"},ne=n(95093),re=n.n(ne);function oe(e){return oe="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},oe(e)}function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0;return{data:e,expiredAt:re()().add(t,"minutes")}},this.getItem=function(e){var n=e.key,r=e.isGlobal,o=localStorage.getItem(t.getFullKey(n,r));return o?(o=JSON.parse(o)).expiredAt?re()().isBefore(o.expiredAt)?o.data:null:o.data:null},this.setItem=function(e){var n=e.key,r=e.item,o=e.isGlobal;localStorage.setItem(t.getFullKey(n,o),JSON.stringify(r))},this.clearCacheFromEntities=function(e){e.forEach(function(e){localStorage.removeItem(e)})},this.getGlobalItem=function(e){return t.getItem(ae(ae({},e),{},{isGlobal:!0}))},this.setGlobalItem=function(e){return t.setItem(ae(ae({},e),{},{isGlobal:!0}))}});const fe=new de;var pe={TOKEN:"token",REFRESH_TOKEN:"refreshToken",CONTEXTS:"contexts",LAST_EXPERIMENT_LIST_PAGE:"lastExperimentPage"},me=function(e){if(!e)return null;var t=fe.prepareItem(e);return fe.setGlobalItem({key:pe.CONTEXTS,item:t})};function ye(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return he(u,"_invoke",function(n,r,o){var i,l,c,u=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&u&&!o&&t3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(he(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,he(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,he(d,"constructor",u),he(u,"constructor",c),c.displayName="GeneratorFunction",he(u,o,"GeneratorFunction"),he(d),he(d,o,"Generator"),he(d,r,function(){return this}),he(d,"toString",function(){return"[object Generator]"}),(ye=function(){return{w:i,m:f}})()}function he(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}he=function(e,t,n,r){function i(t,n){he(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},he(e,t,n,r)}function ve(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}var ge=function(){var e,t=(e=ye().m(function e(t){return ye().w(function(e){for(;;)if(0===e.n)return e.a(2,pt(t))},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){ve(i,r,o,a,l,"next",e)}function l(e){ve(i,r,o,a,l,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}(),be=n(65606);function we(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return Ee(u,"_invoke",function(n,r,o){var i,l,c,u=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&u&&!o&&t3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Ee(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Ee(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,Ee(d,"constructor",u),Ee(u,"constructor",c),c.displayName="GeneratorFunction",Ee(u,o,"GeneratorFunction"),Ee(d),Ee(d,o,"Generator"),Ee(d,r,function(){return this}),Ee(d,"toString",function(){return"[object Generator]"}),(we=function(){return{w:i,m:f}})()}function Ee(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ee=function(e,t,n,r){function i(t,n){Ee(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Ee(e,t,n,r)}function xe(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ce(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ce(e,t):void 0}}(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 Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],1)[0];return null==t||null===(e=t.query)||void 0===e?void 0:e.token},ke=function(){window.location.href.includes("/enter-refresh-token")||window.location.replace("https://control.autofleet.io/logout"),fe.clearCacheFromEntities(Object.values(pe))},_e=function(e,t){!function(e){var t=fe.prepareItem(e);fe.setGlobalItem({key:pe.TOKEN,item:t})}(e),t&&function(e){var t=fe.prepareItem(e);fe.setGlobalItem({key:pe.REFRESH_TOKEN,item:t})}(t)},Ae=function(){return be.env.REACT_APP_PUBLIC_REFRESH_TOKEN||fe.getGlobalItem({key:pe.REFRESH_TOKEN})},je=function(){return(Se(fe.getGlobalItem({key:pe.CONTEXTS})||[],1)[0]||{}).fleetId},Te=function(){var e,t=(e=we().m(function e(){var t,n,r,o,i,a,l;return we().w(function(e){for(;;)switch(e.p=e.n){case 0:return t=Ae(),e.p=1,e.n=2,ge(t);case 2:return n=e.v,r=n.apps,o=n.user,i=n.refreshToken,a=n.contexts,l=Oe(r),me(a),l||ke(),_e(l,i),e.a(2,{user:o,contexts:a});case 3:return e.p=3,e.v,e.a(2,ke())}},e,null,[[1,3]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){xe(i,r,o,a,l,"next",e)}function l(e){xe(i,r,o,a,l,"throw",e)}a(void 0)})});return function(){return t.apply(this,arguments)}}(),Ie=n(71083);function Pe(e){return Pe="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},Pe(e)}function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function De(e,t,n){return(t=ze(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Me(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return Fe(u,"_invoke",function(n,r,o){var i,l,c,u=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&u&&!o&&t3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Fe(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Fe(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,Fe(d,"constructor",u),Fe(u,"constructor",c),c.displayName="GeneratorFunction",Fe(u,o,"GeneratorFunction"),Fe(d),Fe(d,o,"Generator"),Fe(d,r,function(){return this}),Fe(d,"toString",function(){return"[object Generator]"}),(Me=function(){return{w:i,m:f}})()}function Fe(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Fe=function(e,t,n,r){function i(t,n){Fe(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Fe(e,t,n,r)}function Be(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Le(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Be(i,r,o,a,l,"next",e)}function l(e){Be(i,r,o,a,l,"throw",e)}a(void 0)})}}function Re(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.axios=void 0,this.settings=void 0,this.settings=Object.assign(e.defaultSettings,n),this.axios=Ie.A.create(n),We.map(function(e){return t[e]=Le(Me().m(function n(){var r,o=arguments;return Me().w(function(n){for(;;)if(0===n.n)return n.a(2,(r=t.axios)[e].apply(r,o).catch(function(e){throw e.response&&401===e.response.status&&(window.location.href.includes("/login")||ke()),e}))},n)})),!0}),this.axios.interceptors.request.use(function(e){var t=be.env.REACT_APP_PUBLIC_TOKEN||fe.getGlobalItem({key:pe.TOKEN}),n=function(e){for(var t=1;t3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Xe(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Xe(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,Xe(d,"constructor",u),Xe(u,"constructor",c),c.displayName="GeneratorFunction",Xe(u,o,"GeneratorFunction"),Xe(d),Xe(d,o,"Generator"),Xe(d,r,function(){return this}),Xe(d,"toString",function(){return"[object Generator]"}),($e=function(){return{w:i,m:f}})()}function Xe(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Xe=function(e,t,n,r){function i(t,n){Xe(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Xe(e,t,n,r)}function Je(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Ye(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Je(i,r,o,a,l,"next",e)}function l(e){Je(i,r,o,a,l,"throw",e)}a(void 0)})}}var Qe=function(){var e=Ye($e().m(function e(t,n){var r,o;return $e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Ve.get("/api/v1/experiments",{params:{page:t,searchKey:n||void 0}});case 1:return r=e.v,o=r.data,e.a(2,o)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),et=function(){var e=Ye($e().m(function e(t){var n,r;return $e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Ve.delete("/api/v1/experiments/".concat(t));case 1:return n=e.v,r=n.data,e.a(2,r)}},e)}));return function(t){return e.apply(this,arguments)}}(),tt=function(){var e=Ye($e().m(function e(t,n){var r,o;return $e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Ve.patch("/api/v1/experiments/".concat(t),n);case 1:return r=e.v,o=r.data,e.a(2,o)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),nt=function(){var e=Ye($e().m(function e(t){var n,r;return $e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Ve.get("/api/v1/experiments/".concat(t));case 1:return n=e.v,r=n.data,e.a(2,r)}},e)}));return function(t){return e.apply(this,arguments)}}(),rt=function(){var e=Ye($e().m(function e(t){var n,r;return $e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Ve.get("/api/v1/files",{params:t});case 1:return n=e.v,r=n.data,e.a(2,r)}},e)}));return function(t){return e.apply(this,arguments)}}(),ot=function(){var e=Ye($e().m(function e(t){var n,r;return $e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Ve.get("/api/v1/files/".concat(encodeURIComponent(t),"/download"));case 1:return n=e.v,r=n.data,e.a(2,r)}},e)}));return function(t){return e.apply(this,arguments)}}(),it=function(){var e=Ye($e().m(function e(t){var n,r;return $e().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Ve.post("/api/v1/files/upload",t,{timeout:6e6});case 1:return n=e.v,e.a(2,n);case 2:return e.p=2,r=e.v,e.a(2,r.response)}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),at=function(){var e=Ye($e().m(function e(t){var n,r;return $e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Ve.post("/api/v1/experiments",t);case 1:return n=e.v,r=n.data,e.a(2,r)}},e)}));return function(t){return e.apply(this,arguments)}}(),lt=function(){var e=Ye($e().m(function e(t){var n,r;return $e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Ve.post("/api/v1/variations",t);case 1:return n=e.v,r=n.data,e.a(2,r)}},e)}));return function(t){return e.apply(this,arguments)}}(),ct=function(){var e=Ye($e().m(function e(t,n){var r,o;return $e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Ve.patch("/api/v1/variations/".concat(n),t);case 1:return r=e.v,o=r.data,e.a(2,o)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),ut=function(){var e=Ye($e().m(function e(t){var n,r;return $e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Ve.put("/api/v1/variations/".concat(t,"/move-to-pending"),null);case 1:return n=e.v,r=n.data,e.a(2,r)}},e)}));return function(t){return e.apply(this,arguments)}}(),st=function(){var e=Ye($e().m(function e(t){var n,r;return $e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Ve.delete("/api/v1/variations/".concat(t));case 1:return n=e.v,r=n.data,e.a(2,r)}},e)}));return function(t){return e.apply(this,arguments)}}(),dt=function(){var e=Ye($e().m(function e(t){var n,r;return $e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Ve.post("/api/v1/variations/".concat(t,"/dispatch"),null);case 1:return n=e.v,r=n.data,e.a(2,r)}},e)}));return function(t){return e.apply(this,arguments)}}(),ft=function(){var e=Ye($e().m(function e(t){var n,r;return $e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Ve.get("/api/v1/variations/".concat(t));case 1:return n=e.v,r=n.data,e.a(2,r)}},e)}));return function(t){return e.apply(this,arguments)}}(),pt=function(){var e=Ye($e().m(function e(t){var n,r;return $e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Ve.post("/api/v1/login/refresh",{refreshToken:t});case 1:return n=e.v,r=n.data,e.a(2,r)}},e)}));return function(t){return e.apply(this,arguments)}}(),mt=function(){var e=Ye($e().m(function e(){var t,n;return $e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Ve.get("/api/v1/vehicle-models");case 1:return t=e.v,n=t.data,e.a(2,n)}},e)}));return function(){return e.apply(this,arguments)}}(),yt=function(){var e=Ye($e().m(function e(t){var n,r;return $e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Ve.get("/api/v1/reports",{params:t});case 1:return n=e.v,r=n.data,e.a(2,r)}},e)}));return function(t){return e.apply(this,arguments)}}(),ht=function(){var e=Ye($e().m(function e(t){var n,r;return $e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Ve.get("/api/v1/variations/".concat(t,"/kepler"));case 1:return n=e.v,r=n.data,e.a(2,r)}},e)}));return function(t){return e.apply(this,arguments)}}(),vt=function(){var e=Ye($e().m(function e(){var t,n;return $e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Ve.get("/api/v1/demand-data",{params:{fleetId:je()}});case 1:return t=e.v,n=t.data,e.a(2,n)}},e)}));return function(){return e.apply(this,arguments)}}(),gt=function(){var e=Ye($e().m(function e(t,n){var r,o,i,a,l,c;return $e().w(function(e){for(;;)switch(e.n){case 0:if(r=t.kw,o=t.operators,i=t.polygon,a=t.powerSupply,i){e.n=1;break}throw new Error("no poly");case 1:return e.n=2,Ve.post("/api/v1/filling-stations/query",{include:[{model:"slots",required:!0,where:qe({powerInKw:{$gte:r[0],$lte:r[1]}},a&&a.length?{supportedPowerTypes:{$overlap:a}}:{})}],territory:i?{type:"Polygon",coordinates:[i]}:void 0,query:o&&o.length?{operatorName:o}:void 0},{cancelToken:n});case 2:return l=e.v,c=l.data,e.a(2,c)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),bt=function(){var e=Ye($e().m(function e(){var t,n;return $e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Ve.get("/api/v1/users/me");case 1:return t=e.v,n=t.data,e.a(2,n)}},e)}));return function(){return e.apply(this,arguments)}}(),wt=function(){var e=Ye($e().m(function e(t){var n,r;return $e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Ve.put("/api/v1/variations/".concat(t,"/approve"),null);case 1:return n=e.v,r=n.data,e.a(2,r)}},e)}));return function(t){return e.apply(this,arguments)}}(),Et="lastSearchKeyWord";function xt(e){return function(e){if(Array.isArray(e))return jt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||At(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.")}()}function St(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return Ct(u,"_invoke",function(n,r,o){var i,l,c,u=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&u&&!o&&t3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Ct(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Ct(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,Ct(d,"constructor",u),Ct(u,"constructor",c),c.displayName="GeneratorFunction",Ct(u,o,"GeneratorFunction"),Ct(d),Ct(d,o,"Generator"),Ct(d,r,function(){return this}),Ct(d,"toString",function(){return"[object Generator]"}),(St=function(){return{w:i,m:f}})()}function Ct(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ct=function(e,t,n,r){function i(t,n){Ct(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Ct(e,t,n,r)}function Ot(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function kt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Ot(i,r,o,a,l,"next",e)}function l(e){Ot(i,r,o,a,l,"throw",e)}a(void 0)})}}function _t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||At(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 At(e,t){if(e){if("string"==typeof e)return jt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jt(e,t):void 0}}function jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==l[0]?l[0]:[p],e.p=1,e.n=2,Promise.all(t.map(function(){var e=kt(St().m(function e(t){return St().w(function(e){for(;;)if(0===e.n)return e.a(2,Qe(t,h))},e)}));return function(t){return e.apply(this,arguments)}}()));case 2:n=e.v,r=n.reduce(function(e,t){var n,r=t.experiments,o=t.count;return(n=e.experiments).push.apply(n,xt(r)),e.count=o,e},{experiments:[],count:0}),o=r.experiments,a=r.count,w(a),i(o),e.n=4;break;case 3:e.p=3,e.v,console.error("Failed to fetch experiments");case 4:return e.a(2)}},e,null,[[1,3]])}));return function(){return e.apply(this,arguments)}}(),C=function(){var e=kt(St().m(function e(t){return St().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,et(t);case 1:S();case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),O=function(){var e=kt(St().m(function e(t,n){return St().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,tt(t,n);case 1:S();case 2:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),k=function(){var e=kt(St().m(function e(){var t,n;return St().w(function(e){for(;;)switch(e.n){case 0:return J.trackEvent("trying to create experiment"),t={name:j.t("untitledExperimentName")},e.n=1,at(t);case 1:return n=e.v,J.trackEvent("create experiment - successful"),e.a(2,n)}},e)}));return function(){return e.apply(this,arguments)}}(),_=function(){var e=kt(St().m(function e(){var t,n;return St().w(function(e){for(;;)switch(e.n){case 0:J.trackEvent("create experiment clicked"),t=D(),n="".concat(t,"/experiment/").concat(Tt,"/create-variation"),E(n);case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),A=function(){var e=kt(St().m(function e(t){var n;return St().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,nt(t);case 1:return n=e.v,e.a(2,n)}},e)}));return function(t){return e.apply(this,arguments)}}();return(0,r.useEffect)(function(){c&&u(!1)},[o]),(0,r.useEffect)(function(){var e;return["/",P].includes(x)&&(S(),e=setInterval(S,5e3)),function(){clearInterval(e)}},[p,x,h]),r.createElement(It.Provider,{value:{experiments:o,isLoading:c,handleFetchExperiments:S,handleCreateExperiment:k,handleDeleteExperiment:C,handleUpdateExperiment:O,handleGetExperiment:A,handlePageChange:function(e){u(!0),function(e){var t=fe.prepareItem(e);fe.setGlobalItem({key:pe.LAST_EXPERIMENT_LIST_PAGE,item:t})}(e),m(e)},handleCreateExperimentButton:_,handleSearchKeywordChanged:function(e){u(!0),function(e){var t=fe.prepareItem(e);fe.setGlobalItem({key:Et,item:t})}(e),v(e)},searchKeyWord:h,count:b,page:p}},t)},Nt=function(e){e(D()||"/")},Dt=function(e){var t=e.navigate,n=e.variation,r=e.isDraft,o=void 0!==r&&r,i=e.isCloned,a=void 0!==i&&i,l=e.readOnly,c=D();t(Ie.A.getUri({url:"".concat(c,"/experiment/").concat(n.experimentId,"/create-variation"),params:{variationId:n.id,readOnly:l,draft:o,cloned:a}}))};function Mt(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return Ft(u,"_invoke",function(n,r,o){var i,l,c,u=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&u&&!o&&t3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Ft(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Ft(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,Ft(d,"constructor",u),Ft(u,"constructor",c),c.displayName="GeneratorFunction",Ft(u,o,"GeneratorFunction"),Ft(d),Ft(d,o,"Generator"),Ft(d,r,function(){return this}),Ft(d,"toString",function(){return"[object Generator]"}),(Mt=function(){return{w:i,m:f}})()}function Ft(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ft=function(e,t,n,r){function i(t,n){Ft(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Ft(e,t,n,r)}function Bt(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Lt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Rt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rt(e,t):void 0}}(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 Rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(fr(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,fr(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,fr(d,"constructor",u),fr(u,"constructor",c),c.displayName="GeneratorFunction",fr(u,o,"GeneratorFunction"),fr(d),fr(d,o,"Generator"),fr(d,r,function(){return this}),fr(d,"toString",function(){return"[object Generator]"}),(dr=function(){return{w:i,m:f}})()}function fr(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}fr=function(e,t,n,r){function i(t,n){fr(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},fr(e,t,n,r)}function pr(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}const mr=function(e){var t=e.columns,n=e.data,o=e.experiment,i=(0,a.Zp)(),l=(0,tr.useTable)({columns:t,data:n},tr.useExpanded),c=l.getTableProps,u=l.getTableBodyProps,s=l.headerGroups,d=l.rows,f=l.prepareRow,p=function(){var e,t=(e=dr().m(function e(t){var n,r;return dr().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,navigator.clipboard.writeText(t);case 1:console.log("Variation ID copied to clipboard:",t),e.n=3;break;case 2:e.p=2,r=e.v,console.error("Failed to copy variation ID:",r),(n=document.createElement("textarea")).value=t,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n);case 3:return e.a(2)}},e,null,[[0,2]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){pr(i,r,o,a,l,"next",e)}function l(e){pr(i,r,o,a,l,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}();return r.createElement(nr,c(),s.map(function(e,t){return r.createElement(rr,sr({key:t,padding:0===t?"0":"1em 0 1em 1em;"},e.getHeaderGroupProps()),e.headers.map(function(e){return r.createElement(or,sr({key:e.Header},e.getHeaderProps(),e),e.render("Header"))}))}),r.createElement(lr,u(),d.map(function(e){f(e);var n=e.original,o=n.status===Y.DRAFT,a={onClick:function(e){if(e.ctrlKey||e.metaKey)return e.preventDefault(),e.stopPropagation(),void p(n.id);"path"!==e.target.nodeName&&Dt({readOnly:!o,variation:n,isDraft:o,navigate:i})},style:{cursor:"pointer"}};return r.createElement(ir,{key:e.id},r.createElement(ar,sr({},e.getRowProps(a),{"data-test-id":"variationRow-".concat(n.id)}),e.cells.map(function(e,n){return r.createElement(cr,sr({},e.getCellProps(function(){return{style:{color:"Tags"===e.column.Header?"".concat(m):"rgba(51, 51, 51, 0.9)",fontSize:"Tags"===e.column.Header?"default":"13px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}}}),{columnDetails:t[0].columns[n],key:t[0].columns[n].accessor}),e.render("Cell"))})))}),r.createElement(ur,{onClick:function(){var e=D();i("".concat(e,"/experiment/").concat(o.id,"/create-variation"))}},j.t("addVariationButton"))))};var yr=n(8727);const hr=function(e){return e.show?r.createElement(yr.A,e):e.children};var vr=l.default.div.withConfig({displayName:"styled__StatusContainer",componentId:"sc-1afsryc-0"})(["position:relative;display:flex;flex-direction:row;align-content:center;width:100%;align-items:center;justify-content:space-between;"]),gr=l.default.div.withConfig({displayName:"styled__StatusCircle",componentId:"sc-1afsryc-1"})(["margin:auto 0;border-radius:50px;",";height:7px;min-width:7px;width:7px;"],function(e){switch(e.state){case Y.PENDING:return"background-color: #676767";case Y.DISPATCHING:return"background-color: ".concat(m);case Y.FAILED:return"background-color: ".concat(v);case Y.RUNNING:return"background-color: ".concat(m);case Y.COMPLETED:return"background-color: #20f2bc";case Y.PREPARING_DATA:return"background-color: ".concat("#329F76");default:return"background-color: #676767"}}),br=l.default.text.withConfig({displayName:"styled__CurrentStatus",componentId:"sc-1afsryc-2"})(["line-height:100%;",";margin-left:10px;text-align:left;text-transform:capitalize;"],function(e){var t=e.width;return t&&"width: ".concat(t)}),wr=l.default.div.withConfig({displayName:"styled__StatusBarContainer",componentId:"sc-1afsryc-3"})(["width:55px;position:relative;display:flex;"]),Er=l.default.div.withConfig({displayName:"styled__DefaultStatusBar",componentId:"sc-1afsryc-4"})(["width:100%;height:3px;background-color:#dfe0e1;border-radius:10px;margin:auto;"]),xr=l.default.div.withConfig({displayName:"styled__CurrentStatusBar",componentId:"sc-1afsryc-5"})(["",";height:3px;background-color:",";border-radius:10px;margin:auto 0;position:absolute;top:0;left:0;bottom:0;right:0;"],function(e){var t=e.percentageCompleted;return"width: ".concat(t&&t>1?t:1,"%")},m),Sr=l.default.div.withConfig({displayName:"styled__StatusBarSection",componentId:"sc-1afsryc-6"})(["display:flex;flex-direction:row;width:50%;"]);const Cr=function(e){var t=e.cell,n=Math.round(100*t.row.original.progress),o=t.row.original;return r.createElement(vr,null,r.createElement(hr,{placement:"bottom",show:!!o.errorType&&N(),overlay:"".concat(o.errorType," - ").concat(o.errorDetails),type:"error",overlayStyle:{width:"fit-content",height:"fit-content"}},r.createElement(Sr,null,r.createElement(gr,{state:t.value}),r.createElement(br,{"data-test-id":"statusText",width:"80%"},j.t("variationStatus.".concat(t.value))))),r.createElement(Sr,null,o.progress&&t.value===Y.RUNNING?r.createElement(r.Fragment,null,r.createElement(wr,null,r.createElement(Er,null),r.createElement(xr,{percentageCompleted:n})),r.createElement(br,{width:"50px"},n,"%")):null))};var Or=l.default.div.withConfig({displayName:"styled__FlexRowContainer",componentId:"sc-7kkglf-0"})(["display:flex;flex-direction:row;align-items:center;"]),kr=l.default.button.withConfig({displayName:"styled__FlexRowSVGContainer",componentId:"sc-7kkglf-1"})(["display:flex;flex-direction:row;align-items:center;cursor:pointer;background-color:transparent;border:none;:disabled{cursor:default;}",""],function(e){return e.withText?"padding: 10px;":""}),_r=l.default.div.withConfig({displayName:"styled__HiddenDropdownContainer",componentId:"sc-7kkglf-2"})(["display:flex;flex-direction:row;position:relative;"]),Ar=l.default.div.withConfig({displayName:"styled__HiddenDropdown",componentId:"sc-7kkglf-3"})(["display:",";flex-direction:",";align-content:center;position:absolute;top:",";",";background-color:white;box-shadow:0px 2px 5px 0 rgb(157 165 180 / 50%);z-index:999;align-items:center;",""],function(e){return e.isHover?"none":"flex"},function(e){return e.flexDirection||"row"},function(e){return e.top||"32px"},function(e){return"column"===e.flexDirection&&"right: 0px"},function(e){return e.isHover&&"".concat(_r,":hover & {\ndisplay: flex;\n}")}),jr=["children"];function Tr(){return Tr=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(lo(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,lo(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,lo(d,"constructor",u),lo(u,"constructor",c),c.displayName="GeneratorFunction",lo(u,o,"GeneratorFunction"),lo(d),lo(d,o,"Generator"),lo(d,r,function(){return this}),lo(d,"toString",function(){return"[object Generator]"}),(ao=function(){return{w:i,m:f}})()}function lo(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}lo=function(e,t,n,r){function i(t,n){lo(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},lo(e,t,n,r)}function co(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function uo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0){for(var o=1;o(null===(i=n.current)||void 0===i?void 0:i.offsetLeft)+(null===(l=n.current)||void 0===l?void 0:l.clientWidth)-c)break;r++}a(r)}},[]),r.createElement(po,null,r.createElement(mo,{ref:n},c.map(function(e,t){return r.createElement(fo,{key:t},e)})),u.length>0&&r.createElement(_r,null,r.createElement(fo,{onHover:!0},"+",u.length),r.createElement(Ar,{isHover:!0,flexDirection:"row"},u.map(function(e,t){return r.createElement(fo,{key:t},e)}))))};var vo=l.default.div.withConfig({displayName:"Type__TypeComponent",componentId:"sc-1kafpqk-0"})(["line-height:100%;text-transform:capitalize;"]);const go=function(e){var t=e.cell;return r.createElement(vo,null,j.t("variationType.".concat(t.value||"rides")))};var bo=l.default.div.withConfig({displayName:"styled__Container",componentId:"sc-dfgv8x-0"})(["display:flex;flex-direction:row;justify-content:flex-end;align-items:center;padding:0 15px;"]),wo=function(e){return r.createElement("svg",e,r.createElement("g",{transform:"translate(8701.75 7364.75)"},r.createElement("path",{d:"m0 0 3.517 4.079L7.42 0",transform:"rotate(-90 -8024.314 671.024)",style:{fill:"current"}}),r.createElement("circle",{cx:"7",cy:"7",r:"7",transform:"translate(-8701 -7364)",style:{fill:"none",stroke:"current",strokeLinejoin:"round",strokeWidth:"1.5px"}})))};wo.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"15.5",height:"15.5"};var Eo=function(e){return r.createElement("svg",e,r.createElement("g",{clipPath:"url(#a)",stroke:"current",strokeWidth:"1.5",strokeLinejoin:"round"},r.createElement("path",{d:"M12.75 6.75h3v7h-3v-7ZM.75 3.75h3v10h-3v-10ZM6.75.75h3v13h-3v-13Z"})),r.createElement("defs",null,r.createElement("clipPath",{id:"a"},r.createElement("path",{fill:"#fff",d:"M0 0h16.5v14.5H0z"}))))};Eo.defaultProps={width:"17",height:"15",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const xo=function(e){var t,n=e.variation,o=e.onClick,i=n.status,a=(t=i===Y.PENDING?wo:Eo)&&(0,l.default)(t).withConfig({displayName:"CurrentStatusButton__StyledIcon",componentId:"sc-1egzqq1-0"})(["",";margin-top:3px;padding:0 6px;transform:scale(1.1);stroke:",";",""],function(e){return e.disabled&&"opacity: 0.5"},y,[Y.PENDING,Y.COMPLETED].includes(i)&&"\n stroke: ".concat(y,";\n cursor: pointer;\n &:hover {\n stroke: ").concat(m,";\n ").concat(i===Y.PENDING&&"fill: ".concat(m),";\n "));return r.createElement(Ir,null,t&&r.createElement(a,{disabled:![Y.PENDING,Y.COMPLETED].includes(i),status:i,onClick:o}))};function So(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return Co(u,"_invoke",function(n,r,o){var i,l,c,u=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&u&&!o&&t3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Co(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Co(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,Co(d,"constructor",u),Co(u,"constructor",c),c.displayName="GeneratorFunction",Co(u,o,"GeneratorFunction"),Co(d),Co(d,o,"Generator"),Co(d,r,function(){return this}),Co(d,"toString",function(){return"[object Generator]"}),(So=function(){return{w:i,m:f}})()}function Co(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Co=function(e,t,n,r){function i(t,n){Co(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Co(e,t,n,r)}function Oo(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function ko(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Oo(i,r,o,a,l,"next",e)}function l(e){Oo(i,r,o,a,l,"throw",e)}a(void 0)})}}var _o=function(){var e=ko(So().m(function e(t){return So().w(function(e){for(;;)if(0===e.n)return e.a(2,ft(t))},e)}));return function(t){return e.apply(this,arguments)}}(),Ao=function(){var e=ko(So().m(function e(t){return So().w(function(e){for(;;)if(0===e.n)return e.a(2,st(t))},e)}));return function(t){return e.apply(this,arguments)}}(),jo=function(){var e=ko(So().m(function e(t){return So().w(function(e){for(;;)if(0===e.n)return e.a(2,dt(t))},e)}));return function(t){return e.apply(this,arguments)}}(),To=function(){var e=ko(So().m(function e(t){return So().w(function(e){for(;;)if(0===e.n)return e.a(2,lt(t))},e)}));return function(t){return e.apply(this,arguments)}}(),Io=function(){var e=ko(So().m(function e(t,n){return So().w(function(e){for(;;)if(0===e.n)return e.a(2,ct(t,n))},e)}));return function(t,n){return e.apply(this,arguments)}}(),Po=function(){var e=ko(So().m(function e(t){return So().w(function(e){for(;;)if(0===e.n)return e.a(2,ut(t))},e)}));return function(t){return e.apply(this,arguments)}}(),No=function(){var e=ko(So().m(function e(t){return So().w(function(e){for(;;)if(0===e.n)return e.a(2,ht(t))},e)}));return function(t){return e.apply(this,arguments)}}(),Do=l.default.img.withConfig({displayName:"Error__ErrorImage",componentId:"sc-1vv5gr8-0"})(["margin-bottom:16px;"]),Mo=l.default.div.withConfig({displayName:"Error__ErrorMessage",componentId:"sc-1vv5gr8-1"})([""]);const Fo=function(e){var t=e.errorMessage,n=e.errorIssue;return r.createElement(r.Fragment,null,r.createElement(Do,{alt:"",src:"https://res.cloudinary.com/autofleet/image/upload/v1533651669/Control-Center/error.png"}),r.createElement(Mo,null,n),r.createElement(Mo,null,t))};var Bo=n(2543),Lo=n(50454),Ro=n(57901),Go=n(21021);l.default.span.withConfig({displayName:"styled__IconContainer",componentId:"sc-1t317zv-0"})(["stroke:",";margin:",";vertical-align:middle;cursor:pointer;width:",";height:",";",";&:hover{stroke:",";}&:active{stroke:",";}"],function(e){return e.stroke||"".concat(y)},function(e){var t=e.margin;return t?-1!=="".concat(t).search(" ")?t:"".concat(t,"px"):"0px 10px"},function(e){var t=e.width;return t?"".concat(t,"px"):"16px"},function(e){var t=e.height;return t?"".concat(t,"px"):"16px"},function(e){return e.disableClass?"stroke: #dfdfdf;\n cursor: default;\n ":""},function(e){var t=e.disableClass,n=e.hoverColor;return t?"#dfdfdf":n||"rgb(17, 113, 219)"},function(e){var t=e.disableClass,n=e.activeColor;return t?"#dfdfdf":n||"rgb(57, 153, 255)"});function zo(){return zo=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(ti(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,ti(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,ti(d,"constructor",u),ti(u,"constructor",c),c.displayName="GeneratorFunction",ti(u,o,"GeneratorFunction"),ti(d),ti(d,o,"Generator"),ti(d,r,function(){return this}),ti(d,"toString",function(){return"[object Generator]"}),(ei=function(){return{w:i,m:f}})()}function ti(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ti=function(e,t,n,r){function i(t,n){ti(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},ti(e,t,n,r)}function ni(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function ri(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){ni(i,r,o,a,l,"next",e)}function l(e){ni(i,r,o,a,l,"throw",e)}a(void 0)})}}function oi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ii(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ii(e,t):void 0}}(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 ii(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(_i(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,_i(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,_i(d,"constructor",u),_i(u,"constructor",c),c.displayName="GeneratorFunction",_i(u,o,"GeneratorFunction"),_i(d),_i(d,o,"Generator"),_i(d,r,function(){return this}),_i(d,"toString",function(){return"[object Generator]"}),(ki=function(){return{w:i,m:f}})()}function _i(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_i=function(e,t,n,r){function i(t,n){_i(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},_i(e,t,n,r)}function Ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ji(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.index&&"\n color: ".concat(m,";\n font-weight: 600;\n")},function(e){return e.isNavigationDisabled&&"\ncursor: default;\nopacity: 0.5;\n"}),la=l.default.div.withConfig({displayName:"styled__StepTitleContainer",componentId:"sc-unpxgq-5"})(["&:after{"," border-left:","4d;margin-left:0.5em;padding:1em;line-height:3em;transition:all 0.2s;}"],function(e){return!e.isLastStep&&"content: '';"},function(e){return e.selectedIndex>e.index?"2px solid ".concat(m):"1px solid ".concat(y)}),ca=l.default.div.withConfig({displayName:"styled__Circle",componentId:"sc-unpxgq-6"})(["width:1em;min-width:1em;min-height:1em;height:1em;border:0.1rem solid ",";"," border-radius:50%;margin-right:1em;transition:all 0.2s;",""],function(e){var t=e.selectedIndex,n=e.index,r=e.isCompleted;return t>=n||r?m:y},function(e){return e.isCompleted&&"background-color: ".concat(m,"fd;")},function(e){var t=e.isCompleted,n=e.signalIncomplete;return!t&&n&&"border-color: ".concat(v,";")}),ua=l.default.div.withConfig({displayName:"styled__StepsProgressContainer",componentId:"sc-unpxgq-7"})(["color:",";font-size:",";"],y,d),sa=(0,l.default)(ea).withConfig({displayName:"styled__CheckMark",componentId:"sc-unpxgq-8"})(["position:absolute;z-index:99;top:5px;left:4px;"]),da=(0,l.default)(ta).withConfig({displayName:"styled__RequiredMark",componentId:"sc-unpxgq-9"})(["position:absolute;z-index:99;top:-3px;left:-3.5px;transform:scale(.9);"]),fa=l.default.div.withConfig({displayName:"styled__TitleContainer",componentId:"sc-unpxgq-10"})(["display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:center;"]),pa=l.default.div.withConfig({displayName:"styled__ViewStateText",componentId:"sc-unpxgq-11"})(["font-weight:400;font-size:",";padding:5px 8px;background:#e7f2ff;border-radius:5px;color:",";"],s,m),ma=l.default.div.withConfig({displayName:"ActionButtons__ActionButtonsContainer",componentId:"sc-1xrza75-0"})(["position:fixed;bottom:40px;right:40px;display:flex;"]),ya=l.default.div.withConfig({displayName:"ActionButtons__SubmitText",componentId:"sc-1xrza75-1"})(["padding:0em 1.5em;font-size:14px;"]);const ha=function(e){var t=e.isLastStep,n=e.onClick,o=e.isLoading,i=e.isReadOnly,a=e.onClickSave,l=e.showClickSaveOverride;return r.createElement(ma,null,(!i||l)&&r.createElement(Zt,{id:"saveAndExit",onClick:o?function(){return null}:a,disabled:o,backgroundColor:"transparent"},r.createElement(ya,null,j.t("addExperimentWizard.saveAndExit"))),(!i||!t)&&r.createElement(Zt,{id:t?"launchSimulation":"nextStep",onClick:o?function(){return null}:n,disabled:o||i&&t,backgroundColor:m},r.createElement(ya,null,j.t("addExperimentWizard.".concat(t?"launchSimulation":"nextStep")))))};var va=l.default.div.withConfig({displayName:"styled__Title",componentId:"sc-14g9frn-0"})(["font-weight:600;color:#333;font-size:18px;margin-bottom:1em;"]),ga=l.default.div.withConfig({displayName:"styled__Description",componentId:"sc-14g9frn-1"})(["color:",";font-size:",";width:85%;line-height:20px;"],b,s),ba=l.default.div.withConfig({displayName:"styled__HeaderContainer",componentId:"sc-14g9frn-2"})(["padding-left:4em;margin-bottom:1em;"]),wa=l.default.div.withConfig({displayName:"styled__ContentContainer",componentId:"sc-14g9frn-3"})(["height:72%;overflow:visible;padding-left:4em;",";"],function(e){return e.readOnly&&"pointer-events: none"});const Ea=function(e){var t=(0,r.useRef)(null);return(0,r.useEffect)(function(){var e=t.current,n=null==e?void 0:e.parentElement;if(n&&e&&0!==e.clientHeight){n.style.paddingTop=0;var r=n.children[1];r&&(r.style.marginTop="10px");var o=function(){var t=null==n?void 0:n.getBoundingClientRect(),r=null==e?void 0:e.getBoundingClientRect();t&&e&&r&&(t.top<=r.height?(e.style.position="sticky",e.style.top="0",e.style.left="0",e.style.zIndex="5"):e.style.position="static")};return null==n||n.addEventListener("scroll",o),function(){return window.removeEventListener("scroll",o)}}},[]),r.createElement("div",{ref:t},e.children)},xa=function(e){var t=e.step,n=e.updateStepData,o=e.stepData,i=e.wizardData,a=e.showErrors,l=e.readOnly,c=e.setIsNavigationDisabled,u=e.setSelectedStepIndexById;return r.createElement(oa,null,t.topStickyComponent&&r.createElement(Ea,null,t.topStickyComponent({wizardData:i})),r.createElement(ba,null,r.createElement(va,null,t.title),r.createElement(ga,null,t.description)),r.createElement(wa,{readOnly:l},r.createElement(t.component,{readOnly:l,updateStepData:n,stepData:o,wizardData:i,showErrors:a,setIsNavigationDisabled:c,setSelectedStepIndexById:u})))},Sa=n.p+"c3a35542c7a6c3788fcd830f5b5230f6.png";function Ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Oa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oa(e,t):void 0}}(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 Oa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0),hasValue:{start:!!e.start,end:!!e.end}})}),r.defaultRate=Ga(null==e?void 0:e.defaultRate)?Ga(null==e||null===(n=e.hourlyRates)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.rate):Number(null==e?void 0:e.defaultRate)>0,r.defaultRate||Object.values((null==e?void 0:e.hourlyRates)||{}).some(function(e){return e.start||e.end||e.rate})?{result:r,isValid:r.defaultRate&&Number(r.defaultRate)>0&&(!r.hourlyRates||r.hourlyRates.every(function(e){return(null==e.start||e.start)&&(null==e.end||e.end)&&(null==e.rate||e.rate)&&e.hasValue.start&&e.hasValue.end}))}:{result:null,isValid:!0}}},Wa=[function(e){return e.refuelThreshold>=e.maxChargeLevel?"FillingThresholdGreaterThanMaxChargeLevel":null},function(e){return e.rideRefuelThreshold>e.refuelThreshold?"RideFillingThresholdGreaterThanFillingThreshold":null}],Ua=function(e){var t=[];return Wa.forEach(function(n){var r=n(e);r&&t.push(r)}),t},Va="modelName",Za="cost",Ha="batteryCapacityKWH",qa="idleConsumptionKwh",Ka="chargingCurve",$a="labels",Xa="chargeRateKWH",Ja="isCustomValue",Ya=[Za,Ja,Ha,$a,Xa,qa,Ka],Qa=function(e,t){return j.t("".concat(e).concat(t))},el=function(e){return Qa("addExperimentWizard.steps.vehicles.options.power.",e)},tl={IC:{value:"IC",label:el("ice")},EV:{value:"EV",label:el("electric")}};function nl(e){return nl="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},nl(e)}function rl(e,t,n){return(t=function(e){var t=function(e){if("object"!=nl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nl(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ol="electric",il="public_electric",al="ice",ll=ol,cl=il,ul=al,sl=ol,dl="-",fl=rl(rl(rl({},ll,30),cl,30),ul,5),pl=rl(rl({},ll,"EV"),ul,"ICE"),ml=rl(rl(rl({},ll,{charging:"Filling EV",parkingAndCharging:"Filling EV & Parking"}),cl,{charging:"Filling EV",parkingAndCharging:"Filling EV & Parking"}),ul,{charging:"Filling ICE",parkingAndCharging:"Filling ICE & Parking"}),yl="addExperimentWizard.steps.fillingStations.newStationConfiguration",hl=rl(rl(rl({},ll,"".concat(yl,".chargersLabel")),cl,"".concat(yl,".chargersLabel")),ul,"".concat(yl,".slotsLabel")),vl=rl(rl(rl({},ll,"".concat(yl,".chargersRequiredError")),cl,"".concat(yl,".chargersRequiredError")),ul,"".concat(yl,".slotsRequiredError")),gl=rl(rl(rl({},ll,"".concat(yl,".chargersRangeError")),cl,"".concat(yl,".chargersRangeError")),ul,"".concat(yl,".slotsRangeError")),bl=rl(rl(rl({},ll,"KW"),cl,"KW"),ul,"min"),wl="during shift",El="end of shift",xl=[wl],Sl={PARKING_AND_CHARGING_STATION:"parking_and_charging",CHARGING_STATION:"charging",PARKING_STATION:"parking",MAINTENANCE_STATION:"maintenance"},Cl=rl(rl(rl({},Sl.PARKING_AND_CHARGING_STATION,5),Sl.PARKING_STATION,5),Sl.MAINTENANCE_STATION,2),Ol=[Sl.PARKING_AND_CHARGING_STATION,Sl.PARKING_STATION],kl=[Sl.PARKING_AND_CHARGING_STATION,Sl.CHARGING_STATION],_l=[Sl.MAINTENANCE_STATION],Al=function(e){return new Set(e)},jl=Al(Ol),Tl=Al(kl),Il=Al(_l),Pl=function(e){return e.STAGING="staging",e.PARKING="parking",e.BOTH="parking_and_staging",e}({}),Nl=[Pl.PARKING],Dl={PARKING_STATION:Pl.PARKING,BOTH:Pl.BOTH,STAGING_STATION:Pl.STAGING},Ml=rl(rl(rl({},Pl.PARKING,[Dl.PARKING_STATION]),Pl.STAGING,[Dl.STAGING_STATION]),Pl.BOTH,[Dl.PARKING_STATION,Dl.STAGING_STATION]),Fl={DEMAND_STAGING:"demandStaging",STAGING:"staging",TERRITORY_WIDE:"territoryWide"},Bl=["e440173c-ee30-470d-b944-1012165dfe64","f5458b19-1720-2840-a4fc-9254c74afc60"],Ll=function(e){return jl.has(e)},Rl=function(e){return Tl.has(e)},Gl=function(e){return Il.has(e)},zl=function(e){return{id:e.station_id,lat:e.lat,lng:e.lng,address:e.address,capacity:e.capacity,jobs:e.jobs,timeLimitations:e.timeLimitations}},Wl=function(e){var t;return{rate:e.rate,slots:e.slots,lat:e.lat,lng:e.lng,type:e.type,labels:e.labels,id:e.id,address:e.address,stationType:e.stationType,idleConsumption:e.idleConsumption,timeLimitations:e.chargingTimeLimitations||e.timeLimitations,numOfHandles:null!==(t=e.connectorsPerCharger)&&void 0!==t?t:e.numOfHandles,powerAllocationUnit:e.powerAllocationUnit,chargerPostRefuelWaitTime:e.chargerPostRefuelWaitTime}},Ul=function(e){return{capacity:e.capacity,lat:e.lat,lng:e.lng,id:e.id,address:e.address,stationType:e.stationType,idleConsumption:e.idleConsumption,capabilities:e.capabilities,timeLimitations:e.parkingTimeLimitations||e.timeLimitations,parkingSuccessLikelihood:e.parkingSuccessLikelihood}},Vl=function(e){return e.split("_").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join(" ")},Zl=function(e,t){if(0===e.length)return[];var n=function(e){var t=new Set;return e.filter(function(e){return Gl(e.stationType)}).forEach(function(e){e.jobs&&Object.keys(e.jobs).forEach(function(e){return t.add($l(e))}),e.timeLimitations&&e.timeLimitations.forEach(function(e){e.jobs&&Object.keys(e.jobs).forEach(function(e){return t.add($l(e))})})}),t}(t);return e.filter(function(e){return!n.has($l(e))})},Hl=function(e,t){if(0===e.length)return[];var n=function(e){var t=new Set;return e?(e.forEach(function(e){e.labels&&t.add(e.labels)}),t):t}(t);return e.filter(function(e){return!n.has(e)})};function ql(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(yc(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,yc(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,yc(d,"constructor",u),yc(u,"constructor",c),c.displayName="GeneratorFunction",yc(u,o,"GeneratorFunction"),yc(d),yc(d,o,"Generator"),yc(d,r,function(){return this}),yc(d,"toString",function(){return"[object Generator]"}),(mc=function(){return{w:i,m:f}})()}function yc(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}yc=function(e,t,n,r){function i(t,n){yc(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},yc(e,t,n,r)}function hc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vc(e,t):void 0}}(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 vc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=e;if(t&&(r=e.concat(t)),Array.isArray(n)&&n.length>0){var o=n.map(function(e){return wc(wc({},e),{},{stationType:"maintenance"})});r=r.concat(o)}var i=r.map(function(e){return wc(wc({},e),{},{id:e.id||"".concat(e.stationType||"station","-").concat((0,Xl.A)())})});return Object.values(i.reduce(function(e,t){return wc(wc({},e),{},Ec({},t.id,wc(wc({},e[t.id]?e[t.id]:{}),t)))},{}))};const Sc=function(){var e,t=(e=mc().m(function e(t,n){var r,o,i,a,l,c,u,s;return mc().w(function(e){for(;;)if(0===e.n)return u=function(){if(!t.territory)return cc.TLV;var e=$i.polygon([t.territory.coordinates[0]]),n=hc($i.centroid(e).geometry.coordinates,2);return{lng:n[0],lat:n[1]}},s=n===ee?(t.vehicleGroups||[]).map(function(e){var t=e;return t.range=lc(ee,t.range),t}):t.vehicleGroups,e.a(2,{details:{name:t.name,details:t.description,tags:t.tags,simType:t.type},territory:{file:null,polygon:t.territory?t.territory.coordinates[0]:null,center:u()},parkingStations:t.parkingStations,fillingStations:xc(t.fillingStations,t.parkingStations,t.maintenanceStations),vehicleGroups:s,shifts:t.shifts||[],driverGroups:t.driverGroups,demandData:{url:t.demandFileUrl,file:null===(r=t.files)||void 0===r?void 0:r.filter(function(e){return e.key===uc})[0],demandPredictionFileUrl:t.settings.demandPredictionFileUrl||t.demandPredictionFileUrl,predictionFile:null===(o=t.files)||void 0===o?void 0:o.filter(function(e){return e.key===dc})[0]},tasks:{url:t.tasksFileUrl,file:null===(i=t.files)||void 0===i?void 0:i.filter(function(e){return e.key===fc})[0]},settings:wc(wc(wc({gasPrice:null},t.settings),t.settings&&"number"==typeof(null===(a=t.settings)||void 0===a?void 0:a.maxChargeLevel)&&!(null!==(l=t.settings)&&void 0!==l&&l.maxChargeLevelSettings)&&{maxChargeLevelSettings:{mode:"fixed",maxChargeLevel:t.settings.maxChargeLevel,demandTimeWindow:30,demandSensitiveChargingFile:null}}),{},{router:wc(wc({},t.settings.router),{},{type:t.settings.accelerated?"linear":t.settings.router.type}),secondaryRouter:t.settings.secondaryRouter&&"off"!==t.settings.secondaryRouter?t.settings.secondaryRouter:null,evChargingRates:wc({defaultRate:null},oc(t.settings.evChargingRates,"utc",null))}),vehiclesAndRoutes:{data:t.vehiclesAndRoutes,url:t.vehiclesAndRoutesFileUrl,file:null===(c=t.files)||void 0===c?void 0:c.filter(function(e){return e.key===sc})[0]},variationMetaData:{experimentId:t.experimentId,id:t.id,status:t.status}})},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){gc(i,r,o,a,l,"next",e)}function l(e){gc(i,r,o,a,l,"throw",e)}a(void 0)})});return function(e,n){return t.apply(this,arguments)}}();function Cc(e){return Cc="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},Cc(e)}function Oc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kc(e,t):void 0}}(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 kc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Dc(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Dc(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,Dc(d,"constructor",u),Dc(u,"constructor",c),c.displayName="GeneratorFunction",Dc(u,o,"GeneratorFunction"),Dc(d),Dc(d,o,"Generator"),Dc(d,r,function(){return this}),Dc(d,"toString",function(){return"[object Generator]"}),(Nc=function(){return{w:i,m:f}})()}function Dc(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Dc=function(e,t,n,r){function i(t,n){Dc(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Dc(e,t,n,r)}function Mc(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Fc(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Mc(i,r,o,a,l,"next",e)}function l(e){Mc(i,r,o,a,l,"throw",e)}a(void 0)})}}var Bc=function(){var e=Fc(Nc().m(function e(t,n){var r,o;return Nc().w(function(e){for(;;)switch(e.n){case 0:return(r=new FormData).append("file",t),r.append("key",n),e.n=1,it(r);case 1:return(o=e.v).status&&200!==o.status&&Pc(o),e.a(2,o.data)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),Lc=function(){var e=Fc(Nc().m(function e(t){return Nc().w(function(e){for(;;)if(0===e.n)return e.a(2,rt({urls:t}))},e)}));return function(t){return e.apply(this,arguments)}}(),Rc=function(){var e=Fc(Nc().m(function e(t){return Nc().w(function(e){for(;;)if(0===e.n)return e.a(2,ot(t))},e)}));return function(t){return e.apply(this,arguments)}}();const Gc=(0,n(25727).Ay)();function zc(e){return zc="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},zc(e)}function Wc(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return Uc(u,"_invoke",function(n,r,o){var i,l,c,u=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&u&&!o&&t3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Uc(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Uc(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,Uc(d,"constructor",u),Uc(u,"constructor",c),c.displayName="GeneratorFunction",Uc(u,o,"GeneratorFunction"),Uc(d),Uc(d,o,"Generator"),Uc(d,r,function(){return this}),Uc(d,"toString",function(){return"[object Generator]"}),(Wc=function(){return{w:i,m:f}})()}function Uc(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Uc=function(e,t,n,r){function i(t,n){Uc(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Uc(e,t,n,r)}function Vc(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Zc(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Vc(i,r,o,a,l,"next",e)}function l(e){Vc(i,r,o,a,l,"throw",e)}a(void 0)})}}function Hc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return qc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qc(e,t):void 0}}(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 qc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0}(t)},parkingStations:function(){return function(e,t){return!!function(e){var t,n=((null==e?void 0:e.fillingStations)||[]).some(function(e){return Rl(e.stationType)||Ll(e.stationType)}),r=!(null==e||null===(t=e.demandData)||void 0===t||!t.url);return n&&r}(t)||(null==e?void 0:e.length)>0}(t,n)},fillingStations:function(){return function(e){return(null==e?void 0:e.length)>0}(t)},vehicleGroups:function(){return function(e){if(!e)return!1;for(var t,n=function(t){var n=!0;if(Object.keys(e[t]).forEach(function(r){e[t][r]||Ya.includes(r)||(n=!1)}),!n)return{v:!1}},r=0;r0)return!1;var l=(null==e||null===(o=e.tasks)||void 0===o||null===(o=o.file)||void 0===o||null===(o=o.metrics)||void 0===o?void 0:o.vehicleGroups)||[];return!(Hl(l,(null==e?void 0:e.vehicleGroups)||[]).length>0)}(n)}}[e]()}(e,f[e],f)},H=(null==f||null===(t=f.variationMetaData)||void 0===t?void 0:t.status)===Y.PENDING,q=h===B.length-1;return r.createElement(r.Fragment,null,r.createElement(na,null,f&&r.createElement(r.Fragment,null,r.createElement(ra,null,r.createElement(fa,null,r.createElement(ia,null,o),c&&r.createElement(pa,null,j.t("addExperimentWizard.wizardViewStates.readOnly"))),r.createElement(ua,null,r.createElement(_a,{selectedStepIndex:h}),B.map(function(e,t){return function(e){var t=e.selectedIndex,n=e.index,o=e.title,i=e.onClick,a=e.isLastStep,l=e.isCompleted,c=e.signalIncomplete,u=e.isNavigationDisabled;return r.createElement(la,{key:o,index:n,selectedIndex:t,isLastStep:a},r.createElement(aa,{index:n,selectedIndex:t,onClick:i,isNavigationDisabled:u,"data-test-id":"".concat(o,"-tab")},r.createElement(ca,{index:n,selectedIndex:t,isCompleted:l,signalIncomplete:c}),l&&r.createElement(sa,null),c&&!l&&r.createElement(da,null),o))}({isNavigationDisabled:P,selectedIndex:h,index:t,title:e.title,onClick:function(){return!P&&v(t)},isLastStep:t===B.length-1,isCompleted:!b[e.id],signalIncomplete:x&&b[e.id]})}))),r.createElement(xa,{step:B[h],stepData:f[R],updateStepData:function(e){return U(e)},wizardData:f,showErrors:x,readOnly:c,setIsNavigationDisabled:N,setSelectedStepIndexById:function(e){return v(function(e){return B.findIndex(function(t){return t.id===e})}(e))}}),r.createElement(ha,{onClickSave:z,showClickSaveOverride:H,isLoading:A||P,onClick:function(){return q?V():v(h+1)},isLastStep:q,isReadOnly:c}))),r.createElement(er,{submitButtonText:"Back",isVisible:O,onClose:function(){return k(!1)},title:j.t("addExperimentWizard.steps.territory.popupErrorTitle"),onClickSubmitButton:function(){return k(!1)}},r.createElement(Fo,{errorMessage:j.t("genericServerError")})))};var Qc=n(61769),eu=n(40068);function tu(e){return tu="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},tu(e)}function nu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ru(e){for(var t=1;tt.maxLength&&(t.value=t.value.slice(0,t.maxLength))},ref:s,value:o,type:n},u)),l&&r.createElement(bu,null,l)),d&&r.createElement(hu,null))};var Cu=["title","value"];function Ou(){return Ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?"".concat(i.length+3,"ch"):"".concat(u.placeholder.length,"ch")}))))};function zu(e){return zu="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},zu(e)}function Wu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Uu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uu(e,t):void 0}}(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 Uu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0?"":j.t("addExperimentWizard.steps.details.placeHolders.tags"),value:O,tags:b,id:qu,isInvalid:x,removeTag:function(e){var t=b.filter(function(t){return t!==e});i({name:v,details:g,tags:t,simType:w})},title:r.createElement(uu,null,j.t("inputLabels.tags"))})))))};var Ju=n(75497),Yu=n(4213),Qu=n.n(Yu),es=l.default.div.withConfig({displayName:"styled__Container",componentId:"sc-1typ1va-0"})(["display:flex;flex-direction:column;height:100%;max-width:100%;width:100%;flex-grow:1;"]),ts=l.default.div.withConfig({displayName:"styled__DropzoneContainer",componentId:"sc-1typ1va-1"})(["background-color:",";border-width:2px;border-style:dotted;border-color:",";border-radius:6px;maxWidth:100%;width:100%;flex-grow:1;opacity:",";cursor:",";transition:all 0.2s;height:100%;"],function(e){return e.isLoading?"rgba(235, 236, 240, 0.1)":"rgba(235, 236, 240, 0.5)"},function(e){return function(e){return e.isDragActive||e.isDragReject||e.isDragAccept?"#2196f3":"#eeeeee"}(e)},function(e){return e.isLoading?"0.5":"1"},function(e){return e.isLoading?"default":"pointer"}),ns=l.default.div.withConfig({displayName:"styled__InnerDropZoneContainer",componentId:"sc-1typ1va-2"})(["display:flex;flex-direction:column;align-items:center;height:100%;justify-content:center;"]),rs=l.default.div.withConfig({displayName:"styled__DropzoneText",componentId:"sc-1typ1va-3"})([""," font-size:",";font-weight:300;margin-bottom:4px;"],function(e){var t=e.color;return t&&"color: ".concat(t,";")},s),os=l.default.div.withConfig({displayName:"styled__FileDescriptionLabel",componentId:"sc-1typ1va-4"})(["font-weight:500;font-size:",";display:flex;color:",";"],f,b),is=l.default.div.withConfig({displayName:"styled__CloseIconContainer",componentId:"sc-1typ1va-5"})(["margin-left:auto;padding-left:10px;"]),as=l.default.div.withConfig({displayName:"styled__FileSizeLabel",componentId:"sc-1typ1va-6"})(["font-size:",";margin-top:0.5em;font-weight:400;color:",";"],d,b),ls=(l.default.div.withConfig({displayName:"styled__DeleteFile",componentId:"sc-1typ1va-7"})(["margin-left:auto;font-weight:200;cursor:pointer;"]),l.default.div.withConfig({displayName:"styled__LabelContainer",componentId:"sc-1typ1va-8"})(["width:",";border:1px solid ",";border-radius:3px;padding:.5em;margin-top:.5em;box-shadow:0 3px 6px 0 rgba(0,0,0,0.16);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;"],function(e){return e.width||"100%"},h)),cs=l.default.div.withConfig({displayName:"styled__SupportedText",componentId:"sc-1typ1va-9"})(["color:",";font-size:",";font-weight:300;margin-top:4px;"],y,d),us=n(37353),ss=["children","transitionProps","shouldRender"];function ds(){return ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(ed(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,ed(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,ed(d,"constructor",u),ed(u,"constructor",c),c.displayName="GeneratorFunction",ed(u,o,"GeneratorFunction"),ed(d),ed(d,o,"Generator"),ed(d,r,function(){return this}),ed(d,"toString",function(){return"[object Generator]"}),(Qs=function(){return{w:i,m:f}})()}function ed(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ed=function(e,t,n,r){function i(t,n){ed(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},ed(e,t,n,r)}function td(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function nd(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){td(i,r,o,a,l,"next",e)}function l(e){td(i,r,o,a,l,"throw",e)}a(void 0)})}}function rd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return od(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?od(e,t):void 0}}(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 od(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n div > div > div,& div > div > div{max-height:none;overflow-y:visible;}"],Od.spacings.NONE,Od.spacings.LG,Od.spacings.SM),Kd=l.default.div.withConfig({displayName:"styled__ConfigurationFooter",componentId:"sc-lw3d6i-27"})(["display:flex;flex-direction:column;align-items:stretch;gap:",";background:",";margin-top:auto;align-self:stretch;"],Od.spacings.LG,Od.colors["bg-primary"]),$d=l.default.div.withConfig({displayName:"styled__FooterActions",componentId:"sc-lw3d6i-28"})(["display:flex;justify-content:flex-end;align-items:center;gap:",";"],Od.spacings.LG),Xd=l.default.button.withConfig({displayName:"styled__AddTaskButton",componentId:"sc-lw3d6i-29"})(["display:flex;height:32px;width:122px;padding:"," ",";justify-content:center;align-items:center;gap:",";border-radius:",";background:transparent;border:1px solid ",";color:",";cursor:pointer;transition:all 0.2s ease;&:hover,&:active{background:",";}"],Od.spacings.NONE,Od.spacings.LG,Od.spacings.SM,Od.borderRadius.MD,Od.colors["divider-neutral"],Od.colors["neutral-dark"],Od.colors["other-opa-01"]),Jd=l.default.div.withConfig({displayName:"styled__TaskButtonWrapper",componentId:"sc-lw3d6i-30"})(["padding-top:",";"],Od.spacings["2XL"]),Yd=l.default.div.withConfig({displayName:"styled__NumericFieldLightWrapper",componentId:"sc-lw3d6i-31"})(["input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}& *{box-sizing:border-box;align-items:center;}input[type=number]{-moz-appearance:textfield;}"]),Qd=(0,l.default)(Yd).withConfig({displayName:"styled__NumericFieldWrapper",componentId:"sc-lw3d6i-32"})(["padding-top:",";"],Od.spacings.LG),ef=l.default.div.withConfig({displayName:"styled__TasksContainer",componentId:"sc-lw3d6i-33"})(["display:flex;flex-direction:column;margin-top:",";overflow-y:auto;overflow-x:visible;padding-left:",";"],Od.spacings["3XL"],Od.spacings.XS),tf=l.default.h3.withConfig({displayName:"styled__TasksTitle",componentId:"sc-lw3d6i-34"})(["align-self:stretch;color:",";font-size:14px;font-style:normal;font-weight:700;line-height:20px;margin-top:",";margin-bottom:",";"],Od.colors["neutral-dark"],Od.spacings.NONE,Od.spacings.LG),nf=l.default.div.withConfig({displayName:"styled__TaskRow",componentId:"sc-lw3d6i-35"})(["display:flex;gap:",";width:100%;margin-bottom:",";& *{box-sizing:border-box;}"],Od.spacings.XL,Od.spacings["2XL"]),rf=l.default.div.withConfig({displayName:"styled__TaskTypeField",componentId:"sc-lw3d6i-36"})(["flex:1;min-width:0;display:flex;flex-direction:column;gap:",";"],Od.spacings.LG),of=l.default.div.withConfig({displayName:"styled__TaskDurationField",componentId:"sc-lw3d6i-37"})(["flex-shrink:0;"]),af=l.default.div.withConfig({displayName:"styled__TrashButtonContainer",componentId:"sc-lw3d6i-38"})(["display:flex;height:44px;padding:",";padding-top:28px;justify-content:center;align-self:top;gap:",";"],Od.spacings.NONE,Od.spacings.NONE),lf=l.default.button.withConfig({displayName:"styled__TrashButton",componentId:"sc-lw3d6i-39"})(["display:flex;width:32px;height:32px;padding:",";justify-content:center;align-items:center;border-radius:",";border:1px solid ",";background:transparent;cursor:pointer;transition:all 0.2s ease;&:hover,&:active{background:",";border-color:",";color:",";}"],Od.spacings.NONE,Od.borderRadius.MD,Od.colors["divider-neutral"],Od.colors["error-opa-01"],Od.colors["divider-neutral"],Od.colors.error),cf=l.default.div.withConfig({displayName:"styled__ExampleDownloadContainer",componentId:"sc-1ri6x92-0"})(["margin-bottom:16px;"]),uf=l.default.div.withConfig({displayName:"styled__FileUploadContainer",componentId:"sc-1ri6x92-1"})(["height:90%;"]),sf=n(55263),df=n(21844),ff={zIndex:100,top:0,display:"flex",flexDirection:"column",justifyContent:"start",background:"white",height:30,margin:"0 auto",padding:"0 12px",borderRadius:"3px",boxShadow:"0 2px 6px rgba(0, 0, 0, 0.3)",outline:"none",textOverflow:"ellipses",border:0};const pf=function(e){var t=e.maps,n=e.onPlacesChanged,o=e.placeholder,i=(0,r.useRef)(null),a=(0,r.useRef)(null),l=(0,r.useCallback)(function(){n&&a&&a.current&&n(a.current.getPlaces())},[n,a]);return(0,r.useEffect)(function(){var e;return!a.current&&t&&(a.current=new t.places.SearchBox(i.current),null===(e=a.current)||void 0===e||e.addListener("places_changed",l)),function(){t&&(a.current=null,t.event.clearInstanceListeners(a))}},[t,l]),r.createElement("input",{style:ff,ref:i,type:"text",placeholder:o})};var mf=n(58246),yf=n(31540),hf=l.default.div.withConfig({displayName:"styled__ButtonContainer",componentId:"sc-uojkqh-0"})(["position:absolute;top:8px;right:8px;max-width:calc(50% - 266px);min-width:200px;button{width:100%;span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}"]),vf=l.default.div.withConfig({displayName:"styled__PublicStationsFormContainer",componentId:"sc-uojkqh-1"})(["padding:20px;overflow-y:auto;box-sizing:border-box;display:flex;flex-direction:column;width:100%;height:100%;.public-stations-select__control{min-height:36px;font-size:13px;}.public-stations-select__placeholder{font-size:13px;}.public-stations-select__indicator-container{padding:6px;}.public-stations-select__menu{font-size:13px;}.public-stations-select__menu-list{max-height:200px;}.public-stations-select__multi-value{font-size:12px;}.public-stations-select__multi-value__label{font-size:12px;}"]),gf=l.default.span.withConfig({displayName:"styled__TitleContainer",componentId:"sc-uojkqh-2"})(["font-size:13px;color:",";padding-right:8px;margin-right:0;flex-direction:row;display:flex;align-items:center;font-weight:500;"],b),bf=l.default.span.withConfig({displayName:"styled__NumberContainer",componentId:"sc-uojkqh-3"})(["font-size:13px;color:",";background-color:",";padding:3px 8px;margin-left:6px;flex-direction:row;display:flex;border-radius:3px;"],b,h),wf=(0,l.default)(yf.Ay).withConfig({displayName:"styled__StyledSlider",componentId:"sc-uojkqh-4"})(["color:red;"]),Ef=l.default.div.withConfig({displayName:"styled__FilterContainer",componentId:"sc-uojkqh-5"})(["display:flex;flex-direction:column;margin-bottom:16px;width:100%;"]),xf=(0,l.default)(gf).withConfig({displayName:"styled__FilterTitle",componentId:"sc-uojkqh-6"})(["padding-right:0;margin-bottom:8px;margin-right:0;font-size:13px;"]),Sf=l.default.div.withConfig({displayName:"styled__DropdownWrapper",componentId:"sc-uojkqh-7"})(["width:100%;"]),Cf=l.default.div.withConfig({displayName:"styled__SliderWrapper",componentId:"sc-uojkqh-8"})(["width:97%;padding-left:8px;padding-right:8px;"]),Of=l.default.div.withConfig({displayName:"styled__LabelsWrapper",componentId:"sc-uojkqh-9"})(["width:100%;margin-bottom:12px;"]),kf=(0,l.default)(gf).withConfig({displayName:"styled__ResultsTitle",componentId:"sc-uojkqh-10"})(["font-size:13px;margin-bottom:12px;"]),_f=l.default.div.withConfig({displayName:"styled__FooterContainer",componentId:"sc-uojkqh-11"})(["display:flex;gap:12px;margin-top:auto;padding-top:16px;border-top:1px solid #E5E7EB;"]),Af=(0,l.default)(mf.$).withConfig({displayName:"styled__FlexButton",componentId:"sc-uojkqh-12"})(["flex:1;"]),jf=function(e){return function(t,n){var o=(0,r.useRef)(t);return(0,r.useEffect)(function(){o.current=t}),(0,r.useCallback)(e(function(){return o.current.apply(o,arguments)},n),[n])}},Tf=jf(Bo.debounce);const If=jf(Bo.throttle);function Pf(e){return Pf="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},Pf(e)}function Nf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Df(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n *{flex-shrink:0;min-width:fit-content;}"],Gf.spacings.NONE,Gf.spacings.LG);const Uf=function(e){var t=e.labels,n=void 0===t?[]:t,o=e.onChange,i=(0,r.useCallback)(function(e){return(n||[]).includes(e)},[n]),a=Lf((0,r.useState)(function(){return i(wl)}),2),l=a[0],c=a[1],u=Lf((0,r.useState)(function(){return i(El)}),2),s=u[0],d=u[1];(0,r.useEffect)(function(){c(i(wl)),d(i(El))},[n,i]);var f=(0,r.useCallback)(function(e,t){var n=[];return e&&n.push(wl),t&&n.push(El),n},[]),p=(0,r.useCallback)(function(e){if("during"===e){var t=!l;c(t),null==o||o(f(t,s))}else{var n=!s;d(n),null==o||o(f(l,n))}},[l,s,o,f]);return r.createElement(zf,null,r.createElement(Wf,null,r.createElement(Bf.l,{checked:l,onChange:function(){return p("during")},mainLabel:j.t("addExperimentWizard.steps.fillingStations.duringShiftChargingLabel"),"aria-label":j.t("addExperimentWizard.steps.fillingStations.duringShiftChargingLabel")})),r.createElement(Wf,null,r.createElement(Bf.l,{checked:s,onChange:function(){return p("endOf")},mainLabel:j.t("addExperimentWizard.steps.fillingStations.endOfShiftChargingLabel"),"aria-label":j.t("addExperimentWizard.steps.fillingStations.endOfShiftChargingLabel")})))};function Vf(e){return Vf="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},Vf(e)}function Zf(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return Hf(u,"_invoke",function(n,r,o){var i,l,c,u=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&u&&!o&&t3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Hf(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Hf(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,Hf(d,"constructor",u),Hf(u,"constructor",c),c.displayName="GeneratorFunction",Hf(u,o,"GeneratorFunction"),Hf(d),Hf(d,o,"Generator"),Hf(d,r,function(){return this}),Hf(d,"toString",function(){return"[object Generator]"}),(Zf=function(){return{w:i,m:f}})()}function Hf(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Hf=function(e,t,n,r){function i(t,n){Hf(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Hf(e,t,n,r)}function qf(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Kf(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){qf(i,r,o,a,l,"next",e)}function l(e){qf(i,r,o,a,l,"throw",e)}a(void 0)})}}function $f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xf(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=3e3?"+":void 0):void 0)):void 0),r.createElement(_f,null,r.createElement(Af,{variant:"secondary",onClick:o},"Cancel"),r.createElement(Af,{variant:"primary",disabled:y||!(g&&g.length),onClick:function(){t(function(e,t){var n=t.labels;return null==e?void 0:e.map(function(e){var t,r,o=e.slots;return Xf({slots:e.slots&&e.slots.length,address:e.displayAddress,rate:Number(o&&o.length&&o[0].powerInKw)||1,type:il,labels:n,stationType:Sl.CHARGING_STATION},(t=e,r=rp,Object.keys(t).reduce(function(e,n){return Df(Df({},e),r.includes(n)?function(e,t){return Ff.includes(e)?Mf({},e,Number(t[e])):Mf({},e,t[e])}(n,t):{})},{})))})}(g,{labels:f})),o&&o()}},j.t("addExperimentWizard.steps.fillingStations.import"))))},ap=function(e){var t=e.onClick;return r.createElement(hf,null,r.createElement(mf.$,{variant:"primary",onClick:t},j.t("addExperimentWizard.steps.fillingStations.importPublicChargingStations")))};function lp(e){return lp="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},lp(e)}function cp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function up(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return sf.Zz.apply(void 0,[(0,sf.IN)(up({googleMapURL:"https://maps.googleapis.com/maps/api/js?key=".concat(O.GMAPS_API_KEY,"&v=3.exp&libraries=geometry,drawing,places"),loadingElement:r.createElement("div",null)},t)),df.Fq].concat(function(e){return function(e){if(Array.isArray(e))return mp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||pp(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.")}()}(e)))};const gp=vp()(hp);var bp=(0,eu.us)({isDarkMode:!1}),wp=l.default.div.withConfig({displayName:"styled__Container",componentId:"sc-1b978dr-0"})(["width:",";height:",";min-width:",";border-radius:8px;overflow:hidden;position:relative;"],function(e){return e.width||"70%"},function(e){return e.height||"100%"},function(e){return e.minWidth||"300px"}),Ep=l.default.div.withConfig({displayName:"styled__TopBannerContainer",componentId:"sc-1b978dr-1"})(["display:flex;width:931px;height:108px;padding-bottom:",";flex-direction:column;align-items:center;gap:",";position:absolute;top:",";left:50%;transform:translateX(-50%);box-sizing:border-box;pointer-events:none;*{pointer-events:auto;}"],bp.spacings["3XL"],bp.spacings.LG,bp.spacings.NONE),xp=l.default.div.withConfig({displayName:"styled__TopBannerContent",componentId:"sc-1b978dr-2"})(["display:flex;padding:"," "," "," ",";flex-direction:column;align-items:center;gap:",";border-radius:"," "," "," ",";background:",";box-shadow:0 0 16px 0 rgba(33,34,41,0.16);"],bp.spacings.NONE,bp.spacings["2XL"],bp.spacings["2XL"],bp.spacings["2XL"],bp.spacings["2XL"],bp.borderRadius.NONE,bp.borderRadius.NONE,bp.borderRadius.XL,bp.borderRadius.XL,bp.colors["bg-primary"]),Sp=l.default.div.withConfig({displayName:"styled__TopBannerTitle",componentId:"sc-1b978dr-3"})(["color:",";font-size:14px;font-style:normal;font-weight:700;line-height:20px;text-align:center;"],bp.colors["neutral-dark"]),Cp=l.default.div.withConfig({displayName:"styled__TopBannerRow",componentId:"sc-1b978dr-4"})(["display:flex;align-items:center;gap:12px;width:100%;& > button:first-child{flex-shrink:0;}& > div{flex:1;min-width:0;}"]),Op=l.default.div.withConfig({displayName:"styled__SearchFieldWrapper",componentId:"sc-1b978dr-5"})(["& *{box-sizing:border-box;}"]),kp=n(32347),_p=function(e){return r.createElement("svg",e,r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0-1a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",fill:"#fff"}),r.createElement("path",{d:"M6.044 11h-.087.087Z",fill:"#fff"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 5.2c0 2.103-1.602 4.633-4.313 7.571-.222.24-.45.483-.687.729a49.022 49.022 0 0 1-.687-.729C2.603 9.833 1 7.303 1 5.2 1 2.328 3.239 0 6 0s5 2.328 5 5.2Zm-1 0c0 .872-.364 1.947-1.178 3.257-.676 1.09-1.626 2.284-2.822 3.584-1.196-1.3-2.146-2.495-2.822-3.584C2.364 7.147 2 6.072 2 5.2 2 2.843 3.827 1 6 1s4 1.843 4 4.2Z",fill:"#fff"}),r.createElement("path",{d:"M11 13.5c0 .055-.077.434-1.04.85-.886.382-2.241.65-3.96.65-1.72 0-3.074-.268-3.96-.65-.963-.416-1.04-.795-1.04-.85 0-.055.077-.434 1.04-.85.202-.087.428-.168.677-.241l-.672-.834C.75 12.034 0 12.725 0 13.5 0 14.88 2.385 16 6 16s6-1.12 6-2.5c0-.755-.714-1.433-1.953-1.891l-.627.842c.196.062.375.129.54.2.963.415 1.04.794 1.04.849Z",fill:"#fff"}))};_p.defaultProps={width:"12",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const Ap=function(e){var t=e.title,n=void 0===t?j.t("map.topBanner.title"):t,o=e.onAddStationClick,i=e.searchValue,a=e.onSearchChange,l=e.onSearchClear,c=e.onPlaceChanged,u=e.onAutocompleteLoad;return r.createElement(Ep,null,r.createElement(xp,null,r.createElement(Sp,null,n),r.createElement(Cp,null,r.createElement(mf.$,{onClick:o},r.createElement(_p,{width:"16",height:"16"}),r.createElement("span",{style:{marginLeft:"8px"}},j.t("map.topBanner.addStationButton"))),r.createElement(Qc.jT,{onPlaceChanged:c,onLoad:u},r.createElement(Op,null,r.createElement(kp.L,{value:i,onChange:function(e){return a(e.target.value)},placeholder:j.t("map.topBanner.searchPlaceholder"),onClear:l}))))))};function jp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Tp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tp(e,t):void 0}}(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 Tp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Mp(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Mp(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,Mp(d,"constructor",u),Mp(u,"constructor",c),c.displayName="GeneratorFunction",Mp(u,o,"GeneratorFunction"),Mp(d),Mp(d,o,"Generator"),Mp(d,r,function(){return this}),Mp(d,"toString",function(){return"[object Generator]"}),(Dp=function(){return{w:i,m:f}})()}function Mp(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Mp=function(e,t,n,r){function i(t,n){Mp(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Mp(e,t,n,r)}function Fp(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}new(n(66849).Client);var Bp=function(){return{file:null,polygon:null,center:cc.TLV}},Lp=function(e){var t;switch(e.type){case"Polygon":return e;case"Feature":return e.geometry;case"FeatureCollection":return e.features&&(null===(t=e.features[0])||void 0===t?void 0:t.geometry);default:throw new Error("cannot parse polygon from object")}};const Rp=function(e){var t=e.stepData,n=e.updateStepData,o=e.showErrors,i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Np(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Np(e,t):void 0}}(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.")}()}((0,r.useState)(!1),2),a=i[0],l=i[1],c=t.polygon,u=function(e){var t=$i.polygon([e]);return $i.centroid(t)},s=function(){var e,t=(e=Dp().m(function e(t){var r;return Dp().w(function(e){for(;;)switch(e.n){case 0:return(r=new FileReader).addEventListener("load",function(e){try{var r,o=Lp(JSON.parse(null==e||null===(r=e.target)||void 0===r?void 0:r.result)).coordinates[0],i=u(o);n({file:t,polygon:o,center:{lng:i.geometry.coordinates[0],lat:i.geometry.coordinates[1]}})}catch(e){l(!0)}}),r.addEventListener("error",function(){l(!0)}),e.n=1,r.readAsText(t);case 1:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Fp(i,r,o,a,l,"next",e)}function l(e){Fp(i,r,o,a,l,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}();return r.createElement(su,null,o&&(!c||0===c.length)&&r.createElement(au,null,ZS("territory.incompleteErrorText")),r.createElement(cf,null,r.createElement(Js,{filename:Hs})),r.createElement(pu,null,r.createElement(Fd,null,r.createElement(ad,{error:a,currentFile:t.file,uploadFileCb:s,onDismissFile:function(){return n(Bp())}},r.createElement(cs,null,j.t("fileUploader.supported.geo")))),r.createElement(mu,null,r.createElement(Pp,{width:"100%",height:"100%","flex-grow":"1",withSearch:!0,drawingMode:"polygon",activateDrawing:!0,onNewPolygonDrawn:function(e){e.setMap(null);for(var t=[],r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(fm(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,fm(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,fm(d,"constructor",u),fm(u,"constructor",c),c.displayName="GeneratorFunction",fm(u,o,"GeneratorFunction"),fm(d),fm(d,o,"Generator"),fm(d,r,function(){return this}),fm(d,"toString",function(){return"[object Generator]"}),(dm=function(){return{w:i,m:f}})()}function fm(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}fm=function(e,t,n,r){function i(t,n){fm(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},fm(e,t,n,r)}function pm(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function mm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||ym(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 ym(e,t){if(e){if("string"==typeof e)return hm(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hm(e,t):void 0}}function hm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Cm(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Cm(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,Cm(d,"constructor",u),Cm(u,"constructor",c),c.displayName="GeneratorFunction",Cm(u,o,"GeneratorFunction"),Cm(d),Cm(d,o,"Generator"),Cm(d,r,function(){return this}),Cm(d,"toString",function(){return"[object Generator]"}),(Sm=function(){return{w:i,m:f}})()}function Cm(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Cm=function(e,t,n,r){function i(t,n){Cm(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Cm(e,t,n,r)}function Om(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function km(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Om(i,r,o,a,l,"next",e)}function l(e){Om(i,r,o,a,l,"throw",e)}a(void 0)})}}function _m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Am(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n5},null==u?void 0:u.map(function(e,t){return r.createElement(Gp.A,{key:t,in:!0},r.createElement(nm,null,r.createElement(em,null,t+1),r.createElement(Qp,null,o.map(function(n){var o,i=e[n.accessor],l=y(i),c=function(e){return d(e,t,n.accessor)},s=a&&function(e,t){return e.validation?!e.validation(t):""===t}(n,e[n.accessor]),f=n.isCustomAvailable&&(e[Ja]||i&&n.options&&!n.options[i]),p=a&&0===(null===(o=e[n.accessor])||void 0===o?void 0:o.length)&&!Pm.includes(n.accessor),v="batteryCapacityKWH"===n.accessor&&e.powerTrain===tl.IC.value||"chargeRateKWH"===n.accessor&&e.powerTrain===tl.IC.value||n.accessor===qa&&e.powerTrain!==tl.EV.value,g=u.length>4&&t>u.length-4?"top":"bottom";return r.createElement(am,{key:n.title,width:n.width,minWidth:n.minWidth},function(){switch(f?"input":n.type){case"input":return m(r.createElement(vu,null,r.createElement(tm,{autoFocus:n.isCustomAvailable&&!i,disabled:v,error:l&&!Pm.includes(n.accessor),id:n.accessor,type:n.inputType,min:1,onChange:function(e){return c("number"===n.inputType&&e.target.value?+e.target.value:e.target.value)},value:i}),n.unit&&r.createElement(bu,null,n.unit)),s);case"dropdown":return m(r.createElement(Ci,{id:n.accessor,menuPlacement:g,error:l,backgroundColor:"#fafafb",handleChange:function(e){return c(e)},options:Object.values(n.options).sort(function(e,t){return"Other"===t.label?1:e.label.localeCompare(t.label)}),value:n.options[i]||n.options[null==i?void 0:i.toUpperCase()]||n.options[(null==i||null===(e=i.charAt(0))||void 0===e?void 0:e.toUpperCase())+(null==i?void 0:i.slice(1))]}),s);case"tag input":return m(r.createElement(Ci,{id:n.accessor,menuPlacement:g,error:y(i,!0)&&!Pm.includes(n.accessor),backgroundColor:"#fafafb",options:n.options,isMulti:!0,handleChange:function(e){return c(e.map(function(e){return e.value||e}))},value:h(i,n.options)}),p);case"chargeRate":return r.createElement(Em,{value:null!=i?i:u[t].chargingCurve,onChange:function(e){var r="number"==typeof e?e:null,o=Array.isArray(e)?e:null;d(r,t,n.accessor),d(o,t,Ka)},disabled:v});default:return null}var e}())})),r.createElement(rm,null,r.createElement(im,{id:"clone",onClick:function(){return p(t)}}),r.createElement(om,{id:"delete",onClick:function(){return e=t,u.splice(e,1),void n(u);var e}}))))}),r.createElement("div",{ref:s})),r.createElement(ur,{onClick:f},c))};function Dm(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return Mm(u,"_invoke",function(n,r,o){var i,l,c,u=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&u&&!o&&t3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Mm(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Mm(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,Mm(d,"constructor",u),Mm(u,"constructor",c),c.displayName="GeneratorFunction",Mm(u,o,"GeneratorFunction"),Mm(d),Mm(d,o,"Generator"),Mm(d,r,function(){return this}),Mm(d,"toString",function(){return"[object Generator]"}),(Dm=function(){return{w:i,m:f}})()}function Mm(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Mm=function(e,t,n,r){function i(t,n){Mm(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Mm(e,t,n,r)}function Fm(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Bm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(zy(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,zy(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,zy(d,"constructor",u),zy(u,"constructor",c),c.displayName="GeneratorFunction",zy(u,o,"GeneratorFunction"),zy(d),zy(d,o,"Generator"),zy(d,r,function(){return this}),zy(d,"toString",function(){return"[object Generator]"}),(Gy=function(){return{w:i,m:f}})()}function zy(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}zy=function(e,t,n,r){function i(t,n){zy(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},zy(e,t,n,r)}function Wy(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Uy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vy(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vy(e,t):void 0}}(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 Vy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&void 0!==arguments[2]?arguments[2]:"data-station-id";(0,r.useEffect)(function(){if(e&&t.current){var r=t.current.querySelector("[".concat(n,'="').concat(e,'"]'));null==r||r.scrollIntoView({block:"nearest",behavior:"smooth"})}},[e,t,n])}(a,s);var d=function(e){var t=new Set;return e.jobs&&"object"===Ah(e.jobs)&&Object.keys(e.jobs).forEach(function(e){return t.add(e)}),e.timeLimitations&&Array.isArray(e.timeLimitations)&&e.timeLimitations.forEach(function(e){e.jobs&&"object"===Ah(e.jobs)&&Object.keys(e.jobs).forEach(function(e){return t.add(e)})}),Array.from(t).slice(0,5)},f=function(e){var t=e.stationType,n=e.type||sl;return Gl(t)?"Maintenance":"parking_and_charging"===t?ml[n].parkingAndCharging:"charging"===t?ml[n].charging:"parking"===t?"Parking":""},p=(0,r.useCallback)(function(e,t){var r=n.find(function(t){return t.id===e});r&&c&&c(kh(kh({},r),{},{capabilities:t}))},[n,c]),m=(0,r.useCallback)(function(e,t){var r=n.find(function(t){return t.id===e});r&&c&&c(kh(kh({},r),{},{labels:t}))},[n,c]),y=(0,r.useMemo)(function(){var e={};return null==n||n.forEach(function(t){e[t.id]=function(e){return m(t.id,e)}}),e},[n,m]),h=(0,r.useMemo)(function(){var e={};return null==n||n.forEach(function(t){e[t.id]=function(e){return p(t.id,e)}}),e},[n,p]);return r.createElement(sd,null,r.createElement(vd,null,r.createElement(dd,null,r.createElement(fd,null,n.length," ",j.t("addExperimentWizard.steps.parkingStations.stations")),i&&n.length>0&&r.createElement(pd,{onClick:i,"data-test-id":"removeAll"},j.t("addExperimentWizard.steps.fillingStations.removeAll")))),r.createElement(md,{ref:s},n.filter(function(e){return e&&e.id}).map(function(e,t){return r.createElement(Ch,{key:e.id,station:e,index:t,isHighlighted:a===e.id,addressPlaceholder:u,onStationClicked:l,onRemoveStation:o,getStationTypeLabel:f,getMaintenanceJobs:d,labelsChangeCallback:y[e.id],capabilitiesChangeCallback:h[e.id]})})))};const Th=(0,r.memo)(jh);function Ih(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ph(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ph(e,t):void 0}}(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 Ph(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0&&t.current){var r=t.current.querySelectorAll(n)[e];null==r||r.scrollIntoView({block:"nearest",behavior:"smooth"})}},[e,t,n])}(f,g,o),{searchValue:a,isSearchMode:u,highlightedIndex:f,isDropdownOpen:y,searchFieldRef:v,listRef:g,setSearchValue:l,setIsSearchMode:s,setHighlightedIndex:p,setIsDropdownOpen:h,resetSearch:function(){l(""),s(!1),p(-1)}}},Dh=n(29592),Mh=[{value:Sl.CHARGING_STATION,label:j.t("addExperimentWizard.steps.fillingStations.stationTypeOptions.charging")},{value:Sl.PARKING_AND_CHARGING_STATION,label:j.t("addExperimentWizard.steps.fillingStations.stationTypeOptions.parking_and_charging")},{value:Sl.MAINTENANCE_STATION,label:j.t("addExperimentWizard.steps.fillingStations.stationTypeOptions.maintenance")},{value:Sl.PARKING_STATION,label:j.t("addExperimentWizard.steps.fillingStations.stationTypeOptions.parking")}];const Fh=function(e){var t=e.selectedStationType,n=e.isDropdownOpen,o=e.onDropdownOpenChange,i=e.onTypeSelect,a=e.alert;return r.createElement(qd,null,r.createElement(Dh.l,{label:j.t("addExperimentWizard.steps.fillingStations.newStationConfiguration.stationTypeLabel"),placeholder:n?j.t("addExperimentWizard.steps.fillingStations.newStationConfiguration.searchPlaceholder"):j.t("addExperimentWizard.steps.fillingStations.newStationConfiguration.addPlaceholder"),selected:t,options:Mh,onChange:function(e){return i(Mh.find(function(t){return t.value===e}))},onOpenChange:o,disallowClear:!0,supportingContentText:Boolean(a)?a:void 0,disallowCancel:!0,layout:"vertical",selectWidth:"dynamic",size:"small",appendMenuTo:"parent",hasError:Boolean(a)}))};var Bh=n(13670);function Lh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0)return}i(),n()}else A(j.t("addExperimentWizard.steps.fillingStations.newStationConfiguration.requiredError"))}},j.t("addExperimentWizard.steps.fillingStations.newStationConfiguration.addStationButton")))))};var ev=function(e){return r.createElement("svg",e,r.createElement("path",{d:"m13.25 14.65-4.3-4.3v-5.4h2v4.6l3.7 3.7-1.4 1.4ZM.8 14.025a9.403 9.403 0 0 1-.525-1.5A10.047 10.047 0 0 1 0 10.95h2.025c.05.35.12.7.212 1.05.092.35.205.692.338 1.025l-1.775 1ZM0 8.95c.05-.533.142-1.062.275-1.587.133-.526.317-1.03.55-1.513l1.75 1a8.676 8.676 0 0 0-.338 1.025c-.091.35-.162.708-.212 1.075H0Zm4.125 9.15c-.45-.333-.867-.696-1.25-1.088A12.095 12.095 0 0 1 1.8 15.75l1.75-1c.233.3.48.58.737.838.259.258.538.504.838.737l-1 1.775Zm-.55-12.975-1.775-1c.333-.45.692-.867 1.075-1.25s.8-.742 1.25-1.075l1 1.775a11.372 11.372 0 0 0-1.55 1.55ZM8.95 19.9a10.378 10.378 0 0 1-1.587-.275 7.998 7.998 0 0 1-1.513-.55l1-1.75c.333.133.675.246 1.025.338.35.091.708.162 1.075.212V19.9ZM6.85 2.575l-1-1.75a7.998 7.998 0 0 1 1.513-.55A10.374 10.374 0 0 1 8.95 0v2.025a8.676 8.676 0 0 0-2.1.55Zm4.1 17.325v-2.025a8.685 8.685 0 0 0 2.1-.55l1 1.75a7.998 7.998 0 0 1-1.513.55c-.525.133-1.054.225-1.587.275Zm2.1-17.325a8.674 8.674 0 0 0-1.025-.338 9.08 9.08 0 0 0-1.075-.212V0c.533.05 1.063.142 1.588.275.524.133 1.029.317 1.512.55l-1 1.75ZM15.775 18.1l-1-1.775a11.372 11.372 0 0 0 1.55-1.55l1.775 1c-.333.45-.692.87-1.075 1.263a8.96 8.96 0 0 1-1.25 1.062Zm.55-12.975a11.372 11.372 0 0 0-1.55-1.55l1-1.775a9.474 9.474 0 0 1 2.3 2.3l-1.75 1.025Zm1.55 3.825a9.076 9.076 0 0 0-.212-1.075 8.687 8.687 0 0 0-.338-1.025l1.75-1.025c.217.5.396 1.013.538 1.537.141.526.237 1.055.287 1.588h-2.025Zm1.2 5.1-1.75-1c.133-.333.246-.675.338-1.025.091-.35.162-.708.212-1.075H19.9c-.05.533-.142 1.063-.275 1.588a7.998 7.998 0 0 1-.55 1.512Z",fill:"#fff"}))};ev.defaultProps={width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var tv=(0,eu.us)({isDarkMode:!1}),nv=l.default.div.withConfig({displayName:"UndefinedStationMarker__StyledIconContainer",componentId:"sc-c9kcoi-0"})(["width:32px;height:32px;display:flex;padding:",";justify-content:center;align-items:center;border-radius:",";background:",";box-shadow:0 3px 8px 0 rgba(33,34,41,0.32);"],tv.spacings.NONE,tv.borderRadius.LG,tv.colors["neutral-light"]),rv=(0,l.default)(ev).withConfig({displayName:"UndefinedStationMarker__StyledIcon",componentId:"sc-c9kcoi-1"})(["display:block;width:20px;height:20px;flex-shrink:0;aspect-ratio:1/1;fill:",";"],tv.colors["neutral-invert"]);const ov=function(e){var t=e.position;return r.createElement(Iy,{mapPaneName:Iy.FLOAT_PANE,position:{lat:parseFloat(t.lat),lng:parseFloat(t.lng)}},r.createElement(nv,null,r.createElement(rv,null)))};function iv(e,t){if(e){if("string"==typeof e)return av(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?av(e,t):void 0}}function av(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n7)throw new Error(j.t("fileUploader.timeLimitationValidation.invalidDay",{day:n,start:e.startTime,end:e.endTime}));return 7===r?0:r};function dv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(e);try{for(r.s();!(t=r.n()).done;){var o=t.value,i=sv(o),a=cv(o.startTime),l=cv(o.endTime);if(l<=a){var c=l0&&u.push({day:t,conflictingRanges:n})}),u}(t)}catch(t){var o=j.t("fileUploader.timeLimitationValidation.stationPrefix",{address:e});throw new Error(n?"".concat(o," (").concat(n,"): ").concat(t.message):"".concat(o,": ").concat(t.message))}if(r.length>0)throw new Error(function(e,t,n){var r=t.map(function(e){var t,n=(t=e.day,lv[t]?j.t("general.days.".concat(lv[t])):"Day ".concat(t)),r=e.conflictingRanges.map(function(e){var t=e.range1,n=e.range2;return j.t("fileUploader.timeLimitationValidation.overlapDetail",{start1:t.startTime,end1:t.endTime,start2:n.startTime,end2:n.endTime})}).join("; ");return"".concat(n,": ").concat(r)}),o=j.t("fileUploader.timeLimitationValidation.overlappingHeader",{address:e});return"".concat(n?"".concat(o," (").concat(n,")"):o,"\n").concat(r.join("\n"))}(e,r,n))},pv=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){var t={};return Object.entries(e).forEach(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return dv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dv(e,t):void 0}}(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.")}()}(e,2),r=n[0],o=n[1],i=r.replace(/([-_][a-z])/g,function(e){return e.toUpperCase().replace(/[-_]/g,"")});t[i]=o}),t})},mv=function(e){return e.map(function(e){var t,n,r,o,i,a=e.station_type||Sl.CHARGING_STATION,l=pv(e.timeLimitations),c=pv(e.parkingTimeLimitations),u=pv(e.chargingTimeLimitations);return fv(e.address,l,"timeLimitations"),fv(e.address,c,"parkingTimeLimitations"),fv(e.address,u,"chargingTimeLimitations"),{id:(0,Xl.A)(),slots:Number(e.slots),address:e.address,lat:Number(e.lat),lng:Number(e.lng),rate:Number(e.fill_rate),type:e.type,labels:e.labels||xl,stationType:a,numOfHandles:null!==(t=e.connectors_per_charger)&&void 0!==t?t:e.num_of_handles,powerAllocationUnit:e.power_allocation_unit,chargerPostRefuelWaitTime:e.charger_post_refuel_wait_time,capacity:e.capacity,capabilities:(n=e.capabilities,r="string"==typeof n?n.split(","):[],o=Object.values(Dl),i=r.filter(function(e){return o.includes(e)}),(i.length?i:null)||(Ol.includes(a)?Nl:null)),idleConsumption:e.idleConsumption,timeLimitations:l,parkingTimeLimitations:c,chargingTimeLimitations:u,parkingSuccessLikelihood:e.parking_success_likelihood}})},yv=function(e){return e.map(function(e){var t,n=pv(e.timeLimitations);return fv(null!==(t=e.address)&&void 0!==t?t:"(unknown address)",n),{id:e.id||"maintenance-".concat((0,Xl.A)()),lat:Number(e.lat),lng:Number(e.lng),address:e.address,capacity:Number(e.capacity),jobs:e.jobs,timeLimitations:n,stationType:Sl.MAINTENANCE_STATION}})};function hv(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return vv(u,"_invoke",function(n,r,o){var i,l,c,u=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&u&&!o&&t3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(vv(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,vv(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,vv(d,"constructor",u),vv(u,"constructor",c),c.displayName="GeneratorFunction",vv(u,o,"GeneratorFunction"),vv(d),vv(d,o,"Generator"),vv(d,r,function(){return this}),vv(d,"toString",function(){return"[object Generator]"}),(hv=function(){return{w:i,m:f}})()}function vv(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}vv=function(e,t,n,r){function i(t,n){vv(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},vv(e,t,n,r)}function gv(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function bv(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){gv(i,r,o,a,l,"next",e)}function l(e){gv(i,r,o,a,l,"throw",e)}a(void 0)})}}function wv(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return Ev(u,"_invoke",function(n,r,o){var i,l,c,u=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&u&&!o&&t3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Ev(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Ev(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,Ev(d,"constructor",u),Ev(u,"constructor",c),c.displayName="GeneratorFunction",Ev(u,o,"GeneratorFunction"),Ev(d),Ev(d,o,"Generator"),Ev(d,r,function(){return this}),Ev(d,"toString",function(){return"[object Generator]"}),(wv=function(){return{w:i,m:f}})()}function Ev(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ev=function(e,t,n,r){function i(t,n){Ev(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Ev(e,t,n,r)}function xv(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}var Sv=function(){var e,t=(e=wv().m(function e(t,n){var r,o,i,a;return wv().w(function(e){for(;;)switch(e.n){case 0:return o=new google.maps.Geocoder,i=new google.maps.LatLng({lat:t,lng:n}),e.n=1,o.geocode({location:i});case 1:return a=e.v,e.a(2,null==a||null===(r=a.results[0])||void 0===r?void 0:r.formatted_address)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){xv(i,r,o,a,l,"next",e)}function l(e){xv(i,r,o,a,l,"throw",e)}a(void 0)})});return function(e,n){return t.apply(this,arguments)}}();function Cv(e){return Cv="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},Cv(e)}function Ov(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return kv(u,"_invoke",function(n,r,o){var i,l,c,u=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&u&&!o&&t3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(kv(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,kv(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,kv(d,"constructor",u),kv(u,"constructor",c),c.displayName="GeneratorFunction",kv(u,o,"GeneratorFunction"),kv(d),kv(d,o,"Generator"),kv(d,r,function(){return this}),kv(d,"toString",function(){return"[object Generator]"}),(Ov=function(){return{w:i,m:f}})()}function kv(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}kv=function(e,t,n,r){function i(t,n){kv(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},kv(e,t,n,r)}function _v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Av(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Vv(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Vv(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,Vv(d,"constructor",u),Vv(u,"constructor",c),c.displayName="GeneratorFunction",Vv(u,o,"GeneratorFunction"),Vv(d),Vv(d,o,"Generator"),Vv(d,r,function(){return this}),Vv(d,"toString",function(){return"[object Generator]"}),(Uv=function(){return{w:i,m:f}})()}function Vv(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Vv=function(e,t,n,r){function i(t,n){Vv(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Vv(e,t,n,r)}function Zv(e){return function(e){if(Array.isArray(e))return qv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Hv(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.")}()}function Hv(e,t){if(e){if("string"==typeof e)return qv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qv(e,t):void 0}}function qv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0?r.createElement(Th,{stations:t,onRemoveStation:e.handleRemoveStation,onRemoveAll:e.handleRemoveAll,highlightedStationId:null==l?void 0:l.id,onStationClicked:c,onStationChanged:e.handleStationChanged}):r.createElement(Bd,null,r.createElement(Ld,null,r.createElement($v,{width:"72px",height:"72px"})),r.createElement(Rd,null,r.createElement(Gd,null,j.t("addExperimentWizard.steps.fillingStations.emptyState.noStationAdded")),r.createElement(zd,null,j.t("addExperimentWizard.steps.fillingStations.emptyState.addStationsInstruction"))))),r.createElement(mu,null,r.createElement(Pp,{width:"100%",height:"100%",withSearch:!1,drawingMode:P?void 0:"marker",drawingControl:!P,showTopBanner:D,onAddStationClick:F,activateDrawing:L,temporaryMarker:G,TemporaryMarkerComponent:W,onLocationSearch:V,stations:t,MarkerComponent:My,polygon:null==o?void 0:o.territory.polygon,center:x,addStation:O,chooseStation:c,chosenStation:l,withPublicStationsButton:C,onPublicStationsClick:H,uploadFileCb:X(K),updateStepData:te})))),r.createElement(er,{submitButtonText:j.t("genericBackButtonText"),isVisible:h,onClose:function(){return v(!1)},title:j.t("fileUploader.genericErrorText"),onClickSubmitButton:function(){return v(!1)}},(w||g)&&r.createElement(Fo,{errorMessage:g,errorIssue:w})))};const Yv=vp()(function(e){var t,n=e.wizardData,o=e.updateStepData,i=Wv((0,r.useState)(null),2),a=i[0],l=i[1],c=Wv((0,r.useState)(!1),2),u=c[0],s=c[1],d=Wv((0,r.useState)(!1),2),f=d[0],p=d[1],m=Wv((0,r.useState)(!1),2),y=m[0],h=m[1],v=Wv((0,r.useState)(""),2),g=v[0],b=v[1],w=Wv((0,r.useState)(null),2),E=w[0],x=w[1],S=Wv((0,r.useState)(null==n?void 0:n.territory.center),2),C=S[0],O=S[1],k=je(),_=(null==n||null===(t=n.territory)||void 0===t?void 0:t.polygon)&&n.territory.polygon.length>0,A=Bl.includes(k)&&_,j=(null==n?void 0:n.fillingStations)||[],T=function(e){return o(e)},I=function(e){var t=e.stepData,n=e.handleUpdateStepData,o=e.setCenter,i=e.setShowUploader,a=e.setShowMaintenanceUploader,l=e.setHighlightedStation,c=Nv((0,r.useState)(!1),2),u=c[0],s=c[1],d=Nv((0,r.useState)(!1),2),f=d[0],p=d[1],m=Nv((0,r.useState)(null),2),y=m[0],h=m[1],v=Nv((0,r.useState)(!1),2),g=v[0],b=v[1],w=function(){var e=Iv(Ov().m(function e(t){var n,r,o;return Ov().w(function(e){for(;;)switch(e.n){case 0:return t.setMap(null),n=t.getPosition().lat(),r=t.getPosition().lng(),e.n=1,Sv(n,r);case 1:o=e.v,h(y&&u?Av(Av({},y),{},{lat:n,lng:r,address:o}):{lat:n,lng:r,address:o}),s(!0),p(!0),l(null);case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),E=function(){var e=Iv(Ov().m(function e(t){return Ov().w(function(e){for(;;)switch(e.n){case 0:h(y&&u?Av(Av({},y),{},{lat:t.lat,lng:t.lng,address:t.address}):{lat:t.lat,lng:t.lng,address:t.address}),s(!0),p(!0),i(!1),a(!1),o({lat:t.lat,lng:t.lng});case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),x=(0,r.useMemo)(function(){var e=null==y?void 0:y.stationType;return!!e&&(Gl(e)||Ll(e)||Rl(e))},[null==y?void 0:y.stationType]),S=(0,r.useMemo)(function(){return null!=y&&y.lat&&null!=y&&y.lng?Av(Av({},y),{},{type:y.subType}):null},[y]);return{isAddingStation:u,isPinningMode:f,newStation:y,showPublicImport:g,onAddStationClick:function(){p(!0),i(!1),a(!1),l(null)},onNewMarkerDrawn:w,onCancelNewStation:function(){s(!1),p(!1),h(null)},onNewStationChange:function(e){h(e)},onLocationSearch:E,onAddStation:function(){if(y&&y.lat&&y.lng){var e={id:(0,Xl.A)(),lat:y.lat,lng:y.lng,address:y.address,stationType:y.stationType};Ll(y.stationType)&&(e.capacity=y.parkingCapacity||Cl[y.stationType]),Gl(y.stationType)&&(e.capacity=y.maintenanceDefaultCapacity||Cl[y.stationType]),Rl(y.stationType)&&(e.slots=y.stationSlots||2,e.rate=y.rate,e.labels=xl,e.type=y.subType),Ll(y.stationType)&&(e.capabilities=y.capabilities||Nl),Gl(y.stationType)&&(y.jobs&&Object.keys(y.jobs).length>0&&(e.jobs=y.jobs),e.timeLimitations=[]),n([].concat(Pv(t||[]),[e]));var r={stationType:y.stationType,subType:y.subType,rate:y.rate,stationSlots:y.stationSlots,parkingCapacity:y.parkingCapacity,maintenanceDefaultCapacity:y.maintenanceDefaultCapacity,jobs:y.jobs};h(r),s(!0),p(!0)}},onPublicImportClick:function(){b(!0),s(!1),p(!1),i(!1),a(!1)},onPublicImportCancel:function(){b(!1)},onPublicImportComplete:function(e){n([].concat(Pv(t||[]),Pv(e||[]))),b(!1)},shouldShowTypedMarker:x,temporaryMarkerWithLocation:S}}({stepData:j,handleUpdateStepData:T,setCenter:O,setShowUploader:s,setShowMaintenanceUploader:p,setHighlightedStation:l}),P=I.isAddingStation,N=I.isPinningMode,D=I.newStation,M=I.showPublicImport,F=I.onAddStationClick,B=I.onNewMarkerDrawn,L=I.onCancelNewStation,R=I.onNewStationChange,G=I.onLocationSearch,z=I.onAddStation,W=I.onPublicImportClick,U=I.onPublicImportCancel,V=I.onPublicImportComplete,Z=I.shouldShowTypedMarker,H=I.temporaryMarkerWithLocation;(0,r.useEffect)(function(){a&&O({lat:a.lat,lng:a.lng})},[a]);var q=Z?My:ov;return r.createElement(Jv,zv({},e,{stepData:j,updateStepData:T,highlightedStation:a,setHighlightedStation:l,showUploader:u,setShowUploader:s,showMaintenanceUploader:f,setShowMaintenanceUploader:p,showError:y,setShowError:h,errorMessage:g,setErrorMessage:b,errorIssue:E,setErrorIssue:x,center:C,setCenter:O,isIceStation:!1,shouldShowPublicChargingImport:A,onNewMarkerDrawn:B,hideList:!0,hideTopBanner:!0,hideDrawingControls:!N,showMapTopBanner:!(P||M||u||f),onAddStationClick:F,activateDrawing:N,temporaryMarker:H,TemporaryMarkerComponent:q,onLocationSearch:G,onPublicStationsClick:!A||P||M||u||f?void 0:W,closeOtherPanels:function(){L(),U()},isAddingStation:P,showPublicImport:M,newStation:D,onCancelNewStation:L,onNewStationChange:R,onAddStation:z,onPublicImportComplete:V,onPublicImportCancel:U,handleRemoveStation:function(e){var t=j.filter(function(t){return t.id!==e});T(t)},handleRemoveAll:function(){T([])},handleStationChanged:function(e){var t=j.map(function(t){return t.id===e.id?e:t});T(t)}}))});var Qv=n(10021),eg=(n(10766),n(15941)),tg=n(26801);function ng(){return ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Ug(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Ug(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,Ug(d,"constructor",u),Ug(u,"constructor",c),c.displayName="GeneratorFunction",Ug(u,o,"GeneratorFunction"),Ug(d),Ug(d,o,"Generator"),Ug(d,r,function(){return this}),Ug(d,"toString",function(){return"[object Generator]"}),(Wg=function(){return{w:i,m:f}})()}function Ug(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ug=function(e,t,n,r){function i(t,n){Ug(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Ug(e,t,n,r)}function Vg(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Zg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",n=[],r=0,o=0;r<1440;o+=1){var i=Math.floor(r/60),a=r%60,l="".concat("0".concat(i).slice(-2),":").concat("0".concat(a).slice(-2));l===t&&(e=o),r+=30,n[o]={value:l,label:l}}return t?[].concat(n,n).slice(e+1,n.length+e+1):n};const qg=function(e){var t=e.onClose,n=e.values,o=e.errors,i=e.setFieldValue,a=e.displayLoader,l=e.handleSubmit,c=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Zg(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zg(e,t):void 0}}(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.")}()}((0,r.useState)([]),2),u=c[0],s=c[1],d=function(){var e,t=(e=Wg().m(function e(){var t,r;return Wg().w(function(e){for(;;)switch(e.n){case 0:t=n.start&&Hg(n.start)||[],s(t),n.end||(r=t[0].value,i("end",r));case 1:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Vg(i,r,o,a,l,"next",e)}function l(e){Vg(i,r,o,a,l,"throw",e)}a(void 0)})});return function(){return t.apply(this,arguments)}}();(0,r.useEffect)(function(){d()},[]);var f=n.start&&n.end&&"".concat(n.start.split(":")[0],".").concat(n.start.split(":")[1])-"".concat(n.end.split(":")[0],".").concat(n.end.split(":")[1])>=0,p=Hg();return r.createElement(tg.lV,{name:"newShiftForm",style:{height:"100%"},onKeyDown:function(e){"Enter"===e.key&&(l(),e.preventDefault())}},r.createElement(gg,null,r.createElement(xg,null,r.createElement(Sg,null,j.t("addExperimentWizard.steps.shifts.name")),r.createElement(wg,null,r.createElement(tg.D0,{id:"shiftName",name:"name",component:bg,maxlength:"56",type:"text",value:n.name,error:o.name,placeholder:j.t("addExperimentWizard.steps.shifts.name"),onChange:function(e){var t=e.currentTarget.value;i("name",t),e.preventDefault()}}),r.createElement(Cg,null,o.name))),r.createElement(xg,null,r.createElement(Sg,null,j.t("addExperimentWizard.steps.shifts.time")),r.createElement(Eg,null,r.createElement(Qv.A,null,r.createElement(tg.D0,{id:"shiftStartTime",name:"start",value:{value:n.start,label:n.start||""},component:hg,onChange:function(e){var t=e.value;setTimeout(function(){var e=Hg(t);s(e),i("end",e[0].value)}),i("start",t)},options:p})),r.createElement(Qv.A,null,"-"),r.createElement(Qv.A,null,r.createElement(tg.D0,{id:"shiftEndTime",name:"end",value:{value:n.end,label:n.end||""},component:hg,placeholder:"",onChange:function(e){var t=e.value;i("end",t)},options:u})),f&&r.createElement(Mg,null,"+1"))),r.createElement(xg,null,r.createElement(Sg,null,j.t("addExperimentWizard.steps.shifts.initialLocation.title")),r.createElement(Eg,null,r.createElement(kg,{id:"shiftLocationLat",name:"location",component:bg,type:"text",value:n.initialLocations&&n.initialLocations[0]&&n.initialLocations[0].lat,error:o.location,placeholder:j.t("addExperimentWizard.steps.shifts.initialLocation.lat"),onChange:function(e){var t=e.currentTarget.value;""!==t&&Number.isNaN(parseFloat(t))||i('initialLocations[0]["lat"]',""===t?"":parseFloat(t))}}),r.createElement(kg,{id:"shiftLocationLon",name:"location",component:bg,type:"text",value:n.initialLocations&&n.initialLocations[0]&&n.initialLocations[0].lng,error:o.location,placeholder:j.t("addExperimentWizard.steps.shifts.initialLocation.lng"),onChange:function(e){var t=e.currentTarget.value;""!==t&&Number.isNaN(parseFloat(t))||i('initialLocations[0]["lng"]',""===t?"":parseFloat(t))}}))),r.createElement(vg,null,r.createElement(Tg,null,r.createElement(Qv.A,null,r.createElement(_g,{onClick:t,disabled:a},j.t("addExperimentWizard.steps.shifts.cancel")))),r.createElement(jg,null,r.createElement(Qv.A,null,r.createElement(Ag,{id:"saveShift",backgroundColor:m,type:"submit",title:a?"...":j.t("addExperimentWizard.steps.shifts.save"),disabled:a}))))))};function Kg(e){return Kg="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},Kg(e)}function $g(){return $g=Object.assign?Object.assign.bind():function(e){for(var t=1;t3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Jg(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Jg(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,Jg(d,"constructor",u),Jg(u,"constructor",c),c.displayName="GeneratorFunction",Jg(u,o,"GeneratorFunction"),Jg(d),Jg(d,o,"Generator"),Jg(d,r,function(){return this}),Jg(d,"toString",function(){return"[object Generator]"}),(Xg=function(){return{w:i,m:f}})()}function Jg(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Jg=function(e,t,n,r){function i(t,n){Jg(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Jg(e,t,n,r)}function Yg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qg(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0;return d?r.createElement(cb,{shifts:[t],handleCheckIsShiftValid:i,handleAddShift:n,handleEditShift:o,handleRemoveShift:a,day:t.day,shiftData:t,onBackAction:function(){f(!1)}}):r.createElement(Ig,null,r.createElement(Pg,null,r.createElement(Dg,null,r.createElement(Fg,null,t.name),r.createElement(Ng,null,r.createElement(vb,{onEdit:function(){return f(!0)},onDelete:function(){return a(t)}}))),r.createElement(Bg,null,r.createElement(Rg,null,j.t("addExperimentWizard.steps.shifts.time"),":"),r.createElement(Qv.A,null,t.start),r.createElement(Qv.A,null,"-"),r.createElement(Qv.A,null,t.end),p&&r.createElement(Mg,null,"+1")),t.initialLocations&&t.initialLocations.length>0&&r.createElement(Lg,null,r.createElement(Rg,null,j.t("addExperimentWizard.steps.shifts.location"),": "),r.createElement("span",null,r.createElement(Gg,null,t.initialLocations[0].lat)," ",r.createElement(zg,null,"(lat)")),r.createElement("span",null,r.createElement(Gg,null,t.initialLocations[0].lng)," ",r.createElement(zg,null,"(lng)")))))};var Eb=l.default.div.withConfig({displayName:"styled__DayContainer",componentId:"sc-a41k94-0"})(["min-width:150px;min-height:400px;width:calc(100% / 7);",";"],function(e){var t=e.day;return t?"#AddShiftLinkMask".concat(t," {\n display: none;\n }\n :hover {\n #AddShiftLinkMask").concat(t," {\n display: unset;\n }\n }\n "):""}),xb=(0,l.default)(Qv.A).attrs({column:!0}).withConfig({displayName:"styled__DayFlexContainer",componentId:"sc-a41k94-1"})([""]),Sb=(0,l.default)(Qv.A).attrs({vAlignContent:"bottom"}).withConfig({displayName:"styled__DayHeader",componentId:"sc-a41k94-2"})(["padding:10px 15px;border-bottom:1px #DCDCDC solid;"]),Cb=(0,l.default)(Qv.A).withConfig({displayName:"styled__DayTitle",componentId:"sc-a41k94-3"})(["font-weight:500;font-size:",";color:#5c5c5c;"],d),Ob=(0,l.default)(Qv.A).attrs({marginLeft:"auto"}).withConfig({displayName:"styled__DayCount",componentId:"sc-a41k94-4"})(["font-weight:300;font-size:10px;"]),kb=(0,l.default)(Qv.A).attrs({hAlignContent:"center",vAlignContent:"top"}).withConfig({displayName:"styled__AddShiftLink",componentId:"sc-a41k94-5"})(["font-weight:500;font-size:",";color:#619CF7;cursor:pointer;padding:10px;margin:8px 10px;:hover{color:",";}"],d,m),_b=l.default.div.withConfig({displayName:"styled__ContentWrapper",componentId:"sc-a41k94-6"})(["display:flex;flex:1;min-height:0px;"]),Ab=l.default.div.withConfig({displayName:"styled__OverflowContainer",componentId:"sc-a41k94-7"})(["flex:1;overflow:visible"]),jb=l.default.div.withConfig({displayName:"styled__NewShiftContainer",componentId:"sc-a41k94-8"})([""]),Tb=(0,l.default)(Qv.A).attrs({column:!0}).withConfig({displayName:"styled__ShiftsListContainer",componentId:"sc-a41k94-9"})([""]);function Ib(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:function(){return null};return Gb.oR.info(function(e){return function(){return r.createElement(Ub,null,r.createElement(Vb,null),e)}}(e),{position:"bottom-center",icon:!1,autoClose:3e3,closeOnClick:!0,draggable:!0,progress:void 0,style:Wb.toast,onClose:function(e){return t()}})},Hb=function(){return r.createElement(Gb.N9,{position:"bottom-center",autoClose:5e4,hideProgressBar:!0,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,transition:Gb.q7})};function qb(e){return qb="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},qb(e)}function Kb(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return $b(u,"_invoke",function(n,r,o){var i,l,c,u=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&u&&!o&&t3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):($b(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,$b(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,$b(d,"constructor",u),$b(u,"constructor",c),c.displayName="GeneratorFunction",$b(u,o,"GeneratorFunction"),$b(d),$b(d,o,"Generator"),$b(d,r,function(){return this}),$b(d,"toString",function(){return"[object Generator]"}),(Kb=function(){return{w:i,m:f}})()}function $b(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}$b=function(e,t,n,r){function i(t,n){$b(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},$b(e,t,n,r)}function Xb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jb(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(yw(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,yw(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,yw(d,"constructor",u),yw(u,"constructor",c),c.displayName="GeneratorFunction",yw(u,o,"GeneratorFunction"),yw(d),yw(d,o,"Generator"),yw(d,r,function(){return this}),yw(d,"toString",function(){return"[object Generator]"}),(mw=function(){return{w:i,m:f}})()}function yw(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}yw=function(e,t,n,r){function i(t,n){yw(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},yw(e,t,n,r)}function hw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vw(e){for(var t=1;t dropoff arc",color:[146,38,198],highlightColor:[252,242,26,255],columns:{lat0:"pickup_lat",lng0:"pickup_lng",lat1:"dropoff_lat",lng1:"dropoff_lng"},isVisible:!1,visConfig:{opacity:.8,thickness:2,colorRange:{name:"Global Warming",type:"sequential",category:"Uber",colors:["#5A1846","#900C3F","#C70039","#E3611C","#F1920E","#FFC300"]},sizeRange:[0,10],targetColor:null},hidden:!1,textLabel:[{field:null,color:[255,255,255],size:18,offset:[0,0],anchor:"start",alignment:"center"}]},visualChannels:{colorField:null,colorScale:"quantile",sizeField:null,sizeScale:"linear"}},{id:"tfxp82",type:"line",config:{dataId:"dvoizqq76",label:"pickup -> dropoff line",color:[248,149,112],highlightColor:[252,242,26,255],columns:{lat0:"pickup_lat",lng0:"pickup_lng",alt0:null,lat1:"dropoff_lat",lng1:"dropoff_lng",alt1:null},isVisible:!1,visConfig:{opacity:.8,thickness:2,colorRange:{name:"Global Warming",type:"sequential",category:"Uber",colors:["#5A1846","#900C3F","#C70039","#E3611C","#F1920E","#FFC300"]},sizeRange:[0,10],targetColor:null,elevationScale:1},hidden:!1,textLabel:[{field:null,color:[255,255,255],size:18,offset:[0,0],anchor:"start",alignment:"center"}]},visualChannels:{colorField:null,colorScale:"quantile",sizeField:null,sizeScale:"linear"}}],layerBlending:"normal",splitMaps:[],animationConfig:{currentTime:null,speed:1}},mapStyle:{styleType:"light",topLayerGroups:{},visibleLayerGroups:{},threeDBuildingColor:[3.7245996603793508,6.518049405663864,13.036098811327728],mapStyles:{}}},xw=(0,ow.legacy_createStore)(ww,{},(0,ow.applyMiddleware)(sw.taskMiddleware)),Sw=(0,rw.Ng)(function(){return{}},function(){return{}})(function(e){var t=e.datasets,n=e.height,o=e.width,i=function(){var e,t=(e=mw().m(function e(t){var n,r,o;return mw().w(function(e){for(;;)switch(e.n){case 0:n=t.filter(function(e){return e}).map(function(e){return vw(vw({},e),{},{data:vw(vw({},lw.default.processCsvData(e.data)),{},{allData:lw.default.processCsvData(e.data).rows}),version:"v1"})}),r=uw.default.load(n,{version:"v1",config:Ew}),o=(0,cw.addDataToMap)(r),xw.dispatch(o);case 1:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){bw(i,r,o,a,l,"next",e)}function l(e){bw(i,r,o,a,l,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}();return(0,r.useEffect)(function(){i(t)},[t]),r.createElement(fw(),{id:"Main",store:xw,height:n,width:o,mapboxApiAccessToken:"pk.eyJ1IjoiZG9yc2hheSIsImEiOiJjam55cXY2emEyZXJuM3JwcnBxMDMzZ2M5In0.DT4S5POHNzC431RlPWEGxg"})}),Cw=Sw;const Ow=function(e){return r.createElement(rw.Kq,{store:xw},r.createElement(Cw,e))};var kw=function(e){return r.createElement("svg",e,r.createElement("defs",null,r.createElement("style",null,".cls-delete","{","fill:transparent;stroke:current;stroke-width:1.5px;fill-rule:evenodd","}")),r.createElement("g",{id:"_-e-delete",transform:"translate(-1281.25 -317.25)"},r.createElement("path",{id:"Path_91",className:"cls-delete",d:"M5120 677h6a2 2 0 0 1 2 2l-1 7a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2l-1-7a2 2 0 0 1 2-2z",transform:"translate(-3835 -356)"}),r.createElement("path",{id:"Path_92",className:"cls-delete",d:"M5120 677v-2a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2",transform:"translate(-3835 -356)"}),r.createElement("path",{id:"Rectangle_164",transform:"translate(1282 321)",style:{fill:"transparent",stroke:"current",strokeWidth:"1.5px"},d:"M0 0h12v1H0z"})))};kw.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"13.5",height:"15.5"};var _w=l.default.div.withConfig({displayName:"styled__DEFAULT_MARGIN",componentId:"sc-12pyced-0"})(["margin:0px 40px 5px 0px;"]),Aw=l.default.div.withConfig({displayName:"styled__Card",componentId:"sc-12pyced-1"})(["background-color:#ffffff;border-radius:4px;display:flex;flex-direction:row;justify-content:space-between;padding-top:25px;padding-bottom:25px;padding-left:30px;padding-right:40px;margin-top:10px;margin-bottom:10px;box-shadow:0px 1px 3px 0px rgba(157,165,180,0.5);transition:all 0.2s ease-in-out;"]),jw=l.default.div.withConfig({displayName:"styled__ColumnContainer",componentId:"sc-12pyced-2"})(["flex:1;width:100%;position:relative;display:",";margin:",";&:not(:first-child){margin-left:10px;}"],function(e){return e.hidden?"none":"block"},function(e){return e.margin}),Tw=l.default.div.withConfig({displayName:"styled__RowContainer",componentId:"sc-12pyced-3"})(["position:relative;display:flex;flex-direction:row;align-items:flex-end;padding-top:12px;"]),Iw=l.default.div.withConfig({displayName:"styled__TitleText",componentId:"sc-12pyced-4"})(["font-family:Montserrat;font-weight:600;color:#333333;padding-bottom:3px;padding-top:3px;"]),Pw=(l.default.div.withConfig({displayName:"styled__SemiTitleText",componentId:"sc-12pyced-5"})(["font-family:Montserrat;font-weight:600;color:#333333;font-size:",";"],d),l.default.div.withConfig({displayName:"styled__DescriptionText",componentId:"sc-12pyced-6"})(["font-family:Montserrat;font-size:",";color:#333333;margin:",";white-space:pre-line;"],d,function(e){return e.margin||_w.margin})),Nw=l.default.div.withConfig({displayName:"styled__FlexEndContainer",componentId:"sc-12pyced-7"})(["justify-content:flex-end;align-items:center;display:flex;"]),Dw=l.default.div.withConfig({displayName:"styled__InputContainer",componentId:"sc-12pyced-8"})(["min-width:110px;height:40px;border:2px solid ",";border-radius:4px;display:flex;max-width:235px;"],h),Mw=l.default.div.withConfig({displayName:"styled__Label",componentId:"sc-12pyced-9"})(["font-family:Montserrat;font-style:normal;font-size:15px;color:#858585;padding-bottom:4px;"]),Fw=l.default.input.attrs(function(){return{type:"number"}}).withConfig({displayName:"styled__NumberInput",componentId:"sc-12pyced-10"})(["width:100px;font-size:",";font-family:'Montserrat';text-align:center;transition:0.2s;border:none;",""],u,function(e){return e.isInvalid&&"color: ".concat(v)}),Bw=l.default.input.attrs(function(){return{type:"text"}}).withConfig({displayName:"styled__TextInput",componentId:"sc-12pyced-11"})(["min-width:200px;font-size:",";font-family:'Montserrat';transition:0.2s;border:none;padding:10px;",""],u,function(e){return e.isInvalid&&"color: ".concat(v)}),Lw=(l.default.input.attrs(function(){return{type:"text"}}).withConfig({displayName:"styled__WideTextInput",componentId:"sc-12pyced-12"})(["width:100%;font-size:",";font-family:'Montserrat';transition:0.2s;",";text-indent:10px;"],u,function(e){return e.isInvalid&&"color: ".concat(v)}),l.default.div.withConfig({displayName:"styled__UnitContainer",componentId:"sc-12pyced-13"})(["font-family:'Montserrat';font-size:",";background-color:rgba(186,186,186,0.15);height:100%;align-items:center;display:flex;text-align:center;width:100%;justify-content:center;"],u)),Rw=l.default.div.withConfig({displayName:"styled__UnitText",componentId:"sc-12pyced-14"})(["padding:9px;transition:0.2s;color:",";"],function(e){var t=e.isInvalid;return"".concat(t?v:m)}),Gw=(l.default.div.withConfig({displayName:"styled__RadioInputContainer",componentId:"sc-12pyced-15"})(["display:flex;flex-direction:row;margin-top:20px;cursor:pointer;"]),l.default.div.withConfig({displayName:"styled__RadioSelectContainer",componentId:"sc-12pyced-16"})(["margin-top:20px;"]),l.default.div.withConfig({displayName:"styled__RadioCircle",componentId:"sc-12pyced-17"})(["width:14px;height:14px;border-radius:11px;border:solid 1px #b2b2b2;margin-right:15px;display:flex;"]),l.default.div.withConfig({displayName:"styled__RadioInnerCircle",componentId:"sc-12pyced-18"})(["width:8px;height:8px;margin:auto;border-radius:7px;transition:0.2s;",""],function(e){return e.checked&&"background-color: ".concat(m)}),l.default.div.withConfig({displayName:"styled__ValidationLabelText",componentId:"sc-12pyced-19"})(["font-size:",";color:",";transition:all 0.2s ease-in-out;visibility:",";opacity:",";max-width:",";width:235px;position:absolute;display:flex;top:50;flex-direction:row-reverse;right:0;"],c,v,function(e){return e.isInvalid?"initial":"hidden"},function(e){return e.isInvalid?"1":"0"},function(e){return e.maxWidth||"235px"})),zw=(0,l.default)(Gw).withConfig({displayName:"styled__LargeValidationLabelText",componentId:"sc-12pyced-20"})(["font-size:",";width:95%;position:relative;margin-top:10px;"],f),Ww=(0,l.default)(Gw).withConfig({displayName:"styled__LeftValidationLabelText",componentId:"sc-12pyced-21"})(["right:'null';left:0;flex-direction:row;"]),Uw=l.default.div.withConfig({displayName:"styled__FlexRowContainer",componentId:"sc-12pyced-22"})(["display:flex;flex-direction:row;margin-bottom:5px;gap:6px;"]),Vw=(0,l.default)(yi.Ay).withConfig({displayName:"styled__StyledSelect",componentId:"sc-12pyced-23"})(["min-width:200px;font-size:",";font-family:'Montserrat';border:1px solid ",";border:1px solid ",";"],u,h,function(e){return e.isInvalid?v:h}),Zw=(0,l.default)(kw).withConfig({displayName:"styled__TrashIcon",componentId:"sc-12pyced-24"})(["display:flex;flex-direction:column;fill:transparent;stroke:",";cursor:pointer;:hover{stroke:",";}margin:10px;"],y,m),Hw=l.default.div.withConfig({displayName:"styled__TableRowSeperator",componentId:"sc-12pyced-25"})(["display:flex;min-width:20px;min-height:44px;justify-content:center;align-items:center;"]),qw=(0,l.default)(yi.Ay).withConfig({displayName:"styled__TableDropdown",componentId:"sc-12pyced-26"})(["min-width:200px;font-size:",";font-family:'Montserrat';border:1px solid ",";border-radius:4px;min-width:100px;max-width:100px;min-height:44px;transition:'none';.tableDD__control{min-height:42px;transition:'none'}.tableDD__menu{font-size:12px;}"],u,function(e){return e.isInvalid?v:h}),Kw=l.default.button.withConfig({displayName:"styled__TableAddLineButton",componentId:"sc-12pyced-27"})(["background-color:transparent;height:40px;color:",";border:0;outline:'none';box-shadow:'none';cursor:pointer;font-family:Montserrat;font-style:normal;font-size:15px;"],m),$w=l.default.div.withConfig({displayName:"styled__TableValidationLabelText",componentId:"sc-12pyced-28"})(["font-size:",";color:",";transition:all 0.2s ease-in-out;visibility:initial;opacity:1;margin-top:20px;"],c,v),Xw=(0,l.default)($w).withConfig({displayName:"styled__MultiInputValidationLabelText",componentId:"sc-12pyced-29"})(["text-align:right;grid-column:1 / span 2;grid-row:3;"]),Jw=l.default.div.withConfig({displayName:"styled__DemandFileDropDownContainer",componentId:"sc-locdo3-0"})(["width:50%;"]),Yw=l.default.div.withConfig({displayName:"styled__DemandContainer",componentId:"sc-locdo3-1"})(["height:50%;minHeight:600px;"]),Qw=l.default.div.withConfig({displayName:"styled__DemandPredictionContainer",componentId:"sc-locdo3-2"})(["height:50%;"]),eE=l.default.div.withConfig({displayName:"styled__DemandPredictionInnerContainer",componentId:"sc-locdo3-3"})(["display:flex;gap:1em;align-items:center;"]);function tE(e){return tE="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},tE(e)}function nE(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return rE(u,"_invoke",function(n,r,o){var i,l,c,u=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&u&&!o&&t3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(rE(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,rE(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,rE(d,"constructor",u),rE(u,"constructor",c),c.displayName="GeneratorFunction",rE(u,o,"GeneratorFunction"),rE(d),rE(d,o,"Generator"),rE(d,r,function(){return this}),rE(d,"toString",function(){return"[object Generator]"}),(nE=function(){return{w:i,m:f}})()}function rE(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}rE=function(e,t,n,r){function i(t,n){rE(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},rE(e,t,n,r)}function oE(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function iE(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){oE(i,r,o,a,l,"next",e)}function l(e){oE(i,r,o,a,l,"throw",e)}a(void 0)})}}function aE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lE(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};return kS("fillingStations.".concat(e),t)};var KE=function(e){return kS("vehicles.".concat(e))};var $E=function(e){return kS("shifts.".concat(e))};var XE=function(e){return kS("driverGroups.".concat(e))};function JE(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return YE(u,"_invoke",function(n,r,o){var i,l,c,u=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&u&&!o&&t3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(YE(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,YE(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,YE(d,"constructor",u),YE(u,"constructor",c),c.displayName="GeneratorFunction",YE(u,o,"GeneratorFunction"),YE(d),YE(d,o,"Generator"),YE(d,r,function(){return this}),YE(d,"toString",function(){return"[object Generator]"}),(JE=function(){return{w:i,m:f}})()}function YE(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}YE=function(e,t,n,r){function i(t,n){YE(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},YE(e,t,n,r)}function QE(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function ex(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){QE(i,r,o,a,l,"next",e)}function l(e){QE(i,r,o,a,l,"throw",e)}a(void 0)})}}function tx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nx(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nx(e,t):void 0}}(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 nx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(ix(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,ix(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,ix(d,"constructor",u),ix(u,"constructor",c),c.displayName="GeneratorFunction",ix(u,o,"GeneratorFunction"),ix(d),ix(d,o,"Generator"),ix(d,r,function(){return this}),ix(d,"toString",function(){return"[object Generator]"}),(ox=function(){return{w:i,m:f}})()}function ix(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ix=function(e,t,n,r){function i(t,n){ix(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},ix(e,t,n,r)}function ax(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function lx(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){ax(i,r,o,a,l,"next",e)}function l(e){ax(i,r,o,a,l,"throw",e)}a(void 0)})}}function cx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ux(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ux(e,t):void 0}}(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 ux(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Lx(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Lx(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,Lx(d,"constructor",u),Lx(u,"constructor",c),c.displayName="GeneratorFunction",Lx(u,o,"GeneratorFunction"),Lx(d),Lx(d,o,"Generator"),Lx(d,r,function(){return this}),Lx(d,"toString",function(){return"[object Generator]"}),(Bx=function(){return{w:i,m:f}})()}function Lx(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Lx=function(e,t,n,r){function i(t,n){Lx(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Lx(e,t,n,r)}function Rx(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Gx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zx(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zx(e,t):void 0}}(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 zx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1500&&!N()},isFieldServicingVariation:function(e){var t;return(null==e||null===(t=e.details)||void 0===t?void 0:t.simType)===nn},isPlacementStagingOrNone:function(e){var t,n;return(null==e||null===(t=e.settings)||void 0===t||null===(t=t.placement)||void 0===t?void 0:t.mode)===Fl.STAGING||!(null!=e&&null!==(n=e.settings)&&void 0!==n&&null!==(n=n.placement)&&void 0!==n&&n.mode)||Ux(e)},isPlacementOff:Ux,isIndefeleetDisabled:function(e){var t;return!(null!=e&&null!==(t=e.settings)&&void 0!==t&&null!==(t=t.indefleet)&&void 0!==t&&t.active)},isTimeBasedVehicleAvailability:function(e){var t,n;return!(null!=e&&null!==(t=e.settings)&&void 0!==t&&null!==(t=t.indefleet)&&void 0!==t&&t.active&&(null==e||null===(n=e.settings)||void 0===n||null===(n=n.indefleet)||void 0===n||!n.timeBasedVehicleAvailability))},isPlacementDemandStaging:function(e){var t;return(null==e||null===(t=e.settings)||void 0===t||null===(t=t.placement)||void 0===t?void 0:t.mode)===Fl.DEMAND_STAGING&&!Ux(e)},isPlacementTerritoryWide:function(e){var t;return(null==e||null===(t=e.settings)||void 0===t||null===(t=t.placement)||void 0===t?void 0:t.mode)===Fl.TERRITORY_WIDE&&!Ux(e)},isNotAdvanced:function(){return!N()},isChargeOnTheWayDisabled:function(e){var t;return!(null!=e&&null!==(t=e.settings)&&void 0!==t&&null!==(t=t.chargeOnTheWay)&&void 0!==t&&t.active)},isChargeOnTheWayDemandDisabled:function(e){var t,n;return!(null!=e&&null!==(t=e.settings)&&void 0!==t&&null!==(t=t.chargeOnTheWay)&&void 0!==t&&t.active&&null!=e&&null!==(n=e.settings)&&void 0!==n&&null!==(n=n.chargeOnTheWay)&&void 0!==n&&n.demandSensitive)},isMaxChargeLevelFixed:function(e){var t;return"fixed"===(null==e||null===(t=e.settings)||void 0===t||null===(t=t.maxChargeLevelSettings)||void 0===t?void 0:t.mode)},isMaxChargeLevelDemandSensitive:function(e){var t;return"demandSensitive"===(null==e||null===(t=e.settings)||void 0===t||null===(t=t.maxChargeLevelSettings)||void 0===t?void 0:t.mode)}};var Zx=function(e){return r.createElement("svg",e,r.createElement("path",{d:"m15.5 7-.672-1.828L13 4.5l1.828-.672L15.5 2l.672 1.828L18 4.5l-1.828.672L15.5 7Z",fill:"#11A4FF"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.256 7.744 7.5 3 5.744 7.744 1 9.5l4.744 1.756L7.5 16l1.756-4.744L14 9.5 9.256 7.744ZM11.118 9.5l-2.64-.977L7.5 5.882l-.977 2.64-2.641.978 2.64.977.978 2.641.977-2.64 2.641-.978ZM16.445 13.555 15.5 11l-.945 2.555L12 14.5l2.555.945L15.5 18l.945-2.555L19 14.5l-2.555-.945Zm-.326.945-.452-.167-.167-.451-.167.451-.451.167.451.167.167.451.167-.451.452-.167Z",fill:"#11A4FF"}))};Zx.defaultProps={width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var Hx=l.default.div.withConfig({displayName:"NewBadge__Badge",componentId:"sc-184j6vy-0"})(["background-color:rgba(17,164,255,0.1);color:rgba(17,164,255,1);border-radius:4px;padding:4px;display:flex;align-items:center;gap:4px;"]);const qx=function(){return r.createElement(Hx,null,r.createElement(Zx,null),j.t("new"))};function Kx(e){return Kx="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},Kx(e)}function $x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xx(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n(null==e?void 0:e.max)}(y,n.key)&&r.createElement(Xw,null,j.t("addExperimentWizard.steps.settings.validationLabels.".concat(n.key))))},string:function(e){var t=e.content,n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Mx(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mx(e,t):void 0}}(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.")}()}((0,r.useState)(!1),2),o=n[0],i=n[1],a=(0,r.useContext)(bS),l=a.handleSettingChanged,c=a.stepData;return(0,r.useEffect)(function(){i(!l(t.key,c[t.key]))},[]),r.createElement(Nw,null,r.createElement(Fx,{value:c[t.key],onChanged:function(e){i(!l(t.key,e))},isInvalid:o,validation:t.key}))},boolean:function(e){var t=e.content,n=(0,r.useContext)(bS),o=n.handleSettingChanged,i=n.stepData[t.key];return r.createElement(r.Fragment,null,r.createElement(jw,null),r.createElement(Tw,null,r.createElement(Bf.l,{size:"large",labelPosition:"left",checked:i,onChange:function(){return o(t.key,!i)},mainLabel:j.t("addExperimentWizard.steps.settings.entries.".concat(t.key,".active.").concat(i))})))},uploadFile:function(e){var t=e.content,n=e.fileTypes,o=e.fileKey,i=e.compactMode,a=Gx((0,r.useState)(!1),2),l=(a[0],a[1]),c=(0,r.useContext)(bS),u=c.handleSettingChanged,s=c.stepData;return(0,r.useEffect)(function(){l(!u(t.key,s[t.key]))},[]),r.createElement(Nw,null,r.createElement(Wx,{value:s[t.key],onChanged:function(e){l(!u(t.key,e))},fileTypes:n,fileKey:o,compactMode:i}))}};const uS=function(e){var t=e.setting,n=e.showErrors,o=e.disabled,i=e.wizardData,a=cS[t.type],l={content:aS({},t),fileTypes:t.fileTypes,fileKey:t.fileKey,compactMode:t.compactMode};return r.createElement(Aw,{"data-test-id":t.key,style:{direction:t.direction||"row"}},"json"!==t.type&&r.createElement(jw,{style:{marginRight:"24px"}},r.createElement(Uw,null,r.createElement(Iw,null,j.t("addExperimentWizard.steps.settings.entries.".concat(t.key,".title"))),function(e){return!!e.showNewBadgeUntil&&(!0===e.showNewBadgeUntil||re()(e.showNewBadgeUntil).isAfter(re()()))}(t)&&r.createElement(qx,null)),r.createElement(Pw,null,j.t("addExperimentWizard.steps.settings.entries.".concat(t.key,".description"))),t.descriptionList&&r.createElement("ul",null,t.descriptionList.map(function(e){return r.createElement("li",{key:e},r.createElement(Pw,null," ",j.t("addExperimentWizard.steps.settings.entries.".concat(t.key,".descriptionList.").concat(e))))}))),r.createElement(a,oS({},l,{disabled:o,showErrors:n,wizardData:i})))};function sS(e){return sS="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},sS(e)}function dS(e){return function(e){if(Array.isArray(e))return pS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||fS(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.")}()}function fS(e,t){if(e){if("string"==typeof e)return pS(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pS(e,t):void 0}}function pS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&void 0!==arguments[2]?arguments[2]:"";return e&&t&&"object"===ES(e)&&"object"===ES(t)?(null==Object?void 0:Object.keys(t)).reduce(function(r,o){if(null!==t[o]&&void 0!==t[o]||e[o]===t[o])if("object"!==ES(t[o])||Array.isArray(t[o]))t[o]!==e[o]&&(r[n+o]=e[o]);else{var i=xS(e[o],t[o],"".concat(n).concat(o,"."));Object.assign(r,i)}else r[n+o]=e[o];return r},{}):{}},SS=function(e){return kS("settings.".concat(e))},CS=function(e){return x.Ay.t("addExperimentWizard.steps.settings.entries.".concat(e))},OS=new Set(["router.type"]);var kS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ZS("review.".concat(e),t)},_S={details:function(e){var t=e.wizardData,n=e.goToSection,o=null==t?void 0:t.details,i=o.simType,a=o.tags,l={rides:zE("rideOperation"),fieldServicing:zE("fieldServicing")},c=null==a?void 0:a.map(function(e){return r.createElement(RE,null,e)});return r.createElement("div",null,r.createElement(DE,{title:zE("title"),goToSection:n},r.createElement(GE,{title:zE("simulationType"),content:l[i],testId:"simulationType"}),a&&0!==a.length&&r.createElement(GE,{title:zE("tags"),content:c,testId:"tags"})))},territory:function(e){var t=e.wizardData,n=e.goToSection,o=null==t?void 0:t.territory,i=o.polygon,a=o.center,l=i?$i.area($i.polygon([i]))/1e6:0;return r.createElement(DE,{title:WE("title"),contentMinHeight:"188px",subtitle:["".concat(l.toFixed(1).toString()," ").concat(WE("subtitle"))],goToSection:n,style:{zIndex:1}},r.createElement(Pp,{polygon:i,center:a,drawingMode:"polygon",withSearch:!1,height:"188px",width:"340px"}))},fillingStations:function(e){var t,n=e.wizardData,o=e.goToSection,i=(t=n.fillingStations)?t.reduce(function(e,t){return e.total+=1,e.stationTypes[t.stationType]+=1,["parking","parking_and_charging"].includes(t.stationType)&&(e.parking+=Number(t.capacity)||0),["charging","parking_and_charging"].includes(t.stationType)&&("ice"===t.type?e.ice+=Number(t.slots)||0:(e.electric+=Number(t.slots)||0,e.totalPower+=Number(t.slots)*Number(t.rate))),"maintenance"===t.stationType&&(e.maintenance+=1,e.maintenanceCapacity+=Number(t.capacity)||0),e},{electric:0,totalPower:0,ice:0,parking:0,maintenance:0,maintenanceCapacity:0,total:0,stationTypes:{parking_and_charging:0,parking:0,charging:0,maintenance:0}}):{electric:0,totalPower:0,ice:0,parking:0,maintenance:0,maintenanceCapacity:0,total:0,stationTypes:{parking_and_charging:0,parking:0,charging:0,maintenance:0}},a=function(e){var t=[],n=e.stationTypes;return n.charging>0&&t.push("".concat(n.charging," ").concat(qE("fiiling"))),n.parking>0&&t.push("".concat(n.parking," ").concat(qE("parking"))),n.parking_and_charging>0&&t.push("".concat(n.parking_and_charging," ").concat(qE("parkingAndCharging"))),n.maintenance>0&&t.push("".concat(n.maintenance," ").concat(qE("maintenance"))),t.join(", ")}(i);return r.createElement(DE,{title:qE("title"),goToSection:o,subtitle:["".concat(i.total," ").concat(qE("total")," ").concat(a.length>0?"( ".concat(a," )"):"").trim(),qE("parkingCount",{parking:i.parking}),qE("fillingCount",{charging:i.electric+i.ice})],testIds:["totalAmountSubtitle","parkingAmountSubtitle","fillingAmountSubtitle"]},r.createElement(GE,{title:qE("EV"),content:"".concat(i.electric," ").concat(qE("slots")," (").concat(i.totalPower.toFixed(2)," ").concat(qE("totalPower"),")"),icon:r.createElement(VE,{width:32,height:32,viewBox:"0 0 32 32"}),testId:"fillingStationsEV"}),r.createElement(GE,{title:qE("ICE"),content:"".concat(i.ice," ").concat(qE("slots")),icon:r.createElement(ZE,{width:32,height:32,viewBox:"0 0 32 32"}),testId:"fillingStationsICE"}),i.maintenance>0&&r.createElement(GE,{title:qE("maintenance"),content:"".concat(i.maintenance," stations (").concat(i.maintenanceCapacity," ").concat(qE("totalDefaultCapacity"),")"),icon:r.createElement(HE,{width:32,height:32,viewBox:"0 0 32 32"}),testId:"fillingStationsMaintenance"}))},vehicleGroups:function(e){var t=e.wizardData,n=e.goToSection,o=t.vehicleGroups,i=function(e){var t={EV:0,IC:0};return e?e.reduce(function(e,t){return e[t.powerTrain]+=Number(t.amount),e},t):t}(o);return r.createElement(DE,{title:KE("title"),goToSection:n,subtitle:["".concat(i.EV+i.IC," ").concat(KE("total")),"".concat(i.EV," ").concat(KE("EV")),"".concat(i.IC," ").concat(KE("ICE"))],testIds:["vehicleTotalAmountTitle","vehicleEvAmountTitle","vehicleIceAmountTitle"]},o&&o.map(function(e,t){var n,o,i=e.brand?"".concat(e.brand," ").concat(e.modelName):e.modelName;return r.createElement(GE,{title:"".concat(i," (").concat(e.range," ").concat(KE("kmRange"),")"),content:e.amount,icon:r.createElement("img",{src:te[null==e||null===(n=e.bodyType)||void 0===n?void 0:n.toUpperCase()],style:{maxWidth:"88px",maxHeight:"50px"},alt:null==e||null===(o=e.bodyType)||void 0===o?void 0:o.toUpperCase()}),key:"".concat(e.brand,"-").concat(e.modelName,"-").concat(t),testId:"vehicles-".concat(e.powerTrain,"-").concat(e.range)})}))},shifts:function(e){var t=e.wizardData,n=e.goToSection,o=t.shifts,i=function(e){return e?e.reduce(function(e,t){return e.total+=1,0===e.days[t.day]&&(e.numOfDays+=1),e.days[t.day]+=1,e},{days:{1:0,2:0,3:0,4:0,5:0,6:0,7:0},total:0,numOfDays:0}):{days:{1:0,2:0,3:0,4:0,5:0,6:0,7:0},total:0,numOfDays:0}}(o);return r.createElement(DE,{title:$E("title"),goToSection:n,subtitle:["".concat(i.total," ").concat($E("totalAcross")," ").concat(i.numOfDays," ").concat($E("days"))],testIds:["shiftsSubtitle"]},o&&i.total>0&&UE.map(function(e,t){return r.createElement(GE,{title:$E(e),content:String(i.days[t+1]),key:e,testId:"shift-".concat(e)})}))},driverGroups:function(e){var t=e.wizardData,n=e.goToSection,o=t.driverGroups,i=function(e){var t={total:0,numOfGroups:0,groupsCount:{}};return e?e.reduce(function(e,t){return e.total+=t.amount,e.groupsCount[t.groupName]||(e.numOfGroups+=1),e.groupsCount[t.groupName]=(e.groupsCount[t.groupName]||0)+t.amount,e},t):t}(o);return r.createElement(DE,{title:XE("title"),goToSection:n,subtitle:["".concat(i.total," ").concat(XE("totalAcross")," ").concat(i.numOfGroups," ").concat(XE("groups"))],testIds:["driverSubtitle"]},o&&i.total>0&&Object.keys(i.groupsCount).map(function(e,t){return r.createElement(GE,{title:e,content:i.groupsCount[e],key:e,testId:"driver-".concat(e)})}))},demandData:function(e){var t,n,o,i=e.wizardData,a=e.goToSection,l=i.demandData,c=tx((0,r.useState)(null==l||null===(t=l.file)||void 0===t||null===(t=t.metrics)||void 0===t?void 0:t.isLoading),2),u=c[0],s=c[1],d=tx((0,r.useState)((null==l||null===(n=l.file)||void 0===n?void 0:n.metrics)||{}),2),f=d[0],p=d[1];return(0,r.useEffect)(function(){var e;if(null!=l&&null!==(e=l.file)&&void 0!==e&&null!==(e=e.metrics)&&void 0!==e&&e.isLoading)var t=l.url,n=setInterval(ex(JE().m(function e(){var r,o,i;return JE().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Lc([t]);case 1:(null==(o=e.v)?void 0:o.length)>0&&!1===(null===(r=o[0])||void 0===r||null===(r=r.metrics)||void 0===r?void 0:r.isLoading)&&(p(null===(i=o[0])||void 0===i?void 0:i.metrics),s(!1),clearInterval(n));case 2:return e.a(2)}},e)})),5e3)},[null==l||null===(o=l.file)||void 0===o||null===(o=o.metrics)||void 0===o?void 0:o.isLoading]),r.createElement(DE,{title:rx("title"),goToSection:a,subtitle:["".concat((null==f?void 0:f.totalRides)||0," ").concat(rx("totalRidesAcross")," ").concat((null==f?void 0:f.numOfDays)||0," ").concat(rx("days"))],isLoading:u,testIds:["demandDataSubtitle"],subText:rx("subText")},r.createElement(GE,{title:rx("min"),content:(null==f?void 0:f.minRidesPerHour)||0,testId:"demandData.min"}),r.createElement(GE,{title:rx("max"),content:(null==f?void 0:f.maxRidesPerHour)||0,testId:"demandData.max"}),r.createElement(GE,{title:rx("avg"),content:(null==f?void 0:f.avgRidesPerHour)||0,testId:"demandData.avg"}),r.createElement(GE,{title:rx("median"),content:(null==f?void 0:f.medianRidesPerHour)||0,testId:"demandData.med"}))},tasks:function(e){var t,n,o,i=e.wizardData,a=e.goToSection,l=i.tasks,c=cx((0,r.useState)(null==l||null===(t=l.file)||void 0===t||null===(t=t.metrics)||void 0===t?void 0:t.isLoading),2),u=c[0],s=c[1],d=cx((0,r.useState)((null==l||null===(n=l.file)||void 0===n?void 0:n.metrics)||{}),2),f=d[0],p=d[1];if((0,r.useEffect)(function(){var e;if(null!=l&&null!==(e=l.file)&&void 0!==e&&null!==(e=e.metrics)&&void 0!==e&&e.isLoading){var t=l.url,n=setInterval(lx(ox().m(function e(){var r,o,a,l,c;return ox().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Lc([t]);case 1:(null==(o=e.v)?void 0:o.length)>0&&!1===(null===(r=o[0])||void 0===r||null===(r=r.metrics)||void 0===r?void 0:r.isLoading)&&(c=null===(a=o[0])||void 0===a?void 0:a.metrics,p(c),s(!1),null!==(l=i.tasks)&&void 0!==l&&l.file&&(i.tasks.file.metrics=c),clearInterval(n));case 2:return e.a(2)}},e)})),5e3);return function(){return clearInterval(n)}}},[null==l||null===(o=l.file)||void 0===o||null===(o=o.metrics)||void 0===o?void 0:o.isLoading]),null==l||!l.url)return null;var m=function(e,t){var n=(null==e?void 0:e.taskTypes)||[],r=(null==t?void 0:t.fillingStations)||[];return Zl(n,r).map(function(e){return Vl(e)})}(f,i),y=m.length>0,h=function(e,t){var n=(null==e?void 0:e.vehicleGroups)||[],r=(null==t?void 0:t.vehicleGroups)||[];return Hl(n,r)}(f,i),v=h.length>0;return r.createElement(DE,{title:sx("title"),goToSection:a,subtitle:["".concat((null==f?void 0:f.totalTasks)||0," ").concat(sx("totalTasksAcross")," ").concat((null==f?void 0:f.numOfDays)||0," ").concat(sx("days"))],isLoading:u,testIds:["tasksSubtitle"]},y&&r.createElement(au,null,ZS("tasks.unsupportedTaskTypesError"),": ",m.join(", ")),v&&r.createElement(au,null,ZS("tasks.unsupportedVehicleGroupsError"),": ",h.join(", ")))},settings:function(e){var t=e.wizardData,n=e.goToSection,o=t.settings,i=xS(o,vS),a=N();return r.createElement(DE,{title:SS("title"),subtitle:[SS("subtitle")],goToSection:n},Object.keys(i).map(function(e){return function(e,t,n){if(OS.has(e)||!n&&function(e){var t=Aa.entries.find(function(t){return t.key===e});return!0===(null==t?void 0:t.internal)}(e))return null;switch(e){case"placement.mode":return[Fl.STAGING,Fl.DEMAND_STAGING,Fl.TERRITORY_WIDE].includes(t)?r.createElement(GE,{title:CS("placement.title"),content:CS("placement.options.".concat(t,".title")),testId:"".concat(e,"-setting")}):null;case"placement.active":return r.createElement(GE,{title:CS("placement.title"),content:CS("placement.options.off.title"),testId:"".concat(e,"-setting")});case"secondaryRouter":return r.createElement(GE,{title:CS("secondaryRouter.title"),content:CS("secondaryRouter.options.".concat(t,".title")),testId:"".concat(e,"-setting")});case"evChargingRates.defaultRate":return r.createElement(GE,{title:CS("evChargingRates.title"),content:"".concat(t,"$"),testId:"".concat(e,"-setting")});case"startingChargeLevel.min":case"startingChargeLevel.max":return r.createElement(GE,{title:"".concat(CS("startingChargeLevel.title")," - ").concat(CS("".concat(e.split(".")[1],".label"))),content:"".concat(t,"%"),testId:"".concat(e,"-setting")});case"accelerated":return t&&r.createElement(GE,{title:CS("accelerated.title"),content:CS("accelerated.active.true"),testId:"".concat(e,"-setting")});case"osrmServer":return r.createElement(GE,{title:CS("osrmServer.title"),content:"http://no-driver-north-california"===t?CS("osrmServer.options.noDriverNorthCalifornia.title"):String(t),testId:"".concat(e,"-setting")});case"indefleet.active":return t&&r.createElement(GE,{title:CS("indefleet.title"),content:CS("indefleet.active.true"),testId:"".concat(e,"-setting")});case"indefleet.ridePerVehicleRatio":case"indefleet.minInfleetedVehicles":case"indefleet.scheduleInterval":case"indefleet.demandWindowEnd":return r.createElement(GE,{title:CS("".concat(e.split(".")[1],".label")),content:t,testId:"".concat(e,"-setting")});case"indefleet.timeBasedVehicleAvailability":return t&&r.createElement(GE,{title:CS("".concat(e,".title")),content:t.split("/")[t.split("/").length-1],testId:"".concat(e,"-setting")});case"maxChargeLevel":case"minimalChargingLevelAtEndOfShift":case"refuelThreshold":case"rideRefuelThreshold":return r.createElement(GE,{title:CS("".concat(e,".title")),content:t?"".concat(t,"%"):CS("nullOption"),testId:"".concat(e,"-setting")});case"gasPrice":return r.createElement(GE,{title:CS("".concat(e,".title")),content:t?"".concat(t,"$"):CS("nullOption"),testId:"".concat(e,"-setting")});default:return r.createElement(GE,{title:CS("".concat(e,".title")),content:t?String(t):CS("nullOption"),testId:"".concat(e,"-setting")})}}(e,i[e],a)}))}};const AS=function(e){var t,n=e.wizardData,o=e.setSelectedStepIndexById,i=e.stepData;return r.createElement("div",null,null===(t=Jc[n.details.simType])||void 0===t?void 0:t.map(function(e,t){var a=_S[e];return a?r.createElement(a,{key:e,wizardData:n,stepData:i,goToSection:function(){return o?o(e):null}}):null}))};var jS=function(){return{data:null,file:null,url:null}};const TS=function(e){var t=e.stepData,n=e.updateStepData,o=e.showErrors;return r.createElement(nw,{shouldSaveDataAsJson:!0,showErrors:o,dataFile:t.file,dataUrl:t.url,updateData:n,initialData:{data:null,file:null,url:null},exampleFileName:Vs,supportedFileType:".json",incompleteErrorText:ZS("vehiclesAndRoutes.incompleteErrorText"),uploadFolder:sc})};var IS=l.default.div.withConfig({displayName:"styled__ApprovalBannerContainer",componentId:"sc-1hsvh5h-0"})(["display:flex;padding:24px;padding-left:4em;align-items:center;gap:24px;align-self:stretch;border-bottom:1px solid rgba(125,139,172,0.32);background:#FFF;position:relative;box-shadow:0px 4px 10px rgba(0,0,0,0.04);"]),PS=l.default.div.withConfig({displayName:"styled__ApprovalBannerAlert",componentId:"sc-1hsvh5h-1"})(["display:flex;align-items:flex-start;flex:1 0 0;background-color:",";padding:4px;gap:8px;"],function(e){return e.isApproved?"rgba(37, 184, 97, 0.1)":"rgba(17, 164, 255, 0.1)"}),NS=l.default.button.withConfig({displayName:"styled__ApprovalBannerButton",componentId:"sc-1hsvh5h-2"})(["display:flex;height:40px;width:88px;padding:0px 4px;gap:4px;justify-content:center;align-items:center;border-radius:4px;background:#25B861;color:rgba(255,255,255,1);border:none;&:hover{background:#1C8C4A;cursor:pointer;}"]);function DS(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return MS(u,"_invoke",function(n,r,o){var i,l,c,u=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&u&&!o&&t3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(MS(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,MS(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,MS(d,"constructor",u),MS(u,"constructor",c),c.displayName="GeneratorFunction",MS(u,o,"GeneratorFunction"),MS(d),MS(d,o,"Generator"),MS(d,r,function(){return this}),MS(d,"toString",function(){return"[object Generator]"}),(DS=function(){return{w:i,m:f}})()}function MS(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}MS=function(e,t,n,r){function i(t,n){MS(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},MS(e,t,n,r)}function FS(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function BS(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){FS(i,r,o,a,l,"next",e)}function l(e){FS(i,r,o,a,l,"throw",e)}a(void 0)})}}function LS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return RS(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?RS(e,t):void 0}}(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 RS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};return kS("approveBanner.".concat(e),t)};const VS=function(e){var t,n=e.wizardData;if((null==n||null===(t=n.variationMetaData)||void 0===t?void 0:t.status)!==Y.AWAITING_APPROVAL)return null;var o=LS((0,r.useState)(!1),2),i=o[0],a=o[1],l=LS((0,r.useState)(!1),2),c=l[0],u=l[1],s=LS((0,r.useState)(!1),2),d=s[0],f=s[1],p=function(){var e=BS(DS().m(function e(){var t;return DS().w(function(e){for(;;)switch(e.n){case 0:return f(!0),e.n=1,wt(null==n||null===(t=n.variationMetaData)||void 0===t?void 0:t.id);case 1:e.v&&(a(!0),n.variationMetaData.status=Y.PENDING),f(!1);case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return(0,r.useEffect)(function(){var e=function(){var e=BS(DS().m(function e(){var t;return DS().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,bt();case 1:null!=(t=e.v)&&t.isAdmin&&u(!0);case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();e()},[]),r.createElement(r.Fragment,null,r.createElement(IS,null,r.createElement(PS,{isApproved:i},i?r.createElement(GS,null):r.createElement(zS,null),r.createElement("span",null,US(i?"ApprovedMessage":"approveRequiredMessage"))),!i&&c&&r.createElement(NS,{onClick:p,"data-test-id":"approvalBtn"},d?r.createElement(js,null):r.createElement("span",null,r.createElement(WS,null)," ",US("approve")))))};var ZS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return j.t("addExperimentWizard.steps.".concat(e),t)},HS=function(e){return[{id:"details",title:ZS("details.title"),description:ZS("details.description"),component:Xu,initialDataGetter:function(){return t=null==e?void 0:e.type,Vu(Vu(Vu(Vu({},Zu,""),Hu,""),qu,[]),$u,t||tn);var t}},{id:"territory",title:ZS("territory.title"),description:ZS("territory.description"),component:Rp,initialDataGetter:Bp},{id:"fillingStations",title:ZS("fillingStations.title"),description:ZS("fillingStations.description"),component:Yv,initialDataGetter:Xv},{id:"vehicleGroups",title:ZS("vehicles.title"),description:ZS("vehicles.description"),component:qm,initialDataGetter:zm},{id:"vehiclesAndRoutes",title:ZS("vehiclesAndRoutes.title"),description:ZS("vehiclesAndRoutes.description"),component:TS,initialDataGetter:jS},{id:"shifts",title:ZS("shifts.title"),description:ZS("shifts.description"),component:Rb,initialDataGetter:Bb},{id:"driverGroups",title:ZS("drivers.title"),description:ZS("drivers.description"),component:Kp,initialDataGetter:qp},{id:"demandData",title:ZS("demandData.title"),description:ZS("demandData.description"),component:mE,initialDataGetter:pE},{id:"tasks",title:ZS("tasks.title"),description:ZS("tasks.description"),component:xE,initialDataGetter:wE},{id:"settings",title:ZS("settings.title"),description:ZS("settings.description"),component:wS,initialDataGetter:gS},{id:"review",title:ZS("review.title"),description:ZS("review.description"),component:AS,initialDataGetter:function(){},topStickyComponent:VS}]};const qS=function(e){var t=e.submitNewVariation,n=e.variationId,o=e.variationName,i=e.isReadOnly,a=e.isDraft,l=e.isClone,c=e.experiment,u=e.throttleSubmitNewVariation,s=j.t("addExperimentWizard.title");return l?s=j.t("addExperimentWizard.cloneTitle",{var_name:o}):n&&(i||a)&&(s=o),r.createElement(Yc,{title:s,steps:HS(c).filter(function(e){return!e.shouldHide}),variationId:n,isReadOnly:i,isDraft:a,onSubmit:function(e,n,r){return t(e,n,r,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])},throttleOnSubmit:u})};function KS(e){return KS="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},KS(e)}function $S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return XS(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?XS(e,t):void 0}}(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 XS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(YS(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,YS(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,YS(d,"constructor",u),YS(u,"constructor",c),c.displayName="GeneratorFunction",YS(u,o,"GeneratorFunction"),YS(d),YS(d,o,"Generator"),YS(d,r,function(){return this}),YS(d,"toString",function(){return"[object Generator]"}),(JS=function(){return{w:i,m:f}})()}function YS(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}YS=function(e,t,n,r){function i(t,n){YS(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},YS(e,t,n,r)}function QS(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function eC(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){QS(i,r,o,a,l,"next",e)}function l(e){QS(i,r,o,a,l,"throw",e)}a(void 0)})}}function tC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nC(e){for(var t=1;t0,s=oC(t,n,r?null:[],u),d=0,(s.vehicleGroups||[]).forEach(function(e,t){if(d+=e.amount,delete s.vehicleGroups[t][Ja],o===ee){var n=s.vehicleGroups[t].range;s.vehicleGroups[t].range=lc(Q,n);var r=s.vehicleGroups[t].cost;s.vehicleGroups[t].cost=(i=r,Q===ee?i*=ac:i/=ac,i)}var i}),s.driverGroups&&"DefaultCopied"!==(null==s||null===(a=s.driverGroups[0])||void 0===a?void 0:a.groupName)||!s.vehicleGroups||(s.driverGroups=[{amount:d,driverShifts:[],groupName:"DefaultCopied"}]),null!=s&&null!==(l=s.settings)&&void 0!==l&&l.accelerated&&(s.settings.router=nC(nC({},s.settings.router),{},{type:"linear"})),Aa.entries.forEach(function(e){e.isVirtual&&null!=s&&s.settings&&delete s.settings[e.key]}),Vx.isFieldServicingVariation(n)&&null!=s&&s.settings&&(s.settings.rideRefuelThreshold=s.settings.refuelThreshold),r&&(s.status="draft"),null!==(c=s.settings)&&void 0!==c&&c.placement&&!s.settings.placement.active&&(s.settings.placement.mode=void 0),s.demandPredictionFileUrl&&(s.settings.demandPredictionFileUrl=s.demandPredictionFileUrl,delete s.demandPredictionFileUrl),e.a(2,s)},e)}));return function(t,n,r,o){return e.apply(this,arguments)}}();const lC=function(){var e=(0,r.useContext)(It),t=e.handleGetExperiment,n=e.handleCreateExperiment,o=zt(),i=$S((0,r.useState)(""),2),l=i[0],c=i[1],u=$S((0,r.useState)(),2),s=u[0],d=u[1],f=$S((0,r.useState)(),2),p=f[0],m=f[1],y=$S((0,r.useState)(!1),2),h=y[0],v=y[1],g=(0,a.g)().experimentId,b=(0,a.Zp)(),w=(0,a.zy)().search,E=new URLSearchParams(w),x=E.get("variationId"),S=E.get("readOnly"),C=E.get("draft"),O=E.get("cloned"),k="true"===S,_="true"===C,A="true"===O,j=function(){var e=eC(JS().m(function e(t,r,i){var a,l,c,u,f,y,w,E,S,C,O,j,T=arguments;return JS().w(function(e){for(;;)switch(e.p=e.n){case 0:if(l=!(T.length>3&&void 0!==T[3])||T[3],c=(null==t||null===(a=t.variationMetaData)||void 0===a?void 0:a.status)===Y.PENDING,!h){e.n=1;break}return e.a(2);case 1:if(v(!0),f=p||x,(u=g)!==Tt){e.n=5;break}if(null==s||!s.id){e.n=2;break}u=null==s?void 0:s.id,e.n=5;break;case 2:return e.n=3,n();case 3:return y=e.v,e.n=4,d(y);case 4:u=(y||{id:""}).id;case 5:return A&&!p&&(t.settings.generalSeed=Math.floor(1e6*Math.random())),e.n=6,aC(u,t,A?r:r&&!c,o.distanceSystem);case 6:if(w=e.v,e.p=7,J.trackEvent("starting variation event",{varIdToUse:f,variationData:w}),!A||p){e.n=10;break}return E="create variation from clone",e.n=8,To(w);case 8:return S=e.v,C=S.id,e.n=9,m(C);case 9:J.trackEvent("create variation from clone - successful",{varIdToUse:f,variationData:w}),e.n=18;break;case 10:if(!i){e.n=13;break}return E="update variation on isFinishedDraft",e.n=11,Io(w,f);case 11:return J.trackEvent("update variation - successful",{varIdToUse:f,variationData:w}),E="move variation draft to pending",e.n=12,Po(f);case 12:J.trackEvent("move variation draft to pending - successful",{varIdToUse:f,variationData:w}),e.n=18;break;case 13:if(!(p||_||c)){e.n=15;break}return E="update variation",e.n=14,Io(w,f);case 14:J.trackEvent("update variation - successful",{varIdToUse:f,variationData:w}),e.n=18;break;case 15:if(k){e.n=18;break}return E="create variation",e.n=16,To(w);case 16:return O=e.v,j=O.id,e.n=17,m(j);case 17:J.trackEvent("create variation - successful",{varIdToUse:f,variationData:w});case 18:l&&Nt(b),e.n=20;break;case 19:throw e.p=19,e.v,J.trackEvent("".concat(E," - failed"),{varIdToUse:f,variationData:w}),new Error;case 20:return e.p=20,v(!1),e.f(20);case 21:return e.a(2)}},e,null,[[7,19,20,21]])}));return function(t,n,r){return e.apply(this,arguments)}}(),T=function(){var e=eC(JS().m(function e(){var t,n;return JS().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,J.trackEvent("trying to get variation data",{variationId:x}),e.n=1,_o(x);case 1:t=e.v,J.trackEvent("getting variation data - successful",{variationId:x}),c(t&&t.name),e.n=3;break;case 2:e.p=2,e.v,J.trackEvent("getting variation data - failed",{variationId:x}),n=D(),b("".concat(n,"/"));case 3:return e.a(2)}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}(),I=function(){var e=eC(JS().m(function e(){var n;return JS().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t(g);case 1:n=e.v,d(n);case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();(0,r.useEffect)(function(){x&&T()},[x]),(0,r.useEffect)(function(){g!==Tt&&I()},[g]);var P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Ie.A.getUri({url:e,params:t});b(n)},N=Tf(j,1500);return(0,r.useEffect)(function(){return function(){N.cancel()}},[]),r.createElement(r.Fragment,null,!(x&&!l)&&r.createElement(gn,{withScroll:!0,headerContent:r.createElement(Qi,null),sidePanelContent:r.createElement(Un,{onClickReports:function(){return P("/reports",{fleetId:je(),simType:tn})},onClickExperiments:function(){return P("/")}})},r.createElement(qS,{experiment:s,isDraft:_,isClone:A,variationId:x,variationName:l,isReadOnly:k,submitNewVariation:j,throttleSubmitNewVariation:N})))};function cC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&t.map(function(e,t){return r.createElement(fC,{key:e.value,onClick:function(){return o(e.value)},chosen:n===e.value},e.label)}))};function mC(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return yC(u,"_invoke",function(n,r,o){var i,l,c,u=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&u&&!o&&t3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(yC(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,yC(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,yC(d,"constructor",u),yC(u,"constructor",c),c.displayName="GeneratorFunction",yC(u,o,"GeneratorFunction"),yC(d),yC(d,o,"Generator"),yC(d,r,function(){return this}),yC(d,"toString",function(){return"[object Generator]"}),(mC=function(){return{w:i,m:f}})()}function yC(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}yC=function(e,t,n,r){function i(t,n){yC(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},yC(e,t,n,r)}function hC(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function vC(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){hC(i,r,o,a,l,"next",e)}function l(e){hC(i,r,o,a,l,"throw",e)}a(void 0)})}}function gC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return bC(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bC(e,t):void 0}}(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 bC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n{if(!n){var a=1/0;for(s=0;s=o)&&Object.keys(i.O).every(e=>i.O[e](n[c]))?n.splice(c--,1):(l=!1,o0&&e[s-1][2]>o;s--)e[s]=e[s-1];e[s]=[n,r,o]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var o=Object.create(null);i.r(o);var a={};t=t||[null,n({}),n([]),n(n)];for(var l=2&r&&e;("object"==typeof l||"function"==typeof l)&&!~t.indexOf(l);l=n(l))Object.getOwnPropertyNames(l).forEach(t=>a[t]=()=>e[t]);return a.default=()=>e,i.d(o,a),o},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.p="/",(()=>{i.b="undefined"!=typeof document&&document.baseURI||self.location.href;var e={792:0};i.O.j=t=>0===e[t];var t=(t,n)=>{var r,o,[a,l,c]=n,u=0;if(a.some(t=>0!==e[t])){for(r in l)i.o(l,r)&&(i.m[r]=l[r]);if(c)var s=c(i)}for(t&&t(n);ui(84315)),i.O(void 0,[347],()=>i(7452));var a=i.O(void 0,[347],()=>i(79070));a=i.O(a)})(); //# sourceMappingURL=main.4c2983cfab1030b4cd11.js.map