Add empty AST cache file for version 0.8.44 with non-object root data

This commit is contained in:
hamed
2026-07-08 17:38:32 +03:30
parent 082f54cf4d
commit ee47b535d8
110 changed files with 415 additions and 790 deletions
+1 -2
View File
@@ -6,8 +6,7 @@ import Field from "@/app/component/fields/Field";
function Connect() {
return (
<div
className="lg:min-w-[calc(50%_+_70px)] w-full lg:translate-x-[140px] bg-[#FFF] lg:p-[32px]
shadow-[0px_0px_28.6px_0px_rgba(147,_147,_147,_0.25)] mt-[16px] lg:mt-0 p-[16px] sm:p-[21px] md:p-[27px]"
className="lg:min-w-[calc(50%_+_70px)] w-full lg:translate-x-[140px] bg-[#FFF] lg:p-[32px] shadow-[0px_0px_28.6px_0px_rgba(147,_147,_147,_0.25)] mt-[16px] lg:mt-0 p-[16px] sm:p-[21px] md:p-[27px]"
>
<div>
<div className="flex flex-col justify-center items-center gap-[10px]">
+2 -5
View File
@@ -3,14 +3,11 @@ import Links from "./Links";
function Call({ matchedCity, isDefault }) {
return (
<div
className={`lg:min-w-[calc(50%_+_70px)] bg-banner-about !bg-center !bg-no-repeat !bg-cover h-fit pt-[16px] sm:pt-[29px] md:pt-[42px] lg:pt-[55px]
bg-contact rounded-[8px] pb-[30px] sm:pb-[42px] md:pb-[55px]
overflow-hidden lg:pb-[171px] px-[16px] sm:px-[27px] md:px-[39px] lg:px-[48px]
${isDefault ? "lg:pl-[18%]" : "w-full"}`}
className={`lg:min-w-[calc(50%_+_70px)] bg-banner-about !bg-center !bg-no-repeat !bg-cover h-fit pt-[16px] sm:pt-[29px] md:pt-[42px] lg:pt-[55px] bg-contact rounded-[8px] pb-[30px] sm:pb-[42px] md:pb-[55px] overflow-hidden lg:pb-[171px] px-[16px] sm:px-[27px] md:px-[39px] lg:px-[48px] ${isDefault ? "lg:pl-[18%]" : "w-full"}`}
>
<h1 className="text-[#FAFAFA] text-[20px] font-bold">تماس با ما</h1>
<h2 className="text-[#FAFAFA] leading-[26px] text-[14px] md:text-[16px] font-normal mt-6">
{matchedCity?.footerDescription || "برای ارتباط با ما از راه های زیر استفاده کنید"}
{matchedCity?.footer_description || "برای ارتباط با ما از راه های زیر استفاده کنید"}
</h2>
<Links matchedCity={matchedCity} />
</div>
+12 -6
View File
@@ -6,25 +6,31 @@ import WhatsappC from "../../icons/WhatsappC";
import ContentContact from "../ContentContact";
function Links({ matchedCity }) {
const phone = matchedCity?.contact_phone || "+98 2191550875";
const whatsapp = matchedCity?.social_media?.whatsapp || "09390039833";
const email = matchedCity?.email || "info@clinic-pro.ir";
// wa.me needs international format: 09xx… → 989xx…
const waDigits = whatsapp.replace(/\D/g, "").replace(/^0/, "98");
return (
<ul className="flex flex-col mt-[68px] justify-start items-start gap-[32px]">
<ContentContact
url="tel:900300400"
url={`tel:${phone.replace(/\s/g, "")}`}
label="تلفن تماس: "
text={matchedCity?.contactPhone || "900300400"}
text={phone}
>
<CallC />
</ContentContact>
<ContentContact
url="https://wa.me/09124568794"
text={matchedCity?.socialMedia?.whatsapp || "09124568794"}
url={`https://wa.me/${waDigits}`}
text={whatsapp}
label="واتساپ: "
>
<WhatsappC />
</ContentContact>
<ContentContact
url="mailto:batome@gmail.com"
text={matchedCity?.email || "info@nobat724.com"}
url={`mailto:${email}`}
text={email}
label="ایمیل: "
>
<EmailC />
+3 -4
View File
@@ -3,13 +3,12 @@ import Call from "./call/Call";
import Connect from "./Connect";
async function ContactUsPage() {
const { matchedCity } = await getStateInfo();
const isDefault = matchedCity?.id === "63";
const { matchedCity, isRoot } = await getStateInfo();
return (
<div className="w-full pt-[24px] sm:pt-[56px] md:pt-[88px] lg:pt-[120px] mt-[56px] padding-responsive flex flex-col lg:flex-row items-center justify-between h-fit">
<Call matchedCity={matchedCity} isDefault={isDefault} />
{matchedCity?.id === "63" && <Connect />}
<Call matchedCity={matchedCity} isDefault={isRoot} />
{isRoot && <Connect />}
</div>
);
}