File: /home/dmstechonline/whatsapp.dmstech.online/public/build/assets/Dynamic-c04ecd20.js
import{r as u,m as $,q as M,c as i,a as e,h as r,t as a,j as l,g as n,u as o,F as L,e as V,b as f,n as A,o as d,i as c}from"./app-884e4ce3.js";import{_ as H}from"./LangToggle-54d6b98e.js";import{u as S}from"./useRtl-295d8c04.js";const j={class:"flex items-center bg-secondary/70 h-8 px-5 md:px-10 lg:px-20 2xl:px-60"},B={class:"text-sm text-white"},F={class:"truncate w-[20em] md:w-full flex items-center gap-x-1"},U={class:"ml-auto"},N={id:"section1",class:"pt-4 md:pt-10 px-5 md:px-10 lg:px-20 2xl:px-60 relative"},z={class:"flex justify-between items-center"},O=["src","alt"],R={key:1,class:"text-2xl"},D={class:"hidden lg:flex justify-center items-center text-md space-x-8"},E={class:"flex justify-end items-center text-md"},P={class:"mt-[7%] h-full"},T={class:"text-center text-3xl"},Q={class:"text-center"},Y=["innerHTML"],Z={id:"section7",class:"bg-gray-300/10 px-5 md:px-10 lg:px-20 md:pt-10 pb-5 2xl:px-60"},q={class:"md:flex"},J={class:"md:w-1/4 lg:w-1/2"},G=["src","alt"],I={key:1,class:"text-2xl mb-2"},K={class:"md:w-3/4 lg:w-1/2 md:flex md:justify-between text-sm space-y-8 md:space-y-0"},W={class:"text-xl font-regular mb-2"},X={class:"flex md:justify-between space-x-10 md:space-x-10 lg:space-x-20 space-y-2 md:space-y-0"},ee={class:"space-y-2"},se={key:0,class:"space-y-2"},ae={class:"space-y-2"},te={class:"text-xl font-regular mb-2"},re={class:"mb-2"},oe={class:"mb-2"},le=["href"],ne={class:"mb-4"},ce=["href"],ie={class:"flex space-x-4"},de=["href"],he=["href"],ue=["href"],fe=["href"],be=["href"],me={class:"mt-10 border-t pt-5 text-sm"},ve={class:"font-light"},xe={__name:"Dynamic",props:{page:Object,companyConfig:Object,languages:Object,currentLanguage:String,currency:String,pages:Object},setup(b){const t=b,x=new Date().getFullYear(),m=u(null),v=u(null),g=u(null),p=u(null),_=u(null),{rtlClass:y,isRtl:ge}=S(),k=()=>{try{const s=JSON.parse(t.companyConfig.socials);m.value=s.facebook||null,v.value=s.twitter||null,g.value=s.instagram||null,p.value=s.slack||null,_.value=s.linkedin||null}catch(s){console.error("Error parsing socials:",s)}},C=$(()=>s=>s.trim().toLowerCase().replace(/\s+/g,"-"));return u(1),u(1),M(()=>{k()}),(s,h)=>(d(),i("div",{class:A(o(y))},[e("div",j,[e("div",B,[e("div",F,[h[0]||(h[0]=e("span",null,[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 48 48"},[e("path",{fill:"currentColor",d:"M44 24c0 11.046-8.954 20-20 20S4 35.046 4 24S12.954 4 24 4s20 8.954 20 20m-20-4c-.69 0-1.25.56-1.25 1.25v12.5a1.25 1.25 0 1 0 2.5 0v-12.5c0-.69-.56-1.25-1.25-1.25m0-3a2 2 0 1 0 0-4a2 2 0 0 0 0 4"})])],-1)),r(" "+a(s.$t("Header.message")),1)])]),e("div",U,[l(H,{class:"text-white",languages:t.languages,currentLanguage:t.currentLanguage},null,8,["languages","currentLanguage"])])]),e("section",N,[e("div",z,[l(o(c),{href:"/",class:"inline-block"},{default:n(()=>[t.companyConfig.logo?(d(),i("img",{key:0,class:"max-w-[150px]",src:"/media/"+t.companyConfig.logo,alt:t.companyConfig.company_name},null,8,O)):(d(),i("h1",R,a(t.companyConfig.company_name),1))]),_:1}),e("div",D,[l(o(c),{href:"/#section2",class:"cursor-pointer hover:border-b-2 border-black"},{default:n(()=>[r(a(s.$t("Features")),1)]),_:1}),l(o(c),{href:"/#section4",class:"cursor-pointer hover:border-b-2 border-black"},{default:n(()=>[r(a(s.$t("Pricing")),1)]),_:1}),l(o(c),{href:"/#section5",class:"cursor-pointer hover:border-b-2 border-black"},{default:n(()=>[r(a(s.$t("Reviews")),1)]),_:1}),l(o(c),{href:"/#section6",class:"cursor-pointer hover:border-b-2 border-black"},{default:n(()=>[r(a(s.$t("FAQs")),1)]),_:1}),l(o(c),{href:"/#section7",class:"cursor-pointer hover:border-b-2 border-black"},{default:n(()=>[r(a(s.$t("Contact us")),1)]),_:1})]),e("div",E,[l(o(c),{href:"/login",class:"hidden md:inline-block mr-10 cursor-pointer hover:text-gray-400 border-black"},{default:n(()=>[r(a(s.$t("Login")),1)]),_:1}),l(o(c),{href:"/signup",class:"hidden md:inline-block bg-primary hover:bg-secondary text-white p-2 rounded-lg text-sm w-fit px-8"},{default:n(()=>[r(a(s.$t("Sign Up")),1)]),_:1}),l(o(c),{href:"/login",class:"md:hidden bg-primary hover:bg-secondary text-white p-2 rounded-lg text-sm flex w-fit px-8"},{default:n(()=>[r(a(s.$t("Login")),1)]),_:1})])]),e("div",P,[e("h1",T,a(t.page.data.name),1),e("h2",Q,"Last Updated: "+a(t.page.data.updated_at),1),e("div",{class:"mt-4 px-40 mb-20",innerHTML:t.page.data.content},null,8,Y)])]),e("footer",Z,[e("div",q,[e("div",J,[e("div",null,[t.companyConfig.logo?(d(),i("img",{key:0,class:"max-w-[150px]",src:"/media/"+t.companyConfig.logo,alt:t.companyConfig.company_name},null,8,G)):(d(),i("h4",I,a(t.companyConfig.company_name),1))])]),e("div",K,[e("div",null,[e("h4",W,a(s.$t("Links")),1),e("div",X,[e("div",ee,[e("div",null,[l(o(c),{href:"/#section2",class:"border-b-2 border-[#fafbfb] hover:border-b-2 hover:border-black"},{default:n(()=>[r(a(s.$t("Features")),1)]),_:1})]),e("div",null,[l(o(c),{href:"/#section3",class:"border-b-2 border-[#fafbfb] hover:border-b-2 hover:border-black"},{default:n(()=>[r(a(s.$t("How it works")),1)]),_:1})]),e("div",null,[l(o(c),{href:"/#section4",class:"border-b-2 border-[#fafbfb] hover:border-b-2 hover:border-black"},{default:n(()=>[r(a(s.$t("Pricing")),1)]),_:1})]),e("div",null,[l(o(c),{href:"/#section5",class:"border-b-2 border-[#fafbfb] hover:border-b-2 hover:border-black"},{default:n(()=>[r(a(s.$t("Reviews")),1)]),_:1})]),e("div",null,[l(o(c),{href:"/#section6",class:"border-b-2 border-[#fafbfb] hover:border-b-2 hover:border-black"},{default:n(()=>[r(a(s.$t("FAQs")),1)]),_:1})])]),b.pages.length>0?(d(),i("div",se,[(d(!0),i(L,null,V(b.pages,w=>(d(),i("div",{key:w.id},[l(o(c),{href:"/pages/"+C.value(w.name),class:"border-b-2 border-[#fafbfb] hover:border-b-2 hover:border-black"},{default:n(()=>[r(a(s.$t(w.name)),1)]),_:2},1032,["href"])]))),128))])):f("",!0),e("div",ae,[e("div",null,[l(o(c),{href:"/signup",class:"border-b-2 border-[#fafbfb] hover:border-b-2 hover:border-black"},{default:n(()=>[r(a(s.$t("Sign up")),1)]),_:1})]),e("div",null,[l(o(c),{href:"/login",class:"border-b-2 border-[#fafbfb] hover:border-b-2 hover:border-black"},{default:n(()=>[r(a(s.$t("Login")),1)]),_:1})])])])]),e("div",null,[e("div",null,[e("h4",te,a(s.$t("Contact us")),1),e("p",re,a(t.companyConfig.address),1),e("p",oe,[r(a(s.$t("Email"))+": ",1),e("a",{href:"mailto:"+t.companyConfig.email,class:"hover:underline"},a(t.companyConfig.email),9,le)]),e("p",ne,[r(a(s.$t("Phone"))+": ",1),e("a",{href:"tel:"+t.companyConfig.phone,class:"hover:underline"},a(t.companyConfig.phone),9,ce)]),e("div",ie,[m.value?(d(),i("a",{key:0,href:m.value,class:"cursor-pointer"},h[1]||(h[1]=[e("svg",{class:"hover:text-secondary",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24"},[e("path",{fill:"currentColor",d:"M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12c0 4.84 3.44 8.87 8 9.8V15H8v-3h2V9.5C10 7.57 11.57 6 13.5 6H16v3h-2c-.55 0-1 .45-1 1v2h3v3h-3v6.95c5.05-.5 9-4.76 9-9.95"})],-1)]),8,de)):f("",!0),v.value?(d(),i("a",{key:1,href:v.value,class:"cursor-pointer"},h[2]||(h[2]=[e("svg",{class:"hover:text-secondary",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24"},[e("path",{fill:"currentColor",d:"M22 5.8a8.49 8.49 0 0 1-2.36.64a4.13 4.13 0 0 0 1.81-2.27a8.21 8.21 0 0 1-2.61 1a4.1 4.1 0 0 0-7 3.74a11.64 11.64 0 0 1-8.45-4.29a4.16 4.16 0 0 0-.55 2.07a4.09 4.09 0 0 0 1.82 3.41a4.05 4.05 0 0 1-1.86-.51v.05a4.1 4.1 0 0 0 3.3 4a3.93 3.93 0 0 1-1.1.17a4.9 4.9 0 0 1-.77-.07a4.11 4.11 0 0 0 3.83 2.84A8.22 8.22 0 0 1 3 18.34a7.93 7.93 0 0 1-1-.06a11.57 11.57 0 0 0 6.29 1.85A11.59 11.59 0 0 0 20 8.45v-.53a8.43 8.43 0 0 0 2-2.12"})],-1)]),8,he)):f("",!0),g.value?(d(),i("a",{key:2,href:g.value,class:"cursor-pointer"},h[3]||(h[3]=[e("svg",{class:"hover:text-secondary",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24"},[e("path",{fill:"currentColor",d:"M17.34 5.46a1.2 1.2 0 1 0 1.2 1.2a1.2 1.2 0 0 0-1.2-1.2m4.6 2.42a7.59 7.59 0 0 0-.46-2.43a4.94 4.94 0 0 0-1.16-1.77a4.7 4.7 0 0 0-1.77-1.15a7.3 7.3 0 0 0-2.43-.47C15.06 2 14.72 2 12 2s-3.06 0-4.12.06a7.3 7.3 0 0 0-2.43.47a4.78 4.78 0 0 0-1.77 1.15a4.7 4.7 0 0 0-1.15 1.77a7.3 7.3 0 0 0-.47 2.43C2 8.94 2 9.28 2 12s0 3.06.06 4.12a7.3 7.3 0 0 0 .47 2.43a4.7 4.7 0 0 0 1.15 1.77a4.78 4.78 0 0 0 1.77 1.15a7.3 7.3 0 0 0 2.43.47C8.94 22 9.28 22 12 22s3.06 0 4.12-.06a7.3 7.3 0 0 0 2.43-.47a4.7 4.7 0 0 0 1.77-1.15a4.85 4.85 0 0 0 1.16-1.77a7.59 7.59 0 0 0 .46-2.43c0-1.06.06-1.4.06-4.12s0-3.06-.06-4.12M20.14 16a5.61 5.61 0 0 1-.34 1.86a3.06 3.06 0 0 1-.75 1.15a3.19 3.19 0 0 1-1.15.75a5.61 5.61 0 0 1-1.86.34c-1 .05-1.37.06-4 .06s-3 0-4-.06a5.73 5.73 0 0 1-1.94-.3a3.27 3.27 0 0 1-1.1-.75a3 3 0 0 1-.74-1.15a5.54 5.54 0 0 1-.4-1.9c0-1-.06-1.37-.06-4s0-3 .06-4a5.54 5.54 0 0 1 .35-1.9A3 3 0 0 1 5 5a3.14 3.14 0 0 1 1.1-.8A5.73 5.73 0 0 1 8 3.86c1 0 1.37-.06 4-.06s3 0 4 .06a5.61 5.61 0 0 1 1.86.34a3.06 3.06 0 0 1 1.19.8a3.06 3.06 0 0 1 .75 1.1a5.61 5.61 0 0 1 .34 1.9c.05 1 .06 1.37.06 4s-.01 3-.06 4M12 6.87A5.13 5.13 0 1 0 17.14 12A5.12 5.12 0 0 0 12 6.87m0 8.46A3.33 3.33 0 1 1 15.33 12A3.33 3.33 0 0 1 12 15.33"})],-1)]),8,ue)):f("",!0),_.value?(d(),i("a",{key:3,href:_.value,class:"cursor-pointer"},h[4]||(h[4]=[e("svg",{class:"hover:text-secondary",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 16 16"},[e("path",{fill:"currentColor",d:"M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854zm4.943 12.248V6.169H2.542v7.225zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248c-.015-.709-.52-1.248-1.342-1.248S2.4 3.226 2.4 3.934c0 .694.521 1.248 1.327 1.248zm4.908 8.212V9.359c0-.216.016-.432.08-.586c.173-.431.568-.878 1.232-.878c.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252c-1.274 0-1.845.7-2.165 1.193v.025h-.016l.016-.025V6.169h-2.4c.03.678 0 7.225 0 7.225z"})],-1)]),8,fe)):f("",!0),p.value?(d(),i("a",{key:4,href:p.value,class:"cursor-pointer"},h[5]||(h[5]=[e("svg",{class:"hover:text-secondary",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24"},[e("path",{fill:"currentColor",d:"M2 14.67a2 2 0 1 0 4 0v-2H4a2 2 0 0 0-2 2m12.64-3.34a2 2 0 0 0 2-2V4a2 2 0 1 0-4 0v5.33a2 2 0 0 0 2.02 2Zm7.32-2a2 2 0 1 0-4 0v2h2a2 2 0 0 0 2.04-2ZM9.34 12.67a2 2 0 0 0-2 2V20a2 2 0 1 0 4 0v-5.33a2 2 0 0 0-2-2M14.66 18h-2v2a2 2 0 1 0 2-2M20 12.67h-5.34a2 2 0 0 0 0 4H20a2 2 0 0 0 0-4M9.34 7.33H4a2 2 0 1 0 0 4h5.34a2 2 0 0 0 0-4m0-5.33a2 2 0 0 0 0 4h2V4a2 2 0 0 0-2-2"})],-1)]),8,be)):f("",!0)])])])])]),e("div",me,[e("p",ve,a(s.$t("Copyright"))+" "+a(o(x))+". "+a(s.$t("All rights reserved"))+".",1)])])],2))}};export{xe as default};