PageSourceSearch

https://inksaver.co.za/_nuxt/BXJT3kMz.js

js inksaver.co.za collected 2026-09-29 09:54:04 UTC 4,241 bytes, 1 lines download raw bytes

1import{_ as z}from"./Bu-UV3jY.js";import{_ as A}from"./DN6FU-tc.js";import{d as I,u as q,e as j,x as M,g as G,h as J,f as y,i as R,j as i,k as o,t as h,l as s,a as D,w as E,F as L,r as V,p as B,m as W,o as c,q as v,C as Y,D as K,n as Q,a9 as X}from"./DcvIi3zI.js";import{u as Z}from"./B3H2KOlT.js";import{u as ee,c as te}from"./Drq7F36J.js";import{a as re}from"./CH7aKzBr.js";const ae={class:"brand-category"},oe={class:"text-[32px] text-white bg-ink-dark text-center py-9"},ne=["innerHTML"],se={key:0,class:"page-width"},le={class:"text-3xl text-center mt-[35px] mb-[30px]"},ie=["onClick"],ce={key:0},ue=["id"],de={class:"series-filter w-full flex flex-row justify-center items-center"},_e=["for"],pe=o("div",{class:"absolute"},null,-1),me=["id","onUpdate:modelValue"],he={class:"grid md:grid-cols-4"},ke=I({__name:"[slug]",async setup(ge){var x,b,k,C,S,T;let l,g;const d=q(),{data:_}=([l,g]=j(()=>W("/api/products-category-seo",{method:"GET",params:{slug:d.params.slug}},"$OH0HyseOMO")),l=await l,g(),l),H=async()=>{try{const e=await re(d.params.slug);return e.error?(console.error("Error fetching category:",e.error),{error:"Failed to fetch category data. Please try again later."}):e}catch(e){return console.error("Unexpected error in category_fetch:",e),{error:"An unexpected error occurred. Please try again later."}}},p=M(([l,g]=j(()=>H()),l=await l,g(),l)),a=M({});p.value.children.forEach((e,t)=>{t==0?a.value["input-"+e.term_id]={filter:"",show:!0}:a.value["input-"+e.term_id]={filter:"",show:!1}}),G({link:[{hid:"canonical",rel:"canonical",href:`${J}${d.path}`}]});const N=e=>{a.value["input-"+e].show=!a.value["input-"+e].show},O=(e,t)=>e.children.filter(n=>n.cat_name.includes(t)),$=e=>e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),w=y(()=>{const t=d.params.slug.replace(/-/g," ");return $(t)}),P=y(()=>p.value.brand.description.replace("\\n","<br>")),u=y(()=>{var e;return(e=_.value)==null?void 0:e.yoast_head_json});return R(()=>{p.value.children.forEach((e,t)=>{if(t){var n=document.getElementById(e.term_id);n&&(n.style.display="none")}a.value["input-"+e.term_id]={filter:"",show:!1},t===0&&(a.value["input-"+e.term_id].show=!0)}),window.scrollTo(0,0)}),ee(()=>{var e,t,n,f,r;return{"@context":"https://schema.org","@graph":te((e=_.value.yoast_head_json)==null?void 0:e.schema["@graph"],(t=_.value.yoast_head_json)==null?void 0:t.title,(n=_.value.yoast_head_json)==null?void 0:n.description,((r=(f=_.value.yoast_head_json)==null?void 0:f.og_image[0])==null?void 0:r.url)||"",d.path)}}),Z({title:(x=u.value)==null?void 0:x.title,ogTitle:(b=u.value)==null?void 0:b.og_title,de
1scription:(k=u.value)==null?void 0:k.og_description,ogDescription:(C=u.value)==null?void 0:C.og_title,ogImage:(S=u.value)==null?void 0:S.og_image,twitterCard:(T=u.value)==null?void 0:T.twitter_card}),(e,t)=>{const n=z,f=A;return c(),i("div",ae,[o("h1",oe,h(s(w))+" Ink & Toner Cartridges",1),D(n,null,{default:E(()=>[o("p",{innerHTML:s(P),class:"page-width --description"},null,8,ne)]),_:1}),s(p)?(c(),i("div",se,[o("h2",le,"Select Your Printer Familty To Shop Our "+h(s(w))+" Catridges",1),(c(!0),i(L,null,V(s(p).children,(r,U)=>(c(),i("div",{key:U},[o("button",{class:"text-center text-lg mb-6 w-full bg-ink-gray py-4",onClick:m=>N(r.term_id)},[v(h(r.cat_name),1),r.cat_name.includes("series")?B("",!0):(c(),i("span",ce," Series"))],8,ie),o("div",{id:r.term_id,style:X([s(a)["input-"+r.term_id].show?"display:block;":"display:none;"])},[o("div",de,[o("label",{class:"text-lg font-bold mr-2",for:"input-"+r.term_id},[v(h(r.cat_name)+" Filter ",1),pe],8,_e),Y(o("input",{onBlur:t[0]||(t[0]=()=>{}),placeholder:"e.g. Printer model number",id:"input-"+r.term_id,"onUpdate:modelValue":m=>s(a)["input-"+r.term_id].filter=m,type:"text",class:"w-full max-w-md border border-ink-dark py-2 px-4 rounded-sm"},null,40,me),[[K,s(a)["input-"+r.term_id].filter]])]),o("div",he,[(c(!0),i(L,null,V(O(r,s(a)["input-"+r.term_id].filter),(m,F)=>(c(),i("div",{class:Q(["py-5 text-center border-b",{"md:border-b-0":F+1>r.children.length-r.children.length%4}]),key:F},[D(f,{to:"all/"+m.slug,class:"text-ink-blue"},{default:E(()=>[v(h(m.cat_name),1)]),_:2},1032,["to"])],2))),128))])],12,ue)]))),128))])):B("",!0)])}}});export{ke 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.