index.js 689 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405
  1. 'use strict';
  2. var hooks = require('@bpmn-io/properties-panel/preact/hooks');
  3. var minDash = require('min-dash');
  4. var propertiesPanel = require('@bpmn-io/properties-panel');
  5. var preact = require('@bpmn-io/properties-panel/preact');
  6. var LabelUtil = require('bpmn-js/lib/features/label-editing/LabelUtil');
  7. var ModelUtil = require('bpmn-js/lib/util/ModelUtil');
  8. var DiUtil = require('bpmn-js/lib/util/DiUtil');
  9. var React = require('@bpmn-io/properties-panel/preact/compat');
  10. var jsxRuntime = require('@bpmn-io/properties-panel/preact/jsx-runtime');
  11. var KeyboardUtil = require('diagram-js/lib/features/keyboard/KeyboardUtil');
  12. var minDom = require('min-dom');
  13. var ModelingUtil = require('bpmn-js/lib/features/modeling/util/ModelingUtil');
  14. var Ids = require('ids');
  15. var Collections = require('diagram-js/lib/util/Collections');
  16. var zeebe = require('@bpmn-io/extract-process-variables/zeebe');
  17. var arrayMove = require('array-move');
  18. var extractProcessVariables = require('@bpmn-io/extract-process-variables');
  19. const BpmnPropertiesPanelContext = preact.createContext({
  20. selectedElement: null,
  21. injector: null,
  22. getService() {
  23. return null;
  24. }
  25. });
  26. function useService(type, strict) {
  27. const {
  28. getService
  29. } = hooks.useContext(BpmnPropertiesPanelContext);
  30. return getService(type, strict);
  31. }
  32. function _extends$1o() { _extends$1o = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1o.apply(this, arguments); }
  33. var AssociationIcon = (({
  34. styles = {},
  35. ...props
  36. }) => /*#__PURE__*/React.createElement("svg", _extends$1o({
  37. width: "32",
  38. height: "32",
  39. xmlns: "http://www.w3.org/2000/svg"
  40. }, props), /*#__PURE__*/React.createElement("path", {
  41. stroke: "#000",
  42. strokeWidth: "2",
  43. fill: "none",
  44. strokeDasharray: "3.3,6",
  45. strokeLinecap: "square",
  46. d: "M1.5 30.5l29-29"
  47. })));
  48. function _extends$1n() { _extends$1n = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1n.apply(this, arguments); }
  49. var BusinessRuleTaskIcon = (({
  50. styles = {},
  51. ...props
  52. }) => /*#__PURE__*/React.createElement("svg", _extends$1n({
  53. xmlns: "http://www.w3.org/2000/svg",
  54. width: "32",
  55. height: "32"
  56. }, props), /*#__PURE__*/React.createElement("path", {
  57. d: "M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zM5.296 7.398v12.665h16.87V7.398H5.296zm.718 4.386h15.433v3.44H9.985v-3.432h-.719v3.431H6.014v-3.44zm0 4.158h3.252v3.403H6.014v-3.403zm3.97 0h11.463v3.403H9.985v-3.403z"
  58. }), /*#__PURE__*/React.createElement("path", {
  59. d: "M6.079 8.209v3.587H21.44V8.209z"
  60. })));
  61. function _extends$1m() { _extends$1m = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1m.apply(this, arguments); }
  62. var CallActivityIcon = (({
  63. styles = {},
  64. ...props
  65. }) => /*#__PURE__*/React.createElement("svg", _extends$1m({
  66. xmlns: "http://www.w3.org/2000/svg",
  67. width: "32",
  68. height: "32"
  69. }, props), /*#__PURE__*/React.createElement("path", {
  70. d: "M24.978 3c3.761 0 6.89 2.979 7.018 6.695l.004.238V22.4c0 3.747-3.05 6.804-6.783 6.93l-.24.003H7.023c-3.761 0-6.89-2.978-7.018-6.695L0 22.4V9.933C0 6.187 3.05 3.13 6.783 3.004L7.023 3h17.955zm0 3.667H7.022c-1.842 0-3.255 1.344-3.35 3.079l-.005.187V22.4c0 1.761 1.35 3.167 3.16 3.262l.195.005L10 25.666V15h12v10.666h2.978c1.842 0 3.255-1.344 3.35-3.079l.005-.187V9.933c0-1.761-1.35-3.166-3.16-3.261l-.195-.005zm-3.732 9.087H10.754v9.912h10.491v-9.912zm-4.475 1.817v2.658h2.658v1.542H16.77v2.658H15.23V21.77H12.57V20.23h2.658V17.57h1.542z"
  71. })));
  72. function _extends$1l() { _extends$1l = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1l.apply(this, arguments); }
  73. var CollaborationIcon = (({
  74. styles = {},
  75. ...props
  76. }) => /*#__PURE__*/React.createElement("svg", _extends$1l({
  77. xmlns: "http://www.w3.org/2000/svg",
  78. width: "32",
  79. height: "32"
  80. }, props), /*#__PURE__*/React.createElement("g", {
  81. fillRule: "evenodd"
  82. }, /*#__PURE__*/React.createElement("path", {
  83. fillRule: "nonzero",
  84. d: "M0 0v8.62h32V0H0zm1.655 7.054v-5.37h28.62v5.37H1.656zM0 23.38V32h32v-8.62H0zm1.655 7.054v-5.37h28.62v5.37H1.656z"
  85. }), /*#__PURE__*/React.createElement("path", {
  86. d: "M24 8l4 7h-8l4-7zm0 2l-2.28 4h4.56L24 10zM23.5 21h1v3h-1zM23.5 15h1v3h-1zM8 24l-4-7h8l-4 7zm0-2l2.28-4H5.72L8 22zM7.5 8h1v3h-1zM7.5 14h1v3h-1z"
  87. }))));
  88. function _extends$1k() { _extends$1k = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1k.apply(this, arguments); }
  89. var ConditionalFlowIcon = (({
  90. styles = {},
  91. ...props
  92. }) => /*#__PURE__*/React.createElement("svg", _extends$1k({
  93. xmlns: "http://www.w3.org/2000/svg",
  94. width: "32",
  95. height: "32"
  96. }, props), /*#__PURE__*/React.createElement("path", {
  97. d: "M32 .041S20.42 5.95 14.537 8.713c1.26 1.15 2.432 2.392 3.648 3.588-5.703 5.78-3.15 3.303-8.087 8.316l-8.472 1.377L0 32l10.006-1.626.098-.598 1.279-7.873c4.975-5.052 2.403-2.555 8.118-8.346 1.218 1.214 2.43 2.435 3.648 3.648C26.29 11.018 32 .041 32 .041zM9.603 22.397L8.54 28.91 2.03 29.97l1.061-6.515 6.512-1.058z"
  98. })));
  99. function _extends$1j() { _extends$1j = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1j.apply(this, arguments); }
  100. var ConnectionIcon = (({
  101. styles = {},
  102. ...props
  103. }) => /*#__PURE__*/React.createElement("svg", _extends$1j({
  104. xmlns: "http://www.w3.org/2000/svg",
  105. width: "32",
  106. height: "32"
  107. }, props), /*#__PURE__*/React.createElement("path", {
  108. d: "M32 .06S20.33 6.014 14.403 8.798c1.27 1.16 2.451 2.41 3.676 3.616L0 30.734 1.325 32l18.08-18.32c1.227 1.223 2.448 2.453 3.676 3.676C26.247 11.12 32 .06 32 .06z"
  109. })));
  110. function _extends$1i() { _extends$1i = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1i.apply(this, arguments); }
  111. var DataInputOutputAssociationIcon = (({
  112. styles = {},
  113. ...props
  114. }) => /*#__PURE__*/React.createElement("svg", _extends$1i({
  115. width: "32",
  116. height: "32",
  117. xmlns: "http://www.w3.org/2000/svg"
  118. }, props), /*#__PURE__*/React.createElement("path", {
  119. stroke: "#000",
  120. strokeWidth: "2",
  121. strokeLinecap: "round",
  122. strokeDasharray: "1.1,4.3",
  123. d: "M1.5 30.5L27 5"
  124. }), /*#__PURE__*/React.createElement("path", {
  125. d: "M31.803.197L26.5 16.107l-1.52-1.52 3.783-11.35-11.35 3.783-1.52-1.52z"
  126. })));
  127. function _extends$1h() { _extends$1h = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1h.apply(this, arguments); }
  128. var DataInputIcon = (({
  129. styles = {},
  130. ...props
  131. }) => /*#__PURE__*/React.createElement("svg", _extends$1h({
  132. xmlns: "http://www.w3.org/2000/svg",
  133. width: "32",
  134. height: "32"
  135. }, props), /*#__PURE__*/React.createElement("path", {
  136. d: "M20.833 0H3.488v32H28V7.36L20.833 0zm-2.105 1.818v7.507h7.454v20.857H5.306V1.818h13.422zm1.818.493l5.06 5.196h-5.06V2.311zm-9.182.86v3.744H7.081v3.222h4.283v3.743l5.7-5.354-5.7-5.354zm.808 1.868l3.711 3.487-3.71 3.487V9.329H7.888V7.723h4.283V5.039z"
  137. })));
  138. function _extends$1g() { _extends$1g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1g.apply(this, arguments); }
  139. var DataObjectIcon = (({
  140. styles = {},
  141. ...props
  142. }) => /*#__PURE__*/React.createElement("svg", _extends$1g({
  143. xmlns: "http://www.w3.org/2000/svg",
  144. width: "32",
  145. height: "32"
  146. }, props), /*#__PURE__*/React.createElement("path", {
  147. d: "M21.345 0H4v32h24.512V7.36L21.345 0zM19.24 1.818v7.507h7.454v20.857H5.818V1.818H19.24zm1.818.493l5.06 5.196h-5.06V2.311z"
  148. })));
  149. function _extends$1f() { _extends$1f = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1f.apply(this, arguments); }
  150. var DataOutputIcon = (({
  151. styles = {},
  152. ...props
  153. }) => /*#__PURE__*/React.createElement("svg", _extends$1f({
  154. xmlns: "http://www.w3.org/2000/svg",
  155. width: "32",
  156. height: "32"
  157. }, props), /*#__PURE__*/React.createElement("path", {
  158. d: "M20.833 0H3.488v32H28V7.36L20.833 0zm-2.105 1.818v7.507h7.454v20.857H5.306V1.818h13.422zm1.818.493l5.06 5.196h-5.06V2.311zm-9.182.86v3.744H7.081v3.222h4.283v3.743l5.7-5.354-5.7-5.354z"
  159. })));
  160. function _extends$1e() { _extends$1e = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1e.apply(this, arguments); }
  161. var DataStoreIcon = (({
  162. styles = {},
  163. ...props
  164. }) => /*#__PURE__*/React.createElement("svg", _extends$1e({
  165. xmlns: "http://www.w3.org/2000/svg",
  166. width: "32",
  167. height: "32"
  168. }, props), /*#__PURE__*/React.createElement("path", {
  169. d: "M16.008 1c-3.712 0-7.417.306-10.319.939-1.45.316-2.7.71-3.68 1.226C1.065 3.662.297 4.304.061 5.23a.823.823 0 00-.035.15L0 5.502l.017.084c-.012 7.41 0 14.46 0 22.08l.017.082c.203.985.995 1.656 1.975 2.172.98.517 2.23.91 3.68 1.226 2.902.633 6.607.94 10.319.94 3.711 0 7.416-.307 10.318-.94 1.451-.316 2.701-.71 3.68-1.226.98-.516 1.772-1.187 1.975-2.172l.017-.082V5.541a.825.825 0 000-.106v-.016l-.002-.013a.823.823 0 00-.046-.197c-.244-.916-1.007-1.55-1.943-2.044-.98-.516-2.23-.91-3.68-1.226C23.423 1.306 19.718 1 16.006 1zm0 1.646c3.62 0 7.245.308 9.968.901 1.36.297 2.497.67 3.263 1.074.612.323.932.643 1.063.882-.131.24-.451.56-1.063.882-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.901-9.968.901-3.62 0-7.245-.307-9.968-.901-1.361-.297-2.497-.67-3.264-1.074-.611-.322-.931-.642-1.062-.882.13-.24.451-.56 1.062-.882.767-.403 1.903-.777 3.264-1.074 2.723-.593 6.348-.9 9.968-.9zM1.664 7.647c.112.067.227.132.345.194.98.517 2.23.91 3.68 1.226 2.902.633 6.607.94 10.319.94 3.711 0 7.416-.307 10.318-.94 1.451-.316 2.701-.71 3.68-1.226.119-.062.234-.127.346-.194v1.93c-.08.245-.398.619-1.113.995-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.901-9.968.901-3.62 0-7.245-.307-9.968-.9-1.361-.298-2.497-.671-3.264-1.075-.714-.376-1.032-.75-1.112-.995v-1.93zm0 4.187c.112.067.227.132.345.195.98.516 2.23.91 3.68 1.226 2.902.632 6.607.938 10.319.938 3.711 0 7.416-.306 10.318-.938 1.451-.317 2.701-.71 3.68-1.226.119-.063.234-.128.346-.195v1.93c-.08.245-.398.619-1.113.995-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.901-9.968.901-3.62 0-7.245-.307-9.968-.9-1.361-.298-2.497-.67-3.264-1.075-.714-.376-1.032-.75-1.112-.995v-1.93zm0 4.188c.112.067.227.131.345.194.98.516 2.23.91 3.68 1.226 2.902.633 6.607.939 10.319.939 3.711 0 7.416-.306 10.318-.94 1.451-.316 2.701-.709 3.68-1.225.119-.063.234-.127.346-.194V27.47c-.08.245-.398.618-1.113.995-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.9-9.968.9-3.62 0-7.245-.306-9.968-.9-1.361-.297-2.497-.67-3.264-1.074-.714-.377-1.032-.75-1.112-.995V16.022z"
  170. })));
  171. function _extends$1d() { _extends$1d = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1d.apply(this, arguments); }
  172. var DefaultFlowIcon = (({
  173. styles = {},
  174. ...props
  175. }) => /*#__PURE__*/React.createElement("svg", _extends$1d({
  176. xmlns: "http://www.w3.org/2000/svg",
  177. width: "32",
  178. height: "32"
  179. }, props), /*#__PURE__*/React.createElement("path", {
  180. d: "M32 .06S20.33 6.014 14.403 8.798c1.27 1.16 2.451 2.41 3.676 3.616L6.84 23.804H.046v1.755h5.063L0 30.735 1.325 32l6.357-6.441h7.145v-1.756H9.414l9.99-10.123c1.228 1.223 2.45 2.453 3.677 3.676C26.247 11.12 32 .06 32 .06z"
  181. })));
  182. function _extends$1c() { _extends$1c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1c.apply(this, arguments); }
  183. var EndEventCancelIcon = (({
  184. styles = {},
  185. ...props
  186. }) => /*#__PURE__*/React.createElement("svg", _extends$1c({
  187. xmlns: "http://www.w3.org/2000/svg",
  188. width: "32",
  189. height: "32"
  190. }, props), /*#__PURE__*/React.createElement("path", {
  191. d: "M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm-3.955 3.918L8.94 12.072l3.985 3.985-3.913 3.913 3.048 3.047 3.913-3.913 3.987 3.987 3.096-3.096-3.987-3.987 3.913-3.913-3.047-3.048-3.913 3.913-3.985-3.985z"
  192. })));
  193. function _extends$1b() { _extends$1b = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1b.apply(this, arguments); }
  194. var EndEventCompensationIcon = (({
  195. styles = {},
  196. ...props
  197. }) => /*#__PURE__*/React.createElement("svg", _extends$1b({
  198. xmlns: "http://www.w3.org/2000/svg",
  199. width: "32",
  200. height: "32"
  201. }, props), /*#__PURE__*/React.createElement("path", {
  202. d: "M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm-.56 5.744l-7.407 5.23 7.408 5.234v-5.057c2.384 1.687 4.771 3.371 7.157 5.057V10.801l-7.157 5.054v-5.054z"
  203. })));
  204. function _extends$1a() { _extends$1a = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1a.apply(this, arguments); }
  205. var EndEventErrorIcon = (({
  206. styles = {},
  207. ...props
  208. }) => /*#__PURE__*/React.createElement("svg", _extends$1a({
  209. xmlns: "http://www.w3.org/2000/svg",
  210. width: "32",
  211. height: "32"
  212. }, props), /*#__PURE__*/React.createElement("path", {
  213. d: "M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm6.132 4.166l-3.633 7.363-4.516-5.874-4.102 12.131 4.599-5.91 4.743 5.427 2.909-13.137z"
  214. })));
  215. function _extends$19() { _extends$19 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$19.apply(this, arguments); }
  216. var EndEventEscalationIcon = (({
  217. styles = {},
  218. ...props
  219. }) => /*#__PURE__*/React.createElement("svg", _extends$19({
  220. xmlns: "http://www.w3.org/2000/svg",
  221. width: "32",
  222. height: "32"
  223. }, props), /*#__PURE__*/React.createElement("path", {
  224. d: "M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.006 3.9c-1.672 4.653-2.733 9.5-4.406 14.153 1.535-1.525 2.872-3.234 4.406-4.759l4.406 4.76c-1.497-4.71-2.91-9.445-4.406-14.155z"
  225. })));
  226. function _extends$18() { _extends$18 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$18.apply(this, arguments); }
  227. var EndEventLinkIcon = (({
  228. styles = {},
  229. ...props
  230. }) => /*#__PURE__*/React.createElement("svg", _extends$18({
  231. xmlns: "http://www.w3.org/2000/svg",
  232. width: "32",
  233. height: "32"
  234. }, props), /*#__PURE__*/React.createElement("path", {
  235. d: "M15.676 0C7.943.007.834 6.45.104 14.16c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 4.958 23.394.313 16.978.032A18.532 18.532 0 0015.676 0zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm1.78 4.065v3.555H9.779v6.713h7.994v3.554l5.828-6.91-5.828-6.912z"
  236. })));
  237. function _extends$17() { _extends$17 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$17.apply(this, arguments); }
  238. var EndEventMessageIcon = (({
  239. styles = {},
  240. ...props
  241. }) => /*#__PURE__*/React.createElement("svg", _extends$17({
  242. xmlns: "http://www.w3.org/2000/svg",
  243. width: "32",
  244. height: "32"
  245. }, props), /*#__PURE__*/React.createElement("path", {
  246. d: "M15.676 0C7.943.007.834 6.45.104 14.16c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 4.958 23.394.313 16.978.032A18.532 18.532 0 0015.676 0zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm-5.91 5.448l6.041 4.9 6.04-4.9H10.084zm-1.34 1.137v9.92h14.513v-9.718l-7.132 5.786-7.381-5.988z"
  247. })));
  248. function _extends$16() { _extends$16 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$16.apply(this, arguments); }
  249. var EndEventMultipleIcon = (({
  250. styles = {},
  251. ...props
  252. }) => /*#__PURE__*/React.createElement("svg", _extends$16({
  253. xmlns: "http://www.w3.org/2000/svg",
  254. width: "32",
  255. height: "32"
  256. }, props), /*#__PURE__*/React.createElement("path", {
  257. d: "M15.676 0C7.943.007.834 6.45.104 14.16c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 4.958 23.394.313 16.978.032A18.529 18.529 0 0015.676 0zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.011 3.039l-7.619 5.53 2.91 8.95h9.418l2.91-8.95-7.619-5.53z"
  258. })));
  259. function _extends$15() { _extends$15 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$15.apply(this, arguments); }
  260. var EndEventNoneIcon = (({
  261. styles = {},
  262. ...props
  263. }) => /*#__PURE__*/React.createElement("svg", _extends$15({
  264. xmlns: "http://www.w3.org/2000/svg",
  265. width: "32",
  266. height: "32"
  267. }, props), /*#__PURE__*/React.createElement("path", {
  268. d: "M15.84.042C8.654-.01 1.913 5.437.4 12.454-1.057 18.62 1.554 25.495 6.784 29.09c5.076 3.636 12.31 3.92 17.59.544 5.309-3.251 8.435-9.744 7.445-15.921C30.91 7.307 25.795 1.738 19.442.422a16.064 16.064 0 00-3.602-.38zm.382 5.01c5.28-.017 10.13 4.353 10.669 9.61.687 5.025-2.552 10.281-7.423 11.792-4.754 1.617-10.486-.447-12.962-4.856-2.74-4.575-1.574-11.094 2.768-14.27a11.05 11.05 0 016.948-2.276z"
  269. })));
  270. function _extends$14() { _extends$14 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$14.apply(this, arguments); }
  271. var EndEventSignalIcon = (({
  272. styles = {},
  273. ...props
  274. }) => /*#__PURE__*/React.createElement("svg", _extends$14({
  275. xmlns: "http://www.w3.org/2000/svg",
  276. width: "32",
  277. height: "32"
  278. }, props), /*#__PURE__*/React.createElement("path", {
  279. d: "M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.006 3.492c-2.261 4.07-4.532 8.136-6.797 12.204h13.595L15.999 8.55z"
  280. })));
  281. function _extends$13() { _extends$13 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$13.apply(this, arguments); }
  282. var EndEventTerminateIcon = (({
  283. styles = {},
  284. ...props
  285. }) => /*#__PURE__*/React.createElement("svg", _extends$13({
  286. xmlns: "http://www.w3.org/2000/svg",
  287. width: "32",
  288. height: "32"
  289. }, props), /*#__PURE__*/React.createElement("path", {
  290. d: "M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.006 2.859c-5.264-.2-9.495 5.551-7.755 10.516 1.366 5.085 8.108 7.436 12.339 4.301 4.455-2.807 4.708-9.943.462-13.058A8.128 8.128 0 0016 7.915z"
  291. })));
  292. function _extends$12() { _extends$12 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$12.apply(this, arguments); }
  293. var EventSubProcessExpandedIcon = (({
  294. styles = {},
  295. ...props
  296. }) => /*#__PURE__*/React.createElement("svg", _extends$12({
  297. xmlns: "http://www.w3.org/2000/svg",
  298. width: "32",
  299. height: "32"
  300. }, props), /*#__PURE__*/React.createElement("path", {
  301. d: "M7.295 4.78h1.779V3.003h-1.78V4.78zm3.558 0h1.779V3.003h-1.78V4.78zm3.557 0h1.78V3.003h-1.78V4.78zm3.558 0h1.78V3.003h-1.78V4.78zm3.558 0h1.779V3.003h-1.779V4.78zm3.558 0c.55.014 1.106-.034 1.654.045l.245-1.762c-.629-.096-1.266-.05-1.9-.061V4.78zM5.732 3.004a5.933 5.933 0 00-.915.093c.111.582.226 1.164.315 1.75.358-.101.947.098.746-.483-.096-.382.164-1.208-.146-1.36zm22.372 2.281c.427.234.812.547 1.13.915.42-.4 1.002-.777 1.33-1.18a5.863 5.863 0 00-1.593-1.289l-.867 1.554zm-25.27-1.44c-.587.354-1.11.811-1.539 1.345.47.333.96.86 1.417 1.077.299-.362.66-.673 1.065-.913-.328-.493-.55-1.055-.944-1.509zM30.515 7.26c-.563.046-.557.342-.378.784.154.25-.097.862.25.85.525-.023 1.14.043 1.612-.032a5.891 5.891 0 00-.362-2.027l-1.122.425zM.268 7.114A6.042 6.042 0 000 9.052h1.78c-.013-.5.047-1.003.208-1.478L.296 7.027l-.026.079-.002.008zM30.22 12.45H32v-1.779h-1.779v1.779zm-30.22.16h1.78v-1.779H0v1.78zm30.22 3.398H32v-1.78h-1.779v1.78zm-30.22.16h1.78v-1.779H0v1.779zm30.22 3.398H32v-1.78h-1.779v1.78zm-30.22.16h1.78v-1.78H0v1.78zm30.22 3.397H32v-1.779h-1.779v1.78zm-30.22.16h1.78v-1.778H0v1.778zm30.137 1.47a4.059 4.059 0 01-.522 1.32c.506.283 1.046.715 1.53.908a5.836 5.836 0 00.744-1.918c-.576-.094-1.209-.264-1.752-.31zm-29.984.51c.157.676.435 1.325.82 1.904l1.486-.977a4.065 4.065 0 01-.577-1.347l-1.73.42zm28.427 1.943c-.371.277-.79.49-1.234.627l.548 1.693a5.84 5.84 0 001.835-.96l-1.082-1.412-.066.05-.001.002zm-26.164 1.47c.567.413 1.21.722 1.886.907.14-.569.343-1.175.444-1.722a4.062 4.062 0 01-1.283-.624l-1.047 1.438zm3.88 1.119h1.779v-1.78h-1.78v1.78zm3.55 0h1.787v-1.78H9.846v1.78zm3.565 0h1.78v-1.78h-1.78v1.78zm3.558 0h1.78v-1.78h-1.78v1.78zm3.451 0h1.743v-1.78h-1.743v1.78zm3.665 0h1.779v-1.78h-1.78v1.78zm-1.922-.545V16.776H9.846V29.25h12.318zM10.967 17.905h10.068V27.97H10.967V17.905zm1.336 3.998v1.711h7.396v-1.711h-7.396z",
  302. opacity: ".97"
  303. })));
  304. function _extends$11() { _extends$11 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$11.apply(this, arguments); }
  305. var GatewayComplexIcon = (({
  306. styles = {},
  307. ...props
  308. }) => /*#__PURE__*/React.createElement("svg", _extends$11({
  309. xmlns: "http://www.w3.org/2000/svg",
  310. width: "32",
  311. height: "32"
  312. }, props), /*#__PURE__*/React.createElement("path", {
  313. d: "M16.001 0a1.29 1.29 0 00-.917.373L.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.372A1.294 1.294 0 0016.002 0zM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18zm-.327 6.79v.007l-.145.027-.118.08-.083.123-.028.145v4.954L11.793 10.8l-.125-.08-.14-.029-.144.027-.122.082-.46.46-.085.125-.026.142.028.14.08.125 3.505 3.505H9.347l-.001-.002-.145.032-.118.08-.083.122-.028.146v.652l.029.147.082.119.12.08.144.032h4.956L10.8 20.207v-.001l-.084.124-.026.142.028.14.08.124.46.461.126.082.14.029.143-.027.124-.084L15.3 17.69v4.964-.001l.028.147.082.12.12.08.144.031h.652l.148-.03.118-.08.083-.12.028-.146v-4.962l3.505 3.505.126.082.14.027.142-.027.124-.084.461-.46.083-.123s.028-.144.027-.146l-.028-.14-.082-.126-3.496-3.496h4.948l.148-.03.119-.08.082-.12.028-.147v-.652l-.028-.145-.083-.122-.119-.08s-.147-.033-.147-.031h-4.964l3.512-3.512.082-.122.029-.144-.028-.14-.084-.124-.46-.461-.123-.082-.14-.027-.145.027-.122.082-3.507 3.507V9.348l-.028-.146-.082-.122-.12-.08-.147-.029h-.652z"
  314. })));
  315. function _extends$10() { _extends$10 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$10.apply(this, arguments); }
  316. var GatewayEventBasedIcon = (({
  317. styles = {},
  318. ...props
  319. }) => /*#__PURE__*/React.createElement("svg", _extends$10({
  320. xmlns: "http://www.w3.org/2000/svg",
  321. width: "32",
  322. height: "32"
  323. }, props), /*#__PURE__*/React.createElement("path", {
  324. d: "M16 0a1.29 1.29 0 00-.918.373L.371 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.915.372A1.294 1.294 0 0016 0zm-.002 2.181l13.821 13.821-13.821 13.821-13.821-13.82L15.998 2.18zm0 5.876l-.254.185-7.377 5.355 2.915 8.964h9.433l2.915-8.964-7.631-5.54zm0 1.07l6.614 4.8-2.526 7.769h-8.175l-2.526-7.768 6.614-4.802z"
  325. })));
  326. function _extends$$() { _extends$$ = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$$.apply(this, arguments); }
  327. var GatewayNoneIcon = (({
  328. styles = {},
  329. ...props
  330. }) => /*#__PURE__*/React.createElement("svg", _extends$$({
  331. xmlns: "http://www.w3.org/2000/svg",
  332. width: "32",
  333. height: "32"
  334. }, props), /*#__PURE__*/React.createElement("path", {
  335. d: "M.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.373a1.313 1.313 0 00-1.833 0L.373 15.084zm1.806.918L16 2.182l13.821 13.82L16 29.823 2.179 16.003z"
  336. })));
  337. function _extends$_() { _extends$_ = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$_.apply(this, arguments); }
  338. var GatewayOrIcon = (({
  339. styles = {},
  340. ...props
  341. }) => /*#__PURE__*/React.createElement("svg", _extends$_({
  342. xmlns: "http://www.w3.org/2000/svg",
  343. width: "32",
  344. height: "32"
  345. }, props), /*#__PURE__*/React.createElement("path", {
  346. d: "M16.001 0a1.29 1.29 0 00-.917.373L.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.372A1.294 1.294 0 0016.002 0zM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18zm0 6.379a7.447 7.447 0 00-7.44 7.441A7.447 7.447 0 0016 23.443 7.447 7.447 0 0023.443 16a7.447 7.447 0 00-7.441-7.441zm0 .825a6.61 6.61 0 016.617 6.616A6.61 6.61 0 0116 22.618 6.61 6.61 0 019.385 16 6.61 6.61 0 0116 9.385z"
  347. })));
  348. function _extends$Z() { _extends$Z = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$Z.apply(this, arguments); }
  349. var GatewayParallelIcon = (({
  350. styles = {},
  351. ...props
  352. }) => /*#__PURE__*/React.createElement("svg", _extends$Z({
  353. xmlns: "http://www.w3.org/2000/svg",
  354. width: "32",
  355. height: "32"
  356. }, props), /*#__PURE__*/React.createElement("path", {
  357. d: "M16.001 0a1.29 1.29 0 00-.917.373L.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.372A1.294 1.294 0 0016.002 0zM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18zm-.377 5.708l-.168.032-.136.092-.096.14-.032.168v6.868h-6.87l-.002-.002-.166.037-.137.092v-.002l-.095.141-.033.167v.753s.032.169.034.17l.094.138.138.092.167.036h6.87v6.867l-.001-.001.033.17.095.138.138.092s.166.035.167.037h.752l.17-.036.137-.092.095-.137.033-.17v-6.867h6.868l.17-.035.137-.092.095-.137.033-.17v-.753s-.033-.165-.032-.167l-.096-.14-.138-.093s-.17-.037-.17-.035H16.81V8.323l-.033-.168-.094-.14-.138-.092-.17-.034h-.752z"
  358. })));
  359. function _extends$Y() { _extends$Y = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$Y.apply(this, arguments); }
  360. var GatewayXorIcon = (({
  361. styles = {},
  362. ...props
  363. }) => /*#__PURE__*/React.createElement("svg", _extends$Y({
  364. xmlns: "http://www.w3.org/2000/svg",
  365. width: "32",
  366. height: "32"
  367. }, props), /*#__PURE__*/React.createElement("path", {
  368. d: "M16 0a1.29 1.29 0 00-.918.373L.371 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.915.372A1.294 1.294 0 0016 0zm-.002 2.181l13.821 13.821-13.821 13.821-13.821-13.82L15.998 2.18zm-5.162 7.69l-.166.032-.141.096-.532.532s-.097.142-.097.144l-.03.164.032.162.093.144 4.857 4.858-4.855 4.855v-.001L9.9 21l-.03.164.032.162s.093.142.093.144l.531.532.146.095.162.032.164-.03.144-.097 4.855-4.856 4.857 4.857.145.095.162.032.164-.03.144-.097.531-.532.095-.14.033-.168-.033-.162-.095-.146L17.144 16 22 11.144l.095-.14.033-.166-.033-.163-.097-.144-.532-.532-.14-.095-.163-.032-.166.032-.141.095L16 14.855l-4.858-4.858v-.002l-.144-.092-.162-.032z"
  369. })));
  370. function _extends$X() { _extends$X = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$X.apply(this, arguments); }
  371. var GroupIcon = (({
  372. styles = {},
  373. ...props
  374. }) => /*#__PURE__*/React.createElement("svg", _extends$X({
  375. xmlns: "http://www.w3.org/2000/svg",
  376. width: "32",
  377. height: "32"
  378. }, props), /*#__PURE__*/React.createElement("path", {
  379. d: "M6.34.016c-2.333.025-4.684 1.77-5.29 4.17C.608 5.848.88 7.608.804 9.314v2.922h2.041c.038-2.332-.076-4.673.062-7C3.14 3.355 4.869 1.938 6.643 2.04h8.956V.009c-3.086 0-6.173-.02-9.258 0v.007zm13.094 2.023h1.92V.009h-1.92v2.03zm5.756 0c1.265-.069 2.66.045 3.602 1.055 1.036.983 1.201 2.523 1.122 3.91v6.313h2.078c-.03-2.677.062-5.36-.047-8.032-.17-2.743-2.62-5.111-5.215-5.236-.511-.064-1.027-.02-1.54-.033v2.023zM.803 18.319h2.041v-2.026H.804v2.026zm29.11 1.084h2.08v-2.03h-2.08v2.03zM.804 26.148c.004 2.218 1.393 4.366 3.313 5.28 1.728.853 3.681.448 5.521.544.43-.112 1.29.231 1.435-.183v-1.847c-1.788-.043-3.584.094-5.365-.082-1.67-.354-2.919-2.048-2.863-3.844v-3.644H.804v3.777zm29.11-.068c.04 1.961-1.508 3.787-3.381 3.842-1.954.06-3.914.02-5.87.026v2.03c2.118-.042 4.242.08 6.355-.063 2.524-.264 4.818-2.644 4.94-5.323.08-1.039.014-2.085.035-3.126h-2.078v2.613zm-15.006 5.898h1.92v-2.03h-1.92v2.03z"
  380. })));
  381. function _extends$W() { _extends$W = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$W.apply(this, arguments); }
  382. var IntermediateEventCatchCancelIcon = (({
  383. styles = {},
  384. ...props
  385. }) => /*#__PURE__*/React.createElement("svg", _extends$W({
  386. xmlns: "http://www.w3.org/2000/svg",
  387. width: "32",
  388. height: "32"
  389. }, props), /*#__PURE__*/React.createElement("path", {
  390. d: "M15.975.049C8.195-.111.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.454 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.215-2.282-2.022-5.3-3.217-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.082 11.082 0 0116 5.021zm-3.956 3.946l-3.096 3.097 3.985 3.985-3.913 3.913 3.047 3.048 3.913-3.913 3.988 3.987 3.097-3.096L19.076 16l3.914-3.913-3.048-3.048-3.913 3.913-3.986-3.985zm-.002 1.222l3.988 3.987 3.913-3.913 1.826 1.826-3.913 3.913 3.985 3.986-1.873 1.873-3.985-3.985-3.913 3.913-1.827-1.827 3.914-3.913-3.988-3.987 1.873-1.873z"
  391. })));
  392. function _extends$V() { _extends$V = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$V.apply(this, arguments); }
  393. var IntermediateEventCatchCompensationIcon = (({
  394. styles = {},
  395. ...props
  396. }) => /*#__PURE__*/React.createElement("svg", _extends$V({
  397. xmlns: "http://www.w3.org/2000/svg",
  398. width: "32",
  399. height: "32"
  400. }, props), /*#__PURE__*/React.createElement("path", {
  401. d: "M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm-.56 5.772l-7.408 5.231 7.409 5.234v-5.057c2.385 1.687 4.771 3.371 7.157 5.057V10.793l-7.157 5.055v-5.055zm-.865 1.665v7.125l-5.048-3.562 5.048-3.563zm7.161 0v7.132l-5.048-3.566 5.048-3.566z"
  402. })));
  403. function _extends$U() { _extends$U = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$U.apply(this, arguments); }
  404. var IntermediateEventCatchConditionIcon = (({
  405. styles = {},
  406. ...props
  407. }) => /*#__PURE__*/React.createElement("svg", _extends$U({
  408. xmlns: "http://www.w3.org/2000/svg",
  409. width: "32",
  410. height: "32"
  411. }, props), /*#__PURE__*/React.createElement("path", {
  412. d: "M15.97.04h-.127C8.713-.018 2.003 5.334.437 12.286c-1.51 6.123.98 13.005 6.136 16.665 5.125 3.788 12.546 4.105 17.912.623 5.272-3.276 8.33-9.766 7.325-15.916-.904-6.241-5.79-11.7-11.95-13.143A16.082 16.082 0 0015.97.04zm-.181 1.724c.115 0 .23 0 .347.003 6.625-.066 12.823 5.149 13.89 11.69 1.13 5.91-1.908 12.349-7.262 15.138-5.473 3.013-12.866 1.884-17.116-2.726C1.291 21.372.444 13.914 3.802 8.602c2.493-4.112 7.169-6.819 11.987-6.838zm.283 1.554c-.117 0-.234.002-.351.005-6.1 0-11.691 5.049-12.346 11.114-.78 5.684 2.795 11.612 8.218 13.52 5.139 1.943 11.416.101 14.624-4.38 3.461-4.583 3.262-11.538-.596-15.831-2.36-2.747-5.924-4.423-9.549-4.428zm-.078 1.695c.078 0 .156 0 .234.003 5.4 0 10.321 4.556 10.734 9.942.563 5.13-2.958 10.364-7.971 11.678-4.832 1.41-10.457-.935-12.746-5.446-2.463-4.559-1.2-10.795 3.014-13.883a11.072 11.072 0 016.735-2.294zm-5.352 4.266V22.761h10.716V9.279H10.642zm.863.866h8.987v11.75h-8.987v-11.75zm.927 1.323v.862h7.133v-.862h-7.133zm0 2.602v.866h7.133v-.866h-7.133zm0 3.008v.862h7.133v-.862h-7.133zm0 2.717v.863h7.133v-.863h-7.133z"
  413. })));
  414. function _extends$T() { _extends$T = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$T.apply(this, arguments); }
  415. var IntermediateEventCatchErrorIcon = (({
  416. styles = {},
  417. ...props
  418. }) => /*#__PURE__*/React.createElement("svg", _extends$T({
  419. xmlns: "http://www.w3.org/2000/svg",
  420. width: "32",
  421. height: "32"
  422. }, props), /*#__PURE__*/React.createElement("path", {
  423. d: "M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm6.132 4.194c-1.21 2.455-2.422 4.91-3.633 7.364l-4.516-5.875-4.103 12.133 4.6-5.912c1.58 1.81 3.162 3.619 4.744 5.429L22.13 9.215zM14.383 13.1l4.295 5.445 1.073-2.387-1.027 4.131-4.384-5.157-1.778 2.75 1.821-4.782z"
  424. })));
  425. function _extends$S() { _extends$S = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$S.apply(this, arguments); }
  426. var IntermediateEventCatchEscalationIcon = (({
  427. styles = {},
  428. ...props
  429. }) => /*#__PURE__*/React.createElement("svg", _extends$S({
  430. xmlns: "http://www.w3.org/2000/svg",
  431. width: "32",
  432. height: "32"
  433. }, props), /*#__PURE__*/React.createElement("path", {
  434. d: "M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm.006 3.927c-1.672 4.654-2.734 9.502-4.406 14.155 1.534-1.525 2.872-3.234 4.406-4.759l4.406 4.76c-1.496-4.71-2.91-9.446-4.406-14.156zm.032 2.929c.822 2.586 1.598 5.186 2.42 7.771l-2.42-2.612c-.682.597-2.452 2.884-2.338 2.388.87-2.487 1.447-5.067 2.338-7.547z"
  435. })));
  436. function _extends$R() { _extends$R = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$R.apply(this, arguments); }
  437. var IntermediateEventCatchLinkIcon = (({
  438. styles = {},
  439. ...props
  440. }) => /*#__PURE__*/React.createElement("svg", _extends$R({
  441. xmlns: "http://www.w3.org/2000/svg",
  442. width: "32",
  443. height: "32"
  444. }, props), /*#__PURE__*/React.createElement("path", {
  445. d: "M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm1.78 4.093v3.555H9.785v6.714h7.994v3.554l5.829-6.911-5.83-6.912zm.974 2.584l3.61 4.295-3.61 4.294v-1.933h-7.88v-4.688h7.88v-1.968z"
  446. })));
  447. function _extends$Q() { _extends$Q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$Q.apply(this, arguments); }
  448. var IntermediateEventCatchMessageIcon = (({
  449. styles = {},
  450. ...props
  451. }) => /*#__PURE__*/React.createElement("svg", _extends$Q({
  452. xmlns: "http://www.w3.org/2000/svg",
  453. width: "32",
  454. height: "32"
  455. }, props), /*#__PURE__*/React.createElement("path", {
  456. d: "M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm-7.245 5.475v11.06h14.502v-11.06H8.754zm3.222 1.728h8.057c-1.427.878-2.854 2.806-4.281 3.016l-3.776-3.016zm9.554 1.017v6.587H10.48V13.24l5.524 4.414 5.526-4.414z"
  457. })));
  458. function _extends$P() { _extends$P = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$P.apply(this, arguments); }
  459. var IntermediateEventCatchMultipleIcon = (({
  460. styles = {},
  461. ...props
  462. }) => /*#__PURE__*/React.createElement("svg", _extends$P({
  463. xmlns: "http://www.w3.org/2000/svg",
  464. width: "32",
  465. height: "32"
  466. }, props), /*#__PURE__*/React.createElement("path", {
  467. d: "M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm.006 3.073l-7.62 5.531 2.91 8.95h9.42l2.91-8.95-7.62-5.53zm0 1.067l6.604 4.794-2.523 7.757h-8.162l-2.522-7.757 6.603-4.794z"
  468. })));
  469. function _extends$O() { _extends$O = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$O.apply(this, arguments); }
  470. var IntermediateEventCatchNonInterruptingConditionIcon = (({
  471. styles = {},
  472. ...props
  473. }) => /*#__PURE__*/React.createElement("svg", _extends$O({
  474. xmlns: "http://www.w3.org/2000/svg",
  475. width: "32",
  476. height: "32"
  477. }, props), /*#__PURE__*/React.createElement("path", {
  478. d: "M10.638 9.563V23.056h10.724V9.563H10.638zm.863.866h8.995v11.76H11.5V10.43zm.928 1.324v.862h7.139v-.862h-7.14zm0 2.605v.866h7.139v-.866h-7.14zm0 3.01v.863h7.139v-.863h-7.14zm0 2.72v.863h7.139v-.864h-7.14zM15.999.308h-.004l-.188.001h-.011l-.188.004h-.011L15.41.32h-.011l-.187.008h-.005L15.2.33l-.187.01h-.005l-.005.001-.187.013h-.011L14.62.37h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.185.027h-.005l-.005.001-.184.029h-.005l-.005.001-.183.031-.006.001-.005.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003.178-.001h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.176.027.17.03.174.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.087-.135.061-.15.032-.158.002-.16-.027-.16-.057-.15L20 1.023l-.108-.12-.128-.097-.145-.073-.128-.038-.158-.035-.005-.001-.005-.001L19.14.62h-.005l-.005-.002-.182-.035h-.006L18.938.58l-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.006-.001-.183-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.43 17.783.41l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.37h-.005L17.38.368l-.187-.015h-.005l-.005-.001-.187-.013h-.011L16.8.328h-.011L16.6.32h-.011l-.187-.006h-.011L16.204.31h-.011L16.005.31H16zm9.016 2.935l-.16.004-.158.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.126.125.124.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.084.152.084.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.16-.016.155-.046.144-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.003-.005-.002-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.003-.005-.101-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.005-.003-.004-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.004-.004-.003-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.004-.004-.132-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027zm-18.381.344l-.161.008-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003L4.682 5l-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.004-.003.005-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.004-.003.005-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023zM16 3.595h-.005l-.148.001h-.01l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.047.12.048.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.139-.107-.12-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.006-.002-.005-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.142-.031-.005-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.002-.143-.025-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01L16.32 3.6h-.011l-.147-.003h-.011l-.147-.001H16zm-5.482 1.366l-.16.008-.157.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.005.003-.004.004-.11.096-.004.004-.004.003-.11.098-.003.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.004.004-.003.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.004-.086.118-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.03.15-.057.138-.085.119-.109.082-.105.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022zm13.91 2.116l-.162.008-.157.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.025.159.055.152.082.138.086.103.09.09.094.098.092.099.093.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.114.068.118.067.115.065.118.064.117.062.117.061.121.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.048.127.047.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.085.137.11.119.129.096.145.07.155.043.16.013.161-.017.154-.046.144-.075.126-.1.106-.12.082-.14.055-.151.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.06-.132-.001-.005-.002-.004-.061-.132-.003-.004-.002-.005-.063-.13-.002-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.074-.125-.002-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.081-.12-.003-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.118-.003-.004-.004-.004-.087-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.094-.113-.003-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.11-.004-.003-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023zM4.45 13.135l-.161.002-.158.032-.15.06-.135.088-.118.11-.094.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.005-.019.145v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.005l-.001.006-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.005.033.142v.005l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.104.102-.125.076-.142.049-.153.02-.16-.011-.161-.031-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.133-.024-.133-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.133.01-.138.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029zm26.698 1.601l-.161.01-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.025.175-.026.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.16-.062.165-.062.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.079.158-.08.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.119.13.097.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.005.002-.004.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.171.001-.005.002-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.181.001-.005.001-.005.037-.182.002-.005v-.005l.036-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187V16.7l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02zm-30.21.572l-.161.001-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.004.074.17.002.005.002.004.076.169.002.004.002.005.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158-.074-.155-.074-.16-.071-.157-.07-.16-.068-.16-.067-.165-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178-.001-.177v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057-.159-.028zm26.798 2.024l-.16.007-.157.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.133-.026.133-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.063.119-.062.116-.067.119-.066.116-.069.115-.069.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.107-.085.11-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.081-.12.003-.005.003-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.005.003-.004.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.002-.005.003-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.001-.006.042-.138.001-.005.002-.005.04-.14v-.005l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.142.001-.005.001-.005.031-.141.001-.006.002-.005.029-.142v-.005l.002-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022zM6.841 23.019l-.16.024-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.109.04.048.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.105.004.004.004.004.103.105.004.004.004.003.105.104.003.004.004.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.004.003.005.004.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.002.126.073.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.067.005.003.004.002.13.066.004.002.005.003.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.002.133.057.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.16-.015.156-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.159-.061-.149-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.08-.11-.08-.109-.081-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006zm15.063 2.701l-.16.014-.156.044-.12.057-.06.034-.12.066-.117.064-.118.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.035-.13.036-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021.005-.001h.006l.143-.023.006-.001h.005l.143-.025h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.037h.005l.005-.002.14-.038.005-.002h.005l.14-.04.005-.002.005-.001.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.057.005-.002.005-.002.132-.057.005-.003.005-.002.132-.06.005-.001.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.003.005-.002.128-.066.005-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.003.065-.037.132-.093.112-.115.089-.135.062-.149.034-.157.003-.161-.026-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.046-.16-.016zM6.33 27.127l-.16.023-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.004.003.005.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.002.162.088.005.003.004.002.164.086.005.003.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.168.076.005.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.06.005.003.005.001.175.06.005.001.005.002.176.057.005.001.005.002.176.055.006.001.005.002.177.052.005.002.005.001.178.05.005.002.005.002.178.048.006.001.005.002.179.046.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.17-.044-.168-.046-.167-.047-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006zm19.215.087l-.16.01-.157.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.158.073-.157.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.047-.17.046-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.007.133-.016.115-.024.005-.001.005-.001.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002.005-.001.18-.046.004-.002h.005l.179-.05h.005l.005-.002.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.004-.002.005-.002.172-.068.005-.002.005-.002.171-.07.005-.001.005-.002.17-.072.005-.002.004-.002.17-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.003.167-.08.004-.002.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.003.163-.086.005-.002.005-.003.162-.088.005-.002.005-.003.161-.09.005-.002.004-.003.16-.092.005-.003.005-.002.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.003.155-.101.005-.003.004-.003.154-.104.004-.003.004-.003.153-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.112.004-.003.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02z"
  479. })));
  480. function _extends$N() { _extends$N = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$N.apply(this, arguments); }
  481. var IntermediateEventCatchNonInterruptingEscalationIcon = (({
  482. styles = {},
  483. ...props
  484. }) => /*#__PURE__*/React.createElement("svg", _extends$N({
  485. xmlns: "http://www.w3.org/2000/svg",
  486. width: "32",
  487. height: "32"
  488. }, props), /*#__PURE__*/React.createElement("path", {
  489. d: "M16.012 9.222c-1.673 4.657-2.735 9.508-4.409 14.164 1.536-1.526 2.874-3.236 4.41-4.762l4.408 4.762c-1.497-4.712-2.911-9.451-4.409-14.164zm.032 2.93c.823 2.588 1.599 5.19 2.421 7.777l-2.42-2.614c-.683.598-2.454 2.886-2.34 2.39.871-2.489 1.448-5.07 2.34-7.552zM16.012.312c-1.448.02-2.93.157-4.302.628-.852.447-.255 1.863.66 1.574 2.255-.608 4.648-.607 6.922-.108.934.075 1.228-1.376.338-1.67C18.451.44 17.227.317 16.012.311zm9.012 2.934c-.913-.104-1.272 1.258-.454 1.648 1.834 1.36 3.293 3.185 4.31 5.22.526.776 1.842.098 1.515-.78a15.522 15.522 0 00-5.06-6.006c-.1-.044-.203-.07-.31-.082zM6.65 3.59c-.762.089-1.24.809-1.805 1.267C3.38 6.295 2.163 8.007 1.37 9.905c-.266.898 1.094 1.484 1.564.675a14.825 14.825 0 014.327-5.56c.476-.515.09-1.419-.612-1.431zm9.362.007c-.698.066-1.689-.16-2.033.635-.282.733.535 1.358 1.217 1.125 1.806-.147 3.63.203 5.293.907.902.255 1.472-1.112.656-1.573-1.6-.735-3.374-1.089-5.133-1.094zm-5.479 1.365c-.835.15-1.517.76-2.21 1.226-1.203.94-2.318 2.061-3.057 3.402-.33.904 1.063 1.552 1.547.723 1.045-1.656 2.596-2.925 4.285-3.873.545-.499.171-1.463-.565-1.478zm13.903 2.115c-.875-.07-1.22 1.173-.501 1.627 1.325 1.34 2.188 3.062 2.748 4.84.468.84 1.869.21 1.557-.699-.604-2.118-1.751-4.097-3.351-5.615a.93.93 0 00-.453-.153zM4.467 13.132c-.822-.07-.996.826-1.046 1.455-.256 1.93-.094 3.933.562 5.769.406.844 1.807.365 1.612-.551a11.498 11.498 0 01-.334-5.808.874.874 0 00-.794-.865zm26.687 1.6c-.746-.037-1.014.785-.879 1.395.043 2.393-.57 4.771-1.66 6.894-.31.884 1.02 1.536 1.53.75a15.632 15.632 0 001.821-8.372.876.876 0 00-.812-.667zm-30.197.571c-.782-.073-1.044.775-.933 1.404.068 2.414.661 4.833 1.809 6.962.534.77 1.842.076 1.505-.798a14.833 14.833 0 01-1.603-6.861.876.876 0 00-.778-.707zm26.787 2.024c-.777-.048-.952.797-1.021 1.392-.354 1.692-1.202 3.231-2.216 4.608-.407.872.925 1.638 1.48.852 1.361-1.733 2.296-3.827 2.582-6.017a.874.874 0 00-.825-.835zM6.857 23.012c-.808.018-1.082 1.122-.47 1.59 1.393 1.607 3.187 2.886 5.194 3.599.91.222 1.43-1.165.598-1.596a11.495 11.495 0 01-4.723-3.396.899.899 0 00-.599-.197zm15.057 2.7c-.81.194-1.504.76-2.325.972-1.203.458-2.5.536-3.758.664-.869.307-.573 1.728.346 1.663 2.201-.034 4.412-.626 6.293-1.778.604-.495.227-1.532-.556-1.521zM6.346 27.118c-.833.008-1.11 1.218-.395 1.617 1.986 1.602 4.358 2.749 6.868 3.226.933.076 1.227-1.376.338-1.67a14.838 14.838 0 01-6.345-3.066.929.929 0 00-.466-.107zm19.208.087c-.766.09-1.241.841-1.922 1.158-1.516.991-3.251 1.58-4.996 2.005-.872.405-.346 1.849.584 1.604 2.543-.526 4.98-1.66 6.963-3.344.47-.52.072-1.42-.63-1.423z"
  490. })));
  491. function _extends$M() { _extends$M = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$M.apply(this, arguments); }
  492. var IntermediateEventCatchNonInterruptingMessageIcon = (({
  493. styles = {},
  494. ...props
  495. }) => /*#__PURE__*/React.createElement("svg", _extends$M({
  496. xmlns: "http://www.w3.org/2000/svg",
  497. width: "32",
  498. height: "32"
  499. }, props), /*#__PURE__*/React.createElement("path", {
  500. d: "M8.742 10.464v11.072h14.516V10.464H8.742zm3.224 1.73h8.066a69569 69569 0 00-4.034 3.22l-4.032-3.22zm9.565 1.018v6.594H10.469v-6.593L16 17.63l5.532-4.419zM16 0h-.005l-.188.001h-.011l-.188.004h-.011l-.187.006h-.011l-.187.008h-.005L15.2.02l-.187.01h-.005l-.005.001-.187.013h-.011L14.62.06h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.185.027h-.005l-.005.001-.184.029h-.005l-.005.001-.183.031-.006.001-.005.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003L16 1.73h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.176.027.17.03.174.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.087-.135.061-.15.032-.158.002-.16-.027-.16-.057-.15L20 .714l-.108-.12-.128-.097-.145-.073-.128-.038-.158-.035-.005-.001-.005-.001L19.14.31h-.005l-.005-.002-.182-.035h-.006l-.005-.002-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.006-.001-.183-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.12 17.783.1l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.06h-.005L17.38.06l-.187-.015h-.005l-.005-.001-.187-.013h-.011L16.8.02h-.011L16.6.01h-.011l-.187-.006h-.011L16.204 0h-.011L16.005 0H16zm9.015 2.935l-.16.004-.158.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.126.125.124.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.084.152.084.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.16-.016.155-.046.144-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.003-.005-.002-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.003-.005-.101-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.005-.003-.004-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.004-.004-.003-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.004-.004-.132-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027zM6.634 3.28l-.161.008-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003-.004.004-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.004-.003.005-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.004-.003.005-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023zM16 3.286h-.005l-.148.001h-.01l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.047.12.048.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.139-.107-.12-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.006-.002-.005-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.142-.031-.005-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.002-.143-.025-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01l-.147-.005h-.011l-.147-.003h-.011l-.147-.001H16zm-5.482 1.366l-.16.008-.157.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.005.003-.004.004-.11.096-.004.004-.004.003-.11.098-.003.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.004.004-.003.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.004-.086.118-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.03.15-.057.138-.085.119-.109.082-.105.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022zm13.91 2.116l-.162.008-.157.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.025.159.055.152.082.138.086.103.09.09.094.098.092.099.093.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.114.068.118.067.115.065.118.064.117.062.117.061.121.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.048.127.047.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.085.137.11.119.129.096.145.07.155.043.16.013.161-.017.154-.046.144-.075.126-.1.106-.12.082-.14.055-.151.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.06-.132-.001-.005-.002-.004-.061-.132-.003-.004-.002-.005-.063-.13-.002-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.074-.125-.002-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.081-.12-.003-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.118-.003-.004-.004-.004-.087-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.094-.113-.003-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.11-.004-.003-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023zM4.45 12.826l-.161.002-.158.032-.15.06-.135.088-.118.11-.094.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.005-.019.145v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.005l-.001.006-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.005.033.142v.005l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.104.102-.125.076-.142.049-.153.02-.16-.011-.161-.031-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.133-.024-.133-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.133.01-.138.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029zm26.698 1.601l-.161.01-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.025.175-.026.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.16-.062.165-.062.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.079.158-.08.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.119.13.097.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.005.002-.004.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.171.001-.005.002-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.181.001-.005.001-.005.037-.182.002-.005v-.005l.036-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187v-.011l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02zM.938 15L.777 15l-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.004.074.17.002.005.002.004.076.169.002.004.002.005.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158L3.1 22.1l-.074-.16-.071-.157-.07-.16-.068-.16-.067-.165-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178L1.73 16v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057L.938 15zm26.798 2.024l-.16.007-.157.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.133-.026.133-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.063.119-.062.116-.067.119-.066.116-.069.115-.069.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.107-.085.11-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.081-.12.003-.005.003-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.005.003-.004.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.002-.005.003-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.001-.006.042-.138.001-.005.002-.005.04-.14V19.4l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.142.001-.005.001-.005.031-.141.001-.006.002-.005.029-.142v-.005l.002-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022zM6.841 22.71l-.16.024-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.109.04.048.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.105.004.004.004.004.103.105.004.004.004.003.105.104.003.004.004.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.004.003.005.004.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.002.126.073.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.067.005.003.004.002.13.066.004.002.005.003.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.002.133.057.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.16-.015.156-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.159-.061-.149-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.08-.11-.08-.109-.081-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006zm15.063 2.701l-.16.014-.156.044-.12.057-.06.034-.12.066-.117.064-.118.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.035-.13.036-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021.005-.001h.006l.143-.023.006-.001h.005l.143-.025h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.037h.005l.005-.002.14-.038.005-.002h.005l.14-.04.005-.002.005-.001.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.057.005-.002.005-.002.132-.057.005-.003.005-.002.132-.06.005-.001.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.003.005-.002.128-.066.005-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.003.065-.037.132-.093.112-.115.089-.135.062-.149.034-.157.003-.161-.026-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.046-.16-.016zM6.33 26.818l-.16.023-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.004.003.005.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.002.162.088.005.003.004.002.164.086.005.003.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.168.076.005.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.06.005.003.005.001.175.06.005.001.005.002.176.057.005.001.005.002.176.055.006.001.005.002.177.052.005.002.005.001.178.05.005.002.005.002.178.048.006.001.005.002.179.046.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.17-.044-.168-.046-.167-.047-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006zm19.215.087l-.16.01-.157.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.158.073-.157.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.047-.17.046-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.007.133-.016.115-.024.005-.001.005-.001.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002.005-.001.18-.046.004-.002h.005l.179-.05h.005l.005-.002.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.004-.002.005-.002.172-.068.005-.002.005-.002.171-.07.005-.001.005-.002.17-.072.005-.002.004-.002.17-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.003.167-.08.004-.002.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.003.163-.086.005-.002.005-.003.162-.088.005-.002.005-.003.161-.09.005-.002.004-.003.16-.092.005-.003.005-.002.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.003.155-.101.005-.003.004-.003.154-.104.004-.003.004-.003.153-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.112.004-.003.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02z"
  501. })));
  502. function _extends$L() { _extends$L = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$L.apply(this, arguments); }
  503. var IntermediateEventCatchNonInterruptingMultipleIcon = (({
  504. styles = {},
  505. ...props
  506. }) => /*#__PURE__*/React.createElement("svg", _extends$L({
  507. xmlns: "http://www.w3.org/2000/svg",
  508. width: "32",
  509. height: "32"
  510. }, props), /*#__PURE__*/React.createElement("path", {
  511. d: "M23.637 13.902l-7.625-5.535-7.624 5.535 2.912 8.956h9.425l2.912-8.956zm-1.017.33l-2.524 7.762H11.93l-2.524-7.762 6.607-4.796 6.608 4.796zM16.012.311c-1.448.02-2.93.157-4.302.628-.852.447-.255 1.863.66 1.574 2.255-.608 4.648-.607 6.922-.108.934.075 1.228-1.376.338-1.67C18.451.44 17.227.317 16.012.311zm9.012 2.934c-.913-.104-1.272 1.258-.454 1.648 1.834 1.36 3.293 3.185 4.31 5.22.526.776 1.842.098 1.515-.78a15.522 15.522 0 00-5.06-6.006c-.1-.044-.203-.07-.31-.082zM6.65 3.59c-.762.089-1.24.809-1.805 1.267C3.38 6.295 2.163 8.007 1.37 9.905c-.266.898 1.094 1.484 1.564.675a14.825 14.825 0 014.327-5.56c.476-.515.09-1.419-.612-1.431zm9.362.007c-.698.066-1.689-.16-2.033.635-.282.733.535 1.358 1.217 1.125 1.806-.147 3.63.203 5.293.907.902.255 1.472-1.112.656-1.573-1.6-.735-3.374-1.089-5.133-1.094zm-5.479 1.365c-.835.15-1.517.76-2.21 1.226-1.203.94-2.318 2.061-3.057 3.402-.33.904 1.063 1.552 1.547.723 1.045-1.656 2.596-2.925 4.285-3.873.545-.499.171-1.463-.565-1.478zm13.903 2.115c-.875-.07-1.22 1.173-.501 1.627 1.325 1.34 2.188 3.062 2.748 4.84.468.84 1.869.21 1.557-.699-.604-2.118-1.751-4.097-3.351-5.615a.93.93 0 00-.453-.153zM4.467 13.132c-.822-.07-.996.826-1.046 1.455-.256 1.93-.094 3.933.562 5.769.406.844 1.807.365 1.612-.551a11.498 11.498 0 01-.334-5.808.874.874 0 00-.794-.865zm26.687 1.6c-.746-.037-1.014.785-.879 1.395.043 2.393-.57 4.771-1.66 6.894-.31.884 1.02 1.536 1.53.75a15.632 15.632 0 001.821-8.372.876.876 0 00-.812-.667zm-30.197.571c-.782-.073-1.044.775-.933 1.404.068 2.414.661 4.833 1.809 6.962.534.77 1.842.076 1.505-.798a14.833 14.833 0 01-1.603-6.861.876.876 0 00-.778-.707zm26.787 2.024c-.777-.048-.952.797-1.021 1.392-.354 1.692-1.202 3.231-2.216 4.608-.407.872.925 1.638 1.48.852 1.361-1.733 2.296-3.827 2.582-6.017a.874.874 0 00-.825-.835zM6.857 23.012c-.808.018-1.082 1.122-.47 1.59 1.393 1.607 3.187 2.886 5.194 3.599.91.222 1.43-1.165.598-1.596a11.495 11.495 0 01-4.723-3.396.899.899 0 00-.599-.197zm15.057 2.7c-.81.194-1.504.76-2.325.972-1.203.458-2.5.536-3.758.664-.869.307-.573 1.728.346 1.663 2.201-.034 4.412-.626 6.293-1.778.604-.495.227-1.532-.556-1.521zM6.346 27.118c-.833.008-1.11 1.218-.395 1.617 1.986 1.602 4.358 2.749 6.868 3.226.933.076 1.227-1.376.338-1.67a14.838 14.838 0 01-6.345-3.066.929.929 0 00-.466-.107zm19.208.087c-.766.09-1.241.841-1.922 1.158-1.516.991-3.251 1.58-4.996 2.005-.872.405-.346 1.849.584 1.604 2.543-.526 4.98-1.66 6.963-3.344.47-.52.072-1.42-.63-1.423z"
  512. })));
  513. function _extends$K() { _extends$K = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$K.apply(this, arguments); }
  514. var IntermediateEventCatchNonInterruptingParallelIcon = (({
  515. styles = {},
  516. ...props
  517. }) => /*#__PURE__*/React.createElement("svg", _extends$K({
  518. xmlns: "http://www.w3.org/2000/svg",
  519. width: "32",
  520. height: "32"
  521. }, props), /*#__PURE__*/React.createElement("path", {
  522. d: "M13.51 9.081v4.428H9.08v4.982h4.428v4.428h4.982V18.49h4.428v-4.982H18.49V9.081h-4.982zm.83.83h3.32v4.428h4.429v3.322H17.66v4.428h-3.32v-4.454H9.91v-3.296h4.428V9.911zM16 0h-.005l-.188.001h-.011l-.188.004h-.011l-.187.006h-.011l-.187.008h-.005L15.2.02l-.187.01h-.005l-.005.001-.187.013h-.011L14.62.06h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.185.027h-.005l-.005.001-.184.029h-.005l-.005.001-.183.031-.006.001-.005.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003L16 1.73h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.176.027.17.03.174.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.087-.135.061-.15.032-.158.002-.16-.027-.16-.057-.15L20 .714l-.108-.12-.128-.097-.145-.073-.128-.038-.158-.035-.005-.001-.005-.001L19.14.31h-.005l-.005-.002-.182-.035h-.006l-.005-.002-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.006-.001-.183-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.12 17.783.1l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.06h-.005L17.38.06l-.187-.015h-.005l-.005-.001-.187-.013h-.011L16.8.02h-.011L16.6.01h-.011l-.187-.006h-.011L16.204 0h-.011L16.005 0H16zm9.015 2.935l-.16.004-.158.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.126.125.124.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.084.152.084.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.16-.016.155-.046.144-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.003-.005-.002-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.003-.005-.101-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.005-.003-.004-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.004-.004-.003-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.004-.004-.132-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027zM6.634 3.28l-.161.008-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003-.004.004-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.004-.003.005-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.004-.003.005-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023zM16 3.286h-.005l-.148.001h-.01l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.047.12.048.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.139-.107-.12-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.006-.002-.005-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.142-.031-.005-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.002-.143-.025-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01l-.147-.005h-.011l-.147-.003h-.011l-.147-.001H16zm-5.482 1.366l-.16.008-.157.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.005.003-.004.004-.11.096-.004.004-.004.003-.11.098-.003.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.004.004-.003.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.004-.086.118-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.03.15-.057.138-.085.119-.109.082-.105.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022zm13.91 2.116l-.162.008-.157.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.025.159.055.152.082.138.086.103.09.09.094.098.092.099.093.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.114.068.118.067.115.065.118.064.117.062.117.061.121.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.048.127.047.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.085.137.11.119.129.096.145.07.155.043.16.013.161-.017.154-.046.144-.075.126-.1.106-.12.082-.14.055-.151.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.06-.132-.001-.005-.002-.004-.061-.132-.003-.004-.002-.005-.063-.13-.002-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.074-.125-.002-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.081-.12-.003-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.118-.003-.004-.004-.004-.087-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.094-.113-.003-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.11-.004-.003-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023zM4.45 12.826l-.161.002-.158.032-.15.06-.135.088-.118.11-.094.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.005-.019.145v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.005l-.001.006-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.005.033.142v.005l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.104.102-.125.076-.142.049-.153.02-.16-.011-.161-.031-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.133-.024-.133-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.133.01-.138.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029zm26.698 1.601l-.161.01-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.025.175-.026.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.16-.062.165-.062.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.079.158-.08.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.119.13.097.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.005.002-.004.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.171.001-.005.002-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.181.001-.005.001-.005.037-.182.002-.005v-.005l.036-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187v-.011l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02zM.938 15L.777 15l-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.004.074.17.002.005.002.004.076.169.002.004.002.005.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158L3.1 22.1l-.074-.16-.071-.157-.07-.16-.068-.16-.067-.165-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178L1.73 16v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057L.938 15zm26.798 2.024l-.16.007-.157.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.133-.026.133-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.063.119-.062.116-.067.119-.066.116-.069.115-.069.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.107-.085.11-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.081-.12.003-.005.003-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.005.003-.004.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.002-.005.003-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.001-.006.042-.138.001-.005.002-.005.04-.14V19.4l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.142.001-.005.001-.005.031-.141.001-.006.002-.005.029-.142v-.005l.002-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022zM6.841 22.71l-.16.024-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.109.04.048.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.105.004.004.004.004.103.105.004.004.004.003.105.104.003.004.004.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.004.003.005.004.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.002.126.073.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.067.005.003.004.002.13.066.004.002.005.003.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.002.133.057.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.16-.015.156-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.159-.061-.149-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.08-.11-.08-.109-.081-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006zm15.063 2.701l-.16.014-.156.044-.12.057-.06.034-.12.066-.117.064-.118.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.035-.13.036-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021.005-.001h.006l.143-.023.006-.001h.005l.143-.025h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.037h.005l.005-.002.14-.038.005-.002h.005l.14-.04.005-.002.005-.001.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.057.005-.002.005-.002.132-.057.005-.003.005-.002.132-.06.005-.001.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.003.005-.002.128-.066.005-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.003.065-.037.132-.093.112-.115.089-.135.062-.149.034-.157.003-.161-.026-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.046-.16-.016zM6.33 26.818l-.16.023-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.004.003.005.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.002.162.088.005.003.004.002.164.086.005.003.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.168.076.005.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.06.005.003.005.001.175.06.005.001.005.002.176.057.005.001.005.002.176.055.006.001.005.002.177.052.005.002.005.001.178.05.005.002.005.002.178.048.006.001.005.002.179.046.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.17-.044-.168-.046-.167-.047-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006zm19.215.087l-.16.01-.157.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.158.073-.157.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.047-.17.046-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.007.133-.016.115-.024.005-.001.005-.001.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002.005-.001.18-.046.004-.002h.005l.179-.05h.005l.005-.002.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.004-.002.005-.002.172-.068.005-.002.005-.002.171-.07.005-.001.005-.002.17-.072.005-.002.004-.002.17-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.003.167-.08.004-.002.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.003.163-.086.005-.002.005-.003.162-.088.005-.002.005-.003.161-.09.005-.002.004-.003.16-.092.005-.003.005-.002.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.003.155-.101.005-.003.004-.003.154-.104.004-.003.004-.003.153-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.112.004-.003.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02z",
  523. opacity: ".98"
  524. })));
  525. function _extends$J() { _extends$J = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$J.apply(this, arguments); }
  526. var IntermediateEventCatchNonInterruptingSignalIcon = (({
  527. styles = {},
  528. ...props
  529. }) => /*#__PURE__*/React.createElement("svg", _extends$J({
  530. xmlns: "http://www.w3.org/2000/svg",
  531. width: "32",
  532. height: "32"
  533. }, props), /*#__PURE__*/React.createElement("path", {
  534. d: "M16.012 8.816L9.21 21.026h13.606l-6.803-12.21zm0 1.776l5.332 9.57H10.681l5.331-9.57zm0-10.281c-1.448.02-2.93.157-4.302.628-.852.447-.255 1.863.66 1.574 2.255-.608 4.648-.607 6.922-.108.934.075 1.228-1.376.338-1.67C18.451.44 17.227.317 16.012.311zm9.012 2.934c-.913-.104-1.272 1.258-.454 1.648 1.834 1.36 3.293 3.185 4.31 5.22.526.776 1.842.098 1.515-.78a15.522 15.522 0 00-5.06-6.006c-.1-.044-.203-.07-.31-.082zM6.65 3.59c-.762.089-1.24.809-1.805 1.267C3.38 6.295 2.163 8.007 1.37 9.905c-.266.898 1.094 1.484 1.564.675a14.825 14.825 0 014.327-5.56c.476-.515.09-1.419-.612-1.431zm9.362.007c-.698.066-1.689-.16-2.033.635-.282.733.535 1.358 1.217 1.125 1.806-.147 3.63.203 5.293.907.902.255 1.472-1.112.656-1.573-1.6-.735-3.374-1.089-5.133-1.094zm-5.479 1.365c-.835.15-1.517.76-2.21 1.226-1.203.94-2.318 2.061-3.057 3.402-.33.904 1.063 1.552 1.547.723 1.045-1.656 2.596-2.925 4.285-3.873.545-.499.171-1.463-.565-1.478zm13.903 2.115c-.875-.07-1.22 1.173-.501 1.627 1.325 1.34 2.188 3.062 2.748 4.84.468.84 1.869.21 1.557-.699-.604-2.118-1.751-4.097-3.351-5.615a.93.93 0 00-.453-.153zM4.467 13.132c-.822-.07-.996.826-1.046 1.455-.256 1.93-.094 3.933.562 5.769.406.844 1.807.365 1.612-.551a11.498 11.498 0 01-.334-5.808.874.874 0 00-.794-.865zm26.687 1.6c-.746-.037-1.014.785-.879 1.395.043 2.393-.57 4.771-1.66 6.894-.31.884 1.02 1.536 1.53.75a15.632 15.632 0 001.821-8.372.876.876 0 00-.812-.667zm-30.197.571c-.782-.073-1.044.775-.933 1.404.068 2.414.661 4.833 1.809 6.962.534.77 1.842.076 1.505-.798a14.833 14.833 0 01-1.603-6.861.876.876 0 00-.778-.707zm26.787 2.024c-.777-.048-.952.797-1.021 1.392-.354 1.692-1.202 3.231-2.216 4.608-.407.872.925 1.638 1.48.852 1.361-1.733 2.296-3.827 2.582-6.017a.874.874 0 00-.825-.835zM6.857 23.012c-.808.018-1.082 1.122-.47 1.59 1.393 1.607 3.187 2.886 5.194 3.599.91.222 1.43-1.165.598-1.596a11.495 11.495 0 01-4.723-3.396.899.899 0 00-.599-.197zm15.057 2.7c-.81.194-1.504.76-2.325.972-1.203.458-2.5.536-3.758.664-.869.307-.573 1.728.346 1.663 2.201-.034 4.412-.626 6.293-1.778.604-.495.227-1.532-.556-1.521zM6.346 27.118c-.833.008-1.11 1.218-.395 1.617 1.986 1.602 4.358 2.749 6.868 3.226.933.076 1.227-1.376.338-1.67a14.838 14.838 0 01-6.345-3.066.929.929 0 00-.466-.107zm19.208.087c-.766.09-1.241.841-1.922 1.158-1.516.991-3.251 1.58-4.996 2.005-.872.405-.346 1.849.584 1.604 2.543-.526 4.98-1.66 6.963-3.344.47-.52.072-1.42-.63-1.423z"
  535. })));
  536. function _extends$I() { _extends$I = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$I.apply(this, arguments); }
  537. var IntermediateEventCatchNonInterruptingTimerIcon = (({
  538. styles = {},
  539. ...props
  540. }) => /*#__PURE__*/React.createElement("svg", _extends$I({
  541. xmlns: "http://www.w3.org/2000/svg",
  542. width: "32",
  543. height: "32"
  544. }, props), /*#__PURE__*/React.createElement("path", {
  545. d: "M15.998 8.406c-3.018-.041-5.92 1.926-7.031 4.727-1.138 2.695-.51 6.012 1.537 8.103 1.99 2.141 5.268 2.93 8.014 1.927 2.878-.98 4.992-3.827 5.068-6.87.153-2.957-1.624-5.88-4.3-7.137a7.552 7.552 0 00-3.288-.75zm0 1.384c2.759-.052 5.373 1.973 6.015 4.655.704 2.578-.482 5.517-2.791 6.867-2.358 1.48-5.682 1.086-7.618-.918-2.043-1.971-2.407-5.381-.84-7.745 1.11-1.763 3.15-2.88 5.234-2.86zm1.962 1.765l-2.074 3.762c-.64.068-.793 1.04-.202 1.3.39.27.696-.18 1.052-.165h3.17v-.865h-3.182l1.993-3.615c-.252-.14-.505-.278-.757-.417zm-1.965-8.268h-.158l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.048.12.047.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.138-.107-.121-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.005-.002-.006-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.141-.031-.006-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.001-.143-.026-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01l-.147-.005h-.011l-.147-.003h-.01l-.148-.001h-.01zM10.357 4.66l-.156.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.004.003-.005.004-.11.096-.004.004-.004.003-.109.098-.004.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.003.004-.004.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.005-.086.117-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.029.15-.058.138-.085.119-.108.082-.106.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022-.16.008zm13.91 2.116l-.158.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.026.159.054.152.082.139.086.102.09.09.094.098.093.099.092.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.115.068.117.067.115.065.118.064.117.062.118.061.12.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.049.127.046.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.086.137.109.119.129.096.145.07.155.043.16.013.161-.017.155-.046.143-.074.126-.1.106-.122.082-.138.055-.152.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.059-.132-.002-.005-.002-.004-.061-.132-.003-.004-.002-.005-.062-.13-.003-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.073-.125-.003-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.08-.12-.004-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.117-.003-.005-.003-.004-.088-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.093-.113-.004-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.109-.004-.004-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023-.16.008zM4.288 12.828l-.158.032-.15.06-.135.088-.117.11-.095.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.006-.019.144v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.006l-.001.005-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.006.033.14v.006l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.103.102-.126.076-.142.049-.153.02-.16-.01-.161-.032-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.132-.024-.134-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.132.01-.139.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029-.16.002zm23.286 4.202l-.156.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.134-.026.132-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.062.119-.063.116-.067.119-.066.116-.068.115-.07.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.108-.085.109-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.082-.12.003-.005.002-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.004.003-.005.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.003-.005.002-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.002-.006.04-.138.002-.005.002-.005.04-.14V19.4l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.141.001-.006.001-.005.031-.141.002-.006v-.005l.03-.142.001-.005.001-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022-.16.007zM6.681 22.734l-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.11.04.047.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.106.004.003.004.004.103.105.004.004.004.004.105.103.004.004.003.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.005.004.004.003.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.003.126.072.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.068.005.002.004.002.13.066.004.003.005.002.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.003.133.056.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.161-.015.155-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.158-.061-.15-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.079-.11-.08-.109-.082-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006-.16.024zm15.063 2.691l-.156.044-.12.057-.06.034-.12.066-.116.064-.119.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.036-.13.035-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021h.005l.006-.002.143-.022h.006l.005-.002.143-.024h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.036.005-.002.005-.001.14-.038.005-.001.005-.002.14-.04h.005l.005-.002.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.056.005-.003.005-.002.132-.057.005-.002.005-.003.132-.059.005-.002.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.002.005-.003.129-.066.004-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.002.065-.038.132-.093.112-.115.089-.135.062-.149.034-.157.004-.161-.027-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.045-.16-.017-.161.014zM15.994 0l-.187.001h-.011l-.188.004h-.011l-.187.006h-.011l-.187.008h-.005L15.2.02l-.187.01h-.005l-.005.001-.187.013h-.01L14.62.06h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.184.027h-.006l-.005.001-.184.029h-.005l-.005.001-.183.031-.005.001-.006.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003L16 1.73h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.177.027.17.03.173.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.088-.135.06-.15.032-.158.002-.16-.027-.16-.057-.15L20 .714l-.108-.12-.128-.097-.144-.073-.129-.038-.158-.035-.005-.001-.005-.001L19.14.31h-.005l-.005-.002-.182-.035h-.006l-.005-.002-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.005-.001-.184-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.12 17.783.1l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.06 17.385.06h-.005l-.187-.015h-.005l-.005-.001-.187-.013h-.01L16.799.02h-.011L16.6.01h-.011l-.187-.006h-.011L16.204 0h-.011L16.005 0h-.01zm8.86 2.939l-.157.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.127.125.123.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.085.152.083.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.161-.016.155-.046.143-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.002-.005-.003-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.002-.005-.102-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.004-.003-.005-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.003-.004-.004-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.003-.004-.133-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027-.16.004zm-18.381.348l-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003-.004.004-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.005-.003.004-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.005-.003.004-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023-.161.008zm24.514 11.15l-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.024.175-.027.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.161-.061.164-.063.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.078.158-.081.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.12.13.096.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.004.002-.005.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.17.002-.006.001-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.18.001-.006.001-.005.038-.182v-.005l.002-.005.035-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187v-.011l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02-.161.009zM.777 15l-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.005.074.169.002.005.002.004.076.169.002.005.002.004.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158L3.1 22.1l-.074-.16-.071-.156-.07-.162-.068-.16-.067-.164-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178L1.73 16v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057L.938 15 .777 15zM6.17 26.842l-.152.052-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.005.003.004.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.003.162.088.005.002.004.002.164.087.005.002.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.169.076.004.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.061.005.002.005.001.175.06.005.001.005.002.176.057.005.001.005.002.177.055.005.001.005.002.177.052.005.002.005.001.178.051.005.001.005.002.178.048.006.002h.005l.179.047.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.169-.044-.17-.045-.166-.048-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006-.16.024zm19.214.073l-.156.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.157.073-.158.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.048-.17.045-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.008.133-.017.115-.024h.005l.005-.002.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002h.005l.18-.047.004-.001.005-.002.179-.048.005-.002.005-.001.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.005-.002.004-.002.172-.068.005-.001.005-.002.171-.07.005-.002.005-.002.17-.072.005-.002.005-.002.169-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.002.167-.08.004-.003.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.002.163-.087.005-.002.005-.002.162-.088.005-.003.005-.003.161-.09.005-.002.004-.003.16-.092.005-.002.005-.003.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.002.155-.102.005-.003.004-.003.154-.104.004-.003.005-.003.152-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.111.004-.004.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02-.16.009z"
  546. })));
  547. function _extends$H() { _extends$H = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$H.apply(this, arguments); }
  548. var IntermediateEventCatchParallelMultipleIcon = (({
  549. styles = {},
  550. ...props
  551. }) => /*#__PURE__*/React.createElement("svg", _extends$H({
  552. xmlns: "http://www.w3.org/2000/svg",
  553. width: "32",
  554. height: "32"
  555. }, props), /*#__PURE__*/React.createElement("path", {
  556. d: "M15.975.003C8.195-.157.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.408 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.215-2.282-2.022-5.3-3.217-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.082 11.082 0 0116 4.975zm-2.15 3.281v5.534H8.213v4.38h5.636v5.534h4.31V18.17h5.639v-4.38h-5.64V8.256h-4.31zm.865.865h2.583v5.534h5.635v2.65h-5.635v5.533h-2.583v-5.534h-5.64v-2.649h5.64V9.121z"
  557. })));
  558. function _extends$G() { _extends$G = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$G.apply(this, arguments); }
  559. var IntermediateEventCatchSignalIcon = (({
  560. styles = {},
  561. ...props
  562. }) => /*#__PURE__*/React.createElement("svg", _extends$G({
  563. xmlns: "http://www.w3.org/2000/svg",
  564. width: "32",
  565. height: "32"
  566. }, props), /*#__PURE__*/React.createElement("path", {
  567. d: "M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm.006 3.521L9.206 20.745h13.598L16.005 8.542zm0 1.775l5.329 9.564H10.677l5.328-9.564z"
  568. })));
  569. function _extends$F() { _extends$F = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$F.apply(this, arguments); }
  570. var IntermediateEventCatchTimerIcon = (({
  571. styles = {},
  572. ...props
  573. }) => /*#__PURE__*/React.createElement("svg", _extends$F({
  574. xmlns: "http://www.w3.org/2000/svg",
  575. width: "32",
  576. height: "32"
  577. }, props), /*#__PURE__*/React.createElement("path", {
  578. d: "M15.97.04h-.127C8.713-.018 2.003 5.334.437 12.286c-1.51 6.123.98 13.005 6.136 16.665 5.125 3.788 12.546 4.105 17.912.623 5.272-3.276 8.33-9.766 7.325-15.916-.904-6.241-5.79-11.7-11.95-13.143A16.082 16.082 0 0015.97.04zm-.181 1.724c.115 0 .23 0 .347.003 6.625-.066 12.823 5.149 13.89 11.69 1.13 5.91-1.908 12.349-7.262 15.138-5.473 3.013-12.866 1.884-17.116-2.726C1.291 21.372.444 13.914 3.802 8.602c2.493-4.112 7.169-6.819 11.987-6.838zm.283 1.554c-.117 0-.234.002-.351.005-6.1 0-11.691 5.049-12.346 11.114-.78 5.684 2.795 11.612 8.218 13.52 5.139 1.943 11.416.101 14.624-4.38 3.461-4.583 3.262-11.538-.596-15.831-2.36-2.747-5.924-4.423-9.549-4.428zm-.078 1.695c.078 0 .156 0 .234.003 5.4 0 10.321 4.556 10.734 9.942.563 5.13-2.958 10.364-7.971 11.678-4.832 1.41-10.457-.935-12.746-5.446-2.463-4.559-1.2-10.795 3.014-13.883a11.072 11.072 0 016.735-2.294zm-.137 3.42c-2.965.02-5.792 1.968-6.884 4.722-1.137 2.693-.509 6.007 1.536 8.096 1.988 2.14 5.263 2.929 8.007 1.926 2.875-.98 4.987-3.824 5.063-6.865.154-2.954-1.622-5.875-4.295-7.13a7.545 7.545 0 00-3.427-.75zm.27 1.381c2.708.013 5.249 2.014 5.88 4.652.704 2.576-.481 5.512-2.788 6.862-2.356 1.478-5.677 1.084-7.611-.918-2.042-1.97-2.405-5.376-.839-7.738 1.11-1.762 3.146-2.877 5.229-2.857h.13zm1.831 1.764l-2.072 3.76c-.64.068-.792 1.039-.202 1.298.39.27.696-.18 1.051-.164h3.168v-.864h-3.18l1.992-3.612-.757-.418z"
  579. })));
  580. function _extends$E() { _extends$E = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$E.apply(this, arguments); }
  581. var IntermediateEventNoneIcon = (({
  582. styles = {},
  583. ...props
  584. }) => /*#__PURE__*/React.createElement("svg", _extends$E({
  585. xmlns: "http://www.w3.org/2000/svg",
  586. width: "32",
  587. height: "32"
  588. }, props), /*#__PURE__*/React.createElement("path", {
  589. d: "M15.848.001C8.113-.093.931 6.281.125 13.983c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.207C29.105 4.938 23.55.48 17.367.06A16.448 16.448 0 0015.848 0v.001zm.293 1.727c7.113-.099 13.662 5.97 14.077 13.08.56 6.299-3.516 12.735-9.582 14.679-5.798 2.004-12.806-.12-16.283-5.237C.717 19.159.874 11.638 5.016 6.876 7.722 3.638 11.902 1.63 16.14 1.728zm-.415 1.555C9.157 3.258 3.256 9.156 3.278 15.729c-.16 5.965 4.365 11.725 10.293 12.737 5.409 1.065 11.37-1.744 13.775-6.753 2.534-4.986 1.386-11.627-2.953-15.251-2.364-2.077-5.512-3.27-8.667-3.18zm.507 1.692c5.82-.026 11.013 5.318 10.79 11.143-.024 5.3-4.313 10.267-9.636 10.803-5.075.667-10.426-2.588-11.885-7.553-1.535-4.744.494-10.46 4.925-12.885a11.072 11.072 0 015.806-1.508z"
  590. })));
  591. function _extends$D() { _extends$D = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$D.apply(this, arguments); }
  592. var IntermediateEventThrowCompensationIcon = (({
  593. styles = {},
  594. ...props
  595. }) => /*#__PURE__*/React.createElement("svg", _extends$D({
  596. xmlns: "http://www.w3.org/2000/svg",
  597. width: "32",
  598. height: "32"
  599. }, props), /*#__PURE__*/React.createElement("path", {
  600. d: "M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm-.56 5.772l-7.408 5.231 7.409 5.234v-5.057c2.385 1.687 4.771 3.371 7.157 5.057V10.747l-7.157 5.055v-5.055z"
  601. })));
  602. function _extends$C() { _extends$C = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$C.apply(this, arguments); }
  603. var IntermediateEventThrowEscalationIcon = (({
  604. styles = {},
  605. ...props
  606. }) => /*#__PURE__*/React.createElement("svg", _extends$C({
  607. xmlns: "http://www.w3.org/2000/svg",
  608. width: "32",
  609. height: "32"
  610. }, props), /*#__PURE__*/React.createElement("path", {
  611. d: "M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm.006 3.927c-1.672 4.654-2.734 9.502-4.406 14.155 1.534-1.525 2.872-3.234 4.406-4.759l4.406 4.76c-1.496-4.71-2.91-9.446-4.406-14.156z"
  612. })));
  613. function _extends$B() { _extends$B = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$B.apply(this, arguments); }
  614. var IntermediateEventThrowLinkIcon = (({
  615. styles = {},
  616. ...props
  617. }) => /*#__PURE__*/React.createElement("svg", _extends$B({
  618. xmlns: "http://www.w3.org/2000/svg",
  619. width: "32",
  620. height: "32"
  621. }, props), /*#__PURE__*/React.createElement("path", {
  622. d: "M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm1.78 4.093v3.555H9.785v6.714h7.994v3.554l5.829-6.911-5.83-6.912z"
  623. })));
  624. function _extends$A() { _extends$A = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$A.apply(this, arguments); }
  625. var IntermediateEventThrowMessageIcon = (({
  626. styles = {},
  627. ...props
  628. }) => /*#__PURE__*/React.createElement("svg", _extends$A({
  629. xmlns: "http://www.w3.org/2000/svg",
  630. width: "32",
  631. height: "32"
  632. }, props), /*#__PURE__*/React.createElement("path", {
  633. d: "M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm-5.91 5.475l6.04 4.901 6.042-4.9H10.088zm-1.341 1.138v9.921h14.514V11.79l-7.132 5.787-7.382-5.99z"
  634. })));
  635. function _extends$z() { _extends$z = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$z.apply(this, arguments); }
  636. var IntermediateEventThrowMultipleIcon = (({
  637. styles = {},
  638. ...props
  639. }) => /*#__PURE__*/React.createElement("svg", _extends$z({
  640. xmlns: "http://www.w3.org/2000/svg",
  641. width: "32",
  642. height: "32"
  643. }, props), /*#__PURE__*/React.createElement("path", {
  644. d: "M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm.006 3.073l-7.62 5.532 2.91 8.95h9.42l2.91-8.95-7.62-5.532z"
  645. })));
  646. function _extends$y() { _extends$y = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$y.apply(this, arguments); }
  647. var IntermediateEventThrowSignalIcon = (({
  648. styles = {},
  649. ...props
  650. }) => /*#__PURE__*/React.createElement("svg", _extends$y({
  651. xmlns: "http://www.w3.org/2000/svg",
  652. width: "32",
  653. height: "32"
  654. }, props), /*#__PURE__*/React.createElement("path", {
  655. d: "M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm.006 3.52c-2.261 4.07-4.533 8.136-6.798 12.205h13.596L16.005 8.495z"
  656. })));
  657. function _extends$x() { _extends$x = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$x.apply(this, arguments); }
  658. var LaneIcon = (({
  659. styles = {},
  660. ...props
  661. }) => /*#__PURE__*/React.createElement("svg", _extends$x({
  662. xmlns: "http://www.w3.org/2000/svg",
  663. width: "32",
  664. height: "32"
  665. }, props), /*#__PURE__*/React.createElement("path", {
  666. d: "M0 7v18.62h32V7H0zm1.655 17.056V8.684h28.62v15.372H1.656z"
  667. })));
  668. function _extends$w() { _extends$w = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$w.apply(this, arguments); }
  669. var ManualTaskIcon = (({
  670. styles = {},
  671. ...props
  672. }) => /*#__PURE__*/React.createElement("svg", _extends$w({
  673. xmlns: "http://www.w3.org/2000/svg",
  674. width: "32",
  675. height: "32"
  676. }, props), /*#__PURE__*/React.createElement("path", {
  677. d: "M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm4.43 1.328c-.222.005-.43.09-.606.203-.985.638-4.356 2.977-5.096 3.486-.67.46-1.12 1.153-1.38 1.974-.27.858-.235 1.793-.232 2.576.002.59.016 1.104.17 1.727.22.908.634 1.63 1.23 2.118.597.49 1.363.732 2.23.734 3.038.012 6.078.016 9.119 0 .327-.002.645-.127.848-.37.204-.241.287-.56.291-.914a1.732 1.732 0 00-.097-.625h.327c.335 0 .641-.11.852-.316.21-.206.317-.475.374-.754a1.783 1.783 0 00-.126-1.143 1.18 1.18 0 00.877-.521c.196-.306.257-.666.258-1.025.001-.375-.088-.738-.293-1.033a1.179 1.179 0 00-.958-.512h-.478c.108-.237.156-.505.155-.782-.003-.373-.098-.721-.316-.99a1.21 1.21 0 00-.943-.43c-2.273-.004-4.236.018-6.412.012l-.19-.001c.102-.104.202-.205.312-.314.337-.336.662-.652.83-.869.4-.516.46-1.215.123-1.729-.178-.272-.439-.456-.72-.494a.93.93 0 00-.148-.008zm.029.728l.022.001c.055.008.115.027.209.172.132.201.126.606-.09.884-.079.102-.431.465-.767.8-.337.334-.657.643-.815.836-.153.186-.096.338-.056.435.04.096.085.212.298.263.063.014.066.01.086.012l.066.003c2.429.027 4.986-.004 7.223-.003.194 0 .293.056.379.162.086.105.151.286.153.533 0 .257-.065.467-.155.59-.09.124-.183.182-.37.183-1.706-.001-3.411-.005-5.117-.009v.731c2.23.004 4.461.01 6.692.012.17 0 .265.06.361.2.096.138.164.364.163.615 0 .268-.058.501-.143.634-.085.132-.162.193-.385.195-2.32-.001-4.554-.006-6.688-.003v.73c1.905 0 3.809.003 5.713.001.194.005.316.09.416.26.102.173.151.442.093.728-.04.193-.102.313-.17.38-.067.065-.148.108-.343.108h-5.71l.002.734c1.445 0 2.89-.01 4.334-.001.162 0 .232.041.297.123.064.081.123.238.12.488-.003.244-.061.385-.12.455-.06.07-.127.11-.296.11-3.037.016-6.076.012-9.113 0-.735-.002-1.316-.196-1.77-.568-.454-.372-.793-.935-.986-1.728-.134-.546-.146-.978-.148-1.558-.003-.796-.018-1.664.199-2.354.222-.705.582-1.24 1.096-1.593.75-.515 4.14-2.866 5.079-3.474a.504.504 0 01.241-.087z"
  678. })));
  679. function _extends$v() { _extends$v = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$v.apply(this, arguments); }
  680. var MessageFlowIcon = (({
  681. styles = {},
  682. ...props
  683. }) => /*#__PURE__*/React.createElement("svg", _extends$v({
  684. xmlns: "http://www.w3.org/2000/svg",
  685. width: "32",
  686. height: "32"
  687. }, props), /*#__PURE__*/React.createElement("path", {
  688. d: "M4.073 26.607l1.295 1.296L1.325 32l-.662-.633L0 30.735l4.073-4.128zm6.953-7.046l1.296 1.296L1.325 32l7.555-7.656-1.295-1.296 1.455-1.474 1.986-2.013zM32 .06s-2.699 5.189-5.417 10.462l-.326.633c-1.14 2.214-2.265 4.407-3.176 6.2-1.228-1.222-2.449-2.452-3.676-3.675l-3.57 3.618-1.297-1.296 3.541-3.588c-.98-.964-1.932-1.958-2.923-2.91l-.753-.706c2.68-1.258 6.533-3.165 9.95-4.876l.617-.309C28.838 1.673 32 .06 32 .06zm-4.126 4.06l-.015.007-.115.057-.048.024-.115.057L17.7 9.172l5.017 4.948 5.157-10z"
  689. })));
  690. function _extends$u() { _extends$u = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$u.apply(this, arguments); }
  691. var ParticipantIcon = (({
  692. styles = {},
  693. ...props
  694. }) => /*#__PURE__*/React.createElement("svg", _extends$u({
  695. xmlns: "http://www.w3.org/2000/svg",
  696. width: "32",
  697. height: "32"
  698. }, props), /*#__PURE__*/React.createElement("path", {
  699. d: "M0 5v22.069h32V5H0zm30.276 1.684v18.82H6.62V6.684h23.655zm-28.62 0h3.31v18.82h-3.31V6.684z"
  700. })));
  701. function _extends$t() { _extends$t = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$t.apply(this, arguments); }
  702. var ProcessIcon = (({
  703. styles = {},
  704. ...props
  705. }) => /*#__PURE__*/React.createElement("svg", _extends$t({
  706. xmlns: "http://www.w3.org/2000/svg",
  707. width: "32",
  708. height: "32"
  709. }, props), /*#__PURE__*/React.createElement("path", {
  710. fillRule: "evenodd",
  711. d: "M16.177 0l.137.002c.452.009.9.037 1.342.082.346.036.62.303.68.646l.437 2.536c.055.319.296.57.608.655.986.269 1.923.653 2.796 1.14.28.155.624.145.885-.039l2.083-1.47a.775.775 0 01.937.022c.86.699 1.645 1.484 2.343 2.343.22.27.223.653.023.937l-1.439 2.038a.833.833 0 00-.031.896c.512.889.92 1.846 1.204 2.855a.833.833 0 00.653.601l2.435.42c.342.059.61.333.645.679a15.928 15.928 0 01.08 2.064l-.003.114c-.012.382-.038.76-.077 1.134a.775.775 0 01-.645.68l-2.396.412a.835.835 0 00-.656.61 12.511 12.511 0 01-1.2 2.917.832.832 0 00.034.892l1.396 1.978c.2.284.196.667-.023.936a16.104 16.104 0 01-2.343 2.343.775.775 0 01-.937.023l-1.99-1.404a.833.833 0 00-.88-.026c-.907.516-1.886.922-2.916 1.2a.833.833 0 00-.61.656l-.414 2.396a.775.775 0 01-.679.646 16.096 16.096 0 01-3.312 0 .775.775 0 01-.679-.646l-.423-2.452a.834.834 0 00-.598-.636 12.474 12.474 0 01-1.468-.514 12.49 12.49 0 01-1.417-.68.833.833 0 00-.878.03l-2.026 1.43a.775.775 0 01-.937-.023 16.069 16.069 0 01-2.342-2.342.774.774 0 01-.024-.936l1.402-1.986a.833.833 0 00.032-.896 12.507 12.507 0 01-1.214-2.911.833.833 0 00-.655-.606l-2.386-.412a.775.775 0 01-.646-.678 16.097 16.097 0 010-3.314.775.775 0 01.646-.678l2.386-.412a.833.833 0 00.655-.606 12.507 12.507 0 011.214-2.911.833.833 0 00-.032-.896L3.552 6.853a.774.774 0 01.023-.936 16.091 16.091 0 012.343-2.343.775.775 0 01.937-.023l2.03 1.433c.26.177.6.182.874.028.915-.512 1.88-.9 2.87-1.167a.833.833 0 00.612-.656l.424-2.46a.775.775 0 01.679-.645C14.845.032 15.348.004 15.85 0h.326zM16 6.4c-5.302 0-9.6 4.297-9.6 9.599 0 5.302 4.298 9.6 9.6 9.6s9.6-4.298 9.6-9.6-4.298-9.6-9.6-9.6zm-3 4.283c0-1.425 1.637-2.203 2.715-1.29l5.69 4.815c.794.672.794 1.91 0 2.583l-5.69 4.815c-1.078.913-2.715.134-2.715-1.29z"
  712. })));
  713. function _extends$s() { _extends$s = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$s.apply(this, arguments); }
  714. var ReceiveTaskIcon = (({
  715. styles = {},
  716. ...props
  717. }) => /*#__PURE__*/React.createElement("svg", _extends$s({
  718. xmlns: "http://www.w3.org/2000/svg",
  719. width: "32",
  720. height: "32"
  721. }, props), /*#__PURE__*/React.createElement("path", {
  722. d: "M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zM5.23 7.764v11.577h17.55V7.764H5.23zm1.816.758h13.917l-6.959 4.577-6.958-4.577zm-1.06.21l8.018 5.274 8.018-5.275v9.853H5.987V8.73z"
  723. })));
  724. function _extends$r() { _extends$r = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$r.apply(this, arguments); }
  725. var ScriptTaskIcon = (({
  726. styles = {},
  727. ...props
  728. }) => /*#__PURE__*/React.createElement("svg", _extends$r({
  729. xmlns: "http://www.w3.org/2000/svg",
  730. width: "32",
  731. height: "32"
  732. }, props), /*#__PURE__*/React.createElement("path", {
  733. d: "M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm2.99 3.077l-.077.045-.026.015c-1.09.646-1.84 1.239-2.336 1.818-.496.579-.735 1.162-.742 1.725-.014 1.119.812 1.958 1.544 2.708.732.75 1.385 1.456 1.446 2.041.032.298-.039.598-.364 1.008-.324.408-.911.897-1.85 1.445l-1.388.808h8.56l.101-.059c.996-.58 1.667-1.116 2.094-1.655.429-.54.603-1.107.547-1.638-.11-1.052-.967-1.818-1.688-2.556-.721-.739-1.306-1.436-1.298-2.092.004-.331.132-.7.535-1.171.402-.47 1.08-1.02 2.119-1.636l1.362-.806h-8.54zm.241.867h5.271a6.83 6.83 0 00-1.113 1.01c-.496.58-.736 1.163-.743 1.726-.014 1.119.812 1.958 1.544 2.708.732.75 1.385 1.456 1.446 2.041.032.298-.039.598-.364 1.008-.312.393-.872.862-1.753 1.386H8.728c.367-.286.658-.566.88-.847.43-.54.604-1.107.548-1.638-.11-1.052-.968-1.818-1.688-2.556-.721-.739-1.306-1.435-1.298-2.092.004-.331.132-.7.534-1.171.389-.454 1.04-.984 2.021-1.575zm-1.233 1.48v.4h4.12v-.4h-4.12zm-.154 2.158v.4H12.6v-.4H8.34zm1.931 2.158v.4h4.126v-.4H10.27zm.59 2.158v.4h4.276v-.4h-4.276z"
  734. })));
  735. function _extends$q() { _extends$q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$q.apply(this, arguments); }
  736. var SendTaskIcon = (({
  737. styles = {},
  738. ...props
  739. }) => /*#__PURE__*/React.createElement("svg", _extends$q({
  740. xmlns: "http://www.w3.org/2000/svg",
  741. width: "32",
  742. height: "32"
  743. }, props), /*#__PURE__*/React.createElement("path", {
  744. d: "M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm-1.38 3.16l8.332 4.717L21.78 8.16H5.114zm.021 1.745v9.309H21.8V9.905l-8.353 4.655-8.31-4.655z"
  745. })));
  746. function _extends$p() { _extends$p = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$p.apply(this, arguments); }
  747. var ServiceTaskIcon = (({
  748. styles = {},
  749. ...props
  750. }) => /*#__PURE__*/React.createElement("svg", _extends$p({
  751. xmlns: "http://www.w3.org/2000/svg",
  752. width: "32",
  753. height: "32"
  754. }, props), /*#__PURE__*/React.createElement("path", {
  755. d: "M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm1.22 1.681V7.84c-.329.093-.63.223-.914.382l-.83-.82-1.554 1.561.83.82c-.16.288-.285.594-.372.911l-1.177.002v2.2l1.189-.004c.109.431.345.819.58 1.165v-1.898l-1.038.004v-.737l1.034-.002.058-.294c.084-.429.252-.838.493-1.203l.165-.25-.727-.718.523-.526.728.719.247-.165c.379-.25.793-.417 1.206-.505l.291-.06-.002-1.01h.75L9.19 8.417H11.16c-.185-.221-.951-.508-1.237-.588L9.93 6.68H7.713zm2.078 2.105l.003 1.158a4.19 4.19 0 00-.915.383l-.83-.821-1.553 1.562.83.82c-.16.288-.286.593-.373.91l-1.176.003v2.2l1.188-.004c.094.326.224.624.383.905l-.85.847 1.57 1.543.847-.843c.29.161.599.286.919.373v1.198c.756.006 1.56.003 2.206.003V17.81a4.19 4.19 0 00.915-.383l.847.835 1.554-1.56-.848-.836c.16-.288.286-.594.373-.912l1.152-.007V12.75l-1.165.007a4.09 4.09 0 00-.382-.905l.805-.807-1.57-1.546-.804.806a4.16 4.16 0 00-.915-.372l.007-1.147H9.792zm.732.73h.751l-.006 1.005.297.058c.43.085.844.252 1.21.492l.25.162.701-.704.528.52-.702.704.169.25c.248.374.412.779.505 1.196l.061.292 1.016-.006v.737l-1.01.006-.058.292c-.085.43-.252.838-.494 1.205l-.165.25.744.733-.523.525-.743-.734-.248.165c-.378.247-.789.418-1.203.503l-.294.058v1.067h-.745v-1.059l-.295-.057a3.395 3.395 0 01-1.21-.492l-.248-.162-.747.743-.528-.52.747-.744-.17-.25a3.546 3.546 0 01-.506-1.196l-.06-.291-1.04.004v-.738l1.034-.002.058-.294c.085-.428.252-.837.493-1.203l.165-.25-.726-.718.522-.526.728.72.248-.166a3.546 3.546 0 011.205-.504l.292-.06-.003-1.01zm.388 2.685a1.65 1.65 0 00-1.645 1.645c0 .904.74 1.645 1.645 1.645a1.65 1.65 0 001.645-1.645 1.65 1.65 0 00-1.645-1.645zm0 .73a.91.91 0 01.915.915.91.91 0 01-.915.914.91.91 0 01-.915-.914.91.91 0 01.915-.915z"
  756. })));
  757. function _extends$o() { _extends$o = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$o.apply(this, arguments); }
  758. var StartEventCompensationIcon = (({
  759. styles = {},
  760. ...props
  761. }) => /*#__PURE__*/React.createElement("svg", _extends$o({
  762. xmlns: "http://www.w3.org/2000/svg",
  763. width: "32",
  764. height: "32"
  765. }, props), /*#__PURE__*/React.createElement("path", {
  766. d: "M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm-.566 9.03l-7.415 5.235 7.415 5.238v-5.062c2.386 1.689 4.775 3.375 7.163 5.062V10.761l-7.163 5.058v-5.058zm-.866 1.666v7.13L9.51 15.993l5.052-3.565zm7.166 0v7.137l-5.052-3.568 5.052-3.569z"
  767. })));
  768. function _extends$n() { _extends$n = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$n.apply(this, arguments); }
  769. var StartEventConditionIcon = (({
  770. styles = {},
  771. ...props
  772. }) => /*#__PURE__*/React.createElement("svg", _extends$n({
  773. xmlns: "http://www.w3.org/2000/svg",
  774. width: "32",
  775. height: "32"
  776. }, props), /*#__PURE__*/React.createElement("path", {
  777. d: "M16 0C7.174 0 0 7.174 0 16s7.174 16 16 16 16-7.174 16-16S24.826 0 16 0zm0 1.73c7.892 0 14.27 6.378 14.27 14.27 0 7.891-6.379 14.27-14.27 14.27S1.73 23.891 1.73 16C1.73 8.108 8.108 1.73 16 1.73zm-5.362 7.523v13.493h10.724V9.253H10.638zm.863.866h8.995V21.88H11.501V10.12zm.928 1.324v.863h7.139v-.863h-7.139zm0 2.605v.867h7.139v-.867h-7.139zm0 3.01v.864h7.139v-.863h-7.139zm0 2.72v.863h7.139v-.863h-7.139z"
  778. })));
  779. function _extends$m() { _extends$m = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$m.apply(this, arguments); }
  780. var StartEventErrorIcon = (({
  781. styles = {},
  782. ...props
  783. }) => /*#__PURE__*/React.createElement("svg", _extends$m({
  784. xmlns: "http://www.w3.org/2000/svg",
  785. width: "32",
  786. height: "32"
  787. }, props), /*#__PURE__*/React.createElement("path", {
  788. d: "M15.995.005C9.705-.08 3.643 3.968 1.257 9.78-1.235 15.49.06 22.581 4.42 27.034c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994.005zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626-4.814-3.838-6.538-10.939-4.067-16.57 2.14-5.205 7.515-8.774 13.147-8.708zm6.13 7.45l-3.635 7.37-4.52-5.88c-1.37 4.048-2.738 8.095-4.106 12.143l4.603-5.917 4.748 5.433 2.91-13.149zm-7.754 3.889l4.299 5.449 1.073-2.39-1.028 4.135-4.387-5.16-1.78 2.75 1.823-4.784z"
  789. })));
  790. function _extends$l() { _extends$l = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$l.apply(this, arguments); }
  791. var StartEventEscalationIcon = (({
  792. styles = {},
  793. ...props
  794. }) => /*#__PURE__*/React.createElement("svg", _extends$l({
  795. xmlns: "http://www.w3.org/2000/svg",
  796. width: "32",
  797. height: "32"
  798. }, props), /*#__PURE__*/React.createElement("path", {
  799. d: "M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm0 7.183c-1.674 4.658-2.736 9.509-4.41 14.166 1.535-1.526 2.874-3.236 4.41-4.763l4.41 4.763c-1.499-4.713-2.913-9.453-4.41-14.166zm.032 2.931c.822 2.588 1.598 5.19 2.42 7.778l-2.42-2.615c-.683.598-2.455 2.887-2.34 2.39.871-2.489 1.448-5.07 2.34-7.553z"
  800. })));
  801. function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
  802. var StartEventMessageIcon = (({
  803. styles = {},
  804. ...props
  805. }) => /*#__PURE__*/React.createElement("svg", _extends$k({
  806. xmlns: "http://www.w3.org/2000/svg",
  807. width: "32",
  808. height: "32"
  809. }, props), /*#__PURE__*/React.createElement("path", {
  810. d: "M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm-7.257 8.732v11.069h14.513v-11.07H8.738zm3.224 1.73h8.064c-1.428.878-2.857 2.807-4.285 3.018l-3.779-3.019zm9.562 1.017v6.593H10.465V13.21l5.528 4.417 5.53-4.418z"
  811. })));
  812. function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
  813. var StartEventMultipleIcon = (({
  814. styles = {},
  815. ...props
  816. }) => /*#__PURE__*/React.createElement("svg", _extends$j({
  817. xmlns: "http://www.w3.org/2000/svg",
  818. width: "32",
  819. height: "32"
  820. }, props), /*#__PURE__*/React.createElement("path", {
  821. d: "M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm0 6.328l-7.626 5.536c.97 2.986 1.942 5.971 2.913 8.957h9.426l2.912-8.957-7.625-5.536zm0 1.068l6.609 4.798-2.525 7.763H11.91l-2.524-7.763 6.609-4.798z"
  822. })));
  823. function _extends$i() { _extends$i = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
  824. var StartEventNonInterruptingConditionIcon = (({
  825. styles = {},
  826. ...props
  827. }) => /*#__PURE__*/React.createElement("svg", _extends$i({
  828. xmlns: "http://www.w3.org/2000/svg",
  829. width: "32",
  830. height: "32"
  831. }, props), /*#__PURE__*/React.createElement("path", {
  832. d: "M10.632 9.189V22.68h10.723V9.189H10.632zm.862.865h8.994v11.76H11.494v-11.76zm.928 1.324v.863h7.138v-.863h-7.138zm0 2.605v.866h7.138v-.866h-7.138zm0 3.01v.863h7.138v-.863h-7.138zm0 2.72v.862h7.138v-.863h-7.138zM16.12 0h-.232l-.22.004h-.012l-.221.006h-.012l-.22.01h-.012l-.22.013h-.012l-.22.016h-.012l-.22.019h-.005l-.006.001-.22.021h-.006l-.005.001-.22.025h-.011l-.22.028h-.005l-.006.002-.219.03h-.005l-.006.001-.218.033-.006.001-.006.001-.217.036-.006.001-.006.001-.217.039-.006.001-.006.001-.216.042-.006.001-.006.001-.215.045-.006.001-.006.002-.215.047-.006.002-.006.001-.214.05-.006.002-.006.002-.115.029-.152.053-.14.081-.122.106-.1.126-.075.143-.047.154-.018.16.012.16.042.156.07.145.095.13.118.11.137.086.15.059.158.03h.161l.132-.022.11-.028.202-.047.203-.046.208-.043.202-.039.206-.037.206-.034.205-.03.208-.03.205-.025.209-.023.208-.02.21-.017.209-.015.207-.011.21-.009.21-.006.207-.003h.21l.21.002.207.005.207.008.212.011.207.014.208.017.209.019.208.022.205.025.206.028.207.03.208.035.205.036.202.039.052.01.16.018.16-.012.156-.042.146-.07.13-.096.109-.119.085-.136.06-.15.03-.159v-.16l-.03-.16-.059-.15-.086-.136-.109-.118-.13-.096-.145-.07-.128-.038-.057-.011-.006-.002h-.006l-.216-.042-.006-.001-.006-.001-.217-.039H18.9l-.006-.002-.217-.035-.006-.001-.006-.001-.218-.032-.006-.001-.006-.001-.218-.03h-.006l-.006-.001-.219-.027h-.011l-.22-.024-.005-.001h-.006l-.22-.021h-.006l-.006-.001-.22-.017-.005-.001h-.006L17.06.03h-.012l-.22-.012h-.012l-.22-.01h-.012l-.22-.005h-.012L16.132 0h-.012zm8.715 2.783l-.157.034-.149.063-.134.089-.116.112-.092.132-.067.147-.038.157-.008.16.021.16.051.153.079.141.103.124.102.087.052.038h.001l.087.064v.001l.082.061.002.001.076.059h.001l.084.065.082.066.002.001.079.063.002.002.077.063.081.067.002.002.077.065.076.065.001.002.08.07.078.07h.002l.075.068.077.072.002.001.073.069.077.073.072.07.002.001.077.076.07.07v.001l.075.076.07.073.002.001.074.079.002.002.069.074.069.075.074.082.07.08.002.001.068.079h.001l.067.079.068.082.065.078.001.002.068.083.067.084.063.081.001.002.067.087.002.002.063.084.001.001.064.087.008.01.008.01.095.12.093.121.09.119.087.119.088.122.086.123.084.12.081.122.001.002.084.126.08.126.08.127.077.126.079.131.074.127.075.131.073.131.07.13.07.133.069.133.045.09.086.137.109.119.13.096.144.07.156.042.16.013.16-.017.155-.047.143-.075.126-.1.106-.121.082-.14.054-.151.025-.16-.005-.16-.035-.158-.05-.124-.048-.095-.002-.004-.002-.004-.073-.14-.002-.005-.002-.004-.074-.14-.002-.004-.002-.004-.076-.14-.002-.003-.002-.004-.077-.139-.003-.004-.002-.004-.078-.138-.003-.004-.002-.003-.08-.137-.002-.004-.003-.004-.081-.136-.002-.004-.003-.004-.083-.136-.002-.003-.002-.004-.085-.135-.002-.004-.003-.003-.085-.134-.003-.004-.002-.004-.087-.132-.003-.004-.003-.004-.088-.132-.003-.003-.002-.004-.09-.13-.003-.005-.003-.003-.091-.13-.003-.004-.002-.004-.093-.129-.003-.003-.003-.004-.094-.128-.003-.004-.003-.003-.095-.127-.003-.004-.003-.004-.097-.125-.003-.004-.003-.004-.09-.114-.06-.082-.003-.003-.002-.003-.069-.091-.002-.004-.002-.003-.07-.09-.003-.003-.002-.003-.07-.09-.003-.003-.002-.003-.071-.09-.002-.003-.003-.002-.072-.089-.002-.003-.002-.003-.073-.088-.002-.003-.002-.002-.074-.087-.002-.003-.002-.003-.074-.086-.003-.003-.002-.003-.074-.086-.003-.002-.002-.003-.075-.085-.003-.003-.002-.002-.076-.084-.002-.003-.003-.003-.076-.083-.002-.003-.003-.003-.077-.082-.002-.003-.003-.002-.077-.082-.003-.003-.003-.002-.078-.081-.002-.003-.003-.003-.078-.08-.003-.002-.003-.003-.079-.08-.002-.002-.003-.002-.08-.08-.002-.002-.003-.002-.08-.078-.003-.003-.003-.002-.08-.077-.003-.003-.003-.002-.082-.077-.002-.002-.003-.002-.082-.076-.003-.002-.002-.003-.083-.075-.003-.002-.002-.003-.084-.074-.002-.002-.003-.002-.084-.074-.003-.002-.002-.002-.085-.073-.002-.002-.003-.003-.085-.071-.003-.003-.002-.002-.086-.07-.003-.003-.002-.002-.086-.07-.003-.003-.003-.002-.086-.07-.003-.002-.003-.002-.087-.069-.002-.002-.003-.002-.088-.068-.002-.002-.003-.002-.088-.067-.003-.003-.003-.002-.088-.066-.003-.002-.003-.002-.089-.066-.003-.002-.003-.002-.057-.042-.14-.082-.15-.055-.16-.026-.16.004zM6.377 3.21l-.157.037-.148.066-.111.074-.007.006-.003.002-.003.002-.086.069-.003.002-.002.002-.086.07-.003.002-.002.002-.086.07-.002.003-.003.002-.085.071-.002.002-.003.003-.084.071-.003.003-.002.002-.084.072-.003.003-.002.002-.083.073-.003.003-.002.002-.083.074-.002.002-.003.003-.082.074-.003.003-.002.002-.081.076-.003.002-.003.002-.08.077-.003.002-.003.003-.08.076-.002.003-.003.002-.08.078-.002.002-.003.003-.079.078-.002.003-.003.002-.078.08-.003.002-.002.002-.078.08-.002.003-.003.002-.077.08-.003.004-.002.002-.077.081-.002.003-.003.003-.076.082-.002.002-.003.003-.075.082-.002.003-.003.003-.074.083-.003.003-.002.003-.074.084-.003.003-.002.002-.074.085-.002.003-.002.003-.073.085-.003.003-.002.003-.072.086-.002.003-.003.003-.071.087-.003.003-.002.002-.07.088-.003.003-.002.003-.07.088-.003.003-.002.003-.07.09-.002.002-.002.003-.069.09-.002.003-.003.003-.068.09-.002.003-.002.003-.067.092-.003.003-.002.003-.067.092-.002.003-.002.003-.066.092-.002.003-.002.004-.066.093-.002.003-.002.003-.065.094-.002.003-.002.004-.064.094-.002.003-.002.004-.063.095-.002.003-.002.003-.063.097-.002.003-.002.003-.046.073-.05.07-.003.002-.002.003-.067.093-.003.003-.002.003-.066.094-.002.003-.002.003-.066.094-.002.003-.002.003-.064.094-.002.004-.002.003-.064.094-.002.004-.002.003-.062.095-.002.003-.002.003-.062.096-.002.003-.002.003-.06.096-.003.003-.002.003-.06.096-.001.004-.002.003-.059.096-.002.004-.002.003-.058.097-.002.003-.001.003-.057.098-.002.003-.002.003-.056.098-.002.003-.002.003-.055.098-.002.004-.001.003-.055.098-.001.004-.002.003-.054.099-.001.003-.002.003-.052.1-.002.002-.002.004-.051.1-.002.002-.002.004-.05.1-.002.003-.002.003-.05.1v.003l-.002.004-.05.1v.003l-.002.004-.048.1-.002.004-.001.003-.047.101-.002.003-.001.004-.013.027-.052.152-.024.16.006.16.037.157.064.148.091.133.114.114.134.09.147.065.157.036.162.006.159-.024.152-.053.14-.08.122-.105.1-.126.066-.117.01-.023.044-.095.045-.095.002-.003.042-.087.048-.097.048-.095v-.001l.048-.092.001-.001.047-.09.05-.093.002-.002.049-.09.052-.092.001-.002.051-.089.001-.002.051-.087.053-.088.001-.002.055-.091.057-.091.057-.09.001-.002.057-.089.055-.083.001-.002.06-.09.06-.088.062-.089.001-.001.06-.084.063-.088.065-.089.017-.023.016-.025.06-.094.059-.09v-.002l.058-.086.057-.086.001-.001.062-.09.062-.088.001-.002.06-.085.002-.002.06-.082.063-.087.064-.084.002-.002.061-.08.065-.084.064-.08v-.001l.067-.083.067-.082.07-.083.069-.08.063-.074.074-.083.068-.077.002-.002.07-.076.07-.075.072-.077.001-.001.067-.07.076-.078.002-.002.07-.07.075-.075.002-.002.072-.07.075-.072.002-.002.073-.069.074-.068.001-.001.08-.073.076-.068.002-.002.072-.063v-.001l.078-.067.079-.068.002-.001.08-.068.002-.002.077-.063.082-.066.001-.001.075-.06.002-.002.006-.004.117-.111.094-.131.068-.146.04-.156.01-.161-.019-.16-.049-.154-.076-.141-.102-.125-.123-.105-.14-.079-.153-.052-.16-.023-.16.007zm24.596 11.088l-.156.04-.146.067-.131.094-.112.117-.087.135-.061.15-.033.157-.004.134.007.142.005.152.004.15.002.149v.153l.001.011v.015l.004.11.002.11v.002l.002.106v.321l-.003.102-.002.106-.004.107-.005.105-.006.106-.006.106-.008.106v.002l-.008.103v.002l-.01.1-.01.105-.01.105-.013.105-.012.099v.002l-.014.108-.014.1-.016.105-.016.103v.002l-.017.099-.018.104-.019.103v.002l-.019.097-.02.104-.022.103v.001l-.022.098-.023.103v.002l-.024.096-.025.103v.002l-.024.096-.027.102v.003l-.026.093v.001l-.029.103v.002l-.03.099-.028.097v.002l-.03.095-.03.096v.001l-.033.1-.031.095v.002l-.035.1v.003l-.034.094v.003l-.035.096v.001l-.034.09v.002l-.038.098-.036.093v.002l-.038.095-.079.194-.08.188-.085.189-.087.19-.09.184-.092.183-.095.184-.05.093-.064.148-.034.158-.005.16.026.16.054.151.082.14.106.12.127.1.143.075.154.046.16.017.161-.013.156-.042.144-.071.13-.096.109-.119.072-.112.053-.099.003-.005.003-.006.102-.195.003-.006.003-.006.098-.196.003-.006.003-.006.096-.197.002-.006.003-.006.093-.2.002-.006.003-.006.09-.2.002-.006.003-.007.086-.202.003-.006.002-.006.084-.203.002-.005.001-.005.04-.102.002-.003.001-.003.04-.103.001-.003.001-.003.04-.103v-.004l.001-.003.039-.103v-.003l.002-.003.037-.104.001-.003.001-.003.037-.104v-.004l.002-.003.035-.104.002-.003v-.004l.035-.104.002-.004v-.003l.034-.105.002-.003v-.003l.034-.105v-.004l.002-.003.032-.106.001-.003.001-.003.031-.106.001-.003.001-.004.031-.106.001-.003.001-.004.03-.106v-.003l.002-.004.028-.107.001-.003.001-.003.028-.107.001-.004.001-.003.027-.107.001-.004v-.003l.027-.108.001-.003v-.004l.026-.108.001-.003v-.004l.025-.108.001-.003v-.004l.025-.108v-.004l.001-.003.023-.109v-.003l.001-.004.022-.109v-.003l.002-.004.02-.109.001-.004v-.003l.02-.11.002-.003v-.004l.02-.11v-.007l.019-.11v-.003l.001-.004.017-.11v-.004l.001-.003.017-.11v-.008l.016-.11v-.004l.001-.004.015-.11v-.008l.015-.111v-.008l.013-.111v-.007l.013-.112v-.007l.011-.112v-.004l.001-.004.01-.112v-.007l.01-.112v-.008l.008-.112v-.008l.007-.113v-.007l.007-.113v-.008l.005-.113v-.007l.005-.114v-.007l.003-.114v-.007l.003-.114v-.129l.001-.114v-.13l-.003-.114v-.008l-.003-.115v-.007l-.003-.102v-.155l-.003-.158v-.01l-.004-.158v-.01l-.006-.158v-.01l-.007-.148-.023-.16-.051-.152-.08-.14-.103-.124-.125-.102-.142-.077-.153-.05-.16-.02-.161.01zm-30.213.66l-.157.034-.149.063-.134.09-.115.113-.092.132-.067.147-.037.156-.009.134.001.11V15.95l.006.22v.012l.01.22v.012l.012.22v.006l.001.006.015.22v.005l.001.006.018.22.001.006v.006l.022.219v.006l.001.006.024.219.001.006v.006l.028.218.001.006v.006l.031.218.001.006.001.006.033.218.001.006.001.005.037.218v.006l.002.005.04.217v.006l.001.006.043.216.001.006.001.006.046.216v.005l.002.006.048.215.002.006.001.006.051.214.002.006v.006l.055.214.002.005.001.006.057.213.002.006.001.005.06.213.002.005.001.006.063.212.002.005.001.006.066.21.002.006.002.006.068.21.002.005.002.005.07.21.003.005.002.005.074.208.002.006.002.005.077.207.002.006.002.005.08.206.002.005.002.006.082.204.002.006.002.005.086.204.002.005.002.006.088.202.002.005.003.006.09.2.003.006.002.005.094.2.002.006.003.005.096.199.002.005.003.005.03.062.086.137.11.118.128.097.145.07.156.043.16.013.16-.017.155-.047.143-.074.127-.1.106-.121.081-.14.055-.15.025-.16-.005-.161-.034-.158-.05-.124-.028-.055-.092-.19-.087-.188-.087-.192-.083-.19-.08-.193-.078-.194-.076-.196-.073-.195-.07-.197-.067-.198-.065-.199-.063-.2-.059-.2-.056-.2-.055-.204-.05-.201-.049-.202-.046-.205-.043-.206-.04-.203-.038-.207-.034-.204-.032-.207-.028-.205-.026-.207-.023-.208-.02-.207-.018-.207-.014-.208-.011-.207-.009-.208-.005-.207-.002-.104-.017-.16-.046-.155-.074-.143-.1-.126-.121-.107-.139-.081-.152-.055-.159-.025-.161.004zm24.585 11.83l-.156.039-.146.068-.11.076-.015.012-.163.129-.166.127-.168.125-.17.124-.17.12-.172.118-.173.115-.176.114-.177.111-.18.11-.178.105-.182.104-.182.101-.184.1-.184.095-.189.095-.186.09-.188.089-.19.086-.19.082-.193.081-.195.078-.191.074-.197.073-.195.07-.196.065-.198.064-.198.061-.2.058-.2.055-.2.052-.2.049-.151.035-.153.05-.141.078-.125.103-.103.124-.078.14-.05.154-.022.16.009.16.038.157.067.147.093.132.116.112.134.089.149.062.158.034.16.003.133-.02.158-.035.006-.002.006-.001.213-.052.006-.002.007-.001.212-.056.006-.001.006-.002.212-.058.006-.002.006-.002.211-.061.006-.002.006-.002.21-.064.006-.002.006-.002.21-.067.005-.002.006-.002.208-.07.006-.002.006-.003.207-.073.006-.002.006-.002.206-.077.006-.002.005-.002.206-.08.005-.001.006-.003.204-.082.006-.002.005-.002.203-.085.006-.003.005-.002.202-.088.006-.002.005-.003.2-.09.006-.003.006-.003.2-.093.005-.003.005-.002.198-.096.006-.003.005-.003.197-.099.005-.002.005-.003.196-.102.005-.002.005-.003.195-.105.005-.002.005-.003.193-.107.005-.003.005-.003.191-.11.005-.003.005-.003.19-.112.005-.003.005-.003.189-.115.005-.003.005-.003.187-.117.005-.003.004-.004.186-.12.005-.003.004-.003.184-.122.005-.003.005-.004.182-.125.004-.003.005-.003.18-.128.005-.003.005-.003.179-.13.004-.003.005-.004.177-.132.004-.004.005-.003.175-.135.005-.003.004-.004.173-.137.005-.003.004-.004.019-.015.115-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.052-.153-.079-.14-.103-.124-.125-.102-.142-.078-.153-.05-.16-.02-.16.01zm-19.17.054l-.153.051-.14.079-.124.103-.103.125-.077.141-.05.153-.02.16.009.161.04.156.067.147.093.131.095.094.047.04.005.004.005.004.17.14.005.004.005.004.172.137.004.004.005.003.086.067.003.002.003.002.087.067.003.002.003.002.088.066.002.003.003.002.089.065.002.002.003.002.09.065.002.002.003.002.09.064.002.002.003.002.09.063.003.002.003.002.09.063.003.002.003.002.092.062.002.002.003.002.092.061.003.002.003.002.092.06.003.003.003.001.093.06.003.002.003.002.093.06.003.001.003.002.094.058.003.002.003.002.095.058.003.001.003.002.095.057.003.002.003.002.095.056.003.002.003.002.096.055.004.002.003.001.096.055.003.002.003.002.098.053.003.002.003.002.097.053.004.002.003.001.098.053.003.001.003.002.099.052.003.001.003.002.1.05.003.002.003.002.1.05.003.002.003.001.1.05h.003l.004.003.1.048.004.001.003.002.101.048.003.001.004.002.101.046.004.002.003.001.102.046.004.002.003.001.103.045.003.002.003.001.103.045.004.001.003.002.104.043.003.001.004.002.104.042.003.002.004.001.104.042.004.001.003.002.105.04.004.002.003.001.106.04.003.002h.004l.106.04.004.001.003.002.107.038.003.001.004.001.107.038.003.001.004.001.107.037.004.001.004.001.108.036.003.001.004.001.108.035.004.001.003.001.11.034.003.001.004.001.109.033.004.002h.003l.11.033h.004l.003.002.11.031.004.001.004.001.084.023.081.028.004.001.003.001.109.037.003.001.004.001.109.036.003.001.004.001.109.035h.003l.004.002.11.033.003.001.003.001.11.033.003.001.004.001.109.031.004.002h.003l.11.031.003.001.004.001.11.03h.003l.003.001.11.029h.004l.003.002.11.027.003.001.004.001.11.027h.003l.004.001.004.001.16.022.16-.008.157-.038.147-.067.132-.092.112-.116.09-.134.062-.149.034-.157.004-.161-.025-.16-.055-.151-.082-.139-.107-.12-.127-.1-.143-.074-.124-.04h-.003l-.104-.025-.103-.026h-.002l-.095-.026h-.001l-.101-.027h-.002l-.1-.028h-.002l-.103-.03-.104-.032-.097-.03h-.002l-.103-.033-.102-.033-.101-.034-.106-.036-.027-.01-.027-.007-.107-.03-.104-.029-.104-.03h-.002l-.097-.03-.102-.032-.102-.032-.102-.034-.103-.035-.096-.034-.1-.036-.101-.037h-.002l-.094-.036-.096-.037-.097-.04h-.002l-.099-.04-.098-.042h-.002l-.092-.04-.097-.043-.095-.043-.097-.044h-.002l-.09-.043-.094-.045-.094-.046-.093-.047-.09-.046-.096-.05-.088-.047-.002-.001-.09-.049-.094-.052-.002-.002-.087-.049-.087-.05h-.002l-.088-.053h-.001l-.09-.055-.086-.052-.002-.001-.089-.055-.084-.054h-.002l-.09-.059h-.001l-.085-.056-.001-.001-.084-.056-.082-.056h-.001l-.086-.06-.082-.058H7.79l-.086-.062-.002-.002-.08-.058-.081-.06h-.001l-.085-.064-.002-.002-.076-.058-.002-.002-.082-.064-.161-.128-.162-.133-.04-.034-.132-.092-.147-.066-.157-.038-.16-.008-.16.022z"
  833. })));
  834. function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
  835. var StartEventNonInterruptingEscalationIcon = (({
  836. styles = {},
  837. ...props
  838. }) => /*#__PURE__*/React.createElement("svg", _extends$h({
  839. xmlns: "http://www.w3.org/2000/svg",
  840. width: "32",
  841. height: "32"
  842. }, props), /*#__PURE__*/React.createElement("path", {
  843. d: "M16 9.209c-1.674 4.655-2.735 9.504-4.408 14.16 1.534-1.526 2.873-3.235 4.407-4.761l4.408 4.76c-1.497-4.71-2.91-9.448-4.408-14.16zm.031 2.93c.822 2.586 1.598 5.187 2.42 7.774l-2.42-2.614c-.682.598-2.453 2.886-2.34 2.389.873-2.488 1.45-5.068 2.34-7.55zM16.132.364c-1.51.016-3.055.139-4.492.614-.854.442-.266 1.861.651 1.578 2.266-.58 4.656-.596 6.944-.144.935.063 1.21-1.391.318-1.674-1.118-.26-2.274-.361-3.42-.374zm8.865 2.777c-.931-.1-1.262 1.29-.425 1.666 1.863 1.364 3.222 3.298 4.322 5.296.617.737 1.875-.145 1.398-.979-1.184-2.275-2.808-4.384-4.923-5.866a.863.863 0 00-.372-.117zM6.55 3.564c-.734.078-1.196.762-1.735 1.206C3.552 6.02 2.55 7.511 1.681 9.053c-.31.533-.71 1.33-.03 1.767.615.432 1.282-.132 1.446-.742.796-1.475 1.746-2.89 2.934-4.08.43-.548 1.292-.822 1.34-1.595a.874.874 0 00-.822-.839zm24.582 11.078c-.771-.033-1.004.82-.873 1.437.13 2.395-.471 4.797-1.615 6.897-.33.876.984 1.559 1.512.785a14.276 14.276 0 001.761-8.54.865.865 0 00-.785-.579zm-30.195.666c-.774-.06-1.032.785-.905 1.407.117 2.41.732 4.81 1.858 6.945.528.774 1.84.09 1.51-.786A15.932 15.932 0 011.728 16a.876.876 0 00-.79-.692zm24.57 11.817c-.762.099-1.243.835-1.919 1.16-1.514 1.002-3.237 1.632-4.978 2.092-.864.423-.307 1.855.616 1.591 2.528-.578 4.93-1.75 6.913-3.421.469-.522.07-1.42-.631-1.422zm-19.16.042c-.845.001-1.12 1.228-.395 1.628 1.665 1.401 3.667 2.348 5.76 2.912.618.178 1.482.565 1.893-.177.355-.628-.226-1.297-.87-1.326-1.972-.515-3.912-1.285-5.5-2.594-.26-.213-.522-.472-.888-.443z"
  844. })));
  845. function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
  846. var StartEventNonInterruptingMessageIcon = (({
  847. styles = {},
  848. ...props
  849. }) => /*#__PURE__*/React.createElement("svg", _extends$g({
  850. xmlns: "http://www.w3.org/2000/svg",
  851. width: "32",
  852. height: "32"
  853. }, props), /*#__PURE__*/React.createElement("path", {
  854. d: "M8.746 10.393v11.064h14.506V10.393H8.746zm3.223 1.728h8.06c-1.428.879-2.856 2.807-4.283 3.018l-3.777-3.018zm9.557 1.018v6.59H10.473v-6.59l5.525 4.416 5.528-4.416zM16.132 0c-1.51.016-3.055.139-4.492.614-.854.442-.266 1.861.651 1.578 2.266-.58 4.656-.596 6.944-.144.935.063 1.21-1.391.318-1.674-1.118-.26-2.274-.361-3.42-.374zm8.865 2.777c-.931-.1-1.262 1.29-.425 1.666 1.863 1.364 3.222 3.298 4.322 5.296.617.737 1.875-.145 1.398-.979-1.184-2.275-2.808-4.384-4.923-5.866a.863.863 0 00-.372-.117zM6.55 3.2c-.734.078-1.196.762-1.735 1.206C3.552 5.656 2.55 7.147 1.681 8.69c-.31.533-.71 1.33-.03 1.767.615.432 1.282-.132 1.446-.742.796-1.475 1.746-2.89 2.934-4.08.43-.548 1.292-.822 1.34-1.595a.874.874 0 00-.822-.839zm24.582 11.078c-.771-.033-1.004.82-.873 1.437.13 2.395-.471 4.797-1.615 6.897-.33.876.984 1.559 1.512.785a14.276 14.276 0 001.761-8.54.865.865 0 00-.785-.579zm-30.195.666c-.774-.06-1.032.785-.905 1.407.117 2.41.732 4.81 1.858 6.945.528.774 1.84.09 1.51-.786a15.932 15.932 0 01-1.672-6.874.876.876 0 00-.79-.692zm24.57 11.817c-.762.099-1.243.835-1.919 1.16-1.514 1.002-3.237 1.632-4.978 2.092-.864.423-.307 1.855.616 1.591 2.528-.578 4.93-1.75 6.913-3.421.469-.522.07-1.42-.631-1.422zm-19.16.042c-.845.001-1.12 1.228-.395 1.628 1.665 1.401 3.667 2.348 5.76 2.912.618.178 1.482.565 1.893-.177.355-.628-.226-1.297-.87-1.326-1.972-.515-3.912-1.285-5.5-2.594-.26-.213-.522-.472-.888-.443z"
  855. })));
  856. function _extends$f() { _extends$f = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
  857. var StartEventNonInterruptingMultipleIcon = (({
  858. styles = {},
  859. ...props
  860. }) => /*#__PURE__*/React.createElement("svg", _extends$f({
  861. xmlns: "http://www.w3.org/2000/svg",
  862. width: "32",
  863. height: "32"
  864. }, props), /*#__PURE__*/React.createElement("path", {
  865. d: "M23.621 13.524L16 7.99l-7.622 5.534 2.911 8.952h9.422l2.911-8.952zm-1.016.33l-2.523 7.759h-8.165l-2.524-7.76L16 9.059l6.606 4.796zM16.132 0c-1.51.016-3.055.139-4.492.614-.854.442-.266 1.861.651 1.578 2.266-.58 4.656-.596 6.944-.144.935.063 1.21-1.391.318-1.674-1.118-.26-2.274-.361-3.42-.374zm8.865 2.777c-.931-.1-1.262 1.29-.425 1.666 1.863 1.364 3.222 3.298 4.322 5.296.617.737 1.875-.145 1.398-.979-1.184-2.275-2.808-4.384-4.923-5.866a.863.863 0 00-.372-.117zM6.55 3.2c-.734.078-1.196.762-1.735 1.206C3.552 5.656 2.55 7.147 1.681 8.69c-.31.533-.71 1.33-.03 1.767.615.432 1.282-.132 1.446-.742.796-1.475 1.746-2.89 2.934-4.08.43-.548 1.292-.822 1.34-1.595a.874.874 0 00-.822-.839zm24.582 11.078c-.771-.033-1.004.82-.873 1.437.13 2.395-.471 4.797-1.615 6.897-.33.876.984 1.559 1.512.785a14.276 14.276 0 001.761-8.54.865.865 0 00-.785-.579zm-30.195.666c-.774-.06-1.032.785-.905 1.407.117 2.41.732 4.81 1.858 6.945.528.774 1.84.09 1.51-.786a15.932 15.932 0 01-1.672-6.874.876.876 0 00-.79-.692zm24.57 11.817c-.762.099-1.243.835-1.919 1.16-1.514 1.002-3.237 1.632-4.978 2.092-.864.423-.307 1.855.616 1.591 2.528-.578 4.93-1.75 6.913-3.421.469-.522.07-1.42-.631-1.422zm-19.16.042c-.845.001-1.12 1.228-.395 1.628 1.665 1.401 3.667 2.348 5.76 2.912.618.178 1.482.565 1.893-.177.355-.628-.226-1.297-.87-1.326-1.972-.515-3.912-1.285-5.5-2.594-.26-.213-.522-.472-.888-.443z"
  866. })));
  867. function _extends$e() { _extends$e = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
  868. var StartEventNonInterruptingParallelMultipleIcon = (({
  869. styles = {},
  870. ...props
  871. }) => /*#__PURE__*/React.createElement("svg", _extends$e({
  872. xmlns: "http://www.w3.org/2000/svg",
  873. width: "32",
  874. height: "32"
  875. }, props), /*#__PURE__*/React.createElement("path", {
  876. d: "M13.503 9.016v4.428H9.075v4.98h4.428v4.428h4.98v-4.427h4.428v-4.981h-4.427V9.016h-4.981zm.83.83h3.32v4.428h4.428v3.32h-4.428v4.428h-3.32v-4.454H9.905v-3.294h4.428V9.846zM16.12 0h-.232l-.22.004h-.012l-.221.006h-.012l-.22.01h-.012l-.22.013h-.012l-.22.016h-.012l-.22.019h-.005l-.006.001-.22.021h-.006l-.005.001-.22.025h-.011l-.22.028h-.005l-.006.002-.219.03h-.005l-.006.001-.218.033-.006.001-.006.001-.217.036-.006.001-.006.001-.217.039-.006.001-.006.001-.216.042-.006.001-.006.001-.215.045-.006.001-.006.002-.215.047-.006.002-.006.001-.214.05-.006.002-.006.002-.115.029-.152.053-.14.081-.122.106-.1.126-.075.143-.047.154-.018.16.012.16.042.156.07.145.095.13.118.11.137.086.15.059.158.03h.161l.132-.022.11-.028.202-.047.203-.046.208-.043.202-.039.206-.037.206-.034.205-.03.208-.03.205-.025.209-.023.208-.02.21-.017.209-.015.207-.011.21-.009.21-.006.207-.003h.21l.21.002.207.005.207.008.212.011.207.014.208.017.209.019.208.022.205.025.206.028.207.03.208.035.205.036.202.039.052.01.16.018.16-.012.156-.042.146-.07.13-.096.109-.119.085-.136.06-.15.03-.159v-.16l-.03-.16-.059-.15-.086-.136-.109-.118-.13-.096-.145-.07-.128-.038-.057-.011-.006-.002h-.006l-.216-.042-.006-.001-.006-.001-.217-.039H18.9l-.006-.002-.217-.035-.006-.001-.006-.001-.218-.032-.006-.001-.006-.001-.218-.03h-.006l-.006-.001-.219-.027h-.011l-.22-.024-.005-.001h-.006l-.22-.021h-.006l-.006-.001-.22-.017-.005-.001h-.006L17.06.03h-.012l-.22-.012h-.012l-.22-.01h-.012l-.22-.005h-.012L16.132 0h-.012zm8.715 2.783l-.157.034-.149.063-.134.089-.116.112-.092.132-.067.147-.038.157-.008.16.021.16.051.153.079.141.103.124.102.087.052.038h.001l.087.064v.001l.082.061.002.001.076.059h.001l.084.065.082.066.002.001.079.063.002.002.077.063.081.067.002.002.077.065.076.065.001.002.08.07.078.07h.002l.075.068.077.072.002.001.073.069.077.073.072.07.002.001.077.076.07.07v.001l.075.076.07.073.002.001.074.079.002.002.069.074.069.075.074.082.07.08.002.001.068.079h.001l.067.079.068.082.065.078.001.002.068.083.067.084.063.081.001.002.067.087.002.002.063.084.001.001.064.087.008.01.008.01.095.12.093.121.09.119.087.119.088.122.086.123.084.12.081.122.001.002.084.126.08.126.08.127.077.126.079.131.074.127.075.131.073.131.07.13.07.133.069.133.045.09.086.137.109.119.13.096.144.07.156.042.16.013.16-.017.155-.047.143-.075.126-.1.106-.121.082-.14.054-.151.025-.16-.005-.16-.035-.158-.05-.124-.048-.095-.002-.004-.002-.004-.073-.14-.002-.005-.002-.004-.074-.14-.002-.004-.002-.004-.076-.14-.002-.003-.002-.004-.077-.139-.003-.004-.002-.004-.078-.138-.003-.004-.002-.003-.08-.137-.002-.004-.003-.004-.081-.136-.002-.004-.003-.004-.083-.136-.002-.003-.002-.004-.085-.135-.002-.004-.003-.003-.085-.134-.003-.004-.002-.004-.087-.132-.003-.004-.003-.004-.088-.132-.003-.003-.002-.004-.09-.13-.003-.005-.003-.003-.091-.13-.003-.004-.002-.004-.093-.129-.003-.003-.003-.004-.094-.128-.003-.004-.003-.003-.095-.127-.003-.004-.003-.004-.097-.125-.003-.004-.003-.004-.09-.114-.06-.082-.003-.003-.002-.003-.069-.091-.002-.004-.002-.003-.07-.09-.003-.003-.002-.003-.07-.09-.003-.003-.002-.003-.071-.09-.002-.003-.003-.002-.072-.089-.002-.003-.002-.003-.073-.088-.002-.003-.002-.002-.074-.087-.002-.003-.002-.003-.074-.086-.003-.003-.002-.003-.074-.086-.003-.002-.002-.003-.075-.085-.003-.003-.002-.002-.076-.084-.002-.003-.003-.003-.076-.083-.002-.003-.003-.003-.077-.082-.002-.003-.003-.002-.077-.082-.003-.003-.003-.002-.078-.081-.002-.003-.003-.003-.078-.08-.003-.002-.003-.003-.079-.08-.002-.002-.003-.002-.08-.08-.002-.002-.003-.002-.08-.078-.003-.003-.003-.002-.08-.077-.003-.003-.003-.002-.082-.077-.002-.002-.003-.002-.082-.076-.003-.002-.002-.003-.083-.075-.003-.002-.002-.003-.084-.074-.002-.002-.003-.002-.084-.074-.003-.002-.002-.002-.085-.073-.002-.002-.003-.003-.085-.071-.003-.003-.002-.002-.086-.07-.003-.003-.002-.002-.086-.07-.003-.003-.003-.002-.086-.07-.003-.002-.003-.002-.087-.069-.002-.002-.003-.002-.088-.068-.002-.002-.003-.002-.088-.067-.003-.003-.003-.002-.088-.066-.003-.002-.003-.002-.089-.066-.003-.002-.003-.002-.057-.042-.14-.082-.15-.055-.16-.026-.16.004zM6.377 3.21l-.157.037-.148.066-.111.074-.007.006-.003.002-.003.002-.086.069-.003.002-.002.002-.086.07-.003.002-.002.002-.086.07-.002.003-.003.002-.085.071-.002.002-.003.003-.084.071-.003.003-.002.002-.084.072-.003.003-.002.002-.083.073-.003.003-.002.002-.083.074-.002.002-.003.003-.082.074-.003.003-.002.002-.081.076-.003.002-.003.002-.08.077-.003.002-.003.003-.08.076-.002.003-.003.002-.08.078-.002.002-.003.003-.079.078-.002.003-.003.002-.078.08-.003.002-.002.002-.078.08-.002.003-.003.002-.077.08-.003.004-.002.002-.077.081-.002.003-.003.003-.076.082-.002.002-.003.003-.075.082-.002.003-.003.003-.074.083-.003.003-.002.003-.074.084-.003.003-.002.002-.074.085-.002.003-.002.003-.073.085-.003.003-.002.003-.072.086-.002.003-.003.003-.071.087-.003.003-.002.002-.07.088-.003.003-.002.003-.07.088-.003.003-.002.003-.07.09-.002.002-.002.003-.069.09-.002.003-.003.003-.068.09-.002.003-.002.003-.067.092-.003.003-.002.003-.067.092-.002.003-.002.003-.066.092-.002.003-.002.004-.066.093-.002.003-.002.003-.065.094-.002.003-.002.004-.064.094-.002.003-.002.004-.063.095-.002.003-.002.003-.063.097-.002.003-.002.003-.046.073-.05.07-.003.002-.002.003-.067.093-.003.003-.002.003-.066.094-.002.003-.002.003-.066.094-.002.003-.002.003-.064.094-.002.004-.002.003-.064.094-.002.004-.002.003-.062.095-.002.003-.002.003-.062.096-.002.003-.002.003-.06.096-.003.003-.002.003-.06.096-.001.004-.002.003-.059.096-.002.004-.002.003-.058.097-.002.003-.001.003-.057.098-.002.003-.002.003-.056.098-.002.003-.002.003-.055.098-.002.004-.001.003-.055.098-.001.004-.002.003-.054.099-.001.003-.002.003-.052.1-.002.002-.002.004-.051.1-.002.002-.002.004-.05.1-.002.003-.002.003-.05.1v.003l-.002.004-.05.1v.003l-.002.004-.048.1-.002.004-.001.003-.047.101-.002.003-.001.004-.013.027-.052.152-.024.16.006.16.037.157.064.148.091.133.114.114.134.09.147.065.157.036.162.006.159-.024.152-.053.14-.08.122-.105.1-.126.066-.117.01-.023.044-.095.045-.095.002-.003.042-.087.048-.097.048-.095v-.001l.048-.092.001-.001.047-.09.05-.093.002-.002.049-.09.052-.092.001-.002.051-.089.001-.002.051-.087.053-.088.001-.002.055-.091.057-.091.057-.09.001-.002.057-.089.055-.083.001-.002.06-.09.06-.088.062-.089.001-.001.06-.084.063-.088.065-.089.017-.023.016-.025.06-.094.059-.09v-.002l.058-.086.057-.086.001-.001.062-.09.062-.088.001-.002.06-.085.002-.002.06-.082.063-.087.064-.084.002-.002.061-.08.065-.084.064-.08v-.001l.067-.083.067-.082.07-.083.069-.08.063-.074.074-.083.068-.077.002-.002.07-.076.07-.075.072-.077.001-.001.067-.07.076-.078.002-.002.07-.07.075-.075.002-.002.072-.07.075-.072.002-.002.073-.069.074-.068.001-.001.08-.073.076-.068.002-.002.072-.063v-.001l.078-.067.079-.068.002-.001.08-.068.002-.002.077-.063.082-.066.001-.001.075-.06.002-.002.006-.004.117-.111.094-.131.068-.146.04-.156.01-.161-.019-.16-.049-.154-.076-.141-.102-.125-.123-.105-.14-.079-.153-.052-.16-.023-.16.007zm24.596 11.088l-.156.04-.146.067-.131.094-.112.117-.087.135-.061.15-.033.157-.004.134.007.142.005.152.004.15.002.149v.153l.001.011v.015l.004.11.002.11v.002l.002.106v.321l-.003.102-.002.106-.004.107-.005.105-.006.106-.006.106-.008.106v.002l-.008.103v.002l-.01.1-.01.105-.01.105-.013.105-.012.099v.002l-.014.108-.014.1-.016.105-.016.103v.002l-.017.099-.018.104-.019.103v.002l-.019.097-.02.104-.022.103v.001l-.022.098-.023.103v.002l-.024.096-.025.103v.002l-.024.096-.027.102v.003l-.026.093v.001l-.029.103v.002l-.03.099-.028.097v.002l-.03.095-.03.096v.001l-.033.1-.031.095v.002l-.035.1v.003l-.034.094v.003l-.035.096v.001l-.034.09v.002l-.038.098-.036.093v.002l-.038.095-.079.194-.08.188-.085.189-.087.19-.09.184-.092.183-.095.184-.05.093-.064.148-.034.158-.005.16.026.16.054.151.082.14.106.12.127.1.143.075.154.046.16.017.161-.013.156-.042.144-.071.13-.096.109-.119.072-.112.053-.099.003-.005.003-.006.102-.195.003-.006.003-.006.098-.196.003-.006.003-.006.096-.197.002-.006.003-.006.093-.2.002-.006.003-.006.09-.2.002-.006.003-.007.086-.202.003-.006.002-.006.084-.203.002-.005.001-.005.04-.102.002-.003.001-.003.04-.103.001-.003.001-.003.04-.103v-.004l.001-.003.039-.103v-.003l.002-.003.037-.104.001-.003.001-.003.037-.104v-.004l.002-.003.035-.104.002-.003v-.004l.035-.104.002-.004v-.003l.034-.105.002-.003v-.003l.034-.105v-.004l.002-.003.032-.106.001-.003.001-.003.031-.106.001-.003.001-.004.031-.106.001-.003.001-.004.03-.106v-.003l.002-.004.028-.107.001-.003.001-.003.028-.107.001-.004.001-.003.027-.107.001-.004v-.003l.027-.108.001-.003v-.004l.026-.108.001-.003v-.004l.025-.108.001-.003v-.004l.025-.108v-.004l.001-.003.023-.109v-.003l.001-.004.022-.109v-.003l.002-.004.02-.109.001-.004v-.003l.02-.11.002-.003v-.004l.02-.11v-.007l.019-.11v-.003l.001-.004.017-.11v-.004l.001-.003.017-.11v-.008l.016-.11v-.004l.001-.004.015-.11v-.008l.015-.111v-.008l.013-.111v-.007l.013-.112v-.007l.011-.112v-.004l.001-.004.01-.112v-.007l.01-.112v-.008l.008-.112v-.008l.007-.113v-.007l.007-.113v-.008l.005-.113v-.007l.005-.114v-.007l.003-.114v-.007l.003-.114v-.129l.001-.114v-.13l-.003-.114v-.008l-.003-.115v-.007l-.003-.102v-.155l-.003-.158v-.01l-.004-.158v-.01l-.006-.158v-.01l-.007-.148-.023-.16-.051-.152-.08-.14-.103-.124-.125-.102-.142-.077-.153-.05-.16-.02-.161.01zm-30.213.66l-.157.034-.149.063-.134.09-.115.113-.092.132-.067.147-.037.156-.009.134.001.11V15.95l.006.22v.012l.01.22v.012l.012.22v.006l.001.006.015.22v.005l.001.006.018.22.001.006v.006l.022.219v.006l.001.006.024.219.001.006v.006l.028.218.001.006v.006l.031.218.001.006.001.006.033.218.001.006.001.005.037.218v.006l.002.005.04.217v.006l.001.006.043.216.001.006.001.006.046.216v.005l.002.006.048.215.002.006.001.006.051.214.002.006v.006l.055.214.002.005.001.006.057.213.002.006.001.005.06.213.002.005.001.006.063.212.002.005.001.006.066.21.002.006.002.006.068.21.002.005.002.005.07.21.003.005.002.005.074.208.002.006.002.005.077.207.002.006.002.005.08.206.002.005.002.006.082.204.002.006.002.005.086.204.002.005.002.006.088.202.002.005.003.006.09.2.003.006.002.005.094.2.002.006.003.005.096.199.002.005.003.005.03.062.086.137.11.118.128.097.145.07.156.043.16.013.16-.017.155-.047.143-.074.127-.1.106-.121.081-.14.055-.15.025-.16-.005-.161-.034-.158-.05-.124-.028-.055-.092-.19-.087-.188-.087-.192-.083-.19-.08-.193-.078-.194-.076-.196-.073-.195-.07-.197-.067-.198-.065-.199-.063-.2-.059-.2-.056-.2-.055-.204-.05-.201-.049-.202-.046-.205-.043-.206-.04-.203-.038-.207-.034-.204-.032-.207-.028-.205-.026-.207-.023-.208-.02-.207-.018-.207-.014-.208-.011-.207-.009-.208-.005-.207-.002-.104-.017-.16-.046-.155-.074-.143-.1-.126-.121-.107-.139-.081-.152-.055-.159-.025-.161.004zm24.585 11.83l-.156.039-.146.068-.11.076-.015.012-.163.129-.166.127-.168.125-.17.124-.17.12-.172.118-.173.115-.176.114-.177.111-.18.11-.178.105-.182.104-.182.101-.184.1-.184.095-.189.095-.186.09-.188.089-.19.086-.19.082-.193.081-.195.078-.191.074-.197.073-.195.07-.196.065-.198.064-.198.061-.2.058-.2.055-.2.052-.2.049-.151.035-.153.05-.141.078-.125.103-.103.124-.078.14-.05.154-.022.16.009.16.038.157.067.147.093.132.116.112.134.089.149.062.158.034.16.003.133-.02.158-.035.006-.002.006-.001.213-.052.006-.002.007-.001.212-.056.006-.001.006-.002.212-.058.006-.002.006-.002.211-.061.006-.002.006-.002.21-.064.006-.002.006-.002.21-.067.005-.002.006-.002.208-.07.006-.002.006-.003.207-.073.006-.002.006-.002.206-.077.006-.002.005-.002.206-.08.005-.001.006-.003.204-.082.006-.002.005-.002.203-.085.006-.003.005-.002.202-.088.006-.002.005-.003.2-.09.006-.003.006-.003.2-.093.005-.003.005-.002.198-.096.006-.003.005-.003.197-.099.005-.002.005-.003.196-.102.005-.002.005-.003.195-.105.005-.002.005-.003.193-.107.005-.003.005-.003.191-.11.005-.003.005-.003.19-.112.005-.003.005-.003.189-.115.005-.003.005-.003.187-.117.005-.003.004-.004.186-.12.005-.003.004-.003.184-.122.005-.003.005-.004.182-.125.004-.003.005-.003.18-.128.005-.003.005-.003.179-.13.004-.003.005-.004.177-.132.004-.004.005-.003.175-.135.005-.003.004-.004.173-.137.005-.003.004-.004.019-.015.115-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.052-.153-.079-.14-.103-.124-.125-.102-.142-.078-.153-.05-.16-.02-.16.01zm-19.17.054l-.153.051-.14.079-.124.103-.103.125-.077.141-.05.153-.02.16.009.161.04.156.067.147.093.131.095.094.047.04.005.004.005.004.17.14.005.004.005.004.172.137.004.004.005.003.086.067.003.002.003.002.087.067.003.002.003.002.088.066.002.003.003.002.089.065.002.002.003.002.09.065.002.002.003.002.09.064.002.002.003.002.09.063.003.002.003.002.09.063.003.002.003.002.092.062.002.002.003.002.092.061.003.002.003.002.092.06.003.003.003.001.093.06.003.002.003.002.093.06.003.001.003.002.094.058.003.002.003.002.095.058.003.001.003.002.095.057.003.002.003.002.095.056.003.002.003.002.096.055.004.002.003.001.096.055.003.002.003.002.098.053.003.002.003.002.097.053.004.002.003.001.098.053.003.001.003.002.099.052.003.001.003.002.1.05.003.002.003.002.1.05.003.002.003.001.1.05h.003l.004.003.1.048.004.001.003.002.101.048.003.001.004.002.101.046.004.002.003.001.102.046.004.002.003.001.103.045.003.002.003.001.103.045.004.001.003.002.104.043.003.001.004.002.104.042.003.002.004.001.104.042.004.001.003.002.105.04.004.002.003.001.106.04.003.002h.004l.106.04.004.001.003.002.107.038.003.001.004.001.107.038.003.001.004.001.107.037.004.001.004.001.108.036.003.001.004.001.108.035.004.001.003.001.11.034.003.001.004.001.109.033.004.002h.003l.11.033h.004l.003.002.11.031.004.001.004.001.084.023.081.028.004.001.003.001.109.037.003.001.004.001.109.036.003.001.004.001.109.035h.003l.004.002.11.033.003.001.003.001.11.033.003.001.004.001.109.031.004.002h.003l.11.031.003.001.004.001.11.03h.003l.003.001.11.029h.004l.003.002.11.027.003.001.004.001.11.027h.003l.004.001.004.001.16.022.16-.008.157-.038.147-.067.132-.092.112-.116.09-.134.062-.149.034-.157.004-.161-.025-.16-.055-.151-.082-.139-.107-.12-.127-.1-.143-.074-.124-.04h-.003l-.104-.025-.103-.026h-.002l-.095-.026h-.001l-.101-.027h-.002l-.1-.028h-.002l-.103-.03-.104-.032-.097-.03h-.002l-.103-.033-.102-.033-.101-.034-.106-.036-.027-.01-.027-.007-.107-.03-.104-.029-.104-.03h-.002l-.097-.03-.102-.032-.102-.032-.102-.034-.103-.035-.096-.034-.1-.036-.101-.037h-.002l-.094-.036-.096-.037-.097-.04h-.002l-.099-.04-.098-.042h-.002l-.092-.04-.097-.043-.095-.043-.097-.044h-.002l-.09-.043-.094-.045-.094-.046-.093-.047-.09-.046-.096-.05-.088-.047-.002-.001-.09-.049-.094-.052-.002-.002-.087-.049-.087-.05h-.002l-.088-.053h-.001l-.09-.055-.086-.052-.002-.001-.089-.055-.084-.054h-.002l-.09-.059h-.001l-.085-.056-.001-.001-.084-.056-.082-.056h-.001l-.086-.06-.082-.058H7.79l-.086-.062-.002-.002-.08-.058-.081-.06h-.001l-.085-.064-.002-.002-.076-.058-.002-.002-.082-.064-.161-.128-.162-.133-.04-.034-.132-.092-.147-.066-.157-.038-.16-.008-.16.022z",
  877. opacity: ".98"
  878. })));
  879. function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
  880. var StartEventNonInterruptingSignalIcon = (({
  881. styles = {},
  882. ...props
  883. }) => /*#__PURE__*/React.createElement("svg", _extends$d({
  884. xmlns: "http://www.w3.org/2000/svg",
  885. width: "32",
  886. height: "32"
  887. }, props), /*#__PURE__*/React.createElement("path", {
  888. d: "M16.007 8.82L9.21 21.022h13.596L16.007 8.82zm0 1.775l5.328 9.563H10.68l5.327-9.563zM16.14.386c-1.571.236-4.195-.284-4.9 1.381.619 1.703 2.745.069 4.085.365 1.421-.13 2.84.2 4.235.259C21.27.784 18.19.344 17 .413a20.456 20.456 0 00-.86-.027zM25 3.162c-2.19.694.401 2.26 1.181 3.094 1.083 1.152 1.954 2.484 2.715 3.864 1.48 1.005 1.845-1.26.81-2.03-1.158-1.897-2.613-3.704-4.513-4.89l-.192-.038zm-18.438.423c-1.793.712-2.909 2.548-4.01 4.061-.773.814-2.211 3.653.005 3.211 1.123-1.469 1.87-3.306 3.267-4.614.664-.7 2.73-2.013.738-2.658zm24.57 11.072c-1.659.435-.468 2.667-.99 3.895a13.427 13.427 0 01-1.497 4.435c-.23 1.659 1.991 1.165 2.018-.199a14.277 14.277 0 001.254-7.552.865.865 0 00-.785-.579zm-30.18.666c-1.677.386-.633 2.667-.608 3.876.371 1.623.792 3.35 1.79 4.696 2.382.321.571-2.338.292-3.492a15.92 15.92 0 01-.684-4.39.877.877 0 00-.79-.69zm24.558 11.81c-1.755.865-3.303 2.266-5.274 2.765-1.162-.016-3.074 1.271-1.331 2.102 2.66-.447 5.163-1.733 7.236-3.445.472-.506.06-1.432-.631-1.421zm-19.151.043c-2.004.786.416 2.405 1.43 2.913 1.608.904 3.379 1.636 5.208 1.877 1.77-.804-.228-2.094-1.357-2.073-1.75-.537-3.403-1.396-4.798-2.586l-.227-.104-.256-.027z"
  889. })));
  890. function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
  891. var StartEventNonInterruptingTimerIcon = (({
  892. styles = {},
  893. ...props
  894. }) => /*#__PURE__*/React.createElement("svg", _extends$c({
  895. xmlns: "http://www.w3.org/2000/svg",
  896. width: "32",
  897. height: "32"
  898. }, props), /*#__PURE__*/React.createElement("path", {
  899. d: "M15.991 8.7c-3.018-.042-5.92 1.925-7.03 4.725-1.138 2.695-.509 6.011 1.537 8.102 1.99 2.142 5.267 2.93 8.013 1.927 2.877-.98 4.99-3.826 5.067-6.87.153-2.956-1.624-5.88-4.299-7.135a7.551 7.551 0 00-3.288-.75zm0 1.383c2.758-.052 5.372 1.972 6.014 4.654.704 2.578-.482 5.516-2.79 6.867-2.358 1.48-5.682 1.085-7.617-.919-2.043-1.97-2.407-5.38-.84-7.743 1.11-1.764 3.149-2.88 5.233-2.86zm1.962 1.764l-2.074 3.762c-.64.068-.793 1.04-.202 1.3.39.27.696-.18 1.052-.165h3.17v-.865h-3.182l1.993-3.614-.757-.418zM16.12.358h-.232l-.22.004h-.012l-.221.006h-.012l-.22.01h-.012l-.22.013h-.012l-.22.016h-.012l-.22.019h-.005l-.006.001-.22.021h-.006l-.005.001-.22.025h-.011l-.22.028h-.005l-.006.002-.219.03h-.005l-.006.001-.218.033-.006.001-.006.001-.217.036-.006.001-.006.001-.217.039-.006.001-.006.001-.216.042-.006.001-.006.001-.215.045-.006.001-.006.002-.215.047-.006.002-.006.001-.214.05-.006.002-.006.002-.115.029-.152.053-.14.081-.122.106-.1.126-.075.143-.047.154-.018.16.012.16.042.156.07.145.095.13.118.11.137.086.15.059.158.03h.161l.132-.022.11-.028.202-.047.203-.046.208-.043.202-.039.206-.037.206-.034.205-.03.208-.03.205-.025.209-.023.208-.02.21-.017.209-.015.207-.011.21-.009.21-.006.207-.003h.21l.21.002.207.005.207.008.212.011.207.014.208.017.209.019.208.022.205.025.206.028.207.03.208.035.205.036.202.039.052.01.16.018.16-.012.156-.042.146-.07.13-.096.109-.119.085-.136.06-.15.03-.159v-.16l-.03-.16-.059-.15-.086-.136L19.823.9l-.13-.096-.145-.07-.128-.038-.057-.011-.006-.002h-.006L19.135.64l-.006-.001-.006-.001-.217-.039H18.9l-.006-.002-.217-.035-.006-.001-.006-.001-.218-.032-.006-.001-.006-.001-.218-.03h-.006l-.006-.001-.219-.027h-.011l-.22-.024-.005-.001h-.006l-.22-.021h-.006L17.512.42l-.22-.017-.005-.001h-.006l-.22-.015h-.012l-.22-.012h-.012l-.22-.01h-.012l-.22-.005h-.012l-.221-.003h-.012zm8.715 2.783l-.157.034-.149.063-.134.089-.116.112-.092.132-.067.147-.038.157-.008.16.021.16.051.153.079.141.103.124.102.087.052.038h.001l.087.064v.001l.082.061.002.001.076.059h.001l.084.065.082.066.002.001.079.063.002.002.077.063.081.067.002.002.077.065.076.065.001.002.08.07.078.07h.002l.075.068.077.072.002.001.073.069.077.073.072.07.002.001.077.076.07.07v.001l.075.076.07.073.002.001.074.079.002.002.069.074.069.075.074.082.07.08.002.001.068.079h.001l.067.079.068.082.065.078.001.002.068.083.067.084.063.081.001.002.067.087.002.002.063.084.001.001.064.087.008.01.008.01.095.12.093.121.09.119.087.119.088.122.086.123.084.12.081.122.001.002.084.126.08.126.08.127.077.126.079.131.074.127.075.131.073.131.07.13.07.133.069.133.045.09.086.137.109.119.13.096.144.07.156.042.16.013.16-.017.155-.047.143-.075.126-.1.106-.121.082-.14.054-.151.025-.16-.005-.16-.035-.158-.05-.124-.048-.095-.002-.004-.002-.004-.073-.14-.002-.005-.002-.004-.074-.14-.002-.004-.002-.004-.076-.14-.002-.003-.002-.004-.077-.139-.003-.004-.002-.004-.078-.138-.003-.004-.002-.003-.08-.137-.002-.004-.003-.004-.081-.136-.002-.004-.003-.004-.083-.136-.002-.003-.002-.004-.085-.135-.002-.004-.003-.003-.085-.134-.003-.004-.002-.004-.087-.132-.003-.004-.003-.004-.088-.132-.003-.003-.002-.004-.09-.13-.003-.005-.003-.003-.091-.13-.003-.004-.002-.004-.093-.129-.003-.003-.003-.004-.094-.128-.003-.004-.003-.003-.095-.127-.003-.004-.003-.004-.097-.125-.003-.004-.003-.004-.09-.114-.06-.082-.003-.003-.002-.003-.069-.091-.002-.004-.002-.003-.07-.09-.003-.003-.002-.003-.07-.09-.003-.003-.002-.003-.071-.09-.002-.003-.003-.002-.072-.089-.002-.003-.002-.003-.073-.088-.002-.003-.002-.002-.074-.087-.002-.003-.002-.003-.074-.086-.003-.003-.002-.003-.074-.086-.003-.002-.002-.003-.075-.085-.003-.003-.002-.002-.076-.084-.002-.003-.003-.003-.076-.083-.002-.003-.003-.003-.077-.082-.002-.003-.003-.002-.077-.082-.003-.003-.003-.002-.078-.081-.002-.003-.003-.003-.078-.08-.003-.002-.003-.003-.079-.08-.002-.002-.003-.002-.08-.08-.002-.002-.003-.002-.08-.078-.003-.003-.003-.002-.08-.077-.003-.003-.003-.002-.082-.077-.002-.002-.003-.002-.082-.076-.003-.002-.002-.003-.083-.075-.003-.002-.002-.003-.084-.074-.002-.002-.003-.002-.084-.074-.003-.002-.002-.002-.085-.073-.002-.002-.003-.003-.085-.071-.003-.003-.002-.002-.086-.07-.003-.003-.002-.002-.086-.07-.003-.003-.003-.002-.086-.07-.003-.002-.003-.002-.087-.069-.002-.002-.003-.002-.088-.068-.002-.002-.003-.002-.088-.067-.003-.003-.003-.002-.088-.066-.003-.002-.003-.002-.089-.066-.003-.002-.003-.002-.057-.042-.14-.082-.15-.055-.16-.026-.16.004zm-18.458.426l-.157.037-.148.066-.111.074-.007.006-.003.002-.003.002-.086.069-.003.002-.002.002-.086.07-.003.002-.002.002-.086.07-.002.003-.003.002-.085.071-.002.002-.003.003-.084.071-.003.003-.002.002-.084.072-.003.003-.002.002-.083.073-.003.003-.002.002-.083.074-.002.002-.003.003-.082.074-.003.003-.002.002-.081.076-.003.002-.003.002-.08.077-.003.002-.003.003-.08.076-.002.003-.003.002-.08.078-.002.002-.003.003-.079.078-.002.003-.003.002-.078.08-.003.002-.002.002-.078.08-.002.003-.003.002-.077.08-.003.004-.002.002-.077.081-.002.003-.003.003-.076.082-.002.002-.003.003-.075.082-.002.003-.003.003-.074.083-.003.003-.002.003-.074.084-.003.003-.002.002-.074.085-.002.003-.002.003-.073.085-.003.003-.002.003-.072.086-.002.003-.003.003-.071.087-.003.003-.002.002-.07.088-.003.003-.002.003-.07.088-.003.003-.002.003-.07.09-.002.002-.002.003-.069.09-.002.003-.003.003-.068.09-.002.003-.002.003-.067.092-.003.003-.002.003-.067.092-.002.003-.002.003-.066.092-.002.003-.002.004-.066.093-.002.003-.002.003-.065.094-.002.003-.002.004-.064.094-.002.003-.002.004-.063.095-.002.003-.002.003-.063.097-.002.003-.002.003-.046.073-.05.07-.003.002-.002.003-.067.093-.003.003-.002.003-.066.094-.002.003-.002.003-.066.094-.002.003-.002.003-.064.094-.002.004-.002.003-.064.094-.002.004-.002.003-.062.095-.002.003-.002.003-.062.096-.002.003-.002.003-.06.096-.003.003-.002.003-.06.096-.001.004-.002.003-.059.096-.002.004-.002.003-.058.097-.002.003-.001.003-.057.098-.002.003-.002.003-.056.098-.002.003-.002.003-.055.098-.002.004-.001.003-.055.098-.001.004-.002.003-.054.099-.001.003-.002.003-.052.1-.002.002-.002.004-.051.1-.002.002-.002.004-.05.1-.002.003-.002.003-.05.1v.003l-.002.004-.05.1V9.5l-.002.004-.048.1-.002.004-.001.003-.047.101-.002.003-.001.004-.013.027-.052.152-.024.16.006.16.037.157.064.148.091.133.114.114.134.09.147.065.157.036.162.006.159-.024.152-.053.14-.08.122-.105.1-.126.066-.117.01-.023.044-.095.045-.095.002-.003.042-.087.048-.097.048-.095v-.001l.048-.092.001-.001.047-.09.05-.093.002-.002.049-.09.052-.092.001-.002.051-.089.001-.002.051-.087.053-.088.001-.002.055-.091.057-.091.057-.09.001-.002.057-.089.055-.083.001-.002.06-.09.06-.088.062-.089.001-.001.06-.084.063-.088.065-.089.017-.023.016-.025.06-.094.059-.09v-.002l.058-.086.057-.086.001-.001.062-.09.062-.088.001-.002.06-.085.002-.002.06-.082.063-.087.064-.084.002-.002.061-.08.065-.084.064-.08v-.001l.067-.083.067-.082.07-.083.069-.08.063-.074.074-.083.068-.077.002-.002.07-.076.07-.075.072-.077.001-.001.067-.07.076-.078.002-.002.07-.07.075-.075.002-.002.072-.07.075-.072.002-.002.073-.069.074-.068.001-.001.08-.073.076-.068.002-.002.072-.063v-.001l.078-.067.079-.068.002-.001.08-.068.002-.002.077-.063.082-.066.001-.001.075-.06.002-.002.006-.004.117-.111.094-.131.068-.146.04-.156.01-.161-.019-.16-.049-.154-.076-.141-.102-.125-.123-.105-.14-.079-.153-.052-.16-.023-.16.007zm24.596 11.088l-.156.04-.146.067-.131.094-.112.117-.087.135-.061.15-.033.157-.004.134.007.142.005.152.004.15.002.149v.153l.001.011v.015l.004.11.002.11v.002l.002.106v.321l-.003.102-.002.106-.004.107-.005.105-.006.106-.006.106-.008.106v.002l-.008.103v.002l-.01.1-.01.105-.01.105-.013.105-.012.099v.002l-.014.108-.014.1-.016.105-.016.103v.002l-.017.099-.018.104-.019.103v.002l-.019.097-.02.104-.022.103v.001l-.022.098-.023.103v.002l-.024.096-.025.103v.002l-.024.096-.027.102v.003l-.026.093v.001l-.029.103v.002l-.03.099-.028.097v.002l-.03.095-.03.096v.001l-.033.1-.031.095v.002l-.035.1v.003l-.034.094v.003l-.035.096v.001l-.034.09v.002l-.038.098-.036.093v.002l-.038.095-.079.194-.08.188-.085.189-.087.19-.09.184-.092.183-.095.184-.05.093-.064.148-.034.158-.005.16.026.16.054.151.082.14.106.12.127.1.143.075.154.046.16.017.161-.013.156-.042.144-.071.13-.096.109-.119.072-.112.053-.099.003-.005.003-.006.102-.195.003-.006.003-.006.098-.196.003-.006.003-.006.096-.197.002-.006.003-.006.093-.2.002-.006.003-.006.09-.2.002-.006.003-.007.086-.202.003-.006.002-.006.084-.203.002-.005.001-.005.04-.102.002-.003.001-.003.04-.103.001-.003.001-.003.04-.103v-.004l.001-.003.039-.103v-.003l.002-.003.037-.104.001-.003.001-.003.037-.104v-.004l.002-.003.035-.104.002-.003v-.004l.035-.104.002-.004v-.003l.034-.105.002-.003v-.003l.034-.105v-.004l.002-.003.032-.106.001-.003.001-.003.031-.106.001-.003.001-.004.031-.106.001-.003.001-.004.03-.106v-.003l.002-.004.028-.107.001-.003.001-.003.028-.107.001-.004.001-.003.027-.107.001-.004v-.003l.027-.108.001-.003v-.004l.026-.108.001-.003v-.004l.025-.108.001-.003v-.004l.025-.108v-.004l.001-.003.023-.109v-.003l.001-.004.022-.109v-.003l.002-.004.02-.109.001-.004v-.003l.02-.11.002-.003v-.004l.02-.11v-.007l.019-.11v-.003l.001-.004.017-.11v-.004l.001-.003.017-.11v-.008l.016-.11v-.004l.001-.004.015-.11v-.008l.015-.111v-.008l.013-.111v-.007l.013-.112v-.007l.011-.112v-.004l.001-.004.01-.112v-.007l.01-.112v-.008l.008-.112v-.008l.007-.113v-.007l.007-.113v-.008l.005-.113v-.007l.005-.114v-.007l.003-.114v-.007l.003-.114v-.129l.001-.114v-.13l-.003-.114V16.5l-.003-.115v-.007l-.003-.102v-.155l-.003-.158v-.01l-.004-.158v-.01l-.006-.158v-.01l-.007-.148-.023-.16-.051-.152-.08-.14-.103-.124-.125-.102-.142-.077-.153-.05-.16-.02-.161.01zm-30.213.66l-.157.034-.149.063-.134.09-.115.113-.092.132-.067.147-.037.156-.009.134.001.11V16.308l.006.22v.012l.01.22v.012l.012.22v.006l.001.006.015.22v.005l.001.006.018.22.001.006v.006l.022.219v.006l.001.006.024.219.001.006v.006l.028.218.001.006v.006l.031.218.001.006.001.006.033.218.001.006.001.005.037.218v.006l.002.005.04.217v.006l.001.006.043.216.001.006.001.006.046.216v.005l.002.006.048.215.002.006.001.006.051.214.002.006v.006l.055.214.002.005.001.006.057.213.002.006.001.005.06.213.002.005.001.006.063.212.002.005.001.006.066.21.002.006.002.006.068.21.002.005.002.005.07.21.003.005.002.005.074.208.002.006.002.005.077.207.002.006.002.005.08.206.002.005.002.006.082.204.002.006.002.005.086.204.002.005.002.006.088.202.002.005.003.006.09.2.003.006.002.005.094.2.002.006.003.005.096.199.002.005.003.005.03.062.086.137.11.118.128.097.145.07.156.043.16.013.16-.017.155-.047.143-.074.127-.1.106-.121.081-.14.055-.15.025-.16-.005-.161-.034-.158-.05-.124-.028-.055-.092-.19-.087-.188-.087-.192-.083-.19-.08-.193-.078-.194-.076-.196-.073-.195-.07-.197-.067-.198-.065-.199-.063-.2-.059-.2-.056-.2-.055-.204-.05-.201-.049-.202-.046-.205-.043-.206-.04-.203-.038-.207-.034-.204-.032-.207-.028-.205-.026-.207-.023-.208-.02-.207-.018-.207-.014-.208-.011-.207-.009-.208-.005-.207-.002-.104-.017-.16-.046-.155-.074-.143-.1-.126-.121-.107-.139-.081-.152-.055-.159-.025-.161.004zm24.585 11.83l-.156.039-.146.068-.11.076-.015.012-.163.129-.166.127-.168.125-.17.124-.17.12-.172.118-.173.115-.176.114-.177.111-.18.11-.178.105-.182.104-.182.101-.184.1-.184.095-.189.095-.186.09-.188.089-.19.086-.19.082-.193.081-.195.078-.191.074-.197.073-.195.07-.196.065-.198.064-.198.061-.2.058-.2.055-.2.052-.2.049-.151.035-.153.05-.141.078-.125.103-.103.124-.078.14-.05.154-.022.16.009.16.038.157.067.147.093.132.116.112.134.089.149.062.158.034.16.003.133-.02.158-.035.006-.002.006-.001.213-.052.006-.002.007-.001.212-.056.006-.001.006-.002.212-.058.006-.002.006-.002.211-.061.006-.002.006-.002.21-.064.006-.002.006-.002.21-.067.005-.002.006-.002.208-.07.006-.002.006-.003.207-.073.006-.002.006-.002.206-.077.006-.002.005-.002.206-.08.005-.001.006-.003.204-.082.006-.002.005-.002.203-.085.006-.003.005-.002.202-.088.006-.002.005-.003.2-.09.006-.003.006-.003.2-.093.005-.003.005-.002.198-.096.006-.003.005-.003.197-.099.005-.002.005-.003.196-.102.005-.002.005-.003.195-.105.005-.002.005-.003.193-.107.005-.003.005-.003.191-.11.005-.003.005-.003.19-.112.005-.003.005-.003.189-.115.005-.003.005-.003.187-.117.005-.003.004-.004.186-.12.005-.003.004-.003.184-.122.005-.003.005-.004.182-.125.004-.003.005-.003.18-.128.005-.003.005-.003.179-.13.004-.003.005-.004.177-.132.004-.004.005-.003.175-.135.005-.003.004-.004.173-.137.005-.003.004-.004.019-.015.115-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.052-.153-.079-.14-.103-.124-.125-.102-.142-.078-.153-.05-.16-.02-.16.01zm-19.17.054l-.153.051-.14.079-.124.103-.103.125-.077.141-.05.153-.02.16.009.161.04.156.067.147.093.131.095.094.047.04.005.004.005.004.17.14.005.004.005.004.172.137.004.004.005.003.086.067.003.002.003.002.087.067.003.002.003.002.088.066.002.003.003.002.089.065.002.002.003.002.09.065.002.002.003.002.09.064.002.002.003.002.09.063.003.002.003.002.09.063.003.002.003.002.092.062.002.002.003.002.092.061.003.002.003.002.092.06.003.003.003.001.093.06.003.002.003.002.093.06.003.001.003.002.094.058.003.002.003.002.095.058.003.001.003.002.095.057.003.002.003.002.095.056.003.002.003.002.096.055.004.002.003.001.096.055.003.002.003.002.098.053.003.002.003.002.097.053.004.002.003.001.098.053.003.001.003.002.099.052.003.001.003.002.1.05.003.002.003.002.1.05.003.002.003.001.1.05h.003l.004.003.1.048.004.001.003.002.101.048.003.001.004.002.101.046.004.002.003.001.102.046.004.002.003.001.103.045.003.002.003.001.103.045.004.001.003.002.104.043.003.001.004.002.104.042.003.002.004.001.104.042.004.001.003.002.105.04.004.002.003.001.106.04.003.002h.004l.106.04.004.001.003.002.107.038.003.001.004.001.107.038.003.001.004.001.107.037.004.001.004.001.108.036.003.001.004.001.108.035.004.001.003.001.11.034.003.001.004.001.109.033.004.002h.003l.11.033h.004l.003.002.11.031.004.001.004.001.084.023.081.028.004.001.003.001.109.037.003.001.004.001.109.036.003.001.004.001.109.035h.003l.004.002.11.033.003.001.003.001.11.033.003.001.004.001.109.031.004.002h.003l.11.031.003.001.004.001.11.03h.003l.003.001.11.029h.004l.003.002.11.027.003.001.004.001.11.027h.003l.004.001.004.001.16.022.16-.008.157-.038.147-.067.132-.092.112-.116.09-.134.062-.149.034-.157.004-.161-.025-.16-.055-.151-.082-.139-.107-.12-.127-.1-.143-.074-.124-.04h-.003l-.104-.025-.103-.026h-.002l-.095-.026h-.001l-.101-.027h-.002l-.1-.028h-.002l-.103-.03-.104-.032-.097-.03h-.002l-.103-.033-.102-.033-.101-.034-.106-.036-.027-.01-.027-.007-.107-.03-.104-.029-.104-.03h-.002l-.097-.03-.102-.032-.102-.032-.102-.034-.103-.035-.096-.034-.1-.036-.101-.037h-.002l-.094-.036-.096-.037-.097-.04h-.002l-.099-.04-.098-.042h-.002l-.092-.04-.097-.043-.095-.043-.097-.044h-.002l-.09-.043-.094-.045-.094-.046-.093-.047-.09-.046-.096-.05-.088-.047-.002-.001-.09-.049-.094-.052-.002-.002-.087-.049-.087-.05h-.002l-.088-.053h-.001l-.09-.055-.086-.052-.002-.001-.089-.055-.084-.054h-.002l-.09-.059h-.001l-.085-.056-.001-.001-.084-.056-.082-.056h-.001l-.086-.06-.082-.058H7.79l-.086-.062-.002-.002-.08-.058-.081-.06h-.001l-.085-.064-.002-.002-.076-.058-.002-.002-.082-.064-.161-.128-.162-.133-.04-.034-.132-.092-.147-.066-.157-.038-.16-.008-.16.022z"
  900. })));
  901. function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
  902. var StartEventNoneIcon = (({
  903. styles = {},
  904. ...props
  905. }) => /*#__PURE__*/React.createElement("svg", _extends$b({
  906. xmlns: "http://www.w3.org/2000/svg",
  907. width: "32",
  908. height: "32"
  909. }, props), /*#__PURE__*/React.createElement("path", {
  910. d: "M15.847.004C9.61-.016 3.624 4.014 1.257 9.78-1.235 15.49.06 22.581 4.42 27.034c4.193 4.513 11.101 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.268.403-6.228-3.26-12.441-8.87-15.154A15.924 15.924 0 0015.846.004zm.439 1.729c6.105.033 11.856 4.45 13.435 10.359 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.625-4.814-3.84-6.538-10.94-4.067-16.57 2.14-5.206 7.515-8.775 13.147-8.71.097-.001.194-.002.29-.001z"
  911. })));
  912. function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
  913. var StartEventParallelMultipleIcon = (({
  914. styles = {},
  915. ...props
  916. }) => /*#__PURE__*/React.createElement("svg", _extends$a({
  917. xmlns: "http://www.w3.org/2000/svg",
  918. width: "32",
  919. height: "32"
  920. }, props), /*#__PURE__*/React.createElement("path", {
  921. d: "M15.847 0C9.61-.02 3.624 4.01 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.101 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.268.403-6.228-3.26-12.441-8.87-15.154A15.924 15.924 0 0015.846 0zm.439 1.729c6.105.033 11.856 4.45 13.435 10.359 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.625C2.101 23.17.377 16.07 2.848 10.44c2.134-5.2 7.522-8.78 13.147-8.71.097-.001.194-.002.29-.001zM13.504 9.08v4.427H9.077v4.98h4.427v4.427h4.98v-4.427h4.428v-4.98h-4.427V9.08h-4.98zm.83.83h3.32v4.427h4.428v3.32h-4.427v4.427h-3.32v-4.453H9.906v-3.294h4.427V9.91z"
  922. })));
  923. function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
  924. var StartEventSignalIcon = (({
  925. styles = {},
  926. ...props
  927. }) => /*#__PURE__*/React.createElement("svg", _extends$9({
  928. xmlns: "http://www.w3.org/2000/svg",
  929. width: "32",
  930. height: "32"
  931. }, props), /*#__PURE__*/React.createElement("path", {
  932. d: "M15.995.005C9.705-.08 3.643 3.968 1.257 9.78-1.235 15.49.06 22.581 4.42 27.034c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994.005zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626-4.814-3.838-6.538-10.939-4.067-16.57 2.14-5.205 7.515-8.774 13.147-8.708zm0 6.776L9.19 20.724H22.8L15.995 8.511zm0 1.777l5.332 9.572H10.662l5.333-9.572z"
  933. })));
  934. function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
  935. var StartEventTimerIcon = (({
  936. styles = {},
  937. ...props
  938. }) => /*#__PURE__*/React.createElement("svg", _extends$8({
  939. xmlns: "http://www.w3.org/2000/svg",
  940. width: "32",
  941. height: "32"
  942. }, props), /*#__PURE__*/React.createElement("path", {
  943. d: "M16 0C7.174 0 0 7.174 0 16s7.174 16 16 16 16-7.174 16-16S24.826 0 16 0zm0 1.73c7.892 0 14.27 6.378 14.27 14.27 0 7.891-6.379 14.27-14.27 14.27S1.73 23.891 1.73 16C1.73 8.108 8.108 1.73 16 1.73zm-.143 6.676c-2.967.02-5.797 1.97-6.89 4.727-1.138 2.695-.51 6.012 1.537 8.102 1.99 2.142 5.268 2.932 8.014 1.928 2.878-.98 4.992-3.827 5.068-6.87.153-2.957-1.624-5.881-4.3-7.137a7.552 7.552 0 00-3.43-.75zm.27 1.383c2.71.012 5.254 2.015 5.886 4.656.704 2.577-.482 5.517-2.791 6.867-2.358 1.48-5.682 1.085-7.618-.918-2.043-1.971-2.407-5.381-.84-7.745 1.11-1.763 3.15-2.88 5.234-2.86h.13zm1.833 1.765l-2.074 3.763c-.64.068-.793 1.04-.202 1.3.39.27.696-.18 1.052-.165h3.17v-.865h-3.181l1.992-3.615-.757-.418z"
  944. })));
  945. function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
  946. var SubprocessCollapsedIcon = (({
  947. styles = {},
  948. ...props
  949. }) => /*#__PURE__*/React.createElement("svg", _extends$7({
  950. xmlns: "http://www.w3.org/2000/svg",
  951. width: "32",
  952. height: "32"
  953. }, props), /*#__PURE__*/React.createElement("path", {
  954. d: "M5.637 3A5.644 5.644 0 000 8.637v15.417a5.644 5.644 0 005.637 5.637h20.726A5.644 5.644 0 0032 24.054V8.637A5.644 5.644 0 0026.363 3H5.637zm0 1.778h20.726a3.83 3.83 0 013.859 3.859v15.417a3.83 3.83 0 01-3.859 3.858h-4.201V16.695H9.838v11.217H5.637a3.83 3.83 0 01-3.859-3.858V8.637a3.83 3.83 0 013.859-3.859zm5.33 13.046h10.066v10.065H10.967V17.824zm4.189 1.431V22.06H12.35v1.689h2.804V26.554h1.69V23.749h2.804V22.06h-2.804V19.255h-1.69z"
  955. })));
  956. function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
  957. var SubprocessExpandedIcon = (({
  958. styles = {},
  959. ...props
  960. }) => /*#__PURE__*/React.createElement("svg", _extends$6({
  961. xmlns: "http://www.w3.org/2000/svg",
  962. width: "32",
  963. height: "32"
  964. }, props), /*#__PURE__*/React.createElement("path", {
  965. d: "M5.636 3A5.642 5.642 0 000 8.636v15.418a5.643 5.643 0 005.636 5.636h20.728A5.643 5.643 0 0032 24.054V8.636A5.642 5.642 0 0026.364 3H5.636zm0 1.778h20.728a3.83 3.83 0 013.858 3.858v15.418a3.83 3.83 0 01-3.858 3.858h-4.203V16.723H9.84v11.189H5.636a3.83 3.83 0 01-3.858-3.858V8.636a3.83 3.83 0 013.858-3.858zm5.331 13.074h10.066v10.06H10.967v-10.06zm1.336 3.996v1.711h7.394v-1.71h-7.394z"
  966. })));
  967. function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
  968. var TaskNoneIcon = (({
  969. styles = {},
  970. ...props
  971. }) => /*#__PURE__*/React.createElement("svg", _extends$5({
  972. xmlns: "http://www.w3.org/2000/svg",
  973. width: "32",
  974. height: "32"
  975. }, props), /*#__PURE__*/React.createElement("path", {
  976. d: "M6.494 2.667C2.916 2.667 0 5.57 0 9.142v13.383C0 26.097 2.916 29 6.494 29h19.012C29.084 29 32 26.097 32 22.525V9.142c0-3.572-2.916-6.475-6.494-6.475H6.494zm0 2h19.012c2.509 0 4.494 1.98 4.494 4.475v13.383C30 25.02 28.015 27 25.506 27H6.494C3.985 27 2 25.02 2 22.525V9.142c0-2.495 1.985-4.475 4.494-4.475z"
  977. })));
  978. function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
  979. var TextAnnotationicon = (({
  980. styles = {},
  981. ...props
  982. }) => /*#__PURE__*/React.createElement("svg", _extends$4({
  983. xmlns: "http://www.w3.org/2000/svg",
  984. width: "32",
  985. height: "32"
  986. }, props), /*#__PURE__*/React.createElement("path", {
  987. d: "M22.087 0v31.647H32v-1.788h-8.125V1.788H32V0h-9.913zm-2.924 13.999l-2.737 2.167 2.167 2.738 2.738-2.167-2.168-2.738zm-5.475 4.335L10.95 20.5l2.168 2.738 2.737-2.168-2.167-2.737zm-5.475 4.335l-2.738 2.167 2.168 2.738 2.737-2.168-2.167-2.737zm-5.476 4.335L0 29.17l2.167 2.738 2.738-2.168-2.168-2.737z"
  988. })));
  989. function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
  990. var TransactionIcon = (({
  991. styles = {},
  992. ...props
  993. }) => /*#__PURE__*/React.createElement("svg", _extends$3({
  994. xmlns: "http://www.w3.org/2000/svg",
  995. width: "32",
  996. height: "32"
  997. }, props), /*#__PURE__*/React.createElement("path", {
  998. d: "M5.422 3A5.424 5.424 0 000 8.422v15.822a5.424 5.424 0 005.422 5.423h21.156A5.424 5.424 0 0032 24.244V8.422A5.424 5.424 0 0026.578 3H5.422zm0 1.244h21.156a4.155 4.155 0 014.178 4.178v15.822a4.155 4.155 0 01-4.178 4.178H5.422a4.155 4.155 0 01-4.178-4.178V8.422a4.155 4.155 0 014.178-4.178zm1.056 1.778a3.373 3.373 0 00-3.367 3.366v13.89a3.373 3.373 0 003.367 3.366h19.044a3.373 3.373 0 003.367-3.366V9.388a3.373 3.373 0 00-3.367-3.366H6.478zm0 1.245h19.044c1.187 0 2.122.935 2.122 2.121v13.89a2.104 2.104 0 01-2.122 2.122H6.478a2.104 2.104 0 01-2.122-2.122V9.388c0-1.186.935-2.121 2.122-2.121z"
  999. })));
  1000. function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
  1001. var UserTaskIcon = (({
  1002. styles = {},
  1003. ...props
  1004. }) => /*#__PURE__*/React.createElement("svg", _extends$2({
  1005. xmlns: "http://www.w3.org/2000/svg",
  1006. width: "32",
  1007. height: "32"
  1008. }, props), /*#__PURE__*/React.createElement("path", {
  1009. fillRule: "evenodd",
  1010. d: "M10.263 7.468c-1.698 0-2.912 1.305-2.915 2.791v.001c0 .45.121.924.311 1.352.138.309.308.593.516.82-1.235.423-2.683 1.119-3.414 2.49l-.04.075v4.44h11.083v-4.44l-.04-.074c-.72-1.352-2.136-2.047-3.36-2.471.597-.608.774-1.392.774-2.192-.004-1.487-1.218-2.792-2.915-2.792zm-1.16 1.583c.08 0 .165.003.26.008.757.045 1.012.181 1.207.31.196.13.334.252.851.268.404-.016.598-.087.737-.169.056-.033.103-.067.152-.1.128.275.197.578.198.893 0 .894-.154 1.52-.975 2.034l.08.604c.171.052.348.11.527.171.025.105.054.242.073.387.02.153.029.311.016.43a.422.422 0 01-.056.19c-.417.417-1.157.66-1.908.66-.75 0-1.49-.243-1.908-.66a.422.422 0 01-.056-.19 1.949 1.949 0 01.016-.43c.02-.146.049-.284.074-.388.177-.062.352-.118.521-.17l.048-.648a.616.616 0 00-.126-.118c-.183-.138-.405-.44-.562-.793-.157-.353-.254-.757-.254-1.08 0-.387.105-.758.297-1.079l.11-.04c.143-.046.339-.09.679-.09zm-1.448 4.304l-.002.014c-.025.185-.04.387-.018.589.021.202.074.42.248.593.595.594 1.494.857 2.382.857.889 0 1.788-.263 2.382-.857.174-.174.227-.391.249-.593a2.496 2.496 0 00-.018-.59l-.002-.01c.903.396 1.776.963 2.258 1.81v3.599H13.53v-2.538h-.67v2.538H7.651v-2.538h-.67v2.538H5.39v-3.599c.483-.849 1.359-1.416 2.264-1.813zM6.495 3C2.914 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.01C28.016 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5z"
  1011. })));
  1012. var iconsByType = {
  1013. 'Association': AssociationIcon,
  1014. 'BusinessRuleTask': BusinessRuleTaskIcon,
  1015. 'CallActivity': CallActivityIcon,
  1016. 'Collaboration': CollaborationIcon,
  1017. 'ConditionalFlow': ConditionalFlowIcon,
  1018. 'SequenceFlow': ConnectionIcon,
  1019. 'DataInput': DataInputIcon,
  1020. 'DataInputAssociation': DataInputOutputAssociationIcon,
  1021. 'DataOutput': DataOutputIcon,
  1022. 'DataOutputAssociation': DataInputOutputAssociationIcon,
  1023. 'DataObjectReference': DataObjectIcon,
  1024. 'DataStoreReference': DataStoreIcon,
  1025. 'DefaultFlow': DefaultFlowIcon,
  1026. 'CancelEndEvent': EndEventCancelIcon,
  1027. 'CompensateEndEvent': EndEventCompensationIcon,
  1028. 'ErrorEndEvent': EndEventErrorIcon,
  1029. 'EscalationEndEvent': EndEventEscalationIcon,
  1030. 'LinkEndEvent': EndEventLinkIcon,
  1031. 'MessageEndEvent': EndEventMessageIcon,
  1032. 'MultipleEndEvent': EndEventMultipleIcon,
  1033. 'EndEvent': EndEventNoneIcon,
  1034. 'SignalEndEvent': EndEventSignalIcon,
  1035. 'TerminateEndEvent': EndEventTerminateIcon,
  1036. 'EventSubProcess': EventSubProcessExpandedIcon,
  1037. 'ComplexGateway': GatewayComplexIcon,
  1038. 'EventBasedGateway': GatewayEventBasedIcon,
  1039. 'ExclusiveGateway': GatewayXorIcon,
  1040. 'Gateway': GatewayNoneIcon,
  1041. 'InclusiveGateway': GatewayOrIcon,
  1042. 'ParallelGateway': GatewayParallelIcon,
  1043. 'Group': GroupIcon,
  1044. 'CancelIntermediateCatchEvent': IntermediateEventCatchCancelIcon,
  1045. 'CompensateIntermediateCatchEvent': IntermediateEventCatchCompensationIcon,
  1046. 'ConditionalIntermediateCatchEvent': IntermediateEventCatchConditionIcon,
  1047. 'ErrorIntermediateCatchEvent': IntermediateEventCatchErrorIcon,
  1048. 'EscalationIntermediateCatchEvent': IntermediateEventCatchEscalationIcon,
  1049. 'LinkIntermediateCatchEvent': IntermediateEventCatchLinkIcon,
  1050. 'MessageIntermediateCatchEvent': IntermediateEventCatchMessageIcon,
  1051. 'MultipleIntermediateCatchEvent': IntermediateEventCatchMultipleIcon,
  1052. 'ConditionalIntermediateCatchEventNonInterrupting': IntermediateEventCatchNonInterruptingConditionIcon,
  1053. 'EscalationIntermediateCatchEventNonInterrupting': IntermediateEventCatchNonInterruptingEscalationIcon,
  1054. 'MessageIntermediateCatchEventNonInterrupting': IntermediateEventCatchNonInterruptingMessageIcon,
  1055. 'MultipleIntermediateCatchEventNonInterrupting': IntermediateEventCatchNonInterruptingMultipleIcon,
  1056. 'ParallelIntermediateCatchEventNonInterrupting': IntermediateEventCatchNonInterruptingParallelIcon,
  1057. 'SignalIntermediateCatchEventNonInterrupting': IntermediateEventCatchNonInterruptingSignalIcon,
  1058. 'TimerIntermediateCatchEventNonInterrupting': IntermediateEventCatchNonInterruptingTimerIcon,
  1059. 'ParallelMultipleIntermediateCatchEvent': IntermediateEventCatchParallelMultipleIcon,
  1060. 'SignalIntermediateCatchEvent': IntermediateEventCatchSignalIcon,
  1061. 'TimerIntermediateCatchEvent': IntermediateEventCatchTimerIcon,
  1062. 'IntermediateThrowEvent': IntermediateEventNoneIcon,
  1063. 'CompensateIntermediateThrowEvent': IntermediateEventThrowCompensationIcon,
  1064. 'EscalationIntermediateThrowEvent': IntermediateEventThrowEscalationIcon,
  1065. 'LinkIntermediateThrowEvent': IntermediateEventThrowLinkIcon,
  1066. 'MessageIntermediateThrowEvent': IntermediateEventThrowMessageIcon,
  1067. 'MultipleIntermediateThrowEvent': IntermediateEventThrowMultipleIcon,
  1068. 'SignalIntermediateThrowEvent': IntermediateEventThrowSignalIcon,
  1069. 'Lane': LaneIcon,
  1070. 'ManualTask': ManualTaskIcon,
  1071. 'MessageFlow': MessageFlowIcon,
  1072. 'Participant': ParticipantIcon,
  1073. 'Process': ProcessIcon,
  1074. 'ReceiveTask': ReceiveTaskIcon,
  1075. 'ScriptTask': ScriptTaskIcon,
  1076. 'SendTask': SendTaskIcon,
  1077. 'ServiceTask': ServiceTaskIcon,
  1078. 'CompensateStartEvent': StartEventCompensationIcon,
  1079. 'ConditionalStartEvent': StartEventConditionIcon,
  1080. 'ErrorStartEvent': StartEventErrorIcon,
  1081. 'EscalationStartEvent': StartEventEscalationIcon,
  1082. 'MessageStartEvent': StartEventMessageIcon,
  1083. 'MultipleStartEvent': StartEventMultipleIcon,
  1084. 'ConditionalStartEventNonInterrupting': StartEventNonInterruptingConditionIcon,
  1085. 'EscalationStartEventNonInterrupting': StartEventNonInterruptingEscalationIcon,
  1086. 'MessageStartEventNonInterrupting': StartEventNonInterruptingMessageIcon,
  1087. 'MultipleStartEventNonInterrupting': StartEventNonInterruptingMultipleIcon,
  1088. 'ParallelMultipleStartEventNonInterrupting': StartEventNonInterruptingParallelMultipleIcon,
  1089. 'SignalStartEventNonInterrupting': StartEventNonInterruptingSignalIcon,
  1090. 'TimerStartEventNonInterrupting': StartEventNonInterruptingTimerIcon,
  1091. 'CancelBoundaryEvent': IntermediateEventCatchCancelIcon,
  1092. 'CompensateBoundaryEvent': IntermediateEventCatchCompensationIcon,
  1093. 'ConditionalBoundaryEvent': IntermediateEventCatchConditionIcon,
  1094. 'ErrorBoundaryEvent': IntermediateEventCatchErrorIcon,
  1095. 'EscalationBoundaryEvent': IntermediateEventCatchEscalationIcon,
  1096. 'LinkBoundaryEvent': IntermediateEventCatchLinkIcon,
  1097. 'MessageBoundaryEvent': IntermediateEventCatchMessageIcon,
  1098. 'MultipleBoundaryEvent': IntermediateEventCatchMultipleIcon,
  1099. 'BoundaryEvent': IntermediateEventNoneIcon,
  1100. 'ConditionalBoundaryEventNonInterrupting': IntermediateEventCatchNonInterruptingConditionIcon,
  1101. 'EscalationBoundaryEventNonInterrupting': IntermediateEventCatchNonInterruptingEscalationIcon,
  1102. 'MessageBoundaryEventNonInterrupting': IntermediateEventCatchNonInterruptingMessageIcon,
  1103. 'MultipleBoundaryEventNonInterrupting': IntermediateEventCatchNonInterruptingMultipleIcon,
  1104. 'ParallelBoundaryEventNonInterrupting': IntermediateEventCatchNonInterruptingParallelIcon,
  1105. 'SignalBoundaryEventNonInterrupting': IntermediateEventCatchNonInterruptingSignalIcon,
  1106. 'TimerBoundaryEventNonInterrupting': IntermediateEventCatchNonInterruptingTimerIcon,
  1107. 'ParallelMultipleBoundaryEvent': IntermediateEventCatchParallelMultipleIcon,
  1108. 'SignalBoundaryEvent': IntermediateEventCatchSignalIcon,
  1109. 'TimerBoundaryEvent': IntermediateEventCatchTimerIcon,
  1110. 'StartEvent': StartEventNoneIcon,
  1111. 'ParallelMultipleStartEvent': StartEventParallelMultipleIcon,
  1112. 'SignalStartEvent': StartEventSignalIcon,
  1113. 'TimerStartEvent': StartEventTimerIcon,
  1114. 'CollapsedSubProcess': SubprocessCollapsedIcon,
  1115. 'CollapsedAdHocSubProcess': SubprocessCollapsedIcon,
  1116. 'ExpandedSubProcess': SubprocessExpandedIcon,
  1117. 'ExpandedAdHocSubProcess': SubprocessExpandedIcon,
  1118. 'Task': TaskNoneIcon,
  1119. 'TextAnnotation': TextAnnotationicon,
  1120. 'Transaction': TransactionIcon,
  1121. 'UserTask': UserTaskIcon
  1122. };
  1123. function getConcreteType(element) {
  1124. const {
  1125. type: elementType
  1126. } = element;
  1127. let type = getRawType(elementType);
  1128. // (1) event definition types
  1129. const eventDefinition = getEventDefinition$2(element);
  1130. if (eventDefinition) {
  1131. type = `${getEventDefinitionPrefix(eventDefinition)}${type}`;
  1132. // (1.1) interrupting / non interrupting
  1133. if (ModelUtil.is(element, 'bpmn:StartEvent') && !DiUtil.isInterrupting(element) || ModelUtil.is(element, 'bpmn:BoundaryEvent') && !isCancelActivity(element)) {
  1134. type = `${type}NonInterrupting`;
  1135. }
  1136. return type;
  1137. }
  1138. // (2) sub process types
  1139. if (ModelUtil.is(element, 'bpmn:SubProcess') && !ModelUtil.is(element, 'bpmn:Transaction')) {
  1140. if (DiUtil.isEventSubProcess(element)) {
  1141. type = `Event${type}`;
  1142. } else {
  1143. const expanded = DiUtil.isExpanded(element) && !isPlane(element);
  1144. type = `${expanded ? 'Expanded' : 'Collapsed'}${type}`;
  1145. }
  1146. }
  1147. // (3) conditional + default flows
  1148. if (isDefaultFlow(element)) {
  1149. type = 'DefaultFlow';
  1150. }
  1151. if (isConditionalFlow(element)) {
  1152. type = 'ConditionalFlow';
  1153. }
  1154. return type;
  1155. }
  1156. const PanelHeaderProvider = {
  1157. getDocumentationRef: element => {
  1158. const elementTemplates = getTemplatesService();
  1159. if (elementTemplates) {
  1160. return getTemplateDocumentation(element, elementTemplates);
  1161. }
  1162. },
  1163. getElementLabel: element => {
  1164. if (ModelUtil.is(element, 'bpmn:Process')) {
  1165. return ModelUtil.getBusinessObject(element).name;
  1166. }
  1167. return LabelUtil.getLabel(element);
  1168. },
  1169. getElementIcon: element => {
  1170. const concreteType = getConcreteType(element);
  1171. const elementTemplates = getTemplatesService();
  1172. if (elementTemplates) {
  1173. const template = getTemplate(element, elementTemplates);
  1174. if (template && template.icon) {
  1175. return () => jsxRuntime.jsx("img", {
  1176. class: "bio-properties-panel-header-template-icon",
  1177. width: "32",
  1178. height: "32",
  1179. src: template.icon.contents
  1180. });
  1181. }
  1182. }
  1183. return iconsByType[concreteType];
  1184. },
  1185. getTypeLabel: element => {
  1186. const elementTemplates = getTemplatesService();
  1187. if (elementTemplates) {
  1188. const template = getTemplate(element, elementTemplates);
  1189. if (template && template.name) {
  1190. return template.name;
  1191. }
  1192. }
  1193. const concreteType = getConcreteType(element);
  1194. return concreteType.replace(/(\B[A-Z])/g, ' $1').replace(/(\bNon Interrupting)/g, '($1)');
  1195. }
  1196. };
  1197. // helpers ///////////////////////
  1198. function isCancelActivity(element) {
  1199. const businessObject = ModelUtil.getBusinessObject(element);
  1200. return businessObject && businessObject.cancelActivity !== false;
  1201. }
  1202. function getEventDefinition$2(element) {
  1203. const businessObject = ModelUtil.getBusinessObject(element),
  1204. eventDefinitions = businessObject.eventDefinitions;
  1205. return eventDefinitions && eventDefinitions[0];
  1206. }
  1207. function getRawType(type) {
  1208. return type.split(':')[1];
  1209. }
  1210. function getEventDefinitionPrefix(eventDefinition) {
  1211. const rawType = getRawType(eventDefinition.$type);
  1212. return rawType.replace('EventDefinition', '');
  1213. }
  1214. function isDefaultFlow(element) {
  1215. const businessObject = ModelUtil.getBusinessObject(element);
  1216. const sourceBusinessObject = ModelUtil.getBusinessObject(element.source);
  1217. if (!ModelUtil.is(element, 'bpmn:SequenceFlow') || !sourceBusinessObject) {
  1218. return false;
  1219. }
  1220. return sourceBusinessObject.default && sourceBusinessObject.default === businessObject && (ModelUtil.is(sourceBusinessObject, 'bpmn:Gateway') || ModelUtil.is(sourceBusinessObject, 'bpmn:Activity'));
  1221. }
  1222. function isConditionalFlow(element) {
  1223. const businessObject = ModelUtil.getBusinessObject(element);
  1224. const sourceBusinessObject = ModelUtil.getBusinessObject(element.source);
  1225. if (!ModelUtil.is(element, 'bpmn:SequenceFlow') || !sourceBusinessObject) {
  1226. return false;
  1227. }
  1228. return businessObject.conditionExpression && ModelUtil.is(sourceBusinessObject, 'bpmn:Activity');
  1229. }
  1230. function isPlane(element) {
  1231. // Backwards compatibility for bpmn-js<8
  1232. const di = element && (element.di || ModelUtil.getBusinessObject(element).di);
  1233. return ModelUtil.is(di, 'bpmndi:BPMNPlane');
  1234. }
  1235. function getTemplatesService() {
  1236. // eslint-disable-next-line react-hooks/rules-of-hooks
  1237. return useService('elementTemplates', false);
  1238. }
  1239. function getTemplate(element, elementTemplates) {
  1240. return elementTemplates.get(element);
  1241. }
  1242. function getTemplateDocumentation(element, elementTemplates) {
  1243. const template = getTemplate(element, elementTemplates);
  1244. return template && template.documentationRef;
  1245. }
  1246. function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
  1247. var EmptyIcon = (({
  1248. styles = {},
  1249. ...props
  1250. }) => /*#__PURE__*/React.createElement("svg", _extends$1({
  1251. xmlns: "http://www.w3.org/2000/svg",
  1252. xmlnsXlink: "http://www.w3.org/1999/xlink",
  1253. width: "64",
  1254. height: "64"
  1255. }, props), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("rect", {
  1256. id: "a",
  1257. width: "57",
  1258. height: "47",
  1259. x: "3",
  1260. y: "8",
  1261. rx: "7"
  1262. }), /*#__PURE__*/React.createElement("mask", {
  1263. id: "b",
  1264. width: "57",
  1265. height: "47",
  1266. x: "0",
  1267. y: "0",
  1268. fill: "#fff",
  1269. maskContentUnits: "userSpaceOnUse",
  1270. maskUnits: "objectBoundingBox"
  1271. }, /*#__PURE__*/React.createElement("use", {
  1272. xlinkHref: "#a"
  1273. }))), /*#__PURE__*/React.createElement("g", {
  1274. fill: "none",
  1275. fillRule: "evenodd"
  1276. }, /*#__PURE__*/React.createElement("path", {
  1277. fill: "#818798",
  1278. d: "M52 11a5 5 0 015 5v31a5 5 0 01-5 5H11a5 5 0 01-5-5V16a5 5 0 015-5h41zm0 2H11a3 3 0 00-2.995 2.824L8 16v31a3 3 0 002.824 2.995L11 50h41a3 3 0 002.995-2.824L55 47V16a3 3 0 00-2.824-2.995L52 13z"
  1279. }), /*#__PURE__*/React.createElement("path", {
  1280. fill: "#D5D7DD",
  1281. d: "M16 24h31v6H16zM21 33h21v6H21z"
  1282. }), /*#__PURE__*/React.createElement("use", {
  1283. stroke: "#B9BCC6",
  1284. strokeDasharray: "5 2",
  1285. strokeWidth: "2",
  1286. mask: "url(#b)",
  1287. xlinkHref: "#a"
  1288. }))));
  1289. function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
  1290. var MultipleIcon = (({
  1291. styles = {},
  1292. ...props
  1293. }) => /*#__PURE__*/React.createElement("svg", _extends({
  1294. xmlns: "http://www.w3.org/2000/svg",
  1295. xmlnsXlink: "http://www.w3.org/1999/xlink",
  1296. width: "128",
  1297. height: "64"
  1298. }, props), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("path", {
  1299. id: "a",
  1300. d: "M9 9h110v47H9z"
  1301. }), /*#__PURE__*/React.createElement("mask", {
  1302. id: "b",
  1303. width: "110",
  1304. height: "47",
  1305. x: "0",
  1306. y: "0",
  1307. fill: "#fff",
  1308. maskContentUnits: "userSpaceOnUse",
  1309. maskUnits: "objectBoundingBox"
  1310. }, /*#__PURE__*/React.createElement("use", {
  1311. xlinkHref: "#a"
  1312. }))), /*#__PURE__*/React.createElement("g", {
  1313. fill: "none",
  1314. fillRule: "evenodd"
  1315. }, /*#__PURE__*/React.createElement("path", {
  1316. fill: "#818798",
  1317. d: "M25 20.272L37.728 33 25 45.728 12.272 33 25 20.272zm0 2.829L15.1 33l9.9 9.9 9.9-9.9-9.9-9.9z"
  1318. }), /*#__PURE__*/React.createElement("path", {
  1319. fill: "#D5D7DD",
  1320. d: "M17 47h16v6H17z"
  1321. }), /*#__PURE__*/React.createElement("path", {
  1322. fill: "#818798",
  1323. d: "M35 32h27v2H35z"
  1324. }), /*#__PURE__*/React.createElement("path", {
  1325. fill: "#818798",
  1326. d: "M60 30v6l6-3z"
  1327. }), /*#__PURE__*/React.createElement("path", {
  1328. fill: "#D5D7DD",
  1329. d: "M80 34h21v6H80z"
  1330. }), /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
  1331. fill: "#818798",
  1332. d: "M111 12a5 5 0 015 5v31a5 5 0 01-5 5H70a5 5 0 01-5-5V17a5 5 0 015-5h41zm0 2H70a3 3 0 00-3 3v31a3 3 0 003 3h41a3 3 0 003-3V17a3 3 0 00-3-3z"
  1333. }), /*#__PURE__*/React.createElement("path", {
  1334. fill: "#D5D7DD",
  1335. d: "M75 25h31v6H75z"
  1336. })), /*#__PURE__*/React.createElement("use", {
  1337. stroke: "#B9BCC6",
  1338. strokeDasharray: "5 2",
  1339. strokeWidth: "2",
  1340. mask: "url(#b)",
  1341. xlinkHref: "#a"
  1342. }))));
  1343. const PanelPlaceholderProvider = translate => {
  1344. if (!translate) translate = text => text;
  1345. return {
  1346. getEmpty: () => {
  1347. return {
  1348. text: translate('Select an element to edit its properties.'),
  1349. icon: EmptyIcon
  1350. };
  1351. },
  1352. getMultiple: () => {
  1353. return {
  1354. text: translate('Multiple elements are selected. Select a single element to edit its properties.'),
  1355. icon: MultipleIcon
  1356. };
  1357. }
  1358. };
  1359. };
  1360. function BpmnPropertiesPanel(props) {
  1361. const {
  1362. element,
  1363. injector,
  1364. getProviders,
  1365. layoutConfig: initialLayoutConfig,
  1366. descriptionConfig,
  1367. tooltipConfig,
  1368. feelPopupContainer
  1369. } = props;
  1370. const canvas = injector.get('canvas');
  1371. const elementRegistry = injector.get('elementRegistry');
  1372. const eventBus = injector.get('eventBus');
  1373. const translate = injector.get('translate');
  1374. const [state, setState] = hooks.useState({
  1375. selectedElement: element
  1376. });
  1377. const selectedElement = state.selectedElement;
  1378. /**
  1379. * @param {djs.model.Base | Array<djs.model.Base>} element
  1380. */
  1381. const _update = element => {
  1382. if (!element) {
  1383. return;
  1384. }
  1385. let newSelectedElement = element;
  1386. // handle labels
  1387. if (newSelectedElement && newSelectedElement.type === 'label') {
  1388. newSelectedElement = newSelectedElement.labelTarget;
  1389. }
  1390. setState({
  1391. ...state,
  1392. selectedElement: newSelectedElement
  1393. });
  1394. // notify interested parties on property panel updates
  1395. eventBus.fire('propertiesPanel.updated', {
  1396. element: newSelectedElement
  1397. });
  1398. };
  1399. // (2) react on element changes
  1400. // (2a) selection changed
  1401. hooks.useEffect(() => {
  1402. const onSelectionChanged = e => {
  1403. const {
  1404. newSelection = []
  1405. } = e;
  1406. if (newSelection.length > 1) {
  1407. return _update(newSelection);
  1408. }
  1409. const newElement = newSelection[0];
  1410. const rootElement = canvas.getRootElement();
  1411. if (isImplicitRoot$1(rootElement)) {
  1412. return;
  1413. }
  1414. _update(newElement || rootElement);
  1415. };
  1416. eventBus.on('selection.changed', onSelectionChanged);
  1417. return () => {
  1418. eventBus.off('selection.changed', onSelectionChanged);
  1419. };
  1420. }, []);
  1421. // (2b) selected element changed
  1422. hooks.useEffect(() => {
  1423. const onElementsChanged = e => {
  1424. const elements = e.elements;
  1425. const updatedElement = findElement(elements, selectedElement);
  1426. if (updatedElement && elementExists(updatedElement, elementRegistry)) {
  1427. _update(updatedElement);
  1428. }
  1429. };
  1430. eventBus.on('elements.changed', onElementsChanged);
  1431. return () => {
  1432. eventBus.off('elements.changed', onElementsChanged);
  1433. };
  1434. }, [selectedElement]);
  1435. // (2c) root element changed
  1436. hooks.useEffect(() => {
  1437. const onRootAdded = e => {
  1438. const element = e.element;
  1439. _update(element);
  1440. };
  1441. eventBus.on('root.added', onRootAdded);
  1442. return () => {
  1443. eventBus.off('root.added', onRootAdded);
  1444. };
  1445. }, [selectedElement]);
  1446. // (2d) provided entries changed
  1447. hooks.useEffect(() => {
  1448. const onProvidersChanged = () => {
  1449. _update(selectedElement);
  1450. };
  1451. eventBus.on('propertiesPanel.providersChanged', onProvidersChanged);
  1452. return () => {
  1453. eventBus.off('propertiesPanel.providersChanged', onProvidersChanged);
  1454. };
  1455. }, [selectedElement]);
  1456. // (2e) element templates changed
  1457. hooks.useEffect(() => {
  1458. const onTemplatesChanged = () => {
  1459. _update(selectedElement);
  1460. };
  1461. eventBus.on('elementTemplates.changed', onTemplatesChanged);
  1462. return () => {
  1463. eventBus.off('elementTemplates.changed', onTemplatesChanged);
  1464. };
  1465. }, [selectedElement]);
  1466. // (3) create properties panel context
  1467. const bpmnPropertiesPanelContext = {
  1468. selectedElement,
  1469. injector,
  1470. getService(type, strict) {
  1471. return injector.get(type, strict);
  1472. }
  1473. };
  1474. // (4) retrieve groups for selected element
  1475. const providers = getProviders(selectedElement);
  1476. const groups = hooks.useMemo(() => {
  1477. return minDash.reduce(providers, function (groups, provider) {
  1478. // do not collect groups for multi element state
  1479. if (minDash.isArray(selectedElement)) {
  1480. return [];
  1481. }
  1482. const updater = provider.getGroups(selectedElement);
  1483. return updater(groups);
  1484. }, []);
  1485. }, [providers, selectedElement]);
  1486. // (5) notify layout changes
  1487. const [layoutConfig, setLayoutConfig] = hooks.useState(initialLayoutConfig || {});
  1488. const onLayoutChanged = hooks.useCallback(newLayout => {
  1489. eventBus.fire('propertiesPanel.layoutChanged', {
  1490. layout: newLayout
  1491. });
  1492. }, [eventBus]);
  1493. // React to external layout changes
  1494. hooks.useEffect(() => {
  1495. const cb = e => {
  1496. const {
  1497. layout
  1498. } = e;
  1499. setLayoutConfig(layout);
  1500. };
  1501. eventBus.on('propertiesPanel.setLayout', cb);
  1502. return () => eventBus.off('propertiesPanel.setLayout', cb);
  1503. }, [eventBus, setLayoutConfig]);
  1504. // (6) notify description changes
  1505. const onDescriptionLoaded = description => {
  1506. eventBus.fire('propertiesPanel.descriptionLoaded', {
  1507. description
  1508. });
  1509. };
  1510. // (7) notify tooltip changes
  1511. const onTooltipLoaded = tooltip => {
  1512. eventBus.fire('propertiesPanel.tooltipLoaded', {
  1513. tooltip
  1514. });
  1515. };
  1516. return jsxRuntime.jsx(BpmnPropertiesPanelContext.Provider, {
  1517. value: bpmnPropertiesPanelContext,
  1518. children: jsxRuntime.jsx(propertiesPanel.PropertiesPanel, {
  1519. element: selectedElement,
  1520. headerProvider: PanelHeaderProvider,
  1521. placeholderProvider: PanelPlaceholderProvider(translate),
  1522. groups: groups,
  1523. layoutConfig: layoutConfig,
  1524. layoutChanged: onLayoutChanged,
  1525. descriptionConfig: descriptionConfig,
  1526. descriptionLoaded: onDescriptionLoaded,
  1527. tooltipConfig: tooltipConfig,
  1528. tooltipLoaded: onTooltipLoaded,
  1529. feelPopupContainer: feelPopupContainer,
  1530. eventBus: eventBus
  1531. })
  1532. });
  1533. }
  1534. // helpers //////////////////////////
  1535. function isImplicitRoot$1(element) {
  1536. // Backwards compatibility for diagram-js<7.4.0, see https://github.com/bpmn-io/bpmn-properties-panel/pull/102
  1537. return element && (element.isImplicit || element.id === '__implicitroot');
  1538. }
  1539. function findElement(elements, element) {
  1540. return minDash.find(elements, e => e === element);
  1541. }
  1542. function elementExists(element, elementRegistry) {
  1543. return element && elementRegistry.get(element.id);
  1544. }
  1545. const DEFAULT_PRIORITY = 1000;
  1546. /**
  1547. * @typedef { import('@bpmn-io/properties-panel').GroupDefinition } GroupDefinition
  1548. * @typedef { import('@bpmn-io/properties-panel').ListGroupDefinition } ListGroupDefinition
  1549. * @typedef { { getGroups: (ModdleElement) => (Array{GroupDefinition|ListGroupDefinition}) => Array{GroupDefinition|ListGroupDefinition}) } PropertiesProvider
  1550. */
  1551. class BpmnPropertiesPanelRenderer {
  1552. constructor(config, injector, eventBus) {
  1553. const {
  1554. parent,
  1555. layout: layoutConfig,
  1556. description: descriptionConfig,
  1557. tooltip: tooltipConfig,
  1558. feelPopupContainer
  1559. } = config || {};
  1560. this._eventBus = eventBus;
  1561. this._injector = injector;
  1562. this._layoutConfig = layoutConfig;
  1563. this._descriptionConfig = descriptionConfig;
  1564. this._tooltipConfig = tooltipConfig;
  1565. this._feelPopupContainer = feelPopupContainer;
  1566. this._container = minDom.domify('<div style="height: 100%" class="bio-properties-panel-container"></div>');
  1567. var commandStack = injector.get('commandStack', false);
  1568. commandStack && setupKeyboard(this._container, eventBus, commandStack);
  1569. eventBus.on('diagram.init', () => {
  1570. if (parent) {
  1571. this.attachTo(parent);
  1572. }
  1573. });
  1574. eventBus.on('diagram.destroy', () => {
  1575. this.detach();
  1576. });
  1577. eventBus.on('root.added', event => {
  1578. const {
  1579. element
  1580. } = event;
  1581. this._render(element);
  1582. });
  1583. }
  1584. /**
  1585. * Attach the properties panel to a parent node.
  1586. *
  1587. * @param {HTMLElement} container
  1588. */
  1589. attachTo(container) {
  1590. if (!container) {
  1591. throw new Error('container required');
  1592. }
  1593. // unwrap jQuery if provided
  1594. if (container.get && container.constructor.prototype.jquery) {
  1595. container = container.get(0);
  1596. }
  1597. if (typeof container === 'string') {
  1598. container = minDom.query(container);
  1599. }
  1600. // (1) detach from old parent
  1601. this.detach();
  1602. // (2) append to parent container
  1603. container.appendChild(this._container);
  1604. // (3) notify interested parties
  1605. this._eventBus.fire('propertiesPanel.attach');
  1606. }
  1607. /**
  1608. * Detach the properties panel from its parent node.
  1609. */
  1610. detach() {
  1611. const parentNode = this._container.parentNode;
  1612. if (parentNode) {
  1613. parentNode.removeChild(this._container);
  1614. this._eventBus.fire('propertiesPanel.detach');
  1615. }
  1616. }
  1617. /**
  1618. * Register a new properties provider to the properties panel.
  1619. *
  1620. * @param {Number} [priority]
  1621. * @param {PropertiesProvider} provider
  1622. */
  1623. registerProvider(priority, provider) {
  1624. if (!provider) {
  1625. provider = priority;
  1626. priority = DEFAULT_PRIORITY;
  1627. }
  1628. if (typeof provider.getGroups !== 'function') {
  1629. console.error('Properties provider does not implement #getGroups(element) API');
  1630. return;
  1631. }
  1632. this._eventBus.on('propertiesPanel.getProviders', priority, function (event) {
  1633. event.providers.push(provider);
  1634. });
  1635. this._eventBus.fire('propertiesPanel.providersChanged');
  1636. }
  1637. /**
  1638. * Updates the layout of the properties panel.
  1639. * @param {Object} layout
  1640. */
  1641. setLayout(layout) {
  1642. this._eventBus.fire('propertiesPanel.setLayout', {
  1643. layout
  1644. });
  1645. }
  1646. _getProviders() {
  1647. const event = this._eventBus.createEvent({
  1648. type: 'propertiesPanel.getProviders',
  1649. providers: []
  1650. });
  1651. this._eventBus.fire(event);
  1652. return event.providers;
  1653. }
  1654. _render(element) {
  1655. const canvas = this._injector.get('canvas');
  1656. if (!element) {
  1657. element = canvas.getRootElement();
  1658. }
  1659. if (isImplicitRoot(element)) {
  1660. return;
  1661. }
  1662. preact.render(jsxRuntime.jsx(BpmnPropertiesPanel, {
  1663. element: element,
  1664. injector: this._injector,
  1665. getProviders: this._getProviders.bind(this),
  1666. layoutConfig: this._layoutConfig,
  1667. descriptionConfig: this._descriptionConfig,
  1668. tooltipConfig: this._tooltipConfig,
  1669. feelPopupContainer: this._feelPopupContainer
  1670. }), this._container);
  1671. this._eventBus.fire('propertiesPanel.rendered');
  1672. }
  1673. _destroy() {
  1674. if (this._container) {
  1675. preact.render(null, this._container);
  1676. this._eventBus.fire('propertiesPanel.destroyed');
  1677. }
  1678. }
  1679. }
  1680. BpmnPropertiesPanelRenderer.$inject = ['config.propertiesPanel', 'injector', 'eventBus'];
  1681. // helpers ///////////////////////
  1682. function isImplicitRoot(element) {
  1683. // Backwards compatibility for diagram-js<7.4.0, see https://github.com/bpmn-io/bpmn-properties-panel/pull/102
  1684. return element && (element.isImplicit || element.id === '__implicitroot');
  1685. }
  1686. /**
  1687. * Setup keyboard bindings (undo, redo) on the given container.
  1688. *
  1689. * @param {Element} container
  1690. * @param {EventBus} eventBus
  1691. * @param {CommandStack} commandStack
  1692. */
  1693. function setupKeyboard(container, eventBus, commandStack) {
  1694. function cancel(event) {
  1695. event.preventDefault();
  1696. event.stopPropagation();
  1697. }
  1698. function handleKeys(event) {
  1699. if (KeyboardUtil.isUndo(event)) {
  1700. commandStack.undo();
  1701. return cancel(event);
  1702. }
  1703. if (KeyboardUtil.isRedo(event)) {
  1704. commandStack.redo();
  1705. return cancel(event);
  1706. }
  1707. }
  1708. eventBus.on('keyboard.bind', function () {
  1709. minDom.event.bind(container, 'keydown', handleKeys);
  1710. });
  1711. eventBus.on('keyboard.unbind', function () {
  1712. minDom.event.unbind(container, 'keydown', handleKeys);
  1713. });
  1714. }
  1715. /**
  1716. * A handler that combines and executes multiple commands.
  1717. *
  1718. * All updates are bundled on the command stack and executed in one step.
  1719. * This also makes it possible to revert the changes in one step.
  1720. *
  1721. * Example use case: remove the camunda:formKey attribute and in addition
  1722. * add all form fields needed for the camunda:formData property.
  1723. */
  1724. class MultiCommandHandler {
  1725. constructor(commandStack) {
  1726. this._commandStack = commandStack;
  1727. }
  1728. preExecute(context) {
  1729. const commandStack = this._commandStack;
  1730. minDash.forEach(context, function (command) {
  1731. commandStack.execute(command.cmd, command.context);
  1732. });
  1733. }
  1734. }
  1735. MultiCommandHandler.$inject = ['commandStack'];
  1736. const HANDLERS = {
  1737. 'properties-panel.multi-command-executor': MultiCommandHandler
  1738. };
  1739. function CommandInitializer(eventBus, commandStack) {
  1740. eventBus.on('diagram.init', function () {
  1741. minDash.forEach(HANDLERS, function (handler, id) {
  1742. commandStack.registerHandler(id, handler);
  1743. });
  1744. });
  1745. }
  1746. CommandInitializer.$inject = ['eventBus', 'commandStack'];
  1747. var Commands = {
  1748. __init__: [CommandInitializer]
  1749. };
  1750. var index$3 = {
  1751. __depends__: [Commands, propertiesPanel.DebounceInputModule, propertiesPanel.FeelPopupModule],
  1752. __init__: ['propertiesPanel'],
  1753. propertiesPanel: ['type', BpmnPropertiesPanelRenderer]
  1754. };
  1755. function ReferenceSelectEntry(props) {
  1756. const {
  1757. autoFocusEntry,
  1758. element,
  1759. getOptions
  1760. } = props;
  1761. const options = getOptions(element);
  1762. const prevOptions = propertiesPanel.usePrevious(options);
  1763. // auto focus specifc other entry when options changed
  1764. hooks.useEffect(() => {
  1765. if (autoFocusEntry && prevOptions && options.length > prevOptions.length) {
  1766. const entry = minDom.query(`[data-entry-id="${autoFocusEntry}"]`);
  1767. const focusableInput = minDom.query('.bio-properties-panel-input', entry);
  1768. if (focusableInput) {
  1769. focusableInput.select();
  1770. }
  1771. }
  1772. }, [options]);
  1773. return jsxRuntime.jsx(propertiesPanel.SelectEntry, {
  1774. ...props
  1775. });
  1776. }
  1777. function isErrorSupported(element) {
  1778. return ModelingUtil.isAny(element, ['bpmn:StartEvent', 'bpmn:BoundaryEvent', 'bpmn:EndEvent']) && !!getErrorEventDefinition(element);
  1779. }
  1780. function getErrorEventDefinition(element) {
  1781. return getEventDefinition$1(element, 'bpmn:ErrorEventDefinition');
  1782. }
  1783. function getTimerEventDefinition$1(element) {
  1784. return getEventDefinition$1(element, 'bpmn:TimerEventDefinition');
  1785. }
  1786. function getError(element) {
  1787. const errorEventDefinition = getErrorEventDefinition(element);
  1788. return errorEventDefinition && errorEventDefinition.get('errorRef');
  1789. }
  1790. function getEventDefinition$1(element, eventType) {
  1791. const businessObject = ModelUtil.getBusinessObject(element);
  1792. const eventDefinitions = businessObject.get('eventDefinitions') || [];
  1793. return minDash.find(eventDefinitions, function (definition) {
  1794. return ModelUtil.is(definition, eventType);
  1795. });
  1796. }
  1797. function isMessageSupported(element) {
  1798. return ModelUtil.is(element, 'bpmn:ReceiveTask') || ModelingUtil.isAny(element, ['bpmn:StartEvent', 'bpmn:EndEvent', 'bpmn:IntermediateThrowEvent', 'bpmn:BoundaryEvent', 'bpmn:IntermediateCatchEvent']) && !!getMessageEventDefinition(element);
  1799. }
  1800. function getMessageEventDefinition(element) {
  1801. if (ModelUtil.is(element, 'bpmn:ReceiveTask')) {
  1802. return ModelUtil.getBusinessObject(element);
  1803. }
  1804. return getEventDefinition$1(element, 'bpmn:MessageEventDefinition');
  1805. }
  1806. function getMessage(element) {
  1807. const messageEventDefinition = getMessageEventDefinition(element);
  1808. return messageEventDefinition && messageEventDefinition.get('messageRef');
  1809. }
  1810. function getLinkEventDefinition(element) {
  1811. return getEventDefinition$1(element, 'bpmn:LinkEventDefinition');
  1812. }
  1813. function getSignalEventDefinition$1(element) {
  1814. return getEventDefinition$1(element, 'bpmn:SignalEventDefinition');
  1815. }
  1816. function isLinkSupported(element) {
  1817. return ModelingUtil.isAny(element, ['bpmn:IntermediateThrowEvent', 'bpmn:IntermediateCatchEvent']) && !!getLinkEventDefinition(element);
  1818. }
  1819. function isSignalSupported$1(element) {
  1820. return ModelUtil.is(element, 'bpmn:Event') && !!getSignalEventDefinition$1(element);
  1821. }
  1822. function getSignal$1(element) {
  1823. const signalEventDefinition = getSignalEventDefinition$1(element);
  1824. return signalEventDefinition && signalEventDefinition.get('signalRef');
  1825. }
  1826. function getEscalationEventDefinition(element) {
  1827. return getEventDefinition$1(element, 'bpmn:EscalationEventDefinition');
  1828. }
  1829. function isEscalationSupported(element) {
  1830. return ModelUtil.is(element, 'bpmn:Event') && !!getEscalationEventDefinition(element);
  1831. }
  1832. function getEscalation(element) {
  1833. const escalationEventDefinition = getEscalationEventDefinition(element);
  1834. return escalationEventDefinition && escalationEventDefinition.get('escalationRef');
  1835. }
  1836. function isCompensationSupported(element) {
  1837. return ModelingUtil.isAny(element, ['bpmn:EndEvent', 'bpmn:IntermediateThrowEvent']) && !!getCompensateEventDefinition(element);
  1838. }
  1839. function getCompensateEventDefinition(element) {
  1840. return getEventDefinition$1(element, 'bpmn:CompensateEventDefinition');
  1841. }
  1842. function getCompensateActivity(element) {
  1843. const compensateEventDefinition = getCompensateEventDefinition(element);
  1844. return compensateEventDefinition && compensateEventDefinition.get('activityRef');
  1845. }
  1846. /**
  1847. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  1848. */
  1849. /**
  1850. * @returns {Array<Entry>} entries
  1851. */
  1852. function CompensationProps(props) {
  1853. const {
  1854. element
  1855. } = props;
  1856. if (!isCompensationSupported(element)) {
  1857. return [];
  1858. }
  1859. return [{
  1860. id: 'waitForCompletion',
  1861. component: WaitForCompletion,
  1862. isEdited: propertiesPanel.isCheckboxEntryEdited
  1863. }, {
  1864. id: 'activityRef',
  1865. component: ActivityRef,
  1866. isEdited: propertiesPanel.isSelectEntryEdited
  1867. }];
  1868. }
  1869. function WaitForCompletion(props) {
  1870. const {
  1871. element
  1872. } = props;
  1873. const commandStack = useService('commandStack');
  1874. const translate = useService('translate');
  1875. const compensateEventDefinition = getCompensateEventDefinition(element);
  1876. const getValue = () => {
  1877. return compensateEventDefinition.get('waitForCompletion');
  1878. };
  1879. const setValue = value => {
  1880. commandStack.execute('element.updateModdleProperties', {
  1881. element,
  1882. moddleElement: compensateEventDefinition,
  1883. properties: {
  1884. waitForCompletion: value
  1885. }
  1886. });
  1887. };
  1888. return propertiesPanel.CheckboxEntry({
  1889. element,
  1890. id: 'waitForCompletion',
  1891. label: translate('Wait for completion'),
  1892. getValue,
  1893. setValue
  1894. });
  1895. }
  1896. function ActivityRef(props) {
  1897. const {
  1898. element
  1899. } = props;
  1900. const commandStack = useService('commandStack');
  1901. const elementRegistry = useService('elementRegistry');
  1902. const translate = useService('translate');
  1903. const compensateEventDefinition = getCompensateEventDefinition(element);
  1904. const getValue = () => {
  1905. const activityRef = getCompensateActivity(element);
  1906. return activityRef && activityRef.get('id');
  1907. };
  1908. const setValue = value => {
  1909. // update (or remove) activityRef
  1910. const activityRef = value ? ModelUtil.getBusinessObject(elementRegistry.get(value)) : undefined;
  1911. commandStack.execute('element.updateModdleProperties', {
  1912. element,
  1913. moddleElement: compensateEventDefinition,
  1914. properties: {
  1915. activityRef
  1916. }
  1917. });
  1918. };
  1919. const getOptions = () => {
  1920. let options = [{
  1921. value: '',
  1922. label: translate('<none>')
  1923. }];
  1924. const activities = findActivityRefs(element);
  1925. sortByName$6(activities).forEach(function (activity) {
  1926. options.push({
  1927. value: activity.id,
  1928. label: createOptionLabel(activity)
  1929. });
  1930. });
  1931. return options;
  1932. };
  1933. return ReferenceSelectEntry({
  1934. element,
  1935. id: 'activityRef',
  1936. label: translate('Activity reference'),
  1937. getValue,
  1938. setValue,
  1939. getOptions
  1940. });
  1941. }
  1942. // helper /////////////////////////
  1943. function getFlowElements(element, type) {
  1944. const {
  1945. flowElements
  1946. } = element;
  1947. return flowElements.filter(function (flowElement) {
  1948. return ModelUtil.is(flowElement, type);
  1949. });
  1950. }
  1951. function getContainedActivities(element) {
  1952. return getFlowElements(element, 'bpmn:Activity');
  1953. }
  1954. function getContainedBoundaryEvents(element) {
  1955. return getFlowElements(element, 'bpmn:BoundaryEvent');
  1956. }
  1957. /**
  1958. * Checks whether an Activity is attaching a CompensateEvent of the parent container.
  1959. *
  1960. * @param {ModdleElement} activity
  1961. * @param {Array<ModdleElement>} boundaryEvents
  1962. * @returns {Boolean}
  1963. */
  1964. function hasCompensationEventAttached(activity, boundaryEvents) {
  1965. const {
  1966. id: activityId
  1967. } = activity;
  1968. return !!minDash.find(boundaryEvents, function (boundaryEvent) {
  1969. const {
  1970. attachedToRef
  1971. } = boundaryEvent;
  1972. const compensateEventDefinition = getCompensateEventDefinition(boundaryEvent);
  1973. return attachedToRef && compensateEventDefinition && attachedToRef.id === activityId;
  1974. });
  1975. }
  1976. /**
  1977. * Checks whether an Activity can be compensated. That's the case when it is
  1978. * a) a CallActivity
  1979. * b) a SubProcess, when it is not event based and not a compensation
  1980. * c) any other Activity, when it is attaching a CompensateEvent of the parent container
  1981. *
  1982. * @param {ModdleElement} activity
  1983. * @param {Array<ModdleElement>} boundaryEvents
  1984. * @returns {Boolean}
  1985. */
  1986. function canBeCompensated(activity, boundaryEvents) {
  1987. return ModelUtil.is(activity, 'bpmn:CallActivity') || ModelUtil.is(activity, 'bpmn:SubProcess') && !activity.triggeredByEvent && !activity.isForCompensation || hasCompensationEventAttached(activity, boundaryEvents);
  1988. }
  1989. function getActivitiesForCompensation(element) {
  1990. const activities = getContainedActivities(element);
  1991. const boundaryEvents = getContainedBoundaryEvents(element);
  1992. return activities.filter(function (activity) {
  1993. return canBeCompensated(activity, boundaryEvents);
  1994. });
  1995. }
  1996. /**
  1997. * Retrieves all possible activities to reference for a Compensation.
  1998. *
  1999. * @param {djs.model.Base} element
  2000. * @returns {Array<ModdleElement>}
  2001. */
  2002. function findActivityRefs(element) {
  2003. const businessObject = ModelUtil.getBusinessObject(element);
  2004. let parent = businessObject.$parent;
  2005. // (1) get all activities in parent container
  2006. let activities = getActivitiesForCompensation(parent);
  2007. // (2) if throwing compensation event is inside an EventSubProcess,
  2008. // also get all activities outside of the event sub process
  2009. if (ModelUtil.is(parent, 'bpmn:SubProcess') && parent.triggeredByEvent) {
  2010. parent = parent.$parent;
  2011. if (parent) {
  2012. activities = [...activities, ...getActivitiesForCompensation(parent)];
  2013. }
  2014. }
  2015. return activities;
  2016. }
  2017. /**
  2018. * Retrieves an option label in the form
  2019. * a) with name: "my Task (id=Task_1)"
  2020. * b) without name: "(id=Task_1)"
  2021. *
  2022. * @param {ModdleElement} activity
  2023. * @returns {String}
  2024. */
  2025. function createOptionLabel(activity) {
  2026. const {
  2027. id,
  2028. name
  2029. } = activity;
  2030. return `${name ? name + ' ' : ''}(id=${id})`;
  2031. }
  2032. function sortByName$6(elements) {
  2033. return minDash.sortBy(elements, e => (e.name || '').toLowerCase());
  2034. }
  2035. const DOCUMENTATION_TEXT_FORMAT = 'text/plain';
  2036. /**
  2037. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  2038. */
  2039. /**
  2040. * @returns {Array<Entry>} entries
  2041. */
  2042. function DocumentationProps(props) {
  2043. const {
  2044. element
  2045. } = props;
  2046. const entries = [{
  2047. id: 'documentation',
  2048. component: ElementDocumentationProperty,
  2049. isEdited: propertiesPanel.isTextAreaEntryEdited
  2050. }];
  2051. if (hasProcessRef$2(element)) {
  2052. entries.push({
  2053. id: 'processDocumentation',
  2054. component: ProcessDocumentationProperty,
  2055. isEdited: propertiesPanel.isTextAreaEntryEdited
  2056. });
  2057. }
  2058. return entries;
  2059. }
  2060. function ElementDocumentationProperty(props) {
  2061. const {
  2062. element
  2063. } = props;
  2064. const bpmnFactory = useService('bpmnFactory');
  2065. const commandStack = useService('commandStack');
  2066. const translate = useService('translate');
  2067. const debounce = useService('debounceInput');
  2068. const getValue = getDocumentation(ModelUtil.getBusinessObject(element));
  2069. const setValue = setDocumentation(element, ModelUtil.getBusinessObject(element), bpmnFactory, commandStack);
  2070. return propertiesPanel.TextAreaEntry({
  2071. element,
  2072. id: 'documentation',
  2073. label: translate('Element documentation'),
  2074. getValue,
  2075. setValue,
  2076. debounce
  2077. });
  2078. }
  2079. function ProcessDocumentationProperty(props) {
  2080. const {
  2081. element
  2082. } = props;
  2083. const bpmnFactory = useService('bpmnFactory');
  2084. const commandStack = useService('commandStack');
  2085. const translate = useService('translate');
  2086. const debounce = useService('debounceInput');
  2087. const processRef = ModelUtil.getBusinessObject(element).processRef;
  2088. const getValue = getDocumentation(processRef);
  2089. const setValue = setDocumentation(element, processRef, bpmnFactory, commandStack);
  2090. return propertiesPanel.TextAreaEntry({
  2091. element,
  2092. id: 'processDocumentation',
  2093. label: translate('Process documentation'),
  2094. getValue,
  2095. setValue,
  2096. debounce
  2097. });
  2098. }
  2099. // helper ////////////////////////////
  2100. function hasProcessRef$2(element) {
  2101. return ModelUtil.is(element, 'bpmn:Participant') && element.businessObject.get('processRef');
  2102. }
  2103. function findDocumentation(docs) {
  2104. return docs.find(function (d) {
  2105. return (d.textFormat || DOCUMENTATION_TEXT_FORMAT) === DOCUMENTATION_TEXT_FORMAT;
  2106. });
  2107. }
  2108. /**
  2109. * Retrieves a documentation element from a given moddle element.
  2110. *
  2111. * @param {ModdleElement} businessObject
  2112. *
  2113. * @returns {ModdleElement} documentation element inside the given moddle element.
  2114. */
  2115. function getDocumentation(businessObject) {
  2116. return function () {
  2117. const documentation = findDocumentation(businessObject && businessObject.get('documentation'));
  2118. return documentation && documentation.text;
  2119. };
  2120. }
  2121. /**
  2122. * Sets a documentation element for a given moddle element.
  2123. *
  2124. * @param {ModdleElement} businessObject
  2125. */
  2126. function setDocumentation(element, businessObject, bpmnFactory, commandStack) {
  2127. return function (value) {
  2128. let documentation = findDocumentation(businessObject && businessObject.get('documentation'));
  2129. // (1) update or removing existing documentation
  2130. if (documentation) {
  2131. if (value) {
  2132. return commandStack.execute('element.updateModdleProperties', {
  2133. element,
  2134. moddleElement: documentation,
  2135. properties: {
  2136. text: value
  2137. }
  2138. });
  2139. } else {
  2140. return commandStack.execute('element.updateModdleProperties', {
  2141. element,
  2142. moddleElement: businessObject,
  2143. properties: {
  2144. documentation: minDash.without(businessObject.get('documentation'), documentation)
  2145. }
  2146. });
  2147. }
  2148. }
  2149. // (2) create new documentation entry
  2150. if (value) {
  2151. documentation = bpmnFactory.create('bpmn:Documentation', {
  2152. text: value
  2153. });
  2154. return commandStack.execute('element.updateModdleProperties', {
  2155. element,
  2156. moddleElement: businessObject,
  2157. properties: {
  2158. documentation: [...businessObject.get('documentation'), documentation]
  2159. }
  2160. });
  2161. }
  2162. };
  2163. }
  2164. /**
  2165. * Create a new element and (optionally) set its parent.
  2166. *
  2167. * @param {string} type
  2168. * @param {Object} properties
  2169. * @param {import('bpmn-js/lib/model/Types').ModdleElement} parent
  2170. * @param {import('bpmn-js/lib/features/modeling/BpmnFactory').default} bpmnFactory
  2171. *
  2172. * @returns {import('bpmn-js/lib/model/Types').ModdleElement}
  2173. */
  2174. function createElement(type, properties, parent, bpmnFactory) {
  2175. const element = bpmnFactory.create(type, properties);
  2176. if (parent) {
  2177. element.$parent = parent;
  2178. }
  2179. return element;
  2180. }
  2181. /**
  2182. * generate a semantic id with given prefix
  2183. */
  2184. function nextId(prefix) {
  2185. const ids = new Ids([32, 32, 1]);
  2186. return ids.nextPrefixed(prefix);
  2187. }
  2188. function getRoot(businessObject) {
  2189. let parent = businessObject;
  2190. while (parent.$parent) {
  2191. parent = parent.$parent;
  2192. }
  2193. return parent;
  2194. }
  2195. function filterElementsByType(objectList, type) {
  2196. const list = objectList || [];
  2197. return list.filter(element => ModelUtil.is(element, type));
  2198. }
  2199. function findRootElementsByType(businessObject, referencedType) {
  2200. const root = getRoot(businessObject);
  2201. return filterElementsByType(root.get('rootElements'), referencedType);
  2202. }
  2203. function findRootElementById(businessObject, type, id) {
  2204. const elements = findRootElementsByType(businessObject, type);
  2205. return elements.find(element => element.id === id);
  2206. }
  2207. const EMPTY_OPTION$4 = '';
  2208. const CREATE_NEW_OPTION$4 = 'create-new';
  2209. /**
  2210. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  2211. */
  2212. /**
  2213. * @returns {Array<Entry>} entries
  2214. */
  2215. function ErrorProps$2(props) {
  2216. const {
  2217. element
  2218. } = props;
  2219. if (!isErrorSupported(element)) {
  2220. return [];
  2221. }
  2222. const error = getError(element);
  2223. let entries = [{
  2224. id: 'errorRef',
  2225. component: ErrorRef$1,
  2226. isEdited: propertiesPanel.isSelectEntryEdited
  2227. }];
  2228. if (error) {
  2229. entries = [...entries, {
  2230. id: 'errorName',
  2231. component: ErrorName$1,
  2232. isEdited: propertiesPanel.isTextFieldEntryEdited
  2233. }, {
  2234. id: 'errorCode',
  2235. component: ErrorCode$2,
  2236. isEdited: propertiesPanel.isTextFieldEntryEdited
  2237. }];
  2238. }
  2239. return entries;
  2240. }
  2241. function ErrorRef$1(props) {
  2242. const {
  2243. element
  2244. } = props;
  2245. const bpmnFactory = useService('bpmnFactory');
  2246. const commandStack = useService('commandStack');
  2247. const translate = useService('translate');
  2248. const errorEventDefinition = getErrorEventDefinition(element);
  2249. const getValue = () => {
  2250. const error = getError(element);
  2251. if (error) {
  2252. return error.get('id');
  2253. }
  2254. return EMPTY_OPTION$4;
  2255. };
  2256. const setValue = value => {
  2257. const root = getRoot(errorEventDefinition);
  2258. const commands = [];
  2259. let error;
  2260. // (1) create new error
  2261. if (value === CREATE_NEW_OPTION$4) {
  2262. error = createElement('bpmn:Error', {
  2263. name: nextId('Error_')
  2264. }, root, bpmnFactory);
  2265. value = error.get('id');
  2266. commands.push({
  2267. cmd: 'element.updateModdleProperties',
  2268. context: {
  2269. element,
  2270. moddleElement: root,
  2271. properties: {
  2272. rootElements: [...root.get('rootElements'), error]
  2273. }
  2274. }
  2275. });
  2276. }
  2277. // (2) update (or remove) errorRef
  2278. error = error || findRootElementById(errorEventDefinition, 'bpmn:Error', value);
  2279. commands.push({
  2280. cmd: 'element.updateModdleProperties',
  2281. context: {
  2282. element,
  2283. moddleElement: errorEventDefinition,
  2284. properties: {
  2285. errorRef: error
  2286. }
  2287. }
  2288. });
  2289. // (3) commit all updates
  2290. return commandStack.execute('properties-panel.multi-command-executor', commands);
  2291. };
  2292. const getOptions = () => {
  2293. let options = [{
  2294. value: EMPTY_OPTION$4,
  2295. label: translate('<none>')
  2296. }, {
  2297. value: CREATE_NEW_OPTION$4,
  2298. label: translate('Create new ...')
  2299. }];
  2300. const errors = findRootElementsByType(ModelUtil.getBusinessObject(element), 'bpmn:Error');
  2301. sortByName$5(errors).forEach(error => {
  2302. options.push({
  2303. value: error.get('id'),
  2304. label: error.get('name')
  2305. });
  2306. });
  2307. return options;
  2308. };
  2309. return ReferenceSelectEntry({
  2310. element,
  2311. id: 'errorRef',
  2312. label: translate('Global error reference'),
  2313. autoFocusEntry: 'errorName',
  2314. getValue,
  2315. setValue,
  2316. getOptions
  2317. });
  2318. }
  2319. function ErrorName$1(props) {
  2320. const {
  2321. element
  2322. } = props;
  2323. const commandStack = useService('commandStack');
  2324. const translate = useService('translate');
  2325. const debounce = useService('debounceInput');
  2326. const error = getError(element);
  2327. const getValue = () => {
  2328. return error.get('name');
  2329. };
  2330. const setValue = value => {
  2331. return commandStack.execute('element.updateModdleProperties', {
  2332. element,
  2333. moddleElement: error,
  2334. properties: {
  2335. name: value
  2336. }
  2337. });
  2338. };
  2339. return propertiesPanel.TextFieldEntry({
  2340. element,
  2341. id: 'errorName',
  2342. label: translate('Name'),
  2343. getValue,
  2344. setValue,
  2345. debounce
  2346. });
  2347. }
  2348. function ErrorCode$2(props) {
  2349. const {
  2350. element
  2351. } = props;
  2352. const commandStack = useService('commandStack');
  2353. const translate = useService('translate');
  2354. const debounce = useService('debounceInput');
  2355. const error = getError(element);
  2356. const getValue = () => {
  2357. return error.get('errorCode');
  2358. };
  2359. const setValue = value => {
  2360. return commandStack.execute('element.updateModdleProperties', {
  2361. element,
  2362. moddleElement: error,
  2363. properties: {
  2364. errorCode: value
  2365. }
  2366. });
  2367. };
  2368. return propertiesPanel.TextFieldEntry({
  2369. element,
  2370. id: 'errorCode',
  2371. label: translate('Code'),
  2372. getValue,
  2373. setValue,
  2374. debounce
  2375. });
  2376. }
  2377. // helper /////////////////////////
  2378. function sortByName$5(elements) {
  2379. return minDash.sortBy(elements, e => (e.name || '').toLowerCase());
  2380. }
  2381. const CREATE_NEW_OPTION$3 = 'create-new';
  2382. /**
  2383. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  2384. */
  2385. /**
  2386. * @returns {Array<Entry>} entries
  2387. */
  2388. function EscalationProps$2(props) {
  2389. const {
  2390. element
  2391. } = props;
  2392. if (!isEscalationSupported(element)) {
  2393. return [];
  2394. }
  2395. const escalation = getEscalation(element);
  2396. let entries = [{
  2397. id: 'escalationRef',
  2398. component: EscalationRef,
  2399. isEdited: propertiesPanel.isSelectEntryEdited
  2400. }];
  2401. if (escalation) {
  2402. entries = [...entries, {
  2403. id: 'escalationName',
  2404. component: EscalationName,
  2405. isEdited: propertiesPanel.isTextFieldEntryEdited
  2406. }, {
  2407. id: 'escalationCode',
  2408. component: EscalationCode$1,
  2409. isEdited: propertiesPanel.isTextFieldEntryEdited
  2410. }];
  2411. }
  2412. return entries;
  2413. }
  2414. function EscalationRef(props) {
  2415. const {
  2416. element
  2417. } = props;
  2418. const bpmnFactory = useService('bpmnFactory');
  2419. const commandStack = useService('commandStack');
  2420. const translate = useService('translate');
  2421. const escalationEventDefinition = getEscalationEventDefinition(element);
  2422. const getValue = () => {
  2423. const escalation = getEscalation(element);
  2424. return escalation && escalation.get('id');
  2425. };
  2426. const setValue = value => {
  2427. const root = getRoot(escalationEventDefinition);
  2428. const commands = [];
  2429. let escalation;
  2430. // (1) create new escalation
  2431. if (value === CREATE_NEW_OPTION$3) {
  2432. const id = nextId('Escalation_');
  2433. escalation = createElement('bpmn:Escalation', {
  2434. id,
  2435. name: id
  2436. }, root, bpmnFactory);
  2437. value = escalation.get('id');
  2438. commands.push({
  2439. cmd: 'element.updateModdleProperties',
  2440. context: {
  2441. element,
  2442. moddleElement: root,
  2443. properties: {
  2444. rootElements: [...root.get('rootElements'), escalation]
  2445. }
  2446. }
  2447. });
  2448. }
  2449. // (2) update (or remove) escalationRef
  2450. escalation = escalation || findRootElementById(escalationEventDefinition, 'bpmn:Escalation', value);
  2451. commands.push({
  2452. cmd: 'element.updateModdleProperties',
  2453. context: {
  2454. element,
  2455. moddleElement: escalationEventDefinition,
  2456. properties: {
  2457. escalationRef: escalation
  2458. }
  2459. }
  2460. });
  2461. // (3) commit all updates
  2462. return commandStack.execute('properties-panel.multi-command-executor', commands);
  2463. };
  2464. const getOptions = () => {
  2465. let options = [{
  2466. value: '',
  2467. label: translate('<none>')
  2468. }, {
  2469. value: CREATE_NEW_OPTION$3,
  2470. label: translate('Create new ...')
  2471. }];
  2472. const escalations = findRootElementsByType(ModelUtil.getBusinessObject(element), 'bpmn:Escalation');
  2473. sortByName$4(escalations).forEach(escalation => {
  2474. options.push({
  2475. value: escalation.get('id'),
  2476. label: escalation.get('name')
  2477. });
  2478. });
  2479. return options;
  2480. };
  2481. return ReferenceSelectEntry({
  2482. element,
  2483. id: 'escalationRef',
  2484. label: translate('Global escalation reference'),
  2485. autoFocusEntry: 'escalationName',
  2486. getValue,
  2487. setValue,
  2488. getOptions
  2489. });
  2490. }
  2491. function EscalationName(props) {
  2492. const {
  2493. element
  2494. } = props;
  2495. const commandStack = useService('commandStack');
  2496. const translate = useService('translate');
  2497. const debounce = useService('debounceInput');
  2498. const escalation = getEscalation(element);
  2499. const getValue = () => {
  2500. return escalation.get('name');
  2501. };
  2502. const setValue = value => {
  2503. return commandStack.execute('element.updateModdleProperties', {
  2504. element,
  2505. moddleElement: escalation,
  2506. properties: {
  2507. name: value
  2508. }
  2509. });
  2510. };
  2511. return propertiesPanel.TextFieldEntry({
  2512. element,
  2513. id: 'escalationName',
  2514. label: translate('Name'),
  2515. getValue,
  2516. setValue,
  2517. debounce
  2518. });
  2519. }
  2520. function EscalationCode$1(props) {
  2521. const {
  2522. element
  2523. } = props;
  2524. const commandStack = useService('commandStack');
  2525. const translate = useService('translate');
  2526. const debounce = useService('debounceInput');
  2527. const escalation = getEscalation(element);
  2528. const getValue = () => {
  2529. return escalation.get('escalationCode');
  2530. };
  2531. const setValue = value => {
  2532. return commandStack.execute('element.updateModdleProperties', {
  2533. element,
  2534. moddleElement: escalation,
  2535. properties: {
  2536. escalationCode: value
  2537. }
  2538. });
  2539. };
  2540. return propertiesPanel.TextFieldEntry({
  2541. element,
  2542. id: 'escalationCode',
  2543. label: translate('Code'),
  2544. getValue,
  2545. setValue,
  2546. debounce
  2547. });
  2548. }
  2549. // helper /////////////////////////
  2550. function sortByName$4(elements) {
  2551. return minDash.sortBy(elements, e => (e.name || '').toLowerCase());
  2552. }
  2553. /**
  2554. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  2555. */
  2556. /**
  2557. * @returns {Array<Entry>} entries
  2558. */
  2559. function ExecutableProps(props) {
  2560. const {
  2561. element
  2562. } = props;
  2563. if (!ModelUtil.is(element, 'bpmn:Process') && !hasProcessRef$1(element)) {
  2564. return [];
  2565. }
  2566. return [{
  2567. id: 'isExecutable',
  2568. component: Executable,
  2569. isEdited: propertiesPanel.isCheckboxEntryEdited
  2570. }];
  2571. }
  2572. function Executable(props) {
  2573. const {
  2574. element
  2575. } = props;
  2576. const modeling = useService('modeling');
  2577. const commandStack = useService('commandStack');
  2578. const translate = useService('translate');
  2579. let getValue, setValue;
  2580. setValue = value => {
  2581. modeling.updateProperties(element, {
  2582. isExecutable: value
  2583. });
  2584. };
  2585. getValue = element => {
  2586. return element.businessObject.isExecutable;
  2587. };
  2588. // handle properties on processRef level for participants
  2589. if (ModelUtil.is(element, 'bpmn:Participant')) {
  2590. const process = element.businessObject.get('processRef');
  2591. setValue = value => {
  2592. commandStack.execute('element.updateModdleProperties', {
  2593. element,
  2594. moddleElement: process,
  2595. properties: {
  2596. isExecutable: value
  2597. }
  2598. });
  2599. };
  2600. getValue = () => {
  2601. return process.get('isExecutable');
  2602. };
  2603. }
  2604. return propertiesPanel.CheckboxEntry({
  2605. element,
  2606. id: 'isExecutable',
  2607. label: translate('Executable'),
  2608. getValue,
  2609. setValue
  2610. });
  2611. }
  2612. // helper /////////////////////
  2613. function hasProcessRef$1(element) {
  2614. return ModelUtil.is(element, 'bpmn:Participant') && element.businessObject.get('processRef');
  2615. }
  2616. const SPACE_REGEX = /\s/;
  2617. // for QName validation as per http://www.w3.org/TR/REC-xml/#NT-NameChar
  2618. const QNAME_REGEX = /^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i;
  2619. // for ID validation as per BPMN Schema (QName - Namespace)
  2620. const ID_REGEX = /^[a-z_][\w-.]*$/i;
  2621. /**
  2622. * checks whether the id value is valid
  2623. *
  2624. * @param {ModdleElement} element
  2625. * @param {String} idValue
  2626. * @param {Function} translate
  2627. *
  2628. * @return {String} error message
  2629. */
  2630. function isIdValid(element, idValue, translate) {
  2631. const assigned = element.$model.ids.assigned(idValue);
  2632. const idAlreadyExists = assigned && assigned !== element;
  2633. if (!idValue) {
  2634. return translate('ID must not be empty.');
  2635. }
  2636. if (idAlreadyExists) {
  2637. return translate('ID must be unique.');
  2638. }
  2639. return validateId(idValue, translate);
  2640. }
  2641. function validateId(idValue, translate) {
  2642. if (containsSpace(idValue)) {
  2643. return translate('ID must not contain spaces.');
  2644. }
  2645. if (!ID_REGEX.test(idValue)) {
  2646. if (QNAME_REGEX.test(idValue)) {
  2647. return translate('ID must not contain prefix.');
  2648. }
  2649. return translate('ID must be a valid QName.');
  2650. }
  2651. }
  2652. function containsSpace(value) {
  2653. return SPACE_REGEX.test(value);
  2654. }
  2655. /**
  2656. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  2657. */
  2658. /**
  2659. * @returns {Array<Entry>} entries
  2660. */
  2661. function IdProps() {
  2662. return [{
  2663. id: 'id',
  2664. component: Id$3,
  2665. isEdited: propertiesPanel.isTextFieldEntryEdited
  2666. }];
  2667. }
  2668. function Id$3(props) {
  2669. const {
  2670. element
  2671. } = props;
  2672. const modeling = useService('modeling');
  2673. const debounce = useService('debounceInput');
  2674. const translate = useService('translate');
  2675. const setValue = (value, error) => {
  2676. if (error) {
  2677. return;
  2678. }
  2679. modeling.updateProperties(element, {
  2680. id: value
  2681. });
  2682. };
  2683. const getValue = element => {
  2684. return element.businessObject.id;
  2685. };
  2686. const validate = value => {
  2687. const businessObject = ModelUtil.getBusinessObject(element);
  2688. return isIdValid(businessObject, value, translate);
  2689. };
  2690. return propertiesPanel.TextFieldEntry({
  2691. element,
  2692. id: 'id',
  2693. label: translate(ModelUtil.is(element, 'bpmn:Participant') ? 'Participant ID' : 'ID'),
  2694. getValue,
  2695. setValue,
  2696. debounce,
  2697. validate
  2698. });
  2699. }
  2700. /**
  2701. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  2702. */
  2703. /**
  2704. * @returns {Array<Entry>} entries
  2705. */
  2706. function LinkProps(props) {
  2707. const {
  2708. element
  2709. } = props;
  2710. if (!isLinkSupported(element)) {
  2711. return [];
  2712. }
  2713. return [{
  2714. id: 'linkName',
  2715. component: LinkName,
  2716. isEdited: propertiesPanel.isTextFieldEntryEdited
  2717. }];
  2718. }
  2719. function LinkName(props) {
  2720. const {
  2721. element
  2722. } = props;
  2723. const commandStack = useService('commandStack');
  2724. const translate = useService('translate');
  2725. const debounce = useService('debounceInput');
  2726. const linkEventDefinition = getLinkEventDefinition(element);
  2727. const getValue = () => {
  2728. return linkEventDefinition.get('name');
  2729. };
  2730. const setValue = value => {
  2731. commandStack.execute('element.updateModdleProperties', {
  2732. element,
  2733. moddleElement: linkEventDefinition,
  2734. properties: {
  2735. name: value
  2736. }
  2737. });
  2738. };
  2739. return propertiesPanel.TextFieldEntry({
  2740. element,
  2741. id: 'linkName',
  2742. label: translate('Name'),
  2743. getValue,
  2744. setValue,
  2745. debounce
  2746. });
  2747. }
  2748. const EMPTY_OPTION$3 = '';
  2749. const CREATE_NEW_OPTION$2 = 'create-new';
  2750. /**
  2751. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  2752. */
  2753. /**
  2754. * @returns {Array<Entry>} entries
  2755. */
  2756. function MessageProps$1(props) {
  2757. const {
  2758. element
  2759. } = props;
  2760. if (!isMessageSupported(element)) {
  2761. return [];
  2762. }
  2763. const message = getMessage(element);
  2764. let entries = [{
  2765. id: 'messageRef',
  2766. component: MessageRef,
  2767. isEdited: propertiesPanel.isSelectEntryEdited
  2768. }];
  2769. if (message) {
  2770. entries = [...entries, {
  2771. id: 'messageName',
  2772. component: MessageName$1,
  2773. isEdited: propertiesPanel.isTextFieldEntryEdited
  2774. }];
  2775. }
  2776. return entries;
  2777. }
  2778. function MessageRef(props) {
  2779. const {
  2780. element
  2781. } = props;
  2782. const bpmnFactory = useService('bpmnFactory');
  2783. const commandStack = useService('commandStack');
  2784. const translate = useService('translate');
  2785. const messageEventDefinition = getMessageEventDefinition(element);
  2786. const getValue = () => {
  2787. const message = getMessage(element);
  2788. if (message) {
  2789. return message.get('id');
  2790. }
  2791. return EMPTY_OPTION$3;
  2792. };
  2793. const setValue = value => {
  2794. const root = getRoot(messageEventDefinition);
  2795. const commands = [];
  2796. let message;
  2797. // (1) create new message
  2798. if (value === CREATE_NEW_OPTION$2) {
  2799. const id = nextId('Message_');
  2800. message = createElement('bpmn:Message', {
  2801. id,
  2802. name: id
  2803. }, root, bpmnFactory);
  2804. value = message.get('id');
  2805. commands.push({
  2806. cmd: 'element.updateModdleProperties',
  2807. context: {
  2808. element,
  2809. moddleElement: root,
  2810. properties: {
  2811. rootElements: [...root.get('rootElements'), message]
  2812. }
  2813. }
  2814. });
  2815. }
  2816. // (2) update (or remove) messageRef
  2817. message = message || findRootElementById(messageEventDefinition, 'bpmn:Message', value);
  2818. commands.push({
  2819. cmd: 'element.updateModdleProperties',
  2820. context: {
  2821. element,
  2822. moddleElement: messageEventDefinition,
  2823. properties: {
  2824. messageRef: message
  2825. }
  2826. }
  2827. });
  2828. // (3) commit all updates
  2829. return commandStack.execute('properties-panel.multi-command-executor', commands);
  2830. };
  2831. const getOptions = () => {
  2832. let options = [{
  2833. value: EMPTY_OPTION$3,
  2834. label: translate('<none>')
  2835. }, {
  2836. value: CREATE_NEW_OPTION$2,
  2837. label: translate('Create new ...')
  2838. }];
  2839. const messages = findRootElementsByType(ModelUtil.getBusinessObject(element), 'bpmn:Message');
  2840. sortByName$3(messages).forEach(message => {
  2841. options.push({
  2842. value: message.get('id'),
  2843. label: message.get('name')
  2844. });
  2845. });
  2846. return options;
  2847. };
  2848. return ReferenceSelectEntry({
  2849. element,
  2850. id: 'messageRef',
  2851. label: translate('Global message reference'),
  2852. autoFocusEntry: 'messageName',
  2853. getValue,
  2854. setValue,
  2855. getOptions
  2856. });
  2857. }
  2858. function MessageName$1(props) {
  2859. const {
  2860. element
  2861. } = props;
  2862. const commandStack = useService('commandStack');
  2863. const translate = useService('translate');
  2864. const debounce = useService('debounceInput');
  2865. const message = getMessage(element);
  2866. const getValue = () => {
  2867. return message.get('name');
  2868. };
  2869. const setValue = value => {
  2870. return commandStack.execute('element.updateModdleProperties', {
  2871. element,
  2872. moddleElement: message,
  2873. properties: {
  2874. name: value
  2875. }
  2876. });
  2877. };
  2878. return propertiesPanel.TextFieldEntry({
  2879. element,
  2880. id: 'messageName',
  2881. label: translate('Name'),
  2882. getValue,
  2883. setValue,
  2884. debounce
  2885. });
  2886. }
  2887. // helper /////////////////////////
  2888. function sortByName$3(elements) {
  2889. return minDash.sortBy(elements, e => (e.name || '').toLowerCase());
  2890. }
  2891. /**
  2892. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  2893. */
  2894. /**
  2895. * @returns {Array<Entry>} entries
  2896. */
  2897. function MultiInstanceProps$2(props) {
  2898. const {
  2899. element
  2900. } = props;
  2901. if (!isMultiInstanceSupported$1(element)) {
  2902. return [];
  2903. }
  2904. const entries = [{
  2905. id: 'loopCardinality',
  2906. component: LoopCardinality,
  2907. isEdited: propertiesPanel.isTextFieldEntryEdited
  2908. }, {
  2909. id: 'completionCondition',
  2910. component: CompletionCondition$1,
  2911. isEdited: propertiesPanel.isTextFieldEntryEdited
  2912. }];
  2913. return entries;
  2914. }
  2915. function LoopCardinality(props) {
  2916. const {
  2917. element
  2918. } = props;
  2919. const bpmnFactory = useService('bpmnFactory');
  2920. const debounce = useService('debounceInput');
  2921. const commandStack = useService('commandStack');
  2922. const translate = useService('translate');
  2923. const getValue = () => {
  2924. return getLoopCardinalityValue(element);
  2925. };
  2926. const setValue = value => {
  2927. return commandStack.execute('element.updateModdleProperties', updateFormalExpression(element, 'loopCardinality', value, bpmnFactory));
  2928. };
  2929. return propertiesPanel.TextFieldEntry({
  2930. element,
  2931. id: 'loopCardinality',
  2932. label: translate('Loop cardinality'),
  2933. getValue,
  2934. setValue,
  2935. debounce
  2936. });
  2937. }
  2938. function CompletionCondition$1(props) {
  2939. const {
  2940. element
  2941. } = props;
  2942. const bpmnFactory = useService('bpmnFactory');
  2943. const debounce = useService('debounceInput');
  2944. const commandStack = useService('commandStack');
  2945. const translate = useService('translate');
  2946. const getValue = () => {
  2947. return getCompletionConditionValue(element);
  2948. };
  2949. const setValue = value => {
  2950. return commandStack.execute('element.updateModdleProperties', updateFormalExpression(element, 'completionCondition', value, bpmnFactory));
  2951. };
  2952. return propertiesPanel.TextFieldEntry({
  2953. element,
  2954. id: 'completionCondition',
  2955. label: translate('Completion condition'),
  2956. getValue,
  2957. setValue,
  2958. debounce
  2959. });
  2960. }
  2961. // helper ////////////////////////////
  2962. // generic ///////////////////////////
  2963. /**
  2964. * isMultiInstanceSupported - check whether given element supports MultiInstanceLoopCharacteristics.
  2965. *
  2966. * @param {djs.model.Base} element
  2967. * @return {boolean}
  2968. */
  2969. function isMultiInstanceSupported$1(element) {
  2970. const loopCharacteristics = getLoopCharacteristics$2(element);
  2971. return !!loopCharacteristics && ModelUtil.is(loopCharacteristics, 'bpmn:MultiInstanceLoopCharacteristics');
  2972. }
  2973. /**
  2974. * getBody - get the body of a given expression.
  2975. *
  2976. * @param {ModdleElement<bpmn:FormalExpression>} expression
  2977. * @return {string} the body (value) of the expression
  2978. */
  2979. function getBody(expression) {
  2980. return expression && expression.get('body');
  2981. }
  2982. /**
  2983. * getProperty - get a property value of the loop characteristics.
  2984. *
  2985. * @param {djs.model.Base} element
  2986. * @param {string} propertyName
  2987. *
  2988. * @return {any} the property value
  2989. */
  2990. function getProperty$2(element, propertyName) {
  2991. const loopCharacteristics = getLoopCharacteristics$2(element);
  2992. return loopCharacteristics && loopCharacteristics.get(propertyName);
  2993. }
  2994. /**
  2995. * getLoopCharacteristics - get loopCharacteristics of a given element.
  2996. *
  2997. * @param {djs.model.Base} element
  2998. * @return {ModdleElement<bpmn:MultiInstanceLoopCharacteristics> | undefined}
  2999. */
  3000. function getLoopCharacteristics$2(element) {
  3001. const bo = ModelUtil.getBusinessObject(element);
  3002. return bo.loopCharacteristics;
  3003. }
  3004. /**
  3005. * createFormalExpression - creates a 'bpmn:FormalExpression' element.
  3006. *
  3007. * @param {ModdleElement} parent
  3008. * @param {string} body
  3009. * @param {BpmnFactory} bpmnFactory
  3010. *
  3011. * @result {ModdleElement<bpmn:FormalExpression>} a formal expression
  3012. */
  3013. function createFormalExpression$1(parent, body, bpmnFactory) {
  3014. return createElement('bpmn:FormalExpression', {
  3015. body: body
  3016. }, parent, bpmnFactory);
  3017. }
  3018. /**
  3019. * updateFormalExpression - updates a specific formal expression of the loop characteristics.
  3020. *
  3021. * @param {djs.model.Base} element
  3022. * @param {string} propertyName
  3023. * @param {string} newValue
  3024. * @param {BpmnFactory} bpmnFactory
  3025. */
  3026. function updateFormalExpression(element, propertyName, newValue, bpmnFactory) {
  3027. const loopCharacteristics = getLoopCharacteristics$2(element);
  3028. const expressionProps = {};
  3029. if (!newValue) {
  3030. // remove formal expression
  3031. expressionProps[propertyName] = undefined;
  3032. return {
  3033. element,
  3034. moddleElement: loopCharacteristics,
  3035. properties: expressionProps
  3036. };
  3037. }
  3038. const existingExpression = loopCharacteristics.get(propertyName);
  3039. if (!existingExpression) {
  3040. // add formal expression
  3041. expressionProps[propertyName] = createFormalExpression$1(loopCharacteristics, newValue, bpmnFactory);
  3042. return {
  3043. element,
  3044. moddleElement: loopCharacteristics,
  3045. properties: expressionProps
  3046. };
  3047. }
  3048. // edit existing formal expression
  3049. return {
  3050. element,
  3051. moddleElement: existingExpression,
  3052. properties: {
  3053. body: newValue
  3054. }
  3055. };
  3056. }
  3057. // loopCardinality
  3058. /**
  3059. * getLoopCardinality - get the loop cardinality of the loop characteristics.
  3060. *
  3061. * @param {djs.model.Base} element
  3062. *
  3063. * @return {ModdleElement<bpmn:FormalExpression>} an expression representing the loop cardinality
  3064. */
  3065. function getLoopCardinality(element) {
  3066. return getProperty$2(element, 'loopCardinality');
  3067. }
  3068. /**
  3069. * getLoopCardinalityValue - get the loop cardinality value of the loop characteristics.
  3070. *
  3071. * @param {djs.model.Base} element
  3072. *
  3073. * @return {string} the loop cardinality value
  3074. */
  3075. function getLoopCardinalityValue(element) {
  3076. const loopCardinality = getLoopCardinality(element);
  3077. return getBody(loopCardinality);
  3078. }
  3079. // completionCondition /////////////////////
  3080. /**
  3081. * getCompletionCondition - get the completion condition of the loop characteristics.
  3082. *
  3083. * @param {djs.model.Base} element
  3084. *
  3085. * @return {ModdleElement<bpmn:FormalExpression>} an expression representing the completion condition
  3086. */
  3087. function getCompletionCondition$1(element) {
  3088. return getProperty$2(element, 'completionCondition');
  3089. }
  3090. /**
  3091. * getCompletionConditionValue - get the completion condition value of the loop characteristics.
  3092. *
  3093. * @param {djs.model.Base} element
  3094. *
  3095. * @return {string} the completion condition value
  3096. */
  3097. function getCompletionConditionValue(element) {
  3098. const completionCondition = getCompletionCondition$1(element);
  3099. return getBody(completionCondition);
  3100. }
  3101. /**
  3102. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  3103. */
  3104. /**
  3105. * @returns {Array<Entry>} entries
  3106. */
  3107. function NameProps(props) {
  3108. const {
  3109. element
  3110. } = props;
  3111. if (ModelingUtil.isAny(element, ['bpmn:Collaboration', 'bpmn:DataAssociation', 'bpmn:Association'])) {
  3112. return [];
  3113. }
  3114. return [{
  3115. id: 'name',
  3116. component: Name$3,
  3117. isEdited: propertiesPanel.isTextAreaEntryEdited
  3118. }];
  3119. }
  3120. function Name$3(props) {
  3121. const {
  3122. element
  3123. } = props;
  3124. const modeling = useService('modeling');
  3125. const debounce = useService('debounceInput');
  3126. const canvas = useService('canvas');
  3127. const bpmnFactory = useService('bpmnFactory');
  3128. const translate = useService('translate');
  3129. // (1) default: name
  3130. let options = {
  3131. element,
  3132. id: 'name',
  3133. label: translate('Name'),
  3134. debounce,
  3135. setValue: value => {
  3136. modeling.updateProperties(element, {
  3137. name: value
  3138. });
  3139. },
  3140. getValue: element => {
  3141. return element.businessObject.name;
  3142. },
  3143. autoResize: true
  3144. };
  3145. // (2) text annotations
  3146. if (ModelUtil.is(element, 'bpmn:TextAnnotation')) {
  3147. options = {
  3148. ...options,
  3149. setValue: value => {
  3150. modeling.updateProperties(element, {
  3151. text: value
  3152. });
  3153. },
  3154. getValue: element => {
  3155. return element.businessObject.text;
  3156. }
  3157. };
  3158. }
  3159. // (3) groups
  3160. else if (ModelUtil.is(element, 'bpmn:Group')) {
  3161. options = {
  3162. ...options,
  3163. setValue: value => {
  3164. const businessObject = ModelUtil.getBusinessObject(element),
  3165. categoryValueRef = businessObject.categoryValueRef;
  3166. if (!categoryValueRef) {
  3167. initializeCategory(businessObject, canvas.getRootElement(), bpmnFactory);
  3168. }
  3169. modeling.updateLabel(element, value);
  3170. },
  3171. getValue: element => {
  3172. const businessObject = ModelUtil.getBusinessObject(element),
  3173. categoryValueRef = businessObject.categoryValueRef;
  3174. return categoryValueRef && categoryValueRef.value;
  3175. }
  3176. };
  3177. }
  3178. // (4) participants (only update label)
  3179. else if (ModelUtil.is(element, 'bpmn:Participant')) {
  3180. options.label = translate('Participant Name');
  3181. }
  3182. return propertiesPanel.TextAreaEntry(options);
  3183. }
  3184. // helpers ////////////////////////
  3185. function initializeCategory(businessObject, rootElement, bpmnFactory) {
  3186. const definitions = ModelUtil.getBusinessObject(rootElement).$parent;
  3187. const categoryValue = createCategoryValue(definitions, bpmnFactory);
  3188. businessObject.categoryValueRef = categoryValue;
  3189. }
  3190. function createCategoryValue(definitions, bpmnFactory) {
  3191. const categoryValue = bpmnFactory.create('bpmn:CategoryValue');
  3192. const category = bpmnFactory.create('bpmn:Category', {
  3193. categoryValue: [categoryValue]
  3194. });
  3195. // add to correct place
  3196. Collections.add(definitions.get('rootElements'), category);
  3197. ModelUtil.getBusinessObject(category).$parent = definitions;
  3198. ModelUtil.getBusinessObject(categoryValue).$parent = category;
  3199. return categoryValue;
  3200. }
  3201. /**
  3202. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  3203. */
  3204. /**
  3205. * @returns {Array<Entry>} entries
  3206. */
  3207. function ProcessProps(props) {
  3208. const {
  3209. element
  3210. } = props;
  3211. if (!hasProcessRef(element)) {
  3212. return [];
  3213. }
  3214. return [{
  3215. id: 'processId',
  3216. component: ProcessId,
  3217. isEdited: propertiesPanel.isTextFieldEntryEdited
  3218. }, {
  3219. id: 'processName',
  3220. component: ProcessName,
  3221. isEdited: propertiesPanel.isTextFieldEntryEdited
  3222. }];
  3223. }
  3224. function ProcessName(props) {
  3225. const {
  3226. element
  3227. } = props;
  3228. const commandStack = useService('commandStack');
  3229. const translate = useService('translate');
  3230. const debounce = useService('debounceInput');
  3231. const process = element.businessObject.get('processRef');
  3232. const getValue = () => {
  3233. return process.get('name');
  3234. };
  3235. const setValue = value => {
  3236. commandStack.execute('element.updateModdleProperties', {
  3237. element,
  3238. moddleElement: process,
  3239. properties: {
  3240. name: value
  3241. }
  3242. });
  3243. };
  3244. return propertiesPanel.TextFieldEntry({
  3245. element,
  3246. id: 'processName',
  3247. label: translate('Process name'),
  3248. getValue,
  3249. setValue,
  3250. debounce
  3251. });
  3252. }
  3253. function ProcessId(props) {
  3254. const {
  3255. element
  3256. } = props;
  3257. const commandStack = useService('commandStack');
  3258. const translate = useService('translate');
  3259. const debounce = useService('debounceInput');
  3260. const process = element.businessObject.get('processRef');
  3261. const getValue = () => {
  3262. return process.get('id');
  3263. };
  3264. const setValue = (value, error) => {
  3265. if (error) {
  3266. return;
  3267. }
  3268. commandStack.execute('element.updateModdleProperties', {
  3269. element,
  3270. moddleElement: process,
  3271. properties: {
  3272. id: value
  3273. }
  3274. });
  3275. };
  3276. const validate = value => {
  3277. return isIdValid(process, value, translate);
  3278. };
  3279. return propertiesPanel.TextFieldEntry({
  3280. element,
  3281. id: 'processId',
  3282. label: translate('Process ID'),
  3283. getValue,
  3284. setValue,
  3285. debounce,
  3286. validate
  3287. });
  3288. }
  3289. // helper ////////////////
  3290. function hasProcessRef(element) {
  3291. return ModelUtil.is(element, 'bpmn:Participant') && element.businessObject.get('processRef');
  3292. }
  3293. /**
  3294. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  3295. */
  3296. const EMPTY_OPTION$2 = '';
  3297. const CREATE_NEW_OPTION$1 = 'create-new';
  3298. /**
  3299. * @returns {Entry[]}
  3300. */
  3301. function SignalProps$1(props) {
  3302. const {
  3303. element
  3304. } = props;
  3305. if (!isSignalSupported$1(element)) {
  3306. return [];
  3307. }
  3308. const signal = getSignal$1(element);
  3309. let entries = [{
  3310. id: 'signalRef',
  3311. component: SignalRef,
  3312. isEdited: propertiesPanel.isSelectEntryEdited
  3313. }];
  3314. if (signal) {
  3315. entries = [...entries, {
  3316. id: 'signalName',
  3317. component: SignalName$1,
  3318. isEdited: propertiesPanel.isTextFieldEntryEdited
  3319. }];
  3320. }
  3321. return entries;
  3322. }
  3323. function SignalRef(props) {
  3324. const {
  3325. element
  3326. } = props;
  3327. const bpmnFactory = useService('bpmnFactory');
  3328. const commandStack = useService('commandStack');
  3329. const translate = useService('translate');
  3330. const signalEventDefinition = getSignalEventDefinition$1(element);
  3331. const getValue = () => {
  3332. const signal = getSignal$1(element);
  3333. if (signal) {
  3334. return signal.get('id');
  3335. }
  3336. return EMPTY_OPTION$2;
  3337. };
  3338. const setValue = value => {
  3339. const root = getRoot(signalEventDefinition);
  3340. const commands = [];
  3341. let signal;
  3342. // (1) create new signal
  3343. if (value === CREATE_NEW_OPTION$1) {
  3344. const id = nextId('Signal_');
  3345. signal = createElement('bpmn:Signal', {
  3346. id,
  3347. name: id
  3348. }, root, bpmnFactory);
  3349. value = signal.get('id');
  3350. commands.push({
  3351. cmd: 'element.updateModdleProperties',
  3352. context: {
  3353. element,
  3354. moddleElement: root,
  3355. properties: {
  3356. rootElements: [...root.get('rootElements'), signal]
  3357. }
  3358. }
  3359. });
  3360. }
  3361. // (2) update (or remove) signalRef
  3362. signal = signal || findRootElementById(signalEventDefinition, 'bpmn:Signal', value);
  3363. commands.push({
  3364. cmd: 'element.updateModdleProperties',
  3365. context: {
  3366. element,
  3367. moddleElement: signalEventDefinition,
  3368. properties: {
  3369. signalRef: signal
  3370. }
  3371. }
  3372. });
  3373. // (3) commit all updates
  3374. return commandStack.execute('properties-panel.multi-command-executor', commands);
  3375. };
  3376. const getOptions = () => {
  3377. let options = [{
  3378. value: EMPTY_OPTION$2,
  3379. label: translate('<none>')
  3380. }, {
  3381. value: CREATE_NEW_OPTION$1,
  3382. label: translate('Create new ...')
  3383. }];
  3384. const signals = findRootElementsByType(ModelUtil.getBusinessObject(element), 'bpmn:Signal');
  3385. sortByName$2(signals).forEach(signal => {
  3386. options.push({
  3387. value: signal.get('id'),
  3388. label: signal.get('name')
  3389. });
  3390. });
  3391. return options;
  3392. };
  3393. return ReferenceSelectEntry({
  3394. element,
  3395. id: 'signalRef',
  3396. label: translate('Global signal reference'),
  3397. autoFocusEntry: 'signalName',
  3398. getValue,
  3399. setValue,
  3400. getOptions
  3401. });
  3402. }
  3403. function SignalName$1(props) {
  3404. const {
  3405. element
  3406. } = props;
  3407. const commandStack = useService('commandStack');
  3408. const translate = useService('translate');
  3409. const debounce = useService('debounceInput');
  3410. const signal = getSignal$1(element);
  3411. const getValue = () => {
  3412. return signal.get('name');
  3413. };
  3414. const setValue = value => {
  3415. return commandStack.execute('element.updateModdleProperties', {
  3416. element,
  3417. moddleElement: signal,
  3418. properties: {
  3419. name: value
  3420. }
  3421. });
  3422. };
  3423. return propertiesPanel.TextFieldEntry({
  3424. element,
  3425. id: 'signalName',
  3426. label: translate('Name'),
  3427. getValue,
  3428. setValue,
  3429. debounce
  3430. });
  3431. }
  3432. // helper /////////////////////////
  3433. function sortByName$2(elements) {
  3434. return minDash.sortBy(elements, e => (e.name || '').toLowerCase());
  3435. }
  3436. function isTimerSupported(element) {
  3437. return ModelingUtil.isAny(element, ['bpmn:StartEvent', 'bpmn:IntermediateCatchEvent', 'bpmn:BoundaryEvent']) && !!getTimerEventDefinition(element);
  3438. }
  3439. /**
  3440. * Get the timer definition type for a given timer event definition.
  3441. *
  3442. * @param {ModdleElement<bpmn:TimerEventDefinition>} timer
  3443. *
  3444. * @return {string|undefined} the timer definition type
  3445. */
  3446. function getTimerDefinitionType(timer) {
  3447. if (!timer) {
  3448. return;
  3449. }
  3450. const timeDate = timer.get('timeDate');
  3451. if (typeof timeDate !== 'undefined') {
  3452. return 'timeDate';
  3453. }
  3454. const timeCycle = timer.get('timeCycle');
  3455. if (typeof timeCycle !== 'undefined') {
  3456. return 'timeCycle';
  3457. }
  3458. const timeDuration = timer.get('timeDuration');
  3459. if (typeof timeDuration !== 'undefined') {
  3460. return 'timeDuration';
  3461. }
  3462. }
  3463. function getTimerEventDefinition(element) {
  3464. return getEventDefinition(element, 'bpmn:TimerEventDefinition');
  3465. }
  3466. function getEventDefinition(element, eventType) {
  3467. const businessObject = ModelUtil.getBusinessObject(element);
  3468. const eventDefinitions = businessObject.get('eventDefinitions') || [];
  3469. return minDash.find(eventDefinitions, function (definition) {
  3470. return ModelUtil.is(definition, eventType);
  3471. });
  3472. }
  3473. function getSignalEventDefinition(element) {
  3474. return getEventDefinition(element, 'bpmn:SignalEventDefinition');
  3475. }
  3476. function isSignalSupported(element) {
  3477. return ModelUtil.is(element, 'bpmn:Event') && !!getSignalEventDefinition(element);
  3478. }
  3479. function getSignal(element) {
  3480. const signalEventDefinition = getSignalEventDefinition(element);
  3481. return signalEventDefinition && signalEventDefinition.get('signalRef');
  3482. }
  3483. function TimerProps$2(props) {
  3484. const {
  3485. element,
  3486. idPrefix
  3487. } = props;
  3488. let {
  3489. timerEventDefinition
  3490. } = props;
  3491. if (!timerEventDefinition) {
  3492. const businessObject = ModelUtil.getBusinessObject(element);
  3493. timerEventDefinition = getTimerEventDefinition(businessObject);
  3494. }
  3495. const timerEventDefinitionType = getTimerDefinitionType(timerEventDefinition);
  3496. // (1) Only show for supported elements
  3497. if (!isTimerSupported(element)) {
  3498. return [];
  3499. }
  3500. // (2) Provide entries, have a value only if selection was made
  3501. const entries = [];
  3502. entries.push({
  3503. id: getId$1(idPrefix, 'timerEventDefinitionType'),
  3504. component: TimerEventDefinitionType$2,
  3505. isEdited: propertiesPanel.isSelectEntryEdited,
  3506. timerEventDefinition,
  3507. timerEventDefinitionType
  3508. });
  3509. if (timerEventDefinitionType) {
  3510. entries.push({
  3511. id: getId$1(idPrefix, 'timerEventDefinitionValue'),
  3512. component: TimerEventDefinitionValue$2,
  3513. isEdited: propertiesPanel.isTextFieldEntryEdited,
  3514. timerEventDefinition,
  3515. timerEventDefinitionType
  3516. });
  3517. }
  3518. return entries;
  3519. }
  3520. /**
  3521. * TimerEventDefinitionType - Generic select entry allowing to select a specific
  3522. * timerEventDefintionType. To be used together with timerEventDefinitionValue.
  3523. *
  3524. * @param {type} props
  3525. * @return {SelectEntry}
  3526. */
  3527. function TimerEventDefinitionType$2(props) {
  3528. const {
  3529. element,
  3530. timerEventDefinition,
  3531. timerEventDefinitionType
  3532. } = props;
  3533. const commandStack = useService('commandStack'),
  3534. bpmnFactory = useService('bpmnFactory'),
  3535. translate = useService('translate');
  3536. const getValue = () => {
  3537. return timerEventDefinitionType || '';
  3538. };
  3539. const setValue = value => {
  3540. // (1) Check if value is different to current type
  3541. if (value === timerEventDefinitionType) {
  3542. return;
  3543. }
  3544. // (2) Create empty formalExpression element
  3545. const formalExpression = bpmnFactory.create('bpmn:FormalExpression', {
  3546. body: undefined
  3547. });
  3548. formalExpression.$parent = timerEventDefinition;
  3549. // (3) Set the value for selected timerEventDefinitionType
  3550. const newProps = {
  3551. timeDuration: undefined,
  3552. timeDate: undefined,
  3553. timeCycle: undefined
  3554. };
  3555. if (value !== '') {
  3556. newProps[value] = formalExpression;
  3557. }
  3558. // (4) Execute businessObject update
  3559. commandStack.execute('element.updateModdleProperties', {
  3560. element,
  3561. moddleElement: timerEventDefinition,
  3562. properties: newProps
  3563. });
  3564. };
  3565. const getOptions = element => {
  3566. return [{
  3567. value: '',
  3568. label: translate('<none>')
  3569. }, {
  3570. value: 'timeDate',
  3571. label: translate('Date')
  3572. }, {
  3573. value: 'timeDuration',
  3574. label: translate('Duration')
  3575. }, {
  3576. value: 'timeCycle',
  3577. label: translate('Cycle')
  3578. }];
  3579. };
  3580. return propertiesPanel.SelectEntry({
  3581. element,
  3582. id: 'timerEventDefinitionType',
  3583. label: translate('Type'),
  3584. getValue,
  3585. setValue,
  3586. getOptions
  3587. });
  3588. }
  3589. /**
  3590. * TimerEventDefinitionValue - Generic textField entry allowing to specify the
  3591. * timerEventDefintionValue based on the set timerEventDefintionType. To be used
  3592. * together with timerEventDefinitionType.
  3593. *
  3594. * @param {type} props
  3595. * @return {TextFieldEntry}
  3596. */
  3597. function TimerEventDefinitionValue$2(props) {
  3598. const {
  3599. element,
  3600. timerEventDefinition,
  3601. timerEventDefinitionType
  3602. } = props;
  3603. const commandStack = useService('commandStack'),
  3604. translate = useService('translate'),
  3605. debounce = useService('debounceInput');
  3606. const timerEventFormalExpression = timerEventDefinition.get(timerEventDefinitionType);
  3607. const getValue = () => {
  3608. return timerEventFormalExpression && timerEventFormalExpression.get('body');
  3609. };
  3610. const setValue = value => {
  3611. commandStack.execute('element.updateModdleProperties', {
  3612. element,
  3613. moddleElement: timerEventFormalExpression,
  3614. properties: {
  3615. body: value
  3616. }
  3617. });
  3618. };
  3619. return propertiesPanel.TextFieldEntry({
  3620. element,
  3621. id: 'timerEventDefinitionValue',
  3622. label: translate('Value'),
  3623. getValue,
  3624. setValue,
  3625. debounce,
  3626. tooltip: getTimerEventDefinitionValueDescription$2(timerEventDefinitionType, translate)
  3627. });
  3628. }
  3629. // helper //////////////////////////
  3630. function getTimerEventDefinitionValueDescription$2(timerDefinitionType, translate) {
  3631. switch (timerDefinitionType) {
  3632. case 'timeDate':
  3633. return jsxRuntime.jsxs("div", {
  3634. children: [jsxRuntime.jsx("p", {
  3635. children: translate('A specific point in time defined as ISO 8601 combined date and time representation.')
  3636. }), jsxRuntime.jsxs("ul", {
  3637. children: [jsxRuntime.jsxs("li", {
  3638. children: [jsxRuntime.jsx("code", {
  3639. children: "2019-10-01T12:00:00Z"
  3640. }), " - ", translate('UTC time')]
  3641. }), jsxRuntime.jsxs("li", {
  3642. children: [jsxRuntime.jsx("code", {
  3643. children: "2019-10-02T08:09:40+02:00"
  3644. }), " - ", translate('UTC plus 2 hours zone offset')]
  3645. })]
  3646. }), jsxRuntime.jsx("a", {
  3647. href: "https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-date",
  3648. target: "_blank",
  3649. rel: "noopener",
  3650. children: translate('Documentation: Timer events')
  3651. })]
  3652. });
  3653. case 'timeCycle':
  3654. return jsxRuntime.jsxs("div", {
  3655. children: [jsxRuntime.jsx("p", {
  3656. children: translate('A cycle defined as ISO 8601 repeating intervals format.')
  3657. }), jsxRuntime.jsxs("ul", {
  3658. children: [jsxRuntime.jsxs("li", {
  3659. children: [jsxRuntime.jsx("code", {
  3660. children: "R5/PT10S"
  3661. }), " - ", translate('every 10 seconds, up to 5 times')]
  3662. }), jsxRuntime.jsxs("li", {
  3663. children: [jsxRuntime.jsx("code", {
  3664. children: "R/P1D"
  3665. }), " - ", translate('every day, infinitely')]
  3666. })]
  3667. }), jsxRuntime.jsx("a", {
  3668. href: "https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-cycle",
  3669. target: "_blank",
  3670. rel: "noopener",
  3671. children: translate('Documentation: Timer events')
  3672. })]
  3673. });
  3674. case 'timeDuration':
  3675. return jsxRuntime.jsxs("div", {
  3676. children: [jsxRuntime.jsx("p", {
  3677. children: translate('A time duration defined as ISO 8601 durations format.')
  3678. }), jsxRuntime.jsxs("ul", {
  3679. children: [jsxRuntime.jsxs("li", {
  3680. children: [jsxRuntime.jsx("code", {
  3681. children: "PT15S"
  3682. }), " - ", translate('15 seconds')]
  3683. }), jsxRuntime.jsxs("li", {
  3684. children: [jsxRuntime.jsx("code", {
  3685. children: "PT1H30M"
  3686. }), " - ", translate('1 hour and 30 minutes')]
  3687. }), jsxRuntime.jsxs("li", {
  3688. children: [jsxRuntime.jsx("code", {
  3689. children: "P14D"
  3690. }), " - ", translate('14 days')]
  3691. })]
  3692. }), jsxRuntime.jsx("a", {
  3693. href: "https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-duration",
  3694. target: "_blank",
  3695. rel: "noopener",
  3696. children: translate('Documentation: Timer events')
  3697. })]
  3698. });
  3699. }
  3700. }
  3701. function getId$1(idPrefix, id) {
  3702. return idPrefix ? idPrefix + id : id;
  3703. }
  3704. function GeneralGroup(element, injector) {
  3705. const translate = injector.get('translate');
  3706. const entries = [...NameProps({
  3707. element
  3708. }), ...IdProps(), ...ProcessProps({
  3709. element
  3710. }), ...ExecutableProps({
  3711. element
  3712. })];
  3713. return {
  3714. id: 'general',
  3715. label: translate('General'),
  3716. entries,
  3717. component: propertiesPanel.Group
  3718. };
  3719. }
  3720. function CompensationGroup(element, injector) {
  3721. const translate = injector.get('translate');
  3722. const group = {
  3723. label: translate('Compensation'),
  3724. id: 'compensation',
  3725. component: propertiesPanel.Group,
  3726. entries: [...CompensationProps({
  3727. element
  3728. })]
  3729. };
  3730. if (group.entries.length) {
  3731. return group;
  3732. }
  3733. return null;
  3734. }
  3735. function DocumentationGroup(element, injector) {
  3736. const translate = injector.get('translate');
  3737. const entries = [...DocumentationProps({
  3738. element
  3739. })];
  3740. return {
  3741. id: 'documentation',
  3742. label: translate('Documentation'),
  3743. entries,
  3744. component: propertiesPanel.Group
  3745. };
  3746. }
  3747. function ErrorGroup(element, injector) {
  3748. const translate = injector.get('translate');
  3749. const group = {
  3750. id: 'error',
  3751. label: translate('Error'),
  3752. component: propertiesPanel.Group,
  3753. entries: [...ErrorProps$2({
  3754. element
  3755. })]
  3756. };
  3757. if (group.entries.length) {
  3758. return group;
  3759. }
  3760. return null;
  3761. }
  3762. function MessageGroup(element, injector) {
  3763. const translate = injector.get('translate');
  3764. const group = {
  3765. id: 'message',
  3766. label: translate('Message'),
  3767. component: propertiesPanel.Group,
  3768. entries: [...MessageProps$1({
  3769. element
  3770. })]
  3771. };
  3772. if (group.entries.length) {
  3773. return group;
  3774. }
  3775. return null;
  3776. }
  3777. function SignalGroup(element, injector) {
  3778. const translate = injector.get('translate');
  3779. const group = {
  3780. id: 'signal',
  3781. label: translate('Signal'),
  3782. component: propertiesPanel.Group,
  3783. entries: [...SignalProps$1({
  3784. element
  3785. })]
  3786. };
  3787. if (group.entries.length) {
  3788. return group;
  3789. }
  3790. return null;
  3791. }
  3792. function LinkGroup(element, injector) {
  3793. const translate = injector.get('translate');
  3794. const group = {
  3795. label: translate('Link'),
  3796. id: 'link',
  3797. component: propertiesPanel.Group,
  3798. entries: [...LinkProps({
  3799. element
  3800. })]
  3801. };
  3802. if (group.entries.length) {
  3803. return group;
  3804. }
  3805. return null;
  3806. }
  3807. function EscalationGroup(element, injector) {
  3808. const translate = injector.get('translate');
  3809. const group = {
  3810. id: 'escalation',
  3811. label: translate('Escalation'),
  3812. component: propertiesPanel.Group,
  3813. entries: [...EscalationProps$2({
  3814. element
  3815. })]
  3816. };
  3817. if (group.entries.length) {
  3818. return group;
  3819. }
  3820. return null;
  3821. }
  3822. function TimerGroup(element, injector) {
  3823. const translate = injector.get('translate');
  3824. const group = {
  3825. label: translate('Timer'),
  3826. id: 'timer',
  3827. component: propertiesPanel.Group,
  3828. entries: [...TimerProps$2({
  3829. element
  3830. })]
  3831. };
  3832. if (group.entries.length) {
  3833. return group;
  3834. }
  3835. return null;
  3836. }
  3837. function MultiInstanceGroup(element, injector) {
  3838. const translate = injector.get('translate');
  3839. const group = {
  3840. label: translate('Multi-instance'),
  3841. id: 'multiInstance',
  3842. component: propertiesPanel.Group,
  3843. entries: [...MultiInstanceProps$2({
  3844. element
  3845. })]
  3846. };
  3847. if (group.entries.length) {
  3848. return group;
  3849. }
  3850. return null;
  3851. }
  3852. function getGroups(element, injector) {
  3853. const groups = [GeneralGroup(element, injector), DocumentationGroup(element, injector), CompensationGroup(element, injector), ErrorGroup(element, injector), LinkGroup(element, injector), MessageGroup(element, injector), MultiInstanceGroup(element, injector), SignalGroup(element, injector), EscalationGroup(element, injector), TimerGroup(element, injector)];
  3854. // contract: if a group returns null, it should not be displayed at all
  3855. return groups.filter(group => group !== null);
  3856. }
  3857. class BpmnPropertiesProvider {
  3858. constructor(propertiesPanel, injector) {
  3859. propertiesPanel.registerProvider(this);
  3860. this._injector = injector;
  3861. }
  3862. getGroups(element) {
  3863. return groups => {
  3864. groups = groups.concat(getGroups(element, this._injector));
  3865. return groups;
  3866. };
  3867. }
  3868. }
  3869. BpmnPropertiesProvider.$inject = ['propertiesPanel', 'injector'];
  3870. var index$2 = {
  3871. __init__: ['bpmnPropertiesProvider'],
  3872. bpmnPropertiesProvider: ['type', BpmnPropertiesProvider]
  3873. };
  3874. /**
  3875. * Get extension elements of business object. Optionally filter by type.
  3876. *
  3877. * @param {ModdleElement} businessObject
  3878. * @param {string} [type=undefined]
  3879. * @returns {Array<ModdleElement>}
  3880. */
  3881. function getExtensionElementsList(businessObject, type = undefined) {
  3882. const extensionElements = businessObject.get('extensionElements');
  3883. if (!extensionElements) {
  3884. return [];
  3885. }
  3886. const values = extensionElements.get('values');
  3887. if (!values || !values.length) {
  3888. return [];
  3889. }
  3890. if (type) {
  3891. return values.filter(value => ModelUtil.is(value, type));
  3892. }
  3893. return values;
  3894. }
  3895. /**
  3896. * Add one or more extension elements. Create bpmn:ExtensionElements if it doesn't exist.
  3897. *
  3898. * @param {ModdleElement} element
  3899. * @param {ModdleElement} businessObject
  3900. * @param {ModdleElement|Array<ModdleElement>} extensionElementsToAdd
  3901. * @param {CommandStack} commandStack
  3902. */
  3903. function addExtensionElements(element, businessObject, extensionElementToAdd, bpmnFactory, commandStack) {
  3904. const commands = [];
  3905. let extensionElements = businessObject.get('extensionElements');
  3906. // (1) create bpmn:ExtensionElements if it doesn't exist
  3907. if (!extensionElements) {
  3908. extensionElements = createElement('bpmn:ExtensionElements', {
  3909. values: []
  3910. }, businessObject, bpmnFactory);
  3911. commands.push({
  3912. cmd: 'element.updateModdleProperties',
  3913. context: {
  3914. element,
  3915. moddleElement: businessObject,
  3916. properties: {
  3917. extensionElements
  3918. }
  3919. }
  3920. });
  3921. }
  3922. extensionElementToAdd.$parent = extensionElements;
  3923. // (2) add extension element to list
  3924. commands.push({
  3925. cmd: 'element.updateModdleProperties',
  3926. context: {
  3927. element,
  3928. moddleElement: extensionElements,
  3929. properties: {
  3930. values: [...extensionElements.get('values'), extensionElementToAdd]
  3931. }
  3932. }
  3933. });
  3934. commandStack.execute('properties-panel.multi-command-executor', commands);
  3935. }
  3936. /**
  3937. * Remove one or more extension elements. Remove bpmn:ExtensionElements afterwards if it's empty.
  3938. *
  3939. * @param {ModdleElement} element
  3940. * @param {ModdleElement} businessObject
  3941. * @param {ModdleElement|Array<ModdleElement>} extensionElementsToRemove
  3942. * @param {CommandStack} commandStack
  3943. */
  3944. function removeExtensionElements(element, businessObject, extensionElementsToRemove, commandStack) {
  3945. if (!minDash.isArray(extensionElementsToRemove)) {
  3946. extensionElementsToRemove = [extensionElementsToRemove];
  3947. }
  3948. const extensionElements = businessObject.get('extensionElements'),
  3949. values = extensionElements.get('values').filter(value => !extensionElementsToRemove.includes(value));
  3950. commandStack.execute('element.updateModdleProperties', {
  3951. element,
  3952. moddleElement: extensionElements,
  3953. properties: {
  3954. values
  3955. }
  3956. });
  3957. }
  3958. const fallbackResolver = {
  3959. getVariablesForElement: bo => zeebe.getVariablesForElement(bo)
  3960. };
  3961. function withVariableContext(Component) {
  3962. return props => {
  3963. const {
  3964. bpmnElement,
  3965. element
  3966. } = props;
  3967. const bo = (bpmnElement || element).businessObject;
  3968. const [variables, setVariables] = hooks.useState([]);
  3969. const eventBus = useService('eventBus');
  3970. const variableResolver = useServiceIfAvailable('variableResolver', fallbackResolver);
  3971. hooks.useEffect(() => {
  3972. const extractVariables = async () => {
  3973. const variables = await variableResolver.getVariablesForElement(bo, element);
  3974. setVariables(variables.map(variable => {
  3975. return {
  3976. ...variable,
  3977. info: variable.info || variable.origin && 'Written in ' + variable.origin.map(origin => origin.name || origin.id).join(', ')
  3978. };
  3979. }));
  3980. };
  3981. // The callback must return undefined, so the event propagation is not canceled.
  3982. // Cf. https://github.com/camunda/camunda-modeler/issues/3392
  3983. const callback = () => {
  3984. extractVariables();
  3985. };
  3986. eventBus.on('commandStack.changed', callback);
  3987. callback();
  3988. return () => {
  3989. eventBus.off('commandStack.changed', callback);
  3990. };
  3991. }, [bo]);
  3992. return jsxRuntime.jsx(Component, {
  3993. ...props,
  3994. variables: variables
  3995. });
  3996. };
  3997. }
  3998. // helpers //////////
  3999. function useServiceIfAvailable(service, fallback) {
  4000. const resolved = useService(service, false);
  4001. if (!resolved) {
  4002. return fallback;
  4003. }
  4004. return resolved;
  4005. }
  4006. function withTooltipContainer(Component) {
  4007. return props => {
  4008. const tooltipContainer = hooks.useMemo(() => {
  4009. const config = useService('config');
  4010. return config && config.propertiesPanel && config.propertiesPanel.feelTooltipContainer;
  4011. }, []);
  4012. return jsxRuntime.jsx(Component, {
  4013. ...props,
  4014. tooltipContainer: tooltipContainer
  4015. });
  4016. };
  4017. }
  4018. const FeelEntry = withTooltipContainer(propertiesPanel.FeelEntry);
  4019. const FeelEntryWithVariableContext = withVariableContext(FeelEntry);
  4020. function AssignmentDefinitionProps(props) {
  4021. const {
  4022. element
  4023. } = props;
  4024. if (!ModelUtil.is(element, 'bpmn:UserTask')) {
  4025. return [];
  4026. }
  4027. return [{
  4028. id: 'assignmentDefinitionAssignee',
  4029. component: Assignee$1,
  4030. isEdited: propertiesPanel.isFeelEntryEdited
  4031. }, {
  4032. id: 'assignmentDefinitionCandidateGroups',
  4033. component: CandidateGroups$1,
  4034. isEdited: propertiesPanel.isFeelEntryEdited
  4035. }, {
  4036. id: 'assignmentDefinitionCandidateUsers',
  4037. component: CandidateUsers$1,
  4038. isEdited: propertiesPanel.isFeelEntryEdited
  4039. }];
  4040. }
  4041. function Assignee$1(props) {
  4042. const {
  4043. element
  4044. } = props;
  4045. const commandStack = useService('commandStack');
  4046. const bpmnFactory = useService('bpmnFactory');
  4047. const translate = useService('translate');
  4048. const debounce = useService('debounceInput');
  4049. const getValue = () => {
  4050. return (getAssignmentDefinition(element) || {}).assignee;
  4051. };
  4052. const setValue = value => {
  4053. const commands = [];
  4054. const businessObject = ModelUtil.getBusinessObject(element);
  4055. let extensionElements = businessObject.get('extensionElements');
  4056. // (1) ensure extension elements
  4057. if (!extensionElements) {
  4058. extensionElements = createElement('bpmn:ExtensionElements', {
  4059. values: []
  4060. }, businessObject, bpmnFactory);
  4061. commands.push({
  4062. cmd: 'element.updateModdleProperties',
  4063. context: {
  4064. element,
  4065. moddleElement: businessObject,
  4066. properties: {
  4067. extensionElements
  4068. }
  4069. }
  4070. });
  4071. }
  4072. // (2) ensure AssignmentDefinition
  4073. let assignmentDefinition = getAssignmentDefinition(element);
  4074. if (!assignmentDefinition) {
  4075. assignmentDefinition = createElement('zeebe:AssignmentDefinition', {}, extensionElements, bpmnFactory);
  4076. commands.push({
  4077. cmd: 'element.updateModdleProperties',
  4078. context: {
  4079. element,
  4080. moddleElement: extensionElements,
  4081. properties: {
  4082. values: [...extensionElements.get('values'), assignmentDefinition]
  4083. }
  4084. }
  4085. });
  4086. }
  4087. // (3) update assignee definition type
  4088. commands.push({
  4089. cmd: 'element.updateModdleProperties',
  4090. context: {
  4091. element,
  4092. moddleElement: assignmentDefinition,
  4093. properties: {
  4094. assignee: value
  4095. }
  4096. }
  4097. });
  4098. // (4) commit all updates
  4099. commandStack.execute('properties-panel.multi-command-executor', commands);
  4100. };
  4101. return FeelEntryWithVariableContext({
  4102. element,
  4103. id: 'assignmentDefinitionAssignee',
  4104. label: translate('Assignee'),
  4105. feel: 'optional',
  4106. getValue,
  4107. setValue,
  4108. debounce
  4109. });
  4110. }
  4111. function CandidateGroups$1(props) {
  4112. const {
  4113. element
  4114. } = props;
  4115. const commandStack = useService('commandStack');
  4116. const bpmnFactory = useService('bpmnFactory');
  4117. const translate = useService('translate');
  4118. const debounce = useService('debounceInput');
  4119. const getValue = () => {
  4120. return (getAssignmentDefinition(element) || {}).candidateGroups;
  4121. };
  4122. const setValue = value => {
  4123. let commands = [];
  4124. const businessObject = ModelUtil.getBusinessObject(element);
  4125. let extensionElements = businessObject.get('extensionElements');
  4126. // (1) ensure extension elements
  4127. if (!extensionElements) {
  4128. extensionElements = createElement('bpmn:ExtensionElements', {
  4129. values: []
  4130. }, businessObject, bpmnFactory);
  4131. commands.push({
  4132. cmd: 'element.updateModdleProperties',
  4133. context: {
  4134. element,
  4135. moddleElement: businessObject,
  4136. properties: {
  4137. extensionElements
  4138. }
  4139. }
  4140. });
  4141. }
  4142. // (2) ensure assignmentDefinition
  4143. let assignmentDefinition = getAssignmentDefinition(element);
  4144. if (!assignmentDefinition) {
  4145. assignmentDefinition = createElement('zeebe:AssignmentDefinition', {}, extensionElements, bpmnFactory);
  4146. commands.push({
  4147. cmd: 'element.updateModdleProperties',
  4148. context: {
  4149. element,
  4150. moddleElement: extensionElements,
  4151. properties: {
  4152. values: [...extensionElements.get('values'), assignmentDefinition]
  4153. }
  4154. }
  4155. });
  4156. }
  4157. // (3) update candidateGroups
  4158. commands.push({
  4159. cmd: 'element.updateModdleProperties',
  4160. context: {
  4161. element,
  4162. moddleElement: assignmentDefinition,
  4163. properties: {
  4164. candidateGroups: value
  4165. }
  4166. }
  4167. });
  4168. commandStack.execute('properties-panel.multi-command-executor', commands);
  4169. };
  4170. return FeelEntryWithVariableContext({
  4171. element,
  4172. id: 'assignmentDefinitionCandidateGroups',
  4173. label: translate('Candidate groups'),
  4174. feel: 'optional',
  4175. getValue,
  4176. setValue,
  4177. debounce
  4178. });
  4179. }
  4180. function CandidateUsers$1(props) {
  4181. const {
  4182. element
  4183. } = props;
  4184. const commandStack = useService('commandStack');
  4185. const bpmnFactory = useService('bpmnFactory');
  4186. const translate = useService('translate');
  4187. const debounce = useService('debounceInput');
  4188. const getValue = () => {
  4189. return (getAssignmentDefinition(element) || {}).candidateUsers;
  4190. };
  4191. const setValue = value => {
  4192. let commands = [];
  4193. const businessObject = ModelUtil.getBusinessObject(element);
  4194. let extensionElements = businessObject.get('extensionElements');
  4195. // (1) ensure extension elements
  4196. if (!extensionElements) {
  4197. extensionElements = createElement('bpmn:ExtensionElements', {
  4198. values: []
  4199. }, businessObject, bpmnFactory);
  4200. commands.push({
  4201. cmd: 'element.updateModdleProperties',
  4202. context: {
  4203. element,
  4204. moddleElement: businessObject,
  4205. properties: {
  4206. extensionElements
  4207. }
  4208. }
  4209. });
  4210. }
  4211. // (2) ensure assignmentDefinition
  4212. let assignmentDefinition = getAssignmentDefinition(element);
  4213. if (!assignmentDefinition) {
  4214. assignmentDefinition = createElement('zeebe:AssignmentDefinition', {}, extensionElements, bpmnFactory);
  4215. commands.push({
  4216. cmd: 'element.updateModdleProperties',
  4217. context: {
  4218. element,
  4219. moddleElement: extensionElements,
  4220. properties: {
  4221. values: [...extensionElements.get('values'), assignmentDefinition]
  4222. }
  4223. }
  4224. });
  4225. }
  4226. // (3) update candidateUsers
  4227. commands.push({
  4228. cmd: 'element.updateModdleProperties',
  4229. context: {
  4230. element,
  4231. moddleElement: assignmentDefinition,
  4232. properties: {
  4233. candidateUsers: value
  4234. }
  4235. }
  4236. });
  4237. commandStack.execute('properties-panel.multi-command-executor', commands);
  4238. };
  4239. return FeelEntryWithVariableContext({
  4240. element,
  4241. id: 'assignmentDefinitionCandidateUsers',
  4242. label: translate('Candidate users'),
  4243. feel: 'optional',
  4244. getValue,
  4245. setValue,
  4246. debounce
  4247. });
  4248. }
  4249. // helper ///////////////////////
  4250. function getAssignmentDefinition(element) {
  4251. const businessObject = ModelUtil.getBusinessObject(element);
  4252. return getExtensionElementsList(businessObject, 'zeebe:AssignmentDefinition')[0];
  4253. }
  4254. function isZeebeServiceTask(element) {
  4255. if (!ModelUtil.is(element, 'zeebe:ZeebeServiceTask')) return false;
  4256. if (ModelUtil.is(element, 'bpmn:EndEvent') || ModelUtil.is(element, 'bpmn:IntermediateThrowEvent')) {
  4257. return !!getMessageEventDefinition(element);
  4258. }
  4259. // BusinessRuleTask and ScriptTask are ServiceTasks only if they have a TaskDefinition
  4260. // (ie. if the implementation is set to ==JobWorker)
  4261. if (ModelUtil.isAny(element, ['bpmn:BusinessRuleTask', 'bpmn:ScriptTask']) && !getTaskDefinition$3(element)) {
  4262. return false;
  4263. }
  4264. return true;
  4265. }
  4266. function isMessageEndEvent(element) {
  4267. return ModelUtil.is(element, 'bpmn:EndEvent') && !!getMessageEventDefinition(element);
  4268. }
  4269. function isMessageThrowEvent(element) {
  4270. return ModelUtil.is(element, 'bpmn:IntermediateThrowEvent') && !!getMessageEventDefinition(element);
  4271. }
  4272. // helper ////////////////
  4273. function getTaskDefinition$3(element) {
  4274. const businessObject = ModelUtil.getBusinessObject(element);
  4275. return getExtensionElementsList(businessObject, 'zeebe:TaskDefinition')[0];
  4276. }
  4277. function areHeadersSupported(element) {
  4278. return ModelUtil.is(element, 'bpmn:UserTask') || isZeebeServiceTask(element);
  4279. }
  4280. /**
  4281. * Get first zeebe:TaskHeaders element for a specific element.
  4282. *
  4283. * @param {ModdleElement} element
  4284. *
  4285. * @return {ModdleElement} a zeebe:TaskHeader element
  4286. */
  4287. function getTaskHeaders$1(element) {
  4288. const businessObject = ModelUtil.getBusinessObject(element);
  4289. return getExtensionElementsList(businessObject, 'zeebe:TaskHeaders')[0];
  4290. }
  4291. /**
  4292. * Retrieve all zeebe:Header elements for a specific element.
  4293. *
  4294. * @param {ModdleElement} element
  4295. *
  4296. * @return {Array<ModdleElement>} a list of zeebe:Header elements
  4297. */
  4298. function getHeaders(element) {
  4299. const taskHeaders = getTaskHeaders$1(element);
  4300. return taskHeaders ? taskHeaders.get('values') : [];
  4301. }
  4302. const DMN_IMPLEMENTATION_OPTION = 'dmn',
  4303. JOB_WORKER_IMPLEMENTATION_OPTION$1 = 'jobWorker',
  4304. DEFAULT_IMPLEMENTATION_OPTION$1 = '';
  4305. function BusinessRuleImplementationProps(props) {
  4306. const {
  4307. element
  4308. } = props;
  4309. if (!ModelUtil.is(element, 'bpmn:BusinessRuleTask')) {
  4310. return [];
  4311. }
  4312. return [{
  4313. id: 'businessRuleImplementation',
  4314. component: BusinessRuleImplementation,
  4315. isEdited: () => isBusinessRuleImplementationEdited(element)
  4316. }];
  4317. }
  4318. function BusinessRuleImplementation(props) {
  4319. const {
  4320. element,
  4321. id
  4322. } = props;
  4323. const commandStack = useService('commandStack');
  4324. const bpmnFactory = useService('bpmnFactory');
  4325. const translate = useService('translate');
  4326. const getValue = () => {
  4327. if (getCalledDecision$1(element)) {
  4328. return DMN_IMPLEMENTATION_OPTION;
  4329. }
  4330. if (getTaskDefinition$2(element)) {
  4331. return JOB_WORKER_IMPLEMENTATION_OPTION$1;
  4332. }
  4333. return DEFAULT_IMPLEMENTATION_OPTION$1;
  4334. };
  4335. /**
  4336. * Set value by either creating a zeebe:calledDecision or a zeebe:taskDefintion
  4337. * extension element. Note that they must not exist both at the same time, however
  4338. * this will be ensured by a bpmn-js behavior (and not by the propPanel).
  4339. */
  4340. const setValue = value => {
  4341. let extensionElement, extensionElementType;
  4342. if (value === DMN_IMPLEMENTATION_OPTION) {
  4343. extensionElement = getCalledDecision$1(element);
  4344. extensionElementType = 'zeebe:CalledDecision';
  4345. } else if (value === JOB_WORKER_IMPLEMENTATION_OPTION$1) {
  4346. extensionElement = getTaskDefinition$2(element);
  4347. extensionElementType = 'zeebe:TaskDefinition';
  4348. } else {
  4349. resetElement$1(element, commandStack);
  4350. }
  4351. if (!extensionElement && extensionElementType) {
  4352. extensionElement = createElement(extensionElementType, {}, null, bpmnFactory);
  4353. updateExtensionElements$1(element, extensionElement, bpmnFactory, commandStack);
  4354. }
  4355. };
  4356. const getOptions = () => {
  4357. const options = [{
  4358. value: DEFAULT_IMPLEMENTATION_OPTION$1,
  4359. label: translate('<none>')
  4360. }, {
  4361. value: DMN_IMPLEMENTATION_OPTION,
  4362. label: translate('DMN decision')
  4363. }, {
  4364. value: JOB_WORKER_IMPLEMENTATION_OPTION$1,
  4365. label: translate('Job worker')
  4366. }];
  4367. return options;
  4368. };
  4369. return propertiesPanel.SelectEntry({
  4370. element,
  4371. id,
  4372. label: translate('Implementation'),
  4373. getValue,
  4374. setValue,
  4375. getOptions
  4376. });
  4377. }
  4378. // helper ///////////////////////
  4379. function getTaskDefinition$2(element) {
  4380. const businessObject = ModelUtil.getBusinessObject(element);
  4381. return getExtensionElementsList(businessObject, 'zeebe:TaskDefinition')[0];
  4382. }
  4383. function getCalledDecision$1(element) {
  4384. const businessObject = ModelUtil.getBusinessObject(element);
  4385. return getExtensionElementsList(businessObject, 'zeebe:CalledDecision')[0];
  4386. }
  4387. function isBusinessRuleImplementationEdited(element) {
  4388. return getTaskDefinition$2(element);
  4389. }
  4390. function resetElement$1(element, commandStack) {
  4391. const businessObject = ModelUtil.getBusinessObject(element);
  4392. const toRemove = [getTaskDefinition$2(element), getTaskHeaders$1(element), getCalledDecision$1(element)].filter(Boolean);
  4393. removeExtensionElements(element, businessObject, toRemove, commandStack);
  4394. }
  4395. function updateExtensionElements$1(element, extensionElementToAdd, bpmnFactory, commandStack) {
  4396. const businessObject = ModelUtil.getBusinessObject(element);
  4397. const commands = [];
  4398. let extensionElements = businessObject.get('extensionElements');
  4399. let extensionElementValues;
  4400. // (1) create bpmn:ExtensionElements if it doesn't exist
  4401. if (!extensionElements) {
  4402. extensionElements = createElement('bpmn:ExtensionElements', {
  4403. values: []
  4404. }, businessObject, bpmnFactory);
  4405. commands.push({
  4406. cmd: 'element.updateModdleProperties',
  4407. context: {
  4408. element,
  4409. moddleElement: businessObject,
  4410. properties: {
  4411. extensionElements
  4412. }
  4413. }
  4414. });
  4415. }
  4416. extensionElementToAdd.$parent = extensionElements;
  4417. // (2) remove old exension element from extensionElements
  4418. if (ModelUtil.is(extensionElementToAdd, 'zeebe:TaskDefinition')) {
  4419. extensionElementValues = minDash.without(extensionElements.get('values'), getCalledDecision$1(element));
  4420. } else if (ModelUtil.is(extensionElementToAdd, 'zeebe:CalledDecision')) {
  4421. extensionElementValues = minDash.without(extensionElements.get('values'), getTaskDefinition$2(element));
  4422. }
  4423. // (3) add extension element to list
  4424. commands.push({
  4425. cmd: 'element.updateModdleProperties',
  4426. context: {
  4427. element,
  4428. moddleElement: extensionElements,
  4429. properties: {
  4430. values: [...extensionElementValues, extensionElementToAdd]
  4431. }
  4432. }
  4433. });
  4434. commandStack.execute('properties-panel.multi-command-executor', commands);
  4435. }
  4436. function CalledDecisionProps(props) {
  4437. const {
  4438. element
  4439. } = props;
  4440. if (!ModelUtil.is(element, 'bpmn:BusinessRuleTask') || !getCalledDecision(element)) {
  4441. return [];
  4442. }
  4443. return [{
  4444. id: 'decisionId',
  4445. component: DecisionID,
  4446. isEdited: propertiesPanel.isFeelEntryEdited
  4447. }, {
  4448. id: 'resultVariable',
  4449. component: ResultVariable$4,
  4450. isEdited: propertiesPanel.isTextFieldEntryEdited
  4451. }];
  4452. }
  4453. function DecisionID(props) {
  4454. const {
  4455. element,
  4456. id
  4457. } = props;
  4458. const commandStack = useService('commandStack');
  4459. const bpmnFactory = useService('bpmnFactory');
  4460. const translate = useService('translate');
  4461. const debounce = useService('debounceInput');
  4462. const getValue = () => {
  4463. return (getCalledDecision(element) || {}).decisionId;
  4464. };
  4465. const setValue = value => {
  4466. const commands = [];
  4467. const businessObject = ModelUtil.getBusinessObject(element);
  4468. let extensionElements = businessObject.get('extensionElements');
  4469. // (1) ensure extension elements
  4470. if (!extensionElements) {
  4471. extensionElements = createElement('bpmn:ExtensionElements', {
  4472. values: []
  4473. }, businessObject, bpmnFactory);
  4474. commands.push({
  4475. cmd: 'element.updateModdleProperties',
  4476. context: {
  4477. element,
  4478. moddleElement: businessObject,
  4479. properties: {
  4480. extensionElements
  4481. }
  4482. }
  4483. });
  4484. }
  4485. // (2) ensure calledDecision
  4486. let calledDecision = getCalledDecision(element);
  4487. if (!calledDecision) {
  4488. calledDecision = createElement('zeebe:CalledDecision', {}, extensionElements, bpmnFactory);
  4489. commands.push({
  4490. cmd: 'element.updateModdleProperties',
  4491. context: {
  4492. element,
  4493. moddleElement: extensionElements,
  4494. properties: {
  4495. values: [...extensionElements.get('values'), calledDecision]
  4496. }
  4497. }
  4498. });
  4499. }
  4500. // (3) update caledDecision.decisionId
  4501. commands.push({
  4502. cmd: 'element.updateModdleProperties',
  4503. context: {
  4504. element,
  4505. moddleElement: calledDecision,
  4506. properties: {
  4507. decisionId: value
  4508. }
  4509. }
  4510. });
  4511. // (4) commit all updates
  4512. commandStack.execute('properties-panel.multi-command-executor', commands);
  4513. };
  4514. return FeelEntryWithVariableContext({
  4515. element,
  4516. id,
  4517. label: translate('Decision ID'),
  4518. feel: 'optional',
  4519. getValue,
  4520. setValue,
  4521. debounce
  4522. });
  4523. }
  4524. function ResultVariable$4(props) {
  4525. const {
  4526. element,
  4527. id
  4528. } = props;
  4529. const commandStack = useService('commandStack');
  4530. const bpmnFactory = useService('bpmnFactory');
  4531. const translate = useService('translate');
  4532. const debounce = useService('debounceInput');
  4533. const getValue = () => {
  4534. return (getCalledDecision(element) || {}).resultVariable;
  4535. };
  4536. const setValue = value => {
  4537. const commands = [];
  4538. const businessObject = ModelUtil.getBusinessObject(element);
  4539. let extensionElements = businessObject.get('extensionElements');
  4540. // (1) ensure extension elements
  4541. if (!extensionElements) {
  4542. extensionElements = createElement('bpmn:ExtensionElements', {
  4543. values: []
  4544. }, businessObject, bpmnFactory);
  4545. commands.push({
  4546. cmd: 'element.updateModdleProperties',
  4547. context: {
  4548. element,
  4549. moddleElement: businessObject,
  4550. properties: {
  4551. extensionElements
  4552. }
  4553. }
  4554. });
  4555. }
  4556. // (2) ensure calledDecision
  4557. let calledDecision = getCalledDecision(element);
  4558. if (!calledDecision) {
  4559. calledDecision = createElement('zeebe:CalledDecision', {}, extensionElements, bpmnFactory);
  4560. commands.push({
  4561. cmd: 'element.updateModdleProperties',
  4562. context: {
  4563. element,
  4564. moddleElement: extensionElements,
  4565. properties: {
  4566. values: [...extensionElements.get('values'), calledDecision]
  4567. }
  4568. }
  4569. });
  4570. }
  4571. // (3) update caledDecision.decisionId
  4572. commands.push({
  4573. cmd: 'element.updateModdleProperties',
  4574. context: {
  4575. element,
  4576. moddleElement: calledDecision,
  4577. properties: {
  4578. resultVariable: value
  4579. }
  4580. }
  4581. });
  4582. // (4) commit all updates
  4583. commandStack.execute('properties-panel.multi-command-executor', commands);
  4584. };
  4585. return propertiesPanel.TextFieldEntry({
  4586. element,
  4587. id,
  4588. label: translate('Result variable'),
  4589. getValue,
  4590. setValue,
  4591. debounce
  4592. });
  4593. }
  4594. // helper ///////////////////////
  4595. function getCalledDecision(element) {
  4596. const businessObject = ModelUtil.getBusinessObject(element);
  4597. return getExtensionElementsList(businessObject, 'zeebe:CalledDecision')[0];
  4598. }
  4599. function ConditionProps$1(props) {
  4600. const {
  4601. element
  4602. } = props;
  4603. if (!ModelUtil.is(element, 'bpmn:SequenceFlow')) {
  4604. return [];
  4605. }
  4606. const conditionProps = [];
  4607. if (isConditionalSource$1(element.source)) {
  4608. conditionProps.push({
  4609. id: 'conditionExpression',
  4610. component: ConditionExpression$1,
  4611. isEdited: propertiesPanel.isFeelEntryEdited
  4612. });
  4613. }
  4614. return conditionProps;
  4615. }
  4616. function ConditionExpression$1(props) {
  4617. const {
  4618. element
  4619. } = props;
  4620. const commandStack = useService('commandStack'),
  4621. bpmnFactory = useService('bpmnFactory'),
  4622. translate = useService('translate'),
  4623. debounce = useService('debounceInput');
  4624. const getValue = () => {
  4625. return getConditionExpression$1(element);
  4626. };
  4627. const setValue = value => {
  4628. const commands = [];
  4629. const businessObject = ModelUtil.getBusinessObject(element);
  4630. // (1) If we set value to a default flow, make it a non-default flow
  4631. // by updating the element source
  4632. const source = element.source;
  4633. if (source.businessObject.default === businessObject) {
  4634. commands.push({
  4635. cmd: 'element.updateProperties',
  4636. context: {
  4637. element: source,
  4638. properties: {
  4639. 'default': undefined
  4640. }
  4641. }
  4642. });
  4643. }
  4644. // (2) Create and set formalExpression element containing the conditionExpression,
  4645. // unless the provided value is empty
  4646. const formalExpressionElement = value && value != '' ? createElement('bpmn:FormalExpression', {
  4647. body: value
  4648. }, businessObject, bpmnFactory) : undefined;
  4649. commands.push({
  4650. cmd: 'element.updateProperties',
  4651. context: {
  4652. element: element,
  4653. properties: {
  4654. conditionExpression: formalExpressionElement
  4655. }
  4656. }
  4657. });
  4658. // (3) Execute the commands
  4659. commandStack.execute('properties-panel.multi-command-executor', commands);
  4660. };
  4661. return FeelEntryWithVariableContext({
  4662. element,
  4663. id: 'conditionExpression',
  4664. label: translate('Condition expression'),
  4665. feel: 'required',
  4666. getValue,
  4667. setValue,
  4668. debounce
  4669. });
  4670. }
  4671. // helper //////////////////////////
  4672. const CONDITIONAL_SOURCES$1 = ['bpmn:Activity', 'bpmn:ExclusiveGateway', 'bpmn:InclusiveGateway'];
  4673. function isConditionalSource$1(element) {
  4674. return ModelingUtil.isAny(element, CONDITIONAL_SOURCES$1);
  4675. }
  4676. /**
  4677. * getConditionExpression - get the body value of a condition expression for a given element
  4678. *
  4679. * @param {ModdleElement} element
  4680. *
  4681. * @return {string|undefined}
  4682. */
  4683. function getConditionExpression$1(element) {
  4684. const businessObject = ModelUtil.getBusinessObject(element);
  4685. const conditionExpression = businessObject.conditionExpression;
  4686. if (conditionExpression) {
  4687. return conditionExpression.get('body');
  4688. }
  4689. }
  4690. function ErrorProps$1(props) {
  4691. const {
  4692. element
  4693. } = props;
  4694. const error = getError(element);
  4695. const entries = [];
  4696. if (error && ModelUtil.is(element, 'bpmn:ThrowEvent')) {
  4697. entries.push({
  4698. id: 'errorCode',
  4699. component: ErrorCode$1,
  4700. isEdited: propertiesPanel.isFeelEntryEdited
  4701. });
  4702. }
  4703. return entries;
  4704. }
  4705. function ErrorCode$1(props) {
  4706. const {
  4707. element
  4708. } = props;
  4709. const commandStack = useService('commandStack');
  4710. const translate = useService('translate');
  4711. const debounce = useService('debounceInput');
  4712. const error = getError(element);
  4713. const getValue = () => {
  4714. return error.get('errorCode');
  4715. };
  4716. const setValue = value => {
  4717. return commandStack.execute('element.updateModdleProperties', {
  4718. element,
  4719. moddleElement: error,
  4720. properties: {
  4721. errorCode: value
  4722. }
  4723. });
  4724. };
  4725. return FeelEntryWithVariableContext({
  4726. element,
  4727. id: 'errorCode',
  4728. label: translate('Code'),
  4729. feel: 'optional',
  4730. getValue,
  4731. setValue,
  4732. debounce
  4733. });
  4734. }
  4735. /**
  4736. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  4737. */
  4738. /**
  4739. * @returns {Array<Entry>} entries
  4740. */
  4741. function EscalationProps$1(props) {
  4742. const {
  4743. element
  4744. } = props;
  4745. // update throw events only
  4746. if (!ModelUtil.is(element, 'bpmn:ThrowEvent')) {
  4747. return [];
  4748. }
  4749. const escalation = getEscalation(element);
  4750. const entries = [];
  4751. if (escalation) {
  4752. entries.push({
  4753. id: 'escalationCode',
  4754. component: EscalationCode,
  4755. isEdited: propertiesPanel.isFeelEntryEdited
  4756. });
  4757. }
  4758. return entries;
  4759. }
  4760. function EscalationCode(props) {
  4761. const {
  4762. element
  4763. } = props;
  4764. const commandStack = useService('commandStack');
  4765. const translate = useService('translate');
  4766. const debounce = useService('debounceInput');
  4767. const escalation = getEscalation(element);
  4768. const getValue = () => {
  4769. return escalation.get('escalationCode');
  4770. };
  4771. const setValue = value => {
  4772. return commandStack.execute('element.updateModdleProperties', {
  4773. element,
  4774. moddleElement: escalation,
  4775. properties: {
  4776. escalationCode: value
  4777. }
  4778. });
  4779. };
  4780. return FeelEntryWithVariableContext({
  4781. element,
  4782. id: 'escalationCode',
  4783. label: translate('Code'),
  4784. feel: 'optional',
  4785. getValue,
  4786. setValue,
  4787. debounce
  4788. });
  4789. }
  4790. const FORM_KEY_PREFIX = 'camunda-forms:bpmn:',
  4791. USER_TASK_FORM_ID_PREFIX = 'UserTaskForm_';
  4792. const FORM_TYPES = {
  4793. CAMUNDA_FORM_EMBEDDED: 'camunda-form-embedded',
  4794. CAMUNDA_FORM_LINKED: 'camunda-form-linked',
  4795. CUSTOM_FORM: 'custom-form'
  4796. };
  4797. function getFormDefinition(element) {
  4798. const businessObject = ModelUtil.getBusinessObject(element);
  4799. const formDefinitions = getExtensionElementsList(businessObject, 'zeebe:FormDefinition');
  4800. return formDefinitions[0];
  4801. }
  4802. function getUserTaskForm(element, rootElement) {
  4803. rootElement = rootElement || getRootElement$1(element);
  4804. const formDefinition = getFormDefinition(element);
  4805. if (!formDefinition) {
  4806. return;
  4807. }
  4808. const formKey = formDefinition.get('formKey');
  4809. const userTaskForms = getExtensionElementsList(rootElement, 'zeebe:UserTaskForm');
  4810. return userTaskForms.find(userTaskForm => {
  4811. return userTaskFormIdToFormKey(userTaskForm.get('id')) === formKey;
  4812. });
  4813. }
  4814. function userTaskFormIdToFormKey(userTaskFormId) {
  4815. return `${FORM_KEY_PREFIX}${userTaskFormId}`;
  4816. }
  4817. function createUserTaskFormId() {
  4818. return nextId(USER_TASK_FORM_ID_PREFIX);
  4819. }
  4820. function getRootElement$1(element) {
  4821. const businessObject = ModelUtil.getBusinessObject(element);
  4822. let parent = businessObject;
  4823. while (parent.$parent && !ModelUtil.is(parent, 'bpmn:Process')) {
  4824. parent = parent.$parent;
  4825. }
  4826. return parent;
  4827. }
  4828. function getFormType$1(element) {
  4829. const formDefinition = getFormDefinition(element);
  4830. if (!formDefinition) {
  4831. return;
  4832. }
  4833. const formId = formDefinition.get('formId'),
  4834. formKey = formDefinition.get('formKey');
  4835. if (minDash.isDefined(formId)) {
  4836. return FORM_TYPES.CAMUNDA_FORM_LINKED;
  4837. }
  4838. if (minDash.isDefined(formKey)) {
  4839. if (getUserTaskForm(element)) {
  4840. return FORM_TYPES.CAMUNDA_FORM_EMBEDDED;
  4841. }
  4842. return FORM_TYPES.CUSTOM_FORM;
  4843. }
  4844. }
  4845. function FormProps$1(props) {
  4846. const {
  4847. element
  4848. } = props;
  4849. if (!ModelUtil.is(element, 'bpmn:UserTask')) {
  4850. return [];
  4851. }
  4852. const entries = [{
  4853. id: 'formType',
  4854. component: FormType$1,
  4855. isEdited: propertiesPanel.isSelectEntryEdited
  4856. }];
  4857. const formType = getFormType$1(element);
  4858. if (formType === FORM_TYPES.CAMUNDA_FORM_EMBEDDED) {
  4859. entries.push({
  4860. id: 'formConfiguration',
  4861. component: FormConfiguration,
  4862. isEdited: propertiesPanel.isTextAreaEntryEdited
  4863. });
  4864. } else if (formType === FORM_TYPES.CAMUNDA_FORM_LINKED) {
  4865. entries.push({
  4866. id: 'formId',
  4867. component: FormId,
  4868. isEdited: propertiesPanel.isTextFieldEntryEdited
  4869. });
  4870. } else if (formType === FORM_TYPES.CUSTOM_FORM) {
  4871. entries.push({
  4872. id: 'customFormKey',
  4873. component: CustomFormKey,
  4874. isEdited: propertiesPanel.isTextFieldEntryEdited
  4875. });
  4876. }
  4877. return entries;
  4878. }
  4879. function FormType$1(props) {
  4880. const {
  4881. element
  4882. } = props;
  4883. const injector = useService('injector'),
  4884. translate = useService('translate');
  4885. const getValue = () => {
  4886. return getFormType$1(element) || '';
  4887. };
  4888. const setValue = value => {
  4889. if (value === FORM_TYPES.CAMUNDA_FORM_EMBEDDED) {
  4890. setUserTaskForm(injector, element, '');
  4891. } else if (value === FORM_TYPES.CAMUNDA_FORM_LINKED) {
  4892. setFormId(injector, element, '');
  4893. } else if (value === FORM_TYPES.CUSTOM_FORM) {
  4894. setCustomFormKey(injector, element, '');
  4895. } else {
  4896. removeFormDefinition(injector, element);
  4897. }
  4898. };
  4899. const getOptions = () => {
  4900. return [{
  4901. value: '',
  4902. label: translate('<none>')
  4903. }, {
  4904. value: FORM_TYPES.CAMUNDA_FORM_LINKED,
  4905. label: translate('Camunda Form (linked)')
  4906. }, {
  4907. value: FORM_TYPES.CAMUNDA_FORM_EMBEDDED,
  4908. label: translate('Camunda Form (embedded)')
  4909. }, {
  4910. value: FORM_TYPES.CUSTOM_FORM,
  4911. label: translate('Custom form key')
  4912. }];
  4913. };
  4914. return propertiesPanel.SelectEntry({
  4915. element,
  4916. id: 'formType',
  4917. label: translate('Type'),
  4918. getValue,
  4919. setValue,
  4920. getOptions
  4921. });
  4922. }
  4923. function FormConfiguration(props) {
  4924. const {
  4925. element
  4926. } = props;
  4927. const debounce = useService('debounceInput'),
  4928. injector = useService('injector'),
  4929. translate = useService('translate');
  4930. const getValue = () => {
  4931. return getUserTaskForm(element).get('body');
  4932. };
  4933. const setValue = value => {
  4934. setUserTaskForm(injector, element, minDash.isUndefined(value) ? '' : value);
  4935. };
  4936. return propertiesPanel.TextAreaEntry({
  4937. element,
  4938. id: 'formConfiguration',
  4939. label: translate('Form JSON configuration'),
  4940. rows: 4,
  4941. getValue,
  4942. setValue,
  4943. debounce
  4944. });
  4945. }
  4946. function FormId(props) {
  4947. const {
  4948. element
  4949. } = props;
  4950. const debounce = useService('debounceInput'),
  4951. injector = useService('injector'),
  4952. translate = useService('translate');
  4953. const getValue = () => {
  4954. return getFormDefinition(element).get('formId');
  4955. };
  4956. const setValue = value => {
  4957. setFormId(injector, element, minDash.isUndefined(value) ? '' : value);
  4958. };
  4959. return propertiesPanel.TextFieldEntry({
  4960. element,
  4961. id: 'formId',
  4962. label: translate('Form ID'),
  4963. getValue,
  4964. setValue,
  4965. debounce
  4966. });
  4967. }
  4968. function CustomFormKey(props) {
  4969. const {
  4970. element
  4971. } = props;
  4972. const debounce = useService('debounceInput'),
  4973. injector = useService('injector'),
  4974. translate = useService('translate');
  4975. const getValue = () => {
  4976. return getFormDefinition(element).get('formKey');
  4977. };
  4978. const setValue = value => {
  4979. setCustomFormKey(injector, element, minDash.isUndefined(value) ? '' : value);
  4980. };
  4981. return propertiesPanel.TextFieldEntry({
  4982. element,
  4983. id: 'customFormKey',
  4984. label: translate('Form key'),
  4985. getValue,
  4986. setValue,
  4987. debounce
  4988. });
  4989. }
  4990. // helpers /////////////
  4991. /**
  4992. * @typedef { { cmd: string, context: Object } } Command
  4993. * @typedef {Command[]} Commands
  4994. *
  4995. * @typedef {import('diagram-js/lib/model/Types').Element} Element
  4996. * @typedef {import('bpmn-js/lib/model/Types').ModdleElement} ModdleElement
  4997. *
  4998. * @param {import('didi').Injector} Injector
  4999. */
  5000. /**
  5001. * @param {Injector} injector
  5002. * @param {Element} element
  5003. *
  5004. * @returns { {
  5005. * commands: Commands,
  5006. * extensionElements: ModdleElement
  5007. * } }
  5008. */
  5009. function getOrCreateExtensionElements(injector, element, moddleElement) {
  5010. const businessObject = moddleElement || ModelUtil.getBusinessObject(element);
  5011. let extensionElements = businessObject.get('extensionElements');
  5012. if (extensionElements) {
  5013. return {
  5014. commands: [],
  5015. extensionElements
  5016. };
  5017. }
  5018. const bpmnFactory = injector.get('bpmnFactory');
  5019. extensionElements = createElement('bpmn:ExtensionElements', {
  5020. values: []
  5021. }, businessObject, bpmnFactory);
  5022. return {
  5023. commands: [createUpdateModdlePropertiesCommand(element, businessObject, {
  5024. extensionElements
  5025. })],
  5026. extensionElements
  5027. };
  5028. }
  5029. /**
  5030. * @param {Injector} injector
  5031. * @param {Element} element
  5032. *
  5033. * @returns { {
  5034. * commands: Commands,
  5035. * formDefinition: ModdleElement
  5036. * } }
  5037. */
  5038. function getOrCreateFormDefintition(injector, element) {
  5039. let formDefinition = getFormDefinition(element);
  5040. if (formDefinition) {
  5041. return {
  5042. commands: [],
  5043. formDefinition
  5044. };
  5045. }
  5046. const {
  5047. extensionElements,
  5048. commands
  5049. } = getOrCreateExtensionElements(injector, element);
  5050. formDefinition = createFormDefinition(injector, {}, extensionElements);
  5051. return {
  5052. commands: [...commands, createUpdateModdlePropertiesCommand(element, extensionElements, {
  5053. values: [...extensionElements.get('values'), formDefinition]
  5054. })],
  5055. formDefinition
  5056. };
  5057. }
  5058. /**
  5059. * @param {Injector} injector
  5060. * @param {Element} element
  5061. *
  5062. * @returns { {
  5063. * commands: Commands,
  5064. * formDefinition: ModdleElement,
  5065. * userTaskForm: ModdleElement
  5066. * } }
  5067. */
  5068. function getOrCreateUserTaskForm(injector, element) {
  5069. let userTaskForm = getUserTaskForm(element);
  5070. if (userTaskForm) {
  5071. return {
  5072. commands: [],
  5073. formDefinition: getFormDefinition(element),
  5074. userTaskForm
  5075. };
  5076. }
  5077. const rootElement = getRootElement$1(element);
  5078. const {
  5079. extensionElements,
  5080. commands: extensionElementsCommands
  5081. } = getOrCreateExtensionElements(injector, element, rootElement);
  5082. const {
  5083. formDefinition,
  5084. commands: formDefinitionCommands
  5085. } = getOrCreateFormDefintition(injector, element);
  5086. const formId = createUserTaskFormId();
  5087. userTaskForm = createUserTaskForm(injector, {
  5088. id: formId
  5089. }, extensionElements);
  5090. return {
  5091. commands: [...extensionElementsCommands, ...formDefinitionCommands, createUpdateModdlePropertiesCommand(element, extensionElements, {
  5092. values: [...extensionElements.get('values'), userTaskForm]
  5093. }), createUpdateModdlePropertiesCommand(element, formDefinition, {
  5094. formKey: userTaskFormIdToFormKey(formId)
  5095. })],
  5096. formDefinition,
  5097. userTaskForm
  5098. };
  5099. }
  5100. function setFormId(injector, element, formId) {
  5101. let {
  5102. commands,
  5103. formDefinition
  5104. } = getOrCreateFormDefintition(injector, element);
  5105. const commandStack = injector.get('commandStack');
  5106. commandStack.execute('properties-panel.multi-command-executor', [...commands, createUpdateModdlePropertiesCommand(element, formDefinition, {
  5107. formId
  5108. })]);
  5109. }
  5110. function setCustomFormKey(injector, element, formKey) {
  5111. let {
  5112. commands,
  5113. formDefinition
  5114. } = getOrCreateFormDefintition(injector, element);
  5115. const commandStack = injector.get('commandStack');
  5116. commandStack.execute('properties-panel.multi-command-executor', [...commands, createUpdateModdlePropertiesCommand(element, formDefinition, {
  5117. formKey
  5118. })]);
  5119. }
  5120. function setUserTaskForm(injector, element, body) {
  5121. let {
  5122. commands,
  5123. userTaskForm
  5124. } = getOrCreateUserTaskForm(injector, element);
  5125. const commandStack = injector.get('commandStack');
  5126. commandStack.execute('properties-panel.multi-command-executor', [...commands, createUpdateModdlePropertiesCommand(element, userTaskForm, {
  5127. body
  5128. })]);
  5129. }
  5130. function removeFormDefinition(injector, element) {
  5131. const formDefinition = getFormDefinition(element);
  5132. /**
  5133. * @type {import('bpmn-js/lib/features/modeling/Modeling').default}
  5134. */
  5135. const modeling = injector.get('modeling');
  5136. if (formDefinition) {
  5137. const businessObject = ModelUtil.getBusinessObject(element),
  5138. extensionElements = businessObject.get('extensionElements');
  5139. modeling.updateModdleProperties(element, extensionElements, {
  5140. values: minDash.without(extensionElements.get('values'), formDefinition)
  5141. });
  5142. }
  5143. }
  5144. /**
  5145. * @param {Injector} injector
  5146. * @param {Object} properties
  5147. * @param {ModdleElement} parent
  5148. *
  5149. * @returns {ModdleElement}
  5150. */
  5151. function createFormDefinition(injector, properties, parent) {
  5152. const bpmnFactory = injector.get('bpmnFactory');
  5153. return createElement('zeebe:FormDefinition', properties, parent, bpmnFactory);
  5154. }
  5155. /**
  5156. * @param {Injector} injector
  5157. * @param {Object} properties
  5158. * @param {ModdleElement} parent
  5159. *
  5160. * @returns {ModdleElement}
  5161. */
  5162. function createUserTaskForm(injector, properties, parent) {
  5163. const bpmnFactory = injector.get('bpmnFactory');
  5164. return createElement('zeebe:UserTaskForm', properties, parent, bpmnFactory);
  5165. }
  5166. /**
  5167. * @param {Element} element
  5168. * @param {ModdleElement} moddleElement
  5169. * @param {Object} properties
  5170. *
  5171. * @returns {Command}
  5172. */
  5173. function createUpdateModdlePropertiesCommand(element, moddleElement, properties) {
  5174. return {
  5175. cmd: 'element.updateModdleProperties',
  5176. context: {
  5177. element,
  5178. moddleElement,
  5179. properties
  5180. }
  5181. };
  5182. }
  5183. function Header(props) {
  5184. const {
  5185. idPrefix,
  5186. header
  5187. } = props;
  5188. const entries = [{
  5189. id: idPrefix + '-key',
  5190. component: KeyProperty,
  5191. header,
  5192. idPrefix
  5193. }, {
  5194. id: idPrefix + '-value',
  5195. component: ValueProperty$2,
  5196. header,
  5197. idPrefix
  5198. }];
  5199. return entries;
  5200. }
  5201. function KeyProperty(props) {
  5202. const {
  5203. idPrefix,
  5204. element,
  5205. header
  5206. } = props;
  5207. const commandStack = useService('commandStack');
  5208. const translate = useService('translate');
  5209. const debounce = useService('debounceInput');
  5210. const setValue = value => {
  5211. commandStack.execute('element.updateModdleProperties', {
  5212. element,
  5213. moddleElement: header,
  5214. properties: {
  5215. key: value
  5216. }
  5217. });
  5218. };
  5219. const getValue = header => {
  5220. return header.key;
  5221. };
  5222. return propertiesPanel.TextFieldEntry({
  5223. element: header,
  5224. id: idPrefix + '-key',
  5225. label: translate('Key'),
  5226. getValue,
  5227. setValue,
  5228. debounce
  5229. });
  5230. }
  5231. function ValueProperty$2(props) {
  5232. const {
  5233. idPrefix,
  5234. element,
  5235. header
  5236. } = props;
  5237. const commandStack = useService('commandStack');
  5238. const translate = useService('translate');
  5239. const debounce = useService('debounceInput');
  5240. const setValue = value => {
  5241. commandStack.execute('element.updateModdleProperties', {
  5242. element,
  5243. moddleElement: header,
  5244. properties: {
  5245. value
  5246. }
  5247. });
  5248. };
  5249. const getValue = header => {
  5250. return header.value;
  5251. };
  5252. return propertiesPanel.TextFieldEntry({
  5253. element: header,
  5254. id: idPrefix + '-value',
  5255. label: translate('Value'),
  5256. getValue,
  5257. setValue,
  5258. debounce
  5259. });
  5260. }
  5261. function HeaderProps({
  5262. element,
  5263. injector
  5264. }) {
  5265. if (!areHeadersSupported(element)) {
  5266. return null;
  5267. }
  5268. const headers = getHeaders(element) || [];
  5269. const bpmnFactory = injector.get('bpmnFactory'),
  5270. commandStack = injector.get('commandStack');
  5271. const items = headers.map((header, index) => {
  5272. const id = element.id + '-header-' + index;
  5273. return {
  5274. id,
  5275. label: header.get('key') || '',
  5276. entries: Header({
  5277. idPrefix: id,
  5278. element,
  5279. header
  5280. }),
  5281. autoFocusEntry: id + '-key',
  5282. remove: removeFactory$c({
  5283. commandStack,
  5284. element,
  5285. header
  5286. })
  5287. };
  5288. });
  5289. return {
  5290. items,
  5291. add: addFactory$9({
  5292. bpmnFactory,
  5293. commandStack,
  5294. element
  5295. }),
  5296. shouldSort: false
  5297. };
  5298. }
  5299. function removeFactory$c({
  5300. commandStack,
  5301. element,
  5302. header
  5303. }) {
  5304. return function (event) {
  5305. event.stopPropagation();
  5306. let commands = [];
  5307. const taskHeaders = getTaskHeaders$1(element);
  5308. if (!taskHeaders) {
  5309. return;
  5310. }
  5311. const newTaskHeaders = minDash.without(taskHeaders.get('values'), header);
  5312. commands.push({
  5313. cmd: 'element.updateModdleProperties',
  5314. context: {
  5315. element,
  5316. moddleElement: taskHeaders,
  5317. properties: {
  5318. values: newTaskHeaders
  5319. }
  5320. }
  5321. });
  5322. // remove zeebe:TaskHeaders if there are no headers anymore
  5323. if (!newTaskHeaders.length) {
  5324. const businessObject = ModelUtil.getBusinessObject(element),
  5325. extensionElements = businessObject.get('extensionElements');
  5326. commands.push({
  5327. cmd: 'element.updateModdleProperties',
  5328. context: {
  5329. element,
  5330. moddleElement: extensionElements,
  5331. properties: {
  5332. values: minDash.without(extensionElements.get('values'), taskHeaders)
  5333. }
  5334. }
  5335. });
  5336. }
  5337. commandStack.execute('properties-panel.multi-command-executor', commands);
  5338. };
  5339. }
  5340. function addFactory$9({
  5341. bpmnFactory,
  5342. commandStack,
  5343. element
  5344. }) {
  5345. return function (event) {
  5346. event.stopPropagation();
  5347. let commands = [];
  5348. const businessObject = ModelUtil.getBusinessObject(element);
  5349. let extensionElements = businessObject.get('extensionElements');
  5350. // (1) ensure extension elements
  5351. if (!extensionElements) {
  5352. extensionElements = createElement('bpmn:ExtensionElements', {
  5353. values: []
  5354. }, businessObject, bpmnFactory);
  5355. commands.push({
  5356. cmd: 'element.updateModdleProperties',
  5357. context: {
  5358. element,
  5359. moddleElement: businessObject,
  5360. properties: {
  5361. extensionElements
  5362. }
  5363. }
  5364. });
  5365. }
  5366. // (2) ensure zeebe:TaskHeaders
  5367. let taskHeaders = getTaskHeaders$1(element);
  5368. if (!taskHeaders) {
  5369. const parent = extensionElements;
  5370. taskHeaders = createElement('zeebe:TaskHeaders', {
  5371. values: []
  5372. }, parent, bpmnFactory);
  5373. commands.push({
  5374. cmd: 'element.updateModdleProperties',
  5375. context: {
  5376. element,
  5377. moddleElement: extensionElements,
  5378. properties: {
  5379. values: [...extensionElements.get('values'), taskHeaders]
  5380. }
  5381. }
  5382. });
  5383. }
  5384. // (3) create header
  5385. const header = createElement('zeebe:Header', {}, taskHeaders, bpmnFactory);
  5386. // (4) add header to list
  5387. commands.push({
  5388. cmd: 'element.updateModdleProperties',
  5389. context: {
  5390. element,
  5391. moddleElement: taskHeaders,
  5392. properties: {
  5393. values: [...taskHeaders.get('values'), header]
  5394. }
  5395. }
  5396. });
  5397. commandStack.execute('properties-panel.multi-command-executor', commands);
  5398. };
  5399. }
  5400. function getProcessId(element) {
  5401. const calledElement = getCalledElement(element);
  5402. return calledElement ? calledElement.get('processId') : '';
  5403. }
  5404. function getCalledElement(element) {
  5405. const calledElements = getCalledElements(element);
  5406. return calledElements[0];
  5407. }
  5408. function getCalledElements(element) {
  5409. const bo = ModelUtil.getBusinessObject(element);
  5410. const extElements = getExtensionElementsList(bo, 'zeebe:CalledElement');
  5411. return extElements;
  5412. }
  5413. function InputPropagationProps(props) {
  5414. const {
  5415. element
  5416. } = props;
  5417. if (!ModelUtil.is(element, 'bpmn:CallActivity')) {
  5418. return [];
  5419. }
  5420. return [{
  5421. id: 'propagateAllParentVariables',
  5422. component: PropagateAllParentVariables,
  5423. isEdited: propertiesPanel.isToggleSwitchEntryEdited
  5424. }];
  5425. }
  5426. function PropagateAllParentVariables(props) {
  5427. const {
  5428. element
  5429. } = props;
  5430. const commandStack = useService('commandStack'),
  5431. bpmnFactory = useService('bpmnFactory'),
  5432. translate = useService('translate');
  5433. const propagateAllParentVariables = isPropagateAllParentVariables(element);
  5434. const getValue = () => {
  5435. return propagateAllParentVariables;
  5436. };
  5437. const setValue = value => {
  5438. const commands = [];
  5439. const businessObject = ModelUtil.getBusinessObject(element);
  5440. // (1) ensure extension elements
  5441. let extensionElements = businessObject.get('extensionElements');
  5442. if (!extensionElements) {
  5443. extensionElements = createElement('bpmn:ExtensionElements', {
  5444. values: []
  5445. }, businessObject, bpmnFactory);
  5446. commands.push({
  5447. cmd: 'element.updateModdleProperties',
  5448. context: {
  5449. element,
  5450. moddleElement: businessObject,
  5451. properties: {
  5452. extensionElements
  5453. }
  5454. }
  5455. });
  5456. }
  5457. // (2) ensure zeebe:calledElement
  5458. let calledElement = getCalledElement(businessObject);
  5459. if (!calledElement) {
  5460. calledElement = createElement('zeebe:CalledElement', {}, extensionElements, bpmnFactory);
  5461. commands.push({
  5462. cmd: 'element.updateModdleProperties',
  5463. context: {
  5464. element,
  5465. moddleElement: extensionElements,
  5466. properties: {
  5467. values: [...extensionElements.get('values'), calledElement]
  5468. }
  5469. }
  5470. });
  5471. }
  5472. // (3) Update propagateAllParentVariables attribute
  5473. commands.push({
  5474. cmd: 'element.updateModdleProperties',
  5475. context: {
  5476. element,
  5477. moddleElement: calledElement,
  5478. properties: {
  5479. propagateAllParentVariables: value
  5480. }
  5481. }
  5482. });
  5483. // (4) Execute the commands
  5484. commandStack.execute('properties-panel.multi-command-executor', commands);
  5485. };
  5486. return propertiesPanel.ToggleSwitchEntry({
  5487. id: 'propagateAllParentVariables',
  5488. label: translate('Propagate all variables'),
  5489. switcherLabel: propagateAllParentVariables ? translate('On') : translate('Off'),
  5490. tooltip: jsxRuntime.jsxs("div", {
  5491. children: [jsxRuntime.jsx("p", {
  5492. children: translate('If turned on, all variables from this process instance will be propagated to the child process instance.')
  5493. }), jsxRuntime.jsx("p", {
  5494. children: translate('Otherwise, only variables defined via input mappings will be propagated.')
  5495. })]
  5496. }),
  5497. getValue,
  5498. setValue
  5499. });
  5500. }
  5501. // helper //////////////////////////
  5502. /**
  5503. * Check whether the propagateAllParentVariables attribute is set on an element.
  5504. * @param {Object} element
  5505. *
  5506. * @returns {boolean}
  5507. */
  5508. function isPropagateAllParentVariables(element) {
  5509. if (!ModelUtil.is(element, 'bpmn:CallActivity')) {
  5510. return undefined;
  5511. }
  5512. const bo = ModelUtil.getBusinessObject(element),
  5513. calledElement = getCalledElement(bo);
  5514. return calledElement && minDash.has(calledElement, 'propagateAllParentVariables') ? calledElement.get('propagateAllParentVariables') : /* default value */true;
  5515. }
  5516. function InputOutputParameter$1(props) {
  5517. const {
  5518. idPrefix,
  5519. parameter
  5520. } = props;
  5521. const entries = [{
  5522. id: idPrefix + '-target',
  5523. component: TargetProperty,
  5524. idPrefix,
  5525. parameter
  5526. }, {
  5527. id: idPrefix + '-source',
  5528. component: SourceProperty,
  5529. idPrefix,
  5530. parameter
  5531. }];
  5532. return entries;
  5533. }
  5534. function TargetProperty(props) {
  5535. const {
  5536. idPrefix,
  5537. element,
  5538. parameter
  5539. } = props;
  5540. const commandStack = useService('commandStack');
  5541. const translate = useService('translate');
  5542. const debounce = useService('debounceInput');
  5543. const setValue = value => {
  5544. commandStack.execute('element.updateModdleProperties', {
  5545. element,
  5546. moddleElement: parameter,
  5547. properties: {
  5548. target: value
  5549. }
  5550. });
  5551. };
  5552. const getValue = parameter => {
  5553. return parameter.target;
  5554. };
  5555. return propertiesPanel.TextFieldEntry({
  5556. element: parameter,
  5557. id: idPrefix + '-target',
  5558. label: translate(ModelUtil.is(parameter, 'zeebe:Input') ? 'Local variable name' : 'Process variable name'),
  5559. getValue,
  5560. setValue,
  5561. debounce
  5562. });
  5563. }
  5564. function SourceProperty(props) {
  5565. const {
  5566. idPrefix,
  5567. element,
  5568. parameter
  5569. } = props;
  5570. const commandStack = useService('commandStack');
  5571. const translate = useService('translate');
  5572. const debounce = useService('debounceInput');
  5573. const setValue = value => {
  5574. commandStack.execute('element.updateModdleProperties', {
  5575. element,
  5576. moddleElement: parameter,
  5577. properties: {
  5578. source: value
  5579. }
  5580. });
  5581. };
  5582. const getValue = parameter => {
  5583. return parameter.source;
  5584. };
  5585. return FeelEntryWithVariableContext({
  5586. bpmnElement: element,
  5587. element: parameter,
  5588. id: idPrefix + '-source',
  5589. label: translate('Variable assignment value'),
  5590. feel: 'required',
  5591. getValue,
  5592. setValue,
  5593. debounce
  5594. });
  5595. }
  5596. function getElements$1(bo, type, prop) {
  5597. const elems = getExtensionElementsList(bo, type);
  5598. return !prop ? elems : (elems[0] || {})[prop] || [];
  5599. }
  5600. function getParameters$1(element, prop) {
  5601. const ioMapping = getIoMapping(element);
  5602. return ioMapping && ioMapping.get(prop) || [];
  5603. }
  5604. /**
  5605. * Get a ioMapping from the business object
  5606. *
  5607. * @param {djs.model.Base} element
  5608. *
  5609. * @return {ModdleElement} the ioMapping object
  5610. */
  5611. function getIoMapping(element) {
  5612. const bo = ModelUtil.getBusinessObject(element);
  5613. return (getElements$1(bo, 'zeebe:IoMapping') || [])[0];
  5614. }
  5615. /**
  5616. * Return all input parameters existing in the business object, and
  5617. * an empty array if none exist.
  5618. *
  5619. * @param {djs.model.Base} element
  5620. *
  5621. * @return {Array} a list of input parameter objects
  5622. */
  5623. function getInputParameters$1(element) {
  5624. return getParameters$1.apply(this, [element, 'inputParameters']);
  5625. }
  5626. /**
  5627. * Return all output parameters existing in the business object, and
  5628. * an empty array if none exist.
  5629. *
  5630. * @param {djs.model.Base} element
  5631. *
  5632. * @return {Array} a list of output parameter objects
  5633. */
  5634. function getOutputParameters$1(element) {
  5635. return getParameters$1.apply(this, [element, 'outputParameters']);
  5636. }
  5637. function areInputParametersSupported$1(element) {
  5638. return ModelingUtil.isAny(element, ['bpmn:UserTask', 'bpmn:SubProcess', 'bpmn:CallActivity', 'bpmn:BusinessRuleTask', 'bpmn:ScriptTask']) || isZeebeServiceTask(element) || isSignalThrowEvent(element);
  5639. }
  5640. function areOutputParametersSupported$1(element) {
  5641. if (ModelUtil.is(element, 'bpmn:EndEvent') && getErrorEventDefinition(element)) {
  5642. return false;
  5643. }
  5644. return ModelingUtil.isAny(element, ['zeebe:ZeebeServiceTask', 'bpmn:UserTask', 'bpmn:SubProcess', 'bpmn:ReceiveTask', 'bpmn:CallActivity', 'bpmn:Event', 'bpmn:BusinessRuleTask']);
  5645. }
  5646. function createIOMapping(properties, parent, bpmnFactory) {
  5647. return createElement('zeebe:IoMapping', properties, parent, bpmnFactory);
  5648. }
  5649. function isSignalThrowEvent(element) {
  5650. if (!ModelingUtil.isAny(element, ['bpmn:EndEvent', 'bpmn:IntermediateThrowEvent'])) {
  5651. return false;
  5652. }
  5653. return !!getEventDefinition$1(element, 'bpmn:SignalEventDefinition');
  5654. }
  5655. function InputProps$1({
  5656. element,
  5657. injector
  5658. }) {
  5659. if (!areInputParametersSupported$1(element)) {
  5660. return null;
  5661. }
  5662. const inputParameters = getInputParameters$1(element) || [];
  5663. const bpmnFactory = injector.get('bpmnFactory'),
  5664. commandStack = injector.get('commandStack');
  5665. const items = inputParameters.map((parameter, index) => {
  5666. const id = element.id + '-input-' + index;
  5667. return {
  5668. id,
  5669. label: parameter.get('target') || '',
  5670. entries: InputOutputParameter$1({
  5671. idPrefix: id,
  5672. element,
  5673. parameter
  5674. }),
  5675. autoFocusEntry: id + '-target',
  5676. remove: removeFactory$b({
  5677. commandStack,
  5678. element,
  5679. parameter
  5680. })
  5681. };
  5682. });
  5683. return {
  5684. items,
  5685. add: addFactory$8({
  5686. element,
  5687. bpmnFactory,
  5688. commandStack
  5689. }),
  5690. shouldSort: false
  5691. };
  5692. }
  5693. function removeFactory$b({
  5694. commandStack,
  5695. element,
  5696. parameter
  5697. }) {
  5698. return function (event) {
  5699. event.stopPropagation();
  5700. const commands = [];
  5701. const ioMapping = getIoMapping(element);
  5702. if (!ioMapping) {
  5703. return;
  5704. }
  5705. const inputParameters = minDash.without(ioMapping.get('inputParameters'), parameter);
  5706. commands.push({
  5707. cmd: 'element.updateModdleProperties',
  5708. context: {
  5709. element,
  5710. moddleElement: ioMapping,
  5711. properties: {
  5712. inputParameters
  5713. }
  5714. }
  5715. });
  5716. const businessObject = ModelUtil.getBusinessObject(element),
  5717. extensionElements = businessObject.get('extensionElements'),
  5718. values = minDash.without(extensionElements.get('values'), ioMapping);
  5719. // remove ioMapping if there are no input/output parameters anymore
  5720. if (!inputParameters.length && !ioMapping.get('outputParameters').length) {
  5721. commands.push({
  5722. cmd: 'element.updateModdleProperties',
  5723. context: {
  5724. element,
  5725. moddleElement: extensionElements,
  5726. properties: {
  5727. values
  5728. }
  5729. }
  5730. });
  5731. }
  5732. commandStack.execute('properties-panel.multi-command-executor', commands);
  5733. };
  5734. }
  5735. function addFactory$8({
  5736. element,
  5737. bpmnFactory,
  5738. commandStack
  5739. }) {
  5740. return function (event) {
  5741. event.stopPropagation();
  5742. const commands = [];
  5743. const businessObject = ModelUtil.getBusinessObject(element);
  5744. let extensionElements = businessObject.get('extensionElements');
  5745. // (1) ensure extension elements
  5746. if (!extensionElements) {
  5747. extensionElements = createElement('bpmn:ExtensionElements', {
  5748. values: []
  5749. }, businessObject, bpmnFactory);
  5750. commands.push({
  5751. cmd: 'element.updateModdleProperties',
  5752. context: {
  5753. element,
  5754. moddleElement: businessObject,
  5755. properties: {
  5756. extensionElements
  5757. }
  5758. }
  5759. });
  5760. }
  5761. // (2) ensure IoMapping
  5762. let ioMapping = getIoMapping(element);
  5763. if (!ioMapping) {
  5764. ioMapping = createIOMapping({
  5765. inputParameters: [],
  5766. outputParameters: []
  5767. }, extensionElements, bpmnFactory);
  5768. commands.push({
  5769. cmd: 'element.updateModdleProperties',
  5770. context: {
  5771. element,
  5772. moddleElement: extensionElements,
  5773. properties: {
  5774. values: [...extensionElements.get('values'), ioMapping]
  5775. }
  5776. }
  5777. });
  5778. }
  5779. // (3) create parameter
  5780. const newParameter = createElement('zeebe:Input', {
  5781. target: nextId('InputVariable_')
  5782. }, ioMapping, bpmnFactory);
  5783. // (4) add parameter to list
  5784. commands.push({
  5785. cmd: 'element.updateModdleProperties',
  5786. context: {
  5787. element,
  5788. moddleElement: ioMapping,
  5789. properties: {
  5790. inputParameters: [...ioMapping.get('inputParameters'), newParameter]
  5791. }
  5792. }
  5793. });
  5794. commandStack.execute('properties-panel.multi-command-executor', commands);
  5795. };
  5796. }
  5797. function MessageProps(props) {
  5798. const {
  5799. element
  5800. } = props;
  5801. const message = getMessage(element);
  5802. const entries = [];
  5803. if (message) {
  5804. entries.push({
  5805. id: 'messageName',
  5806. component: MessageName,
  5807. isEdited: propertiesPanel.isFeelEntryEdited
  5808. });
  5809. }
  5810. if (message && canHaveSubscriptionCorrelationKey(element)) {
  5811. entries.push({
  5812. id: 'messageSubscriptionCorrelationKey',
  5813. component: SubscriptionCorrelationKey,
  5814. isEdited: propertiesPanel.isFeelEntryEdited
  5815. });
  5816. }
  5817. return entries;
  5818. }
  5819. function MessageName(props) {
  5820. const {
  5821. element
  5822. } = props;
  5823. const commandStack = useService('commandStack');
  5824. const translate = useService('translate');
  5825. const debounce = useService('debounceInput');
  5826. const message = getMessage(element);
  5827. const getValue = () => {
  5828. return message.get('name');
  5829. };
  5830. const setValue = value => {
  5831. return commandStack.execute('element.updateModdleProperties', {
  5832. element,
  5833. moddleElement: message,
  5834. properties: {
  5835. name: value
  5836. }
  5837. });
  5838. };
  5839. return FeelEntryWithVariableContext({
  5840. element,
  5841. id: 'messageName',
  5842. label: translate('Name'),
  5843. feel: 'optional',
  5844. getValue,
  5845. setValue,
  5846. debounce
  5847. });
  5848. }
  5849. function SubscriptionCorrelationKey(props) {
  5850. const {
  5851. element
  5852. } = props;
  5853. const bpmnFactory = useService('bpmnFactory');
  5854. const commandStack = useService('commandStack');
  5855. const translate = useService('translate');
  5856. const debounce = useService('debounceInput');
  5857. const getValue = () => {
  5858. return getCorrelationKey(element);
  5859. };
  5860. const setValue = value => {
  5861. const commands = [];
  5862. const properties = {
  5863. correlationKey: value
  5864. };
  5865. const message = getMessage(element);
  5866. let extensionElements = message.get('extensionElements');
  5867. // (1) ensure extension elements
  5868. if (!extensionElements) {
  5869. extensionElements = createElement('bpmn:ExtensionElements', {
  5870. values: []
  5871. }, message, bpmnFactory);
  5872. commands.push({
  5873. cmd: 'element.updateModdleProperties',
  5874. context: {
  5875. element,
  5876. moddleElement: message,
  5877. properties: {
  5878. extensionElements
  5879. }
  5880. }
  5881. });
  5882. }
  5883. let subscription = getSubscription(element);
  5884. // (2a) add subscription with correlation key
  5885. if (!subscription) {
  5886. subscription = createElement('zeebe:Subscription', properties, extensionElements, bpmnFactory);
  5887. commands.push({
  5888. cmd: 'element.updateModdleProperties',
  5889. context: {
  5890. element,
  5891. moddleElement: extensionElements,
  5892. properties: {
  5893. values: [...extensionElements.get('values'), subscription]
  5894. }
  5895. }
  5896. });
  5897. } else {
  5898. // (2b) update existing subscription's correlation key
  5899. commands.push({
  5900. cmd: 'element.updateModdleProperties',
  5901. context: {
  5902. element,
  5903. properties,
  5904. moddleElement: subscription
  5905. }
  5906. });
  5907. }
  5908. // (3) commit all updates
  5909. commandStack.execute('properties-panel.multi-command-executor', commands);
  5910. };
  5911. return FeelEntryWithVariableContext({
  5912. element,
  5913. id: 'messageSubscriptionCorrelationKey',
  5914. label: translate('Subscription correlation key'),
  5915. feel: 'required',
  5916. getValue,
  5917. setValue,
  5918. debounce
  5919. });
  5920. }
  5921. // helper ///////////////////////
  5922. function canHaveSubscriptionCorrelationKey(element) {
  5923. // (1) allow for receive task
  5924. if (ModelUtil.is(element, 'bpmn:ReceiveTask')) {
  5925. return true;
  5926. }
  5927. // (2) allow for non start events
  5928. if (!ModelUtil.is(element, 'bpmn:StartEvent')) {
  5929. return true;
  5930. }
  5931. // (3) allow for start events inside event sub processes
  5932. if (ModelUtil.is(element, 'bpmn:StartEvent') && DiUtil.isEventSubProcess(element.parent)) {
  5933. return true;
  5934. }
  5935. return false;
  5936. }
  5937. function getCorrelationKey(element) {
  5938. const subscription = getSubscription(element);
  5939. return subscription ? subscription.get('correlationKey') : '';
  5940. }
  5941. function getSubscription(element) {
  5942. const message = getMessage(element);
  5943. const subscriptions = getSubscriptions(message);
  5944. return subscriptions[0];
  5945. }
  5946. function getSubscriptions(message) {
  5947. const extensionElements = getExtensionElementsList(message, 'zeebe:Subscription');
  5948. return extensionElements;
  5949. }
  5950. function MultiInstanceProps$1(props) {
  5951. const {
  5952. element
  5953. } = props;
  5954. if (!supportsMultiInstances(element)) {
  5955. return [];
  5956. }
  5957. return [{
  5958. id: 'multiInstance-inputCollection',
  5959. component: InputCollection,
  5960. isEdited: propertiesPanel.isFeelEntryEdited
  5961. }, {
  5962. id: 'multiInstance-inputElement',
  5963. component: InputElement,
  5964. isEdited: propertiesPanel.isTextFieldEntryEdited
  5965. }, {
  5966. id: 'multiInstance-outputCollection',
  5967. component: OutputCollection,
  5968. isEdited: propertiesPanel.isTextFieldEntryEdited
  5969. }, {
  5970. id: 'multiInstance-outputElement',
  5971. component: OutputElement,
  5972. isEdited: propertiesPanel.isFeelEntryEdited
  5973. }, {
  5974. id: 'multiInstance-completionCondition',
  5975. component: CompletionCondition,
  5976. isEdited: propertiesPanel.isFeelEntryEdited
  5977. }];
  5978. }
  5979. function InputCollection(props) {
  5980. const {
  5981. element
  5982. } = props;
  5983. const commandStack = useService('commandStack');
  5984. const bpmnFactory = useService('bpmnFactory');
  5985. const translate = useService('translate');
  5986. const debounce = useService('debounceInput');
  5987. const getValue = () => {
  5988. return getProperty$1(element, 'inputCollection');
  5989. };
  5990. const setValue = value => {
  5991. return setProperty(element, 'inputCollection', value, commandStack, bpmnFactory);
  5992. };
  5993. return FeelEntryWithVariableContext({
  5994. element,
  5995. id: 'multiInstance-inputCollection',
  5996. label: translate('Input collection'),
  5997. feel: 'required',
  5998. getValue,
  5999. setValue,
  6000. debounce
  6001. });
  6002. }
  6003. function InputElement(props) {
  6004. const {
  6005. element
  6006. } = props;
  6007. const commandStack = useService('commandStack');
  6008. const bpmnFactory = useService('bpmnFactory');
  6009. const translate = useService('translate');
  6010. const debounce = useService('debounceInput');
  6011. const getValue = () => {
  6012. return getProperty$1(element, 'inputElement');
  6013. };
  6014. const setValue = value => {
  6015. return setProperty(element, 'inputElement', value, commandStack, bpmnFactory);
  6016. };
  6017. return propertiesPanel.TextFieldEntry({
  6018. element,
  6019. id: 'multiInstance-inputElement',
  6020. label: translate('Input element'),
  6021. getValue,
  6022. setValue,
  6023. debounce
  6024. });
  6025. }
  6026. function OutputCollection(props) {
  6027. const {
  6028. element
  6029. } = props;
  6030. const commandStack = useService('commandStack');
  6031. const bpmnFactory = useService('bpmnFactory');
  6032. const translate = useService('translate');
  6033. const debounce = useService('debounceInput');
  6034. const getValue = () => {
  6035. return getProperty$1(element, 'outputCollection');
  6036. };
  6037. const setValue = value => {
  6038. return setProperty(element, 'outputCollection', value, commandStack, bpmnFactory);
  6039. };
  6040. return propertiesPanel.TextFieldEntry({
  6041. element,
  6042. id: 'multiInstance-outputCollection',
  6043. label: translate('Output collection'),
  6044. getValue,
  6045. setValue,
  6046. debounce
  6047. });
  6048. }
  6049. function OutputElement(props) {
  6050. const {
  6051. element
  6052. } = props;
  6053. const commandStack = useService('commandStack');
  6054. const bpmnFactory = useService('bpmnFactory');
  6055. const translate = useService('translate');
  6056. const debounce = useService('debounceInput');
  6057. const getValue = () => {
  6058. return getProperty$1(element, 'outputElement');
  6059. };
  6060. const setValue = value => {
  6061. return setProperty(element, 'outputElement', value, commandStack, bpmnFactory);
  6062. };
  6063. return FeelEntryWithVariableContext({
  6064. element,
  6065. id: 'multiInstance-outputElement',
  6066. label: translate('Output element'),
  6067. feel: 'required',
  6068. getValue,
  6069. setValue,
  6070. debounce
  6071. });
  6072. }
  6073. function CompletionCondition(props) {
  6074. const {
  6075. element
  6076. } = props;
  6077. const commandStack = useService('commandStack');
  6078. const bpmnFactory = useService('bpmnFactory');
  6079. const translate = useService('translate');
  6080. const debounce = useService('debounceInput');
  6081. const getValue = () => {
  6082. const completionCondition = getCompletionCondition(element);
  6083. return completionCondition && completionCondition.get('body');
  6084. };
  6085. const setValue = value => {
  6086. if (value && value !== '') {
  6087. const loopCharacteristics = getLoopCharacteristics$1(element);
  6088. const completionCondition = createElement('bpmn:FormalExpression', {
  6089. body: value
  6090. }, loopCharacteristics, bpmnFactory);
  6091. setCompletionCondition(element, commandStack, completionCondition);
  6092. } else {
  6093. setCompletionCondition(element, commandStack, undefined);
  6094. }
  6095. };
  6096. return FeelEntryWithVariableContext({
  6097. element,
  6098. id: 'multiInstance-completionCondition',
  6099. label: translate('Completion condition'),
  6100. feel: 'required',
  6101. getValue,
  6102. setValue,
  6103. debounce
  6104. });
  6105. }
  6106. // helper ///////////////////////
  6107. function getLoopCharacteristics$1(element) {
  6108. const businessObject = ModelUtil.getBusinessObject(element);
  6109. return businessObject.get('loopCharacteristics');
  6110. }
  6111. function getZeebeLoopCharacteristics(loopCharacteristics) {
  6112. const extensionElements = getExtensionElementsList(loopCharacteristics, 'zeebe:LoopCharacteristics');
  6113. return extensionElements && extensionElements[0];
  6114. }
  6115. function supportsMultiInstances(element) {
  6116. return !!getLoopCharacteristics$1(element);
  6117. }
  6118. function getCompletionCondition(element) {
  6119. return getLoopCharacteristics$1(element).get('completionCondition');
  6120. }
  6121. function setCompletionCondition(element, commandStack, completionCondition = undefined) {
  6122. commandStack.execute('element.updateModdleProperties', {
  6123. element,
  6124. moddleElement: getLoopCharacteristics$1(element),
  6125. properties: {
  6126. completionCondition
  6127. }
  6128. });
  6129. }
  6130. function getProperty$1(element, propertyName) {
  6131. const loopCharacteristics = getLoopCharacteristics$1(element),
  6132. zeebeLoopCharacteristics = getZeebeLoopCharacteristics(loopCharacteristics);
  6133. return zeebeLoopCharacteristics && zeebeLoopCharacteristics.get(propertyName);
  6134. }
  6135. function setProperty(element, propertyName, value, commandStack, bpmnFactory) {
  6136. const loopCharacteristics = getLoopCharacteristics$1(element);
  6137. const commands = [];
  6138. // (1) ensure extension elements
  6139. let extensionElements = loopCharacteristics.get('extensionElements');
  6140. if (!extensionElements) {
  6141. extensionElements = createElement('bpmn:ExtensionElements', {
  6142. values: []
  6143. }, loopCharacteristics, bpmnFactory);
  6144. commands.push({
  6145. cmd: 'element.updateModdleProperties',
  6146. context: {
  6147. element,
  6148. moddleElement: loopCharacteristics,
  6149. properties: {
  6150. extensionElements
  6151. }
  6152. }
  6153. });
  6154. }
  6155. // (2) ensure zeebe loop characteristics
  6156. let zeebeLoopCharacteristics = getZeebeLoopCharacteristics(loopCharacteristics);
  6157. if (!zeebeLoopCharacteristics) {
  6158. zeebeLoopCharacteristics = createElement('zeebe:LoopCharacteristics', {}, extensionElements, bpmnFactory);
  6159. commands.push({
  6160. cmd: 'element.updateModdleProperties',
  6161. context: {
  6162. element,
  6163. moddleElement: extensionElements,
  6164. properties: {
  6165. values: [...extensionElements.get('values'), zeebeLoopCharacteristics]
  6166. }
  6167. }
  6168. });
  6169. }
  6170. // (3) update defined property
  6171. commands.push({
  6172. cmd: 'element.updateModdleProperties',
  6173. context: {
  6174. element,
  6175. moddleElement: zeebeLoopCharacteristics,
  6176. properties: {
  6177. [propertyName]: value
  6178. }
  6179. }
  6180. });
  6181. // (4) commit all updates
  6182. commandStack.execute('properties-panel.multi-command-executor', commands);
  6183. }
  6184. function OutputPropagationProps(props) {
  6185. const {
  6186. element
  6187. } = props;
  6188. if (!ModelUtil.is(element, 'bpmn:CallActivity')) {
  6189. return [];
  6190. }
  6191. return [{
  6192. id: 'propagateAllChildVariables',
  6193. component: PropagateAllChildVariables,
  6194. isEdited: propertiesPanel.isToggleSwitchEntryEdited
  6195. }];
  6196. }
  6197. function PropagateAllChildVariables(props) {
  6198. const {
  6199. element
  6200. } = props;
  6201. const commandStack = useService('commandStack'),
  6202. bpmnFactory = useService('bpmnFactory'),
  6203. translate = useService('translate');
  6204. const propagateAllChildVariables = isPropagateAllChildVariables(element);
  6205. const getValue = () => {
  6206. return propagateAllChildVariables;
  6207. };
  6208. const setValue = value => {
  6209. const commands = [];
  6210. const businessObject = ModelUtil.getBusinessObject(element);
  6211. // (1) ensure extension elements
  6212. let extensionElements = businessObject.get('extensionElements');
  6213. if (!extensionElements) {
  6214. extensionElements = createElement('bpmn:ExtensionElements', {
  6215. values: []
  6216. }, businessObject, bpmnFactory);
  6217. commands.push({
  6218. cmd: 'element.updateModdleProperties',
  6219. context: {
  6220. element,
  6221. moddleElement: businessObject,
  6222. properties: {
  6223. extensionElements
  6224. }
  6225. }
  6226. });
  6227. }
  6228. // (2) ensure zeebe:calledElement
  6229. let calledElement = getCalledElement(businessObject);
  6230. if (!calledElement) {
  6231. calledElement = createElement('zeebe:CalledElement', {}, extensionElements, bpmnFactory);
  6232. commands.push({
  6233. cmd: 'element.updateModdleProperties',
  6234. context: {
  6235. element,
  6236. moddleElement: extensionElements,
  6237. properties: {
  6238. values: [...extensionElements.get('values'), calledElement]
  6239. }
  6240. }
  6241. });
  6242. }
  6243. // (3) Update propagateAllChildVariables attribute
  6244. commands.push({
  6245. cmd: 'element.updateModdleProperties',
  6246. context: {
  6247. element,
  6248. moddleElement: calledElement,
  6249. properties: {
  6250. propagateAllChildVariables: value
  6251. }
  6252. }
  6253. });
  6254. // (4) Execute the commands
  6255. commandStack.execute('properties-panel.multi-command-executor', commands);
  6256. };
  6257. return propertiesPanel.ToggleSwitchEntry({
  6258. id: 'propagateAllChildVariables',
  6259. label: translate('Propagate all child process variables'),
  6260. switcherLabel: propagateAllChildVariables ? translate('On') : translate('Off'),
  6261. tooltip: jsxRuntime.jsxs("div", {
  6262. children: [jsxRuntime.jsx("p", {
  6263. children: translate('If turned on, all variables from the child process instance will be propagated to the parent process instance.')
  6264. }), jsxRuntime.jsx("p", {
  6265. children: translate('Otherwise, only variables defined via output mappings will be propagated.')
  6266. })]
  6267. }),
  6268. getValue,
  6269. setValue
  6270. });
  6271. }
  6272. // helper //////////////////////////
  6273. /**
  6274. * Determine default value for propagateAllChildVariables attribute
  6275. * @param {Object} element representing a bpmn:CallActivity
  6276. *
  6277. * @returns {boolean}
  6278. */
  6279. function determinePropAllChildVariablesDefault(element) {
  6280. const outputParameters = getOutputParameters$1(element);
  6281. if (outputParameters) {
  6282. return outputParameters.length > 0 ? false : true;
  6283. }
  6284. }
  6285. /**
  6286. * Check whether the propagateAllChildVariables attribute is set on an element.
  6287. * Note that a default logic will be determine if it is not explicitly set.
  6288. * @param {Object} element
  6289. *
  6290. * @returns {boolean}
  6291. */
  6292. function isPropagateAllChildVariables(element) {
  6293. if (!ModelUtil.is(element, 'bpmn:CallActivity')) {
  6294. return undefined;
  6295. }
  6296. const bo = ModelUtil.getBusinessObject(element),
  6297. calledElement = getCalledElement(bo);
  6298. return calledElement && minDash.has(calledElement, 'propagateAllChildVariables') ? calledElement.get('propagateAllChildVariables') : determinePropAllChildVariablesDefault(element);
  6299. }
  6300. function OutputProps$1({
  6301. element,
  6302. injector
  6303. }) {
  6304. if (!areOutputParametersSupported$1(element)) {
  6305. return null;
  6306. }
  6307. const outputParameters = getOutputParameters$1(element) || [];
  6308. const bpmnFactory = injector.get('bpmnFactory'),
  6309. commandStack = injector.get('commandStack');
  6310. const items = outputParameters.map((parameter, index) => {
  6311. const id = element.id + '-output-' + index;
  6312. return {
  6313. id,
  6314. label: parameter.get('target') || '',
  6315. entries: InputOutputParameter$1({
  6316. idPrefix: id,
  6317. element,
  6318. parameter
  6319. }),
  6320. autoFocusEntry: id + '-target',
  6321. remove: removeFactory$a({
  6322. commandStack,
  6323. element,
  6324. parameter
  6325. })
  6326. };
  6327. });
  6328. return {
  6329. items,
  6330. add: addFactory$7({
  6331. element,
  6332. bpmnFactory,
  6333. commandStack
  6334. }),
  6335. shouldSort: false
  6336. };
  6337. }
  6338. function removeFactory$a({
  6339. commandStack,
  6340. element,
  6341. parameter
  6342. }) {
  6343. return function (event) {
  6344. event.stopPropagation();
  6345. let commands = [];
  6346. const ioMapping = getIoMapping(element);
  6347. if (!ioMapping) {
  6348. return;
  6349. }
  6350. const outputParameters = minDash.without(ioMapping.get('outputParameters'), parameter);
  6351. commands.push({
  6352. cmd: 'element.updateModdleProperties',
  6353. context: {
  6354. element,
  6355. moddleElement: ioMapping,
  6356. properties: {
  6357. outputParameters
  6358. }
  6359. }
  6360. });
  6361. // remove ioMapping if there are no input/output parameters anymore
  6362. if (!ioMapping.get('inputParameters').length && !outputParameters.length) {
  6363. const businessObject = ModelUtil.getBusinessObject(element),
  6364. extensionElements = businessObject.get('extensionElements'),
  6365. values = minDash.without(extensionElements.get('values'), ioMapping);
  6366. commands.push({
  6367. cmd: 'element.updateModdleProperties',
  6368. context: {
  6369. element,
  6370. moddleElement: extensionElements,
  6371. properties: {
  6372. values
  6373. }
  6374. }
  6375. });
  6376. }
  6377. commandStack.execute('properties-panel.multi-command-executor', commands);
  6378. };
  6379. }
  6380. function addFactory$7({
  6381. element,
  6382. bpmnFactory,
  6383. commandStack
  6384. }) {
  6385. return function (event) {
  6386. event.stopPropagation();
  6387. let commands = [];
  6388. const businessObject = ModelUtil.getBusinessObject(element);
  6389. let extensionElements = businessObject.get('extensionElements');
  6390. // (1) ensure extension elements
  6391. if (!extensionElements) {
  6392. extensionElements = createElement('bpmn:ExtensionElements', {
  6393. values: []
  6394. }, businessObject, bpmnFactory);
  6395. commands.push({
  6396. cmd: 'element.updateModdleProperties',
  6397. context: {
  6398. element,
  6399. moddleElement: businessObject,
  6400. properties: {
  6401. extensionElements
  6402. }
  6403. }
  6404. });
  6405. }
  6406. // (2) ensure IoMapping
  6407. let ioMapping = getIoMapping(element);
  6408. if (!ioMapping) {
  6409. const parent = extensionElements;
  6410. ioMapping = createIOMapping({
  6411. inputParameters: [],
  6412. outputParameters: []
  6413. }, parent, bpmnFactory);
  6414. commands.push({
  6415. cmd: 'element.updateModdleProperties',
  6416. context: {
  6417. element,
  6418. moddleElement: extensionElements,
  6419. properties: {
  6420. values: [...extensionElements.get('values'), ioMapping]
  6421. }
  6422. }
  6423. });
  6424. }
  6425. // (3) create parameter
  6426. const newParameter = createElement('zeebe:Output', {
  6427. target: nextId('OutputVariable_')
  6428. }, ioMapping, bpmnFactory);
  6429. // (4) add parameter to list
  6430. commands.push({
  6431. cmd: 'element.updateModdleProperties',
  6432. context: {
  6433. element,
  6434. moddleElement: ioMapping,
  6435. properties: {
  6436. outputParameters: [...ioMapping.get('outputParameters'), newParameter]
  6437. }
  6438. }
  6439. });
  6440. commandStack.execute('properties-panel.multi-command-executor', commands);
  6441. };
  6442. }
  6443. const SCRIPT_IMPLEMENTATION_OPTION = 'script',
  6444. JOB_WORKER_IMPLEMENTATION_OPTION = 'jobWorker',
  6445. DEFAULT_IMPLEMENTATION_OPTION = '';
  6446. function ScriptImplementationProps(props) {
  6447. const {
  6448. element
  6449. } = props;
  6450. if (!ModelUtil.is(element, 'bpmn:ScriptTask')) {
  6451. return [];
  6452. }
  6453. return [{
  6454. id: 'scriptImplementation',
  6455. component: ScriptImplementation,
  6456. isEdited: () => isScriptImplementationEdited(element)
  6457. }];
  6458. }
  6459. function ScriptImplementation(props) {
  6460. const {
  6461. element,
  6462. id
  6463. } = props;
  6464. const commandStack = useService('commandStack');
  6465. const bpmnFactory = useService('bpmnFactory');
  6466. const translate = useService('translate');
  6467. const getValue = () => {
  6468. if (getScript$1(element)) {
  6469. return SCRIPT_IMPLEMENTATION_OPTION;
  6470. }
  6471. if (getTaskDefinition$1(element)) {
  6472. return JOB_WORKER_IMPLEMENTATION_OPTION;
  6473. }
  6474. return DEFAULT_IMPLEMENTATION_OPTION;
  6475. };
  6476. /**
  6477. * Set value by either creating a zeebe:script or a zeebe:taskDefintion
  6478. * extension element. Note that they must not exist both at the same time, however
  6479. * this will be ensured by a bpmn-js behavior (and not by the propPanel).
  6480. */
  6481. const setValue = value => {
  6482. let extensionElement, extensionElementType;
  6483. if (value === SCRIPT_IMPLEMENTATION_OPTION) {
  6484. extensionElement = getScript$1(element);
  6485. extensionElementType = 'zeebe:Script';
  6486. } else if (value === JOB_WORKER_IMPLEMENTATION_OPTION) {
  6487. extensionElement = getTaskDefinition$1(element);
  6488. extensionElementType = 'zeebe:TaskDefinition';
  6489. } else {
  6490. resetElement(element, commandStack);
  6491. }
  6492. if (!extensionElement && extensionElementType) {
  6493. extensionElement = createElement(extensionElementType, {}, null, bpmnFactory);
  6494. updateExtensionElements(element, extensionElement, bpmnFactory, commandStack);
  6495. }
  6496. };
  6497. const getOptions = () => {
  6498. const options = [{
  6499. value: DEFAULT_IMPLEMENTATION_OPTION,
  6500. label: translate('<none>')
  6501. }, {
  6502. value: SCRIPT_IMPLEMENTATION_OPTION,
  6503. label: translate('FEEL expression')
  6504. }, {
  6505. value: JOB_WORKER_IMPLEMENTATION_OPTION,
  6506. label: translate('Job worker')
  6507. }];
  6508. return options;
  6509. };
  6510. return propertiesPanel.SelectEntry({
  6511. element,
  6512. id,
  6513. label: translate('Implementation'),
  6514. getValue,
  6515. setValue,
  6516. getOptions
  6517. });
  6518. }
  6519. // helper ///////////////////////
  6520. function getTaskDefinition$1(element) {
  6521. const businessObject = ModelUtil.getBusinessObject(element);
  6522. return getExtensionElementsList(businessObject, 'zeebe:TaskDefinition')[0];
  6523. }
  6524. function getScript$1(element) {
  6525. const businessObject = ModelUtil.getBusinessObject(element);
  6526. return getExtensionElementsList(businessObject, 'zeebe:Script')[0];
  6527. }
  6528. function getTaskHeaders(element) {
  6529. const businessObject = ModelUtil.getBusinessObject(element);
  6530. return getExtensionElementsList(businessObject, 'zeebe:TaskHeaders');
  6531. }
  6532. function isScriptImplementationEdited(element) {
  6533. return getTaskDefinition$1(element) || getScript$1(element);
  6534. }
  6535. function resetElement(element, commandStack) {
  6536. const businessObject = ModelUtil.getBusinessObject(element);
  6537. const taskDefinition = getTaskDefinition$1(element);
  6538. const taskHeaders = getTaskHeaders(element);
  6539. const script = getScript$1(element);
  6540. if (taskDefinition) {
  6541. const removed = [taskDefinition, taskHeaders].filter(Boolean);
  6542. removeExtensionElements(element, businessObject, removed, commandStack);
  6543. return;
  6544. }
  6545. if (script) {
  6546. removeExtensionElements(element, businessObject, script, commandStack);
  6547. }
  6548. }
  6549. function updateExtensionElements(element, extensionElementToAdd, bpmnFactory, commandStack) {
  6550. const businessObject = ModelUtil.getBusinessObject(element);
  6551. const commands = [];
  6552. let extensionElements = businessObject.get('extensionElements');
  6553. let extensionElementValues;
  6554. // (1) create bpmn:ExtensionElements if it doesn't exist
  6555. if (!extensionElements) {
  6556. extensionElements = createElement('bpmn:ExtensionElements', {
  6557. values: []
  6558. }, businessObject, bpmnFactory);
  6559. commands.push({
  6560. cmd: 'element.updateModdleProperties',
  6561. context: {
  6562. element,
  6563. moddleElement: businessObject,
  6564. properties: {
  6565. extensionElements
  6566. }
  6567. }
  6568. });
  6569. }
  6570. extensionElementToAdd.$parent = extensionElements;
  6571. // (2) remove old exension element from extensionElements
  6572. if (ModelUtil.is(extensionElementToAdd, 'zeebe:TaskDefinition')) {
  6573. extensionElementValues = minDash.without(extensionElements.get('values'), getScript$1(element));
  6574. } else if (ModelUtil.is(extensionElementToAdd, 'zeebe:Script')) {
  6575. const matcher = extension => ModelUtil.isAny(extension, ['zeebe:TaskDefinition', 'zeebe:TaskHeaders']);
  6576. extensionElementValues = minDash.without(extensionElements.get('values'), matcher);
  6577. }
  6578. // (3) add extension element to list
  6579. commands.push({
  6580. cmd: 'element.updateModdleProperties',
  6581. context: {
  6582. element,
  6583. moddleElement: extensionElements,
  6584. properties: {
  6585. values: [...extensionElementValues, extensionElementToAdd]
  6586. }
  6587. }
  6588. });
  6589. commandStack.execute('properties-panel.multi-command-executor', commands);
  6590. }
  6591. function ScriptProps$1(props) {
  6592. const {
  6593. element
  6594. } = props;
  6595. if (!ModelUtil.is(element, 'bpmn:ScriptTask') || !getScript(element)) {
  6596. return [];
  6597. }
  6598. return [{
  6599. id: 'resultVariable',
  6600. component: ResultVariable$3,
  6601. isEdited: propertiesPanel.isTextFieldEntryEdited
  6602. }, {
  6603. id: 'scriptExpression',
  6604. component: Expression$2,
  6605. isEdited: propertiesPanel.isFeelEntryEdited
  6606. }];
  6607. }
  6608. function Expression$2(props) {
  6609. const {
  6610. element,
  6611. id
  6612. } = props;
  6613. const commandStack = useService('commandStack');
  6614. const bpmnFactory = useService('bpmnFactory');
  6615. const translate = useService('translate');
  6616. const debounce = useService('debounceInput');
  6617. const getValue = () => {
  6618. return (getScript(element) || {}).get('expression');
  6619. };
  6620. const setValue = value => {
  6621. const commands = [];
  6622. const businessObject = ModelUtil.getBusinessObject(element);
  6623. let extensionElements = businessObject.get('extensionElements');
  6624. // (1) ensure extension elements
  6625. if (!extensionElements) {
  6626. extensionElements = createElement('bpmn:ExtensionElements', {
  6627. values: []
  6628. }, businessObject, bpmnFactory);
  6629. commands.push({
  6630. cmd: 'element.updateModdleProperties',
  6631. context: {
  6632. element,
  6633. moddleElement: businessObject,
  6634. properties: {
  6635. extensionElements
  6636. }
  6637. }
  6638. });
  6639. }
  6640. // (2) ensure script
  6641. let script = getScript(element);
  6642. if (!script) {
  6643. script = createElement('zeebe:Script', {}, extensionElements, bpmnFactory);
  6644. commands.push({
  6645. cmd: 'element.updateModdleProperties',
  6646. context: {
  6647. element,
  6648. moddleElement: extensionElements,
  6649. properties: {
  6650. values: [...extensionElements.get('values'), script]
  6651. }
  6652. }
  6653. });
  6654. }
  6655. // (3) update script.expression
  6656. commands.push({
  6657. cmd: 'element.updateModdleProperties',
  6658. context: {
  6659. element,
  6660. moddleElement: script,
  6661. properties: {
  6662. expression: value
  6663. }
  6664. }
  6665. });
  6666. // (4) commit all updates
  6667. commandStack.execute('properties-panel.multi-command-executor', commands);
  6668. };
  6669. return FeelEntryWithVariableContext({
  6670. element,
  6671. id,
  6672. label: translate('FEEL expression'),
  6673. feel: 'required',
  6674. getValue,
  6675. setValue,
  6676. debounce
  6677. });
  6678. }
  6679. function ResultVariable$3(props) {
  6680. const {
  6681. element,
  6682. id
  6683. } = props;
  6684. const commandStack = useService('commandStack');
  6685. const bpmnFactory = useService('bpmnFactory');
  6686. const translate = useService('translate');
  6687. const debounce = useService('debounceInput');
  6688. const getValue = () => {
  6689. return (getScript(element) || {}).resultVariable;
  6690. };
  6691. const setValue = value => {
  6692. const commands = [];
  6693. const businessObject = ModelUtil.getBusinessObject(element);
  6694. let extensionElements = businessObject.get('extensionElements');
  6695. // (1) ensure extension elements
  6696. if (!extensionElements) {
  6697. extensionElements = createElement('bpmn:ExtensionElements', {
  6698. values: []
  6699. }, businessObject, bpmnFactory);
  6700. commands.push({
  6701. cmd: 'element.updateModdleProperties',
  6702. context: {
  6703. element,
  6704. moddleElement: businessObject,
  6705. properties: {
  6706. extensionElements
  6707. }
  6708. }
  6709. });
  6710. }
  6711. // (2) ensure script
  6712. let script = getScript(element);
  6713. if (!script) {
  6714. script = createElement('zeebe:Script', {}, extensionElements, bpmnFactory);
  6715. commands.push({
  6716. cmd: 'element.updateModdleProperties',
  6717. context: {
  6718. element,
  6719. moddleElement: extensionElements,
  6720. properties: {
  6721. values: [...extensionElements.get('values'), script]
  6722. }
  6723. }
  6724. });
  6725. }
  6726. // (3) update script.resultVariable
  6727. commands.push({
  6728. cmd: 'element.updateModdleProperties',
  6729. context: {
  6730. element,
  6731. moddleElement: script,
  6732. properties: {
  6733. resultVariable: value
  6734. }
  6735. }
  6736. });
  6737. // (4) commit all updates
  6738. commandStack.execute('properties-panel.multi-command-executor', commands);
  6739. };
  6740. return propertiesPanel.TextFieldEntry({
  6741. element,
  6742. id,
  6743. label: translate('Result variable'),
  6744. getValue,
  6745. setValue,
  6746. debounce
  6747. });
  6748. }
  6749. // helper ///////////////////////
  6750. function getScript(element) {
  6751. const businessObject = ModelUtil.getBusinessObject(element);
  6752. return getExtensionElementsList(businessObject, 'zeebe:Script')[0];
  6753. }
  6754. /**
  6755. * @returns {Entry[]}
  6756. */
  6757. function SignalProps(props) {
  6758. const {
  6759. element
  6760. } = props;
  6761. if (!isSignalSupported(element)) {
  6762. return [];
  6763. }
  6764. const signal = getSignal(element);
  6765. let entries = [];
  6766. if (signal) {
  6767. entries = [...entries, {
  6768. id: 'signalName',
  6769. component: SignalName,
  6770. isEdited: propertiesPanel.isFeelEntryEdited
  6771. }];
  6772. }
  6773. return entries;
  6774. }
  6775. function SignalName(props) {
  6776. const {
  6777. element
  6778. } = props;
  6779. const commandStack = useService('commandStack');
  6780. const translate = useService('translate');
  6781. const debounce = useService('debounceInput');
  6782. const signal = getSignal(element);
  6783. const getValue = () => {
  6784. return signal.get('name');
  6785. };
  6786. const setValue = value => {
  6787. return commandStack.execute('element.updateModdleProperties', {
  6788. element,
  6789. moddleElement: signal,
  6790. properties: {
  6791. name: value
  6792. }
  6793. });
  6794. };
  6795. return FeelEntryWithVariableContext({
  6796. element,
  6797. id: 'signalName',
  6798. label: translate('Name'),
  6799. feel: 'optional',
  6800. getValue,
  6801. setValue,
  6802. debounce
  6803. });
  6804. }
  6805. function TargetProps(props) {
  6806. const {
  6807. element
  6808. } = props;
  6809. if (!ModelUtil.is(element, 'bpmn:CallActivity')) {
  6810. return [];
  6811. }
  6812. return [{
  6813. id: 'targetProcessId',
  6814. component: TargetProcessId,
  6815. isEdited: propertiesPanel.isFeelEntryEdited
  6816. }];
  6817. }
  6818. function TargetProcessId(props) {
  6819. const {
  6820. element,
  6821. id
  6822. } = props;
  6823. const commandStack = useService('commandStack'),
  6824. bpmnFactory = useService('bpmnFactory'),
  6825. translate = useService('translate'),
  6826. debounce = useService('debounceInput');
  6827. const getValue = () => {
  6828. return getProcessId(element);
  6829. };
  6830. const setValue = value => {
  6831. const commands = [];
  6832. const businessObject = ModelUtil.getBusinessObject(element);
  6833. // (1) ensure extension elements
  6834. let extensionElements = businessObject.get('extensionElements');
  6835. if (!extensionElements) {
  6836. extensionElements = createElement('bpmn:ExtensionElements', {
  6837. values: []
  6838. }, businessObject, bpmnFactory);
  6839. commands.push({
  6840. cmd: 'element.updateModdleProperties',
  6841. context: {
  6842. element,
  6843. moddleElement: businessObject,
  6844. properties: {
  6845. extensionElements
  6846. }
  6847. }
  6848. });
  6849. }
  6850. // (2) ensure zeebe:calledElement
  6851. let calledElement = getCalledElement(businessObject);
  6852. if (!calledElement) {
  6853. calledElement = createElement('zeebe:CalledElement', {}, extensionElements, bpmnFactory);
  6854. commands.push({
  6855. cmd: 'element.updateModdleProperties',
  6856. context: {
  6857. element,
  6858. moddleElement: extensionElements,
  6859. properties: {
  6860. values: [...extensionElements.get('values'), calledElement]
  6861. }
  6862. }
  6863. });
  6864. }
  6865. // (3) Update processId attribute
  6866. commands.push({
  6867. cmd: 'element.updateModdleProperties',
  6868. context: {
  6869. element,
  6870. moddleElement: calledElement,
  6871. properties: {
  6872. processId: value
  6873. }
  6874. }
  6875. });
  6876. // (4) Execute the commands
  6877. commandStack.execute('properties-panel.multi-command-executor', commands);
  6878. };
  6879. return FeelEntryWithVariableContext({
  6880. element,
  6881. id,
  6882. label: translate('Process ID'),
  6883. feel: 'optional',
  6884. getValue,
  6885. setValue,
  6886. debounce
  6887. });
  6888. }
  6889. function TaskDefinitionProps(props) {
  6890. const {
  6891. element
  6892. } = props;
  6893. if (!isZeebeServiceTask(element)) {
  6894. return [];
  6895. }
  6896. return [{
  6897. id: 'taskDefinitionType',
  6898. component: TaskDefinitionType,
  6899. isEdited: propertiesPanel.isFeelEntryEdited
  6900. }, {
  6901. id: 'taskDefinitionRetries',
  6902. component: TaskDefinitionRetries,
  6903. isEdited: propertiesPanel.isFeelEntryEdited
  6904. }];
  6905. }
  6906. function TaskDefinitionType(props) {
  6907. const {
  6908. element,
  6909. id
  6910. } = props;
  6911. const commandStack = useService('commandStack');
  6912. const bpmnFactory = useService('bpmnFactory');
  6913. const translate = useService('translate');
  6914. const debounce = useService('debounceInput');
  6915. const getValue = () => {
  6916. return (getTaskDefinition(element) || {}).type;
  6917. };
  6918. const setValue = value => {
  6919. const commands = [];
  6920. const businessObject = ModelUtil.getBusinessObject(element);
  6921. let extensionElements = businessObject.get('extensionElements');
  6922. // (1) ensure extension elements
  6923. if (!extensionElements) {
  6924. extensionElements = createElement('bpmn:ExtensionElements', {
  6925. values: []
  6926. }, businessObject, bpmnFactory);
  6927. commands.push({
  6928. cmd: 'element.updateModdleProperties',
  6929. context: {
  6930. element,
  6931. moddleElement: businessObject,
  6932. properties: {
  6933. extensionElements
  6934. }
  6935. }
  6936. });
  6937. }
  6938. // (2) ensure task definition
  6939. let taskDefinition = getTaskDefinition(element);
  6940. if (!taskDefinition) {
  6941. taskDefinition = createElement('zeebe:TaskDefinition', {}, extensionElements, bpmnFactory);
  6942. commands.push({
  6943. cmd: 'element.updateModdleProperties',
  6944. context: {
  6945. element,
  6946. moddleElement: extensionElements,
  6947. properties: {
  6948. values: [...extensionElements.get('values'), taskDefinition]
  6949. }
  6950. }
  6951. });
  6952. }
  6953. // (3) update task definition type
  6954. commands.push({
  6955. cmd: 'element.updateModdleProperties',
  6956. context: {
  6957. element,
  6958. moddleElement: taskDefinition,
  6959. properties: {
  6960. type: value
  6961. }
  6962. }
  6963. });
  6964. // (4) commit all updates
  6965. commandStack.execute('properties-panel.multi-command-executor', commands);
  6966. };
  6967. return FeelEntryWithVariableContext({
  6968. element,
  6969. id,
  6970. label: translate('Type'),
  6971. feel: 'optional',
  6972. getValue,
  6973. setValue,
  6974. debounce
  6975. });
  6976. }
  6977. function TaskDefinitionRetries(props) {
  6978. const {
  6979. element,
  6980. id
  6981. } = props;
  6982. const commandStack = useService('commandStack');
  6983. const bpmnFactory = useService('bpmnFactory');
  6984. const translate = useService('translate');
  6985. const debounce = useService('debounceInput');
  6986. const getValue = () => {
  6987. return (getTaskDefinition(element) || {}).retries;
  6988. };
  6989. const setValue = value => {
  6990. let commands = [];
  6991. const businessObject = ModelUtil.getBusinessObject(element);
  6992. let extensionElements = businessObject.get('extensionElements');
  6993. // (1) ensure extension elements
  6994. if (!extensionElements) {
  6995. extensionElements = createElement('bpmn:ExtensionElements', {
  6996. values: []
  6997. }, businessObject, bpmnFactory);
  6998. commands.push({
  6999. cmd: 'element.updateModdleProperties',
  7000. context: {
  7001. element,
  7002. moddleElement: businessObject,
  7003. properties: {
  7004. extensionElements
  7005. }
  7006. }
  7007. });
  7008. }
  7009. // (2) ensure task definition
  7010. let taskDefinition = getTaskDefinition(element);
  7011. if (!taskDefinition) {
  7012. taskDefinition = createElement('zeebe:TaskDefinition', {}, extensionElements, bpmnFactory);
  7013. commands.push({
  7014. cmd: 'element.updateModdleProperties',
  7015. context: {
  7016. element,
  7017. moddleElement: extensionElements,
  7018. properties: {
  7019. values: [...extensionElements.get('values'), taskDefinition]
  7020. }
  7021. }
  7022. });
  7023. }
  7024. // (3) update task definition retries
  7025. commands.push({
  7026. cmd: 'element.updateModdleProperties',
  7027. context: {
  7028. element,
  7029. moddleElement: taskDefinition,
  7030. properties: {
  7031. retries: value
  7032. }
  7033. }
  7034. });
  7035. commandStack.execute('properties-panel.multi-command-executor', commands);
  7036. };
  7037. return FeelEntryWithVariableContext({
  7038. element,
  7039. id,
  7040. label: translate('Retries'),
  7041. feel: 'optional',
  7042. getValue,
  7043. setValue,
  7044. debounce,
  7045. tooltip: translate('Specifies the number of times the job is retried when a worker signals failure. The default is three.')
  7046. });
  7047. }
  7048. // helper ///////////////////////
  7049. function getTaskDefinition(element) {
  7050. const businessObject = ModelUtil.getBusinessObject(element);
  7051. return getExtensionElementsList(businessObject, 'zeebe:TaskDefinition')[0];
  7052. }
  7053. function TaskScheduleProps(props) {
  7054. const {
  7055. element
  7056. } = props;
  7057. if (!ModelUtil.is(element, 'bpmn:UserTask')) {
  7058. return [];
  7059. }
  7060. return [{
  7061. id: 'taskScheduleDueDate',
  7062. component: DueDate$1,
  7063. isEdited: propertiesPanel.isFeelEntryEdited
  7064. }, {
  7065. id: 'taskScheduleFollowUpDate',
  7066. component: FollowUpDate$1,
  7067. isEdited: propertiesPanel.isFeelEntryEdited
  7068. }];
  7069. }
  7070. function DueDate$1(props) {
  7071. const {
  7072. element
  7073. } = props;
  7074. const commandStack = useService('commandStack');
  7075. const bpmnFactory = useService('bpmnFactory');
  7076. const translate = useService('translate');
  7077. const debounce = useService('debounceInput');
  7078. const getValue = () => {
  7079. const taskSchedule = getTaskSchedule(element);
  7080. if (!taskSchedule) {
  7081. return;
  7082. }
  7083. return taskSchedule.get('dueDate');
  7084. };
  7085. const setValue = value => {
  7086. let commands = [];
  7087. const businessObject = ModelUtil.getBusinessObject(element);
  7088. let extensionElements = businessObject.get('extensionElements');
  7089. // (1) ensure extension elements
  7090. if (!extensionElements) {
  7091. extensionElements = createElement('bpmn:ExtensionElements', {
  7092. values: []
  7093. }, businessObject, bpmnFactory);
  7094. commands.push({
  7095. cmd: 'element.updateModdleProperties',
  7096. context: {
  7097. element,
  7098. moddleElement: businessObject,
  7099. properties: {
  7100. extensionElements
  7101. }
  7102. }
  7103. });
  7104. }
  7105. // (2) ensure zeebe:TaskSchedule
  7106. let taskSchedule = getTaskSchedule(element);
  7107. if (!taskSchedule) {
  7108. taskSchedule = createElement('zeebe:TaskSchedule', {}, extensionElements, bpmnFactory);
  7109. commands.push({
  7110. cmd: 'element.updateModdleProperties',
  7111. context: {
  7112. element,
  7113. moddleElement: extensionElements,
  7114. properties: {
  7115. values: [...extensionElements.get('values'), taskSchedule]
  7116. }
  7117. }
  7118. });
  7119. }
  7120. // (3) update zeebe:dueDate
  7121. commands.push({
  7122. cmd: 'element.updateModdleProperties',
  7123. context: {
  7124. element,
  7125. moddleElement: taskSchedule,
  7126. properties: {
  7127. dueDate: value
  7128. }
  7129. }
  7130. });
  7131. commandStack.execute('properties-panel.multi-command-executor', commands);
  7132. };
  7133. return FeelEntryWithVariableContext({
  7134. element,
  7135. id: 'taskScheduleDueDate',
  7136. label: translate('Due date'),
  7137. feel: 'optional',
  7138. getValue,
  7139. setValue,
  7140. debounce
  7141. });
  7142. }
  7143. function FollowUpDate$1(props) {
  7144. const {
  7145. element
  7146. } = props;
  7147. const commandStack = useService('commandStack');
  7148. const bpmnFactory = useService('bpmnFactory');
  7149. const translate = useService('translate');
  7150. const debounce = useService('debounceInput');
  7151. const getValue = () => {
  7152. const taskSchedule = getTaskSchedule(element);
  7153. if (!taskSchedule) {
  7154. return;
  7155. }
  7156. return taskSchedule.get('followUpDate');
  7157. };
  7158. const setValue = value => {
  7159. let commands = [];
  7160. const businessObject = ModelUtil.getBusinessObject(element);
  7161. let extensionElements = businessObject.get('extensionElements');
  7162. // (1) ensure extension elements
  7163. if (!extensionElements) {
  7164. extensionElements = createElement('bpmn:ExtensionElements', {
  7165. values: []
  7166. }, businessObject, bpmnFactory);
  7167. commands.push({
  7168. cmd: 'element.updateModdleProperties',
  7169. context: {
  7170. element,
  7171. moddleElement: businessObject,
  7172. properties: {
  7173. extensionElements
  7174. }
  7175. }
  7176. });
  7177. }
  7178. // (2) ensure zeebe:TaskSchedule
  7179. let taskSchedule = getTaskSchedule(element);
  7180. if (!taskSchedule) {
  7181. taskSchedule = createElement('zeebe:TaskSchedule', {}, extensionElements, bpmnFactory);
  7182. commands.push({
  7183. cmd: 'element.updateModdleProperties',
  7184. context: {
  7185. element,
  7186. moddleElement: extensionElements,
  7187. properties: {
  7188. values: [...extensionElements.get('values'), taskSchedule]
  7189. }
  7190. }
  7191. });
  7192. }
  7193. // (3) update zeebe:followUpDate
  7194. commands.push({
  7195. cmd: 'element.updateModdleProperties',
  7196. context: {
  7197. element,
  7198. moddleElement: taskSchedule,
  7199. properties: {
  7200. followUpDate: value
  7201. }
  7202. }
  7203. });
  7204. commandStack.execute('properties-panel.multi-command-executor', commands);
  7205. };
  7206. return FeelEntryWithVariableContext({
  7207. element,
  7208. id: 'taskScheduleFollowUpDate',
  7209. label: translate('Follow up date'),
  7210. feel: 'optional',
  7211. getValue,
  7212. setValue,
  7213. debounce
  7214. });
  7215. }
  7216. // helper ///////////////////////
  7217. function getTaskSchedule(element) {
  7218. const businessObject = ModelUtil.getBusinessObject(element);
  7219. return getExtensionElementsList(businessObject, 'zeebe:TaskSchedule')[0];
  7220. }
  7221. /**
  7222. * Check whether a given timer expression type is supported for a given element.
  7223. *
  7224. * @param {string} type
  7225. * @param {Element|ModdleElement} element
  7226. *
  7227. * @return {boolean}
  7228. */
  7229. function isTimerExpressionTypeSupported(type, element) {
  7230. const businessObject = ModelUtil.getBusinessObject(element);
  7231. switch (type) {
  7232. case 'timeDate':
  7233. return ModelUtil.isAny(element, ['bpmn:BoundaryEvent', 'bpmn:IntermediateCatchEvent', 'bpmn:StartEvent']);
  7234. case 'timeCycle':
  7235. if (ModelUtil.is(element, 'bpmn:StartEvent') && !hasParentEventSubProcess(businessObject) || !isInterrupting(businessObject)) {
  7236. return true;
  7237. }
  7238. if (ModelUtil.is(element, 'bpmn:BoundaryEvent') && !isInterrupting(businessObject)) {
  7239. return true;
  7240. }
  7241. return false;
  7242. case 'timeDuration':
  7243. if (ModelUtil.isAny(element, ['bpmn:BoundaryEvent', 'bpmn:IntermediateCatchEvent'])) {
  7244. return true;
  7245. }
  7246. if (ModelUtil.is(element, 'bpmn:StartEvent') && hasParentEventSubProcess(businessObject)) {
  7247. return true;
  7248. }
  7249. return false;
  7250. default:
  7251. return false;
  7252. }
  7253. }
  7254. function isInterrupting(businessObject) {
  7255. if (ModelUtil.is(businessObject, 'bpmn:BoundaryEvent')) {
  7256. return businessObject.get('cancelActivity') !== false;
  7257. }
  7258. return businessObject.get('isInterrupting') !== false;
  7259. }
  7260. function hasParentEventSubProcess(businessObject) {
  7261. const parent = businessObject.$parent;
  7262. return parent && ModelUtil.is(parent, 'bpmn:SubProcess') && parent.get('triggeredByEvent');
  7263. }
  7264. function TimerProps$1(props) {
  7265. const {
  7266. element,
  7267. injector
  7268. } = props;
  7269. const translate = injector.get('translate');
  7270. const businessObject = ModelUtil.getBusinessObject(element),
  7271. timerEventDefinition = getTimerEventDefinition(businessObject),
  7272. timerEventDefinitionType = getTimerDefinitionType(timerEventDefinition);
  7273. // (1) Only show for supported elements
  7274. if (!isTimerSupported(element)) {
  7275. return [];
  7276. }
  7277. const timerOptions = getTimerOptions(element, translate);
  7278. const entries = [];
  7279. entries.push({
  7280. id: 'timerEventDefinitionType',
  7281. component: TimerEventDefinitionType$1,
  7282. isEdited: propertiesPanel.isSelectEntryEdited,
  7283. options: timerOptions
  7284. });
  7285. if (timerEventDefinitionType) {
  7286. entries.push({
  7287. id: 'timerEventDefinitionValue',
  7288. component: TimerEventDefinitionValue$1,
  7289. isEdited: propertiesPanel.isFeelEntryEdited,
  7290. timerEventDefinitionType: timerEventDefinitionType || timerOptions[0].value
  7291. });
  7292. }
  7293. return entries;
  7294. }
  7295. function getTimerOptions(element, translate) {
  7296. const options = [];
  7297. if (isTimerExpressionTypeSupported('timeDate', element)) {
  7298. options.push({
  7299. value: 'timeDate',
  7300. label: translate('Date')
  7301. });
  7302. }
  7303. if (isTimerExpressionTypeSupported('timeDuration', element)) {
  7304. options.push({
  7305. value: 'timeDuration',
  7306. label: translate('Duration')
  7307. });
  7308. }
  7309. if (isTimerExpressionTypeSupported('timeCycle', element)) {
  7310. options.push({
  7311. value: 'timeCycle',
  7312. label: translate('Cycle')
  7313. });
  7314. }
  7315. return options;
  7316. }
  7317. /**
  7318. * TimerEventDefinitionType - Generic select entry allowing to select a specific
  7319. * timerEventDefintionType. To be used together with timerEventDefinitionValue.
  7320. *
  7321. * @param {type} props
  7322. * @return {SelectEntry}
  7323. */
  7324. function TimerEventDefinitionType$1(props) {
  7325. const {
  7326. element,
  7327. options
  7328. } = props;
  7329. const commandStack = useService('commandStack'),
  7330. bpmnFactory = useService('bpmnFactory'),
  7331. translate = useService('translate');
  7332. const businessObject = ModelUtil.getBusinessObject(element),
  7333. timerEventDefinition = getTimerEventDefinition(businessObject),
  7334. timerEventDefinitionType = getTimerDefinitionType(timerEventDefinition);
  7335. const getValue = () => {
  7336. return timerEventDefinitionType || '';
  7337. };
  7338. const setValue = value => {
  7339. // (1) Check if value is different to current type
  7340. if (value === timerEventDefinitionType) {
  7341. return;
  7342. }
  7343. // (2) Create empty formalExpression element
  7344. const formalExpression = createTimerFormalExpression(bpmnFactory, timerEventDefinition);
  7345. // (3) Set the value for selected timerEventDefinitionType
  7346. const newProps = {
  7347. timeDuration: undefined,
  7348. timeDate: undefined,
  7349. timeCycle: undefined
  7350. };
  7351. if (value !== '') {
  7352. newProps[value] = formalExpression;
  7353. }
  7354. // (4) Execute businessObject update
  7355. commandStack.execute('element.updateModdleProperties', {
  7356. element,
  7357. moddleElement: timerEventDefinition,
  7358. properties: newProps
  7359. });
  7360. };
  7361. const getOptions = element => {
  7362. return [{
  7363. value: '',
  7364. label: translate('<none>')
  7365. }, ...options];
  7366. };
  7367. return propertiesPanel.SelectEntry({
  7368. element,
  7369. id: 'timerEventDefinitionType',
  7370. label: translate('Type'),
  7371. getValue,
  7372. setValue,
  7373. getOptions
  7374. });
  7375. }
  7376. /**
  7377. * TimerEventDefinitionValue - Generic textField entry allowing to specify the
  7378. * timerEventDefintionValue based on the set timerEventDefintionType. To be used
  7379. * together with timerEventDefinitionType.
  7380. *
  7381. * @param {object} props
  7382. * @param {ModdleElement} props.element
  7383. * @param {'timeCycle'|'timeDate'|'timeDuration'} props.timerEventDefinitionType?
  7384. * @param {string} props.label?
  7385. * @return {TextFieldEntry}
  7386. */
  7387. function TimerEventDefinitionValue$1(props) {
  7388. const {
  7389. element,
  7390. label,
  7391. timerEventDefinitionType
  7392. } = props;
  7393. const commandStack = useService('commandStack'),
  7394. translate = useService('translate'),
  7395. debounce = useService('debounceInput'),
  7396. bpmnFactory = useService('bpmnFactory');
  7397. const businessObject = ModelUtil.getBusinessObject(element),
  7398. timerEventDefinition = getTimerEventDefinition(businessObject),
  7399. timerEventFormalExpression = timerEventDefinition.get(timerEventDefinitionType);
  7400. const getValue = () => {
  7401. return timerEventFormalExpression && timerEventFormalExpression.get('body');
  7402. };
  7403. const setValue = value => {
  7404. if (!timerEventFormalExpression) {
  7405. const expression = createTimerFormalExpression(bpmnFactory, timerEventDefinition);
  7406. expression.set('body', value);
  7407. commandStack.execute('element.updateModdleProperties', {
  7408. element,
  7409. moddleElement: timerEventDefinition,
  7410. properties: {
  7411. [timerEventDefinitionType]: expression
  7412. }
  7413. });
  7414. return;
  7415. }
  7416. commandStack.execute('element.updateModdleProperties', {
  7417. element,
  7418. moddleElement: timerEventFormalExpression,
  7419. properties: {
  7420. body: value
  7421. }
  7422. });
  7423. };
  7424. return FeelEntryWithVariableContext({
  7425. element,
  7426. id: 'timerEventDefinitionValue',
  7427. label: label || translate('Value'),
  7428. feel: 'optional',
  7429. getValue,
  7430. setValue,
  7431. debounce,
  7432. tooltip: getTimerEventDefinitionValueDescription$1(timerEventDefinitionType, translate)
  7433. });
  7434. }
  7435. // helper //////////////////////////
  7436. function createTimerFormalExpression(bpmnFactory, eventDefinition) {
  7437. const formalExpression = bpmnFactory.create('bpmn:FormalExpression', {
  7438. body: undefined
  7439. });
  7440. formalExpression.$parent = eventDefinition;
  7441. return formalExpression;
  7442. }
  7443. function getTimerEventDefinitionValueDescription$1(timerDefinitionType, translate) {
  7444. switch (timerDefinitionType) {
  7445. case 'timeDate':
  7446. return jsxRuntime.jsxs("div", {
  7447. children: [jsxRuntime.jsx("p", {
  7448. children: translate('A specific point in time defined as ISO 8601 combined date and time representation.')
  7449. }), jsxRuntime.jsxs("ul", {
  7450. children: [jsxRuntime.jsxs("li", {
  7451. children: [jsxRuntime.jsx("code", {
  7452. children: "2019-10-01T12:00:00Z"
  7453. }), " - ", translate('UTC time')]
  7454. }), jsxRuntime.jsxs("li", {
  7455. children: [jsxRuntime.jsx("code", {
  7456. children: "2019-10-02T08:09:40+02:00"
  7457. }), " - ", translate('UTC plus 2 hours zone offset')]
  7458. })]
  7459. }), jsxRuntime.jsx("a", {
  7460. href: "https://docs.camunda.io/docs/reference/bpmn-processes/timer-events/timer-events#time-date",
  7461. target: "_blank",
  7462. rel: "noopener",
  7463. title: translate('Timer documentation'),
  7464. children: translate('How to configure a timer')
  7465. })]
  7466. });
  7467. case 'timeCycle':
  7468. return jsxRuntime.jsxs("div", {
  7469. children: [jsxRuntime.jsx("p", {
  7470. children: translate('A cycle defined as ISO 8601 repeating intervals format, or a cron expression.')
  7471. }), jsxRuntime.jsxs("ul", {
  7472. children: [jsxRuntime.jsxs("li", {
  7473. children: [jsxRuntime.jsx("code", {
  7474. children: "R5/PT10S"
  7475. }), " - ", translate('every 10 seconds, up to 5 times')]
  7476. }), jsxRuntime.jsxs("li", {
  7477. children: [jsxRuntime.jsx("code", {
  7478. children: "R/P1D"
  7479. }), " - ", translate('every day, infinitely')]
  7480. }), jsxRuntime.jsxs("li", {
  7481. children: [jsxRuntime.jsx("code", {
  7482. children: "0 0 9-17 * * MON-FRI"
  7483. }), " - ", translate('every hour on the hour from 9-5 p.m. UTC Monday-Friday')]
  7484. })]
  7485. }), jsxRuntime.jsx("a", {
  7486. href: "https://docs.camunda.io/docs/reference/bpmn-processes/timer-events/timer-events#time-cycle",
  7487. target: "_blank",
  7488. rel: "noopener",
  7489. title: translate('Timer documentation'),
  7490. children: translate('How to configure a timer')
  7491. })]
  7492. });
  7493. case 'timeDuration':
  7494. return jsxRuntime.jsxs("div", {
  7495. children: [jsxRuntime.jsx("p", {
  7496. children: translate('A time duration defined as ISO 8601 durations format.')
  7497. }), jsxRuntime.jsxs("ul", {
  7498. children: [jsxRuntime.jsxs("li", {
  7499. children: [jsxRuntime.jsx("code", {
  7500. children: "PT15S"
  7501. }), " - ", translate('15 seconds')]
  7502. }), jsxRuntime.jsxs("li", {
  7503. children: [jsxRuntime.jsx("code", {
  7504. children: "PT1H30M"
  7505. }), " - ", translate('1 hour and 30 minutes')]
  7506. }), jsxRuntime.jsxs("li", {
  7507. children: [jsxRuntime.jsx("code", {
  7508. children: "P14D"
  7509. }), " - ", translate('14 days')]
  7510. })]
  7511. }), jsxRuntime.jsx("a", {
  7512. href: "https://docs.camunda.io/docs/reference/bpmn-processes/timer-events/timer-events#time-duration",
  7513. target: "_blank",
  7514. rel: "noopener",
  7515. title: translate('Timer documentation'),
  7516. children: translate('How to configure a timer')
  7517. })]
  7518. });
  7519. }
  7520. }
  7521. function ExtensionProperty(props) {
  7522. const {
  7523. idPrefix,
  7524. property
  7525. } = props;
  7526. const entries = [{
  7527. id: idPrefix + '-name',
  7528. component: NameProperty$1,
  7529. idPrefix,
  7530. property
  7531. }, {
  7532. id: idPrefix + '-value',
  7533. component: ValueProperty$1,
  7534. idPrefix,
  7535. property
  7536. }];
  7537. return entries;
  7538. }
  7539. function NameProperty$1(props) {
  7540. const {
  7541. idPrefix,
  7542. element,
  7543. property
  7544. } = props;
  7545. const commandStack = useService('commandStack');
  7546. const translate = useService('translate');
  7547. const debounce = useService('debounceInput');
  7548. const setValue = value => {
  7549. commandStack.execute('element.updateModdleProperties', {
  7550. element,
  7551. moddleElement: property,
  7552. properties: {
  7553. name: value
  7554. }
  7555. });
  7556. };
  7557. const getValue = () => {
  7558. return property.name;
  7559. };
  7560. return propertiesPanel.TextFieldEntry({
  7561. element: property,
  7562. id: idPrefix + '-name',
  7563. label: translate('Name'),
  7564. getValue,
  7565. setValue,
  7566. debounce
  7567. });
  7568. }
  7569. function ValueProperty$1(props) {
  7570. const {
  7571. idPrefix,
  7572. element,
  7573. property
  7574. } = props;
  7575. const commandStack = useService('commandStack');
  7576. const translate = useService('translate');
  7577. const debounce = useService('debounceInput');
  7578. const setValue = value => {
  7579. commandStack.execute('element.updateModdleProperties', {
  7580. element,
  7581. moddleElement: property,
  7582. properties: {
  7583. value
  7584. }
  7585. });
  7586. };
  7587. const getValue = () => {
  7588. return property.value;
  7589. };
  7590. return propertiesPanel.TextFieldEntry({
  7591. element: property,
  7592. id: idPrefix + '-value',
  7593. label: translate('Value'),
  7594. getValue,
  7595. setValue,
  7596. debounce
  7597. });
  7598. }
  7599. function ExtensionPropertiesProps({
  7600. element,
  7601. injector,
  7602. namespace = 'camunda'
  7603. }) {
  7604. let businessObject = getRelevantBusinessObject(element);
  7605. // do not offer for empty pools
  7606. if (!businessObject) {
  7607. return;
  7608. }
  7609. const properties = getPropertiesList(businessObject, namespace) || [];
  7610. const bpmnFactory = injector.get('bpmnFactory'),
  7611. commandStack = injector.get('commandStack');
  7612. const items = properties.map((property, index) => {
  7613. const id = element.id + '-extensionProperty-' + index;
  7614. return {
  7615. id,
  7616. label: property.get('name') || '',
  7617. entries: ExtensionProperty({
  7618. idPrefix: id,
  7619. element,
  7620. property
  7621. }),
  7622. autoFocusEntry: id + '-name',
  7623. remove: removeFactory$9({
  7624. commandStack,
  7625. element,
  7626. property,
  7627. namespace
  7628. })
  7629. };
  7630. });
  7631. return {
  7632. items,
  7633. add: addFactory$6({
  7634. bpmnFactory,
  7635. commandStack,
  7636. element,
  7637. namespace
  7638. }),
  7639. shouldSort: false
  7640. };
  7641. }
  7642. function removeFactory$9({
  7643. commandStack,
  7644. element,
  7645. property,
  7646. namespace
  7647. }) {
  7648. return function (event) {
  7649. event.stopPropagation();
  7650. const commands = [];
  7651. const businessObject = getRelevantBusinessObject(element);
  7652. const extensionElements = businessObject.get('extensionElements');
  7653. const properties = getProperties(businessObject, namespace);
  7654. if (!properties) {
  7655. return;
  7656. }
  7657. const propertyName = getPropertyName(namespace);
  7658. const values = minDash.without(properties.get(propertyName), property);
  7659. commands.push({
  7660. cmd: 'element.updateModdleProperties',
  7661. context: {
  7662. element,
  7663. moddleElement: properties,
  7664. properties: {
  7665. [propertyName]: values
  7666. }
  7667. }
  7668. });
  7669. // remove camunda:Properties if there are no properties anymore
  7670. if (!values.length) {
  7671. commands.push({
  7672. cmd: 'element.updateModdleProperties',
  7673. context: {
  7674. element,
  7675. moddleElement: extensionElements,
  7676. properties: {
  7677. values: minDash.without(extensionElements.get('values'), properties)
  7678. }
  7679. }
  7680. });
  7681. }
  7682. commandStack.execute('properties-panel.multi-command-executor', commands);
  7683. };
  7684. }
  7685. function addFactory$6({
  7686. bpmnFactory,
  7687. commandStack,
  7688. element,
  7689. namespace
  7690. }) {
  7691. return function (event) {
  7692. event.stopPropagation();
  7693. let commands = [];
  7694. const businessObject = getRelevantBusinessObject(element);
  7695. let extensionElements = businessObject.get('extensionElements');
  7696. // (1) ensure extension elements
  7697. if (!extensionElements) {
  7698. extensionElements = createElement('bpmn:ExtensionElements', {
  7699. values: []
  7700. }, businessObject, bpmnFactory);
  7701. commands.push({
  7702. cmd: 'element.updateModdleProperties',
  7703. context: {
  7704. element,
  7705. moddleElement: businessObject,
  7706. properties: {
  7707. extensionElements
  7708. }
  7709. }
  7710. });
  7711. }
  7712. const propertyName = getPropertyName(namespace);
  7713. // (2) ensure camunda:Properties
  7714. let properties = getProperties(businessObject, namespace);
  7715. if (!properties) {
  7716. const parent = extensionElements;
  7717. properties = createElement(`${namespace}:Properties`, {
  7718. [propertyName]: []
  7719. }, parent, bpmnFactory);
  7720. commands.push({
  7721. cmd: 'element.updateModdleProperties',
  7722. context: {
  7723. element,
  7724. moddleElement: extensionElements,
  7725. properties: {
  7726. values: [...extensionElements.get('values'), properties]
  7727. }
  7728. }
  7729. });
  7730. }
  7731. // (3) create camunda:Property
  7732. const property = createElement(`${namespace}:Property`, {}, properties, bpmnFactory);
  7733. // (4) add property to list
  7734. commands.push({
  7735. cmd: 'element.updateModdleProperties',
  7736. context: {
  7737. element,
  7738. moddleElement: properties,
  7739. properties: {
  7740. [propertyName]: [...properties.get(propertyName), property]
  7741. }
  7742. }
  7743. });
  7744. // (5) commit all updates
  7745. commandStack.execute('properties-panel.multi-command-executor', commands);
  7746. };
  7747. }
  7748. // helper //////////////////
  7749. function getRelevantBusinessObject(element) {
  7750. let businessObject = ModelUtil.getBusinessObject(element);
  7751. if (ModelUtil.is(element, 'bpmn:Participant')) {
  7752. return businessObject.get('processRef');
  7753. }
  7754. return businessObject;
  7755. }
  7756. function getPropertyName(namespace = 'camunda') {
  7757. if (namespace === 'zeebe') {
  7758. return 'properties';
  7759. }
  7760. return 'values';
  7761. }
  7762. function getProperties(element, namespace = 'camunda') {
  7763. const businessObject = getRelevantBusinessObject(element);
  7764. return getExtensionElementsList(businessObject, `${namespace}:Properties`)[0];
  7765. }
  7766. function getPropertiesList(element, namespace = 'camunda') {
  7767. const businessObject = getRelevantBusinessObject(element);
  7768. const properties = getProperties(businessObject, namespace);
  7769. return properties && properties.get(getPropertyName(namespace));
  7770. }
  7771. /**
  7772. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  7773. */
  7774. const LOW_PRIORITY$1 = 500;
  7775. const ZEEBE_GROUPS = [BusinessRuleImplementationGroup, CalledDecisionGroup, ScriptImplementationGroup, ScriptGroup$1, TaskDefinitionGroup, AssignmentDefinitionGroup, FormGroup$1, ConditionGroup$1, TargetGroup, InputPropagationGroup, InputGroup$1, OutputPropagationGroup, OutputGroup$1, HeaderGroup, ExtensionPropertiesGroup$1];
  7776. class ZeebePropertiesProvider {
  7777. constructor(propertiesPanel, injector) {
  7778. propertiesPanel.registerProvider(LOW_PRIORITY$1, this);
  7779. this._injector = injector;
  7780. }
  7781. getGroups(element) {
  7782. return groups => {
  7783. // (1) add zeebe specific groups
  7784. groups = groups.concat(this._getGroups(element));
  7785. // (2) update existing groups with zeebe specific properties
  7786. updateErrorGroup$1(groups, element);
  7787. updateEscalationGroup$1(groups, element);
  7788. updateMessageGroup(groups, element);
  7789. updateSignalGroup(groups, element);
  7790. updateTimerGroup$1(groups, element, this._injector);
  7791. updateMultiInstanceGroup$1(groups, element);
  7792. // (3) remove message group when not applicable
  7793. groups = removeMessageGroup(groups, element);
  7794. return groups;
  7795. };
  7796. }
  7797. _getGroups(element) {
  7798. const groups = ZEEBE_GROUPS.map(createGroup => createGroup(element, this._injector));
  7799. return groups.filter(group => group !== null);
  7800. }
  7801. }
  7802. ZeebePropertiesProvider.$inject = ['propertiesPanel', 'injector'];
  7803. function CalledDecisionGroup(element) {
  7804. const group = {
  7805. id: 'calledDecision',
  7806. label: 'Called decision',
  7807. entries: [...CalledDecisionProps({
  7808. element
  7809. })],
  7810. component: propertiesPanel.Group
  7811. };
  7812. return group.entries.length ? group : null;
  7813. }
  7814. function ScriptGroup$1(element) {
  7815. const group = {
  7816. id: 'script',
  7817. label: 'Script',
  7818. entries: [...ScriptProps$1({
  7819. element
  7820. })],
  7821. component: propertiesPanel.Group
  7822. };
  7823. return group.entries.length ? group : null;
  7824. }
  7825. function TaskDefinitionGroup(element) {
  7826. const group = {
  7827. id: 'taskDefinition',
  7828. label: 'Task definition',
  7829. entries: [...TaskDefinitionProps({
  7830. element
  7831. })],
  7832. component: propertiesPanel.Group
  7833. };
  7834. return group.entries.length ? group : null;
  7835. }
  7836. function InputGroup$1(element, injector) {
  7837. const group = {
  7838. id: 'inputs',
  7839. label: 'Inputs',
  7840. component: propertiesPanel.ListGroup,
  7841. ...InputProps$1({
  7842. element,
  7843. injector
  7844. })
  7845. };
  7846. return group.items ? group : null;
  7847. }
  7848. function OutputGroup$1(element, injector) {
  7849. const group = {
  7850. id: 'outputs',
  7851. label: 'Outputs',
  7852. component: propertiesPanel.ListGroup,
  7853. ...OutputProps$1({
  7854. element,
  7855. injector
  7856. })
  7857. };
  7858. return group.items ? group : null;
  7859. }
  7860. function ConditionGroup$1(element) {
  7861. const group = {
  7862. id: 'condition',
  7863. label: 'Condition',
  7864. entries: [...ConditionProps$1({
  7865. element
  7866. })],
  7867. component: propertiesPanel.Group
  7868. };
  7869. return group.entries.length ? group : null;
  7870. }
  7871. function FormGroup$1(element, injector) {
  7872. const group = {
  7873. id: 'form',
  7874. label: 'Form',
  7875. entries: [...FormProps$1({
  7876. element,
  7877. injector
  7878. })],
  7879. component: propertiesPanel.Group
  7880. };
  7881. return group.entries.length ? group : null;
  7882. }
  7883. function TargetGroup(element) {
  7884. const group = {
  7885. id: 'calledElement',
  7886. label: 'Called element',
  7887. entries: [...TargetProps({
  7888. element
  7889. })],
  7890. component: propertiesPanel.Group
  7891. };
  7892. return group.entries.length ? group : null;
  7893. }
  7894. function HeaderGroup(element, injector) {
  7895. const group = {
  7896. id: 'headers',
  7897. label: 'Headers',
  7898. component: propertiesPanel.ListGroup,
  7899. ...HeaderProps({
  7900. element,
  7901. injector
  7902. })
  7903. };
  7904. return group.items ? group : null;
  7905. }
  7906. function OutputPropagationGroup(element) {
  7907. const group = {
  7908. id: 'outputPropagation',
  7909. label: 'Output propagation',
  7910. entries: [...OutputPropagationProps({
  7911. element
  7912. })],
  7913. component: propertiesPanel.Group
  7914. };
  7915. return group.entries.length ? group : null;
  7916. }
  7917. function InputPropagationGroup(element) {
  7918. const group = {
  7919. id: 'inputPropagation',
  7920. label: 'Input propagation',
  7921. entries: [...InputPropagationProps({
  7922. element
  7923. })],
  7924. component: propertiesPanel.Group
  7925. };
  7926. return group.entries.length ? group : null;
  7927. }
  7928. function BusinessRuleImplementationGroup(element) {
  7929. const group = {
  7930. id: 'businessRuleImplementation',
  7931. label: 'Implementation',
  7932. entries: [...BusinessRuleImplementationProps({
  7933. element
  7934. })],
  7935. component: propertiesPanel.Group
  7936. };
  7937. return group.entries.length ? group : null;
  7938. }
  7939. function ScriptImplementationGroup(element) {
  7940. const group = {
  7941. id: 'scriptImplementation',
  7942. label: 'Implementation',
  7943. entries: [...ScriptImplementationProps({
  7944. element
  7945. })],
  7946. component: propertiesPanel.Group
  7947. };
  7948. return group.entries.length ? group : null;
  7949. }
  7950. function AssignmentDefinitionGroup(element) {
  7951. const group = {
  7952. id: 'assignmentDefinition',
  7953. label: 'Assignment',
  7954. entries: [...AssignmentDefinitionProps({
  7955. element
  7956. }), ...TaskScheduleProps({
  7957. element
  7958. })],
  7959. component: propertiesPanel.Group
  7960. };
  7961. return group.entries.length ? group : null;
  7962. }
  7963. function ExtensionPropertiesGroup$1(element, injector) {
  7964. const group = {
  7965. label: 'Extension properties',
  7966. id: 'Zeebe__ExtensionProperties',
  7967. component: propertiesPanel.ListGroup,
  7968. ...ExtensionPropertiesProps({
  7969. element,
  7970. injector,
  7971. namespace: 'zeebe'
  7972. })
  7973. };
  7974. if (group.items) {
  7975. return group;
  7976. }
  7977. return null;
  7978. }
  7979. function updateErrorGroup$1(groups, element) {
  7980. const errorGroup = findGroup$1(groups, 'error');
  7981. if (!errorGroup) {
  7982. return;
  7983. }
  7984. errorGroup.entries = replaceEntries(errorGroup.entries, ErrorProps$1({
  7985. element
  7986. }));
  7987. }
  7988. function updateEscalationGroup$1(groups, element) {
  7989. const escalationGroup = findGroup$1(groups, 'escalation');
  7990. if (!escalationGroup) {
  7991. return;
  7992. }
  7993. escalationGroup.entries = replaceEntries(escalationGroup.entries, EscalationProps$1({
  7994. element
  7995. }));
  7996. }
  7997. function updateSignalGroup(groups, element) {
  7998. const signalGroup = findGroup$1(groups, 'signal');
  7999. if (!signalGroup) {
  8000. return;
  8001. }
  8002. signalGroup.entries = replaceEntries(signalGroup.entries, SignalProps({
  8003. element
  8004. }));
  8005. }
  8006. function updateMessageGroup(groups, element) {
  8007. const messageGroup = findGroup$1(groups, 'message');
  8008. if (!messageGroup) {
  8009. return;
  8010. }
  8011. messageGroup.entries = replaceEntries(messageGroup.entries, MessageProps({
  8012. element
  8013. }));
  8014. }
  8015. // overwrite bpmn generic timerEventDefinition group with zeebe-specific one
  8016. function updateTimerGroup$1(groups, element, injector) {
  8017. const timerEventGroup = findGroup$1(groups, 'timer');
  8018. if (!timerEventGroup) {
  8019. return;
  8020. }
  8021. timerEventGroup.entries = [...TimerProps$1({
  8022. element,
  8023. injector
  8024. })];
  8025. }
  8026. // overwrite bpmn generic multiInstance group with zeebe-specific one
  8027. function updateMultiInstanceGroup$1(groups, element) {
  8028. const multiInstanceGroup = findGroup$1(groups, 'multiInstance');
  8029. if (!multiInstanceGroup) {
  8030. return;
  8031. }
  8032. multiInstanceGroup.entries = [...MultiInstanceProps$1({
  8033. element
  8034. })];
  8035. }
  8036. // remove message group from Message End Event & Message Throw Event
  8037. function removeMessageGroup(groups, element) {
  8038. const messageGroup = findGroup$1(groups, 'message');
  8039. if (isMessageEndEvent(element) || isMessageThrowEvent(element)) {
  8040. groups = groups.filter(g => g != messageGroup);
  8041. }
  8042. return groups;
  8043. }
  8044. // helper /////////////////////
  8045. function findGroup$1(groups, id) {
  8046. return groups.find(g => g.id === id);
  8047. }
  8048. /**
  8049. * Replace entries with the same ID.
  8050. *s
  8051. * @param {Entry[]} oldEntries
  8052. * @param {Entry[]} newEntries
  8053. *
  8054. * @returns {Entry[]} combined entries
  8055. */
  8056. function replaceEntries(oldEntries, newEntries) {
  8057. const filteredEntries = oldEntries.filter(oldEntry => !newEntries.find(newEntry => newEntry.id === oldEntry.id));
  8058. return [...filteredEntries, ...newEntries];
  8059. }
  8060. var index$1 = {
  8061. __init__: ['zeebePropertiesProvider'],
  8062. zeebePropertiesProvider: ['type', ZeebePropertiesProvider]
  8063. };
  8064. function AsynchronousContinuationsProps(props) {
  8065. const {
  8066. element
  8067. } = props;
  8068. const checkboxIsEditedInverted = node => {
  8069. return node && !node.checked;
  8070. };
  8071. const businessObject = ModelUtil.getBusinessObject(element);
  8072. const entries = [];
  8073. if (ModelUtil.is(element, 'camunda:AsyncCapable')) {
  8074. entries.push({
  8075. id: 'asynchronousContinuationBefore',
  8076. component: AsynchronousContinuationBefore,
  8077. isEdited: propertiesPanel.isCheckboxEntryEdited
  8078. }, {
  8079. id: 'asynchronousContinuationAfter',
  8080. component: AsynchronousContinuationAfter,
  8081. isEdited: propertiesPanel.isCheckboxEntryEdited
  8082. });
  8083. if (isAsyncBefore$2(businessObject) || isAsyncAfter$2(businessObject)) {
  8084. entries.push({
  8085. id: 'exclusive',
  8086. component: Exclusive,
  8087. isEdited: checkboxIsEditedInverted
  8088. });
  8089. }
  8090. }
  8091. return entries;
  8092. }
  8093. function AsynchronousContinuationBefore(props) {
  8094. const {
  8095. element
  8096. } = props;
  8097. const commandStack = useService('commandStack'),
  8098. translate = useService('translate');
  8099. const businessObject = ModelUtil.getBusinessObject(element);
  8100. const getValue = () => {
  8101. return isAsyncBefore$2(businessObject);
  8102. };
  8103. const setValue = value => {
  8104. // overwrite the legacy `async` property, we will use the more explicit `asyncBefore`
  8105. const props = {
  8106. 'camunda:asyncBefore': value,
  8107. 'camunda:async': undefined
  8108. };
  8109. commandStack.execute('element.updateModdleProperties', {
  8110. element,
  8111. moddleElement: businessObject,
  8112. properties: props
  8113. });
  8114. };
  8115. return propertiesPanel.CheckboxEntry({
  8116. element,
  8117. id: 'asynchronousContinuationBefore',
  8118. label: translate('Before'),
  8119. getValue,
  8120. setValue
  8121. });
  8122. }
  8123. function AsynchronousContinuationAfter(props) {
  8124. const {
  8125. element
  8126. } = props;
  8127. const commandStack = useService('commandStack'),
  8128. translate = useService('translate');
  8129. const businessObject = ModelUtil.getBusinessObject(element);
  8130. const getValue = () => {
  8131. return isAsyncAfter$2(businessObject);
  8132. };
  8133. const setValue = value => {
  8134. commandStack.execute('element.updateModdleProperties', {
  8135. element,
  8136. moddleElement: businessObject,
  8137. properties: {
  8138. 'camunda:asyncAfter': value
  8139. }
  8140. });
  8141. };
  8142. return propertiesPanel.CheckboxEntry({
  8143. element,
  8144. id: 'asynchronousContinuationAfter',
  8145. label: translate('After'),
  8146. getValue,
  8147. setValue
  8148. });
  8149. }
  8150. function Exclusive(props) {
  8151. const {
  8152. element
  8153. } = props;
  8154. const commandStack = useService('commandStack'),
  8155. translate = useService('translate');
  8156. const businessObject = ModelUtil.getBusinessObject(element);
  8157. const getValue = () => {
  8158. return isExclusive$1(businessObject);
  8159. };
  8160. const setValue = value => {
  8161. commandStack.execute('element.updateModdleProperties', {
  8162. element,
  8163. moddleElement: businessObject,
  8164. properties: {
  8165. 'camunda:exclusive': value
  8166. }
  8167. });
  8168. };
  8169. return propertiesPanel.CheckboxEntry({
  8170. element,
  8171. id: 'exclusive',
  8172. label: translate('Exclusive'),
  8173. getValue,
  8174. setValue
  8175. });
  8176. }
  8177. // helper //////////////////
  8178. /**
  8179. * Returns true if the attribute 'camunda:asyncBefore' is set
  8180. * to true.
  8181. *
  8182. * @param {ModdleElement} bo
  8183. *
  8184. * @return {boolean} a boolean value
  8185. */
  8186. function isAsyncBefore$2(bo) {
  8187. return !!(bo.get('camunda:asyncBefore') || bo.get('camunda:async'));
  8188. }
  8189. /**
  8190. * Returns true if the attribute 'camunda:asyncAfter' is set
  8191. * to true.
  8192. *
  8193. * @param {ModdleElement} bo
  8194. *
  8195. * @return {boolean} a boolean value
  8196. */
  8197. function isAsyncAfter$2(bo) {
  8198. return !!bo.get('camunda:asyncAfter');
  8199. }
  8200. /**
  8201. * Returns true if the attribute 'camunda:exclusive' is set
  8202. * to true.
  8203. *
  8204. * @param {ModdleElement} bo
  8205. *
  8206. * @return {boolean} a boolean value
  8207. */
  8208. function isExclusive$1(bo) {
  8209. return !!bo.get('camunda:exclusive');
  8210. }
  8211. const EMPTY_OPTION$1 = '';
  8212. function BusinessKeyProps$1(props) {
  8213. const {
  8214. element
  8215. } = props;
  8216. if (!ModelUtil.is(element, 'bpmn:StartEvent') || !hasFormFields(element)) {
  8217. return [];
  8218. }
  8219. return [{
  8220. id: 'businessKey',
  8221. component: BusinessKey$1,
  8222. isEdited: propertiesPanel.isSelectEntryEdited
  8223. }];
  8224. }
  8225. function BusinessKey$1(props) {
  8226. const {
  8227. element
  8228. } = props;
  8229. const commandStack = useService('commandStack');
  8230. const translate = useService('translate');
  8231. const formData = getFormData$2(element);
  8232. const getValue = () => {
  8233. return formData.get('camunda:businessKey') || '';
  8234. };
  8235. const setValue = value => {
  8236. commandStack.execute('element.updateModdleProperties', {
  8237. element,
  8238. moddleElement: formData,
  8239. properties: {
  8240. 'camunda:businessKey': value
  8241. }
  8242. });
  8243. };
  8244. const getOptions = () => {
  8245. const options = [{
  8246. value: EMPTY_OPTION$1,
  8247. label: translate('<none>')
  8248. }];
  8249. const fields = formData.get('fields');
  8250. fields.forEach(field => {
  8251. const id = field.get('camunda:id');
  8252. if (id) {
  8253. options.push({
  8254. value: id,
  8255. label: id
  8256. });
  8257. }
  8258. });
  8259. return options;
  8260. };
  8261. return propertiesPanel.SelectEntry({
  8262. element,
  8263. id: 'businessKey',
  8264. label: translate('Key'),
  8265. getValue,
  8266. setValue,
  8267. getOptions
  8268. });
  8269. }
  8270. // helper ///////////////////
  8271. function getFormData$2(element) {
  8272. const businessObject = ModelUtil.getBusinessObject(element);
  8273. return getExtensionElementsList(businessObject, 'camunda:FormData')[0];
  8274. }
  8275. function hasFormFields(element) {
  8276. const businessObject = ModelUtil.getBusinessObject(element);
  8277. const formData = getFormData$2(businessObject);
  8278. return formData && formData.get('camunda:fields').length;
  8279. }
  8280. function CalledBpmnProps(props) {
  8281. const {
  8282. element
  8283. } = props;
  8284. const entries = [{
  8285. id: 'calledElement',
  8286. component: CalledElement,
  8287. isEdited: propertiesPanel.isTextFieldEntryEdited
  8288. }, {
  8289. id: 'calledElementBinding',
  8290. component: CalledElementBinding,
  8291. isEdited: propertiesPanel.isSelectEntryEdited
  8292. }, {
  8293. id: 'calledElementTenantId',
  8294. component: CalledElementTenantId,
  8295. isEdited: propertiesPanel.isTextFieldEntryEdited
  8296. }];
  8297. const binding = ModelUtil.getBusinessObject(element).get('camunda:calledElementBinding');
  8298. if (binding === 'version') {
  8299. entries.splice(-1, 0, {
  8300. id: 'calledElementVersion',
  8301. component: CalledElementVersion,
  8302. isEdited: propertiesPanel.isTextFieldEntryEdited
  8303. });
  8304. } else if (binding === 'versionTag') {
  8305. entries.splice(-1, 0, {
  8306. id: 'calledElementVersionTag',
  8307. component: CalledElementVersionTag,
  8308. isEdited: propertiesPanel.isTextFieldEntryEdited
  8309. });
  8310. }
  8311. return entries;
  8312. }
  8313. function CalledElement(props) {
  8314. const {
  8315. element
  8316. } = props;
  8317. const modeling = useService('modeling');
  8318. const translate = useService('translate');
  8319. const debounce = useService('debounceInput');
  8320. const getValue = () => {
  8321. return ModelUtil.getBusinessObject(element).get('calledElement');
  8322. };
  8323. const setValue = value => {
  8324. modeling.updateProperties(element, {
  8325. calledElement: value || ''
  8326. });
  8327. };
  8328. return jsxRuntime.jsx(propertiesPanel.TextFieldEntry, {
  8329. element: element,
  8330. id: "calledElement",
  8331. label: translate('Called element'),
  8332. getValue: getValue,
  8333. setValue: setValue,
  8334. debounce: debounce
  8335. });
  8336. }
  8337. function CalledElementBinding(props) {
  8338. const {
  8339. element
  8340. } = props;
  8341. const modeling = useService('modeling');
  8342. const translate = useService('translate');
  8343. const getValue = () => {
  8344. return ModelUtil.getBusinessObject(element).get('camunda:calledElementBinding') || 'latest';
  8345. };
  8346. const setValue = value => {
  8347. modeling.updateProperties(element, {
  8348. calledElementBinding: value === 'latest' ? undefined : value,
  8349. calledElementVersion: undefined,
  8350. calledElementVersionTag: undefined
  8351. });
  8352. };
  8353. const getOptions = () => [{
  8354. value: 'latest',
  8355. label: translate('latest')
  8356. }, {
  8357. value: 'deployment',
  8358. label: translate('deployment')
  8359. }, {
  8360. value: 'version',
  8361. label: translate('version')
  8362. }, {
  8363. value: 'versionTag',
  8364. label: translate('version tag')
  8365. }];
  8366. return jsxRuntime.jsx(propertiesPanel.SelectEntry, {
  8367. element: element,
  8368. id: "calledElementBinding",
  8369. label: translate('Binding'),
  8370. getValue: getValue,
  8371. setValue: setValue,
  8372. getOptions: getOptions
  8373. });
  8374. }
  8375. function CalledElementVersion(props) {
  8376. const {
  8377. element
  8378. } = props;
  8379. const modeling = useService('modeling');
  8380. const translate = useService('translate');
  8381. const debounce = useService('debounceInput');
  8382. const getValue = () => {
  8383. return ModelUtil.getBusinessObject(element).get('camunda:calledElementVersion');
  8384. };
  8385. const setValue = value => {
  8386. modeling.updateProperties(element, {
  8387. calledElementVersion: value
  8388. });
  8389. };
  8390. return jsxRuntime.jsx(propertiesPanel.TextFieldEntry, {
  8391. element: element,
  8392. id: "calledElementVersion",
  8393. label: translate('Version'),
  8394. getValue: getValue,
  8395. setValue: setValue,
  8396. debounce: debounce
  8397. });
  8398. }
  8399. function CalledElementVersionTag(props) {
  8400. const {
  8401. element
  8402. } = props;
  8403. const modeling = useService('modeling');
  8404. const translate = useService('translate');
  8405. const debounce = useService('debounceInput');
  8406. const getValue = () => {
  8407. return ModelUtil.getBusinessObject(element).get('camunda:calledElementVersionTag');
  8408. };
  8409. const setValue = value => {
  8410. modeling.updateProperties(element, {
  8411. calledElementVersionTag: value
  8412. });
  8413. };
  8414. return jsxRuntime.jsx(propertiesPanel.TextFieldEntry, {
  8415. element: element,
  8416. id: "calledElementVersionTag",
  8417. label: translate('Version tag'),
  8418. getValue: getValue,
  8419. setValue: setValue,
  8420. debounce: debounce
  8421. });
  8422. }
  8423. function CalledElementTenantId(props) {
  8424. const {
  8425. element
  8426. } = props;
  8427. const modeling = useService('modeling');
  8428. const translate = useService('translate');
  8429. const debounce = useService('debounceInput');
  8430. const getValue = () => {
  8431. return ModelUtil.getBusinessObject(element).get('camunda:calledElementTenantId');
  8432. };
  8433. const setValue = value => {
  8434. modeling.updateProperties(element, {
  8435. calledElementTenantId: value
  8436. });
  8437. };
  8438. return jsxRuntime.jsx(propertiesPanel.TextFieldEntry, {
  8439. element: element,
  8440. id: "calledElementTenantId",
  8441. label: translate('Tenant ID'),
  8442. getValue: getValue,
  8443. setValue: setValue,
  8444. debounce: debounce
  8445. });
  8446. }
  8447. function CalledCmmnProps(props) {
  8448. const {
  8449. element
  8450. } = props;
  8451. const entries = [{
  8452. id: 'calledElementCaseRef',
  8453. component: CaseRef,
  8454. isEdited: propertiesPanel.isTextFieldEntryEdited
  8455. }, {
  8456. id: 'calledElementCaseBinding',
  8457. component: CaseBinding,
  8458. isEdited: propertiesPanel.isSelectEntryEdited
  8459. }, {
  8460. id: 'calledElementCaseTenantId',
  8461. component: CaseTenantId,
  8462. isEdited: propertiesPanel.isTextFieldEntryEdited
  8463. }];
  8464. if (ModelUtil.getBusinessObject(element).get('camunda:caseBinding') === 'version') {
  8465. entries.splice(-1, 0, {
  8466. id: 'calledElementCaseVersion',
  8467. component: CaseVersion,
  8468. isEdited: propertiesPanel.isTextFieldEntryEdited
  8469. });
  8470. }
  8471. return entries;
  8472. }
  8473. function CaseRef(props) {
  8474. const {
  8475. element
  8476. } = props;
  8477. const modeling = useService('modeling');
  8478. const translate = useService('translate');
  8479. const debounce = useService('debounceInput');
  8480. const getValue = () => {
  8481. return ModelUtil.getBusinessObject(element).get('camunda:caseRef');
  8482. };
  8483. const setValue = value => {
  8484. modeling.updateProperties(element, {
  8485. caseRef: value || ''
  8486. });
  8487. };
  8488. return jsxRuntime.jsx(propertiesPanel.TextFieldEntry, {
  8489. element: element,
  8490. id: "calledElementCaseRef",
  8491. label: translate('Case ref'),
  8492. getValue: getValue,
  8493. setValue: setValue,
  8494. debounce: debounce
  8495. });
  8496. }
  8497. function CaseBinding(props) {
  8498. const {
  8499. element
  8500. } = props;
  8501. const modeling = useService('modeling');
  8502. const translate = useService('translate');
  8503. const getValue = () => {
  8504. return ModelUtil.getBusinessObject(element).get('camunda:caseBinding') || 'latest';
  8505. };
  8506. const setValue = value => {
  8507. modeling.updateProperties(element, {
  8508. caseBinding: value === 'latest' ? undefined : value,
  8509. caseVersion: undefined
  8510. });
  8511. };
  8512. const getOptions = () => [{
  8513. value: 'latest',
  8514. label: translate('latest')
  8515. }, {
  8516. value: 'deployment',
  8517. label: translate('deployment')
  8518. }, {
  8519. value: 'version',
  8520. label: translate('version')
  8521. }];
  8522. return jsxRuntime.jsx(propertiesPanel.SelectEntry, {
  8523. element: element,
  8524. id: "calledElementCaseBinding",
  8525. label: translate('Binding'),
  8526. getValue: getValue,
  8527. setValue: setValue,
  8528. getOptions: getOptions
  8529. });
  8530. }
  8531. function CaseVersion(props) {
  8532. const {
  8533. element
  8534. } = props;
  8535. const modeling = useService('modeling');
  8536. const translate = useService('translate');
  8537. const debounce = useService('debounceInput');
  8538. const getValue = () => {
  8539. return ModelUtil.getBusinessObject(element).get('camunda:caseVersion');
  8540. };
  8541. const setValue = value => {
  8542. modeling.updateProperties(element, {
  8543. caseVersion: value
  8544. });
  8545. };
  8546. return jsxRuntime.jsx(propertiesPanel.TextFieldEntry, {
  8547. element: element,
  8548. id: "calledElementCaseVersion",
  8549. label: translate('Version'),
  8550. getValue: getValue,
  8551. setValue: setValue,
  8552. debounce: debounce
  8553. });
  8554. }
  8555. function CaseTenantId(props) {
  8556. const {
  8557. element
  8558. } = props;
  8559. const modeling = useService('modeling');
  8560. const translate = useService('translate');
  8561. const debounce = useService('debounceInput');
  8562. const getValue = () => {
  8563. return ModelUtil.getBusinessObject(element).get('camunda:caseTenantId');
  8564. };
  8565. const setValue = value => {
  8566. modeling.updateProperties(element, {
  8567. caseTenantId: value
  8568. });
  8569. };
  8570. return jsxRuntime.jsx(propertiesPanel.TextFieldEntry, {
  8571. element: element,
  8572. id: "calledElementCaseTenantId",
  8573. label: translate('Tenant ID'),
  8574. getValue: getValue,
  8575. setValue: setValue,
  8576. debounce: debounce
  8577. });
  8578. }
  8579. function DelegateVariableMappingProps(props) {
  8580. const {
  8581. element
  8582. } = props;
  8583. const entries = [{
  8584. id: 'calledElementDelegateVariableMappingType',
  8585. component: DelegateVariableMappingType,
  8586. isEdited: propertiesPanel.isSelectEntryEdited
  8587. }];
  8588. const type = getDelegateVariableMappingType(element);
  8589. if (type === 'class') {
  8590. entries.push({
  8591. id: 'calledElementVariableMappingClass',
  8592. component: VariableMappingClass,
  8593. isEdited: propertiesPanel.isTextFieldEntryEdited
  8594. });
  8595. } else if (type === 'delegateExpression') {
  8596. entries.push({
  8597. id: 'calledElementVariableMappingDelegateExpression',
  8598. component: VariableMappingDelegateExpression,
  8599. isEdited: propertiesPanel.isTextFieldEntryEdited
  8600. });
  8601. }
  8602. return entries;
  8603. }
  8604. const DEFAULT_PROPS$5 = {
  8605. 'camunda:variableMappingClass': undefined,
  8606. 'camunda:variableMappingDelegateExpression': undefined
  8607. };
  8608. function DelegateVariableMappingType(props) {
  8609. const {
  8610. element
  8611. } = props;
  8612. const commandStack = useService('commandStack');
  8613. const translate = useService('translate');
  8614. const getValue = () => {
  8615. return getDelegateVariableMappingType(element);
  8616. };
  8617. const setValue = value => {
  8618. const properties = {
  8619. ...DEFAULT_PROPS$5
  8620. };
  8621. if (value === 'class') {
  8622. properties['camunda:variableMappingClass'] = '';
  8623. } else if (value === 'delegateExpression') {
  8624. properties['camunda:variableMappingDelegateExpression'] = '';
  8625. }
  8626. commandStack.execute('element.updateProperties', {
  8627. element,
  8628. properties
  8629. });
  8630. };
  8631. const getOptions = () => [{
  8632. value: 'none',
  8633. label: translate('<none>')
  8634. }, {
  8635. value: 'class',
  8636. label: translate('Class')
  8637. }, {
  8638. value: 'delegateExpression',
  8639. label: translate('Delegate expression')
  8640. }];
  8641. return jsxRuntime.jsx(propertiesPanel.SelectEntry, {
  8642. element: element,
  8643. id: "calledElementDelegateVariableMappingType",
  8644. label: translate('Delegate Variable Mapping'),
  8645. getValue: getValue,
  8646. setValue: setValue,
  8647. getOptions: getOptions
  8648. });
  8649. }
  8650. function VariableMappingDelegateExpression(props) {
  8651. const {
  8652. element
  8653. } = props;
  8654. const modeling = useService('modeling');
  8655. const translate = useService('translate');
  8656. const debounce = useService('debounceInput');
  8657. const getValue = () => {
  8658. return ModelUtil.getBusinessObject(element).get('camunda:variableMappingDelegateExpression');
  8659. };
  8660. const setValue = value => {
  8661. modeling.updateProperties(element, {
  8662. variableMappingDelegateExpression: value || '',
  8663. variableMappingClass: undefined
  8664. });
  8665. };
  8666. return jsxRuntime.jsx(propertiesPanel.TextFieldEntry, {
  8667. element: element,
  8668. id: "calledElementVariableMappingDelegateExpression",
  8669. label: translate('Delegate Expression'),
  8670. getValue: getValue,
  8671. setValue: setValue,
  8672. debounce: debounce
  8673. });
  8674. }
  8675. function VariableMappingClass(props) {
  8676. const {
  8677. element
  8678. } = props;
  8679. const modeling = useService('modeling');
  8680. const translate = useService('translate');
  8681. const debounce = useService('debounceInput');
  8682. const getValue = () => {
  8683. return ModelUtil.getBusinessObject(element).get('camunda:variableMappingClass');
  8684. };
  8685. const setValue = value => {
  8686. modeling.updateProperties(element, {
  8687. variableMappingDelegateExpression: undefined,
  8688. variableMappingClass: value || ''
  8689. });
  8690. };
  8691. return jsxRuntime.jsx(propertiesPanel.TextFieldEntry, {
  8692. element: element,
  8693. id: "calledElementVariableMappingClass",
  8694. label: translate('Delegate Class'),
  8695. getValue: getValue,
  8696. setValue: setValue,
  8697. debounce: debounce
  8698. });
  8699. }
  8700. // helper /////
  8701. function getDelegateVariableMappingType(element) {
  8702. const businessObject = ModelUtil.getBusinessObject(element);
  8703. if (businessObject.get('camunda:variableMappingClass') !== undefined) {
  8704. return 'class';
  8705. } else if (businessObject.get('camunda:variableMappingDelegateExpression') !== undefined) {
  8706. return 'delegateExpression';
  8707. }
  8708. return 'none';
  8709. }
  8710. function CallActivityProps(props) {
  8711. const {
  8712. element
  8713. } = props;
  8714. if (!ModelUtil.is(element, 'bpmn:CallActivity')) {
  8715. return [];
  8716. }
  8717. const entries = [];
  8718. entries.push({
  8719. id: 'calledElementType',
  8720. component: CalledElementType,
  8721. isEdited: propertiesPanel.isSelectEntryEdited
  8722. });
  8723. const calledElementType = getCalledElementType(element);
  8724. if (calledElementType === 'bpmn') {
  8725. entries.push(...CalledBpmnProps({
  8726. element
  8727. }), ...BusinessKeyProps({
  8728. element
  8729. }), ...DelegateVariableMappingProps({
  8730. element
  8731. }));
  8732. } else if (calledElementType === 'cmmn') {
  8733. entries.push(...CalledCmmnProps({
  8734. element
  8735. }), ...BusinessKeyProps({
  8736. element
  8737. }));
  8738. } else {
  8739. entries.push(...BusinessKeyProps({
  8740. element
  8741. }));
  8742. }
  8743. return entries;
  8744. }
  8745. const DEFAULT_PROPS$4 = {
  8746. calledElement: undefined,
  8747. 'camunda:calledElementBinding': undefined,
  8748. 'camunda:calledElementVersion': undefined,
  8749. 'camunda:calledElementTenantId': undefined,
  8750. 'camunda:variableMappingClass': undefined,
  8751. 'camunda:variableMappingDelegateExpression': undefined,
  8752. 'camunda:caseRef': undefined,
  8753. 'camunda:caseBinding': undefined,
  8754. 'camunda:caseVersion': undefined,
  8755. 'camunda:caseTenantId': undefined
  8756. };
  8757. const DEFAULT_BUSINESS_KEY = '#{execution.processBusinessKey}';
  8758. function CalledElementType(props) {
  8759. const {
  8760. element
  8761. } = props;
  8762. const commandStack = useService('commandStack');
  8763. const translate = useService('translate');
  8764. const getValue = () => {
  8765. return getCalledElementType(element);
  8766. };
  8767. const setValue = value => {
  8768. const properties = {
  8769. ...DEFAULT_PROPS$4
  8770. };
  8771. if (value === 'bpmn') {
  8772. properties['calledElement'] = '';
  8773. } else if (value === 'cmmn') {
  8774. properties['camunda:caseRef'] = '';
  8775. }
  8776. commandStack.execute('element.updateProperties', {
  8777. element,
  8778. properties
  8779. });
  8780. };
  8781. const getOptions = () => [{
  8782. value: '',
  8783. label: translate('<none>')
  8784. }, {
  8785. value: 'bpmn',
  8786. label: translate('BPMN')
  8787. }, {
  8788. value: 'cmmn',
  8789. label: translate('CMMN')
  8790. }];
  8791. return jsxRuntime.jsx(propertiesPanel.SelectEntry, {
  8792. element: element,
  8793. id: "calledElementType",
  8794. label: translate('Type'),
  8795. getValue: getValue,
  8796. setValue: setValue,
  8797. getOptions: getOptions
  8798. });
  8799. }
  8800. function BusinessKeyProps(props) {
  8801. const {
  8802. element
  8803. } = props;
  8804. const entries = [{
  8805. id: 'calledElementBusinessKey',
  8806. component: BusinessKey,
  8807. isEdited: propertiesPanel.isCheckboxEntryEdited
  8808. }];
  8809. if (hasBusinessKey(element)) {
  8810. entries.push({
  8811. id: 'calledElementBusinessKeyExpression',
  8812. component: BusinessKeyExpression,
  8813. isEdited: propertiesPanel.isTextFieldEntryEdited
  8814. });
  8815. }
  8816. return entries;
  8817. }
  8818. function BusinessKey(props) {
  8819. const {
  8820. element
  8821. } = props;
  8822. const commandStack = useService('commandStack');
  8823. const modeling = useService('modeling');
  8824. const bpmnFactory = useService('bpmnFactory');
  8825. const translate = useService('translate');
  8826. const getValue = () => {
  8827. return hasBusinessKey(element);
  8828. };
  8829. const setValue = value => {
  8830. if (value) {
  8831. addBusinessKey();
  8832. } else {
  8833. removeBusinessKey();
  8834. }
  8835. };
  8836. function addBusinessKey() {
  8837. const businessObject = ModelUtil.getBusinessObject(element);
  8838. let extensionElements = businessObject.get('extensionElements');
  8839. // (1) If there are no extension elements, create camunda:In and update element's properties
  8840. if (!extensionElements) {
  8841. extensionElements = createElement('bpmn:ExtensionElements', {}, businessObject, bpmnFactory);
  8842. const businessKeyItem = createBusinessKey(extensionElements);
  8843. extensionElements.set('values', [businessKeyItem]);
  8844. modeling.updateProperties(element, {
  8845. extensionElements
  8846. });
  8847. } else {
  8848. // (2) Otherwise, add camunda:In to the existing values
  8849. const businessKeyItem = createBusinessKey(extensionElements);
  8850. addExtensionElements(element, businessObject, businessKeyItem, bpmnFactory, commandStack);
  8851. }
  8852. }
  8853. function createBusinessKey(parent) {
  8854. return createElement('camunda:In', {
  8855. businessKey: DEFAULT_BUSINESS_KEY
  8856. }, parent, bpmnFactory);
  8857. }
  8858. function removeBusinessKey() {
  8859. const businessObject = ModelUtil.getBusinessObject(element);
  8860. const camundaInList = getExtensionElementsList(businessObject, 'camunda:In');
  8861. const businessKeyItems = camundaInList.filter(camundaIn => camundaIn.get('businessKey') !== undefined);
  8862. removeExtensionElements(element, businessObject, businessKeyItems, commandStack);
  8863. }
  8864. return jsxRuntime.jsx(propertiesPanel.CheckboxEntry, {
  8865. element: element,
  8866. id: "calledElementBusinessKey",
  8867. label: translate('Business key'),
  8868. getValue: getValue,
  8869. setValue: setValue
  8870. });
  8871. }
  8872. function BusinessKeyExpression(props) {
  8873. const {
  8874. element
  8875. } = props;
  8876. const commandStack = useService('commandStack');
  8877. const translate = useService('translate');
  8878. const debounce = useService('debounceInput');
  8879. const getValue = () => getBusinessKey(element);
  8880. const setValue = value => {
  8881. const camundaIn = findCamundaInWithBusinessKey(element);
  8882. commandStack.execute('element.updateModdleProperties', {
  8883. element,
  8884. moddleElement: camundaIn,
  8885. properties: {
  8886. businessKey: value || ''
  8887. }
  8888. });
  8889. };
  8890. return jsxRuntime.jsx(propertiesPanel.TextFieldEntry, {
  8891. element: element,
  8892. id: "calledElementBusinessKeyExpression",
  8893. label: translate('Business key expression'),
  8894. getValue: getValue,
  8895. setValue: setValue,
  8896. debounce: debounce
  8897. });
  8898. }
  8899. // helper //////
  8900. function getCalledElementType(element) {
  8901. const businessObject = ModelUtil.getBusinessObject(element);
  8902. if (businessObject.get('calledElement') !== undefined) {
  8903. return 'bpmn';
  8904. } else if (businessObject.get('camunda:caseRef') !== undefined) {
  8905. return 'cmmn';
  8906. }
  8907. return '';
  8908. }
  8909. function hasBusinessKey(element) {
  8910. return getBusinessKey(element) !== undefined;
  8911. }
  8912. function getBusinessKey(element) {
  8913. const camundaIn = findCamundaInWithBusinessKey(element);
  8914. if (camundaIn) {
  8915. return camundaIn.get('businessKey');
  8916. }
  8917. }
  8918. function findCamundaInWithBusinessKey(element) {
  8919. const businessObject = ModelUtil.getBusinessObject(element);
  8920. const camundaInList = getExtensionElementsList(businessObject, 'camunda:In');
  8921. for (const camundaIn of camundaInList) {
  8922. const businessKey = camundaIn.get('businessKey');
  8923. if (businessKey !== undefined) {
  8924. return camundaIn;
  8925. }
  8926. }
  8927. }
  8928. function CandidateStarterProps(props) {
  8929. const {
  8930. element
  8931. } = props;
  8932. const businessObject = ModelUtil.getBusinessObject(element);
  8933. if (!ModelUtil.is(element, 'bpmn:Process') && !(ModelUtil.is(element, 'bpmn:Participant') && businessObject.get('processRef'))) {
  8934. return [];
  8935. }
  8936. return [{
  8937. id: 'candidateStarterGroups',
  8938. component: CandidateStarterGroups,
  8939. isEdited: propertiesPanel.isTextFieldEntryEdited
  8940. }, {
  8941. id: 'candidateStarterUsers',
  8942. component: CandidateStarterUsers,
  8943. isEdited: propertiesPanel.isTextFieldEntryEdited
  8944. }];
  8945. }
  8946. function CandidateStarterGroups(props) {
  8947. const {
  8948. element
  8949. } = props;
  8950. const commandStack = useService('commandStack'),
  8951. translate = useService('translate'),
  8952. debounce = useService('debounceInput');
  8953. const process = getProcess$3(element);
  8954. const getValue = () => {
  8955. return process.get('camunda:candidateStarterGroups') || '';
  8956. };
  8957. const setValue = value => {
  8958. commandStack.execute('element.updateModdleProperties', {
  8959. element: element,
  8960. moddleElement: process,
  8961. properties: {
  8962. 'camunda:candidateStarterGroups': value
  8963. }
  8964. });
  8965. };
  8966. return propertiesPanel.TextFieldEntry({
  8967. element,
  8968. id: 'candidateStarterGroups',
  8969. label: translate('Candidate starter groups'),
  8970. description: translate('Specify more than one group as a comma separated list.'),
  8971. getValue,
  8972. setValue,
  8973. debounce
  8974. });
  8975. }
  8976. function CandidateStarterUsers(props) {
  8977. const {
  8978. element
  8979. } = props;
  8980. const commandStack = useService('commandStack'),
  8981. translate = useService('translate'),
  8982. debounce = useService('debounceInput');
  8983. const process = getProcess$3(element);
  8984. const getValue = () => {
  8985. return process.get('camunda:candidateStarterUsers') || '';
  8986. };
  8987. const setValue = value => {
  8988. commandStack.execute('element.updateModdleProperties', {
  8989. element: element,
  8990. moddleElement: process,
  8991. properties: {
  8992. 'camunda:candidateStarterUsers': value
  8993. }
  8994. });
  8995. };
  8996. return propertiesPanel.TextFieldEntry({
  8997. element,
  8998. id: 'candidateStarterUsers',
  8999. label: translate('Candidate starter users'),
  9000. description: translate('Specify more than one user as a comma separated list.'),
  9001. getValue,
  9002. setValue,
  9003. debounce
  9004. });
  9005. }
  9006. // helper //////////////////
  9007. /**
  9008. * getProcess - get the businessObject of the process referred to by a bpmn:Process
  9009. * or by a bpmn:Participant
  9010. *
  9011. * @param {ModdleElement} element either a bpmn:Process or a bpmn:Participant
  9012. * @return {BusinessObject}
  9013. */
  9014. function getProcess$3(element) {
  9015. return ModelUtil.is(element, 'bpmn:Process') ? ModelUtil.getBusinessObject(element) : ModelUtil.getBusinessObject(element).get('processRef');
  9016. }
  9017. function ConditionProps(props) {
  9018. const {
  9019. element
  9020. } = props;
  9021. if (!(ModelUtil.is(element, 'bpmn:SequenceFlow') && isConditionalSource(element.source)) && !getConditionalEventDefinition(element)) {
  9022. return [];
  9023. }
  9024. const entries = [];
  9025. if (getConditionalEventDefinition(element)) {
  9026. entries.push(...VariableEventProps({
  9027. element
  9028. }));
  9029. }
  9030. entries.push({
  9031. id: 'conditionType',
  9032. component: ConditionType,
  9033. isEdited: propertiesPanel.isSelectEntryEdited
  9034. });
  9035. const conditionType = getConditionType(element);
  9036. if (conditionType === 'script') {
  9037. entries.push(...ConditionScriptProps({
  9038. element
  9039. }));
  9040. } else if (conditionType === 'expression') {
  9041. entries.push({
  9042. id: 'conditionExpression',
  9043. component: ConditionExpression,
  9044. isEdited: propertiesPanel.isTextFieldEntryEdited
  9045. });
  9046. }
  9047. return entries;
  9048. }
  9049. function ConditionType(props) {
  9050. const {
  9051. element
  9052. } = props;
  9053. const commandStack = useService('commandStack');
  9054. const bpmnFactory = useService('bpmnFactory');
  9055. const translate = useService('translate');
  9056. const getValue = () => {
  9057. return getConditionType(element);
  9058. };
  9059. const setValue = value => {
  9060. // (1) Remove formalExpression if <none> is selected
  9061. if (value === '') {
  9062. updateCondition(element, commandStack, undefined);
  9063. } else {
  9064. // (2) Create and set formalExpression element containing the conditionExpression
  9065. const attributes = {
  9066. body: '',
  9067. language: value === 'script' ? '' : undefined
  9068. };
  9069. const formalExpressionElement = createFormalExpression(element, attributes, bpmnFactory);
  9070. updateCondition(element, commandStack, formalExpressionElement);
  9071. }
  9072. };
  9073. const getOptions = () => [{
  9074. value: '',
  9075. label: translate('<none>')
  9076. }, {
  9077. value: 'script',
  9078. label: translate('Script')
  9079. }, {
  9080. value: 'expression',
  9081. label: translate('Expression')
  9082. }];
  9083. return jsxRuntime.jsx(propertiesPanel.SelectEntry, {
  9084. element: element,
  9085. id: "conditionType",
  9086. label: translate('Type'),
  9087. getValue: getValue,
  9088. setValue: setValue,
  9089. getOptions: getOptions
  9090. });
  9091. }
  9092. function ConditionExpression(props) {
  9093. const {
  9094. element
  9095. } = props;
  9096. const commandStack = useService('commandStack'),
  9097. bpmnFactory = useService('bpmnFactory'),
  9098. translate = useService('translate'),
  9099. debounce = useService('debounceInput');
  9100. const getValue = () => {
  9101. return getConditionExpression(element).get('body');
  9102. };
  9103. const setValue = value => {
  9104. const conditionExpression = createFormalExpression(element, {
  9105. body: value
  9106. }, bpmnFactory);
  9107. updateCondition(element, commandStack, conditionExpression);
  9108. };
  9109. return jsxRuntime.jsx(propertiesPanel.TextFieldEntry, {
  9110. element: element,
  9111. id: "conditionExpression",
  9112. label: translate('Condition Expression'),
  9113. getValue: getValue,
  9114. setValue: setValue,
  9115. debounce: debounce
  9116. });
  9117. }
  9118. function ConditionScriptProps(props) {
  9119. const {
  9120. element
  9121. } = props;
  9122. const entries = [];
  9123. const scriptType = getScriptType$1(element);
  9124. // (1) language
  9125. entries.push({
  9126. id: 'conditionScriptLanguage',
  9127. component: Language,
  9128. isEdited: propertiesPanel.isTextFieldEntryEdited
  9129. });
  9130. // (2) type
  9131. entries.push({
  9132. id: 'conditionScriptType',
  9133. component: ScriptType,
  9134. isEdited: propertiesPanel.isSelectEntryEdited
  9135. });
  9136. // (3) script
  9137. if (scriptType === 'script') {
  9138. entries.push({
  9139. id: 'conditionScriptValue',
  9140. component: Script$1,
  9141. isEdited: propertiesPanel.isTextAreaEntryEdited
  9142. });
  9143. } else if (scriptType === 'resource') {
  9144. // (4) resource
  9145. entries.push({
  9146. id: 'conditionScriptResource',
  9147. component: Resource$1,
  9148. isEdited: propertiesPanel.isTextFieldEntryEdited
  9149. });
  9150. }
  9151. return entries;
  9152. }
  9153. function Language(props) {
  9154. const {
  9155. element
  9156. } = props;
  9157. const commandStack = useService('commandStack');
  9158. const translate = useService('translate');
  9159. const debounce = useService('debounceInput');
  9160. const getValue = () => {
  9161. return getConditionExpression(element).get('language');
  9162. };
  9163. const setValue = value => {
  9164. commandStack.execute('element.updateModdleProperties', {
  9165. element: element,
  9166. moddleElement: getConditionExpression(element),
  9167. properties: {
  9168. language: value || ''
  9169. }
  9170. });
  9171. };
  9172. return jsxRuntime.jsx(propertiesPanel.TextFieldEntry, {
  9173. element: element,
  9174. id: "conditionScriptLanguage",
  9175. label: translate('Format'),
  9176. getValue: getValue,
  9177. setValue: setValue,
  9178. debounce: debounce
  9179. });
  9180. }
  9181. function ScriptType(props) {
  9182. const {
  9183. element
  9184. } = props;
  9185. const commandStack = useService('commandStack');
  9186. const translate = useService('translate');
  9187. const getValue = () => {
  9188. return getScriptType$1(element);
  9189. };
  9190. const setValue = value => {
  9191. // reset script properties on type change
  9192. const updatedProperties = {
  9193. 'body': value === 'script' ? '' : undefined,
  9194. 'camunda:resource': value === 'resource' ? '' : undefined
  9195. };
  9196. commandStack.execute('element.updateModdleProperties', {
  9197. element: element,
  9198. moddleElement: getConditionExpression(element),
  9199. properties: updatedProperties
  9200. });
  9201. };
  9202. const getOptions = () => {
  9203. const options = [{
  9204. value: 'resource',
  9205. label: translate('External resource')
  9206. }, {
  9207. value: 'script',
  9208. label: translate('Inline script')
  9209. }];
  9210. return options;
  9211. };
  9212. return propertiesPanel.SelectEntry({
  9213. element,
  9214. id: 'conditionScriptType',
  9215. label: translate('Script type'),
  9216. getValue,
  9217. setValue,
  9218. getOptions
  9219. });
  9220. }
  9221. function Script$1(props) {
  9222. const {
  9223. element
  9224. } = props;
  9225. const commandStack = useService('commandStack');
  9226. const translate = useService('translate');
  9227. const debounce = useService('debounceInput');
  9228. const getValue = () => {
  9229. return getConditionExpression(element).get('body');
  9230. };
  9231. const setValue = value => {
  9232. commandStack.execute('element.updateModdleProperties', {
  9233. element: element,
  9234. moddleElement: getConditionExpression(element),
  9235. properties: {
  9236. 'body': value || ''
  9237. }
  9238. });
  9239. };
  9240. return jsxRuntime.jsx(propertiesPanel.TextAreaEntry, {
  9241. element: element,
  9242. id: "conditionScriptValue",
  9243. label: translate('Script'),
  9244. getValue: getValue,
  9245. setValue: setValue,
  9246. debounce: debounce,
  9247. monospace: true
  9248. });
  9249. }
  9250. function Resource$1(props) {
  9251. const {
  9252. element
  9253. } = props;
  9254. const commandStack = useService('commandStack');
  9255. const translate = useService('translate');
  9256. const debounce = useService('debounceInput');
  9257. const getValue = () => {
  9258. return getConditionExpression(element).get('camunda:resource');
  9259. };
  9260. const setValue = value => {
  9261. commandStack.execute('element.updateModdleProperties', {
  9262. element: element,
  9263. moddleElement: getConditionExpression(element),
  9264. properties: {
  9265. 'camunda:resource': value || ''
  9266. }
  9267. });
  9268. };
  9269. return jsxRuntime.jsx(propertiesPanel.TextFieldEntry, {
  9270. element: true,
  9271. id: "conditionScriptResource",
  9272. label: translate('Resource'),
  9273. getValue: getValue,
  9274. setValue: setValue,
  9275. debounce: debounce
  9276. });
  9277. }
  9278. function VariableEventProps(props) {
  9279. const {
  9280. element
  9281. } = props;
  9282. const entries = [];
  9283. entries.push({
  9284. id: 'conditionVariableName',
  9285. component: VariableName,
  9286. isEdited: propertiesPanel.isTextFieldEntryEdited
  9287. });
  9288. if (!ModelUtil.is(element, 'bpmn:StartEvent') || isInEventSubProcess(element)) {
  9289. entries.push({
  9290. id: 'conditionVariableEvents',
  9291. component: VariableEvents,
  9292. isEdited: propertiesPanel.isTextFieldEntryEdited
  9293. });
  9294. }
  9295. return entries;
  9296. }
  9297. function VariableName(props) {
  9298. const {
  9299. element
  9300. } = props;
  9301. const commandStack = useService('commandStack');
  9302. const translate = useService('translate');
  9303. const debounce = useService('debounceInput');
  9304. const getValue = () => {
  9305. return getConditionalEventDefinition(element).get('variableName');
  9306. };
  9307. const setValue = value => {
  9308. commandStack.execute('element.updateModdleProperties', {
  9309. element: element,
  9310. moddleElement: getConditionalEventDefinition(element),
  9311. properties: {
  9312. variableName: value || ''
  9313. }
  9314. });
  9315. };
  9316. return jsxRuntime.jsx(propertiesPanel.TextFieldEntry, {
  9317. element: element,
  9318. id: "conditionVariableName",
  9319. label: translate('Variable name'),
  9320. getValue: getValue,
  9321. setValue: setValue,
  9322. debounce: debounce
  9323. });
  9324. }
  9325. function VariableEvents(props) {
  9326. const {
  9327. element
  9328. } = props;
  9329. const commandStack = useService('commandStack');
  9330. const translate = useService('translate');
  9331. const debounce = useService('debounceInput');
  9332. const getValue = () => {
  9333. return getConditionalEventDefinition(element).get('variableEvents');
  9334. };
  9335. const setValue = value => {
  9336. commandStack.execute('element.updateModdleProperties', {
  9337. element: element,
  9338. moddleElement: getConditionalEventDefinition(element),
  9339. properties: {
  9340. variableEvents: value || ''
  9341. }
  9342. });
  9343. };
  9344. return jsxRuntime.jsx(propertiesPanel.TextFieldEntry, {
  9345. element: element,
  9346. id: "conditionVariableEvents",
  9347. label: translate('Variable events'),
  9348. description: translate('Specify more than one variable change event as a comma separated list.'),
  9349. getValue: getValue,
  9350. setValue: setValue,
  9351. debounce: debounce
  9352. });
  9353. }
  9354. // helper ////////////////////
  9355. const CONDITIONAL_SOURCES = ['bpmn:Activity', 'bpmn:ExclusiveGateway', 'bpmn:InclusiveGateway', 'bpmn:ComplexGateway'];
  9356. function isConditionalSource(element) {
  9357. return ModelingUtil.isAny(element, CONDITIONAL_SOURCES);
  9358. }
  9359. function getConditionalEventDefinition(element) {
  9360. if (!ModelUtil.is(element, 'bpmn:Event')) {
  9361. return false;
  9362. }
  9363. return getEventDefinition$1(element, 'bpmn:ConditionalEventDefinition');
  9364. }
  9365. function getConditionType(element) {
  9366. const conditionExpression = getConditionExpression(element);
  9367. if (!conditionExpression) {
  9368. return '';
  9369. } else {
  9370. return conditionExpression.get('language') === undefined ? 'expression' : 'script';
  9371. }
  9372. }
  9373. /**
  9374. * getConditionExpression - get the body value of a condition expression for a given element
  9375. *
  9376. * @param {ModdleElement} element
  9377. *
  9378. * @return {string|undefined}
  9379. */
  9380. function getConditionExpression(element) {
  9381. const businessObject = ModelUtil.getBusinessObject(element);
  9382. if (ModelUtil.is(businessObject, 'bpmn:SequenceFlow')) {
  9383. return businessObject.get('conditionExpression');
  9384. } else if (getConditionalEventDefinition(businessObject)) {
  9385. return getConditionalEventDefinition(businessObject).get('condition');
  9386. }
  9387. }
  9388. function getScriptType$1(element) {
  9389. const conditionExpression = getConditionExpression(element);
  9390. const resource = conditionExpression.get('camunda:resource');
  9391. if (typeof resource !== 'undefined') {
  9392. return 'resource';
  9393. } else {
  9394. return 'script';
  9395. }
  9396. }
  9397. function updateCondition(element, commandStack, condition = undefined) {
  9398. if (ModelUtil.is(element, 'bpmn:SequenceFlow')) {
  9399. commandStack.execute('element.updateProperties', {
  9400. element,
  9401. properties: {
  9402. conditionExpression: condition
  9403. }
  9404. });
  9405. } else {
  9406. commandStack.execute('element.updateModdleProperties', {
  9407. element,
  9408. moddleElement: getConditionalEventDefinition(element),
  9409. properties: {
  9410. condition
  9411. }
  9412. });
  9413. }
  9414. }
  9415. function createFormalExpression(parent, attributes, bpmnFactory) {
  9416. return createElement('bpmn:FormalExpression', attributes, ModelUtil.is(parent, 'bpmn:SequenceFlow') ? ModelUtil.getBusinessObject(parent) : getConditionalEventDefinition(parent), bpmnFactory);
  9417. }
  9418. function isInEventSubProcess(element) {
  9419. const bo = ModelUtil.getBusinessObject(element),
  9420. parent = bo.$parent;
  9421. return ModelUtil.is(parent, 'bpmn:SubProcess') && parent.triggeredByEvent;
  9422. }
  9423. /**
  9424. * Cf. https://docs.camunda.org/manual/latest/user-guide/process-engine/scripting/
  9425. */
  9426. function ScriptProps(props) {
  9427. const {
  9428. element,
  9429. script,
  9430. prefix
  9431. } = props;
  9432. const entries = [];
  9433. const scriptType = getScriptType(script || element);
  9434. const idPrefix = prefix || '';
  9435. // (1) scriptFormat
  9436. entries.push({
  9437. id: idPrefix + 'scriptFormat',
  9438. component: Format,
  9439. isEdited: propertiesPanel.isTextFieldEntryEdited,
  9440. idPrefix,
  9441. script
  9442. });
  9443. // (2) type
  9444. entries.push({
  9445. id: idPrefix + 'scriptType',
  9446. component: Type$3,
  9447. isEdited: propertiesPanel.isSelectEntryEdited,
  9448. idPrefix,
  9449. script
  9450. });
  9451. // (3) script
  9452. if (scriptType === 'script') {
  9453. entries.push({
  9454. id: idPrefix + 'scriptValue',
  9455. component: Script,
  9456. isEdited: propertiesPanel.isTextAreaEntryEdited,
  9457. idPrefix,
  9458. script
  9459. });
  9460. }
  9461. // (4) resource
  9462. if (scriptType === 'resource') {
  9463. entries.push({
  9464. id: idPrefix + 'scriptResource',
  9465. component: Resource,
  9466. isEdited: propertiesPanel.isTextFieldEntryEdited,
  9467. idPrefix,
  9468. script
  9469. });
  9470. }
  9471. return entries;
  9472. }
  9473. function Format(props) {
  9474. const {
  9475. element,
  9476. idPrefix,
  9477. script
  9478. } = props;
  9479. const commandStack = useService('commandStack');
  9480. const translate = useService('translate');
  9481. const debounce = useService('debounceInput');
  9482. const businessObject = script || ModelUtil.getBusinessObject(element);
  9483. const getValue = () => {
  9484. return businessObject.get('scriptFormat');
  9485. };
  9486. const setValue = value => {
  9487. commandStack.execute('element.updateModdleProperties', {
  9488. element,
  9489. moddleElement: businessObject,
  9490. properties: {
  9491. scriptFormat: value
  9492. }
  9493. });
  9494. };
  9495. return propertiesPanel.TextFieldEntry({
  9496. element,
  9497. id: idPrefix + 'scriptFormat',
  9498. label: translate('Format'),
  9499. getValue,
  9500. setValue,
  9501. debounce
  9502. });
  9503. }
  9504. function Type$3(props) {
  9505. const {
  9506. element,
  9507. idPrefix,
  9508. script
  9509. } = props;
  9510. const commandStack = useService('commandStack');
  9511. const translate = useService('translate');
  9512. const businessObject = script || ModelUtil.getBusinessObject(element);
  9513. const scriptProperty = getScriptProperty(businessObject);
  9514. const getValue = () => {
  9515. return getScriptType(businessObject);
  9516. };
  9517. const setValue = value => {
  9518. // reset script properties on type change
  9519. const properties = {
  9520. [scriptProperty]: value === 'script' ? '' : undefined,
  9521. 'camunda:resource': value === 'resource' ? '' : undefined
  9522. };
  9523. commandStack.execute('element.updateModdleProperties', {
  9524. element,
  9525. moddleElement: businessObject,
  9526. properties
  9527. });
  9528. };
  9529. const getOptions = () => {
  9530. const options = [{
  9531. value: '',
  9532. label: translate('<none>')
  9533. }, {
  9534. value: 'resource',
  9535. label: translate('External resource')
  9536. }, {
  9537. value: 'script',
  9538. label: translate('Inline script')
  9539. }];
  9540. return options;
  9541. };
  9542. return propertiesPanel.SelectEntry({
  9543. element,
  9544. id: idPrefix + 'scriptType',
  9545. label: translate('Type'),
  9546. getValue,
  9547. setValue,
  9548. getOptions
  9549. });
  9550. }
  9551. function Script(props) {
  9552. const {
  9553. element,
  9554. idPrefix,
  9555. script
  9556. } = props;
  9557. const commandStack = useService('commandStack');
  9558. const translate = useService('translate');
  9559. const debounce = useService('debounceInput');
  9560. const businessObject = script || ModelUtil.getBusinessObject(element);
  9561. const scriptProperty = getScriptProperty(businessObject);
  9562. const getValue = () => {
  9563. return getScriptValue(businessObject);
  9564. };
  9565. const setValue = value => {
  9566. commandStack.execute('element.updateModdleProperties', {
  9567. element,
  9568. moddleElement: businessObject,
  9569. properties: {
  9570. [scriptProperty]: value || ''
  9571. }
  9572. });
  9573. };
  9574. return propertiesPanel.TextAreaEntry({
  9575. element,
  9576. id: idPrefix + 'scriptValue',
  9577. label: translate('Script'),
  9578. getValue,
  9579. setValue,
  9580. debounce,
  9581. monospace: true
  9582. });
  9583. }
  9584. function Resource(props) {
  9585. const {
  9586. element,
  9587. idPrefix,
  9588. script
  9589. } = props;
  9590. const commandStack = useService('commandStack');
  9591. const translate = useService('translate');
  9592. const debounce = useService('debounceInput');
  9593. const businessObject = script || ModelUtil.getBusinessObject(element);
  9594. const getValue = () => {
  9595. return businessObject.get('camunda:resource');
  9596. };
  9597. const setValue = value => {
  9598. commandStack.execute('element.updateModdleProperties', {
  9599. element,
  9600. moddleElement: businessObject,
  9601. properties: {
  9602. 'camunda:resource': value || ''
  9603. }
  9604. });
  9605. };
  9606. return propertiesPanel.TextFieldEntry({
  9607. element,
  9608. id: idPrefix + 'scriptResource',
  9609. label: translate('Resource'),
  9610. getValue,
  9611. setValue,
  9612. debounce
  9613. });
  9614. }
  9615. // helper ////////////////////
  9616. function getScriptType(element) {
  9617. const businessObject = ModelUtil.getBusinessObject(element);
  9618. const scriptValue = getScriptValue(businessObject);
  9619. if (typeof scriptValue !== 'undefined') {
  9620. return 'script';
  9621. }
  9622. const resource = businessObject.get('camunda:resource');
  9623. if (typeof resource !== 'undefined') {
  9624. return 'resource';
  9625. }
  9626. }
  9627. function getScriptValue(businessObject) {
  9628. return businessObject.get(getScriptProperty(businessObject));
  9629. }
  9630. function isScript$2(element) {
  9631. return ModelUtil.is(element, 'camunda:Script');
  9632. }
  9633. function getScriptProperty(businessObject) {
  9634. return isScript$2(businessObject) ? 'value' : 'script';
  9635. }
  9636. function getElements(businessObject, type, property) {
  9637. const elements = getExtensionElementsList(businessObject, type);
  9638. return !property ? elements : (elements[0] || {})[property] || [];
  9639. }
  9640. function getParameters(element, prop) {
  9641. const inputOutput = getInputOutput(element);
  9642. return inputOutput && inputOutput.get(prop) || [];
  9643. }
  9644. /**
  9645. * Get a camunda:inputOutput from the business object
  9646. *
  9647. * @param {djs.model.Base | ModdleElement} element
  9648. *
  9649. * @return {ModdleElement} the inputOutput object
  9650. */
  9651. function getInputOutput(element) {
  9652. if (ModelUtil.is(element, 'camunda:Connector')) {
  9653. return element.get('inputOutput');
  9654. }
  9655. const businessObject = ModelUtil.getBusinessObject(element);
  9656. return (getElements(businessObject, 'camunda:InputOutput') || [])[0];
  9657. }
  9658. /**
  9659. * Return all input parameters existing in the business object, and
  9660. * an empty array if none exist.
  9661. *
  9662. * @param {djs.model.Base} element
  9663. *
  9664. * @return {Array} a list of input parameter objects
  9665. */
  9666. function getInputParameters(element) {
  9667. return getParameters(element, 'inputParameters');
  9668. }
  9669. /**
  9670. * Return all output parameters existing in the business object, and
  9671. * an empty array if none exist.
  9672. *
  9673. * @param {djs.model.Base} element
  9674. *
  9675. * @return {Array} a list of output parameter objects
  9676. */
  9677. function getOutputParameters(element) {
  9678. return getParameters(element, 'outputParameters');
  9679. }
  9680. function isInputOutputSupported(element) {
  9681. const businessObject = ModelUtil.getBusinessObject(element);
  9682. return ModelUtil.is(businessObject, 'bpmn:FlowNode') && !(ModelingUtil.isAny(businessObject, ['bpmn:StartEvent', 'bpmn:BoundaryEvent', 'bpmn:Gateway']) || ModelUtil.is(businessObject, 'bpmn:SubProcess') && businessObject.get('triggeredByEvent'));
  9683. }
  9684. function areInputParametersSupported(element) {
  9685. return isInputOutputSupported(element);
  9686. }
  9687. function areOutputParametersSupported(element) {
  9688. const businessObject = ModelUtil.getBusinessObject(element);
  9689. return isInputOutputSupported(element) && !ModelUtil.is(businessObject, 'bpmn:EndEvent') && !businessObject.loopCharacteristics;
  9690. }
  9691. function getInputOutputType(parameter) {
  9692. const definitionTypes = {
  9693. 'camunda:Map': 'map',
  9694. 'camunda:List': 'list',
  9695. 'camunda:Script': 'script'
  9696. };
  9697. let type = 'stringOrExpression';
  9698. const definition = parameter.get('definition');
  9699. if (typeof definition !== 'undefined') {
  9700. type = definitionTypes[definition.$type];
  9701. }
  9702. return type;
  9703. }
  9704. function CreateParameterCmd(element, type, parent, bpmnFactory) {
  9705. const isInput = type === 'camunda:InputParameter';
  9706. const newParameter = createElement(type, {
  9707. name: nextId(isInput ? 'Input_' : 'Output_')
  9708. }, parent, bpmnFactory);
  9709. const propertyName = isInput ? 'inputParameters' : 'outputParameters';
  9710. return {
  9711. cmd: 'element.updateModdleProperties',
  9712. context: {
  9713. element,
  9714. moddleElement: parent,
  9715. properties: {
  9716. [propertyName]: [...parent.get(propertyName), newParameter]
  9717. }
  9718. }
  9719. };
  9720. }
  9721. function AddParameterCmd(element, type, bpmnFactory) {
  9722. const commands = [];
  9723. const businessObject = ModelUtil.getBusinessObject(element);
  9724. let extensionElements = businessObject.get('extensionElements');
  9725. // (1) ensure extension elements
  9726. if (!extensionElements) {
  9727. extensionElements = createElement('bpmn:ExtensionElements', {
  9728. values: []
  9729. }, businessObject, bpmnFactory);
  9730. commands.push({
  9731. cmd: 'element.updateModdleProperties',
  9732. context: {
  9733. element,
  9734. moddleElement: businessObject,
  9735. properties: {
  9736. extensionElements
  9737. }
  9738. }
  9739. });
  9740. }
  9741. // (2) ensure inputOutput
  9742. let inputOutput = getInputOutput(element);
  9743. if (!inputOutput) {
  9744. const parent = extensionElements;
  9745. inputOutput = createElement('camunda:InputOutput', {
  9746. inputParameters: [],
  9747. outputParameters: []
  9748. }, parent, bpmnFactory);
  9749. commands.push({
  9750. cmd: 'element.updateModdleProperties',
  9751. context: {
  9752. element,
  9753. moddleElement: extensionElements,
  9754. properties: {
  9755. values: [...extensionElements.get('values'), inputOutput]
  9756. }
  9757. }
  9758. });
  9759. }
  9760. // (3) create + add parameter
  9761. commands.push(CreateParameterCmd(element, type, inputOutput, bpmnFactory));
  9762. return commands;
  9763. }
  9764. function ListProp(props) {
  9765. const {
  9766. element,
  9767. id: idPrefix,
  9768. index,
  9769. item
  9770. } = props;
  9771. const id = `${idPrefix}-listItem-${index}`;
  9772. return jsxRuntime.jsx(ListItem, {
  9773. idPrefix: id,
  9774. element: element,
  9775. item: item
  9776. });
  9777. }
  9778. function ListProps(props) {
  9779. const {
  9780. idPrefix,
  9781. element,
  9782. parameter
  9783. } = props;
  9784. const bpmnFactory = useService('bpmnFactory');
  9785. const commandStack = useService('commandStack');
  9786. const translate = useService('translate');
  9787. const list = parameter.get('definition');
  9788. const items = list.get('items');
  9789. function addItem() {
  9790. const value = createElement('camunda:Value', {}, parameter, bpmnFactory);
  9791. commandStack.execute('element.updateModdleProperties', {
  9792. element,
  9793. moddleElement: list,
  9794. properties: {
  9795. items: [...list.get('items'), value]
  9796. }
  9797. });
  9798. }
  9799. function removeItem(item) {
  9800. commandStack.execute('element.updateModdleProperties', {
  9801. element,
  9802. moddleElement: list,
  9803. properties: {
  9804. items: minDash.without(list.get('items'), item)
  9805. }
  9806. });
  9807. }
  9808. function compareFn(item, anotherItem) {
  9809. const [value = '', anotherValue = ''] = [item.value, anotherItem.value];
  9810. return value === anotherValue ? 0 : value > anotherValue ? 1 : -1;
  9811. }
  9812. return propertiesPanel.ListEntry({
  9813. element,
  9814. autoFocusEntry: true,
  9815. compareFn,
  9816. id: idPrefix + '-list',
  9817. items,
  9818. label: translate('List values'),
  9819. onAdd: addItem,
  9820. onRemove: removeItem,
  9821. component: ListProp
  9822. });
  9823. }
  9824. function ListItem(props) {
  9825. const {
  9826. idPrefix,
  9827. element,
  9828. item
  9829. } = props;
  9830. const commandStack = useService('commandStack');
  9831. const translate = useService('translate');
  9832. const definitionLabels = {
  9833. 'camunda:Map': translate('Map'),
  9834. 'camunda:List': translate('List'),
  9835. 'camunda:Script': translate('Script')
  9836. };
  9837. const getValue = () => {
  9838. if (isDefinitionType$1(item)) {
  9839. return definitionLabels[item.$type];
  9840. }
  9841. return item.get('value');
  9842. };
  9843. const setValue = value => {
  9844. commandStack.execute('element.updateModdleProperties', {
  9845. element,
  9846. moddleElement: item,
  9847. properties: {
  9848. value
  9849. }
  9850. });
  9851. };
  9852. return ListValue({
  9853. id: idPrefix + '-value',
  9854. disabled: isDefinitionType$1(item),
  9855. getValue,
  9856. setValue
  9857. });
  9858. }
  9859. function ListValue(props) {
  9860. const {
  9861. id,
  9862. disabled,
  9863. getValue,
  9864. setValue
  9865. } = props;
  9866. const debounce = useService('debounceInput', true);
  9867. return jsxRuntime.jsx(propertiesPanel.SimpleEntry, {
  9868. id: id,
  9869. getValue: getValue,
  9870. setValue: setValue,
  9871. disabled: disabled,
  9872. debounce: debounce
  9873. });
  9874. }
  9875. // helper //////////////////////
  9876. function isScript$1(element) {
  9877. return ModelUtil.is(element, 'camunda:Script');
  9878. }
  9879. function isList$1(element) {
  9880. return ModelUtil.is(element, 'camunda:List');
  9881. }
  9882. function isMap$1(element) {
  9883. return ModelUtil.is(element, 'camunda:Map');
  9884. }
  9885. function isDefinitionType$1(element) {
  9886. return isScript$1(element) || isList$1(element) || isMap$1(element);
  9887. }
  9888. function MapProp(props) {
  9889. const {
  9890. element,
  9891. id: idPrefix,
  9892. index,
  9893. item: entry,
  9894. open
  9895. } = props;
  9896. const id = `${idPrefix}-mapEntry-${index}`;
  9897. const translate = useService('translate');
  9898. return jsxRuntime.jsx(propertiesPanel.CollapsibleEntry, {
  9899. id: id,
  9900. element: element,
  9901. entries: MapEntry({
  9902. element,
  9903. entry,
  9904. idPrefix: id
  9905. }),
  9906. label: entry.get('key') || translate('<empty>'),
  9907. open: open
  9908. });
  9909. }
  9910. function MapProps(props) {
  9911. const {
  9912. idPrefix,
  9913. element,
  9914. parameter
  9915. } = props;
  9916. const bpmnFactory = useService('bpmnFactory');
  9917. const commandStack = useService('commandStack');
  9918. const translate = useService('translate');
  9919. const map = parameter.get('definition');
  9920. const entries = map.get('entries');
  9921. function addEntry() {
  9922. const entry = createElement('camunda:Entry', {}, parameter, bpmnFactory);
  9923. commandStack.execute('element.updateModdleProperties', {
  9924. element,
  9925. moddleElement: map,
  9926. properties: {
  9927. entries: [...map.get('entries'), entry]
  9928. }
  9929. });
  9930. }
  9931. function removeEntry(entry) {
  9932. commandStack.execute('element.updateModdleProperties', {
  9933. element,
  9934. moddleElement: map,
  9935. properties: {
  9936. entries: minDash.without(map.get('entries'), entry)
  9937. }
  9938. });
  9939. }
  9940. function compareFn(entry, anotherEntry) {
  9941. const [key = '', anotherKey = ''] = [entry.key, anotherEntry.key];
  9942. return key === anotherKey ? 0 : key > anotherKey ? 1 : -1;
  9943. }
  9944. return propertiesPanel.ListEntry({
  9945. element,
  9946. autoFocusEntry: true,
  9947. compareFn,
  9948. id: idPrefix + '-map',
  9949. items: entries,
  9950. label: translate('Map entries'),
  9951. onAdd: addEntry,
  9952. onRemove: removeEntry,
  9953. component: MapProp
  9954. });
  9955. }
  9956. function MapEntry(props) {
  9957. const {
  9958. element,
  9959. entry,
  9960. idPrefix
  9961. } = props;
  9962. const entries = [{
  9963. id: idPrefix + '-key',
  9964. component: MapKey,
  9965. entry,
  9966. idPrefix,
  9967. element
  9968. }, {
  9969. id: idPrefix + '-value',
  9970. component: MapValue,
  9971. entry,
  9972. idPrefix,
  9973. element
  9974. }];
  9975. return entries;
  9976. }
  9977. function MapKey(props) {
  9978. const {
  9979. element,
  9980. entry,
  9981. idPrefix
  9982. } = props;
  9983. const commandStack = useService('commandStack');
  9984. const translate = useService('translate');
  9985. const debounce = useService('debounceInput');
  9986. const setValue = value => {
  9987. commandStack.execute('element.updateModdleProperties', {
  9988. element,
  9989. moddleElement: entry,
  9990. properties: {
  9991. key: value
  9992. }
  9993. });
  9994. };
  9995. const getValue = () => {
  9996. return entry.get('key');
  9997. };
  9998. return propertiesPanel.TextFieldEntry({
  9999. element: entry,
  10000. id: idPrefix + '-key',
  10001. label: translate('Key'),
  10002. getValue,
  10003. setValue,
  10004. debounce
  10005. });
  10006. }
  10007. function MapValue(props) {
  10008. const {
  10009. element,
  10010. entry,
  10011. idPrefix
  10012. } = props;
  10013. const commandStack = useService('commandStack');
  10014. const translate = useService('translate');
  10015. const debounce = useService('debounceInput');
  10016. const definition = entry.get('definition');
  10017. const definitionLabels = {
  10018. 'camunda:Map': translate('Map'),
  10019. 'camunda:List': translate('List'),
  10020. 'camunda:Script': translate('Script')
  10021. };
  10022. const setValue = value => {
  10023. commandStack.execute('element.updateModdleProperties', {
  10024. element,
  10025. moddleElement: entry,
  10026. properties: {
  10027. value
  10028. }
  10029. });
  10030. };
  10031. const getValue = () => {
  10032. if (isDefinitionType(definition)) {
  10033. return definitionLabels[definition.$type];
  10034. }
  10035. return entry.get('value');
  10036. };
  10037. return propertiesPanel.TextFieldEntry({
  10038. element: entry,
  10039. id: idPrefix + '-value',
  10040. label: translate('Value'),
  10041. getValue,
  10042. setValue,
  10043. disabled: isDefinitionType(definition),
  10044. debounce
  10045. });
  10046. }
  10047. // helper ///////////////////
  10048. function isScript(element) {
  10049. return ModelUtil.is(element, 'camunda:Script');
  10050. }
  10051. function isList(element) {
  10052. return ModelUtil.is(element, 'camunda:List');
  10053. }
  10054. function isMap(element) {
  10055. return ModelUtil.is(element, 'camunda:Map');
  10056. }
  10057. function isDefinitionType(element) {
  10058. return isScript(element) || isList(element) || isMap(element);
  10059. }
  10060. const DEFAULT_PROPS$3 = {
  10061. value: undefined,
  10062. definition: undefined
  10063. };
  10064. function InputOutputParameter(props) {
  10065. const {
  10066. idPrefix,
  10067. element,
  10068. parameter
  10069. } = props;
  10070. const inputOutputType = getInputOutputType(parameter);
  10071. let entries = [{
  10072. id: idPrefix + '-name',
  10073. component: Name$2,
  10074. isEdited: propertiesPanel.isTextFieldEntryEdited,
  10075. idPrefix,
  10076. parameter
  10077. }, {
  10078. id: idPrefix + '-type',
  10079. component: Type$2,
  10080. isEdited: propertiesPanel.isSelectEntryEdited,
  10081. idPrefix,
  10082. parameter
  10083. }];
  10084. // (1) String or expression
  10085. if (inputOutputType === 'stringOrExpression') {
  10086. entries.push({
  10087. id: idPrefix + '-stringOrExpression',
  10088. component: StringOrExpression,
  10089. isEdited: propertiesPanel.isTextAreaEntryEdited,
  10090. idPrefix,
  10091. parameter
  10092. });
  10093. // (2) Script
  10094. } else if (inputOutputType === 'script') {
  10095. const script = parameter.get('definition');
  10096. entries = [...entries, ...ScriptProps({
  10097. element,
  10098. prefix: idPrefix + '-',
  10099. script
  10100. })];
  10101. // (3) List
  10102. } else if (inputOutputType === 'list') {
  10103. entries.push({
  10104. id: `${idPrefix}-list`,
  10105. component: ListProps,
  10106. idPrefix,
  10107. parameter
  10108. });
  10109. // (4) Map
  10110. } else if (inputOutputType === 'map') {
  10111. entries.push({
  10112. id: `${idPrefix}-map`,
  10113. component: MapProps,
  10114. idPrefix,
  10115. parameter
  10116. });
  10117. }
  10118. return entries;
  10119. }
  10120. function Name$2(props) {
  10121. const {
  10122. idPrefix,
  10123. element,
  10124. parameter
  10125. } = props;
  10126. const commandStack = useService('commandStack');
  10127. const translate = useService('translate');
  10128. const debounce = useService('debounceInput');
  10129. const setValue = value => {
  10130. commandStack.execute('element.updateModdleProperties', {
  10131. element,
  10132. moddleElement: parameter,
  10133. properties: {
  10134. name: value
  10135. }
  10136. });
  10137. };
  10138. const getValue = parameter => {
  10139. return parameter.get('name');
  10140. };
  10141. return propertiesPanel.TextFieldEntry({
  10142. element: parameter,
  10143. id: idPrefix + '-name',
  10144. label: translate(isInput(parameter) ? 'Local variable name' : 'Process variable name'),
  10145. getValue,
  10146. setValue,
  10147. debounce
  10148. });
  10149. }
  10150. function Type$2(props) {
  10151. const {
  10152. idPrefix,
  10153. element,
  10154. parameter
  10155. } = props;
  10156. const bpmnFactory = useService('bpmnFactory');
  10157. const commandStack = useService('commandStack');
  10158. const translate = useService('translate');
  10159. const createDefinitionElement = type => {
  10160. return createElement(type, {}, parameter, bpmnFactory);
  10161. };
  10162. const getValue = mapping => {
  10163. return getInputOutputType(mapping);
  10164. };
  10165. const setValue = value => {
  10166. let properties = {
  10167. ...DEFAULT_PROPS$3
  10168. };
  10169. if (value === 'script') {
  10170. properties.definition = createDefinitionElement('camunda:Script');
  10171. } else if (value === 'list') {
  10172. properties.definition = createDefinitionElement('camunda:List');
  10173. } else if (value === 'map') {
  10174. properties.definition = createDefinitionElement('camunda:Map');
  10175. }
  10176. commandStack.execute('element.updateModdleProperties', {
  10177. element,
  10178. moddleElement: parameter,
  10179. properties
  10180. });
  10181. };
  10182. const getOptions = () => {
  10183. const options = [{
  10184. label: translate('List'),
  10185. value: 'list'
  10186. }, {
  10187. label: translate('Map'),
  10188. value: 'map'
  10189. }, {
  10190. label: translate('Script'),
  10191. value: 'script'
  10192. }, {
  10193. label: translate('String or expression'),
  10194. value: 'stringOrExpression'
  10195. }];
  10196. return options;
  10197. };
  10198. return propertiesPanel.SelectEntry({
  10199. element: parameter,
  10200. id: idPrefix + '-type',
  10201. label: translate('Assignment type'),
  10202. getValue,
  10203. setValue,
  10204. getOptions
  10205. });
  10206. }
  10207. function StringOrExpression(props) {
  10208. const {
  10209. idPrefix,
  10210. element,
  10211. parameter
  10212. } = props;
  10213. const commandStack = useService('commandStack');
  10214. const translate = useService('translate');
  10215. const debounce = useService('debounceInput');
  10216. const setValue = value => {
  10217. commandStack.execute('element.updateModdleProperties', {
  10218. element,
  10219. moddleElement: parameter,
  10220. properties: {
  10221. value
  10222. }
  10223. });
  10224. };
  10225. const getValue = parameter => {
  10226. return parameter.get('value');
  10227. };
  10228. return propertiesPanel.TextAreaEntry({
  10229. element: parameter,
  10230. id: idPrefix + '-stringOrExpression',
  10231. label: translate('Value'),
  10232. description: translate('Start typing "${}" to create an expression.'),
  10233. getValue,
  10234. setValue,
  10235. rows: 1,
  10236. debounce
  10237. });
  10238. }
  10239. // helper /////////////////////
  10240. function isInput(parameter) {
  10241. return ModelUtil.is(parameter, 'camunda:InputParameter');
  10242. }
  10243. /**
  10244. * Check whether an element is camunda:ServiceTaskLike
  10245. *
  10246. * @param {djs.model.Base} element
  10247. *
  10248. * @return {boolean} a boolean value
  10249. */
  10250. function isServiceTaskLike(element) {
  10251. return ModelUtil.is(element, 'camunda:ServiceTaskLike');
  10252. }
  10253. /**
  10254. * Returns 'true' if the given element is 'camunda:DmnCapable'
  10255. *
  10256. * @param {djs.model.Base} element
  10257. *
  10258. * @return {boolean} a boolean value
  10259. */
  10260. function isDmnCapable(element) {
  10261. return ModelUtil.is(element, 'camunda:DmnCapable');
  10262. }
  10263. /**
  10264. * Returns 'true' if the given element is 'camunda:ExternalCapable'
  10265. *
  10266. * @param {djs.model.Base} element
  10267. *
  10268. * @return {boolean} a boolean value
  10269. */
  10270. function isExternalCapable(element) {
  10271. return ModelUtil.is(element, 'camunda:ExternalCapable');
  10272. }
  10273. /**
  10274. * getServiceTaskLikeBusinessObject - Get a 'camunda:ServiceTaskLike' business object.
  10275. *
  10276. * If the given element is not a 'camunda:ServiceTaskLike', then 'false'
  10277. * is returned.
  10278. *
  10279. * @param {djs.model.Base} element
  10280. * @return {ModdleElement} the 'camunda:ServiceTaskLike' business object
  10281. */
  10282. function getServiceTaskLikeBusinessObject(element) {
  10283. if (ModelUtil.is(element, 'bpmn:IntermediateThrowEvent') || ModelUtil.is(element, 'bpmn:EndEvent')) {
  10284. // change business object to 'messageEventDefinition' when
  10285. // the element is a message intermediate throw event or message end event
  10286. // because the camunda extensions (e.g. camunda:class) are in the message
  10287. // event definition tag and not in the intermediate throw event or end event tag
  10288. const messageEventDefinition = getMessageEventDefinition(element);
  10289. if (messageEventDefinition) {
  10290. element = messageEventDefinition;
  10291. }
  10292. }
  10293. return isServiceTaskLike(element) && ModelUtil.getBusinessObject(element);
  10294. }
  10295. /**
  10296. * Returns the implementation type of the given element.
  10297. *
  10298. * Possible implementation types are:
  10299. * - dmn
  10300. * - connector
  10301. * - external
  10302. * - class
  10303. * - expression
  10304. * - delegateExpression
  10305. * - script
  10306. * - or undefined, when no matching implementation type is found
  10307. *
  10308. * @param {djs.model.Base} element
  10309. *
  10310. * @return {String} the implementation type
  10311. */
  10312. function getImplementationType(element) {
  10313. const businessObject = getListenerBusinessObject(element) || getServiceTaskLikeBusinessObject(element);
  10314. if (!businessObject) {
  10315. return;
  10316. }
  10317. if (isDmnCapable(businessObject)) {
  10318. const decisionRef = businessObject.get('camunda:decisionRef');
  10319. if (typeof decisionRef !== 'undefined') {
  10320. return 'dmn';
  10321. }
  10322. }
  10323. if (isServiceTaskLike(businessObject)) {
  10324. const connectors = getExtensionElementsList(businessObject, 'camunda:Connector');
  10325. if (connectors.length) {
  10326. return 'connector';
  10327. }
  10328. }
  10329. if (isExternalCapable(businessObject)) {
  10330. const type = businessObject.get('camunda:type');
  10331. if (type === 'external') {
  10332. return 'external';
  10333. }
  10334. }
  10335. const cls = businessObject.get('camunda:class');
  10336. if (typeof cls !== 'undefined') {
  10337. return 'class';
  10338. }
  10339. const expression = businessObject.get('camunda:expression');
  10340. if (typeof expression !== 'undefined') {
  10341. return 'expression';
  10342. }
  10343. const delegateExpression = businessObject.get('camunda:delegateExpression');
  10344. if (typeof delegateExpression !== 'undefined') {
  10345. return 'delegateExpression';
  10346. }
  10347. const script = businessObject.get('script');
  10348. if (typeof script !== 'undefined') {
  10349. return 'script';
  10350. }
  10351. }
  10352. function getListenerBusinessObject(businessObject) {
  10353. if (ModelingUtil.isAny(businessObject, ['camunda:ExecutionListener', 'camunda:TaskListener'])) {
  10354. return businessObject;
  10355. }
  10356. }
  10357. function areConnectorsSupported(element) {
  10358. const businessObject = getServiceTaskLikeBusinessObject(element);
  10359. return businessObject && getImplementationType(businessObject) === 'connector';
  10360. }
  10361. function getConnectors$2(businessObject) {
  10362. return getExtensionElementsList(businessObject, 'camunda:Connector');
  10363. }
  10364. function getConnector$1(element) {
  10365. const businessObject = getServiceTaskLikeBusinessObject(element);
  10366. const connectors = getConnectors$2(businessObject);
  10367. return connectors[0];
  10368. }
  10369. function ConnectorInputProps(props) {
  10370. const {
  10371. element,
  10372. injector
  10373. } = props;
  10374. if (!areConnectorsSupported(element)) {
  10375. return null;
  10376. }
  10377. const connector = getConnector$1(element);
  10378. const commandStack = injector.get('commandStack'),
  10379. bpmnFactory = injector.get('bpmnFactory');
  10380. const inputParameters = getInputParameters(connector) || [];
  10381. const items = inputParameters.map((parameter, index) => {
  10382. const id = element.id + '-connector-inputParameter-' + index;
  10383. return {
  10384. id,
  10385. label: parameter.get('name') || '',
  10386. entries: InputOutputParameter({
  10387. element,
  10388. idPrefix: id,
  10389. parameter
  10390. }),
  10391. autoFocusEntry: id + '-name',
  10392. remove: removeFactory$8({
  10393. connector,
  10394. element,
  10395. parameter,
  10396. commandStack
  10397. })
  10398. };
  10399. });
  10400. function add(event) {
  10401. event.stopPropagation();
  10402. const commands = [];
  10403. // (1) ensure inputOutput
  10404. let inputOutput = getInputOutput(connector);
  10405. if (!inputOutput) {
  10406. inputOutput = createElement('camunda:InputOutput', {
  10407. inputParameters: [],
  10408. outputParameters: []
  10409. }, connector, bpmnFactory);
  10410. commands.push({
  10411. cmd: 'element.updateModdleProperties',
  10412. context: {
  10413. element: element,
  10414. moddleElement: connector,
  10415. properties: {
  10416. inputOutput
  10417. }
  10418. }
  10419. });
  10420. }
  10421. // (2) create + add parameter
  10422. commands.push(CreateParameterCmd(element, 'camunda:InputParameter', inputOutput, bpmnFactory));
  10423. // (3) commit all updates
  10424. commandStack.execute('properties-panel.multi-command-executor', commands);
  10425. }
  10426. return {
  10427. items,
  10428. add
  10429. };
  10430. }
  10431. function removeFactory$8(props) {
  10432. const {
  10433. commandStack,
  10434. connector,
  10435. element,
  10436. parameter
  10437. } = props;
  10438. return function (event) {
  10439. event.stopPropagation();
  10440. const inputOutput = getInputOutput(connector);
  10441. if (!inputOutput) {
  10442. return;
  10443. }
  10444. commandStack.execute('element.updateModdleProperties', {
  10445. element: element,
  10446. moddleElement: inputOutput,
  10447. properties: {
  10448. inputParameters: minDash.without(inputOutput.get('inputParameters'), parameter)
  10449. }
  10450. });
  10451. };
  10452. }
  10453. function ConnectorOutputProps(props) {
  10454. const {
  10455. element,
  10456. injector
  10457. } = props;
  10458. if (!areConnectorsSupported(element)) {
  10459. return null;
  10460. }
  10461. const connector = getConnector$1(element);
  10462. const commandStack = injector.get('commandStack'),
  10463. bpmnFactory = injector.get('bpmnFactory');
  10464. const outputParameters = getOutputParameters(connector) || [];
  10465. const items = outputParameters.map((parameter, index) => {
  10466. const id = element.id + '-connector-outputParameter-' + index;
  10467. return {
  10468. id,
  10469. label: parameter.get('name') || '',
  10470. entries: InputOutputParameter({
  10471. idPrefix: id,
  10472. element,
  10473. parameter
  10474. }),
  10475. autoFocusEntry: id + '-name',
  10476. remove: removeFactory$7({
  10477. connector,
  10478. element,
  10479. commandStack,
  10480. parameter
  10481. })
  10482. };
  10483. });
  10484. function add(event) {
  10485. event.stopPropagation();
  10486. const commands = [];
  10487. // (1) ensure inputOutput
  10488. let inputOutput = getInputOutput(connector);
  10489. if (!inputOutput) {
  10490. inputOutput = createElement('camunda:InputOutput', {
  10491. inputParameters: [],
  10492. outputParameters: []
  10493. }, connector, bpmnFactory);
  10494. commands.push({
  10495. cmd: 'element.updateModdleProperties',
  10496. context: {
  10497. element: element,
  10498. moddleElement: connector,
  10499. properties: {
  10500. inputOutput
  10501. }
  10502. }
  10503. });
  10504. }
  10505. // (2) create + add parameter
  10506. commands.push(CreateParameterCmd(element, 'camunda:OutputParameter', inputOutput, bpmnFactory));
  10507. // (3) commit all updates
  10508. commandStack.execute('properties-panel.multi-command-executor', commands);
  10509. }
  10510. return {
  10511. items,
  10512. add
  10513. };
  10514. }
  10515. function removeFactory$7(props) {
  10516. const {
  10517. commandStack,
  10518. connector,
  10519. element,
  10520. parameter
  10521. } = props;
  10522. return function (event) {
  10523. event.stopPropagation();
  10524. const inputOutput = getInputOutput(connector);
  10525. if (!inputOutput) {
  10526. return;
  10527. }
  10528. commandStack.execute('element.updateModdleProperties', {
  10529. element: element,
  10530. moddleElement: inputOutput,
  10531. properties: {
  10532. outputParameters: minDash.without(inputOutput.get('outputParameters'), parameter)
  10533. }
  10534. });
  10535. };
  10536. }
  10537. function ErrorProps(props) {
  10538. const {
  10539. element,
  10540. entries
  10541. } = props;
  10542. if (!isErrorSupported(element)) {
  10543. return entries;
  10544. }
  10545. const error = getError(element);
  10546. // (1) errorMessage (error)
  10547. if (error) {
  10548. const idx = findPlaceToInsert(entries, 'errorCode');
  10549. // place below errorCode
  10550. entries.splice(idx, 0, {
  10551. id: 'errorMessage',
  10552. component: ErrorMessage$1,
  10553. isEdited: propertiesPanel.isTextFieldEntryEdited
  10554. });
  10555. }
  10556. if (!canHaveErrorVariables(element)) {
  10557. return entries;
  10558. }
  10559. // (2) errorCodeVariable + errorMessageVariable (errorEventDefinition)
  10560. entries.push({
  10561. id: 'errorCodeVariable',
  10562. component: ErrorCodeVariable,
  10563. isEdited: propertiesPanel.isTextFieldEntryEdited
  10564. }, {
  10565. id: 'errorMessageVariable',
  10566. component: ErrorMessageVariable,
  10567. isEdited: propertiesPanel.isTextFieldEntryEdited
  10568. });
  10569. return entries;
  10570. }
  10571. function ErrorMessage$1(props) {
  10572. const {
  10573. element
  10574. } = props;
  10575. const commandStack = useService('commandStack');
  10576. const translate = useService('translate');
  10577. const debounce = useService('debounceInput');
  10578. const error = getError(element);
  10579. const getValue = () => {
  10580. return error.get('camunda:errorMessage');
  10581. };
  10582. const setValue = value => {
  10583. return commandStack.execute('element.updateModdleProperties', {
  10584. element,
  10585. moddleElement: error,
  10586. properties: {
  10587. 'camunda:errorMessage': value
  10588. }
  10589. });
  10590. };
  10591. return propertiesPanel.TextFieldEntry({
  10592. element,
  10593. id: 'errorMessage',
  10594. label: translate('Message'),
  10595. getValue,
  10596. setValue,
  10597. debounce
  10598. });
  10599. }
  10600. function ErrorCodeVariable(props) {
  10601. const {
  10602. element
  10603. } = props;
  10604. const commandStack = useService('commandStack');
  10605. const translate = useService('translate');
  10606. const debounce = useService('debounceInput');
  10607. const errorEventDefinition = getErrorEventDefinition(element);
  10608. const getValue = () => {
  10609. return errorEventDefinition.get('camunda:errorCodeVariable');
  10610. };
  10611. const setValue = value => {
  10612. return commandStack.execute('element.updateModdleProperties', {
  10613. element,
  10614. moddleElement: errorEventDefinition,
  10615. properties: {
  10616. 'camunda:errorCodeVariable': value
  10617. }
  10618. });
  10619. };
  10620. return propertiesPanel.TextFieldEntry({
  10621. element,
  10622. id: 'errorCodeVariable',
  10623. label: translate('Code variable'),
  10624. description: translate('Define the name of the variable that will contain the error code.'),
  10625. getValue,
  10626. setValue,
  10627. debounce
  10628. });
  10629. }
  10630. function ErrorMessageVariable(props) {
  10631. const {
  10632. element
  10633. } = props;
  10634. const commandStack = useService('commandStack');
  10635. const translate = useService('translate');
  10636. const debounce = useService('debounceInput');
  10637. const errorEventDefinition = getErrorEventDefinition(element);
  10638. const getValue = () => {
  10639. return errorEventDefinition.get('camunda:errorMessageVariable');
  10640. };
  10641. const setValue = value => {
  10642. return commandStack.execute('element.updateModdleProperties', {
  10643. element,
  10644. moddleElement: errorEventDefinition,
  10645. properties: {
  10646. 'camunda:errorMessageVariable': value
  10647. }
  10648. });
  10649. };
  10650. return propertiesPanel.TextFieldEntry({
  10651. element,
  10652. id: 'errorMessageVariable',
  10653. label: translate('Message variable'),
  10654. description: translate('Define the name of the variable that will contain the error message.'),
  10655. getValue,
  10656. setValue,
  10657. debounce
  10658. });
  10659. }
  10660. // helper ///////////////////////
  10661. function canHaveErrorVariables(element) {
  10662. return ModelUtil.is(element, 'bpmn:StartEvent') || ModelUtil.is(element, 'bpmn:BoundaryEvent');
  10663. }
  10664. function findPlaceToInsert(entries, idx) {
  10665. const entryIndex = minDash.findIndex(entries, entry => entry.id === idx);
  10666. return entryIndex >= 0 ? entryIndex + 1 : entries.length;
  10667. }
  10668. const EMPTY_OPTION = '';
  10669. const CREATE_NEW_OPTION = 'create-new';
  10670. function Error$1(props) {
  10671. const {
  10672. idPrefix,
  10673. errorEventDefinition
  10674. } = props;
  10675. let entries = [{
  10676. id: idPrefix + '-errorRef',
  10677. component: ErrorRef,
  10678. isEdited: propertiesPanel.isSelectEntryEdited,
  10679. errorEventDefinition,
  10680. idPrefix
  10681. }];
  10682. const error = errorEventDefinition.get('errorRef');
  10683. if (error) {
  10684. entries = [...entries, {
  10685. id: idPrefix + '-errorName',
  10686. component: ErrorName,
  10687. isEdited: propertiesPanel.isTextFieldEntryEdited,
  10688. error,
  10689. errorEventDefinition,
  10690. idPrefix
  10691. }, {
  10692. id: idPrefix + '-errorCode',
  10693. component: ErrorCode,
  10694. isEdited: propertiesPanel.isTextFieldEntryEdited,
  10695. error,
  10696. errorEventDefinition,
  10697. idPrefix
  10698. }, {
  10699. id: idPrefix + '-errorMessage',
  10700. component: ErrorMessage,
  10701. isEdited: propertiesPanel.isTextFieldEntryEdited,
  10702. error,
  10703. errorEventDefinition,
  10704. idPrefix
  10705. }];
  10706. }
  10707. entries.push({
  10708. id: idPrefix + '-expression',
  10709. component: Expression$1,
  10710. errorEventDefinition,
  10711. idPrefix
  10712. });
  10713. return entries;
  10714. }
  10715. function ErrorRef(props) {
  10716. const {
  10717. element,
  10718. errorEventDefinition,
  10719. idPrefix
  10720. } = props;
  10721. const bpmnFactory = useService('bpmnFactory');
  10722. const commandStack = useService('commandStack');
  10723. const translate = useService('translate');
  10724. const businessObject = ModelUtil.getBusinessObject(element);
  10725. const getValue = () => {
  10726. const error = errorEventDefinition.get('errorRef');
  10727. if (error) {
  10728. return error.get('id');
  10729. }
  10730. return EMPTY_OPTION;
  10731. };
  10732. const setValue = value => {
  10733. const root = getRoot(businessObject);
  10734. const commands = [];
  10735. let error;
  10736. // (1) create new error
  10737. if (value === CREATE_NEW_OPTION) {
  10738. error = createElement('bpmn:Error', {
  10739. name: nextId('Error_')
  10740. }, root, bpmnFactory);
  10741. value = error.get('id');
  10742. commands.push({
  10743. cmd: 'element.updateModdleProperties',
  10744. context: {
  10745. element,
  10746. moddleElement: root,
  10747. properties: {
  10748. rootElements: [...root.get('rootElements'), error]
  10749. }
  10750. }
  10751. });
  10752. }
  10753. // (2) update (or remove) errorRef
  10754. error = error || findRootElementById(businessObject, 'bpmn:Error', value);
  10755. commands.push({
  10756. cmd: 'element.updateModdleProperties',
  10757. context: {
  10758. element,
  10759. moddleElement: errorEventDefinition,
  10760. properties: {
  10761. errorRef: error
  10762. }
  10763. }
  10764. });
  10765. // (3) commit all updates
  10766. return commandStack.execute('properties-panel.multi-command-executor', commands);
  10767. };
  10768. const getOptions = () => {
  10769. let options = [{
  10770. value: EMPTY_OPTION,
  10771. label: translate('<none>')
  10772. }, {
  10773. value: CREATE_NEW_OPTION,
  10774. label: translate('Create new ...')
  10775. }];
  10776. const errors = findRootElementsByType(ModelUtil.getBusinessObject(element), 'bpmn:Error');
  10777. sortByName$1(errors).forEach(error => {
  10778. options.push({
  10779. value: error.get('id'),
  10780. label: error.get('name') || error.get('id')
  10781. });
  10782. });
  10783. return options;
  10784. };
  10785. return ReferenceSelectEntry({
  10786. element,
  10787. id: idPrefix + '-errorRef',
  10788. label: translate('Global error reference'),
  10789. autoFocusEntry: idPrefix + '-errorName',
  10790. getValue,
  10791. setValue,
  10792. getOptions
  10793. });
  10794. }
  10795. function ErrorName(props) {
  10796. const {
  10797. element,
  10798. error,
  10799. idPrefix
  10800. } = props;
  10801. const commandStack = useService('commandStack');
  10802. const translate = useService('translate');
  10803. const debounce = useService('debounceInput');
  10804. const getValue = () => {
  10805. return error.get('name');
  10806. };
  10807. const setValue = value => {
  10808. return commandStack.execute('element.updateModdleProperties', {
  10809. element,
  10810. moddleElement: error,
  10811. properties: {
  10812. name: value
  10813. }
  10814. });
  10815. };
  10816. return propertiesPanel.TextFieldEntry({
  10817. element,
  10818. id: idPrefix + '-errorName',
  10819. label: translate('Name'),
  10820. getValue,
  10821. setValue,
  10822. debounce
  10823. });
  10824. }
  10825. function ErrorCode(props) {
  10826. const {
  10827. element,
  10828. error,
  10829. idPrefix
  10830. } = props;
  10831. const commandStack = useService('commandStack');
  10832. const translate = useService('translate');
  10833. const debounce = useService('debounceInput');
  10834. const getValue = () => {
  10835. return error.get('errorCode');
  10836. };
  10837. const setValue = value => {
  10838. return commandStack.execute('element.updateModdleProperties', {
  10839. element,
  10840. moddleElement: error,
  10841. properties: {
  10842. errorCode: value
  10843. }
  10844. });
  10845. };
  10846. return propertiesPanel.TextFieldEntry({
  10847. element,
  10848. id: idPrefix + '-errorCode',
  10849. label: translate('Code'),
  10850. getValue,
  10851. setValue,
  10852. debounce
  10853. });
  10854. }
  10855. function ErrorMessage(props) {
  10856. const {
  10857. element,
  10858. error,
  10859. idPrefix
  10860. } = props;
  10861. const commandStack = useService('commandStack');
  10862. const translate = useService('translate');
  10863. const debounce = useService('debounceInput');
  10864. const getValue = () => {
  10865. return error.get('errorMessage');
  10866. };
  10867. const setValue = value => {
  10868. return commandStack.execute('element.updateModdleProperties', {
  10869. element,
  10870. moddleElement: error,
  10871. properties: {
  10872. errorMessage: value
  10873. }
  10874. });
  10875. };
  10876. return propertiesPanel.TextFieldEntry({
  10877. element,
  10878. id: idPrefix + '-errorMessage',
  10879. label: translate('Message'),
  10880. getValue,
  10881. setValue,
  10882. debounce
  10883. });
  10884. }
  10885. function Expression$1(props) {
  10886. const {
  10887. element,
  10888. errorEventDefinition,
  10889. idPrefix
  10890. } = props;
  10891. const commandStack = useService('commandStack');
  10892. const translate = useService('translate');
  10893. const debounce = useService('debounceInput');
  10894. const setValue = value => {
  10895. commandStack.execute('element.updateModdleProperties', {
  10896. element,
  10897. moddleElement: errorEventDefinition,
  10898. properties: {
  10899. 'camunda:expression': value
  10900. }
  10901. });
  10902. };
  10903. const getValue = () => {
  10904. return errorEventDefinition.get('camunda:expression');
  10905. };
  10906. return propertiesPanel.TextFieldEntry({
  10907. element: errorEventDefinition,
  10908. id: idPrefix + '-expression',
  10909. label: translate('Throw expression'),
  10910. getValue,
  10911. setValue,
  10912. debounce
  10913. });
  10914. }
  10915. // helpers //////////
  10916. function sortByName$1(elements) {
  10917. return minDash.sortBy(elements, e => (e.name || '').toLowerCase());
  10918. }
  10919. function ErrorsProps({
  10920. element,
  10921. injector
  10922. }) {
  10923. const businessObject = ModelUtil.getBusinessObject(element);
  10924. if (!ModelUtil.is(element, 'bpmn:ServiceTask') || getImplementationType(element) !== 'external') {
  10925. return null;
  10926. }
  10927. const errorEventDefinitions = getExtensionElementsList(businessObject, 'camunda:ErrorEventDefinition');
  10928. const bpmnFactory = injector.get('bpmnFactory'),
  10929. commandStack = injector.get('commandStack');
  10930. const items = errorEventDefinitions.map((errorEventDefinition, index) => {
  10931. const id = element.id + '-error-' + index;
  10932. return {
  10933. id,
  10934. label: getErrorLabel(errorEventDefinition),
  10935. entries: Error$1({
  10936. idPrefix: id,
  10937. element,
  10938. errorEventDefinition
  10939. }),
  10940. autoFocusEntry: id + '-errorRef',
  10941. remove: removeFactory$6({
  10942. commandStack,
  10943. element,
  10944. errorEventDefinition
  10945. })
  10946. };
  10947. });
  10948. return {
  10949. items,
  10950. add: addFactory$5({
  10951. bpmnFactory,
  10952. commandStack,
  10953. element
  10954. }),
  10955. shouldSort: false
  10956. };
  10957. }
  10958. function removeFactory$6({
  10959. commandStack,
  10960. element,
  10961. errorEventDefinition
  10962. }) {
  10963. return function (event) {
  10964. event.stopPropagation();
  10965. const businessObject = ModelUtil.getBusinessObject(element);
  10966. removeExtensionElements(element, businessObject, errorEventDefinition, commandStack);
  10967. };
  10968. }
  10969. function addFactory$5({
  10970. bpmnFactory,
  10971. commandStack,
  10972. element
  10973. }) {
  10974. return function (event) {
  10975. event.stopPropagation();
  10976. const businessObject = ModelUtil.getBusinessObject(element);
  10977. const error = createElement('camunda:ErrorEventDefinition', {}, undefined, bpmnFactory);
  10978. addExtensionElements(element, businessObject, error, bpmnFactory, commandStack);
  10979. };
  10980. }
  10981. // helpers //////////
  10982. function getErrorLabel(errorEventDefinition) {
  10983. const error = errorEventDefinition.get('errorRef');
  10984. if (!error) {
  10985. return '<no reference>';
  10986. }
  10987. const errorCode = error.get('errorCode'),
  10988. name = error.get('name') || '<unnamed>';
  10989. if (errorCode) {
  10990. return `${name} (code = ${errorCode})`;
  10991. }
  10992. return name;
  10993. }
  10994. /**
  10995. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  10996. */
  10997. /**
  10998. * @returns {Array<Entry>} entries
  10999. */
  11000. function EscalationProps(props) {
  11001. const {
  11002. element,
  11003. entries
  11004. } = props;
  11005. if (!(isEscalationSupported(element) && canHaveEscalationVariables(element))) {
  11006. return entries;
  11007. }
  11008. entries.push({
  11009. id: 'escalationCodeVariable',
  11010. component: EscalationCodeVariable,
  11011. isEdited: propertiesPanel.isTextFieldEntryEdited
  11012. });
  11013. return entries;
  11014. }
  11015. function EscalationCodeVariable(props) {
  11016. const {
  11017. element
  11018. } = props;
  11019. const commandStack = useService('commandStack');
  11020. const translate = useService('translate');
  11021. const debounce = useService('debounceInput');
  11022. const escalationEventDefinition = getEscalationEventDefinition(element);
  11023. const getValue = () => {
  11024. return escalationEventDefinition.get('camunda:escalationCodeVariable');
  11025. };
  11026. const setValue = value => {
  11027. return commandStack.execute('element.updateModdleProperties', {
  11028. element,
  11029. moddleElement: escalationEventDefinition,
  11030. properties: {
  11031. 'camunda:escalationCodeVariable': value
  11032. }
  11033. });
  11034. };
  11035. return propertiesPanel.TextFieldEntry({
  11036. element,
  11037. id: 'escalationCodeVariable',
  11038. label: translate('Code variable'),
  11039. description: translate('Define the name of the variable that will contain the escalation code.'),
  11040. getValue,
  11041. setValue,
  11042. debounce
  11043. });
  11044. }
  11045. // helper ///////////////////////
  11046. function canHaveEscalationVariables(element) {
  11047. return ModelUtil.is(element, 'bpmn:StartEvent') || ModelUtil.is(element, 'bpmn:BoundaryEvent');
  11048. }
  11049. function ExternalTaskPriorityProps(props) {
  11050. const {
  11051. element
  11052. } = props;
  11053. const businessObject = ModelUtil.getBusinessObject(element);
  11054. if (!ModelUtil.is(element, 'bpmn:Process') && !(ModelUtil.is(element, 'bpmn:Participant') && businessObject.get('processRef')) && !isExternalTaskLike(element)) {
  11055. return [];
  11056. }
  11057. return [{
  11058. id: 'externalTaskPriority',
  11059. component: ExternalTaskPriority,
  11060. isEdited: propertiesPanel.isTextFieldEntryEdited
  11061. }];
  11062. }
  11063. function ExternalTaskPriority(props) {
  11064. const {
  11065. element
  11066. } = props;
  11067. const commandStack = useService('commandStack'),
  11068. translate = useService('translate'),
  11069. debounce = useService('debounceInput');
  11070. let businessObject;
  11071. if (ModelUtil.is(element, 'bpmn:Participant')) {
  11072. businessObject = ModelUtil.getBusinessObject(element).get('processRef');
  11073. } else if (isExternalTaskLike(element)) {
  11074. businessObject = getServiceTaskLikeBusinessObject(element);
  11075. } else {
  11076. businessObject = ModelUtil.getBusinessObject(element);
  11077. }
  11078. const getValue = () => {
  11079. return businessObject.get('camunda:taskPriority');
  11080. };
  11081. const setValue = value => {
  11082. commandStack.execute('element.updateModdleProperties', {
  11083. element,
  11084. moddleElement: businessObject,
  11085. properties: {
  11086. 'camunda:taskPriority': value
  11087. }
  11088. });
  11089. };
  11090. return propertiesPanel.TextFieldEntry({
  11091. element,
  11092. id: 'externalTaskPriority',
  11093. label: translate('Priority'),
  11094. getValue,
  11095. setValue,
  11096. debounce
  11097. });
  11098. }
  11099. // helper //////////////////
  11100. function isExternalTaskLike(element) {
  11101. const bo = getServiceTaskLikeBusinessObject(element),
  11102. type = bo && bo.get('camunda:type');
  11103. return ModelUtil.is(bo, 'camunda:ServiceTaskLike') && type && type === 'external';
  11104. }
  11105. const DEFAULT_PROPS$2 = {
  11106. 'stringValue': undefined,
  11107. 'string': undefined,
  11108. 'expression': undefined
  11109. };
  11110. function FieldInjection(props) {
  11111. const {
  11112. element,
  11113. idPrefix,
  11114. field
  11115. } = props;
  11116. const entries = [{
  11117. id: idPrefix + '-name',
  11118. component: NameProperty,
  11119. field,
  11120. idPrefix,
  11121. element
  11122. }, {
  11123. id: idPrefix + '-type',
  11124. component: TypeProperty,
  11125. field,
  11126. idPrefix,
  11127. element
  11128. }, {
  11129. id: idPrefix + '-value',
  11130. component: ValueProperty,
  11131. field,
  11132. idPrefix,
  11133. element
  11134. }];
  11135. return entries;
  11136. }
  11137. function NameProperty(props) {
  11138. const {
  11139. idPrefix,
  11140. element,
  11141. field
  11142. } = props;
  11143. const commandStack = useService('commandStack'),
  11144. translate = useService('translate'),
  11145. debounce = useService('debounceInput');
  11146. const setValue = value => {
  11147. commandStack.execute('element.updateModdleProperties', {
  11148. element,
  11149. moddleElement: field,
  11150. properties: {
  11151. name: value
  11152. }
  11153. });
  11154. };
  11155. const getValue = field => {
  11156. return field.name;
  11157. };
  11158. return propertiesPanel.TextFieldEntry({
  11159. element: field,
  11160. id: idPrefix + '-name',
  11161. label: translate('Name'),
  11162. getValue,
  11163. setValue,
  11164. debounce
  11165. });
  11166. }
  11167. function TypeProperty(props) {
  11168. const {
  11169. idPrefix,
  11170. element,
  11171. field
  11172. } = props;
  11173. const commandStack = useService('commandStack'),
  11174. translate = useService('translate');
  11175. const getValue = field => {
  11176. return determineType(field);
  11177. };
  11178. const setValue = value => {
  11179. const properties = Object.assign({}, DEFAULT_PROPS$2);
  11180. properties[value] = '';
  11181. commandStack.execute('element.updateModdleProperties', {
  11182. element,
  11183. moddleElement: field,
  11184. properties
  11185. });
  11186. };
  11187. const getOptions = element => {
  11188. const options = [{
  11189. value: 'string',
  11190. label: translate('String')
  11191. }, {
  11192. value: 'expression',
  11193. label: translate('Expression')
  11194. }];
  11195. return options;
  11196. };
  11197. return propertiesPanel.SelectEntry({
  11198. element: field,
  11199. id: idPrefix + '-type',
  11200. label: translate('Type'),
  11201. getValue,
  11202. setValue,
  11203. getOptions
  11204. });
  11205. }
  11206. function ValueProperty(props) {
  11207. const {
  11208. idPrefix,
  11209. element,
  11210. field
  11211. } = props;
  11212. const commandStack = useService('commandStack');
  11213. const translate = useService('translate');
  11214. const debounce = useService('debounceInput');
  11215. const setValue = value => {
  11216. // (1) determine which type we have set
  11217. const type = determineType(field);
  11218. // (2) set property accordingly
  11219. const properties = Object.assign({}, DEFAULT_PROPS$2);
  11220. properties[type] = value || '';
  11221. // (3) execute the update command
  11222. commandStack.execute('element.updateModdleProperties', {
  11223. element,
  11224. moddleElement: field,
  11225. properties
  11226. });
  11227. };
  11228. const getValue = field => {
  11229. return field.string || field.stringValue || field.expression;
  11230. };
  11231. return propertiesPanel.TextFieldEntry({
  11232. element: field,
  11233. id: idPrefix + '-value',
  11234. label: translate('Value'),
  11235. getValue,
  11236. setValue,
  11237. debounce
  11238. });
  11239. }
  11240. // helper ///////////////////
  11241. /**
  11242. * determineType - get the type of a fieldInjection based on the attributes
  11243. * set on it
  11244. *
  11245. * @param {ModdleElement} field
  11246. * @return {('string'|'expression')}
  11247. */
  11248. function determineType(field) {
  11249. // string is the default type
  11250. return 'string' in field && 'string' || 'expression' in field && 'expression' || 'stringValue' in field && 'string' || 'string';
  11251. }
  11252. function FieldInjectionProps({
  11253. element,
  11254. injector
  11255. }) {
  11256. const businessObject = getServiceTaskLikeBusinessObject(element);
  11257. if (!businessObject) {
  11258. return null;
  11259. }
  11260. const fieldInjections = getExtensionElementsList(businessObject, 'camunda:Field');
  11261. const bpmnFactory = injector.get('bpmnFactory'),
  11262. commandStack = injector.get('commandStack');
  11263. const items = fieldInjections.map((field, index) => {
  11264. const id = element.id + '-fieldInjection-' + index;
  11265. return {
  11266. id,
  11267. label: getFieldLabel(field),
  11268. entries: FieldInjection({
  11269. idPrefix: id,
  11270. element,
  11271. field
  11272. }),
  11273. autoFocusEntry: id + '-name',
  11274. remove: removeFactory$5({
  11275. commandStack,
  11276. element,
  11277. field
  11278. })
  11279. };
  11280. });
  11281. return {
  11282. items,
  11283. add: addFactory$4({
  11284. bpmnFactory,
  11285. commandStack,
  11286. element
  11287. })
  11288. };
  11289. }
  11290. function removeFactory$5({
  11291. commandStack,
  11292. element,
  11293. field
  11294. }) {
  11295. return function (event) {
  11296. event.stopPropagation();
  11297. const businessObject = getServiceTaskLikeBusinessObject(element);
  11298. removeExtensionElements(element, businessObject, field, commandStack);
  11299. };
  11300. }
  11301. function addFactory$4({
  11302. bpmnFactory,
  11303. commandStack,
  11304. element
  11305. }) {
  11306. return function (event) {
  11307. event.stopPropagation();
  11308. const businessObject = getServiceTaskLikeBusinessObject(element);
  11309. const fieldInjection = createElement('camunda:Field', {
  11310. name: undefined,
  11311. string: '',
  11312. // string is the default type
  11313. stringValue: undefined
  11314. }, null, bpmnFactory);
  11315. addExtensionElements(element, businessObject, fieldInjection, bpmnFactory, commandStack);
  11316. };
  11317. }
  11318. // helper ///////////////
  11319. function getFieldLabel(field) {
  11320. return field.name || '<empty>';
  11321. }
  11322. function FormFieldConstraint(props) {
  11323. const {
  11324. constraint,
  11325. element,
  11326. idPrefix
  11327. } = props;
  11328. const entries = [{
  11329. id: idPrefix + '-name',
  11330. component: Name$1,
  11331. constraint,
  11332. idPrefix,
  11333. element
  11334. }, {
  11335. id: idPrefix + '-config',
  11336. component: Config,
  11337. constraint,
  11338. idPrefix,
  11339. element
  11340. }];
  11341. return entries;
  11342. }
  11343. function Name$1(props) {
  11344. const {
  11345. idPrefix,
  11346. element,
  11347. constraint
  11348. } = props;
  11349. const commandStack = useService('commandStack'),
  11350. translate = useService('translate'),
  11351. debounce = useService('debounceInput');
  11352. const setValue = value => {
  11353. commandStack.execute('element.updateModdleProperties', {
  11354. element,
  11355. moddleElement: constraint,
  11356. properties: {
  11357. name: value
  11358. }
  11359. });
  11360. };
  11361. const getValue = () => {
  11362. return constraint.name;
  11363. };
  11364. return propertiesPanel.TextFieldEntry({
  11365. element: constraint,
  11366. id: idPrefix + '-name',
  11367. label: translate('Name'),
  11368. getValue,
  11369. setValue,
  11370. debounce
  11371. });
  11372. }
  11373. function Config(props) {
  11374. const {
  11375. idPrefix,
  11376. element,
  11377. constraint
  11378. } = props;
  11379. const commandStack = useService('commandStack'),
  11380. translate = useService('translate'),
  11381. debounce = useService('debounceInput');
  11382. const setValue = value => {
  11383. commandStack.execute('element.updateModdleProperties', {
  11384. element,
  11385. moddleElement: constraint,
  11386. properties: {
  11387. config: value
  11388. }
  11389. });
  11390. };
  11391. const getValue = () => {
  11392. return constraint.config;
  11393. };
  11394. return propertiesPanel.TextFieldEntry({
  11395. element: constraint,
  11396. id: idPrefix + '-config',
  11397. label: translate('Config'),
  11398. getValue,
  11399. setValue,
  11400. debounce
  11401. });
  11402. }
  11403. function FormFieldProperty(props) {
  11404. const {
  11405. element,
  11406. idPrefix,
  11407. property
  11408. } = props;
  11409. const entries = [{
  11410. id: idPrefix + '-id',
  11411. component: Id$2,
  11412. idPrefix,
  11413. property,
  11414. element
  11415. }, {
  11416. id: idPrefix + '-value',
  11417. component: Value$1,
  11418. idPrefix,
  11419. property,
  11420. element
  11421. }];
  11422. return entries;
  11423. }
  11424. function Id$2(props) {
  11425. const {
  11426. idPrefix,
  11427. element,
  11428. property
  11429. } = props;
  11430. const commandStack = useService('commandStack'),
  11431. translate = useService('translate'),
  11432. debounce = useService('debounceInput');
  11433. const setValue = value => {
  11434. commandStack.execute('element.updateModdleProperties', {
  11435. element,
  11436. moddleElement: property,
  11437. properties: {
  11438. id: value
  11439. }
  11440. });
  11441. };
  11442. const getValue = () => {
  11443. return property.id;
  11444. };
  11445. return propertiesPanel.TextFieldEntry({
  11446. element: property,
  11447. id: idPrefix + '-id',
  11448. label: translate('ID'),
  11449. getValue,
  11450. setValue,
  11451. debounce
  11452. });
  11453. }
  11454. function Value$1(props) {
  11455. const {
  11456. idPrefix,
  11457. element,
  11458. property
  11459. } = props;
  11460. const commandStack = useService('commandStack'),
  11461. translate = useService('translate'),
  11462. debounce = useService('debounceInput');
  11463. const setValue = value => {
  11464. commandStack.execute('element.updateModdleProperties', {
  11465. element,
  11466. moddleElement: property,
  11467. properties: {
  11468. value
  11469. }
  11470. });
  11471. };
  11472. const getValue = () => {
  11473. return property.value;
  11474. };
  11475. return propertiesPanel.TextFieldEntry({
  11476. element: property,
  11477. id: idPrefix + '-value',
  11478. label: translate('Value'),
  11479. getValue,
  11480. setValue,
  11481. debounce
  11482. });
  11483. }
  11484. function FormFieldValue(props) {
  11485. const {
  11486. element,
  11487. idPrefix,
  11488. value
  11489. } = props;
  11490. const entries = [{
  11491. id: idPrefix + '-id',
  11492. component: Id$1,
  11493. idPrefix,
  11494. value,
  11495. element
  11496. }, {
  11497. id: idPrefix + '-name',
  11498. component: Name,
  11499. idPrefix,
  11500. value,
  11501. element
  11502. }];
  11503. return entries;
  11504. }
  11505. function Id$1(props) {
  11506. const {
  11507. idPrefix,
  11508. element,
  11509. value
  11510. } = props;
  11511. const commandStack = useService('commandStack'),
  11512. translate = useService('translate'),
  11513. debounce = useService('debounceInput');
  11514. const setValue = val => {
  11515. commandStack.execute('element.updateModdleProperties', {
  11516. element,
  11517. moddleElement: value,
  11518. properties: {
  11519. id: val
  11520. }
  11521. });
  11522. };
  11523. const getValue = () => {
  11524. return value.id;
  11525. };
  11526. return propertiesPanel.TextFieldEntry({
  11527. element: value,
  11528. id: idPrefix + '-id',
  11529. label: translate('ID'),
  11530. getValue,
  11531. setValue,
  11532. debounce
  11533. });
  11534. }
  11535. function Name(props) {
  11536. const {
  11537. idPrefix,
  11538. element,
  11539. value
  11540. } = props;
  11541. const commandStack = useService('commandStack'),
  11542. translate = useService('translate'),
  11543. debounce = useService('debounceInput');
  11544. const setValue = val => {
  11545. commandStack.execute('element.updateModdleProperties', {
  11546. element,
  11547. moddleElement: value,
  11548. properties: {
  11549. name: val
  11550. }
  11551. });
  11552. };
  11553. const getValue = () => {
  11554. return value.name;
  11555. };
  11556. return propertiesPanel.TextFieldEntry({
  11557. element: value,
  11558. id: idPrefix + '-name',
  11559. label: translate('Name'),
  11560. getValue,
  11561. setValue,
  11562. debounce
  11563. });
  11564. }
  11565. const CUSTOM_TYPE_VALUE = '',
  11566. DEFINED_TYPE_VALUES = ['boolean', 'date', 'enum', 'long', 'string', undefined];
  11567. function FormField(props) {
  11568. const {
  11569. idPrefix,
  11570. formField
  11571. } = props;
  11572. const entries = [{
  11573. id: idPrefix + '-formFieldID',
  11574. component: Id,
  11575. idPrefix,
  11576. formField
  11577. }, {
  11578. id: idPrefix + '-formFieldLabel',
  11579. component: Label,
  11580. idPrefix,
  11581. formField
  11582. }, {
  11583. id: idPrefix + '-formFieldType',
  11584. component: Type$1,
  11585. idPrefix,
  11586. formField
  11587. }];
  11588. if (!DEFINED_TYPE_VALUES.includes(formField.get('type'))) {
  11589. entries.push({
  11590. id: idPrefix + '-formFieldCustomType',
  11591. component: CustomType,
  11592. idPrefix,
  11593. formField
  11594. });
  11595. }
  11596. entries.push({
  11597. id: idPrefix + '-formFieldDefaultValue',
  11598. component: DefaultValue,
  11599. idPrefix,
  11600. formField
  11601. });
  11602. if (formField.get('type') === 'enum') {
  11603. entries.push({
  11604. id: idPrefix + '-formFieldValues',
  11605. component: ValueList,
  11606. formField,
  11607. idPrefix
  11608. });
  11609. }
  11610. entries.push({
  11611. id: idPrefix + '-formFieldConstraints',
  11612. component: ConstraintList,
  11613. formField,
  11614. idPrefix
  11615. }, {
  11616. id: idPrefix + '-formFieldProperties',
  11617. component: PropertiesList,
  11618. formField,
  11619. idPrefix
  11620. });
  11621. return entries;
  11622. }
  11623. function Id(props) {
  11624. const {
  11625. idPrefix,
  11626. element,
  11627. formField
  11628. } = props;
  11629. const commandStack = useService('commandStack');
  11630. const translate = useService('translate');
  11631. const debounce = useService('debounceInput');
  11632. const setValue = value => {
  11633. commandStack.execute('element.updateModdleProperties', {
  11634. element,
  11635. moddleElement: formField,
  11636. properties: {
  11637. id: value
  11638. }
  11639. });
  11640. };
  11641. const getValue = () => {
  11642. return formField.get('id');
  11643. };
  11644. return propertiesPanel.TextFieldEntry({
  11645. element: formField,
  11646. id: idPrefix + '-formFieldID',
  11647. label: translate('ID'),
  11648. description: translate('Refers to the process variable name'),
  11649. getValue,
  11650. setValue,
  11651. debounce
  11652. });
  11653. }
  11654. function Label(props) {
  11655. const {
  11656. idPrefix,
  11657. element,
  11658. formField
  11659. } = props;
  11660. const commandStack = useService('commandStack');
  11661. const translate = useService('translate');
  11662. const debounce = useService('debounceInput');
  11663. const setValue = value => {
  11664. commandStack.execute('element.updateModdleProperties', {
  11665. element,
  11666. moddleElement: formField,
  11667. properties: {
  11668. label: value
  11669. }
  11670. });
  11671. };
  11672. const getValue = () => {
  11673. return formField.get('label');
  11674. };
  11675. return propertiesPanel.TextFieldEntry({
  11676. element: formField,
  11677. id: idPrefix + '-formFieldLabel',
  11678. label: translate('Label'),
  11679. getValue,
  11680. setValue,
  11681. debounce
  11682. });
  11683. }
  11684. function Type$1(props) {
  11685. const {
  11686. idPrefix,
  11687. element,
  11688. formField
  11689. } = props;
  11690. const commandStack = useService('commandStack');
  11691. const translate = useService('translate');
  11692. const setValue = value => {
  11693. commandStack.execute('element.updateModdleProperties', {
  11694. element,
  11695. moddleElement: formField,
  11696. properties: {
  11697. type: value
  11698. }
  11699. });
  11700. };
  11701. const getValue = () => {
  11702. const type = formField.get('type');
  11703. return DEFINED_TYPE_VALUES.includes(type) ? type : CUSTOM_TYPE_VALUE;
  11704. };
  11705. const getOptions = () => {
  11706. const options = [{
  11707. label: translate('boolean'),
  11708. value: 'boolean'
  11709. }, {
  11710. label: translate('date'),
  11711. value: 'date'
  11712. }, {
  11713. label: translate('enum'),
  11714. value: 'enum'
  11715. }, {
  11716. label: translate('long'),
  11717. value: 'long'
  11718. }, {
  11719. label: translate('string'),
  11720. value: 'string'
  11721. }, {
  11722. label: translate('<custom type>'),
  11723. value: CUSTOM_TYPE_VALUE
  11724. }];
  11725. // for the initial state only, we want to show an empty state
  11726. if (formField.get('type') === undefined) {
  11727. options.unshift({
  11728. label: translate('<none>'),
  11729. value: ''
  11730. });
  11731. }
  11732. return options;
  11733. };
  11734. return propertiesPanel.SelectEntry({
  11735. element: formField,
  11736. id: idPrefix + '-formFieldType',
  11737. label: translate('Type'),
  11738. getValue,
  11739. setValue,
  11740. getOptions
  11741. });
  11742. }
  11743. function CustomType(props) {
  11744. const {
  11745. idPrefix,
  11746. element,
  11747. formField
  11748. } = props;
  11749. const commandStack = useService('commandStack');
  11750. const translate = useService('translate');
  11751. const debounce = useService('debounceInput');
  11752. const setValue = value => {
  11753. const type = value || '';
  11754. commandStack.execute('element.updateModdleProperties', {
  11755. element,
  11756. moddleElement: formField,
  11757. properties: {
  11758. type
  11759. }
  11760. });
  11761. };
  11762. const getValue = () => {
  11763. return formField.get('type');
  11764. };
  11765. return propertiesPanel.TextFieldEntry({
  11766. element: formField,
  11767. id: idPrefix + '-formFieldCustomType',
  11768. label: translate('Custom type'),
  11769. getValue,
  11770. setValue,
  11771. debounce
  11772. });
  11773. }
  11774. function DefaultValue(props) {
  11775. const {
  11776. idPrefix,
  11777. element,
  11778. formField
  11779. } = props;
  11780. const commandStack = useService('commandStack');
  11781. const translate = useService('translate');
  11782. const debounce = useService('debounceInput');
  11783. const setValue = value => {
  11784. commandStack.execute('element.updateModdleProperties', {
  11785. element,
  11786. moddleElement: formField,
  11787. properties: {
  11788. defaultValue: value
  11789. }
  11790. });
  11791. };
  11792. const getValue = () => {
  11793. return formField.get('defaultValue');
  11794. };
  11795. return propertiesPanel.TextFieldEntry({
  11796. element: formField,
  11797. id: idPrefix + '-formFieldDefaultValue',
  11798. label: translate('Default value'),
  11799. getValue,
  11800. setValue,
  11801. debounce
  11802. });
  11803. }
  11804. function Value(props) {
  11805. const {
  11806. element,
  11807. id: idPrefix,
  11808. index,
  11809. item: value,
  11810. open
  11811. } = props;
  11812. const translate = useService('translate');
  11813. const id = `${idPrefix}-value-${index}`;
  11814. return jsxRuntime.jsx(propertiesPanel.CollapsibleEntry, {
  11815. id: id,
  11816. element: element,
  11817. entries: FormFieldValue({
  11818. idPrefix: id,
  11819. element,
  11820. value
  11821. }),
  11822. label: value.get('id') || translate('<empty>'),
  11823. open: open
  11824. });
  11825. }
  11826. function ValueList(props) {
  11827. const {
  11828. element,
  11829. formField,
  11830. idPrefix
  11831. } = props;
  11832. const id = `${idPrefix}-formFieldValues`;
  11833. const bpmnFactory = useService('bpmnFactory');
  11834. const commandStack = useService('commandStack');
  11835. const translate = useService('translate');
  11836. const values = formField.get('values') || [];
  11837. function addValue() {
  11838. const value = createElement('camunda:Value', {
  11839. id: undefined,
  11840. name: undefined
  11841. }, formField, bpmnFactory);
  11842. commandStack.execute('element.updateModdleProperties', {
  11843. element: element,
  11844. moddleElement: formField,
  11845. properties: {
  11846. values: [...formField.get('values'), value]
  11847. }
  11848. });
  11849. }
  11850. function removeValue(value) {
  11851. commandStack.execute('element.updateModdleProperties', {
  11852. element: element,
  11853. moddleElement: formField,
  11854. properties: {
  11855. values: minDash.without(formField.get('values'), value)
  11856. }
  11857. });
  11858. }
  11859. return jsxRuntime.jsx(propertiesPanel.ListEntry, {
  11860. element: element,
  11861. autoFocusEntry: `[data-entry-id="${id}-value-${values.length - 1}"] input`,
  11862. id: id,
  11863. label: translate('Values'),
  11864. items: values,
  11865. component: Value,
  11866. onAdd: addValue,
  11867. onRemove: removeValue
  11868. });
  11869. }
  11870. function Constraint(props) {
  11871. const {
  11872. element,
  11873. id: idPrefix,
  11874. index,
  11875. item: constraint,
  11876. open
  11877. } = props;
  11878. const translate = useService('translate');
  11879. const id = `${idPrefix}-constraint-${index}`;
  11880. return jsxRuntime.jsx(propertiesPanel.CollapsibleEntry, {
  11881. id: id,
  11882. element: element,
  11883. entries: FormFieldConstraint({
  11884. constraint,
  11885. element,
  11886. idPrefix: id
  11887. }),
  11888. label: constraint.get('name') || translate('<empty>'),
  11889. open: open
  11890. });
  11891. }
  11892. function ConstraintList(props) {
  11893. const {
  11894. element,
  11895. formField,
  11896. idPrefix
  11897. } = props;
  11898. const id = `${idPrefix}-formFieldConstraints`;
  11899. const bpmnFactory = useService('bpmnFactory');
  11900. const commandStack = useService('commandStack');
  11901. const translate = useService('translate');
  11902. const businessObject = ModelUtil.getBusinessObject(element);
  11903. let validation = formField.get('validation');
  11904. const constraints = validation && validation.get('constraints') || [];
  11905. function addConstraint() {
  11906. const commands = [];
  11907. // (1) ensure validation
  11908. if (!validation) {
  11909. validation = createElement('camunda:Validation', {}, businessObject, bpmnFactory);
  11910. commands.push({
  11911. cmd: 'element.updateModdleProperties',
  11912. context: {
  11913. element,
  11914. moddleElement: formField,
  11915. properties: {
  11916. validation
  11917. }
  11918. }
  11919. });
  11920. }
  11921. // (2) add constraint
  11922. const constraint = createElement('camunda:Constraint', {
  11923. name: undefined,
  11924. config: undefined
  11925. }, validation, bpmnFactory);
  11926. commands.push({
  11927. cmd: 'element.updateModdleProperties',
  11928. context: {
  11929. element,
  11930. moddleElement: validation,
  11931. properties: {
  11932. constraints: [...validation.get('constraints'), constraint]
  11933. }
  11934. }
  11935. });
  11936. // (3) commit updates
  11937. commandStack.execute('properties-panel.multi-command-executor', commands);
  11938. }
  11939. function removeConstraint(constraint) {
  11940. commandStack.execute('element.updateModdleProperties', {
  11941. element,
  11942. moddleElement: validation,
  11943. properties: {
  11944. constraints: minDash.without(validation.get('constraints'), constraint)
  11945. }
  11946. });
  11947. }
  11948. return jsxRuntime.jsx(propertiesPanel.ListEntry, {
  11949. element: element,
  11950. autoFocusEntry: `[data-entry-id="${id}-constraint-${constraints.length - 1}"] input`,
  11951. id: id,
  11952. label: translate('Constraints'),
  11953. items: constraints,
  11954. component: Constraint,
  11955. onAdd: addConstraint,
  11956. onRemove: removeConstraint
  11957. });
  11958. }
  11959. function Property(props) {
  11960. const {
  11961. element,
  11962. id: idPrefix,
  11963. index,
  11964. item: property,
  11965. open
  11966. } = props;
  11967. const translate = useService('translate');
  11968. const id = `${idPrefix}-property-${index}`;
  11969. return jsxRuntime.jsx(propertiesPanel.CollapsibleEntry, {
  11970. id: id,
  11971. element: element,
  11972. entries: FormFieldProperty({
  11973. element,
  11974. idPrefix: id,
  11975. property
  11976. }),
  11977. label: property.get('id') || translate('<empty>'),
  11978. open: open
  11979. });
  11980. }
  11981. function PropertiesList(props) {
  11982. const {
  11983. element,
  11984. formField,
  11985. idPrefix
  11986. } = props;
  11987. const id = `${idPrefix}-formFieldProperties`;
  11988. const bpmnFactory = useService('bpmnFactory');
  11989. const commandStack = useService('commandStack');
  11990. const translate = useService('translate');
  11991. const businessObject = ModelUtil.getBusinessObject(element);
  11992. let properties = formField.get('properties');
  11993. const propertyEntries = properties && properties.get('values') || [];
  11994. function addProperty() {
  11995. const commands = [];
  11996. // (1) ensure properties
  11997. if (!properties) {
  11998. properties = createElement('camunda:Properties', {}, businessObject, bpmnFactory);
  11999. commands.push({
  12000. cmd: 'element.updateModdleProperties',
  12001. context: {
  12002. element,
  12003. moddleElement: formField,
  12004. properties: {
  12005. properties
  12006. }
  12007. }
  12008. });
  12009. }
  12010. // (2) add property
  12011. const property = createElement('camunda:Property', {
  12012. id: undefined,
  12013. value: undefined
  12014. }, properties, bpmnFactory);
  12015. commands.push({
  12016. cmd: 'element.updateModdleProperties',
  12017. context: {
  12018. element,
  12019. moddleElement: properties,
  12020. properties: {
  12021. values: [...properties.get('values'), property]
  12022. }
  12023. }
  12024. });
  12025. // (3) commit updates
  12026. commandStack.execute('properties-panel.multi-command-executor', commands);
  12027. }
  12028. function removeProperty(property) {
  12029. commandStack.execute('element.updateModdleProperties', {
  12030. element,
  12031. moddleElement: properties,
  12032. properties: {
  12033. values: minDash.without(properties.get('values'), property)
  12034. }
  12035. });
  12036. }
  12037. return jsxRuntime.jsx(propertiesPanel.ListEntry, {
  12038. element: element,
  12039. autoFocusEntry: true,
  12040. id: id,
  12041. compareFn: createAlphanumericCompare('id'),
  12042. label: translate('Properties'),
  12043. items: propertyEntries,
  12044. component: Property,
  12045. onAdd: addProperty,
  12046. onRemove: removeProperty
  12047. });
  12048. }
  12049. // helper //////////////////
  12050. function createAlphanumericCompare(field) {
  12051. return function (entry, anotherEntry) {
  12052. const [key = '', anotherKey = ''] = [entry[field], anotherEntry[field]];
  12053. return key === anotherKey ? 0 : key > anotherKey ? 1 : -1;
  12054. };
  12055. }
  12056. function FormDataProps({
  12057. element,
  12058. injector
  12059. }) {
  12060. if (!isFormDataSupported(element)) {
  12061. return;
  12062. }
  12063. const formFields = getFormFieldsList(element) || [];
  12064. const bpmnFactory = injector.get('bpmnFactory'),
  12065. commandStack = injector.get('commandStack');
  12066. const items = formFields.map((formField, index) => {
  12067. const id = element.id + '-formField-' + index;
  12068. return {
  12069. id,
  12070. label: formField.get('id') || '',
  12071. entries: FormField({
  12072. idPrefix: id,
  12073. element,
  12074. formField
  12075. }),
  12076. autoFocusEntry: id + '-formFieldID',
  12077. remove: removeFactory$4({
  12078. commandStack,
  12079. element,
  12080. formField
  12081. })
  12082. };
  12083. });
  12084. return {
  12085. items,
  12086. add: addFactory$3({
  12087. bpmnFactory,
  12088. commandStack,
  12089. element
  12090. }),
  12091. shouldSort: false
  12092. };
  12093. }
  12094. function addFactory$3({
  12095. bpmnFactory,
  12096. commandStack,
  12097. element
  12098. }) {
  12099. return function (event) {
  12100. event.stopPropagation();
  12101. const commands = [];
  12102. // (1) get camunda:FormData
  12103. const formData = getFormData$1(element);
  12104. // (2) create camunda:FormField
  12105. const formField = createElement('camunda:FormField', {}, formData, bpmnFactory);
  12106. // (3) add formField to list
  12107. commands.push({
  12108. cmd: 'element.updateModdleProperties',
  12109. context: {
  12110. element,
  12111. moddleElement: formData,
  12112. properties: {
  12113. fields: [...formData.get('fields'), formField]
  12114. }
  12115. }
  12116. });
  12117. // (4) commit all updates
  12118. commandStack.execute('properties-panel.multi-command-executor', commands);
  12119. };
  12120. }
  12121. function removeFactory$4({
  12122. commandStack,
  12123. element,
  12124. formField
  12125. }) {
  12126. return function (event) {
  12127. event.stopPropagation();
  12128. const formData = getFormData$1(element),
  12129. formFields = getFormFieldsList(element);
  12130. if (!formFields || !formFields.length) {
  12131. return;
  12132. }
  12133. const fields = minDash.without(formData.get('fields'), formField);
  12134. // update formData
  12135. commandStack.execute('element.updateModdleProperties', {
  12136. element,
  12137. moddleElement: formData,
  12138. properties: {
  12139. fields
  12140. }
  12141. });
  12142. };
  12143. }
  12144. // helper ///////////////////////////////
  12145. function isFormDataSupported(element) {
  12146. const formData = getFormData$1(element);
  12147. return (ModelUtil.is(element, 'bpmn:StartEvent') && !ModelUtil.is(element.parent, 'bpmn:SubProcess') || ModelUtil.is(element, 'bpmn:UserTask')) && formData;
  12148. }
  12149. function getFormData$1(element) {
  12150. const bo = ModelUtil.getBusinessObject(element);
  12151. return getExtensionElementsList(bo, 'camunda:FormData')[0];
  12152. }
  12153. function getFormFieldsList(element) {
  12154. const businessObject = ModelUtil.getBusinessObject(element);
  12155. const formData = getFormData$1(businessObject);
  12156. return formData && formData.fields;
  12157. }
  12158. const FORM_KEY_PROPS = {
  12159. 'camunda:formRef': undefined,
  12160. 'camunda:formRefBinding': undefined,
  12161. 'camunda:formRefVersion': undefined
  12162. };
  12163. const FORM_REF_PROPS = {
  12164. 'camunda:formKey': undefined
  12165. };
  12166. function FormTypeProps(props) {
  12167. return [{
  12168. id: 'formType',
  12169. component: FormType,
  12170. isEdited: propertiesPanel.isSelectEntryEdited
  12171. }];
  12172. }
  12173. function FormType(props) {
  12174. const {
  12175. element
  12176. } = props;
  12177. const translate = useService('translate');
  12178. const bpmnFactory = useService('bpmnFactory');
  12179. const businessObject = ModelUtil.getBusinessObject(element);
  12180. const commandStack = useService('commandStack');
  12181. let extensionElements = businessObject.get('extensionElements');
  12182. const getValue = () => {
  12183. if (minDash.isDefined(businessObject.get('camunda:formKey'))) {
  12184. return 'formKey';
  12185. } else if (minDash.isDefined(businessObject.get('camunda:formRef'))) {
  12186. return 'formRef';
  12187. } else if (getFormData(element)) {
  12188. return 'formData';
  12189. }
  12190. return '';
  12191. };
  12192. const setValue = value => {
  12193. const commands = removePropertiesCommands(element);
  12194. if (value === 'formData') {
  12195. // (1) ensure extension elements
  12196. if (!extensionElements) {
  12197. extensionElements = createElement('bpmn:ExtensionElements', {
  12198. values: []
  12199. }, businessObject, bpmnFactory);
  12200. commands.push({
  12201. cmd: 'element.updateModdleProperties',
  12202. context: {
  12203. element,
  12204. moddleElement: businessObject,
  12205. properties: {
  12206. extensionElements
  12207. }
  12208. }
  12209. });
  12210. }
  12211. // (2) create camunda:FormData
  12212. const parent = extensionElements;
  12213. const formData = createElement('camunda:FormData', {
  12214. fields: []
  12215. }, parent, bpmnFactory);
  12216. commands.push({
  12217. cmd: 'element.updateModdleProperties',
  12218. context: {
  12219. element,
  12220. moddleElement: extensionElements,
  12221. properties: {
  12222. values: [...extensionElements.get('values'), formData]
  12223. }
  12224. }
  12225. });
  12226. } else if (value === 'formKey') {
  12227. commands.push({
  12228. cmd: 'element.updateModdleProperties',
  12229. context: {
  12230. element,
  12231. moddleElement: businessObject,
  12232. properties: {
  12233. 'camunda:formKey': ''
  12234. }
  12235. }
  12236. });
  12237. } else if (value === 'formRef') {
  12238. commands.push({
  12239. cmd: 'element.updateModdleProperties',
  12240. context: {
  12241. element,
  12242. moddleElement: businessObject,
  12243. properties: {
  12244. 'camunda:formRef': ''
  12245. }
  12246. }
  12247. });
  12248. }
  12249. commandStack.execute('properties-panel.multi-command-executor', commands);
  12250. };
  12251. const getOptions = () => {
  12252. return [{
  12253. value: '',
  12254. label: translate('<none>')
  12255. }, {
  12256. value: 'formRef',
  12257. label: translate('Camunda Forms')
  12258. }, {
  12259. value: 'formKey',
  12260. label: translate('Embedded or External Task Forms')
  12261. }, {
  12262. value: 'formData',
  12263. label: translate('Generated Task Forms')
  12264. }];
  12265. };
  12266. return propertiesPanel.SelectEntry({
  12267. element,
  12268. id: 'formType',
  12269. label: translate('Type'),
  12270. getValue,
  12271. setValue,
  12272. getOptions
  12273. });
  12274. }
  12275. function getFormData(element) {
  12276. const bo = ModelUtil.getBusinessObject(element);
  12277. return getExtensionElementsList(bo, 'camunda:FormData')[0];
  12278. }
  12279. function removePropertiesCommands(element, commandStack) {
  12280. const businessObject = ModelUtil.getBusinessObject(element);
  12281. const extensionElements = businessObject.get('extensionElements');
  12282. const commands = [];
  12283. // (1) reset formKey and formRef
  12284. commands.push({
  12285. cmd: 'element.updateModdleProperties',
  12286. context: {
  12287. element,
  12288. moddleElement: businessObject,
  12289. properties: {
  12290. ...FORM_KEY_PROPS,
  12291. ...FORM_REF_PROPS
  12292. }
  12293. }
  12294. });
  12295. // (2) remove formData if defined
  12296. if (extensionElements && getFormData(element)) {
  12297. commands.push({
  12298. cmd: 'element.updateModdleProperties',
  12299. context: {
  12300. element,
  12301. moddleElement: extensionElements,
  12302. properties: {
  12303. values: minDash.without(extensionElements.get('values'), getFormData(element))
  12304. }
  12305. }
  12306. });
  12307. }
  12308. return commands;
  12309. }
  12310. function getFormRefBinding(element) {
  12311. const businessObject = ModelUtil.getBusinessObject(element);
  12312. return businessObject.get('camunda:formRefBinding') || 'latest';
  12313. }
  12314. function getFormType(element) {
  12315. const businessObject = ModelUtil.getBusinessObject(element);
  12316. if (minDash.isDefined(businessObject.get('camunda:formKey'))) {
  12317. return 'formKey';
  12318. } else if (minDash.isDefined(businessObject.get('camunda:formRef'))) {
  12319. return 'formRef';
  12320. }
  12321. }
  12322. function isFormSupported(element) {
  12323. return ModelUtil.is(element, 'bpmn:StartEvent') && !ModelUtil.is(element.parent, 'bpmn:SubProcess') || ModelUtil.is(element, 'bpmn:UserTask');
  12324. }
  12325. function FormProps(props) {
  12326. const {
  12327. element
  12328. } = props;
  12329. if (!isFormSupported(element)) {
  12330. return [];
  12331. }
  12332. const formType = getFormType(element),
  12333. bindingType = getFormRefBinding(element);
  12334. // (1) display form type select
  12335. const entries = [...FormTypeProps()];
  12336. // (2) display form properties based on type
  12337. if (formType === 'formKey') {
  12338. entries.push({
  12339. id: 'formKey',
  12340. component: FormKey,
  12341. isEdited: propertiesPanel.isTextFieldEntryEdited
  12342. });
  12343. } else if (formType === 'formRef') {
  12344. entries.push({
  12345. id: 'formRef',
  12346. component: FormRef,
  12347. isEdited: propertiesPanel.isTextFieldEntryEdited
  12348. }, {
  12349. id: 'formRefBinding',
  12350. component: Binding$1,
  12351. isEdited: propertiesPanel.isSelectEntryEdited
  12352. });
  12353. if (bindingType === 'version') {
  12354. entries.push({
  12355. id: 'formRefVersion',
  12356. component: Version$1,
  12357. isEdited: propertiesPanel.isTextFieldEntryEdited
  12358. });
  12359. }
  12360. }
  12361. return entries;
  12362. }
  12363. function FormKey(props) {
  12364. const {
  12365. element
  12366. } = props;
  12367. const debounce = useService('debounceInput');
  12368. const modeling = useService('modeling');
  12369. const translate = useService('translate');
  12370. const businessObject = ModelUtil.getBusinessObject(element);
  12371. const getValue = () => {
  12372. return businessObject.get('camunda:formKey');
  12373. };
  12374. const setValue = value => {
  12375. modeling.updateProperties(element, {
  12376. 'camunda:formKey': minDash.isUndefined(value) ? '' : value
  12377. });
  12378. };
  12379. return propertiesPanel.TextFieldEntry({
  12380. element,
  12381. id: 'formKey',
  12382. label: translate('Form key'),
  12383. getValue,
  12384. setValue,
  12385. debounce
  12386. });
  12387. }
  12388. function FormRef(props) {
  12389. const {
  12390. element
  12391. } = props;
  12392. const debounce = useService('debounceInput');
  12393. const modeling = useService('modeling');
  12394. const translate = useService('translate');
  12395. const businessObject = ModelUtil.getBusinessObject(element);
  12396. const getValue = () => {
  12397. return businessObject.get('camunda:formRef');
  12398. };
  12399. const setValue = value => {
  12400. modeling.updateProperties(element, {
  12401. 'camunda:formRef': minDash.isUndefined(value) ? '' : value
  12402. });
  12403. };
  12404. return propertiesPanel.TextFieldEntry({
  12405. element,
  12406. id: 'formRef',
  12407. label: translate('Form reference'),
  12408. getValue,
  12409. setValue,
  12410. debounce
  12411. });
  12412. }
  12413. function Binding$1(props) {
  12414. const {
  12415. element
  12416. } = props;
  12417. const modeling = useService('modeling');
  12418. const translate = useService('translate');
  12419. const getValue = () => {
  12420. return getFormRefBinding(element);
  12421. };
  12422. const setValue = value => {
  12423. modeling.updateProperties(element, {
  12424. 'camunda:formRefBinding': value
  12425. });
  12426. };
  12427. // Note: default is "latest",
  12428. // cf. https://docs.camunda.org/manual/develop/reference/bpmn20/custom-extensions/extension-attributes/#formrefbinding
  12429. const getOptions = () => {
  12430. const options = [{
  12431. value: 'deployment',
  12432. label: translate('deployment')
  12433. }, {
  12434. value: 'latest',
  12435. label: translate('latest')
  12436. }, {
  12437. value: 'version',
  12438. label: translate('version')
  12439. }];
  12440. return options;
  12441. };
  12442. return propertiesPanel.SelectEntry({
  12443. element,
  12444. id: 'formRefBinding',
  12445. label: translate('Binding'),
  12446. getValue,
  12447. setValue,
  12448. getOptions
  12449. });
  12450. }
  12451. function Version$1(props) {
  12452. const {
  12453. element
  12454. } = props;
  12455. const debounce = useService('debounceInput');
  12456. const modeling = useService('modeling');
  12457. const translate = useService('translate');
  12458. const businessObject = ModelUtil.getBusinessObject(element);
  12459. const getValue = () => {
  12460. return businessObject.get('camunda:formRefVersion');
  12461. };
  12462. const setValue = value => {
  12463. modeling.updateProperties(element, {
  12464. 'camunda:formRefVersion': value
  12465. });
  12466. };
  12467. return propertiesPanel.TextFieldEntry({
  12468. element,
  12469. id: 'formRefVersion',
  12470. label: translate('Version'),
  12471. getValue,
  12472. setValue,
  12473. debounce
  12474. });
  12475. }
  12476. function HistoryCleanupProps(props) {
  12477. const {
  12478. element
  12479. } = props;
  12480. const businessObject = ModelUtil.getBusinessObject(element);
  12481. if (!ModelUtil.is(element, 'bpmn:Process') && !(ModelUtil.is(element, 'bpmn:Participant') && businessObject.get('processRef'))) {
  12482. return [];
  12483. }
  12484. return [{
  12485. id: 'historyTimeToLive',
  12486. component: HistoryTimeToLive,
  12487. isEdited: propertiesPanel.isTextFieldEntryEdited
  12488. }];
  12489. }
  12490. function HistoryTimeToLive(props) {
  12491. const {
  12492. element
  12493. } = props;
  12494. const commandStack = useService('commandStack');
  12495. const translate = useService('translate');
  12496. const debounce = useService('debounceInput');
  12497. const process = getProcess$2(element);
  12498. const getValue = () => {
  12499. return process.get('camunda:historyTimeToLive') || '';
  12500. };
  12501. const setValue = value => {
  12502. commandStack.execute('element.updateModdleProperties', {
  12503. element,
  12504. moddleElement: process,
  12505. properties: {
  12506. 'camunda:historyTimeToLive': value
  12507. }
  12508. });
  12509. };
  12510. return propertiesPanel.TextFieldEntry({
  12511. element,
  12512. id: 'historyTimeToLive',
  12513. label: translate('Time to live'),
  12514. getValue,
  12515. setValue,
  12516. debounce
  12517. });
  12518. }
  12519. // helper //////////////////
  12520. function getProcess$2(element) {
  12521. return ModelUtil.is(element, 'bpmn:Process') ? ModelUtil.getBusinessObject(element) : ModelUtil.getBusinessObject(element).get('processRef');
  12522. }
  12523. function DmnImplementationProps(props) {
  12524. const {
  12525. element
  12526. } = props;
  12527. const entries = [];
  12528. const implementationType = getImplementationType(element);
  12529. const bindingType = getDecisionRefBinding(element);
  12530. if (implementationType !== 'dmn') {
  12531. return entries;
  12532. }
  12533. // (1) decisionRef
  12534. entries.push({
  12535. id: 'decisionRef',
  12536. component: DecisionRef,
  12537. isEdited: propertiesPanel.isTextFieldEntryEdited
  12538. });
  12539. // (2) binding
  12540. entries.push({
  12541. id: 'decisionRefBinding',
  12542. component: Binding,
  12543. isEdited: propertiesPanel.isSelectEntryEdited
  12544. });
  12545. // (3) version
  12546. if (bindingType === 'version') {
  12547. entries.push({
  12548. id: 'decisionRefVersion',
  12549. component: Version,
  12550. isEdited: propertiesPanel.isTextFieldEntryEdited
  12551. });
  12552. }
  12553. // (4) versionTag
  12554. if (bindingType === 'versionTag') {
  12555. entries.push({
  12556. id: 'decisionRefVersionTag',
  12557. component: VersionTag$1,
  12558. isEdited: propertiesPanel.isTextFieldEntryEdited
  12559. });
  12560. }
  12561. // (5) tenantId
  12562. entries.push({
  12563. id: 'decisionRefTenantId',
  12564. component: TenantId,
  12565. isEdited: propertiesPanel.isTextFieldEntryEdited
  12566. });
  12567. // (6) resultVariable
  12568. entries.push({
  12569. id: 'decisionRefResultVariable',
  12570. component: ResultVariable$2,
  12571. isEdited: propertiesPanel.isTextFieldEntryEdited
  12572. });
  12573. // (7) mapDecisionResult
  12574. if (getResultVariable(element)) {
  12575. entries.push({
  12576. id: 'mapDecisionResult',
  12577. component: MapDecisionResult,
  12578. isEdited: propertiesPanel.isSelectEntryEdited
  12579. });
  12580. }
  12581. return entries;
  12582. }
  12583. function DecisionRef(props) {
  12584. const {
  12585. element
  12586. } = props;
  12587. const commandStack = useService('commandStack');
  12588. const translate = useService('translate');
  12589. const debounce = useService('debounceInput');
  12590. const businessObject = ModelUtil.getBusinessObject(element);
  12591. const getValue = () => {
  12592. return businessObject.get('camunda:decisionRef');
  12593. };
  12594. const setValue = value => {
  12595. commandStack.execute('element.updateModdleProperties', {
  12596. element,
  12597. moddleElement: businessObject,
  12598. properties: {
  12599. 'camunda:decisionRef': value || ''
  12600. }
  12601. });
  12602. };
  12603. return propertiesPanel.TextFieldEntry({
  12604. element,
  12605. id: 'decisionRef',
  12606. label: translate('Decision reference'),
  12607. getValue,
  12608. setValue,
  12609. debounce
  12610. });
  12611. }
  12612. function Binding(props) {
  12613. const {
  12614. element
  12615. } = props;
  12616. const commandStack = useService('commandStack');
  12617. const translate = useService('translate');
  12618. const getValue = () => {
  12619. return getDecisionRefBinding(element);
  12620. };
  12621. const setValue = value => {
  12622. const businessObject = ModelUtil.getBusinessObject(element);
  12623. // reset version properties on binding type change
  12624. const updatedProperties = {
  12625. 'camunda:decisionRefVersion': undefined,
  12626. 'camunda:decisionRefVersionTag': undefined,
  12627. 'camunda:decisionRefBinding': value
  12628. };
  12629. commandStack.execute('element.updateModdleProperties', {
  12630. element,
  12631. moddleElement: businessObject,
  12632. properties: updatedProperties
  12633. });
  12634. };
  12635. // Note: default is "latest",
  12636. // cf. https://docs.camunda.org/manual/latest/reference/bpmn20/custom-extensions/extension-attributes/#decisionrefbinding
  12637. const getOptions = () => {
  12638. const options = [{
  12639. value: 'deployment',
  12640. label: translate('deployment')
  12641. }, {
  12642. value: 'latest',
  12643. label: translate('latest')
  12644. }, {
  12645. value: 'version',
  12646. label: translate('version')
  12647. }, {
  12648. value: 'versionTag',
  12649. label: translate('versionTag')
  12650. }];
  12651. return options;
  12652. };
  12653. return propertiesPanel.SelectEntry({
  12654. element,
  12655. id: 'decisionRefBinding',
  12656. label: translate('Binding'),
  12657. getValue,
  12658. setValue,
  12659. getOptions
  12660. });
  12661. }
  12662. function Version(props) {
  12663. const {
  12664. element
  12665. } = props;
  12666. const commandStack = useService('commandStack');
  12667. const translate = useService('translate');
  12668. const debounce = useService('debounceInput');
  12669. const businessObject = ModelUtil.getBusinessObject(element);
  12670. const getValue = () => {
  12671. return businessObject.get('camunda:decisionRefVersion');
  12672. };
  12673. const setValue = value => {
  12674. commandStack.execute('element.updateModdleProperties', {
  12675. element,
  12676. moddleElement: businessObject,
  12677. properties: {
  12678. 'camunda:decisionRefVersion': value
  12679. }
  12680. });
  12681. };
  12682. return propertiesPanel.TextFieldEntry({
  12683. element,
  12684. id: 'decisionRefVersion',
  12685. label: translate('Version'),
  12686. getValue,
  12687. setValue,
  12688. debounce
  12689. });
  12690. }
  12691. function VersionTag$1(props) {
  12692. const {
  12693. element
  12694. } = props;
  12695. const commandStack = useService('commandStack');
  12696. const translate = useService('translate');
  12697. const debounce = useService('debounceInput');
  12698. const businessObject = ModelUtil.getBusinessObject(element);
  12699. const getValue = () => {
  12700. return businessObject.get('camunda:decisionRefVersionTag');
  12701. };
  12702. const setValue = value => {
  12703. commandStack.execute('element.updateModdleProperties', {
  12704. element,
  12705. moddleElement: businessObject,
  12706. properties: {
  12707. 'camunda:decisionRefVersionTag': value
  12708. }
  12709. });
  12710. };
  12711. return propertiesPanel.TextFieldEntry({
  12712. element,
  12713. id: 'decisionRefVersionTag',
  12714. label: translate('Version tag'),
  12715. getValue,
  12716. setValue,
  12717. debounce
  12718. });
  12719. }
  12720. function TenantId(props) {
  12721. const {
  12722. element
  12723. } = props;
  12724. const commandStack = useService('commandStack');
  12725. const translate = useService('translate');
  12726. const debounce = useService('debounceInput');
  12727. const businessObject = ModelUtil.getBusinessObject(element);
  12728. const getValue = () => {
  12729. return businessObject.get('camunda:decisionRefTenantId');
  12730. };
  12731. const setValue = value => {
  12732. commandStack.execute('element.updateModdleProperties', {
  12733. element,
  12734. moddleElement: businessObject,
  12735. properties: {
  12736. 'camunda:decisionRefTenantId': value
  12737. }
  12738. });
  12739. };
  12740. return propertiesPanel.TextFieldEntry({
  12741. element,
  12742. id: 'decisionRefTenantId',
  12743. label: translate('Tenant ID'),
  12744. getValue,
  12745. setValue,
  12746. debounce
  12747. });
  12748. }
  12749. function ResultVariable$2(props) {
  12750. const {
  12751. element
  12752. } = props;
  12753. const commandStack = useService('commandStack');
  12754. const translate = useService('translate');
  12755. const debounce = useService('debounceInput');
  12756. const businessObject = ModelUtil.getBusinessObject(element);
  12757. const getValue = () => {
  12758. return getResultVariable(businessObject);
  12759. };
  12760. // Note: camunda:mapDecisionResult got cleaned up in modeling behavior
  12761. // cf. https://github.com/camunda/camunda-bpmn-js/blob/main/lib/camunda-platform/features/modeling/behavior/UpdateResultVariableBehavior.js
  12762. const setValue = value => {
  12763. commandStack.execute('element.updateModdleProperties', {
  12764. element,
  12765. moddleElement: businessObject,
  12766. properties: {
  12767. 'camunda:resultVariable': value
  12768. }
  12769. });
  12770. };
  12771. return propertiesPanel.TextFieldEntry({
  12772. element,
  12773. id: 'decisionRefResultVariable',
  12774. label: translate('Result variable'),
  12775. getValue,
  12776. setValue,
  12777. debounce
  12778. });
  12779. }
  12780. function MapDecisionResult(props) {
  12781. const {
  12782. element
  12783. } = props;
  12784. const commandStack = useService('commandStack');
  12785. const translate = useService('translate');
  12786. const businessObject = ModelUtil.getBusinessObject(element);
  12787. const getValue = () => {
  12788. return businessObject.get('camunda:mapDecisionResult') || 'resultList';
  12789. };
  12790. const setValue = value => {
  12791. commandStack.execute('element.updateModdleProperties', {
  12792. element,
  12793. moddleElement: businessObject,
  12794. properties: {
  12795. 'camunda:mapDecisionResult': value
  12796. }
  12797. });
  12798. };
  12799. // Note: default is "resultList",
  12800. // cf. https://docs.camunda.org/manual/latest/reference/bpmn20/custom-extensions/extension-attributes/#mapdecisionresult
  12801. const getOptions = () => {
  12802. const options = [{
  12803. value: 'collectEntries',
  12804. label: translate('collectEntries (List<Object>)')
  12805. }, {
  12806. value: 'resultList',
  12807. label: translate('resultList (List<Map<String, Object>>)')
  12808. }, {
  12809. value: 'singleEntry',
  12810. label: translate('singleEntry (TypedValue)')
  12811. }, {
  12812. value: 'singleResult',
  12813. label: translate('singleResult (Map<String, Object>)')
  12814. }];
  12815. return options;
  12816. };
  12817. return propertiesPanel.SelectEntry({
  12818. element,
  12819. id: 'mapDecisionResult',
  12820. label: translate('Map decision result'),
  12821. getValue,
  12822. setValue,
  12823. getOptions
  12824. });
  12825. }
  12826. // helper ////////////////////
  12827. function getDecisionRefBinding(element) {
  12828. const businessObject = ModelUtil.getBusinessObject(element);
  12829. return businessObject.get('camunda:decisionRefBinding') || 'latest';
  12830. }
  12831. function getResultVariable(element) {
  12832. const businessObject = ModelUtil.getBusinessObject(element);
  12833. return businessObject.get('camunda:resultVariable');
  12834. }
  12835. const DELEGATE_PROPS = {
  12836. 'camunda:class': undefined,
  12837. 'camunda:expression': undefined,
  12838. 'camunda:delegateExpression': undefined,
  12839. 'camunda:resultVariable': undefined
  12840. };
  12841. const DMN_CAPABLE_PROPS = {
  12842. 'camunda:decisionRef': undefined,
  12843. 'camunda:decisionRefBinding': 'latest',
  12844. 'camunda:decisionRefVersion': undefined,
  12845. 'camunda:mapDecisionResult': 'resultList',
  12846. 'camunda:decisionRefTenantId': undefined
  12847. };
  12848. const EXTERNAL_CAPABLE_PROPS = {
  12849. 'camunda:type': undefined,
  12850. 'camunda:topic': undefined
  12851. };
  12852. const IMPLEMENTATION_TYPE_NONE_LABEL = '<none>',
  12853. IMPLEMENTATION_TYPE_JAVA_LABEL = 'Java class',
  12854. IMPLEMENTATION_TYPE_EXPRESSION_LABEL = 'Expression',
  12855. IMPLEMENTATION_TYPE_DELEGATE_LABEL = 'Delegate expression',
  12856. IMPLEMENTATION_TYPE_DMN_LABEL = 'DMN',
  12857. IMPLEMENTATION_TYPE_EXTERNAL_LABEL = 'External',
  12858. IMPLEMENTATION_TYPE_CONNECTOR_LABEL = 'Connector';
  12859. function ImplementationTypeProps(props) {
  12860. return [{
  12861. id: 'implementationType',
  12862. component: ImplementationType,
  12863. isEdited: propertiesPanel.isSelectEntryEdited
  12864. }];
  12865. }
  12866. function ImplementationType(props) {
  12867. const {
  12868. element
  12869. } = props;
  12870. const bpmnFactory = useService('bpmnFactory');
  12871. const commandStack = useService('commandStack');
  12872. const translate = useService('translate');
  12873. const getValue = () => {
  12874. return getImplementationType(element) || '';
  12875. };
  12876. const setValue = value => {
  12877. const oldType = getImplementationType(element);
  12878. const businessObject = getServiceTaskLikeBusinessObject(element);
  12879. const commands = [];
  12880. let updatedProperties = DELEGATE_PROPS;
  12881. let extensionElements = businessObject.get('extensionElements');
  12882. // (1) class, expression, delegateExpression
  12883. if (isDelegateType(value)) {
  12884. updatedProperties = {
  12885. ...updatedProperties,
  12886. [value]: isDelegateType(oldType) ? businessObject.get(`camunda:${oldType}`) : ''
  12887. };
  12888. }
  12889. // (2) dmn
  12890. if (isDmnCapable(businessObject)) {
  12891. updatedProperties = {
  12892. ...updatedProperties,
  12893. ...DMN_CAPABLE_PROPS
  12894. };
  12895. if (value === 'dmn') {
  12896. updatedProperties = {
  12897. ...updatedProperties,
  12898. 'camunda:decisionRef': ''
  12899. };
  12900. }
  12901. }
  12902. // (3) external
  12903. // Note: error event definition elements got cleaned up in modeling behavior
  12904. // cf. https://github.com/camunda/camunda-bpmn-js/blob/main/lib/camunda-platform/features/modeling/behavior/DeleteErrorEventDefinitionBehavior.js
  12905. if (isExternalCapable(businessObject)) {
  12906. updatedProperties = {
  12907. ...updatedProperties,
  12908. ...EXTERNAL_CAPABLE_PROPS
  12909. };
  12910. if (value === 'external') {
  12911. updatedProperties = {
  12912. ...updatedProperties,
  12913. 'camunda:type': 'external',
  12914. 'camunda:topic': ''
  12915. };
  12916. }
  12917. }
  12918. // (4) connector
  12919. if (isServiceTaskLike(businessObject)) {
  12920. // (4.1) remove all connectors on type change
  12921. const connectors = getConnectors$1(businessObject);
  12922. if (connectors.length) {
  12923. commands.push({
  12924. cmd: 'element.updateModdleProperties',
  12925. context: {
  12926. element,
  12927. moddleElement: extensionElements,
  12928. properties: {
  12929. values: minDash.without(extensionElements.get('values'), value => connectors.includes(value))
  12930. }
  12931. }
  12932. });
  12933. }
  12934. // (4.2) create connector
  12935. if (value === 'connector') {
  12936. // ensure extension elements
  12937. if (!extensionElements) {
  12938. extensionElements = createElement('bpmn:ExtensionElements', {
  12939. values: []
  12940. }, businessObject, bpmnFactory);
  12941. commands.push(UpdateModdlePropertiesCommand(element, businessObject, {
  12942. extensionElements
  12943. }));
  12944. }
  12945. const connector = createElement('camunda:Connector', {}, extensionElements, bpmnFactory);
  12946. commands.push({
  12947. cmd: 'element.updateModdleProperties',
  12948. context: {
  12949. element,
  12950. moddleElement: extensionElements,
  12951. properties: {
  12952. values: [...extensionElements.get('values'), connector]
  12953. }
  12954. }
  12955. });
  12956. }
  12957. }
  12958. // (5) collect all property updates
  12959. commands.push(UpdateModdlePropertiesCommand(element, businessObject, updatedProperties));
  12960. // (6) commit all updates
  12961. commandStack.execute('properties-panel.multi-command-executor', commands);
  12962. };
  12963. const getOptions = () => {
  12964. const businessObject = getServiceTaskLikeBusinessObject(element);
  12965. const options = [{
  12966. value: '',
  12967. label: translate(IMPLEMENTATION_TYPE_NONE_LABEL)
  12968. }, {
  12969. value: 'class',
  12970. label: translate(IMPLEMENTATION_TYPE_JAVA_LABEL)
  12971. }, {
  12972. value: 'expression',
  12973. label: translate(IMPLEMENTATION_TYPE_EXPRESSION_LABEL)
  12974. }, {
  12975. value: 'delegateExpression',
  12976. label: translate(IMPLEMENTATION_TYPE_DELEGATE_LABEL)
  12977. }];
  12978. if (isDmnCapable(businessObject)) {
  12979. options.push({
  12980. value: 'dmn',
  12981. label: translate(IMPLEMENTATION_TYPE_DMN_LABEL)
  12982. });
  12983. }
  12984. if (isExternalCapable(businessObject)) {
  12985. options.push({
  12986. value: 'external',
  12987. label: translate(IMPLEMENTATION_TYPE_EXTERNAL_LABEL)
  12988. });
  12989. }
  12990. if (isServiceTaskLike(businessObject)) {
  12991. options.push({
  12992. value: 'connector',
  12993. label: translate(IMPLEMENTATION_TYPE_CONNECTOR_LABEL)
  12994. });
  12995. }
  12996. return sortByPriority(options);
  12997. };
  12998. return propertiesPanel.SelectEntry({
  12999. element,
  13000. id: 'implementationType',
  13001. label: translate('Type'),
  13002. getValue,
  13003. setValue,
  13004. getOptions
  13005. });
  13006. }
  13007. // helper ///////////////////////
  13008. function isDelegateType(type) {
  13009. return ['class', 'expression', 'delegateExpression'].includes(type);
  13010. }
  13011. function getConnectors$1(businessObject) {
  13012. return getExtensionElementsList(businessObject, 'camunda:Connector');
  13013. }
  13014. function UpdateModdlePropertiesCommand(element, businessObject, newProperties) {
  13015. return {
  13016. cmd: 'element.updateModdleProperties',
  13017. context: {
  13018. element,
  13019. moddleElement: businessObject,
  13020. properties: newProperties
  13021. }
  13022. };
  13023. }
  13024. function sortByPriority(options) {
  13025. const priorities = {
  13026. [IMPLEMENTATION_TYPE_NONE_LABEL]: 0,
  13027. [IMPLEMENTATION_TYPE_JAVA_LABEL]: 3,
  13028. [IMPLEMENTATION_TYPE_EXPRESSION_LABEL]: 4,
  13029. [IMPLEMENTATION_TYPE_DELEGATE_LABEL]: 5,
  13030. [IMPLEMENTATION_TYPE_DMN_LABEL]: 1,
  13031. [IMPLEMENTATION_TYPE_EXTERNAL_LABEL]: 2,
  13032. [IMPLEMENTATION_TYPE_CONNECTOR_LABEL]: 6
  13033. };
  13034. return minDash.sortBy(options, o => priorities[o.label]);
  13035. }
  13036. function ImplementationProps(props) {
  13037. const {
  13038. element
  13039. } = props;
  13040. if (!getServiceTaskLikeBusinessObject(element)) {
  13041. return [];
  13042. }
  13043. const implementationType = getImplementationType(element);
  13044. // (1) display implementation type select
  13045. const entries = [...ImplementationTypeProps()];
  13046. // (2) display implementation properties based on type
  13047. if (implementationType === 'class') {
  13048. entries.push({
  13049. id: 'javaClass',
  13050. component: JavaClass,
  13051. isEdited: propertiesPanel.isTextFieldEntryEdited
  13052. });
  13053. } else if (implementationType === 'expression') {
  13054. entries.push({
  13055. id: 'expression',
  13056. component: Expression,
  13057. isEdited: propertiesPanel.isTextFieldEntryEdited
  13058. }, {
  13059. id: 'expressionResultVariable',
  13060. component: ResultVariable$1,
  13061. isEdited: propertiesPanel.isTextFieldEntryEdited
  13062. });
  13063. } else if (implementationType === 'delegateExpression') {
  13064. entries.push({
  13065. id: 'delegateExpression',
  13066. component: DelegateExpression,
  13067. isEdited: propertiesPanel.isTextFieldEntryEdited
  13068. });
  13069. } else if (implementationType === 'dmn') {
  13070. entries.push(...DmnImplementationProps({
  13071. element
  13072. }));
  13073. } else if (implementationType === 'external') {
  13074. entries.push({
  13075. id: 'externalTopic',
  13076. component: Topic,
  13077. isEdited: propertiesPanel.isTextFieldEntryEdited
  13078. });
  13079. } else if (implementationType === 'connector') {
  13080. entries.push({
  13081. id: 'connectorId',
  13082. component: ConnectorId,
  13083. isEdited: propertiesPanel.isTextFieldEntryEdited
  13084. });
  13085. }
  13086. return entries;
  13087. }
  13088. function JavaClass(props) {
  13089. const {
  13090. element,
  13091. businessObject = getServiceTaskLikeBusinessObject(element),
  13092. id = 'javaClass'
  13093. } = props;
  13094. const commandStack = useService('commandStack');
  13095. const translate = useService('translate');
  13096. const debounce = useService('debounceInput');
  13097. const getValue = () => {
  13098. return businessObject.get('camunda:class');
  13099. };
  13100. const setValue = value => {
  13101. commandStack.execute('element.updateModdleProperties', {
  13102. element,
  13103. moddleElement: businessObject,
  13104. properties: {
  13105. 'camunda:class': value || ''
  13106. }
  13107. });
  13108. };
  13109. return propertiesPanel.TextFieldEntry({
  13110. element,
  13111. id,
  13112. label: translate('Java class'),
  13113. getValue,
  13114. setValue,
  13115. debounce
  13116. });
  13117. }
  13118. function Expression(props) {
  13119. const {
  13120. element,
  13121. businessObject = getServiceTaskLikeBusinessObject(element),
  13122. id = 'expression'
  13123. } = props;
  13124. const commandStack = useService('commandStack');
  13125. const translate = useService('translate');
  13126. const debounce = useService('debounceInput');
  13127. const getValue = () => {
  13128. return businessObject.get('camunda:expression');
  13129. };
  13130. const setValue = value => {
  13131. commandStack.execute('element.updateModdleProperties', {
  13132. element,
  13133. moddleElement: businessObject,
  13134. properties: {
  13135. 'camunda:expression': value || ''
  13136. }
  13137. });
  13138. };
  13139. return propertiesPanel.TextFieldEntry({
  13140. element,
  13141. id,
  13142. label: translate('Expression'),
  13143. getValue,
  13144. setValue,
  13145. debounce
  13146. });
  13147. }
  13148. function ResultVariable$1(props) {
  13149. const {
  13150. element
  13151. } = props;
  13152. const commandStack = useService('commandStack');
  13153. const translate = useService('translate');
  13154. const debounce = useService('debounceInput');
  13155. const businessObject = getServiceTaskLikeBusinessObject(element);
  13156. const getValue = () => {
  13157. return businessObject.get('camunda:resultVariable');
  13158. };
  13159. const setValue = value => {
  13160. commandStack.execute('element.updateModdleProperties', {
  13161. element,
  13162. moddleElement: businessObject,
  13163. properties: {
  13164. 'camunda:resultVariable': value
  13165. }
  13166. });
  13167. };
  13168. return propertiesPanel.TextFieldEntry({
  13169. element,
  13170. id: 'expressionResultVariable',
  13171. label: translate('Result variable'),
  13172. getValue,
  13173. setValue,
  13174. debounce
  13175. });
  13176. }
  13177. function DelegateExpression(props) {
  13178. const {
  13179. element,
  13180. businessObject = getServiceTaskLikeBusinessObject(element),
  13181. id = 'delegateExpression'
  13182. } = props;
  13183. const commandStack = useService('commandStack');
  13184. const translate = useService('translate');
  13185. const debounce = useService('debounceInput');
  13186. const getValue = () => {
  13187. return businessObject.get('camunda:delegateExpression');
  13188. };
  13189. const setValue = value => {
  13190. commandStack.execute('element.updateModdleProperties', {
  13191. element,
  13192. moddleElement: businessObject,
  13193. properties: {
  13194. 'camunda:delegateExpression': value || ''
  13195. }
  13196. });
  13197. };
  13198. return propertiesPanel.TextFieldEntry({
  13199. element,
  13200. id,
  13201. label: translate('Delegate expression'),
  13202. getValue,
  13203. setValue,
  13204. debounce
  13205. });
  13206. }
  13207. function Topic(props) {
  13208. const {
  13209. element
  13210. } = props;
  13211. const commandStack = useService('commandStack');
  13212. const translate = useService('translate');
  13213. const debounce = useService('debounceInput');
  13214. const businessObject = getServiceTaskLikeBusinessObject(element);
  13215. const getValue = () => {
  13216. return businessObject.get('camunda:topic');
  13217. };
  13218. const setValue = value => {
  13219. commandStack.execute('element.updateModdleProperties', {
  13220. element,
  13221. moddleElement: businessObject,
  13222. properties: {
  13223. 'camunda:topic': value
  13224. }
  13225. });
  13226. };
  13227. return propertiesPanel.TextFieldEntry({
  13228. element,
  13229. id: 'externalTopic',
  13230. label: translate('Topic'),
  13231. getValue,
  13232. setValue,
  13233. debounce
  13234. });
  13235. }
  13236. function ConnectorId(props) {
  13237. const {
  13238. element
  13239. } = props;
  13240. const commandStack = useService('commandStack');
  13241. const translate = useService('translate');
  13242. const debounce = useService('debounceInput');
  13243. const connector = getConnector(element);
  13244. const getValue = () => {
  13245. return connector.get('camunda:connectorId');
  13246. };
  13247. const setValue = value => {
  13248. commandStack.execute('element.updateModdleProperties', {
  13249. element,
  13250. moddleElement: connector,
  13251. properties: {
  13252. 'camunda:connectorId': value
  13253. }
  13254. });
  13255. };
  13256. return propertiesPanel.TextFieldEntry({
  13257. element,
  13258. id: 'connectorId',
  13259. label: translate('Connector ID'),
  13260. getValue,
  13261. setValue,
  13262. debounce
  13263. });
  13264. }
  13265. // helper //////////////////
  13266. function getConnectors(businessObject) {
  13267. return getExtensionElementsList(businessObject, 'camunda:Connector');
  13268. }
  13269. function getConnector(element) {
  13270. const businessObject = getServiceTaskLikeBusinessObject(element);
  13271. const connectors = getConnectors(businessObject);
  13272. return connectors[0];
  13273. }
  13274. function InitiatorProps(props) {
  13275. const {
  13276. element
  13277. } = props;
  13278. if (!isInitiator(element)) {
  13279. return [];
  13280. }
  13281. return [{
  13282. id: 'initiator',
  13283. component: Initiator,
  13284. isEdited: propertiesPanel.isTextFieldEntryEdited
  13285. }];
  13286. }
  13287. function Initiator(props) {
  13288. const {
  13289. element
  13290. } = props;
  13291. const commandStack = useService('commandStack');
  13292. const translate = useService('translate');
  13293. const debounce = useService('debounceInput');
  13294. const businessObject = ModelUtil.getBusinessObject(element);
  13295. const getValue = () => {
  13296. return businessObject.get('camunda:initiator');
  13297. };
  13298. const setValue = value => {
  13299. commandStack.execute('element.updateModdleProperties', {
  13300. element,
  13301. moddleElement: businessObject,
  13302. properties: {
  13303. 'camunda:initiator': value
  13304. }
  13305. });
  13306. };
  13307. return propertiesPanel.TextFieldEntry({
  13308. element,
  13309. id: 'initiator',
  13310. label: translate('Initiator'),
  13311. getValue,
  13312. setValue,
  13313. debounce
  13314. });
  13315. }
  13316. // helper ///////////////////
  13317. function isInitiator(element) {
  13318. return ModelUtil.is(element, 'camunda:Initiator') && !ModelUtil.is(element.parent, 'bpmn:SubProcess');
  13319. }
  13320. /**
  13321. * Cf. https://docs.camunda.org/manual/7.15/reference/bpmn20/subprocesses/call-activity/#passing-variables
  13322. */
  13323. function InMappingPropagationProps(props) {
  13324. const {
  13325. element
  13326. } = props;
  13327. if (!areInMappingsSupported$1(element)) {
  13328. return [];
  13329. }
  13330. const entries = [{
  13331. id: 'inMapping-propagation',
  13332. component: PropagateAll$1,
  13333. isEdited: propertiesPanel.isCheckboxEntryEdited
  13334. }];
  13335. if (isPropagateAll$1(element)) {
  13336. entries.push({
  13337. id: 'inMapping-propagation-local',
  13338. component: Local$2,
  13339. isEdited: propertiesPanel.isCheckboxEntryEdited
  13340. });
  13341. }
  13342. return entries;
  13343. }
  13344. function PropagateAll$1(props) {
  13345. const {
  13346. element
  13347. } = props;
  13348. const commandStack = useService('commandStack');
  13349. const bpmnFactory = useService('bpmnFactory');
  13350. const translate = useService('translate');
  13351. const getValue = () => {
  13352. return isPropagateAll$1(element);
  13353. };
  13354. const setValue = value => {
  13355. if (value) {
  13356. addInMapping();
  13357. } else {
  13358. removeInMapping();
  13359. }
  13360. };
  13361. function addInMapping() {
  13362. const businessObject = getSignalEventDefinition$1(element) || ModelUtil.getBusinessObject(element);
  13363. const mapping = createElement('camunda:In', {
  13364. variables: 'all'
  13365. }, null, bpmnFactory);
  13366. addExtensionElements(element, businessObject, mapping, bpmnFactory, commandStack);
  13367. }
  13368. function removeInMapping() {
  13369. const businessObject = getSignalEventDefinition$1(element) || ModelUtil.getBusinessObject(element);
  13370. const mappings = findRelevantInMappings(element);
  13371. removeExtensionElements(element, businessObject, mappings, commandStack);
  13372. }
  13373. return propertiesPanel.CheckboxEntry({
  13374. id: 'inMapping-propagation',
  13375. label: translate('Propagate all variables'),
  13376. getValue,
  13377. setValue
  13378. });
  13379. }
  13380. function Local$2(props) {
  13381. const {
  13382. element
  13383. } = props;
  13384. const commandStack = useService('commandStack');
  13385. const translate = useService('translate');
  13386. const mapping = findRelevantInMappings(element)[0];
  13387. const getValue = () => {
  13388. return mapping.get('camunda:local');
  13389. };
  13390. const setValue = value => {
  13391. commandStack.execute('element.updateModdleProperties', {
  13392. element,
  13393. moddleElement: mapping,
  13394. properties: {
  13395. local: value
  13396. }
  13397. });
  13398. };
  13399. return propertiesPanel.CheckboxEntry({
  13400. element,
  13401. id: 'inMapping-propagation-local',
  13402. label: translate('Local'),
  13403. getValue,
  13404. setValue
  13405. });
  13406. }
  13407. // helper //////////////////////////
  13408. function areInMappingsSupported$1(element) {
  13409. const signalEventDefinition = getSignalEventDefinition$1(element);
  13410. if (signalEventDefinition) {
  13411. return ModelingUtil.isAny(element, ['bpmn:IntermediateThrowEvent', 'bpmn:EndEvent']);
  13412. }
  13413. return ModelUtil.is(element, 'bpmn:CallActivity');
  13414. }
  13415. function getInMappings$1(element) {
  13416. const businessObject = ModelUtil.getBusinessObject(element);
  13417. const signalEventDefinition = getSignalEventDefinition$1(businessObject);
  13418. return getExtensionElementsList(signalEventDefinition || businessObject, 'camunda:In');
  13419. }
  13420. function findRelevantInMappings(element) {
  13421. const inMappings = getInMappings$1(element);
  13422. return minDash.filter(inMappings, function (mapping) {
  13423. const variables = mapping.get('variables');
  13424. return variables && variables === 'all';
  13425. });
  13426. }
  13427. function isPropagateAll$1(element) {
  13428. const mappings = findRelevantInMappings(element);
  13429. return !!mappings.length;
  13430. }
  13431. const DEFAULT_PROPS$1 = {
  13432. 'source': undefined,
  13433. 'sourceExpression': undefined
  13434. };
  13435. function InOutMapping(props) {
  13436. const {
  13437. idPrefix,
  13438. mapping
  13439. } = props;
  13440. const type = getInOutType(mapping);
  13441. const entries = [];
  13442. // (1) Type
  13443. entries.push({
  13444. id: idPrefix + '-type',
  13445. component: Type,
  13446. idPrefix,
  13447. mapping
  13448. });
  13449. // (2) Source
  13450. if (type === 'source') {
  13451. entries.push({
  13452. id: idPrefix + '-source',
  13453. component: Source,
  13454. idPrefix,
  13455. mapping
  13456. });
  13457. }
  13458. // (3) Source expression
  13459. if (type === 'sourceExpression') {
  13460. entries.push({
  13461. id: idPrefix + '-sourceExpression',
  13462. component: SourceExpression,
  13463. idPrefix,
  13464. mapping
  13465. });
  13466. }
  13467. // (4) Target
  13468. entries.push({
  13469. id: idPrefix + '-target',
  13470. component: Target,
  13471. idPrefix,
  13472. mapping
  13473. });
  13474. // (5) Local
  13475. entries.push({
  13476. id: idPrefix + '-local',
  13477. component: Local$1,
  13478. idPrefix,
  13479. mapping
  13480. });
  13481. return entries;
  13482. }
  13483. function Type(props) {
  13484. const {
  13485. idPrefix,
  13486. element,
  13487. mapping
  13488. } = props;
  13489. const commandStack = useService('commandStack');
  13490. const translate = useService('translate');
  13491. const getValue = mapping => {
  13492. return getInOutType(mapping);
  13493. };
  13494. const setValue = value => {
  13495. const properties = {
  13496. ...DEFAULT_PROPS$1,
  13497. [value]: ''
  13498. };
  13499. commandStack.execute('element.updateModdleProperties', {
  13500. element,
  13501. moddleElement: mapping,
  13502. properties
  13503. });
  13504. };
  13505. const getOptions = () => {
  13506. const options = [{
  13507. label: translate('Source'),
  13508. value: 'source'
  13509. }, {
  13510. label: translate('Source expression'),
  13511. value: 'sourceExpression'
  13512. }];
  13513. return options;
  13514. };
  13515. return propertiesPanel.SelectEntry({
  13516. element: mapping,
  13517. id: idPrefix + '-type',
  13518. label: translate('Type'),
  13519. getValue,
  13520. setValue,
  13521. getOptions
  13522. });
  13523. }
  13524. function Source(props) {
  13525. const {
  13526. idPrefix,
  13527. element,
  13528. mapping
  13529. } = props;
  13530. const commandStack = useService('commandStack');
  13531. const translate = useService('translate');
  13532. const debounce = useService('debounceInput');
  13533. const setValue = value => {
  13534. commandStack.execute('element.updateModdleProperties', {
  13535. element,
  13536. moddleElement: mapping,
  13537. properties: {
  13538. source: value
  13539. }
  13540. });
  13541. };
  13542. const getValue = mapping => {
  13543. return mapping.get('camunda:source');
  13544. };
  13545. return propertiesPanel.TextFieldEntry({
  13546. element: mapping,
  13547. id: idPrefix + '-source',
  13548. label: translate('Source'),
  13549. getValue,
  13550. setValue,
  13551. debounce
  13552. });
  13553. }
  13554. function SourceExpression(props) {
  13555. const {
  13556. idPrefix,
  13557. element,
  13558. mapping
  13559. } = props;
  13560. const commandStack = useService('commandStack');
  13561. const translate = useService('translate');
  13562. const debounce = useService('debounceInput');
  13563. const setValue = value => {
  13564. commandStack.execute('element.updateModdleProperties', {
  13565. element,
  13566. moddleElement: mapping,
  13567. properties: {
  13568. sourceExpression: value
  13569. }
  13570. });
  13571. };
  13572. const getValue = mapping => {
  13573. return mapping.get('camunda:sourceExpression');
  13574. };
  13575. return propertiesPanel.TextFieldEntry({
  13576. element: mapping,
  13577. id: idPrefix + '-sourceExpression',
  13578. label: translate('Source expression'),
  13579. getValue,
  13580. setValue,
  13581. debounce
  13582. });
  13583. }
  13584. function Target(props) {
  13585. const {
  13586. idPrefix,
  13587. element,
  13588. mapping
  13589. } = props;
  13590. const commandStack = useService('commandStack');
  13591. const translate = useService('translate');
  13592. const debounce = useService('debounceInput');
  13593. const setValue = value => {
  13594. commandStack.execute('element.updateModdleProperties', {
  13595. element,
  13596. moddleElement: mapping,
  13597. properties: {
  13598. target: value
  13599. }
  13600. });
  13601. };
  13602. const getValue = mapping => {
  13603. return mapping.get('camunda:target');
  13604. };
  13605. return propertiesPanel.TextFieldEntry({
  13606. element: mapping,
  13607. id: idPrefix + '-target',
  13608. label: translate('Target'),
  13609. getValue,
  13610. setValue,
  13611. debounce
  13612. });
  13613. }
  13614. function Local$1(props) {
  13615. const {
  13616. idPrefix,
  13617. element,
  13618. mapping
  13619. } = props;
  13620. const commandStack = useService('commandStack');
  13621. const translate = useService('translate');
  13622. const getValue = () => {
  13623. return mapping.get('camunda:local');
  13624. };
  13625. const setValue = value => {
  13626. commandStack.execute('element.updateModdleProperties', {
  13627. element,
  13628. moddleElement: mapping,
  13629. properties: {
  13630. local: value
  13631. }
  13632. });
  13633. };
  13634. return propertiesPanel.CheckboxEntry({
  13635. element,
  13636. id: idPrefix + '-local',
  13637. label: translate('Local'),
  13638. getValue,
  13639. setValue
  13640. });
  13641. }
  13642. // helper ///////////////////
  13643. function getInOutType(mapping) {
  13644. let inOutType = '';
  13645. if (typeof mapping.source !== 'undefined') {
  13646. inOutType = 'source';
  13647. } else if (typeof mapping.sourceExpression !== 'undefined') {
  13648. inOutType = 'sourceExpression';
  13649. }
  13650. return inOutType;
  13651. }
  13652. /**
  13653. * Cf. https://docs.camunda.org/manual/latest/reference/bpmn20/custom-extensions/extension-elements/#in
  13654. */
  13655. function InMappingProps({
  13656. element,
  13657. injector
  13658. }) {
  13659. if (!areInMappingsSupported(element)) {
  13660. return null;
  13661. }
  13662. const variableMappings = getInMappings(element) || [];
  13663. const bpmnFactory = injector.get('bpmnFactory'),
  13664. commandStack = injector.get('commandStack');
  13665. const items = variableMappings.map((mapping, index) => {
  13666. const id = element.id + '-inMapping-' + index;
  13667. return {
  13668. id,
  13669. label: mapping.get('target') || '',
  13670. entries: InOutMapping({
  13671. idPrefix: id,
  13672. element,
  13673. mapping
  13674. }),
  13675. autoFocusEntry: id + '-target',
  13676. remove: removeFactory$3({
  13677. commandStack,
  13678. element,
  13679. mapping
  13680. })
  13681. };
  13682. });
  13683. return {
  13684. items,
  13685. add: addFactory$2({
  13686. bpmnFactory,
  13687. commandStack,
  13688. element
  13689. })
  13690. };
  13691. }
  13692. function removeFactory$3({
  13693. commandStack,
  13694. element,
  13695. mapping
  13696. }) {
  13697. return function (event) {
  13698. event.stopPropagation();
  13699. const businessObject = getSignalEventDefinition$1(element) || ModelUtil.getBusinessObject(element);
  13700. removeExtensionElements(element, businessObject, mapping, commandStack);
  13701. };
  13702. }
  13703. function addFactory$2({
  13704. bpmnFactory,
  13705. commandStack,
  13706. element
  13707. }) {
  13708. return function (event) {
  13709. event.stopPropagation();
  13710. const businessObject = getSignalEventDefinition$1(element) || ModelUtil.getBusinessObject(element);
  13711. const newMapping = createElement('camunda:In', {
  13712. source: '' // source is the default type
  13713. }, null, bpmnFactory);
  13714. addExtensionElements(element, businessObject, newMapping, bpmnFactory, commandStack);
  13715. };
  13716. }
  13717. // helper ///////////////
  13718. function getInMappings(element) {
  13719. const businessObject = ModelUtil.getBusinessObject(element);
  13720. const signalEventDefinition = getSignalEventDefinition$1(businessObject);
  13721. const mappings = getExtensionElementsList(signalEventDefinition || businessObject, 'camunda:In');
  13722. // only retrieve relevant mappings here, others are handled in other groups
  13723. // mapping.businessKey => camunda-platform/CallAvtivityProps
  13724. // mapping.variables => camunda-platform/InMappingPropagationProps
  13725. return minDash.filter(mappings, function (mapping) {
  13726. return !mapping.businessKey && !(mapping.variables && mapping.variables === 'all');
  13727. });
  13728. }
  13729. function areInMappingsSupported(element) {
  13730. const signalEventDefinition = getSignalEventDefinition$1(element);
  13731. if (signalEventDefinition) {
  13732. return ModelingUtil.isAny(element, ['bpmn:IntermediateThrowEvent', 'bpmn:EndEvent']);
  13733. }
  13734. return ModelUtil.is(element, 'bpmn:CallActivity');
  13735. }
  13736. function InputProps(props) {
  13737. const {
  13738. element,
  13739. injector
  13740. } = props;
  13741. if (!areInputParametersSupported(element)) {
  13742. return null;
  13743. }
  13744. const inputParameters = getInputParameters(element) || [];
  13745. const bpmnFactory = injector.get('bpmnFactory'),
  13746. commandStack = injector.get('commandStack');
  13747. const items = inputParameters.map((parameter, index) => {
  13748. const id = element.id + '-inputParameter-' + index;
  13749. return {
  13750. id,
  13751. label: parameter.get('name') || '',
  13752. entries: InputOutputParameter({
  13753. idPrefix: id,
  13754. element,
  13755. parameter
  13756. }),
  13757. autoFocusEntry: id + '-name',
  13758. remove: removeFactory$2({
  13759. element,
  13760. commandStack,
  13761. parameter
  13762. })
  13763. };
  13764. });
  13765. function add(event) {
  13766. event.stopPropagation();
  13767. commandStack.execute('properties-panel.multi-command-executor', AddParameterCmd(element, 'camunda:InputParameter', bpmnFactory));
  13768. }
  13769. return {
  13770. items,
  13771. add,
  13772. shouldSort: false
  13773. };
  13774. }
  13775. function removeFactory$2(props) {
  13776. const {
  13777. commandStack,
  13778. element,
  13779. parameter
  13780. } = props;
  13781. return function (event) {
  13782. event.stopPropagation();
  13783. const inputOutput = getInputOutput(element);
  13784. if (!inputOutput) {
  13785. return;
  13786. }
  13787. commandStack.execute('element.updateModdleProperties', {
  13788. element,
  13789. moddleElement: inputOutput,
  13790. properties: {
  13791. inputParameters: minDash.without(inputOutput.get('inputParameters'), parameter)
  13792. }
  13793. });
  13794. };
  13795. }
  13796. function JobExecutionProps(props) {
  13797. const {
  13798. element
  13799. } = props;
  13800. const businessObject = ModelUtil.getBusinessObject(element);
  13801. const entries = [];
  13802. // (1) add retryTimeCycle field for camunda:asyncCapable enabled Elements
  13803. // or TimerEvents
  13804. if (ModelUtil.is(element, 'camunda:AsyncCapable') && isAsync$1(businessObject) || isTimerEvent(element)) {
  13805. entries.push({
  13806. id: 'retryTimeCycle',
  13807. component: RetryTimeCycle,
  13808. isEdited: propertiesPanel.isTextFieldEntryEdited
  13809. });
  13810. }
  13811. // (2) add jobPriority field for camunda:jobPriorized with async enabled
  13812. // or Processes
  13813. // or Processes referred to by participants
  13814. // or TimerEvents
  13815. if (ModelUtil.is(element, 'camunda:JobPriorized') && isAsync$1(businessObject) || ModelUtil.is(element, 'bpmn:Process') || ModelUtil.is(element, 'bpmn:Participant') && businessObject.get('processRef') || isTimerEvent(element)) {
  13816. entries.push({
  13817. id: 'jobPriority',
  13818. component: JobPriority,
  13819. isEdited: propertiesPanel.isTextFieldEntryEdited
  13820. });
  13821. }
  13822. return entries;
  13823. }
  13824. function JobPriority(props) {
  13825. const {
  13826. element
  13827. } = props;
  13828. const commandStack = useService('commandStack'),
  13829. translate = useService('translate'),
  13830. debounce = useService('debounceInput');
  13831. const businessObject = ModelUtil.is(element, 'bpmn:Participant') ? ModelUtil.getBusinessObject(element).get('processRef') : ModelUtil.getBusinessObject(element);
  13832. const getValue = () => {
  13833. return businessObject.get('camunda:jobPriority');
  13834. };
  13835. const setValue = value => {
  13836. commandStack.execute('element.updateModdleProperties', {
  13837. element,
  13838. moddleElement: businessObject,
  13839. properties: {
  13840. 'camunda:jobPriority': value
  13841. }
  13842. });
  13843. };
  13844. return propertiesPanel.TextFieldEntry({
  13845. element,
  13846. id: 'jobPriority',
  13847. label: translate('Priority'),
  13848. getValue,
  13849. setValue,
  13850. debounce
  13851. });
  13852. }
  13853. function RetryTimeCycle(props) {
  13854. const {
  13855. element
  13856. } = props;
  13857. const bpmnFactory = useService('bpmnFactory'),
  13858. commandStack = useService('commandStack'),
  13859. translate = useService('translate'),
  13860. debounce = useService('debounceInput');
  13861. const businessObject = ModelUtil.getBusinessObject(element);
  13862. const getValue = () => {
  13863. const failedJobRetryTimeCycle = getExtensionElementsList(businessObject, 'camunda:FailedJobRetryTimeCycle')[0];
  13864. return failedJobRetryTimeCycle && failedJobRetryTimeCycle.body;
  13865. };
  13866. const setValue = value => {
  13867. const commands = [];
  13868. let extensionElements = businessObject.get('extensionElements');
  13869. // (1) ensure extension elements
  13870. if (!extensionElements) {
  13871. extensionElements = createElement('bpmn:ExtensionElements', {
  13872. values: []
  13873. }, businessObject, bpmnFactory);
  13874. commands.push({
  13875. cmd: 'element.updateModdleProperties',
  13876. context: {
  13877. element,
  13878. moddleElement: businessObject,
  13879. properties: {
  13880. extensionElements
  13881. }
  13882. }
  13883. });
  13884. }
  13885. // (2) ensure failedJobRetryTimeCycle
  13886. let failedJobRetryTimeCycle = getExtensionElementsList(businessObject, 'camunda:FailedJobRetryTimeCycle')[0];
  13887. if (!failedJobRetryTimeCycle) {
  13888. failedJobRetryTimeCycle = createElement('camunda:FailedJobRetryTimeCycle', {}, extensionElements, bpmnFactory);
  13889. commands.push({
  13890. cmd: 'element.updateModdleProperties',
  13891. context: {
  13892. element,
  13893. moddleElement: extensionElements,
  13894. properties: {
  13895. values: [...extensionElements.get('values'), failedJobRetryTimeCycle]
  13896. }
  13897. }
  13898. });
  13899. }
  13900. // (3) update failedJobRetryTimeCycle value
  13901. commands.push({
  13902. cmd: 'element.updateModdleProperties',
  13903. context: {
  13904. element,
  13905. moddleElement: failedJobRetryTimeCycle,
  13906. properties: {
  13907. body: value
  13908. }
  13909. }
  13910. });
  13911. // (4) commit all updates
  13912. commandStack.execute('properties-panel.multi-command-executor', commands);
  13913. };
  13914. return propertiesPanel.TextFieldEntry({
  13915. element,
  13916. id: 'retryTimeCycle',
  13917. label: translate('Retry time cycle'),
  13918. getValue,
  13919. setValue,
  13920. debounce
  13921. });
  13922. }
  13923. // helper //////////////////
  13924. /**
  13925. * @param {ModdleElement} bo
  13926. * @return {boolean} a boolean value
  13927. */
  13928. function isAsyncBefore$1(bo) {
  13929. return !!(bo.get('camunda:asyncBefore') || bo.get('camunda:async'));
  13930. }
  13931. /**
  13932. * @param {ModdleElement} bo
  13933. * @return {boolean}
  13934. */
  13935. function isAsyncAfter$1(bo) {
  13936. return !!bo.get('camunda:asyncAfter');
  13937. }
  13938. /**
  13939. * isAsync - returns true if the attribute 'camunda:asyncAfter' or 'camunda:asyncBefore'
  13940. * is set to true.
  13941. *
  13942. * @param {ModdleElement} bo
  13943. * @return {boolean}
  13944. */
  13945. function isAsync$1(bo) {
  13946. return isAsyncAfter$1(bo) || isAsyncBefore$1(bo);
  13947. }
  13948. /**
  13949. * isTimerEvent - returns true if the element is a bpmn:Event with a timerEventDefinition
  13950. *
  13951. * @param {ModdleElement} element
  13952. * @return {boolean}
  13953. */
  13954. function isTimerEvent(element) {
  13955. return ModelUtil.is(element, 'bpmn:Event') && getTimerEventDefinition$1(element);
  13956. }
  13957. /**
  13958. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  13959. */
  13960. /**
  13961. * @returns {Array<Entry>} entries
  13962. */
  13963. function MultiInstanceProps(props) {
  13964. const {
  13965. element
  13966. } = props;
  13967. const loopCharacteristics = getLoopCharacteristics(element);
  13968. let entries = props.entries || [];
  13969. if (!isMultiInstanceSupported(element)) {
  13970. return entries;
  13971. }
  13972. entries.push({
  13973. id: 'collection',
  13974. component: Collection,
  13975. isEdited: propertiesPanel.isTextFieldEntryEdited
  13976. }, {
  13977. id: 'elementVariable',
  13978. component: ElementVariable,
  13979. isEdited: propertiesPanel.isTextFieldEntryEdited
  13980. }, {
  13981. id: 'multiInstanceAsynchronousBefore',
  13982. component: MultiInstanceAsynchronousBefore,
  13983. isEdited: propertiesPanel.isCheckboxEntryEdited
  13984. }, {
  13985. id: 'multiInstanceAsynchronousAfter',
  13986. component: MultiInstanceAsynchronousAfter,
  13987. isEdited: propertiesPanel.isCheckboxEntryEdited
  13988. });
  13989. if (isAsync(loopCharacteristics)) {
  13990. entries.push({
  13991. id: 'multiInstanceExclusive',
  13992. component: MultiInstanceExclusive,
  13993. isEdited: checkboxIsEditedInverted
  13994. }, {
  13995. id: 'multiInstanceRetryTimeCycle',
  13996. component: MultiInstanceRetryTimeCycle,
  13997. isEdited: propertiesPanel.isTextFieldEntryEdited
  13998. });
  13999. }
  14000. return entries;
  14001. }
  14002. function Collection(props) {
  14003. const {
  14004. element
  14005. } = props;
  14006. const debounce = useService('debounceInput');
  14007. const commandStack = useService('commandStack');
  14008. const translate = useService('translate');
  14009. const loopCharacteristics = getLoopCharacteristics(element);
  14010. const getValue = () => {
  14011. return getCollection(element);
  14012. };
  14013. const setValue = value => {
  14014. return commandStack.execute('element.updateModdleProperties', {
  14015. element,
  14016. moddleElement: loopCharacteristics,
  14017. properties: {
  14018. 'camunda:collection': value
  14019. }
  14020. });
  14021. };
  14022. return propertiesPanel.TextFieldEntry({
  14023. element,
  14024. id: 'collection',
  14025. label: translate('Collection'),
  14026. getValue,
  14027. setValue,
  14028. debounce
  14029. });
  14030. }
  14031. function ElementVariable(props) {
  14032. const {
  14033. element
  14034. } = props;
  14035. const debounce = useService('debounceInput');
  14036. const commandStack = useService('commandStack');
  14037. const translate = useService('translate');
  14038. const loopCharacteristics = getLoopCharacteristics(element);
  14039. const getValue = () => {
  14040. return getElementVariable(element);
  14041. };
  14042. const setValue = value => {
  14043. return commandStack.execute('element.updateModdleProperties', {
  14044. element,
  14045. moddleElement: loopCharacteristics,
  14046. properties: {
  14047. 'camunda:elementVariable': value
  14048. }
  14049. });
  14050. };
  14051. return propertiesPanel.TextFieldEntry({
  14052. element,
  14053. id: 'elementVariable',
  14054. label: translate('Element variable'),
  14055. getValue,
  14056. setValue,
  14057. debounce
  14058. });
  14059. }
  14060. function MultiInstanceAsynchronousBefore(props) {
  14061. const {
  14062. element
  14063. } = props;
  14064. const commandStack = useService('commandStack');
  14065. const translate = useService('translate');
  14066. const loopCharacteristics = getLoopCharacteristics(element);
  14067. const getValue = () => {
  14068. return isAsyncBefore(loopCharacteristics);
  14069. };
  14070. const setValue = value => {
  14071. // overwrite the legacy `async` property, we will use the more explicit `asyncBefore`
  14072. const properties = {
  14073. 'camunda:asyncBefore': value,
  14074. 'camunda:async': undefined
  14075. };
  14076. commandStack.execute('element.updateModdleProperties', {
  14077. element,
  14078. moddleElement: loopCharacteristics,
  14079. properties
  14080. });
  14081. };
  14082. return propertiesPanel.CheckboxEntry({
  14083. element,
  14084. id: 'multiInstanceAsynchronousBefore',
  14085. label: translate('Asynchronous before'),
  14086. getValue,
  14087. setValue
  14088. });
  14089. }
  14090. function MultiInstanceAsynchronousAfter(props) {
  14091. const {
  14092. element
  14093. } = props;
  14094. const commandStack = useService('commandStack');
  14095. const translate = useService('translate');
  14096. const loopCharacteristics = getLoopCharacteristics(element);
  14097. const getValue = () => {
  14098. return isAsyncAfter(loopCharacteristics);
  14099. };
  14100. const setValue = value => {
  14101. commandStack.execute('element.updateModdleProperties', {
  14102. element,
  14103. moddleElement: loopCharacteristics,
  14104. properties: {
  14105. 'camunda:asyncAfter': value
  14106. }
  14107. });
  14108. };
  14109. return propertiesPanel.CheckboxEntry({
  14110. element,
  14111. id: 'multiInstanceAsynchronousAfter',
  14112. label: translate('Asynchronous after'),
  14113. getValue,
  14114. setValue
  14115. });
  14116. }
  14117. function MultiInstanceExclusive(props) {
  14118. const {
  14119. element
  14120. } = props;
  14121. const commandStack = useService('commandStack'),
  14122. translate = useService('translate');
  14123. const loopCharacteristics = getLoopCharacteristics(element);
  14124. const getValue = () => {
  14125. return isExclusive(loopCharacteristics);
  14126. };
  14127. const setValue = value => {
  14128. commandStack.execute('element.updateModdleProperties', {
  14129. element,
  14130. moddleElement: loopCharacteristics,
  14131. properties: {
  14132. 'camunda:exclusive': value
  14133. }
  14134. });
  14135. };
  14136. return propertiesPanel.CheckboxEntry({
  14137. element,
  14138. id: 'multiInstanceExclusive',
  14139. label: translate('Exclusive'),
  14140. getValue,
  14141. setValue
  14142. });
  14143. }
  14144. function MultiInstanceRetryTimeCycle(props) {
  14145. const {
  14146. element
  14147. } = props;
  14148. const bpmnFactory = useService('bpmnFactory'),
  14149. commandStack = useService('commandStack'),
  14150. translate = useService('translate'),
  14151. debounce = useService('debounceInput');
  14152. const loopCharacteristics = getLoopCharacteristics(element);
  14153. const getValue = () => {
  14154. const failedJobRetryTimeCycle = getExtensionElementsList(loopCharacteristics, 'camunda:FailedJobRetryTimeCycle')[0];
  14155. return failedJobRetryTimeCycle && failedJobRetryTimeCycle.body;
  14156. };
  14157. const setValue = value => {
  14158. const commands = [];
  14159. let extensionElements = loopCharacteristics.get('extensionElements');
  14160. // (1) ensure extension elements
  14161. if (!extensionElements) {
  14162. extensionElements = createElement('bpmn:ExtensionElements', {
  14163. values: []
  14164. }, loopCharacteristics, bpmnFactory);
  14165. commands.push({
  14166. cmd: 'element.updateModdleProperties',
  14167. context: {
  14168. element,
  14169. moddleElement: loopCharacteristics,
  14170. properties: {
  14171. extensionElements
  14172. }
  14173. }
  14174. });
  14175. }
  14176. // (2) ensure failedJobRetryTimeCycle
  14177. let failedJobRetryTimeCycle = getExtensionElementsList(loopCharacteristics, 'camunda:FailedJobRetryTimeCycle')[0];
  14178. if (!failedJobRetryTimeCycle) {
  14179. failedJobRetryTimeCycle = createElement('camunda:FailedJobRetryTimeCycle', {}, extensionElements, bpmnFactory);
  14180. commands.push({
  14181. cmd: 'element.updateModdleProperties',
  14182. context: {
  14183. element: loopCharacteristics,
  14184. moddleElement: extensionElements,
  14185. properties: {
  14186. values: [...extensionElements.get('values'), failedJobRetryTimeCycle]
  14187. }
  14188. }
  14189. });
  14190. }
  14191. // (3) update failedJobRetryTimeCycle value
  14192. commands.push({
  14193. cmd: 'element.updateModdleProperties',
  14194. context: {
  14195. element,
  14196. moddleElement: failedJobRetryTimeCycle,
  14197. properties: {
  14198. body: value
  14199. }
  14200. }
  14201. });
  14202. // (4) commit all updates
  14203. commandStack.execute('properties-panel.multi-command-executor', commands);
  14204. };
  14205. return propertiesPanel.TextFieldEntry({
  14206. element,
  14207. id: 'multiInstanceRetryTimeCycle',
  14208. label: translate('Retry time cycle'),
  14209. getValue,
  14210. setValue,
  14211. debounce
  14212. });
  14213. }
  14214. // helper ////////////////////////////
  14215. // generic ///////////////////////////
  14216. /**
  14217. * isMultiInstanceSupported - check whether given element supports camunda specific props
  14218. * for multiInstance (ref. <camunda:Cllectable>).
  14219. *
  14220. * @param {djs.model.Base} element
  14221. * @return {boolean}
  14222. */
  14223. function isMultiInstanceSupported(element) {
  14224. const loopCharacteristics = getLoopCharacteristics(element);
  14225. return !!loopCharacteristics && ModelUtil.is(loopCharacteristics, 'camunda:Collectable');
  14226. }
  14227. /**
  14228. * getProperty - get a property value of the loop characteristics.
  14229. *
  14230. * @param {djs.model.Base} element
  14231. * @param {string} propertyName
  14232. *
  14233. * @return {any} the property value
  14234. */
  14235. function getProperty(element, propertyName) {
  14236. var loopCharacteristics = getLoopCharacteristics(element);
  14237. return loopCharacteristics && loopCharacteristics.get(propertyName);
  14238. }
  14239. /**
  14240. * getLoopCharacteristics - get loopCharacteristics of a given element.
  14241. *
  14242. * @param {djs.model.Base} element
  14243. * @return {ModdleElement<bpmn:MultiInstanceLoopCharacteristics> | undefined}
  14244. */
  14245. function getLoopCharacteristics(element) {
  14246. const bo = ModelUtil.getBusinessObject(element);
  14247. return bo.loopCharacteristics;
  14248. }
  14249. // collection
  14250. /**
  14251. * getCollection - get the 'camunda:collection' attribute value of the loop characteristics.
  14252. *
  14253. * @param {djs.model.Base} element
  14254. *
  14255. * @return {string} the 'camunda:collection' value
  14256. */
  14257. function getCollection(element) {
  14258. return getProperty(element, 'camunda:collection');
  14259. }
  14260. // elementVariable
  14261. /**
  14262. * getElementVariable - get the 'camunda:elementVariable' attribute value of the loop characteristics.
  14263. *
  14264. * @param {djs.model.Base} element
  14265. *
  14266. * @return {string} the 'camunda:elementVariable' value
  14267. */
  14268. function getElementVariable(element) {
  14269. return getProperty(element, 'camunda:elementVariable');
  14270. }
  14271. // asyncBefore asyncAfter
  14272. /**
  14273. * Returns true if the attribute 'camunda:asyncBefore' is set
  14274. * to true.
  14275. *
  14276. * @param {ModdleElement} bo
  14277. *
  14278. * @return {boolean} a boolean value
  14279. */
  14280. function isAsyncBefore(bo) {
  14281. return !!(bo.get('camunda:asyncBefore') || bo.get('camunda:async'));
  14282. }
  14283. /**
  14284. * Returns true if the attribute 'camunda:asyncAfter' is set
  14285. * to true.
  14286. *
  14287. * @param {ModdleElement} bo
  14288. *
  14289. * @return {boolean} a boolean value
  14290. */
  14291. function isAsyncAfter(bo) {
  14292. return !!bo.get('camunda:asyncAfter');
  14293. }
  14294. /**
  14295. * Returns true if the attribute 'camunda:exclusive' is set
  14296. * to true.
  14297. *
  14298. * @param {ModdleElement} bo
  14299. *
  14300. * @return {boolean} a boolean value
  14301. */
  14302. function isExclusive(bo) {
  14303. return !!bo.get('camunda:exclusive');
  14304. }
  14305. /**
  14306. * isAsync - returns true if the attribute 'camunda:asyncAfter' or 'camunda:asyncBefore'
  14307. * is set to true.
  14308. *
  14309. * @param {ModdleElement} bo
  14310. * @return {boolean}
  14311. */
  14312. function isAsync(bo) {
  14313. return isAsyncAfter(bo) || isAsyncBefore(bo);
  14314. }
  14315. // Checkbox
  14316. function checkboxIsEditedInverted(node) {
  14317. return node && !node.checked;
  14318. }
  14319. /**
  14320. * Cf. https://docs.camunda.org/manual/7.15/reference/bpmn20/subprocesses/call-activity/#passing-variables
  14321. */
  14322. function OutMappingPropagationProps(props) {
  14323. const {
  14324. element
  14325. } = props;
  14326. if (!areOutMappingsSupported$1(element)) {
  14327. return [];
  14328. }
  14329. const entries = [{
  14330. id: 'outMapping-propagation',
  14331. component: PropagateAll,
  14332. isEdited: propertiesPanel.isCheckboxEntryEdited
  14333. }];
  14334. if (isPropagateAll(element)) {
  14335. entries.push({
  14336. id: 'outMapping-propagation-local',
  14337. component: Local,
  14338. isEdited: propertiesPanel.isCheckboxEntryEdited
  14339. });
  14340. }
  14341. return entries;
  14342. }
  14343. function PropagateAll(props) {
  14344. const {
  14345. element
  14346. } = props;
  14347. const commandStack = useService('commandStack');
  14348. const bpmnFactory = useService('bpmnFactory');
  14349. const translate = useService('translate');
  14350. const getValue = () => {
  14351. return isPropagateAll(element);
  14352. };
  14353. const setValue = value => {
  14354. if (value) {
  14355. addOutMapping();
  14356. } else {
  14357. removeOutMapping();
  14358. }
  14359. };
  14360. function addOutMapping() {
  14361. const businessObject = ModelUtil.getBusinessObject(element);
  14362. const mapping = createElement('camunda:Out', {
  14363. variables: 'all'
  14364. }, null, bpmnFactory);
  14365. addExtensionElements(element, businessObject, mapping, bpmnFactory, commandStack);
  14366. }
  14367. function removeOutMapping() {
  14368. const businessObject = ModelUtil.getBusinessObject(element);
  14369. const mappings = findRelevantOutMappings(element);
  14370. removeExtensionElements(element, businessObject, mappings, commandStack);
  14371. }
  14372. return propertiesPanel.CheckboxEntry({
  14373. id: 'outMapping-propagation',
  14374. label: translate('Propagate all variables'),
  14375. getValue,
  14376. setValue
  14377. });
  14378. }
  14379. function Local(props) {
  14380. const {
  14381. element
  14382. } = props;
  14383. const commandStack = useService('commandStack');
  14384. const translate = useService('translate');
  14385. const mapping = findRelevantOutMappings(element)[0];
  14386. const getValue = () => {
  14387. return mapping.get('camunda:local');
  14388. };
  14389. const setValue = value => {
  14390. commandStack.execute('element.updateModdleProperties', {
  14391. element,
  14392. moddleElement: mapping,
  14393. properties: {
  14394. local: value
  14395. }
  14396. });
  14397. };
  14398. return propertiesPanel.CheckboxEntry({
  14399. element,
  14400. id: 'outMapping-propagation-local',
  14401. label: translate('Local'),
  14402. getValue,
  14403. setValue
  14404. });
  14405. }
  14406. // helper //////////////////////////
  14407. function areOutMappingsSupported$1(element) {
  14408. return ModelUtil.is(element, 'bpmn:CallActivity');
  14409. }
  14410. function getOutMappings$1(element) {
  14411. const businessObject = ModelUtil.getBusinessObject(element);
  14412. return getExtensionElementsList(businessObject, 'camunda:Out');
  14413. }
  14414. function findRelevantOutMappings(element) {
  14415. const inMappings = getOutMappings$1(element);
  14416. return minDash.filter(inMappings, function (mapping) {
  14417. const variables = mapping.get('variables');
  14418. return variables && variables === 'all';
  14419. });
  14420. }
  14421. function isPropagateAll(element) {
  14422. const mappings = findRelevantOutMappings(element);
  14423. return !!mappings.length;
  14424. }
  14425. /**
  14426. * Cf. https://docs.camunda.org/manual/latest/reference/bpmn20/custom-extensions/extension-elements/#out
  14427. */
  14428. function OutMappingProps({
  14429. element,
  14430. injector
  14431. }) {
  14432. if (!areOutMappingsSupported(element)) {
  14433. return null;
  14434. }
  14435. const variableMappings = getOutMappings(element) || [];
  14436. const bpmnFactory = injector.get('bpmnFactory'),
  14437. commandStack = injector.get('commandStack');
  14438. const items = variableMappings.map((mapping, index) => {
  14439. const id = element.id + '-outMapping-' + index;
  14440. return {
  14441. id,
  14442. label: mapping.get('target') || '',
  14443. entries: InOutMapping({
  14444. idPrefix: id,
  14445. element,
  14446. mapping
  14447. }),
  14448. autoFocusEntry: id + '-target',
  14449. remove: removeFactory$1({
  14450. commandStack,
  14451. element,
  14452. mapping
  14453. })
  14454. };
  14455. });
  14456. return {
  14457. items,
  14458. add: addFactory$1({
  14459. bpmnFactory,
  14460. commandStack,
  14461. element
  14462. })
  14463. };
  14464. }
  14465. function removeFactory$1({
  14466. commandStack,
  14467. element,
  14468. mapping
  14469. }) {
  14470. return function (event) {
  14471. event.stopPropagation();
  14472. const businessObject = ModelUtil.getBusinessObject(element);
  14473. removeExtensionElements(element, businessObject, mapping, commandStack);
  14474. };
  14475. }
  14476. function addFactory$1({
  14477. bpmnFactory,
  14478. commandStack,
  14479. element
  14480. }) {
  14481. return function (event) {
  14482. event.stopPropagation();
  14483. const businessObject = ModelUtil.getBusinessObject(element);
  14484. const newMapping = createElement('camunda:Out', {
  14485. source: '' // source is the default type
  14486. }, null, bpmnFactory);
  14487. addExtensionElements(element, businessObject, newMapping, bpmnFactory, commandStack);
  14488. };
  14489. }
  14490. // helper ///////////////
  14491. function getOutMappings(element) {
  14492. const businessObject = ModelUtil.getBusinessObject(element);
  14493. const mappings = getExtensionElementsList(businessObject, 'camunda:Out');
  14494. // only retrieve relevant mappings here, others are handled in other groups
  14495. // mapping.businessKey => camunda-platform/CallAvtivityProps
  14496. // mapping.variables => camunda-platform/OutMappingPropagationProps
  14497. return minDash.filter(mappings, function (mapping) {
  14498. return !mapping.businessKey && !(mapping.variables && mapping.variables === 'all');
  14499. });
  14500. }
  14501. function areOutMappingsSupported(element) {
  14502. return ModelUtil.is(element, 'bpmn:CallActivity');
  14503. }
  14504. function OutputProps({
  14505. element,
  14506. injector
  14507. }) {
  14508. if (!areOutputParametersSupported(element)) {
  14509. return null;
  14510. }
  14511. const outputParameters = getOutputParameters(element) || [];
  14512. const bpmnFactory = injector.get('bpmnFactory'),
  14513. commandStack = injector.get('commandStack');
  14514. const items = outputParameters.map((parameter, index) => {
  14515. const id = element.id + '-outputParameter-' + index;
  14516. return {
  14517. id,
  14518. label: parameter.get('name') || '',
  14519. entries: InputOutputParameter({
  14520. idPrefix: id,
  14521. element,
  14522. parameter
  14523. }),
  14524. autoFocusEntry: id + '-name',
  14525. remove: removeFactory({
  14526. commandStack,
  14527. element,
  14528. parameter
  14529. })
  14530. };
  14531. });
  14532. return {
  14533. items,
  14534. add: addFactory({
  14535. bpmnFactory,
  14536. commandStack,
  14537. element
  14538. }),
  14539. shouldSort: false
  14540. };
  14541. }
  14542. function removeFactory({
  14543. commandStack,
  14544. element,
  14545. parameter
  14546. }) {
  14547. return function (event) {
  14548. event.stopPropagation();
  14549. const inputOutput = getInputOutput(element);
  14550. if (!inputOutput) {
  14551. return;
  14552. }
  14553. commandStack.execute('element.updateModdleProperties', {
  14554. element,
  14555. moddleElement: inputOutput,
  14556. properties: {
  14557. outputParameters: minDash.without(inputOutput.get('outputParameters'), parameter)
  14558. }
  14559. });
  14560. };
  14561. }
  14562. function addFactory({
  14563. bpmnFactory,
  14564. commandStack,
  14565. element
  14566. }) {
  14567. return function (event) {
  14568. event.stopPropagation();
  14569. commandStack.execute('properties-panel.multi-command-executor', AddParameterCmd(element, 'camunda:OutputParameter', bpmnFactory));
  14570. };
  14571. }
  14572. function TimerProps(props) {
  14573. const {
  14574. element,
  14575. listener,
  14576. idPrefix
  14577. } = props;
  14578. let {
  14579. timerEventDefinition
  14580. } = props;
  14581. if (!timerEventDefinition) {
  14582. const businessObject = ModelUtil.getBusinessObject(element);
  14583. timerEventDefinition = getTimerEventDefinition(businessObject);
  14584. }
  14585. const timerEventDefinitionType = getTimerDefinitionType(timerEventDefinition);
  14586. // (1) Only show for supported elements
  14587. if (!isTimerSupported(element) && !isTimerSupportedOnListener(listener)) {
  14588. return [];
  14589. }
  14590. // (2) Provide entries, have a value only if selection was made
  14591. const entries = [];
  14592. entries.push({
  14593. id: getId(idPrefix, 'timerEventDefinitionType'),
  14594. component: TimerEventDefinitionType,
  14595. isEdited: propertiesPanel.isSelectEntryEdited,
  14596. timerEventDefinition,
  14597. timerEventDefinitionType
  14598. });
  14599. if (timerEventDefinitionType) {
  14600. entries.push({
  14601. id: getId(idPrefix, 'timerEventDefinitionValue'),
  14602. component: TimerEventDefinitionValue,
  14603. isEdited: propertiesPanel.isTextFieldEntryEdited,
  14604. timerEventDefinition,
  14605. timerEventDefinitionType
  14606. });
  14607. }
  14608. return entries;
  14609. }
  14610. /**
  14611. * TimerEventDefinitionType - Generic select entry allowing to select a specific
  14612. * timerEventDefintionType. To be used together with timerEventDefinitionValue.
  14613. *
  14614. * @param {type} props
  14615. * @return {SelectEntry}
  14616. */
  14617. function TimerEventDefinitionType(props) {
  14618. const {
  14619. element,
  14620. timerEventDefinition,
  14621. timerEventDefinitionType
  14622. } = props;
  14623. const commandStack = useService('commandStack'),
  14624. bpmnFactory = useService('bpmnFactory'),
  14625. translate = useService('translate');
  14626. const getValue = () => {
  14627. return timerEventDefinitionType || '';
  14628. };
  14629. const setValue = value => {
  14630. // (1) Check if value is different to current type
  14631. if (value === timerEventDefinitionType) {
  14632. return;
  14633. }
  14634. // (2) Create empty formalExpression element
  14635. const formalExpression = bpmnFactory.create('bpmn:FormalExpression', {
  14636. body: undefined
  14637. });
  14638. formalExpression.$parent = timerEventDefinition;
  14639. // (3) Set the value for selected timerEventDefinitionType
  14640. const newProps = {
  14641. timeDuration: undefined,
  14642. timeDate: undefined,
  14643. timeCycle: undefined
  14644. };
  14645. if (value !== '') {
  14646. newProps[value] = formalExpression;
  14647. }
  14648. // (4) Execute businessObject update
  14649. commandStack.execute('element.updateModdleProperties', {
  14650. element,
  14651. moddleElement: timerEventDefinition,
  14652. properties: newProps
  14653. });
  14654. };
  14655. const getOptions = element => {
  14656. return [{
  14657. value: '',
  14658. label: translate('<none>')
  14659. }, {
  14660. value: 'timeDate',
  14661. label: translate('Date')
  14662. }, {
  14663. value: 'timeDuration',
  14664. label: translate('Duration')
  14665. }, {
  14666. value: 'timeCycle',
  14667. label: translate('Cycle')
  14668. }];
  14669. };
  14670. return propertiesPanel.SelectEntry({
  14671. element,
  14672. id: 'timerEventDefinitionType',
  14673. label: translate('Type'),
  14674. getValue,
  14675. setValue,
  14676. getOptions
  14677. });
  14678. }
  14679. /**
  14680. * TimerEventDefinitionValue - Generic textField entry allowing to specify the
  14681. * timerEventDefintionValue based on the set timerEventDefintionType. To be used
  14682. * together with timerEventDefinitionType.
  14683. *
  14684. * @param {type} props
  14685. * @return {TextFieldEntry}
  14686. */
  14687. function TimerEventDefinitionValue(props) {
  14688. const {
  14689. element,
  14690. timerEventDefinition,
  14691. timerEventDefinitionType
  14692. } = props;
  14693. const commandStack = useService('commandStack'),
  14694. translate = useService('translate'),
  14695. debounce = useService('debounceInput');
  14696. const timerEventFormalExpression = timerEventDefinition.get(timerEventDefinitionType);
  14697. const getValue = () => {
  14698. return timerEventFormalExpression && timerEventFormalExpression.get('body');
  14699. };
  14700. const setValue = value => {
  14701. commandStack.execute('element.updateModdleProperties', {
  14702. element,
  14703. moddleElement: timerEventFormalExpression,
  14704. properties: {
  14705. body: value
  14706. }
  14707. });
  14708. };
  14709. return propertiesPanel.TextFieldEntry({
  14710. element,
  14711. id: 'timerEventDefinitionValue',
  14712. label: translate('Value'),
  14713. getValue,
  14714. setValue,
  14715. debounce,
  14716. tooltip: getTimerEventDefinitionValueDescription(timerEventDefinitionType, translate)
  14717. });
  14718. }
  14719. // helper //////////////////////////
  14720. function getTimerEventDefinitionValueDescription(timerDefinitionType, translate) {
  14721. switch (timerDefinitionType) {
  14722. case 'timeDate':
  14723. return jsxRuntime.jsxs("div", {
  14724. children: [jsxRuntime.jsx("p", {
  14725. children: translate('A specific point in time defined as ISO 8601 combined date and time representation.')
  14726. }), jsxRuntime.jsxs("ul", {
  14727. children: [jsxRuntime.jsxs("li", {
  14728. children: [jsxRuntime.jsx("code", {
  14729. children: "2019-10-01T12:00:00Z"
  14730. }), " - ", translate('UTC time')]
  14731. }), jsxRuntime.jsxs("li", {
  14732. children: [jsxRuntime.jsx("code", {
  14733. children: "2019-10-02T08:09:40+02:00"
  14734. }), " - ", translate('UTC plus 2 hours zone offset')]
  14735. })]
  14736. }), jsxRuntime.jsx("a", {
  14737. href: "https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-date",
  14738. target: "_blank",
  14739. rel: "noopener",
  14740. children: translate('Documentation: Timer events')
  14741. })]
  14742. });
  14743. case 'timeCycle':
  14744. return jsxRuntime.jsxs("div", {
  14745. children: [jsxRuntime.jsx("p", {
  14746. children: translate('A cycle defined as ISO 8601 repeating intervals format, or a cron expression.')
  14747. }), jsxRuntime.jsxs("ul", {
  14748. children: [jsxRuntime.jsxs("li", {
  14749. children: [jsxRuntime.jsx("code", {
  14750. children: "R5/PT10S"
  14751. }), " - ", translate('every 10 seconds, up to 5 times')]
  14752. }), jsxRuntime.jsxs("li", {
  14753. children: [jsxRuntime.jsx("code", {
  14754. children: "R/P1D"
  14755. }), " - ", translate('every day, infinitely')]
  14756. }), jsxRuntime.jsxs("li", {
  14757. children: [jsxRuntime.jsx("code", {
  14758. children: "0 0 9-17 * * MON-FRI"
  14759. }), " - ", translate('every hour on the hour from 9-5 p.m. UTC Monday-Friday')]
  14760. })]
  14761. }), jsxRuntime.jsx("a", {
  14762. href: "https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-cycle",
  14763. target: "_blank",
  14764. rel: "noopener",
  14765. children: translate('Documentation: Timer events')
  14766. })]
  14767. });
  14768. case 'timeDuration':
  14769. return jsxRuntime.jsxs("div", {
  14770. children: [jsxRuntime.jsx("p", {
  14771. children: translate('A time duration defined as ISO 8601 durations format.')
  14772. }), jsxRuntime.jsxs("ul", {
  14773. children: [jsxRuntime.jsxs("li", {
  14774. children: [jsxRuntime.jsx("code", {
  14775. children: "PT15S"
  14776. }), " - ", translate('15 seconds')]
  14777. }), jsxRuntime.jsxs("li", {
  14778. children: [jsxRuntime.jsx("code", {
  14779. children: "PT1H30M"
  14780. }), " - ", translate('1 hour and 30 minutes')]
  14781. }), jsxRuntime.jsxs("li", {
  14782. children: [jsxRuntime.jsx("code", {
  14783. children: "P14D"
  14784. }), " - ", translate('14 days')]
  14785. })]
  14786. }), jsxRuntime.jsx("a", {
  14787. href: "https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-duration",
  14788. target: "_blank",
  14789. rel: "noopener",
  14790. children: translate('Documentation: Timer events')
  14791. })]
  14792. });
  14793. }
  14794. }
  14795. function isTimerSupportedOnListener(listener) {
  14796. return listener && ModelUtil.is(listener, 'camunda:TaskListener') && getTimerEventDefinition(listener);
  14797. }
  14798. function getId(idPrefix, id) {
  14799. return idPrefix ? idPrefix + id : id;
  14800. }
  14801. const LISTENER_ALLOWED_TYPES = ['bpmn:Activity', 'bpmn:Event', 'bpmn:Gateway', 'bpmn:SequenceFlow', 'bpmn:Process', 'bpmn:Participant'];
  14802. const SCRIPT_PROPS = {
  14803. 'script': undefined,
  14804. 'resource': undefined,
  14805. 'scriptFormat': undefined
  14806. };
  14807. const CLASS_PROPS = {
  14808. 'class': undefined
  14809. };
  14810. const EXPRESSION_PROPS = {
  14811. 'expression': undefined
  14812. };
  14813. const DELEGATE_EXPRESSION_PROPS = {
  14814. 'delegateExpression': undefined
  14815. };
  14816. const DEFAULT_PROPS = {
  14817. ...SCRIPT_PROPS,
  14818. ...CLASS_PROPS,
  14819. ...EXPRESSION_PROPS,
  14820. ...DELEGATE_EXPRESSION_PROPS
  14821. };
  14822. const DEFAULT_EVENT_PROPS = {
  14823. 'eventDefinitions': undefined,
  14824. 'event': undefined
  14825. };
  14826. const IMPLEMENTATION_TYPE_TO_LABEL = {
  14827. class: 'Java class',
  14828. expression: 'Expression',
  14829. delegateExpression: 'Delegate expression',
  14830. script: 'Script'
  14831. };
  14832. const EVENT_TO_LABEL = {
  14833. start: 'Start',
  14834. end: 'End',
  14835. take: 'Take',
  14836. create: 'Create',
  14837. assignment: 'Assignment',
  14838. complete: 'Complete',
  14839. delete: 'Delete',
  14840. update: 'Update',
  14841. timeout: 'Timeout'
  14842. };
  14843. /**
  14844. * Cf. https://docs.camunda.org/manual/latest/user-guide/process-engine/delegation-code/#execution-listener
  14845. */
  14846. function ExecutionListenerProps({
  14847. element,
  14848. injector
  14849. }) {
  14850. if (!ModelingUtil.isAny(element, LISTENER_ALLOWED_TYPES)) {
  14851. return;
  14852. }
  14853. const bpmnFactory = injector.get('bpmnFactory'),
  14854. commandStack = injector.get('commandStack');
  14855. if (ModelUtil.is(element, 'bpmn:Participant') && !element.businessObject.processRef) {
  14856. return;
  14857. }
  14858. const businessObject = getListenersContainer(element);
  14859. const listeners = getExtensionElementsList(businessObject, 'camunda:ExecutionListener');
  14860. return {
  14861. items: listeners.map((listener, index) => {
  14862. const id = `${element.id}-executionListener-${index}`;
  14863. // @TODO(barmac): Find a way to pass translate for internationalized label.
  14864. return {
  14865. id,
  14866. label: getListenerLabel(listener),
  14867. entries: ExecutionListener({
  14868. idPrefix: id,
  14869. element,
  14870. listener
  14871. }),
  14872. remove: removeListenerFactory({
  14873. element,
  14874. listener,
  14875. commandStack
  14876. })
  14877. };
  14878. }),
  14879. add: addExecutionListenerFactory({
  14880. bpmnFactory,
  14881. commandStack,
  14882. element
  14883. })
  14884. };
  14885. }
  14886. function ExecutionListener(props) {
  14887. const {
  14888. idPrefix,
  14889. element,
  14890. listener
  14891. } = props;
  14892. return [{
  14893. id: `${idPrefix}-eventType`,
  14894. component: EventType,
  14895. listener
  14896. }, {
  14897. id: `${idPrefix}-listenerType`,
  14898. component: ListenerType,
  14899. listener
  14900. }, ...ImplementationDetails({
  14901. idPrefix,
  14902. element,
  14903. listener
  14904. }), {
  14905. id: `${idPrefix}-fields`,
  14906. component: Fields,
  14907. listener
  14908. }];
  14909. }
  14910. function TaskListenerProps({
  14911. element,
  14912. injector
  14913. }) {
  14914. if (!ModelUtil.is(element, 'bpmn:UserTask')) {
  14915. return;
  14916. }
  14917. const bpmnFactory = injector.get('bpmnFactory'),
  14918. commandStack = injector.get('commandStack');
  14919. const businessObject = getListenersContainer(element);
  14920. const listeners = getExtensionElementsList(businessObject, 'camunda:TaskListener');
  14921. return {
  14922. items: listeners.map((listener, index) => {
  14923. const id = `${element.id}-taskListener-${index}`;
  14924. // @TODO(barmac): Find a way to pass translate for internationalized label.
  14925. return {
  14926. id,
  14927. label: getListenerLabel(listener),
  14928. entries: TaskListener({
  14929. idPrefix: id,
  14930. element,
  14931. listener
  14932. }),
  14933. remove: removeListenerFactory({
  14934. element,
  14935. listener,
  14936. commandStack
  14937. })
  14938. };
  14939. }),
  14940. add: addTaskListenerFactory({
  14941. bpmnFactory,
  14942. commandStack,
  14943. element
  14944. })
  14945. };
  14946. }
  14947. function TaskListener(props) {
  14948. const {
  14949. idPrefix,
  14950. element,
  14951. listener
  14952. } = props;
  14953. return [{
  14954. id: `${idPrefix}-eventType`,
  14955. component: EventType,
  14956. listener
  14957. }, {
  14958. id: `${idPrefix}-listenerId`,
  14959. component: ListenerId,
  14960. listener
  14961. }, {
  14962. id: `${idPrefix}-listenerType`,
  14963. component: ListenerType,
  14964. listener
  14965. }, ...ImplementationDetails({
  14966. idPrefix,
  14967. element,
  14968. listener
  14969. }), ...EventTypeDetails({
  14970. idPrefix,
  14971. element,
  14972. listener
  14973. }), {
  14974. id: `${idPrefix}-fields`,
  14975. component: Fields,
  14976. listener
  14977. }];
  14978. }
  14979. function removeListenerFactory({
  14980. element,
  14981. listener,
  14982. commandStack
  14983. }) {
  14984. return function removeListener(event) {
  14985. event.stopPropagation();
  14986. removeExtensionElements(element, getListenersContainer(element), listener, commandStack);
  14987. };
  14988. }
  14989. function EventType({
  14990. id,
  14991. element,
  14992. listener
  14993. }) {
  14994. const translate = useService('translate');
  14995. const bpmnFactory = useService('bpmnFactory');
  14996. const commandStack = useService('commandStack');
  14997. function getValue() {
  14998. return listener.get('event');
  14999. }
  15000. function setValue(value) {
  15001. const properties = getDefaultEventTypeProperties(value, bpmnFactory);
  15002. commandStack.execute('element.updateModdleProperties', {
  15003. element,
  15004. moddleElement: listener,
  15005. properties
  15006. });
  15007. }
  15008. function getOptions() {
  15009. if (ModelUtil.is(listener, 'camunda:TaskListener')) {
  15010. return [{
  15011. value: 'create',
  15012. label: translate('create')
  15013. }, {
  15014. value: 'assignment',
  15015. label: translate('assignment')
  15016. }, {
  15017. value: 'complete',
  15018. label: translate('complete')
  15019. }, {
  15020. value: 'delete',
  15021. label: translate('delete')
  15022. }, {
  15023. value: 'update',
  15024. label: translate('update')
  15025. }, {
  15026. value: 'timeout',
  15027. label: translate('timeout')
  15028. }];
  15029. }
  15030. if (ModelUtil.is(element, 'bpmn:SequenceFlow')) {
  15031. return [{
  15032. value: 'take',
  15033. label: translate('take')
  15034. }];
  15035. }
  15036. return [{
  15037. value: 'start',
  15038. label: translate('start')
  15039. }, {
  15040. value: 'end',
  15041. label: translate('end')
  15042. }];
  15043. }
  15044. return jsxRuntime.jsx(propertiesPanel.SelectEntry, {
  15045. id: id,
  15046. label: translate('Event type'),
  15047. getValue: getValue,
  15048. setValue: setValue,
  15049. getOptions: getOptions
  15050. });
  15051. }
  15052. function ListenerId({
  15053. id,
  15054. element,
  15055. listener
  15056. }) {
  15057. const translate = useService('translate');
  15058. const debounce = useService('debounceInput');
  15059. const commandStack = useService('commandStack');
  15060. let options = {
  15061. element,
  15062. id: id,
  15063. label: translate('Listener ID'),
  15064. debounce,
  15065. isEdited: propertiesPanel.isTextFieldEntryEdited,
  15066. setValue: value => {
  15067. commandStack.execute('element.updateModdleProperties', {
  15068. element,
  15069. moddleElement: listener,
  15070. properties: {
  15071. 'camunda:id': value
  15072. }
  15073. });
  15074. },
  15075. getValue: () => {
  15076. return listener.get('camunda:id');
  15077. }
  15078. };
  15079. return propertiesPanel.TextFieldEntry(options);
  15080. }
  15081. function ListenerType({
  15082. id,
  15083. element,
  15084. listener
  15085. }) {
  15086. const modeling = useService('modeling');
  15087. const translate = useService('translate');
  15088. const bpmnFactory = useService('bpmnFactory');
  15089. function getValue() {
  15090. return getListenerType(listener);
  15091. }
  15092. function setValue(value) {
  15093. const properties = getDefaultImplementationProperties(value, bpmnFactory);
  15094. modeling.updateModdleProperties(element, listener, properties);
  15095. }
  15096. function getOptions() {
  15097. return getListenerTypeOptions(translate);
  15098. }
  15099. return jsxRuntime.jsx(propertiesPanel.SelectEntry, {
  15100. id: id,
  15101. label: translate('Listener type'),
  15102. getValue: getValue,
  15103. setValue: setValue,
  15104. getOptions: getOptions
  15105. });
  15106. }
  15107. function ImplementationDetails(props) {
  15108. const {
  15109. idPrefix,
  15110. element,
  15111. listener
  15112. } = props;
  15113. const type = getListenerType(listener);
  15114. if (type === 'class') {
  15115. return [{
  15116. id: getPrefixedId(idPrefix, 'javaClass'),
  15117. component: JavaClass,
  15118. businessObject: listener
  15119. }];
  15120. } else if (type === 'expression') {
  15121. return [{
  15122. id: getPrefixedId(idPrefix, 'expression'),
  15123. component: Expression,
  15124. businessObject: listener
  15125. }];
  15126. } else if (type === 'delegateExpression') {
  15127. return [{
  15128. id: getPrefixedId(idPrefix, 'delegateExpression'),
  15129. component: DelegateExpression,
  15130. businessObject: listener
  15131. }];
  15132. } else if (type === 'script') {
  15133. return ScriptProps({
  15134. element,
  15135. script: listener.get('script'),
  15136. prefix: idPrefix
  15137. });
  15138. }
  15139. // should never happen
  15140. return [];
  15141. }
  15142. function EventTypeDetails(props) {
  15143. const {
  15144. idPrefix,
  15145. element,
  15146. listener
  15147. } = props;
  15148. const type = listener.get('event');
  15149. if (type === 'timeout') {
  15150. return TimerProps({
  15151. element,
  15152. listener,
  15153. timerEventDefinition: getTimerEventDefinition$1(listener),
  15154. idPrefix: idPrefix
  15155. });
  15156. }
  15157. return [];
  15158. }
  15159. function Field(props) {
  15160. const {
  15161. element,
  15162. id: idPrefix,
  15163. index,
  15164. item: field,
  15165. open
  15166. } = props;
  15167. const fieldId = `${idPrefix}-field-${index}`;
  15168. return jsxRuntime.jsx(propertiesPanel.CollapsibleEntry, {
  15169. id: fieldId,
  15170. element: element,
  15171. entries: FieldInjection({
  15172. element,
  15173. field,
  15174. idPrefix: fieldId
  15175. }),
  15176. label: field.get('name') || '<empty>',
  15177. open: open
  15178. });
  15179. }
  15180. function Fields(props) {
  15181. const {
  15182. id,
  15183. element,
  15184. listener
  15185. } = props;
  15186. const bpmnFactory = useService('bpmnFactory');
  15187. const commandStack = useService('commandStack');
  15188. const translate = useService('translate');
  15189. const fields = listener.get('fields');
  15190. function addField() {
  15191. const field = createElement('camunda:Field', {}, listener, bpmnFactory);
  15192. commandStack.execute('element.updateModdleProperties', {
  15193. element,
  15194. moddleElement: listener,
  15195. properties: {
  15196. fields: [...listener.get('fields'), field]
  15197. }
  15198. });
  15199. }
  15200. function removeField(field) {
  15201. commandStack.execute('element.updateModdleProperties', {
  15202. element,
  15203. moddleElement: listener,
  15204. properties: {
  15205. fields: minDash.without(listener.get('fields'), field)
  15206. }
  15207. });
  15208. }
  15209. return jsxRuntime.jsx(propertiesPanel.ListEntry, {
  15210. id: id,
  15211. element: element,
  15212. label: translate('Field injection'),
  15213. items: fields,
  15214. component: Field,
  15215. onAdd: addField,
  15216. onRemove: removeField,
  15217. compareFn: compareName,
  15218. autoFocusEntry: true
  15219. });
  15220. }
  15221. function addListenerFactory({
  15222. bpmnFactory,
  15223. commandStack,
  15224. element,
  15225. listenerGroup
  15226. }) {
  15227. return function (event) {
  15228. event.stopPropagation();
  15229. const listener = bpmnFactory.create(listenerGroup, {
  15230. event: getDefaultEvent(element, listenerGroup),
  15231. class: ''
  15232. });
  15233. const businessObject = getListenersContainer(element);
  15234. addExtensionElements(element, businessObject, listener, bpmnFactory, commandStack);
  15235. };
  15236. }
  15237. function addTaskListenerFactory(props) {
  15238. return addListenerFactory({
  15239. ...props,
  15240. listenerGroup: 'camunda:TaskListener'
  15241. });
  15242. }
  15243. function addExecutionListenerFactory(props) {
  15244. return addListenerFactory({
  15245. ...props,
  15246. listenerGroup: 'camunda:ExecutionListener'
  15247. });
  15248. }
  15249. // helper
  15250. /**
  15251. * Get a readable label for a listener.
  15252. *
  15253. * @param {ModdleElement} listener
  15254. * @param {string => string} [translate]
  15255. */
  15256. function getListenerLabel(listener, translate = value => value) {
  15257. const event = listener.get('event');
  15258. const implementationType = getListenerType(listener);
  15259. return `${translate(EVENT_TO_LABEL[event])}: ${translate(IMPLEMENTATION_TYPE_TO_LABEL[implementationType])}`;
  15260. }
  15261. function getListenerTypeOptions(translate) {
  15262. return Object.entries(IMPLEMENTATION_TYPE_TO_LABEL).map(([value, label]) => ({
  15263. value,
  15264. label: translate(label)
  15265. }));
  15266. }
  15267. function getListenerType(listener) {
  15268. return getImplementationType(listener);
  15269. }
  15270. function getDefaultEvent(element, listenerGroup) {
  15271. if (listenerGroup === 'camunda:TaskListener') return 'create';
  15272. return ModelUtil.is(element, 'bpmn:SequenceFlow') ? 'take' : 'start';
  15273. }
  15274. function getDefaultImplementationProperties(type, bpmnFactory) {
  15275. switch (type) {
  15276. case 'class':
  15277. return {
  15278. ...DEFAULT_PROPS,
  15279. 'class': ''
  15280. };
  15281. case 'expression':
  15282. return {
  15283. ...DEFAULT_PROPS,
  15284. 'expression': ''
  15285. };
  15286. case 'delegateExpression':
  15287. return {
  15288. ...DEFAULT_PROPS,
  15289. 'delegateExpression': ''
  15290. };
  15291. case 'script':
  15292. return {
  15293. ...DEFAULT_PROPS,
  15294. 'script': bpmnFactory.create('camunda:Script')
  15295. };
  15296. }
  15297. }
  15298. function getDefaultEventTypeProperties(type, bpmnFactory) {
  15299. switch (type) {
  15300. case 'timeout':
  15301. return {
  15302. ...DEFAULT_EVENT_PROPS,
  15303. eventDefinitions: [bpmnFactory.create('bpmn:TimerEventDefinition')],
  15304. event: type
  15305. };
  15306. default:
  15307. return {
  15308. ...DEFAULT_EVENT_PROPS,
  15309. event: type
  15310. };
  15311. }
  15312. }
  15313. function getPrefixedId(prefix, id) {
  15314. return `${prefix}-${id}`;
  15315. }
  15316. function compareName(field, anotherField) {
  15317. const [name = '', anotherName = ''] = [field.name, anotherField.name];
  15318. return name === anotherName ? 0 : name > anotherName ? 1 : -1;
  15319. }
  15320. function getListenersContainer(element) {
  15321. const businessObject = ModelUtil.getBusinessObject(element);
  15322. return businessObject.get('processRef') || businessObject;
  15323. }
  15324. function ProcessVariablesEntry(props) {
  15325. const {
  15326. element
  15327. } = props;
  15328. const [variables, setVariables] = hooks.useState([]);
  15329. hooks.useEffect(async () => {
  15330. const businessObject = ModelUtil.getBusinessObject(element);
  15331. const rootElement = getRootElement(businessObject);
  15332. const scope = getScope(element);
  15333. const rawVariables = await extractProcessVariables.getVariablesForScope(scope, rootElement);
  15334. const withName = populateElementNames(sortByName(rawVariables));
  15335. setVariables(withName);
  15336. }, [element]);
  15337. if (!variables.length) {
  15338. return null;
  15339. }
  15340. const byScope = groupByScope(variables);
  15341. const multiScope = isMultiScope(byScope);
  15342. let variableItems = [];
  15343. // (2) get variables to display
  15344. if (multiScope) {
  15345. // (2a) multiple scopes, sub scopes first
  15346. // assumption: variables extractor fetches parent variables first
  15347. const reversed = minDash.map(reverse(minDash.keys(byScope)), scopeKey => byScope[scopeKey]);
  15348. variableItems = minDash.flatten(reversed);
  15349. } else {
  15350. // (2b) single scope
  15351. variableItems = variables;
  15352. }
  15353. const items = variableItems.map((variable, index) => {
  15354. const id = element.id + '-variable-' + index;
  15355. return {
  15356. id,
  15357. label: variable.name,
  15358. entries: [...ProcessVariableItem({
  15359. idPrefix: id,
  15360. multiScope,
  15361. variable
  15362. })]
  15363. };
  15364. });
  15365. return jsxRuntime.jsx(propertiesPanel.ListGroup, {
  15366. ...props,
  15367. items: items,
  15368. shouldSort: false
  15369. });
  15370. }
  15371. function ProcessVariablesProps(props) {
  15372. const {
  15373. element
  15374. } = props;
  15375. if (!canHaveProcessVariables(element)) {
  15376. return null;
  15377. }
  15378. return {
  15379. component: ProcessVariablesEntry,
  15380. shouldSort: false
  15381. };
  15382. }
  15383. function ProcessVariableItem(props) {
  15384. const {
  15385. idPrefix,
  15386. multiScope,
  15387. variable
  15388. } = props;
  15389. let entries = [];
  15390. if (multiScope) {
  15391. entries.push({
  15392. id: idPrefix + '-scope',
  15393. component: Scope,
  15394. idPrefix,
  15395. variable
  15396. });
  15397. }
  15398. entries.push({
  15399. id: idPrefix + '-createdIn',
  15400. component: CreatedIn,
  15401. idPrefix,
  15402. variable
  15403. });
  15404. return entries;
  15405. }
  15406. function Scope(props) {
  15407. const {
  15408. idPrefix,
  15409. variable
  15410. } = props;
  15411. const translate = useService('translate');
  15412. const id = idPrefix + '-scope';
  15413. return jsxRuntime.jsxs("div", {
  15414. "data-entry-id": id,
  15415. class: "bio-properties-panel-entry",
  15416. children: [jsxRuntime.jsx("b", {
  15417. style: "font-weight: bold",
  15418. class: "bio-properties-panel-label",
  15419. children: translate('Scope')
  15420. }), jsxRuntime.jsx("label", {
  15421. id: prefixId(id),
  15422. class: "bio-properties-panel-label",
  15423. children: variable.scope
  15424. })]
  15425. });
  15426. }
  15427. function CreatedIn(props) {
  15428. const {
  15429. idPrefix,
  15430. variable
  15431. } = props;
  15432. const translate = useService('translate');
  15433. const id = idPrefix + '-createdIn';
  15434. const origin = variable.origin.join(', ');
  15435. return jsxRuntime.jsxs("div", {
  15436. "data-entry-id": id,
  15437. class: "bio-properties-panel-entry",
  15438. children: [jsxRuntime.jsx("b", {
  15439. style: "font-weight: bold",
  15440. class: "bio-properties-panel-label",
  15441. children: translate('Created in')
  15442. }), jsxRuntime.jsx("label", {
  15443. id: prefixId(id),
  15444. class: "bio-properties-panel-label",
  15445. children: origin
  15446. })]
  15447. });
  15448. }
  15449. // helper //////////////////////
  15450. function canHaveProcessVariables(element) {
  15451. const businessObject = ModelUtil.getBusinessObject(element);
  15452. return ModelingUtil.isAny(element, ['bpmn:Process', 'bpmn:SubProcess']) || ModelUtil.is(element, 'bpmn:Participant') && businessObject.get('processRef');
  15453. }
  15454. function getRootElement(element) {
  15455. const businessObject = ModelUtil.getBusinessObject(element);
  15456. if (ModelUtil.is(businessObject, 'bpmn:Participant')) {
  15457. return businessObject.processRef;
  15458. }
  15459. if (ModelUtil.is(businessObject, 'bpmn:Process')) {
  15460. return businessObject;
  15461. }
  15462. let parent = businessObject;
  15463. while (parent.$parent && !ModelUtil.is(parent, 'bpmn:Process')) {
  15464. parent = parent.$parent;
  15465. }
  15466. return parent;
  15467. }
  15468. function getScope(element) {
  15469. const bo = ModelUtil.getBusinessObject(element);
  15470. if (ModelUtil.is(element, 'bpmn:Participant')) {
  15471. return bo.processRef.id;
  15472. }
  15473. return bo.id;
  15474. }
  15475. function sortByName(variables) {
  15476. return minDash.sortBy(variables, function (variable) {
  15477. return variable.name;
  15478. });
  15479. }
  15480. function groupByScope(variables) {
  15481. return minDash.groupBy(variables, 'scope');
  15482. }
  15483. function populateElementNames(variables) {
  15484. minDash.forEach(variables, function (variable) {
  15485. const names = minDash.map(variable.origin, function (element) {
  15486. return element.name || element.id;
  15487. });
  15488. variable.origin = names;
  15489. variable.scope = variable.scope.name || variable.scope.id;
  15490. });
  15491. return variables;
  15492. }
  15493. function isMultiScope(scopedVariables) {
  15494. return minDash.keys(scopedVariables).length > 1;
  15495. }
  15496. function reverse(array) {
  15497. return minDash.map(array, function (a, i) {
  15498. return array[array.length - 1 - i];
  15499. });
  15500. }
  15501. function prefixId(id) {
  15502. return `bio-properties-panel-${id}`;
  15503. }
  15504. function ScriptTaskProps(props) {
  15505. const {
  15506. element
  15507. } = props;
  15508. if (!ModelUtil.is(element, 'bpmn:ScriptTask')) {
  15509. return [];
  15510. }
  15511. const entries = [...ScriptProps({
  15512. element
  15513. })];
  15514. entries.push({
  15515. id: 'scriptResultVariable',
  15516. component: ResultVariable,
  15517. isEdited: propertiesPanel.isTextFieldEntryEdited
  15518. });
  15519. return entries;
  15520. }
  15521. function ResultVariable(props) {
  15522. const {
  15523. element
  15524. } = props;
  15525. const commandStack = useService('commandStack');
  15526. const translate = useService('translate');
  15527. const debounce = useService('debounceInput');
  15528. const businessObject = ModelUtil.getBusinessObject(element);
  15529. const getValue = () => {
  15530. return businessObject.get('camunda:resultVariable');
  15531. };
  15532. const setValue = value => {
  15533. commandStack.execute('element.updateModdleProperties', {
  15534. element,
  15535. moddleElement: businessObject,
  15536. properties: {
  15537. 'camunda:resultVariable': value
  15538. }
  15539. });
  15540. };
  15541. return propertiesPanel.TextFieldEntry({
  15542. element,
  15543. id: 'scriptResultVariable',
  15544. label: translate('Result variable'),
  15545. getValue,
  15546. setValue,
  15547. debounce
  15548. });
  15549. }
  15550. function TasklistProps(props) {
  15551. const {
  15552. element
  15553. } = props;
  15554. const businessObject = ModelUtil.getBusinessObject(element);
  15555. const isEdited = node => {
  15556. return node && !node.checked;
  15557. };
  15558. if (!ModelUtil.is(element, 'bpmn:Process') && !(ModelUtil.is(element, 'bpmn:Participant') && businessObject.get('processRef'))) {
  15559. return [];
  15560. }
  15561. return [{
  15562. id: 'isStartableInTasklist',
  15563. component: Startable,
  15564. isEdited
  15565. }];
  15566. }
  15567. function Startable(props) {
  15568. const {
  15569. element
  15570. } = props;
  15571. const commandStack = useService('commandStack');
  15572. const translate = useService('translate');
  15573. const process = getProcess$1(element);
  15574. const getValue = () => {
  15575. return process.get('camunda:isStartableInTasklist');
  15576. };
  15577. const setValue = value => {
  15578. commandStack.execute('element.updateModdleProperties', {
  15579. element,
  15580. moddleElement: process,
  15581. properties: {
  15582. 'camunda:isStartableInTasklist': value
  15583. }
  15584. });
  15585. };
  15586. return propertiesPanel.CheckboxEntry({
  15587. element,
  15588. id: 'isStartableInTasklist',
  15589. label: translate('Startable'),
  15590. getValue,
  15591. setValue
  15592. });
  15593. }
  15594. // helper //////////////////
  15595. function getProcess$1(element) {
  15596. return ModelUtil.is(element, 'bpmn:Process') ? ModelUtil.getBusinessObject(element) : ModelUtil.getBusinessObject(element).get('processRef');
  15597. }
  15598. /**
  15599. * Cf. https://docs.camunda.org/manual/latest/reference/bpmn20/tasks/user-task/
  15600. */
  15601. function UserAssignmentProps(props) {
  15602. const {
  15603. element
  15604. } = props;
  15605. if (!ModelUtil.is(element, 'camunda:Assignable')) {
  15606. return [];
  15607. }
  15608. return [{
  15609. id: 'assignee',
  15610. component: Assignee,
  15611. isEdited: propertiesPanel.isTextFieldEntryEdited
  15612. }, {
  15613. id: 'candidateGroups',
  15614. component: CandidateGroups,
  15615. isEdited: propertiesPanel.isTextFieldEntryEdited
  15616. }, {
  15617. id: 'candidateUsers',
  15618. component: CandidateUsers,
  15619. isEdited: propertiesPanel.isTextFieldEntryEdited
  15620. }, {
  15621. id: 'dueDate',
  15622. component: DueDate,
  15623. isEdited: propertiesPanel.isTextFieldEntryEdited
  15624. }, {
  15625. id: 'followUpDate',
  15626. component: FollowUpDate,
  15627. isEdited: propertiesPanel.isTextFieldEntryEdited
  15628. }, {
  15629. id: 'priority',
  15630. component: Priority,
  15631. isEdited: propertiesPanel.isTextFieldEntryEdited
  15632. }];
  15633. }
  15634. function Assignee(props) {
  15635. const {
  15636. element
  15637. } = props;
  15638. const commandStack = useService('commandStack');
  15639. const translate = useService('translate');
  15640. const debounce = useService('debounceInput');
  15641. const businessObject = ModelUtil.getBusinessObject(element);
  15642. const getValue = () => {
  15643. return businessObject.get('camunda:assignee');
  15644. };
  15645. const setValue = value => {
  15646. commandStack.execute('element.updateModdleProperties', {
  15647. element,
  15648. moddleElement: businessObject,
  15649. properties: {
  15650. 'camunda:assignee': value
  15651. }
  15652. });
  15653. };
  15654. return propertiesPanel.TextFieldEntry({
  15655. element,
  15656. id: 'assignee',
  15657. label: translate('Assignee'),
  15658. getValue,
  15659. setValue,
  15660. debounce
  15661. });
  15662. }
  15663. function CandidateUsers(props) {
  15664. const {
  15665. element
  15666. } = props;
  15667. const commandStack = useService('commandStack');
  15668. const translate = useService('translate');
  15669. const debounce = useService('debounceInput');
  15670. const businessObject = ModelUtil.getBusinessObject(element);
  15671. const getValue = () => {
  15672. return businessObject.get('camunda:candidateUsers');
  15673. };
  15674. const setValue = value => {
  15675. commandStack.execute('element.updateModdleProperties', {
  15676. element,
  15677. moddleElement: businessObject,
  15678. properties: {
  15679. 'camunda:candidateUsers': value
  15680. }
  15681. });
  15682. };
  15683. return propertiesPanel.TextFieldEntry({
  15684. element,
  15685. id: 'candidateUsers',
  15686. label: translate('Candidate users'),
  15687. getValue,
  15688. setValue,
  15689. debounce
  15690. });
  15691. }
  15692. function CandidateGroups(props) {
  15693. const {
  15694. element
  15695. } = props;
  15696. const commandStack = useService('commandStack');
  15697. const translate = useService('translate');
  15698. const debounce = useService('debounceInput');
  15699. const businessObject = ModelUtil.getBusinessObject(element);
  15700. const getValue = () => {
  15701. return businessObject.get('camunda:candidateGroups');
  15702. };
  15703. const setValue = value => {
  15704. commandStack.execute('element.updateModdleProperties', {
  15705. element,
  15706. moddleElement: businessObject,
  15707. properties: {
  15708. 'camunda:candidateGroups': value
  15709. }
  15710. });
  15711. };
  15712. return propertiesPanel.TextFieldEntry({
  15713. element,
  15714. id: 'candidateGroups',
  15715. label: translate('Candidate groups'),
  15716. getValue,
  15717. setValue,
  15718. debounce
  15719. });
  15720. }
  15721. function DueDate(props) {
  15722. const {
  15723. element
  15724. } = props;
  15725. const commandStack = useService('commandStack');
  15726. const translate = useService('translate');
  15727. const debounce = useService('debounceInput');
  15728. const businessObject = ModelUtil.getBusinessObject(element);
  15729. const getValue = () => {
  15730. return businessObject.get('camunda:dueDate');
  15731. };
  15732. const setValue = value => {
  15733. commandStack.execute('element.updateModdleProperties', {
  15734. element,
  15735. moddleElement: businessObject,
  15736. properties: {
  15737. 'camunda:dueDate': value
  15738. }
  15739. });
  15740. };
  15741. return propertiesPanel.TextFieldEntry({
  15742. element,
  15743. id: 'dueDate',
  15744. label: translate('Due date'),
  15745. description: translate('The due date as an EL expression (e.g. ${someDate}) or an ISO date (e.g. 2015-06-26T09:54:00).'),
  15746. getValue,
  15747. setValue,
  15748. debounce
  15749. });
  15750. }
  15751. function FollowUpDate(props) {
  15752. const {
  15753. element
  15754. } = props;
  15755. const commandStack = useService('commandStack');
  15756. const translate = useService('translate');
  15757. const debounce = useService('debounceInput');
  15758. const businessObject = ModelUtil.getBusinessObject(element);
  15759. const getValue = () => {
  15760. return businessObject.get('camunda:followUpDate');
  15761. };
  15762. const setValue = value => {
  15763. commandStack.execute('element.updateModdleProperties', {
  15764. element,
  15765. moddleElement: businessObject,
  15766. properties: {
  15767. 'camunda:followUpDate': value
  15768. }
  15769. });
  15770. };
  15771. return propertiesPanel.TextFieldEntry({
  15772. element,
  15773. id: 'followUpDate',
  15774. label: translate('Follow up date'),
  15775. description: translate('The follow up date as an EL expression (e.g. ${someDate}) or an ' + 'ISO date (e.g. 2015-06-26T09:54:00).'),
  15776. getValue,
  15777. setValue,
  15778. debounce
  15779. });
  15780. }
  15781. function Priority(props) {
  15782. const {
  15783. element
  15784. } = props;
  15785. const commandStack = useService('commandStack');
  15786. const translate = useService('translate');
  15787. const debounce = useService('debounceInput');
  15788. const businessObject = ModelUtil.getBusinessObject(element);
  15789. const getValue = () => {
  15790. return businessObject.get('camunda:priority');
  15791. };
  15792. const setValue = value => {
  15793. commandStack.execute('element.updateModdleProperties', {
  15794. element,
  15795. moddleElement: businessObject,
  15796. properties: {
  15797. 'camunda:priority': value
  15798. }
  15799. });
  15800. };
  15801. return propertiesPanel.TextFieldEntry({
  15802. element,
  15803. id: 'priority',
  15804. label: translate('Priority'),
  15805. getValue,
  15806. setValue,
  15807. debounce
  15808. });
  15809. }
  15810. function VersionTagProps(props) {
  15811. const {
  15812. element
  15813. } = props;
  15814. const businessObject = ModelUtil.getBusinessObject(element);
  15815. if (!ModelUtil.is(element, 'bpmn:Process') && !(ModelUtil.is(element, 'bpmn:Participant') && businessObject.get('processRef'))) {
  15816. return [];
  15817. }
  15818. return [{
  15819. id: 'versionTag',
  15820. component: VersionTag,
  15821. isEdited: propertiesPanel.isTextFieldEntryEdited
  15822. }];
  15823. }
  15824. function VersionTag(props) {
  15825. const {
  15826. element
  15827. } = props;
  15828. const commandStack = useService('commandStack');
  15829. const translate = useService('translate');
  15830. const debounce = useService('debounceInput');
  15831. const process = getProcess(element);
  15832. const getValue = () => {
  15833. return process.get('camunda:versionTag') || '';
  15834. };
  15835. const setValue = value => {
  15836. commandStack.execute('element.updateModdleProperties', {
  15837. element,
  15838. moddleElement: process,
  15839. properties: {
  15840. 'camunda:versionTag': value
  15841. }
  15842. });
  15843. };
  15844. return propertiesPanel.TextFieldEntry({
  15845. element,
  15846. id: 'versionTag',
  15847. label: translate('Version tag'),
  15848. getValue,
  15849. setValue,
  15850. debounce
  15851. });
  15852. }
  15853. // helper //////////////////
  15854. function getProcess(element) {
  15855. return ModelUtil.is(element, 'bpmn:Process') ? ModelUtil.getBusinessObject(element) : ModelUtil.getBusinessObject(element).get('processRef');
  15856. }
  15857. const LOW_PRIORITY = 500;
  15858. const CAMUNDA_PLATFORM_GROUPS = [HistoryCleanupGroup, TasklistGroup, CandidateStarterGroup, ImplementationGroup, ExternalTaskGroup, ProcessVariablesGroup, ErrorsGroup, UserAssignmentGroup, FormGroup, FormDataGroup, TaskListenerGroup, StartInitiatorGroup, ScriptGroup, ConditionGroup, CallActivityGroup, AsynchronousContinuationsGroup, JobExecutionGroup, InMappingPropagationGroup, InMappingGroup, InputGroup, ConnectorInputGroup, OutMappingPropagationGroup, OutMappingGroup, OutputGroup, ConnectorOutputGroup, ExecutionListenerGroup, ExtensionPropertiesGroup, FieldInjectionGroup, BusinessKeyGroup];
  15859. /**
  15860. * Provides `camunda` namespace properties.
  15861. *
  15862. * @example
  15863. * ```javascript
  15864. * import BpmnModeler from 'bpmn-js/lib/Modeler';
  15865. * import {
  15866. * BpmnPropertiesPanelModule,
  15867. * BpmnPropertiesProviderModule,
  15868. * CamundaPlatformPropertiesProviderModule
  15869. * } from 'bpmn-js-properties-panel';
  15870. *
  15871. * const modeler = new BpmnModeler({
  15872. * container: '#canvas',
  15873. * propertiesPanel: {
  15874. * parent: '#properties'
  15875. * },
  15876. * additionalModules: [
  15877. * BpmnPropertiesPanelModule,
  15878. * BpmnPropertiesProviderModule,
  15879. * CamundaPlatformPropertiesProviderModule
  15880. * ]
  15881. * });
  15882. * ```
  15883. */
  15884. class CamundaPlatformPropertiesProvider {
  15885. constructor(propertiesPanel, injector) {
  15886. propertiesPanel.registerProvider(LOW_PRIORITY, this);
  15887. this._injector = injector;
  15888. }
  15889. getGroups(element) {
  15890. return groups => {
  15891. // (1) add Camunda Platform specific groups
  15892. groups = groups.concat(this._getGroups(element));
  15893. // (2) update existing groups with Camunda Platform specific properties
  15894. updateGeneralGroup(groups, element);
  15895. updateErrorGroup(groups, element);
  15896. updateEscalationGroup(groups, element);
  15897. updateMultiInstanceGroup(groups, element);
  15898. updateTimerGroup(groups, element);
  15899. // (3) move groups given specific priorities
  15900. moveImplementationGroup(groups);
  15901. return groups;
  15902. };
  15903. }
  15904. _getGroups(element) {
  15905. const groups = CAMUNDA_PLATFORM_GROUPS.map(createGroup => createGroup(element, this._injector));
  15906. // contract: if a group returns null, it should not be displayed at all
  15907. return groups.filter(group => group !== null);
  15908. }
  15909. }
  15910. CamundaPlatformPropertiesProvider.$inject = ['propertiesPanel', 'injector'];
  15911. /**
  15912. * This ensures the <Implementation> group always locates after <Documentation>
  15913. */
  15914. function moveImplementationGroup(groups) {
  15915. const documentationGroupIdx = findGroupIndex(groups, 'documentation');
  15916. if (documentationGroupIdx < 0) {
  15917. return;
  15918. }
  15919. return moveGroup(groups, 'CamundaPlatform__Implementation', documentationGroupIdx + 1);
  15920. }
  15921. function updateGeneralGroup(groups, element) {
  15922. const generalGroup = findGroup(groups, 'general');
  15923. if (!generalGroup) {
  15924. return;
  15925. }
  15926. const {
  15927. entries
  15928. } = generalGroup;
  15929. // (1) add version tag before executable (if existing)
  15930. const executableEntry = minDash.findIndex(entries, entry => entry.id === 'isExecutable');
  15931. const insertIndex = executableEntry >= 0 ? executableEntry : entries.length;
  15932. entries.splice(insertIndex, 0, ...VersionTagProps({
  15933. element
  15934. }));
  15935. }
  15936. function updateErrorGroup(groups, element) {
  15937. const errorGroup = findGroup(groups, 'error');
  15938. if (!errorGroup) {
  15939. return;
  15940. }
  15941. const {
  15942. entries
  15943. } = errorGroup;
  15944. ErrorProps({
  15945. element,
  15946. entries
  15947. });
  15948. }
  15949. function updateMultiInstanceGroup(groups, element) {
  15950. const multiInstanceGroup = findGroup(groups, 'multiInstance');
  15951. if (!multiInstanceGroup) {
  15952. return;
  15953. }
  15954. const {
  15955. entries
  15956. } = multiInstanceGroup;
  15957. MultiInstanceProps({
  15958. element,
  15959. entries
  15960. });
  15961. }
  15962. function updateEscalationGroup(groups, element) {
  15963. const escalationGroup = findGroup(groups, 'escalation');
  15964. if (!escalationGroup) {
  15965. return;
  15966. }
  15967. const {
  15968. entries
  15969. } = escalationGroup;
  15970. EscalationProps({
  15971. element,
  15972. entries
  15973. });
  15974. }
  15975. function updateTimerGroup(groups, element) {
  15976. const timerEventGroup = findGroup(groups, 'timer');
  15977. if (!timerEventGroup) {
  15978. return;
  15979. }
  15980. timerEventGroup.entries = [...TimerProps({
  15981. element
  15982. })];
  15983. }
  15984. function ImplementationGroup(element, injector) {
  15985. const translate = injector.get('translate');
  15986. const group = {
  15987. label: translate('Implementation'),
  15988. id: 'CamundaPlatform__Implementation',
  15989. component: propertiesPanel.Group,
  15990. entries: [...ImplementationProps({
  15991. element
  15992. })]
  15993. };
  15994. if (group.entries.length) {
  15995. return group;
  15996. }
  15997. return null;
  15998. }
  15999. function ErrorsGroup(element, injector) {
  16000. const translate = injector.get('translate');
  16001. const group = {
  16002. label: translate('Errors'),
  16003. id: 'CamundaPlatform__Errors',
  16004. component: propertiesPanel.ListGroup,
  16005. ...ErrorsProps({
  16006. element,
  16007. injector
  16008. })
  16009. };
  16010. if (group.items) {
  16011. return group;
  16012. }
  16013. return null;
  16014. }
  16015. function UserAssignmentGroup(element, injector) {
  16016. const translate = injector.get('translate');
  16017. const group = {
  16018. label: translate('User assignment'),
  16019. id: 'CamundaPlatform__UserAssignment',
  16020. component: propertiesPanel.Group,
  16021. entries: [...UserAssignmentProps({
  16022. element
  16023. })]
  16024. };
  16025. if (group.entries.length) {
  16026. return group;
  16027. }
  16028. return null;
  16029. }
  16030. function ScriptGroup(element, injector) {
  16031. const translate = injector.get('translate');
  16032. const group = {
  16033. label: translate('Script'),
  16034. id: 'CamundaPlatform__Script',
  16035. component: propertiesPanel.Group,
  16036. entries: [...ScriptTaskProps({
  16037. element
  16038. })]
  16039. };
  16040. if (group.entries.length) {
  16041. return group;
  16042. }
  16043. return null;
  16044. }
  16045. function CallActivityGroup(element, injector) {
  16046. const translate = injector.get('translate');
  16047. const group = {
  16048. label: translate('Called element'),
  16049. id: 'CamundaPlatform__CallActivity',
  16050. component: propertiesPanel.Group,
  16051. entries: [...CallActivityProps({
  16052. element
  16053. })]
  16054. };
  16055. if (group.entries.length) {
  16056. return group;
  16057. }
  16058. return null;
  16059. }
  16060. function ConditionGroup(element, injector) {
  16061. const translate = injector.get('translate');
  16062. const group = {
  16063. label: translate('Condition'),
  16064. id: 'CamundaPlatform__Condition',
  16065. component: propertiesPanel.Group,
  16066. entries: [...ConditionProps({
  16067. element
  16068. })]
  16069. };
  16070. if (group.entries.length) {
  16071. return group;
  16072. }
  16073. return null;
  16074. }
  16075. function StartInitiatorGroup(element, injector) {
  16076. const translate = injector.get('translate');
  16077. const group = {
  16078. label: translate('Start initiator'),
  16079. id: 'CamundaPlatform__StartInitiator',
  16080. component: propertiesPanel.Group,
  16081. entries: [...InitiatorProps({
  16082. element
  16083. })]
  16084. };
  16085. if (group.entries.length) {
  16086. return group;
  16087. }
  16088. return null;
  16089. }
  16090. function ExternalTaskGroup(element, injector) {
  16091. const translate = injector.get('translate');
  16092. const group = {
  16093. label: translate('External task'),
  16094. id: 'CamundaPlatform__ExternalTask',
  16095. component: propertiesPanel.Group,
  16096. entries: [...ExternalTaskPriorityProps({
  16097. element
  16098. })]
  16099. };
  16100. if (group.entries.length) {
  16101. return group;
  16102. }
  16103. return null;
  16104. }
  16105. function AsynchronousContinuationsGroup(element, injector) {
  16106. const translate = injector.get('translate');
  16107. const group = {
  16108. label: translate('Asynchronous continuations'),
  16109. id: 'CamundaPlatform__AsynchronousContinuations',
  16110. component: propertiesPanel.Group,
  16111. entries: [...AsynchronousContinuationsProps({
  16112. element
  16113. })]
  16114. };
  16115. if (group.entries.length) {
  16116. return group;
  16117. }
  16118. return null;
  16119. }
  16120. function JobExecutionGroup(element, injector) {
  16121. const translate = injector.get('translate');
  16122. const group = {
  16123. label: translate('Job execution'),
  16124. id: 'CamundaPlatform__JobExecution',
  16125. component: propertiesPanel.Group,
  16126. entries: [...JobExecutionProps({
  16127. element
  16128. })]
  16129. };
  16130. if (group.entries.length) {
  16131. return group;
  16132. }
  16133. return null;
  16134. }
  16135. function CandidateStarterGroup(element, injector) {
  16136. const translate = injector.get('translate');
  16137. const group = {
  16138. label: translate('Candidate starter'),
  16139. id: 'CamundaPlatform__CandidateStarter',
  16140. component: propertiesPanel.Group,
  16141. entries: [...CandidateStarterProps({
  16142. element
  16143. })]
  16144. };
  16145. if (group.entries.length) {
  16146. return group;
  16147. }
  16148. return null;
  16149. }
  16150. function FieldInjectionGroup(element, injector) {
  16151. const translate = injector.get('translate');
  16152. const group = {
  16153. label: translate('Field injections'),
  16154. id: 'CamundaPlatform__FieldInjection',
  16155. component: propertiesPanel.ListGroup,
  16156. ...FieldInjectionProps({
  16157. element,
  16158. injector
  16159. })
  16160. };
  16161. if (group.items) {
  16162. return group;
  16163. }
  16164. return null;
  16165. }
  16166. function HistoryCleanupGroup(element, injector) {
  16167. const translate = injector.get('translate');
  16168. const group = {
  16169. label: translate('History cleanup'),
  16170. id: 'CamundaPlatform__HistoryCleanup',
  16171. component: propertiesPanel.Group,
  16172. entries: [...HistoryCleanupProps({
  16173. element
  16174. })]
  16175. };
  16176. if (group.entries.length) {
  16177. return group;
  16178. }
  16179. return null;
  16180. }
  16181. function TasklistGroup(element, injector) {
  16182. const translate = injector.get('translate');
  16183. const group = {
  16184. label: translate('Tasklist'),
  16185. id: 'CamundaPlatform__Tasklist',
  16186. component: propertiesPanel.Group,
  16187. entries: [...TasklistProps({
  16188. element
  16189. })]
  16190. };
  16191. if (group.entries.length) {
  16192. return group;
  16193. }
  16194. return null;
  16195. }
  16196. function InMappingGroup(element, injector) {
  16197. const translate = injector.get('translate');
  16198. const group = {
  16199. label: translate('In mappings'),
  16200. id: 'CamundaPlatform__InMapping',
  16201. component: propertiesPanel.ListGroup,
  16202. ...InMappingProps({
  16203. element,
  16204. injector
  16205. })
  16206. };
  16207. if (group.items) {
  16208. return group;
  16209. }
  16210. return null;
  16211. }
  16212. function InMappingPropagationGroup(element, injector) {
  16213. const translate = injector.get('translate');
  16214. const group = {
  16215. label: translate('In mapping propagation'),
  16216. id: 'CamundaPlatform__InMappingPropagation',
  16217. component: propertiesPanel.Group,
  16218. entries: [...InMappingPropagationProps({
  16219. element
  16220. })]
  16221. };
  16222. if (group.entries.length) {
  16223. return group;
  16224. }
  16225. return null;
  16226. }
  16227. function OutMappingGroup(element, injector) {
  16228. const translate = injector.get('translate');
  16229. const group = {
  16230. label: translate('Out mappings'),
  16231. id: 'CamundaPlatform__OutMapping',
  16232. component: propertiesPanel.ListGroup,
  16233. ...OutMappingProps({
  16234. element,
  16235. injector
  16236. })
  16237. };
  16238. if (group.items) {
  16239. return group;
  16240. }
  16241. return null;
  16242. }
  16243. function OutMappingPropagationGroup(element, injector) {
  16244. const translate = injector.get('translate');
  16245. const group = {
  16246. label: translate('Out mapping propagation'),
  16247. id: 'CamundaPlatform__OutMappingPropagation',
  16248. component: propertiesPanel.Group,
  16249. entries: [...OutMappingPropagationProps({
  16250. element
  16251. })]
  16252. };
  16253. if (group.entries.length) {
  16254. return group;
  16255. }
  16256. return null;
  16257. }
  16258. function ProcessVariablesGroup(element, injector) {
  16259. const translate = injector.get('translate');
  16260. const variableProps = ProcessVariablesProps({
  16261. element,
  16262. injector
  16263. });
  16264. if (!variableProps) {
  16265. return null;
  16266. }
  16267. const group = {
  16268. label: translate('Process variables'),
  16269. id: 'CamundaPlatform__ProcessVariables',
  16270. ...variableProps
  16271. };
  16272. return group;
  16273. }
  16274. function FormDataGroup(element, injector) {
  16275. const translate = injector.get('translate');
  16276. const group = {
  16277. label: translate('Form fields'),
  16278. id: 'CamundaPlatform__FormData',
  16279. component: propertiesPanel.ListGroup,
  16280. ...FormDataProps({
  16281. element,
  16282. injector
  16283. })
  16284. };
  16285. if (group.items) {
  16286. return group;
  16287. }
  16288. return null;
  16289. }
  16290. function BusinessKeyGroup(element, injector) {
  16291. const translate = injector.get('translate');
  16292. const group = {
  16293. label: translate('Business key'),
  16294. id: 'CamundaPlatform__BusinessKey',
  16295. component: propertiesPanel.Group,
  16296. entries: [...BusinessKeyProps$1({
  16297. element
  16298. })]
  16299. };
  16300. if (group.entries.length) {
  16301. return group;
  16302. }
  16303. return null;
  16304. }
  16305. function FormGroup(element, injector) {
  16306. const translate = injector.get('translate');
  16307. const group = {
  16308. label: translate('Forms'),
  16309. id: 'CamundaPlatform__Form',
  16310. component: propertiesPanel.Group,
  16311. entries: [...FormProps({
  16312. element
  16313. })]
  16314. };
  16315. if (group.entries.length) {
  16316. return group;
  16317. }
  16318. return null;
  16319. }
  16320. function ExecutionListenerGroup(element, injector) {
  16321. const translate = injector.get('translate');
  16322. const group = {
  16323. label: translate('Execution listeners'),
  16324. id: 'CamundaPlatform__ExecutionListener',
  16325. component: propertiesPanel.ListGroup,
  16326. ...ExecutionListenerProps({
  16327. element,
  16328. injector
  16329. })
  16330. };
  16331. if (group.items) {
  16332. return group;
  16333. }
  16334. return null;
  16335. }
  16336. function TaskListenerGroup(element, injector) {
  16337. const translate = injector.get('translate');
  16338. const group = {
  16339. label: translate('Task listeners'),
  16340. id: 'CamundaPlatform__TaskListener',
  16341. component: propertiesPanel.ListGroup,
  16342. ...TaskListenerProps({
  16343. element,
  16344. injector
  16345. })
  16346. };
  16347. if (group.items) {
  16348. return group;
  16349. }
  16350. return null;
  16351. }
  16352. function InputGroup(element, injector) {
  16353. const translate = injector.get('translate');
  16354. const group = {
  16355. label: translate('Inputs'),
  16356. id: 'CamundaPlatform__Input',
  16357. component: propertiesPanel.ListGroup,
  16358. ...InputProps({
  16359. element,
  16360. injector
  16361. })
  16362. };
  16363. if (group.items) {
  16364. return group;
  16365. }
  16366. return null;
  16367. }
  16368. function OutputGroup(element, injector) {
  16369. const translate = injector.get('translate');
  16370. const group = {
  16371. label: translate('Outputs'),
  16372. id: 'CamundaPlatform__Output',
  16373. component: propertiesPanel.ListGroup,
  16374. ...OutputProps({
  16375. element,
  16376. injector
  16377. })
  16378. };
  16379. if (group.items) {
  16380. return group;
  16381. }
  16382. return null;
  16383. }
  16384. function ConnectorInputGroup(element, injector) {
  16385. const translate = injector.get('translate');
  16386. const group = {
  16387. label: translate('Connector inputs'),
  16388. id: 'CamundaPlatform__ConnectorInput',
  16389. component: propertiesPanel.ListGroup,
  16390. ...ConnectorInputProps({
  16391. element,
  16392. injector
  16393. })
  16394. };
  16395. if (group.items) {
  16396. return group;
  16397. }
  16398. return null;
  16399. }
  16400. function ConnectorOutputGroup(element, injector) {
  16401. const translate = injector.get('translate');
  16402. const group = {
  16403. label: translate('Connector outputs'),
  16404. id: 'CamundaPlatform__ConnectorOutput',
  16405. component: propertiesPanel.ListGroup,
  16406. ...ConnectorOutputProps({
  16407. element,
  16408. injector
  16409. })
  16410. };
  16411. if (group.items) {
  16412. return group;
  16413. }
  16414. return null;
  16415. }
  16416. function ExtensionPropertiesGroup(element, injector) {
  16417. const translate = injector.get('translate');
  16418. const group = {
  16419. label: translate('Extension properties'),
  16420. id: 'CamundaPlatform__ExtensionProperties',
  16421. component: propertiesPanel.ListGroup,
  16422. ...ExtensionPropertiesProps({
  16423. element,
  16424. injector
  16425. })
  16426. };
  16427. if (group.items) {
  16428. return group;
  16429. }
  16430. return null;
  16431. }
  16432. // helper /////////////////////
  16433. function findGroup(groups, id) {
  16434. return groups.find(g => g.id === id);
  16435. }
  16436. function findGroupIndex(groups, id) {
  16437. return minDash.findIndex(groups, g => g.id === id);
  16438. }
  16439. function moveGroup(groups, id, position) {
  16440. const groupIndex = findGroupIndex(groups, id);
  16441. if (position < 0 || groupIndex < 0) {
  16442. return;
  16443. }
  16444. return arrayMove.mutate(groups, groupIndex, position);
  16445. }
  16446. var index = {
  16447. __init__: ['camundaPlatformPropertiesProvider'],
  16448. camundaPlatformPropertiesProvider: ['type', CamundaPlatformPropertiesProvider]
  16449. };
  16450. /* eslint-disable react-hooks/rules-of-hooks */
  16451. const TooltipProvider = {
  16452. 'group-assignmentDefinition': element => {
  16453. const translate = useService('translate');
  16454. return jsxRuntime.jsxs("div", {
  16455. children: [translate('Define who the task is assigned to. One or all of the following attributes can be specified simultaneously. '), jsxRuntime.jsx("a", {
  16456. href: "https://docs.camunda.io/docs/components/modeler/bpmn/user-tasks/#assignments",
  16457. target: "_blank",
  16458. rel: "noopener",
  16459. title: translate('User task documentation'),
  16460. children: translate('Learn more.')
  16461. })]
  16462. });
  16463. },
  16464. 'group-condition': element => {
  16465. const translate = useService('translate');
  16466. return jsxRuntime.jsxs("div", {
  16467. children: [translate('Define a boolean condition expression that defines when this flow is taken. '), jsxRuntime.jsx("a", {
  16468. href: "https://docs.camunda.io/docs/components/modeler/bpmn/exclusive-gateways/#conditions",
  16469. target: "_blank",
  16470. rel: "noopener",
  16471. title: translate('Conditions documentation'),
  16472. children: translate('Learn how to define conditions.')
  16473. })]
  16474. });
  16475. },
  16476. 'group-businessRuleImplementation': element => {
  16477. const translate = useService('translate');
  16478. return jsxRuntime.jsxs("div", {
  16479. children: [translate('Evaluate a business rule, for example a DMN. To add a custom implementation, use a job worker. '), jsxRuntime.jsx("a", {
  16480. href: "https://docs.camunda.io/docs/components/modeler/bpmn/business-rule-tasks/#defining-a-task",
  16481. target: "_blank",
  16482. rel: "noopener",
  16483. title: translate('Business rule task documentation'),
  16484. children: translate('Learn more.')
  16485. })]
  16486. });
  16487. },
  16488. 'group-scriptImplementation': element => {
  16489. const translate = useService('translate');
  16490. return jsxRuntime.jsxs("div", {
  16491. children: [translate('Implement a script task using an inline FEEL expression. To add a custom implementation, use a job worker. '), jsxRuntime.jsx("a", {
  16492. href: "https://docs.camunda.io/docs/components/modeler/bpmn/script-tasks/#defining-a-script-task",
  16493. target: "_blank",
  16494. rel: "noopener",
  16495. title: translate('Script task documentation'),
  16496. children: translate('Learn more.')
  16497. })]
  16498. });
  16499. },
  16500. 'group-form': element => {
  16501. const translate = useService('translate');
  16502. return jsxRuntime.jsxs("div", {
  16503. children: [translate('Link or embed a form created with the Camunda Forms editor. To associate a custom form, application, or URL to the user task, specify a form key. '), jsxRuntime.jsx("a", {
  16504. href: "https://docs.camunda.io/docs/guides/utilizing-forms/#connect-your-form-to-a-bpmn-diagram",
  16505. target: "_blank",
  16506. rel: "noopener",
  16507. title: translate('User task form documentation'),
  16508. children: translate('Learn more.')
  16509. })]
  16510. });
  16511. },
  16512. 'group-message': element => {
  16513. const translate = useService('translate');
  16514. if (ModelUtil.is(element, 'bpmn:ReceiveTask')) {
  16515. return jsxRuntime.jsxs("div", {
  16516. children: [translate('Define the name of the message (e.g. '), jsxRuntime.jsx("code", {
  16517. children: "Money collected"
  16518. }), translate(') and the '), jsxRuntime.jsx("code", {
  16519. children: "correlationKey"
  16520. }), translate(' expression (e.g. '), jsxRuntime.jsx("code", {
  16521. children: "= orderId"
  16522. }), translate(')'), translate(' to subscribe to. '), translate('Learn more how to '), jsxRuntime.jsx("a", {
  16523. href: "https://docs.camunda.io/docs/components/modeler/bpmn/send-tasks",
  16524. target: "_blank",
  16525. rel: "noopener",
  16526. title: translate('Send task documentation'),
  16527. children: translate('send ')
  16528. }), translate('and '), jsxRuntime.jsx("a", {
  16529. href: "https://docs.camunda.io/docs/components/modeler/bpmn/receive-tasks",
  16530. target: "_blank",
  16531. rel: "noopener",
  16532. title: translate('Receive task documentation'),
  16533. children: translate('receive messages. ')
  16534. })]
  16535. });
  16536. }
  16537. return jsxRuntime.jsxs("div", {
  16538. children: [translate('Define the name of the message (e.g. '), jsxRuntime.jsx("code", {
  16539. children: "Money collected"
  16540. }), translate(') and the '), jsxRuntime.jsx("code", {
  16541. children: "correlationKey"
  16542. }), translate(' expression (e.g. '), jsxRuntime.jsx("code", {
  16543. children: "= orderId"
  16544. }), translate(')'), translate(' to subscribe to. '), jsxRuntime.jsx("a", {
  16545. href: "https://docs.camunda.io/docs/components/modeler/bpmn/message-events/#messages",
  16546. target: "_blank",
  16547. rel: "noopener",
  16548. title: translate('Message event documentation'),
  16549. children: translate('Learn more.')
  16550. })]
  16551. });
  16552. },
  16553. 'group-calledElement': element => {
  16554. const translate = useService('translate');
  16555. return jsxRuntime.jsxs("div", {
  16556. children: [translate('Define the ID of the process to call (e.g. '), " ", jsxRuntime.jsx("code", {
  16557. children: "shipping-process"
  16558. }), translate(' or '), jsxRuntime.jsx("code", {
  16559. children: "= \"shipping-\" + tenantId"
  16560. }), " ", translate('). '), jsxRuntime.jsx("a", {
  16561. href: "https://docs.camunda.io/docs/components/modeler/bpmn/call-activities/",
  16562. target: "_blank",
  16563. rel: "noopener",
  16564. title: translate('Call activity documentation'),
  16565. children: translate('Learn more.')
  16566. })]
  16567. });
  16568. },
  16569. 'group-taskDefinition': element => {
  16570. const translate = useService('translate');
  16571. if (ModelUtil.is(element, 'bpmn:ServiceTask')) {
  16572. return jsxRuntime.jsxs("div", {
  16573. children: [translate('Specify which job workers handle the task work to execute a service (e.g. '), jsxRuntime.jsx("code", {
  16574. children: "order-items"
  16575. }), translate('). '), jsxRuntime.jsx("a", {
  16576. href: "https://docs.camunda.io/docs/components/modeler/bpmn/service-tasks",
  16577. target: "_blank",
  16578. rel: "noopener",
  16579. title: translate('Service task documentation'),
  16580. children: translate('Learn more.')
  16581. })]
  16582. });
  16583. }
  16584. if (ModelUtil.is(element, 'bpmn:BusinessRuleTask')) {
  16585. return jsxRuntime.jsxs("div", {
  16586. children: [translate('Specify which job workers handle the task work to evaluate business rules. '), jsxRuntime.jsx("a", {
  16587. href: "https://docs.camunda.io/docs/components/modeler/bpmn/business-rule-tasks/#job-worker-implementation",
  16588. target: "_blank",
  16589. rel: "noopener",
  16590. title: translate('Business rule task documentation'),
  16591. children: translate('Learn more.')
  16592. })]
  16593. });
  16594. }
  16595. if (ModelUtil.is(element, 'bpmn:ScriptTask')) {
  16596. return jsxRuntime.jsxs("div", {
  16597. children: [translate('Specify which job workers handle the task work to execute a script. '), jsxRuntime.jsx("a", {
  16598. href: "https://docs.camunda.io/docs/components/modeler/bpmn/script-tasks/#defining-a-task",
  16599. target: "_blank",
  16600. rel: "noopener",
  16601. title: translate('Script task documentation'),
  16602. children: translate('Learn more.')
  16603. })]
  16604. });
  16605. }
  16606. if (ModelUtil.is(element, 'bpmn:SendTask')) {
  16607. return jsxRuntime.jsxs("div", {
  16608. children: [translate('Specify which job workers handle the task work to send a message (e.g. '), jsxRuntime.jsx("code", {
  16609. children: "kafka"
  16610. }), translate(' or '), jsxRuntime.jsx("code", {
  16611. children: "mail"
  16612. }), translate('). '), jsxRuntime.jsx("a", {
  16613. href: "https://docs.camunda.io/docs/components/modeler/bpmn/send-tasks/#defining-a-task",
  16614. target: "_blank",
  16615. rel: "noopener",
  16616. title: translate('Send task documentation'),
  16617. children: translate('Learn more.')
  16618. })]
  16619. });
  16620. }
  16621. if (ModelUtil.is(element, 'bpmn:ThrowEvent')) {
  16622. return jsxRuntime.jsxs("div", {
  16623. children: [translate('Specify which job workers handle the event work. '), jsxRuntime.jsx("a", {
  16624. href: "https://docs.camunda.io/docs/components/modeler/bpmn/message-events/#message-throw-events",
  16625. target: "_blank",
  16626. rel: "noopener",
  16627. title: translate('Message throw event documentation'),
  16628. children: translate('Learn more.')
  16629. })]
  16630. });
  16631. }
  16632. },
  16633. 'group-multiInstance': element => {
  16634. const translate = useService('translate');
  16635. return jsxRuntime.jsxs("div", {
  16636. children: [translate('Execute this task for each element of a given collection. '), jsxRuntime.jsx("br", {}), translate('Define an input collection expression that defines the collection to iterate over (e.g. '), jsxRuntime.jsx("code", {
  16637. children: "= items"
  16638. }), translate('). '), translate('To collect the output define the output collection and the output element expressions. '), jsxRuntime.jsx("a", {
  16639. href: "https://docs.camunda.io/docs/components/modeler/bpmn/multi-instance/#defining-the-collection-to-iterate-over",
  16640. target: "_blank",
  16641. rel: "noopener",
  16642. title: translate('Multi instance documentation'),
  16643. children: translate('Learn more.')
  16644. })]
  16645. });
  16646. },
  16647. 'group-error': element => {
  16648. const translate = useService('translate');
  16649. return jsxRuntime.jsxs("div", {
  16650. children: [translate('Define an error code (e.g. '), jsxRuntime.jsx("code", {
  16651. children: "order-not-found"
  16652. }), translate('). '), jsxRuntime.jsx("a", {
  16653. href: "https://docs.camunda.io/docs/components/modeler/bpmn/error-events/#defining-the-error",
  16654. target: "_blank",
  16655. rel: "noopener",
  16656. title: translate('Error event documentation'),
  16657. children: translate('Learn more.')
  16658. })]
  16659. });
  16660. },
  16661. 'group-inputs': element => {
  16662. const translate = useService('translate');
  16663. return jsxRuntime.jsxs("div", {
  16664. children: [translate('Create a new local variable in the scope of this task. '), jsxRuntime.jsx("a", {
  16665. href: "https://docs.camunda.io/docs/components/concepts/variables/#input-mappings",
  16666. target: "_blank",
  16667. rel: "noopener",
  16668. title: translate('Input mappings documentation'),
  16669. children: translate('Learn more.')
  16670. })]
  16671. });
  16672. },
  16673. 'group-outputs': element => {
  16674. const translate = useService('translate');
  16675. return jsxRuntime.jsxs("div", {
  16676. children: [translate('Customize how result variables are merged into the global scope of the process instance. '), jsxRuntime.jsx("a", {
  16677. href: "https://docs.camunda.io/docs/components/concepts/variables/#output-mappings",
  16678. target: "_blank",
  16679. rel: "noopener",
  16680. title: translate('Output mappings documentation'),
  16681. children: translate('Learn more.')
  16682. })]
  16683. });
  16684. }
  16685. };
  16686. exports.BpmnPropertiesPanelModule = index$3;
  16687. exports.BpmnPropertiesProviderModule = index$2;
  16688. exports.CamundaPlatformPropertiesProviderModule = index;
  16689. exports.ZeebePropertiesProviderModule = index$1;
  16690. exports.ZeebeTooltipProvider = TooltipProvider;
  16691. exports.useService = useService;
  16692. //# sourceMappingURL=index.js.map