// Generated by orrery. Edit the diagram spec and re-render instead of editing this file.
import { type SVGProps, useId } from "react";

export default function OrderLifecycle(props: SVGProps<SVGSVGElement>) {
  const uid = useId().replace(/[^A-Za-z0-9_-]/g, "");
  return (
    <svg xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" width="730" height="798" viewBox="0 0 730 798" role="img" aria-labelledby={`${uid}-sdw-title ${uid}-sdw-desc`} fontFamily="Inter, 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif" {...props}>
      <title id={`${uid}-sdw-title`}>
        Order lifecycle
      </title>
      <desc id={`${uid}-sdw-desc`}>
        Order lifecycle. 10 components. Connections: to Created; Created to Paid (pay [card ok] / charge); Created to Created (edit / recalc total); Created to Cancelled (cancel / release stock); Paid to Packed (pick / print label); Paid to Refunded (cancel [not packed] / refund); Packed to Shipped (hand over / send tracking); Shipped to Delivered (deliver / notify buyer); Delivered to Refunded (return [within 30 days] / refund); Delivered to ; Cancelled to ; Refunded to .
      </desc>
      <rect width="730" height="798" fill="#ffffff" />
      <text fontSize="20" fontWeight="600" fill="#000000">
        <tspan x="28" y="43.78">
          Order lifecycle
        </tspan>
      </text>
      <text fontSize="13" fill="#5f6b7a">
        <tspan x="28" y="66.18">
          UML state machine: transitions read event [guard] / action
        </tspan>
      </text>
      <g id={`${uid}-e-e1`}>
        <path d="M186 118 L186 179.75" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M181.5 171.5 L186 180.5 L190.5 171.5" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e2`}>
        <path d="M186 232.5 L186 294.25" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M181.5 286 L186 295 L190.5 286" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e3`}>
        <path d="M146 180.5 L146 170.5 Q146 162.5 138 162.5 L122 162.5 Q114 162.5 114 170.5 L114 186.5 Q114 194.5 122 194.5 L131.25 194.5" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M123 199 L132 194.5 L123 190" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e4`}>
        <path d="M240 206.5 L403.25 206.5" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M395 211 L404 206.5 L395 202" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e5`}>
        <path d="M168 347 L168 404.25" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M163.5 396 L168 405 L172.5 396" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e6`}>
        <path d="M240 321 L443 321 Q451 321 451 329 L451 628.75" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M446.5 620.5 L451 629.5 L455.5 620.5" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e7`}>
        <path d="M168 457 L168 514.25" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M163.5 506 L168 515 L172.5 506" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e8`}>
        <path d="M168 567 L168 628.75" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M163.5 620.5 L168 629.5 L172.5 620.5" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e9`}>
        <path d="M222 655.5 L396.25 655.5" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M388 660 L397 655.5 L388 651" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e10`}>
        <path d="M168 681.5 L168 749 Q168 757 176 757 L433.25 757" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M425 761.5 L434 757 L425 752.5" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e11`}>
        <path d="M512 206.5 L675.25 206.5" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M667 211 L676 206.5 L667 202" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e12`}>
        <path d="M451 681.5 L451 743.88" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M446.5 735.63 L451 744.63 L455.5 735.63" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-el-e2`}>
        <rect x="192" y="253.25" width="133" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="258.5" y="267.93">
            pay [card ok] / charge
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e3`}>
        <rect x="4" y="168.01" width="104" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="56" y="182.69">
            edit / recalc total
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e4`}>
        <rect x="256" y="182.5" width="132" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="322" y="197.18">
            cancel / release stock
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e5`}>
        <rect x="174" y="365.5" width="100" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="224" y="380.18">
            pick / print label
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e6`}>
        <rect x="457" y="457.25" width="128" height="36" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="521" y="471.93">
            cancel [not packed] /
          </tspan>
          <tspan x="521" y="486.93">
            refund
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e7`}>
        <rect x="174" y="475.5" width="152" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="250" y="490.18">
            hand over / send tracking
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e8`}>
        <rect x="174" y="587.75" width="125" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="236.5" y="602.43">
            deliver / notify buyer
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e9`}>
        <rect x="238" y="616.5" width="143" height="36" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="309.5" y="631.18">
            return [within 30 days] /
          </tspan>
          <tspan x="309.5" y="646.18">
            refund
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-start`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <circle cx="186" cy="107" r="11" />
          <g fill="none" stroke="#8b95a1" strokeWidth="1.25" strokeOpacity="1" fillOpacity="1" strokeLinecap="round" strokeLinejoin="round">
            <circle cx="186" cy="107" r="11" fill="#8b95a1" stroke="none" />
          </g>
        </g>
      </g>
      <g id={`${uid}-n-created`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <rect x="132" y="180.5" width="108" height="52" rx="12" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="186" y="211.23">
            Created
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-paid`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <rect x="132" y="295" width="108" height="52" rx="12" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="186" y="325.73">
            Paid
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-packed`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <rect x="114" y="405" width="108" height="52" rx="12" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="168" y="435.73">
            Packed
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-shipped`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <rect x="114" y="515" width="108" height="52" rx="12" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="168" y="545.73">
            Shipped
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-delivered`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <rect x="114" y="629.5" width="108" height="52" rx="12" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="168" y="660.23">
            Delivered
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-cancelled`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <rect x="404" y="180.5" width="108" height="52" rx="12" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="458" y="211.23">
            Cancelled
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-refunded`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <rect x="397" y="629.5" width="108" height="52" rx="12" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="451.01" y="660.23">
            Refunded
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-end`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <circle cx="447" cy="757" r="13" />
          <g fill="none" stroke="#8b95a1" strokeWidth="1.25" strokeOpacity="1" fillOpacity="1" strokeLinecap="round" strokeLinejoin="round">
            <circle cx="447" cy="757" r="8" fill="#8b95a1" stroke="none" />
          </g>
        </g>
      </g>
      <g id={`${uid}-n-closed`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <circle cx="689" cy="206.5" r="13" />
          <g fill="none" stroke="#8b95a1" strokeWidth="1.25" strokeOpacity="1" fillOpacity="1" strokeLinecap="round" strokeLinejoin="round">
            <circle cx="689" cy="206.5" r="8" fill="#8b95a1" stroke="none" />
          </g>
        </g>
      </g>
    </svg>
  );
}
