You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Application-Web/outputs/public/front/views/editor/CourtAction.tsx-15785ac7.js

2 lines
923 B

import{j as s}from"../../../jsx-runtime-2e2d9038.js";import{ActionKind as r}from"../../tactic/Action.ts-d727cf33.js";import i from"../../components/arrows/BendableArrow.tsx-f8a85d9b.js";import{ScreenHead as n,MoveToHead as y}from"../../components/actions/ArrowAction.tsx-b082b6c9.js";import"../../components/arrows/Pos.ts-9fe07952.js";import"../../../cjs-ff7eb0e1.js";import"../../../index-ca121481.js";function l({action:e,onActionChanges:a,onActionDeleted:m,courtRef:p}){let t;switch(e.type){case r.DRIBBLE:case r.MOVE:case r.SHOOT:t=()=>s.jsx(y,{});break;case r.SCREEN:t=()=>s.jsx(n,{});break}let o;switch(e.type){case r.SHOOT:o="10 5";break}return s.jsx(i,{forceStraight:e.type==r.SHOOT,area:p,startPos:e.moveFrom,segments:e.segments,onSegmentsChanges:d=>{a({...e,segments:d})},wavy:e.type==r.DRIBBLE,endRadius:e.toPlayerId?26:17,startRadius:0,onDeleteRequested:m,style:{head:t,dashArray:o}})}export{l as CourtAction};