1import{e as p,g as y,aJ as S,h as f,j as h,o as s,c as o,a as r,aj as C}from"./jJYzxH5B.js";const g={key:0,class:"container py-10 relative z-0"},v={class:"flex justify-center"},x=["innerHTML"],E=["innerHTML"],j=p({__name:"page-script-component",props:{htmlCode:{default:""},scriptSrc:{default:""},scriptContent:{},scriptDataSettingsId:{},actionsOnRemoveScriptContent:{},hideScriptComponent:{type:Boolean},__metadata:{}},setup(t){const d=y(),{data:l=C({})}=S("scripts"),m=t.scriptSrc.includes("loyjoy"),i=l.value?.find(({scriptSrc:e})=>e===t.scriptSrc);let c=!0;const a=()=>{if(t.scriptSrc){const e=document.createElement("script");e.defer=!0,e.async=!0,e.src=t.scriptSrc,e.dataset.id=t.scriptDataSettingsId||t.__metadata?.id,document.body.appendChild(e)}if(t.scriptContent){const e=document.createElement("script");e.type="text/javascript",e.defer=!0,e.async=!0,e.textContent=t.scriptContent,e.dataset.id=t.scriptDataSettingsId||t.__metadata?.id,document.body.appendChild(e)}},u=()=>{document.querySelectorAll('[id^="loyjoy-"]').forEach(n=>{n.remove()})};return d.isHydrating?c=!0:c=!1,f(()=>{!t.scriptSrc&&!t.scriptContent||i&&c||a()}),h(()=>{document.querySelectorAll(`script[data-id="${t.scriptDataSettingsId||t.__metadata?.id}"]`)?.forEach(n=>{n.remove()}),m&&u(),i&&a()}),(e,n)=>t.hideScriptComponent?(s(),o("div",{key:1,innerHTML:t.htmlCode},null,8,E)):(s(),o("div",g,[r("div",v,[r("div",{class:"w-full",innerHTML:t.htmlCode},null,8,x)])]))}}),T=Object.assign(j,{__name:"PageScriptComponent"});export{T 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.