Lines 2487-2527javascript
2487var PaginationPageMinimalCenter = (_a) => {
2488 var _b = _a, { rounded, page = 1, total = 10, className } = _b, props = __objRest(_b, ["rounded", "page", "total", "className"]);
2489 const isDesktop = useBreakpoint("md");
2490 return /* @__PURE__ */ React.createElement(
2492 __spreadProps(__spreadValues({}, props), {
2495 className: cx("flex w-full items-center justify-between gap-3 border-t border-secondary pt-4 md:pt-5", className)
2497 /* @__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))),
2498 /* @__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(
2499 (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")
2500 )), /* @__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)))),
2501 /* @__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)))
2505// src/design_system/elements/map/GoogleMap.tsx
2506import { useEffect as useEffect3, useRef as useRef2, useState as useState4, useCallback as useCallback2 } from "react";
2507var GOOGLE_MAPS_API_KEY = "AIzaSyAb4-zSsPFx-QGi4cAiCGaRrzsAJC6e348";
HighSecret Pattern
Google API key in dist/design_system/components/DynamicFormFields.js
dist/design_system/components/DynamicFormFields.jsView on unpkg · L2507 2508function GoogleMap({ address, locationName, className = "" }) {
2509 const mapRef = useRef2(null);
2510 const [mapError, setMapError] = useState4(null);
2511 const [isLoaded, setIsLoaded] = useState4(false);
2512 const geocoderRef = useRef2(null);
2513 const mapInstanceRef = useRef2(null);
2514 const isInitializingRef = useRef2(false);
2515 const callbackNameRef = useRef2(null);
2516 const initMapRef = useRef2(null);
2517 const initMap = useCallback2(async () => {
2518 if (isInitializingRef.current) return;
2519 if (!mapRef.current || !window.google || !window.google.maps) {
2522 if (!window.google.maps.Geocoder) {
2523 warn("google-map", "GEOCODER_NOT_READY_RETRYING", {