1import{_ as I}from"./Dp8oxn1D.js";import z from"./BYp-l5mR.js";import{f as A,_ as T,k as j,j as D,a as L}from"./BdEtjDPP.js";import{C as U}from"./7V6MSFAe.js";import{_ as b}from"./BIBR4A3o.js";import{_ as E}from"./6eayp8Te.js";import{l as N,H as o,U as e,V as r,ab as c,ac as f,u as n,aj as x,P as i,W as w,_,Z as y,X as F,S as g,a0 as G}from"./BIaCPJ4S.js";import{u as H}from"./CwnazslD.js";import"./B5bMgYaX.js";const M={class:"wx-container-fluid pt-4 pb-10"},R={class:"grid grid-cols-12"},W={key:0,class:"col-span-12 py-5 flex justify-center"},X={key:1,class:"col-span-12 flex flex-col items-center"},Z={key:2,class:"col-span-12 lg:flex flex-col lg:overflow-x-auto overflow-x-scroll"},q={key:0,class:"p-3 w-full border-b font-[700]"},J={key:1,class:"p-3 w-[200px] border-b border-e"},K={class:"flex flex-1"},O={key:0,class:"compare-col flex justify-center items-center relative"},Q={class:"compare-controls"},Y=["onClick"],ee={key:0,class:"compare-product-img"},oe={key:1,class:"compare-col flex items-center"},se=["href"],te={key:4,class:"compare-col"},ae={key:5,class:"compare-col"},re={key:6,class:"compare-col text-gray-600"},ne=N({__name:"CompareV1",setup(k){const{state:l,getCompareProducts:p,removeCompareProduct:d}=H(),{pending:S}=p(),V=A();return(u,a)=>{const $=I,B=z,h=T,P=U;return e(),o("div",M,[a[3]||(a[3]=r("h1",{class:"compare-heading"},"Product Comparison",-1)),c(P,null,{default:f(()=>{var v;return[r("div",R,[n(S)?(e(),o("div",W,[c($,{class:"text-primary w-[25px] h-[25px]"})])):n(V).data.compare.length==0?(e(),o("div",X,[c(E,{name:"heroicons:inbox",class:"text-primary",size:"70"}),a[1]||(a[1]=r("div",{class:"w-[100% important] text-center mb-4"},"No products were added to the compare .",-1)),c(b,{url:"/",size:"md",variant:"primary",class:"lg:w-[180px] w-auto flex justify-center items-center"},{default:f(()=>a[0]||(a[0]=[x(" Continue Shopping ")])),_:1,__:[0]})])):(e(),o("div",Z,[(e(!0),o(i,null,w((v=n(l).compares)==null?void 0:v.data,t=>(e(),o("div",{class:"flex lg:flex-1 min-w-[900px]",key:t.name},[t.is_heading?(e(),o("div",q,_(t.name),1)):(e(),o("div",J,[["Add To Cart","Image"].includes(t.name)?y("",!0):(e(),o(i,{key:0},[x(_(t.name),1)],64))])),r("div",K,[(e(!0),o(i,null,w(t==null?void 0:t.data,(s,m)=>{var C;return e(),o(i,{key:m},[m<((C=n(l).compares)==null?void 0:C.len)?(e(),o("div",{key:0,class:F(["p-3 flex-1 border-b",`order-${n(l).sort_order[m]}`])},[t.name=="Image"?(e(),o("div",O,[r("div",Q,[r("button",{class:"trash",onClick:pe=>n(d)(m)},[c(B,{name:"heroicons-outline:trash"})],8,Y)]),s?(e(),o("div",ee,[c(h,{src:s,format:"webp",placeholder:"/assets/images/placeholder.webp",alt:"Product Image"},null,8,["src"])])):y("",!0)])):t.name=="Availability"?(e(),o("div",oe,[r("span",{class:"wx-status-badge",style:G(("getBadgeColors"in u?u.getBadgeColors:n(j))(s))},_(s),5)])):t.name=="Add To Cart"?(e(),g(b,{key:2,url:s==null?void 0:s.link},{default:f(()=>a[2]||(a[2]=[x(" View Details ")])),_:2,__:[2]},1032,["url"])):t.name=="Manufacturer URL"||t.name=="Name"?(e(),o("a",{key:3,class:"compare-col",href:s==null?void 0:s.link},_(s==null?void 0:s.content),9,se)):t.name=="Price"?(e(),o("span",te,_(u.$p(s)),1)):s&&s!="-"?(e(),o("span",ae,_(s),1)):(e(),o("span",re,"N/A"))],2)):y("",!0)],64)}),128))])]))),128))]))])]}),_:1})])}}}),ce={};function _e(k,l){const p=ne;return e(),g(p)}const le=D(ce,[["render",_e]]),ve=N({__name:"compare",setup(k){return L(),(l,p)=>{const d=le;return e(),g(d)}}});
1export{ve 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.