1import{d as w,cx as v,K as D,B as S,cy as R,v as z,cz as L,R as N,o as l,k as T,z as B,c as p,j as $,b as r,h as f,ak as C,a5 as A,_ as I,g as H,f as y,a as d,t as g,n as k,w as h,aq as x,e as F,ao as W,cA as j}from"./DwZIrv6Y.js";import q from"./q9hFR3BI.js";import{a as K}from"./DSNn8dWb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"0d91745c4ab0b925b40150fcafc86056510029cb"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4ea37c02-a459-4695-920b-e87be78087cc",e._sentryDebugIdIdentifier="sentry-dbid-4ea37c02-a459-4695-920b-e87be78087cc")})()}catch{}const O=w({__name:"Popup",props:v({showCloseIcon:{type:Boolean,default:!0},minWidth:{default:"620px"}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:v(["close"],["update:modelValue"]),setup(e,{emit:n}){D(s=>({"8e845c42":s.minWidth}));const c=n,{setPopupState:i}=S(),t=R(e,"modelValue"),o=z();return L(o,()=>c("close")),N(t,s=>{i(!!s)}),(s,u)=>(l(),T(A,{name:"scale-fade-popup",appear:""},{default:B(()=>[t.value?(l(),p("div",{key:0,ref_key:"popup",ref:o,class:"base-popup"},[s.showCloseIcon?(l(),p("div",{key:0,class:"button-close",onClick:u[0]||(u[0]=_=>c("close"))},[$(r(q),{class:"close-icon"})])):f("",!0),C(s.$slots,"default",{},void 0,!0)],512)):f("",!0)]),_:3}))}}),U=I(O,[["__scopeId","data-v-caa1a9f5"]]),Y={key:0,class:"image-container"},G=["src","alt"],J={class:"inner-content"},Q={class:"content"},X=["innerHTML"],Z={key:1,class:"actions"},ee=w({__name:"PromoPopup",props:{title:{},content:{},image:{},hasImage:{type:[Boolean,null]},start:{type:[Boolean,null]},blocking:{type:[Boolean,null]},cancelButtonText:{},confirmButtonText:{}},setup(e){const n=e,{t:c}=H(),{popupShowed:i,closePopup:t}=K(),{skin:o,setBlockedState:s}=S(),u=o.configuration.usePopupTitleCentered?"centered-title":"",_=y(()=>n.confirmButtonText||c("buttons.confirm")),V=y(()=>n.cancelButtonText||c("buttons.cancel")),P=()=>{o!=null&&o.configuration.useAgeRestrictionPopup?F({path:"/"}):s(!0),t()},E=()=>{n.blocking||t()};return(a,m)=>{const M=U;return l(),T(M,{modelValue:r(i),"onUpdate:modelValue":m[1]||(m[1]=b=>x(i)?i.value=b:null),onClose:E},{default:B(()=>[d("div",{class:k(["promo-item-popup",{image:a.hasImage,blocking:a.blocking}])},[a.hasImage?(l(),p("div",Y,[d("img",{src:a.image,alt:a.title||"",loading:"lazy"},null,8,G)])):f("",!0),d("div",J,[a.title?(l(),p("div",{key:0,class:k(["title",r(u)])},g(a.title),3)):f("",!0),d("div",Q,[a.content?(l(),p("div",{key:0,class:"content-text",innerHTML:a.content},null,8,X)):f("",!0),C(a.$slots,"content",{},void 0,!0)]),a.blocking?(l(),p("div",Z,[d("button",{class:"action-button",onClick:m[0]||(m[0]=h((...b)=>r(t)&&r(t)(...b),["stop"]))},g(r(_)),1),d("button",{class:"action-button cancel",onClick:h(P,["stop"])},g(r(V)),1)])):f("",!0)])],2)]),_:3},8,["modelValue"])}}}),ne=I(ee,[["__scopeId","data-v-94ea3fdf"]]),ae=W("stories",()=>{const e=j("stories",[]),n=i=>{const t=i.map(o=>{const s=e.value.find(u=>u.id===o.id);return s&&(o.storyFrames=s.storyFrames,o.viewed=s.viewed),o});e.value=t},c=y(()=>e.value?[...e.value].sort((i,t)=>t.viewed===i.viewed?0:t.viewed?-1:1):[]);return{stories:e,sortedStories:c,setStoriesState:n}});export{ne as _,U as a,ae as u};
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.