PageSourceSearch

https://fdh.co.mw/assets/promo-DaNXxK4a.js

js fdh.co.mw collected 2026-09-24 22:06:35 UTC 3,958 bytes, 1 lines download raw bytes

1import{_ as e,e as t,g as o,s as l,h as n,c as s,p as a,o as i,a as r,F as c,n as u,A as d,i as p,t as m}from"./index-5iDbdEyE.js";const v={key:0,class:"mx-auto bg-gradient-to-b from-white to-bgGray50 sm:px-6 lg:px-8"},b={class:"relative max-w-screen-2xl mx-auto px-4 sm:py-10 sm:px-6 lg:px-8"},g={class:"relative"},h={class:"carousel carousel-fade z-100 relative"},f={class:"carousel-indicators absolute right-0 bottom-0 left-0 flex justify-center p-0 mb-4"},x=["onClick","aria-label"],y={class:"carousel-inner shadow-sm rounded-md hover:shadow-md p-0 relative w-full overflow-hidden"},w=["onClick"],_={class:"xl:col-span-6 lg:col-span-5 shadow-sm rounded-sm md:col-span-9 col-span-12 relative z-10"},k=["src","alt"],A={class:"carousel-caption hidden md:block absolute text-center"},O=e({__name:"promo",setup(e){let O=t(0),S=t(null);const j=o(()=>{let e=[];const t=function(){const e=navigator.userAgent,t=window.screen.width,o=/iPhone|iPad|iPod|Android|webOS|BlackBerry|Windows Phone/i.test(e);return/iPad|Android|Tablet|Silk/i.test(e)&&!/Mobile/i.test(e)||!o&&t<=1024&&t>768?"tablet":o||t<=768?"mobile":"desktop"}();return e="mobile"===t?JSON.parse(JSON.stringify(l.getters.getPromotions)).filter(e=>"Mobile"===e.promotion_display_type_name.trim()||"All"===e.promotion_display_type_name.trim()):"tablet"===t?JSON.parse(JSON.stringify(l.getters.getPromotions)).filter(e=>"Tablet"===e.promotion_display_type_name.trim()||"All"===e.promotion_display_type_name.trim()):JSON.parse(JSON.stringify(l.getters.getPromotions)).filter(e=>"Desktop"===e.promotion_display_type_name.trim()||"All"===e.promotion_display_type_name.trim()),e.map((e,t)=>0===t?Object.assign(e,{class:"active"}):Object.assign(e,{class:""})),e});function C(){O.value=(O.value+1)%j.value.length,J()}function P(){O.value=(O.value-1+j.value.length)%j.value.length,J()}function J(){j.value.forEach((e,t)=>{e.class=t===O.value?"active":""})}return n(()=>{S.value=setInterval(C,1e4),J()}),(e,t)=>j.value.length>0?(i(),s("div",v,[r("div",b,[t[2]||(t[2]=r("div",{class:"mx-auto max-w-3xl pb-10 text-center"},null,-1)),r("div",g,[r("div",h,[r("div",f,[(i(!0),s(c,null,u(j.value,(e,t)=>(i(),s("button",{key:"indicator-"+t,type:"button",onClick:e=>function(e){O.value=e,J()}(t),class:d({active:p(O)===t}),"aria-label":"Slide "+(t+1)},null,10,x))),128))]),r("div",y,[(i(!0),s(c,null,u(j.value,(t,o)=>(i(),s("div",{key:"slide-"+o,class:d(["carousel-item float-left w-full bg-bgGray50 transition-opacity duration-500",{active:p(O)===o}]),onClick:o=>e.ViewBlog(t)},[r("div",_,[r("img",{src:t.image_cover_url,alt:t.alt,class:"w-full rounded-md ease-in duration-500",style:{"max-height":"350px",height:"auto"}},null,8,k),r("div",A,[r("p",null,m(t.description),1)])])],10,w))),128))]),r("button",{class:"carousel-control-prev z-50 absolute top-0 bottom-0 flex items-center opacity-30 hover:opacity-30 justify-center p-0 text-btnActive hover:text-btnActive text-center border-0 hover:outline-none hover:no-underline focus:outline-none focus:no-underline md:-left-10 xs:-left-4",type:"button",onClick:P},[...t[0]||(t[0]=[r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-12 h-12"},[r("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)])]),r("button",{class:"carousel-control-next absolute z-50 top-0 bottom-0 flex items-center opacity-30 hover:opacity-30 justify-center p-0 text-btnActive hover:text-btnActive text-center border-0 hover:outline-none hover:no-underline focus:outline-none focus:no-underline md:-right-10 xs:-right-4",type:"button",onClick:C},[...t[1]||(t[1]=[r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-12 h-12"},[r("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)])])])])])])):a("",!0)}},[["__scopeId","data-v-a79799c7"]]);export{O as p};

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.