import{u as te}from"./Csjtw8MJ.js";import{_ as oe}from"./BuJMNYjm.js";import{_ as ne,a as se}from"./CvWfwWeK.js";import{m as y}from"./DBCQJO2L.js";import{d as re,c as l,e as t,f as o,g as r,B as D,F as M,A as $,t as v,p as u,a5 as T,h as w,C as U,Z as ie,m as ue}from"./CQ5rtXCu.js";const ce={key:0,class:"bg-white text-[14px] leading-[1.5] text-[#333]"},ve=["aria-label"],pe={class:"mx-[-15px] flex text-center"},he=["href","title","onClick"],de={class:"mx-[-15px] flex flex-wrap"},fe={class:"relative min-h-[68px]"},xe=["src","alt"],me={key:1,class:"absolute left-0 top-1/2 flex h-[68px] w-[68px] -translate-y-1/2 items-center justify-center rounded-full border border-white/50 text-white"},be={viewBox:"0 0 24 24",class:"h-[30px] w-[30px]",fill:"none",stroke:"currentColor","stroke-width":"1.3","aria-hidden":"true"},ge=["d"],ye={class:"min-w-0 pl-[80px] text-[20px] leading-[34px] text-white"},we=["href","title"],_e={key:0,class:"w-full px-[15px] min-[992px]:w-1/4 max-[765px]:mb-5 max-[765px]:pb-5"},ke={class:"relative h-[118px] pl-[80px]"},Ce=["src","alt"],Ae={key:1,class:"absolute left-0 top-1/2 flex h-[68px] w-[68px] -translate-y-1/2 items-center justify-center rounded-full border border-white/50 text-white"},Be=["src","alt"],Le={key:0,class:"whitespace-nowrap"},De={key:1,class:"whitespace-nowrap"},Me=["title"],Ne={key:0,class:"h-[60px] min-[992px]:hidden","aria-hidden":"true"},qe=["aria-label"],Ie=["href","title"],Pe=["href","title"],Se=["title","aria-label"],Z="mx-auto w-full max-w-[1400px] px-[15px] min-[601px]:w-[95%]",He=re({__name:"FooterLayout35",props:{footerData:{default:()=>({})},generatorPreview:{type:Boolean,default:!1}},setup(_){const k=_,O=[{nameDisplay:"首页",path:"/"},{nameDisplay:"走进我们",path:"/company.html"},{nameDisplay:"产品中心",path:"/product.html"},{nameDisplay:"营销服务",path:"/service.html"},{nameDisplay:"新闻资讯",path:"/news.html"},{nameDisplay:"联系我们",path:"/contact.html"}],e=l(()=>k.footerData),c=l(()=>Array.isArray(e.value.componentConfig)?e.value.componentConfig[0]||{}:e.value.componentConfig||{});function f(a){return String(a??"").trim()}function i(a,n=""){return f(a)||(k.generatorPreview?n:"")}const x=l(()=>i(e.value.organizationName||e.value.info?.title,"吸料天车_吸卸料_堆垛_焙烧多功能天车_焙烧多功能机组_某某科技公司")),E=l(()=>i(e.value.logoUrl,y["logo.png"])),z=l(()=>i(e.value.footerBgImageUrl||e.value.backgroundImageUrl,y["foot_bg.jpg"])),m=l(()=>Array.isArray(e.value.navItems)&&e.value.navItems.length?e.value.navItems:(Array.isArray(e.value.navColumns)?e.value.navColumns.find(n=>Array.isArray(n.items)&&n.items.length):void 0)?.items||(k.generatorPreview?O:[])),N=a=>f(a.nameDisplay||a.label||a.name||a.title),q=a=>f(e.value.getCachedLink?.(a)||a.path||a.href)||"#",h=l(()=>m.value.find(a=>a.path==="/")||m.value[0]),J=l(()=>h.value?q(h.value):"/"),b=l(()=>h.value?N(h.value):i(c.value.home,"首页")),C=l(()=>Array.isArray(e.value.contacts)?e.value.contacts:[]),p=l(()=>i(e.value.primaryPhone||C.value.find(a=>a.phone||a.mobile)?.phone||C.value.find(a=>a.phone||a.mobile)?.mobile,"10000000000")),j=l(()=>p.value?`tel:${p.value.replace(/[^+\d]/g,"")}`:""),I=l(()=>i(e.value.primaryEmail||C.value.find(a=>a.email)?.email,"000000000@qq.com")),R=te(()=>e.value),G=l(()=>i(R.value,"山东省某市")),K=l(()=>i(e.value.phoneLabel||c.value.phone,"×××")),Q=l(()=>i(c.value.email,"电子邮箱")),W=l(()=>i(c.value.address,"公司地址")),A=l(()=>i(e.value.qrCodeImageUrl||e.value.qrCode||C.value.find(a=>a.qr_code_url)?.qr_code_url,y["ewm.png"])),V=l(()=>i(e.value.qrCodeLabel||c.value.qrCodeLabel,"二维码")),B=l(()=>i(e.value.copyright,"版权所有 CopyRight © 2019-2020 吸料_吸卸料_堆垛_焙烧多功能天车_焙烧多功能机组_某某科技公司")),g=l(()=>i(e.value.filingNumber,"鲁ICP备11111111号-1")),P=l(()=>i(e.value.policeFilingNumber,"豫公网安备 00000000000000号")),L=l(()=>i(c.value.phone,"一键拨号")),d=l(()=>i(c.value.backToTop,"TOP")),F=l(()=>({...e.value,componentConfig:{...c.value,link:i(c.value.link,"友情链接")},bindings:{...e.value.bindings,footerSocials:Array.isArray(e.value.bindings?.footerSocials)&&e.value.bindings.footerSocials.length?e.value.bindings.footerSocials:k.generatorPreview?Array.from({length:16},(a,n)=>({id:n,name:"某某科技公司",url:"#"})):[]}})),S=l(()=>[{key:"phone",value:p.value,label:K.value,href:j.value,icon:"foot_ico1.png",path:"M8 3H5a2 2 0 0 0-2 2c0 8.8 7.2 16 16 16a2 2 0 0 0 2-2v-3l-5-2-2 2a14 14 0 0 1-6-6l2-2-2-5Z"},{key:"email",value:I.value,label:Q.value,href:I.value?`mailto:${I.value}`:"",icon:"foot_ico2.png",path:"M3 5h18v14H3V5Zm0 1 9 7 9-7"},{key:"address",value:G.value,label:W.value,href:"",icon:"foot_ico3.png",path:"M12 22s8-8 8-14a8 8 0 1 0-16 0c0 6 8 14 8 14ZM12 5a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z"}].filter(a=>a.value)),X=l(()=>!!(m.value.length||E.value||x.value||S.value.length||A.value||B.value||g.value||P.value||F.value.bindings.footerSocials.length));function Y(a){return a.replace(/[：:]\s*$/,"")}function H(a,n){e.value.handleNavClick?e.value.handleNavClick(a,n):q(a)==="#"&&n.preventDefault()}function ee(){typeof window<"u"&&window.scrollTo({top:0,behavior:window.matchMedia("(prefers-reduced-motion: reduce)").matches?"instant":"smooth"})}return(a,n)=>X.value?(t(),o("footer",ce,[r("div",{class:"bg-[var(--theme-primary-color,#1c2b4a)] bg-fixed bg-center bg-no-repeat max-[765px]:pb-5",style:ue(z.value?{backgroundImage:`url(${JSON.stringify(z.value)})`}:void 0)},[m.value.length?(t(),o("nav",{key:0,class:"hidden border-b border-white/30 min-[992px]:block","aria-label":f(c.value.navigation)||x.value||void 0},[r("div",{class:D(Z)},[r("ul",pe,[(t(!0),o(M,null,$(m.value,(s,ae)=>(t(),o("li",{key:s.id??ae,class:"min-w-0 flex-1"},[r("a",{href:q(s),title:N(s),class:"block px-[30px] text-[16px] leading-[60px] text-white transition-colors hover:bg-white/10 focus-visible:outline-2 focus-visible:outline-inset",onClick:le=>H(s,le)},v(N(s)),9,he)]))),128))])])],8,ve)):u("",!0),S.value.length||A.value?(t(),o("div",{key:1,class:D([Z,"py-[50px] max-[765px]:py-[30px]"])},[r("ul",de,[(t(!0),o(M,null,$(S.value,s=>(t(),o("li",{key:s.key,class:"min-w-0 w-full px-[15px] py-[25px] min-[992px]:w-1/4 max-[765px]:mb-5 max-[765px]:border-b max-[765px]:border-white/30 max-[765px]:pb-5"},[r("div",fe,[_.generatorPreview?(t(),o("img",{key:0,src:T(y)[s.icon],alt:s.label||s.value,class:"absolute left-0 top-1/2 h-[68px] w-[68px] -translate-y-1/2 object-contain",loading:"lazy"},null,8,xe)):(t(),o("span",me,[(t(),o("svg",be,[r("path",{d:s.path},null,8,ge)]))])),r("p",ye,[s.label?(t(),o(M,{key:0},[w(v(Y(s.label))+"：",1),n[1]||(n[1]=r("br",null,null,-1))],64)):u("",!0),s.href?(t(),o("a",{key:1,href:s.href,title:s.value,class:D(["text-[20px] font-bold hover:opacity-80",{"break-all":s.key==="email"}])},v(s.value),11,we)):(t(),o(M,{key:2},[w(v(s.value),1)],64))])])]))),128)),A.value?(t(),o("li",_e,[r("div",ke,[_.generatorPreview?(t(),o("img",{key:0,src:T(y)["foot_ico4.png"],alt:V.value||x.value,class:"absolute left-0 top-1/2 h-[68px] w-[68px] -translate-y-1/2 object-contain",loading:"lazy"},null,8,Ce)):(t(),o("span",Ae,[...n[2]||(n[2]=[r("svg",{viewBox:"0 0 24 24",class:"h-[30px] w-[30px]",fill:"none",stroke:"currentColor","stroke-width":"1.3","aria-hidden":"true"},[r("path",{d:"M3 3h7v7H3V3Zm11 0h7v7h-7V3ZM3 14h7v7H3v-7Zm11 0h3v3h-3v-3Zm6 0h1v7h-7v-1m0-3v3m3-3h3"})],-1)])])),r("img",{src:A.value,alt:V.value||x.value,width:"118",height:"118",class:"h-[118px] w-[118px] object-contain",loading:"lazy"},null,8,Be)])])):u("",!0)])])):u("",!0),B.value||g.value||P.value||e.value.sitemapUrl?(t(),o("div",{key:2,class:D([Z,"hidden items-center justify-center gap-x-3 pb-3 text-white min-[992px]:flex"])},[_.generatorPreview?(t(),o("span",Le,"页面版权所有")):u("",!0),B.value?(t(),o("span",De,v(B.value),1)):u("",!0),g.value?(t(),o("a",{key:2,href:"https://beian.miit.gov.cn/",target:"_blank",rel:"noopener noreferrer",title:g.value,class:"whitespace-nowrap transition-opacity hover:opacity-80"},v(g.value),9,Me)):u("",!0),U(ne,{value:P.value,class:"whitespace-nowrap"},null,8,["value"]),e.value.sitemapUrl?(t(),ie(se,{key:3,"footer-data":e.value,class:"whitespace-nowrap"},null,8,["footer-data"])):u("",!0)])):u("",!0),U(oe,{"footer-data":F.value,class:"justify-center! gap-x-0! gap-y-0! pb-5 text-white","label-class":"text-white","link-class":"text-white after:mx-1 after:content-['|'] last:after:content-[''] hover:text-white/80"},null,8,["footer-data"])],4),b.value||p.value&&L.value||d.value?(t(),o("div",Ne)):u("",!0),b.value||p.value&&L.value||d.value?(t(),o("nav",{key:1,class:"fixed inset-x-0 bottom-0 z-50 flex bg-[var(--theme-primary-color,#1c2b4a)] pb-[env(safe-area-inset-bottom)] text-center text-[14px] leading-5 text-[var(--theme-primary-contrast,#fff)] min-[992px]:hidden","aria-label":f(c.value.navigation)||x.value||void 0},[b.value?(t(),o("a",{key:0,href:J.value,title:b.value,class:"flex flex-1 flex-col items-center border-r border-white/10 py-[10px] focus-visible:outline-2 focus-visible:outline-inset",onClick:n[0]||(n[0]=s=>h.value&&H(h.value,s))},[n[3]||(n[3]=r("svg",{viewBox:"0 0 24 24",class:"h-5 w-5",fill:"none",stroke:"currentColor","stroke-width":"1.8","aria-hidden":"true"},[r("path",{d:"m2 11 10-9 10 9M5 9v12h5v-7h4v7h5V9"})],-1)),w(v(b.value),1)],8,Ie)):u("",!0),p.value&&L.value?(t(),o("a",{key:1,href:j.value,title:p.value,class:"flex flex-1 flex-col items-center border-r border-white/10 py-[10px] focus-visible:outline-2 focus-visible:outline-inset"},[n[4]||(n[4]=r("svg",{viewBox:"0 0 24 24",class:"h-5 w-5",fill:"none",stroke:"currentColor","stroke-width":"1.8","aria-hidden":"true"},[r("path",{d:"M8 3H5a2 2 0 0 0-2 2c0 8.8 7.2 16 16 16a2 2 0 0 0 2-2v-3l-5-2-2 2a14 14 0 0 1-6-6l2-2-2-5Z"})],-1)),w(v(L.value),1)],8,Pe)):u("",!0),d.value?(t(),o("button",{key:2,type:"button",title:d.value,"aria-label":d.value,class:"flex flex-1 flex-col items-center bg-[#fa331c] py-[10px] focus-visible:outline-2 focus-visible:outline-inset",onClick:ee},[n[5]||(n[5]=r("svg",{viewBox:"0 0 24 24",class:"h-5 w-5",fill:"none",stroke:"currentColor","stroke-width":"1.8","aria-hidden":"true"},[r("path",{d:"M4 3h16M5 14l7-7 7 7M12 7v15"})],-1)),w(v(d.value),1)],8,Se)):u("",!0)],8,qe)):u("",!0)])):u("",!0)}});export{He as default};
