1import d from"./BM32_B00.js";import{u as f,i as C,D as h,p as v,c as _,a as n,d as c,f as r,o as s,g,w as k,e as w}from"./Do1nZpFk.js";import{u as x}from"./DZKjVPmg.js";import"./XMY91GlI.js";import"./DJnNxUKs.js";import"./BM5aYONo.js";import"./-8tBiWp6.js";import"./ao8MkUl6.js";import"./DwhRLOzU.js";import"./B1KOrQsF.js";import"./ChoZ3EV4.js";import"./DvJT-m7N.js";import"./CCd7CVVz.js";import"./CyDlDtLg.js";import"./CxHZCQz4.js";const y={key:0},L={width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b=["fill"],F={__name:"ElPromo",props:{section:{type:Object,required:!0},docked:{type:Boolean,default:!1}},setup(e){const o=e,{promoBannersStore:a}=f(),{resolutioner:p}=x(),t=C(!1),i=h(`banner.${o.section.uid}`,{maxAge:o.section.options.content.promo.maxAge*60}),l=()=>{t.value=!t.value,o.section.options.content.promo.maxAge&&(i.value=!0)};v(()=>{o.docked||i.value||a.addBanner(o.section)});const m=_(()=>typeof o.section.options.content.promo.display=="boolean"?o.section.options.content.promo.display:o.section.options.content.promo.display.includes(p.value));return(B,j)=>{const u=d;return r(m)&&e.docked&&!r(t)?(s(),n("div",y,[g(u,{section:e.section.options.content.promo.subject},{default:k(()=>[e.section.options.content.promo.closeIcon.enabled.lg?(s(),n("a",{key:0,href:"javascript:;",class:"promo-close-icon z-1000",onClick:l},[(s(),n("svg",L,[w("path",{d:"M0.853553 0.146447C0.658291 -0.0488156 0.341709 -0.0488156 0.146447 0.146447C-0.0488155 0.341709 -0.0488155 0.658291 0.146447 0.853554L3.29293 4.00004L0.146447 7.14652C-0.0488153 7.34178 -0.0488155 7.65837 0.146447 7.85363C0.341709 8.04889 0.658291 8.04889 0.853553 7.85363L4.00004 4.70714L7.14645 7.85355C7.34171 8.04882 7.65829 8.04882 7.85355 7.85355C8.04882 7.65829 8.04882 7.34171 7.85355 7.14645L4.70714 4.00004L7.85355 0.853629C8.04882 0.658367 8.04882 0.341784 7.85355 0.146522C7.65829 -0.04874 7.34171 -0.04874 7.14645 0.146522L4.00004 3.29293L0.853553 0.146447Z",fill:e.section.options.content.promo.closeIcon.color.lg},null,8,b)]))])):c("",!0)]),_:1},8,["section"])])):c("",!0)}}};export{F 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.