import{_ as ye}from"./Breadcrumb.10929925.js";import{_ as ge}from"./Image.e40f281f.js";import{_ as be}from"./nuxt-link.0da3f327.js";import{_ as pe,a as we}from"./List.6437a01d.js";import{r as ke}from"./StarIcon.8d2db8d2.js";import{q as D,m as C,J as _e,I as N,L as Q,x as A,X as ce,W as $e,F as B,Y as me,Z as X,o as r,c as a,a as s,i as g,t as w,g as d,r as q,b as L,R as W,w as O,n as he,j as ie,h as E,d as V,z as Se,C as Te}from"./entry.e017eb4f.js";import{o as M,a as Ie,f as fe,O as R,H as G,T as Ae,t as xe,N as ue,u as J,b as F,c as K,d as Pe,m as Le,P as z,e as j}from"./micro-task.6bdc1af7.js";function de(e,t){if(e)return e;let i=t??"button";if(typeof i=="string"&&i.toLowerCase()==="button")return"button"}function Me(e,t){let i=D(de(e.value.type,e.value.as));return C(()=>{i.value=de(e.value.type,e.value.as)}),_e(()=>{var o;i.value||M(t)&&M(t)instanceof HTMLButtonElement&&!((o=M(t))!=null&&o.hasAttribute("type"))&&(i.value="button")}),i}let Be=N({props:{onFocus:{type:Function,required:!0}},setup(e){let t=D(!0);return()=>t.value?Q(fe,{as:"button",type:"button",features:Ie.Focusable,onFocus(i){i.preventDefault();let o,m=50;function p(){var x;if(m--<=0){o&&cancelAnimationFrame(o);return}if((x=e.onFocus)!=null&&x.call(e)){t.value=!1,cancelAnimationFrame(o);return}o=requestAnimationFrame(p)}o=requestAnimationFrame(p)}}):null}});var He=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(He||{}),qe=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(qe||{});let ve=Symbol("TabsContext");function U(e){let t=X(ve,null);if(t===null){let i=new Error(`<${e} /> is missing a parent <TabGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,U),i}return t}let Y=Symbol("TabsSSRContext"),ee=N({name:"TabGroup",emits:{change:e=>!0},props:{as:{type:[Object,String],default:"template"},selectedIndex:{type:[Number],default:null},defaultIndex:{type:[Number],default:0},vertical:{type:[Boolean],default:!1},manual:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:i,emit:o}){var m;let p=D((m=e.selectedIndex)!=null?m:e.defaultIndex),x=D([]),y=D([]),T=A(()=>e.selectedIndex!==null),u=A(()=>T.value?e.selectedIndex:p.value);function h(c){var l;let f=R(_.tabs.value,M),P=R(_.panels.value,M),k=f.filter(n=>{var $;return!(($=M(n))!=null&&$.hasAttribute("disabled"))});if(c<0||c>f.length-1){let n=J(p.value===null?0:Math.sign(c-p.value),{[-1]:()=>1,[0]:()=>J(Math.sign(c),{[-1]:()=>0,[0]:()=>0,[1]:()=>1}),[1]:()=>0});p.value=J(n,{[0]:()=>f.indexOf(k[0]),[1]:()=>f.indexOf(k[k.length-1])}),_.tabs.value=f,_.panels.value=P}else{let n=f.slice(0,c),$=[...f.slice(c),...n].find(S=>k.includes(S));if(!$)return;let b=(l=f.indexOf($))!=null?l:_.selectedIndex.value;b===-1&&(b=_.selectedIndex.value),p.value=b,_.tabs.value=f,_.panels.value=P}}let _={selectedIndex:A(()=>{var c,l;return(l=(c=p.value)!=null?c:e.defaultIndex)!=null?l:null}),orientation:A(()=>e.vertical?"vertical":"horizontal"),activation:A(()=>e.manual?"manual":"auto"),tabs:x,panels:y,setSelectedIndex(c){u.value!==c&&o("change",c),T.value||h(c)},registerTab(c){var l;if(x.value.includes(c))return;let f=x.value[p.value];x.value.push(c),x.value=R(x.value,M);let P=(l=x.value.indexOf(f))!=null?l:p.value;P!==-1&&(p.value=P)},unregisterTab(c){let l=x.value.indexOf(c);l!==-1&&x.value.splice(l,1)},registerPanel(c){y.value.includes(c)||(y.value.push(c),y.value=R(y.value,M))},unregisterPanel(c){let l=y.value.indexOf(c);l!==-1&&y.value.splice(l,1)}};ce(ve,_);let I=D({tabs:[],panels:[]}),H=D(!1);C(()=>{H.value=!0}),ce(Y,A(()=>H.value?null:I.value));let v=A(()=>e.selectedIndex);return C(()=>{$e([v],()=>{var c;return h((c=e.selectedIndex)!=null?c:e.defaultIndex)},{immediate:!0})}),_e(()=>{if(!T.value||u.value==null||_.tabs.value.length<=0)return;let c=R(_.tabs.value,M);c.some((l,f)=>M(_.tabs.value[f])!==M(l))&&_.setSelectedIndex(c.findIndex(l=>M(l)===M(_.tabs.value[u.value])))}),()=>{let c={selectedIndex:p.value};return Q(B,[x.value.length<=0&&Q(Be,{onFocus:()=>{for(let l of x.value){let f=M(l);if((f==null?void 0:f.tabIndex)===0)return f.focus(),!0}return!1}}),G({theirProps:{...i,...Ae(e,["selectedIndex","defaultIndex","manual","vertical","onChange"])},ourProps:{},slot:c,slots:t,attrs:i,name:"TabGroup"})])}}}),te=N({name:"TabList",props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:i}){let o=U("TabList");return()=>{let m={selectedIndex:o.selectedIndex.value},p={role:"tablist","aria-orientation":o.orientation.value};return G({ourProps:p,theirProps:e,slot:m,attrs:t,slots:i,name:"TabList"})}}}),se=N({name:"Tab",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`headlessui-tabs-tab-${xe()}`}},setup(e,{attrs:t,slots:i,expose:o}){let m=U("Tab"),p=D(null);o({el:p,$el:p}),C(()=>m.registerTab(p)),me(()=>m.unregisterTab(p));let x=X(Y),y=A(()=>{if(x.value){let l=x.value.tabs.indexOf(e.id);return l===-1?x.value.tabs.push(e.id)-1:l}return-1}),T=A(()=>{let l=m.tabs.value.indexOf(p);return l===-1?y.value:l}),u=A(()=>T.value===m.selectedIndex.value);function h(l){var f;let P=l();if(P===K.Success&&m.activation.value==="auto"){let k=(f=Le(p))==null?void 0:f.activeElement,n=m.tabs.value.findIndex($=>M($)===k);n!==-1&&m.setSelectedIndex(n)}return P}function _(l){let f=m.tabs.value.map(P=>M(P)).filter(Boolean);if(l.key===F.Space||l.key===F.Enter){l.preventDefault(),l.stopPropagation(),m.setSelectedIndex(T.value);return}switch(l.key){case F.Home:case F.PageUp:return l.preventDefault(),l.stopPropagation(),h(()=>z(f,j.First));case F.End:case F.PageDown:return l.preventDefault(),l.stopPropagation(),h(()=>z(f,j.Last))}if(h(()=>J(m.orientation.value,{vertical(){return l.key===F.ArrowUp?z(f,j.Previous|j.WrapAround):l.key===F.ArrowDown?z(f,j.Next|j.WrapAround):K.Error},horizontal(){return l.key===F.ArrowLeft?z(f,j.Previous|j.WrapAround):l.key===F.ArrowRight?z(f,j.Next|j.WrapAround):K.Error}}))===K.Success)return l.preventDefault()}let I=D(!1);function H(){var l;I.value||(I.value=!0,!e.disabled&&((l=M(p))==null||l.focus(),m.setSelectedIndex(T.value),Pe(()=>{I.value=!1})))}function v(l){l.preventDefault()}let c=Me(A(()=>({as:e.as,type:t.type})),p);return()=>{var l;let f={selected:u.value},{id:P,...k}=e,n={ref:p,onKeydown:_,onMousedown:v,onClick:H,id:P,role:"tab",type:c.value,"aria-controls":(l=M(m.panels.value[T.value]))==null?void 0:l.id,"aria-selected":u.value,tabIndex:u.value?0:-1,disabled:e.disabled?!0:void 0};return G({ourProps:n,theirProps:k,slot:f,attrs:t,slots:i,name:"Tab"})}}}),ne=N({name:"TabPanels",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:i}){let o=U("TabPanels");return()=>{let m={selectedIndex:o.selectedIndex.value};return G({theirProps:e,ourProps:{},slot:m,attrs:i,slots:t,name:"TabPanels"})}}}),re=N({name:"TabPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:()=>`headlessui-tabs-panel-${xe()}`},tabIndex:{type:Number,default:0}},setup(e,{attrs:t,slots:i,expose:o}){let m=U("TabPanel"),p=D(null);o({el:p,$el:p}),C(()=>m.registerPanel(p)),me(()=>m.unregisterPanel(p));let x=X(Y),y=A(()=>{if(x.value){let h=x.value.panels.indexOf(e.id);return h===-1?x.value.panels.push(e.id)-1:h}return-1}),T=A(()=>{let h=m.panels.value.indexOf(p);return h===-1?y.value:h}),u=A(()=>T.value===m.selectedIndex.value);return()=>{var h;let _={selected:u.value},{id:I,tabIndex:H,...v}=e,c={ref:p,id:I,role:"tabpanel","aria-labelledby":(h=M(m.tabs.value[T.value]))==null?void 0:h.id,tabIndex:u.value?H:-1};return!u.value&&e.unmount&&!e.static?Q(fe,{as:"span",...c}):G({ourProps:c,theirProps:v,slot:_,attrs:t,slots:i,features:ue.Static|ue.RenderStrategy,visible:u.value,name:"TabPanel"})}}});const Oe={class:"mt-8 lg:col-span-7 lg:col-start-6"},De={class:"flow-root"},Fe={class:"-my-12 divide-y divide-gray-200"},je={class:"py-12"},Ee={class:"flex items-center"},Ce={class:"ml-0"},ze={class:"text-sm font-bold text-gray-900"},Ne={class:"mt-1 flex items-center"},Re={class:"mt-3 space-y-6 text-base italic text-gray-600"},We={__name:"Feedback",setup(e){const t=[{name:"Peter Müller",text:"Mit Solis habe ich einen zuverlässigen Partner an meiner Seite – Qualität, die überzeugt!"},{name:"Klaus Schmidt",text:"Die Garantie von Solis gibt mir das Vertrauen, das ich für meine landwirtschaftliche Arbeit brauche."},{name:"Johanna Meier",text:"Solis Traktoren sind die perfekte Kombination aus Leistung und Preis – einfach unschlagbar!"},{name:"Friedrich Schuster",text:"Dank des starken Händlernetzwerks von Solis ist der Service immer schnell und kompetent."},{name:"Andreas Huber",text:"Die robusten Traktoren von Solis halten, was sie versprechen – Langlebigkeit und Zuverlässigkeit."},{name:"Ludwig Bauer",text:"Ich bin beeindruckt von der Vielseitigkeit der Solis Traktoren – für jede Aufgabe gewappnet!"},{name:"Henning Schmitt",text:"Solis bietet eine hervorragende Ersatzteilversorgung – ich fühle mich gut aufgehoben."},{name:"Wolf-Dieter König",text:"Die Garantie auf Motor und Getriebe von Solis ist ein echtes Sicherheitsplus für mich."},{name:"Wolfgang Becker",text:"Die Qualität und der faire Preis der Solis Traktoren haben mich vollständig überzeugt."},{name:"Thomas Schäfer",text:"Solis steht für Innovation und Kundennähe – ich bin froh, mich für diese Marke entschieden zu haben."}],i=t[Math.floor(Math.random()*t.length)],o=D(i.name),m=D(i.text);return(p,x)=>(r(),a("div",Oe,[s("div",De,[s("div",Fe,[s("div",je,[s("div",Ee,[g("",!0),s("div",Ce,[s("h4",ze,w(d(o)),1),s("div",Ne,[(r(),a(B,null,q([0,1,2,3,4],y=>L(d(ke),{key:y,class:W([5>y?"text-yellow-400":"text-gray-300","h-5 w-5 flex-shrink-0"]),"aria-hidden":"true"},null,8,["class"])),64))])])]),s("div",Re,w(d(m)),1)])])])]))}},Ge=We,Ue={class:"mx-auto mt-12 lg:mt-20 max-w-2xl px-4 lg:max-w-none lg:px-0"},Ze=s("div",{class:"max-w-3xl"},[s("h2",{id:"features-heading",class:"text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl"}," Alle Fakten auf einen Blick "),s("p",{class:"mt-4 text-gray-500"}," Hier findest du alle wichtigen Informationen auf einen Blick. Wenn du noch Fragen hast, kannst du uns gerne kontaktieren. Wir helfen dir gerne weiter. Wir freuen uns auf deine Anfrage! ")],-1),Ve={class:"-mx-4 flex overflow-x-auto sm:mx-0"},Ke={class:"flex-auto border-b border-gray-200 px-4 sm:px-0"},Je={key:0},Qe=["innerHTML"],Xe={key:1,class:"inline-block min-w-full max-w-full overflow-x-auto align-middle"},Ye={class:"min-w-full divide-y divide-gray-300"},et={class:"divide-y divide-gray-200"},tt={class:"whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-0"},st={class:"whitespace-nowrap py-4 px-3 text-sm text-gray-500"},nt={class:"whitespace-nowrap py-4 px-3 text-sm text-gray-500 sm:pr-0"},rt={key:0},lt={class:"whitespace-nowrap py-4 px-3 text-sm text-gray-500 text-center",colspan:"3"},at={key:1},ot=["innerHTML"],ct={key:1,class:"inline-block min-w-full max-w-full overflow-x-auto align-middle"},it={class:"min-w-full divide-y divide-gray-300"},ut={class:"divide-y divide-gray-200"},dt={class:"whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-0 sm:pr-0"},pt={key:2},_t=["innerHTML"],mt={key:1,class:"inline-block min-w-full max-w-full overflow-x-auto align-middle"},ht={class:"min-w-full divide-y divide-gray-300"},ft={class:"divide-y divide-gray-200"},xt={class:"whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-0"},vt={class:"whitespace-nowrap py-4 px-3 text-sm text-gray-500"},yt={class:"whitespace-nowrap py-4 px-3 text-sm text-gray-500"},gt={class:"whitespace-nowrap py-4 px-3 text-sm text-gray-500"},bt={class:"whitespace-nowrap py-4 px-3 text-sm text-gray-500"},wt={class:"whitespace-nowrap py-4 px-3 text-sm text-gray-500"},kt={class:"whitespace-nowrap py-4 px-3 text-sm text-gray-500 sm:pr-0"},$t={key:3},St=["innerHTML"],Tt={key:1,class:"inline-block min-w-full max-w-full overflow-x-auto align-middle"},It={class:"min-w-full divide-y divide-gray-300"},At={class:"divide-y divide-gray-200"},Pt={class:"whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-0 sm:pr-0"},Lt={key:4},Mt=["innerHTML"],Bt={key:1,class:"inline-block min-w-full max-w-full overflow-x-auto align-middle"},Ht={class:"min-w-full divide-y divide-gray-300"},qt={class:"divide-y divide-gray-200"},Ot={class:"py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-0 sm:pr-0 item-start font-bold"},Dt={class:"py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-0 sm:pr-0"},Ft={class:"py-1 pr-5"},jt={__name:"Specs",props:{product:{type:Object,required:!0}},setup(e){var x,y,T,u,h;const t=e,i={};t.product.video&&(i.video="Video"),(x=t.product.tech_specs)!=null&&x.length||t.product.tech_specs_html?i.tech_specs="Technische Daten":((y=t.product.accessory_specs)!=null&&y.length||t.product.accessory_specs_html)&&(i.accessory_specs="Technische Daten"),((T=t.product.default_equipment)!=null&&T.length||t.product.default_equipment_html)&&(i.default_equipment="Serienausstattung"),((u=t.product.dimensions)!=null&&u.length||t.product.dimensions_html)&&(i.dimensions="Abmessungen"),((h=t.product.special_attributes)!=null&&h.length||t.product.special_attributes_html)&&(i.special_attributes="Besondere Merkmale");const o=D(!1),m=A(()=>{var _;return o.value?t.product.tech_specs:(_=t.product.tech_specs)==null?void 0:_.slice(0,7)}),p=A(()=>{var _;return((_=t.product.tech_specs)==null?void 0:_.length)>7});return(_,I)=>(r(),a("div",Ue,[Ze,L(d(ee),{as:"div",class:"mt-4"},{default:O(()=>[s("div",Ve,[s("div",Ke,[L(d(te),{class:"-mb-px flex space-x-10"},{default:O(()=>[(r(),a(B,null,q(i,(H,v)=>L(d(se),{key:v,as:"template"},{default:O(({selected:c})=>[s("button",{class:W([c?"border-sd-blue-light text-sd-blue":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700","outline-0 focus:outline-0 whitespace-nowrap border-b-2 py-6 text-sm font-medium"])},w(H),3)]),_:2},1024)),64))]),_:1})])]),L(d(ne),{as:"template"},{default:O(()=>[(r(),a(B,null,q(i,(H,v)=>L(d(re),{key:v,class:"pt-6 -mx-4 sm:mx-0 lg:pt-8"},{default:O(()=>{var c,l,f,P,k;return[v==="tech_specs"?(r(),a("div",Je,[t.product.tech_specs_html?(r(),a("div",{key:0,class:"prose lg:max-w-full",innerHTML:t.product.tech_specs_html},null,8,Qe)):g("",!0),(c=t.product.tech_specs)!=null&&c.length?(r(),a("div",Xe,[s("table",Ye,[s("tbody",et,[(r(!0),a(B,null,q(d(m),n=>{var $,b,S;return r(),a("tr",{key:n.key},[s("td",tt,w(($=n==null?void 0:n.attributes)==null?void 0:$.spec),1),s("td",st,w((b=n==null?void 0:n.attributes)==null?void 0:b.value_1),1),s("td",nt,w((S=n==null?void 0:n.attributes)==null?void 0:S.value_2),1)])}),128)),d(p)&&!d(o)?(r(),a("tr",rt,[s("td",lt,[s("button",{class:"text-sd-blue hover:text-sd-blue-light focus:outline-none focus:underline",onClick:I[0]||(I[0]=n=>o.value=!0)}," Alle anzeigen ")])])):g("",!0)])])])):g("",!0)])):g("",!0),v==="default_equipment"?(r(),a("div",at,[t.product.default_equipment_html?(r(),a("div",{key:0,class:"prose lg:max-w-full",innerHTML:t.product.default_equipment_html},null,8,ot)):g("",!0),(l=t.product.default_equipment)!=null&&l.length?(r(),a("div",ct,[s("table",it,[s("tbody",ut,[(r(!0),a(B,null,q(e.product.default_equipment,n=>{var $;return r(),a("tr",{key:n.key},[s("td",dt,w(($=n==null?void 0:n.attributes)==null?void 0:$.text),1)])}),128))])])])):g("",!0)])):g("",!0),v==="dimensions"?(r(),a("div",pt,[t.product.dimensions_html?(r(),a("div",{key:0,class:"prose lg:max-w-full",innerHTML:t.product.dimensions_html},null,8,_t)):g("",!0),(f=t.product.dimensions)!=null&&f.length?(r(),a("div",mt,[s("table",ht,[s("tbody",ft,[(r(!0),a(B,null,q(e.product.dimensions,n=>{var $,b,S,Z,le,ae,oe;return r(),a("tr",{key:n.key},[s("td",xt,w(($=n==null?void 0:n.attributes)==null?void 0:$.number),1),s("td",vt,w((b=n==null?void 0:n.attributes)==null?void 0:b.name),1),s("td",yt,w((S=n==null?void 0:n.attributes)==null?void 0:S["as-diagonal"]),1),s("td",gt,w((Z=n==null?void 0:n.attributes)==null?void 0:Z["landwirtschaftliche-bereifung_(radial)"]),1),s("td",bt,w((le=n==null?void 0:n.attributes)==null?void 0:le["rasen-bereifung"]),1),s("td",wt,w((ae=n==null?void 0:n.attributes)==null?void 0:ae["industrie-bereifung"]),1),s("td",kt,w((oe=n==null?void 0:n.attributes)==null?void 0:oe.galaxy_pro_reifen),1)])}),128))])])])):g("",!0)])):g("",!0),v==="special_attributes"?(r(),a("div",$t,[t.product.special_attributes_html?(r(),a("div",{key:0,class:"prose lg:max-w-full",innerHTML:t.product.special_attributes_html},null,8,St)):g("",!0),(P=t.product.special_attributes)!=null&&P.length?(r(),a("div",Tt,[s("table",It,[s("tbody",At,[(r(!0),a(B,null,q(e.product.special_attributes,n=>{var $;return r(),a("tr",{key:n.key},[s("td",Pt,w(($=n==null?void 0:n.attributes)==null?void 0:$.text),1)])}),128))])])])):g("",!0)])):g("",!0),v==="accessory_specs"?(r(),a("div",Lt,[t.product.accessory_specs_html?(r(),a("div",{key:0,class:"prose lg:max-w-full",innerHTML:t.product.accessory_specs_html},null,8,Mt)):g("",!0),(k=t.product.accessory_specs)!=null&&k.length?(r(),a("div",Bt,[s("table",Ht,[s("tbody",qt,[(r(!0),a(B,null,q(e.product.accessory_specs,n=>(r(),a("tr",{key:n.name},[s("td",Ot,w(n==null?void 0:n.name),1),s("td",Dt,[s("table",null,[(r(!0),a(B,null,q(n.accessory_spec_values,$=>(r(),a("tr",{key:$.id+"specvalue"},[s("td",Ft,w($.value),1),s("td",null,w(_.$currency($.price_net)),1)]))),128))])])]))),128))])])])):g("",!0)])):g("",!0)]}),_:2},1024)),64))]),_:1})]),_:1})]))}},Et=jt,Ct={key:0,id:"accessories",class:"mx-auto mt-12 lg:mt-20 max-w-2xl px-4 lg:max-w-none lg:px-0"},zt=s("div",{class:"max-w-3xl"},[s("h2",{id:"features-heading",class:"text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl"}," Passendes Zubehör "),s("p",{class:"mt-4 text-gray-500"}," Hier finden Sie passendes Zubehör für Ihren Traktor. Wählen Sie einfach die gewünschten Artikel aus und fordern Sie ein Angebot an. ")],-1),Nt={class:"-mx-4 flex overflow-x-auto sm:mx-0"},Rt={class:"flex-auto border-b border-gray-200 px-4 sm:px-0"},Wt={class:"text-2xl font-semibold mb-4"},Gt={__name:"Accessory",props:{product:{type:Object,required:!0},accessoryCollections:{type:Array,required:!0}},setup(e){var o,m,p,x;const t=e;C(()=>{he().hash==="#zubehoer"&&setTimeout(()=>{var y;(y=document.querySelector("#accessories"))==null||y.scrollIntoView()},100)});const i={};return(m=(o=t.product)==null?void 0:o.accessories)!=null&&m.find(y=>{var T;return!y.is_hidden&&((T=y.accessories_accessory_collections)==null?void 0:T.find(u=>{var h;return parseInt((h=u.accessory_collection)==null?void 0:h.accessory_type_id)===1}))})&&(i[1]="Optionale Ausrüstung"),(x=(p=t.product)==null?void 0:p.accessories)!=null&&x.find(y=>{var T;return!y.is_hidden&&((T=y.accessories_accessory_collections)==null?void 0:T.find(u=>{var h;return parseInt((h=u.accessory_collection)==null?void 0:h.accessory_type_id)===2}))})&&(i[2]="Zubehör"),(y,T)=>{const u=pe;return e.product.accessories?(r(),a("div",Ct,[zt,L(d(ee),{as:"div",class:"mt-4"},{default:O(()=>[s("div",Nt,[s("div",Rt,[L(d(te),{class:"-mb-px flex space-x-10"},{default:O(()=>[(r(),a(B,null,q(i,(h,_)=>L(d(se),{key:_,as:"template"},{default:O(({selected:I})=>[s("button",{class:W([I?"border-sd-blue-light text-sd-blue":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700","outline-0 focus:outline-0 whitespace-nowrap border-b-2 py-6 text-sm font-medium"])},w(h),3)]),_:2},1024)),64))]),_:1})])]),L(d(ne),{as:"template"},{default:O(()=>[(r(),a(B,null,q(i,(h,_)=>L(d(re),{key:_,class:"pt-6 -mx-4 sm:mx-0 lg:pt-8"},{default:O(()=>{var I,H;return[(r(!0),a(B,null,q((H=(I=e.accessoryCollections)==null?void 0:I.filter(v=>parseInt(v==null?void 0:v.accessory_type_id)===parseInt(_)))==null?void 0:H.sort((v,c)=>v.sort_order-c.sort_order),v=>{var c,l,f,P;return r(),a(B,null,[(c=e.product.vehicle_accessory_collections)!=null&&c.find(k=>parseInt(k.accessory_collection_id)===parseInt(v.id))&&((f=(l=e.product.accessories)==null?void 0:l.filter(k=>!k.is_hidden&&(k==null?void 0:k.accessories_accessory_collections.find(n=>parseInt(n.accessory_collection_id)===parseInt(v.id)))))!=null&&f.length)?(r(),a("div",{key:v.id,class:"mb-10 pb-10 border-b border-gray-200 last:border-b-0 last:pb-0"},[s("h2",Wt,w(v.name),1),L(u,{products:(P=e.product.accessories)==null?void 0:P.filter(k=>!k.is_hidden&&(k==null?void 0:k.accessories_accessory_collections.find(n=>parseInt(n.accessory_collection_id)===parseInt(v.id)))),"accessory-collections":e.accessoryCollections,"is-accessory":""},null,8,["products","accessory-collections"])])):g("",!0)],64)}),256))]}),_:2},1024)),64))]),_:1})]),_:1})])):g("",!0)}}},Ut=Gt,Zt={key:0,id:"accessories",class:"mx-auto mt-12 lg:mt-20 max-w-2xl px-4 lg:max-w-none lg:px-0"},Vt=s("div",{class:"max-w-3xl"},[s("h2",{id:"features-heading",class:"text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl"}," Passendes Zubehör "),s("p",{class:"mt-4 text-gray-500"}," Hier finden Sie weiteres passendes Zubehör passend zu diesem Artikel. ")],-1),Kt={class:"mb-10 pb-10 border-b border-gray-200 last:border-b-0 last:pb-0 mt-6 lg:mt-8"},Jt={__name:"AccessoryAccessories",props:{product:{type:Object,required:!0},accessoryCollections:{type:Array,required:!0}},setup(e){const t=e,i=A(()=>{var o;return(o=t.product.accessory_accessories)==null?void 0:o.map(m=>m.foreign_accessory)});return C(()=>{he().hash==="#zubehoer"&&setTimeout(()=>{var o;(o=document.querySelector("#accessories"))==null||o.scrollIntoView()},100)}),(o,m)=>{var x;const p=pe;return(x=e.product.accessory_accessories)!=null&&x.length?(r(),a("div",Zt,[Vt,s("div",Kt,[L(p,{products:d(i),"accessory-collections":e.accessoryCollections,"is-accessory":""},null,8,["products","accessory-collections"])])])):g("",!0)}}},Qt=Jt,Xt={class:"bg-white"},Yt={class:"mx-auto max-w-2xl pt-4 pb-16 px-4 sm:pb-24 sm:pt-8 sm:px-6 lg:max-w-7xl lg:px-8 relative"},es={class:"lg:grid lg:grid-cols-12 lg:items-start lg:gap-x-14"},ts={class:"absolute inset-0 overflow-hidden rounded-md"},ss={key:1,class:"h-full w-full flex items-center justify-center bg-[#ECECEC]"},ns=s("span",{class:"text-gray-300 text-2xl"},"Kein Bild vorhanden",-1),rs=[ns],ls={class:"mt-10 px-4 sm:mt-16 sm:px-0 lg:mt-0 lg:sticky lg:top-4 lg:col-span-5"},as={class:"text-3xl font-bold tracking-tight text-gray-900"},os={class:"mt-3"},cs=s("h2",{class:"sr-only"}," finalProduct information ",-1),is={class:"text-3xl tracking-tight text-gray-900"},us=s("span",{class:"text-base text-gray-500"},"exkl. MwSt.",-1),ds={class:"text-sm tracking-tight text-gray-700 mt-1"},ps=s("span",{class:"text-sm text-gray-500"},"inkl. MwSt.",-1),_s={key:0,class:"text-sm tracking-tight text-gray-700 mt-0.5"},ms=["for"],hs=["id","onUpdate:modelValue","name"],fs=["value"],xs={class:"mt-6 prose prose-sm max-w-full lg:max-w-full"},vs={key:0,role:"list"},ys=["innerHTML"],gs=["innerHTML"],bs={class:"mt-6"},ws={class:"sm:flex-col1 mt-10 flex"},ks={__name:"Detail",props:{product:{type:Object,required:!0},accessoryCollections:{type:Array,default:[]},isAccessory:{type:Boolean,default:!1}},setup(e){var T;const t=e,i=D({});(T=t.product.accessory_specs)!=null&&T.length&&t.product.accessory_specs.forEach(u=>{var h;i.value[u.id]=(h=u.accessory_spec_values)==null?void 0:h[0].id;for(const _ of u.accessory_spec_values)_.is_default&&(i.value[u.id]=_.id)});const o=A(()=>{var h;const u=t.product;if((h=t.product.accessory_specs)!=null&&h.length){let _=u.price_net,I=u.name;for(const H of u.accessory_specs){const v=H.accessory_spec_values.find(c=>c.id===i.value[H.id]);I+=" - "+H.name+": "+v.value,_+=v.price_net}return{...u,name:I,price_net:_}}return u}),m=A(()=>{var u,h;return((u=t.product.images)==null?void 0:u.length)===0&&t.product.image?[{url:t.product.image?ie().public.API_URL+"/storage/"+t.product.image:null}]:t.isAccessory&&((h=t.product.images)==null?void 0:h.length)>0?[{url:t.product.image?ie().public.API_URL+"/storage/"+t.product.image:null}].concat(t.product.images):t.product.images}),p=A(()=>{const u=[];return t.isAccessory?u.push({name:"Zubehör",href:"/zubehoer",current:!1}):u.push({name:"Modelle",href:"/modelle",current:!1}),u.push({name:t.product.name,current:!0}),u}),x=A(()=>{var u,h,_;return t.isAccessory&&((_=(h=(u=t.product)==null?void 0:u.name)==null?void 0:h.toLowerCase())==null?void 0:_.includes("tractec"))});function y(){window.scrollTo(0,0)}return(u,h)=>{var k,n,$;const _=ye,I=ge,H=be,v=we,c=Ge,l=Et,f=Ut,P=Qt;return r(),a("div",Xt,[s("div",Yt,[L(_,{class:"mb-4 lg:mb-8",pages:d(p)},null,8,["pages"]),s("div",es,[L(d(ee),{as:"div",class:"flex flex-col-reverse lg:col-span-7"},{default:O(()=>{var b;return[s("div",{class:W("-mx-4 sm:mx-auto mt-6 sm:max-w-2xl lg:max-w-none sm:w-full "+(((b=d(m))==null?void 0:b.length)>1?" block":" hidden"))},[L(d(te),{class:"block whitespace-nowrap overflow-x-scroll w-full sm:grid sm:grid-cols-4 gap-6 sm:whitespace-normal sm:overflow-visible"},{default:O(()=>[(r(!0),a(B,null,q(d(m),S=>(r(),E(d(se),{key:S.id,class:"relative mx-2 first:ml-4 last:mr-4 sm:mx-0 sm:first:ml-0 sm:last:mr-0 inline-flex sm:flex w-24 h-24 sm:w-auto cursor-pointer items-center justify-center rounded-md bg-white text-sm font-medium uppercase text-gray-900 sm:hover:bg-gray-50 sm:focus:outline-none sm:focus:ring sm:focus:ring-opacity-50 sm:focus:ring-offset-4",onClick:y},{default:O(({selected:Z})=>[s("span",ts,[S.url?(r(),E(I,{key:0,width:250,src:S.url,alt:d(o).name,class:"h-full w-full object-cover object-center"},null,8,["src","alt"])):g("",!0)]),s("span",{class:W([Z?"ring-indigo-500":"ring-transparent","pointer-events-none absolute inset-0 rounded-md sm:ring-2 ring-offset-2"]),"aria-hidden":"true"},null,2)]),_:2},1024))),128))]),_:1})],2),L(d(ne),{class:"aspect-w-[800] aspect-h-[533] w-full"},{default:O(()=>[(r(!0),a(B,null,q(d(m),S=>(r(),E(d(re),{key:S.id},{default:O(()=>[S.url?(r(),E(I,{key:0,width:686,src:S.url,alt:d(o).name,class:"h-full w-full object-contain object-center sm:rounded-lg"},null,8,["src","alt"])):(r(),a("span",ss,rs))]),_:2},1024))),128))]),_:1})]}),_:1}),s("div",ls,[s("h1",as,w(d(o).name),1),s("div",os,[cs,s("p",is,[V(w(u.$currency(d(o).price_net))+" ",1),us]),s("p",ds,[V(w(u.$currency(d(o).price_net*1.19))+" ",1),ps]),d(x)?g("",!0):(r(),a("p",_s,[V(" zzgl. "),L(H,{to:"/versand",class:"text-sd-blue"},{default:O(()=>[V(" Versand- und Bereitstellungskosten ")]),_:1})]))]),(k=d(o).accessory_specs)!=null&&k.length?(r(!0),a(B,{key:0},q(d(o).accessory_specs,b=>(r(),a("div",{key:"spec-"+b.id,class:"mt-6"},[s("div",null,[s("label",{for:"spec-"+b.id,class:"block text-sm font-medium leading-6 text-gray-900"},w(b.name),9,ms),Se(s("select",{id:"spec-"+b.id,"onUpdate:modelValue":S=>d(i)[b.id]=S,name:"spec-"+b.id,class:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6"},[(r(!0),a(B,null,q(b.accessory_spec_values,S=>(r(),a("option",{key:"spec-value-"+S.id,value:S.id},w(S.value)+" (+"+w(u.$currency(S.price_net))+") ",9,fs))),128))],8,hs),[[Te,d(i)[b.id]]])])]))),128)):g("",!0),s("div",xs,[(n=d(o).highlights)!=null&&n.length?(r(),a("ul",vs,[(r(!0),a(B,null,q(d(o).highlights,b=>{var S;return r(),a("li",{key:b},w(((S=b==null?void 0:b.attributes)==null?void 0:S.text)??b),1)}),128))])):g("",!0),d(o).description?(r(),a("div",{key:1,innerHTML:d(o).description},null,8,ys)):g("",!0),d(o).description_html?(r(),a("div",{key:2,innerHTML:d(o).description_html},null,8,gs)):g("",!0)]),s("form",bs,[s("div",ws,[L(v,{product:d(o),"is-accessory":e.isAccessory,specs:d(i)},null,8,["product","is-accessory","specs"])])]),L(c)])]),e.isAccessory?g("",!0):(r(),E(l,{key:0,product:d(o)},null,8,["product"])),($=e.accessoryCollections)!=null&&$.length&&!e.isAccessory?(r(),E(f,{key:1,product:d(o),"accessory-collections":e.accessoryCollections},null,8,["product","accessory-collections"])):g("",!0),e.isAccessory?(r(),E(P,{key:2,product:d(o)},null,8,["product"])):g("",!0)])])}}},Ms=ks;export{Ms as _};