1import V from"./D-oZmeHp.js";import{G as q,ay as M,r as b,h as r,o as n,X as T,j as s,$ as D,bd as F,I as u,an as B,af as w,ag as h,y as f,e as k,H as P,N as i,O as d,R as J,Q as g,T as U,K as C,S as H,am as G,ak as K,z as Q}from"./CtSBWgpp.js";import"./CXLyTcTm.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"8b3961cee8984bb42bc8bbd0cdb1d52fc4ef00cd"}}catch{}})();try{(function(){var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new o.Error().stack;l&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[l]="4db0d837-bcf2-4122-adb2-63e8411ae594",o._sentryDebugIdIdentifier="sentry-dbid-4db0d837-bcf2-4122-adb2-63e8411ae594")})()}catch{}const W={key:0,class:"mb-8 flex items-center justify-start max-md:flex-col max-md:space-y-[10px] md:mb-12 md:space-x-[10px]"},X={class:"down-arrow-bg"},Y=["value"],Z={class:"down-arrow-bg"},ee=["value"],te={class:"mx-auto aspect-[200/250] w-full max-w-[200px]"},oe={class:"relative mx-auto w-full max-w-[200px] flex-1 px-2 pb-[40px]"},ae={class:"absolute bottom-0 left-0 w-full px-2"},ne={key:1,class:"mx-auto mt-4 max-w-[466px] text-center"},se={class:"flex items-center justify-center space-x-4"},le=q({__name:"CmsFilterableSpecialityLinesListing",props:{data:{default:""},takesDataFromSlot:{type:Boolean,default:!1},atob:{type:Boolean,default:!1},hideFilters:{type:Boolean,default:!1},buttonText:{default:"Customize now"},opensForm:{type:Boolean,default:!1}},setup(o){const l=o,c=b([]),A=M();if(l.takesDataFromSlot){const a=A.default?.()?.[0]?.children,t=Array.isArray(a)?a.join(""):a||"";c.value=JSON.parse(t.trim())}else l.data&&(l.atob&&typeof l.data=="string"?c.value=JSON.parse(atob(l.data)):c.value=JSON.parse(l.data));const m=b(""),p=b(""),y=b(!0),N=k(()=>Array.from(new Set(c.value.map(a=>a.type)))),$=k(()=>Array.from(new Set(c.value.map(a=>a.category)))),I=k(()=>c.value.filter(a=>(m.value===""||a.type===m.value)&&(p.value===""||a.category===p.value))),L=a=>"Patch Type: "+a.replace("Custom ","").replace(" Patches","").trim(),S=b(!1),E=()=>{S.value=!0},O=a=>{const t=K(a.name),x=Q();x.replace({hash:`#${t}`,path:x.currentRoute.value.path,query:x.currentRoute.value.query})};return(a,t)=>{const x=V,R=J,_=U,v=H,j=G;return n(),r("div",null,[o.hideFilters?T("",!0):(n(),r("div",W,[s("div",X,[D(s("select",{"onUpdate:modelValue":t[0]||(t[0]=e=>B(m)?m.value=e:null),class:"input-field rounded-full border-none bg-[#2D2D2D1A] py-2 pl-4 pr-6 text-xs md:text-sm",onChange:t[1]||(t[1]=e=>y.value=!0)},[t[5]||(t[5]=s("option",{value:""},"All Patch Types",-1)),(n(!0),r(w,null,h(u(N),e=>(n(),r("option",{key:e,value:e},f(L(e)),9,Y))),128))],544),[[F,u(m)]])]),s("div",Z,[D(s("select",{"onUpdate:modelValue":t[2]||(t[2]=e=>B(p)?p.value=e:null),class:"input-field rounded-full border-none bg-[#2D2D2D1A] py-2 pl-4 pr-6 text-xs md:text-sm",onChange:t[3]||(t[3]=e=>y.value=!0)},[t[6]||(t[6]=s("option",{value:""},"All Categories",-1)),(n(!0),r(w,null,h(u($),e=>(n(),r("option",{key:e,value:e},f(e),9,ee))),128))],544),[[F,u(p)]])])])),s("div",{class:"-mx-2 flex flex-wrap justify-center",onMouseenter:E},[(n(!0),r(w,null,h(u(I),(e,z)=>(n(),r("div",{key:`${e.type}${e.category}${e.name}`,class:P(["mb-7 flex flex-col px-2 text-center md:mb-11",{hidden:!u(y)&&z>=8,"w-1/2 sm:w-1/2 md:w-1/4":!0}])},[s("div",te,[i(x,{class:"group mx-auto","image-ids":e.image_ids,"link-to":e.url,"use-glow":!0,"should-load-secondary-image":u(S),"images-width":"200","images-height":"250"},null,8,["image-ids","link-to","should-load-secondary-image"])]),s("div",oe,[i(_,{"prevent-glow":"",to:e.url},{default:d(()=>[i(R,{legacy:"",tag:"h3",size:"sm"},{default:d(()=>[g(f(e.name),1)]),_:2},1024)]),_:2},1032,["to"]),s("div",ae,[e.button_url?(n(),C(_,{key:0,"prevent-glow":"",to:e.button_url},{default:d(()=>[i(v,{variant:"darkBorder",size:"xs",rounded:""},{default:d(()=>[g(f(o.buttonText),1)]),_:1})]),_:1},8,["to"])):o.opensForm?(n(),C(_,{key:2,"prevent-glow":"","opens-product-inquiry-form":"","product-name":e.name,onClick:re=>O(e)},{default:d(()=>[i(v,{variant:"darkBorder",size:"xs",rounded:""},{default:d(()=>[g(f(o.buttonText),1)]),_:1})]),_:1},8,["product-name","onClick"])):(n(),C(_,{key:1,"prevent-glow":"",to:e.url},{default:d(()=>[i(v,{variant:"darkBorder",size:"xs",rounded:""},{default:d(()=>[g(f(o.buttonText),1)]),_:1})]),_:1},8,["to"]))])])],2))),128))],32),u(y)?T("",!0):(n(),r("div",ne,[i(v,{"full-width":"",variant:"darkBorder",onClick:t[4]||(t[4]=e=>y.value=!0)},{default:d(()=>[s("div",se,[t[7]||(t[7]=s("span",null,"SHOW MORE",-1)),i(j,{class:"w-[10px] -rotate-90"})])]),_:1})]))])}}}),ce=Object.assign(le,{__name:"CmsFilterableSpecialityLinesListing"});export{ce as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.