import{_ as g}from"./index-BwK8zDrs.js";import{B as h,C as k,H as D,D as V,h as B}from"./element-plus-z3MwpXC9.js";import{e as E,f as S}from"./website-1s5vKmBb.js";import{d as c,r as I,Z as M,f as N,an as F,o as p,c as R,V as r,M as s,a as i,u as a,S as m,O as H,L}from"./@vue-TMcuEboY.js";import"./index-DXEGVToZ.js";import"./nprogress-Cgf5DU8x.js";import"./balanced-match-mNcR6oh4.js";import"./vue-router-D4MxfuQi.js";import"./pinia-ebUeA1L2.js";import"./axios-C-n2IhIP.js";import"./lodash-BtPWuHkK.js";import"./@vueuse-BQYVjZ5N.js";import"./css-color-function-rJvg8h-6.js";import"./color-B0v57BL7.js";import"./clone-CuIhj1wH.js";import"./color-convert-BGgJB5UM.js";import"./color-name-BQ5IbGbl.js";import"./color-string-BhgG7-8u.js";import"./ms-CzQ2E3wO.js";import"./@element-plus-DRBc1Xzw.js";import"./vue-clipboard3-8CNoFg4V.js";import"./clipboard-Dch_ozqB.js";import"./echarts-BR_QmBtV.js";import"./tslib-BDyQ-Jie.js";import"./zrender-B-CeXLwU.js";import"./highlight.js-D5uP1KGk.js";import"./@highlightjs-KJi31KWJ.js";import"./lodash-es-R-kYiKr_.js";import"./async-validator-DKvM95Vc.js";import"./dayjs-CMfar2R3.js";import"./@ctrl-r5W6hzzQ.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@popperjs-D9SI2xQl.js";const O={class:"website-statistics"},T={class:"flex flex-col"},U={class:"w-80"},W=c({name:"webInformation"}),Ct=c({...W,setup(Z){const l=I(),o=M({clarity_code:""}),_={},n=async()=>{const e=await E();for(const t in o)o[t]=e[t]},d=async()=>{var e;await((e=l.value)==null?void 0:e.validate()),await S(o),n()};return N(()=>{n()}),(e,t)=>{const f=h,u=k,y=D,w=V,b=B,v=g,x=F("perms");return p(),R("div",O,[r(w,{ref_key:"formRef",ref:l,rules:_,class:"ls-form",model:a(o),"scroll-to-error":"","label-width":"120px"},{default:s(()=>[r(y,{shadow:"never",class:"!border-none"},{default:s(()=>[t[2]||(t[2]=i("div",{class:"text-xl font-medium mb-[20px]"},"Clarity配置",-1)),r(u,{label:"应用ID",prop:"clarity_code"},{default:s(()=>[i("div",T,[i("div",U,[r(f,{modelValue:a(o).clarity_code,"onUpdate:modelValue":t[0]||(t[0]=C=>a(o).clarity_code=C),modelModifiers:{trim:!0},placeholder:"请填写应用ID",maxlength:"10","show-word-limit":""},null,8,["modelValue"])]),t[1]||(t[1]=i("div",{class:"form-tips"},[m(" 请前往"),i("a",{class:"text-primary",href:"https://clarity.microsoft.com",target:"_blank"}," 《Clarity官网》 "),m(" 创建Clarity统计应用 ")],-1))])]),_:1})]),_:1})]),_:1},8,["model"]),H((p(),L(v,null,{default:s(()=>[r(b,{type:"primary",onClick:d},{default:s(()=>t[3]||(t[3]=[m("保存")])),_:1})]),_:1})),[[x,["setting.web.web_setting/setWebsite"]]])])}}});export{Ct as default};
