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

export default function ContainerDiagramForAnOnlineStore(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="805" height="831" viewBox="0 0 805 831" 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`}>
        Container diagram for an online store
      </title>
      <desc id={`${uid}-sdw-desc`}>
        Container diagram for an online store. 8 components in 1 groups. Connections: Customer to Web application (Browses and buys products using [HTTPS]); Support staff to Back office (Manages orders using [HTTPS]); Web application to API application (Makes API calls to [JSON/HTTPS]); Back office to API application (Makes API calls to [JSON/HTTPS]); API application to Database (Reads and writes [SQL]); API application to Payment provider (Charges cards and issues refunds [HTTPS]); API application to Email service (Sends e-mail using [SMTP]); Customer to Email service (Sends receipts to [SMTP]).
      </desc>
      <rect width="805" height="831" fill="#ffffff" />
      <text fontSize="20" fontWeight="600" fill="#000000">
        <tspan x="28" y="43.78">
          Container diagram for an online store
        </tspan>
      </text>
      <text fontSize="13" fill="#5f6b7a">
        <tspan x="28" y="66.18">
          C4 model, level 2: the containers inside the system, and the people and external systems around it
        </tspan>
      </text>
      <g id={`${uid}-g-store`}>
        <rect x="181" y="270" width="596" height="322" fill="none" stroke="#444444" strokeWidth="1.25" strokeDasharray="6 4" />
      </g>
      <g id={`${uid}-e-e1`}>
        <path d="M242.75 201 L242.75 321.25" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M238.25 313 L242.75 322 L247.25 313" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e2`}>
        <path d="M509 201 L509 321.25" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M504.5 313 L509 322 L513.5 313" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e3`}>
        <path d="M293 412 L293 480.75" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M288.5 472.5 L293 481.5 L297.5 472.5" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e4`}>
        <path d="M508.5 412 L508.5 504.5 Q508.5 512.5 500.5 512.5 L403.75 512.5" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M412 508 L403 512.5 L412 517" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e5`}>
        <path d="M403 526.5 L574.25 526.5" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M566 531 L575 526.5 L566 522" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e6`}>
        <path d="M356.5 571.5 L356.5 665.25" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M352 657 L356.5 666 L361 657" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e7`}>
        <path d="M238 526.5 L196 526.5 Q188 526.5 188 534.5 L188 672.75" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M183.5 664.5 L188 673.5 L192.5 664.5" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-e-e8`}>
        <path d="M162 201.75 L162 673.5" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M166.5 210 L162 201 L157.5 210" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
      </g>
      <g id={`${uid}-el-e1`}>
        <rect x="248.75" y="223.33" width="143" height="36" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="320.25" y="238.01">
            Browses and buys
          </tspan>
          <tspan x="320.25" y="253.01">
            products using [HTTPS]
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e2`}>
        <rect x="515" y="223.33" width="134" height="36" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="582" y="238.01">
            Manages orders using
          </tspan>
          <tspan x="582" y="253.01">
            [HTTPS]
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e3`}>
        <rect x="299" y="428.75" width="112" height="36" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="355" y="443.43">
            Makes API calls to
          </tspan>
          <tspan x="355" y="458.43">
            [JSON/HTTPS]
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e4`}>
        <rect x="514.5" y="444.25" width="112" height="36" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="570.5" y="458.93">
            Makes API calls to
          </tspan>
          <tspan x="570.5" y="473.93">
            [JSON/HTTPS]
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e5`}>
        <rect x="419" y="529.5" width="140" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="489" y="544.18">
            Reads and writes [SQL]
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e6`}>
        <rect x="362.5" y="600.75" width="153" height="36" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="439" y="615.43">
            Charges cards and issues
          </tspan>
          <tspan x="439" y="630.43">
            refunds [HTTPS]
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e7`}>
        <rect x="194" y="614" width="161" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="274.5" y="628.68">
            Sends e-mail using [SMTP]
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e8`}>
        <rect x="4" y="426.75" width="152" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="80" y="441.43">
            Sends receipts to [SMTP]
          </tspan>
        </text>
      </g>
      <g id={`${uid}-gh-store`}>
        <rect x="511" y="279" width="204.87" height="18.9" rx="3" fill="#ffffff" />
        <text fontSize="13" fontWeight="600" fill="#444444">
          <tspan x="515" y="293.18">
            Online store [Software System]
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-customer`}>
        <g fill="#e6ecf2" stroke="#08427b" strokeWidth="1.25">
          <circle cx="193" cy="110" r="13" />
          <rect x="101" y="124" width="184" height="77" rx="16" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="193" y="152.23">
            Customer
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a" textAnchor="middle">
          <tspan x="193.01" y="169.63">
            [Person]
          </tspan>
          <tspan x="193.01" y="184.63">
            Browses and buys products
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-staff`}>
        <g fill="#e6ecf2" stroke="#08427b" strokeWidth="1.25">
          <circle cx="509" cy="110" r="13" />
          <rect x="417" y="124" width="184" height="77" rx="16" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="509" y="152.23">
            Support staff
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a" textAnchor="middle">
          <tspan x="509" y="169.63">
            [Person]
          </tspan>
          <tspan x="509" y="184.63">
            Handles orders and refunds
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-web`}>
        <g fill="#ecf4fb" stroke="#438dd5" strokeWidth="1.25">
          <rect x="201" y="322" width="183" height="90" rx="4" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="292.51" y="348.23">
            Web application
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a" textAnchor="middle">
          <tspan x="292.5" y="365.63">
            [Container: React]
          </tspan>
          <tspan x="292.5" y="380.63">
            Lets customers browse and
          </tspan>
          <tspan x="292.5" y="395.63">
            check out
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-admin`}>
        <g fill="#ecf4fb" stroke="#438dd5" strokeWidth="1.25">
          <rect x="424" y="322" width="169" height="90" rx="4" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="508.51" y="348.23">
            Back office
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a" textAnchor="middle">
          <tspan x="508.5" y="365.63">
            [Container: React]
          </tspan>
          <tspan x="508.5" y="380.63">
            Lets staff manage orders
          </tspan>
          <tspan x="508.5" y="395.63">
            and refunds
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-api`}>
        <g fill="#ecf4fb" stroke="#438dd5" strokeWidth="1.25">
          <rect x="238" y="481.5" width="165" height="90" rx="4" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="320.5" y="507.73">
            API application
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a" textAnchor="middle">
          <tspan x="320.5" y="525.13">
            [Container: Go]
          </tspan>
          <tspan x="320.5" y="540.13">
            Serves catalog, cart and
          </tspan>
          <tspan x="320.5" y="555.13">
            checkout
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-db`}>
        <g fill="#ecf4fb" stroke="#438dd5" strokeWidth="1.25">
          <path d="M575 489 A91 8 0 0 1 757 489 V564 A91 8 0 0 1 575 564 Z" />
          <path d="M575 489 A91 8 0 0 0 757 489" fill="none" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="666" y="520.23">
            Database
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a" textAnchor="middle">
          <tspan x="666" y="537.63">
            [Container: PostgreSQL]
          </tspan>
          <tspan x="666" y="552.63">
            Stores products and orders
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-email`}>
        <g fill="#f5f5f5" stroke="#999999" strokeWidth="1.25">
          <rect x="110" y="673.5" width="156" height="75" rx="4" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="188" y="699.73">
            Email service
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a" textAnchor="middle">
          <tspan x="188" y="717.13">
            [Software System]
          </tspan>
          <tspan x="188" y="732.13">
            Delivers order receipts
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-payments`}>
        <g fill="#f5f5f5" stroke="#999999" strokeWidth="1.25">
          <rect x="306" y="666" width="173" height="90" rx="4" />
        </g>
        <text fontSize="13" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="392.5" y="692.23">
            Payment provider
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a" textAnchor="middle">
          <tspan x="392.51" y="709.63">
            [Software System]
          </tspan>
          <tspan x="392.51" y="724.63">
            Takes card payments and
          </tspan>
          <tspan x="392.51" y="739.63">
            refunds
          </tspan>
        </text>
      </g>
      <g id={`${uid}-legend`}>
        <rect x="582" y="768" width="195" height="35" rx="6" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <path d="M592 785.5 H620" fill="none" stroke="#545b64" strokeWidth="1.5" />
        <text fontSize="11.5" fill="#000000">
          <tspan x="628" y="789.68">
            Relationship [technology]
          </tspan>
        </text>
      </g>
    </svg>
  );
}
