| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422 |
- import { useContext, useState, useEffect, useMemo, useCallback } from 'preact/hooks';
- import { reduce, isArray, find, forEach, sortBy, without, isUndefined, has, findIndex, isDefined, filter, map, keys, flatten, groupBy } from 'min-dash';
- import { PropertiesPanel, DebounceInputModule, FeelPopupModule, usePrevious, SelectEntry, isCheckboxEntryEdited, isSelectEntryEdited, CheckboxEntry, isTextAreaEntryEdited, TextAreaEntry, isTextFieldEntryEdited, TextFieldEntry, Group, FeelEntry as FeelEntry$1, isFeelEntryEdited, isToggleSwitchEntryEdited, ToggleSwitchEntry, ListGroup, ListEntry, SimpleEntry, CollapsibleEntry } from '@bpmn-io/properties-panel';
- import { createContext, render } from 'preact';
- import { getLabel } from 'bpmn-js/lib/features/label-editing/LabelUtil';
- import { is, getBusinessObject, isAny as isAny$1 } from 'bpmn-js/lib/util/ModelUtil';
- import { isInterrupting as isInterrupting$1, isEventSubProcess, isExpanded } from 'bpmn-js/lib/util/DiUtil';
- import 'preact/compat';
- import { jsx, jsxs } from 'preact/jsx-runtime';
- import { isUndo, isRedo } from 'diagram-js/lib/features/keyboard/KeyboardUtil';
- import { domify, query, event } from 'min-dom';
- import { isAny } from 'bpmn-js/lib/features/modeling/util/ModelingUtil';
- import Ids from 'ids';
- import { add } from 'diagram-js/lib/util/Collections';
- import { getVariablesForElement } from '@bpmn-io/extract-process-variables/zeebe';
- import { mutate } from 'array-move';
- import { getVariablesForScope } from '@bpmn-io/extract-process-variables';
- const BpmnPropertiesPanelContext = createContext({
- selectedElement: null,
- injector: null,
- getService() {
- return null;
- }
- });
- function useService(type, strict) {
- const {
- getService
- } = useContext(BpmnPropertiesPanelContext);
- return getService(type, strict);
- }
- var AssociationIcon = function AssociationIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- stroke: "#000",
- strokeWidth: "2",
- fill: "none",
- strokeDasharray: "3.3,6",
- strokeLinecap: "square",
- d: "m1.5 30.5 29-29"
- })
- });
- };
- AssociationIcon.defaultProps = {
- width: "32",
- height: "32",
- xmlns: "http://www.w3.org/2000/svg"
- };
- var BusinessRuleTaskIcon = function BusinessRuleTaskIcon(props) {
- return jsxs("svg", {
- ...props,
- children: [jsx("path", {
- 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"
- }), jsx("path", {
- d: "M6.079 8.209v3.587H21.44V8.209z"
- })]
- });
- };
- BusinessRuleTaskIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var CallActivityIcon = function CallActivityIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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"
- })
- });
- };
- CallActivityIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var CollaborationIcon = function CollaborationIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsxs("g", {
- fillRule: "evenodd",
- children: [jsx("path", {
- fillRule: "nonzero",
- d: "M0 0v8.62h32V0H0zm1.655 7.054v-5.37h28.62v5.37H1.656zM0 23.38V32h32v-8.62H0zm1.655 7.054v-5.37h28.62v5.37H1.656z"
- }), jsx("path", {
- d: "m24 8 4 7h-8l4-7Zm0 2-2.28 4h4.56L24 10ZM23.5 21h1v3h-1zM23.5 15h1v3h-1zM8 24l-4-7h8l-4 7Zm0-2 2.28-4H5.72L8 22ZM7.5 8h1v3h-1zM7.5 14h1v3h-1z"
- })]
- })
- });
- };
- CollaborationIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var ConditionalFlowIcon = function ConditionalFlowIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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.397 8.54 28.91 2.03 29.97l1.061-6.515 6.512-1.058Z"
- })
- });
- };
- ConditionalFlowIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var ConnectionIcon = function ConnectionIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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"
- })
- });
- };
- ConnectionIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var DataInputOutputAssociationIcon = function DataInputOutputAssociationIcon(props) {
- return jsxs("svg", {
- ...props,
- children: [jsx("path", {
- stroke: "#000",
- strokeWidth: "2",
- strokeLinecap: "round",
- strokeDasharray: "1.1,4.3",
- d: "M1.5 30.5 27 5"
- }), jsx("path", {
- d: "M31.803.197 26.5 16.107l-1.52-1.52 3.783-11.35-11.35 3.783-1.52-1.52z"
- })]
- });
- };
- DataInputOutputAssociationIcon.defaultProps = {
- width: "32",
- height: "32",
- xmlns: "http://www.w3.org/2000/svg"
- };
- var DataInputIcon = function DataInputIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- d: "M20.833 0H3.488v32H28V7.36L20.833 0Zm-2.105 1.818v7.507h7.454v20.857H5.306V1.818h13.422Zm1.818.493 5.06 5.196h-5.06V2.311Zm-9.182.86v3.744H7.081v3.222h4.283v3.743l5.7-5.354-5.7-5.354Zm.808 1.868 3.711 3.487-3.71 3.487V9.329H7.888V7.723h4.283V5.039Z"
- })
- });
- };
- DataInputIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var DataObjectIcon = function DataObjectIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- d: "M21.345 0H4v32h24.512V7.36L21.345 0ZM19.24 1.818v7.507h7.454v20.857H5.818V1.818H19.24Zm1.818.493 5.06 5.196h-5.06V2.311Z"
- })
- });
- };
- DataObjectIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var DataOutputIcon = function DataOutputIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- d: "M20.833 0H3.488v32H28V7.36L20.833 0Zm-2.105 1.818v7.507h7.454v20.857H5.306V1.818h13.422Zm1.818.493 5.06 5.196h-5.06V2.311Zm-9.182.86v3.744H7.081v3.222h4.283v3.743l5.7-5.354-5.7-5.354Z"
- })
- });
- };
- DataOutputIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var DataStoreIcon = function DataStoreIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0-.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 0 0 0-.106v-.016l-.002-.013a.823.823 0 0 0-.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"
- })
- });
- };
- DataStoreIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var DefaultFlowIcon = function DefaultFlowIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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"
- })
- });
- };
- DefaultFlowIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var EndEventCancelIcon = function EndEventCancelIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0 15.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 0 1 5.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"
- })
- });
- };
- EndEventCancelIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var EndEventCompensationIcon = function EndEventCompensationIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0 15.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 0 1 5.592-1.522Zm-.56 5.744-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"
- })
- });
- };
- EndEventCompensationIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var EndEventErrorIcon = function EndEventErrorIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0 15.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 0 1 5.592-1.522Zm6.132 4.166-3.633 7.363-4.516-5.874-4.102 12.131 4.599-5.91 4.743 5.427 2.909-13.137Z"
- })
- });
- };
- EndEventErrorIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var EndEventEscalationIcon = function EndEventEscalationIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0 15.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 0 1 5.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"
- })
- });
- };
- EndEventEscalationIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var EndEventLinkIcon = function EndEventLinkIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0 15.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 0 1 5.592-1.522Zm1.78 4.065v3.555H9.779v6.713h7.994v3.554l5.828-6.91-5.828-6.912Z"
- })
- });
- };
- EndEventLinkIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var EndEventMessageIcon = function EndEventMessageIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0 15.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 0 1 5.592-1.522Zm-5.91 5.448 6.041 4.9 6.04-4.9H10.084Zm-1.34 1.137v9.92h14.513v-9.718l-7.132 5.786-7.381-5.988Z"
- })
- });
- };
- EndEventMessageIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var EndEventMultipleIcon = function EndEventMultipleIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0 15.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 0 1 5.592-1.522Zm.011 3.039-7.619 5.53 2.91 8.95h9.418l2.91-8.95-7.619-5.53Z"
- })
- });
- };
- EndEventMultipleIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var EndEventNoneIcon = function EndEventNoneIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0-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 0 1 6.948-2.276Z"
- })
- });
- };
- EndEventNoneIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var EndEventSignalIcon = function EndEventSignalIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0 15.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 0 1 5.592-1.522Zm.006 3.492c-2.261 4.07-4.532 8.136-6.797 12.204h13.595L15.999 8.55Z"
- })
- });
- };
- EndEventSignalIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var EndEventTerminateIcon = function EndEventTerminateIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0 15.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 0 1 5.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 0 0 16 7.915Z"
- })
- });
- };
- EndEventTerminateIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var EventSubProcessExpandedIcon = function EventSubProcessExpandedIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0-.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 0 0-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 0 0-.362-2.027l-1.122.425ZM.268 7.114A6.042 6.042 0 0 0 0 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 0 1-.522 1.32c.506.283 1.046.715 1.53.908a5.836 5.836 0 0 0 .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 0 1-.577-1.347l-1.73.42Zm28.427 1.943c-.371.277-.79.49-1.234.627l.548 1.693a5.84 5.84 0 0 0 1.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 0 1-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",
- opacity: ".97"
- })
- });
- };
- EventSubProcessExpandedIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var GatewayComplexIcon = function GatewayComplexIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- d: "M16.001 0a1.29 1.29 0 0 0-.917.373L.373 15.084a1.316 1.316 0 0 0 .002 1.834l14.71 14.709a1.313 1.313 0 0 0 1.833 0l14.711-14.711a1.316 1.316 0 0 0-.002-1.834L16.917.372A1.294 1.294 0 0 0 16.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"
- })
- });
- };
- GatewayComplexIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var GatewayEventBasedIcon = function GatewayEventBasedIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- d: "M16 0a1.29 1.29 0 0 0-.918.373L.371 15.084a1.316 1.316 0 0 0 .002 1.834l14.71 14.709a1.313 1.313 0 0 0 1.833 0l14.711-14.711a1.316 1.316 0 0 0-.002-1.834L16.915.372A1.294 1.294 0 0 0 16 0Zm-.002 2.181 13.821 13.821-13.821 13.821-13.821-13.82L15.998 2.18Zm0 5.876-.254.185-7.377 5.355 2.915 8.964h9.433l2.915-8.964-7.631-5.54Zm0 1.07 6.614 4.8-2.526 7.769h-8.175l-2.526-7.768 6.614-4.802Z"
- })
- });
- };
- GatewayEventBasedIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var GatewayNoneIcon = function GatewayNoneIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- d: "M.373 15.084a1.316 1.316 0 0 0 .002 1.834l14.71 14.709a1.313 1.313 0 0 0 1.833 0l14.711-14.711a1.316 1.316 0 0 0-.002-1.834L16.917.373a1.313 1.313 0 0 0-1.833 0L.373 15.084Zm1.806.918L16 2.182l13.821 13.82L16 29.823 2.179 16.003Z"
- })
- });
- };
- GatewayNoneIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var GatewayOrIcon = function GatewayOrIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- d: "M16.001 0a1.29 1.29 0 0 0-.917.373L.373 15.084a1.316 1.316 0 0 0 .002 1.834l14.71 14.709a1.313 1.313 0 0 0 1.833 0l14.711-14.711a1.316 1.316 0 0 0-.002-1.834L16.917.372A1.294 1.294 0 0 0 16.002 0ZM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18Zm0 6.379a7.447 7.447 0 0 0-7.44 7.441A7.447 7.447 0 0 0 16 23.443 7.447 7.447 0 0 0 23.443 16a7.447 7.447 0 0 0-7.441-7.441Zm0 .825a6.61 6.61 0 0 1 6.617 6.616A6.61 6.61 0 0 1 16 22.618 6.61 6.61 0 0 1 9.385 16 6.61 6.61 0 0 1 16 9.385Z"
- })
- });
- };
- GatewayOrIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var GatewayParallelIcon = function GatewayParallelIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- d: "M16.001 0a1.29 1.29 0 0 0-.917.373L.373 15.084a1.316 1.316 0 0 0 .002 1.834l14.71 14.709a1.313 1.313 0 0 0 1.833 0l14.711-14.711a1.316 1.316 0 0 0-.002-1.834L16.917.372A1.294 1.294 0 0 0 16.002 0ZM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18Zm-.377 5.708-.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"
- })
- });
- };
- GatewayParallelIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var GatewayXorIcon = function GatewayXorIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- d: "M16 0a1.29 1.29 0 0 0-.918.373L.371 15.084a1.316 1.316 0 0 0 .002 1.834l14.71 14.709a1.313 1.313 0 0 0 1.833 0l14.711-14.711a1.316 1.316 0 0 0-.002-1.834L16.915.372A1.294 1.294 0 0 0 16 0Zm-.002 2.181 13.821 13.821-13.821 13.821-13.821-13.82L15.998 2.18Zm-5.162 7.69-.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"
- })
- });
- };
- GatewayXorIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var GroupIcon = function GroupIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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"
- })
- });
- };
- GroupIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventCatchCancelIcon = function IntermediateEventCatchCancelIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 1 16 5.021Zm-3.956 3.946-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.222 3.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"
- })
- });
- };
- IntermediateEventCatchCancelIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventCatchCompensationIcon = function IntermediateEventCatchCompensationIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 1 16 5.021Zm-.56 5.772-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"
- })
- });
- };
- IntermediateEventCatchCompensationIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventCatchConditionIcon = function IntermediateEventCatchConditionIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0 15.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 0 1 6.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"
- })
- });
- };
- IntermediateEventCatchConditionIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventCatchErrorIcon = function IntermediateEventCatchErrorIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 1 16 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"
- })
- });
- };
- IntermediateEventCatchErrorIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventCatchEscalationIcon = function IntermediateEventCatchEscalationIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 1 16 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"
- })
- });
- };
- IntermediateEventCatchEscalationIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventCatchLinkIcon = function IntermediateEventCatchLinkIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 1 16 5.021Zm1.78 4.093v3.555H9.785v6.714h7.994v3.554l5.829-6.911-5.83-6.912Zm.974 2.584 3.61 4.295-3.61 4.294v-1.933h-7.88v-4.688h7.88v-1.968Z"
- })
- });
- };
- IntermediateEventCatchLinkIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventCatchMessageIcon = function IntermediateEventCatchMessageIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 1 16 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"
- })
- });
- };
- IntermediateEventCatchMessageIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventCatchMultipleIcon = function IntermediateEventCatchMultipleIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 1 16 4.975Zm.006 3.073-7.62 5.531 2.91 8.95h9.42l2.91-8.95-7.62-5.53Zm0 1.067 6.604 4.794-2.523 7.757h-8.162l-2.522-7.757 6.603-4.794Z"
- })
- });
- };
- IntermediateEventCatchMultipleIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventCatchNonInterruptingConditionIcon = function IntermediateEventCatchNonInterruptingConditionIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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.935-.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.344-.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.366-.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.116-.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.601-.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.572-.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.024-.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.701-.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.087-.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"
- })
- });
- };
- IntermediateEventCatchNonInterruptingConditionIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventCatchNonInterruptingEscalationIcon = function IntermediateEventCatchNonInterruptingEscalationIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0-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 0 1 4.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 0 0-.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 0 1-.334-5.808.874.874 0 0 0-.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 0 0 1.821-8.372.876.876 0 0 0-.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 0 1-1.603-6.861.876.876 0 0 0-.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 0 0-.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 0 1-4.723-3.396.899.899 0 0 0-.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 0 1-6.345-3.066.929.929 0 0 0-.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"
- })
- });
- };
- IntermediateEventCatchNonInterruptingEscalationIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventCatchNonInterruptingMessageIcon = function IntermediateEventCatchNonInterruptingMessageIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- d: "M8.742 10.464v11.072h14.516V10.464H8.742Zm3.224 1.73h8.066a69569 69569 0 0 0-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.935-.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.366-.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.116-.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.601-.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 15 .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.024-.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.701-.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.087-.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"
- })
- });
- };
- IntermediateEventCatchNonInterruptingMessageIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventCatchNonInterruptingMultipleIcon = function IntermediateEventCatchNonInterruptingMultipleIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- d: "m23.637 13.902-7.625-5.535-7.624 5.535 2.912 8.956h9.425l2.912-8.956Zm-1.017.33-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 0 0-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 0 1 4.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 0 0-.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 0 1-.334-5.808.874.874 0 0 0-.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 0 0 1.821-8.372.876.876 0 0 0-.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 0 1-1.603-6.861.876.876 0 0 0-.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 0 0-.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 0 1-4.723-3.396.899.899 0 0 0-.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 0 1-6.345-3.066.929.929 0 0 0-.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"
- })
- });
- };
- IntermediateEventCatchNonInterruptingMultipleIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventCatchNonInterruptingParallelIcon = function IntermediateEventCatchNonInterruptingParallelIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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.935-.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.366-.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.116-.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.601-.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 15 .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.024-.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.701-.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.087-.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",
- opacity: ".98"
- })
- });
- };
- IntermediateEventCatchNonInterruptingParallelIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventCatchNonInterruptingSignalIcon = function IntermediateEventCatchNonInterruptingSignalIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- d: "M16.012 8.816 9.21 21.026h13.606l-6.803-12.21Zm0 1.776 5.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 0 0-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 0 1 4.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 0 0-.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 0 1-.334-5.808.874.874 0 0 0-.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 0 0 1.821-8.372.876.876 0 0 0-.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 0 1-1.603-6.861.876.876 0 0 0-.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 0 0-.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 0 1-4.723-3.396.899.899 0 0 0-.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 0 1-6.345-3.066.929.929 0 0 0-.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"
- })
- });
- };
- IntermediateEventCatchNonInterruptingSignalIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventCatchNonInterruptingTimerIcon = function IntermediateEventCatchNonInterruptingTimerIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0-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.765-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.116-.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.202-.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.691-.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.939-.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.348-.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.15-.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.073-.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"
- })
- });
- };
- IntermediateEventCatchNonInterruptingTimerIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventCatchParallelMultipleIcon = function IntermediateEventCatchParallelMultipleIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 1 16 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"
- })
- });
- };
- IntermediateEventCatchParallelMultipleIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventCatchSignalIcon = function IntermediateEventCatchSignalIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 1 16 5.021Zm.006 3.521L9.206 20.745h13.598L16.005 8.542Zm0 1.775 5.329 9.564H10.677l5.328-9.564Z"
- })
- });
- };
- IntermediateEventCatchSignalIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventCatchTimerIcon = function IntermediateEventCatchTimerIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0 15.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 0 1 6.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 0 0-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.764-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"
- })
- });
- };
- IntermediateEventCatchTimerIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventNoneIcon = function IntermediateEventNoneIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0 15.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 0 1 5.806-1.508Z"
- })
- });
- };
- IntermediateEventNoneIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventThrowCompensationIcon = function IntermediateEventThrowCompensationIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 1 16 4.975Zm-.56 5.772-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"
- })
- });
- };
- IntermediateEventThrowCompensationIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventThrowEscalationIcon = function IntermediateEventThrowEscalationIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 1 16 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"
- })
- });
- };
- IntermediateEventThrowEscalationIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventThrowLinkIcon = function IntermediateEventThrowLinkIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 1 16 5.021Zm1.78 4.093v3.555H9.785v6.714h7.994v3.554l5.829-6.911-5.83-6.912Z"
- })
- });
- };
- IntermediateEventThrowLinkIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventThrowMessageIcon = function IntermediateEventThrowMessageIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 1 16 4.975Zm-5.91 5.475 6.04 4.901 6.042-4.9H10.088Zm-1.341 1.138v9.921h14.514V11.79l-7.132 5.787-7.382-5.99Z"
- })
- });
- };
- IntermediateEventThrowMessageIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventThrowMultipleIcon = function IntermediateEventThrowMultipleIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 1 16 4.975Zm.006 3.073-7.62 5.532 2.91 8.95h9.42l2.91-8.95-7.62-5.532Z"
- })
- });
- };
- IntermediateEventThrowMultipleIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var IntermediateEventThrowSignalIcon = function IntermediateEventThrowSignalIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 1 16 4.975Zm.006 3.52c-2.261 4.07-4.533 8.136-6.798 12.205h13.596L16.005 8.495Z"
- })
- });
- };
- IntermediateEventThrowSignalIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var LaneIcon = function LaneIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- d: "M0 7v18.62h32V7H0Zm1.655 17.056V8.684h28.62v15.372H1.656Z"
- })
- });
- };
- LaneIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var ManualTaskIcon = function ManualTaskIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0-.097-.625h.327c.335 0 .641-.11.852-.316.21-.206.317-.475.374-.754a1.783 1.783 0 0 0-.126-1.143 1.18 1.18 0 0 0 .877-.521c.196-.306.257-.666.258-1.025.001-.375-.088-.738-.293-1.033a1.179 1.179 0 0 0-.958-.512h-.478c.108-.237.156-.505.155-.782-.003-.373-.098-.721-.316-.99a1.21 1.21 0 0 0-.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 0 0-.148-.008Zm.029.728.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 0 1 .241-.087Z"
- })
- });
- };
- ManualTaskIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var MessageFlowIcon = function MessageFlowIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- d: "m4.073 26.607 1.295 1.296L1.325 32l-.662-.633L0 30.735l4.073-4.128Zm6.953-7.046 1.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.06-.015.007-.115.057-.048.024-.115.057L17.7 9.172l5.017 4.948 5.157-10Z"
- })
- });
- };
- MessageFlowIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var ParticipantIcon = function ParticipantIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- d: "M0 5v22.069h32V5H0Zm30.276 1.684v18.82H6.62V6.684h23.655Zm-28.62 0h3.31v18.82h-3.31V6.684Z"
- })
- });
- };
- ParticipantIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var ProcessIcon = function ProcessIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- fillRule: "evenodd",
- d: "m16.177 0 .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 0 1 .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 0 0-.031.896c.512.889.92 1.846 1.204 2.855a.833.833 0 0 0 .653.601l2.435.42c.342.059.61.333.645.679a15.928 15.928 0 0 1 .08 2.064l-.003.114c-.012.382-.038.76-.077 1.134a.775.775 0 0 1-.645.68l-2.396.412a.835.835 0 0 0-.656.61 12.511 12.511 0 0 1-1.2 2.917.832.832 0 0 0 .034.892l1.396 1.978c.2.284.196.667-.023.936a16.104 16.104 0 0 1-2.343 2.343.775.775 0 0 1-.937.023l-1.99-1.404a.833.833 0 0 0-.88-.026c-.907.516-1.886.922-2.916 1.2a.833.833 0 0 0-.61.656l-.414 2.396a.775.775 0 0 1-.679.646 16.096 16.096 0 0 1-3.312 0 .775.775 0 0 1-.679-.646l-.423-2.452a.834.834 0 0 0-.598-.636 12.474 12.474 0 0 1-1.468-.514 12.49 12.49 0 0 1-1.417-.68.833.833 0 0 0-.878.03l-2.026 1.43a.775.775 0 0 1-.937-.023 16.069 16.069 0 0 1-2.342-2.342.774.774 0 0 1-.024-.936l1.402-1.986a.833.833 0 0 0 .032-.896 12.507 12.507 0 0 1-1.214-2.911.833.833 0 0 0-.655-.606l-2.386-.412a.775.775 0 0 1-.646-.678 16.097 16.097 0 0 1 0-3.314.775.775 0 0 1 .646-.678l2.386-.412a.833.833 0 0 0 .655-.606 12.507 12.507 0 0 1 1.214-2.911.833.833 0 0 0-.032-.896L3.552 6.853a.774.774 0 0 1 .023-.936 16.091 16.091 0 0 1 2.343-2.343.775.775 0 0 1 .937-.023l2.03 1.433c.26.177.6.182.874.028.915-.512 1.88-.9 2.87-1.167a.833.833 0 0 0 .612-.656l.424-2.46a.775.775 0 0 1 .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"
- })
- });
- };
- ProcessIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var ReceiveTaskIcon = function ReceiveTaskIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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.21 8.018 5.274 8.018-5.275v9.853H5.987V8.73Z"
- })
- });
- };
- ReceiveTaskIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var ScriptTaskIcon = function ScriptTaskIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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.077-.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 0 0-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"
- })
- });
- };
- ScriptTaskIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var SendTaskIcon = function SendTaskIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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.16 8.332 4.717L21.78 8.16H5.114Zm.021 1.745v9.309H21.8V9.905l-8.353 4.655-8.31-4.655Z"
- })
- });
- };
- SendTaskIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var ServiceTaskIcon = function ServiceTaskIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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.105.003 1.158a4.19 4.19 0 0 0-.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 0 0 .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 0 0-.382-.905l.805-.807-1.57-1.546-.804.806a4.16 4.16 0 0 0-.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 0 1-1.21-.492l-.248-.162-.747.743-.528-.52.747-.744-.17-.25a3.546 3.546 0 0 1-.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 0 1 1.205-.504l.292-.06-.003-1.01Zm.388 2.685a1.65 1.65 0 0 0-1.645 1.645c0 .904.74 1.645 1.645 1.645a1.65 1.65 0 0 0 1.645-1.645 1.65 1.65 0 0 0-1.645-1.645Zm0 .73a.91.91 0 0 1 .915.915.91.91 0 0 1-.915.914.91.91 0 0 1-.915-.914.91.91 0 0 1 .915-.915Z"
- })
- });
- };
- ServiceTaskIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var StartEventCompensationIcon = function StartEventCompensationIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0 15.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.03-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"
- })
- });
- };
- StartEventCompensationIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var StartEventConditionIcon = function StartEventConditionIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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"
- })
- });
- };
- StartEventConditionIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var StartEventErrorIcon = function StartEventErrorIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0 15.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.45-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.889 4.299 5.449 1.073-2.39-1.028 4.135-4.387-5.16-1.78 2.75 1.823-4.784Z"
- })
- });
- };
- StartEventErrorIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var StartEventEscalationIcon = function StartEventEscalationIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0 15.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"
- })
- });
- };
- StartEventEscalationIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var StartEventMessageIcon = function StartEventMessageIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0 15.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"
- })
- });
- };
- StartEventMessageIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var StartEventMultipleIcon = function StartEventMultipleIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0 15.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.328-7.626 5.536c.97 2.986 1.942 5.971 2.913 8.957h9.426l2.912-8.957-7.625-5.536Zm0 1.068 6.609 4.798-2.525 7.763H11.91l-2.524-7.763 6.609-4.798Z"
- })
- });
- };
- StartEventMultipleIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var StartEventNonInterruptingConditionIcon = function StartEventNonInterruptingConditionIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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.783-.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.088-.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.66-.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.83-.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.054-.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"
- })
- });
- };
- StartEventNonInterruptingConditionIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var StartEventNonInterruptingEscalationIcon = function StartEventNonInterruptingEscalationIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0-.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 0 0-.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 0 0 1.761-8.54.865.865 0 0 0-.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 0 1 1.728 16a.876.876 0 0 0-.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"
- })
- });
- };
- StartEventNonInterruptingEscalationIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var StartEventNonInterruptingMessageIcon = function StartEventNonInterruptingMessageIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0-.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 0 0-.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 0 0 1.761-8.54.865.865 0 0 0-.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 0 1-1.672-6.874.876.876 0 0 0-.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"
- })
- });
- };
- StartEventNonInterruptingMessageIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var StartEventNonInterruptingMultipleIcon = function StartEventNonInterruptingMultipleIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- d: "M23.621 13.524 16 7.99l-7.622 5.534 2.911 8.952h9.422l2.911-8.952Zm-1.016.33-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 0 0-.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 0 0-.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 0 0 1.761-8.54.865.865 0 0 0-.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 0 1-1.672-6.874.876.876 0 0 0-.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"
- })
- });
- };
- StartEventNonInterruptingMultipleIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var StartEventNonInterruptingParallelMultipleIcon = function StartEventNonInterruptingParallelMultipleIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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.783-.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.088-.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.66-.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.83-.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.054-.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",
- opacity: ".98"
- })
- });
- };
- StartEventNonInterruptingParallelMultipleIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var StartEventNonInterruptingSignalIcon = function StartEventNonInterruptingSignalIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- d: "M16.007 8.82 9.21 21.022h13.596L16.007 8.82Zm0 1.775 5.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 0 0-.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 0 1-1.497 4.435c-.23 1.659 1.991 1.165 2.018-.199a14.277 14.277 0 0 0 1.254-7.552.865.865 0 0 0-.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 0 1-.684-4.39.877.877 0 0 0-.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"
- })
- });
- };
- StartEventNonInterruptingSignalIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var StartEventNonInterruptingTimerIcon = function StartEventNonInterruptingTimerIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0-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.764-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.783-.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-.092-.002-.003-.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.426-.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.088-.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.66-.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.83-.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.054-.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"
- })
- });
- };
- StartEventNonInterruptingTimerIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var StartEventNoneIcon = function StartEventNoneIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0 15.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"
- })
- });
- };
- StartEventNoneIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var StartEventParallelMultipleIcon = function StartEventParallelMultipleIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0 15.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"
- })
- });
- };
- StartEventParallelMultipleIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var StartEventSignalIcon = function StartEventSignalIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0 15.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.777 5.332 9.572H10.662l5.333-9.572Z"
- })
- });
- };
- StartEventSignalIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var StartEventTimerIcon = function StartEventTimerIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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 0 0-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.765-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"
- })
- });
- };
- StartEventTimerIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var SubprocessCollapsedIcon = function SubprocessCollapsedIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- d: "M5.637 3A5.644 5.644 0 0 0 0 8.637v15.417a5.644 5.644 0 0 0 5.637 5.637h20.726A5.644 5.644 0 0 0 32 24.054V8.637A5.644 5.644 0 0 0 26.363 3H5.637Zm0 1.778h20.726a3.83 3.83 0 0 1 3.859 3.859v15.417a3.83 3.83 0 0 1-3.859 3.858h-4.201V16.695H9.838v11.217H5.637a3.83 3.83 0 0 1-3.859-3.858V8.637a3.83 3.83 0 0 1 3.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"
- })
- });
- };
- SubprocessCollapsedIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var SubprocessExpandedIcon = function SubprocessExpandedIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- d: "M5.636 3A5.642 5.642 0 0 0 0 8.636v15.418a5.643 5.643 0 0 0 5.636 5.636h20.728A5.643 5.643 0 0 0 32 24.054V8.636A5.642 5.642 0 0 0 26.364 3H5.636Zm0 1.778h20.728a3.83 3.83 0 0 1 3.858 3.858v15.418a3.83 3.83 0 0 1-3.858 3.858h-4.203V16.723H9.84v11.189H5.636a3.83 3.83 0 0 1-3.858-3.858V8.636a3.83 3.83 0 0 1 3.858-3.858Zm5.331 13.074h10.066v10.06H10.967v-10.06Zm1.336 3.996v1.711h7.394v-1.71h-7.394Z"
- })
- });
- };
- SubprocessExpandedIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var TaskNoneIcon = function TaskNoneIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- 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"
- })
- });
- };
- TaskNoneIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var TextAnnotationicon = function TextAnnotationicon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- d: "M22.087 0v31.647H32v-1.788h-8.125V1.788H32V0h-9.913Zm-2.924 13.999-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.335-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"
- })
- });
- };
- TextAnnotationicon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var TransactionIcon = function TransactionIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- d: "M5.422 3A5.424 5.424 0 0 0 0 8.422v15.822a5.424 5.424 0 0 0 5.422 5.423h21.156A5.424 5.424 0 0 0 32 24.244V8.422A5.424 5.424 0 0 0 26.578 3H5.422Zm0 1.244h21.156a4.155 4.155 0 0 1 4.178 4.178v15.822a4.155 4.155 0 0 1-4.178 4.178H5.422a4.155 4.155 0 0 1-4.178-4.178V8.422a4.155 4.155 0 0 1 4.178-4.178Zm1.056 1.778a3.373 3.373 0 0 0-3.367 3.366v13.89a3.373 3.373 0 0 0 3.367 3.366h19.044a3.373 3.373 0 0 0 3.367-3.366V9.388a3.373 3.373 0 0 0-3.367-3.366H6.478Zm0 1.245h19.044c1.187 0 2.122.935 2.122 2.121v13.89a2.104 2.104 0 0 1-2.122 2.122H6.478a2.104 2.104 0 0 1-2.122-2.122V9.388c0-1.186.935-2.121 2.122-2.121Z"
- })
- });
- };
- TransactionIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var UserTaskIcon = function UserTaskIcon(props) {
- return jsx("svg", {
- ...props,
- children: jsx("path", {
- fillRule: "evenodd",
- 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 0 1-.056.19c-.417.417-1.157.66-1.908.66-.75 0-1.49-.243-1.908-.66a.422.422 0 0 1-.056-.19 1.949 1.949 0 0 1 .016-.43c.02-.146.049-.284.074-.388.177-.062.352-.118.521-.17l.048-.648a.616.616 0 0 0-.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.304-.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 0 0-.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"
- })
- });
- };
- UserTaskIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- width: "32",
- height: "32"
- };
- var iconsByType = {
- 'Association': AssociationIcon,
- 'BusinessRuleTask': BusinessRuleTaskIcon,
- 'CallActivity': CallActivityIcon,
- 'Collaboration': CollaborationIcon,
- 'ConditionalFlow': ConditionalFlowIcon,
- 'SequenceFlow': ConnectionIcon,
- 'DataInput': DataInputIcon,
- 'DataInputAssociation': DataInputOutputAssociationIcon,
- 'DataOutput': DataOutputIcon,
- 'DataOutputAssociation': DataInputOutputAssociationIcon,
- 'DataObjectReference': DataObjectIcon,
- 'DataStoreReference': DataStoreIcon,
- 'DefaultFlow': DefaultFlowIcon,
- 'CancelEndEvent': EndEventCancelIcon,
- 'CompensateEndEvent': EndEventCompensationIcon,
- 'ErrorEndEvent': EndEventErrorIcon,
- 'EscalationEndEvent': EndEventEscalationIcon,
- 'LinkEndEvent': EndEventLinkIcon,
- 'MessageEndEvent': EndEventMessageIcon,
- 'MultipleEndEvent': EndEventMultipleIcon,
- 'EndEvent': EndEventNoneIcon,
- 'SignalEndEvent': EndEventSignalIcon,
- 'TerminateEndEvent': EndEventTerminateIcon,
- 'EventSubProcess': EventSubProcessExpandedIcon,
- 'ComplexGateway': GatewayComplexIcon,
- 'EventBasedGateway': GatewayEventBasedIcon,
- 'ExclusiveGateway': GatewayXorIcon,
- 'Gateway': GatewayNoneIcon,
- 'InclusiveGateway': GatewayOrIcon,
- 'ParallelGateway': GatewayParallelIcon,
- 'Group': GroupIcon,
- 'CancelIntermediateCatchEvent': IntermediateEventCatchCancelIcon,
- 'CompensateIntermediateCatchEvent': IntermediateEventCatchCompensationIcon,
- 'ConditionalIntermediateCatchEvent': IntermediateEventCatchConditionIcon,
- 'ErrorIntermediateCatchEvent': IntermediateEventCatchErrorIcon,
- 'EscalationIntermediateCatchEvent': IntermediateEventCatchEscalationIcon,
- 'LinkIntermediateCatchEvent': IntermediateEventCatchLinkIcon,
- 'MessageIntermediateCatchEvent': IntermediateEventCatchMessageIcon,
- 'MultipleIntermediateCatchEvent': IntermediateEventCatchMultipleIcon,
- 'ConditionalIntermediateCatchEventNonInterrupting': IntermediateEventCatchNonInterruptingConditionIcon,
- 'EscalationIntermediateCatchEventNonInterrupting': IntermediateEventCatchNonInterruptingEscalationIcon,
- 'MessageIntermediateCatchEventNonInterrupting': IntermediateEventCatchNonInterruptingMessageIcon,
- 'MultipleIntermediateCatchEventNonInterrupting': IntermediateEventCatchNonInterruptingMultipleIcon,
- 'ParallelIntermediateCatchEventNonInterrupting': IntermediateEventCatchNonInterruptingParallelIcon,
- 'SignalIntermediateCatchEventNonInterrupting': IntermediateEventCatchNonInterruptingSignalIcon,
- 'TimerIntermediateCatchEventNonInterrupting': IntermediateEventCatchNonInterruptingTimerIcon,
- 'ParallelMultipleIntermediateCatchEvent': IntermediateEventCatchParallelMultipleIcon,
- 'SignalIntermediateCatchEvent': IntermediateEventCatchSignalIcon,
- 'TimerIntermediateCatchEvent': IntermediateEventCatchTimerIcon,
- 'IntermediateThrowEvent': IntermediateEventNoneIcon,
- 'CompensateIntermediateThrowEvent': IntermediateEventThrowCompensationIcon,
- 'EscalationIntermediateThrowEvent': IntermediateEventThrowEscalationIcon,
- 'LinkIntermediateThrowEvent': IntermediateEventThrowLinkIcon,
- 'MessageIntermediateThrowEvent': IntermediateEventThrowMessageIcon,
- 'MultipleIntermediateThrowEvent': IntermediateEventThrowMultipleIcon,
- 'SignalIntermediateThrowEvent': IntermediateEventThrowSignalIcon,
- 'Lane': LaneIcon,
- 'ManualTask': ManualTaskIcon,
- 'MessageFlow': MessageFlowIcon,
- 'Participant': ParticipantIcon,
- 'Process': ProcessIcon,
- 'ReceiveTask': ReceiveTaskIcon,
- 'ScriptTask': ScriptTaskIcon,
- 'SendTask': SendTaskIcon,
- 'ServiceTask': ServiceTaskIcon,
- 'CompensateStartEvent': StartEventCompensationIcon,
- 'ConditionalStartEvent': StartEventConditionIcon,
- 'ErrorStartEvent': StartEventErrorIcon,
- 'EscalationStartEvent': StartEventEscalationIcon,
- 'MessageStartEvent': StartEventMessageIcon,
- 'MultipleStartEvent': StartEventMultipleIcon,
- 'ConditionalStartEventNonInterrupting': StartEventNonInterruptingConditionIcon,
- 'EscalationStartEventNonInterrupting': StartEventNonInterruptingEscalationIcon,
- 'MessageStartEventNonInterrupting': StartEventNonInterruptingMessageIcon,
- 'MultipleStartEventNonInterrupting': StartEventNonInterruptingMultipleIcon,
- 'ParallelMultipleStartEventNonInterrupting': StartEventNonInterruptingParallelMultipleIcon,
- 'SignalStartEventNonInterrupting': StartEventNonInterruptingSignalIcon,
- 'TimerStartEventNonInterrupting': StartEventNonInterruptingTimerIcon,
- 'CancelBoundaryEvent': IntermediateEventCatchCancelIcon,
- 'CompensateBoundaryEvent': IntermediateEventCatchCompensationIcon,
- 'ConditionalBoundaryEvent': IntermediateEventCatchConditionIcon,
- 'ErrorBoundaryEvent': IntermediateEventCatchErrorIcon,
- 'EscalationBoundaryEvent': IntermediateEventCatchEscalationIcon,
- 'LinkBoundaryEvent': IntermediateEventCatchLinkIcon,
- 'MessageBoundaryEvent': IntermediateEventCatchMessageIcon,
- 'MultipleBoundaryEvent': IntermediateEventCatchMultipleIcon,
- 'BoundaryEvent': IntermediateEventNoneIcon,
- 'ConditionalBoundaryEventNonInterrupting': IntermediateEventCatchNonInterruptingConditionIcon,
- 'EscalationBoundaryEventNonInterrupting': IntermediateEventCatchNonInterruptingEscalationIcon,
- 'MessageBoundaryEventNonInterrupting': IntermediateEventCatchNonInterruptingMessageIcon,
- 'MultipleBoundaryEventNonInterrupting': IntermediateEventCatchNonInterruptingMultipleIcon,
- 'ParallelBoundaryEventNonInterrupting': IntermediateEventCatchNonInterruptingParallelIcon,
- 'SignalBoundaryEventNonInterrupting': IntermediateEventCatchNonInterruptingSignalIcon,
- 'TimerBoundaryEventNonInterrupting': IntermediateEventCatchNonInterruptingTimerIcon,
- 'ParallelMultipleBoundaryEvent': IntermediateEventCatchParallelMultipleIcon,
- 'SignalBoundaryEvent': IntermediateEventCatchSignalIcon,
- 'TimerBoundaryEvent': IntermediateEventCatchTimerIcon,
- 'StartEvent': StartEventNoneIcon,
- 'ParallelMultipleStartEvent': StartEventParallelMultipleIcon,
- 'SignalStartEvent': StartEventSignalIcon,
- 'TimerStartEvent': StartEventTimerIcon,
- 'CollapsedSubProcess': SubprocessCollapsedIcon,
- 'CollapsedAdHocSubProcess': SubprocessCollapsedIcon,
- 'ExpandedSubProcess': SubprocessExpandedIcon,
- 'ExpandedAdHocSubProcess': SubprocessExpandedIcon,
- 'Task': TaskNoneIcon,
- 'TextAnnotation': TextAnnotationicon,
- 'Transaction': TransactionIcon,
- 'UserTask': UserTaskIcon
- };
- function getConcreteType(element) {
- const {
- type: elementType
- } = element;
- let type = getRawType(elementType);
- // (1) event definition types
- const eventDefinition = getEventDefinition$2(element);
- if (eventDefinition) {
- type = `${getEventDefinitionPrefix(eventDefinition)}${type}`;
- // (1.1) interrupting / non interrupting
- if (is(element, 'bpmn:StartEvent') && !isInterrupting$1(element) || is(element, 'bpmn:BoundaryEvent') && !isCancelActivity(element)) {
- type = `${type}NonInterrupting`;
- }
- return type;
- }
- // (2) sub process types
- if (is(element, 'bpmn:SubProcess') && !is(element, 'bpmn:Transaction')) {
- if (isEventSubProcess(element)) {
- type = `Event${type}`;
- } else {
- const expanded = isExpanded(element) && !isPlane(element);
- type = `${expanded ? 'Expanded' : 'Collapsed'}${type}`;
- }
- }
- // (3) conditional + default flows
- if (isDefaultFlow(element)) {
- type = 'DefaultFlow';
- }
- if (isConditionalFlow(element)) {
- type = 'ConditionalFlow';
- }
- return type;
- }
- const PanelHeaderProvider = {
- getDocumentationRef: element => {
- const elementTemplates = getTemplatesService();
- if (elementTemplates) {
- return getTemplateDocumentation(element, elementTemplates);
- }
- },
- getElementLabel: element => {
- if (is(element, 'bpmn:Process')) {
- return getBusinessObject(element).name;
- }
- return getLabel(element);
- },
- getElementIcon: element => {
- const concreteType = getConcreteType(element);
- const elementTemplates = getTemplatesService();
- if (elementTemplates) {
- const template = getTemplate(element, elementTemplates);
- if (template && template.icon) {
- return () => jsx("img", {
- class: "bio-properties-panel-header-template-icon",
- width: "32",
- height: "32",
- src: template.icon.contents
- });
- }
- }
- return iconsByType[concreteType];
- },
- getTypeLabel: element => {
- const elementTemplates = getTemplatesService();
- if (elementTemplates) {
- const template = getTemplate(element, elementTemplates);
- if (template && template.name) {
- return template.name;
- }
- }
- const concreteType = getConcreteType(element);
- return concreteType.replace(/(\B[A-Z])/g, ' $1').replace(/(\bNon Interrupting)/g, '($1)');
- }
- };
- // helpers ///////////////////////
- function isCancelActivity(element) {
- const businessObject = getBusinessObject(element);
- return businessObject && businessObject.cancelActivity !== false;
- }
- function getEventDefinition$2(element) {
- const businessObject = getBusinessObject(element),
- eventDefinitions = businessObject.eventDefinitions;
- return eventDefinitions && eventDefinitions[0];
- }
- function getRawType(type) {
- return type.split(':')[1];
- }
- function getEventDefinitionPrefix(eventDefinition) {
- const rawType = getRawType(eventDefinition.$type);
- return rawType.replace('EventDefinition', '');
- }
- function isDefaultFlow(element) {
- const businessObject = getBusinessObject(element);
- const sourceBusinessObject = getBusinessObject(element.source);
- if (!is(element, 'bpmn:SequenceFlow') || !sourceBusinessObject) {
- return false;
- }
- return sourceBusinessObject.default && sourceBusinessObject.default === businessObject && (is(sourceBusinessObject, 'bpmn:Gateway') || is(sourceBusinessObject, 'bpmn:Activity'));
- }
- function isConditionalFlow(element) {
- const businessObject = getBusinessObject(element);
- const sourceBusinessObject = getBusinessObject(element.source);
- if (!is(element, 'bpmn:SequenceFlow') || !sourceBusinessObject) {
- return false;
- }
- return businessObject.conditionExpression && is(sourceBusinessObject, 'bpmn:Activity');
- }
- function isPlane(element) {
- // Backwards compatibility for bpmn-js<8
- const di = element && (element.di || getBusinessObject(element).di);
- return is(di, 'bpmndi:BPMNPlane');
- }
- function getTemplatesService() {
- // eslint-disable-next-line react-hooks/rules-of-hooks
- return useService('elementTemplates', false);
- }
- function getTemplate(element, elementTemplates) {
- return elementTemplates.get(element);
- }
- function getTemplateDocumentation(element, elementTemplates) {
- const template = getTemplate(element, elementTemplates);
- return template && template.documentationRef;
- }
- var EmptyIcon = function EmptyIcon(props) {
- return jsxs("svg", {
- ...props,
- children: [jsxs("defs", {
- children: [jsx("rect", {
- id: "a",
- width: "57",
- height: "47",
- x: "3",
- y: "8",
- rx: "7"
- }), jsx("mask", {
- id: "b",
- width: "57",
- height: "47",
- x: "0",
- y: "0",
- fill: "#fff",
- maskContentUnits: "userSpaceOnUse",
- maskUnits: "objectBoundingBox",
- children: jsx("use", {
- xlinkHref: "#a"
- })
- })]
- }), jsxs("g", {
- fill: "none",
- fillRule: "evenodd",
- children: [jsx("path", {
- fill: "#818798",
- d: "M52 11a5 5 0 0 1 5 5v31a5 5 0 0 1-5 5H11a5 5 0 0 1-5-5V16a5 5 0 0 1 5-5h41Zm0 2H11a3 3 0 0 0-2.995 2.824L8 16v31a3 3 0 0 0 2.824 2.995L11 50h41a3 3 0 0 0 2.995-2.824L55 47V16a3 3 0 0 0-2.824-2.995L52 13Z"
- }), jsx("path", {
- fill: "#D5D7DD",
- d: "M16 24h31v6H16zM21 33h21v6H21z"
- }), jsx("use", {
- stroke: "#B9BCC6",
- strokeDasharray: "5 2",
- strokeWidth: "2",
- mask: "url(#b)",
- xlinkHref: "#a"
- })]
- })]
- });
- };
- EmptyIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- xmlnsXlink: "http://www.w3.org/1999/xlink",
- width: "64",
- height: "64"
- };
- var MultipleIcon = function MultipleIcon(props) {
- return jsxs("svg", {
- ...props,
- children: [jsxs("defs", {
- children: [jsx("path", {
- id: "a",
- d: "M9 9h110v47H9z"
- }), jsx("mask", {
- id: "b",
- width: "110",
- height: "47",
- x: "0",
- y: "0",
- fill: "#fff",
- maskContentUnits: "userSpaceOnUse",
- maskUnits: "objectBoundingBox",
- children: jsx("use", {
- xlinkHref: "#a"
- })
- })]
- }), jsxs("g", {
- fill: "none",
- fillRule: "evenodd",
- children: [jsx("path", {
- fill: "#818798",
- d: "M25 20.272 37.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"
- }), jsx("path", {
- fill: "#D5D7DD",
- d: "M17 47h16v6H17z"
- }), jsx("path", {
- fill: "#818798",
- d: "M35 32h27v2H35z"
- }), jsx("path", {
- fill: "#818798",
- d: "M60 30v6l6-3z"
- }), jsx("path", {
- fill: "#D5D7DD",
- d: "M80 34h21v6H80z"
- }), jsx("path", {
- fill: "#818798",
- d: "M111 12a5 5 0 0 1 5 5v31a5 5 0 0 1-5 5H70a5 5 0 0 1-5-5V17a5 5 0 0 1 5-5h41Zm0 2H70a3 3 0 0 0-3 3v31a3 3 0 0 0 3 3h41a3 3 0 0 0 3-3V17a3 3 0 0 0-3-3Z"
- }), jsx("path", {
- fill: "#D5D7DD",
- d: "M75 25h31v6H75z"
- }), jsx("use", {
- stroke: "#B9BCC6",
- strokeDasharray: "5 2",
- strokeWidth: "2",
- mask: "url(#b)",
- xlinkHref: "#a"
- })]
- })]
- });
- };
- MultipleIcon.defaultProps = {
- xmlns: "http://www.w3.org/2000/svg",
- xmlnsXlink: "http://www.w3.org/1999/xlink",
- width: "128",
- height: "64"
- };
- const PanelPlaceholderProvider = translate => {
- if (!translate) translate = text => text;
- return {
- getEmpty: () => {
- return {
- text: translate('Select an element to edit its properties.'),
- icon: EmptyIcon
- };
- },
- getMultiple: () => {
- return {
- text: translate('Multiple elements are selected. Select a single element to edit its properties.'),
- icon: MultipleIcon
- };
- }
- };
- };
- function BpmnPropertiesPanel(props) {
- const {
- element,
- injector,
- getProviders,
- layoutConfig: initialLayoutConfig,
- descriptionConfig,
- tooltipConfig,
- feelPopupContainer
- } = props;
- const canvas = injector.get('canvas');
- const elementRegistry = injector.get('elementRegistry');
- const eventBus = injector.get('eventBus');
- const translate = injector.get('translate');
- const [state, setState] = useState({
- selectedElement: element
- });
- const selectedElement = state.selectedElement;
- /**
- * @param {djs.model.Base | Array<djs.model.Base>} element
- */
- const _update = element => {
- if (!element) {
- return;
- }
- let newSelectedElement = element;
- // handle labels
- if (newSelectedElement && newSelectedElement.type === 'label') {
- newSelectedElement = newSelectedElement.labelTarget;
- }
- setState({
- ...state,
- selectedElement: newSelectedElement
- });
- // notify interested parties on property panel updates
- eventBus.fire('propertiesPanel.updated', {
- element: newSelectedElement
- });
- };
- // (2) react on element changes
- // (2a) selection changed
- useEffect(() => {
- const onSelectionChanged = e => {
- const {
- newSelection = []
- } = e;
- if (newSelection.length > 1) {
- return _update(newSelection);
- }
- const newElement = newSelection[0];
- const rootElement = canvas.getRootElement();
- if (isImplicitRoot$1(rootElement)) {
- return;
- }
- _update(newElement || rootElement);
- };
- eventBus.on('selection.changed', onSelectionChanged);
- return () => {
- eventBus.off('selection.changed', onSelectionChanged);
- };
- }, []);
- // (2b) selected element changed
- useEffect(() => {
- const onElementsChanged = e => {
- const elements = e.elements;
- const updatedElement = findElement(elements, selectedElement);
- if (updatedElement && elementExists(updatedElement, elementRegistry)) {
- _update(updatedElement);
- }
- };
- eventBus.on('elements.changed', onElementsChanged);
- return () => {
- eventBus.off('elements.changed', onElementsChanged);
- };
- }, [selectedElement]);
- // (2c) root element changed
- useEffect(() => {
- const onRootAdded = e => {
- const element = e.element;
- _update(element);
- };
- eventBus.on('root.added', onRootAdded);
- return () => {
- eventBus.off('root.added', onRootAdded);
- };
- }, [selectedElement]);
- // (2d) provided entries changed
- useEffect(() => {
- const onProvidersChanged = () => {
- _update(selectedElement);
- };
- eventBus.on('propertiesPanel.providersChanged', onProvidersChanged);
- return () => {
- eventBus.off('propertiesPanel.providersChanged', onProvidersChanged);
- };
- }, [selectedElement]);
- // (2e) element templates changed
- useEffect(() => {
- const onTemplatesChanged = () => {
- _update(selectedElement);
- };
- eventBus.on('elementTemplates.changed', onTemplatesChanged);
- return () => {
- eventBus.off('elementTemplates.changed', onTemplatesChanged);
- };
- }, [selectedElement]);
- // (3) create properties panel context
- const bpmnPropertiesPanelContext = {
- selectedElement,
- injector,
- getService(type, strict) {
- return injector.get(type, strict);
- }
- };
- // (4) retrieve groups for selected element
- const providers = getProviders(selectedElement);
- const groups = useMemo(() => {
- return reduce(providers, function (groups, provider) {
- // do not collect groups for multi element state
- if (isArray(selectedElement)) {
- return [];
- }
- const updater = provider.getGroups(selectedElement);
- return updater(groups);
- }, []);
- }, [providers, selectedElement]);
- // (5) notify layout changes
- const [layoutConfig, setLayoutConfig] = useState(initialLayoutConfig || {});
- const onLayoutChanged = useCallback(newLayout => {
- eventBus.fire('propertiesPanel.layoutChanged', {
- layout: newLayout
- });
- }, [eventBus]);
- // React to external layout changes
- useEffect(() => {
- const cb = e => {
- const {
- layout
- } = e;
- setLayoutConfig(layout);
- };
- eventBus.on('propertiesPanel.setLayout', cb);
- return () => eventBus.off('propertiesPanel.setLayout', cb);
- }, [eventBus, setLayoutConfig]);
- // (6) notify description changes
- const onDescriptionLoaded = description => {
- eventBus.fire('propertiesPanel.descriptionLoaded', {
- description
- });
- };
- // (7) notify tooltip changes
- const onTooltipLoaded = tooltip => {
- eventBus.fire('propertiesPanel.tooltipLoaded', {
- tooltip
- });
- };
- return jsx(BpmnPropertiesPanelContext.Provider, {
- value: bpmnPropertiesPanelContext,
- children: jsx(PropertiesPanel, {
- element: selectedElement,
- headerProvider: PanelHeaderProvider,
- placeholderProvider: PanelPlaceholderProvider(translate),
- groups: groups,
- layoutConfig: layoutConfig,
- layoutChanged: onLayoutChanged,
- descriptionConfig: descriptionConfig,
- descriptionLoaded: onDescriptionLoaded,
- tooltipConfig: tooltipConfig,
- tooltipLoaded: onTooltipLoaded,
- feelPopupContainer: feelPopupContainer,
- eventBus: eventBus
- })
- });
- }
- // helpers //////////////////////////
- function isImplicitRoot$1(element) {
- // Backwards compatibility for diagram-js<7.4.0, see https://github.com/bpmn-io/bpmn-properties-panel/pull/102
- return element && (element.isImplicit || element.id === '__implicitroot');
- }
- function findElement(elements, element) {
- return find(elements, e => e === element);
- }
- function elementExists(element, elementRegistry) {
- return element && elementRegistry.get(element.id);
- }
- const DEFAULT_PRIORITY = 1000;
- /**
- * @typedef { import('@bpmn-io/properties-panel').GroupDefinition } GroupDefinition
- * @typedef { import('@bpmn-io/properties-panel').ListGroupDefinition } ListGroupDefinition
- * @typedef { { getGroups: (ModdleElement) => (Array{GroupDefinition|ListGroupDefinition}) => Array{GroupDefinition|ListGroupDefinition}) } PropertiesProvider
- */
- class BpmnPropertiesPanelRenderer {
- constructor(config, injector, eventBus) {
- const {
- parent,
- layout: layoutConfig,
- description: descriptionConfig,
- tooltip: tooltipConfig,
- feelPopupContainer
- } = config || {};
- this._eventBus = eventBus;
- this._injector = injector;
- this._layoutConfig = layoutConfig;
- this._descriptionConfig = descriptionConfig;
- this._tooltipConfig = tooltipConfig;
- this._feelPopupContainer = feelPopupContainer;
- this._container = domify('<div style="height: 100%" class="bio-properties-panel-container"></div>');
- var commandStack = injector.get('commandStack', false);
- commandStack && setupKeyboard(this._container, eventBus, commandStack);
- eventBus.on('diagram.init', () => {
- if (parent) {
- this.attachTo(parent);
- }
- });
- eventBus.on('diagram.destroy', () => {
- this.detach();
- });
- eventBus.on('root.added', event => {
- const {
- element
- } = event;
- this._render(element);
- });
- }
- /**
- * Attach the properties panel to a parent node.
- *
- * @param {HTMLElement} container
- */
- attachTo(container) {
- if (!container) {
- throw new Error('container required');
- }
- // unwrap jQuery if provided
- if (container.get && container.constructor.prototype.jquery) {
- container = container.get(0);
- }
- if (typeof container === 'string') {
- container = query(container);
- }
- // (1) detach from old parent
- this.detach();
- // (2) append to parent container
- container.appendChild(this._container);
- // (3) notify interested parties
- this._eventBus.fire('propertiesPanel.attach');
- }
- /**
- * Detach the properties panel from its parent node.
- */
- detach() {
- const parentNode = this._container.parentNode;
- if (parentNode) {
- parentNode.removeChild(this._container);
- this._eventBus.fire('propertiesPanel.detach');
- }
- }
- /**
- * Register a new properties provider to the properties panel.
- *
- * @param {Number} [priority]
- * @param {PropertiesProvider} provider
- */
- registerProvider(priority, provider) {
- if (!provider) {
- provider = priority;
- priority = DEFAULT_PRIORITY;
- }
- if (typeof provider.getGroups !== 'function') {
- console.error('Properties provider does not implement #getGroups(element) API');
- return;
- }
- this._eventBus.on('propertiesPanel.getProviders', priority, function (event) {
- event.providers.push(provider);
- });
- this._eventBus.fire('propertiesPanel.providersChanged');
- }
- /**
- * Updates the layout of the properties panel.
- * @param {Object} layout
- */
- setLayout(layout) {
- this._eventBus.fire('propertiesPanel.setLayout', {
- layout
- });
- }
- _getProviders() {
- const event = this._eventBus.createEvent({
- type: 'propertiesPanel.getProviders',
- providers: []
- });
- this._eventBus.fire(event);
- return event.providers;
- }
- _render(element) {
- const canvas = this._injector.get('canvas');
- if (!element) {
- element = canvas.getRootElement();
- }
- if (isImplicitRoot(element)) {
- return;
- }
- render(jsx(BpmnPropertiesPanel, {
- element: element,
- injector: this._injector,
- getProviders: this._getProviders.bind(this),
- layoutConfig: this._layoutConfig,
- descriptionConfig: this._descriptionConfig,
- tooltipConfig: this._tooltipConfig,
- feelPopupContainer: this._feelPopupContainer
- }), this._container);
- this._eventBus.fire('propertiesPanel.rendered');
- }
- _destroy() {
- if (this._container) {
- render(null, this._container);
- this._eventBus.fire('propertiesPanel.destroyed');
- }
- }
- }
- BpmnPropertiesPanelRenderer.$inject = ['config.propertiesPanel', 'injector', 'eventBus'];
- // helpers ///////////////////////
- function isImplicitRoot(element) {
- // Backwards compatibility for diagram-js<7.4.0, see https://github.com/bpmn-io/bpmn-properties-panel/pull/102
- return element && (element.isImplicit || element.id === '__implicitroot');
- }
- /**
- * Setup keyboard bindings (undo, redo) on the given container.
- *
- * @param {Element} container
- * @param {EventBus} eventBus
- * @param {CommandStack} commandStack
- */
- function setupKeyboard(container, eventBus, commandStack) {
- function cancel(event) {
- event.preventDefault();
- event.stopPropagation();
- }
- function handleKeys(event) {
- if (isUndo(event)) {
- commandStack.undo();
- return cancel(event);
- }
- if (isRedo(event)) {
- commandStack.redo();
- return cancel(event);
- }
- }
- eventBus.on('keyboard.bind', function () {
- event.bind(container, 'keydown', handleKeys);
- });
- eventBus.on('keyboard.unbind', function () {
- event.unbind(container, 'keydown', handleKeys);
- });
- }
- /**
- * A handler that combines and executes multiple commands.
- *
- * All updates are bundled on the command stack and executed in one step.
- * This also makes it possible to revert the changes in one step.
- *
- * Example use case: remove the camunda:formKey attribute and in addition
- * add all form fields needed for the camunda:formData property.
- */
- class MultiCommandHandler {
- constructor(commandStack) {
- this._commandStack = commandStack;
- }
- preExecute(context) {
- const commandStack = this._commandStack;
- forEach(context, function (command) {
- commandStack.execute(command.cmd, command.context);
- });
- }
- }
- MultiCommandHandler.$inject = ['commandStack'];
- const HANDLERS = {
- 'properties-panel.multi-command-executor': MultiCommandHandler
- };
- function CommandInitializer(eventBus, commandStack) {
- eventBus.on('diagram.init', function () {
- forEach(HANDLERS, function (handler, id) {
- commandStack.registerHandler(id, handler);
- });
- });
- }
- CommandInitializer.$inject = ['eventBus', 'commandStack'];
- var Commands = {
- __init__: [CommandInitializer]
- };
- var index$3 = {
- __depends__: [Commands, DebounceInputModule, FeelPopupModule],
- __init__: ['propertiesPanel'],
- propertiesPanel: ['type', BpmnPropertiesPanelRenderer]
- };
- function ReferenceSelectEntry(props) {
- const {
- autoFocusEntry,
- element,
- getOptions
- } = props;
- const options = getOptions(element);
- const prevOptions = usePrevious(options);
- // auto focus specifc other entry when options changed
- useEffect(() => {
- if (autoFocusEntry && prevOptions && options.length > prevOptions.length) {
- const entry = query(`[data-entry-id="${autoFocusEntry}"]`);
- const focusableInput = query('.bio-properties-panel-input', entry);
- if (focusableInput) {
- focusableInput.select();
- }
- }
- }, [options]);
- return jsx(SelectEntry, {
- ...props
- });
- }
- function isErrorSupported(element) {
- return isAny(element, ['bpmn:StartEvent', 'bpmn:BoundaryEvent', 'bpmn:EndEvent']) && !!getErrorEventDefinition(element);
- }
- function getErrorEventDefinition(element) {
- return getEventDefinition$1(element, 'bpmn:ErrorEventDefinition');
- }
- function getTimerEventDefinition$1(element) {
- return getEventDefinition$1(element, 'bpmn:TimerEventDefinition');
- }
- function getError(element) {
- const errorEventDefinition = getErrorEventDefinition(element);
- return errorEventDefinition && errorEventDefinition.get('errorRef');
- }
- function getEventDefinition$1(element, eventType) {
- const businessObject = getBusinessObject(element);
- const eventDefinitions = businessObject.get('eventDefinitions') || [];
- return find(eventDefinitions, function (definition) {
- return is(definition, eventType);
- });
- }
- function isMessageSupported(element) {
- return is(element, 'bpmn:ReceiveTask') || isAny(element, ['bpmn:StartEvent', 'bpmn:EndEvent', 'bpmn:IntermediateThrowEvent', 'bpmn:BoundaryEvent', 'bpmn:IntermediateCatchEvent']) && !!getMessageEventDefinition(element);
- }
- function getMessageEventDefinition(element) {
- if (is(element, 'bpmn:ReceiveTask')) {
- return getBusinessObject(element);
- }
- return getEventDefinition$1(element, 'bpmn:MessageEventDefinition');
- }
- function getMessage(element) {
- const messageEventDefinition = getMessageEventDefinition(element);
- return messageEventDefinition && messageEventDefinition.get('messageRef');
- }
- function getLinkEventDefinition(element) {
- return getEventDefinition$1(element, 'bpmn:LinkEventDefinition');
- }
- function getSignalEventDefinition$1(element) {
- return getEventDefinition$1(element, 'bpmn:SignalEventDefinition');
- }
- function isLinkSupported(element) {
- return isAny(element, ['bpmn:IntermediateThrowEvent', 'bpmn:IntermediateCatchEvent']) && !!getLinkEventDefinition(element);
- }
- function isSignalSupported$1(element) {
- return is(element, 'bpmn:Event') && !!getSignalEventDefinition$1(element);
- }
- function getSignal$1(element) {
- const signalEventDefinition = getSignalEventDefinition$1(element);
- return signalEventDefinition && signalEventDefinition.get('signalRef');
- }
- function getEscalationEventDefinition(element) {
- return getEventDefinition$1(element, 'bpmn:EscalationEventDefinition');
- }
- function isEscalationSupported(element) {
- return is(element, 'bpmn:Event') && !!getEscalationEventDefinition(element);
- }
- function getEscalation(element) {
- const escalationEventDefinition = getEscalationEventDefinition(element);
- return escalationEventDefinition && escalationEventDefinition.get('escalationRef');
- }
- function isCompensationSupported(element) {
- return isAny(element, ['bpmn:EndEvent', 'bpmn:IntermediateThrowEvent']) && !!getCompensateEventDefinition(element);
- }
- function getCompensateEventDefinition(element) {
- return getEventDefinition$1(element, 'bpmn:CompensateEventDefinition');
- }
- function getCompensateActivity(element) {
- const compensateEventDefinition = getCompensateEventDefinition(element);
- return compensateEventDefinition && compensateEventDefinition.get('activityRef');
- }
- /**
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
- */
- /**
- * @returns {Array<Entry>} entries
- */
- function CompensationProps(props) {
- const {
- element
- } = props;
- if (!isCompensationSupported(element)) {
- return [];
- }
- return [{
- id: 'waitForCompletion',
- component: WaitForCompletion,
- isEdited: isCheckboxEntryEdited
- }, {
- id: 'activityRef',
- component: ActivityRef,
- isEdited: isSelectEntryEdited
- }];
- }
- function WaitForCompletion(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const compensateEventDefinition = getCompensateEventDefinition(element);
- const getValue = () => {
- return compensateEventDefinition.get('waitForCompletion');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: compensateEventDefinition,
- properties: {
- waitForCompletion: value
- }
- });
- };
- return CheckboxEntry({
- element,
- id: 'waitForCompletion',
- label: translate('Wait for completion'),
- getValue,
- setValue
- });
- }
- function ActivityRef(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const elementRegistry = useService('elementRegistry');
- const translate = useService('translate');
- const compensateEventDefinition = getCompensateEventDefinition(element);
- const getValue = () => {
- const activityRef = getCompensateActivity(element);
- return activityRef && activityRef.get('id');
- };
- const setValue = value => {
- // update (or remove) activityRef
- const activityRef = value ? getBusinessObject(elementRegistry.get(value)) : undefined;
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: compensateEventDefinition,
- properties: {
- activityRef
- }
- });
- };
- const getOptions = () => {
- let options = [{
- value: '',
- label: translate('<none>')
- }];
- const activities = findActivityRefs(element);
- sortByName$6(activities).forEach(function (activity) {
- options.push({
- value: activity.id,
- label: createOptionLabel(activity)
- });
- });
- return options;
- };
- return ReferenceSelectEntry({
- element,
- id: 'activityRef',
- label: translate('Activity reference'),
- getValue,
- setValue,
- getOptions
- });
- }
- // helper /////////////////////////
- function getFlowElements(element, type) {
- const {
- flowElements
- } = element;
- return flowElements.filter(function (flowElement) {
- return is(flowElement, type);
- });
- }
- function getContainedActivities(element) {
- return getFlowElements(element, 'bpmn:Activity');
- }
- function getContainedBoundaryEvents(element) {
- return getFlowElements(element, 'bpmn:BoundaryEvent');
- }
- /**
- * Checks whether an Activity is attaching a CompensateEvent of the parent container.
- *
- * @param {ModdleElement} activity
- * @param {Array<ModdleElement>} boundaryEvents
- * @returns {Boolean}
- */
- function hasCompensationEventAttached(activity, boundaryEvents) {
- const {
- id: activityId
- } = activity;
- return !!find(boundaryEvents, function (boundaryEvent) {
- const {
- attachedToRef
- } = boundaryEvent;
- const compensateEventDefinition = getCompensateEventDefinition(boundaryEvent);
- return attachedToRef && compensateEventDefinition && attachedToRef.id === activityId;
- });
- }
- /**
- * Checks whether an Activity can be compensated. That's the case when it is
- * a) a CallActivity
- * b) a SubProcess, when it is not event based and not a compensation
- * c) any other Activity, when it is attaching a CompensateEvent of the parent container
- *
- * @param {ModdleElement} activity
- * @param {Array<ModdleElement>} boundaryEvents
- * @returns {Boolean}
- */
- function canBeCompensated(activity, boundaryEvents) {
- return is(activity, 'bpmn:CallActivity') || is(activity, 'bpmn:SubProcess') && !activity.triggeredByEvent && !activity.isForCompensation || hasCompensationEventAttached(activity, boundaryEvents);
- }
- function getActivitiesForCompensation(element) {
- const activities = getContainedActivities(element);
- const boundaryEvents = getContainedBoundaryEvents(element);
- return activities.filter(function (activity) {
- return canBeCompensated(activity, boundaryEvents);
- });
- }
- /**
- * Retrieves all possible activities to reference for a Compensation.
- *
- * @param {djs.model.Base} element
- * @returns {Array<ModdleElement>}
- */
- function findActivityRefs(element) {
- const businessObject = getBusinessObject(element);
- let parent = businessObject.$parent;
- // (1) get all activities in parent container
- let activities = getActivitiesForCompensation(parent);
- // (2) if throwing compensation event is inside an EventSubProcess,
- // also get all activities outside of the event sub process
- if (is(parent, 'bpmn:SubProcess') && parent.triggeredByEvent) {
- parent = parent.$parent;
- if (parent) {
- activities = [...activities, ...getActivitiesForCompensation(parent)];
- }
- }
- return activities;
- }
- /**
- * Retrieves an option label in the form
- * a) with name: "my Task (id=Task_1)"
- * b) without name: "(id=Task_1)"
- *
- * @param {ModdleElement} activity
- * @returns {String}
- */
- function createOptionLabel(activity) {
- const {
- id,
- name
- } = activity;
- return `${name ? name + ' ' : ''}(id=${id})`;
- }
- function sortByName$6(elements) {
- return sortBy(elements, e => (e.name || '').toLowerCase());
- }
- const DOCUMENTATION_TEXT_FORMAT = 'text/plain';
- /**
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
- */
- /**
- * @returns {Array<Entry>} entries
- */
- function DocumentationProps(props) {
- const {
- element
- } = props;
- const entries = [{
- id: 'documentation',
- component: ElementDocumentationProperty,
- isEdited: isTextAreaEntryEdited
- }];
- if (hasProcessRef$2(element)) {
- entries.push({
- id: 'processDocumentation',
- component: ProcessDocumentationProperty,
- isEdited: isTextAreaEntryEdited
- });
- }
- return entries;
- }
- function ElementDocumentationProperty(props) {
- const {
- element
- } = props;
- const bpmnFactory = useService('bpmnFactory');
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = getDocumentation(getBusinessObject(element));
- const setValue = setDocumentation(element, getBusinessObject(element), bpmnFactory, commandStack);
- return TextAreaEntry({
- element,
- id: 'documentation',
- label: translate('Element documentation'),
- getValue,
- setValue,
- debounce
- });
- }
- function ProcessDocumentationProperty(props) {
- const {
- element
- } = props;
- const bpmnFactory = useService('bpmnFactory');
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const processRef = getBusinessObject(element).processRef;
- const getValue = getDocumentation(processRef);
- const setValue = setDocumentation(element, processRef, bpmnFactory, commandStack);
- return TextAreaEntry({
- element,
- id: 'processDocumentation',
- label: translate('Process documentation'),
- getValue,
- setValue,
- debounce
- });
- }
- // helper ////////////////////////////
- function hasProcessRef$2(element) {
- return is(element, 'bpmn:Participant') && element.businessObject.get('processRef');
- }
- function findDocumentation(docs) {
- return docs.find(function (d) {
- return (d.textFormat || DOCUMENTATION_TEXT_FORMAT) === DOCUMENTATION_TEXT_FORMAT;
- });
- }
- /**
- * Retrieves a documentation element from a given moddle element.
- *
- * @param {ModdleElement} businessObject
- *
- * @returns {ModdleElement} documentation element inside the given moddle element.
- */
- function getDocumentation(businessObject) {
- return function () {
- const documentation = findDocumentation(businessObject && businessObject.get('documentation'));
- return documentation && documentation.text;
- };
- }
- /**
- * Sets a documentation element for a given moddle element.
- *
- * @param {ModdleElement} businessObject
- */
- function setDocumentation(element, businessObject, bpmnFactory, commandStack) {
- return function (value) {
- let documentation = findDocumentation(businessObject && businessObject.get('documentation'));
- // (1) update or removing existing documentation
- if (documentation) {
- if (value) {
- return commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: documentation,
- properties: {
- text: value
- }
- });
- } else {
- return commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- documentation: without(businessObject.get('documentation'), documentation)
- }
- });
- }
- }
- // (2) create new documentation entry
- if (value) {
- documentation = bpmnFactory.create('bpmn:Documentation', {
- text: value
- });
- return commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- documentation: [...businessObject.get('documentation'), documentation]
- }
- });
- }
- };
- }
- /**
- * Create a new element and set its parent.
- *
- * @param {String} elementType of the new element
- * @param {Object} properties of the new element in key-value pairs
- * @param {moddle.object} parent of the new element
- * @param {BpmnFactory} factory which creates the new element
- *
- * @returns {djs.model.Base} element which is created
- */
- function createElement(elementType, properties, parent, factory) {
- const element = factory.create(elementType, properties);
- if (parent) {
- element.$parent = parent;
- }
- return element;
- }
- /**
- * generate a semantic id with given prefix
- */
- function nextId(prefix) {
- const ids = new Ids([32, 32, 1]);
- return ids.nextPrefixed(prefix);
- }
- function getRoot(businessObject) {
- let parent = businessObject;
- while (parent.$parent) {
- parent = parent.$parent;
- }
- return parent;
- }
- function filterElementsByType(objectList, type) {
- const list = objectList || [];
- return list.filter(element => is(element, type));
- }
- function findRootElementsByType(businessObject, referencedType) {
- const root = getRoot(businessObject);
- return filterElementsByType(root.get('rootElements'), referencedType);
- }
- function findRootElementById(businessObject, type, id) {
- const elements = findRootElementsByType(businessObject, type);
- return elements.find(element => element.id === id);
- }
- const EMPTY_OPTION$4 = '';
- const CREATE_NEW_OPTION$4 = 'create-new';
- /**
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
- */
- /**
- * @returns {Array<Entry>} entries
- */
- function ErrorProps$2(props) {
- const {
- element
- } = props;
- if (!isErrorSupported(element)) {
- return [];
- }
- const error = getError(element);
- let entries = [{
- id: 'errorRef',
- component: ErrorRef$1,
- isEdited: isSelectEntryEdited
- }];
- if (error) {
- entries = [...entries, {
- id: 'errorName',
- component: ErrorName$1,
- isEdited: isTextFieldEntryEdited
- }, {
- id: 'errorCode',
- component: ErrorCode$2,
- isEdited: isTextFieldEntryEdited
- }];
- }
- return entries;
- }
- function ErrorRef$1(props) {
- const {
- element
- } = props;
- const bpmnFactory = useService('bpmnFactory');
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const errorEventDefinition = getErrorEventDefinition(element);
- const getValue = () => {
- const error = getError(element);
- if (error) {
- return error.get('id');
- }
- return EMPTY_OPTION$4;
- };
- const setValue = value => {
- const root = getRoot(errorEventDefinition);
- const commands = [];
- let error;
- // (1) create new error
- if (value === CREATE_NEW_OPTION$4) {
- error = createElement('bpmn:Error', {
- name: nextId('Error_')
- }, root, bpmnFactory);
- value = error.get('id');
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: root,
- properties: {
- rootElements: [...root.get('rootElements'), error]
- }
- }
- });
- }
- // (2) update (or remove) errorRef
- error = error || findRootElementById(errorEventDefinition, 'bpmn:Error', value);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: errorEventDefinition,
- properties: {
- errorRef: error
- }
- }
- });
- // (3) commit all updates
- return commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- const getOptions = () => {
- let options = [{
- value: EMPTY_OPTION$4,
- label: translate('<none>')
- }, {
- value: CREATE_NEW_OPTION$4,
- label: translate('Create new ...')
- }];
- const errors = findRootElementsByType(getBusinessObject(element), 'bpmn:Error');
- sortByName$5(errors).forEach(error => {
- options.push({
- value: error.get('id'),
- label: error.get('name')
- });
- });
- return options;
- };
- return ReferenceSelectEntry({
- element,
- id: 'errorRef',
- label: translate('Global error reference'),
- autoFocusEntry: 'errorName',
- getValue,
- setValue,
- getOptions
- });
- }
- function ErrorName$1(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const error = getError(element);
- const getValue = () => {
- return error.get('name');
- };
- const setValue = value => {
- return commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: error,
- properties: {
- name: value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'errorName',
- label: translate('Name'),
- getValue,
- setValue,
- debounce
- });
- }
- function ErrorCode$2(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const error = getError(element);
- const getValue = () => {
- return error.get('errorCode');
- };
- const setValue = value => {
- return commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: error,
- properties: {
- errorCode: value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'errorCode',
- label: translate('Code'),
- getValue,
- setValue,
- debounce
- });
- }
- // helper /////////////////////////
- function sortByName$5(elements) {
- return sortBy(elements, e => (e.name || '').toLowerCase());
- }
- const CREATE_NEW_OPTION$3 = 'create-new';
- /**
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
- */
- /**
- * @returns {Array<Entry>} entries
- */
- function EscalationProps$2(props) {
- const {
- element
- } = props;
- if (!isEscalationSupported(element)) {
- return [];
- }
- const escalation = getEscalation(element);
- let entries = [{
- id: 'escalationRef',
- component: EscalationRef,
- isEdited: isSelectEntryEdited
- }];
- if (escalation) {
- entries = [...entries, {
- id: 'escalationName',
- component: EscalationName,
- isEdited: isTextFieldEntryEdited
- }, {
- id: 'escalationCode',
- component: EscalationCode$1,
- isEdited: isTextFieldEntryEdited
- }];
- }
- return entries;
- }
- function EscalationRef(props) {
- const {
- element
- } = props;
- const bpmnFactory = useService('bpmnFactory');
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const escalationEventDefinition = getEscalationEventDefinition(element);
- const getValue = () => {
- const escalation = getEscalation(element);
- return escalation && escalation.get('id');
- };
- const setValue = value => {
- const root = getRoot(escalationEventDefinition);
- const commands = [];
- let escalation;
- // (1) create new escalation
- if (value === CREATE_NEW_OPTION$3) {
- const id = nextId('Escalation_');
- escalation = createElement('bpmn:Escalation', {
- id,
- name: id
- }, root, bpmnFactory);
- value = escalation.get('id');
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: root,
- properties: {
- rootElements: [...root.get('rootElements'), escalation]
- }
- }
- });
- }
- // (2) update (or remove) escalationRef
- escalation = escalation || findRootElementById(escalationEventDefinition, 'bpmn:Escalation', value);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: escalationEventDefinition,
- properties: {
- escalationRef: escalation
- }
- }
- });
- // (3) commit all updates
- return commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- const getOptions = () => {
- let options = [{
- value: '',
- label: translate('<none>')
- }, {
- value: CREATE_NEW_OPTION$3,
- label: translate('Create new ...')
- }];
- const escalations = findRootElementsByType(getBusinessObject(element), 'bpmn:Escalation');
- sortByName$4(escalations).forEach(escalation => {
- options.push({
- value: escalation.get('id'),
- label: escalation.get('name')
- });
- });
- return options;
- };
- return ReferenceSelectEntry({
- element,
- id: 'escalationRef',
- label: translate('Global escalation reference'),
- autoFocusEntry: 'escalationName',
- getValue,
- setValue,
- getOptions
- });
- }
- function EscalationName(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const escalation = getEscalation(element);
- const getValue = () => {
- return escalation.get('name');
- };
- const setValue = value => {
- return commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: escalation,
- properties: {
- name: value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'escalationName',
- label: translate('Name'),
- getValue,
- setValue,
- debounce
- });
- }
- function EscalationCode$1(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const escalation = getEscalation(element);
- const getValue = () => {
- return escalation.get('escalationCode');
- };
- const setValue = value => {
- return commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: escalation,
- properties: {
- escalationCode: value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'escalationCode',
- label: translate('Code'),
- getValue,
- setValue,
- debounce
- });
- }
- // helper /////////////////////////
- function sortByName$4(elements) {
- return sortBy(elements, e => (e.name || '').toLowerCase());
- }
- /**
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
- */
- /**
- * @returns {Array<Entry>} entries
- */
- function ExecutableProps(props) {
- const {
- element
- } = props;
- if (!is(element, 'bpmn:Process') && !hasProcessRef$1(element)) {
- return [];
- }
- return [{
- id: 'isExecutable',
- component: Executable,
- isEdited: isCheckboxEntryEdited
- }];
- }
- function Executable(props) {
- const {
- element
- } = props;
- const modeling = useService('modeling');
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- let getValue, setValue;
- setValue = value => {
- modeling.updateProperties(element, {
- isExecutable: value
- });
- };
- getValue = element => {
- return element.businessObject.isExecutable;
- };
- // handle properties on processRef level for participants
- if (is(element, 'bpmn:Participant')) {
- const process = element.businessObject.get('processRef');
- setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: process,
- properties: {
- isExecutable: value
- }
- });
- };
- getValue = () => {
- return process.get('isExecutable');
- };
- }
- return CheckboxEntry({
- element,
- id: 'isExecutable',
- label: translate('Executable'),
- getValue,
- setValue
- });
- }
- // helper /////////////////////
- function hasProcessRef$1(element) {
- return is(element, 'bpmn:Participant') && element.businessObject.get('processRef');
- }
- const SPACE_REGEX = /\s/;
- // for QName validation as per http://www.w3.org/TR/REC-xml/#NT-NameChar
- const QNAME_REGEX = /^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i;
- // for ID validation as per BPMN Schema (QName - Namespace)
- const ID_REGEX = /^[a-z_][\w-.]*$/i;
- /**
- * checks whether the id value is valid
- *
- * @param {ModdleElement} element
- * @param {String} idValue
- * @param {Function} translate
- *
- * @return {String} error message
- */
- function isIdValid(element, idValue, translate) {
- const assigned = element.$model.ids.assigned(idValue);
- const idAlreadyExists = assigned && assigned !== element;
- if (!idValue) {
- return translate('ID must not be empty.');
- }
- if (idAlreadyExists) {
- return translate('ID must be unique.');
- }
- return validateId(idValue, translate);
- }
- function validateId(idValue, translate) {
- if (containsSpace(idValue)) {
- return translate('ID must not contain spaces.');
- }
- if (!ID_REGEX.test(idValue)) {
- if (QNAME_REGEX.test(idValue)) {
- return translate('ID must not contain prefix.');
- }
- return translate('ID must be a valid QName.');
- }
- }
- function containsSpace(value) {
- return SPACE_REGEX.test(value);
- }
- /**
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
- */
- /**
- * @returns {Array<Entry>} entries
- */
- function IdProps() {
- return [{
- id: 'id',
- component: Id$3,
- isEdited: isTextFieldEntryEdited
- }];
- }
- function Id$3(props) {
- const {
- element
- } = props;
- const modeling = useService('modeling');
- const debounce = useService('debounceInput');
- const translate = useService('translate');
- const setValue = (value, error) => {
- if (error) {
- return;
- }
- modeling.updateProperties(element, {
- id: value
- });
- };
- const getValue = element => {
- return element.businessObject.id;
- };
- const validate = value => {
- const businessObject = getBusinessObject(element);
- return isIdValid(businessObject, value, translate);
- };
- return TextFieldEntry({
- element,
- id: 'id',
- label: translate(is(element, 'bpmn:Participant') ? 'Participant ID' : 'ID'),
- getValue,
- setValue,
- debounce,
- validate
- });
- }
- /**
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
- */
- /**
- * @returns {Array<Entry>} entries
- */
- function LinkProps(props) {
- const {
- element
- } = props;
- if (!isLinkSupported(element)) {
- return [];
- }
- return [{
- id: 'linkName',
- component: LinkName,
- isEdited: isTextFieldEntryEdited
- }];
- }
- function LinkName(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const linkEventDefinition = getLinkEventDefinition(element);
- const getValue = () => {
- return linkEventDefinition.get('name');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: linkEventDefinition,
- properties: {
- name: value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'linkName',
- label: translate('Name'),
- getValue,
- setValue,
- debounce
- });
- }
- const EMPTY_OPTION$3 = '';
- const CREATE_NEW_OPTION$2 = 'create-new';
- /**
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
- */
- /**
- * @returns {Array<Entry>} entries
- */
- function MessageProps$1(props) {
- const {
- element
- } = props;
- if (!isMessageSupported(element)) {
- return [];
- }
- const message = getMessage(element);
- let entries = [{
- id: 'messageRef',
- component: MessageRef,
- isEdited: isSelectEntryEdited
- }];
- if (message) {
- entries = [...entries, {
- id: 'messageName',
- component: MessageName$1,
- isEdited: isTextFieldEntryEdited
- }];
- }
- return entries;
- }
- function MessageRef(props) {
- const {
- element
- } = props;
- const bpmnFactory = useService('bpmnFactory');
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const messageEventDefinition = getMessageEventDefinition(element);
- const getValue = () => {
- const message = getMessage(element);
- if (message) {
- return message.get('id');
- }
- return EMPTY_OPTION$3;
- };
- const setValue = value => {
- const root = getRoot(messageEventDefinition);
- const commands = [];
- let message;
- // (1) create new message
- if (value === CREATE_NEW_OPTION$2) {
- const id = nextId('Message_');
- message = createElement('bpmn:Message', {
- id,
- name: id
- }, root, bpmnFactory);
- value = message.get('id');
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: root,
- properties: {
- rootElements: [...root.get('rootElements'), message]
- }
- }
- });
- }
- // (2) update (or remove) messageRef
- message = message || findRootElementById(messageEventDefinition, 'bpmn:Message', value);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: messageEventDefinition,
- properties: {
- messageRef: message
- }
- }
- });
- // (3) commit all updates
- return commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- const getOptions = () => {
- let options = [{
- value: EMPTY_OPTION$3,
- label: translate('<none>')
- }, {
- value: CREATE_NEW_OPTION$2,
- label: translate('Create new ...')
- }];
- const messages = findRootElementsByType(getBusinessObject(element), 'bpmn:Message');
- sortByName$3(messages).forEach(message => {
- options.push({
- value: message.get('id'),
- label: message.get('name')
- });
- });
- return options;
- };
- return ReferenceSelectEntry({
- element,
- id: 'messageRef',
- label: translate('Global message reference'),
- autoFocusEntry: 'messageName',
- getValue,
- setValue,
- getOptions
- });
- }
- function MessageName$1(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const message = getMessage(element);
- const getValue = () => {
- return message.get('name');
- };
- const setValue = value => {
- return commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: message,
- properties: {
- name: value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'messageName',
- label: translate('Name'),
- getValue,
- setValue,
- debounce
- });
- }
- // helper /////////////////////////
- function sortByName$3(elements) {
- return sortBy(elements, e => (e.name || '').toLowerCase());
- }
- /**
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
- */
- /**
- * @returns {Array<Entry>} entries
- */
- function MultiInstanceProps$2(props) {
- const {
- element
- } = props;
- if (!isMultiInstanceSupported$1(element)) {
- return [];
- }
- const entries = [{
- id: 'loopCardinality',
- component: LoopCardinality,
- isEdited: isTextFieldEntryEdited
- }, {
- id: 'completionCondition',
- component: CompletionCondition$1,
- isEdited: isTextFieldEntryEdited
- }];
- return entries;
- }
- function LoopCardinality(props) {
- const {
- element
- } = props;
- const bpmnFactory = useService('bpmnFactory');
- const debounce = useService('debounceInput');
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const getValue = () => {
- return getLoopCardinalityValue(element);
- };
- const setValue = value => {
- return commandStack.execute('element.updateModdleProperties', updateFormalExpression(element, 'loopCardinality', value, bpmnFactory));
- };
- return TextFieldEntry({
- element,
- id: 'loopCardinality',
- label: translate('Loop cardinality'),
- getValue,
- setValue,
- debounce
- });
- }
- function CompletionCondition$1(props) {
- const {
- element
- } = props;
- const bpmnFactory = useService('bpmnFactory');
- const debounce = useService('debounceInput');
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const getValue = () => {
- return getCompletionConditionValue(element);
- };
- const setValue = value => {
- return commandStack.execute('element.updateModdleProperties', updateFormalExpression(element, 'completionCondition', value, bpmnFactory));
- };
- return TextFieldEntry({
- element,
- id: 'completionCondition',
- label: translate('Completion condition'),
- getValue,
- setValue,
- debounce
- });
- }
- // helper ////////////////////////////
- // generic ///////////////////////////
- /**
- * isMultiInstanceSupported - check whether given element supports MultiInstanceLoopCharacteristics.
- *
- * @param {djs.model.Base} element
- * @return {boolean}
- */
- function isMultiInstanceSupported$1(element) {
- const loopCharacteristics = getLoopCharacteristics$2(element);
- return !!loopCharacteristics && is(loopCharacteristics, 'bpmn:MultiInstanceLoopCharacteristics');
- }
- /**
- * getBody - get the body of a given expression.
- *
- * @param {ModdleElement<bpmn:FormalExpression>} expression
- * @return {string} the body (value) of the expression
- */
- function getBody(expression) {
- return expression && expression.get('body');
- }
- /**
- * getProperty - get a property value of the loop characteristics.
- *
- * @param {djs.model.Base} element
- * @param {string} propertyName
- *
- * @return {any} the property value
- */
- function getProperty$2(element, propertyName) {
- const loopCharacteristics = getLoopCharacteristics$2(element);
- return loopCharacteristics && loopCharacteristics.get(propertyName);
- }
- /**
- * getLoopCharacteristics - get loopCharacteristics of a given element.
- *
- * @param {djs.model.Base} element
- * @return {ModdleElement<bpmn:MultiInstanceLoopCharacteristics> | undefined}
- */
- function getLoopCharacteristics$2(element) {
- const bo = getBusinessObject(element);
- return bo.loopCharacteristics;
- }
- /**
- * createFormalExpression - creates a 'bpmn:FormalExpression' element.
- *
- * @param {ModdleElement} parent
- * @param {string} body
- * @param {BpmnFactory} bpmnFactory
- *
- * @result {ModdleElement<bpmn:FormalExpression>} a formal expression
- */
- function createFormalExpression$1(parent, body, bpmnFactory) {
- return createElement('bpmn:FormalExpression', {
- body: body
- }, parent, bpmnFactory);
- }
- /**
- * updateFormalExpression - updates a specific formal expression of the loop characteristics.
- *
- * @param {djs.model.Base} element
- * @param {string} propertyName
- * @param {string} newValue
- * @param {BpmnFactory} bpmnFactory
- */
- function updateFormalExpression(element, propertyName, newValue, bpmnFactory) {
- const loopCharacteristics = getLoopCharacteristics$2(element);
- const expressionProps = {};
- if (!newValue) {
- // remove formal expression
- expressionProps[propertyName] = undefined;
- return {
- element,
- moddleElement: loopCharacteristics,
- properties: expressionProps
- };
- }
- const existingExpression = loopCharacteristics.get(propertyName);
- if (!existingExpression) {
- // add formal expression
- expressionProps[propertyName] = createFormalExpression$1(loopCharacteristics, newValue, bpmnFactory);
- return {
- element,
- moddleElement: loopCharacteristics,
- properties: expressionProps
- };
- }
- // edit existing formal expression
- return {
- element,
- moddleElement: existingExpression,
- properties: {
- body: newValue
- }
- };
- }
- // loopCardinality
- /**
- * getLoopCardinality - get the loop cardinality of the loop characteristics.
- *
- * @param {djs.model.Base} element
- *
- * @return {ModdleElement<bpmn:FormalExpression>} an expression representing the loop cardinality
- */
- function getLoopCardinality(element) {
- return getProperty$2(element, 'loopCardinality');
- }
- /**
- * getLoopCardinalityValue - get the loop cardinality value of the loop characteristics.
- *
- * @param {djs.model.Base} element
- *
- * @return {string} the loop cardinality value
- */
- function getLoopCardinalityValue(element) {
- const loopCardinality = getLoopCardinality(element);
- return getBody(loopCardinality);
- }
- // completionCondition /////////////////////
- /**
- * getCompletionCondition - get the completion condition of the loop characteristics.
- *
- * @param {djs.model.Base} element
- *
- * @return {ModdleElement<bpmn:FormalExpression>} an expression representing the completion condition
- */
- function getCompletionCondition$1(element) {
- return getProperty$2(element, 'completionCondition');
- }
- /**
- * getCompletionConditionValue - get the completion condition value of the loop characteristics.
- *
- * @param {djs.model.Base} element
- *
- * @return {string} the completion condition value
- */
- function getCompletionConditionValue(element) {
- const completionCondition = getCompletionCondition$1(element);
- return getBody(completionCondition);
- }
- /**
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
- */
- /**
- * @returns {Array<Entry>} entries
- */
- function NameProps(props) {
- const {
- element
- } = props;
- if (isAny(element, ['bpmn:Collaboration', 'bpmn:DataAssociation', 'bpmn:Association'])) {
- return [];
- }
- return [{
- id: 'name',
- component: Name$3,
- isEdited: isTextAreaEntryEdited
- }];
- }
- function Name$3(props) {
- const {
- element
- } = props;
- const modeling = useService('modeling');
- const debounce = useService('debounceInput');
- const canvas = useService('canvas');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- // (1) default: name
- let options = {
- element,
- id: 'name',
- label: translate('Name'),
- debounce,
- setValue: value => {
- modeling.updateProperties(element, {
- name: value
- });
- },
- getValue: element => {
- return element.businessObject.name;
- },
- autoResize: true
- };
- // (2) text annotations
- if (is(element, 'bpmn:TextAnnotation')) {
- options = {
- ...options,
- setValue: value => {
- modeling.updateProperties(element, {
- text: value
- });
- },
- getValue: element => {
- return element.businessObject.text;
- }
- };
- }
- // (3) groups
- else if (is(element, 'bpmn:Group')) {
- options = {
- ...options,
- setValue: value => {
- const businessObject = getBusinessObject(element),
- categoryValueRef = businessObject.categoryValueRef;
- if (!categoryValueRef) {
- initializeCategory(businessObject, canvas.getRootElement(), bpmnFactory);
- }
- modeling.updateLabel(element, value);
- },
- getValue: element => {
- const businessObject = getBusinessObject(element),
- categoryValueRef = businessObject.categoryValueRef;
- return categoryValueRef && categoryValueRef.value;
- }
- };
- }
- // (4) participants (only update label)
- else if (is(element, 'bpmn:Participant')) {
- options.label = translate('Participant Name');
- }
- return TextAreaEntry(options);
- }
- // helpers ////////////////////////
- function initializeCategory(businessObject, rootElement, bpmnFactory) {
- const definitions = getBusinessObject(rootElement).$parent;
- const categoryValue = createCategoryValue(definitions, bpmnFactory);
- businessObject.categoryValueRef = categoryValue;
- }
- function createCategoryValue(definitions, bpmnFactory) {
- const categoryValue = bpmnFactory.create('bpmn:CategoryValue');
- const category = bpmnFactory.create('bpmn:Category', {
- categoryValue: [categoryValue]
- });
- // add to correct place
- add(definitions.get('rootElements'), category);
- getBusinessObject(category).$parent = definitions;
- getBusinessObject(categoryValue).$parent = category;
- return categoryValue;
- }
- /**
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
- */
- /**
- * @returns {Array<Entry>} entries
- */
- function ProcessProps(props) {
- const {
- element
- } = props;
- if (!hasProcessRef(element)) {
- return [];
- }
- return [{
- id: 'processId',
- component: ProcessId,
- isEdited: isTextFieldEntryEdited
- }, {
- id: 'processName',
- component: ProcessName,
- isEdited: isTextFieldEntryEdited
- }];
- }
- function ProcessName(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const process = element.businessObject.get('processRef');
- const getValue = () => {
- return process.get('name');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: process,
- properties: {
- name: value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'processName',
- label: translate('Process name'),
- getValue,
- setValue,
- debounce
- });
- }
- function ProcessId(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const process = element.businessObject.get('processRef');
- const getValue = () => {
- return process.get('id');
- };
- const setValue = (value, error) => {
- if (error) {
- return;
- }
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: process,
- properties: {
- id: value
- }
- });
- };
- const validate = value => {
- return isIdValid(process, value, translate);
- };
- return TextFieldEntry({
- element,
- id: 'processId',
- label: translate('Process ID'),
- getValue,
- setValue,
- debounce,
- validate
- });
- }
- // helper ////////////////
- function hasProcessRef(element) {
- return is(element, 'bpmn:Participant') && element.businessObject.get('processRef');
- }
- /**
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
- */
- const EMPTY_OPTION$2 = '';
- const CREATE_NEW_OPTION$1 = 'create-new';
- /**
- * @returns {Entry[]}
- */
- function SignalProps$1(props) {
- const {
- element
- } = props;
- if (!isSignalSupported$1(element)) {
- return [];
- }
- const signal = getSignal$1(element);
- let entries = [{
- id: 'signalRef',
- component: SignalRef,
- isEdited: isSelectEntryEdited
- }];
- if (signal) {
- entries = [...entries, {
- id: 'signalName',
- component: SignalName$1,
- isEdited: isTextFieldEntryEdited
- }];
- }
- return entries;
- }
- function SignalRef(props) {
- const {
- element
- } = props;
- const bpmnFactory = useService('bpmnFactory');
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const signalEventDefinition = getSignalEventDefinition$1(element);
- const getValue = () => {
- const signal = getSignal$1(element);
- if (signal) {
- return signal.get('id');
- }
- return EMPTY_OPTION$2;
- };
- const setValue = value => {
- const root = getRoot(signalEventDefinition);
- const commands = [];
- let signal;
- // (1) create new signal
- if (value === CREATE_NEW_OPTION$1) {
- const id = nextId('Signal_');
- signal = createElement('bpmn:Signal', {
- id,
- name: id
- }, root, bpmnFactory);
- value = signal.get('id');
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: root,
- properties: {
- rootElements: [...root.get('rootElements'), signal]
- }
- }
- });
- }
- // (2) update (or remove) signalRef
- signal = signal || findRootElementById(signalEventDefinition, 'bpmn:Signal', value);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: signalEventDefinition,
- properties: {
- signalRef: signal
- }
- }
- });
- // (3) commit all updates
- return commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- const getOptions = () => {
- let options = [{
- value: EMPTY_OPTION$2,
- label: translate('<none>')
- }, {
- value: CREATE_NEW_OPTION$1,
- label: translate('Create new ...')
- }];
- const signals = findRootElementsByType(getBusinessObject(element), 'bpmn:Signal');
- sortByName$2(signals).forEach(signal => {
- options.push({
- value: signal.get('id'),
- label: signal.get('name')
- });
- });
- return options;
- };
- return ReferenceSelectEntry({
- element,
- id: 'signalRef',
- label: translate('Global signal reference'),
- autoFocusEntry: 'signalName',
- getValue,
- setValue,
- getOptions
- });
- }
- function SignalName$1(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const signal = getSignal$1(element);
- const getValue = () => {
- return signal.get('name');
- };
- const setValue = value => {
- return commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: signal,
- properties: {
- name: value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'signalName',
- label: translate('Name'),
- getValue,
- setValue,
- debounce
- });
- }
- // helper /////////////////////////
- function sortByName$2(elements) {
- return sortBy(elements, e => (e.name || '').toLowerCase());
- }
- function isTimerSupported(element) {
- return isAny(element, ['bpmn:StartEvent', 'bpmn:IntermediateCatchEvent', 'bpmn:BoundaryEvent']) && !!getTimerEventDefinition(element);
- }
- /**
- * Get the timer definition type for a given timer event definition.
- *
- * @param {ModdleElement<bpmn:TimerEventDefinition>} timer
- *
- * @return {string|undefined} the timer definition type
- */
- function getTimerDefinitionType(timer) {
- if (!timer) {
- return;
- }
- const timeDate = timer.get('timeDate');
- if (typeof timeDate !== 'undefined') {
- return 'timeDate';
- }
- const timeCycle = timer.get('timeCycle');
- if (typeof timeCycle !== 'undefined') {
- return 'timeCycle';
- }
- const timeDuration = timer.get('timeDuration');
- if (typeof timeDuration !== 'undefined') {
- return 'timeDuration';
- }
- }
- function getTimerEventDefinition(element) {
- return getEventDefinition(element, 'bpmn:TimerEventDefinition');
- }
- function getEventDefinition(element, eventType) {
- const businessObject = getBusinessObject(element);
- const eventDefinitions = businessObject.get('eventDefinitions') || [];
- return find(eventDefinitions, function (definition) {
- return is(definition, eventType);
- });
- }
- function getSignalEventDefinition(element) {
- return getEventDefinition(element, 'bpmn:SignalEventDefinition');
- }
- function isSignalSupported(element) {
- return is(element, 'bpmn:Event') && !!getSignalEventDefinition(element);
- }
- function getSignal(element) {
- const signalEventDefinition = getSignalEventDefinition(element);
- return signalEventDefinition && signalEventDefinition.get('signalRef');
- }
- function TimerProps$2(props) {
- const {
- element,
- idPrefix
- } = props;
- let {
- timerEventDefinition
- } = props;
- if (!timerEventDefinition) {
- const businessObject = getBusinessObject(element);
- timerEventDefinition = getTimerEventDefinition(businessObject);
- }
- const timerEventDefinitionType = getTimerDefinitionType(timerEventDefinition);
- // (1) Only show for supported elements
- if (!isTimerSupported(element)) {
- return [];
- }
- // (2) Provide entries, have a value only if selection was made
- const entries = [];
- entries.push({
- id: getId$1(idPrefix, 'timerEventDefinitionType'),
- component: TimerEventDefinitionType$2,
- isEdited: isSelectEntryEdited,
- timerEventDefinition,
- timerEventDefinitionType
- });
- if (timerEventDefinitionType) {
- entries.push({
- id: getId$1(idPrefix, 'timerEventDefinitionValue'),
- component: TimerEventDefinitionValue$2,
- isEdited: isTextFieldEntryEdited,
- timerEventDefinition,
- timerEventDefinitionType
- });
- }
- return entries;
- }
- /**
- * TimerEventDefinitionType - Generic select entry allowing to select a specific
- * timerEventDefintionType. To be used together with timerEventDefinitionValue.
- *
- * @param {type} props
- * @return {SelectEntry}
- */
- function TimerEventDefinitionType$2(props) {
- const {
- element,
- timerEventDefinition,
- timerEventDefinitionType
- } = props;
- const commandStack = useService('commandStack'),
- bpmnFactory = useService('bpmnFactory'),
- translate = useService('translate');
- const getValue = () => {
- return timerEventDefinitionType || '';
- };
- const setValue = value => {
- // (1) Check if value is different to current type
- if (value === timerEventDefinitionType) {
- return;
- }
- // (2) Create empty formalExpression element
- const formalExpression = bpmnFactory.create('bpmn:FormalExpression', {
- body: undefined
- });
- formalExpression.$parent = timerEventDefinition;
- // (3) Set the value for selected timerEventDefinitionType
- const newProps = {
- timeDuration: undefined,
- timeDate: undefined,
- timeCycle: undefined
- };
- if (value !== '') {
- newProps[value] = formalExpression;
- }
- // (4) Execute businessObject update
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: timerEventDefinition,
- properties: newProps
- });
- };
- const getOptions = element => {
- return [{
- value: '',
- label: translate('<none>')
- }, {
- value: 'timeDate',
- label: translate('Date')
- }, {
- value: 'timeDuration',
- label: translate('Duration')
- }, {
- value: 'timeCycle',
- label: translate('Cycle')
- }];
- };
- return SelectEntry({
- element,
- id: 'timerEventDefinitionType',
- label: translate('Type'),
- getValue,
- setValue,
- getOptions
- });
- }
- /**
- * TimerEventDefinitionValue - Generic textField entry allowing to specify the
- * timerEventDefintionValue based on the set timerEventDefintionType. To be used
- * together with timerEventDefinitionType.
- *
- * @param {type} props
- * @return {TextFieldEntry}
- */
- function TimerEventDefinitionValue$2(props) {
- const {
- element,
- timerEventDefinition,
- timerEventDefinitionType
- } = props;
- const commandStack = useService('commandStack'),
- translate = useService('translate'),
- debounce = useService('debounceInput');
- const timerEventFormalExpression = timerEventDefinition.get(timerEventDefinitionType);
- const getValue = () => {
- return timerEventFormalExpression && timerEventFormalExpression.get('body');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: timerEventFormalExpression,
- properties: {
- body: value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'timerEventDefinitionValue',
- label: translate('Value'),
- getValue,
- setValue,
- debounce,
- tooltip: getTimerEventDefinitionValueDescription$2(timerEventDefinitionType, translate)
- });
- }
- // helper //////////////////////////
- function getTimerEventDefinitionValueDescription$2(timerDefinitionType, translate) {
- switch (timerDefinitionType) {
- case 'timeDate':
- return jsxs("div", {
- children: [jsx("p", {
- children: translate('A specific point in time defined as ISO 8601 combined date and time representation.')
- }), jsxs("ul", {
- children: [jsxs("li", {
- children: [jsx("code", {
- children: "2019-10-01T12:00:00Z"
- }), " - ", translate('UTC time')]
- }), jsxs("li", {
- children: [jsx("code", {
- children: "2019-10-02T08:09:40+02:00"
- }), " - ", translate('UTC plus 2 hours zone offset')]
- })]
- }), jsx("a", {
- href: "https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-date",
- target: "_blank",
- rel: "noopener",
- children: translate('Documentation: Timer events')
- })]
- });
- case 'timeCycle':
- return jsxs("div", {
- children: [jsx("p", {
- children: translate('A cycle defined as ISO 8601 repeating intervals format.')
- }), jsxs("ul", {
- children: [jsxs("li", {
- children: [jsx("code", {
- children: "R5/PT10S"
- }), " - ", translate('every 10 seconds, up to 5 times')]
- }), jsxs("li", {
- children: [jsx("code", {
- children: "R/P1D"
- }), " - ", translate('every day, infinitely')]
- })]
- }), jsx("a", {
- href: "https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-cycle",
- target: "_blank",
- rel: "noopener",
- children: translate('Documentation: Timer events')
- })]
- });
- case 'timeDuration':
- return jsxs("div", {
- children: [jsx("p", {
- children: translate('A time duration defined as ISO 8601 durations format.')
- }), jsxs("ul", {
- children: [jsxs("li", {
- children: [jsx("code", {
- children: "PT15S"
- }), " - ", translate('15 seconds')]
- }), jsxs("li", {
- children: [jsx("code", {
- children: "PT1H30M"
- }), " - ", translate('1 hour and 30 minutes')]
- }), jsxs("li", {
- children: [jsx("code", {
- children: "P14D"
- }), " - ", translate('14 days')]
- })]
- }), jsx("a", {
- href: "https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-duration",
- target: "_blank",
- rel: "noopener",
- children: translate('Documentation: Timer events')
- })]
- });
- }
- }
- function getId$1(idPrefix, id) {
- return idPrefix ? idPrefix + id : id;
- }
- function GeneralGroup(element, injector) {
- const translate = injector.get('translate');
- const entries = [...NameProps({
- element
- }), ...IdProps(), ...ProcessProps({
- element
- }), ...ExecutableProps({
- element
- })];
- return {
- id: 'general',
- label: translate('General'),
- entries,
- component: Group
- };
- }
- function CompensationGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Compensation'),
- id: 'compensation',
- component: Group,
- entries: [...CompensationProps({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function DocumentationGroup(element, injector) {
- const translate = injector.get('translate');
- const entries = [...DocumentationProps({
- element
- })];
- return {
- id: 'documentation',
- label: translate('Documentation'),
- entries,
- component: Group
- };
- }
- function ErrorGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- id: 'error',
- label: translate('Error'),
- component: Group,
- entries: [...ErrorProps$2({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function MessageGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- id: 'message',
- label: translate('Message'),
- component: Group,
- entries: [...MessageProps$1({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function SignalGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- id: 'signal',
- label: translate('Signal'),
- component: Group,
- entries: [...SignalProps$1({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function LinkGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Link'),
- id: 'link',
- component: Group,
- entries: [...LinkProps({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function EscalationGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- id: 'escalation',
- label: translate('Escalation'),
- component: Group,
- entries: [...EscalationProps$2({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function TimerGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Timer'),
- id: 'timer',
- component: Group,
- entries: [...TimerProps$2({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function MultiInstanceGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Multi-instance'),
- id: 'multiInstance',
- component: Group,
- entries: [...MultiInstanceProps$2({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function getGroups(element, injector) {
- 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)];
- // contract: if a group returns null, it should not be displayed at all
- return groups.filter(group => group !== null);
- }
- class BpmnPropertiesProvider {
- constructor(propertiesPanel, injector) {
- propertiesPanel.registerProvider(this);
- this._injector = injector;
- }
- getGroups(element) {
- return groups => {
- groups = groups.concat(getGroups(element, this._injector));
- return groups;
- };
- }
- }
- BpmnPropertiesProvider.$inject = ['propertiesPanel', 'injector'];
- var index$2 = {
- __init__: ['bpmnPropertiesProvider'],
- bpmnPropertiesProvider: ['type', BpmnPropertiesProvider]
- };
- /**
- * Get extension elements of business object. Optionally filter by type.
- *
- * @param {ModdleElement} businessObject
- * @param {String} [type=undefined]
- * @returns {Array<ModdleElement>}
- */
- function getExtensionElementsList(businessObject, type = undefined) {
- const extensionElements = businessObject.get('extensionElements');
- if (!extensionElements) {
- return [];
- }
- const values = extensionElements.get('values');
- if (!values || !values.length) {
- return [];
- }
- if (type) {
- return values.filter(value => is(value, type));
- }
- return values;
- }
- /**
- * Add one or more extension elements. Create bpmn:ExtensionElements if it doesn't exist.
- *
- * @param {ModdleElement} element
- * @param {ModdleElement} businessObject
- * @param {ModdleElement|Array<ModdleElement>} extensionElementsToAdd
- * @param {CommandStack} commandStack
- */
- function addExtensionElements(element, businessObject, extensionElementToAdd, bpmnFactory, commandStack) {
- const commands = [];
- let extensionElements = businessObject.get('extensionElements');
- // (1) create bpmn:ExtensionElements if it doesn't exist
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- extensionElementToAdd.$parent = extensionElements;
- // (2) add extension element to list
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), extensionElementToAdd]
- }
- }
- });
- commandStack.execute('properties-panel.multi-command-executor', commands);
- }
- /**
- * Remove one or more extension elements. Remove bpmn:ExtensionElements afterwards if it's empty.
- *
- * @param {ModdleElement} element
- * @param {ModdleElement} businessObject
- * @param {ModdleElement|Array<ModdleElement>} extensionElementsToRemove
- * @param {CommandStack} commandStack
- */
- function removeExtensionElements(element, businessObject, extensionElementsToRemove, commandStack) {
- if (!isArray(extensionElementsToRemove)) {
- extensionElementsToRemove = [extensionElementsToRemove];
- }
- const extensionElements = businessObject.get('extensionElements'),
- values = extensionElements.get('values').filter(value => !extensionElementsToRemove.includes(value));
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: extensionElements,
- properties: {
- values
- }
- });
- }
- const fallbackResolver = {
- getVariablesForElement: bo => getVariablesForElement(bo)
- };
- function withVariableContext(Component) {
- return props => {
- const {
- bpmnElement,
- element
- } = props;
- const bo = (bpmnElement || element).businessObject;
- const [variables, setVariables] = useState([]);
- const eventBus = useService('eventBus');
- const variableResolver = useServiceIfAvailable('variableResolver', fallbackResolver);
- useEffect(() => {
- const extractVariables = async () => {
- const variables = await variableResolver.getVariablesForElement(bo, element);
- setVariables(variables.map(variable => {
- return {
- ...variable,
- info: variable.info || variable.origin && 'Written in ' + variable.origin.map(origin => origin.name || origin.id).join(', ')
- };
- }));
- };
- // The callback must return undefined, so the event propagation is not canceled.
- // Cf. https://github.com/camunda/camunda-modeler/issues/3392
- const callback = () => {
- extractVariables();
- };
- eventBus.on('commandStack.changed', callback);
- callback();
- return () => {
- eventBus.off('commandStack.changed', callback);
- };
- }, [bo]);
- return jsx(Component, {
- ...props,
- variables: variables
- });
- };
- }
- // helpers //////////
- function useServiceIfAvailable(service, fallback) {
- const resolved = useService(service, false);
- if (!resolved) {
- return fallback;
- }
- return resolved;
- }
- function withTooltipContainer(Component) {
- return props => {
- const tooltipContainer = useMemo(() => {
- const config = useService('config');
- return config && config.propertiesPanel && config.propertiesPanel.feelTooltipContainer;
- }, []);
- return jsx(Component, {
- ...props,
- tooltipContainer: tooltipContainer
- });
- };
- }
- const FeelEntry = withTooltipContainer(FeelEntry$1);
- const FeelEntryWithVariableContext = withVariableContext(FeelEntry);
- function AssignmentDefinitionProps(props) {
- const {
- element
- } = props;
- if (!is(element, 'bpmn:UserTask')) {
- return [];
- }
- return [{
- id: 'assignmentDefinitionAssignee',
- component: Assignee$1,
- isEdited: isFeelEntryEdited
- }, {
- id: 'assignmentDefinitionCandidateGroups',
- component: CandidateGroups$1,
- isEdited: isFeelEntryEdited
- }, {
- id: 'assignmentDefinitionCandidateUsers',
- component: CandidateUsers$1,
- isEdited: isFeelEntryEdited
- }];
- }
- function Assignee$1(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return (getAssignmentDefinition(element) || {}).assignee;
- };
- const setValue = value => {
- const commands = [];
- const businessObject = getBusinessObject(element);
- let extensionElements = businessObject.get('extensionElements');
- // (1) ensure extension elements
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) ensure AssignmentDefinition
- let assignmentDefinition = getAssignmentDefinition(element);
- if (!assignmentDefinition) {
- assignmentDefinition = createElement('zeebe:AssignmentDefinition', {}, extensionElements, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), assignmentDefinition]
- }
- }
- });
- }
- // (3) update assignee definition type
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: assignmentDefinition,
- properties: {
- assignee: value
- }
- }
- });
- // (4) commit all updates
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- return FeelEntryWithVariableContext({
- element,
- id: 'assignmentDefinitionAssignee',
- label: translate('Assignee'),
- feel: 'optional',
- getValue,
- setValue,
- debounce
- });
- }
- function CandidateGroups$1(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return (getAssignmentDefinition(element) || {}).candidateGroups;
- };
- const setValue = value => {
- let commands = [];
- const businessObject = getBusinessObject(element);
- let extensionElements = businessObject.get('extensionElements');
- // (1) ensure extension elements
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) ensure assignmentDefinition
- let assignmentDefinition = getAssignmentDefinition(element);
- if (!assignmentDefinition) {
- assignmentDefinition = createElement('zeebe:AssignmentDefinition', {}, extensionElements, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), assignmentDefinition]
- }
- }
- });
- }
- // (3) update candidateGroups
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: assignmentDefinition,
- properties: {
- candidateGroups: value
- }
- }
- });
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- return FeelEntryWithVariableContext({
- element,
- id: 'assignmentDefinitionCandidateGroups',
- label: translate('Candidate groups'),
- feel: 'optional',
- getValue,
- setValue,
- debounce
- });
- }
- function CandidateUsers$1(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return (getAssignmentDefinition(element) || {}).candidateUsers;
- };
- const setValue = value => {
- let commands = [];
- const businessObject = getBusinessObject(element);
- let extensionElements = businessObject.get('extensionElements');
- // (1) ensure extension elements
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) ensure assignmentDefinition
- let assignmentDefinition = getAssignmentDefinition(element);
- if (!assignmentDefinition) {
- assignmentDefinition = createElement('zeebe:AssignmentDefinition', {}, extensionElements, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), assignmentDefinition]
- }
- }
- });
- }
- // (3) update candidateUsers
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: assignmentDefinition,
- properties: {
- candidateUsers: value
- }
- }
- });
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- return FeelEntryWithVariableContext({
- element,
- id: 'assignmentDefinitionCandidateUsers',
- label: translate('Candidate users'),
- feel: 'optional',
- getValue,
- setValue,
- debounce
- });
- }
- // helper ///////////////////////
- function getAssignmentDefinition(element) {
- const businessObject = getBusinessObject(element);
- return getExtensionElementsList(businessObject, 'zeebe:AssignmentDefinition')[0];
- }
- function isZeebeServiceTask(element) {
- if (!is(element, 'zeebe:ZeebeServiceTask')) return false;
- if (is(element, 'bpmn:EndEvent') || is(element, 'bpmn:IntermediateThrowEvent')) {
- return !!getMessageEventDefinition(element);
- }
- // BusinessRuleTask and ScriptTask are ServiceTasks only if they have a TaskDefinition
- // (ie. if the implementation is set to ==JobWorker)
- if (isAny$1(element, ['bpmn:BusinessRuleTask', 'bpmn:ScriptTask']) && !getTaskDefinition$3(element)) {
- return false;
- }
- return true;
- }
- function isMessageEndEvent(element) {
- return is(element, 'bpmn:EndEvent') && !!getMessageEventDefinition(element);
- }
- function isMessageThrowEvent(element) {
- return is(element, 'bpmn:IntermediateThrowEvent') && !!getMessageEventDefinition(element);
- }
- // helper ////////////////
- function getTaskDefinition$3(element) {
- const businessObject = getBusinessObject(element);
- return getExtensionElementsList(businessObject, 'zeebe:TaskDefinition')[0];
- }
- function areHeadersSupported(element) {
- return is(element, 'bpmn:UserTask') || isZeebeServiceTask(element);
- }
- /**
- * Get first zeebe:TaskHeaders element for a specific element.
- *
- * @param {ModdleElement} element
- *
- * @return {ModdleElement} a zeebe:TaskHeader element
- */
- function getTaskHeaders$1(element) {
- const businessObject = getBusinessObject(element);
- return getExtensionElementsList(businessObject, 'zeebe:TaskHeaders')[0];
- }
- /**
- * Retrieve all zeebe:Header elements for a specific element.
- *
- * @param {ModdleElement} element
- *
- * @return {Array<ModdleElement>} a list of zeebe:Header elements
- */
- function getHeaders(element) {
- const taskHeaders = getTaskHeaders$1(element);
- return taskHeaders ? taskHeaders.get('values') : [];
- }
- const DMN_IMPLEMENTATION_OPTION = 'dmn',
- JOB_WORKER_IMPLEMENTATION_OPTION$1 = 'jobWorker',
- DEFAULT_IMPLEMENTATION_OPTION$1 = '';
- function BusinessRuleImplementationProps(props) {
- const {
- element
- } = props;
- if (!is(element, 'bpmn:BusinessRuleTask')) {
- return [];
- }
- return [{
- id: 'businessRuleImplementation',
- component: BusinessRuleImplementation,
- isEdited: () => isBusinessRuleImplementationEdited(element)
- }];
- }
- function BusinessRuleImplementation(props) {
- const {
- element,
- id
- } = props;
- const commandStack = useService('commandStack');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- const getValue = () => {
- if (getCalledDecision$1(element)) {
- return DMN_IMPLEMENTATION_OPTION;
- }
- if (getTaskDefinition$2(element)) {
- return JOB_WORKER_IMPLEMENTATION_OPTION$1;
- }
- return DEFAULT_IMPLEMENTATION_OPTION$1;
- };
- /**
- * Set value by either creating a zeebe:calledDecision or a zeebe:taskDefintion
- * extension element. Note that they must not exist both at the same time, however
- * this will be ensured by a bpmn-js behavior (and not by the propPanel).
- */
- const setValue = value => {
- let extensionElement, extensionElementType;
- if (value === DMN_IMPLEMENTATION_OPTION) {
- extensionElement = getCalledDecision$1(element);
- extensionElementType = 'zeebe:CalledDecision';
- } else if (value === JOB_WORKER_IMPLEMENTATION_OPTION$1) {
- extensionElement = getTaskDefinition$2(element);
- extensionElementType = 'zeebe:TaskDefinition';
- } else {
- resetElement$1(element, commandStack);
- }
- if (!extensionElement && extensionElementType) {
- extensionElement = createElement(extensionElementType, {}, null, bpmnFactory);
- updateExtensionElements$1(element, extensionElement, bpmnFactory, commandStack);
- }
- };
- const getOptions = () => {
- const options = [{
- value: DEFAULT_IMPLEMENTATION_OPTION$1,
- label: translate('<none>')
- }, {
- value: DMN_IMPLEMENTATION_OPTION,
- label: translate('DMN decision')
- }, {
- value: JOB_WORKER_IMPLEMENTATION_OPTION$1,
- label: translate('Job worker')
- }];
- return options;
- };
- return SelectEntry({
- element,
- id,
- label: translate('Implementation'),
- getValue,
- setValue,
- getOptions
- });
- }
- // helper ///////////////////////
- function getTaskDefinition$2(element) {
- const businessObject = getBusinessObject(element);
- return getExtensionElementsList(businessObject, 'zeebe:TaskDefinition')[0];
- }
- function getCalledDecision$1(element) {
- const businessObject = getBusinessObject(element);
- return getExtensionElementsList(businessObject, 'zeebe:CalledDecision')[0];
- }
- function isBusinessRuleImplementationEdited(element) {
- return getTaskDefinition$2(element);
- }
- function resetElement$1(element, commandStack) {
- const businessObject = getBusinessObject(element);
- const toRemove = [getTaskDefinition$2(element), getTaskHeaders$1(element), getCalledDecision$1(element)].filter(Boolean);
- removeExtensionElements(element, businessObject, toRemove, commandStack);
- }
- function updateExtensionElements$1(element, extensionElementToAdd, bpmnFactory, commandStack) {
- const businessObject = getBusinessObject(element);
- const commands = [];
- let extensionElements = businessObject.get('extensionElements');
- let extensionElementValues;
- // (1) create bpmn:ExtensionElements if it doesn't exist
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- extensionElementToAdd.$parent = extensionElements;
- // (2) remove old exension element from extensionElements
- if (is(extensionElementToAdd, 'zeebe:TaskDefinition')) {
- extensionElementValues = without(extensionElements.get('values'), getCalledDecision$1(element));
- } else if (is(extensionElementToAdd, 'zeebe:CalledDecision')) {
- extensionElementValues = without(extensionElements.get('values'), getTaskDefinition$2(element));
- }
- // (3) add extension element to list
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElementValues, extensionElementToAdd]
- }
- }
- });
- commandStack.execute('properties-panel.multi-command-executor', commands);
- }
- function CalledDecisionProps(props) {
- const {
- element
- } = props;
- if (!is(element, 'bpmn:BusinessRuleTask') || !getCalledDecision(element)) {
- return [];
- }
- return [{
- id: 'decisionId',
- component: DecisionID,
- isEdited: isFeelEntryEdited
- }, {
- id: 'resultVariable',
- component: ResultVariable$4,
- isEdited: isTextFieldEntryEdited
- }];
- }
- function DecisionID(props) {
- const {
- element,
- id
- } = props;
- const commandStack = useService('commandStack');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return (getCalledDecision(element) || {}).decisionId;
- };
- const setValue = value => {
- const commands = [];
- const businessObject = getBusinessObject(element);
- let extensionElements = businessObject.get('extensionElements');
- // (1) ensure extension elements
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) ensure calledDecision
- let calledDecision = getCalledDecision(element);
- if (!calledDecision) {
- calledDecision = createElement('zeebe:CalledDecision', {}, extensionElements, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), calledDecision]
- }
- }
- });
- }
- // (3) update caledDecision.decisionId
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: calledDecision,
- properties: {
- decisionId: value
- }
- }
- });
- // (4) commit all updates
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- return FeelEntryWithVariableContext({
- element,
- id,
- label: translate('Decision ID'),
- feel: 'optional',
- getValue,
- setValue,
- debounce
- });
- }
- function ResultVariable$4(props) {
- const {
- element,
- id
- } = props;
- const commandStack = useService('commandStack');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return (getCalledDecision(element) || {}).resultVariable;
- };
- const setValue = value => {
- const commands = [];
- const businessObject = getBusinessObject(element);
- let extensionElements = businessObject.get('extensionElements');
- // (1) ensure extension elements
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) ensure calledDecision
- let calledDecision = getCalledDecision(element);
- if (!calledDecision) {
- calledDecision = createElement('zeebe:CalledDecision', {}, extensionElements, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), calledDecision]
- }
- }
- });
- }
- // (3) update caledDecision.decisionId
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: calledDecision,
- properties: {
- resultVariable: value
- }
- }
- });
- // (4) commit all updates
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- return TextFieldEntry({
- element,
- id,
- label: translate('Result variable'),
- getValue,
- setValue,
- debounce
- });
- }
- // helper ///////////////////////
- function getCalledDecision(element) {
- const businessObject = getBusinessObject(element);
- return getExtensionElementsList(businessObject, 'zeebe:CalledDecision')[0];
- }
- function ConditionProps$1(props) {
- const {
- element
- } = props;
- if (!is(element, 'bpmn:SequenceFlow')) {
- return [];
- }
- const conditionProps = [];
- if (isConditionalSource$1(element.source)) {
- conditionProps.push({
- id: 'conditionExpression',
- component: ConditionExpression$1,
- isEdited: isFeelEntryEdited
- });
- }
- return conditionProps;
- }
- function ConditionExpression$1(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack'),
- bpmnFactory = useService('bpmnFactory'),
- translate = useService('translate'),
- debounce = useService('debounceInput');
- const getValue = () => {
- return getConditionExpression$1(element);
- };
- const setValue = value => {
- const commands = [];
- const businessObject = getBusinessObject(element);
- // (1) If we set value to a default flow, make it a non-default flow
- // by updating the element source
- const source = element.source;
- if (source.businessObject.default === businessObject) {
- commands.push({
- cmd: 'element.updateProperties',
- context: {
- element: source,
- properties: {
- 'default': undefined
- }
- }
- });
- }
- // (2) Create and set formalExpression element containing the conditionExpression,
- // unless the provided value is empty
- const formalExpressionElement = value && value != '' ? createElement('bpmn:FormalExpression', {
- body: value
- }, businessObject, bpmnFactory) : undefined;
- commands.push({
- cmd: 'element.updateProperties',
- context: {
- element: element,
- properties: {
- conditionExpression: formalExpressionElement
- }
- }
- });
- // (3) Execute the commands
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- return FeelEntryWithVariableContext({
- element,
- id: 'conditionExpression',
- label: translate('Condition expression'),
- feel: 'required',
- getValue,
- setValue,
- debounce
- });
- }
- // helper //////////////////////////
- const CONDITIONAL_SOURCES$1 = ['bpmn:Activity', 'bpmn:ExclusiveGateway', 'bpmn:InclusiveGateway'];
- function isConditionalSource$1(element) {
- return isAny(element, CONDITIONAL_SOURCES$1);
- }
- /**
- * getConditionExpression - get the body value of a condition expression for a given element
- *
- * @param {ModdleElement} element
- *
- * @return {string|undefined}
- */
- function getConditionExpression$1(element) {
- const businessObject = getBusinessObject(element);
- const conditionExpression = businessObject.conditionExpression;
- if (conditionExpression) {
- return conditionExpression.get('body');
- }
- }
- function ErrorProps$1(props) {
- const {
- element
- } = props;
- const error = getError(element);
- const entries = [];
- if (error && is(element, 'bpmn:ThrowEvent')) {
- entries.push({
- id: 'errorCode',
- component: ErrorCode$1,
- isEdited: isFeelEntryEdited
- });
- }
- return entries;
- }
- function ErrorCode$1(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const error = getError(element);
- const getValue = () => {
- return error.get('errorCode');
- };
- const setValue = value => {
- return commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: error,
- properties: {
- errorCode: value
- }
- });
- };
- return FeelEntryWithVariableContext({
- element,
- id: 'errorCode',
- label: translate('Code'),
- feel: 'optional',
- getValue,
- setValue,
- debounce
- });
- }
- /**
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
- */
- /**
- * @returns {Array<Entry>} entries
- */
- function EscalationProps$1(props) {
- const {
- element
- } = props;
- // update throw events only
- if (!is(element, 'bpmn:ThrowEvent')) {
- return [];
- }
- const escalation = getEscalation(element);
- const entries = [];
- if (escalation) {
- entries.push({
- id: 'escalationCode',
- component: EscalationCode,
- isEdited: isFeelEntryEdited
- });
- }
- return entries;
- }
- function EscalationCode(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const escalation = getEscalation(element);
- const getValue = () => {
- return escalation.get('escalationCode');
- };
- const setValue = value => {
- return commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: escalation,
- properties: {
- escalationCode: value
- }
- });
- };
- return FeelEntryWithVariableContext({
- element,
- id: 'escalationCode',
- label: translate('Code'),
- feel: 'optional',
- getValue,
- setValue,
- debounce
- });
- }
- function FormProps$1(props) {
- const {
- element,
- injector
- } = props;
- const formHelper = injector.invoke(FormHelper);
- if (!is(element, 'bpmn:UserTask')) {
- return [];
- }
- const entries = [{
- id: 'formType',
- component: FormType$1,
- isEdited: isSelectEntryEdited
- }];
- if (isCamundaForm(element, formHelper)) {
- entries.push({
- id: 'formConfiguration',
- component: FormConfiguration,
- isEdited: isTextAreaEntryEdited
- });
- } else if (isCustomKey(element, formHelper)) {
- entries.push({
- id: 'customFormKey',
- component: CustomFormKey,
- isEdited: isTextFieldEntryEdited
- });
- }
- return entries;
- }
- function FormType$1(props) {
- const {
- element
- } = props;
- const translate = useService('translate');
- const injector = useService('injector');
- const formHelper = injector.invoke(FormHelper);
- const getValue = () => {
- const formDefinition = formHelper.getFormDefinition(element);
- const userTaskForm = formHelper.getUserTaskForm(element);
- if (formDefinition) {
- if (userTaskForm) {
- return 'camundaForm';
- }
- return 'formKey';
- }
- return '';
- };
- const setValue = value => {
- formHelper.resetForm(element);
- if (value === 'camundaForm') {
- formHelper.setUserTaskForm(element, '');
- } else if (value === 'formKey') {
- formHelper.setFormDefinition(element, '');
- }
- };
- const getOptions = () => {
- return [{
- value: '',
- label: translate('<none>')
- }, {
- value: 'camundaForm',
- label: translate('Camunda forms')
- }, {
- value: 'formKey',
- label: translate('Custom form key')
- }];
- };
- return SelectEntry({
- element,
- id: 'formType',
- label: translate('Type'),
- getValue,
- setValue,
- getOptions
- });
- }
- function FormConfiguration(props) {
- const {
- element
- } = props;
- const injector = useService('injector');
- const debounce = useService('debounceInput');
- const translate = useService('translate');
- const formHelper = injector.invoke(FormHelper);
- const getValue = () => {
- const userTaskForm = formHelper.getUserTaskForm(element);
- return userTaskForm.get('body');
- };
- const setValue = value => {
- formHelper.setUserTaskForm(element, value);
- };
- return TextAreaEntry({
- element,
- id: 'formConfiguration',
- label: translate('Form JSON configuration'),
- rows: 4,
- getValue,
- setValue,
- debounce
- });
- }
- function CustomFormKey(props) {
- const {
- element
- } = props;
- const injector = useService('injector');
- const debounce = useService('debounceInput');
- const translate = useService('translate');
- const formHelper = injector.invoke(FormHelper);
- const getValue = () => {
- const formDefinition = formHelper.getFormDefinition(element);
- return formDefinition.get('formKey');
- };
- const setValue = value => {
- formHelper.setFormDefinition(element, value);
- };
- return TextFieldEntry({
- element,
- id: 'customFormKey',
- label: translate('Form key'),
- getValue,
- setValue,
- debounce
- });
- }
- const USER_TASK_FORM_PREFIX = 'userTaskForm_';
- function FormHelper(bpmnFactory, commandStack) {
- function getFormDefinition(element) {
- const businessObject = getBusinessObject(element);
- const formDefinitions = getExtensionElementsList(businessObject, 'zeebe:FormDefinition');
- return formDefinitions[0];
- }
- function getUserTaskForm(element, parent) {
- const rootElement = parent || getRootElement(element);
- // (1) get form definition from user task
- const formDefinition = getFormDefinition(element);
- if (isUndefined(formDefinition)) {
- return;
- }
- const formKey = formDefinition.get('formKey');
- // (2) retrieve user task form via form key
- const userTaskForm = findUserTaskForm(formKey, rootElement);
- return userTaskForm;
- }
- function ensureTaskForm(element, values) {
- let commands = [];
- const rootElement = getRootElement(element);
- // (1) ensure root element extension elements
- let rootExtensionElements = rootElement.get('extensionElements');
- if (!rootExtensionElements) {
- rootExtensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, rootElement, bpmnFactory);
- commands.push(UpdateModdlePropertiesCmd(element, rootElement, {
- extensionElements: rootExtensionElements
- }));
- }
- // (2) ensure user task form
- let userTaskForm = getUserTaskForm(element);
- // (2.1) create user task form if doesn't exist
- if (!userTaskForm) {
- userTaskForm = createUserTaskForm(values, rootExtensionElements, bpmnFactory);
- commands.push(UpdateModdlePropertiesCmd(element, rootExtensionElements, {
- values: [...rootExtensionElements.get('values'), userTaskForm]
- }));
- }
- commands.push(UpdateModdlePropertiesCmd(element, userTaskForm, values));
- return commands;
- }
- function ensureFormDefinition(element, customFormKey) {
- const businessObject = getBusinessObject(element);
- let commands = [];
- // (1) ensure extension elements
- let extensionElements = businessObject.get('extensionElements');
- if (isUndefined(extensionElements)) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push(UpdateModdlePropertiesCmd(element, businessObject, {
- extensionElements: extensionElements
- }));
- }
- // (2) ensure form definition
- let formDefinition = getFormDefinition(element);
- // (2.1) create if doesn't exist
- if (!formDefinition) {
- let formKey = customFormKey;
- if (isUndefined(formKey)) {
- const formId = createFormId();
- formKey = createFormKey(formId);
- }
- formDefinition = createFormDefinition({
- formKey
- }, extensionElements, bpmnFactory);
- commands.push(UpdateModdlePropertiesCmd(element, extensionElements, {
- values: [...extensionElements.get('values'), formDefinition]
- }));
- }
- // (2.2) update existing form definition with custom key
- else if (customFormKey) {
- commands.push(UpdateModdlePropertiesCmd(element, formDefinition, {
- formKey: customFormKey
- }));
- }
- return {
- formId: resolveFormId(formDefinition.get('formKey')),
- commands
- };
- }
- function setFormDefinition(element, customFormKey) {
- const {
- commands
- } = ensureFormDefinition(element, customFormKey);
- commandStack.execute('properties-panel.multi-command-executor', commands);
- }
- function setUserTaskForm(element, value) {
- const {
- formId,
- commands: formDefCommands
- } = ensureFormDefinition(element);
- const userTaskCommands = ensureTaskForm(element, {
- id: formId,
- body: value
- });
- const commands = formDefCommands.concat(userTaskCommands);
- commandStack.execute('properties-panel.multi-command-executor', commands);
- }
- function unsetFormDefinition(element) {
- const businessObject = getBusinessObject(element),
- extensionElements = businessObject.get('extensionElements');
- let commands = [];
- const formDefinition = getFormDefinition(element);
- if (!formDefinition) {
- return commands;
- }
- let values = without(extensionElements.get('values'), formDefinition);
- commands.push(UpdateModdlePropertiesCmd(element, extensionElements, {
- values
- }));
- return commands;
- }
- function resetForm(element) {
- const rootElement = getRootElement(element),
- rootExtensionElements = rootElement.get('extensionElements');
- // (1) remove form definition
- const commands = unsetFormDefinition(element);
- // (2) remove referenced user task form
- const userTaskForm = getUserTaskForm(element);
- if (!userTaskForm) {
- commandStack.execute('properties-panel.multi-command-executor', commands);
- return;
- }
- const values = without(rootExtensionElements.get('values'), userTaskForm);
- commands.push(UpdateModdlePropertiesCmd(element, rootExtensionElements, {
- values
- }));
- commandStack.execute('properties-panel.multi-command-executor', commands);
- }
- function createFormKey(formId) {
- return 'camunda-forms:bpmn:' + formId;
- }
- function createFormId() {
- return nextId(USER_TASK_FORM_PREFIX);
- }
- function resolveFormId(formKey) {
- return formKey.split(':')[2];
- }
- function createFormDefinition(properties, extensionElements, bpmnFactory) {
- return createElement('zeebe:FormDefinition', properties, extensionElements, bpmnFactory);
- }
- function createUserTaskForm(properties, extensionElements, bpmnFactory) {
- return createElement('zeebe:UserTaskForm', properties, extensionElements, bpmnFactory);
- }
- function findUserTaskForm(formKey, rootElement) {
- const forms = getExtensionElementsList(rootElement, 'zeebe:UserTaskForm');
- return find(forms, function (userTaskForm) {
- return createFormKey(userTaskForm.id) === formKey;
- });
- }
- function getRootElement(element) {
- const businessObject = getBusinessObject(element);
- let parent = businessObject;
- while (parent.$parent && !is(parent, 'bpmn:Process')) {
- parent = parent.$parent;
- }
- return parent;
- }
- return {
- getFormDefinition,
- getUserTaskForm,
- setFormDefinition,
- setUserTaskForm,
- resetForm
- };
- }
- FormHelper.$inject = ['bpmnFactory', 'commandStack'];
- // helpers /////////////
- function UpdateModdlePropertiesCmd(element, businessObject, newProperties) {
- return {
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: newProperties
- }
- };
- }
- function isCamundaForm(element, formHelper) {
- const formDefinition = formHelper.getFormDefinition(element);
- const userTaskForm = formHelper.getUserTaskForm(element);
- return formDefinition && userTaskForm;
- }
- function isCustomKey(element, formHelper) {
- const formDefinition = formHelper.getFormDefinition(element);
- const userTaskForm = formHelper.getUserTaskForm(element);
- return formDefinition && !userTaskForm;
- }
- function Header(props) {
- const {
- idPrefix,
- header
- } = props;
- const entries = [{
- id: idPrefix + '-key',
- component: KeyProperty,
- header,
- idPrefix
- }, {
- id: idPrefix + '-value',
- component: ValueProperty$2,
- header,
- idPrefix
- }];
- return entries;
- }
- function KeyProperty(props) {
- const {
- idPrefix,
- element,
- header
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: header,
- properties: {
- key: value
- }
- });
- };
- const getValue = header => {
- return header.key;
- };
- return TextFieldEntry({
- element: header,
- id: idPrefix + '-key',
- label: translate('Key'),
- getValue,
- setValue,
- debounce
- });
- }
- function ValueProperty$2(props) {
- const {
- idPrefix,
- element,
- header
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: header,
- properties: {
- value
- }
- });
- };
- const getValue = header => {
- return header.value;
- };
- return TextFieldEntry({
- element: header,
- id: idPrefix + '-value',
- label: translate('Value'),
- getValue,
- setValue,
- debounce
- });
- }
- function HeaderProps({
- element,
- injector
- }) {
- if (!areHeadersSupported(element)) {
- return null;
- }
- const headers = getHeaders(element) || [];
- const bpmnFactory = injector.get('bpmnFactory'),
- commandStack = injector.get('commandStack');
- const items = headers.map((header, index) => {
- const id = element.id + '-header-' + index;
- return {
- id,
- label: header.get('key') || '',
- entries: Header({
- idPrefix: id,
- element,
- header
- }),
- autoFocusEntry: id + '-key',
- remove: removeFactory$c({
- commandStack,
- element,
- header
- })
- };
- });
- return {
- items,
- add: addFactory$9({
- bpmnFactory,
- commandStack,
- element
- }),
- shouldSort: false
- };
- }
- function removeFactory$c({
- commandStack,
- element,
- header
- }) {
- return function (event) {
- event.stopPropagation();
- let commands = [];
- const taskHeaders = getTaskHeaders$1(element);
- if (!taskHeaders) {
- return;
- }
- const newTaskHeaders = without(taskHeaders.get('values'), header);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: taskHeaders,
- properties: {
- values: newTaskHeaders
- }
- }
- });
- // remove zeebe:TaskHeaders if there are no headers anymore
- if (!newTaskHeaders.length) {
- const businessObject = getBusinessObject(element),
- extensionElements = businessObject.get('extensionElements');
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: without(extensionElements.get('values'), taskHeaders)
- }
- }
- });
- }
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- }
- function addFactory$9({
- bpmnFactory,
- commandStack,
- element
- }) {
- return function (event) {
- event.stopPropagation();
- let commands = [];
- const businessObject = getBusinessObject(element);
- let extensionElements = businessObject.get('extensionElements');
- // (1) ensure extension elements
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) ensure zeebe:TaskHeaders
- let taskHeaders = getTaskHeaders$1(element);
- if (!taskHeaders) {
- const parent = extensionElements;
- taskHeaders = createElement('zeebe:TaskHeaders', {
- values: []
- }, parent, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), taskHeaders]
- }
- }
- });
- }
- // (3) create header
- const header = createElement('zeebe:Header', {}, taskHeaders, bpmnFactory);
- // (4) add header to list
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: taskHeaders,
- properties: {
- values: [...taskHeaders.get('values'), header]
- }
- }
- });
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- }
- function getProcessId(element) {
- const calledElement = getCalledElement(element);
- return calledElement ? calledElement.get('processId') : '';
- }
- function getCalledElement(element) {
- const calledElements = getCalledElements(element);
- return calledElements[0];
- }
- function getCalledElements(element) {
- const bo = getBusinessObject(element);
- const extElements = getExtensionElementsList(bo, 'zeebe:CalledElement');
- return extElements;
- }
- function InputPropagationProps(props) {
- const {
- element
- } = props;
- if (!is(element, 'bpmn:CallActivity')) {
- return [];
- }
- return [{
- id: 'propagateAllParentVariables',
- component: PropagateAllParentVariables,
- isEdited: isToggleSwitchEntryEdited
- }];
- }
- function PropagateAllParentVariables(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack'),
- bpmnFactory = useService('bpmnFactory'),
- translate = useService('translate');
- const propagateAllParentVariables = isPropagateAllParentVariables(element);
- const getValue = () => {
- return propagateAllParentVariables;
- };
- const setValue = value => {
- const commands = [];
- const businessObject = getBusinessObject(element);
- // (1) ensure extension elements
- let extensionElements = businessObject.get('extensionElements');
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) ensure zeebe:calledElement
- let calledElement = getCalledElement(businessObject);
- if (!calledElement) {
- calledElement = createElement('zeebe:CalledElement', {}, extensionElements, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), calledElement]
- }
- }
- });
- }
- // (3) Update propagateAllParentVariables attribute
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: calledElement,
- properties: {
- propagateAllParentVariables: value
- }
- }
- });
- // (4) Execute the commands
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- return ToggleSwitchEntry({
- id: 'propagateAllParentVariables',
- label: translate('Propagate all variables'),
- switcherLabel: propagateAllParentVariables ? translate('On') : translate('Off'),
- tooltip: jsxs("div", {
- children: [jsx("p", {
- children: translate('If turned on, all variables from this process instance will be propagated to the child process instance.')
- }), jsx("p", {
- children: translate('Otherwise, only variables defined via input mappings will be propagated.')
- })]
- }),
- getValue,
- setValue
- });
- }
- // helper //////////////////////////
- /**
- * Check whether the propagateAllParentVariables attribute is set on an element.
- * @param {Object} element
- *
- * @returns {boolean}
- */
- function isPropagateAllParentVariables(element) {
- if (!is(element, 'bpmn:CallActivity')) {
- return undefined;
- }
- const bo = getBusinessObject(element),
- calledElement = getCalledElement(bo);
- return calledElement && has(calledElement, 'propagateAllParentVariables') ? calledElement.get('propagateAllParentVariables') : /* default value */true;
- }
- function InputOutputParameter$1(props) {
- const {
- idPrefix,
- parameter
- } = props;
- const entries = [{
- id: idPrefix + '-target',
- component: TargetProperty,
- idPrefix,
- parameter
- }, {
- id: idPrefix + '-source',
- component: SourceProperty,
- idPrefix,
- parameter
- }];
- return entries;
- }
- function TargetProperty(props) {
- const {
- idPrefix,
- element,
- parameter
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: parameter,
- properties: {
- target: value
- }
- });
- };
- const getValue = parameter => {
- return parameter.target;
- };
- return TextFieldEntry({
- element: parameter,
- id: idPrefix + '-target',
- label: translate(is(parameter, 'zeebe:Input') ? 'Local variable name' : 'Process variable name'),
- getValue,
- setValue,
- debounce
- });
- }
- function SourceProperty(props) {
- const {
- idPrefix,
- element,
- parameter
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: parameter,
- properties: {
- source: value
- }
- });
- };
- const getValue = parameter => {
- return parameter.source;
- };
- return FeelEntryWithVariableContext({
- bpmnElement: element,
- element: parameter,
- id: idPrefix + '-source',
- label: translate('Variable assignment value'),
- feel: 'required',
- getValue,
- setValue,
- debounce
- });
- }
- function getElements$1(bo, type, prop) {
- const elems = getExtensionElementsList(bo, type);
- return !prop ? elems : (elems[0] || {})[prop] || [];
- }
- function getParameters$1(element, prop) {
- const ioMapping = getIoMapping(element);
- return ioMapping && ioMapping.get(prop) || [];
- }
- /**
- * Get a ioMapping from the business object
- *
- * @param {djs.model.Base} element
- *
- * @return {ModdleElement} the ioMapping object
- */
- function getIoMapping(element) {
- const bo = getBusinessObject(element);
- return (getElements$1(bo, 'zeebe:IoMapping') || [])[0];
- }
- /**
- * Return all input parameters existing in the business object, and
- * an empty array if none exist.
- *
- * @param {djs.model.Base} element
- *
- * @return {Array} a list of input parameter objects
- */
- function getInputParameters$1(element) {
- return getParameters$1.apply(this, [element, 'inputParameters']);
- }
- /**
- * Return all output parameters existing in the business object, and
- * an empty array if none exist.
- *
- * @param {djs.model.Base} element
- *
- * @return {Array} a list of output parameter objects
- */
- function getOutputParameters$1(element) {
- return getParameters$1.apply(this, [element, 'outputParameters']);
- }
- function areInputParametersSupported$1(element) {
- return isAny(element, ['bpmn:UserTask', 'bpmn:SubProcess', 'bpmn:CallActivity', 'bpmn:BusinessRuleTask', 'bpmn:ScriptTask']) || isZeebeServiceTask(element) || isSignalThrowEvent(element);
- }
- function areOutputParametersSupported$1(element) {
- if (is(element, 'bpmn:EndEvent') && getErrorEventDefinition(element)) {
- return false;
- }
- return isAny(element, ['zeebe:ZeebeServiceTask', 'bpmn:UserTask', 'bpmn:SubProcess', 'bpmn:ReceiveTask', 'bpmn:CallActivity', 'bpmn:Event', 'bpmn:BusinessRuleTask']);
- }
- function createIOMapping(properties, parent, bpmnFactory) {
- return createElement('zeebe:IoMapping', properties, parent, bpmnFactory);
- }
- function isSignalThrowEvent(element) {
- if (!isAny(element, ['bpmn:EndEvent', 'bpmn:IntermediateThrowEvent'])) {
- return false;
- }
- return !!getEventDefinition$1(element, 'bpmn:SignalEventDefinition');
- }
- function InputProps$1({
- element,
- injector
- }) {
- if (!areInputParametersSupported$1(element)) {
- return null;
- }
- const inputParameters = getInputParameters$1(element) || [];
- const bpmnFactory = injector.get('bpmnFactory'),
- commandStack = injector.get('commandStack');
- const items = inputParameters.map((parameter, index) => {
- const id = element.id + '-input-' + index;
- return {
- id,
- label: parameter.get('target') || '',
- entries: InputOutputParameter$1({
- idPrefix: id,
- element,
- parameter
- }),
- autoFocusEntry: id + '-target',
- remove: removeFactory$b({
- commandStack,
- element,
- parameter
- })
- };
- });
- return {
- items,
- add: addFactory$8({
- element,
- bpmnFactory,
- commandStack
- }),
- shouldSort: false
- };
- }
- function removeFactory$b({
- commandStack,
- element,
- parameter
- }) {
- return function (event) {
- event.stopPropagation();
- const commands = [];
- const ioMapping = getIoMapping(element);
- if (!ioMapping) {
- return;
- }
- const inputParameters = without(ioMapping.get('inputParameters'), parameter);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: ioMapping,
- properties: {
- inputParameters
- }
- }
- });
- const businessObject = getBusinessObject(element),
- extensionElements = businessObject.get('extensionElements'),
- values = without(extensionElements.get('values'), ioMapping);
- // remove ioMapping if there are no input/output parameters anymore
- if (!inputParameters.length && !ioMapping.get('outputParameters').length) {
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values
- }
- }
- });
- }
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- }
- function addFactory$8({
- element,
- bpmnFactory,
- commandStack
- }) {
- return function (event) {
- event.stopPropagation();
- const commands = [];
- const businessObject = getBusinessObject(element);
- let extensionElements = businessObject.get('extensionElements');
- // (1) ensure extension elements
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) ensure IoMapping
- let ioMapping = getIoMapping(element);
- if (!ioMapping) {
- ioMapping = createIOMapping({
- inputParameters: [],
- outputParameters: []
- }, extensionElements, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), ioMapping]
- }
- }
- });
- }
- // (3) create parameter
- const newParameter = createElement('zeebe:Input', {
- target: nextId('InputVariable_')
- }, ioMapping, bpmnFactory);
- // (4) add parameter to list
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: ioMapping,
- properties: {
- inputParameters: [...ioMapping.get('inputParameters'), newParameter]
- }
- }
- });
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- }
- function MessageProps(props) {
- const {
- element
- } = props;
- const message = getMessage(element);
- const entries = [];
- if (message) {
- entries.push({
- id: 'messageName',
- component: MessageName,
- isEdited: isFeelEntryEdited
- });
- }
- if (message && canHaveSubscriptionCorrelationKey(element)) {
- entries.push({
- id: 'messageSubscriptionCorrelationKey',
- component: SubscriptionCorrelationKey,
- isEdited: isFeelEntryEdited
- });
- }
- return entries;
- }
- function MessageName(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const message = getMessage(element);
- const getValue = () => {
- return message.get('name');
- };
- const setValue = value => {
- return commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: message,
- properties: {
- name: value
- }
- });
- };
- return FeelEntryWithVariableContext({
- element,
- id: 'messageName',
- label: translate('Name'),
- feel: 'optional',
- getValue,
- setValue,
- debounce
- });
- }
- function SubscriptionCorrelationKey(props) {
- const {
- element
- } = props;
- const bpmnFactory = useService('bpmnFactory');
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return getCorrelationKey(element);
- };
- const setValue = value => {
- const commands = [];
- const message = getMessage(element);
- let extensionElements = message.get('extensionElements');
- // (1) ensure extension elements
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, message, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: message,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) ensure subscription
- let subscription = getSubscription(element);
- if (!subscription) {
- subscription = createElement('zeebe:Subscription', {}, extensionElements, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), subscription]
- }
- }
- });
- }
- // (3) update subscription correlation key
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: subscription,
- properties: {
- correlationKey: value
- }
- }
- });
- // (4) commit all updates
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- return FeelEntryWithVariableContext({
- element,
- id: 'messageSubscriptionCorrelationKey',
- label: translate('Subscription correlation key'),
- feel: 'required',
- getValue,
- setValue,
- debounce
- });
- }
- // helper ///////////////////////
- function canHaveSubscriptionCorrelationKey(element) {
- // (1) allow for receive task
- if (is(element, 'bpmn:ReceiveTask')) {
- return true;
- }
- // (2) allow for non start events
- if (!is(element, 'bpmn:StartEvent')) {
- return true;
- }
- // (3) allow for start events inside event sub processes
- if (is(element, 'bpmn:StartEvent') && isEventSubProcess(element.parent)) {
- return true;
- }
- return false;
- }
- function getCorrelationKey(element) {
- const subscription = getSubscription(element);
- return subscription ? subscription.get('correlationKey') : '';
- }
- function getSubscription(element) {
- const message = getMessage(element);
- const subscriptions = getSubscriptions(message);
- return subscriptions[0];
- }
- function getSubscriptions(message) {
- const extensionElements = getExtensionElementsList(message, 'zeebe:Subscription');
- return extensionElements;
- }
- function MultiInstanceProps$1(props) {
- const {
- element
- } = props;
- if (!supportsMultiInstances(element)) {
- return [];
- }
- return [{
- id: 'multiInstance-inputCollection',
- component: InputCollection,
- isEdited: isFeelEntryEdited
- }, {
- id: 'multiInstance-inputElement',
- component: InputElement,
- isEdited: isTextFieldEntryEdited
- }, {
- id: 'multiInstance-outputCollection',
- component: OutputCollection,
- isEdited: isTextFieldEntryEdited
- }, {
- id: 'multiInstance-outputElement',
- component: OutputElement,
- isEdited: isFeelEntryEdited
- }, {
- id: 'multiInstance-completionCondition',
- component: CompletionCondition,
- isEdited: isFeelEntryEdited
- }];
- }
- function InputCollection(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return getProperty$1(element, 'inputCollection');
- };
- const setValue = value => {
- return setProperty(element, 'inputCollection', value, commandStack, bpmnFactory);
- };
- return FeelEntryWithVariableContext({
- element,
- id: 'multiInstance-inputCollection',
- label: translate('Input collection'),
- feel: 'required',
- getValue,
- setValue,
- debounce
- });
- }
- function InputElement(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return getProperty$1(element, 'inputElement');
- };
- const setValue = value => {
- return setProperty(element, 'inputElement', value, commandStack, bpmnFactory);
- };
- return TextFieldEntry({
- element,
- id: 'multiInstance-inputElement',
- label: translate('Input element'),
- getValue,
- setValue,
- debounce
- });
- }
- function OutputCollection(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return getProperty$1(element, 'outputCollection');
- };
- const setValue = value => {
- return setProperty(element, 'outputCollection', value, commandStack, bpmnFactory);
- };
- return TextFieldEntry({
- element,
- id: 'multiInstance-outputCollection',
- label: translate('Output collection'),
- getValue,
- setValue,
- debounce
- });
- }
- function OutputElement(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return getProperty$1(element, 'outputElement');
- };
- const setValue = value => {
- return setProperty(element, 'outputElement', value, commandStack, bpmnFactory);
- };
- return FeelEntryWithVariableContext({
- element,
- id: 'multiInstance-outputElement',
- label: translate('Output element'),
- feel: 'required',
- getValue,
- setValue,
- debounce
- });
- }
- function CompletionCondition(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- const completionCondition = getCompletionCondition(element);
- return completionCondition && completionCondition.get('body');
- };
- const setValue = value => {
- if (value && value !== '') {
- const loopCharacteristics = getLoopCharacteristics$1(element);
- const completionCondition = createElement('bpmn:FormalExpression', {
- body: value
- }, loopCharacteristics, bpmnFactory);
- setCompletionCondition(element, commandStack, completionCondition);
- } else {
- setCompletionCondition(element, commandStack, undefined);
- }
- };
- return FeelEntryWithVariableContext({
- element,
- id: 'multiInstance-completionCondition',
- label: translate('Completion condition'),
- feel: 'required',
- getValue,
- setValue,
- debounce
- });
- }
- // helper ///////////////////////
- function getLoopCharacteristics$1(element) {
- const businessObject = getBusinessObject(element);
- return businessObject.get('loopCharacteristics');
- }
- function getZeebeLoopCharacteristics(loopCharacteristics) {
- const extensionElements = getExtensionElementsList(loopCharacteristics, 'zeebe:LoopCharacteristics');
- return extensionElements && extensionElements[0];
- }
- function supportsMultiInstances(element) {
- return !!getLoopCharacteristics$1(element);
- }
- function getCompletionCondition(element) {
- return getLoopCharacteristics$1(element).get('completionCondition');
- }
- function setCompletionCondition(element, commandStack, completionCondition = undefined) {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: getLoopCharacteristics$1(element),
- properties: {
- completionCondition
- }
- });
- }
- function getProperty$1(element, propertyName) {
- const loopCharacteristics = getLoopCharacteristics$1(element),
- zeebeLoopCharacteristics = getZeebeLoopCharacteristics(loopCharacteristics);
- return zeebeLoopCharacteristics && zeebeLoopCharacteristics.get(propertyName);
- }
- function setProperty(element, propertyName, value, commandStack, bpmnFactory) {
- const loopCharacteristics = getLoopCharacteristics$1(element);
- const commands = [];
- // (1) ensure extension elements
- let extensionElements = loopCharacteristics.get('extensionElements');
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, loopCharacteristics, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: loopCharacteristics,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) ensure zeebe loop characteristics
- let zeebeLoopCharacteristics = getZeebeLoopCharacteristics(loopCharacteristics);
- if (!zeebeLoopCharacteristics) {
- zeebeLoopCharacteristics = createElement('zeebe:LoopCharacteristics', {}, extensionElements, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), zeebeLoopCharacteristics]
- }
- }
- });
- }
- // (3) update defined property
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: zeebeLoopCharacteristics,
- properties: {
- [propertyName]: value
- }
- }
- });
- // (4) commit all updates
- commandStack.execute('properties-panel.multi-command-executor', commands);
- }
- function OutputPropagationProps(props) {
- const {
- element
- } = props;
- if (!is(element, 'bpmn:CallActivity')) {
- return [];
- }
- return [{
- id: 'propagateAllChildVariables',
- component: PropagateAllChildVariables,
- isEdited: isToggleSwitchEntryEdited
- }];
- }
- function PropagateAllChildVariables(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack'),
- bpmnFactory = useService('bpmnFactory'),
- translate = useService('translate');
- const propagateAllChildVariables = isPropagateAllChildVariables(element);
- const getValue = () => {
- return propagateAllChildVariables;
- };
- const setValue = value => {
- const commands = [];
- const businessObject = getBusinessObject(element);
- // (1) ensure extension elements
- let extensionElements = businessObject.get('extensionElements');
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) ensure zeebe:calledElement
- let calledElement = getCalledElement(businessObject);
- if (!calledElement) {
- calledElement = createElement('zeebe:CalledElement', {}, extensionElements, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), calledElement]
- }
- }
- });
- }
- // (3) Update propagateAllChildVariables attribute
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: calledElement,
- properties: {
- propagateAllChildVariables: value
- }
- }
- });
- // (4) Execute the commands
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- return ToggleSwitchEntry({
- id: 'propagateAllChildVariables',
- label: translate('Propagate all child process variables'),
- switcherLabel: propagateAllChildVariables ? translate('On') : translate('Off'),
- tooltip: jsxs("div", {
- children: [jsx("p", {
- children: translate('If turned on, all variables from the child process instance will be propagated to the parent process instance.')
- }), jsx("p", {
- children: translate('Otherwise, only variables defined via output mappings will be propagated.')
- })]
- }),
- getValue,
- setValue
- });
- }
- // helper //////////////////////////
- /**
- * Determine default value for propagateAllChildVariables attribute
- * @param {Object} element representing a bpmn:CallActivity
- *
- * @returns {boolean}
- */
- function determinePropAllChildVariablesDefault(element) {
- const outputParameters = getOutputParameters$1(element);
- if (outputParameters) {
- return outputParameters.length > 0 ? false : true;
- }
- }
- /**
- * Check whether the propagateAllChildVariables attribute is set on an element.
- * Note that a default logic will be determine if it is not explicitly set.
- * @param {Object} element
- *
- * @returns {boolean}
- */
- function isPropagateAllChildVariables(element) {
- if (!is(element, 'bpmn:CallActivity')) {
- return undefined;
- }
- const bo = getBusinessObject(element),
- calledElement = getCalledElement(bo);
- return calledElement && has(calledElement, 'propagateAllChildVariables') ? calledElement.get('propagateAllChildVariables') : determinePropAllChildVariablesDefault(element);
- }
- function OutputProps$1({
- element,
- injector
- }) {
- if (!areOutputParametersSupported$1(element)) {
- return null;
- }
- const outputParameters = getOutputParameters$1(element) || [];
- const bpmnFactory = injector.get('bpmnFactory'),
- commandStack = injector.get('commandStack');
- const items = outputParameters.map((parameter, index) => {
- const id = element.id + '-output-' + index;
- return {
- id,
- label: parameter.get('target') || '',
- entries: InputOutputParameter$1({
- idPrefix: id,
- element,
- parameter
- }),
- autoFocusEntry: id + '-target',
- remove: removeFactory$a({
- commandStack,
- element,
- parameter
- })
- };
- });
- return {
- items,
- add: addFactory$7({
- element,
- bpmnFactory,
- commandStack
- }),
- shouldSort: false
- };
- }
- function removeFactory$a({
- commandStack,
- element,
- parameter
- }) {
- return function (event) {
- event.stopPropagation();
- let commands = [];
- const ioMapping = getIoMapping(element);
- if (!ioMapping) {
- return;
- }
- const outputParameters = without(ioMapping.get('outputParameters'), parameter);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: ioMapping,
- properties: {
- outputParameters
- }
- }
- });
- // remove ioMapping if there are no input/output parameters anymore
- if (!ioMapping.get('inputParameters').length && !outputParameters.length) {
- const businessObject = getBusinessObject(element),
- extensionElements = businessObject.get('extensionElements'),
- values = without(extensionElements.get('values'), ioMapping);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values
- }
- }
- });
- }
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- }
- function addFactory$7({
- element,
- bpmnFactory,
- commandStack
- }) {
- return function (event) {
- event.stopPropagation();
- let commands = [];
- const businessObject = getBusinessObject(element);
- let extensionElements = businessObject.get('extensionElements');
- // (1) ensure extension elements
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) ensure IoMapping
- let ioMapping = getIoMapping(element);
- if (!ioMapping) {
- const parent = extensionElements;
- ioMapping = createIOMapping({
- inputParameters: [],
- outputParameters: []
- }, parent, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), ioMapping]
- }
- }
- });
- }
- // (3) create parameter
- const newParameter = createElement('zeebe:Output', {
- target: nextId('OutputVariable_')
- }, ioMapping, bpmnFactory);
- // (4) add parameter to list
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: ioMapping,
- properties: {
- outputParameters: [...ioMapping.get('outputParameters'), newParameter]
- }
- }
- });
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- }
- const SCRIPT_IMPLEMENTATION_OPTION = 'script',
- JOB_WORKER_IMPLEMENTATION_OPTION = 'jobWorker',
- DEFAULT_IMPLEMENTATION_OPTION = '';
- function ScriptImplementationProps(props) {
- const {
- element
- } = props;
- if (!is(element, 'bpmn:ScriptTask')) {
- return [];
- }
- return [{
- id: 'scriptImplementation',
- component: ScriptImplementation,
- isEdited: () => isScriptImplementationEdited(element)
- }];
- }
- function ScriptImplementation(props) {
- const {
- element,
- id
- } = props;
- const commandStack = useService('commandStack');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- const getValue = () => {
- if (getScript$1(element)) {
- return SCRIPT_IMPLEMENTATION_OPTION;
- }
- if (getTaskDefinition$1(element)) {
- return JOB_WORKER_IMPLEMENTATION_OPTION;
- }
- return DEFAULT_IMPLEMENTATION_OPTION;
- };
- /**
- * Set value by either creating a zeebe:script or a zeebe:taskDefintion
- * extension element. Note that they must not exist both at the same time, however
- * this will be ensured by a bpmn-js behavior (and not by the propPanel).
- */
- const setValue = value => {
- let extensionElement, extensionElementType;
- if (value === SCRIPT_IMPLEMENTATION_OPTION) {
- extensionElement = getScript$1(element);
- extensionElementType = 'zeebe:Script';
- } else if (value === JOB_WORKER_IMPLEMENTATION_OPTION) {
- extensionElement = getTaskDefinition$1(element);
- extensionElementType = 'zeebe:TaskDefinition';
- } else {
- resetElement(element, commandStack);
- }
- if (!extensionElement && extensionElementType) {
- extensionElement = createElement(extensionElementType, {}, null, bpmnFactory);
- updateExtensionElements(element, extensionElement, bpmnFactory, commandStack);
- }
- };
- const getOptions = () => {
- const options = [{
- value: DEFAULT_IMPLEMENTATION_OPTION,
- label: translate('<none>')
- }, {
- value: SCRIPT_IMPLEMENTATION_OPTION,
- label: translate('FEEL expression')
- }, {
- value: JOB_WORKER_IMPLEMENTATION_OPTION,
- label: translate('Job worker')
- }];
- return options;
- };
- return SelectEntry({
- element,
- id,
- label: translate('Implementation'),
- getValue,
- setValue,
- getOptions
- });
- }
- // helper ///////////////////////
- function getTaskDefinition$1(element) {
- const businessObject = getBusinessObject(element);
- return getExtensionElementsList(businessObject, 'zeebe:TaskDefinition')[0];
- }
- function getScript$1(element) {
- const businessObject = getBusinessObject(element);
- return getExtensionElementsList(businessObject, 'zeebe:Script')[0];
- }
- function getTaskHeaders(element) {
- const businessObject = getBusinessObject(element);
- return getExtensionElementsList(businessObject, 'zeebe:TaskHeaders');
- }
- function isScriptImplementationEdited(element) {
- return getTaskDefinition$1(element) || getScript$1(element);
- }
- function resetElement(element, commandStack) {
- const businessObject = getBusinessObject(element);
- const taskDefinition = getTaskDefinition$1(element);
- const taskHeaders = getTaskHeaders(element);
- const script = getScript$1(element);
- if (taskDefinition) {
- const removed = [taskDefinition, taskHeaders].filter(Boolean);
- removeExtensionElements(element, businessObject, removed, commandStack);
- return;
- }
- if (script) {
- removeExtensionElements(element, businessObject, script, commandStack);
- }
- }
- function updateExtensionElements(element, extensionElementToAdd, bpmnFactory, commandStack) {
- const businessObject = getBusinessObject(element);
- const commands = [];
- let extensionElements = businessObject.get('extensionElements');
- let extensionElementValues;
- // (1) create bpmn:ExtensionElements if it doesn't exist
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- extensionElementToAdd.$parent = extensionElements;
- // (2) remove old exension element from extensionElements
- if (is(extensionElementToAdd, 'zeebe:TaskDefinition')) {
- extensionElementValues = without(extensionElements.get('values'), getScript$1(element));
- } else if (is(extensionElementToAdd, 'zeebe:Script')) {
- const matcher = extension => isAny$1(extension, ['zeebe:TaskDefinition', 'zeebe:TaskHeaders']);
- extensionElementValues = without(extensionElements.get('values'), matcher);
- }
- // (3) add extension element to list
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElementValues, extensionElementToAdd]
- }
- }
- });
- commandStack.execute('properties-panel.multi-command-executor', commands);
- }
- function ScriptProps$1(props) {
- const {
- element
- } = props;
- if (!is(element, 'bpmn:ScriptTask') || !getScript(element)) {
- return [];
- }
- return [{
- id: 'resultVariable',
- component: ResultVariable$3,
- isEdited: isTextFieldEntryEdited
- }, {
- id: 'scriptExpression',
- component: Expression$2,
- isEdited: isFeelEntryEdited
- }];
- }
- function Expression$2(props) {
- const {
- element,
- id
- } = props;
- const commandStack = useService('commandStack');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return (getScript(element) || {}).get('expression');
- };
- const setValue = value => {
- const commands = [];
- const businessObject = getBusinessObject(element);
- let extensionElements = businessObject.get('extensionElements');
- // (1) ensure extension elements
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) ensure script
- let script = getScript(element);
- if (!script) {
- script = createElement('zeebe:Script', {}, extensionElements, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), script]
- }
- }
- });
- }
- // (3) update script.expression
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: script,
- properties: {
- expression: value
- }
- }
- });
- // (4) commit all updates
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- return FeelEntryWithVariableContext({
- element,
- id,
- label: translate('FEEL expression'),
- feel: 'required',
- getValue,
- setValue,
- debounce
- });
- }
- function ResultVariable$3(props) {
- const {
- element,
- id
- } = props;
- const commandStack = useService('commandStack');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return (getScript(element) || {}).resultVariable;
- };
- const setValue = value => {
- const commands = [];
- const businessObject = getBusinessObject(element);
- let extensionElements = businessObject.get('extensionElements');
- // (1) ensure extension elements
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) ensure script
- let script = getScript(element);
- if (!script) {
- script = createElement('zeebe:Script', {}, extensionElements, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), script]
- }
- }
- });
- }
- // (3) update script.resultVariable
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: script,
- properties: {
- resultVariable: value
- }
- }
- });
- // (4) commit all updates
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- return TextFieldEntry({
- element,
- id,
- label: translate('Result variable'),
- getValue,
- setValue,
- debounce
- });
- }
- // helper ///////////////////////
- function getScript(element) {
- const businessObject = getBusinessObject(element);
- return getExtensionElementsList(businessObject, 'zeebe:Script')[0];
- }
- /**
- * @returns {Entry[]}
- */
- function SignalProps(props) {
- const {
- element
- } = props;
- if (!isSignalSupported(element)) {
- return [];
- }
- const signal = getSignal(element);
- let entries = [];
- if (signal) {
- entries = [...entries, {
- id: 'signalName',
- component: SignalName,
- isEdited: isFeelEntryEdited
- }];
- }
- return entries;
- }
- function SignalName(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const signal = getSignal(element);
- const getValue = () => {
- return signal.get('name');
- };
- const setValue = value => {
- return commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: signal,
- properties: {
- name: value
- }
- });
- };
- return FeelEntryWithVariableContext({
- element,
- id: 'signalName',
- label: translate('Name'),
- feel: 'optional',
- getValue,
- setValue,
- debounce
- });
- }
- function TargetProps(props) {
- const {
- element
- } = props;
- if (!is(element, 'bpmn:CallActivity')) {
- return [];
- }
- return [{
- id: 'targetProcessId',
- component: TargetProcessId,
- isEdited: isFeelEntryEdited
- }];
- }
- function TargetProcessId(props) {
- const {
- element,
- id
- } = props;
- const commandStack = useService('commandStack'),
- bpmnFactory = useService('bpmnFactory'),
- translate = useService('translate'),
- debounce = useService('debounceInput');
- const getValue = () => {
- return getProcessId(element);
- };
- const setValue = value => {
- const commands = [];
- const businessObject = getBusinessObject(element);
- // (1) ensure extension elements
- let extensionElements = businessObject.get('extensionElements');
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) ensure zeebe:calledElement
- let calledElement = getCalledElement(businessObject);
- if (!calledElement) {
- calledElement = createElement('zeebe:CalledElement', {}, extensionElements, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), calledElement]
- }
- }
- });
- }
- // (3) Update processId attribute
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: calledElement,
- properties: {
- processId: value
- }
- }
- });
- // (4) Execute the commands
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- return FeelEntryWithVariableContext({
- element,
- id,
- label: translate('Process ID'),
- feel: 'optional',
- getValue,
- setValue,
- debounce
- });
- }
- function TaskDefinitionProps(props) {
- const {
- element
- } = props;
- if (!isZeebeServiceTask(element)) {
- return [];
- }
- return [{
- id: 'taskDefinitionType',
- component: TaskDefinitionType,
- isEdited: isFeelEntryEdited
- }, {
- id: 'taskDefinitionRetries',
- component: TaskDefinitionRetries,
- isEdited: isFeelEntryEdited
- }];
- }
- function TaskDefinitionType(props) {
- const {
- element,
- id
- } = props;
- const commandStack = useService('commandStack');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return (getTaskDefinition(element) || {}).type;
- };
- const setValue = value => {
- const commands = [];
- const businessObject = getBusinessObject(element);
- let extensionElements = businessObject.get('extensionElements');
- // (1) ensure extension elements
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) ensure task definition
- let taskDefinition = getTaskDefinition(element);
- if (!taskDefinition) {
- taskDefinition = createElement('zeebe:TaskDefinition', {}, extensionElements, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), taskDefinition]
- }
- }
- });
- }
- // (3) update task definition type
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: taskDefinition,
- properties: {
- type: value
- }
- }
- });
- // (4) commit all updates
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- return FeelEntryWithVariableContext({
- element,
- id,
- label: translate('Type'),
- feel: 'optional',
- getValue,
- setValue,
- debounce
- });
- }
- function TaskDefinitionRetries(props) {
- const {
- element,
- id
- } = props;
- const commandStack = useService('commandStack');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return (getTaskDefinition(element) || {}).retries;
- };
- const setValue = value => {
- let commands = [];
- const businessObject = getBusinessObject(element);
- let extensionElements = businessObject.get('extensionElements');
- // (1) ensure extension elements
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) ensure task definition
- let taskDefinition = getTaskDefinition(element);
- if (!taskDefinition) {
- taskDefinition = createElement('zeebe:TaskDefinition', {}, extensionElements, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), taskDefinition]
- }
- }
- });
- }
- // (3) update task definition retries
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: taskDefinition,
- properties: {
- retries: value
- }
- }
- });
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- return FeelEntryWithVariableContext({
- element,
- id,
- label: translate('Retries'),
- feel: 'optional',
- getValue,
- setValue,
- debounce,
- tooltip: translate('Specifies the number of times the job is retried when a worker signals failure. The default is three.')
- });
- }
- // helper ///////////////////////
- function getTaskDefinition(element) {
- const businessObject = getBusinessObject(element);
- return getExtensionElementsList(businessObject, 'zeebe:TaskDefinition')[0];
- }
- function TaskScheduleProps(props) {
- const {
- element
- } = props;
- if (!is(element, 'bpmn:UserTask')) {
- return [];
- }
- return [{
- id: 'taskScheduleDueDate',
- component: DueDate$1,
- isEdited: isFeelEntryEdited
- }, {
- id: 'taskScheduleFollowUpDate',
- component: FollowUpDate$1,
- isEdited: isFeelEntryEdited
- }];
- }
- function DueDate$1(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- const taskSchedule = getTaskSchedule(element);
- if (!taskSchedule) {
- return;
- }
- return taskSchedule.get('dueDate');
- };
- const setValue = value => {
- let commands = [];
- const businessObject = getBusinessObject(element);
- let extensionElements = businessObject.get('extensionElements');
- // (1) ensure extension elements
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) ensure zeebe:TaskSchedule
- let taskSchedule = getTaskSchedule(element);
- if (!taskSchedule) {
- taskSchedule = createElement('zeebe:TaskSchedule', {}, extensionElements, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), taskSchedule]
- }
- }
- });
- }
- // (3) update zeebe:dueDate
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: taskSchedule,
- properties: {
- dueDate: value
- }
- }
- });
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- return FeelEntryWithVariableContext({
- element,
- id: 'taskScheduleDueDate',
- label: translate('Due date'),
- feel: 'optional',
- getValue,
- setValue,
- debounce
- });
- }
- function FollowUpDate$1(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- const taskSchedule = getTaskSchedule(element);
- if (!taskSchedule) {
- return;
- }
- return taskSchedule.get('followUpDate');
- };
- const setValue = value => {
- let commands = [];
- const businessObject = getBusinessObject(element);
- let extensionElements = businessObject.get('extensionElements');
- // (1) ensure extension elements
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) ensure zeebe:TaskSchedule
- let taskSchedule = getTaskSchedule(element);
- if (!taskSchedule) {
- taskSchedule = createElement('zeebe:TaskSchedule', {}, extensionElements, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), taskSchedule]
- }
- }
- });
- }
- // (3) update zeebe:followUpDate
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: taskSchedule,
- properties: {
- followUpDate: value
- }
- }
- });
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- return FeelEntryWithVariableContext({
- element,
- id: 'taskScheduleFollowUpDate',
- label: translate('Follow up date'),
- feel: 'optional',
- getValue,
- setValue,
- debounce
- });
- }
- // helper ///////////////////////
- function getTaskSchedule(element) {
- const businessObject = getBusinessObject(element);
- return getExtensionElementsList(businessObject, 'zeebe:TaskSchedule')[0];
- }
- /**
- * Check whether a given timer expression type is supported for a given element.
- *
- * @param {string} type
- * @param {Element|ModdleElement} element
- *
- * @return {boolean}
- */
- function isTimerExpressionTypeSupported(type, element) {
- const businessObject = getBusinessObject(element);
- switch (type) {
- case 'timeDate':
- return isAny$1(element, ['bpmn:BoundaryEvent', 'bpmn:IntermediateCatchEvent', 'bpmn:StartEvent']);
- case 'timeCycle':
- if (is(element, 'bpmn:StartEvent') && !hasParentEventSubProcess(businessObject) || !isInterrupting(businessObject)) {
- return true;
- }
- if (is(element, 'bpmn:BoundaryEvent') && !isInterrupting(businessObject)) {
- return true;
- }
- return false;
- case 'timeDuration':
- if (isAny$1(element, ['bpmn:BoundaryEvent', 'bpmn:IntermediateCatchEvent'])) {
- return true;
- }
- if (is(element, 'bpmn:StartEvent') && hasParentEventSubProcess(businessObject)) {
- return true;
- }
- return false;
- default:
- return false;
- }
- }
- function isInterrupting(businessObject) {
- if (is(businessObject, 'bpmn:BoundaryEvent')) {
- return businessObject.get('cancelActivity') !== false;
- }
- return businessObject.get('isInterrupting') !== false;
- }
- function hasParentEventSubProcess(businessObject) {
- const parent = businessObject.$parent;
- return parent && is(parent, 'bpmn:SubProcess') && parent.get('triggeredByEvent');
- }
- function TimerProps$1(props) {
- const {
- element,
- injector
- } = props;
- const translate = injector.get('translate');
- const businessObject = getBusinessObject(element),
- timerEventDefinition = getTimerEventDefinition(businessObject),
- timerEventDefinitionType = getTimerDefinitionType(timerEventDefinition);
- // (1) Only show for supported elements
- if (!isTimerSupported(element)) {
- return [];
- }
- const timerOptions = getTimerOptions(element, translate);
- const entries = [];
- entries.push({
- id: 'timerEventDefinitionType',
- component: TimerEventDefinitionType$1,
- isEdited: isSelectEntryEdited,
- options: timerOptions
- });
- if (timerEventDefinitionType) {
- entries.push({
- id: 'timerEventDefinitionValue',
- component: TimerEventDefinitionValue$1,
- isEdited: isFeelEntryEdited,
- timerEventDefinitionType: timerEventDefinitionType || timerOptions[0].value
- });
- }
- return entries;
- }
- function getTimerOptions(element, translate) {
- const options = [];
- if (isTimerExpressionTypeSupported('timeDate', element)) {
- options.push({
- value: 'timeDate',
- label: translate('Date')
- });
- }
- if (isTimerExpressionTypeSupported('timeDuration', element)) {
- options.push({
- value: 'timeDuration',
- label: translate('Duration')
- });
- }
- if (isTimerExpressionTypeSupported('timeCycle', element)) {
- options.push({
- value: 'timeCycle',
- label: translate('Cycle')
- });
- }
- return options;
- }
- /**
- * TimerEventDefinitionType - Generic select entry allowing to select a specific
- * timerEventDefintionType. To be used together with timerEventDefinitionValue.
- *
- * @param {type} props
- * @return {SelectEntry}
- */
- function TimerEventDefinitionType$1(props) {
- const {
- element,
- options
- } = props;
- const commandStack = useService('commandStack'),
- bpmnFactory = useService('bpmnFactory'),
- translate = useService('translate');
- const businessObject = getBusinessObject(element),
- timerEventDefinition = getTimerEventDefinition(businessObject),
- timerEventDefinitionType = getTimerDefinitionType(timerEventDefinition);
- const getValue = () => {
- return timerEventDefinitionType || '';
- };
- const setValue = value => {
- // (1) Check if value is different to current type
- if (value === timerEventDefinitionType) {
- return;
- }
- // (2) Create empty formalExpression element
- const formalExpression = createTimerFormalExpression(bpmnFactory, timerEventDefinition);
- // (3) Set the value for selected timerEventDefinitionType
- const newProps = {
- timeDuration: undefined,
- timeDate: undefined,
- timeCycle: undefined
- };
- if (value !== '') {
- newProps[value] = formalExpression;
- }
- // (4) Execute businessObject update
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: timerEventDefinition,
- properties: newProps
- });
- };
- const getOptions = element => {
- return [{
- value: '',
- label: translate('<none>')
- }, ...options];
- };
- return SelectEntry({
- element,
- id: 'timerEventDefinitionType',
- label: translate('Type'),
- getValue,
- setValue,
- getOptions
- });
- }
- /**
- * TimerEventDefinitionValue - Generic textField entry allowing to specify the
- * timerEventDefintionValue based on the set timerEventDefintionType. To be used
- * together with timerEventDefinitionType.
- *
- * @param {object} props
- * @param {ModdleElement} props.element
- * @param {'timeCycle'|'timeDate'|'timeDuration'} props.timerEventDefinitionType?
- * @param {string} props.label?
- * @return {TextFieldEntry}
- */
- function TimerEventDefinitionValue$1(props) {
- const {
- element,
- label,
- timerEventDefinitionType
- } = props;
- const commandStack = useService('commandStack'),
- translate = useService('translate'),
- debounce = useService('debounceInput'),
- bpmnFactory = useService('bpmnFactory');
- const businessObject = getBusinessObject(element),
- timerEventDefinition = getTimerEventDefinition(businessObject),
- timerEventFormalExpression = timerEventDefinition.get(timerEventDefinitionType);
- const getValue = () => {
- return timerEventFormalExpression && timerEventFormalExpression.get('body');
- };
- const setValue = value => {
- if (!timerEventFormalExpression) {
- const expression = createTimerFormalExpression(bpmnFactory, timerEventDefinition);
- expression.set('body', value);
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: timerEventDefinition,
- properties: {
- [timerEventDefinitionType]: expression
- }
- });
- return;
- }
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: timerEventFormalExpression,
- properties: {
- body: value
- }
- });
- };
- return FeelEntryWithVariableContext({
- element,
- id: 'timerEventDefinitionValue',
- label: label || translate('Value'),
- feel: 'optional',
- getValue,
- setValue,
- debounce,
- tooltip: getTimerEventDefinitionValueDescription$1(timerEventDefinitionType, translate)
- });
- }
- // helper //////////////////////////
- function createTimerFormalExpression(bpmnFactory, eventDefinition) {
- const formalExpression = bpmnFactory.create('bpmn:FormalExpression', {
- body: undefined
- });
- formalExpression.$parent = eventDefinition;
- return formalExpression;
- }
- function getTimerEventDefinitionValueDescription$1(timerDefinitionType, translate) {
- switch (timerDefinitionType) {
- case 'timeDate':
- return jsxs("div", {
- children: [jsx("p", {
- children: translate('A specific point in time defined as ISO 8601 combined date and time representation.')
- }), jsxs("ul", {
- children: [jsxs("li", {
- children: [jsx("code", {
- children: "2019-10-01T12:00:00Z"
- }), " - ", translate('UTC time')]
- }), jsxs("li", {
- children: [jsx("code", {
- children: "2019-10-02T08:09:40+02:00"
- }), " - ", translate('UTC plus 2 hours zone offset')]
- })]
- }), jsx("a", {
- href: "https://docs.camunda.io/docs/reference/bpmn-processes/timer-events/timer-events#time-date",
- target: "_blank",
- rel: "noopener",
- title: translate('Timer documentation'),
- children: translate('How to configure a timer')
- })]
- });
- case 'timeCycle':
- return jsxs("div", {
- children: [jsx("p", {
- children: translate('A cycle defined as ISO 8601 repeating intervals format, or a cron expression.')
- }), jsxs("ul", {
- children: [jsxs("li", {
- children: [jsx("code", {
- children: "R5/PT10S"
- }), " - ", translate('every 10 seconds, up to 5 times')]
- }), jsxs("li", {
- children: [jsx("code", {
- children: "R/P1D"
- }), " - ", translate('every day, infinitely')]
- }), jsxs("li", {
- children: [jsx("code", {
- children: "0 0 9-17 * * MON-FRI"
- }), " - ", translate('every hour on the hour from 9-5 p.m. UTC Monday-Friday')]
- })]
- }), jsx("a", {
- href: "https://docs.camunda.io/docs/reference/bpmn-processes/timer-events/timer-events#time-cycle",
- target: "_blank",
- rel: "noopener",
- title: translate('Timer documentation'),
- children: translate('How to configure a timer')
- })]
- });
- case 'timeDuration':
- return jsxs("div", {
- children: [jsx("p", {
- children: translate('A time duration defined as ISO 8601 durations format.')
- }), jsxs("ul", {
- children: [jsxs("li", {
- children: [jsx("code", {
- children: "PT15S"
- }), " - ", translate('15 seconds')]
- }), jsxs("li", {
- children: [jsx("code", {
- children: "PT1H30M"
- }), " - ", translate('1 hour and 30 minutes')]
- }), jsxs("li", {
- children: [jsx("code", {
- children: "P14D"
- }), " - ", translate('14 days')]
- })]
- }), jsx("a", {
- href: "https://docs.camunda.io/docs/reference/bpmn-processes/timer-events/timer-events#time-duration",
- target: "_blank",
- rel: "noopener",
- title: translate('Timer documentation'),
- children: translate('How to configure a timer')
- })]
- });
- }
- }
- function ExtensionProperty(props) {
- const {
- idPrefix,
- property
- } = props;
- const entries = [{
- id: idPrefix + '-name',
- component: NameProperty$1,
- idPrefix,
- property
- }, {
- id: idPrefix + '-value',
- component: ValueProperty$1,
- idPrefix,
- property
- }];
- return entries;
- }
- function NameProperty$1(props) {
- const {
- idPrefix,
- element,
- property
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: property,
- properties: {
- name: value
- }
- });
- };
- const getValue = () => {
- return property.name;
- };
- return TextFieldEntry({
- element: property,
- id: idPrefix + '-name',
- label: translate('Name'),
- getValue,
- setValue,
- debounce
- });
- }
- function ValueProperty$1(props) {
- const {
- idPrefix,
- element,
- property
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: property,
- properties: {
- value
- }
- });
- };
- const getValue = () => {
- return property.value;
- };
- return TextFieldEntry({
- element: property,
- id: idPrefix + '-value',
- label: translate('Value'),
- getValue,
- setValue,
- debounce
- });
- }
- function ExtensionPropertiesProps({
- element,
- injector,
- namespace = 'camunda'
- }) {
- let businessObject = getRelevantBusinessObject(element);
- // do not offer for empty pools
- if (!businessObject) {
- return;
- }
- const properties = getPropertiesList(businessObject, namespace) || [];
- const bpmnFactory = injector.get('bpmnFactory'),
- commandStack = injector.get('commandStack');
- const items = properties.map((property, index) => {
- const id = element.id + '-extensionProperty-' + index;
- return {
- id,
- label: property.get('name') || '',
- entries: ExtensionProperty({
- idPrefix: id,
- element,
- property
- }),
- autoFocusEntry: id + '-name',
- remove: removeFactory$9({
- commandStack,
- element,
- property,
- namespace
- })
- };
- });
- return {
- items,
- add: addFactory$6({
- bpmnFactory,
- commandStack,
- element,
- namespace
- }),
- shouldSort: false
- };
- }
- function removeFactory$9({
- commandStack,
- element,
- property,
- namespace
- }) {
- return function (event) {
- event.stopPropagation();
- const commands = [];
- const businessObject = getRelevantBusinessObject(element);
- const extensionElements = businessObject.get('extensionElements');
- const properties = getProperties(businessObject, namespace);
- if (!properties) {
- return;
- }
- const propertyName = getPropertyName(namespace);
- const values = without(properties.get(propertyName), property);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: properties,
- properties: {
- [propertyName]: values
- }
- }
- });
- // remove camunda:Properties if there are no properties anymore
- if (!values.length) {
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: without(extensionElements.get('values'), properties)
- }
- }
- });
- }
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- }
- function addFactory$6({
- bpmnFactory,
- commandStack,
- element,
- namespace
- }) {
- return function (event) {
- event.stopPropagation();
- let commands = [];
- const businessObject = getRelevantBusinessObject(element);
- let extensionElements = businessObject.get('extensionElements');
- // (1) ensure extension elements
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- const propertyName = getPropertyName(namespace);
- // (2) ensure camunda:Properties
- let properties = getProperties(businessObject, namespace);
- if (!properties) {
- const parent = extensionElements;
- properties = createElement(`${namespace}:Properties`, {
- [propertyName]: []
- }, parent, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), properties]
- }
- }
- });
- }
- // (3) create camunda:Property
- const property = createElement(`${namespace}:Property`, {}, properties, bpmnFactory);
- // (4) add property to list
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: properties,
- properties: {
- [propertyName]: [...properties.get(propertyName), property]
- }
- }
- });
- // (5) commit all updates
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- }
- // helper //////////////////
- function getRelevantBusinessObject(element) {
- let businessObject = getBusinessObject(element);
- if (is(element, 'bpmn:Participant')) {
- return businessObject.get('processRef');
- }
- return businessObject;
- }
- function getPropertyName(namespace = 'camunda') {
- if (namespace === 'zeebe') {
- return 'properties';
- }
- return 'values';
- }
- function getProperties(element, namespace = 'camunda') {
- const businessObject = getRelevantBusinessObject(element);
- return getExtensionElementsList(businessObject, `${namespace}:Properties`)[0];
- }
- function getPropertiesList(element, namespace = 'camunda') {
- const businessObject = getRelevantBusinessObject(element);
- const properties = getProperties(businessObject, namespace);
- return properties && properties.get(getPropertyName(namespace));
- }
- /**
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
- */
- const LOW_PRIORITY$1 = 500;
- const ZEEBE_GROUPS = [BusinessRuleImplementationGroup, CalledDecisionGroup, ScriptImplementationGroup, ScriptGroup$1, TaskDefinitionGroup, AssignmentDefinitionGroup, FormGroup$1, ConditionGroup$1, TargetGroup, InputPropagationGroup, InputGroup$1, OutputPropagationGroup, OutputGroup$1, HeaderGroup, ExtensionPropertiesGroup$1];
- class ZeebePropertiesProvider {
- constructor(propertiesPanel, injector) {
- propertiesPanel.registerProvider(LOW_PRIORITY$1, this);
- this._injector = injector;
- }
- getGroups(element) {
- return groups => {
- // (1) add zeebe specific groups
- groups = groups.concat(this._getGroups(element));
- // (2) update existing groups with zeebe specific properties
- updateErrorGroup$1(groups, element);
- updateEscalationGroup$1(groups, element);
- updateMessageGroup(groups, element);
- updateSignalGroup(groups, element);
- updateTimerGroup$1(groups, element, this._injector);
- updateMultiInstanceGroup$1(groups, element);
- // (3) remove message group when not applicable
- groups = removeMessageGroup(groups, element);
- return groups;
- };
- }
- _getGroups(element) {
- const groups = ZEEBE_GROUPS.map(createGroup => createGroup(element, this._injector));
- return groups.filter(group => group !== null);
- }
- }
- ZeebePropertiesProvider.$inject = ['propertiesPanel', 'injector'];
- function CalledDecisionGroup(element) {
- const group = {
- id: 'calledDecision',
- label: 'Called decision',
- entries: [...CalledDecisionProps({
- element
- })],
- component: Group
- };
- return group.entries.length ? group : null;
- }
- function ScriptGroup$1(element) {
- const group = {
- id: 'script',
- label: 'Script',
- entries: [...ScriptProps$1({
- element
- })],
- component: Group
- };
- return group.entries.length ? group : null;
- }
- function TaskDefinitionGroup(element) {
- const group = {
- id: 'taskDefinition',
- label: 'Task definition',
- entries: [...TaskDefinitionProps({
- element
- })],
- component: Group
- };
- return group.entries.length ? group : null;
- }
- function InputGroup$1(element, injector) {
- const group = {
- id: 'inputs',
- label: 'Inputs',
- component: ListGroup,
- ...InputProps$1({
- element,
- injector
- })
- };
- return group.items ? group : null;
- }
- function OutputGroup$1(element, injector) {
- const group = {
- id: 'outputs',
- label: 'Outputs',
- component: ListGroup,
- ...OutputProps$1({
- element,
- injector
- })
- };
- return group.items ? group : null;
- }
- function ConditionGroup$1(element) {
- const group = {
- id: 'condition',
- label: 'Condition',
- entries: [...ConditionProps$1({
- element
- })],
- component: Group
- };
- return group.entries.length ? group : null;
- }
- function FormGroup$1(element, injector) {
- const group = {
- id: 'form',
- label: 'Form',
- entries: [...FormProps$1({
- element,
- injector
- })],
- component: Group
- };
- return group.entries.length ? group : null;
- }
- function TargetGroup(element) {
- const group = {
- id: 'calledElement',
- label: 'Called element',
- entries: [...TargetProps({
- element
- })],
- component: Group
- };
- return group.entries.length ? group : null;
- }
- function HeaderGroup(element, injector) {
- const group = {
- id: 'headers',
- label: 'Headers',
- component: ListGroup,
- ...HeaderProps({
- element,
- injector
- })
- };
- return group.items ? group : null;
- }
- function OutputPropagationGroup(element) {
- const group = {
- id: 'outputPropagation',
- label: 'Output propagation',
- entries: [...OutputPropagationProps({
- element
- })],
- component: Group
- };
- return group.entries.length ? group : null;
- }
- function InputPropagationGroup(element) {
- const group = {
- id: 'inputPropagation',
- label: 'Input propagation',
- entries: [...InputPropagationProps({
- element
- })],
- component: Group
- };
- return group.entries.length ? group : null;
- }
- function BusinessRuleImplementationGroup(element) {
- const group = {
- id: 'businessRuleImplementation',
- label: 'Implementation',
- entries: [...BusinessRuleImplementationProps({
- element
- })],
- component: Group
- };
- return group.entries.length ? group : null;
- }
- function ScriptImplementationGroup(element) {
- const group = {
- id: 'scriptImplementation',
- label: 'Implementation',
- entries: [...ScriptImplementationProps({
- element
- })],
- component: Group
- };
- return group.entries.length ? group : null;
- }
- function AssignmentDefinitionGroup(element) {
- const group = {
- id: 'assignmentDefinition',
- label: 'Assignment',
- entries: [...AssignmentDefinitionProps({
- element
- }), ...TaskScheduleProps({
- element
- })],
- component: Group
- };
- return group.entries.length ? group : null;
- }
- function ExtensionPropertiesGroup$1(element, injector) {
- const group = {
- label: 'Extension properties',
- id: 'Zeebe__ExtensionProperties',
- component: ListGroup,
- ...ExtensionPropertiesProps({
- element,
- injector,
- namespace: 'zeebe'
- })
- };
- if (group.items) {
- return group;
- }
- return null;
- }
- function updateErrorGroup$1(groups, element) {
- const errorGroup = findGroup$1(groups, 'error');
- if (!errorGroup) {
- return;
- }
- errorGroup.entries = replaceEntries(errorGroup.entries, ErrorProps$1({
- element
- }));
- }
- function updateEscalationGroup$1(groups, element) {
- const escalationGroup = findGroup$1(groups, 'escalation');
- if (!escalationGroup) {
- return;
- }
- escalationGroup.entries = replaceEntries(escalationGroup.entries, EscalationProps$1({
- element
- }));
- }
- function updateSignalGroup(groups, element) {
- const signalGroup = findGroup$1(groups, 'signal');
- if (!signalGroup) {
- return;
- }
- signalGroup.entries = replaceEntries(signalGroup.entries, SignalProps({
- element
- }));
- }
- function updateMessageGroup(groups, element) {
- const messageGroup = findGroup$1(groups, 'message');
- if (!messageGroup) {
- return;
- }
- messageGroup.entries = replaceEntries(messageGroup.entries, MessageProps({
- element
- }));
- }
- // overwrite bpmn generic timerEventDefinition group with zeebe-specific one
- function updateTimerGroup$1(groups, element, injector) {
- const timerEventGroup = findGroup$1(groups, 'timer');
- if (!timerEventGroup) {
- return;
- }
- timerEventGroup.entries = [...TimerProps$1({
- element,
- injector
- })];
- }
- // overwrite bpmn generic multiInstance group with zeebe-specific one
- function updateMultiInstanceGroup$1(groups, element) {
- const multiInstanceGroup = findGroup$1(groups, 'multiInstance');
- if (!multiInstanceGroup) {
- return;
- }
- multiInstanceGroup.entries = [...MultiInstanceProps$1({
- element
- })];
- }
- // remove message group from Message End Event & Message Throw Event
- function removeMessageGroup(groups, element) {
- const messageGroup = findGroup$1(groups, 'message');
- if (isMessageEndEvent(element) || isMessageThrowEvent(element)) {
- groups = groups.filter(g => g != messageGroup);
- }
- return groups;
- }
- // helper /////////////////////
- function findGroup$1(groups, id) {
- return groups.find(g => g.id === id);
- }
- /**
- * Replace entries with the same ID.
- *s
- * @param {Entry[]} oldEntries
- * @param {Entry[]} newEntries
- *
- * @returns {Entry[]} combined entries
- */
- function replaceEntries(oldEntries, newEntries) {
- const filteredEntries = oldEntries.filter(oldEntry => !newEntries.find(newEntry => newEntry.id === oldEntry.id));
- return [...filteredEntries, ...newEntries];
- }
- var index$1 = {
- __init__: ['zeebePropertiesProvider'],
- zeebePropertiesProvider: ['type', ZeebePropertiesProvider]
- };
- function AsynchronousContinuationsProps(props) {
- const {
- element
- } = props;
- const checkboxIsEditedInverted = node => {
- return node && !node.checked;
- };
- const businessObject = getBusinessObject(element);
- const entries = [];
- if (is(element, 'camunda:AsyncCapable')) {
- entries.push({
- id: 'asynchronousContinuationBefore',
- component: AsynchronousContinuationBefore,
- isEdited: isCheckboxEntryEdited
- }, {
- id: 'asynchronousContinuationAfter',
- component: AsynchronousContinuationAfter,
- isEdited: isCheckboxEntryEdited
- });
- if (isAsyncBefore$2(businessObject) || isAsyncAfter$2(businessObject)) {
- entries.push({
- id: 'exclusive',
- component: Exclusive,
- isEdited: checkboxIsEditedInverted
- });
- }
- }
- return entries;
- }
- function AsynchronousContinuationBefore(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack'),
- translate = useService('translate');
- const businessObject = getBusinessObject(element);
- const getValue = () => {
- return isAsyncBefore$2(businessObject);
- };
- const setValue = value => {
- // overwrite the legacy `async` property, we will use the more explicit `asyncBefore`
- const props = {
- 'camunda:asyncBefore': value,
- 'camunda:async': undefined
- };
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: props
- });
- };
- return CheckboxEntry({
- element,
- id: 'asynchronousContinuationBefore',
- label: translate('Before'),
- getValue,
- setValue
- });
- }
- function AsynchronousContinuationAfter(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack'),
- translate = useService('translate');
- const businessObject = getBusinessObject(element);
- const getValue = () => {
- return isAsyncAfter$2(businessObject);
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:asyncAfter': value
- }
- });
- };
- return CheckboxEntry({
- element,
- id: 'asynchronousContinuationAfter',
- label: translate('After'),
- getValue,
- setValue
- });
- }
- function Exclusive(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack'),
- translate = useService('translate');
- const businessObject = getBusinessObject(element);
- const getValue = () => {
- return isExclusive$1(businessObject);
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:exclusive': value
- }
- });
- };
- return CheckboxEntry({
- element,
- id: 'exclusive',
- label: translate('Exclusive'),
- getValue,
- setValue
- });
- }
- // helper //////////////////
- /**
- * Returns true if the attribute 'camunda:asyncBefore' is set
- * to true.
- *
- * @param {ModdleElement} bo
- *
- * @return {boolean} a boolean value
- */
- function isAsyncBefore$2(bo) {
- return !!(bo.get('camunda:asyncBefore') || bo.get('camunda:async'));
- }
- /**
- * Returns true if the attribute 'camunda:asyncAfter' is set
- * to true.
- *
- * @param {ModdleElement} bo
- *
- * @return {boolean} a boolean value
- */
- function isAsyncAfter$2(bo) {
- return !!bo.get('camunda:asyncAfter');
- }
- /**
- * Returns true if the attribute 'camunda:exclusive' is set
- * to true.
- *
- * @param {ModdleElement} bo
- *
- * @return {boolean} a boolean value
- */
- function isExclusive$1(bo) {
- return !!bo.get('camunda:exclusive');
- }
- const EMPTY_OPTION$1 = '';
- function BusinessKeyProps$1(props) {
- const {
- element
- } = props;
- if (!is(element, 'bpmn:StartEvent') || !hasFormFields(element)) {
- return [];
- }
- return [{
- id: 'businessKey',
- component: BusinessKey$1,
- isEdited: isSelectEntryEdited
- }];
- }
- function BusinessKey$1(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const formData = getFormData$2(element);
- const getValue = () => {
- return formData.get('camunda:businessKey') || '';
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: formData,
- properties: {
- 'camunda:businessKey': value
- }
- });
- };
- const getOptions = () => {
- const options = [{
- value: EMPTY_OPTION$1,
- label: translate('<none>')
- }];
- const fields = formData.get('fields');
- fields.forEach(field => {
- const id = field.get('camunda:id');
- if (id) {
- options.push({
- value: id,
- label: id
- });
- }
- });
- return options;
- };
- return SelectEntry({
- element,
- id: 'businessKey',
- label: translate('Key'),
- getValue,
- setValue,
- getOptions
- });
- }
- // helper ///////////////////
- function getFormData$2(element) {
- const businessObject = getBusinessObject(element);
- return getExtensionElementsList(businessObject, 'camunda:FormData')[0];
- }
- function hasFormFields(element) {
- const businessObject = getBusinessObject(element);
- const formData = getFormData$2(businessObject);
- return formData && formData.get('camunda:fields').length;
- }
- function CalledBpmnProps(props) {
- const {
- element
- } = props;
- const entries = [{
- id: 'calledElement',
- component: CalledElement,
- isEdited: isTextFieldEntryEdited
- }, {
- id: 'calledElementBinding',
- component: CalledElementBinding,
- isEdited: isSelectEntryEdited
- }, {
- id: 'calledElementTenantId',
- component: CalledElementTenantId,
- isEdited: isTextFieldEntryEdited
- }];
- const binding = getBusinessObject(element).get('camunda:calledElementBinding');
- if (binding === 'version') {
- entries.splice(-1, 0, {
- id: 'calledElementVersion',
- component: CalledElementVersion,
- isEdited: isTextFieldEntryEdited
- });
- } else if (binding === 'versionTag') {
- entries.splice(-1, 0, {
- id: 'calledElementVersionTag',
- component: CalledElementVersionTag,
- isEdited: isTextFieldEntryEdited
- });
- }
- return entries;
- }
- function CalledElement(props) {
- const {
- element
- } = props;
- const modeling = useService('modeling');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return getBusinessObject(element).get('calledElement');
- };
- const setValue = value => {
- modeling.updateProperties(element, {
- calledElement: value || ''
- });
- };
- return jsx(TextFieldEntry, {
- element: element,
- id: "calledElement",
- label: translate('Called element'),
- getValue: getValue,
- setValue: setValue,
- debounce: debounce
- });
- }
- function CalledElementBinding(props) {
- const {
- element
- } = props;
- const modeling = useService('modeling');
- const translate = useService('translate');
- const getValue = () => {
- return getBusinessObject(element).get('camunda:calledElementBinding') || 'latest';
- };
- const setValue = value => {
- modeling.updateProperties(element, {
- calledElementBinding: value === 'latest' ? undefined : value,
- calledElementVersion: undefined,
- calledElementVersionTag: undefined
- });
- };
- const getOptions = () => [{
- value: 'latest',
- label: translate('latest')
- }, {
- value: 'deployment',
- label: translate('deployment')
- }, {
- value: 'version',
- label: translate('version')
- }, {
- value: 'versionTag',
- label: translate('version tag')
- }];
- return jsx(SelectEntry, {
- element: element,
- id: "calledElementBinding",
- label: translate('Binding'),
- getValue: getValue,
- setValue: setValue,
- getOptions: getOptions
- });
- }
- function CalledElementVersion(props) {
- const {
- element
- } = props;
- const modeling = useService('modeling');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return getBusinessObject(element).get('camunda:calledElementVersion');
- };
- const setValue = value => {
- modeling.updateProperties(element, {
- calledElementVersion: value
- });
- };
- return jsx(TextFieldEntry, {
- element: element,
- id: "calledElementVersion",
- label: translate('Version'),
- getValue: getValue,
- setValue: setValue,
- debounce: debounce
- });
- }
- function CalledElementVersionTag(props) {
- const {
- element
- } = props;
- const modeling = useService('modeling');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return getBusinessObject(element).get('camunda:calledElementVersionTag');
- };
- const setValue = value => {
- modeling.updateProperties(element, {
- calledElementVersionTag: value
- });
- };
- return jsx(TextFieldEntry, {
- element: element,
- id: "calledElementVersionTag",
- label: translate('Version tag'),
- getValue: getValue,
- setValue: setValue,
- debounce: debounce
- });
- }
- function CalledElementTenantId(props) {
- const {
- element
- } = props;
- const modeling = useService('modeling');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return getBusinessObject(element).get('camunda:calledElementTenantId');
- };
- const setValue = value => {
- modeling.updateProperties(element, {
- calledElementTenantId: value
- });
- };
- return jsx(TextFieldEntry, {
- element: element,
- id: "calledElementTenantId",
- label: translate('Tenant ID'),
- getValue: getValue,
- setValue: setValue,
- debounce: debounce
- });
- }
- function CalledCmmnProps(props) {
- const {
- element
- } = props;
- const entries = [{
- id: 'calledElementCaseRef',
- component: CaseRef,
- isEdited: isTextFieldEntryEdited
- }, {
- id: 'calledElementCaseBinding',
- component: CaseBinding,
- isEdited: isSelectEntryEdited
- }, {
- id: 'calledElementCaseTenantId',
- component: CaseTenantId,
- isEdited: isTextFieldEntryEdited
- }];
- if (getBusinessObject(element).get('camunda:caseBinding') === 'version') {
- entries.splice(-1, 0, {
- id: 'calledElementCaseVersion',
- component: CaseVersion,
- isEdited: isTextFieldEntryEdited
- });
- }
- return entries;
- }
- function CaseRef(props) {
- const {
- element
- } = props;
- const modeling = useService('modeling');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return getBusinessObject(element).get('camunda:caseRef');
- };
- const setValue = value => {
- modeling.updateProperties(element, {
- caseRef: value || ''
- });
- };
- return jsx(TextFieldEntry, {
- element: element,
- id: "calledElementCaseRef",
- label: translate('Case ref'),
- getValue: getValue,
- setValue: setValue,
- debounce: debounce
- });
- }
- function CaseBinding(props) {
- const {
- element
- } = props;
- const modeling = useService('modeling');
- const translate = useService('translate');
- const getValue = () => {
- return getBusinessObject(element).get('camunda:caseBinding') || 'latest';
- };
- const setValue = value => {
- modeling.updateProperties(element, {
- caseBinding: value === 'latest' ? undefined : value,
- caseVersion: undefined
- });
- };
- const getOptions = () => [{
- value: 'latest',
- label: translate('latest')
- }, {
- value: 'deployment',
- label: translate('deployment')
- }, {
- value: 'version',
- label: translate('version')
- }];
- return jsx(SelectEntry, {
- element: element,
- id: "calledElementCaseBinding",
- label: translate('Binding'),
- getValue: getValue,
- setValue: setValue,
- getOptions: getOptions
- });
- }
- function CaseVersion(props) {
- const {
- element
- } = props;
- const modeling = useService('modeling');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return getBusinessObject(element).get('camunda:caseVersion');
- };
- const setValue = value => {
- modeling.updateProperties(element, {
- caseVersion: value
- });
- };
- return jsx(TextFieldEntry, {
- element: element,
- id: "calledElementCaseVersion",
- label: translate('Version'),
- getValue: getValue,
- setValue: setValue,
- debounce: debounce
- });
- }
- function CaseTenantId(props) {
- const {
- element
- } = props;
- const modeling = useService('modeling');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return getBusinessObject(element).get('camunda:caseTenantId');
- };
- const setValue = value => {
- modeling.updateProperties(element, {
- caseTenantId: value
- });
- };
- return jsx(TextFieldEntry, {
- element: element,
- id: "calledElementCaseTenantId",
- label: translate('Tenant ID'),
- getValue: getValue,
- setValue: setValue,
- debounce: debounce
- });
- }
- function DelegateVariableMappingProps(props) {
- const {
- element
- } = props;
- const entries = [{
- id: 'calledElementDelegateVariableMappingType',
- component: DelegateVariableMappingType,
- isEdited: isSelectEntryEdited
- }];
- const type = getDelegateVariableMappingType(element);
- if (type === 'class') {
- entries.push({
- id: 'calledElementVariableMappingClass',
- component: VariableMappingClass,
- isEdited: isTextFieldEntryEdited
- });
- } else if (type === 'delegateExpression') {
- entries.push({
- id: 'calledElementVariableMappingDelegateExpression',
- component: VariableMappingDelegateExpression,
- isEdited: isTextFieldEntryEdited
- });
- }
- return entries;
- }
- const DEFAULT_PROPS$5 = {
- 'camunda:variableMappingClass': undefined,
- 'camunda:variableMappingDelegateExpression': undefined
- };
- function DelegateVariableMappingType(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const getValue = () => {
- return getDelegateVariableMappingType(element);
- };
- const setValue = value => {
- const properties = {
- ...DEFAULT_PROPS$5
- };
- if (value === 'class') {
- properties['camunda:variableMappingClass'] = '';
- } else if (value === 'delegateExpression') {
- properties['camunda:variableMappingDelegateExpression'] = '';
- }
- commandStack.execute('element.updateProperties', {
- element,
- properties
- });
- };
- const getOptions = () => [{
- value: 'none',
- label: translate('<none>')
- }, {
- value: 'class',
- label: translate('Class')
- }, {
- value: 'delegateExpression',
- label: translate('Delegate expression')
- }];
- return jsx(SelectEntry, {
- element: element,
- id: "calledElementDelegateVariableMappingType",
- label: translate('Delegate Variable Mapping'),
- getValue: getValue,
- setValue: setValue,
- getOptions: getOptions
- });
- }
- function VariableMappingDelegateExpression(props) {
- const {
- element
- } = props;
- const modeling = useService('modeling');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return getBusinessObject(element).get('camunda:variableMappingDelegateExpression');
- };
- const setValue = value => {
- modeling.updateProperties(element, {
- variableMappingDelegateExpression: value || '',
- variableMappingClass: undefined
- });
- };
- return jsx(TextFieldEntry, {
- element: element,
- id: "calledElementVariableMappingDelegateExpression",
- label: translate('Delegate Expression'),
- getValue: getValue,
- setValue: setValue,
- debounce: debounce
- });
- }
- function VariableMappingClass(props) {
- const {
- element
- } = props;
- const modeling = useService('modeling');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return getBusinessObject(element).get('camunda:variableMappingClass');
- };
- const setValue = value => {
- modeling.updateProperties(element, {
- variableMappingDelegateExpression: undefined,
- variableMappingClass: value || ''
- });
- };
- return jsx(TextFieldEntry, {
- element: element,
- id: "calledElementVariableMappingClass",
- label: translate('Delegate Class'),
- getValue: getValue,
- setValue: setValue,
- debounce: debounce
- });
- }
- // helper /////
- function getDelegateVariableMappingType(element) {
- const businessObject = getBusinessObject(element);
- if (businessObject.get('camunda:variableMappingClass') !== undefined) {
- return 'class';
- } else if (businessObject.get('camunda:variableMappingDelegateExpression') !== undefined) {
- return 'delegateExpression';
- }
- return 'none';
- }
- function CallActivityProps(props) {
- const {
- element
- } = props;
- if (!is(element, 'bpmn:CallActivity')) {
- return [];
- }
- const entries = [];
- entries.push({
- id: 'calledElementType',
- component: CalledElementType,
- isEdited: isSelectEntryEdited
- });
- const calledElementType = getCalledElementType(element);
- if (calledElementType === 'bpmn') {
- entries.push(...CalledBpmnProps({
- element
- }), ...BusinessKeyProps({
- element
- }), ...DelegateVariableMappingProps({
- element
- }));
- } else if (calledElementType === 'cmmn') {
- entries.push(...CalledCmmnProps({
- element
- }), ...BusinessKeyProps({
- element
- }));
- } else {
- entries.push(...BusinessKeyProps({
- element
- }));
- }
- return entries;
- }
- const DEFAULT_PROPS$4 = {
- calledElement: undefined,
- 'camunda:calledElementBinding': undefined,
- 'camunda:calledElementVersion': undefined,
- 'camunda:calledElementTenantId': undefined,
- 'camunda:variableMappingClass': undefined,
- 'camunda:variableMappingDelegateExpression': undefined,
- 'camunda:caseRef': undefined,
- 'camunda:caseBinding': undefined,
- 'camunda:caseVersion': undefined,
- 'camunda:caseTenantId': undefined
- };
- const DEFAULT_BUSINESS_KEY = '#{execution.processBusinessKey}';
- function CalledElementType(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const getValue = () => {
- return getCalledElementType(element);
- };
- const setValue = value => {
- const properties = {
- ...DEFAULT_PROPS$4
- };
- if (value === 'bpmn') {
- properties['calledElement'] = '';
- } else if (value === 'cmmn') {
- properties['camunda:caseRef'] = '';
- }
- commandStack.execute('element.updateProperties', {
- element,
- properties
- });
- };
- const getOptions = () => [{
- value: '',
- label: translate('<none>')
- }, {
- value: 'bpmn',
- label: translate('BPMN')
- }, {
- value: 'cmmn',
- label: translate('CMMN')
- }];
- return jsx(SelectEntry, {
- element: element,
- id: "calledElementType",
- label: translate('Type'),
- getValue: getValue,
- setValue: setValue,
- getOptions: getOptions
- });
- }
- function BusinessKeyProps(props) {
- const {
- element
- } = props;
- const entries = [{
- id: 'calledElementBusinessKey',
- component: BusinessKey,
- isEdited: isCheckboxEntryEdited
- }];
- if (hasBusinessKey(element)) {
- entries.push({
- id: 'calledElementBusinessKeyExpression',
- component: BusinessKeyExpression,
- isEdited: isTextFieldEntryEdited
- });
- }
- return entries;
- }
- function BusinessKey(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const modeling = useService('modeling');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- const getValue = () => {
- return hasBusinessKey(element);
- };
- const setValue = value => {
- if (value) {
- addBusinessKey();
- } else {
- removeBusinessKey();
- }
- };
- function addBusinessKey() {
- const businessObject = getBusinessObject(element);
- let extensionElements = businessObject.get('extensionElements');
- // (1) If there are no extension elements, create camunda:In and update element's properties
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {}, businessObject, bpmnFactory);
- const businessKeyItem = createBusinessKey(extensionElements);
- extensionElements.set('values', [businessKeyItem]);
- modeling.updateProperties(element, {
- extensionElements
- });
- } else {
- // (2) Otherwise, add camunda:In to the existing values
- const businessKeyItem = createBusinessKey(extensionElements);
- addExtensionElements(element, businessObject, businessKeyItem, bpmnFactory, commandStack);
- }
- }
- function createBusinessKey(parent) {
- return createElement('camunda:In', {
- businessKey: DEFAULT_BUSINESS_KEY
- }, parent, bpmnFactory);
- }
- function removeBusinessKey() {
- const businessObject = getBusinessObject(element);
- const camundaInList = getExtensionElementsList(businessObject, 'camunda:In');
- const businessKeyItems = camundaInList.filter(camundaIn => camundaIn.get('businessKey') !== undefined);
- removeExtensionElements(element, businessObject, businessKeyItems, commandStack);
- }
- return jsx(CheckboxEntry, {
- element: element,
- id: "calledElementBusinessKey",
- label: translate('Business key'),
- getValue: getValue,
- setValue: setValue
- });
- }
- function BusinessKeyExpression(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => getBusinessKey(element);
- const setValue = value => {
- const camundaIn = findCamundaInWithBusinessKey(element);
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: camundaIn,
- properties: {
- businessKey: value || ''
- }
- });
- };
- return jsx(TextFieldEntry, {
- element: element,
- id: "calledElementBusinessKeyExpression",
- label: translate('Business key expression'),
- getValue: getValue,
- setValue: setValue,
- debounce: debounce
- });
- }
- // helper //////
- function getCalledElementType(element) {
- const businessObject = getBusinessObject(element);
- if (businessObject.get('calledElement') !== undefined) {
- return 'bpmn';
- } else if (businessObject.get('camunda:caseRef') !== undefined) {
- return 'cmmn';
- }
- return '';
- }
- function hasBusinessKey(element) {
- return getBusinessKey(element) !== undefined;
- }
- function getBusinessKey(element) {
- const camundaIn = findCamundaInWithBusinessKey(element);
- if (camundaIn) {
- return camundaIn.get('businessKey');
- }
- }
- function findCamundaInWithBusinessKey(element) {
- const businessObject = getBusinessObject(element);
- const camundaInList = getExtensionElementsList(businessObject, 'camunda:In');
- for (const camundaIn of camundaInList) {
- const businessKey = camundaIn.get('businessKey');
- if (businessKey !== undefined) {
- return camundaIn;
- }
- }
- }
- function CandidateStarterProps(props) {
- const {
- element
- } = props;
- const businessObject = getBusinessObject(element);
- if (!is(element, 'bpmn:Process') && !(is(element, 'bpmn:Participant') && businessObject.get('processRef'))) {
- return [];
- }
- return [{
- id: 'candidateStarterGroups',
- component: CandidateStarterGroups,
- isEdited: isTextFieldEntryEdited
- }, {
- id: 'candidateStarterUsers',
- component: CandidateStarterUsers,
- isEdited: isTextFieldEntryEdited
- }];
- }
- function CandidateStarterGroups(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack'),
- translate = useService('translate'),
- debounce = useService('debounceInput');
- const process = getProcess$3(element);
- const getValue = () => {
- return process.get('camunda:candidateStarterGroups') || '';
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element: element,
- moddleElement: process,
- properties: {
- 'camunda:candidateStarterGroups': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'candidateStarterGroups',
- label: translate('Candidate starter groups'),
- description: translate('Specify more than one group as a comma separated list.'),
- getValue,
- setValue,
- debounce
- });
- }
- function CandidateStarterUsers(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack'),
- translate = useService('translate'),
- debounce = useService('debounceInput');
- const process = getProcess$3(element);
- const getValue = () => {
- return process.get('camunda:candidateStarterUsers') || '';
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element: element,
- moddleElement: process,
- properties: {
- 'camunda:candidateStarterUsers': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'candidateStarterUsers',
- label: translate('Candidate starter users'),
- description: translate('Specify more than one user as a comma separated list.'),
- getValue,
- setValue,
- debounce
- });
- }
- // helper //////////////////
- /**
- * getProcess - get the businessObject of the process referred to by a bpmn:Process
- * or by a bpmn:Participant
- *
- * @param {ModdleElement} element either a bpmn:Process or a bpmn:Participant
- * @return {BusinessObject}
- */
- function getProcess$3(element) {
- return is(element, 'bpmn:Process') ? getBusinessObject(element) : getBusinessObject(element).get('processRef');
- }
- function ConditionProps(props) {
- const {
- element
- } = props;
- if (!(is(element, 'bpmn:SequenceFlow') && isConditionalSource(element.source)) && !getConditionalEventDefinition(element)) {
- return [];
- }
- const entries = [];
- if (getConditionalEventDefinition(element)) {
- entries.push(...VariableEventProps({
- element
- }));
- }
- entries.push({
- id: 'conditionType',
- component: ConditionType,
- isEdited: isSelectEntryEdited
- });
- const conditionType = getConditionType(element);
- if (conditionType === 'script') {
- entries.push(...ConditionScriptProps({
- element
- }));
- } else if (conditionType === 'expression') {
- entries.push({
- id: 'conditionExpression',
- component: ConditionExpression,
- isEdited: isTextFieldEntryEdited
- });
- }
- return entries;
- }
- function ConditionType(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- const getValue = () => {
- return getConditionType(element);
- };
- const setValue = value => {
- // (1) Remove formalExpression if <none> is selected
- if (value === '') {
- updateCondition(element, commandStack, undefined);
- } else {
- // (2) Create and set formalExpression element containing the conditionExpression
- const attributes = {
- body: '',
- language: value === 'script' ? '' : undefined
- };
- const formalExpressionElement = createFormalExpression(element, attributes, bpmnFactory);
- updateCondition(element, commandStack, formalExpressionElement);
- }
- };
- const getOptions = () => [{
- value: '',
- label: translate('<none>')
- }, {
- value: 'script',
- label: translate('Script')
- }, {
- value: 'expression',
- label: translate('Expression')
- }];
- return jsx(SelectEntry, {
- element: element,
- id: "conditionType",
- label: translate('Type'),
- getValue: getValue,
- setValue: setValue,
- getOptions: getOptions
- });
- }
- function ConditionExpression(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack'),
- bpmnFactory = useService('bpmnFactory'),
- translate = useService('translate'),
- debounce = useService('debounceInput');
- const getValue = () => {
- return getConditionExpression(element).get('body');
- };
- const setValue = value => {
- const conditionExpression = createFormalExpression(element, {
- body: value
- }, bpmnFactory);
- updateCondition(element, commandStack, conditionExpression);
- };
- return jsx(TextFieldEntry, {
- element: element,
- id: "conditionExpression",
- label: translate('Condition Expression'),
- getValue: getValue,
- setValue: setValue,
- debounce: debounce
- });
- }
- function ConditionScriptProps(props) {
- const {
- element
- } = props;
- const entries = [];
- const scriptType = getScriptType$1(element);
- // (1) language
- entries.push({
- id: 'conditionScriptLanguage',
- component: Language,
- isEdited: isTextFieldEntryEdited
- });
- // (2) type
- entries.push({
- id: 'conditionScriptType',
- component: ScriptType,
- isEdited: isSelectEntryEdited
- });
- // (3) script
- if (scriptType === 'script') {
- entries.push({
- id: 'conditionScriptValue',
- component: Script$1,
- isEdited: isTextAreaEntryEdited
- });
- } else if (scriptType === 'resource') {
- // (4) resource
- entries.push({
- id: 'conditionScriptResource',
- component: Resource$1,
- isEdited: isTextFieldEntryEdited
- });
- }
- return entries;
- }
- function Language(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return getConditionExpression(element).get('language');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element: element,
- moddleElement: getConditionExpression(element),
- properties: {
- language: value || ''
- }
- });
- };
- return jsx(TextFieldEntry, {
- element: element,
- id: "conditionScriptLanguage",
- label: translate('Format'),
- getValue: getValue,
- setValue: setValue,
- debounce: debounce
- });
- }
- function ScriptType(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const getValue = () => {
- return getScriptType$1(element);
- };
- const setValue = value => {
- // reset script properties on type change
- const updatedProperties = {
- 'body': value === 'script' ? '' : undefined,
- 'camunda:resource': value === 'resource' ? '' : undefined
- };
- commandStack.execute('element.updateModdleProperties', {
- element: element,
- moddleElement: getConditionExpression(element),
- properties: updatedProperties
- });
- };
- const getOptions = () => {
- const options = [{
- value: 'resource',
- label: translate('External resource')
- }, {
- value: 'script',
- label: translate('Inline script')
- }];
- return options;
- };
- return SelectEntry({
- element,
- id: 'conditionScriptType',
- label: translate('Script type'),
- getValue,
- setValue,
- getOptions
- });
- }
- function Script$1(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return getConditionExpression(element).get('body');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element: element,
- moddleElement: getConditionExpression(element),
- properties: {
- 'body': value || ''
- }
- });
- };
- return jsx(TextAreaEntry, {
- element: element,
- id: "conditionScriptValue",
- label: translate('Script'),
- getValue: getValue,
- setValue: setValue,
- debounce: debounce,
- monospace: true
- });
- }
- function Resource$1(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return getConditionExpression(element).get('camunda:resource');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element: element,
- moddleElement: getConditionExpression(element),
- properties: {
- 'camunda:resource': value || ''
- }
- });
- };
- return jsx(TextFieldEntry, {
- element: true,
- id: "conditionScriptResource",
- label: translate('Resource'),
- getValue: getValue,
- setValue: setValue,
- debounce: debounce
- });
- }
- function VariableEventProps(props) {
- const {
- element
- } = props;
- const entries = [];
- entries.push({
- id: 'conditionVariableName',
- component: VariableName,
- isEdited: isTextFieldEntryEdited
- });
- if (!is(element, 'bpmn:StartEvent') || isInEventSubProcess(element)) {
- entries.push({
- id: 'conditionVariableEvents',
- component: VariableEvents,
- isEdited: isTextFieldEntryEdited
- });
- }
- return entries;
- }
- function VariableName(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return getConditionalEventDefinition(element).get('variableName');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element: element,
- moddleElement: getConditionalEventDefinition(element),
- properties: {
- variableName: value || ''
- }
- });
- };
- return jsx(TextFieldEntry, {
- element: element,
- id: "conditionVariableName",
- label: translate('Variable name'),
- getValue: getValue,
- setValue: setValue,
- debounce: debounce
- });
- }
- function VariableEvents(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return getConditionalEventDefinition(element).get('variableEvents');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element: element,
- moddleElement: getConditionalEventDefinition(element),
- properties: {
- variableEvents: value || ''
- }
- });
- };
- return jsx(TextFieldEntry, {
- element: element,
- id: "conditionVariableEvents",
- label: translate('Variable events'),
- description: translate('Specify more than one variable change event as a comma separated list.'),
- getValue: getValue,
- setValue: setValue,
- debounce: debounce
- });
- }
- // helper ////////////////////
- const CONDITIONAL_SOURCES = ['bpmn:Activity', 'bpmn:ExclusiveGateway', 'bpmn:InclusiveGateway', 'bpmn:ComplexGateway'];
- function isConditionalSource(element) {
- return isAny(element, CONDITIONAL_SOURCES);
- }
- function getConditionalEventDefinition(element) {
- if (!is(element, 'bpmn:Event')) {
- return false;
- }
- return getEventDefinition$1(element, 'bpmn:ConditionalEventDefinition');
- }
- function getConditionType(element) {
- const conditionExpression = getConditionExpression(element);
- if (!conditionExpression) {
- return '';
- } else {
- return conditionExpression.get('language') === undefined ? 'expression' : 'script';
- }
- }
- /**
- * getConditionExpression - get the body value of a condition expression for a given element
- *
- * @param {ModdleElement} element
- *
- * @return {string|undefined}
- */
- function getConditionExpression(element) {
- const businessObject = getBusinessObject(element);
- if (is(businessObject, 'bpmn:SequenceFlow')) {
- return businessObject.get('conditionExpression');
- } else if (getConditionalEventDefinition(businessObject)) {
- return getConditionalEventDefinition(businessObject).get('condition');
- }
- }
- function getScriptType$1(element) {
- const conditionExpression = getConditionExpression(element);
- const resource = conditionExpression.get('camunda:resource');
- if (typeof resource !== 'undefined') {
- return 'resource';
- } else {
- return 'script';
- }
- }
- function updateCondition(element, commandStack, condition = undefined) {
- if (is(element, 'bpmn:SequenceFlow')) {
- commandStack.execute('element.updateProperties', {
- element,
- properties: {
- conditionExpression: condition
- }
- });
- } else {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: getConditionalEventDefinition(element),
- properties: {
- condition
- }
- });
- }
- }
- function createFormalExpression(parent, attributes, bpmnFactory) {
- return createElement('bpmn:FormalExpression', attributes, is(parent, 'bpmn:SequenceFlow') ? getBusinessObject(parent) : getConditionalEventDefinition(parent), bpmnFactory);
- }
- function isInEventSubProcess(element) {
- const bo = getBusinessObject(element),
- parent = bo.$parent;
- return is(parent, 'bpmn:SubProcess') && parent.triggeredByEvent;
- }
- /**
- * Cf. https://docs.camunda.org/manual/latest/user-guide/process-engine/scripting/
- */
- function ScriptProps(props) {
- const {
- element,
- script,
- prefix
- } = props;
- const entries = [];
- const scriptType = getScriptType(script || element);
- const idPrefix = prefix || '';
- // (1) scriptFormat
- entries.push({
- id: idPrefix + 'scriptFormat',
- component: Format,
- isEdited: isTextFieldEntryEdited,
- idPrefix,
- script
- });
- // (2) type
- entries.push({
- id: idPrefix + 'scriptType',
- component: Type$3,
- isEdited: isSelectEntryEdited,
- idPrefix,
- script
- });
- // (3) script
- if (scriptType === 'script') {
- entries.push({
- id: idPrefix + 'scriptValue',
- component: Script,
- isEdited: isTextAreaEntryEdited,
- idPrefix,
- script
- });
- }
- // (4) resource
- if (scriptType === 'resource') {
- entries.push({
- id: idPrefix + 'scriptResource',
- component: Resource,
- isEdited: isTextFieldEntryEdited,
- idPrefix,
- script
- });
- }
- return entries;
- }
- function Format(props) {
- const {
- element,
- idPrefix,
- script
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const businessObject = script || getBusinessObject(element);
- const getValue = () => {
- return businessObject.get('scriptFormat');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- scriptFormat: value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: idPrefix + 'scriptFormat',
- label: translate('Format'),
- getValue,
- setValue,
- debounce
- });
- }
- function Type$3(props) {
- const {
- element,
- idPrefix,
- script
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const businessObject = script || getBusinessObject(element);
- const scriptProperty = getScriptProperty(businessObject);
- const getValue = () => {
- return getScriptType(businessObject);
- };
- const setValue = value => {
- // reset script properties on type change
- const properties = {
- [scriptProperty]: value === 'script' ? '' : undefined,
- 'camunda:resource': value === 'resource' ? '' : undefined
- };
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties
- });
- };
- const getOptions = () => {
- const options = [{
- value: '',
- label: translate('<none>')
- }, {
- value: 'resource',
- label: translate('External resource')
- }, {
- value: 'script',
- label: translate('Inline script')
- }];
- return options;
- };
- return SelectEntry({
- element,
- id: idPrefix + 'scriptType',
- label: translate('Type'),
- getValue,
- setValue,
- getOptions
- });
- }
- function Script(props) {
- const {
- element,
- idPrefix,
- script
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const businessObject = script || getBusinessObject(element);
- const scriptProperty = getScriptProperty(businessObject);
- const getValue = () => {
- return getScriptValue(businessObject);
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- [scriptProperty]: value || ''
- }
- });
- };
- return TextAreaEntry({
- element,
- id: idPrefix + 'scriptValue',
- label: translate('Script'),
- getValue,
- setValue,
- debounce,
- monospace: true
- });
- }
- function Resource(props) {
- const {
- element,
- idPrefix,
- script
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const businessObject = script || getBusinessObject(element);
- const getValue = () => {
- return businessObject.get('camunda:resource');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:resource': value || ''
- }
- });
- };
- return TextFieldEntry({
- element,
- id: idPrefix + 'scriptResource',
- label: translate('Resource'),
- getValue,
- setValue,
- debounce
- });
- }
- // helper ////////////////////
- function getScriptType(element) {
- const businessObject = getBusinessObject(element);
- const scriptValue = getScriptValue(businessObject);
- if (typeof scriptValue !== 'undefined') {
- return 'script';
- }
- const resource = businessObject.get('camunda:resource');
- if (typeof resource !== 'undefined') {
- return 'resource';
- }
- }
- function getScriptValue(businessObject) {
- return businessObject.get(getScriptProperty(businessObject));
- }
- function isScript$2(element) {
- return is(element, 'camunda:Script');
- }
- function getScriptProperty(businessObject) {
- return isScript$2(businessObject) ? 'value' : 'script';
- }
- function getElements(businessObject, type, property) {
- const elements = getExtensionElementsList(businessObject, type);
- return !property ? elements : (elements[0] || {})[property] || [];
- }
- function getParameters(element, prop) {
- const inputOutput = getInputOutput(element);
- return inputOutput && inputOutput.get(prop) || [];
- }
- /**
- * Get a camunda:inputOutput from the business object
- *
- * @param {djs.model.Base | ModdleElement} element
- *
- * @return {ModdleElement} the inputOutput object
- */
- function getInputOutput(element) {
- if (is(element, 'camunda:Connector')) {
- return element.get('inputOutput');
- }
- const businessObject = getBusinessObject(element);
- return (getElements(businessObject, 'camunda:InputOutput') || [])[0];
- }
- /**
- * Return all input parameters existing in the business object, and
- * an empty array if none exist.
- *
- * @param {djs.model.Base} element
- *
- * @return {Array} a list of input parameter objects
- */
- function getInputParameters(element) {
- return getParameters(element, 'inputParameters');
- }
- /**
- * Return all output parameters existing in the business object, and
- * an empty array if none exist.
- *
- * @param {djs.model.Base} element
- *
- * @return {Array} a list of output parameter objects
- */
- function getOutputParameters(element) {
- return getParameters(element, 'outputParameters');
- }
- function isInputOutputSupported(element) {
- const businessObject = getBusinessObject(element);
- return is(businessObject, 'bpmn:FlowNode') && !(isAny(businessObject, ['bpmn:StartEvent', 'bpmn:BoundaryEvent', 'bpmn:Gateway']) || is(businessObject, 'bpmn:SubProcess') && businessObject.get('triggeredByEvent'));
- }
- function areInputParametersSupported(element) {
- return isInputOutputSupported(element);
- }
- function areOutputParametersSupported(element) {
- const businessObject = getBusinessObject(element);
- return isInputOutputSupported(element) && !is(businessObject, 'bpmn:EndEvent') && !businessObject.loopCharacteristics;
- }
- function getInputOutputType(parameter) {
- const definitionTypes = {
- 'camunda:Map': 'map',
- 'camunda:List': 'list',
- 'camunda:Script': 'script'
- };
- let type = 'stringOrExpression';
- const definition = parameter.get('definition');
- if (typeof definition !== 'undefined') {
- type = definitionTypes[definition.$type];
- }
- return type;
- }
- function CreateParameterCmd(element, type, parent, bpmnFactory) {
- const isInput = type === 'camunda:InputParameter';
- const newParameter = createElement(type, {
- name: nextId(isInput ? 'Input_' : 'Output_')
- }, parent, bpmnFactory);
- const propertyName = isInput ? 'inputParameters' : 'outputParameters';
- return {
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: parent,
- properties: {
- [propertyName]: [...parent.get(propertyName), newParameter]
- }
- }
- };
- }
- function AddParameterCmd(element, type, bpmnFactory) {
- const commands = [];
- const businessObject = getBusinessObject(element);
- let extensionElements = businessObject.get('extensionElements');
- // (1) ensure extension elements
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) ensure inputOutput
- let inputOutput = getInputOutput(element);
- if (!inputOutput) {
- const parent = extensionElements;
- inputOutput = createElement('camunda:InputOutput', {
- inputParameters: [],
- outputParameters: []
- }, parent, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), inputOutput]
- }
- }
- });
- }
- // (3) create + add parameter
- commands.push(CreateParameterCmd(element, type, inputOutput, bpmnFactory));
- return commands;
- }
- function ListProp(props) {
- const {
- element,
- id: idPrefix,
- index,
- item
- } = props;
- const id = `${idPrefix}-listItem-${index}`;
- return jsx(ListItem, {
- idPrefix: id,
- element: element,
- item: item
- });
- }
- function ListProps(props) {
- const {
- idPrefix,
- element,
- parameter
- } = props;
- const bpmnFactory = useService('bpmnFactory');
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const list = parameter.get('definition');
- const items = list.get('items');
- function addItem() {
- const value = createElement('camunda:Value', {}, parameter, bpmnFactory);
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: list,
- properties: {
- items: [...list.get('items'), value]
- }
- });
- }
- function removeItem(item) {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: list,
- properties: {
- items: without(list.get('items'), item)
- }
- });
- }
- function compareFn(item, anotherItem) {
- const [value = '', anotherValue = ''] = [item.value, anotherItem.value];
- return value === anotherValue ? 0 : value > anotherValue ? 1 : -1;
- }
- return ListEntry({
- element,
- autoFocusEntry: true,
- compareFn,
- id: idPrefix + '-list',
- items,
- label: translate('List values'),
- onAdd: addItem,
- onRemove: removeItem,
- component: ListProp
- });
- }
- function ListItem(props) {
- const {
- idPrefix,
- element,
- item
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const definitionLabels = {
- 'camunda:Map': translate('Map'),
- 'camunda:List': translate('List'),
- 'camunda:Script': translate('Script')
- };
- const getValue = () => {
- if (isDefinitionType$1(item)) {
- return definitionLabels[item.$type];
- }
- return item.get('value');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: item,
- properties: {
- value
- }
- });
- };
- return ListValue({
- id: idPrefix + '-value',
- disabled: isDefinitionType$1(item),
- getValue,
- setValue
- });
- }
- function ListValue(props) {
- const {
- id,
- disabled,
- getValue,
- setValue
- } = props;
- const debounce = useService('debounceInput', true);
- return jsx(SimpleEntry, {
- id: id,
- getValue: getValue,
- setValue: setValue,
- disabled: disabled,
- debounce: debounce
- });
- }
- // helper //////////////////////
- function isScript$1(element) {
- return is(element, 'camunda:Script');
- }
- function isList$1(element) {
- return is(element, 'camunda:List');
- }
- function isMap$1(element) {
- return is(element, 'camunda:Map');
- }
- function isDefinitionType$1(element) {
- return isScript$1(element) || isList$1(element) || isMap$1(element);
- }
- function MapProp(props) {
- const {
- element,
- id: idPrefix,
- index,
- item: entry,
- open
- } = props;
- const id = `${idPrefix}-mapEntry-${index}`;
- const translate = useService('translate');
- return jsx(CollapsibleEntry, {
- id: id,
- element: element,
- entries: MapEntry({
- element,
- entry,
- idPrefix: id
- }),
- label: entry.get('key') || translate('<empty>'),
- open: open
- });
- }
- function MapProps(props) {
- const {
- idPrefix,
- element,
- parameter
- } = props;
- const bpmnFactory = useService('bpmnFactory');
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const map = parameter.get('definition');
- const entries = map.get('entries');
- function addEntry() {
- const entry = createElement('camunda:Entry', {}, parameter, bpmnFactory);
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: map,
- properties: {
- entries: [...map.get('entries'), entry]
- }
- });
- }
- function removeEntry(entry) {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: map,
- properties: {
- entries: without(map.get('entries'), entry)
- }
- });
- }
- function compareFn(entry, anotherEntry) {
- const [key = '', anotherKey = ''] = [entry.key, anotherEntry.key];
- return key === anotherKey ? 0 : key > anotherKey ? 1 : -1;
- }
- return ListEntry({
- element,
- autoFocusEntry: true,
- compareFn,
- id: idPrefix + '-map',
- items: entries,
- label: translate('Map entries'),
- onAdd: addEntry,
- onRemove: removeEntry,
- component: MapProp
- });
- }
- function MapEntry(props) {
- const {
- element,
- entry,
- idPrefix
- } = props;
- const entries = [{
- id: idPrefix + '-key',
- component: MapKey,
- entry,
- idPrefix,
- element
- }, {
- id: idPrefix + '-value',
- component: MapValue,
- entry,
- idPrefix,
- element
- }];
- return entries;
- }
- function MapKey(props) {
- const {
- element,
- entry,
- idPrefix
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: entry,
- properties: {
- key: value
- }
- });
- };
- const getValue = () => {
- return entry.get('key');
- };
- return TextFieldEntry({
- element: entry,
- id: idPrefix + '-key',
- label: translate('Key'),
- getValue,
- setValue,
- debounce
- });
- }
- function MapValue(props) {
- const {
- element,
- entry,
- idPrefix
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const definition = entry.get('definition');
- const definitionLabels = {
- 'camunda:Map': translate('Map'),
- 'camunda:List': translate('List'),
- 'camunda:Script': translate('Script')
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: entry,
- properties: {
- value
- }
- });
- };
- const getValue = () => {
- if (isDefinitionType(definition)) {
- return definitionLabels[definition.$type];
- }
- return entry.get('value');
- };
- return TextFieldEntry({
- element: entry,
- id: idPrefix + '-value',
- label: translate('Value'),
- getValue,
- setValue,
- disabled: isDefinitionType(definition),
- debounce
- });
- }
- // helper ///////////////////
- function isScript(element) {
- return is(element, 'camunda:Script');
- }
- function isList(element) {
- return is(element, 'camunda:List');
- }
- function isMap(element) {
- return is(element, 'camunda:Map');
- }
- function isDefinitionType(element) {
- return isScript(element) || isList(element) || isMap(element);
- }
- const DEFAULT_PROPS$3 = {
- value: undefined,
- definition: undefined
- };
- function InputOutputParameter(props) {
- const {
- idPrefix,
- element,
- parameter
- } = props;
- const inputOutputType = getInputOutputType(parameter);
- let entries = [{
- id: idPrefix + '-name',
- component: Name$2,
- isEdited: isTextFieldEntryEdited,
- idPrefix,
- parameter
- }, {
- id: idPrefix + '-type',
- component: Type$2,
- isEdited: isSelectEntryEdited,
- idPrefix,
- parameter
- }];
- // (1) String or expression
- if (inputOutputType === 'stringOrExpression') {
- entries.push({
- id: idPrefix + '-stringOrExpression',
- component: StringOrExpression,
- isEdited: isTextAreaEntryEdited,
- idPrefix,
- parameter
- });
- // (2) Script
- } else if (inputOutputType === 'script') {
- const script = parameter.get('definition');
- entries = [...entries, ...ScriptProps({
- element,
- prefix: idPrefix + '-',
- script
- })];
- // (3) List
- } else if (inputOutputType === 'list') {
- entries.push({
- id: `${idPrefix}-list`,
- component: ListProps,
- idPrefix,
- parameter
- });
- // (4) Map
- } else if (inputOutputType === 'map') {
- entries.push({
- id: `${idPrefix}-map`,
- component: MapProps,
- idPrefix,
- parameter
- });
- }
- return entries;
- }
- function Name$2(props) {
- const {
- idPrefix,
- element,
- parameter
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: parameter,
- properties: {
- name: value
- }
- });
- };
- const getValue = parameter => {
- return parameter.get('name');
- };
- return TextFieldEntry({
- element: parameter,
- id: idPrefix + '-name',
- label: translate(isInput(parameter) ? 'Local variable name' : 'Process variable name'),
- getValue,
- setValue,
- debounce
- });
- }
- function Type$2(props) {
- const {
- idPrefix,
- element,
- parameter
- } = props;
- const bpmnFactory = useService('bpmnFactory');
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const createDefinitionElement = type => {
- return createElement(type, {}, parameter, bpmnFactory);
- };
- const getValue = mapping => {
- return getInputOutputType(mapping);
- };
- const setValue = value => {
- let properties = {
- ...DEFAULT_PROPS$3
- };
- if (value === 'script') {
- properties.definition = createDefinitionElement('camunda:Script');
- } else if (value === 'list') {
- properties.definition = createDefinitionElement('camunda:List');
- } else if (value === 'map') {
- properties.definition = createDefinitionElement('camunda:Map');
- }
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: parameter,
- properties
- });
- };
- const getOptions = () => {
- const options = [{
- label: translate('List'),
- value: 'list'
- }, {
- label: translate('Map'),
- value: 'map'
- }, {
- label: translate('Script'),
- value: 'script'
- }, {
- label: translate('String or expression'),
- value: 'stringOrExpression'
- }];
- return options;
- };
- return SelectEntry({
- element: parameter,
- id: idPrefix + '-type',
- label: translate('Assignment type'),
- getValue,
- setValue,
- getOptions
- });
- }
- function StringOrExpression(props) {
- const {
- idPrefix,
- element,
- parameter
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: parameter,
- properties: {
- value
- }
- });
- };
- const getValue = parameter => {
- return parameter.get('value');
- };
- return TextAreaEntry({
- element: parameter,
- id: idPrefix + '-stringOrExpression',
- label: translate('Value'),
- description: translate('Start typing "${}" to create an expression.'),
- getValue,
- setValue,
- rows: 1,
- debounce
- });
- }
- // helper /////////////////////
- function isInput(parameter) {
- return is(parameter, 'camunda:InputParameter');
- }
- /**
- * Check whether an element is camunda:ServiceTaskLike
- *
- * @param {djs.model.Base} element
- *
- * @return {boolean} a boolean value
- */
- function isServiceTaskLike(element) {
- return is(element, 'camunda:ServiceTaskLike');
- }
- /**
- * Returns 'true' if the given element is 'camunda:DmnCapable'
- *
- * @param {djs.model.Base} element
- *
- * @return {boolean} a boolean value
- */
- function isDmnCapable(element) {
- return is(element, 'camunda:DmnCapable');
- }
- /**
- * Returns 'true' if the given element is 'camunda:ExternalCapable'
- *
- * @param {djs.model.Base} element
- *
- * @return {boolean} a boolean value
- */
- function isExternalCapable(element) {
- return is(element, 'camunda:ExternalCapable');
- }
- /**
- * getServiceTaskLikeBusinessObject - Get a 'camunda:ServiceTaskLike' business object.
- *
- * If the given element is not a 'camunda:ServiceTaskLike', then 'false'
- * is returned.
- *
- * @param {djs.model.Base} element
- * @return {ModdleElement} the 'camunda:ServiceTaskLike' business object
- */
- function getServiceTaskLikeBusinessObject(element) {
- if (is(element, 'bpmn:IntermediateThrowEvent') || is(element, 'bpmn:EndEvent')) {
- // change business object to 'messageEventDefinition' when
- // the element is a message intermediate throw event or message end event
- // because the camunda extensions (e.g. camunda:class) are in the message
- // event definition tag and not in the intermediate throw event or end event tag
- const messageEventDefinition = getMessageEventDefinition(element);
- if (messageEventDefinition) {
- element = messageEventDefinition;
- }
- }
- return isServiceTaskLike(element) && getBusinessObject(element);
- }
- /**
- * Returns the implementation type of the given element.
- *
- * Possible implementation types are:
- * - dmn
- * - connector
- * - external
- * - class
- * - expression
- * - delegateExpression
- * - script
- * - or undefined, when no matching implementation type is found
- *
- * @param {djs.model.Base} element
- *
- * @return {String} the implementation type
- */
- function getImplementationType(element) {
- const businessObject = getListenerBusinessObject(element) || getServiceTaskLikeBusinessObject(element);
- if (!businessObject) {
- return;
- }
- if (isDmnCapable(businessObject)) {
- const decisionRef = businessObject.get('camunda:decisionRef');
- if (typeof decisionRef !== 'undefined') {
- return 'dmn';
- }
- }
- if (isServiceTaskLike(businessObject)) {
- const connectors = getExtensionElementsList(businessObject, 'camunda:Connector');
- if (connectors.length) {
- return 'connector';
- }
- }
- if (isExternalCapable(businessObject)) {
- const type = businessObject.get('camunda:type');
- if (type === 'external') {
- return 'external';
- }
- }
- const cls = businessObject.get('camunda:class');
- if (typeof cls !== 'undefined') {
- return 'class';
- }
- const expression = businessObject.get('camunda:expression');
- if (typeof expression !== 'undefined') {
- return 'expression';
- }
- const delegateExpression = businessObject.get('camunda:delegateExpression');
- if (typeof delegateExpression !== 'undefined') {
- return 'delegateExpression';
- }
- const script = businessObject.get('script');
- if (typeof script !== 'undefined') {
- return 'script';
- }
- }
- function getListenerBusinessObject(businessObject) {
- if (isAny(businessObject, ['camunda:ExecutionListener', 'camunda:TaskListener'])) {
- return businessObject;
- }
- }
- function areConnectorsSupported(element) {
- const businessObject = getServiceTaskLikeBusinessObject(element);
- return businessObject && getImplementationType(businessObject) === 'connector';
- }
- function getConnectors$2(businessObject) {
- return getExtensionElementsList(businessObject, 'camunda:Connector');
- }
- function getConnector$1(element) {
- const businessObject = getServiceTaskLikeBusinessObject(element);
- const connectors = getConnectors$2(businessObject);
- return connectors[0];
- }
- function ConnectorInputProps(props) {
- const {
- element,
- injector
- } = props;
- if (!areConnectorsSupported(element)) {
- return null;
- }
- const connector = getConnector$1(element);
- const commandStack = injector.get('commandStack'),
- bpmnFactory = injector.get('bpmnFactory');
- const inputParameters = getInputParameters(connector) || [];
- const items = inputParameters.map((parameter, index) => {
- const id = element.id + '-connector-inputParameter-' + index;
- return {
- id,
- label: parameter.get('name') || '',
- entries: InputOutputParameter({
- element,
- idPrefix: id,
- parameter
- }),
- autoFocusEntry: id + '-name',
- remove: removeFactory$8({
- connector,
- element,
- parameter,
- commandStack
- })
- };
- });
- function add(event) {
- event.stopPropagation();
- const commands = [];
- // (1) ensure inputOutput
- let inputOutput = getInputOutput(connector);
- if (!inputOutput) {
- inputOutput = createElement('camunda:InputOutput', {
- inputParameters: [],
- outputParameters: []
- }, connector, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element: element,
- moddleElement: connector,
- properties: {
- inputOutput
- }
- }
- });
- }
- // (2) create + add parameter
- commands.push(CreateParameterCmd(element, 'camunda:InputParameter', inputOutput, bpmnFactory));
- // (3) commit all updates
- commandStack.execute('properties-panel.multi-command-executor', commands);
- }
- return {
- items,
- add
- };
- }
- function removeFactory$8(props) {
- const {
- commandStack,
- connector,
- element,
- parameter
- } = props;
- return function (event) {
- event.stopPropagation();
- const inputOutput = getInputOutput(connector);
- if (!inputOutput) {
- return;
- }
- commandStack.execute('element.updateModdleProperties', {
- element: element,
- moddleElement: inputOutput,
- properties: {
- inputParameters: without(inputOutput.get('inputParameters'), parameter)
- }
- });
- };
- }
- function ConnectorOutputProps(props) {
- const {
- element,
- injector
- } = props;
- if (!areConnectorsSupported(element)) {
- return null;
- }
- const connector = getConnector$1(element);
- const commandStack = injector.get('commandStack'),
- bpmnFactory = injector.get('bpmnFactory');
- const outputParameters = getOutputParameters(connector) || [];
- const items = outputParameters.map((parameter, index) => {
- const id = element.id + '-connector-outputParameter-' + index;
- return {
- id,
- label: parameter.get('name') || '',
- entries: InputOutputParameter({
- idPrefix: id,
- element,
- parameter
- }),
- autoFocusEntry: id + '-name',
- remove: removeFactory$7({
- connector,
- element,
- commandStack,
- parameter
- })
- };
- });
- function add(event) {
- event.stopPropagation();
- const commands = [];
- // (1) ensure inputOutput
- let inputOutput = getInputOutput(connector);
- if (!inputOutput) {
- inputOutput = createElement('camunda:InputOutput', {
- inputParameters: [],
- outputParameters: []
- }, connector, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element: element,
- moddleElement: connector,
- properties: {
- inputOutput
- }
- }
- });
- }
- // (2) create + add parameter
- commands.push(CreateParameterCmd(element, 'camunda:OutputParameter', inputOutput, bpmnFactory));
- // (3) commit all updates
- commandStack.execute('properties-panel.multi-command-executor', commands);
- }
- return {
- items,
- add
- };
- }
- function removeFactory$7(props) {
- const {
- commandStack,
- connector,
- element,
- parameter
- } = props;
- return function (event) {
- event.stopPropagation();
- const inputOutput = getInputOutput(connector);
- if (!inputOutput) {
- return;
- }
- commandStack.execute('element.updateModdleProperties', {
- element: element,
- moddleElement: inputOutput,
- properties: {
- outputParameters: without(inputOutput.get('outputParameters'), parameter)
- }
- });
- };
- }
- function ErrorProps(props) {
- const {
- element,
- entries
- } = props;
- if (!isErrorSupported(element)) {
- return entries;
- }
- const error = getError(element);
- // (1) errorMessage (error)
- if (error) {
- const idx = findPlaceToInsert(entries, 'errorCode');
- // place below errorCode
- entries.splice(idx, 0, {
- id: 'errorMessage',
- component: ErrorMessage$1,
- isEdited: isTextFieldEntryEdited
- });
- }
- if (!canHaveErrorVariables(element)) {
- return entries;
- }
- // (2) errorCodeVariable + errorMessageVariable (errorEventDefinition)
- entries.push({
- id: 'errorCodeVariable',
- component: ErrorCodeVariable,
- isEdited: isTextFieldEntryEdited
- }, {
- id: 'errorMessageVariable',
- component: ErrorMessageVariable,
- isEdited: isTextFieldEntryEdited
- });
- return entries;
- }
- function ErrorMessage$1(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const error = getError(element);
- const getValue = () => {
- return error.get('camunda:errorMessage');
- };
- const setValue = value => {
- return commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: error,
- properties: {
- 'camunda:errorMessage': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'errorMessage',
- label: translate('Message'),
- getValue,
- setValue,
- debounce
- });
- }
- function ErrorCodeVariable(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const errorEventDefinition = getErrorEventDefinition(element);
- const getValue = () => {
- return errorEventDefinition.get('camunda:errorCodeVariable');
- };
- const setValue = value => {
- return commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: errorEventDefinition,
- properties: {
- 'camunda:errorCodeVariable': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'errorCodeVariable',
- label: translate('Code variable'),
- description: translate('Define the name of the variable that will contain the error code.'),
- getValue,
- setValue,
- debounce
- });
- }
- function ErrorMessageVariable(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const errorEventDefinition = getErrorEventDefinition(element);
- const getValue = () => {
- return errorEventDefinition.get('camunda:errorMessageVariable');
- };
- const setValue = value => {
- return commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: errorEventDefinition,
- properties: {
- 'camunda:errorMessageVariable': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'errorMessageVariable',
- label: translate('Message variable'),
- description: translate('Define the name of the variable that will contain the error message.'),
- getValue,
- setValue,
- debounce
- });
- }
- // helper ///////////////////////
- function canHaveErrorVariables(element) {
- return is(element, 'bpmn:StartEvent') || is(element, 'bpmn:BoundaryEvent');
- }
- function findPlaceToInsert(entries, idx) {
- const entryIndex = findIndex(entries, entry => entry.id === idx);
- return entryIndex >= 0 ? entryIndex + 1 : entries.length;
- }
- const EMPTY_OPTION = '';
- const CREATE_NEW_OPTION = 'create-new';
- function Error$1(props) {
- const {
- idPrefix,
- errorEventDefinition
- } = props;
- let entries = [{
- id: idPrefix + '-errorRef',
- component: ErrorRef,
- isEdited: isSelectEntryEdited,
- errorEventDefinition,
- idPrefix
- }];
- const error = errorEventDefinition.get('errorRef');
- if (error) {
- entries = [...entries, {
- id: idPrefix + '-errorName',
- component: ErrorName,
- isEdited: isTextFieldEntryEdited,
- error,
- errorEventDefinition,
- idPrefix
- }, {
- id: idPrefix + '-errorCode',
- component: ErrorCode,
- isEdited: isTextFieldEntryEdited,
- error,
- errorEventDefinition,
- idPrefix
- }, {
- id: idPrefix + '-errorMessage',
- component: ErrorMessage,
- isEdited: isTextFieldEntryEdited,
- error,
- errorEventDefinition,
- idPrefix
- }];
- }
- entries.push({
- id: idPrefix + '-expression',
- component: Expression$1,
- errorEventDefinition,
- idPrefix
- });
- return entries;
- }
- function ErrorRef(props) {
- const {
- element,
- errorEventDefinition,
- idPrefix
- } = props;
- const bpmnFactory = useService('bpmnFactory');
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const businessObject = getBusinessObject(element);
- const getValue = () => {
- const error = errorEventDefinition.get('errorRef');
- if (error) {
- return error.get('id');
- }
- return EMPTY_OPTION;
- };
- const setValue = value => {
- const root = getRoot(businessObject);
- const commands = [];
- let error;
- // (1) create new error
- if (value === CREATE_NEW_OPTION) {
- error = createElement('bpmn:Error', {
- name: nextId('Error_')
- }, root, bpmnFactory);
- value = error.get('id');
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: root,
- properties: {
- rootElements: [...root.get('rootElements'), error]
- }
- }
- });
- }
- // (2) update (or remove) errorRef
- error = error || findRootElementById(businessObject, 'bpmn:Error', value);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: errorEventDefinition,
- properties: {
- errorRef: error
- }
- }
- });
- // (3) commit all updates
- return commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- const getOptions = () => {
- let options = [{
- value: EMPTY_OPTION,
- label: translate('<none>')
- }, {
- value: CREATE_NEW_OPTION,
- label: translate('Create new ...')
- }];
- const errors = findRootElementsByType(getBusinessObject(element), 'bpmn:Error');
- sortByName$1(errors).forEach(error => {
- options.push({
- value: error.get('id'),
- label: error.get('name') || error.get('id')
- });
- });
- return options;
- };
- return ReferenceSelectEntry({
- element,
- id: idPrefix + '-errorRef',
- label: translate('Global error reference'),
- autoFocusEntry: idPrefix + '-errorName',
- getValue,
- setValue,
- getOptions
- });
- }
- function ErrorName(props) {
- const {
- element,
- error,
- idPrefix
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return error.get('name');
- };
- const setValue = value => {
- return commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: error,
- properties: {
- name: value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: idPrefix + '-errorName',
- label: translate('Name'),
- getValue,
- setValue,
- debounce
- });
- }
- function ErrorCode(props) {
- const {
- element,
- error,
- idPrefix
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return error.get('errorCode');
- };
- const setValue = value => {
- return commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: error,
- properties: {
- errorCode: value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: idPrefix + '-errorCode',
- label: translate('Code'),
- getValue,
- setValue,
- debounce
- });
- }
- function ErrorMessage(props) {
- const {
- element,
- error,
- idPrefix
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return error.get('errorMessage');
- };
- const setValue = value => {
- return commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: error,
- properties: {
- errorMessage: value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: idPrefix + '-errorMessage',
- label: translate('Message'),
- getValue,
- setValue,
- debounce
- });
- }
- function Expression$1(props) {
- const {
- element,
- errorEventDefinition,
- idPrefix
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: errorEventDefinition,
- properties: {
- 'camunda:expression': value
- }
- });
- };
- const getValue = () => {
- return errorEventDefinition.get('camunda:expression');
- };
- return TextFieldEntry({
- element: errorEventDefinition,
- id: idPrefix + '-expression',
- label: translate('Throw expression'),
- getValue,
- setValue,
- debounce
- });
- }
- // helpers //////////
- function sortByName$1(elements) {
- return sortBy(elements, e => (e.name || '').toLowerCase());
- }
- function ErrorsProps({
- element,
- injector
- }) {
- const businessObject = getBusinessObject(element);
- if (!is(element, 'bpmn:ServiceTask') || getImplementationType(element) !== 'external') {
- return null;
- }
- const errorEventDefinitions = getExtensionElementsList(businessObject, 'camunda:ErrorEventDefinition');
- const bpmnFactory = injector.get('bpmnFactory'),
- commandStack = injector.get('commandStack');
- const items = errorEventDefinitions.map((errorEventDefinition, index) => {
- const id = element.id + '-error-' + index;
- return {
- id,
- label: getErrorLabel(errorEventDefinition),
- entries: Error$1({
- idPrefix: id,
- element,
- errorEventDefinition
- }),
- autoFocusEntry: id + '-errorRef',
- remove: removeFactory$6({
- commandStack,
- element,
- errorEventDefinition
- })
- };
- });
- return {
- items,
- add: addFactory$5({
- bpmnFactory,
- commandStack,
- element
- }),
- shouldSort: false
- };
- }
- function removeFactory$6({
- commandStack,
- element,
- errorEventDefinition
- }) {
- return function (event) {
- event.stopPropagation();
- const businessObject = getBusinessObject(element);
- removeExtensionElements(element, businessObject, errorEventDefinition, commandStack);
- };
- }
- function addFactory$5({
- bpmnFactory,
- commandStack,
- element
- }) {
- return function (event) {
- event.stopPropagation();
- const businessObject = getBusinessObject(element);
- const error = createElement('camunda:ErrorEventDefinition', {}, undefined, bpmnFactory);
- addExtensionElements(element, businessObject, error, bpmnFactory, commandStack);
- };
- }
- // helpers //////////
- function getErrorLabel(errorEventDefinition) {
- const error = errorEventDefinition.get('errorRef');
- if (!error) {
- return '<no reference>';
- }
- const errorCode = error.get('errorCode'),
- name = error.get('name') || '<unnamed>';
- if (errorCode) {
- return `${name} (code = ${errorCode})`;
- }
- return name;
- }
- /**
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
- */
- /**
- * @returns {Array<Entry>} entries
- */
- function EscalationProps(props) {
- const {
- element,
- entries
- } = props;
- if (!(isEscalationSupported(element) && canHaveEscalationVariables(element))) {
- return entries;
- }
- entries.push({
- id: 'escalationCodeVariable',
- component: EscalationCodeVariable,
- isEdited: isTextFieldEntryEdited
- });
- return entries;
- }
- function EscalationCodeVariable(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const escalationEventDefinition = getEscalationEventDefinition(element);
- const getValue = () => {
- return escalationEventDefinition.get('camunda:escalationCodeVariable');
- };
- const setValue = value => {
- return commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: escalationEventDefinition,
- properties: {
- 'camunda:escalationCodeVariable': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'escalationCodeVariable',
- label: translate('Code variable'),
- description: translate('Define the name of the variable that will contain the escalation code.'),
- getValue,
- setValue,
- debounce
- });
- }
- // helper ///////////////////////
- function canHaveEscalationVariables(element) {
- return is(element, 'bpmn:StartEvent') || is(element, 'bpmn:BoundaryEvent');
- }
- function ExternalTaskPriorityProps(props) {
- const {
- element
- } = props;
- const businessObject = getBusinessObject(element);
- if (!is(element, 'bpmn:Process') && !(is(element, 'bpmn:Participant') && businessObject.get('processRef')) && !isExternalTaskLike(element)) {
- return [];
- }
- return [{
- id: 'externalTaskPriority',
- component: ExternalTaskPriority,
- isEdited: isTextFieldEntryEdited
- }];
- }
- function ExternalTaskPriority(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack'),
- translate = useService('translate'),
- debounce = useService('debounceInput');
- let businessObject;
- if (is(element, 'bpmn:Participant')) {
- businessObject = getBusinessObject(element).get('processRef');
- } else if (isExternalTaskLike(element)) {
- businessObject = getServiceTaskLikeBusinessObject(element);
- } else {
- businessObject = getBusinessObject(element);
- }
- const getValue = () => {
- return businessObject.get('camunda:taskPriority');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:taskPriority': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'externalTaskPriority',
- label: translate('Priority'),
- getValue,
- setValue,
- debounce
- });
- }
- // helper //////////////////
- function isExternalTaskLike(element) {
- const bo = getServiceTaskLikeBusinessObject(element),
- type = bo && bo.get('camunda:type');
- return is(bo, 'camunda:ServiceTaskLike') && type && type === 'external';
- }
- const DEFAULT_PROPS$2 = {
- 'stringValue': undefined,
- 'string': undefined,
- 'expression': undefined
- };
- function FieldInjection(props) {
- const {
- element,
- idPrefix,
- field
- } = props;
- const entries = [{
- id: idPrefix + '-name',
- component: NameProperty,
- field,
- idPrefix,
- element
- }, {
- id: idPrefix + '-type',
- component: TypeProperty,
- field,
- idPrefix,
- element
- }, {
- id: idPrefix + '-value',
- component: ValueProperty,
- field,
- idPrefix,
- element
- }];
- return entries;
- }
- function NameProperty(props) {
- const {
- idPrefix,
- element,
- field
- } = props;
- const commandStack = useService('commandStack'),
- translate = useService('translate'),
- debounce = useService('debounceInput');
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: field,
- properties: {
- name: value
- }
- });
- };
- const getValue = field => {
- return field.name;
- };
- return TextFieldEntry({
- element: field,
- id: idPrefix + '-name',
- label: translate('Name'),
- getValue,
- setValue,
- debounce
- });
- }
- function TypeProperty(props) {
- const {
- idPrefix,
- element,
- field
- } = props;
- const commandStack = useService('commandStack'),
- translate = useService('translate');
- const getValue = field => {
- return determineType(field);
- };
- const setValue = value => {
- const properties = Object.assign({}, DEFAULT_PROPS$2);
- properties[value] = '';
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: field,
- properties
- });
- };
- const getOptions = element => {
- const options = [{
- value: 'string',
- label: translate('String')
- }, {
- value: 'expression',
- label: translate('Expression')
- }];
- return options;
- };
- return SelectEntry({
- element: field,
- id: idPrefix + '-type',
- label: translate('Type'),
- getValue,
- setValue,
- getOptions
- });
- }
- function ValueProperty(props) {
- const {
- idPrefix,
- element,
- field
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const setValue = value => {
- // (1) determine which type we have set
- const type = determineType(field);
- // (2) set property accordingly
- const properties = Object.assign({}, DEFAULT_PROPS$2);
- properties[type] = value || '';
- // (3) execute the update command
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: field,
- properties
- });
- };
- const getValue = field => {
- return field.string || field.stringValue || field.expression;
- };
- return TextFieldEntry({
- element: field,
- id: idPrefix + '-value',
- label: translate('Value'),
- getValue,
- setValue,
- debounce
- });
- }
- // helper ///////////////////
- /**
- * determineType - get the type of a fieldInjection based on the attributes
- * set on it
- *
- * @param {ModdleElement} field
- * @return {('string'|'expression')}
- */
- function determineType(field) {
- // string is the default type
- return 'string' in field && 'string' || 'expression' in field && 'expression' || 'stringValue' in field && 'string' || 'string';
- }
- function FieldInjectionProps({
- element,
- injector
- }) {
- const businessObject = getServiceTaskLikeBusinessObject(element);
- if (!businessObject) {
- return null;
- }
- const fieldInjections = getExtensionElementsList(businessObject, 'camunda:Field');
- const bpmnFactory = injector.get('bpmnFactory'),
- commandStack = injector.get('commandStack');
- const items = fieldInjections.map((field, index) => {
- const id = element.id + '-fieldInjection-' + index;
- return {
- id,
- label: getFieldLabel(field),
- entries: FieldInjection({
- idPrefix: id,
- element,
- field
- }),
- autoFocusEntry: id + '-name',
- remove: removeFactory$5({
- commandStack,
- element,
- field
- })
- };
- });
- return {
- items,
- add: addFactory$4({
- bpmnFactory,
- commandStack,
- element
- })
- };
- }
- function removeFactory$5({
- commandStack,
- element,
- field
- }) {
- return function (event) {
- event.stopPropagation();
- const businessObject = getServiceTaskLikeBusinessObject(element);
- removeExtensionElements(element, businessObject, field, commandStack);
- };
- }
- function addFactory$4({
- bpmnFactory,
- commandStack,
- element
- }) {
- return function (event) {
- event.stopPropagation();
- const businessObject = getServiceTaskLikeBusinessObject(element);
- const fieldInjection = createElement('camunda:Field', {
- name: undefined,
- string: '',
- // string is the default type
- stringValue: undefined
- }, null, bpmnFactory);
- addExtensionElements(element, businessObject, fieldInjection, bpmnFactory, commandStack);
- };
- }
- // helper ///////////////
- function getFieldLabel(field) {
- return field.name || '<empty>';
- }
- function FormFieldConstraint(props) {
- const {
- constraint,
- element,
- idPrefix
- } = props;
- const entries = [{
- id: idPrefix + '-name',
- component: Name$1,
- constraint,
- idPrefix,
- element
- }, {
- id: idPrefix + '-config',
- component: Config,
- constraint,
- idPrefix,
- element
- }];
- return entries;
- }
- function Name$1(props) {
- const {
- idPrefix,
- element,
- constraint
- } = props;
- const commandStack = useService('commandStack'),
- translate = useService('translate'),
- debounce = useService('debounceInput');
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: constraint,
- properties: {
- name: value
- }
- });
- };
- const getValue = () => {
- return constraint.name;
- };
- return TextFieldEntry({
- element: constraint,
- id: idPrefix + '-name',
- label: translate('Name'),
- getValue,
- setValue,
- debounce
- });
- }
- function Config(props) {
- const {
- idPrefix,
- element,
- constraint
- } = props;
- const commandStack = useService('commandStack'),
- translate = useService('translate'),
- debounce = useService('debounceInput');
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: constraint,
- properties: {
- config: value
- }
- });
- };
- const getValue = () => {
- return constraint.config;
- };
- return TextFieldEntry({
- element: constraint,
- id: idPrefix + '-config',
- label: translate('Config'),
- getValue,
- setValue,
- debounce
- });
- }
- function FormFieldProperty(props) {
- const {
- element,
- idPrefix,
- property
- } = props;
- const entries = [{
- id: idPrefix + '-id',
- component: Id$2,
- idPrefix,
- property,
- element
- }, {
- id: idPrefix + '-value',
- component: Value$1,
- idPrefix,
- property,
- element
- }];
- return entries;
- }
- function Id$2(props) {
- const {
- idPrefix,
- element,
- property
- } = props;
- const commandStack = useService('commandStack'),
- translate = useService('translate'),
- debounce = useService('debounceInput');
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: property,
- properties: {
- id: value
- }
- });
- };
- const getValue = () => {
- return property.id;
- };
- return TextFieldEntry({
- element: property,
- id: idPrefix + '-id',
- label: translate('ID'),
- getValue,
- setValue,
- debounce
- });
- }
- function Value$1(props) {
- const {
- idPrefix,
- element,
- property
- } = props;
- const commandStack = useService('commandStack'),
- translate = useService('translate'),
- debounce = useService('debounceInput');
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: property,
- properties: {
- value
- }
- });
- };
- const getValue = () => {
- return property.value;
- };
- return TextFieldEntry({
- element: property,
- id: idPrefix + '-value',
- label: translate('Value'),
- getValue,
- setValue,
- debounce
- });
- }
- function FormFieldValue(props) {
- const {
- element,
- idPrefix,
- value
- } = props;
- const entries = [{
- id: idPrefix + '-id',
- component: Id$1,
- idPrefix,
- value,
- element
- }, {
- id: idPrefix + '-name',
- component: Name,
- idPrefix,
- value,
- element
- }];
- return entries;
- }
- function Id$1(props) {
- const {
- idPrefix,
- element,
- value
- } = props;
- const commandStack = useService('commandStack'),
- translate = useService('translate'),
- debounce = useService('debounceInput');
- const setValue = val => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: value,
- properties: {
- id: val
- }
- });
- };
- const getValue = () => {
- return value.id;
- };
- return TextFieldEntry({
- element: value,
- id: idPrefix + '-id',
- label: translate('ID'),
- getValue,
- setValue,
- debounce
- });
- }
- function Name(props) {
- const {
- idPrefix,
- element,
- value
- } = props;
- const commandStack = useService('commandStack'),
- translate = useService('translate'),
- debounce = useService('debounceInput');
- const setValue = val => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: value,
- properties: {
- name: val
- }
- });
- };
- const getValue = () => {
- return value.name;
- };
- return TextFieldEntry({
- element: value,
- id: idPrefix + '-name',
- label: translate('Name'),
- getValue,
- setValue,
- debounce
- });
- }
- const CUSTOM_TYPE_VALUE = '',
- DEFINED_TYPE_VALUES = ['boolean', 'date', 'enum', 'long', 'string', undefined];
- function FormField(props) {
- const {
- idPrefix,
- formField
- } = props;
- const entries = [{
- id: idPrefix + '-formFieldID',
- component: Id,
- idPrefix,
- formField
- }, {
- id: idPrefix + '-formFieldLabel',
- component: Label,
- idPrefix,
- formField
- }, {
- id: idPrefix + '-formFieldType',
- component: Type$1,
- idPrefix,
- formField
- }];
- if (!DEFINED_TYPE_VALUES.includes(formField.get('type'))) {
- entries.push({
- id: idPrefix + '-formFieldCustomType',
- component: CustomType,
- idPrefix,
- formField
- });
- }
- entries.push({
- id: idPrefix + '-formFieldDefaultValue',
- component: DefaultValue,
- idPrefix,
- formField
- });
- if (formField.get('type') === 'enum') {
- entries.push({
- id: idPrefix + '-formFieldValues',
- component: ValueList,
- formField,
- idPrefix
- });
- }
- entries.push({
- id: idPrefix + '-formFieldConstraints',
- component: ConstraintList,
- formField,
- idPrefix
- }, {
- id: idPrefix + '-formFieldProperties',
- component: PropertiesList,
- formField,
- idPrefix
- });
- return entries;
- }
- function Id(props) {
- const {
- idPrefix,
- element,
- formField
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: formField,
- properties: {
- id: value
- }
- });
- };
- const getValue = () => {
- return formField.get('id');
- };
- return TextFieldEntry({
- element: formField,
- id: idPrefix + '-formFieldID',
- label: translate('ID'),
- description: translate('Refers to the process variable name'),
- getValue,
- setValue,
- debounce
- });
- }
- function Label(props) {
- const {
- idPrefix,
- element,
- formField
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: formField,
- properties: {
- label: value
- }
- });
- };
- const getValue = () => {
- return formField.get('label');
- };
- return TextFieldEntry({
- element: formField,
- id: idPrefix + '-formFieldLabel',
- label: translate('Label'),
- getValue,
- setValue,
- debounce
- });
- }
- function Type$1(props) {
- const {
- idPrefix,
- element,
- formField
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: formField,
- properties: {
- type: value
- }
- });
- };
- const getValue = () => {
- const type = formField.get('type');
- return DEFINED_TYPE_VALUES.includes(type) ? type : CUSTOM_TYPE_VALUE;
- };
- const getOptions = () => {
- const options = [{
- label: translate('boolean'),
- value: 'boolean'
- }, {
- label: translate('date'),
- value: 'date'
- }, {
- label: translate('enum'),
- value: 'enum'
- }, {
- label: translate('long'),
- value: 'long'
- }, {
- label: translate('string'),
- value: 'string'
- }, {
- label: translate('<custom type>'),
- value: CUSTOM_TYPE_VALUE
- }];
- // for the initial state only, we want to show an empty state
- if (formField.get('type') === undefined) {
- options.unshift({
- label: translate('<none>'),
- value: ''
- });
- }
- return options;
- };
- return SelectEntry({
- element: formField,
- id: idPrefix + '-formFieldType',
- label: translate('Type'),
- getValue,
- setValue,
- getOptions
- });
- }
- function CustomType(props) {
- const {
- idPrefix,
- element,
- formField
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const setValue = value => {
- const type = value || '';
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: formField,
- properties: {
- type
- }
- });
- };
- const getValue = () => {
- return formField.get('type');
- };
- return TextFieldEntry({
- element: formField,
- id: idPrefix + '-formFieldCustomType',
- label: translate('Custom type'),
- getValue,
- setValue,
- debounce
- });
- }
- function DefaultValue(props) {
- const {
- idPrefix,
- element,
- formField
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: formField,
- properties: {
- defaultValue: value
- }
- });
- };
- const getValue = () => {
- return formField.get('defaultValue');
- };
- return TextFieldEntry({
- element: formField,
- id: idPrefix + '-formFieldDefaultValue',
- label: translate('Default value'),
- getValue,
- setValue,
- debounce
- });
- }
- function Value(props) {
- const {
- element,
- id: idPrefix,
- index,
- item: value,
- open
- } = props;
- const translate = useService('translate');
- const id = `${idPrefix}-value-${index}`;
- return jsx(CollapsibleEntry, {
- id: id,
- element: element,
- entries: FormFieldValue({
- idPrefix: id,
- element,
- value
- }),
- label: value.get('id') || translate('<empty>'),
- open: open
- });
- }
- function ValueList(props) {
- const {
- element,
- formField,
- idPrefix
- } = props;
- const id = `${idPrefix}-formFieldValues`;
- const bpmnFactory = useService('bpmnFactory');
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const values = formField.get('values') || [];
- function addValue() {
- const value = createElement('camunda:Value', {
- id: undefined,
- name: undefined
- }, formField, bpmnFactory);
- commandStack.execute('element.updateModdleProperties', {
- element: element,
- moddleElement: formField,
- properties: {
- values: [...formField.get('values'), value]
- }
- });
- }
- function removeValue(value) {
- commandStack.execute('element.updateModdleProperties', {
- element: element,
- moddleElement: formField,
- properties: {
- values: without(formField.get('values'), value)
- }
- });
- }
- return jsx(ListEntry, {
- element: element,
- autoFocusEntry: `[data-entry-id="${id}-value-${values.length - 1}"] input`,
- id: id,
- label: translate('Values'),
- items: values,
- component: Value,
- onAdd: addValue,
- onRemove: removeValue
- });
- }
- function Constraint(props) {
- const {
- element,
- id: idPrefix,
- index,
- item: constraint,
- open
- } = props;
- const translate = useService('translate');
- const id = `${idPrefix}-constraint-${index}`;
- return jsx(CollapsibleEntry, {
- id: id,
- element: element,
- entries: FormFieldConstraint({
- constraint,
- element,
- idPrefix: id
- }),
- label: constraint.get('name') || translate('<empty>'),
- open: open
- });
- }
- function ConstraintList(props) {
- const {
- element,
- formField,
- idPrefix
- } = props;
- const id = `${idPrefix}-formFieldConstraints`;
- const bpmnFactory = useService('bpmnFactory');
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const businessObject = getBusinessObject(element);
- let validation = formField.get('validation');
- const constraints = validation && validation.get('constraints') || [];
- function addConstraint() {
- const commands = [];
- // (1) ensure validation
- if (!validation) {
- validation = createElement('camunda:Validation', {}, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: formField,
- properties: {
- validation
- }
- }
- });
- }
- // (2) add constraint
- const constraint = createElement('camunda:Constraint', {
- name: undefined,
- config: undefined
- }, validation, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: validation,
- properties: {
- constraints: [...validation.get('constraints'), constraint]
- }
- }
- });
- // (3) commit updates
- commandStack.execute('properties-panel.multi-command-executor', commands);
- }
- function removeConstraint(constraint) {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: validation,
- properties: {
- constraints: without(validation.get('constraints'), constraint)
- }
- });
- }
- return jsx(ListEntry, {
- element: element,
- autoFocusEntry: `[data-entry-id="${id}-constraint-${constraints.length - 1}"] input`,
- id: id,
- label: translate('Constraints'),
- items: constraints,
- component: Constraint,
- onAdd: addConstraint,
- onRemove: removeConstraint
- });
- }
- function Property(props) {
- const {
- element,
- id: idPrefix,
- index,
- item: property,
- open
- } = props;
- const translate = useService('translate');
- const id = `${idPrefix}-property-${index}`;
- return jsx(CollapsibleEntry, {
- id: id,
- element: element,
- entries: FormFieldProperty({
- element,
- idPrefix: id,
- property
- }),
- label: property.get('id') || translate('<empty>'),
- open: open
- });
- }
- function PropertiesList(props) {
- const {
- element,
- formField,
- idPrefix
- } = props;
- const id = `${idPrefix}-formFieldProperties`;
- const bpmnFactory = useService('bpmnFactory');
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const businessObject = getBusinessObject(element);
- let properties = formField.get('properties');
- const propertyEntries = properties && properties.get('values') || [];
- function addProperty() {
- const commands = [];
- // (1) ensure properties
- if (!properties) {
- properties = createElement('camunda:Properties', {}, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: formField,
- properties: {
- properties
- }
- }
- });
- }
- // (2) add property
- const property = createElement('camunda:Property', {
- id: undefined,
- value: undefined
- }, properties, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: properties,
- properties: {
- values: [...properties.get('values'), property]
- }
- }
- });
- // (3) commit updates
- commandStack.execute('properties-panel.multi-command-executor', commands);
- }
- function removeProperty(property) {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: properties,
- properties: {
- values: without(properties.get('values'), property)
- }
- });
- }
- return jsx(ListEntry, {
- element: element,
- autoFocusEntry: true,
- id: id,
- compareFn: createAlphanumericCompare('id'),
- label: translate('Properties'),
- items: propertyEntries,
- component: Property,
- onAdd: addProperty,
- onRemove: removeProperty
- });
- }
- // helper //////////////////
- function createAlphanumericCompare(field) {
- return function (entry, anotherEntry) {
- const [key = '', anotherKey = ''] = [entry[field], anotherEntry[field]];
- return key === anotherKey ? 0 : key > anotherKey ? 1 : -1;
- };
- }
- function FormDataProps({
- element,
- injector
- }) {
- if (!isFormDataSupported(element)) {
- return;
- }
- const formFields = getFormFieldsList(element) || [];
- const bpmnFactory = injector.get('bpmnFactory'),
- commandStack = injector.get('commandStack');
- const items = formFields.map((formField, index) => {
- const id = element.id + '-formField-' + index;
- return {
- id,
- label: formField.get('id') || '',
- entries: FormField({
- idPrefix: id,
- element,
- formField
- }),
- autoFocusEntry: id + '-formFieldID',
- remove: removeFactory$4({
- commandStack,
- element,
- formField
- })
- };
- });
- return {
- items,
- add: addFactory$3({
- bpmnFactory,
- commandStack,
- element
- }),
- shouldSort: false
- };
- }
- function addFactory$3({
- bpmnFactory,
- commandStack,
- element
- }) {
- return function (event) {
- event.stopPropagation();
- const commands = [];
- // (1) get camunda:FormData
- const formData = getFormData$1(element);
- // (2) create camunda:FormField
- const formField = createElement('camunda:FormField', {}, formData, bpmnFactory);
- // (3) add formField to list
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: formData,
- properties: {
- fields: [...formData.get('fields'), formField]
- }
- }
- });
- // (4) commit all updates
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- }
- function removeFactory$4({
- commandStack,
- element,
- formField
- }) {
- return function (event) {
- event.stopPropagation();
- const formData = getFormData$1(element),
- formFields = getFormFieldsList(element);
- if (!formFields || !formFields.length) {
- return;
- }
- const fields = without(formData.get('fields'), formField);
- // update formData
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: formData,
- properties: {
- fields
- }
- });
- };
- }
- // helper ///////////////////////////////
- function isFormDataSupported(element) {
- const formData = getFormData$1(element);
- return (is(element, 'bpmn:StartEvent') && !is(element.parent, 'bpmn:SubProcess') || is(element, 'bpmn:UserTask')) && formData;
- }
- function getFormData$1(element) {
- const bo = getBusinessObject(element);
- return getExtensionElementsList(bo, 'camunda:FormData')[0];
- }
- function getFormFieldsList(element) {
- const businessObject = getBusinessObject(element);
- const formData = getFormData$1(businessObject);
- return formData && formData.fields;
- }
- const FORM_KEY_PROPS = {
- 'camunda:formRef': undefined,
- 'camunda:formRefBinding': undefined,
- 'camunda:formRefVersion': undefined
- };
- const FORM_REF_PROPS = {
- 'camunda:formKey': undefined
- };
- function FormTypeProps(props) {
- return [{
- id: 'formType',
- component: FormType,
- isEdited: isSelectEntryEdited
- }];
- }
- function FormType(props) {
- const {
- element
- } = props;
- const translate = useService('translate');
- const bpmnFactory = useService('bpmnFactory');
- const businessObject = getBusinessObject(element);
- const commandStack = useService('commandStack');
- let extensionElements = businessObject.get('extensionElements');
- const getValue = () => {
- if (isDefined(businessObject.get('camunda:formKey'))) {
- return 'formKey';
- } else if (isDefined(businessObject.get('camunda:formRef'))) {
- return 'formRef';
- } else if (getFormData(element)) {
- return 'formData';
- }
- return '';
- };
- const setValue = value => {
- const commands = removePropertiesCommands(element);
- if (value === 'formData') {
- // (1) ensure extension elements
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) create camunda:FormData
- const parent = extensionElements;
- const formData = createElement('camunda:FormData', {
- fields: []
- }, parent, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), formData]
- }
- }
- });
- } else if (value === 'formKey') {
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:formKey': ''
- }
- }
- });
- } else if (value === 'formRef') {
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:formRef': ''
- }
- }
- });
- }
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- const getOptions = () => {
- return [{
- value: '',
- label: translate('<none>')
- }, {
- value: 'formRef',
- label: translate('Camunda Forms')
- }, {
- value: 'formKey',
- label: translate('Embedded or External Task Forms')
- }, {
- value: 'formData',
- label: translate('Generated Task Forms')
- }];
- };
- return SelectEntry({
- element,
- id: 'formType',
- label: translate('Type'),
- getValue,
- setValue,
- getOptions
- });
- }
- function getFormData(element) {
- const bo = getBusinessObject(element);
- return getExtensionElementsList(bo, 'camunda:FormData')[0];
- }
- function removePropertiesCommands(element, commandStack) {
- const businessObject = getBusinessObject(element);
- const extensionElements = businessObject.get('extensionElements');
- const commands = [];
- // (1) reset formKey and formRef
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- ...FORM_KEY_PROPS,
- ...FORM_REF_PROPS
- }
- }
- });
- // (2) remove formData if defined
- if (extensionElements && getFormData(element)) {
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: without(extensionElements.get('values'), getFormData(element))
- }
- }
- });
- }
- return commands;
- }
- function getFormRefBinding(element) {
- const businessObject = getBusinessObject(element);
- return businessObject.get('camunda:formRefBinding') || 'latest';
- }
- function getFormType(element) {
- const businessObject = getBusinessObject(element);
- if (isDefined(businessObject.get('camunda:formKey'))) {
- return 'formKey';
- } else if (isDefined(businessObject.get('camunda:formRef'))) {
- return 'formRef';
- }
- }
- function isFormSupported(element) {
- return is(element, 'bpmn:StartEvent') && !is(element.parent, 'bpmn:SubProcess') || is(element, 'bpmn:UserTask');
- }
- function FormProps(props) {
- const {
- element
- } = props;
- if (!isFormSupported(element)) {
- return [];
- }
- const formType = getFormType(element),
- bindingType = getFormRefBinding(element);
- // (1) display form type select
- const entries = [...FormTypeProps()];
- // (2) display form properties based on type
- if (formType === 'formKey') {
- entries.push({
- id: 'formKey',
- component: FormKey,
- isEdited: isTextFieldEntryEdited
- });
- } else if (formType === 'formRef') {
- entries.push({
- id: 'formRef',
- component: FormRef,
- isEdited: isTextFieldEntryEdited
- }, {
- id: 'formRefBinding',
- component: Binding$1,
- isEdited: isSelectEntryEdited
- });
- if (bindingType === 'version') {
- entries.push({
- id: 'formRefVersion',
- component: Version$1,
- isEdited: isTextFieldEntryEdited
- });
- }
- }
- return entries;
- }
- function FormKey(props) {
- const {
- element
- } = props;
- const debounce = useService('debounceInput');
- const modeling = useService('modeling');
- const translate = useService('translate');
- const businessObject = getBusinessObject(element);
- const getValue = () => {
- return businessObject.get('camunda:formKey');
- };
- const setValue = value => {
- modeling.updateProperties(element, {
- 'camunda:formKey': value
- });
- };
- return TextFieldEntry({
- element,
- id: 'formKey',
- label: translate('Form key'),
- getValue,
- setValue,
- debounce
- });
- }
- function FormRef(props) {
- const {
- element
- } = props;
- const debounce = useService('debounceInput');
- const modeling = useService('modeling');
- const translate = useService('translate');
- const businessObject = getBusinessObject(element);
- const getValue = () => {
- return businessObject.get('camunda:formRef');
- };
- const setValue = value => {
- modeling.updateProperties(element, {
- 'camunda:formRef': value
- });
- };
- return TextFieldEntry({
- element,
- id: 'formRef',
- label: translate('Form reference'),
- getValue,
- setValue,
- debounce
- });
- }
- function Binding$1(props) {
- const {
- element
- } = props;
- const modeling = useService('modeling');
- const translate = useService('translate');
- const getValue = () => {
- return getFormRefBinding(element);
- };
- const setValue = value => {
- modeling.updateProperties(element, {
- 'camunda:formRefBinding': value
- });
- };
- // Note: default is "latest",
- // cf. https://docs.camunda.org/manual/develop/reference/bpmn20/custom-extensions/extension-attributes/#formrefbinding
- const getOptions = () => {
- const options = [{
- value: 'deployment',
- label: translate('deployment')
- }, {
- value: 'latest',
- label: translate('latest')
- }, {
- value: 'version',
- label: translate('version')
- }];
- return options;
- };
- return SelectEntry({
- element,
- id: 'formRefBinding',
- label: translate('Binding'),
- getValue,
- setValue,
- getOptions
- });
- }
- function Version$1(props) {
- const {
- element
- } = props;
- const debounce = useService('debounceInput');
- const modeling = useService('modeling');
- const translate = useService('translate');
- const businessObject = getBusinessObject(element);
- const getValue = () => {
- return businessObject.get('camunda:formRefVersion');
- };
- const setValue = value => {
- modeling.updateProperties(element, {
- 'camunda:formRefVersion': value
- });
- };
- return TextFieldEntry({
- element,
- id: 'formRefVersion',
- label: translate('Version'),
- getValue,
- setValue,
- debounce
- });
- }
- function HistoryCleanupProps(props) {
- const {
- element
- } = props;
- const businessObject = getBusinessObject(element);
- if (!is(element, 'bpmn:Process') && !(is(element, 'bpmn:Participant') && businessObject.get('processRef'))) {
- return [];
- }
- return [{
- id: 'historyTimeToLive',
- component: HistoryTimeToLive,
- isEdited: isTextFieldEntryEdited
- }];
- }
- function HistoryTimeToLive(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const process = getProcess$2(element);
- const getValue = () => {
- return process.get('camunda:historyTimeToLive') || '';
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: process,
- properties: {
- 'camunda:historyTimeToLive': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'historyTimeToLive',
- label: translate('Time to live'),
- getValue,
- setValue,
- debounce
- });
- }
- // helper //////////////////
- function getProcess$2(element) {
- return is(element, 'bpmn:Process') ? getBusinessObject(element) : getBusinessObject(element).get('processRef');
- }
- function DmnImplementationProps(props) {
- const {
- element
- } = props;
- const entries = [];
- const implementationType = getImplementationType(element);
- const bindingType = getDecisionRefBinding(element);
- if (implementationType !== 'dmn') {
- return entries;
- }
- // (1) decisionRef
- entries.push({
- id: 'decisionRef',
- component: DecisionRef,
- isEdited: isTextFieldEntryEdited
- });
- // (2) binding
- entries.push({
- id: 'decisionRefBinding',
- component: Binding,
- isEdited: isSelectEntryEdited
- });
- // (3) version
- if (bindingType === 'version') {
- entries.push({
- id: 'decisionRefVersion',
- component: Version,
- isEdited: isTextFieldEntryEdited
- });
- }
- // (4) versionTag
- if (bindingType === 'versionTag') {
- entries.push({
- id: 'decisionRefVersionTag',
- component: VersionTag$1,
- isEdited: isTextFieldEntryEdited
- });
- }
- // (5) tenantId
- entries.push({
- id: 'decisionRefTenantId',
- component: TenantId,
- isEdited: isTextFieldEntryEdited
- });
- // (6) resultVariable
- entries.push({
- id: 'decisionRefResultVariable',
- component: ResultVariable$2,
- isEdited: isTextFieldEntryEdited
- });
- // (7) mapDecisionResult
- if (getResultVariable(element)) {
- entries.push({
- id: 'mapDecisionResult',
- component: MapDecisionResult,
- isEdited: isSelectEntryEdited
- });
- }
- return entries;
- }
- function DecisionRef(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const businessObject = getBusinessObject(element);
- const getValue = () => {
- return businessObject.get('camunda:decisionRef');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:decisionRef': value || ''
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'decisionRef',
- label: translate('Decision reference'),
- getValue,
- setValue,
- debounce
- });
- }
- function Binding(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const getValue = () => {
- return getDecisionRefBinding(element);
- };
- const setValue = value => {
- const businessObject = getBusinessObject(element);
- // reset version properties on binding type change
- const updatedProperties = {
- 'camunda:decisionRefVersion': undefined,
- 'camunda:decisionRefVersionTag': undefined,
- 'camunda:decisionRefBinding': value
- };
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: updatedProperties
- });
- };
- // Note: default is "latest",
- // cf. https://docs.camunda.org/manual/latest/reference/bpmn20/custom-extensions/extension-attributes/#decisionrefbinding
- const getOptions = () => {
- const options = [{
- value: 'deployment',
- label: translate('deployment')
- }, {
- value: 'latest',
- label: translate('latest')
- }, {
- value: 'version',
- label: translate('version')
- }, {
- value: 'versionTag',
- label: translate('versionTag')
- }];
- return options;
- };
- return SelectEntry({
- element,
- id: 'decisionRefBinding',
- label: translate('Binding'),
- getValue,
- setValue,
- getOptions
- });
- }
- function Version(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const businessObject = getBusinessObject(element);
- const getValue = () => {
- return businessObject.get('camunda:decisionRefVersion');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:decisionRefVersion': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'decisionRefVersion',
- label: translate('Version'),
- getValue,
- setValue,
- debounce
- });
- }
- function VersionTag$1(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const businessObject = getBusinessObject(element);
- const getValue = () => {
- return businessObject.get('camunda:decisionRefVersionTag');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:decisionRefVersionTag': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'decisionRefVersionTag',
- label: translate('Version tag'),
- getValue,
- setValue,
- debounce
- });
- }
- function TenantId(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const businessObject = getBusinessObject(element);
- const getValue = () => {
- return businessObject.get('camunda:decisionRefTenantId');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:decisionRefTenantId': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'decisionRefTenantId',
- label: translate('Tenant ID'),
- getValue,
- setValue,
- debounce
- });
- }
- function ResultVariable$2(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const businessObject = getBusinessObject(element);
- const getValue = () => {
- return getResultVariable(businessObject);
- };
- // Note: camunda:mapDecisionResult got cleaned up in modeling behavior
- // cf. https://github.com/camunda/camunda-bpmn-js/blob/main/lib/camunda-platform/features/modeling/behavior/UpdateResultVariableBehavior.js
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:resultVariable': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'decisionRefResultVariable',
- label: translate('Result variable'),
- getValue,
- setValue,
- debounce
- });
- }
- function MapDecisionResult(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const businessObject = getBusinessObject(element);
- const getValue = () => {
- return businessObject.get('camunda:mapDecisionResult') || 'resultList';
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:mapDecisionResult': value
- }
- });
- };
- // Note: default is "resultList",
- // cf. https://docs.camunda.org/manual/latest/reference/bpmn20/custom-extensions/extension-attributes/#mapdecisionresult
- const getOptions = () => {
- const options = [{
- value: 'collectEntries',
- label: translate('collectEntries (List<Object>)')
- }, {
- value: 'resultList',
- label: translate('resultList (List<Map<String, Object>>)')
- }, {
- value: 'singleEntry',
- label: translate('singleEntry (TypedValue)')
- }, {
- value: 'singleResult',
- label: translate('singleResult (Map<String, Object>)')
- }];
- return options;
- };
- return SelectEntry({
- element,
- id: 'mapDecisionResult',
- label: translate('Map decision result'),
- getValue,
- setValue,
- getOptions
- });
- }
- // helper ////////////////////
- function getDecisionRefBinding(element) {
- const businessObject = getBusinessObject(element);
- return businessObject.get('camunda:decisionRefBinding') || 'latest';
- }
- function getResultVariable(element) {
- const businessObject = getBusinessObject(element);
- return businessObject.get('camunda:resultVariable');
- }
- const DELEGATE_PROPS = {
- 'camunda:class': undefined,
- 'camunda:expression': undefined,
- 'camunda:delegateExpression': undefined,
- 'camunda:resultVariable': undefined
- };
- const DMN_CAPABLE_PROPS = {
- 'camunda:decisionRef': undefined,
- 'camunda:decisionRefBinding': 'latest',
- 'camunda:decisionRefVersion': undefined,
- 'camunda:mapDecisionResult': 'resultList',
- 'camunda:decisionRefTenantId': undefined
- };
- const EXTERNAL_CAPABLE_PROPS = {
- 'camunda:type': undefined,
- 'camunda:topic': undefined
- };
- const IMPLEMENTATION_TYPE_NONE_LABEL = '<none>',
- IMPLEMENTATION_TYPE_JAVA_LABEL = 'Java class',
- IMPLEMENTATION_TYPE_EXPRESSION_LABEL = 'Expression',
- IMPLEMENTATION_TYPE_DELEGATE_LABEL = 'Delegate expression',
- IMPLEMENTATION_TYPE_DMN_LABEL = 'DMN',
- IMPLEMENTATION_TYPE_EXTERNAL_LABEL = 'External',
- IMPLEMENTATION_TYPE_CONNECTOR_LABEL = 'Connector';
- function ImplementationTypeProps(props) {
- return [{
- id: 'implementationType',
- component: ImplementationType,
- isEdited: isSelectEntryEdited
- }];
- }
- function ImplementationType(props) {
- const {
- element
- } = props;
- const bpmnFactory = useService('bpmnFactory');
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const getValue = () => {
- return getImplementationType(element) || '';
- };
- const setValue = value => {
- const oldType = getImplementationType(element);
- const businessObject = getServiceTaskLikeBusinessObject(element);
- const commands = [];
- let updatedProperties = DELEGATE_PROPS;
- let extensionElements = businessObject.get('extensionElements');
- // (1) class, expression, delegateExpression
- if (isDelegateType(value)) {
- updatedProperties = {
- ...updatedProperties,
- [value]: isDelegateType(oldType) ? businessObject.get(`camunda:${oldType}`) : ''
- };
- }
- // (2) dmn
- if (isDmnCapable(businessObject)) {
- updatedProperties = {
- ...updatedProperties,
- ...DMN_CAPABLE_PROPS
- };
- if (value === 'dmn') {
- updatedProperties = {
- ...updatedProperties,
- 'camunda:decisionRef': ''
- };
- }
- }
- // (3) external
- // Note: error event definition elements got cleaned up in modeling behavior
- // cf. https://github.com/camunda/camunda-bpmn-js/blob/main/lib/camunda-platform/features/modeling/behavior/DeleteErrorEventDefinitionBehavior.js
- if (isExternalCapable(businessObject)) {
- updatedProperties = {
- ...updatedProperties,
- ...EXTERNAL_CAPABLE_PROPS
- };
- if (value === 'external') {
- updatedProperties = {
- ...updatedProperties,
- 'camunda:type': 'external',
- 'camunda:topic': ''
- };
- }
- }
- // (4) connector
- if (isServiceTaskLike(businessObject)) {
- // (4.1) remove all connectors on type change
- const connectors = getConnectors$1(businessObject);
- if (connectors.length) {
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: without(extensionElements.get('values'), value => connectors.includes(value))
- }
- }
- });
- }
- // (4.2) create connector
- if (value === 'connector') {
- // ensure extension elements
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push(UpdateModdlePropertiesCommand(element, businessObject, {
- extensionElements
- }));
- }
- const connector = createElement('camunda:Connector', {}, extensionElements, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), connector]
- }
- }
- });
- }
- }
- // (5) collect all property updates
- commands.push(UpdateModdlePropertiesCommand(element, businessObject, updatedProperties));
- // (6) commit all updates
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- const getOptions = () => {
- const businessObject = getServiceTaskLikeBusinessObject(element);
- const options = [{
- value: '',
- label: translate(IMPLEMENTATION_TYPE_NONE_LABEL)
- }, {
- value: 'class',
- label: translate(IMPLEMENTATION_TYPE_JAVA_LABEL)
- }, {
- value: 'expression',
- label: translate(IMPLEMENTATION_TYPE_EXPRESSION_LABEL)
- }, {
- value: 'delegateExpression',
- label: translate(IMPLEMENTATION_TYPE_DELEGATE_LABEL)
- }];
- if (isDmnCapable(businessObject)) {
- options.push({
- value: 'dmn',
- label: translate(IMPLEMENTATION_TYPE_DMN_LABEL)
- });
- }
- if (isExternalCapable(businessObject)) {
- options.push({
- value: 'external',
- label: translate(IMPLEMENTATION_TYPE_EXTERNAL_LABEL)
- });
- }
- if (isServiceTaskLike(businessObject)) {
- options.push({
- value: 'connector',
- label: translate(IMPLEMENTATION_TYPE_CONNECTOR_LABEL)
- });
- }
- return sortByPriority(options);
- };
- return SelectEntry({
- element,
- id: 'implementationType',
- label: translate('Type'),
- getValue,
- setValue,
- getOptions
- });
- }
- // helper ///////////////////////
- function isDelegateType(type) {
- return ['class', 'expression', 'delegateExpression'].includes(type);
- }
- function getConnectors$1(businessObject) {
- return getExtensionElementsList(businessObject, 'camunda:Connector');
- }
- function UpdateModdlePropertiesCommand(element, businessObject, newProperties) {
- return {
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: newProperties
- }
- };
- }
- function sortByPriority(options) {
- const priorities = {
- [IMPLEMENTATION_TYPE_NONE_LABEL]: 0,
- [IMPLEMENTATION_TYPE_JAVA_LABEL]: 3,
- [IMPLEMENTATION_TYPE_EXPRESSION_LABEL]: 4,
- [IMPLEMENTATION_TYPE_DELEGATE_LABEL]: 5,
- [IMPLEMENTATION_TYPE_DMN_LABEL]: 1,
- [IMPLEMENTATION_TYPE_EXTERNAL_LABEL]: 2,
- [IMPLEMENTATION_TYPE_CONNECTOR_LABEL]: 6
- };
- return sortBy(options, o => priorities[o.label]);
- }
- function ImplementationProps(props) {
- const {
- element
- } = props;
- if (!getServiceTaskLikeBusinessObject(element)) {
- return [];
- }
- const implementationType = getImplementationType(element);
- // (1) display implementation type select
- const entries = [...ImplementationTypeProps()];
- // (2) display implementation properties based on type
- if (implementationType === 'class') {
- entries.push({
- id: 'javaClass',
- component: JavaClass,
- isEdited: isTextFieldEntryEdited
- });
- } else if (implementationType === 'expression') {
- entries.push({
- id: 'expression',
- component: Expression,
- isEdited: isTextFieldEntryEdited
- }, {
- id: 'expressionResultVariable',
- component: ResultVariable$1,
- isEdited: isTextFieldEntryEdited
- });
- } else if (implementationType === 'delegateExpression') {
- entries.push({
- id: 'delegateExpression',
- component: DelegateExpression,
- isEdited: isTextFieldEntryEdited
- });
- } else if (implementationType === 'dmn') {
- entries.push(...DmnImplementationProps({
- element
- }));
- } else if (implementationType === 'external') {
- entries.push({
- id: 'externalTopic',
- component: Topic,
- isEdited: isTextFieldEntryEdited
- });
- } else if (implementationType === 'connector') {
- entries.push({
- id: 'connectorId',
- component: ConnectorId,
- isEdited: isTextFieldEntryEdited
- });
- }
- return entries;
- }
- function JavaClass(props) {
- const {
- element,
- businessObject = getServiceTaskLikeBusinessObject(element),
- id = 'javaClass'
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return businessObject.get('camunda:class');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:class': value || ''
- }
- });
- };
- return TextFieldEntry({
- element,
- id,
- label: translate('Java class'),
- getValue,
- setValue,
- debounce
- });
- }
- function Expression(props) {
- const {
- element,
- businessObject = getServiceTaskLikeBusinessObject(element),
- id = 'expression'
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return businessObject.get('camunda:expression');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:expression': value || ''
- }
- });
- };
- return TextFieldEntry({
- element,
- id,
- label: translate('Expression'),
- getValue,
- setValue,
- debounce
- });
- }
- function ResultVariable$1(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const businessObject = getServiceTaskLikeBusinessObject(element);
- const getValue = () => {
- return businessObject.get('camunda:resultVariable');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:resultVariable': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'expressionResultVariable',
- label: translate('Result variable'),
- getValue,
- setValue,
- debounce
- });
- }
- function DelegateExpression(props) {
- const {
- element,
- businessObject = getServiceTaskLikeBusinessObject(element),
- id = 'delegateExpression'
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const getValue = () => {
- return businessObject.get('camunda:delegateExpression');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:delegateExpression': value || ''
- }
- });
- };
- return TextFieldEntry({
- element,
- id,
- label: translate('Delegate expression'),
- getValue,
- setValue,
- debounce
- });
- }
- function Topic(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const businessObject = getServiceTaskLikeBusinessObject(element);
- const getValue = () => {
- return businessObject.get('camunda:topic');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:topic': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'externalTopic',
- label: translate('Topic'),
- getValue,
- setValue,
- debounce
- });
- }
- function ConnectorId(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const connector = getConnector(element);
- const getValue = () => {
- return connector.get('camunda:connectorId');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: connector,
- properties: {
- 'camunda:connectorId': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'connectorId',
- label: translate('Connector ID'),
- getValue,
- setValue,
- debounce
- });
- }
- // helper //////////////////
- function getConnectors(businessObject) {
- return getExtensionElementsList(businessObject, 'camunda:Connector');
- }
- function getConnector(element) {
- const businessObject = getServiceTaskLikeBusinessObject(element);
- const connectors = getConnectors(businessObject);
- return connectors[0];
- }
- function InitiatorProps(props) {
- const {
- element
- } = props;
- if (!isInitiator(element)) {
- return [];
- }
- return [{
- id: 'initiator',
- component: Initiator,
- isEdited: isTextFieldEntryEdited
- }];
- }
- function Initiator(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const businessObject = getBusinessObject(element);
- const getValue = () => {
- return businessObject.get('camunda:initiator');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:initiator': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'initiator',
- label: translate('Initiator'),
- getValue,
- setValue,
- debounce
- });
- }
- // helper ///////////////////
- function isInitiator(element) {
- return is(element, 'camunda:Initiator') && !is(element.parent, 'bpmn:SubProcess');
- }
- /**
- * Cf. https://docs.camunda.org/manual/7.15/reference/bpmn20/subprocesses/call-activity/#passing-variables
- */
- function InMappingPropagationProps(props) {
- const {
- element
- } = props;
- if (!areInMappingsSupported$1(element)) {
- return [];
- }
- const entries = [{
- id: 'inMapping-propagation',
- component: PropagateAll$1,
- isEdited: isCheckboxEntryEdited
- }];
- if (isPropagateAll$1(element)) {
- entries.push({
- id: 'inMapping-propagation-local',
- component: Local$2,
- isEdited: isCheckboxEntryEdited
- });
- }
- return entries;
- }
- function PropagateAll$1(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- const getValue = () => {
- return isPropagateAll$1(element);
- };
- const setValue = value => {
- if (value) {
- addInMapping();
- } else {
- removeInMapping();
- }
- };
- function addInMapping() {
- const businessObject = getSignalEventDefinition$1(element) || getBusinessObject(element);
- const mapping = createElement('camunda:In', {
- variables: 'all'
- }, null, bpmnFactory);
- addExtensionElements(element, businessObject, mapping, bpmnFactory, commandStack);
- }
- function removeInMapping() {
- const businessObject = getSignalEventDefinition$1(element) || getBusinessObject(element);
- const mappings = findRelevantInMappings(element);
- removeExtensionElements(element, businessObject, mappings, commandStack);
- }
- return CheckboxEntry({
- id: 'inMapping-propagation',
- label: translate('Propagate all variables'),
- getValue,
- setValue
- });
- }
- function Local$2(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const mapping = findRelevantInMappings(element)[0];
- const getValue = () => {
- return mapping.get('camunda:local');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: mapping,
- properties: {
- local: value
- }
- });
- };
- return CheckboxEntry({
- element,
- id: 'inMapping-propagation-local',
- label: translate('Local'),
- getValue,
- setValue
- });
- }
- // helper //////////////////////////
- function areInMappingsSupported$1(element) {
- const signalEventDefinition = getSignalEventDefinition$1(element);
- if (signalEventDefinition) {
- return isAny(element, ['bpmn:IntermediateThrowEvent', 'bpmn:EndEvent']);
- }
- return is(element, 'bpmn:CallActivity');
- }
- function getInMappings$1(element) {
- const businessObject = getBusinessObject(element);
- const signalEventDefinition = getSignalEventDefinition$1(businessObject);
- return getExtensionElementsList(signalEventDefinition || businessObject, 'camunda:In');
- }
- function findRelevantInMappings(element) {
- const inMappings = getInMappings$1(element);
- return filter(inMappings, function (mapping) {
- const variables = mapping.get('variables');
- return variables && variables === 'all';
- });
- }
- function isPropagateAll$1(element) {
- const mappings = findRelevantInMappings(element);
- return !!mappings.length;
- }
- const DEFAULT_PROPS$1 = {
- 'source': undefined,
- 'sourceExpression': undefined
- };
- function InOutMapping(props) {
- const {
- idPrefix,
- mapping
- } = props;
- const type = getInOutType(mapping);
- const entries = [];
- // (1) Type
- entries.push({
- id: idPrefix + '-type',
- component: Type,
- idPrefix,
- mapping
- });
- // (2) Source
- if (type === 'source') {
- entries.push({
- id: idPrefix + '-source',
- component: Source,
- idPrefix,
- mapping
- });
- }
- // (3) Source expression
- if (type === 'sourceExpression') {
- entries.push({
- id: idPrefix + '-sourceExpression',
- component: SourceExpression,
- idPrefix,
- mapping
- });
- }
- // (4) Target
- entries.push({
- id: idPrefix + '-target',
- component: Target,
- idPrefix,
- mapping
- });
- // (5) Local
- entries.push({
- id: idPrefix + '-local',
- component: Local$1,
- idPrefix,
- mapping
- });
- return entries;
- }
- function Type(props) {
- const {
- idPrefix,
- element,
- mapping
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const getValue = mapping => {
- return getInOutType(mapping);
- };
- const setValue = value => {
- const properties = {
- ...DEFAULT_PROPS$1,
- [value]: ''
- };
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: mapping,
- properties
- });
- };
- const getOptions = () => {
- const options = [{
- label: translate('Source'),
- value: 'source'
- }, {
- label: translate('Source expression'),
- value: 'sourceExpression'
- }];
- return options;
- };
- return SelectEntry({
- element: mapping,
- id: idPrefix + '-type',
- label: translate('Type'),
- getValue,
- setValue,
- getOptions
- });
- }
- function Source(props) {
- const {
- idPrefix,
- element,
- mapping
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: mapping,
- properties: {
- source: value
- }
- });
- };
- const getValue = mapping => {
- return mapping.get('camunda:source');
- };
- return TextFieldEntry({
- element: mapping,
- id: idPrefix + '-source',
- label: translate('Source'),
- getValue,
- setValue,
- debounce
- });
- }
- function SourceExpression(props) {
- const {
- idPrefix,
- element,
- mapping
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: mapping,
- properties: {
- sourceExpression: value
- }
- });
- };
- const getValue = mapping => {
- return mapping.get('camunda:sourceExpression');
- };
- return TextFieldEntry({
- element: mapping,
- id: idPrefix + '-sourceExpression',
- label: translate('Source expression'),
- getValue,
- setValue,
- debounce
- });
- }
- function Target(props) {
- const {
- idPrefix,
- element,
- mapping
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: mapping,
- properties: {
- target: value
- }
- });
- };
- const getValue = mapping => {
- return mapping.get('camunda:target');
- };
- return TextFieldEntry({
- element: mapping,
- id: idPrefix + '-target',
- label: translate('Target'),
- getValue,
- setValue,
- debounce
- });
- }
- function Local$1(props) {
- const {
- idPrefix,
- element,
- mapping
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const getValue = () => {
- return mapping.get('camunda:local');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: mapping,
- properties: {
- local: value
- }
- });
- };
- return CheckboxEntry({
- element,
- id: idPrefix + '-local',
- label: translate('Local'),
- getValue,
- setValue
- });
- }
- // helper ///////////////////
- function getInOutType(mapping) {
- let inOutType = '';
- if (typeof mapping.source !== 'undefined') {
- inOutType = 'source';
- } else if (typeof mapping.sourceExpression !== 'undefined') {
- inOutType = 'sourceExpression';
- }
- return inOutType;
- }
- /**
- * Cf. https://docs.camunda.org/manual/latest/reference/bpmn20/custom-extensions/extension-elements/#in
- */
- function InMappingProps({
- element,
- injector
- }) {
- if (!areInMappingsSupported(element)) {
- return null;
- }
- const variableMappings = getInMappings(element) || [];
- const bpmnFactory = injector.get('bpmnFactory'),
- commandStack = injector.get('commandStack');
- const items = variableMappings.map((mapping, index) => {
- const id = element.id + '-inMapping-' + index;
- return {
- id,
- label: mapping.get('target') || '',
- entries: InOutMapping({
- idPrefix: id,
- element,
- mapping
- }),
- autoFocusEntry: id + '-target',
- remove: removeFactory$3({
- commandStack,
- element,
- mapping
- })
- };
- });
- return {
- items,
- add: addFactory$2({
- bpmnFactory,
- commandStack,
- element
- })
- };
- }
- function removeFactory$3({
- commandStack,
- element,
- mapping
- }) {
- return function (event) {
- event.stopPropagation();
- const businessObject = getSignalEventDefinition$1(element) || getBusinessObject(element);
- removeExtensionElements(element, businessObject, mapping, commandStack);
- };
- }
- function addFactory$2({
- bpmnFactory,
- commandStack,
- element
- }) {
- return function (event) {
- event.stopPropagation();
- const businessObject = getSignalEventDefinition$1(element) || getBusinessObject(element);
- const newMapping = createElement('camunda:In', {
- source: '' // source is the default type
- }, null, bpmnFactory);
- addExtensionElements(element, businessObject, newMapping, bpmnFactory, commandStack);
- };
- }
- // helper ///////////////
- function getInMappings(element) {
- const businessObject = getBusinessObject(element);
- const signalEventDefinition = getSignalEventDefinition$1(businessObject);
- const mappings = getExtensionElementsList(signalEventDefinition || businessObject, 'camunda:In');
- // only retrieve relevant mappings here, others are handled in other groups
- // mapping.businessKey => camunda-platform/CallAvtivityProps
- // mapping.variables => camunda-platform/InMappingPropagationProps
- return filter(mappings, function (mapping) {
- return !mapping.businessKey && !(mapping.variables && mapping.variables === 'all');
- });
- }
- function areInMappingsSupported(element) {
- const signalEventDefinition = getSignalEventDefinition$1(element);
- if (signalEventDefinition) {
- return isAny(element, ['bpmn:IntermediateThrowEvent', 'bpmn:EndEvent']);
- }
- return is(element, 'bpmn:CallActivity');
- }
- function InputProps(props) {
- const {
- element,
- injector
- } = props;
- if (!areInputParametersSupported(element)) {
- return null;
- }
- const inputParameters = getInputParameters(element) || [];
- const bpmnFactory = injector.get('bpmnFactory'),
- commandStack = injector.get('commandStack');
- const items = inputParameters.map((parameter, index) => {
- const id = element.id + '-inputParameter-' + index;
- return {
- id,
- label: parameter.get('name') || '',
- entries: InputOutputParameter({
- idPrefix: id,
- element,
- parameter
- }),
- autoFocusEntry: id + '-name',
- remove: removeFactory$2({
- element,
- commandStack,
- parameter
- })
- };
- });
- function add(event) {
- event.stopPropagation();
- commandStack.execute('properties-panel.multi-command-executor', AddParameterCmd(element, 'camunda:InputParameter', bpmnFactory));
- }
- return {
- items,
- add,
- shouldSort: false
- };
- }
- function removeFactory$2(props) {
- const {
- commandStack,
- element,
- parameter
- } = props;
- return function (event) {
- event.stopPropagation();
- const inputOutput = getInputOutput(element);
- if (!inputOutput) {
- return;
- }
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: inputOutput,
- properties: {
- inputParameters: without(inputOutput.get('inputParameters'), parameter)
- }
- });
- };
- }
- function JobExecutionProps(props) {
- const {
- element
- } = props;
- const businessObject = getBusinessObject(element);
- const entries = [];
- // (1) add retryTimeCycle field for camunda:asyncCapable enabled Elements
- // or TimerEvents
- if (is(element, 'camunda:AsyncCapable') && isAsync$1(businessObject) || isTimerEvent(element)) {
- entries.push({
- id: 'retryTimeCycle',
- component: RetryTimeCycle,
- isEdited: isTextFieldEntryEdited
- });
- }
- // (2) add jobPriority field for camunda:jobPriorized with async enabled
- // or Processes
- // or Processes referred to by participants
- // or TimerEvents
- if (is(element, 'camunda:JobPriorized') && isAsync$1(businessObject) || is(element, 'bpmn:Process') || is(element, 'bpmn:Participant') && businessObject.get('processRef') || isTimerEvent(element)) {
- entries.push({
- id: 'jobPriority',
- component: JobPriority,
- isEdited: isTextFieldEntryEdited
- });
- }
- return entries;
- }
- function JobPriority(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack'),
- translate = useService('translate'),
- debounce = useService('debounceInput');
- const businessObject = is(element, 'bpmn:Participant') ? getBusinessObject(element).get('processRef') : getBusinessObject(element);
- const getValue = () => {
- return businessObject.get('camunda:jobPriority');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:jobPriority': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'jobPriority',
- label: translate('Priority'),
- getValue,
- setValue,
- debounce
- });
- }
- function RetryTimeCycle(props) {
- const {
- element
- } = props;
- const bpmnFactory = useService('bpmnFactory'),
- commandStack = useService('commandStack'),
- translate = useService('translate'),
- debounce = useService('debounceInput');
- const businessObject = getBusinessObject(element);
- const getValue = () => {
- const failedJobRetryTimeCycle = getExtensionElementsList(businessObject, 'camunda:FailedJobRetryTimeCycle')[0];
- return failedJobRetryTimeCycle && failedJobRetryTimeCycle.body;
- };
- const setValue = value => {
- const commands = [];
- let extensionElements = businessObject.get('extensionElements');
- // (1) ensure extension elements
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, businessObject, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: businessObject,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) ensure failedJobRetryTimeCycle
- let failedJobRetryTimeCycle = getExtensionElementsList(businessObject, 'camunda:FailedJobRetryTimeCycle')[0];
- if (!failedJobRetryTimeCycle) {
- failedJobRetryTimeCycle = createElement('camunda:FailedJobRetryTimeCycle', {}, extensionElements, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), failedJobRetryTimeCycle]
- }
- }
- });
- }
- // (3) update failedJobRetryTimeCycle value
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: failedJobRetryTimeCycle,
- properties: {
- body: value
- }
- }
- });
- // (4) commit all updates
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- return TextFieldEntry({
- element,
- id: 'retryTimeCycle',
- label: translate('Retry time cycle'),
- getValue,
- setValue,
- debounce
- });
- }
- // helper //////////////////
- /**
- * @param {ModdleElement} bo
- * @return {boolean} a boolean value
- */
- function isAsyncBefore$1(bo) {
- return !!(bo.get('camunda:asyncBefore') || bo.get('camunda:async'));
- }
- /**
- * @param {ModdleElement} bo
- * @return {boolean}
- */
- function isAsyncAfter$1(bo) {
- return !!bo.get('camunda:asyncAfter');
- }
- /**
- * isAsync - returns true if the attribute 'camunda:asyncAfter' or 'camunda:asyncBefore'
- * is set to true.
- *
- * @param {ModdleElement} bo
- * @return {boolean}
- */
- function isAsync$1(bo) {
- return isAsyncAfter$1(bo) || isAsyncBefore$1(bo);
- }
- /**
- * isTimerEvent - returns true if the element is a bpmn:Event with a timerEventDefinition
- *
- * @param {ModdleElement} element
- * @return {boolean}
- */
- function isTimerEvent(element) {
- return is(element, 'bpmn:Event') && getTimerEventDefinition$1(element);
- }
- /**
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
- */
- /**
- * @returns {Array<Entry>} entries
- */
- function MultiInstanceProps(props) {
- const {
- element
- } = props;
- const loopCharacteristics = getLoopCharacteristics(element);
- let entries = props.entries || [];
- if (!isMultiInstanceSupported(element)) {
- return entries;
- }
- entries.push({
- id: 'collection',
- component: Collection,
- isEdited: isTextFieldEntryEdited
- }, {
- id: 'elementVariable',
- component: ElementVariable,
- isEdited: isTextFieldEntryEdited
- }, {
- id: 'multiInstanceAsynchronousBefore',
- component: MultiInstanceAsynchronousBefore,
- isEdited: isCheckboxEntryEdited
- }, {
- id: 'multiInstanceAsynchronousAfter',
- component: MultiInstanceAsynchronousAfter,
- isEdited: isCheckboxEntryEdited
- });
- if (isAsync(loopCharacteristics)) {
- entries.push({
- id: 'multiInstanceExclusive',
- component: MultiInstanceExclusive,
- isEdited: checkboxIsEditedInverted
- }, {
- id: 'multiInstanceRetryTimeCycle',
- component: MultiInstanceRetryTimeCycle,
- isEdited: isTextFieldEntryEdited
- });
- }
- return entries;
- }
- function Collection(props) {
- const {
- element
- } = props;
- const debounce = useService('debounceInput');
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const loopCharacteristics = getLoopCharacteristics(element);
- const getValue = () => {
- return getCollection(element);
- };
- const setValue = value => {
- return commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: loopCharacteristics,
- properties: {
- 'camunda:collection': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'collection',
- label: translate('Collection'),
- getValue,
- setValue,
- debounce
- });
- }
- function ElementVariable(props) {
- const {
- element
- } = props;
- const debounce = useService('debounceInput');
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const loopCharacteristics = getLoopCharacteristics(element);
- const getValue = () => {
- return getElementVariable(element);
- };
- const setValue = value => {
- return commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: loopCharacteristics,
- properties: {
- 'camunda:elementVariable': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'elementVariable',
- label: translate('Element variable'),
- getValue,
- setValue,
- debounce
- });
- }
- function MultiInstanceAsynchronousBefore(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const loopCharacteristics = getLoopCharacteristics(element);
- const getValue = () => {
- return isAsyncBefore(loopCharacteristics);
- };
- const setValue = value => {
- // overwrite the legacy `async` property, we will use the more explicit `asyncBefore`
- const properties = {
- 'camunda:asyncBefore': value,
- 'camunda:async': undefined
- };
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: loopCharacteristics,
- properties
- });
- };
- return CheckboxEntry({
- element,
- id: 'multiInstanceAsynchronousBefore',
- label: translate('Asynchronous before'),
- getValue,
- setValue
- });
- }
- function MultiInstanceAsynchronousAfter(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const loopCharacteristics = getLoopCharacteristics(element);
- const getValue = () => {
- return isAsyncAfter(loopCharacteristics);
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: loopCharacteristics,
- properties: {
- 'camunda:asyncAfter': value
- }
- });
- };
- return CheckboxEntry({
- element,
- id: 'multiInstanceAsynchronousAfter',
- label: translate('Asynchronous after'),
- getValue,
- setValue
- });
- }
- function MultiInstanceExclusive(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack'),
- translate = useService('translate');
- const loopCharacteristics = getLoopCharacteristics(element);
- const getValue = () => {
- return isExclusive(loopCharacteristics);
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: loopCharacteristics,
- properties: {
- 'camunda:exclusive': value
- }
- });
- };
- return CheckboxEntry({
- element,
- id: 'multiInstanceExclusive',
- label: translate('Exclusive'),
- getValue,
- setValue
- });
- }
- function MultiInstanceRetryTimeCycle(props) {
- const {
- element
- } = props;
- const bpmnFactory = useService('bpmnFactory'),
- commandStack = useService('commandStack'),
- translate = useService('translate'),
- debounce = useService('debounceInput');
- const loopCharacteristics = getLoopCharacteristics(element);
- const getValue = () => {
- const failedJobRetryTimeCycle = getExtensionElementsList(loopCharacteristics, 'camunda:FailedJobRetryTimeCycle')[0];
- return failedJobRetryTimeCycle && failedJobRetryTimeCycle.body;
- };
- const setValue = value => {
- const commands = [];
- let extensionElements = loopCharacteristics.get('extensionElements');
- // (1) ensure extension elements
- if (!extensionElements) {
- extensionElements = createElement('bpmn:ExtensionElements', {
- values: []
- }, loopCharacteristics, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: loopCharacteristics,
- properties: {
- extensionElements
- }
- }
- });
- }
- // (2) ensure failedJobRetryTimeCycle
- let failedJobRetryTimeCycle = getExtensionElementsList(loopCharacteristics, 'camunda:FailedJobRetryTimeCycle')[0];
- if (!failedJobRetryTimeCycle) {
- failedJobRetryTimeCycle = createElement('camunda:FailedJobRetryTimeCycle', {}, extensionElements, bpmnFactory);
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element: loopCharacteristics,
- moddleElement: extensionElements,
- properties: {
- values: [...extensionElements.get('values'), failedJobRetryTimeCycle]
- }
- }
- });
- }
- // (3) update failedJobRetryTimeCycle value
- commands.push({
- cmd: 'element.updateModdleProperties',
- context: {
- element,
- moddleElement: failedJobRetryTimeCycle,
- properties: {
- body: value
- }
- }
- });
- // (4) commit all updates
- commandStack.execute('properties-panel.multi-command-executor', commands);
- };
- return TextFieldEntry({
- element,
- id: 'multiInstanceRetryTimeCycle',
- label: translate('Retry time cycle'),
- getValue,
- setValue,
- debounce
- });
- }
- // helper ////////////////////////////
- // generic ///////////////////////////
- /**
- * isMultiInstanceSupported - check whether given element supports camunda specific props
- * for multiInstance (ref. <camunda:Cllectable>).
- *
- * @param {djs.model.Base} element
- * @return {boolean}
- */
- function isMultiInstanceSupported(element) {
- const loopCharacteristics = getLoopCharacteristics(element);
- return !!loopCharacteristics && is(loopCharacteristics, 'camunda:Collectable');
- }
- /**
- * getProperty - get a property value of the loop characteristics.
- *
- * @param {djs.model.Base} element
- * @param {string} propertyName
- *
- * @return {any} the property value
- */
- function getProperty(element, propertyName) {
- var loopCharacteristics = getLoopCharacteristics(element);
- return loopCharacteristics && loopCharacteristics.get(propertyName);
- }
- /**
- * getLoopCharacteristics - get loopCharacteristics of a given element.
- *
- * @param {djs.model.Base} element
- * @return {ModdleElement<bpmn:MultiInstanceLoopCharacteristics> | undefined}
- */
- function getLoopCharacteristics(element) {
- const bo = getBusinessObject(element);
- return bo.loopCharacteristics;
- }
- // collection
- /**
- * getCollection - get the 'camunda:collection' attribute value of the loop characteristics.
- *
- * @param {djs.model.Base} element
- *
- * @return {string} the 'camunda:collection' value
- */
- function getCollection(element) {
- return getProperty(element, 'camunda:collection');
- }
- // elementVariable
- /**
- * getElementVariable - get the 'camunda:elementVariable' attribute value of the loop characteristics.
- *
- * @param {djs.model.Base} element
- *
- * @return {string} the 'camunda:elementVariable' value
- */
- function getElementVariable(element) {
- return getProperty(element, 'camunda:elementVariable');
- }
- // asyncBefore asyncAfter
- /**
- * Returns true if the attribute 'camunda:asyncBefore' is set
- * to true.
- *
- * @param {ModdleElement} bo
- *
- * @return {boolean} a boolean value
- */
- function isAsyncBefore(bo) {
- return !!(bo.get('camunda:asyncBefore') || bo.get('camunda:async'));
- }
- /**
- * Returns true if the attribute 'camunda:asyncAfter' is set
- * to true.
- *
- * @param {ModdleElement} bo
- *
- * @return {boolean} a boolean value
- */
- function isAsyncAfter(bo) {
- return !!bo.get('camunda:asyncAfter');
- }
- /**
- * Returns true if the attribute 'camunda:exclusive' is set
- * to true.
- *
- * @param {ModdleElement} bo
- *
- * @return {boolean} a boolean value
- */
- function isExclusive(bo) {
- return !!bo.get('camunda:exclusive');
- }
- /**
- * isAsync - returns true if the attribute 'camunda:asyncAfter' or 'camunda:asyncBefore'
- * is set to true.
- *
- * @param {ModdleElement} bo
- * @return {boolean}
- */
- function isAsync(bo) {
- return isAsyncAfter(bo) || isAsyncBefore(bo);
- }
- // Checkbox
- function checkboxIsEditedInverted(node) {
- return node && !node.checked;
- }
- /**
- * Cf. https://docs.camunda.org/manual/7.15/reference/bpmn20/subprocesses/call-activity/#passing-variables
- */
- function OutMappingPropagationProps(props) {
- const {
- element
- } = props;
- if (!areOutMappingsSupported$1(element)) {
- return [];
- }
- const entries = [{
- id: 'outMapping-propagation',
- component: PropagateAll,
- isEdited: isCheckboxEntryEdited
- }];
- if (isPropagateAll(element)) {
- entries.push({
- id: 'outMapping-propagation-local',
- component: Local,
- isEdited: isCheckboxEntryEdited
- });
- }
- return entries;
- }
- function PropagateAll(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const bpmnFactory = useService('bpmnFactory');
- const translate = useService('translate');
- const getValue = () => {
- return isPropagateAll(element);
- };
- const setValue = value => {
- if (value) {
- addOutMapping();
- } else {
- removeOutMapping();
- }
- };
- function addOutMapping() {
- const businessObject = getBusinessObject(element);
- const mapping = createElement('camunda:Out', {
- variables: 'all'
- }, null, bpmnFactory);
- addExtensionElements(element, businessObject, mapping, bpmnFactory, commandStack);
- }
- function removeOutMapping() {
- const businessObject = getBusinessObject(element);
- const mappings = findRelevantOutMappings(element);
- removeExtensionElements(element, businessObject, mappings, commandStack);
- }
- return CheckboxEntry({
- id: 'outMapping-propagation',
- label: translate('Propagate all variables'),
- getValue,
- setValue
- });
- }
- function Local(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const mapping = findRelevantOutMappings(element)[0];
- const getValue = () => {
- return mapping.get('camunda:local');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: mapping,
- properties: {
- local: value
- }
- });
- };
- return CheckboxEntry({
- element,
- id: 'outMapping-propagation-local',
- label: translate('Local'),
- getValue,
- setValue
- });
- }
- // helper //////////////////////////
- function areOutMappingsSupported$1(element) {
- return is(element, 'bpmn:CallActivity');
- }
- function getOutMappings$1(element) {
- const businessObject = getBusinessObject(element);
- return getExtensionElementsList(businessObject, 'camunda:Out');
- }
- function findRelevantOutMappings(element) {
- const inMappings = getOutMappings$1(element);
- return filter(inMappings, function (mapping) {
- const variables = mapping.get('variables');
- return variables && variables === 'all';
- });
- }
- function isPropagateAll(element) {
- const mappings = findRelevantOutMappings(element);
- return !!mappings.length;
- }
- /**
- * Cf. https://docs.camunda.org/manual/latest/reference/bpmn20/custom-extensions/extension-elements/#out
- */
- function OutMappingProps({
- element,
- injector
- }) {
- if (!areOutMappingsSupported(element)) {
- return null;
- }
- const variableMappings = getOutMappings(element) || [];
- const bpmnFactory = injector.get('bpmnFactory'),
- commandStack = injector.get('commandStack');
- const items = variableMappings.map((mapping, index) => {
- const id = element.id + '-outMapping-' + index;
- return {
- id,
- label: mapping.get('target') || '',
- entries: InOutMapping({
- idPrefix: id,
- element,
- mapping
- }),
- autoFocusEntry: id + '-target',
- remove: removeFactory$1({
- commandStack,
- element,
- mapping
- })
- };
- });
- return {
- items,
- add: addFactory$1({
- bpmnFactory,
- commandStack,
- element
- })
- };
- }
- function removeFactory$1({
- commandStack,
- element,
- mapping
- }) {
- return function (event) {
- event.stopPropagation();
- const businessObject = getBusinessObject(element);
- removeExtensionElements(element, businessObject, mapping, commandStack);
- };
- }
- function addFactory$1({
- bpmnFactory,
- commandStack,
- element
- }) {
- return function (event) {
- event.stopPropagation();
- const businessObject = getBusinessObject(element);
- const newMapping = createElement('camunda:Out', {
- source: '' // source is the default type
- }, null, bpmnFactory);
- addExtensionElements(element, businessObject, newMapping, bpmnFactory, commandStack);
- };
- }
- // helper ///////////////
- function getOutMappings(element) {
- const businessObject = getBusinessObject(element);
- const mappings = getExtensionElementsList(businessObject, 'camunda:Out');
- // only retrieve relevant mappings here, others are handled in other groups
- // mapping.businessKey => camunda-platform/CallAvtivityProps
- // mapping.variables => camunda-platform/OutMappingPropagationProps
- return filter(mappings, function (mapping) {
- return !mapping.businessKey && !(mapping.variables && mapping.variables === 'all');
- });
- }
- function areOutMappingsSupported(element) {
- return is(element, 'bpmn:CallActivity');
- }
- function OutputProps({
- element,
- injector
- }) {
- if (!areOutputParametersSupported(element)) {
- return null;
- }
- const outputParameters = getOutputParameters(element) || [];
- const bpmnFactory = injector.get('bpmnFactory'),
- commandStack = injector.get('commandStack');
- const items = outputParameters.map((parameter, index) => {
- const id = element.id + '-outputParameter-' + index;
- return {
- id,
- label: parameter.get('name') || '',
- entries: InputOutputParameter({
- idPrefix: id,
- element,
- parameter
- }),
- autoFocusEntry: id + '-name',
- remove: removeFactory({
- commandStack,
- element,
- parameter
- })
- };
- });
- return {
- items,
- add: addFactory({
- bpmnFactory,
- commandStack,
- element
- }),
- shouldSort: false
- };
- }
- function removeFactory({
- commandStack,
- element,
- parameter
- }) {
- return function (event) {
- event.stopPropagation();
- const inputOutput = getInputOutput(element);
- if (!inputOutput) {
- return;
- }
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: inputOutput,
- properties: {
- outputParameters: without(inputOutput.get('outputParameters'), parameter)
- }
- });
- };
- }
- function addFactory({
- bpmnFactory,
- commandStack,
- element
- }) {
- return function (event) {
- event.stopPropagation();
- commandStack.execute('properties-panel.multi-command-executor', AddParameterCmd(element, 'camunda:OutputParameter', bpmnFactory));
- };
- }
- function TimerProps(props) {
- const {
- element,
- listener,
- idPrefix
- } = props;
- let {
- timerEventDefinition
- } = props;
- if (!timerEventDefinition) {
- const businessObject = getBusinessObject(element);
- timerEventDefinition = getTimerEventDefinition(businessObject);
- }
- const timerEventDefinitionType = getTimerDefinitionType(timerEventDefinition);
- // (1) Only show for supported elements
- if (!isTimerSupported(element) && !isTimerSupportedOnListener(listener)) {
- return [];
- }
- // (2) Provide entries, have a value only if selection was made
- const entries = [];
- entries.push({
- id: getId(idPrefix, 'timerEventDefinitionType'),
- component: TimerEventDefinitionType,
- isEdited: isSelectEntryEdited,
- timerEventDefinition,
- timerEventDefinitionType
- });
- if (timerEventDefinitionType) {
- entries.push({
- id: getId(idPrefix, 'timerEventDefinitionValue'),
- component: TimerEventDefinitionValue,
- isEdited: isTextFieldEntryEdited,
- timerEventDefinition,
- timerEventDefinitionType
- });
- }
- return entries;
- }
- /**
- * TimerEventDefinitionType - Generic select entry allowing to select a specific
- * timerEventDefintionType. To be used together with timerEventDefinitionValue.
- *
- * @param {type} props
- * @return {SelectEntry}
- */
- function TimerEventDefinitionType(props) {
- const {
- element,
- timerEventDefinition,
- timerEventDefinitionType
- } = props;
- const commandStack = useService('commandStack'),
- bpmnFactory = useService('bpmnFactory'),
- translate = useService('translate');
- const getValue = () => {
- return timerEventDefinitionType || '';
- };
- const setValue = value => {
- // (1) Check if value is different to current type
- if (value === timerEventDefinitionType) {
- return;
- }
- // (2) Create empty formalExpression element
- const formalExpression = bpmnFactory.create('bpmn:FormalExpression', {
- body: undefined
- });
- formalExpression.$parent = timerEventDefinition;
- // (3) Set the value for selected timerEventDefinitionType
- const newProps = {
- timeDuration: undefined,
- timeDate: undefined,
- timeCycle: undefined
- };
- if (value !== '') {
- newProps[value] = formalExpression;
- }
- // (4) Execute businessObject update
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: timerEventDefinition,
- properties: newProps
- });
- };
- const getOptions = element => {
- return [{
- value: '',
- label: translate('<none>')
- }, {
- value: 'timeDate',
- label: translate('Date')
- }, {
- value: 'timeDuration',
- label: translate('Duration')
- }, {
- value: 'timeCycle',
- label: translate('Cycle')
- }];
- };
- return SelectEntry({
- element,
- id: 'timerEventDefinitionType',
- label: translate('Type'),
- getValue,
- setValue,
- getOptions
- });
- }
- /**
- * TimerEventDefinitionValue - Generic textField entry allowing to specify the
- * timerEventDefintionValue based on the set timerEventDefintionType. To be used
- * together with timerEventDefinitionType.
- *
- * @param {type} props
- * @return {TextFieldEntry}
- */
- function TimerEventDefinitionValue(props) {
- const {
- element,
- timerEventDefinition,
- timerEventDefinitionType
- } = props;
- const commandStack = useService('commandStack'),
- translate = useService('translate'),
- debounce = useService('debounceInput');
- const timerEventFormalExpression = timerEventDefinition.get(timerEventDefinitionType);
- const getValue = () => {
- return timerEventFormalExpression && timerEventFormalExpression.get('body');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: timerEventFormalExpression,
- properties: {
- body: value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'timerEventDefinitionValue',
- label: translate('Value'),
- getValue,
- setValue,
- debounce,
- tooltip: getTimerEventDefinitionValueDescription(timerEventDefinitionType, translate)
- });
- }
- // helper //////////////////////////
- function getTimerEventDefinitionValueDescription(timerDefinitionType, translate) {
- switch (timerDefinitionType) {
- case 'timeDate':
- return jsxs("div", {
- children: [jsx("p", {
- children: translate('A specific point in time defined as ISO 8601 combined date and time representation.')
- }), jsxs("ul", {
- children: [jsxs("li", {
- children: [jsx("code", {
- children: "2019-10-01T12:00:00Z"
- }), " - ", translate('UTC time')]
- }), jsxs("li", {
- children: [jsx("code", {
- children: "2019-10-02T08:09:40+02:00"
- }), " - ", translate('UTC plus 2 hours zone offset')]
- })]
- }), jsx("a", {
- href: "https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-date",
- target: "_blank",
- rel: "noopener",
- children: translate('Documentation: Timer events')
- })]
- });
- case 'timeCycle':
- return jsxs("div", {
- children: [jsx("p", {
- children: translate('A cycle defined as ISO 8601 repeating intervals format, or a cron expression.')
- }), jsxs("ul", {
- children: [jsxs("li", {
- children: [jsx("code", {
- children: "R5/PT10S"
- }), " - ", translate('every 10 seconds, up to 5 times')]
- }), jsxs("li", {
- children: [jsx("code", {
- children: "R/P1D"
- }), " - ", translate('every day, infinitely')]
- }), jsxs("li", {
- children: [jsx("code", {
- children: "0 0 9-17 * * MON-FRI"
- }), " - ", translate('every hour on the hour from 9-5 p.m. UTC Monday-Friday')]
- })]
- }), jsx("a", {
- href: "https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-cycle",
- target: "_blank",
- rel: "noopener",
- children: translate('Documentation: Timer events')
- })]
- });
- case 'timeDuration':
- return jsxs("div", {
- children: [jsx("p", {
- children: translate('A time duration defined as ISO 8601 durations format.')
- }), jsxs("ul", {
- children: [jsxs("li", {
- children: [jsx("code", {
- children: "PT15S"
- }), " - ", translate('15 seconds')]
- }), jsxs("li", {
- children: [jsx("code", {
- children: "PT1H30M"
- }), " - ", translate('1 hour and 30 minutes')]
- }), jsxs("li", {
- children: [jsx("code", {
- children: "P14D"
- }), " - ", translate('14 days')]
- })]
- }), jsx("a", {
- href: "https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-duration",
- target: "_blank",
- rel: "noopener",
- children: translate('Documentation: Timer events')
- })]
- });
- }
- }
- function isTimerSupportedOnListener(listener) {
- return listener && is(listener, 'camunda:TaskListener') && getTimerEventDefinition(listener);
- }
- function getId(idPrefix, id) {
- return idPrefix ? idPrefix + id : id;
- }
- const LISTENER_ALLOWED_TYPES = ['bpmn:Activity', 'bpmn:Event', 'bpmn:Gateway', 'bpmn:SequenceFlow', 'bpmn:Process', 'bpmn:Participant'];
- const SCRIPT_PROPS = {
- 'script': undefined,
- 'resource': undefined,
- 'scriptFormat': undefined
- };
- const CLASS_PROPS = {
- 'class': undefined
- };
- const EXPRESSION_PROPS = {
- 'expression': undefined
- };
- const DELEGATE_EXPRESSION_PROPS = {
- 'delegateExpression': undefined
- };
- const DEFAULT_PROPS = {
- ...SCRIPT_PROPS,
- ...CLASS_PROPS,
- ...EXPRESSION_PROPS,
- ...DELEGATE_EXPRESSION_PROPS
- };
- const DEFAULT_EVENT_PROPS = {
- 'eventDefinitions': undefined,
- 'event': undefined
- };
- const IMPLEMENTATION_TYPE_TO_LABEL = {
- class: 'Java class',
- expression: 'Expression',
- delegateExpression: 'Delegate expression',
- script: 'Script'
- };
- const EVENT_TO_LABEL = {
- start: 'Start',
- end: 'End',
- take: 'Take',
- create: 'Create',
- assignment: 'Assignment',
- complete: 'Complete',
- delete: 'Delete',
- update: 'Update',
- timeout: 'Timeout'
- };
- /**
- * Cf. https://docs.camunda.org/manual/latest/user-guide/process-engine/delegation-code/#execution-listener
- */
- function ExecutionListenerProps({
- element,
- injector
- }) {
- if (!isAny(element, LISTENER_ALLOWED_TYPES)) {
- return;
- }
- const bpmnFactory = injector.get('bpmnFactory'),
- commandStack = injector.get('commandStack');
- if (is(element, 'bpmn:Participant') && !element.businessObject.processRef) {
- return;
- }
- const businessObject = getListenersContainer(element);
- const listeners = getExtensionElementsList(businessObject, 'camunda:ExecutionListener');
- return {
- items: listeners.map((listener, index) => {
- const id = `${element.id}-executionListener-${index}`;
- // @TODO(barmac): Find a way to pass translate for internationalized label.
- return {
- id,
- label: getListenerLabel(listener),
- entries: ExecutionListener({
- idPrefix: id,
- element,
- listener
- }),
- remove: removeListenerFactory({
- element,
- listener,
- commandStack
- })
- };
- }),
- add: addExecutionListenerFactory({
- bpmnFactory,
- commandStack,
- element
- })
- };
- }
- function ExecutionListener(props) {
- const {
- idPrefix,
- element,
- listener
- } = props;
- return [{
- id: `${idPrefix}-eventType`,
- component: EventType,
- listener
- }, {
- id: `${idPrefix}-listenerType`,
- component: ListenerType,
- listener
- }, ...ImplementationDetails({
- idPrefix,
- element,
- listener
- }), {
- id: `${idPrefix}-fields`,
- component: Fields,
- listener
- }];
- }
- function TaskListenerProps({
- element,
- injector
- }) {
- if (!is(element, 'bpmn:UserTask')) {
- return;
- }
- const bpmnFactory = injector.get('bpmnFactory'),
- commandStack = injector.get('commandStack');
- const businessObject = getListenersContainer(element);
- const listeners = getExtensionElementsList(businessObject, 'camunda:TaskListener');
- return {
- items: listeners.map((listener, index) => {
- const id = `${element.id}-taskListener-${index}`;
- // @TODO(barmac): Find a way to pass translate for internationalized label.
- return {
- id,
- label: getListenerLabel(listener),
- entries: TaskListener({
- idPrefix: id,
- element,
- listener
- }),
- remove: removeListenerFactory({
- element,
- listener,
- commandStack
- })
- };
- }),
- add: addTaskListenerFactory({
- bpmnFactory,
- commandStack,
- element
- })
- };
- }
- function TaskListener(props) {
- const {
- idPrefix,
- element,
- listener
- } = props;
- return [{
- id: `${idPrefix}-eventType`,
- component: EventType,
- listener
- }, {
- id: `${idPrefix}-listenerId`,
- component: ListenerId,
- listener
- }, {
- id: `${idPrefix}-listenerType`,
- component: ListenerType,
- listener
- }, ...ImplementationDetails({
- idPrefix,
- element,
- listener
- }), ...EventTypeDetails({
- idPrefix,
- element,
- listener
- }), {
- id: `${idPrefix}-fields`,
- component: Fields,
- listener
- }];
- }
- function removeListenerFactory({
- element,
- listener,
- commandStack
- }) {
- return function removeListener(event) {
- event.stopPropagation();
- removeExtensionElements(element, getListenersContainer(element), listener, commandStack);
- };
- }
- function EventType({
- id,
- element,
- listener
- }) {
- const translate = useService('translate');
- const bpmnFactory = useService('bpmnFactory');
- const commandStack = useService('commandStack');
- function getValue() {
- return listener.get('event');
- }
- function setValue(value) {
- const properties = getDefaultEventTypeProperties(value, bpmnFactory);
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: listener,
- properties
- });
- }
- function getOptions() {
- if (is(listener, 'camunda:TaskListener')) {
- return [{
- value: 'create',
- label: translate('create')
- }, {
- value: 'assignment',
- label: translate('assignment')
- }, {
- value: 'complete',
- label: translate('complete')
- }, {
- value: 'delete',
- label: translate('delete')
- }, {
- value: 'update',
- label: translate('update')
- }, {
- value: 'timeout',
- label: translate('timeout')
- }];
- }
- if (is(element, 'bpmn:SequenceFlow')) {
- return [{
- value: 'take',
- label: translate('take')
- }];
- }
- return [{
- value: 'start',
- label: translate('start')
- }, {
- value: 'end',
- label: translate('end')
- }];
- }
- return jsx(SelectEntry, {
- id: id,
- label: translate('Event type'),
- getValue: getValue,
- setValue: setValue,
- getOptions: getOptions
- });
- }
- function ListenerId({
- id,
- element,
- listener
- }) {
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const commandStack = useService('commandStack');
- let options = {
- element,
- id: id,
- label: translate('Listener ID'),
- debounce,
- isEdited: isTextFieldEntryEdited,
- setValue: value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: listener,
- properties: {
- 'camunda:id': value
- }
- });
- },
- getValue: () => {
- return listener.get('camunda:id');
- }
- };
- return TextFieldEntry(options);
- }
- function ListenerType({
- id,
- element,
- listener
- }) {
- const modeling = useService('modeling');
- const translate = useService('translate');
- const bpmnFactory = useService('bpmnFactory');
- function getValue() {
- return getListenerType(listener);
- }
- function setValue(value) {
- const properties = getDefaultImplementationProperties(value, bpmnFactory);
- modeling.updateModdleProperties(element, listener, properties);
- }
- function getOptions() {
- return getListenerTypeOptions(translate);
- }
- return jsx(SelectEntry, {
- id: id,
- label: translate('Listener type'),
- getValue: getValue,
- setValue: setValue,
- getOptions: getOptions
- });
- }
- function ImplementationDetails(props) {
- const {
- idPrefix,
- element,
- listener
- } = props;
- const type = getListenerType(listener);
- if (type === 'class') {
- return [{
- id: getPrefixedId(idPrefix, 'javaClass'),
- component: JavaClass,
- businessObject: listener
- }];
- } else if (type === 'expression') {
- return [{
- id: getPrefixedId(idPrefix, 'expression'),
- component: Expression,
- businessObject: listener
- }];
- } else if (type === 'delegateExpression') {
- return [{
- id: getPrefixedId(idPrefix, 'delegateExpression'),
- component: DelegateExpression,
- businessObject: listener
- }];
- } else if (type === 'script') {
- return ScriptProps({
- element,
- script: listener.get('script'),
- prefix: idPrefix
- });
- }
- // should never happen
- return [];
- }
- function EventTypeDetails(props) {
- const {
- idPrefix,
- element,
- listener
- } = props;
- const type = listener.get('event');
- if (type === 'timeout') {
- return TimerProps({
- element,
- listener,
- timerEventDefinition: getTimerEventDefinition$1(listener),
- idPrefix: idPrefix
- });
- }
- return [];
- }
- function Field(props) {
- const {
- element,
- id: idPrefix,
- index,
- item: field,
- open
- } = props;
- const fieldId = `${idPrefix}-field-${index}`;
- return jsx(CollapsibleEntry, {
- id: fieldId,
- element: element,
- entries: FieldInjection({
- element,
- field,
- idPrefix: fieldId
- }),
- label: field.get('name') || '<empty>',
- open: open
- });
- }
- function Fields(props) {
- const {
- id,
- element,
- listener
- } = props;
- const bpmnFactory = useService('bpmnFactory');
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const fields = listener.get('fields');
- function addField() {
- const field = createElement('camunda:Field', {}, listener, bpmnFactory);
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: listener,
- properties: {
- fields: [...listener.get('fields'), field]
- }
- });
- }
- function removeField(field) {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: listener,
- properties: {
- fields: without(listener.get('fields'), field)
- }
- });
- }
- return jsx(ListEntry, {
- id: id,
- element: element,
- label: translate('Field injection'),
- items: fields,
- component: Field,
- onAdd: addField,
- onRemove: removeField,
- compareFn: compareName,
- autoFocusEntry: true
- });
- }
- function addListenerFactory({
- bpmnFactory,
- commandStack,
- element,
- listenerGroup
- }) {
- return function (event) {
- event.stopPropagation();
- const listener = bpmnFactory.create(listenerGroup, {
- event: getDefaultEvent(element, listenerGroup),
- class: ''
- });
- const businessObject = getListenersContainer(element);
- addExtensionElements(element, businessObject, listener, bpmnFactory, commandStack);
- };
- }
- function addTaskListenerFactory(props) {
- return addListenerFactory({
- ...props,
- listenerGroup: 'camunda:TaskListener'
- });
- }
- function addExecutionListenerFactory(props) {
- return addListenerFactory({
- ...props,
- listenerGroup: 'camunda:ExecutionListener'
- });
- }
- // helper
- /**
- * Get a readable label for a listener.
- *
- * @param {ModdleElement} listener
- * @param {string => string} [translate]
- */
- function getListenerLabel(listener, translate = value => value) {
- const event = listener.get('event');
- const implementationType = getListenerType(listener);
- return `${translate(EVENT_TO_LABEL[event])}: ${translate(IMPLEMENTATION_TYPE_TO_LABEL[implementationType])}`;
- }
- function getListenerTypeOptions(translate) {
- return Object.entries(IMPLEMENTATION_TYPE_TO_LABEL).map(([value, label]) => ({
- value,
- label: translate(label)
- }));
- }
- function getListenerType(listener) {
- return getImplementationType(listener);
- }
- function getDefaultEvent(element, listenerGroup) {
- if (listenerGroup === 'camunda:TaskListener') return 'create';
- return is(element, 'bpmn:SequenceFlow') ? 'take' : 'start';
- }
- function getDefaultImplementationProperties(type, bpmnFactory) {
- switch (type) {
- case 'class':
- return {
- ...DEFAULT_PROPS,
- 'class': ''
- };
- case 'expression':
- return {
- ...DEFAULT_PROPS,
- 'expression': ''
- };
- case 'delegateExpression':
- return {
- ...DEFAULT_PROPS,
- 'delegateExpression': ''
- };
- case 'script':
- return {
- ...DEFAULT_PROPS,
- 'script': bpmnFactory.create('camunda:Script')
- };
- }
- }
- function getDefaultEventTypeProperties(type, bpmnFactory) {
- switch (type) {
- case 'timeout':
- return {
- ...DEFAULT_EVENT_PROPS,
- eventDefinitions: [bpmnFactory.create('bpmn:TimerEventDefinition')],
- event: type
- };
- default:
- return {
- ...DEFAULT_EVENT_PROPS,
- event: type
- };
- }
- }
- function getPrefixedId(prefix, id) {
- return `${prefix}-${id}`;
- }
- function compareName(field, anotherField) {
- const [name = '', anotherName = ''] = [field.name, anotherField.name];
- return name === anotherName ? 0 : name > anotherName ? 1 : -1;
- }
- function getListenersContainer(element) {
- const businessObject = getBusinessObject(element);
- return businessObject.get('processRef') || businessObject;
- }
- function ProcessVariablesEntry(props) {
- const {
- element
- } = props;
- const [variables, setVariables] = useState([]);
- useEffect(async () => {
- const businessObject = getBusinessObject(element);
- const rootElement = getRootElement(businessObject);
- const scope = getScope(element);
- const rawVariables = await getVariablesForScope(scope, rootElement);
- const withName = populateElementNames(sortByName(rawVariables));
- setVariables(withName);
- }, [element]);
- if (!variables.length) {
- return null;
- }
- const byScope = groupByScope(variables);
- const multiScope = isMultiScope(byScope);
- let variableItems = [];
- // (2) get variables to display
- if (multiScope) {
- // (2a) multiple scopes, sub scopes first
- // assumption: variables extractor fetches parent variables first
- const reversed = map(reverse(keys(byScope)), scopeKey => byScope[scopeKey]);
- variableItems = flatten(reversed);
- } else {
- // (2b) single scope
- variableItems = variables;
- }
- const items = variableItems.map((variable, index) => {
- const id = element.id + '-variable-' + index;
- return {
- id,
- label: variable.name,
- entries: [...ProcessVariableItem({
- idPrefix: id,
- multiScope,
- variable
- })]
- };
- });
- return jsx(ListGroup, {
- ...props,
- items: items,
- shouldSort: false
- });
- }
- function ProcessVariablesProps(props) {
- const {
- element
- } = props;
- if (!canHaveProcessVariables(element)) {
- return null;
- }
- return {
- component: ProcessVariablesEntry,
- shouldSort: false
- };
- }
- function ProcessVariableItem(props) {
- const {
- idPrefix,
- multiScope,
- variable
- } = props;
- let entries = [];
- if (multiScope) {
- entries.push({
- id: idPrefix + '-scope',
- component: Scope,
- idPrefix,
- variable
- });
- }
- entries.push({
- id: idPrefix + '-createdIn',
- component: CreatedIn,
- idPrefix,
- variable
- });
- return entries;
- }
- function Scope(props) {
- const {
- idPrefix,
- variable
- } = props;
- const translate = useService('translate');
- const id = idPrefix + '-scope';
- return jsxs("div", {
- "data-entry-id": id,
- class: "bio-properties-panel-entry",
- children: [jsx("b", {
- style: "font-weight: bold",
- class: "bio-properties-panel-label",
- children: translate('Scope')
- }), jsx("label", {
- id: prefixId(id),
- class: "bio-properties-panel-label",
- children: variable.scope
- })]
- });
- }
- function CreatedIn(props) {
- const {
- idPrefix,
- variable
- } = props;
- const translate = useService('translate');
- const id = idPrefix + '-createdIn';
- const origin = variable.origin.join(', ');
- return jsxs("div", {
- "data-entry-id": id,
- class: "bio-properties-panel-entry",
- children: [jsx("b", {
- style: "font-weight: bold",
- class: "bio-properties-panel-label",
- children: translate('Created in')
- }), jsx("label", {
- id: prefixId(id),
- class: "bio-properties-panel-label",
- children: origin
- })]
- });
- }
- // helper //////////////////////
- function canHaveProcessVariables(element) {
- const businessObject = getBusinessObject(element);
- return isAny(element, ['bpmn:Process', 'bpmn:SubProcess']) || is(element, 'bpmn:Participant') && businessObject.get('processRef');
- }
- function getRootElement(element) {
- const businessObject = getBusinessObject(element);
- if (is(businessObject, 'bpmn:Participant')) {
- return businessObject.processRef;
- }
- if (is(businessObject, 'bpmn:Process')) {
- return businessObject;
- }
- let parent = businessObject;
- while (parent.$parent && !is(parent, 'bpmn:Process')) {
- parent = parent.$parent;
- }
- return parent;
- }
- function getScope(element) {
- const bo = getBusinessObject(element);
- if (is(element, 'bpmn:Participant')) {
- return bo.processRef.id;
- }
- return bo.id;
- }
- function sortByName(variables) {
- return sortBy(variables, function (variable) {
- return variable.name;
- });
- }
- function groupByScope(variables) {
- return groupBy(variables, 'scope');
- }
- function populateElementNames(variables) {
- forEach(variables, function (variable) {
- const names = map(variable.origin, function (element) {
- return element.name || element.id;
- });
- variable.origin = names;
- variable.scope = variable.scope.name || variable.scope.id;
- });
- return variables;
- }
- function isMultiScope(scopedVariables) {
- return keys(scopedVariables).length > 1;
- }
- function reverse(array) {
- return map(array, function (a, i) {
- return array[array.length - 1 - i];
- });
- }
- function prefixId(id) {
- return `bio-properties-panel-${id}`;
- }
- function ScriptTaskProps(props) {
- const {
- element
- } = props;
- if (!is(element, 'bpmn:ScriptTask')) {
- return [];
- }
- const entries = [...ScriptProps({
- element
- })];
- entries.push({
- id: 'scriptResultVariable',
- component: ResultVariable,
- isEdited: isTextFieldEntryEdited
- });
- return entries;
- }
- function ResultVariable(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const businessObject = getBusinessObject(element);
- const getValue = () => {
- return businessObject.get('camunda:resultVariable');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:resultVariable': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'scriptResultVariable',
- label: translate('Result variable'),
- getValue,
- setValue,
- debounce
- });
- }
- function TasklistProps(props) {
- const {
- element
- } = props;
- const businessObject = getBusinessObject(element);
- const isEdited = node => {
- return node && !node.checked;
- };
- if (!is(element, 'bpmn:Process') && !(is(element, 'bpmn:Participant') && businessObject.get('processRef'))) {
- return [];
- }
- return [{
- id: 'isStartableInTasklist',
- component: Startable,
- isEdited
- }];
- }
- function Startable(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const process = getProcess$1(element);
- const getValue = () => {
- return process.get('camunda:isStartableInTasklist');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: process,
- properties: {
- 'camunda:isStartableInTasklist': value
- }
- });
- };
- return CheckboxEntry({
- element,
- id: 'isStartableInTasklist',
- label: translate('Startable'),
- getValue,
- setValue
- });
- }
- // helper //////////////////
- function getProcess$1(element) {
- return is(element, 'bpmn:Process') ? getBusinessObject(element) : getBusinessObject(element).get('processRef');
- }
- /**
- * Cf. https://docs.camunda.org/manual/latest/reference/bpmn20/tasks/user-task/
- */
- function UserAssignmentProps(props) {
- const {
- element
- } = props;
- if (!is(element, 'camunda:Assignable')) {
- return [];
- }
- return [{
- id: 'assignee',
- component: Assignee,
- isEdited: isTextFieldEntryEdited
- }, {
- id: 'candidateGroups',
- component: CandidateGroups,
- isEdited: isTextFieldEntryEdited
- }, {
- id: 'candidateUsers',
- component: CandidateUsers,
- isEdited: isTextFieldEntryEdited
- }, {
- id: 'dueDate',
- component: DueDate,
- isEdited: isTextFieldEntryEdited
- }, {
- id: 'followUpDate',
- component: FollowUpDate,
- isEdited: isTextFieldEntryEdited
- }, {
- id: 'priority',
- component: Priority,
- isEdited: isTextFieldEntryEdited
- }];
- }
- function Assignee(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const businessObject = getBusinessObject(element);
- const getValue = () => {
- return businessObject.get('camunda:assignee');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:assignee': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'assignee',
- label: translate('Assignee'),
- getValue,
- setValue,
- debounce
- });
- }
- function CandidateUsers(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const businessObject = getBusinessObject(element);
- const getValue = () => {
- return businessObject.get('camunda:candidateUsers');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:candidateUsers': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'candidateUsers',
- label: translate('Candidate users'),
- getValue,
- setValue,
- debounce
- });
- }
- function CandidateGroups(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const businessObject = getBusinessObject(element);
- const getValue = () => {
- return businessObject.get('camunda:candidateGroups');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:candidateGroups': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'candidateGroups',
- label: translate('Candidate groups'),
- getValue,
- setValue,
- debounce
- });
- }
- function DueDate(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const businessObject = getBusinessObject(element);
- const getValue = () => {
- return businessObject.get('camunda:dueDate');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:dueDate': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'dueDate',
- label: translate('Due date'),
- description: translate('The due date as an EL expression (e.g. ${someDate}) or an ISO date (e.g. 2015-06-26T09:54:00).'),
- getValue,
- setValue,
- debounce
- });
- }
- function FollowUpDate(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const businessObject = getBusinessObject(element);
- const getValue = () => {
- return businessObject.get('camunda:followUpDate');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:followUpDate': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'followUpDate',
- label: translate('Follow up date'),
- description: translate('The follow up date as an EL expression (e.g. ${someDate}) or an ' + 'ISO date (e.g. 2015-06-26T09:54:00).'),
- getValue,
- setValue,
- debounce
- });
- }
- function Priority(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const businessObject = getBusinessObject(element);
- const getValue = () => {
- return businessObject.get('camunda:priority');
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: businessObject,
- properties: {
- 'camunda:priority': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'priority',
- label: translate('Priority'),
- getValue,
- setValue,
- debounce
- });
- }
- function VersionTagProps(props) {
- const {
- element
- } = props;
- const businessObject = getBusinessObject(element);
- if (!is(element, 'bpmn:Process') && !(is(element, 'bpmn:Participant') && businessObject.get('processRef'))) {
- return [];
- }
- return [{
- id: 'versionTag',
- component: VersionTag,
- isEdited: isTextFieldEntryEdited
- }];
- }
- function VersionTag(props) {
- const {
- element
- } = props;
- const commandStack = useService('commandStack');
- const translate = useService('translate');
- const debounce = useService('debounceInput');
- const process = getProcess(element);
- const getValue = () => {
- return process.get('camunda:versionTag') || '';
- };
- const setValue = value => {
- commandStack.execute('element.updateModdleProperties', {
- element,
- moddleElement: process,
- properties: {
- 'camunda:versionTag': value
- }
- });
- };
- return TextFieldEntry({
- element,
- id: 'versionTag',
- label: translate('Version tag'),
- getValue,
- setValue,
- debounce
- });
- }
- // helper //////////////////
- function getProcess(element) {
- return is(element, 'bpmn:Process') ? getBusinessObject(element) : getBusinessObject(element).get('processRef');
- }
- const LOW_PRIORITY = 500;
- 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];
- /**
- * Provides `camunda` namespace properties.
- *
- * @example
- * ```javascript
- * import BpmnModeler from 'bpmn-js/lib/Modeler';
- * import {
- * BpmnPropertiesPanelModule,
- * BpmnPropertiesProviderModule,
- * CamundaPlatformPropertiesProviderModule
- * } from 'bpmn-js-properties-panel';
- *
- * const modeler = new BpmnModeler({
- * container: '#canvas',
- * propertiesPanel: {
- * parent: '#properties'
- * },
- * additionalModules: [
- * BpmnPropertiesPanelModule,
- * BpmnPropertiesProviderModule,
- * CamundaPlatformPropertiesProviderModule
- * ]
- * });
- * ```
- */
- class CamundaPlatformPropertiesProvider {
- constructor(propertiesPanel, injector) {
- propertiesPanel.registerProvider(LOW_PRIORITY, this);
- this._injector = injector;
- }
- getGroups(element) {
- return groups => {
- // (1) add Camunda Platform specific groups
- groups = groups.concat(this._getGroups(element));
- // (2) update existing groups with Camunda Platform specific properties
- updateGeneralGroup(groups, element);
- updateErrorGroup(groups, element);
- updateEscalationGroup(groups, element);
- updateMultiInstanceGroup(groups, element);
- updateTimerGroup(groups, element);
- // (3) move groups given specific priorities
- moveImplementationGroup(groups);
- return groups;
- };
- }
- _getGroups(element) {
- const groups = CAMUNDA_PLATFORM_GROUPS.map(createGroup => createGroup(element, this._injector));
- // contract: if a group returns null, it should not be displayed at all
- return groups.filter(group => group !== null);
- }
- }
- CamundaPlatformPropertiesProvider.$inject = ['propertiesPanel', 'injector'];
- /**
- * This ensures the <Implementation> group always locates after <Documentation>
- */
- function moveImplementationGroup(groups) {
- const documentationGroupIdx = findGroupIndex(groups, 'documentation');
- if (documentationGroupIdx < 0) {
- return;
- }
- return moveGroup(groups, 'CamundaPlatform__Implementation', documentationGroupIdx + 1);
- }
- function updateGeneralGroup(groups, element) {
- const generalGroup = findGroup(groups, 'general');
- if (!generalGroup) {
- return;
- }
- const {
- entries
- } = generalGroup;
- // (1) add version tag before executable (if existing)
- const executableEntry = findIndex(entries, entry => entry.id === 'isExecutable');
- const insertIndex = executableEntry >= 0 ? executableEntry : entries.length;
- entries.splice(insertIndex, 0, ...VersionTagProps({
- element
- }));
- }
- function updateErrorGroup(groups, element) {
- const errorGroup = findGroup(groups, 'error');
- if (!errorGroup) {
- return;
- }
- const {
- entries
- } = errorGroup;
- ErrorProps({
- element,
- entries
- });
- }
- function updateMultiInstanceGroup(groups, element) {
- const multiInstanceGroup = findGroup(groups, 'multiInstance');
- if (!multiInstanceGroup) {
- return;
- }
- const {
- entries
- } = multiInstanceGroup;
- MultiInstanceProps({
- element,
- entries
- });
- }
- function updateEscalationGroup(groups, element) {
- const escalationGroup = findGroup(groups, 'escalation');
- if (!escalationGroup) {
- return;
- }
- const {
- entries
- } = escalationGroup;
- EscalationProps({
- element,
- entries
- });
- }
- function updateTimerGroup(groups, element) {
- const timerEventGroup = findGroup(groups, 'timer');
- if (!timerEventGroup) {
- return;
- }
- timerEventGroup.entries = [...TimerProps({
- element
- })];
- }
- function ImplementationGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Implementation'),
- id: 'CamundaPlatform__Implementation',
- component: Group,
- entries: [...ImplementationProps({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function ErrorsGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Errors'),
- id: 'CamundaPlatform__Errors',
- component: ListGroup,
- ...ErrorsProps({
- element,
- injector
- })
- };
- if (group.items) {
- return group;
- }
- return null;
- }
- function UserAssignmentGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('User assignment'),
- id: 'CamundaPlatform__UserAssignment',
- component: Group,
- entries: [...UserAssignmentProps({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function ScriptGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Script'),
- id: 'CamundaPlatform__Script',
- component: Group,
- entries: [...ScriptTaskProps({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function CallActivityGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Called element'),
- id: 'CamundaPlatform__CallActivity',
- component: Group,
- entries: [...CallActivityProps({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function ConditionGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Condition'),
- id: 'CamundaPlatform__Condition',
- component: Group,
- entries: [...ConditionProps({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function StartInitiatorGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Start initiator'),
- id: 'CamundaPlatform__StartInitiator',
- component: Group,
- entries: [...InitiatorProps({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function ExternalTaskGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('External task'),
- id: 'CamundaPlatform__ExternalTask',
- component: Group,
- entries: [...ExternalTaskPriorityProps({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function AsynchronousContinuationsGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Asynchronous continuations'),
- id: 'CamundaPlatform__AsynchronousContinuations',
- component: Group,
- entries: [...AsynchronousContinuationsProps({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function JobExecutionGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Job execution'),
- id: 'CamundaPlatform__JobExecution',
- component: Group,
- entries: [...JobExecutionProps({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function CandidateStarterGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Candidate starter'),
- id: 'CamundaPlatform__CandidateStarter',
- component: Group,
- entries: [...CandidateStarterProps({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function FieldInjectionGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Field injections'),
- id: 'CamundaPlatform__FieldInjection',
- component: ListGroup,
- ...FieldInjectionProps({
- element,
- injector
- })
- };
- if (group.items) {
- return group;
- }
- return null;
- }
- function HistoryCleanupGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('History cleanup'),
- id: 'CamundaPlatform__HistoryCleanup',
- component: Group,
- entries: [...HistoryCleanupProps({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function TasklistGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Tasklist'),
- id: 'CamundaPlatform__Tasklist',
- component: Group,
- entries: [...TasklistProps({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function InMappingGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('In mappings'),
- id: 'CamundaPlatform__InMapping',
- component: ListGroup,
- ...InMappingProps({
- element,
- injector
- })
- };
- if (group.items) {
- return group;
- }
- return null;
- }
- function InMappingPropagationGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('In mapping propagation'),
- id: 'CamundaPlatform__InMappingPropagation',
- component: Group,
- entries: [...InMappingPropagationProps({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function OutMappingGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Out mappings'),
- id: 'CamundaPlatform__OutMapping',
- component: ListGroup,
- ...OutMappingProps({
- element,
- injector
- })
- };
- if (group.items) {
- return group;
- }
- return null;
- }
- function OutMappingPropagationGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Out mapping propagation'),
- id: 'CamundaPlatform__OutMappingPropagation',
- component: Group,
- entries: [...OutMappingPropagationProps({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function ProcessVariablesGroup(element, injector) {
- const translate = injector.get('translate');
- const variableProps = ProcessVariablesProps({
- element,
- injector
- });
- if (!variableProps) {
- return null;
- }
- const group = {
- label: translate('Process variables'),
- id: 'CamundaPlatform__ProcessVariables',
- ...variableProps
- };
- return group;
- }
- function FormDataGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Form fields'),
- id: 'CamundaPlatform__FormData',
- component: ListGroup,
- ...FormDataProps({
- element,
- injector
- })
- };
- if (group.items) {
- return group;
- }
- return null;
- }
- function BusinessKeyGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Business key'),
- id: 'CamundaPlatform__BusinessKey',
- component: Group,
- entries: [...BusinessKeyProps$1({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function FormGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Forms'),
- id: 'CamundaPlatform__Form',
- component: Group,
- entries: [...FormProps({
- element
- })]
- };
- if (group.entries.length) {
- return group;
- }
- return null;
- }
- function ExecutionListenerGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Execution listeners'),
- id: 'CamundaPlatform__ExecutionListener',
- component: ListGroup,
- ...ExecutionListenerProps({
- element,
- injector
- })
- };
- if (group.items) {
- return group;
- }
- return null;
- }
- function TaskListenerGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Task listeners'),
- id: 'CamundaPlatform__TaskListener',
- component: ListGroup,
- ...TaskListenerProps({
- element,
- injector
- })
- };
- if (group.items) {
- return group;
- }
- return null;
- }
- function InputGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Inputs'),
- id: 'CamundaPlatform__Input',
- component: ListGroup,
- ...InputProps({
- element,
- injector
- })
- };
- if (group.items) {
- return group;
- }
- return null;
- }
- function OutputGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Outputs'),
- id: 'CamundaPlatform__Output',
- component: ListGroup,
- ...OutputProps({
- element,
- injector
- })
- };
- if (group.items) {
- return group;
- }
- return null;
- }
- function ConnectorInputGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Connector inputs'),
- id: 'CamundaPlatform__ConnectorInput',
- component: ListGroup,
- ...ConnectorInputProps({
- element,
- injector
- })
- };
- if (group.items) {
- return group;
- }
- return null;
- }
- function ConnectorOutputGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Connector outputs'),
- id: 'CamundaPlatform__ConnectorOutput',
- component: ListGroup,
- ...ConnectorOutputProps({
- element,
- injector
- })
- };
- if (group.items) {
- return group;
- }
- return null;
- }
- function ExtensionPropertiesGroup(element, injector) {
- const translate = injector.get('translate');
- const group = {
- label: translate('Extension properties'),
- id: 'CamundaPlatform__ExtensionProperties',
- component: ListGroup,
- ...ExtensionPropertiesProps({
- element,
- injector
- })
- };
- if (group.items) {
- return group;
- }
- return null;
- }
- // helper /////////////////////
- function findGroup(groups, id) {
- return groups.find(g => g.id === id);
- }
- function findGroupIndex(groups, id) {
- return findIndex(groups, g => g.id === id);
- }
- function moveGroup(groups, id, position) {
- const groupIndex = findGroupIndex(groups, id);
- if (position < 0 || groupIndex < 0) {
- return;
- }
- return mutate(groups, groupIndex, position);
- }
- var index = {
- __init__: ['camundaPlatformPropertiesProvider'],
- camundaPlatformPropertiesProvider: ['type', CamundaPlatformPropertiesProvider]
- };
- /* eslint-disable react-hooks/rules-of-hooks */
- const TooltipProvider = {
- 'group-assignmentDefinition': element => {
- const translate = useService('translate');
- return jsxs("div", {
- children: [translate('Define who the task is assigned to. One or all of the following attributes can be specified simultaneously. '), jsx("a", {
- href: "https://docs.camunda.io/docs/components/modeler/bpmn/user-tasks/#assignments",
- target: "_blank",
- rel: "noopener",
- title: translate('User task documentation'),
- children: translate('Learn more.')
- })]
- });
- },
- 'group-condition': element => {
- const translate = useService('translate');
- return jsxs("div", {
- children: [translate('Define a boolean condition expression that defines when this flow is taken. '), jsx("a", {
- href: "https://docs.camunda.io/docs/components/modeler/bpmn/exclusive-gateways/#conditions",
- target: "_blank",
- rel: "noopener",
- title: translate('Conditions documentation'),
- children: translate('Learn how to define conditions.')
- })]
- });
- },
- 'group-businessRuleImplementation': element => {
- const translate = useService('translate');
- return jsxs("div", {
- children: [translate('Evaluate a business rule, for example a DMN. To add a custom implementation, use a job worker. '), jsx("a", {
- href: "https://docs.camunda.io/docs/components/modeler/bpmn/business-rule-tasks/#defining-a-task",
- target: "_blank",
- rel: "noopener",
- title: translate('Business rule task documentation'),
- children: translate('Learn more.')
- })]
- });
- },
- 'group-scriptImplementation': element => {
- const translate = useService('translate');
- return jsxs("div", {
- children: [translate('Implement a script task using an inline FEEL expression. To add a custom implementation, use a job worker. '), jsx("a", {
- href: "https://docs.camunda.io/docs/components/modeler/bpmn/script-tasks/#defining-a-script-task",
- target: "_blank",
- rel: "noopener",
- title: translate('Script task documentation'),
- children: translate('Learn more.')
- })]
- });
- },
- 'group-form': element => {
- const translate = useService('translate');
- return jsxs("div", {
- children: [translate('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. '), jsx("a", {
- href: "https://docs.camunda.io/docs/guides/utilizing-forms/#connect-your-form-to-a-bpmn-diagram",
- target: "_blank",
- rel: "noopener",
- title: translate('User task form documentation'),
- children: translate('Learn more.')
- })]
- });
- },
- 'group-message': element => {
- const translate = useService('translate');
- if (is(element, 'bpmn:ReceiveTask')) {
- return jsxs("div", {
- children: [translate('Define the name of the message (e.g. '), jsx("code", {
- children: "Money collected"
- }), translate(') and the '), jsx("code", {
- children: "correlationKey"
- }), translate(' expression (e.g. '), jsx("code", {
- children: "= orderId"
- }), translate(')'), translate(' to subscribe to. '), translate('Learn more how to '), jsx("a", {
- href: "https://docs.camunda.io/docs/components/modeler/bpmn/send-tasks",
- target: "_blank",
- rel: "noopener",
- title: translate('Send task documentation'),
- children: translate('send ')
- }), translate('and '), jsx("a", {
- href: "https://docs.camunda.io/docs/components/modeler/bpmn/receive-tasks",
- target: "_blank",
- rel: "noopener",
- title: translate('Receive task documentation'),
- children: translate('receive messages. ')
- })]
- });
- }
- return jsxs("div", {
- children: [translate('Define the name of the message (e.g. '), jsx("code", {
- children: "Money collected"
- }), translate(') and the '), jsx("code", {
- children: "correlationKey"
- }), translate(' expression (e.g. '), jsx("code", {
- children: "= orderId"
- }), translate(')'), translate(' to subscribe to. '), jsx("a", {
- href: "https://docs.camunda.io/docs/components/modeler/bpmn/message-events/#messages",
- target: "_blank",
- rel: "noopener",
- title: translate('Message event documentation'),
- children: translate('Learn more.')
- })]
- });
- },
- 'group-calledElement': element => {
- const translate = useService('translate');
- return jsxs("div", {
- children: [translate('Define the ID of the process to call (e.g. '), " ", jsx("code", {
- children: "shipping-process"
- }), translate(' or '), jsx("code", {
- children: "= \"shipping-\" + tenantId"
- }), " ", translate('). '), jsx("a", {
- href: "https://docs.camunda.io/docs/components/modeler/bpmn/call-activities/",
- target: "_blank",
- rel: "noopener",
- title: translate('Call activity documentation'),
- children: translate('Learn more.')
- })]
- });
- },
- 'group-taskDefinition': element => {
- const translate = useService('translate');
- if (is(element, 'bpmn:ServiceTask')) {
- return jsxs("div", {
- children: [translate('Specify which job workers handle the task work to execute a service (e.g. '), jsx("code", {
- children: "order-items"
- }), translate('). '), jsx("a", {
- href: "https://docs.camunda.io/docs/components/modeler/bpmn/service-tasks",
- target: "_blank",
- rel: "noopener",
- title: translate('Service task documentation'),
- children: translate('Learn more.')
- })]
- });
- }
- if (is(element, 'bpmn:BusinessRuleTask')) {
- return jsxs("div", {
- children: [translate('Specify which job workers handle the task work to evaluate business rules. '), jsx("a", {
- href: "https://docs.camunda.io/docs/components/modeler/bpmn/business-rule-tasks/#job-worker-implementation",
- target: "_blank",
- rel: "noopener",
- title: translate('Business rule task documentation'),
- children: translate('Learn more.')
- })]
- });
- }
- if (is(element, 'bpmn:ScriptTask')) {
- return jsxs("div", {
- children: [translate('Specify which job workers handle the task work to execute a script. '), jsx("a", {
- href: "https://docs.camunda.io/docs/components/modeler/bpmn/script-tasks/#defining-a-task",
- target: "_blank",
- rel: "noopener",
- title: translate('Script task documentation'),
- children: translate('Learn more.')
- })]
- });
- }
- if (is(element, 'bpmn:SendTask')) {
- return jsxs("div", {
- children: [translate('Specify which job workers handle the task work to send a message (e.g. '), jsx("code", {
- children: "kafka"
- }), translate(' or '), jsx("code", {
- children: "mail"
- }), translate('). '), jsx("a", {
- href: "https://docs.camunda.io/docs/components/modeler/bpmn/send-tasks/#defining-a-task",
- target: "_blank",
- rel: "noopener",
- title: translate('Send task documentation'),
- children: translate('Learn more.')
- })]
- });
- }
- if (is(element, 'bpmn:ThrowEvent')) {
- return jsxs("div", {
- children: [translate('Specify which job workers handle the event work. '), jsx("a", {
- href: "https://docs.camunda.io/docs/components/modeler/bpmn/message-events/#message-throw-events",
- target: "_blank",
- rel: "noopener",
- title: translate('Message throw event documentation'),
- children: translate('Learn more.')
- })]
- });
- }
- },
- 'group-multiInstance': element => {
- const translate = useService('translate');
- return jsxs("div", {
- children: [translate('Execute this task for each element of a given collection. '), jsx("br", {}), translate('Define an input collection expression that defines the collection to iterate over (e.g. '), jsx("code", {
- children: "= items"
- }), translate('). '), translate('To collect the output define the output collection and the output element expressions. '), jsx("a", {
- href: "https://docs.camunda.io/docs/components/modeler/bpmn/multi-instance/#defining-the-collection-to-iterate-over",
- target: "_blank",
- rel: "noopener",
- title: translate('Multi instance documentation'),
- children: translate('Learn more.')
- })]
- });
- },
- 'group-error': element => {
- const translate = useService('translate');
- return jsxs("div", {
- children: [translate('Define an error code (e.g. '), jsx("code", {
- children: "order-not-found"
- }), translate('). '), jsx("a", {
- href: "https://docs.camunda.io/docs/components/modeler/bpmn/error-events/#defining-the-error",
- target: "_blank",
- rel: "noopener",
- title: translate('Error event documentation'),
- children: translate('Learn more.')
- })]
- });
- },
- 'group-inputs': element => {
- const translate = useService('translate');
- return jsxs("div", {
- children: [translate('Create a new local variable in the scope of this task. '), jsx("a", {
- href: "https://docs.camunda.io/docs/components/concepts/variables/#input-mappings",
- target: "_blank",
- rel: "noopener",
- title: translate('Input mappings documentation'),
- children: translate('Learn more.')
- })]
- });
- },
- 'group-outputs': element => {
- const translate = useService('translate');
- return jsxs("div", {
- children: [translate('Customize how result variables are merged into the global scope of the process instance. '), jsx("a", {
- href: "https://docs.camunda.io/docs/components/concepts/variables/#output-mappings",
- target: "_blank",
- rel: "noopener",
- title: translate('Output mappings documentation'),
- children: translate('Learn more.')
- })]
- });
- }
- };
- export { index$3 as BpmnPropertiesPanelModule, index$2 as BpmnPropertiesProviderModule, index as CamundaPlatformPropertiesProviderModule, index$1 as ZeebePropertiesProviderModule, TooltipProvider as ZeebeTooltipProvider, useService };
- //# sourceMappingURL=index.mjs.map
|