PageSourceSearch

https://shoppingways.com/_nuxt/NSr0ujoF.js

js shoppingways.com collected 2026-10-02 00:55:34 UTC 29,435 bytes, 1 lines download raw bytes

1import{_ as Y}from"./DEax3q1L.js";import{Z as V,V as ae,o as n,Q as le,w as c,b as u,A as d,a as e,I as O,$ as ne,J as R,c as i,F as I,N as M,L as x,a0 as Z,n as N,e as F,q as z,r as T,M as H,O as ie,E as re,g as J,d as m,t as P,a3 as de,x as C,G as K,s as Q,H as D,K as X,y as G,U as ue,B as ge}from"./Ct35PZoH.js";import{_ as B}from"./Bz4AsJpL.js";import{Y as ce,h as q,G as pe,S as me}from"./C_K8E9Nh.js";import{a as U}from"./B26EToBd.js";import{_ as fe}from"./DShPMQNa.js";import{_ as xe}from"./DlAUqK2U.js";import{_ as ye}from"./BJ-GY3co.js";import{c as j,e as ee,r as te,u as se}from"./iRIUqwAy.js";const ve={class:"fixed inset-0 z-10 w-screen overflow-y-auto"},be={class:"flex max-w-2xl mx-auto min-h-full items-start justify-center p-4 text-center sm:items-center sm:p-0"},he={class:"bg-white"},we={class:"text-center sm:mt-0 sm:text-left"},ke={class:"flex flex-col bg-white border shadow-sm rounded-xl pointer-events-auto"},$e={class:"flex flex-col bg-white border-t rounded-xl pointer-events-auto"},Se={class:"p-4 lg:p-8 pt-4 overflow-y-auto"},_e={class:"mt-1 text-gray-800 dark:text-neutral-400"},Ce={key:0,class:"pt-6"},Ie={class:"grid grid-cols-4 lg:grid-cols-6 gap-3"},Ne=["onClick"],Le=["src","alt"],Ae=["alt"],Me={key:1,class:"pt-6"},ze={class:"grid grid-cols-4 lg:grid-cols-6 gap-3"},Te=["onClick"],Ue=["src","alt"],Pe=["alt"],Be={__name:"searchpopup",props:Z(["modalActive"],{stores:{},storesModifiers:{},categories:{},categoriesModifiers:{}}),emits:Z(["close","search"],["update:stores","update:categories"]),setup(o,{emit:s}){let p="";const f=s,w=()=>{f("close")},k=V(o,"stores"),b=V(o,"categories"),_=o;ae(()=>_.modalActive,(y,g)=>{y&&setTimeout(()=>{const r=document.getElementsByClassName("mainSearch");r.length&&r[0].focus()})});const v=async()=>{f("search",p)},a=y=>{const g=`/brands/${y}`;N({path:g}),f("close")};return(y,g)=>(n(),le(d(me),{as:"template",show:!0},{default:c(()=>[u(d(ce),{class:"relative z-10",onClick:w},{default:c(()=>[u(d(q),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:c(()=>g[2]||(g[2]=[e("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"},null,-1)])),_:1}),e("div",ve,[e("div",be,[u(d(q),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:c(()=>[u(d(pe),{class:"relative transform overflow-hidden rounded-lg bg-white text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-2xl"},{default:c(()=>[e("div",he,[e("div",null,[e("div",we,[e("div",ke,[e("div",{class:"flex justify-between items-center py-3 px-4"},[g[4]||(g[4]=e("h3",{id:"hs-medium-modal-label",class:"font-bold text-gray-800"}," Search ",-1)),e("button",{type:"button",class:"size-8 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none","aria-label":"Close","data-hs-overlay":"#hs-static-backdrop-modal",onClick:w},g[3]||(g[3]=[e("span",{class:"sr-only"},"Close",-1),e("svg",{class:"shrink-0 size-4",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M18 6 6 18"}),e("path",{d:"m6 6 12 12"})],-1)]))]),e("div",$e,[e("div",Se,[e("p",_e,[O(e("input",{type:"text",id:"mainSearch",class:"mainSearch py-3 px-2 border-0 border-b-2 border-gray-200 focus:ring-0 focus:border-gray-400 text-xl lg:text-2xl w-full block","onUpdate:modelValue":g[0]||(g[0]=r=>ne(p)?p.value=r:p=r),onInput:g[1]||(g[1]=r=>v()),placeholder:"Search Store,categories...","data-autofocus":"true",autofocus:""},null,544),[[R,d(p)]])]),k.value.length?(n(),i("div",Ce,[g[5]||(g[5]=e("h3",{class:"font-semibold text-lg pb-3 px-2"},"Stores",-1)),e("div",Ie,[(n(!0),i(I,null,M(k.value,(r,$)=>(n(),i("div",{key:r._id,class:"cursor-pointer",onClick:A=>a(r?.storeLink)},[r?.logoImage!=null?(n(),i("img",{key:0,class:"size-18 lg:size-20 rounded-full",src:r?.logoImage?.url,alt:r?.storeName},null,8,Le)):x("",!0),r?.logoImage==null?(n(),i("img",{key:1,class:"size-18 lg:size-20 rounded-full",src:B,alt:r?.storeName},null,8,Ae)):x("",!0)],8,Ne))),128))])])):x("",!0),b.value.length?(n(),i("div",Me,[g[6]||(g[6]=e("h3",{class:"font-semibold text-lg pb-3 px-2"},"Category",-1)),e("div",ze,[(n(!0),i(I,null,M(b.value,(r,$)=>(n(),i("div",{key:r._id,class:"cursor-pointer",onClick:A=>a(r?.categoryLink)},[r?.logoImage!=null?(n(),i("img",{key:0,class:"size-18 lg:size-20 rounded-full",src:r?.logoImage?.url,alt:r?.categoryName},null,8,Ue)):x("",!0),r?.logoImage==null?(n(),i("img",{key:1,class:"size-18 lg:size-20 rounded-full",src:B,alt:r?.categoryName},null,8,Pe)):x("",!0)],8,Te))),128))])])):x("",!0)])]),g[7]||(g[7]=e("div",{class:"pb-4 px-4"},null,-1))])])])])]),_:1})]),_:1})])])]),_:1})]),_:1}))}}
1,W=re(),je=F({data(){return{userInput:"",stores:{},categories:{},modalActive:!1,loggedIn:!1,salePages:{}}},async mounted(){ie();const{$axios:o}=z(),p=T().public.API_BASE_URL+U.getSalePagesList;await this.getSalePages(o,p)},computed:{isLoggedIn(){return this.loggedIn=W.isLoggedIn,this.loggedIn},userName(){let o=JSON.stringify(H("userData").value);return(o?JSON.parse(o):null)?.name??""}},methods:{getSalePages(o,s){try{o.get(s).then(p=>{this.salePages=p?.data?.data})}catch(p){console.log(p),N({path:"/404"})}},openSearchPopup(){this.modalActive=!0},onSearchPopup(o){if(this.stores=[],this.categories=[],(o&&o.length)>1){const{$axios:s}=z(),p=T().public.API_BASE_URL;try{s.get(p+U.getSearchData+o).then(f=>{this.stores=JSON.parse(JSON.stringify(f?.data?.data?.stores)),this.categories=JSON.parse(JSON.stringify(f?.data?.data?.categories))})}catch(f){console.log(f),o=""}}},onSearch(){if(this.stores=[],this.categories=[],this.userInput.length>1){const{$axios:o}=z(),s=T().public.API_BASE_URL;try{o.get(s+U.getSearchData+this.userInput).then(p=>{this.stores=JSON.parse(JSON.stringify(p?.data?.data?.stores)),this.categories=JSON.parse(JSON.stringify(p?.data?.data?.categories))})}catch(p){console.log(p),this.userInput=""}}},navigate(o){const s=`/brands/${o}`;N({path:s})},navigateToSalePage(o){const s=`/sale/${o}`;N({path:s})},closeMenuManually(){const o=document.getElementsByClassName("hs-collapse-toggle open");if(o&&o.length){const s=o[0];s.onclick?s.onclick():s.click&&s.click()}},logout(){W.logout(),N({path:"/login"})}}}),Oe={class:"flex flex-wrap md:justify-start md:flex-nowrap z-50 w-full bg-white border-b"},Re={class:"relative max-w-7xl w-full mx-auto md:flex md:items-center md:justify-between md:gap-3 py-2.5 px-4 sm:px-3 lg:px-3"},Ee={class:"flex justify-between items-center gap-x-1"},Je={id:"hs-header-base",class:"hs-collapse hidden overflow-hidden transition-all duration-200 basis-full grow md:block","aria-labelledby":"hs-header-base-collapse"},De={class:"overflow-hidden overflow-y-auto max-h-[75vh] [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300"},Fe={class:"py-2 md:py-0 flex flex-col md:flex-row md:items-center gap-0.5 md:gap-1"},Ve={class:"flex flex-col md:flex-row md:justify-start md:items-center gap-0.5 md:gap-1 md:ml-4"},Ze={class:"hs-dropdown relative inline-flex"},Ge={class:"hs-dropdown-menu z-10 transition-[opacity,margin] duration hs-dropdown-open:opacity-100 opacity-0 hidden min-w-60 bg-white shadow-md rounded-lg mt-2 dark:bg-neutral-800 dark:border dark:border-neutral-700 dark:divide-neutral-700 after:h-4 after:absolute after:-bottom-4 after:start-0 after:w-full before:h-4 before:absolute before:-top-4 before:start-0 before:w-full",role:"menu","aria-orientation":"vertical","aria-labelledby":"hs-dropdown-default"},qe={class:"p-1 space-y-0.5"},We=["onClick"],Ye={class:"relative grow mx-20"},He={class:"flex flex-wrap items-center gap-x-1.5"},Ke={id:"hs-medium-modal",class:"hs-overlay hidden size-full fixed top-0 start-0 z-[80] overflow-x-hidden overflow-y-auto pointer-events-none",role:"dialog",tabindex:"-1","aria-labelledby":"hs-medium-modal-label"},Qe={class:"hs-overlay-open:mt-7 hs-overlay-open:opacity-100 hs-overlay-open:duration-500 mt-0 opacity-0 ease-out transition-all md:max-w-2xl md:w-full m-3 md:mx-auto"},Xe={class:"flex flex-col bg-white border shadow-sm rounded-xl pointer-events-auto dark:bg-neutral-800 dark:border-neutral-700 dark:shadow-neutral-700/70"},et={class:"p-8 pt-4 overflow-y-auto"},tt={class:"mt-1 text-gray-800 dark:text-neutral-400"},st={key:0,class:"pt-6"},ot={class:"grid grid-cols-6 gap-3"},at=["onClick"],lt=["src","alt"],nt=["alt"],it={key:1,class:"pt-6"},rt={class:"grid grid-cols-6 gap-3"},dt=["onClick"],ut=["src","alt"],gt=["alt"];function ct(o,s,p,f,w,k){const b=Y,_=de,v=Be;return n(),i(I,null,[e("div",null,[e("header",Oe,[e("nav",Re,[e("div",Ee,[u(b,{to:"/",class:"flex-none font-semibold text-xl text-black focus:outline-none focus:opacity-80 w-52","aria-label":"Brand"},{default:c(()=>s[12]||(s[12]=[e("img",{src:fe,alt:"Logo",class:"w-full"},null,-1)])),_:1}),(n(),i("svg",{class:"cursor-pointer block md:hidden",onClick:s[0]||(s[0]=a=>o.openSearchPopup()),xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"#000000",viewBox:"0 0 256 256"},s[13]||(s[13]=[e("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"},null,-1)]))),s[14]||(s[14]=J('<button type="button" class="hs-collapse-toggle md:hidden relative size-9 flex justify-center items-center font-medium text-[12px] rounded-lg border border-gray-200 text-gray-800 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none" id="hs-header-base-collapse" aria-expanded="false" aria-controls="hs-header-base" aria-label="Toggle navigation" data-hs-collapse="#hs-header-base"><svg class="hs-collapse-open:hidden size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" x2="21" y1="6" y2="6"></line><line x1="3" x2="21" y1="12" y2="12"></line><line x1="3" x2="21" y1="18" y2="18"></line></svg><svg class="hs-collapse-open:block shrink-0 hidden size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg><span class="sr-only">Toggle navigation</span></button>
1',1))]),e("div",Je,[e("div",De,[e("div",Fe,[e("div",null,[e("div",Ve,[u(b,{class:"py-2 px-4 flex items-center text-sm font-medium text-gray-800 hover:bg-gray-100 rounded-lg focus:outline-none focus:bg-gray-100",onClick:s[1]||(s[1]=a=>o.closeMenuManually()),to:"/brands/products"},{default:c(()=>s[15]||(s[15]=[m(" Products ")])),_:1}),u(b,{class:"py-2 px-4 flex items-center text-sm font-medium text-gray-800 hover:bg-gray-100 rounded-lg focus:outline-none focus:bg-gray-100",onClick:s[2]||(s[2]=a=>o.closeMenuManually()),to:"/blog"},{default:c(()=>s[16]||(s[16]=[m(" Articles ")])),_:1}),e("div",Ze,[s[17]||(s[17]=e("button",{id:"hs-dropdown-default",type:"button",class:"hs-dropdown-toggle py-2 px-4 flex items-center text-sm font-medium text-gray-800 hover:bg-gray-100 rounded-lg focus:outline-none focus:bg-gray-100","aria-haspopup":"menu","aria-expanded":"false","aria-label":"Dropdown"},[m("   Sale   "),e("svg",{class:"hs-dropdown-open:rotate-180 size-4",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"m6 9 6 6 6-6"})])],-1)),e("div",Ge,[e("div",qe,[(n(!0),i(I,null,M(o.salePages,(a,y)=>(n(),i("a",{key:y,class:"flex items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm text-gray-800 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 dark:text-neutral-400 dark:hover:bg-neutral-700 dark:hover:text-neutral-300 dark:focus:bg-neutral-700",onClick:g=>o.navigateToSalePage(a?.salePageLink)},P(a?.salePageName),9,We))),128))])])])])]),e("div",Ye,[e("input",{type:"text",class:"hidden md:block peer my-1 py-2 px-4 ps-11 shadow-md w-full bg-gray-100 border-gray-200 rounded text-sm focus:border-gray-500 focus:ring-gray-500 disabled:opacity-50 disabled:pointer-events-none",placeholder:"Search Store, category..",onClick:s[3]||(s[3]=a=>o.openSearchPopup())}),s[18]||(s[18]=e("div",{class:"absolute inset-y-0 start-0 hidden md:flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},[e("svg",{class:"shrink-0 size-4",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"#555",viewBox:"0 0 256 256"},[e("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"})])],-1))]),e("div",He,[u(_,null,{default:c(()=>[o.isLoggedIn?(n(),i("div",{key:0,onClick:s[4]||(s[4]=a=>("navigateTo"in o?o.navigateTo:d(N))({path:"/profile"})),class:"cursor-pointer py-1.5 px-3 inline-flex items-center font-medium text-sm rounded-full bg-gray-600 text-white hover:bg-gray-700 focus:outline-none focus:bg-gray-700 disabled:opacity-50 disabled:pointer-events-none"},s[19]||(s[19]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",class:"size-5"},[e("path",{"fill-rule":"evenodd",d:"M18.685 19.097A9.723 9.723 0 0 0 21.75 12c0-5.385-4.365-9.75-9.75-9.75S2.25 6.615 2.25 12a9.723 9.723 0 0 0 3.065 7.097A9.716 9.716 0 0 0 12 21.75a9.716 9.716 0 0 0 6.685-2.653Zm-12.54-1.285A7.486 7.486 0 0 1 12 15a7.486 7.486 0 0 1 5.855 2.812A8.224 8.224 0 0 1 12 20.25a8.224 8.224 0 0 1-5.855-2.438ZM15.75 9a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z","clip-rule":"evenodd"})],-1),m("  Profile ")]))):x("",!0),o.isLoggedIn?x("",!0):(n(),i("div",{key:1,onClick:s[5]||(s[5]=a=>("navigateTo"in o?o.navigateTo:d(N))({path:"/login"})),class:"cursor-pointer py-1.5 px-4 inline-flex items-center font-medium text-sm rounded bg-red-950 text-white hover:shadow focus:outline-none focus:bg-gray-700 disabled:opacity-50 disabled:pointer-events-none"},"Sign In"))]),_:1})])])])])])])]),e("div",Ke,[e("div",Qe,[e("div",Xe,[s[22]||(s[22]=J('<div class="flex justify-between items-center py-3 px-4 border-b dark:border-neutral-700"><h3 id="hs-medium-modal-label" class="font-bold text-gray-800 dark:text-white"> Search </h3><button type="button" class="size-8 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dar
1k:text-neutral-400 dark:focus:bg-neutral-600" aria-label="Close" data-hs-overlay="#hs-medium-modal"><span class="sr-only">Close</span><svg class="shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg></button></div>',1)),e("div",et,[e("p",tt,[O(e("input",{type:"text",class:"py-3 px-2 border-0 border-b-2 border-gray-200 focus:ring-0 focus:border-gray-400 text-2xl w-full block","onUpdate:modelValue":s[6]||(s[6]=a=>o.userInput=a),onInput:s[7]||(s[7]=a=>o.onSearch()),placeholder:"Search Store,categories..."},null,544),[[R,o.userInput]])]),o.stores.length>0?(n(),i("div",st,[s[20]||(s[20]=e("h3",{class:"font-semibold text-lg pb-3 px-2"},"Stores",-1)),e("div",ot,[(n(!0),i(I,null,M(o.stores,(a,y)=>(n(),i("div",{key:y,class:"cursor-pointer",onClick:g=>o.navigate(a?.storeLink)},[a?.logoImage!=null?(n(),i("img",{key:0,class:"size-20 rounded-full",src:a?.logoImage?.url,alt:a?.storeName},null,8,lt)):x("",!0),a?.logoImage==null?(n(),i("img",{key:1,class:"size-20 rounded-full",src:B,alt:a?.storeName},null,8,nt)):x("",!0)],8,at))),128))])])):x("",!0),o.categories.length>0?(n(),i("div",it,[s[21]||(s[21]=e("h3",{class:"font-semibold text-lg pb-3 px-2"},"Category",-1)),e("div",rt,[(n(!0),i(I,null,M(o.categories,(a,y)=>(n(),i("div",{key:y,class:"cursor-pointer",onClick:g=>o.navigate(a?.categoryLink)},[a?.logoImage!=null?(n(),i("img",{key:0,class:"size-20 rounded-full",src:a?.logoImage?.url,alt:a?.categoryName},null,8,ut)):x("",!0),a?.logoImage==null?(n(),i("img",{key:1,class:"size-20 rounded-full",src:B,alt:a?.categoryName},null,8,gt)):x("",!0)],8,dt))),128))])])):x("",!0)])])])]),u(v,{show:o.modalActive,onClose:s[8]||(s[8]=a=>o.modalActive=!1),onSearch:s[9]||(s[9]=a=>o.onSearchPopup(a)),stores:o.stores,"onUpdate:stores":s[10]||(s[10]=a=>o.stores=a),categories:o.categories,"onUpdate:categories":s[11]||(s[11]=a=>o.categories=a),modalActive:o.modalActive},null,8,["show","stores","categories","modalActive"])],64)}const pt=xe(je,[["render",ct]]),mt={class:"bg-gradient-to-r from-gray-600 to-gray-900 md:bg-[url('/images/newsletter.png')] bg-cover bg-center text-white"},ft={class:"max-w-7xl px-4 py-10 pb-0 sm:px-6 lg:px-8 lg:py-8 lg:pb-0 mx-auto"},xt={class:"grid md:grid-cols-2 gap-8 items-center"},yt={class:"w-fullmd:ms-auto"},vt={class:"flex flex-col items-center sm:flex-row md:gap-3"},bt={class:"w-full"},ht={class:"relative"},wt={key:0,class:"text-xs text-white-500"},kt={type:"submit",class:"w-full md-mt-0 sm:w-auto whitespace-nowrap mt-2 md:mt-0 py-4 px-4 inline-flex justify-center items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-gray-950 md:bg-black text-white hover:bg-zinc-800 focus:outline-none focus:bg-zinc-700 disabled:opacity-50 disabled:pointer-events-none"},$t={key:0,class:"mt-3 mb-6 md:mb-0 text-sm text-white"},St={key:1,class:"mt-3 mb-6 md:mb-0 text-sm text-white"},_t={class:"mt-auto w-full py-10 md:py-20 px-4 sm:px-6 lg:px-0 bg-stone-950"},Ct={class:"max-w-7xl mx-auto"},It={class:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-6 mb-10"},Nt={class:"mt-3 grid space-y-3 text-sm"},Lt={class:"mt-3 grid space-y-3 text-sm"},At={class:"mt-3 grid space-y-3 text-sm"},Mt={class:"pt-5 mt-5 border-t border-gray-200"},zt={class:"sm:flex sm:justify-between sm:items-top"},Tt={class:"flex flex-wrap items-center gap-3"},Ut={class:"flex items-top space-x-4 text-sm"},Pt={class:"flex flex-wrap justify-between items-top gap-3"},Bt={class:"flex items-top"},jt=F({__name:"footer",setup(o){const{$axios:s}=z(),p=T().public.API_BASE_URL,f=C(!1),w=C(!1),k=C(!1),b=C(!1);let _,v,a;const y=()=>{if(f.value=!0,k.value=!1,b.value=!1,S.value.$validate(),S.value.$error)_=setTimeout(()=>{f.value=!1},5e3);else try{w.value=!0;const h=JSON.stringify(r);s.post(p+U.onNewsLetterEmailSubmit,JSON.parse(h)).then(t=>{f.value=!1,$(),w.value=!1,t?.status==200&&t?.data?.data!=null&&(t?.data?.data?.entityStatus==0&&(k.value=!0,v=setTimeout(()=>{k.value=!1},1e4)),t?.data?.data?.entityStatus==1&&(b.value=!0,a=setTimeout(()=>{b.value=!1},1e4)))})}catch(h){console.log(h),w.value=!1}},g=()=>({email:""}),r=K(g()),$=()=>{_!==void 0&&window.clearTimeout(_),v!==void 0&&window.clearTimeout(v),a!==void 0&&window.clearTimeout(a),Object.assign(r,g()
1)},A=Q(()=>({email:{required:j.withMessage("The email field is required",te),email:j.withMessage("Invalid email format",ee)}})),S=se(A,r);return(h,t)=>{const l=Y;return n(),i(I,null,[e("div",mt,[e("div",ft,[e("div",xt,[t[6]||(t[6]=e("div",{class:"max-w-md"},[e("img",{src:ye,alt:"newsletter image",class:"w-full"})],-1)),e("div",null,[t[4]||(t[4]=e("h2",{class:"text-2xl font-bold md:text-4xl md:leading-tight italic"},"Unlock Savings, Every Day!",-1)),t[5]||(t[5]=e("p",{class:"mt-3 mb-6 text-white text-sm"}," Stay Updated with the Latest Coupons, Deals, and Exclusive Offers Tailored for You. ",-1)),e("form",{onSubmit:D(y,["prevent"])},[e("div",yt,[e("div",vt,[e("div",bt,[t[2]||(t[2]=e("label",{for:"hero-input",class:"sr-only"},"Search",-1)),e("div",ht,[O(e("input",{type:"email",id:"email",name:"email","onUpdate:modelValue":t[0]||(t[0]=L=>d(r).email=L),placeholder:"Enter your email",autocomplete:"email",class:X(["py-4 px-4 block w-full border-gray-200 rounded-lg text-sm focus:border-green-500 focus:ring-green-500 disabled:opacity-50 disabled:pointer-events-none text-black",{"border-white-500 focus:border-white-500":d(f)&&d(S).email.$error,"border-[#42d392] ":d(f)&&!d(S).email.$invalid}]),onChange:t[1]||(t[1]=(...L)=>d(S).email.$touch&&d(S).email.$touch(...L))},null,34),[[R,d(r).email]])]),d(f)&&d(S).email.$error?(n(),i("span",wt,P(d(S).email.$errors[0].$message),1)):x("",!0)]),e("button",kt,P(d(w)?"Subscribing...":"Subscribe"),1)]),d(k)?(n(),i("p",$t," Thank You For Subscribing! ")):x("",!0),d(b)?(n(),i("p",St," Already Subsribed! ")):x("",!0),t[3]||(t[3]=e("p",{class:"mt-3 mb-6 md:mb-0 text-sm text-white"}," No spam, unsubscribe at any time ",-1))])],32)])])])]),e("footer",_t,[e("div",Ct,[e("div",It,[t[24]||(t[24]=e("div",{class:"col-span-full hidden lg:col-span-1 lg:block"},[e("a",{class:"flex-none font-semibold text-xl text-gray-100 focus:outline-none focus:opacity-80","aria-label":"Brand"},"ShoppingWays")],-1)),e("div",null,[t[11]||(t[11]=e("h4",{class:"text-xs font-semibold text-gray-100 uppercase"},"Links",-1)),e("div",Nt,[u(l,{to:"/about",class:"inline-flex gap-x-2 text-gray-400 hover:text-gray-300 focus:outline-none focus:text-gray-300"},{default:c(()=>t[7]||(t[7]=[m("About Us")])),_:1}),u(l,{to:"/contact",class:"inline-flex gap-x-2 text-gray-400 hover:text-gray-300 focus:outline-none focus:text-gray-300"},{default:c(()=>t[8]||(t[8]=[m("Contact Us")])),_:1}),u(l,{to:"/terms",class:"inline-flex gap-x-2 text-gray-400 hover:text-gray-300 focus:outline-none focus:text-gray-300"},{default:c(()=>t[9]||(t[9]=[m("Terms")])),_:1}),u(l,{to:"/privacy",class:"inline-flex gap-x-2 text-gray-400 hover:text-gray-300 focus:outline-none focus:text-gray-300"},{default:c(()=>t[10]||(t[10]=[m("Privacy")])),_:1})])]),e("div",null,[t[17]||(t[17]=e("h4",{class:"text-xs font-semibold text-gray-100 uppercase"},"Useful Reads",-1)),e("div",Lt,[u(l,{to:"/about",class:"inline-flex gap-x-2 text-gray-400 hover:text-gray-300 focus:outline-none focus:text-gray-300"},{default:c(()=>t[12]||(t[12]=[m("About Us")])),_:1}),u(l,{to:"/blog",class:"inline-flex gap-x-2 text-gray-400 hover:text-gray-300 focus:outline-none focus:text-gray-300"},{default:c(()=>t[13]||(t[13]=[m("Blog")])),_:1}),u(l,{to:"/shoppingways-editorial-guidelines",class:"inline-flex gap-x-2 text-gray-400 hover:text-gray-300 focus:outline-none focus:text-gray-300"},{default:c(()=>t[14]||(t[14]=[m("Editorial Guidelines")])),_:1}),u(l,{to:"/coupons-deals-policy",class:"inline-flex gap-x-2 text-gray-400 hover:text-gray-300 focus:outline-none focus:text-gray-300"},{default:c(()=>t[15]||(t[15]=[m("Coupons & Deals Policy")])),_:1}),u(l,{to:"/cookie-policy",class:"inline-flex gap-x-2 text-gray-400 hover:text-gray-300 focus:outline-none focus:text-gray-300"},{default:c(()=>t[16]||(t[16]=[m("Cookie Policy")])),_:1})])]),e("div",null,[t[23]||(t[23]=e("h4",{class:"text-xs font-semibold text-gray-100 uppercase"},"General",-1)),e("div",At,[u(l,{to:"/affiliate-disclosure",class:"inline-flex gap-x-2 text-gray-400 hover:text-gray-300 focus:outline-none focus:text-gray-300"},{default:c(()=>t[18]||(t[18]=[m("Affiliate Disclosure")])),_:1}),u(l,{to:"/how-we-draft-content",class:"inline-flex gap-x-2 text-gray-400 hover:text-gray-300 focus:outline-none focus:text-gray-300"},{default:c(()=>t[19]||(t[19]=[m("How we draft content")])),_:1}),u(l,{to:"/partner-with-us",class:"inline-flex gap-x-2 text-gray-400 hover:text-gray-300 focus:outline-none focus:text-gray-300"},{default:c(()=>t[20]||(t[20]=[m("Partner with Us")])),_:1}),u(l,{to:"/submit-coupon",class:"inline-flex gap-x-2 text-gray-400 hover:text-gray-300 focus:outline-none focus:text-gray-300"},{default:c(()=>t[21]||(t[21]=[m("Submit Coupons")])),_:1}
1),u(l,{to:"/code-guarantee",class:"inline-flex gap-x-2 text-gray-400 hover:text-gray-300 focus:outline-none focus:text-gray-300"},{default:c(()=>t[22]||(t[22]=[m("Code Guarantee")])),_:1})])]),t[25]||(t[25]=J('<div><h4 class="text-xs font-semibold text-gray-100 uppercase">Connect With Us</h4><div class="mt-3 grid space-y-3 text-sm"><p><a class="inline-flex gap-x-2 text-gray-400 hover:text-gray-300 focus:outline-none focus:text-gray-300" href="https://www.facebook.com/go.shoppingways/" target="_blank">Facebook</a></p><p><a class="inline-flex gap-x-2 text-gray-400 hover:text-gray-300 focus:outline-none focus:text-gray-300" href="https://x.com/go_shoppingways" target="_blank">Twitter</a></p><p><a class="inline-flex gap-x-2 text-gray-400 hover:text-gray-300 focus:outline-none focus:text-gray-300" href="https://www.instagram.com/go_shoppingways/" target="_blank">Instagram</a></p><p><a class="inline-flex gap-x-2 text-gray-400 hover:text-gray-300 focus:outline-none focus:text-gray-300" href="https://www.linkedin.com/company/shoppingways/" target="_blank">LinkedIn</a></p><p><a class="inline-flex gap-x-2 text-gray-400 hover:text-gray-300 focus:outline-none focus:text-gray-300" href="https://www.reddit.com/r/ShoppingWays/" target="_blank">Reddit</a></p></div></div>',1))]),e("div",Mt,[e("div",zt,[e("div",Tt,[e("div",Ut,[u(l,{to:"/terms",class:"inline-flex gap-x-2 text-gray-400 hover:text-gray-300 focus:outline-none focus:text-gray-300"},{default:c(()=>t[26]||(t[26]=[m("Terms")])),_:1}),u(l,{to:"/privacy",class:"inline-flex gap-x-2 text-gray-400 hover:text-gray-300 focus:outline-none focus:text-gray-300"},{default:c(()=>t[27]||(t[27]=[m("Privacy")])),_:1})])]),e("div",Pt,[e("div",Bt,[u(l,{to:"/",class:"flex-none font-semibold text-xl text-gray-200 focus:outline-none focus:opacity-80 mr-4","aria-label":"Brand"},{default:c(()=>t[28]||(t[28]=[m("ShoppingWays")])),_:1}),t[29]||(t[29]=e("p",{class:"mt-1 text-xs sm:text-sm text-gray-300"},"© 2024 All Rights Reserved.",-1))])])])])])])],64)}}}),Ot={class:"w-fullmd:ms-auto"},Rt={class:"flex flex-col items-center gap-2 sm:flex-row sm:gap-3"},Et={class:"w-full"},Jt={class:"relative"},Dt={key:0,class:"text-xs text-red-500"},Ft={type:"submit",class:"w-full md:mt-0 sm:w-auto whitespace-nowrap py-4 px-4 inline-flex justify-center items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-black text-white hover:bg-zinc-800 focus:outline-none focus:bg-zinc-700 disabled:opacity-50 disabled:pointer-events-none"},Xt=F({__name:"default",setup(o){const s=C(!1),p=C(""),f=H("hasShownModal");p.value=f.value??"";const w=()=>{p.value==""&&(s.value=!0,f.value="true",p.value="true")},k=()=>{s.value=!1};G(()=>{document.addEventListener("mouseleave",w)}),ue(()=>{document.removeEventListener("mouseleave",w)});const{$axios:b}=z(),_=T().public.API_BASE_URL,v=C(!1),a=C(!1);let y;const g=()=>{if(v.value=!0,h.value.$validate(),JSON.parse(JSON.stringify($))?.email!="")try{a.value=!0;const l=JSON.stringify($);b.post(_+U.onNewsLetterEmailSubmit,JSON.parse(l)).then(L=>{v.value=!1,A(),a.value=!1})}catch(l){console.log(l),a.value=!1}else y=setTimeout(()=>{v.value=!1},5e3)},r=()=>({email:""}),$=K(r()),A=()=>{y!==void 0&&window.clearTimeout(y),Object.assign($,r())},S=Q(()=>({email:{required:j.withMessage("The email field is required",te),email:j.withMessage("Invalid email format",ee)}})),h=se(S,$);return G(()=>{const t=document.createElement("script");t.src="https://widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js",t.async=!0,document.body.appendChild(t)}),(t,l)=>{const L=pt,oe=jt;return n(),i("div",null,[l[6]||(l[6]=e("noscript",null,[e("iframe",{src:"https://www.googletagmanager.com/ns.html?id=GTM-5LRJZFVC",height:"0",width:"0",style:{display:"none",visibility:"hidden"}})],-1)),u(L),ge(t.$slots,"default"),u(oe),s.value?(n(),i("div",{key:0,class:"modal-overlay",onClick:k},[e("div",{class:"modal bg-gradient-to-b from-green-600 to-green-800 relative p-8",style:{width:"500px"},onClick:l[2]||(l[2]=D(()=>{},["stop"]))},[l[5]||(l[5]=e("h2",{class:"text-white text-2xl font-bold mb-5"},"Wait! Don’t Miss Out on Extra Savings!",-1)),e("form",{onSubmit:D(g,["prevent"])},[e("div",Ot,[e("div",Rt,[e("div",Et,[l[3]||(l[3]=e("label",{for:"hero-input",class:"sr-only"},"Search",-1)),e("div",Jt,[O(e("input",{type:"email",id:"email",name:"email","onUpdate:modelValue":l[0]||(l[0]=E=>d($).email=E),placeholder:"Enter your email",autocomplete:"email",class:X(["py-4 px-4 block w-full border-gray-200 rounded-lg text-sm focus:border-green-500 focus:ring-green-500 disabled:opacity-50 disabled:pointer-events-none text-black",{"border-red-500 focus:border-red-500":v.value&&d(h).email.$error,"border-[#42d392] ":v.value&&!d(h).email.$invali
1d}]),onChange:l[1]||(l[1]=(...E)=>d(h).email.$touch&&d(h).email.$touch(...E))},null,34),[[R,d($).email]])]),v.value&&d(h).email.$error?(n(),i("span",Dt,P(d(h).email.$errors[0].$message),1)):x("",!0)]),e("button",Ft,P(a.value?"Subscribing...":"Subscribe"),1)]),l[4]||(l[4]=e("p",{class:"mt-3 text-sm text-white"}," No spam, unsubscribe at any time ",-1))])],32),e("button",{onClick:k,class:"absolute top-0 right-0 bg-white px-2"},"x")])])):x("",!0)])}}});export{Xt 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.