1import{b as p,a as t,t as o,d as _,n as h,o as d,j as V,c as C,w as f,f as b,u as e,l as k,e as r,h as j,F as B,r as M,g as X}from"./app-BVorPlIM.js";import{C as F}from"./ClientLayout-BRTYLkqJ.js";import{u as z}from"./usePlanFeatures-3tx8jpZL.js";import{u as $}from"./useTranslations-Y5761FWH.js";/* empty css */import"./LanguageSwitcher-CrtwdBTZ.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const H={class:"flex-1 min-w-0"},L={class:"text-sm font-medium text-gray-900"},T={class:"text-sm text-gray-500 mt-0.5"},S={key:0,class:"text-xs text-amber-700 mt-2 flex items-start gap-1.5"},A={class:"flex-shrink-0 pt-0.5"},N=["aria-checked","disabled"],u={__name:"ToggleRow",props:{modelValue:{type:Boolean,required:!0},label:{type:String,required:!0},description:{type:String,default:""},warning:{type:String,default:null},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(l,{emit:c}){const s=l,x=c,g=()=>{s.disabled||x("update:modelValue",!s.modelValue)};return(y,n)=>(d(),p("div",{class:h(["px-6 py-5 flex items-start gap-4",l.disabled?"opacity-60":""])},[t("div",H,[t("p",L,o(l.label),1),t("p",T,o(l.description),1),l.warning?(d(),p("p",S,[n[0]||(n[0]=t("svg",{class:"h-4 w-4 flex-shrink-0 mt-0.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})],-1)),t("span",null,o(l.warning),1)])):_("",!0)]),t("div",A,[t("button",{type:"button",role:"switch","aria-checked":l.modelValue,disabled:l.disabled,onClick:g,class:h([l.modelValue?"bg-blue-600":"bg-gray-200",l.disabled?"cursor-not-allowed":"cursor-pointer","relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"])},[t("span",{class:h([l.modelValue?"translate-x-6":"translate-x-1","inline-block h-4 w-4 transform rounded-full bg-white shadow transition-transform"])},null,2)],10,N)])],2))}},U={class:"mb-6"},q={class:"text-2xl font-bold text-gray-900 mt-2"},D={class:"text-sm text-gray-500 mt-1"},E={key:0,class:"mb-6 rounded-lg bg-gradient-to-r from-blue-50 to-indigo-50 border border-blue-200 p-4 flex items-start gap-4"},G={class:"flex-1"},O={class:"text-sm font-medium text-blue-900"},I={class:"text-xs text-blue-700 mt-0.5"},P={key:1,class:"mb-4 rounded-md bg-green-50 border border-green-200 p-4"},R={class:"text-sm text-green-700"},Z={class:"bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden"},J={class:"px-6 py-5 border-b border-gray-100"},K={class:"flex items-start gap-3"},Q={class:"text-lg font-semibold text-gray-900"},W={class:"text-sm text-gray-500 mt-0.5"},Y={class:"divide-y divide-gray-100"},tt={class:"px-6 py-3 bg-gray-50 border-t border-gray-100"},et={href:"https://developers.google.com/tag-platform/security/guides/consent",target:"_blank",rel:"noopener noreferrer",class:"text-xs text-blue-600 hover:text-blue-800 inline-flex items-center gap-1"},st={class:"bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden"},ot={class:"px-6 py-5 border-b border-gray-100"},it={class:"flex items-start gap-3"},nt={class:"text-lg font-semibold text-gray-900"},lt={class:"text-sm text-gray-500 mt-0.5"},at={class:"divide-y divide-gray-100"},rt={class:"px-6 py-3 bg-gray-50 border-t border-gray-100"},dt={href:"https://learn.microsoft.com/en-us/uet/uet-consent-mode",target:"_blank",rel:"noopener noreferrer",class:"text-xs text-blue-600 hover:text-blue-800 inline-flex items-center gap-1"},ct={class:"flex items-center justify-end gap-3"},gt={key:0,class:"text-sm text-gray-500"},pt=["disabled"],mt={key:0},bt={key:1},ut={class:"mt-6 bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden"},_t={class:"px-6 py-5 border-b border-gray-100"},xt={class:"flex items-center gap-3"},ht={class:"text-lg font-semibold text-gray-900"},ft={class:"text-sm text-gray-500 mt-0.5"},yt={class:"px-6 py-5"},kt={class:"text-sm text-gray-500 mb-4"},wt={class:"text-sm font-semibold text-gray-900 mt-5 mb-2"},vt={class:"overflow-x-auto"},Vt={class:"min-w-full text-sm border border-gray-200 rounded-lg overflow-hidden"},Ct={class:"bg-gray-50"},jt={class:"px-3 py-2 text-left text-xs font-semibold text-gray-700"},Bt={class:"px-3 py-2 text-left text-xs font-semibold text-gray-700"},Mt={class:"px-3 py-2 text-left text-xs font-semibold text-gray-700"},Xt={class:"px-3 py-2 text-left text-xs font-semibold text-gray-700"},Ft={class:"divide-y divide-gray-100"},zt={class:"px-3 py-2"},$t={class:"text-xs bg-gray-100 rounded px-1.5 py-0.5"},Ht={class:"px-3 py-2 text-gray-700"},Lt={class:"px-3 py-2 text-gray-500"},Tt={class:"px-3 py-2 text-xs text-gray-500"},St={class:"text-sm font-semibold text-gray-900 mt-6 mb-2"},At={class:"text-xs text-gray-500 mb-1"},Nt={class:"text-xs text-gray-500 mb-1"},Ut={class:"text-xs text-gray-500 mb-1"},qt={class:"mt-5 rounded-lg bg-blue-50 border border-blue-200 p-3"},Dt={class:"text-xs text-blue-900"},Et={class:"mt-3 rounded-lg bg-amber-50 border border-amber-200 p-3"},Gt={class:"text-xs text-amber-900"},Qt={__name:"Show",props:{domain:{type:Object,required:!0},integrations:{type:Object,required:!0},planFeatures:{type:Object,required:!0}},setup(l){const c=l,{t:s}=$(),{isBasic:x,canConfigureIntegrations:g,upgradeUrl:y}=z(c.planFeatures),n=V({gcm_enabled:c.integrations.gcm_enabled,gcm_allow_tags_before_consent:c.integrations.gcm_allow_tags_before_consent,gcm_debug_mode:c.integrations.gcm_debug_mode,msuet_enabled:c.integrations.msuet_enabled,clarity_consent_api_enabled:c.integrations.clarity_consent_api_enabled}),w=X(()=>["necessary","functional","analytics","marketing","other"].map(m=>({value:m,label:s(`integrations.script_blocking.categories.${m}.label`),usage:s(`integrations.script_blocking.categories.${m}.usage`),optout:s(m==="necessary"?"integrations.script_blocking.optout_no":"integrations.script_blocking.optout_yes")}))),v=()=>{n.put(`/domains/${c.domain.slug}/integrations`,{preserveScroll:!0})};return(m,i)=>(d(),C(F,null,{default:f(()=>[t("div",U,[b(e(k),{href:`/domains/${l.domain.slug}`,class:"text-sm text-gray-500 hover:text-gray-700"},{default:f(()=>[r(" â Zurück zu "+o(l.domain.display_name||l.domain.hostname),1)]),_:1},8,["href"]),t("h1",q,o(e(s)("integrations.title")),1),t("p",D,o(l.domain.hostname),1)]),e(x)?(d(),p("div",E,[i[5]||(i[5]=t("div",{class:"flex-shrink-0 mt-0.5"},[t("svg",{class:"h-5 w-5 text-blue-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})])],-1)),t("div",G,[t("p",O,o(e(s)("integrations.pro_lock.title")),1),t("p",I,o(e(s)("integrations.pro_lock.description")),1)]),b(e(k),{href:e(y),class:"text-sm font-semibold text-blue-600 hover:text-blue-800 whitespace-nowrap"},{default:f(()=>[r(o(e(s)("integrations.pro_lock.cta"))+" â ",1)]),_:1},8,["href"])])):_("",!0),m.$page.props.flash?.success?(d(),p("div",P,[t("p",R,o(m.$page.props.flash.success),1)])):_("",!0),t("form",{onSubmit:j(v,["prevent"]),class:"space-y-6"},[t("section",Z,[t("header",J,[t("div",K,[i[6]||(i[6]=t("div",{class:"flex-shrink-0 mt-0.5"},[t("svg",{class:"h-6 w-6 text-blue-600",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},[t("path",{fill:"#FFC107",d:"M43.611 20.083H42V20H24v8h11.303c-1.649 4.657-6.08 8-11.303 8c-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4C12.955 4 4 12.955 4 24s8.955 20 20 20s20-8.955 20-20c0-1.341-.138-2.65-.389-3.917z"}),t("path",{fill:"#FF3D00",d:"m6.306 14.691l6.571 4.819C14.655 15.108 18.961 12 24
112c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4C16.318 4 9.656 8.337 6.306 14.691z"}),t("path",{fill:"#4CAF50",d:"M24 44c5.166 0 9.86-1.977 13.409-5.192l-6.19-5.238A11.91 11.91 0 0 1 24 36c-5.202 0-9.619-3.317-11.283-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44z"}),t("path",{fill:"#1976D2",d:"M43.611 20.083H42V20H24v8h11.303a12.04 12.04 0 0 1-4.087 5.571l.003-.002l6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917z"})])],-1)),t("div",null,[t("h2",Q,o(e(s)("integrations.gcm.title")),1),t("p",W,o(e(s)("integrations.gcm.subtitle")),1)])])]),t("div",Y,[b(u,{label:e(s)("integrations.gcm.support_label"),description:e(s)("integrations.gcm.support_description"),modelValue:e(n).gcm_enabled,"onUpdate:modelValue":i[0]||(i[0]=a=>e(n).gcm_enabled=a),disabled:!e(g)},null,8,["label","description","modelValue","disabled"]),b(u,{label:e(s)("integrations.gcm.allow_before_label"),description:e(s)("integrations.gcm.allow_before_description"),modelValue:e(n).gcm_allow_tags_before_consent,"onUpdate:modelValue":i[1]||(i[1]=a=>e(n).gcm_allow_tags_before_consent=a),disabled:!e(g)||!e(n).gcm_enabled,warning:e(n).gcm_allow_tags_before_consent?e(s)("integrations.gcm.allow_before_warning"):null},null,8,["label","description","modelValue","disabled","warning"]),b(u,{label:e(s)("integrations.gcm.debug_label"),description:e(s)("integrations.gcm.debug_description"),modelValue:e(n).gcm_debug_mode,"onUpdate:modelValue":i[2]||(i[2]=a=>e(n).gcm_debug_mode=a),disabled:!e(g)||!e(n).gcm_enabled},null,8,["label","description","modelValue","disabled"])]),t("footer",tt,[t("a",et,[r(o(e(s)("integrations.gcm.docs_link"))+" ",1),i[7]||(i[7]=t("svg",{class:"h-3 w-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})],-1))])])]),t("section",st,[t("header",ot,[t("div",it,[i[8]||(i[8]=t("div",{class:"flex-shrink-0 mt-0.5"},[t("svg",{class:"h-6 w-6",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},[t("path",{fill:"#F25022",d:"M6 6h18v18H6z"}),t("path",{fill:"#7FBA00",d:"M24 6h18v18H24z"}),t("path",{fill:"#00A4EF",d:"M6 24h18v18H6z"}),t("path",{fill:"#FFB900",d:"M24 24h18v18H24z"})])],-1)),t("div",null,[t("h2",nt,o(e(s)("integrations.microsoft.title")),1),t("p",lt,o(e(s)("integrations.microsoft.subtitle")),1)])])]),t("div",at,[b(u,{label:e(s)("integrations.microsoft.uet_label"),description:e(s)("integrations.microsoft.uet_description"),modelValue:e(n).msuet_enabled,"onUpdate:modelValue":i[3]||(i[3]=a=>e(n).msuet_enabled=a),disabled:!e(g)},null,8,["label","description","modelValue","disabled"]),b(u,{label:e(s)("integrations.microsoft.clarity_label"),description:e(s)("integrations.microsoft.clarity_description"),modelValue:e(n).clarity_consent_api_enabled,"onUpdate:modelValue":i[4]||(i[4]=a=>e(n).clarity_consent_api_enabled=a),disabled:!e(g)},null,8,["label","description","modelValue","disabled"])]),t("footer",rt,[t("a",dt,[r(o(e(s)("integrations.microsoft.docs_link"))+" ",1),i[9]||(i[9]=t("svg",{class:"h-3 w-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})],-1))])])]),t("div",ct,[e(g)?_("",!0):(d(),p("p",gt,o(e(s)("integrations.pro_lock.save_disabled")),1)),t("button",{type:"submit",disabled:e(n).processing||!e(g),class:"rounded-lg bg-blue-600 px-6 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed transition-colors"},[e(n).processing?(d(),p("span",mt,o(e(s)("integrations.saving")),1)):(d(),p("span",bt,o(e(s)("integrations.save")),1))],8,pt)])],32),t("section",ut,[t("header",_t,[t("div",xt,[i[10]||(i[10]=t("span",{class:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-xl bg-orange-50"},[t("svg",{class:"h-5 w-5 text-orange-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})])],-1)),t("div",null,[t("h2",ht,o(e(s)("integrations.script_blocking.title")),1),t("p",ft,o(e(s)("integrations.script_blocking.subtitle")),1)])])]),t("div",yt,[t("p",kt,[r(o(e(s)("integrations.script_blocking.intro_1"))+" ",1),i[11]||(i[11]=t("code",{class:"text-xs bg-gray-100 rounded px-1 py-0.5"},'type="text/javascript"',-1)),r(" "+o(e(s)("integrations.script_blocking.intro_2"))+" ",1),i[12]||(i[12]=t("code",{class:"text-xs bg-gray-100 rounded px-1 py-0.5"},'type="text/plain"',-1)),r(" "+o(e(s)("integrations.script_blocking.intro_3"))+" ",1),i[13]||(i[13]=t("code",{class:"text-xs bg-gray-100 rounded px-1 py-0.5"},'data-cookie-category="â¦"',-1)),r(". "+o(e(s)("integrations.script_blocking.intro_4")),1)]),t("h4",wt,o(e(s)("integrations.script_blocking.categories_title")),1),t("div",vt,[t("table",Vt,[t("thead",Ct,[t("tr",null,[t("th",jt,o(e(s)("integrations.script_blocking.th_value")),1),t("th",Bt,o(e(s)("integrations.script_blocking.th_display")),1),t("th",Mt,o(e(s)("integrations.script_blocking.th_usage")),1),t("th",Xt,o(e(s)("integrations.script_blocking.th_optout")),1)])]),t("tbody",Ft,[(d(!0),p(B,null,M(w.value,a=>(d(),p("tr",{key:a.value},[t("td",zt,[t("code",$t,o(a.value),1)]),t("td",Ht,o(a.label),1),t("td",Lt,o(a.usage),1),t("td",Tt,o(a.optout),1)]))),128))])])]),t("h4",
1St,o(e(s)("integrations.script_blocking.examples_title")),1),t("p",At,o(e(s)("integrations.script_blocking.example_external")),1),i[17]||(i[17]=t("div",{class:"bg-gray-900 rounded-lg p-3 mb-3"},[t("code",{class:"text-xs text-green-400 break-all whitespace-pre-wrap"},'<script type="text/plain" data-cookie-category="analytics" src="https://plausible.io/js/script.js" data-domain="example.ch"><\/script>')],-1)),t("p",Nt,o(e(s)("integrations.script_blocking.example_inline")),1),i[18]||(i[18]=t("div",{class:"bg-gray-900 rounded-lg p-3 mb-3"},[t("code",{class:"text-xs text-green-400 break-all whitespace-pre-wrap"},`<script type="text/plain" data-cookie-category="marketing">
vendor: 328 bytes, line 1
1 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','
1GTM-XXXXXX
vendor: 4 bytes, line 1
1');
1<\/script>`)],-1)),t("p",Ut,o(e(s)("integrations.script_blocking.example_iframe")),1),i[19]||(i[19]=t("div",{class:"bg-gray-900 rounded-lg p-3"},[t("code",{class:"text-xs text-green-400 break-all whitespace-pre-wrap"},'<iframe data-cookie-category="marketing" src="https://player.example.com/embed/123"></iframe>')],-1)),t("div",qt,[t("p",Dt,[t("strong",null,o(e(s)("integrations.script_blocking.hint_label")),1),r(" "+o(e(s)("integrations.script_blocking.hint_1"))+" ",1),i[14]||(i[14]=t("code",{class:"text-xs bg-blue-100 rounded px-1"},"data-cookie-category",-1)),r(". "+o(e(s)("integrations.script_blocking.hint_2")),1)])]),t("div",Et,[t("p",Gt,[t("strong",null,o(e(s)("integrations.script_blocking.gtm_label")),1),r(" "+o(e(s)("integrations.script_blocking.gtm_1"))+" ",1),i[15]||(i[15]=t("code",{class:"text-xs bg-amber-100 rounded px-1"},"'GTM-XXXXXX'",-1)),r(", "+o(e(s)("integrations.script_blocking.gtm_2"))+" ",1),i[16]||(i[16]=t("code",{class:"text-xs bg-amber-100 rounded px-1"},"GTM-XXXXXX",-1)),r(". "+o(e(s)("integrations.script_blocking.gtm_3")),1)])])])])]),_:1}))}};export{Qt 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.