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

export default function OrderApprovalFlowchart(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="705" height="1015" viewBox="0 0 705 1015" 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 approval flowchart
      </title>
      <desc id={`${uid}-sdw-desc`}>
        Order approval flowchart. 13 components. Connections: Order received to Enter order details; Enter order details to Run credit check; Run credit check to Credit OK?; Credit OK? to Over the limit? (yes); Credit OK? to Ask for prepayment (no); Over the limit? to Manager signs off (yes); Over the limit? to Reserve stock (no); Manager signs off to Reserve stock; Ask for prepayment to Wait for payment; Wait for payment to Paid in time?; Paid in time? to Reserve stock (yes); Paid in time? to Order rejected (no); Reserve stock to Print invoice; Print invoice to Order approved.
      </desc>
      <rect width="705" height="1015" fill="#ffffff" />
      <text fontSize="20" fontWeight="600" fill="#000000">
        <tspan x="28" y="43.78">
          Order approval flowchart
        </tspan>
      </text>
      <text fontSize="13" fill="#5f6b7a">
        <tspan x="28" y="66.18">
          An order that fails the credit check must be paid up front; one over the credit limit needs a manager&#39;s
        </tspan>
        <tspan x="28" y="83.08">
          sign-off
        </tspan>
      </text>
      <g id={`${uid}-e-e1`}>
        <path d="M358 164.9 L358 204.9" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M358 212.9 L353.5 203.9 L358 205.4 L362.5 203.9 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e2`}>
        <path d="M358 264.9 L358 304.9" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M358 312.9 L353.5 303.9 L358 305.4 L362.5 303.9 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e3`}>
        <path d="M358 372.9 L358 417.14" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M358 425.14 L353.5 416.14 L358 417.64 L362.5 416.14 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e4`}>
        <path d="M358 500.66 L358 551.24" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M358 559.24 L353.5 550.24 L358 551.74 L362.5 550.24 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e5`}>
        <path d="M436 462.9 L495 462.9" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M503 462.9 L494 467.4 L495.5 462.9 L494 458.4 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e6`}>
        <path d="M263 594.9 L199 594.9" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M191 594.9 L200 590.4 L198.5 594.9 L200 599.4 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e7`}>
        <path d="M366.25 627.06 L366.25 692.9" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M366.25 700.9 L361.75 691.9 L366.25 693.4 L370.75 691.9 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e8`}>
        <path d="M113.5 620.9 L113.5 718.9 Q113.5 726.9 121.5 726.9 L311 726.9" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M319 726.9 L310 731.4 L311.5 726.9 L310 722.4 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e9`}>
        <path d="M586 492.9 L586 556.9" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M586 564.9 L581.5 555.9 L586 557.4 L590.5 555.9 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e10`}>
        <path d="M586 624.9 L586 680.9" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M586 688.9 L581.5 679.9 L586 681.4 L590.5 679.9 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e11`}>
        <path d="M505 726.9 L449 726.9" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M441 726.9 L450 722.4 L448.5 726.9 L450 731.4 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e12`}>
        <path d="M586 764.9 L586 817.9" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M586 825.9 L581.5 816.9 L586 818.4 L590.5 816.9 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e13`}>
        <path d="M409.25 752.9 L409.25 812.9" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M409.25 820.9 L404.75 811.9 L409.25 813.4 L413.75 811.9 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e14`}>
        <path d="M439 872.72 L439 926.9" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M439 934.9 L434.5 925.9 L439 927.4 L443.5 925.9 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-el-e4`}>
        <rect x="364" y="518.4" width="32" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="380" y="533.08">
            yes
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e5`}>
        <rect x="452" y="438.9" width="26" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="465" y="453.58">
            no
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e6`}>
        <rect x="215" y="570.9" width="32" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="231" y="585.58">
            yes
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e7`}>
        <rect x="372.25" y="656.4" width="26" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="385.25" y="671.08">
            no
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e11`}>
        <rect x="457" y="702.9" width="32" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="473" y="717.58">
            yes
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e12`}>
        <rect x="592" y="784.9" width="26" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="605" y="799.58">
            no
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-received`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <rect x="294" y="112.9" width="127" height="52" rx="26" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="357.51" y="143.63">
            Order received
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-details`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <path d="M288 212.9 H444 L428 264.9 H272 Z" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="358.01" y="243.63">
            Enter order details
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-credit`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <rect x="279" y="312.9" width="158" height="60" rx="4" />
          <path d="M289 312.9 V372.9 M427 312.9 V372.9" fill="none" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="358" y="339.13">
            Run credit check
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a" textAnchor="middle">
          <tspan x="358" y="356.53">
            Credit bureau API
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-credit-ok`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <path d="M357.5 424.9 L436 462.9 L357.5 500.9 L279 462.9 Z" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="357.5" y="467.63">
            Credit OK?
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-call`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <path d="M494 432.9 H677 L659 492.9 H512 Z" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="585.5" y="459.13">
            Ask for prepayment
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a" textAnchor="middle">
          <tspan x="585.49" y="476.53">
            Phone call
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-sign-off`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <path d="M28 568.9 H199 L183 620.9 H44 Z" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="113.5" y="599.63">
            Manager signs off
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-limit`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <path d="M352.5 556.9 L442 594.9 L352.5 632.9 L263 594.9 Z" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="352.5" y="599.63">
            Over the limit?
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-wait`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <path d="M506 564.9 H636 A30 30 0 0 1 636 624.9 H506 Z" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="586" y="591.13">
            Wait for payment
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a" textAnchor="middle">
          <tspan x="586" y="608.53">
            Up to 48 hours
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-reserve`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <rect x="319" y="700.9" width="122" height="52" rx="4" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="380.01" y="731.63">
            Reserve stock
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-paid`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <path d="M586 688.9 L667 726.9 L586 764.9 L505 726.9 Z" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="586" y="731.63">
            Paid in time?
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-invoice`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <path d="M383 820.9 H494 V872.9 Q466.25 862.9 438.5 872.9 T383 872.9 Z" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="438.5" y="851.63">
            Print invoice
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-rejected`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <rect x="524" y="825.9" width="124" height="52" rx="26" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="586.01" y="856.63">
            Order rejected
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-approved`}>
        <g fill="#ffffff" stroke="#8b95a1" strokeWidth="1.25">
          <rect x="373" y="934.9" width="132" height="52" rx="26" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="439" y="965.63">
            Order approved
          </tspan>
        </text>
      </g>
    </svg>
  );
}
