@swiftcast/clip-editor-react 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -0
- package/dist/.gitkeep +0 -0
- package/dist/index.html +1 -0
- package/dist/mf-manifest.json +145 -0
- package/dist/mf-stats.json +161 -0
- package/dist/static/css/async/555.ecec5306.css +1 -0
- package/dist/static/css/async/__federation_expose_WorkFlow.53ab9a50.css +1 -0
- package/dist/static/js/94.8bb924bf.js +5 -0
- package/dist/static/js/async/191.6936114c.js +2 -0
- package/dist/static/js/async/191.6936114c.js.LICENSE.txt +19 -0
- package/dist/static/js/async/194.332bc870.js +1 -0
- package/dist/static/js/async/216.cb1b9c6e.js +3 -0
- package/dist/static/js/async/216.cb1b9c6e.js.LICENSE.txt +38 -0
- package/dist/static/js/async/353.3439cddc.js +175 -0
- package/dist/static/js/async/353.3439cddc.js.LICENSE.txt +144 -0
- package/dist/static/js/async/355.6845e3f8.js +3 -0
- package/dist/static/js/async/355.6845e3f8.js.LICENSE.txt +31 -0
- package/dist/static/js/async/375.bb44146a.js +1 -0
- package/dist/static/js/async/491.f4c83148.js +1 -0
- package/dist/static/js/async/510.607697e6.js +36 -0
- package/dist/static/js/async/510.607697e6.js.LICENSE.txt +677 -0
- package/dist/static/js/async/525.22a87a3f.js +1 -0
- package/dist/static/js/async/661.66ca9b8f.js +8 -0
- package/dist/static/js/async/661.66ca9b8f.js.LICENSE.txt +28 -0
- package/dist/static/js/async/682.e5205120.js +2 -0
- package/dist/static/js/async/682.e5205120.js.LICENSE.txt +9 -0
- package/dist/static/js/async/738.05cc9dc0.js +1 -0
- package/dist/static/js/async/852.b1b9d2f5.js +6 -0
- package/dist/static/js/async/852.b1b9d2f5.js.LICENSE.txt +6 -0
- package/dist/static/js/async/__federation_expose_ProjectsPage.3ac032da.js +2 -0
- package/dist/static/js/async/__federation_expose_ProjectsPage.3ac032da.js.LICENSE.txt +6 -0
- package/dist/static/js/async/__federation_expose_SniffingPage.88f9ccad.js +1 -0
- package/dist/static/js/async/__federation_expose_WorkFlow.bda3da48.js +11 -0
- package/dist/static/js/async/lib-axios.e98a138a.js +1 -0
- package/dist/static/js/clip_editor_react.7f11dacc.js +5 -0
- package/dist/static/js/index.71d0d435.js +1 -0
- package/package.json +140 -0
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunkclip_editor_react=self.webpackChunkclip_editor_react||[]).push([["375"],{11068:function(e,t,a){a.d(t,{DQ:()=>i});var o=a(53589);a(56896);let i=async e=>(console.log("入参数",e),await o.hi.post("/manage/v1/workflows/run",{...e}))},53589:function(e,t,a){a.d(t,{hi:()=>_});var o=a(72513),i=a(12722);a(31549),a(8491);let n=()=>{};var r=a(93585),s=a(71553),p=a(29055);class l extends Error{constructor(e,t){super(e),(0,o._)(this,"code",void 0),this.code=t,Object.setPrototypeOf(this,l.prototype)}}async function d(e,t){try{t={...t,headers:{Accept:"application/json","Content-Type":"application/json",Access_token:(0,p._V)()},mode:"cors"};let a=await fetch(e,t);if(401===a.status){let e=await a.json();e&&("Token has expired"===e.msg||e.message)}else a.status;return a}catch(e){throw console.log(e),e}}let _={getHostRoot(){let e="https://dev.clip.api.8600800.com";return e||window.ENV.DASHBOARD_HOST_ROOT},post:async(e,t)=>{let a=await d(`${_.getHostRoot()}${e}`,{method:"POST",body:JSON.stringify(t)}),o=await a.json();if(200==o.code)return o.data;throw(0,r.Am)({title:`请求异常,系统错误码 ${o.code}`,description:`${o.message}`,variant:"destructive",className:(0,s.cn)("top-0 right-0 flex fixed md:max-w-[420px] md:top-4 md:right-4")}),Error(o.message)},get:async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t||n(!0);let a=await d(`${_.getHostRoot()}${e}`,{method:"GET"});t||n(!1);let o=await a.json();if(200==o.code)return o.data;throw(0,r.Am)({title:`请求异常,系统错误码 ${o.code}`,description:`${o.message}`,variant:"destructive",className:(0,s.cn)("top-0 right-0 flex fixed md:max-w-[420px] md:top-4 md:right-4")}),new l(o.message,o.code)},refreshToken:async()=>{if(!localStorage.getItem("refresh_token"))return!1;let e={url:"/refresh_token",method:"GET",headers:{Authorization:`Bearer ${localStorage.getItem("refresh_token")}`},validateStatus:void 0},t=await i.Z.request(e),a=t.data;return 200===t.status&&!!a&&!!a.access_token&&(localStorage.setItem("access_token",a.access_token),!0)}}},69114:function(e,t,a){a(53589)},27649:function(e,t,a){var o=a(31549),i=a(8491),n=a.n(i),r=a(8082),s=a(38137),p=a(91299),l=a(79530),d=a(58026);function _(e){return(0,o.jsx)(p.iL,{children:(0,o.jsx)(d.aH,{client:l.E,children:(0,o.jsx)(s.Z,{...e})})})}var c=a(19813);function u(e){return(0,o.jsx)(p.iL,{children:(0,o.jsx)(d.aH,{client:l.E,children:(0,o.jsx)(c.Z,{...e})})})}let m=document.getElementById("root");m&&r.createRoot(m).render((0,o.jsx)(n().StrictMode,{children:(0,o.jsx)(()=>(0,o.jsxs)("div",{className:"content",children:[(0,o.jsx)(_,{}),(0,o.jsx)(u,{})]}),{})}))},85515:function(e,t,a){a.d(t,{IR:()=>_,PP:()=>c});var o=a(31549),i=a(30911),n=a(18319),r=a(51655),s=a(27292),p=a(19576),l=a(52711),d=a(28266);let _={text2image:{is_run_task:!0,task_type_name:"keling",limit_task_running:2,sub_task_type_enum:[{value:"midjourney",label:"Midjourney"},{value:"gpt_image_generation",label:"GPT Image Generation"}],inputs:[{name:"text",property_type:"string",property_key:"prompt",run_task_mapping_key:"midjourney_prompt",optional:!0,primary:!0},{name:"text_for_midjourney_refer",property_type:"string",property_key:"prompt_mat_image_refer_type",run_task_mapping_key:"midjourney_prompt_mat_image_refer_type",optional:!0},{name:"text_canvas_ratio",property_type:"string",property_key:"prompt_aspect_ratio",run_task_mapping_key:"midjourney_prompt_aspect_ratio",optional:!0},{name:"image_for_midjourney_refer",property_type:"string",property_key:"prompt_mat_image_path",run_task_mapping_key:"midjourney_prompt_mat_image_path",optional:!0}],outputs:[{name:"image",property_type:"array",property_key:"output",optional:!0},{name:"select_index",property_type:"number",property_key:"select_index",optional:!0}]},download_video:{is_run_task:!0,task_type_name:"download_video",inputs:[{name:"text_douyin_video_link",property_type:"string",property_key:"input",run_task_mapping_key:"download_video_link",optional:!0}],outputs:[{name:"video",property_type:"string",property_key:"output",optional:!0}]},image2text:{is_run_task:!0,task_type_name:"cui",inputs:[{name:"image",property_type:"string",property_key:"input",optional:!0}],outputs:[{name:"text",property_type:"string",property_key:"output",optional:!0}]},image2video:{is_run_task:!0,limit_task_running:1,task_type_name:"keling",defaults:{input_model_selected:"keling_1_6",input_keling_quality:"standard"},sub_task_type_enum:[{value:"wanxiang_2_1_480p",label:"input_select_items_1"},{value:"wanxiang_2_1_720p",label:"input_select_items_2"},{value:"cog_video_1_5",label:"input_select_items_3",disable:!0},{value:"keling_1_6",label:"input_select_items_4",default:!0},{value:"keling_2_0",label:"input_select_items_8"},{value:"keling_1_6_acecloud",label:"input_select_items_6"},{value:"keling_1_0",label:"input_select_items_5"},{value:"hailuo_acecloud",label:"input_select_items_7",disable:!0}],inputs:[{name:"text",property_type:"string",property_key:"prompt",run_task_mapping_key:"keling_prompt",optional:!1},{name:"image",property_type:"string",property_key:"input",run_task_mapping_key:"keling_image_url",optional:!1,primary:!0},{name:"image_tail",property_type:"string",property_key:"input_image_tail",run_task_mapping_key:"keling_image_tail_url",optional:!1}],outputs:[{name:"video",property_type:"string",property_key:"output",optional:!0}]},video2clip:{is_run_task:!0,task_type_name:"clip",inputs:[{name:"text",property_type:"string",property_key:"clip_sub_title_path",run_task_mapping_key:"clip_sub_title_path",optional:!0},{name:"video",property_type:"string",property_key:"input",run_task_mapping_key:"clip_video_path",optional:!0,primary:!0}],outputs:[{name:"video",property_type:"string",property_key:"output",optional:!0}]},fabric2clip:{is_run_task:!0,task_type_name:"fabric2clip",inputs:[{name:"image",property_type:"string",property_key:"input_image",run_task_mapping_key:"fabric_image_path",optional:!0},{name:"video",property_type:"string",property_key:"input",run_task_mapping_key:"fabric_video_path",optional:!0,primary:!0}],outputs:[{name:"video",property_type:"string",property_key:"output",optional:!0}]},image:{is_run_task:!1,inputs:[{name:"image",property_type:"string",property_key:"input",optional:!0}],outputs:[{name:"image",property_type:"string",property_key:"output",optional:!0}],available_alternative_tasks:["image2static_video"]},image_tail:{is_run_task:!1,inputs:[{name:"image",property_type:"string",property_key:"input",run_task_mapping_key:"output_image_tail",optional:!0}],outputs:[{name:"image_tail",property_type:"string",property_key:"output_image_tail",optional:!0}]},image_mark:{is_run_task:!1,inputs:[],outputs:[{name:"image_mark",property_type:"string",property_key:"output_image_mark",optional:!0}]},image_for_text_2_image:{is_run_task:!1,inputs:[{name:"image",property_type:"string",property_key:"input",run_task_mapping_key:"output_image_for_midjourney_refer",optional:!0}],outputs:[{name:"image_for_midjourney_refer",property_type:"string",property_key:"output_image_for_midjourney_refer",optional:!0},{name:"text_for_midjourney_refer",property_type:"string",property_key:"output_text_for_midjourney_refer",optional:!0}]},image_prompt_enhance:{is_run_task:!0,inputs:[{name:"text",property_type:"string",property_key:"input_prompt",optional:!0},{name:"image",property_type:"string",property_key:"input",optional:!0,primary:!0}],outputs:[{name:"text",property_type:"string",property_key:"output",optional:!0}]},image2static_video:{is_run_task:!0,inputs:[{name:"image",property_type:"string",property_key:"input",optional:!0}],outputs:[{name:"video",property_type:"string",property_key:"output",optional:!0}]},image2zoom_in:{is_run_task:!0,inputs:[{name:"image",property_type:"string",property_key:"input",optional:!0}],outputs:[{name:"image",property_type:"string",property_key:"output",optional:!0}]},text:{is_run_task:!1,inputs:[{name:"text",property_type:"string",property_key:"input",optional:!0}],outputs:[{name:"text",property_type:"string",property_key:"output",optional:!0}]},video:{is_run_task:!1,inputs:[{name:"video",property_type:"string",property_key:"input",optional:!0}],outputs:[{name:"video",property_type:"string",property_key:"output",optional:!0}],available_alternative_tasks:["extract_video","extract_video_to_image","extract_video_to_image_end"]},extract_video:{is_run_task:!0,inputs:[{name:"video",property_type:"string",property_key:"input",run_task_mapping_key:"extract_video_path",optional:!0}],outputs:[{name:"audio",property_type:"string",property_key:"output_audio",run_task_mapping_key:"output_audio",optional:!0}]},extract_video_to_image:{is_run_task:!0,inputs:[{name:"video",property_type:"string",property_key:"input",run_task_mapping_key:"extract_video_path",optional:!0}],outputs:[{name:"image",property_type:"string",property_key:"output_image",run_task_mapping_key:"output_image",optional:!0}]},extract_video_to_image_end:{is_run_task:!0,inputs:[{name:"video",property_type:"string",property_key:"input",run_task_mapping_key:"extract_video_path",optional:!0}],outputs:[{name:"image",property_type:"string",property_key:"output_image",run_task_mapping_key:"output_image",optional:!0}]},audio2clip:{is_run_task:!0,inputs:[{name:"audio",property_type:"string",property_key:"input_audio",run_task_mapping_key:"audio_clip_audio_path",optional:!1,primary:!0},{name:"video",property_type:"string",property_key:"input",run_task_mapping_key:"audio_clip_video_path",optional:!1}],outputs:[{name:"video",property_type:"string",property_key:"output",optional:!0}]},audio:{is_run_task:!1,inputs:[{name:"audio",property_type:"string",property_key:"input",optional:!0}],outputs:[{name:"audio",property_type:"string",property_key:"output",optional:!0}]},template_default:{is_run_task:!1,inputs:[],outputs:[]},script_master:{is_run_task:!0,inputs:[{name:"text",property_type:"string",property_key:"input_gpt_content",optional:!0}],outputs:[{name:"text",property_type:"string",property_key:"output",optional:!0}]},llm_tool:{is_run_task:!0,task_type_name:"llm_task",inputs:[{name:"text",property_type:"string",property_key:"input_gpt_content",optional:!0,primary:!0},{name:"image",property_type:"string",property_key:"input_attachments_image",optional:!0},{name:"image_tail",property_type:"string",property_key:"llm_input_attachment_image_tail",optional:!0}],outputs:[{name:"text",property_type:"string",property_key:"output",optional:!0}]},llm_translate:{is_run_task:!0,task_type_name:"llm_task",sub_task_type_enum:[{value:"gpt-4o-mini",label:"gpt4omini"},{value:"claude-3-7-sonnet-20250219",label:"claude37"}],inputs:[{name:"text",property_type:"string",property_key:"input_gpt_content",optional:!0}],outputs:[{name:"text",property_type:"string",property_key:"output",optional:!0}]},llm_content_split:{is_run_task:!0,task_type_name:"llm_task",inputs:[{name:"text",property_type:"string",property_key:"input_gpt_content",optional:!0}],outputs:[{name:"text",property_type:"array",property_key:"output",optional:!0}]},publish:{is_run_task:!0,task_type_name:"publish_task",inputs:[{name:"text",property_type:"string",property_key:"input_title",optional:!0},{name:"video",property_type:"string",property_key:"input",optional:!0,primary:!0}],outputs:[{name:"text_douyin_video_link",property_type:"string",property_key:"input",optional:!0}]},comb_source:{is_run_task:!0,task_type_name:"combo_clip",inputs:[{name:"video",property_type:"array",property_key:"input",optional:!0}],outputs:[{name:"video",property_type:"string",property_key:"output",optional:!0}]},comb_text_source:{is_run_task:!0,task_type_name:"text_splitter",inputs:[{name:"text",property_type:"array",property_key:"input",optional:!0}],outputs:[{name:"text",property_type:"string",property_key:"output",optional:!0}]},audio_generate:{is_run_task:!0,task_type_name:"cui",inputs:[{name:"text",property_type:"string",property_key:"audio_prompt",optional:!0}],outputs:[{name:"audio",property_type:"string",property_key:"output",optional:!0}]},clone_image_like:{is_run_task:!0,task_type_name:"cui",inputs:[{name:"image",property_type:"string",property_key:"input",optional:!0,primary:!0},{name:"text",property_type:"string",property_key:"input_prompt",optional:!0}],outputs:[{name:"image",property_type:"string",property_key:"output",optional:!0}]},image_cut_out:{is_run_task:!0,task_type_name:"cui",inputs:[{name:"image",property_type:"string",property_key:"input",optional:!0,primary:!0},{name:"text",property_type:"string",property_key:"input_prompt",optional:!0}],outputs:[]},canvas_ratio:{is_run_task:!1,inputs:[],outputs:[{name:"text_canvas_ratio",property_type:"string",property_key:"output_text_canvas_ratio",optional:!0}]},tts_audio:{is_run_task:!0,task_type_name:"tts",inputs:[{name:"text",property_type:"string",property_key:"tts_fish_audio_text",optional:!0}],outputs:[{name:"audio",property_type:"string",property_key:"output",optional:!1}]},data_resource:{is_run_task:!0,task_type_name:"extract_data",inputs:[{name:"text",property_type:"string",property_key:"input",optional:!0,primary:!0},{name:"text",property_type:"string",property_key:"input_columns",optional:!0}],outputs:[{name:"text",property_type:"array",property_key:"output",optional:!0}]}},c={clip:[{icon:(0,o.jsx)(i.Z,{className:"h-4 w-4"}),label:"subtitle_synthesis",task_type:"video2clip",description:"在视频中嵌入字幕"},{icon:(0,o.jsx)(i.Z,{className:"h-4 w-4"}),label:"audio_synthesis",task_type:"audio2clip",description:"在视频中嵌入音频"},{icon:(0,o.jsx)(i.Z,{className:"h-4 w-4"}),label:"shot_synthesis",task_type:"comb_source",description:"合并多个视频文件"},{icon:(0,o.jsx)(i.Z,{className:"h-4 w-4"}),label:"shot_text_synthesis",task_type:"comb_text_source",description:"合并多个文本"},{icon:(0,o.jsx)(i.Z,{className:"h-4 w-4"}),label:"fabric_synthesis",task_type:"fabric2clip",description:"贴纸合成到图片"}],generate:[{icon:(0,o.jsx)("img",{src:"https://unpkg.com/@lobehub/icons-static-svg@1.16.0/icons/midjourney.svg",className:"h-4 w-4"}),label:"text_to_image",task_type:"text2image",description:"使用Midjourney 文本到图像生成"},{icon:(0,o.jsx)(n.Z,{className:"h-4 w-4"}),label:"image_to_video",task_type:"image2video",description:"支持可灵、SkyReels 图生视频合成"},{icon:(0,o.jsx)(n.Z,{className:"h-4 w-4"}),label:"image_to_static_video",task_type:"image2static_video",description:"图像生成静态镜头"},{icon:(0,o.jsx)(r.Z,{className:"h-4 w-4"}),label:"image_replication",task_type:"clone_image_like",description:"图像克隆生成近似图片"},{icon:(0,o.jsx)(r.Z,{className:"h-4 w-4"}),label:"image_hd_zoom",task_type:"image2zoom_in",description:"图像高清放大"},{icon:(0,o.jsx)(r.Z,{className:"h-4 w-4"}),label:"image_to_video_prompt_enhancement",task_type:"image_prompt_enhance",description:""},{icon:(0,o.jsx)(r.Z,{className:"h-4 w-4"}),label:"intelligent_matting",task_type:"image_cut_out",description:""},{icon:(0,o.jsx)(n.Z,{className:"h-4 w-4"}),label:"image_to_description",task_type:"image2text",description:"图片生成文本解释"},{icon:(0,o.jsx)(n.Z,{className:"h-4 w-4"}),label:"get_audio",task_type:"extract_video",description:"从视频抽取音频内容"},{icon:(0,o.jsx)(n.Z,{className:"h-4 w-4"}),label:"get_first_frame",task_type:"extract_video_to_image",description:"从视频抽取首帧为图片"},{icon:(0,o.jsx)(n.Z,{className:"h-4 w-4"}),label:"get_last_frame",task_type:"extract_video_to_image_end",description:"从视频抽取尾帧为图片"},{icon:(0,o.jsx)(s.Z,{className:"h-4 w-4"}),label:"sound_effect_generation",task_type:"audio_generate",description:"音频语料接口"},{icon:(0,o.jsx)(p.Z,{className:"h-4 w-4"}),label:"voice_generation_tts",task_type:"tts_audio",description:"FishAudio 语音生成接口"}],media:[{icon:(0,o.jsx)(d.G,{icon:["fas","font"],className:"h-4 w-4"}),label:"text",task_type:"text",description:"编辑文本内容"},{icon:(0,o.jsx)(r.Z,{className:"h-4 w-4"}),label:"image",task_type:"image",description:"上传图片资源"},{icon:(0,o.jsx)(l.Z,{className:"h-4 w-4"}),label:"music",task_type:"audio",description:"上传音频资源"},{icon:(0,o.jsx)(n.Z,{className:"h-4 w-4"}),label:"video",task_type:"video",description:"上传视频资源"},{icon:(0,o.jsx)(d.G,{icon:"fa-solid fa-server"}),label:"data_source",task_type:"data_resource",description:"多维表"},{icon:(0,o.jsx)(d.G,{icon:["fab","tiktok"],className:"h-4 w-4"}),label:"video_download",task_type:"download_video",description:"下载视频"}],refer:[{icon:(0,o.jsx)(r.Z,{className:"h-4 w-4"}),label:"underlay_image",task_type:"image_for_text_2_image",description:"上传图片转换 Midjourney 参数"},{icon:(0,o.jsx)(r.Z,{className:"h-4 w-4"}),label:"image_tail",task_type:"image_tail",description:"当需要图片的位置,这张图将是尾图"},{icon:(0,o.jsx)(r.Z,{className:"h-4 w-4"}),label:"image_mark",task_type:"image_mark",description:"遮罩编辑器,同comfyui"},{icon:(0,o.jsx)(r.Z,{className:"h-4 w-4"}),label:"aspect_ratio",task_type:"canvas_ratio",description:"midjourney 的图片参考尺寸"}],story:[{icon:(0,o.jsx)(d.G,{icon:"fa-solid fa-wand-magic-sparkles"}),label:"ai_assistant",task_type:"llm_tool",description:"大模型使用"},{icon:(0,o.jsx)(d.G,{icon:"fa-solid fa-wand-magic-sparkles"}),label:"ai_translation_en",task_type:"llm_translate",description:"大模型使用"}],template:[{icon:(0,o.jsx)(d.G,{icon:"fa-brands fa-figma"}),label:"default_video_template",task_type:"template_default",description:"编写和管理脚本"},{icon:(0,o.jsx)(d.G,{icon:"fa-brands fa-figma"}),label:"all_components_demo",task_type:"template_all_demo",description:""}],publish:[{icon:(0,o.jsx)(d.G,{icon:["fab","tiktok"],className:"h-4 w-4"}),label:"publish_to_tiktok",task_type:"publish",description:"编写和管理脚本"}],cui:[]}},5898:function(e,t,a){a.d(t,{Wx:()=>o}),a(39378),a(11068),a(69114),a(56896),a(93585),a(84025),a(26705);let o=()=>localStorage.getItem("language")?localStorage.getItem("language"):"en"},26705:function(e,t,a){var o=a(31549),i=a(85515),n=a(78271),r=a(13285),s=a(45668),p=a(39378),l=a.n(p),d=a(53093),_=a(12283);(0,d.U)((e,t)=>({nodes:[],edges:[],apiStatistics:{},project:null,mode:"default",workflow:[],historyStackRedo:[],historyStackUndo:[],nodeTemplates:i.IR,cuiNodeTemplates:{},WorkFlowNodeSchema:i.PP,getNodeTemplate:e=>t().nodeTemplates[e],addNodeTemplate:(t,a)=>{e(e=>({...e,nodeTemplates:{...e.nodeTemplates,[t]:a}}))},addCuiNodeTemplate:(a,i)=>{let n=`cui_${i.cui_workflow_id}`;if(t().nodeTemplates[n])return;let r={icon:(0,o.jsx)(_.Z,{className:"h-4 w-4"}),label:a,task_type:n,description:a};e(e=>({...e,nodeTemplates:{...e.nodeTemplates,[n]:i},cuiNodeTemplates:{...e.cuiNodeTemplates,[n]:i},WorkFlowNodeSchema:{...e.WorkFlowNodeSchema,cui:[...e.WorkFlowNodeSchema.cui||[],r]}}))},resetCuiNodeTemplate:()=>{e(e=>({...e,nodeTemplates:i.IR,cuiNodeTemplates:{},WorkFlowNodeSchema:i.PP}))},updateNodeTemplate:(t,a)=>{e(e=>({...e,nodeTemplates:{...e.nodeTemplates,[t]:{...e.nodeTemplates[t],...a}}}))},getWorkFlowNodeSchema:()=>t().WorkFlowNodeSchema,setViewMode:t=>{e({mode:t})},isDebugViewMode:()=>"debug"===t().mode,setProject:t=>{e({project:t})},setWorkflow:t=>{e({workflow:t})},onNodesChange:a=>{e({nodes:(0,r.Fb)(a,t().nodes)})},onEdgesChange:a=>{e({edges:(0,r.yn)(a,t().edges)})},onConnect:a=>{let o={...a,data:{targetPort:{edges:1,portIndex:0,portCount:0,edgeIndex:0,edgeCount:0},sourcePort:{edges:1,portIndex:0,portCount:0,edgeIndex:0,edgeCount:0}},type:"dragHandleNode"};e({edges:(0,s.Z_)(o,t().edges)});let i=l().cloneDeep(t().historyStackUndo);i.push({edges:[o],nodes:[],action:"insert"}),e({historyStackUndo:i})},setNodes:t=>{e({nodes:t})},setApiStatistics:t=>{e({apiStatistics:t})},setEdges:t=>{e({edges:t})},onUndo:()=>{let a=l().cloneDeep(t().historyStackUndo),o=a.pop();if(o){let i=o.edges.map(e=>e.id),n=o.nodes.map(e=>e.id);if("insert"===o.action){let r=t().edges.filter(e=>!i.includes(e.id)),s=t().nodes.filter(e=>!n.includes(e.id)),p=t().historyStackRedo;p.push({...o,action:"delete"}),e({edges:r,nodes:s,historyStackUndo:a,historyStackRedo:p})}else if("delete"===o.action){let i=t().edges.concat(o.edges),n=t().nodes.concat(o.nodes),r=t().historyStackRedo;r.push({...o,action:"insert"}),e({edges:i,nodes:n,historyStackUndo:a,historyStackRedo:r})}}console.info(a)},onRedo:()=>{let a=l().cloneDeep(t().historyStackRedo),o=a.pop();if(o){let i=o.edges.map(e=>e.id),n=o.nodes.map(e=>e.id);if("insert"===o.action){let r=t().edges.filter(e=>!i.includes(e.id)),s=t().nodes.filter(e=>!n.includes(e.id)),p=t().historyStackUndo;p.push({...o,action:"insert"}),e({edges:r,nodes:s,historyStackUndo:p,historyStackRedo:a})}else if("delete"===o.action){let i=t().edges.concat(o.edges),n=t().nodes.concat(o.nodes),r=t().historyStackUndo;r.push({...o,action:"insert"}),e({edges:i,nodes:n,historyStackUndo:r,historyStackRedo:a})}}console.info(a)},onAddNewNode:(a,o)=>{let i=o.parentId,r=`node-${(0,n.Vj)()}`,p={id:r,type:"dragHandleNode",task_type:a,data:{id:r,type:"dragHandleNode",task_type:a,sourceHandles:[],targetHandles:[],...o.data},position:o.position?o.position:{x:0,y:0}};e({nodes:t().nodes.concat(p)});let d={nodes:[p],edges:[],action:"insert"};if(i){let a={...{source:i,sourceHandle:`${i}#source#0`,target:r,targetHandle:`${r}#target#0`},id:`${i}#${r}#0`,data:{targetPort:{edges:1,portIndex:0,portCount:0,edgeIndex:0,edgeCount:0},sourcePort:{edges:1,portIndex:0,portCount:0,edgeIndex:0,edgeCount:0}},type:"dragHandleNode"};e({edges:(0,s.Z_)(a,t().edges)}),d.edges.push(a)}let _=l().cloneDeep(t().historyStackUndo);return _.push(d),e({historyStackUndo:_}),{nodes:t().nodes,edges:t().edges,newNode:p}}}))},30157:function(e,t,a){a.d(t,{z:()=>l});var o=a(31549),i=a(40349),n=a(68621),r=a(8491),s=a(71553);let p=(0,n.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-zinc-950 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 dark:focus-visible:ring-zinc-300",{variants:{variant:{default:"bg-zinc-900 text-zinc-50 shadow-sm hover:bg-zinc-900/90 dark:bg-zinc-50 dark:text-zinc-900 dark:hover:bg-zinc-50/90",destructive:"bg-red-500 text-zinc-50 shadow-xs hover:bg-red-500/90 dark:bg-red-900 dark:text-zinc-50 dark:hover:bg-red-900/90",outline:"border border-zinc-200 bg-white shadow-xs hover:bg-zinc-100 hover:text-zinc-900 dark:border-zinc-800 dark:bg-zinc-950 dark:hover:bg-zinc-800 dark:hover:text-zinc-50",secondary:"bg-zinc-100 text-zinc-900 shadow-xs hover:bg-zinc-100/80 dark:bg-zinc-800 dark:text-zinc-50 dark:hover:bg-zinc-800/80",ghost:"hover:bg-zinc-100 hover:text-zinc-900 dark:hover:bg-zinc-800 dark:hover:text-zinc-50",link:"text-zinc-900 underline-offset-4 hover:underline dark:text-zinc-50"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=r.forwardRef((e,t)=>{let{className:a,variant:n,size:r,asChild:l=!1,...d}=e,_=l?i.g7:"button";return(0,o.jsx)(_,{className:(0,s.cn)(p({variant:n,size:r,className:a})),ref:t,...d})});l.displayName="Button"},53701:function(e,t,a){a.d(t,{Zb:()=>r});var o=a(31549),i=a(8491),n=a(71553);let r=i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,o.jsx)("div",{ref:t,className:(0,n.cn)("rounded-xl border border-zinc-200 bg-white text-zinc-950 shadow-sm dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50",a),...i})});r.displayName="Card",i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,o.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",a),...i})}).displayName="CardHeader",i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,o.jsx)("div",{ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",a),...i})}).displayName="CardTitle",i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,o.jsx)("div",{ref:t,className:(0,n.cn)("text-sm text-zinc-500 dark:text-zinc-400",a),...i})}).displayName="CardDescription",i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,o.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",a),...i})}).displayName="CardContent",i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,o.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",a),...i})}).displayName="CardFooter"},30929:function(e,t,a){a.d(t,{$N:()=>m,Be:()=>y,Vq:()=>p,cN:()=>u,cZ:()=>_,fK:()=>c});var o=a(31549),i=a(73752),n=a(5533),r=a(8491),s=a(71553);let p=i.fC;i.xz;let l=i.h_;i.x8;let d=r.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,o.jsx)(i.aV,{ref:t,className:(0,s.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...n})});d.displayName=i.aV.displayName;let _=r.forwardRef((e,t)=>{let{className:a,children:r,...p}=e;return(0,o.jsxs)(l,{children:[(0,o.jsx)(d,{}),(0,o.jsxs)(i.VY,{ref:t,className:(0,s.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-zinc-200 bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg dark:border-zinc-800 dark:bg-zinc-950",a),...p,children:[r,(0,o.jsxs)(i.x8,{className:"absolute right-4 top-4 rounded-xs opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-zinc-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-zinc-100 data-[state=open]:text-zinc-500 dark:ring-offset-zinc-950 dark:focus:ring-zinc-300 dark:data-[state=open]:bg-zinc-800 dark:data-[state=open]:text-zinc-400",children:[(0,o.jsx)(n.Z,{className:"h-4 w-4"}),(0,o.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});_.displayName=i.VY.displayName;let c=e=>{let{className:t,...a}=e;return(0,o.jsx)("div",{className:(0,s.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...a})};c.displayName="DialogHeader";let u=e=>{let{className:t,...a}=e;return(0,o.jsx)("div",{className:(0,s.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a})};u.displayName="DialogFooter";let m=r.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,o.jsx)(i.Dx,{ref:t,className:(0,s.cn)("text-lg font-semibold leading-none tracking-tight",a),...n})});m.displayName=i.Dx.displayName;let y=r.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,o.jsx)(i.dk,{ref:t,className:(0,s.cn)("text-sm text-zinc-500 dark:text-zinc-400",a),...n})});y.displayName=i.dk.displayName},17511:function(e,t,a){a.d(t,{$F:()=>_,AW:()=>c,Xi:()=>u,bO:()=>m,h_:()=>d});var o=a(31549),i=a(47487),n=a(41660),r=a(95851),s=a(45942),p=a(8491),l=a(71553);let d=i.fC,_=i.xz;i.ZA,i.Uv,i.Tr,i.Ee,p.forwardRef((e,t)=>{let{className:a,inset:r,children:s,...p}=e;return(0,o.jsxs)(i.fF,{ref:t,className:(0,l.cn)("flex cursor-default gap-2 select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden focus:bg-zinc-100 data-[state=open]:bg-zinc-100 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 dark:focus:bg-zinc-800 dark:data-[state=open]:bg-zinc-800",r&&"pl-8",a),...p,children:[s,(0,o.jsx)(n.Z,{className:"ml-auto"})]})}).displayName=i.fF.displayName,p.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,o.jsx)(i.tu,{ref:t,className:(0,l.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 bg-white p-1 text-zinc-950 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50",a),...n})}).displayName=i.tu.displayName;let c=p.forwardRef((e,t)=>{let{className:a,sideOffset:n=4,...r}=e;return(0,o.jsx)(i.Uv,{children:(0,o.jsx)(i.VY,{ref:t,sideOffset:n,className:(0,l.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 bg-white p-1 text-zinc-950 shadow-md dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...r})})});c.displayName=i.VY.displayName;let u=p.forwardRef((e,t)=>{let{className:a,inset:n,...r}=e;return(0,o.jsx)(i.ck,{ref:t,className:(0,l.cn)("relative flex cursor-default select-none items-center gap-2 rounded-xs px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-zinc-100 focus:text-zinc-900 data-disabled:pointer-events-none data-disabled:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0 dark:focus:bg-zinc-800 dark:focus:text-zinc-50",n&&"pl-8",a),...r})});u.displayName=i.ck.displayName;let m=p.forwardRef((e,t)=>{let{className:a,children:n,checked:s,...p}=e;return(0,o.jsxs)(i.oC,{ref:t,className:(0,l.cn)("relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-zinc-100 focus:text-zinc-900 data-disabled:pointer-events-none data-disabled:opacity-50 dark:focus:bg-zinc-800 dark:focus:text-zinc-50",a),checked:s,...p,children:[(0,o.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,o.jsx)(i.wU,{children:(0,o.jsx)(r.Z,{className:"h-4 w-4"})})}),n]})});m.displayName=i.oC.displayName,p.forwardRef((e,t)=>{let{className:a,children:n,...r}=e;return(0,o.jsxs)(i.Rk,{ref:t,className:(0,l.cn)("relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-zinc-100 focus:text-zinc-900 data-disabled:pointer-events-none data-disabled:opacity-50 dark:focus:bg-zinc-800 dark:focus:text-zinc-50",a),...r,children:[(0,o.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,o.jsx)(i.wU,{children:(0,o.jsx)(s.Z,{className:"h-2 w-2 fill-current"})})}),n]})}).displayName=i.Rk.displayName,p.forwardRef((e,t)=>{let{className:a,inset:n,...r}=e;return(0,o.jsx)(i.__,{ref:t,className:(0,l.cn)("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",a),...r})}).displayName=i.__.displayName,p.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,o.jsx)(i.Z0,{ref:t,className:(0,l.cn)("-mx-1 my-1 h-px bg-zinc-100 dark:bg-zinc-800",a),...n})}).displayName=i.Z0.displayName},93585:function(e,t,a){a.d(t,{Am:()=>m,L$:()=>c,S3:()=>u,x9:()=>_}),a(8491);var o=a(71553);let i=0,n=new Map,r=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},s=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?r(a):e.toasts.forEach(e=>{r(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},p=[],l={toasts:[]};function d(e){l=s(l,e),p.forEach(e=>{e(l)})}let _=e=>{m({title:`成功`,description:e,variant:"success",className:(0,o.cn)("top-2 right-2 flex fixed md:max-w-[420px] md:top-4 md:right-4")})},c=e=>{m({title:`提示`,description:e,variant:"default",className:(0,o.cn)("top-2 right-2 flex fixed md:max-w-[420px] md:top-4 md:right-4")})},u=e=>{m({title:`失败`,description:e,variant:"destructive",className:(0,o.cn)("top-2 right-2 flex fixed md:max-w-[420px] md:top-4 md:right-4")})};function m(e){let{...t}=e,a=(i=(i+1)%Number.MAX_SAFE_INTEGER).toString(),o=()=>d({type:"DISMISS_TOAST",toastId:a});return d({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||o()}}}),{id:a,dismiss:o,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:a}})}}},71553:function(e,t,a){a.d(t,{U_:()=>u,Zv:()=>c,cn:()=>l,eF:()=>d,n6:()=>_});var o=a(10976),i=a(39378),n=a.n(i),r=a(84025),s=a.n(r),p=a(67946);function l(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,p.m6)((0,o.W)(t))}a(48165),s().locale("zn-cn");let d=e=>{let t,a;a=(t=e||{}).current?s().utc(t.current):s().utc(),n().isEmpty(t.format)&&(t.format="MM月DD日 LTS");let o=a.locale("zn-cn");return t.offset?`${o.add(-t.offset,"day").format(t.format)} `:`${o.format(t.format)} `},_=e=>Object.fromEntries(new URLSearchParams(e.split("?")[1]).entries());function c(e,t){if(null==e)return 0;let a=e.toString().split(".")[0];if(a.length<5)return a;if(a.length>=5&&a.length<=8){let o=a.substring(a.length-4,a.length-4+t);return`${parseFloat(`${parseInt(`${e/1e4}`)}.${o}`)}万`}if(a.length>8){let o=a.substring(a.length-8,a.length-8+t);return`${parseFloat(`${parseInt(`${e/1e8}`)}.${o}`)}亿`}}function u(e,t){let a={};return Object.keys(e).forEach(o=>{Object.keys(t).forEach(i=>{o==i&&(a[t[i]]=e[o])})}),a}}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunkclip_editor_react=self.webpackChunkclip_editor_react||[]).push([["491"],{52099:function(e,t,s){s.d(t,{u:()=>a});var l=s(31549),i=s(34778);s(8491);var r=s(71553),n=s(65005);let a=e=>{let{children:t,content:s,tooltipContentClassName:a}=e;return(0,l.jsxs)("div",{className:"inline-flex whitespace-nowrap justify-center items-center w-fit",children:[t,(0,l.jsx)(n.pn,{children:(0,l.jsxs)(n.u,{children:[(0,l.jsx)(n.aJ,{className:"inline-flex w-fit",children:(0,l.jsx)(i.Z,{className:"ml-1",size:15})}),(0,l.jsx)(n._v,{className:(0,r.cn)("max-w-60 overflow-y-auto h-full",a),children:(0,l.jsx)("div",{children:s})})]})})]})}},38137:function(e,t,s){s.d(t,{Z:()=>eg});var l=s(31549),i=s(53589),r=s(71553);let n=async(e,t)=>{try{let s=`/sniffing/account/${e.replace(" ","")}/${t}`;return await i.hi.get(s)}catch(e){console.error("Error fetching video posts:",e)}},a=async(e,t)=>{try{let s=`/sniffing/video/${e.replace(" ","")}/${t}`;return await i.hi.get(s)}catch(e){console.error("Error fetching video posts:",e)}};var c=s(40349),o=s(41660),d=(s(65535),s(8491)),u=s.n(d);let m=d.forwardRef((e,t)=>{let{...s}=e;return(0,l.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...s})});m.displayName="Breadcrumb";let x=d.forwardRef((e,t)=>{let{className:s,...i}=e;return(0,l.jsx)("ol",{ref:t,className:(0,r.cn)("flex flex-wrap items-center gap-1.5 break-words text-sm text-zinc-500 sm:gap-2.5 dark:text-zinc-400",s),...i})});x.displayName="BreadcrumbList";let h=d.forwardRef((e,t)=>{let{className:s,...i}=e;return(0,l.jsx)("li",{ref:t,className:(0,r.cn)("inline-flex items-center gap-1.5",s),...i})});h.displayName="BreadcrumbItem";let f=d.forwardRef((e,t)=>{let{asChild:s,className:i,...n}=e,a=s?c.g7:"a";return(0,l.jsx)(a,{ref:t,className:(0,r.cn)("transition-colors hover:text-zinc-950 dark:hover:text-zinc-50",i),...n})});f.displayName="BreadcrumbLink";let j=d.forwardRef((e,t)=>{let{className:s,...i}=e;return(0,l.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:(0,r.cn)("font-normal font-semibold text-zinc-950 text- dark:text-zinc-50",s),...i})});j.displayName="BreadcrumbPage";let g=e=>{let{children:t,className:s,...i}=e;return(0,l.jsx)("li",{role:"presentation","aria-hidden":"true",className:(0,r.cn)("[&>svg]:w-3.5 [&>svg]:h-3.5",s),...i,children:t??(0,l.jsx)(o.Z,{})})};g.displayName="BreadcrumbSeparator";var p=s(57282);let v=e=>{let{data_type:t,links:s,children:i}=e;function r(e,s){return"account_add_sniffing"==e?(0,l.jsx)(f,{href:"http://dev.swfitcast.ai:8001/swfitcast_admin/",children:s}):t!=e?(0,l.jsx)(f,{href:`?data_type=${e}`,children:s}):(0,l.jsx)(j,{children:s})}return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"h-10 px-4 w-full inline-flex items-center justify-between",children:[(0,l.jsx)(m,{children:(0,l.jsxs)(x,{children:[(0,l.jsx)(h,{children:r(s[0].key,s[0].value)},"crumb-0"),s.slice(1).map((e,t)=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(g,{},`crumb${t+1}`),(0,l.jsx)(h,{children:r(e.key,e.value)},`crumb${t}`)]}))]})}),i]}),(0,l.jsx)(p.Z,{})]})},w=[{key:"video_sniffing",value:"视频"},{key:"account_sniffing",value:"账号"}];var _=s(90164),y=s(31421),N=s(48959),b=s(39378),k=s.n(b),C=s(90464),z=s(5533),S=s(82986),F=s(39841),R=s(30911),T=s(4783),K=s(30157),Z=s(85737),V=s(94502);let M=e=>{let{generateCurrentTableData:t}=e,[s,i]=(0,d.useState)(""),[n,a]=(0,d.useState)(!1);return(0,l.jsxs)(Z.J2,{children:[(0,l.jsxs)(Z.xo,{children:[" ",(0,l.jsx)(K.z,{className:"ml-1 h-8 w-8 ",variant:"outline",size:"sm",onClick:()=>{},children:(0,l.jsx)(R.Z,{})})]}),(0,l.jsxs)(Z.yk,{className:"w-[700px]",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)(K.z,{disabled:n,onClick:async()=>{let e=(0,N.iL)({fieldSeparator:",",decimalSeparator:".",useKeysAsHeaders:!0,filename:`${(0,r.eF)()}`});(0,N.gB)(e)(t()),a(!0),i("loading...."),a(!1)},children:["Ask 广林 ",n&&(0,l.jsx)(T.Z,{className:"animate-spin"})]})," ",(0,l.jsx)("span",{className:"ml-2 text-sm",children:"关闭设置 chrome://flags/#block-insecure-private-network-requests"})]}),(0,l.jsx)(V.g,{className:"mt-4 min-h-[500px]",value:s})]})]})};var $=s(17511),L=s(44153);let P=e=>{let{className:t}=e;return(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:(0,r.cn)("animate-spin",t),children:(0,l.jsx)("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})};var D=s(72513),A=s(34270);class B extends u().PureComponent{componentDidMount(){this.props.listenRef.addEventListener("scroll",this.onScroll)}componentWillUnmount(){this.props.listenRef.removeEventListener("scroll",this.onScroll)}render(){return(0,l.jsx)("div",{style:{position:"absolute",float:"right",right:"20px",bottom:"20px",width:"40px",textAlign:"center",zIndex:2},children:this.isShowAvailable()&&(0,l.jsx)("div",{className:"bg-gray-200 w-fit rounded-md p-1 cursor-pointer",onClick:this.scrollToTop,children:(0,l.jsx)(A.Z,{})})})}constructor(...e){super(...e),(0,D._)(this,"state",{scrollLastTop:this.props.listenRef.scrollTop}),(0,D._)(this,"isShowAvailable",()=>this.props.listenRef.scrollHeight>window.innerHeight&&5*this.props.listenRef.scrollTop>this.props.listenRef.scrollHeight),(0,D._)(this,"scrollToTop",()=>{null!=this.props.listenRef&&this.props.listenRef.scrollTo({top:0,left:0,behavior:"smooth"})}),(0,D._)(this,"onScroll",()=>{this.setState({scrollLastTop:this.props.listenRef.scrollTop})})}}function E(e){var t,s;let{columns:i,data:n,filter:a,init:c={defaultSortColumn:void 0,pageIndex:0,pageSize:Number.MAX_VALUE,disableTool:!1},loading:u=!1,assistTools:m,height:x=""}=e,[h,f]=d.useState([]),[j,g]=d.useState([]),[p,v]=d.useState({}),[w,b]=d.useState({}),R=(0,d.useRef)(null),T=(0,_.b7)({data:n,columns:i,onSortingChange:f,onColumnFiltersChange:g,getCoreRowModel:(0,y.sC)(),getPaginationRowModel:(0,y.G_)(),getSortedRowModel:(0,y.tj)(),getFilteredRowModel:(0,y.vL)(),onColumnVisibilityChange:v,onRowSelectionChange:b,state:{sorting:h,columnFilters:j,columnVisibility:p,rowSelection:w},initialState:{pagination:{...c}}});(0,d.useEffect)(()=>{let e=(0,r.n6)(window.location.href).filter;e&&a&&Z(a.accessorKey,e),c&&(T.setColumnVisibility({...c.columnVisibility}),c.defaultSortColumn&&T.setSorting([{id:c.defaultSortColumn,desc:!0}]))},[]);let Z=async(e,t)=>{var s;await (null==(s=T.getColumn(e))?void 0:s.setFilterValue(t)),a&&a.callback&&setTimeout(()=>{let e=T.getFilteredRowModel().rows.map(e=>e);a.callback&&a.callback(e)},1e3)};function V(){let e=T.getPrePaginationRowModel().rows.map(e=>e.original),t={};for(let s of i)s.accessorKey&&s.csvTitle&&s.accessorKey in e[0]&&(t[s.accessorKey]=s.csvTitle);c&&c.csv&&(t={...c.csv.keyDict,...t});let s=Object.keys(t);return e.map(e=>{let t=k().pick(e,s);return c&&c.csv&&c.csv.appendRows&&(t={...t,...c.csv.appendRows(e)}),t}).map(e=>(0,r.U_)(e,t))}return(0,l.jsxs)("div",{children:[!(c&&c.disableTool)&&(0,l.jsxs)("div",{className:"flex items-center py-4 justify-between",children:[(0,l.jsxs)("div",{children:[" ",m&&m.map(e=>e)]}),(0,l.jsxs)("div",{className:"w-fit items-center inline-flex ",children:[(0,l.jsxs)("span",{className:"text-gray-400 mr-1 text-sm",children:["当前显示 ",T.getState().pagination.pageIndex+1," of"," ",T.getPageCount()," 页,总"," ",T.getFilteredRowModel().rows.length," 行"]}),(0,l.jsx)(K.z,{variant:"outline",size:"sm",className:"ml-1 h-8 w-8",onClick:()=>T.previousPage(),disabled:!T.getCanPreviousPage(),children:(0,l.jsx)(C.Z,{})}),(0,l.jsx)(K.z,{className:"ml-1 h-8 w-8 ",variant:"outline",size:"sm",onClick:()=>T.nextPage(),disabled:!T.getCanNextPage(),children:(0,l.jsx)(o.Z,{})}),c&&c.enableAI&&(0,l.jsx)(M,{generateCurrentTableData:V}),a?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"w-fit inline-flex ml-1",children:(0,l.jsxs)("div",{className:(0,r.cn)("flex h-8 items-center rounded-md border border-input bg-white pr-3 text-sm ring-offset-background focus-within:ring-1 focus-within:ring-ring focus-within:ring-offset-2"),children:[(0,l.jsx)("input",{placeholder:`Filter ${a.placement}...`,value:(null==(t=T.getColumn(a.accessorKey))?void 0:t.getFilterValue())??"",onChange:e=>{Z(a.accessorKey,e.target.value)},className:"w-full h-7 p-2 placeholder:text-muted-foreground focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50"}),(0,l.jsx)("div",{className:" ml-1 hover:cursor-pointer opacity-10 hover:opacity-100 ",onClick:()=>{T.resetColumnFilters()},children:(0,l.jsx)(z.Z,{size:15})})]})})}):(0,l.jsx)("div",{}),(0,l.jsx)(K.z,{size:"sm",variant:"outline",className:"ml-1 h-8 w-8",onClick:()=>{let e=V(),t=[];Object.keys(e[0]).forEach(e=>{let s={key:e,displayLabel:e};e.includes("id")?t.unshift(s):t.push(s)});let s=(0,N.iL)({fieldSeparator:",",decimalSeparator:".",useKeysAsHeaders:!1,columnHeaders:t,filename:`${(0,r.eF)()}`}),l=(0,N.gB)(s);(0,N.LR)(s)(l(e))},children:(0,l.jsx)(S.Z,{})}),(0,l.jsxs)($.h_,{children:[(0,l.jsx)($.$F,{asChild:!0,children:(0,l.jsxs)(K.z,{variant:"outline",className:"ml-1 h-8",children:["显示列 ",(0,l.jsx)(F.Z,{})]})}),(0,l.jsx)($.AW,{align:"end",children:T.getAllColumns().filter(e=>e.getCanHide()).map(e=>(0,l.jsx)($.bO,{className:"capitalize",checked:e.getIsVisible(),onCheckedChange:t=>e.toggleVisibility(!!t),children:e.columnDef.csvTitle?e.columnDef.csvTitle:e.id},e.id))})]})]})]}),(0,l.jsx)("div",{className:"rounded-md border",children:u?(0,l.jsx)("div",{className:"flex w-full h-[600px] justify-center items-center",children:(0,l.jsx)(P,{})}):(0,l.jsxs)(L.iA,{ref:R,className:(0,r.cn)("inline-block overflow-y-auto w-full",x),children:[(0,l.jsx)(L.xD,{className:"sticky top-0 bg-white z-10 shadow-xs",children:T.getHeaderGroups().map(e=>(0,l.jsx)(L.SC,{children:e.headers.map(e=>(0,l.jsx)(L.ss,{children:e.isPlaceholder?null:(0,_.ie)(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),(0,l.jsx)(L.RM,{className:"relative",children:(null==(s=T.getRowModel().rows)?void 0:s.length)?T.getRowModel().rows.map(e=>(0,l.jsx)(L.SC,{"data-state":e.getIsSelected()&&"selected",children:e.getVisibleCells().map(e=>(0,l.jsx)(L.pj,{children:(0,_.ie)(e.column.columnDef.cell,e.getContext())},e.id))},e.id)):(0,l.jsx)(L.SC,{children:(0,l.jsx)(L.pj,{colSpan:null==i?void 0:i.length,className:"h-24 text-center",children:"No results."})})}),R.current&&(0,l.jsx)(B,{listenRef:R.current})]})})]})}let H=e=>{let{children:t,link:s,className:i}=e;return(0,l.jsx)("a",{target:"_blank",href:s,className:(0,r.cn)("cursor-pointer mx-1 inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 text-foreground",i),rel:"noreferrer",children:t})},Y=e=>{let{link:t,className:s}=e;return(0,l.jsx)(H,{link:t,className:(0,r.cn)(!t&&"text-gray-400 cursor-default"),children:"抖音"})},I=e=>{let{children:t,className:s,src:i}=e;return(0,l.jsx)("a",{className:(0,r.cn)("hover:underline",s),href:function(e){let t=new URLSearchParams(window.location.search);return t.set("filter",e),i&&t.set("data_type",i),`?${t.toString()}`}(t),children:t})};var Q=s(95747);let J=d.forwardRef((e,t)=>{let{className:s,...i}=e;return(0,l.jsx)(Q.fC,{ref:t,className:(0,r.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",s),...i})});J.displayName=Q.fC.displayName;let O=d.forwardRef((e,t)=>{let{className:s,...i}=e;return(0,l.jsx)(Q.Ee,{ref:t,className:(0,r.cn)("aspect-square h-full w-full",s),...i})});O.displayName=Q.Ee.displayName;let U=d.forwardRef((e,t)=>{let{className:s,...i}=e;return(0,l.jsx)(Q.NY,{ref:t,className:(0,r.cn)("flex h-full w-full items-center justify-center rounded-full bg-zinc-100 dark:bg-zinc-800",s),...i})});U.displayName=Q.NY.displayName;let W=e=>{let{account:t}=e;return k().isEmpty(t.name)?"":(0,l.jsxs)("div",{className:"inline-flex w-fit justify-center items-center ",children:[(0,l.jsxs)(J,{className:"w-8 h-8",children:[(0,l.jsx)(O,{src:t.user_cover}),(0,l.jsx)(U,{children:t.sid})]}),(0,l.jsx)(I,{className:"ml-2",src:"video_sniffing",children:t.name?t.name:""})," ",(0,l.jsx)(Y,{link:t.user_visit_url})]})};var q=s(52099),G=s(84025),X=s.n(G);let ee=e=>{let{src:t,className:s}=e;return(0,l.jsxs)(Z.J2,{children:[(0,l.jsxs)(Z.xo,{children:[" ",(0,l.jsx)("img",{className:(0,r.cn)(s),src:t,alt:"Video Cover"})]}),(0,l.jsx)(Z.yk,{side:"top",children:(0,l.jsx)("img",{src:t,alt:"Video Cover"})})]})},et=e=>{let{children:t,link:s,className:i}=e;return(0,l.jsx)("a",{title:t,target:"_blank",className:(0,r.cn)("cursor-pointer hover:underline hover:text-blue-600 truncate max-w-[350px] ",i),href:s,rel:"noreferrer",children:t})};var es=s(11068);let el=e=>{let{info:t}=e;return(0,l.jsxs)("div",{className:"inline-flex flex-row w-[300px] overflow-hidden",children:[(0,l.jsx)("div",{children:(0,l.jsx)(ee,{src:t.cover_url,className:" min-w-[50px] h-[80px] object-cover"})}),(0,l.jsxs)("div",{className:"flex flex-col ml-2 w-full justify-center py-1 ",children:[(0,l.jsxs)("div",{className:"truncate",title:t.title,children:[(0,l.jsx)(K.z,{size:"2",variant:"ghost",onClick:async()=>{let e=(await (0,es.DQ)({task_type:"download_video",download_video_link_platform:"douyin",download_video_link:t.visit_link})).workflow_id;window.open(`https://task.8600800.com/runs/${e}`,"_blank")},children:(0,l.jsx)(S.Z,{className:"mx-2",size:1})}),(0,l.jsx)(Y,{link:t.visit_link}),t.title?t.title:"无标题"]}),(0,l.jsxs)("div",{className:"text-sm text-gray-600 truncate ",title:t.tag,children:[" ",t.tag?t.tag:"无标签"]}),(0,l.jsxs)("span",{className:"text-[10px] ",children:["发布时间:"," ",(0,l.jsx)(et,{link:t.visit_link,children:(0,r.eF)({current:t.video_create_time,format:"YYYY-MM-DD HH:mm:ss"})})]}),(0,l.jsxs)("span",{className:"text-[10px] ",title:`update_time: ${t.update_time}`,children:["爬取时间: ",function(){if(!t.update_time)return"update_time 获取异常";let e=X()().diff(X()(t.update_time),"milliseconds"),s=X().duration(e);return 0!=s.days()?`${s.days()} 天前`:0!=s.hours()?`${s.hours()} 小时 ${s.minutes()} 分钟前`:0!=s.minutes()?`${s.minutes()} 分钟前`:"时间差值计算异常"}()]})]})]})};var ei=s(14303),er=s(84811),en=s(97042);let ea=e=>{let{column:t,children:s,tooltip:i}=e,r=t.getIsSorted();function n(){return(0,l.jsxs)(K.z,{variant:"ghost",onClick:()=>{!1===r?t.toggleSorting(!0):"desc"===r?t.toggleSorting(!1):t.toggleSorting(!0)},children:[s,!1===r&&(0,l.jsx)(ei.Z,{}),"desc"===r&&(0,l.jsx)(er.Z,{className:"text-[#FF9000]"}),"asc"===r&&(0,l.jsx)(en.Z,{className:"text-[#FF9000]"})]})}return i?(0,l.jsx)(q.u,{content:i,children:n()}):n()},ec=[{csvTitle:"账号名称",header:e=>{let{column:t}=e;return(0,l.jsx)(ea,{column:t,children:"账号名称"})},accessorKey:"name",cell:e=>{let{row:t}=e,s=t.original;return(0,l.jsx)(W,{account:s})}},{csvTitle:"新增发布",accessorKey:"new_video_count",header:e=>{let{column:t}=e;return(0,l.jsx)(ea,{column:t,children:"新增发布"})},cell:e=>{let{row:t}=e,s=t.original;return(0,l.jsx)(q.u,{tooltipContentClassName:"max-w-100",content:(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:[(0,l.jsx)("div",{children:" 开始时间: "}),(0,l.jsx)("div",{children:s.new_video_start_time}),(0,l.jsx)("div",{children:" 结束时间: "}),(0,l.jsx)("div",{children:s.new_video_end_time})]}),children:(0,l.jsxs)("div",{className:"text-[#FF9000]",children:[" ",s.new_video_count]})})}},{csvTitle:"新增点赞",accessorKey:"incr_digg_counts",header:e=>{let{column:t}=e;return(0,l.jsx)(ea,{column:t,children:"新增点赞"})},cell:e=>{let{row:t}=e,s=t.original;return(0,l.jsx)(q.u,{tooltipContentClassName:"max-w-100",content:(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:[(0,l.jsx)("div",{children:" 开始时间:"}),(0,l.jsx)("div",{children:s.new_video_start_time}),(0,l.jsx)("div",{children:" 结束时间:"}),(0,l.jsx)("div",{children:s.new_video_end_time})]}),children:(0,l.jsxs)("div",{className:"text-[#FF9000]",children:[" ",s.incr_digg_counts]})})}},{csvTitle:"新增粉丝",accessorKey:"incr_follower_count",header:e=>{let{column:t}=e;return(0,l.jsx)(ea,{column:t,children:"新增粉丝"})},cell:e=>{let{row:t}=e,s=t.original;return(0,l.jsx)(q.u,{tooltipContentClassName:"max-w-100",content:(0,l.jsxs)("div",{className:"grid grid-cols-3 gap-1",children:[(0,l.jsx)("div",{children:" 最近日期: "}),(0,l.jsx)("div",{children:s.old_update_time}),(0,l.jsxs)("div",{children:["最近值: ",s.old_follower_count]}),(0,l.jsx)("div",{children:" 最新抓取时间: "}),(0,l.jsx)("div",{children:s.update_time}),(0,l.jsxs)("div",{children:["最新值: ",s.follower_count]})]}),children:(0,l.jsx)("div",{className:"text-[#FF9000]",children:s.incr_follower_count})})}},{csvTitle:"粉丝",accessorKey:"collect_count",header:e=>{let{column:t}=e;return(0,l.jsx)(ea,{column:t,children:"粉丝"})},cell:e=>{let{row:t}=e,s=t.original;return(0,l.jsx)("div",{children:(0,r.Zv)(s.collect_count,2)})}},{csvTitle:"获赞",accessorKey:"digg_count",header:e=>{let{column:t}=e;return(0,l.jsx)(ea,{column:t,children:"获赞"})},cell:e=>{let{row:t}=e,s=t.original;return(0,l.jsx)("div",{children:(0,r.Zv)(s.digg_count,2)})}},{csvTitle:"评论",accessorKey:"comment_counts",header:e=>{let{column:t}=e;return(0,l.jsx)(q.u,{content:"快照数据求和 comment求和",children:(0,l.jsx)(ea,{column:t,children:"总评论"})})},cell:e=>{let{row:t}=e,s=t.original;return(0,l.jsx)("div",{children:(0,r.Zv)(s.comment_counts,2)})}},{csvTitle:"分享",accessorKey:"share_counts",header:e=>{let{column:t}=e;return(0,l.jsxs)(q.u,{content:"快照数据求和 share_count 求和",children:[" ",(0,l.jsx)(ea,{column:t,children:"总分享"})]})},cell:e=>{let{row:t}=e,s=t.original;return(0,l.jsx)("div",{children:(0,r.Zv)(s.share_counts,2)})}},{csvTitle:"最近一次发布视频时间",accessorKey:"create_time",header:e=>{let{column:t}=e;return(0,l.jsx)(ea,{column:t,children:"最近一次发布视频"})},sortingFn:(e,t)=>e.original.video_create_time<t.original.video_create_time?-1:1,cell:e=>{let{row:t}=e,s=t.original;return(0,l.jsx)("div",{className:"flex flex-row w-full",children:(0,l.jsx)(el,{info:s})})}}],eo=e=>{let{cell:t,dataKey:s}=e,i=t.original;return(0,l.jsx)("div",{children:(0,r.Zv)(i[s],2)})},ed=[{csvTitle:"账号名称",accessorKey:"name",header:"账号名称",cell:e=>{let{row:t}=e,s=t.original;return(0,l.jsx)(W,{account:s})}},{csvTitle:"视频时间",accessorKey:"create_time",header:e=>{let{column:t}=e;return(0,l.jsx)(ea,{column:t,children:"视频信息"})},sortingFn:(e,t)=>X()(e.original.create_time)>X()(t.original.create_time)?1:-1,cell:e=>{let{row:t}=e,s=t.original;return(0,l.jsx)("div",{className:"flex flex-row min-w-[400px] ",children:(0,l.jsx)(el,{info:{title:s.desc,tag:s.tag,visit_link:s.link,cover_url:s.cover,video_create_time:s.create_time,update_time:s.update_time}})})}},{csvTitle:"点赞",accessorKey:"digg_count",header:e=>{let{column:t}=e;return(0,l.jsx)(ea,{column:t,children:"点赞"})},cell:e=>{let{row:t}=e;return(0,l.jsx)(eo,{cell:t,dataKey:"digg_count"})}},{csvTitle:"评论",accessorKey:"comment_count",header:e=>{let{column:t}=e;return(0,l.jsx)(ea,{column:t,children:"评论"})},cell:e=>{let{row:t}=e;return(0,l.jsx)(eo,{cell:t,dataKey:"comment_count"})}},{csvTitle:"收藏",accessorKey:"collect_count",header:e=>{let{column:t}=e;return(0,l.jsx)(ea,{column:t,children:"收藏"})},cell:e=>{let{row:t}=e;return(0,l.jsx)(eo,{cell:t,dataKey:"collect_count"})}},{csvTitle:"分享",accessorKey:"share_count",header:e=>{let{column:t}=e;return(0,l.jsx)(ea,{column:t,children:"分享"})},cell:e=>{let{row:t}=e;return(0,l.jsx)(eo,{cell:t,dataKey:"share_count"})}}];var eu=s(57972);let em="yyyy-MM-D";var ex=s(76497),eh=s(7132),ef=s(35731);let ej=e=>{let{defaultValue:t="365",callback:s}=e,i="yyyy-MM-D";return(0,l.jsxs)(eu.Ph,{defaultValue:t,onValueChange:async e=>{let t,l;4==e?(t=(0,r.eF)({offset:3,format:i}),l=(0,r.eF)({format:i})):7==e?(t=(0,r.eF)({offset:7,format:i}),l=(0,r.eF)({format:i})):15==e?(t=(0,r.eF)({offset:15,format:i}),l=(0,r.eF)({format:i})):365==e?(t=(0,r.eF)({offset:365,format:i}),l=(0,r.eF)({format:i})):(t=(0,r.eF)({offset:e,format:i}),l=(0,r.eF)({offset:e,format:i})),await s(t,l,e)},children:[(0,l.jsx)(eu.i4,{className:"w-[180px]",children:(0,l.jsx)(eu.ki,{})}),(0,l.jsxs)(eu.Bw,{children:[(0,l.jsx)(eu.Ql,{value:"365",children:"全部时间"}),(0,l.jsx)(eu.Ql,{value:"1",children:"昨天"}),(0,l.jsx)(eu.Ql,{value:"2",children:"前天"}),(0,l.jsx)(eu.Ql,{value:"3",children:"大前天"}),(0,l.jsx)(eu.Ql,{value:"4",children:"3天内"}),(0,l.jsx)(eu.Ql,{value:"7",children:"7天内"}),(0,l.jsx)(eu.Ql,{value:"15",children:"15天内"})]})]})},eg=()=>{let[e,t]=(0,d.useState)([]),[s,i]=(0,d.useState)(!0),[c,o]=(0,d.useState)(!1),[u,m]=(0,d.useState)("account_sniffing"),x=(0,eh.T)();return(0,ex.Z)(async()=>{let e=x.search.data_type;e=e||"account_sniffing",o(!0);try{let s;"account_sniffing"===e?s=await n((0,r.eF)({offset:3,format:em}),(0,r.eF)({format:em})):"video_sniffing"===e?s=await a((0,r.eF)({offset:3,format:em}),(0,r.eF)({format:em})):"account_add_sniffing"===e&&(s=[]),t(s),m(e)}finally{o(!1)}},[]),(0,l.jsxs)("div",{className:"w-fit",children:[(0,l.jsx)(v,{links:w,data_type:u,children:(0,l.jsx)(K.z,{className:"h-[20px]",size:"sm",onClick:()=>{window.open("http://122.9.155.28:7100/swfitcast_admin/account-login-info/list","_blank")},children:"添加监控账号"})}),(0,l.jsxs)(ef.Z,{spinning:c,children:["account_sniffing"===u&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"px-4",children:(0,l.jsx)("div",{className:"flex flex-col w-full",children:(0,l.jsx)("div",{className:"flex w-full",children:(0,l.jsx)(E,{height:"max-h-[calc(100vh-180px)]",columns:ec.filter(e=>s||!s&&!["incr_digg_counts","incr_follower_counts"].includes(e.accessorKey)),data:e,init:{pageSize:100,defaultSortColumn:"incr_digg_counts"},filter:{placement:"账号名称",accessorKey:"name"},assistTools:[(0,l.jsx)(ej,{defaultValue:"4",callback:async(e,s,l)=>{o(!0),t(await n(e,s)),i(365!=l),o(!1)}})]})})})})}),"video_sniffing"===u&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"inline-flex w-full items-center justify-center",children:(0,l.jsx)(E,{height:"max-h-[calc(100vh-180px)]",columns:ed.filter(e=>s||!s&&!["incr_video_count","incr_digg_count"].includes(e.accessorKey)),data:e,filter:{placement:" 账号名称",accessorKey:"name"},init:{pageIndex:0,pageSize:100,columnVisibility:{},defaultSortColumn:"digg_count"},assistTools:[(0,l.jsx)(ej,{defaultValue:"4",callback:async(e,s)=>{o(!0),t(await a(e,s)),o(!1)}})]})})})]})]})}},85737:function(e,t,s){s.d(t,{J2:()=>a,xo:()=>c,yk:()=>o});var l=s(31549),i=s(51845),r=s(8491),n=s(71553);let a=i.fC,c=i.xz;i.ee;let o=r.forwardRef((e,t)=>{let{className:s,align:r="center",sideOffset:a=4,...c}=e;return(0,l.jsx)(i.h_,{children:(0,l.jsx)(i.VY,{ref:t,align:r,sideOffset:a,className:(0,n.cn)("z-50 w-72 rounded-md border border-zinc-200 bg-white p-2 text-zinc-950 shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50",s),...c})})});o.displayName=i.VY.displayName},94502:function(e,t,s){s.d(t,{g:()=>n});var l=s(31549),i=s(8491),r=s(71553);let n=i.forwardRef((e,t)=>{let{className:s,...i}=e;return(0,l.jsx)("textarea",{className:(0,r.cn)("flex min-h-[60px] w-full rounded-md border border-zinc-200 bg-transparent px-3 py-2 text-base shadow-xs placeholder:text-zinc-500 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-zinc-950 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:border-zinc-800 dark:placeholder:text-zinc-400 dark:focus-visible:ring-zinc-300",s),ref:t,...i})});n.displayName="Textarea"},65005:function(e,t,s){s.d(t,{_v:()=>d,aJ:()=>o,pn:()=>a,u:()=>c});var l=s(31549),i=s(91866),r=s(8491),n=s(71553);let a=i.zt,c=i.fC,o=i.xz,d=r.forwardRef((e,t)=>{let{className:s,sideOffset:r=4,...a}=e;return(0,l.jsx)(i.h_,{children:(0,l.jsx)(i.VY,{ref:t,sideOffset:r,className:(0,n.cn)("z-50 overflow-hidden rounded-md bg-zinc-900 px-3 py-1.5 text-xs text-zinc-50 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:bg-zinc-50 dark:text-zinc-900",s),...a})})});d.displayName=i.VY.displayName}}]);
|