1"use strict";(self["webpackChunkclient"]=self["webpackChunkclient"]||[]).push([[476],{40476:function(e,t,i){i.r(t),i.d(t,{default:function(){return w}});var d=i(20641),n=i(53751);const s={class:"newsletter-test-page"},o={class:"page-container"},l={class:"test-section"},c=["data-widget-id"];function a(e,t,i,a,r,u){return(0,d.uX)(),(0,d.CE)("div",s,[(0,d.Lk)("div",o,[t[4]||(t[4]=(0,d.Lk)("div",{class:"header"},[(0,d.Lk)("h1",null,"Newsletter Widget Test")],-1)),(0,d.Lk)("div",l,[t[2]||(t[2]=(0,d.Lk)("label",null,"Widget UUID:",-1)),(0,d.bo)((0,d.Lk)("input",{"onUpdate:modelValue":t[0]||(t[0]=e=>r.widgetUuid=e),type:"text",placeholder:"Enter widget UUID"},null,512),[[n.Jo,r.widgetUuid]]),(0,d.Lk)("button",{onClick:t[1]||(t[1]=(...e)=>u.applyConfiguration&&u.applyConfiguration(...e))},"Apply"),t[3]||(t[3]=(0,d.Lk)("div",{class:"code-block"},"docker exec orgo-php bin/console dbal:run-sql \"SELECT uuid, name FROM widget WHERE widget_type='newsletter' AND is_active=1 LIMIT 5\"",-1))]),((0,d.uX)(),(0,d.CE)("div",{id:"orgo-newsletter-widget-container",key:r.widgetKey,"data-orgo-newsletter-embed":"","data-widget-id":r.activeWidgetId||void 0},null,8,c))])])}i(44114);var r={name:"NewsletterWidgetTest",data(){return{widgetUuid:"",activeWidgetId:"",widgetKey:0}},created(){if(!window.location.hostname.includes("localhost")&&!window.location.hostname.includes("127.0.0.1"))return void this.$router.push("/");const e=localStorage.getItem("testNewsletterWidgetUuid");e&&(this.widgetUuid=e,this.activeWidgetId=e)},mounted(){this.$nextTick(()=>{this.loadWidgetScript()})},beforeUnmount(){const e=document.getElementById("newsletter-embed-script");e&&e.remove()},methods:{applyConfiguration(){this.widgetUuid&&(localStorage.setItem("testNewsletterWidgetUuid",this.widgetUuid),this.activeWidgetId=this.widgetUuid,this.widgetKey++,this.$nextTick(()=>this.loadWidgetScript()))},loadWidgetScript(){const e=document.getElementById("newsletter-embed-script");e&&e.remove();const t=document.createElement("script");t.id="newsletter-embed-script",t.src="/newsletter-embed.min.js",t.async=!0,document.body.appendChild(t)}}},u=i(66262);const g=(0,u.A)(r,[["render",a],["__scopeId","data-v-5ec1415c"]]);var w=g}}]);
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.