PageSourceSearch

https://sound-valley.net/_expo/static/js/web/admin-event-form-f0ed90448d2ec1e76c169aa5507ebbc9.js

js sound-valley.net collected 2026-10-02 02:03:34 UTC 57,243 bytes, 4 lines download raw bytes

1var _sentryDebugIds,_sentryDebugIdIdentifier;void 0===_sentryDebugIds&&(_sentryDebugIds={});try{var stack=(new Error).stack;stack&&(_sentryDebugIds[stack]="c3975f89-4818-4938-927d-0ecdecd1f34e",_sentryDebugIdIdentifier="sentry-dbid-c3975f89-4818-4938-927d-0ecdecd1f34e")}catch(e){}
2var SENTRY_RELEASE;SENTRY_RELEASE={name: "聲谷", version: "2.5.0"};
3__d(function(g,r,_i,_a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return P}});var t=r(d[0]),l=e(r(d[1])),a=e(r(d[2]));r(d[3]),r(d[4]),r(d[5]);var s=e(r(d[6])),n=e(r(d[7])),o=e(r(d[8])),i=e(r(d[9])),c=e(r(d[10])),u=e(r(d[11]));const x=Array.from({length:24},(e,t)=>String(t).padStart(2,'0')),p=Array.from({length:60},(e,t)=>String(t).padStart(2,'0')),b='\u6b64\u5ba4 The place (\u81fa\u5317\u5e02\u5927\u540c\u5340\u5357\u4eac\u897f\u8def239\u5df728\u865f3\u6a13)',f=6,h=1500,y=2500,_=12;function C(e){const t=(0,r(d[12]).parseIso)(e);return t?{datePart:(0,r(d[12]).formatDateKey)(t),hourPart:String(t.getHours()).padStart(2,'0'),minutePart:String(t.getMinutes()).padStart(2,'0')}:{datePart:'',hourPart:'09',minutePart:'00'}}function j(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const l=Date.parse(e),a=Date.parse(t);return Number.isFinite(l)&&Number.isFinite(a)&&l===a}function S(e,t,l){if(!e)return'';const[a,s,n]=e.split('-').map(Number);return new Date(a,s-1,n,Number(t),Number(l),0,0).toISOString()}function v(e,t){const l=(0,r(d[12]).parseIso)(e);if(!l)return t;const a=String(l.getMonth()+1).padStart(2,'0'),s=String(l.getDate()).padStart(2,'0'),n=String(l.getHours()).padStart(2,'0'),o=String(l.getMinutes()).padStart(2,'0');return`${l.getFullYear()}/${a}/${s} ${n}:${o}`}function N(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function T(e){const t=new Date(e.getFullYear(),e.getMonth(),1),l=new Date(e.getFullYear(),e.getMonth()+1,0),a=t.getDay(),s=l.getDate(),n=[];for(let e=a-1;e>=0;e-=1){const l=new Date(t);l.setDate(t.getDate()-(e+1)),n.push({date:l,inCurrentMonth:!1})}for(let t=1;t<=s;t+=1)n.push({date:new Date(e.getFullYear(),e.getMonth(),t),inCurrentMonth:!0});for(;n.length%7!=0;){const e=n[n.length-1]?.date??l,t=new Date(e);
3t.setDate(e.getDate()+1),n.push({date:t,inCurrentMonth:!1})}return n}function k(e){return'enrollment'===e?'enrollment':'home_recent'}function w({label:e,value:s,onChange:n,placeholder:o,required:i=!1,allowClear:u=!0}){const b=(0,r(d[13]).useThemeColors)(),f=(0,r(d[12]).parseIso)(s)??new Date,[h,y]=(0,t.useState)(!1),[_,j]=(0,t.useState)(f),[v,k]=(0,t.useState)(N(new Date(f.getFullYear(),f.getMonth(),1))),[w,A]=(0,t.useState)(()=>C(s));function P(e,t,l){A({datePart:e,hourPart:t,minutePart:l}),n(S(e,t,l))}(0,t.useEffect)(()=>{A(C(s));const e=(0,r(d[12]).parseIso)(s);e&&(j(e),k(N(new Date(e.getFullYear(),e.getMonth(),1))))},[s]);(0,t.useMemo)(()=>T(v),[v]);return(0,r(d[14]).jsxs)(r(d[14]).Fragment,{children:[(0,r(d[14]).jsxs)(c.default,{className:"text-sm mb-1",style:{color:b.textTitle},children:[e,i?' *':'']}),(0,r(d[14]).jsxs)(l.default,{className:"mb-3 rounded-xl p-3",style:{backgroundColor:b.bgCard},children:[(0,r(d[14]).jsxs)(l.default,{className:"flex-row items-center flex-wrap",style:{gap:10},children:[(0,r(d[14]).jsx)("input",{value:w.datePart,onChange:e=>P(e.currentTarget.value,w.hourPart,w.minutePart),type:"date","aria-label":e,style:{flex:1,minWidth:190,height:42,borderRadius:10,border:`1px solid ${b.cardBorder}`,backgroundColor:'#FFFFFF',color:b.textTitle,padding:'0 12px',fontSize:16}}),(0,r(d[14]).jsx)("select",{value:w.hourPart,onChange:e=>P(w.datePart,e.currentTarget.value,w.minutePart),"aria-label":`${e} \u5c0f\u6642`,style:{height:42,minWidth:84,borderRadius:10,border:`1px solid ${b.cardBorder}`,backgroundColor:'#FFFFFF',color:b.textTitle,padding:'0 12px',fontSize:16},children:x.map(e=>(0,r(d[14]).jsxs)("option",{value:e,children:[e," \u6642"]},e))}),(0,r(d[14]).jsx)("select",{value:w.minutePart,onChange:e=>P(w.datePart,w.hourPart,e.currentTarget.value),"aria-label":`${e} \u5206\u9418`,style:{height:42,minWidth:84,borderRadius:10,border:`1px solid ${b.cardBorder}`,backgroundColor:'#FFFFFF',color:b.textTitle,padding:'0 12px',fontSize:16},children:p.map(e=>(0,r(d[14]).jsxs)("option",{value:e,children:[e," \u5206"]},e))})]}),(0,r(d[14]).jsxs)(l.default,{className:"flex-row items-center justify-between mt-2",children:[(0,r(d[14]).jsx)(c.default,{className:"text-xs",style:{color:b.textSubtle},children:"\u76f4\u63a5\u9ede\u65e5\u671f\u958b\u6708\u66c6\uff0c\u518d\u9078\u6642\u9593\u3002"}),u&&!!s&&(0,r(d[14]).jsx)(a.default,{onPress:()=>P('',w.hourPart,w.minutePart),className:"px-2.5 py-1 rounded-full",style:{backgroundColor:b.bgWarm},accessibilityRole:"button",accessibilityLabel:`\u6e05\u9664${e}`,children:(0,r(d[14]).jsx)(c.default,{className:"text-xs",style:{color:b.textSubtle},children:"\u6e05\u9664"})})]})]}),!1]})}function A({label:e,value:a,onChange:s,placeholder:n,required:o=!1}){const i=(0,r(d[13]).useThemeColors)(),u=(0,r(d[12]).parseIso)(a?S(a,'00','00'):'')??new Date,[x,p]=(0,t.useState)(!1),[b,f]=(0,t.useState)(N(u)),[h,y]=(0,t.useState)(N(new Date(u.getFullYear(),u.getMonth(),1)));(0,t.useEffect)(()=>{if(!a)return;const e=(0,r(d[12]).parseIso)(S(a,'00','00'));e&&(f(N(e)),y(N(new Date(e.getFullYear(),e.getMonth(),1))))},[a]);(0,t.useMemo)(()=>T(h),[h]);return(0,r(d[14]).jsxs)(r(d[14]).Fragment,{children:[(0,r(d[14]).jsxs)(c.default,{className:"text-sm mb-1",style:{color:i.textTitle},children:[e,o?' *':'']}),(0,r(d[14]).jsxs)(l.default,{className:"mb-3 rounded-xl p-3",style:{backgroundColor:i.bgCard},children:[(0,r(d[14]).jsx)("input",{value:a,onChange:e=>s(e.currentTarget.value),type:"date","aria-label":e,style:{width:'100%',height:42,borderRadius:10,border:`1px solid ${i.cardBorder}`,backgroundColor:'#FFFFFF',color:i.textTitle,padding:'0 12px',fontSize:16}}),(0,r(d[14]).jsx)(c.default,{className:"text-xs mt-2",style:{color:i.textSubtle},children:"\u9078\u64c7\u9019\u500b\u8ab2\u7a0b\u7684\u6700\u5f8c\u4e00\u5929\u3002"})]}),!1]})}function P(){const e=(0,r(d[13]).useThemeColors)(),{id:x,audience_tag:p}=(0,r(d[15]).useLocalSearchParams)(),S=(0,r(d[16]).useAuthStore)(r(d[16]).selectIsAdmin),N=(0,r(d[16]).useAuthStore)(e=>e.isLoading),T=(0,r(d[16]).useAuthStore)(e=>e.user),P=!!x,[I,L]=(0,t.useState)(''),[E,M]=(0,t.useState)(''),[F,D]=(0,t.useState)(''),[z,$]=(0,t.useState)('draft'),[R,Z]=(0,t.useState)('draft'),[q,U]=(0,t.useState)('official'),[O,H]=(0,t.useState)(null),[B,Y]=(0,t.useState)(!1),[K,Q]=(0,t.useState)(0),[W,V]=(0,t.useState)(null),[X,G]=(0,t.useState)(null),[J,ee]=(0,t.useState)('link'),[te,le]=(0,t.useState)(k(p)),[ae,se]=(0,t.useState)(''),[re,ne]=(0,t.useState)('single'),[oe,ie]=(0,t.useState)(''),[de,ce]=(0,t.useState)(null),[ue,me]=(0,t.useState)(!1),[xe,pe]=(0,t.useState)('online'),[be,fe]=(0,t.useState)(r(d[17]).DEFAULT_ENROLLMENT_ACCESS_POLICY),[he,ye]=(0,t.useState)(''),[ge,Ce]=(0,t.useState)(''),[je,Se]=(0,t.useState)(''),[ve,Ne]=(0,t.useState)(''),[Te,ke]=(0,t.useState)(''),[we,Ae]=(0,t.useState)('preset'),[Pe,Ie]=(0,t.useState)(''),[Le,Ee]=(0,t.useState)(null),[Me,Fe]=(0,t.useState)(null),[De,ze]=(0,t.useState)(!0),[$e,Re]=(0,t.useState)(!1),[Ze,qe]=(0,t.useState)(!1),[Ue,Oe]=(0,t.useState)(''),[He,Be]=(0,t.useState)(''),[Ye,Ke]=(0,t.useState)(null),[Qe,We]=(0,t.useState)(!1),[Ve,Xe]=(0,t.useState)(!1),{coverUrl:Ge,setCoverUrl:Je,coverFileName:et,setCoverFileName:tt,uploadingCover:lt,coverError:at,setCoverError:st,handlePickCover:rt}=(0,r(d[18]).useAdminCoverUpload)(),nt=(0,t.useRef)(0),ot=(0,t.useRef)(null),it=(0,t.useRef)(null);function dt(e){return!!e&&(e.hasPendingDeliveries||'queued'===e.runStatus||'dispatching'===e.runStatus)}function ct(e){const t=[`\u6210\u529f ${e.sent}`];return e.skipped>0&&t.push(`\u7565\u904e ${e.skipped}`),e.failed>0&&t.push(`\u5931\u6557 ${e.failed}`),e.queued>0&&t.push(`\u5f85\u8655\u7406 ${e.queued}`),t.join('\uff0c')}function ut(e){if('partial_failed'===e.runStatus||e.failed>0||e.deadLetter>0)return`\u8ab2\u7a0b\u5831\u540d\u901a\u77e5\u90e8\u5206\u5931\u6557\uff1a${ct(e)}`;if(e.hasPendingDeliveries)return`\u9001\u51fa\u4e2d\uff1a\u76ee\u6a19 ${e.totalTargets}\uff0c${ct(e)}`;if(e.notificationSkipped)return'no_targets'===e.skipReason?'\u6c92\u6709\u7b26\u5408\u689d\u4ef6\u7684\u6703\u54e1\uff0c\u56e0\u6b64\u9
3019\u6b21\u6c92\u6709\u9001\u51fa\u8ab2\u7a0b\u5831\u540d\u901a\u77e5\u3002':'\u9019\u6b21\u8ab2\u7a0b\u5831\u540d\u4ee5\u4e0d\u901a\u77e5\u6a21\u5f0f\u767c\u5e03\uff0c\u672a\u5efa\u7acb\u4efb\u4f55\u901a\u77e5\u3002';if(!e.runId)return'\u5c1a\u672a\u767c\u9001\u8ab2\u7a0b\u5831\u540d\u901a\u77e5\u3002';return`${'test'===e.latestIntent?'\u6e2c\u8a66\u901a\u77e5\u5df2\u9001\u51fa':'\u5df2\u901a\u77e5\u7b26\u5408\u689d\u4ef6\u7684\u6703\u54e1'}\uff1a\u76ee\u6a19 ${e.totalTargets}\uff0c${ct(e)}`}async function mt(){try{if(ze(!0),P&&x){const e=(0,r(d[19]).getCachedContentNotificationState)('enrollment_event',x);e&&(H(e),Y(!1));const t=await(0,r(d[20]).getEventById)(x,{includeUnpublished:!0,includeZoom:!0});if(t){const e=(0,r(d[12]).getEventSessions)({scheduled_at:t.scheduled_at??null,end_time:t.end_time??null,sessions:t.sessions??null}),l=(0,r(d[12]).detectContinuousDailySchedule)(e),a=e[0];L(t.title),Je(t.cover_image_url??''),M(t.link_url??''),D(t.external_registration_url??''),t.cover_image_url&&tt('\uff08\u5df2\u4e0a\u50b3\uff09'),$(t.
3status),Z(t.status),U('official'),ee(t.event_type??'link'),Q(t.rsvp_count??0),le(k(t.audience_tag)),se(a?.starts_at??t.scheduled_at??''),ne('multi_day'===l.kind?'multi_day':'single'),ce('custom_multi_day'===l.kind?e:null),ie(l.lastSessionDate??''),me(t.is_live??!1),Ne(t.description??''),ke(t.location??''),Ae(t.location&&t.location!==b?'custom':'preset'),Ie('custom_multi_day'===l.kind?a?.ends_at??'':a?.ends_at??t.end_time??''),pe(t.venue_type??'online'),fe((0,r(d[17]).normalizeEnrollmentAccessPolicy)(t.enrollment_access_policy_key)),V((0,r(d[17]).normalizeEnrollmentAccessPolicy)(t.enrollment_access_policy_key)),ye(t.zoom_meeting_id??''),Ce(t.zoom_password??''),Se(t.max_capacity?.toString()??''),Ee(t.testimonial_course_topic_id??null),Fe(t.testimonial_course_topic_id??null);try{Be(await(0,r(d[21],"@/lib/testimonial-topic-promotion-pending").getPendingTestimonialTopicPromotion)(T?.id??'',`event:${t.id}`,'published'===t.status&&t.testimonial_course_topic_id?{sourceId:t.id,topicId:t.testimonial_course_topic_id,reason:'event_published'}:null)?'\u6d3b\u52d5\u5df2\u5132\u5b58\uff0c\u4f46\u5fc3\u5f97\u5206\u985e\u6392\u5e8f\u672a\u5b8c\u6210\uff0c\u53ef\u76f4\u63a5\u91cd\u8a66\u3002':'')}catch(e){Be(e?.message||'\u7121\u6cd5\u8b80\u53d6\u5fc3\u5f97\u5206\u985e\u6392\u5e8f\u91cd\u8a66\u8cc7\u6599')}'enrollment'===t.audience_tag?(await xt(t.id),await pt(t.id)):(H(null),Y(!1),G(null))}}else it.current=null,ce(null),Z('draft'),U('official'),H(null),Y(!1),Q(0),V(null),G(null)}catch(e){Oe(e?.message||'\u8f09\u5165\u5931\u6557')}finally{ze(!1)}}async function xt(e){try{const t=await(0,r(d[20]).getContentNotificationState)('enrollment_event',e);H(t),Y(!1),(0,r(d[19]).setCachedContentNotificationState)('enrollment_event',e,t),dt(t)||(nt.current=0)}catch(e){Y(!0),console.warn('[admin-event-form] loadNotificationState failed:',e)}}async function pt(e,t={}){try{const l=await(0,r(d[20]).getAdminEventZoomMetadata)(e);if(!l&&t.preserveExistingOnEmpty)return;G(l)}catch(e){if(t.preserveExistingOnEmpty)return;G(null),console.warn('[admin-event-form] loadZoomMetadata failed:',e)}}async function bt(e){let t=null,l=null;for(let a=0;a<f;a+=1){try{const l=await(0,r(d[20]).getContentNotificationState)('enrollment_event',e);if(t=l,H(l),(0,r(d[19]).setCachedContentNotificationState)('enrollment_event',e,l),!dt(l))return nt.current=0,l}catch(e){l=e,console.warn('[admin-event-form] pollNotificationState attempt failed:',e)}a<5&&await new Promise(e=>setTimeout(e,h))}if(t)return t;if(l)throw l;throw new Error('Notification state unavailable')}(0,t.useEffect)(()=>{N||(S?mt():r(d[15]).router.replace('/(tabs)/profile'))},[N]),(0,t.useEffect)(()=>{['in_person','hybrid'].includes(xe)&&'preset'===we&&Te!==b&&(Te.trim()||ke(b))},[Te,we,xe]),(0,t.useEffect)(()=>{if('multi_day'!==re)return;if(oe)return;const e=(0,r(d[12]).parseIso)(ae);e&&ie((0,r(d[12]).formatDateKey)(e))},[oe,re,ae]);const ft=(0,t.useMemo)(()=>{if('enrollment'!==te)return[];if(de)return de.map((e,t)=>({starts_at:e.starts_at,ends_at:e.ends_at,sort_order:e.sort_order??t}));if('multi_day'===re){const e=C(Pe),t=e.hourPart&&Pe?`${e.hourPart}:${e.minutePart}`:'';return(0,r(d[12]).buildContinuousDailySessions)({firstSessionStartsAt:ae,dailyEndTime:t,lastSessionDate:oe}).map((e,t)=>({starts_at:e.starts_at,ends_at:e.ends_at,sort_order:e.sort_order??t}))}return ae?[{starts_at:ae,ends_at:Pe||null,sort_order:0}]:[]},[te,re,ae,Pe,oe,de]),ht='enrollment'===te&&(0,r(d[17]).isFreeCommunityEnrollment)(be),yt=['online','hybrid'].includes(xe)&&Boolean(E.trim()||he.trim()||ge.trim()),gt=(0,r(d[22]).isZoomScheduleStale)(ft,X),_t=Boolean(O?.runId||O?.sent||O?.queued||O?.hasPendingDeliveries||B);function Ct(e){if(de&&('enrollment'!==te||'single'!==re||!j(ae,de[0].starts_at)||!j(Pe,de[0].ends_at)))return Oe('\u6b64\u6d3b\u52d5\u6709\u975e\u9023\u7e8c\u6216\u4e0d\u540c\u6642\u6bb5\u7684\u591a\u5834\u6392\u7a0b\uff1b\u76ee\u524d\u8868\u55ae\u4e0d\u652f\u63f4\u4fee\u6539\u9019\u985e\u6392\u7a0b\uff0c\u8acb\u9084\u539f\u6642\u9593\u5f8c\u5132\u5b58\uff0c\u6216\u53e6\u5efa\u6d3b\u52d5\u3002'),null;const t=I.trim(),l=Ge.trim(),a=E.trim(),s=(0,r(d[23]).normalizeExter
3nalHttpUrl)(a),n=ht?null:(0,r(d[17]).normalizeExternalRegistrationUrl)(F),o='enrollment'===te?ft:[],i=ht?'online':xe,c=['in_person','hybrid'].includes(i)?(0,r(d[17]).parseEnrollmentMaxCapacityInput)(je):{value:null,error:null};if(!t)return Oe(e.titleMessage),null;if(!l&&'enrollment'!==te)return Oe('\u8acb\u4e0a\u50b3\u6d3b\u52d5\u5c01\u9762'),null;const u='enrollment'===te&&!ht&&['online','hybrid'].includes(i),x='enrollment'!==te||u,p='enrollment'!==te||u&&e.requireOnlineLink;if(x){if(p&&!a)return Oe(e.linkMissingMessage),null;if(a&&!s)return Oe(e.linkInvalidMessage),null}if('enrollment'===te){if(!ae)return Oe(e.scheduledMessage),null;if('multi_day'===re){if(!Pe)return Oe(e.endTimeMessage),null;if(!oe)return Oe(e.multiDayLastDateMessage),null;if(0===o.length)return Oe(e.invalidSessionsMessage),null}else{if(e.requireEnrollmentEndTime&&!Pe)return Oe(e.endTimeMessage),null;if(Pe){const e=(0,r(d[12]).parseIso)(ae),t=(0,r(d[12]).parseIso)(Pe);if(e&&t&&t.getTime()<e.getTime())return Oe('\u7d50\u675f\u6642\u9593\u4e0d\u80fd\u65e9\u65bc\u958b\u59cb\u6642\u9593'),null}}if(['in_person','hybrid'].includes(i)&&!Te.trim())return Oe(e.locationMessage),null;if(c.error)return Oe(r(d[17]).ENROLLMENT_MAX_CAPACITY_ERROR),null;if(!ht&&F.trim()&&!n)return Oe(r(d[17]).EXTERNAL_REGISTRATION_URL_ERROR),null}const b=x&&s?s:null,f=e.statusOverride??z,h={event_type:'enrollment'===te?'link':J,scheduled_at:'live_stream'!==J&&'enrollment'!==te||!ae?null:ae,is_live:'enrollment'!==te&&('live_stream'===J&&ue),audience_tag:te},y=!ht&&['online','hybrid'].includes(i),_='enrollment'===te?{venue_type:i,zoom_meeting_id:y&&he||null,zoom_password:y&&ge||null,zoom_join_url:y?b:null,max_capacity:c.value,location:['in_person','hybrid'].includes(i)&&Te.trim()||null,description:ve.trim()||null,end_time:Pe||null,link_url:null,sessions:o,enrollment_access_policy_key:be,external_registration_url:n}:{venue_type:'online',zoom_meeting_id:null,zoom_password:null,zoom_join_url:null,max_capacity:null,description:null,location:null,end_time:null,sessions:[],enrollment_access_policy_key:null,external_registration_url:null};return{finalLinkUrl:b,payload:{title:t,cover_image_url:l||null,link_url:'enrollment'===te?null:b,status:f,...h,..._}}}async function jt(){const e=x??it.current;if(!e)return;let t;try{t=await(0,r(d[21],"@/lib/testimonial-topic-promotion-pending").getPendingTestimonialTopicPromotion)(T?.id??'',`event:${e}`)}catch(e){return void Be(e?.message||'\u7121\u6cd5\u8b80\u53d6\u5fc3\u5f97\u5206\u985e\u6392\u5e8f\u91cd\u8a66\u8cc7\u6599')}if(!t&&Ye)try{t=await(0,r(d[21],"@/lib/testimonial-topic-promotion-pending").ensurePendingTestimonialTopicPromotion)({adminUserId:T?.id??'',...Ye})}catch(e){return void Be(e?.message||'\u7121\u6cd5\u4fdd\u5b58\u5fc3\u5f97\u5206\u985e\u6392\u5e8f\u91cd\u8a66\u8cc7\u6599')}if(!t)return Be(''),void Ke(null);try{Re(!0),await(0,r(d[20]).adminPromoteTestimonialCourseTopic)({topicId:t.topicId,requestId:t.requestId,reason:t.reason,eventId:t.sourceId}),await(0,r(d[21],"@/lib/testimonial-topic-promotion-pending").clearPendingTestimonialTopicPromotion)(t.adminUserId,t.sourceKey,t.requestId),Be(''),Ke(null),Fe(t.topicId)}catch(e){console.warn('[admin-event-form] retry topic promotion failed:',e),Be('\u6d3b\u52d5\u5df2\u5132\u5b58\uff0c\u4f46\u5fc3\u5f97\u5206\u985e\u6392\u5e8f\u4ecd\u672a\u5b8c\u6210\uff0c\u53ef\u518d\u6b21\u91cd\u8a66\u3002')}finally{Re(!1)}}async function St(){return!(ht&&P&&null!==W&&!(0,r(d[17]).isFreeCommunityEnrollment)(W)&&K>0)||(0,r(d[24]).crossConfirm)('\u6539\u6210\u514d\u8cbb\u8ab2\u7a0b\uff1f',`\u5df2\u5831\u540d\u7684 ${K} \u4f4d\u5c07\u770b\u4e0d\u5230 Zoom \u6216\u4e0a\u8ab2\u5730\u9ede\uff0c\u4e5f\u4e0d\u6703\u518d\u6536\u5230\u8ab2\u524d\u63d0\u9192\uff1b\u8ab2\u7a0b\u6539\u5728\u516c\u76ca LINE \u793e\u7fa4\u9032\u884c\uff0c\u8acb\u5f9e\u8ab2\u5361\u7684\u540d\u55ae\u53e6\u5916\u901a\u77e5\u4ed6\u5011\u3002`,{confirmText:'\u6539\u6210\u514d\u8cbb',cancelText:'\u53d6\u6d88'})}async function vt(e){st('');const t=Ct({requireOnlineLink:!0,requireEnrollmentEndTime:!1,titleMessage:'\u8acb\u8f38\u5165\u6d3b\u52d5\u6a19\u984c',linkMissingMessage:'enrollment'===te?'\u8acb\u8f38\u5165\u8ab2\u7a0b\u5831\u540d\u7684 Zoom \u6216\u6d3b\u52d5\u9023\u7d50':'\u8acb\u8f38\u5165\u6d3b\u52d5\u9023\u7d50',linkInvalidMessage:'\u6d3b\u52d5\u9023\u7d50\u683c\u5f0f\u4e0d\u6b63\u78ba\uff0c\u8acb\u8f38\u5165\u5b8c\u6574\u7db2\u5740\uff0c\u4f8b\u5982 https://example.com',scheduledMessage:'\u8acb\u8f38\u5165\u958b\u8ab2\u6642\u9593',endTimeMessage:'\u8acb\u8f38\u5165\u6bcf\u65e5\u7d50\u675f\u6642\u9593',multiDayLastDateMessage:'\u8acb\u8f38\u5165\u6700\u5f8c\u4e00\u5929\u65e5\u671f',invalidSessionsMessage:'\u7121\u6cd5\u7522\u751f\u6709\u6548\u7684\u8ab2\u7a0b\u5831\u540d\u5834\u6b21\uff0c\u8acb\u6aa2\u67e5\u8d77\u8a16\u6642\u9593\u8207\u6700\u5f8c\u4e00\u5929\u65e5\u671f\u3002',locationMessage:'\u5be6\u9ad4\u5834\u6b21\u8acb\u8f38\u5165\u4e0a\u8ab2\u5730\u9ede'});if(!t)return;if(!await St())return;let l=null,a=!1,s=!1;try{Re(!0),Oe(''),t.finalLinkUrl&&t.finalLinkUrl!==E.trim()&&M(t.finalLinkUrl);const o=e??q,i='enrollment'===te&&'published'===t.payload.status;let c=!1;const u=x??it.current;if(t.payload.testimonial_course_topic_id=Le,u)l=u,c='enrollment'===te&&'published'===t.payload.status&&('published'!==R&&'published'===z||'published'===R&&!!e&&!0===O?.officialSendAvailable),await(0,r(d[20]).updateEvent)(u,t.payload);else{const e=await(0,r(d[20]).createEvent)({...t.payload,created_by:T?.id??null});l=e.id,it.current=e.id,c=i}if(!!l&&(0,r(d[25],"@/lib/testimonial-source-cta").shouldPromoteTestimonialCourseTopic)({status:t.payload.status??z,initialStatus:R,topicId:Le,initialTopicId:Me}))try{const e=await(0,r(d[21],"@/lib/testimonial-topic-promotion-pending").ensurePendingTestimonialTopicPromotion)({adminUserId:T?.id??'',sourceKey:`event:${l}`,sourceId:l,topicId:Le,reason:'event_published'});s=!0,await(0,r(d[20]).adminPromoteTestimonialCourseTopic)({topicId:e.topicId,requestId:e.requestId,reason:e.reason,eventId:e.sourceId}),await(0,r(d[21],"@/lib/testimonial-topic-promotion-pending").clearPendingTestimonialTopicPromotion)(e.adminUserId,e.sourceKey,e.requestId),Be(''),Ke(null),Fe(Le)}catch(e){console.warn('[admin-event-form] topic promotion failed:',e),a=!0,Ke({sourceKey:`event:${l}`,sourceId:l,topicId:Le,reason:'event_published'}),Be(e?.message||'\u6d3b\u52d5\u5df2\u5132\u5b58\uff0c\u4f46\u5fc3\u5f97\u5206\u985e\u6392\u5e8f\u672a\u5b8c\u6210\uff0c\u53ef\u76f4\u63a5\u91cd\u8a66\u3002'),r(d[26]).toast.error('\u6d3b\u52d5\u5df2\u5132\u5b58\uff0c\u4f46\u5fc3\u5f97\u5206\u985e\u6392\u5e8f\u672a\u5b8c\u6210\uff0c\u53ef\u76f4\u63a5\u91cd\u8a66\u3002')}if(c&&l&&'none'!==o){let e=null;try{e=await(0,r(d[20]).notifyEnrollmentMembers)(l,{intent:o,clientRequestId:(0,r(d[27],"@/lib/request-id").createClientRequestId)('enrollment-publish')})}catch(e){console.warn('[admin-event-form] notifyEnrollmentMembers failed:',e),r(d[26]).toast.error('\u8ab2\u7a0b\u5831\u540d\u5df2\u767c\u5e03\uff0c\u4f46\u901a\u77e5\u9001\u51fa\u5931\u6557\u3002\u4f60\u53ef\u4ee5\u7a0d\u5f8c\u56de\u5230\u9019\u500b\u7de8\u8f2f\u9801\u518d\u67e5\u7
370b\u7d50\u679c\u3002')}if(e)try{const t=await bt(l);if((0,r(d[19]).setCachedContentNotificationState)('enrollment_event',l,t),dt(t)){const e='test'===o?'\u6e2c\u8a66\u901a\u77e5\u5df2\u6392\u5165\u4f47\u5217':'\u8ab2\u7a0b\u5831\u540d\u901a\u77e5\u5df2\u6392\u5165\u4f47\u5217';r(d[26]).toast.info(`${e}\uff1a\u76ee\u6a19 ${t.totalTargets}\uff0c\u7d50\u679c\u5c07\u81ea\u52d5\u66f4\u65b0\u3002`)}else'partial_failed'===t.runStatus||t.failed>0||t.deadLetter>0?r(d[26]).toast.error(ut(t)):e.notificationSkipped?r(d[26]).toast.info('\u8ab2\u7a0b\u5831\u540d\u5df2\u767c\u5e03\uff0c\u4f46\u9019\u6b21\u6c92\u6709\u5efa\u7acb\u4efb\u4f55\u901a\u77e5\u3002'):'test'===o?r(d[26]).toast.info(ut(t)):r(d[26]).toast.success(ut(t))}catch(t){console.warn('[admin-event-form] pollNotificationState failed:',t);const a={runId:e.runId,latestIntent:e.intentApplied,runStatus:e.runStatus,skipReason:e.skipReason,notificationSkipped:e.notificationSkipped,officialSendAvailable:e.officialSendAvailable,totalTargets:e.totalTargets,deliveryQueued:e.deliveryQueued,queued:e.deliveryQueued,sent:0,skipped:0,failed:0,deadLetter:0,hasPendingDeliveries:e.hasPendingDeliveries,createdAt:null,updatedAt:null};H(a),(0,r(d[19]).setCachedContentNotificationState)('enrollment_event',l,a),e.notificationSkipped||e.deliveryQueued>0||e.hasPendingDeliveries?r(d[26]).toast.info((n=e).notificationSkipped?'no_targets'===n.skipReason?'\u8ab2\u7a0b\u5831\u540d\u5df2\u767c\u5e03\uff0c\u4f46\u76ee\u524d\u6c92\u6709\u7b26\u5408\u689d\u4ef6\u7684\u6703\u54e1\u53ef\u901a\u77e5\u3002':'\u8ab2\u7a0b\u5831\u540d\u5df2\u767c\u5e03\uff0c\u4f46\u9019\u6b21\u6c92\u6709\u5efa\u7acb\u4efb\u4f55\u901a\u77e5\u3002':n.deliveryQueued>0||n.hasPendingDeliveries?`\u8ab2\u7a0b\u5831\u540d\u901a\u77e5\u5df2\u6392\u5165\u4f47\u5217\uff1a\u76ee\u6a19 ${n.totalTargets}\uff0c\u7d50\u679c\u5c07\u81ea\u52d5\u66f4\u65b0\u3002`:'\u8ab2\u7a0b\u5831\u540d\u5df2\u767c\u5e03\uff0c\u4f46\u901a\u77e5\u6458\u8981\u66ab\u6642\u8b80\u4e0d\u5230\u6700\u65b0\u7d50\u679c\u3002'):r(d[26]).toast.error('\u8ab2\u7a0b\u5831\u540d\u5df2\u767c\u5e03\uff0c\u4f46\u901a\u77e5\u6458\u8981\u66ab\u6642\u8b80\u4e0d\u5230\u6700\u65b0\u7d50\u679c\u3002')}}else c&&l?r(d[26]).toast.info('\u8ab2\u7a0b\u5831\u540d\u5df2\u767c\u5e03\uff0c\u4f46\u9019\u6b21\u4e0d\u6703\u767c\u9001 App \u5167\u901a\u77e5\u8207\u63a8\u64ad\u3002'):r(d[26]).toast.success(P?'\u6d3b\u52d5\u5df2\u66f4\u65b0':'\u6d3b\u52d5\u5df2\u5efa\u7acb');if(a)return Z(z),V('enrollment'===te?be:null),void(s&&l&&!P&&r(d[15]).router.replace(`/admin-event-form?id=${l}`));if(l&&'enrollment'===te)return void(P&&x===l?(Z(z),V('enrollment'===te?be:null),await xt(l)):r(d[15]).router.replace(`/admin-event-form?id=${l}`));r(d[15]).router.back()}catch(e){Oe(e?.message||'\u5132\u5b58\u5931\u6557')}finally{Re(!1)}var n}async function Nt(){const e=Ct({requireOnlineLink:!1,requireEnrollmentEndTime:!0,statusOverride:P?z:'draft',titleMessage:'\u8acb\u8f38\u5165\u6d3b\u52d5\u6a19\u984c',linkMissingMessage:'\u8acb\u8f38\u5165\u8ab2\u7a0b\u5831\u540d\u7684 Zoom \u6216\u6d3b\u52d5\u9023\u7d50',linkInvalidMessage:'\u6d3b\u52d5\u9023\u7d50\u683c\u5f0f\u4e0d\u6b63\u78ba\uff0c\u8acb\u8f38\u5165\u5b8c\u6574\u7db2\u5740\uff0c\u4f8b\u5982 https://example.com',scheduledMessage:'\u8acb\u8f38\u5165\u958b\u8ab2\u6642\u9593',endTimeMessage:'multi_day'===re?'\u8acb\u8f38\u5165\u6bcf\u65e5\u7d50\u675f\u6642\u9593':'\u5efa\u7acb Zoom \u6703\u8b70\u524d\uff0c\u8acb\u5148\u8f38\u5165\u7d50\u675f\u6642\u9593',multiDayLastDateMessage:'\u8acb\u8f38\u5165\u6700\u5f8c\u4e00\u5929\u65e5\u671f',invalidSessionsMessage:'\u7121\u6cd5\u7522\u751f\u6709\u6548\u7684\u8ab2\u7a0b\u5831\u540d\u5834\u6b21\uff0c\u8acb\u6aa2\u67e5\u8d77\u8a16\u6642\u9593\u8207\u6700\u5f8c\u4e00\u5929\u65e5\u671f\u3002',locationMessage:'\u5be6\u9ad4\u5834\u6b21\u8acb\u8f38\u5165\u4e0a\u8ab2\u5730\u9ede'});if(!e)return null;e.finalLinkUrl&&e.finalLinkUrl!==E.trim()&&M(e.finalLinkUrl);const t=x??it.current;if(t)return await(0,r(d[20]).updateEvent)(t,e.payload),t;const l=await(0,r(d[20]).createEvent)({...e.payload,created_by:T?.id??null});return it.current=l.id,$('draft'),Z('draft'),l.id}function Tt(){const e=['\u9019\u6703\u5efa\u7acb\u4e00\u500b\u65b0\u7684 Zoom \u6703\u8b70\uff0c\u4e26\u8986\u84cb\u76ee\u524d\u8868\u55ae\u4e2d\u7684 Zoom \u9023\u7d50\u3001\u6703\u8b70 ID \u8207\u5bc6\u78bc\u3002'];return'published'===z&&e.push('\u9019\u7b46\u8ab2\u7a0b\u76ee\u524d\u662f\u5df2\u767c\u5e03\u72c0\u614b\uff0c\u5b78\u751f\u53ef\u80fd\u5df2\u7d93\u770b\u904e\u6216\u4fdd\u5b58\u820a\u9023\u7d50\u3002'),K>0&&e.push(`\u76ee\u524d\u5df2\u6709 ${K} \u4f4d\u5b78\u54e1\u5831\u540d\uff0c\u66ff\u63db\u5f8c\u8acb\u91cd\u65b0\u901a\u77e5\u6216\u4eba\u5de5\u901a\u77e5\u5df2\u5831\u540d\u5b78\u54e1\u3002`),B?e.push('\u901a\u77e5\u72c0\u614b\u66ab\u6642\u8b80\u53d6\u5931\u6557\uff0c\u56e0\u6b64\u7cfb\u7d71\u6703\u4fdd\u5b88\u8996\u70ba\u53ef\u80fd\u5df2\u901a\u77e5\u5b78\u54e1\u3002'):_t&&e.push('\u9019\u7b46\u8ab2\u7a0b\u5df2\u6709\u901a\u77e5\u7d00\u9304\u6216\u901a\u77e5\u4f47\u5217\uff0c\u66ff\u63db\u5f8c\u5b78\u751f\u624b\u4e0a\u7684\u820a\u901a\u77e5\u53ef\u80fd\u4e0d\u6703\u81ea\u52d5\u66f4\u65b0\u3002'),e.push('\u7cfb\u7d71\u4e0d\u6703\u81ea\u52d5\u767c\u9001\u88dc\u767c\u901a\u77e5\uff1b\u8acb\u5728\u66ff\u63db\u6210\u529f\u5f8c\u81ea\u884c\u91cd\u65b0\u901a\u77e5\u3002'),e.join('\n\n')}function kt(e){e.joinUrl&&M(e.joinUrl),e.meetingId&&ye(e.meetingId),Ce(e.password??'');const t=(new Date).toISOString();G({zoomMeetingUuid:e.meetingUuid,zoomHostId:e.hostId,zoomCreatedBy:T?.id??null,zoomCreatedAt:t,zoomLastSyncedAt:t,zoomScheduledStartAt:e.startTime,zoomScheduledDurationMinutes:e.durationMinutes,zoomScheduleSignature:e.scheduleSignature??null,zoomCalendarId:e.calendarId,zoomCalendarEventId:e.calendarEventId,zoomCalendarCreatedAt:'succeeded'===e.calendarEventStatus?t:null,zoomCalendarLastSyncedAt:'not_requested'===e.calendarEventStatus?null:t,zoomCalendarStatus:e.calendarEventStatus})}function wt(e){return'unsupported_recurrence'===e.code?'\u9019\u4e9b\u5834\u6b21\u7121\u6cd5\u5b8c\u6574\u8f49\u6210\u56fa\u5b9a\u9593\u9694\u7684 Zoom \u91cd\u8907\u6703\u8b70\uff0c\u8acb\u62c6\u5206\u6d3b\u52d5\u6216\u624b\u52d5\u8a2d\u5b9a Zoom\uff1b\u5c1a\u672a\u5efa\u7acb\u65b0\u6703\u8b70\u3002':'zoom_exists'===e.code?'\u9019\u7b46\u8ab2\u7a0b\u5df2\u7d93\u6709 Zoom \u6216\u6d3b\u52d5\u9023\u7d50\u3002\u82e5\u8981\u6539\u7528\u65b0\u7684 Zoom\uff0c\u8acb\u4f7f\u7528\u91cd\u65b0\u751f\u6210/\u66ff\u63db\u3002':'duplicate_request_processing'===e.code?'Zoom \u6703\u8b70\u6b63\u5728\u5efa\u7acb\u4e2d\uff0c\u8acb\u7a0d\u5019\u518d\u8a66\u3002':'zoom_rate_limited'===e.code?e.retryAfterSeconds?`Zoom \u5efa\u7acb\u984d\u5ea6\u66ab\u6642\u53d7\u9650\uff0c\u8acb\u7d04 ${e.retryAfterSeconds} \u79d2\u5f8c\u518d\u8a66\u3002`:'Zoom \u5efa\u7acb\u984d\u5ea6\u66ab\u6642\u53d7\u9650\uff0c\u8acb\u7a0d\u5f8c\u518d\u8a66\u3002':'zoom_config_missing'===e.code?'Zoom \u5f8c\u7aef\u8a2d\u5b9a\u5c1a\u672a\u5b8c\u6210\uff0c\u8acb\u5148\u78ba\u8a8d Supabase secrets\u3002':'event_update_failed_recoverable'===e.code?'Zoom \u6703\u8b70\u5df2\u5efa\u7acb\uff0c\u4f46\u6d3b\u52d5\u8cc7\u6599\u6c92\u6709\u81ea\u52d5\u66f4\u65b0\u5b8c\u6210\u3002\u8acb\u5148\u4fdd\u7559\u756b\u9762\u8cc7\u8a0a\uff0c\u5fc5\u8981\u6642\u6539\u7528\u624b\u52d5\u586b\u5165\u3002':'zoom_response_invalid'===e.code?'Zoom \u5df2\u56de\u61c9\uff0c\u4f46\u7f3a\u5c11\u53ef\u7528\u7684\u6703\u8b70\u9023\u7d50\u6216 ID\u3002\u8acb\u6539\u7528\u624b\u52d5\u5efa\u7acb\uff0c\u6216\u7a0d\u5f8c\u91cd\u8a66\u3002':e.message||'\u5efa\u7acb Zoom \u6703\u8b70\u5931\u6557\uff0c\u8acb\u7a0d\u5f8c\u518d\u8a66\u3002'}async function At(e){if('enrollment'!==te||!['online','hybrid'].includes(xe))return;if('replace_existing'===e){if(!await(0,r(d[24]).crossConfirm)('\u66ff\u63db Zoom \u6703\u8b70\uff1f',Tt(),{destructive:!0,confirmText:'\u66ff\u63db'}))return}let t=!1;try{qe(!0),Oe('');const t=await Nt();if(!t)return;ot.current||(ot.current=(0,r(d[27]).createClientRequestId)('replace_existing'===e?'zoom-replace':'zoom-create'));const l=await(0,r(d[20]).createZoomMeetingForEnrollmentEvent)(t,{mode:e,overwrite:'replace_existing'===e,clientRequestId:ot.current});kt(l.zoom),ot.current=null,r(d[26]).toast.success(l.reusedRequest?'\u5df2\u5957\u7528\u5148\u524d\u5efa\u7acb\u7684 Zoom \u6703\u8b70':'Zoom \u6703\u8b70\u5df2\u5efa\u7acb\u4e26\u586b\u5165\u8868\u55ae'),'replace_existing'===e&&('published'===z||K>0||_t)&&r(d[26]).toast.info('Zoom \u5df2\u66ff\u63db\uff0c\u8acb\u91cd\u65b0\u901a\u77e5\u6216\u4eba\u5de5\u901a\u77e5\u5df2\u5831\u540d\u5b78\u54e1\u3002'),!P&&t?r(d[15]).router.replace(`/admin-event-form?id=${t}`):t&&await pt(t,{preserveExistingOnEmpty:!0})}catch(e){if(e instanceof r(d[20]).CreateZoomMeetingForEnrollmentEventError)return t='duplicate_request_processing'===e.code||'unknown'===e.code,'event_update_failed_recoverable'===e.code&&e.zoom&&kt(e.zoom),void Oe(wt(e));Oe(e?.message||'\u5efa\u7acb Zoom \u6703\u8b70\u5931\u6557')}finally{t||(ot.current=null),qe(!1)}}return(0,t.useEffect)(()=>
3{if(!P||!x||$e||'enrollment'!==te||!dt(O))return void(dt(O)||(nt.current=0));if(nt.current>=_)return;const e=setTimeout(async()=>{nt.current+=1,await xt(x)},y);return()=>clearTimeout(e)},[x,P,$e,te,O?.runId,O?.runStatus,O?.queued,O?.hasPendingDeliveries,O?.sent,O?.skipped,O?.failed,O?.deadLetter]),(0,r(d[14]).jsxs)(r(d[14]).Fragment,{children:[(0,r(d[14]).jsxs)(i.default,{title:P?'\u7de8\u8f2f\u6d3b\u52d5':'\u65b0\u589e\u6d3b\u52d5',error:Ue||at,loading:De,keyboardAvoiding:!0,rightAction:(0,r(d[14]).jsx)(a.default,{onPress:()=>{vt()},disabled:$e,hitSlop:8,accessibilityRole:"button",accessibilityLabel:$e?'\u5132\u5b58\u4e2d':'\u5132\u5b58\u6d3b\u52d5',accessibilityState:{disabled:$e},children:(0,r(d[14]).jsx)(c.default,{className:"text-base",style:{color:$e?e.bgLight:e.primary},children:$e?'\u5132\u5b58\u4e2d...':'\u5132\u5b58'})}),children:[(0,r(d[14]).jsx)(c.default,{className:"text-sm mb-1 mt-2",style:{color:e.textTitle},children:"\u6d3b\u52d5\u540d\u7a31\uff08\u50c5\u5f8c\u53f0\u986f\u793a\uff09 *"}),(0,r(d[14]).jsx)(r(d[28]).CappedTextInput,{value:I,onChangeText:L,placeholder:"\u4f8b\u5982\uff1a2026 \u6625\u5b63\u7dda\u4e0a\u8b1b\u5ea7",placeholderTextColor:e.bgLight,className:"p-3 rounded-xl mb-3 text-base",style:{backgroundColor:e.bgCard,color:e.textTitle}}),'enrollment'===te&&(0,r(d[14]).jsx)(u.default,{value:Le,suggestedName:I,onChange:Ee,disabled:$e}),!!He&&(0,r(d[14]).jsxs)(l.default,{className:"p-3 rounded-xl mt-2",style:{backgroundColor:e.warningBg},children:[(0,r(d[14]).jsx)(c.default,{variant:"body",style:{color:e.warningText},children:He}),(0,r(d[14]).jsx)(a.default,{onPress:()=>{jt()},disabled:$e,accessibilityRole:"button",accessibilityLabel:"\u91cd\u8a66\u5fc3\u5f97\u5206\u985e\u6392\u5e8f",accessibilityState:{disabled:$e},className:"min-h-11 min-w-11 self-start justify-center mt-1",children:(0,r(d[14]).jsx)(c.default,{variant:"body",style:{color:e.primaryDark},children:"\u91cd\u8a66\u5fc3\u5f97\u5206\u985e\u6392\u5e8f"})})]}),(0,r(d[14]).jsxs)(c.default,{className:"text-sm mb-1",style:{color:e.textTitle},children:["\u6d3b\u52d5\u7e2e\u5716\uff08\u5c01\u9762\u5927\u5716\uff09",'enrollment'!==te?' *':'']}),(0,r(d[14]).jsxs)(l.default,{className:"flex-row mb-3",style:{gap:10},children:[(0,r(d[14]).jsx)(a.default,{onPress:rt,disabled:lt,className:"flex-1 p-3 rounded-xl flex-row items-center justify-center",style:{backgroundColor:e.bgCard},accessibilityRole:"button",accessibilityLabel:"\u5f9e\u88dd\u7f6e\u4e0a\u50b3\u6d3b\u52d5\u5c01\u9762",accessibilityState:{disabled:lt},children:lt?(0,r(d[14]).jsx)(n.default,{size:20,color:e.primary}):(0,r(d[14]).jsxs)(r(d[14]).Fragment,{children:[(0,r(d[14]).jsx)(s.default,{name:"upload",size:14,color:e.primary}),(0,r(d[14]).jsx)(c.default,{className:"ml-2 text-sm",style:{color:e.textBody},children:"\u5f9e\u88dd\u7f6e\u4e0a\u50b3"})]})}),(0,r(d[14]).jsxs)(a.default,{onPress:()=>Xe(!0),className:"flex-1 p-3 rounded-xl flex-row items-center justify-center",style:{backgroundColor:e.bgCard},accessibilityRole:"button",accessibilityLabel:"\u958b\u555f\u6d3b\u52d5\u5c01\u9762\u5716\u7247\u5eab\u641c\u5c0b",children:[(0,r(d[14]).jsx)(s.default,{name:"search",size:14,color:e.primary}),(0,r(d[14]).jsx)(c.default,{className:"ml-2 text-sm",style:{color:e.textBody},children:"\u641c\u5c0b\u5716\u7247\u5eab"})]})]}),!!Ge&&(0,r(d[14]).jsxs)(l.default,{className:"rounded-xl overflow-hidden mb-3",style:{backgroundColor:e.bgCard},children:[(0,r(d[14]).jsx)(r(d[29]).Image,{source:{uri:Ge},style:{width:'100%',height:160},contentFit:"cover"}),(0,r(d[14]).jsxs)(l.default,{className:"flex-row items-center justify-between px-3 py-2",children:[(0,r(d[14]).jsx)(c.default,{className:"text-xs",style:{color:e.textSubtle},children:et||'\u5df2\u9078\u64c7\u5c01\u9762'}),(0,r(d[14]).jsx)(a.default,{onPress:()=>{Je(''),tt('')},hitSlop:8,accessibilityRole:"button",accessibilityLabel:"\u79fb\u9664\u6d3b\u52d5\u5c01\u9762",children:(0,r(d[14]).jsx)(s.default,{name:"trash-o",size:14,color:e.error})})]})]}),'enrollment'!==te&&(0,r(d[14]).jsxs)(r(d[14]).Fragment,{children:[(0,r(d[14]).jsx)(c.default,{className:"text-sm mb-1",style:{color:e.textTitle},children:"\u7db2\u5740\u9023\u7d50 *"}),(0,r(d[14]).jsx)(r(d[28]).CappedTextInput,{value:E,onChangeText:M,placeholder:"https://example.com/event",placeholderTextColor:e.bgLight,autoCapitalize:"none",autoCorrect:!1,keyboardType:"url",className:"p-3 rounded-xl mb-3 text-base",style:{backgroundColor:e.bgCard,color:e.textTitle}})]}),(0,r(d[14]).jsxs)(l.default,{className:"flex-row items-center justify-between p-3 rounded-xl mb-3",style:{backgroundColor:e.bgCard},children:[(0,r(d[14]).jsx)(c.default,{className:"text-base",style:{color:e.textTitle},children:"\u72c0\u614b"}),(0,r(d[14]).jsx)(a.default,{onPress:()=>$('draft'===z?'published':'draft'),className:"px-4 py-1.5 rounded-full",style:{backgroundColor:'published'===z?(0,r(d[30]).withAlpha)(e.primaryDark,r(d[30]).ALPHA.badgeAlt):(0,r(d[30]).withAlpha)(e.secondary,r(d[30]).ALPHA.badgeAlt)},accessibilityRole:"button",accessibilityLabel:'published'===z?'\u5207\u63db\u70ba\u8349\u7a3f':'\u5207\u63db\u70ba\u5df2\u767c\u5e03',children:(0,r(d[14]).jsx)(c.default,{className:"text-sm",style:{color:'published'===z?e.success:e.secondary},children:'published'===z?'\u5df2\u767c\u5e03':'\u8349\u7a3f'})})]}),(0,r(d[14]).jsx)(c.default,{className:"text-sm mb-1",style:{color:e.textTitle},children:"\u6d3b\u52d5\u6a19\u7c64\uff08\u986f\u793a\u4f4d\u7f6e\uff09"}),(0,r(d[14]).jsx)(l.default,{className:"flex-row flex-wrap mb-3",style:{gap:8},children:[['home_recent','\u9996\u9801\u8fd1\u671f\u6d3b\u52d5'],['enrollment','\u8ab2\u7a0b\u5831\u540d']].map(([t,l])=>(0,r(d[14]).jsx)(a.default,{onPress:()=>le(t),className:"flex-1 p-3 rounded-xl items-center",style:{backgroundColor:te===t?(0,r(d[30]).withAlpha)(e.primary,r(d[30]).ALPHA.badgeAlt):e.bgCard},accessibilityRole:"button",accessibilityLabel:`\u9078\u64c7\u6d3b\u52d5\u6a19\u7c64\u70ba${l}`,accessibilityState:{selected:te===t},children:(0,r(d[14]).jsx)(c.default,{className:"text-sm",style:{color:te===t?e.primary:e.textSubtle},children:l})},t))}),'enrollment'!==te||'published'!==z||P&&'published'===R?null:(0,r(d[14]).jsxs)(l.default,{className:"p-3 rounded-xl mb-3",style:{backgroundColor:e.bgCard},children:[(0,r(d[14]).jsx)(c.default,{className:"text-base mb-2",style:{color:e.textTitle},children:"\u767c\u5e03\u901a\u77e5\u6a21\u5f0f"}),(0,r(d[14]).jsx)(c.default,{className:"text-sm mb-3",style:{color:e.textSubtle},children:"\u8ab2\u7a0b\u5831\u540d\u4e0a\u67b6\u5f8c\uff0c\u53ef\u9078\u64c7\u76f4\u63a5\u901a\u77e5\u7b26\u5408\u5831\u540d\u6b0a\u9650\u7684\u6703\u54e1\u3001\u53ea\u901a\u77e5\u6e2c\u8a66\u6703\u54e1\uff0c\u6216\u5148\u4e0a\u67b6\u4e0d\u901a\u77e5\u3002"}),(0,r(d[14]).jsx)(l.default,{className:"flex-row",style:{gap:8},children:[{key:'official',label:'\u6b63\u5f0f\u901a\u77e5\u6703\u54e1'},{key:'test',label:'\u53ea\u901a\u77e5\u6e2c\u8a66\u6703\u54e1'},{key:'none',label:'\u5148\u4e0a\u67b6\u4e0d\u901a\u77e5'}
3].map(t=>{const l=q===t.key;return(0,r(d[14]).jsx)(a.default,{onPress:()=>U(t.key),className:"flex-1 rounded-xl px-3 py-2 items-center",style:{backgroundColor:l?(0,r(d[30]).withAlpha)(e.primaryDark,r(d[30]).ALPHA.badgeAlt):(0,r(d[30]).withAlpha)(e.secondary,r(d[30]).ALPHA.badgeAlt)},accessibilityRole:"button",accessibilityLabel:t.label,children:(0,r(d[14]).jsx)(c.default,{className:"text-xs text-center",style:{color:l?e.success:e.secondary},children:t.label})},t.key)})})]}),P&&'enrollment'===te&&'published'===z&&O?.officialSendAvailable?(0,r(d[14]).jsxs)(l.default,{className:"p-3 rounded-xl mb-3",style:{backgroundColor:e.bgCard},children:[(0,r(d[14]).jsx)(c.default,{className:"text-base mb-2",style:{color:e.textTitle},children:"\u5df2\u767c\u5e03\u8ab2\u7a0b\u5831\u540d\u901a\u77e5"}),(0,r(d[14]).jsx)(c.default,{className:"text-sm mb-3",style:{color:e.textSubtle},children:"\u9019\u7b46\u8ab2\u7a0b\u5831\u540d\u5c1a\u672a\u505a\u904e\u6b63\u5f0f\u901a\u77e5\u3002\u4f60\u53ef\u4ee5\u5148\u767c\u9001\u6e2c\u8a66\u901a\u77e5\uff0c\u6216\u76f4\u63a5\u901a\u77e5\u6240\u6709\u7b26\u5408\u689d\u4ef6\u4e14\u5c1a\u672a\u5831\u540d\u7684\u6703\u54e1\u3002"}),(0,r(d[14]).jsxs)(l.default,{className:"flex-row",style:{gap:8},children:[(0,r(d[14]).jsx)(a.default,{onPress:()=>{vt('test')},disabled:$e,className:"flex-1 rounded-xl px-3 py-3 items-center",style:{backgroundColor:(0,r(d[30]).withAlpha)(e.secondary,r(d[30]).ALPHA.badgeAlt)},children:(0,r(d[14]).jsx)(c.default,{className:"text-sm",style:{color:e.secondary},children:"\u767c\u9001\u6e2c\u8a66\u901a\u77e5"})}),(0,r(d[14]).jsx)(a.default,{onPress:()=>{vt('official')},disabled:$e,className:"flex-1 rounded-xl px-3 py-3 items-center",style:{backgroundColor:(0,r(d[30]).withAlpha)(e.primaryDark,r(d[30]).ALPHA.badgeAlt)},children:(0,r(d[14]).jsx)(c.default,{className:"text-sm",style:{color:e.success},children:"\u73fe\u5728\u6b63\u5f0f\u901a\u77e5\u6703\u54e1"})})]})]}):null,P&&'enrollment'===te&&'published'===z&&O?(0,r(d[14]).jsxs)(l.default,{className:"p-3 rounded-xl mb-3",style:{backgroundColor:e.bgCard},children:[(0,r(d[14]).jsx)(c.default,{className:"text-base mb-2",style:{color:e.textTitle},children:"\u901a\u77e5\u6458\u8981"}),(0,r(d[14]).jsx)(c.default,{className:"text-sm",style:{color:e.textSubtle},children:ut(O)})]}):null,'enrollment'!==te&&(0,r(d[14]).jsxs)(r(d[14]).Fragment,{children:[(0,r(d[14]).jsx)(c.default,{className:"text-sm mb-1",style:{color:e.textTitle},children:"\u6d3b\u52d5\u985e\u578b"}),(0,r(d[14]).jsx)(l.default,{className:"flex-row mb-3",style:{gap:8},children:[['link','\u9023\u7d50'],['live_stream','\u76f4\u64ad']].map(([t,l])=>(0,r(d[14]).jsx)(a.default,{onPress:()=>ee(t),className:"flex-1 p-3 rounded-xl items-center",style:{backgroundColor:J===t?(0,r(d[30]).withAlpha)(e.primary,r(d[30]).ALPHA.badgeAlt):e.bgCard},accessibilityRole:"button",accessibilityLabel:`\u9078\u64c7\u6d3b\u52d5\u985e\u578b\u70ba${l}`,accessibilityState:{selected:J===t},children:(0,r(d[14]).jsx)(c.default,{className:"text-sm",style:{color:J===t?e.primary:e.textSubtle},children:l})},t))})]}),'live_stream'===J&&(0,r(d[14]).jsxs)(r(d[14]).Fragment,{children:[(0,r(d[14]).jsx)(w,{label:"\u9810\u5b9a\u6642\u9593",value:ae,onChange:se,placeholder:"\u9ede\u9078\u65e5\u671f\u8207\u6642\u9593"}),(0,r(d[14]).jsxs)(l.default,{className:"flex-row items-center justify-between p-3 rounded-xl mb-3",style:{backgroundColor:e.bgCard},children:[(0,r(d[14]).jsx)(c.default,{className:"text-base",style:{color:e.textTitle},children:"\u76f4\u64ad\u4e2d"}),(0,r(d[14]).jsx)(a.default,{onPress:()=>me(!ue),className:"px-4 py-1.5 rounded-full",style:{backgroundColor:ue?(0,r(d[30]).withAlpha)(e.error,r(d[30]).ALPHA.badgeAlt):e.cardBorder},accessibilityRole:"button",accessibilityLabel:ue?'\u95dc\u9589\u76f4\u64ad\u72c0\u614b':'\u958b\u555f\u76f4\u64ad\u72c0\u614b',children:(0,r(d[14]).jsx)(c.default,{className:"text-sm",style:{color:ue?e.error:e.textSubtle},children:ue?'LIVE':'\u672a\u958b\u59cb'})})]})]}),'enrollment'===te&&(0,r(d[14]).jsxs)(r(d[14]).Fragment,{children:[(0,r(d[14]).jsx)(c.default,{className:"text-sm mb-1",style:{color:e.textTitle},children:"\u6703\u54e1\u8cc7\u683c"}),(0,r(d[14]).jsx)(l.default,{className:"flex-row flex-wrap mb-3",style:{gap:8},children:r(d[17]).ENROLLMENT_ACCESS_POLICY_OPTIONS.map(t=>{const l=be===t.key;return(0,r(d[14]).jsx)(a.default,{onPress:()=>fe(t.key),className:"p-3 rounded-xl items-center justify-center",style:{width:'48%',minHeight:48,backgroundColor:l?(0,r(d[30]).withAlpha)(e.primary,r(d[30]).ALPHA.badgeAlt):e.bgCard},accessibilityRole:"button",accessibilityLabel:`\u9078\u64c7\u6703\u54e1\u8cc7\u683c\u70ba${t.label}`,accessibilityState:{selected:l},children:(0,r(d[14]).jsx)(c.default,{className:"text-sm text-center",style:{color:l?e.primary:e.textSubtle},children:t.label})},t.key)})}),ht?(0,r(d[14]).jsxs)(l.default,{className:"rounded-xl p-3 mb-3",style:{backgroundColor:e.bgCard},testID:"admin-event-free-community-note",children:[(0,r(d[14]).jsx)(c.default,{className:"text-sm",style:{color:e.textTitle},children:"\u514d\u8cbb\u8ab2\u7a0b\u5728\u516c\u76ca LINE \u793e\u7fa4\u4e0a\u8ab2"}),(0,r(d[14]).jsx)(c.default,{className:"text-xs mt-1",style:{color:e.textSubtle},children:"\u5b78\u54e1\u53ea\u6703\u770b\u5230\u300c\u52a0\u5165\u793e\u7fa4\u300d\uff0c\u4e0d\u7528\u586b Zoom\u3001\u5834\u5730\u3001\u540d\u984d\u6216\u7368\u7acb\u5831\u540d\u7db2\u5740\uff1b\u5132\u5b58\u6642\u6703\u
36e05\u7a7a\u9019\u4e9b\u6b04\u4f4d\u3002"})]}):(0,r(d[14]).jsxs)(r(d[14]).Fragment,{children:[(0,r(d[14]).jsx)(c.default,{className:"text-sm mb-1",style:{color:e.textTitle},children:"\u7368\u7acb\u5831\u540d\u7db2\u5740\uff08\u9078\u586b\uff09"}),(0,r(d[14]).jsx)(r(d[28]).CappedTextInput,{value:F,onChangeText:D,placeholder:"https://leo.56hypnosis.com/workshops/\u2026",placeholderTextColor:e.bgLight,autoCapitalize:"none",autoCorrect:!1,keyboardType:"url",accessibilityLabel:"\u7368\u7acb\u5831\u540d\u7db2\u5740",className:"p-3 rounded-xl mb-1 text-base",style:{backgroundColor:e.bgCard,color:e.textTitle}}),(0,r(d[14]).jsx)(c.default,{className:"text-xs mb-3",style:{color:e.textSubtle},children:"\u586b\u5beb\u5f8c\uff0c\u4e0d\u7b26\u5408\u6703\u54e1\u8cc7\u683c\u7684\u4eba\u6703\u770b\u5230\u300c\u524d\u5f80\u5831\u540d\u300d\uff0c\u76f4\u63a5\u958b\u555f\u9019\u500b\u7db2\u5740\uff1b\u7b26\u5408\u8cc7\u683c\u7684\u6703\u54e1\u7167\u5e38\u5728 App \u5167\u5831\u540d\u3002"}),(0,r(d[14]).jsx)(c.default,{className:"text-sm mb-1",style:{color:e.textTitle},children:"\u5834\u5730\u985e\u578b"}),(0,r(d[14]).jsx)(l.default,{className:"flex-row mb-3",style:{gap:8},children:[['online','\u7dda\u4e0a'],['in_person','\u5be6\u9ad4'],['hybrid','\u6df7\u5408']].map(([t,l])=>(0,r(d[14]).jsx)(a.default,{onPress:()=>pe(t),className:"flex-1 p-3 rounded-xl items-center",style:{backgroundColor:xe===t?(0,r(d[30]).withAlpha)(e.primary,r(d[30]).ALPHA.badgeAlt):e.bgCard},accessibilityRole:"button",accessibilityLabel:`\u9078\u64c7\u5834\u5730\u985e\u578b\u70ba${l}`,accessibilityState:{selected:xe===t},children:(0,r(d[14]).jsx)(c.default,{className:"text-sm",style:{color:xe===t?e.primary:e.textSubtle},children:l})},t))})]}),(0,r(d[14]).jsx)(w,{label:'multi_day'===re?'\u7b2c\u4e00\u5929\u958b\u59cb\u6642\u9593':'\u9810\u5b9a\u6642\u9593',value:ae,onChange:se,placeholder:"\u9ede\u9078\u65e5\u671f\u8207\u6642\u9593",required:!0}),(0,r(d[14]).jsx)(w,{label:'multi_day'===re?'\u7b2c\u4e00\u5929\u7d50\u675f\u6642\u9593':'\u7d50\u675f\u6642\u9593',value:Pe,onChange:Ie,placeholder:"\u9ede\u9078\u65e5\u671f\u8207\u6642\u9593"}),(0,r(d[14]).jsx)(c.default,{className:"text-sm mb-1",style:{color:e.textTitle},children:"\u6392\u7a0b\u65b9\u5f0f"}),(0,r(d[14]).jsx)(l.default,{className:"flex-row mb-2",style:{gap:8},children:[['single','\u55ae\u65e5'],['multi_day','\u9023\u7e8c\u591a\u65e5']].map(([t,l])=>(0,r(d[14]).jsx)(a.default,{onPress:()=>ne(t),className:"flex-1 p-3 rounded-xl items-center",style:{backgroundColor:re===t?(0,r(d[30]).withAlpha)(e.primary,r(d[30]).ALPHA.badgeAlt):e.bgCard},accessibilityRole:"button",accessibilityLabel:`\u9078\u64c7\u6392\u7a0b\u65b9\u5f0f\u70ba${l}`,accessibilityState:{selected:re===t},children:(0,r(d[14]).jsx)(c.default,{className:"text-sm",style:{color:re===t?e.primary:e.textSubtle},children:l})},t))}),(0,r(d[14]).jsx)(c.default,{className:"text-xs mb-3",style:{color:e.textSubtle},children:de?`\u5df2\u4fdd\u7559\u539f\u6709 ${de.length} \u5834\u975e\u9023\u7e8c\u6216\u4e0d\u540c\u6642\u6bb5\u6392\u7a0b\uff1b\u6b64\u8868\u55ae\u50c5\u986f\u793a\u9996\u5834\u6642\u9593\uff0c\u8acb\u52ff\u5728\u6b64\u4fee\u6539\u6392\u7a0b\u3002`:'multi_day'===re?'\u7cfb\u7d71\u6703\u6cbf\u7528\u7b2c\u4e00\u5929\u7684\u958b\u59cb\u8207\u7d50\u675f\u6642\u6bb5\uff0c\u81ea\u52d5\u5efa\u7acb\u5230\u6700\u5f8c\u4e00\u5929\u7684\u6bcf\u65e5\u8ab2\u7a0b\u3002':'\u55ae\u65e5\u8ab2\u7a0b\u53ea\u6703\u5efa\u7acb\u4e00\u500b\u6642\u6bb5\u3002'}),'multi_day'===re&&(0,r(d[14]).jsxs)(r(d[14]).Fragment,{children:[(0,r(d[14]).jsx)(A,{label:"\u6700\u5f8c\u4e00\u5929",value:oe,onChange:ie,placeholder:"\u9ede\u9078\u6700\u5f8c\u4e00\u5929",required:!0}),ft.length>0&&(0,r(d[14]).jsxs)(l.default,{className:"rounded-xl p-3 mb-3",style:{backgroundColor:e.bgCard},children:[(0,r(d[14]).jsxs)(c.default,{className:"text-sm",style:{color:e.textTitle},children:["\u5c07\u5efa\u7acb ",ft.length," \u5929\u8ab2\u7a0b"]}),(0,r(d[14]).jsx)(c.default,{className:"text-xs mt-1",style:{color:e.textSubtle},children:"\u6bcf\u5929\u90fd\u6703\u6cbf\u7528\u7b2c\u4e00\u5929\u7684\u6642\u6bb5\u3002"}),(0,r(d[14]).jsxs)(l.default,{className:"mt-2",style:{gap:6},children:[ft.slice(0,4).map((t,l)=>(0,r(d[14]).jsx)(c.default,{className:"text-sm",style:{color:e.textBody},children:`${l+1}. ${v(t.starts_at,'')}${t.ends_at?` - ${v(t.ends_at,'')}`:''}`},`${t.starts_at}-${l}`)),ft.length>4&&(0,r(d[14]).jsxs)(c.default,{className:"text-xs",style:{color:e.textSubtle},children:["\u5176\u9918 ",ft.length-4," \u5802\u6703\u4e00\u4f75\u5efa\u7acb\u3002"]})]})]})]}),(0,r(d[14]).jsx)(c.default,{className:"text-sm mb-1",style:{color:e.textTitle},children:"\u6d3b\u52d5\u63cf\u8ff0"}),(0,r(d[14]).jsx)(r(d[28]).CappedTextInput,{value:ve,onChangeText:Ne,placeholder:"\u8ab2\u7a0b\u5167\u5bb9\u7c21\u4ecb...",placeholderTextColor:e.bgLight,multiline:!0,numberOfLines:3,textAlignVertical:"top",className:"p-3 rounded-xl mb-3 text-base",style:{backgroundColor:e.bgCard,color:e.textTitle,minHeight:80}}),['online','hybrid'].includes(xe)&&!ht&&(0,r(d[14]).jsxs)(r(d[14]).Fragment,{children:[(0,r(d[14]).jsx)(c.default,{className:"text-sm mb-1",style:{color:e.textTitle},children:"Zoom \u9023\u7d50 *"}),(0,r(d[14]).jsx)(r(d[28]).CappedTextInput,{value:E,onChangeText:M,placeholder:"https://zoom.us/j/1234567890",placeholderTextColor:e.bgLight,autoCapitalize:"none",autoCorrect:!1,keyboardType:"url",className:"p-3 rounded-xl mb-3 text-base",style:{backgroundColor:e.bgCard,color:e.textTitle}}),(0,r(d[14]).jsx)(c.default,{className:"text-sm mb-1",style:{color:e.textTitle},children:"Zoom \u6703\u8b70 ID"}
3),(0,r(d[14]).jsx)(r(d[28]).CappedTextInput,{value:he,onChangeText:ye,placeholder:"123 4567 8901",placeholderTextColor:e.bgLight,autoCapitalize:"none",className:"p-3 rounded-xl mb-3 text-base",style:{backgroundColor:e.bgCard,color:e.textTitle}}),(0,r(d[14]).jsx)(c.default,{className:"text-sm mb-1",style:{color:e.textTitle},children:"Zoom \u5bc6\u78bc"}),(0,r(d[14]).jsx)(r(d[28]).CappedTextInput,{value:ge,onChangeText:Ce,placeholder:"\u9078\u586b",placeholderTextColor:e.bgLight,autoCapitalize:"none",className:"p-3 rounded-xl mb-3 text-base",style:{backgroundColor:e.bgCard,color:e.textTitle}}),yt?(0,r(d[14]).jsx)(l.default,{className:"rounded-xl p-3 mb-3",style:{backgroundColor:e.bgCard},children:(0,r(d[14]).jsxs)(c.default,{className:"text-sm",style:{color:e.textTitle},children:["\u76ee\u524d\u6703\u4f7f\u7528",X?.zoomScheduledStartAt?'\u7cfb\u7d71\u5efa\u7acb\u7684':'\u624b\u52d5\u586b\u5165\u6216\u65e2\u6709\u7684'," Zoom \u6703\u8b70\u3002"]})}):null,gt?(0,r(d[14]).jsx)(l.default,{className:"rounded-xl p-3 mb-3",style:{backgroundColor:e.warningBg,borderWidth:1,borderColor:e.warningBorder},children:(0,r(d[14]).jsx)(c.default,{className:"text-sm",style:{color:e.warningText},children:"\u76ee\u524d\u8ab2\u7a0b\u6642\u9593\u548c\u4e0a\u6b21\u81ea\u52d5\u5efa\u7acb Zoom \u6642\u7684\u6642\u9593\u4e0d\u540c\uff0c\u6216\u5c1a\u672a\u78ba\u8a8d\u5b8c\u6574\u591a\u65e5\u6392\u7a0b\u3002\u8acb\u5148\u6838\u5c0d Zoom \u7684\u6240\u6709\u5834\u6b21\uff1b\u9700\u8981\u66f4\u63db\u9023\u7d50\u6642\u518d\u91cd\u65b0\u751f\u6210/\u66ff\u63db Zoom\u3002"})}):null,'multi_day'===re&&ft.length>1?(0,r(d[14]).jsx)(l.default,{className:"rounded-xl p-3 mb-3",style:{backgroundColor:e.bgCard},children:(0,r(d[14]).jsx)(c.default,{className:"text-sm",style:{color:e.textSubtle},children:"\u591a\u65e5\u8ab2\u7a0b\u6703\u5171\u7528\u4e00\u500b Zoom \u9023\u7d50\uff0c\u4e26\u4f9d\u5168\u90e8\u5834\u6b21\u5efa\u7acb\u6709\u9650\u6b21\u6578\u7684\u91cd\u8907\u6703\u8b70\u3002"})}):null,(0,r(d[14]).jsxs)(a.default,{onPress:()=>{At(yt?'replace_existing':'create_new')},disabled:$e||Ze,className:"rounded-xl px-4 py-3 mb-2 flex-row items-center justify-center",style:{backgroundColor:yt?(0,r(d[30]).withAlpha)(e.secondary,r(d[30]).ALPHA.badgeAlt):(0,r(d[30]).withAlpha)(e.primaryDark,r(d[30]).ALPHA.badgeAlt)},accessibilityRole:"button",accessibilityLabel:yt?'\u91cd\u65b0\u751f\u6210\u6216\u66ff\u63db Zoom \u6703\u8b70':'\u5efa\u7acb\u65b0\u7684 Zoom \u6703\u8b70',accessibilityState:{disabled:$e||Ze},children:[Ze?(0,r(d[14]).jsx)(n.default,{size:18,color:yt?e.secondary:e.success}):(0,r(d[14]).jsx)(s.default,{name:yt?'refresh':'video-camera',size:15,color:yt?e.secondary:e.success}),(0,r(d[14]).jsx)(c.default,{className:"ml-2 text-sm",style:{color:yt?e.secondary:e.success},children:Ze?'\u5efa\u7acb\u4e2d...':yt?'\u91cd\u65b0\u751f\u6210/\u66ff\u63db Zoom':'\u5efa\u7acb\u65b0\u7684 Zoom \u6703\u8b70'})]}),(0,r(d[14]).jsx)(c.default,{className:"text-xs mb-3",style:{color:e.textSubtle},children:"\u4e5f\u53ef\u4ee5\u76f4\u63a5\u4fdd\u7559\u624b\u52d5\u586b\u5beb\u7684\u56fa\u5b9a\u6703\u8b70\u8cc7\u6599\u3002"})]}),['in_person','hybrid'].includes(xe)&&!ht&&(0,r(d[14]).jsxs)(r(d[14]).Fragment,{children:[(0,r(d[14]).jsx)(c.default,{className:"text-sm mb-1",style:{color:e.textTitle},children:"\u5730\u9ede\u5730\u5740 *"}),(0,r(d[14]).jsx)(l.default,{className:"flex-row mb-2",style:{gap:8},children:[['preset','\u9810\u8a2d\u5834\u5730'],['custom','\u5176\u4ed6']].map(([t,l])=>(0,r(d[14]).jsx)(a.default,{onPress:()=>{return Ae(e=t),void('preset'!==e?Te===b&&ke(''):ke(b));var e},className:"flex-1 p-3 rounded-xl items-center",style:{backgroundColor:we===t?(0,r(d[30]).withAlpha)(e.primary,r(d[30]).ALPHA.badgeAlt):e.bgCard},accessibilityRole:"button",accessibilityLabel:`\u9078\u64c7\u5730\u9ede\u985e\u578b\u70ba${l}`,accessibilityState:{selected:we===t},children:(0,r(d[14]).jsx)(c.default,{className:"text-sm",style:{color:we===t?e.primary:e.textSubtle},children:l})},t))}),'preset'===we?(0,r(d[14]).jsxs)(l.default,{className:"rounded-xl p-3 mb-3",style:{backgroundColor:e.bgCard},children:[(0,r(d[14]).jsx)(c.default,{className:"text-base",style:{color:e.textTitle},children:b}),(0,r(d[14]).jsx)(c.default,{className:"text-xs mt-1",style:{color:e.textSubtle}
3,children:"\u5b78\u54e1\u7aef\u6703\u63d0\u4f9b\u958b\u555f\u5730\u5716\u8207\u8907\u88fd\u5730\u5740\u3002"})]}):(0,r(d[14]).jsx)(r(d[28]).CappedTextInput,{value:Te,onChangeText:ke,placeholder:"\u53f0\u5317\u5e02\u5927\u5b89\u5340...",placeholderTextColor:e.bgLight,className:"p-3 rounded-xl mb-3 text-base",style:{backgroundColor:e.bgCard,color:e.textTitle}}),(0,r(d[14]).jsx)(c.default,{className:"text-sm mb-1",style:{color:e.textTitle},children:'hybrid'===xe?'\u5be6\u9ad4\u540d\u984d\u4e0a\u9650':'\u5834\u5730\u5bb9\u91cf\uff08\u4e0a\u9650\u4eba\u6578\uff09'}),(0,r(d[14]).jsx)(r(d[28]).CappedTextInput,{value:je,onChangeText:Se,placeholder:'hybrid'===xe?'\u53ea\u9650\u5236\u5be6\u9ad4\u540d\u984d\uff1b\u7dda\u4e0a\u4e0d\u9650':'\u4e0d\u586b\u5247\u4e0d\u9650\u4eba\u6578',placeholderTextColor:e.bgLight,keyboardType:"number-pad",className:"p-3 rounded-xl mb-3 text-base",style:{backgroundColor:e.bgCard,color:e.textTitle}})]})]}),P&&(0,r(d[14]).jsx)(r(d[14]).Fragment,{children:Qe?(0,r(d[14]).jsxs)(l.default,{className:"mt-4 p-4 rounded-xl",style:{backgroundColor:e.errorBg},children:[(0,r(d[14]).jsx)(c.default,{className:"text-center mb-3",style:{color:e.error},children:"\u78ba\u5b9a\u8981\u522a\u9664\u6b64\u6d3b\u52d5\u55ce\uff1f\u6b64\u64cd\u4f5c\u7121\u6cd5\u5fa9\u539f\u3002"}),(0,r(d[14]).jsxs)(l.default,{className:"flex-row gap-3",children:[(0,r(d[14]).jsx)(a.default,{onPress:()=>We(!1),className:"flex-1 py-3 rounded-xl items-center",style:{backgroundColor:e.cardBorder},accessibilityRole:"button",accessibilityLabel:"\u53d6\u6d88\u522a\u9664\u6d3b\u52d5",children:(0,r(d[14]).jsx)(c.default,{style:{color:e.textSubtle},children:"\u53d6\u6d88"})}),(0,r(d[14]).jsx)(a.default,{onPress:async function(){if(x)try{Re(!0),await(0,r(d[20]).deleteEvent)(x),r(d[15]).router.back()}catch(e){Oe(e?.message||'\u522a\u9664\u5931\u6557'),Re(!1)}},className:"flex-1 py-3 rounded-xl items-center",style:{backgroundColor:e.error},accessibilityRole:"button",accessibilityLabel:"\u78ba\u8a8d\u522a\u9664\u6d3b\u52d5",children:(0,r(d[14]).jsx)(c.default,{style:{color:'white'},children:"\u522a\u9664"})})]})]}):(0,r(d[14]).jsx)(a.default,{onPress:()=>We(!0),className:"mt-4 py-4 items-center",accessibilityRole:"button",accessibilityLabel:"\u522a\u9664\u6d3b\u52d5",children:(0,r(d[14]).jsx)(c.default,{className:"text-red-500 text-base",children:"\u522a\u9664\u6d3b\u52d5"})})})]}),(0,r(d[14]).jsx)(o.default,{visible:Ve,onClose:()=>Xe(!1),onSelectImage:function(e){st(''),Je(e),tt('\uff08Unsplash\uff09'),Xe(!1)},title:I,category:"\u6700\u65b0\u6d3b\u52d5"})]})}},3083,[49,267,392,32,385,290,1136,1995,3036,3035,1152,3046,1916,1153,452,482,1885,1948,3038,3047,1893,3048,3084,1219,2405,2715,1882,2052,1171,1177,1924]);
4__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ZoomScheduleError",{enumerable:!0,get:function(){return t}}),e.zoomScheduleSignature=o,e.deriveMeetingSchedule=function(s,u,a){const c=n(u);if(!c.length)throw new t('missing_schedule','Enrollment event start time is required');if(c.length>60)throw new t('unsupported_recurrence','Zoom \u91cd\u8907\u6703\u8b70\u6700\u591a\u652f\u63f4 60 \u5834\uff0c\u8acb\u62c6\u5206\u6d3b\u52d5\u3002');const l=c[0],h={topic:s,startTime:new Date(l.start).toISOString().replace('.000Z','Z'),durationMinutes:l.minutes,timezone:a,scheduleSignature:o(u)};if(1===c.length)return h;const f=(c[1].start-l.start)/864e5,S=new Intl.DateTimeFormat('en-GB',{timeZone:a,hour:'2-digit',minute:'2-digit',second:'2-digit',hourCycle:'h23'});if(!Number.isInteger(f)||f<1||f>90||c.some((t,n)=>t.minutes!==l.minutes||t.start!==l.start+n*f*864e5||S.format(t.start)!==S.format(l.start)))throw new t('unsupported_recurrence','\u5404\u5834\u6b21\u9808\u70ba\u76f8\u540c\u6642\u6bb5\u3001\u6642\u9577\u8207\u56fa\u5b9a\u65e5\u671f\u9593\u9694\uff1b\u8acb\u62c6\u5206\u6d3b\u52d5\u6216\u624b\u52d5\u8a2d\u5b9a Zoom\u3002');return h.recurrence={type:1,repeat_interval:f,end_times:c.length},h},e.buildZoomMeetingCreateBody=function(t){return{topic:t.topic,type:t.recurrence?8:2,start_time:t.startTime,duration:t.durationMinutes,timezone:t.timezone,...t.recurrence?{recurrence:t.recurrence}:{},default_password:!0,settings:{push_change_to_calendar:!0}}},e.isZoomScheduleStale=function(t,s){if(!s?.zoomScheduledStartAt||!t.length)return!1;try{if(s.zoomScheduleSignature)return o(t)!==s.zoomScheduleSignature;if(t.length>1)return!0;const[u]=n(t);return u.start!==Date.parse(s.zoomScheduledStartAt)||u.minutes!==s.zoomScheduledDurationMinutes}catch{return!0}};
4class t extends Error{constructor(t,n){super(n),this.code=t}}function n(n){return n.map(n=>{const o=Date.parse(n.starts_at),s=n.ends_at?Date.parse(n.ends_at):NaN;if(!Number.isFinite(o))throw new t('missing_schedule','Enrollment event start time is required');if(!Number.isFinite(s))throw new t('missing_end_time','Enrollment event end time is required for every session');const u=(s-o)/6e4;if(!Number.isInteger(u)||u<=0||u>1440)throw new t('invalid_duration','Enrollment event duration must be between 1 and 1440 minutes');return{start:o,end:s,minutes:u}}).sort((t,n)=>t.start-n.start)}function o(t){return JSON.stringify(n(t).map(({start:t,end:n})=>[new Date(t).toISOString(),new Date(n).toISOString()]))}},3084,[]);

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.