PageSourceSearch

https://characterhub.com/_nuxt/Btj9cO1w.js

js characterhub.com collected 2026-09-25 19:07:10 UTC 5,805 bytes, 1 lines download raw bytes

1import{f as le,w as z,b as ne,n as j,g as me,i as pe,o as l,D as v,y as M,u as t,a as C,j as n,B as ue,T as de,x as I,k as B,z as ce,e as w,c}from"./iJPA3RaR.js";import{S as fe,a as ye,b as ve}from"./CKcB76uL.js";import{S as we}from"./Ckg39W9P.js";import{S as ge}from"./zhoVymqv.js";import{s as Se}from"./DchZ0U6W.js";import{N as be,j as V,a as ke,b as _e,P as f,Q as m,d7 as x,ak as he,d8 as Te,aN as ze,$ as Ce,e1 as Ie,db as Be,i as De}from"./DQ705e-R.js";import{u as Ae}from"./BdBTRHkK.js";import{u as We}from"./BYBfqUFr.js";import"./F8yjHj1c.js";import"./DL8JkzU7.js";import"./zzWikPBg.js";import"./KBQXbw9s.js";import"./6CQLa_bQ.js";import"./mfXn30ww.js";import"./D1R34rGp.js";import"./BfMT2A7Z.js";import"./dIBqoQhQ.js";import"./DTlE9Ykc.js";import"./DS6iK35N.js";import"./SgL5JzYC.js";import"./CnXXaPgW.js";import"./DNkQUiQS.js";import"./yE55SOJZ.js";import"./BeBVxXbr.js";import"./BU2hOgUT.js";import"./V_DsrLxH.js";import"./B2r2zgr5.js";import"./CGJOZNtT.js";import"./BPrPUr3N.js";import"./Dp9JkpWP.js";import"./CVom5bh9.js";import"./xwlrA477.js";import"./DOEB1szz.js";import"./BHi9s6fO.js";import"./Qpx21Q3p.js";import"./CXhAlL-P.js";import"./BhMID7Og.js";import"./WS-sUHAF.js";import"./CE1edxPO.js";import"./DS2ImBUn.js";import"./DI-E2Ejz.js";import"./jng3_gcv.js";import"./pYDNvLKd.js";import"./C3_LBs6Z.js";import"./kg17UL9Y.js";import"./DYuLImmP.js";import"./CkrRtYgW.js";import"./CwHSOz_Q.js";import"./DZ8YoXfe.js";import"./13Q1Ctjd.js";import"./D-lcJE5B.js";import"./eQgexpGa.js";import"./BMd2hyyq.js";import"./CxwRQqkM.js";import"./DNRUxoJo.js";import"./C_S5QETU.js";import"./Bcae0ofm.js";import"./Dw-2kF5j.js";import"./unoqXWrM.js";import"./BJlYoyXj.js";import"./Ben7ND6K.js";import"./DnPCKati.js";import"./amTAWBQj.js";import"./DzvdLgRU.js";import"./DupLu0pB.js";import"./BXhipioy.js";import"./BvbZlAaI.js";import"./Df_MaiWu.js";import"./DCyFgjQc.js";try{let r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new r.Error().stack;o&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[o]="7f699a96-8187-46cc-b28b-2f482827bded",r._sentryDebugIdIdentifier="sentry-dbid-7f699a96-8187-46cc-b28b-2f482827bded")}catch{}const Ne={key:0,class:"lock-content"},Ee={class:"lock-username"},Pe={key:0,class:"loading-content position-absolute"},Le={key:1,class:"content visual-only"},Oe=le({__name:"world-customize-profile",setup(r){const{world:o,loading:H,loadStoryWorldBySlug:J,loadDraftWorldById:Y,sectionsCollapsed:F}=Se(),{loadEntityStylize:D,loadCharacterTemplate:A,loadTemplate:W,currentTemplate:p,customizeEntity:g,template:S,setLoadedEntityType:K}=be();K(V().name==="world-draft-stylize"?"worlddraft":"world");const{isSavedToast:Q,isCreatedToast:$,isTempApplied:G,user:X,updateProfileTryOnAnimation:N,updateProfileTryOnBgImage:Z}=ke(),{lockedByUsername:u,tryAcquire:ee,tryRelease:E}=Ae(),P=We("customizeLocked",()=>!1);z(u,e=>{P.value=!!e});const i=V(),b=_e(),{width:L}=ze(),k=w(!1),te=w({}),y=w(!1),oe=c(()=>!f(S.value)),ae=()=>{y.value=!1},se=()=>{y.value=!1},d=c(()=>i.name==="world-draft-stylize"),O=c(()=>{const e=(d.value?o.value?.author:o.value?.user)?.username,a=X.value?.username;return!!e&&e===a}),q=w(!1),R=async()=>{q.value=!0;const e=o.value?.slug;e?await b.replace({name:"world-details",params:{slug:e}}):await b.replace("/myhome")},ie=c(()=>Ce(o?.value,Ie)),re=c(()=>Object.keys(ie.value).length>0),_=async()=>{L.value<1185&&await x.close("end"),setTimeout(()=>{N({})},200)},U=async()=>{const e=m(i.query,"tempId");e&&await W(e)};return ne(async()=>{if(k.value=!0,N({}),Z({}),d.value){const{id:h}=i.params,T=h;if(await Y(T),!O.value){await R();return}await A(),await D(T,"worlddraft"),f(S.value)||await U()}else{const{slug:h}=i.params;if(await J(h),!O.value){await R();return}await A(),await D(String(o.value.id),"world"),f(S.value)||await U()}const e=d.value?i.params.id:String(o.value?.id);if(e&&await ee(d.value?"world_draft":"world",e,"customize"),o.value?.type==="socialspace"){b.replace({name:"world-details",params:{slug:o.value.slug}});return}const a=!!m(i.query,"tempId"),s=!f(m(g.value,"template_applied"));!a&&!s&&(await j(),y.value=!0),L.value<1185&&(await j(),setTimeout(()=>{x.open("customization-theme-menu")},150))}),z(p,()=>{f(p.value)||(te.value=he(p.value))}),me(()=>{E(),P.value=!1}),z(()=>i.query.tempId,async e=>{e&&await W(e)}),Te(async(e,a,s)=>{if(E(),k.value&&e.name==="missions"){k.value=!1;return}if(q.value){s(),_();return}Q.value||$.value||G.value?s():JSON.stringify(m(p.value,"data.theme"))!==JSON.stringify(m(g.value,"data.theme"))&&!m(i.query,"tempId")?await Be("Are you sure you want to leave? You may lose unsaved changes.")?(s(),_()):s(!1):(s(),_())}),(e,a)=>{const s=pe("ion-page");return l(),v(s,{id:"entire-page",class:ce(["page scrollable world-customize-profile-page position-relative",{"editor-locked":t(u)}])},{default:M(()=>[t(u)?(l(),C("div",Ne,[a[0]||(a[0]=n("i",{class:"ti-lock lock-icon"},null,-1)),n("p",Ee,"@"+ue(t(u)),1),a[1]||(a[1]=n("p",{class:"lock-message"},"is currently customizing this world",-1)),a[2]||(a[2]=n("p",{class:"lock-submessage"},"You'll be able to customize once they're done",-1))])):(l(),v(de,{key:1},{default:M(()=>[n("div",null,[t(H)?(l(),C("div",Pe,[I(we)])):t(o)?(l(),C("div",Le,[I(fe,{world:t(o),isdraft:t(d)},null,8,["world","isdraft"]),t(re)?(l(),v(ye,{key:0,class:"my-3","sections-collapsed":t(F)},null,8,["sections-collapsed"])):B("",!0),I(ve,{world:t(o)},null,8,["world"])])):B("",!0)])]),_:1}
1)),a[3]||(a[3]=n("div",{class:"mobile-only bottom-spacer"},null,-1)),t(u)?B("",!0):(l(),v(ge,{key:2,id:t(g)?.entity_id,"is-open":t(y),"is-switch":t(oe),customize:t(p),onClose:ae,onApplied:se},null,8,["id","is-open","is-switch","customize"]))]),_:1},8,["class"])}}}),Xt=De(Oe,[["__scopeId","data-v-852a7b4c"]]);export{Xt 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.