PageSourceSearch

https://www.radiocenter.si/_nuxt/gGgZonzK.js

js radiocenter.si collected 2026-09-24 23:38:53 UTC 8,154 bytes, 1 lines download raw bytes

1import{b0 as S,b1 as T,b2 as p,b3 as i,b4 as s,b5 as C,b6 as z,b7 as r,b8 as h,b9 as g,ba as M,bb as w,bc as q,bd as G,be as J,bf as D,bg as K,bh as l,bi as k,bj as $,bk as W,bl as H,bm as Q,bn as X,bo as Y,bp as Z,bq as ee,br as te,bs as se,bt as oe,bu as ae,bv as U,bw as ne,bx as le,by as ie}from"./BHCwa4Bn.js";var b=(e=>(e.CookieConsent="cookie-consent",e))(b||{});const ce={class:"flex w-fit items-center gap-2"},re=["id","checked","disabled"],de={key:0,class:"font-mono ml-13 mt-2 text-base"},ue=S({inheritAttrs:!1,__name:"FormToggle",props:{wrapperClass:{default:"form-field-toggle"},indicatorClass:{default:"form-toggle-indicator"},inputClass:{default:"form-toggle"},label:{},labelClass:{default:"form-toggle-label"},isLabelVisible:{type:Boolean,default:!0},modelValue:{default:!1},isDisabled:{type:Boolean,default:!1},isError:{type:Boolean,default:!1},description:{default:void 0}},emits:["update:modelValue","change"],setup(e,{emit:d}){const o=d,c=a=>{const v=a.target.checked;o("update:modelValue",v),o("change",v)},u=T();return(a,v)=>(i(),p("div",{class:h(e.wrapperClass)},[s("label",ce,[s("input",z({id:r(u),ref:"input"},a.$attrs,{class:"sr-only",checked:e.modelValue,disabled:e.isDisabled,type:"checkbox",onInput:c}),null,16,re),s("span",{class:h(["relative inline-flex h-5 w-9 rounded-full transition-all duration-300 md:h-6 md:w-11",[{"bg-gray-tertiary":!e.modelValue&&!e.isDisabled&&!e.isError,"bg-black":e.modelValue,"cursor-not-allowed bg-disabled":e.isDisabled,"bg-error":e.isError},e.inputClass]])},[s("span",{class:h(["absolute left-0.5 top-0.5 block h-4 w-4 rounded-full bg-white transition-all duration-300 md:h-5 md:w-5",[e.indicatorClass,e.modelValue&&"translate-x-full"]])},null,2)],2),e.isLabelVisible?(i(),p("span",{key:0,class:h(["font-mono",[{"cursor-pointer":!e.isDisabled,"text-error":e.isError},e.labelClass]])},g(e.label),3)):C("",!0)]),e.description?(i(),p("div",de,g(e.description),1)):C("",!0)],2))}}),fe=Object.assign(ue,{__name:"FormToggle"});function me(){const e=M("bodyLock",()=>!1);function d(){e.value=!0,document.body.classList.add("overflow-hidden")}function o(){e.value=!1,document.body.classList.remove("overflow-hidden")}return{bodyLock:d,bodyUnlock:o}}const be={key:0,class:"fixed inset-0 z-50 bg-black opacity-50"},ge={key:0,class:"fixed inset-0 z-50 flex flex-col items-center justify-center overflow-auto md:p-8"},pe=S({inheritAttrs:!1,__name:"Modal",props:{show:{type:Boolean},showClose:{type:Boolean,default:!0},variant:{default:"basic"}},emits:["on-close"],setup(e,{emit:d}){const o=e,c=d,u=w(null),a=w(null),{bodyLock:v,bodyUnlock:x}=me();return q(a,()=>{c("on-close",{outside:!0})}),G(()=>o.show,f=>{f?v():x()}),J(()=>{x()}),(f,n)=>{const _=W;return i(),D(K,{to:"body"},[l($,{name:"fade",appear:""},{default:k(()=>[e.show?(i(),p("div",be)):C("",!0)]),_:1}),l($,{appear:"",name:"dialog"},{default:k(()=>[e.show?(i(),p("div",ge,[s("div",z({ref_key:"modalRef",ref:a,class:["relative flex w-full flex-col bg-white text-black",[e.variant==="fullscreen"&&"flex-1 md:flex-none"]]},f.$attrs),[e.showClose?(i(),p("button",{key:0,class:"absolute right-4 top-4 z-[1] md:right-6 md:top-6",type:"button",onClick:n[0]||(n[0]=B=>f.$emit("on-close",{outside:!1}))},[l(_,{name:"custom:close"})])):C("",!0),s("div",{ref_key:"contentRef",ref:u,class:"max-h-full overflow-auto p-4 md:overflow-visible md:p-10"},[H(f.$slots,"default")],512)],16)])):C("",!0)]),_:3})])}}}),ye=Object.assign(pe,{__name:"Modal"}),ke={key:0,class:"fixed bottom-5 left-4 z-10 w-[calc(100%-2rem)] max-w-[390px] bg-black text-white shadow-lg"},ve={class:"relative flex flex-col justify-between gap-5 p-6"},he={class:"font-mono mb-5 flex-1 text-sm lg:mb-0"},xe={class:"flex w-full flex-wrap items-end justify-end gap-3 lg:gap-5"},we={class:"self-center"},Ce={class:"mb-4 text-xl font-semibold lg:text-2xl"},_e={class:"mb-6 text-lg lg:text-xl"},$e={class:"mb-12 flex flex-col gap-4"};var V=(e=>(e.Necessary="necessary",e.Analytics="analytics",e.Advertising="advertising",e))(V||{});const Ve=S({__name:"CookieBanner",setup(e){const{isSiteRock:d}=Q(),{t:o}=X(),c=Y(),u=w(!1),a=w(!1),v=w([{type:"necessary",title:o("cookies.comply.preferences.necessary.title"),description:o("cookies.comply.preferences.necessary.description"),isRequired:!0},{type:"analytics",title:o("cookies.comply.preferences.analytics.title"),description:o("cookies.comply.preferences.analytics.description")},{type:"advertising",title:o("cookies.comply.preferences.advertising.t
1itle"),description:o("cookies.comply.preferences.advertising.description")}]),x=w("Waiting for user interaction..."),f=Z({necessary:!0,analytics:!1,advertising:!1}),n=ee(),_=()=>{const t=["necessary"];x.value=`User accepted the following cookies 📋: ${t.join(", ")}`,localStorage.setItem(b.CookieConsent,JSON.stringify(t)),u.value=!1,n?.enable(!1)},B=()=>{const t=Object.values(V);x.value=`User accepted all cookies. 👍: ${t.join(", ")}`,localStorage.setItem(b.CookieConsent,JSON.stringify(t)),L(),n?.enable(!0),n?.trackView(c.name,c.path),u.value=!1},A=()=>{const t=Object.values(V).filter(y=>f[y]);x.value="User accepted the following cookies 📋: "+t.join(", "),localStorage.setItem(b.CookieConsent,JSON.stringify(t)),a.value=!1,u.value=!1,t.includes("advertising")||t.includes("analytics")?(t.includes("advertising")&&t.includes("analytics")?L():t.includes("analytics")?j():t.includes("advertising")&&I(),n?.enable(!0),n?.trackView(c.name,c.path)):n?.enable(!1)};function L(){gtag("consent","update",{ad_user_data:"granted",ad_personalization:"granted",ad_storage:"granted",analytics_storage:"granted"})}function j(){gtag("consent","update",{analytics_storage:"granted"})}function I(){gtag("consent","update",{ad_user_data:"granted",ad_personalization:"granted",ad_storage:"granted"})}return te(()=>{se(()=>{u.value=!localStorage.getItem(b.CookieConsent),(localStorage.getItem(b.CookieConsent)?.includes("analytics")||localStorage.getItem(b.CookieConsent)?.includes("advertising"))&&(localStorage.getItem(b.CookieConsent)?.includes("analytics")&&j(),localStorage.getItem(b.CookieConsent)?.includes("advertising")&&I(),n?.enable(!0),n?.trackView(c.name,c.path))},1e3)}),(t,y)=>{const O=ae,N=oe("i18n-t"),R=ne,P=fe,E=ye;return i(),D($,{name:"fade"},{default:k(()=>[r(u)?(i(),p("aside",ke,[s("div",ve,[s("div",he,[s("div",{class:h(["mb-1.5 font-semibold",r(d)?"text-sm":"text-lg"])},g(t.$t("cookies.title")),3),l(N,{keypath:"cookies.message",tag:"p",class:h(["mb-4 leading-tight",r(d)?"text-sm":"text-lg"]),scope:"global"},{privacyPolicy:k(()=>[l(O,{to:t.$t("cookies.privacyLink"),class:"underline hover:no-underline","no-prefetch":""},{default:k(()=>[U(g(t.$t("cookies.privacyPolicy")),1)]),_:1},8,["to"])]),_:1},8,["class"]),s("button",{class:h(["underline hover:no-underline",r(d)?"text-sm":"text-lg"]),type:"button",onClick:y[0]||(y[0]=m=>a.value=!0)},g(r(o)("cookies.preferences")),3)]),s("div",xe,[s("div",we,[s("button",{class:"!w-full text-white md:!w-fit",variant:"outline",onClick:_},g(t.$t("cookies.decline")),1)]),s("div",null,[l(R,{class:"w-full md:w-fit",label:t.$t("cookies.acceptAll"),onClick:B},null,8,["label"])])])]),l(E,{show:r(a),class:"max-w-[600px]","content-class":"!px-4 !py-6",onOnClose:y[2]||(y[2]=()=>a.value=!1)},{default:k(()=>[s("div",Ce,g(t.$t("cookies.preferences")),1),l(N,{keypath:"cookies.message",tag:"p",class:"mb-7 text-lg lg:text-xl",scope:"global"},{privacyPolicy:k(()=>[l(O,{to:t.$t("cookies.privacyLink"),class:"underline hover:no-underline","no-prefetch":"",onClick:y[1]||(y[1]=m=>a.value=!1)},{default:k(()=>[U(g(t.$t("cookies.privacyPolicy")),1)]),_:1},8,["to"])]),_:1}),s("p",_e,g(t.$t("cookies.comply.manage")),1),s("div",$e,[(i(!0),p(le,null,ie(r(v),m=>(i(),p("div",{key:m.type,class:"relative flex gap-2"},[l(P,{modelValue:r(f)[m.type],"onUpdate:modelValue":F=>r(f)[m.type]=F,name:m.type,label:m.title,"is-disabled":m.isRequired,description:m.description},null,8,["modelValue","onUpdate:modelValue","name","label","is-disabled","description"])]))),128))]),l(R,{label:t.$t("cookies.allowSelection"),onClick:A},null,8,["label"])]),_:1},8,["show"])])):C("",!0)]),_:1})}}}),Be=Object.assign(Ve,{__name:"CookieBanner"});export{Be 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.