PageSourceSearch

https://linkgoods.com/_nuxt/dOtqM3mc.js

js linkgoods.com collected 2026-10-01 12:30:43 UTC 3,452 bytes, 8 lines download raw bytes

1import{u as N,D as $,l as w,_ as C}from"./mnQPy4vz.js";import{d as L,m as n,R as m,l as u,O as _,P as y,S as D,o as O,y as I,a as j,u as B,b as V,A as b,w as x,af as F,W as J,X as R,z as U,Y as W,aj as q}from"./CviiDajh.js";import{s as z}from"./Bylveadx.js";import{g as k}from"./D03Z2Oc9.js";import{T as H}from"./DKLTyR8-.js";import{u as K}from"./tDt3I5Gx.js";import{u as X}from"./R8gwoCGb.js";import{S as Y}from"./DMiIHM_2.js";import{t as G}from"./BItf-XDE.js";import"./BPRckB8u.js";import"./DUx0A_vh.js";import"./BKFccA2a.js";import"./DFzQgk-S.js";import"./BhukTy_j.js";import"./CgUFquv8.js";import"./DWLSblfW.js";import"./0VvUL2KS.js";import"./D_qxKlPu.js";import"./DoTV46hG.js";import"./n_Y93z3S.js";import"./wK8xCalE.js";import"./C_wD075y.js";import"./BiwCTvhz.js";import"./CVy8o5_D.js";import"./D5OSTz6_.js";import"./DV9NmtZY.js";import"./CMgxqWBC.js";import"./CSgfP99B.js";import"./CHzdLp_Z.js";import"./BV-pbJGL.js";import"./CNQdOD2U.js";import"./DLRUA2Zz.js";import"./5ct_GBMb.js";import"./S1Udc19Z.js";import"./DGXInSsl.js";import"./C8QhJ0wt.js";import"./DvO3TXqU.js";import"./6nNJasjK.js";import"./dh9ZTwV2.js";import"./DzNyxq4h.js";import"./sT5B8Bhf.js";import"./D19cja5B.js";const Q={class:"index cms-main-content"},Z={class:"text-center text-gray90"},tt={class:"fs-5 font-weight-medium"},et={class:"fs-6 font-weight-light"},ot={class:"d-flex flex-wrap justify-center mt-10 ma-n5"};function st(r,e,f,o,h,g){const l=D("ThemeSection");return O(),L("div",Q,[n("div",Z,[n("div",tt,m(r.$t("不知道怎麼開始嗎?")),1),n("div",et,m(r.$t("快速選擇喜歡的設計範本,並輕鬆客製化成自己喜歡的風格")),1)]),u(l,{themeId:o.themeId,"onUpdate:themeId":e[0]||(e[0]=t=>o.themeId=t),userTags:o.userTags},null,8,["themeId","userTags"]),n("div",ot,[u(y,{class:"ma-5 min-width-70",rounded:"pill",variant:"outlined",color:"btn-default",to:r.$localePath("/box/setting/visual"),onClick:e[1]||(e[1]=t=>o.submit(!0))},{default:_(()=>[I(m(r.$t("略過選範本,直接設定")),1)]),_:1},8,["to"]),u(y,{class:"ma-5 min-width-70",rounded:"pill",variant:"flat",color:"btn-default",disabled:o.loading,onClick:e[2]||(e[2]=t=>o.submit(!1))},{default:_(()=>[I(m(r.$t("下一步,開始設定連結內容")),1)]),_:1},8,["disabled"])])])}const c=JSON.parse(JSON.stringify(Y[0])),rt={name:"Index",components:{ThemeSection:H},setup(){const r=B(),e=W(z),f=V(),o=N(),h=U(()=>o.me?.tags||[]),{restore:g,updateTheme:l}=X(),t=b(Object.assign({},$)),v=U({get(){return t.value.themeId||"21"},set(s){const i=w.find(a=>a.id===s);i&&function(){t.value=C({},t.value,{themeId:i.id,...i.setting})}()}});x(t,s=>{l(s)});function S(){g({user:c.user,theme:t.value,productList:c.productList,productSortStr:c.productSortStr})}const A=q();x(A,s=>{s&&S()}),F(()=>{v.value="21",S()});const{mutate:P}=J(R`
2      mutation UserUpdate($template: String) {
3        userUpdate(template: $template) {
4          id
5          status
6        }
7      }
8    `),d=b(!1);async function E(s=!1){d.value=!0;try{const i=s?{themeSelected:!0}:{themeSelected:!0,theme:t.value};if(!s){const p=w.find(M=>M.id===t.value?.themeId);p&&G({themeId:p.id,...p.setting})}const a={template:JSON.stringify(i)},{errors:T}=await P(a);T?e(k(T)):(await o.fetchMe({fetchPolicy:"network-only"}),K().fetchTask(),f.push(r("/box/setting/link")))}catch(i){const a=k(i);e(a)}finally{d.value=!1}}return{currentTheme:t,userTags:h,themeId:v,loading:d,submit:E}}},Ht=j(rt,[["render",st]]);export{Ht 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.