PageSourceSearch

http://smartclub.ai/assets/system-CJkbVSFT.js

js smartclub.ai collected 2026-10-05 15:08:22 UTC 3,251 bytes, 2 lines download raw bytes

1import{R as x,d as C,w as D,E as c,f as P,aG as L,x as T,j as f,l as d,H as l,bj as j,A as u,a5 as m,c as _,y as A,aH as v,F as E,p as M,P as N}from"./vendor-vuetify-CZqx1F5r.js";import{c as Q,B as $,Q as w,A as h,j as q,k as K,M as k}from"./index-B5oZ1XjT.js";import{u as R}from"./useMutation-DYuUD3iS.js";import{_ as H}from"./PageWrapper.vue_vue_type_style_index_0_lang-CZDEegZZ.js";import{_ as Y}from"./SecondPageWrapper.vue_vue_type_style_index_0_lang-BcC3Ki0Z.js";import{b as V}from"./route-block-BIO7NrfO.js";import"./vendor-sentry-CdlvO8A5.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="29ee2504-faff-49c6-bd12-b30d86f0d8d9",e._sentryDebugIdIdentifier="sentry-dbid-29ee2504-faff-49c6-bd12-b30d86f0d8d9")}catch{}function G(){const e=Q();return $({queryKey:[w.publicPageConfig,x(()=>e.clientName)],queryFn:()=>h.client.getPublicPageConfig()})}const O={class:"d-flex align-center ga-4 mb-2"},z={class:"form-actions d-flex justify-end mt-4"},J=C({__name:"PublicPageForm",setup(e){const n=q(),p=K(),{data:S,isFetching:b}=G(),s=N({description:"",links:[]});D(S,t=>{s.description=t?.description??"",s.links=(t?.links??[]).map(a=>({...a}))},{immediate:!0});const{mutate:F,isPending:g}=R({mutationFn:()=>h.client.patchPublicPageConfig({description:s.description.trim()||null,links:s.links.filter(t=>t.label.trim()||t.url.trim())}),onSuccess:()=>{p.invalidateQueries({queryKey:[w.publicPageConfig]}),n.success("Saved")}}),o=x(()=>b.value||g.value);function I(){s.links.push({label:"",url:""})}function U(t){s.links.splice(t,1)}function B(){F()}return(t,a)=>(c(),P(L,{class:"base-form",onSubmit:T(B,["prevent"])},{default:f(()=>[a[3]||(a[3]=d("h3",{class:"tx-subtitle-2 mb-2"},"Agency presentation",-1)),l(j,{modelValue:s.description,"onUpdate:modelValue":a[0]||(a[0]=i=>s.description=i),label:"Description",rows:"4","auto-grow":"",disabled:o.value},null,8,["modelValue","disabled"]),d("div",O,[a[1]||(a[1]=d("h3",{class:"tx-subtitle-2"},"Links",-1)),l(m,{variant:"text",color:"primary",density:"compact",icon:u(k).plus,disabled:o.value,onClick:I},null,8,["icon","disabled"])]),(c(!0),_(E,null,A(s.links,(i,y)=>(c(),_("div",{key:y,class:"d-flex align-center ga-4"},[l(v,{modelValue:i.label,"onUpdate:modelValue":r=>i.label=r,label:"Label","hide-details":"",disabled:o.value},null,8,["modelValue","onUpdate:modelValue","disabled"]),l(v,{modelValue:i.url,"onUpdate:modelValue":r=>i.url=r,class:"flex-grow-1",label:"URL","hide-details":"",disabled:o.value},null,8,["modelValue","onUpdate:modelValue","disabled"]),l(m,{icon:u(k).close,color:"primary",variant:"text",density:"compact",disabled:o.value,onClick:r=>U(y)},null,8,["icon","disabled","onClick"])]))),128)),d("div",z,[l(m,{type:"submit",color:"primary",loading:u(g),disabled:u(b)},{default:f(()=>[...a[2]||(a[2]=[M("Save",-1)])]),_:1},8,["loading","disabled"])])]),_:1}))}}),W={class:"d-flex justify-center"},X=C({__name:"system",setup(e){return(n,p)=>(c(),P(H,null,{default:f(()=>[l(Y,null,{default:f(()=>[d("div",W,[l(J)])]),_:1})]),_:1}))}});typeof V=="function"&&V(X);export{X as default};
2//# sourceMappingURL=system-CJkbVSFT.js.map

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.