PageSourceSearch

https://renegadesbook.com/_nuxt/DyLqn8-Y.js

js renegadesbook.com collected 2026-10-06 06:58:12 UTC 12,532 bytes, 1 lines download raw bytes

1import Q from"./BC26cL-D.js";import{cw as G,a3 as u,ce as O,o as Z,cE as X,bm as _,a7 as c,cH as E,a9 as d,a6 as m,cI as w,bp as s,a8 as p,F as h,bM as C,bq as S,bJ as ee,m as te,bQ as le,bz as n,ai as r,c8 as oe,aj as b,bR as ne,c9 as N}from"./BPlt5jNJ.js";import{u as ae}from"./vsr-mS5a.js";import T from"./D0rIMvHL.js";import de from"./D88C6k_Y.js";import ie from"./BT58PfX1.js";import se from"./BEZ7I2QO.js";import ue from"./eywoWgja.js";import me from"./CdujF1XN.js";import A from"./XAu2weTL.js";import ce from"./Ly8udFWV.js";import re from"./DTh3xv__.js";import ye from"./nxkkOwJg.js";import"./2O5AYayu.js";import"./BUs59L8d.js";import"./BWkuNxku.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},$=new e.Error().stack;$&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[$]="7e429a84-6a01-42bb-81ee-204e92395bbf",e._sentryDebugIdIdentifier="sentry-dbid-7e429a84-6a01-42bb-81ee-204e92395bbf")}catch{}{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=Object.assign({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:splash-application":!0})}const ve=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE"];function fe(e){return e?ve.includes(e.toUpperCase()):!1}function be(e){const $=G(),l=u(()=>$.state.session?.countryCode),L=u(()=>fe(l.value)),U=u(()=>O(e)?!1:L.value);return{countryCode:l,isCountryBlocked:L,isGeoBlocked:U}}const ke={key:0},ge={key:1},we={key:2},pe={key:3},xe={class:"module_inner"},he={class:"flex flex-col @sm:flex-row"},Ce={class:"flex flex-col items-center justify-center w-full"},Te={class:"tiktok-wrapper mx-auto"},$e={class:"tiktok-wrapper mx-auto"},Ve={class:"tiktok-wrapper mx-auto"},K="prh_tiktok_consent",j="prh-tiktok-consented",Ee={__name:"MediaEmbed",props:{module:{type:Object,default:()=>{}},editable:{type:Boolean,default:!1},theme:{type:Object,default:()=>{}},headingOffset:{type:Number,default:0}},emits:["show-panel","tracking"],setup(e,{emit:$}){const l=e;G();const{h1LevelTag:L,h1LevelStyleClass:U}=ae(N(l,"headingOffset")),k=u(()=>l.module.content.embedType==="Video"),y=u(()=>l.module.content.embedType==="Instagram"),v=u(()=>l.module.content.embedType==="TikTok"),{isGeoBlocked:P}=be(N(l,"editable")),R=u(()=>(v.value||y.value)&&P.value),M=ee(!1),z=u(()=>v.value&&!l.editable&&!M.value);if(typeof window<"u"){localStorage.getItem(K)==="true"&&(M.value=!0);const o=()=>{M.value=!0};window.addEventListener(j,o)}function F(){M.value=!0,typeof window<"u"&&(localStorage.setItem(K,"true"),window.dispatchEvent(new CustomEvent(j)))}const D=u(()=>l.module.content.settings.videoLayout==="MultiColumn"?y.value?"flex flex-wrap gap-x-4 gap-y-8 justify-center":"flex flex-wrap gap-6 justify-center":"flex flex-col gap-6 justify-center items-center");X(()=>l.module.content.videos?.length,async(i,o)=>{if(!i||i<=(o??0))return;await _();const x=i-1,g=l.module.content.videos[x],f=k.value?`[data-test="video-player-${g.id}-${x}"]`:v.value?`[data-test="tiktok-embed-${g.id}-${x}"]`:`[data-test="instagram-embed-${g.id}-${x}"]`;document.querySelector(f)?.scrollIntoView({behavior:"smooth",block:"nearest"})});const H=u(()=>k.value||v.value||y.value?!!l.module.content.videos?.length:!!l.module.content.embedUrl),Y=u(()=>({[`@sm:px-8 @md:px-${l.module.content.padding.x}`]:!!(l.module.content.padding.x&&l.module.content.margin===!0),[`@sm:px-14 @md:px-${l.module.content.padding.x+8}`]:!!(l.module.content.padding.x&&l.module.content.margin===!1),[`border-solid border-${l.module.content.border?.width}`]:!!l.module.content.border?.width,[`pt-${l.module.content.padding.t}`]:!!l.module.content.padding.t,[`pb-${l.module.content.padding.b}`]:!!l.module.content.padding.b})),q=u(()=>({"--module-border-color":l.module.content.border?.color})),W=u(()=>{if(y.value)return"";const i=l.module.content.embedUrl;if(!i)return"";if(l.module.content.embedType==="Spotify")return i.includes("open.spotify.com")?{"h-14":!!i.includes("/track/"),"h-[232px]":!!["/show/","/episode/"].some(o=>i.includes(o)),"h-[380px]":!!["/playlist/","/album/","/artist/"].some(o=>i.includes(o))}:"h-[380px]";if(l.module.content.embedType==="Soundcloud"){const o=l.module.content.settings.display_artwork;return{"h-[450px]":!!(i.includes("set")&&!i.includes("in=")||o)}}return""}),J=u(()=>l.module.content.title?l.module.content.title:""),I=u(()=>({"--video-description-font-color":l.module.content.videoDescription?.color})),B=u(()=>({[l.module.content.videoDescription.fontFamily]:!!l.module.content.videoDescription.fontFamily,["font-weight-"+l.module.content.videoDescription.fontWeight]:!!l.module.content.videoDescription.fontWeight,["font-size-"+l.module.content.videoDescription.fontSize+"px"]:!!l.module.content.videoDescription.fontSize,uppercase:l.module.content.videoDescription.textTransform}));return(i,o)=>{const x=Q,g=te,f=le("panel");return H.value?(n(),d("div",{key:1,class:s(["module px-4",Y.value]),style:S([e.module.content.background.style,q.value])},[m("div",xe,[m("div",he,[m("div",Ce,[e.module.content.header.meta.display?w((n(),c(T,{key:0,modelValue:e.module.content.header.html,"onUpdate:modelValue":o[1]||(o[1]=t=>e.module.content.header.html=t),editable:e.editable,tag:O(L),class:s(["mb-4 w-full text-center",O(U)]),"data-test":"module-header"},null,8,["modelValue","editable","tag","class"])),[[f]]):p("",!0),e.module.content.intro.meta.display?w((n(),c(T,{key:1,modelValue:e.module.content.intro.html,"onUpdate:modelValue":o[2]||(o[2]=t=>e.module.content.intro.html=t),editable:e.editable,tag:"div",class:"w-full","data-test":"intro-text"},null,8,["modelValue","editable"])),[[f]]):p("",!0),e.module.content.social.meta.display?w((n(),c(ye,{key:2,modelValue:e.module.content.social,"onUpdate:modelValue":o[3]||(o[3]=t=>e.module.content.social=t),class:s(["w-full",{"mb-1":e.module.content.intro.meta.display||e.module.content.header.meta.display}]),editable:e.editable,onTracking:o[4]||(o[4]=t=>i.$emit("tracking",t))},null,8,["modelValue","class","editable"])),[[f,{component:"SocialMediaSettings"}]]):p("",!0),k.value?(n(),d("div",{key:"video-container","data-test":"video-player-container",class:s(["w-full",[D.value,{"mt-4":e.module.content.intro.meta.display||e.module.content.header.meta.display,"mb-8":e.module.content.text.meta.display}]])},[(n(!0),d(h,null,C(e.module.content.videos,(t,a)=>(n(),d("div",{key:`video-${t.id}-${a}`,class:s(["w-full",{"max-w-[333px]":e.module.content.settings.videoLayout==="SingleColumn"&&t.url.includes("/shorts/"),"@sm:w-[calc(50%-15px)] @lg:w-[calc(33.333%-20px)]":e.module.content.settings.videoLayout==="MultiColumn"}])},[b(de,{video:t,"data-test":`video-player-${t.id}-${a}`,class:"w-full mx-auto"},null,8,["video","data-test"]),e.module.content.videoDescription.meta.display?w((n(),c(T,{key:0,modelValue:t.html,"onUpdate:modelValue":V=>t.html=V,editable:e.editable,tag:"div","theme-variable":"media_embed_description",class:s(["w-full mt-4 media-embed-vi
1deo-description",B.value]),style:S(I.value),"data-test":`video-text-${t.id}-${a}`},null,8,["modelValue","onUpdate:modelValue","editable","class","style","data-test"])),[[f]]):p("",!0)],2))),128))],2)):v.value?(n(),d("div",{key:"tiktok-container","data-test":"tiktok-embed-container",class:s(["w-full",[D.value,{"mt-4":e.module.content.intro.meta.display||e.module.content.header.meta.display,"mb-8":e.module.content.text.meta.display}]])},[R.value?(n(!0),d(h,{key:0},C(e.module.content.videos,(t,a)=>(n(),d("div",{key:`tiktok-eu-block-${t.id}-${a}`,class:s(["w-full",{"max-w-[333px]":e.module.content.settings.videoLayout!=="MultiColumn","@sm:w-[calc(50%-15px)] @lg:w-[calc(33.333%-20px)]":e.module.content.settings.videoLayout==="MultiColumn"}])},[m("div",Te,[b(A,{"data-test":`tiktok-eu-geo-block-overlay-${a}`},null,8,["data-test"])])],2))),128)):z.value?(n(!0),d(h,{key:1},C(e.module.content.videos,(t,a)=>(n(),d("div",{key:`tiktok-overlay-${t.id}-${a}`,class:s(["w-full",{"max-w-[333px]":e.module.content.settings.videoLayout!=="MultiColumn","@sm:w-[calc(50%-15px)] @lg:w-[calc(33.333%-20px)]":e.module.content.settings.videoLayout==="MultiColumn"}])},[m("div",$e,[b(me,{"data-test":`tiktok-privacy-overlay-${a}`,onConsent:F},null,8,["data-test"])])],2))),128)):(n(!0),d(h,{key:2},C(e.module.content.videos,(t,a)=>(n(),d("div",{key:`tiktok-${t.id}-${a}`,class:s(["w-full",{"max-w-[333px]":e.module.content.settings.videoLayout!=="MultiColumn","@sm:w-[calc(50%-15px)] @lg:w-[calc(33.333%-20px)]":e.module.content.settings.videoLayout==="MultiColumn"}])},[m("div",Ve,[b(g,null,{default:E(()=>[b(ue,{tiktok:t,class:"w-full mx-auto","data-test":`tiktok-embed-${t.id}-${a}`},null,8,["tiktok","data-test"])]),_:2},1024),e.module.content.videoDescription.meta.display?w((n(),c(T,{key:0,modelValue:t.html,"onUpdate:modelValue":V=>t.html=V,editable:e.editable,tag:"h4",class:s(["w-full mt-4 media-embed-video-description",B.value]),style:S(I.value),"data-test":`tiktok-text-${t.id}-${a}`},null,8,["modelValue","onUpdate:modelValue","editable","class","style","data-test"])),[[f]]):p("",!0)])],2))),128))],2)):y.value?(n(),d("div",{key:"instagram-container","data-test":"instagram-embed-container",class:s(["w-full",[D.value,{"mt-4":e.module.content.intro.meta.display||e.module.content.header.meta.display,"mb-8":e.module.content.text.meta.display}]])},[R.value?(n(!0),d(h,{key:0},C(e.module.content.videos,(t,a)=>(n(),d("div",{key:`instagram-eu-block-${t.id}-${a}`,class:s(["w-full",{"max-w-[540px]":e.module.content.settings.videoLayout!=="MultiColumn","@sm:w-[calc(50%-15px)]":e.module.content.settings.videoLayout==="MultiColumn"}])},[b(A,{"data-test":`instagram-eu-geo-block-overlay-${a}`},null,8,["data-test"])],2))),128)):(n(!0),d(h,{key:1},C(e.module.content.videos,(t,a)=>(n(),d("div",{key:`instagram-${t.id}-${a}`,class:s(["w-full",{"max-w-[540px]":e.module.content.settings.videoLayout!=="MultiColumn","@sm:w-[calc(50%-15px)]":e.module.content.settings.videoLayout==="MultiColumn"}])},[b(g,null,{default:E(()=>[b(re,{"canonical-url":t.canonical_url,shortcode:t.shortcode||t.id,type:t.type?.replace("instagram_","")||"post",class:"w-full mx-auto","data-test":`instagram-embed-${t.id}-${a}`},null,8,["canonical-url","shortcode","type","data-test"])]),_:2},1024),e.module.content.videoDescription.meta.display?w((n(),c(T,{key:0,modelValue:t.html,"onUpdate:modelValue":V=>t.html=V,editable:e.editable,tag:"h4",class:s(["w-full mt-4 media-embed-video-description",B.value]),style:S(I.value),"data-test":`instagram-text-${t.id}-${a}`},null,8,["modelValue","onUpdate:modelValue","editable","class","style","data-test"])),[[f]]):p("",!0)],2))),128))],2)):(n(),c(g,{key:6},{default:E(()=>[(n(),c(ne(e.module.content.embedType==="Spotify"?ie:e.module.content.embedType==="Soundcloud"?se:ce),{id:e.module.content.embedId,title:J.value,url:e.module.content.embedUrl,artwork:e.module.content.settings.display_artwork,class:s([{"mb-8":e.module.content.text.meta.display},W.value])},null,8,["id","title","url","artwork","class"]))]),_:1})),e.module.content.text.meta.display?w((n(),c(T,{key:7,modelValue:e.module.content.text.html,"onUpdate:modelValue":o[5]||(o[5]=t=>e.module.content.text.html=t),editable:e.editable,tag:"div",class:"w-full","data-test":"body-text"},null,8,["modelValue","editable"])),[[f]]):p("",!0)])])])],6)):(n(),c(x,{key:0,module:e.module,icon:k.value||v.value||y.value?"$playCircleOutline":"$playlistPlus","data-test":k.value||v.value||y.value?"blank-vi
1deo-template":"blank-embed-preview",onShowPanel:o[0]||(o[0]=t=>i.$emit("show-panel",t))},{description:E(()=>[k.value?(n(),d("p",ke,[...o[6]||(o[6]=[r("Add a ",-1),m("strong",null,"YouTube or Vimeo",-1),r(" URL to see design preview.",-1)])])):v.value?(n(),d("p",ge,[...o[7]||(o[7]=[r("Add a ",-1),m("strong",null,"TikTok",-1),r(" URL to see design preview.",-1)])])):y.value?(n(),d("p",we,[...o[8]||(o[8]=[r("Add an ",-1),m("strong",null,"Instagram",-1),r(" URL to see design preview.",-1)])])):(n(),d("p",pe,[...o[9]||(o[9]=[r("Select ",-1),m("strong",null,"Embed Type",-1),r(" and add ",-1),m("strong",null,"URL",-1),r(" to see design preview.",-1)])]))]),action:E(()=>[r(oe(k.value?"Add Video URL":v.value?"Add TikTok URL":y.value?"Add Instagram URL":"Add URL"),1)]),_:1},8,["module","icon","data-test"]))}}},Fe=Z(Ee,[["__scopeId","data-v-c9b4aaba"]]);export{Fe 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.