Lines 2482-2522javascript
2482var PaginationPageMinimalCenter = (_a) => {
2483 var _b = _a, { rounded, page = 1, total = 10, className } = _b, props = __objRest(_b, ["rounded", "page", "total", "className"]);
2484 const isDesktop = useBreakpoint("md");
2485 return /* @__PURE__ */ React.createElement(
2487 __spreadProps(__spreadValues({}, props), {
2490 className: cx("flex w-full items-center justify-between gap-3 border-t border-secondary pt-4 md:pt-5", className)
2492 /* @__PURE__ */ React.createElement("div", { className: "flex flex-1 justify-start" }, /* @__PURE__ */ React.createElement(Pagination.PrevTrigger, { asChild: true }, /* @__PURE__ */ React.createElement(Button, { iconLeading: ArrowLeft, color: "secondary", size: "sm" }, isDesktop ? "Previous" : void 0))),
2493 /* @__PURE__ */ React.createElement(Pagination.Context, null, ({ pages, currentPage, total: total2 }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: "hidden justify-center gap-0.5 md:flex" }, pages.map(
2494 (page2, index) => page2.type === "page" ? /* @__PURE__ */ React.createElement(PaginationItem2, __spreadValues({ key: index, rounded }, page2)) : /* @__PURE__ */ React.createElement(Pagination.Ellipsis, { key: index, className: "flex size-10 shrink-0 items-center justify-center text-tertiary" }, "\u2026")
2495 )), /* @__PURE__ */ React.createElement("div", { className: "flex justify-center text-sm whitespace-pre text-fg-secondary md:hidden" }, "Page ", /* @__PURE__ */ React.createElement("span", { className: "font-medium" }, currentPage), " of ", /* @__PURE__ */ React.createElement("span", { className: "font-medium" }, total2)))),
2496 /* @__PURE__ */ React.createElement("div", { className: "flex flex-1 justify-end" }, /* @__PURE__ */ React.createElement(Pagination.NextTrigger, { asChild: true }, /* @__PURE__ */ React.createElement(Button, { iconTrailing: ArrowRight2, color: "secondary", size: "sm" }, isDesktop ? "Next" : void 0)))
2500// src/design_system/elements/map/GoogleMap.tsx
2501import { useEffect as useEffect3, useRef as useRef2, useState as useState4, useCallback as useCallback2 } from "react";
2502var GOOGLE_MAPS_API_KEY = "AIzaSyAb4-zSsPFx-QGi4cAiCGaRrzsAJC6e348";
HighSecret Pattern
Google API key in dist/design_system/elements/index.js
dist/design_system/elements/index.jsView on unpkg · L2502 2503function GoogleMap({ address, locationName, className = "" }) {
2504 const mapRef = useRef2(null);
2505 const [mapError, setMapError] = useState4(null);
2506 const [isLoaded, setIsLoaded] = useState4(false);
2507 const geocoderRef = useRef2(null);
2508 const mapInstanceRef = useRef2(null);
2509 const isInitializingRef = useRef2(false);
2510 const callbackNameRef = useRef2(null);
2511 const initMapRef = useRef2(null);
2512 const initMap = useCallback2(async () => {
2513 if (isInitializingRef.current) return;
2514 if (!mapRef.current || !window.google || !window.google.maps) {
2517 if (!window.google.maps.Geocoder) {
2518 warn("google-map", "GEOCODER_NOT_READY_RETRYING", {