index.mjs 648 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422
  1. import { useContext, useState, useEffect, useMemo, useCallback } from 'preact/hooks';
  2. import { reduce, isArray, find, forEach, sortBy, without, isUndefined, has, findIndex, isDefined, filter, map, keys, flatten, groupBy } from 'min-dash';
  3. 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';
  4. import { createContext, render } from 'preact';
  5. import { getLabel } from 'bpmn-js/lib/features/label-editing/LabelUtil';
  6. import { is, getBusinessObject, isAny as isAny$1 } from 'bpmn-js/lib/util/ModelUtil';
  7. import { isInterrupting as isInterrupting$1, isEventSubProcess, isExpanded } from 'bpmn-js/lib/util/DiUtil';
  8. import 'preact/compat';
  9. import { jsx, jsxs } from 'preact/jsx-runtime';
  10. import { isUndo, isRedo } from 'diagram-js/lib/features/keyboard/KeyboardUtil';
  11. import { domify, query, event } from 'min-dom';
  12. import { isAny } from 'bpmn-js/lib/features/modeling/util/ModelingUtil';
  13. import Ids from 'ids';
  14. import { add } from 'diagram-js/lib/util/Collections';
  15. import { getVariablesForElement } from '@bpmn-io/extract-process-variables/zeebe';
  16. import { mutate } from 'array-move';
  17. import { getVariablesForScope } from '@bpmn-io/extract-process-variables';
  18. const BpmnPropertiesPanelContext = createContext({
  19. selectedElement: null,
  20. injector: null,
  21. getService() {
  22. return null;
  23. }
  24. });
  25. function useService(type, strict) {
  26. const {
  27. getService
  28. } = useContext(BpmnPropertiesPanelContext);
  29. return getService(type, strict);
  30. }
  31. var AssociationIcon = function AssociationIcon(props) {
  32. return jsx("svg", {
  33. ...props,
  34. children: jsx("path", {
  35. stroke: "#000",
  36. strokeWidth: "2",
  37. fill: "none",
  38. strokeDasharray: "3.3,6",
  39. strokeLinecap: "square",
  40. d: "m1.5 30.5 29-29"
  41. })
  42. });
  43. };
  44. AssociationIcon.defaultProps = {
  45. width: "32",
  46. height: "32",
  47. xmlns: "http://www.w3.org/2000/svg"
  48. };
  49. var BusinessRuleTaskIcon = function BusinessRuleTaskIcon(props) {
  50. return jsxs("svg", {
  51. ...props,
  52. children: [jsx("path", {
  53. 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"
  54. }), jsx("path", {
  55. d: "M6.079 8.209v3.587H21.44V8.209z"
  56. })]
  57. });
  58. };
  59. BusinessRuleTaskIcon.defaultProps = {
  60. xmlns: "http://www.w3.org/2000/svg",
  61. width: "32",
  62. height: "32"
  63. };
  64. var CallActivityIcon = function CallActivityIcon(props) {
  65. return jsx("svg", {
  66. ...props,
  67. children: jsx("path", {
  68. 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"
  69. })
  70. });
  71. };
  72. CallActivityIcon.defaultProps = {
  73. xmlns: "http://www.w3.org/2000/svg",
  74. width: "32",
  75. height: "32"
  76. };
  77. var CollaborationIcon = function CollaborationIcon(props) {
  78. return jsx("svg", {
  79. ...props,
  80. children: jsxs("g", {
  81. fillRule: "evenodd",
  82. children: [jsx("path", {
  83. fillRule: "nonzero",
  84. d: "M0 0v8.62h32V0H0zm1.655 7.054v-5.37h28.62v5.37H1.656zM0 23.38V32h32v-8.62H0zm1.655 7.054v-5.37h28.62v5.37H1.656z"
  85. }), jsx("path", {
  86. 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"
  87. })]
  88. })
  89. });
  90. };
  91. CollaborationIcon.defaultProps = {
  92. xmlns: "http://www.w3.org/2000/svg",
  93. width: "32",
  94. height: "32"
  95. };
  96. var ConditionalFlowIcon = function ConditionalFlowIcon(props) {
  97. return jsx("svg", {
  98. ...props,
  99. children: jsx("path", {
  100. 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"
  101. })
  102. });
  103. };
  104. ConditionalFlowIcon.defaultProps = {
  105. xmlns: "http://www.w3.org/2000/svg",
  106. width: "32",
  107. height: "32"
  108. };
  109. var ConnectionIcon = function ConnectionIcon(props) {
  110. return jsx("svg", {
  111. ...props,
  112. children: jsx("path", {
  113. 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"
  114. })
  115. });
  116. };
  117. ConnectionIcon.defaultProps = {
  118. xmlns: "http://www.w3.org/2000/svg",
  119. width: "32",
  120. height: "32"
  121. };
  122. var DataInputOutputAssociationIcon = function DataInputOutputAssociationIcon(props) {
  123. return jsxs("svg", {
  124. ...props,
  125. children: [jsx("path", {
  126. stroke: "#000",
  127. strokeWidth: "2",
  128. strokeLinecap: "round",
  129. strokeDasharray: "1.1,4.3",
  130. d: "M1.5 30.5 27 5"
  131. }), jsx("path", {
  132. d: "M31.803.197 26.5 16.107l-1.52-1.52 3.783-11.35-11.35 3.783-1.52-1.52z"
  133. })]
  134. });
  135. };
  136. DataInputOutputAssociationIcon.defaultProps = {
  137. width: "32",
  138. height: "32",
  139. xmlns: "http://www.w3.org/2000/svg"
  140. };
  141. var DataInputIcon = function DataInputIcon(props) {
  142. return jsx("svg", {
  143. ...props,
  144. children: jsx("path", {
  145. 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"
  146. })
  147. });
  148. };
  149. DataInputIcon.defaultProps = {
  150. xmlns: "http://www.w3.org/2000/svg",
  151. width: "32",
  152. height: "32"
  153. };
  154. var DataObjectIcon = function DataObjectIcon(props) {
  155. return jsx("svg", {
  156. ...props,
  157. children: jsx("path", {
  158. 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"
  159. })
  160. });
  161. };
  162. DataObjectIcon.defaultProps = {
  163. xmlns: "http://www.w3.org/2000/svg",
  164. width: "32",
  165. height: "32"
  166. };
  167. var DataOutputIcon = function DataOutputIcon(props) {
  168. return jsx("svg", {
  169. ...props,
  170. children: jsx("path", {
  171. 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"
  172. })
  173. });
  174. };
  175. DataOutputIcon.defaultProps = {
  176. xmlns: "http://www.w3.org/2000/svg",
  177. width: "32",
  178. height: "32"
  179. };
  180. var DataStoreIcon = function DataStoreIcon(props) {
  181. return jsx("svg", {
  182. ...props,
  183. children: jsx("path", {
  184. 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"
  185. })
  186. });
  187. };
  188. DataStoreIcon.defaultProps = {
  189. xmlns: "http://www.w3.org/2000/svg",
  190. width: "32",
  191. height: "32"
  192. };
  193. var DefaultFlowIcon = function DefaultFlowIcon(props) {
  194. return jsx("svg", {
  195. ...props,
  196. children: jsx("path", {
  197. 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"
  198. })
  199. });
  200. };
  201. DefaultFlowIcon.defaultProps = {
  202. xmlns: "http://www.w3.org/2000/svg",
  203. width: "32",
  204. height: "32"
  205. };
  206. var EndEventCancelIcon = function EndEventCancelIcon(props) {
  207. return jsx("svg", {
  208. ...props,
  209. children: jsx("path", {
  210. 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"
  211. })
  212. });
  213. };
  214. EndEventCancelIcon.defaultProps = {
  215. xmlns: "http://www.w3.org/2000/svg",
  216. width: "32",
  217. height: "32"
  218. };
  219. var EndEventCompensationIcon = function EndEventCompensationIcon(props) {
  220. return jsx("svg", {
  221. ...props,
  222. children: jsx("path", {
  223. 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"
  224. })
  225. });
  226. };
  227. EndEventCompensationIcon.defaultProps = {
  228. xmlns: "http://www.w3.org/2000/svg",
  229. width: "32",
  230. height: "32"
  231. };
  232. var EndEventErrorIcon = function EndEventErrorIcon(props) {
  233. return jsx("svg", {
  234. ...props,
  235. children: jsx("path", {
  236. 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"
  237. })
  238. });
  239. };
  240. EndEventErrorIcon.defaultProps = {
  241. xmlns: "http://www.w3.org/2000/svg",
  242. width: "32",
  243. height: "32"
  244. };
  245. var EndEventEscalationIcon = function EndEventEscalationIcon(props) {
  246. return jsx("svg", {
  247. ...props,
  248. children: jsx("path", {
  249. 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"
  250. })
  251. });
  252. };
  253. EndEventEscalationIcon.defaultProps = {
  254. xmlns: "http://www.w3.org/2000/svg",
  255. width: "32",
  256. height: "32"
  257. };
  258. var EndEventLinkIcon = function EndEventLinkIcon(props) {
  259. return jsx("svg", {
  260. ...props,
  261. children: jsx("path", {
  262. 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"
  263. })
  264. });
  265. };
  266. EndEventLinkIcon.defaultProps = {
  267. xmlns: "http://www.w3.org/2000/svg",
  268. width: "32",
  269. height: "32"
  270. };
  271. var EndEventMessageIcon = function EndEventMessageIcon(props) {
  272. return jsx("svg", {
  273. ...props,
  274. children: jsx("path", {
  275. 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"
  276. })
  277. });
  278. };
  279. EndEventMessageIcon.defaultProps = {
  280. xmlns: "http://www.w3.org/2000/svg",
  281. width: "32",
  282. height: "32"
  283. };
  284. var EndEventMultipleIcon = function EndEventMultipleIcon(props) {
  285. return jsx("svg", {
  286. ...props,
  287. children: jsx("path", {
  288. 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"
  289. })
  290. });
  291. };
  292. EndEventMultipleIcon.defaultProps = {
  293. xmlns: "http://www.w3.org/2000/svg",
  294. width: "32",
  295. height: "32"
  296. };
  297. var EndEventNoneIcon = function EndEventNoneIcon(props) {
  298. return jsx("svg", {
  299. ...props,
  300. children: jsx("path", {
  301. 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"
  302. })
  303. });
  304. };
  305. EndEventNoneIcon.defaultProps = {
  306. xmlns: "http://www.w3.org/2000/svg",
  307. width: "32",
  308. height: "32"
  309. };
  310. var EndEventSignalIcon = function EndEventSignalIcon(props) {
  311. return jsx("svg", {
  312. ...props,
  313. children: jsx("path", {
  314. 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"
  315. })
  316. });
  317. };
  318. EndEventSignalIcon.defaultProps = {
  319. xmlns: "http://www.w3.org/2000/svg",
  320. width: "32",
  321. height: "32"
  322. };
  323. var EndEventTerminateIcon = function EndEventTerminateIcon(props) {
  324. return jsx("svg", {
  325. ...props,
  326. children: jsx("path", {
  327. 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"
  328. })
  329. });
  330. };
  331. EndEventTerminateIcon.defaultProps = {
  332. xmlns: "http://www.w3.org/2000/svg",
  333. width: "32",
  334. height: "32"
  335. };
  336. var EventSubProcessExpandedIcon = function EventSubProcessExpandedIcon(props) {
  337. return jsx("svg", {
  338. ...props,
  339. children: jsx("path", {
  340. 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",
  341. opacity: ".97"
  342. })
  343. });
  344. };
  345. EventSubProcessExpandedIcon.defaultProps = {
  346. xmlns: "http://www.w3.org/2000/svg",
  347. width: "32",
  348. height: "32"
  349. };
  350. var GatewayComplexIcon = function GatewayComplexIcon(props) {
  351. return jsx("svg", {
  352. ...props,
  353. children: jsx("path", {
  354. 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"
  355. })
  356. });
  357. };
  358. GatewayComplexIcon.defaultProps = {
  359. xmlns: "http://www.w3.org/2000/svg",
  360. width: "32",
  361. height: "32"
  362. };
  363. var GatewayEventBasedIcon = function GatewayEventBasedIcon(props) {
  364. return jsx("svg", {
  365. ...props,
  366. children: jsx("path", {
  367. 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"
  368. })
  369. });
  370. };
  371. GatewayEventBasedIcon.defaultProps = {
  372. xmlns: "http://www.w3.org/2000/svg",
  373. width: "32",
  374. height: "32"
  375. };
  376. var GatewayNoneIcon = function GatewayNoneIcon(props) {
  377. return jsx("svg", {
  378. ...props,
  379. children: jsx("path", {
  380. 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"
  381. })
  382. });
  383. };
  384. GatewayNoneIcon.defaultProps = {
  385. xmlns: "http://www.w3.org/2000/svg",
  386. width: "32",
  387. height: "32"
  388. };
  389. var GatewayOrIcon = function GatewayOrIcon(props) {
  390. return jsx("svg", {
  391. ...props,
  392. children: jsx("path", {
  393. 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"
  394. })
  395. });
  396. };
  397. GatewayOrIcon.defaultProps = {
  398. xmlns: "http://www.w3.org/2000/svg",
  399. width: "32",
  400. height: "32"
  401. };
  402. var GatewayParallelIcon = function GatewayParallelIcon(props) {
  403. return jsx("svg", {
  404. ...props,
  405. children: jsx("path", {
  406. 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"
  407. })
  408. });
  409. };
  410. GatewayParallelIcon.defaultProps = {
  411. xmlns: "http://www.w3.org/2000/svg",
  412. width: "32",
  413. height: "32"
  414. };
  415. var GatewayXorIcon = function GatewayXorIcon(props) {
  416. return jsx("svg", {
  417. ...props,
  418. children: jsx("path", {
  419. 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"
  420. })
  421. });
  422. };
  423. GatewayXorIcon.defaultProps = {
  424. xmlns: "http://www.w3.org/2000/svg",
  425. width: "32",
  426. height: "32"
  427. };
  428. var GroupIcon = function GroupIcon(props) {
  429. return jsx("svg", {
  430. ...props,
  431. children: jsx("path", {
  432. 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"
  433. })
  434. });
  435. };
  436. GroupIcon.defaultProps = {
  437. xmlns: "http://www.w3.org/2000/svg",
  438. width: "32",
  439. height: "32"
  440. };
  441. var IntermediateEventCatchCancelIcon = function IntermediateEventCatchCancelIcon(props) {
  442. return jsx("svg", {
  443. ...props,
  444. children: jsx("path", {
  445. 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"
  446. })
  447. });
  448. };
  449. IntermediateEventCatchCancelIcon.defaultProps = {
  450. xmlns: "http://www.w3.org/2000/svg",
  451. width: "32",
  452. height: "32"
  453. };
  454. var IntermediateEventCatchCompensationIcon = function IntermediateEventCatchCompensationIcon(props) {
  455. return jsx("svg", {
  456. ...props,
  457. children: jsx("path", {
  458. 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"
  459. })
  460. });
  461. };
  462. IntermediateEventCatchCompensationIcon.defaultProps = {
  463. xmlns: "http://www.w3.org/2000/svg",
  464. width: "32",
  465. height: "32"
  466. };
  467. var IntermediateEventCatchConditionIcon = function IntermediateEventCatchConditionIcon(props) {
  468. return jsx("svg", {
  469. ...props,
  470. children: jsx("path", {
  471. 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"
  472. })
  473. });
  474. };
  475. IntermediateEventCatchConditionIcon.defaultProps = {
  476. xmlns: "http://www.w3.org/2000/svg",
  477. width: "32",
  478. height: "32"
  479. };
  480. var IntermediateEventCatchErrorIcon = function IntermediateEventCatchErrorIcon(props) {
  481. return jsx("svg", {
  482. ...props,
  483. children: jsx("path", {
  484. 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"
  485. })
  486. });
  487. };
  488. IntermediateEventCatchErrorIcon.defaultProps = {
  489. xmlns: "http://www.w3.org/2000/svg",
  490. width: "32",
  491. height: "32"
  492. };
  493. var IntermediateEventCatchEscalationIcon = function IntermediateEventCatchEscalationIcon(props) {
  494. return jsx("svg", {
  495. ...props,
  496. children: jsx("path", {
  497. 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"
  498. })
  499. });
  500. };
  501. IntermediateEventCatchEscalationIcon.defaultProps = {
  502. xmlns: "http://www.w3.org/2000/svg",
  503. width: "32",
  504. height: "32"
  505. };
  506. var IntermediateEventCatchLinkIcon = function IntermediateEventCatchLinkIcon(props) {
  507. return jsx("svg", {
  508. ...props,
  509. children: jsx("path", {
  510. 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"
  511. })
  512. });
  513. };
  514. IntermediateEventCatchLinkIcon.defaultProps = {
  515. xmlns: "http://www.w3.org/2000/svg",
  516. width: "32",
  517. height: "32"
  518. };
  519. var IntermediateEventCatchMessageIcon = function IntermediateEventCatchMessageIcon(props) {
  520. return jsx("svg", {
  521. ...props,
  522. children: jsx("path", {
  523. 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"
  524. })
  525. });
  526. };
  527. IntermediateEventCatchMessageIcon.defaultProps = {
  528. xmlns: "http://www.w3.org/2000/svg",
  529. width: "32",
  530. height: "32"
  531. };
  532. var IntermediateEventCatchMultipleIcon = function IntermediateEventCatchMultipleIcon(props) {
  533. return jsx("svg", {
  534. ...props,
  535. children: jsx("path", {
  536. 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"
  537. })
  538. });
  539. };
  540. IntermediateEventCatchMultipleIcon.defaultProps = {
  541. xmlns: "http://www.w3.org/2000/svg",
  542. width: "32",
  543. height: "32"
  544. };
  545. var IntermediateEventCatchNonInterruptingConditionIcon = function IntermediateEventCatchNonInterruptingConditionIcon(props) {
  546. return jsx("svg", {
  547. ...props,
  548. children: jsx("path", {
  549. 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"
  550. })
  551. });
  552. };
  553. IntermediateEventCatchNonInterruptingConditionIcon.defaultProps = {
  554. xmlns: "http://www.w3.org/2000/svg",
  555. width: "32",
  556. height: "32"
  557. };
  558. var IntermediateEventCatchNonInterruptingEscalationIcon = function IntermediateEventCatchNonInterruptingEscalationIcon(props) {
  559. return jsx("svg", {
  560. ...props,
  561. children: jsx("path", {
  562. 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"
  563. })
  564. });
  565. };
  566. IntermediateEventCatchNonInterruptingEscalationIcon.defaultProps = {
  567. xmlns: "http://www.w3.org/2000/svg",
  568. width: "32",
  569. height: "32"
  570. };
  571. var IntermediateEventCatchNonInterruptingMessageIcon = function IntermediateEventCatchNonInterruptingMessageIcon(props) {
  572. return jsx("svg", {
  573. ...props,
  574. children: jsx("path", {
  575. 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"
  576. })
  577. });
  578. };
  579. IntermediateEventCatchNonInterruptingMessageIcon.defaultProps = {
  580. xmlns: "http://www.w3.org/2000/svg",
  581. width: "32",
  582. height: "32"
  583. };
  584. var IntermediateEventCatchNonInterruptingMultipleIcon = function IntermediateEventCatchNonInterruptingMultipleIcon(props) {
  585. return jsx("svg", {
  586. ...props,
  587. children: jsx("path", {
  588. 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"
  589. })
  590. });
  591. };
  592. IntermediateEventCatchNonInterruptingMultipleIcon.defaultProps = {
  593. xmlns: "http://www.w3.org/2000/svg",
  594. width: "32",
  595. height: "32"
  596. };
  597. var IntermediateEventCatchNonInterruptingParallelIcon = function IntermediateEventCatchNonInterruptingParallelIcon(props) {
  598. return jsx("svg", {
  599. ...props,
  600. children: jsx("path", {
  601. 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",
  602. opacity: ".98"
  603. })
  604. });
  605. };
  606. IntermediateEventCatchNonInterruptingParallelIcon.defaultProps = {
  607. xmlns: "http://www.w3.org/2000/svg",
  608. width: "32",
  609. height: "32"
  610. };
  611. var IntermediateEventCatchNonInterruptingSignalIcon = function IntermediateEventCatchNonInterruptingSignalIcon(props) {
  612. return jsx("svg", {
  613. ...props,
  614. children: jsx("path", {
  615. 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"
  616. })
  617. });
  618. };
  619. IntermediateEventCatchNonInterruptingSignalIcon.defaultProps = {
  620. xmlns: "http://www.w3.org/2000/svg",
  621. width: "32",
  622. height: "32"
  623. };
  624. var IntermediateEventCatchNonInterruptingTimerIcon = function IntermediateEventCatchNonInterruptingTimerIcon(props) {
  625. return jsx("svg", {
  626. ...props,
  627. children: jsx("path", {
  628. 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"
  629. })
  630. });
  631. };
  632. IntermediateEventCatchNonInterruptingTimerIcon.defaultProps = {
  633. xmlns: "http://www.w3.org/2000/svg",
  634. width: "32",
  635. height: "32"
  636. };
  637. var IntermediateEventCatchParallelMultipleIcon = function IntermediateEventCatchParallelMultipleIcon(props) {
  638. return jsx("svg", {
  639. ...props,
  640. children: jsx("path", {
  641. 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"
  642. })
  643. });
  644. };
  645. IntermediateEventCatchParallelMultipleIcon.defaultProps = {
  646. xmlns: "http://www.w3.org/2000/svg",
  647. width: "32",
  648. height: "32"
  649. };
  650. var IntermediateEventCatchSignalIcon = function IntermediateEventCatchSignalIcon(props) {
  651. return jsx("svg", {
  652. ...props,
  653. children: jsx("path", {
  654. 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"
  655. })
  656. });
  657. };
  658. IntermediateEventCatchSignalIcon.defaultProps = {
  659. xmlns: "http://www.w3.org/2000/svg",
  660. width: "32",
  661. height: "32"
  662. };
  663. var IntermediateEventCatchTimerIcon = function IntermediateEventCatchTimerIcon(props) {
  664. return jsx("svg", {
  665. ...props,
  666. children: jsx("path", {
  667. 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"
  668. })
  669. });
  670. };
  671. IntermediateEventCatchTimerIcon.defaultProps = {
  672. xmlns: "http://www.w3.org/2000/svg",
  673. width: "32",
  674. height: "32"
  675. };
  676. var IntermediateEventNoneIcon = function IntermediateEventNoneIcon(props) {
  677. return jsx("svg", {
  678. ...props,
  679. children: jsx("path", {
  680. 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"
  681. })
  682. });
  683. };
  684. IntermediateEventNoneIcon.defaultProps = {
  685. xmlns: "http://www.w3.org/2000/svg",
  686. width: "32",
  687. height: "32"
  688. };
  689. var IntermediateEventThrowCompensationIcon = function IntermediateEventThrowCompensationIcon(props) {
  690. return jsx("svg", {
  691. ...props,
  692. children: jsx("path", {
  693. 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"
  694. })
  695. });
  696. };
  697. IntermediateEventThrowCompensationIcon.defaultProps = {
  698. xmlns: "http://www.w3.org/2000/svg",
  699. width: "32",
  700. height: "32"
  701. };
  702. var IntermediateEventThrowEscalationIcon = function IntermediateEventThrowEscalationIcon(props) {
  703. return jsx("svg", {
  704. ...props,
  705. children: jsx("path", {
  706. 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"
  707. })
  708. });
  709. };
  710. IntermediateEventThrowEscalationIcon.defaultProps = {
  711. xmlns: "http://www.w3.org/2000/svg",
  712. width: "32",
  713. height: "32"
  714. };
  715. var IntermediateEventThrowLinkIcon = function IntermediateEventThrowLinkIcon(props) {
  716. return jsx("svg", {
  717. ...props,
  718. children: jsx("path", {
  719. 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"
  720. })
  721. });
  722. };
  723. IntermediateEventThrowLinkIcon.defaultProps = {
  724. xmlns: "http://www.w3.org/2000/svg",
  725. width: "32",
  726. height: "32"
  727. };
  728. var IntermediateEventThrowMessageIcon = function IntermediateEventThrowMessageIcon(props) {
  729. return jsx("svg", {
  730. ...props,
  731. children: jsx("path", {
  732. 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"
  733. })
  734. });
  735. };
  736. IntermediateEventThrowMessageIcon.defaultProps = {
  737. xmlns: "http://www.w3.org/2000/svg",
  738. width: "32",
  739. height: "32"
  740. };
  741. var IntermediateEventThrowMultipleIcon = function IntermediateEventThrowMultipleIcon(props) {
  742. return jsx("svg", {
  743. ...props,
  744. children: jsx("path", {
  745. 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"
  746. })
  747. });
  748. };
  749. IntermediateEventThrowMultipleIcon.defaultProps = {
  750. xmlns: "http://www.w3.org/2000/svg",
  751. width: "32",
  752. height: "32"
  753. };
  754. var IntermediateEventThrowSignalIcon = function IntermediateEventThrowSignalIcon(props) {
  755. return jsx("svg", {
  756. ...props,
  757. children: jsx("path", {
  758. 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"
  759. })
  760. });
  761. };
  762. IntermediateEventThrowSignalIcon.defaultProps = {
  763. xmlns: "http://www.w3.org/2000/svg",
  764. width: "32",
  765. height: "32"
  766. };
  767. var LaneIcon = function LaneIcon(props) {
  768. return jsx("svg", {
  769. ...props,
  770. children: jsx("path", {
  771. d: "M0 7v18.62h32V7H0Zm1.655 17.056V8.684h28.62v15.372H1.656Z"
  772. })
  773. });
  774. };
  775. LaneIcon.defaultProps = {
  776. xmlns: "http://www.w3.org/2000/svg",
  777. width: "32",
  778. height: "32"
  779. };
  780. var ManualTaskIcon = function ManualTaskIcon(props) {
  781. return jsx("svg", {
  782. ...props,
  783. children: jsx("path", {
  784. 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"
  785. })
  786. });
  787. };
  788. ManualTaskIcon.defaultProps = {
  789. xmlns: "http://www.w3.org/2000/svg",
  790. width: "32",
  791. height: "32"
  792. };
  793. var MessageFlowIcon = function MessageFlowIcon(props) {
  794. return jsx("svg", {
  795. ...props,
  796. children: jsx("path", {
  797. 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"
  798. })
  799. });
  800. };
  801. MessageFlowIcon.defaultProps = {
  802. xmlns: "http://www.w3.org/2000/svg",
  803. width: "32",
  804. height: "32"
  805. };
  806. var ParticipantIcon = function ParticipantIcon(props) {
  807. return jsx("svg", {
  808. ...props,
  809. children: jsx("path", {
  810. d: "M0 5v22.069h32V5H0Zm30.276 1.684v18.82H6.62V6.684h23.655Zm-28.62 0h3.31v18.82h-3.31V6.684Z"
  811. })
  812. });
  813. };
  814. ParticipantIcon.defaultProps = {
  815. xmlns: "http://www.w3.org/2000/svg",
  816. width: "32",
  817. height: "32"
  818. };
  819. var ProcessIcon = function ProcessIcon(props) {
  820. return jsx("svg", {
  821. ...props,
  822. children: jsx("path", {
  823. fillRule: "evenodd",
  824. 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"
  825. })
  826. });
  827. };
  828. ProcessIcon.defaultProps = {
  829. xmlns: "http://www.w3.org/2000/svg",
  830. width: "32",
  831. height: "32"
  832. };
  833. var ReceiveTaskIcon = function ReceiveTaskIcon(props) {
  834. return jsx("svg", {
  835. ...props,
  836. children: jsx("path", {
  837. 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"
  838. })
  839. });
  840. };
  841. ReceiveTaskIcon.defaultProps = {
  842. xmlns: "http://www.w3.org/2000/svg",
  843. width: "32",
  844. height: "32"
  845. };
  846. var ScriptTaskIcon = function ScriptTaskIcon(props) {
  847. return jsx("svg", {
  848. ...props,
  849. children: jsx("path", {
  850. 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"
  851. })
  852. });
  853. };
  854. ScriptTaskIcon.defaultProps = {
  855. xmlns: "http://www.w3.org/2000/svg",
  856. width: "32",
  857. height: "32"
  858. };
  859. var SendTaskIcon = function SendTaskIcon(props) {
  860. return jsx("svg", {
  861. ...props,
  862. children: jsx("path", {
  863. 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"
  864. })
  865. });
  866. };
  867. SendTaskIcon.defaultProps = {
  868. xmlns: "http://www.w3.org/2000/svg",
  869. width: "32",
  870. height: "32"
  871. };
  872. var ServiceTaskIcon = function ServiceTaskIcon(props) {
  873. return jsx("svg", {
  874. ...props,
  875. children: jsx("path", {
  876. 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"
  877. })
  878. });
  879. };
  880. ServiceTaskIcon.defaultProps = {
  881. xmlns: "http://www.w3.org/2000/svg",
  882. width: "32",
  883. height: "32"
  884. };
  885. var StartEventCompensationIcon = function StartEventCompensationIcon(props) {
  886. return jsx("svg", {
  887. ...props,
  888. children: jsx("path", {
  889. 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"
  890. })
  891. });
  892. };
  893. StartEventCompensationIcon.defaultProps = {
  894. xmlns: "http://www.w3.org/2000/svg",
  895. width: "32",
  896. height: "32"
  897. };
  898. var StartEventConditionIcon = function StartEventConditionIcon(props) {
  899. return jsx("svg", {
  900. ...props,
  901. children: jsx("path", {
  902. 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"
  903. })
  904. });
  905. };
  906. StartEventConditionIcon.defaultProps = {
  907. xmlns: "http://www.w3.org/2000/svg",
  908. width: "32",
  909. height: "32"
  910. };
  911. var StartEventErrorIcon = function StartEventErrorIcon(props) {
  912. return jsx("svg", {
  913. ...props,
  914. children: jsx("path", {
  915. 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"
  916. })
  917. });
  918. };
  919. StartEventErrorIcon.defaultProps = {
  920. xmlns: "http://www.w3.org/2000/svg",
  921. width: "32",
  922. height: "32"
  923. };
  924. var StartEventEscalationIcon = function StartEventEscalationIcon(props) {
  925. return jsx("svg", {
  926. ...props,
  927. children: jsx("path", {
  928. 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"
  929. })
  930. });
  931. };
  932. StartEventEscalationIcon.defaultProps = {
  933. xmlns: "http://www.w3.org/2000/svg",
  934. width: "32",
  935. height: "32"
  936. };
  937. var StartEventMessageIcon = function StartEventMessageIcon(props) {
  938. return jsx("svg", {
  939. ...props,
  940. children: jsx("path", {
  941. 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"
  942. })
  943. });
  944. };
  945. StartEventMessageIcon.defaultProps = {
  946. xmlns: "http://www.w3.org/2000/svg",
  947. width: "32",
  948. height: "32"
  949. };
  950. var StartEventMultipleIcon = function StartEventMultipleIcon(props) {
  951. return jsx("svg", {
  952. ...props,
  953. children: jsx("path", {
  954. 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"
  955. })
  956. });
  957. };
  958. StartEventMultipleIcon.defaultProps = {
  959. xmlns: "http://www.w3.org/2000/svg",
  960. width: "32",
  961. height: "32"
  962. };
  963. var StartEventNonInterruptingConditionIcon = function StartEventNonInterruptingConditionIcon(props) {
  964. return jsx("svg", {
  965. ...props,
  966. children: jsx("path", {
  967. 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"
  968. })
  969. });
  970. };
  971. StartEventNonInterruptingConditionIcon.defaultProps = {
  972. xmlns: "http://www.w3.org/2000/svg",
  973. width: "32",
  974. height: "32"
  975. };
  976. var StartEventNonInterruptingEscalationIcon = function StartEventNonInterruptingEscalationIcon(props) {
  977. return jsx("svg", {
  978. ...props,
  979. children: jsx("path", {
  980. 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"
  981. })
  982. });
  983. };
  984. StartEventNonInterruptingEscalationIcon.defaultProps = {
  985. xmlns: "http://www.w3.org/2000/svg",
  986. width: "32",
  987. height: "32"
  988. };
  989. var StartEventNonInterruptingMessageIcon = function StartEventNonInterruptingMessageIcon(props) {
  990. return jsx("svg", {
  991. ...props,
  992. children: jsx("path", {
  993. 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"
  994. })
  995. });
  996. };
  997. StartEventNonInterruptingMessageIcon.defaultProps = {
  998. xmlns: "http://www.w3.org/2000/svg",
  999. width: "32",
  1000. height: "32"
  1001. };
  1002. var StartEventNonInterruptingMultipleIcon = function StartEventNonInterruptingMultipleIcon(props) {
  1003. return jsx("svg", {
  1004. ...props,
  1005. children: jsx("path", {
  1006. 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"
  1007. })
  1008. });
  1009. };
  1010. StartEventNonInterruptingMultipleIcon.defaultProps = {
  1011. xmlns: "http://www.w3.org/2000/svg",
  1012. width: "32",
  1013. height: "32"
  1014. };
  1015. var StartEventNonInterruptingParallelMultipleIcon = function StartEventNonInterruptingParallelMultipleIcon(props) {
  1016. return jsx("svg", {
  1017. ...props,
  1018. children: jsx("path", {
  1019. 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",
  1020. opacity: ".98"
  1021. })
  1022. });
  1023. };
  1024. StartEventNonInterruptingParallelMultipleIcon.defaultProps = {
  1025. xmlns: "http://www.w3.org/2000/svg",
  1026. width: "32",
  1027. height: "32"
  1028. };
  1029. var StartEventNonInterruptingSignalIcon = function StartEventNonInterruptingSignalIcon(props) {
  1030. return jsx("svg", {
  1031. ...props,
  1032. children: jsx("path", {
  1033. 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"
  1034. })
  1035. });
  1036. };
  1037. StartEventNonInterruptingSignalIcon.defaultProps = {
  1038. xmlns: "http://www.w3.org/2000/svg",
  1039. width: "32",
  1040. height: "32"
  1041. };
  1042. var StartEventNonInterruptingTimerIcon = function StartEventNonInterruptingTimerIcon(props) {
  1043. return jsx("svg", {
  1044. ...props,
  1045. children: jsx("path", {
  1046. 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"
  1047. })
  1048. });
  1049. };
  1050. StartEventNonInterruptingTimerIcon.defaultProps = {
  1051. xmlns: "http://www.w3.org/2000/svg",
  1052. width: "32",
  1053. height: "32"
  1054. };
  1055. var StartEventNoneIcon = function StartEventNoneIcon(props) {
  1056. return jsx("svg", {
  1057. ...props,
  1058. children: jsx("path", {
  1059. 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"
  1060. })
  1061. });
  1062. };
  1063. StartEventNoneIcon.defaultProps = {
  1064. xmlns: "http://www.w3.org/2000/svg",
  1065. width: "32",
  1066. height: "32"
  1067. };
  1068. var StartEventParallelMultipleIcon = function StartEventParallelMultipleIcon(props) {
  1069. return jsx("svg", {
  1070. ...props,
  1071. children: jsx("path", {
  1072. 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"
  1073. })
  1074. });
  1075. };
  1076. StartEventParallelMultipleIcon.defaultProps = {
  1077. xmlns: "http://www.w3.org/2000/svg",
  1078. width: "32",
  1079. height: "32"
  1080. };
  1081. var StartEventSignalIcon = function StartEventSignalIcon(props) {
  1082. return jsx("svg", {
  1083. ...props,
  1084. children: jsx("path", {
  1085. 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"
  1086. })
  1087. });
  1088. };
  1089. StartEventSignalIcon.defaultProps = {
  1090. xmlns: "http://www.w3.org/2000/svg",
  1091. width: "32",
  1092. height: "32"
  1093. };
  1094. var StartEventTimerIcon = function StartEventTimerIcon(props) {
  1095. return jsx("svg", {
  1096. ...props,
  1097. children: jsx("path", {
  1098. 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"
  1099. })
  1100. });
  1101. };
  1102. StartEventTimerIcon.defaultProps = {
  1103. xmlns: "http://www.w3.org/2000/svg",
  1104. width: "32",
  1105. height: "32"
  1106. };
  1107. var SubprocessCollapsedIcon = function SubprocessCollapsedIcon(props) {
  1108. return jsx("svg", {
  1109. ...props,
  1110. children: jsx("path", {
  1111. 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"
  1112. })
  1113. });
  1114. };
  1115. SubprocessCollapsedIcon.defaultProps = {
  1116. xmlns: "http://www.w3.org/2000/svg",
  1117. width: "32",
  1118. height: "32"
  1119. };
  1120. var SubprocessExpandedIcon = function SubprocessExpandedIcon(props) {
  1121. return jsx("svg", {
  1122. ...props,
  1123. children: jsx("path", {
  1124. 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"
  1125. })
  1126. });
  1127. };
  1128. SubprocessExpandedIcon.defaultProps = {
  1129. xmlns: "http://www.w3.org/2000/svg",
  1130. width: "32",
  1131. height: "32"
  1132. };
  1133. var TaskNoneIcon = function TaskNoneIcon(props) {
  1134. return jsx("svg", {
  1135. ...props,
  1136. children: jsx("path", {
  1137. 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"
  1138. })
  1139. });
  1140. };
  1141. TaskNoneIcon.defaultProps = {
  1142. xmlns: "http://www.w3.org/2000/svg",
  1143. width: "32",
  1144. height: "32"
  1145. };
  1146. var TextAnnotationicon = function TextAnnotationicon(props) {
  1147. return jsx("svg", {
  1148. ...props,
  1149. children: jsx("path", {
  1150. 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"
  1151. })
  1152. });
  1153. };
  1154. TextAnnotationicon.defaultProps = {
  1155. xmlns: "http://www.w3.org/2000/svg",
  1156. width: "32",
  1157. height: "32"
  1158. };
  1159. var TransactionIcon = function TransactionIcon(props) {
  1160. return jsx("svg", {
  1161. ...props,
  1162. children: jsx("path", {
  1163. 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"
  1164. })
  1165. });
  1166. };
  1167. TransactionIcon.defaultProps = {
  1168. xmlns: "http://www.w3.org/2000/svg",
  1169. width: "32",
  1170. height: "32"
  1171. };
  1172. var UserTaskIcon = function UserTaskIcon(props) {
  1173. return jsx("svg", {
  1174. ...props,
  1175. children: jsx("path", {
  1176. fillRule: "evenodd",
  1177. 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"
  1178. })
  1179. });
  1180. };
  1181. UserTaskIcon.defaultProps = {
  1182. xmlns: "http://www.w3.org/2000/svg",
  1183. width: "32",
  1184. height: "32"
  1185. };
  1186. var iconsByType = {
  1187. 'Association': AssociationIcon,
  1188. 'BusinessRuleTask': BusinessRuleTaskIcon,
  1189. 'CallActivity': CallActivityIcon,
  1190. 'Collaboration': CollaborationIcon,
  1191. 'ConditionalFlow': ConditionalFlowIcon,
  1192. 'SequenceFlow': ConnectionIcon,
  1193. 'DataInput': DataInputIcon,
  1194. 'DataInputAssociation': DataInputOutputAssociationIcon,
  1195. 'DataOutput': DataOutputIcon,
  1196. 'DataOutputAssociation': DataInputOutputAssociationIcon,
  1197. 'DataObjectReference': DataObjectIcon,
  1198. 'DataStoreReference': DataStoreIcon,
  1199. 'DefaultFlow': DefaultFlowIcon,
  1200. 'CancelEndEvent': EndEventCancelIcon,
  1201. 'CompensateEndEvent': EndEventCompensationIcon,
  1202. 'ErrorEndEvent': EndEventErrorIcon,
  1203. 'EscalationEndEvent': EndEventEscalationIcon,
  1204. 'LinkEndEvent': EndEventLinkIcon,
  1205. 'MessageEndEvent': EndEventMessageIcon,
  1206. 'MultipleEndEvent': EndEventMultipleIcon,
  1207. 'EndEvent': EndEventNoneIcon,
  1208. 'SignalEndEvent': EndEventSignalIcon,
  1209. 'TerminateEndEvent': EndEventTerminateIcon,
  1210. 'EventSubProcess': EventSubProcessExpandedIcon,
  1211. 'ComplexGateway': GatewayComplexIcon,
  1212. 'EventBasedGateway': GatewayEventBasedIcon,
  1213. 'ExclusiveGateway': GatewayXorIcon,
  1214. 'Gateway': GatewayNoneIcon,
  1215. 'InclusiveGateway': GatewayOrIcon,
  1216. 'ParallelGateway': GatewayParallelIcon,
  1217. 'Group': GroupIcon,
  1218. 'CancelIntermediateCatchEvent': IntermediateEventCatchCancelIcon,
  1219. 'CompensateIntermediateCatchEvent': IntermediateEventCatchCompensationIcon,
  1220. 'ConditionalIntermediateCatchEvent': IntermediateEventCatchConditionIcon,
  1221. 'ErrorIntermediateCatchEvent': IntermediateEventCatchErrorIcon,
  1222. 'EscalationIntermediateCatchEvent': IntermediateEventCatchEscalationIcon,
  1223. 'LinkIntermediateCatchEvent': IntermediateEventCatchLinkIcon,
  1224. 'MessageIntermediateCatchEvent': IntermediateEventCatchMessageIcon,
  1225. 'MultipleIntermediateCatchEvent': IntermediateEventCatchMultipleIcon,
  1226. 'ConditionalIntermediateCatchEventNonInterrupting': IntermediateEventCatchNonInterruptingConditionIcon,
  1227. 'EscalationIntermediateCatchEventNonInterrupting': IntermediateEventCatchNonInterruptingEscalationIcon,
  1228. 'MessageIntermediateCatchEventNonInterrupting': IntermediateEventCatchNonInterruptingMessageIcon,
  1229. 'MultipleIntermediateCatchEventNonInterrupting': IntermediateEventCatchNonInterruptingMultipleIcon,
  1230. 'ParallelIntermediateCatchEventNonInterrupting': IntermediateEventCatchNonInterruptingParallelIcon,
  1231. 'SignalIntermediateCatchEventNonInterrupting': IntermediateEventCatchNonInterruptingSignalIcon,
  1232. 'TimerIntermediateCatchEventNonInterrupting': IntermediateEventCatchNonInterruptingTimerIcon,
  1233. 'ParallelMultipleIntermediateCatchEvent': IntermediateEventCatchParallelMultipleIcon,
  1234. 'SignalIntermediateCatchEvent': IntermediateEventCatchSignalIcon,
  1235. 'TimerIntermediateCatchEvent': IntermediateEventCatchTimerIcon,
  1236. 'IntermediateThrowEvent': IntermediateEventNoneIcon,
  1237. 'CompensateIntermediateThrowEvent': IntermediateEventThrowCompensationIcon,
  1238. 'EscalationIntermediateThrowEvent': IntermediateEventThrowEscalationIcon,
  1239. 'LinkIntermediateThrowEvent': IntermediateEventThrowLinkIcon,
  1240. 'MessageIntermediateThrowEvent': IntermediateEventThrowMessageIcon,
  1241. 'MultipleIntermediateThrowEvent': IntermediateEventThrowMultipleIcon,
  1242. 'SignalIntermediateThrowEvent': IntermediateEventThrowSignalIcon,
  1243. 'Lane': LaneIcon,
  1244. 'ManualTask': ManualTaskIcon,
  1245. 'MessageFlow': MessageFlowIcon,
  1246. 'Participant': ParticipantIcon,
  1247. 'Process': ProcessIcon,
  1248. 'ReceiveTask': ReceiveTaskIcon,
  1249. 'ScriptTask': ScriptTaskIcon,
  1250. 'SendTask': SendTaskIcon,
  1251. 'ServiceTask': ServiceTaskIcon,
  1252. 'CompensateStartEvent': StartEventCompensationIcon,
  1253. 'ConditionalStartEvent': StartEventConditionIcon,
  1254. 'ErrorStartEvent': StartEventErrorIcon,
  1255. 'EscalationStartEvent': StartEventEscalationIcon,
  1256. 'MessageStartEvent': StartEventMessageIcon,
  1257. 'MultipleStartEvent': StartEventMultipleIcon,
  1258. 'ConditionalStartEventNonInterrupting': StartEventNonInterruptingConditionIcon,
  1259. 'EscalationStartEventNonInterrupting': StartEventNonInterruptingEscalationIcon,
  1260. 'MessageStartEventNonInterrupting': StartEventNonInterruptingMessageIcon,
  1261. 'MultipleStartEventNonInterrupting': StartEventNonInterruptingMultipleIcon,
  1262. 'ParallelMultipleStartEventNonInterrupting': StartEventNonInterruptingParallelMultipleIcon,
  1263. 'SignalStartEventNonInterrupting': StartEventNonInterruptingSignalIcon,
  1264. 'TimerStartEventNonInterrupting': StartEventNonInterruptingTimerIcon,
  1265. 'CancelBoundaryEvent': IntermediateEventCatchCancelIcon,
  1266. 'CompensateBoundaryEvent': IntermediateEventCatchCompensationIcon,
  1267. 'ConditionalBoundaryEvent': IntermediateEventCatchConditionIcon,
  1268. 'ErrorBoundaryEvent': IntermediateEventCatchErrorIcon,
  1269. 'EscalationBoundaryEvent': IntermediateEventCatchEscalationIcon,
  1270. 'LinkBoundaryEvent': IntermediateEventCatchLinkIcon,
  1271. 'MessageBoundaryEvent': IntermediateEventCatchMessageIcon,
  1272. 'MultipleBoundaryEvent': IntermediateEventCatchMultipleIcon,
  1273. 'BoundaryEvent': IntermediateEventNoneIcon,
  1274. 'ConditionalBoundaryEventNonInterrupting': IntermediateEventCatchNonInterruptingConditionIcon,
  1275. 'EscalationBoundaryEventNonInterrupting': IntermediateEventCatchNonInterruptingEscalationIcon,
  1276. 'MessageBoundaryEventNonInterrupting': IntermediateEventCatchNonInterruptingMessageIcon,
  1277. 'MultipleBoundaryEventNonInterrupting': IntermediateEventCatchNonInterruptingMultipleIcon,
  1278. 'ParallelBoundaryEventNonInterrupting': IntermediateEventCatchNonInterruptingParallelIcon,
  1279. 'SignalBoundaryEventNonInterrupting': IntermediateEventCatchNonInterruptingSignalIcon,
  1280. 'TimerBoundaryEventNonInterrupting': IntermediateEventCatchNonInterruptingTimerIcon,
  1281. 'ParallelMultipleBoundaryEvent': IntermediateEventCatchParallelMultipleIcon,
  1282. 'SignalBoundaryEvent': IntermediateEventCatchSignalIcon,
  1283. 'TimerBoundaryEvent': IntermediateEventCatchTimerIcon,
  1284. 'StartEvent': StartEventNoneIcon,
  1285. 'ParallelMultipleStartEvent': StartEventParallelMultipleIcon,
  1286. 'SignalStartEvent': StartEventSignalIcon,
  1287. 'TimerStartEvent': StartEventTimerIcon,
  1288. 'CollapsedSubProcess': SubprocessCollapsedIcon,
  1289. 'CollapsedAdHocSubProcess': SubprocessCollapsedIcon,
  1290. 'ExpandedSubProcess': SubprocessExpandedIcon,
  1291. 'ExpandedAdHocSubProcess': SubprocessExpandedIcon,
  1292. 'Task': TaskNoneIcon,
  1293. 'TextAnnotation': TextAnnotationicon,
  1294. 'Transaction': TransactionIcon,
  1295. 'UserTask': UserTaskIcon
  1296. };
  1297. function getConcreteType(element) {
  1298. const {
  1299. type: elementType
  1300. } = element;
  1301. let type = getRawType(elementType);
  1302. // (1) event definition types
  1303. const eventDefinition = getEventDefinition$2(element);
  1304. if (eventDefinition) {
  1305. type = `${getEventDefinitionPrefix(eventDefinition)}${type}`;
  1306. // (1.1) interrupting / non interrupting
  1307. if (is(element, 'bpmn:StartEvent') && !isInterrupting$1(element) || is(element, 'bpmn:BoundaryEvent') && !isCancelActivity(element)) {
  1308. type = `${type}NonInterrupting`;
  1309. }
  1310. return type;
  1311. }
  1312. // (2) sub process types
  1313. if (is(element, 'bpmn:SubProcess') && !is(element, 'bpmn:Transaction')) {
  1314. if (isEventSubProcess(element)) {
  1315. type = `Event${type}`;
  1316. } else {
  1317. const expanded = isExpanded(element) && !isPlane(element);
  1318. type = `${expanded ? 'Expanded' : 'Collapsed'}${type}`;
  1319. }
  1320. }
  1321. // (3) conditional + default flows
  1322. if (isDefaultFlow(element)) {
  1323. type = 'DefaultFlow';
  1324. }
  1325. if (isConditionalFlow(element)) {
  1326. type = 'ConditionalFlow';
  1327. }
  1328. return type;
  1329. }
  1330. const PanelHeaderProvider = {
  1331. getDocumentationRef: element => {
  1332. const elementTemplates = getTemplatesService();
  1333. if (elementTemplates) {
  1334. return getTemplateDocumentation(element, elementTemplates);
  1335. }
  1336. },
  1337. getElementLabel: element => {
  1338. if (is(element, 'bpmn:Process')) {
  1339. return getBusinessObject(element).name;
  1340. }
  1341. return getLabel(element);
  1342. },
  1343. getElementIcon: element => {
  1344. const concreteType = getConcreteType(element);
  1345. const elementTemplates = getTemplatesService();
  1346. if (elementTemplates) {
  1347. const template = getTemplate(element, elementTemplates);
  1348. if (template && template.icon) {
  1349. return () => jsx("img", {
  1350. class: "bio-properties-panel-header-template-icon",
  1351. width: "32",
  1352. height: "32",
  1353. src: template.icon.contents
  1354. });
  1355. }
  1356. }
  1357. return iconsByType[concreteType];
  1358. },
  1359. getTypeLabel: element => {
  1360. const elementTemplates = getTemplatesService();
  1361. if (elementTemplates) {
  1362. const template = getTemplate(element, elementTemplates);
  1363. if (template && template.name) {
  1364. return template.name;
  1365. }
  1366. }
  1367. const concreteType = getConcreteType(element);
  1368. return concreteType.replace(/(\B[A-Z])/g, ' $1').replace(/(\bNon Interrupting)/g, '($1)');
  1369. }
  1370. };
  1371. // helpers ///////////////////////
  1372. function isCancelActivity(element) {
  1373. const businessObject = getBusinessObject(element);
  1374. return businessObject && businessObject.cancelActivity !== false;
  1375. }
  1376. function getEventDefinition$2(element) {
  1377. const businessObject = getBusinessObject(element),
  1378. eventDefinitions = businessObject.eventDefinitions;
  1379. return eventDefinitions && eventDefinitions[0];
  1380. }
  1381. function getRawType(type) {
  1382. return type.split(':')[1];
  1383. }
  1384. function getEventDefinitionPrefix(eventDefinition) {
  1385. const rawType = getRawType(eventDefinition.$type);
  1386. return rawType.replace('EventDefinition', '');
  1387. }
  1388. function isDefaultFlow(element) {
  1389. const businessObject = getBusinessObject(element);
  1390. const sourceBusinessObject = getBusinessObject(element.source);
  1391. if (!is(element, 'bpmn:SequenceFlow') || !sourceBusinessObject) {
  1392. return false;
  1393. }
  1394. return sourceBusinessObject.default && sourceBusinessObject.default === businessObject && (is(sourceBusinessObject, 'bpmn:Gateway') || is(sourceBusinessObject, 'bpmn:Activity'));
  1395. }
  1396. function isConditionalFlow(element) {
  1397. const businessObject = getBusinessObject(element);
  1398. const sourceBusinessObject = getBusinessObject(element.source);
  1399. if (!is(element, 'bpmn:SequenceFlow') || !sourceBusinessObject) {
  1400. return false;
  1401. }
  1402. return businessObject.conditionExpression && is(sourceBusinessObject, 'bpmn:Activity');
  1403. }
  1404. function isPlane(element) {
  1405. // Backwards compatibility for bpmn-js<8
  1406. const di = element && (element.di || getBusinessObject(element).di);
  1407. return is(di, 'bpmndi:BPMNPlane');
  1408. }
  1409. function getTemplatesService() {
  1410. // eslint-disable-next-line react-hooks/rules-of-hooks
  1411. return useService('elementTemplates', false);
  1412. }
  1413. function getTemplate(element, elementTemplates) {
  1414. return elementTemplates.get(element);
  1415. }
  1416. function getTemplateDocumentation(element, elementTemplates) {
  1417. const template = getTemplate(element, elementTemplates);
  1418. return template && template.documentationRef;
  1419. }
  1420. var EmptyIcon = function EmptyIcon(props) {
  1421. return jsxs("svg", {
  1422. ...props,
  1423. children: [jsxs("defs", {
  1424. children: [jsx("rect", {
  1425. id: "a",
  1426. width: "57",
  1427. height: "47",
  1428. x: "3",
  1429. y: "8",
  1430. rx: "7"
  1431. }), jsx("mask", {
  1432. id: "b",
  1433. width: "57",
  1434. height: "47",
  1435. x: "0",
  1436. y: "0",
  1437. fill: "#fff",
  1438. maskContentUnits: "userSpaceOnUse",
  1439. maskUnits: "objectBoundingBox",
  1440. children: jsx("use", {
  1441. xlinkHref: "#a"
  1442. })
  1443. })]
  1444. }), jsxs("g", {
  1445. fill: "none",
  1446. fillRule: "evenodd",
  1447. children: [jsx("path", {
  1448. fill: "#818798",
  1449. 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"
  1450. }), jsx("path", {
  1451. fill: "#D5D7DD",
  1452. d: "M16 24h31v6H16zM21 33h21v6H21z"
  1453. }), jsx("use", {
  1454. stroke: "#B9BCC6",
  1455. strokeDasharray: "5 2",
  1456. strokeWidth: "2",
  1457. mask: "url(#b)",
  1458. xlinkHref: "#a"
  1459. })]
  1460. })]
  1461. });
  1462. };
  1463. EmptyIcon.defaultProps = {
  1464. xmlns: "http://www.w3.org/2000/svg",
  1465. xmlnsXlink: "http://www.w3.org/1999/xlink",
  1466. width: "64",
  1467. height: "64"
  1468. };
  1469. var MultipleIcon = function MultipleIcon(props) {
  1470. return jsxs("svg", {
  1471. ...props,
  1472. children: [jsxs("defs", {
  1473. children: [jsx("path", {
  1474. id: "a",
  1475. d: "M9 9h110v47H9z"
  1476. }), jsx("mask", {
  1477. id: "b",
  1478. width: "110",
  1479. height: "47",
  1480. x: "0",
  1481. y: "0",
  1482. fill: "#fff",
  1483. maskContentUnits: "userSpaceOnUse",
  1484. maskUnits: "objectBoundingBox",
  1485. children: jsx("use", {
  1486. xlinkHref: "#a"
  1487. })
  1488. })]
  1489. }), jsxs("g", {
  1490. fill: "none",
  1491. fillRule: "evenodd",
  1492. children: [jsx("path", {
  1493. fill: "#818798",
  1494. 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"
  1495. }), jsx("path", {
  1496. fill: "#D5D7DD",
  1497. d: "M17 47h16v6H17z"
  1498. }), jsx("path", {
  1499. fill: "#818798",
  1500. d: "M35 32h27v2H35z"
  1501. }), jsx("path", {
  1502. fill: "#818798",
  1503. d: "M60 30v6l6-3z"
  1504. }), jsx("path", {
  1505. fill: "#D5D7DD",
  1506. d: "M80 34h21v6H80z"
  1507. }), jsx("path", {
  1508. fill: "#818798",
  1509. 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"
  1510. }), jsx("path", {
  1511. fill: "#D5D7DD",
  1512. d: "M75 25h31v6H75z"
  1513. }), jsx("use", {
  1514. stroke: "#B9BCC6",
  1515. strokeDasharray: "5 2",
  1516. strokeWidth: "2",
  1517. mask: "url(#b)",
  1518. xlinkHref: "#a"
  1519. })]
  1520. })]
  1521. });
  1522. };
  1523. MultipleIcon.defaultProps = {
  1524. xmlns: "http://www.w3.org/2000/svg",
  1525. xmlnsXlink: "http://www.w3.org/1999/xlink",
  1526. width: "128",
  1527. height: "64"
  1528. };
  1529. const PanelPlaceholderProvider = translate => {
  1530. if (!translate) translate = text => text;
  1531. return {
  1532. getEmpty: () => {
  1533. return {
  1534. text: translate('Select an element to edit its properties.'),
  1535. icon: EmptyIcon
  1536. };
  1537. },
  1538. getMultiple: () => {
  1539. return {
  1540. text: translate('Multiple elements are selected. Select a single element to edit its properties.'),
  1541. icon: MultipleIcon
  1542. };
  1543. }
  1544. };
  1545. };
  1546. function BpmnPropertiesPanel(props) {
  1547. const {
  1548. element,
  1549. injector,
  1550. getProviders,
  1551. layoutConfig: initialLayoutConfig,
  1552. descriptionConfig,
  1553. tooltipConfig,
  1554. feelPopupContainer
  1555. } = props;
  1556. const canvas = injector.get('canvas');
  1557. const elementRegistry = injector.get('elementRegistry');
  1558. const eventBus = injector.get('eventBus');
  1559. const translate = injector.get('translate');
  1560. const [state, setState] = useState({
  1561. selectedElement: element
  1562. });
  1563. const selectedElement = state.selectedElement;
  1564. /**
  1565. * @param {djs.model.Base | Array<djs.model.Base>} element
  1566. */
  1567. const _update = element => {
  1568. if (!element) {
  1569. return;
  1570. }
  1571. let newSelectedElement = element;
  1572. // handle labels
  1573. if (newSelectedElement && newSelectedElement.type === 'label') {
  1574. newSelectedElement = newSelectedElement.labelTarget;
  1575. }
  1576. setState({
  1577. ...state,
  1578. selectedElement: newSelectedElement
  1579. });
  1580. // notify interested parties on property panel updates
  1581. eventBus.fire('propertiesPanel.updated', {
  1582. element: newSelectedElement
  1583. });
  1584. };
  1585. // (2) react on element changes
  1586. // (2a) selection changed
  1587. useEffect(() => {
  1588. const onSelectionChanged = e => {
  1589. const {
  1590. newSelection = []
  1591. } = e;
  1592. if (newSelection.length > 1) {
  1593. return _update(newSelection);
  1594. }
  1595. const newElement = newSelection[0];
  1596. const rootElement = canvas.getRootElement();
  1597. if (isImplicitRoot$1(rootElement)) {
  1598. return;
  1599. }
  1600. _update(newElement || rootElement);
  1601. };
  1602. eventBus.on('selection.changed', onSelectionChanged);
  1603. return () => {
  1604. eventBus.off('selection.changed', onSelectionChanged);
  1605. };
  1606. }, []);
  1607. // (2b) selected element changed
  1608. useEffect(() => {
  1609. const onElementsChanged = e => {
  1610. const elements = e.elements;
  1611. const updatedElement = findElement(elements, selectedElement);
  1612. if (updatedElement && elementExists(updatedElement, elementRegistry)) {
  1613. _update(updatedElement);
  1614. }
  1615. };
  1616. eventBus.on('elements.changed', onElementsChanged);
  1617. return () => {
  1618. eventBus.off('elements.changed', onElementsChanged);
  1619. };
  1620. }, [selectedElement]);
  1621. // (2c) root element changed
  1622. useEffect(() => {
  1623. const onRootAdded = e => {
  1624. const element = e.element;
  1625. _update(element);
  1626. };
  1627. eventBus.on('root.added', onRootAdded);
  1628. return () => {
  1629. eventBus.off('root.added', onRootAdded);
  1630. };
  1631. }, [selectedElement]);
  1632. // (2d) provided entries changed
  1633. useEffect(() => {
  1634. const onProvidersChanged = () => {
  1635. _update(selectedElement);
  1636. };
  1637. eventBus.on('propertiesPanel.providersChanged', onProvidersChanged);
  1638. return () => {
  1639. eventBus.off('propertiesPanel.providersChanged', onProvidersChanged);
  1640. };
  1641. }, [selectedElement]);
  1642. // (2e) element templates changed
  1643. useEffect(() => {
  1644. const onTemplatesChanged = () => {
  1645. _update(selectedElement);
  1646. };
  1647. eventBus.on('elementTemplates.changed', onTemplatesChanged);
  1648. return () => {
  1649. eventBus.off('elementTemplates.changed', onTemplatesChanged);
  1650. };
  1651. }, [selectedElement]);
  1652. // (3) create properties panel context
  1653. const bpmnPropertiesPanelContext = {
  1654. selectedElement,
  1655. injector,
  1656. getService(type, strict) {
  1657. return injector.get(type, strict);
  1658. }
  1659. };
  1660. // (4) retrieve groups for selected element
  1661. const providers = getProviders(selectedElement);
  1662. const groups = useMemo(() => {
  1663. return reduce(providers, function (groups, provider) {
  1664. // do not collect groups for multi element state
  1665. if (isArray(selectedElement)) {
  1666. return [];
  1667. }
  1668. const updater = provider.getGroups(selectedElement);
  1669. return updater(groups);
  1670. }, []);
  1671. }, [providers, selectedElement]);
  1672. // (5) notify layout changes
  1673. const [layoutConfig, setLayoutConfig] = useState(initialLayoutConfig || {});
  1674. const onLayoutChanged = useCallback(newLayout => {
  1675. eventBus.fire('propertiesPanel.layoutChanged', {
  1676. layout: newLayout
  1677. });
  1678. }, [eventBus]);
  1679. // React to external layout changes
  1680. useEffect(() => {
  1681. const cb = e => {
  1682. const {
  1683. layout
  1684. } = e;
  1685. setLayoutConfig(layout);
  1686. };
  1687. eventBus.on('propertiesPanel.setLayout', cb);
  1688. return () => eventBus.off('propertiesPanel.setLayout', cb);
  1689. }, [eventBus, setLayoutConfig]);
  1690. // (6) notify description changes
  1691. const onDescriptionLoaded = description => {
  1692. eventBus.fire('propertiesPanel.descriptionLoaded', {
  1693. description
  1694. });
  1695. };
  1696. // (7) notify tooltip changes
  1697. const onTooltipLoaded = tooltip => {
  1698. eventBus.fire('propertiesPanel.tooltipLoaded', {
  1699. tooltip
  1700. });
  1701. };
  1702. return jsx(BpmnPropertiesPanelContext.Provider, {
  1703. value: bpmnPropertiesPanelContext,
  1704. children: jsx(PropertiesPanel, {
  1705. element: selectedElement,
  1706. headerProvider: PanelHeaderProvider,
  1707. placeholderProvider: PanelPlaceholderProvider(translate),
  1708. groups: groups,
  1709. layoutConfig: layoutConfig,
  1710. layoutChanged: onLayoutChanged,
  1711. descriptionConfig: descriptionConfig,
  1712. descriptionLoaded: onDescriptionLoaded,
  1713. tooltipConfig: tooltipConfig,
  1714. tooltipLoaded: onTooltipLoaded,
  1715. feelPopupContainer: feelPopupContainer,
  1716. eventBus: eventBus
  1717. })
  1718. });
  1719. }
  1720. // helpers //////////////////////////
  1721. function isImplicitRoot$1(element) {
  1722. // Backwards compatibility for diagram-js<7.4.0, see https://github.com/bpmn-io/bpmn-properties-panel/pull/102
  1723. return element && (element.isImplicit || element.id === '__implicitroot');
  1724. }
  1725. function findElement(elements, element) {
  1726. return find(elements, e => e === element);
  1727. }
  1728. function elementExists(element, elementRegistry) {
  1729. return element && elementRegistry.get(element.id);
  1730. }
  1731. const DEFAULT_PRIORITY = 1000;
  1732. /**
  1733. * @typedef { import('@bpmn-io/properties-panel').GroupDefinition } GroupDefinition
  1734. * @typedef { import('@bpmn-io/properties-panel').ListGroupDefinition } ListGroupDefinition
  1735. * @typedef { { getGroups: (ModdleElement) => (Array{GroupDefinition|ListGroupDefinition}) => Array{GroupDefinition|ListGroupDefinition}) } PropertiesProvider
  1736. */
  1737. class BpmnPropertiesPanelRenderer {
  1738. constructor(config, injector, eventBus) {
  1739. const {
  1740. parent,
  1741. layout: layoutConfig,
  1742. description: descriptionConfig,
  1743. tooltip: tooltipConfig,
  1744. feelPopupContainer
  1745. } = config || {};
  1746. this._eventBus = eventBus;
  1747. this._injector = injector;
  1748. this._layoutConfig = layoutConfig;
  1749. this._descriptionConfig = descriptionConfig;
  1750. this._tooltipConfig = tooltipConfig;
  1751. this._feelPopupContainer = feelPopupContainer;
  1752. this._container = domify('<div style="height: 100%" class="bio-properties-panel-container"></div>');
  1753. var commandStack = injector.get('commandStack', false);
  1754. commandStack && setupKeyboard(this._container, eventBus, commandStack);
  1755. eventBus.on('diagram.init', () => {
  1756. if (parent) {
  1757. this.attachTo(parent);
  1758. }
  1759. });
  1760. eventBus.on('diagram.destroy', () => {
  1761. this.detach();
  1762. });
  1763. eventBus.on('root.added', event => {
  1764. const {
  1765. element
  1766. } = event;
  1767. this._render(element);
  1768. });
  1769. }
  1770. /**
  1771. * Attach the properties panel to a parent node.
  1772. *
  1773. * @param {HTMLElement} container
  1774. */
  1775. attachTo(container) {
  1776. if (!container) {
  1777. throw new Error('container required');
  1778. }
  1779. // unwrap jQuery if provided
  1780. if (container.get && container.constructor.prototype.jquery) {
  1781. container = container.get(0);
  1782. }
  1783. if (typeof container === 'string') {
  1784. container = query(container);
  1785. }
  1786. // (1) detach from old parent
  1787. this.detach();
  1788. // (2) append to parent container
  1789. container.appendChild(this._container);
  1790. // (3) notify interested parties
  1791. this._eventBus.fire('propertiesPanel.attach');
  1792. }
  1793. /**
  1794. * Detach the properties panel from its parent node.
  1795. */
  1796. detach() {
  1797. const parentNode = this._container.parentNode;
  1798. if (parentNode) {
  1799. parentNode.removeChild(this._container);
  1800. this._eventBus.fire('propertiesPanel.detach');
  1801. }
  1802. }
  1803. /**
  1804. * Register a new properties provider to the properties panel.
  1805. *
  1806. * @param {Number} [priority]
  1807. * @param {PropertiesProvider} provider
  1808. */
  1809. registerProvider(priority, provider) {
  1810. if (!provider) {
  1811. provider = priority;
  1812. priority = DEFAULT_PRIORITY;
  1813. }
  1814. if (typeof provider.getGroups !== 'function') {
  1815. console.error('Properties provider does not implement #getGroups(element) API');
  1816. return;
  1817. }
  1818. this._eventBus.on('propertiesPanel.getProviders', priority, function (event) {
  1819. event.providers.push(provider);
  1820. });
  1821. this._eventBus.fire('propertiesPanel.providersChanged');
  1822. }
  1823. /**
  1824. * Updates the layout of the properties panel.
  1825. * @param {Object} layout
  1826. */
  1827. setLayout(layout) {
  1828. this._eventBus.fire('propertiesPanel.setLayout', {
  1829. layout
  1830. });
  1831. }
  1832. _getProviders() {
  1833. const event = this._eventBus.createEvent({
  1834. type: 'propertiesPanel.getProviders',
  1835. providers: []
  1836. });
  1837. this._eventBus.fire(event);
  1838. return event.providers;
  1839. }
  1840. _render(element) {
  1841. const canvas = this._injector.get('canvas');
  1842. if (!element) {
  1843. element = canvas.getRootElement();
  1844. }
  1845. if (isImplicitRoot(element)) {
  1846. return;
  1847. }
  1848. render(jsx(BpmnPropertiesPanel, {
  1849. element: element,
  1850. injector: this._injector,
  1851. getProviders: this._getProviders.bind(this),
  1852. layoutConfig: this._layoutConfig,
  1853. descriptionConfig: this._descriptionConfig,
  1854. tooltipConfig: this._tooltipConfig,
  1855. feelPopupContainer: this._feelPopupContainer
  1856. }), this._container);
  1857. this._eventBus.fire('propertiesPanel.rendered');
  1858. }
  1859. _destroy() {
  1860. if (this._container) {
  1861. render(null, this._container);
  1862. this._eventBus.fire('propertiesPanel.destroyed');
  1863. }
  1864. }
  1865. }
  1866. BpmnPropertiesPanelRenderer.$inject = ['config.propertiesPanel', 'injector', 'eventBus'];
  1867. // helpers ///////////////////////
  1868. function isImplicitRoot(element) {
  1869. // Backwards compatibility for diagram-js<7.4.0, see https://github.com/bpmn-io/bpmn-properties-panel/pull/102
  1870. return element && (element.isImplicit || element.id === '__implicitroot');
  1871. }
  1872. /**
  1873. * Setup keyboard bindings (undo, redo) on the given container.
  1874. *
  1875. * @param {Element} container
  1876. * @param {EventBus} eventBus
  1877. * @param {CommandStack} commandStack
  1878. */
  1879. function setupKeyboard(container, eventBus, commandStack) {
  1880. function cancel(event) {
  1881. event.preventDefault();
  1882. event.stopPropagation();
  1883. }
  1884. function handleKeys(event) {
  1885. if (isUndo(event)) {
  1886. commandStack.undo();
  1887. return cancel(event);
  1888. }
  1889. if (isRedo(event)) {
  1890. commandStack.redo();
  1891. return cancel(event);
  1892. }
  1893. }
  1894. eventBus.on('keyboard.bind', function () {
  1895. event.bind(container, 'keydown', handleKeys);
  1896. });
  1897. eventBus.on('keyboard.unbind', function () {
  1898. event.unbind(container, 'keydown', handleKeys);
  1899. });
  1900. }
  1901. /**
  1902. * A handler that combines and executes multiple commands.
  1903. *
  1904. * All updates are bundled on the command stack and executed in one step.
  1905. * This also makes it possible to revert the changes in one step.
  1906. *
  1907. * Example use case: remove the camunda:formKey attribute and in addition
  1908. * add all form fields needed for the camunda:formData property.
  1909. */
  1910. class MultiCommandHandler {
  1911. constructor(commandStack) {
  1912. this._commandStack = commandStack;
  1913. }
  1914. preExecute(context) {
  1915. const commandStack = this._commandStack;
  1916. forEach(context, function (command) {
  1917. commandStack.execute(command.cmd, command.context);
  1918. });
  1919. }
  1920. }
  1921. MultiCommandHandler.$inject = ['commandStack'];
  1922. const HANDLERS = {
  1923. 'properties-panel.multi-command-executor': MultiCommandHandler
  1924. };
  1925. function CommandInitializer(eventBus, commandStack) {
  1926. eventBus.on('diagram.init', function () {
  1927. forEach(HANDLERS, function (handler, id) {
  1928. commandStack.registerHandler(id, handler);
  1929. });
  1930. });
  1931. }
  1932. CommandInitializer.$inject = ['eventBus', 'commandStack'];
  1933. var Commands = {
  1934. __init__: [CommandInitializer]
  1935. };
  1936. var index$3 = {
  1937. __depends__: [Commands, DebounceInputModule, FeelPopupModule],
  1938. __init__: ['propertiesPanel'],
  1939. propertiesPanel: ['type', BpmnPropertiesPanelRenderer]
  1940. };
  1941. function ReferenceSelectEntry(props) {
  1942. const {
  1943. autoFocusEntry,
  1944. element,
  1945. getOptions
  1946. } = props;
  1947. const options = getOptions(element);
  1948. const prevOptions = usePrevious(options);
  1949. // auto focus specifc other entry when options changed
  1950. useEffect(() => {
  1951. if (autoFocusEntry && prevOptions && options.length > prevOptions.length) {
  1952. const entry = query(`[data-entry-id="${autoFocusEntry}"]`);
  1953. const focusableInput = query('.bio-properties-panel-input', entry);
  1954. if (focusableInput) {
  1955. focusableInput.select();
  1956. }
  1957. }
  1958. }, [options]);
  1959. return jsx(SelectEntry, {
  1960. ...props
  1961. });
  1962. }
  1963. function isErrorSupported(element) {
  1964. return isAny(element, ['bpmn:StartEvent', 'bpmn:BoundaryEvent', 'bpmn:EndEvent']) && !!getErrorEventDefinition(element);
  1965. }
  1966. function getErrorEventDefinition(element) {
  1967. return getEventDefinition$1(element, 'bpmn:ErrorEventDefinition');
  1968. }
  1969. function getTimerEventDefinition$1(element) {
  1970. return getEventDefinition$1(element, 'bpmn:TimerEventDefinition');
  1971. }
  1972. function getError(element) {
  1973. const errorEventDefinition = getErrorEventDefinition(element);
  1974. return errorEventDefinition && errorEventDefinition.get('errorRef');
  1975. }
  1976. function getEventDefinition$1(element, eventType) {
  1977. const businessObject = getBusinessObject(element);
  1978. const eventDefinitions = businessObject.get('eventDefinitions') || [];
  1979. return find(eventDefinitions, function (definition) {
  1980. return is(definition, eventType);
  1981. });
  1982. }
  1983. function isMessageSupported(element) {
  1984. return is(element, 'bpmn:ReceiveTask') || isAny(element, ['bpmn:StartEvent', 'bpmn:EndEvent', 'bpmn:IntermediateThrowEvent', 'bpmn:BoundaryEvent', 'bpmn:IntermediateCatchEvent']) && !!getMessageEventDefinition(element);
  1985. }
  1986. function getMessageEventDefinition(element) {
  1987. if (is(element, 'bpmn:ReceiveTask')) {
  1988. return getBusinessObject(element);
  1989. }
  1990. return getEventDefinition$1(element, 'bpmn:MessageEventDefinition');
  1991. }
  1992. function getMessage(element) {
  1993. const messageEventDefinition = getMessageEventDefinition(element);
  1994. return messageEventDefinition && messageEventDefinition.get('messageRef');
  1995. }
  1996. function getLinkEventDefinition(element) {
  1997. return getEventDefinition$1(element, 'bpmn:LinkEventDefinition');
  1998. }
  1999. function getSignalEventDefinition$1(element) {
  2000. return getEventDefinition$1(element, 'bpmn:SignalEventDefinition');
  2001. }
  2002. function isLinkSupported(element) {
  2003. return isAny(element, ['bpmn:IntermediateThrowEvent', 'bpmn:IntermediateCatchEvent']) && !!getLinkEventDefinition(element);
  2004. }
  2005. function isSignalSupported$1(element) {
  2006. return is(element, 'bpmn:Event') && !!getSignalEventDefinition$1(element);
  2007. }
  2008. function getSignal$1(element) {
  2009. const signalEventDefinition = getSignalEventDefinition$1(element);
  2010. return signalEventDefinition && signalEventDefinition.get('signalRef');
  2011. }
  2012. function getEscalationEventDefinition(element) {
  2013. return getEventDefinition$1(element, 'bpmn:EscalationEventDefinition');
  2014. }
  2015. function isEscalationSupported(element) {
  2016. return is(element, 'bpmn:Event') && !!getEscalationEventDefinition(element);
  2017. }
  2018. function getEscalation(element) {
  2019. const escalationEventDefinition = getEscalationEventDefinition(element);
  2020. return escalationEventDefinition && escalationEventDefinition.get('escalationRef');
  2021. }
  2022. function isCompensationSupported(element) {
  2023. return isAny(element, ['bpmn:EndEvent', 'bpmn:IntermediateThrowEvent']) && !!getCompensateEventDefinition(element);
  2024. }
  2025. function getCompensateEventDefinition(element) {
  2026. return getEventDefinition$1(element, 'bpmn:CompensateEventDefinition');
  2027. }
  2028. function getCompensateActivity(element) {
  2029. const compensateEventDefinition = getCompensateEventDefinition(element);
  2030. return compensateEventDefinition && compensateEventDefinition.get('activityRef');
  2031. }
  2032. /**
  2033. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  2034. */
  2035. /**
  2036. * @returns {Array<Entry>} entries
  2037. */
  2038. function CompensationProps(props) {
  2039. const {
  2040. element
  2041. } = props;
  2042. if (!isCompensationSupported(element)) {
  2043. return [];
  2044. }
  2045. return [{
  2046. id: 'waitForCompletion',
  2047. component: WaitForCompletion,
  2048. isEdited: isCheckboxEntryEdited
  2049. }, {
  2050. id: 'activityRef',
  2051. component: ActivityRef,
  2052. isEdited: isSelectEntryEdited
  2053. }];
  2054. }
  2055. function WaitForCompletion(props) {
  2056. const {
  2057. element
  2058. } = props;
  2059. const commandStack = useService('commandStack');
  2060. const translate = useService('translate');
  2061. const compensateEventDefinition = getCompensateEventDefinition(element);
  2062. const getValue = () => {
  2063. return compensateEventDefinition.get('waitForCompletion');
  2064. };
  2065. const setValue = value => {
  2066. commandStack.execute('element.updateModdleProperties', {
  2067. element,
  2068. moddleElement: compensateEventDefinition,
  2069. properties: {
  2070. waitForCompletion: value
  2071. }
  2072. });
  2073. };
  2074. return CheckboxEntry({
  2075. element,
  2076. id: 'waitForCompletion',
  2077. label: translate('Wait for completion'),
  2078. getValue,
  2079. setValue
  2080. });
  2081. }
  2082. function ActivityRef(props) {
  2083. const {
  2084. element
  2085. } = props;
  2086. const commandStack = useService('commandStack');
  2087. const elementRegistry = useService('elementRegistry');
  2088. const translate = useService('translate');
  2089. const compensateEventDefinition = getCompensateEventDefinition(element);
  2090. const getValue = () => {
  2091. const activityRef = getCompensateActivity(element);
  2092. return activityRef && activityRef.get('id');
  2093. };
  2094. const setValue = value => {
  2095. // update (or remove) activityRef
  2096. const activityRef = value ? getBusinessObject(elementRegistry.get(value)) : undefined;
  2097. commandStack.execute('element.updateModdleProperties', {
  2098. element,
  2099. moddleElement: compensateEventDefinition,
  2100. properties: {
  2101. activityRef
  2102. }
  2103. });
  2104. };
  2105. const getOptions = () => {
  2106. let options = [{
  2107. value: '',
  2108. label: translate('<none>')
  2109. }];
  2110. const activities = findActivityRefs(element);
  2111. sortByName$6(activities).forEach(function (activity) {
  2112. options.push({
  2113. value: activity.id,
  2114. label: createOptionLabel(activity)
  2115. });
  2116. });
  2117. return options;
  2118. };
  2119. return ReferenceSelectEntry({
  2120. element,
  2121. id: 'activityRef',
  2122. label: translate('Activity reference'),
  2123. getValue,
  2124. setValue,
  2125. getOptions
  2126. });
  2127. }
  2128. // helper /////////////////////////
  2129. function getFlowElements(element, type) {
  2130. const {
  2131. flowElements
  2132. } = element;
  2133. return flowElements.filter(function (flowElement) {
  2134. return is(flowElement, type);
  2135. });
  2136. }
  2137. function getContainedActivities(element) {
  2138. return getFlowElements(element, 'bpmn:Activity');
  2139. }
  2140. function getContainedBoundaryEvents(element) {
  2141. return getFlowElements(element, 'bpmn:BoundaryEvent');
  2142. }
  2143. /**
  2144. * Checks whether an Activity is attaching a CompensateEvent of the parent container.
  2145. *
  2146. * @param {ModdleElement} activity
  2147. * @param {Array<ModdleElement>} boundaryEvents
  2148. * @returns {Boolean}
  2149. */
  2150. function hasCompensationEventAttached(activity, boundaryEvents) {
  2151. const {
  2152. id: activityId
  2153. } = activity;
  2154. return !!find(boundaryEvents, function (boundaryEvent) {
  2155. const {
  2156. attachedToRef
  2157. } = boundaryEvent;
  2158. const compensateEventDefinition = getCompensateEventDefinition(boundaryEvent);
  2159. return attachedToRef && compensateEventDefinition && attachedToRef.id === activityId;
  2160. });
  2161. }
  2162. /**
  2163. * Checks whether an Activity can be compensated. That's the case when it is
  2164. * a) a CallActivity
  2165. * b) a SubProcess, when it is not event based and not a compensation
  2166. * c) any other Activity, when it is attaching a CompensateEvent of the parent container
  2167. *
  2168. * @param {ModdleElement} activity
  2169. * @param {Array<ModdleElement>} boundaryEvents
  2170. * @returns {Boolean}
  2171. */
  2172. function canBeCompensated(activity, boundaryEvents) {
  2173. return is(activity, 'bpmn:CallActivity') || is(activity, 'bpmn:SubProcess') && !activity.triggeredByEvent && !activity.isForCompensation || hasCompensationEventAttached(activity, boundaryEvents);
  2174. }
  2175. function getActivitiesForCompensation(element) {
  2176. const activities = getContainedActivities(element);
  2177. const boundaryEvents = getContainedBoundaryEvents(element);
  2178. return activities.filter(function (activity) {
  2179. return canBeCompensated(activity, boundaryEvents);
  2180. });
  2181. }
  2182. /**
  2183. * Retrieves all possible activities to reference for a Compensation.
  2184. *
  2185. * @param {djs.model.Base} element
  2186. * @returns {Array<ModdleElement>}
  2187. */
  2188. function findActivityRefs(element) {
  2189. const businessObject = getBusinessObject(element);
  2190. let parent = businessObject.$parent;
  2191. // (1) get all activities in parent container
  2192. let activities = getActivitiesForCompensation(parent);
  2193. // (2) if throwing compensation event is inside an EventSubProcess,
  2194. // also get all activities outside of the event sub process
  2195. if (is(parent, 'bpmn:SubProcess') && parent.triggeredByEvent) {
  2196. parent = parent.$parent;
  2197. if (parent) {
  2198. activities = [...activities, ...getActivitiesForCompensation(parent)];
  2199. }
  2200. }
  2201. return activities;
  2202. }
  2203. /**
  2204. * Retrieves an option label in the form
  2205. * a) with name: "my Task (id=Task_1)"
  2206. * b) without name: "(id=Task_1)"
  2207. *
  2208. * @param {ModdleElement} activity
  2209. * @returns {String}
  2210. */
  2211. function createOptionLabel(activity) {
  2212. const {
  2213. id,
  2214. name
  2215. } = activity;
  2216. return `${name ? name + ' ' : ''}(id=${id})`;
  2217. }
  2218. function sortByName$6(elements) {
  2219. return sortBy(elements, e => (e.name || '').toLowerCase());
  2220. }
  2221. const DOCUMENTATION_TEXT_FORMAT = 'text/plain';
  2222. /**
  2223. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  2224. */
  2225. /**
  2226. * @returns {Array<Entry>} entries
  2227. */
  2228. function DocumentationProps(props) {
  2229. const {
  2230. element
  2231. } = props;
  2232. const entries = [{
  2233. id: 'documentation',
  2234. component: ElementDocumentationProperty,
  2235. isEdited: isTextAreaEntryEdited
  2236. }];
  2237. if (hasProcessRef$2(element)) {
  2238. entries.push({
  2239. id: 'processDocumentation',
  2240. component: ProcessDocumentationProperty,
  2241. isEdited: isTextAreaEntryEdited
  2242. });
  2243. }
  2244. return entries;
  2245. }
  2246. function ElementDocumentationProperty(props) {
  2247. const {
  2248. element
  2249. } = props;
  2250. const bpmnFactory = useService('bpmnFactory');
  2251. const commandStack = useService('commandStack');
  2252. const translate = useService('translate');
  2253. const debounce = useService('debounceInput');
  2254. const getValue = getDocumentation(getBusinessObject(element));
  2255. const setValue = setDocumentation(element, getBusinessObject(element), bpmnFactory, commandStack);
  2256. return TextAreaEntry({
  2257. element,
  2258. id: 'documentation',
  2259. label: translate('Element documentation'),
  2260. getValue,
  2261. setValue,
  2262. debounce
  2263. });
  2264. }
  2265. function ProcessDocumentationProperty(props) {
  2266. const {
  2267. element
  2268. } = props;
  2269. const bpmnFactory = useService('bpmnFactory');
  2270. const commandStack = useService('commandStack');
  2271. const translate = useService('translate');
  2272. const debounce = useService('debounceInput');
  2273. const processRef = getBusinessObject(element).processRef;
  2274. const getValue = getDocumentation(processRef);
  2275. const setValue = setDocumentation(element, processRef, bpmnFactory, commandStack);
  2276. return TextAreaEntry({
  2277. element,
  2278. id: 'processDocumentation',
  2279. label: translate('Process documentation'),
  2280. getValue,
  2281. setValue,
  2282. debounce
  2283. });
  2284. }
  2285. // helper ////////////////////////////
  2286. function hasProcessRef$2(element) {
  2287. return is(element, 'bpmn:Participant') && element.businessObject.get('processRef');
  2288. }
  2289. function findDocumentation(docs) {
  2290. return docs.find(function (d) {
  2291. return (d.textFormat || DOCUMENTATION_TEXT_FORMAT) === DOCUMENTATION_TEXT_FORMAT;
  2292. });
  2293. }
  2294. /**
  2295. * Retrieves a documentation element from a given moddle element.
  2296. *
  2297. * @param {ModdleElement} businessObject
  2298. *
  2299. * @returns {ModdleElement} documentation element inside the given moddle element.
  2300. */
  2301. function getDocumentation(businessObject) {
  2302. return function () {
  2303. const documentation = findDocumentation(businessObject && businessObject.get('documentation'));
  2304. return documentation && documentation.text;
  2305. };
  2306. }
  2307. /**
  2308. * Sets a documentation element for a given moddle element.
  2309. *
  2310. * @param {ModdleElement} businessObject
  2311. */
  2312. function setDocumentation(element, businessObject, bpmnFactory, commandStack) {
  2313. return function (value) {
  2314. let documentation = findDocumentation(businessObject && businessObject.get('documentation'));
  2315. // (1) update or removing existing documentation
  2316. if (documentation) {
  2317. if (value) {
  2318. return commandStack.execute('element.updateModdleProperties', {
  2319. element,
  2320. moddleElement: documentation,
  2321. properties: {
  2322. text: value
  2323. }
  2324. });
  2325. } else {
  2326. return commandStack.execute('element.updateModdleProperties', {
  2327. element,
  2328. moddleElement: businessObject,
  2329. properties: {
  2330. documentation: without(businessObject.get('documentation'), documentation)
  2331. }
  2332. });
  2333. }
  2334. }
  2335. // (2) create new documentation entry
  2336. if (value) {
  2337. documentation = bpmnFactory.create('bpmn:Documentation', {
  2338. text: value
  2339. });
  2340. return commandStack.execute('element.updateModdleProperties', {
  2341. element,
  2342. moddleElement: businessObject,
  2343. properties: {
  2344. documentation: [...businessObject.get('documentation'), documentation]
  2345. }
  2346. });
  2347. }
  2348. };
  2349. }
  2350. /**
  2351. * Create a new element and set its parent.
  2352. *
  2353. * @param {String} elementType of the new element
  2354. * @param {Object} properties of the new element in key-value pairs
  2355. * @param {moddle.object} parent of the new element
  2356. * @param {BpmnFactory} factory which creates the new element
  2357. *
  2358. * @returns {djs.model.Base} element which is created
  2359. */
  2360. function createElement(elementType, properties, parent, factory) {
  2361. const element = factory.create(elementType, properties);
  2362. if (parent) {
  2363. element.$parent = parent;
  2364. }
  2365. return element;
  2366. }
  2367. /**
  2368. * generate a semantic id with given prefix
  2369. */
  2370. function nextId(prefix) {
  2371. const ids = new Ids([32, 32, 1]);
  2372. return ids.nextPrefixed(prefix);
  2373. }
  2374. function getRoot(businessObject) {
  2375. let parent = businessObject;
  2376. while (parent.$parent) {
  2377. parent = parent.$parent;
  2378. }
  2379. return parent;
  2380. }
  2381. function filterElementsByType(objectList, type) {
  2382. const list = objectList || [];
  2383. return list.filter(element => is(element, type));
  2384. }
  2385. function findRootElementsByType(businessObject, referencedType) {
  2386. const root = getRoot(businessObject);
  2387. return filterElementsByType(root.get('rootElements'), referencedType);
  2388. }
  2389. function findRootElementById(businessObject, type, id) {
  2390. const elements = findRootElementsByType(businessObject, type);
  2391. return elements.find(element => element.id === id);
  2392. }
  2393. const EMPTY_OPTION$4 = '';
  2394. const CREATE_NEW_OPTION$4 = 'create-new';
  2395. /**
  2396. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  2397. */
  2398. /**
  2399. * @returns {Array<Entry>} entries
  2400. */
  2401. function ErrorProps$2(props) {
  2402. const {
  2403. element
  2404. } = props;
  2405. if (!isErrorSupported(element)) {
  2406. return [];
  2407. }
  2408. const error = getError(element);
  2409. let entries = [{
  2410. id: 'errorRef',
  2411. component: ErrorRef$1,
  2412. isEdited: isSelectEntryEdited
  2413. }];
  2414. if (error) {
  2415. entries = [...entries, {
  2416. id: 'errorName',
  2417. component: ErrorName$1,
  2418. isEdited: isTextFieldEntryEdited
  2419. }, {
  2420. id: 'errorCode',
  2421. component: ErrorCode$2,
  2422. isEdited: isTextFieldEntryEdited
  2423. }];
  2424. }
  2425. return entries;
  2426. }
  2427. function ErrorRef$1(props) {
  2428. const {
  2429. element
  2430. } = props;
  2431. const bpmnFactory = useService('bpmnFactory');
  2432. const commandStack = useService('commandStack');
  2433. const translate = useService('translate');
  2434. const errorEventDefinition = getErrorEventDefinition(element);
  2435. const getValue = () => {
  2436. const error = getError(element);
  2437. if (error) {
  2438. return error.get('id');
  2439. }
  2440. return EMPTY_OPTION$4;
  2441. };
  2442. const setValue = value => {
  2443. const root = getRoot(errorEventDefinition);
  2444. const commands = [];
  2445. let error;
  2446. // (1) create new error
  2447. if (value === CREATE_NEW_OPTION$4) {
  2448. error = createElement('bpmn:Error', {
  2449. name: nextId('Error_')
  2450. }, root, bpmnFactory);
  2451. value = error.get('id');
  2452. commands.push({
  2453. cmd: 'element.updateModdleProperties',
  2454. context: {
  2455. element,
  2456. moddleElement: root,
  2457. properties: {
  2458. rootElements: [...root.get('rootElements'), error]
  2459. }
  2460. }
  2461. });
  2462. }
  2463. // (2) update (or remove) errorRef
  2464. error = error || findRootElementById(errorEventDefinition, 'bpmn:Error', value);
  2465. commands.push({
  2466. cmd: 'element.updateModdleProperties',
  2467. context: {
  2468. element,
  2469. moddleElement: errorEventDefinition,
  2470. properties: {
  2471. errorRef: error
  2472. }
  2473. }
  2474. });
  2475. // (3) commit all updates
  2476. return commandStack.execute('properties-panel.multi-command-executor', commands);
  2477. };
  2478. const getOptions = () => {
  2479. let options = [{
  2480. value: EMPTY_OPTION$4,
  2481. label: translate('<none>')
  2482. }, {
  2483. value: CREATE_NEW_OPTION$4,
  2484. label: translate('Create new ...')
  2485. }];
  2486. const errors = findRootElementsByType(getBusinessObject(element), 'bpmn:Error');
  2487. sortByName$5(errors).forEach(error => {
  2488. options.push({
  2489. value: error.get('id'),
  2490. label: error.get('name')
  2491. });
  2492. });
  2493. return options;
  2494. };
  2495. return ReferenceSelectEntry({
  2496. element,
  2497. id: 'errorRef',
  2498. label: translate('Global error reference'),
  2499. autoFocusEntry: 'errorName',
  2500. getValue,
  2501. setValue,
  2502. getOptions
  2503. });
  2504. }
  2505. function ErrorName$1(props) {
  2506. const {
  2507. element
  2508. } = props;
  2509. const commandStack = useService('commandStack');
  2510. const translate = useService('translate');
  2511. const debounce = useService('debounceInput');
  2512. const error = getError(element);
  2513. const getValue = () => {
  2514. return error.get('name');
  2515. };
  2516. const setValue = value => {
  2517. return commandStack.execute('element.updateModdleProperties', {
  2518. element,
  2519. moddleElement: error,
  2520. properties: {
  2521. name: value
  2522. }
  2523. });
  2524. };
  2525. return TextFieldEntry({
  2526. element,
  2527. id: 'errorName',
  2528. label: translate('Name'),
  2529. getValue,
  2530. setValue,
  2531. debounce
  2532. });
  2533. }
  2534. function ErrorCode$2(props) {
  2535. const {
  2536. element
  2537. } = props;
  2538. const commandStack = useService('commandStack');
  2539. const translate = useService('translate');
  2540. const debounce = useService('debounceInput');
  2541. const error = getError(element);
  2542. const getValue = () => {
  2543. return error.get('errorCode');
  2544. };
  2545. const setValue = value => {
  2546. return commandStack.execute('element.updateModdleProperties', {
  2547. element,
  2548. moddleElement: error,
  2549. properties: {
  2550. errorCode: value
  2551. }
  2552. });
  2553. };
  2554. return TextFieldEntry({
  2555. element,
  2556. id: 'errorCode',
  2557. label: translate('Code'),
  2558. getValue,
  2559. setValue,
  2560. debounce
  2561. });
  2562. }
  2563. // helper /////////////////////////
  2564. function sortByName$5(elements) {
  2565. return sortBy(elements, e => (e.name || '').toLowerCase());
  2566. }
  2567. const CREATE_NEW_OPTION$3 = 'create-new';
  2568. /**
  2569. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  2570. */
  2571. /**
  2572. * @returns {Array<Entry>} entries
  2573. */
  2574. function EscalationProps$2(props) {
  2575. const {
  2576. element
  2577. } = props;
  2578. if (!isEscalationSupported(element)) {
  2579. return [];
  2580. }
  2581. const escalation = getEscalation(element);
  2582. let entries = [{
  2583. id: 'escalationRef',
  2584. component: EscalationRef,
  2585. isEdited: isSelectEntryEdited
  2586. }];
  2587. if (escalation) {
  2588. entries = [...entries, {
  2589. id: 'escalationName',
  2590. component: EscalationName,
  2591. isEdited: isTextFieldEntryEdited
  2592. }, {
  2593. id: 'escalationCode',
  2594. component: EscalationCode$1,
  2595. isEdited: isTextFieldEntryEdited
  2596. }];
  2597. }
  2598. return entries;
  2599. }
  2600. function EscalationRef(props) {
  2601. const {
  2602. element
  2603. } = props;
  2604. const bpmnFactory = useService('bpmnFactory');
  2605. const commandStack = useService('commandStack');
  2606. const translate = useService('translate');
  2607. const escalationEventDefinition = getEscalationEventDefinition(element);
  2608. const getValue = () => {
  2609. const escalation = getEscalation(element);
  2610. return escalation && escalation.get('id');
  2611. };
  2612. const setValue = value => {
  2613. const root = getRoot(escalationEventDefinition);
  2614. const commands = [];
  2615. let escalation;
  2616. // (1) create new escalation
  2617. if (value === CREATE_NEW_OPTION$3) {
  2618. const id = nextId('Escalation_');
  2619. escalation = createElement('bpmn:Escalation', {
  2620. id,
  2621. name: id
  2622. }, root, bpmnFactory);
  2623. value = escalation.get('id');
  2624. commands.push({
  2625. cmd: 'element.updateModdleProperties',
  2626. context: {
  2627. element,
  2628. moddleElement: root,
  2629. properties: {
  2630. rootElements: [...root.get('rootElements'), escalation]
  2631. }
  2632. }
  2633. });
  2634. }
  2635. // (2) update (or remove) escalationRef
  2636. escalation = escalation || findRootElementById(escalationEventDefinition, 'bpmn:Escalation', value);
  2637. commands.push({
  2638. cmd: 'element.updateModdleProperties',
  2639. context: {
  2640. element,
  2641. moddleElement: escalationEventDefinition,
  2642. properties: {
  2643. escalationRef: escalation
  2644. }
  2645. }
  2646. });
  2647. // (3) commit all updates
  2648. return commandStack.execute('properties-panel.multi-command-executor', commands);
  2649. };
  2650. const getOptions = () => {
  2651. let options = [{
  2652. value: '',
  2653. label: translate('<none>')
  2654. }, {
  2655. value: CREATE_NEW_OPTION$3,
  2656. label: translate('Create new ...')
  2657. }];
  2658. const escalations = findRootElementsByType(getBusinessObject(element), 'bpmn:Escalation');
  2659. sortByName$4(escalations).forEach(escalation => {
  2660. options.push({
  2661. value: escalation.get('id'),
  2662. label: escalation.get('name')
  2663. });
  2664. });
  2665. return options;
  2666. };
  2667. return ReferenceSelectEntry({
  2668. element,
  2669. id: 'escalationRef',
  2670. label: translate('Global escalation reference'),
  2671. autoFocusEntry: 'escalationName',
  2672. getValue,
  2673. setValue,
  2674. getOptions
  2675. });
  2676. }
  2677. function EscalationName(props) {
  2678. const {
  2679. element
  2680. } = props;
  2681. const commandStack = useService('commandStack');
  2682. const translate = useService('translate');
  2683. const debounce = useService('debounceInput');
  2684. const escalation = getEscalation(element);
  2685. const getValue = () => {
  2686. return escalation.get('name');
  2687. };
  2688. const setValue = value => {
  2689. return commandStack.execute('element.updateModdleProperties', {
  2690. element,
  2691. moddleElement: escalation,
  2692. properties: {
  2693. name: value
  2694. }
  2695. });
  2696. };
  2697. return TextFieldEntry({
  2698. element,
  2699. id: 'escalationName',
  2700. label: translate('Name'),
  2701. getValue,
  2702. setValue,
  2703. debounce
  2704. });
  2705. }
  2706. function EscalationCode$1(props) {
  2707. const {
  2708. element
  2709. } = props;
  2710. const commandStack = useService('commandStack');
  2711. const translate = useService('translate');
  2712. const debounce = useService('debounceInput');
  2713. const escalation = getEscalation(element);
  2714. const getValue = () => {
  2715. return escalation.get('escalationCode');
  2716. };
  2717. const setValue = value => {
  2718. return commandStack.execute('element.updateModdleProperties', {
  2719. element,
  2720. moddleElement: escalation,
  2721. properties: {
  2722. escalationCode: value
  2723. }
  2724. });
  2725. };
  2726. return TextFieldEntry({
  2727. element,
  2728. id: 'escalationCode',
  2729. label: translate('Code'),
  2730. getValue,
  2731. setValue,
  2732. debounce
  2733. });
  2734. }
  2735. // helper /////////////////////////
  2736. function sortByName$4(elements) {
  2737. return sortBy(elements, e => (e.name || '').toLowerCase());
  2738. }
  2739. /**
  2740. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  2741. */
  2742. /**
  2743. * @returns {Array<Entry>} entries
  2744. */
  2745. function ExecutableProps(props) {
  2746. const {
  2747. element
  2748. } = props;
  2749. if (!is(element, 'bpmn:Process') && !hasProcessRef$1(element)) {
  2750. return [];
  2751. }
  2752. return [{
  2753. id: 'isExecutable',
  2754. component: Executable,
  2755. isEdited: isCheckboxEntryEdited
  2756. }];
  2757. }
  2758. function Executable(props) {
  2759. const {
  2760. element
  2761. } = props;
  2762. const modeling = useService('modeling');
  2763. const commandStack = useService('commandStack');
  2764. const translate = useService('translate');
  2765. let getValue, setValue;
  2766. setValue = value => {
  2767. modeling.updateProperties(element, {
  2768. isExecutable: value
  2769. });
  2770. };
  2771. getValue = element => {
  2772. return element.businessObject.isExecutable;
  2773. };
  2774. // handle properties on processRef level for participants
  2775. if (is(element, 'bpmn:Participant')) {
  2776. const process = element.businessObject.get('processRef');
  2777. setValue = value => {
  2778. commandStack.execute('element.updateModdleProperties', {
  2779. element,
  2780. moddleElement: process,
  2781. properties: {
  2782. isExecutable: value
  2783. }
  2784. });
  2785. };
  2786. getValue = () => {
  2787. return process.get('isExecutable');
  2788. };
  2789. }
  2790. return CheckboxEntry({
  2791. element,
  2792. id: 'isExecutable',
  2793. label: translate('Executable'),
  2794. getValue,
  2795. setValue
  2796. });
  2797. }
  2798. // helper /////////////////////
  2799. function hasProcessRef$1(element) {
  2800. return is(element, 'bpmn:Participant') && element.businessObject.get('processRef');
  2801. }
  2802. const SPACE_REGEX = /\s/;
  2803. // for QName validation as per http://www.w3.org/TR/REC-xml/#NT-NameChar
  2804. const QNAME_REGEX = /^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i;
  2805. // for ID validation as per BPMN Schema (QName - Namespace)
  2806. const ID_REGEX = /^[a-z_][\w-.]*$/i;
  2807. /**
  2808. * checks whether the id value is valid
  2809. *
  2810. * @param {ModdleElement} element
  2811. * @param {String} idValue
  2812. * @param {Function} translate
  2813. *
  2814. * @return {String} error message
  2815. */
  2816. function isIdValid(element, idValue, translate) {
  2817. const assigned = element.$model.ids.assigned(idValue);
  2818. const idAlreadyExists = assigned && assigned !== element;
  2819. if (!idValue) {
  2820. return translate('ID must not be empty.');
  2821. }
  2822. if (idAlreadyExists) {
  2823. return translate('ID must be unique.');
  2824. }
  2825. return validateId(idValue, translate);
  2826. }
  2827. function validateId(idValue, translate) {
  2828. if (containsSpace(idValue)) {
  2829. return translate('ID must not contain spaces.');
  2830. }
  2831. if (!ID_REGEX.test(idValue)) {
  2832. if (QNAME_REGEX.test(idValue)) {
  2833. return translate('ID must not contain prefix.');
  2834. }
  2835. return translate('ID must be a valid QName.');
  2836. }
  2837. }
  2838. function containsSpace(value) {
  2839. return SPACE_REGEX.test(value);
  2840. }
  2841. /**
  2842. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  2843. */
  2844. /**
  2845. * @returns {Array<Entry>} entries
  2846. */
  2847. function IdProps() {
  2848. return [{
  2849. id: 'id',
  2850. component: Id$3,
  2851. isEdited: isTextFieldEntryEdited
  2852. }];
  2853. }
  2854. function Id$3(props) {
  2855. const {
  2856. element
  2857. } = props;
  2858. const modeling = useService('modeling');
  2859. const debounce = useService('debounceInput');
  2860. const translate = useService('translate');
  2861. const setValue = (value, error) => {
  2862. if (error) {
  2863. return;
  2864. }
  2865. modeling.updateProperties(element, {
  2866. id: value
  2867. });
  2868. };
  2869. const getValue = element => {
  2870. return element.businessObject.id;
  2871. };
  2872. const validate = value => {
  2873. const businessObject = getBusinessObject(element);
  2874. return isIdValid(businessObject, value, translate);
  2875. };
  2876. return TextFieldEntry({
  2877. element,
  2878. id: 'id',
  2879. label: translate(is(element, 'bpmn:Participant') ? 'Participant ID' : 'ID'),
  2880. getValue,
  2881. setValue,
  2882. debounce,
  2883. validate
  2884. });
  2885. }
  2886. /**
  2887. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  2888. */
  2889. /**
  2890. * @returns {Array<Entry>} entries
  2891. */
  2892. function LinkProps(props) {
  2893. const {
  2894. element
  2895. } = props;
  2896. if (!isLinkSupported(element)) {
  2897. return [];
  2898. }
  2899. return [{
  2900. id: 'linkName',
  2901. component: LinkName,
  2902. isEdited: isTextFieldEntryEdited
  2903. }];
  2904. }
  2905. function LinkName(props) {
  2906. const {
  2907. element
  2908. } = props;
  2909. const commandStack = useService('commandStack');
  2910. const translate = useService('translate');
  2911. const debounce = useService('debounceInput');
  2912. const linkEventDefinition = getLinkEventDefinition(element);
  2913. const getValue = () => {
  2914. return linkEventDefinition.get('name');
  2915. };
  2916. const setValue = value => {
  2917. commandStack.execute('element.updateModdleProperties', {
  2918. element,
  2919. moddleElement: linkEventDefinition,
  2920. properties: {
  2921. name: value
  2922. }
  2923. });
  2924. };
  2925. return TextFieldEntry({
  2926. element,
  2927. id: 'linkName',
  2928. label: translate('Name'),
  2929. getValue,
  2930. setValue,
  2931. debounce
  2932. });
  2933. }
  2934. const EMPTY_OPTION$3 = '';
  2935. const CREATE_NEW_OPTION$2 = 'create-new';
  2936. /**
  2937. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  2938. */
  2939. /**
  2940. * @returns {Array<Entry>} entries
  2941. */
  2942. function MessageProps$1(props) {
  2943. const {
  2944. element
  2945. } = props;
  2946. if (!isMessageSupported(element)) {
  2947. return [];
  2948. }
  2949. const message = getMessage(element);
  2950. let entries = [{
  2951. id: 'messageRef',
  2952. component: MessageRef,
  2953. isEdited: isSelectEntryEdited
  2954. }];
  2955. if (message) {
  2956. entries = [...entries, {
  2957. id: 'messageName',
  2958. component: MessageName$1,
  2959. isEdited: isTextFieldEntryEdited
  2960. }];
  2961. }
  2962. return entries;
  2963. }
  2964. function MessageRef(props) {
  2965. const {
  2966. element
  2967. } = props;
  2968. const bpmnFactory = useService('bpmnFactory');
  2969. const commandStack = useService('commandStack');
  2970. const translate = useService('translate');
  2971. const messageEventDefinition = getMessageEventDefinition(element);
  2972. const getValue = () => {
  2973. const message = getMessage(element);
  2974. if (message) {
  2975. return message.get('id');
  2976. }
  2977. return EMPTY_OPTION$3;
  2978. };
  2979. const setValue = value => {
  2980. const root = getRoot(messageEventDefinition);
  2981. const commands = [];
  2982. let message;
  2983. // (1) create new message
  2984. if (value === CREATE_NEW_OPTION$2) {
  2985. const id = nextId('Message_');
  2986. message = createElement('bpmn:Message', {
  2987. id,
  2988. name: id
  2989. }, root, bpmnFactory);
  2990. value = message.get('id');
  2991. commands.push({
  2992. cmd: 'element.updateModdleProperties',
  2993. context: {
  2994. element,
  2995. moddleElement: root,
  2996. properties: {
  2997. rootElements: [...root.get('rootElements'), message]
  2998. }
  2999. }
  3000. });
  3001. }
  3002. // (2) update (or remove) messageRef
  3003. message = message || findRootElementById(messageEventDefinition, 'bpmn:Message', value);
  3004. commands.push({
  3005. cmd: 'element.updateModdleProperties',
  3006. context: {
  3007. element,
  3008. moddleElement: messageEventDefinition,
  3009. properties: {
  3010. messageRef: message
  3011. }
  3012. }
  3013. });
  3014. // (3) commit all updates
  3015. return commandStack.execute('properties-panel.multi-command-executor', commands);
  3016. };
  3017. const getOptions = () => {
  3018. let options = [{
  3019. value: EMPTY_OPTION$3,
  3020. label: translate('<none>')
  3021. }, {
  3022. value: CREATE_NEW_OPTION$2,
  3023. label: translate('Create new ...')
  3024. }];
  3025. const messages = findRootElementsByType(getBusinessObject(element), 'bpmn:Message');
  3026. sortByName$3(messages).forEach(message => {
  3027. options.push({
  3028. value: message.get('id'),
  3029. label: message.get('name')
  3030. });
  3031. });
  3032. return options;
  3033. };
  3034. return ReferenceSelectEntry({
  3035. element,
  3036. id: 'messageRef',
  3037. label: translate('Global message reference'),
  3038. autoFocusEntry: 'messageName',
  3039. getValue,
  3040. setValue,
  3041. getOptions
  3042. });
  3043. }
  3044. function MessageName$1(props) {
  3045. const {
  3046. element
  3047. } = props;
  3048. const commandStack = useService('commandStack');
  3049. const translate = useService('translate');
  3050. const debounce = useService('debounceInput');
  3051. const message = getMessage(element);
  3052. const getValue = () => {
  3053. return message.get('name');
  3054. };
  3055. const setValue = value => {
  3056. return commandStack.execute('element.updateModdleProperties', {
  3057. element,
  3058. moddleElement: message,
  3059. properties: {
  3060. name: value
  3061. }
  3062. });
  3063. };
  3064. return TextFieldEntry({
  3065. element,
  3066. id: 'messageName',
  3067. label: translate('Name'),
  3068. getValue,
  3069. setValue,
  3070. debounce
  3071. });
  3072. }
  3073. // helper /////////////////////////
  3074. function sortByName$3(elements) {
  3075. return sortBy(elements, e => (e.name || '').toLowerCase());
  3076. }
  3077. /**
  3078. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  3079. */
  3080. /**
  3081. * @returns {Array<Entry>} entries
  3082. */
  3083. function MultiInstanceProps$2(props) {
  3084. const {
  3085. element
  3086. } = props;
  3087. if (!isMultiInstanceSupported$1(element)) {
  3088. return [];
  3089. }
  3090. const entries = [{
  3091. id: 'loopCardinality',
  3092. component: LoopCardinality,
  3093. isEdited: isTextFieldEntryEdited
  3094. }, {
  3095. id: 'completionCondition',
  3096. component: CompletionCondition$1,
  3097. isEdited: isTextFieldEntryEdited
  3098. }];
  3099. return entries;
  3100. }
  3101. function LoopCardinality(props) {
  3102. const {
  3103. element
  3104. } = props;
  3105. const bpmnFactory = useService('bpmnFactory');
  3106. const debounce = useService('debounceInput');
  3107. const commandStack = useService('commandStack');
  3108. const translate = useService('translate');
  3109. const getValue = () => {
  3110. return getLoopCardinalityValue(element);
  3111. };
  3112. const setValue = value => {
  3113. return commandStack.execute('element.updateModdleProperties', updateFormalExpression(element, 'loopCardinality', value, bpmnFactory));
  3114. };
  3115. return TextFieldEntry({
  3116. element,
  3117. id: 'loopCardinality',
  3118. label: translate('Loop cardinality'),
  3119. getValue,
  3120. setValue,
  3121. debounce
  3122. });
  3123. }
  3124. function CompletionCondition$1(props) {
  3125. const {
  3126. element
  3127. } = props;
  3128. const bpmnFactory = useService('bpmnFactory');
  3129. const debounce = useService('debounceInput');
  3130. const commandStack = useService('commandStack');
  3131. const translate = useService('translate');
  3132. const getValue = () => {
  3133. return getCompletionConditionValue(element);
  3134. };
  3135. const setValue = value => {
  3136. return commandStack.execute('element.updateModdleProperties', updateFormalExpression(element, 'completionCondition', value, bpmnFactory));
  3137. };
  3138. return TextFieldEntry({
  3139. element,
  3140. id: 'completionCondition',
  3141. label: translate('Completion condition'),
  3142. getValue,
  3143. setValue,
  3144. debounce
  3145. });
  3146. }
  3147. // helper ////////////////////////////
  3148. // generic ///////////////////////////
  3149. /**
  3150. * isMultiInstanceSupported - check whether given element supports MultiInstanceLoopCharacteristics.
  3151. *
  3152. * @param {djs.model.Base} element
  3153. * @return {boolean}
  3154. */
  3155. function isMultiInstanceSupported$1(element) {
  3156. const loopCharacteristics = getLoopCharacteristics$2(element);
  3157. return !!loopCharacteristics && is(loopCharacteristics, 'bpmn:MultiInstanceLoopCharacteristics');
  3158. }
  3159. /**
  3160. * getBody - get the body of a given expression.
  3161. *
  3162. * @param {ModdleElement<bpmn:FormalExpression>} expression
  3163. * @return {string} the body (value) of the expression
  3164. */
  3165. function getBody(expression) {
  3166. return expression && expression.get('body');
  3167. }
  3168. /**
  3169. * getProperty - get a property value of the loop characteristics.
  3170. *
  3171. * @param {djs.model.Base} element
  3172. * @param {string} propertyName
  3173. *
  3174. * @return {any} the property value
  3175. */
  3176. function getProperty$2(element, propertyName) {
  3177. const loopCharacteristics = getLoopCharacteristics$2(element);
  3178. return loopCharacteristics && loopCharacteristics.get(propertyName);
  3179. }
  3180. /**
  3181. * getLoopCharacteristics - get loopCharacteristics of a given element.
  3182. *
  3183. * @param {djs.model.Base} element
  3184. * @return {ModdleElement<bpmn:MultiInstanceLoopCharacteristics> | undefined}
  3185. */
  3186. function getLoopCharacteristics$2(element) {
  3187. const bo = getBusinessObject(element);
  3188. return bo.loopCharacteristics;
  3189. }
  3190. /**
  3191. * createFormalExpression - creates a 'bpmn:FormalExpression' element.
  3192. *
  3193. * @param {ModdleElement} parent
  3194. * @param {string} body
  3195. * @param {BpmnFactory} bpmnFactory
  3196. *
  3197. * @result {ModdleElement<bpmn:FormalExpression>} a formal expression
  3198. */
  3199. function createFormalExpression$1(parent, body, bpmnFactory) {
  3200. return createElement('bpmn:FormalExpression', {
  3201. body: body
  3202. }, parent, bpmnFactory);
  3203. }
  3204. /**
  3205. * updateFormalExpression - updates a specific formal expression of the loop characteristics.
  3206. *
  3207. * @param {djs.model.Base} element
  3208. * @param {string} propertyName
  3209. * @param {string} newValue
  3210. * @param {BpmnFactory} bpmnFactory
  3211. */
  3212. function updateFormalExpression(element, propertyName, newValue, bpmnFactory) {
  3213. const loopCharacteristics = getLoopCharacteristics$2(element);
  3214. const expressionProps = {};
  3215. if (!newValue) {
  3216. // remove formal expression
  3217. expressionProps[propertyName] = undefined;
  3218. return {
  3219. element,
  3220. moddleElement: loopCharacteristics,
  3221. properties: expressionProps
  3222. };
  3223. }
  3224. const existingExpression = loopCharacteristics.get(propertyName);
  3225. if (!existingExpression) {
  3226. // add formal expression
  3227. expressionProps[propertyName] = createFormalExpression$1(loopCharacteristics, newValue, bpmnFactory);
  3228. return {
  3229. element,
  3230. moddleElement: loopCharacteristics,
  3231. properties: expressionProps
  3232. };
  3233. }
  3234. // edit existing formal expression
  3235. return {
  3236. element,
  3237. moddleElement: existingExpression,
  3238. properties: {
  3239. body: newValue
  3240. }
  3241. };
  3242. }
  3243. // loopCardinality
  3244. /**
  3245. * getLoopCardinality - get the loop cardinality of the loop characteristics.
  3246. *
  3247. * @param {djs.model.Base} element
  3248. *
  3249. * @return {ModdleElement<bpmn:FormalExpression>} an expression representing the loop cardinality
  3250. */
  3251. function getLoopCardinality(element) {
  3252. return getProperty$2(element, 'loopCardinality');
  3253. }
  3254. /**
  3255. * getLoopCardinalityValue - get the loop cardinality value of the loop characteristics.
  3256. *
  3257. * @param {djs.model.Base} element
  3258. *
  3259. * @return {string} the loop cardinality value
  3260. */
  3261. function getLoopCardinalityValue(element) {
  3262. const loopCardinality = getLoopCardinality(element);
  3263. return getBody(loopCardinality);
  3264. }
  3265. // completionCondition /////////////////////
  3266. /**
  3267. * getCompletionCondition - get the completion condition of the loop characteristics.
  3268. *
  3269. * @param {djs.model.Base} element
  3270. *
  3271. * @return {ModdleElement<bpmn:FormalExpression>} an expression representing the completion condition
  3272. */
  3273. function getCompletionCondition$1(element) {
  3274. return getProperty$2(element, 'completionCondition');
  3275. }
  3276. /**
  3277. * getCompletionConditionValue - get the completion condition value of the loop characteristics.
  3278. *
  3279. * @param {djs.model.Base} element
  3280. *
  3281. * @return {string} the completion condition value
  3282. */
  3283. function getCompletionConditionValue(element) {
  3284. const completionCondition = getCompletionCondition$1(element);
  3285. return getBody(completionCondition);
  3286. }
  3287. /**
  3288. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  3289. */
  3290. /**
  3291. * @returns {Array<Entry>} entries
  3292. */
  3293. function NameProps(props) {
  3294. const {
  3295. element
  3296. } = props;
  3297. if (isAny(element, ['bpmn:Collaboration', 'bpmn:DataAssociation', 'bpmn:Association'])) {
  3298. return [];
  3299. }
  3300. return [{
  3301. id: 'name',
  3302. component: Name$3,
  3303. isEdited: isTextAreaEntryEdited
  3304. }];
  3305. }
  3306. function Name$3(props) {
  3307. const {
  3308. element
  3309. } = props;
  3310. const modeling = useService('modeling');
  3311. const debounce = useService('debounceInput');
  3312. const canvas = useService('canvas');
  3313. const bpmnFactory = useService('bpmnFactory');
  3314. const translate = useService('translate');
  3315. // (1) default: name
  3316. let options = {
  3317. element,
  3318. id: 'name',
  3319. label: translate('Name'),
  3320. debounce,
  3321. setValue: value => {
  3322. modeling.updateProperties(element, {
  3323. name: value
  3324. });
  3325. },
  3326. getValue: element => {
  3327. return element.businessObject.name;
  3328. },
  3329. autoResize: true
  3330. };
  3331. // (2) text annotations
  3332. if (is(element, 'bpmn:TextAnnotation')) {
  3333. options = {
  3334. ...options,
  3335. setValue: value => {
  3336. modeling.updateProperties(element, {
  3337. text: value
  3338. });
  3339. },
  3340. getValue: element => {
  3341. return element.businessObject.text;
  3342. }
  3343. };
  3344. }
  3345. // (3) groups
  3346. else if (is(element, 'bpmn:Group')) {
  3347. options = {
  3348. ...options,
  3349. setValue: value => {
  3350. const businessObject = getBusinessObject(element),
  3351. categoryValueRef = businessObject.categoryValueRef;
  3352. if (!categoryValueRef) {
  3353. initializeCategory(businessObject, canvas.getRootElement(), bpmnFactory);
  3354. }
  3355. modeling.updateLabel(element, value);
  3356. },
  3357. getValue: element => {
  3358. const businessObject = getBusinessObject(element),
  3359. categoryValueRef = businessObject.categoryValueRef;
  3360. return categoryValueRef && categoryValueRef.value;
  3361. }
  3362. };
  3363. }
  3364. // (4) participants (only update label)
  3365. else if (is(element, 'bpmn:Participant')) {
  3366. options.label = translate('Participant Name');
  3367. }
  3368. return TextAreaEntry(options);
  3369. }
  3370. // helpers ////////////////////////
  3371. function initializeCategory(businessObject, rootElement, bpmnFactory) {
  3372. const definitions = getBusinessObject(rootElement).$parent;
  3373. const categoryValue = createCategoryValue(definitions, bpmnFactory);
  3374. businessObject.categoryValueRef = categoryValue;
  3375. }
  3376. function createCategoryValue(definitions, bpmnFactory) {
  3377. const categoryValue = bpmnFactory.create('bpmn:CategoryValue');
  3378. const category = bpmnFactory.create('bpmn:Category', {
  3379. categoryValue: [categoryValue]
  3380. });
  3381. // add to correct place
  3382. add(definitions.get('rootElements'), category);
  3383. getBusinessObject(category).$parent = definitions;
  3384. getBusinessObject(categoryValue).$parent = category;
  3385. return categoryValue;
  3386. }
  3387. /**
  3388. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  3389. */
  3390. /**
  3391. * @returns {Array<Entry>} entries
  3392. */
  3393. function ProcessProps(props) {
  3394. const {
  3395. element
  3396. } = props;
  3397. if (!hasProcessRef(element)) {
  3398. return [];
  3399. }
  3400. return [{
  3401. id: 'processId',
  3402. component: ProcessId,
  3403. isEdited: isTextFieldEntryEdited
  3404. }, {
  3405. id: 'processName',
  3406. component: ProcessName,
  3407. isEdited: isTextFieldEntryEdited
  3408. }];
  3409. }
  3410. function ProcessName(props) {
  3411. const {
  3412. element
  3413. } = props;
  3414. const commandStack = useService('commandStack');
  3415. const translate = useService('translate');
  3416. const debounce = useService('debounceInput');
  3417. const process = element.businessObject.get('processRef');
  3418. const getValue = () => {
  3419. return process.get('name');
  3420. };
  3421. const setValue = value => {
  3422. commandStack.execute('element.updateModdleProperties', {
  3423. element,
  3424. moddleElement: process,
  3425. properties: {
  3426. name: value
  3427. }
  3428. });
  3429. };
  3430. return TextFieldEntry({
  3431. element,
  3432. id: 'processName',
  3433. label: translate('Process name'),
  3434. getValue,
  3435. setValue,
  3436. debounce
  3437. });
  3438. }
  3439. function ProcessId(props) {
  3440. const {
  3441. element
  3442. } = props;
  3443. const commandStack = useService('commandStack');
  3444. const translate = useService('translate');
  3445. const debounce = useService('debounceInput');
  3446. const process = element.businessObject.get('processRef');
  3447. const getValue = () => {
  3448. return process.get('id');
  3449. };
  3450. const setValue = (value, error) => {
  3451. if (error) {
  3452. return;
  3453. }
  3454. commandStack.execute('element.updateModdleProperties', {
  3455. element,
  3456. moddleElement: process,
  3457. properties: {
  3458. id: value
  3459. }
  3460. });
  3461. };
  3462. const validate = value => {
  3463. return isIdValid(process, value, translate);
  3464. };
  3465. return TextFieldEntry({
  3466. element,
  3467. id: 'processId',
  3468. label: translate('Process ID'),
  3469. getValue,
  3470. setValue,
  3471. debounce,
  3472. validate
  3473. });
  3474. }
  3475. // helper ////////////////
  3476. function hasProcessRef(element) {
  3477. return is(element, 'bpmn:Participant') && element.businessObject.get('processRef');
  3478. }
  3479. /**
  3480. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  3481. */
  3482. const EMPTY_OPTION$2 = '';
  3483. const CREATE_NEW_OPTION$1 = 'create-new';
  3484. /**
  3485. * @returns {Entry[]}
  3486. */
  3487. function SignalProps$1(props) {
  3488. const {
  3489. element
  3490. } = props;
  3491. if (!isSignalSupported$1(element)) {
  3492. return [];
  3493. }
  3494. const signal = getSignal$1(element);
  3495. let entries = [{
  3496. id: 'signalRef',
  3497. component: SignalRef,
  3498. isEdited: isSelectEntryEdited
  3499. }];
  3500. if (signal) {
  3501. entries = [...entries, {
  3502. id: 'signalName',
  3503. component: SignalName$1,
  3504. isEdited: isTextFieldEntryEdited
  3505. }];
  3506. }
  3507. return entries;
  3508. }
  3509. function SignalRef(props) {
  3510. const {
  3511. element
  3512. } = props;
  3513. const bpmnFactory = useService('bpmnFactory');
  3514. const commandStack = useService('commandStack');
  3515. const translate = useService('translate');
  3516. const signalEventDefinition = getSignalEventDefinition$1(element);
  3517. const getValue = () => {
  3518. const signal = getSignal$1(element);
  3519. if (signal) {
  3520. return signal.get('id');
  3521. }
  3522. return EMPTY_OPTION$2;
  3523. };
  3524. const setValue = value => {
  3525. const root = getRoot(signalEventDefinition);
  3526. const commands = [];
  3527. let signal;
  3528. // (1) create new signal
  3529. if (value === CREATE_NEW_OPTION$1) {
  3530. const id = nextId('Signal_');
  3531. signal = createElement('bpmn:Signal', {
  3532. id,
  3533. name: id
  3534. }, root, bpmnFactory);
  3535. value = signal.get('id');
  3536. commands.push({
  3537. cmd: 'element.updateModdleProperties',
  3538. context: {
  3539. element,
  3540. moddleElement: root,
  3541. properties: {
  3542. rootElements: [...root.get('rootElements'), signal]
  3543. }
  3544. }
  3545. });
  3546. }
  3547. // (2) update (or remove) signalRef
  3548. signal = signal || findRootElementById(signalEventDefinition, 'bpmn:Signal', value);
  3549. commands.push({
  3550. cmd: 'element.updateModdleProperties',
  3551. context: {
  3552. element,
  3553. moddleElement: signalEventDefinition,
  3554. properties: {
  3555. signalRef: signal
  3556. }
  3557. }
  3558. });
  3559. // (3) commit all updates
  3560. return commandStack.execute('properties-panel.multi-command-executor', commands);
  3561. };
  3562. const getOptions = () => {
  3563. let options = [{
  3564. value: EMPTY_OPTION$2,
  3565. label: translate('<none>')
  3566. }, {
  3567. value: CREATE_NEW_OPTION$1,
  3568. label: translate('Create new ...')
  3569. }];
  3570. const signals = findRootElementsByType(getBusinessObject(element), 'bpmn:Signal');
  3571. sortByName$2(signals).forEach(signal => {
  3572. options.push({
  3573. value: signal.get('id'),
  3574. label: signal.get('name')
  3575. });
  3576. });
  3577. return options;
  3578. };
  3579. return ReferenceSelectEntry({
  3580. element,
  3581. id: 'signalRef',
  3582. label: translate('Global signal reference'),
  3583. autoFocusEntry: 'signalName',
  3584. getValue,
  3585. setValue,
  3586. getOptions
  3587. });
  3588. }
  3589. function SignalName$1(props) {
  3590. const {
  3591. element
  3592. } = props;
  3593. const commandStack = useService('commandStack');
  3594. const translate = useService('translate');
  3595. const debounce = useService('debounceInput');
  3596. const signal = getSignal$1(element);
  3597. const getValue = () => {
  3598. return signal.get('name');
  3599. };
  3600. const setValue = value => {
  3601. return commandStack.execute('element.updateModdleProperties', {
  3602. element,
  3603. moddleElement: signal,
  3604. properties: {
  3605. name: value
  3606. }
  3607. });
  3608. };
  3609. return TextFieldEntry({
  3610. element,
  3611. id: 'signalName',
  3612. label: translate('Name'),
  3613. getValue,
  3614. setValue,
  3615. debounce
  3616. });
  3617. }
  3618. // helper /////////////////////////
  3619. function sortByName$2(elements) {
  3620. return sortBy(elements, e => (e.name || '').toLowerCase());
  3621. }
  3622. function isTimerSupported(element) {
  3623. return isAny(element, ['bpmn:StartEvent', 'bpmn:IntermediateCatchEvent', 'bpmn:BoundaryEvent']) && !!getTimerEventDefinition(element);
  3624. }
  3625. /**
  3626. * Get the timer definition type for a given timer event definition.
  3627. *
  3628. * @param {ModdleElement<bpmn:TimerEventDefinition>} timer
  3629. *
  3630. * @return {string|undefined} the timer definition type
  3631. */
  3632. function getTimerDefinitionType(timer) {
  3633. if (!timer) {
  3634. return;
  3635. }
  3636. const timeDate = timer.get('timeDate');
  3637. if (typeof timeDate !== 'undefined') {
  3638. return 'timeDate';
  3639. }
  3640. const timeCycle = timer.get('timeCycle');
  3641. if (typeof timeCycle !== 'undefined') {
  3642. return 'timeCycle';
  3643. }
  3644. const timeDuration = timer.get('timeDuration');
  3645. if (typeof timeDuration !== 'undefined') {
  3646. return 'timeDuration';
  3647. }
  3648. }
  3649. function getTimerEventDefinition(element) {
  3650. return getEventDefinition(element, 'bpmn:TimerEventDefinition');
  3651. }
  3652. function getEventDefinition(element, eventType) {
  3653. const businessObject = getBusinessObject(element);
  3654. const eventDefinitions = businessObject.get('eventDefinitions') || [];
  3655. return find(eventDefinitions, function (definition) {
  3656. return is(definition, eventType);
  3657. });
  3658. }
  3659. function getSignalEventDefinition(element) {
  3660. return getEventDefinition(element, 'bpmn:SignalEventDefinition');
  3661. }
  3662. function isSignalSupported(element) {
  3663. return is(element, 'bpmn:Event') && !!getSignalEventDefinition(element);
  3664. }
  3665. function getSignal(element) {
  3666. const signalEventDefinition = getSignalEventDefinition(element);
  3667. return signalEventDefinition && signalEventDefinition.get('signalRef');
  3668. }
  3669. function TimerProps$2(props) {
  3670. const {
  3671. element,
  3672. idPrefix
  3673. } = props;
  3674. let {
  3675. timerEventDefinition
  3676. } = props;
  3677. if (!timerEventDefinition) {
  3678. const businessObject = getBusinessObject(element);
  3679. timerEventDefinition = getTimerEventDefinition(businessObject);
  3680. }
  3681. const timerEventDefinitionType = getTimerDefinitionType(timerEventDefinition);
  3682. // (1) Only show for supported elements
  3683. if (!isTimerSupported(element)) {
  3684. return [];
  3685. }
  3686. // (2) Provide entries, have a value only if selection was made
  3687. const entries = [];
  3688. entries.push({
  3689. id: getId$1(idPrefix, 'timerEventDefinitionType'),
  3690. component: TimerEventDefinitionType$2,
  3691. isEdited: isSelectEntryEdited,
  3692. timerEventDefinition,
  3693. timerEventDefinitionType
  3694. });
  3695. if (timerEventDefinitionType) {
  3696. entries.push({
  3697. id: getId$1(idPrefix, 'timerEventDefinitionValue'),
  3698. component: TimerEventDefinitionValue$2,
  3699. isEdited: isTextFieldEntryEdited,
  3700. timerEventDefinition,
  3701. timerEventDefinitionType
  3702. });
  3703. }
  3704. return entries;
  3705. }
  3706. /**
  3707. * TimerEventDefinitionType - Generic select entry allowing to select a specific
  3708. * timerEventDefintionType. To be used together with timerEventDefinitionValue.
  3709. *
  3710. * @param {type} props
  3711. * @return {SelectEntry}
  3712. */
  3713. function TimerEventDefinitionType$2(props) {
  3714. const {
  3715. element,
  3716. timerEventDefinition,
  3717. timerEventDefinitionType
  3718. } = props;
  3719. const commandStack = useService('commandStack'),
  3720. bpmnFactory = useService('bpmnFactory'),
  3721. translate = useService('translate');
  3722. const getValue = () => {
  3723. return timerEventDefinitionType || '';
  3724. };
  3725. const setValue = value => {
  3726. // (1) Check if value is different to current type
  3727. if (value === timerEventDefinitionType) {
  3728. return;
  3729. }
  3730. // (2) Create empty formalExpression element
  3731. const formalExpression = bpmnFactory.create('bpmn:FormalExpression', {
  3732. body: undefined
  3733. });
  3734. formalExpression.$parent = timerEventDefinition;
  3735. // (3) Set the value for selected timerEventDefinitionType
  3736. const newProps = {
  3737. timeDuration: undefined,
  3738. timeDate: undefined,
  3739. timeCycle: undefined
  3740. };
  3741. if (value !== '') {
  3742. newProps[value] = formalExpression;
  3743. }
  3744. // (4) Execute businessObject update
  3745. commandStack.execute('element.updateModdleProperties', {
  3746. element,
  3747. moddleElement: timerEventDefinition,
  3748. properties: newProps
  3749. });
  3750. };
  3751. const getOptions = element => {
  3752. return [{
  3753. value: '',
  3754. label: translate('<none>')
  3755. }, {
  3756. value: 'timeDate',
  3757. label: translate('Date')
  3758. }, {
  3759. value: 'timeDuration',
  3760. label: translate('Duration')
  3761. }, {
  3762. value: 'timeCycle',
  3763. label: translate('Cycle')
  3764. }];
  3765. };
  3766. return SelectEntry({
  3767. element,
  3768. id: 'timerEventDefinitionType',
  3769. label: translate('Type'),
  3770. getValue,
  3771. setValue,
  3772. getOptions
  3773. });
  3774. }
  3775. /**
  3776. * TimerEventDefinitionValue - Generic textField entry allowing to specify the
  3777. * timerEventDefintionValue based on the set timerEventDefintionType. To be used
  3778. * together with timerEventDefinitionType.
  3779. *
  3780. * @param {type} props
  3781. * @return {TextFieldEntry}
  3782. */
  3783. function TimerEventDefinitionValue$2(props) {
  3784. const {
  3785. element,
  3786. timerEventDefinition,
  3787. timerEventDefinitionType
  3788. } = props;
  3789. const commandStack = useService('commandStack'),
  3790. translate = useService('translate'),
  3791. debounce = useService('debounceInput');
  3792. const timerEventFormalExpression = timerEventDefinition.get(timerEventDefinitionType);
  3793. const getValue = () => {
  3794. return timerEventFormalExpression && timerEventFormalExpression.get('body');
  3795. };
  3796. const setValue = value => {
  3797. commandStack.execute('element.updateModdleProperties', {
  3798. element,
  3799. moddleElement: timerEventFormalExpression,
  3800. properties: {
  3801. body: value
  3802. }
  3803. });
  3804. };
  3805. return TextFieldEntry({
  3806. element,
  3807. id: 'timerEventDefinitionValue',
  3808. label: translate('Value'),
  3809. getValue,
  3810. setValue,
  3811. debounce,
  3812. tooltip: getTimerEventDefinitionValueDescription$2(timerEventDefinitionType, translate)
  3813. });
  3814. }
  3815. // helper //////////////////////////
  3816. function getTimerEventDefinitionValueDescription$2(timerDefinitionType, translate) {
  3817. switch (timerDefinitionType) {
  3818. case 'timeDate':
  3819. return jsxs("div", {
  3820. children: [jsx("p", {
  3821. children: translate('A specific point in time defined as ISO 8601 combined date and time representation.')
  3822. }), jsxs("ul", {
  3823. children: [jsxs("li", {
  3824. children: [jsx("code", {
  3825. children: "2019-10-01T12:00:00Z"
  3826. }), " - ", translate('UTC time')]
  3827. }), jsxs("li", {
  3828. children: [jsx("code", {
  3829. children: "2019-10-02T08:09:40+02:00"
  3830. }), " - ", translate('UTC plus 2 hours zone offset')]
  3831. })]
  3832. }), jsx("a", {
  3833. href: "https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-date",
  3834. target: "_blank",
  3835. rel: "noopener",
  3836. children: translate('Documentation: Timer events')
  3837. })]
  3838. });
  3839. case 'timeCycle':
  3840. return jsxs("div", {
  3841. children: [jsx("p", {
  3842. children: translate('A cycle defined as ISO 8601 repeating intervals format.')
  3843. }), jsxs("ul", {
  3844. children: [jsxs("li", {
  3845. children: [jsx("code", {
  3846. children: "R5/PT10S"
  3847. }), " - ", translate('every 10 seconds, up to 5 times')]
  3848. }), jsxs("li", {
  3849. children: [jsx("code", {
  3850. children: "R/P1D"
  3851. }), " - ", translate('every day, infinitely')]
  3852. })]
  3853. }), jsx("a", {
  3854. href: "https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-cycle",
  3855. target: "_blank",
  3856. rel: "noopener",
  3857. children: translate('Documentation: Timer events')
  3858. })]
  3859. });
  3860. case 'timeDuration':
  3861. return jsxs("div", {
  3862. children: [jsx("p", {
  3863. children: translate('A time duration defined as ISO 8601 durations format.')
  3864. }), jsxs("ul", {
  3865. children: [jsxs("li", {
  3866. children: [jsx("code", {
  3867. children: "PT15S"
  3868. }), " - ", translate('15 seconds')]
  3869. }), jsxs("li", {
  3870. children: [jsx("code", {
  3871. children: "PT1H30M"
  3872. }), " - ", translate('1 hour and 30 minutes')]
  3873. }), jsxs("li", {
  3874. children: [jsx("code", {
  3875. children: "P14D"
  3876. }), " - ", translate('14 days')]
  3877. })]
  3878. }), jsx("a", {
  3879. href: "https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-duration",
  3880. target: "_blank",
  3881. rel: "noopener",
  3882. children: translate('Documentation: Timer events')
  3883. })]
  3884. });
  3885. }
  3886. }
  3887. function getId$1(idPrefix, id) {
  3888. return idPrefix ? idPrefix + id : id;
  3889. }
  3890. function GeneralGroup(element, injector) {
  3891. const translate = injector.get('translate');
  3892. const entries = [...NameProps({
  3893. element
  3894. }), ...IdProps(), ...ProcessProps({
  3895. element
  3896. }), ...ExecutableProps({
  3897. element
  3898. })];
  3899. return {
  3900. id: 'general',
  3901. label: translate('General'),
  3902. entries,
  3903. component: Group
  3904. };
  3905. }
  3906. function CompensationGroup(element, injector) {
  3907. const translate = injector.get('translate');
  3908. const group = {
  3909. label: translate('Compensation'),
  3910. id: 'compensation',
  3911. component: Group,
  3912. entries: [...CompensationProps({
  3913. element
  3914. })]
  3915. };
  3916. if (group.entries.length) {
  3917. return group;
  3918. }
  3919. return null;
  3920. }
  3921. function DocumentationGroup(element, injector) {
  3922. const translate = injector.get('translate');
  3923. const entries = [...DocumentationProps({
  3924. element
  3925. })];
  3926. return {
  3927. id: 'documentation',
  3928. label: translate('Documentation'),
  3929. entries,
  3930. component: Group
  3931. };
  3932. }
  3933. function ErrorGroup(element, injector) {
  3934. const translate = injector.get('translate');
  3935. const group = {
  3936. id: 'error',
  3937. label: translate('Error'),
  3938. component: Group,
  3939. entries: [...ErrorProps$2({
  3940. element
  3941. })]
  3942. };
  3943. if (group.entries.length) {
  3944. return group;
  3945. }
  3946. return null;
  3947. }
  3948. function MessageGroup(element, injector) {
  3949. const translate = injector.get('translate');
  3950. const group = {
  3951. id: 'message',
  3952. label: translate('Message'),
  3953. component: Group,
  3954. entries: [...MessageProps$1({
  3955. element
  3956. })]
  3957. };
  3958. if (group.entries.length) {
  3959. return group;
  3960. }
  3961. return null;
  3962. }
  3963. function SignalGroup(element, injector) {
  3964. const translate = injector.get('translate');
  3965. const group = {
  3966. id: 'signal',
  3967. label: translate('Signal'),
  3968. component: Group,
  3969. entries: [...SignalProps$1({
  3970. element
  3971. })]
  3972. };
  3973. if (group.entries.length) {
  3974. return group;
  3975. }
  3976. return null;
  3977. }
  3978. function LinkGroup(element, injector) {
  3979. const translate = injector.get('translate');
  3980. const group = {
  3981. label: translate('Link'),
  3982. id: 'link',
  3983. component: Group,
  3984. entries: [...LinkProps({
  3985. element
  3986. })]
  3987. };
  3988. if (group.entries.length) {
  3989. return group;
  3990. }
  3991. return null;
  3992. }
  3993. function EscalationGroup(element, injector) {
  3994. const translate = injector.get('translate');
  3995. const group = {
  3996. id: 'escalation',
  3997. label: translate('Escalation'),
  3998. component: Group,
  3999. entries: [...EscalationProps$2({
  4000. element
  4001. })]
  4002. };
  4003. if (group.entries.length) {
  4004. return group;
  4005. }
  4006. return null;
  4007. }
  4008. function TimerGroup(element, injector) {
  4009. const translate = injector.get('translate');
  4010. const group = {
  4011. label: translate('Timer'),
  4012. id: 'timer',
  4013. component: Group,
  4014. entries: [...TimerProps$2({
  4015. element
  4016. })]
  4017. };
  4018. if (group.entries.length) {
  4019. return group;
  4020. }
  4021. return null;
  4022. }
  4023. function MultiInstanceGroup(element, injector) {
  4024. const translate = injector.get('translate');
  4025. const group = {
  4026. label: translate('Multi-instance'),
  4027. id: 'multiInstance',
  4028. component: Group,
  4029. entries: [...MultiInstanceProps$2({
  4030. element
  4031. })]
  4032. };
  4033. if (group.entries.length) {
  4034. return group;
  4035. }
  4036. return null;
  4037. }
  4038. function getGroups(element, injector) {
  4039. 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)];
  4040. // contract: if a group returns null, it should not be displayed at all
  4041. return groups.filter(group => group !== null);
  4042. }
  4043. class BpmnPropertiesProvider {
  4044. constructor(propertiesPanel, injector) {
  4045. propertiesPanel.registerProvider(this);
  4046. this._injector = injector;
  4047. }
  4048. getGroups(element) {
  4049. return groups => {
  4050. groups = groups.concat(getGroups(element, this._injector));
  4051. return groups;
  4052. };
  4053. }
  4054. }
  4055. BpmnPropertiesProvider.$inject = ['propertiesPanel', 'injector'];
  4056. var index$2 = {
  4057. __init__: ['bpmnPropertiesProvider'],
  4058. bpmnPropertiesProvider: ['type', BpmnPropertiesProvider]
  4059. };
  4060. /**
  4061. * Get extension elements of business object. Optionally filter by type.
  4062. *
  4063. * @param {ModdleElement} businessObject
  4064. * @param {String} [type=undefined]
  4065. * @returns {Array<ModdleElement>}
  4066. */
  4067. function getExtensionElementsList(businessObject, type = undefined) {
  4068. const extensionElements = businessObject.get('extensionElements');
  4069. if (!extensionElements) {
  4070. return [];
  4071. }
  4072. const values = extensionElements.get('values');
  4073. if (!values || !values.length) {
  4074. return [];
  4075. }
  4076. if (type) {
  4077. return values.filter(value => is(value, type));
  4078. }
  4079. return values;
  4080. }
  4081. /**
  4082. * Add one or more extension elements. Create bpmn:ExtensionElements if it doesn't exist.
  4083. *
  4084. * @param {ModdleElement} element
  4085. * @param {ModdleElement} businessObject
  4086. * @param {ModdleElement|Array<ModdleElement>} extensionElementsToAdd
  4087. * @param {CommandStack} commandStack
  4088. */
  4089. function addExtensionElements(element, businessObject, extensionElementToAdd, bpmnFactory, commandStack) {
  4090. const commands = [];
  4091. let extensionElements = businessObject.get('extensionElements');
  4092. // (1) create bpmn:ExtensionElements if it doesn't exist
  4093. if (!extensionElements) {
  4094. extensionElements = createElement('bpmn:ExtensionElements', {
  4095. values: []
  4096. }, businessObject, bpmnFactory);
  4097. commands.push({
  4098. cmd: 'element.updateModdleProperties',
  4099. context: {
  4100. element,
  4101. moddleElement: businessObject,
  4102. properties: {
  4103. extensionElements
  4104. }
  4105. }
  4106. });
  4107. }
  4108. extensionElementToAdd.$parent = extensionElements;
  4109. // (2) add extension element to list
  4110. commands.push({
  4111. cmd: 'element.updateModdleProperties',
  4112. context: {
  4113. element,
  4114. moddleElement: extensionElements,
  4115. properties: {
  4116. values: [...extensionElements.get('values'), extensionElementToAdd]
  4117. }
  4118. }
  4119. });
  4120. commandStack.execute('properties-panel.multi-command-executor', commands);
  4121. }
  4122. /**
  4123. * Remove one or more extension elements. Remove bpmn:ExtensionElements afterwards if it's empty.
  4124. *
  4125. * @param {ModdleElement} element
  4126. * @param {ModdleElement} businessObject
  4127. * @param {ModdleElement|Array<ModdleElement>} extensionElementsToRemove
  4128. * @param {CommandStack} commandStack
  4129. */
  4130. function removeExtensionElements(element, businessObject, extensionElementsToRemove, commandStack) {
  4131. if (!isArray(extensionElementsToRemove)) {
  4132. extensionElementsToRemove = [extensionElementsToRemove];
  4133. }
  4134. const extensionElements = businessObject.get('extensionElements'),
  4135. values = extensionElements.get('values').filter(value => !extensionElementsToRemove.includes(value));
  4136. commandStack.execute('element.updateModdleProperties', {
  4137. element,
  4138. moddleElement: extensionElements,
  4139. properties: {
  4140. values
  4141. }
  4142. });
  4143. }
  4144. const fallbackResolver = {
  4145. getVariablesForElement: bo => getVariablesForElement(bo)
  4146. };
  4147. function withVariableContext(Component) {
  4148. return props => {
  4149. const {
  4150. bpmnElement,
  4151. element
  4152. } = props;
  4153. const bo = (bpmnElement || element).businessObject;
  4154. const [variables, setVariables] = useState([]);
  4155. const eventBus = useService('eventBus');
  4156. const variableResolver = useServiceIfAvailable('variableResolver', fallbackResolver);
  4157. useEffect(() => {
  4158. const extractVariables = async () => {
  4159. const variables = await variableResolver.getVariablesForElement(bo, element);
  4160. setVariables(variables.map(variable => {
  4161. return {
  4162. ...variable,
  4163. info: variable.info || variable.origin && 'Written in ' + variable.origin.map(origin => origin.name || origin.id).join(', ')
  4164. };
  4165. }));
  4166. };
  4167. // The callback must return undefined, so the event propagation is not canceled.
  4168. // Cf. https://github.com/camunda/camunda-modeler/issues/3392
  4169. const callback = () => {
  4170. extractVariables();
  4171. };
  4172. eventBus.on('commandStack.changed', callback);
  4173. callback();
  4174. return () => {
  4175. eventBus.off('commandStack.changed', callback);
  4176. };
  4177. }, [bo]);
  4178. return jsx(Component, {
  4179. ...props,
  4180. variables: variables
  4181. });
  4182. };
  4183. }
  4184. // helpers //////////
  4185. function useServiceIfAvailable(service, fallback) {
  4186. const resolved = useService(service, false);
  4187. if (!resolved) {
  4188. return fallback;
  4189. }
  4190. return resolved;
  4191. }
  4192. function withTooltipContainer(Component) {
  4193. return props => {
  4194. const tooltipContainer = useMemo(() => {
  4195. const config = useService('config');
  4196. return config && config.propertiesPanel && config.propertiesPanel.feelTooltipContainer;
  4197. }, []);
  4198. return jsx(Component, {
  4199. ...props,
  4200. tooltipContainer: tooltipContainer
  4201. });
  4202. };
  4203. }
  4204. const FeelEntry = withTooltipContainer(FeelEntry$1);
  4205. const FeelEntryWithVariableContext = withVariableContext(FeelEntry);
  4206. function AssignmentDefinitionProps(props) {
  4207. const {
  4208. element
  4209. } = props;
  4210. if (!is(element, 'bpmn:UserTask')) {
  4211. return [];
  4212. }
  4213. return [{
  4214. id: 'assignmentDefinitionAssignee',
  4215. component: Assignee$1,
  4216. isEdited: isFeelEntryEdited
  4217. }, {
  4218. id: 'assignmentDefinitionCandidateGroups',
  4219. component: CandidateGroups$1,
  4220. isEdited: isFeelEntryEdited
  4221. }, {
  4222. id: 'assignmentDefinitionCandidateUsers',
  4223. component: CandidateUsers$1,
  4224. isEdited: isFeelEntryEdited
  4225. }];
  4226. }
  4227. function Assignee$1(props) {
  4228. const {
  4229. element
  4230. } = props;
  4231. const commandStack = useService('commandStack');
  4232. const bpmnFactory = useService('bpmnFactory');
  4233. const translate = useService('translate');
  4234. const debounce = useService('debounceInput');
  4235. const getValue = () => {
  4236. return (getAssignmentDefinition(element) || {}).assignee;
  4237. };
  4238. const setValue = value => {
  4239. const commands = [];
  4240. const businessObject = getBusinessObject(element);
  4241. let extensionElements = businessObject.get('extensionElements');
  4242. // (1) ensure extension elements
  4243. if (!extensionElements) {
  4244. extensionElements = createElement('bpmn:ExtensionElements', {
  4245. values: []
  4246. }, businessObject, bpmnFactory);
  4247. commands.push({
  4248. cmd: 'element.updateModdleProperties',
  4249. context: {
  4250. element,
  4251. moddleElement: businessObject,
  4252. properties: {
  4253. extensionElements
  4254. }
  4255. }
  4256. });
  4257. }
  4258. // (2) ensure AssignmentDefinition
  4259. let assignmentDefinition = getAssignmentDefinition(element);
  4260. if (!assignmentDefinition) {
  4261. assignmentDefinition = createElement('zeebe:AssignmentDefinition', {}, extensionElements, bpmnFactory);
  4262. commands.push({
  4263. cmd: 'element.updateModdleProperties',
  4264. context: {
  4265. element,
  4266. moddleElement: extensionElements,
  4267. properties: {
  4268. values: [...extensionElements.get('values'), assignmentDefinition]
  4269. }
  4270. }
  4271. });
  4272. }
  4273. // (3) update assignee definition type
  4274. commands.push({
  4275. cmd: 'element.updateModdleProperties',
  4276. context: {
  4277. element,
  4278. moddleElement: assignmentDefinition,
  4279. properties: {
  4280. assignee: value
  4281. }
  4282. }
  4283. });
  4284. // (4) commit all updates
  4285. commandStack.execute('properties-panel.multi-command-executor', commands);
  4286. };
  4287. return FeelEntryWithVariableContext({
  4288. element,
  4289. id: 'assignmentDefinitionAssignee',
  4290. label: translate('Assignee'),
  4291. feel: 'optional',
  4292. getValue,
  4293. setValue,
  4294. debounce
  4295. });
  4296. }
  4297. function CandidateGroups$1(props) {
  4298. const {
  4299. element
  4300. } = props;
  4301. const commandStack = useService('commandStack');
  4302. const bpmnFactory = useService('bpmnFactory');
  4303. const translate = useService('translate');
  4304. const debounce = useService('debounceInput');
  4305. const getValue = () => {
  4306. return (getAssignmentDefinition(element) || {}).candidateGroups;
  4307. };
  4308. const setValue = value => {
  4309. let commands = [];
  4310. const businessObject = getBusinessObject(element);
  4311. let extensionElements = businessObject.get('extensionElements');
  4312. // (1) ensure extension elements
  4313. if (!extensionElements) {
  4314. extensionElements = createElement('bpmn:ExtensionElements', {
  4315. values: []
  4316. }, businessObject, bpmnFactory);
  4317. commands.push({
  4318. cmd: 'element.updateModdleProperties',
  4319. context: {
  4320. element,
  4321. moddleElement: businessObject,
  4322. properties: {
  4323. extensionElements
  4324. }
  4325. }
  4326. });
  4327. }
  4328. // (2) ensure assignmentDefinition
  4329. let assignmentDefinition = getAssignmentDefinition(element);
  4330. if (!assignmentDefinition) {
  4331. assignmentDefinition = createElement('zeebe:AssignmentDefinition', {}, extensionElements, bpmnFactory);
  4332. commands.push({
  4333. cmd: 'element.updateModdleProperties',
  4334. context: {
  4335. element,
  4336. moddleElement: extensionElements,
  4337. properties: {
  4338. values: [...extensionElements.get('values'), assignmentDefinition]
  4339. }
  4340. }
  4341. });
  4342. }
  4343. // (3) update candidateGroups
  4344. commands.push({
  4345. cmd: 'element.updateModdleProperties',
  4346. context: {
  4347. element,
  4348. moddleElement: assignmentDefinition,
  4349. properties: {
  4350. candidateGroups: value
  4351. }
  4352. }
  4353. });
  4354. commandStack.execute('properties-panel.multi-command-executor', commands);
  4355. };
  4356. return FeelEntryWithVariableContext({
  4357. element,
  4358. id: 'assignmentDefinitionCandidateGroups',
  4359. label: translate('Candidate groups'),
  4360. feel: 'optional',
  4361. getValue,
  4362. setValue,
  4363. debounce
  4364. });
  4365. }
  4366. function CandidateUsers$1(props) {
  4367. const {
  4368. element
  4369. } = props;
  4370. const commandStack = useService('commandStack');
  4371. const bpmnFactory = useService('bpmnFactory');
  4372. const translate = useService('translate');
  4373. const debounce = useService('debounceInput');
  4374. const getValue = () => {
  4375. return (getAssignmentDefinition(element) || {}).candidateUsers;
  4376. };
  4377. const setValue = value => {
  4378. let commands = [];
  4379. const businessObject = getBusinessObject(element);
  4380. let extensionElements = businessObject.get('extensionElements');
  4381. // (1) ensure extension elements
  4382. if (!extensionElements) {
  4383. extensionElements = createElement('bpmn:ExtensionElements', {
  4384. values: []
  4385. }, businessObject, bpmnFactory);
  4386. commands.push({
  4387. cmd: 'element.updateModdleProperties',
  4388. context: {
  4389. element,
  4390. moddleElement: businessObject,
  4391. properties: {
  4392. extensionElements
  4393. }
  4394. }
  4395. });
  4396. }
  4397. // (2) ensure assignmentDefinition
  4398. let assignmentDefinition = getAssignmentDefinition(element);
  4399. if (!assignmentDefinition) {
  4400. assignmentDefinition = createElement('zeebe:AssignmentDefinition', {}, extensionElements, bpmnFactory);
  4401. commands.push({
  4402. cmd: 'element.updateModdleProperties',
  4403. context: {
  4404. element,
  4405. moddleElement: extensionElements,
  4406. properties: {
  4407. values: [...extensionElements.get('values'), assignmentDefinition]
  4408. }
  4409. }
  4410. });
  4411. }
  4412. // (3) update candidateUsers
  4413. commands.push({
  4414. cmd: 'element.updateModdleProperties',
  4415. context: {
  4416. element,
  4417. moddleElement: assignmentDefinition,
  4418. properties: {
  4419. candidateUsers: value
  4420. }
  4421. }
  4422. });
  4423. commandStack.execute('properties-panel.multi-command-executor', commands);
  4424. };
  4425. return FeelEntryWithVariableContext({
  4426. element,
  4427. id: 'assignmentDefinitionCandidateUsers',
  4428. label: translate('Candidate users'),
  4429. feel: 'optional',
  4430. getValue,
  4431. setValue,
  4432. debounce
  4433. });
  4434. }
  4435. // helper ///////////////////////
  4436. function getAssignmentDefinition(element) {
  4437. const businessObject = getBusinessObject(element);
  4438. return getExtensionElementsList(businessObject, 'zeebe:AssignmentDefinition')[0];
  4439. }
  4440. function isZeebeServiceTask(element) {
  4441. if (!is(element, 'zeebe:ZeebeServiceTask')) return false;
  4442. if (is(element, 'bpmn:EndEvent') || is(element, 'bpmn:IntermediateThrowEvent')) {
  4443. return !!getMessageEventDefinition(element);
  4444. }
  4445. // BusinessRuleTask and ScriptTask are ServiceTasks only if they have a TaskDefinition
  4446. // (ie. if the implementation is set to ==JobWorker)
  4447. if (isAny$1(element, ['bpmn:BusinessRuleTask', 'bpmn:ScriptTask']) && !getTaskDefinition$3(element)) {
  4448. return false;
  4449. }
  4450. return true;
  4451. }
  4452. function isMessageEndEvent(element) {
  4453. return is(element, 'bpmn:EndEvent') && !!getMessageEventDefinition(element);
  4454. }
  4455. function isMessageThrowEvent(element) {
  4456. return is(element, 'bpmn:IntermediateThrowEvent') && !!getMessageEventDefinition(element);
  4457. }
  4458. // helper ////////////////
  4459. function getTaskDefinition$3(element) {
  4460. const businessObject = getBusinessObject(element);
  4461. return getExtensionElementsList(businessObject, 'zeebe:TaskDefinition')[0];
  4462. }
  4463. function areHeadersSupported(element) {
  4464. return is(element, 'bpmn:UserTask') || isZeebeServiceTask(element);
  4465. }
  4466. /**
  4467. * Get first zeebe:TaskHeaders element for a specific element.
  4468. *
  4469. * @param {ModdleElement} element
  4470. *
  4471. * @return {ModdleElement} a zeebe:TaskHeader element
  4472. */
  4473. function getTaskHeaders$1(element) {
  4474. const businessObject = getBusinessObject(element);
  4475. return getExtensionElementsList(businessObject, 'zeebe:TaskHeaders')[0];
  4476. }
  4477. /**
  4478. * Retrieve all zeebe:Header elements for a specific element.
  4479. *
  4480. * @param {ModdleElement} element
  4481. *
  4482. * @return {Array<ModdleElement>} a list of zeebe:Header elements
  4483. */
  4484. function getHeaders(element) {
  4485. const taskHeaders = getTaskHeaders$1(element);
  4486. return taskHeaders ? taskHeaders.get('values') : [];
  4487. }
  4488. const DMN_IMPLEMENTATION_OPTION = 'dmn',
  4489. JOB_WORKER_IMPLEMENTATION_OPTION$1 = 'jobWorker',
  4490. DEFAULT_IMPLEMENTATION_OPTION$1 = '';
  4491. function BusinessRuleImplementationProps(props) {
  4492. const {
  4493. element
  4494. } = props;
  4495. if (!is(element, 'bpmn:BusinessRuleTask')) {
  4496. return [];
  4497. }
  4498. return [{
  4499. id: 'businessRuleImplementation',
  4500. component: BusinessRuleImplementation,
  4501. isEdited: () => isBusinessRuleImplementationEdited(element)
  4502. }];
  4503. }
  4504. function BusinessRuleImplementation(props) {
  4505. const {
  4506. element,
  4507. id
  4508. } = props;
  4509. const commandStack = useService('commandStack');
  4510. const bpmnFactory = useService('bpmnFactory');
  4511. const translate = useService('translate');
  4512. const getValue = () => {
  4513. if (getCalledDecision$1(element)) {
  4514. return DMN_IMPLEMENTATION_OPTION;
  4515. }
  4516. if (getTaskDefinition$2(element)) {
  4517. return JOB_WORKER_IMPLEMENTATION_OPTION$1;
  4518. }
  4519. return DEFAULT_IMPLEMENTATION_OPTION$1;
  4520. };
  4521. /**
  4522. * Set value by either creating a zeebe:calledDecision or a zeebe:taskDefintion
  4523. * extension element. Note that they must not exist both at the same time, however
  4524. * this will be ensured by a bpmn-js behavior (and not by the propPanel).
  4525. */
  4526. const setValue = value => {
  4527. let extensionElement, extensionElementType;
  4528. if (value === DMN_IMPLEMENTATION_OPTION) {
  4529. extensionElement = getCalledDecision$1(element);
  4530. extensionElementType = 'zeebe:CalledDecision';
  4531. } else if (value === JOB_WORKER_IMPLEMENTATION_OPTION$1) {
  4532. extensionElement = getTaskDefinition$2(element);
  4533. extensionElementType = 'zeebe:TaskDefinition';
  4534. } else {
  4535. resetElement$1(element, commandStack);
  4536. }
  4537. if (!extensionElement && extensionElementType) {
  4538. extensionElement = createElement(extensionElementType, {}, null, bpmnFactory);
  4539. updateExtensionElements$1(element, extensionElement, bpmnFactory, commandStack);
  4540. }
  4541. };
  4542. const getOptions = () => {
  4543. const options = [{
  4544. value: DEFAULT_IMPLEMENTATION_OPTION$1,
  4545. label: translate('<none>')
  4546. }, {
  4547. value: DMN_IMPLEMENTATION_OPTION,
  4548. label: translate('DMN decision')
  4549. }, {
  4550. value: JOB_WORKER_IMPLEMENTATION_OPTION$1,
  4551. label: translate('Job worker')
  4552. }];
  4553. return options;
  4554. };
  4555. return SelectEntry({
  4556. element,
  4557. id,
  4558. label: translate('Implementation'),
  4559. getValue,
  4560. setValue,
  4561. getOptions
  4562. });
  4563. }
  4564. // helper ///////////////////////
  4565. function getTaskDefinition$2(element) {
  4566. const businessObject = getBusinessObject(element);
  4567. return getExtensionElementsList(businessObject, 'zeebe:TaskDefinition')[0];
  4568. }
  4569. function getCalledDecision$1(element) {
  4570. const businessObject = getBusinessObject(element);
  4571. return getExtensionElementsList(businessObject, 'zeebe:CalledDecision')[0];
  4572. }
  4573. function isBusinessRuleImplementationEdited(element) {
  4574. return getTaskDefinition$2(element);
  4575. }
  4576. function resetElement$1(element, commandStack) {
  4577. const businessObject = getBusinessObject(element);
  4578. const toRemove = [getTaskDefinition$2(element), getTaskHeaders$1(element), getCalledDecision$1(element)].filter(Boolean);
  4579. removeExtensionElements(element, businessObject, toRemove, commandStack);
  4580. }
  4581. function updateExtensionElements$1(element, extensionElementToAdd, bpmnFactory, commandStack) {
  4582. const businessObject = getBusinessObject(element);
  4583. const commands = [];
  4584. let extensionElements = businessObject.get('extensionElements');
  4585. let extensionElementValues;
  4586. // (1) create bpmn:ExtensionElements if it doesn't exist
  4587. if (!extensionElements) {
  4588. extensionElements = createElement('bpmn:ExtensionElements', {
  4589. values: []
  4590. }, businessObject, bpmnFactory);
  4591. commands.push({
  4592. cmd: 'element.updateModdleProperties',
  4593. context: {
  4594. element,
  4595. moddleElement: businessObject,
  4596. properties: {
  4597. extensionElements
  4598. }
  4599. }
  4600. });
  4601. }
  4602. extensionElementToAdd.$parent = extensionElements;
  4603. // (2) remove old exension element from extensionElements
  4604. if (is(extensionElementToAdd, 'zeebe:TaskDefinition')) {
  4605. extensionElementValues = without(extensionElements.get('values'), getCalledDecision$1(element));
  4606. } else if (is(extensionElementToAdd, 'zeebe:CalledDecision')) {
  4607. extensionElementValues = without(extensionElements.get('values'), getTaskDefinition$2(element));
  4608. }
  4609. // (3) add extension element to list
  4610. commands.push({
  4611. cmd: 'element.updateModdleProperties',
  4612. context: {
  4613. element,
  4614. moddleElement: extensionElements,
  4615. properties: {
  4616. values: [...extensionElementValues, extensionElementToAdd]
  4617. }
  4618. }
  4619. });
  4620. commandStack.execute('properties-panel.multi-command-executor', commands);
  4621. }
  4622. function CalledDecisionProps(props) {
  4623. const {
  4624. element
  4625. } = props;
  4626. if (!is(element, 'bpmn:BusinessRuleTask') || !getCalledDecision(element)) {
  4627. return [];
  4628. }
  4629. return [{
  4630. id: 'decisionId',
  4631. component: DecisionID,
  4632. isEdited: isFeelEntryEdited
  4633. }, {
  4634. id: 'resultVariable',
  4635. component: ResultVariable$4,
  4636. isEdited: isTextFieldEntryEdited
  4637. }];
  4638. }
  4639. function DecisionID(props) {
  4640. const {
  4641. element,
  4642. id
  4643. } = props;
  4644. const commandStack = useService('commandStack');
  4645. const bpmnFactory = useService('bpmnFactory');
  4646. const translate = useService('translate');
  4647. const debounce = useService('debounceInput');
  4648. const getValue = () => {
  4649. return (getCalledDecision(element) || {}).decisionId;
  4650. };
  4651. const setValue = value => {
  4652. const commands = [];
  4653. const businessObject = getBusinessObject(element);
  4654. let extensionElements = businessObject.get('extensionElements');
  4655. // (1) ensure extension elements
  4656. if (!extensionElements) {
  4657. extensionElements = createElement('bpmn:ExtensionElements', {
  4658. values: []
  4659. }, businessObject, bpmnFactory);
  4660. commands.push({
  4661. cmd: 'element.updateModdleProperties',
  4662. context: {
  4663. element,
  4664. moddleElement: businessObject,
  4665. properties: {
  4666. extensionElements
  4667. }
  4668. }
  4669. });
  4670. }
  4671. // (2) ensure calledDecision
  4672. let calledDecision = getCalledDecision(element);
  4673. if (!calledDecision) {
  4674. calledDecision = createElement('zeebe:CalledDecision', {}, extensionElements, bpmnFactory);
  4675. commands.push({
  4676. cmd: 'element.updateModdleProperties',
  4677. context: {
  4678. element,
  4679. moddleElement: extensionElements,
  4680. properties: {
  4681. values: [...extensionElements.get('values'), calledDecision]
  4682. }
  4683. }
  4684. });
  4685. }
  4686. // (3) update caledDecision.decisionId
  4687. commands.push({
  4688. cmd: 'element.updateModdleProperties',
  4689. context: {
  4690. element,
  4691. moddleElement: calledDecision,
  4692. properties: {
  4693. decisionId: value
  4694. }
  4695. }
  4696. });
  4697. // (4) commit all updates
  4698. commandStack.execute('properties-panel.multi-command-executor', commands);
  4699. };
  4700. return FeelEntryWithVariableContext({
  4701. element,
  4702. id,
  4703. label: translate('Decision ID'),
  4704. feel: 'optional',
  4705. getValue,
  4706. setValue,
  4707. debounce
  4708. });
  4709. }
  4710. function ResultVariable$4(props) {
  4711. const {
  4712. element,
  4713. id
  4714. } = props;
  4715. const commandStack = useService('commandStack');
  4716. const bpmnFactory = useService('bpmnFactory');
  4717. const translate = useService('translate');
  4718. const debounce = useService('debounceInput');
  4719. const getValue = () => {
  4720. return (getCalledDecision(element) || {}).resultVariable;
  4721. };
  4722. const setValue = value => {
  4723. const commands = [];
  4724. const businessObject = getBusinessObject(element);
  4725. let extensionElements = businessObject.get('extensionElements');
  4726. // (1) ensure extension elements
  4727. if (!extensionElements) {
  4728. extensionElements = createElement('bpmn:ExtensionElements', {
  4729. values: []
  4730. }, businessObject, bpmnFactory);
  4731. commands.push({
  4732. cmd: 'element.updateModdleProperties',
  4733. context: {
  4734. element,
  4735. moddleElement: businessObject,
  4736. properties: {
  4737. extensionElements
  4738. }
  4739. }
  4740. });
  4741. }
  4742. // (2) ensure calledDecision
  4743. let calledDecision = getCalledDecision(element);
  4744. if (!calledDecision) {
  4745. calledDecision = createElement('zeebe:CalledDecision', {}, extensionElements, bpmnFactory);
  4746. commands.push({
  4747. cmd: 'element.updateModdleProperties',
  4748. context: {
  4749. element,
  4750. moddleElement: extensionElements,
  4751. properties: {
  4752. values: [...extensionElements.get('values'), calledDecision]
  4753. }
  4754. }
  4755. });
  4756. }
  4757. // (3) update caledDecision.decisionId
  4758. commands.push({
  4759. cmd: 'element.updateModdleProperties',
  4760. context: {
  4761. element,
  4762. moddleElement: calledDecision,
  4763. properties: {
  4764. resultVariable: value
  4765. }
  4766. }
  4767. });
  4768. // (4) commit all updates
  4769. commandStack.execute('properties-panel.multi-command-executor', commands);
  4770. };
  4771. return TextFieldEntry({
  4772. element,
  4773. id,
  4774. label: translate('Result variable'),
  4775. getValue,
  4776. setValue,
  4777. debounce
  4778. });
  4779. }
  4780. // helper ///////////////////////
  4781. function getCalledDecision(element) {
  4782. const businessObject = getBusinessObject(element);
  4783. return getExtensionElementsList(businessObject, 'zeebe:CalledDecision')[0];
  4784. }
  4785. function ConditionProps$1(props) {
  4786. const {
  4787. element
  4788. } = props;
  4789. if (!is(element, 'bpmn:SequenceFlow')) {
  4790. return [];
  4791. }
  4792. const conditionProps = [];
  4793. if (isConditionalSource$1(element.source)) {
  4794. conditionProps.push({
  4795. id: 'conditionExpression',
  4796. component: ConditionExpression$1,
  4797. isEdited: isFeelEntryEdited
  4798. });
  4799. }
  4800. return conditionProps;
  4801. }
  4802. function ConditionExpression$1(props) {
  4803. const {
  4804. element
  4805. } = props;
  4806. const commandStack = useService('commandStack'),
  4807. bpmnFactory = useService('bpmnFactory'),
  4808. translate = useService('translate'),
  4809. debounce = useService('debounceInput');
  4810. const getValue = () => {
  4811. return getConditionExpression$1(element);
  4812. };
  4813. const setValue = value => {
  4814. const commands = [];
  4815. const businessObject = getBusinessObject(element);
  4816. // (1) If we set value to a default flow, make it a non-default flow
  4817. // by updating the element source
  4818. const source = element.source;
  4819. if (source.businessObject.default === businessObject) {
  4820. commands.push({
  4821. cmd: 'element.updateProperties',
  4822. context: {
  4823. element: source,
  4824. properties: {
  4825. 'default': undefined
  4826. }
  4827. }
  4828. });
  4829. }
  4830. // (2) Create and set formalExpression element containing the conditionExpression,
  4831. // unless the provided value is empty
  4832. const formalExpressionElement = value && value != '' ? createElement('bpmn:FormalExpression', {
  4833. body: value
  4834. }, businessObject, bpmnFactory) : undefined;
  4835. commands.push({
  4836. cmd: 'element.updateProperties',
  4837. context: {
  4838. element: element,
  4839. properties: {
  4840. conditionExpression: formalExpressionElement
  4841. }
  4842. }
  4843. });
  4844. // (3) Execute the commands
  4845. commandStack.execute('properties-panel.multi-command-executor', commands);
  4846. };
  4847. return FeelEntryWithVariableContext({
  4848. element,
  4849. id: 'conditionExpression',
  4850. label: translate('Condition expression'),
  4851. feel: 'required',
  4852. getValue,
  4853. setValue,
  4854. debounce
  4855. });
  4856. }
  4857. // helper //////////////////////////
  4858. const CONDITIONAL_SOURCES$1 = ['bpmn:Activity', 'bpmn:ExclusiveGateway', 'bpmn:InclusiveGateway'];
  4859. function isConditionalSource$1(element) {
  4860. return isAny(element, CONDITIONAL_SOURCES$1);
  4861. }
  4862. /**
  4863. * getConditionExpression - get the body value of a condition expression for a given element
  4864. *
  4865. * @param {ModdleElement} element
  4866. *
  4867. * @return {string|undefined}
  4868. */
  4869. function getConditionExpression$1(element) {
  4870. const businessObject = getBusinessObject(element);
  4871. const conditionExpression = businessObject.conditionExpression;
  4872. if (conditionExpression) {
  4873. return conditionExpression.get('body');
  4874. }
  4875. }
  4876. function ErrorProps$1(props) {
  4877. const {
  4878. element
  4879. } = props;
  4880. const error = getError(element);
  4881. const entries = [];
  4882. if (error && is(element, 'bpmn:ThrowEvent')) {
  4883. entries.push({
  4884. id: 'errorCode',
  4885. component: ErrorCode$1,
  4886. isEdited: isFeelEntryEdited
  4887. });
  4888. }
  4889. return entries;
  4890. }
  4891. function ErrorCode$1(props) {
  4892. const {
  4893. element
  4894. } = props;
  4895. const commandStack = useService('commandStack');
  4896. const translate = useService('translate');
  4897. const debounce = useService('debounceInput');
  4898. const error = getError(element);
  4899. const getValue = () => {
  4900. return error.get('errorCode');
  4901. };
  4902. const setValue = value => {
  4903. return commandStack.execute('element.updateModdleProperties', {
  4904. element,
  4905. moddleElement: error,
  4906. properties: {
  4907. errorCode: value
  4908. }
  4909. });
  4910. };
  4911. return FeelEntryWithVariableContext({
  4912. element,
  4913. id: 'errorCode',
  4914. label: translate('Code'),
  4915. feel: 'optional',
  4916. getValue,
  4917. setValue,
  4918. debounce
  4919. });
  4920. }
  4921. /**
  4922. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  4923. */
  4924. /**
  4925. * @returns {Array<Entry>} entries
  4926. */
  4927. function EscalationProps$1(props) {
  4928. const {
  4929. element
  4930. } = props;
  4931. // update throw events only
  4932. if (!is(element, 'bpmn:ThrowEvent')) {
  4933. return [];
  4934. }
  4935. const escalation = getEscalation(element);
  4936. const entries = [];
  4937. if (escalation) {
  4938. entries.push({
  4939. id: 'escalationCode',
  4940. component: EscalationCode,
  4941. isEdited: isFeelEntryEdited
  4942. });
  4943. }
  4944. return entries;
  4945. }
  4946. function EscalationCode(props) {
  4947. const {
  4948. element
  4949. } = props;
  4950. const commandStack = useService('commandStack');
  4951. const translate = useService('translate');
  4952. const debounce = useService('debounceInput');
  4953. const escalation = getEscalation(element);
  4954. const getValue = () => {
  4955. return escalation.get('escalationCode');
  4956. };
  4957. const setValue = value => {
  4958. return commandStack.execute('element.updateModdleProperties', {
  4959. element,
  4960. moddleElement: escalation,
  4961. properties: {
  4962. escalationCode: value
  4963. }
  4964. });
  4965. };
  4966. return FeelEntryWithVariableContext({
  4967. element,
  4968. id: 'escalationCode',
  4969. label: translate('Code'),
  4970. feel: 'optional',
  4971. getValue,
  4972. setValue,
  4973. debounce
  4974. });
  4975. }
  4976. function FormProps$1(props) {
  4977. const {
  4978. element,
  4979. injector
  4980. } = props;
  4981. const formHelper = injector.invoke(FormHelper);
  4982. if (!is(element, 'bpmn:UserTask')) {
  4983. return [];
  4984. }
  4985. const entries = [{
  4986. id: 'formType',
  4987. component: FormType$1,
  4988. isEdited: isSelectEntryEdited
  4989. }];
  4990. if (isCamundaForm(element, formHelper)) {
  4991. entries.push({
  4992. id: 'formConfiguration',
  4993. component: FormConfiguration,
  4994. isEdited: isTextAreaEntryEdited
  4995. });
  4996. } else if (isCustomKey(element, formHelper)) {
  4997. entries.push({
  4998. id: 'customFormKey',
  4999. component: CustomFormKey,
  5000. isEdited: isTextFieldEntryEdited
  5001. });
  5002. }
  5003. return entries;
  5004. }
  5005. function FormType$1(props) {
  5006. const {
  5007. element
  5008. } = props;
  5009. const translate = useService('translate');
  5010. const injector = useService('injector');
  5011. const formHelper = injector.invoke(FormHelper);
  5012. const getValue = () => {
  5013. const formDefinition = formHelper.getFormDefinition(element);
  5014. const userTaskForm = formHelper.getUserTaskForm(element);
  5015. if (formDefinition) {
  5016. if (userTaskForm) {
  5017. return 'camundaForm';
  5018. }
  5019. return 'formKey';
  5020. }
  5021. return '';
  5022. };
  5023. const setValue = value => {
  5024. formHelper.resetForm(element);
  5025. if (value === 'camundaForm') {
  5026. formHelper.setUserTaskForm(element, '');
  5027. } else if (value === 'formKey') {
  5028. formHelper.setFormDefinition(element, '');
  5029. }
  5030. };
  5031. const getOptions = () => {
  5032. return [{
  5033. value: '',
  5034. label: translate('<none>')
  5035. }, {
  5036. value: 'camundaForm',
  5037. label: translate('Camunda forms')
  5038. }, {
  5039. value: 'formKey',
  5040. label: translate('Custom form key')
  5041. }];
  5042. };
  5043. return SelectEntry({
  5044. element,
  5045. id: 'formType',
  5046. label: translate('Type'),
  5047. getValue,
  5048. setValue,
  5049. getOptions
  5050. });
  5051. }
  5052. function FormConfiguration(props) {
  5053. const {
  5054. element
  5055. } = props;
  5056. const injector = useService('injector');
  5057. const debounce = useService('debounceInput');
  5058. const translate = useService('translate');
  5059. const formHelper = injector.invoke(FormHelper);
  5060. const getValue = () => {
  5061. const userTaskForm = formHelper.getUserTaskForm(element);
  5062. return userTaskForm.get('body');
  5063. };
  5064. const setValue = value => {
  5065. formHelper.setUserTaskForm(element, value);
  5066. };
  5067. return TextAreaEntry({
  5068. element,
  5069. id: 'formConfiguration',
  5070. label: translate('Form JSON configuration'),
  5071. rows: 4,
  5072. getValue,
  5073. setValue,
  5074. debounce
  5075. });
  5076. }
  5077. function CustomFormKey(props) {
  5078. const {
  5079. element
  5080. } = props;
  5081. const injector = useService('injector');
  5082. const debounce = useService('debounceInput');
  5083. const translate = useService('translate');
  5084. const formHelper = injector.invoke(FormHelper);
  5085. const getValue = () => {
  5086. const formDefinition = formHelper.getFormDefinition(element);
  5087. return formDefinition.get('formKey');
  5088. };
  5089. const setValue = value => {
  5090. formHelper.setFormDefinition(element, value);
  5091. };
  5092. return TextFieldEntry({
  5093. element,
  5094. id: 'customFormKey',
  5095. label: translate('Form key'),
  5096. getValue,
  5097. setValue,
  5098. debounce
  5099. });
  5100. }
  5101. const USER_TASK_FORM_PREFIX = 'userTaskForm_';
  5102. function FormHelper(bpmnFactory, commandStack) {
  5103. function getFormDefinition(element) {
  5104. const businessObject = getBusinessObject(element);
  5105. const formDefinitions = getExtensionElementsList(businessObject, 'zeebe:FormDefinition');
  5106. return formDefinitions[0];
  5107. }
  5108. function getUserTaskForm(element, parent) {
  5109. const rootElement = parent || getRootElement(element);
  5110. // (1) get form definition from user task
  5111. const formDefinition = getFormDefinition(element);
  5112. if (isUndefined(formDefinition)) {
  5113. return;
  5114. }
  5115. const formKey = formDefinition.get('formKey');
  5116. // (2) retrieve user task form via form key
  5117. const userTaskForm = findUserTaskForm(formKey, rootElement);
  5118. return userTaskForm;
  5119. }
  5120. function ensureTaskForm(element, values) {
  5121. let commands = [];
  5122. const rootElement = getRootElement(element);
  5123. // (1) ensure root element extension elements
  5124. let rootExtensionElements = rootElement.get('extensionElements');
  5125. if (!rootExtensionElements) {
  5126. rootExtensionElements = createElement('bpmn:ExtensionElements', {
  5127. values: []
  5128. }, rootElement, bpmnFactory);
  5129. commands.push(UpdateModdlePropertiesCmd(element, rootElement, {
  5130. extensionElements: rootExtensionElements
  5131. }));
  5132. }
  5133. // (2) ensure user task form
  5134. let userTaskForm = getUserTaskForm(element);
  5135. // (2.1) create user task form if doesn't exist
  5136. if (!userTaskForm) {
  5137. userTaskForm = createUserTaskForm(values, rootExtensionElements, bpmnFactory);
  5138. commands.push(UpdateModdlePropertiesCmd(element, rootExtensionElements, {
  5139. values: [...rootExtensionElements.get('values'), userTaskForm]
  5140. }));
  5141. }
  5142. commands.push(UpdateModdlePropertiesCmd(element, userTaskForm, values));
  5143. return commands;
  5144. }
  5145. function ensureFormDefinition(element, customFormKey) {
  5146. const businessObject = getBusinessObject(element);
  5147. let commands = [];
  5148. // (1) ensure extension elements
  5149. let extensionElements = businessObject.get('extensionElements');
  5150. if (isUndefined(extensionElements)) {
  5151. extensionElements = createElement('bpmn:ExtensionElements', {
  5152. values: []
  5153. }, businessObject, bpmnFactory);
  5154. commands.push(UpdateModdlePropertiesCmd(element, businessObject, {
  5155. extensionElements: extensionElements
  5156. }));
  5157. }
  5158. // (2) ensure form definition
  5159. let formDefinition = getFormDefinition(element);
  5160. // (2.1) create if doesn't exist
  5161. if (!formDefinition) {
  5162. let formKey = customFormKey;
  5163. if (isUndefined(formKey)) {
  5164. const formId = createFormId();
  5165. formKey = createFormKey(formId);
  5166. }
  5167. formDefinition = createFormDefinition({
  5168. formKey
  5169. }, extensionElements, bpmnFactory);
  5170. commands.push(UpdateModdlePropertiesCmd(element, extensionElements, {
  5171. values: [...extensionElements.get('values'), formDefinition]
  5172. }));
  5173. }
  5174. // (2.2) update existing form definition with custom key
  5175. else if (customFormKey) {
  5176. commands.push(UpdateModdlePropertiesCmd(element, formDefinition, {
  5177. formKey: customFormKey
  5178. }));
  5179. }
  5180. return {
  5181. formId: resolveFormId(formDefinition.get('formKey')),
  5182. commands
  5183. };
  5184. }
  5185. function setFormDefinition(element, customFormKey) {
  5186. const {
  5187. commands
  5188. } = ensureFormDefinition(element, customFormKey);
  5189. commandStack.execute('properties-panel.multi-command-executor', commands);
  5190. }
  5191. function setUserTaskForm(element, value) {
  5192. const {
  5193. formId,
  5194. commands: formDefCommands
  5195. } = ensureFormDefinition(element);
  5196. const userTaskCommands = ensureTaskForm(element, {
  5197. id: formId,
  5198. body: value
  5199. });
  5200. const commands = formDefCommands.concat(userTaskCommands);
  5201. commandStack.execute('properties-panel.multi-command-executor', commands);
  5202. }
  5203. function unsetFormDefinition(element) {
  5204. const businessObject = getBusinessObject(element),
  5205. extensionElements = businessObject.get('extensionElements');
  5206. let commands = [];
  5207. const formDefinition = getFormDefinition(element);
  5208. if (!formDefinition) {
  5209. return commands;
  5210. }
  5211. let values = without(extensionElements.get('values'), formDefinition);
  5212. commands.push(UpdateModdlePropertiesCmd(element, extensionElements, {
  5213. values
  5214. }));
  5215. return commands;
  5216. }
  5217. function resetForm(element) {
  5218. const rootElement = getRootElement(element),
  5219. rootExtensionElements = rootElement.get('extensionElements');
  5220. // (1) remove form definition
  5221. const commands = unsetFormDefinition(element);
  5222. // (2) remove referenced user task form
  5223. const userTaskForm = getUserTaskForm(element);
  5224. if (!userTaskForm) {
  5225. commandStack.execute('properties-panel.multi-command-executor', commands);
  5226. return;
  5227. }
  5228. const values = without(rootExtensionElements.get('values'), userTaskForm);
  5229. commands.push(UpdateModdlePropertiesCmd(element, rootExtensionElements, {
  5230. values
  5231. }));
  5232. commandStack.execute('properties-panel.multi-command-executor', commands);
  5233. }
  5234. function createFormKey(formId) {
  5235. return 'camunda-forms:bpmn:' + formId;
  5236. }
  5237. function createFormId() {
  5238. return nextId(USER_TASK_FORM_PREFIX);
  5239. }
  5240. function resolveFormId(formKey) {
  5241. return formKey.split(':')[2];
  5242. }
  5243. function createFormDefinition(properties, extensionElements, bpmnFactory) {
  5244. return createElement('zeebe:FormDefinition', properties, extensionElements, bpmnFactory);
  5245. }
  5246. function createUserTaskForm(properties, extensionElements, bpmnFactory) {
  5247. return createElement('zeebe:UserTaskForm', properties, extensionElements, bpmnFactory);
  5248. }
  5249. function findUserTaskForm(formKey, rootElement) {
  5250. const forms = getExtensionElementsList(rootElement, 'zeebe:UserTaskForm');
  5251. return find(forms, function (userTaskForm) {
  5252. return createFormKey(userTaskForm.id) === formKey;
  5253. });
  5254. }
  5255. function getRootElement(element) {
  5256. const businessObject = getBusinessObject(element);
  5257. let parent = businessObject;
  5258. while (parent.$parent && !is(parent, 'bpmn:Process')) {
  5259. parent = parent.$parent;
  5260. }
  5261. return parent;
  5262. }
  5263. return {
  5264. getFormDefinition,
  5265. getUserTaskForm,
  5266. setFormDefinition,
  5267. setUserTaskForm,
  5268. resetForm
  5269. };
  5270. }
  5271. FormHelper.$inject = ['bpmnFactory', 'commandStack'];
  5272. // helpers /////////////
  5273. function UpdateModdlePropertiesCmd(element, businessObject, newProperties) {
  5274. return {
  5275. cmd: 'element.updateModdleProperties',
  5276. context: {
  5277. element,
  5278. moddleElement: businessObject,
  5279. properties: newProperties
  5280. }
  5281. };
  5282. }
  5283. function isCamundaForm(element, formHelper) {
  5284. const formDefinition = formHelper.getFormDefinition(element);
  5285. const userTaskForm = formHelper.getUserTaskForm(element);
  5286. return formDefinition && userTaskForm;
  5287. }
  5288. function isCustomKey(element, formHelper) {
  5289. const formDefinition = formHelper.getFormDefinition(element);
  5290. const userTaskForm = formHelper.getUserTaskForm(element);
  5291. return formDefinition && !userTaskForm;
  5292. }
  5293. function Header(props) {
  5294. const {
  5295. idPrefix,
  5296. header
  5297. } = props;
  5298. const entries = [{
  5299. id: idPrefix + '-key',
  5300. component: KeyProperty,
  5301. header,
  5302. idPrefix
  5303. }, {
  5304. id: idPrefix + '-value',
  5305. component: ValueProperty$2,
  5306. header,
  5307. idPrefix
  5308. }];
  5309. return entries;
  5310. }
  5311. function KeyProperty(props) {
  5312. const {
  5313. idPrefix,
  5314. element,
  5315. header
  5316. } = props;
  5317. const commandStack = useService('commandStack');
  5318. const translate = useService('translate');
  5319. const debounce = useService('debounceInput');
  5320. const setValue = value => {
  5321. commandStack.execute('element.updateModdleProperties', {
  5322. element,
  5323. moddleElement: header,
  5324. properties: {
  5325. key: value
  5326. }
  5327. });
  5328. };
  5329. const getValue = header => {
  5330. return header.key;
  5331. };
  5332. return TextFieldEntry({
  5333. element: header,
  5334. id: idPrefix + '-key',
  5335. label: translate('Key'),
  5336. getValue,
  5337. setValue,
  5338. debounce
  5339. });
  5340. }
  5341. function ValueProperty$2(props) {
  5342. const {
  5343. idPrefix,
  5344. element,
  5345. header
  5346. } = props;
  5347. const commandStack = useService('commandStack');
  5348. const translate = useService('translate');
  5349. const debounce = useService('debounceInput');
  5350. const setValue = value => {
  5351. commandStack.execute('element.updateModdleProperties', {
  5352. element,
  5353. moddleElement: header,
  5354. properties: {
  5355. value
  5356. }
  5357. });
  5358. };
  5359. const getValue = header => {
  5360. return header.value;
  5361. };
  5362. return TextFieldEntry({
  5363. element: header,
  5364. id: idPrefix + '-value',
  5365. label: translate('Value'),
  5366. getValue,
  5367. setValue,
  5368. debounce
  5369. });
  5370. }
  5371. function HeaderProps({
  5372. element,
  5373. injector
  5374. }) {
  5375. if (!areHeadersSupported(element)) {
  5376. return null;
  5377. }
  5378. const headers = getHeaders(element) || [];
  5379. const bpmnFactory = injector.get('bpmnFactory'),
  5380. commandStack = injector.get('commandStack');
  5381. const items = headers.map((header, index) => {
  5382. const id = element.id + '-header-' + index;
  5383. return {
  5384. id,
  5385. label: header.get('key') || '',
  5386. entries: Header({
  5387. idPrefix: id,
  5388. element,
  5389. header
  5390. }),
  5391. autoFocusEntry: id + '-key',
  5392. remove: removeFactory$c({
  5393. commandStack,
  5394. element,
  5395. header
  5396. })
  5397. };
  5398. });
  5399. return {
  5400. items,
  5401. add: addFactory$9({
  5402. bpmnFactory,
  5403. commandStack,
  5404. element
  5405. }),
  5406. shouldSort: false
  5407. };
  5408. }
  5409. function removeFactory$c({
  5410. commandStack,
  5411. element,
  5412. header
  5413. }) {
  5414. return function (event) {
  5415. event.stopPropagation();
  5416. let commands = [];
  5417. const taskHeaders = getTaskHeaders$1(element);
  5418. if (!taskHeaders) {
  5419. return;
  5420. }
  5421. const newTaskHeaders = without(taskHeaders.get('values'), header);
  5422. commands.push({
  5423. cmd: 'element.updateModdleProperties',
  5424. context: {
  5425. element,
  5426. moddleElement: taskHeaders,
  5427. properties: {
  5428. values: newTaskHeaders
  5429. }
  5430. }
  5431. });
  5432. // remove zeebe:TaskHeaders if there are no headers anymore
  5433. if (!newTaskHeaders.length) {
  5434. const businessObject = getBusinessObject(element),
  5435. extensionElements = businessObject.get('extensionElements');
  5436. commands.push({
  5437. cmd: 'element.updateModdleProperties',
  5438. context: {
  5439. element,
  5440. moddleElement: extensionElements,
  5441. properties: {
  5442. values: without(extensionElements.get('values'), taskHeaders)
  5443. }
  5444. }
  5445. });
  5446. }
  5447. commandStack.execute('properties-panel.multi-command-executor', commands);
  5448. };
  5449. }
  5450. function addFactory$9({
  5451. bpmnFactory,
  5452. commandStack,
  5453. element
  5454. }) {
  5455. return function (event) {
  5456. event.stopPropagation();
  5457. let commands = [];
  5458. const businessObject = getBusinessObject(element);
  5459. let extensionElements = businessObject.get('extensionElements');
  5460. // (1) ensure extension elements
  5461. if (!extensionElements) {
  5462. extensionElements = createElement('bpmn:ExtensionElements', {
  5463. values: []
  5464. }, businessObject, bpmnFactory);
  5465. commands.push({
  5466. cmd: 'element.updateModdleProperties',
  5467. context: {
  5468. element,
  5469. moddleElement: businessObject,
  5470. properties: {
  5471. extensionElements
  5472. }
  5473. }
  5474. });
  5475. }
  5476. // (2) ensure zeebe:TaskHeaders
  5477. let taskHeaders = getTaskHeaders$1(element);
  5478. if (!taskHeaders) {
  5479. const parent = extensionElements;
  5480. taskHeaders = createElement('zeebe:TaskHeaders', {
  5481. values: []
  5482. }, parent, bpmnFactory);
  5483. commands.push({
  5484. cmd: 'element.updateModdleProperties',
  5485. context: {
  5486. element,
  5487. moddleElement: extensionElements,
  5488. properties: {
  5489. values: [...extensionElements.get('values'), taskHeaders]
  5490. }
  5491. }
  5492. });
  5493. }
  5494. // (3) create header
  5495. const header = createElement('zeebe:Header', {}, taskHeaders, bpmnFactory);
  5496. // (4) add header to list
  5497. commands.push({
  5498. cmd: 'element.updateModdleProperties',
  5499. context: {
  5500. element,
  5501. moddleElement: taskHeaders,
  5502. properties: {
  5503. values: [...taskHeaders.get('values'), header]
  5504. }
  5505. }
  5506. });
  5507. commandStack.execute('properties-panel.multi-command-executor', commands);
  5508. };
  5509. }
  5510. function getProcessId(element) {
  5511. const calledElement = getCalledElement(element);
  5512. return calledElement ? calledElement.get('processId') : '';
  5513. }
  5514. function getCalledElement(element) {
  5515. const calledElements = getCalledElements(element);
  5516. return calledElements[0];
  5517. }
  5518. function getCalledElements(element) {
  5519. const bo = getBusinessObject(element);
  5520. const extElements = getExtensionElementsList(bo, 'zeebe:CalledElement');
  5521. return extElements;
  5522. }
  5523. function InputPropagationProps(props) {
  5524. const {
  5525. element
  5526. } = props;
  5527. if (!is(element, 'bpmn:CallActivity')) {
  5528. return [];
  5529. }
  5530. return [{
  5531. id: 'propagateAllParentVariables',
  5532. component: PropagateAllParentVariables,
  5533. isEdited: isToggleSwitchEntryEdited
  5534. }];
  5535. }
  5536. function PropagateAllParentVariables(props) {
  5537. const {
  5538. element
  5539. } = props;
  5540. const commandStack = useService('commandStack'),
  5541. bpmnFactory = useService('bpmnFactory'),
  5542. translate = useService('translate');
  5543. const propagateAllParentVariables = isPropagateAllParentVariables(element);
  5544. const getValue = () => {
  5545. return propagateAllParentVariables;
  5546. };
  5547. const setValue = value => {
  5548. const commands = [];
  5549. const businessObject = getBusinessObject(element);
  5550. // (1) ensure extension elements
  5551. let extensionElements = businessObject.get('extensionElements');
  5552. if (!extensionElements) {
  5553. extensionElements = createElement('bpmn:ExtensionElements', {
  5554. values: []
  5555. }, businessObject, bpmnFactory);
  5556. commands.push({
  5557. cmd: 'element.updateModdleProperties',
  5558. context: {
  5559. element,
  5560. moddleElement: businessObject,
  5561. properties: {
  5562. extensionElements
  5563. }
  5564. }
  5565. });
  5566. }
  5567. // (2) ensure zeebe:calledElement
  5568. let calledElement = getCalledElement(businessObject);
  5569. if (!calledElement) {
  5570. calledElement = createElement('zeebe:CalledElement', {}, extensionElements, bpmnFactory);
  5571. commands.push({
  5572. cmd: 'element.updateModdleProperties',
  5573. context: {
  5574. element,
  5575. moddleElement: extensionElements,
  5576. properties: {
  5577. values: [...extensionElements.get('values'), calledElement]
  5578. }
  5579. }
  5580. });
  5581. }
  5582. // (3) Update propagateAllParentVariables attribute
  5583. commands.push({
  5584. cmd: 'element.updateModdleProperties',
  5585. context: {
  5586. element,
  5587. moddleElement: calledElement,
  5588. properties: {
  5589. propagateAllParentVariables: value
  5590. }
  5591. }
  5592. });
  5593. // (4) Execute the commands
  5594. commandStack.execute('properties-panel.multi-command-executor', commands);
  5595. };
  5596. return ToggleSwitchEntry({
  5597. id: 'propagateAllParentVariables',
  5598. label: translate('Propagate all variables'),
  5599. switcherLabel: propagateAllParentVariables ? translate('On') : translate('Off'),
  5600. tooltip: jsxs("div", {
  5601. children: [jsx("p", {
  5602. children: translate('If turned on, all variables from this process instance will be propagated to the child process instance.')
  5603. }), jsx("p", {
  5604. children: translate('Otherwise, only variables defined via input mappings will be propagated.')
  5605. })]
  5606. }),
  5607. getValue,
  5608. setValue
  5609. });
  5610. }
  5611. // helper //////////////////////////
  5612. /**
  5613. * Check whether the propagateAllParentVariables attribute is set on an element.
  5614. * @param {Object} element
  5615. *
  5616. * @returns {boolean}
  5617. */
  5618. function isPropagateAllParentVariables(element) {
  5619. if (!is(element, 'bpmn:CallActivity')) {
  5620. return undefined;
  5621. }
  5622. const bo = getBusinessObject(element),
  5623. calledElement = getCalledElement(bo);
  5624. return calledElement && has(calledElement, 'propagateAllParentVariables') ? calledElement.get('propagateAllParentVariables') : /* default value */true;
  5625. }
  5626. function InputOutputParameter$1(props) {
  5627. const {
  5628. idPrefix,
  5629. parameter
  5630. } = props;
  5631. const entries = [{
  5632. id: idPrefix + '-target',
  5633. component: TargetProperty,
  5634. idPrefix,
  5635. parameter
  5636. }, {
  5637. id: idPrefix + '-source',
  5638. component: SourceProperty,
  5639. idPrefix,
  5640. parameter
  5641. }];
  5642. return entries;
  5643. }
  5644. function TargetProperty(props) {
  5645. const {
  5646. idPrefix,
  5647. element,
  5648. parameter
  5649. } = props;
  5650. const commandStack = useService('commandStack');
  5651. const translate = useService('translate');
  5652. const debounce = useService('debounceInput');
  5653. const setValue = value => {
  5654. commandStack.execute('element.updateModdleProperties', {
  5655. element,
  5656. moddleElement: parameter,
  5657. properties: {
  5658. target: value
  5659. }
  5660. });
  5661. };
  5662. const getValue = parameter => {
  5663. return parameter.target;
  5664. };
  5665. return TextFieldEntry({
  5666. element: parameter,
  5667. id: idPrefix + '-target',
  5668. label: translate(is(parameter, 'zeebe:Input') ? 'Local variable name' : 'Process variable name'),
  5669. getValue,
  5670. setValue,
  5671. debounce
  5672. });
  5673. }
  5674. function SourceProperty(props) {
  5675. const {
  5676. idPrefix,
  5677. element,
  5678. parameter
  5679. } = props;
  5680. const commandStack = useService('commandStack');
  5681. const translate = useService('translate');
  5682. const debounce = useService('debounceInput');
  5683. const setValue = value => {
  5684. commandStack.execute('element.updateModdleProperties', {
  5685. element,
  5686. moddleElement: parameter,
  5687. properties: {
  5688. source: value
  5689. }
  5690. });
  5691. };
  5692. const getValue = parameter => {
  5693. return parameter.source;
  5694. };
  5695. return FeelEntryWithVariableContext({
  5696. bpmnElement: element,
  5697. element: parameter,
  5698. id: idPrefix + '-source',
  5699. label: translate('Variable assignment value'),
  5700. feel: 'required',
  5701. getValue,
  5702. setValue,
  5703. debounce
  5704. });
  5705. }
  5706. function getElements$1(bo, type, prop) {
  5707. const elems = getExtensionElementsList(bo, type);
  5708. return !prop ? elems : (elems[0] || {})[prop] || [];
  5709. }
  5710. function getParameters$1(element, prop) {
  5711. const ioMapping = getIoMapping(element);
  5712. return ioMapping && ioMapping.get(prop) || [];
  5713. }
  5714. /**
  5715. * Get a ioMapping from the business object
  5716. *
  5717. * @param {djs.model.Base} element
  5718. *
  5719. * @return {ModdleElement} the ioMapping object
  5720. */
  5721. function getIoMapping(element) {
  5722. const bo = getBusinessObject(element);
  5723. return (getElements$1(bo, 'zeebe:IoMapping') || [])[0];
  5724. }
  5725. /**
  5726. * Return all input parameters existing in the business object, and
  5727. * an empty array if none exist.
  5728. *
  5729. * @param {djs.model.Base} element
  5730. *
  5731. * @return {Array} a list of input parameter objects
  5732. */
  5733. function getInputParameters$1(element) {
  5734. return getParameters$1.apply(this, [element, 'inputParameters']);
  5735. }
  5736. /**
  5737. * Return all output parameters existing in the business object, and
  5738. * an empty array if none exist.
  5739. *
  5740. * @param {djs.model.Base} element
  5741. *
  5742. * @return {Array} a list of output parameter objects
  5743. */
  5744. function getOutputParameters$1(element) {
  5745. return getParameters$1.apply(this, [element, 'outputParameters']);
  5746. }
  5747. function areInputParametersSupported$1(element) {
  5748. return isAny(element, ['bpmn:UserTask', 'bpmn:SubProcess', 'bpmn:CallActivity', 'bpmn:BusinessRuleTask', 'bpmn:ScriptTask']) || isZeebeServiceTask(element) || isSignalThrowEvent(element);
  5749. }
  5750. function areOutputParametersSupported$1(element) {
  5751. if (is(element, 'bpmn:EndEvent') && getErrorEventDefinition(element)) {
  5752. return false;
  5753. }
  5754. return isAny(element, ['zeebe:ZeebeServiceTask', 'bpmn:UserTask', 'bpmn:SubProcess', 'bpmn:ReceiveTask', 'bpmn:CallActivity', 'bpmn:Event', 'bpmn:BusinessRuleTask']);
  5755. }
  5756. function createIOMapping(properties, parent, bpmnFactory) {
  5757. return createElement('zeebe:IoMapping', properties, parent, bpmnFactory);
  5758. }
  5759. function isSignalThrowEvent(element) {
  5760. if (!isAny(element, ['bpmn:EndEvent', 'bpmn:IntermediateThrowEvent'])) {
  5761. return false;
  5762. }
  5763. return !!getEventDefinition$1(element, 'bpmn:SignalEventDefinition');
  5764. }
  5765. function InputProps$1({
  5766. element,
  5767. injector
  5768. }) {
  5769. if (!areInputParametersSupported$1(element)) {
  5770. return null;
  5771. }
  5772. const inputParameters = getInputParameters$1(element) || [];
  5773. const bpmnFactory = injector.get('bpmnFactory'),
  5774. commandStack = injector.get('commandStack');
  5775. const items = inputParameters.map((parameter, index) => {
  5776. const id = element.id + '-input-' + index;
  5777. return {
  5778. id,
  5779. label: parameter.get('target') || '',
  5780. entries: InputOutputParameter$1({
  5781. idPrefix: id,
  5782. element,
  5783. parameter
  5784. }),
  5785. autoFocusEntry: id + '-target',
  5786. remove: removeFactory$b({
  5787. commandStack,
  5788. element,
  5789. parameter
  5790. })
  5791. };
  5792. });
  5793. return {
  5794. items,
  5795. add: addFactory$8({
  5796. element,
  5797. bpmnFactory,
  5798. commandStack
  5799. }),
  5800. shouldSort: false
  5801. };
  5802. }
  5803. function removeFactory$b({
  5804. commandStack,
  5805. element,
  5806. parameter
  5807. }) {
  5808. return function (event) {
  5809. event.stopPropagation();
  5810. const commands = [];
  5811. const ioMapping = getIoMapping(element);
  5812. if (!ioMapping) {
  5813. return;
  5814. }
  5815. const inputParameters = without(ioMapping.get('inputParameters'), parameter);
  5816. commands.push({
  5817. cmd: 'element.updateModdleProperties',
  5818. context: {
  5819. element,
  5820. moddleElement: ioMapping,
  5821. properties: {
  5822. inputParameters
  5823. }
  5824. }
  5825. });
  5826. const businessObject = getBusinessObject(element),
  5827. extensionElements = businessObject.get('extensionElements'),
  5828. values = without(extensionElements.get('values'), ioMapping);
  5829. // remove ioMapping if there are no input/output parameters anymore
  5830. if (!inputParameters.length && !ioMapping.get('outputParameters').length) {
  5831. commands.push({
  5832. cmd: 'element.updateModdleProperties',
  5833. context: {
  5834. element,
  5835. moddleElement: extensionElements,
  5836. properties: {
  5837. values
  5838. }
  5839. }
  5840. });
  5841. }
  5842. commandStack.execute('properties-panel.multi-command-executor', commands);
  5843. };
  5844. }
  5845. function addFactory$8({
  5846. element,
  5847. bpmnFactory,
  5848. commandStack
  5849. }) {
  5850. return function (event) {
  5851. event.stopPropagation();
  5852. const commands = [];
  5853. const businessObject = getBusinessObject(element);
  5854. let extensionElements = businessObject.get('extensionElements');
  5855. // (1) ensure extension elements
  5856. if (!extensionElements) {
  5857. extensionElements = createElement('bpmn:ExtensionElements', {
  5858. values: []
  5859. }, businessObject, bpmnFactory);
  5860. commands.push({
  5861. cmd: 'element.updateModdleProperties',
  5862. context: {
  5863. element,
  5864. moddleElement: businessObject,
  5865. properties: {
  5866. extensionElements
  5867. }
  5868. }
  5869. });
  5870. }
  5871. // (2) ensure IoMapping
  5872. let ioMapping = getIoMapping(element);
  5873. if (!ioMapping) {
  5874. ioMapping = createIOMapping({
  5875. inputParameters: [],
  5876. outputParameters: []
  5877. }, extensionElements, bpmnFactory);
  5878. commands.push({
  5879. cmd: 'element.updateModdleProperties',
  5880. context: {
  5881. element,
  5882. moddleElement: extensionElements,
  5883. properties: {
  5884. values: [...extensionElements.get('values'), ioMapping]
  5885. }
  5886. }
  5887. });
  5888. }
  5889. // (3) create parameter
  5890. const newParameter = createElement('zeebe:Input', {
  5891. target: nextId('InputVariable_')
  5892. }, ioMapping, bpmnFactory);
  5893. // (4) add parameter to list
  5894. commands.push({
  5895. cmd: 'element.updateModdleProperties',
  5896. context: {
  5897. element,
  5898. moddleElement: ioMapping,
  5899. properties: {
  5900. inputParameters: [...ioMapping.get('inputParameters'), newParameter]
  5901. }
  5902. }
  5903. });
  5904. commandStack.execute('properties-panel.multi-command-executor', commands);
  5905. };
  5906. }
  5907. function MessageProps(props) {
  5908. const {
  5909. element
  5910. } = props;
  5911. const message = getMessage(element);
  5912. const entries = [];
  5913. if (message) {
  5914. entries.push({
  5915. id: 'messageName',
  5916. component: MessageName,
  5917. isEdited: isFeelEntryEdited
  5918. });
  5919. }
  5920. if (message && canHaveSubscriptionCorrelationKey(element)) {
  5921. entries.push({
  5922. id: 'messageSubscriptionCorrelationKey',
  5923. component: SubscriptionCorrelationKey,
  5924. isEdited: isFeelEntryEdited
  5925. });
  5926. }
  5927. return entries;
  5928. }
  5929. function MessageName(props) {
  5930. const {
  5931. element
  5932. } = props;
  5933. const commandStack = useService('commandStack');
  5934. const translate = useService('translate');
  5935. const debounce = useService('debounceInput');
  5936. const message = getMessage(element);
  5937. const getValue = () => {
  5938. return message.get('name');
  5939. };
  5940. const setValue = value => {
  5941. return commandStack.execute('element.updateModdleProperties', {
  5942. element,
  5943. moddleElement: message,
  5944. properties: {
  5945. name: value
  5946. }
  5947. });
  5948. };
  5949. return FeelEntryWithVariableContext({
  5950. element,
  5951. id: 'messageName',
  5952. label: translate('Name'),
  5953. feel: 'optional',
  5954. getValue,
  5955. setValue,
  5956. debounce
  5957. });
  5958. }
  5959. function SubscriptionCorrelationKey(props) {
  5960. const {
  5961. element
  5962. } = props;
  5963. const bpmnFactory = useService('bpmnFactory');
  5964. const commandStack = useService('commandStack');
  5965. const translate = useService('translate');
  5966. const debounce = useService('debounceInput');
  5967. const getValue = () => {
  5968. return getCorrelationKey(element);
  5969. };
  5970. const setValue = value => {
  5971. const commands = [];
  5972. const message = getMessage(element);
  5973. let extensionElements = message.get('extensionElements');
  5974. // (1) ensure extension elements
  5975. if (!extensionElements) {
  5976. extensionElements = createElement('bpmn:ExtensionElements', {
  5977. values: []
  5978. }, message, bpmnFactory);
  5979. commands.push({
  5980. cmd: 'element.updateModdleProperties',
  5981. context: {
  5982. element,
  5983. moddleElement: message,
  5984. properties: {
  5985. extensionElements
  5986. }
  5987. }
  5988. });
  5989. }
  5990. // (2) ensure subscription
  5991. let subscription = getSubscription(element);
  5992. if (!subscription) {
  5993. subscription = createElement('zeebe:Subscription', {}, extensionElements, bpmnFactory);
  5994. commands.push({
  5995. cmd: 'element.updateModdleProperties',
  5996. context: {
  5997. element,
  5998. moddleElement: extensionElements,
  5999. properties: {
  6000. values: [...extensionElements.get('values'), subscription]
  6001. }
  6002. }
  6003. });
  6004. }
  6005. // (3) update subscription correlation key
  6006. commands.push({
  6007. cmd: 'element.updateModdleProperties',
  6008. context: {
  6009. element,
  6010. moddleElement: subscription,
  6011. properties: {
  6012. correlationKey: value
  6013. }
  6014. }
  6015. });
  6016. // (4) commit all updates
  6017. commandStack.execute('properties-panel.multi-command-executor', commands);
  6018. };
  6019. return FeelEntryWithVariableContext({
  6020. element,
  6021. id: 'messageSubscriptionCorrelationKey',
  6022. label: translate('Subscription correlation key'),
  6023. feel: 'required',
  6024. getValue,
  6025. setValue,
  6026. debounce
  6027. });
  6028. }
  6029. // helper ///////////////////////
  6030. function canHaveSubscriptionCorrelationKey(element) {
  6031. // (1) allow for receive task
  6032. if (is(element, 'bpmn:ReceiveTask')) {
  6033. return true;
  6034. }
  6035. // (2) allow for non start events
  6036. if (!is(element, 'bpmn:StartEvent')) {
  6037. return true;
  6038. }
  6039. // (3) allow for start events inside event sub processes
  6040. if (is(element, 'bpmn:StartEvent') && isEventSubProcess(element.parent)) {
  6041. return true;
  6042. }
  6043. return false;
  6044. }
  6045. function getCorrelationKey(element) {
  6046. const subscription = getSubscription(element);
  6047. return subscription ? subscription.get('correlationKey') : '';
  6048. }
  6049. function getSubscription(element) {
  6050. const message = getMessage(element);
  6051. const subscriptions = getSubscriptions(message);
  6052. return subscriptions[0];
  6053. }
  6054. function getSubscriptions(message) {
  6055. const extensionElements = getExtensionElementsList(message, 'zeebe:Subscription');
  6056. return extensionElements;
  6057. }
  6058. function MultiInstanceProps$1(props) {
  6059. const {
  6060. element
  6061. } = props;
  6062. if (!supportsMultiInstances(element)) {
  6063. return [];
  6064. }
  6065. return [{
  6066. id: 'multiInstance-inputCollection',
  6067. component: InputCollection,
  6068. isEdited: isFeelEntryEdited
  6069. }, {
  6070. id: 'multiInstance-inputElement',
  6071. component: InputElement,
  6072. isEdited: isTextFieldEntryEdited
  6073. }, {
  6074. id: 'multiInstance-outputCollection',
  6075. component: OutputCollection,
  6076. isEdited: isTextFieldEntryEdited
  6077. }, {
  6078. id: 'multiInstance-outputElement',
  6079. component: OutputElement,
  6080. isEdited: isFeelEntryEdited
  6081. }, {
  6082. id: 'multiInstance-completionCondition',
  6083. component: CompletionCondition,
  6084. isEdited: isFeelEntryEdited
  6085. }];
  6086. }
  6087. function InputCollection(props) {
  6088. const {
  6089. element
  6090. } = props;
  6091. const commandStack = useService('commandStack');
  6092. const bpmnFactory = useService('bpmnFactory');
  6093. const translate = useService('translate');
  6094. const debounce = useService('debounceInput');
  6095. const getValue = () => {
  6096. return getProperty$1(element, 'inputCollection');
  6097. };
  6098. const setValue = value => {
  6099. return setProperty(element, 'inputCollection', value, commandStack, bpmnFactory);
  6100. };
  6101. return FeelEntryWithVariableContext({
  6102. element,
  6103. id: 'multiInstance-inputCollection',
  6104. label: translate('Input collection'),
  6105. feel: 'required',
  6106. getValue,
  6107. setValue,
  6108. debounce
  6109. });
  6110. }
  6111. function InputElement(props) {
  6112. const {
  6113. element
  6114. } = props;
  6115. const commandStack = useService('commandStack');
  6116. const bpmnFactory = useService('bpmnFactory');
  6117. const translate = useService('translate');
  6118. const debounce = useService('debounceInput');
  6119. const getValue = () => {
  6120. return getProperty$1(element, 'inputElement');
  6121. };
  6122. const setValue = value => {
  6123. return setProperty(element, 'inputElement', value, commandStack, bpmnFactory);
  6124. };
  6125. return TextFieldEntry({
  6126. element,
  6127. id: 'multiInstance-inputElement',
  6128. label: translate('Input element'),
  6129. getValue,
  6130. setValue,
  6131. debounce
  6132. });
  6133. }
  6134. function OutputCollection(props) {
  6135. const {
  6136. element
  6137. } = props;
  6138. const commandStack = useService('commandStack');
  6139. const bpmnFactory = useService('bpmnFactory');
  6140. const translate = useService('translate');
  6141. const debounce = useService('debounceInput');
  6142. const getValue = () => {
  6143. return getProperty$1(element, 'outputCollection');
  6144. };
  6145. const setValue = value => {
  6146. return setProperty(element, 'outputCollection', value, commandStack, bpmnFactory);
  6147. };
  6148. return TextFieldEntry({
  6149. element,
  6150. id: 'multiInstance-outputCollection',
  6151. label: translate('Output collection'),
  6152. getValue,
  6153. setValue,
  6154. debounce
  6155. });
  6156. }
  6157. function OutputElement(props) {
  6158. const {
  6159. element
  6160. } = props;
  6161. const commandStack = useService('commandStack');
  6162. const bpmnFactory = useService('bpmnFactory');
  6163. const translate = useService('translate');
  6164. const debounce = useService('debounceInput');
  6165. const getValue = () => {
  6166. return getProperty$1(element, 'outputElement');
  6167. };
  6168. const setValue = value => {
  6169. return setProperty(element, 'outputElement', value, commandStack, bpmnFactory);
  6170. };
  6171. return FeelEntryWithVariableContext({
  6172. element,
  6173. id: 'multiInstance-outputElement',
  6174. label: translate('Output element'),
  6175. feel: 'required',
  6176. getValue,
  6177. setValue,
  6178. debounce
  6179. });
  6180. }
  6181. function CompletionCondition(props) {
  6182. const {
  6183. element
  6184. } = props;
  6185. const commandStack = useService('commandStack');
  6186. const bpmnFactory = useService('bpmnFactory');
  6187. const translate = useService('translate');
  6188. const debounce = useService('debounceInput');
  6189. const getValue = () => {
  6190. const completionCondition = getCompletionCondition(element);
  6191. return completionCondition && completionCondition.get('body');
  6192. };
  6193. const setValue = value => {
  6194. if (value && value !== '') {
  6195. const loopCharacteristics = getLoopCharacteristics$1(element);
  6196. const completionCondition = createElement('bpmn:FormalExpression', {
  6197. body: value
  6198. }, loopCharacteristics, bpmnFactory);
  6199. setCompletionCondition(element, commandStack, completionCondition);
  6200. } else {
  6201. setCompletionCondition(element, commandStack, undefined);
  6202. }
  6203. };
  6204. return FeelEntryWithVariableContext({
  6205. element,
  6206. id: 'multiInstance-completionCondition',
  6207. label: translate('Completion condition'),
  6208. feel: 'required',
  6209. getValue,
  6210. setValue,
  6211. debounce
  6212. });
  6213. }
  6214. // helper ///////////////////////
  6215. function getLoopCharacteristics$1(element) {
  6216. const businessObject = getBusinessObject(element);
  6217. return businessObject.get('loopCharacteristics');
  6218. }
  6219. function getZeebeLoopCharacteristics(loopCharacteristics) {
  6220. const extensionElements = getExtensionElementsList(loopCharacteristics, 'zeebe:LoopCharacteristics');
  6221. return extensionElements && extensionElements[0];
  6222. }
  6223. function supportsMultiInstances(element) {
  6224. return !!getLoopCharacteristics$1(element);
  6225. }
  6226. function getCompletionCondition(element) {
  6227. return getLoopCharacteristics$1(element).get('completionCondition');
  6228. }
  6229. function setCompletionCondition(element, commandStack, completionCondition = undefined) {
  6230. commandStack.execute('element.updateModdleProperties', {
  6231. element,
  6232. moddleElement: getLoopCharacteristics$1(element),
  6233. properties: {
  6234. completionCondition
  6235. }
  6236. });
  6237. }
  6238. function getProperty$1(element, propertyName) {
  6239. const loopCharacteristics = getLoopCharacteristics$1(element),
  6240. zeebeLoopCharacteristics = getZeebeLoopCharacteristics(loopCharacteristics);
  6241. return zeebeLoopCharacteristics && zeebeLoopCharacteristics.get(propertyName);
  6242. }
  6243. function setProperty(element, propertyName, value, commandStack, bpmnFactory) {
  6244. const loopCharacteristics = getLoopCharacteristics$1(element);
  6245. const commands = [];
  6246. // (1) ensure extension elements
  6247. let extensionElements = loopCharacteristics.get('extensionElements');
  6248. if (!extensionElements) {
  6249. extensionElements = createElement('bpmn:ExtensionElements', {
  6250. values: []
  6251. }, loopCharacteristics, bpmnFactory);
  6252. commands.push({
  6253. cmd: 'element.updateModdleProperties',
  6254. context: {
  6255. element,
  6256. moddleElement: loopCharacteristics,
  6257. properties: {
  6258. extensionElements
  6259. }
  6260. }
  6261. });
  6262. }
  6263. // (2) ensure zeebe loop characteristics
  6264. let zeebeLoopCharacteristics = getZeebeLoopCharacteristics(loopCharacteristics);
  6265. if (!zeebeLoopCharacteristics) {
  6266. zeebeLoopCharacteristics = createElement('zeebe:LoopCharacteristics', {}, extensionElements, bpmnFactory);
  6267. commands.push({
  6268. cmd: 'element.updateModdleProperties',
  6269. context: {
  6270. element,
  6271. moddleElement: extensionElements,
  6272. properties: {
  6273. values: [...extensionElements.get('values'), zeebeLoopCharacteristics]
  6274. }
  6275. }
  6276. });
  6277. }
  6278. // (3) update defined property
  6279. commands.push({
  6280. cmd: 'element.updateModdleProperties',
  6281. context: {
  6282. element,
  6283. moddleElement: zeebeLoopCharacteristics,
  6284. properties: {
  6285. [propertyName]: value
  6286. }
  6287. }
  6288. });
  6289. // (4) commit all updates
  6290. commandStack.execute('properties-panel.multi-command-executor', commands);
  6291. }
  6292. function OutputPropagationProps(props) {
  6293. const {
  6294. element
  6295. } = props;
  6296. if (!is(element, 'bpmn:CallActivity')) {
  6297. return [];
  6298. }
  6299. return [{
  6300. id: 'propagateAllChildVariables',
  6301. component: PropagateAllChildVariables,
  6302. isEdited: isToggleSwitchEntryEdited
  6303. }];
  6304. }
  6305. function PropagateAllChildVariables(props) {
  6306. const {
  6307. element
  6308. } = props;
  6309. const commandStack = useService('commandStack'),
  6310. bpmnFactory = useService('bpmnFactory'),
  6311. translate = useService('translate');
  6312. const propagateAllChildVariables = isPropagateAllChildVariables(element);
  6313. const getValue = () => {
  6314. return propagateAllChildVariables;
  6315. };
  6316. const setValue = value => {
  6317. const commands = [];
  6318. const businessObject = getBusinessObject(element);
  6319. // (1) ensure extension elements
  6320. let extensionElements = businessObject.get('extensionElements');
  6321. if (!extensionElements) {
  6322. extensionElements = createElement('bpmn:ExtensionElements', {
  6323. values: []
  6324. }, businessObject, bpmnFactory);
  6325. commands.push({
  6326. cmd: 'element.updateModdleProperties',
  6327. context: {
  6328. element,
  6329. moddleElement: businessObject,
  6330. properties: {
  6331. extensionElements
  6332. }
  6333. }
  6334. });
  6335. }
  6336. // (2) ensure zeebe:calledElement
  6337. let calledElement = getCalledElement(businessObject);
  6338. if (!calledElement) {
  6339. calledElement = createElement('zeebe:CalledElement', {}, extensionElements, bpmnFactory);
  6340. commands.push({
  6341. cmd: 'element.updateModdleProperties',
  6342. context: {
  6343. element,
  6344. moddleElement: extensionElements,
  6345. properties: {
  6346. values: [...extensionElements.get('values'), calledElement]
  6347. }
  6348. }
  6349. });
  6350. }
  6351. // (3) Update propagateAllChildVariables attribute
  6352. commands.push({
  6353. cmd: 'element.updateModdleProperties',
  6354. context: {
  6355. element,
  6356. moddleElement: calledElement,
  6357. properties: {
  6358. propagateAllChildVariables: value
  6359. }
  6360. }
  6361. });
  6362. // (4) Execute the commands
  6363. commandStack.execute('properties-panel.multi-command-executor', commands);
  6364. };
  6365. return ToggleSwitchEntry({
  6366. id: 'propagateAllChildVariables',
  6367. label: translate('Propagate all child process variables'),
  6368. switcherLabel: propagateAllChildVariables ? translate('On') : translate('Off'),
  6369. tooltip: jsxs("div", {
  6370. children: [jsx("p", {
  6371. children: translate('If turned on, all variables from the child process instance will be propagated to the parent process instance.')
  6372. }), jsx("p", {
  6373. children: translate('Otherwise, only variables defined via output mappings will be propagated.')
  6374. })]
  6375. }),
  6376. getValue,
  6377. setValue
  6378. });
  6379. }
  6380. // helper //////////////////////////
  6381. /**
  6382. * Determine default value for propagateAllChildVariables attribute
  6383. * @param {Object} element representing a bpmn:CallActivity
  6384. *
  6385. * @returns {boolean}
  6386. */
  6387. function determinePropAllChildVariablesDefault(element) {
  6388. const outputParameters = getOutputParameters$1(element);
  6389. if (outputParameters) {
  6390. return outputParameters.length > 0 ? false : true;
  6391. }
  6392. }
  6393. /**
  6394. * Check whether the propagateAllChildVariables attribute is set on an element.
  6395. * Note that a default logic will be determine if it is not explicitly set.
  6396. * @param {Object} element
  6397. *
  6398. * @returns {boolean}
  6399. */
  6400. function isPropagateAllChildVariables(element) {
  6401. if (!is(element, 'bpmn:CallActivity')) {
  6402. return undefined;
  6403. }
  6404. const bo = getBusinessObject(element),
  6405. calledElement = getCalledElement(bo);
  6406. return calledElement && has(calledElement, 'propagateAllChildVariables') ? calledElement.get('propagateAllChildVariables') : determinePropAllChildVariablesDefault(element);
  6407. }
  6408. function OutputProps$1({
  6409. element,
  6410. injector
  6411. }) {
  6412. if (!areOutputParametersSupported$1(element)) {
  6413. return null;
  6414. }
  6415. const outputParameters = getOutputParameters$1(element) || [];
  6416. const bpmnFactory = injector.get('bpmnFactory'),
  6417. commandStack = injector.get('commandStack');
  6418. const items = outputParameters.map((parameter, index) => {
  6419. const id = element.id + '-output-' + index;
  6420. return {
  6421. id,
  6422. label: parameter.get('target') || '',
  6423. entries: InputOutputParameter$1({
  6424. idPrefix: id,
  6425. element,
  6426. parameter
  6427. }),
  6428. autoFocusEntry: id + '-target',
  6429. remove: removeFactory$a({
  6430. commandStack,
  6431. element,
  6432. parameter
  6433. })
  6434. };
  6435. });
  6436. return {
  6437. items,
  6438. add: addFactory$7({
  6439. element,
  6440. bpmnFactory,
  6441. commandStack
  6442. }),
  6443. shouldSort: false
  6444. };
  6445. }
  6446. function removeFactory$a({
  6447. commandStack,
  6448. element,
  6449. parameter
  6450. }) {
  6451. return function (event) {
  6452. event.stopPropagation();
  6453. let commands = [];
  6454. const ioMapping = getIoMapping(element);
  6455. if (!ioMapping) {
  6456. return;
  6457. }
  6458. const outputParameters = without(ioMapping.get('outputParameters'), parameter);
  6459. commands.push({
  6460. cmd: 'element.updateModdleProperties',
  6461. context: {
  6462. element,
  6463. moddleElement: ioMapping,
  6464. properties: {
  6465. outputParameters
  6466. }
  6467. }
  6468. });
  6469. // remove ioMapping if there are no input/output parameters anymore
  6470. if (!ioMapping.get('inputParameters').length && !outputParameters.length) {
  6471. const businessObject = getBusinessObject(element),
  6472. extensionElements = businessObject.get('extensionElements'),
  6473. values = without(extensionElements.get('values'), ioMapping);
  6474. commands.push({
  6475. cmd: 'element.updateModdleProperties',
  6476. context: {
  6477. element,
  6478. moddleElement: extensionElements,
  6479. properties: {
  6480. values
  6481. }
  6482. }
  6483. });
  6484. }
  6485. commandStack.execute('properties-panel.multi-command-executor', commands);
  6486. };
  6487. }
  6488. function addFactory$7({
  6489. element,
  6490. bpmnFactory,
  6491. commandStack
  6492. }) {
  6493. return function (event) {
  6494. event.stopPropagation();
  6495. let commands = [];
  6496. const businessObject = getBusinessObject(element);
  6497. let extensionElements = businessObject.get('extensionElements');
  6498. // (1) ensure extension elements
  6499. if (!extensionElements) {
  6500. extensionElements = createElement('bpmn:ExtensionElements', {
  6501. values: []
  6502. }, businessObject, bpmnFactory);
  6503. commands.push({
  6504. cmd: 'element.updateModdleProperties',
  6505. context: {
  6506. element,
  6507. moddleElement: businessObject,
  6508. properties: {
  6509. extensionElements
  6510. }
  6511. }
  6512. });
  6513. }
  6514. // (2) ensure IoMapping
  6515. let ioMapping = getIoMapping(element);
  6516. if (!ioMapping) {
  6517. const parent = extensionElements;
  6518. ioMapping = createIOMapping({
  6519. inputParameters: [],
  6520. outputParameters: []
  6521. }, parent, bpmnFactory);
  6522. commands.push({
  6523. cmd: 'element.updateModdleProperties',
  6524. context: {
  6525. element,
  6526. moddleElement: extensionElements,
  6527. properties: {
  6528. values: [...extensionElements.get('values'), ioMapping]
  6529. }
  6530. }
  6531. });
  6532. }
  6533. // (3) create parameter
  6534. const newParameter = createElement('zeebe:Output', {
  6535. target: nextId('OutputVariable_')
  6536. }, ioMapping, bpmnFactory);
  6537. // (4) add parameter to list
  6538. commands.push({
  6539. cmd: 'element.updateModdleProperties',
  6540. context: {
  6541. element,
  6542. moddleElement: ioMapping,
  6543. properties: {
  6544. outputParameters: [...ioMapping.get('outputParameters'), newParameter]
  6545. }
  6546. }
  6547. });
  6548. commandStack.execute('properties-panel.multi-command-executor', commands);
  6549. };
  6550. }
  6551. const SCRIPT_IMPLEMENTATION_OPTION = 'script',
  6552. JOB_WORKER_IMPLEMENTATION_OPTION = 'jobWorker',
  6553. DEFAULT_IMPLEMENTATION_OPTION = '';
  6554. function ScriptImplementationProps(props) {
  6555. const {
  6556. element
  6557. } = props;
  6558. if (!is(element, 'bpmn:ScriptTask')) {
  6559. return [];
  6560. }
  6561. return [{
  6562. id: 'scriptImplementation',
  6563. component: ScriptImplementation,
  6564. isEdited: () => isScriptImplementationEdited(element)
  6565. }];
  6566. }
  6567. function ScriptImplementation(props) {
  6568. const {
  6569. element,
  6570. id
  6571. } = props;
  6572. const commandStack = useService('commandStack');
  6573. const bpmnFactory = useService('bpmnFactory');
  6574. const translate = useService('translate');
  6575. const getValue = () => {
  6576. if (getScript$1(element)) {
  6577. return SCRIPT_IMPLEMENTATION_OPTION;
  6578. }
  6579. if (getTaskDefinition$1(element)) {
  6580. return JOB_WORKER_IMPLEMENTATION_OPTION;
  6581. }
  6582. return DEFAULT_IMPLEMENTATION_OPTION;
  6583. };
  6584. /**
  6585. * Set value by either creating a zeebe:script or a zeebe:taskDefintion
  6586. * extension element. Note that they must not exist both at the same time, however
  6587. * this will be ensured by a bpmn-js behavior (and not by the propPanel).
  6588. */
  6589. const setValue = value => {
  6590. let extensionElement, extensionElementType;
  6591. if (value === SCRIPT_IMPLEMENTATION_OPTION) {
  6592. extensionElement = getScript$1(element);
  6593. extensionElementType = 'zeebe:Script';
  6594. } else if (value === JOB_WORKER_IMPLEMENTATION_OPTION) {
  6595. extensionElement = getTaskDefinition$1(element);
  6596. extensionElementType = 'zeebe:TaskDefinition';
  6597. } else {
  6598. resetElement(element, commandStack);
  6599. }
  6600. if (!extensionElement && extensionElementType) {
  6601. extensionElement = createElement(extensionElementType, {}, null, bpmnFactory);
  6602. updateExtensionElements(element, extensionElement, bpmnFactory, commandStack);
  6603. }
  6604. };
  6605. const getOptions = () => {
  6606. const options = [{
  6607. value: DEFAULT_IMPLEMENTATION_OPTION,
  6608. label: translate('<none>')
  6609. }, {
  6610. value: SCRIPT_IMPLEMENTATION_OPTION,
  6611. label: translate('FEEL expression')
  6612. }, {
  6613. value: JOB_WORKER_IMPLEMENTATION_OPTION,
  6614. label: translate('Job worker')
  6615. }];
  6616. return options;
  6617. };
  6618. return SelectEntry({
  6619. element,
  6620. id,
  6621. label: translate('Implementation'),
  6622. getValue,
  6623. setValue,
  6624. getOptions
  6625. });
  6626. }
  6627. // helper ///////////////////////
  6628. function getTaskDefinition$1(element) {
  6629. const businessObject = getBusinessObject(element);
  6630. return getExtensionElementsList(businessObject, 'zeebe:TaskDefinition')[0];
  6631. }
  6632. function getScript$1(element) {
  6633. const businessObject = getBusinessObject(element);
  6634. return getExtensionElementsList(businessObject, 'zeebe:Script')[0];
  6635. }
  6636. function getTaskHeaders(element) {
  6637. const businessObject = getBusinessObject(element);
  6638. return getExtensionElementsList(businessObject, 'zeebe:TaskHeaders');
  6639. }
  6640. function isScriptImplementationEdited(element) {
  6641. return getTaskDefinition$1(element) || getScript$1(element);
  6642. }
  6643. function resetElement(element, commandStack) {
  6644. const businessObject = getBusinessObject(element);
  6645. const taskDefinition = getTaskDefinition$1(element);
  6646. const taskHeaders = getTaskHeaders(element);
  6647. const script = getScript$1(element);
  6648. if (taskDefinition) {
  6649. const removed = [taskDefinition, taskHeaders].filter(Boolean);
  6650. removeExtensionElements(element, businessObject, removed, commandStack);
  6651. return;
  6652. }
  6653. if (script) {
  6654. removeExtensionElements(element, businessObject, script, commandStack);
  6655. }
  6656. }
  6657. function updateExtensionElements(element, extensionElementToAdd, bpmnFactory, commandStack) {
  6658. const businessObject = getBusinessObject(element);
  6659. const commands = [];
  6660. let extensionElements = businessObject.get('extensionElements');
  6661. let extensionElementValues;
  6662. // (1) create bpmn:ExtensionElements if it doesn't exist
  6663. if (!extensionElements) {
  6664. extensionElements = createElement('bpmn:ExtensionElements', {
  6665. values: []
  6666. }, businessObject, bpmnFactory);
  6667. commands.push({
  6668. cmd: 'element.updateModdleProperties',
  6669. context: {
  6670. element,
  6671. moddleElement: businessObject,
  6672. properties: {
  6673. extensionElements
  6674. }
  6675. }
  6676. });
  6677. }
  6678. extensionElementToAdd.$parent = extensionElements;
  6679. // (2) remove old exension element from extensionElements
  6680. if (is(extensionElementToAdd, 'zeebe:TaskDefinition')) {
  6681. extensionElementValues = without(extensionElements.get('values'), getScript$1(element));
  6682. } else if (is(extensionElementToAdd, 'zeebe:Script')) {
  6683. const matcher = extension => isAny$1(extension, ['zeebe:TaskDefinition', 'zeebe:TaskHeaders']);
  6684. extensionElementValues = without(extensionElements.get('values'), matcher);
  6685. }
  6686. // (3) add extension element to list
  6687. commands.push({
  6688. cmd: 'element.updateModdleProperties',
  6689. context: {
  6690. element,
  6691. moddleElement: extensionElements,
  6692. properties: {
  6693. values: [...extensionElementValues, extensionElementToAdd]
  6694. }
  6695. }
  6696. });
  6697. commandStack.execute('properties-panel.multi-command-executor', commands);
  6698. }
  6699. function ScriptProps$1(props) {
  6700. const {
  6701. element
  6702. } = props;
  6703. if (!is(element, 'bpmn:ScriptTask') || !getScript(element)) {
  6704. return [];
  6705. }
  6706. return [{
  6707. id: 'resultVariable',
  6708. component: ResultVariable$3,
  6709. isEdited: isTextFieldEntryEdited
  6710. }, {
  6711. id: 'scriptExpression',
  6712. component: Expression$2,
  6713. isEdited: isFeelEntryEdited
  6714. }];
  6715. }
  6716. function Expression$2(props) {
  6717. const {
  6718. element,
  6719. id
  6720. } = props;
  6721. const commandStack = useService('commandStack');
  6722. const bpmnFactory = useService('bpmnFactory');
  6723. const translate = useService('translate');
  6724. const debounce = useService('debounceInput');
  6725. const getValue = () => {
  6726. return (getScript(element) || {}).get('expression');
  6727. };
  6728. const setValue = value => {
  6729. const commands = [];
  6730. const businessObject = getBusinessObject(element);
  6731. let extensionElements = businessObject.get('extensionElements');
  6732. // (1) ensure extension elements
  6733. if (!extensionElements) {
  6734. extensionElements = createElement('bpmn:ExtensionElements', {
  6735. values: []
  6736. }, businessObject, bpmnFactory);
  6737. commands.push({
  6738. cmd: 'element.updateModdleProperties',
  6739. context: {
  6740. element,
  6741. moddleElement: businessObject,
  6742. properties: {
  6743. extensionElements
  6744. }
  6745. }
  6746. });
  6747. }
  6748. // (2) ensure script
  6749. let script = getScript(element);
  6750. if (!script) {
  6751. script = createElement('zeebe:Script', {}, extensionElements, bpmnFactory);
  6752. commands.push({
  6753. cmd: 'element.updateModdleProperties',
  6754. context: {
  6755. element,
  6756. moddleElement: extensionElements,
  6757. properties: {
  6758. values: [...extensionElements.get('values'), script]
  6759. }
  6760. }
  6761. });
  6762. }
  6763. // (3) update script.expression
  6764. commands.push({
  6765. cmd: 'element.updateModdleProperties',
  6766. context: {
  6767. element,
  6768. moddleElement: script,
  6769. properties: {
  6770. expression: value
  6771. }
  6772. }
  6773. });
  6774. // (4) commit all updates
  6775. commandStack.execute('properties-panel.multi-command-executor', commands);
  6776. };
  6777. return FeelEntryWithVariableContext({
  6778. element,
  6779. id,
  6780. label: translate('FEEL expression'),
  6781. feel: 'required',
  6782. getValue,
  6783. setValue,
  6784. debounce
  6785. });
  6786. }
  6787. function ResultVariable$3(props) {
  6788. const {
  6789. element,
  6790. id
  6791. } = props;
  6792. const commandStack = useService('commandStack');
  6793. const bpmnFactory = useService('bpmnFactory');
  6794. const translate = useService('translate');
  6795. const debounce = useService('debounceInput');
  6796. const getValue = () => {
  6797. return (getScript(element) || {}).resultVariable;
  6798. };
  6799. const setValue = value => {
  6800. const commands = [];
  6801. const businessObject = getBusinessObject(element);
  6802. let extensionElements = businessObject.get('extensionElements');
  6803. // (1) ensure extension elements
  6804. if (!extensionElements) {
  6805. extensionElements = createElement('bpmn:ExtensionElements', {
  6806. values: []
  6807. }, businessObject, bpmnFactory);
  6808. commands.push({
  6809. cmd: 'element.updateModdleProperties',
  6810. context: {
  6811. element,
  6812. moddleElement: businessObject,
  6813. properties: {
  6814. extensionElements
  6815. }
  6816. }
  6817. });
  6818. }
  6819. // (2) ensure script
  6820. let script = getScript(element);
  6821. if (!script) {
  6822. script = createElement('zeebe:Script', {}, extensionElements, bpmnFactory);
  6823. commands.push({
  6824. cmd: 'element.updateModdleProperties',
  6825. context: {
  6826. element,
  6827. moddleElement: extensionElements,
  6828. properties: {
  6829. values: [...extensionElements.get('values'), script]
  6830. }
  6831. }
  6832. });
  6833. }
  6834. // (3) update script.resultVariable
  6835. commands.push({
  6836. cmd: 'element.updateModdleProperties',
  6837. context: {
  6838. element,
  6839. moddleElement: script,
  6840. properties: {
  6841. resultVariable: value
  6842. }
  6843. }
  6844. });
  6845. // (4) commit all updates
  6846. commandStack.execute('properties-panel.multi-command-executor', commands);
  6847. };
  6848. return TextFieldEntry({
  6849. element,
  6850. id,
  6851. label: translate('Result variable'),
  6852. getValue,
  6853. setValue,
  6854. debounce
  6855. });
  6856. }
  6857. // helper ///////////////////////
  6858. function getScript(element) {
  6859. const businessObject = getBusinessObject(element);
  6860. return getExtensionElementsList(businessObject, 'zeebe:Script')[0];
  6861. }
  6862. /**
  6863. * @returns {Entry[]}
  6864. */
  6865. function SignalProps(props) {
  6866. const {
  6867. element
  6868. } = props;
  6869. if (!isSignalSupported(element)) {
  6870. return [];
  6871. }
  6872. const signal = getSignal(element);
  6873. let entries = [];
  6874. if (signal) {
  6875. entries = [...entries, {
  6876. id: 'signalName',
  6877. component: SignalName,
  6878. isEdited: isFeelEntryEdited
  6879. }];
  6880. }
  6881. return entries;
  6882. }
  6883. function SignalName(props) {
  6884. const {
  6885. element
  6886. } = props;
  6887. const commandStack = useService('commandStack');
  6888. const translate = useService('translate');
  6889. const debounce = useService('debounceInput');
  6890. const signal = getSignal(element);
  6891. const getValue = () => {
  6892. return signal.get('name');
  6893. };
  6894. const setValue = value => {
  6895. return commandStack.execute('element.updateModdleProperties', {
  6896. element,
  6897. moddleElement: signal,
  6898. properties: {
  6899. name: value
  6900. }
  6901. });
  6902. };
  6903. return FeelEntryWithVariableContext({
  6904. element,
  6905. id: 'signalName',
  6906. label: translate('Name'),
  6907. feel: 'optional',
  6908. getValue,
  6909. setValue,
  6910. debounce
  6911. });
  6912. }
  6913. function TargetProps(props) {
  6914. const {
  6915. element
  6916. } = props;
  6917. if (!is(element, 'bpmn:CallActivity')) {
  6918. return [];
  6919. }
  6920. return [{
  6921. id: 'targetProcessId',
  6922. component: TargetProcessId,
  6923. isEdited: isFeelEntryEdited
  6924. }];
  6925. }
  6926. function TargetProcessId(props) {
  6927. const {
  6928. element,
  6929. id
  6930. } = props;
  6931. const commandStack = useService('commandStack'),
  6932. bpmnFactory = useService('bpmnFactory'),
  6933. translate = useService('translate'),
  6934. debounce = useService('debounceInput');
  6935. const getValue = () => {
  6936. return getProcessId(element);
  6937. };
  6938. const setValue = value => {
  6939. const commands = [];
  6940. const businessObject = getBusinessObject(element);
  6941. // (1) ensure extension elements
  6942. let extensionElements = businessObject.get('extensionElements');
  6943. if (!extensionElements) {
  6944. extensionElements = createElement('bpmn:ExtensionElements', {
  6945. values: []
  6946. }, businessObject, bpmnFactory);
  6947. commands.push({
  6948. cmd: 'element.updateModdleProperties',
  6949. context: {
  6950. element,
  6951. moddleElement: businessObject,
  6952. properties: {
  6953. extensionElements
  6954. }
  6955. }
  6956. });
  6957. }
  6958. // (2) ensure zeebe:calledElement
  6959. let calledElement = getCalledElement(businessObject);
  6960. if (!calledElement) {
  6961. calledElement = createElement('zeebe:CalledElement', {}, extensionElements, bpmnFactory);
  6962. commands.push({
  6963. cmd: 'element.updateModdleProperties',
  6964. context: {
  6965. element,
  6966. moddleElement: extensionElements,
  6967. properties: {
  6968. values: [...extensionElements.get('values'), calledElement]
  6969. }
  6970. }
  6971. });
  6972. }
  6973. // (3) Update processId attribute
  6974. commands.push({
  6975. cmd: 'element.updateModdleProperties',
  6976. context: {
  6977. element,
  6978. moddleElement: calledElement,
  6979. properties: {
  6980. processId: value
  6981. }
  6982. }
  6983. });
  6984. // (4) Execute the commands
  6985. commandStack.execute('properties-panel.multi-command-executor', commands);
  6986. };
  6987. return FeelEntryWithVariableContext({
  6988. element,
  6989. id,
  6990. label: translate('Process ID'),
  6991. feel: 'optional',
  6992. getValue,
  6993. setValue,
  6994. debounce
  6995. });
  6996. }
  6997. function TaskDefinitionProps(props) {
  6998. const {
  6999. element
  7000. } = props;
  7001. if (!isZeebeServiceTask(element)) {
  7002. return [];
  7003. }
  7004. return [{
  7005. id: 'taskDefinitionType',
  7006. component: TaskDefinitionType,
  7007. isEdited: isFeelEntryEdited
  7008. }, {
  7009. id: 'taskDefinitionRetries',
  7010. component: TaskDefinitionRetries,
  7011. isEdited: isFeelEntryEdited
  7012. }];
  7013. }
  7014. function TaskDefinitionType(props) {
  7015. const {
  7016. element,
  7017. id
  7018. } = props;
  7019. const commandStack = useService('commandStack');
  7020. const bpmnFactory = useService('bpmnFactory');
  7021. const translate = useService('translate');
  7022. const debounce = useService('debounceInput');
  7023. const getValue = () => {
  7024. return (getTaskDefinition(element) || {}).type;
  7025. };
  7026. const setValue = value => {
  7027. const commands = [];
  7028. const businessObject = getBusinessObject(element);
  7029. let extensionElements = businessObject.get('extensionElements');
  7030. // (1) ensure extension elements
  7031. if (!extensionElements) {
  7032. extensionElements = createElement('bpmn:ExtensionElements', {
  7033. values: []
  7034. }, businessObject, bpmnFactory);
  7035. commands.push({
  7036. cmd: 'element.updateModdleProperties',
  7037. context: {
  7038. element,
  7039. moddleElement: businessObject,
  7040. properties: {
  7041. extensionElements
  7042. }
  7043. }
  7044. });
  7045. }
  7046. // (2) ensure task definition
  7047. let taskDefinition = getTaskDefinition(element);
  7048. if (!taskDefinition) {
  7049. taskDefinition = createElement('zeebe:TaskDefinition', {}, extensionElements, bpmnFactory);
  7050. commands.push({
  7051. cmd: 'element.updateModdleProperties',
  7052. context: {
  7053. element,
  7054. moddleElement: extensionElements,
  7055. properties: {
  7056. values: [...extensionElements.get('values'), taskDefinition]
  7057. }
  7058. }
  7059. });
  7060. }
  7061. // (3) update task definition type
  7062. commands.push({
  7063. cmd: 'element.updateModdleProperties',
  7064. context: {
  7065. element,
  7066. moddleElement: taskDefinition,
  7067. properties: {
  7068. type: value
  7069. }
  7070. }
  7071. });
  7072. // (4) commit all updates
  7073. commandStack.execute('properties-panel.multi-command-executor', commands);
  7074. };
  7075. return FeelEntryWithVariableContext({
  7076. element,
  7077. id,
  7078. label: translate('Type'),
  7079. feel: 'optional',
  7080. getValue,
  7081. setValue,
  7082. debounce
  7083. });
  7084. }
  7085. function TaskDefinitionRetries(props) {
  7086. const {
  7087. element,
  7088. id
  7089. } = props;
  7090. const commandStack = useService('commandStack');
  7091. const bpmnFactory = useService('bpmnFactory');
  7092. const translate = useService('translate');
  7093. const debounce = useService('debounceInput');
  7094. const getValue = () => {
  7095. return (getTaskDefinition(element) || {}).retries;
  7096. };
  7097. const setValue = value => {
  7098. let commands = [];
  7099. const businessObject = getBusinessObject(element);
  7100. let extensionElements = businessObject.get('extensionElements');
  7101. // (1) ensure extension elements
  7102. if (!extensionElements) {
  7103. extensionElements = createElement('bpmn:ExtensionElements', {
  7104. values: []
  7105. }, businessObject, bpmnFactory);
  7106. commands.push({
  7107. cmd: 'element.updateModdleProperties',
  7108. context: {
  7109. element,
  7110. moddleElement: businessObject,
  7111. properties: {
  7112. extensionElements
  7113. }
  7114. }
  7115. });
  7116. }
  7117. // (2) ensure task definition
  7118. let taskDefinition = getTaskDefinition(element);
  7119. if (!taskDefinition) {
  7120. taskDefinition = createElement('zeebe:TaskDefinition', {}, extensionElements, bpmnFactory);
  7121. commands.push({
  7122. cmd: 'element.updateModdleProperties',
  7123. context: {
  7124. element,
  7125. moddleElement: extensionElements,
  7126. properties: {
  7127. values: [...extensionElements.get('values'), taskDefinition]
  7128. }
  7129. }
  7130. });
  7131. }
  7132. // (3) update task definition retries
  7133. commands.push({
  7134. cmd: 'element.updateModdleProperties',
  7135. context: {
  7136. element,
  7137. moddleElement: taskDefinition,
  7138. properties: {
  7139. retries: value
  7140. }
  7141. }
  7142. });
  7143. commandStack.execute('properties-panel.multi-command-executor', commands);
  7144. };
  7145. return FeelEntryWithVariableContext({
  7146. element,
  7147. id,
  7148. label: translate('Retries'),
  7149. feel: 'optional',
  7150. getValue,
  7151. setValue,
  7152. debounce,
  7153. tooltip: translate('Specifies the number of times the job is retried when a worker signals failure. The default is three.')
  7154. });
  7155. }
  7156. // helper ///////////////////////
  7157. function getTaskDefinition(element) {
  7158. const businessObject = getBusinessObject(element);
  7159. return getExtensionElementsList(businessObject, 'zeebe:TaskDefinition')[0];
  7160. }
  7161. function TaskScheduleProps(props) {
  7162. const {
  7163. element
  7164. } = props;
  7165. if (!is(element, 'bpmn:UserTask')) {
  7166. return [];
  7167. }
  7168. return [{
  7169. id: 'taskScheduleDueDate',
  7170. component: DueDate$1,
  7171. isEdited: isFeelEntryEdited
  7172. }, {
  7173. id: 'taskScheduleFollowUpDate',
  7174. component: FollowUpDate$1,
  7175. isEdited: isFeelEntryEdited
  7176. }];
  7177. }
  7178. function DueDate$1(props) {
  7179. const {
  7180. element
  7181. } = props;
  7182. const commandStack = useService('commandStack');
  7183. const bpmnFactory = useService('bpmnFactory');
  7184. const translate = useService('translate');
  7185. const debounce = useService('debounceInput');
  7186. const getValue = () => {
  7187. const taskSchedule = getTaskSchedule(element);
  7188. if (!taskSchedule) {
  7189. return;
  7190. }
  7191. return taskSchedule.get('dueDate');
  7192. };
  7193. const setValue = value => {
  7194. let commands = [];
  7195. const businessObject = getBusinessObject(element);
  7196. let extensionElements = businessObject.get('extensionElements');
  7197. // (1) ensure extension elements
  7198. if (!extensionElements) {
  7199. extensionElements = createElement('bpmn:ExtensionElements', {
  7200. values: []
  7201. }, businessObject, bpmnFactory);
  7202. commands.push({
  7203. cmd: 'element.updateModdleProperties',
  7204. context: {
  7205. element,
  7206. moddleElement: businessObject,
  7207. properties: {
  7208. extensionElements
  7209. }
  7210. }
  7211. });
  7212. }
  7213. // (2) ensure zeebe:TaskSchedule
  7214. let taskSchedule = getTaskSchedule(element);
  7215. if (!taskSchedule) {
  7216. taskSchedule = createElement('zeebe:TaskSchedule', {}, extensionElements, bpmnFactory);
  7217. commands.push({
  7218. cmd: 'element.updateModdleProperties',
  7219. context: {
  7220. element,
  7221. moddleElement: extensionElements,
  7222. properties: {
  7223. values: [...extensionElements.get('values'), taskSchedule]
  7224. }
  7225. }
  7226. });
  7227. }
  7228. // (3) update zeebe:dueDate
  7229. commands.push({
  7230. cmd: 'element.updateModdleProperties',
  7231. context: {
  7232. element,
  7233. moddleElement: taskSchedule,
  7234. properties: {
  7235. dueDate: value
  7236. }
  7237. }
  7238. });
  7239. commandStack.execute('properties-panel.multi-command-executor', commands);
  7240. };
  7241. return FeelEntryWithVariableContext({
  7242. element,
  7243. id: 'taskScheduleDueDate',
  7244. label: translate('Due date'),
  7245. feel: 'optional',
  7246. getValue,
  7247. setValue,
  7248. debounce
  7249. });
  7250. }
  7251. function FollowUpDate$1(props) {
  7252. const {
  7253. element
  7254. } = props;
  7255. const commandStack = useService('commandStack');
  7256. const bpmnFactory = useService('bpmnFactory');
  7257. const translate = useService('translate');
  7258. const debounce = useService('debounceInput');
  7259. const getValue = () => {
  7260. const taskSchedule = getTaskSchedule(element);
  7261. if (!taskSchedule) {
  7262. return;
  7263. }
  7264. return taskSchedule.get('followUpDate');
  7265. };
  7266. const setValue = value => {
  7267. let commands = [];
  7268. const businessObject = getBusinessObject(element);
  7269. let extensionElements = businessObject.get('extensionElements');
  7270. // (1) ensure extension elements
  7271. if (!extensionElements) {
  7272. extensionElements = createElement('bpmn:ExtensionElements', {
  7273. values: []
  7274. }, businessObject, bpmnFactory);
  7275. commands.push({
  7276. cmd: 'element.updateModdleProperties',
  7277. context: {
  7278. element,
  7279. moddleElement: businessObject,
  7280. properties: {
  7281. extensionElements
  7282. }
  7283. }
  7284. });
  7285. }
  7286. // (2) ensure zeebe:TaskSchedule
  7287. let taskSchedule = getTaskSchedule(element);
  7288. if (!taskSchedule) {
  7289. taskSchedule = createElement('zeebe:TaskSchedule', {}, extensionElements, bpmnFactory);
  7290. commands.push({
  7291. cmd: 'element.updateModdleProperties',
  7292. context: {
  7293. element,
  7294. moddleElement: extensionElements,
  7295. properties: {
  7296. values: [...extensionElements.get('values'), taskSchedule]
  7297. }
  7298. }
  7299. });
  7300. }
  7301. // (3) update zeebe:followUpDate
  7302. commands.push({
  7303. cmd: 'element.updateModdleProperties',
  7304. context: {
  7305. element,
  7306. moddleElement: taskSchedule,
  7307. properties: {
  7308. followUpDate: value
  7309. }
  7310. }
  7311. });
  7312. commandStack.execute('properties-panel.multi-command-executor', commands);
  7313. };
  7314. return FeelEntryWithVariableContext({
  7315. element,
  7316. id: 'taskScheduleFollowUpDate',
  7317. label: translate('Follow up date'),
  7318. feel: 'optional',
  7319. getValue,
  7320. setValue,
  7321. debounce
  7322. });
  7323. }
  7324. // helper ///////////////////////
  7325. function getTaskSchedule(element) {
  7326. const businessObject = getBusinessObject(element);
  7327. return getExtensionElementsList(businessObject, 'zeebe:TaskSchedule')[0];
  7328. }
  7329. /**
  7330. * Check whether a given timer expression type is supported for a given element.
  7331. *
  7332. * @param {string} type
  7333. * @param {Element|ModdleElement} element
  7334. *
  7335. * @return {boolean}
  7336. */
  7337. function isTimerExpressionTypeSupported(type, element) {
  7338. const businessObject = getBusinessObject(element);
  7339. switch (type) {
  7340. case 'timeDate':
  7341. return isAny$1(element, ['bpmn:BoundaryEvent', 'bpmn:IntermediateCatchEvent', 'bpmn:StartEvent']);
  7342. case 'timeCycle':
  7343. if (is(element, 'bpmn:StartEvent') && !hasParentEventSubProcess(businessObject) || !isInterrupting(businessObject)) {
  7344. return true;
  7345. }
  7346. if (is(element, 'bpmn:BoundaryEvent') && !isInterrupting(businessObject)) {
  7347. return true;
  7348. }
  7349. return false;
  7350. case 'timeDuration':
  7351. if (isAny$1(element, ['bpmn:BoundaryEvent', 'bpmn:IntermediateCatchEvent'])) {
  7352. return true;
  7353. }
  7354. if (is(element, 'bpmn:StartEvent') && hasParentEventSubProcess(businessObject)) {
  7355. return true;
  7356. }
  7357. return false;
  7358. default:
  7359. return false;
  7360. }
  7361. }
  7362. function isInterrupting(businessObject) {
  7363. if (is(businessObject, 'bpmn:BoundaryEvent')) {
  7364. return businessObject.get('cancelActivity') !== false;
  7365. }
  7366. return businessObject.get('isInterrupting') !== false;
  7367. }
  7368. function hasParentEventSubProcess(businessObject) {
  7369. const parent = businessObject.$parent;
  7370. return parent && is(parent, 'bpmn:SubProcess') && parent.get('triggeredByEvent');
  7371. }
  7372. function TimerProps$1(props) {
  7373. const {
  7374. element,
  7375. injector
  7376. } = props;
  7377. const translate = injector.get('translate');
  7378. const businessObject = getBusinessObject(element),
  7379. timerEventDefinition = getTimerEventDefinition(businessObject),
  7380. timerEventDefinitionType = getTimerDefinitionType(timerEventDefinition);
  7381. // (1) Only show for supported elements
  7382. if (!isTimerSupported(element)) {
  7383. return [];
  7384. }
  7385. const timerOptions = getTimerOptions(element, translate);
  7386. const entries = [];
  7387. entries.push({
  7388. id: 'timerEventDefinitionType',
  7389. component: TimerEventDefinitionType$1,
  7390. isEdited: isSelectEntryEdited,
  7391. options: timerOptions
  7392. });
  7393. if (timerEventDefinitionType) {
  7394. entries.push({
  7395. id: 'timerEventDefinitionValue',
  7396. component: TimerEventDefinitionValue$1,
  7397. isEdited: isFeelEntryEdited,
  7398. timerEventDefinitionType: timerEventDefinitionType || timerOptions[0].value
  7399. });
  7400. }
  7401. return entries;
  7402. }
  7403. function getTimerOptions(element, translate) {
  7404. const options = [];
  7405. if (isTimerExpressionTypeSupported('timeDate', element)) {
  7406. options.push({
  7407. value: 'timeDate',
  7408. label: translate('Date')
  7409. });
  7410. }
  7411. if (isTimerExpressionTypeSupported('timeDuration', element)) {
  7412. options.push({
  7413. value: 'timeDuration',
  7414. label: translate('Duration')
  7415. });
  7416. }
  7417. if (isTimerExpressionTypeSupported('timeCycle', element)) {
  7418. options.push({
  7419. value: 'timeCycle',
  7420. label: translate('Cycle')
  7421. });
  7422. }
  7423. return options;
  7424. }
  7425. /**
  7426. * TimerEventDefinitionType - Generic select entry allowing to select a specific
  7427. * timerEventDefintionType. To be used together with timerEventDefinitionValue.
  7428. *
  7429. * @param {type} props
  7430. * @return {SelectEntry}
  7431. */
  7432. function TimerEventDefinitionType$1(props) {
  7433. const {
  7434. element,
  7435. options
  7436. } = props;
  7437. const commandStack = useService('commandStack'),
  7438. bpmnFactory = useService('bpmnFactory'),
  7439. translate = useService('translate');
  7440. const businessObject = getBusinessObject(element),
  7441. timerEventDefinition = getTimerEventDefinition(businessObject),
  7442. timerEventDefinitionType = getTimerDefinitionType(timerEventDefinition);
  7443. const getValue = () => {
  7444. return timerEventDefinitionType || '';
  7445. };
  7446. const setValue = value => {
  7447. // (1) Check if value is different to current type
  7448. if (value === timerEventDefinitionType) {
  7449. return;
  7450. }
  7451. // (2) Create empty formalExpression element
  7452. const formalExpression = createTimerFormalExpression(bpmnFactory, timerEventDefinition);
  7453. // (3) Set the value for selected timerEventDefinitionType
  7454. const newProps = {
  7455. timeDuration: undefined,
  7456. timeDate: undefined,
  7457. timeCycle: undefined
  7458. };
  7459. if (value !== '') {
  7460. newProps[value] = formalExpression;
  7461. }
  7462. // (4) Execute businessObject update
  7463. commandStack.execute('element.updateModdleProperties', {
  7464. element,
  7465. moddleElement: timerEventDefinition,
  7466. properties: newProps
  7467. });
  7468. };
  7469. const getOptions = element => {
  7470. return [{
  7471. value: '',
  7472. label: translate('<none>')
  7473. }, ...options];
  7474. };
  7475. return SelectEntry({
  7476. element,
  7477. id: 'timerEventDefinitionType',
  7478. label: translate('Type'),
  7479. getValue,
  7480. setValue,
  7481. getOptions
  7482. });
  7483. }
  7484. /**
  7485. * TimerEventDefinitionValue - Generic textField entry allowing to specify the
  7486. * timerEventDefintionValue based on the set timerEventDefintionType. To be used
  7487. * together with timerEventDefinitionType.
  7488. *
  7489. * @param {object} props
  7490. * @param {ModdleElement} props.element
  7491. * @param {'timeCycle'|'timeDate'|'timeDuration'} props.timerEventDefinitionType?
  7492. * @param {string} props.label?
  7493. * @return {TextFieldEntry}
  7494. */
  7495. function TimerEventDefinitionValue$1(props) {
  7496. const {
  7497. element,
  7498. label,
  7499. timerEventDefinitionType
  7500. } = props;
  7501. const commandStack = useService('commandStack'),
  7502. translate = useService('translate'),
  7503. debounce = useService('debounceInput'),
  7504. bpmnFactory = useService('bpmnFactory');
  7505. const businessObject = getBusinessObject(element),
  7506. timerEventDefinition = getTimerEventDefinition(businessObject),
  7507. timerEventFormalExpression = timerEventDefinition.get(timerEventDefinitionType);
  7508. const getValue = () => {
  7509. return timerEventFormalExpression && timerEventFormalExpression.get('body');
  7510. };
  7511. const setValue = value => {
  7512. if (!timerEventFormalExpression) {
  7513. const expression = createTimerFormalExpression(bpmnFactory, timerEventDefinition);
  7514. expression.set('body', value);
  7515. commandStack.execute('element.updateModdleProperties', {
  7516. element,
  7517. moddleElement: timerEventDefinition,
  7518. properties: {
  7519. [timerEventDefinitionType]: expression
  7520. }
  7521. });
  7522. return;
  7523. }
  7524. commandStack.execute('element.updateModdleProperties', {
  7525. element,
  7526. moddleElement: timerEventFormalExpression,
  7527. properties: {
  7528. body: value
  7529. }
  7530. });
  7531. };
  7532. return FeelEntryWithVariableContext({
  7533. element,
  7534. id: 'timerEventDefinitionValue',
  7535. label: label || translate('Value'),
  7536. feel: 'optional',
  7537. getValue,
  7538. setValue,
  7539. debounce,
  7540. tooltip: getTimerEventDefinitionValueDescription$1(timerEventDefinitionType, translate)
  7541. });
  7542. }
  7543. // helper //////////////////////////
  7544. function createTimerFormalExpression(bpmnFactory, eventDefinition) {
  7545. const formalExpression = bpmnFactory.create('bpmn:FormalExpression', {
  7546. body: undefined
  7547. });
  7548. formalExpression.$parent = eventDefinition;
  7549. return formalExpression;
  7550. }
  7551. function getTimerEventDefinitionValueDescription$1(timerDefinitionType, translate) {
  7552. switch (timerDefinitionType) {
  7553. case 'timeDate':
  7554. return jsxs("div", {
  7555. children: [jsx("p", {
  7556. children: translate('A specific point in time defined as ISO 8601 combined date and time representation.')
  7557. }), jsxs("ul", {
  7558. children: [jsxs("li", {
  7559. children: [jsx("code", {
  7560. children: "2019-10-01T12:00:00Z"
  7561. }), " - ", translate('UTC time')]
  7562. }), jsxs("li", {
  7563. children: [jsx("code", {
  7564. children: "2019-10-02T08:09:40+02:00"
  7565. }), " - ", translate('UTC plus 2 hours zone offset')]
  7566. })]
  7567. }), jsx("a", {
  7568. href: "https://docs.camunda.io/docs/reference/bpmn-processes/timer-events/timer-events#time-date",
  7569. target: "_blank",
  7570. rel: "noopener",
  7571. title: translate('Timer documentation'),
  7572. children: translate('How to configure a timer')
  7573. })]
  7574. });
  7575. case 'timeCycle':
  7576. return jsxs("div", {
  7577. children: [jsx("p", {
  7578. children: translate('A cycle defined as ISO 8601 repeating intervals format, or a cron expression.')
  7579. }), jsxs("ul", {
  7580. children: [jsxs("li", {
  7581. children: [jsx("code", {
  7582. children: "R5/PT10S"
  7583. }), " - ", translate('every 10 seconds, up to 5 times')]
  7584. }), jsxs("li", {
  7585. children: [jsx("code", {
  7586. children: "R/P1D"
  7587. }), " - ", translate('every day, infinitely')]
  7588. }), jsxs("li", {
  7589. children: [jsx("code", {
  7590. children: "0 0 9-17 * * MON-FRI"
  7591. }), " - ", translate('every hour on the hour from 9-5 p.m. UTC Monday-Friday')]
  7592. })]
  7593. }), jsx("a", {
  7594. href: "https://docs.camunda.io/docs/reference/bpmn-processes/timer-events/timer-events#time-cycle",
  7595. target: "_blank",
  7596. rel: "noopener",
  7597. title: translate('Timer documentation'),
  7598. children: translate('How to configure a timer')
  7599. })]
  7600. });
  7601. case 'timeDuration':
  7602. return jsxs("div", {
  7603. children: [jsx("p", {
  7604. children: translate('A time duration defined as ISO 8601 durations format.')
  7605. }), jsxs("ul", {
  7606. children: [jsxs("li", {
  7607. children: [jsx("code", {
  7608. children: "PT15S"
  7609. }), " - ", translate('15 seconds')]
  7610. }), jsxs("li", {
  7611. children: [jsx("code", {
  7612. children: "PT1H30M"
  7613. }), " - ", translate('1 hour and 30 minutes')]
  7614. }), jsxs("li", {
  7615. children: [jsx("code", {
  7616. children: "P14D"
  7617. }), " - ", translate('14 days')]
  7618. })]
  7619. }), jsx("a", {
  7620. href: "https://docs.camunda.io/docs/reference/bpmn-processes/timer-events/timer-events#time-duration",
  7621. target: "_blank",
  7622. rel: "noopener",
  7623. title: translate('Timer documentation'),
  7624. children: translate('How to configure a timer')
  7625. })]
  7626. });
  7627. }
  7628. }
  7629. function ExtensionProperty(props) {
  7630. const {
  7631. idPrefix,
  7632. property
  7633. } = props;
  7634. const entries = [{
  7635. id: idPrefix + '-name',
  7636. component: NameProperty$1,
  7637. idPrefix,
  7638. property
  7639. }, {
  7640. id: idPrefix + '-value',
  7641. component: ValueProperty$1,
  7642. idPrefix,
  7643. property
  7644. }];
  7645. return entries;
  7646. }
  7647. function NameProperty$1(props) {
  7648. const {
  7649. idPrefix,
  7650. element,
  7651. property
  7652. } = props;
  7653. const commandStack = useService('commandStack');
  7654. const translate = useService('translate');
  7655. const debounce = useService('debounceInput');
  7656. const setValue = value => {
  7657. commandStack.execute('element.updateModdleProperties', {
  7658. element,
  7659. moddleElement: property,
  7660. properties: {
  7661. name: value
  7662. }
  7663. });
  7664. };
  7665. const getValue = () => {
  7666. return property.name;
  7667. };
  7668. return TextFieldEntry({
  7669. element: property,
  7670. id: idPrefix + '-name',
  7671. label: translate('Name'),
  7672. getValue,
  7673. setValue,
  7674. debounce
  7675. });
  7676. }
  7677. function ValueProperty$1(props) {
  7678. const {
  7679. idPrefix,
  7680. element,
  7681. property
  7682. } = props;
  7683. const commandStack = useService('commandStack');
  7684. const translate = useService('translate');
  7685. const debounce = useService('debounceInput');
  7686. const setValue = value => {
  7687. commandStack.execute('element.updateModdleProperties', {
  7688. element,
  7689. moddleElement: property,
  7690. properties: {
  7691. value
  7692. }
  7693. });
  7694. };
  7695. const getValue = () => {
  7696. return property.value;
  7697. };
  7698. return TextFieldEntry({
  7699. element: property,
  7700. id: idPrefix + '-value',
  7701. label: translate('Value'),
  7702. getValue,
  7703. setValue,
  7704. debounce
  7705. });
  7706. }
  7707. function ExtensionPropertiesProps({
  7708. element,
  7709. injector,
  7710. namespace = 'camunda'
  7711. }) {
  7712. let businessObject = getRelevantBusinessObject(element);
  7713. // do not offer for empty pools
  7714. if (!businessObject) {
  7715. return;
  7716. }
  7717. const properties = getPropertiesList(businessObject, namespace) || [];
  7718. const bpmnFactory = injector.get('bpmnFactory'),
  7719. commandStack = injector.get('commandStack');
  7720. const items = properties.map((property, index) => {
  7721. const id = element.id + '-extensionProperty-' + index;
  7722. return {
  7723. id,
  7724. label: property.get('name') || '',
  7725. entries: ExtensionProperty({
  7726. idPrefix: id,
  7727. element,
  7728. property
  7729. }),
  7730. autoFocusEntry: id + '-name',
  7731. remove: removeFactory$9({
  7732. commandStack,
  7733. element,
  7734. property,
  7735. namespace
  7736. })
  7737. };
  7738. });
  7739. return {
  7740. items,
  7741. add: addFactory$6({
  7742. bpmnFactory,
  7743. commandStack,
  7744. element,
  7745. namespace
  7746. }),
  7747. shouldSort: false
  7748. };
  7749. }
  7750. function removeFactory$9({
  7751. commandStack,
  7752. element,
  7753. property,
  7754. namespace
  7755. }) {
  7756. return function (event) {
  7757. event.stopPropagation();
  7758. const commands = [];
  7759. const businessObject = getRelevantBusinessObject(element);
  7760. const extensionElements = businessObject.get('extensionElements');
  7761. const properties = getProperties(businessObject, namespace);
  7762. if (!properties) {
  7763. return;
  7764. }
  7765. const propertyName = getPropertyName(namespace);
  7766. const values = without(properties.get(propertyName), property);
  7767. commands.push({
  7768. cmd: 'element.updateModdleProperties',
  7769. context: {
  7770. element,
  7771. moddleElement: properties,
  7772. properties: {
  7773. [propertyName]: values
  7774. }
  7775. }
  7776. });
  7777. // remove camunda:Properties if there are no properties anymore
  7778. if (!values.length) {
  7779. commands.push({
  7780. cmd: 'element.updateModdleProperties',
  7781. context: {
  7782. element,
  7783. moddleElement: extensionElements,
  7784. properties: {
  7785. values: without(extensionElements.get('values'), properties)
  7786. }
  7787. }
  7788. });
  7789. }
  7790. commandStack.execute('properties-panel.multi-command-executor', commands);
  7791. };
  7792. }
  7793. function addFactory$6({
  7794. bpmnFactory,
  7795. commandStack,
  7796. element,
  7797. namespace
  7798. }) {
  7799. return function (event) {
  7800. event.stopPropagation();
  7801. let commands = [];
  7802. const businessObject = getRelevantBusinessObject(element);
  7803. let extensionElements = businessObject.get('extensionElements');
  7804. // (1) ensure extension elements
  7805. if (!extensionElements) {
  7806. extensionElements = createElement('bpmn:ExtensionElements', {
  7807. values: []
  7808. }, businessObject, bpmnFactory);
  7809. commands.push({
  7810. cmd: 'element.updateModdleProperties',
  7811. context: {
  7812. element,
  7813. moddleElement: businessObject,
  7814. properties: {
  7815. extensionElements
  7816. }
  7817. }
  7818. });
  7819. }
  7820. const propertyName = getPropertyName(namespace);
  7821. // (2) ensure camunda:Properties
  7822. let properties = getProperties(businessObject, namespace);
  7823. if (!properties) {
  7824. const parent = extensionElements;
  7825. properties = createElement(`${namespace}:Properties`, {
  7826. [propertyName]: []
  7827. }, parent, bpmnFactory);
  7828. commands.push({
  7829. cmd: 'element.updateModdleProperties',
  7830. context: {
  7831. element,
  7832. moddleElement: extensionElements,
  7833. properties: {
  7834. values: [...extensionElements.get('values'), properties]
  7835. }
  7836. }
  7837. });
  7838. }
  7839. // (3) create camunda:Property
  7840. const property = createElement(`${namespace}:Property`, {}, properties, bpmnFactory);
  7841. // (4) add property to list
  7842. commands.push({
  7843. cmd: 'element.updateModdleProperties',
  7844. context: {
  7845. element,
  7846. moddleElement: properties,
  7847. properties: {
  7848. [propertyName]: [...properties.get(propertyName), property]
  7849. }
  7850. }
  7851. });
  7852. // (5) commit all updates
  7853. commandStack.execute('properties-panel.multi-command-executor', commands);
  7854. };
  7855. }
  7856. // helper //////////////////
  7857. function getRelevantBusinessObject(element) {
  7858. let businessObject = getBusinessObject(element);
  7859. if (is(element, 'bpmn:Participant')) {
  7860. return businessObject.get('processRef');
  7861. }
  7862. return businessObject;
  7863. }
  7864. function getPropertyName(namespace = 'camunda') {
  7865. if (namespace === 'zeebe') {
  7866. return 'properties';
  7867. }
  7868. return 'values';
  7869. }
  7870. function getProperties(element, namespace = 'camunda') {
  7871. const businessObject = getRelevantBusinessObject(element);
  7872. return getExtensionElementsList(businessObject, `${namespace}:Properties`)[0];
  7873. }
  7874. function getPropertiesList(element, namespace = 'camunda') {
  7875. const businessObject = getRelevantBusinessObject(element);
  7876. const properties = getProperties(businessObject, namespace);
  7877. return properties && properties.get(getPropertyName(namespace));
  7878. }
  7879. /**
  7880. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  7881. */
  7882. const LOW_PRIORITY$1 = 500;
  7883. const ZEEBE_GROUPS = [BusinessRuleImplementationGroup, CalledDecisionGroup, ScriptImplementationGroup, ScriptGroup$1, TaskDefinitionGroup, AssignmentDefinitionGroup, FormGroup$1, ConditionGroup$1, TargetGroup, InputPropagationGroup, InputGroup$1, OutputPropagationGroup, OutputGroup$1, HeaderGroup, ExtensionPropertiesGroup$1];
  7884. class ZeebePropertiesProvider {
  7885. constructor(propertiesPanel, injector) {
  7886. propertiesPanel.registerProvider(LOW_PRIORITY$1, this);
  7887. this._injector = injector;
  7888. }
  7889. getGroups(element) {
  7890. return groups => {
  7891. // (1) add zeebe specific groups
  7892. groups = groups.concat(this._getGroups(element));
  7893. // (2) update existing groups with zeebe specific properties
  7894. updateErrorGroup$1(groups, element);
  7895. updateEscalationGroup$1(groups, element);
  7896. updateMessageGroup(groups, element);
  7897. updateSignalGroup(groups, element);
  7898. updateTimerGroup$1(groups, element, this._injector);
  7899. updateMultiInstanceGroup$1(groups, element);
  7900. // (3) remove message group when not applicable
  7901. groups = removeMessageGroup(groups, element);
  7902. return groups;
  7903. };
  7904. }
  7905. _getGroups(element) {
  7906. const groups = ZEEBE_GROUPS.map(createGroup => createGroup(element, this._injector));
  7907. return groups.filter(group => group !== null);
  7908. }
  7909. }
  7910. ZeebePropertiesProvider.$inject = ['propertiesPanel', 'injector'];
  7911. function CalledDecisionGroup(element) {
  7912. const group = {
  7913. id: 'calledDecision',
  7914. label: 'Called decision',
  7915. entries: [...CalledDecisionProps({
  7916. element
  7917. })],
  7918. component: Group
  7919. };
  7920. return group.entries.length ? group : null;
  7921. }
  7922. function ScriptGroup$1(element) {
  7923. const group = {
  7924. id: 'script',
  7925. label: 'Script',
  7926. entries: [...ScriptProps$1({
  7927. element
  7928. })],
  7929. component: Group
  7930. };
  7931. return group.entries.length ? group : null;
  7932. }
  7933. function TaskDefinitionGroup(element) {
  7934. const group = {
  7935. id: 'taskDefinition',
  7936. label: 'Task definition',
  7937. entries: [...TaskDefinitionProps({
  7938. element
  7939. })],
  7940. component: Group
  7941. };
  7942. return group.entries.length ? group : null;
  7943. }
  7944. function InputGroup$1(element, injector) {
  7945. const group = {
  7946. id: 'inputs',
  7947. label: 'Inputs',
  7948. component: ListGroup,
  7949. ...InputProps$1({
  7950. element,
  7951. injector
  7952. })
  7953. };
  7954. return group.items ? group : null;
  7955. }
  7956. function OutputGroup$1(element, injector) {
  7957. const group = {
  7958. id: 'outputs',
  7959. label: 'Outputs',
  7960. component: ListGroup,
  7961. ...OutputProps$1({
  7962. element,
  7963. injector
  7964. })
  7965. };
  7966. return group.items ? group : null;
  7967. }
  7968. function ConditionGroup$1(element) {
  7969. const group = {
  7970. id: 'condition',
  7971. label: 'Condition',
  7972. entries: [...ConditionProps$1({
  7973. element
  7974. })],
  7975. component: Group
  7976. };
  7977. return group.entries.length ? group : null;
  7978. }
  7979. function FormGroup$1(element, injector) {
  7980. const group = {
  7981. id: 'form',
  7982. label: 'Form',
  7983. entries: [...FormProps$1({
  7984. element,
  7985. injector
  7986. })],
  7987. component: Group
  7988. };
  7989. return group.entries.length ? group : null;
  7990. }
  7991. function TargetGroup(element) {
  7992. const group = {
  7993. id: 'calledElement',
  7994. label: 'Called element',
  7995. entries: [...TargetProps({
  7996. element
  7997. })],
  7998. component: Group
  7999. };
  8000. return group.entries.length ? group : null;
  8001. }
  8002. function HeaderGroup(element, injector) {
  8003. const group = {
  8004. id: 'headers',
  8005. label: 'Headers',
  8006. component: ListGroup,
  8007. ...HeaderProps({
  8008. element,
  8009. injector
  8010. })
  8011. };
  8012. return group.items ? group : null;
  8013. }
  8014. function OutputPropagationGroup(element) {
  8015. const group = {
  8016. id: 'outputPropagation',
  8017. label: 'Output propagation',
  8018. entries: [...OutputPropagationProps({
  8019. element
  8020. })],
  8021. component: Group
  8022. };
  8023. return group.entries.length ? group : null;
  8024. }
  8025. function InputPropagationGroup(element) {
  8026. const group = {
  8027. id: 'inputPropagation',
  8028. label: 'Input propagation',
  8029. entries: [...InputPropagationProps({
  8030. element
  8031. })],
  8032. component: Group
  8033. };
  8034. return group.entries.length ? group : null;
  8035. }
  8036. function BusinessRuleImplementationGroup(element) {
  8037. const group = {
  8038. id: 'businessRuleImplementation',
  8039. label: 'Implementation',
  8040. entries: [...BusinessRuleImplementationProps({
  8041. element
  8042. })],
  8043. component: Group
  8044. };
  8045. return group.entries.length ? group : null;
  8046. }
  8047. function ScriptImplementationGroup(element) {
  8048. const group = {
  8049. id: 'scriptImplementation',
  8050. label: 'Implementation',
  8051. entries: [...ScriptImplementationProps({
  8052. element
  8053. })],
  8054. component: Group
  8055. };
  8056. return group.entries.length ? group : null;
  8057. }
  8058. function AssignmentDefinitionGroup(element) {
  8059. const group = {
  8060. id: 'assignmentDefinition',
  8061. label: 'Assignment',
  8062. entries: [...AssignmentDefinitionProps({
  8063. element
  8064. }), ...TaskScheduleProps({
  8065. element
  8066. })],
  8067. component: Group
  8068. };
  8069. return group.entries.length ? group : null;
  8070. }
  8071. function ExtensionPropertiesGroup$1(element, injector) {
  8072. const group = {
  8073. label: 'Extension properties',
  8074. id: 'Zeebe__ExtensionProperties',
  8075. component: ListGroup,
  8076. ...ExtensionPropertiesProps({
  8077. element,
  8078. injector,
  8079. namespace: 'zeebe'
  8080. })
  8081. };
  8082. if (group.items) {
  8083. return group;
  8084. }
  8085. return null;
  8086. }
  8087. function updateErrorGroup$1(groups, element) {
  8088. const errorGroup = findGroup$1(groups, 'error');
  8089. if (!errorGroup) {
  8090. return;
  8091. }
  8092. errorGroup.entries = replaceEntries(errorGroup.entries, ErrorProps$1({
  8093. element
  8094. }));
  8095. }
  8096. function updateEscalationGroup$1(groups, element) {
  8097. const escalationGroup = findGroup$1(groups, 'escalation');
  8098. if (!escalationGroup) {
  8099. return;
  8100. }
  8101. escalationGroup.entries = replaceEntries(escalationGroup.entries, EscalationProps$1({
  8102. element
  8103. }));
  8104. }
  8105. function updateSignalGroup(groups, element) {
  8106. const signalGroup = findGroup$1(groups, 'signal');
  8107. if (!signalGroup) {
  8108. return;
  8109. }
  8110. signalGroup.entries = replaceEntries(signalGroup.entries, SignalProps({
  8111. element
  8112. }));
  8113. }
  8114. function updateMessageGroup(groups, element) {
  8115. const messageGroup = findGroup$1(groups, 'message');
  8116. if (!messageGroup) {
  8117. return;
  8118. }
  8119. messageGroup.entries = replaceEntries(messageGroup.entries, MessageProps({
  8120. element
  8121. }));
  8122. }
  8123. // overwrite bpmn generic timerEventDefinition group with zeebe-specific one
  8124. function updateTimerGroup$1(groups, element, injector) {
  8125. const timerEventGroup = findGroup$1(groups, 'timer');
  8126. if (!timerEventGroup) {
  8127. return;
  8128. }
  8129. timerEventGroup.entries = [...TimerProps$1({
  8130. element,
  8131. injector
  8132. })];
  8133. }
  8134. // overwrite bpmn generic multiInstance group with zeebe-specific one
  8135. function updateMultiInstanceGroup$1(groups, element) {
  8136. const multiInstanceGroup = findGroup$1(groups, 'multiInstance');
  8137. if (!multiInstanceGroup) {
  8138. return;
  8139. }
  8140. multiInstanceGroup.entries = [...MultiInstanceProps$1({
  8141. element
  8142. })];
  8143. }
  8144. // remove message group from Message End Event & Message Throw Event
  8145. function removeMessageGroup(groups, element) {
  8146. const messageGroup = findGroup$1(groups, 'message');
  8147. if (isMessageEndEvent(element) || isMessageThrowEvent(element)) {
  8148. groups = groups.filter(g => g != messageGroup);
  8149. }
  8150. return groups;
  8151. }
  8152. // helper /////////////////////
  8153. function findGroup$1(groups, id) {
  8154. return groups.find(g => g.id === id);
  8155. }
  8156. /**
  8157. * Replace entries with the same ID.
  8158. *s
  8159. * @param {Entry[]} oldEntries
  8160. * @param {Entry[]} newEntries
  8161. *
  8162. * @returns {Entry[]} combined entries
  8163. */
  8164. function replaceEntries(oldEntries, newEntries) {
  8165. const filteredEntries = oldEntries.filter(oldEntry => !newEntries.find(newEntry => newEntry.id === oldEntry.id));
  8166. return [...filteredEntries, ...newEntries];
  8167. }
  8168. var index$1 = {
  8169. __init__: ['zeebePropertiesProvider'],
  8170. zeebePropertiesProvider: ['type', ZeebePropertiesProvider]
  8171. };
  8172. function AsynchronousContinuationsProps(props) {
  8173. const {
  8174. element
  8175. } = props;
  8176. const checkboxIsEditedInverted = node => {
  8177. return node && !node.checked;
  8178. };
  8179. const businessObject = getBusinessObject(element);
  8180. const entries = [];
  8181. if (is(element, 'camunda:AsyncCapable')) {
  8182. entries.push({
  8183. id: 'asynchronousContinuationBefore',
  8184. component: AsynchronousContinuationBefore,
  8185. isEdited: isCheckboxEntryEdited
  8186. }, {
  8187. id: 'asynchronousContinuationAfter',
  8188. component: AsynchronousContinuationAfter,
  8189. isEdited: isCheckboxEntryEdited
  8190. });
  8191. if (isAsyncBefore$2(businessObject) || isAsyncAfter$2(businessObject)) {
  8192. entries.push({
  8193. id: 'exclusive',
  8194. component: Exclusive,
  8195. isEdited: checkboxIsEditedInverted
  8196. });
  8197. }
  8198. }
  8199. return entries;
  8200. }
  8201. function AsynchronousContinuationBefore(props) {
  8202. const {
  8203. element
  8204. } = props;
  8205. const commandStack = useService('commandStack'),
  8206. translate = useService('translate');
  8207. const businessObject = getBusinessObject(element);
  8208. const getValue = () => {
  8209. return isAsyncBefore$2(businessObject);
  8210. };
  8211. const setValue = value => {
  8212. // overwrite the legacy `async` property, we will use the more explicit `asyncBefore`
  8213. const props = {
  8214. 'camunda:asyncBefore': value,
  8215. 'camunda:async': undefined
  8216. };
  8217. commandStack.execute('element.updateModdleProperties', {
  8218. element,
  8219. moddleElement: businessObject,
  8220. properties: props
  8221. });
  8222. };
  8223. return CheckboxEntry({
  8224. element,
  8225. id: 'asynchronousContinuationBefore',
  8226. label: translate('Before'),
  8227. getValue,
  8228. setValue
  8229. });
  8230. }
  8231. function AsynchronousContinuationAfter(props) {
  8232. const {
  8233. element
  8234. } = props;
  8235. const commandStack = useService('commandStack'),
  8236. translate = useService('translate');
  8237. const businessObject = getBusinessObject(element);
  8238. const getValue = () => {
  8239. return isAsyncAfter$2(businessObject);
  8240. };
  8241. const setValue = value => {
  8242. commandStack.execute('element.updateModdleProperties', {
  8243. element,
  8244. moddleElement: businessObject,
  8245. properties: {
  8246. 'camunda:asyncAfter': value
  8247. }
  8248. });
  8249. };
  8250. return CheckboxEntry({
  8251. element,
  8252. id: 'asynchronousContinuationAfter',
  8253. label: translate('After'),
  8254. getValue,
  8255. setValue
  8256. });
  8257. }
  8258. function Exclusive(props) {
  8259. const {
  8260. element
  8261. } = props;
  8262. const commandStack = useService('commandStack'),
  8263. translate = useService('translate');
  8264. const businessObject = getBusinessObject(element);
  8265. const getValue = () => {
  8266. return isExclusive$1(businessObject);
  8267. };
  8268. const setValue = value => {
  8269. commandStack.execute('element.updateModdleProperties', {
  8270. element,
  8271. moddleElement: businessObject,
  8272. properties: {
  8273. 'camunda:exclusive': value
  8274. }
  8275. });
  8276. };
  8277. return CheckboxEntry({
  8278. element,
  8279. id: 'exclusive',
  8280. label: translate('Exclusive'),
  8281. getValue,
  8282. setValue
  8283. });
  8284. }
  8285. // helper //////////////////
  8286. /**
  8287. * Returns true if the attribute 'camunda:asyncBefore' is set
  8288. * to true.
  8289. *
  8290. * @param {ModdleElement} bo
  8291. *
  8292. * @return {boolean} a boolean value
  8293. */
  8294. function isAsyncBefore$2(bo) {
  8295. return !!(bo.get('camunda:asyncBefore') || bo.get('camunda:async'));
  8296. }
  8297. /**
  8298. * Returns true if the attribute 'camunda:asyncAfter' is set
  8299. * to true.
  8300. *
  8301. * @param {ModdleElement} bo
  8302. *
  8303. * @return {boolean} a boolean value
  8304. */
  8305. function isAsyncAfter$2(bo) {
  8306. return !!bo.get('camunda:asyncAfter');
  8307. }
  8308. /**
  8309. * Returns true if the attribute 'camunda:exclusive' is set
  8310. * to true.
  8311. *
  8312. * @param {ModdleElement} bo
  8313. *
  8314. * @return {boolean} a boolean value
  8315. */
  8316. function isExclusive$1(bo) {
  8317. return !!bo.get('camunda:exclusive');
  8318. }
  8319. const EMPTY_OPTION$1 = '';
  8320. function BusinessKeyProps$1(props) {
  8321. const {
  8322. element
  8323. } = props;
  8324. if (!is(element, 'bpmn:StartEvent') || !hasFormFields(element)) {
  8325. return [];
  8326. }
  8327. return [{
  8328. id: 'businessKey',
  8329. component: BusinessKey$1,
  8330. isEdited: isSelectEntryEdited
  8331. }];
  8332. }
  8333. function BusinessKey$1(props) {
  8334. const {
  8335. element
  8336. } = props;
  8337. const commandStack = useService('commandStack');
  8338. const translate = useService('translate');
  8339. const formData = getFormData$2(element);
  8340. const getValue = () => {
  8341. return formData.get('camunda:businessKey') || '';
  8342. };
  8343. const setValue = value => {
  8344. commandStack.execute('element.updateModdleProperties', {
  8345. element,
  8346. moddleElement: formData,
  8347. properties: {
  8348. 'camunda:businessKey': value
  8349. }
  8350. });
  8351. };
  8352. const getOptions = () => {
  8353. const options = [{
  8354. value: EMPTY_OPTION$1,
  8355. label: translate('<none>')
  8356. }];
  8357. const fields = formData.get('fields');
  8358. fields.forEach(field => {
  8359. const id = field.get('camunda:id');
  8360. if (id) {
  8361. options.push({
  8362. value: id,
  8363. label: id
  8364. });
  8365. }
  8366. });
  8367. return options;
  8368. };
  8369. return SelectEntry({
  8370. element,
  8371. id: 'businessKey',
  8372. label: translate('Key'),
  8373. getValue,
  8374. setValue,
  8375. getOptions
  8376. });
  8377. }
  8378. // helper ///////////////////
  8379. function getFormData$2(element) {
  8380. const businessObject = getBusinessObject(element);
  8381. return getExtensionElementsList(businessObject, 'camunda:FormData')[0];
  8382. }
  8383. function hasFormFields(element) {
  8384. const businessObject = getBusinessObject(element);
  8385. const formData = getFormData$2(businessObject);
  8386. return formData && formData.get('camunda:fields').length;
  8387. }
  8388. function CalledBpmnProps(props) {
  8389. const {
  8390. element
  8391. } = props;
  8392. const entries = [{
  8393. id: 'calledElement',
  8394. component: CalledElement,
  8395. isEdited: isTextFieldEntryEdited
  8396. }, {
  8397. id: 'calledElementBinding',
  8398. component: CalledElementBinding,
  8399. isEdited: isSelectEntryEdited
  8400. }, {
  8401. id: 'calledElementTenantId',
  8402. component: CalledElementTenantId,
  8403. isEdited: isTextFieldEntryEdited
  8404. }];
  8405. const binding = getBusinessObject(element).get('camunda:calledElementBinding');
  8406. if (binding === 'version') {
  8407. entries.splice(-1, 0, {
  8408. id: 'calledElementVersion',
  8409. component: CalledElementVersion,
  8410. isEdited: isTextFieldEntryEdited
  8411. });
  8412. } else if (binding === 'versionTag') {
  8413. entries.splice(-1, 0, {
  8414. id: 'calledElementVersionTag',
  8415. component: CalledElementVersionTag,
  8416. isEdited: isTextFieldEntryEdited
  8417. });
  8418. }
  8419. return entries;
  8420. }
  8421. function CalledElement(props) {
  8422. const {
  8423. element
  8424. } = props;
  8425. const modeling = useService('modeling');
  8426. const translate = useService('translate');
  8427. const debounce = useService('debounceInput');
  8428. const getValue = () => {
  8429. return getBusinessObject(element).get('calledElement');
  8430. };
  8431. const setValue = value => {
  8432. modeling.updateProperties(element, {
  8433. calledElement: value || ''
  8434. });
  8435. };
  8436. return jsx(TextFieldEntry, {
  8437. element: element,
  8438. id: "calledElement",
  8439. label: translate('Called element'),
  8440. getValue: getValue,
  8441. setValue: setValue,
  8442. debounce: debounce
  8443. });
  8444. }
  8445. function CalledElementBinding(props) {
  8446. const {
  8447. element
  8448. } = props;
  8449. const modeling = useService('modeling');
  8450. const translate = useService('translate');
  8451. const getValue = () => {
  8452. return getBusinessObject(element).get('camunda:calledElementBinding') || 'latest';
  8453. };
  8454. const setValue = value => {
  8455. modeling.updateProperties(element, {
  8456. calledElementBinding: value === 'latest' ? undefined : value,
  8457. calledElementVersion: undefined,
  8458. calledElementVersionTag: undefined
  8459. });
  8460. };
  8461. const getOptions = () => [{
  8462. value: 'latest',
  8463. label: translate('latest')
  8464. }, {
  8465. value: 'deployment',
  8466. label: translate('deployment')
  8467. }, {
  8468. value: 'version',
  8469. label: translate('version')
  8470. }, {
  8471. value: 'versionTag',
  8472. label: translate('version tag')
  8473. }];
  8474. return jsx(SelectEntry, {
  8475. element: element,
  8476. id: "calledElementBinding",
  8477. label: translate('Binding'),
  8478. getValue: getValue,
  8479. setValue: setValue,
  8480. getOptions: getOptions
  8481. });
  8482. }
  8483. function CalledElementVersion(props) {
  8484. const {
  8485. element
  8486. } = props;
  8487. const modeling = useService('modeling');
  8488. const translate = useService('translate');
  8489. const debounce = useService('debounceInput');
  8490. const getValue = () => {
  8491. return getBusinessObject(element).get('camunda:calledElementVersion');
  8492. };
  8493. const setValue = value => {
  8494. modeling.updateProperties(element, {
  8495. calledElementVersion: value
  8496. });
  8497. };
  8498. return jsx(TextFieldEntry, {
  8499. element: element,
  8500. id: "calledElementVersion",
  8501. label: translate('Version'),
  8502. getValue: getValue,
  8503. setValue: setValue,
  8504. debounce: debounce
  8505. });
  8506. }
  8507. function CalledElementVersionTag(props) {
  8508. const {
  8509. element
  8510. } = props;
  8511. const modeling = useService('modeling');
  8512. const translate = useService('translate');
  8513. const debounce = useService('debounceInput');
  8514. const getValue = () => {
  8515. return getBusinessObject(element).get('camunda:calledElementVersionTag');
  8516. };
  8517. const setValue = value => {
  8518. modeling.updateProperties(element, {
  8519. calledElementVersionTag: value
  8520. });
  8521. };
  8522. return jsx(TextFieldEntry, {
  8523. element: element,
  8524. id: "calledElementVersionTag",
  8525. label: translate('Version tag'),
  8526. getValue: getValue,
  8527. setValue: setValue,
  8528. debounce: debounce
  8529. });
  8530. }
  8531. function CalledElementTenantId(props) {
  8532. const {
  8533. element
  8534. } = props;
  8535. const modeling = useService('modeling');
  8536. const translate = useService('translate');
  8537. const debounce = useService('debounceInput');
  8538. const getValue = () => {
  8539. return getBusinessObject(element).get('camunda:calledElementTenantId');
  8540. };
  8541. const setValue = value => {
  8542. modeling.updateProperties(element, {
  8543. calledElementTenantId: value
  8544. });
  8545. };
  8546. return jsx(TextFieldEntry, {
  8547. element: element,
  8548. id: "calledElementTenantId",
  8549. label: translate('Tenant ID'),
  8550. getValue: getValue,
  8551. setValue: setValue,
  8552. debounce: debounce
  8553. });
  8554. }
  8555. function CalledCmmnProps(props) {
  8556. const {
  8557. element
  8558. } = props;
  8559. const entries = [{
  8560. id: 'calledElementCaseRef',
  8561. component: CaseRef,
  8562. isEdited: isTextFieldEntryEdited
  8563. }, {
  8564. id: 'calledElementCaseBinding',
  8565. component: CaseBinding,
  8566. isEdited: isSelectEntryEdited
  8567. }, {
  8568. id: 'calledElementCaseTenantId',
  8569. component: CaseTenantId,
  8570. isEdited: isTextFieldEntryEdited
  8571. }];
  8572. if (getBusinessObject(element).get('camunda:caseBinding') === 'version') {
  8573. entries.splice(-1, 0, {
  8574. id: 'calledElementCaseVersion',
  8575. component: CaseVersion,
  8576. isEdited: isTextFieldEntryEdited
  8577. });
  8578. }
  8579. return entries;
  8580. }
  8581. function CaseRef(props) {
  8582. const {
  8583. element
  8584. } = props;
  8585. const modeling = useService('modeling');
  8586. const translate = useService('translate');
  8587. const debounce = useService('debounceInput');
  8588. const getValue = () => {
  8589. return getBusinessObject(element).get('camunda:caseRef');
  8590. };
  8591. const setValue = value => {
  8592. modeling.updateProperties(element, {
  8593. caseRef: value || ''
  8594. });
  8595. };
  8596. return jsx(TextFieldEntry, {
  8597. element: element,
  8598. id: "calledElementCaseRef",
  8599. label: translate('Case ref'),
  8600. getValue: getValue,
  8601. setValue: setValue,
  8602. debounce: debounce
  8603. });
  8604. }
  8605. function CaseBinding(props) {
  8606. const {
  8607. element
  8608. } = props;
  8609. const modeling = useService('modeling');
  8610. const translate = useService('translate');
  8611. const getValue = () => {
  8612. return getBusinessObject(element).get('camunda:caseBinding') || 'latest';
  8613. };
  8614. const setValue = value => {
  8615. modeling.updateProperties(element, {
  8616. caseBinding: value === 'latest' ? undefined : value,
  8617. caseVersion: undefined
  8618. });
  8619. };
  8620. const getOptions = () => [{
  8621. value: 'latest',
  8622. label: translate('latest')
  8623. }, {
  8624. value: 'deployment',
  8625. label: translate('deployment')
  8626. }, {
  8627. value: 'version',
  8628. label: translate('version')
  8629. }];
  8630. return jsx(SelectEntry, {
  8631. element: element,
  8632. id: "calledElementCaseBinding",
  8633. label: translate('Binding'),
  8634. getValue: getValue,
  8635. setValue: setValue,
  8636. getOptions: getOptions
  8637. });
  8638. }
  8639. function CaseVersion(props) {
  8640. const {
  8641. element
  8642. } = props;
  8643. const modeling = useService('modeling');
  8644. const translate = useService('translate');
  8645. const debounce = useService('debounceInput');
  8646. const getValue = () => {
  8647. return getBusinessObject(element).get('camunda:caseVersion');
  8648. };
  8649. const setValue = value => {
  8650. modeling.updateProperties(element, {
  8651. caseVersion: value
  8652. });
  8653. };
  8654. return jsx(TextFieldEntry, {
  8655. element: element,
  8656. id: "calledElementCaseVersion",
  8657. label: translate('Version'),
  8658. getValue: getValue,
  8659. setValue: setValue,
  8660. debounce: debounce
  8661. });
  8662. }
  8663. function CaseTenantId(props) {
  8664. const {
  8665. element
  8666. } = props;
  8667. const modeling = useService('modeling');
  8668. const translate = useService('translate');
  8669. const debounce = useService('debounceInput');
  8670. const getValue = () => {
  8671. return getBusinessObject(element).get('camunda:caseTenantId');
  8672. };
  8673. const setValue = value => {
  8674. modeling.updateProperties(element, {
  8675. caseTenantId: value
  8676. });
  8677. };
  8678. return jsx(TextFieldEntry, {
  8679. element: element,
  8680. id: "calledElementCaseTenantId",
  8681. label: translate('Tenant ID'),
  8682. getValue: getValue,
  8683. setValue: setValue,
  8684. debounce: debounce
  8685. });
  8686. }
  8687. function DelegateVariableMappingProps(props) {
  8688. const {
  8689. element
  8690. } = props;
  8691. const entries = [{
  8692. id: 'calledElementDelegateVariableMappingType',
  8693. component: DelegateVariableMappingType,
  8694. isEdited: isSelectEntryEdited
  8695. }];
  8696. const type = getDelegateVariableMappingType(element);
  8697. if (type === 'class') {
  8698. entries.push({
  8699. id: 'calledElementVariableMappingClass',
  8700. component: VariableMappingClass,
  8701. isEdited: isTextFieldEntryEdited
  8702. });
  8703. } else if (type === 'delegateExpression') {
  8704. entries.push({
  8705. id: 'calledElementVariableMappingDelegateExpression',
  8706. component: VariableMappingDelegateExpression,
  8707. isEdited: isTextFieldEntryEdited
  8708. });
  8709. }
  8710. return entries;
  8711. }
  8712. const DEFAULT_PROPS$5 = {
  8713. 'camunda:variableMappingClass': undefined,
  8714. 'camunda:variableMappingDelegateExpression': undefined
  8715. };
  8716. function DelegateVariableMappingType(props) {
  8717. const {
  8718. element
  8719. } = props;
  8720. const commandStack = useService('commandStack');
  8721. const translate = useService('translate');
  8722. const getValue = () => {
  8723. return getDelegateVariableMappingType(element);
  8724. };
  8725. const setValue = value => {
  8726. const properties = {
  8727. ...DEFAULT_PROPS$5
  8728. };
  8729. if (value === 'class') {
  8730. properties['camunda:variableMappingClass'] = '';
  8731. } else if (value === 'delegateExpression') {
  8732. properties['camunda:variableMappingDelegateExpression'] = '';
  8733. }
  8734. commandStack.execute('element.updateProperties', {
  8735. element,
  8736. properties
  8737. });
  8738. };
  8739. const getOptions = () => [{
  8740. value: 'none',
  8741. label: translate('<none>')
  8742. }, {
  8743. value: 'class',
  8744. label: translate('Class')
  8745. }, {
  8746. value: 'delegateExpression',
  8747. label: translate('Delegate expression')
  8748. }];
  8749. return jsx(SelectEntry, {
  8750. element: element,
  8751. id: "calledElementDelegateVariableMappingType",
  8752. label: translate('Delegate Variable Mapping'),
  8753. getValue: getValue,
  8754. setValue: setValue,
  8755. getOptions: getOptions
  8756. });
  8757. }
  8758. function VariableMappingDelegateExpression(props) {
  8759. const {
  8760. element
  8761. } = props;
  8762. const modeling = useService('modeling');
  8763. const translate = useService('translate');
  8764. const debounce = useService('debounceInput');
  8765. const getValue = () => {
  8766. return getBusinessObject(element).get('camunda:variableMappingDelegateExpression');
  8767. };
  8768. const setValue = value => {
  8769. modeling.updateProperties(element, {
  8770. variableMappingDelegateExpression: value || '',
  8771. variableMappingClass: undefined
  8772. });
  8773. };
  8774. return jsx(TextFieldEntry, {
  8775. element: element,
  8776. id: "calledElementVariableMappingDelegateExpression",
  8777. label: translate('Delegate Expression'),
  8778. getValue: getValue,
  8779. setValue: setValue,
  8780. debounce: debounce
  8781. });
  8782. }
  8783. function VariableMappingClass(props) {
  8784. const {
  8785. element
  8786. } = props;
  8787. const modeling = useService('modeling');
  8788. const translate = useService('translate');
  8789. const debounce = useService('debounceInput');
  8790. const getValue = () => {
  8791. return getBusinessObject(element).get('camunda:variableMappingClass');
  8792. };
  8793. const setValue = value => {
  8794. modeling.updateProperties(element, {
  8795. variableMappingDelegateExpression: undefined,
  8796. variableMappingClass: value || ''
  8797. });
  8798. };
  8799. return jsx(TextFieldEntry, {
  8800. element: element,
  8801. id: "calledElementVariableMappingClass",
  8802. label: translate('Delegate Class'),
  8803. getValue: getValue,
  8804. setValue: setValue,
  8805. debounce: debounce
  8806. });
  8807. }
  8808. // helper /////
  8809. function getDelegateVariableMappingType(element) {
  8810. const businessObject = getBusinessObject(element);
  8811. if (businessObject.get('camunda:variableMappingClass') !== undefined) {
  8812. return 'class';
  8813. } else if (businessObject.get('camunda:variableMappingDelegateExpression') !== undefined) {
  8814. return 'delegateExpression';
  8815. }
  8816. return 'none';
  8817. }
  8818. function CallActivityProps(props) {
  8819. const {
  8820. element
  8821. } = props;
  8822. if (!is(element, 'bpmn:CallActivity')) {
  8823. return [];
  8824. }
  8825. const entries = [];
  8826. entries.push({
  8827. id: 'calledElementType',
  8828. component: CalledElementType,
  8829. isEdited: isSelectEntryEdited
  8830. });
  8831. const calledElementType = getCalledElementType(element);
  8832. if (calledElementType === 'bpmn') {
  8833. entries.push(...CalledBpmnProps({
  8834. element
  8835. }), ...BusinessKeyProps({
  8836. element
  8837. }), ...DelegateVariableMappingProps({
  8838. element
  8839. }));
  8840. } else if (calledElementType === 'cmmn') {
  8841. entries.push(...CalledCmmnProps({
  8842. element
  8843. }), ...BusinessKeyProps({
  8844. element
  8845. }));
  8846. } else {
  8847. entries.push(...BusinessKeyProps({
  8848. element
  8849. }));
  8850. }
  8851. return entries;
  8852. }
  8853. const DEFAULT_PROPS$4 = {
  8854. calledElement: undefined,
  8855. 'camunda:calledElementBinding': undefined,
  8856. 'camunda:calledElementVersion': undefined,
  8857. 'camunda:calledElementTenantId': undefined,
  8858. 'camunda:variableMappingClass': undefined,
  8859. 'camunda:variableMappingDelegateExpression': undefined,
  8860. 'camunda:caseRef': undefined,
  8861. 'camunda:caseBinding': undefined,
  8862. 'camunda:caseVersion': undefined,
  8863. 'camunda:caseTenantId': undefined
  8864. };
  8865. const DEFAULT_BUSINESS_KEY = '#{execution.processBusinessKey}';
  8866. function CalledElementType(props) {
  8867. const {
  8868. element
  8869. } = props;
  8870. const commandStack = useService('commandStack');
  8871. const translate = useService('translate');
  8872. const getValue = () => {
  8873. return getCalledElementType(element);
  8874. };
  8875. const setValue = value => {
  8876. const properties = {
  8877. ...DEFAULT_PROPS$4
  8878. };
  8879. if (value === 'bpmn') {
  8880. properties['calledElement'] = '';
  8881. } else if (value === 'cmmn') {
  8882. properties['camunda:caseRef'] = '';
  8883. }
  8884. commandStack.execute('element.updateProperties', {
  8885. element,
  8886. properties
  8887. });
  8888. };
  8889. const getOptions = () => [{
  8890. value: '',
  8891. label: translate('<none>')
  8892. }, {
  8893. value: 'bpmn',
  8894. label: translate('BPMN')
  8895. }, {
  8896. value: 'cmmn',
  8897. label: translate('CMMN')
  8898. }];
  8899. return jsx(SelectEntry, {
  8900. element: element,
  8901. id: "calledElementType",
  8902. label: translate('Type'),
  8903. getValue: getValue,
  8904. setValue: setValue,
  8905. getOptions: getOptions
  8906. });
  8907. }
  8908. function BusinessKeyProps(props) {
  8909. const {
  8910. element
  8911. } = props;
  8912. const entries = [{
  8913. id: 'calledElementBusinessKey',
  8914. component: BusinessKey,
  8915. isEdited: isCheckboxEntryEdited
  8916. }];
  8917. if (hasBusinessKey(element)) {
  8918. entries.push({
  8919. id: 'calledElementBusinessKeyExpression',
  8920. component: BusinessKeyExpression,
  8921. isEdited: isTextFieldEntryEdited
  8922. });
  8923. }
  8924. return entries;
  8925. }
  8926. function BusinessKey(props) {
  8927. const {
  8928. element
  8929. } = props;
  8930. const commandStack = useService('commandStack');
  8931. const modeling = useService('modeling');
  8932. const bpmnFactory = useService('bpmnFactory');
  8933. const translate = useService('translate');
  8934. const getValue = () => {
  8935. return hasBusinessKey(element);
  8936. };
  8937. const setValue = value => {
  8938. if (value) {
  8939. addBusinessKey();
  8940. } else {
  8941. removeBusinessKey();
  8942. }
  8943. };
  8944. function addBusinessKey() {
  8945. const businessObject = getBusinessObject(element);
  8946. let extensionElements = businessObject.get('extensionElements');
  8947. // (1) If there are no extension elements, create camunda:In and update element's properties
  8948. if (!extensionElements) {
  8949. extensionElements = createElement('bpmn:ExtensionElements', {}, businessObject, bpmnFactory);
  8950. const businessKeyItem = createBusinessKey(extensionElements);
  8951. extensionElements.set('values', [businessKeyItem]);
  8952. modeling.updateProperties(element, {
  8953. extensionElements
  8954. });
  8955. } else {
  8956. // (2) Otherwise, add camunda:In to the existing values
  8957. const businessKeyItem = createBusinessKey(extensionElements);
  8958. addExtensionElements(element, businessObject, businessKeyItem, bpmnFactory, commandStack);
  8959. }
  8960. }
  8961. function createBusinessKey(parent) {
  8962. return createElement('camunda:In', {
  8963. businessKey: DEFAULT_BUSINESS_KEY
  8964. }, parent, bpmnFactory);
  8965. }
  8966. function removeBusinessKey() {
  8967. const businessObject = getBusinessObject(element);
  8968. const camundaInList = getExtensionElementsList(businessObject, 'camunda:In');
  8969. const businessKeyItems = camundaInList.filter(camundaIn => camundaIn.get('businessKey') !== undefined);
  8970. removeExtensionElements(element, businessObject, businessKeyItems, commandStack);
  8971. }
  8972. return jsx(CheckboxEntry, {
  8973. element: element,
  8974. id: "calledElementBusinessKey",
  8975. label: translate('Business key'),
  8976. getValue: getValue,
  8977. setValue: setValue
  8978. });
  8979. }
  8980. function BusinessKeyExpression(props) {
  8981. const {
  8982. element
  8983. } = props;
  8984. const commandStack = useService('commandStack');
  8985. const translate = useService('translate');
  8986. const debounce = useService('debounceInput');
  8987. const getValue = () => getBusinessKey(element);
  8988. const setValue = value => {
  8989. const camundaIn = findCamundaInWithBusinessKey(element);
  8990. commandStack.execute('element.updateModdleProperties', {
  8991. element,
  8992. moddleElement: camundaIn,
  8993. properties: {
  8994. businessKey: value || ''
  8995. }
  8996. });
  8997. };
  8998. return jsx(TextFieldEntry, {
  8999. element: element,
  9000. id: "calledElementBusinessKeyExpression",
  9001. label: translate('Business key expression'),
  9002. getValue: getValue,
  9003. setValue: setValue,
  9004. debounce: debounce
  9005. });
  9006. }
  9007. // helper //////
  9008. function getCalledElementType(element) {
  9009. const businessObject = getBusinessObject(element);
  9010. if (businessObject.get('calledElement') !== undefined) {
  9011. return 'bpmn';
  9012. } else if (businessObject.get('camunda:caseRef') !== undefined) {
  9013. return 'cmmn';
  9014. }
  9015. return '';
  9016. }
  9017. function hasBusinessKey(element) {
  9018. return getBusinessKey(element) !== undefined;
  9019. }
  9020. function getBusinessKey(element) {
  9021. const camundaIn = findCamundaInWithBusinessKey(element);
  9022. if (camundaIn) {
  9023. return camundaIn.get('businessKey');
  9024. }
  9025. }
  9026. function findCamundaInWithBusinessKey(element) {
  9027. const businessObject = getBusinessObject(element);
  9028. const camundaInList = getExtensionElementsList(businessObject, 'camunda:In');
  9029. for (const camundaIn of camundaInList) {
  9030. const businessKey = camundaIn.get('businessKey');
  9031. if (businessKey !== undefined) {
  9032. return camundaIn;
  9033. }
  9034. }
  9035. }
  9036. function CandidateStarterProps(props) {
  9037. const {
  9038. element
  9039. } = props;
  9040. const businessObject = getBusinessObject(element);
  9041. if (!is(element, 'bpmn:Process') && !(is(element, 'bpmn:Participant') && businessObject.get('processRef'))) {
  9042. return [];
  9043. }
  9044. return [{
  9045. id: 'candidateStarterGroups',
  9046. component: CandidateStarterGroups,
  9047. isEdited: isTextFieldEntryEdited
  9048. }, {
  9049. id: 'candidateStarterUsers',
  9050. component: CandidateStarterUsers,
  9051. isEdited: isTextFieldEntryEdited
  9052. }];
  9053. }
  9054. function CandidateStarterGroups(props) {
  9055. const {
  9056. element
  9057. } = props;
  9058. const commandStack = useService('commandStack'),
  9059. translate = useService('translate'),
  9060. debounce = useService('debounceInput');
  9061. const process = getProcess$3(element);
  9062. const getValue = () => {
  9063. return process.get('camunda:candidateStarterGroups') || '';
  9064. };
  9065. const setValue = value => {
  9066. commandStack.execute('element.updateModdleProperties', {
  9067. element: element,
  9068. moddleElement: process,
  9069. properties: {
  9070. 'camunda:candidateStarterGroups': value
  9071. }
  9072. });
  9073. };
  9074. return TextFieldEntry({
  9075. element,
  9076. id: 'candidateStarterGroups',
  9077. label: translate('Candidate starter groups'),
  9078. description: translate('Specify more than one group as a comma separated list.'),
  9079. getValue,
  9080. setValue,
  9081. debounce
  9082. });
  9083. }
  9084. function CandidateStarterUsers(props) {
  9085. const {
  9086. element
  9087. } = props;
  9088. const commandStack = useService('commandStack'),
  9089. translate = useService('translate'),
  9090. debounce = useService('debounceInput');
  9091. const process = getProcess$3(element);
  9092. const getValue = () => {
  9093. return process.get('camunda:candidateStarterUsers') || '';
  9094. };
  9095. const setValue = value => {
  9096. commandStack.execute('element.updateModdleProperties', {
  9097. element: element,
  9098. moddleElement: process,
  9099. properties: {
  9100. 'camunda:candidateStarterUsers': value
  9101. }
  9102. });
  9103. };
  9104. return TextFieldEntry({
  9105. element,
  9106. id: 'candidateStarterUsers',
  9107. label: translate('Candidate starter users'),
  9108. description: translate('Specify more than one user as a comma separated list.'),
  9109. getValue,
  9110. setValue,
  9111. debounce
  9112. });
  9113. }
  9114. // helper //////////////////
  9115. /**
  9116. * getProcess - get the businessObject of the process referred to by a bpmn:Process
  9117. * or by a bpmn:Participant
  9118. *
  9119. * @param {ModdleElement} element either a bpmn:Process or a bpmn:Participant
  9120. * @return {BusinessObject}
  9121. */
  9122. function getProcess$3(element) {
  9123. return is(element, 'bpmn:Process') ? getBusinessObject(element) : getBusinessObject(element).get('processRef');
  9124. }
  9125. function ConditionProps(props) {
  9126. const {
  9127. element
  9128. } = props;
  9129. if (!(is(element, 'bpmn:SequenceFlow') && isConditionalSource(element.source)) && !getConditionalEventDefinition(element)) {
  9130. return [];
  9131. }
  9132. const entries = [];
  9133. if (getConditionalEventDefinition(element)) {
  9134. entries.push(...VariableEventProps({
  9135. element
  9136. }));
  9137. }
  9138. entries.push({
  9139. id: 'conditionType',
  9140. component: ConditionType,
  9141. isEdited: isSelectEntryEdited
  9142. });
  9143. const conditionType = getConditionType(element);
  9144. if (conditionType === 'script') {
  9145. entries.push(...ConditionScriptProps({
  9146. element
  9147. }));
  9148. } else if (conditionType === 'expression') {
  9149. entries.push({
  9150. id: 'conditionExpression',
  9151. component: ConditionExpression,
  9152. isEdited: isTextFieldEntryEdited
  9153. });
  9154. }
  9155. return entries;
  9156. }
  9157. function ConditionType(props) {
  9158. const {
  9159. element
  9160. } = props;
  9161. const commandStack = useService('commandStack');
  9162. const bpmnFactory = useService('bpmnFactory');
  9163. const translate = useService('translate');
  9164. const getValue = () => {
  9165. return getConditionType(element);
  9166. };
  9167. const setValue = value => {
  9168. // (1) Remove formalExpression if <none> is selected
  9169. if (value === '') {
  9170. updateCondition(element, commandStack, undefined);
  9171. } else {
  9172. // (2) Create and set formalExpression element containing the conditionExpression
  9173. const attributes = {
  9174. body: '',
  9175. language: value === 'script' ? '' : undefined
  9176. };
  9177. const formalExpressionElement = createFormalExpression(element, attributes, bpmnFactory);
  9178. updateCondition(element, commandStack, formalExpressionElement);
  9179. }
  9180. };
  9181. const getOptions = () => [{
  9182. value: '',
  9183. label: translate('<none>')
  9184. }, {
  9185. value: 'script',
  9186. label: translate('Script')
  9187. }, {
  9188. value: 'expression',
  9189. label: translate('Expression')
  9190. }];
  9191. return jsx(SelectEntry, {
  9192. element: element,
  9193. id: "conditionType",
  9194. label: translate('Type'),
  9195. getValue: getValue,
  9196. setValue: setValue,
  9197. getOptions: getOptions
  9198. });
  9199. }
  9200. function ConditionExpression(props) {
  9201. const {
  9202. element
  9203. } = props;
  9204. const commandStack = useService('commandStack'),
  9205. bpmnFactory = useService('bpmnFactory'),
  9206. translate = useService('translate'),
  9207. debounce = useService('debounceInput');
  9208. const getValue = () => {
  9209. return getConditionExpression(element).get('body');
  9210. };
  9211. const setValue = value => {
  9212. const conditionExpression = createFormalExpression(element, {
  9213. body: value
  9214. }, bpmnFactory);
  9215. updateCondition(element, commandStack, conditionExpression);
  9216. };
  9217. return jsx(TextFieldEntry, {
  9218. element: element,
  9219. id: "conditionExpression",
  9220. label: translate('Condition Expression'),
  9221. getValue: getValue,
  9222. setValue: setValue,
  9223. debounce: debounce
  9224. });
  9225. }
  9226. function ConditionScriptProps(props) {
  9227. const {
  9228. element
  9229. } = props;
  9230. const entries = [];
  9231. const scriptType = getScriptType$1(element);
  9232. // (1) language
  9233. entries.push({
  9234. id: 'conditionScriptLanguage',
  9235. component: Language,
  9236. isEdited: isTextFieldEntryEdited
  9237. });
  9238. // (2) type
  9239. entries.push({
  9240. id: 'conditionScriptType',
  9241. component: ScriptType,
  9242. isEdited: isSelectEntryEdited
  9243. });
  9244. // (3) script
  9245. if (scriptType === 'script') {
  9246. entries.push({
  9247. id: 'conditionScriptValue',
  9248. component: Script$1,
  9249. isEdited: isTextAreaEntryEdited
  9250. });
  9251. } else if (scriptType === 'resource') {
  9252. // (4) resource
  9253. entries.push({
  9254. id: 'conditionScriptResource',
  9255. component: Resource$1,
  9256. isEdited: isTextFieldEntryEdited
  9257. });
  9258. }
  9259. return entries;
  9260. }
  9261. function Language(props) {
  9262. const {
  9263. element
  9264. } = props;
  9265. const commandStack = useService('commandStack');
  9266. const translate = useService('translate');
  9267. const debounce = useService('debounceInput');
  9268. const getValue = () => {
  9269. return getConditionExpression(element).get('language');
  9270. };
  9271. const setValue = value => {
  9272. commandStack.execute('element.updateModdleProperties', {
  9273. element: element,
  9274. moddleElement: getConditionExpression(element),
  9275. properties: {
  9276. language: value || ''
  9277. }
  9278. });
  9279. };
  9280. return jsx(TextFieldEntry, {
  9281. element: element,
  9282. id: "conditionScriptLanguage",
  9283. label: translate('Format'),
  9284. getValue: getValue,
  9285. setValue: setValue,
  9286. debounce: debounce
  9287. });
  9288. }
  9289. function ScriptType(props) {
  9290. const {
  9291. element
  9292. } = props;
  9293. const commandStack = useService('commandStack');
  9294. const translate = useService('translate');
  9295. const getValue = () => {
  9296. return getScriptType$1(element);
  9297. };
  9298. const setValue = value => {
  9299. // reset script properties on type change
  9300. const updatedProperties = {
  9301. 'body': value === 'script' ? '' : undefined,
  9302. 'camunda:resource': value === 'resource' ? '' : undefined
  9303. };
  9304. commandStack.execute('element.updateModdleProperties', {
  9305. element: element,
  9306. moddleElement: getConditionExpression(element),
  9307. properties: updatedProperties
  9308. });
  9309. };
  9310. const getOptions = () => {
  9311. const options = [{
  9312. value: 'resource',
  9313. label: translate('External resource')
  9314. }, {
  9315. value: 'script',
  9316. label: translate('Inline script')
  9317. }];
  9318. return options;
  9319. };
  9320. return SelectEntry({
  9321. element,
  9322. id: 'conditionScriptType',
  9323. label: translate('Script type'),
  9324. getValue,
  9325. setValue,
  9326. getOptions
  9327. });
  9328. }
  9329. function Script$1(props) {
  9330. const {
  9331. element
  9332. } = props;
  9333. const commandStack = useService('commandStack');
  9334. const translate = useService('translate');
  9335. const debounce = useService('debounceInput');
  9336. const getValue = () => {
  9337. return getConditionExpression(element).get('body');
  9338. };
  9339. const setValue = value => {
  9340. commandStack.execute('element.updateModdleProperties', {
  9341. element: element,
  9342. moddleElement: getConditionExpression(element),
  9343. properties: {
  9344. 'body': value || ''
  9345. }
  9346. });
  9347. };
  9348. return jsx(TextAreaEntry, {
  9349. element: element,
  9350. id: "conditionScriptValue",
  9351. label: translate('Script'),
  9352. getValue: getValue,
  9353. setValue: setValue,
  9354. debounce: debounce,
  9355. monospace: true
  9356. });
  9357. }
  9358. function Resource$1(props) {
  9359. const {
  9360. element
  9361. } = props;
  9362. const commandStack = useService('commandStack');
  9363. const translate = useService('translate');
  9364. const debounce = useService('debounceInput');
  9365. const getValue = () => {
  9366. return getConditionExpression(element).get('camunda:resource');
  9367. };
  9368. const setValue = value => {
  9369. commandStack.execute('element.updateModdleProperties', {
  9370. element: element,
  9371. moddleElement: getConditionExpression(element),
  9372. properties: {
  9373. 'camunda:resource': value || ''
  9374. }
  9375. });
  9376. };
  9377. return jsx(TextFieldEntry, {
  9378. element: true,
  9379. id: "conditionScriptResource",
  9380. label: translate('Resource'),
  9381. getValue: getValue,
  9382. setValue: setValue,
  9383. debounce: debounce
  9384. });
  9385. }
  9386. function VariableEventProps(props) {
  9387. const {
  9388. element
  9389. } = props;
  9390. const entries = [];
  9391. entries.push({
  9392. id: 'conditionVariableName',
  9393. component: VariableName,
  9394. isEdited: isTextFieldEntryEdited
  9395. });
  9396. if (!is(element, 'bpmn:StartEvent') || isInEventSubProcess(element)) {
  9397. entries.push({
  9398. id: 'conditionVariableEvents',
  9399. component: VariableEvents,
  9400. isEdited: isTextFieldEntryEdited
  9401. });
  9402. }
  9403. return entries;
  9404. }
  9405. function VariableName(props) {
  9406. const {
  9407. element
  9408. } = props;
  9409. const commandStack = useService('commandStack');
  9410. const translate = useService('translate');
  9411. const debounce = useService('debounceInput');
  9412. const getValue = () => {
  9413. return getConditionalEventDefinition(element).get('variableName');
  9414. };
  9415. const setValue = value => {
  9416. commandStack.execute('element.updateModdleProperties', {
  9417. element: element,
  9418. moddleElement: getConditionalEventDefinition(element),
  9419. properties: {
  9420. variableName: value || ''
  9421. }
  9422. });
  9423. };
  9424. return jsx(TextFieldEntry, {
  9425. element: element,
  9426. id: "conditionVariableName",
  9427. label: translate('Variable name'),
  9428. getValue: getValue,
  9429. setValue: setValue,
  9430. debounce: debounce
  9431. });
  9432. }
  9433. function VariableEvents(props) {
  9434. const {
  9435. element
  9436. } = props;
  9437. const commandStack = useService('commandStack');
  9438. const translate = useService('translate');
  9439. const debounce = useService('debounceInput');
  9440. const getValue = () => {
  9441. return getConditionalEventDefinition(element).get('variableEvents');
  9442. };
  9443. const setValue = value => {
  9444. commandStack.execute('element.updateModdleProperties', {
  9445. element: element,
  9446. moddleElement: getConditionalEventDefinition(element),
  9447. properties: {
  9448. variableEvents: value || ''
  9449. }
  9450. });
  9451. };
  9452. return jsx(TextFieldEntry, {
  9453. element: element,
  9454. id: "conditionVariableEvents",
  9455. label: translate('Variable events'),
  9456. description: translate('Specify more than one variable change event as a comma separated list.'),
  9457. getValue: getValue,
  9458. setValue: setValue,
  9459. debounce: debounce
  9460. });
  9461. }
  9462. // helper ////////////////////
  9463. const CONDITIONAL_SOURCES = ['bpmn:Activity', 'bpmn:ExclusiveGateway', 'bpmn:InclusiveGateway', 'bpmn:ComplexGateway'];
  9464. function isConditionalSource(element) {
  9465. return isAny(element, CONDITIONAL_SOURCES);
  9466. }
  9467. function getConditionalEventDefinition(element) {
  9468. if (!is(element, 'bpmn:Event')) {
  9469. return false;
  9470. }
  9471. return getEventDefinition$1(element, 'bpmn:ConditionalEventDefinition');
  9472. }
  9473. function getConditionType(element) {
  9474. const conditionExpression = getConditionExpression(element);
  9475. if (!conditionExpression) {
  9476. return '';
  9477. } else {
  9478. return conditionExpression.get('language') === undefined ? 'expression' : 'script';
  9479. }
  9480. }
  9481. /**
  9482. * getConditionExpression - get the body value of a condition expression for a given element
  9483. *
  9484. * @param {ModdleElement} element
  9485. *
  9486. * @return {string|undefined}
  9487. */
  9488. function getConditionExpression(element) {
  9489. const businessObject = getBusinessObject(element);
  9490. if (is(businessObject, 'bpmn:SequenceFlow')) {
  9491. return businessObject.get('conditionExpression');
  9492. } else if (getConditionalEventDefinition(businessObject)) {
  9493. return getConditionalEventDefinition(businessObject).get('condition');
  9494. }
  9495. }
  9496. function getScriptType$1(element) {
  9497. const conditionExpression = getConditionExpression(element);
  9498. const resource = conditionExpression.get('camunda:resource');
  9499. if (typeof resource !== 'undefined') {
  9500. return 'resource';
  9501. } else {
  9502. return 'script';
  9503. }
  9504. }
  9505. function updateCondition(element, commandStack, condition = undefined) {
  9506. if (is(element, 'bpmn:SequenceFlow')) {
  9507. commandStack.execute('element.updateProperties', {
  9508. element,
  9509. properties: {
  9510. conditionExpression: condition
  9511. }
  9512. });
  9513. } else {
  9514. commandStack.execute('element.updateModdleProperties', {
  9515. element,
  9516. moddleElement: getConditionalEventDefinition(element),
  9517. properties: {
  9518. condition
  9519. }
  9520. });
  9521. }
  9522. }
  9523. function createFormalExpression(parent, attributes, bpmnFactory) {
  9524. return createElement('bpmn:FormalExpression', attributes, is(parent, 'bpmn:SequenceFlow') ? getBusinessObject(parent) : getConditionalEventDefinition(parent), bpmnFactory);
  9525. }
  9526. function isInEventSubProcess(element) {
  9527. const bo = getBusinessObject(element),
  9528. parent = bo.$parent;
  9529. return is(parent, 'bpmn:SubProcess') && parent.triggeredByEvent;
  9530. }
  9531. /**
  9532. * Cf. https://docs.camunda.org/manual/latest/user-guide/process-engine/scripting/
  9533. */
  9534. function ScriptProps(props) {
  9535. const {
  9536. element,
  9537. script,
  9538. prefix
  9539. } = props;
  9540. const entries = [];
  9541. const scriptType = getScriptType(script || element);
  9542. const idPrefix = prefix || '';
  9543. // (1) scriptFormat
  9544. entries.push({
  9545. id: idPrefix + 'scriptFormat',
  9546. component: Format,
  9547. isEdited: isTextFieldEntryEdited,
  9548. idPrefix,
  9549. script
  9550. });
  9551. // (2) type
  9552. entries.push({
  9553. id: idPrefix + 'scriptType',
  9554. component: Type$3,
  9555. isEdited: isSelectEntryEdited,
  9556. idPrefix,
  9557. script
  9558. });
  9559. // (3) script
  9560. if (scriptType === 'script') {
  9561. entries.push({
  9562. id: idPrefix + 'scriptValue',
  9563. component: Script,
  9564. isEdited: isTextAreaEntryEdited,
  9565. idPrefix,
  9566. script
  9567. });
  9568. }
  9569. // (4) resource
  9570. if (scriptType === 'resource') {
  9571. entries.push({
  9572. id: idPrefix + 'scriptResource',
  9573. component: Resource,
  9574. isEdited: isTextFieldEntryEdited,
  9575. idPrefix,
  9576. script
  9577. });
  9578. }
  9579. return entries;
  9580. }
  9581. function Format(props) {
  9582. const {
  9583. element,
  9584. idPrefix,
  9585. script
  9586. } = props;
  9587. const commandStack = useService('commandStack');
  9588. const translate = useService('translate');
  9589. const debounce = useService('debounceInput');
  9590. const businessObject = script || getBusinessObject(element);
  9591. const getValue = () => {
  9592. return businessObject.get('scriptFormat');
  9593. };
  9594. const setValue = value => {
  9595. commandStack.execute('element.updateModdleProperties', {
  9596. element,
  9597. moddleElement: businessObject,
  9598. properties: {
  9599. scriptFormat: value
  9600. }
  9601. });
  9602. };
  9603. return TextFieldEntry({
  9604. element,
  9605. id: idPrefix + 'scriptFormat',
  9606. label: translate('Format'),
  9607. getValue,
  9608. setValue,
  9609. debounce
  9610. });
  9611. }
  9612. function Type$3(props) {
  9613. const {
  9614. element,
  9615. idPrefix,
  9616. script
  9617. } = props;
  9618. const commandStack = useService('commandStack');
  9619. const translate = useService('translate');
  9620. const businessObject = script || getBusinessObject(element);
  9621. const scriptProperty = getScriptProperty(businessObject);
  9622. const getValue = () => {
  9623. return getScriptType(businessObject);
  9624. };
  9625. const setValue = value => {
  9626. // reset script properties on type change
  9627. const properties = {
  9628. [scriptProperty]: value === 'script' ? '' : undefined,
  9629. 'camunda:resource': value === 'resource' ? '' : undefined
  9630. };
  9631. commandStack.execute('element.updateModdleProperties', {
  9632. element,
  9633. moddleElement: businessObject,
  9634. properties
  9635. });
  9636. };
  9637. const getOptions = () => {
  9638. const options = [{
  9639. value: '',
  9640. label: translate('<none>')
  9641. }, {
  9642. value: 'resource',
  9643. label: translate('External resource')
  9644. }, {
  9645. value: 'script',
  9646. label: translate('Inline script')
  9647. }];
  9648. return options;
  9649. };
  9650. return SelectEntry({
  9651. element,
  9652. id: idPrefix + 'scriptType',
  9653. label: translate('Type'),
  9654. getValue,
  9655. setValue,
  9656. getOptions
  9657. });
  9658. }
  9659. function Script(props) {
  9660. const {
  9661. element,
  9662. idPrefix,
  9663. script
  9664. } = props;
  9665. const commandStack = useService('commandStack');
  9666. const translate = useService('translate');
  9667. const debounce = useService('debounceInput');
  9668. const businessObject = script || getBusinessObject(element);
  9669. const scriptProperty = getScriptProperty(businessObject);
  9670. const getValue = () => {
  9671. return getScriptValue(businessObject);
  9672. };
  9673. const setValue = value => {
  9674. commandStack.execute('element.updateModdleProperties', {
  9675. element,
  9676. moddleElement: businessObject,
  9677. properties: {
  9678. [scriptProperty]: value || ''
  9679. }
  9680. });
  9681. };
  9682. return TextAreaEntry({
  9683. element,
  9684. id: idPrefix + 'scriptValue',
  9685. label: translate('Script'),
  9686. getValue,
  9687. setValue,
  9688. debounce,
  9689. monospace: true
  9690. });
  9691. }
  9692. function Resource(props) {
  9693. const {
  9694. element,
  9695. idPrefix,
  9696. script
  9697. } = props;
  9698. const commandStack = useService('commandStack');
  9699. const translate = useService('translate');
  9700. const debounce = useService('debounceInput');
  9701. const businessObject = script || getBusinessObject(element);
  9702. const getValue = () => {
  9703. return businessObject.get('camunda:resource');
  9704. };
  9705. const setValue = value => {
  9706. commandStack.execute('element.updateModdleProperties', {
  9707. element,
  9708. moddleElement: businessObject,
  9709. properties: {
  9710. 'camunda:resource': value || ''
  9711. }
  9712. });
  9713. };
  9714. return TextFieldEntry({
  9715. element,
  9716. id: idPrefix + 'scriptResource',
  9717. label: translate('Resource'),
  9718. getValue,
  9719. setValue,
  9720. debounce
  9721. });
  9722. }
  9723. // helper ////////////////////
  9724. function getScriptType(element) {
  9725. const businessObject = getBusinessObject(element);
  9726. const scriptValue = getScriptValue(businessObject);
  9727. if (typeof scriptValue !== 'undefined') {
  9728. return 'script';
  9729. }
  9730. const resource = businessObject.get('camunda:resource');
  9731. if (typeof resource !== 'undefined') {
  9732. return 'resource';
  9733. }
  9734. }
  9735. function getScriptValue(businessObject) {
  9736. return businessObject.get(getScriptProperty(businessObject));
  9737. }
  9738. function isScript$2(element) {
  9739. return is(element, 'camunda:Script');
  9740. }
  9741. function getScriptProperty(businessObject) {
  9742. return isScript$2(businessObject) ? 'value' : 'script';
  9743. }
  9744. function getElements(businessObject, type, property) {
  9745. const elements = getExtensionElementsList(businessObject, type);
  9746. return !property ? elements : (elements[0] || {})[property] || [];
  9747. }
  9748. function getParameters(element, prop) {
  9749. const inputOutput = getInputOutput(element);
  9750. return inputOutput && inputOutput.get(prop) || [];
  9751. }
  9752. /**
  9753. * Get a camunda:inputOutput from the business object
  9754. *
  9755. * @param {djs.model.Base | ModdleElement} element
  9756. *
  9757. * @return {ModdleElement} the inputOutput object
  9758. */
  9759. function getInputOutput(element) {
  9760. if (is(element, 'camunda:Connector')) {
  9761. return element.get('inputOutput');
  9762. }
  9763. const businessObject = getBusinessObject(element);
  9764. return (getElements(businessObject, 'camunda:InputOutput') || [])[0];
  9765. }
  9766. /**
  9767. * Return all input parameters existing in the business object, and
  9768. * an empty array if none exist.
  9769. *
  9770. * @param {djs.model.Base} element
  9771. *
  9772. * @return {Array} a list of input parameter objects
  9773. */
  9774. function getInputParameters(element) {
  9775. return getParameters(element, 'inputParameters');
  9776. }
  9777. /**
  9778. * Return all output parameters existing in the business object, and
  9779. * an empty array if none exist.
  9780. *
  9781. * @param {djs.model.Base} element
  9782. *
  9783. * @return {Array} a list of output parameter objects
  9784. */
  9785. function getOutputParameters(element) {
  9786. return getParameters(element, 'outputParameters');
  9787. }
  9788. function isInputOutputSupported(element) {
  9789. const businessObject = getBusinessObject(element);
  9790. return is(businessObject, 'bpmn:FlowNode') && !(isAny(businessObject, ['bpmn:StartEvent', 'bpmn:BoundaryEvent', 'bpmn:Gateway']) || is(businessObject, 'bpmn:SubProcess') && businessObject.get('triggeredByEvent'));
  9791. }
  9792. function areInputParametersSupported(element) {
  9793. return isInputOutputSupported(element);
  9794. }
  9795. function areOutputParametersSupported(element) {
  9796. const businessObject = getBusinessObject(element);
  9797. return isInputOutputSupported(element) && !is(businessObject, 'bpmn:EndEvent') && !businessObject.loopCharacteristics;
  9798. }
  9799. function getInputOutputType(parameter) {
  9800. const definitionTypes = {
  9801. 'camunda:Map': 'map',
  9802. 'camunda:List': 'list',
  9803. 'camunda:Script': 'script'
  9804. };
  9805. let type = 'stringOrExpression';
  9806. const definition = parameter.get('definition');
  9807. if (typeof definition !== 'undefined') {
  9808. type = definitionTypes[definition.$type];
  9809. }
  9810. return type;
  9811. }
  9812. function CreateParameterCmd(element, type, parent, bpmnFactory) {
  9813. const isInput = type === 'camunda:InputParameter';
  9814. const newParameter = createElement(type, {
  9815. name: nextId(isInput ? 'Input_' : 'Output_')
  9816. }, parent, bpmnFactory);
  9817. const propertyName = isInput ? 'inputParameters' : 'outputParameters';
  9818. return {
  9819. cmd: 'element.updateModdleProperties',
  9820. context: {
  9821. element,
  9822. moddleElement: parent,
  9823. properties: {
  9824. [propertyName]: [...parent.get(propertyName), newParameter]
  9825. }
  9826. }
  9827. };
  9828. }
  9829. function AddParameterCmd(element, type, bpmnFactory) {
  9830. const commands = [];
  9831. const businessObject = getBusinessObject(element);
  9832. let extensionElements = businessObject.get('extensionElements');
  9833. // (1) ensure extension elements
  9834. if (!extensionElements) {
  9835. extensionElements = createElement('bpmn:ExtensionElements', {
  9836. values: []
  9837. }, businessObject, bpmnFactory);
  9838. commands.push({
  9839. cmd: 'element.updateModdleProperties',
  9840. context: {
  9841. element,
  9842. moddleElement: businessObject,
  9843. properties: {
  9844. extensionElements
  9845. }
  9846. }
  9847. });
  9848. }
  9849. // (2) ensure inputOutput
  9850. let inputOutput = getInputOutput(element);
  9851. if (!inputOutput) {
  9852. const parent = extensionElements;
  9853. inputOutput = createElement('camunda:InputOutput', {
  9854. inputParameters: [],
  9855. outputParameters: []
  9856. }, parent, bpmnFactory);
  9857. commands.push({
  9858. cmd: 'element.updateModdleProperties',
  9859. context: {
  9860. element,
  9861. moddleElement: extensionElements,
  9862. properties: {
  9863. values: [...extensionElements.get('values'), inputOutput]
  9864. }
  9865. }
  9866. });
  9867. }
  9868. // (3) create + add parameter
  9869. commands.push(CreateParameterCmd(element, type, inputOutput, bpmnFactory));
  9870. return commands;
  9871. }
  9872. function ListProp(props) {
  9873. const {
  9874. element,
  9875. id: idPrefix,
  9876. index,
  9877. item
  9878. } = props;
  9879. const id = `${idPrefix}-listItem-${index}`;
  9880. return jsx(ListItem, {
  9881. idPrefix: id,
  9882. element: element,
  9883. item: item
  9884. });
  9885. }
  9886. function ListProps(props) {
  9887. const {
  9888. idPrefix,
  9889. element,
  9890. parameter
  9891. } = props;
  9892. const bpmnFactory = useService('bpmnFactory');
  9893. const commandStack = useService('commandStack');
  9894. const translate = useService('translate');
  9895. const list = parameter.get('definition');
  9896. const items = list.get('items');
  9897. function addItem() {
  9898. const value = createElement('camunda:Value', {}, parameter, bpmnFactory);
  9899. commandStack.execute('element.updateModdleProperties', {
  9900. element,
  9901. moddleElement: list,
  9902. properties: {
  9903. items: [...list.get('items'), value]
  9904. }
  9905. });
  9906. }
  9907. function removeItem(item) {
  9908. commandStack.execute('element.updateModdleProperties', {
  9909. element,
  9910. moddleElement: list,
  9911. properties: {
  9912. items: without(list.get('items'), item)
  9913. }
  9914. });
  9915. }
  9916. function compareFn(item, anotherItem) {
  9917. const [value = '', anotherValue = ''] = [item.value, anotherItem.value];
  9918. return value === anotherValue ? 0 : value > anotherValue ? 1 : -1;
  9919. }
  9920. return ListEntry({
  9921. element,
  9922. autoFocusEntry: true,
  9923. compareFn,
  9924. id: idPrefix + '-list',
  9925. items,
  9926. label: translate('List values'),
  9927. onAdd: addItem,
  9928. onRemove: removeItem,
  9929. component: ListProp
  9930. });
  9931. }
  9932. function ListItem(props) {
  9933. const {
  9934. idPrefix,
  9935. element,
  9936. item
  9937. } = props;
  9938. const commandStack = useService('commandStack');
  9939. const translate = useService('translate');
  9940. const definitionLabels = {
  9941. 'camunda:Map': translate('Map'),
  9942. 'camunda:List': translate('List'),
  9943. 'camunda:Script': translate('Script')
  9944. };
  9945. const getValue = () => {
  9946. if (isDefinitionType$1(item)) {
  9947. return definitionLabels[item.$type];
  9948. }
  9949. return item.get('value');
  9950. };
  9951. const setValue = value => {
  9952. commandStack.execute('element.updateModdleProperties', {
  9953. element,
  9954. moddleElement: item,
  9955. properties: {
  9956. value
  9957. }
  9958. });
  9959. };
  9960. return ListValue({
  9961. id: idPrefix + '-value',
  9962. disabled: isDefinitionType$1(item),
  9963. getValue,
  9964. setValue
  9965. });
  9966. }
  9967. function ListValue(props) {
  9968. const {
  9969. id,
  9970. disabled,
  9971. getValue,
  9972. setValue
  9973. } = props;
  9974. const debounce = useService('debounceInput', true);
  9975. return jsx(SimpleEntry, {
  9976. id: id,
  9977. getValue: getValue,
  9978. setValue: setValue,
  9979. disabled: disabled,
  9980. debounce: debounce
  9981. });
  9982. }
  9983. // helper //////////////////////
  9984. function isScript$1(element) {
  9985. return is(element, 'camunda:Script');
  9986. }
  9987. function isList$1(element) {
  9988. return is(element, 'camunda:List');
  9989. }
  9990. function isMap$1(element) {
  9991. return is(element, 'camunda:Map');
  9992. }
  9993. function isDefinitionType$1(element) {
  9994. return isScript$1(element) || isList$1(element) || isMap$1(element);
  9995. }
  9996. function MapProp(props) {
  9997. const {
  9998. element,
  9999. id: idPrefix,
  10000. index,
  10001. item: entry,
  10002. open
  10003. } = props;
  10004. const id = `${idPrefix}-mapEntry-${index}`;
  10005. const translate = useService('translate');
  10006. return jsx(CollapsibleEntry, {
  10007. id: id,
  10008. element: element,
  10009. entries: MapEntry({
  10010. element,
  10011. entry,
  10012. idPrefix: id
  10013. }),
  10014. label: entry.get('key') || translate('<empty>'),
  10015. open: open
  10016. });
  10017. }
  10018. function MapProps(props) {
  10019. const {
  10020. idPrefix,
  10021. element,
  10022. parameter
  10023. } = props;
  10024. const bpmnFactory = useService('bpmnFactory');
  10025. const commandStack = useService('commandStack');
  10026. const translate = useService('translate');
  10027. const map = parameter.get('definition');
  10028. const entries = map.get('entries');
  10029. function addEntry() {
  10030. const entry = createElement('camunda:Entry', {}, parameter, bpmnFactory);
  10031. commandStack.execute('element.updateModdleProperties', {
  10032. element,
  10033. moddleElement: map,
  10034. properties: {
  10035. entries: [...map.get('entries'), entry]
  10036. }
  10037. });
  10038. }
  10039. function removeEntry(entry) {
  10040. commandStack.execute('element.updateModdleProperties', {
  10041. element,
  10042. moddleElement: map,
  10043. properties: {
  10044. entries: without(map.get('entries'), entry)
  10045. }
  10046. });
  10047. }
  10048. function compareFn(entry, anotherEntry) {
  10049. const [key = '', anotherKey = ''] = [entry.key, anotherEntry.key];
  10050. return key === anotherKey ? 0 : key > anotherKey ? 1 : -1;
  10051. }
  10052. return ListEntry({
  10053. element,
  10054. autoFocusEntry: true,
  10055. compareFn,
  10056. id: idPrefix + '-map',
  10057. items: entries,
  10058. label: translate('Map entries'),
  10059. onAdd: addEntry,
  10060. onRemove: removeEntry,
  10061. component: MapProp
  10062. });
  10063. }
  10064. function MapEntry(props) {
  10065. const {
  10066. element,
  10067. entry,
  10068. idPrefix
  10069. } = props;
  10070. const entries = [{
  10071. id: idPrefix + '-key',
  10072. component: MapKey,
  10073. entry,
  10074. idPrefix,
  10075. element
  10076. }, {
  10077. id: idPrefix + '-value',
  10078. component: MapValue,
  10079. entry,
  10080. idPrefix,
  10081. element
  10082. }];
  10083. return entries;
  10084. }
  10085. function MapKey(props) {
  10086. const {
  10087. element,
  10088. entry,
  10089. idPrefix
  10090. } = props;
  10091. const commandStack = useService('commandStack');
  10092. const translate = useService('translate');
  10093. const debounce = useService('debounceInput');
  10094. const setValue = value => {
  10095. commandStack.execute('element.updateModdleProperties', {
  10096. element,
  10097. moddleElement: entry,
  10098. properties: {
  10099. key: value
  10100. }
  10101. });
  10102. };
  10103. const getValue = () => {
  10104. return entry.get('key');
  10105. };
  10106. return TextFieldEntry({
  10107. element: entry,
  10108. id: idPrefix + '-key',
  10109. label: translate('Key'),
  10110. getValue,
  10111. setValue,
  10112. debounce
  10113. });
  10114. }
  10115. function MapValue(props) {
  10116. const {
  10117. element,
  10118. entry,
  10119. idPrefix
  10120. } = props;
  10121. const commandStack = useService('commandStack');
  10122. const translate = useService('translate');
  10123. const debounce = useService('debounceInput');
  10124. const definition = entry.get('definition');
  10125. const definitionLabels = {
  10126. 'camunda:Map': translate('Map'),
  10127. 'camunda:List': translate('List'),
  10128. 'camunda:Script': translate('Script')
  10129. };
  10130. const setValue = value => {
  10131. commandStack.execute('element.updateModdleProperties', {
  10132. element,
  10133. moddleElement: entry,
  10134. properties: {
  10135. value
  10136. }
  10137. });
  10138. };
  10139. const getValue = () => {
  10140. if (isDefinitionType(definition)) {
  10141. return definitionLabels[definition.$type];
  10142. }
  10143. return entry.get('value');
  10144. };
  10145. return TextFieldEntry({
  10146. element: entry,
  10147. id: idPrefix + '-value',
  10148. label: translate('Value'),
  10149. getValue,
  10150. setValue,
  10151. disabled: isDefinitionType(definition),
  10152. debounce
  10153. });
  10154. }
  10155. // helper ///////////////////
  10156. function isScript(element) {
  10157. return is(element, 'camunda:Script');
  10158. }
  10159. function isList(element) {
  10160. return is(element, 'camunda:List');
  10161. }
  10162. function isMap(element) {
  10163. return is(element, 'camunda:Map');
  10164. }
  10165. function isDefinitionType(element) {
  10166. return isScript(element) || isList(element) || isMap(element);
  10167. }
  10168. const DEFAULT_PROPS$3 = {
  10169. value: undefined,
  10170. definition: undefined
  10171. };
  10172. function InputOutputParameter(props) {
  10173. const {
  10174. idPrefix,
  10175. element,
  10176. parameter
  10177. } = props;
  10178. const inputOutputType = getInputOutputType(parameter);
  10179. let entries = [{
  10180. id: idPrefix + '-name',
  10181. component: Name$2,
  10182. isEdited: isTextFieldEntryEdited,
  10183. idPrefix,
  10184. parameter
  10185. }, {
  10186. id: idPrefix + '-type',
  10187. component: Type$2,
  10188. isEdited: isSelectEntryEdited,
  10189. idPrefix,
  10190. parameter
  10191. }];
  10192. // (1) String or expression
  10193. if (inputOutputType === 'stringOrExpression') {
  10194. entries.push({
  10195. id: idPrefix + '-stringOrExpression',
  10196. component: StringOrExpression,
  10197. isEdited: isTextAreaEntryEdited,
  10198. idPrefix,
  10199. parameter
  10200. });
  10201. // (2) Script
  10202. } else if (inputOutputType === 'script') {
  10203. const script = parameter.get('definition');
  10204. entries = [...entries, ...ScriptProps({
  10205. element,
  10206. prefix: idPrefix + '-',
  10207. script
  10208. })];
  10209. // (3) List
  10210. } else if (inputOutputType === 'list') {
  10211. entries.push({
  10212. id: `${idPrefix}-list`,
  10213. component: ListProps,
  10214. idPrefix,
  10215. parameter
  10216. });
  10217. // (4) Map
  10218. } else if (inputOutputType === 'map') {
  10219. entries.push({
  10220. id: `${idPrefix}-map`,
  10221. component: MapProps,
  10222. idPrefix,
  10223. parameter
  10224. });
  10225. }
  10226. return entries;
  10227. }
  10228. function Name$2(props) {
  10229. const {
  10230. idPrefix,
  10231. element,
  10232. parameter
  10233. } = props;
  10234. const commandStack = useService('commandStack');
  10235. const translate = useService('translate');
  10236. const debounce = useService('debounceInput');
  10237. const setValue = value => {
  10238. commandStack.execute('element.updateModdleProperties', {
  10239. element,
  10240. moddleElement: parameter,
  10241. properties: {
  10242. name: value
  10243. }
  10244. });
  10245. };
  10246. const getValue = parameter => {
  10247. return parameter.get('name');
  10248. };
  10249. return TextFieldEntry({
  10250. element: parameter,
  10251. id: idPrefix + '-name',
  10252. label: translate(isInput(parameter) ? 'Local variable name' : 'Process variable name'),
  10253. getValue,
  10254. setValue,
  10255. debounce
  10256. });
  10257. }
  10258. function Type$2(props) {
  10259. const {
  10260. idPrefix,
  10261. element,
  10262. parameter
  10263. } = props;
  10264. const bpmnFactory = useService('bpmnFactory');
  10265. const commandStack = useService('commandStack');
  10266. const translate = useService('translate');
  10267. const createDefinitionElement = type => {
  10268. return createElement(type, {}, parameter, bpmnFactory);
  10269. };
  10270. const getValue = mapping => {
  10271. return getInputOutputType(mapping);
  10272. };
  10273. const setValue = value => {
  10274. let properties = {
  10275. ...DEFAULT_PROPS$3
  10276. };
  10277. if (value === 'script') {
  10278. properties.definition = createDefinitionElement('camunda:Script');
  10279. } else if (value === 'list') {
  10280. properties.definition = createDefinitionElement('camunda:List');
  10281. } else if (value === 'map') {
  10282. properties.definition = createDefinitionElement('camunda:Map');
  10283. }
  10284. commandStack.execute('element.updateModdleProperties', {
  10285. element,
  10286. moddleElement: parameter,
  10287. properties
  10288. });
  10289. };
  10290. const getOptions = () => {
  10291. const options = [{
  10292. label: translate('List'),
  10293. value: 'list'
  10294. }, {
  10295. label: translate('Map'),
  10296. value: 'map'
  10297. }, {
  10298. label: translate('Script'),
  10299. value: 'script'
  10300. }, {
  10301. label: translate('String or expression'),
  10302. value: 'stringOrExpression'
  10303. }];
  10304. return options;
  10305. };
  10306. return SelectEntry({
  10307. element: parameter,
  10308. id: idPrefix + '-type',
  10309. label: translate('Assignment type'),
  10310. getValue,
  10311. setValue,
  10312. getOptions
  10313. });
  10314. }
  10315. function StringOrExpression(props) {
  10316. const {
  10317. idPrefix,
  10318. element,
  10319. parameter
  10320. } = props;
  10321. const commandStack = useService('commandStack');
  10322. const translate = useService('translate');
  10323. const debounce = useService('debounceInput');
  10324. const setValue = value => {
  10325. commandStack.execute('element.updateModdleProperties', {
  10326. element,
  10327. moddleElement: parameter,
  10328. properties: {
  10329. value
  10330. }
  10331. });
  10332. };
  10333. const getValue = parameter => {
  10334. return parameter.get('value');
  10335. };
  10336. return TextAreaEntry({
  10337. element: parameter,
  10338. id: idPrefix + '-stringOrExpression',
  10339. label: translate('Value'),
  10340. description: translate('Start typing "${}" to create an expression.'),
  10341. getValue,
  10342. setValue,
  10343. rows: 1,
  10344. debounce
  10345. });
  10346. }
  10347. // helper /////////////////////
  10348. function isInput(parameter) {
  10349. return is(parameter, 'camunda:InputParameter');
  10350. }
  10351. /**
  10352. * Check whether an element is camunda:ServiceTaskLike
  10353. *
  10354. * @param {djs.model.Base} element
  10355. *
  10356. * @return {boolean} a boolean value
  10357. */
  10358. function isServiceTaskLike(element) {
  10359. return is(element, 'camunda:ServiceTaskLike');
  10360. }
  10361. /**
  10362. * Returns 'true' if the given element is 'camunda:DmnCapable'
  10363. *
  10364. * @param {djs.model.Base} element
  10365. *
  10366. * @return {boolean} a boolean value
  10367. */
  10368. function isDmnCapable(element) {
  10369. return is(element, 'camunda:DmnCapable');
  10370. }
  10371. /**
  10372. * Returns 'true' if the given element is 'camunda:ExternalCapable'
  10373. *
  10374. * @param {djs.model.Base} element
  10375. *
  10376. * @return {boolean} a boolean value
  10377. */
  10378. function isExternalCapable(element) {
  10379. return is(element, 'camunda:ExternalCapable');
  10380. }
  10381. /**
  10382. * getServiceTaskLikeBusinessObject - Get a 'camunda:ServiceTaskLike' business object.
  10383. *
  10384. * If the given element is not a 'camunda:ServiceTaskLike', then 'false'
  10385. * is returned.
  10386. *
  10387. * @param {djs.model.Base} element
  10388. * @return {ModdleElement} the 'camunda:ServiceTaskLike' business object
  10389. */
  10390. function getServiceTaskLikeBusinessObject(element) {
  10391. if (is(element, 'bpmn:IntermediateThrowEvent') || is(element, 'bpmn:EndEvent')) {
  10392. // change business object to 'messageEventDefinition' when
  10393. // the element is a message intermediate throw event or message end event
  10394. // because the camunda extensions (e.g. camunda:class) are in the message
  10395. // event definition tag and not in the intermediate throw event or end event tag
  10396. const messageEventDefinition = getMessageEventDefinition(element);
  10397. if (messageEventDefinition) {
  10398. element = messageEventDefinition;
  10399. }
  10400. }
  10401. return isServiceTaskLike(element) && getBusinessObject(element);
  10402. }
  10403. /**
  10404. * Returns the implementation type of the given element.
  10405. *
  10406. * Possible implementation types are:
  10407. * - dmn
  10408. * - connector
  10409. * - external
  10410. * - class
  10411. * - expression
  10412. * - delegateExpression
  10413. * - script
  10414. * - or undefined, when no matching implementation type is found
  10415. *
  10416. * @param {djs.model.Base} element
  10417. *
  10418. * @return {String} the implementation type
  10419. */
  10420. function getImplementationType(element) {
  10421. const businessObject = getListenerBusinessObject(element) || getServiceTaskLikeBusinessObject(element);
  10422. if (!businessObject) {
  10423. return;
  10424. }
  10425. if (isDmnCapable(businessObject)) {
  10426. const decisionRef = businessObject.get('camunda:decisionRef');
  10427. if (typeof decisionRef !== 'undefined') {
  10428. return 'dmn';
  10429. }
  10430. }
  10431. if (isServiceTaskLike(businessObject)) {
  10432. const connectors = getExtensionElementsList(businessObject, 'camunda:Connector');
  10433. if (connectors.length) {
  10434. return 'connector';
  10435. }
  10436. }
  10437. if (isExternalCapable(businessObject)) {
  10438. const type = businessObject.get('camunda:type');
  10439. if (type === 'external') {
  10440. return 'external';
  10441. }
  10442. }
  10443. const cls = businessObject.get('camunda:class');
  10444. if (typeof cls !== 'undefined') {
  10445. return 'class';
  10446. }
  10447. const expression = businessObject.get('camunda:expression');
  10448. if (typeof expression !== 'undefined') {
  10449. return 'expression';
  10450. }
  10451. const delegateExpression = businessObject.get('camunda:delegateExpression');
  10452. if (typeof delegateExpression !== 'undefined') {
  10453. return 'delegateExpression';
  10454. }
  10455. const script = businessObject.get('script');
  10456. if (typeof script !== 'undefined') {
  10457. return 'script';
  10458. }
  10459. }
  10460. function getListenerBusinessObject(businessObject) {
  10461. if (isAny(businessObject, ['camunda:ExecutionListener', 'camunda:TaskListener'])) {
  10462. return businessObject;
  10463. }
  10464. }
  10465. function areConnectorsSupported(element) {
  10466. const businessObject = getServiceTaskLikeBusinessObject(element);
  10467. return businessObject && getImplementationType(businessObject) === 'connector';
  10468. }
  10469. function getConnectors$2(businessObject) {
  10470. return getExtensionElementsList(businessObject, 'camunda:Connector');
  10471. }
  10472. function getConnector$1(element) {
  10473. const businessObject = getServiceTaskLikeBusinessObject(element);
  10474. const connectors = getConnectors$2(businessObject);
  10475. return connectors[0];
  10476. }
  10477. function ConnectorInputProps(props) {
  10478. const {
  10479. element,
  10480. injector
  10481. } = props;
  10482. if (!areConnectorsSupported(element)) {
  10483. return null;
  10484. }
  10485. const connector = getConnector$1(element);
  10486. const commandStack = injector.get('commandStack'),
  10487. bpmnFactory = injector.get('bpmnFactory');
  10488. const inputParameters = getInputParameters(connector) || [];
  10489. const items = inputParameters.map((parameter, index) => {
  10490. const id = element.id + '-connector-inputParameter-' + index;
  10491. return {
  10492. id,
  10493. label: parameter.get('name') || '',
  10494. entries: InputOutputParameter({
  10495. element,
  10496. idPrefix: id,
  10497. parameter
  10498. }),
  10499. autoFocusEntry: id + '-name',
  10500. remove: removeFactory$8({
  10501. connector,
  10502. element,
  10503. parameter,
  10504. commandStack
  10505. })
  10506. };
  10507. });
  10508. function add(event) {
  10509. event.stopPropagation();
  10510. const commands = [];
  10511. // (1) ensure inputOutput
  10512. let inputOutput = getInputOutput(connector);
  10513. if (!inputOutput) {
  10514. inputOutput = createElement('camunda:InputOutput', {
  10515. inputParameters: [],
  10516. outputParameters: []
  10517. }, connector, bpmnFactory);
  10518. commands.push({
  10519. cmd: 'element.updateModdleProperties',
  10520. context: {
  10521. element: element,
  10522. moddleElement: connector,
  10523. properties: {
  10524. inputOutput
  10525. }
  10526. }
  10527. });
  10528. }
  10529. // (2) create + add parameter
  10530. commands.push(CreateParameterCmd(element, 'camunda:InputParameter', inputOutput, bpmnFactory));
  10531. // (3) commit all updates
  10532. commandStack.execute('properties-panel.multi-command-executor', commands);
  10533. }
  10534. return {
  10535. items,
  10536. add
  10537. };
  10538. }
  10539. function removeFactory$8(props) {
  10540. const {
  10541. commandStack,
  10542. connector,
  10543. element,
  10544. parameter
  10545. } = props;
  10546. return function (event) {
  10547. event.stopPropagation();
  10548. const inputOutput = getInputOutput(connector);
  10549. if (!inputOutput) {
  10550. return;
  10551. }
  10552. commandStack.execute('element.updateModdleProperties', {
  10553. element: element,
  10554. moddleElement: inputOutput,
  10555. properties: {
  10556. inputParameters: without(inputOutput.get('inputParameters'), parameter)
  10557. }
  10558. });
  10559. };
  10560. }
  10561. function ConnectorOutputProps(props) {
  10562. const {
  10563. element,
  10564. injector
  10565. } = props;
  10566. if (!areConnectorsSupported(element)) {
  10567. return null;
  10568. }
  10569. const connector = getConnector$1(element);
  10570. const commandStack = injector.get('commandStack'),
  10571. bpmnFactory = injector.get('bpmnFactory');
  10572. const outputParameters = getOutputParameters(connector) || [];
  10573. const items = outputParameters.map((parameter, index) => {
  10574. const id = element.id + '-connector-outputParameter-' + index;
  10575. return {
  10576. id,
  10577. label: parameter.get('name') || '',
  10578. entries: InputOutputParameter({
  10579. idPrefix: id,
  10580. element,
  10581. parameter
  10582. }),
  10583. autoFocusEntry: id + '-name',
  10584. remove: removeFactory$7({
  10585. connector,
  10586. element,
  10587. commandStack,
  10588. parameter
  10589. })
  10590. };
  10591. });
  10592. function add(event) {
  10593. event.stopPropagation();
  10594. const commands = [];
  10595. // (1) ensure inputOutput
  10596. let inputOutput = getInputOutput(connector);
  10597. if (!inputOutput) {
  10598. inputOutput = createElement('camunda:InputOutput', {
  10599. inputParameters: [],
  10600. outputParameters: []
  10601. }, connector, bpmnFactory);
  10602. commands.push({
  10603. cmd: 'element.updateModdleProperties',
  10604. context: {
  10605. element: element,
  10606. moddleElement: connector,
  10607. properties: {
  10608. inputOutput
  10609. }
  10610. }
  10611. });
  10612. }
  10613. // (2) create + add parameter
  10614. commands.push(CreateParameterCmd(element, 'camunda:OutputParameter', inputOutput, bpmnFactory));
  10615. // (3) commit all updates
  10616. commandStack.execute('properties-panel.multi-command-executor', commands);
  10617. }
  10618. return {
  10619. items,
  10620. add
  10621. };
  10622. }
  10623. function removeFactory$7(props) {
  10624. const {
  10625. commandStack,
  10626. connector,
  10627. element,
  10628. parameter
  10629. } = props;
  10630. return function (event) {
  10631. event.stopPropagation();
  10632. const inputOutput = getInputOutput(connector);
  10633. if (!inputOutput) {
  10634. return;
  10635. }
  10636. commandStack.execute('element.updateModdleProperties', {
  10637. element: element,
  10638. moddleElement: inputOutput,
  10639. properties: {
  10640. outputParameters: without(inputOutput.get('outputParameters'), parameter)
  10641. }
  10642. });
  10643. };
  10644. }
  10645. function ErrorProps(props) {
  10646. const {
  10647. element,
  10648. entries
  10649. } = props;
  10650. if (!isErrorSupported(element)) {
  10651. return entries;
  10652. }
  10653. const error = getError(element);
  10654. // (1) errorMessage (error)
  10655. if (error) {
  10656. const idx = findPlaceToInsert(entries, 'errorCode');
  10657. // place below errorCode
  10658. entries.splice(idx, 0, {
  10659. id: 'errorMessage',
  10660. component: ErrorMessage$1,
  10661. isEdited: isTextFieldEntryEdited
  10662. });
  10663. }
  10664. if (!canHaveErrorVariables(element)) {
  10665. return entries;
  10666. }
  10667. // (2) errorCodeVariable + errorMessageVariable (errorEventDefinition)
  10668. entries.push({
  10669. id: 'errorCodeVariable',
  10670. component: ErrorCodeVariable,
  10671. isEdited: isTextFieldEntryEdited
  10672. }, {
  10673. id: 'errorMessageVariable',
  10674. component: ErrorMessageVariable,
  10675. isEdited: isTextFieldEntryEdited
  10676. });
  10677. return entries;
  10678. }
  10679. function ErrorMessage$1(props) {
  10680. const {
  10681. element
  10682. } = props;
  10683. const commandStack = useService('commandStack');
  10684. const translate = useService('translate');
  10685. const debounce = useService('debounceInput');
  10686. const error = getError(element);
  10687. const getValue = () => {
  10688. return error.get('camunda:errorMessage');
  10689. };
  10690. const setValue = value => {
  10691. return commandStack.execute('element.updateModdleProperties', {
  10692. element,
  10693. moddleElement: error,
  10694. properties: {
  10695. 'camunda:errorMessage': value
  10696. }
  10697. });
  10698. };
  10699. return TextFieldEntry({
  10700. element,
  10701. id: 'errorMessage',
  10702. label: translate('Message'),
  10703. getValue,
  10704. setValue,
  10705. debounce
  10706. });
  10707. }
  10708. function ErrorCodeVariable(props) {
  10709. const {
  10710. element
  10711. } = props;
  10712. const commandStack = useService('commandStack');
  10713. const translate = useService('translate');
  10714. const debounce = useService('debounceInput');
  10715. const errorEventDefinition = getErrorEventDefinition(element);
  10716. const getValue = () => {
  10717. return errorEventDefinition.get('camunda:errorCodeVariable');
  10718. };
  10719. const setValue = value => {
  10720. return commandStack.execute('element.updateModdleProperties', {
  10721. element,
  10722. moddleElement: errorEventDefinition,
  10723. properties: {
  10724. 'camunda:errorCodeVariable': value
  10725. }
  10726. });
  10727. };
  10728. return TextFieldEntry({
  10729. element,
  10730. id: 'errorCodeVariable',
  10731. label: translate('Code variable'),
  10732. description: translate('Define the name of the variable that will contain the error code.'),
  10733. getValue,
  10734. setValue,
  10735. debounce
  10736. });
  10737. }
  10738. function ErrorMessageVariable(props) {
  10739. const {
  10740. element
  10741. } = props;
  10742. const commandStack = useService('commandStack');
  10743. const translate = useService('translate');
  10744. const debounce = useService('debounceInput');
  10745. const errorEventDefinition = getErrorEventDefinition(element);
  10746. const getValue = () => {
  10747. return errorEventDefinition.get('camunda:errorMessageVariable');
  10748. };
  10749. const setValue = value => {
  10750. return commandStack.execute('element.updateModdleProperties', {
  10751. element,
  10752. moddleElement: errorEventDefinition,
  10753. properties: {
  10754. 'camunda:errorMessageVariable': value
  10755. }
  10756. });
  10757. };
  10758. return TextFieldEntry({
  10759. element,
  10760. id: 'errorMessageVariable',
  10761. label: translate('Message variable'),
  10762. description: translate('Define the name of the variable that will contain the error message.'),
  10763. getValue,
  10764. setValue,
  10765. debounce
  10766. });
  10767. }
  10768. // helper ///////////////////////
  10769. function canHaveErrorVariables(element) {
  10770. return is(element, 'bpmn:StartEvent') || is(element, 'bpmn:BoundaryEvent');
  10771. }
  10772. function findPlaceToInsert(entries, idx) {
  10773. const entryIndex = findIndex(entries, entry => entry.id === idx);
  10774. return entryIndex >= 0 ? entryIndex + 1 : entries.length;
  10775. }
  10776. const EMPTY_OPTION = '';
  10777. const CREATE_NEW_OPTION = 'create-new';
  10778. function Error$1(props) {
  10779. const {
  10780. idPrefix,
  10781. errorEventDefinition
  10782. } = props;
  10783. let entries = [{
  10784. id: idPrefix + '-errorRef',
  10785. component: ErrorRef,
  10786. isEdited: isSelectEntryEdited,
  10787. errorEventDefinition,
  10788. idPrefix
  10789. }];
  10790. const error = errorEventDefinition.get('errorRef');
  10791. if (error) {
  10792. entries = [...entries, {
  10793. id: idPrefix + '-errorName',
  10794. component: ErrorName,
  10795. isEdited: isTextFieldEntryEdited,
  10796. error,
  10797. errorEventDefinition,
  10798. idPrefix
  10799. }, {
  10800. id: idPrefix + '-errorCode',
  10801. component: ErrorCode,
  10802. isEdited: isTextFieldEntryEdited,
  10803. error,
  10804. errorEventDefinition,
  10805. idPrefix
  10806. }, {
  10807. id: idPrefix + '-errorMessage',
  10808. component: ErrorMessage,
  10809. isEdited: isTextFieldEntryEdited,
  10810. error,
  10811. errorEventDefinition,
  10812. idPrefix
  10813. }];
  10814. }
  10815. entries.push({
  10816. id: idPrefix + '-expression',
  10817. component: Expression$1,
  10818. errorEventDefinition,
  10819. idPrefix
  10820. });
  10821. return entries;
  10822. }
  10823. function ErrorRef(props) {
  10824. const {
  10825. element,
  10826. errorEventDefinition,
  10827. idPrefix
  10828. } = props;
  10829. const bpmnFactory = useService('bpmnFactory');
  10830. const commandStack = useService('commandStack');
  10831. const translate = useService('translate');
  10832. const businessObject = getBusinessObject(element);
  10833. const getValue = () => {
  10834. const error = errorEventDefinition.get('errorRef');
  10835. if (error) {
  10836. return error.get('id');
  10837. }
  10838. return EMPTY_OPTION;
  10839. };
  10840. const setValue = value => {
  10841. const root = getRoot(businessObject);
  10842. const commands = [];
  10843. let error;
  10844. // (1) create new error
  10845. if (value === CREATE_NEW_OPTION) {
  10846. error = createElement('bpmn:Error', {
  10847. name: nextId('Error_')
  10848. }, root, bpmnFactory);
  10849. value = error.get('id');
  10850. commands.push({
  10851. cmd: 'element.updateModdleProperties',
  10852. context: {
  10853. element,
  10854. moddleElement: root,
  10855. properties: {
  10856. rootElements: [...root.get('rootElements'), error]
  10857. }
  10858. }
  10859. });
  10860. }
  10861. // (2) update (or remove) errorRef
  10862. error = error || findRootElementById(businessObject, 'bpmn:Error', value);
  10863. commands.push({
  10864. cmd: 'element.updateModdleProperties',
  10865. context: {
  10866. element,
  10867. moddleElement: errorEventDefinition,
  10868. properties: {
  10869. errorRef: error
  10870. }
  10871. }
  10872. });
  10873. // (3) commit all updates
  10874. return commandStack.execute('properties-panel.multi-command-executor', commands);
  10875. };
  10876. const getOptions = () => {
  10877. let options = [{
  10878. value: EMPTY_OPTION,
  10879. label: translate('<none>')
  10880. }, {
  10881. value: CREATE_NEW_OPTION,
  10882. label: translate('Create new ...')
  10883. }];
  10884. const errors = findRootElementsByType(getBusinessObject(element), 'bpmn:Error');
  10885. sortByName$1(errors).forEach(error => {
  10886. options.push({
  10887. value: error.get('id'),
  10888. label: error.get('name') || error.get('id')
  10889. });
  10890. });
  10891. return options;
  10892. };
  10893. return ReferenceSelectEntry({
  10894. element,
  10895. id: idPrefix + '-errorRef',
  10896. label: translate('Global error reference'),
  10897. autoFocusEntry: idPrefix + '-errorName',
  10898. getValue,
  10899. setValue,
  10900. getOptions
  10901. });
  10902. }
  10903. function ErrorName(props) {
  10904. const {
  10905. element,
  10906. error,
  10907. idPrefix
  10908. } = props;
  10909. const commandStack = useService('commandStack');
  10910. const translate = useService('translate');
  10911. const debounce = useService('debounceInput');
  10912. const getValue = () => {
  10913. return error.get('name');
  10914. };
  10915. const setValue = value => {
  10916. return commandStack.execute('element.updateModdleProperties', {
  10917. element,
  10918. moddleElement: error,
  10919. properties: {
  10920. name: value
  10921. }
  10922. });
  10923. };
  10924. return TextFieldEntry({
  10925. element,
  10926. id: idPrefix + '-errorName',
  10927. label: translate('Name'),
  10928. getValue,
  10929. setValue,
  10930. debounce
  10931. });
  10932. }
  10933. function ErrorCode(props) {
  10934. const {
  10935. element,
  10936. error,
  10937. idPrefix
  10938. } = props;
  10939. const commandStack = useService('commandStack');
  10940. const translate = useService('translate');
  10941. const debounce = useService('debounceInput');
  10942. const getValue = () => {
  10943. return error.get('errorCode');
  10944. };
  10945. const setValue = value => {
  10946. return commandStack.execute('element.updateModdleProperties', {
  10947. element,
  10948. moddleElement: error,
  10949. properties: {
  10950. errorCode: value
  10951. }
  10952. });
  10953. };
  10954. return TextFieldEntry({
  10955. element,
  10956. id: idPrefix + '-errorCode',
  10957. label: translate('Code'),
  10958. getValue,
  10959. setValue,
  10960. debounce
  10961. });
  10962. }
  10963. function ErrorMessage(props) {
  10964. const {
  10965. element,
  10966. error,
  10967. idPrefix
  10968. } = props;
  10969. const commandStack = useService('commandStack');
  10970. const translate = useService('translate');
  10971. const debounce = useService('debounceInput');
  10972. const getValue = () => {
  10973. return error.get('errorMessage');
  10974. };
  10975. const setValue = value => {
  10976. return commandStack.execute('element.updateModdleProperties', {
  10977. element,
  10978. moddleElement: error,
  10979. properties: {
  10980. errorMessage: value
  10981. }
  10982. });
  10983. };
  10984. return TextFieldEntry({
  10985. element,
  10986. id: idPrefix + '-errorMessage',
  10987. label: translate('Message'),
  10988. getValue,
  10989. setValue,
  10990. debounce
  10991. });
  10992. }
  10993. function Expression$1(props) {
  10994. const {
  10995. element,
  10996. errorEventDefinition,
  10997. idPrefix
  10998. } = props;
  10999. const commandStack = useService('commandStack');
  11000. const translate = useService('translate');
  11001. const debounce = useService('debounceInput');
  11002. const setValue = value => {
  11003. commandStack.execute('element.updateModdleProperties', {
  11004. element,
  11005. moddleElement: errorEventDefinition,
  11006. properties: {
  11007. 'camunda:expression': value
  11008. }
  11009. });
  11010. };
  11011. const getValue = () => {
  11012. return errorEventDefinition.get('camunda:expression');
  11013. };
  11014. return TextFieldEntry({
  11015. element: errorEventDefinition,
  11016. id: idPrefix + '-expression',
  11017. label: translate('Throw expression'),
  11018. getValue,
  11019. setValue,
  11020. debounce
  11021. });
  11022. }
  11023. // helpers //////////
  11024. function sortByName$1(elements) {
  11025. return sortBy(elements, e => (e.name || '').toLowerCase());
  11026. }
  11027. function ErrorsProps({
  11028. element,
  11029. injector
  11030. }) {
  11031. const businessObject = getBusinessObject(element);
  11032. if (!is(element, 'bpmn:ServiceTask') || getImplementationType(element) !== 'external') {
  11033. return null;
  11034. }
  11035. const errorEventDefinitions = getExtensionElementsList(businessObject, 'camunda:ErrorEventDefinition');
  11036. const bpmnFactory = injector.get('bpmnFactory'),
  11037. commandStack = injector.get('commandStack');
  11038. const items = errorEventDefinitions.map((errorEventDefinition, index) => {
  11039. const id = element.id + '-error-' + index;
  11040. return {
  11041. id,
  11042. label: getErrorLabel(errorEventDefinition),
  11043. entries: Error$1({
  11044. idPrefix: id,
  11045. element,
  11046. errorEventDefinition
  11047. }),
  11048. autoFocusEntry: id + '-errorRef',
  11049. remove: removeFactory$6({
  11050. commandStack,
  11051. element,
  11052. errorEventDefinition
  11053. })
  11054. };
  11055. });
  11056. return {
  11057. items,
  11058. add: addFactory$5({
  11059. bpmnFactory,
  11060. commandStack,
  11061. element
  11062. }),
  11063. shouldSort: false
  11064. };
  11065. }
  11066. function removeFactory$6({
  11067. commandStack,
  11068. element,
  11069. errorEventDefinition
  11070. }) {
  11071. return function (event) {
  11072. event.stopPropagation();
  11073. const businessObject = getBusinessObject(element);
  11074. removeExtensionElements(element, businessObject, errorEventDefinition, commandStack);
  11075. };
  11076. }
  11077. function addFactory$5({
  11078. bpmnFactory,
  11079. commandStack,
  11080. element
  11081. }) {
  11082. return function (event) {
  11083. event.stopPropagation();
  11084. const businessObject = getBusinessObject(element);
  11085. const error = createElement('camunda:ErrorEventDefinition', {}, undefined, bpmnFactory);
  11086. addExtensionElements(element, businessObject, error, bpmnFactory, commandStack);
  11087. };
  11088. }
  11089. // helpers //////////
  11090. function getErrorLabel(errorEventDefinition) {
  11091. const error = errorEventDefinition.get('errorRef');
  11092. if (!error) {
  11093. return '<no reference>';
  11094. }
  11095. const errorCode = error.get('errorCode'),
  11096. name = error.get('name') || '<unnamed>';
  11097. if (errorCode) {
  11098. return `${name} (code = ${errorCode})`;
  11099. }
  11100. return name;
  11101. }
  11102. /**
  11103. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  11104. */
  11105. /**
  11106. * @returns {Array<Entry>} entries
  11107. */
  11108. function EscalationProps(props) {
  11109. const {
  11110. element,
  11111. entries
  11112. } = props;
  11113. if (!(isEscalationSupported(element) && canHaveEscalationVariables(element))) {
  11114. return entries;
  11115. }
  11116. entries.push({
  11117. id: 'escalationCodeVariable',
  11118. component: EscalationCodeVariable,
  11119. isEdited: isTextFieldEntryEdited
  11120. });
  11121. return entries;
  11122. }
  11123. function EscalationCodeVariable(props) {
  11124. const {
  11125. element
  11126. } = props;
  11127. const commandStack = useService('commandStack');
  11128. const translate = useService('translate');
  11129. const debounce = useService('debounceInput');
  11130. const escalationEventDefinition = getEscalationEventDefinition(element);
  11131. const getValue = () => {
  11132. return escalationEventDefinition.get('camunda:escalationCodeVariable');
  11133. };
  11134. const setValue = value => {
  11135. return commandStack.execute('element.updateModdleProperties', {
  11136. element,
  11137. moddleElement: escalationEventDefinition,
  11138. properties: {
  11139. 'camunda:escalationCodeVariable': value
  11140. }
  11141. });
  11142. };
  11143. return TextFieldEntry({
  11144. element,
  11145. id: 'escalationCodeVariable',
  11146. label: translate('Code variable'),
  11147. description: translate('Define the name of the variable that will contain the escalation code.'),
  11148. getValue,
  11149. setValue,
  11150. debounce
  11151. });
  11152. }
  11153. // helper ///////////////////////
  11154. function canHaveEscalationVariables(element) {
  11155. return is(element, 'bpmn:StartEvent') || is(element, 'bpmn:BoundaryEvent');
  11156. }
  11157. function ExternalTaskPriorityProps(props) {
  11158. const {
  11159. element
  11160. } = props;
  11161. const businessObject = getBusinessObject(element);
  11162. if (!is(element, 'bpmn:Process') && !(is(element, 'bpmn:Participant') && businessObject.get('processRef')) && !isExternalTaskLike(element)) {
  11163. return [];
  11164. }
  11165. return [{
  11166. id: 'externalTaskPriority',
  11167. component: ExternalTaskPriority,
  11168. isEdited: isTextFieldEntryEdited
  11169. }];
  11170. }
  11171. function ExternalTaskPriority(props) {
  11172. const {
  11173. element
  11174. } = props;
  11175. const commandStack = useService('commandStack'),
  11176. translate = useService('translate'),
  11177. debounce = useService('debounceInput');
  11178. let businessObject;
  11179. if (is(element, 'bpmn:Participant')) {
  11180. businessObject = getBusinessObject(element).get('processRef');
  11181. } else if (isExternalTaskLike(element)) {
  11182. businessObject = getServiceTaskLikeBusinessObject(element);
  11183. } else {
  11184. businessObject = getBusinessObject(element);
  11185. }
  11186. const getValue = () => {
  11187. return businessObject.get('camunda:taskPriority');
  11188. };
  11189. const setValue = value => {
  11190. commandStack.execute('element.updateModdleProperties', {
  11191. element,
  11192. moddleElement: businessObject,
  11193. properties: {
  11194. 'camunda:taskPriority': value
  11195. }
  11196. });
  11197. };
  11198. return TextFieldEntry({
  11199. element,
  11200. id: 'externalTaskPriority',
  11201. label: translate('Priority'),
  11202. getValue,
  11203. setValue,
  11204. debounce
  11205. });
  11206. }
  11207. // helper //////////////////
  11208. function isExternalTaskLike(element) {
  11209. const bo = getServiceTaskLikeBusinessObject(element),
  11210. type = bo && bo.get('camunda:type');
  11211. return is(bo, 'camunda:ServiceTaskLike') && type && type === 'external';
  11212. }
  11213. const DEFAULT_PROPS$2 = {
  11214. 'stringValue': undefined,
  11215. 'string': undefined,
  11216. 'expression': undefined
  11217. };
  11218. function FieldInjection(props) {
  11219. const {
  11220. element,
  11221. idPrefix,
  11222. field
  11223. } = props;
  11224. const entries = [{
  11225. id: idPrefix + '-name',
  11226. component: NameProperty,
  11227. field,
  11228. idPrefix,
  11229. element
  11230. }, {
  11231. id: idPrefix + '-type',
  11232. component: TypeProperty,
  11233. field,
  11234. idPrefix,
  11235. element
  11236. }, {
  11237. id: idPrefix + '-value',
  11238. component: ValueProperty,
  11239. field,
  11240. idPrefix,
  11241. element
  11242. }];
  11243. return entries;
  11244. }
  11245. function NameProperty(props) {
  11246. const {
  11247. idPrefix,
  11248. element,
  11249. field
  11250. } = props;
  11251. const commandStack = useService('commandStack'),
  11252. translate = useService('translate'),
  11253. debounce = useService('debounceInput');
  11254. const setValue = value => {
  11255. commandStack.execute('element.updateModdleProperties', {
  11256. element,
  11257. moddleElement: field,
  11258. properties: {
  11259. name: value
  11260. }
  11261. });
  11262. };
  11263. const getValue = field => {
  11264. return field.name;
  11265. };
  11266. return TextFieldEntry({
  11267. element: field,
  11268. id: idPrefix + '-name',
  11269. label: translate('Name'),
  11270. getValue,
  11271. setValue,
  11272. debounce
  11273. });
  11274. }
  11275. function TypeProperty(props) {
  11276. const {
  11277. idPrefix,
  11278. element,
  11279. field
  11280. } = props;
  11281. const commandStack = useService('commandStack'),
  11282. translate = useService('translate');
  11283. const getValue = field => {
  11284. return determineType(field);
  11285. };
  11286. const setValue = value => {
  11287. const properties = Object.assign({}, DEFAULT_PROPS$2);
  11288. properties[value] = '';
  11289. commandStack.execute('element.updateModdleProperties', {
  11290. element,
  11291. moddleElement: field,
  11292. properties
  11293. });
  11294. };
  11295. const getOptions = element => {
  11296. const options = [{
  11297. value: 'string',
  11298. label: translate('String')
  11299. }, {
  11300. value: 'expression',
  11301. label: translate('Expression')
  11302. }];
  11303. return options;
  11304. };
  11305. return SelectEntry({
  11306. element: field,
  11307. id: idPrefix + '-type',
  11308. label: translate('Type'),
  11309. getValue,
  11310. setValue,
  11311. getOptions
  11312. });
  11313. }
  11314. function ValueProperty(props) {
  11315. const {
  11316. idPrefix,
  11317. element,
  11318. field
  11319. } = props;
  11320. const commandStack = useService('commandStack');
  11321. const translate = useService('translate');
  11322. const debounce = useService('debounceInput');
  11323. const setValue = value => {
  11324. // (1) determine which type we have set
  11325. const type = determineType(field);
  11326. // (2) set property accordingly
  11327. const properties = Object.assign({}, DEFAULT_PROPS$2);
  11328. properties[type] = value || '';
  11329. // (3) execute the update command
  11330. commandStack.execute('element.updateModdleProperties', {
  11331. element,
  11332. moddleElement: field,
  11333. properties
  11334. });
  11335. };
  11336. const getValue = field => {
  11337. return field.string || field.stringValue || field.expression;
  11338. };
  11339. return TextFieldEntry({
  11340. element: field,
  11341. id: idPrefix + '-value',
  11342. label: translate('Value'),
  11343. getValue,
  11344. setValue,
  11345. debounce
  11346. });
  11347. }
  11348. // helper ///////////////////
  11349. /**
  11350. * determineType - get the type of a fieldInjection based on the attributes
  11351. * set on it
  11352. *
  11353. * @param {ModdleElement} field
  11354. * @return {('string'|'expression')}
  11355. */
  11356. function determineType(field) {
  11357. // string is the default type
  11358. return 'string' in field && 'string' || 'expression' in field && 'expression' || 'stringValue' in field && 'string' || 'string';
  11359. }
  11360. function FieldInjectionProps({
  11361. element,
  11362. injector
  11363. }) {
  11364. const businessObject = getServiceTaskLikeBusinessObject(element);
  11365. if (!businessObject) {
  11366. return null;
  11367. }
  11368. const fieldInjections = getExtensionElementsList(businessObject, 'camunda:Field');
  11369. const bpmnFactory = injector.get('bpmnFactory'),
  11370. commandStack = injector.get('commandStack');
  11371. const items = fieldInjections.map((field, index) => {
  11372. const id = element.id + '-fieldInjection-' + index;
  11373. return {
  11374. id,
  11375. label: getFieldLabel(field),
  11376. entries: FieldInjection({
  11377. idPrefix: id,
  11378. element,
  11379. field
  11380. }),
  11381. autoFocusEntry: id + '-name',
  11382. remove: removeFactory$5({
  11383. commandStack,
  11384. element,
  11385. field
  11386. })
  11387. };
  11388. });
  11389. return {
  11390. items,
  11391. add: addFactory$4({
  11392. bpmnFactory,
  11393. commandStack,
  11394. element
  11395. })
  11396. };
  11397. }
  11398. function removeFactory$5({
  11399. commandStack,
  11400. element,
  11401. field
  11402. }) {
  11403. return function (event) {
  11404. event.stopPropagation();
  11405. const businessObject = getServiceTaskLikeBusinessObject(element);
  11406. removeExtensionElements(element, businessObject, field, commandStack);
  11407. };
  11408. }
  11409. function addFactory$4({
  11410. bpmnFactory,
  11411. commandStack,
  11412. element
  11413. }) {
  11414. return function (event) {
  11415. event.stopPropagation();
  11416. const businessObject = getServiceTaskLikeBusinessObject(element);
  11417. const fieldInjection = createElement('camunda:Field', {
  11418. name: undefined,
  11419. string: '',
  11420. // string is the default type
  11421. stringValue: undefined
  11422. }, null, bpmnFactory);
  11423. addExtensionElements(element, businessObject, fieldInjection, bpmnFactory, commandStack);
  11424. };
  11425. }
  11426. // helper ///////////////
  11427. function getFieldLabel(field) {
  11428. return field.name || '<empty>';
  11429. }
  11430. function FormFieldConstraint(props) {
  11431. const {
  11432. constraint,
  11433. element,
  11434. idPrefix
  11435. } = props;
  11436. const entries = [{
  11437. id: idPrefix + '-name',
  11438. component: Name$1,
  11439. constraint,
  11440. idPrefix,
  11441. element
  11442. }, {
  11443. id: idPrefix + '-config',
  11444. component: Config,
  11445. constraint,
  11446. idPrefix,
  11447. element
  11448. }];
  11449. return entries;
  11450. }
  11451. function Name$1(props) {
  11452. const {
  11453. idPrefix,
  11454. element,
  11455. constraint
  11456. } = props;
  11457. const commandStack = useService('commandStack'),
  11458. translate = useService('translate'),
  11459. debounce = useService('debounceInput');
  11460. const setValue = value => {
  11461. commandStack.execute('element.updateModdleProperties', {
  11462. element,
  11463. moddleElement: constraint,
  11464. properties: {
  11465. name: value
  11466. }
  11467. });
  11468. };
  11469. const getValue = () => {
  11470. return constraint.name;
  11471. };
  11472. return TextFieldEntry({
  11473. element: constraint,
  11474. id: idPrefix + '-name',
  11475. label: translate('Name'),
  11476. getValue,
  11477. setValue,
  11478. debounce
  11479. });
  11480. }
  11481. function Config(props) {
  11482. const {
  11483. idPrefix,
  11484. element,
  11485. constraint
  11486. } = props;
  11487. const commandStack = useService('commandStack'),
  11488. translate = useService('translate'),
  11489. debounce = useService('debounceInput');
  11490. const setValue = value => {
  11491. commandStack.execute('element.updateModdleProperties', {
  11492. element,
  11493. moddleElement: constraint,
  11494. properties: {
  11495. config: value
  11496. }
  11497. });
  11498. };
  11499. const getValue = () => {
  11500. return constraint.config;
  11501. };
  11502. return TextFieldEntry({
  11503. element: constraint,
  11504. id: idPrefix + '-config',
  11505. label: translate('Config'),
  11506. getValue,
  11507. setValue,
  11508. debounce
  11509. });
  11510. }
  11511. function FormFieldProperty(props) {
  11512. const {
  11513. element,
  11514. idPrefix,
  11515. property
  11516. } = props;
  11517. const entries = [{
  11518. id: idPrefix + '-id',
  11519. component: Id$2,
  11520. idPrefix,
  11521. property,
  11522. element
  11523. }, {
  11524. id: idPrefix + '-value',
  11525. component: Value$1,
  11526. idPrefix,
  11527. property,
  11528. element
  11529. }];
  11530. return entries;
  11531. }
  11532. function Id$2(props) {
  11533. const {
  11534. idPrefix,
  11535. element,
  11536. property
  11537. } = props;
  11538. const commandStack = useService('commandStack'),
  11539. translate = useService('translate'),
  11540. debounce = useService('debounceInput');
  11541. const setValue = value => {
  11542. commandStack.execute('element.updateModdleProperties', {
  11543. element,
  11544. moddleElement: property,
  11545. properties: {
  11546. id: value
  11547. }
  11548. });
  11549. };
  11550. const getValue = () => {
  11551. return property.id;
  11552. };
  11553. return TextFieldEntry({
  11554. element: property,
  11555. id: idPrefix + '-id',
  11556. label: translate('ID'),
  11557. getValue,
  11558. setValue,
  11559. debounce
  11560. });
  11561. }
  11562. function Value$1(props) {
  11563. const {
  11564. idPrefix,
  11565. element,
  11566. property
  11567. } = props;
  11568. const commandStack = useService('commandStack'),
  11569. translate = useService('translate'),
  11570. debounce = useService('debounceInput');
  11571. const setValue = value => {
  11572. commandStack.execute('element.updateModdleProperties', {
  11573. element,
  11574. moddleElement: property,
  11575. properties: {
  11576. value
  11577. }
  11578. });
  11579. };
  11580. const getValue = () => {
  11581. return property.value;
  11582. };
  11583. return TextFieldEntry({
  11584. element: property,
  11585. id: idPrefix + '-value',
  11586. label: translate('Value'),
  11587. getValue,
  11588. setValue,
  11589. debounce
  11590. });
  11591. }
  11592. function FormFieldValue(props) {
  11593. const {
  11594. element,
  11595. idPrefix,
  11596. value
  11597. } = props;
  11598. const entries = [{
  11599. id: idPrefix + '-id',
  11600. component: Id$1,
  11601. idPrefix,
  11602. value,
  11603. element
  11604. }, {
  11605. id: idPrefix + '-name',
  11606. component: Name,
  11607. idPrefix,
  11608. value,
  11609. element
  11610. }];
  11611. return entries;
  11612. }
  11613. function Id$1(props) {
  11614. const {
  11615. idPrefix,
  11616. element,
  11617. value
  11618. } = props;
  11619. const commandStack = useService('commandStack'),
  11620. translate = useService('translate'),
  11621. debounce = useService('debounceInput');
  11622. const setValue = val => {
  11623. commandStack.execute('element.updateModdleProperties', {
  11624. element,
  11625. moddleElement: value,
  11626. properties: {
  11627. id: val
  11628. }
  11629. });
  11630. };
  11631. const getValue = () => {
  11632. return value.id;
  11633. };
  11634. return TextFieldEntry({
  11635. element: value,
  11636. id: idPrefix + '-id',
  11637. label: translate('ID'),
  11638. getValue,
  11639. setValue,
  11640. debounce
  11641. });
  11642. }
  11643. function Name(props) {
  11644. const {
  11645. idPrefix,
  11646. element,
  11647. value
  11648. } = props;
  11649. const commandStack = useService('commandStack'),
  11650. translate = useService('translate'),
  11651. debounce = useService('debounceInput');
  11652. const setValue = val => {
  11653. commandStack.execute('element.updateModdleProperties', {
  11654. element,
  11655. moddleElement: value,
  11656. properties: {
  11657. name: val
  11658. }
  11659. });
  11660. };
  11661. const getValue = () => {
  11662. return value.name;
  11663. };
  11664. return TextFieldEntry({
  11665. element: value,
  11666. id: idPrefix + '-name',
  11667. label: translate('Name'),
  11668. getValue,
  11669. setValue,
  11670. debounce
  11671. });
  11672. }
  11673. const CUSTOM_TYPE_VALUE = '',
  11674. DEFINED_TYPE_VALUES = ['boolean', 'date', 'enum', 'long', 'string', undefined];
  11675. function FormField(props) {
  11676. const {
  11677. idPrefix,
  11678. formField
  11679. } = props;
  11680. const entries = [{
  11681. id: idPrefix + '-formFieldID',
  11682. component: Id,
  11683. idPrefix,
  11684. formField
  11685. }, {
  11686. id: idPrefix + '-formFieldLabel',
  11687. component: Label,
  11688. idPrefix,
  11689. formField
  11690. }, {
  11691. id: idPrefix + '-formFieldType',
  11692. component: Type$1,
  11693. idPrefix,
  11694. formField
  11695. }];
  11696. if (!DEFINED_TYPE_VALUES.includes(formField.get('type'))) {
  11697. entries.push({
  11698. id: idPrefix + '-formFieldCustomType',
  11699. component: CustomType,
  11700. idPrefix,
  11701. formField
  11702. });
  11703. }
  11704. entries.push({
  11705. id: idPrefix + '-formFieldDefaultValue',
  11706. component: DefaultValue,
  11707. idPrefix,
  11708. formField
  11709. });
  11710. if (formField.get('type') === 'enum') {
  11711. entries.push({
  11712. id: idPrefix + '-formFieldValues',
  11713. component: ValueList,
  11714. formField,
  11715. idPrefix
  11716. });
  11717. }
  11718. entries.push({
  11719. id: idPrefix + '-formFieldConstraints',
  11720. component: ConstraintList,
  11721. formField,
  11722. idPrefix
  11723. }, {
  11724. id: idPrefix + '-formFieldProperties',
  11725. component: PropertiesList,
  11726. formField,
  11727. idPrefix
  11728. });
  11729. return entries;
  11730. }
  11731. function Id(props) {
  11732. const {
  11733. idPrefix,
  11734. element,
  11735. formField
  11736. } = props;
  11737. const commandStack = useService('commandStack');
  11738. const translate = useService('translate');
  11739. const debounce = useService('debounceInput');
  11740. const setValue = value => {
  11741. commandStack.execute('element.updateModdleProperties', {
  11742. element,
  11743. moddleElement: formField,
  11744. properties: {
  11745. id: value
  11746. }
  11747. });
  11748. };
  11749. const getValue = () => {
  11750. return formField.get('id');
  11751. };
  11752. return TextFieldEntry({
  11753. element: formField,
  11754. id: idPrefix + '-formFieldID',
  11755. label: translate('ID'),
  11756. description: translate('Refers to the process variable name'),
  11757. getValue,
  11758. setValue,
  11759. debounce
  11760. });
  11761. }
  11762. function Label(props) {
  11763. const {
  11764. idPrefix,
  11765. element,
  11766. formField
  11767. } = props;
  11768. const commandStack = useService('commandStack');
  11769. const translate = useService('translate');
  11770. const debounce = useService('debounceInput');
  11771. const setValue = value => {
  11772. commandStack.execute('element.updateModdleProperties', {
  11773. element,
  11774. moddleElement: formField,
  11775. properties: {
  11776. label: value
  11777. }
  11778. });
  11779. };
  11780. const getValue = () => {
  11781. return formField.get('label');
  11782. };
  11783. return TextFieldEntry({
  11784. element: formField,
  11785. id: idPrefix + '-formFieldLabel',
  11786. label: translate('Label'),
  11787. getValue,
  11788. setValue,
  11789. debounce
  11790. });
  11791. }
  11792. function Type$1(props) {
  11793. const {
  11794. idPrefix,
  11795. element,
  11796. formField
  11797. } = props;
  11798. const commandStack = useService('commandStack');
  11799. const translate = useService('translate');
  11800. const setValue = value => {
  11801. commandStack.execute('element.updateModdleProperties', {
  11802. element,
  11803. moddleElement: formField,
  11804. properties: {
  11805. type: value
  11806. }
  11807. });
  11808. };
  11809. const getValue = () => {
  11810. const type = formField.get('type');
  11811. return DEFINED_TYPE_VALUES.includes(type) ? type : CUSTOM_TYPE_VALUE;
  11812. };
  11813. const getOptions = () => {
  11814. const options = [{
  11815. label: translate('boolean'),
  11816. value: 'boolean'
  11817. }, {
  11818. label: translate('date'),
  11819. value: 'date'
  11820. }, {
  11821. label: translate('enum'),
  11822. value: 'enum'
  11823. }, {
  11824. label: translate('long'),
  11825. value: 'long'
  11826. }, {
  11827. label: translate('string'),
  11828. value: 'string'
  11829. }, {
  11830. label: translate('<custom type>'),
  11831. value: CUSTOM_TYPE_VALUE
  11832. }];
  11833. // for the initial state only, we want to show an empty state
  11834. if (formField.get('type') === undefined) {
  11835. options.unshift({
  11836. label: translate('<none>'),
  11837. value: ''
  11838. });
  11839. }
  11840. return options;
  11841. };
  11842. return SelectEntry({
  11843. element: formField,
  11844. id: idPrefix + '-formFieldType',
  11845. label: translate('Type'),
  11846. getValue,
  11847. setValue,
  11848. getOptions
  11849. });
  11850. }
  11851. function CustomType(props) {
  11852. const {
  11853. idPrefix,
  11854. element,
  11855. formField
  11856. } = props;
  11857. const commandStack = useService('commandStack');
  11858. const translate = useService('translate');
  11859. const debounce = useService('debounceInput');
  11860. const setValue = value => {
  11861. const type = value || '';
  11862. commandStack.execute('element.updateModdleProperties', {
  11863. element,
  11864. moddleElement: formField,
  11865. properties: {
  11866. type
  11867. }
  11868. });
  11869. };
  11870. const getValue = () => {
  11871. return formField.get('type');
  11872. };
  11873. return TextFieldEntry({
  11874. element: formField,
  11875. id: idPrefix + '-formFieldCustomType',
  11876. label: translate('Custom type'),
  11877. getValue,
  11878. setValue,
  11879. debounce
  11880. });
  11881. }
  11882. function DefaultValue(props) {
  11883. const {
  11884. idPrefix,
  11885. element,
  11886. formField
  11887. } = props;
  11888. const commandStack = useService('commandStack');
  11889. const translate = useService('translate');
  11890. const debounce = useService('debounceInput');
  11891. const setValue = value => {
  11892. commandStack.execute('element.updateModdleProperties', {
  11893. element,
  11894. moddleElement: formField,
  11895. properties: {
  11896. defaultValue: value
  11897. }
  11898. });
  11899. };
  11900. const getValue = () => {
  11901. return formField.get('defaultValue');
  11902. };
  11903. return TextFieldEntry({
  11904. element: formField,
  11905. id: idPrefix + '-formFieldDefaultValue',
  11906. label: translate('Default value'),
  11907. getValue,
  11908. setValue,
  11909. debounce
  11910. });
  11911. }
  11912. function Value(props) {
  11913. const {
  11914. element,
  11915. id: idPrefix,
  11916. index,
  11917. item: value,
  11918. open
  11919. } = props;
  11920. const translate = useService('translate');
  11921. const id = `${idPrefix}-value-${index}`;
  11922. return jsx(CollapsibleEntry, {
  11923. id: id,
  11924. element: element,
  11925. entries: FormFieldValue({
  11926. idPrefix: id,
  11927. element,
  11928. value
  11929. }),
  11930. label: value.get('id') || translate('<empty>'),
  11931. open: open
  11932. });
  11933. }
  11934. function ValueList(props) {
  11935. const {
  11936. element,
  11937. formField,
  11938. idPrefix
  11939. } = props;
  11940. const id = `${idPrefix}-formFieldValues`;
  11941. const bpmnFactory = useService('bpmnFactory');
  11942. const commandStack = useService('commandStack');
  11943. const translate = useService('translate');
  11944. const values = formField.get('values') || [];
  11945. function addValue() {
  11946. const value = createElement('camunda:Value', {
  11947. id: undefined,
  11948. name: undefined
  11949. }, formField, bpmnFactory);
  11950. commandStack.execute('element.updateModdleProperties', {
  11951. element: element,
  11952. moddleElement: formField,
  11953. properties: {
  11954. values: [...formField.get('values'), value]
  11955. }
  11956. });
  11957. }
  11958. function removeValue(value) {
  11959. commandStack.execute('element.updateModdleProperties', {
  11960. element: element,
  11961. moddleElement: formField,
  11962. properties: {
  11963. values: without(formField.get('values'), value)
  11964. }
  11965. });
  11966. }
  11967. return jsx(ListEntry, {
  11968. element: element,
  11969. autoFocusEntry: `[data-entry-id="${id}-value-${values.length - 1}"] input`,
  11970. id: id,
  11971. label: translate('Values'),
  11972. items: values,
  11973. component: Value,
  11974. onAdd: addValue,
  11975. onRemove: removeValue
  11976. });
  11977. }
  11978. function Constraint(props) {
  11979. const {
  11980. element,
  11981. id: idPrefix,
  11982. index,
  11983. item: constraint,
  11984. open
  11985. } = props;
  11986. const translate = useService('translate');
  11987. const id = `${idPrefix}-constraint-${index}`;
  11988. return jsx(CollapsibleEntry, {
  11989. id: id,
  11990. element: element,
  11991. entries: FormFieldConstraint({
  11992. constraint,
  11993. element,
  11994. idPrefix: id
  11995. }),
  11996. label: constraint.get('name') || translate('<empty>'),
  11997. open: open
  11998. });
  11999. }
  12000. function ConstraintList(props) {
  12001. const {
  12002. element,
  12003. formField,
  12004. idPrefix
  12005. } = props;
  12006. const id = `${idPrefix}-formFieldConstraints`;
  12007. const bpmnFactory = useService('bpmnFactory');
  12008. const commandStack = useService('commandStack');
  12009. const translate = useService('translate');
  12010. const businessObject = getBusinessObject(element);
  12011. let validation = formField.get('validation');
  12012. const constraints = validation && validation.get('constraints') || [];
  12013. function addConstraint() {
  12014. const commands = [];
  12015. // (1) ensure validation
  12016. if (!validation) {
  12017. validation = createElement('camunda:Validation', {}, businessObject, bpmnFactory);
  12018. commands.push({
  12019. cmd: 'element.updateModdleProperties',
  12020. context: {
  12021. element,
  12022. moddleElement: formField,
  12023. properties: {
  12024. validation
  12025. }
  12026. }
  12027. });
  12028. }
  12029. // (2) add constraint
  12030. const constraint = createElement('camunda:Constraint', {
  12031. name: undefined,
  12032. config: undefined
  12033. }, validation, bpmnFactory);
  12034. commands.push({
  12035. cmd: 'element.updateModdleProperties',
  12036. context: {
  12037. element,
  12038. moddleElement: validation,
  12039. properties: {
  12040. constraints: [...validation.get('constraints'), constraint]
  12041. }
  12042. }
  12043. });
  12044. // (3) commit updates
  12045. commandStack.execute('properties-panel.multi-command-executor', commands);
  12046. }
  12047. function removeConstraint(constraint) {
  12048. commandStack.execute('element.updateModdleProperties', {
  12049. element,
  12050. moddleElement: validation,
  12051. properties: {
  12052. constraints: without(validation.get('constraints'), constraint)
  12053. }
  12054. });
  12055. }
  12056. return jsx(ListEntry, {
  12057. element: element,
  12058. autoFocusEntry: `[data-entry-id="${id}-constraint-${constraints.length - 1}"] input`,
  12059. id: id,
  12060. label: translate('Constraints'),
  12061. items: constraints,
  12062. component: Constraint,
  12063. onAdd: addConstraint,
  12064. onRemove: removeConstraint
  12065. });
  12066. }
  12067. function Property(props) {
  12068. const {
  12069. element,
  12070. id: idPrefix,
  12071. index,
  12072. item: property,
  12073. open
  12074. } = props;
  12075. const translate = useService('translate');
  12076. const id = `${idPrefix}-property-${index}`;
  12077. return jsx(CollapsibleEntry, {
  12078. id: id,
  12079. element: element,
  12080. entries: FormFieldProperty({
  12081. element,
  12082. idPrefix: id,
  12083. property
  12084. }),
  12085. label: property.get('id') || translate('<empty>'),
  12086. open: open
  12087. });
  12088. }
  12089. function PropertiesList(props) {
  12090. const {
  12091. element,
  12092. formField,
  12093. idPrefix
  12094. } = props;
  12095. const id = `${idPrefix}-formFieldProperties`;
  12096. const bpmnFactory = useService('bpmnFactory');
  12097. const commandStack = useService('commandStack');
  12098. const translate = useService('translate');
  12099. const businessObject = getBusinessObject(element);
  12100. let properties = formField.get('properties');
  12101. const propertyEntries = properties && properties.get('values') || [];
  12102. function addProperty() {
  12103. const commands = [];
  12104. // (1) ensure properties
  12105. if (!properties) {
  12106. properties = createElement('camunda:Properties', {}, businessObject, bpmnFactory);
  12107. commands.push({
  12108. cmd: 'element.updateModdleProperties',
  12109. context: {
  12110. element,
  12111. moddleElement: formField,
  12112. properties: {
  12113. properties
  12114. }
  12115. }
  12116. });
  12117. }
  12118. // (2) add property
  12119. const property = createElement('camunda:Property', {
  12120. id: undefined,
  12121. value: undefined
  12122. }, properties, bpmnFactory);
  12123. commands.push({
  12124. cmd: 'element.updateModdleProperties',
  12125. context: {
  12126. element,
  12127. moddleElement: properties,
  12128. properties: {
  12129. values: [...properties.get('values'), property]
  12130. }
  12131. }
  12132. });
  12133. // (3) commit updates
  12134. commandStack.execute('properties-panel.multi-command-executor', commands);
  12135. }
  12136. function removeProperty(property) {
  12137. commandStack.execute('element.updateModdleProperties', {
  12138. element,
  12139. moddleElement: properties,
  12140. properties: {
  12141. values: without(properties.get('values'), property)
  12142. }
  12143. });
  12144. }
  12145. return jsx(ListEntry, {
  12146. element: element,
  12147. autoFocusEntry: true,
  12148. id: id,
  12149. compareFn: createAlphanumericCompare('id'),
  12150. label: translate('Properties'),
  12151. items: propertyEntries,
  12152. component: Property,
  12153. onAdd: addProperty,
  12154. onRemove: removeProperty
  12155. });
  12156. }
  12157. // helper //////////////////
  12158. function createAlphanumericCompare(field) {
  12159. return function (entry, anotherEntry) {
  12160. const [key = '', anotherKey = ''] = [entry[field], anotherEntry[field]];
  12161. return key === anotherKey ? 0 : key > anotherKey ? 1 : -1;
  12162. };
  12163. }
  12164. function FormDataProps({
  12165. element,
  12166. injector
  12167. }) {
  12168. if (!isFormDataSupported(element)) {
  12169. return;
  12170. }
  12171. const formFields = getFormFieldsList(element) || [];
  12172. const bpmnFactory = injector.get('bpmnFactory'),
  12173. commandStack = injector.get('commandStack');
  12174. const items = formFields.map((formField, index) => {
  12175. const id = element.id + '-formField-' + index;
  12176. return {
  12177. id,
  12178. label: formField.get('id') || '',
  12179. entries: FormField({
  12180. idPrefix: id,
  12181. element,
  12182. formField
  12183. }),
  12184. autoFocusEntry: id + '-formFieldID',
  12185. remove: removeFactory$4({
  12186. commandStack,
  12187. element,
  12188. formField
  12189. })
  12190. };
  12191. });
  12192. return {
  12193. items,
  12194. add: addFactory$3({
  12195. bpmnFactory,
  12196. commandStack,
  12197. element
  12198. }),
  12199. shouldSort: false
  12200. };
  12201. }
  12202. function addFactory$3({
  12203. bpmnFactory,
  12204. commandStack,
  12205. element
  12206. }) {
  12207. return function (event) {
  12208. event.stopPropagation();
  12209. const commands = [];
  12210. // (1) get camunda:FormData
  12211. const formData = getFormData$1(element);
  12212. // (2) create camunda:FormField
  12213. const formField = createElement('camunda:FormField', {}, formData, bpmnFactory);
  12214. // (3) add formField to list
  12215. commands.push({
  12216. cmd: 'element.updateModdleProperties',
  12217. context: {
  12218. element,
  12219. moddleElement: formData,
  12220. properties: {
  12221. fields: [...formData.get('fields'), formField]
  12222. }
  12223. }
  12224. });
  12225. // (4) commit all updates
  12226. commandStack.execute('properties-panel.multi-command-executor', commands);
  12227. };
  12228. }
  12229. function removeFactory$4({
  12230. commandStack,
  12231. element,
  12232. formField
  12233. }) {
  12234. return function (event) {
  12235. event.stopPropagation();
  12236. const formData = getFormData$1(element),
  12237. formFields = getFormFieldsList(element);
  12238. if (!formFields || !formFields.length) {
  12239. return;
  12240. }
  12241. const fields = without(formData.get('fields'), formField);
  12242. // update formData
  12243. commandStack.execute('element.updateModdleProperties', {
  12244. element,
  12245. moddleElement: formData,
  12246. properties: {
  12247. fields
  12248. }
  12249. });
  12250. };
  12251. }
  12252. // helper ///////////////////////////////
  12253. function isFormDataSupported(element) {
  12254. const formData = getFormData$1(element);
  12255. return (is(element, 'bpmn:StartEvent') && !is(element.parent, 'bpmn:SubProcess') || is(element, 'bpmn:UserTask')) && formData;
  12256. }
  12257. function getFormData$1(element) {
  12258. const bo = getBusinessObject(element);
  12259. return getExtensionElementsList(bo, 'camunda:FormData')[0];
  12260. }
  12261. function getFormFieldsList(element) {
  12262. const businessObject = getBusinessObject(element);
  12263. const formData = getFormData$1(businessObject);
  12264. return formData && formData.fields;
  12265. }
  12266. const FORM_KEY_PROPS = {
  12267. 'camunda:formRef': undefined,
  12268. 'camunda:formRefBinding': undefined,
  12269. 'camunda:formRefVersion': undefined
  12270. };
  12271. const FORM_REF_PROPS = {
  12272. 'camunda:formKey': undefined
  12273. };
  12274. function FormTypeProps(props) {
  12275. return [{
  12276. id: 'formType',
  12277. component: FormType,
  12278. isEdited: isSelectEntryEdited
  12279. }];
  12280. }
  12281. function FormType(props) {
  12282. const {
  12283. element
  12284. } = props;
  12285. const translate = useService('translate');
  12286. const bpmnFactory = useService('bpmnFactory');
  12287. const businessObject = getBusinessObject(element);
  12288. const commandStack = useService('commandStack');
  12289. let extensionElements = businessObject.get('extensionElements');
  12290. const getValue = () => {
  12291. if (isDefined(businessObject.get('camunda:formKey'))) {
  12292. return 'formKey';
  12293. } else if (isDefined(businessObject.get('camunda:formRef'))) {
  12294. return 'formRef';
  12295. } else if (getFormData(element)) {
  12296. return 'formData';
  12297. }
  12298. return '';
  12299. };
  12300. const setValue = value => {
  12301. const commands = removePropertiesCommands(element);
  12302. if (value === 'formData') {
  12303. // (1) ensure extension elements
  12304. if (!extensionElements) {
  12305. extensionElements = createElement('bpmn:ExtensionElements', {
  12306. values: []
  12307. }, businessObject, bpmnFactory);
  12308. commands.push({
  12309. cmd: 'element.updateModdleProperties',
  12310. context: {
  12311. element,
  12312. moddleElement: businessObject,
  12313. properties: {
  12314. extensionElements
  12315. }
  12316. }
  12317. });
  12318. }
  12319. // (2) create camunda:FormData
  12320. const parent = extensionElements;
  12321. const formData = createElement('camunda:FormData', {
  12322. fields: []
  12323. }, parent, bpmnFactory);
  12324. commands.push({
  12325. cmd: 'element.updateModdleProperties',
  12326. context: {
  12327. element,
  12328. moddleElement: extensionElements,
  12329. properties: {
  12330. values: [...extensionElements.get('values'), formData]
  12331. }
  12332. }
  12333. });
  12334. } else if (value === 'formKey') {
  12335. commands.push({
  12336. cmd: 'element.updateModdleProperties',
  12337. context: {
  12338. element,
  12339. moddleElement: businessObject,
  12340. properties: {
  12341. 'camunda:formKey': ''
  12342. }
  12343. }
  12344. });
  12345. } else if (value === 'formRef') {
  12346. commands.push({
  12347. cmd: 'element.updateModdleProperties',
  12348. context: {
  12349. element,
  12350. moddleElement: businessObject,
  12351. properties: {
  12352. 'camunda:formRef': ''
  12353. }
  12354. }
  12355. });
  12356. }
  12357. commandStack.execute('properties-panel.multi-command-executor', commands);
  12358. };
  12359. const getOptions = () => {
  12360. return [{
  12361. value: '',
  12362. label: translate('<none>')
  12363. }, {
  12364. value: 'formRef',
  12365. label: translate('Camunda Forms')
  12366. }, {
  12367. value: 'formKey',
  12368. label: translate('Embedded or External Task Forms')
  12369. }, {
  12370. value: 'formData',
  12371. label: translate('Generated Task Forms')
  12372. }];
  12373. };
  12374. return SelectEntry({
  12375. element,
  12376. id: 'formType',
  12377. label: translate('Type'),
  12378. getValue,
  12379. setValue,
  12380. getOptions
  12381. });
  12382. }
  12383. function getFormData(element) {
  12384. const bo = getBusinessObject(element);
  12385. return getExtensionElementsList(bo, 'camunda:FormData')[0];
  12386. }
  12387. function removePropertiesCommands(element, commandStack) {
  12388. const businessObject = getBusinessObject(element);
  12389. const extensionElements = businessObject.get('extensionElements');
  12390. const commands = [];
  12391. // (1) reset formKey and formRef
  12392. commands.push({
  12393. cmd: 'element.updateModdleProperties',
  12394. context: {
  12395. element,
  12396. moddleElement: businessObject,
  12397. properties: {
  12398. ...FORM_KEY_PROPS,
  12399. ...FORM_REF_PROPS
  12400. }
  12401. }
  12402. });
  12403. // (2) remove formData if defined
  12404. if (extensionElements && getFormData(element)) {
  12405. commands.push({
  12406. cmd: 'element.updateModdleProperties',
  12407. context: {
  12408. element,
  12409. moddleElement: extensionElements,
  12410. properties: {
  12411. values: without(extensionElements.get('values'), getFormData(element))
  12412. }
  12413. }
  12414. });
  12415. }
  12416. return commands;
  12417. }
  12418. function getFormRefBinding(element) {
  12419. const businessObject = getBusinessObject(element);
  12420. return businessObject.get('camunda:formRefBinding') || 'latest';
  12421. }
  12422. function getFormType(element) {
  12423. const businessObject = getBusinessObject(element);
  12424. if (isDefined(businessObject.get('camunda:formKey'))) {
  12425. return 'formKey';
  12426. } else if (isDefined(businessObject.get('camunda:formRef'))) {
  12427. return 'formRef';
  12428. }
  12429. }
  12430. function isFormSupported(element) {
  12431. return is(element, 'bpmn:StartEvent') && !is(element.parent, 'bpmn:SubProcess') || is(element, 'bpmn:UserTask');
  12432. }
  12433. function FormProps(props) {
  12434. const {
  12435. element
  12436. } = props;
  12437. if (!isFormSupported(element)) {
  12438. return [];
  12439. }
  12440. const formType = getFormType(element),
  12441. bindingType = getFormRefBinding(element);
  12442. // (1) display form type select
  12443. const entries = [...FormTypeProps()];
  12444. // (2) display form properties based on type
  12445. if (formType === 'formKey') {
  12446. entries.push({
  12447. id: 'formKey',
  12448. component: FormKey,
  12449. isEdited: isTextFieldEntryEdited
  12450. });
  12451. } else if (formType === 'formRef') {
  12452. entries.push({
  12453. id: 'formRef',
  12454. component: FormRef,
  12455. isEdited: isTextFieldEntryEdited
  12456. }, {
  12457. id: 'formRefBinding',
  12458. component: Binding$1,
  12459. isEdited: isSelectEntryEdited
  12460. });
  12461. if (bindingType === 'version') {
  12462. entries.push({
  12463. id: 'formRefVersion',
  12464. component: Version$1,
  12465. isEdited: isTextFieldEntryEdited
  12466. });
  12467. }
  12468. }
  12469. return entries;
  12470. }
  12471. function FormKey(props) {
  12472. const {
  12473. element
  12474. } = props;
  12475. const debounce = useService('debounceInput');
  12476. const modeling = useService('modeling');
  12477. const translate = useService('translate');
  12478. const businessObject = getBusinessObject(element);
  12479. const getValue = () => {
  12480. return businessObject.get('camunda:formKey');
  12481. };
  12482. const setValue = value => {
  12483. modeling.updateProperties(element, {
  12484. 'camunda:formKey': value
  12485. });
  12486. };
  12487. return TextFieldEntry({
  12488. element,
  12489. id: 'formKey',
  12490. label: translate('Form key'),
  12491. getValue,
  12492. setValue,
  12493. debounce
  12494. });
  12495. }
  12496. function FormRef(props) {
  12497. const {
  12498. element
  12499. } = props;
  12500. const debounce = useService('debounceInput');
  12501. const modeling = useService('modeling');
  12502. const translate = useService('translate');
  12503. const businessObject = getBusinessObject(element);
  12504. const getValue = () => {
  12505. return businessObject.get('camunda:formRef');
  12506. };
  12507. const setValue = value => {
  12508. modeling.updateProperties(element, {
  12509. 'camunda:formRef': value
  12510. });
  12511. };
  12512. return TextFieldEntry({
  12513. element,
  12514. id: 'formRef',
  12515. label: translate('Form reference'),
  12516. getValue,
  12517. setValue,
  12518. debounce
  12519. });
  12520. }
  12521. function Binding$1(props) {
  12522. const {
  12523. element
  12524. } = props;
  12525. const modeling = useService('modeling');
  12526. const translate = useService('translate');
  12527. const getValue = () => {
  12528. return getFormRefBinding(element);
  12529. };
  12530. const setValue = value => {
  12531. modeling.updateProperties(element, {
  12532. 'camunda:formRefBinding': value
  12533. });
  12534. };
  12535. // Note: default is "latest",
  12536. // cf. https://docs.camunda.org/manual/develop/reference/bpmn20/custom-extensions/extension-attributes/#formrefbinding
  12537. const getOptions = () => {
  12538. const options = [{
  12539. value: 'deployment',
  12540. label: translate('deployment')
  12541. }, {
  12542. value: 'latest',
  12543. label: translate('latest')
  12544. }, {
  12545. value: 'version',
  12546. label: translate('version')
  12547. }];
  12548. return options;
  12549. };
  12550. return SelectEntry({
  12551. element,
  12552. id: 'formRefBinding',
  12553. label: translate('Binding'),
  12554. getValue,
  12555. setValue,
  12556. getOptions
  12557. });
  12558. }
  12559. function Version$1(props) {
  12560. const {
  12561. element
  12562. } = props;
  12563. const debounce = useService('debounceInput');
  12564. const modeling = useService('modeling');
  12565. const translate = useService('translate');
  12566. const businessObject = getBusinessObject(element);
  12567. const getValue = () => {
  12568. return businessObject.get('camunda:formRefVersion');
  12569. };
  12570. const setValue = value => {
  12571. modeling.updateProperties(element, {
  12572. 'camunda:formRefVersion': value
  12573. });
  12574. };
  12575. return TextFieldEntry({
  12576. element,
  12577. id: 'formRefVersion',
  12578. label: translate('Version'),
  12579. getValue,
  12580. setValue,
  12581. debounce
  12582. });
  12583. }
  12584. function HistoryCleanupProps(props) {
  12585. const {
  12586. element
  12587. } = props;
  12588. const businessObject = getBusinessObject(element);
  12589. if (!is(element, 'bpmn:Process') && !(is(element, 'bpmn:Participant') && businessObject.get('processRef'))) {
  12590. return [];
  12591. }
  12592. return [{
  12593. id: 'historyTimeToLive',
  12594. component: HistoryTimeToLive,
  12595. isEdited: isTextFieldEntryEdited
  12596. }];
  12597. }
  12598. function HistoryTimeToLive(props) {
  12599. const {
  12600. element
  12601. } = props;
  12602. const commandStack = useService('commandStack');
  12603. const translate = useService('translate');
  12604. const debounce = useService('debounceInput');
  12605. const process = getProcess$2(element);
  12606. const getValue = () => {
  12607. return process.get('camunda:historyTimeToLive') || '';
  12608. };
  12609. const setValue = value => {
  12610. commandStack.execute('element.updateModdleProperties', {
  12611. element,
  12612. moddleElement: process,
  12613. properties: {
  12614. 'camunda:historyTimeToLive': value
  12615. }
  12616. });
  12617. };
  12618. return TextFieldEntry({
  12619. element,
  12620. id: 'historyTimeToLive',
  12621. label: translate('Time to live'),
  12622. getValue,
  12623. setValue,
  12624. debounce
  12625. });
  12626. }
  12627. // helper //////////////////
  12628. function getProcess$2(element) {
  12629. return is(element, 'bpmn:Process') ? getBusinessObject(element) : getBusinessObject(element).get('processRef');
  12630. }
  12631. function DmnImplementationProps(props) {
  12632. const {
  12633. element
  12634. } = props;
  12635. const entries = [];
  12636. const implementationType = getImplementationType(element);
  12637. const bindingType = getDecisionRefBinding(element);
  12638. if (implementationType !== 'dmn') {
  12639. return entries;
  12640. }
  12641. // (1) decisionRef
  12642. entries.push({
  12643. id: 'decisionRef',
  12644. component: DecisionRef,
  12645. isEdited: isTextFieldEntryEdited
  12646. });
  12647. // (2) binding
  12648. entries.push({
  12649. id: 'decisionRefBinding',
  12650. component: Binding,
  12651. isEdited: isSelectEntryEdited
  12652. });
  12653. // (3) version
  12654. if (bindingType === 'version') {
  12655. entries.push({
  12656. id: 'decisionRefVersion',
  12657. component: Version,
  12658. isEdited: isTextFieldEntryEdited
  12659. });
  12660. }
  12661. // (4) versionTag
  12662. if (bindingType === 'versionTag') {
  12663. entries.push({
  12664. id: 'decisionRefVersionTag',
  12665. component: VersionTag$1,
  12666. isEdited: isTextFieldEntryEdited
  12667. });
  12668. }
  12669. // (5) tenantId
  12670. entries.push({
  12671. id: 'decisionRefTenantId',
  12672. component: TenantId,
  12673. isEdited: isTextFieldEntryEdited
  12674. });
  12675. // (6) resultVariable
  12676. entries.push({
  12677. id: 'decisionRefResultVariable',
  12678. component: ResultVariable$2,
  12679. isEdited: isTextFieldEntryEdited
  12680. });
  12681. // (7) mapDecisionResult
  12682. if (getResultVariable(element)) {
  12683. entries.push({
  12684. id: 'mapDecisionResult',
  12685. component: MapDecisionResult,
  12686. isEdited: isSelectEntryEdited
  12687. });
  12688. }
  12689. return entries;
  12690. }
  12691. function DecisionRef(props) {
  12692. const {
  12693. element
  12694. } = props;
  12695. const commandStack = useService('commandStack');
  12696. const translate = useService('translate');
  12697. const debounce = useService('debounceInput');
  12698. const businessObject = getBusinessObject(element);
  12699. const getValue = () => {
  12700. return businessObject.get('camunda:decisionRef');
  12701. };
  12702. const setValue = value => {
  12703. commandStack.execute('element.updateModdleProperties', {
  12704. element,
  12705. moddleElement: businessObject,
  12706. properties: {
  12707. 'camunda:decisionRef': value || ''
  12708. }
  12709. });
  12710. };
  12711. return TextFieldEntry({
  12712. element,
  12713. id: 'decisionRef',
  12714. label: translate('Decision reference'),
  12715. getValue,
  12716. setValue,
  12717. debounce
  12718. });
  12719. }
  12720. function Binding(props) {
  12721. const {
  12722. element
  12723. } = props;
  12724. const commandStack = useService('commandStack');
  12725. const translate = useService('translate');
  12726. const getValue = () => {
  12727. return getDecisionRefBinding(element);
  12728. };
  12729. const setValue = value => {
  12730. const businessObject = getBusinessObject(element);
  12731. // reset version properties on binding type change
  12732. const updatedProperties = {
  12733. 'camunda:decisionRefVersion': undefined,
  12734. 'camunda:decisionRefVersionTag': undefined,
  12735. 'camunda:decisionRefBinding': value
  12736. };
  12737. commandStack.execute('element.updateModdleProperties', {
  12738. element,
  12739. moddleElement: businessObject,
  12740. properties: updatedProperties
  12741. });
  12742. };
  12743. // Note: default is "latest",
  12744. // cf. https://docs.camunda.org/manual/latest/reference/bpmn20/custom-extensions/extension-attributes/#decisionrefbinding
  12745. const getOptions = () => {
  12746. const options = [{
  12747. value: 'deployment',
  12748. label: translate('deployment')
  12749. }, {
  12750. value: 'latest',
  12751. label: translate('latest')
  12752. }, {
  12753. value: 'version',
  12754. label: translate('version')
  12755. }, {
  12756. value: 'versionTag',
  12757. label: translate('versionTag')
  12758. }];
  12759. return options;
  12760. };
  12761. return SelectEntry({
  12762. element,
  12763. id: 'decisionRefBinding',
  12764. label: translate('Binding'),
  12765. getValue,
  12766. setValue,
  12767. getOptions
  12768. });
  12769. }
  12770. function Version(props) {
  12771. const {
  12772. element
  12773. } = props;
  12774. const commandStack = useService('commandStack');
  12775. const translate = useService('translate');
  12776. const debounce = useService('debounceInput');
  12777. const businessObject = getBusinessObject(element);
  12778. const getValue = () => {
  12779. return businessObject.get('camunda:decisionRefVersion');
  12780. };
  12781. const setValue = value => {
  12782. commandStack.execute('element.updateModdleProperties', {
  12783. element,
  12784. moddleElement: businessObject,
  12785. properties: {
  12786. 'camunda:decisionRefVersion': value
  12787. }
  12788. });
  12789. };
  12790. return TextFieldEntry({
  12791. element,
  12792. id: 'decisionRefVersion',
  12793. label: translate('Version'),
  12794. getValue,
  12795. setValue,
  12796. debounce
  12797. });
  12798. }
  12799. function VersionTag$1(props) {
  12800. const {
  12801. element
  12802. } = props;
  12803. const commandStack = useService('commandStack');
  12804. const translate = useService('translate');
  12805. const debounce = useService('debounceInput');
  12806. const businessObject = getBusinessObject(element);
  12807. const getValue = () => {
  12808. return businessObject.get('camunda:decisionRefVersionTag');
  12809. };
  12810. const setValue = value => {
  12811. commandStack.execute('element.updateModdleProperties', {
  12812. element,
  12813. moddleElement: businessObject,
  12814. properties: {
  12815. 'camunda:decisionRefVersionTag': value
  12816. }
  12817. });
  12818. };
  12819. return TextFieldEntry({
  12820. element,
  12821. id: 'decisionRefVersionTag',
  12822. label: translate('Version tag'),
  12823. getValue,
  12824. setValue,
  12825. debounce
  12826. });
  12827. }
  12828. function TenantId(props) {
  12829. const {
  12830. element
  12831. } = props;
  12832. const commandStack = useService('commandStack');
  12833. const translate = useService('translate');
  12834. const debounce = useService('debounceInput');
  12835. const businessObject = getBusinessObject(element);
  12836. const getValue = () => {
  12837. return businessObject.get('camunda:decisionRefTenantId');
  12838. };
  12839. const setValue = value => {
  12840. commandStack.execute('element.updateModdleProperties', {
  12841. element,
  12842. moddleElement: businessObject,
  12843. properties: {
  12844. 'camunda:decisionRefTenantId': value
  12845. }
  12846. });
  12847. };
  12848. return TextFieldEntry({
  12849. element,
  12850. id: 'decisionRefTenantId',
  12851. label: translate('Tenant ID'),
  12852. getValue,
  12853. setValue,
  12854. debounce
  12855. });
  12856. }
  12857. function ResultVariable$2(props) {
  12858. const {
  12859. element
  12860. } = props;
  12861. const commandStack = useService('commandStack');
  12862. const translate = useService('translate');
  12863. const debounce = useService('debounceInput');
  12864. const businessObject = getBusinessObject(element);
  12865. const getValue = () => {
  12866. return getResultVariable(businessObject);
  12867. };
  12868. // Note: camunda:mapDecisionResult got cleaned up in modeling behavior
  12869. // cf. https://github.com/camunda/camunda-bpmn-js/blob/main/lib/camunda-platform/features/modeling/behavior/UpdateResultVariableBehavior.js
  12870. const setValue = value => {
  12871. commandStack.execute('element.updateModdleProperties', {
  12872. element,
  12873. moddleElement: businessObject,
  12874. properties: {
  12875. 'camunda:resultVariable': value
  12876. }
  12877. });
  12878. };
  12879. return TextFieldEntry({
  12880. element,
  12881. id: 'decisionRefResultVariable',
  12882. label: translate('Result variable'),
  12883. getValue,
  12884. setValue,
  12885. debounce
  12886. });
  12887. }
  12888. function MapDecisionResult(props) {
  12889. const {
  12890. element
  12891. } = props;
  12892. const commandStack = useService('commandStack');
  12893. const translate = useService('translate');
  12894. const businessObject = getBusinessObject(element);
  12895. const getValue = () => {
  12896. return businessObject.get('camunda:mapDecisionResult') || 'resultList';
  12897. };
  12898. const setValue = value => {
  12899. commandStack.execute('element.updateModdleProperties', {
  12900. element,
  12901. moddleElement: businessObject,
  12902. properties: {
  12903. 'camunda:mapDecisionResult': value
  12904. }
  12905. });
  12906. };
  12907. // Note: default is "resultList",
  12908. // cf. https://docs.camunda.org/manual/latest/reference/bpmn20/custom-extensions/extension-attributes/#mapdecisionresult
  12909. const getOptions = () => {
  12910. const options = [{
  12911. value: 'collectEntries',
  12912. label: translate('collectEntries (List<Object>)')
  12913. }, {
  12914. value: 'resultList',
  12915. label: translate('resultList (List<Map<String, Object>>)')
  12916. }, {
  12917. value: 'singleEntry',
  12918. label: translate('singleEntry (TypedValue)')
  12919. }, {
  12920. value: 'singleResult',
  12921. label: translate('singleResult (Map<String, Object>)')
  12922. }];
  12923. return options;
  12924. };
  12925. return SelectEntry({
  12926. element,
  12927. id: 'mapDecisionResult',
  12928. label: translate('Map decision result'),
  12929. getValue,
  12930. setValue,
  12931. getOptions
  12932. });
  12933. }
  12934. // helper ////////////////////
  12935. function getDecisionRefBinding(element) {
  12936. const businessObject = getBusinessObject(element);
  12937. return businessObject.get('camunda:decisionRefBinding') || 'latest';
  12938. }
  12939. function getResultVariable(element) {
  12940. const businessObject = getBusinessObject(element);
  12941. return businessObject.get('camunda:resultVariable');
  12942. }
  12943. const DELEGATE_PROPS = {
  12944. 'camunda:class': undefined,
  12945. 'camunda:expression': undefined,
  12946. 'camunda:delegateExpression': undefined,
  12947. 'camunda:resultVariable': undefined
  12948. };
  12949. const DMN_CAPABLE_PROPS = {
  12950. 'camunda:decisionRef': undefined,
  12951. 'camunda:decisionRefBinding': 'latest',
  12952. 'camunda:decisionRefVersion': undefined,
  12953. 'camunda:mapDecisionResult': 'resultList',
  12954. 'camunda:decisionRefTenantId': undefined
  12955. };
  12956. const EXTERNAL_CAPABLE_PROPS = {
  12957. 'camunda:type': undefined,
  12958. 'camunda:topic': undefined
  12959. };
  12960. const IMPLEMENTATION_TYPE_NONE_LABEL = '<none>',
  12961. IMPLEMENTATION_TYPE_JAVA_LABEL = 'Java class',
  12962. IMPLEMENTATION_TYPE_EXPRESSION_LABEL = 'Expression',
  12963. IMPLEMENTATION_TYPE_DELEGATE_LABEL = 'Delegate expression',
  12964. IMPLEMENTATION_TYPE_DMN_LABEL = 'DMN',
  12965. IMPLEMENTATION_TYPE_EXTERNAL_LABEL = 'External',
  12966. IMPLEMENTATION_TYPE_CONNECTOR_LABEL = 'Connector';
  12967. function ImplementationTypeProps(props) {
  12968. return [{
  12969. id: 'implementationType',
  12970. component: ImplementationType,
  12971. isEdited: isSelectEntryEdited
  12972. }];
  12973. }
  12974. function ImplementationType(props) {
  12975. const {
  12976. element
  12977. } = props;
  12978. const bpmnFactory = useService('bpmnFactory');
  12979. const commandStack = useService('commandStack');
  12980. const translate = useService('translate');
  12981. const getValue = () => {
  12982. return getImplementationType(element) || '';
  12983. };
  12984. const setValue = value => {
  12985. const oldType = getImplementationType(element);
  12986. const businessObject = getServiceTaskLikeBusinessObject(element);
  12987. const commands = [];
  12988. let updatedProperties = DELEGATE_PROPS;
  12989. let extensionElements = businessObject.get('extensionElements');
  12990. // (1) class, expression, delegateExpression
  12991. if (isDelegateType(value)) {
  12992. updatedProperties = {
  12993. ...updatedProperties,
  12994. [value]: isDelegateType(oldType) ? businessObject.get(`camunda:${oldType}`) : ''
  12995. };
  12996. }
  12997. // (2) dmn
  12998. if (isDmnCapable(businessObject)) {
  12999. updatedProperties = {
  13000. ...updatedProperties,
  13001. ...DMN_CAPABLE_PROPS
  13002. };
  13003. if (value === 'dmn') {
  13004. updatedProperties = {
  13005. ...updatedProperties,
  13006. 'camunda:decisionRef': ''
  13007. };
  13008. }
  13009. }
  13010. // (3) external
  13011. // Note: error event definition elements got cleaned up in modeling behavior
  13012. // cf. https://github.com/camunda/camunda-bpmn-js/blob/main/lib/camunda-platform/features/modeling/behavior/DeleteErrorEventDefinitionBehavior.js
  13013. if (isExternalCapable(businessObject)) {
  13014. updatedProperties = {
  13015. ...updatedProperties,
  13016. ...EXTERNAL_CAPABLE_PROPS
  13017. };
  13018. if (value === 'external') {
  13019. updatedProperties = {
  13020. ...updatedProperties,
  13021. 'camunda:type': 'external',
  13022. 'camunda:topic': ''
  13023. };
  13024. }
  13025. }
  13026. // (4) connector
  13027. if (isServiceTaskLike(businessObject)) {
  13028. // (4.1) remove all connectors on type change
  13029. const connectors = getConnectors$1(businessObject);
  13030. if (connectors.length) {
  13031. commands.push({
  13032. cmd: 'element.updateModdleProperties',
  13033. context: {
  13034. element,
  13035. moddleElement: extensionElements,
  13036. properties: {
  13037. values: without(extensionElements.get('values'), value => connectors.includes(value))
  13038. }
  13039. }
  13040. });
  13041. }
  13042. // (4.2) create connector
  13043. if (value === 'connector') {
  13044. // ensure extension elements
  13045. if (!extensionElements) {
  13046. extensionElements = createElement('bpmn:ExtensionElements', {
  13047. values: []
  13048. }, businessObject, bpmnFactory);
  13049. commands.push(UpdateModdlePropertiesCommand(element, businessObject, {
  13050. extensionElements
  13051. }));
  13052. }
  13053. const connector = createElement('camunda:Connector', {}, extensionElements, bpmnFactory);
  13054. commands.push({
  13055. cmd: 'element.updateModdleProperties',
  13056. context: {
  13057. element,
  13058. moddleElement: extensionElements,
  13059. properties: {
  13060. values: [...extensionElements.get('values'), connector]
  13061. }
  13062. }
  13063. });
  13064. }
  13065. }
  13066. // (5) collect all property updates
  13067. commands.push(UpdateModdlePropertiesCommand(element, businessObject, updatedProperties));
  13068. // (6) commit all updates
  13069. commandStack.execute('properties-panel.multi-command-executor', commands);
  13070. };
  13071. const getOptions = () => {
  13072. const businessObject = getServiceTaskLikeBusinessObject(element);
  13073. const options = [{
  13074. value: '',
  13075. label: translate(IMPLEMENTATION_TYPE_NONE_LABEL)
  13076. }, {
  13077. value: 'class',
  13078. label: translate(IMPLEMENTATION_TYPE_JAVA_LABEL)
  13079. }, {
  13080. value: 'expression',
  13081. label: translate(IMPLEMENTATION_TYPE_EXPRESSION_LABEL)
  13082. }, {
  13083. value: 'delegateExpression',
  13084. label: translate(IMPLEMENTATION_TYPE_DELEGATE_LABEL)
  13085. }];
  13086. if (isDmnCapable(businessObject)) {
  13087. options.push({
  13088. value: 'dmn',
  13089. label: translate(IMPLEMENTATION_TYPE_DMN_LABEL)
  13090. });
  13091. }
  13092. if (isExternalCapable(businessObject)) {
  13093. options.push({
  13094. value: 'external',
  13095. label: translate(IMPLEMENTATION_TYPE_EXTERNAL_LABEL)
  13096. });
  13097. }
  13098. if (isServiceTaskLike(businessObject)) {
  13099. options.push({
  13100. value: 'connector',
  13101. label: translate(IMPLEMENTATION_TYPE_CONNECTOR_LABEL)
  13102. });
  13103. }
  13104. return sortByPriority(options);
  13105. };
  13106. return SelectEntry({
  13107. element,
  13108. id: 'implementationType',
  13109. label: translate('Type'),
  13110. getValue,
  13111. setValue,
  13112. getOptions
  13113. });
  13114. }
  13115. // helper ///////////////////////
  13116. function isDelegateType(type) {
  13117. return ['class', 'expression', 'delegateExpression'].includes(type);
  13118. }
  13119. function getConnectors$1(businessObject) {
  13120. return getExtensionElementsList(businessObject, 'camunda:Connector');
  13121. }
  13122. function UpdateModdlePropertiesCommand(element, businessObject, newProperties) {
  13123. return {
  13124. cmd: 'element.updateModdleProperties',
  13125. context: {
  13126. element,
  13127. moddleElement: businessObject,
  13128. properties: newProperties
  13129. }
  13130. };
  13131. }
  13132. function sortByPriority(options) {
  13133. const priorities = {
  13134. [IMPLEMENTATION_TYPE_NONE_LABEL]: 0,
  13135. [IMPLEMENTATION_TYPE_JAVA_LABEL]: 3,
  13136. [IMPLEMENTATION_TYPE_EXPRESSION_LABEL]: 4,
  13137. [IMPLEMENTATION_TYPE_DELEGATE_LABEL]: 5,
  13138. [IMPLEMENTATION_TYPE_DMN_LABEL]: 1,
  13139. [IMPLEMENTATION_TYPE_EXTERNAL_LABEL]: 2,
  13140. [IMPLEMENTATION_TYPE_CONNECTOR_LABEL]: 6
  13141. };
  13142. return sortBy(options, o => priorities[o.label]);
  13143. }
  13144. function ImplementationProps(props) {
  13145. const {
  13146. element
  13147. } = props;
  13148. if (!getServiceTaskLikeBusinessObject(element)) {
  13149. return [];
  13150. }
  13151. const implementationType = getImplementationType(element);
  13152. // (1) display implementation type select
  13153. const entries = [...ImplementationTypeProps()];
  13154. // (2) display implementation properties based on type
  13155. if (implementationType === 'class') {
  13156. entries.push({
  13157. id: 'javaClass',
  13158. component: JavaClass,
  13159. isEdited: isTextFieldEntryEdited
  13160. });
  13161. } else if (implementationType === 'expression') {
  13162. entries.push({
  13163. id: 'expression',
  13164. component: Expression,
  13165. isEdited: isTextFieldEntryEdited
  13166. }, {
  13167. id: 'expressionResultVariable',
  13168. component: ResultVariable$1,
  13169. isEdited: isTextFieldEntryEdited
  13170. });
  13171. } else if (implementationType === 'delegateExpression') {
  13172. entries.push({
  13173. id: 'delegateExpression',
  13174. component: DelegateExpression,
  13175. isEdited: isTextFieldEntryEdited
  13176. });
  13177. } else if (implementationType === 'dmn') {
  13178. entries.push(...DmnImplementationProps({
  13179. element
  13180. }));
  13181. } else if (implementationType === 'external') {
  13182. entries.push({
  13183. id: 'externalTopic',
  13184. component: Topic,
  13185. isEdited: isTextFieldEntryEdited
  13186. });
  13187. } else if (implementationType === 'connector') {
  13188. entries.push({
  13189. id: 'connectorId',
  13190. component: ConnectorId,
  13191. isEdited: isTextFieldEntryEdited
  13192. });
  13193. }
  13194. return entries;
  13195. }
  13196. function JavaClass(props) {
  13197. const {
  13198. element,
  13199. businessObject = getServiceTaskLikeBusinessObject(element),
  13200. id = 'javaClass'
  13201. } = props;
  13202. const commandStack = useService('commandStack');
  13203. const translate = useService('translate');
  13204. const debounce = useService('debounceInput');
  13205. const getValue = () => {
  13206. return businessObject.get('camunda:class');
  13207. };
  13208. const setValue = value => {
  13209. commandStack.execute('element.updateModdleProperties', {
  13210. element,
  13211. moddleElement: businessObject,
  13212. properties: {
  13213. 'camunda:class': value || ''
  13214. }
  13215. });
  13216. };
  13217. return TextFieldEntry({
  13218. element,
  13219. id,
  13220. label: translate('Java class'),
  13221. getValue,
  13222. setValue,
  13223. debounce
  13224. });
  13225. }
  13226. function Expression(props) {
  13227. const {
  13228. element,
  13229. businessObject = getServiceTaskLikeBusinessObject(element),
  13230. id = 'expression'
  13231. } = props;
  13232. const commandStack = useService('commandStack');
  13233. const translate = useService('translate');
  13234. const debounce = useService('debounceInput');
  13235. const getValue = () => {
  13236. return businessObject.get('camunda:expression');
  13237. };
  13238. const setValue = value => {
  13239. commandStack.execute('element.updateModdleProperties', {
  13240. element,
  13241. moddleElement: businessObject,
  13242. properties: {
  13243. 'camunda:expression': value || ''
  13244. }
  13245. });
  13246. };
  13247. return TextFieldEntry({
  13248. element,
  13249. id,
  13250. label: translate('Expression'),
  13251. getValue,
  13252. setValue,
  13253. debounce
  13254. });
  13255. }
  13256. function ResultVariable$1(props) {
  13257. const {
  13258. element
  13259. } = props;
  13260. const commandStack = useService('commandStack');
  13261. const translate = useService('translate');
  13262. const debounce = useService('debounceInput');
  13263. const businessObject = getServiceTaskLikeBusinessObject(element);
  13264. const getValue = () => {
  13265. return businessObject.get('camunda:resultVariable');
  13266. };
  13267. const setValue = value => {
  13268. commandStack.execute('element.updateModdleProperties', {
  13269. element,
  13270. moddleElement: businessObject,
  13271. properties: {
  13272. 'camunda:resultVariable': value
  13273. }
  13274. });
  13275. };
  13276. return TextFieldEntry({
  13277. element,
  13278. id: 'expressionResultVariable',
  13279. label: translate('Result variable'),
  13280. getValue,
  13281. setValue,
  13282. debounce
  13283. });
  13284. }
  13285. function DelegateExpression(props) {
  13286. const {
  13287. element,
  13288. businessObject = getServiceTaskLikeBusinessObject(element),
  13289. id = 'delegateExpression'
  13290. } = props;
  13291. const commandStack = useService('commandStack');
  13292. const translate = useService('translate');
  13293. const debounce = useService('debounceInput');
  13294. const getValue = () => {
  13295. return businessObject.get('camunda:delegateExpression');
  13296. };
  13297. const setValue = value => {
  13298. commandStack.execute('element.updateModdleProperties', {
  13299. element,
  13300. moddleElement: businessObject,
  13301. properties: {
  13302. 'camunda:delegateExpression': value || ''
  13303. }
  13304. });
  13305. };
  13306. return TextFieldEntry({
  13307. element,
  13308. id,
  13309. label: translate('Delegate expression'),
  13310. getValue,
  13311. setValue,
  13312. debounce
  13313. });
  13314. }
  13315. function Topic(props) {
  13316. const {
  13317. element
  13318. } = props;
  13319. const commandStack = useService('commandStack');
  13320. const translate = useService('translate');
  13321. const debounce = useService('debounceInput');
  13322. const businessObject = getServiceTaskLikeBusinessObject(element);
  13323. const getValue = () => {
  13324. return businessObject.get('camunda:topic');
  13325. };
  13326. const setValue = value => {
  13327. commandStack.execute('element.updateModdleProperties', {
  13328. element,
  13329. moddleElement: businessObject,
  13330. properties: {
  13331. 'camunda:topic': value
  13332. }
  13333. });
  13334. };
  13335. return TextFieldEntry({
  13336. element,
  13337. id: 'externalTopic',
  13338. label: translate('Topic'),
  13339. getValue,
  13340. setValue,
  13341. debounce
  13342. });
  13343. }
  13344. function ConnectorId(props) {
  13345. const {
  13346. element
  13347. } = props;
  13348. const commandStack = useService('commandStack');
  13349. const translate = useService('translate');
  13350. const debounce = useService('debounceInput');
  13351. const connector = getConnector(element);
  13352. const getValue = () => {
  13353. return connector.get('camunda:connectorId');
  13354. };
  13355. const setValue = value => {
  13356. commandStack.execute('element.updateModdleProperties', {
  13357. element,
  13358. moddleElement: connector,
  13359. properties: {
  13360. 'camunda:connectorId': value
  13361. }
  13362. });
  13363. };
  13364. return TextFieldEntry({
  13365. element,
  13366. id: 'connectorId',
  13367. label: translate('Connector ID'),
  13368. getValue,
  13369. setValue,
  13370. debounce
  13371. });
  13372. }
  13373. // helper //////////////////
  13374. function getConnectors(businessObject) {
  13375. return getExtensionElementsList(businessObject, 'camunda:Connector');
  13376. }
  13377. function getConnector(element) {
  13378. const businessObject = getServiceTaskLikeBusinessObject(element);
  13379. const connectors = getConnectors(businessObject);
  13380. return connectors[0];
  13381. }
  13382. function InitiatorProps(props) {
  13383. const {
  13384. element
  13385. } = props;
  13386. if (!isInitiator(element)) {
  13387. return [];
  13388. }
  13389. return [{
  13390. id: 'initiator',
  13391. component: Initiator,
  13392. isEdited: isTextFieldEntryEdited
  13393. }];
  13394. }
  13395. function Initiator(props) {
  13396. const {
  13397. element
  13398. } = props;
  13399. const commandStack = useService('commandStack');
  13400. const translate = useService('translate');
  13401. const debounce = useService('debounceInput');
  13402. const businessObject = getBusinessObject(element);
  13403. const getValue = () => {
  13404. return businessObject.get('camunda:initiator');
  13405. };
  13406. const setValue = value => {
  13407. commandStack.execute('element.updateModdleProperties', {
  13408. element,
  13409. moddleElement: businessObject,
  13410. properties: {
  13411. 'camunda:initiator': value
  13412. }
  13413. });
  13414. };
  13415. return TextFieldEntry({
  13416. element,
  13417. id: 'initiator',
  13418. label: translate('Initiator'),
  13419. getValue,
  13420. setValue,
  13421. debounce
  13422. });
  13423. }
  13424. // helper ///////////////////
  13425. function isInitiator(element) {
  13426. return is(element, 'camunda:Initiator') && !is(element.parent, 'bpmn:SubProcess');
  13427. }
  13428. /**
  13429. * Cf. https://docs.camunda.org/manual/7.15/reference/bpmn20/subprocesses/call-activity/#passing-variables
  13430. */
  13431. function InMappingPropagationProps(props) {
  13432. const {
  13433. element
  13434. } = props;
  13435. if (!areInMappingsSupported$1(element)) {
  13436. return [];
  13437. }
  13438. const entries = [{
  13439. id: 'inMapping-propagation',
  13440. component: PropagateAll$1,
  13441. isEdited: isCheckboxEntryEdited
  13442. }];
  13443. if (isPropagateAll$1(element)) {
  13444. entries.push({
  13445. id: 'inMapping-propagation-local',
  13446. component: Local$2,
  13447. isEdited: isCheckboxEntryEdited
  13448. });
  13449. }
  13450. return entries;
  13451. }
  13452. function PropagateAll$1(props) {
  13453. const {
  13454. element
  13455. } = props;
  13456. const commandStack = useService('commandStack');
  13457. const bpmnFactory = useService('bpmnFactory');
  13458. const translate = useService('translate');
  13459. const getValue = () => {
  13460. return isPropagateAll$1(element);
  13461. };
  13462. const setValue = value => {
  13463. if (value) {
  13464. addInMapping();
  13465. } else {
  13466. removeInMapping();
  13467. }
  13468. };
  13469. function addInMapping() {
  13470. const businessObject = getSignalEventDefinition$1(element) || getBusinessObject(element);
  13471. const mapping = createElement('camunda:In', {
  13472. variables: 'all'
  13473. }, null, bpmnFactory);
  13474. addExtensionElements(element, businessObject, mapping, bpmnFactory, commandStack);
  13475. }
  13476. function removeInMapping() {
  13477. const businessObject = getSignalEventDefinition$1(element) || getBusinessObject(element);
  13478. const mappings = findRelevantInMappings(element);
  13479. removeExtensionElements(element, businessObject, mappings, commandStack);
  13480. }
  13481. return CheckboxEntry({
  13482. id: 'inMapping-propagation',
  13483. label: translate('Propagate all variables'),
  13484. getValue,
  13485. setValue
  13486. });
  13487. }
  13488. function Local$2(props) {
  13489. const {
  13490. element
  13491. } = props;
  13492. const commandStack = useService('commandStack');
  13493. const translate = useService('translate');
  13494. const mapping = findRelevantInMappings(element)[0];
  13495. const getValue = () => {
  13496. return mapping.get('camunda:local');
  13497. };
  13498. const setValue = value => {
  13499. commandStack.execute('element.updateModdleProperties', {
  13500. element,
  13501. moddleElement: mapping,
  13502. properties: {
  13503. local: value
  13504. }
  13505. });
  13506. };
  13507. return CheckboxEntry({
  13508. element,
  13509. id: 'inMapping-propagation-local',
  13510. label: translate('Local'),
  13511. getValue,
  13512. setValue
  13513. });
  13514. }
  13515. // helper //////////////////////////
  13516. function areInMappingsSupported$1(element) {
  13517. const signalEventDefinition = getSignalEventDefinition$1(element);
  13518. if (signalEventDefinition) {
  13519. return isAny(element, ['bpmn:IntermediateThrowEvent', 'bpmn:EndEvent']);
  13520. }
  13521. return is(element, 'bpmn:CallActivity');
  13522. }
  13523. function getInMappings$1(element) {
  13524. const businessObject = getBusinessObject(element);
  13525. const signalEventDefinition = getSignalEventDefinition$1(businessObject);
  13526. return getExtensionElementsList(signalEventDefinition || businessObject, 'camunda:In');
  13527. }
  13528. function findRelevantInMappings(element) {
  13529. const inMappings = getInMappings$1(element);
  13530. return filter(inMappings, function (mapping) {
  13531. const variables = mapping.get('variables');
  13532. return variables && variables === 'all';
  13533. });
  13534. }
  13535. function isPropagateAll$1(element) {
  13536. const mappings = findRelevantInMappings(element);
  13537. return !!mappings.length;
  13538. }
  13539. const DEFAULT_PROPS$1 = {
  13540. 'source': undefined,
  13541. 'sourceExpression': undefined
  13542. };
  13543. function InOutMapping(props) {
  13544. const {
  13545. idPrefix,
  13546. mapping
  13547. } = props;
  13548. const type = getInOutType(mapping);
  13549. const entries = [];
  13550. // (1) Type
  13551. entries.push({
  13552. id: idPrefix + '-type',
  13553. component: Type,
  13554. idPrefix,
  13555. mapping
  13556. });
  13557. // (2) Source
  13558. if (type === 'source') {
  13559. entries.push({
  13560. id: idPrefix + '-source',
  13561. component: Source,
  13562. idPrefix,
  13563. mapping
  13564. });
  13565. }
  13566. // (3) Source expression
  13567. if (type === 'sourceExpression') {
  13568. entries.push({
  13569. id: idPrefix + '-sourceExpression',
  13570. component: SourceExpression,
  13571. idPrefix,
  13572. mapping
  13573. });
  13574. }
  13575. // (4) Target
  13576. entries.push({
  13577. id: idPrefix + '-target',
  13578. component: Target,
  13579. idPrefix,
  13580. mapping
  13581. });
  13582. // (5) Local
  13583. entries.push({
  13584. id: idPrefix + '-local',
  13585. component: Local$1,
  13586. idPrefix,
  13587. mapping
  13588. });
  13589. return entries;
  13590. }
  13591. function Type(props) {
  13592. const {
  13593. idPrefix,
  13594. element,
  13595. mapping
  13596. } = props;
  13597. const commandStack = useService('commandStack');
  13598. const translate = useService('translate');
  13599. const getValue = mapping => {
  13600. return getInOutType(mapping);
  13601. };
  13602. const setValue = value => {
  13603. const properties = {
  13604. ...DEFAULT_PROPS$1,
  13605. [value]: ''
  13606. };
  13607. commandStack.execute('element.updateModdleProperties', {
  13608. element,
  13609. moddleElement: mapping,
  13610. properties
  13611. });
  13612. };
  13613. const getOptions = () => {
  13614. const options = [{
  13615. label: translate('Source'),
  13616. value: 'source'
  13617. }, {
  13618. label: translate('Source expression'),
  13619. value: 'sourceExpression'
  13620. }];
  13621. return options;
  13622. };
  13623. return SelectEntry({
  13624. element: mapping,
  13625. id: idPrefix + '-type',
  13626. label: translate('Type'),
  13627. getValue,
  13628. setValue,
  13629. getOptions
  13630. });
  13631. }
  13632. function Source(props) {
  13633. const {
  13634. idPrefix,
  13635. element,
  13636. mapping
  13637. } = props;
  13638. const commandStack = useService('commandStack');
  13639. const translate = useService('translate');
  13640. const debounce = useService('debounceInput');
  13641. const setValue = value => {
  13642. commandStack.execute('element.updateModdleProperties', {
  13643. element,
  13644. moddleElement: mapping,
  13645. properties: {
  13646. source: value
  13647. }
  13648. });
  13649. };
  13650. const getValue = mapping => {
  13651. return mapping.get('camunda:source');
  13652. };
  13653. return TextFieldEntry({
  13654. element: mapping,
  13655. id: idPrefix + '-source',
  13656. label: translate('Source'),
  13657. getValue,
  13658. setValue,
  13659. debounce
  13660. });
  13661. }
  13662. function SourceExpression(props) {
  13663. const {
  13664. idPrefix,
  13665. element,
  13666. mapping
  13667. } = props;
  13668. const commandStack = useService('commandStack');
  13669. const translate = useService('translate');
  13670. const debounce = useService('debounceInput');
  13671. const setValue = value => {
  13672. commandStack.execute('element.updateModdleProperties', {
  13673. element,
  13674. moddleElement: mapping,
  13675. properties: {
  13676. sourceExpression: value
  13677. }
  13678. });
  13679. };
  13680. const getValue = mapping => {
  13681. return mapping.get('camunda:sourceExpression');
  13682. };
  13683. return TextFieldEntry({
  13684. element: mapping,
  13685. id: idPrefix + '-sourceExpression',
  13686. label: translate('Source expression'),
  13687. getValue,
  13688. setValue,
  13689. debounce
  13690. });
  13691. }
  13692. function Target(props) {
  13693. const {
  13694. idPrefix,
  13695. element,
  13696. mapping
  13697. } = props;
  13698. const commandStack = useService('commandStack');
  13699. const translate = useService('translate');
  13700. const debounce = useService('debounceInput');
  13701. const setValue = value => {
  13702. commandStack.execute('element.updateModdleProperties', {
  13703. element,
  13704. moddleElement: mapping,
  13705. properties: {
  13706. target: value
  13707. }
  13708. });
  13709. };
  13710. const getValue = mapping => {
  13711. return mapping.get('camunda:target');
  13712. };
  13713. return TextFieldEntry({
  13714. element: mapping,
  13715. id: idPrefix + '-target',
  13716. label: translate('Target'),
  13717. getValue,
  13718. setValue,
  13719. debounce
  13720. });
  13721. }
  13722. function Local$1(props) {
  13723. const {
  13724. idPrefix,
  13725. element,
  13726. mapping
  13727. } = props;
  13728. const commandStack = useService('commandStack');
  13729. const translate = useService('translate');
  13730. const getValue = () => {
  13731. return mapping.get('camunda:local');
  13732. };
  13733. const setValue = value => {
  13734. commandStack.execute('element.updateModdleProperties', {
  13735. element,
  13736. moddleElement: mapping,
  13737. properties: {
  13738. local: value
  13739. }
  13740. });
  13741. };
  13742. return CheckboxEntry({
  13743. element,
  13744. id: idPrefix + '-local',
  13745. label: translate('Local'),
  13746. getValue,
  13747. setValue
  13748. });
  13749. }
  13750. // helper ///////////////////
  13751. function getInOutType(mapping) {
  13752. let inOutType = '';
  13753. if (typeof mapping.source !== 'undefined') {
  13754. inOutType = 'source';
  13755. } else if (typeof mapping.sourceExpression !== 'undefined') {
  13756. inOutType = 'sourceExpression';
  13757. }
  13758. return inOutType;
  13759. }
  13760. /**
  13761. * Cf. https://docs.camunda.org/manual/latest/reference/bpmn20/custom-extensions/extension-elements/#in
  13762. */
  13763. function InMappingProps({
  13764. element,
  13765. injector
  13766. }) {
  13767. if (!areInMappingsSupported(element)) {
  13768. return null;
  13769. }
  13770. const variableMappings = getInMappings(element) || [];
  13771. const bpmnFactory = injector.get('bpmnFactory'),
  13772. commandStack = injector.get('commandStack');
  13773. const items = variableMappings.map((mapping, index) => {
  13774. const id = element.id + '-inMapping-' + index;
  13775. return {
  13776. id,
  13777. label: mapping.get('target') || '',
  13778. entries: InOutMapping({
  13779. idPrefix: id,
  13780. element,
  13781. mapping
  13782. }),
  13783. autoFocusEntry: id + '-target',
  13784. remove: removeFactory$3({
  13785. commandStack,
  13786. element,
  13787. mapping
  13788. })
  13789. };
  13790. });
  13791. return {
  13792. items,
  13793. add: addFactory$2({
  13794. bpmnFactory,
  13795. commandStack,
  13796. element
  13797. })
  13798. };
  13799. }
  13800. function removeFactory$3({
  13801. commandStack,
  13802. element,
  13803. mapping
  13804. }) {
  13805. return function (event) {
  13806. event.stopPropagation();
  13807. const businessObject = getSignalEventDefinition$1(element) || getBusinessObject(element);
  13808. removeExtensionElements(element, businessObject, mapping, commandStack);
  13809. };
  13810. }
  13811. function addFactory$2({
  13812. bpmnFactory,
  13813. commandStack,
  13814. element
  13815. }) {
  13816. return function (event) {
  13817. event.stopPropagation();
  13818. const businessObject = getSignalEventDefinition$1(element) || getBusinessObject(element);
  13819. const newMapping = createElement('camunda:In', {
  13820. source: '' // source is the default type
  13821. }, null, bpmnFactory);
  13822. addExtensionElements(element, businessObject, newMapping, bpmnFactory, commandStack);
  13823. };
  13824. }
  13825. // helper ///////////////
  13826. function getInMappings(element) {
  13827. const businessObject = getBusinessObject(element);
  13828. const signalEventDefinition = getSignalEventDefinition$1(businessObject);
  13829. const mappings = getExtensionElementsList(signalEventDefinition || businessObject, 'camunda:In');
  13830. // only retrieve relevant mappings here, others are handled in other groups
  13831. // mapping.businessKey => camunda-platform/CallAvtivityProps
  13832. // mapping.variables => camunda-platform/InMappingPropagationProps
  13833. return filter(mappings, function (mapping) {
  13834. return !mapping.businessKey && !(mapping.variables && mapping.variables === 'all');
  13835. });
  13836. }
  13837. function areInMappingsSupported(element) {
  13838. const signalEventDefinition = getSignalEventDefinition$1(element);
  13839. if (signalEventDefinition) {
  13840. return isAny(element, ['bpmn:IntermediateThrowEvent', 'bpmn:EndEvent']);
  13841. }
  13842. return is(element, 'bpmn:CallActivity');
  13843. }
  13844. function InputProps(props) {
  13845. const {
  13846. element,
  13847. injector
  13848. } = props;
  13849. if (!areInputParametersSupported(element)) {
  13850. return null;
  13851. }
  13852. const inputParameters = getInputParameters(element) || [];
  13853. const bpmnFactory = injector.get('bpmnFactory'),
  13854. commandStack = injector.get('commandStack');
  13855. const items = inputParameters.map((parameter, index) => {
  13856. const id = element.id + '-inputParameter-' + index;
  13857. return {
  13858. id,
  13859. label: parameter.get('name') || '',
  13860. entries: InputOutputParameter({
  13861. idPrefix: id,
  13862. element,
  13863. parameter
  13864. }),
  13865. autoFocusEntry: id + '-name',
  13866. remove: removeFactory$2({
  13867. element,
  13868. commandStack,
  13869. parameter
  13870. })
  13871. };
  13872. });
  13873. function add(event) {
  13874. event.stopPropagation();
  13875. commandStack.execute('properties-panel.multi-command-executor', AddParameterCmd(element, 'camunda:InputParameter', bpmnFactory));
  13876. }
  13877. return {
  13878. items,
  13879. add,
  13880. shouldSort: false
  13881. };
  13882. }
  13883. function removeFactory$2(props) {
  13884. const {
  13885. commandStack,
  13886. element,
  13887. parameter
  13888. } = props;
  13889. return function (event) {
  13890. event.stopPropagation();
  13891. const inputOutput = getInputOutput(element);
  13892. if (!inputOutput) {
  13893. return;
  13894. }
  13895. commandStack.execute('element.updateModdleProperties', {
  13896. element,
  13897. moddleElement: inputOutput,
  13898. properties: {
  13899. inputParameters: without(inputOutput.get('inputParameters'), parameter)
  13900. }
  13901. });
  13902. };
  13903. }
  13904. function JobExecutionProps(props) {
  13905. const {
  13906. element
  13907. } = props;
  13908. const businessObject = getBusinessObject(element);
  13909. const entries = [];
  13910. // (1) add retryTimeCycle field for camunda:asyncCapable enabled Elements
  13911. // or TimerEvents
  13912. if (is(element, 'camunda:AsyncCapable') && isAsync$1(businessObject) || isTimerEvent(element)) {
  13913. entries.push({
  13914. id: 'retryTimeCycle',
  13915. component: RetryTimeCycle,
  13916. isEdited: isTextFieldEntryEdited
  13917. });
  13918. }
  13919. // (2) add jobPriority field for camunda:jobPriorized with async enabled
  13920. // or Processes
  13921. // or Processes referred to by participants
  13922. // or TimerEvents
  13923. if (is(element, 'camunda:JobPriorized') && isAsync$1(businessObject) || is(element, 'bpmn:Process') || is(element, 'bpmn:Participant') && businessObject.get('processRef') || isTimerEvent(element)) {
  13924. entries.push({
  13925. id: 'jobPriority',
  13926. component: JobPriority,
  13927. isEdited: isTextFieldEntryEdited
  13928. });
  13929. }
  13930. return entries;
  13931. }
  13932. function JobPriority(props) {
  13933. const {
  13934. element
  13935. } = props;
  13936. const commandStack = useService('commandStack'),
  13937. translate = useService('translate'),
  13938. debounce = useService('debounceInput');
  13939. const businessObject = is(element, 'bpmn:Participant') ? getBusinessObject(element).get('processRef') : getBusinessObject(element);
  13940. const getValue = () => {
  13941. return businessObject.get('camunda:jobPriority');
  13942. };
  13943. const setValue = value => {
  13944. commandStack.execute('element.updateModdleProperties', {
  13945. element,
  13946. moddleElement: businessObject,
  13947. properties: {
  13948. 'camunda:jobPriority': value
  13949. }
  13950. });
  13951. };
  13952. return TextFieldEntry({
  13953. element,
  13954. id: 'jobPriority',
  13955. label: translate('Priority'),
  13956. getValue,
  13957. setValue,
  13958. debounce
  13959. });
  13960. }
  13961. function RetryTimeCycle(props) {
  13962. const {
  13963. element
  13964. } = props;
  13965. const bpmnFactory = useService('bpmnFactory'),
  13966. commandStack = useService('commandStack'),
  13967. translate = useService('translate'),
  13968. debounce = useService('debounceInput');
  13969. const businessObject = getBusinessObject(element);
  13970. const getValue = () => {
  13971. const failedJobRetryTimeCycle = getExtensionElementsList(businessObject, 'camunda:FailedJobRetryTimeCycle')[0];
  13972. return failedJobRetryTimeCycle && failedJobRetryTimeCycle.body;
  13973. };
  13974. const setValue = value => {
  13975. const commands = [];
  13976. let extensionElements = businessObject.get('extensionElements');
  13977. // (1) ensure extension elements
  13978. if (!extensionElements) {
  13979. extensionElements = createElement('bpmn:ExtensionElements', {
  13980. values: []
  13981. }, businessObject, bpmnFactory);
  13982. commands.push({
  13983. cmd: 'element.updateModdleProperties',
  13984. context: {
  13985. element,
  13986. moddleElement: businessObject,
  13987. properties: {
  13988. extensionElements
  13989. }
  13990. }
  13991. });
  13992. }
  13993. // (2) ensure failedJobRetryTimeCycle
  13994. let failedJobRetryTimeCycle = getExtensionElementsList(businessObject, 'camunda:FailedJobRetryTimeCycle')[0];
  13995. if (!failedJobRetryTimeCycle) {
  13996. failedJobRetryTimeCycle = createElement('camunda:FailedJobRetryTimeCycle', {}, extensionElements, bpmnFactory);
  13997. commands.push({
  13998. cmd: 'element.updateModdleProperties',
  13999. context: {
  14000. element,
  14001. moddleElement: extensionElements,
  14002. properties: {
  14003. values: [...extensionElements.get('values'), failedJobRetryTimeCycle]
  14004. }
  14005. }
  14006. });
  14007. }
  14008. // (3) update failedJobRetryTimeCycle value
  14009. commands.push({
  14010. cmd: 'element.updateModdleProperties',
  14011. context: {
  14012. element,
  14013. moddleElement: failedJobRetryTimeCycle,
  14014. properties: {
  14015. body: value
  14016. }
  14017. }
  14018. });
  14019. // (4) commit all updates
  14020. commandStack.execute('properties-panel.multi-command-executor', commands);
  14021. };
  14022. return TextFieldEntry({
  14023. element,
  14024. id: 'retryTimeCycle',
  14025. label: translate('Retry time cycle'),
  14026. getValue,
  14027. setValue,
  14028. debounce
  14029. });
  14030. }
  14031. // helper //////////////////
  14032. /**
  14033. * @param {ModdleElement} bo
  14034. * @return {boolean} a boolean value
  14035. */
  14036. function isAsyncBefore$1(bo) {
  14037. return !!(bo.get('camunda:asyncBefore') || bo.get('camunda:async'));
  14038. }
  14039. /**
  14040. * @param {ModdleElement} bo
  14041. * @return {boolean}
  14042. */
  14043. function isAsyncAfter$1(bo) {
  14044. return !!bo.get('camunda:asyncAfter');
  14045. }
  14046. /**
  14047. * isAsync - returns true if the attribute 'camunda:asyncAfter' or 'camunda:asyncBefore'
  14048. * is set to true.
  14049. *
  14050. * @param {ModdleElement} bo
  14051. * @return {boolean}
  14052. */
  14053. function isAsync$1(bo) {
  14054. return isAsyncAfter$1(bo) || isAsyncBefore$1(bo);
  14055. }
  14056. /**
  14057. * isTimerEvent - returns true if the element is a bpmn:Event with a timerEventDefinition
  14058. *
  14059. * @param {ModdleElement} element
  14060. * @return {boolean}
  14061. */
  14062. function isTimerEvent(element) {
  14063. return is(element, 'bpmn:Event') && getTimerEventDefinition$1(element);
  14064. }
  14065. /**
  14066. * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
  14067. */
  14068. /**
  14069. * @returns {Array<Entry>} entries
  14070. */
  14071. function MultiInstanceProps(props) {
  14072. const {
  14073. element
  14074. } = props;
  14075. const loopCharacteristics = getLoopCharacteristics(element);
  14076. let entries = props.entries || [];
  14077. if (!isMultiInstanceSupported(element)) {
  14078. return entries;
  14079. }
  14080. entries.push({
  14081. id: 'collection',
  14082. component: Collection,
  14083. isEdited: isTextFieldEntryEdited
  14084. }, {
  14085. id: 'elementVariable',
  14086. component: ElementVariable,
  14087. isEdited: isTextFieldEntryEdited
  14088. }, {
  14089. id: 'multiInstanceAsynchronousBefore',
  14090. component: MultiInstanceAsynchronousBefore,
  14091. isEdited: isCheckboxEntryEdited
  14092. }, {
  14093. id: 'multiInstanceAsynchronousAfter',
  14094. component: MultiInstanceAsynchronousAfter,
  14095. isEdited: isCheckboxEntryEdited
  14096. });
  14097. if (isAsync(loopCharacteristics)) {
  14098. entries.push({
  14099. id: 'multiInstanceExclusive',
  14100. component: MultiInstanceExclusive,
  14101. isEdited: checkboxIsEditedInverted
  14102. }, {
  14103. id: 'multiInstanceRetryTimeCycle',
  14104. component: MultiInstanceRetryTimeCycle,
  14105. isEdited: isTextFieldEntryEdited
  14106. });
  14107. }
  14108. return entries;
  14109. }
  14110. function Collection(props) {
  14111. const {
  14112. element
  14113. } = props;
  14114. const debounce = useService('debounceInput');
  14115. const commandStack = useService('commandStack');
  14116. const translate = useService('translate');
  14117. const loopCharacteristics = getLoopCharacteristics(element);
  14118. const getValue = () => {
  14119. return getCollection(element);
  14120. };
  14121. const setValue = value => {
  14122. return commandStack.execute('element.updateModdleProperties', {
  14123. element,
  14124. moddleElement: loopCharacteristics,
  14125. properties: {
  14126. 'camunda:collection': value
  14127. }
  14128. });
  14129. };
  14130. return TextFieldEntry({
  14131. element,
  14132. id: 'collection',
  14133. label: translate('Collection'),
  14134. getValue,
  14135. setValue,
  14136. debounce
  14137. });
  14138. }
  14139. function ElementVariable(props) {
  14140. const {
  14141. element
  14142. } = props;
  14143. const debounce = useService('debounceInput');
  14144. const commandStack = useService('commandStack');
  14145. const translate = useService('translate');
  14146. const loopCharacteristics = getLoopCharacteristics(element);
  14147. const getValue = () => {
  14148. return getElementVariable(element);
  14149. };
  14150. const setValue = value => {
  14151. return commandStack.execute('element.updateModdleProperties', {
  14152. element,
  14153. moddleElement: loopCharacteristics,
  14154. properties: {
  14155. 'camunda:elementVariable': value
  14156. }
  14157. });
  14158. };
  14159. return TextFieldEntry({
  14160. element,
  14161. id: 'elementVariable',
  14162. label: translate('Element variable'),
  14163. getValue,
  14164. setValue,
  14165. debounce
  14166. });
  14167. }
  14168. function MultiInstanceAsynchronousBefore(props) {
  14169. const {
  14170. element
  14171. } = props;
  14172. const commandStack = useService('commandStack');
  14173. const translate = useService('translate');
  14174. const loopCharacteristics = getLoopCharacteristics(element);
  14175. const getValue = () => {
  14176. return isAsyncBefore(loopCharacteristics);
  14177. };
  14178. const setValue = value => {
  14179. // overwrite the legacy `async` property, we will use the more explicit `asyncBefore`
  14180. const properties = {
  14181. 'camunda:asyncBefore': value,
  14182. 'camunda:async': undefined
  14183. };
  14184. commandStack.execute('element.updateModdleProperties', {
  14185. element,
  14186. moddleElement: loopCharacteristics,
  14187. properties
  14188. });
  14189. };
  14190. return CheckboxEntry({
  14191. element,
  14192. id: 'multiInstanceAsynchronousBefore',
  14193. label: translate('Asynchronous before'),
  14194. getValue,
  14195. setValue
  14196. });
  14197. }
  14198. function MultiInstanceAsynchronousAfter(props) {
  14199. const {
  14200. element
  14201. } = props;
  14202. const commandStack = useService('commandStack');
  14203. const translate = useService('translate');
  14204. const loopCharacteristics = getLoopCharacteristics(element);
  14205. const getValue = () => {
  14206. return isAsyncAfter(loopCharacteristics);
  14207. };
  14208. const setValue = value => {
  14209. commandStack.execute('element.updateModdleProperties', {
  14210. element,
  14211. moddleElement: loopCharacteristics,
  14212. properties: {
  14213. 'camunda:asyncAfter': value
  14214. }
  14215. });
  14216. };
  14217. return CheckboxEntry({
  14218. element,
  14219. id: 'multiInstanceAsynchronousAfter',
  14220. label: translate('Asynchronous after'),
  14221. getValue,
  14222. setValue
  14223. });
  14224. }
  14225. function MultiInstanceExclusive(props) {
  14226. const {
  14227. element
  14228. } = props;
  14229. const commandStack = useService('commandStack'),
  14230. translate = useService('translate');
  14231. const loopCharacteristics = getLoopCharacteristics(element);
  14232. const getValue = () => {
  14233. return isExclusive(loopCharacteristics);
  14234. };
  14235. const setValue = value => {
  14236. commandStack.execute('element.updateModdleProperties', {
  14237. element,
  14238. moddleElement: loopCharacteristics,
  14239. properties: {
  14240. 'camunda:exclusive': value
  14241. }
  14242. });
  14243. };
  14244. return CheckboxEntry({
  14245. element,
  14246. id: 'multiInstanceExclusive',
  14247. label: translate('Exclusive'),
  14248. getValue,
  14249. setValue
  14250. });
  14251. }
  14252. function MultiInstanceRetryTimeCycle(props) {
  14253. const {
  14254. element
  14255. } = props;
  14256. const bpmnFactory = useService('bpmnFactory'),
  14257. commandStack = useService('commandStack'),
  14258. translate = useService('translate'),
  14259. debounce = useService('debounceInput');
  14260. const loopCharacteristics = getLoopCharacteristics(element);
  14261. const getValue = () => {
  14262. const failedJobRetryTimeCycle = getExtensionElementsList(loopCharacteristics, 'camunda:FailedJobRetryTimeCycle')[0];
  14263. return failedJobRetryTimeCycle && failedJobRetryTimeCycle.body;
  14264. };
  14265. const setValue = value => {
  14266. const commands = [];
  14267. let extensionElements = loopCharacteristics.get('extensionElements');
  14268. // (1) ensure extension elements
  14269. if (!extensionElements) {
  14270. extensionElements = createElement('bpmn:ExtensionElements', {
  14271. values: []
  14272. }, loopCharacteristics, bpmnFactory);
  14273. commands.push({
  14274. cmd: 'element.updateModdleProperties',
  14275. context: {
  14276. element,
  14277. moddleElement: loopCharacteristics,
  14278. properties: {
  14279. extensionElements
  14280. }
  14281. }
  14282. });
  14283. }
  14284. // (2) ensure failedJobRetryTimeCycle
  14285. let failedJobRetryTimeCycle = getExtensionElementsList(loopCharacteristics, 'camunda:FailedJobRetryTimeCycle')[0];
  14286. if (!failedJobRetryTimeCycle) {
  14287. failedJobRetryTimeCycle = createElement('camunda:FailedJobRetryTimeCycle', {}, extensionElements, bpmnFactory);
  14288. commands.push({
  14289. cmd: 'element.updateModdleProperties',
  14290. context: {
  14291. element: loopCharacteristics,
  14292. moddleElement: extensionElements,
  14293. properties: {
  14294. values: [...extensionElements.get('values'), failedJobRetryTimeCycle]
  14295. }
  14296. }
  14297. });
  14298. }
  14299. // (3) update failedJobRetryTimeCycle value
  14300. commands.push({
  14301. cmd: 'element.updateModdleProperties',
  14302. context: {
  14303. element,
  14304. moddleElement: failedJobRetryTimeCycle,
  14305. properties: {
  14306. body: value
  14307. }
  14308. }
  14309. });
  14310. // (4) commit all updates
  14311. commandStack.execute('properties-panel.multi-command-executor', commands);
  14312. };
  14313. return TextFieldEntry({
  14314. element,
  14315. id: 'multiInstanceRetryTimeCycle',
  14316. label: translate('Retry time cycle'),
  14317. getValue,
  14318. setValue,
  14319. debounce
  14320. });
  14321. }
  14322. // helper ////////////////////////////
  14323. // generic ///////////////////////////
  14324. /**
  14325. * isMultiInstanceSupported - check whether given element supports camunda specific props
  14326. * for multiInstance (ref. <camunda:Cllectable>).
  14327. *
  14328. * @param {djs.model.Base} element
  14329. * @return {boolean}
  14330. */
  14331. function isMultiInstanceSupported(element) {
  14332. const loopCharacteristics = getLoopCharacteristics(element);
  14333. return !!loopCharacteristics && is(loopCharacteristics, 'camunda:Collectable');
  14334. }
  14335. /**
  14336. * getProperty - get a property value of the loop characteristics.
  14337. *
  14338. * @param {djs.model.Base} element
  14339. * @param {string} propertyName
  14340. *
  14341. * @return {any} the property value
  14342. */
  14343. function getProperty(element, propertyName) {
  14344. var loopCharacteristics = getLoopCharacteristics(element);
  14345. return loopCharacteristics && loopCharacteristics.get(propertyName);
  14346. }
  14347. /**
  14348. * getLoopCharacteristics - get loopCharacteristics of a given element.
  14349. *
  14350. * @param {djs.model.Base} element
  14351. * @return {ModdleElement<bpmn:MultiInstanceLoopCharacteristics> | undefined}
  14352. */
  14353. function getLoopCharacteristics(element) {
  14354. const bo = getBusinessObject(element);
  14355. return bo.loopCharacteristics;
  14356. }
  14357. // collection
  14358. /**
  14359. * getCollection - get the 'camunda:collection' attribute value of the loop characteristics.
  14360. *
  14361. * @param {djs.model.Base} element
  14362. *
  14363. * @return {string} the 'camunda:collection' value
  14364. */
  14365. function getCollection(element) {
  14366. return getProperty(element, 'camunda:collection');
  14367. }
  14368. // elementVariable
  14369. /**
  14370. * getElementVariable - get the 'camunda:elementVariable' attribute value of the loop characteristics.
  14371. *
  14372. * @param {djs.model.Base} element
  14373. *
  14374. * @return {string} the 'camunda:elementVariable' value
  14375. */
  14376. function getElementVariable(element) {
  14377. return getProperty(element, 'camunda:elementVariable');
  14378. }
  14379. // asyncBefore asyncAfter
  14380. /**
  14381. * Returns true if the attribute 'camunda:asyncBefore' is set
  14382. * to true.
  14383. *
  14384. * @param {ModdleElement} bo
  14385. *
  14386. * @return {boolean} a boolean value
  14387. */
  14388. function isAsyncBefore(bo) {
  14389. return !!(bo.get('camunda:asyncBefore') || bo.get('camunda:async'));
  14390. }
  14391. /**
  14392. * Returns true if the attribute 'camunda:asyncAfter' is set
  14393. * to true.
  14394. *
  14395. * @param {ModdleElement} bo
  14396. *
  14397. * @return {boolean} a boolean value
  14398. */
  14399. function isAsyncAfter(bo) {
  14400. return !!bo.get('camunda:asyncAfter');
  14401. }
  14402. /**
  14403. * Returns true if the attribute 'camunda:exclusive' is set
  14404. * to true.
  14405. *
  14406. * @param {ModdleElement} bo
  14407. *
  14408. * @return {boolean} a boolean value
  14409. */
  14410. function isExclusive(bo) {
  14411. return !!bo.get('camunda:exclusive');
  14412. }
  14413. /**
  14414. * isAsync - returns true if the attribute 'camunda:asyncAfter' or 'camunda:asyncBefore'
  14415. * is set to true.
  14416. *
  14417. * @param {ModdleElement} bo
  14418. * @return {boolean}
  14419. */
  14420. function isAsync(bo) {
  14421. return isAsyncAfter(bo) || isAsyncBefore(bo);
  14422. }
  14423. // Checkbox
  14424. function checkboxIsEditedInverted(node) {
  14425. return node && !node.checked;
  14426. }
  14427. /**
  14428. * Cf. https://docs.camunda.org/manual/7.15/reference/bpmn20/subprocesses/call-activity/#passing-variables
  14429. */
  14430. function OutMappingPropagationProps(props) {
  14431. const {
  14432. element
  14433. } = props;
  14434. if (!areOutMappingsSupported$1(element)) {
  14435. return [];
  14436. }
  14437. const entries = [{
  14438. id: 'outMapping-propagation',
  14439. component: PropagateAll,
  14440. isEdited: isCheckboxEntryEdited
  14441. }];
  14442. if (isPropagateAll(element)) {
  14443. entries.push({
  14444. id: 'outMapping-propagation-local',
  14445. component: Local,
  14446. isEdited: isCheckboxEntryEdited
  14447. });
  14448. }
  14449. return entries;
  14450. }
  14451. function PropagateAll(props) {
  14452. const {
  14453. element
  14454. } = props;
  14455. const commandStack = useService('commandStack');
  14456. const bpmnFactory = useService('bpmnFactory');
  14457. const translate = useService('translate');
  14458. const getValue = () => {
  14459. return isPropagateAll(element);
  14460. };
  14461. const setValue = value => {
  14462. if (value) {
  14463. addOutMapping();
  14464. } else {
  14465. removeOutMapping();
  14466. }
  14467. };
  14468. function addOutMapping() {
  14469. const businessObject = getBusinessObject(element);
  14470. const mapping = createElement('camunda:Out', {
  14471. variables: 'all'
  14472. }, null, bpmnFactory);
  14473. addExtensionElements(element, businessObject, mapping, bpmnFactory, commandStack);
  14474. }
  14475. function removeOutMapping() {
  14476. const businessObject = getBusinessObject(element);
  14477. const mappings = findRelevantOutMappings(element);
  14478. removeExtensionElements(element, businessObject, mappings, commandStack);
  14479. }
  14480. return CheckboxEntry({
  14481. id: 'outMapping-propagation',
  14482. label: translate('Propagate all variables'),
  14483. getValue,
  14484. setValue
  14485. });
  14486. }
  14487. function Local(props) {
  14488. const {
  14489. element
  14490. } = props;
  14491. const commandStack = useService('commandStack');
  14492. const translate = useService('translate');
  14493. const mapping = findRelevantOutMappings(element)[0];
  14494. const getValue = () => {
  14495. return mapping.get('camunda:local');
  14496. };
  14497. const setValue = value => {
  14498. commandStack.execute('element.updateModdleProperties', {
  14499. element,
  14500. moddleElement: mapping,
  14501. properties: {
  14502. local: value
  14503. }
  14504. });
  14505. };
  14506. return CheckboxEntry({
  14507. element,
  14508. id: 'outMapping-propagation-local',
  14509. label: translate('Local'),
  14510. getValue,
  14511. setValue
  14512. });
  14513. }
  14514. // helper //////////////////////////
  14515. function areOutMappingsSupported$1(element) {
  14516. return is(element, 'bpmn:CallActivity');
  14517. }
  14518. function getOutMappings$1(element) {
  14519. const businessObject = getBusinessObject(element);
  14520. return getExtensionElementsList(businessObject, 'camunda:Out');
  14521. }
  14522. function findRelevantOutMappings(element) {
  14523. const inMappings = getOutMappings$1(element);
  14524. return filter(inMappings, function (mapping) {
  14525. const variables = mapping.get('variables');
  14526. return variables && variables === 'all';
  14527. });
  14528. }
  14529. function isPropagateAll(element) {
  14530. const mappings = findRelevantOutMappings(element);
  14531. return !!mappings.length;
  14532. }
  14533. /**
  14534. * Cf. https://docs.camunda.org/manual/latest/reference/bpmn20/custom-extensions/extension-elements/#out
  14535. */
  14536. function OutMappingProps({
  14537. element,
  14538. injector
  14539. }) {
  14540. if (!areOutMappingsSupported(element)) {
  14541. return null;
  14542. }
  14543. const variableMappings = getOutMappings(element) || [];
  14544. const bpmnFactory = injector.get('bpmnFactory'),
  14545. commandStack = injector.get('commandStack');
  14546. const items = variableMappings.map((mapping, index) => {
  14547. const id = element.id + '-outMapping-' + index;
  14548. return {
  14549. id,
  14550. label: mapping.get('target') || '',
  14551. entries: InOutMapping({
  14552. idPrefix: id,
  14553. element,
  14554. mapping
  14555. }),
  14556. autoFocusEntry: id + '-target',
  14557. remove: removeFactory$1({
  14558. commandStack,
  14559. element,
  14560. mapping
  14561. })
  14562. };
  14563. });
  14564. return {
  14565. items,
  14566. add: addFactory$1({
  14567. bpmnFactory,
  14568. commandStack,
  14569. element
  14570. })
  14571. };
  14572. }
  14573. function removeFactory$1({
  14574. commandStack,
  14575. element,
  14576. mapping
  14577. }) {
  14578. return function (event) {
  14579. event.stopPropagation();
  14580. const businessObject = getBusinessObject(element);
  14581. removeExtensionElements(element, businessObject, mapping, commandStack);
  14582. };
  14583. }
  14584. function addFactory$1({
  14585. bpmnFactory,
  14586. commandStack,
  14587. element
  14588. }) {
  14589. return function (event) {
  14590. event.stopPropagation();
  14591. const businessObject = getBusinessObject(element);
  14592. const newMapping = createElement('camunda:Out', {
  14593. source: '' // source is the default type
  14594. }, null, bpmnFactory);
  14595. addExtensionElements(element, businessObject, newMapping, bpmnFactory, commandStack);
  14596. };
  14597. }
  14598. // helper ///////////////
  14599. function getOutMappings(element) {
  14600. const businessObject = getBusinessObject(element);
  14601. const mappings = getExtensionElementsList(businessObject, 'camunda:Out');
  14602. // only retrieve relevant mappings here, others are handled in other groups
  14603. // mapping.businessKey => camunda-platform/CallAvtivityProps
  14604. // mapping.variables => camunda-platform/OutMappingPropagationProps
  14605. return filter(mappings, function (mapping) {
  14606. return !mapping.businessKey && !(mapping.variables && mapping.variables === 'all');
  14607. });
  14608. }
  14609. function areOutMappingsSupported(element) {
  14610. return is(element, 'bpmn:CallActivity');
  14611. }
  14612. function OutputProps({
  14613. element,
  14614. injector
  14615. }) {
  14616. if (!areOutputParametersSupported(element)) {
  14617. return null;
  14618. }
  14619. const outputParameters = getOutputParameters(element) || [];
  14620. const bpmnFactory = injector.get('bpmnFactory'),
  14621. commandStack = injector.get('commandStack');
  14622. const items = outputParameters.map((parameter, index) => {
  14623. const id = element.id + '-outputParameter-' + index;
  14624. return {
  14625. id,
  14626. label: parameter.get('name') || '',
  14627. entries: InputOutputParameter({
  14628. idPrefix: id,
  14629. element,
  14630. parameter
  14631. }),
  14632. autoFocusEntry: id + '-name',
  14633. remove: removeFactory({
  14634. commandStack,
  14635. element,
  14636. parameter
  14637. })
  14638. };
  14639. });
  14640. return {
  14641. items,
  14642. add: addFactory({
  14643. bpmnFactory,
  14644. commandStack,
  14645. element
  14646. }),
  14647. shouldSort: false
  14648. };
  14649. }
  14650. function removeFactory({
  14651. commandStack,
  14652. element,
  14653. parameter
  14654. }) {
  14655. return function (event) {
  14656. event.stopPropagation();
  14657. const inputOutput = getInputOutput(element);
  14658. if (!inputOutput) {
  14659. return;
  14660. }
  14661. commandStack.execute('element.updateModdleProperties', {
  14662. element,
  14663. moddleElement: inputOutput,
  14664. properties: {
  14665. outputParameters: without(inputOutput.get('outputParameters'), parameter)
  14666. }
  14667. });
  14668. };
  14669. }
  14670. function addFactory({
  14671. bpmnFactory,
  14672. commandStack,
  14673. element
  14674. }) {
  14675. return function (event) {
  14676. event.stopPropagation();
  14677. commandStack.execute('properties-panel.multi-command-executor', AddParameterCmd(element, 'camunda:OutputParameter', bpmnFactory));
  14678. };
  14679. }
  14680. function TimerProps(props) {
  14681. const {
  14682. element,
  14683. listener,
  14684. idPrefix
  14685. } = props;
  14686. let {
  14687. timerEventDefinition
  14688. } = props;
  14689. if (!timerEventDefinition) {
  14690. const businessObject = getBusinessObject(element);
  14691. timerEventDefinition = getTimerEventDefinition(businessObject);
  14692. }
  14693. const timerEventDefinitionType = getTimerDefinitionType(timerEventDefinition);
  14694. // (1) Only show for supported elements
  14695. if (!isTimerSupported(element) && !isTimerSupportedOnListener(listener)) {
  14696. return [];
  14697. }
  14698. // (2) Provide entries, have a value only if selection was made
  14699. const entries = [];
  14700. entries.push({
  14701. id: getId(idPrefix, 'timerEventDefinitionType'),
  14702. component: TimerEventDefinitionType,
  14703. isEdited: isSelectEntryEdited,
  14704. timerEventDefinition,
  14705. timerEventDefinitionType
  14706. });
  14707. if (timerEventDefinitionType) {
  14708. entries.push({
  14709. id: getId(idPrefix, 'timerEventDefinitionValue'),
  14710. component: TimerEventDefinitionValue,
  14711. isEdited: isTextFieldEntryEdited,
  14712. timerEventDefinition,
  14713. timerEventDefinitionType
  14714. });
  14715. }
  14716. return entries;
  14717. }
  14718. /**
  14719. * TimerEventDefinitionType - Generic select entry allowing to select a specific
  14720. * timerEventDefintionType. To be used together with timerEventDefinitionValue.
  14721. *
  14722. * @param {type} props
  14723. * @return {SelectEntry}
  14724. */
  14725. function TimerEventDefinitionType(props) {
  14726. const {
  14727. element,
  14728. timerEventDefinition,
  14729. timerEventDefinitionType
  14730. } = props;
  14731. const commandStack = useService('commandStack'),
  14732. bpmnFactory = useService('bpmnFactory'),
  14733. translate = useService('translate');
  14734. const getValue = () => {
  14735. return timerEventDefinitionType || '';
  14736. };
  14737. const setValue = value => {
  14738. // (1) Check if value is different to current type
  14739. if (value === timerEventDefinitionType) {
  14740. return;
  14741. }
  14742. // (2) Create empty formalExpression element
  14743. const formalExpression = bpmnFactory.create('bpmn:FormalExpression', {
  14744. body: undefined
  14745. });
  14746. formalExpression.$parent = timerEventDefinition;
  14747. // (3) Set the value for selected timerEventDefinitionType
  14748. const newProps = {
  14749. timeDuration: undefined,
  14750. timeDate: undefined,
  14751. timeCycle: undefined
  14752. };
  14753. if (value !== '') {
  14754. newProps[value] = formalExpression;
  14755. }
  14756. // (4) Execute businessObject update
  14757. commandStack.execute('element.updateModdleProperties', {
  14758. element,
  14759. moddleElement: timerEventDefinition,
  14760. properties: newProps
  14761. });
  14762. };
  14763. const getOptions = element => {
  14764. return [{
  14765. value: '',
  14766. label: translate('<none>')
  14767. }, {
  14768. value: 'timeDate',
  14769. label: translate('Date')
  14770. }, {
  14771. value: 'timeDuration',
  14772. label: translate('Duration')
  14773. }, {
  14774. value: 'timeCycle',
  14775. label: translate('Cycle')
  14776. }];
  14777. };
  14778. return SelectEntry({
  14779. element,
  14780. id: 'timerEventDefinitionType',
  14781. label: translate('Type'),
  14782. getValue,
  14783. setValue,
  14784. getOptions
  14785. });
  14786. }
  14787. /**
  14788. * TimerEventDefinitionValue - Generic textField entry allowing to specify the
  14789. * timerEventDefintionValue based on the set timerEventDefintionType. To be used
  14790. * together with timerEventDefinitionType.
  14791. *
  14792. * @param {type} props
  14793. * @return {TextFieldEntry}
  14794. */
  14795. function TimerEventDefinitionValue(props) {
  14796. const {
  14797. element,
  14798. timerEventDefinition,
  14799. timerEventDefinitionType
  14800. } = props;
  14801. const commandStack = useService('commandStack'),
  14802. translate = useService('translate'),
  14803. debounce = useService('debounceInput');
  14804. const timerEventFormalExpression = timerEventDefinition.get(timerEventDefinitionType);
  14805. const getValue = () => {
  14806. return timerEventFormalExpression && timerEventFormalExpression.get('body');
  14807. };
  14808. const setValue = value => {
  14809. commandStack.execute('element.updateModdleProperties', {
  14810. element,
  14811. moddleElement: timerEventFormalExpression,
  14812. properties: {
  14813. body: value
  14814. }
  14815. });
  14816. };
  14817. return TextFieldEntry({
  14818. element,
  14819. id: 'timerEventDefinitionValue',
  14820. label: translate('Value'),
  14821. getValue,
  14822. setValue,
  14823. debounce,
  14824. tooltip: getTimerEventDefinitionValueDescription(timerEventDefinitionType, translate)
  14825. });
  14826. }
  14827. // helper //////////////////////////
  14828. function getTimerEventDefinitionValueDescription(timerDefinitionType, translate) {
  14829. switch (timerDefinitionType) {
  14830. case 'timeDate':
  14831. return jsxs("div", {
  14832. children: [jsx("p", {
  14833. children: translate('A specific point in time defined as ISO 8601 combined date and time representation.')
  14834. }), jsxs("ul", {
  14835. children: [jsxs("li", {
  14836. children: [jsx("code", {
  14837. children: "2019-10-01T12:00:00Z"
  14838. }), " - ", translate('UTC time')]
  14839. }), jsxs("li", {
  14840. children: [jsx("code", {
  14841. children: "2019-10-02T08:09:40+02:00"
  14842. }), " - ", translate('UTC plus 2 hours zone offset')]
  14843. })]
  14844. }), jsx("a", {
  14845. href: "https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-date",
  14846. target: "_blank",
  14847. rel: "noopener",
  14848. children: translate('Documentation: Timer events')
  14849. })]
  14850. });
  14851. case 'timeCycle':
  14852. return jsxs("div", {
  14853. children: [jsx("p", {
  14854. children: translate('A cycle defined as ISO 8601 repeating intervals format, or a cron expression.')
  14855. }), jsxs("ul", {
  14856. children: [jsxs("li", {
  14857. children: [jsx("code", {
  14858. children: "R5/PT10S"
  14859. }), " - ", translate('every 10 seconds, up to 5 times')]
  14860. }), jsxs("li", {
  14861. children: [jsx("code", {
  14862. children: "R/P1D"
  14863. }), " - ", translate('every day, infinitely')]
  14864. }), jsxs("li", {
  14865. children: [jsx("code", {
  14866. children: "0 0 9-17 * * MON-FRI"
  14867. }), " - ", translate('every hour on the hour from 9-5 p.m. UTC Monday-Friday')]
  14868. })]
  14869. }), jsx("a", {
  14870. href: "https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-cycle",
  14871. target: "_blank",
  14872. rel: "noopener",
  14873. children: translate('Documentation: Timer events')
  14874. })]
  14875. });
  14876. case 'timeDuration':
  14877. return jsxs("div", {
  14878. children: [jsx("p", {
  14879. children: translate('A time duration defined as ISO 8601 durations format.')
  14880. }), jsxs("ul", {
  14881. children: [jsxs("li", {
  14882. children: [jsx("code", {
  14883. children: "PT15S"
  14884. }), " - ", translate('15 seconds')]
  14885. }), jsxs("li", {
  14886. children: [jsx("code", {
  14887. children: "PT1H30M"
  14888. }), " - ", translate('1 hour and 30 minutes')]
  14889. }), jsxs("li", {
  14890. children: [jsx("code", {
  14891. children: "P14D"
  14892. }), " - ", translate('14 days')]
  14893. })]
  14894. }), jsx("a", {
  14895. href: "https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-duration",
  14896. target: "_blank",
  14897. rel: "noopener",
  14898. children: translate('Documentation: Timer events')
  14899. })]
  14900. });
  14901. }
  14902. }
  14903. function isTimerSupportedOnListener(listener) {
  14904. return listener && is(listener, 'camunda:TaskListener') && getTimerEventDefinition(listener);
  14905. }
  14906. function getId(idPrefix, id) {
  14907. return idPrefix ? idPrefix + id : id;
  14908. }
  14909. const LISTENER_ALLOWED_TYPES = ['bpmn:Activity', 'bpmn:Event', 'bpmn:Gateway', 'bpmn:SequenceFlow', 'bpmn:Process', 'bpmn:Participant'];
  14910. const SCRIPT_PROPS = {
  14911. 'script': undefined,
  14912. 'resource': undefined,
  14913. 'scriptFormat': undefined
  14914. };
  14915. const CLASS_PROPS = {
  14916. 'class': undefined
  14917. };
  14918. const EXPRESSION_PROPS = {
  14919. 'expression': undefined
  14920. };
  14921. const DELEGATE_EXPRESSION_PROPS = {
  14922. 'delegateExpression': undefined
  14923. };
  14924. const DEFAULT_PROPS = {
  14925. ...SCRIPT_PROPS,
  14926. ...CLASS_PROPS,
  14927. ...EXPRESSION_PROPS,
  14928. ...DELEGATE_EXPRESSION_PROPS
  14929. };
  14930. const DEFAULT_EVENT_PROPS = {
  14931. 'eventDefinitions': undefined,
  14932. 'event': undefined
  14933. };
  14934. const IMPLEMENTATION_TYPE_TO_LABEL = {
  14935. class: 'Java class',
  14936. expression: 'Expression',
  14937. delegateExpression: 'Delegate expression',
  14938. script: 'Script'
  14939. };
  14940. const EVENT_TO_LABEL = {
  14941. start: 'Start',
  14942. end: 'End',
  14943. take: 'Take',
  14944. create: 'Create',
  14945. assignment: 'Assignment',
  14946. complete: 'Complete',
  14947. delete: 'Delete',
  14948. update: 'Update',
  14949. timeout: 'Timeout'
  14950. };
  14951. /**
  14952. * Cf. https://docs.camunda.org/manual/latest/user-guide/process-engine/delegation-code/#execution-listener
  14953. */
  14954. function ExecutionListenerProps({
  14955. element,
  14956. injector
  14957. }) {
  14958. if (!isAny(element, LISTENER_ALLOWED_TYPES)) {
  14959. return;
  14960. }
  14961. const bpmnFactory = injector.get('bpmnFactory'),
  14962. commandStack = injector.get('commandStack');
  14963. if (is(element, 'bpmn:Participant') && !element.businessObject.processRef) {
  14964. return;
  14965. }
  14966. const businessObject = getListenersContainer(element);
  14967. const listeners = getExtensionElementsList(businessObject, 'camunda:ExecutionListener');
  14968. return {
  14969. items: listeners.map((listener, index) => {
  14970. const id = `${element.id}-executionListener-${index}`;
  14971. // @TODO(barmac): Find a way to pass translate for internationalized label.
  14972. return {
  14973. id,
  14974. label: getListenerLabel(listener),
  14975. entries: ExecutionListener({
  14976. idPrefix: id,
  14977. element,
  14978. listener
  14979. }),
  14980. remove: removeListenerFactory({
  14981. element,
  14982. listener,
  14983. commandStack
  14984. })
  14985. };
  14986. }),
  14987. add: addExecutionListenerFactory({
  14988. bpmnFactory,
  14989. commandStack,
  14990. element
  14991. })
  14992. };
  14993. }
  14994. function ExecutionListener(props) {
  14995. const {
  14996. idPrefix,
  14997. element,
  14998. listener
  14999. } = props;
  15000. return [{
  15001. id: `${idPrefix}-eventType`,
  15002. component: EventType,
  15003. listener
  15004. }, {
  15005. id: `${idPrefix}-listenerType`,
  15006. component: ListenerType,
  15007. listener
  15008. }, ...ImplementationDetails({
  15009. idPrefix,
  15010. element,
  15011. listener
  15012. }), {
  15013. id: `${idPrefix}-fields`,
  15014. component: Fields,
  15015. listener
  15016. }];
  15017. }
  15018. function TaskListenerProps({
  15019. element,
  15020. injector
  15021. }) {
  15022. if (!is(element, 'bpmn:UserTask')) {
  15023. return;
  15024. }
  15025. const bpmnFactory = injector.get('bpmnFactory'),
  15026. commandStack = injector.get('commandStack');
  15027. const businessObject = getListenersContainer(element);
  15028. const listeners = getExtensionElementsList(businessObject, 'camunda:TaskListener');
  15029. return {
  15030. items: listeners.map((listener, index) => {
  15031. const id = `${element.id}-taskListener-${index}`;
  15032. // @TODO(barmac): Find a way to pass translate for internationalized label.
  15033. return {
  15034. id,
  15035. label: getListenerLabel(listener),
  15036. entries: TaskListener({
  15037. idPrefix: id,
  15038. element,
  15039. listener
  15040. }),
  15041. remove: removeListenerFactory({
  15042. element,
  15043. listener,
  15044. commandStack
  15045. })
  15046. };
  15047. }),
  15048. add: addTaskListenerFactory({
  15049. bpmnFactory,
  15050. commandStack,
  15051. element
  15052. })
  15053. };
  15054. }
  15055. function TaskListener(props) {
  15056. const {
  15057. idPrefix,
  15058. element,
  15059. listener
  15060. } = props;
  15061. return [{
  15062. id: `${idPrefix}-eventType`,
  15063. component: EventType,
  15064. listener
  15065. }, {
  15066. id: `${idPrefix}-listenerId`,
  15067. component: ListenerId,
  15068. listener
  15069. }, {
  15070. id: `${idPrefix}-listenerType`,
  15071. component: ListenerType,
  15072. listener
  15073. }, ...ImplementationDetails({
  15074. idPrefix,
  15075. element,
  15076. listener
  15077. }), ...EventTypeDetails({
  15078. idPrefix,
  15079. element,
  15080. listener
  15081. }), {
  15082. id: `${idPrefix}-fields`,
  15083. component: Fields,
  15084. listener
  15085. }];
  15086. }
  15087. function removeListenerFactory({
  15088. element,
  15089. listener,
  15090. commandStack
  15091. }) {
  15092. return function removeListener(event) {
  15093. event.stopPropagation();
  15094. removeExtensionElements(element, getListenersContainer(element), listener, commandStack);
  15095. };
  15096. }
  15097. function EventType({
  15098. id,
  15099. element,
  15100. listener
  15101. }) {
  15102. const translate = useService('translate');
  15103. const bpmnFactory = useService('bpmnFactory');
  15104. const commandStack = useService('commandStack');
  15105. function getValue() {
  15106. return listener.get('event');
  15107. }
  15108. function setValue(value) {
  15109. const properties = getDefaultEventTypeProperties(value, bpmnFactory);
  15110. commandStack.execute('element.updateModdleProperties', {
  15111. element,
  15112. moddleElement: listener,
  15113. properties
  15114. });
  15115. }
  15116. function getOptions() {
  15117. if (is(listener, 'camunda:TaskListener')) {
  15118. return [{
  15119. value: 'create',
  15120. label: translate('create')
  15121. }, {
  15122. value: 'assignment',
  15123. label: translate('assignment')
  15124. }, {
  15125. value: 'complete',
  15126. label: translate('complete')
  15127. }, {
  15128. value: 'delete',
  15129. label: translate('delete')
  15130. }, {
  15131. value: 'update',
  15132. label: translate('update')
  15133. }, {
  15134. value: 'timeout',
  15135. label: translate('timeout')
  15136. }];
  15137. }
  15138. if (is(element, 'bpmn:SequenceFlow')) {
  15139. return [{
  15140. value: 'take',
  15141. label: translate('take')
  15142. }];
  15143. }
  15144. return [{
  15145. value: 'start',
  15146. label: translate('start')
  15147. }, {
  15148. value: 'end',
  15149. label: translate('end')
  15150. }];
  15151. }
  15152. return jsx(SelectEntry, {
  15153. id: id,
  15154. label: translate('Event type'),
  15155. getValue: getValue,
  15156. setValue: setValue,
  15157. getOptions: getOptions
  15158. });
  15159. }
  15160. function ListenerId({
  15161. id,
  15162. element,
  15163. listener
  15164. }) {
  15165. const translate = useService('translate');
  15166. const debounce = useService('debounceInput');
  15167. const commandStack = useService('commandStack');
  15168. let options = {
  15169. element,
  15170. id: id,
  15171. label: translate('Listener ID'),
  15172. debounce,
  15173. isEdited: isTextFieldEntryEdited,
  15174. setValue: value => {
  15175. commandStack.execute('element.updateModdleProperties', {
  15176. element,
  15177. moddleElement: listener,
  15178. properties: {
  15179. 'camunda:id': value
  15180. }
  15181. });
  15182. },
  15183. getValue: () => {
  15184. return listener.get('camunda:id');
  15185. }
  15186. };
  15187. return TextFieldEntry(options);
  15188. }
  15189. function ListenerType({
  15190. id,
  15191. element,
  15192. listener
  15193. }) {
  15194. const modeling = useService('modeling');
  15195. const translate = useService('translate');
  15196. const bpmnFactory = useService('bpmnFactory');
  15197. function getValue() {
  15198. return getListenerType(listener);
  15199. }
  15200. function setValue(value) {
  15201. const properties = getDefaultImplementationProperties(value, bpmnFactory);
  15202. modeling.updateModdleProperties(element, listener, properties);
  15203. }
  15204. function getOptions() {
  15205. return getListenerTypeOptions(translate);
  15206. }
  15207. return jsx(SelectEntry, {
  15208. id: id,
  15209. label: translate('Listener type'),
  15210. getValue: getValue,
  15211. setValue: setValue,
  15212. getOptions: getOptions
  15213. });
  15214. }
  15215. function ImplementationDetails(props) {
  15216. const {
  15217. idPrefix,
  15218. element,
  15219. listener
  15220. } = props;
  15221. const type = getListenerType(listener);
  15222. if (type === 'class') {
  15223. return [{
  15224. id: getPrefixedId(idPrefix, 'javaClass'),
  15225. component: JavaClass,
  15226. businessObject: listener
  15227. }];
  15228. } else if (type === 'expression') {
  15229. return [{
  15230. id: getPrefixedId(idPrefix, 'expression'),
  15231. component: Expression,
  15232. businessObject: listener
  15233. }];
  15234. } else if (type === 'delegateExpression') {
  15235. return [{
  15236. id: getPrefixedId(idPrefix, 'delegateExpression'),
  15237. component: DelegateExpression,
  15238. businessObject: listener
  15239. }];
  15240. } else if (type === 'script') {
  15241. return ScriptProps({
  15242. element,
  15243. script: listener.get('script'),
  15244. prefix: idPrefix
  15245. });
  15246. }
  15247. // should never happen
  15248. return [];
  15249. }
  15250. function EventTypeDetails(props) {
  15251. const {
  15252. idPrefix,
  15253. element,
  15254. listener
  15255. } = props;
  15256. const type = listener.get('event');
  15257. if (type === 'timeout') {
  15258. return TimerProps({
  15259. element,
  15260. listener,
  15261. timerEventDefinition: getTimerEventDefinition$1(listener),
  15262. idPrefix: idPrefix
  15263. });
  15264. }
  15265. return [];
  15266. }
  15267. function Field(props) {
  15268. const {
  15269. element,
  15270. id: idPrefix,
  15271. index,
  15272. item: field,
  15273. open
  15274. } = props;
  15275. const fieldId = `${idPrefix}-field-${index}`;
  15276. return jsx(CollapsibleEntry, {
  15277. id: fieldId,
  15278. element: element,
  15279. entries: FieldInjection({
  15280. element,
  15281. field,
  15282. idPrefix: fieldId
  15283. }),
  15284. label: field.get('name') || '<empty>',
  15285. open: open
  15286. });
  15287. }
  15288. function Fields(props) {
  15289. const {
  15290. id,
  15291. element,
  15292. listener
  15293. } = props;
  15294. const bpmnFactory = useService('bpmnFactory');
  15295. const commandStack = useService('commandStack');
  15296. const translate = useService('translate');
  15297. const fields = listener.get('fields');
  15298. function addField() {
  15299. const field = createElement('camunda:Field', {}, listener, bpmnFactory);
  15300. commandStack.execute('element.updateModdleProperties', {
  15301. element,
  15302. moddleElement: listener,
  15303. properties: {
  15304. fields: [...listener.get('fields'), field]
  15305. }
  15306. });
  15307. }
  15308. function removeField(field) {
  15309. commandStack.execute('element.updateModdleProperties', {
  15310. element,
  15311. moddleElement: listener,
  15312. properties: {
  15313. fields: without(listener.get('fields'), field)
  15314. }
  15315. });
  15316. }
  15317. return jsx(ListEntry, {
  15318. id: id,
  15319. element: element,
  15320. label: translate('Field injection'),
  15321. items: fields,
  15322. component: Field,
  15323. onAdd: addField,
  15324. onRemove: removeField,
  15325. compareFn: compareName,
  15326. autoFocusEntry: true
  15327. });
  15328. }
  15329. function addListenerFactory({
  15330. bpmnFactory,
  15331. commandStack,
  15332. element,
  15333. listenerGroup
  15334. }) {
  15335. return function (event) {
  15336. event.stopPropagation();
  15337. const listener = bpmnFactory.create(listenerGroup, {
  15338. event: getDefaultEvent(element, listenerGroup),
  15339. class: ''
  15340. });
  15341. const businessObject = getListenersContainer(element);
  15342. addExtensionElements(element, businessObject, listener, bpmnFactory, commandStack);
  15343. };
  15344. }
  15345. function addTaskListenerFactory(props) {
  15346. return addListenerFactory({
  15347. ...props,
  15348. listenerGroup: 'camunda:TaskListener'
  15349. });
  15350. }
  15351. function addExecutionListenerFactory(props) {
  15352. return addListenerFactory({
  15353. ...props,
  15354. listenerGroup: 'camunda:ExecutionListener'
  15355. });
  15356. }
  15357. // helper
  15358. /**
  15359. * Get a readable label for a listener.
  15360. *
  15361. * @param {ModdleElement} listener
  15362. * @param {string => string} [translate]
  15363. */
  15364. function getListenerLabel(listener, translate = value => value) {
  15365. const event = listener.get('event');
  15366. const implementationType = getListenerType(listener);
  15367. return `${translate(EVENT_TO_LABEL[event])}: ${translate(IMPLEMENTATION_TYPE_TO_LABEL[implementationType])}`;
  15368. }
  15369. function getListenerTypeOptions(translate) {
  15370. return Object.entries(IMPLEMENTATION_TYPE_TO_LABEL).map(([value, label]) => ({
  15371. value,
  15372. label: translate(label)
  15373. }));
  15374. }
  15375. function getListenerType(listener) {
  15376. return getImplementationType(listener);
  15377. }
  15378. function getDefaultEvent(element, listenerGroup) {
  15379. if (listenerGroup === 'camunda:TaskListener') return 'create';
  15380. return is(element, 'bpmn:SequenceFlow') ? 'take' : 'start';
  15381. }
  15382. function getDefaultImplementationProperties(type, bpmnFactory) {
  15383. switch (type) {
  15384. case 'class':
  15385. return {
  15386. ...DEFAULT_PROPS,
  15387. 'class': ''
  15388. };
  15389. case 'expression':
  15390. return {
  15391. ...DEFAULT_PROPS,
  15392. 'expression': ''
  15393. };
  15394. case 'delegateExpression':
  15395. return {
  15396. ...DEFAULT_PROPS,
  15397. 'delegateExpression': ''
  15398. };
  15399. case 'script':
  15400. return {
  15401. ...DEFAULT_PROPS,
  15402. 'script': bpmnFactory.create('camunda:Script')
  15403. };
  15404. }
  15405. }
  15406. function getDefaultEventTypeProperties(type, bpmnFactory) {
  15407. switch (type) {
  15408. case 'timeout':
  15409. return {
  15410. ...DEFAULT_EVENT_PROPS,
  15411. eventDefinitions: [bpmnFactory.create('bpmn:TimerEventDefinition')],
  15412. event: type
  15413. };
  15414. default:
  15415. return {
  15416. ...DEFAULT_EVENT_PROPS,
  15417. event: type
  15418. };
  15419. }
  15420. }
  15421. function getPrefixedId(prefix, id) {
  15422. return `${prefix}-${id}`;
  15423. }
  15424. function compareName(field, anotherField) {
  15425. const [name = '', anotherName = ''] = [field.name, anotherField.name];
  15426. return name === anotherName ? 0 : name > anotherName ? 1 : -1;
  15427. }
  15428. function getListenersContainer(element) {
  15429. const businessObject = getBusinessObject(element);
  15430. return businessObject.get('processRef') || businessObject;
  15431. }
  15432. function ProcessVariablesEntry(props) {
  15433. const {
  15434. element
  15435. } = props;
  15436. const [variables, setVariables] = useState([]);
  15437. useEffect(async () => {
  15438. const businessObject = getBusinessObject(element);
  15439. const rootElement = getRootElement(businessObject);
  15440. const scope = getScope(element);
  15441. const rawVariables = await getVariablesForScope(scope, rootElement);
  15442. const withName = populateElementNames(sortByName(rawVariables));
  15443. setVariables(withName);
  15444. }, [element]);
  15445. if (!variables.length) {
  15446. return null;
  15447. }
  15448. const byScope = groupByScope(variables);
  15449. const multiScope = isMultiScope(byScope);
  15450. let variableItems = [];
  15451. // (2) get variables to display
  15452. if (multiScope) {
  15453. // (2a) multiple scopes, sub scopes first
  15454. // assumption: variables extractor fetches parent variables first
  15455. const reversed = map(reverse(keys(byScope)), scopeKey => byScope[scopeKey]);
  15456. variableItems = flatten(reversed);
  15457. } else {
  15458. // (2b) single scope
  15459. variableItems = variables;
  15460. }
  15461. const items = variableItems.map((variable, index) => {
  15462. const id = element.id + '-variable-' + index;
  15463. return {
  15464. id,
  15465. label: variable.name,
  15466. entries: [...ProcessVariableItem({
  15467. idPrefix: id,
  15468. multiScope,
  15469. variable
  15470. })]
  15471. };
  15472. });
  15473. return jsx(ListGroup, {
  15474. ...props,
  15475. items: items,
  15476. shouldSort: false
  15477. });
  15478. }
  15479. function ProcessVariablesProps(props) {
  15480. const {
  15481. element
  15482. } = props;
  15483. if (!canHaveProcessVariables(element)) {
  15484. return null;
  15485. }
  15486. return {
  15487. component: ProcessVariablesEntry,
  15488. shouldSort: false
  15489. };
  15490. }
  15491. function ProcessVariableItem(props) {
  15492. const {
  15493. idPrefix,
  15494. multiScope,
  15495. variable
  15496. } = props;
  15497. let entries = [];
  15498. if (multiScope) {
  15499. entries.push({
  15500. id: idPrefix + '-scope',
  15501. component: Scope,
  15502. idPrefix,
  15503. variable
  15504. });
  15505. }
  15506. entries.push({
  15507. id: idPrefix + '-createdIn',
  15508. component: CreatedIn,
  15509. idPrefix,
  15510. variable
  15511. });
  15512. return entries;
  15513. }
  15514. function Scope(props) {
  15515. const {
  15516. idPrefix,
  15517. variable
  15518. } = props;
  15519. const translate = useService('translate');
  15520. const id = idPrefix + '-scope';
  15521. return jsxs("div", {
  15522. "data-entry-id": id,
  15523. class: "bio-properties-panel-entry",
  15524. children: [jsx("b", {
  15525. style: "font-weight: bold",
  15526. class: "bio-properties-panel-label",
  15527. children: translate('Scope')
  15528. }), jsx("label", {
  15529. id: prefixId(id),
  15530. class: "bio-properties-panel-label",
  15531. children: variable.scope
  15532. })]
  15533. });
  15534. }
  15535. function CreatedIn(props) {
  15536. const {
  15537. idPrefix,
  15538. variable
  15539. } = props;
  15540. const translate = useService('translate');
  15541. const id = idPrefix + '-createdIn';
  15542. const origin = variable.origin.join(', ');
  15543. return jsxs("div", {
  15544. "data-entry-id": id,
  15545. class: "bio-properties-panel-entry",
  15546. children: [jsx("b", {
  15547. style: "font-weight: bold",
  15548. class: "bio-properties-panel-label",
  15549. children: translate('Created in')
  15550. }), jsx("label", {
  15551. id: prefixId(id),
  15552. class: "bio-properties-panel-label",
  15553. children: origin
  15554. })]
  15555. });
  15556. }
  15557. // helper //////////////////////
  15558. function canHaveProcessVariables(element) {
  15559. const businessObject = getBusinessObject(element);
  15560. return isAny(element, ['bpmn:Process', 'bpmn:SubProcess']) || is(element, 'bpmn:Participant') && businessObject.get('processRef');
  15561. }
  15562. function getRootElement(element) {
  15563. const businessObject = getBusinessObject(element);
  15564. if (is(businessObject, 'bpmn:Participant')) {
  15565. return businessObject.processRef;
  15566. }
  15567. if (is(businessObject, 'bpmn:Process')) {
  15568. return businessObject;
  15569. }
  15570. let parent = businessObject;
  15571. while (parent.$parent && !is(parent, 'bpmn:Process')) {
  15572. parent = parent.$parent;
  15573. }
  15574. return parent;
  15575. }
  15576. function getScope(element) {
  15577. const bo = getBusinessObject(element);
  15578. if (is(element, 'bpmn:Participant')) {
  15579. return bo.processRef.id;
  15580. }
  15581. return bo.id;
  15582. }
  15583. function sortByName(variables) {
  15584. return sortBy(variables, function (variable) {
  15585. return variable.name;
  15586. });
  15587. }
  15588. function groupByScope(variables) {
  15589. return groupBy(variables, 'scope');
  15590. }
  15591. function populateElementNames(variables) {
  15592. forEach(variables, function (variable) {
  15593. const names = map(variable.origin, function (element) {
  15594. return element.name || element.id;
  15595. });
  15596. variable.origin = names;
  15597. variable.scope = variable.scope.name || variable.scope.id;
  15598. });
  15599. return variables;
  15600. }
  15601. function isMultiScope(scopedVariables) {
  15602. return keys(scopedVariables).length > 1;
  15603. }
  15604. function reverse(array) {
  15605. return map(array, function (a, i) {
  15606. return array[array.length - 1 - i];
  15607. });
  15608. }
  15609. function prefixId(id) {
  15610. return `bio-properties-panel-${id}`;
  15611. }
  15612. function ScriptTaskProps(props) {
  15613. const {
  15614. element
  15615. } = props;
  15616. if (!is(element, 'bpmn:ScriptTask')) {
  15617. return [];
  15618. }
  15619. const entries = [...ScriptProps({
  15620. element
  15621. })];
  15622. entries.push({
  15623. id: 'scriptResultVariable',
  15624. component: ResultVariable,
  15625. isEdited: isTextFieldEntryEdited
  15626. });
  15627. return entries;
  15628. }
  15629. function ResultVariable(props) {
  15630. const {
  15631. element
  15632. } = props;
  15633. const commandStack = useService('commandStack');
  15634. const translate = useService('translate');
  15635. const debounce = useService('debounceInput');
  15636. const businessObject = getBusinessObject(element);
  15637. const getValue = () => {
  15638. return businessObject.get('camunda:resultVariable');
  15639. };
  15640. const setValue = value => {
  15641. commandStack.execute('element.updateModdleProperties', {
  15642. element,
  15643. moddleElement: businessObject,
  15644. properties: {
  15645. 'camunda:resultVariable': value
  15646. }
  15647. });
  15648. };
  15649. return TextFieldEntry({
  15650. element,
  15651. id: 'scriptResultVariable',
  15652. label: translate('Result variable'),
  15653. getValue,
  15654. setValue,
  15655. debounce
  15656. });
  15657. }
  15658. function TasklistProps(props) {
  15659. const {
  15660. element
  15661. } = props;
  15662. const businessObject = getBusinessObject(element);
  15663. const isEdited = node => {
  15664. return node && !node.checked;
  15665. };
  15666. if (!is(element, 'bpmn:Process') && !(is(element, 'bpmn:Participant') && businessObject.get('processRef'))) {
  15667. return [];
  15668. }
  15669. return [{
  15670. id: 'isStartableInTasklist',
  15671. component: Startable,
  15672. isEdited
  15673. }];
  15674. }
  15675. function Startable(props) {
  15676. const {
  15677. element
  15678. } = props;
  15679. const commandStack = useService('commandStack');
  15680. const translate = useService('translate');
  15681. const process = getProcess$1(element);
  15682. const getValue = () => {
  15683. return process.get('camunda:isStartableInTasklist');
  15684. };
  15685. const setValue = value => {
  15686. commandStack.execute('element.updateModdleProperties', {
  15687. element,
  15688. moddleElement: process,
  15689. properties: {
  15690. 'camunda:isStartableInTasklist': value
  15691. }
  15692. });
  15693. };
  15694. return CheckboxEntry({
  15695. element,
  15696. id: 'isStartableInTasklist',
  15697. label: translate('Startable'),
  15698. getValue,
  15699. setValue
  15700. });
  15701. }
  15702. // helper //////////////////
  15703. function getProcess$1(element) {
  15704. return is(element, 'bpmn:Process') ? getBusinessObject(element) : getBusinessObject(element).get('processRef');
  15705. }
  15706. /**
  15707. * Cf. https://docs.camunda.org/manual/latest/reference/bpmn20/tasks/user-task/
  15708. */
  15709. function UserAssignmentProps(props) {
  15710. const {
  15711. element
  15712. } = props;
  15713. if (!is(element, 'camunda:Assignable')) {
  15714. return [];
  15715. }
  15716. return [{
  15717. id: 'assignee',
  15718. component: Assignee,
  15719. isEdited: isTextFieldEntryEdited
  15720. }, {
  15721. id: 'candidateGroups',
  15722. component: CandidateGroups,
  15723. isEdited: isTextFieldEntryEdited
  15724. }, {
  15725. id: 'candidateUsers',
  15726. component: CandidateUsers,
  15727. isEdited: isTextFieldEntryEdited
  15728. }, {
  15729. id: 'dueDate',
  15730. component: DueDate,
  15731. isEdited: isTextFieldEntryEdited
  15732. }, {
  15733. id: 'followUpDate',
  15734. component: FollowUpDate,
  15735. isEdited: isTextFieldEntryEdited
  15736. }, {
  15737. id: 'priority',
  15738. component: Priority,
  15739. isEdited: isTextFieldEntryEdited
  15740. }];
  15741. }
  15742. function Assignee(props) {
  15743. const {
  15744. element
  15745. } = props;
  15746. const commandStack = useService('commandStack');
  15747. const translate = useService('translate');
  15748. const debounce = useService('debounceInput');
  15749. const businessObject = getBusinessObject(element);
  15750. const getValue = () => {
  15751. return businessObject.get('camunda:assignee');
  15752. };
  15753. const setValue = value => {
  15754. commandStack.execute('element.updateModdleProperties', {
  15755. element,
  15756. moddleElement: businessObject,
  15757. properties: {
  15758. 'camunda:assignee': value
  15759. }
  15760. });
  15761. };
  15762. return TextFieldEntry({
  15763. element,
  15764. id: 'assignee',
  15765. label: translate('Assignee'),
  15766. getValue,
  15767. setValue,
  15768. debounce
  15769. });
  15770. }
  15771. function CandidateUsers(props) {
  15772. const {
  15773. element
  15774. } = props;
  15775. const commandStack = useService('commandStack');
  15776. const translate = useService('translate');
  15777. const debounce = useService('debounceInput');
  15778. const businessObject = getBusinessObject(element);
  15779. const getValue = () => {
  15780. return businessObject.get('camunda:candidateUsers');
  15781. };
  15782. const setValue = value => {
  15783. commandStack.execute('element.updateModdleProperties', {
  15784. element,
  15785. moddleElement: businessObject,
  15786. properties: {
  15787. 'camunda:candidateUsers': value
  15788. }
  15789. });
  15790. };
  15791. return TextFieldEntry({
  15792. element,
  15793. id: 'candidateUsers',
  15794. label: translate('Candidate users'),
  15795. getValue,
  15796. setValue,
  15797. debounce
  15798. });
  15799. }
  15800. function CandidateGroups(props) {
  15801. const {
  15802. element
  15803. } = props;
  15804. const commandStack = useService('commandStack');
  15805. const translate = useService('translate');
  15806. const debounce = useService('debounceInput');
  15807. const businessObject = getBusinessObject(element);
  15808. const getValue = () => {
  15809. return businessObject.get('camunda:candidateGroups');
  15810. };
  15811. const setValue = value => {
  15812. commandStack.execute('element.updateModdleProperties', {
  15813. element,
  15814. moddleElement: businessObject,
  15815. properties: {
  15816. 'camunda:candidateGroups': value
  15817. }
  15818. });
  15819. };
  15820. return TextFieldEntry({
  15821. element,
  15822. id: 'candidateGroups',
  15823. label: translate('Candidate groups'),
  15824. getValue,
  15825. setValue,
  15826. debounce
  15827. });
  15828. }
  15829. function DueDate(props) {
  15830. const {
  15831. element
  15832. } = props;
  15833. const commandStack = useService('commandStack');
  15834. const translate = useService('translate');
  15835. const debounce = useService('debounceInput');
  15836. const businessObject = getBusinessObject(element);
  15837. const getValue = () => {
  15838. return businessObject.get('camunda:dueDate');
  15839. };
  15840. const setValue = value => {
  15841. commandStack.execute('element.updateModdleProperties', {
  15842. element,
  15843. moddleElement: businessObject,
  15844. properties: {
  15845. 'camunda:dueDate': value
  15846. }
  15847. });
  15848. };
  15849. return TextFieldEntry({
  15850. element,
  15851. id: 'dueDate',
  15852. label: translate('Due date'),
  15853. description: translate('The due date as an EL expression (e.g. ${someDate}) or an ISO date (e.g. 2015-06-26T09:54:00).'),
  15854. getValue,
  15855. setValue,
  15856. debounce
  15857. });
  15858. }
  15859. function FollowUpDate(props) {
  15860. const {
  15861. element
  15862. } = props;
  15863. const commandStack = useService('commandStack');
  15864. const translate = useService('translate');
  15865. const debounce = useService('debounceInput');
  15866. const businessObject = getBusinessObject(element);
  15867. const getValue = () => {
  15868. return businessObject.get('camunda:followUpDate');
  15869. };
  15870. const setValue = value => {
  15871. commandStack.execute('element.updateModdleProperties', {
  15872. element,
  15873. moddleElement: businessObject,
  15874. properties: {
  15875. 'camunda:followUpDate': value
  15876. }
  15877. });
  15878. };
  15879. return TextFieldEntry({
  15880. element,
  15881. id: 'followUpDate',
  15882. label: translate('Follow up date'),
  15883. description: translate('The follow up date as an EL expression (e.g. ${someDate}) or an ' + 'ISO date (e.g. 2015-06-26T09:54:00).'),
  15884. getValue,
  15885. setValue,
  15886. debounce
  15887. });
  15888. }
  15889. function Priority(props) {
  15890. const {
  15891. element
  15892. } = props;
  15893. const commandStack = useService('commandStack');
  15894. const translate = useService('translate');
  15895. const debounce = useService('debounceInput');
  15896. const businessObject = getBusinessObject(element);
  15897. const getValue = () => {
  15898. return businessObject.get('camunda:priority');
  15899. };
  15900. const setValue = value => {
  15901. commandStack.execute('element.updateModdleProperties', {
  15902. element,
  15903. moddleElement: businessObject,
  15904. properties: {
  15905. 'camunda:priority': value
  15906. }
  15907. });
  15908. };
  15909. return TextFieldEntry({
  15910. element,
  15911. id: 'priority',
  15912. label: translate('Priority'),
  15913. getValue,
  15914. setValue,
  15915. debounce
  15916. });
  15917. }
  15918. function VersionTagProps(props) {
  15919. const {
  15920. element
  15921. } = props;
  15922. const businessObject = getBusinessObject(element);
  15923. if (!is(element, 'bpmn:Process') && !(is(element, 'bpmn:Participant') && businessObject.get('processRef'))) {
  15924. return [];
  15925. }
  15926. return [{
  15927. id: 'versionTag',
  15928. component: VersionTag,
  15929. isEdited: isTextFieldEntryEdited
  15930. }];
  15931. }
  15932. function VersionTag(props) {
  15933. const {
  15934. element
  15935. } = props;
  15936. const commandStack = useService('commandStack');
  15937. const translate = useService('translate');
  15938. const debounce = useService('debounceInput');
  15939. const process = getProcess(element);
  15940. const getValue = () => {
  15941. return process.get('camunda:versionTag') || '';
  15942. };
  15943. const setValue = value => {
  15944. commandStack.execute('element.updateModdleProperties', {
  15945. element,
  15946. moddleElement: process,
  15947. properties: {
  15948. 'camunda:versionTag': value
  15949. }
  15950. });
  15951. };
  15952. return TextFieldEntry({
  15953. element,
  15954. id: 'versionTag',
  15955. label: translate('Version tag'),
  15956. getValue,
  15957. setValue,
  15958. debounce
  15959. });
  15960. }
  15961. // helper //////////////////
  15962. function getProcess(element) {
  15963. return is(element, 'bpmn:Process') ? getBusinessObject(element) : getBusinessObject(element).get('processRef');
  15964. }
  15965. const LOW_PRIORITY = 500;
  15966. 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];
  15967. /**
  15968. * Provides `camunda` namespace properties.
  15969. *
  15970. * @example
  15971. * ```javascript
  15972. * import BpmnModeler from 'bpmn-js/lib/Modeler';
  15973. * import {
  15974. * BpmnPropertiesPanelModule,
  15975. * BpmnPropertiesProviderModule,
  15976. * CamundaPlatformPropertiesProviderModule
  15977. * } from 'bpmn-js-properties-panel';
  15978. *
  15979. * const modeler = new BpmnModeler({
  15980. * container: '#canvas',
  15981. * propertiesPanel: {
  15982. * parent: '#properties'
  15983. * },
  15984. * additionalModules: [
  15985. * BpmnPropertiesPanelModule,
  15986. * BpmnPropertiesProviderModule,
  15987. * CamundaPlatformPropertiesProviderModule
  15988. * ]
  15989. * });
  15990. * ```
  15991. */
  15992. class CamundaPlatformPropertiesProvider {
  15993. constructor(propertiesPanel, injector) {
  15994. propertiesPanel.registerProvider(LOW_PRIORITY, this);
  15995. this._injector = injector;
  15996. }
  15997. getGroups(element) {
  15998. return groups => {
  15999. // (1) add Camunda Platform specific groups
  16000. groups = groups.concat(this._getGroups(element));
  16001. // (2) update existing groups with Camunda Platform specific properties
  16002. updateGeneralGroup(groups, element);
  16003. updateErrorGroup(groups, element);
  16004. updateEscalationGroup(groups, element);
  16005. updateMultiInstanceGroup(groups, element);
  16006. updateTimerGroup(groups, element);
  16007. // (3) move groups given specific priorities
  16008. moveImplementationGroup(groups);
  16009. return groups;
  16010. };
  16011. }
  16012. _getGroups(element) {
  16013. const groups = CAMUNDA_PLATFORM_GROUPS.map(createGroup => createGroup(element, this._injector));
  16014. // contract: if a group returns null, it should not be displayed at all
  16015. return groups.filter(group => group !== null);
  16016. }
  16017. }
  16018. CamundaPlatformPropertiesProvider.$inject = ['propertiesPanel', 'injector'];
  16019. /**
  16020. * This ensures the <Implementation> group always locates after <Documentation>
  16021. */
  16022. function moveImplementationGroup(groups) {
  16023. const documentationGroupIdx = findGroupIndex(groups, 'documentation');
  16024. if (documentationGroupIdx < 0) {
  16025. return;
  16026. }
  16027. return moveGroup(groups, 'CamundaPlatform__Implementation', documentationGroupIdx + 1);
  16028. }
  16029. function updateGeneralGroup(groups, element) {
  16030. const generalGroup = findGroup(groups, 'general');
  16031. if (!generalGroup) {
  16032. return;
  16033. }
  16034. const {
  16035. entries
  16036. } = generalGroup;
  16037. // (1) add version tag before executable (if existing)
  16038. const executableEntry = findIndex(entries, entry => entry.id === 'isExecutable');
  16039. const insertIndex = executableEntry >= 0 ? executableEntry : entries.length;
  16040. entries.splice(insertIndex, 0, ...VersionTagProps({
  16041. element
  16042. }));
  16043. }
  16044. function updateErrorGroup(groups, element) {
  16045. const errorGroup = findGroup(groups, 'error');
  16046. if (!errorGroup) {
  16047. return;
  16048. }
  16049. const {
  16050. entries
  16051. } = errorGroup;
  16052. ErrorProps({
  16053. element,
  16054. entries
  16055. });
  16056. }
  16057. function updateMultiInstanceGroup(groups, element) {
  16058. const multiInstanceGroup = findGroup(groups, 'multiInstance');
  16059. if (!multiInstanceGroup) {
  16060. return;
  16061. }
  16062. const {
  16063. entries
  16064. } = multiInstanceGroup;
  16065. MultiInstanceProps({
  16066. element,
  16067. entries
  16068. });
  16069. }
  16070. function updateEscalationGroup(groups, element) {
  16071. const escalationGroup = findGroup(groups, 'escalation');
  16072. if (!escalationGroup) {
  16073. return;
  16074. }
  16075. const {
  16076. entries
  16077. } = escalationGroup;
  16078. EscalationProps({
  16079. element,
  16080. entries
  16081. });
  16082. }
  16083. function updateTimerGroup(groups, element) {
  16084. const timerEventGroup = findGroup(groups, 'timer');
  16085. if (!timerEventGroup) {
  16086. return;
  16087. }
  16088. timerEventGroup.entries = [...TimerProps({
  16089. element
  16090. })];
  16091. }
  16092. function ImplementationGroup(element, injector) {
  16093. const translate = injector.get('translate');
  16094. const group = {
  16095. label: translate('Implementation'),
  16096. id: 'CamundaPlatform__Implementation',
  16097. component: Group,
  16098. entries: [...ImplementationProps({
  16099. element
  16100. })]
  16101. };
  16102. if (group.entries.length) {
  16103. return group;
  16104. }
  16105. return null;
  16106. }
  16107. function ErrorsGroup(element, injector) {
  16108. const translate = injector.get('translate');
  16109. const group = {
  16110. label: translate('Errors'),
  16111. id: 'CamundaPlatform__Errors',
  16112. component: ListGroup,
  16113. ...ErrorsProps({
  16114. element,
  16115. injector
  16116. })
  16117. };
  16118. if (group.items) {
  16119. return group;
  16120. }
  16121. return null;
  16122. }
  16123. function UserAssignmentGroup(element, injector) {
  16124. const translate = injector.get('translate');
  16125. const group = {
  16126. label: translate('User assignment'),
  16127. id: 'CamundaPlatform__UserAssignment',
  16128. component: Group,
  16129. entries: [...UserAssignmentProps({
  16130. element
  16131. })]
  16132. };
  16133. if (group.entries.length) {
  16134. return group;
  16135. }
  16136. return null;
  16137. }
  16138. function ScriptGroup(element, injector) {
  16139. const translate = injector.get('translate');
  16140. const group = {
  16141. label: translate('Script'),
  16142. id: 'CamundaPlatform__Script',
  16143. component: Group,
  16144. entries: [...ScriptTaskProps({
  16145. element
  16146. })]
  16147. };
  16148. if (group.entries.length) {
  16149. return group;
  16150. }
  16151. return null;
  16152. }
  16153. function CallActivityGroup(element, injector) {
  16154. const translate = injector.get('translate');
  16155. const group = {
  16156. label: translate('Called element'),
  16157. id: 'CamundaPlatform__CallActivity',
  16158. component: Group,
  16159. entries: [...CallActivityProps({
  16160. element
  16161. })]
  16162. };
  16163. if (group.entries.length) {
  16164. return group;
  16165. }
  16166. return null;
  16167. }
  16168. function ConditionGroup(element, injector) {
  16169. const translate = injector.get('translate');
  16170. const group = {
  16171. label: translate('Condition'),
  16172. id: 'CamundaPlatform__Condition',
  16173. component: Group,
  16174. entries: [...ConditionProps({
  16175. element
  16176. })]
  16177. };
  16178. if (group.entries.length) {
  16179. return group;
  16180. }
  16181. return null;
  16182. }
  16183. function StartInitiatorGroup(element, injector) {
  16184. const translate = injector.get('translate');
  16185. const group = {
  16186. label: translate('Start initiator'),
  16187. id: 'CamundaPlatform__StartInitiator',
  16188. component: Group,
  16189. entries: [...InitiatorProps({
  16190. element
  16191. })]
  16192. };
  16193. if (group.entries.length) {
  16194. return group;
  16195. }
  16196. return null;
  16197. }
  16198. function ExternalTaskGroup(element, injector) {
  16199. const translate = injector.get('translate');
  16200. const group = {
  16201. label: translate('External task'),
  16202. id: 'CamundaPlatform__ExternalTask',
  16203. component: Group,
  16204. entries: [...ExternalTaskPriorityProps({
  16205. element
  16206. })]
  16207. };
  16208. if (group.entries.length) {
  16209. return group;
  16210. }
  16211. return null;
  16212. }
  16213. function AsynchronousContinuationsGroup(element, injector) {
  16214. const translate = injector.get('translate');
  16215. const group = {
  16216. label: translate('Asynchronous continuations'),
  16217. id: 'CamundaPlatform__AsynchronousContinuations',
  16218. component: Group,
  16219. entries: [...AsynchronousContinuationsProps({
  16220. element
  16221. })]
  16222. };
  16223. if (group.entries.length) {
  16224. return group;
  16225. }
  16226. return null;
  16227. }
  16228. function JobExecutionGroup(element, injector) {
  16229. const translate = injector.get('translate');
  16230. const group = {
  16231. label: translate('Job execution'),
  16232. id: 'CamundaPlatform__JobExecution',
  16233. component: Group,
  16234. entries: [...JobExecutionProps({
  16235. element
  16236. })]
  16237. };
  16238. if (group.entries.length) {
  16239. return group;
  16240. }
  16241. return null;
  16242. }
  16243. function CandidateStarterGroup(element, injector) {
  16244. const translate = injector.get('translate');
  16245. const group = {
  16246. label: translate('Candidate starter'),
  16247. id: 'CamundaPlatform__CandidateStarter',
  16248. component: Group,
  16249. entries: [...CandidateStarterProps({
  16250. element
  16251. })]
  16252. };
  16253. if (group.entries.length) {
  16254. return group;
  16255. }
  16256. return null;
  16257. }
  16258. function FieldInjectionGroup(element, injector) {
  16259. const translate = injector.get('translate');
  16260. const group = {
  16261. label: translate('Field injections'),
  16262. id: 'CamundaPlatform__FieldInjection',
  16263. component: ListGroup,
  16264. ...FieldInjectionProps({
  16265. element,
  16266. injector
  16267. })
  16268. };
  16269. if (group.items) {
  16270. return group;
  16271. }
  16272. return null;
  16273. }
  16274. function HistoryCleanupGroup(element, injector) {
  16275. const translate = injector.get('translate');
  16276. const group = {
  16277. label: translate('History cleanup'),
  16278. id: 'CamundaPlatform__HistoryCleanup',
  16279. component: Group,
  16280. entries: [...HistoryCleanupProps({
  16281. element
  16282. })]
  16283. };
  16284. if (group.entries.length) {
  16285. return group;
  16286. }
  16287. return null;
  16288. }
  16289. function TasklistGroup(element, injector) {
  16290. const translate = injector.get('translate');
  16291. const group = {
  16292. label: translate('Tasklist'),
  16293. id: 'CamundaPlatform__Tasklist',
  16294. component: Group,
  16295. entries: [...TasklistProps({
  16296. element
  16297. })]
  16298. };
  16299. if (group.entries.length) {
  16300. return group;
  16301. }
  16302. return null;
  16303. }
  16304. function InMappingGroup(element, injector) {
  16305. const translate = injector.get('translate');
  16306. const group = {
  16307. label: translate('In mappings'),
  16308. id: 'CamundaPlatform__InMapping',
  16309. component: ListGroup,
  16310. ...InMappingProps({
  16311. element,
  16312. injector
  16313. })
  16314. };
  16315. if (group.items) {
  16316. return group;
  16317. }
  16318. return null;
  16319. }
  16320. function InMappingPropagationGroup(element, injector) {
  16321. const translate = injector.get('translate');
  16322. const group = {
  16323. label: translate('In mapping propagation'),
  16324. id: 'CamundaPlatform__InMappingPropagation',
  16325. component: Group,
  16326. entries: [...InMappingPropagationProps({
  16327. element
  16328. })]
  16329. };
  16330. if (group.entries.length) {
  16331. return group;
  16332. }
  16333. return null;
  16334. }
  16335. function OutMappingGroup(element, injector) {
  16336. const translate = injector.get('translate');
  16337. const group = {
  16338. label: translate('Out mappings'),
  16339. id: 'CamundaPlatform__OutMapping',
  16340. component: ListGroup,
  16341. ...OutMappingProps({
  16342. element,
  16343. injector
  16344. })
  16345. };
  16346. if (group.items) {
  16347. return group;
  16348. }
  16349. return null;
  16350. }
  16351. function OutMappingPropagationGroup(element, injector) {
  16352. const translate = injector.get('translate');
  16353. const group = {
  16354. label: translate('Out mapping propagation'),
  16355. id: 'CamundaPlatform__OutMappingPropagation',
  16356. component: Group,
  16357. entries: [...OutMappingPropagationProps({
  16358. element
  16359. })]
  16360. };
  16361. if (group.entries.length) {
  16362. return group;
  16363. }
  16364. return null;
  16365. }
  16366. function ProcessVariablesGroup(element, injector) {
  16367. const translate = injector.get('translate');
  16368. const variableProps = ProcessVariablesProps({
  16369. element,
  16370. injector
  16371. });
  16372. if (!variableProps) {
  16373. return null;
  16374. }
  16375. const group = {
  16376. label: translate('Process variables'),
  16377. id: 'CamundaPlatform__ProcessVariables',
  16378. ...variableProps
  16379. };
  16380. return group;
  16381. }
  16382. function FormDataGroup(element, injector) {
  16383. const translate = injector.get('translate');
  16384. const group = {
  16385. label: translate('Form fields'),
  16386. id: 'CamundaPlatform__FormData',
  16387. component: ListGroup,
  16388. ...FormDataProps({
  16389. element,
  16390. injector
  16391. })
  16392. };
  16393. if (group.items) {
  16394. return group;
  16395. }
  16396. return null;
  16397. }
  16398. function BusinessKeyGroup(element, injector) {
  16399. const translate = injector.get('translate');
  16400. const group = {
  16401. label: translate('Business key'),
  16402. id: 'CamundaPlatform__BusinessKey',
  16403. component: Group,
  16404. entries: [...BusinessKeyProps$1({
  16405. element
  16406. })]
  16407. };
  16408. if (group.entries.length) {
  16409. return group;
  16410. }
  16411. return null;
  16412. }
  16413. function FormGroup(element, injector) {
  16414. const translate = injector.get('translate');
  16415. const group = {
  16416. label: translate('Forms'),
  16417. id: 'CamundaPlatform__Form',
  16418. component: Group,
  16419. entries: [...FormProps({
  16420. element
  16421. })]
  16422. };
  16423. if (group.entries.length) {
  16424. return group;
  16425. }
  16426. return null;
  16427. }
  16428. function ExecutionListenerGroup(element, injector) {
  16429. const translate = injector.get('translate');
  16430. const group = {
  16431. label: translate('Execution listeners'),
  16432. id: 'CamundaPlatform__ExecutionListener',
  16433. component: ListGroup,
  16434. ...ExecutionListenerProps({
  16435. element,
  16436. injector
  16437. })
  16438. };
  16439. if (group.items) {
  16440. return group;
  16441. }
  16442. return null;
  16443. }
  16444. function TaskListenerGroup(element, injector) {
  16445. const translate = injector.get('translate');
  16446. const group = {
  16447. label: translate('Task listeners'),
  16448. id: 'CamundaPlatform__TaskListener',
  16449. component: ListGroup,
  16450. ...TaskListenerProps({
  16451. element,
  16452. injector
  16453. })
  16454. };
  16455. if (group.items) {
  16456. return group;
  16457. }
  16458. return null;
  16459. }
  16460. function InputGroup(element, injector) {
  16461. const translate = injector.get('translate');
  16462. const group = {
  16463. label: translate('Inputs'),
  16464. id: 'CamundaPlatform__Input',
  16465. component: ListGroup,
  16466. ...InputProps({
  16467. element,
  16468. injector
  16469. })
  16470. };
  16471. if (group.items) {
  16472. return group;
  16473. }
  16474. return null;
  16475. }
  16476. function OutputGroup(element, injector) {
  16477. const translate = injector.get('translate');
  16478. const group = {
  16479. label: translate('Outputs'),
  16480. id: 'CamundaPlatform__Output',
  16481. component: ListGroup,
  16482. ...OutputProps({
  16483. element,
  16484. injector
  16485. })
  16486. };
  16487. if (group.items) {
  16488. return group;
  16489. }
  16490. return null;
  16491. }
  16492. function ConnectorInputGroup(element, injector) {
  16493. const translate = injector.get('translate');
  16494. const group = {
  16495. label: translate('Connector inputs'),
  16496. id: 'CamundaPlatform__ConnectorInput',
  16497. component: ListGroup,
  16498. ...ConnectorInputProps({
  16499. element,
  16500. injector
  16501. })
  16502. };
  16503. if (group.items) {
  16504. return group;
  16505. }
  16506. return null;
  16507. }
  16508. function ConnectorOutputGroup(element, injector) {
  16509. const translate = injector.get('translate');
  16510. const group = {
  16511. label: translate('Connector outputs'),
  16512. id: 'CamundaPlatform__ConnectorOutput',
  16513. component: ListGroup,
  16514. ...ConnectorOutputProps({
  16515. element,
  16516. injector
  16517. })
  16518. };
  16519. if (group.items) {
  16520. return group;
  16521. }
  16522. return null;
  16523. }
  16524. function ExtensionPropertiesGroup(element, injector) {
  16525. const translate = injector.get('translate');
  16526. const group = {
  16527. label: translate('Extension properties'),
  16528. id: 'CamundaPlatform__ExtensionProperties',
  16529. component: ListGroup,
  16530. ...ExtensionPropertiesProps({
  16531. element,
  16532. injector
  16533. })
  16534. };
  16535. if (group.items) {
  16536. return group;
  16537. }
  16538. return null;
  16539. }
  16540. // helper /////////////////////
  16541. function findGroup(groups, id) {
  16542. return groups.find(g => g.id === id);
  16543. }
  16544. function findGroupIndex(groups, id) {
  16545. return findIndex(groups, g => g.id === id);
  16546. }
  16547. function moveGroup(groups, id, position) {
  16548. const groupIndex = findGroupIndex(groups, id);
  16549. if (position < 0 || groupIndex < 0) {
  16550. return;
  16551. }
  16552. return mutate(groups, groupIndex, position);
  16553. }
  16554. var index = {
  16555. __init__: ['camundaPlatformPropertiesProvider'],
  16556. camundaPlatformPropertiesProvider: ['type', CamundaPlatformPropertiesProvider]
  16557. };
  16558. /* eslint-disable react-hooks/rules-of-hooks */
  16559. const TooltipProvider = {
  16560. 'group-assignmentDefinition': element => {
  16561. const translate = useService('translate');
  16562. return jsxs("div", {
  16563. children: [translate('Define who the task is assigned to. One or all of the following attributes can be specified simultaneously. '), jsx("a", {
  16564. href: "https://docs.camunda.io/docs/components/modeler/bpmn/user-tasks/#assignments",
  16565. target: "_blank",
  16566. rel: "noopener",
  16567. title: translate('User task documentation'),
  16568. children: translate('Learn more.')
  16569. })]
  16570. });
  16571. },
  16572. 'group-condition': element => {
  16573. const translate = useService('translate');
  16574. return jsxs("div", {
  16575. children: [translate('Define a boolean condition expression that defines when this flow is taken. '), jsx("a", {
  16576. href: "https://docs.camunda.io/docs/components/modeler/bpmn/exclusive-gateways/#conditions",
  16577. target: "_blank",
  16578. rel: "noopener",
  16579. title: translate('Conditions documentation'),
  16580. children: translate('Learn how to define conditions.')
  16581. })]
  16582. });
  16583. },
  16584. 'group-businessRuleImplementation': element => {
  16585. const translate = useService('translate');
  16586. return jsxs("div", {
  16587. children: [translate('Evaluate a business rule, for example a DMN. To add a custom implementation, use a job worker. '), jsx("a", {
  16588. href: "https://docs.camunda.io/docs/components/modeler/bpmn/business-rule-tasks/#defining-a-task",
  16589. target: "_blank",
  16590. rel: "noopener",
  16591. title: translate('Business rule task documentation'),
  16592. children: translate('Learn more.')
  16593. })]
  16594. });
  16595. },
  16596. 'group-scriptImplementation': element => {
  16597. const translate = useService('translate');
  16598. return jsxs("div", {
  16599. children: [translate('Implement a script task using an inline FEEL expression. To add a custom implementation, use a job worker. '), jsx("a", {
  16600. href: "https://docs.camunda.io/docs/components/modeler/bpmn/script-tasks/#defining-a-script-task",
  16601. target: "_blank",
  16602. rel: "noopener",
  16603. title: translate('Script task documentation'),
  16604. children: translate('Learn more.')
  16605. })]
  16606. });
  16607. },
  16608. 'group-form': element => {
  16609. const translate = useService('translate');
  16610. return jsxs("div", {
  16611. 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", {
  16612. href: "https://docs.camunda.io/docs/guides/utilizing-forms/#connect-your-form-to-a-bpmn-diagram",
  16613. target: "_blank",
  16614. rel: "noopener",
  16615. title: translate('User task form documentation'),
  16616. children: translate('Learn more.')
  16617. })]
  16618. });
  16619. },
  16620. 'group-message': element => {
  16621. const translate = useService('translate');
  16622. if (is(element, 'bpmn:ReceiveTask')) {
  16623. return jsxs("div", {
  16624. children: [translate('Define the name of the message (e.g. '), jsx("code", {
  16625. children: "Money collected"
  16626. }), translate(') and the '), jsx("code", {
  16627. children: "correlationKey"
  16628. }), translate(' expression (e.g. '), jsx("code", {
  16629. children: "= orderId"
  16630. }), translate(')'), translate(' to subscribe to. '), translate('Learn more how to '), jsx("a", {
  16631. href: "https://docs.camunda.io/docs/components/modeler/bpmn/send-tasks",
  16632. target: "_blank",
  16633. rel: "noopener",
  16634. title: translate('Send task documentation'),
  16635. children: translate('send ')
  16636. }), translate('and '), jsx("a", {
  16637. href: "https://docs.camunda.io/docs/components/modeler/bpmn/receive-tasks",
  16638. target: "_blank",
  16639. rel: "noopener",
  16640. title: translate('Receive task documentation'),
  16641. children: translate('receive messages. ')
  16642. })]
  16643. });
  16644. }
  16645. return jsxs("div", {
  16646. children: [translate('Define the name of the message (e.g. '), jsx("code", {
  16647. children: "Money collected"
  16648. }), translate(') and the '), jsx("code", {
  16649. children: "correlationKey"
  16650. }), translate(' expression (e.g. '), jsx("code", {
  16651. children: "= orderId"
  16652. }), translate(')'), translate(' to subscribe to. '), jsx("a", {
  16653. href: "https://docs.camunda.io/docs/components/modeler/bpmn/message-events/#messages",
  16654. target: "_blank",
  16655. rel: "noopener",
  16656. title: translate('Message event documentation'),
  16657. children: translate('Learn more.')
  16658. })]
  16659. });
  16660. },
  16661. 'group-calledElement': element => {
  16662. const translate = useService('translate');
  16663. return jsxs("div", {
  16664. children: [translate('Define the ID of the process to call (e.g. '), " ", jsx("code", {
  16665. children: "shipping-process"
  16666. }), translate(' or '), jsx("code", {
  16667. children: "= \"shipping-\" + tenantId"
  16668. }), " ", translate('). '), jsx("a", {
  16669. href: "https://docs.camunda.io/docs/components/modeler/bpmn/call-activities/",
  16670. target: "_blank",
  16671. rel: "noopener",
  16672. title: translate('Call activity documentation'),
  16673. children: translate('Learn more.')
  16674. })]
  16675. });
  16676. },
  16677. 'group-taskDefinition': element => {
  16678. const translate = useService('translate');
  16679. if (is(element, 'bpmn:ServiceTask')) {
  16680. return jsxs("div", {
  16681. children: [translate('Specify which job workers handle the task work to execute a service (e.g. '), jsx("code", {
  16682. children: "order-items"
  16683. }), translate('). '), jsx("a", {
  16684. href: "https://docs.camunda.io/docs/components/modeler/bpmn/service-tasks",
  16685. target: "_blank",
  16686. rel: "noopener",
  16687. title: translate('Service task documentation'),
  16688. children: translate('Learn more.')
  16689. })]
  16690. });
  16691. }
  16692. if (is(element, 'bpmn:BusinessRuleTask')) {
  16693. return jsxs("div", {
  16694. children: [translate('Specify which job workers handle the task work to evaluate business rules. '), jsx("a", {
  16695. href: "https://docs.camunda.io/docs/components/modeler/bpmn/business-rule-tasks/#job-worker-implementation",
  16696. target: "_blank",
  16697. rel: "noopener",
  16698. title: translate('Business rule task documentation'),
  16699. children: translate('Learn more.')
  16700. })]
  16701. });
  16702. }
  16703. if (is(element, 'bpmn:ScriptTask')) {
  16704. return jsxs("div", {
  16705. children: [translate('Specify which job workers handle the task work to execute a script. '), jsx("a", {
  16706. href: "https://docs.camunda.io/docs/components/modeler/bpmn/script-tasks/#defining-a-task",
  16707. target: "_blank",
  16708. rel: "noopener",
  16709. title: translate('Script task documentation'),
  16710. children: translate('Learn more.')
  16711. })]
  16712. });
  16713. }
  16714. if (is(element, 'bpmn:SendTask')) {
  16715. return jsxs("div", {
  16716. children: [translate('Specify which job workers handle the task work to send a message (e.g. '), jsx("code", {
  16717. children: "kafka"
  16718. }), translate(' or '), jsx("code", {
  16719. children: "mail"
  16720. }), translate('). '), jsx("a", {
  16721. href: "https://docs.camunda.io/docs/components/modeler/bpmn/send-tasks/#defining-a-task",
  16722. target: "_blank",
  16723. rel: "noopener",
  16724. title: translate('Send task documentation'),
  16725. children: translate('Learn more.')
  16726. })]
  16727. });
  16728. }
  16729. if (is(element, 'bpmn:ThrowEvent')) {
  16730. return jsxs("div", {
  16731. children: [translate('Specify which job workers handle the event work. '), jsx("a", {
  16732. href: "https://docs.camunda.io/docs/components/modeler/bpmn/message-events/#message-throw-events",
  16733. target: "_blank",
  16734. rel: "noopener",
  16735. title: translate('Message throw event documentation'),
  16736. children: translate('Learn more.')
  16737. })]
  16738. });
  16739. }
  16740. },
  16741. 'group-multiInstance': element => {
  16742. const translate = useService('translate');
  16743. return jsxs("div", {
  16744. 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", {
  16745. children: "= items"
  16746. }), translate('). '), translate('To collect the output define the output collection and the output element expressions. '), jsx("a", {
  16747. href: "https://docs.camunda.io/docs/components/modeler/bpmn/multi-instance/#defining-the-collection-to-iterate-over",
  16748. target: "_blank",
  16749. rel: "noopener",
  16750. title: translate('Multi instance documentation'),
  16751. children: translate('Learn more.')
  16752. })]
  16753. });
  16754. },
  16755. 'group-error': element => {
  16756. const translate = useService('translate');
  16757. return jsxs("div", {
  16758. children: [translate('Define an error code (e.g. '), jsx("code", {
  16759. children: "order-not-found"
  16760. }), translate('). '), jsx("a", {
  16761. href: "https://docs.camunda.io/docs/components/modeler/bpmn/error-events/#defining-the-error",
  16762. target: "_blank",
  16763. rel: "noopener",
  16764. title: translate('Error event documentation'),
  16765. children: translate('Learn more.')
  16766. })]
  16767. });
  16768. },
  16769. 'group-inputs': element => {
  16770. const translate = useService('translate');
  16771. return jsxs("div", {
  16772. children: [translate('Create a new local variable in the scope of this task. '), jsx("a", {
  16773. href: "https://docs.camunda.io/docs/components/concepts/variables/#input-mappings",
  16774. target: "_blank",
  16775. rel: "noopener",
  16776. title: translate('Input mappings documentation'),
  16777. children: translate('Learn more.')
  16778. })]
  16779. });
  16780. },
  16781. 'group-outputs': element => {
  16782. const translate = useService('translate');
  16783. return jsxs("div", {
  16784. children: [translate('Customize how result variables are merged into the global scope of the process instance. '), jsx("a", {
  16785. href: "https://docs.camunda.io/docs/components/concepts/variables/#output-mappings",
  16786. target: "_blank",
  16787. rel: "noopener",
  16788. title: translate('Output mappings documentation'),
  16789. children: translate('Learn more.')
  16790. })]
  16791. });
  16792. }
  16793. };
  16794. export { index$3 as BpmnPropertiesPanelModule, index$2 as BpmnPropertiesProviderModule, index as CamundaPlatformPropertiesProviderModule, index$1 as ZeebePropertiesProviderModule, TooltipProvider as ZeebeTooltipProvider, useService };
  16795. //# sourceMappingURL=index.mjs.map