@acedatacloud/nexior 3.281.4 → 3.281.6
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/dist/assets/{ApiCodeButton-DFsDB7SJ.js → ApiCodeButton-DKniiM0G.js} +1 -1
- package/dist/assets/{AskUserQuestionCard-CRMzqYTy.js → AskUserQuestionCard-CyPQJbib.js} +1 -1
- package/dist/assets/{Auth-ChCPTq0y.js → Auth-YNrKQM32.js} +1 -1
- package/dist/assets/{Bare-Cx6_nnlk.js → Bare-CImTJqq-.js} +1 -1
- package/dist/assets/{BotPlaceholder-D3QRBDy1.js → BotPlaceholder-yUr8SHkL.js} +1 -1
- package/dist/assets/{BottomFooter-D3ww6A0n.js → BottomFooter-BnSeIGVj.js} +1 -1
- package/dist/assets/{Callback-3Pf9KrGC.js → Callback-PF5_BYTC.js} +1 -1
- package/dist/assets/{CodeSnippet-BaTjkIFY.js → CodeSnippet-CTS3NBfv.js} +1 -1
- package/dist/assets/{Console-DEUy4BA0.js → Console-fC_ac6jQ.js} +1 -1
- package/dist/assets/{Consumption-wOz5KpZJ.js → Consumption-C1eCFrdP.js} +1 -1
- package/dist/assets/{Conversation-BNSZKDKF.js → Conversation-DEzrEzIL.js} +1 -1
- package/dist/assets/{CopyToClipboard-BVslSStn.js → CopyToClipboard-B4dEZ2i9.js} +1 -1
- package/dist/assets/{Detail-DzSr1PWl.js → Detail-CKUXFCe2.js} +2 -2
- package/dist/assets/{Extra-DlzGQHfN.js → Extra-BigunAdI.js} +1 -1
- package/dist/assets/{FilePreview-UkZiprPj.js → FilePreview-_lQQPD2x.js} +1 -1
- package/dist/assets/{Hailuo-B6ztj4K8.js → Hailuo-CAbh79Mo.js} +1 -1
- package/dist/assets/{History-Bv698zP-.js → History-FR-gtZpq.js} +1 -1
- package/dist/assets/{ImagePreview-qLx_MT2Y.js → ImagePreview-D2MbLMdW.js} +1 -1
- package/dist/assets/{ImageWrapper-COPjZwGD.js → ImageWrapper-DjXDz9bw.js} +1 -1
- package/dist/assets/{Index-CJquXMOe.js → Index-A1CLbFtt.js} +1 -1
- package/dist/assets/{Index-DG3bm5sN2.js → Index-B4n7nu5Y2.js} +1 -1
- package/dist/assets/{Index-NFtI509e.js → Index-B8tfLjs8.js} +1 -1
- package/dist/assets/{Index-DKRm_JKj.js → Index-B9qI9JD2.js} +1 -1
- package/dist/assets/{Index-CXLL_MQE.js → Index-BR1ttEaa.js} +1 -1
- package/dist/assets/{Index-ClRWnVV0.js → Index-B_OKrJDV.js} +1 -1
- package/dist/assets/{Index-DbQL08ne.js → Index-BeWdQu2s.js} +1 -1
- package/dist/assets/{Index-Dn8qKPBj.js → Index-Bjuy5rzT.js} +1 -1
- package/dist/assets/{Index-BzGmnHJt.js → Index-C7ntIsBg.js} +1 -1
- package/dist/assets/{Index-CHWwecF-.js → Index-CF2YNAqt.js} +1 -1
- package/dist/assets/{Index-Cu0AYoYH.css → Index-CG3WX7u8.css} +1 -1
- package/dist/assets/{Index-DzHXV8Gx.js → Index-CMYhvYdE.js} +1 -1
- package/dist/assets/{Index-2od0oPr4.js → Index-CbTInaIC.js} +1 -1
- package/dist/assets/{Index-B6wP7hfv.js → Index-CoC0zQGv.js} +1 -1
- package/dist/assets/{Index-CO8p6Fn3.js → Index-DDN2wm5h.js} +2 -2
- package/dist/assets/{Index-HO6SN8vN.js → Index-DIj2K6Mi.js} +1 -1
- package/dist/assets/{Index-CccxFpu4.js → Index-DOvg5h5y.js} +1 -1
- package/dist/assets/{Index-DXyUsuA6.js → Index-DWkMUbLJ.js} +1 -1
- package/dist/assets/{Index-BPkbworl.js → Index-DdOoh6t9.js} +1 -1
- package/dist/assets/{Index-2Mo2rWx-.js → Index-DhtMmp-p.js} +1 -1
- package/dist/assets/{Index-BqXsNtIH.js → Index-DyJqqvHZ.js} +1 -1
- package/dist/assets/{Index-BDgyvpfN.js → Index-ICQhrVA-.js} +1 -1
- package/dist/assets/{Index-OS0GHAYe.js → Index-If7OOjUQ.js} +1 -1
- package/dist/assets/{Index-CQb1iLq9.js → Index-Lhv2PdwR.js} +1 -1
- package/dist/assets/{Index-Bi6OiL3w.js → Index-NuD49rD5.js} +1 -1
- package/dist/assets/{Index-DB0payMf.js → Index-O9yhTndz.js} +1 -1
- package/dist/assets/{Index-BSBHNIfC.js → Index-XDElbBwk.js} +1 -1
- package/dist/assets/{Index-H2gR7mfO2.js → Index-aKRNvrWY2.js} +1 -1
- package/dist/assets/{InfoIcon-B-CALASf.js → InfoIcon-DjJuMw5v.js} +1 -1
- package/dist/assets/{Invitees-CggfhllW.js → Invitees-DBuet5CS.js} +1 -1
- package/dist/assets/{List-B-N4B6Yn.js → List-DDLJwPSN.js} +1 -1
- package/dist/assets/{List-CM-tU49l.js → List-DSSsdjil.js} +1 -1
- package/dist/assets/{List-C8BJyJgQ.js → List-bef-XjGv.js} +1 -1
- package/dist/assets/{Main-CxPxkC2Z.js → Main-Cdlt7_bY.js} +1 -1
- package/dist/assets/{Model-BSxpxV3v.js → Model-BnsiI2Nv.js} +1 -1
- package/dist/assets/{Navigator-DDOCZxBk.js → Navigator-DmgO4bDI.js} +1 -1
- package/dist/assets/{NoTasks-BQ8iqzXP.js → NoTasks-DbzYtrkw.js} +1 -1
- package/dist/assets/{NotFound-BPJ4CPmP.js → NotFound-CC1Co83-.js} +1 -1
- package/dist/assets/{Pagination-C5tAazfm.js → Pagination-DVrlnlD0.js} +1 -1
- package/dist/assets/{Pay-BfS31tbg.js → Pay-DnmG4Z5C.js} +1 -1
- package/dist/assets/{Player-BcDzVd_H.js → Player-B0iYSEz4.js} +1 -1
- package/dist/assets/{PromptTextarea-9Sm2OEbO.js → PromptTextarea-CPOIRGzu.js} +1 -1
- package/dist/assets/{RealtimeCall-BQYHwjX_.js → RealtimeCall-BfJVaaST.js} +1 -1
- package/dist/assets/{Seedance-BPcnGyOP.js → Seedance-kCGDwz9s.js} +1 -1
- package/dist/assets/{Status-CyJ5XKfY.js → Status-Dm5GtJq7.js} +1 -1
- package/dist/assets/{Subscribe-6iILsAIo.js → Subscribe-D_TTGnlh.js} +1 -1
- package/dist/assets/{TabSwitcher-Cvx61eC9.js → TabSwitcher-ByBr0-aq.js} +1 -1
- package/dist/assets/{Tts-4PUgQgaC.js → Tts-DHiv_B_s.js} +1 -1
- package/dist/assets/{VideoPlayer-e64iTaWa.js → VideoPlayer-0RaKjZ_G.js} +1 -1
- package/dist/assets/{avatar-Cv3oIFxR.js → avatar-DYysOPvZ.js} +1 -1
- package/dist/assets/{basic-D1vIlu9O.js → basic-CegD2oBp.js} +1 -1
- package/dist/assets/{chat-D7wFfswk.js → chat-DFGIIKek.js} +1 -1
- package/dist/assets/{codingBridge-CO_mJXXS.js → codingBridge-Ly9UvAsk.js} +1 -1
- package/dist/assets/{codingBridgeNotify-Dh46hVbG.js → codingBridgeNotify-D3ZzO7v8.js} +2 -2
- package/dist/assets/{collapse-CTKmTLgJ.js → collapse-DQrP11JK.js} +1 -1
- package/dist/assets/{constants-ER7gAjWT.js → constants-DZBit6O5.js} +1 -1
- package/dist/assets/{createTaskActions-Bl-IGhVa.js → createTaskActions-CZG-xMdO.js} +1 -1
- package/dist/assets/{date-picker-Da0QC_r8.js → date-picker-ysCTpSG8.js} +1 -1
- package/dist/assets/{dropdown-gWP_veqS.js → dropdown-DmLhda23.js} +1 -1
- package/dist/assets/{esm-EUdOQvAD.js → esm-6TVUahAM.js} +1 -1
- package/dist/assets/{esm-BNDhopuQ.js → esm-C0CCaoYT.js} +1 -1
- package/dist/assets/{esm-Ddl4VmEt.js → esm-CjuTagWN.js} +1 -1
- package/dist/assets/{esm-AnBwNp3P.js → esm-DE8PKFG_.js} +2 -2
- package/dist/assets/{esm-DZ9Jr1zG.js → esm-DbYNNKM7.js} +2 -2
- package/dist/assets/{esm-6kcgXc-d.js → esm-EOELQ8gP.js} +3 -3
- package/dist/assets/esm-i-b673Ym.js +1 -0
- package/dist/assets/{fish-BPlo_A8C.js → fish-ByyBZe43.js} +1 -1
- package/dist/assets/{flux-ChS_fgmd.js → flux-0IvHBsZJ.js} +1 -1
- package/dist/assets/{grokvideo-BsOtDLHM.js → grokvideo-BHMto4qj.js} +1 -1
- package/dist/assets/{hailuo-Ck5UfH47.js → hailuo-B5CEiJO_.js} +1 -1
- package/dist/assets/{headshots-C4Zlmejo.js → headshots-CBOK2zoa.js} +1 -1
- package/dist/assets/{image-CKi2YQIG.js → image-CtPREVzJ.js} +1 -1
- package/dist/assets/{index-BBcG_19k.js → index-Bz7Ib84l.js} +4 -4
- package/dist/assets/{index.browser.esm-BkJOjeyV.js → index.browser.esm-BICjPQi5.js} +1 -1
- package/dist/assets/{index.es-5YbBlNca.js → index.es-CJowa_nd.js} +1 -1
- package/dist/assets/{input-number-DLQnigOY.js → input-number-BpJax619.js} +1 -1
- package/dist/assets/{kling-vtDXhx8f.js → kling-kLS_4f9T.js} +1 -1
- package/dist/assets/{luma-DL8aJBZG.js → luma-DN1Z4G4J.js} +1 -1
- package/dist/assets/{maestro-CWXn1C6d.js → maestro-B-UjwV8L.js} +1 -1
- package/dist/assets/{midjourney-8Ea1-2bQ.js → midjourney-C0L81Ay5.js} +1 -1
- package/dist/assets/{nanobanana-DeVjJgZI.js → nanobanana-CDsIYtWd.js} +1 -1
- package/dist/assets/{openaiimage-CVplq3os.js → openaiimage-DowSTuLW.js} +1 -1
- package/dist/assets/{pagination-LCDg14KD.js → pagination-CG4vCKBj.js} +1 -1
- package/dist/assets/{pika-_Uhgincp.js → pika-BpDSIOPs.js} +1 -1
- package/dist/assets/{pixverse-BJ9pcDwH.js → pixverse-BTffTwWV.js} +1 -1
- package/dist/assets/{popover-BhRrZQRK.js → popover-Zm6jPvk1.js} +1 -1
- package/dist/assets/{producer-BwSkSfxr.js → producer-DWGE-WFt.js} +1 -1
- package/dist/assets/{qrart-D7iao2P9.js → qrart-CrPvOMQY.js} +1 -1
- package/dist/assets/{realtime-BWWITdCx.js → realtime-D1T7p3H1.js} +1 -1
- package/dist/assets/{row-RrRrbCHl.js → row-CSV-gsr4.js} +1 -1
- package/dist/assets/{seedance-_TTudU3y.js → seedance-Dh3IMxML.js} +1 -1
- package/dist/assets/{seedream-C3xCIU9N.js → seedream-D5pvKZv4.js} +1 -1
- package/dist/assets/{select-Bu-GRPzk.js → select-CnmyV1Pz.js} +1 -1
- package/dist/assets/{serp-AIrWXeaQ.js → serp-CNhsIcha.js} +1 -1
- package/dist/assets/{slider-BK14kQTA.js → slider-8QN02u5g.js} +1 -1
- package/dist/assets/{solana-wallets-xRF77raW.js → solana-wallets-Dxhd4B_5.js} +2 -2
- package/dist/assets/{solana-wallets-vue-CsyFDOMA.js → solana-wallets-vue-BmNjoslN.js} +1 -1
- package/dist/assets/{sora-QB__huBk.js → sora-CvI6IpK_.js} +1 -1
- package/dist/assets/{suno-BBMyA7S1.js → suno-BG5wNx1M.js} +1 -1
- package/dist/assets/{switch-AyPAClix.js → switch-BZlckYNV.js} +1 -1
- package/dist/assets/{tabs-CN9YKNFy.js → tabs-CB1Tc35a.js} +1 -1
- package/dist/assets/{upload-C0T0tBx4.js → upload-D6qoCPRH.js} +1 -1
- package/dist/assets/{veo-CNvOY_7a.js → veo-fSTozVYq.js} +1 -1
- package/dist/assets/{wan-CIqVyk1H.js → wan-c6W1LQHg.js} +1 -1
- package/dist/assets/{web-B9QsWEac.js → web-7TKfDVJQ.js} +1 -1
- package/dist/assets/{web-BjWpxE9G.js → web-D3O_Fsvw.js} +1 -1
- package/dist/assets/{web-Cchyqpld.js → web-DMV6GbWz.js} +1 -1
- package/dist/assets/{web-mXjdQPo9.js → web-G_-9XeIJ.js} +1 -1
- package/dist/assets/{web-DJKWo8dH.js → web-bx50G4Tr.js} +1 -1
- package/dist/assets/{webextrator-BHO0-hZG.js → webextrator-BHDsMSj_.js} +1 -1
- package/dist/assets/webextrator-BUspWMfb.js +1 -0
- package/dist/assets/{webextrator-3WskC4UT.js → webextrator-Ba5M9l0f.js} +1 -1
- package/dist/assets/{webextrator-BaMewYaD.js → webextrator-Bd3HovJk.js} +1 -1
- package/dist/assets/webextrator-Bf-rGPzT.js +1 -0
- package/dist/assets/webextrator-Bg8csDXq.js +1 -0
- package/dist/assets/webextrator-BlPObDGG.js +1 -0
- package/dist/assets/webextrator-Bvdj_X-x.js +1 -0
- package/dist/assets/webextrator-CBjUrr7F.js +1 -0
- package/dist/assets/{webextrator-B0cJiHN-.js → webextrator-CFYiQKNy.js} +1 -1
- package/dist/assets/webextrator-CIy7ze0k.js +1 -0
- package/dist/assets/{webextrator-BS6xqfcQ.js → webextrator-CSaE8zmj.js} +1 -1
- package/dist/assets/webextrator-Cph-tB8K.js +1 -0
- package/dist/assets/webextrator-CsscM4Fx.js +1 -0
- package/dist/assets/{webextrator-CjAzDFV9.js → webextrator-D7mLXmrx.js} +1 -1
- package/dist/assets/webextrator-DPpU72I_.js +1 -0
- package/dist/assets/webextrator-Dy8iUf63.js +1 -0
- package/dist/assets/webextrator-a0P56Tka.js +1 -0
- package/dist/assets/webextrator-bRAluMyB.js +1 -0
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/esm-CC8oh-6K.js +0 -1
- package/dist/assets/webextrator-Bnm5K67e.js +0 -1
- package/dist/assets/webextrator-Bt-MiGqu.js +0 -1
- package/dist/assets/webextrator-C1Sv9G1q.js +0 -1
- package/dist/assets/webextrator-CfHfCGtx.js +0 -1
- package/dist/assets/webextrator-CibTQ2_O.js +0 -1
- package/dist/assets/webextrator-CilyzI-d.js +0 -1
- package/dist/assets/webextrator-CwNkfoJU.js +0 -1
- package/dist/assets/webextrator-DKAC7GBj.js +0 -1
- package/dist/assets/webextrator-Dbfw5SPD.js +0 -1
- package/dist/assets/webextrator-DymbbAuB.js +0 -1
- package/dist/assets/webextrator-aRwxnGyt.js +0 -1
- package/dist/assets/webextrator-bnKZnfD-.js +0 -1
- package/dist/assets/webextrator-fioLL2fz.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_r as e}from"./constants-
|
|
1
|
+
import{_r as e}from"./constants-DZBit6O5.js";import{hn as t,ir as n}from"./index-Bz7Ib84l.js";import{t as r}from"./createTaskActions-CZG-xMdO.js";var i={namespaced:!0,state:n,mutations:{setTasks:(e,t)=>{e.tasks=t},setApplication:(e,t)=>{e.application=t},setApplications:(e,t)=>{e.applications=t},setConfig:(e,t)=>{e.config=t},setCredential:(e,t)=>{e.credential=t},setService:(e,t)=>{e.service=t},setTasksActive:(e,t)=>{e.tasks={...e.tasks,active:t}},setTasksItems:(e,t)=>{e.tasks={...e.tasks,items:t}},setTasksTotal:(e,t)=>{e.tasks={...e.tasks,total:t}},resetAll:e=>{Object.assign(e,n())}},actions:r({serviceId:e,operator:t,type:`videos`})};export{i as default,i as sora};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ln as e}from"./constants-
|
|
1
|
+
import{Ln as e}from"./constants-DZBit6O5.js";import{$n as t,Pn as n,Sn as r,on as i,wr as a,xn as o}from"./index-Bz7Ib84l.js";import{t as s}from"./merge-BfSAGNo7.js";var c={namespaced:!0,state:t,mutations:{setTasks:(e,t)=>{e.tasks=t},setApplication:(e,t)=>{e.application=t},setApplications:(e,t)=>{e.applications=t},setConfig:(e,t)=>{e.config=t},setCredential:(e,t)=>{e.credential=t},setService:(e,t)=>{e.service=t},setTasksActive:(e,t)=>{e.tasks={...e.tasks,active:t}},setTasksItems:(e,t)=>{e.tasks={...e.tasks,items:t}},setTasksTotal:(e,t)=>{e.tasks={...e.tasks,total:t}},setAudio:(e,t)=>{e.audio=t},setPersonas:(e,t)=>{e.personas=t},togglePersonaFavorite:(e,t)=>{if(!t)return;Array.isArray(e.favoritePersonaIds)||(e.favoritePersonaIds=[]);let n=e.favoritePersonaIds.indexOf(t);n>=0?e.favoritePersonaIds.splice(n,1):e.favoritePersonaIds.push(t)},resetAll:e=>{e.service=void 0,e.application=void 0,e.applications=void 0,e.config=void 0,e.credential=void 0,e.tasks=void 0,e.personas=void 0}},actions:{setService:async({commit:e},t)=>{console.debug(`set service`,t),e(`setService`,t)},getService:async({commit:t,state:n})=>{n.status.getService=a.Request;try{let{data:i}=await r.get(e);return n.status.getService=a.Success,t(`setService`,i),i}catch{n.status.getService=a.Error,t(`setService`,void 0)}},resetAll:({commit:e})=>{e(`resetAll`)},setCredential:async({commit:e},t)=>{console.debug(`set credential`,t),e(`setCredential`,t)},setConfig:({commit:e},t)=>{e(`setConfig`,t)},setApplication:async({commit:e,dispatch:t,rootState:n},r)=>{if(console.debug(`set application`,r),e(`setApplication`,r),!r){console.debug(`application is null, return`);return}let i=n?.user?.id,a=r?.role===`grantee`,o=r?.credentials?.find(e=>e?.host===window.location.origin);!o&&a&&(o=r?.credentials?.find(e=>e?.user_id===i)),o?(console.debug(`credential exists, set credential`,o),e(`setCredential`,o)):a?(console.warn(`no credential available for granted application`,r),e(`setCredential`,void 0)):(console.debug(`credential not exists, start to create credential for application`,r),await t(`createCredential`))},setApplications:async({commit:e},t)=>{console.debug(`set applications`,t),e(`setApplications`,t)},getApplications:async({commit:t,state:r})=>{console.debug(`start to get applications for chat`),r.status.getApplications=a.Request;let i=r.application;console.debug(`current application`,i);try{let{data:i}=await n.getAll({user_id:`me`,service_id:e,affiliation:[`owner`,`granted`]});return r.status.getApplications=a.Success,t(`setApplications`,i.items),i.items}catch(e){console.error(`get applications failed`,e),r.status.getApplications=a.Error,t(`setApplications`,void 0),t(`setApplication`,void 0)}},setTasks:({commit:e},t)=>{e(`setTasks`,t)},setTasksItems:({commit:e},t)=>{e(`setTasksItems`,t)},setTasksTotal:({commit:e},t)=>{e(`setTasksTotal`,t)},setTasksActive:({commit:e},t)=>{e(`setTasksActive`,t)},getTasks:async({commit:e,state:t,rootState:n},{offset:r,limit:a,createdAtMin:o,createdAtMax:c})=>new Promise((l,u)=>{console.debug(`start to get tasks`,r,a,c,o);let d=t.credential?.token;if(!d)return u(`no token`);i.tasks({userId:n?.user?.id,createdAtMin:o,createdAtMax:c,type:`audios`},{token:d}).then(n=>{console.debug(`get imagine tasks success`,n.data.items);let r=t?.tasks?.items||[];console.debug(`existing items`,r);let i=n.data.items||[];console.debug(`new items`,i),e(`setTasksItems`,s(r,i)),e(`setTasksTotal`,n.data.count),l(n.data.items)}).catch(e=>u(e))}),setAudio:({commit:e},t)=>{e(`setAudio`,t)},getPersonas:async({commit:e,state:t,rootState:n})=>{let r=t.credential?.token;if(!r)return[];let a=n?.user?.id;if(!a)return[];try{let{data:t}=await i.personasList({user_id:a},{token:r});return e(`setPersonas`,t.items||[]),t.items||[]}catch(e){return console.error(`get personas failed`,e),[]}},deletePersona:async({state:e,dispatch:t,rootState:n},r)=>{let a=e.credential?.token;if(!a)return!1;try{return await i.personasDelete({persona_id:r,user_id:n?.user?.id},{token:a}),await t(`getPersonas`),!0}catch(e){return console.error(`delete persona failed`,e),!1}},createCredential:async({commit:e,state:t})=>{let n=t.application;if(console.debug(`prepare to create credential for application`,n),!n){console.error(`Application not found`);return}console.debug(`creating create credential for application`,n);let{data:r}=await o.create({application_id:n?.id,host:window.location.origin});return console.debug(`created credential success`,r),e(`setCredential`,r),console.debug(`end createCredential`),r}}};export{c as default,c as suno};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,Bt as t,D as n,E as r,F as i,H as a,J as ee,O as o,Ot as s,P as c,Ut as l,Vt as u,Wt as d,Z as f,b as p,bt as m,ct as h,et as g,k as _,rt as v,ut as y,y as b,zt as x}from"./vendor-chart-BJCvKk8-.js";import{a as S,c as C,t as w}from"./install-CmiepWqE.js";import{i as T,n as E,r as D,s as O}from"./runtime-B1Eal4u3.js";import{Ct as k,I as A,a as j,i as M,it as N,m as P,n as F,nt as I,r as L,wt as R}from"./use-deprecated-B-NFNg3W.js";import{t as z}from"./use-aria-QsRrwtXj.js";import{n as B,r as V,t as H}from"./event-BGnHezxC.js";import{Ir as U}from"./index-
|
|
1
|
+
import{A as e,Bt as t,D as n,E as r,F as i,H as a,J as ee,O as o,Ot as s,P as c,Ut as l,Vt as u,Wt as d,Z as f,b as p,bt as m,ct as h,et as g,k as _,rt as v,ut as y,y as b,zt as x}from"./vendor-chart-BJCvKk8-.js";import{a as S,c as C,t as w}from"./install-CmiepWqE.js";import{i as T,n as E,r as D,s as O}from"./runtime-B1Eal4u3.js";import{Ct as k,I as A,a as j,i as M,it as N,m as P,n as F,nt as I,r as L,wt as R}from"./use-deprecated-B-NFNg3W.js";import{t as z}from"./use-aria-QsRrwtXj.js";import{n as B,r as V,t as H}from"./event-BGnHezxC.js";import{Ir as U}from"./index-Bz7Ib84l.js";var W=E({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:U},width:{type:[String,Number],default:``},inlinePrompt:Boolean,inactiveActionIcon:{type:P},activeActionIcon:{type:P},activeIcon:{type:P},inactiveIcon:{type:P},activeText:{type:String,default:``},inactiveText:{type:String,default:``},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:``},validateEvent:{type:Boolean,default:!0},beforeChange:{type:D(Function)},id:String,tabindex:{type:[String,Number]},...z([`ariaLabel`])}),G={[V]:e=>T(e)||t(e)||O(e),[H]:e=>T(e)||t(e)||O(e),[B]:e=>T(e)||t(e)||O(e)},K=`ElSwitch`,q=w(S(i({...i({name:K}),props:W,emits:G,setup(t,{expose:i,emit:S}){let w=t,{formItem:E}=M(),D=L(),O=C(`switch`),{inputId:P}=j(w,{formItemContext:E}),z=F(r(()=>w.loading)),U=m(w.modelValue!==!1),W=m(),G=m(),q=r(()=>[O.b(),O.m(D.value),O.is(`disabled`,z.value),O.is(`checked`,Z.value)]),J=r(()=>[O.e(`label`),O.em(`label`,`left`),O.is(`active`,!Z.value)]),Y=r(()=>[O.e(`label`),O.em(`label`,`right`),O.is(`active`,Z.value)]),te=r(()=>({width:N(w.width)}));h(()=>w.modelValue,()=>{U.value=!0});let X=r(()=>U.value?w.modelValue:!1),Z=r(()=>X.value===w.activeValue);[w.activeValue,w.inactiveValue].includes(X.value)||(S(V,w.inactiveValue),S(H,w.inactiveValue),S(B,w.inactiveValue)),h(Z,e=>{var t;W.value.checked=e,w.validateEvent&&((t=E?.validate)==null||t.call(E,`change`).catch(e=>k(e)))});let Q=()=>{let e=Z.value?w.inactiveValue:w.activeValue;S(V,e),S(H,e),S(B,e),a(()=>{W.value.checked=Z.value})},$=()=>{if(z.value)return;let{beforeChange:e}=w;if(!e){Q();return}let t=e();[x(t),T(t)].includes(!0)||R(K,"beforeChange must return type `Promise<boolean>` or `boolean`"),x(t)?t.then(e=>{e&&Q()}).catch(e=>{k(K,`some error occurred: ${e}`)}):t&&Q()};return ee(()=>{W.value.checked=Z.value}),i({focus:()=>{var e,t;(t=(e=W.value)?.focus)==null||t.call(e)},checked:Z}),(t,r)=>(f(),e(`div`,{class:u(s(q)),onClick:p($,[`prevent`])},[n(`input`,{id:s(P),ref_key:`input`,ref:W,class:u(s(O).e(`input`)),type:`checkbox`,role:`switch`,"aria-checked":s(Z),"aria-disabled":s(z),"aria-label":t.ariaLabel,name:t.name,"true-value":t.activeValue,"false-value":t.inactiveValue,disabled:s(z),tabindex:t.tabindex,onChange:Q,onKeydown:b($,[`enter`])},null,42,[`id`,`aria-checked`,`aria-disabled`,`aria-label`,`name`,`true-value`,`false-value`,`disabled`,`tabindex`,`onKeydown`]),!t.inlinePrompt&&(t.inactiveIcon||t.inactiveText)?(f(),e(`span`,{key:0,class:u(s(J))},[t.inactiveIcon?(f(),o(s(I),{key:0},{default:y(()=>[(f(),o(v(t.inactiveIcon)))]),_:1})):_(`v-if`,!0),!t.inactiveIcon&&t.inactiveText?(f(),e(`span`,{key:1,"aria-hidden":s(Z)},d(t.inactiveText),9,[`aria-hidden`])):_(`v-if`,!0)],2)):_(`v-if`,!0),n(`span`,{ref_key:`core`,ref:G,class:u(s(O).e(`core`)),style:l(s(te))},[t.inlinePrompt?(f(),e(`div`,{key:0,class:u(s(O).e(`inner`))},[t.activeIcon||t.inactiveIcon?(f(),o(s(I),{key:0,class:u(s(O).is(`icon`))},{default:y(()=>[(f(),o(v(s(Z)?t.activeIcon:t.inactiveIcon)))]),_:1},8,[`class`])):t.activeText||t.inactiveText?(f(),e(`span`,{key:1,class:u(s(O).is(`text`)),"aria-hidden":!s(Z)},d(s(Z)?t.activeText:t.inactiveText),11,[`aria-hidden`])):_(`v-if`,!0)],2)):_(`v-if`,!0),n(`div`,{class:u(s(O).e(`action`))},[t.loading?(f(),o(s(I),{key:0,class:u(s(O).is(`loading`))},{default:y(()=>[c(s(A))]),_:1},8,[`class`])):s(Z)?g(t.$slots,`active-action`,{key:1},()=>[t.activeActionIcon?(f(),o(s(I),{key:0},{default:y(()=>[(f(),o(v(t.activeActionIcon)))]),_:1})):_(`v-if`,!0)]):s(Z)?_(`v-if`,!0):g(t.$slots,`inactive-action`,{key:2},()=>[t.inactiveActionIcon?(f(),o(s(I),{key:0},{default:y(()=>[(f(),o(v(t.inactiveActionIcon)))]),_:1})):_(`v-if`,!0)])],2)],6),!t.inlinePrompt&&(t.activeIcon||t.activeText)?(f(),e(`span`,{key:1,class:u(s(Y))},[t.activeIcon?(f(),o(s(I),{key:0},{default:y(()=>[(f(),o(v(t.activeIcon)))]),_:1})):_(`v-if`,!0),!t.activeIcon&&t.activeText?(f(),e(`span`,{key:1,"aria-hidden":!s(Z)},d(t.activeText),9,[`aria-hidden`])):_(`v-if`,!0)],2)):_(`v-if`,!0)],10,[`onClick`]))}}),[[`__file`,`switch.vue`]]));export{q as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,B as t,Bt as n,Dt as r,E as i,F as a,G as o,H as s,I as c,J as l,K as u,Ot as d,P as f,Q as p,R as m,St as h,Ut as g,Vt as _,X as v,Z as y,bt as b,ct as x,dt as S,et as C,k as w,ot as T,v as E,vt as D,z as O}from"./vendor-chart-BJCvKk8-.js";import{a as k,c as A,i as j,t as M}from"./install-CmiepWqE.js";import{n as N,r as P,s as F,u as I}from"./runtime-B1Eal4u3.js";import{$t as L,At as R,Dt as ee,E as te,H as ne,Ht as re,Mt as ie,Nt as z,Ut as B,Wt as V,_ as ae,g as oe,nt as H,wt as U}from"./use-deprecated-B-NFNg3W.js";import{i as se}from"./use-aria-QsRrwtXj.js";import{s as ce}from"./_initCloneObject-BChp73vA.js";import{n as le,t as ue}from"./_baseClone-CEmTDUHL.js";import{t as de}from"./isPlainObject-BslrMTtk.js";import{r as W}from"./event-BGnHezxC.js";import{t as G}from"./aria-CQaCu-Fx.js";import{n as fe}from"./vnode-BKrYEsqE.js";import{t as K}from"./strings-CaTtp-gD.js";import{Kr as q}from"./index-BBcG_19k.js";function pe(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}function me(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function he(e,t){return t.length<2?e:re(e,pe(t,0,-1))}var ge=Object.prototype.hasOwnProperty;function _e(e,t){t=V(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=B(t[n]);if(i===`__proto__`&&!ge.call(e,`__proto__`)||(i===`constructor`||i===`prototype`)&&n<r-1)return!1}var a=he(e,t);return a==null||delete a[B(me(t))]}function ve(e){return de(e)?void 0:e}var ye=1,be=2,xe=4,Se=se(function(e,t){var n={};if(e==null)return n;var r=!1;t=L(t,function(t){return t=V(t,e),r||=t.length>1,t}),ce(e,le(e),n),r&&(n=ue(n,ye|be|xe,ve));for(var i=t.length;i--;)_e(n,t[i]);return n}),Ce=(e,n,r)=>fe(e.subTree).filter(e=>t(e)&&e.type?.name===n&&!!e.component).map(e=>e.component.uid).map(e=>r[e]).filter(e=>!!e),we=(e,t)=>{let n=h({}),i=h([]),o=new WeakMap,s=e=>{n.value[e.uid]=e,r(n),l(()=>{let t=e.getVnode().el,i=t.parentNode;if(!o.has(i)){o.set(i,[]);let e=i.insertBefore.bind(i);i.insertBefore=(t,a)=>(o.get(i).some(e=>t===e||a===e)&&r(n),e(t,a))}o.get(i).push(t)})},c=e=>{delete n.value[e.uid],r(n);let t=e.getVnode().el,i=t.parentNode,a=o.get(i),s=a.indexOf(t);a.splice(s,1)},u=()=>{i.value=Ce(e,t,n.value)},d=e=>e.render();return{children:i,addChild:s,removeChild:c,ChildrenSorter:a({setup(e,{slots:t}){return()=>(u(),t.default?m(d,{render:t.default}):null)}})}},J=Symbol(`tabsRootContextKey`),Te=N({tabs:{type:P(Array),default:()=>q([])},tabRefs:{type:P(Object),default:()=>q({})}}),Y=`ElTabBar`,Ee=k(a({...a({name:Y}),props:Te,setup(t,{expose:n}){let r=t,i=O(J);i||U(Y,`<el-tabs><el-tab-bar /></el-tabs>`);let a=A(`tabs`),c=b(),l=b(),u=()=>{let e=0,t=0,n=[`top`,`bottom`].includes(i.props.tabPosition)?`width`:`height`,a=n===`width`?`x`:`y`,o=a===`x`?`left`:`top`;return r.tabs.every(i=>{if(I(i.paneName))return!1;let a=r.tabRefs[i.paneName];if(!a)return!1;if(!i.active)return!0;e=a[`offset${K(o)}`],t=a[`client${K(n)}`];let s=window.getComputedStyle(a);return n===`width`&&(t-=Number.parseFloat(s.paddingLeft)+Number.parseFloat(s.paddingRight),e+=Number.parseFloat(s.paddingLeft)),!1}),{[n]:`${t}px`,transform:`translate${K(a)}(${e}px)`}},f=()=>l.value=u(),p=[],m=()=>{p.forEach(e=>e.stop()),p.length=0,Object.values(r.tabRefs).forEach(e=>{p.push(R(e,f))})};x(()=>r.tabs,async()=>{await s(),f(),m()},{immediate:!0});let h=R(c,()=>f());return o(()=>{p.forEach(e=>e.stop()),p.length=0,h.stop()}),n({ref:c,update:f}),(t,n)=>(y(),e(`div`,{ref_key:`barRef`,ref:c,class:_([d(a).e(`active-bar`),d(a).is(d(i).props.tabPosition)]),style:g(l.value)},null,6))}}),[[`__file`,`tab-bar.vue`]]),De=N({panes:{type:P(Array),default:()=>q([])},currentName:{type:[String,Number],default:``},editable:Boolean,type:{type:String,values:[`card`,`border-card`,``],default:``},stretch:Boolean}),Oe={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},X=`ElTabNav`,ke=a({name:X,props:De,emits:Oe,setup(e,{expose:t,emit:n}){let a=O(J);a||U(X,`<el-tabs><tab-nav /></el-tabs>`);let o=A(`tabs`),c=ee(),u=ie(),d=b(),p=b(),m=b(),g=b({}),_=b(),y=b(!1),S=b(0),C=b(!1),w=b(!0),T=h(),E=i(()=>[`top`,`bottom`].includes(a.props.tabPosition)?`width`:`height`),D=i(()=>({transform:`translate${E.value===`width`?`X`:`Y`}(-${S.value}px)`})),k=()=>{if(!d.value)return;let e=d.value[`offset${K(E.value)}`],t=S.value;t&&(S.value=t>e?t-e:0)},j=()=>{if(!d.value||!p.value)return;let e=p.value[`offset${K(E.value)}`],t=d.value[`offset${K(E.value)}`],n=S.value;e-n<=t||(S.value=e-n>t*2?n+t:e-t)},M=async()=>{let t=p.value;if(!y.value||!m.value||!d.value||!t)return;await s();let n=g.value[e.currentName];if(!n)return;let r=d.value,i=[`top`,`bottom`].includes(a.props.tabPosition),o=n.getBoundingClientRect(),c=r.getBoundingClientRect(),l=i?t.offsetWidth-c.width:t.offsetHeight-c.height,u=S.value,f=u;i?(o.left<c.left&&(f=u-(c.left-o.left)),o.right>c.right&&(f=u+o.right-c.right)):(o.top<c.top&&(f=u-(c.top-o.top)),o.bottom>c.bottom&&(f=u+(o.bottom-c.bottom))),f=Math.max(f,0),S.value=Math.min(f,l)},N=()=>{var t;if(!p.value||!d.value)return;e.stretch&&((t=_.value)==null||t.update());let n=p.value[`offset${K(E.value)}`],r=d.value[`offset${K(E.value)}`],i=S.value;r<n?(y.value=y.value||{},y.value.prev=i,y.value.next=i+r<n,n-i<r&&(S.value=n-r)):(y.value=!1,i>0&&(S.value=0))},P=e=>{let t=0;switch(e.code){case G.left:case G.up:t=-1;break;case G.right:case G.down:t=1;break;default:return}let n=Array.from(e.currentTarget.querySelectorAll(`[role=tab]:not(.is-disabled)`)),r=n.indexOf(e.target)+t;r<0?r=n.length-1:r>=n.length&&(r=0),n[r].focus({preventScroll:!0}),n[r].click(),F()},F=()=>{w.value&&(C.value=!0)},I=()=>C.value=!1,L=(e,t)=>{g.value[t]=e};return x(c,e=>{e===`hidden`?w.value=!1:e===`visible`&&setTimeout(()=>w.value=!0,50)}),x(u,e=>{e?setTimeout(()=>w.value=!0,50):w.value=!1}),R(m,N),l(()=>setTimeout(()=>M(),0)),v(()=>N()),t({scrollToActiveTab:M,removeFocus:I,focusActiveTab:async()=>{await s(),g.value[e.currentName]?.focus({preventScroll:!0})},tabListRef:p,tabBarRef:_,scheduleRender:()=>r(T)}),()=>{let t=y.value?[f(`span`,{class:[o.e(`nav-prev`),o.is(`disabled`,!y.value.prev)],onClick:k},[f(H,null,{default:()=>[f(oe,null,null)]})]),f(`span`,{class:[o.e(`nav-next`),o.is(`disabled`,!y.value.next)],onClick:j},[f(H,null,{default:()=>[f(ae,null,null)]})])]:null,r=e.panes.map((t,r)=>{var i;let s=t.uid,c=t.props.disabled,l=t.props.name??t.index??`${r}`,u=!c&&(t.isClosable||e.editable);t.index=`${r}`;let d=u?f(H,{class:`is-icon-close`,onClick:e=>n(`tabRemove`,t,e)},{default:()=>[f(te,null,null)]}):null,p=(i=t.slots).label?.call(i)||t.props.label,m=!c&&t.active?0:-1;return f(`div`,{ref:e=>L(e,l),class:[o.e(`item`),o.is(a.props.tabPosition),o.is(`active`,t.active),o.is(`disabled`,c),o.is(`closable`,u),o.is(`focus`,C.value)],id:`tab-${l}`,key:`tab-${s}`,"aria-controls":`pane-${l}`,role:`tab`,"aria-selected":t.active,tabindex:m,onFocus:()=>F(),onBlur:()=>I(),onClick:e=>{I(),n(`tabClick`,t,l,e)},onKeydown:e=>{u&&(e.code===G.delete||e.code===G.backspace)&&n(`tabRemove`,t,e)}},[p,d])});return T.value,f(`div`,{ref:m,class:[o.e(`nav-wrap`),o.is(`scrollable`,!!y.value),o.is(a.props.tabPosition)]},[t,f(`div`,{class:o.e(`nav-scroll`),ref:d},[e.panes.length>0?f(`div`,{class:[o.e(`nav`),o.is(a.props.tabPosition),o.is(`stretch`,e.stretch&&[`top`,`bottom`].includes(a.props.tabPosition))],ref:p,style:D.value,role:`tablist`,onKeydown:P},[e.type?null:f(Ee,{ref:_,tabs:[...e.panes],tabRefs:g.value},null),r]):null])])}}}),Ae=N({type:{type:String,values:[`card`,`border-card`,``],default:``},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:[`top`,`right`,`bottom`,`left`],default:`top`},beforeLeave:{type:P(Function),default:()=>!0},stretch:Boolean}),Z=e=>n(e)||F(e),je=a({name:`ElTabs`,props:Ae,emits:{[W]:e=>Z(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>Z(e),edit:(e,t)=>[`remove`,`add`].includes(t),tabRemove:e=>Z(e),tabAdd:()=>!0},setup(e,{emit:t,slots:n,expose:r}){let a=A(`tabs`),o=i(()=>[`left`,`right`].includes(e.tabPosition)),{children:l,addChild:u,removeChild:d,ChildrenSorter:m}=we(c(),`ElTabPane`),h=b(),g=b(e.modelValue??`0`),_=async(n,r=!1)=>{var i,a,o;if(!(g.value===n||I(n)))try{let s;if(e.beforeLeave){let t=e.beforeLeave(n,g.value);s=t instanceof Promise?await t:t}else s=!0;if(s!==!1){let e=l.value.find(e=>e.paneName===g.value)?.isFocusInsidePane();g.value=n,r&&(t(W,n),t(`tabChange`,n)),(a=(i=h.value)?.removeFocus)==null||a.call(i),e&&((o=h.value)==null||o.focusActiveTab())}}catch{}},v=(e,n,r)=>{e.props.disabled||(t(`tabClick`,e,r),_(n,!0))},y=(e,n)=>{e.props.disabled||I(e.props.name)||(n.stopPropagation(),t(`edit`,e.props.name,`remove`),t(`tabRemove`,e.props.name))},S=()=>{t(`edit`,void 0,`add`),t(`tabAdd`)},w=t=>{let n=t.el.firstChild,r=[`bottom`,`right`].includes(e.tabPosition)?t.children[0].el:t.children[1].el;n!==r&&n.before(r)};return x(()=>e.modelValue,e=>_(e)),x(g,async()=>{var e;await s(),(e=h.value)==null||e.scrollToActiveTab()}),p(J,{props:e,currentName:g,registerPane:u,unregisterPane:d,nav$:h}),r({currentName:g,get tabNavRef(){return Se(h.value,[`scheduleRender`])}}),()=>{let t=n[`add-icon`],r=e.editable||e.addable?f(`div`,{class:[a.e(`new-tab`),o.value&&a.e(`new-tab-vertical`)],tabindex:`0`,onClick:S,onKeydown:e=>{[G.enter,G.numpadEnter].includes(e.code)&&S()}},[t?C(n,`add-icon`):f(H,{class:a.is(`icon-plus`)},{default:()=>[f(ne,null,null)]})]):null,i=f(`div`,{class:[a.e(`header`),o.value&&a.e(`header-vertical`),a.is(e.tabPosition)]},[f(m,null,{default:()=>f(ke,{ref:h,currentName:g.value,editable:e.editable,type:e.type,panes:l.value,stretch:e.stretch,onTabClick:v,onTabRemove:y},null),$stable:!0}),r]),s=f(`div`,{class:a.e(`content`)},[C(n,`default`)]);return f(`div`,{class:[a.b(),a.m(e.tabPosition),{[a.m(`card`)]:e.type===`card`,[a.m(`border-card`)]:e.type===`border-card`}],onVnodeMounted:w,onVnodeUpdated:w},[s,i])}}}),Me=N({label:{type:String,default:``},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Q=`ElTabPane`,$=k(a({...a({name:Q}),props:Me,setup(t){let n=t,r=c(),a=T(),s=O(J);s||U(Q,`usage: <el-tabs><el-tab-pane /></el-tabs/>`);let l=A(`tab-pane`),f=b(),p=b(),m=i(()=>n.closable||s.props.closable),h=z(()=>s.currentName.value===(n.name??p.value)),g=b(h.value),v=i(()=>n.name??p.value),k=z(()=>!n.lazy||g.value||h.value),j=()=>f.value?.contains(document.activeElement);x(h,e=>{e&&(g.value=!0)});let M=D({uid:r.uid,getVnode:()=>r.vnode,slots:a,props:n,paneName:v,active:h,index:p,isClosable:m,isFocusInsidePane:j});return s.registerPane(M),o(()=>{s.unregisterPane(M)}),u(()=>{var e;a.label&&((e=s.nav$.value)==null||e.scheduleRender())}),(t,n)=>d(k)?S((y(),e(`div`,{key:0,id:`pane-${d(v)}`,ref_key:`paneRef`,ref:f,class:_(d(l).b()),role:`tabpanel`,"aria-hidden":!d(h),"aria-labelledby":`tab-${d(v)}`},[C(t.$slots,`default`)],10,[`id`,`aria-hidden`,`aria-labelledby`])),[[E,d(h)]]):w(`v-if`,!0)}}),[[`__file`,`tab-pane.vue`]]),Ne=M(je,{TabPane:$}),Pe=j($);export{Ne as n,Pe as t};
|
|
1
|
+
import{A as e,B as t,Bt as n,Dt as r,E as i,F as a,G as o,H as s,I as c,J as l,K as u,Ot as d,P as f,Q as p,R as m,St as h,Ut as g,Vt as _,X as v,Z as y,bt as b,ct as x,dt as S,et as C,k as w,ot as T,v as E,vt as D,z as O}from"./vendor-chart-BJCvKk8-.js";import{a as k,c as A,i as j,t as M}from"./install-CmiepWqE.js";import{n as N,r as P,s as F,u as I}from"./runtime-B1Eal4u3.js";import{$t as L,At as R,Dt as ee,E as te,H as ne,Ht as re,Mt as ie,Nt as z,Ut as B,Wt as V,_ as ae,g as oe,nt as H,wt as U}from"./use-deprecated-B-NFNg3W.js";import{i as se}from"./use-aria-QsRrwtXj.js";import{s as ce}from"./_initCloneObject-BChp73vA.js";import{n as le,t as ue}from"./_baseClone-CEmTDUHL.js";import{t as de}from"./isPlainObject-BslrMTtk.js";import{r as W}from"./event-BGnHezxC.js";import{t as G}from"./aria-CQaCu-Fx.js";import{n as fe}from"./vnode-BKrYEsqE.js";import{t as K}from"./strings-CaTtp-gD.js";import{Kr as q}from"./index-Bz7Ib84l.js";function pe(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}function me(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function he(e,t){return t.length<2?e:re(e,pe(t,0,-1))}var ge=Object.prototype.hasOwnProperty;function _e(e,t){t=V(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=B(t[n]);if(i===`__proto__`&&!ge.call(e,`__proto__`)||(i===`constructor`||i===`prototype`)&&n<r-1)return!1}var a=he(e,t);return a==null||delete a[B(me(t))]}function ve(e){return de(e)?void 0:e}var ye=1,be=2,xe=4,Se=se(function(e,t){var n={};if(e==null)return n;var r=!1;t=L(t,function(t){return t=V(t,e),r||=t.length>1,t}),ce(e,le(e),n),r&&(n=ue(n,ye|be|xe,ve));for(var i=t.length;i--;)_e(n,t[i]);return n}),Ce=(e,n,r)=>fe(e.subTree).filter(e=>t(e)&&e.type?.name===n&&!!e.component).map(e=>e.component.uid).map(e=>r[e]).filter(e=>!!e),we=(e,t)=>{let n=h({}),i=h([]),o=new WeakMap,s=e=>{n.value[e.uid]=e,r(n),l(()=>{let t=e.getVnode().el,i=t.parentNode;if(!o.has(i)){o.set(i,[]);let e=i.insertBefore.bind(i);i.insertBefore=(t,a)=>(o.get(i).some(e=>t===e||a===e)&&r(n),e(t,a))}o.get(i).push(t)})},c=e=>{delete n.value[e.uid],r(n);let t=e.getVnode().el,i=t.parentNode,a=o.get(i),s=a.indexOf(t);a.splice(s,1)},u=()=>{i.value=Ce(e,t,n.value)},d=e=>e.render();return{children:i,addChild:s,removeChild:c,ChildrenSorter:a({setup(e,{slots:t}){return()=>(u(),t.default?m(d,{render:t.default}):null)}})}},J=Symbol(`tabsRootContextKey`),Te=N({tabs:{type:P(Array),default:()=>q([])},tabRefs:{type:P(Object),default:()=>q({})}}),Y=`ElTabBar`,Ee=k(a({...a({name:Y}),props:Te,setup(t,{expose:n}){let r=t,i=O(J);i||U(Y,`<el-tabs><el-tab-bar /></el-tabs>`);let a=A(`tabs`),c=b(),l=b(),u=()=>{let e=0,t=0,n=[`top`,`bottom`].includes(i.props.tabPosition)?`width`:`height`,a=n===`width`?`x`:`y`,o=a===`x`?`left`:`top`;return r.tabs.every(i=>{if(I(i.paneName))return!1;let a=r.tabRefs[i.paneName];if(!a)return!1;if(!i.active)return!0;e=a[`offset${K(o)}`],t=a[`client${K(n)}`];let s=window.getComputedStyle(a);return n===`width`&&(t-=Number.parseFloat(s.paddingLeft)+Number.parseFloat(s.paddingRight),e+=Number.parseFloat(s.paddingLeft)),!1}),{[n]:`${t}px`,transform:`translate${K(a)}(${e}px)`}},f=()=>l.value=u(),p=[],m=()=>{p.forEach(e=>e.stop()),p.length=0,Object.values(r.tabRefs).forEach(e=>{p.push(R(e,f))})};x(()=>r.tabs,async()=>{await s(),f(),m()},{immediate:!0});let h=R(c,()=>f());return o(()=>{p.forEach(e=>e.stop()),p.length=0,h.stop()}),n({ref:c,update:f}),(t,n)=>(y(),e(`div`,{ref_key:`barRef`,ref:c,class:_([d(a).e(`active-bar`),d(a).is(d(i).props.tabPosition)]),style:g(l.value)},null,6))}}),[[`__file`,`tab-bar.vue`]]),De=N({panes:{type:P(Array),default:()=>q([])},currentName:{type:[String,Number],default:``},editable:Boolean,type:{type:String,values:[`card`,`border-card`,``],default:``},stretch:Boolean}),Oe={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},X=`ElTabNav`,ke=a({name:X,props:De,emits:Oe,setup(e,{expose:t,emit:n}){let a=O(J);a||U(X,`<el-tabs><tab-nav /></el-tabs>`);let o=A(`tabs`),c=ee(),u=ie(),d=b(),p=b(),m=b(),g=b({}),_=b(),y=b(!1),S=b(0),C=b(!1),w=b(!0),T=h(),E=i(()=>[`top`,`bottom`].includes(a.props.tabPosition)?`width`:`height`),D=i(()=>({transform:`translate${E.value===`width`?`X`:`Y`}(-${S.value}px)`})),k=()=>{if(!d.value)return;let e=d.value[`offset${K(E.value)}`],t=S.value;t&&(S.value=t>e?t-e:0)},j=()=>{if(!d.value||!p.value)return;let e=p.value[`offset${K(E.value)}`],t=d.value[`offset${K(E.value)}`],n=S.value;e-n<=t||(S.value=e-n>t*2?n+t:e-t)},M=async()=>{let t=p.value;if(!y.value||!m.value||!d.value||!t)return;await s();let n=g.value[e.currentName];if(!n)return;let r=d.value,i=[`top`,`bottom`].includes(a.props.tabPosition),o=n.getBoundingClientRect(),c=r.getBoundingClientRect(),l=i?t.offsetWidth-c.width:t.offsetHeight-c.height,u=S.value,f=u;i?(o.left<c.left&&(f=u-(c.left-o.left)),o.right>c.right&&(f=u+o.right-c.right)):(o.top<c.top&&(f=u-(c.top-o.top)),o.bottom>c.bottom&&(f=u+(o.bottom-c.bottom))),f=Math.max(f,0),S.value=Math.min(f,l)},N=()=>{var t;if(!p.value||!d.value)return;e.stretch&&((t=_.value)==null||t.update());let n=p.value[`offset${K(E.value)}`],r=d.value[`offset${K(E.value)}`],i=S.value;r<n?(y.value=y.value||{},y.value.prev=i,y.value.next=i+r<n,n-i<r&&(S.value=n-r)):(y.value=!1,i>0&&(S.value=0))},P=e=>{let t=0;switch(e.code){case G.left:case G.up:t=-1;break;case G.right:case G.down:t=1;break;default:return}let n=Array.from(e.currentTarget.querySelectorAll(`[role=tab]:not(.is-disabled)`)),r=n.indexOf(e.target)+t;r<0?r=n.length-1:r>=n.length&&(r=0),n[r].focus({preventScroll:!0}),n[r].click(),F()},F=()=>{w.value&&(C.value=!0)},I=()=>C.value=!1,L=(e,t)=>{g.value[t]=e};return x(c,e=>{e===`hidden`?w.value=!1:e===`visible`&&setTimeout(()=>w.value=!0,50)}),x(u,e=>{e?setTimeout(()=>w.value=!0,50):w.value=!1}),R(m,N),l(()=>setTimeout(()=>M(),0)),v(()=>N()),t({scrollToActiveTab:M,removeFocus:I,focusActiveTab:async()=>{await s(),g.value[e.currentName]?.focus({preventScroll:!0})},tabListRef:p,tabBarRef:_,scheduleRender:()=>r(T)}),()=>{let t=y.value?[f(`span`,{class:[o.e(`nav-prev`),o.is(`disabled`,!y.value.prev)],onClick:k},[f(H,null,{default:()=>[f(oe,null,null)]})]),f(`span`,{class:[o.e(`nav-next`),o.is(`disabled`,!y.value.next)],onClick:j},[f(H,null,{default:()=>[f(ae,null,null)]})])]:null,r=e.panes.map((t,r)=>{var i;let s=t.uid,c=t.props.disabled,l=t.props.name??t.index??`${r}`,u=!c&&(t.isClosable||e.editable);t.index=`${r}`;let d=u?f(H,{class:`is-icon-close`,onClick:e=>n(`tabRemove`,t,e)},{default:()=>[f(te,null,null)]}):null,p=(i=t.slots).label?.call(i)||t.props.label,m=!c&&t.active?0:-1;return f(`div`,{ref:e=>L(e,l),class:[o.e(`item`),o.is(a.props.tabPosition),o.is(`active`,t.active),o.is(`disabled`,c),o.is(`closable`,u),o.is(`focus`,C.value)],id:`tab-${l}`,key:`tab-${s}`,"aria-controls":`pane-${l}`,role:`tab`,"aria-selected":t.active,tabindex:m,onFocus:()=>F(),onBlur:()=>I(),onClick:e=>{I(),n(`tabClick`,t,l,e)},onKeydown:e=>{u&&(e.code===G.delete||e.code===G.backspace)&&n(`tabRemove`,t,e)}},[p,d])});return T.value,f(`div`,{ref:m,class:[o.e(`nav-wrap`),o.is(`scrollable`,!!y.value),o.is(a.props.tabPosition)]},[t,f(`div`,{class:o.e(`nav-scroll`),ref:d},[e.panes.length>0?f(`div`,{class:[o.e(`nav`),o.is(a.props.tabPosition),o.is(`stretch`,e.stretch&&[`top`,`bottom`].includes(a.props.tabPosition))],ref:p,style:D.value,role:`tablist`,onKeydown:P},[e.type?null:f(Ee,{ref:_,tabs:[...e.panes],tabRefs:g.value},null),r]):null])])}}}),Ae=N({type:{type:String,values:[`card`,`border-card`,``],default:``},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:[`top`,`right`,`bottom`,`left`],default:`top`},beforeLeave:{type:P(Function),default:()=>!0},stretch:Boolean}),Z=e=>n(e)||F(e),je=a({name:`ElTabs`,props:Ae,emits:{[W]:e=>Z(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>Z(e),edit:(e,t)=>[`remove`,`add`].includes(t),tabRemove:e=>Z(e),tabAdd:()=>!0},setup(e,{emit:t,slots:n,expose:r}){let a=A(`tabs`),o=i(()=>[`left`,`right`].includes(e.tabPosition)),{children:l,addChild:u,removeChild:d,ChildrenSorter:m}=we(c(),`ElTabPane`),h=b(),g=b(e.modelValue??`0`),_=async(n,r=!1)=>{var i,a,o;if(!(g.value===n||I(n)))try{let s;if(e.beforeLeave){let t=e.beforeLeave(n,g.value);s=t instanceof Promise?await t:t}else s=!0;if(s!==!1){let e=l.value.find(e=>e.paneName===g.value)?.isFocusInsidePane();g.value=n,r&&(t(W,n),t(`tabChange`,n)),(a=(i=h.value)?.removeFocus)==null||a.call(i),e&&((o=h.value)==null||o.focusActiveTab())}}catch{}},v=(e,n,r)=>{e.props.disabled||(t(`tabClick`,e,r),_(n,!0))},y=(e,n)=>{e.props.disabled||I(e.props.name)||(n.stopPropagation(),t(`edit`,e.props.name,`remove`),t(`tabRemove`,e.props.name))},S=()=>{t(`edit`,void 0,`add`),t(`tabAdd`)},w=t=>{let n=t.el.firstChild,r=[`bottom`,`right`].includes(e.tabPosition)?t.children[0].el:t.children[1].el;n!==r&&n.before(r)};return x(()=>e.modelValue,e=>_(e)),x(g,async()=>{var e;await s(),(e=h.value)==null||e.scrollToActiveTab()}),p(J,{props:e,currentName:g,registerPane:u,unregisterPane:d,nav$:h}),r({currentName:g,get tabNavRef(){return Se(h.value,[`scheduleRender`])}}),()=>{let t=n[`add-icon`],r=e.editable||e.addable?f(`div`,{class:[a.e(`new-tab`),o.value&&a.e(`new-tab-vertical`)],tabindex:`0`,onClick:S,onKeydown:e=>{[G.enter,G.numpadEnter].includes(e.code)&&S()}},[t?C(n,`add-icon`):f(H,{class:a.is(`icon-plus`)},{default:()=>[f(ne,null,null)]})]):null,i=f(`div`,{class:[a.e(`header`),o.value&&a.e(`header-vertical`),a.is(e.tabPosition)]},[f(m,null,{default:()=>f(ke,{ref:h,currentName:g.value,editable:e.editable,type:e.type,panes:l.value,stretch:e.stretch,onTabClick:v,onTabRemove:y},null),$stable:!0}),r]),s=f(`div`,{class:a.e(`content`)},[C(n,`default`)]);return f(`div`,{class:[a.b(),a.m(e.tabPosition),{[a.m(`card`)]:e.type===`card`,[a.m(`border-card`)]:e.type===`border-card`}],onVnodeMounted:w,onVnodeUpdated:w},[s,i])}}}),Me=N({label:{type:String,default:``},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Q=`ElTabPane`,$=k(a({...a({name:Q}),props:Me,setup(t){let n=t,r=c(),a=T(),s=O(J);s||U(Q,`usage: <el-tabs><el-tab-pane /></el-tabs/>`);let l=A(`tab-pane`),f=b(),p=b(),m=i(()=>n.closable||s.props.closable),h=z(()=>s.currentName.value===(n.name??p.value)),g=b(h.value),v=i(()=>n.name??p.value),k=z(()=>!n.lazy||g.value||h.value),j=()=>f.value?.contains(document.activeElement);x(h,e=>{e&&(g.value=!0)});let M=D({uid:r.uid,getVnode:()=>r.vnode,slots:a,props:n,paneName:v,active:h,index:p,isClosable:m,isFocusInsidePane:j});return s.registerPane(M),o(()=>{s.unregisterPane(M)}),u(()=>{var e;a.label&&((e=s.nav$.value)==null||e.scheduleRender())}),(t,n)=>d(k)?S((y(),e(`div`,{key:0,id:`pane-${d(v)}`,ref_key:`paneRef`,ref:f,class:_(d(l).b()),role:`tabpanel`,"aria-hidden":!d(h),"aria-labelledby":`tab-${d(v)}`},[C(t.$slots,`default`)],10,[`id`,`aria-hidden`,`aria-labelledby`])),[[E,d(h)]]):w(`v-if`,!0)}}),[[`__file`,`tab-pane.vue`]]),Ne=M(je,{TabPane:$}),Pe=j($);export{Ne as n,Pe as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,A as t,D as n,E as r,F as i,G as a,It as o,O as s,Ot as c,P as l,Pt as u,Q as d,Rt as f,S as p,St as m,Ut as h,V as g,Vt as _,Wt as v,Z as y,b,bt as x,ct as S,d as C,et as w,j as T,k as E,kt as D,ut as O,wt as ee,y as k,z as A}from"./vendor-chart-BJCvKk8-.js";import{a as j,c as M,t as te}from"./install-CmiepWqE.js";import{d as N,n as P,r as F}from"./runtime-B1Eal4u3.js";import{A as ne,Ct as re,E as ie,b as ae,ct as I,et as oe,j as se,jt as ce,n as L,nt as R,wt as z,x as le,yt as ue}from"./use-deprecated-B-NFNg3W.js";import{t as de}from"./_baseClone-CEmTDUHL.js";import{t as fe}from"./isEqual-_FbwVL6h.js";import{t as B}from"./progress-CQjsb6Jp.js";import{Kr as V}from"./index-BBcG_19k.js";var pe=1,me=4;function H(e){return de(e,pe|me)}var U=Symbol(`uploadContextKey`),he=`ElUpload`,ge=class extends Error{constructor(e,t,n,r){super(e),this.name=`UploadAjaxError`,this.status=t,this.method=n,this.url=r}};function W(e,t,n){let r;return r=n.response?`${n.response.error||n.response}`:n.responseText?`${n.responseText}`:`fail to ${t.method} ${e} ${n.status}`,new ge(r,n.status,t.method,e)}function _e(e){let t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}var ve=e=>{typeof XMLHttpRequest>`u`&&z(he,`XMLHttpRequest is undefined`);let t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener(`progress`,t=>{let n=t;n.percent=t.total>0?t.loaded/t.total*100:0,e.onProgress(n)});let r=new FormData;if(e.data)for(let[t,n]of Object.entries(e.data))u(n)&&n.length?r.append(t,...n):r.append(t,n);r.append(e.filename,e.file,e.file.name),t.addEventListener(`error`,()=>{e.onError(W(n,e,t))}),t.addEventListener(`load`,()=>{if(t.status<200||t.status>=300)return e.onError(W(n,e,t));e.onSuccess(_e(t))}),t.open(e.method,n,!0),e.withCredentials&&`withCredentials`in t&&(t.withCredentials=!0);let i=e.headers||{};if(i instanceof Headers)i.forEach((e,n)=>t.setRequestHeader(n,e));else for(let[e,n]of Object.entries(i))N(n)||t.setRequestHeader(e,String(n));return t.send(r),t},G=[`text`,`picture`,`picture-card`],ye=1,K=()=>Date.now()+ ye++,q=P({action:{type:String,default:`#`},headers:{type:F(Object)},method:{type:String,default:`post`},data:{type:F([Object,Function,Promise]),default:()=>V({})},multiple:Boolean,name:{type:String,default:`file`},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:``},fileList:{type:F(Array),default:()=>V([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:G,default:`text`},httpRequest:{type:F(Function),default:ve},disabled:Boolean,limit:Number}),be=P({...q,beforeUpload:{type:F(Function),default:D},beforeRemove:{type:F(Function)},onRemove:{type:F(Function),default:D},onChange:{type:F(Function),default:D},onPreview:{type:F(Function),default:D},onSuccess:{type:F(Function),default:D},onProgress:{type:F(Function),default:D},onError:{type:F(Function),default:D},onExceed:{type:F(Function),default:D},crossorigin:{type:F(String)}}),xe=P({files:{type:F(Array),default:()=>V([])},disabled:Boolean,handlePreview:{type:F(Function),default:D},listType:{type:String,values:G,default:`text`},crossorigin:{type:F(String)}}),Se={remove:e=>!!e},J=j(i({...i({name:`ElUploadList`}),props:xe,emits:Se,setup(i,{emit:a}){let o=i,{t:u}=ue(),d=M(`upload`),f=M(`icon`),m=M(`list`),g=L(),S=x(!1),T=r(()=>[d.b(`list`),d.bm(`list`,o.listType),d.is(`disabled`,o.disabled)]),D=e=>{a(`remove`,e)};return(r,i)=>(y(),s(C,{tag:`ul`,class:_(c(T)),name:c(m).b()},{default:O(()=>[(y(!0),t(p,null,e(r.files,(e,i)=>(y(),t(`li`,{key:e.uid||e.name,class:_([c(d).be(`list`,`item`),c(d).is(e.status),{focusing:S.value}]),tabindex:`0`,onKeydown:k(t=>!c(g)&&D(e),[`delete`]),onFocus:e=>S.value=!0,onBlur:e=>S.value=!1,onClick:e=>S.value=!1},[w(r.$slots,`default`,{file:e,index:i},()=>[r.listType===`picture`||e.status!==`uploading`&&r.listType===`picture-card`?(y(),t(`img`,{key:0,class:_(c(d).be(`list`,`item-thumbnail`)),src:e.url,crossorigin:r.crossorigin,alt:``},null,10,[`src`,`crossorigin`])):E(`v-if`,!0),e.status===`uploading`||r.listType!==`picture-card`?(y(),t(`div`,{key:1,class:_(c(d).be(`list`,`item-info`))},[n(`a`,{class:_(c(d).be(`list`,`item-name`)),onClick:b(t=>r.handlePreview(e),[`prevent`])},[l(c(R),{class:_(c(f).m(`document`))},{default:O(()=>[l(c(se))]),_:1},8,[`class`]),n(`span`,{class:_(c(d).be(`list`,`item-file-name`)),title:e.name},v(e.name),11,[`title`])],10,[`onClick`]),e.status===`uploading`?(y(),s(c(B),{key:0,type:r.listType===`picture-card`?`circle`:`line`,"stroke-width":r.listType===`picture-card`?6:2,percentage:Number(e.percentage),style:h(r.listType===`picture-card`?``:`margin-top: 0.5rem`)},null,8,[`type`,`stroke-width`,`percentage`,`style`])):E(`v-if`,!0)],2)):E(`v-if`,!0),n(`label`,{class:_(c(d).be(`list`,`item-status-label`))},[r.listType===`text`?(y(),s(c(R),{key:0,class:_([c(f).m(`upload-success`),c(f).m(`circle-check`)])},{default:O(()=>[l(c(le))]),_:1},8,[`class`])):[`picture-card`,`picture`].includes(r.listType)?(y(),s(c(R),{key:1,class:_([c(f).m(`upload-success`),c(f).m(`check`)])},{default:O(()=>[l(c(ae))]),_:1},8,[`class`])):E(`v-if`,!0)],2),c(g)?E(`v-if`,!0):(y(),s(c(R),{key:2,class:_(c(f).m(`close`)),onClick:t=>D(e)},{default:O(()=>[l(c(ie))]),_:2},1032,[`class`,`onClick`])),E(` Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn`),E(` This is a bug which needs to be fixed `),E(` TODO: Fix the incorrect navigation interaction `),c(g)?E(`v-if`,!0):(y(),t(`i`,{key:3,class:_(c(f).m(`close-tip`))},v(c(u)(`el.upload.deleteTip`)),3)),r.listType===`picture-card`?(y(),t(`span`,{key:4,class:_(c(d).be(`list`,`item-actions`))},[n(`span`,{class:_(c(d).be(`list`,`item-preview`)),onClick:t=>r.handlePreview(e)},[l(c(R),{class:_(c(f).m(`zoom-in`))},{default:O(()=>[l(c(oe))]),_:1},8,[`class`])],10,[`onClick`]),c(g)?E(`v-if`,!0):(y(),t(`span`,{key:0,class:_(c(d).be(`list`,`item-delete`)),onClick:t=>D(e)},[l(c(R),{class:_(c(f).m(`delete`))},{default:O(()=>[l(c(ne))]),_:1},8,[`class`])],10,[`onClick`]))],2)):E(`v-if`,!0)])],42,[`onKeydown`,`onFocus`,`onBlur`,`onClick`]))),128)),w(r.$slots,`append`)]),_:3},8,[`class`,`name`]))}}),[[`__file`,`upload-list.vue`]]),Ce=P({disabled:Boolean}),we={file:e=>u(e)},Y=`ElUploadDrag`,Te=j(i({...i({name:Y}),props:Ce,emits:we,setup(e,{emit:n}){A(U)||z(Y,`usage: <el-upload><el-upload-dragger /></el-upload>`);let r=M(`upload`),i=x(!1),a=L(),o=e=>{if(a.value)return;i.value=!1,e.stopPropagation();let t=Array.from(e.dataTransfer.files),r=e.dataTransfer.items||[];t.forEach((e,t)=>{let n=r[t],i=(n?.webkitGetAsEntry)?.call(n);i&&(e.isDirectory=i.isDirectory)}),n(`file`,t)},s=()=>{a.value||(i.value=!0)},l=e=>{e.currentTarget.contains(e.relatedTarget)||(i.value=!1)};return(e,n)=>(y(),t(`div`,{class:_([c(r).b(`dragger`),c(r).is(`dragover`,i.value)]),onDrop:b(o,[`prevent`]),onDragover:b(s,[`prevent`]),onDragleave:b(l,[`prevent`])},[w(e.$slots,`default`)],42,[`onDrop`,`onDragover`,`onDragleave`]))}}),[[`__file`,`upload-dragger.vue`]]),X=P({...q,beforeUpload:{type:F(Function),default:D},onRemove:{type:F(Function),default:D},onStart:{type:F(Function),default:D},onSuccess:{type:F(Function),default:D},onProgress:{type:F(Function),default:D},onError:{type:F(Function),default:D},onExceed:{type:F(Function),default:D}}),Z=j(i({...i({name:`ElUploadContent`,inheritAttrs:!1}),props:X,setup(e,{expose:r}){let i=e,a=M(`upload`),l=L(),u=m({}),d=m(),p=e=>{if(e.length===0)return;let{autoUpload:t,limit:n,fileList:r,multiple:a,onStart:o,onExceed:s}=i;if(n&&r.length+e.length>n){s(e,r);return}a||(e=e.slice(0,1));for(let n of e){let e=n;e.uid=K(),o(e),t&&h(e)}},h=async e=>{if(d.value.value=``,!i.beforeUpload)return v(e);let t,n={};try{let r=i.data,a=i.beforeUpload(e);n=f(i.data)?H(i.data):i.data,t=await a,f(i.data)&&fe(r,n)&&(n=H(i.data))}catch{t=!1}if(t===!1){i.onRemove(e);return}let r=e;t instanceof Blob&&(r=t instanceof File?t:new File([t],e.name,{type:e.type})),v(Object.assign(r,{uid:e.uid}),n)},g=async(e,t)=>o(e)?e(t):e,v=async(e,t)=>{let{headers:n,data:r,method:a,withCredentials:o,name:s,action:c,onProgress:l,onSuccess:d,onError:f,httpRequest:p}=i;try{t=await g(t??r,e)}catch{i.onRemove(e);return}let{uid:m}=e,h={headers:n||{},withCredentials:o,file:e,data:t,method:a,filename:s,action:c,onProgress:t=>{l(t,e)},onSuccess:t=>{d(t,e),delete u.value[m]},onError:t=>{f(t,e),delete u.value[m]}},_=p(h);u.value[m]=_,_ instanceof Promise&&_.then(h.onSuccess,h.onError)},x=e=>{let t=e.target.files;t&&p(Array.from(t))},S=()=>{l.value||(d.value.value=``,d.value.click())},C=()=>{S()};return r({abort:e=>{I(u.value).filter(e?([t])=>String(e.uid)===t:()=>!0).forEach(([e,t])=>{t instanceof XMLHttpRequest&&t.abort(),delete u.value[e]})},upload:h}),(e,r)=>(y(),t(`div`,{class:_([c(a).b(),c(a).m(e.listType),c(a).is(`drag`,e.drag),c(a).is(`disabled`,c(l))]),tabindex:c(l)?`-1`:`0`,onClick:S,onKeydown:k(b(C,[`self`]),[`enter`,`space`])},[e.drag?(y(),s(Te,{key:0,disabled:c(l),onFile:p},{default:O(()=>[w(e.$slots,`default`)]),_:3},8,[`disabled`])):w(e.$slots,`default`,{key:1}),n(`input`,{ref_key:`inputRef`,ref:d,class:_(c(a).e(`input`)),name:e.name,disabled:c(l),multiple:e.multiple,accept:e.accept,type:`file`,onChange:x,onClick:b(()=>{},[`stop`])},null,42,[`name`,`disabled`,`multiple`,`accept`,`onClick`])],42,[`tabindex`,`onKeydown`]))}}),[[`__file`,`upload-content.vue`]]),Q=`ElUpload`,$=e=>{e.url?.startsWith(`blob:`)&&URL.revokeObjectURL(e.url)},Ee=(e,t)=>{let n=ce(e,`fileList`,void 0,{passive:!0}),r=e=>n.value.find(t=>t.uid===e.uid);function i(e){var n;(n=t.value)==null||n.abort(e)}function a(e=[`ready`,`uploading`,`success`,`fail`]){n.value=n.value.filter(t=>!e.includes(t.status))}function o(e){n.value=n.value.filter(t=>t.uid!==e.uid)}let s=(t,i)=>{let a=r(i);a&&(console.error(t),a.status=`fail`,o(a),e.onError(t,a,n.value),e.onChange(a,n.value))},c=(t,i)=>{let a=r(i);a&&(e.onProgress(t,a,n.value),a.status=`uploading`,a.percentage=Math.round(t.percent))},l=(t,i)=>{let a=r(i);a&&(a.status=`success`,a.response=t,e.onSuccess(t,a,n.value),e.onChange(a,n.value))},u=t=>{N(t.uid)&&(t.uid=K());let r={name:t.name,percentage:0,status:`ready`,size:t.size,raw:t,uid:t.uid};if(e.listType===`picture-card`||e.listType===`picture`)try{r.url=URL.createObjectURL(t)}catch(t){re(Q,t.message),e.onError(t,r,n.value)}n.value=[...n.value,r],e.onChange(r,n.value)},d=async t=>{let a=t instanceof File?r(t):t;a||z(Q,`file to be removed not found`);let s=t=>{i(t),o(t),e.onRemove(t,n.value),$(t)};e.beforeRemove?await e.beforeRemove(a,n.value)!==!1&&s(a):s(a)};function f(){n.value.filter(({status:e})=>e===`ready`).forEach(({raw:e})=>e&&t.value?.upload(e))}return S(()=>e.listType,t=>{t!==`picture-card`&&t!==`picture`||(n.value=n.value.map(t=>{let{raw:r,url:i}=t;if(!i&&r)try{t.url=URL.createObjectURL(r)}catch(r){e.onError(r,t,n.value)}return t}))}),S(n,e=>{for(let t of e)t.uid||=K(),t.status||=`success`},{immediate:!0,deep:!0}),{uploadFiles:n,abort:i,clearFiles:a,handleError:s,handleProgress:c,handleStart:u,handleSuccess:l,handleRemove:d,submit:f,revokeFileObjectURL:$}},De=te(j(i({...i({name:`ElUpload`}),props:be,setup(e,{expose:n}){let i=e,o=L(),u=m(),{abort:f,submit:p,clearFiles:h,uploadFiles:_,handleStart:v,handleError:b,handleRemove:x,handleSuccess:S,handleProgress:C,revokeFileObjectURL:D}=Ee(i,u),k=r(()=>i.listType===`picture-card`),A=r(()=>({...i,fileList:_.value,onStart:v,onProgress:C,onSuccess:S,onError:b,onRemove:x}));return a(()=>{_.value.forEach(D)}),d(U,{accept:ee(i,`accept`)}),n({abort:f,submit:p,clearFiles:h,handleStart:v,handleRemove:x}),(e,n)=>(y(),t(`div`,null,[c(k)&&e.showFileList?(y(),s(J,{key:0,disabled:c(o),"list-type":e.listType,files:c(_),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:c(x)},T({append:O(()=>[l(Z,g({ref_key:`uploadRef`,ref:u},c(A)),{default:O(()=>[e.$slots.trigger?w(e.$slots,`trigger`,{key:0}):E(`v-if`,!0),!e.$slots.trigger&&e.$slots.default?w(e.$slots,`default`,{key:1}):E(`v-if`,!0)]),_:3},16)]),_:2},[e.$slots.file?{name:`default`,fn:O(({file:t,index:n})=>[w(e.$slots,`file`,{file:t,index:n})])}:void 0]),1032,[`disabled`,`list-type`,`files`,`crossorigin`,`handle-preview`,`onRemove`])):E(`v-if`,!0),!c(k)||c(k)&&!e.showFileList?(y(),s(Z,g({key:1,ref_key:`uploadRef`,ref:u},c(A)),{default:O(()=>[e.$slots.trigger?w(e.$slots,`trigger`,{key:0}):E(`v-if`,!0),!e.$slots.trigger&&e.$slots.default?w(e.$slots,`default`,{key:1}):E(`v-if`,!0)]),_:3},16)):E(`v-if`,!0),e.$slots.trigger?w(e.$slots,`default`,{key:2}):E(`v-if`,!0),w(e.$slots,`tip`),!c(k)&&e.showFileList?(y(),s(J,{key:3,disabled:c(o),"list-type":e.listType,files:c(_),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:c(x)},T({_:2},[e.$slots.file?{name:`default`,fn:O(({file:t,index:n})=>[w(e.$slots,`file`,{file:t,index:n})])}:void 0]),1032,[`disabled`,`list-type`,`files`,`crossorigin`,`handle-preview`,`onRemove`])):E(`v-if`,!0)]))}}),[[`__file`,`upload.vue`]]));export{De as t};
|
|
1
|
+
import{$ as e,A as t,D as n,E as r,F as i,G as a,It as o,O as s,Ot as c,P as l,Pt as u,Q as d,Rt as f,S as p,St as m,Ut as h,V as g,Vt as _,Wt as v,Z as y,b,bt as x,ct as S,d as C,et as w,j as T,k as E,kt as D,ut as O,wt as ee,y as k,z as A}from"./vendor-chart-BJCvKk8-.js";import{a as j,c as M,t as te}from"./install-CmiepWqE.js";import{d as N,n as P,r as F}from"./runtime-B1Eal4u3.js";import{A as ne,Ct as re,E as ie,b as ae,ct as I,et as oe,j as se,jt as ce,n as L,nt as R,wt as z,x as le,yt as ue}from"./use-deprecated-B-NFNg3W.js";import{t as de}from"./_baseClone-CEmTDUHL.js";import{t as fe}from"./isEqual-_FbwVL6h.js";import{t as B}from"./progress-CQjsb6Jp.js";import{Kr as V}from"./index-Bz7Ib84l.js";var pe=1,me=4;function H(e){return de(e,pe|me)}var U=Symbol(`uploadContextKey`),he=`ElUpload`,ge=class extends Error{constructor(e,t,n,r){super(e),this.name=`UploadAjaxError`,this.status=t,this.method=n,this.url=r}};function W(e,t,n){let r;return r=n.response?`${n.response.error||n.response}`:n.responseText?`${n.responseText}`:`fail to ${t.method} ${e} ${n.status}`,new ge(r,n.status,t.method,e)}function _e(e){let t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}var ve=e=>{typeof XMLHttpRequest>`u`&&z(he,`XMLHttpRequest is undefined`);let t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener(`progress`,t=>{let n=t;n.percent=t.total>0?t.loaded/t.total*100:0,e.onProgress(n)});let r=new FormData;if(e.data)for(let[t,n]of Object.entries(e.data))u(n)&&n.length?r.append(t,...n):r.append(t,n);r.append(e.filename,e.file,e.file.name),t.addEventListener(`error`,()=>{e.onError(W(n,e,t))}),t.addEventListener(`load`,()=>{if(t.status<200||t.status>=300)return e.onError(W(n,e,t));e.onSuccess(_e(t))}),t.open(e.method,n,!0),e.withCredentials&&`withCredentials`in t&&(t.withCredentials=!0);let i=e.headers||{};if(i instanceof Headers)i.forEach((e,n)=>t.setRequestHeader(n,e));else for(let[e,n]of Object.entries(i))N(n)||t.setRequestHeader(e,String(n));return t.send(r),t},G=[`text`,`picture`,`picture-card`],ye=1,K=()=>Date.now()+ ye++,q=P({action:{type:String,default:`#`},headers:{type:F(Object)},method:{type:String,default:`post`},data:{type:F([Object,Function,Promise]),default:()=>V({})},multiple:Boolean,name:{type:String,default:`file`},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:``},fileList:{type:F(Array),default:()=>V([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:G,default:`text`},httpRequest:{type:F(Function),default:ve},disabled:Boolean,limit:Number}),be=P({...q,beforeUpload:{type:F(Function),default:D},beforeRemove:{type:F(Function)},onRemove:{type:F(Function),default:D},onChange:{type:F(Function),default:D},onPreview:{type:F(Function),default:D},onSuccess:{type:F(Function),default:D},onProgress:{type:F(Function),default:D},onError:{type:F(Function),default:D},onExceed:{type:F(Function),default:D},crossorigin:{type:F(String)}}),xe=P({files:{type:F(Array),default:()=>V([])},disabled:Boolean,handlePreview:{type:F(Function),default:D},listType:{type:String,values:G,default:`text`},crossorigin:{type:F(String)}}),Se={remove:e=>!!e},J=j(i({...i({name:`ElUploadList`}),props:xe,emits:Se,setup(i,{emit:a}){let o=i,{t:u}=ue(),d=M(`upload`),f=M(`icon`),m=M(`list`),g=L(),S=x(!1),T=r(()=>[d.b(`list`),d.bm(`list`,o.listType),d.is(`disabled`,o.disabled)]),D=e=>{a(`remove`,e)};return(r,i)=>(y(),s(C,{tag:`ul`,class:_(c(T)),name:c(m).b()},{default:O(()=>[(y(!0),t(p,null,e(r.files,(e,i)=>(y(),t(`li`,{key:e.uid||e.name,class:_([c(d).be(`list`,`item`),c(d).is(e.status),{focusing:S.value}]),tabindex:`0`,onKeydown:k(t=>!c(g)&&D(e),[`delete`]),onFocus:e=>S.value=!0,onBlur:e=>S.value=!1,onClick:e=>S.value=!1},[w(r.$slots,`default`,{file:e,index:i},()=>[r.listType===`picture`||e.status!==`uploading`&&r.listType===`picture-card`?(y(),t(`img`,{key:0,class:_(c(d).be(`list`,`item-thumbnail`)),src:e.url,crossorigin:r.crossorigin,alt:``},null,10,[`src`,`crossorigin`])):E(`v-if`,!0),e.status===`uploading`||r.listType!==`picture-card`?(y(),t(`div`,{key:1,class:_(c(d).be(`list`,`item-info`))},[n(`a`,{class:_(c(d).be(`list`,`item-name`)),onClick:b(t=>r.handlePreview(e),[`prevent`])},[l(c(R),{class:_(c(f).m(`document`))},{default:O(()=>[l(c(se))]),_:1},8,[`class`]),n(`span`,{class:_(c(d).be(`list`,`item-file-name`)),title:e.name},v(e.name),11,[`title`])],10,[`onClick`]),e.status===`uploading`?(y(),s(c(B),{key:0,type:r.listType===`picture-card`?`circle`:`line`,"stroke-width":r.listType===`picture-card`?6:2,percentage:Number(e.percentage),style:h(r.listType===`picture-card`?``:`margin-top: 0.5rem`)},null,8,[`type`,`stroke-width`,`percentage`,`style`])):E(`v-if`,!0)],2)):E(`v-if`,!0),n(`label`,{class:_(c(d).be(`list`,`item-status-label`))},[r.listType===`text`?(y(),s(c(R),{key:0,class:_([c(f).m(`upload-success`),c(f).m(`circle-check`)])},{default:O(()=>[l(c(le))]),_:1},8,[`class`])):[`picture-card`,`picture`].includes(r.listType)?(y(),s(c(R),{key:1,class:_([c(f).m(`upload-success`),c(f).m(`check`)])},{default:O(()=>[l(c(ae))]),_:1},8,[`class`])):E(`v-if`,!0)],2),c(g)?E(`v-if`,!0):(y(),s(c(R),{key:2,class:_(c(f).m(`close`)),onClick:t=>D(e)},{default:O(()=>[l(c(ie))]),_:2},1032,[`class`,`onClick`])),E(` Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn`),E(` This is a bug which needs to be fixed `),E(` TODO: Fix the incorrect navigation interaction `),c(g)?E(`v-if`,!0):(y(),t(`i`,{key:3,class:_(c(f).m(`close-tip`))},v(c(u)(`el.upload.deleteTip`)),3)),r.listType===`picture-card`?(y(),t(`span`,{key:4,class:_(c(d).be(`list`,`item-actions`))},[n(`span`,{class:_(c(d).be(`list`,`item-preview`)),onClick:t=>r.handlePreview(e)},[l(c(R),{class:_(c(f).m(`zoom-in`))},{default:O(()=>[l(c(oe))]),_:1},8,[`class`])],10,[`onClick`]),c(g)?E(`v-if`,!0):(y(),t(`span`,{key:0,class:_(c(d).be(`list`,`item-delete`)),onClick:t=>D(e)},[l(c(R),{class:_(c(f).m(`delete`))},{default:O(()=>[l(c(ne))]),_:1},8,[`class`])],10,[`onClick`]))],2)):E(`v-if`,!0)])],42,[`onKeydown`,`onFocus`,`onBlur`,`onClick`]))),128)),w(r.$slots,`append`)]),_:3},8,[`class`,`name`]))}}),[[`__file`,`upload-list.vue`]]),Ce=P({disabled:Boolean}),we={file:e=>u(e)},Y=`ElUploadDrag`,Te=j(i({...i({name:Y}),props:Ce,emits:we,setup(e,{emit:n}){A(U)||z(Y,`usage: <el-upload><el-upload-dragger /></el-upload>`);let r=M(`upload`),i=x(!1),a=L(),o=e=>{if(a.value)return;i.value=!1,e.stopPropagation();let t=Array.from(e.dataTransfer.files),r=e.dataTransfer.items||[];t.forEach((e,t)=>{let n=r[t],i=(n?.webkitGetAsEntry)?.call(n);i&&(e.isDirectory=i.isDirectory)}),n(`file`,t)},s=()=>{a.value||(i.value=!0)},l=e=>{e.currentTarget.contains(e.relatedTarget)||(i.value=!1)};return(e,n)=>(y(),t(`div`,{class:_([c(r).b(`dragger`),c(r).is(`dragover`,i.value)]),onDrop:b(o,[`prevent`]),onDragover:b(s,[`prevent`]),onDragleave:b(l,[`prevent`])},[w(e.$slots,`default`)],42,[`onDrop`,`onDragover`,`onDragleave`]))}}),[[`__file`,`upload-dragger.vue`]]),X=P({...q,beforeUpload:{type:F(Function),default:D},onRemove:{type:F(Function),default:D},onStart:{type:F(Function),default:D},onSuccess:{type:F(Function),default:D},onProgress:{type:F(Function),default:D},onError:{type:F(Function),default:D},onExceed:{type:F(Function),default:D}}),Z=j(i({...i({name:`ElUploadContent`,inheritAttrs:!1}),props:X,setup(e,{expose:r}){let i=e,a=M(`upload`),l=L(),u=m({}),d=m(),p=e=>{if(e.length===0)return;let{autoUpload:t,limit:n,fileList:r,multiple:a,onStart:o,onExceed:s}=i;if(n&&r.length+e.length>n){s(e,r);return}a||(e=e.slice(0,1));for(let n of e){let e=n;e.uid=K(),o(e),t&&h(e)}},h=async e=>{if(d.value.value=``,!i.beforeUpload)return v(e);let t,n={};try{let r=i.data,a=i.beforeUpload(e);n=f(i.data)?H(i.data):i.data,t=await a,f(i.data)&&fe(r,n)&&(n=H(i.data))}catch{t=!1}if(t===!1){i.onRemove(e);return}let r=e;t instanceof Blob&&(r=t instanceof File?t:new File([t],e.name,{type:e.type})),v(Object.assign(r,{uid:e.uid}),n)},g=async(e,t)=>o(e)?e(t):e,v=async(e,t)=>{let{headers:n,data:r,method:a,withCredentials:o,name:s,action:c,onProgress:l,onSuccess:d,onError:f,httpRequest:p}=i;try{t=await g(t??r,e)}catch{i.onRemove(e);return}let{uid:m}=e,h={headers:n||{},withCredentials:o,file:e,data:t,method:a,filename:s,action:c,onProgress:t=>{l(t,e)},onSuccess:t=>{d(t,e),delete u.value[m]},onError:t=>{f(t,e),delete u.value[m]}},_=p(h);u.value[m]=_,_ instanceof Promise&&_.then(h.onSuccess,h.onError)},x=e=>{let t=e.target.files;t&&p(Array.from(t))},S=()=>{l.value||(d.value.value=``,d.value.click())},C=()=>{S()};return r({abort:e=>{I(u.value).filter(e?([t])=>String(e.uid)===t:()=>!0).forEach(([e,t])=>{t instanceof XMLHttpRequest&&t.abort(),delete u.value[e]})},upload:h}),(e,r)=>(y(),t(`div`,{class:_([c(a).b(),c(a).m(e.listType),c(a).is(`drag`,e.drag),c(a).is(`disabled`,c(l))]),tabindex:c(l)?`-1`:`0`,onClick:S,onKeydown:k(b(C,[`self`]),[`enter`,`space`])},[e.drag?(y(),s(Te,{key:0,disabled:c(l),onFile:p},{default:O(()=>[w(e.$slots,`default`)]),_:3},8,[`disabled`])):w(e.$slots,`default`,{key:1}),n(`input`,{ref_key:`inputRef`,ref:d,class:_(c(a).e(`input`)),name:e.name,disabled:c(l),multiple:e.multiple,accept:e.accept,type:`file`,onChange:x,onClick:b(()=>{},[`stop`])},null,42,[`name`,`disabled`,`multiple`,`accept`,`onClick`])],42,[`tabindex`,`onKeydown`]))}}),[[`__file`,`upload-content.vue`]]),Q=`ElUpload`,$=e=>{e.url?.startsWith(`blob:`)&&URL.revokeObjectURL(e.url)},Ee=(e,t)=>{let n=ce(e,`fileList`,void 0,{passive:!0}),r=e=>n.value.find(t=>t.uid===e.uid);function i(e){var n;(n=t.value)==null||n.abort(e)}function a(e=[`ready`,`uploading`,`success`,`fail`]){n.value=n.value.filter(t=>!e.includes(t.status))}function o(e){n.value=n.value.filter(t=>t.uid!==e.uid)}let s=(t,i)=>{let a=r(i);a&&(console.error(t),a.status=`fail`,o(a),e.onError(t,a,n.value),e.onChange(a,n.value))},c=(t,i)=>{let a=r(i);a&&(e.onProgress(t,a,n.value),a.status=`uploading`,a.percentage=Math.round(t.percent))},l=(t,i)=>{let a=r(i);a&&(a.status=`success`,a.response=t,e.onSuccess(t,a,n.value),e.onChange(a,n.value))},u=t=>{N(t.uid)&&(t.uid=K());let r={name:t.name,percentage:0,status:`ready`,size:t.size,raw:t,uid:t.uid};if(e.listType===`picture-card`||e.listType===`picture`)try{r.url=URL.createObjectURL(t)}catch(t){re(Q,t.message),e.onError(t,r,n.value)}n.value=[...n.value,r],e.onChange(r,n.value)},d=async t=>{let a=t instanceof File?r(t):t;a||z(Q,`file to be removed not found`);let s=t=>{i(t),o(t),e.onRemove(t,n.value),$(t)};e.beforeRemove?await e.beforeRemove(a,n.value)!==!1&&s(a):s(a)};function f(){n.value.filter(({status:e})=>e===`ready`).forEach(({raw:e})=>e&&t.value?.upload(e))}return S(()=>e.listType,t=>{t!==`picture-card`&&t!==`picture`||(n.value=n.value.map(t=>{let{raw:r,url:i}=t;if(!i&&r)try{t.url=URL.createObjectURL(r)}catch(r){e.onError(r,t,n.value)}return t}))}),S(n,e=>{for(let t of e)t.uid||=K(),t.status||=`success`},{immediate:!0,deep:!0}),{uploadFiles:n,abort:i,clearFiles:a,handleError:s,handleProgress:c,handleStart:u,handleSuccess:l,handleRemove:d,submit:f,revokeFileObjectURL:$}},De=te(j(i({...i({name:`ElUpload`}),props:be,setup(e,{expose:n}){let i=e,o=L(),u=m(),{abort:f,submit:p,clearFiles:h,uploadFiles:_,handleStart:v,handleError:b,handleRemove:x,handleSuccess:S,handleProgress:C,revokeFileObjectURL:D}=Ee(i,u),k=r(()=>i.listType===`picture-card`),A=r(()=>({...i,fileList:_.value,onStart:v,onProgress:C,onSuccess:S,onError:b,onRemove:x}));return a(()=>{_.value.forEach(D)}),d(U,{accept:ee(i,`accept`)}),n({abort:f,submit:p,clearFiles:h,handleStart:v,handleRemove:x}),(e,n)=>(y(),t(`div`,null,[c(k)&&e.showFileList?(y(),s(J,{key:0,disabled:c(o),"list-type":e.listType,files:c(_),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:c(x)},T({append:O(()=>[l(Z,g({ref_key:`uploadRef`,ref:u},c(A)),{default:O(()=>[e.$slots.trigger?w(e.$slots,`trigger`,{key:0}):E(`v-if`,!0),!e.$slots.trigger&&e.$slots.default?w(e.$slots,`default`,{key:1}):E(`v-if`,!0)]),_:3},16)]),_:2},[e.$slots.file?{name:`default`,fn:O(({file:t,index:n})=>[w(e.$slots,`file`,{file:t,index:n})])}:void 0]),1032,[`disabled`,`list-type`,`files`,`crossorigin`,`handle-preview`,`onRemove`])):E(`v-if`,!0),!c(k)||c(k)&&!e.showFileList?(y(),s(Z,g({key:1,ref_key:`uploadRef`,ref:u},c(A)),{default:O(()=>[e.$slots.trigger?w(e.$slots,`trigger`,{key:0}):E(`v-if`,!0),!e.$slots.trigger&&e.$slots.default?w(e.$slots,`default`,{key:1}):E(`v-if`,!0)]),_:3},16)):E(`v-if`,!0),e.$slots.trigger?w(e.$slots,`default`,{key:2}):E(`v-if`,!0),w(e.$slots,`tip`),!c(k)&&e.showFileList?(y(),s(J,{key:3,disabled:c(o),"list-type":e.listType,files:c(_),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:c(x)},T({_:2},[e.$slots.file?{name:`default`,fn:O(({file:t,index:n})=>[w(e.$slots,`file`,{file:t,index:n})])}:void 0]),1032,[`disabled`,`list-type`,`files`,`crossorigin`,`handle-preview`,`onRemove`])):E(`v-if`,!0)]))}}),[[`__file`,`upload.vue`]]));export{De as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Dr as e}from"./constants-
|
|
1
|
+
import{Dr as e}from"./constants-DZBit6O5.js";import{ar as t,gn as n}from"./index-Bz7Ib84l.js";import{t as r}from"./createTaskActions-CZG-xMdO.js";var i={namespaced:!0,state:t,mutations:{setTasks:(e,t)=>{e.tasks=t},setApplication:(e,t)=>{e.application=t},setApplications:(e,t)=>{e.applications=t},setConfig:(e,t)=>{e.config=t},setCredential:(e,t)=>{e.credential=t},setService:(e,t)=>{e.service=t},setTasksActive:(e,t)=>{e.tasks={...e.tasks,active:t}},setTasksItems:(e,t)=>{e.tasks={...e.tasks,items:t}},setTasksTotal:(e,t)=>{e.tasks={...e.tasks,total:t}},resetAll:e=>{Object.assign(e,t())}},actions:r({serviceId:e,operator:n})};export{i as default,i as veo};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{pt as e}from"./constants-
|
|
1
|
+
import{pt as e}from"./constants-DZBit6O5.js";import{Qt as t,Wn as n}from"./index-Bz7Ib84l.js";import{t as r}from"./createTaskActions-CZG-xMdO.js";var i={namespaced:!0,state:n,mutations:{setTasks:(e,t)=>{e.tasks=t},setApplication:(e,t)=>{e.application=t},setApplications:(e,t)=>{e.applications=t},setConfig:(e,t)=>{e.config=t},setCredential:(e,t)=>{e.credential=t},setService:(e,t)=>{e.service=t},setTasksActive:(e,t)=>{e.tasks={...e.tasks,active:t}},setTasksItems:(e,t)=>{e.tasks={...e.tasks,items:t}},setTasksTotal:(e,t)=>{e.tasks={...e.tasks,total:t}},resetAll:e=>{Object.assign(e,n())}},actions:r({serviceId:e,operator:t,type:`videos`})};export{i as default,i as wan};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{qr as e}from"./index-
|
|
1
|
+
import{qr as e}from"./index-Bz7Ib84l.js";var t=class extends e{constructor(){super(),this._lastWindow=null}async open(e){this._lastWindow=window.open(e.url,e.windowName||`_blank`)}async close(){return new Promise((e,t)=>{this._lastWindow==null?t(`No active window to close!`):(this._lastWindow.close(),this._lastWindow=null,e())})}};new t;export{t as BrowserWeb};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{qr as e}from"./index-
|
|
1
|
+
import{qr as e}from"./index-Bz7Ib84l.js";var t=class extends e{constructor(){super(),this.handleVisibilityChange=()=>{let e={isActive:document.hidden!==!0};this.notifyListeners(`appStateChange`,e),document.hidden?this.notifyListeners(`pause`,null):this.notifyListeners(`resume`,null)},document.addEventListener(`visibilitychange`,this.handleVisibilityChange,!1)}exitApp(){throw this.unimplemented(`Not implemented on web.`)}async getInfo(){throw this.unimplemented(`Not implemented on web.`)}async getLaunchUrl(){return{url:``}}async getState(){return{isActive:document.hidden!==!0}}async minimizeApp(){throw this.unimplemented(`Not implemented on web.`)}async toggleBackButtonHandler(){throw this.unimplemented(`Not implemented on web.`)}async getAppLanguage(){return{value:navigator.language.split(`-`)[0].toLowerCase()}}};export{t as AppWeb};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{qr as e,t}from"./index-
|
|
1
|
+
import{qr as e,t}from"./index-Bz7Ib84l.js";var n={status:`success`,version:``,downloaded:`1970-01-01T00:00:00.000Z`,id:`builtin`,checksum:``},r=class extends e{async setStatsUrl(e){console.warn(`Cannot setStatsUrl in web`,e)}async setUpdateUrl(e){console.warn(`Cannot setUpdateUrl in web`,e)}async setChannelUrl(e){console.warn(`Cannot setChannelUrl in web`,e)}async download(e){return console.warn(`Cannot download version in web`,e),n}async next(e){return console.warn(`Cannot set next version in web`,e),n}async isAutoUpdateEnabled(){return console.warn(`Cannot get isAutoUpdateEnabled in web`),{enabled:!1}}async set(e){console.warn(`Cannot set active bundle in web`,e)}async startPreviewSession(e){console.warn(`Cannot start preview session in web`,e)}async listPreviews(){return console.warn(`Cannot list previews in web`),{previews:[],currentBundle:n}}async setPreview(e){console.warn(`Cannot set preview in web`,e)}async resetPreview(){console.warn(`Cannot reset preview in web`)}async deletePreview(e){return console.warn(`Cannot delete preview in web`,e),{removed:!1,deleted:!1}}async checkPreviewUpdate(e){throw console.warn(`Cannot check preview update in web`,e),this.unimplemented(`Preview updates are not available on web platform`)}async updatePreview(e){throw console.warn(`Cannot update preview in web`,e),this.unimplemented(`Preview updates are not available on web platform`)}async getDeviceId(){return console.warn(`Cannot get ID in web`),{deviceId:`default`}}async getBuiltinVersion(){return console.warn(`Cannot get version in web`),{version:`default`}}async getPluginVersion(){return console.warn(`Cannot get plugin version in web`),{version:`default`}}async delete(e){console.warn(`Cannot delete bundle in web`,e)}async setBundleError(e){return console.warn(`Cannot setBundleError in web`,e),n}async list(){return console.warn(`Cannot list bundles in web`),{bundles:[]}}async reset(e){console.warn(`Cannot reset version in web`,e)}async current(){return console.warn(`Cannot get current bundle in web`),{bundle:n,native:`0.0.0`}}async reload(){console.warn(`Cannot reload current bundle in web`)}async getLatest(){return console.warn(`Cannot getLatest current bundle in web`),{version:`0.0.0`,message:`Cannot getLatest current bundle in web`}}async triggerUpdateCheck(){return console.warn(`Cannot triggerUpdateCheck in web`),{status:`unavailable`,queued:!1}}async getMissingBundleFiles(e){console.warn(`Cannot inspect missing bundle files in web`,{manifestLength:e.manifest?.length??0});let t=e.manifest??[];return{missing:t,total:t.length,missingCount:t.length,reusableCount:0}}async getBundleDownloadSize(e){return console.warn(`Cannot estimate bundle download size in web`,{manifestLength:e.manifest?.length??0}),{totalSize:0,knownFiles:0,unknownFiles:e.manifest?.length??0,files:(e.manifest??[]).map(e=>({file_name:e.file_name,file_hash:e.file_hash,download_url:e.download_url,error:`unavailable`}))}}async setChannel(e){return console.warn(`Cannot setChannel in web`,e),{status:`error`,error:`Cannot setChannel in web`}}async unsetChannel(e){console.warn(`Cannot unsetChannel in web`,e)}async setCustomId(e){console.warn(`Cannot setCustomId in web`,e)}async getChannel(){return console.warn(`Cannot getChannel in web`),{status:`error`,error:`Cannot getChannel in web`}}async listChannels(){throw console.warn(`Cannot listChannels in web`),{message:`Cannot listChannels in web`,error:`platform_not_supported`}}async notifyAppReady(){return{bundle:n}}async setMultiDelay(e){console.warn(`Cannot setMultiDelay in web`,e?.delayConditions)}async cancelDelay(){console.warn(`Cannot cancelDelay in web`)}async isAutoUpdateAvailable(){return console.warn(`Cannot isAutoUpdateAvailable in web`),{available:!1}}async getCurrentBundle(){return console.warn(`Cannot get current bundle in web`),n}async getNextBundle(){return Promise.resolve(null)}async getFailedUpdate(){return console.warn(`Cannot getFailedUpdate in web`),null}async setShakeMenu(e){throw this.unimplemented(`Shake menu not available on web platform`)}async isShakeMenuEnabled(){return Promise.resolve({enabled:!1,gesture:`shake`})}async setShakeChannelSelector(e){throw this.unimplemented(`Shake channel selector not available on web platform`)}async isShakeChannelSelectorEnabled(){return Promise.resolve({enabled:!1})}async getAppId(){return console.warn(`Cannot getAppId in web`),{appId:`default`}}async setAppId(e){console.warn(`Cannot setAppId in web`,e)}async getAppUpdateInfo(e){return console.warn(`getAppUpdateInfo is not available on web platform`),{currentVersionName:`0.0.0`,currentVersionCode:`0`,updateAvailability:t.UNKNOWN}}async openAppStore(e){throw this.unimplemented(`openAppStore is not available on web platform`)}async performImmediateUpdate(){throw this.unimplemented(`performImmediateUpdate is only available on Android`)}async startFlexibleUpdate(){throw this.unimplemented(`startFlexibleUpdate is only available on Android`)}async completeFlexibleUpdate(){throw this.unimplemented(`completeFlexibleUpdate is only available on Android`)}};export{r as CapacitorUpdaterWeb};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e,t}from"./rolldown-runtime--c01j_DQ.js";import{qr as n}from"./index-
|
|
1
|
+
import{o as e,t}from"./rolldown-runtime--c01j_DQ.js";import{qr as n}from"./index-Bz7Ib84l.js";var r=e(t(((e,t)=>{(function(e,n){t!==void 0&&t.exports?t.exports=n():typeof define==`function`&&define.amd?define(n):this[e]=n()})(`$script`,function(){var e=document,t=e.getElementsByTagName(`head`)[0],n=!1,r=`push`,i=`readyState`,a=`onreadystatechange`,o={},s={},c={},l={},u,d;function f(e,t){for(var r=0,i=e.length;r<i;++r)if(!t(e[r]))return n;return 1}function p(e,t){f(e,function(e){return t(e),1})}function m(e,t,n){e=e[r]?e:[e];var i=t&&t.call,a=i?t:n,d=i?e.join(``):t,g=e.length;function _(e){return e.call?e():o[e]}function v(){if(!--g)for(var e in o[d]=1,a&&a(),c)f(e.split(`|`),_)&&!p(c[e],_)&&(c[e]=[])}return setTimeout(function(){p(e,function e(t,n){if(t===null)return v();if(!n&&!/^https?:\/\//.test(t)&&u&&(t=t.indexOf(`.js`)===-1?u+t+`.js`:u+t),l[t])return d&&(s[d]=1),l[t]==2?v():setTimeout(function(){e(t,!0)},0);l[t]=1,d&&(s[d]=1),h(t,v)})},0),m}function h(n,r){var o=e.createElement(`script`),s;o.onload=o.onerror=o[a]=function(){o[i]&&!/^c|loade/.test(o[i])||s||(o.onload=o[a]=null,s=1,l[n]=2,r())},o.async=1,o.src=d?n+(n.indexOf(`?`)===-1?`?`:`&`)+d:n,t.insertBefore(o,t.lastChild)}return m.get=h,m.order=function(e,t,n){(function r(i){i=e.shift(),e.length?m(i,r):m(i,t,n)})()},m.path=function(e){u=e},m.urlArgs=function(e){d=e},m.ready=function(e,t,n){e=e[r]?e:[e];var i=[];return!p(e,function(e){o[e]||i[r](e)})&&f(e,function(e){return o[e]})?t():function(e){c[e]=c[e]||[],c[e][r](t),n&&n(i)}(e.join(`|`)),m},m.done=function(e){m([null],e)},m})}))()),i=class extends n{constructor(){super(...arguments),this.appleScriptUrl=`https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js`,this.isAppleScriptLoaded=!1}async authorize(e){return new Promise((t,n)=>{e?this.loadSignInWithAppleJS().then(r=>{this.isAppleScriptLoaded=r,this.isAppleScriptLoaded?(AppleID.auth.init({clientId:e.clientId,redirectURI:e.redirectURI,scope:e.scopes??void 0,state:e.state??void 0,nonce:e.nonce??void 0,usePopup:!0}),AppleID.auth.signIn().then(e=>{t({response:{user:null,email:e.user?.email,givenName:e.user?.name?.firstName,familyName:e.user?.name?.lastName,identityToken:e.authorization.id_token,authorizationCode:e.authorization.code}})}).catch(e=>{n(e)})):n(`Unable to load Sign in with Apple JS framework.`)}):n(`No options were provided.`)})}loadSignInWithAppleJS(){return new Promise(e=>{this.isAppleScriptLoaded?e(!0):r.get(this.appleScriptUrl,()=>e(!0))})}};export{i as SignInWithAppleWeb};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{qr as e}from"./index-
|
|
1
|
+
import{qr as e}from"./index-Bz7Ib84l.js";var t=class extends e{constructor(){super(...arguments),this.pending=[],this.deliveredNotifications=[],this.hasNotificationSupport=()=>{if(!(`Notification`in window)||!Notification.requestPermission)return!1;if(Notification.permission!==`granted`)try{new Notification(``)}catch(e){if(e instanceof Error&&e.name===`TypeError`)return!1}return!0}}async getDeliveredNotifications(){let e=[];for(let t of this.deliveredNotifications){let n={title:t.title,id:parseInt(t.tag),body:t.body};e.push(n)}return{notifications:e}}async removeDeliveredNotifications(e){for(let t of e.notifications){let e=this.deliveredNotifications.find(e=>e.tag===String(t.id));e?.close(),this.deliveredNotifications=this.deliveredNotifications.filter(()=>!e)}}async removeAllDeliveredNotifications(){for(let e of this.deliveredNotifications)e.close();this.deliveredNotifications=[]}async createChannel(){throw this.unimplemented(`Not implemented on web.`)}async deleteChannel(){throw this.unimplemented(`Not implemented on web.`)}async listChannels(){throw this.unimplemented(`Not implemented on web.`)}async schedule(e){if(!this.hasNotificationSupport())throw this.unavailable(`Notifications not supported in this browser.`);for(let t of e.notifications)this.sendNotification(t);return{notifications:e.notifications.map(e=>({id:e.id}))}}async getPending(){return{notifications:this.pending}}async registerActionTypes(){throw this.unimplemented(`Not implemented on web.`)}async cancel(e){this.pending=this.pending.filter(t=>!e.notifications.find(e=>e.id===t.id))}async areEnabled(){let{display:e}=await this.checkPermissions();return{value:e===`granted`}}async changeExactNotificationSetting(){throw this.unimplemented(`Not implemented on web.`)}async checkExactNotificationSetting(){throw this.unimplemented(`Not implemented on web.`)}async requestPermissions(){if(!this.hasNotificationSupport())throw this.unavailable(`Notifications not supported in this browser.`);return{display:this.transformNotificationPermission(await Notification.requestPermission())}}async checkPermissions(){if(!this.hasNotificationSupport())throw this.unavailable(`Notifications not supported in this browser.`);return{display:this.transformNotificationPermission(Notification.permission)}}transformNotificationPermission(e){switch(e){case`granted`:return`granted`;case`denied`:return`denied`;default:return`prompt`}}sendPending(){let e=[],t=new Date().getTime();for(let n of this.pending)n.schedule?.at&&n.schedule.at.getTime()<=t&&(this.buildNotification(n),e.push(n));this.pending=this.pending.filter(t=>!e.find(e=>e===t))}sendNotification(e){if(e.schedule?.at){let t=e.schedule.at.getTime()-new Date().getTime();this.pending.push(e),setTimeout(()=>{this.sendPending()},t);return}this.buildNotification(e)}buildNotification(e){let t=new Notification(e.title,{body:e.body,tag:String(e.id)});return t.addEventListener(`click`,this.onClick.bind(this,e),!1),t.addEventListener(`show`,this.onShow.bind(this,e),!1),t.addEventListener(`close`,()=>{this.deliveredNotifications=this.deliveredNotifications.filter(()=>!this)},!1),this.deliveredNotifications.push(t),t}onClick(e){let t={actionId:`tap`,notification:e};this.notifyListeners(`localNotificationActionPerformed`,t)}onShow(e){this.notifyListeners(`localNotificationReceived`,e)}};export{t as LocalNotificationsWeb};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={"name.mode":{message:`Mode`,description:`Label for render/extract mode toggle`},"name.url":{message:`URL`,description:`Label for the URL input`},"name.expectedType":{message:`Expected Type`,description:`Label for expected content type`},"name.enableLlm":{message:`LLM Cleanup`,description:`Label for enable LLM toggle`},"name.advanced":{message:`Advanced`,description:`Label for advanced options collapse`},"name.waitUntil":{message:`Wait Until`,description:`Label for the wait_until field`},"name.waitForSelector":{message:`Wait For Selector`,description:`Label for the wait_for_selector field`},"name.timeout":{message:`Timeout (s)`,description:`Label for the timeout field`},"name.delay":{message:`Delay (s)`,description:`Label for the delay_after_load field`},"name.blockResources":{message:`Block Resources`,description:`Label for the block_resources multi-select`},"name.consumption":{message:`Cost`,description:`Label for the per-call cost`},"mode.extract":{message:`Extract`,description:`Extract mode option`},"mode.render":{message:`Render`,description:`Render mode option`},"expectedType.general":{message:`General`,description:`General expected type option`},"expectedType.article":{message:`Article`,description:`Article expected type option`},"expectedType.product":{message:`Product`,description:`Product expected type option`},"waitUntil.networkidle":{message:`Network Idle`,description:`Wait until network idle option`},"waitUntil.load":{message:`Load`,description:`Wait until load option`},"waitUntil.domcontentloaded":{message:`DOM Ready`,description:`Wait until DOM content loaded option`},"waitUntil.commit":{message:`Commit`,description:`Wait until commit option`},"blockResource.image":{message:`Images`,description:`Block images option`},"blockResource.font":{message:`Fonts`,description:`Block fonts option`},"blockResource.media":{message:`Media`,description:`Block media option`},"blockResource.stylesheet":{message:`Stylesheets`,description:`Block stylesheets option`},"blockResource.xhr":{message:`XHR`,description:`Block XHR option`},"blockResource.fetch":{message:`Fetch`,description:`Block fetch option`},"placeholder.url":{message:`https://example.com`,description:`Placeholder for the URL input`},"placeholder.waitForSelector":{message:`CSS selector, e.g. .article-body`,description:`Placeholder for the wait_for_selector input`},"placeholder.blockResources":{message:`Resource types to block`,description:`Placeholder for the block_resources multi-select`},"button.extract":{message:`Extract`,description:`Run extract button label`},"button.render":{message:`Render`,description:`Run render button label`},"description.intro":{message:`Render and extract any web page`,description:`Intro line shown in the empty result state`},"description.introHint":{message:`Enter a URL and choose Extract or Render to get clean content, markdown, links, screenshots, and more.`,description:`Hint shown below the intro line`},"description.enableLlm":{message:`Use an LLM to clean and structure the extracted content. Costs additional credits.`,description:`Tooltip explaining the LLM cleanup toggle`},"message.running":{message:`Working on it…`,description:`Status while a request is in flight`},"message.extracting":{message:`Extracting…`,description:`Status shown when extract is running`},"message.rendering":{message:`Rendering…`,description:`Status shown when render is running`},"message.success":{message:`Done`,description:`Toast shown on success`},"message.failed":{message:`Request failed`,description:`Generic error message`},"message.usedUp":{message:`Your quota has been used up. Please top up to continue.`,description:`Error shown when balance is exhausted`},"message.busy":{message:`Service is busy. Please try again in a moment.`,description:`Error shown on rate limit`},"message.timeout":{message:`The page took too long to load. Try a different URL or increase the timeout.`,description:`Error shown on timeout`},"message.untitled":{message:`Untitled`,description:`Fallback title when the page has no title`},"tab.markdown":{message:`Markdown`,description:`Markdown tab label`},"tab.text":{message:`Text`,description:`Plain text tab label`},"tab.structured":{message:`Structured`,description:`Structured data tab label`},"tab.links":{message:`Links`,description:`Links tab label`},"tab.images":{message:`Images`,description:`Images tab label`},"tab.html":{message:`HTML`,description:`HTML tab label`},"tab.raw":{message:`Raw JSON`,description:`Raw response tab label`}};export{e as default};
|
|
1
|
+
var e={"name.mode":{message:`Mode`,description:`Label for render/extract mode toggle`},"name.url":{message:`URL`,description:`Label for the URL input`},"name.expectedType":{message:`Expected Type`,description:`Label for expected content type`},"name.enableLlm":{message:`LLM Cleanup`,description:`Label for enable LLM toggle`},"name.advanced":{message:`Advanced`,description:`Label for advanced options collapse`},"name.waitUntil":{message:`Wait Until`,description:`Label for the wait_until field`},"name.waitForSelector":{message:`Wait For Selector`,description:`Label for the wait_for_selector field`},"name.timeout":{message:`Timeout (s)`,description:`Label for the timeout field`},"name.delay":{message:`Delay (s)`,description:`Label for the delay_after_load field`},"name.blockResources":{message:`Block Resources`,description:`Label for the block_resources multi-select`},"name.consumption":{message:`Cost`,description:`Label for the per-call cost`},"mode.extract":{message:`Extract`,description:`Extract mode option`},"mode.render":{message:`Render`,description:`Render mode option`},"expectedType.general":{message:`General`,description:`General expected type option`},"expectedType.article":{message:`Article`,description:`Article expected type option`},"expectedType.product":{message:`Product`,description:`Product expected type option`},"waitUntil.networkidle":{message:`Network Idle`,description:`Wait until network idle option`},"waitUntil.load":{message:`Load`,description:`Wait until load option`},"waitUntil.domcontentloaded":{message:`DOM Ready`,description:`Wait until DOM content loaded option`},"waitUntil.commit":{message:`Commit`,description:`Wait until commit option`},"blockResource.image":{message:`Images`,description:`Block images option`},"blockResource.font":{message:`Fonts`,description:`Block fonts option`},"blockResource.media":{message:`Media`,description:`Block media option`},"blockResource.stylesheet":{message:`Stylesheets`,description:`Block stylesheets option`},"blockResource.xhr":{message:`XHR`,description:`Block XHR option`},"blockResource.fetch":{message:`Fetch`,description:`Block fetch option`},"placeholder.url":{message:`https://example.com`,description:`Placeholder for the URL input`},"placeholder.waitForSelector":{message:`CSS selector, e.g. .article-body`,description:`Placeholder for the wait_for_selector input`},"placeholder.blockResources":{message:`Resource types to block`,description:`Placeholder for the block_resources multi-select`},"button.extract":{message:`Extract`,description:`Run extract button label`},"button.render":{message:`Render`,description:`Run render button label`},"description.intro":{message:`Render and extract any web page`,description:`Intro line shown in the empty result state`},"description.introHint":{message:`Enter a URL and choose Extract or Render to get clean content, markdown, links, screenshots, and more.`,description:`Hint shown below the intro line`},"description.enableLlm":{message:`Use an LLM to clean and structure the extracted content. Costs additional credits.`,description:`Tooltip explaining the LLM cleanup toggle`},"message.running":{message:`Working on it…`,description:`Status while a request is in flight`},"message.extracting":{message:`Extracting…`,description:`Status shown when extract is running`},"message.rendering":{message:`Rendering…`,description:`Status shown when render is running`},"message.success":{message:`Done`,description:`Toast shown on success`},"message.failed":{message:`Request failed`,description:`Generic error message`},"message.usedUp":{message:`Your quota has been used up. Please top up to continue.`,description:`Error shown when balance is exhausted`},"message.busy":{message:`Service is busy. Please try again in a moment.`,description:`Error shown on rate limit`},"message.timeout":{message:`The page took too long to load. Try a different URL or increase the timeout.`,description:`Error shown on timeout`},"message.antibotBlocked":{message:`目標網站啟用了反爬保護,暫時無法抓取(本次不計費)。`,description:`當目標頁面啟用未清除的反爬挑戰時顯示的錯誤(HTTP 422,不計費)`},"message.untitled":{message:`Untitled`,description:`Fallback title when the page has no title`},"tab.markdown":{message:`Markdown`,description:`Markdown tab label`},"tab.text":{message:`Text`,description:`Plain text tab label`},"tab.structured":{message:`Structured`,description:`Structured data tab label`},"tab.links":{message:`Links`,description:`Links tab label`},"tab.images":{message:`Images`,description:`Images tab label`},"tab.html":{message:`HTML`,description:`HTML tab label`},"tab.raw":{message:`Raw JSON`,description:`Raw response tab label`}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={"name.mode":{message:`Mode`,description:`Label for render/extract mode toggle`},"name.url":{message:`URL`,description:`Label for the URL input`},"name.expectedType":{message:`Expected Type`,description:`Label for expected content type`},"name.enableLlm":{message:`LLM Cleanup`,description:`Label for enable LLM toggle`},"name.advanced":{message:`Advanced`,description:`Label for advanced options collapse`},"name.waitUntil":{message:`Wait Until`,description:`Label for the wait_until field`},"name.waitForSelector":{message:`Wait For Selector`,description:`Label for the wait_for_selector field`},"name.timeout":{message:`Timeout (s)`,description:`Label for the timeout field`},"name.delay":{message:`Delay (s)`,description:`Label for the delay_after_load field`},"name.blockResources":{message:`Block Resources`,description:`Label for the block_resources multi-select`},"name.consumption":{message:`Cost`,description:`Label for the per-call cost`},"mode.extract":{message:`Extract`,description:`Extract mode option`},"mode.render":{message:`Render`,description:`Render mode option`},"expectedType.general":{message:`General`,description:`General expected type option`},"expectedType.article":{message:`Article`,description:`Article expected type option`},"expectedType.product":{message:`Product`,description:`Product expected type option`},"waitUntil.networkidle":{message:`Network Idle`,description:`Wait until network idle option`},"waitUntil.load":{message:`Load`,description:`Wait until load option`},"waitUntil.domcontentloaded":{message:`DOM Ready`,description:`Wait until DOM content loaded option`},"waitUntil.commit":{message:`Commit`,description:`Wait until commit option`},"blockResource.image":{message:`Images`,description:`Block images option`},"blockResource.font":{message:`Fonts`,description:`Block fonts option`},"blockResource.media":{message:`Media`,description:`Block media option`},"blockResource.stylesheet":{message:`Stylesheets`,description:`Block stylesheets option`},"blockResource.xhr":{message:`XHR`,description:`Block XHR option`},"blockResource.fetch":{message:`Fetch`,description:`Block fetch option`},"placeholder.url":{message:`https://example.com`,description:`Placeholder for the URL input`},"placeholder.waitForSelector":{message:`CSS selector, e.g. .article-body`,description:`Placeholder for the wait_for_selector input`},"placeholder.blockResources":{message:`Resource types to block`,description:`Placeholder for the block_resources multi-select`},"button.extract":{message:`Extract`,description:`Run extract button label`},"button.render":{message:`Render`,description:`Run render button label`},"description.intro":{message:`Render and extract any web page`,description:`Intro line shown in the empty result state`},"description.introHint":{message:`Enter a URL and choose Extract or Render to get clean content, markdown, links, screenshots, and more.`,description:`Hint shown below the intro line`},"description.enableLlm":{message:`Use an LLM to clean and structure the extracted content. Costs additional credits.`,description:`Tooltip explaining the LLM cleanup toggle`},"message.running":{message:`Working on it…`,description:`Status while a request is in flight`},"message.extracting":{message:`Extracting…`,description:`Status shown when extract is running`},"message.rendering":{message:`Rendering…`,description:`Status shown when render is running`},"message.success":{message:`Done`,description:`Toast shown on success`},"message.failed":{message:`Request failed`,description:`Generic error message`},"message.usedUp":{message:`Your quota has been used up. Please top up to continue.`,description:`Error shown when balance is exhausted`},"message.busy":{message:`Service is busy. Please try again in a moment.`,description:`Error shown on rate limit`},"message.timeout":{message:`The page took too long to load. Try a different URL or increase the timeout.`,description:`Error shown on timeout`},"message.antibotBlocked":{message:`Le site cible a activé une protection anti-bot, impossible de le récupérer pour le moment (pas de facturation cette fois).`,description:`Erreur affichée lorsque la page cible présente un défi anti-bot non résolu (HTTP 422, non facturé)`},"message.untitled":{message:`Untitled`,description:`Fallback title when the page has no title`},"tab.markdown":{message:`Markdown`,description:`Markdown tab label`},"tab.text":{message:`Text`,description:`Plain text tab label`},"tab.structured":{message:`Structured`,description:`Structured data tab label`},"tab.links":{message:`Links`,description:`Links tab label`},"tab.images":{message:`Images`,description:`Images tab label`},"tab.html":{message:`HTML`,description:`HTML tab label`},"tab.raw":{message:`Raw JSON`,description:`Raw response tab label`}};export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={"name.mode":{message:`Mode`,description:`Label for render/extract mode toggle`},"name.url":{message:`URL`,description:`Label for the URL input`},"name.expectedType":{message:`Expected Type`,description:`Label for expected content type`},"name.enableLlm":{message:`LLM Cleanup`,description:`Label for enable LLM toggle`},"name.advanced":{message:`Advanced`,description:`Label for advanced options collapse`},"name.waitUntil":{message:`Wait Until`,description:`Label for the wait_until field`},"name.waitForSelector":{message:`Wait For Selector`,description:`Label for the wait_for_selector field`},"name.timeout":{message:`Timeout (s)`,description:`Label for the timeout field`},"name.delay":{message:`Delay (s)`,description:`Label for the delay_after_load field`},"name.blockResources":{message:`Block Resources`,description:`Label for the block_resources multi-select`},"name.consumption":{message:`Cost`,description:`Label for the per-call cost`},"mode.extract":{message:`Extract`,description:`Extract mode option`},"mode.render":{message:`Render`,description:`Render mode option`},"expectedType.general":{message:`General`,description:`General expected type option`},"expectedType.article":{message:`Article`,description:`Article expected type option`},"expectedType.product":{message:`Product`,description:`Product expected type option`},"waitUntil.networkidle":{message:`Network Idle`,description:`Wait until network idle option`},"waitUntil.load":{message:`Load`,description:`Wait until load option`},"waitUntil.domcontentloaded":{message:`DOM Ready`,description:`Wait until DOM content loaded option`},"waitUntil.commit":{message:`Commit`,description:`Wait until commit option`},"blockResource.image":{message:`Images`,description:`Block images option`},"blockResource.font":{message:`Fonts`,description:`Block fonts option`},"blockResource.media":{message:`Media`,description:`Block media option`},"blockResource.stylesheet":{message:`Stylesheets`,description:`Block stylesheets option`},"blockResource.xhr":{message:`XHR`,description:`Block XHR option`},"blockResource.fetch":{message:`Fetch`,description:`Block fetch option`},"placeholder.url":{message:`https://example.com`,description:`Placeholder for the URL input`},"placeholder.waitForSelector":{message:`CSS selector, e.g. .article-body`,description:`Placeholder for the wait_for_selector input`},"placeholder.blockResources":{message:`Resource types to block`,description:`Placeholder for the block_resources multi-select`},"button.extract":{message:`Extract`,description:`Run extract button label`},"button.render":{message:`Render`,description:`Run render button label`},"description.intro":{message:`Render and extract any web page`,description:`Intro line shown in the empty result state`},"description.introHint":{message:`Enter a URL and choose Extract or Render to get clean content, markdown, links, screenshots, and more.`,description:`Hint shown below the intro line`},"description.enableLlm":{message:`Use an LLM to clean and structure the extracted content. Costs additional credits.`,description:`Tooltip explaining the LLM cleanup toggle`},"message.running":{message:`Working on it…`,description:`Status while a request is in flight`},"message.extracting":{message:`Extracting…`,description:`Status shown when extract is running`},"message.rendering":{message:`Rendering…`,description:`Status shown when render is running`},"message.success":{message:`Done`,description:`Toast shown on success`},"message.failed":{message:`Request failed`,description:`Generic error message`},"message.usedUp":{message:`Your quota has been used up. Please top up to continue.`,description:`Error shown when balance is exhausted`},"message.busy":{message:`Service is busy. Please try again in a moment.`,description:`Error shown on rate limit`},"message.timeout":{message:`The page took too long to load. Try a different URL or increase the timeout.`,description:`Error shown on timeout`},"message.untitled":{message:`Untitled`,description:`Fallback title when the page has no title`},"tab.markdown":{message:`Markdown`,description:`Markdown tab label`},"tab.text":{message:`Text`,description:`Plain text tab label`},"tab.structured":{message:`Structured`,description:`Structured data tab label`},"tab.links":{message:`Links`,description:`Links tab label`},"tab.images":{message:`Images`,description:`Images tab label`},"tab.html":{message:`HTML`,description:`HTML tab label`},"tab.raw":{message:`Raw JSON`,description:`Raw response tab label`}};export{e as default};
|
|
1
|
+
var e={"name.mode":{message:`Mode`,description:`Label for render/extract mode toggle`},"name.url":{message:`URL`,description:`Label for the URL input`},"name.expectedType":{message:`Expected Type`,description:`Label for expected content type`},"name.enableLlm":{message:`LLM Cleanup`,description:`Label for enable LLM toggle`},"name.advanced":{message:`Advanced`,description:`Label for advanced options collapse`},"name.waitUntil":{message:`Wait Until`,description:`Label for the wait_until field`},"name.waitForSelector":{message:`Wait For Selector`,description:`Label for the wait_for_selector field`},"name.timeout":{message:`Timeout (s)`,description:`Label for the timeout field`},"name.delay":{message:`Delay (s)`,description:`Label for the delay_after_load field`},"name.blockResources":{message:`Block Resources`,description:`Label for the block_resources multi-select`},"name.consumption":{message:`Cost`,description:`Label for the per-call cost`},"mode.extract":{message:`Extract`,description:`Extract mode option`},"mode.render":{message:`Render`,description:`Render mode option`},"expectedType.general":{message:`General`,description:`General expected type option`},"expectedType.article":{message:`Article`,description:`Article expected type option`},"expectedType.product":{message:`Product`,description:`Product expected type option`},"waitUntil.networkidle":{message:`Network Idle`,description:`Wait until network idle option`},"waitUntil.load":{message:`Load`,description:`Wait until load option`},"waitUntil.domcontentloaded":{message:`DOM Ready`,description:`Wait until DOM content loaded option`},"waitUntil.commit":{message:`Commit`,description:`Wait until commit option`},"blockResource.image":{message:`Images`,description:`Block images option`},"blockResource.font":{message:`Fonts`,description:`Block fonts option`},"blockResource.media":{message:`Media`,description:`Block media option`},"blockResource.stylesheet":{message:`Stylesheets`,description:`Block stylesheets option`},"blockResource.xhr":{message:`XHR`,description:`Block XHR option`},"blockResource.fetch":{message:`Fetch`,description:`Block fetch option`},"placeholder.url":{message:`https://example.com`,description:`Placeholder for the URL input`},"placeholder.waitForSelector":{message:`CSS selector, e.g. .article-body`,description:`Placeholder for the wait_for_selector input`},"placeholder.blockResources":{message:`Resource types to block`,description:`Placeholder for the block_resources multi-select`},"button.extract":{message:`Extract`,description:`Run extract button label`},"button.render":{message:`Render`,description:`Run render button label`},"description.intro":{message:`Render and extract any web page`,description:`Intro line shown in the empty result state`},"description.introHint":{message:`Enter a URL and choose Extract or Render to get clean content, markdown, links, screenshots, and more.`,description:`Hint shown below the intro line`},"description.enableLlm":{message:`Use an LLM to clean and structure the extracted content. Costs additional credits.`,description:`Tooltip explaining the LLM cleanup toggle`},"message.running":{message:`Working on it…`,description:`Status while a request is in flight`},"message.extracting":{message:`Extracting…`,description:`Status shown when extract is running`},"message.rendering":{message:`Rendering…`,description:`Status shown when render is running`},"message.success":{message:`Done`,description:`Toast shown on success`},"message.failed":{message:`Request failed`,description:`Generic error message`},"message.usedUp":{message:`Your quota has been used up. Please top up to continue.`,description:`Error shown when balance is exhausted`},"message.busy":{message:`Service is busy. Please try again in a moment.`,description:`Error shown on rate limit`},"message.timeout":{message:`The page took too long to load. Try a different URL or increase the timeout.`,description:`Error shown on timeout`},"message.antibotBlocked":{message:`Kohdesivustolla on käytössä botinesto, eikä sitä voida toistaiseksi kaapata (tätä kertaa ei veloiteta).`,description:`Virhe, joka näytetään, kun kohdesivulla on selittämätön botinestohaaste (HTTP 422, ei veloiteta)`},"message.untitled":{message:`Untitled`,description:`Fallback title when the page has no title`},"tab.markdown":{message:`Markdown`,description:`Markdown tab label`},"tab.text":{message:`Text`,description:`Plain text tab label`},"tab.structured":{message:`Structured`,description:`Structured data tab label`},"tab.links":{message:`Links`,description:`Links tab label`},"tab.images":{message:`Images`,description:`Images tab label`},"tab.html":{message:`HTML`,description:`HTML tab label`},"tab.raw":{message:`Raw JSON`,description:`Raw response tab label`}};export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={"name.mode":{message:`模式`,description:`Label for render/extract mode toggle`},"name.url":{message:`网址`,description:`Label for the URL input`},"name.expectedType":{message:`内容类型`,description:`Label for expected content type`},"name.enableLlm":{message:`LLM 智能清洗`,description:`Label for enable LLM toggle`},"name.advanced":{message:`高级选项`,description:`Label for advanced options collapse`},"name.waitUntil":{message:`等待条件`,description:`Label for the wait_until field`},"name.waitForSelector":{message:`等待选择器`,description:`Label for the wait_for_selector field`},"name.timeout":{message:`超时(秒)`,description:`Label for the timeout field`},"name.delay":{message:`加载后延迟(秒)`,description:`Label for the delay_after_load field`},"name.blockResources":{message:`屏蔽资源`,description:`Label for the block_resources multi-select`},"name.consumption":{message:`单次消耗`,description:`Label for the per-call cost`},"mode.extract":{message:`抽取内容`,description:`Extract mode option`},"mode.render":{message:`渲染页面`,description:`Render mode option`},"expectedType.general":{message:`通用`,description:`General expected type option`},"expectedType.article":{message:`文章`,description:`Article expected type option`},"expectedType.product":{message:`商品`,description:`Product expected type option`},"waitUntil.networkidle":{message:`网络空闲`,description:`Wait until network idle option`},"waitUntil.load":{message:`页面加载完成`,description:`Wait until load option`},"waitUntil.domcontentloaded":{message:`DOM 就绪`,description:`Wait until DOM content loaded option`},"waitUntil.commit":{message:`导航开始`,description:`Wait until commit option`},"blockResource.image":{message:`图片`,description:`Block images option`},"blockResource.font":{message:`字体`,description:`Block fonts option`},"blockResource.media":{message:`媒体`,description:`Block media option`},"blockResource.stylesheet":{message:`样式表`,description:`Block stylesheets option`},"blockResource.xhr":{message:`XHR`,description:`Block XHR option`},"blockResource.fetch":{message:`Fetch`,description:`Block fetch option`},"placeholder.url":{message:`https://example.com`,description:`Placeholder for the URL input`},"placeholder.waitForSelector":{message:`CSS 选择器,例如 .article-body`,description:`Placeholder for the wait_for_selector input`},"placeholder.blockResources":{message:`选择要屏蔽的资源类型`,description:`Placeholder for the block_resources multi-select`},"button.extract":{message:`抽取`,description:`Run extract button label`},"button.render":{message:`渲染`,description:`Run render button label`},"description.intro":{message:`渲染并抽取任意网页`,description:`Intro line shown in the empty result state`},"description.introHint":{message:`输入网址,选择「抽取」或「渲染」即可获取干净的正文、Markdown、链接、截图等。`,description:`Hint shown below the intro line`},"description.enableLlm":{message:`使用 LLM 对抽取出的内容进行二次清洗与结构化整理,会额外消耗积分。`,description:`Tooltip explaining the LLM cleanup toggle`},"message.running":{message:`正在处理…`,description:`Status while a request is in flight`},"message.extracting":{message:`正在抽取…`,description:`Status shown when extract is running`},"message.rendering":{message:`正在渲染…`,description:`Status shown when render is running`},"message.success":{message:`完成`,description:`Toast shown on success`},"message.failed":{message:`请求失败`,description:`Generic error message`},"message.usedUp":{message:`额度已用完,请充值后再试。`,description:`Error shown when balance is exhausted`},"message.busy":{message:`服务繁忙,请稍后再试。`,description:`Error shown on rate limit`},"message.timeout":{message:`页面加载超时,请更换网址或调大超时时间。`,description:`Error shown on timeout`},"message.untitled":{message:`未命名页面`,description:`Fallback title when the page has no title`},"tab.markdown":{message:`Markdown`,description:`Markdown tab label`},"tab.text":{message:`纯文本`,description:`Plain text tab label`},"tab.structured":{message:`结构化`,description:`Structured data tab label`},"tab.links":{message:`链接`,description:`Links tab label`},"tab.images":{message:`图片`,description:`Images tab label`},"tab.html":{message:`HTML`,description:`HTML tab label`},"tab.raw":{message:`原始 JSON`,description:`Raw response tab label`}};export{e as default};
|
|
1
|
+
var e={"name.mode":{message:`模式`,description:`Label for render/extract mode toggle`},"name.url":{message:`网址`,description:`Label for the URL input`},"name.expectedType":{message:`内容类型`,description:`Label for expected content type`},"name.enableLlm":{message:`LLM 智能清洗`,description:`Label for enable LLM toggle`},"name.advanced":{message:`高级选项`,description:`Label for advanced options collapse`},"name.waitUntil":{message:`等待条件`,description:`Label for the wait_until field`},"name.waitForSelector":{message:`等待选择器`,description:`Label for the wait_for_selector field`},"name.timeout":{message:`超时(秒)`,description:`Label for the timeout field`},"name.delay":{message:`加载后延迟(秒)`,description:`Label for the delay_after_load field`},"name.blockResources":{message:`屏蔽资源`,description:`Label for the block_resources multi-select`},"name.consumption":{message:`单次消耗`,description:`Label for the per-call cost`},"mode.extract":{message:`抽取内容`,description:`Extract mode option`},"mode.render":{message:`渲染页面`,description:`Render mode option`},"expectedType.general":{message:`通用`,description:`General expected type option`},"expectedType.article":{message:`文章`,description:`Article expected type option`},"expectedType.product":{message:`商品`,description:`Product expected type option`},"waitUntil.networkidle":{message:`网络空闲`,description:`Wait until network idle option`},"waitUntil.load":{message:`页面加载完成`,description:`Wait until load option`},"waitUntil.domcontentloaded":{message:`DOM 就绪`,description:`Wait until DOM content loaded option`},"waitUntil.commit":{message:`导航开始`,description:`Wait until commit option`},"blockResource.image":{message:`图片`,description:`Block images option`},"blockResource.font":{message:`字体`,description:`Block fonts option`},"blockResource.media":{message:`媒体`,description:`Block media option`},"blockResource.stylesheet":{message:`样式表`,description:`Block stylesheets option`},"blockResource.xhr":{message:`XHR`,description:`Block XHR option`},"blockResource.fetch":{message:`Fetch`,description:`Block fetch option`},"placeholder.url":{message:`https://example.com`,description:`Placeholder for the URL input`},"placeholder.waitForSelector":{message:`CSS 选择器,例如 .article-body`,description:`Placeholder for the wait_for_selector input`},"placeholder.blockResources":{message:`选择要屏蔽的资源类型`,description:`Placeholder for the block_resources multi-select`},"button.extract":{message:`抽取`,description:`Run extract button label`},"button.render":{message:`渲染`,description:`Run render button label`},"description.intro":{message:`渲染并抽取任意网页`,description:`Intro line shown in the empty result state`},"description.introHint":{message:`输入网址,选择「抽取」或「渲染」即可获取干净的正文、Markdown、链接、截图等。`,description:`Hint shown below the intro line`},"description.enableLlm":{message:`使用 LLM 对抽取出的内容进行二次清洗与结构化整理,会额外消耗积分。`,description:`Tooltip explaining the LLM cleanup toggle`},"message.running":{message:`正在处理…`,description:`Status while a request is in flight`},"message.extracting":{message:`正在抽取…`,description:`Status shown when extract is running`},"message.rendering":{message:`正在渲染…`,description:`Status shown when render is running`},"message.success":{message:`完成`,description:`Toast shown on success`},"message.failed":{message:`请求失败`,description:`Generic error message`},"message.usedUp":{message:`额度已用完,请充值后再试。`,description:`Error shown when balance is exhausted`},"message.busy":{message:`服务繁忙,请稍后再试。`,description:`Error shown on rate limit`},"message.timeout":{message:`页面加载超时,请更换网址或调大超时时间。`,description:`Error shown on timeout`},"message.antibotBlocked":{message:`目标网站启用了反爬保护,暂时无法抓取(本次不计费)。`,description:`Error shown when the target page is an uncleared anti-bot challenge (HTTP 422, not billed)`},"message.untitled":{message:`未命名页面`,description:`Fallback title when the page has no title`},"tab.markdown":{message:`Markdown`,description:`Markdown tab label`},"tab.text":{message:`纯文本`,description:`Plain text tab label`},"tab.structured":{message:`结构化`,description:`Structured data tab label`},"tab.links":{message:`链接`,description:`Links tab label`},"tab.images":{message:`图片`,description:`Images tab label`},"tab.html":{message:`HTML`,description:`HTML tab label`},"tab.raw":{message:`原始 JSON`,description:`Raw response tab label`}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={"name.mode":{message:`Mode`,description:`Label for render/extract mode toggle`},"name.url":{message:`URL`,description:`Label for the URL input`},"name.expectedType":{message:`Expected Type`,description:`Label for expected content type`},"name.enableLlm":{message:`LLM Cleanup`,description:`Label for enable LLM toggle`},"name.advanced":{message:`Advanced`,description:`Label for advanced options collapse`},"name.waitUntil":{message:`Wait Until`,description:`Label for the wait_until field`},"name.waitForSelector":{message:`Wait For Selector`,description:`Label for the wait_for_selector field`},"name.timeout":{message:`Timeout (s)`,description:`Label for the timeout field`},"name.delay":{message:`Delay (s)`,description:`Label for the delay_after_load field`},"name.blockResources":{message:`Block Resources`,description:`Label for the block_resources multi-select`},"name.consumption":{message:`Cost`,description:`Label for the per-call cost`},"mode.extract":{message:`Extract`,description:`Extract mode option`},"mode.render":{message:`Render`,description:`Render mode option`},"expectedType.general":{message:`General`,description:`General expected type option`},"expectedType.article":{message:`Article`,description:`Article expected type option`},"expectedType.product":{message:`Product`,description:`Product expected type option`},"waitUntil.networkidle":{message:`Network Idle`,description:`Wait until network idle option`},"waitUntil.load":{message:`Load`,description:`Wait until load option`},"waitUntil.domcontentloaded":{message:`DOM Ready`,description:`Wait until DOM content loaded option`},"waitUntil.commit":{message:`Commit`,description:`Wait until commit option`},"blockResource.image":{message:`Images`,description:`Block images option`},"blockResource.font":{message:`Fonts`,description:`Block fonts option`},"blockResource.media":{message:`Media`,description:`Block media option`},"blockResource.stylesheet":{message:`Stylesheets`,description:`Block stylesheets option`},"blockResource.xhr":{message:`XHR`,description:`Block XHR option`},"blockResource.fetch":{message:`Fetch`,description:`Block fetch option`},"placeholder.url":{message:`https://example.com`,description:`Placeholder for the URL input`},"placeholder.waitForSelector":{message:`CSS selector, e.g. .article-body`,description:`Placeholder for the wait_for_selector input`},"placeholder.blockResources":{message:`Resource types to block`,description:`Placeholder for the block_resources multi-select`},"button.extract":{message:`Extract`,description:`Run extract button label`},"button.render":{message:`Render`,description:`Run render button label`},"description.intro":{message:`Render and extract any web page`,description:`Intro line shown in the empty result state`},"description.introHint":{message:`Enter a URL and choose Extract or Render to get clean content, markdown, links, screenshots, and more.`,description:`Hint shown below the intro line`},"description.enableLlm":{message:`Use an LLM to clean and structure the extracted content. Costs additional credits.`,description:`Tooltip explaining the LLM cleanup toggle`},"message.running":{message:`Working on it…`,description:`Status while a request is in flight`},"message.extracting":{message:`Extracting…`,description:`Status shown when extract is running`},"message.rendering":{message:`Rendering…`,description:`Status shown when render is running`},"message.success":{message:`Done`,description:`Toast shown on success`},"message.failed":{message:`Request failed`,description:`Generic error message`},"message.usedUp":{message:`Your quota has been used up. Please top up to continue.`,description:`Error shown when balance is exhausted`},"message.busy":{message:`Service is busy. Please try again in a moment.`,description:`Error shown on rate limit`},"message.timeout":{message:`The page took too long to load. Try a different URL or increase the timeout.`,description:`Error shown on timeout`},"message.antibotBlocked":{message:`Ciljna stranica je aktivirala zaštitu od botova, trenutno nije moguće pristupiti (ovaj put se ne naplaćuje).`,description:`Greška koja se prikazuje kada je ciljana stranica nepročišćena anti-bot izazov (HTTP 422, nije naplaćeno)`},"message.untitled":{message:`Untitled`,description:`Fallback title when the page has no title`},"tab.markdown":{message:`Markdown`,description:`Markdown tab label`},"tab.text":{message:`Text`,description:`Plain text tab label`},"tab.structured":{message:`Structured`,description:`Structured data tab label`},"tab.links":{message:`Links`,description:`Links tab label`},"tab.images":{message:`Images`,description:`Images tab label`},"tab.html":{message:`HTML`,description:`HTML tab label`},"tab.raw":{message:`Raw JSON`,description:`Raw response tab label`}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={"name.mode":{message:`Mode`,description:`Label for render/extract mode toggle`},"name.url":{message:`URL`,description:`Label for the URL input`},"name.expectedType":{message:`Expected Type`,description:`Label for expected content type`},"name.enableLlm":{message:`LLM Cleanup`,description:`Label for enable LLM toggle`},"name.advanced":{message:`Advanced`,description:`Label for advanced options collapse`},"name.waitUntil":{message:`Wait Until`,description:`Label for the wait_until field`},"name.waitForSelector":{message:`Wait For Selector`,description:`Label for the wait_for_selector field`},"name.timeout":{message:`Timeout (s)`,description:`Label for the timeout field`},"name.delay":{message:`Delay (s)`,description:`Label for the delay_after_load field`},"name.blockResources":{message:`Block Resources`,description:`Label for the block_resources multi-select`},"name.consumption":{message:`Cost`,description:`Label for the per-call cost`},"mode.extract":{message:`Extract`,description:`Extract mode option`},"mode.render":{message:`Render`,description:`Render mode option`},"expectedType.general":{message:`General`,description:`General expected type option`},"expectedType.article":{message:`Article`,description:`Article expected type option`},"expectedType.product":{message:`Product`,description:`Product expected type option`},"waitUntil.networkidle":{message:`Network Idle`,description:`Wait until network idle option`},"waitUntil.load":{message:`Load`,description:`Wait until load option`},"waitUntil.domcontentloaded":{message:`DOM Ready`,description:`Wait until DOM content loaded option`},"waitUntil.commit":{message:`Commit`,description:`Wait until commit option`},"blockResource.image":{message:`Images`,description:`Block images option`},"blockResource.font":{message:`Fonts`,description:`Block fonts option`},"blockResource.media":{message:`Media`,description:`Block media option`},"blockResource.stylesheet":{message:`Stylesheets`,description:`Block stylesheets option`},"blockResource.xhr":{message:`XHR`,description:`Block XHR option`},"blockResource.fetch":{message:`Fetch`,description:`Block fetch option`},"placeholder.url":{message:`https://example.com`,description:`Placeholder for the URL input`},"placeholder.waitForSelector":{message:`CSS selector, e.g. .article-body`,description:`Placeholder for the wait_for_selector input`},"placeholder.blockResources":{message:`Resource types to block`,description:`Placeholder for the block_resources multi-select`},"button.extract":{message:`Extract`,description:`Run extract button label`},"button.render":{message:`Render`,description:`Run render button label`},"description.intro":{message:`Render and extract any web page`,description:`Intro line shown in the empty result state`},"description.introHint":{message:`Enter a URL and choose Extract or Render to get clean content, markdown, links, screenshots, and more.`,description:`Hint shown below the intro line`},"description.enableLlm":{message:`Use an LLM to clean and structure the extracted content. Costs additional credits.`,description:`Tooltip explaining the LLM cleanup toggle`},"message.running":{message:`Working on it…`,description:`Status while a request is in flight`},"message.extracting":{message:`Extracting…`,description:`Status shown when extract is running`},"message.rendering":{message:`Rendering…`,description:`Status shown when render is running`},"message.success":{message:`Done`,description:`Toast shown on success`},"message.failed":{message:`Request failed`,description:`Generic error message`},"message.usedUp":{message:`Your quota has been used up. Please top up to continue.`,description:`Error shown when balance is exhausted`},"message.busy":{message:`Service is busy. Please try again in a moment.`,description:`Error shown on rate limit`},"message.timeout":{message:`The page took too long to load. Try a different URL or increase the timeout.`,description:`Error shown on timeout`},"message.antibotBlocked":{message:`Docelowa strona włączyła ochronę przed botami, nie można jej tymczasowo zeskrobać (nie będzie naliczana opłata).`,description:`Błąd wyświetlany, gdy strona docelowa ma nieprzezroczyste wyzwanie przeciwko botom (HTTP 422, nie jest naliczana opłata)`},"message.untitled":{message:`Untitled`,description:`Fallback title when the page has no title`},"tab.markdown":{message:`Markdown`,description:`Markdown tab label`},"tab.text":{message:`Text`,description:`Plain text tab label`},"tab.structured":{message:`Structured`,description:`Structured data tab label`},"tab.links":{message:`Links`,description:`Links tab label`},"tab.images":{message:`Images`,description:`Images tab label`},"tab.html":{message:`HTML`,description:`HTML tab label`},"tab.raw":{message:`Raw JSON`,description:`Raw response tab label`}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={"name.mode":{message:`Mode`,description:`Label for render/extract mode toggle`},"name.url":{message:`URL`,description:`Label for the URL input`},"name.expectedType":{message:`Expected Type`,description:`Label for expected content type`},"name.enableLlm":{message:`LLM Cleanup`,description:`Label for enable LLM toggle`},"name.advanced":{message:`Advanced`,description:`Label for advanced options collapse`},"name.waitUntil":{message:`Wait Until`,description:`Label for the wait_until field`},"name.waitForSelector":{message:`Wait For Selector`,description:`Label for the wait_for_selector field`},"name.timeout":{message:`Timeout (s)`,description:`Label for the timeout field`},"name.delay":{message:`Delay (s)`,description:`Label for the delay_after_load field`},"name.blockResources":{message:`Block Resources`,description:`Label for the block_resources multi-select`},"name.consumption":{message:`Cost`,description:`Label for the per-call cost`},"mode.extract":{message:`Extract`,description:`Extract mode option`},"mode.render":{message:`Render`,description:`Render mode option`},"expectedType.general":{message:`General`,description:`General expected type option`},"expectedType.article":{message:`Article`,description:`Article expected type option`},"expectedType.product":{message:`Product`,description:`Product expected type option`},"waitUntil.networkidle":{message:`Network Idle`,description:`Wait until network idle option`},"waitUntil.load":{message:`Load`,description:`Wait until load option`},"waitUntil.domcontentloaded":{message:`DOM Ready`,description:`Wait until DOM content loaded option`},"waitUntil.commit":{message:`Commit`,description:`Wait until commit option`},"blockResource.image":{message:`Images`,description:`Block images option`},"blockResource.font":{message:`Fonts`,description:`Block fonts option`},"blockResource.media":{message:`Media`,description:`Block media option`},"blockResource.stylesheet":{message:`Stylesheets`,description:`Block stylesheets option`},"blockResource.xhr":{message:`XHR`,description:`Block XHR option`},"blockResource.fetch":{message:`Fetch`,description:`Block fetch option`},"placeholder.url":{message:`https://example.com`,description:`Placeholder for the URL input`},"placeholder.waitForSelector":{message:`CSS selector, e.g. .article-body`,description:`Placeholder for the wait_for_selector input`},"placeholder.blockResources":{message:`Resource types to block`,description:`Placeholder for the block_resources multi-select`},"button.extract":{message:`Extract`,description:`Run extract button label`},"button.render":{message:`Render`,description:`Run render button label`},"description.intro":{message:`Render and extract any web page`,description:`Intro line shown in the empty result state`},"description.introHint":{message:`Enter a URL and choose Extract or Render to get clean content, markdown, links, screenshots, and more.`,description:`Hint shown below the intro line`},"description.enableLlm":{message:`Use an LLM to clean and structure the extracted content. Costs additional credits.`,description:`Tooltip explaining the LLM cleanup toggle`},"message.running":{message:`Working on it…`,description:`Status while a request is in flight`},"message.extracting":{message:`Extracting…`,description:`Status shown when extract is running`},"message.rendering":{message:`Rendering…`,description:`Status shown when render is running`},"message.success":{message:`Done`,description:`Toast shown on success`},"message.failed":{message:`Request failed`,description:`Generic error message`},"message.usedUp":{message:`Your quota has been used up. Please top up to continue.`,description:`Error shown when balance is exhausted`},"message.busy":{message:`Service is busy. Please try again in a moment.`,description:`Error shown on rate limit`},"message.timeout":{message:`The page took too long to load. Try a different URL or increase the timeout.`,description:`Error shown on timeout`},"message.antibotBlocked":{message:`Il sito web di destinazione ha attivato la protezione anti-bot, non è possibile effettuare la cattura al momento (questa volta non verrà addebitato alcun costo).`,description:`Errore mostrato quando la pagina di destinazione presenta una sfida anti-bot non superata (HTTP 422, non addebitato).`},"message.untitled":{message:`Untitled`,description:`Fallback title when the page has no title`},"tab.markdown":{message:`Markdown`,description:`Markdown tab label`},"tab.text":{message:`Text`,description:`Plain text tab label`},"tab.structured":{message:`Structured`,description:`Structured data tab label`},"tab.links":{message:`Links`,description:`Links tab label`},"tab.images":{message:`Images`,description:`Images tab label`},"tab.html":{message:`HTML`,description:`HTML tab label`},"tab.raw":{message:`Raw JSON`,description:`Raw response tab label`}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={"name.mode":{message:`Mode`,description:`Label for render/extract mode toggle`},"name.url":{message:`URL`,description:`Label for the URL input`},"name.expectedType":{message:`Expected Type`,description:`Label for expected content type`},"name.enableLlm":{message:`LLM Cleanup`,description:`Label for enable LLM toggle`},"name.advanced":{message:`Advanced`,description:`Label for advanced options collapse`},"name.waitUntil":{message:`Wait Until`,description:`Label for the wait_until field`},"name.waitForSelector":{message:`Wait For Selector`,description:`Label for the wait_for_selector field`},"name.timeout":{message:`Timeout (s)`,description:`Label for the timeout field`},"name.delay":{message:`Delay (s)`,description:`Label for the delay_after_load field`},"name.blockResources":{message:`Block Resources`,description:`Label for the block_resources multi-select`},"name.consumption":{message:`Cost`,description:`Label for the per-call cost`},"mode.extract":{message:`Extract`,description:`Extract mode option`},"mode.render":{message:`Render`,description:`Render mode option`},"expectedType.general":{message:`General`,description:`General expected type option`},"expectedType.article":{message:`Article`,description:`Article expected type option`},"expectedType.product":{message:`Product`,description:`Product expected type option`},"waitUntil.networkidle":{message:`Network Idle`,description:`Wait until network idle option`},"waitUntil.load":{message:`Load`,description:`Wait until load option`},"waitUntil.domcontentloaded":{message:`DOM Ready`,description:`Wait until DOM content loaded option`},"waitUntil.commit":{message:`Commit`,description:`Wait until commit option`},"blockResource.image":{message:`Images`,description:`Block images option`},"blockResource.font":{message:`Fonts`,description:`Block fonts option`},"blockResource.media":{message:`Media`,description:`Block media option`},"blockResource.stylesheet":{message:`Stylesheets`,description:`Block stylesheets option`},"blockResource.xhr":{message:`XHR`,description:`Block XHR option`},"blockResource.fetch":{message:`Fetch`,description:`Block fetch option`},"placeholder.url":{message:`https://example.com`,description:`Placeholder for the URL input`},"placeholder.waitForSelector":{message:`CSS selector, e.g. .article-body`,description:`Placeholder for the wait_for_selector input`},"placeholder.blockResources":{message:`Resource types to block`,description:`Placeholder for the block_resources multi-select`},"button.extract":{message:`Extract`,description:`Run extract button label`},"button.render":{message:`Render`,description:`Run render button label`},"description.intro":{message:`Render and extract any web page`,description:`Intro line shown in the empty result state`},"description.introHint":{message:`Enter a URL and choose Extract or Render to get clean content, markdown, links, screenshots, and more.`,description:`Hint shown below the intro line`},"description.enableLlm":{message:`Use an LLM to clean and structure the extracted content. Costs additional credits.`,description:`Tooltip explaining the LLM cleanup toggle`},"message.running":{message:`Working on it…`,description:`Status while a request is in flight`},"message.extracting":{message:`Extracting…`,description:`Status shown when extract is running`},"message.rendering":{message:`Rendering…`,description:`Status shown when render is running`},"message.success":{message:`Done`,description:`Toast shown on success`},"message.failed":{message:`Request failed`,description:`Generic error message`},"message.usedUp":{message:`Your quota has been used up. Please top up to continue.`,description:`Error shown when balance is exhausted`},"message.busy":{message:`Service is busy. Please try again in a moment.`,description:`Error shown on rate limit`},"message.timeout":{message:`The page took too long to load. Try a different URL or increase the timeout.`,description:`Error shown on timeout`},"message.antibotBlocked":{message:`O site de destino ativou a proteção contra bots, não é possível acessar temporariamente (não será cobrado desta vez).`,description:`Erro exibido quando a página de destino apresenta um desafio anti-bot não resolvido (HTTP 422, não será cobrado).`},"message.untitled":{message:`Untitled`,description:`Fallback title when the page has no title`},"tab.markdown":{message:`Markdown`,description:`Markdown tab label`},"tab.text":{message:`Text`,description:`Plain text tab label`},"tab.structured":{message:`Structured`,description:`Structured data tab label`},"tab.links":{message:`Links`,description:`Links tab label`},"tab.images":{message:`Images`,description:`Images tab label`},"tab.html":{message:`HTML`,description:`HTML tab label`},"tab.raw":{message:`Raw JSON`,description:`Raw response tab label`}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={"name.mode":{message:`Mode`,description:`Label for render/extract mode toggle`},"name.url":{message:`URL`,description:`Label for the URL input`},"name.expectedType":{message:`Expected Type`,description:`Label for expected content type`},"name.enableLlm":{message:`LLM Cleanup`,description:`Label for enable LLM toggle`},"name.advanced":{message:`Advanced`,description:`Label for advanced options collapse`},"name.waitUntil":{message:`Wait Until`,description:`Label for the wait_until field`},"name.waitForSelector":{message:`Wait For Selector`,description:`Label for the wait_for_selector field`},"name.timeout":{message:`Timeout (s)`,description:`Label for the timeout field`},"name.delay":{message:`Delay (s)`,description:`Label for the delay_after_load field`},"name.blockResources":{message:`Block Resources`,description:`Label for the block_resources multi-select`},"name.consumption":{message:`Cost`,description:`Label for the per-call cost`},"mode.extract":{message:`Extract`,description:`Extract mode option`},"mode.render":{message:`Render`,description:`Render mode option`},"expectedType.general":{message:`General`,description:`General expected type option`},"expectedType.article":{message:`Article`,description:`Article expected type option`},"expectedType.product":{message:`Product`,description:`Product expected type option`},"waitUntil.networkidle":{message:`Network Idle`,description:`Wait until network idle option`},"waitUntil.load":{message:`Load`,description:`Wait until load option`},"waitUntil.domcontentloaded":{message:`DOM Ready`,description:`Wait until DOM content loaded option`},"waitUntil.commit":{message:`Commit`,description:`Wait until commit option`},"blockResource.image":{message:`Images`,description:`Block images option`},"blockResource.font":{message:`Fonts`,description:`Block fonts option`},"blockResource.media":{message:`Media`,description:`Block media option`},"blockResource.stylesheet":{message:`Stylesheets`,description:`Block stylesheets option`},"blockResource.xhr":{message:`XHR`,description:`Block XHR option`},"blockResource.fetch":{message:`Fetch`,description:`Block fetch option`},"placeholder.url":{message:`https://example.com`,description:`Placeholder for the URL input`},"placeholder.waitForSelector":{message:`CSS selector, e.g. .article-body`,description:`Placeholder for the wait_for_selector input`},"placeholder.blockResources":{message:`Resource types to block`,description:`Placeholder for the block_resources multi-select`},"button.extract":{message:`Extract`,description:`Run extract button label`},"button.render":{message:`Render`,description:`Run render button label`},"description.intro":{message:`Render and extract any web page`,description:`Intro line shown in the empty result state`},"description.introHint":{message:`Enter a URL and choose Extract or Render to get clean content, markdown, links, screenshots, and more.`,description:`Hint shown below the intro line`},"description.enableLlm":{message:`Use an LLM to clean and structure the extracted content. Costs additional credits.`,description:`Tooltip explaining the LLM cleanup toggle`},"message.running":{message:`Working on it…`,description:`Status while a request is in flight`},"message.extracting":{message:`Extracting…`,description:`Status shown when extract is running`},"message.rendering":{message:`Rendering…`,description:`Status shown when render is running`},"message.success":{message:`Done`,description:`Toast shown on success`},"message.failed":{message:`Request failed`,description:`Generic error message`},"message.usedUp":{message:`Your quota has been used up. Please top up to continue.`,description:`Error shown when balance is exhausted`},"message.busy":{message:`Service is busy. Please try again in a moment.`,description:`Error shown on rate limit`},"message.timeout":{message:`The page took too long to load. Try a different URL or increase the timeout.`,description:`Error shown on timeout`},"message.antibotBlocked":{message:`Die Zielwebsite hat einen Anti-Bot-Schutz aktiviert, vorübergehend nicht abrufbar (dies wird nicht berechnet).`,description:`Fehler, der angezeigt wird, wenn die Zielseite eine nicht geklärte Anti-Bot-Herausforderung ist (HTTP 422, nicht berechnet)`},"message.untitled":{message:`Untitled`,description:`Fallback title when the page has no title`},"tab.markdown":{message:`Markdown`,description:`Markdown tab label`},"tab.text":{message:`Text`,description:`Plain text tab label`},"tab.structured":{message:`Structured`,description:`Structured data tab label`},"tab.links":{message:`Links`,description:`Links tab label`},"tab.images":{message:`Images`,description:`Images tab label`},"tab.html":{message:`HTML`,description:`HTML tab label`},"tab.raw":{message:`Raw JSON`,description:`Raw response tab label`}};export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={"name.mode":{message:`Mode`,description:`Label for render/extract mode toggle`},"name.url":{message:`URL`,description:`Label for the URL input`},"name.expectedType":{message:`Expected Type`,description:`Label for expected content type`},"name.enableLlm":{message:`LLM Cleanup`,description:`Label for enable LLM toggle`},"name.advanced":{message:`Advanced`,description:`Label for advanced options collapse`},"name.waitUntil":{message:`Wait Until`,description:`Label for the wait_until field`},"name.waitForSelector":{message:`Wait For Selector`,description:`Label for the wait_for_selector field`},"name.timeout":{message:`Timeout (s)`,description:`Label for the timeout field`},"name.delay":{message:`Delay (s)`,description:`Label for the delay_after_load field`},"name.blockResources":{message:`Block Resources`,description:`Label for the block_resources multi-select`},"name.consumption":{message:`Cost`,description:`Label for the per-call cost`},"mode.extract":{message:`Extract`,description:`Extract mode option`},"mode.render":{message:`Render`,description:`Render mode option`},"expectedType.general":{message:`General`,description:`General expected type option`},"expectedType.article":{message:`Article`,description:`Article expected type option`},"expectedType.product":{message:`Product`,description:`Product expected type option`},"waitUntil.networkidle":{message:`Network Idle`,description:`Wait until network idle option`},"waitUntil.load":{message:`Load`,description:`Wait until load option`},"waitUntil.domcontentloaded":{message:`DOM Ready`,description:`Wait until DOM content loaded option`},"waitUntil.commit":{message:`Commit`,description:`Wait until commit option`},"blockResource.image":{message:`Images`,description:`Block images option`},"blockResource.font":{message:`Fonts`,description:`Block fonts option`},"blockResource.media":{message:`Media`,description:`Block media option`},"blockResource.stylesheet":{message:`Stylesheets`,description:`Block stylesheets option`},"blockResource.xhr":{message:`XHR`,description:`Block XHR option`},"blockResource.fetch":{message:`Fetch`,description:`Block fetch option`},"placeholder.url":{message:`https://example.com`,description:`Placeholder for the URL input`},"placeholder.waitForSelector":{message:`CSS selector, e.g. .article-body`,description:`Placeholder for the wait_for_selector input`},"placeholder.blockResources":{message:`Resource types to block`,description:`Placeholder for the block_resources multi-select`},"button.extract":{message:`Extract`,description:`Run extract button label`},"button.render":{message:`Render`,description:`Run render button label`},"description.intro":{message:`Render and extract any web page`,description:`Intro line shown in the empty result state`},"description.introHint":{message:`Enter a URL and choose Extract or Render to get clean content, markdown, links, screenshots, and more.`,description:`Hint shown below the intro line`},"description.enableLlm":{message:`Use an LLM to clean and structure the extracted content. Costs additional credits.`,description:`Tooltip explaining the LLM cleanup toggle`},"message.running":{message:`Working on it…`,description:`Status while a request is in flight`},"message.extracting":{message:`Extracting…`,description:`Status shown when extract is running`},"message.rendering":{message:`Rendering…`,description:`Status shown when render is running`},"message.success":{message:`Done`,description:`Toast shown on success`},"message.failed":{message:`Request failed`,description:`Generic error message`},"message.usedUp":{message:`Your quota has been used up. Please top up to continue.`,description:`Error shown when balance is exhausted`},"message.busy":{message:`Service is busy. Please try again in a moment.`,description:`Error shown on rate limit`},"message.timeout":{message:`The page took too long to load. Try a different URL or increase the timeout.`,description:`Error shown on timeout`},"message.untitled":{message:`Untitled`,description:`Fallback title when the page has no title`},"tab.markdown":{message:`Markdown`,description:`Markdown tab label`},"tab.text":{message:`Text`,description:`Plain text tab label`},"tab.structured":{message:`Structured`,description:`Structured data tab label`},"tab.links":{message:`Links`,description:`Links tab label`},"tab.images":{message:`Images`,description:`Images tab label`},"tab.html":{message:`HTML`,description:`HTML tab label`},"tab.raw":{message:`Raw JSON`,description:`Raw response tab label`}};export{e as default};
|
|
1
|
+
var e={"name.mode":{message:`Mode`,description:`Label for render/extract mode toggle`},"name.url":{message:`URL`,description:`Label for the URL input`},"name.expectedType":{message:`Expected Type`,description:`Label for expected content type`},"name.enableLlm":{message:`LLM Cleanup`,description:`Label for enable LLM toggle`},"name.advanced":{message:`Advanced`,description:`Label for advanced options collapse`},"name.waitUntil":{message:`Wait Until`,description:`Label for the wait_until field`},"name.waitForSelector":{message:`Wait For Selector`,description:`Label for the wait_for_selector field`},"name.timeout":{message:`Timeout (s)`,description:`Label for the timeout field`},"name.delay":{message:`Delay (s)`,description:`Label for the delay_after_load field`},"name.blockResources":{message:`Block Resources`,description:`Label for the block_resources multi-select`},"name.consumption":{message:`Cost`,description:`Label for the per-call cost`},"mode.extract":{message:`Extract`,description:`Extract mode option`},"mode.render":{message:`Render`,description:`Render mode option`},"expectedType.general":{message:`General`,description:`General expected type option`},"expectedType.article":{message:`Article`,description:`Article expected type option`},"expectedType.product":{message:`Product`,description:`Product expected type option`},"waitUntil.networkidle":{message:`Network Idle`,description:`Wait until network idle option`},"waitUntil.load":{message:`Load`,description:`Wait until load option`},"waitUntil.domcontentloaded":{message:`DOM Ready`,description:`Wait until DOM content loaded option`},"waitUntil.commit":{message:`Commit`,description:`Wait until commit option`},"blockResource.image":{message:`Images`,description:`Block images option`},"blockResource.font":{message:`Fonts`,description:`Block fonts option`},"blockResource.media":{message:`Media`,description:`Block media option`},"blockResource.stylesheet":{message:`Stylesheets`,description:`Block stylesheets option`},"blockResource.xhr":{message:`XHR`,description:`Block XHR option`},"blockResource.fetch":{message:`Fetch`,description:`Block fetch option`},"placeholder.url":{message:`https://example.com`,description:`Placeholder for the URL input`},"placeholder.waitForSelector":{message:`CSS selector, e.g. .article-body`,description:`Placeholder for the wait_for_selector input`},"placeholder.blockResources":{message:`Resource types to block`,description:`Placeholder for the block_resources multi-select`},"button.extract":{message:`Extract`,description:`Run extract button label`},"button.render":{message:`Render`,description:`Run render button label`},"description.intro":{message:`Render and extract any web page`,description:`Intro line shown in the empty result state`},"description.introHint":{message:`Enter a URL and choose Extract or Render to get clean content, markdown, links, screenshots, and more.`,description:`Hint shown below the intro line`},"description.enableLlm":{message:`Use an LLM to clean and structure the extracted content. Costs additional credits.`,description:`Tooltip explaining the LLM cleanup toggle`},"message.running":{message:`Working on it…`,description:`Status while a request is in flight`},"message.extracting":{message:`Extracting…`,description:`Status shown when extract is running`},"message.rendering":{message:`Rendering…`,description:`Status shown when render is running`},"message.success":{message:`Done`,description:`Toast shown on success`},"message.failed":{message:`Request failed`,description:`Generic error message`},"message.usedUp":{message:`Your quota has been used up. Please top up to continue.`,description:`Error shown when balance is exhausted`},"message.busy":{message:`Service is busy. Please try again in a moment.`,description:`Error shown on rate limit`},"message.timeout":{message:`The page took too long to load. Try a different URL or increase the timeout.`,description:`Error shown on timeout`},"message.antibotBlocked":{message:`Målwebbplatsen har aktiverat skydd mot botar, kan inte nås för tillfället (denna gång debiteras inte).`,description:`Felmeddelande som visas när målsidan har en oavklarad anti-bot-utmaning (HTTP 422, debiteras inte)`},"message.untitled":{message:`Untitled`,description:`Fallback title when the page has no title`},"tab.markdown":{message:`Markdown`,description:`Markdown tab label`},"tab.text":{message:`Text`,description:`Plain text tab label`},"tab.structured":{message:`Structured`,description:`Structured data tab label`},"tab.links":{message:`Links`,description:`Links tab label`},"tab.images":{message:`Images`,description:`Images tab label`},"tab.html":{message:`HTML`,description:`HTML tab label`},"tab.raw":{message:`Raw JSON`,description:`Raw response tab label`}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={"name.mode":{message:`Mode`,description:`Label for render/extract mode toggle`},"name.url":{message:`URL`,description:`Label for the URL input`},"name.expectedType":{message:`Expected Type`,description:`Label for expected content type`},"name.enableLlm":{message:`LLM Cleanup`,description:`Label for enable LLM toggle`},"name.advanced":{message:`Advanced`,description:`Label for advanced options collapse`},"name.waitUntil":{message:`Wait Until`,description:`Label for the wait_until field`},"name.waitForSelector":{message:`Wait For Selector`,description:`Label for the wait_for_selector field`},"name.timeout":{message:`Timeout (s)`,description:`Label for the timeout field`},"name.delay":{message:`Delay (s)`,description:`Label for the delay_after_load field`},"name.blockResources":{message:`Block Resources`,description:`Label for the block_resources multi-select`},"name.consumption":{message:`Cost`,description:`Label for the per-call cost`},"mode.extract":{message:`Extract`,description:`Extract mode option`},"mode.render":{message:`Render`,description:`Render mode option`},"expectedType.general":{message:`General`,description:`General expected type option`},"expectedType.article":{message:`Article`,description:`Article expected type option`},"expectedType.product":{message:`Product`,description:`Product expected type option`},"waitUntil.networkidle":{message:`Network Idle`,description:`Wait until network idle option`},"waitUntil.load":{message:`Load`,description:`Wait until load option`},"waitUntil.domcontentloaded":{message:`DOM Ready`,description:`Wait until DOM content loaded option`},"waitUntil.commit":{message:`Commit`,description:`Wait until commit option`},"blockResource.image":{message:`Images`,description:`Block images option`},"blockResource.font":{message:`Fonts`,description:`Block fonts option`},"blockResource.media":{message:`Media`,description:`Block media option`},"blockResource.stylesheet":{message:`Stylesheets`,description:`Block stylesheets option`},"blockResource.xhr":{message:`XHR`,description:`Block XHR option`},"blockResource.fetch":{message:`Fetch`,description:`Block fetch option`},"placeholder.url":{message:`https://example.com`,description:`Placeholder for the URL input`},"placeholder.waitForSelector":{message:`CSS selector, e.g. .article-body`,description:`Placeholder for the wait_for_selector input`},"placeholder.blockResources":{message:`Resource types to block`,description:`Placeholder for the block_resources multi-select`},"button.extract":{message:`Extract`,description:`Run extract button label`},"button.render":{message:`Render`,description:`Run render button label`},"description.intro":{message:`Render and extract any web page`,description:`Intro line shown in the empty result state`},"description.introHint":{message:`Enter a URL and choose Extract or Render to get clean content, markdown, links, screenshots, and more.`,description:`Hint shown below the intro line`},"description.enableLlm":{message:`Use an LLM to clean and structure the extracted content. Costs additional credits.`,description:`Tooltip explaining the LLM cleanup toggle`},"message.running":{message:`Working on it…`,description:`Status while a request is in flight`},"message.extracting":{message:`Extracting…`,description:`Status shown when extract is running`},"message.rendering":{message:`Rendering…`,description:`Status shown when render is running`},"message.success":{message:`Done`,description:`Toast shown on success`},"message.failed":{message:`Request failed`,description:`Generic error message`},"message.usedUp":{message:`Your quota has been used up. Please top up to continue.`,description:`Error shown when balance is exhausted`},"message.busy":{message:`Service is busy. Please try again in a moment.`,description:`Error shown on rate limit`},"message.timeout":{message:`The page took too long to load. Try a different URL or increase the timeout.`,description:`Error shown on timeout`},"message.antibotBlocked":{message:`対象のウェブサイトはボット対策を有効にしており、一時的に取得できません(今回の料金は発生しません)。`,description:`対象ページが未クリアのボット対策チャレンジの場合に表示されるエラー(HTTP 422、料金は発生しません)`},"message.untitled":{message:`Untitled`,description:`Fallback title when the page has no title`},"tab.markdown":{message:`Markdown`,description:`Markdown tab label`},"tab.text":{message:`Text`,description:`Plain text tab label`},"tab.structured":{message:`Structured`,description:`Structured data tab label`},"tab.links":{message:`Links`,description:`Links tab label`},"tab.images":{message:`Images`,description:`Images tab label`},"tab.html":{message:`HTML`,description:`HTML tab label`},"tab.raw":{message:`Raw JSON`,description:`Raw response tab label`}};export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={"name.mode":{message:`Mode`,description:`Label for render/extract mode toggle`},"name.url":{message:`URL`,description:`Label for the URL input`},"name.expectedType":{message:`Expected Type`,description:`Label for expected content type`},"name.enableLlm":{message:`LLM Cleanup`,description:`Label for enable LLM toggle`},"name.advanced":{message:`Advanced`,description:`Label for advanced options collapse`},"name.waitUntil":{message:`Wait Until`,description:`Label for the wait_until field`},"name.waitForSelector":{message:`Wait For Selector`,description:`Label for the wait_for_selector field`},"name.timeout":{message:`Timeout (s)`,description:`Label for the timeout field`},"name.delay":{message:`Delay (s)`,description:`Label for the delay_after_load field`},"name.blockResources":{message:`Block Resources`,description:`Label for the block_resources multi-select`},"name.consumption":{message:`Cost`,description:`Label for the per-call cost`},"mode.extract":{message:`Extract`,description:`Extract mode option`},"mode.render":{message:`Render`,description:`Render mode option`},"expectedType.general":{message:`General`,description:`General expected type option`},"expectedType.article":{message:`Article`,description:`Article expected type option`},"expectedType.product":{message:`Product`,description:`Product expected type option`},"waitUntil.networkidle":{message:`Network Idle`,description:`Wait until network idle option`},"waitUntil.load":{message:`Load`,description:`Wait until load option`},"waitUntil.domcontentloaded":{message:`DOM Ready`,description:`Wait until DOM content loaded option`},"waitUntil.commit":{message:`Commit`,description:`Wait until commit option`},"blockResource.image":{message:`Images`,description:`Block images option`},"blockResource.font":{message:`Fonts`,description:`Block fonts option`},"blockResource.media":{message:`Media`,description:`Block media option`},"blockResource.stylesheet":{message:`Stylesheets`,description:`Block stylesheets option`},"blockResource.xhr":{message:`XHR`,description:`Block XHR option`},"blockResource.fetch":{message:`Fetch`,description:`Block fetch option`},"placeholder.url":{message:`https://example.com`,description:`Placeholder for the URL input`},"placeholder.waitForSelector":{message:`CSS selector, e.g. .article-body`,description:`Placeholder for the wait_for_selector input`},"placeholder.blockResources":{message:`Resource types to block`,description:`Placeholder for the block_resources multi-select`},"button.extract":{message:`Extract`,description:`Run extract button label`},"button.render":{message:`Render`,description:`Run render button label`},"description.intro":{message:`Render and extract any web page`,description:`Intro line shown in the empty result state`},"description.introHint":{message:`Enter a URL and choose Extract or Render to get clean content, markdown, links, screenshots, and more.`,description:`Hint shown below the intro line`},"description.enableLlm":{message:`Use an LLM to clean and structure the extracted content. Costs additional credits.`,description:`Tooltip explaining the LLM cleanup toggle`},"message.running":{message:`Working on it…`,description:`Status while a request is in flight`},"message.extracting":{message:`Extracting…`,description:`Status shown when extract is running`},"message.rendering":{message:`Rendering…`,description:`Status shown when render is running`},"message.success":{message:`Done`,description:`Toast shown on success`},"message.failed":{message:`Request failed`,description:`Generic error message`},"message.usedUp":{message:`Your quota has been used up. Please top up to continue.`,description:`Error shown when balance is exhausted`},"message.busy":{message:`Service is busy. Please try again in a moment.`,description:`Error shown on rate limit`},"message.timeout":{message:`The page took too long to load. Try a different URL or increase the timeout.`,description:`Error shown on timeout`},"message.untitled":{message:`Untitled`,description:`Fallback title when the page has no title`},"tab.markdown":{message:`Markdown`,description:`Markdown tab label`},"tab.text":{message:`Text`,description:`Plain text tab label`},"tab.structured":{message:`Structured`,description:`Structured data tab label`},"tab.links":{message:`Links`,description:`Links tab label`},"tab.images":{message:`Images`,description:`Images tab label`},"tab.html":{message:`HTML`,description:`HTML tab label`},"tab.raw":{message:`Raw JSON`,description:`Raw response tab label`}};export{e as default};
|
|
1
|
+
var e={"name.mode":{message:`Mode`,description:`Label for render/extract mode toggle`},"name.url":{message:`URL`,description:`Label for the URL input`},"name.expectedType":{message:`Expected Type`,description:`Label for expected content type`},"name.enableLlm":{message:`LLM Cleanup`,description:`Label for enable LLM toggle`},"name.advanced":{message:`Advanced`,description:`Label for advanced options collapse`},"name.waitUntil":{message:`Wait Until`,description:`Label for the wait_until field`},"name.waitForSelector":{message:`Wait For Selector`,description:`Label for the wait_for_selector field`},"name.timeout":{message:`Timeout (s)`,description:`Label for the timeout field`},"name.delay":{message:`Delay (s)`,description:`Label for the delay_after_load field`},"name.blockResources":{message:`Block Resources`,description:`Label for the block_resources multi-select`},"name.consumption":{message:`Cost`,description:`Label for the per-call cost`},"mode.extract":{message:`Extract`,description:`Extract mode option`},"mode.render":{message:`Render`,description:`Render mode option`},"expectedType.general":{message:`General`,description:`General expected type option`},"expectedType.article":{message:`Article`,description:`Article expected type option`},"expectedType.product":{message:`Product`,description:`Product expected type option`},"waitUntil.networkidle":{message:`Network Idle`,description:`Wait until network idle option`},"waitUntil.load":{message:`Load`,description:`Wait until load option`},"waitUntil.domcontentloaded":{message:`DOM Ready`,description:`Wait until DOM content loaded option`},"waitUntil.commit":{message:`Commit`,description:`Wait until commit option`},"blockResource.image":{message:`Images`,description:`Block images option`},"blockResource.font":{message:`Fonts`,description:`Block fonts option`},"blockResource.media":{message:`Media`,description:`Block media option`},"blockResource.stylesheet":{message:`Stylesheets`,description:`Block stylesheets option`},"blockResource.xhr":{message:`XHR`,description:`Block XHR option`},"blockResource.fetch":{message:`Fetch`,description:`Block fetch option`},"placeholder.url":{message:`https://example.com`,description:`Placeholder for the URL input`},"placeholder.waitForSelector":{message:`CSS selector, e.g. .article-body`,description:`Placeholder for the wait_for_selector input`},"placeholder.blockResources":{message:`Resource types to block`,description:`Placeholder for the block_resources multi-select`},"button.extract":{message:`Extract`,description:`Run extract button label`},"button.render":{message:`Render`,description:`Run render button label`},"description.intro":{message:`Render and extract any web page`,description:`Intro line shown in the empty result state`},"description.introHint":{message:`Enter a URL and choose Extract or Render to get clean content, markdown, links, screenshots, and more.`,description:`Hint shown below the intro line`},"description.enableLlm":{message:`Use an LLM to clean and structure the extracted content. Costs additional credits.`,description:`Tooltip explaining the LLM cleanup toggle`},"message.running":{message:`Working on it…`,description:`Status while a request is in flight`},"message.extracting":{message:`Extracting…`,description:`Status shown when extract is running`},"message.rendering":{message:`Rendering…`,description:`Status shown when render is running`},"message.success":{message:`Done`,description:`Toast shown on success`},"message.failed":{message:`Request failed`,description:`Generic error message`},"message.usedUp":{message:`Your quota has been used up. Please top up to continue.`,description:`Error shown when balance is exhausted`},"message.busy":{message:`Service is busy. Please try again in a moment.`,description:`Error shown on rate limit`},"message.timeout":{message:`The page took too long to load. Try a different URL or increase the timeout.`,description:`Error shown on timeout`},"message.antibotBlocked":{message:`This site is protected by anti-bot and couldn't be extracted — you were not charged.`,description:`Error shown when the target page is an uncleared anti-bot challenge (HTTP 422, not billed)`},"message.untitled":{message:`Untitled`,description:`Fallback title when the page has no title`},"tab.markdown":{message:`Markdown`,description:`Markdown tab label`},"tab.text":{message:`Text`,description:`Plain text tab label`},"tab.structured":{message:`Structured`,description:`Structured data tab label`},"tab.links":{message:`Links`,description:`Links tab label`},"tab.images":{message:`Images`,description:`Images tab label`},"tab.html":{message:`HTML`,description:`HTML tab label`},"tab.raw":{message:`Raw JSON`,description:`Raw response tab label`}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={"name.mode":{message:`Mode`,description:`Label for render/extract mode toggle`},"name.url":{message:`URL`,description:`Label for the URL input`},"name.expectedType":{message:`Expected Type`,description:`Label for expected content type`},"name.enableLlm":{message:`LLM Cleanup`,description:`Label for enable LLM toggle`},"name.advanced":{message:`Advanced`,description:`Label for advanced options collapse`},"name.waitUntil":{message:`Wait Until`,description:`Label for the wait_until field`},"name.waitForSelector":{message:`Wait For Selector`,description:`Label for the wait_for_selector field`},"name.timeout":{message:`Timeout (s)`,description:`Label for the timeout field`},"name.delay":{message:`Delay (s)`,description:`Label for the delay_after_load field`},"name.blockResources":{message:`Block Resources`,description:`Label for the block_resources multi-select`},"name.consumption":{message:`Cost`,description:`Label for the per-call cost`},"mode.extract":{message:`Extract`,description:`Extract mode option`},"mode.render":{message:`Render`,description:`Render mode option`},"expectedType.general":{message:`General`,description:`General expected type option`},"expectedType.article":{message:`Article`,description:`Article expected type option`},"expectedType.product":{message:`Product`,description:`Product expected type option`},"waitUntil.networkidle":{message:`Network Idle`,description:`Wait until network idle option`},"waitUntil.load":{message:`Load`,description:`Wait until load option`},"waitUntil.domcontentloaded":{message:`DOM Ready`,description:`Wait until DOM content loaded option`},"waitUntil.commit":{message:`Commit`,description:`Wait until commit option`},"blockResource.image":{message:`Images`,description:`Block images option`},"blockResource.font":{message:`Fonts`,description:`Block fonts option`},"blockResource.media":{message:`Media`,description:`Block media option`},"blockResource.stylesheet":{message:`Stylesheets`,description:`Block stylesheets option`},"blockResource.xhr":{message:`XHR`,description:`Block XHR option`},"blockResource.fetch":{message:`Fetch`,description:`Block fetch option`},"placeholder.url":{message:`https://example.com`,description:`Placeholder for the URL input`},"placeholder.waitForSelector":{message:`CSS selector, e.g. .article-body`,description:`Placeholder for the wait_for_selector input`},"placeholder.blockResources":{message:`Resource types to block`,description:`Placeholder for the block_resources multi-select`},"button.extract":{message:`Extract`,description:`Run extract button label`},"button.render":{message:`Render`,description:`Run render button label`},"description.intro":{message:`Render and extract any web page`,description:`Intro line shown in the empty result state`},"description.introHint":{message:`Enter a URL and choose Extract or Render to get clean content, markdown, links, screenshots, and more.`,description:`Hint shown below the intro line`},"description.enableLlm":{message:`Use an LLM to clean and structure the extracted content. Costs additional credits.`,description:`Tooltip explaining the LLM cleanup toggle`},"message.running":{message:`Working on it…`,description:`Status while a request is in flight`},"message.extracting":{message:`Extracting…`,description:`Status shown when extract is running`},"message.rendering":{message:`Rendering…`,description:`Status shown when render is running`},"message.success":{message:`Done`,description:`Toast shown on success`},"message.failed":{message:`Request failed`,description:`Generic error message`},"message.usedUp":{message:`Your quota has been used up. Please top up to continue.`,description:`Error shown when balance is exhausted`},"message.busy":{message:`Service is busy. Please try again in a moment.`,description:`Error shown on rate limit`},"message.timeout":{message:`The page took too long to load. Try a different URL or increase the timeout.`,description:`Error shown on timeout`},"message.antibotBlocked":{message:`Целевая страница активировала защиту от ботов, временно невозможно извлечение данных (это не будет тарифицироваться).`,description:`Ошибка, отображаемая, когда целевая страница имеет активный вызов защиты от ботов (HTTP 422, не тарифицируется)`},"message.untitled":{message:`Untitled`,description:`Fallback title when the page has no title`},"tab.markdown":{message:`Markdown`,description:`Markdown tab label`},"tab.text":{message:`Text`,description:`Plain text tab label`},"tab.structured":{message:`Structured`,description:`Structured data tab label`},"tab.links":{message:`Links`,description:`Links tab label`},"tab.images":{message:`Images`,description:`Images tab label`},"tab.html":{message:`HTML`,description:`HTML tab label`},"tab.raw":{message:`Raw JSON`,description:`Raw response tab label`}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={"name.mode":{message:`Mode`,description:`Label for render/extract mode toggle`},"name.url":{message:`URL`,description:`Label for the URL input`},"name.expectedType":{message:`Expected Type`,description:`Label for expected content type`},"name.enableLlm":{message:`LLM Cleanup`,description:`Label for enable LLM toggle`},"name.advanced":{message:`Advanced`,description:`Label for advanced options collapse`},"name.waitUntil":{message:`Wait Until`,description:`Label for the wait_until field`},"name.waitForSelector":{message:`Wait For Selector`,description:`Label for the wait_for_selector field`},"name.timeout":{message:`Timeout (s)`,description:`Label for the timeout field`},"name.delay":{message:`Delay (s)`,description:`Label for the delay_after_load field`},"name.blockResources":{message:`Block Resources`,description:`Label for the block_resources multi-select`},"name.consumption":{message:`Cost`,description:`Label for the per-call cost`},"mode.extract":{message:`Extract`,description:`Extract mode option`},"mode.render":{message:`Render`,description:`Render mode option`},"expectedType.general":{message:`General`,description:`General expected type option`},"expectedType.article":{message:`Article`,description:`Article expected type option`},"expectedType.product":{message:`Product`,description:`Product expected type option`},"waitUntil.networkidle":{message:`Network Idle`,description:`Wait until network idle option`},"waitUntil.load":{message:`Load`,description:`Wait until load option`},"waitUntil.domcontentloaded":{message:`DOM Ready`,description:`Wait until DOM content loaded option`},"waitUntil.commit":{message:`Commit`,description:`Wait until commit option`},"blockResource.image":{message:`Images`,description:`Block images option`},"blockResource.font":{message:`Fonts`,description:`Block fonts option`},"blockResource.media":{message:`Media`,description:`Block media option`},"blockResource.stylesheet":{message:`Stylesheets`,description:`Block stylesheets option`},"blockResource.xhr":{message:`XHR`,description:`Block XHR option`},"blockResource.fetch":{message:`Fetch`,description:`Block fetch option`},"placeholder.url":{message:`https://example.com`,description:`Placeholder for the URL input`},"placeholder.waitForSelector":{message:`CSS selector, e.g. .article-body`,description:`Placeholder for the wait_for_selector input`},"placeholder.blockResources":{message:`Resource types to block`,description:`Placeholder for the block_resources multi-select`},"button.extract":{message:`Extract`,description:`Run extract button label`},"button.render":{message:`Render`,description:`Run render button label`},"description.intro":{message:`Render and extract any web page`,description:`Intro line shown in the empty result state`},"description.introHint":{message:`Enter a URL and choose Extract or Render to get clean content, markdown, links, screenshots, and more.`,description:`Hint shown below the intro line`},"description.enableLlm":{message:`Use an LLM to clean and structure the extracted content. Costs additional credits.`,description:`Tooltip explaining the LLM cleanup toggle`},"message.running":{message:`Working on it…`,description:`Status while a request is in flight`},"message.extracting":{message:`Extracting…`,description:`Status shown when extract is running`},"message.rendering":{message:`Rendering…`,description:`Status shown when render is running`},"message.success":{message:`Done`,description:`Toast shown on success`},"message.failed":{message:`Request failed`,description:`Generic error message`},"message.usedUp":{message:`Your quota has been used up. Please top up to continue.`,description:`Error shown when balance is exhausted`},"message.busy":{message:`Service is busy. Please try again in a moment.`,description:`Error shown on rate limit`},"message.timeout":{message:`The page took too long to load. Try a different URL or increase the timeout.`,description:`Error shown on timeout`},"message.antibotBlocked":{message:`تم تفعيل حماية ضد الروبوتات على الموقع المستهدف، ولا يمكن الزحف مؤقتًا (لن يتم احتساب هذه المرة).`,description:`خطأ يظهر عندما تكون الصفحة المستهدفة تحديًا غير واضح ضد الروبوتات (HTTP 422، غير مفوتر)`},"message.untitled":{message:`Untitled`,description:`Fallback title when the page has no title`},"tab.markdown":{message:`Markdown`,description:`Markdown tab label`},"tab.text":{message:`Text`,description:`Plain text tab label`},"tab.structured":{message:`Structured`,description:`Structured data tab label`},"tab.links":{message:`Links`,description:`Links tab label`},"tab.images":{message:`Images`,description:`Images tab label`},"tab.html":{message:`HTML`,description:`HTML tab label`},"tab.raw":{message:`Raw JSON`,description:`Raw response tab label`}};export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ut as e}from"./constants-
|
|
1
|
+
import{ut as e}from"./constants-DZBit6O5.js";import{Hn as t,Pn as n,Sn as r,Zt as i,wr as a,xn as o}from"./index-Bz7Ib84l.js";var s={namespaced:!0,state:t,mutations:{setApplication:(e,t)=>{e.application=t},setApplications:(e,t)=>{e.applications=t},setConfig:(e,t)=>{e.config=t},setCredential:(e,t)=>{e.credential=t},setService:(e,t)=>{e.service=t},setResponse:(e,t)=>{e.response=t},resetAll:e=>{Object.assign(e,t())}},actions:{createCredential:async({commit:e,state:t})=>{let n=t.application;if(!n){console.error(`webextrator: application not found`);return}let{data:r}=await o.create({application_id:n?.id,host:window.location.origin});return e(`setCredential`,r),r},setService:async({commit:e},t)=>{e(`setService`,t)},getService:async({commit:t,state:n})=>{n.status.getService=a.Request;try{let{data:i}=await r.get(e);return n.status.getService=a.Success,t(`setService`,i),i}catch{n.status.getService=a.Error,t(`setService`,void 0)}},resetAll:({commit:e})=>{e(`resetAll`)},setCredential:async({commit:e},t)=>{e(`setCredential`,t)},setConfig:({commit:e},t)=>{e(`setConfig`,t)},setApplications:async({commit:e},t)=>{e(`setApplications`,t)},setApplication:async({commit:e,dispatch:t,rootState:n},r)=>{if(console.debug(`webextrator: set application`,r),e(`setApplication`,r),!r)return;let i=n?.user?.id,a=r?.role===`grantee`,o=r?.credentials?.find(e=>e?.host===window.location.origin);!o&&a&&(o=r?.credentials?.find(e=>e?.user_id===i)),o?e(`setCredential`,o):a?(console.warn(`no credential available for granted application`,r),e(`setCredential`,void 0)):await t(`createCredential`)},getApplications:async({commit:t,state:r})=>{r.status.getApplications=a.Request;try{let{data:i}=await n.getAll({user_id:`me`,service_id:e,affiliation:[`owner`,`granted`]});return r.status.getApplications=a.Success,t(`setApplications`,i.items),i.items}catch(e){console.error(`webextrator: get applications failed`,e),r.status.getApplications=a.Error,t(`setApplications`,void 0),t(`setApplication`,void 0)}},run:async({commit:e,state:t})=>{let n=t.credential?.token;if(!n){console.error(`webextrator: no token specified`);return}let r=t.config;if(!r?.url){console.error(`webextrator: no url specified`);return}t.status.run=a.Request;let o={url:r.url,wait_until:r.wait_until,timeout:r.timeout,delay:r.delay,wait_for_selector:r.wait_for_selector||void 0,block_resources:r.block_resources?.length?r.block_resources:void 0,user_agent:r.user_agent||void 0};try{let{data:s}=r.mode===`render`?await i.render(o,{token:n}):await i.extract({...o,expected_type:r.expected_type,enable_llm:!!r.enable_llm},{token:n});t.status.run=a.Success,e(`setResponse`,s)}catch(n){t.status.run=a.Error;let r=n?.response?.data;throw r&&typeof r==`object`?e(`setResponse`,r):e(`setResponse`,void 0),n}}}};export{s as default,s as webextrator};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={"name.mode":{message:`Mode`,description:`Label for render/extract mode toggle`},"name.url":{message:`URL`,description:`Label for the URL input`},"name.expectedType":{message:`Expected Type`,description:`Label for expected content type`},"name.enableLlm":{message:`LLM Cleanup`,description:`Label for enable LLM toggle`},"name.advanced":{message:`Advanced`,description:`Label for advanced options collapse`},"name.waitUntil":{message:`Wait Until`,description:`Label for the wait_until field`},"name.waitForSelector":{message:`Wait For Selector`,description:`Label for the wait_for_selector field`},"name.timeout":{message:`Timeout (s)`,description:`Label for the timeout field`},"name.delay":{message:`Delay (s)`,description:`Label for the delay_after_load field`},"name.blockResources":{message:`Block Resources`,description:`Label for the block_resources multi-select`},"name.consumption":{message:`Cost`,description:`Label for the per-call cost`},"mode.extract":{message:`Extract`,description:`Extract mode option`},"mode.render":{message:`Render`,description:`Render mode option`},"expectedType.general":{message:`General`,description:`General expected type option`},"expectedType.article":{message:`Article`,description:`Article expected type option`},"expectedType.product":{message:`Product`,description:`Product expected type option`},"waitUntil.networkidle":{message:`Network Idle`,description:`Wait until network idle option`},"waitUntil.load":{message:`Load`,description:`Wait until load option`},"waitUntil.domcontentloaded":{message:`DOM Ready`,description:`Wait until DOM content loaded option`},"waitUntil.commit":{message:`Commit`,description:`Wait until commit option`},"blockResource.image":{message:`Images`,description:`Block images option`},"blockResource.font":{message:`Fonts`,description:`Block fonts option`},"blockResource.media":{message:`Media`,description:`Block media option`},"blockResource.stylesheet":{message:`Stylesheets`,description:`Block stylesheets option`},"blockResource.xhr":{message:`XHR`,description:`Block XHR option`},"blockResource.fetch":{message:`Fetch`,description:`Block fetch option`},"placeholder.url":{message:`https://example.com`,description:`Placeholder for the URL input`},"placeholder.waitForSelector":{message:`CSS selector, e.g. .article-body`,description:`Placeholder for the wait_for_selector input`},"placeholder.blockResources":{message:`Resource types to block`,description:`Placeholder for the block_resources multi-select`},"button.extract":{message:`Extract`,description:`Run extract button label`},"button.render":{message:`Render`,description:`Run render button label`},"description.intro":{message:`Render and extract any web page`,description:`Intro line shown in the empty result state`},"description.introHint":{message:`Enter a URL and choose Extract or Render to get clean content, markdown, links, screenshots, and more.`,description:`Hint shown below the intro line`},"description.enableLlm":{message:`Use an LLM to clean and structure the extracted content. Costs additional credits.`,description:`Tooltip explaining the LLM cleanup toggle`},"message.running":{message:`Working on it…`,description:`Status while a request is in flight`},"message.extracting":{message:`Extracting…`,description:`Status shown when extract is running`},"message.rendering":{message:`Rendering…`,description:`Status shown when render is running`},"message.success":{message:`Done`,description:`Toast shown on success`},"message.failed":{message:`Request failed`,description:`Generic error message`},"message.usedUp":{message:`Your quota has been used up. Please top up to continue.`,description:`Error shown when balance is exhausted`},"message.busy":{message:`Service is busy. Please try again in a moment.`,description:`Error shown on rate limit`},"message.timeout":{message:`The page took too long to load. Try a different URL or increase the timeout.`,description:`Error shown on timeout`},"message.antibotBlocked":{message:`Цільовий сайт увімкнув захист від ботів, тимчасово неможливо отримати дані (цей раз не підлягає оплаті).`,description:`Помилка, яка відображається, коли цільова сторінка має незнятий виклик захисту від ботів (HTTP 422, не підлягає оплаті)`},"message.untitled":{message:`Untitled`,description:`Fallback title when the page has no title`},"tab.markdown":{message:`Markdown`,description:`Markdown tab label`},"tab.text":{message:`Text`,description:`Plain text tab label`},"tab.structured":{message:`Structured`,description:`Structured data tab label`},"tab.links":{message:`Links`,description:`Links tab label`},"tab.images":{message:`Images`,description:`Images tab label`},"tab.html":{message:`HTML`,description:`HTML tab label`},"tab.raw":{message:`Raw JSON`,description:`Raw response tab label`}};export{e as default};
|