import{d as m,a7 as h,H as w,e as g,aj as a,o as n,s as f,w as x,z as r,c as v,a5 as C,y as k,aI as y,ak as c,aF as A}from"./Cg2SAP-V.js";const R=["data-e2e","data-placement","data-device"],V=m({__name:"Tile",props:{name:{},viewport:{},containerStyles:{}},setup(s){const t=s,{showIqdAds:p}=h(w()),i=e=>{const{currentRoute:o}=y();switch(o.value.meta.layout){case"content":return d(e);case"department":case"homepage":case"list":case"subdepartment":return c()?"":l(e);default:return""}},d=e=>{if(c())return e==="pos_2"?"min-h-[600px] px-[20px]":"";switch(e){case"pos_1":case"pos_3":case"pos_6":case"pos_9":case"pos_12":return"!min-h-[460px]";case"pos_2":case"pos_4":case"pos_7":case"pos_10":case"pos_13":return"!min-h-[600px]";case"pos_5":case"pos_8":case"pos_11":case"pos_14":case"pos_15":case"pos_footer":return"!min-h-[320px]";default:return""}},l=e=>{switch(e){case"pos_1":case"pos_3":case"pos_5":case"pos_7":case"pos_9":case"pos_12":return"!min-h-[460px]";case"pos_2":case"pos_4":case"pos_6":case"pos_8":case"pos_10":return"!min-h-[600px]";case"pos_footer":return"!min-h-[320px]";default:return""}},u=g(()=>p.value&&(!t.viewport||t.viewport===a()));return(e,o)=>{const _=A;return n(),f(_,null,{default:x(()=>[r(u)?(n(),v("div",{key:0,class:C(["bg-grey-900 dark:bg-grey-900-dark iqdcontainer print:hidden",[e.containerStyles,i(e.name)]]),"data-selector":"iqd-container","data-e2e":`iqd-container ad-tile-${e.name}`,"data-placement":e.name,"data-device":("getViewport"in e?e.getViewport:r(a))()},null,10,R)):k("",!0)]),_:1})}}}),I=s=>{const t={...s,noindex:!(s!=null&&s.index),nofollow:!(s!=null&&s.follow),noarchive:!0};return s!=null&&s.index?{...t,maxSnippet:-1,maxVideoPreview:-1,maxImagePreview:"large"}:t};export{V as _,I as g};