PageSourceSearch

https://vket.com/_nuxt/B-au0TIF.js

js vket.com collected 2026-09-24 18:42:14 UTC 7,153 bytes, 2 lines download raw bytes

1import{u as j,_ as P,H as R}from"./CSlZ2MvF.js";import{d as Y,u as S,r as h,c as z,o as U,w as g,k as m,t as y,e as c,g as D,f as K,i as W,Y as Z,z as q,aM as E,aO as G,aN as Q,O as J,Q as k,bZ as f,W as X,T as tt,a as et,F as at,aE as H,R as x}from"./CU4fuhWu.js";import{a as ot,i as it,u as nt}from"./DICY4c9b.js";import{_ as st}from"./DfR9mtzb.js";import{H as lt}from"./B-TMqBVr.js";import{u as rt}from"./BKYW02G2.js";import{a as ct,u as dt}from"./DdjfzDTE.js";import{g as ut}from"./DUXzUGrg.js";import"./CIprNgse.js";import"./BIhiHMH8.js";import"./7NUP23WA.js";import"./CXibsHtB.js";import"./D6BEHNqf.js";import"./CyBBg-Zt.js";import"./BAisoB8R.js";import"./CM_qUa10.js";import"./BJj0MnvA.js";import"./CnNXTpuQ.js";import"./DIS6Ninf.js";import"./CzPeTg-g.js";import"./q40zvCRV.js";import"./BF3cRCmc.js";import"./C7L0SZyV.js";import"./CG81z52O.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"31c5c0c572a1991c8c8a93453bd4206e2dc3fc50"};var a=new s.Error().stack;a&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[a]="4a6e99da-da64-4d5d-a7fc-fffb83ec9a1e",s._sentryDebugIdIdentifier="sentry-dbid-4a6e99da-da64-4d5d-a7fc-fffb83ec9a1e")}catch{}})();
1const ft={class:"button-container"},pt={class:"text"},mt={class:"button"},C=Y({__name:"HoModalMyNotificationDelete",emits:["save"],setup(s,{expose:a,emit:o}){const _=o,l=S(),r=h();return a({open:()=>r.value?.open(),close:()=>r.value?.close()}),(d,n)=>{const u=st;return U(),z(lt,{ref_key:"dialog",ref:r,class:"ho-modal-my-notification-save"},{open:g(()=>[...n[2]||(n[2]=[])]),header:g(()=>[K(y(c(l).t("title")),1)]),body:g(()=>[m("p",null,y(c(l).t("description")),1),m("div",ft,[D(u,{class:"button -yes",visual:"alert",onClick:n[0]||(n[0]=p=>_("save"))},{default:g(()=>[m("p",pt,y(c(l).t("button.yes")),1)]),_:1}),m("div",mt,[m("p",{class:"-cancel",onClick:n[1]||(n[1]=p=>c(r)?.close())},y(c(l).t("button.cancel")),1)])])]),_:1},512)}}});function F(s){const a=s;a.__i18n=a.__i18n||[],a.__i18n.push({locale:"",resource:{ja:{title:{t:0,b:{t:2,i:[{t:3}],s:"ユーザーイベントを削除します。"}},description:{t:0,b:{t:2,i:[{t:3}],s:"選択したユーザーイベントを削除しますが、よろしいですか?"}},button:{yes:{t:0,b:{t:2,i:[{t:3}],s:"削除"}},cancel:{t:0,b:{t:2,i:[{t:3}],s:"キャンセル"}}}},en:{title:{t:0,b:{t:2,i:[{t:3}],s:"Delete User Event"}},description:{t:0,b:{t:2,i:[{t:3}],s:"Are you sure you want to delete the selected User Event?"}},button:{yes:{t:0,b:{t:2,i:[{t:3}],s:"Delete"}},cancel:{t:0,b:{t:2,i:[{t:3}],s:"Cancel"}}}}}})}typeof F=="function"&&F(C);const _t=Object.assign(W(C,[["__scopeId","data-v-9dde8cdf"]]),{__name:"HoModalMyNotificationDelete"}),bt=Y({__name:"index",setup(s){const a=S(),o=ot(),_=Z(),l=rt(),r=q(),d=j(),n=E(G,_.params.permalink),u=ct(n);x(nt,o),x(dt,u);const p=h(!1),T=h(),b=h(),A=E(Q,_.params.id);J(async()=>Promise.all([o.fetchHubNotification(n,A),o.fetchWorlds(n),o.fetchHubTags({isOfficial:!1}),u.fetchEventIfNeeded(n)]),"$TGZLFLN3Uw").then(({data:t,error:i})=>{if(i.value)return console.error(i.value),k({statusCode:i.value.statusCode,statusMessage:"Failed to load notification edit data",fatal:!0,cause:i.value});if(t.value){const[v,M,w,V]=t.value;u.setTargetEvent(V),o.setState({worldList:M.worlds,hubTagList:w.hubTags,hubTagPagination:w.pagination,hubNotificationDetail:v.hubNotification});const e=v.hubNotification,N={title:e.title,content:e.content||"",linkUrl:e.linkUrl||"",publishAt:e.publishAt||"",startAt:e.startAt,endAt:e.endAt||"",displayDate:e.displayDate||"",locale:e.locale,category:e.category,worldId:e.world?.id||null,tags:e.hubTags?.map(L=>L.id)||[],defaultThumbnail:e.thumbnail.url||"",publishDateDate:e.publishAt?f("YYYY-MM-DD",e.publishAt):"",startDateDate:f("YYYY-MM-DD",e.startAt),startDateTime:f("HH:mm",e.startAt),endDateDate:e.endAt?f("YYYY-MM-DD",e.endAt):""};e.publishAt&&(N.publishDateTime=f("HH:mm",e.publishAt)),e.endAt&&(N.endDateTime=f("HH:mm",e.endAt)),o.notificationForm.setValues(N)}}).catch(t=>(console.error(t),k({statusCode:404,statusMessage:"Failed to initialize notification editor",fatal:!0,cause:t})));const O=async()=>{if(!o.notificationForm.meta.value.valid){l.addToast(a.t("form_invalid"),"error"),b.value?.open();return}await o.notificationForm.handleSubmit(async t=>{b.value?.close();try{const i={title:t.title,content:t.content,startAt:t.startAt,locale:t.locale,linkUrl:t.linkUrl||void 0,thumbnail:t.thumbnail||void 0,publishAt:t.publishAt,endAt:t.endAt,displayDate:t.displayDate||"",category:"user_event",worldId:t.worldId||void 0,"hubTags[]":t.tags||[]};await o.updateHubNotification(n,A,i),l.addToast(a.t("user_event_updated"),"success")}catch(i){console.error("Update failed:",i),l.addToast(a.t("user_event_update_failed"),"error")}})()},$=async()=>{if(!p.value){p.value=!0,T.value?.close();try{await o.deleteHubNotification(n,A),await H(r(`/mypage/event/${n}/my_notification`)),l.addToast(a.t("user_event_deleted"),"success")}catch(t){console.error("Delete failed:",t),l.addToast(a.t("user_event_delete_failed"),"error")}finally{p.value=!1}}},B=async()=>{const t=o.notificationForm.values.linkUrl;if(!t)return;if(await d.fetchOgp(t),!d.ogpDetail.value||!d.ogpDetail.value.image){l.addToast(a.t("ogp_fetch_failed"),"error");return}const i=ut(d.ogpDetail.value.image,"ogp-image.png");o.notificationForm.setValues({title:d.ogpDetail.value.title??"",thumbnail:i??void 0})};return X(()=>u.targetEvent.value,t=>{t&&(it(t)||H(r("/mypage")))},{immediate:!0}),tt({title:()=>a.t("title"),ogTitle:()=>a.t("title")}),(t,i)=>{const v=P;return U(),et(at,null,[D(v,{"is-edit":"",onSave:i[0]||(i[0]=M=>c(b)?.open()),onDelete:i[1]||(i[1]=M=>c(T)?.open()),onFetchOgp:B}),D(R,{ref_key:"saveDialog",ref:b,onSave:O},null,512),D(_t,{ref_key:"deleteDialog",ref:T,onSave:$},null,512)],64)}}});function I(s){const a=s;a.__i18n=a.__i18n||[],a.__i18n.push({locale:"",resource:{ja:{title:{t:0,b:{t:2,i:[{t:3}],s:"ユーザーイベント告知編集"}},user_event_updated:{t:0,b:{t:2,i:[{t:3}],s:"ユーザーイベント告知を更新しました"}},user_event_update_failed:{t:0,b:{t:2,i:[{t:3}],s:"ユーザーイベント告知の更新に失敗しました"}},user_event_deleted:{t:0,b:{t:2,i:[{t:3}],s:"ユーザーイベント告知を削除しました"}},user_event_delete_failed:{t:0,b:{t:2,i:[{t:3}],s:"ユーザーイベント告知の削除に失敗しました"}},form_invalid:{t:0,b:{t:2,i:[{t:3}],s:"フォームの入力内容に不備があります"}}},en:{title:{t:0,b:{t:2,i:[{t:3}],s:"Edit User Event Announcement"}},user_event_updated:{t:0,b:{t:2,i:[{t:3}],s:"User event announcement updated successfully!"}},user_event_update_failed:{t:0,b:{t:2,i:[{t:3}],s:"Failed to update user event announcement"}},user_event_deleted:{t:0,b:{t:2,i:[{t:3}],s:"User event announcement deleted successfully!"}},user_event_delete_failed:{t:0,b:{t:2,i:[{t:3}],s:"Failed to delete user event announcement"}},form_invalid:{t:0,b:{t:2,i:[{t:3}
1],s:"The form contains invalid input(s)"}}}}})}typeof I=="function"&&I(bt);export{bt as default};
2//# sourceMappingURL=B-au0TIF.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.